"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[118],{83766:function(Be,ge,o){o.d(ge,{vY:function(){return ot}});var W=o(49544),K=o(99932),ne=o(78450),j=o(58733),v=o(75782),ce=o(96157),ue=o(29597),ae=o(10466),le=o(31479),ve=o(72961),p=o(50959),E=o(37454),N=o(31491),G=o(76835),T=o(69199),te=o(68243),n=o(11527),ie=function(e){var r=e.padding;return(0,n.jsx)("div",{style:{padding:r||"0 24px"},children:(0,n.jsx)(T.Z,{style:{margin:0}})})},c={xs:2,sm:2,md:4,lg:4,xl:6,xxl:6},h=function(e){var r=e.size,i=e.active,l=(0,G.ZP)(),s=r===void 0?c[l]||6:r,f=function(y){return y===0?0:s>2?42:16};return(0,n.jsx)(N.Z,{bordered:!1,style:{marginBlockEnd:16},children:(0,n.jsx)("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:new Array(s).fill(null).map(function(P,y){return(0,n.jsxs)("div",{style:{borderInlineStart:s>2&&y===1?"1px solid rgba(0,0,0,0.06)":void 0,paddingInlineStart:f(y),flex:1,marginInlineEnd:y===0?16:0},children:[(0,n.jsx)(E.Z,{active:i,paragraph:!1,title:{width:100,style:{marginBlockStart:0}}}),(0,n.jsx)(E.Z.Button,{active:i,style:{height:48}})]},y)})})})},m=function(e){var r=e.active;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(N.Z,{bordered:!1,style:{borderRadius:0},bodyStyle:{padding:24},children:(0,n.jsxs)("div",{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,n.jsx)("div",{style:{maxWidth:"100%",flex:1},children:(0,n.jsx)(E.Z,{active:r,title:{width:100,style:{marginBlockStart:0}},paragraph:{rows:1,style:{margin:0}}})}),(0,n.jsx)(E.Z.Button,{active:r,size:"small",style:{width:165,marginBlockStart:12}})]})}),(0,n.jsx)(ie,{})]})},D=function(e){var r=e.size,i=e.active,l=i===void 0?!0:i,s=e.actionButton;return(0,n.jsxs)(N.Z,{bordered:!1,bodyStyle:{padding:0},children:[new Array(r).fill(null).map(function(f,P){return(0,n.jsx)(m,{active:!!l},P)}),s!==!1&&(0,n.jsx)(N.Z,{bordered:!1,style:{borderStartEndRadius:0,borderTopLeftRadius:0},bodyStyle:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,n.jsx)(E.Z.Button,{style:{width:102},active:l,size:"small"})})]})},R=function(e){var r=e.active;return(0,n.jsxs)("div",{style:{marginBlockEnd:16},children:[(0,n.jsx)(E.Z,{paragraph:!1,title:{width:185}}),(0,n.jsx)(E.Z.Button,{active:r,size:"small"})]})},J=function(e){var r=e.active;return(0,n.jsx)(N.Z,{bordered:!1,style:{borderBottomRightRadius:0,borderBottomLeftRadius:0},bodyStyle:{paddingBlockEnd:8},children:(0,n.jsxs)(te.Z,{style:{width:"100%",justifyContent:"space-between"},children:[(0,n.jsx)(E.Z.Button,{active:r,style:{width:200},size:"small"}),(0,n.jsxs)(te.Z,{children:[(0,n.jsx)(E.Z.Button,{active:r,size:"small",style:{width:120}}),(0,n.jsx)(E.Z.Button,{active:r,size:"small",style:{width:80}})]})]})})},U=function(e){var r=e.active,i=r===void 0?!0:r,l=e.statistic,s=e.actionButton,f=e.toolbar,P=e.pageHeader,y=e.list,Z=y===void 0?5:y;return(0,n.jsxs)("div",{style:{width:"100%"},children:[P!==!1&&(0,n.jsx)(R,{active:i}),l!==!1&&(0,n.jsx)(h,{size:l,active:i}),(f!==!1||Z!==!1)&&(0,n.jsxs)(N.Z,{bordered:!1,bodyStyle:{padding:0},children:[f!==!1&&(0,n.jsx)(J,{active:i}),Z!==!1&&(0,n.jsx)(D,{size:Z,active:i,actionButton:s})]})]})},q=U,ee={xs:1,sm:2,md:3,lg:3,xl:3,xxl:4},be=function(e){var r=e.active;return(0,n.jsxs)("div",{style:{marginBlockStart:32},children:[(0,n.jsx)(E.Z.Button,{active:r,size:"small",style:{width:100,marginBlockEnd:16}}),(0,n.jsxs)("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:[(0,n.jsxs)("div",{style:{flex:1,marginInlineEnd:24,maxWidth:300},children:[(0,n.jsx)(E.Z,{active:r,paragraph:!1,title:{style:{marginBlockStart:0}}}),(0,n.jsx)(E.Z,{active:r,paragraph:!1,title:{style:{marginBlockStart:8}}}),(0,n.jsx)(E.Z,{active:r,paragraph:!1,title:{style:{marginBlockStart:8}}})]}),(0,n.jsx)("div",{style:{flex:1,alignItems:"center",justifyContent:"center"},children:(0,n.jsxs)("div",{style:{maxWidth:300,margin:"auto"},children:[(0,n.jsx)(E.Z,{active:r,paragraph:!1,title:{style:{marginBlockStart:0}}}),(0,n.jsx)(E.Z,{active:r,paragraph:!1,title:{style:{marginBlockStart:8}}})]})})]})]})},fe=function(e){var r=e.size,i=e.active,l=(0,G.ZP)(),s=r===void 0?ee[l]||3:r;return(0,n.jsx)("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:new Array(s).fill(null).map(function(f,P){return(0,n.jsxs)("div",{style:{flex:1,paddingInlineStart:P===0?0:24,paddingInlineEnd:P===s-1?0:24},children:[(0,n.jsx)(E.Z,{active:i,paragraph:!1,title:{style:{marginBlockStart:0}}}),(0,n.jsx)(E.Z,{active:i,paragraph:!1,title:{style:{marginBlockStart:8}}}),(0,n.jsx)(E.Z,{active:i,paragraph:!1,title:{style:{marginBlockStart:8}}})]},P)})})},Le=function(e){var r=e.active,i=e.header,l=i===void 0?!1:i,s=(0,G.ZP)(),f=ee[s]||3;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{style:{display:"flex",background:l?"rgba(0,0,0,0.02)":"none",padding:"24px 8px"},children:[new Array(f).fill(null).map(function(P,y){return(0,n.jsx)("div",{style:{flex:1,paddingInlineStart:l&&y===0?0:20,paddingInlineEnd:32},children:(0,n.jsx)(E.Z,{active:r,paragraph:!1,title:{style:{margin:0,height:24,width:l?"75px":"100%"}}})},y)}),(0,n.jsx)("div",{style:{flex:3,paddingInlineStart:32},children:(0,n.jsx)(E.Z,{active:r,paragraph:!1,title:{style:{margin:0,height:24,width:l?"75px":"100%"}}})})]}),(0,n.jsx)(ie,{padding:"0px 0px"})]})},Me=function(e){var r=e.active,i=e.size,l=i===void 0?4:i;return(0,n.jsxs)(N.Z,{bordered:!1,children:[(0,n.jsx)(E.Z.Button,{active:r,size:"small",style:{width:100,marginBlockEnd:16}}),(0,n.jsx)(Le,{header:!0,active:r}),new Array(l).fill(null).map(function(s,f){return(0,n.jsx)(Le,{active:r},f)}),(0,n.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",paddingBlockStart:16},children:(0,n.jsx)(E.Z,{active:r,paragraph:!1,title:{style:{margin:0,height:32,float:"right",maxWidth:"630px"}}})})]})},Ne=function(e){var r=e.active;return(0,n.jsxs)(N.Z,{bordered:!1,style:{borderStartEndRadius:0,borderTopLeftRadius:0},children:[(0,n.jsx)(E.Z.Button,{active:r,size:"small",style:{width:100,marginBlockEnd:16}}),(0,n.jsx)(fe,{active:r}),(0,n.jsx)(be,{active:r})]})},t=function(e){var r=e.active,i=r===void 0?!0:r,l=e.pageHeader,s=e.list;return(0,n.jsxs)("div",{style:{width:"100%"},children:[l!==!1&&(0,n.jsx)(R,{active:i}),(0,n.jsx)(Ne,{active:i}),s!==!1&&(0,n.jsx)(ie,{}),s!==!1&&(0,n.jsx)(Me,{active:i,size:s})]})},d=t,S=function(e){var r=e.active,i=r===void 0?!0:r,l=e.pageHeader;return(0,n.jsxs)("div",{style:{width:"100%"},children:[l!==!1&&(0,n.jsx)(R,{active:i}),(0,n.jsx)(N.Z,{children:(0,n.jsxs)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",padding:128},children:[(0,n.jsx)(E.Z.Avatar,{size:64,style:{marginBlockEnd:32}}),(0,n.jsx)(E.Z.Button,{active:i,style:{width:214,marginBlockEnd:8}}),(0,n.jsx)(E.Z.Button,{active:i,style:{width:328},size:"small"}),(0,n.jsxs)(te.Z,{style:{marginBlockStart:24},children:[(0,n.jsx)(E.Z.Button,{active:i,style:{width:116}}),(0,n.jsx)(E.Z.Button,{active:i,style:{width:116}})]})]})})]})},u=S,b=["type"],k=function(e){var r=e.type,i=r===void 0?"list":r,l=(0,j.Z)(e,b);return i==="result"?(0,n.jsx)(u,(0,v.Z)({},l)):i==="descriptions"?(0,n.jsx)(d,(0,v.Z)({},l)):(0,n.jsx)(q,(0,v.Z)({},l))},me=k,he=o(87039),oe=o(64040),Pe=o(73924),Ze=o(14444),ye=o(91600),Se=o(35276),$e=o(21362),Ce=o(95027),pe=o(73730),Te=function(e){return($e.ZP.warn||$e.ZP.warning)(e)};function Re(a){var e=a.data,r=a.row;return(0,v.Z)((0,v.Z)({},e),r)}function He(a){var e=a.type||"single",r=(0,Se.YB)(),i=(0,Ce.Z)([],{value:a.editableKeys,onChange:a.onChange?function(C){var $;a==null||($=a.onChange)===null||$===void 0||$.call(a,C,a.dataSource)}:void 0}),l=(0,ye.Z)(i,2),s=l[0],f=l[1],P=(0,p.useMemo)(function(){var C=e==="single"?s==null?void 0:s.slice(0,1):s;return new Set(C)},[(s||[]).join(","),e]),y=(0,p.useCallback)(function(C){return!!(s!=null&&s.includes((0,pe.sN)(C)))},[(s||[]).join(",")]),Z=function($){return P.size>0&&e==="single"?(Te(a.onlyOneLineEditorAlertMessage||r.getMessage("editableTable.onlyOneLineEditor","\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C")),!1):(P.add((0,pe.sN)($)),f(Array.from(P)),!0)},w=function($){return P.delete((0,pe.sN)($)),f(Array.from(P)),!0},V=function(){var C=(0,ne.Z)((0,K.Z)().mark(function $(A,B,L,x){var Q,H;return(0,K.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,a==null||(Q=a.onCancel)===null||Q===void 0?void 0:Q.call(a,A,B,L,x);case 2:if(H=g.sent,H!==!1){g.next=5;break}return g.abrupt("return",!1);case 5:return g.abrupt("return",!0);case 6:case"end":return g.stop()}},$)}));return function(A,B,L,x){return C.apply(this,arguments)}}(),M=function(){var C=(0,ne.Z)((0,K.Z)().mark(function $(A,B,L){var x,Q,H;return(0,K.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,a==null||(x=a.onSave)===null||x===void 0?void 0:x.call(a,A,B,L);case 2:if(Q=g.sent,Q!==!1){g.next=5;break}return g.abrupt("return",!1);case 5:return w(A),H={data:a.dataSource,row:B,key:A,childrenColumnName:a.childrenColumnName||"children"},a.setDataSource(Re(H)),g.abrupt("return",!0);case 9:case"end":return g.stop()}},$)}));return function(A,B,L){return C.apply(this,arguments)}}(),F=r.getMessage("editableTable.action.save","\u4FDD\u5B58"),_=r.getMessage("editableTable.action.delete","\u5220\u9664"),z=r.getMessage("editableTable.action.cancel","\u53D6\u6D88"),Y=(0,p.useCallback)(function(C,$){var A=(0,v.Z)({recordKey:C,cancelEditable:w,onCancel:V,onSave:M,editableKeys:s,setEditableRowKeys:f,saveText:F,cancelText:z,deleteText:_,deletePopconfirmMessage:"".concat(r.getMessage("deleteThisLine","\u5220\u9664\u6B64\u884C"),"?"),editorType:"Map"},$),B=(0,pe.aX)(a.dataSource,A);return a.actionRender?a.actionRender(a.dataSource,A,{save:B.save,delete:B.delete,cancel:B.cancel}):[B.save,B.delete,B.cancel]},[s&&s.join(","),a.dataSource]);return{editableKeys:s,setEditableRowKeys:f,isEditable:y,actionRender:Y,startEditable:Z,cancelEditable:w}}var Ke=o(80407),Ge=o(84875),je=o.n(Ge),ze=o(77515),Ue=o(92753),Oe=o(20074),Xe=o(70458),Ve=o(85460),Ye=a=>{let{children:e}=a;return e};function we(a){return a!=null}var Ie=a=>{let{itemPrefixCls:e,component:r,span:i,className:l,style:s,labelStyle:f,contentStyle:P,bordered:y,label:Z,content:w,colon:V}=a;const M=r;return y?p.createElement(M,{className:je()({[`${e}-item-label`]:we(Z),[`${e}-item-content`]:we(w)},l),style:s,colSpan:i},we(Z)&&p.createElement("span",{style:f},Z),we(w)&&p.createElement("span",{style:P},w)):p.createElement(M,{className:je()(`${e}-item`,l),style:s,colSpan:i},p.createElement("div",{className:`${e}-item-container`},(Z||Z===0)&&p.createElement("span",{className:je()(`${e}-item-label`,{[`${e}-item-no-colon`]:!V}),style:f},Z),(w||w===0)&&p.createElement("span",{className:je()(`${e}-item-content`),style:P},w)))};function De(a,e,r){let{colon:i,prefixCls:l,bordered:s}=e,{component:f,type:P,showLabel:y,showContent:Z,labelStyle:w,contentStyle:V}=r;return a.map((M,F)=>{let{props:{label:_,children:z,prefixCls:Y=l,className:C,style:$,labelStyle:A,contentStyle:B,span:L=1},key:x}=M;return typeof f=="string"?p.createElement(Ie,{key:`${P}-${x||F}`,className:C,style:$,labelStyle:Object.assign(Object.assign({},w),A),contentStyle:Object.assign(Object.assign({},V),B),span:L,colon:i,component:f,itemPrefixCls:Y,bordered:s,label:y?_:null,content:Z?z:null}):[p.createElement(Ie,{key:`label-${x||F}`,className:C,style:Object.assign(Object.assign(Object.assign({},w),$),A),span:1,colon:i,component:f[0],itemPrefixCls:Y,bordered:s,label:_}),p.createElement(Ie,{key:`content-${x||F}`,className:C,style:Object.assign(Object.assign(Object.assign({},V),$),B),span:L*2-1,component:f[1],itemPrefixCls:Y,bordered:s,content:z})]})}var Ee=a=>{const e=p.useContext(se),{prefixCls:r,vertical:i,row:l,index:s,bordered:f}=a;return i?p.createElement(p.Fragment,null,p.createElement("tr",{key:`label-${s}`,className:`${r}-row`},De(l,a,Object.assign({component:"th",type:"label",showLabel:!0},e))),p.createElement("tr",{key:`content-${s}`,className:`${r}-row`},De(l,a,Object.assign({component:"td",type:"content",showContent:!0},e)))):p.createElement("tr",{key:s,className:`${r}-row`},De(l,a,Object.assign({component:f?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},e)))},Je=o(97624),Ae=o(74074),We=o(49272);const qe=a=>{const{componentCls:e,descriptionsSmallPadding:r,descriptionsDefaultPadding:i,descriptionsMiddlePadding:l,descriptionsBg:s}=a;return{[`&${e}-bordered`]:{[`${e}-view`]:{border:`${a.lineWidth}px ${a.lineType} ${a.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"}},[`${e}-item-label, ${e}-item-content`]:{padding:i,borderInlineEnd:`${a.lineWidth}px ${a.lineType} ${a.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`${e}-item-label`]:{color:a.colorTextSecondary,backgroundColor:s,"&::after":{display:"none"}},[`${e}-row`]:{borderBottom:`${a.lineWidth}px ${a.lineType} ${a.colorSplit}`,"&:last-child":{borderBottom:"none"}},[`&${e}-middle`]:{[`${e}-item-label, ${e}-item-content`]:{padding:l}},[`&${e}-small`]:{[`${e}-item-label, ${e}-item-content`]:{padding:r}}}}},ke=a=>{const{componentCls:e,descriptionsExtraColor:r,descriptionItemPaddingBottom:i,descriptionsItemLabelColonMarginRight:l,descriptionsItemLabelColonMarginLeft:s,descriptionsTitleMarginBottom:f}=a;return{[e]:Object.assign(Object.assign(Object.assign({},(0,We.Wf)(a)),qe(a)),{["&-rtl"]:{direction:"rtl"},[`${e}-header`]:{display:"flex",alignItems:"center",marginBottom:f},[`${e}-title`]:Object.assign(Object.assign({},We.vS),{flex:"auto",color:a.colorText,fontWeight:a.fontWeightStrong,fontSize:a.fontSizeLG,lineHeight:a.lineHeightLG}),[`${e}-extra`]:{marginInlineStart:"auto",color:r,fontSize:a.fontSize},[`${e}-view`]:{width:"100%",borderRadius:a.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${e}-row`]:{"> th, > td":{paddingBottom:i},"&:last-child":{borderBottom:"none"}},[`${e}-item-label`]:{color:a.colorTextTertiary,fontWeight:"normal",fontSize:a.fontSize,lineHeight:a.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${s}px ${l}px`},[`&${e}-item-no-colon::after`]:{content:'""'}},[`${e}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${e}-item-content`]:{display:"table-cell",flex:1,color:a.colorText,fontSize:a.fontSize,lineHeight:a.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${e}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${e}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${e}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${e}-row`]:{"> th, > td":{paddingBottom:a.paddingSM}}},"&-small":{[`${e}-row`]:{"> th, > td":{paddingBottom:a.paddingXS}}}})}};var _e=(0,Je.Z)("Descriptions",a=>{const e=a.colorFillAlter,r=a.fontSizeSM*a.lineHeightSM,i=a.colorText,l=`${a.paddingXS}px ${a.padding}px`,s=`${a.padding}px ${a.paddingLG}px`,f=`${a.paddingSM}px ${a.paddingLG}px`,P=a.padding,y=a.marginXS,Z=a.marginXXS/2,w=(0,Ae.TS)(a,{descriptionsBg:e,descriptionsTitleMarginBottom:r,descriptionsExtraColor:i,descriptionItemPaddingBottom:P,descriptionsSmallPadding:l,descriptionsDefaultPadding:s,descriptionsMiddlePadding:f,descriptionsItemLabelColonMarginRight:y,descriptionsItemLabelColonMarginLeft:Z});return[ke(w)]}),et=function(a,e){var r={};for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&e.indexOf(i)<0&&(r[i]=a[i]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,i=Object.getOwnPropertySymbols(a);le)&&(i=(0,Ue.Tm)(a,{span:e})),i}function ct(a,e){const r=(0,ze.Z)(a).filter(f=>f),i=[];let l=[],s=e;return r.forEach((f,P)=>{var y;const Z=(y=f.props)===null||y===void 0?void 0:y.span,w=Z||1;if(P===r.length-1){l.push(it(f,s,Z)),i.push(l);return}w{const I=de.subscribe(O=>{typeof l=="object"&&B(O)});return()=>{de.unsubscribe(I)}},[]);const g=ct(y,L),xe=p.useMemo(()=>({labelStyle:F,contentStyle:_}),[F,_]);return Q(p.createElement(se.Provider,{value:xe},p.createElement("div",Object.assign({className:je()($,{[`${$}-${x}`]:x&&x!=="default",[`${$}-bordered`]:!!f,[`${$}-rtl`]:C==="rtl"},Z,w,H),style:V},z),(r||i)&&p.createElement("div",{className:`${$}-header`},r&&p.createElement("div",{className:`${$}-title`},r),i&&p.createElement("div",{className:`${$}-extra`},i)),p.createElement("div",{className:`${$}-view`},p.createElement("table",null,p.createElement("tbody",null,g.map((I,O)=>p.createElement(Ee,{key:O,index:O,colon:s,prefixCls:$,vertical:P==="vertical",bordered:f,row:I}))))))))}lt.Item=Ye;var tt=lt,ut=o(50554),vt=o(53068),ft=o(44205),mt=function(e,r){var i=r||{},l=i.onRequestError,s=i.effects,f=i.manual,P=i.dataSource,y=i.defaultDataSource,Z=i.onDataSourceChange,w=(0,Ce.Z)(y,{value:P,onChange:Z}),V=(0,ye.Z)(w,2),M=V[0],F=V[1],_=(0,Ce.Z)(r==null?void 0:r.loading,{value:r==null?void 0:r.loading,onChange:r==null?void 0:r.onLoadingChange}),z=(0,ye.Z)(_,2),Y=z[0],C=z[1],$=function(L){F(L),C(!1)},A=function(){var B=(0,ne.Z)((0,K.Z)().mark(function L(){var x,Q,H;return(0,K.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(!Y){g.next=2;break}return g.abrupt("return");case 2:return C(!0),g.prev=3,g.next=6,e();case 6:if(g.t0=g.sent,g.t0){g.next=9;break}g.t0={};case 9:x=g.t0,Q=x.data,H=x.success,H!==!1&&$(Q),g.next=23;break;case 15:if(g.prev=15,g.t1=g.catch(3),l!==void 0){g.next=21;break}throw new Error(g.t1);case 21:l(g.t1);case 22:C(!1);case 23:return g.prev=23,C(!1),g.finish(23);case 26:case"end":return g.stop()}},L,null,[[3,15,23,26]])}));return function(){return B.apply(this,arguments)}}();return(0,p.useEffect)(function(){f||A()},[].concat((0,W.Z)(s||[]),[f])),{dataSource:M,setDataSource:F,loading:Y,reload:function(){return A()}}},pt=mt,gt=["valueEnum","render","renderText","mode","plain","dataIndex","request","params","editable"],ht=["request","columns","params","dataSource","onDataSourceChange","formProps","editable","loading","onLoadingChange","actionRef","onRequestError"],yt=function(e,r){var i=e.dataIndex;if(i){var l=Array.isArray(i)?(0,vt.Z)(r,i):r[i];if(l!==void 0||l!==null)return l}return e.children},xt=function(e){var r=e.valueEnum,i=e.action,l=e.index,s=e.text,f=e.entity,P=e.mode,y=e.render,Z=e.editableUtils,w=e.valueType,V=e.plain,M=e.dataIndex,F=e.request,_=e.renderFormItem,z=e.params,Y=le.ZP.useFormInstance(),C={text:s,valueEnum:r,mode:P||"read",proFieldProps:{render:y?function(){return y==null?void 0:y(s,f,l,i,(0,v.Z)((0,v.Z)({},e),{},{type:"descriptions"}))}:void 0},ignoreFormItem:!0,valueType:w,request:F,params:z,plain:V};if(P==="read"||!P||w==="option"){var $=(0,he.w)(e.fieldProps,void 0,(0,v.Z)((0,v.Z)({},e),{},{rowKey:M,isEditable:!1}));return(0,n.jsx)(ve.Z,(0,v.Z)((0,v.Z)({name:M},C),{},{fieldProps:$}))}var A=function(){var L,x=(0,he.w)(e.formItemProps,Y,(0,v.Z)((0,v.Z)({},e),{},{rowKey:M,isEditable:!0})),Q=(0,he.w)(e.fieldProps,Y,(0,v.Z)((0,v.Z)({},e),{},{rowKey:M,isEditable:!0})),H=_?_==null?void 0:_((0,v.Z)((0,v.Z)({},e),{},{type:"descriptions"}),{isEditable:!0,recordKey:M,record:Y.getFieldValue([M].flat(1)),defaultRender:function(){return(0,n.jsx)(ve.Z,(0,v.Z)((0,v.Z)({},C),{},{fieldProps:Q}))},type:"descriptions"},Y):void 0;return(0,n.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[(0,n.jsx)(oe.U,(0,v.Z)((0,v.Z)({name:M},x),{},{style:(0,v.Z)({margin:0},(x==null?void 0:x.style)||{}),initialValue:s||(x==null?void 0:x.initialValue),children:H||(0,n.jsx)(ve.Z,(0,v.Z)((0,v.Z)({},C),{},{proFieldProps:(0,v.Z)({},C.proFieldProps),fieldProps:Q}))})),Z==null||(L=Z.actionRender)===null||L===void 0?void 0:L.call(Z,M||l,{cancelText:(0,n.jsx)(ce.Z,{}),saveText:(0,n.jsx)(ue.Z,{}),deleteText:!1})]})};return(0,n.jsx)("div",{style:{marginTop:-5,marginBottom:-5,marginLeft:0,marginRight:0},children:A()})},bt=function(e,r,i,l){var s,f=[],P=e==null||(s=e.map)===null||s===void 0?void 0:s.call(e,function(y,Z){var w,V;if(p.isValidElement(y))return y;var M=y,F=M.valueEnum,_=M.render,z=M.renderText,Y=M.mode,C=M.plain,$=M.dataIndex,A=M.request,B=M.params,L=M.editable,x=(0,j.Z)(M,gt),Q=(w=yt(y,r))!==null&&w!==void 0?w:x.children,H=z?z(Q,r,Z,i):Q,de=typeof x.title=="function"?x.title(y,"descriptions",null):x.title,g=typeof x.valueType=="function"?x.valueType(r||{},"descriptions"):x.valueType,xe=l==null?void 0:l.isEditable($||Z),I=Y||xe?"edit":"read",O=l&&I==="read"&&L!==!1&&(L==null?void 0:L(H,r,Z))!==!1,at=O?te.Z:p.Fragment,rt=I==="edit"?H:(0,Pe.X)(H,y,H),Fe=(0,p.createElement)(tt.Item,(0,v.Z)((0,v.Z)({},x),{},{key:x.key||((V=x.label)===null||V===void 0?void 0:V.toString())||Z,label:(de||x.label||x.tooltip||x.tip)&&(0,n.jsx)(Ze.G,{label:de||x.label,tooltip:x.tooltip||x.tip,ellipsis:y.ellipsis})}),(0,n.jsxs)(at,{children:[(0,n.jsx)(xt,(0,v.Z)((0,v.Z)({},y),{},{dataIndex:y.dataIndex||Z,mode:I,text:rt,valueType:g,entity:r,index:Z,action:i,editableUtils:l})),O&&g!=="option"&&(0,n.jsx)(ae.Z,{onClick:function(){l==null||l.startEditable($||Z)}})]}));return g==="option"?(f.push(Fe),null):Fe}).filter(function(y){return y});return{options:f!=null&&f.length?f:null,children:P}},St=function(e){return(0,n.jsx)(tt.Item,(0,v.Z)((0,v.Z)({},e),{},{children:e.children}))},$t=function(e){return e.children},ot=function(e){var r,i=e.request,l=e.columns,s=e.params,f=s===void 0?{}:s,P=e.dataSource,y=e.onDataSourceChange,Z=e.formProps,w=e.editable,V=e.loading,M=e.onLoadingChange,F=e.actionRef,_=e.onRequestError,z=(0,j.Z)(e,ht),Y=(0,p.useContext)(ut.ZP.ConfigContext),C=pt((0,ne.Z)((0,K.Z)().mark(function g(){var xe;return(0,K.Z)().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(!i){O.next=6;break}return O.next=3,i(f);case 3:O.t0=O.sent,O.next=7;break;case 6:O.t0={data:{}};case 7:return xe=O.t0,O.abrupt("return",xe);case 9:case"end":return O.stop()}},g)})),{onRequestError:_,effects:[(0,ft.P)(f)],manual:!i,dataSource:P,loading:V,onLoadingChange:M,onDataSourceChange:y}),$=He((0,v.Z)((0,v.Z)({},e.editable),{},{childrenColumnName:void 0,dataSource:C.dataSource,setDataSource:C.setDataSource}));if((0,p.useEffect)(function(){F&&(F.current=(0,v.Z)({reload:C.reload},$))},[C,F,$]),C.loading||C.loading===void 0&&i)return(0,n.jsx)(me,{type:"descriptions",list:!1,pageHeader:!1});var A=function(){var xe=(0,ze.Z)(e.children).filter(Boolean).map(function(I){if(!p.isValidElement(I))return I;var O=I==null?void 0:I.props,at=O.valueEnum,rt=O.valueType,Fe=O.dataIndex,st=O.ellipsis,Ct=O.copyable,jt=O.request;return!rt&&!at&&!Fe&&!jt&&!st&&!Ct?I:(0,v.Z)((0,v.Z)({},I==null?void 0:I.props),{},{entity:P})});return[].concat((0,W.Z)(l||[]),(0,W.Z)(xe)).filter(function(I){return!I||I!=null&&I.valueType&&["index","indexBorder"].includes(I==null?void 0:I.valueType)?!1:!(I!=null&&I.hideInDescriptions)}).sort(function(I,O){return O.order||I.order?(O.order||0)-(I.order||0):(O.index||0)-(I.index||0)})},B=bt(A(),C.dataSource||{},(F==null?void 0:F.current)||C,w?$:void 0),L=B.options,x=B.children,Q=w?le.ZP:$t,H=null;(z.title||z.tooltip||z.tip)&&(H=(0,n.jsx)(Ze.G,{label:z.title,tooltip:z.tooltip||z.tip}));var de=Y.getPrefixCls("pro-descriptions");return(0,n.jsx)(Ke.S,{children:(0,n.jsx)(Q,(0,v.Z)((0,v.Z)({form:(r=e.editable)===null||r===void 0?void 0:r.form,component:!1,submitter:!1},Z),{},{onFinish:void 0,children:(0,n.jsx)(tt,(0,v.Z)((0,v.Z)({className:de},z),{},{extra:z.extra?(0,n.jsxs)(te.Z,{children:[L,z.extra]}):L,title:H,children:x}))}),"form")})};ot.Item=St;var Et=null},5957:function(Be,ge,o){var W=o(75782),K=o(58733),ne=o(78775),j=o(50959),v=o(60061),ce=o(72961),ue=o(11527),ae=["fieldProps","proFieldProps"],le="dateRange",ve=j.forwardRef(function(p,E){var N=p.fieldProps,G=p.proFieldProps,T=(0,K.Z)(p,ae),te=(0,j.useContext)(v.Z);return(0,ue.jsx)(ce.Z,(0,W.Z)({ref:E,fieldProps:(0,W.Z)({getPopupContainer:te.getPopupContainer},N),valueType:le,proFieldProps:G,filedConfig:{valueType:le,customLightMode:!0,lightFilterLabelFormatter:function(ie){return(0,ne.c)(ie,(N==null?void 0:N.format)||"YYYY-MM-DD")}}},T))});ge.Z=ve},59419:function(Be,ge,o){var W=o(75782),K=o(58733),ne=o(18518),j=o(50959),v=o(60061),ce=o(72961),ue=o(11527),ae=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],le=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],ve=j.forwardRef(function(T,te){var n=T.fieldProps,ie=T.children,c=T.params,h=T.proFieldProps,m=T.mode,D=T.valueEnum,R=T.request,J=T.showSearch,U=T.options,q=(0,K.Z)(T,ae),ee=(0,j.useContext)(v.Z);return(0,ue.jsx)(ce.Z,(0,W.Z)((0,W.Z)({valueEnum:(0,ne.h)(D),request:R,params:c,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,W.Z)({options:U,mode:m,showSearch:J,getPopupContainer:ee.getPopupContainer},n),ref:te,proFieldProps:h},q),{},{children:ie}))}),p=j.forwardRef(function(T,te){var n=T.fieldProps,ie=T.children,c=T.params,h=T.proFieldProps,m=T.mode,D=T.valueEnum,R=T.request,J=T.options,U=(0,K.Z)(T,le),q=(0,W.Z)({options:J,mode:m||"multiple",labelInValue:!0,showSearch:!0,showArrow:!1,autoClearSearchValue:!0,optionLabelProp:"label"},n),ee=(0,j.useContext)(v.Z);return(0,ue.jsx)(ce.Z,(0,W.Z)((0,W.Z)({valueEnum:(0,ne.h)(D),request:R,params:c,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,W.Z)({getPopupContainer:ee.getPopupContainer},q),ref:te,proFieldProps:h},U),{},{children:ie}))}),E=ve,N=p,G=E;G.SearchSelect=N,G.displayName="ProFormComponent",ge.Z=G},31491:function(Be,ge,o){o.d(ge,{Z:function(){return Ne}});var W=o(84875),K=o.n(W),ne=o(65395),j=o(50959),v=o(70458),ce=o(85460),ue=o(37454),ae=o(53315),le=function(t,d){var S={};for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&d.indexOf(u)<0&&(S[u]=t[u]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,u=Object.getOwnPropertySymbols(t);b{var{prefixCls:d,className:S,hoverable:u=!0}=t,b=le(t,["prefixCls","className","hoverable"]);const{getPrefixCls:k}=j.useContext(v.E_),me=k("card",d),he=K()(`${me}-grid`,S,{[`${me}-grid-hoverable`]:u});return j.createElement("div",Object.assign({},b,{className:he}))},E=o(97624),N=o(74074),G=o(49272);const T=t=>{const{antCls:d,componentCls:S,cardHeadHeight:u,cardPaddingBase:b,cardHeadTabsMarginBottom:k}=t;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:u,marginBottom:-1,padding:`0 ${b}px`,color:t.colorTextHeading,fontWeight:t.fontWeightStrong,fontSize:t.fontSizeLG,background:"transparent",borderBottom:`${t.lineWidth}px ${t.lineType} ${t.colorBorderSecondary}`,borderRadius:`${t.borderRadiusLG}px ${t.borderRadiusLG}px 0 0`},(0,G.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},G.vS),{[` > ${S}-typography, > ${S}-typography-edit-content `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${d}-tabs-top`]:{clear:"both",marginBottom:k,color:t.colorText,fontWeight:"normal",fontSize:t.fontSize,"&-bar":{borderBottom:`${t.lineWidth}px ${t.lineType} ${t.colorBorderSecondary}`}}})},te=t=>{const{cardPaddingBase:d,colorBorderSecondary:S,cardShadow:u,lineWidth:b}=t;return{width:"33.33%",padding:d,border:0,borderRadius:0,boxShadow:` ${b}px 0 0 0 ${S}, 0 ${b}px 0 0 ${S}, ${b}px ${b}px 0 0 ${S}, ${b}px 0 0 0 ${S} inset, 0 ${b}px 0 0 ${S} inset; `,transition:`all ${t.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:u}}},n=t=>{const{componentCls:d,iconCls:S,cardActionsLiMargin:u,cardActionsIconSize:b,colorBorderSecondary:k}=t;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:t.colorBgContainer,borderTop:`${t.lineWidth}px ${t.lineType} ${k}`,display:"flex",borderRadius:`0 0 ${t.borderRadiusLG}px ${t.borderRadiusLG}px `},(0,G.dF)()),{"& > li":{margin:u,color:t.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:t.cardActionsIconSize*2,fontSize:t.fontSize,lineHeight:t.lineHeight,cursor:"pointer","&:hover":{color:t.colorPrimary,transition:`color ${t.motionDurationMid}`},[`a:not(${d}-btn), > ${S}`]:{display:"inline-block",width:"100%",color:t.colorTextDescription,lineHeight:`${t.fontSize*t.lineHeight}px`,transition:`color ${t.motionDurationMid}`,"&:hover":{color:t.colorPrimary}},[`> ${S}`]:{fontSize:b,lineHeight:`${b*t.lineHeight}px`}},"&:not(:last-child)":{borderInlineEnd:`${t.lineWidth}px ${t.lineType} ${k}`}}})},ie=t=>Object.assign(Object.assign({margin:`-${t.marginXXS}px 0`,display:"flex"},(0,G.dF)()),{"&-avatar":{paddingInlineEnd:t.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:t.marginXS}},"&-title":Object.assign({color:t.colorTextHeading,fontWeight:t.fontWeightStrong,fontSize:t.fontSizeLG},G.vS),"&-description":{color:t.colorTextDescription}}),c=t=>{const{componentCls:d,cardPaddingBase:S,colorFillAlter:u}=t;return{[`${d}-head`]:{padding:`0 ${S}px`,background:u,"&-title":{fontSize:t.fontSize}},[`${d}-body`]:{padding:`${t.padding}px ${S}px`}}},h=t=>{const{componentCls:d}=t;return{overflow:"hidden",[`${d}-body`]:{userSelect:"none"}}},m=t=>{const{componentCls:d,cardShadow:S,cardHeadPadding:u,colorBorderSecondary:b,boxShadowTertiary:k,cardPaddingBase:me}=t;return{[d]:Object.assign(Object.assign({},(0,G.Wf)(t)),{position:"relative",background:t.colorBgContainer,borderRadius:t.borderRadiusLG,[`&:not(${d}-bordered)`]:{boxShadow:k},[`${d}-head`]:T(t),[`${d}-extra`]:{marginInlineStart:"auto",color:"",fontWeight:"normal",fontSize:t.fontSize},[`${d}-body`]:Object.assign({padding:me,borderRadius:` 0 0 ${t.borderRadiusLG}px ${t.borderRadiusLG}px`},(0,G.dF)()),[`${d}-grid`]:te(t),[`${d}-cover`]:{"> *":{display:"block",width:"100%"},img:{borderRadius:`${t.borderRadiusLG}px ${t.borderRadiusLG}px 0 0`}},[`${d}-actions`]:n(t),[`${d}-meta`]:ie(t)}),[`${d}-bordered`]:{border:`${t.lineWidth}px ${t.lineType} ${b}`,[`${d}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${d}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${t.motionDurationMid}, border-color ${t.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:S}},[`${d}-contain-grid`]:{[`${d}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${d}-loading) ${d}-body`]:{marginBlockStart:-t.lineWidth,marginInlineStart:-t.lineWidth,padding:0}},[`${d}-contain-tabs`]:{[`> ${d}-head`]:{[`${d}-head-title, ${d}-extra`]:{paddingTop:u}}},[`${d}-type-inner`]:c(t),[`${d}-loading`]:h(t),[`${d}-rtl`]:{direction:"rtl"}}},D=t=>{const{componentCls:d,cardPaddingSM:S,cardHeadHeightSM:u}=t;return{[`${d}-small`]:{[`> ${d}-head`]:{minHeight:u,padding:`0 ${S}px`,fontSize:t.fontSize,[`> ${d}-head-wrapper`]:{[`> ${d}-extra`]:{fontSize:t.fontSize}}},[`> ${d}-body`]:{padding:S}},[`${d}-small${d}-contain-tabs`]:{[`> ${d}-head`]:{[`${d}-head-title, ${d}-extra`]:{minHeight:u,paddingTop:0,display:"flex",alignItems:"center"}}}}};var R=(0,E.Z)("Card",t=>{const d=(0,N.TS)(t,{cardShadow:t.boxShadowCard,cardHeadHeight:t.fontSizeLG*t.lineHeightLG+t.padding*2,cardHeadHeightSM:t.fontSize*t.lineHeight+t.paddingXS*2,cardHeadPadding:t.padding,cardPaddingBase:t.paddingLG,cardHeadTabsMarginBottom:-t.padding-t.lineWidth,cardActionsLiMargin:`${t.paddingSM}px 0`,cardActionsIconSize:t.fontSize,cardPaddingSM:12});return[m(d),D(d)]}),J=function(t,d){var S={};for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&d.indexOf(u)<0&&(S[u]=t[u]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,u=Object.getOwnPropertySymbols(t);bj.createElement("li",{style:{width:`${100/t.length}%`},key:`action-${u}`},j.createElement("span",null,S)))}var ee=j.forwardRef((t,d)=>{const{prefixCls:S,className:u,rootClassName:b,extra:k,headStyle:me={},bodyStyle:he={},title:oe,loading:Pe,bordered:Ze=!0,size:ye,type:Se,cover:$e,actions:Ce,tabList:pe,children:Te,activeTabKey:Re,defaultActiveTabKey:He,tabBarExtraContent:Ke,hoverable:Ge,tabProps:je={}}=t,ze=J(t,["prefixCls","className","rootClassName","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:Ue,direction:Oe}=j.useContext(v.E_),Xe=se=>{var re;(re=t.onTabChange)===null||re===void 0||re.call(t,se)},Ve=j.useMemo(()=>{let se=!1;return j.Children.forEach(Te,re=>{re&&re.type&&re.type===p&&(se=!0)}),se},[Te]),X=Ue("card",S),[Ye,we]=R(X),nt=j.createElement(ue.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},Te),Ie=Re!==void 0,De=Object.assign(Object.assign({},je),{[Ie?"activeKey":"defaultActiveKey"]:Ie?Re:He,tabBarExtraContent:Ke});let Qe;const Ee=(0,ce.Z)(ye),Je=!Ee||Ee==="default"?"large":Ee,Ae=pe&&pe.length?j.createElement(ae.Z,Object.assign({size:Je},De,{className:`${X}-head-tabs`,onChange:Xe,items:pe.map(se=>{var re;return{label:se.tab,key:se.key,disabled:(re=se.disabled)!==null&&re!==void 0?re:!1}})})):null;(oe||k||Ae)&&(Qe=j.createElement("div",{className:`${X}-head`,style:me},j.createElement("div",{className:`${X}-head-wrapper`},oe&&j.createElement("div",{className:`${X}-head-title`},oe),k&&j.createElement("div",{className:`${X}-extra`},k)),Ae));const We=$e?j.createElement("div",{className:`${X}-cover`},$e):null,qe=j.createElement("div",{className:`${X}-body`,style:he},Pe?nt:Te),ke=Ce&&Ce.length?j.createElement("ul",{className:`${X}-actions`},U(Ce)):null,_e=(0,ne.Z)(ze,["onTabChange"]),et=K()(X,{[`${X}-loading`]:Pe,[`${X}-bordered`]:Ze,[`${X}-hoverable`]:Ge,[`${X}-contain-grid`]:Ve,[`${X}-contain-tabs`]:pe&&pe.length,[`${X}-${Ee}`]:Ee,[`${X}-type-${Se}`]:!!Se,[`${X}-rtl`]:Oe==="rtl"},u,b,we);return Ye(j.createElement("div",Object.assign({ref:d},_e,{className:et}),Qe,We,qe,ke))}),be=function(t,d){var S={};for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&d.indexOf(u)<0&&(S[u]=t[u]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,u=Object.getOwnPropertySymbols(t);b{const{prefixCls:d,className:S,avatar:u,title:b,description:k}=t,me=be(t,["prefixCls","className","avatar","title","description"]),{getPrefixCls:he}=j.useContext(v.E_),oe=he("card",d),Pe=K()(`${oe}-meta`,S),Ze=u?j.createElement("div",{className:`${oe}-meta-avatar`},u):null,ye=b?j.createElement("div",{className:`${oe}-meta-title`},b):null,Se=k?j.createElement("div",{className:`${oe}-meta-description`},k):null,$e=ye||Se?j.createElement("div",{className:`${oe}-meta-detail`},ye,Se):null;return j.createElement("div",Object.assign({},me,{className:Pe}),Ze,$e)};const Me=ee;Me.Grid=p,Me.Meta=Le;var Ne=Me},76835:function(Be,ge,o){o.d(ge,{ZP:function(){return ie}});var W=o(50959);function K(c,h){return ue(c)||ce(c,h)||j(c,h)||ne()}function ne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function j(c,h){if(c){if(typeof c=="string")return v(c,h);var m=Object.prototype.toString.call(c).slice(8,-1);if(m==="Object"&&c.constructor&&(m=c.constructor.name),m==="Map"||m==="Set")return Array.from(c);if(m==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m))return v(c,h)}}function v(c,h){(h==null||h>c.length)&&(h=c.length);for(var m=0,D=new Array(h);mc.length)&&(h=c.length);for(var m=0,D=new Array(h);m