12 |
- (self.webpackChunk=self.webpackChunk||[]).push([[3315],{55054:function(j,Q,c){"use strict";c.d(Q,{Z:function(){return oe}});var l=c(67294),F=c(57838),p=c(96159),R=c(93967),v=c.n(R),T=c(64217),P=c(53124),z=c(48054),N=r=>{const{value:a,formatter:d,precision:e,decimalSeparator:t,groupSeparator:s="",prefixCls:o}=r;let n;if(typeof d=="function")n=d(a);else{const i=String(a),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,s),typeof e=="number"&&(f=f.padEnd(e,"0").slice(0,e>0?e:0)),f&&(f=`${t}${f}`),n=[l.createElement("span",{key:"int",className:`${o}-content-value-int`},g,m),f&&l.createElement("span",{key:"decimal",className:`${o}-content-value-decimal`},f)]}}return l.createElement("span",{className:`${o}-content-value`},n)},h=c(14747),x=c(83559),G=c(83262);const D=r=>{const{componentCls:a,marginXXS:d,padding:e,colorTextDescription:t,titleFontSize:s,colorTextHeading:o,contentFontSize:n,fontFamily:i}=r;return{[a]:Object.assign(Object.assign({},(0,h.Wf)(r)),{[`${a}-title`]:{marginBottom:d,color:t,fontSize:s},[`${a}-skeleton`]:{paddingTop:e},[`${a}-content`]:{color:o,fontSize:n,fontFamily:i,[`${a}-content-value`]:{display:"inline-block",direction:"ltr"},[`${a}-content-prefix, ${a}-content-suffix`]:{display:"inline-block"},[`${a}-content-prefix`]:{marginInlineEnd:d},[`${a}-content-suffix`]:{marginInlineStart:d}}})}},J=r=>{const{fontSizeHeading3:a,fontSize:d}=r;return{titleFontSize:d,contentFontSize:a}};var L=(0,x.I$)("Statistic",r=>{const a=(0,G.IX)(r,{});return[D(a)]},J),V=function(r,a){var d={};for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&a.indexOf(e)<0&&(d[e]=r[e]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var t=0,e=Object.getOwnPropertySymbols(r);t<e.length;t++)a.indexOf(e[t])<0&&Object.prototype.propertyIsEnumerable.call(r,e[t])&&(d[e[t]]=r[e[t]]);return d},Z=r=>{const{prefixCls:a,className:d,rootClassName:e,style:t,valueStyle:s,value:o=0,title:n,valueRender:i,prefix:u,suffix:g,loading:m=!1,formatter:f,precision:C,decimalSeparator:$=".",groupSeparator:O=",",onMouseEnter:A,onMouseLeave:W}=r,S=V(r,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:X,direction:H,statistic:E}=l.useContext(P.E_),b=X("statistic",a),[Y,U,re]=L(b),y=l.createElement(N,{decimalSeparator:$,groupSeparator:O,prefixCls:b,formatter:f,precision:C,value:o}),ae=v()(b,{[`${b}-rtl`]:H==="rtl"},E==null?void 0:E.className,d,e,U,re),le=(0,T.Z)(S,{aria:!0,data:!0});return Y(l.createElement("div",Object.assign({},le,{className:ae,style:Object.assign(Object.assign({},E==null?void 0:E.style),t),onMouseEnter:A,onMouseLeave:W}),n&&l.createElement("div",{className:`${b}-title`},n),l.createElement(z.Z,{paragraph:!1,loading:m,className:`${b}-skeleton`},l.createElement("div",{style:s,className:`${b}-content`},u&&l.createElement("span",{className:`${b}-content-prefix`},u),i?i(y):y,g&&l.createElement("span",{className:`${b}-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(r,a){let d=r;const e=/\[[^\]]*]/g,t=(a.match(e)||[]).map(i=>i.slice(1,-1)),s=a.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"),C=>{const $=C.length;return f.toString().padStart($,"0")})}return i},s);let n=0;return o.replace(e,()=>{const i=t[n];return n+=1,i})}function q(r,a){const{format:d=""}=a,e=new Date(r).getTime(),t=Date.now(),s=Math.max(e-t,0);return k(s,d)}var _=function(r,a){var d={};for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&a.indexOf(e)<0&&(d[e]=r[e]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var t=0,e=Object.getOwnPropertySymbols(r);t<e.length;t++)a.indexOf(e[t])<0&&Object.prototype.propertyIsEnumerable.call(r,e[t])&&(d[e[t]]=r[e[t]]);return d};const ee=1e3/30;function te(r){return new Date(r).getTime()}const B=r=>{const{value:a,format:d="HH:mm:ss",onChange:e,onFinish:t}=r,s=_(r,["value","format","onChange","onFinish"]),o=(0,F.Z)(),n=l.useRef(null),i=()=>{t==null||t(),n.current&&(clearInterval(n.current),n.current=null)},u=()=>{const f=te(a);f>=Date.now()&&(n.current=setInterval(()=>{o(),e==null||e(f-Date.now()),f<Date.now()&&i()},ee))};l.useEffect(()=>(u(),()=>{n.current&&(clearInterval(n.current),n.current=null)}),[a]);const g=(f,C)=>q(f,Object.assign(Object.assign({},C),{format:d})),m=f=>(0,p.Tm)(f,{title:void 0});return l.createElement(Z,Object.assign({},s,{value:a,valueRender:m,formatter:g}))};var ne=l.memo(B);Z.Countdown=ne;var oe=Z},66309:function(j,Q,c){"use strict";c.d(Q,{Z:function(){return d}});var l=c(67294),F=c(93967),p=c.n(F),R=c(98423),v=c(98787),T=c(69760),P=c(96159),z=c(45353),w=c(53124),N=c(11568),h=c(15063),x=c(14747),G=c(83262),D=c(83559);const J=e=>{const{paddingXXS:t,lineWidth:s,tagPaddingHorizontal:o,componentCls:n,calc:i}=e,u=i(o).sub(s).equal(),g=i(t).sub(s).equal();return{[n]:Object.assign(Object.assign({},(0,x.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,N.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:s,calc:o}=e,n=e.fontSizeSM;return(0,G.IX)(e,{tagFontSize:n,tagLineHeight:(0,N.bf)(o(e.lineHeightSM).mul(n).equal()),tagIconSize:o(s).sub(o(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},V=e=>({defaultBg:new h.t(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var K=(0,D.I$)("Tag",e=>{const t=L(e);return J(t)},V),Z=function(e,t){var s={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(s[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])&&(s[o[n]]=e[o[n]]);return s},k=l.forwardRef((e,t)=>{const{prefixCls:s,style:o,className:n,checked:i,onChange:u,onClick:g}=e,m=Z(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:f,tag:C}=l.useContext(w.E_),$=H=>{u==null||u(!i),g==null||g(H)},O=f("tag",s),[A,W,S]=K(O),X=p()(O,`${O}-checkable`,{[`${O}-checkable-checked`]:i},C==null?void 0:C.className,n,W,S);return A(l.createElement("span",Object.assign({},m,{ref:t,style:Object.assign(Object.assign({},o),C==null?void 0:C.style),className:X,onClick:$})))}),q=c(98719);const _=e=>(0,q.Z)(e,(t,s)=>{let{textColor:o,lightBorderColor:n,lightColor:i,darkColor:u}=s;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,D.bk)(["Tag","preset"],e=>{const t=L(e);return _(t)},V);function te(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const B=(e,t,s)=>{const o=te(s);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${s}`],background:e[`color${o}Bg`],borderColor:e[`color${o}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var ne=(0,D.bk)(["Tag","status"],e=>{const t=L(e);return[B(t,"success","Success"),B(t,"processing","Info"),B(t,"error","Error"),B(t,"warning","Warning")]},V),oe=function(e,t){var s={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(s[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])&&(s[o[n]]=e[o[n]]);return s};const a=l.forwardRef((e,t)=>{const{prefixCls:s,className:o,rootClassName:n,style:i,children:u,icon:g,color:m,onClose:f,bordered:C=!0,visible:$}=e,O=oe(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:A,direction:W,tag:S}=l.useContext(w.E_),[X,H]=l.useState(!0),E=(0,R.Z)(O,["closeIcon","closable"]);l.useEffect(()=>{$!==void 0&&H($)},[$]);const b=(0,v.o2)(m),Y=(0,v.yT)(m),U=b||Y,re=Object.assign(Object.assign({backgroundColor:m&&!U?m:void 0},S==null?void 0:S.style),i),y=A("tag",s),[ae,le,me]=K(y),ge=p()(y,S==null?void 0:S.className,{[`${y}-${m}`]:U,[`${y}-has-color`]:m&&!U,[`${y}-hidden`]:!X,[`${y}-rtl`]:W==="rtl",[`${y}-borderless`]:!C},o,n,le,me),ie=M=>{M.stopPropagation(),f==null||f(M),!M.defaultPrevented&&H(!1)},[,pe]=(0,T.Z)((0,T.w)(e),(0,T.w)(S),{closable:!1,closeIconRender:M=>{const ye=l.createElement("span",{className:`${y}-close-icon`,onClick:ie},M);return(0,P.wm)(M,ye,I=>({onClick:fe=>{var se;(se=I==null?void 0:I.onClick)===null||se===void 0||se.call(I,fe),ie(fe)},className:p()(I==null?void 0:I.className,`${y}-close-icon`)}))}}),ve=typeof O.onClick=="function"||u&&u.type==="a",de=g||null,Ce=de?l.createElement(l.Fragment,null,de,u&&l.createElement("span",null,u)):u,ue=l.createElement("span",Object.assign({},E,{ref:t,className:ge,style:re}),Ce,pe,b&&l.createElement(ee,{key:"preset",prefixCls:y}),Y&&l.createElement(ne,{key:"status",prefixCls:y}));return ae(ve?l.createElement(z.Z,{component:"Tag"},ue):ue)});a.CheckableTag=k;var d=a},64599:function(j,Q,c){var l=c(96263);function F(p,R){var v=typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(!v){if(Array.isArray(p)||(v=l(p))||R&&p&&typeof p.length=="number"){v&&(p=v);var T=0,P=function(){};return{s:P,n:function(){return T>=p.length?{done:!0}:{done:!1,value:p[T++]}},e:function(x){throw x},f:P}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var z=!0,w=!1,N;return{s:function(){v=v.call(p)},n:function(){var x=v.next();return z=x.done,x},e:function(x){w=!0,N=x},f:function(){try{!z&&v.return!=null&&v.return()}finally{if(w)throw N}}}}j.exports=F,j.exports.__esModule=!0,j.exports.default=j.exports}}]);
|