@yinuo-ngm/server 1.0.23 → 1.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/modules/agent-connections/agent-connections.schema.d.ts +4 -0
- package/lib/modules/agent-connections/agent-connections.schema.js +112 -0
- package/lib/modules/agent-connections/agent-connections.service.d.ts +18 -0
- package/lib/modules/agent-connections/agent-connections.service.js +209 -0
- package/lib/modules/agent-connections/agent-connections.types.d.ts +57 -0
- package/lib/modules/agent-connections/agent-connections.types.js +2 -0
- package/lib/modules/agent-connections/atomic-json-file.d.ts +8 -0
- package/lib/modules/agent-connections/atomic-json-file.js +44 -0
- package/lib/modules/agent-connections/token-mask.d.ts +1 -0
- package/lib/modules/agent-connections/token-mask.js +12 -0
- package/lib/routes/agent-connections.routes.d.ts +3 -0
- package/lib/routes/agent-connections.routes.js +28 -0
- package/lib/routes/index.js +2 -0
- package/package.json +4 -3
- package/www/3rdpartylicenses.txt +5 -5
- package/www/browser/chunk-2EB7UV3S.js +15 -0
- package/www/browser/{chunk-3I7BQCXS.js → chunk-2S6Y2RQI.js} +1 -1
- package/www/browser/{chunk-U3EUR236.js → chunk-2SYBXRWK.js} +1 -1
- package/www/browser/{chunk-OUGN4APK.js → chunk-365ZCRSD.js} +1 -1
- package/www/browser/{chunk-6UFDNETG.js → chunk-3MPEGFKP.js} +1 -1
- package/www/browser/{chunk-WCHN62X6.js → chunk-4PSSTE76.js} +1 -1
- package/www/browser/{chunk-DENFXXOY.js → chunk-5HVK6MON.js} +1 -1
- package/www/browser/{chunk-TXAXE73U.js → chunk-5Y7KNVNN.js} +1 -1
- package/www/browser/chunk-6L2CHHFV.js +1 -0
- package/www/browser/{chunk-NNOWADVM.js → chunk-6ZXQKFRQ.js} +1 -1
- package/www/browser/chunk-735SLX4X.js +1 -0
- package/www/browser/chunk-7KLACOZT.js +2 -0
- package/www/browser/chunk-7VJKEZTT.js +20 -0
- package/www/browser/{chunk-CO3CQHKV.js → chunk-7X4X4YHI.js} +1 -1
- package/www/browser/chunk-ACYCDF6M.js +1 -0
- package/www/browser/{chunk-UJKK4A7Y.js → chunk-AQYHNHJ3.js} +1 -1
- package/www/browser/chunk-BHKSOTOM.js +1 -0
- package/www/browser/{chunk-3ODVU46S.js → chunk-BXZVX5KD.js} +1 -1
- package/www/browser/{chunk-TCBOC5FF.js → chunk-C5DOE7UG.js} +1 -1
- package/www/browser/{chunk-7AKVG375.js → chunk-C6GC5OOE.js} +1 -1
- package/www/browser/{chunk-SSCUT2GF.js → chunk-D5W7J3FS.js} +1 -1
- package/www/browser/chunk-DPGKZHEW.js +1 -0
- package/www/browser/chunk-DRV2KPHO.js +1 -0
- package/www/browser/chunk-E2WRB7KQ.js +2 -0
- package/www/browser/{chunk-MPLGMTLT.js → chunk-EAFAHVBG.js} +1 -1
- package/www/browser/{chunk-WWIPELAV.js → chunk-ERH36Q6S.js} +1 -1
- package/www/browser/chunk-GSUKZOEV.js +1 -0
- package/www/browser/chunk-GYXK6ZZT.js +1 -0
- package/www/browser/{chunk-PDI3HSSH.js → chunk-H27FQ6OP.js} +3 -3
- package/www/browser/chunk-I7RTVSMK.js +1 -0
- package/www/browser/{chunk-SD2HFD54.js → chunk-IVX3LVU4.js} +1 -1
- package/www/browser/{chunk-U2YWR3HF.js → chunk-IX6UZA7J.js} +1 -1
- package/www/browser/{chunk-CPJTSA6E.js → chunk-JFR7U5DE.js} +1 -1
- package/www/browser/chunk-JIVQNGBJ.js +1 -0
- package/www/browser/{chunk-PY3AUTHC.js → chunk-KDMWEV46.js} +1 -1
- package/www/browser/{chunk-JM6DCZP6.js → chunk-LRHJZDWY.js} +1 -1
- package/www/browser/chunk-NVN2P466.js +1 -0
- package/www/browser/{chunk-NREWZQVN.js → chunk-O64FT2TA.js} +1 -1
- package/www/browser/{chunk-YVRGRFK2.js → chunk-OZONPLGN.js} +1 -1
- package/www/browser/chunk-PC7TJLCL.js +2 -0
- package/www/browser/{chunk-7GLWEFTM.js → chunk-PNFC3J4Z.js} +1 -1
- package/www/browser/chunk-PRKDURHI.js +1 -0
- package/www/browser/{chunk-RMIYLAEM.js → chunk-PUHSNEN6.js} +1 -1
- package/www/browser/{chunk-442QFABJ.js → chunk-RKKAY5CD.js} +1 -1
- package/www/browser/{chunk-M6NZ6C2R.js → chunk-RLH7DAA2.js} +1 -1
- package/www/browser/chunk-S6BY2OTR.js +1 -0
- package/www/browser/{chunk-KRYMOHYF.js → chunk-SIKDYQOR.js} +1 -1
- package/www/browser/{chunk-RKK4I2RT.js → chunk-SVRGVAFE.js} +1 -1
- package/www/browser/chunk-TPVKLECM.js +1 -0
- package/www/browser/{chunk-UPOORT3S.js → chunk-VBMHQZWH.js} +1 -1
- package/www/browser/chunk-WVRMU265.js +1 -0
- package/www/browser/chunk-X6PRUZ5G.js +1 -0
- package/www/browser/{chunk-PUG3VNTI.js → chunk-XQQ6PT2E.js} +1 -1
- package/www/browser/chunk-XUUNCF53.js +1 -0
- package/www/browser/{chunk-4BRW6LCZ.js → chunk-YGWA6NUS.js} +1 -1
- package/www/browser/{chunk-2VJVGBXG.js → chunk-YNYWN7QI.js} +1 -1
- package/www/browser/chunk-Z4T3LTE2.js +1 -0
- package/www/browser/chunk-Z7GYTPTP.js +1 -0
- package/www/browser/chunk-ZZN3NP7F.js +1 -0
- package/www/browser/index.html +1 -1
- package/www/browser/main-HMOP3OWL.js +38 -0
- package/www/browser/chunk-6J6G7JEP.js +0 -1
- package/www/browser/chunk-7QR6RHLA.js +0 -1
- package/www/browser/chunk-H2USFIYR.js +0 -1
- package/www/browser/chunk-HC5KLPHD.js +0 -1
- package/www/browser/chunk-HJAP6WBI.js +0 -1
- package/www/browser/chunk-K6C5ZIV2.js +0 -20
- package/www/browser/chunk-MBPB43C6.js +0 -1
- package/www/browser/chunk-PB2LGZNW.js +0 -1
- package/www/browser/chunk-R4HSZU2J.js +0 -1
- package/www/browser/chunk-RZA3IFQV.js +0 -2
- package/www/browser/chunk-SEJGGBE2.js +0 -1
- package/www/browser/chunk-TS5ZQYYY.js +0 -1
- package/www/browser/chunk-TVJHI463.js +0 -1
- package/www/browser/chunk-UKCMUTYL.js +0 -1
- package/www/browser/chunk-VW3S7C2Z.js +0 -1
- package/www/browser/chunk-VZYJ3MSW.js +0 -15
- package/www/browser/chunk-WUA5JFDD.js +0 -1
- package/www/browser/chunk-WYNERG74.js +0 -2
- package/www/browser/chunk-XJDJL3TQ.js +0 -1
- package/www/browser/chunk-YV6QPLF5.js +0 -1
- package/www/browser/main-7GYUOEJY.js +0 -38
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Cb as se,Fb as S,Gb as re,Kb as ce,M as a,N as oe,Ob as ae,Yb as ue,a as N,bb as w,j as ie,ra as F}from"./chunk-2EB7UV3S.js";import{Ac as q,Bc as K,Da as u,Gb as f,Ha as T,Hb as O,Hc as g,Kc as X,Mc as J,Ra as p,Vb as L,Yc as v,ac as B,bc as Q,cc as R,dc as m,ec as l,fc as Z,i as A,id as M,jd as Y,kd as ee,l as d,ld as ne,ma as h,mc as $,na as D,oa as y,ob as x,pd as k,qa as j,sa as o,sc as H,tb as b,ub as P,vc as E,vd as te,wb as W,wc as z,xc as C,ya as G,za as _,zc as U,zd as c}from"./chunk-YGWA6NUS.js";var I=["*"],be=["inputElement"],fe=["nz-checkbox",""],me=(i,r)=>r.value;function ze(i,r){if(i&1&&(m(0,"label",0),X(1),l()),i&2){let e=r.$implicit,n=E(2);R("nzValue",e.value)("nzName",n.nzName())("nzDisabled",e.disabled||n.finalDisabled()),x(),J(" ",e.label," ")}}function Ce(i,r){if(i&1&&B(0,ze,2,4,"label",0,me),i&2){let e=E();Q(e.normalizedOptions())}}var ge=(()=>{class i{nzOnChange=new b;checkboxList=[];addCheckbox(e){this.checkboxList.push(e)}removeCheckbox(e){this.checkboxList.splice(this.checkboxList.indexOf(e),1)}onChange(){let e=this.checkboxList.filter(n=>n.nzChecked).map(n=>n.nzValue);this.nzOnChange.emit(e)}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=f({type:i,selectors:[["nz-checkbox-wrapper"]],hostAttrs:[1,"ant-checkbox-group"],outputs:{nzOnChange:"nzOnChange"},exportAs:["nzCheckboxWrapper"],ngContentSelectors:I,decls:1,vars:0,template:function(n,t){n&1&&(z(),C(0))},encapsulation:2,changeDetection:0})}return i})(),le=new j(""),de=(()=>{class i{ngZone=o(P);elementRef=o(p);cdr=o(te);focusMonitor=o(w);directionality=o(N);destroyRef=o(u);checkboxGroupComponent=o(le,{optional:!0});nzFormStatusService=o(se,{optional:!0});nzCheckboxWrapperComponent=o(ge,{optional:!0});dir="ltr";destroy$=new d;isNzDisableFirstChange=!0;onChange=()=>{};onTouched=()=>{};inputElement;nzCheckedChange=new b;nzValue=null;nzAutoFocus=!1;nzDisabled=!1;nzIndeterminate=!1;nzChecked=!1;nzId=null;nzName=null;innerCheckedChange(e){!this.nzDisabled&&!this.checkboxGroupComponent?.finalDisabled()&&(this.setValue(e),this.nzCheckboxWrapperComponent?.onChange(),this.checkboxGroupComponent?.onCheckedChange(this.nzValue,e))}writeValue(e){this.nzChecked=e,this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||e,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(){this.destroyRef.onDestroy(()=>{this.focusMonitor.stopMonitoring(this.elementRef),this.nzCheckboxWrapperComponent?.removeCheckbox(this)}),this.checkboxGroupComponent&&ee(()=>{let e=this.checkboxGroupComponent.value()||[];this.setValue(e.includes(this.nzValue)),this.cdr.markForCheck()})}ngOnInit(){this.focusMonitor.monitor(this.elementRef,!0).pipe(a(this.destroyRef)).subscribe(e=>{e||Promise.resolve().then(()=>this.onTouched())}),this.nzCheckboxWrapperComponent?.addCheckbox(this),this.directionality.change.pipe(a(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value,F(this.elementRef.nativeElement,"click").pipe(a(this.destroyRef)).subscribe(e=>{e.preventDefault(),this.focus(),!this.nzDisabled&&this.ngZone.run(()=>{this.innerCheckedChange(!this.nzChecked),this.cdr.markForCheck()})}),F(this.inputElement.nativeElement,"click").pipe(a(this.destroyRef)).subscribe(e=>e.stopPropagation())}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}setValue(e){this.nzChecked=e,this.onChange(e),this.nzCheckedChange.emit(e)}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=f({type:i,selectors:[["","nz-checkbox",""]],viewQuery:function(n,t){if(n&1&&U(be,7),n&2){let s;q(s=K())&&(t.inputElement=s.first)}},hostAttrs:[1,"ant-checkbox-wrapper"],hostVars:10,hostBindings:function(n,t){n&2&&g("ant-checkbox-group-item",!!t.checkboxGroupComponent)("ant-checkbox-wrapper-in-form-item",!!t.nzFormStatusService)("ant-checkbox-wrapper-checked",t.nzChecked)("ant-checkbox-wrapper-disabled",t.nzDisabled||(t.checkboxGroupComponent==null?null:t.checkboxGroupComponent.finalDisabled()))("ant-checkbox-rtl",t.dir==="rtl")},inputs:{nzValue:"nzValue",nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",c],nzDisabled:[2,"nzDisabled","nzDisabled",c],nzIndeterminate:[2,"nzIndeterminate","nzIndeterminate",c],nzChecked:[2,"nzChecked","nzChecked",c],nzId:"nzId",nzName:"nzName"},outputs:{nzCheckedChange:"nzCheckedChange"},exportAs:["nzCheckbox"],features:[v([{provide:S,useExisting:h(()=>i),multi:!0}])],attrs:fe,ngContentSelectors:I,decls:6,vars:12,consts:[["inputElement",""],[1,"ant-checkbox"],["type","checkbox",1,"ant-checkbox-input",3,"ngModelChange","checked","ngModel","disabled"],[1,"ant-checkbox-inner"]],template:function(n,t){if(n&1){let s=$();z(),m(0,"span",1)(1,"input",2,0),H("ngModelChange",function(he){return G(s),_(t.innerCheckedChange(he))}),l(),Z(3,"span",3),l(),m(4,"span"),C(5),l()}n&2&&(g("ant-checkbox-checked",t.nzChecked&&!t.nzIndeterminate)("ant-checkbox-disabled",t.nzDisabled||(t.checkboxGroupComponent==null?null:t.checkboxGroupComponent.finalDisabled()))("ant-checkbox-indeterminate",t.nzIndeterminate),x(),R("checked",t.nzChecked)("ngModel",t.nzChecked)("disabled",t.nzDisabled||((t.checkboxGroupComponent==null?null:t.checkboxGroupComponent.finalDisabled())??!1)),L("autofocus",t.nzAutoFocus?"autofocus":null)("id",t.nzId)("name",t.nzName||(t.checkboxGroupComponent==null?null:t.checkboxGroupComponent.nzName())))},dependencies:[ue,re,ce,ae],encapsulation:2,changeDetection:0})}return i})(),ve=(()=>{class i{onChange=()=>{};onTouched=()=>{};isDisabledFirstChange=!0;directionality=o(N);nzName=k(null);nzDisabled=k(!1,{transform:c});nzOptions=k([]);value=T(null);finalDisabled=ne(()=>this.nzDisabled());dir=oe(this.directionality.change,{initialValue:this.directionality.value});normalizedOptions=Y(()=>ke(this.nzOptions()));constructor(){let e=o(p),n=o(w),t=o(u);W(()=>{n.monitor(e,!0).pipe(a(t)).subscribe(s=>{s||this.onTouched()}),t.onDestroy(()=>{n.stopMonitoring(e)})})}writeValue(e){M(()=>{this.value.set(e)})}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){M(()=>{this.finalDisabled.set(this.isDisabledFirstChange&&this.nzDisabled()||e)}),this.isDisabledFirstChange=!1}onCheckedChange(e,n){this.finalDisabled()||(this.value.update(t=>n?t?.concat(e)||[e]:t?.filter(s=>s!==e)||[]),this.onChange(this.value()))}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=f({type:i,selectors:[["nz-checkbox-group"]],hostAttrs:[1,"ant-checkbox-group"],hostVars:2,hostBindings:function(n,t){n&2&&g("ant-checkbox-group-rtl",t.dir()==="rtl")},inputs:{nzName:[1,"nzName"],nzDisabled:[1,"nzDisabled"],nzOptions:[1,"nzOptions"]},exportAs:["nzCheckboxGroup"],features:[v([{provide:S,useExisting:h(()=>i),multi:!0},{provide:le,useExisting:h(()=>i)}])],ngContentSelectors:I,decls:2,vars:0,consts:[["nz-checkbox","",3,"nzValue","nzName","nzDisabled"]],template:function(n,t){n&1&&(z(),C(0,0,null,Ce,2,0))},dependencies:[de],encapsulation:2,changeDetection:0})}return i})();function ke(i){return i.map(r=>typeof r=="string"||typeof r=="number"?{label:`${r}`,value:r}:r)}var Te=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=O({type:i});static \u0275inj=y({imports:[de,ve]})}return i})();var De=(()=>{class i{create(e){return typeof ResizeObserver>"u"?null:new ResizeObserver(e)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Xe=(()=>{class i{nzResizeObserverFactory=o(De);destroyRef=o(u);observedElements=new Map;constructor(){this.destroyRef.onDestroy(()=>this.observedElements.forEach((e,n)=>this.cleanupObserver(n)))}observe(e){let n=ie(e);return new A(t=>{let V=this.observeElement(n).subscribe(t);return()=>{V.unsubscribe(),this.unobserveElement(n)}})}observeElement(e){if(this.observedElements.has(e))this.observedElements.get(e).count++;else{let n=new d,t=this.nzResizeObserverFactory.create(s=>n.next(s));t&&t.observe(e),this.observedElements.set(e,{observer:t,stream:n,count:1})}return this.observedElements.get(e).stream}unobserveElement(e){this.observedElements.has(e)&&(this.observedElements.get(e).count--,this.observedElements.get(e).count||this.cleanupObserver(e))}cleanupObserver(e){if(this.observedElements.has(e)){let{observer:n,stream:t}=this.observedElements.get(e);n&&n.disconnect(),t.complete(),this.observedElements.delete(e)}}static \u0275fac=function(n){return new(n||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();export{de as a,Te as b,Xe as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as Te}from"./chunk-YNYWN7QI.js";import{a as ze,c as _e}from"./chunk-6ZXQKFRQ.js";import{c as ue,e as fe,h as be}from"./chunk-PUHSNEN6.js";import{Ia as mt,Ja as pt,Ka as J,La as tt,M as L,S as At,T as re,a as kt,cb as ce,gb as he,hb as me,i as Dt,ib as ut,n as oe,pa as le,ra as U,rb as pe,ta as de,va as K,y as se}from"./chunk-2EB7UV3S.js";import{b as ne,e as ie,f as ae}from"./chunk-X6PRUZ5G.js";import{i as ht}from"./chunk-SIKDYQOR.js";import{$b as at,Ac as x,Bc as I,Cc as Zt,Da as et,Ec as Ut,Fc as Z,Gb as O,Gc as xt,Hb as qt,Hc as M,Ib as W,Ic as Kt,Kc as It,L as X,M as Ft,Mb as S,Mc as St,N as Pt,Nb as Gt,Oa as vt,Ra as P,Sa as nt,U as Ht,Vb as q,X as Vt,Xa as Yt,Xb as N,Yc as Jt,Zb as k,Zc as lt,ac as ot,bc as st,cc as u,da as Ct,dc as g,ec as C,ed as dt,f as _t,fc as V,g as Tt,jc as G,jd as wt,kc as j,l as Lt,ma as $t,mc as B,nd as te,o as Ot,oa as Qt,ob as f,oc as jt,p as Wt,pd as Nt,qa as Xt,r as Q,s as R,sa as h,sc as A,sd as ee,tb as z,u as gt,ub as Y,vc as c,vd as ct,wc as yt,xb as it,xc as rt,ya as _,yc as H,za as T,zc as F,zd as y}from"./chunk-YGWA6NUS.js";function Me(e,d){if(e&1&&(G(0),V(1,"nz-icon",1),j()),e&2){let t=d.$implicit;f(),u("nzType",t)}}var Le=["nz-tab-body",""];function Oe(e,d){}function We(e,d){if(e&1&&(G(0),V(1,"nz-icon",1),j()),e&2){let t=d.$implicit;f(),u("nzType",t)}}var Fe=()=>({minWidth:"46px"}),Pe=()=>({visible:!1});function He(e,d){if(e&1&&(G(0),It(1),j()),e&2){let t=c().$implicit;f(),St(" ",t.tab.label," ")}}function Ve(e,d){if(e&1){let t=B();g(0,"li",7),A("click",function(){let i=_(t).$implicit,a=c(2);return T(a.onSelect(i))})("contextmenu",function(i){let a=_(t).$implicit,l=c(2);return T(l.onContextmenu(a,i))}),S(1,He,2,1,"ng-container",8),C()}if(e&2){let t=d.$implicit;M("ant-tabs-dropdown-menu-item-disabled",t.disabled),u("nzSelected",t.active)("nzDisabled",t.disabled),f(),u("nzStringTemplateOutlet",t.tab.label)("nzStringTemplateOutletContext",lt(6,Pe))}}function $e(e,d){if(e&1&&(g(0,"ul",4),ot(1,Ve,2,7,"li",6,at),C()),e&2){let t=c();f(),st(t.items)}}function Qe(e,d){if(e&1){let t=B();g(0,"button",9),A("click",function(){_(t);let i=c();return T(i.addClicked.emit())}),C()}if(e&2){let t=c();u("addIcon",t.addIcon)}}var Xe=["navWrap"],Ye=["navList"],qe=["*"];function Ge(e,d){}function je(e,d){if(e&1&&(g(0,"div",2),S(1,Ge,0,0,"ng-template",8),C()),e&2){let t=c();f(),u("ngTemplateOutlet",t.startExtraContent().templateRef)}}function Ze(e,d){if(e&1){let t=B();g(0,"button",9),A("click",function(){_(t);let i=c();return T(i.addClicked.emit())}),C()}if(e&2){let t=c();u("addIcon",t.addIcon),q("tabindex",-1)}}function Ue(e,d){}function Ke(e,d){if(e&1&&(g(0,"div",2),S(1,Ue,0,0,"ng-template",8),C()),e&2){let t=c();f(),u("ngTemplateOutlet",t.endExtraContent().templateRef)}}function Je(e,d){}function tn(e,d){if(e&1&&(g(0,"div",2),S(1,Je,0,0,"ng-template",8),C()),e&2){let t=c();f(),u("ngTemplateOutlet",t.extraTemplate)}}var en=["contentTemplate"],nn=[[["","nz-tab-link",""]],"*"],an=["[nz-tab-link]","*"];function on(e,d){e&1&&rt(0)}function sn(e,d){e&1&&rt(0,1)}var rn=()=>({visible:!0});function ln(e,d){if(e&1&&(G(0),It(1),j()),e&2){let t=c().$implicit;f(),St(" ",t.label," ")}}function dn(e,d){if(e&1){let t=B();g(0,"button",10),A("click",function(i){_(t);let a=c().$index,l=c(2);return T(l.onClose(a,i))}),C()}if(e&2){let t=c().$implicit;u("closeIcon",t.nzCloseIcon)}}function cn(e,d){if(e&1){let t=B();g(0,"div",6),A("click",function(i){let a=_(t),l=a.$implicit,p=a.$index,b=c(2);return T(b.clickNavItem(l,p,i))})("contextmenu",function(i){let a=_(t).$implicit,l=c(2);return T(l.contextmenuNavItem(a,i))}),g(1,"button",7),S(2,ln,2,1,"ng-container",8),N(3,dn,1,1,"button",9),C()()}if(e&2){let t=d.$implicit,n=d.$index,i=c(2);xt("margin-right",i.position==="horizontal"?i.nzTabBarGutter:null,"px")("margin-bottom",i.position==="vertical"?i.nzTabBarGutter:null,"px"),M("ant-tabs-tab-active",i.nzSelectedIndex===n)("ant-tabs-tab-disabled",t.nzDisabled),f(),u("id",i.getTabContentId(n))("disabled",t.nzDisabled)("tab",t)("active",i.nzSelectedIndex===n),q("tabIndex",i.getTabIndex(t,n))("aria-disabled",t.nzDisabled)("aria-selected",i.nzSelectedIndex===n&&!i.nzHideAll)("aria-controls",i.getTabContentId(n)),f(),u("nzStringTemplateOutlet",t.label)("nzStringTemplateOutletContext",lt(19,rn)),f(),k(t.nzClosable&&i.closable&&!t.nzDisabled?3:-1)}}function hn(e,d){if(e&1){let t=B();g(0,"nz-tabs-nav",4),A("tabScroll",function(i){_(t);let a=c();return T(a.nzTabListScroll.emit(i))})("selectFocusedIndex",function(i){_(t);let a=c();return T(a.setSelectedIndex(i))})("addClicked",function(){_(t);let i=c();return T(i.onAdd())}),ot(1,cn,4,20,"div",5,at),C()}if(e&2){let t=c();Kt(t.nzTabBarStyle),u("selectedIndex",t.nzSelectedIndex||0)("inkBarAnimated",t.inkBarAnimated)("addable",t.addable)("addIcon",t.nzAddIcon)("hideBar",t.nzHideAll)("position",t.position)("extraTemplate",t.nzTabBarExtraContent)("extraContents",t.extraContents()),f(),st(t.tabs)}}function mn(e,d){}function pn(e,d){if(e&1&&S(0,mn,0,0,"ng-template",11),e&2){c();let t=Z(4);u("ngTemplateOutlet",t)}}function un(e,d){}function fn(e,d){if(e&1&&S(0,un,0,0,"ng-template",11),e&2){c(2);let t=Z(4);u("ngTemplateOutlet",t)}}function bn(e,d){if(e&1&&N(0,fn,1,1,null,11),e&2){let t=c().$index,n=c(2);k(n.nzSelectedIndex===t?0:-1)}}function zn(e,d){}function _n(e,d){if(e&1&&S(0,zn,0,0,"ng-template",11),e&2){c(2);let t=Z(4);u("ngTemplateOutlet",t)}}function Tn(e,d){if(e&1&&N(0,_n,1,1,null,11),e&2){let t=c(),n=t.$implicit,i=t.$index,a=c(2);k(a.nzSelectedIndex===i||n.hasBeenActive?0:-1)}}function gn(e,d){if(e&1&&V(0,"div",12),e&2){let t=c(),n=t.$implicit,i=t.$index,a=c(2);u("id",a.getTabContentId(i))("active",a.nzSelectedIndex===i)("content",n.content)("animated",a.tabPaneAnimated),q("aria-labelledby",a.getTabContentId(i))}}function Cn(e,d){if(e&1&&(N(0,pn,1,1,null,11)(1,bn,1,1)(2,Tn,1,1),S(3,gn,1,5,"ng-template",null,0,dt)),e&2){let t=d.$implicit,n=c(2);k(t.nzForceRender?0:n.nzDestroyInactiveTabPane?1:2)}}function vn(e,d){if(e&1&&ot(0,Cn,5,1,null,null,at),e&2){let t=c();st(t.tabs)}}var Et=class{index;tab},bt=(()=>{class e{addIcon="plus";element=h(P).nativeElement;getElementWidth(){return this.element?.offsetWidth||0}getElementHeight(){return this.element?.offsetHeight||0}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=O({type:e,selectors:[["nz-tab-add-button"],["button","nz-tab-add-button",""]],hostAttrs:["aria-label","Add tab","type","button",1,"ant-tabs-nav-add"],inputs:{addIcon:"addIcon"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"],["nzTheme","outline",3,"nzType"]],template:function(n,i){n&1&&S(0,Me,2,1,"ng-container",0),n&2&&u("nzStringTemplateOutlet",i.addIcon)},dependencies:[tt,J,pt,mt],encapsulation:2})}return e})(),ge=(()=>{class e{position=Nt("end",{alias:"nzTabBarExtraContent"});templateRef=h(it);static \u0275fac=function(n){return new(n||e)};static \u0275dir=W({type:e,selectors:[["","nzTabBarExtraContent","",5,"nz-tabset",5,"nz-tabs"]],inputs:{position:[1,"nzTabBarExtraContent","position"]}})}return e})(),yn=(()=>{class e{content=null;active=!1;animated=!0;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=O({type:e,selectors:[["","nz-tab-body",""]],hostAttrs:[1,"ant-tabs-tabpane"],hostVars:10,hostBindings:function(n,i){n&2&&(jt("@tabSwitchMotion",i.active?"enter":"leave")("@.disabled",!i.animated),q("tabindex",i.active?0:-1)("aria-hidden",!i.active),xt("overflow-y",i.animated?i.active?null:"none":null),M("ant-tabs-tabpane-active",i.active)("ant-tabs-tabpane-hidden",i.animated?null:!i.active))},inputs:{content:"content",active:"active",animated:"animated"},exportAs:["nzTabBody"],attrs:Le,decls:1,vars:1,consts:[[3,"ngTemplateOutlet"]],template:function(n,i){n&1&&S(0,Oe,0,0,"ng-template",0),n&2&&u("ngTemplateOutlet",i.content)},dependencies:[ht],encapsulation:2,data:{animation:[pe]},changeDetection:0})}return e})(),Ie=(()=>{class e{closeIcon="close";static \u0275fac=function(n){return new(n||e)};static \u0275cmp=O({type:e,selectors:[["nz-tab-close-button"],["button","nz-tab-close-button",""]],hostAttrs:["aria-label","Close tab","type","button",1,"ant-tabs-tab-remove"],inputs:{closeIcon:"closeIcon"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"],["nzTheme","outline",3,"nzType"]],template:function(n,i){n&1&&S(0,We,2,1,"ng-container",0),n&2&&u("nzStringTemplateOutlet",i.closeIcon)},dependencies:[tt,J,pt,mt],encapsulation:2})}return e})(),xn=(()=>{class e{templateRef=h(it,{host:!0});static \u0275fac=function(n){return new(n||e)};static \u0275dir=W({type:e,selectors:[["ng-template","nzTabLink",""]],exportAs:["nzTabLinkTemplate"]})}return e})(),Se=(()=>{class e{elementRef=h(P);routerLink=h(ae,{self:!0,optional:!0});static \u0275fac=function(n){return new(n||e)};static \u0275dir=W({type:e,selectors:[["a","nz-tab-link",""]],exportAs:["nzTabLink"]})}return e})(),we=(()=>{class e{disabled=!1;tab;active=!1;elementRef=h(P);el=this.elementRef.nativeElement;parentElement=this.el.parentElement;focus(){this.el.focus({preventScroll:!0})}get width(){return this.parentElement.offsetWidth}get height(){return this.parentElement.offsetHeight}get left(){return this.parentElement.offsetLeft}get top(){return this.parentElement.offsetTop}static \u0275fac=function(n){return new(n||e)};static \u0275dir=W({type:e,selectors:[["","nzTabNavItem",""]],inputs:{disabled:[2,"disabled","disabled",y],tab:"tab",active:[2,"active","active",y]}})}return e})(),Rt=(()=>{class e{items=[];addable=!1;addIcon="plus";addClicked=new z;selected=new z;closeAnimationWaitTimeoutId;menuOpened=!1;cdr=h(ct);element=h(P).nativeElement;onSelect(t){t.disabled||(t.tab.nzClick.emit(),this.selected.emit(t))}onContextmenu(t,n){t.disabled||t.tab.nzContextmenu.emit(n)}showItems(){clearTimeout(this.closeAnimationWaitTimeoutId),this.menuOpened=!0,this.cdr.markForCheck()}menuVisChange(t){t||(this.closeAnimationWaitTimeoutId=setTimeout(()=>{this.menuOpened=!1,this.cdr.markForCheck()},150))}getElementWidth(){return this.element?.offsetWidth||0}getElementHeight(){return this.element?.offsetHeight||0}ngOnDestroy(){clearTimeout(this.closeAnimationWaitTimeoutId)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=O({type:e,selectors:[["nz-tab-nav-operation"]],hostAttrs:[1,"ant-tabs-nav-operations"],hostVars:2,hostBindings:function(n,i){n&2&&M("ant-tabs-nav-operations-hidden",i.items.length===0)},inputs:{items:"items",addable:[2,"addable","addable",y],addIcon:"addIcon"},outputs:{addClicked:"addClicked",selected:"selected"},exportAs:["nzTabNavOperation"],decls:7,vars:6,consts:[["dropdownTrigger","nzDropdown"],["menu","nzDropdownMenu"],["nz-dropdown","","type","button","tabindex","-1","aria-hidden","true","nzOverlayClassName","nz-tabs-dropdown",1,"ant-tabs-nav-more",3,"nzVisibleChange","mouseenter","nzDropdownMenu","nzOverlayStyle","nzMatchWidthElement"],["nzType","ellipsis"],["nz-menu",""],["nz-tab-add-button","",3,"addIcon"],["nz-menu-item","",1,"ant-tabs-dropdown-menu-item",3,"ant-tabs-dropdown-menu-item-disabled","nzSelected","nzDisabled"],["nz-menu-item","",1,"ant-tabs-dropdown-menu-item",3,"click","contextmenu","nzSelected","nzDisabled"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["nz-tab-add-button","",3,"click","addIcon"]],template:function(n,i){if(n&1){let a=B();g(0,"button",2,0),A("nzVisibleChange",function(p){return _(a),T(i.menuVisChange(p))})("mouseenter",function(){return _(a),T(i.showItems())}),V(2,"nz-icon",3),C(),g(3,"nz-dropdown-menu",null,1),N(5,$e,3,0,"ul",4),C(),N(6,Qe,1,1,"button",5)}if(n&2){let a=Z(4);u("nzDropdownMenu",a)("nzOverlayStyle",lt(5,Fe))("nzMatchWidthElement",null),f(5),k(i.menuOpened?5:-1),f(),k(i.addable?6:-1)}},dependencies:[pt,mt,tt,J,bt,_e,be,fe,ue,ze],encapsulation:2,changeDetection:0})}return e})(),In=.1,Ce=.01,ft=20,ve=.995**ft,Sn=(()=>{class e{ngZone=h(Y);destroyRef=h(et);el=h(P).nativeElement;lastWheelDirection=null;lastWheelTimestamp=0;lastTimestamp=0;lastTimeDiff=0;lastMixedWheel=0;lastWheelPrevent=!1;touchPosition=null;lastOffset=null;motion=-1;offsetChange=new z;tabScroll=new z;ngOnInit(){let t=U(this.el,"wheel"),n=U(this.el,"touchstart"),i=U(this.el,"touchmove"),a=U(this.el,"touchend");this.subscribeWrap("wheel",t,this.onWheel),this.subscribeWrap("touchstart",n,this.onTouchStart),this.subscribeWrap("touchmove",i,this.onTouchMove),this.subscribeWrap("touchend",a,this.onTouchEnd)}subscribeWrap(t,n,i){return n.pipe(L(this.destroyRef)).subscribe(a=>{this.tabScroll.emit({type:t,event:a}),a.defaultPrevented||i(a)})}onTouchEnd=t=>{if(!this.touchPosition)return;let n=this.lastOffset,i=this.lastTimeDiff;if(this.lastOffset=this.touchPosition=null,n){let a=n.x/i,l=n.y/i,p=Math.abs(a),b=Math.abs(l);if(Math.max(p,b)<In)return;let w=a,E=l;this.motion=window.setInterval(()=>{if(Math.abs(w)<Ce&&Math.abs(E)<Ce){window.clearInterval(this.motion);return}w*=ve,E*=ve,this.onOffset(w*ft,E*ft,t)},ft)}};onTouchMove=t=>{if(!this.touchPosition)return;t.preventDefault();let{screenX:n,screenY:i}=t.touches[0],a=n-this.touchPosition.x,l=i-this.touchPosition.y;this.onOffset(a,l,t);let p=Date.now();this.lastTimeDiff=p-this.lastTimestamp,this.lastTimestamp=p,this.lastOffset={x:a,y:l},this.touchPosition={x:n,y:i}};onTouchStart=t=>{let{screenX:n,screenY:i}=t.touches[0];this.touchPosition={x:n,y:i},window.clearInterval(this.motion)};onWheel=t=>{let{deltaX:n,deltaY:i}=t,a,l=Math.abs(n),p=Math.abs(i);l===p?a=this.lastWheelDirection==="x"?n:i:l>p?(a=n,this.lastWheelDirection="x"):(a=i,this.lastWheelDirection="y");let b=Date.now(),w=Math.abs(a);(b-this.lastWheelTimestamp>100||w-this.lastMixedWheel>10)&&(this.lastWheelPrevent=!1),this.onOffset(-a,-a,t),(t.defaultPrevented||this.lastWheelPrevent)&&(this.lastWheelPrevent=!0),this.lastWheelTimestamp=b,this.lastMixedWheel=w};onOffset(t,n,i){this.offsetChange.observers.length&&this.ngZone.run(()=>{this.offsetChange.emit({x:t,y:n,event:i})})}static \u0275fac=function(n){return new(n||e)};static \u0275dir=W({type:e,selectors:[["","nzTabScrollList",""]],outputs:{offsetChange:"offsetChange",tabScroll:"tabScroll"}})}return e})(),ye=(()=>{class e{ngZone=h(Y);el=h(P).nativeElement;position="horizontal";animated=!0;animationMode=h(Yt,{optional:!0});get _animated(){return this.animationMode!=="NoopAnimations"&&this.animated}alignToElement(t){this.ngZone.runOutsideAngular(()=>{ut(()=>this.setStyles(t))})}setStyles(t){this.position==="horizontal"?(this.el.style.top="",this.el.style.height="",this.el.style.left=this.getLeftPosition(t),this.el.style.width=this.getElementWidth(t)):(this.el.style.left="",this.el.style.width="",this.el.style.top=this.getTopPosition(t),this.el.style.height=this.getElementHeight(t))}getLeftPosition(t){return t?`${t.offsetLeft||0}px`:"0"}getElementWidth(t){return t?`${t.offsetWidth||0}px`:"0"}getTopPosition(t){return t?`${t.offsetTop||0}px`:"0"}getElementHeight(t){return t?`${t.offsetHeight||0}px`:"0"}static \u0275fac=function(n){return new(n||e)};static \u0275dir=W({type:e,selectors:[["nz-tabs-ink-bar"],["","nz-tabs-ink-bar",""]],hostAttrs:[1,"ant-tabs-ink-bar"],hostVars:2,hostBindings:function(n,i){n&2&&M("ant-tabs-ink-bar-animated",i._animated)},inputs:{position:"position",animated:"animated"}})}return e})(),wn=typeof ut<"u"?Wt:Ot,xe=150,Bt=(()=>{class e{cdr=h(ct);ngZone=h(Y);viewportRuler=h(oe);nzResizeObserver=h(Te);dir=h(kt);destroyRef=h(et);indexFocused=new z;selectFocusedIndex=new z;addClicked=new z;tabScroll=new z;position="horizontal";addable=!1;hideBar=!1;addIcon="plus";inkBarAnimated=!0;extraTemplate;extraContents=Nt.required();startExtraContent=wt(()=>this.extraContents().find(t=>t.position()==="start"));endExtraContent=wt(()=>this.extraContents().find(t=>t.position()==="end"));get selectedIndex(){return this._selectedIndex}set selectedIndex(t){let n=Dt(t);this._selectedIndex!==n&&(this._selectedIndex=t,this.selectedIndexChanged=!0,this.keyManager&&this.keyManager.updateActiveItem(t))}navWrapRef;navListRef;operationRef;addBtnRef;inkBar;items;get focusIndex(){return this.keyManager?this.keyManager.activeItemIndex:0}set focusIndex(t){!this.isValidIndex(t)||this.focusIndex===t||!this.keyManager||this.keyManager.setActiveItem(t)}get showAddButton(){return this.hiddenItems.length===0&&this.addable}translate=null;transformX=0;transformY=0;pingLeft=!1;pingRight=!1;pingTop=!1;pingBottom=!1;hiddenItems=[];keyManager;_selectedIndex=0;wrapperWidth=0;wrapperHeight=0;scrollListWidth=0;scrollListHeight=0;operationWidth=0;operationHeight=0;addButtonWidth=0;addButtonHeight=0;selectedIndexChanged=!1;lockAnimationTimeoutId;cssTransformTimeWaitingId;constructor(){this.destroyRef.onDestroy(()=>{clearTimeout(this.lockAnimationTimeoutId),clearTimeout(this.cssTransformTimeWaitingId)})}ngAfterViewInit(){let t=this.dir?this.dir.change.asObservable():gt(null),n=this.viewportRuler.change(150),i=()=>{this.updateScrollListPosition(),this.alignInkBarToSelectedTab()};this.keyManager=new me(this.items).withHorizontalOrientation(this.getLayoutDirection()).withWrap(),this.keyManager.updateActiveItem(this.selectedIndex),ut(i),X(this.nzResizeObserver.observe(this.navWrapRef),this.nzResizeObserver.observe(this.navListRef)).pipe(L(this.destroyRef),Pt(16,wn)).subscribe(()=>{i()}),X(t,n,this.items.changes).pipe(L(this.destroyRef)).subscribe(()=>{Promise.resolve().then(i),this.keyManager.withHorizontalOrientation(this.getLayoutDirection())}),this.keyManager.change.pipe(L(this.destroyRef)).subscribe(a=>{this.indexFocused.emit(a),this.scrollToTab(this.keyManager.activeItem)})}ngAfterContentChecked(){this.selectedIndexChanged&&(this.updateScrollListPosition(),this.alignInkBarToSelectedTab(),this.selectedIndexChanged=!1,this.cdr.markForCheck())}onSelectedFromMenu(t){let n=this.items.toArray().findIndex(i=>i===t);n!==-1&&(this.keyManager.updateActiveItem(n),this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this.scrollToTab(t)))}onOffsetChange(t){if(this.position==="horizontal"){if(!this.lockAnimationTimeoutId&&(this.transformX>=0&&t.x>0||this.transformX<=this.wrapperWidth-this.scrollListWidth&&t.x<0))return;t.event.preventDefault(),this.transformX=this.clampTransformX(this.transformX+t.x),this.setTransform(this.transformX,0)}else{if(!this.lockAnimationTimeoutId&&(this.transformY>=0&&t.y>0||this.transformY<=this.wrapperHeight-this.scrollListHeight&&t.y<0))return;t.event.preventDefault(),this.transformY=this.clampTransformY(this.transformY+t.y),this.setTransform(0,this.transformY)}this.lockAnimation(),this.setVisibleRange(),this.setPingStatus()}handleKeydown(t){let n=this.navWrapRef.nativeElement.contains(t.target);if(!(se(t)||!n))switch(t.keyCode){case 37:case 38:case 39:case 40:this.lockAnimation(),this.keyManager.onKeydown(t);break;case 13:case 32:this.focusIndex!==this.selectedIndex&&this.selectFocusedIndex.emit(this.focusIndex);break;default:this.keyManager.onKeydown(t)}}isValidIndex(t){if(!this.items)return!0;let n=this.items?this.items.toArray()[t]:null;return!!n&&!n.disabled}scrollToTab(t){if(!this.items.find(i=>i===t))return;let n=this.items.toArray();if(this.position==="horizontal"){let i=this.transformX;if(this.getLayoutDirection()==="rtl"){let a=n[0].left+n[0].width-t.left-t.width;a<this.transformX?i=a:a+t.width>this.transformX+this.wrapperWidth&&(i=a+t.width-this.wrapperWidth)}else t.left<-this.transformX?i=-t.left:t.left+t.width>-this.transformX+this.wrapperWidth&&(i=-(t.left+t.width-this.wrapperWidth));this.transformX=i,this.transformY=0,this.setTransform(i,0)}else{let i=this.transformY;t.top<-this.transformY?i=-t.top:t.top+t.height>-this.transformY+this.wrapperHeight&&(i=-(t.top+t.height-this.wrapperHeight)),this.transformY=i,this.transformX=0,this.setTransform(0,i)}clearTimeout(this.cssTransformTimeWaitingId),this.cssTransformTimeWaitingId=setTimeout(()=>{this.setVisibleRange()},xe)}lockAnimation(){this.lockAnimationTimeoutId||this.ngZone.runOutsideAngular(()=>{this.navListRef.nativeElement.style.transition="none",this.lockAnimationTimeoutId=setTimeout(()=>{this.navListRef.nativeElement.style.transition="",this.lockAnimationTimeoutId=void 0},xe)})}setTransform(t,n){this.navListRef.nativeElement.style.transform=`translate(${t}px, ${n}px)`}clampTransformX(t){let n=this.wrapperWidth-this.scrollListWidth;return this.getLayoutDirection()==="rtl"?Math.max(Math.min(n,t),0):Math.min(Math.max(n,t),0)}clampTransformY(t){return Math.min(Math.max(this.wrapperHeight-this.scrollListHeight,t),0)}updateScrollListPosition(){this.resetSizes(),this.transformX=this.clampTransformX(this.transformX),this.transformY=this.clampTransformY(this.transformY),this.setVisibleRange(),this.setPingStatus(),this.keyManager&&(this.keyManager.updateActiveItem(this.keyManager.activeItemIndex),this.keyManager.activeItem&&this.scrollToTab(this.keyManager.activeItem))}resetSizes(){this.addButtonWidth=this.addBtnRef?this.addBtnRef.getElementWidth():0,this.addButtonHeight=this.addBtnRef?this.addBtnRef.getElementHeight():0,this.operationWidth=this.operationRef.getElementWidth(),this.operationHeight=this.operationRef.getElementHeight(),this.wrapperWidth=this.navWrapRef.nativeElement.offsetWidth||0,this.wrapperHeight=this.navWrapRef.nativeElement.offsetHeight||0,this.scrollListHeight=this.navListRef.nativeElement.offsetHeight||0,this.scrollListWidth=this.navListRef.nativeElement.offsetWidth||0}alignInkBarToSelectedTab(){let t=this.items&&this.items.length?this.items.toArray()[this.selectedIndex]:null,n=t?t.elementRef.nativeElement:null;n&&this.inkBar.alignToElement(n.parentElement)}setPingStatus(){let t={top:!1,right:!1,bottom:!1,left:!1},n=this.navWrapRef.nativeElement;this.position==="horizontal"?this.getLayoutDirection()==="rtl"?(t.right=this.transformX>0,t.left=this.transformX+this.wrapperWidth<this.scrollListWidth):(t.left=this.transformX<0,t.right=-this.transformX+this.wrapperWidth<this.scrollListWidth):(t.top=this.transformY<0,t.bottom=-this.transformY+this.wrapperHeight<this.scrollListHeight),Object.keys(t).forEach(i=>{let a=`ant-tabs-nav-wrap-ping-${i}`;t[i]?n.classList.add(a):n.classList.remove(a)})}setVisibleRange(){let t,n,i,a,l,p,b=this.items.toArray(),w={width:0,height:0,left:0,top:0,right:0},E=m=>{let D,zt=b[m]||w;return n==="right"?D=b[0].left+b[0].width-b[m].left-b[m].width:D=zt[n],D};this.position==="horizontal"?(t="width",a=this.wrapperWidth,l=this.scrollListWidth-(this.hiddenItems.length?this.operationWidth:0),p=this.addButtonWidth,i=Math.abs(this.transformX),this.getLayoutDirection()==="rtl"?(n="right",this.pingRight=this.transformX>0,this.pingLeft=this.transformX+this.wrapperWidth<this.scrollListWidth):(this.pingLeft=this.transformX<0,this.pingRight=-this.transformX+this.wrapperWidth<this.scrollListWidth,n="left")):(t="height",a=this.wrapperHeight,l=this.scrollListHeight-(this.hiddenItems.length?this.operationHeight:0),p=this.addButtonHeight,n="top",i=-this.transformY,this.pingTop=this.transformY<0,this.pingBottom=-this.transformY+this.wrapperHeight<this.scrollListHeight);let $=a;if(l+p>a&&($=a-p),!b.length){this.hiddenItems=[],this.cdr.markForCheck();return}let v=b.length,Mt=v;for(let m=0;m<v;m+=1){let D=E(m),zt=b[m]||w;if(D+zt[t]>i+$){Mt=m-1;break}}let s=0;for(let m=v-1;m>=0;m-=1)if(E(m)<i){s=m+1;break}let o=b.slice(0,s),r=b.slice(Mt+1);this.hiddenItems=[...o,...r],this.cdr.markForCheck()}getLayoutDirection(){return this.dir&&this.dir.value==="rtl"?"rtl":"ltr"}ngOnChanges(t){let{position:n}=t;n&&!n.isFirstChange()&&(this.alignInkBarToSelectedTab(),this.lockAnimation(),this.updateScrollListPosition())}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=O({type:e,selectors:[["nz-tabs-nav"]],contentQueries:function(n,i,a){if(n&1&&H(a,we,5),n&2){let l;x(l=I())&&(i.items=l)}},viewQuery:function(n,i){if(n&1&&(F(Xe,7),F(Ye,7),F(Rt,7),F(bt,5),F(ye,7)),n&2){let a;x(a=I())&&(i.navWrapRef=a.first),x(a=I())&&(i.navListRef=a.first),x(a=I())&&(i.operationRef=a.first),x(a=I())&&(i.addBtnRef=a.first),x(a=I())&&(i.inkBar=a.first)}},hostAttrs:[1,"ant-tabs-nav"],hostBindings:function(n,i){n&1&&A("keydown",function(l){return i.handleKeydown(l)})},inputs:{position:"position",addable:[2,"addable","addable",y],hideBar:[2,"hideBar","hideBar",y],addIcon:"addIcon",inkBarAnimated:"inkBarAnimated",extraTemplate:"extraTemplate",extraContents:[1,"extraContents"],selectedIndex:"selectedIndex"},outputs:{indexFocused:"indexFocused",selectFocusedIndex:"selectFocusedIndex",addClicked:"addClicked",tabScroll:"tabScroll"},exportAs:["nzTabsNav"],features:[vt],ngContentSelectors:qe,decls:11,vars:17,consts:[["navWrap",""],["navList",""],[1,"ant-tabs-extra-content"],[1,"ant-tabs-nav-wrap"],["nzTabScrollList","","role","tablist",1,"ant-tabs-nav-list",3,"offsetChange","tabScroll"],["role","tab","nz-tab-add-button","",3,"addIcon"],["nz-tabs-ink-bar","",3,"hidden","position","animated"],[3,"addClicked","selected","addIcon","addable","items"],[3,"ngTemplateOutlet"],["role","tab","nz-tab-add-button","",3,"click","addIcon"]],template:function(n,i){if(n&1){let a=B();yt(),N(0,je,2,1,"div",2),g(1,"div",3,0)(3,"div",4,1),A("offsetChange",function(p){return _(a),T(i.onOffsetChange(p))})("tabScroll",function(p){return _(a),T(i.tabScroll.emit(p))}),rt(5),N(6,Ze,1,2,"button",5),V(7,"div",6),C()(),g(8,"nz-tab-nav-operation",7),A("addClicked",function(){return _(a),T(i.addClicked.emit())})("selected",function(p){return _(a),T(i.onSelectedFromMenu(p))}),C(),N(9,Ke,2,1,"div",2)(10,tn,2,1,"div",2)}n&2&&(k(i.startExtraContent()?0:-1),f(),M("ant-tabs-nav-wrap-ping-left",i.pingLeft)("ant-tabs-nav-wrap-ping-right",i.pingRight)("ant-tabs-nav-wrap-ping-top",i.pingTop)("ant-tabs-nav-wrap-ping-bottom",i.pingBottom),f(5),k(i.showAddButton?6:-1),f(),u("hidden",i.hideBar)("position",i.position)("animated",i.inkBarAnimated),f(),u("addIcon",i.addIcon)("addable",i.addable)("items",i.hiddenItems),f(),k(i.endExtraContent()?9:i.extraTemplate?10:-1))},dependencies:[Sn,bt,ye,Rt,ht],encapsulation:2,changeDetection:0})}return e})(),Nn=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275dir=W({type:e,selectors:[["","nz-tab",""]],exportAs:["nzTab"]})}return e})(),Ne=new Xt(""),kn=(()=>{class e{nzTitle="";nzClosable=!1;nzCloseIcon="close";nzDisabled=!1;nzForceRender=!1;nzSelect=new z;nzDeselect=new z;nzClick=new z;nzContextmenu=new z;nzTabLinkTemplateDirective;template=null;linkDirective;contentTemplate;isActive=!1;hasBeenActive=!1;position=null;origin=null;closestTabSet=h(Ne);stateChanges=new Lt;get content(){return this.template||this.contentTemplate}get label(){return this.nzTitle||this.nzTabLinkTemplateDirective?.templateRef}ngOnChanges(t){let{nzTitle:n,nzDisabled:i,nzForceRender:a}=t;(n||i||a)&&this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete()}setActive(t){this.isActive=t,t&&(this.hasBeenActive=!0)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=O({type:e,selectors:[["nz-tab"]],contentQueries:function(n,i,a){if(n&1&&(H(a,xn,5),H(a,Nn,5,it),H(a,Se,5)),n&2){let l;x(l=I())&&(i.nzTabLinkTemplateDirective=l.first),x(l=I())&&(i.template=l.first),x(l=I())&&(i.linkDirective=l.first)}},viewQuery:function(n,i){if(n&1&&F(en,7),n&2){let a;x(a=I())&&(i.contentTemplate=a.first)}},inputs:{nzTitle:"nzTitle",nzClosable:[2,"nzClosable","nzClosable",y],nzCloseIcon:"nzCloseIcon",nzDisabled:[2,"nzDisabled","nzDisabled",y],nzForceRender:[2,"nzForceRender","nzForceRender",y]},outputs:{nzSelect:"nzSelect",nzDeselect:"nzDeselect",nzClick:"nzClick",nzContextmenu:"nzContextmenu"},exportAs:["nzTab"],features:[vt],ngContentSelectors:an,decls:4,vars:0,consts:[["tabLinkTemplate",""],["contentTemplate",""]],template:function(n,i){n&1&&(yt(nn),Gt(0,on,1,0,"ng-template",null,0,dt)(2,sn,1,0,"ng-template",null,1,dt))},encapsulation:2,changeDetection:0})}return e})(),Dn="tabs",An=0,En=(()=>{var v;let e,d=[],t=[],n,i=[],a=[],l,p=[],b=[],w,E=[],$=[];return v=class{_nzModuleName=Dn;nzConfigService=h(de);ngZone=h(Y);cdr=h(ct);directionality=h(kt);destroyRef=h(et);get nzSelectedIndex(){return this.selectedIndex}set nzSelectedIndex(s){this.indexToSelect=Dt(s,null)}nzTabPosition="top";nzTabBarExtraContent;nzCanDeactivate=null;nzAddIcon="plus";nzTabBarStyle=null;nzType=R(this,d,"line");nzSize=(R(this,t),R(this,i,"default"));nzAnimated=(R(this,a),R(this,p,!0));nzTabBarGutter=(R(this,b),R(this,E,void 0));nzHideAdd=(R(this,$),!1);nzCentered=!1;nzHideAll=!1;nzLinkRouter=!1;nzLinkExact=!0;nzDestroyInactiveTabPane=!1;nzSelectChange=new z(!0);nzSelectedIndexChange=new z;nzTabListScroll=new z;nzClose=new z;nzAdd=new z;get position(){return["top","bottom"].indexOf(this.nzTabPosition)===-1?"vertical":"horizontal"}get addable(){return this.nzType==="editable-card"&&!this.nzHideAdd}get closable(){return this.nzType==="editable-card"}get line(){return this.nzType==="line"}get inkBarAnimated(){return this.line&&(typeof this.nzAnimated=="boolean"?this.nzAnimated:this.nzAnimated.inkBar)}get tabPaneAnimated(){return typeof this.nzAnimated=="boolean"?this.nzAnimated:this.nzAnimated.tabPane}allTabs=new nt;tabLinks=new nt;tabNavBarRef;tabs=new nt;extraContents=ee(ge);dir="ltr";tabSetId;indexToSelect=0;selectedIndex=null;tabLabelSubscription=Tt.EMPTY;canDeactivateSubscription=Tt.EMPTY;router=h(ie,{optional:!0});constructor(){this.tabSetId=An++,h(te)==="nz-tabset"&&re(`${At} <nz-tabset> is deprecated, please use <nz-tabs> instead.`),this.destroyRef.onDestroy(()=>{this.tabs.destroy(),this.tabLabelSubscription.unsubscribe(),this.canDeactivateSubscription.unsubscribe()})}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe(L(this.destroyRef)).subscribe(s=>{this.dir=s,this.cdr.detectChanges()})}ngAfterContentInit(){this.ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>this.setUpRouter())}),this.subscribeToTabLabels(),this.subscribeToAllTabChanges(),this.tabs.changes.pipe(L(this.destroyRef)).subscribe(()=>{if(this.clampTabIndex(this.indexToSelect)===this.selectedIndex){let o=this.tabs.toArray();for(let r=0;r<o.length;r++)if(o[r].isActive){this.indexToSelect=this.selectedIndex=r;break}}this.subscribeToTabLabels(),this.cdr.markForCheck()})}ngAfterContentChecked(){let s=this.indexToSelect=this.clampTabIndex(this.indexToSelect);if(this.selectedIndex!==s){let o=this.selectedIndex==null;o||this.nzSelectChange.emit(this.createChangeEvent(s)),Promise.resolve().then(()=>{this.tabs.forEach((r,m)=>r.setActive(m===s)),o||this.nzSelectedIndexChange.emit(s)})}this.tabs.forEach((o,r)=>{o.position=r-s,this.selectedIndex!=null&&o.position===0&&!o.origin&&(o.origin=s-this.selectedIndex)}),this.selectedIndex!==s&&(this.selectedIndex=s,this.cdr.markForCheck())}onClose(s,o){o.preventDefault(),o.stopPropagation(),this.nzClose.emit({index:s})}onAdd(){this.nzAdd.emit()}clampTabIndex(s){return Math.min(this.tabs.length-1,Math.max(s||0,0))}createChangeEvent(s){let o=new Et;return o.index=s,this.tabs&&this.tabs.length&&(o.tab=this.tabs.toArray()[s],this.tabs.forEach((r,m)=>{m!==s&&r.nzDeselect.emit()}),o.tab.nzSelect.emit()),o}subscribeToTabLabels(){this.tabLabelSubscription&&this.tabLabelSubscription.unsubscribe(),this.tabLabelSubscription=X(...this.tabs.map(s=>s.stateChanges)).subscribe(()=>this.cdr.markForCheck())}subscribeToAllTabChanges(){this.allTabs.changes.pipe(Ct(this.allTabs)).subscribe(s=>{this.tabs.reset(s.filter(o=>o.closestTabSet===this)),this.tabs.notifyOnChanges()})}canDeactivateFun(s,o){return typeof this.nzCanDeactivate=="function"?le(this.nzCanDeactivate(s,o)).pipe(Vt(),L(this.destroyRef)):gt(!0)}clickNavItem(s,o,r){s.nzDisabled||(s.nzClick.emit(),this.isRouterLinkClickEvent(o,r)||this.setSelectedIndex(o))}isRouterLinkClickEvent(s,o){let r=o.target;return this.nzLinkRouter?!!this.tabs.toArray()[s]?.linkDirective?.elementRef.nativeElement.contains(r):!1}contextmenuNavItem(s,o){s.nzDisabled||s.nzContextmenu.emit(o)}setSelectedIndex(s){this.canDeactivateSubscription.unsubscribe(),this.canDeactivateSubscription=this.canDeactivateFun(this.selectedIndex,s).subscribe(o=>{o&&(this.nzSelectedIndex=s,this.tabNavBarRef.focusIndex=s,this.cdr.markForCheck())})}getTabIndex(s,o){return s.nzDisabled?null:this.selectedIndex===o?0:-1}getTabContentId(s){return`nz-tabs-${this.tabSetId}-tab-${s}`}setUpRouter(){if(this.nzLinkRouter){if(!this.router)throw new Error(`${At} you should import 'RouterModule' if you want to use 'nzLinkRouter'!`);X(this.router.events.pipe(Ft(s=>s instanceof ne)),this.tabLinks.changes).pipe(Ct(!0),Ht(0),L(this.destroyRef)).subscribe(()=>{this.updateRouterActive(),this.cdr.markForCheck()})}}updateRouterActive(){if(this.router?.navigated){let s=this.findShouldActiveTabIndex();s!==this.selectedIndex&&this.setSelectedIndex(s),Promise.resolve().then(()=>this.nzHideAll=s===-1)}}findShouldActiveTabIndex(){let s=this.tabs.toArray(),o=this.isLinkActive(this.router);return s.findIndex(r=>{let m=r.linkDirective;return m?o(m.routerLink):!1})}isLinkActive(s){return o=>o?!!s?.isActive(o.urlTree||"",{paths:this.nzLinkExact?"exact":"subset",queryParams:this.nzLinkExact?"exact":"subset",fragment:"ignored",matrixParams:"ignored"}):!1}},(()=>{let s=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;e=[K()],n=[K()],l=[K()],w=[K()],Q(null,null,e,{kind:"field",name:"nzType",static:!1,private:!1,access:{has:o=>"nzType"in o,get:o=>o.nzType,set:(o,r)=>{o.nzType=r}},metadata:s},d,t),Q(null,null,n,{kind:"field",name:"nzSize",static:!1,private:!1,access:{has:o=>"nzSize"in o,get:o=>o.nzSize,set:(o,r)=>{o.nzSize=r}},metadata:s},i,a),Q(null,null,l,{kind:"field",name:"nzAnimated",static:!1,private:!1,access:{has:o=>"nzAnimated"in o,get:o=>o.nzAnimated,set:(o,r)=>{o.nzAnimated=r}},metadata:s},p,b),Q(null,null,w,{kind:"field",name:"nzTabBarGutter",static:!1,private:!1,access:{has:o=>"nzTabBarGutter"in o,get:o=>o.nzTabBarGutter,set:(o,r)=>{o.nzTabBarGutter=r}},metadata:s},E,$),s&&Object.defineProperty(v,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:s})})(),_t(v,"\u0275fac",function(o){return new(o||v)}),_t(v,"\u0275cmp",O({type:v,selectors:[["nz-tabs"],["nz-tabset"]],contentQueries:function(o,r,m){if(o&1&&(Zt(m,r.extraContents,ge,4),H(m,kn,5),H(m,Se,5)),o&2){Ut();let D;x(D=I())&&(r.allTabs=D),x(D=I())&&(r.tabLinks=D)}},viewQuery:function(o,r){if(o&1&&F(Bt,5),o&2){let m;x(m=I())&&(r.tabNavBarRef=m.first)}},hostAttrs:[1,"ant-tabs"],hostVars:24,hostBindings:function(o,r){o&2&&M("ant-tabs-card",r.nzType==="card"||r.nzType==="editable-card")("ant-tabs-editable",r.nzType==="editable-card")("ant-tabs-editable-card",r.nzType==="editable-card")("ant-tabs-centered",r.nzCentered)("ant-tabs-rtl",r.dir==="rtl")("ant-tabs-top",r.nzTabPosition==="top")("ant-tabs-bottom",r.nzTabPosition==="bottom")("ant-tabs-left",r.nzTabPosition==="left")("ant-tabs-right",r.nzTabPosition==="right")("ant-tabs-default",r.nzSize==="default")("ant-tabs-small",r.nzSize==="small")("ant-tabs-large",r.nzSize==="large")},inputs:{nzSelectedIndex:"nzSelectedIndex",nzTabPosition:"nzTabPosition",nzTabBarExtraContent:"nzTabBarExtraContent",nzCanDeactivate:"nzCanDeactivate",nzAddIcon:"nzAddIcon",nzTabBarStyle:"nzTabBarStyle",nzType:"nzType",nzSize:"nzSize",nzAnimated:"nzAnimated",nzTabBarGutter:"nzTabBarGutter",nzHideAdd:[2,"nzHideAdd","nzHideAdd",y],nzCentered:[2,"nzCentered","nzCentered",y],nzHideAll:[2,"nzHideAll","nzHideAll",y],nzLinkRouter:[2,"nzLinkRouter","nzLinkRouter",y],nzLinkExact:[2,"nzLinkExact","nzLinkExact",y],nzDestroyInactiveTabPane:[2,"nzDestroyInactiveTabPane","nzDestroyInactiveTabPane",y]},outputs:{nzSelectChange:"nzSelectChange",nzSelectedIndexChange:"nzSelectedIndexChange",nzTabListScroll:"nzTabListScroll",nzClose:"nzClose",nzAdd:"nzAdd"},exportAs:["nzTabs"],features:[Jt([{provide:Ne,useExisting:$t(()=>v)}])],decls:4,vars:12,consts:[["tabpaneTmpl",""],[3,"style","selectedIndex","inkBarAnimated","addable","addIcon","hideBar","position","extraTemplate","extraContents"],[1,"ant-tabs-content-holder"],[1,"ant-tabs-content"],[3,"tabScroll","selectFocusedIndex","addClicked","selectedIndex","inkBarAnimated","addable","addIcon","hideBar","position","extraTemplate","extraContents"],[1,"ant-tabs-tab",3,"margin-right","margin-bottom","ant-tabs-tab-active","ant-tabs-tab-disabled"],[1,"ant-tabs-tab",3,"click","contextmenu"],["type","button","role","tab","nzTabNavItem","","cdkMonitorElementFocus","",1,"ant-tabs-tab-btn",3,"id","disabled","tab","active"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["type","button","nz-tab-close-button","",3,"closeIcon"],["type","button","nz-tab-close-button","",3,"click","closeIcon"],[3,"ngTemplateOutlet"],["role","tabpanel","nz-tab-body","",3,"id","active","content","animated"]],template:function(o,r){o&1&&(N(0,hn,3,10,"nz-tabs-nav",1),g(1,"div",2)(2,"div",3),N(3,vn,2,0),C()()),o&2&&(k(r.tabs.length||r.addable?0:-1),f(2),M("ant-tabs-content-top",r.nzTabPosition==="top")("ant-tabs-content-bottom",r.nzTabPosition==="bottom")("ant-tabs-content-left",r.nzTabPosition==="left")("ant-tabs-content-right",r.nzTabPosition==="right")("ant-tabs-content-animated",r.tabPaneAnimated),f(),k(r.nzHideAll?-1:3))},dependencies:[Bt,ht,we,he,ce,tt,J,Ie,yn],encapsulation:2})),v})();var bi=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=qt({type:e});static \u0275inj=Qt({imports:[En,Bt,Rt,bt,Ie]})}return e})();export{Nn as a,kn as b,En as c,bi as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as kt}from"./chunk-5Y7KNVNN.js";import{c as Rt}from"./chunk-S6BY2OTR.js";import{Cb as Q,Ia as Nt,Ja as At,Jb as xt,Ka as B,La as $,M as C,Mb as Lt,Ob as Mt,Rb as Et,Tb as Ot,X as vt,Y as Ft,Ya as Dt,Za as It,_a as St,a as _t,nb as yt,va as D}from"./chunk-2EB7UV3S.js";import{i as bt}from"./chunk-SIKDYQOR.js";import{$c as zt,Ac as ct,B as tt,Bc as ut,Da as w,Fc as H,Gb as y,Hb as at,Hc as A,Ib as rt,Jc as mt,Kc as E,Lc as O,M as T,Mb as g,Oa as V,Vb as lt,Xa as ot,Xb as v,Yc as dt,Zb as F,_c as P,a as W,bd as ft,cc as z,cd as ht,da as et,dc as b,ec as _,ed as Ct,f as q,fc as st,g as K,ha as nt,jc as k,jd as Tt,kc as x,l as X,lc as j,oa as it,ob as l,pd as gt,r as N,s as d,sa as s,vc as u,vd as R,wc as L,xc as M,yc as pt,zd as f}from"./chunk-YGWA6NUS.js";var G=["*"],wt=e=>[e],Vt=e=>({$implicit:e});function jt(e,a){if(e&1&&(k(0),E(1),x()),e&2){let t=u(2);l(),O(t.innerTip)}}function Ht(e,a){if(e&1&&(b(0,"div",2)(1,"div",4),g(2,jt,2,1,"ng-container",5),_()()),e&2){let t=u();z("@helpMotion",void 0)("@.disabled",t.animationType==="NoopAnimations"),l(),mt(P(6,wt,"ant-form-item-explain-"+t.status)),l(),z("nzStringTemplateOutlet",t.innerTip)("nzStringTemplateOutletContext",P(8,Vt,t.validateControl))}}function Pt(e,a){if(e&1&&(k(0),E(1),x()),e&2){let t=u(2);l(),O(t.nzExtra)}}function Bt(e,a){if(e&1&&(b(0,"div",3),g(1,Pt,2,1,"ng-container",6),_()),e&2){let t=u();l(),z("nzStringTemplateOutlet",t.nzExtra)}}var $t=(e,a)=>({required:e,$implicit:a});function Qt(e,a){if(e&1&&(k(0),st(1,"nz-icon",4),x()),e&2){let t=a.$implicit,n=u(3);l(),z("nzType",t)("nzTheme",n.tooltipIcon.theme)}}function Gt(e,a){if(e&1&&(b(0,"span",1),g(1,Qt,2,2,"ng-container",3),_()),e&2){let t=u(2);z("nzTooltipTitle",t.nzTooltipTitle),l(),z("nzStringTemplateOutlet",t.tooltipIcon.type)}}function Ut(e,a){e&1&&(b(0,"span",2),E(1),ft(2,"nzI18n"),_()),e&2&&(l(),O(ht(2,1,"Form.optional")))}function Yt(e,a){if(e&1&&(M(0),v(1,Gt,2,2,"span",1),v(2,Ut,3,3,"span",2)),e&2){let t=u();l(),F(t.nzTooltipTitle?1:-1),l(),F((t.nzRequiredMark==null?null:t.nzRequiredMark())==="optional"&&!t.nzRequired?2:-1)}}function Zt(e,a){e&1&&j(0)}function Jt(e,a){if(e&1&&g(0,Zt,1,0,"ng-container",5),e&2){let t=u(),n=H(2);z("ngTemplateOutlet",t.nzRequiredMark())("ngTemplateOutletContext",zt(2,$t,t.nzRequired,n))}}function Kt(e,a){e&1&&j(0)}function Xt(e,a){if(e&1&&g(0,Kt,1,0,"ng-container",6),e&2){u();let t=H(2);z("ngTemplateOutlet",t)}}var te=(()=>{class e{cdr=s(R);status="";hasFeedback=!1;withHelpClass=!1;setWithHelpViaTips(t){this.withHelpClass=t,this.cdr.markForCheck()}setStatus(t){this.status=t,this.cdr.markForCheck()}setHasFeedback(t){this.hasFeedback=t,this.cdr.markForCheck()}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=y({type:e,selectors:[["nz-form-item"]],hostAttrs:[1,"ant-form-item"],hostVars:12,hostBindings:function(n,i){n&2&&A("ant-form-item-has-success",i.status==="success")("ant-form-item-has-warning",i.status==="warning")("ant-form-item-has-error",i.status==="error")("ant-form-item-is-validating",i.status==="validating")("ant-form-item-has-feedback",i.hasFeedback&&i.status)("ant-form-item-with-help",i.withHelpClass)},exportAs:["nzFormItem"],ngContentSelectors:G,decls:1,vars:0,template:function(n,i){n&1&&(L(),M(0))},encapsulation:2,changeDetection:0})}return e})(),ee="form",U={type:"question-circle",theme:"outline"},qt=(()=>{var c;let e,a=[],t=[],n,i=[],h=[],m,I=[],S=[],Y,Z=[],J=[];return c=class{destroyRef=s(w);directionality=s(_t);_nzModuleName=ee;nzLayout="horizontal";nzNoColon=d(this,a,!1);nzAutoTips=(d(this,t),d(this,i,{}));nzDisableAutoTips=(d(this,h),!1);nzTooltipIcon=d(this,I,U);nzLabelAlign=(d(this,S),"right");nzLabelWrap=d(this,Z,!1);nzRequiredMark=(d(this,J),gt(!0));dir="ltr";inputChanges$=new X;getInputObservable(r){return this.inputChanges$.pipe(T(o=>r in o),tt(o=>o[r]))}constructor(){this.dir=this.directionality.value,this.directionality.change?.pipe(C()).subscribe(r=>{this.dir=r}),this.destroyRef.onDestroy(()=>{this.inputChanges$.complete()})}ngOnChanges(r){this.inputChanges$.next(r)}},(()=>{let r=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;e=[D()],n=[D()],m=[D()],Y=[D()],N(null,null,e,{kind:"field",name:"nzNoColon",static:!1,private:!1,access:{has:o=>"nzNoColon"in o,get:o=>o.nzNoColon,set:(o,p)=>{o.nzNoColon=p}},metadata:r},a,t),N(null,null,n,{kind:"field",name:"nzAutoTips",static:!1,private:!1,access:{has:o=>"nzAutoTips"in o,get:o=>o.nzAutoTips,set:(o,p)=>{o.nzAutoTips=p}},metadata:r},i,h),N(null,null,m,{kind:"field",name:"nzTooltipIcon",static:!1,private:!1,access:{has:o=>"nzTooltipIcon"in o,get:o=>o.nzTooltipIcon,set:(o,p)=>{o.nzTooltipIcon=p}},metadata:r},I,S),N(null,null,Y,{kind:"field",name:"nzLabelWrap",static:!1,private:!1,access:{has:o=>"nzLabelWrap"in o,get:o=>o.nzLabelWrap,set:(o,p)=>{o.nzLabelWrap=p}},metadata:r},Z,J),r&&Object.defineProperty(c,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:r})})(),q(c,"\u0275fac",function(o){return new(o||c)}),q(c,"\u0275dir",rt({type:c,selectors:[["","nz-form",""]],hostAttrs:[1,"ant-form"],hostVars:8,hostBindings:function(o,p){o&2&&A("ant-form-horizontal",p.nzLayout==="horizontal")("ant-form-vertical",p.nzLayout==="vertical")("ant-form-inline",p.nzLayout==="inline")("ant-form-rtl",p.dir==="rtl")},inputs:{nzLayout:"nzLayout",nzNoColon:[2,"nzNoColon","nzNoColon",f],nzAutoTips:"nzAutoTips",nzDisableAutoTips:[2,"nzDisableAutoTips","nzDisableAutoTips",f],nzTooltipIcon:"nzTooltipIcon",nzLabelAlign:"nzLabelAlign",nzLabelWrap:[2,"nzLabelWrap","nzLabelWrap",f],nzRequiredMark:[1,"nzRequiredMark"]},exportAs:["nzForm"],features:[V]})),c})(),ne=(()=>{class e{cdr=s(R);i18n=s(Dt);nzFormStatusService=s(Q);destroyRef=s(w);animationType=s(ot,{optional:!0});_hasFeedback=!1;validateChanges=K.EMPTY;validateString=null;localeId;autoErrorTip;get disableAutoTips(){return this.nzDisableAutoTips!==void 0?Ft(this.nzDisableAutoTips):!!this.nzFormDirective?.nzDisableAutoTips}status="";validateControl=null;innerTip=null;defaultValidateControl;nzSuccessTip;nzWarningTip;nzErrorTip;nzValidatingTip;nzExtra;nzAutoTips={};nzDisableAutoTips;set nzHasFeedback(t){this._hasFeedback=t,this.nzFormStatusService.formStatusChanges.next({status:this.status,hasFeedback:this._hasFeedback}),this.nzFormItemComponent&&this.nzFormItemComponent.setHasFeedback(this._hasFeedback)}get nzHasFeedback(){return this._hasFeedback}set nzValidateStatus(t){t instanceof Lt||t instanceof Mt?(this.validateControl=t,this.validateString=null,this.watchControl()):t instanceof Ot?(this.validateControl=t.control,this.validateString=null,this.watchControl()):(this.validateString=t,this.validateControl=null,this.setStatus())}watchControl(){this.validateChanges.unsubscribe(),this.validateControl&&this.validateControl.statusChanges&&(this.validateChanges=this.validateControl.statusChanges.pipe(et(null),C(this.destroyRef)).subscribe(()=>{this.disableAutoTips||this.updateAutoErrorTip(),this.setStatus(),this.cdr.markForCheck()}))}setStatus(){this.status=this.getControlStatus(this.validateString),this.innerTip=this.getInnerTip(this.status),this.nzFormStatusService.formStatusChanges.next({status:this.status,hasFeedback:this.nzHasFeedback}),this.nzFormItemComponent&&(this.nzFormItemComponent.setWithHelpViaTips(!!this.innerTip),this.nzFormItemComponent.setStatus(this.status))}getControlStatus(t){let n;return t==="warning"||this.validateControlStatus("INVALID","warning")?n="warning":t==="error"||this.validateControlStatus("INVALID")?n="error":t==="validating"||t==="pending"||this.validateControlStatus("PENDING")?n="validating":t==="success"||this.validateControlStatus("VALID")?n="success":n="",n}validateControlStatus(t,n){if(this.validateControl){let{dirty:i,touched:h,status:m}=this.validateControl;return(!!i||!!h)&&(n?this.validateControl.hasError(n):m===t)}else return!1}getInnerTip(t){switch(t){case"error":return!this.disableAutoTips&&this.autoErrorTip||this.nzErrorTip||null;case"validating":return this.nzValidatingTip||null;case"success":return this.nzSuccessTip||null;case"warning":return this.nzWarningTip||null;default:return null}}updateAutoErrorTip(){if(this.validateControl){let t=this.validateControl.errors||{},n="";for(let i in t)if(t.hasOwnProperty(i)&&(n=t[i]?.[this.localeId]??this.nzAutoTips?.[this.localeId]?.[i]??this.nzAutoTips.default?.[i]??this.nzFormDirective?.nzAutoTips?.[this.localeId]?.[i]??this.nzFormDirective?.nzAutoTips.default?.[i]),n)break;this.autoErrorTip=n}}subscribeAutoTips(t){t?.pipe(C(this.destroyRef)).subscribe(()=>{this.disableAutoTips||(this.updateAutoErrorTip(),this.setStatus(),this.cdr.markForCheck())})}nzFormItemComponent=s(te,{host:!0,optional:!0});nzFormDirective=s(qt,{optional:!0});constructor(){this.subscribeAutoTips(this.i18n.localeChange.pipe(nt(t=>this.localeId=t.locale))),this.subscribeAutoTips(this.nzFormDirective?.getInputObservable("nzAutoTips")),this.subscribeAutoTips(this.nzFormDirective?.getInputObservable("nzDisableAutoTips").pipe(T(()=>this.nzDisableAutoTips===void 0)))}ngOnChanges(t){let{nzDisableAutoTips:n,nzAutoTips:i,nzSuccessTip:h,nzWarningTip:m,nzErrorTip:I,nzValidatingTip:S}=t;n||i?(this.updateAutoErrorTip(),this.setStatus()):(h||m||I||S)&&this.setStatus()}ngOnInit(){this.setStatus()}ngAfterContentInit(){!this.validateControl&&!this.validateString&&(this.defaultValidateControl instanceof Et?this.nzValidateStatus=this.defaultValidateControl.control:this.nzValidateStatus=this.defaultValidateControl)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=y({type:e,selectors:[["nz-form-control"]],contentQueries:function(n,i,h){if(n&1&&pt(h,xt,5),n&2){let m;ct(m=ut())&&(i.defaultValidateControl=m.first)}},hostAttrs:[1,"ant-form-item-control"],inputs:{nzSuccessTip:"nzSuccessTip",nzWarningTip:"nzWarningTip",nzErrorTip:"nzErrorTip",nzValidatingTip:"nzValidatingTip",nzExtra:"nzExtra",nzAutoTips:"nzAutoTips",nzDisableAutoTips:[2,"nzDisableAutoTips","nzDisableAutoTips",f],nzHasFeedback:[2,"nzHasFeedback","nzHasFeedback",f],nzValidateStatus:"nzValidateStatus"},exportAs:["nzFormControl"],features:[dt([Q]),V],ngContentSelectors:G,decls:5,vars:2,consts:[[1,"ant-form-item-control-input"],[1,"ant-form-item-control-input-content"],[1,"ant-form-item-explain","ant-form-item-explain-connected"],[1,"ant-form-item-extra"],["role","alert"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[4,"nzStringTemplateOutlet"]],template:function(n,i){n&1&&(L(),b(0,"div",0)(1,"div",1),M(2),_()(),v(3,Ht,3,10,"div",2),v(4,Bt,2,1,"div",3)),n&2&&(l(3),F(i.innerTip?3:-1),l(),F(i.nzExtra?4:-1))},dependencies:[$,B],encapsulation:2,data:{animation:[yt]},changeDetection:0})}return e})();function Wt(e){let a=typeof e=="string"?{type:e}:e;return W(W({},U),a)}var ie=(()=>{class e{cdr=s(R);nzFor;nzRequired=!1;set nzNoColon(t){this.noColon=t}get nzNoColon(){return this.noColon!=="default"?this.noColon:!!this.nzFormDirective?.nzNoColon}noColon="default";nzTooltipTitle;set nzTooltipIcon(t){this._tooltipIcon=Wt(t)}get tooltipIcon(){return this._tooltipIcon!=="default"?this._tooltipIcon:Wt(this.nzFormDirective?.nzTooltipIcon||U)}_tooltipIcon="default";set nzLabelAlign(t){this.labelAlign=t}get nzLabelAlign(){return this.labelAlign!=="default"?this.labelAlign:this.nzFormDirective?.nzLabelAlign||"right"}labelAlign="default";set nzLabelWrap(t){this.labelWrap=t}get nzLabelWrap(){return this.labelWrap!=="default"?this.labelWrap:!!this.nzFormDirective?.nzLabelWrap}labelWrap="default";nzFormDirective=s(qt,{skipSelf:!0,optional:!0});nzRequiredMark=this.nzFormDirective?.nzRequiredMark;isNzRequiredMarkTemplate=Tt(()=>vt(this.nzRequiredMark?.()));constructor(){this.nzFormDirective&&(this.nzFormDirective.getInputObservable("nzNoColon").pipe(T(()=>this.noColon==="default"),C()).subscribe(()=>this.cdr.markForCheck()),this.nzFormDirective.getInputObservable("nzTooltipIcon").pipe(T(()=>this._tooltipIcon==="default"),C()).subscribe(()=>this.cdr.markForCheck()),this.nzFormDirective.getInputObservable("nzLabelAlign").pipe(T(()=>this.labelAlign==="default"),C()).subscribe(()=>this.cdr.markForCheck()),this.nzFormDirective.getInputObservable("nzLabelWrap").pipe(T(()=>this.labelWrap==="default"),C()).subscribe(()=>this.cdr.markForCheck()))}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=y({type:e,selectors:[["nz-form-label"]],hostAttrs:[1,"ant-form-item-label"],hostVars:4,hostBindings:function(n,i){n&2&&A("ant-form-item-label-left",i.nzLabelAlign==="left")("ant-form-item-label-wrap",i.nzLabelWrap)},inputs:{nzFor:"nzFor",nzRequired:[2,"nzRequired","nzRequired",f],nzNoColon:[2,"nzNoColon","nzNoColon",f],nzTooltipTitle:"nzTooltipTitle",nzTooltipIcon:"nzTooltipIcon",nzLabelAlign:"nzLabelAlign",nzLabelWrap:[2,"nzLabelWrap","nzLabelWrap",f]},exportAs:["nzFormLabel"],ngContentSelectors:G,decls:5,vars:10,consts:[["labelTemplate",""],["nz-tooltip","",1,"ant-form-item-tooltip",3,"nzTooltipTitle"],[1,"ant-form-item-optional"],[4,"nzStringTemplateOutlet"],[3,"nzType","nzTheme"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"]],template:function(n,i){n&1&&(L(),b(0,"label"),g(1,Yt,3,2,"ng-template",null,0,Ct),v(3,Jt,1,5,"ng-container")(4,Xt,1,1,"ng-container"),_()),n&2&&(A("ant-form-item-no-colon",i.nzNoColon)("ant-form-item-required",i.nzRequired)("ant-form-item-required-mark-optional",(i.nzRequiredMark==null?null:i.nzRequiredMark())==="optional"||i.isNzRequiredMarkTemplate())("ant-form-item-required-mark-hidden",(i.nzRequiredMark==null?null:i.nzRequiredMark())===!1),lt("for",i.nzFor),l(3),F(i.isNzRequiredMarkTemplate()?3:4))},dependencies:[$,B,Rt,At,Nt,bt,St,It],encapsulation:2,changeDetection:0})}return e})();var Le=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=at({type:e});static \u0275inj=it({imports:[ie,ne,kt]})}return e})();export{te as a,qt as b,ne as c,ie as d,Le as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ia as Z,Ja as q,Ka as H,La as J,M as L,a as G,qb as K,ua as W,va as M}from"./chunk-2EB7UV3S.js";import{Da as k,Gb as B,Hb as j,Hc as P,Kc as T,Lc as g,Mb as f,Oa as F,Xb as c,Zb as s,cc as p,dc as d,ec as _,f as I,fc as N,jc as x,kc as h,lc as R,mc as w,oa as E,ob as a,r as A,s as u,sa as S,sc as D,tb as V,vc as o,vd as U,ya as b,za as v,zd as y}from"./chunk-YGWA6NUS.js";function $(n,t){n&1&&R(0)}function nn(n,t){if(n&1&&f(0,$,1,0,"ng-container",7),n&2){let e=o(3);p("nzStringTemplateOutlet",e.nzIcon)}}function en(n,t){if(n&1&&N(0,"nz-icon",6),n&2){let e=o(3);p("nzType",e.nzIconType||e.inferredIconType)("nzTheme",e.iconTheme)}}function tn(n,t){if(n&1&&(d(0,"div",2),c(1,nn,1,1,"ng-container")(2,en,1,2,"nz-icon",6),_()),n&2){let e=o(2);a(),s(e.nzIcon?1:2)}}function on(n,t){if(n&1&&(x(0),T(1),h()),n&2){let e=o(4);a(),g(e.nzMessage)}}function an(n,t){if(n&1&&(d(0,"span",8),f(1,on,2,1,"ng-container",7),_()),n&2){let e=o(3);a(),p("nzStringTemplateOutlet",e.nzMessage)}}function ln(n,t){if(n&1&&(x(0),T(1),h()),n&2){let e=o(4);a(),g(e.nzDescription)}}function rn(n,t){if(n&1&&(d(0,"span",9),f(1,ln,2,1,"ng-container",7),_()),n&2){let e=o(3);a(),p("nzStringTemplateOutlet",e.nzDescription)}}function cn(n,t){if(n&1&&(d(0,"div",3),c(1,an,2,1,"span",8),c(2,rn,2,1,"span",9),_()),n&2){let e=o(2);a(),s(e.nzMessage?1:-1),a(),s(e.nzDescription?2:-1)}}function sn(n,t){if(n&1&&(x(0),T(1),h()),n&2){let e=o(3);a(),g(e.nzAction)}}function dn(n,t){if(n&1&&(d(0,"div",4),f(1,sn,2,1,"ng-container",7),_()),n&2){let e=o(2);a(),p("nzStringTemplateOutlet",e.nzAction)}}function _n(n,t){if(n&1&&(x(0),d(1,"span",12),T(2),_(),h()),n&2){let e=o(4);a(2),g(e.nzCloseText)}}function pn(n,t){if(n&1&&f(0,_n,3,1,"ng-container",7),n&2){let e=o(3);p("nzStringTemplateOutlet",e.nzCloseText)}}function zn(n,t){n&1&&N(0,"nz-icon",11)}function mn(n,t){if(n&1){let e=w();d(0,"button",10),D("click",function(){b(e);let C=o(2);return v(C.closeAlert())}),c(1,pn,1,1,"ng-container")(2,zn,1,0,"nz-icon",11),_()}if(n&2){let e=o(2);a(),s(e.nzCloseText?1:2)}}function Cn(n,t){if(n&1){let e=w();d(0,"div",1),D("@slideAlertMotion.done",function(){b(e);let C=o();return v(C.onFadeAnimationDone())}),c(1,tn,3,1,"div",2),c(2,cn,3,2,"div",3),c(3,dn,2,1,"div",4),c(4,mn,3,1,"button",5),_()}if(n&2){let e=o();P("ant-alert-rtl",e.dir==="rtl")("ant-alert-success",e.nzType==="success")("ant-alert-info",e.nzType==="info")("ant-alert-warning",e.nzType==="warning")("ant-alert-error",e.nzType==="error")("ant-alert-no-icon",!e.nzShowIcon)("ant-alert-banner",e.nzBanner)("ant-alert-closable",e.nzCloseable)("ant-alert-with-description",!!e.nzDescription),p("@.disabled",e.nzNoAnimation)("@slideAlertMotion",void 0),a(),s(e.nzShowIcon?1:-1),a(),s(e.nzMessage||e.nzDescription?2:-1),a(),s(e.nzAction?3:-1),a(),s(e.nzCloseable||e.nzCloseText?4:-1)}}var Q="alert",fn=(()=>{var l;let n,t=[],e=[],m,C=[],O=[];return l=class{cdr=S(U);directionality=S(G);destroyRef=S(k);_nzModuleName=Q;nzAction=null;nzCloseText=null;nzIconType=null;nzMessage=null;nzDescription=null;nzType="info";nzCloseable=u(this,t,!1);nzShowIcon=(u(this,e),u(this,C,!1));nzBanner=(u(this,O),!1);nzNoAnimation=!1;nzIcon=null;nzOnClose=new V;closed=!1;iconTheme="fill";inferredIconType="info-circle";dir="ltr";isTypeSet=!1;isShowIconSet=!1;constructor(){W(Q,()=>this.cdr.markForCheck())}ngOnInit(){this.directionality.change?.pipe(L(this.destroyRef)).subscribe(r=>{this.dir=r,this.cdr.detectChanges()}),this.dir=this.directionality.value}closeAlert(){this.closed=!0}onFadeAnimationDone(){this.closed&&this.nzOnClose.emit(!0)}ngOnChanges(r){let{nzShowIcon:i,nzDescription:z,nzType:X,nzBanner:Y}=r;if(i&&(this.isShowIconSet=!0),X)switch(this.isTypeSet=!0,this.nzType){case"error":this.inferredIconType="close-circle";break;case"success":this.inferredIconType="check-circle";break;case"info":this.inferredIconType="info-circle";break;case"warning":this.inferredIconType="exclamation-circle";break}z&&(this.iconTheme=this.nzDescription?"outline":"fill"),Y&&(this.isTypeSet||(this.nzType="warning"),this.isShowIconSet||(this.nzShowIcon=!0))}},(()=>{let r=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;n=[M()],m=[M()],A(null,null,n,{kind:"field",name:"nzCloseable",static:!1,private:!1,access:{has:i=>"nzCloseable"in i,get:i=>i.nzCloseable,set:(i,z)=>{i.nzCloseable=z}},metadata:r},t,e),A(null,null,m,{kind:"field",name:"nzShowIcon",static:!1,private:!1,access:{has:i=>"nzShowIcon"in i,get:i=>i.nzShowIcon,set:(i,z)=>{i.nzShowIcon=z}},metadata:r},C,O),r&&Object.defineProperty(l,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:r})})(),I(l,"\u0275fac",function(i){return new(i||l)}),I(l,"\u0275cmp",B({type:l,selectors:[["nz-alert"]],inputs:{nzAction:"nzAction",nzCloseText:"nzCloseText",nzIconType:"nzIconType",nzMessage:"nzMessage",nzDescription:"nzDescription",nzType:"nzType",nzCloseable:[2,"nzCloseable","nzCloseable",y],nzShowIcon:[2,"nzShowIcon","nzShowIcon",y],nzBanner:[2,"nzBanner","nzBanner",y],nzNoAnimation:[2,"nzNoAnimation","nzNoAnimation",y],nzIcon:"nzIcon"},outputs:{nzOnClose:"nzOnClose"},exportAs:["nzAlert"],features:[F],decls:1,vars:1,consts:[[1,"ant-alert",3,"ant-alert-rtl","ant-alert-success","ant-alert-info","ant-alert-warning","ant-alert-error","ant-alert-no-icon","ant-alert-banner","ant-alert-closable","ant-alert-with-description"],[1,"ant-alert"],[1,"ant-alert-icon"],[1,"ant-alert-content"],[1,"ant-alert-action"],["type","button","tabindex","0",1,"ant-alert-close-icon"],[3,"nzType","nzTheme"],[4,"nzStringTemplateOutlet"],[1,"ant-alert-message"],[1,"ant-alert-description"],["type","button","tabindex","0",1,"ant-alert-close-icon",3,"click"],["nzType","close"],[1,"ant-alert-close-text"]],template:function(i,z){i&1&&c(0,Cn,5,24,"div",0),i&2&&s(z.closed?-1:0)},dependencies:[q,Z,J,H],encapsulation:2,data:{animation:[K]},changeDetection:0})),l})(),kn=(()=>{class n{static \u0275fac=function(m){return new(m||n)};static \u0275mod=j({type:n});static \u0275inj=E({imports:[fn]})}return n})();export{fn as a,kn as b};
|
package/www/browser/index.html
CHANGED
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
<link rel="stylesheet" href="styles-ROAHD7MY.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles-ROAHD7MY.css"></noscript></head>
|
|
10
10
|
<body>
|
|
11
11
|
<app-root></app-root>
|
|
12
|
-
<link rel="modulepreload" href="chunk-
|
|
12
|
+
<link rel="modulepreload" href="chunk-3MPEGFKP.js"><link rel="modulepreload" href="chunk-NVN2P466.js"><link rel="modulepreload" href="chunk-D5W7J3FS.js"><link rel="modulepreload" href="chunk-KDMWEV46.js"><link rel="modulepreload" href="chunk-TPVKLECM.js"><link rel="modulepreload" href="chunk-6ZXQKFRQ.js"><link rel="modulepreload" href="chunk-PUHSNEN6.js"><link rel="modulepreload" href="chunk-7X4X4YHI.js"><link rel="modulepreload" href="chunk-RKKAY5CD.js"><link rel="modulepreload" href="chunk-IVX3LVU4.js"><script src="scripts-U25HCVEI.js" defer></script><script src="main-HMOP3OWL.js" type="module"></script></body>
|
|
13
13
|
</html>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import{b as Bn}from"./chunk-3MPEGFKP.js";import{a as Dn,b as En,c as On,d as jn,e as In,f as W}from"./chunk-NVN2P466.js";import{e as Fe}from"./chunk-D5W7J3FS.js";import{a as Ln,b as Vn}from"./chunk-KDMWEV46.js";import{a as yn,b as zn,c as Mn}from"./chunk-TPVKLECM.js";import{a as ae,b as Ie,c as ke,d as le}from"./chunk-6ZXQKFRQ.js";import{c as ie,d as Sn,e as re,f as Tn,g as Nn,h as U}from"./chunk-PUHSNEN6.js";import{a as kn,b as Fn}from"./chunk-7X4X4YHI.js";import{a as bn,b as Oe}from"./chunk-RKKAY5CD.js";import{a as wn,b as Pn}from"./chunk-IVX3LVU4.js";import{h as ze,i as Me,k as be,l as Z}from"./chunk-IX6UZA7J.js";import{a as Ee,b as xn}from"./chunk-GYXK6ZZT.js";import{a as oe,b as je}from"./chunk-7VJKEZTT.js";import{c as Ne,e as De}from"./chunk-S6BY2OTR.js";import"./chunk-JIVQNGBJ.js";import{Ha as un,Ia as w,Ib as xe,Ja as M,Ka as fn,Kb as ee,La as gn,M as rt,N as mn,Ob as te,Pa as hn,Qa as _n,Ra as F,S as dn,Sa as X,Ua as L,Va as V,Wa as Cn,Xa as vn,Yb as ne,a as pn,ac as we,cc as Pe,ec as Se,fc as Te}from"./chunk-2EB7UV3S.js";import"./chunk-HFZLJHYR.js";import{a as an,b as ye,c as ln,d as sn,e as q,f as K,h as cn,i as k}from"./chunk-X6PRUZ5G.js";import{i as ve,l as Xt,m as Zt,n as I,o as en,r as tn,s as nn,x as on,y as rn}from"./chunk-SIKDYQOR.js";import{$b as At,Ab as It,Ac as Ht,Ba as de,Bb as kt,Bc as Ut,Ca as bt,Da as xt,Dc as Wt,Ec as $t,Fc as D,Gb as C,Ha as b,Hb as Ft,Hc as j,Ia as wt,Kc as m,Lc as T,M as Q,Mb as P,Mc as R,Pc as ge,Qc as he,Ra as Pt,Rb as Lt,Rc as _e,Vb as Vt,Wb as Bt,Xa as St,Xb as y,Yc as Gt,Zb as z,Zc as Ce,_c as nt,a as ut,ac as B,b as ft,bc as A,bd as ce,cc as d,cd as ot,da as ht,dc as r,dd as it,ec as a,ed as J,fc as p,gd as Yt,jc as E,jd as N,ka as _t,kb as Tt,kc as O,kd as Y,lc as tt,ma as Ct,mc as v,na as S,oa as vt,ob as s,qa as yt,qd as qt,ra as me,sa as g,sb as Nt,sc as _,ta as zt,tb as Dt,td as Qt,ua as Mt,ub as Et,vc as c,vd as Jt,wc as ue,xc as fe,ya as u,yb as Ot,z as gt,za as f,zb as jt,zc as Rt,zd as Kt}from"./chunk-YGWA6NUS.js";function lo(t){let n=t;return 5}var An=["zh",[["\u4E0A\u5348","\u4E0B\u5348"]],void 0,[["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"]],void 0,[["1","2","3","4","5","6","7","8","9","10","11","12"],["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]],void 0,[["\u516C\u5143\u524D","\u516C\u5143"]],0,[6,0],["y/M/d","y\u5E74M\u6708d\u65E5",void 0,"y\u5E74M\u6708d\u65E5EEEE"],["HH:mm","HH:mm:ss","z HH:mm:ss","zzzz HH:mm:ss"],["{1} {0}",void 0,void 0,void 0],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"CNY","\xA5","\u4EBA\u6C11\u5E01",{AUD:["AU$","$"],BYN:[void 0,"\u0440."],CNY:["\xA5"],ILR:["ILS"],JPY:["JP\xA5","\xA5"],KRW:["\uFFE6","\u20A9"],PHP:[void 0,"\u20B1"],RUR:[void 0,"\u0440."],TWD:["NT$"],USD:["US$","$"],XXX:[]},"ltr",lo];var so="@",co=(()=>{class t{doc;delegate;zone;animationType;moduleImpl;_rendererFactoryPromise=null;scheduler=null;injector=g(de);loadingSchedulerFn=g(po,{optional:!0});_engine;constructor(e,o,i,l,h){this.doc=e,this.delegate=o,this.zone=i,this.animationType=l,this.moduleImpl=h}ngOnDestroy(){this._engine?.flush()}loadImpl(){let e=()=>this.moduleImpl??import("./chunk-2S6Y2RQI.js").then(i=>i),o;return this.loadingSchedulerFn?o=this.loadingSchedulerFn(e):o=e(),o.catch(i=>{throw new _t(5300,!1)}).then(({\u0275createEngine:i,\u0275AnimationRendererFactory:l})=>{this._engine=i(this.animationType,this.doc);let h=new l(this.delegate,this._engine,this.zone);return this.delegate=h,h})}createRenderer(e,o){let i=this.delegate.createRenderer(e,o);if(i.\u0275type===0)return i;typeof i.throwOnSyntheticProps=="boolean"&&(i.throwOnSyntheticProps=!1);let l=new at(i);return o?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(h=>{let G=h.createRenderer(e,o);l.use(G),this.scheduler??=this.injector.get(wt,null,{optional:!0}),this.scheduler?.notify(10)}).catch(h=>{l.use(i)}),l}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}componentReplaced(e){this._engine?.flush(),this.delegate.componentReplaced?.(e)}static \u0275fac=function(o){kt()};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})(),at=class{delegate;replay=[];\u0275type=1;constructor(n){this.delegate=n}use(n){if(this.delegate=n,this.replay!==null){for(let e of this.replay)e(n);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}get destroyNode(){return this.delegate.destroyNode}appendChild(n,e){this.delegate.appendChild(n,e)}insertBefore(n,e,o,i){this.delegate.insertBefore(n,e,o,i)}removeChild(n,e,o,i){this.delegate.removeChild(n,e,o,i)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,o,i){this.delegate.setAttribute(n,e,o,i)}removeAttribute(n,e,o){this.delegate.removeAttribute(n,e,o)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,o,i){this.delegate.setStyle(n,e,o,i)}removeStyle(n,e,o){this.delegate.removeStyle(n,e,o)}setProperty(n,e,o){this.shouldReplay(e)&&this.replay.push(i=>i.setProperty(n,e,o)),this.delegate.setProperty(n,e,o)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,o,i){return this.shouldReplay(e)&&this.replay.push(l=>l.listen(n,e,o,i)),this.delegate.listen(n,e,o,i)}shouldReplay(n){return this.replay!==null&&n.startsWith(so)}},po=new yt("");function Rn(t="animations"){return Nt("NgAsyncAnimations"),zt([{provide:Ot,useFactory:(n,e,o)=>new co(n,e,o,t),deps:[bt,tn,Et]},{provide:St,useValue:t==="noop"?"NoopAnimations":"BrowserAnimations"}])}var Le=class t{currentTheme="default";constructor(){}reverseTheme(n){return n==="dark"?"default":"dark"}removeUnusedTheme(n){document.documentElement.classList.remove(n);let e=document.getElementById(n);e&&document.head.removeChild(e)}loadCss(n,e){return new Promise((o,i)=>{let l=document.createElement("link");l.rel="stylesheet",l.href=n,l.id=e,l.onload=o,l.onerror=i,document.head.append(l)})}loadTheme(n=!0){let e=this.currentTheme;return n&&document.documentElement.classList.add(e),new Promise((o,i)=>{this.loadCss(`${e}.css`,e).then(l=>{n||document.documentElement.classList.add(e),this.removeUnusedTheme(this.reverseTheme(e)),o(l)},l=>i(l))})}toggleTheme(){return this.currentTheme=this.reverseTheme(this.currentTheme),this.loadTheme(!1)}static \u0275fac=function(e){return new(e||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})};var Hn={provide:Lt,useFactory:t=>()=>t.loadTheme(),deps:[Le],multi:!0};var Un=[{path:"",redirectTo:"dashboard",pathMatch:"full"},{path:"dashboard",loadChildren:()=>import("./chunk-2SYBXRWK.js").then(t=>t.DashboardModule)},{path:"tasks",loadChildren:()=>import("./chunk-O64FT2TA.js").then(t=>t.TasksModule)},{path:"projects",loadChildren:()=>import("./chunk-GSUKZOEV.js").then(t=>t.ProjectsModule)},{path:"settings",loadChildren:()=>import("./chunk-XUUNCF53.js").then(t=>t.SettingModule)},{path:"configuration",loadChildren:()=>import("./chunk-H27FQ6OP.js").then(t=>t.ConfigurationModule)},{path:"dependencies",loadChildren:()=>import("./chunk-C5DOE7UG.js").then(t=>t.DependenciesModule)},{path:"rquest",loadChildren:()=>import("./chunk-E2WRB7KQ.js").then(t=>t.ApiClientModule)},{path:"sprite",loadChildren:()=>import("./chunk-PC7TJLCL.js").then(t=>t.SpriteModule)},{path:"rd",loadChildren:()=>import("./chunk-PNFC3J4Z.js").then(t=>t.RdModule)},{path:"issues",loadChildren:()=>import("./chunk-6L2CHHFV.js").then(t=>t.IssuesModule)},{path:"nginx",loadComponent:()=>import("./chunk-LRHJZDWY.js").then(t=>t.NginxComponent)},{path:"about",loadChildren:()=>import("./chunk-I7RTVSMK.js").then(t=>t.AboutRoutingModule)},{path:"**",redirectTo:"dashboard"}];en(An);var Wn={providers:[Hn,Yt(),cn(Un),vn(Cn),Rn(),on(rn([xn])),Mt(Z),Bn()]};var lt=["*"];function mo(t,n){}function uo(t,n){if(t&1&&(r(0,"span",1),P(1,mo,0,0,"ng-template",2),p(2,"nz-icon",3),a()),t&2){let e=c(),o=D(4);d("nzDropdownMenu",e.nzOverlay),s(),d("ngTemplateOutlet",o)}}function fo(t,n){}function go(t,n){if(t&1&&P(0,fo,0,0,"ng-template",2),t&2){c();let e=D(4);d("ngTemplateOutlet",e)}}function ho(t,n){if(t&1&&(E(0),m(1),O()),t&2){let e=c(2);s(),R(" ",e.nzBreadCrumbComponent.nzSeparator," ")}}function _o(t,n){if(t&1&&(r(0,"nz-breadcrumb-separator"),P(1,ho,2,1,"ng-container",4),a()),t&2){let e=c();s(),d("nzStringTemplateOutlet",e.nzBreadCrumbComponent.nzSeparator)}}function Co(t,n){t&1&&(r(0,"span",5),fe(1),a())}var vo=(t,n)=>n.url;function yo(t,n){if(t&1){let e=v();r(0,"nz-breadcrumb-item")(1,"a",0),_("click",function(i){let l=u(e).$implicit,h=c(2);return f(h.navigate(l.url,i))}),m(2),a()()}if(t&2){let e=n.$implicit;s(),Vt("href",e.url,Tt),s(),T(e.label)}}function zo(t,n){if(t&1&&B(0,yo,3,2,"nz-breadcrumb-item",null,vo),t&2){let e=c();A(e.breadcrumbs)}}var Ve=class{},Mo=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275cmp=C({type:t,selectors:[["nz-breadcrumb-separator"]],hostAttrs:[1,"ant-breadcrumb-separator"],exportAs:["nzBreadcrumbSeparator"],ngContentSelectors:lt,decls:1,vars:0,template:function(o,i){o&1&&(ue(),fe(0))},encapsulation:2})}return t})(),Gn=(()=>{class t{nzBreadCrumbComponent=g(Ve);nzOverlay;static \u0275fac=function(o){return new(o||t)};static \u0275cmp=C({type:t,selectors:[["nz-breadcrumb-item"]],inputs:{nzOverlay:"nzOverlay"},exportAs:["nzBreadcrumbItem"],ngContentSelectors:lt,decls:5,vars:2,consts:[["noMenuTpl",""],["nz-dropdown","",1,"ant-breadcrumb-overlay-link",3,"nzDropdownMenu"],[3,"ngTemplateOutlet"],["nzType","down"],[4,"nzStringTemplateOutlet"],[1,"ant-breadcrumb-link"]],template:function(o,i){o&1&&(ue(),y(0,uo,3,2,"span",1)(1,go,1,1,null,2),y(2,_o,2,1,"nz-breadcrumb-separator"),P(3,Co,2,0,"ng-template",null,0,J)),o&2&&(z(i.nzOverlay?0:1),s(2),z(i.nzBreadCrumbComponent.nzSeparator?2:-1))},dependencies:[ve,Mo,le,ae,M,w,gn,fn],encapsulation:2,changeDetection:0})}return t})(),bo=(()=>{class t{injector=g(de);cdr=g(Jt);elementRef=g(Pt);renderer=g(jt);directionality=g(pn);destroyRef=g(xt);nzAutoGenerate=!1;nzSeparator="/";nzRouteLabel="breadcrumb";nzRouteLabelFn=e=>e;nzRouteFn=e=>e;breadcrumbs=[];dir="ltr";ngOnInit(){this.nzAutoGenerate&&this.registerRouterChange(),this.directionality.change?.pipe(rt(this.destroyRef)).subscribe(e=>{this.dir=e,this.prepareComponentForRtl(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.prepareComponentForRtl()}navigate(e,o){o.preventDefault(),this.injector.get(q).navigateByUrl(e)}registerRouterChange(){try{let e=this.injector.get(q),o=this.injector.get(ln);e.events.pipe(Q(i=>i instanceof ye),rt(this.destroyRef),ht(!0)).subscribe(()=>{this.breadcrumbs=this.getBreadcrumbs(o.root),this.cdr.markForCheck()})}catch{throw new Error(`${dn} You should import RouterModule if you want to use 'NzAutoGenerate'.`)}}getBreadcrumbs(e,o="",i=[]){let l=e.children;if(l.length===0)return i;for(let h of l)if(h.outlet===an){let G=h.snapshot.url.map(se=>se.path).filter(se=>se).join("/"),mt=G?`${o}/${G}`:o,dt=this.nzRouteLabelFn(h.snapshot.data[this.nzRouteLabel]),ao=this.nzRouteFn(mt);if(G&&dt){let se={label:dt,params:h.snapshot.params,url:ao};i.push(se)}return this.getBreadcrumbs(h,mt,i)}return i}prepareComponentForRtl(){this.dir==="rtl"?this.renderer.addClass(this.elementRef.nativeElement,"ant-breadcrumb-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-breadcrumb-rtl")}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=C({type:t,selectors:[["nz-breadcrumb"]],hostAttrs:[1,"ant-breadcrumb"],inputs:{nzAutoGenerate:[2,"nzAutoGenerate","nzAutoGenerate",Kt],nzSeparator:"nzSeparator",nzRouteLabel:"nzRouteLabel",nzRouteLabelFn:"nzRouteLabelFn",nzRouteFn:"nzRouteFn"},exportAs:["nzBreadcrumb"],features:[Gt([{provide:Ve,useExisting:Ct(()=>t)}])],ngContentSelectors:lt,decls:2,vars:1,consts:[[3,"click"]],template:function(o,i){o&1&&(ue(),fe(0),y(1,zo,2,0)),o&2&&(s(),z(i.nzAutoGenerate&&i.breadcrumbs.length?1:-1))},dependencies:[Gn],encapsulation:2,changeDetection:0})}return t})(),Yn=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=Ft({type:t});static \u0275inj=vt({imports:[bo,Gn]})}return t})();function xo(t){return t.op==="syslog.tail"}function wo(t){return t.op==="syslog.append"}function st(t,n){return n?!(n.scope!==void 0&&t?.scope!==n.scope||n.level!==void 0&&t?.level!==n.level||n.source!==void 0&&t?.source!==n.source||n.refId!==void 0&&t?.refId!==n.refId):!0}var Be=class t{constructor(n){this.ws=n;this.msgSub=this.ws.messages().pipe(Q(e=>xo(e)||wo(e))).subscribe(e=>this.onWsMessage(e)),this.wsStateSub=this.ws.stateChanges().subscribe(e=>{let o=this.lastWsState==="open",i=e==="open";!o&&i&&(this.subSentForCurrentConnection=!1,this.sendSubIfNeeded()),o&&!i&&(this.subSentForCurrentConnection=!1),this.lastWsState=e})}msgSub;wsStateSub;enabled=b(!1);filter=b({});logs=b([]);unread=b(0);drawerOpen=b(!1);capacity=2e3;tail=300;subSentForCurrentConnection=!1;lastWsState="idle";setDrawerOpen(n){this.drawerOpen.set(n),n&&this.unread.set(0)}setFilter(n){this.filter.set(n??{});let e=this.logs();if(!e.length)return;let o=e.filter(i=>st(i,this.filter()));this.logs.set(o.slice(-this.capacity))}enable(n=300){let e=Math.max(0,Math.min(5e3,n|0));if(this.tail=e,this.enabled()){this.ws.isOpen()&&(this.subSentForCurrentConnection=!1,this.sendSubIfNeeded());return}this.enabled.set(!0),this.ws.connect(),this.sendSubIfNeeded()}disable(){this.enabled.set(!1),this.subSentForCurrentConnection=!1}markRead(){this.unread.set(0)}clear(){this.logs.set([]),this.unread.set(0)}appendLocal(n,e="info",o="server"){let i={ts:Date.now(),level:e,source:"system",scope:o,text:n},l=this.logs(),h=l.length>=this.capacity?l.slice(1):l.slice();h.push(i),this.logs.set(h),this.drawerOpen()||this.unread.set(this.unread()+1)}sendSubIfNeeded(){this.enabled()&&this.ws.isOpen()&&(this.subSentForCurrentConnection||(this.ws.send({op:"sub",topic:"syslog",tail:this.tail}),this.subSentForCurrentConnection=!0))}onWsMessage(n){let e=this.filter();if(n.op==="syslog.tail"){let h=(n.entries??[]).filter(G=>st(G,e));this.logs.set(h.slice(-this.capacity));return}let o=n.entry;if(!st(o,e))return;let i=this.logs(),l=i.length>=this.capacity?i.slice(1):i.slice();l.push(o),this.logs.set(l),this.drawerOpen()||this.unread.set(this.unread()+1)}static \u0275fac=function(e){return new(e||t)(me(Ee))};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})};var So=["logBox"],To=()=>({padding:"0px",overflow:"hidden"});function No(t,n){if(t&1&&(r(0,"nz-tag",15),m(1),ce(2,"uppercase"),a(),r(3,"div",16),m(4),a(),r(5,"div",17),m(6),ce(7,"date"),a()),t&2){let e,o,i,l,h=c();d("nzColor",h.getColor((e=h.lastLine())==null?null:e.level)),s(),R(" ",ot(2,4,(o=h.lastLine())==null?null:o.level)," "),s(3),T((i=h.lastLine())==null?null:i.text),s(2),T(it(7,6,(l=h.lastLine())==null?null:l.ts,"yyyy-MM-dd HH:mm:ss"))}}function Do(t,n){t&1&&(r(0,"nz-tag",18),m(1,"INFO"),a(),r(2,"div",16),m(3,"\u6682\u65E0\u65E5\u5FD7"),a(),r(4,"div",17),m(5,"--"),a())}function Eo(t,n){if(t&1&&m(0),t&2){let e=c().$implicit;R(" ",e.data==null?null:e.data.icon," ")}}function Oo(t,n){if(t&1&&(r(0,"div",21)(1,"nz-tag",15),m(2),ce(3,"uppercase"),a(),r(4,"span",17),m(5),ce(6,"date"),a(),r(7,"span",22),y(8,Eo,1,1),m(9),a()()),t&2){let e=n.$implicit,o=c(2);j("err",e.level==="error")("warn",e.level==="warn")("info",e.level==="info")("debug",e.level==="debug")("success",e.level==="success"),s(),d("nzColor",o.getColor(e.level)),s(),R(" ",ot(3,15,e.level)," "),s(3),T(it(6,17,e.ts,"yyyy-MM-dd HH:mm:ss")),s(3),z(e.data!=null&&e.data.icon?8:-1),s(),R(" ",e.text," ")}}function jo(t,n){if(t&1&&(E(0),r(1,"div",19,1),B(3,Oo,10,20,"div",20,Bt().trackByLine,!0),a(),O()),t&2){let e=c();s(3),A(e.lines())}}function Io(t,n){if(t&1){let e=v();r(0,"nz-space",23)(1,"button",24),_("click",function(){u(e);let i=c();return f(i.clearLog())}),p(2,"nz-icon",25),a(),r(3,"button",26),_("click",function(){u(e);let i=c();return f(i.toBottom())}),p(4,"nz-icon",27),a()()}}var Ae=class t{sysLogStream=g(Be);projectContext=g(oe);logBox=qt("logBox");autoFollow=b(!0);isOpen=b(!1);curProjectPath=N(()=>this.projectContext.currentProject()?.root||"");lines=N(()=>this.sysLogStream.logs());lastLine=N(()=>{let n=this.sysLogStream.logs();return n.length?n[n.length-1]:null});unread=N(()=>this.sysLogStream.unread());constructor(){Y(()=>{this.sysLogStream.setDrawerOpen(this.isOpen()),this.isOpen()&&queueMicrotask(()=>this.toBottom())}),Y(()=>{this.lines(),this.isOpen()&&this.autoFollow()&&queueMicrotask(()=>this.toBottom())})}ngOnInit(){this.sysLogStream.enable(300)}openLog(){this.isOpen.set(!0)}closeLog(){this.isOpen.set(!1)}clearLog(){this.sysLogStream.clear()}toBottom(){let n=this.logBox()?.nativeElement;n&&(n.scrollTop=n.scrollHeight)}trackByLine=(n,e)=>`${e.ts}-${e.refId??""}-${e.text}`;getColor(n){if(!n)return"#000000";switch(n){case"success":return"#22c55e";case"info":return"#18bdfd";case"debug":return"#94a3b8";case"error":return"#ef4444";case"warn":return"#f59e0b";default:return"#000000"}}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=C({type:t,selectors:[["app-system-log"]],viewQuery:function(e,o){e&1&&Wt(o.logBox,So,5),e&2&&$t()},decls:19,vars:10,consts:[["extra",""],["logBox",""],[1,"status-bar"],[1,"project-path"],["nz-button","","nzType","text","routerLink","/projects","nz-tooltip","\u9879\u76EE\u7BA1\u7406","nzTooltipPlacement","top",1,"home"],["nzType","home","nzTheme","outline",1,"icon"],["nz-button","","nzType","text","nzTooltipPlacement","top",1,"path",3,"nz-tooltip"],["nzType","folder","nzTheme","outline",1,"icon"],["nz-tooltip","\u6253\u5F00\u65E5\u5FD7",1,"last-log",3,"click"],["nzType","profile","nzTheme","outline",1,"icon"],[1,"actions"],["nz-button","","nzType","link","routerLink","/about/feedback","nzTooltipPlacement","top","nz-tooltip","\u53CD\u9988\u4E0E\u5E2E\u52A9"],["nzType","bug","nzTheme","outline"],["nzTitle","\u65E5\u5FD7","nzPlacement","bottom",3,"nzOnClose","nzVisible","nzMaskClosable","nzMask","nzExtra","nzHeight","nzBodyStyle"],[4,"nzDrawerContent"],[1,"level-tag",3,"nzColor"],[1,"info"],[1,"time"],["nzColor","default"],[1,"log"],[1,"line",3,"err","warn","info","debug","success"],[1,"line"],[1,"msg"],["nzAlign","center"],["nz-button","","nzType","text","nz-tooltip","\u6E05\u7A7A\u65E5\u5FD7",3,"click"],["nzType","clear","nzTheme","outline"],["nz-button","","nzType","text","nz-tooltip","\u6EDA\u52A8\u5230\u5E95\u90E8",3,"click"],["nzType","vertical-align-bottom","nzTheme","outline"]],template:function(e,o){if(e&1){let i=v();r(0,"div",2)(1,"div",3)(2,"a",4),p(3,"nz-icon",5),a(),r(4,"button",6),p(5,"nz-icon",7),r(6,"span"),m(7),a()()(),r(8,"div",8),_("click",function(){return u(i),f(o.openLog())}),p(9,"nz-icon",9),y(10,No,8,9)(11,Do,6,0),a(),r(12,"div",10)(13,"a",11),p(14,"nz-icon",12),a()()(),r(15,"nz-drawer",13),_("nzOnClose",function(){return u(i),f(o.closeLog())}),P(16,jo,5,0,"ng-container",14),a(),P(17,Io,5,0,"ng-template",null,0,J)}if(e&2){let i=D(18);s(4),d("nz-tooltip",o.curProjectPath()),s(3),T(o.curProjectPath()),s(3),z(o.lastLine()?10:11),s(5),d("nzVisible",o.isOpen())("nzMaskClosable",!1)("nzMask",!1)("nzExtra",i)("nzHeight",300)("nzBodyStyle",Ce(9,To))}},dependencies:[I,Fn,kn,Mn,zn,yn,V,L,F,_n,hn,M,w,De,Ne,k,K,Xt,Zt],styles:["[_nghost-%COMP%]{display:block;position:relative;z-index:3;flex:0 0 auto}.status-bar[_ngcontent-%COMP%]{height:32px;display:flex;align-items:center;width:100%;-webkit-user-select:none;user-select:none}.status-bar[_ngcontent-%COMP%] .project-path[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;align-items:center;padding:0 8px;gap:4px}.status-bar[_ngcontent-%COMP%] .project-path[_ngcontent-%COMP%] .home[_ngcontent-%COMP%], .status-bar[_ngcontent-%COMP%] .project-path[_ngcontent-%COMP%] .path[_ngcontent-%COMP%]{display:inline-flex;align-items:center;padding:0;max-width:360px}.status-bar[_ngcontent-%COMP%] .project-path[_ngcontent-%COMP%] .home[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .status-bar[_ngcontent-%COMP%] .project-path[_ngcontent-%COMP%] .path[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.status-bar[_ngcontent-%COMP%] .project-path[_ngcontent-%COMP%] .home[_ngcontent-%COMP%]{justify-content:center}.status-bar[_ngcontent-%COMP%] .project-path[_ngcontent-%COMP%] .path[_ngcontent-%COMP%]{min-width:240px;justify-content:flex-start}.status-bar[_ngcontent-%COMP%] .last-log[_ngcontent-%COMP%]{cursor:pointer;flex:1;display:flex;align-items:center;padding:0 12px;gap:8px;width:0}.status-bar[_ngcontent-%COMP%] .last-log[_ngcontent-%COMP%] .info[_ngcontent-%COMP%]{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.status-bar[_ngcontent-%COMP%] .last-log[_ngcontent-%COMP%] .time[_ngcontent-%COMP%]{flex:0 0 auto;opacity:.75;font-size:14px}.status-bar[_ngcontent-%COMP%] .last-log[_ngcontent-%COMP%]:hover{background:#f5f7fa}.icon[_ngcontent-%COMP%]{margin-right:8px;font-size:18px;display:inline-flex}.log[_ngcontent-%COMP%]{height:100%;overflow:auto;padding:8px 12px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:14px;line-height:18px}.line[_ngcontent-%COMP%]{display:flex;gap:12px;padding:2px 0;align-items:center}.line[_ngcontent-%COMP%] .time[_ngcontent-%COMP%]{flex:0 0 auto;opacity:.65;font-variant-numeric:tabular-nums}.line[_ngcontent-%COMP%] .msg[_ngcontent-%COMP%]{flex:1 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.line.err[_ngcontent-%COMP%] .msg[_ngcontent-%COMP%]{font-weight:600}.line.warn[_ngcontent-%COMP%] .msg[_ngcontent-%COMP%]{font-weight:500}.level-tag[_ngcontent-%COMP%]{font-size:12px;padding:0 4px;line-height:1.5;display:inline-flex;align-items:center;justify-content:center;min-width:58px;border-radius:4px}"],changeDetection:0})};var Ue=class t{static \u0275fac=function(e){return new(e||t)};static \u0275cmp=C({type:t,selectors:[["ngm-footer"]],decls:2,vars:0,template:function(e,o){e&1&&(r(0,"nz-footer"),p(1,"app-system-log"),a())},dependencies:[W,En,Ae],styles:["nz-footer[_ngcontent-%COMP%]{padding:0;align-items:center;display:flex}app-system-log[_ngcontent-%COMP%]{width:100%}"]})};var We=class t{static \u0275fac=function(e){return new(e||t)};static \u0275cmp=C({type:t,selectors:[["ngm-header"]],decls:4,vars:0,consts:[[1,"app-header"],["nzType","disconnect","nzTheme","outline"]],template:function(e,o){e&1&&(r(0,"nz-header",0),p(1,"nz-icon",1),r(2,"span"),m(3,"\u8FDE\u63A5\u5DF2\u65AD\u5F00"),a()())},dependencies:[I,W,On,M,w],styles:["nz-header.app-header[_ngcontent-%COMP%]{padding:0;width:100%;position:relative;height:48px;line-height:48px;background:var(--header-error-background);color:#fff;display:flex;align-items:center;justify-content:center;font-size:18px;gap:8px}"],changeDetection:0})};var $e=class t{isCollapsed=b(!1);static \u0275fac=function(e){return new(e||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})};var Ge=class t{projectContext=g(oe);currentMenu=b(null);router=g(q);isHubProjectValid=this.projectContext.isHubProjectValid;menus=b([{title:"\u4EEA\u8868\u76D8",path:"/dashboard",icon:"dashboard",level:1},{title:"\u4F9D\u8D56",path:"/dependencies",icon:"codepen",level:1},{title:"\u4EFB\u52A1",path:"/tasks",icon:"schedule",level:1,taskCountBadge:!0},{title:"\u914D\u7F6E",path:"/configuration",icon:"setting",level:1},{title:"API",path:"/rquest",icon:"api",level:1},{title:"Nginx",path:"/nginx",icon:"deployment-unit",level:1},{title:"\u96EA\u78A7\u56FE",path:"/sprite",icon:"smile",level:1},{title:"\u7814\u53D1\u7BA1\u7406",path:"/rd",icon:"rocket",level:1,hidden:!0},{title:"\u6D4B\u8BD5\u8DDF\u8E2A",path:"/issues",icon:"bug",level:1,hidden:!0}]);currentMenus=N(()=>this.menus());constructor(){this.syncByUrl(this.router.url),this.router.events.pipe(Q(n=>n instanceof ye)).subscribe(n=>this.syncByUrl(n.urlAfterRedirects)),Y(n=>{let e=this.isHubProjectValid();this.menus.update(o=>o.map(i=>i.path&&(i.path.includes("/rd")||i.path.includes("/issues"))?ft(ut({},i),{hidden:!e}):i)),n(()=>{})})}isActive(n){return this.router.isActive(n,{paths:"subset",queryParams:"ignored",fragment:"ignored",matrixParams:"ignored"})}clickMenu(n){n.path&&this.router.navigateByUrl(n.path),this.currentMenu.set(n)}syncByUrl(n){let e=this.normalizeUrl(n),o=this.findBestMatch(this.menus(),e);this.currentMenu.set(o)}normalizeUrl(n){return n.split("?")[0].split("#")[0]}findBestMatch(n,e){let o=this.flatten(n).filter(l=>!!l.path),i=null;for(let l of o){let h=l.path;(e===h||e.startsWith(h+"/"))&&(!i||h.length>i.path.length)&&(i=l)}return i}flatten(n){let e=[];for(let o of n)e.push(o),o.children?.length&&e.push(...this.flatten(o.children));return e}static \u0275fac=function(e){return new(e||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})};var Ye=class t{api=g(bn);runtimeStore=g(Oe);async initActiveSnapshot(){let n=await gt(this.api.active());for(let e of n??[])this.runtimeStore.setRuntime(e)}static \u0275fac=function(e){return new(e||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})};var Qn=t=>({$implicit:t});function ko(t,n){t&1&&tt(0)}function Fo(t,n){if(t&1&&p(0,"nz-icon",6),t&2){let e=c(3).$implicit;d("nzType",e.icon)}}function Lo(t,n){t&1&&p(0,"nz-badge",7)}function Vo(t,n){if(t&1){let e=v();r(0,"li",5),_("click",function(){u(e);let i=c(2).$implicit,l=c(2);return f(l.menuService.clickMenu(i))}),y(1,Fo,1,1,"nz-icon",6),r(2,"span"),m(3),a(),y(4,Lo,1,0,"nz-badge",7),a()}if(t&2){let e=c(2).$implicit,o=c(2);d("nzPaddingLeft",e.level*24)("nzDisabled",e.disabled)("nzSelected",o.menuService.isActive(e.path))("nz-tooltip",e.taskCountBadge===!0&&o.runningTaskCount()>0?o.runningTaskCount()+"\u4E2A\u4EFB\u52A1\u6B63\u5728\u8FD0\u884C":null),s(),z(e.icon?1:-1),s(2),T(e.title),s(),z(e.taskCountBadge===!0&&o.runningTaskCount()>0?4:-1)}}function Bo(t,n){t&1&&tt(0)}function Ao(t,n){if(t&1&&(r(0,"li",4)(1,"ul"),P(2,Bo,1,0,"ng-container",2),a()()),t&2){let e=c(2).$implicit;c(2);let o=D(3);d("nzPaddingLeft",e.level*24)("nzOpen",e.open)("nzTitle",e.title)("nzIcon",e.icon)("nzDisabled",e.disabled),s(2),d("ngTemplateOutlet",o)("ngTemplateOutletContext",nt(7,Qn,e.children))}}function Ro(t,n){if(t&1&&y(0,Vo,5,7,"li",3)(1,Ao,3,9,"li",4),t&2){let e=c().$implicit;z(e.children?1:0)}}function Ho(t,n){if(t&1&&y(0,Ro,2,1),t&2){let e=n.$implicit;z(e!=null&&e.hidden?-1:0)}}function Uo(t,n){if(t&1&&B(0,Ho,1,1,null,null,At),t&2){let e=n.$implicit;A(e())}}var qe=class t{isCollapsed=!1;menuService=g(Ge);taskBootstrap=g(Ye);runtimeStore=g(Oe);menus=this.menuService.currentMenus;runningTaskCount=N(()=>this.runtimeStore.totalRunningCountSignal()());ngOnInit(){this.taskBootstrap.initActiveSnapshot()}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=C({type:t,selectors:[["ngm-menu"]],inputs:{isCollapsed:"isCollapsed"},decls:4,vars:5,consts:[["menuTpl",""],["nz-menu","","nzMode","inline",3,"nzInlineCollapsed"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["nz-menu-item","","nzTooltipPlacement","right",3,"nzPaddingLeft","nzDisabled","nzSelected","nz-tooltip"],["nz-submenu","",3,"nzPaddingLeft","nzOpen","nzTitle","nzIcon","nzDisabled"],["nz-menu-item","","nzTooltipPlacement","right",3,"click","nzPaddingLeft","nzDisabled","nzSelected","nz-tooltip"],["nzTheme","outline",2,"font-size","18px",3,"nzType"],["nzStatus","processing",2,"margin-left","12px"]],template:function(e,o){if(e&1&&(r(0,"ul",1),P(1,ko,1,0,"ng-container",2)(2,Uo,2,0,"ng-template",null,0,J),a()),e&2){let i=D(3);d("nzInlineCollapsed",o.isCollapsed),s(),d("ngTemplateOutlet",i)("ngTemplateOutletContext",nt(3,Qn,o.menus))}},dependencies:[ve,U,re,ie,Sn,M,w,k,De,Ne,Pn,wn],encapsulation:2})};function Go(t,n){if(t&1){let e=v();r(0,"div",3)(1,"label",4),m(2,"\u540D\u79F0"),a(),r(3,"nz-input-wrapper")(4,"input",5),_("ngModelChange",function(i){u(e);let l=c(2);return f(l.projectState.editingProject().name=i)})("keydown.enter",function(){u(e);let i=c(2);return f(i.projectState.confirmEditProject())}),a(),p(5,"nz-icon",6),a(),r(6,"div",7),m(7,"\u8F93\u5165\u65B0\u540D\u79F0\uFF0C\u5C06\u540C\u6B65\u66F4\u65B0\u9879\u76EE\u663E\u793A\u540D\u79F0\uFF08\u4E0D\u4F1A\u91CD\u547D\u540D\u78C1\u76D8\u76EE\u5F55\uFF09\u3002"),a(),r(8,"label",4),m(9,"Git\u4ED3\u5E93\u5730\u5740"),a(),r(10,"nz-input-wrapper")(11,"input",8),_("ngModelChange",function(i){u(e);let l=c(2);return f(l.projectState.editingProject().repoPageUrl=i)}),a(),p(12,"nz-icon",9),a(),r(13,"div",10),m(14,"NGM Hub V2"),a(),r(15,"label",4),m(16,"Hub \u5730\u5740"),a(),r(17,"nz-input-wrapper")(18,"input",11),_("ngModelChange",function(i){u(e);let l=c(2);return f(l.projectState.editingProject().hubV2.baseUrl=i)}),a(),p(19,"nz-icon",12),a(),r(20,"label",4),m(21,"Project Key"),a(),r(22,"nz-input-wrapper")(23,"input",13),_("ngModelChange",function(i){u(e);let l=c(2);return f(l.projectState.editingProject().hubV2.projectKey=i)}),a(),p(24,"nz-icon",14),a(),r(25,"label",4),m(26,"API Token"),a(),r(27,"nz-input-wrapper")(28,"input",15),_("ngModelChange",function(i){u(e);let l=c(2);return f(l.projectState.editingProject().hubV2.token=i)}),a(),p(29,"nz-icon",16),a(),r(30,"div",7),m(31,"\u4EE5\u4E0A\u914D\u7F6E\u4F1A\u5199\u5165\u9879\u76EE env\uFF1ANGM_HUB_V2_BASE_URL / NGM_HUB_V2_PROJECT_KEY / NGM_HUB_V2_TOKEN\u3002"),a(),r(32,"label",4),m(33,"\u63CF\u8FF0"),a(),r(34,"nz-input-wrapper")(35,"textarea",17),_("ngModelChange",function(i){u(e);let l=c(2);return f(l.projectState.editingProject().description=i)})("keydown.enter",function(){u(e);let i=c(2);return f(i.projectState.confirmEditProject())}),a()()()}if(t&2){let e=c(2);s(4),d("ngModel",e.editingProject().name),s(7),d("ngModel",e.editingProject().repoPageUrl),s(7),d("ngModel",e.editingProject().hubV2.baseUrl),s(5),d("ngModel",e.editingProject().hubV2.projectKey),s(5),d("ngModel",e.editingProject().hubV2.token),s(7),d("ngModel",e.editingProject().description)}}function Yo(t,n){if(t&1&&(E(0),y(1,Go,36,6,"div",3),O()),t&2){let e=c();s(),z(e.editingProject()?1:-1)}}function qo(t,n){if(t&1){let e=v();E(0),r(1,"button",18),_("click",function(){u(e);let i=c();return f(i.projectState.closeEditModal())}),m(2,"\u53D6\u6D88"),a(),r(3,"button",19),_("click",function(){u(e);let i=c();return f(i.projectState.confirmEditProject())}),m(4," \u786E\u5B9A "),a(),O()}if(t&2){let e,o=c();s(3),d("disabled",!(!((e=o.projectState.editingProject())==null||e.name==null)&&e.name.trim())||o.projectState.isEditSaving())("nzLoading",o.projectState.isEditSaving())}}var Qe=class t{projectState=g(Fe);editingProject=this.projectState.editingProject;static \u0275fac=function(e){return new(e||t)};static \u0275cmp=C({type:t,selectors:[["app-project-edit-modal"]],decls:3,vars:3,consts:[["nzTitle","\u7F16\u8F91\u9879\u76EE",3,"nzOnCancel","nzClosable","nzMaskClosable","nzVisible"],[4,"nzModalContent"],[4,"nzModalFooter"],[1,"modal-body"],[1,"label"],["nz-input","","placeholder","\u8BF7\u8F93\u5165\u65B0\u540D\u79F0","autofocus","",3,"ngModelChange","keydown.enter","ngModel"],["nzInputPrefix","","nzType","folder","nzTheme","fill"],[1,"hint"],["nz-input","","placeholder","Git\u4ED3\u5E93\u5730\u5740",3,"ngModelChange","ngModel"],["nzInputPrefix","","nzType","github","nzTheme","outline"],[1,"section-title"],["nz-input","","placeholder","\u4F8B\u5982\uFF1Ahttp://192.168.1.31:7008",3,"ngModelChange","ngModel"],["nzInputPrefix","","nzType","link","nzTheme","outline"],["nz-input","","placeholder","\u4F8B\u5982\uFF1ANGM",3,"ngModelChange","ngModel"],["nzInputPrefix","","nzType","key","nzTheme","outline"],["nz-input","","type","password","placeholder","\u7C98\u8D34 hub-v2 \u9879\u76EE token",3,"ngModelChange","ngModel"],["nzInputPrefix","","nzType","safety-certificate","nzTheme","outline"],["nz-input","","rows","3","placeholder","\u8BF7\u8F93\u5165\u65B0\u63CF\u8FF0",2,"resize","none",3,"ngModelChange","keydown.enter","ngModel"],["nz-button","",3,"click"],["nz-button","","nzType","primary",3,"click","disabled","nzLoading"]],template:function(e,o){e&1&&(r(0,"nz-modal",0),_("nzOnCancel",function(){return o.projectState.closeEditModal()}),P(1,Yo,2,1,"ng-container",1)(2,qo,5,2,"ng-container",2),a()),e&2&&d("nzClosable",!1)("nzMaskClosable",!1)("nzVisible",o.projectState.isEditModalVisible())},dependencies:[I,ne,xe,ee,te,Te,Pe,Se,we,V,L,F,X,Z,be,Me,ze,M,w],styles:[".modal-body[_ngcontent-%COMP%]{display:grid;gap:12px}.section-title[_ngcontent-%COMP%]{font-size:13px;font-weight:600;opacity:.9;margin-top:4px}.hint[_ngcontent-%COMP%]{font-size:12px;opacity:.75}"]})};function Qo(t,n){if(t&1){let e=v();E(0),r(1,"div",3)(2,"label",4),m(3,"Personal Token"),a(),r(4,"nz-input-wrapper")(5,"input",5),_e("ngModelChange",function(i){u(e);let l=c();return he(l.draft,i)||(l.draft=i),f(i)}),a(),p(6,"nz-icon",6),a(),r(7,"div",7),m(8,"\u4EC5\u4FDD\u5B58\u5728\u5F53\u524D\u6D4F\u89C8\u5668\u672C\u5730\uFF0C\u7528\u4E8E webapp \u8C03\u7528 Hub V2 /api/personal\u3002"),a()(),O()}if(t&2){let e=c();s(5),ge("ngModel",e.draft)}}function Jo(t,n){if(t&1){let e=v();E(0),r(1,"button",8),_("click",function(){u(e);let i=c();return f(i.clear())}),m(2,"\u6E05\u7A7A"),a(),r(3,"button",8),_("click",function(){u(e);let i=c();return f(i.close())}),m(4,"\u53D6\u6D88"),a(),r(5,"button",9),_("click",function(){u(e);let i=c();return f(i.save())}),m(6,"\u4FDD\u5B58"),a(),O()}}var pe=class t{userStore=g(je);visible=!1;visibleChange=new Dt;draft="";open(){this.userStore.ensureUserLoaded(),this.draft=this.userStore.hubUserToken()}close(){this.visibleChange.emit(!1)}save(){this.userStore.setHubUserToken(this.draft),this.userStore.loadCurrentUser(),this.visibleChange.emit(!1)}clear(){this.userStore.setHubUserToken(""),this.draft=""}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=C({type:t,selectors:[["app-hub-v2-personal-token-modal"]],inputs:{visible:"visible"},outputs:{visibleChange:"visibleChange"},decls:3,vars:4,consts:[["nzTitle","Hub V2 Personal Token\uFF08\u5168\u5C40\uFF09",3,"nzOnCancel","nzVisible","nzClosable","nzMaskClosable","nzWidth"],[4,"nzModalContent"],[4,"nzModalFooter"],[1,"modal-body"],[1,"label"],["nz-input","","type","password","placeholder","\u7C98\u8D34 ngm_uptk_xxx",3,"ngModelChange","ngModel"],["nzInputPrefix","","nzType","safety-certificate","nzTheme","outline"],[1,"hint"],["nz-button","",3,"click"],["nz-button","","nzType","primary",3,"click"]],template:function(e,o){e&1&&(r(0,"nz-modal",0),_("nzOnCancel",function(){return o.close()}),P(1,Qo,9,1,"ng-container",1)(2,Jo,7,0,"ng-container",2),a()),e&2&&d("nzVisible",o.visible)("nzClosable",!1)("nzMaskClosable",!1)("nzWidth",560)},dependencies:[I,ne,xe,ee,te,V,L,F,X,M,w,Te,Pe,Se,we,Z,be,Me,ze],styles:[".modal-body[_ngcontent-%COMP%]{display:grid;gap:12px}.hint[_ngcontent-%COMP%]{font-size:12px;opacity:.75}"]})};var Ko=()=>({width:"100%"}),Xn=(t,n)=>n.id;function Xo(t,n){t&1&&p(0,"nz-icon",2)}function Zo(t,n){if(t&1){let e=v();r(0,"li",7),p(1,"nz-icon",12),r(2,"span"),m(3,"\u6DFB\u52A0/\u53D6\u6D88\u6536\u85CF"),a(),r(4,"nz-switch",13),_("ngModelChange",function(){let i;u(e);let l=c();return f(l.projectState.toggleFavorite((i=l.currentProject())==null?null:i.id))}),a()(),r(5,"li",14),_("click",function(){let i;u(e);let l=c();return f(l.projectState.openInEditor((i=l.currentProject())==null?null:i.id))}),p(6,"nz-icon",15),r(7,"span"),m(8,"\u5728\u7F16\u8F91\u5668\u4E2D\u6253\u5F00"),a()(),r(9,"li",14),_("click",function(){u(e);let i=c();return f(i.projectState.openEditModal(i.currentProject()))}),p(10,"nz-icon",16),r(11,"span"),m(12,"\u7F16\u8F91\u9879\u76EE"),a()(),r(13,"li",14),_("click",function(){u(e);let i=c();return f(i.openPersonalTokenModal())}),p(14,"nz-icon",17),r(15,"span"),m(16,"Hub V2 Personal Token"),a(),r(17,"span",18),m(18),a()()}if(t&2){let e,o,i,l=c();s(),d("nzTheme",(e=l.currentProject())!=null&&e.isFavorite?"fill":"outline"),s(3),d("nzDisabled",!((o=l.currentProject())!=null&&o.id))("ngModel",(i=l.currentProject())==null?null:i.isFavorite),s(13),j("ok",l.userStore.hasHubUserToken()),s(),R(" ",l.userStore.hasHubUserToken()?"\u5DF2\u914D\u7F6E":"\u672A\u914D\u7F6E"," ")}}function ei(t,n){if(t&1){let e=v();r(0,"li",14),_("click",function(){let i=u(e).$implicit,l=c();return f(l.projectState.selectProject(i))}),p(1,"nz-icon",19),r(2,"span"),m(3),a()()}if(t&2){let e=n.$implicit;s(3),T(e.name)}}function ti(t,n){if(t&1){let e=v();r(0,"li",14),_("click",function(){let i=u(e).$implicit,l=c();return f(l.projectState.selectProject(i))}),p(1,"nz-icon",12),r(2,"span"),m(3),a()()}if(t&2){let e=n.$implicit;s(),d("nzTheme",e.isFavorite?"fill":"outline"),s(2),T(e.name)}}var Je=class t{userStore=g(je);projectContext=g(oe);projectState=g(Fe);isCollapsed=Qt(!1);personalTokenModalVisible=!1;personalTokenModal;currentProject=this.projectContext.currentProject;favoriteProjects=this.projectContext.favoriteProjects;recentProjects=this.projectContext.recentProjects;curProjectName=N(()=>{let n=this.projectContext.currentProject()?.name||"\u8BF7\u9009\u62E9\u9879\u76EE";return this.isCollapsed()?n?.charAt(0).toUpperCase():n});ngOnInit(){this.projectContext.loadProjects().subscribe(),this.userStore.ensureHubUserTokenLoaded()}openPersonalTokenModal(){this.personalTokenModalVisible=!0,queueMicrotask(()=>this.personalTokenModal?.open())}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=C({type:t,selectors:[["ngm-project-nav"]],viewQuery:function(e,o){if(e&1&&Rt(pe,5),e&2){let i;Ht(i=Ut())&&(o.personalTokenModal=i.first)}},inputs:{isCollapsed:[1,"isCollapsed"]},outputs:{isCollapsed:"isCollapsedChange"},decls:24,vars:10,consts:[["menu","nzDropdownMenu"],["nz-button","","nzType","primary","nzSize","large","nz-dropdown","","nzTrigger","click",1,"project-quick-dropdown",3,"nzDropdownMenu","nzPlacement","nzOverlayStyle"],["nzType","down"],[2,"width","100%"],["nz-menu",""],["nz-menu-divider",""],["nz-menu-group","","nzTitle","\u6536\u85CF\u7684\u9879\u76EE"],["nz-menu-item","",1,"item"],["nz-menu-group","","nzTitle","\u6700\u8FD1\u4F7F\u7528"],["routerLink","/projects"],["nzType","project"],[3,"visibleChange","visible"],["nzType","star",3,"nzTheme"],[2,"margin-left","6px",3,"ngModelChange","nzDisabled","ngModel"],["nz-menu-item","",1,"item",3,"click"],["nzType","code"],["nzType","edit"],["nzType","safety-certificate"],[1,"token-status"],["nzType","star","nzTheme","fill"]],template:function(e,o){if(e&1){let i=v();r(0,"button",1)(1,"span"),m(2),a(),y(3,Xo,1,0,"nz-icon",2),a(),r(4,"nz-dropdown-menu",3,0)(6,"ul",4),y(7,Zo,19,6),p(8,"li",5)(9,"li",6),B(10,ei,4,1,"li",7,Xn),p(12,"li",5)(13,"li",8),B(14,ti,4,2,"li",7,Xn),p(16,"li",5),r(17,"li",7)(18,"a",9),p(19,"nz-icon",10),r(20,"span"),m(21,"\u9879\u76EE\u7BA1\u7406"),a()()()()(),p(22,"app-project-edit-modal"),r(23,"app-hub-v2-personal-token-modal",11),_("visibleChange",function(h){return u(i),f(o.personalTokenModalVisible=h)}),a()}if(e&2){let i=D(5);j("collapsed",o.isCollapsed()),d("nzDropdownMenu",i)("nzPlacement","bottomCenter")("nzOverlayStyle",Ce(9,Ko)),s(2),T(o.curProjectName()),s(),z(o.isCollapsed()?-1:3),s(4),z(o.currentProject()?7:-1),s(3),A(o.favoriteProjects()),s(4),A(o.recentProjects()),s(9),d("visible",o.personalTokenModalVisible)}},dependencies:[I,ne,ee,te,le,re,ie,Nn,Tn,ae,ke,Ie,U,M,w,Vn,Ln,V,L,F,X,k,K,Qe,pe],styles:["[_nghost-%COMP%]{display:flex;padding:16px}[_nghost-%COMP%] .project-quick-dropdown[_ngcontent-%COMP%]{flex:1;width:100%;display:flex;align-items:center;gap:8px;justify-content:center;border-radius:20px;font-weight:500}[_nghost-%COMP%] .project-quick-dropdown[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item[_ngcontent-%COMP%] .ant-menu-title-content{display:flex;align-items:center;gap:8px;overflow:hidden}.item[_ngcontent-%COMP%] .ant-menu-title-content span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item[_ngcontent-%COMP%] .token-status[_ngcontent-%COMP%]{margin-left:auto;font-size:12px;color:#8c8c8c}.item[_ngcontent-%COMP%] .token-status.ok[_ngcontent-%COMP%]{color:#52c41a}.item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--app-text-color);display:flex;width:100%;align-items:center;gap:8px}"]})};var Ke=class t{router=g(q);state=g($e);isCollapsed=this.state.isCollapsed;constructor(){}isActive(n){return this.router.url.startsWith(n)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=C({type:t,selectors:[["ngm-sidebar"]],hostVars:4,hostBindings:function(e,o){e&2&&j("collapsed",o.isCollapsed())("ant-layout-sider",!0)},decls:20,vars:5,consts:[["menu","nzDropdownMenu"],["nzCollapsible","","nzWidth","256px","nzBreakpoint","md",1,"menu-sidebar",3,"nzCollapsedChange","nzCollapsed","nzTrigger"],[1,"header"],[3,"isCollapsed"],[1,"content"],["nz-button","","nzType","link","nz-dropdown","","nzPlacement","bottomRight","nzTrigger","click",1,"more-btn",3,"nzDropdownMenu"],["nzType","more"],["nz-menu",""],["nz-menu-item","",1,"item"],["routerLink","/projects"],["nzType","project","nzTheme","outline"],["routerLink","/about"],["nzType","info-circle","nzTheme","outline"]],template:function(e,o){if(e&1){let i=v();r(0,"nz-sider",1),_e("nzCollapsedChange",function(h){return u(i),he(o.isCollapsed,h)||(o.isCollapsed=h),f(h)}),r(1,"div",2),p(2,"ngm-project-nav",3),a(),r(3,"div",4),p(4,"ngm-menu",3),r(5,"button",5),p(6,"nz-icon",6),a()()(),r(7,"nz-dropdown-menu",null,0)(9,"ul",7)(10,"li",8)(11,"a",9),p(12,"nz-icon",10),r(13,"span"),m(14,"\u9879\u76EE\u7BA1\u7406"),a()()(),r(15,"li",8)(16,"a",11),p(17,"nz-icon",12),r(18,"span"),m(19,"\u5173\u4E8E"),a()()()()()}if(e&2){let i=D(8);ge("nzCollapsed",o.isCollapsed),d("nzTrigger",null),s(2),d("isCollapsed",o.isCollapsed()),s(2),d("isCollapsed",o.isCollapsed()),s(),d("nzDropdownMenu",i)}},dependencies:[W,jn,M,w,U,re,ie,qe,Je,V,L,F,le,ae,ke,Ie,k,K],styles:["html.default[_ngcontent-%COMP%] [_ngcontent-%COMP%]:root{--app-gray: #e6f7ff;--app-primary: #1890ff;--app-primary-1: #e6f7ff;--app-primary-2: #bae7ff;--app-primary-3: #91d5ff;--app-primary-4: #69c0ff;--app-primary-5: #40a9ff;--app-primary-6: #1890ff;--app-text-color: rgba(0, 0, 0, .85);--app-text-secondary: rgba(0, 0, 0, .45);--text-color-primary: #1890ff;--app-component-bg: #fff;--app-border-color: #d9d9d9;--header-error-background: #ff4d4f}html.default[_ngcontent-%COMP%] [_ngcontent-%COMP%]:root{--text-color-gray: #888}html.default [_nghost-%COMP%] .sidebar-logo[_ngcontent-%COMP%]{background:var(--ant-primary-1)}html.default [_nghost-%COMP%] .sidebar-logo[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:var(--ant-text-color)}html.dark[_ngcontent-%COMP%] [_ngcontent-%COMP%]:root{--text-color-gray: #bbb}html.dark [_nghost-%COMP%] .sidebar-logo[_ngcontent-%COMP%]{background:var(--ant-primary-1)}html.dark [_nghost-%COMP%] .sidebar-logo[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:var(--ant-text-color)}[_nghost-%COMP%]{display:block;box-sizing:border-box;position:relative;z-index:10;box-shadow:2px 0 6px #00152959;width:256px;transition:all .2s;flex:0 0 auto}.collapsed[_nghost-%COMP%]{width:80px}.menu-sidebar[_ngcontent-%COMP%]{height:100%}.menu-sidebar[_ngcontent-%COMP%] .ant-layout-sider-children{display:flex;flex-direction:column;height:100%}.menu-sidebar[_ngcontent-%COMP%] .ant-menu-inline{border-right:none}.menu-sidebar[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{flex:0 0 auto}.menu-sidebar[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{flex:1 1 auto;height:0;display:flex;flex-direction:column}.menu-sidebar[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] ngm-menu[_ngcontent-%COMP%]{flex:1 1 auto;height:0}.menu-sidebar[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:12px;flex:0 0 auto}.menu-sidebar[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--app-primary-2)}.sidebar-logo[_ngcontent-%COMP%]{position:relative;height:64px;padding-left:24px;overflow:hidden;line-height:64px;transition:all .3s}.sidebar-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:inline-block;height:32px;width:32px;vertical-align:middle}.sidebar-logo[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{display:inline-block;margin:0 0 0 20px;font-weight:600;font-size:14px;font-family:Avenir,Helvetica Neue,Arial,Helvetica,sans-serif;vertical-align:middle}.item[_ngcontent-%COMP%] .ant-menu-title-content{display:flex;align-items:center;gap:8px}.item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--app-text-color);display:flex;width:100%;align-items:center;gap:8px}"]})};function ni(t,n){if(t&1){let e=v();r(0,"div",4),_("transitionend",function(i){u(e);let l=c();return f(l.onWrapTransitionEnd(i))}),r(1,"div",5),_("animationend",function(i){u(e);let l=c();return f(l.onInnerAnimationEnd(i))}),p(2,"ngm-header"),a()()}if(t&2){let e=c();j("leaving",e.leaving()),s(),j("leaving",e.leaving())}}var Xe=class t{ws=g(Ee);constructor(){this.ws.connect(),Y(()=>this.syncVisible())}wsState=mn(this.ws.stateChanges(),{initialValue:"idle"});shouldShow=N(()=>this.wsState()!=="open");visible=b(!1);leaving=b(!1);SHOW_DELAY_MS=200;showTimer;removed=!1;syncVisible(){if(this.shouldShow()){if(this.removed=!1,this.visible()){this.leaving.set(!1);return}this.startShowDelay();return}this.clearShowDelay(),this.visible()&&!this.leaving()&&this.leaving.set(!0)}startShowDelay(){this.showTimer||(this.showTimer=setTimeout(()=>{this.showTimer=void 0,this.shouldShow()&&(this.visible.set(!0),this.leaving.set(!1),this.removed=!1)},this.SHOW_DELAY_MS))}clearShowDelay(){this.showTimer&&(clearTimeout(this.showTimer),this.showTimer=void 0)}onInnerAnimationEnd(n){}onWrapTransitionEnd(n){n.propertyName==="height"&&(this.removed||!this.shouldShow()&&this.leaving()&&(this.removed=!0,this.visible.set(!1),this.leaving.set(!1)))}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=C({type:t,selectors:[["ngm-layout"]],decls:9,vars:1,consts:[[1,"app-layout"],[1,"ws-banner-wrap",3,"leaving"],[1,"app-content"],[1,"inner-content"],[1,"ws-banner-wrap",3,"transitionend"],[1,"ws-banner-inner",3,"animationend"]],template:function(e,o){e&1&&(r(0,"nz-layout",0),y(1,ni,3,4,"div",1),r(2,"nz-layout",2),p(3,"ngm-sidebar"),r(4,"nz-layout")(5,"nz-content")(6,"div",3),p(7,"router-outlet"),a()()()(),p(8,"ngm-footer"),a()),e&2&&(s(),z(o.visible()?1:-1))},dependencies:[k,sn,W,In,Dn,Yn,M,U,Ke,We,Ue],styles:["html.default[_ngcontent-%COMP%] [_ngcontent-%COMP%]:root{--app-gray: #e6f7ff;--app-primary: #1890ff;--app-primary-1: #e6f7ff;--app-primary-2: #bae7ff;--app-primary-3: #91d5ff;--app-primary-4: #69c0ff;--app-primary-5: #40a9ff;--app-primary-6: #1890ff;--app-text-color: rgba(0, 0, 0, .85);--app-text-secondary: rgba(0, 0, 0, .45);--text-color-primary: #1890ff;--app-component-bg: #fff;--app-border-color: #d9d9d9;--header-error-background: #ff4d4f}html.default[_ngcontent-%COMP%] [_ngcontent-%COMP%]:root{--text-color-gray: #888}html.default [_nghost-%COMP%] .inner-content[_ngcontent-%COMP%]{background:#fff}html.dark[_ngcontent-%COMP%] [_ngcontent-%COMP%]:root{--text-color-gray: #bbb}html.dark [_nghost-%COMP%] .inner-content[_ngcontent-%COMP%]{background:#141414}[_nghost-%COMP%]{display:flex;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}[_nghost-%COMP%] .app-layout[_ngcontent-%COMP%]{height:100vh;width:100%}[_nghost-%COMP%] .app-layout[_ngcontent-%COMP%] ngm-header[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .app-content[_ngcontent-%COMP%]{flex-direction:row}[_nghost-%COMP%] nz-content[_ngcontent-%COMP%] .inner-content[_ngcontent-%COMP%]{border-radius:8px;height:100%}[_nghost-%COMP%] nz-footer[_ngcontent-%COMP%]{text-align:center}.ws-banner-wrap[_ngcontent-%COMP%]{height:48px;overflow:hidden;transition:height .35s ease}.ws-banner-wrap.leaving[_ngcontent-%COMP%]{height:0}.ws-banner-inner[_ngcontent-%COMP%]{height:48px;display:flex;align-items:stretch}.ws-banner-inner.leaving[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_fadeOutUpSoft .35s ease forwards}@keyframes _ngcontent-%COMP%_fadeOutUpSoft{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-30%)}}"]})};var Zn=`
|
|
2
|
+
<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path d="M435.8 536.2H512V353z" fill="#DD0031"/>
|
|
4
|
+
<path d="M400.9 616.8l-52.4 130.8h-97.2L512 163V64L94.9 212.7l63.6 551.5L512 960V616.8z" fill="#DD0031"/>
|
|
5
|
+
<path d="M512 353v183.2h76.2z" fill="#C3002F"/>
|
|
6
|
+
<path d="M512 64v99l259.8 584.6h-97.2l-52.4-130.8H512V960l353.5-195.8 63.6-551.5z" fill="#C3002F"/>
|
|
7
|
+
</svg>
|
|
8
|
+
`,eo=`
|
|
9
|
+
<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg">
|
|
10
|
+
<path d="M615.6 123.6h165.5L512 589.7 242.9 123.6H63.5L512 900.4l448.5-776.9z" fill="#41B883"/>
|
|
11
|
+
<path d="M781.1 123.6H615.6L512 303 408.4 123.6H242.9L512 589.7z" fill="#34495E"/>
|
|
12
|
+
</svg>
|
|
13
|
+
`,to=`
|
|
14
|
+
<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg">
|
|
15
|
+
<svg t="1767603739899" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="9231" width="200" height="200">
|
|
16
|
+
<path d="M512 511.8m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z" fill="#61DAFB" p-id="9232"></path>
|
|
17
|
+
<path d="M960.5 511.8c0-62.8-73.8-117.2-188.5-150.1 28.9-115.8 18.7-206.9-35.7-238.3-54.5-31.4-138.5 5.3-224.3 88.2-85.8-82.9-169.8-119.6-224.3-88.2-54.4 31.4-64.6 122.6-35.7 238.3C137.3 394.6 63.5 449 63.5 511.8S137.3 629 252 661.9c-28.9 115.7-18.7 206.9 35.7 238.3 13.4 7.8 28.6 11.6 45.2 11.6 39.7 0 87.8-21.8 140-64.2 13-10.6 26.1-22.6 39.1-35.2 13 12.6 26.1 24.6 39.1 35.2 52.2 42.4 100.2 64.2 140 64.2 16.6 0 31.8-3.8 45.2-11.6 54.4-31.4 64.6-122.5 35.7-238.3 114.7-32.9 188.5-87.3 188.5-150.1zM716.8 157.2c35.3 20.4 42.7 94.3 17.6 194.8-36.7-8.4-76.7-14.7-119.3-18.6-24.7-34.9-50.2-66.4-75.8-94 59.2-57.3 114.2-88.4 152-88.4 9.6-0.1 18.2 2 25.5 6.2zM637 584c-13.8 24-28.4 47-43.3 69-26.1 2-53.3 3.1-81.7 3.1-28.3 0-55.5-1.1-81.6-3.1-15-22-29.5-45.1-43.3-69-14.1-24.5-26.7-48.6-38.1-72.2 11.4-23.6 24-47.7 38.1-72.2 14.1-24.5 28.7-47.4 43.4-69.1 26.1-2 53.3-3.1 81.6-3.1 28.3 0 55.5 1.1 81.6 3.1 14.7 21.6 29.3 44.6 43.4 69 14.1 24.5 26.7 48.6 38.1 72.2-11.5 23.7-24.1 47.8-38.2 72.3z m58.8-26.4c11.2 26.6 20.4 52.1 28 76.5-24.9 5.6-51.7 10.4-80.3 14 9.3-14.5 18.4-29.3 27.3-44.6 8.8-15.4 17.1-30.7 25-45.9zM512 756.5c-17.7-19.2-35.1-40.1-52.2-62.6 17.1 0.8 34.5 1.3 52.2 1.3 17.7 0 35.1-0.5 52.2-1.3-17.1 22.5-34.5 43.4-52.2 62.6zM380.5 648.1c-28.6-3.6-55.3-8.4-80.3-14 7.6-24.4 16.8-49.9 28-76.5 7.9 15.2 16.1 30.5 25 45.9 8.9 15.2 18 30 27.3 44.6zM328.2 466c-11.2-26.6-20.4-52.1-28-76.5 24.9-5.6 51.6-10.4 80.2-14-9.2 14.4-18.4 29.2-27.2 44.6-8.8 15.4-17.1 30.7-25 45.9zM512 267.1c17.3 18.7 34.8 39.8 52.1 62.7-17.1-0.8-34.4-1.3-52.1-1.3-17.7 0-35 0.5-52.1 1.3 17.3-22.9 34.8-44 52.1-62.7z m158.7 153c-8.9-15.3-18-30.1-27.2-44.6 28.6 3.6 55.3 8.4 80.2 14-7.6 24.4-16.8 49.9-28 76.5-7.8-15.2-16.1-30.5-25-45.9zM307.2 157.2c7.2-4.2 15.8-6.2 25.6-6.2 37.8 0 92.7 31.1 151.9 88.4-25.6 27.6-51.1 59.2-75.8 94-42.5 3.9-82.6 10.2-119.3 18.6-25.1-100.6-17.6-174.5 17.6-194.8zM102.5 511.8c0-40.8 60.3-84.2 160-112.6 11.1 36 25.6 73.8 43.5 112.6-17.8 38.8-32.4 76.6-43.5 112.6-99.7-28.4-160-71.9-160-112.6z m345.8 305.5c-59.7 48.5-111.1 66.4-141.1 49.2-35.3-20.4-42.7-94.3-17.6-194.8 36.7 8.4 76.7 14.7 119.3 18.6 24.4 34.5 49.9 66.1 75.8 94.2-12.1 11.7-24.2 22.9-36.4 32.8z m268.5 49.2c-29.9 17.3-81.4-0.6-141.1-49.2-12.1-9.9-24.3-21.1-36.5-32.8 26-28.1 51.4-59.7 75.8-94.2 42.5-3.9 82.6-10.2 119.3-18.7 25.2 100.6 17.7 174.5-17.5 194.9z m44.8-242.1c-11.1-36-25.6-73.8-43.5-112.6 17.8-38.8 32.4-76.6 43.5-112.6 99.7 28.5 160 71.9 160 112.6-0.1 40.7-60.4 84.2-160 112.6z" fill="#61DAFB" p-id="9233"></path></svg>
|
|
18
|
+
</svg>
|
|
19
|
+
`,no=`
|
|
20
|
+
<svg t="1767598826450" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8231" width="200" height="200">
|
|
21
|
+
<path d="M875.2 262.3L546.7 72.7c-20.7-11.8-48.3-11.8-69 0L148.8 262.3c-21.5 12.2-34.5 34.9-34.5 59.7v379.2c0 24.8 13.4 47.9 34.5 60.1l86.1 49.5c41.8 20.7 56.8 20.7 75.9 20.7 62.1 0 97.4-37.8 97.4-102.7V354.4c0-5.3-4.1-9.3-9.3-9.3h-41.4c-5.3 0-9.3 4.1-9.3 9.3v374.3c0 28.8-30 57.7-78.8 33.3l-90.1-52c-3.2-2-5.3-5.3-5.3-8.9V321.9c0-3.7 2-7.3 5.3-8.9l328.1-190c3.2-1.6 7.3-1.6 10.2 0l328.5 189.6c3.2 1.6 5.3 5.3 5.3 8.9v379.2c0 3.7-2 7.3-4.9 8.9L517.9 899.3c-2.8 1.6-7.3 1.6-10.2 0l-84.4-49.9c-2.4-1.2-5.7-1.6-8.1-0.4-23.1 13.4-27.6 15-49.5 22.7-5.7 1.6-13.4 4.9 2.8 14.2l109.6 65c10.6 6.1 22.3 9.3 34.5 9.3 11.8-0.4 24-3.2 34.1-9.7l328.5-189.6c21.1-12.2 34.5-34.9 34.5-59.7V321.9c0-24.3-13.4-47.5-34.5-59.6z" fill="#689F63" p-id="8232"></path>
|
|
22
|
+
<path d="M614.1 641.1c-86.9 0-106-21.9-112.5-65-0.8-4.9-4.5-8.1-9.3-8.1h-42.6c-5.3 0-9.3 4.1-9.3 9.3 0 55.2 30 121.4 173.8 121.4l-0.4-0.4c103.9 0 163.6-41 163.6-112.5 0-70.6-47.9-89.7-149-103.1-101.9-13.4-112.5-20.3-112.5-44.3 0-19.5 8.9-45.9 84.4-45.9 67.8 0 92.6 14.6 102.7 60.1 1.2 4.1 4.9 7.3 9.3 7.3H755c2.4 0 5.3-0.8 6.9-2.8 1.6-2 2.8-4.5 2.4-7.3-6.9-78.4-58.9-114.9-164-114.9-93.4 0-149.4 39.4-149.4 105.6 0 71.9 55.6 91.8 145.8 100.7 107.6 10.6 116.1 26.4 116.1 47.5 0 36.5-29.3 52.4-98.7 52.4z" fill="#689F63" p-id="8233"></path>
|
|
23
|
+
</svg>
|
|
24
|
+
`,oo=`
|
|
25
|
+
<svg t="1768726164973" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4725" width="200" height="200">
|
|
26
|
+
<path d="M332.72493 412.535453l171.001167-98.72725a13.830826 13.830826 0 0 1 13.83424 0l171.007994 98.72725a13.841066 13.841066 0 0 1 6.915413 11.9808v197.4545a13.858133 13.858133 0 0 1-6.918826 11.980799l-171.004581 98.72725a13.830826 13.830826 0 0 1-13.83424 0l-171.001167-98.72725a13.841066 13.841066 0 0 1-6.915413-11.980799V424.516253a13.847893 13.847893 0 0 1 6.915413-11.9808" fill="#7986CB" p-id="4726"></path>
|
|
27
|
+
<path d="M955.265709 502.476783L750.950409 147.036155c-7.420586-12.8512-21.128533-22.330026-35.969705-22.330026H306.329624c-14.844586 0-28.555946 9.478826-35.976532 22.330026L66.037792 501.701957c-7.420586 12.854613-7.420586 29.081599 0 41.932798L270.353092 896.170637c7.420586 12.8512 21.131946 19.421866 35.976532 19.421866h408.65108c14.83776 0 28.552532-6.372693 35.969705-19.227306l204.3153-353.109322c7.427413-12.847786 7.427413-27.921066 0-40.768852m-169.181861 170.922661c0 5.2224-3.14368 10.059093-7.676586 12.673706l-260.249592 150.152529a14.80704 14.80704 0 0 1-14.725119 0l-260.450978-150.152529c-4.52608-2.614613-7.693653-7.44448-7.693653-12.673706v-300.30847c0-5.229226 3.119787-10.059093 7.649279-12.677119l260.242765-150.152529a14.779733 14.779733 0 0 1 14.71488 0l260.471458 150.152529c4.529493 2.618027 7.717546 7.447893 7.717546 12.677119z" fill="#3F51B5" p-id="4727"></path>
|
|
28
|
+
</svg>
|
|
29
|
+
`,io=`
|
|
30
|
+
<svg t="1772087297160" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="12394" data-spm-anchor-id="a313x.search_index.0.i16.3dc23a81kNbNJb" width="48" height="48">
|
|
31
|
+
<path d="M0 512c0 282.848 229.312 512 512 512 282.848 0 512-229.312 512-512 0-282.848-229.312-512-512-512C229.152 0 0 229.152 0 512z" fill="#333333" p-id="12395" data-spm-anchor-id="a313x.search_index.0.i13.3dc23a81kNbNJb" class="selected"></path>
|
|
32
|
+
<path d="M948.48 449.824c-34.912 45.408-101.056 22.272-131.456 40.032-44.288 26.016-42.88 89.152-151.264 173.952-26.336 20.64 27.968 128.768 4.48 152.928-23.872 24.544-119.84 25.792-143.104 12.384-34.08-19.808-7.36-71.2 0.192-146.304-70.016 7.232-92.672 5.984-162.912 3.104 10.816 56.96 26.336 120.512 3.68 141.376-18.592 16.928-108.608 18.784-136.768 0.192-35.328-23.328 25.504-156 4.896-158.272-23.68-2.464-168.416 3.296-142.88-155.808 27.136 40.032 73.28 77.792 126.368 60.864 3.072-58.208 20-113.92 48.384-158.496 37.568-58.624 95.328-97.824 168.416-97.824 72.256 0 132.48 31.776 171.872 81.728 30.816 39.2 48.8 89.984 48.992 145.088 76.352-58.208 20.224-200.8 111.648-254.24 65.12-37.984 141.248-18.368 177.6 41.888 19.392 31.584 25.312 87.072 1.824 117.408z" fill="#ffffff" p-id="12396" data-spm-anchor-id="a313x.search_index.0.i14.3dc23a81kNbNJb" class=""></path>
|
|
33
|
+
</svg>
|
|
34
|
+
`,ro=`
|
|
35
|
+
<svg t="1778296336918" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5567" width="200" height="200">
|
|
36
|
+
<path d="M94.208 94.208v835.584h835.584V94.208H94.208z m634.92096 405.85216v0.012288c8.011776 0.024576 17.119232 0.436224 23.967744 1.179648 27.891712 3.016704 49.6128 15.050752 68.091904 37.715968 9.201664 11.290624 12.34944 16.2304 11.679744 18.343936-0.432128 1.363968-6.746112 5.885952-26.820608 19.21024-19.720192 13.092864-26.07104 17.014784-27.5456 17.014784-1.497088 0-4.614144-3.207168-9.105408-9.365504-8.6528-11.855872-17.485824-17.266688-31.13984-19.070976-14.68416-1.9456-27.856896 2.68288-34.308096 12.058624-5.515264 8.011776-6.3488 20.901888-1.96608 30.26944 5.07904 10.848256 14.270464 16.846848 49.494016 32.290816 40.624128 17.813504 61.210624 30.005248 76.204032 45.13792 16.146432 16.293888 24.326144 35.106816 26.83904 61.718528 1.226752 12.972032-0.272384 28.34432-3.98336 40.843264-9.10336 30.640128-33.66912 53.075968-69.67296 63.635456-9.95328 2.9184-19.214336 4.661248-28.37504 5.332992-13.985792 1.030144-34.002944 0.462848-46.051328-1.29024-30.482432-4.442112-64.892928-22.17984-82.051072-42.2912-8.423424-9.873408-19.177472-26.12224-19.177472-28.9792 0-1.380352 0.684032-2.164736 3.391488-3.885056 8.032256-5.103616 54.054912-31.412224 54.94784-31.412224 0.540672 0 2.945024 2.832384 5.341184 6.295552 5.429248 7.839744 18.78016 21.313536 25.567232 25.808896 5.543936 3.672064 12.634112 6.619136 21.051392 8.747008 4.820992 1.202176 7.3728 1.417216 17.891328 1.417216 10.747904-0.004096 12.951552-0.18432 17.760256-1.476608 12.71808-3.422208 22.644736-10.50624 26.851328-19.156992 1.8432-3.7376 1.880064-4.204544 1.880064-13.27104v-9.40032l-2.260992-4.48512c-5.474304-10.866688-17.270784-18.323456-54.56896-34.47808-17.13152-7.421952-38.11328-17.885184-46.30528-23.0912-18.696192-11.880448-31.653888-25.462784-40.157184-42.088448-8.45824-16.533504-9.71776-22.687744-9.73824-47.548416-0.02048-19.462144-0.053248-19.222528 3.975168-31.643648 3.65568-11.272192 11.139072-23.863296 19.400704-32.64512 16.4864-17.524736 40.577024-28.788736 66.367488-31.029248 3.29728-0.313344 7.716864-0.434176 12.52352-0.41984z m-221.92128 3.844096h0.008192c49.670144 0.024576 78.143488 0.196608 78.600192 0.483328 0.86016 0.53248 0.968704 4.855808 0.968704 32.444416v31.827968l-49.563648 0.180224-49.563648 0.180224v140.724224c0 77.400064-0.157696 141.185024-0.372736 141.748224-0.350208 0.948224-4.163584 1.019904-36.41344 1.019904h-36.018176l-0.372736-1.45408c-0.239616-0.79872-0.415744-64.587776-0.41984-141.750272l-0.012288-140.296192-49.5616-0.176128-49.565696-0.180224v-31.451136c0-24.94464 0.172032-31.625216 0.837632-32.288768 0.681984-0.702464 25.976832-0.882688 134.967296-0.991232 21.01248-0.02048 39.92576-0.03072 56.48384-0.02048z" fill="#0288D1" p-id="5568"></path>
|
|
37
|
+
</svg>
|
|
38
|
+
`;var Ze=class t{constructor(n){this.icons=n}inited=!1;init(){this.inited||(this.inited=!0,this.icons.addIconLiteral("proj:angular",Zn),this.icons.addIconLiteral("proj:vue",eo),this.icons.addIconLiteral("proj:react",to),this.icons.addIconLiteral("proj:node",no),this.icons.addIconLiteral("proj:eslint",oo),this.icons.addIconLiteral("proj:svn",io),this.icons.addIconLiteral("proj:ts",ro))}static \u0275fac=function(e){return new(e||t)(me(un))};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})};var et=class t{constructor(n){n.init()}static \u0275fac=function(e){return new(e||t)(It(Ze))};static \u0275cmp=C({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(e,o){e&1&&p(0,"ngm-layout")},dependencies:[Xe],styles:["[_nghost-%COMP%]{display:block;height:100vh}"]})};nn(et,Wn).catch(t=>console.error(t));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as b,Ca as Fe,D as Ee,Ea as Pe,Fa as Ve,G as Ie,Ga as je,H as q,Ha as We,L as P,W as G,a as Te,ab as $e,hb as Be,l as Ne,qb as Qe,r as U,ra as Ae,s as ke,ta as D,u as F,v as Me,y as Se}from"./chunk-VZYJ3MSW.js";import{i as Re}from"./chunk-KRYMOHYF.js";import{Ac as S,Ba as N,Bb as ze,Ca as me,Da as pe,Fb as Ce,Fc as E,Gb as _e,Gc as K,Hb as ge,Hc as L,Ic as xe,Jb as ye,Jc as I,Kc as A,Lb as C,Na as fe,Oa as he,Vc as be,Wb as m,Yb as p,bc as f,c as se,cc as h,dc as u,dd as De,ec as ve,f as j,fa as W,ic as O,jc as x,kc as we,l as T,lc as X,na as le,nb as o,oa as ce,qa as de,r as w,rc as Y,s as z,sa as l,sb as k,uc as r,ud as H,wb as Q,xc as Oe,ya as $,yb as ue,yc as Z,yd as g,za as B,zc as M}from"./chunk-4BRW6LCZ.js";var Ke=["drawerTemplate"];function Le(t,a){if(t&1){let e=X();h(0,"div",9),Y("click",function(){$(e);let _=r(2);return B(_.maskClick())}),u()}if(t&2){let e=r(2);L(e.nzMaskStyle),f("@drawerMaskMotion",void 0)}}function He(t,a){if(t&1&&(O(0),ve(1,"nz-icon",17),x()),t&2){let e=a.$implicit;o(),f("nzType",e)}}function Ue(t,a){if(t&1){let e=X();h(0,"button",15),Y("click",function(){$(e);let _=r(3);return B(_.closeClick())}),C(1,He,2,1,"ng-container",16),u()}if(t&2){let e=r(3);o(),f("nzStringTemplateOutlet",e.nzCloseIcon)}}function qe(t,a){if(t&1&&(O(0),I(1),x()),t&2){let e=r(4);o(),A(e.nzTitle)}}function Ge(t,a){if(t&1&&(h(0,"div",13),C(1,qe,2,1,"ng-container",16),u()),t&2){let e=r(3);o(),f("nzStringTemplateOutlet",e.nzTitle)}}function Je(t,a){if(t&1&&(O(0),I(1),x()),t&2){let e=r(4);o(),A(e.nzExtra)}}function et(t,a){if(t&1&&(h(0,"div",14),C(1,Je,2,1,"ng-container",16),u()),t&2){let e=r(3);o(),f("nzStringTemplateOutlet",e.nzExtra)}}function tt(t,a){if(t&1&&(h(0,"div",10)(1,"div",11),m(2,Ue,2,1,"button",12),m(3,Ge,2,1,"div",13),u(),m(4,et,2,1,"div",14),u()),t&2){let e=r(2);K("ant-drawer-header-close-only",!e.nzTitle),o(2),p(e.nzClosable?2:-1),o(),p(e.nzTitle?3:-1),o(),p(e.nzExtra?4:-1)}}function nt(t,a){}function it(t,a){t&1&&we(0)}function at(t,a){if(t&1&&C(0,it,1,0,"ng-container",18),t&2){let e=r(3);f("ngTemplateOutlet",e.nzContent)("ngTemplateOutletContext",e.templateContext)}}function ot(t,a){if(t&1&&m(0,at,1,2,"ng-container"),t&2){let e=r(2);p(e.isTemplateRef(e.nzContent)?0:-1)}}function rt(t,a){}function st(t,a){if(t&1&&C(0,rt,0,0,"ng-template",19),t&2){let e=r(3);f("ngTemplateOutlet",e.contentFromContentChild)}}function lt(t,a){if(t&1&&m(0,st,1,1,null,19),t&2){let e=r(2);p(e.contentFromContentChild&&(e.isOpen||e.inAnimation)?0:-1)}}function ct(t,a){if(t&1&&(O(0),I(1),x()),t&2){let e=r(3);o(),A(e.nzFooter)}}function dt(t,a){if(t&1&&(h(0,"div",8),C(1,ct,2,1,"ng-container",16),u()),t&2){let e=r(2);o(),f("nzStringTemplateOutlet",e.nzFooter)}}function mt(t,a){if(t&1&&(h(0,"div",1),m(1,Le,1,3,"div",2),h(2,"div")(3,"div",3)(4,"div",4),m(5,tt,5,5,"div",5),h(6,"div",6),C(7,nt,0,0,"ng-template",7),m(8,ot,1,1)(9,lt,1,1),u(),m(10,dt,2,1,"div",8),u()()()()),t&2){let e=r();E("transform",e.offsetTransform)("transition",e.placementChanging?"none":null)("z-index",e.nzZIndex),K("ant-drawer-rtl",e.dir==="rtl")("ant-drawer-open",e.isOpen)("no-mask",!e.nzMask)("ant-drawer-top",e.nzPlacement==="top")("ant-drawer-bottom",e.nzPlacement==="bottom")("ant-drawer-right",e.nzPlacement==="right")("ant-drawer-left",e.nzPlacement==="left"),f("nzNoAnimation",e.nzNoAnimation),o(),p(e.nzMask&&e.isOpen?1:-1),o(),xe(be("ant-drawer-content-wrapper ",e.nzWrapClassName)),E("width",e.width)("height",e.height)("transform",e.transform)("transition",e.placementChanging?"none":null),o(2),E("height",e.isLeftOrRight?"100%":null),o(),p(e.nzTitle||e.nzClosable?5:-1),o(),L(e.nzBodyStyle),o(2),p(e.nzContent?8:9),o(2),p(e.nzFooter?10:-1)}}var pt=(()=>{class t{templateRef=l(Q);static \u0275fac=function(c){return new(c||t)};static \u0275dir=ge({type:t,selectors:[["","nzDrawerContent",""]],exportAs:["nzDrawerContent"]})}return t})(),Xe=378,Ye=736,ft=new de(""),V=class{},ht=300,ut="drawer",Ze=(()=>{var d;let t=V,a,e=[],c=[],_,v=[],R=[],ee,te=[],ne=[],ie,ae=[],oe=[];return d=class extends t{cdr=l(H);nzConfigService=l(Ae);renderer=l(ue);injector=l(N);changeDetectorRef=l(H);focusTrapFactory=l($e);viewContainerRef=l(ze);overlayKeyboardDispatcher=l(Ee);directionality=l(Te);destroyRef=l(pe);_nzModuleName=ut;nzContent;nzCloseIcon="close";nzClosable=!0;nzMaskClosable=z(this,e,!0);nzMask=(z(this,c),z(this,v,!0));nzCloseOnNavigation=(z(this,R),z(this,te,!0));nzNoAnimation=(z(this,ne),!1);nzKeyboard=!0;nzTitle;nzExtra;nzFooter;nzPlacement="right";nzSize="default";nzMaskStyle={};nzBodyStyle={};nzWrapClassName;nzWidth;nzHeight;nzZIndex=1e3;nzOffsetX=0;nzOffsetY=0;componentInstance=null;componentRef=null;set nzVisible(i){this.isOpen=i}get nzVisible(){return this.isOpen}nzOnViewInit=new k;nzOnClose=new k;nzVisibleChange=new k;drawerTemplate;bodyPortalOutlet;contentFromContentChild;previouslyFocusedElement;placementChanging=!1;placementChangeTimeoutId;nzContentParams;nzData;overlayRef;portal;focusTrap;isOpen=!1;inAnimation=!1;templateContext={$implicit:void 0,drawerRef:this};isTemplateRef=G;get offsetTransform(){if(!this.isOpen||this.nzOffsetX+this.nzOffsetY===0)return null;switch(this.nzPlacement){case"left":return`translateX(${this.nzOffsetX}px)`;case"right":return`translateX(-${this.nzOffsetX}px)`;case"top":return`translateY(${this.nzOffsetY}px)`;case"bottom":return`translateY(-${this.nzOffsetY}px)`}}get transform(){if(this.isOpen)return null;switch(this.nzPlacement){case"left":return"translateX(-100%)";case"right":return"translateX(100%)";case"top":return"translateY(-100%)";case"bottom":return"translateY(100%)"}}get width(){if(this.isLeftOrRight){let i=this.nzSize==="large"?Ye:Xe;return this.nzWidth===void 0?b(i):b(this.nzWidth)}return null}get height(){if(!this.isLeftOrRight){let i=this.nzSize==="large"?Ye:Xe;return this.nzHeight===void 0?b(i):b(this.nzHeight)}return null}get isLeftOrRight(){return this.nzPlacement==="left"||this.nzPlacement==="right"}nzAfterOpen=new T;nzAfterClose=new T;get afterOpen(){return this.nzAfterOpen.asObservable()}get afterClose(){return this.nzAfterClose.asObservable()}get isNzContentTemplateRef(){return G(this.nzContent)}nzDirection=z(this,ae,void 0);dir=(z(this,oe),"ltr");document=l(me);constructor(){super(),this.destroyRef.onDestroy(()=>{clearTimeout(this.placementChangeTimeoutId),this.disposeOverlay()})}ngOnInit(){this.directionality.change?.pipe(P(this.destroyRef)).subscribe(i=>{this.dir=i,this.cdr.detectChanges()}),this.dir=this.nzDirection||this.directionality.value,this.attachOverlay(),this.updateOverlayStyle(),this.updateBodyOverflow(),this.templateContext={$implicit:this.nzData||this.nzContentParams,drawerRef:this},this.changeDetectorRef.detectChanges()}ngAfterViewInit(){this.attachBodyContent(),this.nzOnViewInit.observers.length&&setTimeout(()=>{this.nzOnViewInit.emit()})}ngOnChanges(i){let{nzPlacement:n,nzVisible:s}=i;s&&(i.nzVisible.currentValue?this.open():this.close()),n&&!n.isFirstChange()&&this.triggerPlacementChangeCycleOnce()}getAnimationDuration(){return this.nzNoAnimation?0:ht}triggerPlacementChangeCycleOnce(){this.nzNoAnimation||(this.placementChanging=!0,this.changeDetectorRef.markForCheck(),clearTimeout(this.placementChangeTimeoutId),this.placementChangeTimeoutId=setTimeout(()=>{this.placementChanging=!1,this.changeDetectorRef.markForCheck()},this.getAnimationDuration()))}close(i){this.isOpen=!1,this.inAnimation=!0,this.nzVisibleChange.emit(!1),this.updateOverlayStyle(),this.overlayKeyboardDispatcher.remove(this.overlayRef),this.changeDetectorRef.detectChanges(),setTimeout(()=>{this.updateBodyOverflow(),this.restoreFocus(),this.inAnimation=!1,this.nzAfterClose.next(i),this.nzAfterClose.complete(),this.componentInstance=null,this.componentRef=null},this.getAnimationDuration())}open(){this.attachOverlay(),this.isOpen=!0,this.inAnimation=!0,this.nzVisibleChange.emit(!0),this.overlayKeyboardDispatcher.add(this.overlayRef),this.updateOverlayStyle(),this.updateBodyOverflow(),this.savePreviouslyFocusedElement(),this.trapFocus(),this.changeDetectorRef.detectChanges(),setTimeout(()=>{this.inAnimation=!1,this.changeDetectorRef.detectChanges(),this.nzAfterOpen.next()},this.getAnimationDuration())}getContentComponent(){return this.componentInstance}getContentComponentRef(){return this.componentRef}closeClick(){this.nzOnClose.emit()}maskClick(){this.nzMaskClosable&&this.nzMask&&this.nzOnClose.emit()}attachBodyContent(){if(this.bodyPortalOutlet.dispose(),this.nzContent instanceof fe){let i=N.create({parent:this.injector,providers:[{provide:V,useValue:this},{provide:ft,useValue:this.nzData}]}),n=new U(this.nzContent,null,i);this.componentRef=this.bodyPortalOutlet.attachComponentPortal(n),this.componentInstance=this.componentRef.instance,Object.assign(this.componentRef.instance,this.nzData||this.nzContentParams),this.componentRef.changeDetectorRef.detectChanges()}}attachOverlay(){this.overlayRef||(this.portal=new ke(this.drawerTemplate,this.viewContainerRef),this.overlayRef=q(this.injector,{disposeOnNavigation:this.nzCloseOnNavigation,positionStrategy:Ie(this.injector),scrollStrategy:Se(this.injector)}),Fe(this.overlayRef,this.nzZIndex)),this.overlayRef&&!this.overlayRef.hasAttached()&&(this.overlayRef.attach(this.portal),this.overlayRef.keydownEvents().pipe(P(this.destroyRef)).subscribe(i=>{i.keyCode===27&&this.isOpen&&this.nzKeyboard&&this.nzOnClose.emit()}),this.overlayRef.detachments().pipe(P(this.destroyRef)).subscribe(()=>{this.close(),this.disposeOverlay()}))}disposeOverlay(){this.overlayRef?.dispose(),this.overlayRef=null}updateOverlayStyle(){this.overlayRef&&this.overlayRef.overlayElement&&this.renderer.setStyle(this.overlayRef.overlayElement,"pointer-events",this.isOpen?"auto":"none")}updateBodyOverflow(){this.overlayRef&&(this.isOpen?this.overlayRef.getConfig().scrollStrategy.enable():this.overlayRef.getConfig().scrollStrategy.disable())}savePreviouslyFocusedElement(){this.document&&!this.previouslyFocusedElement&&(this.previouslyFocusedElement=this.document.activeElement,this.previouslyFocusedElement&&typeof this.previouslyFocusedElement.blur=="function"&&this.previouslyFocusedElement.blur())}trapFocus(){!this.focusTrap&&this.overlayRef&&this.overlayRef.overlayElement&&(this.focusTrap=this.focusTrapFactory.create(this.overlayRef.overlayElement),this.focusTrap.focusInitialElement())}restoreFocus(){this.previouslyFocusedElement&&typeof this.previouslyFocusedElement.focus=="function"&&(this.previouslyFocusedElement.focus(),this.previouslyFocusedElement=void 0),this.focusTrap&&this.focusTrap.destroy()}},(()=>{let i=typeof Symbol=="function"&&Symbol.metadata?Object.create(t[Symbol.metadata]??null):void 0;a=[D()],_=[D()],ee=[D()],ie=[D()],w(null,null,a,{kind:"field",name:"nzMaskClosable",static:!1,private:!1,access:{has:n=>"nzMaskClosable"in n,get:n=>n.nzMaskClosable,set:(n,s)=>{n.nzMaskClosable=s}},metadata:i},e,c),w(null,null,_,{kind:"field",name:"nzMask",static:!1,private:!1,access:{has:n=>"nzMask"in n,get:n=>n.nzMask,set:(n,s)=>{n.nzMask=s}},metadata:i},v,R),w(null,null,ee,{kind:"field",name:"nzCloseOnNavigation",static:!1,private:!1,access:{has:n=>"nzCloseOnNavigation"in n,get:n=>n.nzCloseOnNavigation,set:(n,s)=>{n.nzCloseOnNavigation=s}},metadata:i},te,ne),w(null,null,ie,{kind:"field",name:"nzDirection",static:!1,private:!1,access:{has:n=>"nzDirection"in n,get:n=>n.nzDirection,set:(n,s)=>{n.nzDirection=s}},metadata:i},ae,oe),i&&Object.defineProperty(d,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i})})(),j(d,"\u0275fac",function(n){return new(n||d)}),j(d,"\u0275cmp",Ce({type:d,selectors:[["nz-drawer"]],contentQueries:function(n,s,y){if(n&1&&Oe(y,pt,7,Q),n&2){let re;M(re=S())&&(s.contentFromContentChild=re.first)}},viewQuery:function(n,s){if(n&1&&(Z(Ke,7),Z(F,5)),n&2){let y;M(y=S())&&(s.drawerTemplate=y.first),M(y=S())&&(s.bodyPortalOutlet=y.first)}},inputs:{nzContent:"nzContent",nzCloseIcon:"nzCloseIcon",nzClosable:[2,"nzClosable","nzClosable",g],nzMaskClosable:[2,"nzMaskClosable","nzMaskClosable",g],nzMask:[2,"nzMask","nzMask",g],nzCloseOnNavigation:[2,"nzCloseOnNavigation","nzCloseOnNavigation",g],nzNoAnimation:[2,"nzNoAnimation","nzNoAnimation",g],nzKeyboard:[2,"nzKeyboard","nzKeyboard",g],nzTitle:"nzTitle",nzExtra:"nzExtra",nzFooter:"nzFooter",nzPlacement:"nzPlacement",nzSize:"nzSize",nzMaskStyle:"nzMaskStyle",nzBodyStyle:"nzBodyStyle",nzWrapClassName:"nzWrapClassName",nzWidth:"nzWidth",nzHeight:"nzHeight",nzZIndex:"nzZIndex",nzOffsetX:"nzOffsetX",nzOffsetY:"nzOffsetY",nzVisible:[2,"nzVisible","nzVisible",g]},outputs:{nzOnViewInit:"nzOnViewInit",nzOnClose:"nzOnClose",nzVisibleChange:"nzVisibleChange"},exportAs:["nzDrawer"],features:[ye,he],decls:2,vars:0,consts:[["drawerTemplate",""],[1,"ant-drawer",3,"nzNoAnimation"],[1,"ant-drawer-mask",3,"style"],[1,"ant-drawer-content"],[1,"ant-drawer-wrapper-body"],[1,"ant-drawer-header",3,"ant-drawer-header-close-only"],["cdkScrollable","",1,"ant-drawer-body"],["cdkPortalOutlet",""],[1,"ant-drawer-footer"],[1,"ant-drawer-mask",3,"click"],[1,"ant-drawer-header"],[1,"ant-drawer-header-title"],["aria-label","Close",1,"ant-drawer-close"],[1,"ant-drawer-title"],[1,"ant-drawer-extra"],["aria-label","Close",1,"ant-drawer-close",3,"click"],[4,"nzStringTemplateOutlet"],[3,"nzType"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngTemplateOutlet"]],template:function(n,s){n&1&&C(0,mt,11,40,"ng-template",null,0,De)},dependencies:[Qe,We,je,Ve,Pe,Me,F,Re,Ne],encapsulation:2,data:{animation:[Be]},changeDetection:0})),d})(),J=class{overlayRef;options;drawerRef;unsubscribe$=new T;constructor(a,e){this.overlayRef=a,this.options=e;let v=this.options,{nzOnCancel:c}=v,_=se(v,["nzOnCancel"]);this.drawerRef=this.overlayRef.attach(new U(Ze)).instance,this.updateOptions(_),this.drawerRef.savePreviouslyFocusedElement(),this.drawerRef.nzOnViewInit.pipe(W(this.unsubscribe$)).subscribe(()=>{this.drawerRef.open()}),this.drawerRef.nzOnClose.subscribe(()=>{c?c().then(R=>{R!==!1&&this.drawerRef.close()}):this.drawerRef.close()}),this.drawerRef.afterClose.pipe(W(this.unsubscribe$)).subscribe(()=>{this.overlayRef.dispose(),this.drawerRef=null,this.unsubscribe$.next(),this.unsubscribe$.complete()})}getInstance(){return this.drawerRef}updateOptions(a){Object.assign(this.drawerRef,a)}},zt=(()=>{class t{injector=l(N);create(e){return new J(q(this.injector),e).getInstance()}static \u0275fac=function(c){return new(c||t)};static \u0275prov=le({token:t,factory:t.\u0275fac})}return t})(),Lt=(()=>{class t{static \u0275fac=function(c){return new(c||t)};static \u0275mod=_e({type:t});static \u0275inj=ce({providers:[zt],imports:[Ze]})}return t})();export{pt as a,Ze as b,Lt as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as kt}from"./chunk-TXAXE73U.js";import{Ea as Nt,Eb as xt,Fa as At,Ga as B,Ha as $,Hb as Lt,Jb as Mt,L as C,Mb as Et,Ob as Ot,Ua as Dt,Va as It,W as vt,Wa as St,X as Ft,a as _t,dc as Rt,jb as yt,ta as D,xb as Q}from"./chunk-VZYJ3MSW.js";import{i as bt}from"./chunk-KRYMOHYF.js";import{Ac as ut,B as tt,Da as w,Ec as H,Fb as y,Gb as at,Gc as A,Hb as rt,Ic as mt,Jc as E,Kc as O,Lb as g,M as T,Oa as V,Ub as lt,Wb as v,Xa as ot,Xc as dt,Yb as F,Zc as P,_c as zt,a as W,ad as ft,bc as z,bd as ht,cc as b,da as et,dc as _,dd as Ct,ec as st,f as q,g as K,ha as nt,ic as k,id as Tt,jc as x,kc as j,l as X,nb as l,oa as it,od as gt,r as N,s as d,sa as s,uc as u,ud as R,vc as L,wc as M,xc as pt,yd as f,zc as ct}from"./chunk-4BRW6LCZ.js";var G=["*"],wt=e=>[e],Vt=e=>({$implicit:e});function jt(e,a){if(e&1&&(k(0),E(1),x()),e&2){let t=u(2);l(),O(t.innerTip)}}function Ht(e,a){if(e&1&&(b(0,"div",2)(1,"div",4),g(2,jt,2,1,"ng-container",5),_()()),e&2){let t=u();z("@helpMotion",void 0)("@.disabled",t.animationType==="NoopAnimations"),l(),mt(P(6,wt,"ant-form-item-explain-"+t.status)),l(),z("nzStringTemplateOutlet",t.innerTip)("nzStringTemplateOutletContext",P(8,Vt,t.validateControl))}}function Pt(e,a){if(e&1&&(k(0),E(1),x()),e&2){let t=u(2);l(),O(t.nzExtra)}}function Bt(e,a){if(e&1&&(b(0,"div",3),g(1,Pt,2,1,"ng-container",6),_()),e&2){let t=u();l(),z("nzStringTemplateOutlet",t.nzExtra)}}var $t=(e,a)=>({required:e,$implicit:a});function Qt(e,a){if(e&1&&(k(0),st(1,"nz-icon",4),x()),e&2){let t=a.$implicit,n=u(3);l(),z("nzType",t)("nzTheme",n.tooltipIcon.theme)}}function Gt(e,a){if(e&1&&(b(0,"span",1),g(1,Qt,2,2,"ng-container",3),_()),e&2){let t=u(2);z("nzTooltipTitle",t.nzTooltipTitle),l(),z("nzStringTemplateOutlet",t.tooltipIcon.type)}}function Ut(e,a){e&1&&(b(0,"span",2),E(1),ft(2,"nzI18n"),_()),e&2&&(l(),O(ht(2,1,"Form.optional")))}function Yt(e,a){if(e&1&&(M(0),v(1,Gt,2,2,"span",1),v(2,Ut,3,3,"span",2)),e&2){let t=u();l(),F(t.nzTooltipTitle?1:-1),l(),F((t.nzRequiredMark==null?null:t.nzRequiredMark())==="optional"&&!t.nzRequired?2:-1)}}function Zt(e,a){e&1&&j(0)}function Jt(e,a){if(e&1&&g(0,Zt,1,0,"ng-container",5),e&2){let t=u(),n=H(2);z("ngTemplateOutlet",t.nzRequiredMark())("ngTemplateOutletContext",zt(2,$t,t.nzRequired,n))}}function Kt(e,a){e&1&&j(0)}function Xt(e,a){if(e&1&&g(0,Kt,1,0,"ng-container",6),e&2){u();let t=H(2);z("ngTemplateOutlet",t)}}var te=(()=>{class e{cdr=s(R);status="";hasFeedback=!1;withHelpClass=!1;setWithHelpViaTips(t){this.withHelpClass=t,this.cdr.markForCheck()}setStatus(t){this.status=t,this.cdr.markForCheck()}setHasFeedback(t){this.hasFeedback=t,this.cdr.markForCheck()}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=y({type:e,selectors:[["nz-form-item"]],hostAttrs:[1,"ant-form-item"],hostVars:12,hostBindings:function(n,i){n&2&&A("ant-form-item-has-success",i.status==="success")("ant-form-item-has-warning",i.status==="warning")("ant-form-item-has-error",i.status==="error")("ant-form-item-is-validating",i.status==="validating")("ant-form-item-has-feedback",i.hasFeedback&&i.status)("ant-form-item-with-help",i.withHelpClass)},exportAs:["nzFormItem"],ngContentSelectors:G,decls:1,vars:0,template:function(n,i){n&1&&(L(),M(0))},encapsulation:2,changeDetection:0})}return e})(),ee="form",U={type:"question-circle",theme:"outline"},qt=(()=>{var c;let e,a=[],t=[],n,i=[],h=[],m,I=[],S=[],Y,Z=[],J=[];return c=class{destroyRef=s(w);directionality=s(_t);_nzModuleName=ee;nzLayout="horizontal";nzNoColon=d(this,a,!1);nzAutoTips=(d(this,t),d(this,i,{}));nzDisableAutoTips=(d(this,h),!1);nzTooltipIcon=d(this,I,U);nzLabelAlign=(d(this,S),"right");nzLabelWrap=d(this,Z,!1);nzRequiredMark=(d(this,J),gt(!0));dir="ltr";inputChanges$=new X;getInputObservable(r){return this.inputChanges$.pipe(T(o=>r in o),tt(o=>o[r]))}constructor(){this.dir=this.directionality.value,this.directionality.change?.pipe(C()).subscribe(r=>{this.dir=r}),this.destroyRef.onDestroy(()=>{this.inputChanges$.complete()})}ngOnChanges(r){this.inputChanges$.next(r)}},(()=>{let r=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;e=[D()],n=[D()],m=[D()],Y=[D()],N(null,null,e,{kind:"field",name:"nzNoColon",static:!1,private:!1,access:{has:o=>"nzNoColon"in o,get:o=>o.nzNoColon,set:(o,p)=>{o.nzNoColon=p}},metadata:r},a,t),N(null,null,n,{kind:"field",name:"nzAutoTips",static:!1,private:!1,access:{has:o=>"nzAutoTips"in o,get:o=>o.nzAutoTips,set:(o,p)=>{o.nzAutoTips=p}},metadata:r},i,h),N(null,null,m,{kind:"field",name:"nzTooltipIcon",static:!1,private:!1,access:{has:o=>"nzTooltipIcon"in o,get:o=>o.nzTooltipIcon,set:(o,p)=>{o.nzTooltipIcon=p}},metadata:r},I,S),N(null,null,Y,{kind:"field",name:"nzLabelWrap",static:!1,private:!1,access:{has:o=>"nzLabelWrap"in o,get:o=>o.nzLabelWrap,set:(o,p)=>{o.nzLabelWrap=p}},metadata:r},Z,J),r&&Object.defineProperty(c,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:r})})(),q(c,"\u0275fac",function(o){return new(o||c)}),q(c,"\u0275dir",rt({type:c,selectors:[["","nz-form",""]],hostAttrs:[1,"ant-form"],hostVars:8,hostBindings:function(o,p){o&2&&A("ant-form-horizontal",p.nzLayout==="horizontal")("ant-form-vertical",p.nzLayout==="vertical")("ant-form-inline",p.nzLayout==="inline")("ant-form-rtl",p.dir==="rtl")},inputs:{nzLayout:"nzLayout",nzNoColon:[2,"nzNoColon","nzNoColon",f],nzAutoTips:"nzAutoTips",nzDisableAutoTips:[2,"nzDisableAutoTips","nzDisableAutoTips",f],nzTooltipIcon:"nzTooltipIcon",nzLabelAlign:"nzLabelAlign",nzLabelWrap:[2,"nzLabelWrap","nzLabelWrap",f],nzRequiredMark:[1,"nzRequiredMark"]},exportAs:["nzForm"],features:[V]})),c})(),ne=(()=>{class e{cdr=s(R);i18n=s(Dt);nzFormStatusService=s(Q);destroyRef=s(w);animationType=s(ot,{optional:!0});_hasFeedback=!1;validateChanges=K.EMPTY;validateString=null;localeId;autoErrorTip;get disableAutoTips(){return this.nzDisableAutoTips!==void 0?Ft(this.nzDisableAutoTips):!!this.nzFormDirective?.nzDisableAutoTips}status="";validateControl=null;innerTip=null;defaultValidateControl;nzSuccessTip;nzWarningTip;nzErrorTip;nzValidatingTip;nzExtra;nzAutoTips={};nzDisableAutoTips;set nzHasFeedback(t){this._hasFeedback=t,this.nzFormStatusService.formStatusChanges.next({status:this.status,hasFeedback:this._hasFeedback}),this.nzFormItemComponent&&this.nzFormItemComponent.setHasFeedback(this._hasFeedback)}get nzHasFeedback(){return this._hasFeedback}set nzValidateStatus(t){t instanceof Lt||t instanceof Mt?(this.validateControl=t,this.validateString=null,this.watchControl()):t instanceof Ot?(this.validateControl=t.control,this.validateString=null,this.watchControl()):(this.validateString=t,this.validateControl=null,this.setStatus())}watchControl(){this.validateChanges.unsubscribe(),this.validateControl&&this.validateControl.statusChanges&&(this.validateChanges=this.validateControl.statusChanges.pipe(et(null),C(this.destroyRef)).subscribe(()=>{this.disableAutoTips||this.updateAutoErrorTip(),this.setStatus(),this.cdr.markForCheck()}))}setStatus(){this.status=this.getControlStatus(this.validateString),this.innerTip=this.getInnerTip(this.status),this.nzFormStatusService.formStatusChanges.next({status:this.status,hasFeedback:this.nzHasFeedback}),this.nzFormItemComponent&&(this.nzFormItemComponent.setWithHelpViaTips(!!this.innerTip),this.nzFormItemComponent.setStatus(this.status))}getControlStatus(t){let n;return t==="warning"||this.validateControlStatus("INVALID","warning")?n="warning":t==="error"||this.validateControlStatus("INVALID")?n="error":t==="validating"||t==="pending"||this.validateControlStatus("PENDING")?n="validating":t==="success"||this.validateControlStatus("VALID")?n="success":n="",n}validateControlStatus(t,n){if(this.validateControl){let{dirty:i,touched:h,status:m}=this.validateControl;return(!!i||!!h)&&(n?this.validateControl.hasError(n):m===t)}else return!1}getInnerTip(t){switch(t){case"error":return!this.disableAutoTips&&this.autoErrorTip||this.nzErrorTip||null;case"validating":return this.nzValidatingTip||null;case"success":return this.nzSuccessTip||null;case"warning":return this.nzWarningTip||null;default:return null}}updateAutoErrorTip(){if(this.validateControl){let t=this.validateControl.errors||{},n="";for(let i in t)if(t.hasOwnProperty(i)&&(n=t[i]?.[this.localeId]??this.nzAutoTips?.[this.localeId]?.[i]??this.nzAutoTips.default?.[i]??this.nzFormDirective?.nzAutoTips?.[this.localeId]?.[i]??this.nzFormDirective?.nzAutoTips.default?.[i]),n)break;this.autoErrorTip=n}}subscribeAutoTips(t){t?.pipe(C(this.destroyRef)).subscribe(()=>{this.disableAutoTips||(this.updateAutoErrorTip(),this.setStatus(),this.cdr.markForCheck())})}nzFormItemComponent=s(te,{host:!0,optional:!0});nzFormDirective=s(qt,{optional:!0});constructor(){this.subscribeAutoTips(this.i18n.localeChange.pipe(nt(t=>this.localeId=t.locale))),this.subscribeAutoTips(this.nzFormDirective?.getInputObservable("nzAutoTips")),this.subscribeAutoTips(this.nzFormDirective?.getInputObservable("nzDisableAutoTips").pipe(T(()=>this.nzDisableAutoTips===void 0)))}ngOnChanges(t){let{nzDisableAutoTips:n,nzAutoTips:i,nzSuccessTip:h,nzWarningTip:m,nzErrorTip:I,nzValidatingTip:S}=t;n||i?(this.updateAutoErrorTip(),this.setStatus()):(h||m||I||S)&&this.setStatus()}ngOnInit(){this.setStatus()}ngAfterContentInit(){!this.validateControl&&!this.validateString&&(this.defaultValidateControl instanceof Et?this.nzValidateStatus=this.defaultValidateControl.control:this.nzValidateStatus=this.defaultValidateControl)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=y({type:e,selectors:[["nz-form-control"]],contentQueries:function(n,i,h){if(n&1&&pt(h,xt,5),n&2){let m;ct(m=ut())&&(i.defaultValidateControl=m.first)}},hostAttrs:[1,"ant-form-item-control"],inputs:{nzSuccessTip:"nzSuccessTip",nzWarningTip:"nzWarningTip",nzErrorTip:"nzErrorTip",nzValidatingTip:"nzValidatingTip",nzExtra:"nzExtra",nzAutoTips:"nzAutoTips",nzDisableAutoTips:[2,"nzDisableAutoTips","nzDisableAutoTips",f],nzHasFeedback:[2,"nzHasFeedback","nzHasFeedback",f],nzValidateStatus:"nzValidateStatus"},exportAs:["nzFormControl"],features:[dt([Q]),V],ngContentSelectors:G,decls:5,vars:2,consts:[[1,"ant-form-item-control-input"],[1,"ant-form-item-control-input-content"],[1,"ant-form-item-explain","ant-form-item-explain-connected"],[1,"ant-form-item-extra"],["role","alert"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[4,"nzStringTemplateOutlet"]],template:function(n,i){n&1&&(L(),b(0,"div",0)(1,"div",1),M(2),_()(),v(3,Ht,3,10,"div",2),v(4,Bt,2,1,"div",3)),n&2&&(l(3),F(i.innerTip?3:-1),l(),F(i.nzExtra?4:-1))},dependencies:[$,B],encapsulation:2,data:{animation:[yt]},changeDetection:0})}return e})();function Wt(e){let a=typeof e=="string"?{type:e}:e;return W(W({},U),a)}var ie=(()=>{class e{cdr=s(R);nzFor;nzRequired=!1;set nzNoColon(t){this.noColon=t}get nzNoColon(){return this.noColon!=="default"?this.noColon:!!this.nzFormDirective?.nzNoColon}noColon="default";nzTooltipTitle;set nzTooltipIcon(t){this._tooltipIcon=Wt(t)}get tooltipIcon(){return this._tooltipIcon!=="default"?this._tooltipIcon:Wt(this.nzFormDirective?.nzTooltipIcon||U)}_tooltipIcon="default";set nzLabelAlign(t){this.labelAlign=t}get nzLabelAlign(){return this.labelAlign!=="default"?this.labelAlign:this.nzFormDirective?.nzLabelAlign||"right"}labelAlign="default";set nzLabelWrap(t){this.labelWrap=t}get nzLabelWrap(){return this.labelWrap!=="default"?this.labelWrap:!!this.nzFormDirective?.nzLabelWrap}labelWrap="default";nzFormDirective=s(qt,{skipSelf:!0,optional:!0});nzRequiredMark=this.nzFormDirective?.nzRequiredMark;isNzRequiredMarkTemplate=Tt(()=>vt(this.nzRequiredMark?.()));constructor(){this.nzFormDirective&&(this.nzFormDirective.getInputObservable("nzNoColon").pipe(T(()=>this.noColon==="default"),C()).subscribe(()=>this.cdr.markForCheck()),this.nzFormDirective.getInputObservable("nzTooltipIcon").pipe(T(()=>this._tooltipIcon==="default"),C()).subscribe(()=>this.cdr.markForCheck()),this.nzFormDirective.getInputObservable("nzLabelAlign").pipe(T(()=>this.labelAlign==="default"),C()).subscribe(()=>this.cdr.markForCheck()),this.nzFormDirective.getInputObservable("nzLabelWrap").pipe(T(()=>this.labelWrap==="default"),C()).subscribe(()=>this.cdr.markForCheck()))}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=y({type:e,selectors:[["nz-form-label"]],hostAttrs:[1,"ant-form-item-label"],hostVars:4,hostBindings:function(n,i){n&2&&A("ant-form-item-label-left",i.nzLabelAlign==="left")("ant-form-item-label-wrap",i.nzLabelWrap)},inputs:{nzFor:"nzFor",nzRequired:[2,"nzRequired","nzRequired",f],nzNoColon:[2,"nzNoColon","nzNoColon",f],nzTooltipTitle:"nzTooltipTitle",nzTooltipIcon:"nzTooltipIcon",nzLabelAlign:"nzLabelAlign",nzLabelWrap:[2,"nzLabelWrap","nzLabelWrap",f]},exportAs:["nzFormLabel"],ngContentSelectors:G,decls:5,vars:10,consts:[["labelTemplate",""],["nz-tooltip","",1,"ant-form-item-tooltip",3,"nzTooltipTitle"],[1,"ant-form-item-optional"],[4,"nzStringTemplateOutlet"],[3,"nzType","nzTheme"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"]],template:function(n,i){n&1&&(L(),b(0,"label"),g(1,Yt,3,2,"ng-template",null,0,Ct),v(3,Jt,1,5,"ng-container")(4,Xt,1,1,"ng-container"),_()),n&2&&(A("ant-form-item-no-colon",i.nzNoColon)("ant-form-item-required",i.nzRequired)("ant-form-item-required-mark-optional",(i.nzRequiredMark==null?null:i.nzRequiredMark())==="optional"||i.isNzRequiredMarkTemplate())("ant-form-item-required-mark-hidden",(i.nzRequiredMark==null?null:i.nzRequiredMark())===!1),lt("for",i.nzFor),l(3),F(i.isNzRequiredMarkTemplate()?3:4))},dependencies:[$,B,Rt,At,Nt,bt,St,It],encapsulation:2,changeDetection:0})}return e})();var Le=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=at({type:e});static \u0275inj=it({imports:[ie,ne,kt]})}return e})();export{te as a,qt as b,ne as c,ie as d,Le as e};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as s}from"./chunk-WUA5JFDD.js";import{n as d}from"./chunk-KRYMOHYF.js";import{Fb as p,Gb as n,Jc as f,fc as c,gc as a,oa as e}from"./chunk-4BRW6LCZ.js";var g=["class","component"],i=class t{static \u0275fac=function(o){return new(o||t)};static \u0275cmp=p({type:t,selectors:[["app-setting",8,"component"]],attrs:g,decls:2,vars:0,template:function(o,M){o&1&&(c(0,"p"),f(1,"setting.component works!"),a())},encapsulation:2})};var C=[{path:"",component:i}],m=class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=n({type:t});static \u0275inj=e({imports:[s.forChild(C),s]})};var u=class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=n({type:t});static \u0275inj=e({imports:[d,m]})};export{u as SettingModule};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Aa as ue,Ba as ze,Ea as de,Fa as fe,Ga as Ce,Ha as ve,J as se,K as pe,L as Z,Na as ge,Oa as Pe,Qa as ye,Ra as _e,Va as ke,Wa as he,bb as Oe,bc as De,cb as Be,ec as xe,na as me,ob as Te,qb as be,ta as $}from"./chunk-VZYJ3MSW.js";import{Ac as Q,Ca as te,Fb as oe,Gb as ie,Gc as W,Ha as y,Hb as re,Hc as ae,Ic as le,Jb as A,Jc as T,Lb as O,Lc as b,M as K,Ra as w,Rc as H,Ub as M,W as X,Wb as S,X as Y,Yb as I,a as k,ad as U,b as J,bc as s,bd as q,cc as u,dc as _,dd as ce,ec as F,f as D,ic as E,id as G,jc as V,l as x,lc as L,nb as l,oa as ee,od as p,r as N,rc as B,s as P,sa as ne,sb as h,uc as C,ya as d,yc as R,yd as v,za as f,zc as j}from"./chunk-4BRW6LCZ.js";var we=["okBtn"],Ae=["cancelBtn"];function Me(n,c){n&1&&F(0,"div",5)}function Se(n,c){if(n&1&&(E(0),F(1,"nz-icon",17),V()),n&2){let t=c.$implicit;l(),s("nzType",t||"exclamation-circle")}}function Ie(n,c){if(n&1&&(u(0,"span",10),O(1,Se,2,1,"ng-container",16),_()),n&2){let t=C(2);l(),s("nzStringTemplateOutlet",t.nzIcon)}}function Fe(n,c){if(n&1&&(E(0),T(1),V()),n&2){let t=C(2);l(),b(" ",t.nzTitle," ")}}function Ee(n,c){if(n&1){let t=L();u(0,"div",4),S(1,Me,1,0,"div",5),u(2,"div",6)(3,"div",7)(4,"div")(5,"div",8)(6,"div",9),S(7,Ie,2,1,"span",10),u(8,"div",11),O(9,Fe,2,1,"ng-container",12),_()(),u(10,"div",13)(11,"button",14,1),B("click",function(){d(t);let e=C();return f(e.onCancel())}),H(13),U(14,"nzI18n"),T(15),_(),u(16,"button",15,2),B("click",function(){d(t);let e=C();return f(e.onConfirm())}),H(18),U(19,"nzI18n"),T(20),_()()()()()()()}if(n&2){let t,o,e=C();ae(e.nzOverlayStyle),le(e._classMap),W("ant-popover-rtl",e.dir==="rtl"),s("cdkTrapFocusAutoCapture",e.nzAutoFocus!==null)("@.disabled",!!(e.noAnimation!=null&&e.noAnimation.nzNoAnimation))("nzNoAnimation",e.noAnimation==null?null:e.noAnimation.nzNoAnimation)("@zoomBigMotion","active"),l(),I(e.nzPopconfirmShowArrow?1:-1),l(6),I(e.nzIcon!==null?7:-1),l(2),s("nzStringTemplateOutlet",e.nzTitle)("nzStringTemplateOutletContext",e.nzTitleContext),l(2),s("nzSize","small")("nzDanger",(t=e.nzCancelButtonProps())==null?null:t.nzDanger)("disabled",(o=e.nzCancelButtonProps())==null?null:o.nzDisabled),M("cdkFocusInitial",e.nzAutoFocus==="cancel"||null);let a=e.nzCancelText()||q(14,26,"Modal.cancelText");l(4),b(" ",a," "),l(),s("nzSize","small")("nzType",e.nzOkButtonProps().nzType)("nzDanger",e.nzOkButtonProps().nzDanger)("nzLoading",e.confirmLoading)("disabled",e.nzOkButtonProps().nzDisabled),M("cdkFocusInitial",e.nzAutoFocus==="ok"||null);let m=e.nzOkText()||q(19,28,"Modal.okText");l(4),b(" ",m," ")}}var Ve="popconfirm",_n=(()=>{var r;let n=De,c,t=[],o=[],e,a=[],m=[];return r=class extends n{_nzModuleName=Ve;arrowPointAtCenter;title;titleContext=null;directiveTitle;trigger="click";placement="top";origin;mouseEnterDelay;mouseLeaveDelay;overlayClassName;overlayStyle;visible;nzBeforeConfirm;nzIcon;nzCondition=!1;nzPopconfirmShowArrow=!0;nzPopconfirmBackdrop=P(this,t,!1);nzAutofocus=(P(this,o),P(this,a,null));nzOkText=(P(this,m),p(null));nzOkType=p("primary");nzCancelText=p(null);nzOkButtonProps=p(null);nzCancelButtonProps=p(null);nzOkDisabled=p(!1,{transform:v});nzOkDanger=p(!1,{transform:v});okButtonProps=G(()=>J(k({},this.nzOkButtonProps()),{nzType:this.nzOkButtonProps()?.nzType||this.nzOkType()==="danger"?"primary":this.nzOkType(),nzDanger:this.nzOkDanger()||this.nzOkButtonProps()?.nzDanger||this.nzOkType()==="danger",nzDisabled:this.nzOkDisabled()||this.nzOkButtonProps()?.nzDisabled}));cancelButtonProps=G(()=>k({},this.nzCancelButtonProps()));directiveContent=null;content=null;overlayClickable;visibleChange=new h;nzOnCancel=new h;nzOnConfirm=new h;getProxyPropertyMap(){return k({nzOkText:["nzOkText",()=>this.nzOkText],nzCancelText:["nzCancelText",()=>this.nzCancelText],nzOkButtonProps:["nzOkButtonProps",()=>this.okButtonProps],nzCancelButtonProps:["nzCancelButtonProps",()=>this.cancelButtonProps],nzBeforeConfirm:["nzBeforeConfirm",()=>this.nzBeforeConfirm],nzCondition:["nzCondition",()=>this.nzCondition],nzIcon:["nzIcon",()=>this.nzIcon],nzPopconfirmShowArrow:["nzPopconfirmShowArrow",()=>this.nzPopconfirmShowArrow],nzPopconfirmBackdrop:["nzBackdrop",()=>this.nzPopconfirmBackdrop],nzPopconfirmContext:["nzTitleContext",()=>this.titleContext],nzAutoFocus:["nzAutoFocus",()=>this.nzAutofocus]},super.getProxyPropertyMap())}constructor(){super(Ne)}createComponent(){super.createComponent(),this.component.nzOnCancel.pipe(Z(this.destroyRef)).subscribe(()=>{this.nzOnCancel.emit()}),this.component.nzOnConfirm.pipe(Z(this.destroyRef)).subscribe(()=>{this.nzOnConfirm.emit()})}},(()=>{let z=typeof Symbol=="function"&&Symbol.metadata?Object.create(n[Symbol.metadata]??null):void 0;c=[$()],e=[$()],N(null,null,c,{kind:"field",name:"nzPopconfirmBackdrop",static:!1,private:!1,access:{has:i=>"nzPopconfirmBackdrop"in i,get:i=>i.nzPopconfirmBackdrop,set:(i,g)=>{i.nzPopconfirmBackdrop=g}},metadata:z},t,o),N(null,null,e,{kind:"field",name:"nzAutofocus",static:!1,private:!1,access:{has:i=>"nzAutofocus"in i,get:i=>i.nzAutofocus,set:(i,g)=>{i.nzAutofocus=g}},metadata:z},a,m),z&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:z})})(),D(r,"\u0275fac",function(i){return new(i||r)}),D(r,"\u0275dir",re({type:r,selectors:[["","nz-popconfirm",""]],hostVars:2,hostBindings:function(i,g){i&2&&W("ant-popover-open",g.visible)},inputs:{arrowPointAtCenter:[2,"nzPopconfirmArrowPointAtCenter","arrowPointAtCenter",v],title:[0,"nzPopconfirmTitle","title"],titleContext:[0,"nzPopconfirmTitleContext","titleContext"],directiveTitle:[0,"nz-popconfirm","directiveTitle"],trigger:[0,"nzPopconfirmTrigger","trigger"],placement:[0,"nzPopconfirmPlacement","placement"],origin:[0,"nzPopconfirmOrigin","origin"],mouseEnterDelay:[0,"nzPopconfirmMouseEnterDelay","mouseEnterDelay"],mouseLeaveDelay:[0,"nzPopconfirmMouseLeaveDelay","mouseLeaveDelay"],overlayClassName:[0,"nzPopconfirmOverlayClassName","overlayClassName"],overlayStyle:[0,"nzPopconfirmOverlayStyle","overlayStyle"],visible:[0,"nzPopconfirmVisible","visible"],nzBeforeConfirm:"nzBeforeConfirm",nzIcon:"nzIcon",nzCondition:[2,"nzCondition","nzCondition",v],nzPopconfirmShowArrow:[2,"nzPopconfirmShowArrow","nzPopconfirmShowArrow",v],nzPopconfirmBackdrop:"nzPopconfirmBackdrop",nzAutofocus:"nzAutofocus",nzOkText:[1,"nzOkText"],nzOkType:[1,"nzOkType"],nzCancelText:[1,"nzCancelText"],nzOkButtonProps:[1,"nzOkButtonProps"],nzCancelButtonProps:[1,"nzCancelButtonProps"],nzOkDisabled:[1,"nzOkDisabled"],nzOkDanger:[1,"nzOkDanger"]},outputs:{visibleChange:"nzPopconfirmVisibleChange",nzOnCancel:"nzOnCancel",nzOnConfirm:"nzOnConfirm"},exportAs:["nzPopconfirm"],features:[A]})),r})(),Ne=(()=>{class n extends xe{okBtn;cancelBtn;nzCondition=!1;nzPopconfirmShowArrow=!0;nzIcon;nzAutoFocus=null;nzBeforeConfirm=null;nzOkText=y(null);nzCancelText=y(null);nzOkButtonProps=y({nzType:"primary"});nzCancelButtonProps=y(null);nzOnCancel=new x;nzOnConfirm=new x;_trigger="click";elementFocusedBeforeModalWasOpened=null;document=ne(te);_prefix="ant-popover";confirmLoading=!1;constructor(){super(),this.destroyRef.onDestroy(()=>{this.nzVisibleChange.complete()})}show(){this.nzCondition?this.onConfirm():(this.capturePreviouslyFocusedElement(),super.show())}hide(){super.hide(),this.restoreFocus()}handleConfirm(){this.nzOnConfirm.next(),super.hide()}onCancel(){this.nzOnCancel.next(),super.hide()}onConfirm(){this.nzBeforeConfirm?(this.confirmLoading=!0,this.cdr.markForCheck(),me(this.nzBeforeConfirm()).pipe(Y(),K(Boolean),X(()=>{this.confirmLoading=!1,this.cdr.markForCheck()})).subscribe(()=>this.handleConfirm())):this.handleConfirm()}capturePreviouslyFocusedElement(){this.document&&(this.elementFocusedBeforeModalWasOpened=this.document.activeElement)}restoreFocus(){let t=this.elementFocusedBeforeModalWasOpened;if(t&&typeof t.focus=="function"){let o=this.document.activeElement,e=this.elementRef.nativeElement;(!o||o===this.document.body||o===e||e.contains(o))&&t.focus()}}static \u0275fac=function(o){return new(o||n)};static \u0275cmp=oe({type:n,selectors:[["nz-popconfirm"]],viewQuery:function(o,e){if(o&1&&(R(we,5,w),R(Ae,5,w)),o&2){let a;j(a=Q())&&(e.okBtn=a),j(a=Q())&&(e.cancelBtn=a)}},exportAs:["nzPopconfirmComponent"],features:[A],decls:2,vars:6,consts:[["overlay","cdkConnectedOverlay"],["cancelBtn",""],["okBtn",""],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"overlayOutsideClick","detach","positionChange","cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayOpen","cdkConnectedOverlayPush","nzArrowPointAtCenter"],["cdkTrapFocus","",1,"ant-popover",3,"cdkTrapFocusAutoCapture","nzNoAnimation"],[1,"ant-popover-arrow"],[1,"ant-popover-content"],[1,"ant-popover-inner"],[1,"ant-popover-inner-content"],[1,"ant-popover-message"],[1,"ant-popover-message-icon"],[1,"ant-popover-message-title"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[1,"ant-popover-buttons"],["nz-button","",3,"click","nzSize","nzDanger","disabled"],["nz-button","",3,"click","nzSize","nzType","nzDanger","nzLoading","disabled"],[4,"nzStringTemplateOutlet"],["nzTheme","fill",3,"nzType"]],template:function(o,e){if(o&1){let a=L();O(0,Ee,21,30,"ng-template",3,0,ce),B("overlayOutsideClick",function(r){return d(a),f(e.onClickOutside(r))})("detach",function(){return d(a),f(e.hide())})("positionChange",function(r){return d(a),f(e.onPositionChange(r))})}o&2&&s("cdkConnectedOverlayHasBackdrop",e.nzBackdrop)("cdkConnectedOverlayOrigin",e.origin)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayOpen",e._visible)("cdkConnectedOverlayPush",e.cdkConnectedOverlayPush)("nzArrowPointAtCenter",e.nzArrowPointAtCenter)},dependencies:[pe,se,ze,ue,Be,Oe,be,ve,Ce,fe,de,_e,ye,ge,Pe,he,ke],encapsulation:2,data:{animation:[Te]},changeDetection:0})}return n})(),kn=(()=>{class n{static \u0275fac=function(o){return new(o||n)};static \u0275mod=ie({type:n});static \u0275inj=ee({imports:[Ne]})}return n})();export{_n as a,kn as b};
|