"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9245,8906,949,4296],{86615:function(W,I,e){var B=e(1413),l=e(91),F=e(22270),g=e(78045),x=e(67294),O=e(90789),D=e(43495),c=e(85893),h=["fieldProps","options","radioType","layout","proFieldProps","valueEnum"],E=x.forwardRef(function(t,p){var _=t.fieldProps,a=t.options,d=t.radioType,u=t.layout,o=t.proFieldProps,s=t.valueEnum,R=(0,l.Z)(t,h);return(0,c.jsx)(D.Z,(0,B.Z)((0,B.Z)({valueType:d==="button"?"radioButton":"radio",ref:p,valueEnum:(0,F.h)(s,void 0)},R),{},{fieldProps:(0,B.Z)({options:a,layout:u},_),proFieldProps:o,filedConfig:{customLightMode:!0}}))}),i=x.forwardRef(function(t,p){var _=t.fieldProps,a=t.children;return(0,c.jsx)(g.ZP,(0,B.Z)((0,B.Z)({},_),{},{ref:p,children:a}))}),M=(0,O.G)(i,{valuePropName:"checked",ignoreWidth:!0}),m=M;m.Group=E,m.Button=g.ZP.Button,m.displayName="ProFormComponent",I.Z=m},5966:function(W,I,e){var B=e(97685),l=e(1413),F=e(91),g=e(21770),x=e(77569),O=e(55241),D=e(98423),c=e(67294),h=e(43495),E=e(85893),i=["fieldProps","proFieldProps"],M=["fieldProps","proFieldProps"],m="text",t=function(u){var o=u.fieldProps,s=u.proFieldProps,R=(0,F.Z)(u,i);return(0,E.jsx)(h.Z,(0,l.Z)({valueType:m,fieldProps:o,filedConfig:{valueType:m},proFieldProps:s},R))},p=function(u){var o=(0,g.Z)(u.open||!1,{value:u.open,onChange:u.onOpenChange}),s=(0,B.Z)(o,2),R=s[0],Z=s[1];return(0,E.jsx)(x.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(T){var r,L=T.getFieldValue(u.name||[]);return(0,E.jsx)(O.Z,(0,l.Z)((0,l.Z)({getPopupContainer:function(n){return n&&n.parentNode?n.parentNode:n},onOpenChange:function(n){return Z(n)},content:(0,E.jsxs)("div",{style:{padding:"4px 0"},children:[(r=u.statusRender)===null||r===void 0?void 0:r.call(u,L),u.strengthText?(0,E.jsx)("div",{style:{marginTop:10},children:(0,E.jsx)("span",{children:u.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},u.popoverProps),{},{open:R,children:u.children}))}})},_=function(u){var o=u.fieldProps,s=u.proFieldProps,R=(0,F.Z)(u,M),Z=(0,c.useState)(!1),U=(0,B.Z)(Z,2),T=U[0],r=U[1];return o!=null&&o.statusRender&&R.name?(0,E.jsx)(p,{name:R.name,statusRender:o==null?void 0:o.statusRender,popoverProps:o==null?void 0:o.popoverProps,strengthText:o==null?void 0:o.strengthText,open:T,onOpenChange:r,children:(0,E.jsx)("div",{children:(0,E.jsx)(h.Z,(0,l.Z)({valueType:"password",fieldProps:(0,l.Z)((0,l.Z)({},(0,D.Z)(o,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(y){var n;o==null||(n=o.onBlur)===null||n===void 0||n.call(o,y),r(!1)},onClick:function(y){var n;o==null||(n=o.onClick)===null||n===void 0||n.call(o,y),r(!0)}}),proFieldProps:s,filedConfig:{valueType:m}},R))})}):(0,E.jsx)(h.Z,(0,l.Z)({valueType:"password",fieldProps:o,proFieldProps:s,filedConfig:{valueType:m}},R))},a=t;a.Password=_,a.displayName="ProFormComponent",I.Z=a},83832:function(W,I,e){e.d(I,{S:function(){return D}});var B=e(1413),l=e(91),F=e(74330),g=e(67294),x=e(85893),O=["isLoading","pastDelay","timedOut","error","retry"],D=function(h){var E=h.isLoading,i=h.pastDelay,M=h.timedOut,m=h.error,t=h.retry,p=(0,l.Z)(h,O);return(0,x.jsx)("div",{style:{paddingBlockStart:100,textAlign:"center"},children:(0,x.jsx)(F.Z,(0,B.Z)({size:"large"},p))})}},37694:function(W,I,e){e.r(I),e.d(I,{default:function(){return Z}});var B=e(5574),l=e.n(B),F=e(67294),g=e(2453),x=e(17788),O=e(71230),D=e(15746),c=e(23799),h=e(83622),E=e(78957),i=e(76772),M=e(9025),m=e(42016),t=e(68906),p={avatarPreview:"avatarPreview___aVJPD"},_=e(88484),a=e(87740),d=e(10149),u=e(24969),o=e(52745),s=e(85893),R=function(T){var r=(0,F.useRef)(null),L=(0,F.useState)(),y=l()(L,2),n=y[0],f=y[1],C=(0,F.useState)(),A=l()(C,2),P=A[0],X=A[1];(0,F.useEffect)(function(){f(T.data)},[T]);var Q=(0,i.useIntl)(),N=function(){var v=r==null?void 0:r.current,j=v==null?void 0:v.cropper;j.getCroppedCanvas().toBlob(function(b){var V=new FormData;V.append("avatarfile",b),(0,M.gg)(V).then(function(w){w.code===200?(g.ZP.success(w.msg),T.onFinished(!0)):g.ZP.warning(w.msg)})},"image/png")},J=function(){T.onFinished(!1)},G=function(){var v=r==null?void 0:r.current,j=v==null?void 0:v.cropper;X(j.getCroppedCanvas().toDataURL())},$=function(){var v=r==null?void 0:r.current,j=v==null?void 0:v.cropper;j.rotate(90)},H=function(){var v=r==null?void 0:r.current,j=v==null?void 0:v.cropper;j.rotate(-90)},z=function(){var v=r==null?void 0:r.current,j=v==null?void 0:v.cropper;j.zoom(.1)},K=function(){var v=r==null?void 0:r.current,j=v==null?void 0:v.cropper;j.zoom(-.1)},Y=function(v){var j=new FileReader;j.readAsDataURL(v),j.onload=function(){f(j.result)}};return(0,s.jsxs)(x.Z,{width:800,title:Q.formatMessage({id:"system.user.modify_avatar",defaultMessage:"\u4FEE\u6539\u5934\u50CF"}),open:T.open,destroyOnClose:!0,onOk:N,onCancel:J,children:[(0,s.jsxs)(O.Z,{gutter:[16,16],children:[(0,s.jsx)(D.Z,{span:12,order:1,children:(0,s.jsx)(m.f,{ref:r,src:n,style:{height:350,width:"100%",marginBottom:"16px"},initialAspectRatio:1,guides:!1,crop:G,zoomable:!0,zoomOnWheel:!0,rotatable:!0})}),(0,s.jsx)(D.Z,{span:12,order:2,children:(0,s.jsx)("div",{className:p.avatarPreview,children:(0,s.jsx)("img",{src:P,style:{height:"100%",width:"100%"}})})})]}),(0,s.jsxs)(O.Z,{gutter:[16,16],children:[(0,s.jsx)(D.Z,{span:6,children:(0,s.jsx)(c.Z,{beforeUpload:Y,maxCount:1,children:(0,s.jsxs)(h.ZP,{children:[(0,s.jsx)(_.Z,{}),"\u4E0A\u4F20"]})})}),(0,s.jsx)(D.Z,{children:(0,s.jsxs)(E.Z,{children:[(0,s.jsx)(h.ZP,{icon:(0,s.jsx)(a.Z,{}),onClick:$}),(0,s.jsx)(h.ZP,{icon:(0,s.jsx)(d.Z,{}),onClick:H}),(0,s.jsx)(h.ZP,{icon:(0,s.jsx)(u.Z,{}),onClick:z}),(0,s.jsx)(h.ZP,{icon:(0,s.jsx)(o.Z,{}),onClick:K})]})})]})]})},Z=R},20949:function(W,I,e){e.r(I);var B=e(15009),l=e.n(B),F=e(97857),g=e.n(F),x=e(99289),O=e.n(x),D=e(5574),c=e.n(D),h=e(67294),E=e(77569),i=e(2453),M=e(71230),m=e(76772),t=e(97269),p=e(5966),_=e(86615),a=e(9025),d=e(85893),u=function(s){var R=E.Z.useForm(),Z=c()(R,1),U=Z[0],T=(0,m.useIntl)(),r=function(){var L=O()(l()().mark(function y(n){var f,C;return l()().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return f=g()(g()({},s.values),n),P.next=3,(0,a.Lj)(f);case 3:C=P.sent,C.code===200?i.ZP.success("\u4FEE\u6539\u6210\u529F"):i.ZP.warning(C.msg);case 5:case"end":return P.stop()}},y)}));return function(n){return L.apply(this,arguments)}}();return(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(t.A,{form:U,onFinish:r,initialValues:s.values,children:[(0,d.jsx)(M.Z,{children:(0,d.jsx)(p.Z,{name:"nickName",label:T.formatMessage({id:"system.user.nick_name",defaultMessage:"\u7528\u6237\u6635\u79F0"}),width:"xl",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u6635\u79F0",rules:[{required:!0,message:(0,d.jsx)(m.FormattedMessage,{id:"\u8BF7\u8F93\u5165\u7528\u6237\u6635\u79F0\uFF01",defaultMessage:"\u8BF7\u8F93\u5165\u7528\u6237\u6635\u79F0\uFF01"})}]})}),(0,d.jsx)(M.Z,{children:(0,d.jsx)(p.Z,{name:"phonenumber",label:T.formatMessage({id:"system.user.phonenumber",defaultMessage:"\u624B\u673A\u53F7\u7801"}),width:"xl",placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u7801",rules:[{required:!1,message:(0,d.jsx)(m.FormattedMessage,{id:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u7801\uFF01",defaultMessage:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u7801\uFF01"})}]})}),(0,d.jsx)(M.Z,{children:(0,d.jsx)(p.Z,{name:"email",label:T.formatMessage({id:"system.user.email",defaultMessage:"\u90AE\u7BB1"}),width:"xl",placeholder:"\u8BF7\u8F93\u5165\u90AE\u7BB1",rules:[{type:"email",message:"\u65E0\u6548\u7684\u90AE\u7BB1\u5730\u5740!"},{required:!1,message:(0,d.jsx)(m.FormattedMessage,{id:"\u8BF7\u8F93\u5165\u90AE\u7BB1\uFF01",defaultMessage:"\u8BF7\u8F93\u5165\u90AE\u7BB1\uFF01"})}]})}),(0,d.jsx)(M.Z,{children:(0,d.jsx)(_.Z.Group,{options:[{label:"\u7537",value:"0"},{label:"\u5973",value:"1"}],name:"sex",label:T.formatMessage({id:"system.user.sex",defaultMessage:"sex"}),width:"xl",rules:[{required:!1,message:(0,d.jsx)(m.FormattedMessage,{id:"\u8BF7\u8F93\u5165\u6027\u522B\uFF01",defaultMessage:"\u8BF7\u8F93\u5165\u6027\u522B\uFF01"})}]})})]})})};I.default=u},34296:function(W,I,e){e.r(I);var B=e(15009),l=e.n(B),F=e(99289),g=e.n(F),x=e(5574),O=e.n(x),D=e(67294),c=e(77569),h=e(2453),E=e(76772),i=e(9025),M=e(97269),m=e(5966),t=e(85893),p=function(){var a=c.Z.useForm(),d=O()(a,1),u=d[0],o=(0,E.useIntl)(),s=function(){var Z=g()(l()().mark(function U(T){var r;return l()().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,(0,i.wp)(T.oldPassword,T.newPassword);case 2:r=y.sent,r.code===200?h.ZP.success("\u5BC6\u7801\u91CD\u7F6E\u6210\u529F\u3002"):h.ZP.warning(r.msg);case 4:case"end":return y.stop()}},U)}));return function(T){return Z.apply(this,arguments)}}(),R=function(U,T){var r=u.getFieldValue("newPassword");return T===r?Promise.resolve():Promise.reject(new Error("\u4E24\u6B21\u5BC6\u7801\u8F93\u5165\u4E0D\u4E00\u81F4"))};return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(M.A,{form:u,onFinish:s,children:[(0,t.jsx)(m.Z.Password,{name:"oldPassword",label:o.formatMessage({id:"system.user.old_password",defaultMessage:"\u65E7\u5BC6\u7801"}),width:"xl",placeholder:"\u8BF7\u8F93\u5165\u65E7\u5BC6\u7801",rules:[{required:!0,message:(0,t.jsx)(E.FormattedMessage,{id:"\u8BF7\u8F93\u5165\u65E7\u5BC6\u7801\uFF01",defaultMessage:"\u8BF7\u8F93\u5165\u65E7\u5BC6\u7801\uFF01"})}]}),(0,t.jsx)(m.Z.Password,{name:"newPassword",label:o.formatMessage({id:"system.user.new_password",defaultMessage:"\u65B0\u5BC6\u7801"}),width:"xl",placeholder:"\u8BF7\u8F93\u5165\u65B0\u5BC6\u7801",rules:[{required:!0,message:(0,t.jsx)(E.FormattedMessage,{id:"\u8BF7\u8F93\u5165\u65B0\u5BC6\u7801\uFF01",defaultMessage:"\u8BF7\u8F93\u5165\u65B0\u5BC6\u7801\uFF01"})}]}),(0,t.jsx)(m.Z.Password,{name:"confirmPassword",label:o.formatMessage({id:"system.user.confirm_password",defaultMessage:"\u786E\u8BA4\u5BC6\u7801"}),width:"xl",placeholder:"\u8BF7\u8F93\u5165\u786E\u8BA4\u5BC6\u7801",rules:[{required:!0,message:(0,t.jsx)(E.FormattedMessage,{id:"\u8BF7\u8F93\u5165\u786E\u8BA4\u5BC6\u7801\uFF01",defaultMessage:"\u8BF7\u8F93\u5165\u786E\u8BA4\u5BC6\u7801\uFF01"})},{validator:R}]})]})})};I.default=p},21278:function(W,I,e){e.r(I),e.d(I,{default:function(){return n}});var B=e(15009),l=e.n(B),F=e(99289),g=e.n(F),x=e(5574),O=e.n(x),D=e(87547),c=e(2494),h=e(24454),E=e(88641),i=e(40717),M=e(55355),m=e(2487),t=e(71230),p=e(15746),_=e(4393),a=e(96074),d=e(67294),u={avatarHolder:"avatarHolder___U4eLS",teamTitle:"teamTitle___IeK43",team:"team___bPpYH"},o=e(20949),s=e(34296),R=e(37694),Z=e(76772),U=e(66034),T=e(83832),r=e(85893),L=[{key:"base",tab:(0,r.jsx)("span",{children:"\u57FA\u672C\u8D44\u6599"})},{key:"password",tab:(0,r.jsx)("span",{children:"\u91CD\u7F6E\u5BC6\u7801"})}],y=function(){var C=(0,d.useState)("base"),A=O()(C,2),P=A[0],X=A[1],Q=(0,d.useState)(!1),N=O()(Q,2),J=N[0],G=N[1],$=(0,Z.useRequest)(g()(l()().mark(function v(){return l()().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,(0,U.bG)();case 2:return b.t0=b.sent,b.abrupt("return",{data:b.t0});case 4:case"end":return b.stop()}},v)}))),H=$.data,z=$.loading;if(z)return(0,r.jsx)("div",{children:"loading..."});var K=H==null?void 0:H.user,Y=function(j){var b=j.userName,V=j.phonenumber,w=j.email,q=j.sex,k=j.dept;return(0,r.jsxs)(m.Z,{children:[(0,r.jsxs)(m.Z.Item,{children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(D.Z,{style:{marginRight:8}}),"\u7528\u6237\u540D"]}),(0,r.jsx)("div",{children:b})]}),(0,r.jsxs)(m.Z.Item,{children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(c.Z,{style:{marginRight:8}}),"\u6027\u522B"]}),(0,r.jsx)("div",{children:q==="1"?"\u5973":"\u7537"})]}),(0,r.jsxs)(m.Z.Item,{children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(h.Z,{style:{marginRight:8}}),"\u7535\u8BDD"]}),(0,r.jsx)("div",{children:V})]}),(0,r.jsxs)(m.Z.Item,{children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(E.Z,{style:{marginRight:8}}),"\u90AE\u7BB1"]}),(0,r.jsx)("div",{children:w})]}),(0,r.jsxs)(m.Z.Item,{children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(i.Z,{style:{marginRight:8}}),"\u90E8\u95E8"]}),(0,r.jsx)("div",{children:k==null?void 0:k.deptName})]})]})},S=function(j){return j==="base"?(0,r.jsx)(o.default,{values:K}):j==="password"?(0,r.jsx)(s.default,{}):null};return K?(0,r.jsxs)("div",{children:[(0,r.jsxs)(t.Z,{gutter:[16,24],children:[(0,r.jsx)(p.Z,{lg:8,md:24,children:(0,r.jsx)(_.Z,{title:"\u4E2A\u4EBA\u4FE1\u606F",bordered:!1,loading:z,children:!z&&(0,r.jsxs)("div",{style:{textAlign:"center"},children:[(0,r.jsx)("div",{className:u.avatarHolder,onClick:function(){G(!0)},children:(0,r.jsx)("img",{alt:"",src:K.avatar})}),Y(K),(0,r.jsx)(a.Z,{dashed:!0}),(0,r.jsxs)("div",{className:u.team,children:[(0,r.jsx)("div",{className:u.teamTitle,children:"\u89D2\u8272"}),(0,r.jsx)(t.Z,{gutter:36,children:K.roles&&K.roles.map(function(v){return(0,r.jsxs)(p.Z,{lg:24,xl:12,children:[(0,r.jsx)(M.Z,{style:{marginRight:8}}),v.roleName]},v.roleId)})})]})]})})}),(0,r.jsx)(p.Z,{lg:16,md:24,children:(0,r.jsx)(_.Z,{bordered:!1,tabList:L,activeTabKey:P,onTabChange:function(j){X(j)},children:S(P)})})]}),(0,r.jsx)(R.default,{onFinished:function(){G(!1)},open:J,data:K.avatar})]}):(0,r.jsx)(T.S,{})},n=y},9025:function(W,I,e){e.d(I,{Lj:function(){return R},Nq:function(){return p},PR:function(){return M},_L:function(){return u},az:function(){return o},cn:function(){return m},gg:function(){return T},kX:function(){return a},lE:function(){return E},tW:function(){return L},wp:function(){return U},x7:function(){return y},xB:function(){return Z}});var B=e(15009),l=e.n(B),F=e(97857),g=e.n(F),x=e(99289),O=e.n(x),D=e(31981),c=e(76772),h=e(30964);function E(n,f){return i.apply(this,arguments)}function i(){return i=O()(l()().mark(function n(f,C){return l()().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.abrupt("return",(0,c.request)("/api/system/user/list",g()({method:"GET",headers:{"Content-Type":"application/json;charset=UTF-8"},params:f},C||{})));case 1:case"end":return P.stop()}},n)})),i.apply(this,arguments)}function M(n,f){return(0,c.request)("/api/system/user/".concat(n),g()({method:"GET"},f||{}))}function m(n,f){return t.apply(this,arguments)}function t(){return t=O()(l()().mark(function n(f,C){return l()().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.abrupt("return",(0,c.request)("/api/system/user",g()({method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:f},C||{})));case 1:case"end":return P.stop()}},n)})),t.apply(this,arguments)}function p(n,f){return _.apply(this,arguments)}function _(){return _=O()(l()().mark(function n(f,C){return l()().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.abrupt("return",(0,c.request)("/api/system/user",g()({method:"PUT",headers:{"Content-Type":"application/json;charset=UTF-8"},data:f},C||{})));case 1:case"end":return P.stop()}},n)})),_.apply(this,arguments)}function a(n,f){return d.apply(this,arguments)}function d(){return d=O()(l()().mark(function n(f,C){return l()().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.abrupt("return",(0,c.request)("/api/system/user/".concat(f),g()({method:"DELETE"},C||{})));case 1:case"end":return P.stop()}},n)})),d.apply(this,arguments)}function u(n,f){return(0,h.su)("/api/system/user/export",{params:n},"user_".concat(new Date().getTime(),".xlsx"))}function o(n,f){var C={userId:n,status:f};return(0,c.request)("/api/system/user/changeStatus",{method:"put",data:C})}function s(){return request("/api/system/user/profile",{method:"get"})}function R(n){return(0,c.request)("/api/system/user/profile",{method:"put",data:n})}function Z(n,f){var C={userId:n,password:f};return(0,c.request)("/api/system/user/resetPwd",{method:"put",data:C})}function U(n,f){var C={oldPassword:n,newPassword:f};return(0,c.request)("/api/system/user/profile/updatePwd",{method:"put",params:C})}function T(n){return(0,c.request)("/api/system/user/profile/avatar",{method:"post",data:n})}function r(n){return request("/system/user/authRole/"+n,{method:"get"})}function L(n){return(0,c.request)("/system/user/authRole",{method:"put",params:n})}function y(n){return new Promise(function(f){(0,c.request)("/api/system/user/deptTree",{method:"get",params:n}).then(function(C){if(C&&C.code===200){var A=(0,D.lt)(C.data);f(A)}else f([])})})}},30964:function(W,I,e){e.d(I,{p6:function(){return E},su:function(){return i}});var B=e(15009),l=e.n(B),F=e(97857),g=e.n(F),x=e(99289),O=e.n(x),D=e(76772),c={xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",zip:"application/zip"};function h(t,p){var _=document.createElement("a"),a=new Blob([t.data],{type:p}),d=new RegExp("filename=([^;]+\\.[^\\.;]+);*"),u=decodeURI(t.headers["content-disposition"]),o=d.exec(u),s=o?o[1]:"file";s=s.replace(/"/g,""),_.style.display="none",_.href=URL.createObjectURL(a),_.setAttribute("download",s),document.body.appendChild(_),_.click(),URL.revokeObjectURL(_.href),document.body.removeChild(_)}function E(t){(0,D.request)(t,{method:"GET",responseType:"blob",getResponse:!0}).then(function(p){h(p,c.zip)})}function i(t,p,_){return M.apply(this,arguments)}function M(){return M=O()(l()().mark(function t(p,_,a){return l()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,D.request)(p,g()(g()({},_),{},{method:"POST",responseType:"blob"})).then(function(o){var s=document.createElement("a"),R=o;s.style.display="none",s.href=URL.createObjectURL(R),s.setAttribute("download",a),document.body.appendChild(s),s.click(),URL.revokeObjectURL(s.href),document.body.removeChild(s)}));case 1:case"end":return u.stop()}},t)})),M.apply(this,arguments)}function m(t){window.location.href="/api/common/download?fileName=".concat(encodeURI(t),"&delete=",!0)}},31981:function(W,I,e){e.d(I,{C2:function(){return l},lt:function(){return g}});var B=e(87735);function l(x,O,D,c,h,E){var i={id:O||"id",name:D||"name",parentId:c||"parentId",parentName:h||"parentName",childrenList:E||"children"},M=[],m=[],t=[];x.forEach(function(_){var a=_,d=a[i.parentId];M[d]||(M[d]=[]),a.key=a[i.id],a.title=a[i.name],a.value=a[i.id],a[i.childrenList]=null,m[a[i.id]]=a,M[d].push(a)}),x.forEach(function(_){var a=_,d=a[i.parentId];m[d]||(a[i.parentName]="",t.push(a))});function p(_){var a=_;M[a[i.id]]&&(a[i.childrenList]||(a[i.childrenList]=[]),a[i.childrenList]=M[a[i.id]]),a[i.childrenList]&&a[i.childrenList].forEach(function(d){var u=d;u[i.parentName]=a[i.name],p(u)})}return t.forEach(function(_){p(_)}),t}var F=function(){return parse(window.location.href.split("?")[1])};function g(x){var O=x.map(function(D){var c={id:D.id,title:D.label,key:"".concat(D.id),value:D.id};return D.children&&(c.children=g(D.children)),c});return O}},68906:function(W,I,e){e.r(I)}}]);