var u=(s,i,o)=>new Promise((a,m)=>{var t=e=>{try{p(o.next(e))}catch(n){m(n)}},r=e=>{try{p(o.throw(e))}catch(n){m(n)}},p=e=>e.done?a(e.value):Promise.resolve(e.value).then(t,r);p((o=o.apply(s,i)).next())});import{B}from"./BasicForm.d11b68fd.js";import{aP as _,r as h,a as C,I as c,dw as w,aQ as l,o as F,h as E,j as d,p as b,q as g,x as v}from"./index.0d073eaa.js";import{C as I}from"./index.abdcab42.js";import"./index.78efd931.js";/* empty css              */import{c as P}from"./account.01c01e42.js";/* 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"./eagerComputed.156e81ff.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"./useSize.bb4e5ce5.js";import"./index.81899e8a.js";import"./index.c05f9254.js";import"./useWindowSizeFn.ef20ece8.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";import"./index.aa6b7013.js";import"./PlusOutlined.64d8e001.js";const f=h(null),S=C({components:{BasicForm:B,[c.name]:c,Button:w,Card:I},emits:["reload","register"],setup(){const s=[{field:"old_password",component:"Input",label:"\u539F\u59CB\u5BC6\u7801",colProps:{span:20},required:!0},{field:"password",component:"Input",label:"\u65B0\u5BC6\u7801",colProps:{span:20},required:!0},{field:"password_confirm",component:"Input",label:"\u786E\u8BA4\u5BC6\u7801",colProps:{span:20},required:!0}],{createMessage:i}=v(),{success:o,error:a}=i;return{formElRef:f,handleSubmit:()=>u(this,null,function*(){try{const t=f.value;if(!t)return;const r=yield t.validate();if(r.password!=r.password_confirm){a("\u4E24\u6B21\u5BC6\u7801\u8F93\u5165\u4E0D\u4E00\u81F4");return}yield P(r),o("\u64CD\u4F5C\u6210\u529F")}catch(t){console.log(t)}}),schemas:s}}}),k={class:"mt-3"},q=g(" \u66F4\u65B0\u5BC6\u7801 ");function x(s,i,o,a,m,t){const r=l("BasicForm"),p=l("Button");return F(),E("div",k,[d(r,{schemas:s.schemas,ref:"formElRef",labelWidth:75,showActionButtonGroup:!1},null,8,["schemas"]),d(p,{type:"primary",onClick:s.handleSubmit},{default:b(()=>[q]),_:1},8,["onClick"])])}var Fo=_(S,[["render",x]]);export{Fo as default};
