No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 

2 líneas
6.6 KiB

  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[983],{81903:function(){},7277:function(i,d,t){"use strict";t.d(d,{Z:function(){return Y}});var n=t(22122),o=t(6610),s=t(5991),a=t(10379),e=t(54070),r=t(67294),c=t(96159),E=t(96156),m=t(94184),p=t.n(m),M=t(53124),A=t(19586),I=t(11726),P=t.n(I),L=function(f){var l=f.value,u=f.formatter,v=f.precision,x=f.decimalSeparator,S=f.groupSeparator,R=S===void 0?"":S,g=f.prefixCls,h;if(typeof u=="function")h=u(l);else{var N=String(l),y=N.match(/^(-?)(\d*)(\.(\d+))?$/);if(!y||N==="-")h=N;else{var b=y[1],D=y[2]||"0",C=y[4]||"";D=D.replace(/\B(?=(\d{3})+(?!\d))/g,R),typeof v=="number"&&(C=P()(C,v,"0").slice(0,v>0?v:0)),C&&(C="".concat(x).concat(C)),h=[r.createElement("span",{key:"int",className:"".concat(g,"-content-value-int")},b,D),C&&r.createElement("span",{key:"decimal",className:"".concat(g,"-content-value-decimal")},C)]}}return r.createElement("span",{className:"".concat(g,"-content-value")},h)},W=L,O=function(f){var l=f.prefixCls,u=f.className,v=f.style,x=f.valueStyle,S=f.value,R=S===void 0?0:S,g=f.title,h=f.valueRender,N=f.prefix,y=f.suffix,b=f.loading,D=f.direction,C=f.onMouseEnter,B=f.onMouseLeave,$=r.createElement(W,(0,n.Z)({},f,{value:R})),Q=p()(l,(0,E.Z)({},"".concat(l,"-rtl"),D==="rtl"),u);return r.createElement("div",{className:Q,style:v,onMouseEnter:C,onMouseLeave:B},g&&r.createElement("div",{className:"".concat(l,"-title")},g),r.createElement(A.Z,{paragraph:!1,loading:b,className:"".concat(l,"-skeleton")},r.createElement("div",{style:x,className:"".concat(l,"-content")},N&&r.createElement("span",{className:"".concat(l,"-content-prefix")},N),h?h($):$,y&&r.createElement("span",{className:"".concat(l,"-content-suffix")},y))))};O.defaultProps={decimalSeparator:".",groupSeparator:",",loading:!1};var Z=(0,M.PG)({prefixCls:"statistic"})(O),U=Z,z=t(28481),F=t(32475),j=t.n(F),J=[["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(T,f){var l=T,u=/\[[^\]]*]/g,v=(f.match(u)||[]).map(function(g){return g.slice(1,-1)}),x=f.replace(u,"[]"),S=J.reduce(function(g,h){var N=(0,z.Z)(h,2),y=N[0],b=N[1];if(g.indexOf(y)!==-1){var D=Math.floor(l/b);return l-=D*b,g.replace(new RegExp("".concat(y,"+"),"g"),function(C){var B=C.length;return j()(D.toString(),B,"0")})}return g},x),R=0;return S.replace(u,function(){var g=v[R];return R+=1,g})}function w(T,f){var l=f.format,u=l===void 0?"":l,v=new Date(T).getTime(),x=Date.now(),S=Math.max(v-x,0);return K(S,u)}var G=1e3/30;function H(T){return new Date(T).getTime()}var V=function(T){(0,a.Z)(l,T);var f=(0,e.Z)(l);function l(){var u;return(0,o.Z)(this,l),u=f.apply(this,arguments),u.syncTimer=function(){var v=u.props.value,x=H(v);x>=Date.now()?u.startTimer():u.stopTimer()},u.startTimer=function(){if(!u.countdownId){var v=u.props,x=v.onChange,S=v.value,R=H(S);u.countdownId=window.setInterval(function(){u.forceUpdate(),x&&R>Date.now()&&x(R-Date.now())},G)}},u.stopTimer=function(){var v=u.props,x=v.onFinish,S=v.value;if(u.countdownId){clearInterval(u.countdownId),u.countdownId=void 0;var R=H(S);x&&R<Date.now()&&x()}},u.formatCountdown=function(v,x){var S=u.props.format;return w(v,(0,n.Z)((0,n.Z)({},x),{format:S}))},u.valueRender=function(v){return(0,c.Tm)(v,{title:void 0})},u}return(0,s.Z)(l,[{key:"componentDidMount",value:function(){this.syncTimer()}},{key:"componentDidUpdate",value:function(){this.syncTimer()}},{key:"componentWillUnmount",value:function(){this.stopTimer()}},{key:"render",value:function(){return r.createElement(U,(0,n.Z)({valueRender:this.valueRender},this.props,{formatter:this.formatCountdown}))}}]),l}(r.Component);V.defaultProps={format:"HH:mm:ss"};var X=V;U.Countdown=X;var Y=U},95300:function(i,d,t){"use strict";var n=t(38663),o=t.n(n),s=t(81903),a=t.n(s),e=t(71748)},48983:function(i,d,t){var n=t(40371),o=n("length");i.exports=o},44286:function(i){function d(t){return t.split("")}i.exports=d},18190:function(i){var d=9007199254740991,t=Math.floor;function n(o,s){var a="";if(!o||s<1||s>d)return a;do s%2&&(a+=o),s=t(s/2),s&&(o+=o);while(s);return a}i.exports=n},14259:function(i){function d(t,n,o){var s=-1,a=t.length;n<0&&(n=-n>a?0:a+n),o=o>a?a:o,o<0&&(o+=a),a=n>o?0:o-n>>>0,n>>>=0;for(var e=Array(a);++s<a;)e[s]=t[s+n];return e}i.exports=d},40180:function(i,d,t){var n=t(14259);function o(s,a,e){var r=s.length;return e=e===void 0?r:e,!a&&e>=r?s:n(s,a,e)}i.exports=o},78302:function(i,d,t){var n=t(18190),o=t(80531),s=t(40180),a=t(62689),e=t(88016),r=t(83140),c=Math.ceil;function E(m,p){p=p===void 0?" ":o(p);var M=p.length;if(M<2)return M?n(p,m):p;var A=n(p,c(m/e(p)));return a(p)?s(r(A),0,m).join(""):A.slice(0,m)}i.exports=E},62689:function(i){var d="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",o="\\u20d0-\\u20ff",s=t+n+o,a="\\ufe0e\\ufe0f",e="\\u200d",r=RegExp("["+e+d+s+a+"]");function c(E){return r.test(E)}i.exports=c},88016:function(i,d,t){var n=t(48983),o=t(62689),s=t(21903);function a(e){return o(e)?s(e):n(e)}i.exports=a},83140:function(i,d,t){var n=t(44286),o=t(62689),s=t(676);function a(e){return o(e)?s(e):n(e)}i.exports=a},21903:function(i){var d="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",o="\\u20d0-\\u20ff",s=t+n+o,a="\\ufe0e\\ufe0f",e="["+d+"]",r="["+s+"]",c="\\ud83c[\\udffb-\\udfff]",E="(?:"+r+"|"+c+")",m="[^"+d+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",M="[\\ud800-\\udbff][\\udc00-\\udfff]",A="\\u200d",I=E+"?",P="["+a+"]?",L="(?:"+A+"(?:"+[m,p,M].join("|")+")"+P+I+")*",W=P+I+L,O="(?:"+[m+r+"?",r,p,M,e].join("|")+")",Z=RegExp(c+"(?="+c+")|"+O+W,"g");function U(z){for(var F=Z.lastIndex=0;Z.test(z);)++F;return F}i.exports=U},676:function(i){var d="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",o="\\u20d0-\\u20ff",s=t+n+o,a="\\ufe0e\\ufe0f",e="["+d+"]",r="["+s+"]",c="\\ud83c[\\udffb-\\udfff]",E="(?:"+r+"|"+c+")",m="[^"+d+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",M="[\\ud800-\\udbff][\\udc00-\\udfff]",A="\\u200d",I=E+"?",P="["+a+"]?",L="(?:"+A+"(?:"+[m,p,M].join("|")+")"+P+I+")*",W=P+I+L,O="(?:"+[m+r+"?",r,p,M,e].join("|")+")",Z=RegExp(c+"(?="+c+")|"+O+W,"g");function U(z){return z.match(Z)||[]}i.exports=U},11726:function(i,d,t){var n=t(78302),o=t(88016),s=t(40554),a=t(79833);function e(r,c,E){r=a(r),c=s(c);var m=c?o(r):0;return c&&m<c?r+n(c-m,E):r}i.exports=e},32475:function(i,d,t){var n=t(78302),o=t(88016),s=t(40554),a=t(79833);function e(r,c,E){r=a(r),c=s(c);var m=c?o(r):0;return c&&m<c?n(c-m,E)+r:r}i.exports=e},18601:function(i,d,t){var n=t(14841),o=1/0,s=17976931348623157e292;function a(e){if(!e)return e===0?e:0;if(e=n(e),e===o||e===-o){var r=e<0?-1:1;return r*s}return e===e?e:0}i.exports=a},40554:function(i,d,t){var n=t(18601);function o(s){var a=n(s),e=a%1;return a===a?e?a-e:a:0}i.exports=o}}]);