var _=(o,l,t)=>new Promise((a,n)=>{var s=e=>{try{r(t.next(e))}catch(u){n(u)}},m=e=>{try{r(t.throw(e))}catch(u){n(u)}},r=e=>e.done?a(e.value):Promise.resolve(e.value).then(s,m);r((t=t.apply(o,l)).next())});import{aP as B,r as C,a as g,cB as b,B as F,l as v,H as S,aQ as c,o as y,aR as E,p as i,j as p,q as h}from"./index.0d073eaa.js";/* empty css              */import{B as A}from"./BasicForm.d11b68fd.js";import{u as k}from"./useForm.868c8e81.js";import{a as w}from"./index.f4f1f088.js";import{a as R,b as I}from"./account.01c01e42.js";import{R as x,C as P}from"./index.1d29734e.js";const L=[{key:"1",name:"\u57FA\u672C\u8BBE\u7F6E",component:"BaseSetting"},{key:"2",name:"\u5B89\u5168\u8BBE\u7F6E",component:"SecureSetting"}],$=[{field:"nickname",component:"Input",label:"\u6635\u79F0",colProps:{span:18}},{field:"email",component:"Input",label:"\u90AE\u7BB1",colProps:{span:18}},{field:"mobile",component:"Input",label:"\u8054\u7CFB\u7535\u8BDD",colProps:{span:18}}];const d=C(null),U=g({components:{BasicForm:A,CollapseContainer:b,Button:F,ARow:x,ACol:P,CropperAvatar:w},setup(){const o=v(),[l,{setFieldsValue:t}]=k({labelWidth:120,schemas:$,showActionButtonGroup:!1});return S(()=>_(this,null,function*(){const a=yield R();t(a)})),{register:l,formElRef:d,handleSubmit:()=>_(this,null,function*(){var s;let a=yield(s=d.value)==null?void 0:s.validate();yield I(a);const n=o.getUserInfo;n.realName=a.nickname,o.setUserInfo(n)})}}}),j=h(" \u66F4\u65B0\u57FA\u672C\u4FE1\u606F ");function N(o,l,t,a,n,s){const m=c("BasicForm"),r=c("a-col"),e=c("a-row"),u=c("Button"),f=c("CollapseContainer");return y(),E(f,{title:"\u57FA\u672C\u8BBE\u7F6E",canExpan:!1},{default:i(()=>[p(e,{gutter:24},{default:i(()=>[p(r,{span:14},{default:i(()=>[p(m,{onRegister:o.register,ref:"formElRef"},null,8,["onRegister"])]),_:1})]),_:1}),p(u,{type:"primary",onClick:o.handleSubmit},{default:i(()=>[j]),_:1},8,["onClick"])]),_:1})}var V=B(U,[["render",N],["__scopeId","data-v-616db874"]]),Q=Object.freeze(Object.defineProperty({__proto__:null,default:V},Symbol.toStringTag,{value:"Module"}));export{V as B,Q as a,L as s};
