import{_ as a}from"./index.vue_vue_type_script_setup_true_lang.js?v=1764830988434";import{o as s,N as e,O as r,P as o,Q as t}from"./page_layout.js?v=1764830988434";import{_ as d}from"./index.vue_vue_type_script_setup_true_lang2.js?v=1764830988434";import{a as l}from"./public.js?v=1764830988434";import{dR as n,au as p,aC as i,dm as u}from"./naive.js?v=1764830988434";import{k as _,P as w,r as x,e as c,R as m,V as f,S as v,W as g,a4 as P,a3 as j,U as h,j as y,ab as b,F as k}from"./vue.js?v=1764830988434";import"./common.js?v=1764830988434";import"./__commonjsHelpers__.js?v=1764830988434";import"./index96.js?v=1764830988434";const C={class:"flex-center flex-col pt-8%"},$={class:"pt-44px"},E={class:"mb-24px text-center text-20px text-dark"},R={class:"flex justify-end mt-16px"},U=_({__name:"index",setup(_){const{t:U}=w(),T=x(null),z=c({password1:"",password2:""}),F={password1:{trigger:["blur","input"],validator:()=>u(z.password1)?new Error(U("Config.Panel.index_67")):!(z.password1.length<6)||new Error(U("Password.index_6"))},password2:{trigger:["blur","input"],validator:()=>u(z.password2)?new Error(U("Config.Panel.index_69")):z.password1===z.password2||new Error(U("Config.Panel.index_70"))}},H=async()=>{var a;await(null==(a=T.value)?void 0:a.validate()),await e({password1:r(z.password1),password2:r(z.password2)}),o("/login?dologin=True",1500)},N=()=>{l({title:U("Password.index_7"),content:()=>g(k,null,[g(b,{tag:"div",scope:"global",keypath:"Password.index_8"},{text_1:()=>g("span",{class:"text-error"},[U("Password.index_9")])})]),onConfirm:async()=>{await t(),o("/login?dologin=True",1500)}})};return(e,r)=>{const o=d,t=n,l=p,u=i,_=s,w=a;return f(),m("div",C,[v("div",$,[v("h3",E,P(e.$t("Password.index_1")),1)]),g(w,{ref_key:"formRef",ref:T,model:h(z),rules:F,size:"large",class:"w-500px p-32px pt-0"},{default:j(()=>[g(t,{path:"password1"},{default:j(()=>[g(o,{value:h(z).password1,"onUpdate:value":r[0]||(r[0]=a=>h(z).password1=a),length:10,default:!1,placeholder:e.$t("Password.index_2")},null,8,["value","placeholder"])]),_:1}),g(t,{path:"password2"},{default:j(()=>[g(l,{value:h(z).password2,"onUpdate:value":r[1]||(r[1]=a=>h(z).password2=a),placeholder:e.$t("Password.index_3")},null,8,["value","placeholder"])]),_:1}),g(t,{"show-feedback":!1},{default:j(()=>[g(u,{type:"primary",block:"",onClick:H},{default:j(()=>[y(P(e.$t("Password.index_4")),1)]),_:1})]),_:1}),v("div",R,[g(_,{onClick:N},{default:j(()=>[y(P(e.$t("Password.index_5")),1)]),_:1})])]),_:1},8,["model"])])}}});export{U as default};
