-
Notifications
You must be signed in to change notification settings - Fork 11
/
chunk-2AUVEXAX.js
1 lines (1 loc) · 6.28 KB
/
chunk-2AUVEXAX.js
1
import{f as nt,g as it}from"./chunk-MPDZYTJY.js";import{p as W}from"./chunk-7EEEUGJK.js";import{Fa as Y,Gb as tt,Hb as et,T as Q,ja as X}from"./chunk-YWVGY2C2.js";import{B as w,Bd as G,Dd as J,Gc as j,Hc as d,Hd as K,Ib as g,Ic as f,Jb as x,La as O,Lb as I,Ma as F,Mb as E,Ob as P,Pb as l,Rc as A,Vc as k,Wb as c,Xc as H,Yb as $,Zb as R,_c as B,ba as M,cd as Z,dc as u,ed as U,f as b,ic as p,id as q,ja as z,jc as m,kc as C,lc as _,mc as T,nc as L,oa as h,rb as a,sb as y,tc as o,ya as S}from"./chunk-GBKJFEQZ.js";var at=(()=>{class t{transform(e,n="HH:mm:ss"){let i=Number(e||0);return W.reduce((r,[N,V])=>{if(r.indexOf(N)!==-1){let D=Math.floor(i/V);return i-=D*V,r.replace(new RegExp(`${N}+`,"g"),st=>Q(D.toString(),st.length,"0"))}return r},n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=I({name:"nzTimeRange",type:t,pure:!0})}}return t})(),ot=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=x({type:t})}static{this.\u0275inj=z({})}}return t})();var ct=t=>({$implicit:t});function pt(t,s){if(t&1&&L(0,1),t&2){let e=o();c("ngTemplateOutlet",e.nzValueTemplate)("ngTemplateOutletContext",A(2,ct,e.nzValue))}}function mt(t,s){if(t&1&&(p(0,"span",2),d(1),m()),t&2){let e=o(2);a(),f(e.displayInt)}}function ut(t,s){if(t&1&&(p(0,"span",3),d(1),m()),t&2){let e=o(2);a(),f(e.displayDecimal)}}function dt(t,s){if(t&1&&l(0,mt,2,1,"span",2)(1,ut,2,1,"span",3),t&2){let e=o();u(e.displayInt?0:-1),a(),u(e.displayDecimal?1:-1)}}function ft(t,s){if(t&1&&(_(0),d(1),T()),t&2){let e=o();a(),f(e.nzTitle)}}function zt(t,s){t&1&&C(0,"nz-skeleton",2),t&2&&c("nzParagraph",!1)}function ht(t,s){if(t&1&&(_(0),d(1),T()),t&2){let e=o(3);a(),f(e.nzPrefix)}}function gt(t,s){if(t&1&&(p(0,"span",5),l(1,ht,2,1,"ng-container",1),m()),t&2){let e=o(2);a(),c("nzStringTemplateOutlet",e.nzPrefix)}}function xt(t,s){if(t&1&&(_(0),d(1),T()),t&2){let e=o(3);a(),f(e.nzSuffix)}}function Ct(t,s){if(t&1&&(p(0,"span",7),l(1,xt,2,1,"ng-container",1),m()),t&2){let e=o(2);a(),c("nzStringTemplateOutlet",e.nzSuffix)}}function _t(t,s){if(t&1&&(p(0,"div",4),l(1,gt,2,1,"span",5),C(2,"nz-statistic-number",6),l(3,Ct,2,1,"span",7),m()),t&2){let e=o();R(e.nzValueStyle),a(),u(e.nzPrefix?1:-1),a(),c("nzValue",e.nzValue)("nzValueTemplate",e.nzValueTemplate),a(),u(e.nzSuffix?3:-1)}}function Tt(t,s){if(t&1&&(d(0),k(1,"nzTimeRange")),t&2){let e=o();f(H(1,1,e.diff,e.nzFormat))}}var St=(()=>{class t{constructor(){this.displayInt="",this.displayDecimal="",this.locale_id=h(Z)}ngOnChanges(){this.formatNumber()}formatNumber(){let e=typeof this.nzValue=="number"?".":J(this.locale_id,G.Decimal),n=String(this.nzValue),[i,r]=n.split(e);this.displayInt=i,this.displayDecimal=r?`${e}${r}`:""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=g({type:t,selectors:[["nz-statistic-number"]],inputs:{nzValue:"nzValue",nzValueTemplate:"nzValueTemplate"},exportAs:["nzStatisticNumber"],features:[S],decls:3,vars:1,consts:[[1,"ant-statistic-content-value"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-statistic-content-value-int"],[1,"ant-statistic-content-value-decimal"]],template:function(n,i){n&1&&(p(0,"span",0),l(1,pt,1,4,"ng-container",1)(2,dt,2,2),m()),n&2&&(a(),u(i.nzValueTemplate?1:2))},dependencies:[K],encapsulation:2,changeDetection:0})}}return t})(),v=(()=>{class t{constructor(){this.nzValueStyle={},this.nzLoading=!1,this.dir="ltr",this.destroy$=new b,this.cdr=h(U),this.directionality=h(Y)}ngOnInit(){this.directionality.change?.pipe(M(this.destroy$)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=g({type:t,selectors:[["nz-statistic"]],hostAttrs:[1,"ant-statistic"],hostVars:2,hostBindings:function(n,i){n&2&&$("ant-statistic-rtl",i.dir==="rtl")},inputs:{nzPrefix:"nzPrefix",nzSuffix:"nzSuffix",nzTitle:"nzTitle",nzValue:"nzValue",nzValueStyle:"nzValueStyle",nzValueTemplate:"nzValueTemplate",nzLoading:[2,"nzLoading","nzLoading",q]},exportAs:["nzStatistic"],features:[P],decls:4,vars:2,consts:[[1,"ant-statistic-title"],[4,"nzStringTemplateOutlet"],[1,"ant-statistic-skeleton",3,"nzParagraph"],[1,"ant-statistic-content",3,"style"],[1,"ant-statistic-content"],[1,"ant-statistic-content-prefix"],[3,"nzValue","nzValueTemplate"],[1,"ant-statistic-content-suffix"]],template:function(n,i){n&1&&(p(0,"div",0),l(1,ft,2,1,"ng-container",1),m(),l(2,zt,1,1,"nz-skeleton",2)(3,_t,4,6,"div",3)),n&2&&(a(),c("nzStringTemplateOutlet",i.nzTitle),a(),u(i.nzLoading?2:3))},dependencies:[it,nt,St,et,tt],encapsulation:2,changeDetection:0})}}return t})(),yt=1e3/30,vt=(()=>{class t extends v{constructor(e,n){super(),this.ngZone=e,this.platform=n,this.nzFormat="HH:mm:ss",this.nzCountdownFinish=new O,this.target=0}ngOnChanges(e){e.nzValue&&(this.target=Number(e.nzValue.currentValue),e.nzValue.isFirstChange()||this.syncTimer())}ngOnInit(){super.ngOnInit(),this.syncTimer()}ngOnDestroy(){this.stopTimer()}syncTimer(){this.target>=Date.now()?this.startTimer():this.stopTimer()}startTimer(){this.platform.isBrowser&&this.ngZone.runOutsideAngular(()=>{this.stopTimer(),this.updater_=w(yt).subscribe(()=>{this.updateValue(),this.cdr.detectChanges()})})}stopTimer(){this.updater_&&(this.updater_.unsubscribe(),this.updater_=null)}updateValue(){this.diff=Math.max(this.target-Date.now(),0),this.diff===0&&(this.stopTimer(),this.nzCountdownFinish.observers.length&&this.ngZone.run(()=>this.nzCountdownFinish.emit()))}static{this.\u0275fac=function(n){return new(n||t)(y(F),y(X))}}static{this.\u0275cmp=g({type:t,selectors:[["nz-countdown"]],inputs:{nzFormat:"nzFormat"},outputs:{nzCountdownFinish:"nzCountdownFinish"},exportAs:["nzCountdown"],features:[E,S],decls:3,vars:6,consts:[["countDownTpl",""],[3,"nzValue","nzValueStyle","nzValueTemplate","nzTitle","nzPrefix","nzSuffix"]],template:function(n,i){if(n&1&&(C(0,"nz-statistic",1),l(1,Tt,2,4,"ng-template",null,0,B)),n&2){let r=j(2);c("nzValue",i.diff)("nzValueStyle",i.nzValueStyle)("nzValueTemplate",i.nzValueTemplate||r)("nzTitle",i.nzTitle)("nzPrefix",i.nzPrefix)("nzSuffix",i.nzSuffix)}},dependencies:[v,ot,at],encapsulation:2,changeDetection:0})}}return t})(),Zt=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=x({type:t})}static{this.\u0275inj=z({imports:[v,vt]})}}return t})();export{v as a,vt as b,Zt as c};