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