👨🏻‍💻👩🏻‍💻 Use Ant Design like a Pro!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
31 KiB

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3930],{83011:function(je,q,n){var o=n(35361),E=n(50959),I=n(8941),$=n(69164),i=function(Q,Y){return E.createElement($.Z,(0,o.Z)((0,o.Z)({},Q),{},{ref:Y,icon:I.Z}))};i.displayName="EditOutlined",q.Z=E.forwardRef(i)},1442:function(je,q,n){var o=n(35361),E=n(50959),I=n(63374),$=n(69164),i=function(Q,Y){return E.createElement($.Z,(0,o.Z)((0,o.Z)({},Q),{},{ref:Y,icon:I.Z}))};i.displayName="PlusOutlined",q.Z=E.forwardRef(i)},46880:function(je,q,n){n.d(q,{vY:function(){return rt}});var o=n(30360),E=n(11642),I=n(73356),$=n(56929),i=n(35361),Z=n(50959),Q=n(70616),Y=n(69164),J=function(t,r){return Z.createElement(Y.Z,(0,i.Z)((0,i.Z)({},t),{},{ref:r,icon:Q.Z}))};J.displayName="CloseOutlined";var K=Z.forwardRef(J),le=n(67880),ie=function(t,r){return Z.createElement(Y.Z,(0,i.Z)((0,i.Z)({},t),{},{ref:r,icon:le.Z}))};ie.displayName="CheckOutlined";var H=Z.forwardRef(ie),A=n(83011),W=n(6457),B=n(8376),f=n(9146),de=n(48578),y=n(16965),x=n(32923),N=n(10994),e=n(11527),ve=function(t){var r=t.padding;return(0,e.jsx)("div",{style:{padding:r||"0 24px"},children:(0,e.jsx)(x.Z,{style:{margin:0}})})},ce={xs:2,sm:2,md:4,lg:4,xl:6,xxl:6},ue=function(t){var r=t.size,s=t.active,v=(0,Z.useMemo)(function(){return{lg:!0,md:!0,sm:!1,xl:!1,xs:!1,xxl:!1}},[]),p=de.ZP.useBreakpoint()||v,S=Object.keys(p).filter(function(M){return p[M]===!0})[0]||"md",j=r===void 0?ce[S]||6:r,z=function(h){return h===0?0:j>2?42:16};return(0,e.jsx)(y.Z,{bordered:!1,style:{marginBlockEnd:16},children:(0,e.jsx)("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:new Array(j).fill(null).map(function(M,h){return(0,e.jsxs)("div",{style:{borderInlineStart:j>2&&h===1?"1px solid rgba(0,0,0,0.06)":void 0,paddingInlineStart:z(h),flex:1,marginInlineEnd:h===0?16:0},children:[(0,e.jsx)(f.Z,{active:s,paragraph:!1,title:{width:100,style:{marginBlockStart:0}}}),(0,e.jsx)(f.Z.Button,{active:s,style:{height:48}})]},h)})})})},oe=function(t){var r=t.active;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(y.Z,{bordered:!1,style:{borderRadius:0},bodyStyle:{padding:24},children:(0,e.jsxs)("div",{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,e.jsx)("div",{style:{maxWidth:"100%",flex:1},children:(0,e.jsx)(f.Z,{active:r,title:{width:100,style:{marginBlockStart:0}},paragraph:{rows:1,style:{margin:0}}})}),(0,e.jsx)(f.Z.Button,{active:r,size:"small",style:{width:165,marginBlockStart:12}})]})}),(0,e.jsx)(ve,{})]})},pe=function(t){var r=t.size,s=t.active,v=s===void 0?!0:s,p=t.actionButton;return(0,e.jsxs)(y.Z,{bordered:!1,bodyStyle:{padding:0},children:[new Array(r).fill(null).map(function(S,j){return(0,e.jsx)(oe,{active:!!v},j)}),p!==!1&&(0,e.jsx)(y.Z,{bordered:!1,style:{borderStartEndRadius:0,borderTopLeftRadius:0},bodyStyle:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,e.jsx)(f.Z.Button,{style:{width:102},active:v,size:"small"})})]})},w=function(t){var r=t.active;return(0,e.jsxs)("div",{style:{marginBlockEnd:16},children:[(0,e.jsx)(f.Z,{paragraph:!1,title:{width:185}}),(0,e.jsx)(f.Z.Button,{active:r,size:"small"})]})},ee=function(t){var r=t.active;return(0,e.jsx)(y.Z,{bordered:!1,style:{borderBottomRightRadius:0,borderBottomLeftRadius:0},bodyStyle:{paddingBlockEnd:8},children:(0,e.jsxs)(N.Z,{style:{width:"100%",justifyContent:"space-between"},children:[(0,e.jsx)(f.Z.Button,{active:r,style:{width:200},size:"small"}),(0,e.jsxs)(N.Z,{children:[(0,e.jsx)(f.Z.Button,{active:r,size:"small",style:{width:120}}),(0,e.jsx)(f.Z.Button,{active:r,size:"small",style:{width:80}})]})]})})},Ue=function(t){var r=t.active,s=r===void 0?!0:r,v=t.statistic,p=t.actionButton,S=t.toolbar,j=t.pageHeader,z=t.list,M=z===void 0?5:z;return(0,e.jsxs)("div",{style:{width:"100%"},children:[j!==!1&&(0,e.jsx)(w,{active:s}),v!==!1&&(0,e.jsx)(ue,{size:v,active:s}),(S!==!1||M!==!1)&&(0,e.jsxs)(y.Z,{bordered:!1,bodyStyle:{padding:0},children:[S!==!1&&(0,e.jsx)(ee,{active:s}),M!==!1&&(0,e.jsx)(pe,{size:M,active:s,actionButton:p})]})]})},He=Ue,Fe={xs:1,sm:2,md:3,lg:3,xl:3,xxl:4},Ge=function(t){var r=t.active;return(0,e.jsxs)("div",{style:{marginBlockStart:32},children:[(0,e.jsx)(f.Z.Button,{active:r,size:"small",style:{width:100,marginBlockEnd:16}}),(0,e.jsxs)("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:[(0,e.jsxs)("div",{style:{flex:1,marginInlineEnd:24,maxWidth:300},children:[(0,e.jsx)(f.Z,{active:r,paragraph:!1,title:{style:{marginBlockStart:0}}}),(0,e.jsx)(f.Z,{active:r,paragraph:!1,title:{style:{marginBlockStart:8}}}),(0,e.jsx)(f.Z,{active:r,paragraph:!1,title:{style:{marginBlockStart:8}}})]}),(0,e.jsx)("div",{style:{flex:1,alignItems:"center",justifyContent:"center"},children:(0,e.jsxs)("div",{style:{maxWidth:300,margin:"auto"},children:[(0,e.jsx)(f.Z,{active:r,paragraph:!1,title:{style:{marginBlockStart:0}}}),(0,e.jsx)(f.Z,{active:r,paragraph:!1,title:{style:{marginBlockStart:8}}})]})})]})]})},Ve=function(t){var r=t.size,s=t.active,v=(0,Z.useMemo)(function(){return{lg:!0,md:!0,sm:!1,xl:!1,xs:!1,xxl:!1}},[]),p=de.ZP.useBreakpoint()||v,S=Object.keys(p).filter(function(z){return p[z]===!0})[0]||"md",j=r===void 0?Fe[S]||3:r;return(0,e.jsx)("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:new Array(j).fill(null).map(function(z,M){return(0,e.jsxs)("div",{style:{flex:1,paddingInlineStart:M===0?0:24,paddingInlineEnd:M===j-1?0:24},children:[(0,e.jsx)(f.Z,{active:s,paragraph:!1,title:{style:{marginBlockStart:0}}}),(0,e.jsx)(f.Z,{active:s,paragraph:!1,title:{style:{marginBlockStart:8}}}),(0,e.jsx)(f.Z,{active:s,paragraph:!1,title:{style:{marginBlockStart:8}}})]},M)})})},Ae=function(t){var r=t.active,s=t.header,v=s===void 0?!1:s,p=(0,Z.useMemo)(function(){return{lg:!0,md:!0,sm:!1,xl:!1,xs:!1,xxl:!1}},[]),S=de.ZP.useBreakpoint()||p,j=Object.keys(S).filter(function(M){return S[M]===!0})[0]||"md",z=Fe[j]||3;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{style:{display:"flex",background:v?"rgba(0,0,0,0.02)":"none",padding:"24px 8px"},children:[new Array(z).fill(null).map(function(M,h){return(0,e.jsx)("div",{style:{flex:1,paddingInlineStart:v&&h===0?0:20,paddingInlineEnd:32},children:(0,e.jsx)(f.Z,{active:r,paragraph:!1,title:{style:{margin:0,height:24,width:v?"75px":"100%"}}})},h)}),(0,e.jsx)("div",{style:{flex:3,paddingInlineStart:32},children:(0,e.jsx)(f.Z,{active:r,paragraph:!1,title:{style:{margin:0,height:24,width:v?"75px":"100%"}}})})]}),(0,e.jsx)(ve,{padding:"0px 0px"})]})},Xe=function(t){var r=t.active,s=t.size,v=s===void 0?4:s;return(0,e.jsxs)(y.Z,{bordered:!1,children:[(0,e.jsx)(f.Z.Button,{active:r,size:"small",style:{width:100,marginBlockEnd:16}}),(0,e.jsx)(Ae,{header:!0,active:r}),new Array(v).fill(null).map(function(p,S){return(0,e.jsx)(Ae,{active:r},S)}),(0,e.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",paddingBlockStart:16},children:(0,e.jsx)(f.Z,{active:r,paragraph:!1,title:{style:{margin:0,height:32,float:"right",maxWidth:"630px"}}})})]})},We=function(t){var r=t.active;return(0,e.jsxs)(y.Z,{bordered:!1,style:{borderStartEndRadius:0,borderTopLeftRadius:0},children:[(0,e.jsx)(f.Z.Button,{active:r,size:"small",style:{width:100,marginBlockEnd:16}}),(0,e.jsx)(Ve,{active:r}),(0,e.jsx)(Ge,{active:r})]})},ke=function(t){var r=t.active,s=r===void 0?!0:r,v=t.pageHeader,p=t.list;return(0,e.jsxs)("div",{style:{width:"100%"},children:[v!==!1&&(0,e.jsx)(w,{active:s}),(0,e.jsx)(We,{active:s}),p!==!1&&(0,e.jsx)(ve,{}),p!==!1&&(0,e.jsx)(Xe,{active:s,size:p})]})},a=ke,l=function(t){var r=t.active,s=r===void 0?!0:r,v=t.pageHeader;return(0,e.jsxs)("div",{style:{width:"100%"},children:[v!==!1&&(0,e.jsx)(w,{active:s}),(0,e.jsx)(y.Z,{children:(0,e.jsxs)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",padding:128},children:[(0,e.jsx)(f.Z.Avatar,{size:64,style:{marginBlockEnd:32}}),(0,e.jsx)(f.Z.Button,{active:s,style:{width:214,marginBlockEnd:8}}),(0,e.jsx)(f.Z.Button,{active:s,style:{width:328},size:"small"}),(0,e.jsxs)(N.Z,{style:{marginBlockStart:24},children:[(0,e.jsx)(f.Z.Button,{active:s,style:{width:116}}),(0,e.jsx)(f.Z.Button,{active:s,style:{width:116}})]})]})})]})},g=l,u=["type"],m=function(t){var r=t.type,s=r===void 0?"list":r,v=(0,$.Z)(t,u);return s==="result"?(0,e.jsx)(g,(0,i.Z)({},v)):s==="descriptions"?(0,e.jsx)(a,(0,i.Z)({},v)):(0,e.jsx)(He,(0,i.Z)({},v))},R=m,C=n(42247),fe=n(94683),ge=n(45057),te=n(78974),G=n(54070),me=n(64567),ye=n(959),Oe=n(99192),De=n(39617),Te=n(65589),xe=n(2223),Me=function(t){return(De.ZP.warn||De.ZP.warning)(t)};function Ie(c){var t=c.data,r=c.row;return(0,i.Z)((0,i.Z)({},t),r)}function he(c){var t=c.type||"single",r=(0,Oe.YB)(),s=(0,Te.Z)([],{value:c.editableKeys,onChange:c.onChange?function(D){var T;c==null||(T=c.onChange)===null||T===void 0||T.call(c,D,c.dataSource)}:void 0}),v=(0,ye.Z)(s,2),p=v[0],S=v[1],j=(0,Z.useMemo)(function(){var D=t==="single"?p==null?void 0:p.slice(0,1):p;return new Set(D)},[(p||[]).join(","),t]),z=(0,Z.useCallback)(function(D){return!!(p!=null&&p.includes((0,xe.sN)(D)))},[(p||[]).join(",")]),M=function(T){return j.size>0&&t==="single"?(Me(c.onlyOneLineEditorAlertMessage||r.getMessage("editableTable.onlyOneLineEditor","\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C")),!1):(j.add((0,xe.sN)(T)),S(Array.from(j)),!0)},h=function(T){return j.delete((0,xe.sN)(T)),S(Array.from(j)),!0},U=function(){var D=(0,I.Z)((0,E.Z)().mark(function T(X,L,_,ae){var se,k;return(0,E.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,c==null||(se=c.onCancel)===null||se===void 0?void 0:se.call(c,X,L,_,ae);case 2:if(k=d.sent,k!==!1){d.next=5;break}return d.abrupt("return",!1);case 5:return d.abrupt("return",!0);case 6:case"end":return d.stop()}},T)}));return function(X,L,_,ae){return D.apply(this,arguments)}}(),ne=function(){var D=(0,I.Z)((0,E.Z)().mark(function T(X,L,_){var ae,se,k;return(0,E.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,c==null||(ae=c.onSave)===null||ae===void 0?void 0:ae.call(c,X,L,_);case 2:if(se=d.sent,se!==!1){d.next=5;break}return d.abrupt("return",!1);case 5:return d.next=7,h(X);case 7:return k={data:c.dataSource,row:L,key:X,childrenColumnName:c.childrenColumnName||"children"},c.setDataSource(Ie(k)),d.abrupt("return",!0);case 10:case"end":return d.stop()}},T)}));return function(X,L,_){return D.apply(this,arguments)}}(),V=r.getMessage("editableTable.action.save","\u4FDD\u5B58"),Pe=r.getMessage("editableTable.action.delete","\u5220\u9664"),O=r.getMessage("editableTable.action.cancel","\u53D6\u6D88"),Se=(0,Z.useCallback)(function(D,T){var X=(0,i.Z)({recordKey:D,cancelEditable:h,onCancel:U,onSave:ne,editableKeys:p,setEditableRowKeys:S,saveText:V,cancelText:O,deleteText:Pe,deletePopconfirmMessage:"".concat(r.getMessage("deleteThisLine","\u5220\u9664\u6B64\u9879"),"?"),editorType:"Map"},T),L=(0,xe.aX)(c.dataSource,X);return c.actionRender?c.actionRender(c.dataSource,X,{save:L.save,delete:L.delete,cancel:L.cancel}):[L.save,L.delete,L.cancel]},[p&&p.join(","),c.dataSource]);return{editableKeys:p,setEditableRowKeys:S,isEditable:z,actionRender:Se,startEditable:M,cancelEditable:h}}var re=n(16458),be=n(71503),Ce=n(5519),Qe=n(38751),Le=n(13763),Ye=n(85108),Je=function(t,r){var s=r||{},v=s.onRequestError,p=s.effects,S=s.manual,j=s.dataSource,z=s.defaultDataSource,M=s.onDataSourceChange,h=(0,Te.Z)(z,{value:j,onChange:M}),U=(0,ye.Z)(h,2),ne=U[0],V=U[1],Pe=(0,Te.Z)(r==null?void 0:r.loading,{value:r==null?void 0:r.loading,onChange:r==null?void 0:r.onLoadingChange}),O=(0,ye.Z)(Pe,2),Se=O[0],D=O[1],T=function(_){V(_),D(!1)},X=function(){var L=(0,I.Z)((0,E.Z)().mark(function _(){var ae,se,k;return(0,E.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(!Se){d.next=2;break}return d.abrupt("return");case 2:return D(!0),d.prev=3,d.next=6,t();case 6:if(d.t0=d.sent,d.t0){d.next=9;break}d.t0={};case 9:ae=d.t0,se=ae.data,k=ae.success,k!==!1&&T(se),d.next=23;break;case 15:if(d.prev=15,d.t1=d.catch(3),v!==void 0){d.next=21;break}throw new Error(d.t1);case 21:v(d.t1);case 22:D(!1);case 23:return d.prev=23,D(!1),d.finish(23);case 26:case"end":return d.stop()}},_,null,[[3,15,23,26]])}));return function(){return L.apply(this,arguments)}}();return(0,Z.useEffect)(function(){S||X()},[].concat((0,o.Z)(p||[]),[S])),{dataSource:ne,setDataSource:V,loading:Se,reload:function(){return X()}}},qe=Je,Ke=n(34829),et=["valueEnum","render","renderText","mode","plain","dataIndex","request","params","editable"],Be=["request","columns","params","dataSource","onDataSourceChange","formProps","editable","loading","onLoadingChange","actionRef","onRequestError","emptyText"],we=function(t,r){var s=t.dataIndex;if(s){var v=Array.isArray(s)?(0,Ye.Z)(r,s):r[s];if(v!==void 0||v!==null)return v}return t.children},nt=function(t){var r,s=t.valueEnum,v=t.action,p=t.index,S=t.text,j=t.entity,z=t.mode,M=t.render,h=t.editableUtils,U=t.valueType,ne=t.plain,V=t.dataIndex,Pe=t.request,O=t.renderFormItem,Se=t.params,D=t.emptyText,T=W.ZP.useFormInstance(),X=(r=Ke.Ow.useToken)===null||r===void 0?void 0:r.call(Ke.Ow),L=X.token,_={text:S,valueEnum:s,mode:z||"read",proFieldProps:{emptyText:D,render:M?function(k){return M==null?void 0:M(k,j,p,v,(0,i.Z)((0,i.Z)({},t),{},{type:"descriptions"}))}:void 0},ignoreFormItem:!0,valueType:U,request:Pe,params:Se,plain:ne};if(z==="read"||!z||U==="option"){var ae=(0,C.w)(t.fieldProps,void 0,(0,i.Z)((0,i.Z)({},t),{},{rowKey:V,isEditable:!1}));return(0,e.jsx)(B.Z,(0,i.Z)((0,i.Z)({name:V},_),{},{fieldProps:ae}))}var se=function(){var P,d=(0,C.w)(t.formItemProps,T,(0,i.Z)((0,i.Z)({},t),{},{rowKey:V,isEditable:!0})),Ee=(0,C.w)(t.fieldProps,T,(0,i.Z)((0,i.Z)({},t),{},{rowKey:V,isEditable:!0}));return(0,e.jsxs)("div",{style:{display:"flex",gap:L.marginXS,alignItems:"baseline"},children:[(0,e.jsx)(fe.U,(0,i.Z)((0,i.Z)({name:V},d),{},{style:(0,i.Z)({margin:0},(d==null?void 0:d.style)||{}),initialValue:S||(d==null?void 0:d.initialValue),children:(0,e.jsx)(B.Z,(0,i.Z)((0,i.Z)({},_),{},{proFieldProps:(0,i.Z)({},_.proFieldProps),renderFormItem:O?function(){return O==null?void 0:O((0,i.Z)((0,i.Z)({},t),{},{type:"descriptions"}),{isEditable:!0,recordKey:V,record:T.getFieldValue([V].flat(1)),defaultRender:function(){return(0,e.jsx)(B.Z,(0,i.Z)((0,i.Z)({},_),{},{fieldProps:Ee}))},type:"descriptions"},T)}:void 0,fieldProps:Ee}))})),(0,e.jsx)("div",{style:{display:"flex",maxHeight:L.controlHeight,alignItems:"center",gap:L.marginXS},children:h==null||(P=h.actionRender)===null||P===void 0?void 0:P.call(h,V||p,{cancelText:(0,e.jsx)(K,{}),saveText:(0,e.jsx)(H,{}),deleteText:!1})})]})};return(0,e.jsx)("div",{style:{marginTop:-5,marginBottom:-5,marginLeft:0,marginRight:0},children:se()})},lt=function(t,r,s,v,p){var S,j=[],z=(0,ge.n)(be.Z,"5.8.0")>=0,M=t==null||(S=t.map)===null||S===void 0?void 0:S.call(t,function(h,U){var ne,V,Pe;if(Z.isValidElement(h))return z?{children:h}:h;var O=h,Se=O.valueEnum,D=O.render,T=O.renderText,X=O.mode,L=O.plain,_=O.dataIndex,ae=O.request,se=O.params,k=O.editable,P=(0,$.Z)(O,et),d=(ne=we(h,r))!==null&&ne!==void 0?ne:P.children,Ee=T?T(d,r,U,s):d,Ze=typeof P.title=="function"?P.title(h,"descriptions",null):P.title,b=typeof P.valueType=="function"?P.valueType(r||{},"descriptions"):P.valueType,F=v==null?void 0:v.isEditable(_||U),Re=X||F?"edit":"read",$e=v&&Re==="read"&&k!==!1&&(k==null?void 0:k(Ee,r,U))!==!1,ze=$e?N.Z:Z.Fragment,_e=Re==="edit"?Ee:(0,te.X)(Ee,h,Ee),Ne=z&&b!=="option"?(0,i.Z)((0,i.Z)({},P),{},{key:P.key||((V=P.label)===null||V===void 0?void 0:V.toString())||U,label:(Ze||P.label||P.tooltip||P.tip)&&(0,e.jsx)(G.G,{label:Ze||P.label,tooltip:P.tooltip||P.tip,ellipsis:h.ellipsis}),children:(0,e.jsxs)(ze,{children:[(0,e.jsx)(nt,(0,i.Z)((0,i.Z)({},h),{},{dataIndex:h.dataIndex||U,mode:Re,text:_e,valueType:b,entity:r,index:U,emptyText:p,action:s,editableUtils:v})),$e&&(0,e.jsx)(A.Z,{onClick:function(){v==null||v.startEditable(_||U)}})]})}):(0,Z.createElement)(Ce.Z.Item,(0,i.Z)((0,i.Z)({},P),{},{key:P.key||((Pe=P.label)===null||Pe===void 0?void 0:Pe.toString())||U,label:(Ze||P.label||P.tooltip||P.tip)&&(0,e.jsx)(G.G,{label:Ze||P.label,tooltip:P.tooltip||P.tip,ellipsis:h.ellipsis})}),(0,e.jsxs)(ze,{children:[(0,e.jsx)(nt,(0,i.Z)((0,i.Z)({},h),{},{dataIndex:h.dataIndex||U,mode:Re,text:_e,valueType:b,entity:r,index:U,action:s,editableUtils:v})),$e&&b!=="option"&&(0,e.jsx)(A.Z,{onClick:function(){v==null||v.startEditable(_||U)}})]}));return b==="option"?(j.push(Ne),null):Ne}).filter(function(h){return h});return{options:j!=null&&j.length?j:null,children:M}},at=function(t){return(0,e.jsx)(Ce.Z.Item,(0,i.Z)((0,i.Z)({},t),{},{children:t.children}))};at.displayName="ProDescriptionsItem";var it=function(t){return t.children},rt=function(t){var r,s=t.request,v=t.columns,p=t.params,S=t.dataSource,j=t.onDataSourceChange,z=t.formProps,M=t.editable,h=t.loading,U=t.onLoadingChange,ne=t.actionRef,V=t.onRequestError,Pe=t.emptyText,O=(0,$.Z)(t,Be),Se=(0,Z.useContext)(Qe.ZP.ConfigContext),D=qe((0,I.Z)((0,E.Z)().mark(function Ee(){var Ze;return(0,E.Z)().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:if(!s){F.next=6;break}return F.next=3,s(p||{});case 3:F.t0=F.sent,F.next=7;break;case 6:F.t0={data:{}};case 7:return Ze=F.t0,F.abrupt("return",Ze);case 9:case"end":return F.stop()}},Ee)})),{onRequestError:V,effects:[(0,me.ZP)(p)],manual:!s,dataSource:S,loading:h,onLoadingChange:U,onDataSourceChange:j}),T=he((0,i.Z)((0,i.Z)({},t.editable),{},{childrenColumnName:void 0,dataSource:D.dataSource,setDataSource:D.setDataSource}));if((0,Z.useEffect)(function(){ne&&(ne.current=(0,i.Z)({reload:D.reload},T))},[D,ne,T]),D.loading||D.loading===void 0&&s)return(0,e.jsx)(R,{type:"descriptions",list:!1,pageHeader:!1});var X=function(){var Ze=(0,Le.Z)(t.children).filter(Boolean).map(function(b){if(!Z.isValidElement(b))return b;var F=b==null?void 0:b.props,Re=F.valueEnum,$e=F.valueType,ze=F.dataIndex,_e=F.ellipsis,Ne=F.copyable,tt=F.request;return!$e&&!Re&&!ze&&!tt&&!_e&&!Ne&&b.type.displayName!=="ProDescriptionsItem"?b:(0,i.Z)((0,i.Z)({},b==null?void 0:b.props),{},{entity:S})});return[].concat((0,o.Z)(v||[]),(0,o.Z)(Ze)).filter(function(b){return!b||b!=null&&b.valueType&&["index","indexBorder"].includes(b==null?void 0:b.valueType)?!1:!(b!=null&&b.hideInDescriptions)}).sort(function(b,F){return F.order||b.order?(F.order||0)-(b.order||0):(F.index||0)-(b.index||0)})},L=lt(X(),D.dataSource||{},(ne==null?void 0:ne.current)||D,M?T:void 0,t.emptyText),_=L.options,ae=L.children,se=M?W.ZP:it,k=null;(O.title||O.tooltip||O.tip)&&(k=(0,e.jsx)(G.G,{label:O.title,tooltip:O.tooltip||O.tip}));var P=Se.getPrefixCls("pro-descriptions"),d=(0,ge.n)(be.Z,"5.8.0")>=0;return(0,e.jsx)(re.S,{children:(0,e.jsx)(se,(0,i.Z)((0,i.Z)({form:(r=t.editable)===null||r===void 0?void 0:r.form,component:!1,submitter:!1},z),{},{onFinish:void 0,children:(0,e.jsx)(Ce.Z,(0,i.Z)((0,i.Z)({className:P},O),{},{contentStyle:{minWidth:0},extra:O.extra?(0,e.jsxs)(N.Z,{children:[_,O.extra]}):_,title:k,items:d?ae:void 0,children:d?null:ae}))}),"form")})};rt.Item=at;var ot=null},60013:function(je,q,n){var o=n(35361),E=n(56929),I=n(50959),$=n(86047),i=n(8376),Z=n(11527),Q=["fieldProps","proFieldProps"],Y="dateTime",J=I.forwardRef(function(K,le){var ie=K.fieldProps,H=K.proFieldProps,A=(0,E.Z)(K,Q),W=(0,I.useContext)($.Z);return(0,Z.jsx)(i.Z,(0,o.Z)({ref:le,fieldProps:(0,o.Z)({getPopupContainer:W.getPopupContainer},ie),valueType:Y,proFieldProps:H,filedConfig:{valueType:Y,customLightMode:!0}},A))});q.Z=J},5778:function(je,q,n){var o=n(35361),E=n(56929),I=n(75442),$=n(3590),i=n(50959),Z=n(33359),Q=n(8376),Y=n(11527),J=["fieldProps","options","radioType","layout","proFieldProps","valueEnum"],K=i.forwardRef(function(A,W){var B=A.fieldProps,f=A.options,de=A.radioType,y=A.layout,x=A.proFieldProps,N=A.valueEnum,e=(0,E.Z)(A,J);return(0,Y.jsx)(Q.Z,(0,o.Z)((0,o.Z)({valueType:de==="button"?"radioButton":"radio",ref:W,valueEnum:(0,I.h)(N,void 0)},e),{},{fieldProps:(0,o.Z)({options:f,layout:y},B),proFieldProps:x,filedConfig:{customLightMode:!0}}))}),le=i.forwardRef(function(A,W){var B=A.fieldProps,f=A.children;return(0,Y.jsx)($.ZP,(0,o.Z)((0,o.Z)({},B),{},{ref:W,children:f}))}),ie=(0,Z.G)(le,{valuePropName:"checked",ignoreWidth:!0}),H=ie;H.Group=K,H.Button=$.ZP.Button,H.displayName="ProFormComponent",q.Z=H},34635:function(je,q,n){var o=n(35361),E=n(56929),I=n(75442),$=n(50959),i=n(86047),Z=n(8376),Q=n(11527),Y=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],J=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],K=function(B,f){var de=B.fieldProps,y=B.children,x=B.params,N=B.proFieldProps,e=B.mode,ve=B.valueEnum,ce=B.request,ue=B.showSearch,oe=B.options,pe=(0,E.Z)(B,Y),w=(0,$.useContext)(i.Z);return(0,Q.jsx)(Z.Z,(0,o.Z)((0,o.Z)({valueEnum:(0,I.h)(ve),request:ce,params:x,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,o.Z)({options:oe,mode:e,showSearch:ue,getPopupContainer:w.getPopupContainer},de),ref:f,proFieldProps:N},pe),{},{children:y}))},le=$.forwardRef(function(W,B){var f=W.fieldProps,de=W.children,y=W.params,x=W.proFieldProps,N=W.mode,e=W.valueEnum,ve=W.request,ce=W.options,ue=(0,E.Z)(W,J),oe=(0,o.Z)({options:ce,mode:N||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},f),pe=(0,$.useContext)(i.Z);return(0,Q.jsx)(Z.Z,(0,o.Z)((0,o.Z)({valueEnum:(0,I.h)(e),request:ve,params:y,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,o.Z)({getPopupContainer:pe.getPopupContainer},oe),ref:B,proFieldProps:x},ue),{},{children:de}))}),ie=$.forwardRef(K),H=le,A=ie;A.SearchSelect=H,A.displayName="ProFormComponent",q.Z=A},44896:function(je,q,n){var o=n(959),E=n(35361),I=n(56929),$=n(65589),i=n(26935),Z=n(23835),Q=n(71770),Y=n(50959),J=n(8376),K=n(11527),le=["fieldProps","proFieldProps"],ie=["fieldProps","proFieldProps"],H="text",A=function(y){var x=y.fieldProps,N=y.proFieldProps,e=(0,I.Z)(y,le);return(0,K.jsx)(J.Z,(0,E.Z)({valueType:H,fieldProps:x,filedConfig:{valueType:H},proFieldProps:N},e))},W=function(y){var x=(0,$.Z)(y.open||!1,{value:y.open,onChange:y.onOpenChange}),N=(0,o.Z)(x,2),e=N[0],ve=N[1];return(0,K.jsx)(i.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(ue){var oe,pe=ue.getFieldValue(y.name||[]);return(0,K.jsx)(Z.Z,(0,E.Z)((0,E.Z)({getPopupContainer:function(ee){return ee&&ee.parentNode?ee.parentNode:ee},onOpenChange:ve,content:(0,K.jsxs)("div",{style:{padding:"4px 0"},children:[(oe=y.statusRender)===null||oe===void 0?void 0:oe.call(y,pe),y.strengthText?(0,K.jsx)("div",{style:{marginTop:10},children:(0,K.jsx)("span",{children:y.strengthText})}):null]}),overlayStyle:{width:240},placement:"right"},y.popoverProps),{},{open:e,children:y.children}))}})},B=function(y){var x=y.fieldProps,N=y.proFieldProps,e=(0,I.Z)(y,ie),ve=(0,Y.useState)(!1),ce=(0,o.Z)(ve,2),ue=ce[0],oe=ce[1];return x!=null&&x.statusRender&&e.name?(0,K.jsx)(W,{name:e.name,statusRender:x==null?void 0:x.statusRender,popoverProps:x==null?void 0:x.popoverProps,strengthText:x==null?void 0:x.strengthText,open:ue,onOpenChange:oe,children:(0,K.jsx)(J.Z,(0,E.Z)({valueType:"password",fieldProps:(0,E.Z)((0,E.Z)({},(0,Q.Z)(x,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(w){var ee;x==null||(ee=x.onBlur)===null||ee===void 0||ee.call(x,w),oe(!1)},onClick:function(w){var ee;x==null||(ee=x.onClick)===null||ee===void 0||ee.call(x,w),oe(!0)}}),proFieldProps:N,filedConfig:{valueType:H}},e))}):(0,K.jsx)(J.Z,(0,E.Z)({valueType:"password",fieldProps:x,proFieldProps:N,filedConfig:{valueType:H}},e))},f=A;f.Password=B,f.displayName="ProFormComponent",q.Z=f},19805:function(je,q,n){var o=n(35361),E=n(56929),I=n(50959),$=n(8376),i=n(11527),Z=["fieldProps","proFieldProps"],Q=function(J,K){var le=J.fieldProps,ie=J.proFieldProps,H=(0,E.Z)(J,Z);return(0,i.jsx)($.Z,(0,o.Z)({ref:K,valueType:"textarea",fieldProps:le,proFieldProps:ie},H))};q.Z=I.forwardRef(Q)},5519:function(je,q,n){n.d(q,{Z:function(){return ke}});var o=n(50959),E=n(82187),I=n.n(E),$=n(27189),i=n(92576),Z=n(50483),Q=n(63671),J={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},le=o.createContext({}),ie=n(13763),H=function(a,l){var g={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&l.indexOf(u)<0&&(g[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,u=Object.getOwnPropertySymbols(a);m<u.length;m++)l.indexOf(u[m])<0&&Object.prototype.propertyIsEnumerable.call(a,u[m])&&(g[u[m]]=a[u[m]]);return g};const A=a=>(0,ie.Z)(a).map(l=>Object.assign(Object.assign({},l==null?void 0:l.props),{key:l.key}));function W(a,l,g){const u=o.useMemo(()=>l||A(g),[l,g]);return o.useMemo(()=>u.map(R=>{var{span:C}=R,fe=H(R,["span"]);return Object.assign(Object.assign({},fe),{span:typeof C=="number"?C:(0,$.m9)(a,C)})}),[u,a])}function B(a,l,g){let u=a,m=!1;return(g===void 0||g>l)&&(u=Object.assign(Object.assign({},a),{span:l}),m=g!==void 0),[u,m]}function f(a,l){const g=[];let u=[],m=l,R=!1;return a.filter(C=>C).forEach((C,fe)=>{const ge=C==null?void 0:C.span,te=ge||1;if(fe===a.length-1){const[G,me]=B(C,m,ge);R=R||me,u.push(G),g.push(u);return}if(te<m)m-=te,u.push(C);else{const[G,me]=B(C,m,te);R=R||me,u.push(G),g.push(u),m=l,u=[]}}),[g,R]}var y=(a,l)=>{const[g,u]=(0,o.useMemo)(()=>f(l,a),[l,a]);return g},N=a=>{let{children:l}=a;return l};function e(a){return a!=null}var ce=a=>{const{itemPrefixCls:l,component:g,span:u,className:m,style:R,labelStyle:C,contentStyle:fe,bordered:ge,label:te,content:G,colon:me}=a,ye=g;return ge?o.createElement(ye,{className:I()({[`${l}-item-label`]:e(te),[`${l}-item-content`]:e(G)},m),style:R,colSpan:u},e(te)&&o.createElement("span",{style:C},te),e(G)&&o.createElement("span",{style:fe},G)):o.createElement(ye,{className:I()(`${l}-item`,m),style:R,colSpan:u},o.createElement("div",{className:`${l}-item-container`},(te||te===0)&&o.createElement("span",{className:I()(`${l}-item-label`,{[`${l}-item-no-colon`]:!me}),style:C},te),(G||G===0)&&o.createElement("span",{className:I()(`${l}-item-content`),style:fe},G)))};function ue(a,l,g){let{colon:u,prefixCls:m,bordered:R}=l,{component:C,type:fe,showLabel:ge,showContent:te,labelStyle:G,contentStyle:me}=g;return a.map((ye,Oe)=>{let{label:De,children:Te,prefixCls:xe=m,className:Me,style:Ie,labelStyle:he,contentStyle:re,span:be=1,key:Ce}=ye;return typeof C=="string"?o.createElement(ce,{key:`${fe}-${Ce||Oe}`,className:Me,style:Ie,labelStyle:Object.assign(Object.assign({},G),he),contentStyle:Object.assign(Object.assign({},me),re),span:be,colon:u,component:C,itemPrefixCls:xe,bordered:R,label:ge?De:null,content:te?Te:null}):[o.createElement(ce,{key:`label-${Ce||Oe}`,className:Me,style:Object.assign(Object.assign(Object.assign({},G),Ie),he),span:1,colon:u,component:C[0],itemPrefixCls:xe,bordered:R,label:De}),o.createElement(ce,{key:`content-${Ce||Oe}`,className:Me,style:Object.assign(Object.assign(Object.assign({},me),Ie),re),span:be*2-1,component:C[1],itemPrefixCls:xe,bordered:R,content:Te})]})}var pe=a=>{const l=o.useContext(le),{prefixCls:g,vertical:u,row:m,index:R,bordered:C}=a;return u?o.createElement(o.Fragment,null,o.createElement("tr",{key:`label-${R}`,className:`${g}-row`},ue(m,a,Object.assign({component:"th",type:"label",showLabel:!0},l))),o.createElement("tr",{key:`content-${R}`,className:`${g}-row`},ue(m,a,Object.assign({component:"td",type:"content",showContent:!0},l)))):o.createElement("tr",{key:R,className:`${g}-row`},ue(m,a,Object.assign({component:C?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},l)))},w=n(25446),ee=n(55985),Ue=n(87077),He=n(37324);const Fe=a=>{const{componentCls:l,labelBg:g}=a;return{[`&${l}-bordered`]:{[`> ${l}-view`]:{border:`${(0,w.bf)(a.lineWidth)} ${a.lineType} ${a.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"},[`${l}-row`]:{borderBottom:`${(0,w.bf)(a.lineWidth)} ${a.lineType} ${a.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${l}-item-label, > ${l}-item-content`]:{padding:`${(0,w.bf)(a.padding)} ${(0,w.bf)(a.paddingLG)}`,borderInlineEnd:`${(0,w.bf)(a.lineWidth)} ${a.lineType} ${a.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${l}-item-label`]:{color:a.colorTextSecondary,backgroundColor:g,"&::after":{display:"none"}}}},[`&${l}-middle`]:{[`${l}-row`]:{[`> ${l}-item-label, > ${l}-item-content`]:{padding:`${(0,w.bf)(a.paddingSM)} ${(0,w.bf)(a.paddingLG)}`}}},[`&${l}-small`]:{[`${l}-row`]:{[`> ${l}-item-label, > ${l}-item-content`]:{padding:`${(0,w.bf)(a.paddingXS)} ${(0,w.bf)(a.padding)}`}}}}}},Ge=a=>{const{componentCls:l,extraColor:g,itemPaddingBottom:u,colonMarginRight:m,colonMarginLeft:R,titleMarginBottom:C}=a;return{[l]:Object.assign(Object.assign(Object.assign({},(0,ee.Wf)(a)),Fe(a)),{["&-rtl"]:{direction:"rtl"},[`${l}-header`]:{display:"flex",alignItems:"center",marginBottom:C},[`${l}-title`]:Object.assign(Object.assign({},ee.vS),{flex:"auto",color:a.titleColor,fontWeight:a.fontWeightStrong,fontSize:a.fontSizeLG,lineHeight:a.lineHeightLG}),[`${l}-extra`]:{marginInlineStart:"auto",color:g,fontSize:a.fontSize},[`${l}-view`]:{width:"100%",borderRadius:a.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${l}-row`]:{"> th, > td":{paddingBottom:u},"&:last-child":{borderBottom:"none"}},[`${l}-item-label`]:{color:a.colorTextTertiary,fontWeight:"normal",fontSize:a.fontSize,lineHeight:a.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${(0,w.bf)(R)} ${(0,w.bf)(m)}`},[`&${l}-item-no-colon::after`]:{content:'""'}},[`${l}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${l}-item-content`]:{display:"table-cell",flex:1,color:a.contentColor,fontSize:a.fontSize,lineHeight:a.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${l}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${l}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${l}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${l}-row`]:{"> th, > td":{paddingBottom:a.paddingSM}}},"&-small":{[`${l}-row`]:{"> th, > td":{paddingBottom:a.paddingXS}}}})}},Ve=a=>({labelBg:a.colorFillAlter,titleColor:a.colorText,titleMarginBottom:a.fontSizeSM*a.lineHeightSM,itemPaddingBottom:a.padding,colonMarginRight:a.marginXS,colonMarginLeft:a.marginXXS/2,contentColor:a.colorText,extraColor:a.colorText});var Ae=(0,Ue.I$)("Descriptions",a=>{const l=(0,He.TS)(a,{});return Ge(l)},Ve),Xe=function(a,l){var g={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&l.indexOf(u)<0&&(g[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,u=Object.getOwnPropertySymbols(a);m<u.length;m++)l.indexOf(u[m])<0&&Object.prototype.propertyIsEnumerable.call(a,u[m])&&(g[u[m]]=a[u[m]]);return g};const We=a=>{const{prefixCls:l,title:g,extra:u,column:m,colon:R=!0,bordered:C,layout:fe,children:ge,className:te,rootClassName:G,style:me,size:ye,labelStyle:Oe,contentStyle:De,items:Te}=a,xe=Xe(a,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:Me,direction:Ie,descriptions:he}=o.useContext(i.E_),re=Me("descriptions",l),be=(0,Q.Z)(),Ce=o.useMemo(()=>{var Be;return typeof m=="number"?m:(Be=(0,$.m9)(be,Object.assign(Object.assign({},J),m)))!==null&&Be!==void 0?Be:3},[be,m]),Qe=W(be,Te,ge),Le=(0,Z.Z)(ye),Ye=y(Ce,Qe),[Je,qe,Ke]=Ae(re),et=o.useMemo(()=>({labelStyle:Oe,contentStyle:De}),[Oe,De]);return Je(o.createElement(le.Provider,{value:et},o.createElement("div",Object.assign({className:I()(re,he==null?void 0:he.className,{[`${re}-${Le}`]:Le&&Le!=="default",[`${re}-bordered`]:!!C,[`${re}-rtl`]:Ie==="rtl"},te,G,qe,Ke),style:Object.assign(Object.assign({},he==null?void 0:he.style),me)},xe),(g||u)&&o.createElement("div",{className:`${re}-header`},g&&o.createElement("div",{className:`${re}-title`},g),u&&o.createElement("div",{className:`${re}-extra`},u)),o.createElement("div",{className:`${re}-view`},o.createElement("table",null,o.createElement("tbody",null,Ye.map((Be,we)=>o.createElement(pe,{key:we,index:we,colon:R,prefixCls:re,vertical:fe==="vertical",bordered:C,row:Be}))))))))};We.Item=N;var ke=We}}]);