import{_ as a}from"./index.vue_vue_type_script_setup_true_lang.js?v=1763625242172";import{N as s,O as e,P as r,Q as o,o as t}from"./page_layout.js?v=1763625242172";import{_ as d}from"./index.vue_vue_type_script_setup_true_lang2.js?v=1763625242172";import{a as l}from"./public.js?v=1763625242172";import{dl as n,dP as p,au as i,aC as u}from"./naive.js?v=1763625242172";import{k as _,P as w,r as x,e as c,R as f,S as m,U as v,a4 as g,X as P,a3 as j,V as h,j as y,ab as b,F as k}from"./vue.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";import"./index98.js?v=1763625242172";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"},R=_({__name:"index",setup(_){const{t:R}=w(),T=x(null),z=c({password1:"",password2:""}),F={password1:{trigger:["blur","input"],validator:()=>n(z.password1)?new Error(R("Config.Panel.index_67")):!(z.password1.length<6)||new Error(R("Password.index_6"))},password2:{trigger:["blur","input"],validator:()=>n(z.password2)?new Error(R("Config.Panel.index_69")):z.password1===z.password2||new Error(R("Config.Panel.index_70"))}},H=async()=>{var a;await(null==(a=T.value)?void 0:a.validate()),await s({password1:e(z.password1),password2:e(z.password2)}),r("/login?dologin=True",1500)},N=()=>{l({title:R("Password.index_7"),content:()=>P(k,null,[P(b,{tag:"div",scope:"global",keypath:"Password.index_8"},{text_1:()=>P("span",{class:"text-error"},[R("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:T,model:h(z),rules:F,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:H},{default:j((()=>[y(g(s.$t("Password.index_4")),1)])),_:1})])),_:1}),v("div",U,[P(_,{onClick:N},{default:j((()=>[y(g(s.$t("Password.index_5")),1)])),_:1})])])),_:1},8,["model"])])}}});export{R as default};
