@knoflows/engine 0.1.0-alpha.14 → 0.1.0-alpha.16

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.
Files changed (114) hide show
  1. package/README.md +5 -10
  2. package/dist/engine.js +41 -20
  3. package/dist/migrations/20260919073531_tense_grey_gargoyle/migration.sql +1 -0
  4. package/dist/migrations/20260919073531_tense_grey_gargoyle/snapshot.json +1348 -0
  5. package/dist/migrations/20260919081637_fearless_warlock/migration.sql +1 -0
  6. package/dist/migrations/20260919081637_fearless_warlock/snapshot.json +1358 -0
  7. package/package.json +4 -4
  8. package/static/apple-touch-icon.png +0 -0
  9. package/static/assets/i18n/en.json +47 -6
  10. package/static/assets/i18n/es.json +47 -6
  11. package/static/chunk-9U0WIegY.js +1 -0
  12. package/static/chunk-B0kZCuEt.js +1 -0
  13. package/static/chunk-B2Xol2Un.js +1 -0
  14. package/static/chunk-B7WkIFy0.js +1 -0
  15. package/static/chunk-BW9BdLk-.js +1 -0
  16. package/static/chunk-Bgl02GNl.js +1 -0
  17. package/static/chunk-BhF-m2HP.js +70 -0
  18. package/static/chunk-BhTujCrk.js +1 -0
  19. package/static/chunk-Bu6_39Nh.js +1 -0
  20. package/static/chunk-C0HCwfa5.js +1 -0
  21. package/static/chunk-C2BVYtVN.js +66 -0
  22. package/static/chunk-C7h8oMzu.js +1 -0
  23. package/static/chunk-CRdEWPUM.js +1 -0
  24. package/static/chunk-CRv0PDB7.js +1 -0
  25. package/static/chunk-CecXf-CU.js +1 -0
  26. package/static/chunk-CenXuPs5.js +1 -0
  27. package/static/chunk-CeywzbyD.js +1 -0
  28. package/static/{chunk-CjitpVjI.js → chunk-Cg2E0vnT.js} +1 -1
  29. package/static/chunk-CsQ_HDGC.js +1 -0
  30. package/static/chunk-D19C8Gcb.js +1 -0
  31. package/static/chunk-DGC4TkAL.js +1 -0
  32. package/static/chunk-DUkiyf7y.js +1 -0
  33. package/static/chunk-DYzSLsNo.js +1 -0
  34. package/static/chunk-DZJZYEZl.js +1 -0
  35. package/static/chunk-DfcFBVF4.js +1 -0
  36. package/static/chunk-DixyYfV_.js +1 -0
  37. package/static/chunk-Dp4H7MY0.js +1 -0
  38. package/static/chunk-DtQtDE8q.js +1 -0
  39. package/static/chunk-Dv5GyY6h.js +1 -0
  40. package/static/chunk-Edaw7VGW.js +1 -0
  41. package/static/chunk-FOJfn_t9.js +1 -0
  42. package/static/chunk-Fwpw-z7T.js +1 -0
  43. package/static/chunk-HUIPNwd9.js +1 -0
  44. package/static/chunk-NZ-CPWJ2.js +1 -0
  45. package/static/chunk-Th9whP36.js +1 -0
  46. package/static/chunk-bCuvpgQS.js +1 -0
  47. package/static/chunk-iE460Kz5.js +1 -0
  48. package/static/chunk-p6dftaf8.js +5 -0
  49. package/static/chunk-yoe_30RI.js +1 -0
  50. package/static/chunk-z2vvQAle.js +1 -0
  51. package/static/favicon-16x16.png +0 -0
  52. package/static/favicon-32x32.png +0 -0
  53. package/static/favicon.ico +0 -0
  54. package/static/favicon.svg +12 -0
  55. package/static/icon-192.png +0 -0
  56. package/static/icon-512.png +0 -0
  57. package/static/index.html +30 -5
  58. package/static/main-CHQMTVIP.js +248 -0
  59. package/static/media/inter-latin-400-normal-55WT6UWF.woff2 +0 -0
  60. package/static/media/inter-latin-400-normal-FR5HOXA4.woff +0 -0
  61. package/static/media/inter-latin-500-normal-W62DVTXI.woff2 +0 -0
  62. package/static/media/inter-latin-500-normal-ZNGIZ2YB.woff +0 -0
  63. package/static/media/inter-latin-600-normal-R6Y2SZCR.woff2 +0 -0
  64. package/static/media/inter-latin-600-normal-ZYHV6QZT.woff +0 -0
  65. package/static/media/jetbrains-mono-latin-500-normal-ETEQEOVZ.woff +0 -0
  66. package/static/media/jetbrains-mono-latin-500-normal-V4XIP5OW.woff2 +0 -0
  67. package/static/media/space-grotesk-latin-500-normal-GESQWJQV.woff2 +0 -0
  68. package/static/media/space-grotesk-latin-500-normal-HV4TE4RA.woff +0 -0
  69. package/static/media/space-grotesk-latin-700-normal-6Z7GHSI6.woff +0 -0
  70. package/static/media/space-grotesk-latin-700-normal-I3MXRIUZ.woff2 +0 -0
  71. package/static/nz-theme-dark.css +1 -0
  72. package/static/nz-theme.css +1 -0
  73. package/static/styles-JGCTKGGH.css +1 -0
  74. package/static/chunk-7nUPxia9.js +0 -1
  75. package/static/chunk-B5OZfu7U.js +0 -1
  76. package/static/chunk-B6yhN6h_.js +0 -1
  77. package/static/chunk-B8xDFyOW.js +0 -1
  78. package/static/chunk-BCQYv6zO.js +0 -1
  79. package/static/chunk-BGD9WiFM.js +0 -1
  80. package/static/chunk-BRQzRdUy.js +0 -1
  81. package/static/chunk-BT1tqKUa.js +0 -1
  82. package/static/chunk-BbMJvJVR.js +0 -5
  83. package/static/chunk-Bdf1gK_x.js +0 -1
  84. package/static/chunk-BgZJenki.js +0 -1
  85. package/static/chunk-BhOOhcFV.js +0 -1
  86. package/static/chunk-BphvnLVV.js +0 -1
  87. package/static/chunk-C4ekQTdr.js +0 -1
  88. package/static/chunk-CMCOXbTF.js +0 -1
  89. package/static/chunk-CVunAaEq.js +0 -1
  90. package/static/chunk-CWPY-qdb.js +0 -1
  91. package/static/chunk-C_RmBwoX.js +0 -1
  92. package/static/chunk-CkEV4Kdw.js +0 -1
  93. package/static/chunk-CmjHhm0_.js +0 -1
  94. package/static/chunk-Cprdc3WE.js +0 -1
  95. package/static/chunk-CsI-lLXP.js +0 -1
  96. package/static/chunk-D1s098WO.js +0 -1
  97. package/static/chunk-D5uYKhQI.js +0 -1
  98. package/static/chunk-DCwYXBAy.js +0 -1
  99. package/static/chunk-DDsAcugC.js +0 -66
  100. package/static/chunk-DWyVd0g2.js +0 -1
  101. package/static/chunk-Dn9gu9_q.js +0 -1
  102. package/static/chunk-Doaes0Yg.js +0 -7
  103. package/static/chunk-Dqf92YVW.js +0 -1
  104. package/static/chunk-Oq0qp-a6.js +0 -1
  105. package/static/chunk-PTPh9FQ2.js +0 -1
  106. package/static/chunk-PfPOHfb1.js +0 -1
  107. package/static/chunk-WIfL3i6D.js +0 -1
  108. package/static/chunk-ZTjXJrt4.js +0 -1
  109. package/static/chunk-bbBn-iZU.js +0 -1
  110. package/static/chunk-gl_-d0La.js +0 -1
  111. package/static/chunk-hTFsYp4X.js +0 -1
  112. package/static/chunk-szOy8Im7.js +0 -1
  113. package/static/main-OG6DVLH6.js +0 -249
  114. package/static/styles-4UB6RUIG.css +0 -1
