import{B as s}from"./index85.js?v=20260328163632";import{l as e,bC as a,t as r,N as l,x as t,bD as o,I as i,_ as p}from"./utils-lib.js?v=20260328163632";import{B as d}from"./naive-ui.js?v=20260328163632";import{k as n,r as c,O as u,V as m,W as x,X as w,Z as b,Y as f,a3 as v,j as y}from"./base-lib.js?v=20260328163632";import"./__commonjsHelpers__.js?v=20260328163632";import"./env-lib.js?v=20260328163632";const h={class:"flex flex-col items-center py-[4%]",layout:["leftTools","rightTools","bottomRight"]},_={class:"w-[440px] bind-user-info"},j={class:"text-center !mb-[22px] flex justify-center"},g={class:"!text-[20px] font-bold text-dark inline-block mr-2 mt-12px"},k=p(n({__name:"index",setup(p){const n=c({formAttrs:{labelWidth:"80px"},formItems:[{label:e("新的密码"),ruleKey:"password1",rules:[a(e("请输入新的密码"))],children:[{type:"custom",key:"password1",render:()=>u(s,{modelValue:I.value.password1,"onUpdate:modelValue":s=>I.value.password1=s,icon:"el-refresh",placeholder:e("请输入新的密码"),onIconClick:V,isActive:!0,class:"!w-280px"},null)}]},{label:e("确认密码"),ruleKey:"password2",rules:[{validator:(s,a)=>a?a===I.value.password1||new Error(e("两次输入密码不一致")):new Error(e("请输入确认密码")),trigger:["blur","change"]}],children:[{type:"input",key:"password2",attrs:{placeholder:e("重复输入密码，确认新的密码"),class:"!w-280px"}}]}]}),[k,I,C]=r(n),V=()=>{I.value.password1=l(10)},A=async()=>{await C.value.validate(),t({loading:e("正在设置面板密码，请稍候..."),request:o({password:I.value.password1}),message:!0,success:s=>{s.status&&i("/logout",1500)}})};return(s,a)=>{const r=d;return m(),x("div",h,[w("div",_,[w("div",j,[w("h3",g,b(f(e)("当前面板密码已过期，请立即修改密码！")),1)]),u(f(k)),u(r,{class:"w-[100%] mt-4 h-32px",type:"primary",onClick:A},{default:v((()=>[y(b(f(e)("修改密码")),1)])),_:1})])])}}}),[["__scopeId","data-v-b2833995"]]);export{k as default};
