var d=(e,s,o)=>new Promise((p,r)=>{var a=t=>{try{i(o.next(t))}catch(m){r(m)}},u=t=>{try{i(o.throw(t))}catch(m){r(m)}},i=t=>t.done?p(t.value):Promise.resolve(t.value).then(a,u);i((o=o.apply(e,s)).next())});import{P as _}from"./index.566277e5.js";import{B as F}from"./BasicForm.d11b68fd.js";import{u as C}from"./useForm.868c8e81.js";import{aP as h,a as w,aQ as n,o as E,aR as P,p as c,i as f,j as l,q as B}from"./index.0d073eaa.js";import"./index.e9a84cba.js";import"./index.0972fd96.js";import"./useSize.bb4e5ce5.js";import"./eagerComputed.156e81ff.js";import"./useWindowSizeFn.ef20ece8.js";import"./useContentViewHeight.01b9d1c6.js";import"./ArrowLeftOutlined.90d2e05e.js";import"./index.8680e4c4.js";import"./transButton.8c1b1a4f.js";/* empty css              *//* empty css              */import"./index.0fb15725.js";import"./index.965098be.js";import"./Checkbox.476f6e92.js";import"./index.1491cab6.js";import"./index.e317a008.js";import"./index.7075e2b7.js";import"./index.04f7e044.js";import"./index.e8daa066.js";import"./get.49a42f2e.js";import"./index.e8b360cf.js";import"./index.2b5ea4f6.js";import"./_baseIteratee.3919e7cf.js";import"./DeleteOutlined.247d1f35.js";import"./index.a8c197b8.js";import"./useRefs.e81831e2.js";import"./Form.48352728.js";import"./Col.a2eadc78.js";import"./useFlexGapSupport.474c31b7.js";import"./index.81899e8a.js";import"./index.c05f9254.js";import"./FullscreenOutlined.401a7bcd.js";import"./index.ffb8ac7d.js";import"./index.dd1f987c.js";import"./uuid.2b29000c.js";import"./download.bb4c9304.js";import"./base64Conver.08b9f4ec.js";import"./index.31930d74.js";import"./index.1d29734e.js";import"./uniqBy.ac0f9c38.js";const g=[{field:"passwordOld",label:"\u5F53\u524D\u5BC6\u7801",component:"InputPassword",required:!0},{field:"passwordNew",label:"\u65B0\u5BC6\u7801",component:"StrengthMeter",componentProps:{placeholder:"\u65B0\u5BC6\u7801"},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u65B0\u5BC6\u7801"}]},{field:"confirmPassword",label:"\u786E\u8BA4\u5BC6\u7801",component:"InputPassword",dynamicRules:({values:e})=>[{required:!0,validator:(s,o)=>o?o!==e.passwordNew?Promise.reject("\u4E24\u6B21\u8F93\u5165\u7684\u5BC6\u7801\u4E0D\u4E00\u81F4!"):Promise.resolve():Promise.reject("\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A")}]}],b=w({name:"ChangePassword",components:{BasicForm:F,PageWrapper:_},setup(){const[e,{validate:s,resetFields:o}]=C({size:"large",baseColProps:{span:24},labelWidth:100,showActionButtonGroup:!1,schemas:g});function p(){return d(this,null,function*(){try{const r=yield s(),{passwordOld:a,passwordNew:u}=r;console.log(a,u)}catch(r){}})}return{register:e,resetFields:o,handleSubmit:p}}}),A={class:"py-8 bg-white flex flex-col justify-center items-center"},y={class:"flex justify-center"},v=B(" \u91CD\u7F6E "),D=B(" \u786E\u8BA4 ");function k(e,s,o,p,r,a){const u=n("BasicForm"),i=n("a-button"),t=n("PageWrapper");return E(),P(t,{title:"\u4FEE\u6539\u5F53\u524D\u7528\u6237\u5BC6\u7801",content:"\u4FEE\u6539\u6210\u529F\u540E\u4F1A\u81EA\u52A8\u9000\u51FA\u5F53\u524D\u767B\u5F55\uFF01"},{default:c(()=>[f("div",A,[l(u,{onRegister:e.register},null,8,["onRegister"]),f("div",y,[l(i,{onClick:e.resetFields},{default:c(()=>[v]),_:1},8,["onClick"]),l(i,{class:"!ml-4",type:"primary",onClick:e.handleSubmit},{default:c(()=>[D]),_:1},8,["onClick"])])])]),_:1})}var Po=h(b,[["render",k]]);export{Po as default};
