1 |
- "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[1080],{90672:function(Y,O,r){var a=r(1413),$=r(45987),b=r(67294),N=r(36723),j=r(85893),E=["fieldProps","proFieldProps"],w=function(T,I){var D=T.fieldProps,F=T.proFieldProps,R=(0,$.Z)(T,E);return(0,j.jsx)(N.Z,(0,a.Z)({ref:I,valueType:"textarea",fieldProps:D,proFieldProps:F},R))};O.Z=b.forwardRef(w)},12044:function(Y,O,r){r.d(O,{j:function(){return b}});var a=r(34155),$=typeof a!="undefined"&&a.versions!=null&&a.versions.node!=null,b=function(){return typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.matchMedia!="undefined"&&!$}},55054:function(Y,O,r){r.d(O,{Z:function(){return oe}});var a=r(67294),$=r(57838),b=r(96159),N=r(93967),j=r.n(N),E=r(64217),w=r(53124),K=r(48054),I=l=>{const{value:s,formatter:d,precision:e,decimalSeparator:t,groupSeparator:c="",prefixCls:o}=l;let n;if(typeof d=="function")n=d(s);else{const i=String(s),u=i.match(/^(-?)(\d*)(\.(\d+))?$/);if(!u||i==="-")n=i;else{const g=u[1];let m=u[2]||"0",f=u[4]||"";m=m.replace(/\B(?=(\d{3})+(?!\d))/g,c),typeof e=="number"&&(f=f.padEnd(e,"0").slice(0,e>0?e:0)),f&&(f=`${t}${f}`),n=[a.createElement("span",{key:"int",className:`${o}-content-value-int`},g,m),f&&a.createElement("span",{key:"decimal",className:`${o}-content-value-decimal`},f)]}}return a.createElement("span",{className:`${o}-content-value`},n)},D=r(14747),F=r(83559),R=r(83262);const H=l=>{const{componentCls:s,marginXXS:d,padding:e,colorTextDescription:t,titleFontSize:c,colorTextHeading:o,contentFontSize:n,fontFamily:i}=l;return{[s]:Object.assign(Object.assign({},(0,D.Wf)(l)),{[`${s}-title`]:{marginBottom:d,color:t,fontSize:c},[`${s}-skeleton`]:{paddingTop:e},[`${s}-content`]:{color:o,fontSize:n,fontFamily:i,[`${s}-content-value`]:{display:"inline-block",direction:"ltr"},[`${s}-content-prefix, ${s}-content-suffix`]:{display:"inline-block"},[`${s}-content-prefix`]:{marginInlineEnd:d},[`${s}-content-suffix`]:{marginInlineStart:d}}})}},G=l=>{const{fontSizeHeading3:s,fontSize:d}=l;return{titleFontSize:d,contentFontSize:s}};var L=(0,F.I$)("Statistic",l=>{const s=(0,R.IX)(l,{});return[H(s)]},G),W=function(l,s){var d={};for(var e in l)Object.prototype.hasOwnProperty.call(l,e)&&s.indexOf(e)<0&&(d[e]=l[e]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var t=0,e=Object.getOwnPropertySymbols(l);t<e.length;t++)s.indexOf(e[t])<0&&Object.prototype.propertyIsEnumerable.call(l,e[t])&&(d[e[t]]=l[e[t]]);return d},Z=l=>{const{prefixCls:s,className:d,rootClassName:e,style:t,valueStyle:c,value:o=0,title:n,valueRender:i,prefix:u,suffix:g,loading:m=!1,formatter:f,precision:p,decimalSeparator:S=".",groupSeparator:h=",",onMouseEnter:A,onMouseLeave:U}=l,y=W(l,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:V,direction:z,statistic:x}=a.useContext(w.E_),C=V("statistic",s),[Q,X,re]=L(C),v=a.createElement(I,{decimalSeparator:S,groupSeparator:h,prefixCls:C,formatter:f,precision:p,value:o}),ae=j()(C,{[`${C}-rtl`]:z==="rtl"},x==null?void 0:x.className,d,e,X,re),le=(0,E.Z)(y,{aria:!0,data:!0});return Q(a.createElement("div",Object.assign({},le,{className:ae,style:Object.assign(Object.assign({},x==null?void 0:x.style),t),onMouseEnter:A,onMouseLeave:U}),n&&a.createElement("div",{className:`${C}-title`},n),a.createElement(K.Z,{paragraph:!1,loading:m,className:`${C}-skeleton`},a.createElement("div",{style:c,className:`${C}-content`},u&&a.createElement("span",{className:`${C}-content-prefix`},u),i?i(v):v,g&&a.createElement("span",{className:`${C}-content-suffix`},g)))))};const ce=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function k(l,s){let d=l;const e=/\[[^\]]*]/g,t=(s.match(e)||[]).map(i=>i.slice(1,-1)),c=s.replace(e,"[]"),o=ce.reduce((i,u)=>{let[g,m]=u;if(i.includes(g)){const f=Math.floor(d/m);return d-=f*m,i.replace(new RegExp(`${g}+`,"g"),p=>{const S=p.length;return f.toString().padStart(S,"0")})}return i},c);let n=0;return o.replace(e,()=>{const i=t[n];return n+=1,i})}function q(l,s){const{format:d=""}=s,e=new Date(l).getTime(),t=Date.now(),c=Math.max(e-t,0);return k(c,d)}var _=function(l,s){var d={};for(var e in l)Object.prototype.hasOwnProperty.call(l,e)&&s.indexOf(e)<0&&(d[e]=l[e]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var t=0,e=Object.getOwnPropertySymbols(l);t<e.length;t++)s.indexOf(e[t])<0&&Object.prototype.propertyIsEnumerable.call(l,e[t])&&(d[e[t]]=l[e[t]]);return d};const ee=1e3/30;function te(l){return new Date(l).getTime()}const M=l=>{const{value:s,format:d="HH:mm:ss",onChange:e,onFinish:t}=l,c=_(l,["value","format","onChange","onFinish"]),o=(0,$.Z)(),n=a.useRef(null),i=()=>{t==null||t(),n.current&&(clearInterval(n.current),n.current=null)},u=()=>{const f=te(s);f>=Date.now()&&(n.current=setInterval(()=>{o(),e==null||e(f-Date.now()),f<Date.now()&&i()},ee))};a.useEffect(()=>(u(),()=>{n.current&&(clearInterval(n.current),n.current=null)}),[s]);const g=(f,p)=>q(f,Object.assign(Object.assign({},p),{format:d})),m=f=>(0,b.Tm)(f,{title:void 0});return a.createElement(Z,Object.assign({},c,{value:s,valueRender:m,formatter:g}))};var ne=a.memo(M);Z.Countdown=ne;var oe=Z},66309:function(Y,O,r){r.d(O,{Z:function(){return d}});var a=r(67294),$=r(93967),b=r.n($),N=r(98423),j=r(98787),E=r(69760),w=r(96159),K=r(45353),T=r(53124),I=r(11568),D=r(15063),F=r(14747),R=r(83262),H=r(83559);const G=e=>{const{paddingXXS:t,lineWidth:c,tagPaddingHorizontal:o,componentCls:n,calc:i}=e,u=i(o).sub(c).equal(),g=i(t).sub(c).equal();return{[n]:Object.assign(Object.assign({},(0,F.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:u,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,I.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${n}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${n}-close-icon`]:{marginInlineStart:g,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${n}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${n}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:u}}),[`${n}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},L=e=>{const{lineWidth:t,fontSizeIcon:c,calc:o}=e,n=e.fontSizeSM;return(0,R.IX)(e,{tagFontSize:n,tagLineHeight:(0,I.bf)(o(e.lineHeightSM).mul(n).equal()),tagIconSize:o(c).sub(o(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},W=e=>({defaultBg:new D.t(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var J=(0,H.I$)("Tag",e=>{const t=L(e);return G(t)},W),Z=function(e,t){var c={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(c[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(c[o[n]]=e[o[n]]);return c},k=a.forwardRef((e,t)=>{const{prefixCls:c,style:o,className:n,checked:i,onChange:u,onClick:g}=e,m=Z(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:f,tag:p}=a.useContext(T.E_),S=z=>{u==null||u(!i),g==null||g(z)},h=f("tag",c),[A,U,y]=J(h),V=b()(h,`${h}-checkable`,{[`${h}-checkable-checked`]:i},p==null?void 0:p.className,n,U,y);return A(a.createElement("span",Object.assign({},m,{ref:t,style:Object.assign(Object.assign({},o),p==null?void 0:p.style),className:V,onClick:S})))}),q=r(98719);const _=e=>(0,q.Z)(e,(t,c)=>{let{textColor:o,lightBorderColor:n,lightColor:i,darkColor:u}=c;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:o,background:i,borderColor:n,"&-inverse":{color:e.colorTextLightSolid,background:u,borderColor:u},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var ee=(0,H.bk)(["Tag","preset"],e=>{const t=L(e);return _(t)},W);function te(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const M=(e,t,c)=>{const o=te(c);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${c}`],background:e[`color${o}Bg`],borderColor:e[`color${o}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var ne=(0,H.bk)(["Tag","status"],e=>{const t=L(e);return[M(t,"success","Success"),M(t,"processing","Info"),M(t,"error","Error"),M(t,"warning","Warning")]},W),oe=function(e,t){var c={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(c[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(c[o[n]]=e[o[n]]);return c};const s=a.forwardRef((e,t)=>{const{prefixCls:c,className:o,rootClassName:n,style:i,children:u,icon:g,color:m,onClose:f,bordered:p=!0,visible:S}=e,h=oe(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:A,direction:U,tag:y}=a.useContext(T.E_),[V,z]=a.useState(!0),x=(0,N.Z)(h,["closeIcon","closable"]);a.useEffect(()=>{S!==void 0&&z(S)},[S]);const C=(0,j.o2)(m),Q=(0,j.yT)(m),X=C||Q,re=Object.assign(Object.assign({backgroundColor:m&&!X?m:void 0},y==null?void 0:y.style),i),v=A("tag",c),[ae,le,me]=J(v),ge=b()(v,y==null?void 0:y.className,{[`${v}-${m}`]:X,[`${v}-has-color`]:m&&!X,[`${v}-hidden`]:!V,[`${v}-rtl`]:U==="rtl",[`${v}-borderless`]:!p},o,n,le,me),ie=B=>{B.stopPropagation(),f==null||f(B),!B.defaultPrevented&&z(!1)},[,pe]=(0,E.Z)((0,E.w)(e),(0,E.w)(y),{closable:!1,closeIconRender:B=>{const ye=a.createElement("span",{className:`${v}-close-icon`,onClick:ie},B);return(0,w.wm)(B,ye,P=>({onClick:fe=>{var se;(se=P==null?void 0:P.onClick)===null||se===void 0||se.call(P,fe),ie(fe)},className:b()(P==null?void 0:P.className,`${v}-close-icon`)}))}}),ve=typeof h.onClick=="function"||u&&u.type==="a",de=g||null,Ce=de?a.createElement(a.Fragment,null,de,u&&a.createElement("span",null,u)):u,ue=a.createElement("span",Object.assign({},x,{ref:t,className:ge,style:re}),Ce,pe,C&&a.createElement(ee,{key:"preset",prefixCls:v}),Q&&a.createElement(ne,{key:"status",prefixCls:v}));return ae(ve?a.createElement(K.Z,{component:"Tag"},ue):ue)});s.CheckableTag=k;var d=s}}]);
|