import{B as s}from"./index85.js?v=20260328163632";import{l as e,K as a,N as r,t,x as l,dV as o}from"./utils-lib.js?v=20260328163632";import{r as i,g as p}from"./index64.js?v=20260328163632";import{k as u,r as d,O as n,V as m,_ as c,Y as v}from"./base-lib.js?v=20260328163632";import"./naive-ui.js?v=20260328163632";import"./__commonjsHelpers__.js?v=20260328163632";import"./env-lib.js?v=20260328163632";import"./index91.js?v=20260328163632";import"./index.vue_vue_type_script_setup_true_lang5.js?v=20260328163632";import"./database.js?v=20260328163632";const w=u({__name:"set-pwd",setup(u,{expose:w}){const _=d({label:e("用户名"),children:[{type:"input",key:"username",attrs:{class:"!w-360px",disabled:!0}}]}),j=d({label:e("密码"),ruleKey:"password",rules:[a({message:e("请输入密码"),trigger:["blur","input"]})],children:[{type:"custom",key:"password",render:()=>n(s,{width:"320px",icon:"el-refresh",modelValue:f.value.password,"onUpdate:modelValue":s=>f.value.password=s,placeholder:e("请输入密码"),onIconClick:()=>f.value.password=r(16)},null)}]}),b=d({formAttrs:{labelWidth:"90px"},formItems:[_.value,j.value]}),[x,f,g]=t(b);return Object.assign(f.value,{username:i.value.username,password:i.value.password}),w({onConfirm:async()=>{await g.value.validate();return(await l({loading:e("正在修改密码，请稍候..."),request:o({id:i.value.id,password:f.value.password}),message:!0,success:()=>{p()}})).status}}),(s,e)=>(m(),c(v(x),{class:"p-20px"}))}});export{w as default};