@@ -1 +0,0 @@
1
- import {s,f}from'./chunk-DCwYXBAy.js';import {W,I}from'./chunk-DWyVd0g2.js';import {p as pc,a as as,d as dc,K as Kl,c as cc,J as Ji,l as ls}from'./chunk-CVunAaEq.js';import {C,d,X as Ie,V as Ve,b as at,a2 as $0,q as qo,$ as rd,a0 as Bw,a9 as Ng,aa as Xi,ab as Dg,u as ue,n as n$1,s as s$1,r,Q as QE,M as Mi,L as Ln,v as vd,c as Cc,f as r7,K as Kt,p as bD,B as _D,h as _i,j as vw,R as Rw,k as Kc,x as gI,P as Ph,O as Ow,F as VD,N as ND,z as ch,D as xD,G as ah,I as xw,y as nl,J as LD,l as gh,U as Pu,W as Lu}from'./main-OG6DVLH6.js';var st=n=>["/jobs",n],lt=(n,m)=>m.id;function dt(n,m){n&1&&(_i(0,"p",0),vw(1),Rw(2,"transloco"),Kc()),n&2&&(gI(),Ph(Ow(2,1,"common.loading")));}function ct(n,m){if(n&1&&(_i(0,"p",1),vw(1),Kc()),n&2){let t=VD();gI(),Ph(t.loadError());}}function pt(n,m){if(n&1){let t=LD();_i(0,"button",6),gh("click",function(e){Pu(t);let d=VD().$implicit,g=VD(2);return Lu(g.retryJob(d,e))}),vw(1),Rw(2,"transloco"),Kc();}if(n&2){let t=VD().$implicit,i=VD(2);ch("disabled",i.retryingJobId()===t.id),ah("data-testid","job-retry-"+t.id),gI(),nl(" ",Ow(2,3,i.retryingJobId()===t.id?"jobs.detail.retrying":"jobs.table.retry")," ");}}function bt(n,m){if(n&1){let t=LD();_i(0,"button",7),gh("click",function(e){Pu(t);let d=VD().$implicit,g=VD(2);return Lu(g.cancelJob(d,e))}),vw(1),Rw(2,"transloco"),Kc();}if(n&2){let t=VD().$implicit,i=VD(2);ch("disabled",i.cancellingJobId()===t.id),ah("data-testid","job-cancel-"+t.id),gI(),nl(" ",Ow(2,3,i.cancellingJobId()===t.id?"jobs.detail.cancelling":"jobs.table.cancel")," ");}}function ut(n,m){if(n&1&&(_i(0,"tr")(1,"td")(2,"a",3),vw(3),Kc()(),_i(4,"td")(5,"nz-tag"),vw(6),Rw(7,"transloco"),Kc()(),_i(8,"td")(9,"span"),vw(10),Kc()(),_i(11,"td")(12,"span"),vw(13),Kc()(),_i(14,"td")(15,"span"),vw(16),Kc()(),_i(17,"td"),bD(18,pt,3,5,"button",4),bD(19,bt,3,5,"button",5),Kc()()),n&2){let t=m.$implicit,i=VD(2);ah("data-testid","job-row-"+t.id),gI(2),ch("routerLink",xw(16,st,t.id)),ah("data-testid","job-link-"+t.id),gI(),nl(" ",t.id," "),gI(2),ah("data-testid","job-status-"+t.id),gI(),Ph(Ow(7,14,i.statusKey(t.status))),gI(3),ah("data-testid","job-subject-"+t.id),gI(),Ph(i.subjectText(t)),gI(2),ah("data-testid","job-started-"+t.id),gI(),Ph(t.createdAt),gI(2),ah("data-testid","job-completed-"+t.id),gI(),Ph(t.completedAt??"\u2014"),gI(2),_D(t.status==="failed"?18:-1),gI(),_D(i.isTerminalStatus(t.status)?-1:19);}}function mt(n,m){if(n&1&&(_i(0,"nz-table",2)(1,"thead")(2,"tr")(3,"th"),vw(4),Rw(5,"transloco"),Kc(),_i(6,"th"),vw(7),Rw(8,"transloco"),Kc(),_i(9,"th"),vw(10),Rw(11,"transloco"),Kc(),_i(12,"th"),vw(13),Rw(14,"transloco"),Kc(),_i(15,"th"),vw(16),Rw(17,"transloco"),Kc(),_i(18,"th"),vw(19),Rw(20,"transloco"),Kc()()(),_i(21,"tbody"),ND(22,ut,20,18,"tr",null,lt),Kc()()),n&2){let t=VD();ch("nzData",t.displayJobs())("nzFrontPagination",false)("nzShowPagination",false)("nzSize","middle"),gI(4),Ph(Ow(5,10,"jobs.table.column.id")),gI(3),Ph(Ow(8,12,"jobs.table.column.status")),gI(3),Ph(Ow(11,14,"jobs.table.column.subject")),gI(3),Ph(Ow(14,16,"jobs.table.column.started")),gI(3),Ph(Ow(17,18,"jobs.table.column.completed")),gI(3),Ph(Ow(20,20,"jobs.table.column.actions")),gI(3),xD(t.displayJobs());}}var Bt=(()=>{class n{constructor(){this.jobsApi=C(d),this.router=C(Ie),this.transloco=C(Ve),this.destroyRef=C(at),this.jobs=$0(null),this.jobIds=$0([]),this.loaded=qo([]),this.loading=qo(false),this.loadError=qo(null),this.retryingJobId=qo(null),this.cancellingJobId=qo(null),this.patched=qo({}),rd(()=>{let t=this.jobs(),i=this.jobIds();if(t!=null){Bw(()=>{this.loaded.set([]),this.loading.set(false),this.loadError.set(null),this.patched.set({});});return}if(i.length===0){Bw(()=>{this.loaded.set([]),this.loading.set(false);});return}Bw(()=>{this.loading.set(true),this.loadError.set(null),Ng(i.map(e=>this.jobsApi.get(e).pipe(Xi(()=>Dg(null))))).pipe(ue(this.destroyRef)).subscribe({next:e=>{this.loaded.set(e.filter(d=>d!=null)),this.loading.set(false);},error:()=>{this.loading.set(false),this.loadError.set("Failed to load jobs");}});});});}displayJobs(){let t=this.jobs(),i=t??this.loaded(),e=this.patched();return i.map(d=>e[d.id]??d)}isTerminalStatus(t){return s(t)}statusKey(t){return `jobs.status.${t}`}subjectText(t){return f(t.subjectContext)??"\u2014"}retryJob(t,i){i.preventDefault(),i.stopPropagation(),!(t.status!=="failed"||this.retryingJobId()===t.id)&&(this.retryingJobId.set(t.id),this.loadError.set(null),this.jobsApi.retry(t.id).subscribe({next:e=>{this.retryingJobId.set(null),this.router.navigate(["/jobs",e.id]);},error:e=>{this.retryingJobId.set(null),this.loadError.set(e instanceof n$1||e instanceof Error?e.message:this.transloco.translate("jobs.errors.retryFailed"));}}));}cancelJob(t,i){i.preventDefault(),i.stopPropagation(),!(s(t.status)||this.cancellingJobId()===t.id)&&(this.cancellingJobId.set(t.id),this.loadError.set(null),this.jobsApi.cancel(t.id).subscribe({next:e=>{this.cancellingJobId.set(null),this.patched.update(d=>s$1(r({},d),{[e.id]:e})),this.loaded.update(d=>d.map(g=>g.id===e.id?e:g));},error:e=>{this.cancellingJobId.set(null),this.loadError.set(e instanceof n$1||e instanceof Error?e.message:this.transloco.translate("jobs.errors.cancelFailed"));}}));}static{this.\u0275fac=function(i){return new(i||n)};}static{this.\u0275cmp=QE({type:n,selectors:[["app-job-status-table"]],inputs:{jobs:[1,"jobs"],jobIds:[1,"jobIds"]},decls:3,vars:1,consts:[["data-testid","job-status-loading"],["data-testid","job-status-error",1,"error"],["data-testid","job-status-table",3,"nzData","nzFrontPagination","nzShowPagination","nzSize"],[3,"routerLink"],["nz-button","","nzType","link","type","button",3,"disabled"],["nz-button","","nzType","link","nzDanger","","type","button",3,"disabled"],["nz-button","","nzType","link","type","button",3,"click","disabled"],["nz-button","","nzType","link","nzDanger","","type","button",3,"click","disabled"]],template:function(i,e){i&1&&bD(0,dt,3,3,"p",0)(1,ct,2,1,"p",1)(2,mt,24,22,"nz-table",2),i&2&&_D(e.loading()&&e.jobs()==null?0:e.loadError()?1:2);},dependencies:[Mi,Ln,vd,Cc,r7,pc,as,dc,Kl,cc,Ji,ls,W,I,Kt],styles:[".error[_ngcontent-%COMP%]{color:#9f1239}[_nghost-%COMP%] .ant-table-tbody>tr>td{white-space:normal;vertical-align:top}"]});}}return n})();export{Bt as B};
@@ -1 +0,0 @@
1
- import {z,b,M,R}from'./chunk-CjitpVjI.js';import {ar as YE,as as uu,C,aw as oe,av as _r,ax as z0,ay as a3,aA as Ie$1,b as at,bO as A,b1 as za$1,bP as Le,$ as rd,u as ue,aC as St,Q as QE,o as o8,cP as x0,e as e8,T as T3,aJ as Z0,bd as BD,h as _i,l as gh,k as Kc,m as oE,w as lh,bq as $D,a5 as Mh,x as gI,z as ch,G as ah,A as sE,aK as Sw,aL as Bt,aM as wo$1,aN as Ih,aO as qD,aP as WD,at as pT,cQ as Sn,au as kt,az as hT,a2 as $0,cR as Ln,bc as es$1,aI as ly,aZ as Y0,p as bD,B as _D,cS as On,bt as Vt,bZ as on,cT as Fg,an as Se,cU as z9,aR as nh,be as Lw,bv as vh,bx as XE,c5 as XI,bC as re,b8 as s9,bE as Gl$1,am as Ml$1,cV as mt$1,ab as Dg,cW as zg,cX as Ie$2,cE as Yg,cY as ji$1,cZ as kn,c_ as is$1,R as Rw,O as Ow,q as qo$1,b4 as Uw,H as Hw,b9 as Kf,a0 as Bw,c$ as u9,g as oM,E as E5,Y as Y5,aE as pt,aF as Se$1,ai as zD,cc as Aw,aQ as ut$1,aG as Tt$1,aH as Ne,d0 as J,d1 as ln,bV as rn,d2 as an,d3 as cn,d4 as q1,s,r,d5 as l9,v as vd,c as Cc,f as r7,a1 as w7,d6 as Ut,d7 as S,i as ie,cD as Kg,d8 as Vl$1,d9 as om,F as VD,N as ND,a7 as MD,D as xD,da as Yc,ah as _h,J as LD,j as vw,y as nl$1,db as TD,cl as fh,dc as ph,aS as el$1,aT as tl$1,P as Ph,bu as sw,L as Ln$1,X as Ie$3,dd as X,de as d9,aU as Jc,aV as Xc,cA as ji$2,cj as n4,df as m0,dg as p0,by as uh,b0 as Ee,dh as rs,di as Qg,dj as pn,cM as zn$1,bH as vn,dk as un$1,c0 as Ha$1,cK as _e,cI as r2,cJ as a2,bN as $1,S as SD,U as Pu,W as Lu,cp as gn$1,cq as f1,dl as Dt,dm as _9,dn as b9,bg as rD,dp as yb,bi as cw,a3 as B0,cw as h0,dq as d0,cy as ri,cx as oi,dr as X$1,bA as Er,ck as ec}from'./main-OG6DVLH6.js';var Yi=["inputElement"],vi=["*"],Ui=(t,a)=>a.value;function Zi(t,a){if(t&1&&(_i(0,"label",0),vw(1),Kc()),t&2){let e=a.$implicit,i=VD(2);ch("nzValue",e.value)("nzName",i.nzName())("nzDisabled",e.disabled||i.finalDisabled()),gI(),nl$1(" ",e.label," ");}}function Ki(t,a){if(t&1&&ND(0,Zi,2,4,"label",0,Ui),t&2){let e=VD();xD(e.normalizedOptions());}}var yi=new A(""),ut=(()=>{class t{ngZone=C(oe);elementRef=C(_r);cdr=C(z0);focusMonitor=C(a3);dir=C(Ie$1).valueSignal;destroyRef=C(at);checkboxGroupComponent=C(yi,{optional:true});nzFormStatusService=C(za$1,{optional:true});isNzDisableFirstChange=true;onChange=()=>{};onTouched=()=>{};inputElement;nzCheckedChange=new Le;nzValue=null;nzAutoFocus=false;nzDisabled=false;nzIndeterminate=false;nzChecked=false;nzId=null;nzName=null;innerCheckedChange(e){!this.nzDisabled&&!this.checkboxGroupComponent?.finalDisabled()&&(this.setValue(e),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=false,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.checkboxGroupComponent&&rd(()=>{let e=this.checkboxGroupComponent.value()||[];this.setValue(e.includes(this.nzValue)),this.cdr.markForCheck();});}ngOnInit(){this.focusMonitor.monitor(this.elementRef,true).pipe(ue(this.destroyRef)).subscribe(e=>{e||Promise.resolve().then(()=>this.onTouched());}),St(this.elementRef.nativeElement,"click").pipe(ue(this.destroyRef)).subscribe(e=>{e.preventDefault(),this.focus(),!this.nzDisabled&&this.ngZone.run(()=>{this.innerCheckedChange(!this.nzChecked),this.cdr.markForCheck();});}),St(this.inputElement.nativeElement,"click").pipe(ue(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||t)};static \u0275cmp=QE({type:t,selectors:[["","nz-checkbox",""]],viewQuery:function(i,n){if(i&1&&Ih(Yi,7),i&2){let o;qD(o=WD())&&(n.inputElement=o.first);}},hostAttrs:[1,"ant-checkbox-wrapper"],hostVars:10,hostBindings:function(i,n){i&2&&Mh("ant-checkbox-group-item",!!n.checkboxGroupComponent)("ant-checkbox-wrapper-in-form-item",!!n.nzFormStatusService)("ant-checkbox-wrapper-checked",n.nzChecked)("ant-checkbox-wrapper-disabled",n.nzDisabled||n.checkboxGroupComponent?.finalDisabled())("ant-checkbox-rtl",n.dir()==="rtl");},inputs:{nzValue:"nzValue",nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",Z0],nzDisabled:[2,"nzDisabled","nzDisabled",Z0],nzIndeterminate:[2,"nzIndeterminate","nzIndeterminate",Z0],nzChecked:[2,"nzChecked","nzChecked",Z0],nzId:"nzId",nzName:"nzName"},outputs:{nzCheckedChange:"nzCheckedChange"},exportAs:["nzCheckbox"],features:[Sw([{provide:Bt,useExisting:wo$1(()=>t),multi:true}])],ngContentSelectors:vi,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,n){i&1&&(BD(),_i(0,"span",1)(1,"input",2,0),gh("ngModelChange",function(l){return n.innerCheckedChange(l)}),Kc(),oE(),lh(3,"span",3),Kc(),_i(4,"span"),$D(5),Kc()),i&2&&(Mh("ant-checkbox-checked",n.nzChecked&&!n.nzIndeterminate)("ant-checkbox-disabled",n.nzDisabled||n.checkboxGroupComponent?.finalDisabled())("ant-checkbox-indeterminate",n.nzIndeterminate),gI(),ch("checked",n.nzChecked)("ngModel",n.nzChecked)("disabled",n.nzDisabled||(n.checkboxGroupComponent?.finalDisabled()??false)),ah("autofocus",n.nzAutoFocus?"autofocus":null)("id",n.nzId)("name",n.nzName||n.checkboxGroupComponent?.nzName()),sE());},dependencies:[o8,x0,e8,T3],encapsulation:2})}return t})(),eo=(()=>{class t{onChange=()=>{};onTouched=()=>{};isDisabledFirstChange=true;dir=C(Ie$1).valueSignal;nzName=$0(null);nzDisabled=$0(false,{transform:Z0});nzOptions=$0([]);value=qo$1(null);finalDisabled=Uw(()=>this.nzDisabled());normalizedOptions=Hw(()=>to(this.nzOptions()));constructor(){let e=C(_r),i=C(a3),n=C(at);Kf(()=>{i.monitor(e,true).pipe(ue(n)).subscribe(o=>{o||this.onTouched();}),n.onDestroy(()=>{i.stopMonitoring(e);});});}writeValue(e){Bw(()=>{this.value.set(e);});}registerOnChange(e){this.onChange=e;}registerOnTouched(e){this.onTouched=e;}setDisabledState(e){Bw(()=>{this.finalDisabled.set(this.isDisabledFirstChange&&this.nzDisabled()||e);}),this.isDisabledFirstChange=false;}onCheckedChange(e,i){this.finalDisabled()||(this.value.update(n=>i?n?.concat(e)||[e]:n?.filter(o=>o!==e)||[]),this.onChange(this.value()));}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=QE({type:t,selectors:[["nz-checkbox-group"]],hostAttrs:[1,"ant-checkbox-group"],hostVars:2,hostBindings:function(i,n){i&2&&Mh("ant-checkbox-group-rtl",n.dir()==="rtl");},inputs:{nzName:[1,"nzName"],nzDisabled:[1,"nzDisabled"],nzOptions:[1,"nzOptions"]},exportAs:["nzCheckboxGroup"],features:[Sw([{provide:Bt,useExisting:wo$1(()=>t),multi:true},{provide:yi,useExisting:wo$1(()=>t)}])],ngContentSelectors:vi,decls:2,vars:0,consts:[["nz-checkbox","",3,"nzValue","nzName","nzDisabled"]],template:function(i,n){i&1&&(BD(),$D(0,0,null,Ki,2,0));},dependencies:[ut],encapsulation:2})}return t})();function to(t){return t.map(a=>typeof a=="string"||typeof a=="number"?{label:`${a}`,value:a}:a)}var Lt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=YE({type:t});static \u0275inj=uu({imports:[ut,eo]})}return t})();var io=(t,a)=>({$implicit:t,page:a});function oo(t,a){if(t&1&&(_i(0,"a"),vw(1),Kc()),t&2){let e=VD().page;gI(),Ph(e);}}function ao(t,a){t&1&&lh(0,"nz-icon",4);}function lo(t,a){t&1&&lh(0,"nz-icon",5);}function so(t,a){if(t&1&&(_i(0,"button",2),bD(1,ao,1,0,"nz-icon",4)(2,lo,1,0,"nz-icon",5),Kc()),t&2){let e=VD(2);ch("disabled",e.disabled),ah("title",e.locale.prev_page),gI(),_D(e.direction==="rtl"?1:2);}}function ro(t,a){t&1&&lh(0,"nz-icon",5);}function co(t,a){t&1&&lh(0,"nz-icon",4);}function po(t,a){if(t&1&&(_i(0,"button",2),bD(1,ro,1,0,"nz-icon",5)(2,co,1,0,"nz-icon",4),Kc()),t&2){let e=VD(2);ch("disabled",e.disabled),ah("title",e.locale.next_page),gI(),_D(e.direction==="rtl"?1:2);}}function uo(t,a){t&1&&lh(0,"nz-icon",8);}function mo(t,a){t&1&&lh(0,"nz-icon",9);}function ho(t,a){if(t&1&&bD(0,uo,1,0,"nz-icon",8)(1,mo,1,0,"nz-icon",9),t&2){let e=VD(3);_D(e.direction==="rtl"?0:1);}}function fo(t,a){t&1&&lh(0,"nz-icon",9);}function zo(t,a){t&1&&lh(0,"nz-icon",8);}function go(t,a){if(t&1&&bD(0,fo,1,0,"nz-icon",9)(1,zo,1,0,"nz-icon",8),t&2){let e=VD(3);_D(e.direction==="rtl"?0:1);}}function Co(t,a){if(t&1&&(_i(0,"a",3)(1,"div",6),bD(2,ho,2,1)(3,go,2,1),_i(4,"span",7),vw(5,"\u2022\u2022\u2022"),Kc()()()),t&2){let e,i=VD().$implicit;gI(2),_D((e=i)==="prev_5"?2:e==="next_5"?3:-1);}}function bo(t,a){if(t&1&&bD(0,oo,2,1,"a")(1,so,3,3,"button",2)(2,po,3,3,"button",2)(3,Co,6,1,"a",3),t&2){let e,i=a.$implicit;_D((e=i)==="page"?0:e==="prev"?1:e==="next"?2:3);}}function _o(t,a){}var So=(t,a)=>a.value;function vo(t,a){if(t&1&&lh(0,"nz-option",3),t&2){let e=a.$implicit;ch("nzLabel",e.label)("nzValue",e.value);}}function yo(t,a){if(t&1){let e=LD();_i(0,"nz-select",2),gh("ngModelChange",function(n){Pu(e);let o=VD();return Lu(o.onPageSizeChange(n))}),ND(1,vo,1,2,"nz-option",3,So),Kc(),oE();}if(t&2){let e=VD();ch("nzDisabled",e.disabled)("nzSize",e.nzSize)("ngModel",e.pageSize),sE(),gI(),xD(e.listOfPageSizeOption);}}function To(t,a){if(t&1){let e=LD();_i(0,"div",1),vw(1),_i(2,"input",4),gh("keydown.enter",function(n){Pu(e);let o=VD();return Lu(o.jumpToPageViaInput(n))}),Kc(),vw(3),Kc();}if(t&2){let e=VD();gI(),nl$1(" ",e.locale.jump_to," "),gI(),ch("disabled",e.disabled),gI(),nl$1(" ",e.locale.page," ");}}var xi=["containerTemplate"],xo=(t,a)=>({$implicit:t,range:a});function wo(t,a){}function Mo(t,a){if(t&1&&(_i(0,"li",1),nh(1,wo,0,0,"ng-template",4),Kc()),t&2){let e=VD(2);gI(),ch("ngTemplateOutlet",e.showTotal)("ngTemplateOutletContext",Aw(2,xo,e.total,e.ranges));}}function Oo(t,a){if(t&1){let e=LD();_i(0,"li",5),gh("gotoIndex",function(n){Pu(e);let o=VD(2);return Lu(o.jumpPage(n))})("diffIndex",function(n){Pu(e);let o=VD(2);return Lu(o.jumpDiff(n))}),Kc();}if(t&2){let e=a.$implicit,i=VD(2);ch("locale",i.locale)("type",e.type)("index",e.index)("disabled",!!e.disabled)("itemRender",i.itemRender)("active",i.pageIndex===e.index)("direction",i.dir());}}function Do(t,a){if(t&1){let e=LD();_i(0,"li",6),gh("pageIndexChange",function(n){Pu(e);let o=VD(2);return Lu(o.onPageIndexChange(n))})("pageSizeChange",function(n){Pu(e);let o=VD(2);return Lu(o.onPageSizeChange(n))}),Kc();}if(t&2){let e=VD(2);ch("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 No(t,a){if(t&1&&(_i(0,"ul"),bD(1,Mo,2,5,"li",1),ND(2,Oo,1,7,"li",2,TD().trackByPageItem,true),bD(4,Do,1,9,"li",3),Kc()),t&2){let e=VD();gI(),_D(e.showTotal?1:-1),gI(),xD(e.listOfPageItem),gI(2),_D(e.showQuickJumper||e.showSizeChanger?4:-1);}}function ko(t,a){if(t&1){let e=LD();_i(0,"ul")(1,"li",1),gh("click",function(){Pu(e);let n=VD();return Lu(n.prePage())}),Kc(),_i(2,"li",2)(3,"input",3),gh("keydown.enter",function(n){Pu(e);let o=VD();return Lu(o.jumpToPageViaInput(n))}),Kc(),_i(4,"span",4),vw(5,"/"),Kc(),vw(6),Kc(),_i(7,"li",5),gh("click",function(){Pu(e);let n=VD();return Lu(n.nextPage())}),Kc()();}if(t&2){let e=VD();gI(),ch("locale",e.locale)("disabled",e.isFirstIndex)("direction",e.dir())("itemRender",e.itemRender),ah("title",e.locale.prev_page),gI(),ah("title",e.pageIndex+"/"+e.lastIndex),gI(),ch("disabled",e.disabled)("value",e.pageIndex),gI(3),nl$1(" ",e.lastIndex," "),gI(),ch("locale",e.locale)("disabled",e.isLastIndex)("direction",e.dir())("itemRender",e.itemRender),ah("title",e.locale?.next_page);}}function Io(t,a){}function Po(t,a){if(t&1&&nh(0,Io,0,0,"ng-template",4),t&2){VD(2);let e=zD(2);ch("ngTemplateOutlet",e.template);}}function Fo(t,a){}function Ro(t,a){if(t&1&&nh(0,Fo,0,0,"ng-template",4),t&2){VD(2);let e=zD(4);ch("ngTemplateOutlet",e.template);}}function Eo(t,a){if(t&1&&bD(0,Po,1,1,null,4)(1,Ro,1,1,null,4),t&2){let e=VD();_D(e.nzSimple?0:1);}}var un=(()=>{class t{active=false;locale;index=null;disabled=false;direction="ltr";type=null;itemRender=null;diffIndex=new Le;gotoIndex=new Le;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:i,index:n,type:o}=e;(i||n||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(i){return new(i||t)};static \u0275cmp=QE({type:t,selectors:[["li","nz-pagination-item",""]],hostVars:19,hostBindings:function(i,n){i&1&&gh("click",function(){return n.clickItem()}),i&2&&(ah("title",n.title),Mh("ant-pagination-prev",n.type==="prev")("ant-pagination-next",n.type==="next")("ant-pagination-item",n.type==="page")("ant-pagination-jump-prev",n.type==="prev_5")("ant-pagination-jump-prev-custom-icon",n.type==="prev_5")("ant-pagination-jump-next",n.type==="next_5")("ant-pagination-jump-next-custom-icon",n.type==="next_5")("ant-pagination-disabled",n.disabled)("ant-pagination-item-active",n.active));},inputs:{active:"active",locale:"locale",index:"index",disabled:"disabled",direction:"direction",type:"type",itemRender:"itemRender"},outputs:{diffIndex:"diffIndex",gotoIndex:"gotoIndex"},features:[ly],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(i,n){if(i&1&&nh(0,bo,4,1,"ng-template",null,0,Lw)(2,_o,0,0,"ng-template",1),i&2){let o=zD(1);gI(2),ch("ngTemplateOutlet",n.itemRender||o)("ngTemplateOutletContext",Aw(2,io,n.type,n.index));}},dependencies:[pt,Se$1,es$1],encapsulation:2})}return t})(),wi=(()=>{class t{nzSize="default";disabled=false;showSizeChanger=false;showQuickJumper=false;locale;total=0;pageIndex=1;pageSize=10;pageSizeOptions=[];pageIndexChange=new Le;pageSizeChange=new Le;listOfPageSizeOption=[];onPageSizeChange(e){this.pageSize!==e&&this.pageSizeChange.next(e);}jumpToPageViaInput(e){let i=e.target,n=Math.floor(u9(i.value,this.pageIndex));this.pageIndexChange.next(n),i.value="";}ngOnChanges(e){let{pageSize:i,pageSizeOptions:n,locale:o}=e;(i||n||o)&&(this.listOfPageSizeOption=[...new Set([...this.pageSizeOptions,this.pageSize])].map(l=>({value:l,label:`${l} ${this.locale.items_per_page}`})));}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=QE({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:[ly],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(i,n){i&1&&(bD(0,yo,3,3,"nz-select",0),bD(1,To,4,3,"div",1)),i&2&&(_D(n.showSizeChanger?0:-1),gI(),_D(n.showQuickJumper?1:-1));},dependencies:[oM,E5,Y5,o8,e8,T3],encapsulation:2})}return t})(),Mi=(()=>{class t{dir=C(Ie$1).valueSignal;template;nzSize="default";itemRender=null;showTotal=null;disabled=false;locale;showSizeChanger=false;showQuickJumper=false;total=0;pageIndex=1;pageSize=10;pageSizeOptions=[10,20,30,40];pageIndexChange=new Le;pageSizeChange=new Le;ranges=[0,0];listOfPageItem=[];constructor(){let e=C(_r).nativeElement,i=C(XI);i.removeChild(i.parentNode(e),e);}jumpPage(e){this.onPageIndexChange(e);}jumpDiff(e){this.jumpPage(this.pageIndex+e);}trackByPageItem(e,i){return `${i.type}-${i.index}`}onPageIndexChange(e){this.pageIndexChange.next(e);}onPageSizeChange(e){this.pageSizeChange.next(e);}getLastIndex(e,i){return (i>0?Math.ceil(e/i):0)||1}buildIndexes(){let e=this.getLastIndex(this.total,this.pageSize);this.listOfPageItem=this.getListOfPageItem(this.pageIndex,e);}getListOfPageItem(e,i){let n=l=>{let f={type:"prev",disabled:e===1},b={type:"next",disabled:e===i};return [f,...l,b]},o=(l,f)=>{let b=[];for(let P=l;P<=f;P++)b.push({index:P,type:"page"});return b};return i<=9?n(o(1,i)):n(((f,b)=>{let P=[],$={type:"prev_5"},X={type:"next_5"},K=o(1,1),Y=o(i,i);if(f<5)P=[...o(2,f===4?6:5),X];else if(f<b-3)P=[$,...o(f-2,f+2),X];else {let ue=f===b-3?b-5:b-4;P=[$,...o(ue,b-1)];}return [...K,...P,...Y]})(e,i))}ngOnChanges(e){let{pageIndex:i,pageSize:n,total:o}=e;(i||n||o)&&(this.ranges=[(this.pageIndex-1)*this.pageSize+1,Math.min(this.pageIndex*this.pageSize,this.total)],this.buildIndexes());}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=QE({type:t,selectors:[["nz-pagination-default"]],viewQuery:function(i,n){if(i&1&&Ih(xi,7),i&2){let o;qD(o=WD())&&(n.template=o.first);}},hostVars:2,hostBindings:function(i,n){i&2&&Mh("ant-pagination-rtl",n.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:[ly],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(i,n){i&1&&nh(0,No,5,2,"ng-template",null,0,Lw);},dependencies:[es$1,un,wi],encapsulation:2})}return t})(),Oi=(()=>{class t{dir=C(Ie$1).valueSignal;template;itemRender=null;disabled=false;locale;total=0;pageIndex=1;pageSize=10;pageIndexChange=new Le;lastIndex=0;isFirstIndex=false;isLastIndex=false;constructor(){let e=C(_r).nativeElement,i=C(XI);i.removeChild(i.parentNode(e),e);}jumpToPageViaInput(e){let i=e.target,n=u9(i.value,this.pageIndex);this.onPageIndexChange(n),i.value=`${this.pageIndex}`;}prePage(){this.onPageIndexChange(this.pageIndex-1);}nextPage(){this.onPageIndexChange(this.pageIndex+1);}onPageIndexChange(e){this.pageIndexChange.next(e);}updateBindingValue(){let e=this.pageSize>0?Math.ceil(this.total/this.pageSize):0;this.lastIndex=e||1,this.isFirstIndex=this.pageIndex===1,this.isLastIndex=this.pageIndex===this.lastIndex;}ngOnChanges(e){let{pageIndex:i,total:n,pageSize:o}=e;(i||n||o)&&this.updateBindingValue();}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=QE({type:t,selectors:[["nz-pagination-simple"]],viewQuery:function(i,n){if(i&1&&Ih(xi,7),i&2){let o;qD(o=WD())&&(n.template=o.first);}},hostVars:2,hostBindings:function(i,n){i&2&&Mh("ant-pagination-rtl",n.dir()==="rtl");},inputs:{itemRender:"itemRender",disabled:"disabled",locale:"locale",total:"total",pageIndex:"pageIndex",pageSize:"pageSize"},outputs:{pageIndexChange:"pageIndexChange"},features:[ly],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(i,n){i&1&&nh(0,ko,8,14,"ng-template",null,0,Lw);},dependencies:[un],encapsulation:2})}return t})(),$o="pagination",mn=(()=>{let t,a=[],e=[],i,n=[],o=[],l,f=[],b$1=[],P,$=[],X=[],K,Y=[],ue$1=[];return class pn{static{let T=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[ut$1()],i=[ut$1()],l=[ut$1()],P=[ut$1()],K=[ut$1()],pT(null,null,t,{kind:"field",name:"nzSize",static:false,private:false,access:{has:C=>"nzSize"in C,get:C=>C.nzSize,set:(C,h)=>{C.nzSize=h;}},metadata:T},a,e),pT(null,null,i,{kind:"field",name:"nzPageSizeOptions",static:false,private:false,access:{has:C=>"nzPageSizeOptions"in C,get:C=>C.nzPageSizeOptions,set:(C,h)=>{C.nzPageSizeOptions=h;}},metadata:T},n,o),pT(null,null,l,{kind:"field",name:"nzShowSizeChanger",static:false,private:false,access:{has:C=>"nzShowSizeChanger"in C,get:C=>C.nzShowSizeChanger,set:(C,h)=>{C.nzShowSizeChanger=h;}},metadata:T},f,b$1),pT(null,null,P,{kind:"field",name:"nzShowQuickJumper",static:false,private:false,access:{has:C=>"nzShowQuickJumper"in C,get:C=>C.nzShowQuickJumper,set:(C,h)=>{C.nzShowQuickJumper=h;}},metadata:T},$,X),pT(null,null,K,{kind:"field",name:"nzSimple",static:false,private:false,access:{has:C=>"nzSimple"in C,get:C=>C.nzSimple,set:(C,h)=>{C.nzSimple=h;}},metadata:T},Y,ue$1),T&&Object.defineProperty(this,Symbol.metadata,{enumerable:true,configurable:true,writable:true,value:T});}_nzModuleName=$o;i18n=C(Sn);cdr=C(z0);breakpointService=C(z);nzConfigService=C(kt);dir=C(Ie$1).valueSignal;destroyRef=C(at);nzPageSizeChange=new Le;nzPageIndexChange=new Le;nzShowTotal=null;nzItemRender=null;nzSize=hT(this,a,"default");nzPageSizeOptions=(hT(this,e),hT(this,n,[10,20,30,40]));nzShowSizeChanger=(hT(this,o),hT(this,f,false));nzShowQuickJumper=(hT(this,b$1),hT(this,$,false));nzSimple=(hT(this,X),hT(this,Y,false));nzDisabled=(hT(this,ue$1),false);nzResponsive=false;nzHideOnSinglePage=false;nzTotal=0;nzPageIndex=1;nzPageSize=10;nzAlign=$0("start");showPagination=true;locale;size="default";total$=new Ln(1);validatePageIndex(T,C){return T>C?C:T<1?1:T}onPageIndexChange(T){let C=this.getLastIndex(this.nzTotal,this.nzPageSize),h=this.validatePageIndex(T,C);h!==this.nzPageIndex&&!this.nzDisabled&&(this.nzPageIndex=h,this.nzPageIndexChange.emit(this.nzPageIndex));}onPageSizeChange(T){this.nzPageSize=T,this.nzPageSizeChange.emit(T);let C=this.getLastIndex(this.nzTotal,this.nzPageSize);this.nzPageIndex>C&&this.onPageIndexChange(C);}onTotalChange(T){let C=this.getLastIndex(T,this.nzPageSize);this.nzPageIndex>C&&Promise.resolve().then(()=>{this.onPageIndexChange(C),this.cdr.markForCheck();});}getLastIndex(T,C){return (C>0?Math.ceil(T/C):0)||1}ngOnInit(){this.i18n.localeChange.pipe(ue(this.destroyRef)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Pagination"),this.cdr.markForCheck();}),this.total$.pipe(ue(this.destroyRef)).subscribe(T=>{this.onTotalChange(T);}),this.breakpointService.subscribe(b).pipe(ue(this.destroyRef)).subscribe(T=>{this.nzResponsive&&(this.size=T===M.xs?"small":"default",this.cdr.markForCheck());});}ngOnChanges(T){let{nzHideOnSinglePage:C,nzTotal:h,nzPageSize:He,nzSize:we}=T;h&&this.total$.next(this.nzTotal),(C||h||He)&&(this.showPagination=this.nzHideOnSinglePage&&this.nzTotal>this.nzPageSize||this.nzTotal>0&&!this.nzHideOnSinglePage),we&&(this.size=we.currentValue);}static \u0275fac=function(C){return new(C||pn)};static \u0275cmp=QE({type:pn,selectors:[["nz-pagination"]],hostAttrs:[1,"ant-pagination"],hostVars:14,hostBindings:function(C,h){C&2&&Mh("ant-pagination-simple",h.nzSimple)("ant-pagination-disabled",h.nzDisabled)("ant-pagination-mini",!h.nzSimple&&h.size==="small")("ant-pagination-rtl",h.dir()==="rtl")("ant-pagination-start",h.nzAlign()==="start")("ant-pagination-center",h.nzAlign()==="center")("ant-pagination-end",h.nzAlign()==="end");},inputs:{nzShowTotal:"nzShowTotal",nzItemRender:"nzItemRender",nzSize:"nzSize",nzPageSizeOptions:"nzPageSizeOptions",nzShowSizeChanger:[2,"nzShowSizeChanger","nzShowSizeChanger",Z0],nzShowQuickJumper:[2,"nzShowQuickJumper","nzShowQuickJumper",Z0],nzSimple:[2,"nzSimple","nzSimple",Z0],nzDisabled:[2,"nzDisabled","nzDisabled",Z0],nzResponsive:[2,"nzResponsive","nzResponsive",Z0],nzHideOnSinglePage:[2,"nzHideOnSinglePage","nzHideOnSinglePage",Z0],nzTotal:[2,"nzTotal","nzTotal",Y0],nzPageIndex:[2,"nzPageIndex","nzPageIndex",Y0],nzPageSize:[2,"nzPageSize","nzPageSize",Y0],nzAlign:[1,"nzAlign"]},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange"},exportAs:["nzPagination"],features:[ly],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(C,h){C&1&&(bD(0,Eo,2,1),_i(1,"nz-pagination-simple",2,0),gh("pageIndexChange",function(we){return h.onPageIndexChange(we)}),Kc(),_i(3,"nz-pagination-default",3,1),gh("pageIndexChange",function(we){return h.onPageIndexChange(we)})("pageSizeChange",function(we){return h.onPageSizeChange(we)}),Kc()),C&2&&(_D(h.showPagination?0:-1),gI(),ch("disabled",h.nzDisabled)("itemRender",h.nzItemRender)("locale",h.locale)("pageSize",h.nzPageSize)("total",h.nzTotal)("pageIndex",h.nzPageIndex),gI(2),ch("nzSize",h.size)("itemRender",h.nzItemRender)("showTotal",h.nzShowTotal)("disabled",h.nzDisabled)("locale",h.locale)("showSizeChanger",h.nzShowSizeChanger)("showQuickJumper",h.nzShowQuickJumper)("total",h.nzTotal)("pageIndex",h.nzPageIndex)("pageSize",h.nzPageSize)("pageSizeOptions",h.nzPageSizeOptions));},dependencies:[es$1,Oi,Mi],encapsulation:2})}})(),Di=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=YE({type:t});static \u0275inj=uu({imports:[mn,Oi,wi,un,Mi]})}return t})();var jt=["*"];function Bo(t,a){if(t&1&&lh(0,"nz-icon",0),t&2){let e=VD();ch("nzType",e.nzIcon);}}function Lo(t,a){if(t&1&&(el$1(0),_i(1,"span",4),vw(2),Kc(),tl$1()),t&2){let e=VD();gI(2),Ph(e.nzTitle);}}function Wo(t,a){if(t&1&&(_i(0,"span",2),lh(1,"nz-icon",5),Kc()),t&2){let e=VD();gI(),ch("nzType",e.dir()==="rtl"?"left":"right");}}function jo(t,a){t&1&&lh(0,"span",3);}var Qo=[[["","title",""]],"*"],Ho=["[title]","*"];function Xo(t,a){t&1&&$D(0);}function Jo(t,a){}function Go(t,a){if(t&1&&(_i(0,"div",3),nh(1,Jo,0,0,"ng-template",5),Kc()),t&2){let e=VD(),i=zD(6);ch("open",e.nzOpen)("menuClass",e.nzMenuClassName),gI(),ch("ngTemplateOutlet",i);}}function qo(t,a){}function Yo(t,a){if(t&1){let e=LD();_i(0,"div",7),gh("subMenuMouseState",function(n){Pu(e);let o=VD(2);return Lu(o.setMouseEnterState(n))}),nh(1,qo,0,0,"ng-template",5),Kc();}if(t&2){let e=VD(2),i=zD(6);ch("theme",e.theme)("mode",e.mode)("open",e.nzOpen)("position",e.position)("menuClass",e.nzMenuClassName)("nzDisabled",e.nzDisabled)("nzTriggerSubMenuAction",e.nzTriggerSubMenuAction)("nzNoAnimation",e.noAnimation?.nzNoAnimation?.()),gI(),ch("ngTemplateOutlet",i);}}function Uo(t,a){if(t&1){let e=LD();nh(0,Yo,2,9,"ng-template",6),gh("positionChange",function(n){Pu(e);let o=VD();return Lu(o.onPositionChange(n))})("overlayOutsideClick",function(){Pu(e);let n=VD();return Lu(n.setMouseEnterState(false))});}if(t&2){let e=VD(),i=zD(1);ch("cdkConnectedOverlayPositions",e.overlayPositions)("cdkConnectedOverlayOrigin",i)("cdkConnectedOverlayWidth",e.triggerWidth)("cdkConnectedOverlayOpen",e.nzOpen);}}function Zo(t,a){t&1&&$D(0,1);}var Ko=["titleElement"],ea=["*",[["","title",""]]],ta=["*","[title]"];function na(t,a){if(t&1&&(el$1(0),vw(1),tl$1()),t&2){let e=VD();gI(),Ph(e.nzTitle);}}function ia(t,a){t&1&&$D(0,1);}var Ie=(()=>{class t{descendantMenuItemClick$=new re;childMenuItemClick$=new re;theme$=new On("light");mode$=new On("vertical");inlineIndent$=new On(24);isChildSubMenuOpen$=new On(false);onDescendantMenuItemClick(e){this.descendantMenuItemClick$.next(e);}onChildMenuItemClick(e){this.childMenuItemClick$.next(e);}setMode(e){this.mode$.next(e);}setTheme(e){this.theme$.next(e);}setInlineIndent(e){this.inlineIndent$.next(e);}static \u0275fac=function(i){return new(i||t)};static \u0275prov=ie({token:t,factory:t.\u0275fac})}return t})(),ve=new A(""),Ii=new A(""),fn=(()=>{class t{nzMenuService=C(Ie);isMenuInsideDropdown=C(ve);nzHostSubmenuService=C(t,{optional:true,skipSelf:true});mode$=this.nzMenuService.mode$.pipe(Se(e=>e==="inline"?"inline":e==="vertical"||this.nzHostSubmenuService?"vertical":"horizontal"));level=1;isCurrentSubMenuOpen$=new On(false);isChildSubMenuOpen$=new On(false);isMouseEnterTitleOrOverlay$=new re;childMenuItemClick$=new re;onChildMenuItemClick(e){this.childMenuItemClick$.next(e);}setOpenStateWithoutDebounce(e){this.isCurrentSubMenuOpen$.next(e);}setMouseEnterTitleOrOverlayState(e){this.isMouseEnterTitleOrOverlay$.next(e);}constructor(){this.nzHostSubmenuService&&(this.level=this.nzHostSubmenuService.level+1);let e=this.childMenuItemClick$.pipe(Ie$2(()=>this.mode$),on(o=>o!=="inline"||this.isMenuInsideDropdown),Se(()=>false)),i=zg(this.isMouseEnterTitleOrOverlay$,e);Fg([this.isChildSubMenuOpen$,i]).pipe(Se(([o,l])=>o||l),Qg(150)).pipe(Kg(),ue()).subscribe(o=>{this.setOpenStateWithoutDebounce(o),this.nzHostSubmenuService?this.nzHostSubmenuService.isChildSubMenuOpen$.next(o):this.nzMenuService.isChildSubMenuOpen$.next(o);});}static \u0275fac=function(i){return new(i||t)};static \u0275prov=ie({token:t,factory:t.\u0275fac})}return t})(),Tt=(()=>{class t{nzMenuService=C(Ie);destroyRef=C(at);cdr=C(z0);nzSubmenuService=C(fn,{optional:true});routerLink=C(Ln$1,{optional:true});router=C(Ie$3,{optional:true});isMenuInsideDropdown=C(ve);level=this.nzSubmenuService?this.nzSubmenuService.level+1:1;selected$=new re;inlinePaddingLeft=null;nzPaddingLeft;nzDisabled=false;nzSelected=false;nzDanger=false;nzMatchRouterExact=false;nzMatchRouter=false;listOfRouterLink;clickMenuItem(e){if(this.nzDisabled){e.preventDefault(),e.stopPropagation();return}this.nzMenuService.onDescendantMenuItemClick(this),this.nzSubmenuService?this.nzSubmenuService.onChildMenuItemClick(this):this.nzMenuService.onChildMenuItemClick(this);}setSelectedState(e){this.nzSelected=e,this.selected$.next(e);}updateRouterActive(){!this.listOfRouterLink||!this.router||!this.router.navigated||!this.nzMatchRouter||Promise.resolve().then(()=>{let e=this.hasActiveLinks();this.nzSelected!==e&&(this.nzSelected=e,this.setSelectedState(this.nzSelected),this.cdr.markForCheck());});}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.routerLink&&e(this.routerLink)||this.listOfRouterLink.some(e)}isLinkActive(e){return i=>e.isActive(i.urlTree||"",{paths:this.nzMatchRouterExact?"exact":"subset",queryParams:this.nzMatchRouterExact?"exact":"subset",fragment:"ignored",matrixParams:"ignored"})}constructor(){this.router?.events.pipe(ue(),on(e=>e instanceof X)).subscribe(()=>this.updateRouterActive());}ngOnInit(){Fg([this.nzMenuService.mode$,this.nzMenuService.inlineIndent$]).pipe(ue(this.destroyRef)).subscribe(([e,i])=>{this.inlinePaddingLeft=e==="inline"?this.level*i:null;});}ngAfterContentInit(){this.listOfRouterLink.changes.pipe(ue(this.destroyRef)).subscribe(()=>this.updateRouterActive()),this.updateRouterActive();}ngOnChanges(e){let{nzSelected:i}=e;i&&this.setSelectedState(this.nzSelected);}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=QE({type:t,selectors:[["","nz-menu-item",""]],contentQueries:function(i,n,o){if(i&1&&vh(o,Ln$1,5),i&2){let l;qD(l=WD())&&(n.listOfRouterLink=l);}},hostVars:18,hostBindings:function(i,n){i&1&&gh("click",function(l){return n.clickMenuItem(l)}),i&2&&(_h("padding-inline-start",n.nzPaddingLeft||n.inlinePaddingLeft,"px"),Mh("ant-dropdown-menu-item",n.isMenuInsideDropdown)("ant-dropdown-menu-item-selected",n.isMenuInsideDropdown&&n.nzSelected)("ant-dropdown-menu-item-danger",n.isMenuInsideDropdown&&n.nzDanger)("ant-dropdown-menu-item-disabled",n.isMenuInsideDropdown&&n.nzDisabled)("ant-menu-item",!n.isMenuInsideDropdown)("ant-menu-item-selected",!n.isMenuInsideDropdown&&n.nzSelected)("ant-menu-item-danger",!n.isMenuInsideDropdown&&n.nzDanger)("ant-menu-item-disabled",!n.isMenuInsideDropdown&&n.nzDisabled));},inputs:{nzPaddingLeft:[2,"nzPaddingLeft","nzPaddingLeft",d9],nzDisabled:[2,"nzDisabled","nzDisabled",Z0],nzSelected:[2,"nzSelected","nzSelected",Z0],nzDanger:[2,"nzDanger","nzDanger",Z0],nzMatchRouterExact:[2,"nzMatchRouterExact","nzMatchRouterExact",Z0],nzMatchRouter:[2,"nzMatchRouter","nzMatchRouter",Z0]},exportAs:["nzMenuItem"],features:[ly],ngContentSelectors:jt,decls:2,vars:0,consts:[[1,"ant-menu-title-content"]],template:function(i,n){i&1&&(BD(),Jc(0,"span",0),$D(1),Xc());},encapsulation:2})}return t})(),vt="ant-menu",oa=(()=>{class t{dir=C(Ie$1).valueSignal;menuClass=$0("");open=$0(false);leavedClassName=$0(_9(vt,"submenu-hidden"));mergedClass=Hw(()=>{let e=b9(this.menuClass())||[],i=[vt,_9(vt,"inline"),_9(vt,"sub"),...e];return this.dir()==="rtl"&&i.push(_9(vt,"rtl")),i});static \u0275fac=function(i){return new(i||t)};static \u0275cmp=QE({type:t,selectors:[["","nz-submenu-inline-child",""]],hostVars:2,hostBindings:function(i,n){i&2&&cw(n.mergedClass());},inputs:{menuClass:[1,"menuClass"],open:[1,"open"],leavedClassName:[1,"leavedClassName"]},exportAs:["nzSubmenuInlineChild"],features:[rD([{directive:yb,inputs:["open","open","leavedClassName","leavedClassName"]}])],ngContentSelectors:jt,decls:1,vars:0,template:function(i,n){i&1&&(BD(),$D(0));},encapsulation:2})}return t})(),zn="ant",mt=`${zn}-menu`,yt=`${mt}-submenu`,hn=`${zn}-dropdown`,Wt=`${zn}-zoom-big`,Ni={vertical:{enter:`${Wt}-enter ${Wt}-enter-active`,leave:`${Wt}-leave ${Wt}-leave-active`},horizontal:d0},aa=(()=>{class t{isMenuInsideDropdown=C(ve);dir=C(Ie$1).valueSignal;menuClass=$0("");theme=$0("light");mode=$0("vertical");position=$0("right");open=$0(false);nzDisabled=$0(false);nzTriggerSubMenuAction=$0("hover");subMenuMouseState=B0();animationEnter=h0(()=>Ni[this.mode()].enter);animationLeave=h0(()=>Ni[this.mode()].leave);submenuClass=Hw(()=>{let e=[yt,_9(yt,"popup"),_9(mt,this.theme()==="dark"?"dark":"light")],i=this.mode(),n=this.position()==="left"?"left":"right";return i==="horizontal"?e.push(_9(yt,"placement-bottom")):i==="vertical"&&e.push(_9(yt,`placement-${n}`)),this.dir()==="rtl"&&e.push(_9(yt,"rtl")),e});mergedMenuClass=Hw(()=>{let e=b9(this.menuClass())||[];return this.isMenuInsideDropdown?e.push(_9(hn,"menu"),_9(hn,"menu-sub"),_9(hn,"menu-vertical")):e.push(mt,_9(mt,"sub"),_9(mt,"vertical")),this.dir()==="rtl"&&e.push(_9(mt,"rtl")),e});setMouseState(e){!this.nzDisabled()&&this.nzTriggerSubMenuAction()==="hover"&&this.subMenuMouseState.emit(e);}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=QE({type:t,selectors:[["","nz-submenu-none-inline-child",""]],hostVars:2,hostBindings:function(i,n){i&1&&(gh("mouseenter",function(){return n.setMouseState(true)})("mouseleave",function(){return n.setMouseState(false)}),ri(function(){return n.animationEnter()}),oi(function(){return n.animationLeave()})),i&2&&cw(n.submenuClass());},inputs:{menuClass:[1,"menuClass"],theme:[1,"theme"],mode:[1,"mode"],position:[1,"position"],open:[1,"open"],nzDisabled:[1,"nzDisabled"],nzTriggerSubMenuAction:[1,"nzTriggerSubMenuAction"]},outputs:{subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuNoneInlineChild"],ngContentSelectors:jt,decls:2,vars:2,template:function(i,n){i&1&&(BD(),Jc(0,"div"),$D(1),Xc()),i&2&&cw(n.mergedMenuClass());},encapsulation:2})}return t})(),Pi=(()=>{class t{isMenuInsideDropdown=C(ve);dir=C(Ie$1).valueSignal;nzIcon=null;nzTitle=null;nzDisabled=false;paddingLeft=null;mode="vertical";nzTriggerSubMenuAction="hover";toggleSubMenu=new Le;subMenuMouseState=new Le;setMouseState(e){!this.nzDisabled&&this.nzTriggerSubMenuAction==="hover"&&this.subMenuMouseState.next(e);}clickTitle(){(this.mode==="inline"||this.nzTriggerSubMenuAction==="click")&&!this.nzDisabled&&(this.subMenuMouseState.next(true),this.toggleSubMenu.emit());}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=QE({type:t,selectors:[["","nz-submenu-title",""]],hostVars:6,hostBindings:function(i,n){i&1&&gh("click",function(){return n.clickTitle()})("mouseenter",function(){return n.setMouseState(true)})("mouseleave",function(){return n.setMouseState(false)}),i&2&&(_h("padding-inline-start",n.paddingLeft,"px"),Mh("ant-dropdown-menu-submenu-title",n.isMenuInsideDropdown)("ant-menu-submenu-title",!n.isMenuInsideDropdown));},inputs:{nzIcon:"nzIcon",nzTitle:"nzTitle",nzDisabled:"nzDisabled",paddingLeft:"paddingLeft",mode:"mode",nzTriggerSubMenuAction:"nzTriggerSubMenuAction"},outputs:{toggleSubMenu:"toggleSubMenu",subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuTitle"],ngContentSelectors:jt,decls:5,vars:3,consts:[[3,"nzType"],[4,"nzStringTemplateOutlet"],[1,"ant-dropdown-menu-submenu-expand-icon"],[1,"ant-menu-submenu-arrow"],[1,"ant-menu-title-content"],[1,"ant-dropdown-menu-submenu-arrow-icon",3,"nzType"]],template:function(i,n){i&1&&(BD(),bD(0,Bo,1,1,"nz-icon",0),nh(1,Lo,3,1,"ng-container",1),$D(2),bD(3,Wo,2,1,"span",2)(4,jo,1,0,"span",3)),i&2&&(_D(n.nzIcon?0:-1),gI(),ch("nzStringTemplateOutlet",n.nzTitle),gI(2),_D(n.isMenuInsideDropdown?3:4));},dependencies:[pt,Se$1,Tt$1,Ne],encapsulation:2})}return t})(),ki=[_e.rightTop,_e.right,_e.rightBottom,_e.leftTop,_e.left,_e.leftBottom],la=[_e.bottomLeft,_e.bottomRight,_e.topRight,_e.topLeft],Fi=(()=>{class t{nzSubmenuService=C(fn);isMenuInsideDropdown=C(ve);noAnimation=C(n4,{optional:true,host:true});dir=C(Ie$1).valueSignal;destroyRef=C(at);nzMenuService=C(Ie);cdr=C(z0);platform=C(J);nzMenuClassName="";nzPaddingLeft=null;nzTitle=null;nzIcon=null;nzTriggerSubMenuAction="hover";nzOpen=false;nzDisabled=false;nzPlacement="bottomLeft";nzOpenChange=new Le;cdkOverlayOrigin=null;listOfNzSubMenuComponent=null;listOfNzMenuItemDirective=null;level=this.nzSubmenuService.level;position="right";triggerWidth=null;theme="light";mode="vertical";inlinePaddingLeft=null;overlayPositions=ki;isSelected=false;isActive=false;setOpenStateWithoutDebounce(e){this.nzSubmenuService.setOpenStateWithoutDebounce(e);}toggleSubMenu(){this.setOpenStateWithoutDebounce(!this.nzOpen);}setMouseEnterState(e){this.isActive=e,this.mode!=="inline"&&this.nzSubmenuService.setMouseEnterTitleOrOverlayState(e);}setTriggerWidth(){this.mode==="horizontal"&&this.platform.isBrowser&&this.cdkOverlayOrigin&&this.nzPlacement==="bottomLeft"&&(this.triggerWidth=this.cdkOverlayOrigin.nativeElement.getBoundingClientRect().width);}onPositionChange(e){let i=zn$1(e);i==="rightTop"||i==="rightBottom"||i==="right"?this.position="right":(i==="leftTop"||i==="leftBottom"||i==="left")&&(this.position="left");}ngOnInit(){this.nzMenuService.theme$.pipe(ue(this.destroyRef)).subscribe(e=>{this.theme=e,this.cdr.markForCheck();}),this.nzSubmenuService.mode$.pipe(ue(this.destroyRef)).subscribe(e=>{this.mode=e,e==="horizontal"?this.overlayPositions=[_e[this.nzPlacement],...la]:e==="vertical"&&(this.overlayPositions=ki),this.cdr.markForCheck();}),Fg([this.nzSubmenuService.mode$,this.nzMenuService.inlineIndent$]).pipe(ue(this.destroyRef)).subscribe(([e,i])=>{this.inlinePaddingLeft=e==="inline"?this.level*i:null,this.cdr.markForCheck();}),this.nzSubmenuService.isCurrentSubMenuOpen$.pipe(ue(this.destroyRef)).subscribe(e=>{this.isActive=e,e!==this.nzOpen&&(this.setTriggerWidth(),this.nzOpen=e,this.nzOpenChange.emit(this.nzOpen),this.cdr.markForCheck());});}ngAfterContentInit(){this.setTriggerWidth();let e=this.listOfNzMenuItemDirective,i=e.changes,n=zg(i,...e.map(o=>o.selected$));i.pipe(Gl$1(e),Ml$1(()=>n),Gl$1(true),Se(()=>e.some(o=>o.nzSelected)),ue(this.destroyRef)).subscribe(o=>{this.isSelected=o,this.cdr.markForCheck();});}ngOnChanges(e){let{nzOpen:i}=e;i&&(this.nzSubmenuService.setOpenStateWithoutDebounce(this.nzOpen),this.setTriggerWidth());}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=QE({type:t,selectors:[["","nz-submenu",""]],contentQueries:function(i,n,o){if(i&1&&vh(o,t,5)(o,Tt,5),i&2){let l;qD(l=WD())&&(n.listOfNzSubMenuComponent=l),qD(l=WD())&&(n.listOfNzMenuItemDirective=l);}},viewQuery:function(i,n){if(i&1&&Ih(Dt,7,_r),i&2){let o;qD(o=WD())&&(n.cdkOverlayOrigin=o.first);}},hostVars:34,hostBindings:function(i,n){i&2&&Mh("ant-dropdown-menu-submenu",n.isMenuInsideDropdown)("ant-dropdown-menu-submenu-disabled",n.isMenuInsideDropdown&&n.nzDisabled)("ant-dropdown-menu-submenu-open",n.isMenuInsideDropdown&&n.nzOpen)("ant-dropdown-menu-submenu-selected",n.isMenuInsideDropdown&&n.isSelected)("ant-dropdown-menu-submenu-vertical",n.isMenuInsideDropdown&&n.mode==="vertical")("ant-dropdown-menu-submenu-horizontal",n.isMenuInsideDropdown&&n.mode==="horizontal")("ant-dropdown-menu-submenu-inline",n.isMenuInsideDropdown&&n.mode==="inline")("ant-dropdown-menu-submenu-active",n.isMenuInsideDropdown&&n.isActive)("ant-menu-submenu",!n.isMenuInsideDropdown)("ant-menu-submenu-disabled",!n.isMenuInsideDropdown&&n.nzDisabled)("ant-menu-submenu-open",!n.isMenuInsideDropdown&&n.nzOpen)("ant-menu-submenu-selected",!n.isMenuInsideDropdown&&n.isSelected)("ant-menu-submenu-vertical",!n.isMenuInsideDropdown&&n.mode==="vertical")("ant-menu-submenu-horizontal",!n.isMenuInsideDropdown&&n.mode==="horizontal")("ant-menu-submenu-inline",!n.isMenuInsideDropdown&&n.mode==="inline")("ant-menu-submenu-active",!n.isMenuInsideDropdown&&n.isActive)("ant-menu-submenu-rtl",n.dir()==="rtl");},inputs:{nzMenuClassName:"nzMenuClassName",nzPaddingLeft:"nzPaddingLeft",nzTitle:"nzTitle",nzIcon:"nzIcon",nzTriggerSubMenuAction:"nzTriggerSubMenuAction",nzOpen:[2,"nzOpen","nzOpen",Z0],nzDisabled:[2,"nzDisabled","nzDisabled",Z0],nzPlacement:"nzPlacement"},outputs:{nzOpenChange:"nzOpenChange"},exportAs:["nzSubmenu"],features:[Sw([fn]),ly],ngContentSelectors:Ho,decls:7,vars:8,consts:[["origin","cdkOverlayOrigin"],["subMenuTemplate",""],["nz-submenu-title","","cdkOverlayOrigin","",3,"subMenuMouseState","toggleSubMenu","nzIcon","nzTitle","mode","nzDisabled","paddingLeft","nzTriggerSubMenuAction"],["nz-submenu-inline-child","","leavedClassName","ant-menu-submenu-hidden",3,"open","menuClass"],["cdkConnectedOverlay","","cdkConnectedOverlayTransformOriginOn",".ant-menu-submenu",3,"cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayWidth","cdkConnectedOverlayOpen"],[3,"ngTemplateOutlet"],["cdkConnectedOverlay","","cdkConnectedOverlayTransformOriginOn",".ant-menu-submenu",3,"positionChange","overlayOutsideClick","cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayWidth","cdkConnectedOverlayOpen"],["nz-submenu-none-inline-child","",3,"subMenuMouseState","theme","mode","open","position","menuClass","nzDisabled","nzTriggerSubMenuAction","nzNoAnimation"]],template:function(i,n){i&1&&(BD(Qo),_i(0,"div",2,0),gh("subMenuMouseState",function(l){return n.setMouseEnterState(l)})("toggleSubMenu",function(){return n.toggleSubMenu()}),bD(2,Xo,1,0),Kc(),bD(3,Go,2,3,"div",3)(4,Uo,1,4,null,4),nh(5,Zo,1,0,"ng-template",null,1,Lw)),i&2&&(ch("nzIcon",n.nzIcon)("nzTitle",n.nzTitle)("mode",n.mode)("nzDisabled",n.nzDisabled)("paddingLeft",n.nzPaddingLeft||n.inlinePaddingLeft)("nzTriggerSubMenuAction",n.nzTriggerSubMenuAction),gI(2),_D(n.nzTitle?-1:2),gI(),_D(n.mode==="inline"?3:4));},dependencies:[es$1,Pi,oa,n4,aa,gn$1,f1,Dt],encapsulation:2})}return t})();function sa(){let t=C(Ie,{skipSelf:true,optional:true}),a=C(Ii);return t??a}function ra(){return C(ve,{skipSelf:true,optional:true})??false}var gn=(()=>{class t{nzMenuService=C(Ie);destroyRef=C(at);cdr=C(z0);dir=C(Ie$1).valueSignal;isMenuInsideDropdown=C(ve);listOfNzMenuItemDirective;listOfNzSubMenuComponent;nzInlineIndent=24;nzTheme="light";nzMode="vertical";nzInlineCollapsed=false;nzSelectable=!this.isMenuInsideDropdown;nzClick=new Le;actualMode="vertical";inlineCollapsed$=new On(this.nzInlineCollapsed);mode$=new On(this.nzMode);listOfOpenedNzSubMenuComponent=[];setInlineCollapsed(e){this.nzInlineCollapsed=e,this.inlineCollapsed$.next(e);}updateInlineCollapse(){this.listOfNzMenuItemDirective&&(this.nzInlineCollapsed?(this.listOfOpenedNzSubMenuComponent=this.listOfNzSubMenuComponent.filter(e=>e.nzOpen),this.listOfNzSubMenuComponent.forEach(e=>e.setOpenStateWithoutDebounce(false))):(this.listOfOpenedNzSubMenuComponent.forEach(e=>e.setOpenStateWithoutDebounce(true)),this.listOfOpenedNzSubMenuComponent=[]));}ngOnInit(){Fg([this.inlineCollapsed$,this.mode$]).pipe(ue(this.destroyRef)).subscribe(([e,i])=>{this.actualMode=e?"vertical":i,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck();}),this.nzMenuService.descendantMenuItemClick$.pipe(ue(this.destroyRef)).subscribe(e=>{this.nzClick.emit(e),this.nzSelectable&&!e.nzMatchRouter&&this.listOfNzMenuItemDirective.forEach(i=>i.setSelectedState(i===e));});}ngAfterContentInit(){this.inlineCollapsed$.pipe(ue(this.destroyRef)).subscribe(()=>{this.updateInlineCollapse(),this.cdr.markForCheck();});}ngOnChanges(e){let{nzInlineCollapsed:i,nzInlineIndent:n,nzTheme:o,nzMode:l}=e;i&&this.inlineCollapsed$.next(this.nzInlineCollapsed),n&&this.nzMenuService.setInlineIndent(this.nzInlineIndent),o&&this.nzMenuService.setTheme(this.nzTheme),l&&(this.mode$.next(this.nzMode),!l.isFirstChange()&&this.listOfNzSubMenuComponent&&this.listOfNzSubMenuComponent.forEach(f=>f.setOpenStateWithoutDebounce(false)));}static \u0275fac=function(i){return new(i||t)};static \u0275dir=XE({type:t,selectors:[["","nz-menu",""]],contentQueries:function(i,n,o){if(i&1&&vh(o,Tt,5)(o,Fi,5),i&2){let l;qD(l=WD())&&(n.listOfNzMenuItemDirective=l),qD(l=WD())&&(n.listOfNzSubMenuComponent=l);}},hostVars:34,hostBindings:function(i,n){i&2&&Mh("ant-dropdown-menu",n.isMenuInsideDropdown)("ant-dropdown-menu-root",n.isMenuInsideDropdown)("ant-dropdown-menu-light",n.isMenuInsideDropdown&&n.nzTheme==="light")("ant-dropdown-menu-dark",n.isMenuInsideDropdown&&n.nzTheme==="dark")("ant-dropdown-menu-vertical",n.isMenuInsideDropdown&&n.actualMode==="vertical")("ant-dropdown-menu-horizontal",n.isMenuInsideDropdown&&n.actualMode==="horizontal")("ant-dropdown-menu-inline",n.isMenuInsideDropdown&&n.actualMode==="inline")("ant-dropdown-menu-inline-collapsed",n.isMenuInsideDropdown&&n.nzInlineCollapsed)("ant-menu",!n.isMenuInsideDropdown)("ant-menu-root",!n.isMenuInsideDropdown)("ant-menu-light",!n.isMenuInsideDropdown&&n.nzTheme==="light")("ant-menu-dark",!n.isMenuInsideDropdown&&n.nzTheme==="dark")("ant-menu-vertical",!n.isMenuInsideDropdown&&n.actualMode==="vertical")("ant-menu-horizontal",!n.isMenuInsideDropdown&&n.actualMode==="horizontal")("ant-menu-inline",!n.isMenuInsideDropdown&&n.actualMode==="inline")("ant-menu-inline-collapsed",!n.isMenuInsideDropdown&&n.nzInlineCollapsed)("ant-menu-rtl",n.dir()==="rtl");},inputs:{nzInlineIndent:"nzInlineIndent",nzTheme:"nzTheme",nzMode:"nzMode",nzInlineCollapsed:[2,"nzInlineCollapsed","nzInlineCollapsed",Z0],nzSelectable:[2,"nzSelectable","nzSelectable",Z0]},outputs:{nzClick:"nzClick"},exportAs:["nzMenu"],features:[Sw([{provide:Ii,useClass:Ie},{provide:Ie,useFactory:sa},{provide:ve,useFactory:ra}]),ly]})}return t})();function da(){return C(ve,{optional:true,skipSelf:true})??false}var ca=(()=>{class t{renderer=C(XI);isMenuInsideDropdown=C(ve);nzTitle;titleElement;ngAfterViewInit(){let e=this.titleElement.nativeElement.nextElementSibling;if(e){let i=this.isMenuInsideDropdown?"ant-dropdown-menu-item-group-list":"ant-menu-item-group-list";this.renderer.addClass(e,i);}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=QE({type:t,selectors:[["","nz-menu-group",""]],viewQuery:function(i,n){if(i&1&&Ih(Ko,5),i&2){let o;qD(o=WD())&&(n.titleElement=o.first);}},hostVars:4,hostBindings:function(i,n){i&2&&Mh("ant-menu-item-group",!n.isMenuInsideDropdown)("ant-dropdown-menu-item-group",n.isMenuInsideDropdown);},inputs:{nzTitle:"nzTitle"},exportAs:["nzMenuGroup"],features:[Sw([{provide:ve,useFactory:da}])],ngContentSelectors:ta,decls:5,vars:6,consts:[["titleElement",""],[4,"nzStringTemplateOutlet"]],template:function(i,n){i&1&&(BD(ea),_i(0,"div",null,0),nh(2,na,2,1,"ng-container",1),bD(3,ia,1,0),Kc(),$D(4)),i&2&&(Mh("ant-menu-item-group-title",!n.isMenuInsideDropdown)("ant-dropdown-menu-item-group-title",n.isMenuInsideDropdown),gI(2),ch("nzStringTemplateOutlet",n.nzTitle),gI(),_D(n.nzTitle?-1:3));},dependencies:[Tt$1,Ne],encapsulation:2})}return t})();var Ri=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=YE({type:t});static \u0275inj=uu({imports:[Fi,ca,Pi]})}return t})();var ma=["*"];function ha(t,a){t&1&&lh(0,"div",1);}function fa(t,a){if(t&1){let e=LD();_i(0,"div",0),oi(function(){Pu(e);let n=VD();return Lu(n.slideAnimationLeave())}),ri(function(){Pu(e);let n=VD();return Lu(n.slideAnimationEnter())}),ec(function(n){Pu(e);let o=VD();return Lu(o.onAnimationEvent(n))}),gh("mouseenter",function(){Pu(e);let n=VD();return Lu(n.setMouseState(true))})("mouseleave",function(){Pu(e);let n=VD();return Lu(n.setMouseState(false))}),bD(1,ha,1,0,"div",1),$D(2),Kc();}if(t&2){let e=VD();sw(e.nzOverlayStyle),cw(e.nzOverlayClassName),Mh("ant-dropdown-rtl",e.dir()==="rtl")("ant-dropdown-show-arrow",e.nzArrow)("ant-dropdown-placement-bottomLeft",e.placement()==="bottomLeft")("ant-dropdown-placement-bottomRight",e.placement()==="bottomRight")("ant-dropdown-placement-bottom",e.placement()==="bottomCenter")("ant-dropdown-placement-topLeft",e.placement()==="topLeft")("ant-dropdown-placement-topRight",e.placement()==="topRight")("ant-dropdown-placement-top",e.placement()==="topCenter"),ch("nzNoAnimation",!!e.noAnimation?.nzNoAnimation?.()),gI(),_D(e.nzArrow?1:-1);}}var za="dropdown",ga=["bottomLeft","bottomRight","topRight","topLeft"],xt=(()=>{let t,a=[],e=[];return class Cn{static{let n=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[ut$1()],pT(null,null,t,{kind:"field",name:"nzBackdrop",static:false,private:false,access:{has:o=>"nzBackdrop"in o,get:o=>o.nzBackdrop,set:(o,l)=>{o.nzBackdrop=l;}},metadata:n},a,e),n&&Object.defineProperty(this,Symbol.metadata,{enumerable:true,configurable:true,writable:true,value:n});}nzConfigService=C(kt);renderer=C(XI);viewContainerRef=C(ji$2);platform=C(J);destroyRef=C(at);_nzModuleName=za;elementRef=C(_r);injector=C(Ee);portal;overlayRef=null;inputVisible$=new On(false);nzTrigger$=new On("hover");overlayClose$=new re;nzDropdownMenu=null;nzTrigger="hover";nzMatchWidthElement=null;nzBackdrop=hT(this,a,false);nzClickHide=(hT(this,e),true);nzDisabled=false;nzVisible=false;nzArrow=false;nzOverlayClassName="";nzOverlayStyle={};nzPlacement="bottomLeft";nzVisibleChange=new Le;constructor(){this.destroyRef.onDestroy(()=>{this.overlayRef?.dispose(),this.overlayRef=null;});}setDropdownMenuValue(n,o){this.nzDropdownMenu?.setValue(n,o);}ngAfterViewInit(){if(this.nzDropdownMenu){let n=this.elementRef.nativeElement,o=zg(rs(n,"mouseenter").pipe(Se(()=>true)),rs(n,"mouseleave").pipe(Se(()=>false))),l=this.nzDropdownMenu.mouseState$,f=zg(l,o),b=rs(n,"click").pipe(Se(()=>!this.nzVisible)),P=this.nzTrigger$.pipe(Ml$1(Y=>Y==="hover"?f:Y==="click"?b:mt$1)),$=this.nzDropdownMenu.descendantMenuItemClick$.pipe(on(()=>this.nzClickHide),Se(()=>false)),X=zg(P,$,this.overlayClose$).pipe(on(()=>!this.nzDisabled)),K=zg(this.inputVisible$,X);Fg([K,this.nzDropdownMenu.isChildSubMenuOpen$]).pipe(Se(([Y,ue])=>Y||ue),Qg(150),Kg(),on(()=>this.platform.isBrowser),ue(this.destroyRef)).subscribe(Y=>{let ye=(this.nzMatchWidthElement?this.nzMatchWidthElement.nativeElement:n).getBoundingClientRect().width;if(this.nzVisible!==Y&&this.nzVisibleChange.emit(Y),this.nzVisible=Y,Y){let T=pn(this.injector,this.elementRef.nativeElement).withLockedPosition().withTransformOriginOn(".ant-dropdown");if(T.positionChanges.pipe(on(()=>!!this.overlayRef),Se(h=>zn$1(h)),ue(this.destroyRef)).subscribe(h=>{h&&this.nzDropdownMenu?.placement.set(this.nzPlacement);}),!this.overlayRef)this.overlayRef=vn(this.injector,{positionStrategy:T,minWidth:ye,disposeOnNavigation:true,hasBackdrop:this.nzBackdrop&&this.nzTrigger==="click",scrollStrategy:un$1(this.injector)}),zg(this.overlayRef.backdropClick(),this.overlayRef.detachments(),this.overlayRef.outsidePointerEvents().pipe(on(h=>!this.elementRef.nativeElement.contains(h.target))),this.overlayRef.keydownEvents().pipe(on(h=>h.keyCode===27&&!Ha$1(h)))).pipe(ue(this.destroyRef)).subscribe(()=>{this.overlayClose$.next(false);});else {let h=this.overlayRef.getConfig();h.minWidth=ye;}let C=[this.nzPlacement,...ga].map(h=>this.nzArrow?r2(_e[h],a2[h]):_e[h]);T.withPositions(C),(!this.portal||this.portal.templateRef!==this.nzDropdownMenu.templateRef)&&(this.portal=new $1(this.nzDropdownMenu.templateRef,this.viewContainerRef)),this.setDropdownMenuValue("nzArrow",this.nzArrow),this.nzDropdownMenu?.placement.set(this.nzPlacement),this.overlayRef.attach(this.portal);}else this.overlayRef?.detach();}),this.nzDropdownMenu.animationStateChange$.pipe(ue(this.destroyRef)).subscribe(Y=>{this.overlayRef?.dispose(),this.overlayRef=null,Y.animationComplete();});}}ngOnChanges(n){let{nzVisible:o,nzDisabled:l,nzOverlayClassName:f,nzOverlayStyle:b,nzTrigger:P,nzArrow:$,nzPlacement:X}=n;if(P&&this.nzTrigger$.next(this.nzTrigger),o&&this.inputVisible$.next(this.nzVisible),l){let K=this.elementRef.nativeElement;this.nzDisabled?(this.renderer.setAttribute(K,"disabled",""),this.inputVisible$.next(false)):this.renderer.removeAttribute(K,"disabled");}f&&this.setDropdownMenuValue("nzOverlayClassName",this.nzOverlayClassName),b&&this.setDropdownMenuValue("nzOverlayStyle",this.nzOverlayStyle),$&&this.setDropdownMenuValue("nzArrow",this.nzArrow),X&&this.nzDropdownMenu?.placement.set(this.nzPlacement);}static \u0275fac=function(o){return new(o||Cn)};static \u0275dir=XE({type:Cn,selectors:[["","nz-dropdown",""]],hostAttrs:[1,"ant-dropdown-trigger"],inputs:{nzDropdownMenu:"nzDropdownMenu",nzTrigger:"nzTrigger",nzMatchWidthElement:"nzMatchWidthElement",nzBackdrop:[2,"nzBackdrop","nzBackdrop",Z0],nzClickHide:[2,"nzClickHide","nzClickHide",Z0],nzDisabled:[2,"nzDisabled","nzDisabled",Z0],nzVisible:[2,"nzVisible","nzVisible",Z0],nzArrow:[2,"nzArrow","nzArrow",Z0],nzOverlayClassName:"nzOverlayClassName",nzOverlayStyle:"nzOverlayStyle",nzPlacement:"nzPlacement"},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzDropdown"],features:[ly]})}})(),Ca=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=YE({type:t});static \u0275inj=uu({})}return t})();var bn=(()=>{class t{viewContainerRef=C(ji$2);nzMenuService=C(Ie);cdr=C(z0);elementRef=C(_r);renderer=C(XI);dir=C(Ie$1).valueSignal;noAnimation=C(n4,{host:true,optional:true});isChildSubMenuOpen$=this.nzMenuService.isChildSubMenuOpen$;descendantMenuItemClick$=this.nzMenuService.descendantMenuItemClick$;mouseState$=new On(false);animationStateChange$=new Le;templateRef;nzOverlayClassName="";nzOverlayStyle={};nzArrow=false;placement=qo$1("bottomLeft");slideAnimationEnter=m0(()=>this.placement().startsWith("top")?"down":"up");slideAnimationLeave=p0(()=>this.placement().startsWith("top")?"down":"up");onAnimationEvent(e){let i=e.target,n=()=>{i.removeEventListener("animationend",n),this.animationStateChange$.emit(e);};i.addEventListener("animationend",n);}setMouseState(e){this.mouseState$.next(e);}setValue(e,i){this[e]=i,this.cdr.markForCheck();}ngAfterContentInit(){this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement);}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=QE({type:t,selectors:[["nz-dropdown-menu"]],viewQuery:function(i,n){if(i&1&&Ih(Er,7),i&2){let o;qD(o=WD())&&(n.templateRef=o.first);}},exportAs:["nzDropdownMenu"],features:[Sw([Ie,{provide:ve,useValue:true}])],ngContentSelectors:ma,decls:1,vars:0,consts:[[1,"ant-dropdown",3,"mouseenter","mouseleave","nzNoAnimation"],[1,"ant-dropdown-arrow"]],template:function(i,n){i&1&&(BD(),nh(0,fa,3,22,"ng-template"));},dependencies:[n4],encapsulation:2})}return t})(),Qt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=YE({type:t});static \u0275inj=uu({imports:[Ca,Ri]})}return t})();[new X$1({originX:"start",originY:"top"},{overlayX:"start",overlayY:"top"}),new X$1({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),new X$1({originX:"start",originY:"top"},{overlayX:"end",overlayY:"bottom"}),new X$1({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"})];var _a=["*"],Sa=["inputElement"],va=(()=>{class t{selected$=new Ln(1);touched$=new re;disabled$=new Ln(1);name$=new Ln(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||t)};static \u0275prov=ie({token:t,factory:t.\u0275fac})}return t})();var Ei=(()=>{class t{dir=C(Ie$1).valueSignal;nzRadioService=C(va,{optional:true});ngZone=C(oe);elementRef=C(_r);cdr=C(z0);focusMonitor=C(a3);destroyRef=C(at);nzFormStatusService=C(za$1,{optional:true});isNgModel=false;isNzDisableFirstChange=true;isChecked=false;name=null;onChange=()=>{};onTouched=()=>{};inputElement;nzValue=null;nzDisabled=false;nzAutoFocus=false;isRadioButton=false;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=false,this.cdr.markForCheck();}writeValue(e){this.isChecked=e,this.cdr.markForCheck();}registerOnChange(e){this.isNgModel=true,this.onChange=e;}registerOnTouched(e){this.onTouched=e;}ngOnInit(){this.nzRadioService&&(this.nzRadioService.name$.pipe(ue(this.destroyRef)).subscribe(e=>{this.name=e,this.cdr.markForCheck();}),this.nzRadioService.disabled$.pipe(ue(this.destroyRef)).subscribe(e=>{this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||e,this.isNzDisableFirstChange=false,this.cdr.markForCheck();}),this.nzRadioService.selected$.pipe(ue(this.destroyRef)).subscribe(e=>{let i=this.isChecked;this.isChecked=this.nzValue===e,this.isNgModel&&i!==this.isChecked&&this.isChecked===false&&this.onChange(false),this.cdr.markForCheck();})),this.focusMonitor.monitor(this.elementRef,true).pipe(ue(this.destroyRef)).subscribe(e=>{e||(Promise.resolve().then(()=>this.onTouched()),this.nzRadioService&&this.nzRadioService.touch());}),this.setupClickListener();}ngAfterViewInit(){this.nzAutoFocus&&this.focus();}setupClickListener(){St(this.elementRef.nativeElement,"click").pipe(ue(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=true,this.onChange(true)),this.cdr.markForCheck();});});}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=QE({type:t,selectors:[["","nz-radio",""],["","nz-radio-button",""]],viewQuery:function(i,n){if(i&1&&Ih(Sa,7),i&2){let o;qD(o=WD())&&(n.inputElement=o.first);}},hostVars:18,hostBindings:function(i,n){i&2&&Mh("ant-radio-wrapper-in-form-item",!!n.nzFormStatusService)("ant-radio-wrapper",!n.isRadioButton)("ant-radio-button-wrapper",n.isRadioButton)("ant-radio-wrapper-checked",n.isChecked&&!n.isRadioButton)("ant-radio-button-wrapper-checked",n.isChecked&&n.isRadioButton)("ant-radio-wrapper-disabled",n.nzDisabled&&!n.isRadioButton)("ant-radio-button-wrapper-disabled",n.nzDisabled&&n.isRadioButton)("ant-radio-wrapper-rtl",!n.isRadioButton&&n.dir()==="rtl")("ant-radio-button-wrapper-rtl",n.isRadioButton&&n.dir()==="rtl");},inputs:{nzValue:"nzValue",nzDisabled:[2,"nzDisabled","nzDisabled",Z0],nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",Z0],isRadioButton:[2,"nz-radio-button","isRadioButton",Z0]},exportAs:["nzRadio"],features:[Sw([{provide:Bt,useExisting:wo$1(()=>t),multi:true}])],ngContentSelectors:_a,decls:6,vars:24,consts:[["inputElement",""],["type","radio",3,"disabled","checked"]],template:function(i,n){i&1&&(BD(),Jc(0,"span"),uh(1,"input",1,0)(3,"span"),Xc(),Jc(4,"span"),$D(5),Xc()),i&2&&(Mh("ant-radio",!n.isRadioButton)("ant-radio-checked",n.isChecked&&!n.isRadioButton)("ant-radio-disabled",n.nzDisabled&&!n.isRadioButton)("ant-radio-button",n.isRadioButton)("ant-radio-button-checked",n.isChecked&&n.isRadioButton)("ant-radio-button-disabled",n.nzDisabled&&n.isRadioButton),gI(),Mh("ant-radio-input",!n.isRadioButton)("ant-radio-button-input",n.isRadioButton),ph("disabled",n.nzDisabled)("checked",n.isChecked),ah("autofocus",n.nzAutoFocus?"autofocus":null)("name",n.name),gI(2),Mh("ant-radio-inner",!n.isRadioButton)("ant-radio-button-inner",n.isRadioButton));},encapsulation:2})}return t})();var ya=(()=>{class t{create(e){return typeof ResizeObserver>"u"?null:new ResizeObserver(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=ie({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),_n=(()=>{class t{nzResizeObserverFactory=C(ya);destroyRef=C(at);observedElements=new Map;constructor(){this.destroyRef.onDestroy(()=>this.observedElements.forEach((e,i)=>this.cleanupObserver(i)));}observe(e){let i=Ut(e);return new S(n=>{let l=this.observeElement(i).subscribe(n);return ()=>{l.unsubscribe(),this.unobserveElement(i);}})}observeElement(e){if(this.observedElements.has(e))this.observedElements.get(e).count++;else {let i=new re,n=this.nzResizeObserverFactory.create(o=>i.next(o));n&&n.observe(e),this.observedElements.set(e,{observer:n,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:n}=this.observedElements.get(e);i&&i.disconnect(),n.complete(),this.observedElements.delete(e);}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=ie({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ta=["*"];function xa(t,a){t&1&&(_i(0,"span",2),lh(1,"i",3)(2,"i",3)(3,"i",3)(4,"i",3),Kc());}function wa(t,a){}function Ma(t,a){if(t&1&&(_i(0,"div",6),vw(1),Kc()),t&2){let e=VD(2);gI(),Ph(e.nzTip);}}function Oa(t,a){if(t&1&&(_i(0,"div")(1,"div",4),nh(2,wa,0,0,"ng-template",5),bD(3,Ma,2,1,"div",6),Kc()()),t&2){let e=VD(),i=zD(1);gI(),Mh("ant-spin-rtl",e.dir()==="rtl")("ant-spin-lg",e.nzSize==="large")("ant-spin-sm",e.nzSize==="small")("ant-spin-show-text",e.nzTip),gI(),ch("ngTemplateOutlet",e.nzIndicator||i),gI(),_D(e.nzTip?3:-1);}}function Da(t,a){if(t&1&&(_i(0,"div",7),$D(1),Kc()),t&2){let e=VD();Mh("ant-spin-blur",e.isLoading());}}var $i="spin",Vi=(()=>{let t,a=[],e=[];return class Sn{static{let n=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[ut$1()],pT(null,null,t,{kind:"field",name:"nzIndicator",static:false,private:false,access:{has:o=>"nzIndicator"in o,get:o=>o.nzIndicator,set:(o,l)=>{o.nzIndicator=l;}},metadata:n},a,e),n&&Object.defineProperty(this,Symbol.metadata,{enumerable:true,configurable:true,writable:true,value:n});}_nzModuleName=$i;cdr=C(z0);dir=C(Ie$1).valueSignal;destroyRef=C(at);nzIndicator=hT(this,a,null);nzSize=(hT(this,e),"default");nzTip=null;nzDelay=0;nzSimple=false;nzSpinning=true;spinning$=new On(this.nzSpinning);delay$=new Ln(1);isLoading=qo$1(false);constructor(){Vt($i,()=>this.cdr.markForCheck());}ngOnInit(){this.delay$.pipe(Gl$1(this.nzDelay),Kg(),Ml$1(n=>this.spinning$.pipe(Ml$1(o=>n===0||!o?Dg(o):new S(l=>{let f=setTimeout(()=>l.next(o),n);return ()=>clearTimeout(f)})))),ue(this.destroyRef)).subscribe(n=>{this.isLoading.set(n);});}ngOnChanges(n){let{nzSpinning:o,nzDelay:l}=n;o&&this.spinning$.next(this.nzSpinning),l&&this.delay$.next(this.nzDelay);}static \u0275fac=function(o){return new(o||Sn)};static \u0275cmp=QE({type:Sn,selectors:[["nz-spin"]],hostVars:2,hostBindings:function(o,l){o&2&&Mh("ant-spin-nested-loading",!l.nzSimple);},inputs:{nzIndicator:"nzIndicator",nzSize:"nzSize",nzTip:"nzTip",nzDelay:[2,"nzDelay","nzDelay",Y0],nzSimple:[2,"nzSimple","nzSimple",Z0],nzSpinning:[2,"nzSpinning","nzSpinning",Z0]},exportAs:["nzSpin"],features:[ly],ngContentSelectors:Ta,decls:4,vars:2,consts:[["defaultTemplate",""],[1,"ant-spin-container",3,"ant-spin-blur"],[1,"ant-spin-dot","ant-spin-dot-spin"],[1,"ant-spin-dot-item"],[1,"ant-spin","ant-spin-spinning"],[3,"ngTemplateOutlet"],[1,"ant-spin-text"],[1,"ant-spin-container"]],template:function(o,l){o&1&&(BD(),nh(0,xa,5,0,"ng-template",null,0,Lw),bD(2,Oa,4,10,"div"),bD(3,Da,2,2,"div",1)),o&2&&(gI(2),_D(l.isLoading()?2:-1),gI(),_D(l.nzSimple?-1:3));},dependencies:[es$1],encapsulation:2})}})();var Qe=["*"],Na=(t,a)=>a.value;function ka(t,a){}function Ia(t,a){if(t&1){let e=LD();_i(0,"label",14),gh("ngModelChange",function(){Pu(e);let n=VD().$implicit,o=VD(2);return Lu(o.check(n))}),Kc(),oE();}if(t&2){let e=VD().$implicit;ch("ngModel",e.checked),sE();}}function Pa(t,a){if(t&1){let e=LD();_i(0,"label",15),gh("ngModelChange",function(){Pu(e);let n=VD().$implicit,o=VD(2);return Lu(o.check(n))}),Kc(),oE();}if(t&2){let e=VD().$implicit;ch("ngModel",e.checked),sE();}}function Fa(t,a){if(t&1){let e=LD();_i(0,"li",11),gh("click",function(){let n=Pu(e).$implicit,o=VD(2);return Lu(o.check(n))}),bD(1,Ia,1,1,"label",12)(2,Pa,1,1,"label",13),_i(3,"span"),vw(4),Kc()();}if(t&2){let e=a.$implicit,i=VD(2);ch("nzSelected",e.checked),gI(),_D(i.filterMultiple?2:1),gI(3),Ph(e.text);}}function Ra(t,a){if(t&1){let e=LD();_i(0,"nz-filter-trigger",3),gh("nzVisibleChange",function(n){Pu(e);let o=VD();return Lu(o.onVisibleChange(n))}),lh(1,"nz-icon",4),Kc(),_i(2,"nz-dropdown-menu",null,0)(4,"div",5)(5,"ul",6),ND(6,Fa,5,3,"li",7,Na),Kc(),_i(8,"div",8)(9,"button",9),gh("click",function(){Pu(e);let n=VD();return Lu(n.reset())}),vw(10),Kc(),_i(11,"button",10),gh("click",function(){Pu(e);let n=VD();return Lu(n.confirm())}),vw(12),Kc()()()();}if(t&2){let e=zD(3),i=VD();ch("nzVisible",i.isVisible)("nzActive",i.isChecked)("nzDropdownMenu",e),gI(6),xD(i.listOfParsedFilter),gI(3),ch("disabled",!i.isChecked),gI(),nl$1(" ",i.locale.filterReset," "),gI(2),Ph(i.locale.filterConfirm);}}function Ea(t,a){if(t&1&&fh(0,2),t&2){let e=VD();ch("ngTemplateOutlet",e.extraTemplate);}}function $a(t,a){if(t&1){let e=LD();_i(0,"label",3),gh("ngModelChange",function(n){Pu(e);let o=VD();return Lu(o.onCheckedChange(n))}),Kc(),oE();}if(t&2){let e=VD();Mh("ant-table-selection-select-all-custom",e.showRowSelection),ch("ngModel",e.checked)("nzDisabled",e.disabled)("nzIndeterminate",e.indeterminate),ah("aria-label",e.label),sE();}}function Va(t,a){if(t&1){let e=LD();_i(0,"li",8),gh("click",function(){let n=Pu(e).$implicit;return Lu(n.onSelect())}),vw(1),Kc();}if(t&2){let e=a.$implicit;gI(),nl$1(" ",e.text," ");}}function Aa(t,a){if(t&1&&(_i(0,"div",2)(1,"span",4),lh(2,"nz-icon",5),Kc(),_i(3,"nz-dropdown-menu",null,0)(5,"ul",6),ND(6,Va,2,1,"li",7,SD),Kc()()()),t&2){let e=zD(4),i=VD();gI(),ch("nzDropdownMenu",e),gI(5),xD(i.listOfSelections);}}function Ba(t,a){}function La(t,a){if(t&1&&lh(0,"nz-icon",6),t&2){let e=VD();Mh("active",e.sortOrder==="ascend");}}function Wa(t,a){if(t&1&&lh(0,"nz-icon",7),t&2){let e=VD();Mh("active",e.sortOrder==="descend");}}function ja(t,a){}function Qa(t,a){if(t&1&&nh(0,ja,0,0,"ng-template",2),t&2){let e=VD(2);ch("ngTemplateOutlet",e.nzExpandIcon);}}function Ha(t,a){if(t&1){let e=LD();_i(0,"button",4),gh("expandChange",function(n){Pu(e);let o=VD(2);return Lu(o.onExpandChange(n))}),Kc();}if(t&2){let e=VD(2);ch("expand",e.nzExpand)("spaceMode",!e.nzShowExpand);}}function Xa(t,a){if(t&1&&(lh(0,"nz-row-indent",1),bD(1,Qa,1,1,null,2)(2,Ha,1,2,"button",3)),t&2){let e=VD();ch("indentSize",e.nzIndentSize),gI(),_D(e.nzExpandIcon?1:2);}}function Ja(t,a){if(t&1){let e=LD();_i(0,"label",5),gh("ngModelChange",function(n){Pu(e);let o=VD();return Lu(o.onCheckedChange(n))}),Kc(),oE();}if(t&2){let e=VD();ch("nzDisabled",e.nzDisabled)("ngModel",e.nzChecked)("nzIndeterminate",e.nzIndeterminate),ah("aria-label",e.nzLabel),sE();}}var Ga=[[["","nz-th-extra",""]],[["nz-filter-trigger"]],"*"],qa=["[nz-th-extra]","nz-filter-trigger","*"];function Ya(t,a){if(t&1){let e=LD();_i(0,"nz-table-filter",6),gh("filterChange",function(n){Pu(e);let o=VD();return Lu(o.onFilterValueChange(n))}),Kc();}if(t&2){let e=VD(),i=zD(3),n=zD(5);ch("contentTemplate",i)("extraTemplate",n)("customFilter",e.nzCustomFilter)("filterMultiple",e.nzFilterMultiple)("listOfFilter",e.nzFilters);}}function Ua(t,a){if(t&1&&fh(0,5),t&2){VD();let e=zD(3);ch("ngTemplateOutlet",e);}}function Za(t,a){}function Ka(t,a){if(t&1&&nh(0,Za,0,0,"ng-template",5),t&2){let e=VD(),i=zD(7),n=zD(9);ch("ngTemplateOutlet",e.nzShowSort?i:n);}}function el(t,a){t&1&&($D(0),$D(1,1));}function tl(t,a){if(t&1&&lh(0,"nz-table-sorters",7),t&2){let e=VD(),i=zD(9);ch("sortOrder",e.sortOrder)("sortDirections",e.sortDirections)("contentTemplate",i);}}function nl(t,a){t&1&&$D(0,2);}function il(t,a){if(t&1&&lh(0,"col"),t&2){let e=a.$implicit;_h("width",e)("min-width",e);}}function ol(t,a){if(t&1&&(_i(0,"colgroup"),ND(1,il,1,4,"col",3,MD),Kc()),t&2){let e=VD();gI(),xD(e.listOfColWidth);}}function al(t,a){}function ll(t,a){if(t&1&&(_i(0,"thead",0),nh(1,al,0,0,"ng-template",1),Kc()),t&2){let e=VD();gI(),ch("ngTemplateOutlet",e.theadTemplate);}}function sl(t,a){}function rl(t,a){}function dl(t,a){if(t&1&&(_i(0,"tfoot",2),nh(1,rl,0,0,"ng-template",1),Kc()),t&2){let e=VD();gI(),ch("ngTemplateOutlet",e.tfootTemplate);}}var Bi=["tdElement"];function cl(t,a){}function pl(t,a){if(t&1&&(_i(0,"div",5),Rw(1,"async"),nh(2,cl,0,0,"ng-template",4),Kc()),t&2){let e=VD(),i=zD(6);_h("width",Ow(1,3,e.hostWidth$),"px"),gI(2),ch("ngTemplateOutlet",i);}}function ul(t,a){}function ml(t,a){if(t&1&&nh(0,ul,0,0,"ng-template",4),t&2){VD();let e=zD(6);ch("ngTemplateOutlet",e);}}function hl(t,a){t&1&&$D(0);}function fl(t,a){t&1&&uh(0,"td",1,0);}function zl(t,a){if(t&1){let e=LD();_i(0,"tr",2),gh("listOfAutoWidth",function(n){Pu(e);let o=VD(2);return Lu(o.onListOfAutoWidthChange(n))}),Kc();}if(t&2){let e=VD();ch("listOfMeasureColumn",e);}}function gl(t,a){if(t&1&&bD(0,zl,1,1,"tr",1),t&2){let e=VD();_D(e.isInsideTable&&a.length?0:-1);}}function Cl(t,a){if(t&1&&(_i(0,"tr",0),lh(1,"nz-embed-empty",3),Rw(2,"async"),Kc()),t&2){let e=VD();gI(),ch("specificContent",Ow(2,1,e.noResult$));}}var bl=["tableHeaderElement"],_l=["tableBodyElement"],Sl=["tableFootElement"],vl=(t,a)=>({$implicit:t,index:a});function yl(t,a){if(t&1&&(_i(0,"div",9,1),lh(2,"table",10),Kc()),t&2){let e=VD(2);sw(e.bodyStyleMap),gI(2),ch("scrollX",e.scrollX)("listOfColWidth",e.listOfColWidth)("contentTemplate",e.contentTemplate);}}function Tl(t,a){}function xl(t,a){if(t&1&&(el$1(0),nh(1,Tl,0,0,"ng-template",14),tl$1()),t&2){let e=a.$implicit,i=a.index,n=VD(3);gI(),ch("ngTemplateOutlet",n.virtualTemplate)("ngTemplateOutletContext",Aw(2,vl,e,i));}}function wl(t,a){if(t&1&&(_i(0,"cdk-virtual-scroll-viewport",11,1)(2,"table",12)(3,"tbody"),nh(4,xl,2,5,"ng-container",13),Kc()()()),t&2){let e=VD(2);_h("height",e.data.length?e.scrollY:e.noDataVirtualHeight),ch("itemSize",e.virtualItemSize)("maxBufferPx",e.virtualMaxBufferPx)("minBufferPx",e.virtualMinBufferPx),gI(2),ch("scrollX",e.scrollX)("listOfColWidth",e.listOfColWidth),gI(2),ch("cdkVirtualForOf",e.data)("cdkVirtualForTrackBy",e.virtualForTrackBy);}}function Ml(t,a){if(t&1&&(_i(0,"div",15,2),lh(2,"table",16),Kc()),t&2){let e=VD(2);sw(e.headerStyleMap),gI(2),ch("scrollX",e.scrollX)("listOfColWidth",e.listOfColWidth)("tfootTemplate",e.tfootTemplate);}}function Ol(t,a){if(t&1&&(_i(0,"div",4,0),lh(2,"table",5),Kc(),bD(3,yl,3,5,"div",6)(4,wl,5,9,"cdk-virtual-scroll-viewport",7),bD(5,Ml,3,5,"div",8)),t&2){let e=VD();sw(e.headerStyleMap),gI(2),ch("scrollX",e.scrollX)("listOfColWidth",e.listOfColWidth)("theadTemplate",e.theadTemplate)("tfootTemplate",e.tfootFixed==="top"?e.tfootTemplate:null),gI(),_D(e.virtualTemplate?4:3),gI(2),_D(e.tfootFixed==="bottom"?5:-1);}}function Dl(t,a){if(t&1&&(_i(0,"div",17,1),lh(2,"table",18),Kc()),t&2){let e=VD();sw(e.bodyStyleMap),gI(2),ch("scrollX",e.scrollX)("listOfColWidth",e.listOfColWidth)("theadTemplate",e.theadTemplate)("contentTemplate",e.contentTemplate)("tfootTemplate",e.tfootTemplate);}}function Nl(t,a){if(t&1&&(el$1(0),vw(1),tl$1()),t&2){let e=VD();gI(),Ph(e.title);}}function kl(t,a){if(t&1&&(el$1(0),vw(1),tl$1()),t&2){let e=VD();gI(),Ph(e.footer);}}function Il(t,a){}function Pl(t,a){if(t&1&&nh(0,Il,0,0,"ng-template",4),t&2){VD();let e=zD(10);ch("ngTemplateOutlet",e);}}function Fl(t,a){if(t&1&&lh(0,"nz-table-title-footer",6),t&2){let e=VD();ch("title",e.nzTitle);}}function Rl(t,a){if(t&1&&lh(0,"nz-table-inner-scroll",7),t&2){let e=VD(),i=zD(3),n=zD(12);ch("data",e.data)("scrollX",e.scrollX)("scrollY",e.scrollY)("contentTemplate",n)("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",i)("virtualForTrackBy",e.nzVirtualForTrackBy)("noDataVirtualHeight",e.noDataVirtualHeight);}}function El(t,a){if(t&1&&lh(0,"nz-table-inner-default",8),t&2){let e=VD(),i=zD(12);ch("tableLayout",e.nzTableLayout)("listOfColWidth",e.listOfManualColWidth)("theadTemplate",e.theadTemplate)("contentTemplate",i)("tfootTemplate",e.tfootTemplate);}}function $l(t,a){if(t&1&&lh(0,"nz-table-title-footer",9),t&2){let e=VD();ch("footer",e.nzFooter);}}function Vl(t,a){}function Al(t,a){if(t&1&&nh(0,Vl,0,0,"ng-template",4),t&2){VD();let e=zD(10);ch("ngTemplateOutlet",e);}}function Bl(t,a){if(t&1){let e=LD();_i(0,"nz-pagination",11),gh("nzPageSizeChange",function(n){Pu(e);let o=VD(2);return Lu(o.onPageSizeChange(n))})("nzPageIndexChange",function(n){Pu(e);let o=VD(2);return Lu(o.onPageIndexChange(n))}),Kc();}if(t&2){let e=VD(2);ch("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 Ll(t,a){if(t&1&&bD(0,Bl,1,12,"nz-pagination",10),t&2){let e=VD();_D(e.nzShowPagination&&e.data.length?0:-1);}}function Wl(t,a){t&1&&$D(0);}var jl=["contentTemplate"];function Ql(t,a){t&1&&$D(0);}function Hl(t,a){}function Xl(t,a){if(t&1&&nh(0,Hl,0,0,"ng-template",1),t&2){VD();let e=zD(1);ch("ngTemplateOutlet",e);}}var Jl="filterTrigger",Li=(()=>{let t,a=[],e=[];return class vn{static{let n=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[ut$1()],pT(null,null,t,{kind:"field",name:"nzBackdrop",static:false,private:false,access:{has:o=>"nzBackdrop"in o,get:o=>o.nzBackdrop,set:(o,l)=>{o.nzBackdrop=l;}},metadata:n},a,e),n&&Object.defineProperty(this,Symbol.metadata,{enumerable:true,configurable:true,writable:true,value:n});}_nzModuleName=Jl;nzConfigService=C(kt);cdr=C(z0);destroyRef=C(at);nzActive=false;nzDropdownMenu;nzVisible=false;nzBackdrop=hT(this,a,false);nzVisibleChange=(hT(this,e),new Le);nzDropdown;onVisibleChange(n){this.nzVisible=n,this.nzVisibleChange.next(n);}hide(){this.nzVisible=false,this.cdr.markForCheck();}show(){this.nzVisible=true,this.cdr.markForCheck();}ngOnInit(){St(this.nzDropdown.nativeElement,"click").pipe(ue(this.destroyRef)).subscribe(n=>n.stopPropagation());}static \u0275fac=function(o){return new(o||vn)};static \u0275cmp=QE({type:vn,selectors:[["nz-filter-trigger"]],viewQuery:function(o,l){if(o&1&&Ih(xt,7,_r),o&2){let f;qD(f=WD())&&(l.nzDropdown=f.first);}},inputs:{nzActive:"nzActive",nzDropdownMenu:"nzDropdownMenu",nzVisible:"nzVisible",nzBackdrop:[2,"nzBackdrop","nzBackdrop",Z0]},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzFilterTrigger"],ngContentSelectors:Qe,decls:2,vars:8,consts:[["nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",1,"ant-table-filter-trigger",3,"nzVisibleChange","nzBackdrop","nzClickHide","nzDropdownMenu","nzVisible"]],template:function(o,l){o&1&&(BD(),_i(0,"span",0),gh("nzVisibleChange",function(b){return l.onVisibleChange(b)}),$D(1),Kc()),o&2&&(Mh("active",l.nzActive)("ant-table-filter-open",l.nzVisible),ch("nzBackdrop",l.nzBackdrop)("nzClickHide",false)("nzDropdownMenu",l.nzDropdownMenu)("nzVisible",l.nzVisible));},dependencies:[Qt,xt],encapsulation:2})}})(),Wi=(()=>{class t{cdr=C(z0);i18n=C(Sn);destroyRef=C(at);contentTemplate=null;customFilter=false;extraTemplate=null;filterMultiple=true;listOfFilter=[];filterChange=new Le;locale;isChecked=false;isVisible=false;listOfParsedFilter=[];listOfChecked=[];check(e){this.filterMultiple?(this.listOfParsedFilter=this.listOfParsedFilter.map(i=>i===e?s(r({},i),{checked:!e.checked}):i),e.checked=!e.checked):this.listOfParsedFilter=this.listOfParsedFilter.map(i=>s(r({},i),{checked:i===e})),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter);}confirm(){this.isVisible=false,this.emitFilterData();}reset(){this.isVisible=false,this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter,true),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter),this.emitFilterData();}onVisibleChange(e){this.isVisible=e,e?this.listOfChecked=this.listOfParsedFilter.filter(i=>i.checked).map(i=>i.value):this.emitFilterData();}emitFilterData(){let e=this.listOfParsedFilter.filter(i=>i.checked).map(i=>i.value);l9(this.listOfChecked,e)||(this.filterMultiple?this.filterChange.emit(e):this.filterChange.emit(e.length>0?e[0]:null));}parseListOfFilter(e,i){return e.map(n=>{let o=i?false:!!n.byDefault;return {text:n.text,value:n.value,checked:o}})}getCheckedStatus(e){return e.some(i=>i.checked)}ngOnInit(){this.i18n.localeChange.pipe(ue(this.destroyRef)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Table"),this.cdr.markForCheck();});}ngOnChanges(e){let{listOfFilter:i}=e;i&&this.listOfFilter&&this.listOfFilter.length&&(this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter));}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=QE({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:[ly],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(i,n){i&1&&(_i(0,"span",1),nh(1,ka,0,0,"ng-template",2),Kc(),bD(2,Ra,13,6)(3,Ea,1,1,"ng-container",2)),i&2&&(gI(),ch("ngTemplateOutlet",n.contentTemplate),gI(),_D(n.customFilter?3:2));},dependencies:[es$1,Li,pt,Se$1,Qt,gn,Tt,bn,Ei,Lt,ut,o8,e8,T3,vd,Cc,r7,w7],encapsulation:2})}return t})(),Gl=(()=>{class t{expand=false;spaceMode=false;expandChange=new Le;onHostClick(){this.spaceMode||(this.expand=!this.expand,this.expandChange.next(this.expand));}static \u0275fac=function(i){return new(i||t)};static \u0275dir=XE({type:t,selectors:[["button","nz-row-expand-button",""]],hostAttrs:[1,"ant-table-row-expand-icon"],hostVars:7,hostBindings:function(i,n){i&1&&gh("click",function(){return n.onHostClick()}),i&2&&(ph("type","button"),Mh("ant-table-row-expand-icon-expanded",!n.spaceMode&&n.expand===true)("ant-table-row-expand-icon-collapsed",!n.spaceMode&&n.expand===false)("ant-table-row-expand-icon-spaced",n.spaceMode));},inputs:{expand:"expand",spaceMode:"spaceMode"},outputs:{expandChange:"expandChange"}})}return t})(),ql=(()=>{class t{indentSize=0;static \u0275fac=function(i){return new(i||t)};static \u0275dir=XE({type:t,selectors:[["nz-row-indent"]],hostAttrs:[1,"ant-table-row-indent"],hostVars:2,hostBindings:function(i,n){i&2&&_h("padding-left",n.indentSize,"px");},inputs:{indentSize:"indentSize"}})}return t})(),ji=(()=>{class t{listOfSelections=[];checked=false;disabled=false;indeterminate=false;label=null;showCheckbox=false;showRowSelection=false;checkedChange=new Le;onCheckedChange(e){this.checked=e,this.checkedChange.emit(e);}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=QE({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(i,n){i&1&&(bD(0,$a,1,6,"label",1),bD(1,Aa,8,1,"div",2)),i&2&&(_D(n.showCheckbox?0:-1),gI(),_D(n.showRowSelection?1:-1));},dependencies:[o8,e8,T3,Lt,ut,Qt,gn,Tt,xt,bn,pt,Se$1],encapsulation:2})}return t})(),Qi=(()=>{class t{sortDirections=["ascend","descend",null];sortOrder=null;contentTemplate=null;isUp=false;isDown=false;ngOnChanges(e){let{sortDirections:i}=e;i&&(this.isUp=this.sortDirections.indexOf("ascend")!==-1,this.isDown=this.sortDirections.indexOf("descend")!==-1);}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=QE({type:t,selectors:[["nz-table-sorters"]],hostAttrs:[1,"ant-table-column-sorters"],inputs:{sortDirections:"sortDirections",sortOrder:"sortOrder",contentTemplate:"contentTemplate"},features:[ly],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(i,n){i&1&&(_i(0,"span",0),nh(1,Ba,0,0,"ng-template",1),Kc(),_i(2,"span",2)(3,"span",3),bD(4,La,1,2,"nz-icon",4),bD(5,Wa,1,2,"nz-icon",5),Kc()()),i&2&&(gI(),ch("ngTemplateOutlet",n.contentTemplate),gI(),Mh("ant-table-column-sorter-full",n.isDown&&n.isUp),gI(2),_D(n.isUp?4:-1),gI(),_D(n.isDown?5:-1));},dependencies:[pt,Se$1,es$1],encapsulation:2})}return t})(),Yl=(()=>{class t{renderer=C(XI);el=C(_r).nativeElement;nzRight=false;nzLeft=false;colspan=null;colSpan=null;changes$=new re;isAutoLeft=false;isAutoRight=false;isFixedLeft=false;isFixedRight=false;isFixed=false;setAutoLeftWidth(e){this.renderer.setStyle(this.el,"left",e);}setAutoRightWidth(e){this.renderer.setStyle(this.el,"right",e);}setIsFirstRight(e){this.setFixClass(e,"ant-table-cell-fix-right-first");}setIsLastLeft(e){this.setFixClass(e,"ant-table-cell-fix-left-last");}setFixClass(e,i){this.renderer.removeClass(this.el,i),e&&this.renderer.addClass(this.el,i);}ngOnChanges(){this.setIsFirstRight(false),this.setIsLastLeft(false),this.isAutoLeft=this.nzLeft===""||this.nzLeft===true,this.isAutoRight=this.nzRight===""||this.nzRight===true,this.isFixedLeft=this.nzLeft!==false,this.isFixedRight=this.nzRight!==false,this.isFixed=this.isFixedLeft||this.isFixedRight;let e=i=>typeof i=="string"&&i!==""?i:null;this.setAutoLeftWidth(e(this.nzLeft)),this.setAutoRightWidth(e(this.nzRight)),this.changes$.next();}static \u0275fac=function(i){return new(i||t)};static \u0275dir=XE({type:t,selectors:[["td","nzRight",""],["th","nzRight",""],["td","nzLeft",""],["th","nzLeft",""]],hostVars:6,hostBindings:function(i,n){i&2&&(_h("position",n.isFixed?"sticky":null),Mh("ant-table-cell-fix-right",n.isFixedRight)("ant-table-cell-fix-left",n.isFixedLeft));},inputs:{nzRight:"nzRight",nzLeft:"nzLeft",colspan:"colspan",colSpan:"colSpan"},features:[ly]})}return t})(),Ke=(()=>{class t{theadTemplate$=new Ln(1);tfootTemplate$=new Ln(1);tfootFixed$=new Ln(1);hasFixLeft$=new Ln(1);hasFixRight$=new Ln(1);hostWidth$=new Ln(1);columnCount$=new Ln(1);showEmpty$=new Ln(1);noResult$=new Ln(1);listOfThWidthConfigPx$=new On([]);tableWidthConfigPx$=new On([]);manualWidthConfigPx$=Fg([this.tableWidthConfigPx$,this.listOfThWidthConfigPx$]).pipe(Se(([e,i])=>e.length?e:i));listOfAutoWidthPx$=new Ln(1);listOfListOfThWidthPx$=zg(this.manualWidthConfigPx$,Fg([this.listOfAutoWidthPx$,this.manualWidthConfigPx$]).pipe(Se(([e,i])=>e.length===i.length?e.map((n,o)=>n==="0px"?i[o]||null:i[o]||n):i)));listOfMeasureColumn$=new Ln(1);listOfListOfThWidth$=this.listOfAutoWidthPx$.pipe(Se(e=>e.map(i=>parseInt(i,10))));enableAutoMeasure$=new Ln(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 i=0;e.forEach(o=>{i+=o.colspan&&+o.colspan||o.colSpan&&+o.colSpan||1;});let n=e.map(o=>o.nzWidth);this.columnCount$.next(i),this.listOfThWidthConfigPx$.next(n);}setListOfMeasureColumn(e){let i=[];e.forEach(n=>{let o=n.colspan&&+n.colspan||n.colSpan&&+n.colSpan||1;for(let l=0;l<o;l++)i.push(`measure_key_${l}`);}),this.listOfMeasureColumn$.next(i);}setListOfAutoWidth(e){this.listOfAutoWidthPx$.next(e.map(i=>`${i}px`));}setShowEmpty(e){this.showEmpty$.next(e);}setNoResult(e){this.noResult$.next(e);}setScroll(e,i){let n=!!(e||i);n||this.setListOfAutoWidth([]),this.enableAutoMeasure$.next(n);}static \u0275fac=function(i){return new(i||t)};static \u0275prov=ie({token:t,factory:t.\u0275fac})}return t})(),dc=(()=>{class t{isInsideTable=!!C(Ke,{optional:true});static \u0275fac=function(i){return new(i||t)};static \u0275dir=XE({type:t,selectors:[["th",9,"nz-disable-th"],["td",9,"nz-disable-td"]],hostVars:2,hostBindings:function(i,n){i&2&&Mh("ant-table-cell",n.isInsideTable);}})}return t})(),yn=(()=>{class t{destroyRef=C(at);pageIndex$=new On(1);frontPagination$=new On(true);pageSize$=new On(10);listOfData$=new On([]);listOfCustomColumn$=new On([]);pageIndexDistinct$=this.pageIndex$.pipe(Kg());pageSizeDistinct$=this.pageSize$.pipe(Kg());listOfCalcOperator$=new On([]);queryParams$=Fg([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfCalcOperator$]).pipe(Vl$1(0),om(1),Se(([e,i,n])=>({pageIndex:e,pageSize:i,sort:n.filter(o=>o.sortFn).map(o=>({key:o.key,value:o.sortOrder})),filter:n.filter(o=>o.filterFn).map(o=>({key:o.key,value:o.filterValue}))})));listOfDataAfterCalc$=Fg([this.listOfData$,this.listOfCalcOperator$]).pipe(Se(([e,i])=>{let n=[...e],o=i.filter(f=>{let{filterValue:b,filterFn:P}=f;return !(b==null||Array.isArray(b)&&b.length===0)&&typeof P=="function"});for(let f of o){let{filterFn:b,filterValue:P}=f;n=n.filter($=>b(P,$));}let l=i.filter(f=>f.sortOrder!==null&&typeof f.sortFn=="function").sort((f,b)=>+b.sortPriority-+f.sortPriority);return i.length&&n.sort((f,b)=>{for(let P of l){let{sortFn:$,sortOrder:X}=P;if($&&X){let K=$(f,b,X);if(K!==0)return X==="ascend"?K:-K}}return 0}),n}));listOfFrontEndCurrentPageData$=Fg([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfDataAfterCalc$]).pipe(ue(this.destroyRef),on(e=>{let[i,n,o]=e,l=n>0&&Math.ceil(o.length/n)||1;return i<=l}),Se(([e,i,n])=>i>0?n.slice((e-1)*i,e*i):n));listOfCurrentPageData$=this.frontPagination$.pipe(Ml$1(e=>e?this.listOfFrontEndCurrentPageData$:this.listOfDataAfterCalc$));total$=this.frontPagination$.pipe(Ml$1(e=>e?this.listOfDataAfterCalc$:this.listOfData$),Se(e=>e.length),Kg());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(i){return new(i||t)};static \u0275prov=ie({token:t,factory:t.\u0275fac})}return t})();var Ul=(()=>{class t{nzChecked=false;nzDisabled=false;nzIndeterminate=false;nzLabel=null;nzIndentSize=0;nzShowExpand=false;nzShowCheckbox=false;nzExpand=false;nzExpandIcon=null;nzCheckedChange=new Le;nzExpandChange=new Le;isNzShowExpandChanged=false;isNzShowCheckboxChanged=false;onCheckedChange(e){this.nzChecked=e,this.nzCheckedChange.emit(e);}onExpandChange(e){this.nzExpand=e,this.nzExpandChange.emit(e);}ngOnChanges(e){let i=b=>b&&b.firstChange&&b.currentValue!==void 0,{nzExpand:n,nzChecked:o,nzShowExpand:l,nzShowCheckbox:f}=e;l&&(this.isNzShowExpandChanged=true),f&&(this.isNzShowCheckboxChanged=true),i(n)&&!this.isNzShowExpandChanged&&(this.nzShowExpand=true),i(o)&&!this.isNzShowCheckboxChanged&&(this.nzShowCheckbox=true);}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=QE({type:t,selectors:[["td","nzChecked",""],["td","nzDisabled",""],["td","nzIndeterminate",""],["td","nzIndentSize",""],["td","nzExpand",""],["td","nzShowExpand",""],["td","nzShowCheckbox",""]],hostVars:4,hostBindings:function(i,n){i&2&&Mh("ant-table-cell-with-append",n.nzShowExpand||n.nzIndentSize>0)("ant-table-selection-column",n.nzShowCheckbox);},inputs:{nzChecked:"nzChecked",nzDisabled:"nzDisabled",nzIndeterminate:"nzIndeterminate",nzLabel:"nzLabel",nzIndentSize:"nzIndentSize",nzShowExpand:[2,"nzShowExpand","nzShowExpand",Z0],nzShowCheckbox:[2,"nzShowCheckbox","nzShowCheckbox",Z0],nzExpand:[2,"nzExpand","nzExpand",Z0],nzExpandIcon:"nzExpandIcon"},outputs:{nzCheckedChange:"nzCheckedChange",nzExpandChange:"nzExpandChange"},features:[ly],ngContentSelectors:Qe,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(i,n){i&1&&(BD(),bD(0,Xa,3,2),bD(1,Ja,1,4,"label",0),$D(2)),i&2&&(_D(n.nzShowExpand||n.nzIndentSize>0?0:-1),gI(),_D(n.nzShowCheckbox?1:-1));},dependencies:[ql,Gl,es$1,Lt,ut,o8,e8,T3],encapsulation:2})}return t})(),Zl="table",Hi=(()=>{let t,a=[],e=[];return class Tn{static{let n=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[ut$1()],pT(null,null,t,{kind:"field",name:"nzSortDirections",static:false,private:false,access:{has:o=>"nzSortDirections"in o,get:o=>o.nzSortDirections,set:(o,l)=>{o.nzSortDirections=l;}},metadata:n},a,e),n&&Object.defineProperty(this,Symbol.metadata,{enumerable:true,configurable:true,writable:true,value:n});}_nzModuleName=Zl;nzConfigService=C(kt);el=C(_r).nativeElement;destroyRef=C(at);cdr=C(z0);ngZone=C(oe);manualClickOrder$=new re;calcOperatorChange$=new re;nzFilterValue=null;sortOrder=null;sortDirections=["ascend","descend",null];sortOrderChange$=new re;isNzShowSortChanged=false;isNzShowFilterChanged=false;nzColumnKey;nzFilterMultiple=true;nzSortOrder=null;nzSortPriority=false;nzSortDirections=hT(this,a,["ascend","descend",null]);nzFilters=(hT(this,e),[]);nzSortFn=null;nzFilterFn=null;nzShowSort=false;nzShowFilter=false;nzCustomFilter=false;nzCheckedChange=new Le;nzSortOrderChange=new Le;nzFilterChange=new Le;getNextSortDirection(n,o){let l=n.indexOf(o);return l===n.length-1?n[0]:n[l+1]}setSortOrder(n){this.sortOrderChange$.next(n);}clearSortOrder(){this.sortOrder!==null&&this.setSortOrder(null);}onFilterValueChange(n){this.nzFilterChange.emit(n),this.nzFilterValue=n,this.updateCalcOperator();}updateCalcOperator(){this.calcOperatorChange$.next();}ngOnInit(){St(this.el,"click").pipe(on(()=>this.nzShowSort),ue(this.destroyRef)).subscribe(()=>{let n=this.getNextSortDirection(this.sortDirections,this.sortOrder);this.ngZone.run(()=>{this.setSortOrder(n),this.manualClickOrder$.next(this);});}),this.sortOrderChange$.pipe(ue(this.destroyRef)).subscribe(n=>{this.sortOrder!==n&&(this.sortOrder=n,this.nzSortOrderChange.emit(n)),this.updateCalcOperator(),this.cdr.markForCheck();});}ngOnChanges(n){let{nzSortDirections:o,nzFilters:l,nzSortOrder:f,nzSortFn:b,nzFilterFn:P,nzSortPriority:$,nzFilterMultiple:X,nzShowSort:K,nzShowFilter:Y}=n;o&&this.nzSortDirections&&this.nzSortDirections.length&&(this.sortDirections=this.nzSortDirections),f&&(this.sortOrder=this.nzSortOrder,this.setSortOrder(this.nzSortOrder)),K&&(this.isNzShowSortChanged=true),Y&&(this.isNzShowFilterChanged=true);let ue=ye=>ye&&ye.firstChange&&ye.currentValue!==void 0;if((ue(f)||ue(b))&&!this.isNzShowSortChanged&&(this.nzShowSort=true),ue(l)&&!this.isNzShowFilterChanged&&(this.nzShowFilter=true),(l||X)&&this.nzShowFilter){let ye=this.nzFilters.filter(T=>T.byDefault).map(T=>T.value);this.nzFilterValue=this.nzFilterMultiple?ye:ye[0]||null;}(b||P||$||l)&&this.updateCalcOperator();}static \u0275fac=function(o){return new(o||Tn)};static \u0275cmp=QE({type:Tn,selectors:[["th","nzColumnKey",""],["th","nzSortFn",""],["th","nzSortOrder",""],["th","nzFilters",""],["th","nzShowSort",""],["th","nzShowFilter",""],["th","nzCustomFilter",""]],hostVars:4,hostBindings:function(o,l){o&2&&Mh("ant-table-column-has-sorters",l.nzShowSort)("ant-table-column-sort",l.sortOrder==="descend"||l.sortOrder==="ascend");},inputs:{nzColumnKey:"nzColumnKey",nzFilterMultiple:"nzFilterMultiple",nzSortOrder:"nzSortOrder",nzSortPriority:"nzSortPriority",nzSortDirections:"nzSortDirections",nzFilters:"nzFilters",nzSortFn:"nzSortFn",nzFilterFn:"nzFilterFn",nzShowSort:[2,"nzShowSort","nzShowSort",Z0],nzShowFilter:[2,"nzShowFilter","nzShowFilter",Z0],nzCustomFilter:[2,"nzCustomFilter","nzCustomFilter",Z0]},outputs:{nzCheckedChange:"nzCheckedChange",nzSortOrderChange:"nzSortOrderChange",nzFilterChange:"nzFilterChange"},features:[ly],ngContentSelectors:qa,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(o,l){o&1&&(BD(Ga),bD(0,Ya,1,5,"nz-table-filter",4)(1,Ua,1,1,"ng-container",5),nh(2,Ka,1,1,"ng-template",null,0,Lw)(4,el,2,0,"ng-template",null,1,Lw)(6,tl,1,3,"ng-template",null,2,Lw)(8,nl,1,0,"ng-template",null,3,Lw)),o&2&&_D(l.nzShowFilter||l.nzCustomFilter?0:1);},dependencies:[Wi,es$1,Qi],encapsulation:2})}})(),Kl=(()=>{class t{renderer=C(XI);el=C(_r).nativeElement;changes$=new re;nzWidth=null;colspan=null;colSpan=null;rowspan=null;rowSpan=null;ngOnChanges(e){let{nzWidth:i,colspan:n,rowspan:o,colSpan:l,rowSpan:f}=e;if(n||l){let b=this.colspan||this.colSpan;s9(b)?this.renderer.removeAttribute(this.el,"colspan"):this.renderer.setAttribute(this.el,"colspan",`${b}`);}if(o||f){let b=this.rowspan||this.rowSpan;s9(b)?this.renderer.removeAttribute(this.el,"rowspan"):this.renderer.setAttribute(this.el,"rowspan",`${b}`);}(i||n)&&this.changes$.next();}static \u0275fac=function(i){return new(i||t)};static \u0275dir=XE({type:t,selectors:[["th"]],inputs:{nzWidth:"nzWidth",colspan:"colspan",colSpan:"colSpan",rowspan:"rowspan",rowSpan:"rowSpan"},features:[ly]})}return t})(),es=(()=>{class t{nzSelections=[];nzChecked=false;nzDisabled=false;nzIndeterminate=false;nzLabel=null;nzShowCheckbox=false;nzShowRowSelection=false;nzCheckedChange=new Le;isNzShowExpandChanged=false;isNzShowCheckboxChanged=false;onCheckedChange(e){this.nzChecked=e,this.nzCheckedChange.emit(e);}ngOnChanges(e){let i=b=>b&&b.firstChange&&b.currentValue!==void 0,{nzChecked:n,nzSelections:o,nzShowExpand:l,nzShowCheckbox:f}=e;l&&(this.isNzShowExpandChanged=true),f&&(this.isNzShowCheckboxChanged=true),i(o)&&!this.isNzShowExpandChanged&&(this.nzShowRowSelection=true),i(n)&&!this.isNzShowCheckboxChanged&&(this.nzShowCheckbox=true);}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=QE({type:t,selectors:[["th","nzSelections",""],["th","nzChecked",""],["th","nzShowCheckbox",""],["th","nzShowRowSelection",""]],hostAttrs:[1,"ant-table-selection-column"],inputs:{nzSelections:"nzSelections",nzChecked:[2,"nzChecked","nzChecked",Z0],nzDisabled:[2,"nzDisabled","nzDisabled",Z0],nzIndeterminate:"nzIndeterminate",nzLabel:"nzLabel",nzShowCheckbox:[2,"nzShowCheckbox","nzShowCheckbox",Z0],nzShowRowSelection:[2,"nzShowRowSelection","nzShowRowSelection",Z0]},outputs:{nzCheckedChange:"nzCheckedChange"},features:[ly],ngContentSelectors:Qe,decls:2,vars:7,consts:[[3,"checkedChange","checked","disabled","indeterminate","label","listOfSelections","showCheckbox","showRowSelection"]],template:function(i,n){i&1&&(BD(),_i(0,"nz-table-selection",0),gh("checkedChange",function(l){return n.onCheckedChange(l)}),Kc(),$D(1)),i&2&&ch("checked",n.nzChecked)("disabled",n.nzDisabled)("indeterminate",n.nzIndeterminate)("label",n.nzLabel)("listOfSelections",n.nzSelections)("showCheckbox",n.nzShowCheckbox)("showRowSelection",n.nzShowRowSelection);},dependencies:[ji],encapsulation:2})}return t})();var Xi=(()=>{class t{tableLayout="auto";theadTemplate=null;contentTemplate=null;tfootTemplate=null;listOfColWidth=[];scrollX=null;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=QE({type:t,selectors:[["table","nz-table-content",""]],hostVars:8,hostBindings:function(i,n){i&2&&(_h("table-layout",n.tableLayout)("width",n.scrollX)("min-width",n.scrollX?"100%":null),Mh("ant-table-fixed",n.scrollX));},inputs:{tableLayout:"tableLayout",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate",tfootTemplate:"tfootTemplate",listOfColWidth:"listOfColWidth",scrollX:"scrollX"},ngContentSelectors:Qe,decls:5,vars:4,consts:[[1,"ant-table-thead"],[3,"ngTemplateOutlet"],[1,"ant-table-summary"],[3,"width","minWidth"]],template:function(i,n){i&1&&(BD(),bD(0,ol,3,0,"colgroup"),bD(1,ll,2,1,"thead",0),nh(2,sl,0,0,"ng-template",1),$D(3),bD(4,dl,2,1,"tfoot",2)),i&2&&(_D(n.listOfColWidth.length>0?0:-1),gI(),_D(n.theadTemplate?1:-1),gI(),ch("ngTemplateOutlet",n.contentTemplate),gI(2),_D(n.tfootTemplate?4:-1));},dependencies:[es$1],encapsulation:2})}return t})(),ts=(()=>{class t{nzTableStyleService=C(Ke);renderer=C(XI);destroyRef=C(at);tdElement;hostWidth$=new On(null);enableAutoMeasure$=new On(false);ngOnInit(){if(this.nzTableStyleService){let{enableAutoMeasure$:e,hostWidth$:i}=this.nzTableStyleService;e.pipe(ue(this.destroyRef)).subscribe(this.enableAutoMeasure$),i.pipe(ue(this.destroyRef)).subscribe(this.hostWidth$);}}ngAfterViewInit(){this.nzTableStyleService.columnCount$.pipe(ue(this.destroyRef)).subscribe(e=>{this.renderer.setAttribute(this.tdElement.nativeElement,"colspan",`${e}`);});}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=QE({type:t,selectors:[["tr","nz-table-fixed-row",""],["tr","nzExpand",""]],viewQuery:function(i,n){if(i&1&&Ih(Bi,7),i&2){let o;qD(o=WD())&&(n.tdElement=o.first);}},ngContentSelectors:Qe,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(i,n){i&1&&(BD(),_i(0,"td",2,0),bD(2,pl,3,5,"div",3),Rw(3,"async"),Yc(4,ml,1,1,null,4),Kc(),nh(5,hl,1,0,"ng-template",null,1,Lw)),i&2&&(gI(2),_D(Ow(3,1,n.enableAutoMeasure$)?2:4));},dependencies:[es$1,is$1],encapsulation:2})}return t})(),ns=(()=>{class t{tableLayout="auto";listOfColWidth=[];theadTemplate=null;contentTemplate=null;tfootTemplate=null;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=QE({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(i,n){i&1&&(_i(0,"div",0),lh(1,"table",1),Kc()),i&2&&(gI(),ch("contentTemplate",n.contentTemplate)("tableLayout",n.tableLayout)("listOfColWidth",n.listOfColWidth)("theadTemplate",n.theadTemplate)("tfootTemplate",n.tfootTemplate));},dependencies:[Xi],encapsulation:2})}return t})(),is=(()=>{class t{nzResizeObserver=C(_n);ngZone=C(oe);destroyRef=C(at);listOfMeasureColumn=[];listOfAutoWidth=new Le;listOfTdElement;ngAfterViewInit(){this.listOfTdElement.changes.pipe(Gl$1(this.listOfTdElement)).pipe(Ml$1(e=>Fg(e.toArray().map(i=>this.nzResizeObserver.observe(i).pipe(Se(([n])=>{let{width:o}=n.target.getBoundingClientRect();return Math.floor(o)}))))),Vl$1(16),ue(this.destroyRef)).subscribe(e=>{this.ngZone instanceof oe&&oe.isInAngularZone()?this.listOfAutoWidth.next(e):this.ngZone.run(()=>this.listOfAutoWidth.next(e));});}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=QE({type:t,selectors:[["tr","nz-table-measure-row",""]],viewQuery:function(i,n){if(i&1&&Ih(Bi,5),i&2){let o;qD(o=WD())&&(n.listOfTdElement=o);}},hostAttrs:[1,"ant-table-measure-now"],inputs:{listOfMeasureColumn:"listOfMeasureColumn"},outputs:{listOfAutoWidth:"listOfAutoWidth"},decls:2,vars:0,consts:[["tdElement",""],[1,"nz-disable-td",2,"padding","0","border","0","height","0"]],template:function(i,n){i&1&&ND(0,fl,2,0,"td",1,MD),i&2&&xD(n.listOfMeasureColumn);},encapsulation:2})}return t})(),Ji=(()=>{class t{showEmpty$=new On(false);noResult$=new On(void 0);listOfMeasureColumn$=new On([]);nzTableStyleService=C(Ke,{optional:true});isInsideTable=!!this.nzTableStyleService;constructor(){if(this.nzTableStyleService){let{showEmpty$:e,noResult$:i,listOfMeasureColumn$:n}=this.nzTableStyleService;i.pipe(ue()).subscribe(this.noResult$),n.pipe(ue()).subscribe(this.listOfMeasureColumn$),e.pipe(ue()).subscribe(this.showEmpty$);}}onListOfAutoWidthChange(e){this.nzTableStyleService?.setListOfAutoWidth(e);}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=QE({type:t,selectors:[["tbody"]],hostVars:2,hostBindings:function(i,n){i&2&&Mh("ant-table-tbody",n.isInsideTable);},ngContentSelectors:Qe,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(i,n){if(i&1&&(BD(),bD(0,gl,1,1),Rw(1,"async"),$D(2),bD(3,Cl,3,3,"tr",0),Rw(4,"async")),i&2){let o;_D((o=Ow(1,2,n.listOfMeasureColumn$))?0:-1,o),gI(3),_D(Ow(4,4,n.showEmpty$)?3:-1);}},dependencies:[is,ts,ji$1,kn,is$1],encapsulation:2})}return t})(),xn=(()=>{class t{renderer=C(XI);ngZone=C(oe);platform=C(J);resizeService=C(R);destroyRef=C(at);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 re;scroll$=new re;setScrollPositionClassName(e=false){let{scrollWidth:i,scrollLeft:n,clientWidth:o}=this.tableBodyElement.nativeElement,l="ant-table-ping-left",f="ant-table-ping-right";i===o&&i!==0||e?(this.renderer.removeClass(this.tableMainElement,l),this.renderer.removeClass(this.tableMainElement,f)):n===0?(this.renderer.removeClass(this.tableMainElement,l),this.renderer.addClass(this.tableMainElement,f)):i===n+o?(this.renderer.removeClass(this.tableMainElement,f),this.renderer.addClass(this.tableMainElement,l)):(this.renderer.addClass(this.tableMainElement,l),this.renderer.addClass(this.tableMainElement,f));}constructor(){this.destroyRef.onDestroy(()=>{this.setScrollPositionClassName(true);});}ngOnChanges(e){let{scrollX:i,scrollY:n,data:o}=e;if(i||n){let l=this.verticalScrollBarWidth!==0;this.headerStyleMap={overflowX:"hidden",overflowY:this.scrollY&&l?"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(Gl$1(null),Yg(0),Ml$1(()=>St(this.tableBodyElement.nativeElement,"scroll").pipe(Gl$1(true)))),i=this.resizeService.connect();zg(e,i,this.data$,this.scroll$).pipe(Gl$1(true),Yg(0),ue(this.destroyRef)).subscribe(()=>this.setScrollPositionClassName()),e.pipe(on(()=>!!this.scrollY)).subscribe(()=>{this.tableHeaderElement.nativeElement.scrollLeft=this.tableBodyElement.nativeElement.scrollLeft,this.tableFootElement&&(this.tableFootElement.nativeElement.scrollLeft=this.tableBodyElement.nativeElement.scrollLeft);});}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=QE({type:t,selectors:[["nz-table-inner-scroll"]],viewQuery:function(i,n){if(i&1&&Ih(bl,5,_r)(_l,5,_r)(Sl,5,_r)(q1,5,q1),i&2){let o;qD(o=WD())&&(n.tableHeaderElement=o.first),qD(o=WD())&&(n.tableBodyElement=o.first),qD(o=WD())&&(n.tableFootElement=o.first),qD(o=WD())&&(n.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:[ly],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(i,n){i&1&&bD(0,Ol,6,8)(1,Dl,3,7,"div",3),i&2&&_D(n.scrollY?0:1);},dependencies:[Xi,ln,rn,an,cn,q1,es$1,Ji],encapsulation:2})}return t})(),os=(()=>{class t{templateRef=C(Er);static ngTemplateContextGuard(e,i){return true}static \u0275fac=function(i){return new(i||t)};static \u0275dir=XE({type:t,selectors:[["","nz-virtual-scroll",""]],exportAs:["nzVirtualScroll"]})}return t})(),Gi=(()=>{class t{title=null;footer=null;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=QE({type:t,selectors:[["nz-table-title-footer"]],hostVars:4,hostBindings:function(i,n){i&2&&Mh("ant-table-title",n.title!==null)("ant-table-footer",n.footer!==null);},inputs:{title:"title",footer:"footer"},decls:2,vars:2,consts:[[4,"nzStringTemplateOutlet"]],template:function(i,n){i&1&&nh(0,Nl,2,1,"ng-container",0)(1,kl,2,1,"ng-container",0),i&2&&(ch("nzStringTemplateOutlet",n.title),gI(),ch("nzStringTemplateOutlet",n.footer));},dependencies:[Tt$1,Ne],encapsulation:2})}return t})(),Ai="table",as=(()=>{let t,a=[],e=[],i,n=[],o=[],l,f=[],b=[],P,$=[],X=[],K,Y=[],ue$1=[],ye,T=[],C$1=[],h,He=[],we=[];return class wn{static{let j=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[ut$1()],i=[ut$1()],l=[ut$1()],P=[ut$1()],K=[ut$1()],ye=[ut$1()],h=[ut$1()],pT(null,null,t,{kind:"field",name:"nzLoadingIndicator",static:false,private:false,access:{has:z=>"nzLoadingIndicator"in z,get:z=>z.nzLoadingIndicator,set:(z,v)=>{z.nzLoadingIndicator=v;}},metadata:j},a,e),pT(null,null,i,{kind:"field",name:"nzBordered",static:false,private:false,access:{has:z=>"nzBordered"in z,get:z=>z.nzBordered,set:(z,v)=>{z.nzBordered=v;}},metadata:j},n,o),pT(null,null,l,{kind:"field",name:"nzSize",static:false,private:false,access:{has:z=>"nzSize"in z,get:z=>z.nzSize,set:(z,v)=>{z.nzSize=v;}},metadata:j},f,b),pT(null,null,P,{kind:"field",name:"nzShowSizeChanger",static:false,private:false,access:{has:z=>"nzShowSizeChanger"in z,get:z=>z.nzShowSizeChanger,set:(z,v)=>{z.nzShowSizeChanger=v;}},metadata:j},$,X),pT(null,null,K,{kind:"field",name:"nzHideOnSinglePage",static:false,private:false,access:{has:z=>"nzHideOnSinglePage"in z,get:z=>z.nzHideOnSinglePage,set:(z,v)=>{z.nzHideOnSinglePage=v;}},metadata:j},Y,ue$1),pT(null,null,ye,{kind:"field",name:"nzShowQuickJumper",static:false,private:false,access:{has:z=>"nzShowQuickJumper"in z,get:z=>z.nzShowQuickJumper,set:(z,v)=>{z.nzShowQuickJumper=v;}},metadata:j},T,C$1),pT(null,null,h,{kind:"field",name:"nzSimple",static:false,private:false,access:{has:z=>"nzSimple"in z,get:z=>z.nzSimple,set:(z,v)=>{z.nzSimple=v;}},metadata:j},He,we),j&&Object.defineProperty(this,Symbol.metadata,{enumerable:true,configurable:true,writable:true,value:j});}_nzModuleName=Ai;elementRef=C(_r);nzResizeObserver=C(_n);cdr=C(z0);nzTableStyleService=C(Ke);nzTableDataService=C(yn);dir=C(Ie$1).valueSignal;destroyRef=C(at);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=j=>j;nzLoadingDelay=0;nzPageIndex=1;nzPageSize=10;nzTotal=0;nzWidthConfig=[];nzData=[];nzCustomColumn=[];nzPaginationPosition="bottom";nzScroll={x:null,y:null};noDataVirtualHeight="182px";nzPaginationType="default";nzFrontPagination=true;nzTemplateMode=false;nzShowPagination=true;nzLoading=false;nzOuterBordered=false;nzLoadingIndicator=hT(this,a,null);nzBordered=(hT(this,e),hT(this,n,false));nzSize=(hT(this,o),hT(this,f,"default"));nzShowSizeChanger=(hT(this,b),hT(this,$,false));nzHideOnSinglePage=(hT(this,X),hT(this,Y,false));nzShowQuickJumper=(hT(this,ue$1),hT(this,T,false));nzSimple=(hT(this,C$1),hT(this,He,false));nzPageSizeChange=(hT(this,we),new Le);nzPageIndexChange=new Le;nzQueryParams=new Le;nzCurrentPageDataChange=new Le;nzCustomColumnChange=new Le;data=[];cdkVirtualScrollViewport;scrollX=null;scrollY=null;theadTemplate=null;tfootTemplate=null;tfootFixed=null;listOfAutoColWidth=[];listOfManualColWidth=[];hasFixLeft=false;hasFixRight=false;showPagination=true;templateMode$=new On(false);nzVirtualScrollDirective;nzTableInnerScrollComponent;verticalScrollBarWidth=0;onPageSizeChange(j){this.nzTableDataService.updatePageSize(j);}onPageIndexChange(j){this.nzTableDataService.updatePageIndex(j);}constructor(){Vt(Ai,()=>this.cdr.markForCheck());}ngOnInit(){let{pageIndexDistinct$:j,pageSizeDistinct$:z,listOfCurrentPageData$:v,total$:Pe,queryParams$:et,listOfCustomColumn$:Ht}=this.nzTableDataService,{theadTemplate$:Xt,tfootTemplate$:Jt,tfootFixed$:Gt,hasFixLeft$:qt,hasFixRight$:qi}=this.nzTableStyleService;et.pipe(ue(this.destroyRef)).subscribe(this.nzQueryParams),j.pipe(ue(this.destroyRef)).subscribe(F=>{F!==this.nzPageIndex&&(this.nzPageIndex=F,this.nzPageIndexChange.next(F));}),z.pipe(ue(this.destroyRef)).subscribe(F=>{F!==this.nzPageSize&&(this.nzPageSize=F,this.nzPageSizeChange.next(F));}),Pe.pipe(ue(this.destroyRef),on(F=>this.nzFrontPagination&&F!==this.nzTotal)).subscribe(F=>{this.nzTotal=F,this.cdr.markForCheck();}),v.pipe(ue(this.destroyRef)).subscribe(F=>{this.data=F,this.nzCurrentPageDataChange.next(F),this.cdr.markForCheck();}),Ht.pipe(ue(this.destroyRef)).subscribe(F=>{this.nzCustomColumn=F,this.nzCustomColumnChange.next(F),this.cdr.markForCheck();}),Xt.pipe(ue(this.destroyRef)).subscribe(F=>{this.theadTemplate=F,this.cdr.markForCheck();}),Fg([Jt,Gt]).pipe(ue(this.destroyRef)).subscribe(([F,Yt])=>{this.tfootTemplate=F,this.tfootFixed=Yt,this.cdr.markForCheck();}),qt.pipe(ue(this.destroyRef)).subscribe(F=>{this.hasFixLeft=F,this.cdr.markForCheck();}),qi.pipe(ue(this.destroyRef)).subscribe(F=>{this.hasFixRight=F,this.cdr.markForCheck();}),Fg([Pe,this.templateMode$]).pipe(Se(([F,Yt])=>F===0&&!Yt),ue(this.destroyRef)).subscribe(F=>{this.nzTableStyleService.setShowEmpty(F);}),this.verticalScrollBarWidth=z9("vertical"),this.nzTableStyleService.listOfListOfThWidthPx$.pipe(ue(this.destroyRef)).subscribe(F=>{this.listOfAutoColWidth=F,this.cdr.markForCheck();}),this.nzTableStyleService.manualWidthConfigPx$.pipe(ue(this.destroyRef)).subscribe(F=>{this.listOfManualColWidth=F,this.cdr.markForCheck();});}ngOnChanges(j){let{nzScroll:z,nzPageIndex:v,nzPageSize:Pe,nzFrontPagination:et,nzData:Ht,nzCustomColumn:Xt,nzWidthConfig:Jt,nzNoResult:Gt,nzTemplateMode:qt}=j;v&&this.nzTableDataService.updatePageIndex(this.nzPageIndex),Pe&&this.nzTableDataService.updatePageSize(this.nzPageSize),Ht&&(this.nzData=this.nzData||[],this.nzTableDataService.updateListOfData(this.nzData)),Xt&&(this.nzCustomColumn=this.nzCustomColumn||[],this.nzTableDataService.updateListOfCustomColumn(this.nzCustomColumn)),et&&this.nzTableDataService.updateFrontPagination(this.nzFrontPagination),z&&this.setScrollOnChanges(),Jt&&this.nzTableStyleService.setTableWidthConfig(this.nzWidthConfig),qt&&this.templateMode$.next(this.nzTemplateMode),Gt&&this.nzTableStyleService.setNoResult(this.nzNoResult),this.updateShowPagination();}ngAfterViewInit(){this.nzResizeObserver.observe(this.elementRef).pipe(Se(([j])=>{let{width:z}=j.target.getBoundingClientRect(),v=this.scrollY?this.verticalScrollBarWidth:0;return Math.floor(z-v)}),ue(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;}static \u0275fac=function(z){return new(z||wn)};static \u0275cmp=QE({type:wn,selectors:[["nz-table"]],contentQueries:function(z,v,Pe){if(z&1&&vh(Pe,os,5),z&2){let et;qD(et=WD())&&(v.nzVirtualScrollDirective=et.first);}},viewQuery:function(z,v){if(z&1&&Ih(xn,5),z&2){let Pe;qD(Pe=WD())&&(v.nzTableInnerScrollComponent=Pe.first);}},hostAttrs:[1,"ant-table-wrapper"],hostVars:4,hostBindings:function(z,v){z&2&&Mh("ant-table-wrapper-rtl",v.dir()==="rtl")("ant-table-custom-column",v.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",Z0],nzTemplateMode:[2,"nzTemplateMode","nzTemplateMode",Z0],nzShowPagination:[2,"nzShowPagination","nzShowPagination",Z0],nzLoading:[2,"nzLoading","nzLoading",Z0],nzOuterBordered:[2,"nzOuterBordered","nzOuterBordered",Z0],nzLoadingIndicator:"nzLoadingIndicator",nzBordered:[2,"nzBordered","nzBordered",Z0],nzSize:"nzSize",nzShowSizeChanger:[2,"nzShowSizeChanger","nzShowSizeChanger",Z0],nzHideOnSinglePage:[2,"nzHideOnSinglePage","nzHideOnSinglePage",Z0],nzShowQuickJumper:[2,"nzShowQuickJumper","nzShowQuickJumper",Z0],nzSimple:[2,"nzSimple","nzSimple",Z0]},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange",nzQueryParams:"nzQueryParams",nzCurrentPageDataChange:"nzCurrentPageDataChange",nzCustomColumnChange:"nzCustomColumnChange"},exportAs:["nzTable"],features:[Sw([Ke,yn]),ly],ngContentSelectors:Qe,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(z,v){z&1&&(BD(),_i(0,"nz-spin",3),bD(1,Pl,1,1,null,4),_i(2,"div",5,0),bD(4,Fl,1,1,"nz-table-title-footer",6),bD(5,Rl,1,16,"nz-table-inner-scroll",7)(6,El,1,5,"nz-table-inner-default",8),bD(7,$l,1,1,"nz-table-title-footer",9),Kc(),bD(8,Al,1,1,null,4),Kc(),nh(9,Ll,1,1,"ng-template",null,1,Lw)(11,Wl,1,0,"ng-template",null,2,Lw)),z&2&&(ch("nzDelay",v.nzLoadingDelay)("nzSpinning",v.nzLoading)("nzIndicator",v.nzLoadingIndicator),gI(),_D(v.nzPaginationPosition==="both"||v.nzPaginationPosition==="top"?1:-1),gI(),Mh("ant-table-rtl",v.dir()==="rtl")("ant-table-fixed-header",v.nzData.length&&v.scrollY)("ant-table-fixed-column",v.scrollX)("ant-table-has-fix-left",v.hasFixLeft)("ant-table-has-fix-right",v.hasFixRight)("ant-table-bordered",v.nzBordered)("nz-table-out-bordered",v.nzOuterBordered&&!v.nzBordered)("ant-table-middle",v.nzSize==="middle")("ant-table-small",v.nzSize==="small"),gI(2),_D(v.nzTitle?4:-1),gI(),_D(v.scrollY||v.scrollX?5:6),gI(2),_D(v.nzFooter?7:-1),gI(),_D(v.nzPaginationPosition==="both"||v.nzPaginationPosition==="bottom"?8:-1));},dependencies:[Vi,es$1,Gi,xn,ns,Di,mn],encapsulation:2})}})();var ls=(()=>{class t{destroyRef=C(at);listOfNzThDirective;listOfCellFixedDirective;listOfFixedColumns$=new Ln(1);listOfColumns$=new Ln(1);listOfFixedColumnsChanges$=this.listOfFixedColumns$.pipe(Ml$1(e=>zg(this.listOfFixedColumns$,...e.map(i=>i.changes$)).pipe(Ie$2(()=>this.listOfFixedColumns$))),ue(this.destroyRef));listOfFixedLeftColumnChanges$=this.listOfFixedColumnsChanges$.pipe(Se(e=>e.filter(i=>i.nzLeft!==false)));listOfFixedRightColumnChanges$=this.listOfFixedColumnsChanges$.pipe(Se(e=>e.filter(i=>i.nzRight!==false)));listOfColumnsChanges$=this.listOfColumns$.pipe(Ml$1(e=>zg(this.listOfColumns$,...e.map(i=>i.changes$)).pipe(Ie$2(()=>this.listOfColumns$))),ue(this.destroyRef));nzTableStyleService=C(Ke,{optional:true});isInsideTable=!!this.nzTableStyleService;ngAfterContentInit(){this.nzTableStyleService&&(this.listOfCellFixedDirective.changes.pipe(Gl$1(this.listOfCellFixedDirective),ue(this.destroyRef)).subscribe(this.listOfFixedColumns$),this.listOfNzThDirective.changes.pipe(Gl$1(this.listOfNzThDirective),ue(this.destroyRef)).subscribe(this.listOfColumns$),this.listOfFixedLeftColumnChanges$.subscribe(e=>{e.forEach(i=>i.setIsLastLeft(i===e[e.length-1]));}),this.listOfFixedRightColumnChanges$.subscribe(e=>{e.forEach(i=>i.setIsFirstRight(i===e[0]));}),Fg([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedLeftColumnChanges$]).pipe(ue(this.destroyRef)).subscribe(([e,i])=>{i.forEach((n,o)=>{if(n.isAutoLeft){let f=i.slice(0,o).reduce((P,$)=>P+($.colspan||$.colSpan||1),0),b=e.slice(0,f).reduce((P,$)=>P+$,0);n.setAutoLeftWidth(`${b}px`);}});}),Fg([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedRightColumnChanges$]).pipe(ue(this.destroyRef)).subscribe(([e,i])=>{i.forEach((n,o)=>{let l=i[i.length-o-1];if(l.isAutoRight){let b=i.slice(i.length-o,i.length).reduce(($,X)=>$+(X.colspan||X.colSpan||1),0),P=e.slice(e.length-b,e.length).reduce(($,X)=>$+X,0);l.setAutoRightWidth(`${P}px`);}});}));}static \u0275fac=function(i){return new(i||t)};static \u0275dir=XE({type:t,selectors:[["tr",3,"nz-table-measure-row","",3,"nzExpand","",3,"nz-table-fixed-row",""]],contentQueries:function(i,n,o){if(i&1&&vh(o,Kl,4)(o,Yl,4),i&2){let l;qD(l=WD())&&(n.listOfNzThDirective=l),qD(l=WD())&&(n.listOfCellFixedDirective=l);}},hostVars:2,hostBindings:function(i,n){i&2&&Mh("ant-table-row",n.isInsideTable);}})}return t})(),cc=(()=>{class t{nzTableStyleService=C(Ke,{optional:true});nzTableDataService=C(yn,{optional:true});destroyRef=C(at);el=C(_r).nativeElement;renderer=C(XI);isInsideTable=!!this.nzTableStyleService;templateRef;listOfNzTrDirective;listOfNzThAddOnComponent;nzSortOrderChange=new Le;ngOnInit(){this.nzTableStyleService&&this.nzTableStyleService.setTheadTemplate(this.templateRef);}ngAfterContentInit(){if(this.nzTableStyleService){let e=this.listOfNzTrDirective.changes.pipe(Gl$1(this.listOfNzTrDirective),Se(l=>l&&l.first),ue(this.destroyRef)),i=e.pipe(Ml$1(l=>l?l.listOfColumnsChanges$:mt$1));i.subscribe(l=>this.nzTableStyleService.setListOfTh(l)),this.nzTableStyleService.enableAutoMeasure$.pipe(Ml$1(l=>l?i:Dg([]))).pipe(ue(this.destroyRef)).subscribe(l=>this.nzTableStyleService.setListOfMeasureColumn(l));let n=e.pipe(Ml$1(l=>l?l.listOfFixedLeftColumnChanges$:mt$1)),o=e.pipe(Ml$1(l=>l?l.listOfFixedRightColumnChanges$:mt$1));n.subscribe(l=>{this.nzTableStyleService.setHasFixLeft(l.length!==0);}),o.subscribe(l=>{this.nzTableStyleService.setHasFixRight(l.length!==0);});}if(this.nzTableDataService){let e=this.listOfNzThAddOnComponent.changes.pipe(Gl$1(this.listOfNzThAddOnComponent));e.pipe(Ml$1(()=>zg(...this.listOfNzThAddOnComponent.map(o=>o.manualClickOrder$))),ue(this.destroyRef)).subscribe(o=>{let l={key:o.nzColumnKey,value:o.sortOrder};this.nzSortOrderChange.emit(l),o.nzSortFn&&o.nzSortPriority===false&&this.listOfNzThAddOnComponent.filter(f=>f!==o).forEach(f=>f.clearSortOrder());}),e.pipe(Ml$1(o=>zg(e,...o.map(l=>l.calcOperatorChange$)).pipe(Ie$2(()=>e))),Se(o=>o.filter(l=>!!l.nzSortFn||!!l.nzFilterFn).map(l=>{let{nzSortFn:f,sortOrder:b,nzFilterFn:P,nzFilterValue:$,nzSortPriority:X,nzColumnKey:K}=l;return {key:K,sortFn:f,sortPriority:X,sortOrder:b,filterFn:P,filterValue:$}})),Yg(0),ue(this.destroyRef)).subscribe(o=>{this.nzTableDataService?.listOfCalcOperator$.next(o);});}}ngAfterViewInit(){this.nzTableStyleService&&this.renderer.removeChild(this.renderer.parentNode(this.el),this.el);}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=QE({type:t,selectors:[["thead",9,"ant-table-thead"]],contentQueries:function(i,n,o){if(i&1&&vh(o,ls,5)(o,Hi,5),i&2){let l;qD(l=WD())&&(n.listOfNzTrDirective=l),qD(l=WD())&&(n.listOfNzThAddOnComponent=l);}},viewQuery:function(i,n){if(i&1&&Ih(jl,7),i&2){let o;qD(o=WD())&&(n.templateRef=o.first);}},outputs:{nzSortOrderChange:"nzSortOrderChange"},ngContentSelectors:Qe,decls:3,vars:1,consts:[["contentTemplate",""],[3,"ngTemplateOutlet"]],template:function(i,n){i&1&&(BD(),nh(0,Ql,1,0,"ng-template",null,0,Lw),bD(2,Xl,1,1,null,1)),i&2&&(gI(2),_D(n.isInsideTable?-1:2));},dependencies:[es$1],encapsulation:2})}return t})();var pc=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=YE({type:t});static \u0275inj=uu({imports:[as,Hi,Ul,Ji,Gi,xn,Qi,Wi,ji,Li,es]})}return t})();export{Di as D,Ji as J,Kl as K,Lt as L,Ul as U,as as a,cc as c,dc as d,es as e,ls as l,mn as m,pc as p,ut as u};
@@ -1 +0,0 @@
1
- import {U}from'./chunk-szOy8Im7.js';import {f as f$1}from'./chunk-B6yhN6h_.js';import {B as Bt}from'./chunk-CMCOXbTF.js';import {W,I}from'./chunk-DWyVd0g2.js';import'./chunk-CVunAaEq.js';import'./chunk-CjitpVjI.js';import {C,a as ae,d,V as Ve,b as at,q as qo,u as ue,$ as rd,a0 as Bw,n as n$1,Q as QE,M as Mi,L as Ln,v as vd,c as Cc,f as r7,a1 as w7,K as Kt,h as _i,p as bD,k as Kc,x as gI,B as _D,j as vw,R as Rw,P as Ph,O as Ow,F as VD,w as lh,a4 as Pw,I as xw,z as ch,J as LD,l as gh,y as nl,U as Pu,W as Lu}from'./main-OG6DVLH6.js';import'./chunk-DCwYXBAy.js';var G=i=>({count:i});function Q(i,p){i&1&&(_i(0,"p",1),vw(1),Rw(2,"transloco"),Kc()),i&2&&(gI(),Ph(Ow(2,1,"common.loading")));}function X(i,p){if(i&1&&(_i(0,"p",2),vw(1),Kc()),i&2){let t=VD();gI(),Ph(t.loadError());}}function Y(i,p){if(i&1){let t=LD();_i(0,"button",15),gh("click",function(){Pu(t);let u=VD(2);return Lu(u.cancelBatch())}),vw(1),Rw(2,"transloco"),Kc();}if(i&2){let t=VD(2);ch("disabled",t.cancelling()),gI(),nl(" ",Ow(2,2,t.cancelling()?"batches.detail.cancelling":"batches.detail.cancel")," ");}}function Z(i,p){if(i&1&&(_i(0,"p",12),vw(1),Kc()),i&2){let t=VD(2);gI(),Ph(t.actionError());}}function tt(i,p){if(i&1&&(_i(0,"header",3)(1,"div")(2,"a",4),vw(3),Rw(4,"transloco"),Kc(),_i(5,"h1",5),vw(6),Kc(),_i(7,"p",6)(8,"nz-tag",7),vw(9),Rw(10,"transloco"),Kc(),_i(11,"span",8),vw(12),Kc(),vw(13," \xB7 "),_i(14,"span",9),vw(15),Rw(16,"transloco"),Kc(),vw(17," \xB7 "),_i(18,"span",10),vw(19),Rw(20,"transloco"),Kc()()(),bD(21,Y,3,4,"button",11),Kc(),bD(22,Z,2,1,"p",12),_i(23,"section",13)(24,"h2"),vw(25),Rw(26,"transloco"),Kc(),lh(27,"app-job-status-table",14),Kc()),i&2){let t=p,e=VD();gI(3),Ph(Ow(4,10,"batches.detail.backHint")),gI(3),Ph(t.id),gI(3),Ph(Ow(10,12,e.statusKey(t.status))),gI(3),Ph(t.workflowId),gI(3),Ph(Pw(16,14,"batches.detail.subjectCount",xw(21,G,t.resolvedSubjects.length))),gI(4),Ph(Ow(20,17,e.triggeredByKey(t.triggeredBy))),gI(2),_D(t.status==="running"?21:-1),gI(),_D(e.actionError()?22:-1),gI(3),Ph(Ow(26,19,"batches.detail.membersHeading")),gI(2),ch("jobs",e.memberJobs());}}var et=3e3;function f(i){return i!=="running"}var _t=(()=>{class i{constructor(){this.route=C(ae),this.batchesApi=C(U),this.jobsApi=C(d),this.eventsService=C(f$1),this.transloco=C(Ve),this.destroyRef=C(at),this.batch=qo(null),this.memberJobs=qo([]),this.loading=qo(true),this.loadError=qo(null),this.polling=qo(false),this.cancelling=qo(false),this.actionError=qo(null),this.eventStream=qo(null),this.pollHandle=null,this.batchId=null,this.destroyRef.onDestroy(()=>{this.stopPolling(),this.closeStream();}),this.route.paramMap.pipe(ue(this.destroyRef)).subscribe(t=>{let e=t.get("id");if(!e){this.loading.set(false),this.loadError.set(this.transloco.translate("batches.detail.loadFailed"));return}this.load(e);}),rd(()=>{let t=this.eventStream();if(!t)return;let e=t.latest();e&&(e.type!=="batch_completed"&&e.type!=="batch_cancelled"||e.batchId===this.batchId&&Bw(()=>{this.refreshBatch(),this.refreshMembers(),this.stopPolling(),this.closeStream();}));});}statusKey(t){return `batches.status.${t}`}triggeredByKey(t){return `batches.triggeredBy.${t}`}isPolling(){return this.polling()}cancelBatch(){let t=this.batch();!t||t.status!=="running"||this.cancelling()||(this.actionError.set(null),this.cancelling.set(true),this.batchesApi.cancel(t.id).subscribe({next:e=>{this.cancelling.set(false),this.batch.set(e),this.refreshMembers(),f(e.status)&&(this.stopPolling(),this.closeStream());},error:e=>{this.cancelling.set(false),this.actionError.set(this.errorMessage(e,this.transloco.translate("batches.errors.cancelFailed")));}}));}load(t){this.batchId=t,this.loading.set(true),this.loadError.set(null),this.stopPolling(),this.closeStream(),this.batchesApi.get(t).pipe(ue(this.destroyRef)).subscribe({next:e=>{this.batch.set(e),this.loading.set(false),this.refreshMembers(),f(e.status)||(this.startPolling(),this.eventStream.set(this.eventsService.connect({batchId:t})));},error:e=>{this.loading.set(false),this.loadError.set(this.errorMessage(e,this.transloco.translate("batches.detail.loadFailed")));}});}refreshBatch(){let t=this.batchId;t&&this.batchesApi.get(t).subscribe({next:e=>{this.batch.set(e),f(e.status)&&this.stopPolling();},error:()=>{}});}refreshMembers(){let t=this.batchId;t&&this.jobsApi.list({batchId:t}).subscribe({next:e=>this.memberJobs.set(e),error:()=>{}});}startPolling(){this.pollHandle==null&&(this.polling.set(true),this.pollHandle=setInterval(()=>{let t=this.batch();if(!t||f(t.status)){this.stopPolling();return}this.refreshMembers();},et));}stopPolling(){this.pollHandle!=null&&(clearInterval(this.pollHandle),this.pollHandle=null),this.polling.set(false);}closeStream(){let t=this.eventStream();t&&(t.close(),this.eventStream.set(null));}errorMessage(t,e){return t instanceof n$1||t instanceof Error?t.message:e}static{this.\u0275fac=function(e){return new(e||i)};}static{this.\u0275cmp=QE({type:i,selectors:[["app-batch-detail"]],decls:4,vars:1,consts:[["data-testid","batch-detail",1,"detail-page"],["data-testid","loading"],["data-testid","load-error",1,"error"],[1,"header"],["routerLink","/views"],["data-testid","batch-id"],[1,"meta"],["data-testid","batch-status"],["data-testid","batch-workflow"],["data-testid","batch-subjects"],["data-testid","batch-triggered-by"],["nz-button","","nzDanger","","type","button","data-testid","cancel-batch",3,"disabled"],["data-testid","action-error",1,"error"],["data-testid","batch-members",1,"members"],[3,"jobs"],["nz-button","","nzDanger","","type","button","data-testid","cancel-batch",3,"click","disabled"]],template:function(e,u){if(e&1&&(_i(0,"main",0),bD(1,Q,3,3,"p",1)(2,X,2,1,"p",2)(3,tt,28,23),Kc()),e&2){let _;gI(),_D(u.loading()?1:u.loadError()?2:(_=u.batch())?3:-1,_);}},dependencies:[Mi,Ln,vd,Cc,r7,w7,W,I,Bt,Kt],styles:[".detail-page[_ngcontent-%COMP%]{padding:1.25rem 1.5rem 3rem;display:flex;flex-direction:column;gap:1rem}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:.25rem 0 0;font-size:1.35rem;word-break:break-all}.meta[_ngcontent-%COMP%]{margin:.35rem 0 0;color:#57534e;display:flex;flex-wrap:wrap;gap:.35rem;align-items:center}.members[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 .75rem;font-size:1.1rem}.error[_ngcontent-%COMP%]{color:#9f1239}"]});}}return i})();export{_t as BatchDetailComponent};
@@ -1 +0,0 @@
1
- import {S as St}from'./chunk-C4ekQTdr.js';import'./chunk-BT1tqKUa.js';import'./chunk-Oq0qp-a6.js';import'./chunk-B5OZfu7U.js';import'./chunk-D1s098WO.js';import {Q as QE,w as lh}from'./main-OG6DVLH6.js';import'./chunk-DWyVd0g2.js';import'./chunk-CVunAaEq.js';import'./chunk-CjitpVjI.js';var c=(()=>{class e{static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275cmp=QE({type:e,selectors:[["app-context-files-manage"]],decls:1,vars:0,template:function(t,a){t&1&&lh(0,"app-context-file-list");},dependencies:[St],encapsulation:2});}}return e})();export{c as ContextFilesManageComponent};
@@ -1 +0,0 @@
1
- import {T}from'./chunk-BphvnLVV.js';import {H as He$1}from'./chunk-PTPh9FQ2.js';import {B as B$}from'./chunk-DDsAcugC.js';import {a as ai,z}from'./chunk-B5OZfu7U.js';import {C,a as ae,X as Ie,ak as u,b as at,V as Ve,aW as O,aX as de,an as Se,q as qo,H as Hw,u as ue$1,r,n as n$1,Q as QE,M as Mi,o as o8,ao as k4,e as e8,T as T3,L as Ln,v as vd,c as Cc,f as r7,a1 as w7,g as oM,E as E5,Y as Y5,K as Kt,h as _i,j as vw,k as Kc,R as Rw,l as gh,p as bD,x as gI,P as Ph,O as Ow,z as ch,y as nl,B as _D,F as VD,J as LD,m as oE,N as ND,A as sE,D as xD,S as SD,w as lh,U as Pu,W as Lu}from'./main-OG6DVLH6.js';import {a as ae$1,l as le}from'./chunk-WIfL3i6D.js';import'./chunk-ZTjXJrt4.js';import {b}from'./chunk-Dqf92YVW.js';import'./chunk-CjitpVjI.js';var me=(t,s)=>s.id;function ue(t,s){t&1&&(_i(0,"p",6),vw(1),Rw(2,"transloco"),Kc()),t&2&&(gI(),Ph(Ow(2,1,"common.loading")));}function he(t,s){if(t&1&&(_i(0,"p",7),vw(1),Kc()),t&2){let e=VD();gI(),Ph(e.loadError());}}function fe(t,s){if(t&1&&(_i(0,"li"),vw(1),Kc()),t&2){let e=s.$implicit;gI(),Ph(e);}}function ge(t,s){if(t&1&&(_i(0,"section",8)(1,"h2"),vw(2),Rw(3,"transloco"),Kc(),_i(4,"ul"),ND(5,fe,2,1,"li",null,SD),Kc()()),t&2){let e=VD(2);gI(2),Ph(Ow(3,1,"shortcuts.editor.validation")),gI(3),xD(e.validationErrors());}}function _e(t,s){if(t&1&&lh(0,"nz-option",12),t&2){let e=s.$implicit;ch("nzValue",e.id)("nzLabel",e.name);}}function we(t,s){if(t&1){let e=LD();_i(0,"app-workflow-input-form",14),gh("valuesChange",function(i){Pu(e);let u=VD(2);return Lu(u.setInputValues(i))}),Kc();}if(t&2){let e=VD(2);ch("fields",s.inputSchema)("values",e.inputValues());}}function ve(t,s){if(t&1){let e=LD();bD(0,ge,7,3,"section",8),_i(1,"label",9)(2,"span"),vw(3),Rw(4,"transloco"),Kc(),_i(5,"input",10),gh("ngModelChange",function(i){Pu(e);let u=VD();return Lu(u.name.set(i))}),Kc(),oE(),Kc(),_i(6,"div",9)(7,"span"),vw(8),Rw(9,"transloco"),Kc(),_i(10,"nz-select",11),gh("ngModelChange",function(i){Pu(e);let u=VD();return Lu(u.onWorkflowChange(i))}),ND(11,_e,1,2,"nz-option",12,me),Kc(),oE(),Kc(),bD(13,we,1,2,"app-workflow-input-form",13);}if(t&2){let e,o=VD();_D(o.validationErrors().length>0?0:-1),gI(3),Ph(Ow(4,6,"shortcuts.editor.name")),gI(2),ch("ngModel",o.name()),sE(),gI(3),Ph(Ow(9,8,"shortcuts.editor.workflow")),gI(2),ch("ngModel",o.workflowId()),sE(),gI(),xD(o.eligibleWorkflows()),gI(2),_D((e=o.selectedWorkflow())?13:-1,e);}}function Ce(t){let s=t.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),e=crypto.randomUUID().slice(0,8);return s.length>0?`sc-${s}-${e}`:`sc-${e}`}var He=(()=>{class t{constructor(){this.route=C(ae),this.router=C(Ie),this.shortcutsApi=C(u),this.workflowsApi=C(b),this.message=C(He$1),this.destroyRef=C(at),this.transloco=C(Ve),this.language=C(O),this.routeId=de(this.route.paramMap.pipe(Se(e=>e.get("id"))),{initialValue:this.route.snapshot.paramMap.get("id")}),this.name=qo(""),this.workflowId=qo(""),this.workflows=qo([]),this.inputValues=qo({}),this.lastJobId=qo(void 0),this.loadError=qo(null),this.validationErrors=qo([]),this.saving=qo(false),this.loading=qo(true),this.isNew=Hw(()=>!this.routeId()),this.pageTitle=Hw(()=>(this.language.currentLang(),this.isNew()?this.transloco.translate("shortcuts.editor.titleNew"):this.transloco.translate("shortcuts.editor.titleEdit",{name:this.name().trim()}))),this.eligibleWorkflows=Hw(()=>this.workflows().filter(e=>e.appliesTo==="none"&&e.subjectHandling==="per-subject")),this.selectedWorkflow=Hw(()=>this.eligibleWorkflows().find(e=>e.id===this.workflowId())??null),this.workflowsApi.list().pipe(ue$1(this.destroyRef)).subscribe({next:e=>this.workflows.set(e),error:e=>{this.workflows.set([]),this.message.error(this.errorMessage(e,this.transloco.translate("shortcuts.editor.loadFailed")));}}),this.route.paramMap.pipe(ue$1(this.destroyRef)).subscribe(e=>{let o=e.get("id");if(this.validationErrors.set([]),this.loadError.set(null),!o){this.name.set(""),this.workflowId.set(""),this.inputValues.set({}),this.lastJobId.set(void 0),this.loading.set(false);return}this.loading.set(true),this.shortcutsApi.get(o).subscribe({next:i=>{this.name.set(i.name),this.workflowId.set(i.workflowId),this.inputValues.set(i.inputValues),this.lastJobId.set(i.lastJobId),this.loading.set(false);},error:i=>{this.loading.set(false),this.loadError.set(this.errorMessage(i,this.transloco.translate("shortcuts.editor.loadFailed")));}});});}onWorkflowChange(e){this.workflowId.set(e);let o=this.eligibleWorkflows().find(i=>i.id===e);this.inputValues.set(ae$1(o?.inputSchema??[]));}setInputValues(e){this.inputValues.set(e);}save(){let e=this.routeId(),o=r({id:e??Ce(this.name()),name:this.name().trim(),workflowId:this.workflowId(),inputValues:this.inputValues()},this.lastJobId()?{lastJobId:this.lastJobId()}:{}),i=B$.safeParse(o);if(!i.success){this.validationErrors.set(T(i.error));return}this.validationErrors.set([]),this.saving.set(true),(this.isNew()||!e?this.shortcutsApi.create(i.data):this.shortcutsApi.update(e,i.data)).subscribe({next:M=>{this.saving.set(false),this.message.success(this.transloco.translate(this.isNew()?"shortcuts.editor.created":"shortcuts.editor.saved")),this.isNew()&&this.router.navigate(["/shortcuts",M.id,"edit"]);},error:M=>{this.saving.set(false),this.message.error(this.errorMessage(M,this.transloco.translate("shortcuts.editor.saveFailed")));}});}errorMessage(e,o){return e instanceof n$1||e instanceof Error?e.message:o}static{this.\u0275fac=function(o){return new(o||t)};}static{this.\u0275cmp=QE({type:t,selectors:[["app-shortcut-editor"]],decls:15,vars:10,consts:[["data-testid","shortcut-editor",1,"editor"],[1,"header"],["data-testid","page-title"],[1,"header-actions"],["routerLink","/shortcuts"],["nz-button","","nzType","primary","type","button","data-testid","save-button",3,"click","nzLoading","disabled"],["data-testid","loading"],["data-testid","load-error",1,"error"],["data-testid","validation-errors",1,"errors"],[1,"field"],["nz-input","","data-testid","shortcut-name",3,"ngModelChange","ngModel"],["data-testid","shortcut-workflow",3,"ngModelChange","ngModel"],[3,"nzValue","nzLabel"],[3,"fields","values"],[3,"valuesChange","fields","values"]],template:function(o,i){o&1&&(_i(0,"main",0)(1,"header",1)(2,"div")(3,"h1",2),vw(4),Kc()(),_i(5,"div",3)(6,"a",4),vw(7),Rw(8,"transloco"),Kc(),_i(9,"button",5),gh("click",function(){return i.save()}),vw(10),Rw(11,"transloco"),Kc()()(),bD(12,ue,3,3,"p",6)(13,he,2,1,"p",7)(14,ve,14,10),Kc()),o&2&&(gI(4),Ph(i.pageTitle()),gI(3),Ph(Ow(8,6,"shortcuts.editor.backToList")),gI(2),ch("nzLoading",i.saving())("disabled",i.loading()||!!i.loadError()),gI(),nl(" ",Ow(11,8,"common.save")," "),gI(2),_D(i.loading()?12:i.loadError()?13:14));},dependencies:[Mi,o8,k4,e8,T3,Ln,vd,Cc,r7,w7,ai,z,oM,E5,Y5,le,Kt],styles:[".editor[_ngcontent-%COMP%]{padding:1.25rem 1.5rem 3rem;display:flex;flex-direction:column;gap:1rem}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.header-actions[_ngcontent-%COMP%]{display:flex;gap:.75rem;align-items:center}.field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.35rem;margin:.5rem 0}.field[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:.85rem;color:#57534e}.errors[_ngcontent-%COMP%]{border:1px solid #fecdd3;background:#fff1f2;padding:.75rem 1rem}.errors[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 .35rem;font-size:1rem}.error[_ngcontent-%COMP%]{color:#9f1239}"]});}}return t})();export{He as ShortcutEditorComponent};
@@ -1 +0,0 @@
1
- import {X as Xe,b as bt,K as Ke}from'./chunk-hTFsYp4X.js';import {T}from'./chunk-BphvnLVV.js';import {q as qf,V as V$}from'./chunk-DDsAcugC.js';import {X as Xt$1,Z as Zn,i as ie$1,U as Ut$1}from'./chunk-Oq0qp-a6.js';import {_ as _n,C as Cn}from'./chunk-D1s098WO.js';import {C,V as Ve,b as at,X as Ie,q as qo,u as ue,ae as v,ab as Dg,n as n$1,Q as QE,M as Mi,o as o8,e as e8,T as T3,L as Ln,v as vd,c as Cc,f as r7,a1 as w7,g as oM,E as E5,Y as Y5,K as Kt$1,J as LD,h as _i,j as vw,R as Rw,k as Kc,l as gh,p as bD,x as gI,P as Ph,O as Ow,z as ch,y as nl,B as _D,a4 as Pw,I as xw,F as VD,N as ND,S as SD,m as oE,A as sE,D as xD,af as Zi,a8 as m,ag as E,i as ie$2,w as lh,G as ah,a7 as MD,ah as _h,U as Pu,W as Lu,ai as zD}from'./main-OG6DVLH6.js';import {b}from'./chunk-Dqf92YVW.js';import {W,I}from'./chunk-DWyVd0g2.js';import {p as pc,a as as,d as dc,K as Kl,c as cc,J as Ji,l as ls}from'./chunk-CVunAaEq.js';import'./chunk-CjitpVjI.js';var Ot=i=>({name:i}),Lt=(()=>{class i{constructor(){this.modalRef=C(ie$1),this.data=C(Ut$1);}cancel(){this.modalRef.close(void 0);}choose(t){this.modalRef.close(t);}static{this.\u0275fac=function(e){return new(e||i)};}static{this.\u0275cmp=QE({type:i,selectors:[["app-workflow-import-conflict"]],decls:14,vars:15,consts:[["data-testid","import-conflict-dialog"],["data-testid","import-conflict-message"],[1,"dialog-actions"],["nz-button","","type","button","data-testid","import-conflict-cancel",3,"click"],["nz-button","","type","button","data-testid","import-conflict-create-new",3,"click"],["nz-button","","nzType","primary","type","button","data-testid","import-conflict-update",3,"click"]],template:function(e,a){e&1&&(_i(0,"div",0)(1,"p",1),vw(2),Rw(3,"transloco"),Kc(),_i(4,"div",2)(5,"button",3),gh("click",function(){return a.cancel()}),vw(6),Rw(7,"transloco"),Kc(),_i(8,"button",4),gh("click",function(){return a.choose("create_new")}),vw(9),Rw(10,"transloco"),Kc(),_i(11,"button",5),gh("click",function(){return a.choose("update")}),vw(12),Rw(13,"transloco"),Kc()()()),e&2&&(gI(2),nl(" ",Pw(3,4,"workflows.import.conflictBody",xw(13,Ot,a.data.name))," "),gI(4),nl(" ",Ow(7,7,"common.cancel")," "),gI(3),nl(" ",Ow(10,9,"workflows.import.createNew")," "),gI(3),nl(" ",Ow(13,11,"workflows.import.update")," "));},dependencies:[vd,Cc,r7,w7,Kt$1],styles:["p[_ngcontent-%COMP%]{margin:0 0 1.25rem;color:#44403c}.dialog-actions[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.5rem}"]});}}return i})();var Pt=(()=>{class i{constructor(){this.http=C(Zi),this.baseUrl=`${m.apiBaseUrl}/workflow-library`;}list(){return this.http.get(this.baseUrl).pipe(E())}add(t){return this.http.post(`${this.baseUrl}/${encodeURIComponent(t)}/add`,{}).pipe(E())}static{this.\u0275fac=function(e){return new(e||i)};}static{this.\u0275prov=ie$2({token:i,factory:i.\u0275fac,providedIn:"root"});}}return i})();var At=(i,d)=>d.id;function Vt(i,d){i&1&&(_i(0,"p",2),vw(1),Rw(2,"transloco"),Kc()),i&2&&(gI(),Ph(Ow(2,1,"common.loading")));}function Rt(i,d){if(i&1&&(_i(0,"p",3),vw(1),Kc()),i&2){let t=VD();gI(),Ph(t.loadError());}}function Ht(i,d){if(i&1&&(_i(0,"p",4),vw(1),Kc()),i&2){let t=VD(2);gI(),Ph(t.addError());}}function Kt(i,d){if(i&1&&(_i(0,"nz-tag"),vw(1),Rw(2,"transloco"),Kc()),i&2){let t=d.$implicit,e=VD(3);gI(),Ph(Ow(2,1,e.subjectTypeKey(t)));}}function Ut(i,d){if(i&1&&(_i(0,"li")(1,"span"),vw(2),Kc(),_i(3,"span",14),vw(4),Rw(5,"transloco"),Kc()()),i&2){let t=d.$implicit,e=VD(4);_h("margin-left",t.depth,"rem"),gI(2),Ph(t.name),gI(2),Ph(Ow(5,4,e.stepTypeKey(t.type)));}}function Jt(i,d){if(i&1&&(_i(0,"ol",12),ND(1,Ut,6,6,"li",13,MD),Kc()),i&2){let t=VD().$implicit,e=VD(2);ah("data-testid","library-steps-"+t.id),gI(),xD(e.previewSteps(t));}}function Zt(i,d){if(i&1){let t=LD();_i(0,"nz-card")(1,"div",6)(2,"h2"),vw(3),Kc(),_i(4,"nz-tag"),vw(5),Rw(6,"transloco"),Kc()(),_i(7,"p",7),vw(8),Kc(),_i(9,"div",8),ND(10,Kt,3,3,"nz-tag",null,SD),Kc(),_i(12,"div",9)(13,"button",10),gh("click",function(){let a=Pu(t).$implicit,f=VD(2);return Lu(f.togglePreview(a.id))}),vw(14),Rw(15,"transloco"),Kc(),_i(16,"button",11),gh("click",function(){let a=Pu(t).$implicit,f=VD(2);return Lu(f.addToMyWorkflows(a.id))}),vw(17),Rw(18,"transloco"),Kc()(),bD(19,Jt,3,1,"ol",12),Kc();}if(i&2){let t=d.$implicit,e=VD(2);ah("data-testid","library-entry-"+t.id),gI(2),ah("data-testid","library-name-"+t.id),gI(),Ph(t.name),gI(),ah("data-testid","library-source-"+t.id),gI(),Ph(Ow(6,13,e.sourceKey(t.source))),gI(2),ah("data-testid","library-description-"+t.id),gI(),nl(" ",t.description," "),gI(2),xD(e.appliesToValues(t)),gI(3),ah("data-testid","library-preview-"+t.id),gI(),nl(" ",Ow(15,15,e.isExpanded(t.id)?"workflow-library.hideSteps":"workflow-library.previewSteps")," "),gI(2),ch("disabled",e.addingId()!==null),ah("data-testid","library-add-"+t.id),gI(),nl(" ",Ow(18,17,e.addingId()===t.id?"workflow-library.adding":"workflow-library.add")," "),gI(2),_D(e.isExpanded(t.id)?19:-1);}}function qt(i,d){if(i&1&&(bD(0,Ht,2,1,"p",4),_i(1,"div",5),ND(2,Zt,20,19,"nz-card",null,At),Kc()),i&2){let t=VD();_D(t.addError()?0:-1),gI(2),xD(t.entries());}}var jt=(()=>{class i{constructor(){this.libraryApi=C(Pt),this.router=C(Ie),this.transloco=C(Ve),this.destroyRef=C(at),this.modalRef=C(ie$1,{optional:true}),this.entries=qo([]),this.loading=qo(true),this.loadError=qo(null),this.addError=qo(null),this.addingId=qo(null),this.expandedIds=qo(new Set),this.libraryApi.list().pipe(ue(this.destroyRef)).subscribe({next:t=>{this.entries.set(t),this.loading.set(false);},error:t=>{this.loading.set(false),this.loadError.set(this.errorMessage(t,this.transloco.translate("workflow-library.loadFailed")));}});}sourceKey(t){return `workflow-library.source.${t}`}appliesToValues(t){let e=t.workflowDefinition.appliesTo;return e==="none"?["none"]:Array.isArray(e)?e:[e]}subjectTypeKey(t){return `workflow-editor.subjectType.${t}`}stepTypeKey(t){return `step-list.stepType.${t}`}isExpanded(t){return this.expandedIds().has(t)}togglePreview(t){this.expandedIds.update(e=>{let a=new Set(e);return a.has(t)?a.delete(t):a.add(t),a});}previewSteps(t){return Dt(t.workflowDefinition.steps,0)}addToMyWorkflows(t){this.addingId()||(this.addError.set(null),this.addingId.set(t),this.libraryApi.add(t).pipe(ue(this.destroyRef)).subscribe({next:e=>{this.addingId.set(null),this.modalRef?.close(),this.router.navigate(["/workflows",e.id,"edit"]);},error:e=>{this.addingId.set(null),this.addError.set(this.errorMessage(e,this.transloco.translate("workflow-library.addFailed")));}}));}errorMessage(t,e){return t instanceof n$1||t instanceof Error?t.message:e}static{this.\u0275fac=function(e){return new(e||i)};}static{this.\u0275cmp=QE({type:i,selectors:[["app-workflow-library-browser"]],decls:7,vars:4,consts:[["data-testid","workflow-library-browser",1,"library"],[1,"lede"],["data-testid","library-loading"],["data-testid","library-load-error",1,"error"],["data-testid","library-add-error",1,"error"],[1,"cards"],[1,"card-head"],[1,"description"],[1,"applies-to"],[1,"card-actions"],["nz-button","","nzType","link","type","button",3,"click"],["nz-button","","nzType","primary","type","button",3,"click","disabled"],[1,"steps-preview"],[3,"margin-left"],[1,"step-type"]],template:function(e,a){e&1&&(_i(0,"div",0)(1,"p",1),vw(2),Rw(3,"transloco"),Kc(),bD(4,Vt,3,3,"p",2)(5,Rt,2,1,"p",3)(6,qt,4,1),Kc()),e&2&&(gI(2),Ph(Ow(3,2,"workflow-library.lede")),gI(2),_D(a.loading()?4:a.loadError()?5:6));},dependencies:[Mi,vd,Cc,r7,w7,bt,Ke,W,I,Kt$1],styles:[".library[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem}.lede[_ngcontent-%COMP%]{margin:0;color:#57534e}.cards[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem}.card-head[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;gap:.75rem}.card-head[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:1.05rem;font-weight:600}.description[_ngcontent-%COMP%]{margin:.5rem 0 0;color:#57534e}.applies-to[_ngcontent-%COMP%]{margin-top:.5rem}.card-actions[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin-top:.5rem}.steps-preview[_ngcontent-%COMP%]{margin:.75rem 0 0;padding-left:1.25rem;color:#44403c}.steps-preview[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:.75rem;margin:.25rem 0}.step-type[_ngcontent-%COMP%]{color:#78716c;font-size:.85rem}.error[_ngcontent-%COMP%]{color:#9f1239}"]});}}return i})();function Dt(i,d){let t=[];for(let e of i)t.push({name:e.name,type:e.type,depth:d}),e.type==="loop"&&Array.isArray(e.steps)&&t.push(...Dt(e.steps,d+1));return t}var Gt=i=>({count:i}),Qt=i=>["/workflows",i,"edit"],Xt=(i,d)=>d.id;function Yt(i,d){if(i&1&&(_i(0,"p",9),vw(1),Kc()),i&2){let t=VD();gI(),Ph(t.actionError());}}function te(i,d){i&1&&(_i(0,"p",10),vw(1),Rw(2,"transloco"),Kc()),i&2&&(gI(),Ph(Ow(2,1,"common.loading")));}function ee(i,d){if(i&1&&(_i(0,"p",11),vw(1),Kc()),i&2){let t=VD();gI(),Ph(t.loadError());}}function ie(i,d){if(i&1&&(lh(0,"nz-option",14),Rw(1,"transloco")),i&2){let t=d.$implicit,e=VD(2);ch("nzValue",t)("nzLabel",Ow(1,2,e.subjectHandlingFilterKey(t)));}}function ne(i,d){if(i&1&&(_i(0,"p",15),vw(1),Kc()),i&2){let t=VD(2);gI(),Ph(t.deleteError());}}function oe(i,d){if(i&1){let t=LD();_i(0,"section",16)(1,"p"),vw(2),Rw(3,"transloco"),Kc(),_i(4,"div",18)(5,"button",19),gh("click",function(){Pu(t);let a=VD(2);return Lu(a.openLibrary())}),vw(6),Rw(7,"transloco"),Kc(),_i(8,"a",20),vw(9),Rw(10,"transloco"),Kc()()();}i&2&&(gI(2),Ph(Ow(3,3,"workflows.list.emptyState")),gI(4),nl(" ",Ow(7,5,"workflows.list.emptyBrowseLibrary")," "),gI(3),nl(" ",Ow(10,7,"workflows.list.emptyCreateButton")," "));}function re(i,d){if(i&1&&(_i(0,"span"),vw(1),Kc()),i&2){let t=VD().$implicit;ah("data-testid","description-"+t.id),gI(),Ph(t.description);}}function ae(i,d){if(i&1&&(_i(0,"span",22),vw(1),Rw(2,"transloco"),Kc()),i&2){let t=VD().$implicit;ah("data-testid","description-"+t.id),gI(),Ph(Ow(2,2,"workflows.list.noDescription"));}}function le(i,d){if(i&1&&(_i(0,"nz-tag"),vw(1),Rw(2,"transloco"),Kc()),i&2){let t=d.$implicit,e=VD().$implicit,a=VD(3);ah("data-testid","applies-to-"+e.id),gI(),Ph(Ow(2,2,a.subjectTypeKey(t)));}}function se(i,d){if(i&1){let t=LD();_i(0,"tr")(1,"td")(2,"span"),vw(3),Kc()(),_i(4,"td",21),bD(5,re,2,2,"span")(6,ae,3,4,"span",22),Kc(),_i(7,"td"),ND(8,le,3,4,"nz-tag",null,SD),Kc(),_i(10,"td")(11,"nz-tag"),vw(12),Rw(13,"transloco"),Kc()(),_i(14,"td")(15,"span"),vw(16),Rw(17,"transloco"),Kc()(),_i(18,"td",23)(19,"a",24),vw(20),Rw(21,"transloco"),Kc(),_i(22,"button",25),gh("click",function(){let a=Pu(t).$implicit,f=VD(3);return Lu(f.exportWorkflow(a))}),vw(23),Rw(24,"transloco"),Kc(),_i(25,"button",26),Rw(26,"transloco"),Rw(27,"transloco"),Rw(28,"transloco"),gh("nzOnConfirm",function(){let a=Pu(t).$implicit,f=VD(3);return Lu(f.deleteWorkflow(a.id))}),vw(29),Rw(30,"transloco"),Kc()()();}if(i&2){let t=d.$implicit,e=VD(3);ah("data-testid","workflow-"+t.id),gI(2),ah("data-testid","name-"+t.id),gI(),Ph(t.name),gI(2),_D(t.description?.trim()?5:6),gI(3),xD(e.appliesToValues(t)),gI(3),ah("data-testid","subject-handling-"+t.id),gI(),Ph(Ow(13,18,e.subjectHandlingKey(t.subjectHandling))),gI(3),ah("data-testid","step-count-"+t.id),gI(),Ph(Pw(17,20,"workflows.list.stepCount",xw(35,Gt,t.steps.length))),gI(3),ch("routerLink",xw(37,Qt,t.id)),ah("data-testid","edit-"+t.id),gI(),nl(" ",Ow(21,23,"workflows.list.edit")," "),gI(2),ah("data-testid","export-"+t.id),gI(),nl(" ",Ow(24,25,"workflows.list.export")," "),gI(2),ch("nzPopconfirmTitle",Ow(26,27,"workflows.list.deleteConfirm"))("nzOkText",Ow(27,29,"workflows.list.delete"))("nzCancelText",Ow(28,31,"common.cancel")),ah("data-testid","delete-"+t.id),gI(4),nl(" ",Ow(30,33,"workflows.list.delete")," ");}}function pe(i,d){if(i&1&&(_i(0,"nz-table",17)(1,"thead")(2,"tr")(3,"th"),vw(4),Rw(5,"transloco"),Kc(),_i(6,"th"),vw(7),Rw(8,"transloco"),Kc(),_i(9,"th"),vw(10),Rw(11,"transloco"),Kc(),_i(12,"th"),vw(13),Rw(14,"transloco"),Kc(),_i(15,"th"),vw(16),Rw(17,"transloco"),Kc(),_i(18,"th"),vw(19),Rw(20,"transloco"),Kc()()(),_i(21,"tbody"),ND(22,se,31,39,"tr",null,Xt),Kc()()),i&2){let t=VD(2);ch("nzData",t.workflows())("nzFrontPagination",false)("nzShowPagination",false),gI(4),Ph(Ow(5,9,"workflows.list.column.name")),gI(3),Ph(Ow(8,11,"workflows.list.column.description")),gI(3),Ph(Ow(11,13,"workflow-editor.appliesTo")),gI(3),Ph(Ow(14,15,"workflow-editor.subjectHandling.label")),gI(3),Ph(Ow(17,17,"workflows.list.column.steps")),gI(3),Ph(Ow(20,19,"workflows.list.column.actions")),gI(3),xD(t.workflows());}}function de(i,d){if(i&1){let t=LD();_i(0,"div",12)(1,"span"),vw(2),Rw(3,"transloco"),Kc(),_i(4,"nz-select",13),gh("ngModelChange",function(a){Pu(t);let f=VD();return Lu(f.setSubjectHandlingFilter(a))}),ND(5,ie,2,4,"nz-option",14,SD),Kc(),oE(),Kc(),bD(7,ne,2,1,"p",15),bD(8,oe,11,9,"section",16)(9,pe,24,21,"nz-table",17);}if(i&2){let t=VD();gI(2),Ph(Ow(3,4,"workflows.list.filterBySubjectHandling")),gI(2),ch("ngModel",t.subjectHandlingFilter()),sE(),gI(),xD(t.subjectHandlingOptions),gI(2),_D(t.deleteError()?7:-1),gI(),_D(t.workflows().length===0?8:9);}}var si=(()=>{class i{constructor(){this.workflowsApi=C(b),this.transloco=C(Ve),this.destroyRef=C(at),this.modal=C(Xt$1),this.router=C(Ie),this.workflows=qo([]),this.loading=qo(true),this.loadError=qo(null),this.deleteError=qo(null),this.actionError=qo(null),this.importing=qo(false),this.subjectHandlingFilter=qo("all"),this.subjectHandlingOptions=["all","per-subject","collection"],this.load();}setSubjectHandlingFilter(t){this.subjectHandlingFilter.set(t),this.load();}appliesToValues(t){let e=t.appliesTo;return e==="none"?["none"]:Array.isArray(e)?e:[e]}subjectTypeKey(t){return `workflow-editor.subjectType.${t}`}subjectHandlingKey(t){return `workflow-editor.subjectHandling.${t}`}subjectHandlingFilterKey(t){return t==="all"?"workflows.list.filterAll":`workflow-editor.subjectHandling.${t}`}deleteWorkflow(t){this.deleteError.set(null),this.workflowsApi.delete(t).pipe(ue(this.destroyRef)).subscribe({next:()=>{this.workflows.update(e=>e.filter(a=>a.id!==t));},error:e=>{this.deleteError.set(this.errorMessage(e,this.transloco.translate("workflows.list.deleteFailed")));}});}openLibrary(){this.modal.create({nzTitle:this.transloco.translate("workflow-library.title"),nzContent:jt,nzFooter:null,nzWidth:720});}exportWorkflow(t){this.actionError.set(null),this.workflowsApi.exportDefinition(t.id).pipe(ue(this.destroyRef)).subscribe({next:e=>{Xe(`${qf(e.name)}.json`,JSON.stringify(e,null,2),"application/json");},error:e=>{this.actionError.set(this.errorMessage(e,this.transloco.translate("workflows.list.exportFailed")));}});}downloadInstructions(){this.actionError.set(null),this.workflowsApi.getInstructions().pipe(ue(this.destroyRef)).subscribe({next:t=>{Xe("knoflows-workflow-agent-instructions.md",t,"text/markdown;charset=utf-8");},error:t=>{this.actionError.set(this.errorMessage(t,this.transloco.translate("workflows.list.instructionsFailed")));}});}onImportFile(t){let e=t.target,a=e.files?.[0];e.value="",!(!a||this.importing())&&this.readAndImport(a);}importJsonText(t){this.actionError.set(null);let e;try{e=JSON.parse(t);}catch(f){this.actionError.set(this.transloco.translate("workflows.list.importInvalidJson"));return}let a=V$.safeParse(e);if(!a.success){let f=T(a.error);this.actionError.set(`${this.transloco.translate("workflows.list.importInvalidSchema")}: ${f[0]??""}`);return}this.postImport(e);}readAndImport(t){return v(this,null,function*(){try{this.importJsonText(yield t.text());}catch(e){this.actionError.set(this.transloco.translate("workflows.list.importInvalidJson"));}})}postImport(t,e){this.importing.set(true),this.actionError.set(null),this.workflowsApi.importDefinition(e?{workflowDefinition:t,resolution:e}:{workflowDefinition:t}).pipe(ue(this.destroyRef)).subscribe({next:a=>{this.importing.set(false),this.router.navigate(["/workflows",a.id,"edit"]);},error:a=>{this.importing.set(false);let f=this.importConflict(a);if(f&&!e){this.openImportConflict(t,f.name);return}this.actionError.set(this.errorMessage(a,this.transloco.translate("workflows.list.importFailed")));}});}openImportConflict(t,e){(this.modal.create({nzTitle:this.transloco.translate("workflows.import.conflictTitle"),nzContent:Lt,nzData:{name:e},nzFooter:null}).afterClose??Dg(void 0)).pipe(ue(this.destroyRef)).subscribe(T=>{(T==="update"||T==="create_new")&&this.postImport(t,T);});}importConflict(t){if(!(t instanceof n$1)||t.httpStatus!==409||!t.details)return null;let e=t.details.conflictingWorkflowId,a=t.details.conflictingWorkflowName;return typeof e!="string"||typeof a!="string"?null:{id:e,name:a}}load(){let t=this.subjectHandlingFilter();this.loading.set(true),this.loadError.set(null),this.workflowsApi.list(t==="all"?void 0:{subjectHandling:t}).pipe(ue(this.destroyRef)).subscribe({next:e=>{this.workflows.set(e),this.loading.set(false);},error:e=>{this.loading.set(false),this.loadError.set(this.errorMessage(e,this.transloco.translate("workflows.list.loadFailed")));}});}errorMessage(t,e){return t instanceof n$1||t instanceof Error?t.message:e}static{this.\u0275fac=function(e){return new(e||i)};}static{this.\u0275cmp=QE({type:i,selectors:[["app-workflow-list"]],decls:24,vars:18,consts:[["importFileInput",""],["data-testid","workflows-list",1,"list-page"],[1,"header"],[1,"header-actions"],["type","file","accept","application/json,.json","hidden","","data-testid","import-file",3,"change"],["nz-button","","type","button","data-testid","import-workflow",3,"click","disabled"],["nz-button","","type","button","data-testid","download-instructions",3,"click"],["nz-button","","type","button","data-testid","browse-library",3,"click"],["nz-button","","nzType","primary","routerLink","/workflows/new","data-testid","create-workflow"],["data-testid","action-error",1,"error"],["data-testid","loading"],["data-testid","load-error",1,"error"],[1,"field"],["data-testid","subject-handling-filter",3,"ngModelChange","ngModel"],[3,"nzValue","nzLabel"],["data-testid","delete-error",1,"error"],["data-testid","empty-state",1,"empty"],["data-testid","workflow-items",3,"nzData","nzFrontPagination","nzShowPagination"],[1,"empty-actions"],["nz-button","","type","button","data-testid","empty-browse-library",3,"click"],["nz-button","","nzType","primary","routerLink","/workflows/new","data-testid","empty-create"],[1,"description-cell"],[1,"muted"],[1,"actions"],["nz-button","","nzType","link",3,"routerLink"],["nz-button","","nzType","link","type","button",3,"click"],["nz-button","","nzType","link","nzDanger","","type","button","nz-popconfirm","",3,"nzOnConfirm","nzPopconfirmTitle","nzOkText","nzCancelText"]],template:function(e,a){if(e&1){let f=LD();_i(0,"main",1)(1,"header",2)(2,"h1"),vw(3),Rw(4,"transloco"),Kc(),_i(5,"div",3)(6,"input",4,0),gh("change",function(U){return a.onImportFile(U)}),Kc(),_i(8,"button",5),gh("click",function(){Pu(f);let U=zD(7);return Lu(U.click())}),vw(9),Rw(10,"transloco"),Kc(),_i(11,"button",6),gh("click",function(){return a.downloadInstructions()}),vw(12),Rw(13,"transloco"),Kc(),_i(14,"button",7),gh("click",function(){return a.openLibrary()}),vw(15),Rw(16,"transloco"),Kc(),_i(17,"a",8),vw(18),Rw(19,"transloco"),Kc()()(),bD(20,Yt,2,1,"p",9),bD(21,te,3,3,"p",10)(22,ee,2,1,"p",11)(23,de,10,6),Kc();}e&2&&(gI(3),Ph(Ow(4,8,"workflows.list.title")),gI(5),ch("disabled",a.importing()),gI(),nl(" ",Ow(10,10,"workflows.list.import")," "),gI(3),nl(" ",Ow(13,12,"workflows.list.downloadInstructions")," "),gI(3),nl(" ",Ow(16,14,"workflows.list.browseLibrary")," "),gI(3),nl(" ",Ow(19,16,"workflows.list.createButton")," "),gI(2),_D(a.actionError()?20:-1),gI(),_D(a.loading()?21:a.loadError()?22:23));},dependencies:[Mi,o8,e8,T3,Ln,vd,Cc,r7,w7,Zn,_n,Cn,oM,E5,Y5,pc,as,dc,Kl,cc,Ji,ls,W,I,Kt$1],styles:[".list-page[_ngcontent-%COMP%]{padding:1.25rem 1.5rem 3rem;display:flex;flex-direction:column;gap:1rem}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.header-actions[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;flex-shrink:0;justify-content:flex-end}.field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.35rem;max-width:16rem}.field[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:.85rem;color:#57534e}.muted[_ngcontent-%COMP%]{color:#a8a29e;font-style:italic}.empty[_ngcontent-%COMP%]{text-align:center;padding:2.5rem 1rem;border:1px dashed #d6d3d1;background:#fff9}.empty[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 1rem;color:#57534e}.empty-actions[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-wrap:wrap;gap:.75rem}.error[_ngcontent-%COMP%]{color:#9f1239}.actions[_ngcontent-%COMP%]{white-space:nowrap}[_nghost-%COMP%] td.description-cell{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;text-overflow:unset;max-width:28rem;vertical-align:top}[_nghost-%COMP%] .ant-table-tbody>tr>td{white-space:normal;vertical-align:top}"]});}}return i})();export{si as WorkflowListComponent,si as WorkflowsManageComponent};