@ant-design/pro-components
Version:
@ant-design/pro-components
1 lines • 2.67 MB
JavaScript
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("ReactDOM")):"function"==typeof define&&define.amd?define(["React","ReactDOM"],t):"object"==typeof exports?exports.ProComponents=t(require("React"),require("ReactDOM")):e.ProComponents=t(e.React,e.ReactDOM)}(self,(function(e,t){return function(){var n={99358:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(87089),o=n.n(r),a=(n(1024),n(52260)),i=n.n(a),c=n(26763),l=n.n(c),u=n(16214),s=function(e){var t=e.componentCls,n=e.antCls;return l()({},"".concat(t,"-actions"),l()(l()({marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none",display:"flex",gap:e.marginXS,background:e.colorBgContainer,borderBlockStart:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit),minHeight:42},"& > *",{alignItems:"center",justifyContent:"center",flex:1,display:"flex",cursor:"pointer",color:e.colorTextSecondary,transition:"color 0.3s","&:hover":{color:e.colorPrimaryHover}}),"& > li > div",{flex:1,width:"100%",marginBlock:e.marginSM,marginInline:0,color:e.colorTextSecondary,textAlign:"center",a:{color:e.colorTextSecondary,transition:"color 0.3s","&:hover":{color:e.colorPrimaryHover}},div:l()(l()({position:"relative",display:"block",minWidth:32,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimaryHover,transition:"color 0.3s"}},"a:not(".concat(n,"-btn),\n > .anticon"),{display:"inline-block",width:"100%",color:e.colorTextSecondary,lineHeight:"22px",transition:"color 0.3s","&:hover":{color:e.colorPrimaryHover}}),".anticon",{fontSize:e.cardActionIconSize,lineHeight:"22px"}),"&:not(:last-child)":{borderInlineEnd:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit)}}))};var d=n(68048),f=function(e){var t=e.actions,n=e.prefixCls,r=function(e){return(0,u.Xj)("ProCardActions",(function(t){var n=i()(i()({},t),{},{componentCls:".".concat(e),cardActionIconSize:16});return[s(n)]}))}(n),a=r.wrapSSR,c=r.hashId;return Array.isArray(t)&&null!=t&&t.length?a((0,d.jsx)("ul",{className:o()("".concat(n,"-actions"),c),children:t.map((function(e,r){return(0,d.jsx)("li",{style:{width:"".concat(100/t.length,"%"),padding:0,margin:0},className:o()("".concat(n,"-actions-item"),c),children:e},"action-".concat(r))}))})):a((0,d.jsx)("ul",{className:o()("".concat(n,"-actions"),c),children:t}))}},88075:function(e,t,n){"use strict";n.d(t,{Z:function(){return z}});var r=n(26763),o=n.n(r),a=n(52260),i=n.n(a),c=n(25021),l=n.n(c),u=n(26e3),s=n.n(u),d=n(99961),f=n(62643),p=n(27994),m=n(87089),v=n.n(m),g=n(1024),h=n.n(g),b=n(99358),y=n(81676),x=n.n(y),C=n(86912),w=n(51363),S=n(16214),k=n(99307),E=n(31339),O=n(4920),j=function(e){return{backgroundColor:e.colorPrimaryBg,borderColor:e.colorPrimary}},P=function(e){return o()({backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"},e.componentCls,{"&-description":{color:e.colorTextDisabled},"&-title":{color:e.colorTextDisabled},"&-avatar":{opacity:"0.25"}})},D=(new O.Keyframes("card-loading",{"0%":{backgroundPosition:"0 50%"},"50%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),function(e){var t;return o()({},e.componentCls,(t={position:"relative",display:"inline-block",width:"320px",marginInlineEnd:"16px",marginBlockEnd:"16px",color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,verticalAlign:"top",backgroundColor:e.colorBgContainer,borderRadius:e.borderRadius,overflow:"auto",cursor:"pointer",transition:"all 0.3s","&:after":{position:"absolute",insetBlockStart:2,insetInlineEnd:2,width:0,height:0,opacity:0,transition:"all 0.3s "+e.motionEaseInOut,borderBlockEnd:"".concat(e.borderRadius+4,"px solid transparent"),borderInlineStart:"".concat(e.borderRadius+4,"px solid transparent"),borderStartEndRadius:"".concat(e.borderRadius,"px"),content:"''"},"&:last-child":{marginInlineEnd:0},"& + &":{marginInlineStart:"0 !important"},"&-bordered":{border:"".concat(e.lineWidth,"px solid ").concat(e.colorBorder)},"&-group":{display:"inline-block","&-sub-check-card":{display:"flex",flexDirection:"column",gap:"8px","&-title":{cursor:"pointer",paddingBlock:e.paddingXS,display:"flex",gap:4,alignItems:"center"},"&-panel":{visibility:"initial",transition:"all 0.3s",opacity:1,"&-collapse":{display:"none",visibility:"hidden",opacity:0}}}}},o()(o()(o()(o()(o()(o()(o()(o()(o()(o()(t,"".concat(e.componentCls,"-loading"),{overflow:"hidden",userSelect:"none","&-content":{padding:e.paddingMD}}),"&:focus",j(e)),"&-checked",i()(i()({},j(e)),{},{"&:after":{opacity:1,border:"".concat(e.borderRadius+4,"px solid ").concat(e.colorPrimary),borderBlockEnd:"".concat(e.borderRadius+4,"px solid transparent"),borderInlineStart:"".concat(e.borderRadius+4,"px solid transparent"),borderStartEndRadius:"".concat(e.borderRadius,"px")}})),"&-disabled",P(e)),"&[disabled]",P(e)),"&-checked&-disabled",{"&:after":{position:"absolute",insetBlockStart:2,insetInlineEnd:2,width:0,height:0,border:"".concat(e.borderRadius+4,"px solid ").concat(e.colorTextDisabled),borderBlockEnd:"".concat(e.borderRadius+4,"px solid transparent"),borderInlineStart:"".concat(e.borderRadius+4,"px solid transparent"),borderStartEndRadius:"".concat(e.borderRadius,"px"),content:"''"}}),"&-lg",{width:440}),"&-sm",{width:212}),"&-cover",{paddingInline:e.paddingXXS,paddingBlock:e.paddingXXS,img:{width:"100%",height:"100%",overflow:"hidden",borderRadius:e.borderRadius}}),"&-content",{display:"flex",paddingInline:e.paddingSM,paddingBlock:e.padding}),o()(o()(o()(o()(o()(o()(o()(o()(t,"&-body",{paddingInline:e.paddingSM,paddingBlock:e.padding}),"&-avatar-header",{display:"flex",alignItems:"center"}),"&-avatar",{paddingInlineEnd:8}),"&-detail",{overflow:"hidden",width:"100%","> div:not(:last-child)":{marginBlockEnd:4}}),"&-header",{display:"flex",alignItems:"center",justifyContent:"space-between",lineHeight:e.lineHeight,"&-left":{display:"flex",alignItems:"center",gap:e.sizeSM,minWidth:0}}),"&-title",{overflow:"hidden",color:e.colorTextHeading,fontWeight:"500",fontSize:e.fontSize,whiteSpace:"nowrap",textOverflow:"ellipsis",display:"flex",alignItems:"center",justifyContent:"space-between","&-with-ellipsis":{display:"inline-block"}}),"&-description",{color:e.colorTextSecondary}),"&:not(".concat(e.componentCls,"-disabled)"),{"&:hover":{borderColor:e.colorPrimary}})))});function I(e){return(0,S.Xj)("CheckCard",(function(t){var n=i()(i()({},t),{},{componentCls:".".concat(e)});return[D(n)]}))}var M=n(68048),Z=["prefixCls","className","style","options","loading","multiple","bordered","onChange"],N=function(e){var t=e.prefixCls,n=e.hashId;return(0,M.jsx)("div",{className:v()("".concat(t,"-loading-content"),n),children:(0,M.jsx)(C.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1})})},R=(0,g.createContext)(null),F=function(e){var t=(0,g.useState)(!1),n=s()(t,2),r=n[0],a=n[1],i=S.Ow.useToken().hashId,c="".concat(e.prefix,"-sub-check-card");return(0,M.jsxs)("div",{className:v()(c,i),children:[(0,M.jsxs)("div",{className:v()("".concat(c,"-title"),i),onClick:function(){a(!r)},children:[(0,M.jsx)(w.Z,{style:{transform:"rotate(".concat(r?90:0,"deg)"),transition:"transform 0.3s"}}),e.title]}),(0,M.jsx)("div",{className:v()("".concat(c,"-panel"),i,o()({},"".concat(c,"-panel-collapse"),r)),children:e.children})]})},T=function(e){var t=e.prefixCls,n=e.className,r=e.style,o=e.options,a=void 0===o?[]:o,c=e.loading,u=void 0!==c&&c,p=e.multiple,m=void 0!==p&&p,b=e.bordered,y=void 0===b||b,C=(e.onChange,l()(e,Z)),w=(0,g.useContext)(f.ZP.ConfigContext),S=(0,g.useCallback)((function(){return null==a?void 0:a.map((function(e){return"string"==typeof e?{title:e,value:e}:e}))}),[a]),k=w.getPrefixCls("pro-checkcard",t),O=I(k),j=O.wrapSSR,P=O.hashId,D="".concat(k,"-group"),N=(0,E.default)(C,["children","defaultValue","value","disabled","size"]),T=(0,d.default)(e.defaultValue,{value:e.value,onChange:e.onChange}),B=s()(T,2),A=B[0],L=B[1],H=(0,g.useRef)(new Map),_=(0,g.useMemo)((function(){if(u)return new Array(a.length||h().Children.toArray(e.children).length||1).fill(0).map((function(e,t){return(0,M.jsx)(z,{loading:!0},t)}));if(a&&a.length>0){var t=A;return function n(r){return r.map((function(r){var o,a,i;return r.children&&r.children.length>0?(0,M.jsx)(F,{title:r.title,prefix:D,children:n(r.children)},(null===(a=r.value)||void 0===a?void 0:a.toString())||(null===(i=r.title)||void 0===i?void 0:i.toString())):(0,M.jsx)(z,{disabled:r.disabled,size:null!==(o=r.size)&&void 0!==o?o:e.size,value:r.value,checked:m?null==t?void 0:t.includes(r.value):t===r.value,onChange:r.onChange,title:r.title,avatar:r.avatar,description:r.description,cover:r.cover},r.value.toString())}))}(S())}return e.children}),[S,u,m,a,e.children,e.size,A]),W=v()(D,n,P);return j((0,M.jsx)(R.Provider,{value:{toggleOption:function(e){var t;m||(t=(t=A)===e.value?void 0:e.value,null==L||L(t));if(m){var n,r=[],o=A,a=null==o?void 0:o.includes(e.value);r=x()(o||[]),a||r.push(e.value),a&&(r=r.filter((function(t){return t!==e.value})));var i=S(),c=null===(n=r)||void 0===n||null===(n=n.filter((function(e){return H.current.has(e)})))||void 0===n?void 0:n.sort((function(e,t){return i.findIndex((function(t){return t.value===e}))-i.findIndex((function(e){return e.value===t}))}));L(c)}},bordered:y,value:A,disabled:e.disabled,size:e.size,loading:e.loading,multiple:e.multiple,registerValue:function(e){var t;null===(t=H.current)||void 0===t||t.set(e,!0)},cancelValue:function(e){var t;null===(t=H.current)||void 0===t||t.delete(e)}},children:(0,M.jsx)("div",i()(i()({className:W,style:r},N),{},{children:_}))}))},B=["prefixCls","className","avatar","title","description","cover","extra","style"],A=function(e){var t=(0,d.default)(e.defaultChecked||!1,{value:e.checked,onChange:e.onChange}),n=s()(t,2),r=n[0],a=n[1],c=(0,g.useContext)(R),u=(0,g.useContext)(f.ZP.ConfigContext).getPrefixCls;(0,g.useEffect)((function(){var t;return null==c||null===(t=c.registerValue)||void 0===t||t.call(c,e.value),function(){var t;return null==c||null===(t=c.cancelValue)||void 0===t?void 0:t.call(c,e.value)}}),[e.value]);var m=e.prefixCls,h=e.className,y=e.avatar,x=e.title,C=e.description,w=e.cover,S=e.extra,k=e.style,E=void 0===k?{}:k,O=l()(e,B),j=i()({},O),P=u("pro-checkcard",m),D=I(P),Z=D.wrapSSR,F=D.hashId;j.checked=r;var T=!1;if(c){var A;j.disabled=e.disabled||c.disabled,j.loading=e.loading||c.loading,j.bordered=e.bordered||c.bordered,T=c.multiple;var z=c.multiple?null===(A=c.value)||void 0===A?void 0:A.includes(e.value):c.value===e.value;j.checked=!j.loading&&z,j.size=e.size||c.size}var L=j.disabled,H=void 0!==L&&L,_=j.size,W=j.loading,K=j.bordered,V=void 0===K||K,X=j.checked,q=function(e){return"large"===e?"lg":"small"===e?"sm":""}(_),G=v()(P,h,F,o()(o()(o()(o()(o()(o()(o()({},"".concat(P,"-loading"),W),"".concat(P,"-").concat(q),q),"".concat(P,"-checked"),X),"".concat(P,"-multiple"),T),"".concat(P,"-disabled"),H),"".concat(P,"-bordered"),V),"".concat(P,"-ghost"),e.ghost)),Y=(0,g.useMemo)((function(){if(W)return(0,M.jsx)(N,{prefixCls:P||"",hashId:F});if(w)return t=P||"",n=w,(0,M.jsx)("div",{className:v()("".concat(t,"-cover"),F),children:"string"==typeof n?(0,M.jsx)("img",{src:n,alt:"checkcard"}):n});var t,n,r=y?(0,M.jsx)("div",{className:v()("".concat(P,"-avatar"),F),children:"string"==typeof y?(0,M.jsx)(p.Z,{size:48,shape:"square",src:y}):y}):null,a=null!=(null!=x?x:S)&&(0,M.jsxs)("div",{className:v()("".concat(P,"-header"),F),children:[(0,M.jsxs)("div",{className:v()("".concat(P,"-header-left"),F),children:[(0,M.jsx)("div",{className:v()("".concat(P,"-title"),F,o()({},"".concat(P,"-title-with-ellipsis"),"string"==typeof x)),children:x}),e.subTitle?(0,M.jsx)("div",{className:v()("".concat(P,"-subTitle"),F),children:e.subTitle}):null]}),S&&(0,M.jsx)("div",{className:v()("".concat(P,"-extra"),F),children:S})]}),i=C?(0,M.jsx)("div",{className:v()("".concat(P,"-description"),F),children:C}):null,c=v()("".concat(P,"-content"),F,o()({},"".concat(P,"-avatar-header"),r&&a&&!i));return(0,M.jsxs)("div",{className:c,children:[r,a||i?(0,M.jsxs)("div",{className:v()("".concat(P,"-detail"),F),children:[a,i]}):null]})}),[y,W,w,C,S,F,P,e.subTitle,x]);return Z((0,M.jsxs)("div",{className:G,style:E,onClick:function(t){W||H||function(t){var n,o;null==e||null===(n=e.onClick)||void 0===n||n.call(e,t);var i=!r;null==c||null===(o=c.toggleOption)||void 0===o||o.call(c,{value:e.value}),null==a||a(i)}(t)},onMouseEnter:e.onMouseEnter,children:[Y,e.children?(0,M.jsx)("div",{className:v()("".concat(P,"-body"),F),style:e.bodyStyle,children:e.children}):null,e.actions?(0,M.jsx)(b.Z,{actions:e.actions,prefixCls:P}):null]}))};A.Group=function(e){return(0,M.jsx)(k._Y,{needDeps:!0,children:(0,M.jsx)(T,i()({},e))})};var z=A},36079:function(e,t,n){"use strict";n.d(t,{tP:function(){return r.Z},QW:function(){return Pe},$k:function(){return X},Ii:function(){return Oe},ZP:function(){return De}});var r=n(88075),o=n(52260),a=n.n(o),i=n(26763),c=n.n(i),l=n(25021),u=n.n(l),s=n(20948),d=n(62643),f=n(44191),p=n(69925),m=n(1024),v=n.n(m),g=n(26e3),h=n.n(g),b=n(81054),y=n(92383),x=n(39894),C=n(87089),w=n.n(C),S=n(90315),k=n(7613),E=n(86912),O=function(e){var t,n=e.value,r=e.formatter,o=e.precision,a=e.decimalSeparator,i=e.groupSeparator,c=void 0===i?"":i,l=e.prefixCls;if("function"==typeof r)t=r(n);else{var u=String(n),s=u.match(/^(-?)(\d*)(\.(\d+))?$/);if(s&&"-"!==u){var d=s[1],f=s[2]||"0",p=s[4]||"";f=f.replace(/\B(?=(\d{3})+(?!\d))/g,c),"number"==typeof o&&(p=p.padEnd(o,"0").slice(0,o>0?o:0)),p&&(p="".concat(a).concat(p)),t=[m.createElement("span",{key:"int",className:"".concat(l,"-content-value-int")},d,f),p&&m.createElement("span",{key:"decimal",className:"".concat(l,"-content-value-decimal")},p)]}else t=u}return m.createElement("span",{className:"".concat(l,"-content-value")},t)},j=n(10691),P=n(76141),D=n(65052),I=function(e){var t=e.componentCls,n=e.marginXXS,r=e.padding,o=e.colorTextDescription,a=e.titleFontSize,i=e.colorTextHeading,l=e.contentFontSize,u=e.fontFamily;return c()({},t,Object.assign(Object.assign({},(0,j.Wf)(e)),c()(c()(c()({},"".concat(t,"-title"),{marginBottom:n,color:o,fontSize:a}),"".concat(t,"-skeleton"),{paddingTop:r}),"".concat(t,"-content"),c()(c()(c()(c()({color:i,fontSize:l,fontFamily:u},"".concat(t,"-content-value"),{display:"inline-block",direction:"ltr"}),"".concat(t,"-content-prefix, ").concat(t,"-content-suffix"),{display:"inline-block"}),"".concat(t,"-content-prefix"),{marginInlineEnd:n}),"".concat(t,"-content-suffix"),{marginInlineStart:n}))))},M=(0,P.I$)("Statistic",(function(e){var t=(0,D.mergeToken)(e,{});return[I(t)]}),(function(e){var t=e.fontSizeHeading3;return{titleFontSize:e.fontSize,contentFontSize:t}})),Z=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},N=m.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,o=e.rootClassName,a=e.style,i=e.valueStyle,l=e.value,u=void 0===l?0:l,s=e.title,d=e.valueRender,f=e.prefix,p=e.suffix,v=e.loading,g=void 0!==v&&v,b=e.formatter,y=e.precision,x=e.decimalSeparator,C=void 0===x?".":x,j=e.groupSeparator,P=void 0===j?",":j,D=e.onMouseEnter,I=e.onMouseLeave,N=Z(e,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),R=(0,k.dj)("statistic"),F=R.getPrefixCls,T=R.direction,B=R.className,A=R.style,z=F("statistic",n),L=M(z),H=h()(L,3),_=H[0],W=H[1],K=H[2],V=m.createElement(O,{decimalSeparator:C,groupSeparator:P,prefixCls:z,formatter:b,precision:y,value:u}),X=w()(z,c()({},"".concat(z,"-rtl"),"rtl"===T),B,r,o,W,K),q=m.useRef(null);m.useImperativeHandle(t,(function(){return{nativeElement:q.current}}));var G=(0,S.Z)(N,{aria:!0,data:!0});return _(m.createElement("div",Object.assign({},G,{ref:q,className:X,style:Object.assign(Object.assign({},A),a),onMouseEnter:D,onMouseLeave:I}),s&&m.createElement("div",{className:"".concat(z,"-title")},s),m.createElement(E.Z,{paragraph:!1,loading:g,className:"".concat(z,"-skeleton")},m.createElement("div",{style:i,className:"".concat(z,"-content")},f&&m.createElement("span",{className:"".concat(z,"-content-prefix")},f),d?d(V):V,p&&m.createElement("span",{className:"".concat(z,"-content-suffix")},p)))))}));var R=N,F=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function T(e,t,n){var r=t.format,o=void 0===r?"":r,a=new Date(e).getTime(),i=Date.now();return function(e,t){var n=e,r=/\[[^\]]*]/g,o=(t.match(r)||[]).map((function(e){return e.slice(1,-1)})),a=t.replace(r,"[]"),i=F.reduce((function(e,t){var r=h()(t,2),o=r[0],a=r[1];if(e.includes(o)){var i=Math.floor(n/a);return n-=i*a,e.replace(new RegExp("".concat(o,"+"),"g"),(function(e){var t=e.length;return i.toString().padStart(t,"0")}))}return e}),a),c=0;return i.replace(r,(function(){var e=o[c];return c+=1,e}))}(n?Math.max(a-i,0):Math.max(i-a,0),o)}var B=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var A=function(e){var t=e.value,n=e.format,r=void 0===n?"HH:mm:ss":n,o=e.onChange,a=e.onFinish,i=e.type,c=B(e,["value","format","onChange","onFinish","type"]),l="countdown"===i,u=m.useState(null),s=h()(u,2),d=s[0],f=s[1],p=(0,b.zX)((function(){var e=Date.now(),n=function(e){return new Date(e).getTime()}(t);return f({}),null==o||o(l?n-e:e-n),!(l&&n<e)||(null==a||a(),!1)}));m.useEffect((function(){var e;return function t(){e=(0,y.Z)((function(){p()&&t()}))}(),function(){return y.Z.cancel(e)}}),[t,l]),m.useEffect((function(){f({})}),[]);return m.createElement(R,Object.assign({},c,{value:t,valueRender:function(e){return(0,x.Tm)(e,{title:void 0})},formatter:function(e,t){return d?T(e,Object.assign(Object.assign({},t),{format:r}),l):"-"}}))},z=function(e){return m.createElement(A,Object.assign({},e,{type:"countdown"}))},L=m.memo(z);R.Timer=A,R.Countdown=L;var H=R,_=n(16214),W=function(e){return c()({},e.componentCls,c()(c()(c()(c()(c()({display:"flex",fontSize:e.fontSize,"& + &":{marginBlockStart:4},"&-tip":{marginInlineStart:4},"&-wrapper":c()({display:"flex",width:"100%"},"".concat(e.componentCls,"-status"),{width:"14px"}),"&-icon":{marginInlineEnd:16},"&-trend-icon":{width:0,height:0,borderInlineEnd:"3.5px solid transparent",borderBlockEnd:"9px solid #000",borderInlineStart:"3.5px solid transparent","&-up":{transform:"rotate(0deg)"},"&-down":{transform:"rotate(180deg)"}},"&-content":c()({width:"100%"},"".concat(e.antCls,"-statistic-content"),{"&-value-int":{fontSize:e.fontSizeHeading3}}),"&-description":{width:"100%"}},"".concat(e.antCls,"-statistic-title"),{color:e.colorText}),"&-trend-up",c()({},"".concat(e.antCls,"-statistic-content"),c()({color:"#f5222d"},"".concat(e.componentCls,"-trend-icon"),{borderBlockEndColor:"#f5222d"}))),"&-trend-down",c()({},"".concat(e.antCls,"-statistic-content"),c()({color:"#389e0d"},"".concat(e.componentCls,"-trend-icon"),{borderBlockEndColor:"#52c41a"}))),"& &-layout-horizontal",c()(c()(c()({display:"flex",justifyContent:"space-between"},"".concat(e.antCls,"-statistic-title"),{marginBlockEnd:0}),"".concat(e.antCls,"-statistic-content-value"),{fontWeight:500}),"".concat(e.antCls,"-statistic-title,").concat(e.antCls,"-statistic-content,").concat(e.antCls,"-statistic-content-suffix,").concat(e.antCls,"-statistic-content-prefix,").concat(e.antCls,"-statistic-content-value-decimal"),{fontSize:e.fontSize})),"& &-layout-inline",c()(c()(c()({display:"inline-flex",color:e.colorTextSecondary},"".concat(e.antCls,"-statistic-title"),{marginInlineEnd:"6px",marginBlockEnd:0}),"".concat(e.antCls,"-statistic-content"),{color:e.colorTextSecondary}),"".concat(e.antCls,"-statistic-title,").concat(e.antCls,"-statistic-content,").concat(e.antCls,"-statistic-content-suffix,").concat(e.antCls,"-statistic-content-prefix,").concat(e.antCls,"-statistic-content-value-decimal"),{fontSize:e.fontSizeSM})))};var K=n(68048),V=["className","layout","style","description","children","title","tip","status","trend","prefix","icon"],X=function(e){var t=e.className,n=e.layout,r=void 0===n?"inline":n,o=e.style,i=e.description,l=(e.children,e.title),v=e.tip,g=e.status,h=e.trend,b=e.prefix,y=e.icon,x=u()(e,V),C=(0,(0,m.useContext)(d.ZP.ConfigContext).getPrefixCls)("pro-card-statistic"),S=function(e){return(0,_.Xj)("Statistic",(function(t){var n=a()(a()({},t),{},{componentCls:".".concat(e)});return[W(n)]}))}(C),k=S.wrapSSR,E=S.hashId,O=w()(C,t,E),j=w()("".concat(C,"-status"),E),P=w()("".concat(C,"-icon"),E),D=w()("".concat(C,"-wrapper"),E),I=w()("".concat(C,"-content"),E),M=w()(E,c()(c()({},"".concat(C,"-layout-").concat(r),r),"".concat(C,"-trend-").concat(h),h)),Z=v&&(0,K.jsx)(f.Z,{title:v,children:(0,K.jsx)(s.Z,{className:"".concat(C,"-tip ").concat(E).trim()})}),N=w()("".concat(C,"-trend-icon"),E,c()({},"".concat(C,"-trend-icon-").concat(h),h)),R=h&&(0,K.jsx)("div",{className:N}),F=g&&(0,K.jsx)("div",{className:j,children:(0,K.jsx)(p.Z,{status:g,text:null})}),T=y&&(0,K.jsx)("div",{className:P,children:y});return k((0,K.jsxs)("div",{className:O,style:o,children:[T,(0,K.jsxs)("div",{className:D,children:[F,(0,K.jsxs)("div",{className:I,children:[(0,K.jsx)(H,a()({title:(l||Z)&&(0,K.jsxs)(K.Fragment,{children:[l,Z]}),prefix:(R||b)&&(0,K.jsxs)(K.Fragment,{children:[R,b]}),className:M},x)),i&&(0,K.jsx)("div",{className:"".concat(C,"-description ").concat(E).trim(),children:i})]})]})]}))},q=n(48725),G=n.n(q),Y=n(51363),U=n(59922),$=n(48712),Q=n(4895),J=n(99961),ee=n(31339),te=n(99358),ne=n(57337),re=n(24075),oe=new(n(4920).Keyframes)("card-loading",{"0%":{backgroundPosition:"0 50%"},"50%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),ae=function(e){return c()({},e.componentCls,c()(c()({"&-loading":{overflow:"hidden"},"&-loading &-body":{userSelect:"none"}},"".concat(e.componentCls,"-loading-content"),{width:"100%",p:{marginBlock:0,marginInline:0}}),"".concat(e.componentCls,"-loading-block"),{height:"14px",marginBlock:"4px",background:"linear-gradient(90deg, rgba(54, 61, 64, 0.2), rgba(54, 61, 64, 0.4), rgba(54, 61, 64, 0.2))",backgroundSize:"600% 600%",borderRadius:e.borderRadius,animationName:oe,animationDuration:"1.4s",animationTimingFunction:"ease",animationIterationCount:"infinite"}))};var ie=function(e){var t,n=e.style,r=e.prefix;return(0,(t=r||"ant-pro-card",(0,_.Xj)("ProCardLoading",(function(e){var n=a()(a()({},e),{},{componentCls:".".concat(t)});return[ae(n)]}))).wrapSSR)((0,K.jsxs)("div",{className:"".concat(r,"-loading-content"),style:n,children:[(0,K.jsx)(ne.Z,{gutter:8,children:(0,K.jsx)(re.Z,{span:22,children:(0,K.jsx)("div",{className:"".concat(r,"-loading-block")})})}),(0,K.jsxs)(ne.Z,{gutter:8,children:[(0,K.jsx)(re.Z,{span:8,children:(0,K.jsx)("div",{className:"".concat(r,"-loading-block")})}),(0,K.jsx)(re.Z,{span:15,children:(0,K.jsx)("div",{className:"".concat(r,"-loading-block")})})]}),(0,K.jsxs)(ne.Z,{gutter:8,children:[(0,K.jsx)(re.Z,{span:6,children:(0,K.jsx)("div",{className:"".concat(r,"-loading-block")})}),(0,K.jsx)(re.Z,{span:18,children:(0,K.jsx)("div",{className:"".concat(r,"-loading-block")})})]}),(0,K.jsxs)(ne.Z,{gutter:8,children:[(0,K.jsx)(re.Z,{span:13,children:(0,K.jsx)("div",{className:"".concat(r,"-loading-block")})}),(0,K.jsx)(re.Z,{span:9,children:(0,K.jsx)("div",{className:"".concat(r,"-loading-block")})})]}),(0,K.jsxs)(ne.Z,{gutter:8,children:[(0,K.jsx)(re.Z,{span:4,children:(0,K.jsx)("div",{className:"".concat(r,"-loading-block")})}),(0,K.jsx)(re.Z,{span:3,children:(0,K.jsx)("div",{className:"".concat(r,"-loading-block")})}),(0,K.jsx)(re.Z,{span:16,children:(0,K.jsx)("div",{className:"".concat(r,"-loading-block")})})]})]}))},ce=n(65722),le=n(56009),ue=n(57205),se=(n(8240),["tab","children"]),de=["key","tab","tabKey","disabled","destroyInactiveTabPane","children","className","style","cardProps"];var fe=function(e){var t=(0,m.useContext)(d.ZP.ConfigContext).getPrefixCls;if(ce.Z.startsWith("5"))return(0,K.jsx)(K.Fragment,{});var n=e.key,r=e.tab,o=e.tabKey,i=e.disabled,c=e.destroyInactiveTabPane,l=e.children,s=e.className,f=e.style,p=e.cardProps,v=u()(e,de),g=t("pro-card-tabpane"),h=w()(g,s);return(0,K.jsx)($.Z.TabPane,a()(a()({tabKey:o,tab:r,className:h,style:f,disabled:i,destroyInactiveTabPane:c},v),{},{children:(0,K.jsx)(be,a()(a()({},p),{},{children:l}))}),n)},pe=function(e){return{backgroundColor:e.controlItemBgActive,borderColor:e.controlOutline}},me=function(e){var t=e.componentCls;return c()(c()(c()({},t,a()(a()({position:"relative",display:"flex",flexDirection:"column",boxSizing:"border-box",width:"100%",marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,backgroundColor:e.colorBgContainer,borderRadius:e.borderRadius,transition:"all 0.3s"},null===_.Wf||void 0===_.Wf?void 0:(0,_.Wf)(e)),{},c()(c()(c()(c()(c()(c()(c()(c()(c()(c()({"&-box-shadow":{boxShadow:"0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017",borderColor:"transparent"},"&-col":{width:"100%"},"&-border":{border:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit)},"&-hoverable":c()({cursor:"pointer",transition:"box-shadow 0.3s, border-color 0.3s","&:hover":{borderColor:"transparent",boxShadow:"0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017"}},"&".concat(t,"-checked:hover"),{borderColor:e.controlOutline}),"&-checked":a()(a()({},pe(e)),{},{"&::after":{visibility:"visible",position:"absolute",insetBlockStart:2,insetInlineEnd:2,opacity:1,width:0,height:0,border:"6px solid ".concat(e.colorPrimary),borderBlockEnd:"6px solid transparent",borderInlineStart:"6px solid transparent",borderStartEndRadius:2,content:'""'}}),"&:focus":a()({},pe(e)),"&&-ghost":c()({backgroundColor:"transparent"},"> ".concat(t),{"&-header":{paddingInlineEnd:0,paddingBlockEnd:e.padding,paddingInlineStart:0},"&-body":{paddingBlock:0,paddingInline:0,backgroundColor:"transparent"}}),"&&-split > &-body":{paddingBlock:0,paddingInline:0},"&&-contain-card > &-body":{display:"flex"}},"".concat(t,"-body-direction-column"),{flexDirection:"column"}),"".concat(t,"-body-wrap"),{flexWrap:"wrap"}),"&&-collapse",c()({},"> ".concat(t),{"&-header":{paddingBlockEnd:e.padding,borderBlockEnd:0},"&-body":{display:"none"}})),"".concat(t,"-header"),{display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:e.paddingLG,paddingBlock:e.padding,paddingBlockEnd:0,"&-border":{"&":{paddingBlockEnd:e.padding},borderBlockEnd:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit)},"&-collapsible":{cursor:"pointer"}}),"".concat(t,"-title"),{color:e.colorText,fontWeight:500,fontSize:e.fontSizeLG,lineHeight:e.lineHeight}),"".concat(t,"-extra"),{color:e.colorText}),"".concat(t,"-type-inner"),c()({},"".concat(t,"-header"),{backgroundColor:e.colorFillAlter})),"".concat(t,"-collapsible-icon"),{marginInlineEnd:e.marginXS,color:e.colorIconHover,":hover":{color:e.colorPrimaryHover},"& svg":{transition:"transform ".concat(e.motionDurationMid)}}),"".concat(t,"-body"),{display:"block",boxSizing:"border-box",height:"100%",paddingInline:e.paddingLG,paddingBlock:e.padding,"&-center":{display:"flex",alignItems:"center",justifyContent:"center"}}),"&&-size-small",c()(c()({},t,{"&-header":{paddingInline:e.paddingSM,paddingBlock:e.paddingXS,paddingBlockEnd:0,"&-border":{paddingBlockEnd:e.paddingXS}},"&-title":{fontSize:e.fontSize},"&-body":{paddingInline:e.paddingSM,paddingBlock:e.paddingSM}}),"".concat(t,"-header").concat(t,"-header-collapsible"),{paddingBlock:e.paddingXS})))),"".concat(t,"-col"),c()(c()({},"&".concat(t,"-split-vertical"),{borderInlineEnd:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit)}),"&".concat(t,"-split-horizontal"),{borderBlockEnd:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit)})),"".concat(t,"-tabs"),c()(c()(c()(c()(c()(c()({},"".concat(e.antCls,"-tabs-top > ").concat(e.antCls,"-tabs-nav"),c()({marginBlockEnd:0},"".concat(e.antCls,"-tabs-nav-list"),{marginBlockStart:e.marginXS,paddingInlineStart:e.padding})),"".concat(e.antCls,"-tabs-bottom > ").concat(e.antCls,"-tabs-nav"),c()({marginBlockEnd:0},"".concat(e.antCls,"-tabs-nav-list"),{paddingInlineStart:e.padding})),"".concat(e.antCls,"-tabs-left"),c()({},"".concat(e.antCls,"-tabs-content-holder"),c()({},"".concat(e.antCls,"-tabs-content"),c()({},"".concat(e.antCls,"-tabs-tabpane"),{paddingInlineStart:0})))),"".concat(e.antCls,"-tabs-left > ").concat(e.antCls,"-tabs-nav"),c()({marginInlineEnd:0},"".concat(e.antCls,"-tabs-nav-list"),{paddingBlockStart:e.padding})),"".concat(e.antCls,"-tabs-right"),c()({},"".concat(e.antCls,"-tabs-content-holder"),c()({},"".concat(e.antCls,"-tabs-content"),c()({},"".concat(e.antCls,"-tabs-tabpane"),{paddingInlineStart:0})))),"".concat(e.antCls,"-tabs-right > ").concat(e.antCls,"-tabs-nav"),c()({},"".concat(e.antCls,"-tabs-nav-list"),{paddingBlockStart:e.padding})))},ve=function(e){return Array(25).fill(1).map((function(t,n){return function(e,t){var n=t.componentCls;return 0===e?c()({},"".concat(n,"-col-0"),{display:"none"}):c()({},"".concat(n,"-col-").concat(e),{flexShrink:0,width:"".concat(e/24*100,"%")})}(n,e)}))};var ge=["className","style","bodyStyle","headStyle","title","subTitle","extra","wrap","layout","loading","gutter","tooltip","split","headerBordered","bordered","boxShadow","children","size","actions","ghost","hoverable","direction","collapsed","collapsible","collapsibleIconRender","colStyle","defaultCollapsed","onCollapse","checked","onChecked","tabs","type"],he=v().forwardRef((function(e,t){var n,r,o,i=e.className,l=e.style,s=e.bodyStyle,f=e.headStyle,p=e.title,g=e.subTitle,b=e.extra,y=e.wrap,x=void 0!==y&&y,C=e.layout,S=e.loading,k=e.gutter,E=void 0===k?0:k,O=e.tooltip,j=e.split,P=e.headerBordered,D=void 0!==P&&P,I=e.bordered,M=void 0!==I&&I,Z=e.boxShadow,N=void 0!==Z&&Z,R=e.children,F=e.size,T=e.actions,B=e.ghost,A=void 0!==B&&B,z=e.hoverable,L=void 0!==z&&z,H=e.direction,W=e.collapsed,V=e.collapsible,X=void 0!==V&&V,q=e.collapsibleIconRender,ne=e.colStyle,re=e.defaultCollapsed,oe=void 0!==re&&re,ae=e.onCollapse,ce=e.checked,de=e.onChecked,fe=e.tabs,pe=e.type,he=u()(e,ge),ye=(0,m.useContext)(d.ZP.ConfigContext).getPrefixCls,xe=(0,Q.Z)()||{lg:!0,md:!0,sm:!0,xl:!1,xs:!1,xxl:!1},Ce=(0,J.default)(oe,{value:W,onChange:ae}),we=h()(Ce,2),Se=we[0],ke=we[1],Ee=["xxl","xl","lg","md","sm","xs"],Oe=function(e,t,n){return e?e.map((function(e){return a()(a()({},e),{},{children:(0,K.jsx)(be,a()(a()({},null==n?void 0:n.cardProps),{},{children:e.children}))})})):((0,ue.noteOnce)(!n,"Tabs.TabPane is deprecated. Please use `items` directly."),function(e){return e.filter((function(e){return e}))}((0,le.default)(t).map((function(e){if(v().isValidElement(e)){var t=e.key,r=e.props||{},o=r.tab,i=r.children,c=u()(r,se);return a()(a()({key:String(t)},c),{},{children:(0,K.jsx)(be,a()(a()({},null==n?void 0:n.cardProps),{},{children:i})),label:o})}return null}))))}(null==fe?void 0:fe.items,R,fe),je=function(e,t){return e?t:{}},Pe=ye("pro-card"),De=function(e){return(0,_.Xj)("ProCard",(function(t){var n=a()(a()({},t),{},{componentCls:".".concat(e)});return[me(n),ve(n)]}))}(Pe),Ie=De.wrapSSR,Me=De.hashId,Ze=(r=E,o=[0,0],(Array.isArray(r)?r:[r,0]).forEach((function(e,t){if("object"===G()(e))for(var n=0;n<Ee.length;n+=1){var r=Ee[n];if(xe[r]&&void 0!==e[r]){o[t]=e[r];break}}else o[t]=e||0})),o),Ne=h()(Ze,2),Re=Ne[0],Fe=Ne[1],Te=!1,Be=v().Children.toArray(R),Ae=Be.map((function(e,t){var n;if(null!=e&&null!==(n=e.type)&&void 0!==n&&n.isProCard){Te=!0;var r=function(e){var t=e;if("object"===G()(e))for(var n=0;n<Ee.length;n+=1){var r=Ee[n];if(null!=xe&&xe[r]&&void 0!==(null==e?void 0:e[r])){t=e[r];break}}return{span:t,colSpanStyle:je("string"==typeof t&&/\d%|\dpx/i.test(t),{width:t,flexShrink:0})}}(e.props.colSpan),o=r.span,i=r.colSpanStyle,l=w()(["".concat(Pe,"-col")],Me,c()(c()(c()({},"".concat(Pe,"-split-vertical"),"vertical"===j&&t!==Be.length-1),"".concat(Pe,"-split-horizontal"),"horizontal"===j&&t!==Be.length-1),"".concat(Pe,"-col-").concat(o),"number"==typeof o&&o>=0&&o<=24)),u=Ie((0,K.jsx)("div",{style:a()(a()(a()(a()({},i),je(Re>0,{paddingInlineEnd:Re/2,paddingInlineStart:Re/2})),je(Fe>0,{paddingBlockStart:Fe/2,paddingBlockEnd:Fe/2})),ne),className:l,children:v().cloneElement(e)}));return v().cloneElement(u,{key:"pro-card-col-".concat((null==e?void 0:e.key)||t)})}return e})),ze=w()("".concat(Pe),i,Me,(n={},c()(c()(c()(c()(c()(c()(c()(c()(c()(c()(n,"".concat(Pe,"-border"),M),"".concat(Pe,"-box-shadow"),N),"".concat(Pe,"-contain-card"),Te),"".concat(Pe,"-loading"),S),"".concat(Pe,"-split"),"vertical"===j||"horizontal"===j),"".concat(Pe,"-ghost"),A),"".concat(Pe,"-hoverable"),L),"".concat(Pe,"-size-").concat(F),F),"".concat(Pe,"-type-").concat(pe),pe),"".concat(Pe,"-collapse"),Se),c()(n,"".concat(Pe,"-checked"),ce))),Le=w()("".concat(Pe,"-body"),Me,c()(c()(c()({},"".concat(Pe,"-body-center"),"center"===C),"".concat(Pe,"-body-direction-column"),"horizontal"===j||"column"===H),"".concat(Pe,"-body-wrap"),x&&Te)),He=s,_e=v().isValidElement(S)?S:(0,K.jsx)(ie,{prefix:Pe,style:0===(null==s?void 0:s.padding)||"0px"===(null==s?void 0:s.padding)?{padding:24}:void 0}),We=X&&void 0===W&&(q?q({collapsed:Se}):(0,K.jsx)(Y.Z,{onClick:function(){"icon"===X&&ke(!Se)},rotate:Se?void 0:90,className:"".concat(Pe,"-collapsible-icon ").concat(Me).trim()}));return Ie((0,K.jsxs)("div",a()(a()({className:ze,style:l,ref:t,onClick:function(e){var t;null==de||de(e),null==he||null===(t=he.onClick)||void 0===t||t.call(he,e)}},(0,ee.default)(he,["prefixCls","colSpan"])),{},{children:[(p||b||We)&&(0,K.jsxs)("div",{className:w()("".concat(Pe,"-header"),Me,c()(c()({},"".concat(Pe,"-header-border"),D||"inner"===pe),"".concat(Pe,"-header-collapsible"),We)),style:f,onClick:function(){"header"!==X&&!0!==X||ke(!Se)},children:[(0,K.jsxs)("div",{className:"".concat(Pe,"-title ").concat(Me).trim(),children:[We,(0,K.jsx)(U.G,{label:p,tooltip:O,subTitle:g})]}),b&&(0,K.jsx)("div",{className:"".concat(Pe,"-extra ").concat(Me).trim(),onClick:function(e){return e.stopPropagation()},children:b})]}),fe?(0,K.jsx)("div",{className:"".concat(Pe,"-tabs ").concat(Me).trim(),children:(0,K.jsx)($.Z,a()(a()({onChange:fe.onChange},(0,ee.default)(fe,["cardProps"])),{},{items:Oe,children:S?_e:R}))}):(0,K.jsx)("div",{className:Le,style:He,children:S?_e:Ae}),T?(0,K.jsx)(te.Z,{actions:T,prefixCls:Pe}):null]})))})),be=he,ye=function(e){var t=e.componentCls;return c()({},t,{"&-divider":{flex:"none",width:e.lineWidth,marginInline:e.marginXS,marginBlock:e.marginLG,backgroundColor:e.colorSplit,"&-horizontal":{width:"initial",height:e.lineWidth,marginInline:e.marginLG,marginBlock:e.marginXS}},"&&-size-small &-divider":{marginBlock:e.marginLG,marginInline:e.marginXS,"&-horizontal":{marginBlock:e.marginXS,marginInline:e.marginLG}}})};var xe=function(e){var t=(0,(0,m.useContext)(d.ZP.ConfigContext).getPrefixCls)("pro-card"),n="".concat(t,"-divider"),r=function(e){return(0,_.Xj)("ProCardDivider",(function(t){var n=a()(a()({},t),{},{componentCls:".".concat(e)});return[ye(n)]}))}(t),o=r.wrapSSR,i=r.hashId,l=e.className,u=e.style,s=void 0===u?{}:u,f=e.type,p=w()(n,l,i,c()({},"".concat(n,"-").concat(f),f));return o((0,K.jsx)("div",{className:p,style:s}))},Ce=function(e){return c()({},e.componentCls,{display:"flex",flexDirection:"column",justifyContent:"flex-end",marginBlock:e.marginLG,marginInline:0,color:e.colorText,fontWeight:"500",fontSize:"20px",lineHeight:"38px"})};var we=function(e){var t=e.className,n=e.style,r=void 0===n?{}:n,o=e.children,i=(0,(0,m.useContext)(d.ZP.ConfigContext).getPrefixCls)("pro-card-operation"),c=function(e){return(0,_.Xj)("ProCardOperation",(function(t){var n=a()(a()({},t),{},{componentCls:".".concat(e)});return[Ce(n)]}))}(i),l=c.wrapSSR,u=c.hashId,s=w()(i,t,u);return l((0,K.jsx)("div",{className:s,style:r,children:o}))},Se=function(e){return c()({},e.componentCls,{"&-chart":{display:"flex",flexDirection:"column",marginBlockStart:8,marginBlockEnd:8,"&-left":{marginBlockStart:0,marginInlineEnd:"16px"},"&-right":{marginBlockStart:0,marginInlineStart:"16px"}},"&-content":{display:"flex",flexDirection:"column","&-horizontal":c()({flexDirection:"row"},"".concat(e.componentCls,"-chart"),{alignItems:"center",alignSelf:"flex-start"})},"&-footer":{marginBlockStart:8,paddingBlockStart:"16px",borderBlockStart:"rgba(0, 0, 0, 0.08) solid ".concat(e.colorBorder)}})};var ke=["children","statistic","className","chart","chartPlacement","footer"],Ee=function(e){var t=e.children,n=e.statistic,r=e.className,o=e.chart,i=e.chartPlacement,l=e.footer,s=u()(e,ke),f=(0,(0,m.useContext)(d.ZP.ConfigContext).getPrefixCls)("pro-statistic-card"),p=function(e){return(0,_.Xj)("StatisticCard",(function(t){var n=a()(a()({},t),{},{componentCls:".".concat(e)});return[Se(n)]}))}(f),v=p.wrapSSR,g=p.hashId,h=w()(f,r,g),b=n&&(0,K.jsx)(X,a()({layout:"vertical"},n)),y=w()("".concat(f,"-chart"),g,c()(c()({},"".concat(f,"-chart-left"),"left"===i&&o&&n),"".concat(f,"-chart-right"),"right"===i&&o&&n)),x=o&&(0,K.jsx)("div",{className:y,children:o}),C=w()("".concat(f,"-content "),g,c()({},"".concat(f,"-content-horizontal"),"left"===i||"right"===i)),S=(x||b)&&("left"===i?(0,K.jsxs)("div",{className:C,children:[x,b]}):(0,K.jsxs)("div",{className:C,children:[b,x]})),k=l&&(0,K.jsx)("div",{className:"".concat(f,"-footer ").concat(g).trim(),children:l});return v((0,K.jsxs)(be,a()(a()({className:h},s),{},{children:[S,t,k]})))};Ee.Statistic=X,Ee.Divider=xe,Ee.Operation=we,Ee.isProCard=!0,Ee.Group=function(e){return(0,K.jsx)(Ee,a()({bodyStyle:{padding:0}},e))};var Oe=Ee,je=be;je.isProCard=!0,je.Divider=xe,je.TabPane=fe,je.Group=function(e){return(0,K.jsx)(be,a()({bodyStyle:{padding:0}},e))};var Pe=je,De=je},617:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});var r={"@ant-design/pro-card":"2.9.9","@ant-design/pro-components":"2.8.9","@ant-design/pro-descriptions":"2.6.9","@ant-design/pro-field":"3.0.6","@ant-design/pro-form":"2.31.9","@ant-design/pro-layout":"7.22.6","@ant-design/pro-list":"2.6.9","@ant-design/pro-provider":"2.16.1","@ant-design/pro-skeleton":"2.2.1","@ant-design/pro-table":"3.20.1","@ant-design/pro-utils":"2.17.2"}},47820:function(e,t,n){"use strict";n.d(t,{nf:function(){return he},vY:function(){return Ce}});var r=n(81676),o=n.n(r),a=n(88987),i=n.n(a),c=n(23476),l=n.n(c),u=n(25021),s=n.n(u),d=n(52260),f=n.n(d),p=n(15518),m=n(23362),v=n(26156),g=n(3138),h=n(5449),b=n(7529),y=n(35692),x=n(65921),C=n(61086),w=n(21459),S=n(59922),k=n(32803),E=n(45276),O=n(14013),j=n(65722),P=n(72369),D=n(26763),I=n.n(D),M=n(26e3),Z=n.n(M),N=n(1024),R=n.n(N),F=n(87089),T=n.n(F),B=n(31139),A=n(7613),z=n(72729),L=n(4895),H={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},_=R().createContext({}),W=n(62411),K=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function V(e,t,n){var r=N.useMemo((function(){return t||(e=n,(0,W.Z)(e).map((function(e){return Object.assign(Object.assign({},null==e?void 0:e.props),{key:e.key})})));var e}),[t,n]);return N.useMemo((function(){return r.map((function(t){var n=t.span,r=K(t,["span"]);return"filled"===n?Object.assign(Object.assign({},r),{filled:!0}):Object.assign(Object.assign({},r),{span:"number"==typeof n?n:(0,B.m9)(e,n)})}))}),[r,e])}var X=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var q=function(e,t){var n=(0,N.useMemo)((function(){return function(e,t){var n=[],r=[],o=!1,a=0;return e.filter((function(e){return e})).forEach((function(e){var i=e.filled,c=X(e,["filled"]);if(i)return r.push(c),n.push(r),r=[],void(a=0);var l=t-a;(a+=e.span||1)>=t?(a>t?(o=!0,r.push(Object.assign(Object.assign({},c),{span:l}))):r.push(c),n.push(r),r=[],a=0):r.push(c)})),r.length>0&&n.push(r),n=n.map((function(e){var n=e.reduce((function(e,t){return e+(t.span||1)}),0);if(n<t){var r=e[e.length-1];return r.span=t-(n-(r.span||1)),e}return e})),[n,o]}(t,e)}),[t,e]),r=Z()(n,2),o=r[0];r[1];return o},G=function(e){return e.children};function Y(e){return null!=e}var U=function(e){var t=e.itemPrefixCls,n=e.component,r=e.span,o=e.className,a=e.style,i=e.labelStyle,c=e.contentStyle,l=e.bordered,u=e.label,s=e.content,d=e.colon,f=e.type,p=e.styles,m=n,v=N.useContext(_).classNames;return l?N.createElement(m,{className:T()(I()(I()(I()(I()({},"".concat(t,"-item-label"),"label"===f),"".concat(t,"-item-content"),"content"===f),"".concat(null==v?void 0:v.label),"label"===f),"".concat(null==v?void 0:v.content),"content"===f),o),style:a,colSpan:r},Y(u)&&N.createElement("span",{style:Object.assign(Object.assign({},i),null==p?void 0:p.label)},u),Y(s)&&N.createElement("span",{style:Object.assign(Object.assign({},i),null==p?void 0:p.content)},s)):N.createElement(m,{className:T()("".concat(t,"-item"),o),style:a,colSpan:r},N.createElement("div",{className:"".concat(t,"-item-container")},(u||0===u)&&N.createElement("span",{className:T()("".concat(t,"-item-label"),null==v?void 0:v.label,I()({},"".concat(t,"-item-no-colon"),!d)),style:Object.assign(Object.assign({},i),null==p?void 0:p.label)},u),(s||0===s)&&N.createElement("span",{className:T()("".concat(t,"-item-content"),null==v?void 0:v.content),style:Object.assign(Object.assign({},c),null==p?void 0:p.content)},s)))};function $(e,t,n){var r=t.colon,o=t.prefixCls,a=t.bordered,i=n.component,c=n.type,l=n.showLabel,u=n.showContent,s=n.labelStyle,d=n.contentStyle,f=n.styles;return e.map((function(e,t){var n=e.label,p=e.children,m=e.prefixCls,v=void 0===m?o:m,g=e.className,h=e.style,b=e.labelStyle,y=e.contentStyle,x=e.span,C=void 0===x?1:x,w=e.key,S=e.styles;return"string"==typeof i?N.createElement(U,{key:"".concat(c,"-").concat(w||t),className:g,style:h,styles:{label:Object.assign(Object.assign(Object.assign(Object.assign({},s),null==f?void 0:f.label),b),null==S?void 0:S.label),content:Object.assign(Object.assign(Object.assign(Object.assign({},d),null==f?void 0:f.content),y),null==S?void 0:S.content)},span:C,colon:r,component:i,itemPrefixCls:v,bordered:a,label:l?n:null,content:u?p:null,type:c}):[N.createElement(U,{key:"label-".concat(w||t),className:g,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},s),null==f?void 0:f.label),h),b),null==S?void 0:S.label),span:1,colon:r,component:i[0],itemPrefixCls:v,bordered:a,label:n,type:"label"}),N.createElement(U,{key:"content-".concat(w||t),className:g,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},d),null==f?void 0:f.content),h),y),null==S?void 0:S.content),span:2*C-1,component:i[1],itemPrefixCls:v,bordered:a,content:p,type:"content"})]}))}var Q=function(e){var t=N.useContext(_),n=e.prefixCls,r=e.vertical,o=e.row,a=e.index,i=e.bordered;return r?N.createElement(N.Fragment,null,N.createElement("tr",{key:"label-".concat(a),className:"".concat(n,"-row")},$(o,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),N.createElement("tr",{key:"content-".concat(a),className:"".concat(n,"-row")},$(o,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):N.createElement("tr",{key:a,className:"".concat(n,"-row")},$(o,e,Object.assign({component:i?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},J=n(4920),ee=n(10691),te=n(76141),ne=n(65052),re=function(e){var t,n=e.componentCls,r=e.extraColor,o=e.itemPaddingBottom,a=e.itemPaddingEnd,i=e.colonMarginRight,c=e.colonMarginLeft,l=e.titleMarginBottom;return I()({},n,Object.assign(Object.assign(Object.assign({},(0,ee.Wf)(e)),function(e){var t=e.componentCls,n=e.labelBg;return I()({},"&".concat(t,"-bordered"),I()(I()(I()({},"> ".concat(t,"-view"),I()({border:"".concat((0,J.unit)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit),"> table":{tableLayout:"auto"}},"".concat(t,"-row"),I()(I()({borderBottom:"".concat((0,J.unit)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit),"&:first-child":{"> th:first-child, > td:first-child":{borderStartStartRadius:e.borderRadiusLG}},"&:last-child":{borderBottom:"none","> th:first-child, > td:first-child":{borderEndStartRadius:e.borderRadiusLG}}},"> ".concat(t,"-item-label, > ").concat(t,"-item-content"),{padding:"".concat((0,J.unit)(e.padding)," ").concat((0,J.unit)(e.paddingLG)),borderInlineEnd:"".concat((0,J.unit)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit),"&:last-child":{borderInlineEnd:"none"}}),"> ".concat(t,"-item-label"),{color:e.colorTextSecondary,backgroundColor:n,"&::after":{display:"none"}}))),"&".concat(t,"-middle"),I()({},"".concat(t,"-row"),I()({},"> ".concat(t,"-item-label, > ").concat(t,"-item-content"),{padding:"".concat((0,J.unit)(e.paddingSM)," ").concat((0,J.unit)(e.paddingLG))}))),"&".concat(t,"-small"),I()({},"".concat(t,"-row"),I()({},"> ".concat(t,"-item-label, > ").concat(t,"-item-content"),{padding:"".concat((0,J.unit)(e.paddingXS)," ").concat((0,J.unit)(e.padding))}))))}(e)),(t={"&-rtl":{direction:"rtl"}},I()(I()(I()(I()(I()(I()(I()(I()(I()(I()(t,"".concat(n,"-header"),{display:"flex",alignItems:"center",marginBottom:l}),"".concat(n,"-title"),Object.assign(Object.assign({},ee.vS),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG})),"".concat(n,"-extra"),{marginInlineStart:"auto",color:r,fontSize:e.fontSize}),"".concat(n,"-view"),{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}}),"".concat(n,"-row"),{"> th, > td":{paddingBottom:o,paddingInlineEnd:a},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}}),"".concat(n,"-item-label"),I()({color:e.labelColor,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:"".concat((0,J.unit)(c)," ").concat((0,J.unit)(i))}},"&".concat(n,"-item-no-colon::after"),{content:'""'})),"".concat(n,"-item-no-label"),{"&::after":{margin:0,content:'""'}}),"".concat(n,"-item-content"),{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"}),"".concat(n,"-item"),{paddingBottom:0,verticalAlign:"top","&-container":I()(I()({display:"flex"},"".concat(n,"-item-label"),{display:"inline-flex",alignItems:"baseline"}),"".concat(n,"-item-content"),{display:"inline-flex",alignItems:"baseline",minWidth:"1em"})}),"&-middle",I()({},"".concat(n,"-row"),{"> th, > td":{paddingBottom:e.paddingSM}})),I()(t,"&-small",I()({},"".concat(n,"-row"),{"> th, > td":{paddingBottom:e.paddingXS}})))))},oe=(0,te.I$)("Descriptions",(function(e){var t=(0,ne.mergeToken)(e,{});return re(t)}),(function(e){return{labelBg:e.colorFillAlter,labelColor:e.colorTextTertiary,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText}})),ae=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},ie=function(e){var t=e.prefixCls,n=e.title,r=e.extra,o=e.column,a=e.colon,i=void 0===a||a,c=e.bordered,l=e.layout,u=e.children,s=e.className,d=e.rootClassName,f=e.style,p=e.size,m=e.labelStyle,v=e.contentStyle,g=e.styles,h=e.items,b=e.classNames,y=ae(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","styles","items","classNames"]),x=(0,A.dj)("descriptions"),C=x.getPrefixCls,w=x.direction,S=x.className,k=x.style,E=x.classNames,O=x.styles,j=C("descriptions",t),P=(0,L.Z)(),D=N.useMemo((function(){var e;return"number"==typeof o?o:null!==(e=(0,B.m9)(P,Object.assign(Object.assign({},H),o)))&&void 0!==e?e:3}),[P,o]),M=V(P,h,u),R=(0,z.Z)(p),F=q(D,M),W=oe(j),K=Z()(W,3),X=K[0],G=K[1],Y=K[2],U=N.useMemo((function(){return{labelStyle:m,contentStyle:v,styles:{content:Object.assign(Object.assign({},O.content),null==g?void 0:g.content),label:Object.assign(Object.assign({},O.label),null==g?void 0:g.label)},classNames:{label:T()(E.label,null==b?void 0:b.label),content:T()(E.content,null==b?void 0:b.content)}}}),[m,v,g,b,E,O]);return X(N.createElement(_.Provider,{value:U},N.createElement("div",Object.assign({className:T()(j,S,E.root,null==b?void 0:b.root,I()(I()(I()({},"".concat(j,"-").concat(R),R&&"default"!==R),"".concat(j,"-bordered"),!!c),"".concat(j,"-rtl"),"rtl"===w),s,d,G,Y),style:Object.assign(Object.assign(Object.assign(Object.assign({},k),O.root),null==g?void 0:g.root),f)},y),(n||r)&&N.createElement("div",{className:T()("".concat(j,"-header"),E.header,null==b?void 0:b.header),style:Object.assign(Object.assign({},O.header),null==g?void 0:g.header)},n&&N.createElement("div",{className:T()("".concat(j,"-title"),E.title,null==b?void 0:b.title),style:Object.assign(Object.assign({},O.title),null==g?void 0:g.title)},n),r&&N.createElement("div",{className:T()("".concat(j,"-extra"),E.extra,null==b?void 0:b.extra),st