@yinuo-ngm/server 1.0.4 → 1.0.6
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/app.js +2 -0
- package/lib/plugins/api-client.plugin.d.ts +3 -0
- package/lib/plugins/api-client.plugin.js +56 -0
- package/lib/plugins/core.plugin.d.ts +0 -6
- package/lib/plugins/error-handler.plugin.js +1 -0
- package/lib/plugins/routes.plugin.js +2 -10
- package/lib/routes/api-client/collection.routes.d.ts +2 -0
- package/lib/routes/api-client/collection.routes.js +78 -0
- package/lib/routes/api-client/env.routes.d.ts +2 -0
- package/lib/routes/api-client/env.routes.js +44 -0
- package/lib/routes/api-client/history.routes.d.ts +2 -0
- package/lib/routes/api-client/history.routes.js +36 -0
- package/lib/routes/api-client/index.d.ts +5 -0
- package/lib/routes/api-client/index.js +21 -0
- package/lib/routes/api-client/request.routes.d.ts +2 -0
- package/lib/routes/api-client/request.routes.js +62 -0
- package/lib/routes/api-client/send.routes.d.ts +2 -0
- package/lib/routes/api-client/send.routes.js +22 -0
- package/lib/routes/index.d.ts +2 -10
- package/lib/routes/index.js +18 -10
- package/package.json +38 -37
- package/www/browser/{chunk-X7DKZB43.js → chunk-2PBA7FNM.js} +2 -2
- package/www/browser/chunk-35COW2FA.js +1 -0
- package/www/browser/{chunk-IGJYBE5M.js → chunk-3N7T4ZJF.js} +1 -1
- package/www/browser/{chunk-6ZXMOHQD.js → chunk-5IUYSJVD.js} +1 -1
- package/www/browser/{chunk-CF64VPDQ.js → chunk-5MHC25IS.js} +1 -1
- package/www/browser/chunk-7U5ZOE34.js +1 -0
- package/www/browser/{chunk-GKOCPXFS.js → chunk-A2SBXP7A.js} +1 -1
- package/www/browser/chunk-CJISJEP3.js +1 -0
- package/www/browser/chunk-CPA2B3DD.js +1 -0
- package/www/browser/{chunk-TN5O5PXP.js → chunk-DUC7XBYN.js} +1 -1
- package/www/browser/{chunk-UIDFNBD4.js → chunk-DV7BEQJD.js} +1 -1
- package/www/browser/{chunk-ZGEEPU7F.js → chunk-EAYGWAZB.js} +1 -1
- package/www/browser/{chunk-GNFBCMLE.js → chunk-EC33AXSR.js} +1 -1
- package/www/browser/{chunk-K6ZRTM2Q.js → chunk-FL6BUQ4M.js} +1 -1
- package/www/browser/{chunk-A6CKMRBS.js → chunk-FPDGZ3ZC.js} +1 -1
- package/www/browser/{chunk-ECWYTW7Q.js → chunk-IXHH6ENJ.js} +1 -1
- package/www/browser/chunk-KKLLU6U7.js +3 -0
- package/www/browser/chunk-MN4WB67T.js +1 -0
- package/www/browser/{chunk-ZJKBRM7K.js → chunk-POZS3PD3.js} +1 -1
- package/www/browser/{chunk-J43J3F2V.js → chunk-PTMJ422K.js} +6 -6
- package/www/browser/{chunk-HT3VTKOZ.js → chunk-PYGKDDJK.js} +1 -1
- package/www/browser/{chunk-34QRY4VA.js → chunk-ROB7EMN5.js} +13 -13
- package/www/browser/chunk-TLFV3T3W.js +1 -0
- package/www/browser/chunk-U7FBNFSB.js +1 -0
- package/www/browser/chunk-UWKUE7CZ.js +11 -0
- package/www/browser/{chunk-R7E5ZK2M.js → chunk-V6LX42JA.js} +1 -1
- package/www/browser/dark.css +1 -1
- package/www/browser/default.css +1 -1
- package/www/browser/index.html +1 -1
- package/www/browser/main-IIW5QQA5.js +29 -0
- package/www/browser/chunk-5RKAWOOJ.js +0 -1
- package/www/browser/chunk-ACZLOZZH.js +0 -1
- package/www/browser/chunk-C3KAVW4L.js +0 -1
- package/www/browser/chunk-CKWTUTVS.js +0 -1
- package/www/browser/chunk-QC33YQSO.js +0 -11
- package/www/browser/chunk-U76AMP2X.js +0 -3
- package/www/browser/main-F763G7F7.js +0 -29
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-DV7BEQJD.js"><link rel="modulepreload" href="chunk-EC33AXSR.js"><link rel="modulepreload" href="chunk-3N7T4ZJF.js"><link rel="modulepreload" href="chunk-HZ73CM45.js"><link rel="modulepreload" href="chunk-A2SBXP7A.js"><link rel="modulepreload" href="chunk-SNCDDYQR.js"><link rel="modulepreload" href="chunk-FPDGZ3ZC.js"><link rel="modulepreload" href="chunk-PTMJ422K.js"><link rel="modulepreload" href="chunk-HFZLJHYR.js"><link rel="modulepreload" href="chunk-53YRDYLS.js"><script src="main-IIW5QQA5.js" type="module"></script></body>
|
|
13
13
|
</html>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import{a as Mn,b as bn,c as xn,d as wn,e as Sn,f as V}from"./chunk-DV7BEQJD.js";import{a as nn,b as on,c as rn}from"./chunk-EC33AXSR.js";import{a as Pn,b as Nn,c as Tn}from"./chunk-3N7T4ZJF.js";import"./chunk-HZ73CM45.js";import{a as vn,b as be,c as yn,d as zn}from"./chunk-A2SBXP7A.js";import{b as Me}from"./chunk-SNCDDYQR.js";import{A as hn,B as ze,C as Cn,D as _n,I as ee,a as Yt,b as qt,l as Z,m as mn,n as Q,o as dn,p as un,q as R,r as J,s as ve,t as ye,u as K,y as fn,z as gn}from"./chunk-FPDGZ3ZC.js";import{A as Zt,Ab as sn,Bb as cn,Cb as pn,Fb as Ce,Hb as _e,L as Qt,M as S,N as b,O as Jt,P as Kt,T as en,U as tn,V as k,W as ue,Y as B,Z as A,a as Gt,jb as an,lb as fe,pb as ge,vb as he,x as Xt,yb as ln,z as Ue}from"./chunk-PTMJ422K.js";import"./chunk-HFZLJHYR.js";import{A as $t,B as F,d as pe,g as Lt,h as Ft,i as L,j as kt,l as Bt,m as At,r as Rt,s as Vt,u as Wt,v as me,w as Ht,x as Ut,y as G,z as de}from"./chunk-53YRDYLS.js";import{$b as E,$c as He,Aa as re,Ba as lt,Bc as xt,Ca as st,Cc as wt,Dc as N,Eb as _,Fa as ct,Fb as vt,Fc as I,Ha as M,Ia as pt,Ic as m,Jc as T,Kb as P,Kc as j,M as q,Mc as St,Nc as Pt,Oc as Nt,Pb as yt,Ra as mt,Tb as zt,Ub as Mt,Uc as Tt,Vb as v,Vc as ce,Wc as Ve,Xa as dt,Xb as y,Zb as bt,Zc as ne,_b as O,_c as We,ac as d,ad as X,bc as r,ca as et,cc as l,cd as Dt,dc as p,fd as D,gd as oe,hc as U,ic as $,ja as tt,jc as Re,kb as ut,kc as z,la as nt,ma as w,mb as s,md as Ot,na as ot,pa as it,pd as Et,qa as ie,qb as ft,qc as C,ra as f,rd as It,sa as rt,sb as gt,ta as at,tc as c,uc as le,vc as se,vd as jt,wb as ht,xa as g,xb as Ct,ya as h,yb as ae,z as Ke,zb as _t}from"./chunk-SJG2JCPL.js";function qn(t){let n=t;return 5}var Dn=["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",qn];var Xn="@",Zn=(()=>{class t{doc;delegate;zone;animationType;moduleImpl;_rendererFactoryPromise=null;scheduler=null;injector=f(re);loadingSchedulerFn=f(Qn,{optional:!0});_engine;constructor(e,o,i,a,u){this.doc=e,this.delegate=o,this.zone=i,this.animationType=a,this.moduleImpl=u}ngOnDestroy(){this._engine?.flush()}loadImpl(){let e=()=>this.moduleImpl??import("./chunk-HEKO7RQP.js").then(i=>i),o;return this.loadingSchedulerFn?o=this.loadingSchedulerFn(e):o=e(),o.catch(i=>{throw new tt(5300,!1)}).then(({\u0275createEngine:i,\u0275AnimationRendererFactory:a})=>{this._engine=i(this.animationType,this.doc);let u=new a(this.delegate,this._engine,this.zone);return this.delegate=u,u})}createRenderer(e,o){let i=this.delegate.createRenderer(e,o);if(i.\u0275type===0)return i;typeof i.throwOnSyntheticProps=="boolean"&&(i.throwOnSyntheticProps=!1);let a=new $e(i);return o?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(u=>{let H=u.createRenderer(e,o);a.use(H),this.scheduler??=this.injector.get(pt,null,{optional:!0}),this.scheduler?.notify(10)}).catch(u=>{a.use(i)}),a}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){_t()};static \u0275prov=w({token:t,factory:t.\u0275fac})}return t})(),$e=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(a=>a.listen(n,e,o,i)),this.delegate.listen(n,e,o,i)}shouldReplay(n){return this.replay!==null&&n.startsWith(Xn)}},Qn=new it("");function On(t="animations"){return ft("NgAsyncAnimations"),rt([{provide:ht,useFactory:(n,e,o)=>new Zn(n,e,o,t),deps:[lt,Bt,gt]},{provide:dt,useValue:t==="noop"?"NoopAnimations":"BrowserAnimations"}])}var xe=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 a=document.createElement("link");a.rel="stylesheet",a.href=n,a.id=e,a.onload=o,a.onerror=i,document.head.append(a)})}loadTheme(n=!0){let e=this.currentTheme;return n&&document.documentElement.classList.add(e),new Promise((o,i)=>{this.loadCss(`${e}.css`,e).then(a=>{n||document.documentElement.classList.add(e),this.removeUnusedTheme(this.reverseTheme(e)),o(a)},a=>i(a))})}toggleTheme(){return this.currentTheme=this.reverseTheme(this.currentTheme),this.loadTheme(!1)}static \u0275fac=function(e){return new(e||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})};var En={provide:yt,useFactory:t=>()=>t.loadTheme(),deps:[xe],multi:!0};var In=[{path:"",redirectTo:"dashboard",pathMatch:"full"},{path:"dashboard",loadChildren:()=>import("./chunk-FL6BUQ4M.js").then(t=>t.DashboardModule)},{path:"tasks",loadChildren:()=>import("./chunk-EAYGWAZB.js").then(t=>t.TasksModule)},{path:"projects",loadChildren:()=>import("./chunk-KKLLU6U7.js").then(t=>t.ProjectsModule)},{path:"settings",loadChildren:()=>import("./chunk-V27A2EK4.js").then(t=>t.SettingModule)},{path:"configuration",loadChildren:()=>import("./chunk-UWKUE7CZ.js").then(t=>t.ConfigurationModule)},{path:"dependencies",loadChildren:()=>import("./chunk-V6LX42JA.js").then(t=>t.DependenciesModule)},{path:"rquest",loadChildren:()=>import("./chunk-U7FBNFSB.js").then(t=>t.ApiClientModule)},{path:"about",loadChildren:()=>import("./chunk-CPA2B3DD.js").then(t=>t.AboutRoutingModule)},{path:"**",redirectTo:"dashboard"}];kt(Dn);var jn={providers:[En,ct(),Dt(),$t(In),qt(Yt),On(),at(ze),Rt(Vt([Tn]))]};var Ge=["*"];function Jn(t,n){}function Kn(t,n){if(t&1&&(r(0,"span",1),P(1,Jn,0,0,"ng-template",2),p(2,"nz-icon",3),l()),t&2){let e=c(),o=N(4);d("nzDropdownMenu",e.nzOverlay),s(),d("ngTemplateOutlet",o)}}function eo(t,n){}function to(t,n){if(t&1&&P(0,eo,0,0,"ng-template",2),t&2){c();let e=N(4);d("ngTemplateOutlet",e)}}function no(t,n){if(t&1&&(U(0),m(1),$()),t&2){let e=c(2);s(),j(" ",e.nzBreadCrumbComponent.nzSeparator," ")}}function oo(t,n){if(t&1&&(r(0,"nz-breadcrumb-separator"),P(1,no,2,1,"ng-container",4),l()),t&2){let e=c();s(),d("nzStringTemplateOutlet",e.nzBreadCrumbComponent.nzSeparator)}}function io(t,n){t&1&&(r(0,"span",5),se(1),l())}var ro=(t,n)=>n.url;function ao(t,n){if(t&1){let e=z();r(0,"nz-breadcrumb-item")(1,"a",0),C("click",function(i){let a=g(e).$implicit,u=c(2);return h(u.navigate(a.url,i))}),m(2),l()()}if(t&2){let e=n.$implicit;s(),zt("href",e.url,ut),s(),T(e.label)}}function lo(t,n){if(t&1&&O(0,ao,3,2,"nz-breadcrumb-item",null,ro),t&2){let e=c();E(e.breadcrumbs)}}var we=class{},so=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275cmp=_({type:t,selectors:[["nz-breadcrumb-separator"]],hostAttrs:[1,"ant-breadcrumb-separator"],exportAs:["nzBreadcrumbSeparator"],ngContentSelectors:Ge,decls:1,vars:0,template:function(o,i){o&1&&(le(),se(0))},encapsulation:2})}return t})(),Fn=(()=>{class t{nzBreadCrumbComponent=f(we);nzOverlay;static \u0275fac=function(o){return new(o||t)};static \u0275cmp=_({type:t,selectors:[["nz-breadcrumb-item"]],inputs:{nzOverlay:"nzOverlay"},exportAs:["nzBreadcrumbItem"],ngContentSelectors:Ge,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&&(le(),v(0,Kn,3,2,"span",1)(1,to,1,1,null,2),v(2,oo,2,1,"nz-breadcrumb-separator"),P(3,io,2,0,"ng-template",null,0,X)),o&2&&(y(i.nzOverlay?0:1),s(2),y(i.nzBreadCrumbComponent.nzSeparator?2:-1))},dependencies:[pe,so,K,J,b,S,Kt,Jt],encapsulation:2,changeDetection:0})}return t})(),co=(()=>{class t{injector=f(re);cdr=f(It);elementRef=f(mt);renderer=f(Ct);directionality=f(Xt);destroyRef=f(st);nzAutoGenerate=!1;nzSeparator="/";nzRouteLabel="breadcrumb";nzRouteLabelFn=e=>e;nzRouteFn=e=>e;breadcrumbs=[];dir="ltr";ngOnInit(){this.nzAutoGenerate&&this.registerRouterChange(),this.directionality.change?.pipe(Ue(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(G).navigateByUrl(e)}registerRouterChange(){try{let e=this.injector.get(G),o=this.injector.get(Ht);e.events.pipe(q(i=>i instanceof me),Ue(this.destroyRef),et(!0)).subscribe(()=>{this.breadcrumbs=this.getBreadcrumbs(o.root),this.cdr.markForCheck()})}catch{throw new Error(`${Gt} You should import RouterModule if you want to use 'NzAutoGenerate'.`)}}getBreadcrumbs(e,o="",i=[]){let a=e.children;if(a.length===0)return i;for(let u of a)if(u.outlet===Wt){let H=u.snapshot.url.map(te=>te.path).filter(te=>te).join("/"),Qe=H?`${o}/${H}`:o,Je=this.nzRouteLabelFn(u.snapshot.data[this.nzRouteLabel]),Yn=this.nzRouteFn(Qe);if(H&&Je){let te={label:Je,params:u.snapshot.params,url:Yn};i.push(te)}return this.getBreadcrumbs(u,Qe,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=_({type:t,selectors:[["nz-breadcrumb"]],hostAttrs:[1,"ant-breadcrumb"],inputs:{nzAutoGenerate:[2,"nzAutoGenerate","nzAutoGenerate",jt],nzSeparator:"nzSeparator",nzRouteLabel:"nzRouteLabel",nzRouteLabelFn:"nzRouteLabelFn",nzRouteFn:"nzRouteFn"},exportAs:["nzBreadcrumb"],features:[Tt([{provide:we,useExisting:nt(()=>t)}])],ngContentSelectors:Ge,decls:2,vars:1,consts:[[3,"click"]],template:function(o,i){o&1&&(le(),se(0),v(1,lo,2,0)),o&2&&(s(),y(i.nzAutoGenerate&&i.breadcrumbs.length?1:-1))},dependencies:[Fn],encapsulation:2,changeDetection:0})}return t})(),kn=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=vt({type:t});static \u0275inj=ot({imports:[co,Fn]})}return t})();function po(t){return t.op==="syslog.tail"}function mo(t){return t.op==="syslog.append"}function Ye(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 Se=class t{constructor(n){this.ws=n;this.msgSub=this.ws.messages().pipe(q(e=>po(e)||mo(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=M(!1);filter=M({});logs=M([]);unread=M(0);drawerOpen=M(!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=>Ye(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)}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 u=(n.entries??[]).filter(H=>Ye(H,e));this.logs.set(u.slice(-this.capacity));return}let o=n.entry;if(!Ye(o,e))return;let i=this.logs(),a=i.length>=this.capacity?i.slice(1):i.slice();a.push(o),this.logs.set(a),this.drawerOpen()||this.unread.set(this.unread()+1)}static \u0275fac=function(e){return new(e||t)(ie(Me))};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})};var fo=["logBox"],go=()=>({padding:"0px",overflow:"hidden"});function ho(t,n){if(t&1&&(r(0,"nz-tag",12),m(1),ne(2,"uppercase"),l(),r(3,"div",13),m(4),l(),r(5,"div",14),m(6),ne(7,"date"),l()),t&2){let e,o,i,a,u=c();d("nzColor",u.getColor((e=u.lastLine())==null?null:e.level)),s(),j(" ",We(2,4,(o=u.lastLine())==null?null:o.level)," "),s(3),T((i=u.lastLine())==null?null:i.text),s(2),T(He(7,6,(a=u.lastLine())==null?null:a.ts,"yyyy-MM-dd HH:mm:ss"))}}function Co(t,n){t&1&&(r(0,"nz-tag",15),m(1,"INFO"),l(),r(2,"div",13),m(3,"\u6682\u65E0\u65E5\u5FD7"),l(),r(4,"div",14),m(5,"--"),l())}function _o(t,n){if(t&1&&m(0),t&2){let e=c().$implicit;j(" ",e.data==null?null:e.data.icon," ")}}function vo(t,n){if(t&1&&(r(0,"div",18)(1,"nz-tag",12),m(2),ne(3,"uppercase"),l(),r(4,"span",14),m(5),ne(6,"date"),l(),r(7,"span",19),v(8,_o,1,1),m(9),l()()),t&2){let e=n.$implicit,o=c(2);I("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(),j(" ",We(3,15,e.level)," "),s(3),T(He(6,17,e.ts,"yyyy-MM-dd HH:mm:ss")),s(3),y(e.data!=null&&e.data.icon?8:-1),s(),j(" ",e.text," ")}}function yo(t,n){if(t&1&&(U(0),r(1,"div",16,1),O(3,vo,10,20,"div",17,Mt().trackByLine,!0),l(),$()),t&2){let e=c();s(3),E(e.lines())}}function zo(t,n){if(t&1){let e=z();r(0,"nz-space",20)(1,"button",21),C("click",function(){g(e);let i=c();return h(i.clearLog())}),p(2,"nz-icon",22),l(),r(3,"button",23),C("click",function(){g(e);let i=c();return h(i.toBottom())}),p(4,"nz-icon",24),l()()}}var Pe=class t{sysLogStream=f(Se);projectState=f(ee);logBox=Ot("logBox");autoFollow=M(!0);isOpen=M(!1);curProjectPath=D(()=>this.projectState.currentProject()?.root||"");lines=D(()=>this.sysLogStream.logs());lastLine=D(()=>{let n=this.sysLogStream.logs();return n.length?n[n.length-1]:null});unread=D(()=>this.sysLogStream.unread());constructor(){oe(()=>{this.sysLogStream.setDrawerOpen(this.isOpen()),this.isOpen()&&queueMicrotask(()=>this.toBottom())}),oe(()=>{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=_({type:t,selectors:[["app-system-log"]],viewQuery:function(e,o){e&1&&xt(o.logBox,fo,5),e&2&&wt()},decls:16,vars:9,consts:[["extra",""],["logBox",""],[1,"status-bar"],[1,"project-path"],[1,"home"],["nzType","home","nzTheme","outline",1,"icon"],[1,"pos-path"],["nzType","folder","nzTheme","outline",1,"icon"],["nz-tooltip","\u6253\u5F00\u65E5\u5FD7",1,"last-log",3,"click"],["nzType","profile","nzTheme","outline",1,"icon"],["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=z();r(0,"div",2)(1,"div",3)(2,"div",4),p(3,"nz-icon",5),l(),r(4,"div",6),p(5,"nz-icon",7),r(6,"span"),m(7),l()()(),r(8,"div",8),C("click",function(){return g(i),h(o.openLog())}),p(9,"nz-icon",9),v(10,ho,8,9)(11,Co,6,0),l()(),r(12,"nz-drawer",10),C("nzOnClose",function(){return g(i),h(o.closeLog())}),P(13,yo,5,0,"ng-container",11),l(),P(14,zo,5,0,"ng-template",null,0,X)}if(e&2){let i=N(15);s(7),j(" ",o.curProjectPath()," "),s(3),y(o.lastLine()?10:11),s(2),d("nzVisible",o.isOpen())("nzMaskClosable",!1)("nzMask",!1)("nzExtra",i)("nzHeight",300)("nzBodyStyle",ce(8,go))}},dependencies:[L,Nn,Pn,rn,on,nn,A,B,k,tn,en,b,S,_e,Ce,Lt,Ft],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}.status-bar[_ngcontent-%COMP%] .last-log[_ngcontent-%COMP%]{cursor:pointer;flex:1;display:flex;align-items:center;padding:0 12px;gap:8px}.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:16px;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 Ne=class t{static \u0275fac=function(e){return new(e||t)};static \u0275cmp=_({type:t,selectors:[["ngm-footer"]],decls:2,vars:0,template:function(e,o){e&1&&(r(0,"nz-footer"),p(1,"app-system-log"),l())},dependencies:[V,bn,Pe],styles:["nz-footer[_ngcontent-%COMP%]{padding:0;align-items:center;display:flex}app-system-log[_ngcontent-%COMP%]{width:100%}"]})};var Te=class t{static \u0275fac=function(e){return new(e||t)};static \u0275cmp=_({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"),l()())},dependencies:[L,V,xn,b,S],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 De=class t{isCollapsed=M(!1);static \u0275fac=function(e){return new(e||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})};var Oe=class t{currentMenu=M(null);router=f(G);menus=[{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}];constructor(){this.syncByUrl(this.router.url),this.router.events.pipe(q(n=>n instanceof me)).subscribe(n=>this.syncByUrl(n.urlAfterRedirects))}isActive(n){return this.router.isActive(n,{paths:"subset",queryParams:"ignored",fragment:"ignored",matrixParams:"ignored"})}getMenus(){return this.menus}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(a=>!!a.path),i=null;for(let a of o){let u=a.path;(e===u||e.startsWith(u+"/"))&&(!i||u.length>i.path.length)&&(i=a)}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=w({token:t,factory:t.\u0275fac,providedIn:"root"})};var Ee=class t{api=f(vn);runtimeStore=f(be);async initActiveSnapshot(){let n=await Ke(this.api.active());for(let e of n??[])this.runtimeStore.setRuntime(e)}static \u0275fac=function(e){return new(e||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})};var An=t=>({$implicit:t});function Mo(t,n){t&1&&Re(0)}function bo(t,n){if(t&1&&p(0,"nz-icon",6),t&2){let e=c(2).$implicit;d("nzType",e.icon)}}function xo(t,n){t&1&&p(0,"nz-badge",7)}function wo(t,n){if(t&1){let e=z();r(0,"li",5),C("click",function(){g(e);let i=c().$implicit,a=c(2);return h(a.menuService.clickMenu(i))}),v(1,bo,1,1,"nz-icon",6),r(2,"span"),m(3),l(),v(4,xo,1,0,"nz-badge",7),l()}if(t&2){let e=c().$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(),y(e.icon?1:-1),s(2),T(e.title),s(),y(e.taskCountBadge===!0&&o.runningTaskCount()>0?4:-1)}}function So(t,n){t&1&&Re(0)}function Po(t,n){if(t&1&&(r(0,"li",4)(1,"ul"),P(2,So,1,0,"ng-container",2),l()()),t&2){let e=c().$implicit;c(2);let o=N(3);d("nzPaddingLeft",e.level*24)("nzOpen",e.open)("nzTitle",e.title)("nzIcon",e.icon)("nzDisabled",e.disabled),s(2),d("ngTemplateOutlet",o)("ngTemplateOutletContext",Ve(7,An,e.children))}}function No(t,n){if(t&1&&v(0,wo,5,7,"li",3)(1,Po,3,9,"li",4),t&2){let e=n.$implicit;y(e.children?1:0)}}function To(t,n){if(t&1&&O(0,No,2,1,null,null,bt),t&2){let e=n.$implicit;E(e)}}var Ie=class t{isCollapsed=!1;menus=[];menuService=f(Oe);taskBootstrap=f(Ee);runtimeStore=f(be);runningTaskCount=D(()=>this.runtimeStore.totalRunningCountSignal()());ngOnInit(){this.menus=this.menuService.getMenus(),this.taskBootstrap.initActiveSnapshot()}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=_({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,Mo,1,0,"ng-container",2)(2,To,2,0,"ng-template",null,0,X),l()),e&2){let i=N(3);d("nzInlineCollapsed",o.isCollapsed),s(),d("ngTemplateOutlet",i)("ngTemplateOutletContext",Ve(3,An,o.menus))}},dependencies:[pe,R,Q,Z,mn,b,S,F,_e,Ce,zn,yn],encapsulation:2})};function Eo(t,n){if(t&1){let e=z();r(0,"div",3)(1,"label",4),m(2,"\u540D\u79F0"),l(),r(3,"nz-input-wrapper")(4,"input",5),C("ngModelChange",function(i){g(e);let a=c(2);return h(a.projectState.editingProject().name=i)})("keydown.enter",function(){g(e);let i=c(2);return h(i.projectState.confirmEditProject())}),l(),p(5,"nz-icon",6),l(),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"),l(),r(8,"label",4),m(9,"\u4ED3\u5E93\u7F51\u9875\u5730\u5740"),l(),r(10,"nz-input-wrapper")(11,"input",8),C("ngModelChange",function(i){g(e);let a=c(2);return h(a.projectState.editingProject().repoPageUrl=i)}),l(),p(12,"nz-icon",9),l(),r(13,"label",4),m(14,"\u63CF\u8FF0"),l(),r(15,"nz-input-wrapper")(16,"textarea",10),C("ngModelChange",function(i){g(e);let a=c(2);return h(a.projectState.editingProject().description=i)})("keydown.enter",function(){g(e);let i=c(2);return h(i.projectState.confirmEditProject())}),l()()()}if(t&2){let e=c(2);s(4),d("ngModel",e.editingProject().name),s(7),d("ngModel",e.editingProject().repoPageUrl),s(5),d("ngModel",e.editingProject().description)}}function Io(t,n){if(t&1&&(U(0),v(1,Eo,17,3,"div",3),$()),t&2){let e=c();s(),y(e.editingProject()?1:-1)}}function jo(t,n){if(t&1){let e=z();U(0),r(1,"button",11),C("click",function(){g(e);let i=c();return h(i.projectState.closeEditModal())}),m(2,"\u53D6\u6D88"),l(),r(3,"button",12),C("click",function(){g(e);let i=c();return h(i.projectState.confirmEditProject())}),m(4," \u786E\u5B9A "),l(),$()}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 je=class t{projectState=f(ee);editingProject=this.projectState.editingProject;static \u0275fac=function(e){return new(e||t)};static \u0275cmp=_({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","\u4ED3\u5E93\u7F51\u9875\u5730\u5740",3,"ngModelChange","ngModel"],["nzInputPrefix","","nzType","global","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),C("nzOnCancel",function(){return o.projectState.closeEditModal()}),P(1,Io,2,1,"ng-container",1)(2,jo,5,2,"ng-container",2),l()),e&2&&d("nzClosable",!1)("nzMaskClosable",!1)("nzVisible",o.projectState.isEditModalVisible())},dependencies:[L,he,an,fe,ge,pn,sn,cn,ln,A,B,k,ue,ze,hn,gn,fn,b,S],styles:[".modal-body[_ngcontent-%COMP%]{display:grid;gap:12px}.hint[_ngcontent-%COMP%]{font-size:12px;opacity:.75}"]})};var Lo=()=>({width:"100%"}),Rn=(t,n)=>n.id;function Fo(t,n){t&1&&p(0,"nz-icon",2)}function ko(t,n){if(t&1){let e=z();r(0,"li",7),p(1,"nz-icon",11),r(2,"span"),m(3,"\u6DFB\u52A0/\u53D6\u6D88\u6536\u85CF"),l(),r(4,"nz-switch",12),C("ngModelChange",function(){let i;g(e);let a=c();return h(a.projectState.toggleFavorite((i=a.projectState.currentProject())==null?null:i.id))}),l()(),r(5,"li",13),C("click",function(){let i;g(e);let a=c();return h(a.projectState.openInEditor((i=a.projectState.currentProject())==null?null:i.id))}),p(6,"nz-icon",14),r(7,"span"),m(8,"\u5728\u7F16\u8F91\u5668\u4E2D\u6253\u5F00"),l()(),r(9,"li",13),C("click",function(){g(e);let i=c();return h(i.projectState.openEditModal(i.projectState.currentProject()))}),p(10,"nz-icon",15),r(11,"span"),m(12,"\u7F16\u8F91\u9879\u76EE"),l()()}if(t&2){let e,o,i,a=c();s(),d("nzTheme",(e=a.projectState.currentProject())!=null&&e.isFavorite?"fill":"outline"),s(3),d("nzDisabled",!((o=a.projectState.currentProject())!=null&&o.id))("ngModel",(i=a.projectState.currentProject())==null?null:i.isFavorite)}}function Bo(t,n){if(t&1){let e=z();r(0,"li",13),C("click",function(){let i=g(e).$implicit,a=c();return h(a.projectState.selectProject(i))}),p(1,"nz-icon",16),r(2,"span"),m(3),l()()}if(t&2){let e=n.$implicit;s(3),T(e.name)}}function Ao(t,n){if(t&1){let e=z();r(0,"li",13),C("click",function(){let i=g(e).$implicit,a=c();return h(a.projectState.selectProject(i))}),p(1,"nz-icon",11),r(2,"span"),m(3),l()()}if(t&2){let e=n.$implicit;s(),d("nzTheme",e.isFavorite?"fill":"outline"),s(2),T(e.name)}}var Le=class t{constructor(n){this.projectState=n}isCollapsed=Et(!1);curProjectName=D(()=>{let n=this.projectState.currentProject()?.name||"\u8BF7\u9009\u62E9\u9879\u76EE";return this.isCollapsed()?n?.charAt(0).toUpperCase():n});ngOnInit(){this.projectState.getProjects()}static \u0275fac=function(e){return new(e||t)(ae(ee))};static \u0275cmp=_({type:t,selectors:[["ngm-project-nav"]],inputs:{isCollapsed:[1,"isCollapsed"]},outputs:{isCollapsed:"isCollapsedChange"},decls:23,vars:9,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"],["nzType","star",3,"nzTheme"],[2,"margin-left","6px",3,"ngModelChange","nzDisabled","ngModel"],["nz-menu-item","",1,"item",3,"click"],["nzType","code"],["nzType","edit"],["nzType","star","nzTheme","fill"]],template:function(e,o){if(e&1&&(r(0,"button",1)(1,"span"),m(2),l(),v(3,Fo,1,0,"nz-icon",2),l(),r(4,"nz-dropdown-menu",3,0)(6,"ul",4),v(7,ko,13,3),p(8,"li",5)(9,"li",6),O(10,Bo,4,1,"li",7,Rn),p(12,"li",5)(13,"li",8),O(14,Ao,4,2,"li",7,Rn),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"),l()()()()(),p(22,"app-project-edit-modal")),e&2){let i=N(5);I("collapsed",o.isCollapsed()),d("nzDropdownMenu",i)("nzPlacement","bottomCenter")("nzOverlayStyle",ce(8,Lo)),s(2),T(o.curProjectName()),s(),y(o.isCollapsed()?-1:3),s(4),y(o.projectState.currentProject()?7:-1),s(3),E(o.projectState.favoriteProjects()),s(4),E(o.projectState.recentProjects())}},dependencies:[L,he,fe,ge,K,Q,Z,un,dn,J,ye,ve,R,b,S,_n,Cn,A,B,k,ue,F,de,je],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%] a[_ngcontent-%COMP%]{color:var(--app-text-color);display:flex;width:100%;align-items:center;gap:8px}"]})};var Fe=class t{router=f(G);state=f(De);isCollapsed=this.state.isCollapsed;constructor(){}isActive(n){return this.router.url.startsWith(n)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=_({type:t,selectors:[["ngm-sidebar"]],hostVars:4,hostBindings:function(e,o){e&2&&I("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=z();r(0,"nz-sider",1),Nt("nzCollapsedChange",function(u){return g(i),Pt(o.isCollapsed,u)||(o.isCollapsed=u),h(u)}),r(1,"div",2),p(2,"ngm-project-nav",3),l(),r(3,"div",4),p(4,"ngm-menu",3),r(5,"button",5),p(6,"nz-icon",6),l()()(),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"),l()()(),r(15,"li",8)(16,"a",11),p(17,"nz-icon",12),r(18,"span"),m(19,"\u5173\u4E8E"),l()()()()()}if(e&2){let i=N(8);St("nzCollapsed",o.isCollapsed),d("nzTrigger",null),s(2),d("isCollapsed",o.isCollapsed()),s(2),d("isCollapsed",o.isCollapsed()),s(),d("nzDropdownMenu",i)}},dependencies:[V,wn,b,S,R,Q,Z,Ie,Le,A,B,k,K,J,ye,ve,F,de],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 Ro(t,n){if(t&1){let e=z();r(0,"div",4),C("transitionend",function(i){g(e);let a=c();return h(a.onWrapTransitionEnd(i))}),r(1,"div",5),C("animationend",function(i){g(e);let a=c();return h(a.onInnerAnimationEnd(i))}),p(2,"ngm-header"),l()()}if(t&2){let e=c();I("leaving",e.leaving()),s(),I("leaving",e.leaving())}}var ke=class t{ws=f(Me);constructor(){this.ws.connect(),oe(()=>this.syncVisible())}wsState=Zt(this.ws.stateChanges(),{initialValue:"idle"});shouldShow=D(()=>this.wsState()!=="open");visible=M(!1);leaving=M(!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=_({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),v(1,Ro,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"),l()()()(),p(8,"ngm-footer"),l()),e&2&&(s(),y(o.visible()?1:-1))},dependencies:[F,Ut,V,Sn,Mn,kn,b,R,Fe,Te,Ne],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 Wn=`
|
|
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
|
+
`,Hn=`
|
|
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
|
+
`,Un=`
|
|
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
|
+
`,$n=`
|
|
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
|
+
`,Gn=`
|
|
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
|
+
`;var Be=class t{constructor(n){this.icons=n}inited=!1;init(){this.inited||(this.inited=!0,this.icons.addIconLiteral("proj:angular",Wn),this.icons.addIconLiteral("proj:vue",Hn),this.icons.addIconLiteral("proj:react",Un),this.icons.addIconLiteral("proj:node",$n),this.icons.addIconLiteral("proj:eslint",Gn))}static \u0275fac=function(e){return new(e||t)(ie(Qt))};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})};var Ae=class t{constructor(n){n.init()}static \u0275fac=function(e){return new(e||t)(ae(Be))};static \u0275cmp=_({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(e,o){e&1&&p(0,"ngm-layout")},dependencies:[ke],styles:["[_nghost-%COMP%]{display:block;height:100vh}"]})};At(Ae,jn).catch(t=>console.error(t));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as be,aa as O,cb as B,d as fe,fb as D,gb as me,kb as ze,ob as ge,sb as Ce,w as E,x as y,z as r}from"./chunk-J43J3F2V.js";import{$b as oe,Ba as ee,Ca as u,Eb as f,Fb as b,Fc as d,Ha as te,Ic as de,Kc as ue,Oa as j,Ra as v,Tb as w,Uc as g,_b as ne,ac as G,bc as _,cc as F,dc as se,ec as P,ed as H,fc as $,fd as le,gc as re,gd as he,hd as pe,i as Y,kc as ae,l as C,la as l,lc as ce,ld as I,ma as h,mb as k,n as S,na as p,pa as V,qc as L,ra as o,rb as R,rd as M,sb as N,tc as Z,ub as ie,uc as m,vc as z,vd as c,xa as X,xc as x,ya as J,yc as T,zc as A}from"./chunk-SJG2JCPL.js";var W=["*"],Re=["inputElement"],Ne=["nz-checkbox",""],Fe=(n,s)=>s.value;function Me(n,s){if(n&1&&(_(0,"label",0),de(1),F()),n&2){let e=s.$implicit,i=Z(2);G("nzValue",e.value)("nzName",i.nzName())("nzDisabled",e.disabled||i.finalDisabled()),k(),ue(" ",e.label," ")}}function Ee(n,s){if(n&1&&ne(0,Me,2,4,"label",0,Fe),n&2){let e=Z();oe(e.normalizedOptions())}}var Oe=(()=>{class n{nzOnChange=new R;checkboxList=[];addCheckbox(e){this.checkboxList.push(e)}removeCheckbox(e){this.checkboxList.splice(this.checkboxList.indexOf(e),1)}onChange(){let e=this.checkboxList.filter(i=>i.nzChecked).map(i=>i.nzValue);this.nzOnChange.emit(e)}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=f({type:n,selectors:[["nz-checkbox-wrapper"]],hostAttrs:[1,"ant-checkbox-group"],outputs:{nzOnChange:"nzOnChange"},exportAs:["nzCheckboxWrapper"],ngContentSelectors:W,decls:1,vars:0,template:function(i,t){i&1&&(m(),z(0))},encapsulation:2,changeDetection:0})}return n})(),ve=new V(""),ke=(()=>{class n{ngZone=o(N);elementRef=o(v);cdr=o(M);focusMonitor=o(O);directionality=o(y);destroyRef=o(u);checkboxGroupComponent=o(ve,{optional:!0});nzFormStatusService=o(B,{optional:!0});nzCheckboxWrapperComponent=o(Oe,{optional:!0});dir="ltr";destroy$=new C;isNzDisableFirstChange=!0;onChange=()=>{};onTouched=()=>{};inputElement;nzCheckedChange=new R;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&&he(()=>{let e=this.checkboxGroupComponent.value()||[];this.setValue(e.includes(this.nzValue)),this.cdr.markForCheck()})}ngOnInit(){this.focusMonitor.monitor(this.elementRef,!0).pipe(r(this.destroyRef)).subscribe(e=>{e||Promise.resolve().then(()=>this.onTouched())}),this.nzCheckboxWrapperComponent?.addCheckbox(this),this.directionality.change.pipe(r(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value,E(this.elementRef.nativeElement,"click").pipe(r(this.destroyRef)).subscribe(e=>{e.preventDefault(),this.focus(),!this.nzDisabled&&this.ngZone.run(()=>{this.innerCheckedChange(!this.nzChecked),this.cdr.markForCheck()})}),E(this.inputElement.nativeElement,"click").pipe(r(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(i){return new(i||n)};static \u0275cmp=f({type:n,selectors:[["","nz-checkbox",""]],viewQuery:function(i,t){if(i&1&&x(Re,7),i&2){let a;T(a=A())&&(t.inputElement=a.first)}},hostAttrs:[1,"ant-checkbox-wrapper"],hostVars:10,hostBindings:function(i,t){i&2&&d("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:[g([{provide:D,useExisting:l(()=>n),multi:!0}])],attrs:Ne,ngContentSelectors:W,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(i,t){if(i&1){let a=ae();m(),_(0,"span",1)(1,"input",2,0),L("ngModelChange",function(De){return X(a),J(t.innerCheckedChange(De))}),F(),se(3,"span",3),F(),_(4,"span"),z(5),F()}i&2&&(d("ant-checkbox-checked",t.nzChecked&&!t.nzIndeterminate)("ant-checkbox-disabled",t.nzDisabled||(t.checkboxGroupComponent==null?null:t.checkboxGroupComponent.finalDisabled()))("ant-checkbox-indeterminate",t.nzIndeterminate),k(),G("checked",t.nzChecked)("ngModel",t.nzChecked)("disabled",t.nzDisabled||((t.checkboxGroupComponent==null?null:t.checkboxGroupComponent.finalDisabled())??!1)),w("autofocus",t.nzAutoFocus?"autofocus":null)("id",t.nzId)("name",t.nzName||(t.checkboxGroupComponent==null?null:t.checkboxGroupComponent.nzName())))},dependencies:[Ce,me,ze,ge],encapsulation:2,changeDetection:0})}return n})(),Se=(()=>{class n{onChange=()=>{};onTouched=()=>{};isDisabledFirstChange=!0;directionality=o(y);nzName=I(null);nzDisabled=I(!1,{transform:c});nzOptions=I([]);value=te(null);finalDisabled=pe(()=>this.nzDisabled());dir=be(this.directionality.change,{initialValue:this.directionality.value});normalizedOptions=le(()=>we(this.nzOptions()));constructor(){let e=o(v),i=o(O),t=o(u);ie(()=>{i.monitor(e,!0).pipe(r(t)).subscribe(a=>{a||this.onTouched()}),t.onDestroy(()=>{i.stopMonitoring(e)})})}writeValue(e){H(()=>{this.value.set(e)})}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){H(()=>{this.finalDisabled.set(this.isDisabledFirstChange&&this.nzDisabled()||e)}),this.isDisabledFirstChange=!1}onCheckedChange(e,i){this.finalDisabled()||(this.value.update(t=>i?t?.concat(e)||[e]:t?.filter(a=>a!==e)||[]),this.onChange(this.value()))}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=f({type:n,selectors:[["nz-checkbox-group"]],hostAttrs:[1,"ant-checkbox-group"],hostVars:2,hostBindings:function(i,t){i&2&&d("ant-checkbox-group-rtl",t.dir()==="rtl")},inputs:{nzName:[1,"nzName"],nzDisabled:[1,"nzDisabled"],nzOptions:[1,"nzOptions"]},exportAs:["nzCheckboxGroup"],features:[g([{provide:D,useExisting:l(()=>n),multi:!0},{provide:ve,useExisting:l(()=>n)}])],ngContentSelectors:W,decls:2,vars:0,consts:[["nz-checkbox","",3,"nzValue","nzName","nzDisabled"]],template:function(i,t){i&1&&(m(),z(0,0,null,Ee,2,0))},dependencies:[ke],encapsulation:2,changeDetection:0})}return n})();function we(n){return n.map(s=>typeof s=="string"||typeof s=="number"?{label:`${s}`,value:s}:s)}var Xe=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=b({type:n});static \u0275inj=p({imports:[ke,Se]})}return n})();var ye=["*"],_e=["inputElement"],xe=["nz-radio",""],U=(()=>{class n{selected$=new S(1);touched$=new C;disabled$=new S(1);name$=new S(1);touch(){this.touched$.next()}select(e){this.selected$.next(e)}setDisabled(e){this.disabled$.next(e)}setName(e){this.name$.next(e)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=h({token:n,factory:n.\u0275fac})}return n})(),bt=(()=>{class n{cdr=o(M);nzRadioService=o(U);directionality=o(y);destroyRef=o(u);value=null;isNzDisableFirstChange=!0;onChange=()=>{};onTouched=()=>{};nzDisabled=!1;nzButtonStyle="outline";nzSize="default";nzName=null;dir="ltr";ngOnInit(){this.nzRadioService.selected$.pipe(r(this.destroyRef)).subscribe(e=>{this.value!==e&&(this.value=e,this.onChange(this.value))}),this.nzRadioService.touched$.pipe(r(this.destroyRef)).subscribe(()=>{Promise.resolve().then(()=>this.onTouched())}),this.directionality.change?.pipe(r(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(e){let{nzDisabled:i,nzName:t}=e;i&&this.nzRadioService.setDisabled(this.nzDisabled),t&&this.nzRadioService.setName(this.nzName)}writeValue(e){this.value=e,this.nzRadioService.select(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.nzRadioService.setDisabled(this.nzDisabled),this.cdr.markForCheck()}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=f({type:n,selectors:[["nz-radio-group"]],hostAttrs:[1,"ant-radio-group"],hostVars:8,hostBindings:function(i,t){i&2&&d("ant-radio-group-large",t.nzSize==="large")("ant-radio-group-small",t.nzSize==="small")("ant-radio-group-solid",t.nzButtonStyle==="solid")("ant-radio-group-rtl",t.dir==="rtl")},inputs:{nzDisabled:[2,"nzDisabled","nzDisabled",c],nzButtonStyle:"nzButtonStyle",nzSize:"nzSize",nzName:"nzName"},exportAs:["nzRadioGroup"],features:[g([U,{provide:D,useExisting:l(()=>n),multi:!0}]),j],ngContentSelectors:ye,decls:1,vars:0,template:function(i,t){i&1&&(m(),z(0))},encapsulation:2,changeDetection:0})}return n})(),mt=(()=>{class n{directionality=o(y);nzRadioService=o(U,{optional:!0});ngZone=o(N);elementRef=o(v);cdr=o(M);focusMonitor=o(O);destroyRef=o(u);nzFormStatusService=o(B,{optional:!0});isNgModel=!1;isNzDisableFirstChange=!0;isChecked=!1;name=null;onChange=()=>{};onTouched=()=>{};inputElement;nzValue=null;nzDisabled=!1;nzAutoFocus=!1;isRadioButton=!1;dir="ltr";focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(){this.destroyRef.onDestroy(()=>{this.focusMonitor.stopMonitoring(this.elementRef)})}setDisabledState(e){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||e,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}writeValue(e){this.isChecked=e,this.cdr.markForCheck()}registerOnChange(e){this.isNgModel=!0,this.onChange=e}registerOnTouched(e){this.onTouched=e}ngOnInit(){this.nzRadioService&&(this.nzRadioService.name$.pipe(r(this.destroyRef)).subscribe(e=>{this.name=e,this.cdr.markForCheck()}),this.nzRadioService.disabled$.pipe(r(this.destroyRef)).subscribe(e=>{this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||e,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}),this.nzRadioService.selected$.pipe(r(this.destroyRef)).subscribe(e=>{let i=this.isChecked;this.isChecked=this.nzValue===e,this.isNgModel&&i!==this.isChecked&&this.isChecked===!1&&this.onChange(!1),this.cdr.markForCheck()})),this.focusMonitor.monitor(this.elementRef,!0).pipe(r(this.destroyRef)).subscribe(e=>{e||(Promise.resolve().then(()=>this.onTouched()),this.nzRadioService&&this.nzRadioService.touch())}),this.directionality.change.pipe(r(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.setupClickListener()}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}setupClickListener(){E(this.elementRef.nativeElement,"click").pipe(r(this.destroyRef)).subscribe(e=>{e.stopPropagation(),e.preventDefault(),!(this.nzDisabled||this.isChecked)&&this.ngZone.run(()=>{this.focus(),this.nzRadioService?.select(this.nzValue),this.isNgModel&&(this.isChecked=!0,this.onChange(!0)),this.cdr.markForCheck()})})}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=f({type:n,selectors:[["","nz-radio",""],["","nz-radio-button",""]],viewQuery:function(i,t){if(i&1&&x(_e,7),i&2){let a;T(a=A())&&(t.inputElement=a.first)}},hostVars:18,hostBindings:function(i,t){i&2&&d("ant-radio-wrapper-in-form-item",!!t.nzFormStatusService)("ant-radio-wrapper",!t.isRadioButton)("ant-radio-button-wrapper",t.isRadioButton)("ant-radio-wrapper-checked",t.isChecked&&!t.isRadioButton)("ant-radio-button-wrapper-checked",t.isChecked&&t.isRadioButton)("ant-radio-wrapper-disabled",t.nzDisabled&&!t.isRadioButton)("ant-radio-button-wrapper-disabled",t.nzDisabled&&t.isRadioButton)("ant-radio-wrapper-rtl",!t.isRadioButton&&t.dir==="rtl")("ant-radio-button-wrapper-rtl",t.isRadioButton&&t.dir==="rtl")},inputs:{nzValue:"nzValue",nzDisabled:[2,"nzDisabled","nzDisabled",c],nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",c],isRadioButton:[2,"nz-radio-button","isRadioButton",c]},exportAs:["nzRadio"],features:[g([{provide:D,useExisting:l(()=>n),multi:!0}])],attrs:xe,ngContentSelectors:ye,decls:6,vars:24,consts:[["inputElement",""],["type","radio",3,"disabled","checked"]],template:function(i,t){i&1&&(m(),P(0,"span"),re(1,"input",1,0)(3,"span"),$(),P(4,"span"),z(5),$()),i&2&&(d("ant-radio",!t.isRadioButton)("ant-radio-checked",t.isChecked&&!t.isRadioButton)("ant-radio-disabled",t.nzDisabled&&!t.isRadioButton)("ant-radio-button",t.isRadioButton)("ant-radio-button-checked",t.isChecked&&t.isRadioButton)("ant-radio-button-disabled",t.nzDisabled&&t.isRadioButton),k(),d("ant-radio-input",!t.isRadioButton)("ant-radio-button-input",t.isRadioButton),ce("disabled",t.nzDisabled)("checked",t.isChecked),w("autofocus",t.nzAutoFocus?"autofocus":null)("name",t.name),k(2),d("ant-radio-inner",!t.isRadioButton)("ant-radio-button-inner",t.isRadioButton))},encapsulation:2,changeDetection:0})}return n})(),zt=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=b({type:n});static \u0275inj=p({})}return n})();var Ae=(()=>{class n{create(e){return typeof ResizeObserver>"u"?null:new ResizeObserver(e)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=h({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Mt=(()=>{class n{nzResizeObserverFactory=o(Ae);destroyRef=o(u);observedElements=new Map;constructor(){this.destroyRef.onDestroy(()=>this.observedElements.forEach((e,i)=>this.cleanupObserver(i)))}observe(e){let i=fe(e);return new Y(t=>{let q=this.observeElement(i).subscribe(t);return()=>{q.unsubscribe(),this.unobserveElement(i)}})}observeElement(e){if(this.observedElements.has(e))this.observedElements.get(e).count++;else{let i=new C,t=this.nzResizeObserverFactory.create(a=>i.next(a));t&&t.observe(e),this.observedElements.set(e,{observer:t,stream:i,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:i,stream:t}=this.observedElements.get(e);i&&i.disconnect(),t.complete(),this.observedElements.delete(e)}}static \u0275fac=function(i){return new(i||n)};static \u0275prov=h({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var K=class{_document;_textarea;constructor(s,e){this._document=e;let i=this._textarea=this._document.createElement("textarea"),t=i.style;t.position="fixed",t.top=t.opacity="0",t.left="-999em",i.setAttribute("aria-hidden","true"),i.value=s,i.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(i)}copy(){let s=this._textarea,e=!1;try{if(s){let i=this._document.activeElement;s.select(),s.setSelectionRange(0,s.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch{}return e}destroy(){let s=this._textarea;s&&(s.remove(),this._textarea=void 0)}},At=(()=>{class n{_document=o(ee);constructor(){}copy(e){let i=this.beginCopy(e),t=i.copy();return i.destroy(),t}beginCopy(e){return new K(e,this._document)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=h({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var It=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=b({type:n});static \u0275inj=p({})}return n})();export{ke as a,Xe as b,bt as c,mt as d,zt as e,Mt as f,At as g,It as h};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as Ue,b as Ke,d as nn,f as _t}from"./chunk-5RKAWOOJ.js";import{a as on}from"./chunk-ZJKBRM7K.js";import{b as Ut,c as Kt,d as Gt,e as en,f as tn}from"./chunk-TN5O5PXP.js";import{c as qe,l as ft,n as gt,r as Ae,t as Ct,u as Ze}from"./chunk-A6CKMRBS.js";import{$a as qt,F as Ve,G as Rt,H as W,I as Et,M as Oe,N as Pe,O as $t,P as Vt,V as Bt,W as At,Y as Lt,Ya as Xt,Z as Wt,_a as Yt,bb as Zt,e as kt,ja as Qt,k as zt,ka as Ht,kb as De,ma as Be,na as jt,oa as Jt,ob as Fe,s as Mt,sb as Ne,w as Ye,x as ve,z as b}from"./chunk-J43J3F2V.js";import{d as K,e as ut}from"./chunk-53YRDYLS.js";import{$b as ze,B as te,C as de,Ca as q,Dc as R,Eb as M,Ec as Te,Fb as Qe,Fc as $,Gb as He,Gc as Ee,Ic as X,Jc as fe,Kb as k,Kc as ge,L as st,M as ke,Oa as J,Q as ct,Ra as ae,T as dt,Tb as le,U as Le,Ub as wt,Uc as Nt,Vb as _,Wb as vt,Xb as S,Xc as $e,Yb as ht,Zb as Ot,Zc as ye,_b as ue,_c as we,a as lt,ac as c,ad as ee,b as rt,ba as Tt,bc as h,ca as Me,cc as m,da as Re,dc as P,f as oe,gc as Pt,hc as je,ic as Je,jc as mt,kc as E,l as Se,lc as Dt,ld as It,m as Q,ma as pt,mb as r,n as H,na as We,qc as D,r as L,ra as z,rb as F,rd as he,s as y,sb as xe,tc as l,uc as pe,vb as yt,vc as ne,vd as w,wc as Ft,wd as Xe,xa as v,xb as be,xc as G,ya as O,yc as Z,zc as U}from"./chunk-SJG2JCPL.js";var yn=["nz-pagination-item",""],wn=(t,a)=>({$implicit:t,page:a});function vn(t,a){if(t&1&&(h(0,"a"),X(1),m()),t&2){let e=l().page;r(),fe(e)}}function On(t,a){t&1&&P(0,"nz-icon",4)}function Pn(t,a){t&1&&P(0,"nz-icon",5)}function Dn(t,a){if(t&1&&(h(0,"button",2),_(1,On,1,0,"nz-icon",4)(2,Pn,1,0,"nz-icon",5),m()),t&2){let e=l(2);c("disabled",e.disabled),le("title",e.locale.prev_page),r(),S(e.direction==="rtl"?1:2)}}function Fn(t,a){t&1&&P(0,"nz-icon",5)}function Nn(t,a){t&1&&P(0,"nz-icon",4)}function In(t,a){if(t&1&&(h(0,"button",2),_(1,Fn,1,0,"nz-icon",5)(2,Nn,1,0,"nz-icon",4),m()),t&2){let e=l(2);c("disabled",e.disabled),le("title",e.locale.next_page),r(),S(e.direction==="rtl"?1:2)}}function kn(t,a){t&1&&P(0,"nz-icon",8)}function Mn(t,a){t&1&&P(0,"nz-icon",9)}function Rn(t,a){if(t&1&&_(0,kn,1,0,"nz-icon",8)(1,Mn,1,0,"nz-icon",9),t&2){let e=l(3);S(e.direction==="rtl"?0:1)}}function En(t,a){t&1&&P(0,"nz-icon",9)}function $n(t,a){t&1&&P(0,"nz-icon",8)}function Vn(t,a){if(t&1&&_(0,En,1,0,"nz-icon",9)(1,$n,1,0,"nz-icon",8),t&2){let e=l(3);S(e.direction==="rtl"?0:1)}}function Bn(t,a){if(t&1&&(h(0,"a",3)(1,"div",6),_(2,Rn,2,1)(3,Vn,2,1),h(4,"span",7),X(5,"\u2022\u2022\u2022"),m()()()),t&2){let e,n=l().$implicit;r(2),S((e=n)==="prev_5"?2:e==="next_5"?3:-1)}}function An(t,a){if(t&1&&_(0,vn,2,1,"a")(1,Dn,3,3,"button",2)(2,In,3,3,"button",2)(3,Bn,6,1,"a",3),t&2){let e,n=a.$implicit;S((e=n)==="page"?0:e==="prev"?1:e==="next"?2:3)}}function Ln(t,a){}var Wn=["nz-pagination-options",""],Qn=(t,a)=>a.value;function Hn(t,a){if(t&1&&P(0,"nz-option",3),t&2){let e=a.$implicit;c("nzLabel",e.label)("nzValue",e.value)}}function jn(t,a){if(t&1){let e=E();h(0,"nz-select",2),D("ngModelChange",function(i){v(e);let o=l();return O(o.onPageSizeChange(i))}),ue(1,Hn,1,2,"nz-option",3,Qn),m()}if(t&2){let e=l();c("nzDisabled",e.disabled)("nzSize",e.nzSize)("ngModel",e.pageSize),r(),ze(e.listOfPageSizeOption)}}function Jn(t,a){if(t&1){let e=E();h(0,"div",1),X(1),h(2,"input",4),D("keydown.enter",function(i){v(e);let o=l();return O(o.jumpToPageViaInput(i))}),m(),X(3),m()}if(t&2){let e=l();r(),ge(" ",e.locale.jump_to," "),r(),c("disabled",e.disabled),r(),ge(" ",e.locale.page," ")}}var an=["containerTemplate"],Xn=(t,a)=>({$implicit:t,range:a});function Yn(t,a){}function qn(t,a){if(t&1&&(h(0,"li",1),k(1,Yn,0,0,"ng-template",4),m()),t&2){let e=l(2);r(),c("ngTemplateOutlet",e.showTotal)("ngTemplateOutletContext",$e(2,Xn,e.total,e.ranges))}}function Zn(t,a){if(t&1){let e=E();h(0,"li",5),D("gotoIndex",function(i){v(e);let o=l(2);return O(o.jumpPage(i))})("diffIndex",function(i){v(e);let o=l(2);return O(o.jumpDiff(i))}),m()}if(t&2){let e=a.$implicit,n=l(2);c("locale",n.locale)("type",e.type)("index",e.index)("disabled",!!e.disabled)("itemRender",n.itemRender)("active",n.pageIndex===e.index)("direction",n.dir)}}function Un(t,a){if(t&1){let e=E();h(0,"li",6),D("pageIndexChange",function(i){v(e);let o=l(2);return O(o.onPageIndexChange(i))})("pageSizeChange",function(i){v(e);let o=l(2);return O(o.onPageSizeChange(i))}),m()}if(t&2){let e=l(2);c("total",e.total)("locale",e.locale)("disabled",e.disabled)("nzSize",e.nzSize)("showSizeChanger",e.showSizeChanger)("showQuickJumper",e.showQuickJumper)("pageIndex",e.pageIndex)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)}}function Kn(t,a){if(t&1&&(h(0,"ul"),_(1,qn,2,5,"li",1),ue(2,Zn,1,7,"li",2,wt().trackByPageItem,!0),_(4,Un,1,9,"li",3),m()),t&2){let e=l();r(),S(e.showTotal?1:-1),r(),ze(e.listOfPageItem),r(2),S(e.showQuickJumper||e.showSizeChanger?4:-1)}}function Gn(t,a){if(t&1){let e=E();h(0,"ul")(1,"li",1),D("click",function(){v(e);let i=l();return O(i.prePage())}),m(),h(2,"li",2)(3,"input",3),D("keydown.enter",function(i){v(e);let o=l();return O(o.jumpToPageViaInput(i))}),m(),h(4,"span",4),X(5,"/"),m(),X(6),m(),h(7,"li",5),D("click",function(){v(e);let i=l();return O(i.nextPage())}),m()()}if(t&2){let e=l();r(),c("locale",e.locale)("disabled",e.isFirstIndex)("direction",e.dir)("itemRender",e.itemRender),le("title",e.locale.prev_page),r(),le("title",e.pageIndex+"/"+e.lastIndex),r(),c("disabled",e.disabled)("value",e.pageIndex),r(3),ge(" ",e.lastIndex," "),r(),c("locale",e.locale)("disabled",e.isLastIndex)("direction",e.dir)("itemRender",e.itemRender),le("title",e.locale==null?null:e.locale.next_page)}}function ei(t,a){}function ti(t,a){if(t&1&&k(0,ei,0,0,"ng-template",4),t&2){l(2);let e=R(2);c("ngTemplateOutlet",e.template)}}function ni(t,a){}function ii(t,a){if(t&1&&k(0,ni,0,0,"ng-template",4),t&2){l(2);let e=R(4);c("ngTemplateOutlet",e.template)}}function oi(t,a){if(t&1&&_(0,ti,1,1,null,4)(1,ii,1,1,null,4),t&2){let e=l();S(e.nzSimple?0:1)}}var St=(()=>{class t{active=!1;locale;index=null;disabled=!1;direction="ltr";type=null;itemRender=null;diffIndex=new F;gotoIndex=new F;title=null;clickItem(){this.disabled||(this.type==="page"?this.gotoIndex.emit(this.index):this.diffIndex.emit({next:1,prev:-1,prev_5:-5,next_5:5}[this.type]))}ngOnChanges(e){let{locale:n,index:i,type:o}=e;(n||i||o)&&(this.title={page:`${this.index}`,next:this.locale?.next_page,prev:this.locale?.prev_page,prev_5:this.locale?.prev_5,next_5:this.locale?.next_5}[this.type])}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=M({type:t,selectors:[["li","nz-pagination-item",""]],hostVars:19,hostBindings:function(n,i){n&1&&D("click",function(){return i.clickItem()}),n&2&&(le("title",i.title),$("ant-pagination-prev",i.type==="prev")("ant-pagination-next",i.type==="next")("ant-pagination-item",i.type==="page")("ant-pagination-jump-prev",i.type==="prev_5")("ant-pagination-jump-prev-custom-icon",i.type==="prev_5")("ant-pagination-jump-next",i.type==="next_5")("ant-pagination-jump-next-custom-icon",i.type==="next_5")("ant-pagination-disabled",i.disabled)("ant-pagination-item-active",i.active))},inputs:{active:"active",locale:"locale",index:"index",disabled:"disabled",direction:"direction",type:"type",itemRender:"itemRender"},outputs:{diffIndex:"diffIndex",gotoIndex:"gotoIndex"},features:[J],attrs:yn,decls:3,vars:5,consts:[["renderItemTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button",1,"ant-pagination-item-link",3,"disabled"],[1,"ant-pagination-item-link"],["nzType","right"],["nzType","left"],[1,"ant-pagination-item-container"],[1,"ant-pagination-item-ellipsis"],["nzType","double-right",1,"ant-pagination-item-link-icon"],["nzType","double-left",1,"ant-pagination-item-link-icon"]],template:function(n,i){if(n&1&&k(0,An,4,1,"ng-template",null,0,ee)(2,Ln,0,0,"ng-template",1),n&2){let o=R(1);r(2),c("ngTemplateOutlet",i.itemRender||o)("ngTemplateOutletContext",$e(2,wn,i.type,i.index))}},dependencies:[Pe,Oe,K],encapsulation:2,changeDetection:0})}return t})(),ln=(()=>{class t{nzSize="default";disabled=!1;showSizeChanger=!1;showQuickJumper=!1;locale;total=0;pageIndex=1;pageSize=10;pageSizeOptions=[];pageIndexChange=new F;pageSizeChange=new F;listOfPageSizeOption=[];onPageSizeChange(e){this.pageSize!==e&&this.pageSizeChange.next(e)}jumpToPageViaInput(e){let n=e.target,i=Math.floor(zt(n.value,this.pageIndex));this.pageIndexChange.next(i),n.value=""}ngOnChanges(e){let{pageSize:n,pageSizeOptions:i,locale:o}=e;(n||i||o)&&(this.listOfPageSizeOption=[...new Set([...this.pageSizeOptions,this.pageSize])].map(s=>({value:s,label:`${s} ${this.locale.items_per_page}`})))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=M({type:t,selectors:[["li","nz-pagination-options",""]],hostAttrs:[1,"ant-pagination-options"],inputs:{nzSize:"nzSize",disabled:"disabled",showSizeChanger:"showSizeChanger",showQuickJumper:"showQuickJumper",locale:"locale",total:"total",pageIndex:"pageIndex",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions"},outputs:{pageIndexChange:"pageIndexChange",pageSizeChange:"pageSizeChange"},features:[J],attrs:Wn,decls:2,vars:2,consts:[[1,"ant-pagination-options-size-changer",3,"nzDisabled","nzSize","ngModel"],[1,"ant-pagination-options-quick-jumper"],[1,"ant-pagination-options-size-changer",3,"ngModelChange","nzDisabled","nzSize","ngModel"],[3,"nzLabel","nzValue"],[3,"keydown.enter","disabled"]],template:function(n,i){n&1&&(_(0,jn,3,3,"nz-select",0),_(1,Jn,4,3,"div",1)),n&2&&(S(i.showSizeChanger?0:-1),r(),S(i.showQuickJumper?1:-1))},dependencies:[tn,Gt,en,Ne,De,Fe],encapsulation:2,changeDetection:0})}return t})(),rn=(()=>{class t{cdr=z(he);directionality=z(ve);destroyRef=z(q);template;nzSize="default";itemRender=null;showTotal=null;disabled=!1;locale;showSizeChanger=!1;showQuickJumper=!1;total=0;pageIndex=1;pageSize=10;pageSizeOptions=[10,20,30,40];pageIndexChange=new F;pageSizeChange=new F;ranges=[0,0];listOfPageItem=[];dir="ltr";constructor(){let e=z(ae).nativeElement,n=z(be);n.removeChild(n.parentNode(e),e)}ngOnInit(){this.directionality.change?.pipe(b(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}jumpPage(e){this.onPageIndexChange(e)}jumpDiff(e){this.jumpPage(this.pageIndex+e)}trackByPageItem(e,n){return`${n.type}-${n.index}`}onPageIndexChange(e){this.pageIndexChange.next(e)}onPageSizeChange(e){this.pageSizeChange.next(e)}getLastIndex(e,n){return Math.ceil(e/n)}buildIndexes(){let e=this.getLastIndex(this.total,this.pageSize);this.listOfPageItem=this.getListOfPageItem(this.pageIndex,e)}getListOfPageItem(e,n){let i=s=>{let d={type:"prev",disabled:e===1},C={type:"next",disabled:e===n};return[d,...s,C]},o=(s,d)=>{let C=[];for(let I=s;I<=d;I++)C.push({index:I,type:"page"});return C};return n<=9?i(o(1,n)):i(((d,C)=>{let I=[],B={type:"prev_5"},j={type:"next_5"},Y=o(1,1),re=o(n,n);if(d<5)I=[...o(2,d===4?6:5),j];else if(d<C-3)I=[B,...o(d-2,d+2),j];else{let ie=d===C-3?C-5:C-4;I=[B,...o(ie,C-1)]}return[...Y,...I,...re]})(e,n))}ngOnChanges(e){let{pageIndex:n,pageSize:i,total:o}=e;(n||i||o)&&(this.ranges=[(this.pageIndex-1)*this.pageSize+1,Math.min(this.pageIndex*this.pageSize,this.total)],this.buildIndexes())}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=M({type:t,selectors:[["nz-pagination-default"]],viewQuery:function(n,i){if(n&1&&G(an,7),n&2){let o;Z(o=U())&&(i.template=o.first)}},hostVars:2,hostBindings:function(n,i){n&2&&$("ant-pagination-rtl",i.dir==="rtl")},inputs:{nzSize:"nzSize",itemRender:"itemRender",showTotal:"showTotal",disabled:"disabled",locale:"locale",showSizeChanger:"showSizeChanger",showQuickJumper:"showQuickJumper",total:"total",pageIndex:"pageIndex",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions"},outputs:{pageIndexChange:"pageIndexChange",pageSizeChange:"pageSizeChange"},features:[J],decls:2,vars:0,consts:[["containerTemplate",""],[1,"ant-pagination-total-text"],["nz-pagination-item","",3,"locale","type","index","disabled","itemRender","active","direction"],["nz-pagination-options","",3,"total","locale","disabled","nzSize","showSizeChanger","showQuickJumper","pageIndex","pageSize","pageSizeOptions"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["nz-pagination-item","",3,"gotoIndex","diffIndex","locale","type","index","disabled","itemRender","active","direction"],["nz-pagination-options","",3,"pageIndexChange","pageSizeChange","total","locale","disabled","nzSize","showSizeChanger","showQuickJumper","pageIndex","pageSize","pageSizeOptions"]],template:function(n,i){n&1&&k(0,Kn,5,2,"ng-template",null,0,ee)},dependencies:[K,St,ln],encapsulation:2,changeDetection:0})}return t})(),sn=(()=>{class t{cdr=z(he);directionality=z(ve);destroyRef=z(q);template;itemRender=null;disabled=!1;locale;total=0;pageIndex=1;pageSize=10;pageIndexChange=new F;lastIndex=0;isFirstIndex=!1;isLastIndex=!1;dir="ltr";constructor(){let e=z(ae).nativeElement,n=z(be);n.removeChild(n.parentNode(e),e)}ngOnInit(){this.directionality.change?.pipe(b(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}jumpToPageViaInput(e){let n=e.target,i=zt(n.value,this.pageIndex);this.onPageIndexChange(i),n.value=`${this.pageIndex}`}prePage(){this.onPageIndexChange(this.pageIndex-1)}nextPage(){this.onPageIndexChange(this.pageIndex+1)}onPageIndexChange(e){this.pageIndexChange.next(e)}updateBindingValue(){this.lastIndex=Math.ceil(this.total/this.pageSize),this.isFirstIndex=this.pageIndex===1,this.isLastIndex=this.pageIndex===this.lastIndex}ngOnChanges(e){let{pageIndex:n,total:i,pageSize:o}=e;(n||i||o)&&this.updateBindingValue()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=M({type:t,selectors:[["nz-pagination-simple"]],viewQuery:function(n,i){if(n&1&&G(an,7),n&2){let o;Z(o=U())&&(i.template=o.first)}},hostVars:2,hostBindings:function(n,i){n&2&&$("ant-pagination-rtl",i.dir==="rtl")},inputs:{itemRender:"itemRender",disabled:"disabled",locale:"locale",total:"total",pageIndex:"pageIndex",pageSize:"pageSize"},outputs:{pageIndexChange:"pageIndexChange"},features:[J],decls:2,vars:0,consts:[["containerTemplate",""],["nz-pagination-item","","type","prev",3,"click","locale","disabled","direction","itemRender"],[1,"ant-pagination-simple-pager"],["size","3",3,"keydown.enter","disabled","value"],[1,"ant-pagination-slash"],["nz-pagination-item","","type","next",3,"click","locale","disabled","direction","itemRender"]],template:function(n,i){n&1&&k(0,Gn,8,14,"ng-template",null,0,ee)},dependencies:[St],encapsulation:2,changeDetection:0})}return t})(),ai="pagination",xt=(()=>{var V;let t,a=[],e=[],n,i=[],o=[],s,d=[],C=[],I,B=[],j=[],Y,re=[],ie=[];return V=class{_nzModuleName=ai;i18n=z(qe);cdr=z(he);breakpointService=z(Zt);nzConfigService=z(Ve);directionality=z(ve);destroyRef=z(q);nzPageSizeChange=new F;nzPageIndexChange=new F;nzShowTotal=null;nzItemRender=null;nzSize=y(this,a,"default");nzPageSizeOptions=(y(this,e),y(this,i,[10,20,30,40]));nzShowSizeChanger=(y(this,o),y(this,d,!1));nzShowQuickJumper=(y(this,C),y(this,B,!1));nzSimple=(y(this,j),y(this,re,!1));nzDisabled=(y(this,ie),!1);nzResponsive=!1;nzHideOnSinglePage=!1;nzTotal=0;nzPageIndex=1;nzPageSize=10;nzAlign=It("start");showPagination=!0;locale;size="default";dir="ltr";total$=new H(1);validatePageIndex(x,u){return x>u?u:x<1?1:x}onPageIndexChange(x){let u=this.getLastIndex(this.nzTotal,this.nzPageSize),f=this.validatePageIndex(x,u);f!==this.nzPageIndex&&!this.nzDisabled&&(this.nzPageIndex=f,this.nzPageIndexChange.emit(this.nzPageIndex))}onPageSizeChange(x){this.nzPageSize=x,this.nzPageSizeChange.emit(x);let u=this.getLastIndex(this.nzTotal,this.nzPageSize);this.nzPageIndex>u&&this.onPageIndexChange(u)}onTotalChange(x){let u=this.getLastIndex(x,this.nzPageSize);this.nzPageIndex>u&&Promise.resolve().then(()=>{this.onPageIndexChange(u),this.cdr.markForCheck()})}getLastIndex(x,u){return Math.ceil(x/u)}ngOnInit(){this.i18n.localeChange.pipe(b(this.destroyRef)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Pagination"),this.cdr.markForCheck()}),this.total$.pipe(b(this.destroyRef)).subscribe(x=>{this.onTotalChange(x)}),this.breakpointService.subscribe(qt).pipe(b(this.destroyRef)).subscribe(x=>{this.nzResponsive&&(this.size=x===Yt.xs?"small":"default",this.cdr.markForCheck())}),this.directionality.change?.pipe(b(this.destroyRef)).subscribe(x=>{this.dir=x,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(x){let{nzHideOnSinglePage:u,nzTotal:f,nzPageSize:me,nzSize:A}=x;f&&this.total$.next(this.nzTotal),(u||f||me)&&(this.showPagination=this.nzHideOnSinglePage&&this.nzTotal>this.nzPageSize||this.nzTotal>0&&!this.nzHideOnSinglePage),A&&(this.size=A.currentValue)}},(()=>{let x=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[W()],n=[W()],s=[W()],I=[W()],Y=[W()],L(null,null,t,{kind:"field",name:"nzSize",static:!1,private:!1,access:{has:u=>"nzSize"in u,get:u=>u.nzSize,set:(u,f)=>{u.nzSize=f}},metadata:x},a,e),L(null,null,n,{kind:"field",name:"nzPageSizeOptions",static:!1,private:!1,access:{has:u=>"nzPageSizeOptions"in u,get:u=>u.nzPageSizeOptions,set:(u,f)=>{u.nzPageSizeOptions=f}},metadata:x},i,o),L(null,null,s,{kind:"field",name:"nzShowSizeChanger",static:!1,private:!1,access:{has:u=>"nzShowSizeChanger"in u,get:u=>u.nzShowSizeChanger,set:(u,f)=>{u.nzShowSizeChanger=f}},metadata:x},d,C),L(null,null,I,{kind:"field",name:"nzShowQuickJumper",static:!1,private:!1,access:{has:u=>"nzShowQuickJumper"in u,get:u=>u.nzShowQuickJumper,set:(u,f)=>{u.nzShowQuickJumper=f}},metadata:x},B,j),L(null,null,Y,{kind:"field",name:"nzSimple",static:!1,private:!1,access:{has:u=>"nzSimple"in u,get:u=>u.nzSimple,set:(u,f)=>{u.nzSimple=f}},metadata:x},re,ie),x&&Object.defineProperty(V,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:x})})(),oe(V,"\u0275fac",function(u){return new(u||V)}),oe(V,"\u0275cmp",M({type:V,selectors:[["nz-pagination"]],hostAttrs:[1,"ant-pagination"],hostVars:14,hostBindings:function(u,f){u&2&&$("ant-pagination-simple",f.nzSimple)("ant-pagination-disabled",f.nzDisabled)("ant-pagination-mini",!f.nzSimple&&f.size==="small")("ant-pagination-rtl",f.dir==="rtl")("ant-pagination-start",f.nzAlign()==="start")("ant-pagination-center",f.nzAlign()==="center")("ant-pagination-end",f.nzAlign()==="end")},inputs:{nzShowTotal:"nzShowTotal",nzItemRender:"nzItemRender",nzSize:"nzSize",nzPageSizeOptions:"nzPageSizeOptions",nzShowSizeChanger:[2,"nzShowSizeChanger","nzShowSizeChanger",w],nzShowQuickJumper:[2,"nzShowQuickJumper","nzShowQuickJumper",w],nzSimple:[2,"nzSimple","nzSimple",w],nzDisabled:[2,"nzDisabled","nzDisabled",w],nzResponsive:[2,"nzResponsive","nzResponsive",w],nzHideOnSinglePage:[2,"nzHideOnSinglePage","nzHideOnSinglePage",w],nzTotal:[2,"nzTotal","nzTotal",Xe],nzPageIndex:[2,"nzPageIndex","nzPageIndex",Xe],nzPageSize:[2,"nzPageSize","nzPageSize",Xe],nzAlign:[1,"nzAlign"]},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange"},exportAs:["nzPagination"],features:[J],decls:5,vars:18,consts:[["simplePagination",""],["defaultPagination",""],[3,"pageIndexChange","disabled","itemRender","locale","pageSize","total","pageIndex"],[3,"pageIndexChange","pageSizeChange","nzSize","itemRender","showTotal","disabled","locale","showSizeChanger","showQuickJumper","total","pageIndex","pageSize","pageSizeOptions"],[3,"ngTemplateOutlet"]],template:function(u,f){if(u&1){let me=E();_(0,oi,2,1),h(1,"nz-pagination-simple",2,0),D("pageIndexChange",function(Ie){return v(me),O(f.onPageIndexChange(Ie))}),m(),h(3,"nz-pagination-default",3,1),D("pageIndexChange",function(Ie){return v(me),O(f.onPageIndexChange(Ie))})("pageSizeChange",function(Ie){return v(me),O(f.onPageSizeChange(Ie))}),m()}u&2&&(S(f.showPagination?0:-1),r(),c("disabled",f.nzDisabled)("itemRender",f.nzItemRender)("locale",f.locale)("pageSize",f.nzPageSize)("total",f.nzTotal)("pageIndex",f.nzPageIndex),r(2),c("nzSize",f.size)("itemRender",f.nzItemRender)("showTotal",f.nzShowTotal)("disabled",f.nzDisabled)("locale",f.locale)("showSizeChanger",f.nzShowSizeChanger)("showQuickJumper",f.nzShowQuickJumper)("total",f.nzTotal)("pageIndex",f.nzPageIndex)("pageSize",f.nzPageSize)("pageSizeOptions",f.nzPageSizeOptions))},dependencies:[K,sn,rn],encapsulation:2,changeDetection:0})),V})(),cn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Qe({type:t});static \u0275inj=We({imports:[xt,sn,ln,St,rn]})}return t})();var Ce=["*"],ri=(t,a)=>a.value;function si(t,a){}function ci(t,a){if(t&1){let e=E();h(0,"label",14),D("ngModelChange",function(){v(e);let i=l().$implicit,o=l(2);return O(o.check(i))}),m()}if(t&2){let e=l().$implicit;c("ngModel",e.checked)}}function di(t,a){if(t&1){let e=E();h(0,"label",15),D("ngModelChange",function(){v(e);let i=l().$implicit,o=l(2);return O(o.check(i))}),m()}if(t&2){let e=l().$implicit;c("ngModel",e.checked)}}function pi(t,a){if(t&1){let e=E();h(0,"li",11),D("click",function(){let i=v(e).$implicit,o=l(2);return O(o.check(i))}),_(1,ci,1,1,"label",12)(2,di,1,1,"label",13),h(3,"span"),X(4),m()()}if(t&2){let e=a.$implicit,n=l(2);c("nzSelected",e.checked),r(),S(n.filterMultiple?2:1),r(3),fe(e.text)}}function hi(t,a){if(t&1){let e=E();h(0,"nz-filter-trigger",3),D("nzVisibleChange",function(i){v(e);let o=l();return O(o.onVisibleChange(i))}),P(1,"nz-icon",4),m(),h(2,"nz-dropdown-menu",null,0)(4,"div",5)(5,"ul",6),ue(6,pi,5,3,"li",7,ri),m(),h(8,"div",8)(9,"button",9),D("click",function(){v(e);let i=l();return O(i.reset())}),X(10),m(),h(11,"button",10),D("click",function(){v(e);let i=l();return O(i.confirm())}),X(12),m()()()()}if(t&2){let e=R(3),n=l();c("nzVisible",n.isVisible)("nzActive",n.isChecked)("nzDropdownMenu",e),r(6),ze(n.listOfParsedFilter),r(3),c("disabled",!n.isChecked),r(),ge(" ",n.locale.filterReset," "),r(2),fe(n.locale.filterConfirm)}}function mi(t,a){if(t&1&&mt(0,2),t&2){let e=l();c("ngTemplateOutlet",e.extraTemplate)}}function ui(t,a){if(t&1){let e=E();h(0,"label",3),D("ngModelChange",function(i){v(e);let o=l();return O(o.onCheckedChange(i))}),m()}if(t&2){let e=l();$("ant-table-selection-select-all-custom",e.showRowSelection),c("ngModel",e.checked)("nzDisabled",e.disabled)("nzIndeterminate",e.indeterminate),le("aria-label",e.label)}}function zi(t,a){if(t&1){let e=E();h(0,"li",8),D("click",function(){let i=v(e).$implicit;return O(i.onSelect())}),X(1),m()}if(t&2){let e=a.$implicit;r(),ge(" ",e.text," ")}}function fi(t,a){if(t&1&&(h(0,"div",2)(1,"span",4),P(2,"nz-icon",5),m(),h(3,"nz-dropdown-menu",null,0)(5,"ul",6),ue(6,zi,2,1,"li",7,Ot),m()()()),t&2){let e=R(4),n=l();r(),c("nzDropdownMenu",e),r(5),ze(n.listOfSelections)}}function gi(t,a){}function Ci(t,a){if(t&1&&P(0,"nz-icon",6),t&2){let e=l();$("active",e.sortOrder==="ascend")}}function _i(t,a){if(t&1&&P(0,"nz-icon",7),t&2){let e=l();$("active",e.sortOrder==="descend")}}var Si=["nzChecked",""];function xi(t,a){}function bi(t,a){if(t&1&&k(0,xi,0,0,"ng-template",2),t&2){let e=l(2);c("ngTemplateOutlet",e.nzExpandIcon)}}function Ti(t,a){if(t&1){let e=E();h(0,"button",4),D("expandChange",function(i){v(e);let o=l(2);return O(o.onExpandChange(i))}),m()}if(t&2){let e=l(2);c("expand",e.nzExpand)("spaceMode",!e.nzShowExpand)}}function yi(t,a){if(t&1&&(P(0,"nz-row-indent",1),_(1,bi,1,1,null,2)(2,Ti,1,2,"button",3)),t&2){let e=l();c("indentSize",e.nzIndentSize),r(),S(e.nzExpandIcon?1:2)}}function wi(t,a){if(t&1){let e=E();h(0,"label",5),D("ngModelChange",function(i){v(e);let o=l();return O(o.onCheckedChange(i))}),m()}if(t&2){let e=l();c("nzDisabled",e.nzDisabled)("ngModel",e.nzChecked)("nzIndeterminate",e.nzIndeterminate),le("aria-label",e.nzLabel)}}var vi=["nzColumnKey",""],Oi=[[["","nz-th-extra",""]],[["nz-filter-trigger"]],"*"],Pi=["[nz-th-extra]","nz-filter-trigger","*"];function Di(t,a){if(t&1){let e=E();h(0,"nz-table-filter",6),D("filterChange",function(i){v(e);let o=l();return O(o.onFilterValueChange(i))}),m()}if(t&2){let e=l(),n=R(3),i=R(5);c("contentTemplate",n)("extraTemplate",i)("customFilter",e.nzCustomFilter)("filterMultiple",e.nzFilterMultiple)("listOfFilter",e.nzFilters)}}function Fi(t,a){if(t&1&&mt(0,5),t&2){l();let e=R(3);c("ngTemplateOutlet",e)}}function Ni(t,a){}function Ii(t,a){if(t&1&&k(0,Ni,0,0,"ng-template",5),t&2){let e=l(),n=R(7),i=R(9);c("ngTemplateOutlet",e.nzShowSort?n:i)}}function ki(t,a){t&1&&(ne(0),ne(1,1))}function Mi(t,a){if(t&1&&P(0,"nz-table-sorters",7),t&2){let e=l(),n=R(9);c("sortOrder",e.sortOrder)("sortDirections",e.sortDirections)("contentTemplate",n)}}function Ri(t,a){t&1&&ne(0,2)}var Ei=["nzSelections",""],$i=["nz-table-content",""];function Vi(t,a){if(t&1&&P(0,"col"),t&2){let e=a.$implicit;Te("width",e)("min-width",e)}}function Bi(t,a){if(t&1&&(h(0,"colgroup"),ue(1,Vi,1,4,"col",3,ht),m()),t&2){let e=l();r(),ze(e.listOfColWidth)}}function Ai(t,a){}function Li(t,a){if(t&1&&(h(0,"thead",0),k(1,Ai,0,0,"ng-template",1),m()),t&2){let e=l();r(),c("ngTemplateOutlet",e.theadTemplate)}}function Wi(t,a){}function Qi(t,a){}function Hi(t,a){if(t&1&&(h(0,"tfoot",2),k(1,Qi,0,0,"ng-template",1),m()),t&2){let e=l();r(),c("ngTemplateOutlet",e.tfootTemplate)}}var hn=["tdElement"],ji=["nz-table-fixed-row",""];function Ji(t,a){}function Xi(t,a){if(t&1&&(h(0,"div",5),ye(1,"async"),k(2,Ji,0,0,"ng-template",4),m()),t&2){let e=l(),n=R(6);Te("width",we(1,3,e.hostWidth$),"px"),r(2),c("ngTemplateOutlet",n)}}function Yi(t,a){}function qi(t,a){if(t&1&&k(0,Yi,0,0,"ng-template",4),t&2){l();let e=R(6);c("ngTemplateOutlet",e)}}function Zi(t,a){t&1&&ne(0)}var Ui=["nz-table-measure-row",""];function Ki(t,a){t&1&&Pt(0,"td",1,0)}function Gi(t,a){if(t&1){let e=E();h(0,"tr",2),D("listOfAutoWidth",function(i){v(e);let o=l(2);return O(o.onListOfAutoWidthChange(i))}),m()}if(t&2){let e=l();c("listOfMeasureColumn",e)}}function eo(t,a){if(t&1&&_(0,Gi,1,1,"tr",1),t&2){let e=l();S(e.isInsideTable&&a.length?0:-1)}}function to(t,a){if(t&1&&(h(0,"tr",0),P(1,"nz-embed-empty",3),ye(2,"async"),m()),t&2){let e=l();r(),c("specificContent",we(2,1,e.noResult$))}}var no=["tableHeaderElement"],io=["tableBodyElement"],oo=["tableFootElement"],ao=(t,a)=>({$implicit:t,index:a});function lo(t,a){if(t&1&&(h(0,"div",9,1),P(2,"table",10),m()),t&2){let e=l(2);Ee(e.bodyStyleMap),r(2),c("scrollX",e.scrollX)("listOfColWidth",e.listOfColWidth)("contentTemplate",e.contentTemplate)}}function ro(t,a){}function so(t,a){if(t&1&&(je(0),k(1,ro,0,0,"ng-template",14),Je()),t&2){let e=a.$implicit,n=a.index,i=l(3);r(),c("ngTemplateOutlet",i.virtualTemplate)("ngTemplateOutletContext",$e(2,ao,e,n))}}function co(t,a){if(t&1&&(h(0,"cdk-virtual-scroll-viewport",11,1)(2,"table",12)(3,"tbody"),k(4,so,2,5,"ng-container",13),m()()()),t&2){let e=l(2);Te("height",e.data.length?e.scrollY:e.noDataVirtualHeight),c("itemSize",e.virtualItemSize)("maxBufferPx",e.virtualMaxBufferPx)("minBufferPx",e.virtualMinBufferPx),r(2),c("scrollX",e.scrollX)("listOfColWidth",e.listOfColWidth),r(2),c("cdkVirtualForOf",e.data)("cdkVirtualForTrackBy",e.virtualForTrackBy)}}function po(t,a){if(t&1&&(h(0,"div",15,2),P(2,"table",16),m()),t&2){let e=l(2);Ee(e.headerStyleMap),r(2),c("scrollX",e.scrollX)("listOfColWidth",e.listOfColWidth)("tfootTemplate",e.tfootTemplate)}}function ho(t,a){if(t&1&&(h(0,"div",4,0),P(2,"table",5),m(),_(3,lo,3,5,"div",6)(4,co,5,9,"cdk-virtual-scroll-viewport",7),_(5,po,3,5,"div",8)),t&2){let e=l();Ee(e.headerStyleMap),r(2),c("scrollX",e.scrollX)("listOfColWidth",e.listOfColWidth)("theadTemplate",e.theadTemplate)("tfootTemplate",e.tfootFixed==="top"?e.tfootTemplate:null),r(),S(e.virtualTemplate?4:3),r(2),S(e.tfootFixed==="bottom"?5:-1)}}function mo(t,a){if(t&1&&(h(0,"div",17,1),P(2,"table",18),m()),t&2){let e=l();Ee(e.bodyStyleMap),r(2),c("scrollX",e.scrollX)("listOfColWidth",e.listOfColWidth)("theadTemplate",e.theadTemplate)("contentTemplate",e.contentTemplate)("tfootTemplate",e.tfootTemplate)}}function uo(t,a){if(t&1&&(je(0),X(1),Je()),t&2){let e=l();r(),fe(e.title)}}function zo(t,a){if(t&1&&(je(0),X(1),Je()),t&2){let e=l();r(),fe(e.footer)}}function fo(t,a){}function go(t,a){if(t&1&&k(0,fo,0,0,"ng-template",4),t&2){l();let e=R(10);c("ngTemplateOutlet",e)}}function Co(t,a){if(t&1&&P(0,"nz-table-title-footer",6),t&2){let e=l();c("title",e.nzTitle)}}function _o(t,a){if(t&1&&P(0,"nz-table-inner-scroll",7),t&2){let e=l(),n=R(3),i=R(12);c("data",e.data)("scrollX",e.scrollX)("scrollY",e.scrollY)("contentTemplate",i)("listOfColWidth",e.listOfAutoColWidth)("theadTemplate",e.theadTemplate)("tfootTemplate",e.tfootTemplate)("tfootFixed",e.tfootFixed)("verticalScrollBarWidth",e.verticalScrollBarWidth)("virtualTemplate",e.nzVirtualScrollDirective?e.nzVirtualScrollDirective.templateRef:null)("virtualItemSize",e.nzVirtualItemSize)("virtualMaxBufferPx",e.nzVirtualMaxBufferPx)("virtualMinBufferPx",e.nzVirtualMinBufferPx)("tableMainElement",n)("virtualForTrackBy",e.nzVirtualForTrackBy)("noDataVirtualHeight",e.noDataVirtualHeight)}}function So(t,a){if(t&1&&P(0,"nz-table-inner-default",8),t&2){let e=l(),n=R(12);c("tableLayout",e.nzTableLayout)("listOfColWidth",e.listOfManualColWidth)("theadTemplate",e.theadTemplate)("contentTemplate",n)("tfootTemplate",e.tfootTemplate)}}function xo(t,a){if(t&1&&P(0,"nz-table-title-footer",9),t&2){let e=l();c("footer",e.nzFooter)}}function bo(t,a){}function To(t,a){if(t&1&&k(0,bo,0,0,"ng-template",4),t&2){l();let e=R(10);c("ngTemplateOutlet",e)}}function yo(t,a){if(t&1){let e=E();h(0,"nz-pagination",11),D("nzPageSizeChange",function(i){v(e);let o=l(2);return O(o.onPageSizeChange(i))})("nzPageIndexChange",function(i){v(e);let o=l(2);return O(o.onPageIndexChange(i))}),m()}if(t&2){let e=l(2);c("hidden",!e.showPagination)("nzShowSizeChanger",e.nzShowSizeChanger)("nzPageSizeOptions",e.nzPageSizeOptions)("nzItemRender",e.nzItemRender)("nzShowQuickJumper",e.nzShowQuickJumper)("nzHideOnSinglePage",e.nzHideOnSinglePage)("nzShowTotal",e.nzShowTotal)("nzSize",e.nzPaginationType==="small"?"small":e.nzSize==="default"?"default":"small")("nzPageSize",e.nzPageSize)("nzTotal",e.nzTotal)("nzSimple",e.nzSimple)("nzPageIndex",e.nzPageIndex)}}function wo(t,a){if(t&1&&_(0,yo,1,12,"nz-pagination",10),t&2){let e=l();S(e.nzShowPagination&&e.data.length?0:-1)}}function vo(t,a){t&1&&ne(0)}var Oo="filterTrigger",mn=(()=>{var n;let t,a=[],e=[];return n=class{_nzModuleName=Oo;nzConfigService=z(Ve);cdr=z(he);destroyRef=z(q);nzActive=!1;nzDropdownMenu;nzVisible=!1;nzBackdrop=y(this,a,!1);nzVisibleChange=(y(this,e),new F);nzDropdown;onVisibleChange(o){this.nzVisible=o,this.nzVisibleChange.next(o)}hide(){this.nzVisible=!1,this.cdr.markForCheck()}show(){this.nzVisible=!0,this.cdr.markForCheck()}ngOnInit(){Ye(this.nzDropdown.nativeElement,"click").pipe(b(this.destroyRef)).subscribe(o=>o.stopPropagation())}},(()=>{let o=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[W()],L(null,null,t,{kind:"field",name:"nzBackdrop",static:!1,private:!1,access:{has:s=>"nzBackdrop"in s,get:s=>s.nzBackdrop,set:(s,d)=>{s.nzBackdrop=d}},metadata:o},a,e),o&&Object.defineProperty(n,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:o})})(),oe(n,"\u0275fac",function(s){return new(s||n)}),oe(n,"\u0275cmp",M({type:n,selectors:[["nz-filter-trigger"]],viewQuery:function(s,d){if(s&1&&G(Ae,7,ae),s&2){let C;Z(C=U())&&(d.nzDropdown=C.first)}},inputs:{nzActive:"nzActive",nzDropdownMenu:"nzDropdownMenu",nzVisible:"nzVisible",nzBackdrop:[2,"nzBackdrop","nzBackdrop",w]},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzFilterTrigger"],ngContentSelectors:Ce,decls:2,vars:8,consts:[["nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",1,"ant-table-filter-trigger",3,"nzVisibleChange","nzBackdrop","nzClickHide","nzDropdownMenu","nzVisible"]],template:function(s,d){s&1&&(pe(),h(0,"span",0),D("nzVisibleChange",function(I){return d.onVisibleChange(I)}),ne(1),m()),s&2&&($("active",d.nzActive)("ant-table-filter-open",d.nzVisible),c("nzBackdrop",d.nzBackdrop)("nzClickHide",!1)("nzDropdownMenu",d.nzDropdownMenu)("nzVisible",d.nzVisible))},dependencies:[Ze,Ae],encapsulation:2,changeDetection:0})),n})(),un=(()=>{class t{cdr=z(he);i18n=z(qe);destroyRef=z(q);contentTemplate=null;customFilter=!1;extraTemplate=null;filterMultiple=!0;listOfFilter=[];filterChange=new F;locale;isChecked=!1;isVisible=!1;listOfParsedFilter=[];listOfChecked=[];check(e){this.filterMultiple?(this.listOfParsedFilter=this.listOfParsedFilter.map(n=>n===e?rt(lt({},n),{checked:!e.checked}):n),e.checked=!e.checked):this.listOfParsedFilter=this.listOfParsedFilter.map(n=>rt(lt({},n),{checked:n===e})),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter)}confirm(){this.isVisible=!1,this.emitFilterData()}reset(){this.isVisible=!1,this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter,!0),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter),this.emitFilterData()}onVisibleChange(e){this.isVisible=e,e?this.listOfChecked=this.listOfParsedFilter.filter(n=>n.checked).map(n=>n.value):this.emitFilterData()}emitFilterData(){let e=this.listOfParsedFilter.filter(n=>n.checked).map(n=>n.value);kt(this.listOfChecked,e)||(this.filterMultiple?this.filterChange.emit(e):this.filterChange.emit(e.length>0?e[0]:null))}parseListOfFilter(e,n){return e.map(i=>{let o=n?!1:!!i.byDefault;return{text:i.text,value:i.value,checked:o}})}getCheckedStatus(e){return e.some(n=>n.checked)}ngOnInit(){this.i18n.localeChange.pipe(b(this.destroyRef)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Table"),this.cdr.markForCheck()})}ngOnChanges(e){let{listOfFilter:n}=e;n&&this.listOfFilter&&this.listOfFilter.length&&(this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=M({type:t,selectors:[["nz-table-filter"]],hostAttrs:[1,"ant-table-filter-column"],inputs:{contentTemplate:"contentTemplate",customFilter:"customFilter",extraTemplate:"extraTemplate",filterMultiple:"filterMultiple",listOfFilter:"listOfFilter"},outputs:{filterChange:"filterChange"},features:[J],decls:4,vars:2,consts:[["filterMenu","nzDropdownMenu"],[1,"ant-table-column-title"],[3,"ngTemplateOutlet"],[3,"nzVisibleChange","nzVisible","nzActive","nzDropdownMenu"],["nzType","filter","nzTheme","fill"],[1,"ant-table-filter-dropdown"],["nz-menu",""],["nz-menu-item","",3,"nzSelected"],[1,"ant-table-filter-dropdown-btns"],["nz-button","","nzType","link","nzSize","small",3,"click","disabled"],["nz-button","","nzType","primary","nzSize","small",3,"click"],["nz-menu-item","",3,"click","nzSelected"],["nz-radio","",3,"ngModel"],["nz-checkbox","",3,"ngModel"],["nz-radio","",3,"ngModelChange","ngModel"],["nz-checkbox","",3,"ngModelChange","ngModel"]],template:function(n,i){n&1&&(h(0,"span",1),k(1,si,0,0,"ng-template",2),m(),_(2,hi,13,6)(3,mi,1,1,"ng-container",2)),n&2&&(r(),c("ngTemplateOutlet",i.contentTemplate),r(),S(i.customFilter?3:2))},dependencies:[K,mn,Pe,Oe,Ze,gt,ft,Ct,nn,Ke,Ue,Ne,De,Fe,Wt,Lt,Bt,At],encapsulation:2,changeDetection:0})}return t})(),Po=(()=>{class t{expand=!1;spaceMode=!1;expandChange=new F;onHostClick(){this.spaceMode||(this.expand=!this.expand,this.expandChange.next(this.expand))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=He({type:t,selectors:[["button","nz-row-expand-button",""]],hostAttrs:[1,"ant-table-row-expand-icon"],hostVars:7,hostBindings:function(n,i){n&1&&D("click",function(){return i.onHostClick()}),n&2&&(Dt("type","button"),$("ant-table-row-expand-icon-expanded",!i.spaceMode&&i.expand===!0)("ant-table-row-expand-icon-collapsed",!i.spaceMode&&i.expand===!1)("ant-table-row-expand-icon-spaced",i.spaceMode))},inputs:{expand:"expand",spaceMode:"spaceMode"},outputs:{expandChange:"expandChange"}})}return t})(),Do=(()=>{class t{indentSize=0;static \u0275fac=function(n){return new(n||t)};static \u0275dir=He({type:t,selectors:[["nz-row-indent"]],hostAttrs:[1,"ant-table-row-indent"],hostVars:2,hostBindings:function(n,i){n&2&&Te("padding-left",i.indentSize,"px")},inputs:{indentSize:"indentSize"}})}return t})(),zn=(()=>{class t{listOfSelections=[];checked=!1;disabled=!1;indeterminate=!1;label=null;showCheckbox=!1;showRowSelection=!1;checkedChange=new F;onCheckedChange(e){this.checked=e,this.checkedChange.emit(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=M({type:t,selectors:[["nz-table-selection"]],hostAttrs:[1,"ant-table-selection"],inputs:{listOfSelections:"listOfSelections",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",label:"label",showCheckbox:"showCheckbox",showRowSelection:"showRowSelection"},outputs:{checkedChange:"checkedChange"},decls:2,vars:2,consts:[["selectionMenu","nzDropdownMenu"],["nz-checkbox","",3,"ant-table-selection-select-all-custom","ngModel","nzDisabled","nzIndeterminate"],[1,"ant-table-selection-extra"],["nz-checkbox","",3,"ngModelChange","ngModel","nzDisabled","nzIndeterminate"],["nz-dropdown","","nzPlacement","bottomLeft",1,"ant-table-selection-down",3,"nzDropdownMenu"],["nzType","down"],["nz-menu","",1,"ant-table-selection-menu"],["nz-menu-item",""],["nz-menu-item","",3,"click"]],template:function(n,i){n&1&&(_(0,ui,1,6,"label",1),_(1,fi,8,1,"div",2)),n&2&&(S(i.showCheckbox?0:-1),r(),S(i.showRowSelection?1:-1))},dependencies:[Ne,De,Fe,Ke,Ue,Ze,gt,ft,Ae,Ct,Pe,Oe],encapsulation:2,changeDetection:0})}return t})(),fn=(()=>{class t{sortDirections=["ascend","descend",null];sortOrder=null;contentTemplate=null;isUp=!1;isDown=!1;ngOnChanges(e){let{sortDirections:n}=e;n&&(this.isUp=this.sortDirections.indexOf("ascend")!==-1,this.isDown=this.sortDirections.indexOf("descend")!==-1)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=M({type:t,selectors:[["nz-table-sorters"]],hostAttrs:[1,"ant-table-column-sorters"],inputs:{sortDirections:"sortDirections",sortOrder:"sortOrder",contentTemplate:"contentTemplate"},features:[J],decls:6,vars:5,consts:[[1,"ant-table-column-title"],[3,"ngTemplateOutlet"],[1,"ant-table-column-sorter"],[1,"ant-table-column-sorter-inner"],["nzType","caret-up",1,"ant-table-column-sorter-up",3,"active"],["nzType","caret-down",1,"ant-table-column-sorter-down",3,"active"],["nzType","caret-up",1,"ant-table-column-sorter-up"],["nzType","caret-down",1,"ant-table-column-sorter-down"]],template:function(n,i){n&1&&(h(0,"span",0),k(1,gi,0,0,"ng-template",1),m(),h(2,"span",2)(3,"span",3),_(4,Ci,1,2,"nz-icon",4),_(5,_i,1,2,"nz-icon",5),m()()),n&2&&(r(),c("ngTemplateOutlet",i.contentTemplate),r(),$("ant-table-column-sorter-full",i.isDown&&i.isUp),r(2),S(i.isUp?4:-1),r(),S(i.isDown?5:-1))},dependencies:[Pe,Oe,K],encapsulation:2,changeDetection:0})}return t})();var Ge=(()=>{class t{theadTemplate$=new H(1);tfootTemplate$=new H(1);tfootFixed$=new H(1);hasFixLeft$=new H(1);hasFixRight$=new H(1);hostWidth$=new H(1);columnCount$=new H(1);showEmpty$=new H(1);noResult$=new H(1);listOfThWidthConfigPx$=new Q([]);tableWidthConfigPx$=new Q([]);manualWidthConfigPx$=de([this.tableWidthConfigPx$,this.listOfThWidthConfigPx$]).pipe(te(([e,n])=>e.length?e:n));listOfAutoWidthPx$=new H(1);listOfListOfThWidthPx$=st(this.manualWidthConfigPx$,de([this.listOfAutoWidthPx$,this.manualWidthConfigPx$]).pipe(te(([e,n])=>e.length===n.length?e.map((i,o)=>i==="0px"?n[o]||null:n[o]||i):n)));listOfMeasureColumn$=new H(1);listOfListOfThWidth$=this.listOfAutoWidthPx$.pipe(te(e=>e.map(n=>parseInt(n,10))));enableAutoMeasure$=new H(1);setTheadTemplate(e){this.theadTemplate$.next(e)}setTfootTemplate(e){this.tfootTemplate$.next(e)}setTfootFixed(e){this.tfootFixed$.next(e)}setHasFixLeft(e){this.hasFixLeft$.next(e)}setHasFixRight(e){this.hasFixRight$.next(e)}setTableWidthConfig(e){this.tableWidthConfigPx$.next(e)}setListOfTh(e){let n=0;e.forEach(o=>{n+=o.colspan&&+o.colspan||o.colSpan&&+o.colSpan||1});let i=e.map(o=>o.nzWidth);this.columnCount$.next(n),this.listOfThWidthConfigPx$.next(i)}setListOfMeasureColumn(e){let n=[];e.forEach(i=>{let o=i.colspan&&+i.colspan||i.colSpan&&+i.colSpan||1;for(let s=0;s<o;s++)n.push(`measure_key_${s}`)}),this.listOfMeasureColumn$.next(n)}setListOfAutoWidth(e){this.listOfAutoWidthPx$.next(e.map(n=>`${n}px`))}setShowEmpty(e){this.showEmpty$.next(e)}setNoResult(e){this.noResult$.next(e)}setScroll(e,n){let i=!!(e||n);i||this.setListOfAutoWidth([]),this.enableAutoMeasure$.next(i)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=pt({token:t,factory:t.\u0275fac})}return t})();var dn=(()=>{class t{destroyRef=z(q);pageIndex$=new Q(1);frontPagination$=new Q(!0);pageSize$=new Q(10);listOfData$=new Q([]);listOfCustomColumn$=new Q([]);pageIndexDistinct$=this.pageIndex$.pipe(Le());pageSizeDistinct$=this.pageSize$.pipe(Le());listOfCalcOperator$=new Q([]);queryParams$=de([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfCalcOperator$]).pipe(ct(0),Tt(1),te(([e,n,i])=>({pageIndex:e,pageSize:n,sort:i.filter(o=>o.sortFn).map(o=>({key:o.key,value:o.sortOrder})),filter:i.filter(o=>o.filterFn).map(o=>({key:o.key,value:o.filterValue}))})));listOfDataAfterCalc$=de([this.listOfData$,this.listOfCalcOperator$]).pipe(te(([e,n])=>{let i=[...e],o=n.filter(d=>{let{filterValue:C,filterFn:I}=d;return!(C==null||Array.isArray(C)&&C.length===0)&&typeof I=="function"});for(let d of o){let{filterFn:C,filterValue:I}=d;i=i.filter(B=>C(I,B))}let s=n.filter(d=>d.sortOrder!==null&&typeof d.sortFn=="function").sort((d,C)=>+C.sortPriority-+d.sortPriority);return n.length&&i.sort((d,C)=>{for(let I of s){let{sortFn:B,sortOrder:j}=I;if(B&&j){let Y=B(d,C,j);if(Y!==0)return j==="ascend"?Y:-Y}}return 0}),i}));listOfFrontEndCurrentPageData$=de([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfDataAfterCalc$]).pipe(b(this.destroyRef),ke(e=>{let[n,i,o]=e,s=Math.ceil(o.length/i)||1;return n<=s}),te(([e,n,i])=>i.slice((e-1)*n,e*n)));listOfCurrentPageData$=this.frontPagination$.pipe(Re(e=>e?this.listOfFrontEndCurrentPageData$:this.listOfDataAfterCalc$));total$=this.frontPagination$.pipe(Re(e=>e?this.listOfDataAfterCalc$:this.listOfData$),te(e=>e.length),Le());updatePageSize(e){this.pageSize$.next(e)}updateFrontPagination(e){this.frontPagination$.next(e)}updatePageIndex(e){this.pageIndex$.next(e)}updateListOfData(e){this.listOfData$.next(e)}updateListOfCustomColumn(e){this.listOfCustomColumn$.next(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=pt({token:t,factory:t.\u0275fac})}return t})();var Fo=(()=>{class t{nzChecked=!1;nzDisabled=!1;nzIndeterminate=!1;nzLabel=null;nzIndentSize=0;nzShowExpand=!1;nzShowCheckbox=!1;nzExpand=!1;nzExpandIcon=null;nzCheckedChange=new F;nzExpandChange=new F;isNzShowExpandChanged=!1;isNzShowCheckboxChanged=!1;onCheckedChange(e){this.nzChecked=e,this.nzCheckedChange.emit(e)}onExpandChange(e){this.nzExpand=e,this.nzExpandChange.emit(e)}ngOnChanges(e){let n=C=>C&&C.firstChange&&C.currentValue!==void 0,{nzExpand:i,nzChecked:o,nzShowExpand:s,nzShowCheckbox:d}=e;s&&(this.isNzShowExpandChanged=!0),d&&(this.isNzShowCheckboxChanged=!0),n(i)&&!this.isNzShowExpandChanged&&(this.nzShowExpand=!0),n(o)&&!this.isNzShowCheckboxChanged&&(this.nzShowCheckbox=!0)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=M({type:t,selectors:[["td","nzChecked",""],["td","nzDisabled",""],["td","nzIndeterminate",""],["td","nzIndentSize",""],["td","nzExpand",""],["td","nzShowExpand",""],["td","nzShowCheckbox",""]],hostVars:4,hostBindings:function(n,i){n&2&&$("ant-table-cell-with-append",i.nzShowExpand||i.nzIndentSize>0)("ant-table-selection-column",i.nzShowCheckbox)},inputs:{nzChecked:"nzChecked",nzDisabled:"nzDisabled",nzIndeterminate:"nzIndeterminate",nzLabel:"nzLabel",nzIndentSize:"nzIndentSize",nzShowExpand:[2,"nzShowExpand","nzShowExpand",w],nzShowCheckbox:[2,"nzShowCheckbox","nzShowCheckbox",w],nzExpand:[2,"nzExpand","nzExpand",w],nzExpandIcon:"nzExpandIcon"},outputs:{nzCheckedChange:"nzCheckedChange",nzExpandChange:"nzExpandChange"},features:[J],attrs:Si,ngContentSelectors:Ce,decls:3,vars:2,consts:[["nz-checkbox","",3,"nzDisabled","ngModel","nzIndeterminate"],[3,"indentSize"],[3,"ngTemplateOutlet"],["nz-row-expand-button","",3,"expand","spaceMode"],["nz-row-expand-button","",3,"expandChange","expand","spaceMode"],["nz-checkbox","",3,"ngModelChange","nzDisabled","ngModel","nzIndeterminate"]],template:function(n,i){n&1&&(pe(),_(0,yi,3,2),_(1,wi,1,4,"label",0),ne(2)),n&2&&(S(i.nzShowExpand||i.nzIndentSize>0?0:-1),r(),S(i.nzShowCheckbox?1:-1))},dependencies:[Do,Po,K,Ke,Ue,Ne,De,Fe],encapsulation:2,changeDetection:0})}return t})(),No="table",Io=(()=>{var n;let t,a=[],e=[];return n=class{_nzModuleName=No;nzConfigService=z(Ve);el=z(ae).nativeElement;destroyRef=z(q);cdr=z(he);ngZone=z(xe);manualClickOrder$=new Se;calcOperatorChange$=new Se;nzFilterValue=null;sortOrder=null;sortDirections=["ascend","descend",null];sortOrderChange$=new Se;isNzShowSortChanged=!1;isNzShowFilterChanged=!1;nzColumnKey;nzFilterMultiple=!0;nzSortOrder=null;nzSortPriority=!1;nzSortDirections=y(this,a,["ascend","descend",null]);nzFilters=(y(this,e),[]);nzSortFn=null;nzFilterFn=null;nzShowSort=!1;nzShowFilter=!1;nzCustomFilter=!1;nzCheckedChange=new F;nzSortOrderChange=new F;nzFilterChange=new F;getNextSortDirection(o,s){let d=o.indexOf(s);return d===o.length-1?o[0]:o[d+1]}setSortOrder(o){this.sortOrderChange$.next(o)}clearSortOrder(){this.sortOrder!==null&&this.setSortOrder(null)}onFilterValueChange(o){this.nzFilterChange.emit(o),this.nzFilterValue=o,this.updateCalcOperator()}updateCalcOperator(){this.calcOperatorChange$.next()}ngOnInit(){Ye(this.el,"click").pipe(ke(()=>this.nzShowSort),b(this.destroyRef)).subscribe(()=>{let o=this.getNextSortDirection(this.sortDirections,this.sortOrder);this.ngZone.run(()=>{this.setSortOrder(o),this.manualClickOrder$.next(this)})}),this.sortOrderChange$.pipe(b(this.destroyRef)).subscribe(o=>{this.sortOrder!==o&&(this.sortOrder=o,this.nzSortOrderChange.emit(o)),this.updateCalcOperator(),this.cdr.markForCheck()})}ngOnChanges(o){let{nzSortDirections:s,nzFilters:d,nzSortOrder:C,nzSortFn:I,nzFilterFn:B,nzSortPriority:j,nzFilterMultiple:Y,nzShowSort:re,nzShowFilter:ie}=o;s&&this.nzSortDirections&&this.nzSortDirections.length&&(this.sortDirections=this.nzSortDirections),C&&(this.sortOrder=this.nzSortOrder,this.setSortOrder(this.nzSortOrder)),re&&(this.isNzShowSortChanged=!0),ie&&(this.isNzShowFilterChanged=!0);let V=se=>se&&se.firstChange&&se.currentValue!==void 0;if((V(C)||V(I))&&!this.isNzShowSortChanged&&(this.nzShowSort=!0),V(d)&&!this.isNzShowFilterChanged&&(this.nzShowFilter=!0),(d||Y)&&this.nzShowFilter){let se=this.nzFilters.filter(x=>x.byDefault).map(x=>x.value);this.nzFilterValue=this.nzFilterMultiple?se:se[0]||null}(I||B||j||d)&&this.updateCalcOperator()}},(()=>{let o=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[W()],L(null,null,t,{kind:"field",name:"nzSortDirections",static:!1,private:!1,access:{has:s=>"nzSortDirections"in s,get:s=>s.nzSortDirections,set:(s,d)=>{s.nzSortDirections=d}},metadata:o},a,e),o&&Object.defineProperty(n,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:o})})(),oe(n,"\u0275fac",function(s){return new(s||n)}),oe(n,"\u0275cmp",M({type:n,selectors:[["th","nzColumnKey",""],["th","nzSortFn",""],["th","nzSortOrder",""],["th","nzFilters",""],["th","nzShowSort",""],["th","nzShowFilter",""],["th","nzCustomFilter",""]],hostVars:4,hostBindings:function(s,d){s&2&&$("ant-table-column-has-sorters",d.nzShowSort)("ant-table-column-sort",d.sortOrder==="descend"||d.sortOrder==="ascend")},inputs:{nzColumnKey:"nzColumnKey",nzFilterMultiple:"nzFilterMultiple",nzSortOrder:"nzSortOrder",nzSortPriority:"nzSortPriority",nzSortDirections:"nzSortDirections",nzFilters:"nzFilters",nzSortFn:"nzSortFn",nzFilterFn:"nzFilterFn",nzShowSort:[2,"nzShowSort","nzShowSort",w],nzShowFilter:[2,"nzShowFilter","nzShowFilter",w],nzCustomFilter:[2,"nzCustomFilter","nzCustomFilter",w]},outputs:{nzCheckedChange:"nzCheckedChange",nzSortOrderChange:"nzSortOrderChange",nzFilterChange:"nzFilterChange"},features:[J],attrs:vi,ngContentSelectors:Pi,decls:10,vars:1,consts:[["notFilterTemplate",""],["extraTemplate",""],["sortTemplate",""],["contentTemplate",""],[3,"contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter"],[3,"ngTemplateOutlet"],[3,"filterChange","contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter"],[3,"sortOrder","sortDirections","contentTemplate"]],template:function(s,d){s&1&&(pe(Oi),_(0,Di,1,5,"nz-table-filter",4)(1,Fi,1,1,"ng-container",5),k(2,Ii,1,1,"ng-template",null,0,ee)(4,ki,2,0,"ng-template",null,1,ee)(6,Mi,1,3,"ng-template",null,2,ee)(8,Ri,1,0,"ng-template",null,3,ee)),s&2&&S(d.nzShowFilter||d.nzCustomFilter?0:1)},dependencies:[un,K,fn],encapsulation:2,changeDetection:0})),n})();var ko=(()=>{class t{nzSelections=[];nzChecked=!1;nzDisabled=!1;nzIndeterminate=!1;nzLabel=null;nzShowCheckbox=!1;nzShowRowSelection=!1;nzCheckedChange=new F;isNzShowExpandChanged=!1;isNzShowCheckboxChanged=!1;onCheckedChange(e){this.nzChecked=e,this.nzCheckedChange.emit(e)}ngOnChanges(e){let n=C=>C&&C.firstChange&&C.currentValue!==void 0,{nzChecked:i,nzSelections:o,nzShowExpand:s,nzShowCheckbox:d}=e;s&&(this.isNzShowExpandChanged=!0),d&&(this.isNzShowCheckboxChanged=!0),n(o)&&!this.isNzShowExpandChanged&&(this.nzShowRowSelection=!0),n(i)&&!this.isNzShowCheckboxChanged&&(this.nzShowCheckbox=!0)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=M({type:t,selectors:[["th","nzSelections",""],["th","nzChecked",""],["th","nzShowCheckbox",""],["th","nzShowRowSelection",""]],hostAttrs:[1,"ant-table-selection-column"],inputs:{nzSelections:"nzSelections",nzChecked:[2,"nzChecked","nzChecked",w],nzDisabled:[2,"nzDisabled","nzDisabled",w],nzIndeterminate:"nzIndeterminate",nzLabel:"nzLabel",nzShowCheckbox:[2,"nzShowCheckbox","nzShowCheckbox",w],nzShowRowSelection:[2,"nzShowRowSelection","nzShowRowSelection",w]},outputs:{nzCheckedChange:"nzCheckedChange"},features:[J],attrs:Ei,ngContentSelectors:Ce,decls:2,vars:7,consts:[[3,"checkedChange","checked","disabled","indeterminate","label","listOfSelections","showCheckbox","showRowSelection"]],template:function(n,i){n&1&&(pe(),h(0,"nz-table-selection",0),D("checkedChange",function(s){return i.onCheckedChange(s)}),m(),ne(1)),n&2&&c("checked",i.nzChecked)("disabled",i.nzDisabled)("indeterminate",i.nzIndeterminate)("label",i.nzLabel)("listOfSelections",i.nzSelections)("showCheckbox",i.nzShowCheckbox)("showRowSelection",i.nzShowRowSelection)},dependencies:[zn],encapsulation:2,changeDetection:0})}return t})();var gn=(()=>{class t{tableLayout="auto";theadTemplate=null;contentTemplate=null;tfootTemplate=null;listOfColWidth=[];scrollX=null;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=M({type:t,selectors:[["table","nz-table-content",""]],hostVars:8,hostBindings:function(n,i){n&2&&(Te("table-layout",i.tableLayout)("width",i.scrollX)("min-width",i.scrollX?"100%":null),$("ant-table-fixed",i.scrollX))},inputs:{tableLayout:"tableLayout",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate",tfootTemplate:"tfootTemplate",listOfColWidth:"listOfColWidth",scrollX:"scrollX"},attrs:$i,ngContentSelectors:Ce,decls:5,vars:4,consts:[[1,"ant-table-thead"],[3,"ngTemplateOutlet"],[1,"ant-table-summary"],[3,"width","minWidth"]],template:function(n,i){n&1&&(pe(),_(0,Bi,3,0,"colgroup"),_(1,Li,2,1,"thead",0),k(2,Wi,0,0,"ng-template",1),ne(3),_(4,Hi,2,1,"tfoot",2)),n&2&&(S(i.listOfColWidth.length>0?0:-1),r(),S(i.theadTemplate?1:-1),r(),c("ngTemplateOutlet",i.contentTemplate),r(2),S(i.tfootTemplate?4:-1))},dependencies:[K],encapsulation:2,changeDetection:0})}return t})(),Mo=(()=>{class t{nzTableStyleService=z(Ge);renderer=z(be);destroyRef=z(q);tdElement;hostWidth$=new Q(null);enableAutoMeasure$=new Q(!1);ngOnInit(){if(this.nzTableStyleService){let{enableAutoMeasure$:e,hostWidth$:n}=this.nzTableStyleService;e.pipe(b(this.destroyRef)).subscribe(this.enableAutoMeasure$),n.pipe(b(this.destroyRef)).subscribe(this.hostWidth$)}}ngAfterViewInit(){this.nzTableStyleService.columnCount$.pipe(b(this.destroyRef)).subscribe(e=>{this.renderer.setAttribute(this.tdElement.nativeElement,"colspan",`${e}`)})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=M({type:t,selectors:[["tr","nz-table-fixed-row",""],["tr","nzExpand",""]],viewQuery:function(n,i){if(n&1&&G(hn,7),n&2){let o;Z(o=U())&&(i.tdElement=o.first)}},attrs:ji,ngContentSelectors:Ce,decls:7,vars:3,consts:[["tdElement",""],["contentTemplate",""],[1,"nz-disable-td","ant-table-cell"],[1,"ant-table-expanded-row-fixed",2,"position","sticky","left","0","overflow","hidden",3,"width"],[3,"ngTemplateOutlet"],[1,"ant-table-expanded-row-fixed",2,"position","sticky","left","0","overflow","hidden"]],template:function(n,i){n&1&&(pe(),h(0,"td",2,0),_(2,Xi,3,5,"div",3),ye(3,"async"),vt(4,qi,1,1,null,4),m(),k(5,Zi,1,0,"ng-template",null,1,ee)),n&2&&(r(2),S(we(3,1,i.enableAutoMeasure$)?2:4))},dependencies:[K,ut],encapsulation:2,changeDetection:0})}return t})(),Ro=(()=>{class t{tableLayout="auto";listOfColWidth=[];theadTemplate=null;contentTemplate=null;tfootTemplate=null;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=M({type:t,selectors:[["nz-table-inner-default"]],hostAttrs:[1,"ant-table-container"],inputs:{tableLayout:"tableLayout",listOfColWidth:"listOfColWidth",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate",tfootTemplate:"tfootTemplate"},decls:2,vars:5,consts:[[1,"ant-table-content"],["nz-table-content","",3,"contentTemplate","tableLayout","listOfColWidth","theadTemplate","tfootTemplate"]],template:function(n,i){n&1&&(h(0,"div",0),P(1,"table",1),m()),n&2&&(r(),c("contentTemplate",i.contentTemplate)("tableLayout",i.tableLayout)("listOfColWidth",i.listOfColWidth)("theadTemplate",i.theadTemplate)("tfootTemplate",i.tfootTemplate))},dependencies:[gn],encapsulation:2,changeDetection:0})}return t})(),Eo=(()=>{class t{nzResizeObserver=z(_t);ngZone=z(xe);destroyRef=z(q);listOfMeasureColumn=[];listOfAutoWidth=new F;listOfTdElement;ngAfterViewInit(){this.listOfTdElement.changes.pipe(Me(this.listOfTdElement)).pipe(Re(e=>de(e.toArray().map(n=>this.nzResizeObserver.observe(n).pipe(te(([i])=>{let{width:o}=i.target.getBoundingClientRect();return Math.floor(o)}))))),ct(16),b(this.destroyRef)).subscribe(e=>{this.ngZone instanceof xe&&xe.isInAngularZone()?this.listOfAutoWidth.next(e):this.ngZone.run(()=>this.listOfAutoWidth.next(e))})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=M({type:t,selectors:[["tr","nz-table-measure-row",""]],viewQuery:function(n,i){if(n&1&&G(hn,5),n&2){let o;Z(o=U())&&(i.listOfTdElement=o)}},hostAttrs:[1,"ant-table-measure-now"],inputs:{listOfMeasureColumn:"listOfMeasureColumn"},outputs:{listOfAutoWidth:"listOfAutoWidth"},attrs:Ui,decls:2,vars:0,consts:[["tdElement",""],[1,"nz-disable-td",2,"padding","0","border","0","height","0"]],template:function(n,i){n&1&&ue(0,Ki,2,0,"td",1,ht),n&2&&ze(i.listOfMeasureColumn)},encapsulation:2,changeDetection:0})}return t})(),Cn=(()=>{class t{showEmpty$=new Q(!1);noResult$=new Q(void 0);listOfMeasureColumn$=new Q([]);nzTableStyleService=z(Ge,{optional:!0});isInsideTable=!!this.nzTableStyleService;constructor(){if(this.nzTableStyleService){let{showEmpty$:e,noResult$:n,listOfMeasureColumn$:i}=this.nzTableStyleService;n.pipe(b()).subscribe(this.noResult$),i.pipe(b()).subscribe(this.listOfMeasureColumn$),e.pipe(b()).subscribe(this.showEmpty$)}}onListOfAutoWidthChange(e){this.nzTableStyleService?.setListOfAutoWidth(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=M({type:t,selectors:[["tbody"]],hostVars:2,hostBindings:function(n,i){n&2&&$("ant-table-tbody",i.isInsideTable)},ngContentSelectors:Ce,decls:5,vars:6,consts:[["nz-table-fixed-row","",1,"ant-table-placeholder"],["nz-table-measure-row","",3,"listOfMeasureColumn"],["nz-table-measure-row","",3,"listOfAutoWidth","listOfMeasureColumn"],["nzComponentName","table",3,"specificContent"]],template:function(n,i){if(n&1&&(pe(),_(0,eo,1,1),ye(1,"async"),ne(2),_(3,to,3,3,"tr",0),ye(4,"async")),n&2){let o;S((o=we(1,2,i.listOfMeasureColumn$))?0:-1,o),r(3),S(we(4,4,i.showEmpty$)?3:-1)}},dependencies:[Eo,Mo,Kt,Ut,ut],encapsulation:2,changeDetection:0})}return t})(),bt=(()=>{class t{renderer=z(be);ngZone=z(xe);platform=z(Et);resizeService=z(Xt);destroyRef=z(q);data=[];scrollX=null;scrollY=null;contentTemplate=null;widthConfig=[];listOfColWidth=[];theadTemplate=null;tfootTemplate=null;tfootFixed=null;virtualTemplate=null;virtualItemSize=0;virtualMaxBufferPx=200;virtualMinBufferPx=100;tableMainElement;virtualForTrackBy=e=>e;tableHeaderElement;tableBodyElement;tableFootElement;cdkVirtualScrollViewport;headerStyleMap={};bodyStyleMap={};verticalScrollBarWidth=0;noDataVirtualHeight="182px";data$=new Se;scroll$=new Se;setScrollPositionClassName(e=!1){let{scrollWidth:n,scrollLeft:i,clientWidth:o}=this.tableBodyElement.nativeElement,s="ant-table-ping-left",d="ant-table-ping-right";n===o&&n!==0||e?(this.renderer.removeClass(this.tableMainElement,s),this.renderer.removeClass(this.tableMainElement,d)):i===0?(this.renderer.removeClass(this.tableMainElement,s),this.renderer.addClass(this.tableMainElement,d)):n===i+o?(this.renderer.removeClass(this.tableMainElement,d),this.renderer.addClass(this.tableMainElement,s)):(this.renderer.addClass(this.tableMainElement,s),this.renderer.addClass(this.tableMainElement,d))}constructor(){this.destroyRef.onDestroy(()=>{this.setScrollPositionClassName(!0)})}ngOnChanges(e){let{scrollX:n,scrollY:i,data:o}=e;if(n||i){let s=this.verticalScrollBarWidth!==0;this.headerStyleMap={overflowX:"hidden",overflowY:this.scrollY&&s?"scroll":"hidden"},this.bodyStyleMap={overflowY:this.scrollY?"scroll":"hidden",overflowX:this.scrollX?"auto":null,maxHeight:this.scrollY},this.ngZone.runOutsideAngular(()=>this.scroll$.next())}o&&this.ngZone.runOutsideAngular(()=>this.data$.next())}ngAfterViewInit(){if(this.platform.isBrowser){let e=this.scroll$.pipe(Me(null),dt(0),Re(()=>Ye(this.tableBodyElement.nativeElement,"scroll").pipe(Me(!0)))),n=this.resizeService.connect();st(e,n,this.data$,this.scroll$).pipe(Me(!0),dt(0),b(this.destroyRef)).subscribe(()=>this.setScrollPositionClassName()),e.pipe(ke(()=>!!this.scrollY)).subscribe(()=>{this.tableHeaderElement.nativeElement.scrollLeft=this.tableBodyElement.nativeElement.scrollLeft,this.tableFootElement&&(this.tableFootElement.nativeElement.scrollLeft=this.tableBodyElement.nativeElement.scrollLeft)})}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=M({type:t,selectors:[["nz-table-inner-scroll"]],viewQuery:function(n,i){if(n&1&&(G(no,5,ae),G(io,5,ae),G(oo,5,ae),G(Be,5,Be)),n&2){let o;Z(o=U())&&(i.tableHeaderElement=o.first),Z(o=U())&&(i.tableBodyElement=o.first),Z(o=U())&&(i.tableFootElement=o.first),Z(o=U())&&(i.cdkVirtualScrollViewport=o.first)}},hostAttrs:[1,"ant-table-container"],inputs:{data:"data",scrollX:"scrollX",scrollY:"scrollY",contentTemplate:"contentTemplate",widthConfig:"widthConfig",listOfColWidth:"listOfColWidth",theadTemplate:"theadTemplate",tfootTemplate:"tfootTemplate",tfootFixed:"tfootFixed",virtualTemplate:"virtualTemplate",virtualItemSize:"virtualItemSize",virtualMaxBufferPx:"virtualMaxBufferPx",virtualMinBufferPx:"virtualMinBufferPx",tableMainElement:"tableMainElement",virtualForTrackBy:"virtualForTrackBy",verticalScrollBarWidth:"verticalScrollBarWidth",noDataVirtualHeight:"noDataVirtualHeight"},features:[J],decls:2,vars:1,consts:[["tableHeaderElement",""],["tableBodyElement",""],["tableFootElement",""],[1,"ant-table-content",3,"style"],[1,"ant-table-header","nz-table-hide-scrollbar"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate","tfootTemplate"],["cdkScrollable","",1,"ant-table-body",3,"style"],[3,"itemSize","maxBufferPx","minBufferPx","height"],[1,"ant-table-summary",3,"style"],["cdkScrollable","",1,"ant-table-body"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","contentTemplate"],[3,"itemSize","maxBufferPx","minBufferPx"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth"],[4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-table-summary"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","tfootTemplate"],[1,"ant-table-content"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate","contentTemplate","tfootTemplate"]],template:function(n,i){n&1&&_(0,ho,6,8)(1,mo,3,7,"div",3),n&2&&S(i.scrollY?0:1)},dependencies:[gn,Jt,Ht,Qt,jt,Be,K,Cn],encapsulation:2,changeDetection:0})}return t})(),$o=(()=>{class t{templateRef=z(yt);static ngTemplateContextGuard(e,n){return!0}static \u0275fac=function(n){return new(n||t)};static \u0275dir=He({type:t,selectors:[["","nz-virtual-scroll",""]],exportAs:["nzVirtualScroll"]})}return t})(),_n=(()=>{class t{title=null;footer=null;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=M({type:t,selectors:[["nz-table-title-footer"]],hostVars:4,hostBindings:function(n,i){n&2&&$("ant-table-title",i.title!==null)("ant-table-footer",i.footer!==null)},inputs:{title:"title",footer:"footer"},decls:2,vars:2,consts:[[4,"nzStringTemplateOutlet"]],template:function(n,i){n&1&&k(0,uo,2,1,"ng-container",0)(1,zo,2,1,"ng-container",0),n&2&&(c("nzStringTemplateOutlet",i.title),r(),c("nzStringTemplateOutlet",i.footer))},dependencies:[Vt,$t],encapsulation:2,changeDetection:0})}return t})(),pn="table",Vo=(()=>{var A;let t,a=[],e=[],n,i=[],o=[],s,d=[],C=[],I,B=[],j=[],Y,re=[],ie=[],V,se=[],x=[],u,f=[],me=[];return A=class{_nzModuleName=pn;elementRef=z(ae);nzResizeObserver=z(_t);cdr=z(he);nzTableStyleService=z(Ge);nzTableDataService=z(dn);directionality=z(ve);destroyRef=z(q);nzTableLayout="auto";nzShowTotal=null;nzItemRender=null;nzTitle=null;nzFooter=null;nzNoResult=void 0;nzPageSizeOptions=[10,20,30,40,50];nzVirtualItemSize=0;nzVirtualMaxBufferPx=200;nzVirtualMinBufferPx=100;nzVirtualForTrackBy=N=>N;nzLoadingDelay=0;nzPageIndex=1;nzPageSize=10;nzTotal=0;nzWidthConfig=[];nzData=[];nzCustomColumn=[];nzPaginationPosition="bottom";nzScroll={x:null,y:null};noDataVirtualHeight="182px";nzPaginationType="default";nzFrontPagination=!0;nzTemplateMode=!1;nzShowPagination=!0;nzLoading=!1;nzOuterBordered=!1;nzLoadingIndicator=y(this,a,null);nzBordered=(y(this,e),y(this,i,!1));nzSize=(y(this,o),y(this,d,"default"));nzShowSizeChanger=(y(this,C),y(this,B,!1));nzHideOnSinglePage=(y(this,j),y(this,re,!1));nzShowQuickJumper=(y(this,ie),y(this,se,!1));nzSimple=(y(this,x),y(this,f,!1));nzPageSizeChange=(y(this,me),new F);nzPageIndexChange=new F;nzQueryParams=new F;nzCurrentPageDataChange=new F;nzCustomColumnChange=new F;data=[];cdkVirtualScrollViewport;scrollX=null;scrollY=null;theadTemplate=null;tfootTemplate=null;tfootFixed=null;listOfAutoColWidth=[];listOfManualColWidth=[];hasFixLeft=!1;hasFixRight=!1;showPagination=!0;templateMode$=new Q(!1);dir="ltr";nzVirtualScrollDirective;nzTableInnerScrollComponent;verticalScrollBarWidth=0;onPageSizeChange(N){this.nzTableDataService.updatePageSize(N)}onPageIndexChange(N){this.nzTableDataService.updatePageIndex(N)}constructor(){Rt(pn,()=>this.cdr.markForCheck())}ngOnInit(){let{pageIndexDistinct$:N,pageSizeDistinct$:p,listOfCurrentPageData$:g,total$:ce,queryParams$:_e,listOfCustomColumn$:et}=this.nzTableDataService,{theadTemplate$:tt,tfootTemplate$:nt,tfootFixed$:it,hasFixLeft$:ot,hasFixRight$:Sn}=this.nzTableStyleService;this.dir=this.directionality.value,this.directionality.change?.pipe(b(this.destroyRef)).subscribe(T=>{this.dir=T,this.cdr.detectChanges()}),_e.pipe(b(this.destroyRef)).subscribe(this.nzQueryParams),N.pipe(b(this.destroyRef)).subscribe(T=>{T!==this.nzPageIndex&&(this.nzPageIndex=T,this.nzPageIndexChange.next(T))}),p.pipe(b(this.destroyRef)).subscribe(T=>{T!==this.nzPageSize&&(this.nzPageSize=T,this.nzPageSizeChange.next(T))}),ce.pipe(b(this.destroyRef),ke(T=>this.nzFrontPagination&&T!==this.nzTotal)).subscribe(T=>{this.nzTotal=T,this.cdr.markForCheck()}),g.pipe(b(this.destroyRef)).subscribe(T=>{this.data=T,this.nzCurrentPageDataChange.next(T),this.cdr.markForCheck()}),et.pipe(b(this.destroyRef)).subscribe(T=>{this.nzCustomColumn=T,this.nzCustomColumnChange.next(T),this.cdr.markForCheck()}),tt.pipe(b(this.destroyRef)).subscribe(T=>{this.theadTemplate=T,this.cdr.markForCheck()}),de([nt,it]).pipe(b(this.destroyRef)).subscribe(([T,at])=>{this.tfootTemplate=T,this.tfootFixed=at,this.cdr.markForCheck()}),ot.pipe(b(this.destroyRef)).subscribe(T=>{this.hasFixLeft=T,this.cdr.markForCheck()}),Sn.pipe(b(this.destroyRef)).subscribe(T=>{this.hasFixRight=T,this.cdr.markForCheck()}),de([ce,this.templateMode$]).pipe(te(([T,at])=>T===0&&!at),b(this.destroyRef)).subscribe(T=>{this.nzTableStyleService.setShowEmpty(T)}),this.verticalScrollBarWidth=Mt("vertical"),this.nzTableStyleService.listOfListOfThWidthPx$.pipe(b(this.destroyRef)).subscribe(T=>{this.listOfAutoColWidth=T,this.cdr.markForCheck()}),this.nzTableStyleService.manualWidthConfigPx$.pipe(b(this.destroyRef)).subscribe(T=>{this.listOfManualColWidth=T,this.cdr.markForCheck()})}ngOnChanges(N){let{nzScroll:p,nzPageIndex:g,nzPageSize:ce,nzFrontPagination:_e,nzData:et,nzCustomColumn:tt,nzWidthConfig:nt,nzNoResult:it,nzTemplateMode:ot}=N;g&&this.nzTableDataService.updatePageIndex(this.nzPageIndex),ce&&this.nzTableDataService.updatePageSize(this.nzPageSize),et&&(this.nzData=this.nzData||[],this.nzTableDataService.updateListOfData(this.nzData)),tt&&(this.nzCustomColumn=this.nzCustomColumn||[],this.nzTableDataService.updateListOfCustomColumn(this.nzCustomColumn)),_e&&this.nzTableDataService.updateFrontPagination(this.nzFrontPagination),p&&this.setScrollOnChanges(),nt&&this.nzTableStyleService.setTableWidthConfig(this.nzWidthConfig),ot&&this.templateMode$.next(this.nzTemplateMode),it&&this.nzTableStyleService.setNoResult(this.nzNoResult),this.updateShowPagination()}ngAfterViewInit(){this.nzResizeObserver.observe(this.elementRef).pipe(te(([N])=>{let{width:p}=N.target.getBoundingClientRect(),g=this.scrollY?this.verticalScrollBarWidth:0;return Math.floor(p-g)}),b(this.destroyRef)).subscribe(this.nzTableStyleService.hostWidth$),this.nzTableInnerScrollComponent&&this.nzTableInnerScrollComponent.cdkVirtualScrollViewport&&(this.cdkVirtualScrollViewport=this.nzTableInnerScrollComponent.cdkVirtualScrollViewport)}setScrollOnChanges(){this.scrollX=this.nzScroll&&this.nzScroll.x||null,this.scrollY=this.nzScroll&&this.nzScroll.y||null,this.nzTableStyleService.setScroll(this.scrollX,this.scrollY)}updateShowPagination(){this.showPagination=this.nzHideOnSinglePage&&this.nzData.length>this.nzPageSize||this.nzData.length>0&&!this.nzHideOnSinglePage||!this.nzFrontPagination&&this.nzTotal>this.nzPageSize}},(()=>{let N=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[W()],n=[W()],s=[W()],I=[W()],Y=[W()],V=[W()],u=[W()],L(null,null,t,{kind:"field",name:"nzLoadingIndicator",static:!1,private:!1,access:{has:p=>"nzLoadingIndicator"in p,get:p=>p.nzLoadingIndicator,set:(p,g)=>{p.nzLoadingIndicator=g}},metadata:N},a,e),L(null,null,n,{kind:"field",name:"nzBordered",static:!1,private:!1,access:{has:p=>"nzBordered"in p,get:p=>p.nzBordered,set:(p,g)=>{p.nzBordered=g}},metadata:N},i,o),L(null,null,s,{kind:"field",name:"nzSize",static:!1,private:!1,access:{has:p=>"nzSize"in p,get:p=>p.nzSize,set:(p,g)=>{p.nzSize=g}},metadata:N},d,C),L(null,null,I,{kind:"field",name:"nzShowSizeChanger",static:!1,private:!1,access:{has:p=>"nzShowSizeChanger"in p,get:p=>p.nzShowSizeChanger,set:(p,g)=>{p.nzShowSizeChanger=g}},metadata:N},B,j),L(null,null,Y,{kind:"field",name:"nzHideOnSinglePage",static:!1,private:!1,access:{has:p=>"nzHideOnSinglePage"in p,get:p=>p.nzHideOnSinglePage,set:(p,g)=>{p.nzHideOnSinglePage=g}},metadata:N},re,ie),L(null,null,V,{kind:"field",name:"nzShowQuickJumper",static:!1,private:!1,access:{has:p=>"nzShowQuickJumper"in p,get:p=>p.nzShowQuickJumper,set:(p,g)=>{p.nzShowQuickJumper=g}},metadata:N},se,x),L(null,null,u,{kind:"field",name:"nzSimple",static:!1,private:!1,access:{has:p=>"nzSimple"in p,get:p=>p.nzSimple,set:(p,g)=>{p.nzSimple=g}},metadata:N},f,me),N&&Object.defineProperty(A,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:N})})(),oe(A,"\u0275fac",function(p){return new(p||A)}),oe(A,"\u0275cmp",M({type:A,selectors:[["nz-table"]],contentQueries:function(p,g,ce){if(p&1&&Ft(ce,$o,5),p&2){let _e;Z(_e=U())&&(g.nzVirtualScrollDirective=_e.first)}},viewQuery:function(p,g){if(p&1&&G(bt,5),p&2){let ce;Z(ce=U())&&(g.nzTableInnerScrollComponent=ce.first)}},hostAttrs:[1,"ant-table-wrapper"],hostVars:4,hostBindings:function(p,g){p&2&&$("ant-table-wrapper-rtl",g.dir==="rtl")("ant-table-custom-column",g.nzCustomColumn.length)},inputs:{nzTableLayout:"nzTableLayout",nzShowTotal:"nzShowTotal",nzItemRender:"nzItemRender",nzTitle:"nzTitle",nzFooter:"nzFooter",nzNoResult:"nzNoResult",nzPageSizeOptions:"nzPageSizeOptions",nzVirtualItemSize:"nzVirtualItemSize",nzVirtualMaxBufferPx:"nzVirtualMaxBufferPx",nzVirtualMinBufferPx:"nzVirtualMinBufferPx",nzVirtualForTrackBy:"nzVirtualForTrackBy",nzLoadingDelay:"nzLoadingDelay",nzPageIndex:"nzPageIndex",nzPageSize:"nzPageSize",nzTotal:"nzTotal",nzWidthConfig:"nzWidthConfig",nzData:"nzData",nzCustomColumn:"nzCustomColumn",nzPaginationPosition:"nzPaginationPosition",nzScroll:"nzScroll",noDataVirtualHeight:"noDataVirtualHeight",nzPaginationType:"nzPaginationType",nzFrontPagination:[2,"nzFrontPagination","nzFrontPagination",w],nzTemplateMode:[2,"nzTemplateMode","nzTemplateMode",w],nzShowPagination:[2,"nzShowPagination","nzShowPagination",w],nzLoading:[2,"nzLoading","nzLoading",w],nzOuterBordered:[2,"nzOuterBordered","nzOuterBordered",w],nzLoadingIndicator:"nzLoadingIndicator",nzBordered:[2,"nzBordered","nzBordered",w],nzSize:"nzSize",nzShowSizeChanger:[2,"nzShowSizeChanger","nzShowSizeChanger",w],nzHideOnSinglePage:[2,"nzHideOnSinglePage","nzHideOnSinglePage",w],nzShowQuickJumper:[2,"nzShowQuickJumper","nzShowQuickJumper",w],nzSimple:[2,"nzSimple","nzSimple",w]},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange",nzQueryParams:"nzQueryParams",nzCurrentPageDataChange:"nzCurrentPageDataChange",nzCustomColumnChange:"nzCustomColumnChange"},exportAs:["nzTable"],features:[Nt([Ge,dn]),J],ngContentSelectors:Ce,decls:13,vars:26,consts:[["tableMainElement",""],["paginationTemplate",""],["contentTemplate",""],[3,"nzDelay","nzSpinning","nzIndicator"],[3,"ngTemplateOutlet"],[1,"ant-table"],[3,"title"],[3,"data","scrollX","scrollY","contentTemplate","listOfColWidth","theadTemplate","tfootTemplate","tfootFixed","verticalScrollBarWidth","virtualTemplate","virtualItemSize","virtualMaxBufferPx","virtualMinBufferPx","tableMainElement","virtualForTrackBy","noDataVirtualHeight"],[3,"tableLayout","listOfColWidth","theadTemplate","contentTemplate","tfootTemplate"],[3,"footer"],[1,"ant-table-pagination","ant-table-pagination-right",3,"hidden","nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex"],[1,"ant-table-pagination","ant-table-pagination-right",3,"nzPageSizeChange","nzPageIndexChange","hidden","nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex"]],template:function(p,g){p&1&&(pe(),h(0,"nz-spin",3),_(1,go,1,1,null,4),h(2,"div",5,0),_(4,Co,1,1,"nz-table-title-footer",6),_(5,_o,1,16,"nz-table-inner-scroll",7)(6,So,1,5,"nz-table-inner-default",8),_(7,xo,1,1,"nz-table-title-footer",9),m(),_(8,To,1,1,null,4),m(),k(9,wo,1,1,"ng-template",null,1,ee)(11,vo,1,0,"ng-template",null,2,ee)),p&2&&(c("nzDelay",g.nzLoadingDelay)("nzSpinning",g.nzLoading)("nzIndicator",g.nzLoadingIndicator),r(),S(g.nzPaginationPosition==="both"||g.nzPaginationPosition==="top"?1:-1),r(),$("ant-table-rtl",g.dir==="rtl")("ant-table-fixed-header",g.nzData.length&&g.scrollY)("ant-table-fixed-column",g.scrollX)("ant-table-has-fix-left",g.hasFixLeft)("ant-table-has-fix-right",g.hasFixRight)("ant-table-bordered",g.nzBordered)("nz-table-out-bordered",g.nzOuterBordered&&!g.nzBordered)("ant-table-middle",g.nzSize==="middle")("ant-table-small",g.nzSize==="small"),r(2),S(g.nzTitle?4:-1),r(),S(g.scrollY||g.scrollX?5:6),r(2),S(g.nzFooter?7:-1),r(),S(g.nzPaginationPosition==="both"||g.nzPaginationPosition==="bottom"?8:-1))},dependencies:[on,K,_n,bt,Ro,cn,xt],encapsulation:2,changeDetection:0})),A})();var nl=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Qe({type:t});static \u0275inj=We({imports:[Vo,Io,Fo,Cn,_n,bt,fn,un,zn,mn,ko]})}return t})();export{nl as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as vt}from"./chunk-ACZLOZZH.js";import{a as xt,e as kt,f as Mt}from"./chunk-UIDFNBD4.js";import{a as ht}from"./chunk-HT3VTKOZ.js";import"./chunk-6ZXMOHQD.js";import{g as bt,h as Tt}from"./chunk-5RKAWOOJ.js";import"./chunk-SIVPP74B.js";import"./chunk-ZJKBRM7K.js";import{b as zt}from"./chunk-IGJYBE5M.js";import"./chunk-HZ73CM45.js";import{b as S,c as gt,d as E}from"./chunk-CF64VPDQ.js";import{f as F}from"./chunk-TN5O5PXP.js";import{a as A,e as dt}from"./chunk-34QRY4VA.js";import{c as _t,d as Ct}from"./chunk-GKOCPXFS.js";import"./chunk-SNCDDYQR.js";import{H as ut,I as ft}from"./chunk-A6CKMRBS.js";import{Cb as I,Eb as D,M as h,N as f,T as ot,U as x,V as P,W as st,Y as O,Z as k,ib as at,kb as rt,ob as lt,sb as M,vb as pt,xb as ct,yb as mt,z as it,zb as N}from"./chunk-J43J3F2V.js";import"./chunk-HFZLJHYR.js";import{i as C}from"./chunk-53YRDYLS.js";import{$b as K,Ca as G,Eb as u,Fc as et,Ic as d,Jc as v,Kc as z,Q as H,U as Q,Vb as y,Xb as w,_b as J,ac as c,bc as o,cc as s,dc as l,g as b,gd as nt,kc as X,l as U,mb as r,qc as m,ra as g,tc as _,xa as W,xc as Y,ya as q,yb as T,yc as Z,zc as tt}from"./chunk-SJG2JCPL.js";var L=class n{constructor(e,t,i){this.stream=e;this.clipboard=t;this.notify=i;this.resizeSub.add(this.resize$.pipe(H(350),Q((a,p)=>a.cols===p.cols&&a.rows===p.rows),it(this.destroyRef)).subscribe(a=>{this._taskId&&this.stream.resize(this._taskId,a.cols,a.rows)}))}_taskId="";destroyRef=g(G);set taskId(e){let t=(e??"").trim();t&&t!==this._taskId&&(this._taskId&&(this.stream.unsubscribeTask(this._taskId),this.term?.clear()),this._taskId=t,this.bind(t))}get taskId(){return this._taskId}tail=200;follow=!0;status={status:"idle"};term;sub=new b;resizeSub=new b;resize$=new U;bind(e){this.stream.subscribeTask(e,this.tail),this.sub.unsubscribe(),this.sub=new b,this.sub.add(this.stream.output$(e).subscribe(t=>{this.term&&(this.term.follow=this.follow,this.term.write(t.payload.text))})),this.sub.add(this.stream.status$(e).subscribe(t=>this.status=t))}ngOnDestroy(){this._taskId&&this.stream.unsubscribeTask(this._taskId),this.sub.unsubscribe(),this.resizeSub.unsubscribe()}toggleFollow(){this.follow=!this.follow,this.follow&&this.term?.scrollToBottom()}clear(){this.term?.clear()}toBottom(){this.term?.scrollToBottom()}async copy(){let e=this.term?.copyAll()??"";if(!e)return;this.clipboard.copy(e)?this.notify.success("Console output copied to clipboard."):this.notify.error("Failed to copy console output.")}onTermResized(e){this.resize$.next(e)}static \u0275fac=function(t){return new(t||n)(T(gt),T(bt),T(ut))};static \u0275cmp=u({type:n,selectors:[["app-task-console"]],viewQuery:function(t,i){if(t&1&&Y(A,5),t&2){let a;Z(a=tt())&&(i.term=a.first)}},inputs:{taskId:"taskId",tail:"tail"},decls:16,vars:1,consts:[[1,"console-card"],[1,"header"],[1,"title"],["nzType","desktop","nzTheme","outline"],[1,"id"],[1,"actions"],["nzAlign","center"],["nz-button","","nz-tooltip","\u6E05\u7A7A\u65E5\u5FD7",3,"click"],["nzType","clear","nzTheme","outline"],["nz-button","","nz-tooltip","\u590D\u5236\u65E5\u5FD7",3,"click"],["nzType","copy","nzTheme","outline"],["nz-button","","nz-tooltip","\u6EDA\u52A8\u5230\u5E95\u90E8",3,"click"],["nzType","vertical-align-bottom","nzTheme","outline"],[1,"viewport"],[3,"resized","follow"]],template:function(t,i){t&1&&(o(0,"div",0)(1,"div",1)(2,"div",2),l(3,"nz-icon",3),o(4,"div",4),d(5,"\u8F93\u51FA"),s()(),o(6,"div",5)(7,"nz-space",6)(8,"button",7),m("click",function(){return i.clear()}),l(9,"nz-icon",8),s(),o(10,"button",9),m("click",function(){return i.copy()}),l(11,"nz-icon",10),s(),o(12,"button",11),m("click",function(){return i.toBottom()}),l(13,"nz-icon",12),s()()()(),o(14,"div",13)(15,"app-terminal-view",14),m("resized",function(p){return i.onTermResized(p)}),s()()()),t&2&&(r(15),c("follow",i.follow))},dependencies:[M,k,O,P,st,x,ot,f,h,D,I,A,Tt],styles:[".console-card[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column;border:1px solid rgba(255,255,255,.08);border-radius:8px;overflow:hidden;min-height:0}.header[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:8px 12px}.header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .status[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .status[_ngcontent-%COMP%] .running[_ngcontent-%COMP%]{opacity:.9}.header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .status[_ngcontent-%COMP%] .stopped[_ngcontent-%COMP%]{opacity:.8}.header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .status[_ngcontent-%COMP%] .idle[_ngcontent-%COMP%]{opacity:.6}.viewport[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;overflow:hidden;padding:8px;background:#000;border-radius:8px}"]})};var j=class n{name;description;command;static \u0275fac=function(t){return new(t||n)};static \u0275cmp=u({type:n,selectors:[["app-task-header"]],inputs:{name:"name",description:"description",command:"command"},decls:7,vars:3,consts:[[1,"name"],["nzType","appstore"],[1,"description"],[1,"command"]],template:function(t,i){t&1&&(o(0,"div",0),l(1,"nz-icon",1),d(2),s(),o(3,"div",2),d(4),s(),o(5,"div",3),d(6),s()),t&2&&(r(2),z(" ",i.name||"\u672A\u9009\u62E9\u4EFB\u52A1"),r(2),v(i.description||"-"),r(2),v(i.command||"-"))},dependencies:[C,f,h],styles:["[_nghost-%COMP%]{padding:0 16px;display:flex;flex-direction:row;align-items:center}[_nghost-%COMP%] .name[_ngcontent-%COMP%]{font-size:22px;position:relative;top:-1px}[_nghost-%COMP%] .description[_ngcontent-%COMP%]{flex:1;color:var(--app-text-secondary);font-size:15px;margin:0 16px;overflow:hidden;-ms-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] .command[_ngcontent-%COMP%]{font-family:Roboto Mono,monospace;font-size:13px;background:var(--app-primary-3);height:32px;line-height:32px;padding:0 12px;border-radius:3px;overflow:hidden;-ms-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box}"]})};var Nt=(n,e)=>e.spec.id;function It(n,e){n&1&&(o(0,"div",7),d(1,"Loading..."),s())}function Dt(n,e){if(n&1&&(o(0,"div",7),d(1),s()),n&2){let t=_(2);r(),z("No tasks for project: ",t.projectId())}}function Et(n,e){n&1&&l(0,"nz-badge",14)}function Ft(n,e){n&1&&l(0,"nz-badge",15)}function Lt(n,e){n&1&&l(0,"nz-badge",16)}function jt(n,e){if(n&1){let t=X();o(0,"div",10),m("click",function(){let a=W(t).$implicit,p=_(3);return q(p.state.select(a.spec.id))}),o(1,"div",11)(2,"div",12),l(3,"nz-icon",13),y(4,Et,1,0,"nz-badge",14)(5,Ft,1,0,"nz-badge",15)(6,Lt,1,0,"nz-badge",16),s(),o(7,"div",17)(8,"div",18),d(9),s(),o(10,"div",19),d(11),s()()()()}if(n&2){let t=e.$implicit,i=_(3);et("active",t.spec.id===i.selectedId()),r(),c("nz-tooltip",t.spec.description||""),r(3),w((t==null||t.runtime==null?null:t.runtime.status)==="running"?4:(t==null||t.runtime==null?null:t.runtime.status)==="stopping"?5:6),r(4),c("title",t.spec.name),r(),v(t.spec.name),r(2),z(" ",(t.runtime==null?null:t.runtime.status)==="running"?"\u8FD0\u884C\u4E2D":(t.runtime==null?null:t.runtime.status)==="stopping"?"\u505C\u6B62\u4E2D":(t.runtime==null?null:t.runtime.status)==="stopped"?"\u5DF2\u505C\u6B62":t.spec.description||"\u7A7A\u95F2\u4E2D"," ")}}function Bt(n,e){if(n&1&&(o(0,"div",8),J(1,jt,12,7,"div",9,Nt),s()),n&2){let t=_(2);r(),K(t.list())}}function Rt(n,e){if(n&1&&y(0,Dt,2,1,"div",7)(1,Bt,3,0,"div",8),n&2){let t=_();w(t.list().length===0?0:1)}}var B=class n{state=g(E);keyword=this.state.keyword;loading=this.state.loading;list=this.state.rowsViewFiltered;selectedId=this.state.selectedTaskId;projectId=this.state.projectId;badge(e){return e??""}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=u({type:n,selectors:[["app-task-list"]],decls:10,vars:2,consts:[[1,"list-card"],[1,"topbar"],["nzInputPrefix","","nzType","search",1,"search-icon"],["nz-input","","placeholder","\u641C\u7D22\u4EFB\u52A1",3,"ngModelChange","ngModel"],["nz-button","","nzType","text",3,"click"],["nz-icon","","nzType","reload"],[1,"items-container"],[1,"hint"],[1,"items"],[1,"item",3,"active"],[1,"item",3,"click"],["nzTooltipPlacement","right",1,"row",3,"nz-tooltip"],[1,"icon"],["nzType","codepen-circle","nzTheme","outline"],["nzStatus","processing"],["nzStatus","warning"],["nzStatus","default"],[1,"info"],[1,"name",3,"title"],[1,"description"]],template:function(t,i){t&1&&(o(0,"div",0)(1,"div",1)(2,"nz-input-wrapper"),l(3,"nz-icon",2),o(4,"input",3),m("ngModelChange",function(p){return i.keyword.set(p)}),s()(),o(5,"button",4),m("click",function(){return i.state.refresh()}),l(6,"span",5),s()(),o(7,"div",6),y(8,It,2,0,"div",7)(9,Rt,2,1),s()()),t&2&&(r(4),c("ngModel",i.keyword()),r(4),w(i.loading()?8:9))},dependencies:[C,M,at,rt,lt,k,O,P,f,h,S,x,F,N,ct,mt,pt,D,I,Ct,_t],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;width:320px}.list-card[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column;border:1px solid rgba(0,0,0,.12);border-radius:12px;overflow:hidden}.topbar[_ngcontent-%COMP%]{width:100%;padding:10px 12px;display:flex;gap:10px;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(0,0,0,.12);flex:0 0 auto}.topbar[_ngcontent-%COMP%] nz-input-wrapper[_ngcontent-%COMP%]{width:100%;border-radius:18px}.items-container[_ngcontent-%COMP%]{flex:1 1 auto;height:0;display:flex;flex-direction:column}.error[_ngcontent-%COMP%]{padding:10px 12px;color:#b42318;flex:0 0 auto}.hint[_ngcontent-%COMP%]{padding:12px;opacity:.7;flex:0 0 auto}.items[_ngcontent-%COMP%]{flex:1 1 auto;overflow:auto;padding:8px;display:flex;flex-direction:column;gap:8px;height:100%;overflow-x:hidden;overflow-y:auto}.item[_ngcontent-%COMP%]{border-radius:3px;padding:10px;cursor:pointer}.item[_ngcontent-%COMP%]:hover, .item.active[_ngcontent-%COMP%]{background:var(--app-primary-3)}.item[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{display:flex;gap:10px;align-items:center;overflow:hidden;justify-content:space-between}.item[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{font-size:42px;flex:0 0 auto;position:relative}.item[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .info[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;flex-direction:column;gap:4px;overflow:hidden}.item[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{font-size:13px;color:var(--app-text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item[_ngcontent-%COMP%] .badge[_ngcontent-%COMP%]{font-size:12px;padding:2px 8px;border-radius:999px;border:1px solid rgba(0,0,0,.2);opacity:.85}.item[_ngcontent-%COMP%] .badge[data-status=running][_ngcontent-%COMP%]{font-weight:700}.item[_ngcontent-%COMP%] .badge[data-status=stopped][_ngcontent-%COMP%]{opacity:.7}.item[_ngcontent-%COMP%] .badge[data-status=failed][_ngcontent-%COMP%]{font-weight:700}.item[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%]{margin-top:6px;font-size:12px;opacity:.75;display:flex;align-items:center;gap:6px}.item[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%] .mono[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,Liberation Mono,monospace}.item[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%] .sep[_ngcontent-%COMP%]{opacity:.5}"]})};var wt=class n{projectState=g(ft);taskState=g(E);selectedTask=this.taskState.selectedRow;constructor(){nt(async()=>{let e=this.projectState.currentProjectId();e&&await this.taskState.setProject(e)})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=u({type:n,selectors:[["app-tasks"]],decls:7,vars:9,consts:[[3,"title","isFullscreen"],[1,"page"],[1,"content"],[3,"name","description","command"],[3,"toggle","isStopping","isRunning","isStopped"],[3,"taskId"]],template:function(t,i){if(t&1&&(o(0,"page-layout",0)(1,"nz-layout",1),l(2,"app-task-list"),o(3,"nz-content",2),l(4,"app-task-header",3),o(5,"app-task-actions",4),m("toggle",function(){return i.taskState.toggleTask()}),s(),l(6,"app-task-console",5),s()()()),t&2){let a,p,R;c("title","\u4EFB\u52A1")("isFullscreen",!0),r(4),c("name",(a=i.selectedTask())==null||a.spec==null?null:a.spec.name)("description",(p=i.selectedTask())==null||p.spec==null?null:p.spec.description)("command",(R=i.selectedTask())==null||R.spec==null?null:R.spec.command),r(),c("isStopping",i.taskState.isStopping())("isRunning",i.taskState.isRunning())("isStopped",i.taskState.isStopped()),r(),c("taskId",i.taskState.selectedTaskId())}},dependencies:[C,M,x,F,k,N,vt,S,zt,f,Mt,kt,xt,L,B,ht,j,dt],styles:[".page[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:row;overflow:hidden;gap:16px;padding:0 16px}app-task-list[_ngcontent-%COMP%]{flex:0 0 320px;width:320px}.content[_ngcontent-%COMP%]{flex:1 1 auto;width:0;display:flex;flex-direction:column;gap:16px;height:100%;overflow:hidden}app-task-header[_ngcontent-%COMP%], app-task-actions[_ngcontent-%COMP%]{flex:0 0 auto}app-task-console[_ngcontent-%COMP%]{flex:1 1 auto;display:block;height:0}"]})};export{wt as TasksComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as F,e as c}from"./chunk-34QRY4VA.js";import"./chunk-J43J3F2V.js";import"./chunk-HFZLJHYR.js";import{B as m,i as s}from"./chunk-53YRDYLS.js";import{Eb as r,Fb as l,Ic as e,ac as p,bc as u,cc as t,na as E}from"./chunk-SJG2JCPL.js";var C=["class","component"],o=class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=r({type:i,selectors:[["app-about",8,"component"]],attrs:C,decls:31,vars:1,consts:[[3,"title"],[1,"header"],[1,"content"],["href","https://ng-manager.example.com","target","_blank"]],template:function(n,g){n&1&&(u(0,"page-layout",0)(1,"div",1)(2,"h2"),e(3,"\u5173\u4E8E Ng-Manager"),t()(),u(4,"div",2)(5,"p"),e(6,"Ng-Manager \u662F\u4E00\u4E2A\u5F00\u6E90\u7684 Angular \u9879\u76EE\u7BA1\u7406\u5DE5\u5177\uFF0C\u65E8\u5728\u5E2E\u52A9\u5F00\u53D1\u8005\u66F4\u9AD8\u6548\u5730\u7BA1\u7406\u548C\u7EC4\u7EC7\u4ED6\u4EEC\u7684 Angular/Vue \u9879\u76EE\u3002"),t(),u(7,"p"),e(8,"\u5B83\u63D0\u4F9B\u4E86\u4E00\u4E2A\u76F4\u89C2\u7684\u754C\u9762\uFF0C\u5141\u8BB8\u7528\u6237\u8F7B\u677E\u521B\u5EFA\u3001\u5BFC\u5165\u548C\u7BA1\u7406\u591A\u4E2A Angular/Vue \u9879\u76EE\uFF0C\u540C\u65F6\u96C6\u6210\u4E86\u5E38\u7528\u7684\u5F00\u53D1\u5DE5\u5177\u548C\u529F\u80FD\u3002"),t(),u(9,"div")(10,"p"),e(11,"\u4E3B\u8981\u529F\u80FD\u5305\u62EC\uFF1A"),t(),u(12,"ul")(13,"li"),e(14,"\u9879\u76EE\u521B\u5EFA\u4E0E\u5BFC\u5165"),t(),u(15,"li"),e(16,"\u9879\u76EE\u4EEA\u8868\u76D8\u81EA\u5B9A\u4E49"),t(),u(17,"li"),e(18,"\u4F9D\u8D56\u7BA1\u7406"),t(),u(19,"li"),e(20,"\u9879\u76EE\u4EFB\u52A1\u7BA1\u7406"),t(),u(21,"li"),e(22,"\u591A\u9879\u76EE\u652F\u6301"),t(),u(23,"li"),e(24,"\u96C6\u6210\u5E38\u7528\u5F00\u53D1\u5DE5\u5177"),t()()(),u(25,"p"),e(26,"\u7248\u672C\uFF1A1.0.0"),t(),u(27,"p"),e(28,"\u5B98\u65B9\u7F51\u7AD9\uFF1A"),u(29,"a",3),e(30,"https://ng-manager.example.com"),t()()()()),n&2&&p("title","\u5173\u4E8E")},dependencies:[s,F,c],encapsulation:2})};var f=[{path:"",component:o}],d=class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=l({type:i});static \u0275inj=E({imports:[m.forChild(f),m]})};export{d as AboutRoutingModule};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{a as an}from"./chunk-ACZLOZZH.js";import{f as on}from"./chunk-UIDFNBD4.js";import{e as sn}from"./chunk-ECWYTW7Q.js";import{g as rn}from"./chunk-5RKAWOOJ.js";import"./chunk-ZJKBRM7K.js";import{a as yn}from"./chunk-HZ73CM45.js";import{d as Se,e as Ne,f as Ie}from"./chunk-TN5O5PXP.js";import{e as Wt,g as qt,h as Ut}from"./chunk-34QRY4VA.js";import{A as Xt,B as Yt,C as en,D as De,G as tn,I as nn,c as ze,g as Zt,q as Ht,x as Kt,y as Jt,z as Gt}from"./chunk-A6CKMRBS.js";import{Cb as nt,Eb as me,F as Vt,H as ae,I as kt,M as ee,N as $,O as et,P as tt,T as Ft,U as Rt,V as ve,W as Ee,Wa as jt,Xa as Bt,Y as be,Ya as $t,Z as Te,ib as Me,kb as re,ob as se,q as Xe,r as Ot,sb as le,tb as At,ub as we,vb as Lt,w as Ye,x as Pt,xb as ce,yb as Qt,z as B,zb as Z}from"./chunk-J43J3F2V.js";import"./chunk-HFZLJHYR.js";import{B as Ge,d as It,i as O}from"./chunk-53YRDYLS.js";import{$b as N,Aa as Ct,Ab as xt,Ba as gt,Ca as _e,Dc as Mt,Eb as w,Ec as ye,Fb as Q,Fc as de,Gb as zt,Ha as I,Ic as m,Jc as V,Kb as J,Kc as F,Mc as Ze,Nc as He,Oa as Ue,Oc as Ke,Ra as he,Tb as vt,Vb as y,Vc as Y,W as ut,Wc as wt,Xb as x,Yb as Et,_b as S,a as H,ac as f,ad as Dt,b as K,bc as s,cc as l,da as qe,dc as T,e as hn,f as We,fd as j,g as dt,gd as St,hc as G,ic as X,kc as v,ld as Je,m as mt,ma as ft,mb as p,na as L,qc as C,r as ie,ra as u,rb as b,rd as xe,s as P,sb as _t,tc as r,ub as ht,uc as bt,vc as Tt,vd as oe,wd as Nt,xa as _,xb as yt,xc as W,ya as h,yc as q,z as ge,zc as U}from"./chunk-SJG2JCPL.js";var it=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=zt({type:t,selectors:[["button","nz-trans-button",""]],hostVars:8,hostBindings:function(i,o){i&2&&ye("border","0")("background","transparent")("padding","0")("line-height","inherit")}})}return t})(),ot=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Q({type:t});static \u0275inj=L({})}return t})();function vn(t,n){if(t&1&&(G(0),T(1,"nz-icon",2),X()),t&2){let e=n.$implicit;p(),f("nzType",e)}}var En=["textarea"];function bn(t,n){if(t&1){let e=v();s(0,"textarea",2,0),C("blur",function(){_(e);let o=r();return h(o.confirm())}),l(),s(2,"button",3),C("click",function(){_(e);let o=r();return h(o.confirm())}),T(3,"nz-icon",4),l()}}function Tn(t,n){if(t&1&&(G(0),T(1,"nz-icon",7),X()),t&2){let e=n.$implicit;p(),f("nzType",e)}}function Mn(t,n){if(t&1){let e=v();s(0,"button",5),C("click",function(){_(e);let o=r();return h(o.onClick())}),J(1,Tn,2,1,"ng-container",6),l()}if(t&2){let e=r();f("nzTooltipTitle",e.tooltip===null?null:e.tooltip||(e.locale==null?null:e.locale.edit)),p(),f("nzStringTemplateOutlet",e.icon)}}var wn=["ellipsisContainer"],Dn=["expandable"],Sn=["contentTemplate"],Nn=["*"],In=t=>({content:t});function On(t,n){t&1&&Tt(0)}function Pn(t,n){if(t&1&&(y(0,On,1,0),m(1)),t&2){let e=n.content;x(e?-1:0),p(),F(" ",e," ")}}function Vn(t,n){}function kn(t,n){if(t&1&&m(0),t&2){let e=r(3);F(" ",e.nzSuffix," ")}}function Fn(t,n){if(t&1&&(J(0,Vn,0,0,"ng-template",5),y(1,kn,1,1)),t&2){let e=r(2),i=Mt(1);f("ngTemplateOutlet",i)("ngTemplateOutletContext",wt(3,In,e.nzContent)),p(),x(e.nzSuffix?1:-1)}}function Rn(t,n){if(t&1&&m(0),t&2){let e=r(3);F(" ",e.ellipsisStr," ")}}function jn(t,n){if(t&1&&m(0),t&2){let e=r(3);F(" ",e.nzSuffix," ")}}function Bn(t,n){if(t&1){let e=v();s(0,"a",7,2),C("click",function(){_(e);let o=r(3);return h(o.onExpand())}),m(2),l()}if(t&2){let e=r(3);p(2),F(" ",e.locale==null?null:e.locale.expand," ")}}function $n(t,n){if(t&1&&(T(0,"span",null,1),y(2,Rn,1,1),y(3,jn,1,1),y(4,Bn,3,1,"a",6)),t&2){let e=r(2);p(2),x(e.isEllipsis?2:-1),p(),x(e.nzSuffix?3:-1),p(),x(e.nzExpandable&&e.isEllipsis?4:-1)}}function An(t,n){if(t&1&&y(0,Fn,2,5)(1,$n,5,3),t&2){let e=r();x(e.expanded||!e.hasOperationsWithEllipsis&&e.nzEllipsisRows===1&&!e.hasEllipsisObservers||e.canCssEllipsis||e.nzSuffix&&e.expanded?0:1)}}function Ln(t,n){if(t&1){let e=v();s(0,"nz-text-edit",8),C("endEditing",function(o){_(e);let a=r();return h(a.onEndEditing(o))})("startEditing",function(){_(e);let o=r();return h(o.onStartEditing())}),l()}if(t&2){let e=r();f("text",e.nzContent)("icon",e.nzEditIcon)("tooltip",e.nzEditTooltip)}}function Qn(t,n){if(t&1){let e=v();s(0,"nz-text-copy",9),C("textCopy",function(o){_(e);let a=r();return h(a.onTextCopy(o))}),l()}if(t&2){let e=r();f("text",e.copyText)("tooltips",e.nzCopyTooltips)("icons",e.nzCopyIcons)}}var at=(()=>{class t{cdr=u(xe);clipboard=u(rn);i18n=u(ze);destroyRef=u(_e);copied=!1;copyId;locale;nativeElement=u(he).nativeElement;copyTooltip=null;copedTooltip=null;copyIcon="copy";copedIcon="check";text;tooltips;icons=["copy","check"];textCopy=new b;constructor(){this.destroyRef.onDestroy(()=>{clearTimeout(this.copyId)})}ngOnInit(){this.i18n.localeChange.pipe(B(this.destroyRef)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.updateTooltips(),this.cdr.markForCheck()})}ngOnChanges(e){let{tooltips:i,icons:o}=e;i&&this.updateTooltips(),o&&this.updateIcons()}onClick(){if(this.copied)return;this.copied=!0,this.cdr.detectChanges();let e=this.text;this.textCopy.emit(e),this.clipboard.copy(e),this.onCopied()}onCopied(){clearTimeout(this.copyId),this.copyId=setTimeout(()=>{this.copied=!1,this.cdr.detectChanges()},3e3)}updateTooltips(){if(this.tooltips===null)this.copedTooltip=null,this.copyTooltip=null;else if(Array.isArray(this.tooltips)){let[e,i]=this.tooltips;this.copyTooltip=e||this.locale?.copy,this.copedTooltip=i||this.locale?.copied}else this.copyTooltip=this.locale?.copy,this.copedTooltip=this.locale?.copied;this.cdr.markForCheck()}updateIcons(){let[e,i]=this.icons;this.copyIcon=e,this.copedIcon=i,this.cdr.markForCheck()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=w({type:t,selectors:[["nz-text-copy"]],inputs:{text:"text",tooltips:"tooltips",icons:"icons"},outputs:{textCopy:"textCopy"},exportAs:["nzTextCopy"],features:[Ue],decls:2,vars:4,consts:[["type","button","nz-tooltip","","nz-trans-button","",1,"ant-typography-copy",3,"click","nzTooltipTitle"],[4,"nzStringTemplateOutlet"],[3,"nzType"]],template:function(i,o){i&1&&(s(0,"button",0),C("click",function(){return o.onClick()}),J(1,vn,2,1,"ng-container",1),l()),i&2&&(de("ant-typography-copy-success",o.copied),f("nzTooltipTitle",o.copied?o.copedTooltip:o.copyTooltip),p(),f("nzStringTemplateOutlet",o.copied?o.copedIcon:o.copyIcon))},dependencies:[me,nt,ot,it,$,ee,tt,et],encapsulation:2,changeDetection:0})}return t})(),rt=(()=>{class t{ngZone=u(_t);cdr=u(xe);i18n=u(ze);destroyRef=u(_e);editing=!1;locale;text;icon="edit";tooltip;startEditing=new b;endEditing=new b(!0);set textarea(e){this.textarea$.next(e)}autosizeDirective;beforeText;currentText;nativeElement=u(he).nativeElement;textarea$=new mt(null);injector=u(Ct);ngOnInit(){this.i18n.localeChange.pipe(B(this.destroyRef)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.cdr.markForCheck()}),this.textarea$.pipe(qe(e=>Ye(e?.nativeElement,"keydown")),B(this.destroyRef)).subscribe(e=>{e.keyCode!==27&&e.keyCode!==13||this.ngZone.run(()=>{e.keyCode===27?this.onCancel():this.onEnter(e),this.cdr.markForCheck()})}),this.textarea$.pipe(qe(e=>Ye(e?.nativeElement,"input")),B(this.destroyRef)).subscribe(e=>{this.currentText=e.target.value})}onClick(){this.beforeText=this.text,this.currentText=this.beforeText,this.editing=!0,this.startEditing.emit(),this.focusAndSetValue()}confirm(){this.editing=!1,this.endEditing.emit(this.currentText)}onEnter(e){e.stopPropagation(),e.preventDefault(),this.confirm()}onCancel(){this.currentText=this.beforeText,this.confirm()}focusAndSetValue(){let{injector:e}=this;ht(()=>{this.textarea$.pipe(ut(i=>i!=null),B(this.destroyRef)).subscribe(i=>{i.nativeElement.focus(),i.nativeElement.value=this.currentText||"",this.autosizeDirective.resizeToFitContent(),this.cdr.markForCheck()})},{injector:e})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=w({type:t,selectors:[["nz-text-edit"]],viewQuery:function(i,o){if(i&1&&(W(En,5),W(we,5)),i&2){let a;q(a=U())&&(o.textarea=a.first),q(a=U())&&(o.autosizeDirective=a.first)}},inputs:{text:"text",icon:"icon",tooltip:"tooltip"},outputs:{startEditing:"startEditing",endEditing:"endEditing"},exportAs:["nzTextEdit"],decls:2,vars:1,consts:[["textarea",""],["nz-tooltip","","nz-trans-button","",1,"ant-typography-edit",3,"nzTooltipTitle"],["nz-input","","nzAutosize","",3,"blur"],["nz-trans-button","",1,"ant-typography-edit-content-confirm",3,"click"],["nzType","enter"],["nz-tooltip","","nz-trans-button","",1,"ant-typography-edit",3,"click","nzTooltipTitle"],[4,"nzStringTemplateOutlet"],[3,"nzType"]],template:function(i,o){i&1&&y(0,bn,4,0)(1,Mn,2,2,"button",1),i&2&&x(o.editing?0:1)},dependencies:[Z,ce,we,ot,it,$,ee,me,nt,tt,et],encapsulation:2,changeDetection:0})}return t})(),Wn="typography",qn="ant-typography-expand",Un=(()=>{var k;let t,n=[],e=[],i,o=[],a=[],E,D=[],z=[],R,fe=[],Ce=[],lt,ct=[],pt=[];return k=class{_nzModuleName=Wn;nzConfigService=u(Vt);el=u(he).nativeElement;cdr=u(xe);viewContainerRef=u(xt);renderer=u(yt);platform=u(kt);i18n=u(ze);resizeService=u($t);directionality=u(Pt);document=u(gt);destroyRef=u(_e);nzCopyable=!1;nzEditable=!1;nzDisabled=!1;nzExpandable=!1;nzEllipsis=!1;nzCopyTooltips=P(this,n,void 0);nzCopyIcons=(P(this,e),P(this,o,["copy","check"]));nzEditTooltip=(P(this,a),P(this,D,void 0));nzEditIcon=(P(this,z),P(this,fe,"edit"));nzContent=P(this,Ce);nzEllipsisRows=P(this,ct,1);nzType=P(this,pt);nzCopyText;nzSuffix;nzContentChange=new b;nzCopy=new b;nzExpandChange=new b;nzOnEllipsis=new b;textEditRef;textCopyRef;ellipsisContainer;expandableBtn;contentTemplate;locale;expandableBtnElementCache=null;editing=!1;ellipsisText;cssEllipsis=!1;isEllipsis=!0;expanded=!1;ellipsisStr="...";dir="ltr";get hasEllipsisObservers(){return this.nzOnEllipsis.observers.length>0}get canCssEllipsis(){return this.nzEllipsis&&this.cssEllipsis&&!this.expanded&&!this.hasEllipsisObservers}get hasOperationsWithEllipsis(){return(this.nzCopyable||this.nzEditable||this.nzExpandable)&&this.nzEllipsis}viewInit=!1;requestId=-1;windowResizeSubscription=dt.EMPTY;get copyText(){return typeof this.nzCopyText=="string"?this.nzCopyText:this.nzContent}constructor(){this.destroyRef.onDestroy(()=>{this.expandableBtnElementCache=null,this.windowResizeSubscription.unsubscribe()})}onTextCopy(g){this.nzCopy.emit(g)}onStartEditing(){this.editing=!0}onEndEditing(g){this.editing=!1,this.nzContentChange.emit(g),this.nzContent===g&&this.renderOnNextFrame(),this.cdr.markForCheck()}onExpand(){this.isEllipsis=!1,this.expanded=!0,this.nzExpandChange.emit(),this.nzOnEllipsis.emit(!1)}canUseCSSEllipsis(){return this.nzEditable||this.nzCopyable||this.nzExpandable||this.nzSuffix||this.hasEllipsisObservers?!1:this.nzEllipsisRows===1?Xe("textOverflow"):Xe("webkitLineClamp")}renderOnNextFrame(){Bt(this.requestId),!(!this.viewInit||!this.nzEllipsis||this.nzEllipsisRows<0||this.expanded||!this.platform.isBrowser)&&(this.requestId=jt(()=>this.syncEllipsis()))}getOriginContentViewRef(){let g=this.viewContainerRef.createEmbeddedView(this.contentTemplate,{content:this.nzContent});return g.detectChanges(),{viewRef:g,removeView:()=>this.viewContainerRef.remove(this.viewContainerRef.indexOf(g))}}syncEllipsis(){if(this.cssEllipsis)return;let{viewRef:g,removeView:d}=this.getOriginContentViewRef(),c=[this.textCopyRef,this.textEditRef].filter(ne=>ne&&ne.nativeElement).map(ne=>ne.nativeElement),M=this.getExpandableBtnElement();M&&c.push(M);let{contentNodes:Le,text:Qe,ellipsis:pe}=Ot(this.el,this.nzEllipsisRows,g.rootNodes,c,this.ellipsisStr,this.nzSuffix);d(),this.ellipsisText=Qe,pe!==this.isEllipsis&&(this.isEllipsis=pe,this.nzOnEllipsis.emit(pe));let te=this.ellipsisContainer.nativeElement;for(;te.firstChild;)this.renderer.removeChild(te,te.firstChild);Le.forEach(ne=>{this.renderer.appendChild(te,ne.cloneNode(!0))}),this.cdr.markForCheck()}getExpandableBtnElement(){if(this.nzExpandable){let g=this.locale?this.locale.expand:"",d=this.expandableBtnElementCache;if(!d||d.innerText===g){let c=this.document.createElement("a");c.className=qn,c.innerText=g,this.expandableBtnElementCache=c}return this.expandableBtnElementCache}else return this.expandableBtnElementCache=null,null}renderAndSubscribeWindowResize(){this.platform.isBrowser&&(this.windowResizeSubscription.unsubscribe(),this.cssEllipsis=this.canUseCSSEllipsis(),this.renderOnNextFrame(),this.windowResizeSubscription=this.resizeService.connect().pipe(B(this.destroyRef)).subscribe(()=>this.renderOnNextFrame()))}ngOnInit(){this.i18n.localeChange.pipe(B(this.destroyRef)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.cdr.markForCheck()}),this.directionality.change?.pipe(B(this.destroyRef)).subscribe(g=>{this.dir=g,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterViewInit(){this.viewInit=!0,this.renderAndSubscribeWindowResize()}ngOnChanges(g){let{nzCopyable:d,nzEditable:c,nzExpandable:M,nzEllipsis:Le,nzContent:Qe,nzEllipsisRows:pe,nzSuffix:te}=g;(d||c||M||Le||Qe||pe||te)&&this.nzEllipsis&&(this.expanded?this.windowResizeSubscription.unsubscribe():this.renderAndSubscribeWindowResize())}},(()=>{let g=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[ae()],i=[ae()],E=[ae()],R=[ae()],lt=[ae()],ie(null,null,t,{kind:"field",name:"nzCopyTooltips",static:!1,private:!1,access:{has:d=>"nzCopyTooltips"in d,get:d=>d.nzCopyTooltips,set:(d,c)=>{d.nzCopyTooltips=c}},metadata:g},n,e),ie(null,null,i,{kind:"field",name:"nzCopyIcons",static:!1,private:!1,access:{has:d=>"nzCopyIcons"in d,get:d=>d.nzCopyIcons,set:(d,c)=>{d.nzCopyIcons=c}},metadata:g},o,a),ie(null,null,E,{kind:"field",name:"nzEditTooltip",static:!1,private:!1,access:{has:d=>"nzEditTooltip"in d,get:d=>d.nzEditTooltip,set:(d,c)=>{d.nzEditTooltip=c}},metadata:g},D,z),ie(null,null,R,{kind:"field",name:"nzEditIcon",static:!1,private:!1,access:{has:d=>"nzEditIcon"in d,get:d=>d.nzEditIcon,set:(d,c)=>{d.nzEditIcon=c}},metadata:g},fe,Ce),ie(null,null,lt,{kind:"field",name:"nzEllipsisRows",static:!1,private:!1,access:{has:d=>"nzEllipsisRows"in d,get:d=>d.nzEllipsisRows,set:(d,c)=>{d.nzEllipsisRows=c}},metadata:g},ct,pt),g&&Object.defineProperty(k,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:g})})(),We(k,"\u0275fac",function(d){return new(d||k)}),We(k,"\u0275cmp",w({type:k,selectors:[["nz-typography"],["","nz-typography",""],["p","nz-paragraph",""],["span","nz-text",""],["h1","nz-title",""],["h2","nz-title",""],["h3","nz-title",""],["h4","nz-title",""]],viewQuery:function(d,c){if(d&1&&(W(rt,5),W(at,5),W(wn,5),W(Dn,5),W(Sn,5)),d&2){let M;q(M=U())&&(c.textEditRef=M.first),q(M=U())&&(c.textCopyRef=M.first),q(M=U())&&(c.ellipsisContainer=M.first),q(M=U())&&(c.expandableBtn=M.first),q(M=U())&&(c.contentTemplate=M.first)}},hostVars:26,hostBindings:function(d,c){d&2&&(ye("-webkit-line-clamp",c.canCssEllipsis&&c.nzEllipsisRows>1?c.nzEllipsisRows:null),de("ant-typography",!c.editing)("ant-typography-rtl",c.dir==="rtl")("ant-typography-edit-content",c.editing)("ant-typography-secondary",c.nzType==="secondary")("ant-typography-warning",c.nzType==="warning")("ant-typography-danger",c.nzType==="danger")("ant-typography-success",c.nzType==="success")("ant-typography-disabled",c.nzDisabled)("ant-typography-ellipsis",c.nzEllipsis&&!c.expanded)("ant-typography-single-line",c.nzEllipsis&&c.nzEllipsisRows===1)("ant-typography-ellipsis-single-line",c.canCssEllipsis&&c.nzEllipsisRows===1)("ant-typography-ellipsis-multiple-line",c.canCssEllipsis&&c.nzEllipsisRows>1))},inputs:{nzCopyable:[2,"nzCopyable","nzCopyable",oe],nzEditable:[2,"nzEditable","nzEditable",oe],nzDisabled:[2,"nzDisabled","nzDisabled",oe],nzExpandable:[2,"nzExpandable","nzExpandable",oe],nzEllipsis:[2,"nzEllipsis","nzEllipsis",oe],nzCopyTooltips:"nzCopyTooltips",nzCopyIcons:"nzCopyIcons",nzEditTooltip:"nzEditTooltip",nzEditIcon:"nzEditIcon",nzContent:"nzContent",nzEllipsisRows:[2,"nzEllipsisRows","nzEllipsisRows",Nt],nzType:"nzType",nzCopyText:"nzCopyText",nzSuffix:"nzSuffix"},outputs:{nzContentChange:"nzContentChange",nzCopy:"nzCopy",nzExpandChange:"nzExpandChange",nzOnEllipsis:"nzOnEllipsis"},exportAs:["nzTypography"],features:[Ue],ngContentSelectors:Nn,decls:5,vars:3,consts:[["contentTemplate",""],["ellipsisContainer",""],["expandable",""],[3,"text","icon","tooltip"],[3,"text","tooltips","icons"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-typography-expand"],[1,"ant-typography-expand",3,"click"],[3,"endEditing","startEditing","text","icon","tooltip"],[3,"textCopy","text","tooltips","icons"]],template:function(d,c){d&1&&(bt(),J(0,Pn,2,2,"ng-template",null,0,Dt),y(2,An,2,1),y(3,Ln,1,3,"nz-text-edit",3),y(4,Qn,1,3,"nz-text-copy",4)),d&2&&(p(2),x(c.editing?-1:2),p(),x(c.nzEditable?3:-1),p(),x(c.nzCopyable&&!c.editing?4:-1))},dependencies:[It,rt,at],encapsulation:2,changeDetection:0})),k})(),pn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Q({type:t});static \u0275inj=L({imports:[Un,at,rt]})}return t})();var ue=hn(yn());function Jn(t,n){if(t&1){let e=v();s(0,"div",0)(1,"span",1),m(2,"\u6709\u672A\u4FDD\u5B58\u66F4\u6539"),l(),s(3,"button",2),C("click",function(){_(e);let o=r();return h(o.diff.emit())}),m(4,"Diff"),l(),s(5,"button",2),C("click",function(){_(e);let o=r();return h(o.reset.emit())}),m(6,"\u91CD\u7F6E"),l(),s(7,"button",3),C("click",function(){_(e);let o=r();return h(o.save.emit())}),m(8,"\u4FDD\u5B58"),l()()}}var Oe=class t{dirty=!1;diff=new b;reset=new b;save=new b;static \u0275fac=function(e){return new(e||t)};static \u0275cmp=w({type:t,selectors:[["app-config-change-bar-component"]],inputs:{dirty:"dirty"},outputs:{diff:"diff",reset:"reset",save:"save"},decls:1,vars:1,consts:[[1,"change-bar"],[1,"hint"],["nz-button","",3,"click"],["nz-button","","nzType","primary",3,"click"]],template:function(e,i){e&1&&y(0,Jn,9,0,"div",0),e&2&&x(i.dirty?0:-1)},dependencies:[O,Te,be,ve,Ee],styles:[".change-bar[_ngcontent-%COMP%]{width:100%;padding:10px 20px;display:flex;justify-content:flex-end;align-items:center;gap:10px;box-shadow:0 -2px 8px #0000000f;background:var(--app-component-bg);border:1px solid var(--app-border-color)}.hint[_ngcontent-%COMP%]{margin-right:auto;opacity:.75}"]})};var Gn=(t,n)=>n.id;function Xn(t,n){if(t&1){let e=v();s(0,"div",6),C("click",function(){let o=_(e).$implicit,a=r();return h(a.selectDomain(o))}),s(1,"div",7)(2,"div",8),T(3,"nz-icon",9),l(),s(4,"div",10)(5,"div",11),m(6),l(),s(7,"div",12),m(8),l()()()()}if(t&2){let e=n.$implicit,i=r();de("active",e.id===i.activeDomainId()),p(3),f("nzType",e.icon||"setting"),p(3),V(e.label),p(2),V(e.description)}}var Ve=class t{keyword=I("");nodes=Je([]);activeDomainId=Je("");domainSelect=new b;selectDomain(n){this.domainSelect.emit(n.id)}filtered=j(()=>{let n=this.keyword().trim().toLowerCase();return n?this.nodes().map(e=>K(H({},e),{children:(e.children??[]).filter(i=>(i.label??"").toLowerCase().includes(n)||(i.relPath??"").toLowerCase().includes(n))})).filter(e=>(e.children?.length??0)>0):this.nodes()});static \u0275fac=function(e){return new(e||t)};static \u0275cmp=w({type:t,selectors:[["app-config-nav-component"]],inputs:{nodes:[1,"nodes"],activeDomainId:[1,"activeDomainId"]},outputs:{domainSelect:"domainSelect"},decls:8,vars:1,consts:[[1,"list"],[1,"topbar"],["nzInputPrefix","","nzType","search",1,"search-icon"],["nz-input","","placeholder","",3,"ngModelChange","ngModel"],[1,"items"],[1,"item",3,"active"],[1,"item",3,"click"],[1,"row"],[1,"icon"],["nzTheme","outline",1,"project-suffix-icon",3,"nzType"],[1,"info"],[1,"name"],[1,"description"]],template:function(e,i){e&1&&(s(0,"div",0)(1,"div",1)(2,"nz-input-wrapper"),T(3,"nz-icon",2),s(4,"input",3),C("ngModelChange",function(a){return i.keyword.set(a)}),l()()(),s(5,"div",4),S(6,Xn,9,5,"div",5,Gn),l()()),e&2&&(p(4),f("ngModel",i.keyword()),p(2),N(i.filtered()))},dependencies:[O,le,Me,re,se,Z,ce,Qt,Lt,$,ee],styles:[".list[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;flex-direction:column}.list[_ngcontent-%COMP%] .topbar[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:10px 16px}.list[_ngcontent-%COMP%] .topbar[_ngcontent-%COMP%] nz-input-wrapper[_ngcontent-%COMP%]{width:100%;border-radius:18px}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%]{flex:1 1 auto;overflow:auto;height:0;display:flex;flex-direction:column;gap:8px;padding:8px}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{border-radius:3px;padding:10px;cursor:pointer}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:hover, .list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item.active[_ngcontent-%COMP%]{background:var(--app-primary-2)}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{display:flex;gap:10px;align-items:center;overflow:hidden;justify-content:space-between}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{font-size:42px;flex:0 0 auto;position:relative}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .info[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;flex-direction:column;gap:4px;overflow:hidden}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{font-size:13px;color:var(--app-text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}"]})};function ke(t,n){return n.split(".").reduce((e,i)=>e?e[i]:void 0,t)}function mn(t,n,e){let i=n.split("."),o=i.pop(),a=t;for(let E of i)a[E]??={},a=a[E];a[o]=e}function un(t){return t.sort((n,e)=>(n.domain?.nav?.order??0)-(e.domain?.nav?.order??0)).map(n=>({id:n.domain.id,type:"domain",label:n.domain.label,icon:n.domain.icon,description:n.domain.description,children:(n.docs??[]).map(e=>({id:e.spec.id,type:"doc",label:e.spec.title,docId:e.spec.id,relPath:e.chosen?.relPath,codec:e.chosen?.codec,exists:e.exists}))}))}var fn=t=>t!=null&&typeof t=="object"&&!Array.isArray(t);function Fe(t,n,e,i=""){if(e===void 0)return[];if(!fn(e))return[{scope:t,target:n,path:i||"/",value:e}];let o=[],a=Object.keys(e);if(a.length===0)return o.push({scope:t,target:n,path:i||"/",value:{}}),o;for(let E of a){let D=i?`${i}.${E}`:E,z=e[E];fn(z)?o.push(...Fe(t,n,z,D)):o.push({scope:t,target:n,path:D,value:z})}return o}var Cn=(t,n)=>n.value,ei=(t,n)=>n.key;function ti(t,n){if(t&1&&(s(0,"div",3),m(1),l()),t&2){let e=r();p(),F(" ",e.item.desc," ")}}function ni(t,n){if(t&1){let e=v();s(0,"input",8),C("ngModelChange",function(o){_(e);let a=r();return h(a.emit(o))}),l()}if(t&2){let e=r();f("ngModel",e.value)}}function ii(t,n){if(t&1){let e=v();s(0,"input",8),C("ngModelChange",function(o){_(e);let a=r();return h(a.emit(o))}),l()}if(t&2){let e=r();f("ngModel",e.value)}}function oi(t,n){if(t&1&&(s(0,"span"),m(1),l()),t&2){let e=r();p(),V(e.value)}}function ai(t,n){if(t&1&&(s(0,"nz-space",6),T(1,"nz-icon",9),s(2,"span"),m(3),l()()),t&2){let e=r();p(3),V(e.value)}}function ri(t,n){if(t&1){let e=v();s(0,"nz-switch",10),C("ngModelChange",function(o){_(e);let a=r();return h(a.emit(o))}),l()}if(t&2){let e=r();f("ngModel",e.value)}}function si(t,n){if(t&1&&T(0,"nz-option",11),t&2){let e=n.$implicit;f("nzValue",e.value)("nzLabel",e.label)}}function li(t,n){if(t&1){let e=v();s(0,"nz-select",10),C("ngModelChange",function(o){_(e);let a=r();return h(a.emit(o))}),S(1,si,1,2,"nz-option",11,Cn),l()}if(t&2){let e=r();f("ngModel",e.value),p(),N(e.options)}}function ci(t,n){if(t&1&&(s(0,"span"),m(1),l()),t&2){let e=r().$index;p(),V(e+1)}}function pi(t,n){t&1&&T(0,"nz-icon",12)}function di(t,n){if(t&1&&(T(0,"nz-icon",9),s(1,"span"),m(2),l(),y(3,pi,1,0,"nz-icon",12)),t&2){let e=n.$implicit,i=r().$implicit,o=r(3);p(2),F(" ",i==null?null:i[e.key]," "),p(),x(e!==o.arrayFields()[o.arrayFields().length-1]?3:-1)}}function mi(t,n){if(t&1&&(s(0,"nz-space"),y(1,ci,2,1,"span"),S(2,di,4,2,null,null,ei),l()),t&2){let e=r(3);p(),x(e.arrayValue().length>1?1:-1),p(),N(e.arrayFields())}}function ui(t,n){if(t&1&&S(0,mi,4,1,"nz-space",null,Et),t&2){let e=r(2);N(e.arrayValue())}}function fi(t,n){t&1&&(s(0,"span"),m(1,"\u6570\u7EC4\u7C7B\u578B\u914D\u7F6E\u9879\uFF0C\u6682\u4E0D\u652F\u6301\u8868\u5355\u7F16\u8F91"),l())}function Ci(t,n){if(t&1&&y(0,ui,2,0)(1,fi,2,0,"span"),t&2){let e=r();x(e.isArrayObjectEditor()?0:1)}}function gi(t,n){if(t&1&&(s(0,"nz-space")(1,"span",2),m(2),l(),s(3,"span",14),m(4),l()()),t&2){let e=n.$implicit;p(2),F("",e.label,":"),p(2),V(e.value)}}function _i(t,n){if(t&1&&(s(0,"div",13),S(1,gi,5,2,"nz-space",null,Cn),l()),t&2){let e=r(2);p(),N(e.objectKv())}}function hi(t,n){if(t&1&&y(0,_i,3,0,"div",13),t&2){let e=r();x(e.isObjectEditor()?0:-1)}}var Re=class t{item;value;valueChange=new b;options=[];emit(n){this.valueChange.emit(n)}isObjectEditor(){return this.item?.type==="object"}objectKv(){let n=this.value??{};return Object.values(n).map((e,i)=>typeof e=="string"?{label:Object.keys(n)[i],value:e}:{label:Object.keys(n)[i],value:JSON.stringify(e)})}isArrayObjectEditor(){return this.item?.type==="array"&&this.item?.item?.type==="object"&&Array.isArray(this.item?.item?.fields)&&this.item.item.fields.length>0}arrayFields(){return this.item?.item?.fields??[]}arrayValue(){return Array.isArray(this.value)?this.value:[]}addRow(){let n=this.arrayFields(),e={};for(let o of n)o.key&&(e[o.key]=o.default??"");let i=[...this.arrayValue(),e];this.emit(i)}removeRow(n){let i=this.arrayValue().filter((o,a)=>a!==n);this.emit(i)}updateCell(n,e,i){let a=this.arrayValue().map((E,D)=>D!==n?E:K(H({},E??{}),{[e]:i}));this.emit(a)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=w({type:t,selectors:[["app-config-item-component"]],inputs:{item:"item",value:"value",options:"options"},outputs:{valueChange:"valueChange"},decls:14,vars:3,consts:[[1,"config-item"],[1,"meta"],[1,"label"],[1,"desc"],[1,"control"],["nz-input","",3,"ngModel"],["nzAlign","center"],[3,"ngModel"],["nz-input","",3,"ngModelChange","ngModel"],["nzType","file","nzTheme","fill"],[3,"ngModelChange","ngModel"],[3,"nzValue","nzLabel"],["nzType","arrow-right","nzTheme","outline"],[1,"kv"],[1,"value"]],template:function(e,i){if(e&1&&(s(0,"div",0)(1,"div",1)(2,"div",2),m(3),l(),y(4,ti,2,1,"div",3),l(),s(5,"div",4),y(6,ni,1,1,"input",5)(7,ii,1,1,"input",5)(8,oi,2,1,"span")(9,ai,4,1,"nz-space",6)(10,ri,1,1,"nz-switch",7)(11,li,3,1,"nz-select",7)(12,Ci,2,1)(13,hi,1,1),l()()),e&2){let o;p(3),V(i.item.label),p(),x(i.item.desc?4:-1),p(2),x((o=i.item.type)==="input"?6:o==="path"?7:o==="string"?8:o==="file"?9:o==="boolean"?10:o==="select"?11:o==="array"?12:o==="object"?13:-1)}},dependencies:[O,le,Me,re,se,$,ee,De,en,Z,ce,Ie,Se,Ne,Rt,Ft,an],styles:[".config-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:12px 16px}.config-item[_ngcontent-%COMP%]:hover{background:var(--app-primary-2)}.config-item[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-weight:500;opacity:.75}.config-item[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%] .desc[_ngcontent-%COMP%]{font-size:14px;margin-top:4px;opacity:.55}.config-item[_ngcontent-%COMP%] .control[_ngcontent-%COMP%]{min-width:200px;max-width:600px;width:60%}.config-item[_ngcontent-%COMP%] .control[_ngcontent-%COMP%] input[nz-input][_ngcontent-%COMP%], .config-item[_ngcontent-%COMP%] .control[_ngcontent-%COMP%] nz-select[_ngcontent-%COMP%]{width:100%}.config-item[_ngcontent-%COMP%] .control[_ngcontent-%COMP%] .kv[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px;width:100%}"]})};var st=()=>[],yi=(t,n)=>n.id,gn=(t,n)=>n.key;function xi(t,n){if(t&1){let e=v();s(0,"app-config-item-component",3),C("valueChange",function(o){let a=_(e).$implicit,E=r(5);return h(E.onValueChange(o,a))}),l()}if(t&2){let e=n.$implicit,i=r(2).$implicit,o=r(3);f("item",e)("options",e.options||o.options[e.optionsRef==null?null:e.optionsRef.key]||Y(3,st))("value",o.getChild(e,i))}}function zi(t,n){if(t&1&&S(0,xi,1,4,"app-config-item-component",4,gn),t&2){let e=r().$implicit;N(e.children)}}function vi(t,n){if(t&1){let e=v();s(0,"app-config-item-component",3),C("valueChange",function(o){let a=_(e).$implicit,E=r(3);return h(E.onValueChange(o,a))}),l(),y(1,zi,2,0)}if(t&2){let e=n.$implicit,i=r(3);f("item",e)("options",e.options||i.options[e.optionsRef==null?null:e.optionsRef.key]||Y(4,st))("value",i.get(e)),p(),x(e.children!=null&&e.children.length?1:-1)}}function Ei(t,n){if(t&1&&(s(0,"section",1)(1,"h3",2),m(2),l(),S(3,vi,2,5,null,null,gn),l()),t&2){let e=n.$implicit;vt("id",e.id),p(2),V(e.label),p(),N(e.items)}}function bi(t,n){if(t&1&&S(0,Ei,5,2,"section",1,yi),t&2){let e=r().schema.sections||Y(0,st);N(e)}}function Ti(t,n){t&1&&(s(0,"div",0),m(1," \u8BE5\u914D\u7F6E\u6682\u4E0D\u652F\u6301\u8868\u5355\u6A21\u5F0F\uFF08\u53EF\u5207\u6362 Raw / \u6216\u7A0D\u540E\u5B9E\u73B0 provider\uFF09 "),l())}var je=class t{schema;vm;options={};vmChange=new b;get(n){let e=ke(this.vm,n.key);return e??n.default}getChild(n,e){let i=this.get(e);if(i==null||i==="")return n.default;let o=this.resolveDynamicPath(n.key,e.key,i),a=ke(this.vm,o);return a??n.default}onValueChange(n,e){let i=this.resolvePathForWrite(e);this.update(i,n)}resolvePathForWrite(n){let e=n.key||"",i=e.match(/<([^>]+)>/);if(!i)return e;let o=i[1],a=ke(this.vm,o);return this.resolveDynamicPath(e,o,a)}resolveDynamicPath(n,e,i){let o=`<${e}>`;return n.replace(o,String(i??""))}update(n,e){let i=structuredClone(this.vm);mn(i,n,e),this.vmChange.emit(i)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=w({type:t,selectors:[["app-config-section-component"]],inputs:{schema:"schema",vm:"vm",options:"options"},outputs:{vmChange:"vmChange"},decls:2,vars:1,consts:[[1,"empty"],[1,"section"],[1,"section-title"],[3,"valueChange","item","options","value"],[3,"item","options","value"]],template:function(e,i){e&1&&y(0,bi,2,1)(1,Ti,2,0,"div",0),e&2&&x(i.schema?0:1)},dependencies:[O,Re],styles:[".section[_ngcontent-%COMP%]{padding:0}.section[_ngcontent-%COMP%]:last-child{border-bottom:none}.section-title[_ngcontent-%COMP%]{margin:0 0 10px;font-size:24px;opacity:.85;font-weight:500;padding:0 16px}.empty[_ngcontent-%COMP%]{padding:12px 14px}"]})};var Be=class t{api=u(Zt);getCatalog(n){return this.api.get(`/api/config/catalog/${n}`)}openInEditor(n,e){return this.api.post(`/api/config/openInEditor/${n}/${encodeURIComponent(e)}`,{})}writeDomainSchema(n,e,i){return this.api.post(`/api/config/writeSchema/${n}/${e}`,{vm:i})}getDomainSchemas(n,e){return this.api.get(`/api/config/getDomainSchema/${n}/${e}`)}diffDomainSchema(n,e,i){return this.api.post(`/api/config/diffSchema/${n}/${e}`,{vm:i})}static \u0275fac=function(e){return new(e||t)};static \u0275prov=ft({token:t,factory:t.\u0275fac,providedIn:"root"})};var Mi=["class","component"],wi=()=>({}),Di=()=>[],Si=(t,n)=>n.docId;function Ni(t,n){if(t&1&&T(0,"nz-option",13),t&2){let e=n.$implicit;f("nzLabel",e.title)("nzValue",e.docId)}}function Ii(t,n){if(t&1){let e=v();G(0),s(1,"div",11)(2,"label"),m(3,"\u9009\u62E9\u914D\u7F6E\u6587\u4EF6"),l(),s(4,"nz-select",12),Ke("ngModelChange",function(o){_(e);let a=r();return He(a.selectedDocId,o)||(a.selectedDocId=o),h(o)}),S(5,Ni,1,2,"nz-option",13,Si),l()(),X()}if(t&2){let e=r();p(4),Ze("ngModel",e.selectedDocId),p(),N(e.activeDocsMeta()||Y(1,Di))}}function Oi(t,n){if(t&1){let e=v();G(0),s(1,"button",14),C("click",function(){_(e);let o=r();return h(o.openConfig())}),m(2," \u6253\u5F00\u914D\u7F6E\u6587\u4EF6 "),l(),X()}if(t&2){let e=r();p(),f("disabled",!e.selectedDocId())}}var $e=class t{api=u(Be);projectState=u(nn);msg=u(tn);modal=u(Kt);projectId=j(()=>this.projectState.currentProjectId()||"");loading=I(!1);isModalVisible=I(!1);catalog=I(null);navNodes=j(()=>un(this.catalog()??[]));activeDomainId=I(null);selectedDocId=I(null);docStates=I({});domainSchema=I(null);domainVM=I(null);baselineDomainVM=I(null);activeDomain=j(()=>{let n=this.activeDomainId();return(this.catalog()??[]).find(e=>e.domain.id===n)??null});activeDocs=j(()=>this.activeDomain()?.docs??[]);activeDocsMeta=j(()=>{let n=this.activeDomain();return n?(n.docs??[]).map(e=>({docId:e.spec.id,title:e.spec.title,exists:e.exists,relPath:e.chosen?.relPath,codec:e.chosen?.codec})):[]});domainDirty=j(()=>{let n=this.baselineDomainVM(),e=this.domainVM();return!n||!e?!1:!ue.isEqual(n,e)});constructor(){St(()=>{this.projectId()&&this.getCatalog()})}getCatalog(){let n=this.projectId();n&&(this.loading.set(!0),this.api.getCatalog(n).subscribe({next:e=>{this.catalog.set(e);let i=e[0]?.domain?.id??"";i&&(this.activeDomainId.set(i),this.loadDomainSchema(i))},error:e=>{console.error(e),this.msg.error("\u52A0\u8F7D\u914D\u7F6E\u76EE\u5F55\u5931\u8D25")},complete:()=>this.loading.set(!1)}))}onDomainSelect(n){this.activeDomainId.set(n),n==="angular"?this.loadDomainSchema(n):this.domainVM.set(null)}async loadDomainSchema(n){let e=this.projectId();if(e){this.loading.set(!0);try{let i=await ge(this.api.getDomainSchemas(e,n));this.domainSchema.set(i),this.domainVM.set(i.vm),this.baselineDomainVM.set(ue.cloneDeep(i.vm))}catch(i){console.error(i),this.msg.error("\u52A0\u8F7D\u914D\u7F6E\u6A21\u578B\u5931\u8D25"),this.domainVM.set(null),this.baselineDomainVM.set(null)}finally{this.loading.set(!1)}}}async onDiff(){let n=this.projectId(),e=this.activeDomainId(),i=this.domainVM();if(!(!n||!e||!i)){this.loading.set(!0);try{let o=await ge(this.api.diffDomainSchema(n,e,i)),a=o?.docPatch??{},E=o?.filePatch??[],D=[];for(let[z,R]of Object.entries(a))D.push(...Fe("doc",z,R));for(let z of E)D.push(...Fe("file",z.relPath,z.patch));if(D.length===0){this.msg.info("\u6CA1\u6709\u53EF\u5199\u56DE\u7684\u53D8\u66F4");return}D.sort((z,R)=>{if(z.scope!==R.scope)return z.scope.localeCompare(R.scope);let fe=`${z.target}:${z.path}`,Ce=`${R.target}:${R.path}`;return fe.localeCompare(Ce)}),this.modal.create({nzTitle:"\u53D8\u66F4",nzContent:`
|
|
2
|
-
<div style="max-height:60vh; overflow:auto;">
|
|
3
|
-
${D.map(z=>`
|
|
4
|
-
<div style="padding:8px 0; border-bottom:1px solid #f0f0f0;">
|
|
5
|
-
<div style="font-weight:600;">[${z.scope}] ${z.target}</div>
|
|
6
|
-
<div style="opacity:.85; margin-top:4px;">${z.path}</div>
|
|
7
|
-
<pre style="margin:6px 0;">after : ${this.safeStringify(z.value)}</pre>
|
|
8
|
-
</div>
|
|
9
|
-
`).join("")}
|
|
10
|
-
</div>
|
|
11
|
-
`,nzFooter:null,nzWidth:900})}catch(o){console.error(o),this.msg.error("\u751F\u6210 Diff \u5931\u8D25")}finally{this.loading.set(!1)}}}safeStringify(n){try{return JSON.stringify(n,null,2)}catch{return String(n)}}onReset(){let n=this.baselineDomainVM();n&&(this.domainVM.set(ue.cloneDeep(n)),this.msg.success("\u5DF2\u91CD\u7F6E\u4E3A\u672A\u4FEE\u6539\u72B6\u6001"))}onRawChange(n){let e=this.docStates(),i=e[n.docId];if(!i)return;let o=i.baselineRaw??"",a=n.raw!==o;this.docStates.set(K(H({},e),{[n.docId]:K(H({},i),{raw:n.raw,dirty:a})}))}onValuesChange(n){}async saveActive(){let n=this.projectId(),e=this.activeDomainId(),i=this.domainVM();if(!(!n||!e||!i)){this.loading.set(!0);try{await ge(this.api.writeDomainSchema(n,e,i)),this.msg.success("\u4FDD\u5B58\u6210\u529F"),await this.loadDomainSchema(e)}catch(o){console.error(o),this.msg.error("\u4FDD\u5B58\u5931\u8D25")}finally{this.loading.set(!1)}}}openConfig(){if(!this.selectedDocId()){this.msg.warning("\u8BF7\u5148\u9009\u62E9\u914D\u7F6E\u6587\u4EF6");return}this.api.openInEditor(this.projectId(),this.selectedDocId()).subscribe(n=>{this.msg.success("\u5DF2\u5728\u9ED8\u8BA4\u7F16\u8F91\u5668\u4E2D\u6253\u5F00\u8BE5\u914D\u7F6E\u6587\u4EF6"),this.isModalVisible.set(!1)})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=w({type:t,selectors:[["app-project-conf",8,"component"]],attrs:Mi,decls:13,vars:11,consts:[[3,"title","loading"],["ngProjectAs","actions",5,["actions"]],["nz-button","","nzType","primary",3,"click"],[1,"panel"],[3,"domainSelect","nodes","activeDomainId"],[1,"content"],[3,"vmChange","schema","vm","options"],[3,"diff","reset","save","dirty"],["nzTitle","\u914D\u7F6E",3,"nzVisibleChange","nzOnCancel","nzVisible","nzMaskClosable"],[4,"nzModalContent"],[4,"nzModalFooter"],[1,"modal-body"],["nzPlaceHolder","\u8BF7\u9009\u62E9\u914D\u7F6E\u6587\u4EF6",2,"width","100%",3,"ngModelChange","ngModel"],[3,"nzLabel","nzValue"],["nz-button","","nzType","primary",3,"click","disabled"]],template:function(e,i){if(e&1&&(s(0,"page-layout",0),G(1,1),s(2,"button",2),C("click",function(){return i.isModalVisible.set(!0)}),m(3,"\u6253\u5F00\u914D\u7F6E\u6587\u4EF6"),l(),T(4,"app-ng-devtool"),X(),s(5,"div",3)(6,"app-config-nav-component",4),C("domainSelect",function(a){return i.onDomainSelect(a)}),l(),s(7,"div",5)(8,"app-config-section-component",6),C("vmChange",function(a){return i.domainVM.set(a)}),l(),s(9,"app-config-change-bar-component",7),C("diff",function(){return i.onDiff()})("reset",function(){return i.onReset()})("save",function(){return i.saveActive()}),l()()()(),s(10,"nz-modal",8),Ke("nzVisibleChange",function(a){return He(i.isModalVisible,a)||(i.isModalVisible=a),a}),C("nzOnCancel",function(){return i.isModalVisible.set(!1)}),J(11,Ii,7,2,"ng-container",9)(12,Oi,3,1,"ng-container",10),l()),e&2){let o,a;f("title","\u9879\u76EE\u914D\u7F6E")("loading",i.loading()),p(6),f("nodes",i.navNodes())("activeDomainId",i.activeDomainId()??""),p(2),f("schema",(o=i.domainSchema())==null?null:o.schema)("vm",i.domainVM())("options",((a=i.domainSchema())==null?null:a.options)??Y(10,wi)),p(),f("dirty",i.domainDirty()),p(),Ze("nzVisible",i.isModalVisible),f("nzMaskClosable",!1)}},dependencies:[O,le,re,se,At,on,Ht,sn,Z,Ie,Se,Ne,De,Te,be,ve,Ee,pn,qt,me,Ut,$,Ve,Oe,Yt,Xt,Gt,Jt,je,Wt],styles:[".panel[_ngcontent-%COMP%]{border-radius:10px;box-shadow:0 2px 8px #0000000f;display:flex}.panel[_ngcontent-%COMP%] app-config-nav-component[_ngcontent-%COMP%]{flex:0 0 300px}.panel[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;flex-direction:column;padding:8px 16px}.panel[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] app-config-section-component[_ngcontent-%COMP%]{flex:1 1 auto;overflow:hidden}.panel[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] app-config-change-bar-component[_ngcontent-%COMP%]{flex:0 0 auto;position:sticky;bottom:0}"]})};var Pi=[{path:"",component:$e}],Ae=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=Q({type:t});static \u0275inj=L({imports:[Ge.forChild(Pi),Ge]})};var _n=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=Q({type:t});static \u0275inj=L({imports:[O,Ae]})};export{_n as ConfigurationModule};
|