You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
13 KiB
1 line
13 KiB
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[54240],{18889:function(e,t,n){n.d(t,{Z:function(){return T}});var a=n(92310),r=n.n(a),o=n(2738),i=n(59301),l=n(36355),s=n(19716),c=n(61621),d=n(99313),p=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n};var g=e=>{var{prefixCls:t,className:n,hoverable:a=!0}=e,o=p(e,["prefixCls","className","hoverable"]);const{getPrefixCls:s}=i.useContext(l.E_),c=s("card",t),d=r()(`${c}-grid`,n,{[`${c}-grid-hoverable`]:a});return i.createElement("div",Object.assign({},o,{className:d}))},m=n(17313),u=n(83116),b=n(37613);const $=e=>{const{antCls:t,componentCls:n,headerHeight:a,cardPaddingBase:r,tabsMarginBottom:o}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:a,marginBottom:-1,padding:`0 ${r}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},(0,m.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},m.vS),{[`\n > ${n}-typography,\n > ${n}-typography-edit-content\n `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:o,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`}}})},f=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:a,lineWidth:r}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`\n ${r}px 0 0 0 ${n},\n 0 ${r}px 0 0 ${n},\n ${r}px ${r}px 0 0 ${n},\n ${r}px 0 0 0 ${n} inset,\n 0 ${r}px 0 0 ${n} inset;\n `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:a}}},h=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:a,cardActionsIconSize:r,colorBorderSecondary:o,actionsBg:i}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:i,borderTop:`${e.lineWidth}px ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px `},(0,m.dF)()),{"& > li":{margin:a,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:2*e.cardActionsIconSize,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:e.fontSize*e.lineHeight+"px",transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:r,lineHeight:r*e.lineHeight+"px"}},"&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${o}`}}})},y=e=>Object.assign(Object.assign({margin:`-${e.marginXXS}px 0`,display:"flex"},(0,m.dF)()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},m.vS),"&-description":{color:e.colorTextDescription}}),x=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:a}=e;return{[`${t}-head`]:{padding:`0 ${n}px`,background:a,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${e.padding}px ${n}px`}}},v=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},S=e=>{const{antCls:t,componentCls:n,cardShadow:a,cardHeadPadding:r,colorBorderSecondary:o,boxShadowTertiary:i,cardPaddingBase:l,extraColor:s}=e;return{[n]:Object.assign(Object.assign({},(0,m.Wf)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${n}-bordered)`]:{boxShadow:i},[`${n}-head`]:$(e),[`${n}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${n}-body`]:Object.assign({padding:l,borderRadius:` 0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},(0,m.dF)()),[`${n}-grid`]:f(e),[`${n}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${t}-image-mask`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`}},[`${n}-actions`]:h(e),[`${n}-meta`]:y(e)}),[`${n}-bordered`]:{border:`${e.lineWidth}px ${e.lineType} ${o}`,[`${n}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${n}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:a}},[`${n}-contain-grid`]:{[`${n}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${n}-loading) ${n}-body`]:{marginBlockStart:-e.lineWidth,marginInlineStart:-e.lineWidth,padding:0}},[`${n}-contain-tabs`]:{[`> ${n}-head`]:{[`${n}-head-title, ${n}-extra`]:{paddingTop:r}}},[`${n}-type-inner`]:x(e),[`${n}-loading`]:v(e),[`${n}-rtl`]:{direction:"rtl"}}},O=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:a,headerFontSizeSM:r}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:a,padding:`0 ${n}px`,fontSize:r,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{minHeight:a,paddingTop:0,display:"flex",alignItems:"center"}}}}};var C=(0,u.Z)("Card",(e=>{const t=(0,b.TS)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[S(t),O(t)]}),(e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}))),E=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n};const j=i.forwardRef(((e,t)=>{const{prefixCls:n,className:a,rootClassName:p,style:m,extra:u,headStyle:b={},bodyStyle:$={},title:f,loading:h,bordered:y=!0,size:x,type:v,cover:S,actions:O,tabList:j,children:w,activeTabKey:z,defaultActiveTabKey:N,tabBarExtraContent:T,hoverable:B,tabProps:P={}}=e,M=E(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:H,direction:k,card:I}=i.useContext(l.E_),L=i.useMemo((()=>{let e=!1;return i.Children.forEach(w,(t=>{t&&t.type&&t.type===g&&(e=!0)})),e}),[w]),R=H("card",n),[W,D]=C(R),F=i.createElement(c.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},w),G=void 0!==z,Z=Object.assign(Object.assign({},P),{[G?"activeKey":"defaultActiveKey"]:G?z:N,tabBarExtraContent:T});let A;const K=(0,s.Z)(x),X=K&&"default"!==K?K:"large",_=j?i.createElement(d.Z,Object.assign({size:X},Z,{className:`${R}-head-tabs`,onChange:t=>{var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)},items:j.map((e=>{var{tab:t}=e,n=E(e,["tab"]);return Object.assign({label:t},n)}))})):null;(f||u||_)&&(A=i.createElement("div",{className:`${R}-head`,style:b},i.createElement("div",{className:`${R}-head-wrapper`},f&&i.createElement("div",{className:`${R}-head-title`},f),u&&i.createElement("div",{className:`${R}-extra`},u)),_));const Y=S?i.createElement("div",{className:`${R}-cover`},S):null,q=i.createElement("div",{className:`${R}-body`,style:$},h?F:w),J=O&&O.length?i.createElement("ul",{className:`${R}-actions`},function(e){return e.map(((t,n)=>i.createElement("li",{style:{width:100/e.length+"%"},key:`action-${n}`},i.createElement("span",null,t))))}(O)):null,Q=(0,o.Z)(M,["onTabChange"]),U=r()(R,null==I?void 0:I.className,{[`${R}-loading`]:h,[`${R}-bordered`]:y,[`${R}-hoverable`]:B,[`${R}-contain-grid`]:L,[`${R}-contain-tabs`]:j&&j.length,[`${R}-${K}`]:K,[`${R}-type-${v}`]:!!v,[`${R}-rtl`]:"rtl"===k},a,p,D),V=Object.assign(Object.assign({},null==I?void 0:I.style),m);return W(i.createElement("div",Object.assign({ref:t},Q,{className:U,style:V}),A,Y,q,J))}));var w=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n};var z=e=>{const{prefixCls:t,className:n,avatar:a,title:o,description:s}=e,c=w(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:d}=i.useContext(l.E_),p=d("card",t),g=r()(`${p}-meta`,n),m=a?i.createElement("div",{className:`${p}-meta-avatar`},a):null,u=o?i.createElement("div",{className:`${p}-meta-title`},o):null,b=s?i.createElement("div",{className:`${p}-meta-description`},s):null,$=u||b?i.createElement("div",{className:`${p}-meta-detail`},u,b):null;return i.createElement("div",Object.assign({},c,{className:g}),m,$)};const N=j;N.Grid=g,N.Meta=z;var T=N},31797:function(e,t,n){n.d(t,{Z:function(){return v}});var a=n(59301),r=n(56762),o=n(92343),i=n(92310),l=n.n(i),s=n(36355),c=n(61621);var d=e=>{const{value:t,formatter:n,precision:r,decimalSeparator:o,groupSeparator:i="",prefixCls:l}=e;let s;if("function"==typeof n)s=n(t);else{const e=String(t),n=e.match(/^(-?)(\d*)(\.(\d+))?$/);if(n&&"-"!==e){const e=n[1];let t=n[2]||"0",c=n[4]||"";t=t.replace(/\B(?=(\d{3})+(?!\d))/g,i),"number"==typeof r&&(c=c.padEnd(r,"0").slice(0,r>0?r:0)),c&&(c=`${o}${c}`),s=[a.createElement("span",{key:"int",className:`${l}-content-value-int`},e,t),c&&a.createElement("span",{key:"decimal",className:`${l}-content-value-decimal`},c)]}else s=e}return a.createElement("span",{className:`${l}-content-value`},s)},p=n(17313),g=n(83116),m=n(37613);const u=e=>{const{componentCls:t,marginXXS:n,padding:a,colorTextDescription:r,titleFontSize:o,colorTextHeading:i,contentFontSize:l,fontFamily:s}=e;return{[`${t}`]:Object.assign(Object.assign({},(0,p.Wf)(e)),{[`${t}-title`]:{marginBottom:n,color:r,fontSize:o},[`${t}-skeleton`]:{paddingTop:a},[`${t}-content`]:{color:i,fontSize:l,fontFamily:s,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}};var b=(0,g.Z)("Statistic",(e=>{const t=(0,m.TS)(e,{});return[u(t)]}),(e=>{const{fontSizeHeading3:t,fontSize:n}=e;return{titleFontSize:n,contentFontSize:t}}));var $=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,valueStyle:i,value:p=0,title:g,valueRender:m,prefix:u,suffix:$,loading:f=!1,onMouseEnter:h,onMouseLeave:y,decimalSeparator:x=".",groupSeparator:v=","}=e,{getPrefixCls:S,direction:O,statistic:C}=a.useContext(s.E_),E=S("statistic",t),[j,w]=b(E),z=a.createElement(d,Object.assign({decimalSeparator:x,groupSeparator:v,prefixCls:E},e,{value:p})),N=l()(E,{[`${E}-rtl`]:"rtl"===O},null==C?void 0:C.className,n,r,w);return j(a.createElement("div",{className:N,style:Object.assign(Object.assign({},null==C?void 0:C.style),o),onMouseEnter:h,onMouseLeave:y},g&&a.createElement("div",{className:`${E}-title`},g),a.createElement(c.Z,{paragraph:!1,loading:f,className:`${E}-skeleton`},a.createElement("div",{style:i,className:`${E}-content`},u&&a.createElement("span",{className:`${E}-content-prefix`},u),m?m(z):z,$&&a.createElement("span",{className:`${E}-content-suffix`},$)))))};const f=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function h(e,t){const{format:n=""}=t,a=new Date(e).getTime(),r=Date.now();return function(e,t){let n=e;const a=/\[[^\]]*]/g,r=(t.match(a)||[]).map((e=>e.slice(1,-1))),o=t.replace(a,"[]"),i=f.reduce(((e,t)=>{let[a,r]=t;if(e.includes(a)){const t=Math.floor(n/r);return n-=t*r,e.replace(new RegExp(`${a}+`,"g"),(e=>{const n=e.length;return t.toString().padStart(n,"0")}))}return e}),o);let l=0;return i.replace(a,(()=>{const e=r[l];return l+=1,e}))}(Math.max(a-r,0),n)}const y=e=>{const{value:t,format:n="HH:mm:ss",onChange:i,onFinish:l}=e,s=(0,r.Z)(),c=a.useRef(null),d=()=>{const e=function(e){return new Date(e).getTime()}(t);e>=Date.now()&&(c.current=setInterval((()=>{s(),null==i||i(e-Date.now()),e<Date.now()&&(null==l||l(),c.current&&(clearInterval(c.current),c.current=null))}),33.333333333333336))};a.useEffect((()=>(d(),()=>{c.current&&(clearInterval(c.current),c.current=null)})),[t]);return a.createElement($,Object.assign({},e,{valueRender:e=>(0,o.Tm)(e,{title:void 0}),formatter:(e,t)=>h(e,Object.assign(Object.assign({},t),{format:n}))}))};var x=a.memo(y);$.Countdown=x;var v=$}}]); |