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

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 (82) hide show
  1. package/dist/engine.js +81 -13
  2. package/package.json +3 -3
  3. package/static/assets/i18n/en.json +43 -3
  4. package/static/assets/i18n/es.json +43 -3
  5. package/static/chunk-7nUPxia9.js +1 -0
  6. package/static/chunk-B5OZfu7U.js +1 -0
  7. package/static/chunk-B6yhN6h_.js +1 -0
  8. package/static/chunk-B8xDFyOW.js +1 -0
  9. package/static/chunk-BCQYv6zO.js +1 -0
  10. package/static/{chunk-hKpVm95g.js → chunk-BGD9WiFM.js} +1 -1
  11. package/static/{chunk-qwukwlIj.js → chunk-BRQzRdUy.js} +1 -1
  12. package/static/chunk-BT1tqKUa.js +1 -0
  13. package/static/chunk-BbMJvJVR.js +5 -0
  14. package/static/chunk-Bdf1gK_x.js +1 -0
  15. package/static/chunk-BgZJenki.js +1 -0
  16. package/static/chunk-BhOOhcFV.js +1 -0
  17. package/static/chunk-BphvnLVV.js +1 -0
  18. package/static/chunk-C4ekQTdr.js +1 -0
  19. package/static/chunk-CMCOXbTF.js +1 -0
  20. package/static/chunk-CVunAaEq.js +1 -0
  21. package/static/chunk-CWPY-qdb.js +1 -0
  22. package/static/chunk-C_RmBwoX.js +1 -0
  23. package/static/{chunk-C2eCmH-q.js → chunk-CjitpVjI.js} +1 -1
  24. package/static/chunk-CkEV4Kdw.js +1 -0
  25. package/static/chunk-CmjHhm0_.js +1 -0
  26. package/static/chunk-Cprdc3WE.js +1 -0
  27. package/static/chunk-CsI-lLXP.js +1 -0
  28. package/static/chunk-D1s098WO.js +1 -0
  29. package/static/chunk-D5uYKhQI.js +1 -0
  30. package/static/chunk-DCwYXBAy.js +1 -0
  31. package/static/{chunk-dUlsh7QS.js → chunk-DDsAcugC.js} +22 -22
  32. package/static/chunk-DWyVd0g2.js +1 -0
  33. package/static/chunk-Dn9gu9_q.js +1 -0
  34. package/static/chunk-Doaes0Yg.js +7 -0
  35. package/static/chunk-Dqf92YVW.js +1 -0
  36. package/static/chunk-Oq0qp-a6.js +1 -0
  37. package/static/chunk-PTPh9FQ2.js +1 -0
  38. package/static/chunk-PfPOHfb1.js +1 -0
  39. package/static/chunk-WIfL3i6D.js +1 -0
  40. package/static/{chunk-DWLHaSHg.js → chunk-ZTjXJrt4.js} +1 -1
  41. package/static/chunk-bbBn-iZU.js +1 -0
  42. package/static/chunk-gl_-d0La.js +1 -0
  43. package/static/chunk-hTFsYp4X.js +1 -0
  44. package/static/{chunk-DPWE5cPY.js → chunk-szOy8Im7.js} +1 -1
  45. package/static/index.html +2 -2
  46. package/static/main-OG6DVLH6.js +249 -0
  47. package/static/styles-4UB6RUIG.css +1 -0
  48. package/static/chunk-03U2wfYJ.js +0 -7
  49. package/static/chunk-6rAx_awr.js +0 -1
  50. package/static/chunk-BGEuPXoV.js +0 -1
  51. package/static/chunk-BLVF0pVH.js +0 -1
  52. package/static/chunk-BfWasMGf.js +0 -1
  53. package/static/chunk-Bvpl_AF9.js +0 -1
  54. package/static/chunk-CAjGF9LB.js +0 -1
  55. package/static/chunk-CT8olEiD.js +0 -1
  56. package/static/chunk-CUsAuTTX.js +0 -1
  57. package/static/chunk-CgXl_TS9.js +0 -1
  58. package/static/chunk-CqGGDoIh.js +0 -1
  59. package/static/chunk-Crj-4pl_.js +0 -1
  60. package/static/chunk-Ct30cLzT.js +0 -1
  61. package/static/chunk-Cw0wBuEr.js +0 -5
  62. package/static/chunk-CxBYhrEj.js +0 -1
  63. package/static/chunk-CxICQyU8.js +0 -1
  64. package/static/chunk-DGHakffX.js +0 -1
  65. package/static/chunk-DIakbH9x.js +0 -1
  66. package/static/chunk-DIntI-KR.js +0 -1
  67. package/static/chunk-DU6MKU0d.js +0 -1
  68. package/static/chunk-DUR5PalP.js +0 -1
  69. package/static/chunk-D_R_EFd2.js +0 -1
  70. package/static/chunk-DinAvqzQ.js +0 -1
  71. package/static/chunk-DlsGU_Dk.js +0 -1
  72. package/static/chunk-DwA32gts.js +0 -1
  73. package/static/chunk-IOVwMLns.js +0 -1
  74. package/static/chunk-L_FnMwpH.js +0 -1
  75. package/static/chunk-NAyA7aWR.js +0 -1
  76. package/static/chunk-TNH96m0D.js +0 -1
  77. package/static/chunk-Vz5kd858.js +0 -1
  78. package/static/chunk-h3oyPsBC.js +0 -1
  79. package/static/chunk-qYK5KaAK.js +0 -1
  80. package/static/chunk-vPa4eOmU.js +0 -1
  81. package/static/main-HV5WDK2F.js +0 -249
  82. package/static/styles-6MW3GE4V.css +0 -1
@@ -1,7 +0,0 @@
1
- import {G as Gn,u as un}from'./chunk-TNH96m0D.js';import {f}from'./chunk-BfWasMGf.js';import {B as Bt}from'./chunk-DIntI-KR.js';import {c,u,f as f$1,o as o$1,l}from'./chunk-CxBYhrEj.js';import {W,I}from'./chunk-Ct30cLzT.js';import'./chunk-BGEuPXoV.js';import'./chunk-C2eCmH-q.js';import {C,a as ae,T as Ie$1,$,V as Ve$1,b as at,q as qo,H as Hw,u as ue$1,W as rd,Y as Bw,o,Q as QE,M as Mi,L as Ln,d as dd,z as zc,c as t7,Z as y7,K as Kt,f as _i,m as bD,g as Kc,p as gI,B as _D,a0 as $0,a1 as B0,v as vw,R as Rw,P as Ph,O as Ow,E as VD,F as LD,h as gh,G as Pu,I as Lu,w as nl,a2 as Pw,a3 as xw,x as ch,N as ND,A as xD,l as lh,a4 as Mh,a5 as ah,U as Lh,a6 as Nw,a7 as MD}from'./main-HV5WDK2F.js';var pe=t=>({index:t}),ue=()=>[],ge=(t,s)=>s.definition.id,he=(t,s)=>s.index;function Se(t,s){if(t&1){let e=LD();_i(0,"div",1)(1,"button",2),gh("click",function(){Pu(e);let o=VD();return Lu(o.closeIteration())}),vw(2),Rw(3,"transloco"),Kc(),_i(4,"p",3),vw(5),Rw(6,"transloco"),Kc(),_i(7,"app-job-step-workspace",4),gh("selectExecution",function(o){Pu(e);let f=VD();return Lu(f.onNestedSelect(o))})("retryStep",function(){Pu(e);let o=VD();return Lu(o.retryStep.emit())}),Kc()();}if(t&2){let e=s,i=VD();gI(2),nl(" ",Ow(3,11,"jobs.detail.loopBack")," "),gI(3),nl(" ",Pw(6,13,"jobs.detail.loopIteration",xw(16,pe,e.index+1))," "),gI(2),ch("definitions",i.nestedLoopDefinition().steps)("executions",e.stepExecutions)("job",i.job())("selectedExecutionId",i.nestedSelectedId())("currentExecutionId",i.currentExecutionId())("waitingEvent",null)("canResume",false)("canRetryStep",i.canRetryStep())("retryingStep",i.retryingStep());}}function ve(t,s){if(t&1&&(_i(0,"nz-tag"),vw(1),Rw(2,"transloco"),Kc()),t&2){let e=VD().$implicit,i=VD(2);ah("data-testid","step-status-"+e.definition.id),gI(),Ph(Ow(2,2,i.stepStatusKey(s.status)));}}function Ee(t,s){if(t&1){let e=LD();_i(0,"li")(1,"button",9),gh("click",function(){let o=Pu(e).$implicit,f=VD(2);return Lu(f.onStepClick(o))}),_i(2,"span",10),vw(3),Kc(),_i(4,"span",11)(5,"span",12),vw(6),Rw(7,"transloco"),Kc(),bD(8,ve,3,4,"nz-tag"),Kc()()();}if(t&2){let e,i=s.$implicit,o=VD(2);gI(),Mh("selected",o.isSelected(i))("current",o.isCurrent(i))("unreached",!i.reached),ch("disabled",!i.reached),ah("data-testid","step-"+i.definition.id),gI(2),Ph(i.definition.name),gI(3),Ph(Ow(7,11,o.stepTypeKey(i.definition.type))),gI(2),_D((e=i.execution)?8:-1,e);}}function ye(t,s){t&1&&(_i(0,"p",8),vw(1),Rw(2,"transloco"),Kc()),t&2&&(gI(),nl(" ",Ow(2,1,"jobs.detail.noStepSelected")," "));}function we(t,s){t&1&&(_i(0,"p",16),vw(1),Rw(2,"transloco"),Kc()),t&2&&(gI(),Ph(Ow(2,1,"jobs.detail.inProgress.loop")));}function ke(t,s){if(t&1){let e=LD();_i(0,"li")(1,"button",19),gh("click",function(){let o=Pu(e).$implicit,f=VD(4);return Lu(f.openIteration(f.selectedDefinition(),o))}),vw(2),Rw(3,"transloco"),Kc()();}if(t&2){let e=s.$implicit;gI(),ah("data-testid","loop-iteration-"+e.index),gI(),nl(" ",Pw(3,2,"jobs.detail.loopIteration",xw(5,pe,e.index+1))," ");}}function Te(t,s){t&1&&(_i(0,"li",12),vw(1),Rw(2,"transloco"),Kc()),t&2&&(gI(),Ph(Ow(2,1,"jobs.detail.noIterations")));}function Ie(t,s){if(t&1&&(_i(0,"p",18),vw(1),Kc()),t&2){let e=VD(4);gI(),Ph(e.selectedExecution().error);}}function je(t,s){if(t&1&&(_i(0,"div",13)(1,"h3"),vw(2),Kc(),bD(3,we,3,3,"p",16),_i(4,"ul",17),ND(5,ke,4,7,"li",null,he,false,Te,3,3,"li",12),Kc(),bD(8,Ie,2,1,"p",18),Kc()),t&2){let e=VD(3);gI(2),Ph(e.selectedDefinition()?.name),gI(),_D(e.isRunning(e.selectedExecution())?3:-1),gI(2),xD(e.selectedExecution().iterations??Nw(4,ue)),gI(3),_D(e.selectedExecution().error?8:-1);}}function Me(t,s){t&1&&(_i(0,"p",16),vw(1),Rw(2,"transloco"),Kc()),t&2&&(gI(),nl(" ",Ow(2,1,"jobs.detail.inProgress.sub_workflow")," "));}function De(t,s){if(t&1&&(_i(0,"p",18),vw(1),Kc()),t&2){let e=VD(4);gI(),Ph(e.selectedExecution().error);}}function Je(t,s){if(t&1&&(_i(0,"div",14)(1,"h3"),vw(2),Kc(),bD(3,Me,3,3,"p",16),lh(4,"app-job-status-table",20),bD(5,De,2,1,"p",18),Kc()),t&2){let e=VD(3);gI(2),Ph(e.selectedDefinition()?.name),gI(),_D(e.isRunning(e.selectedExecution())?3:-1),gI(),ch("jobIds",e.selectedExecution().childJobIds??Nw(4,ue)),gI(),_D(e.selectedExecution().error?5:-1);}}function Pe(t,s){if(t&1&&(_i(0,"li"),vw(1),Kc()),t&2){let e=s.$implicit;gI(),Ph(e);}}function Ne(t,s){t&1&&(_i(0,"li",12),vw(1),Rw(2,"transloco"),Kc()),t&2&&(gI(),Ph(Ow(2,1,"jobs.resume.noQuestions")));}function We(t,s){if(t&1&&(_i(0,"p",25),vw(1),Kc()),t&2){let e=VD(5);gI(),Ph(e.resumeParseError());}}function ze(t,s){if(t&1){let e=LD();_i(0,"section",21)(1,"h4"),vw(2),Rw(3,"transloco"),Kc(),_i(4,"ul",23),ND(5,Pe,2,1,"li",null,MD,false,Ne,3,3,"li",12),Kc(),_i(8,"label"),vw(9),Rw(10,"transloco"),_i(11,"textarea",24),gh("input",function(o){Pu(e);let f=VD(4);return Lu(f.onResumeTextInput(o))}),Kc()(),bD(12,We,2,1,"p",25),_i(13,"button",26),gh("click",function(){Pu(e);let o=VD(4);return Lu(o.resumeSubmit.emit())}),vw(14),Rw(15,"transloco"),Kc()();}if(t&2){let e=VD(4);gI(2),Ph(Ow(3,7,"jobs.resume.heading")),gI(3),xD(e.waitingPrompts()),gI(4),nl(" ",Ow(10,9,"jobs.resume.jsonLabel")," "),gI(2),ch("value",e.resumeText()),gI(),_D(e.resumeParseError()?12:-1),gI(),ch("disabled",e.resuming()),gI(),nl(" ",Ow(15,11,e.resuming()?"jobs.resume.submitting":"jobs.resume.button")," ");}}function Re(t,s){if(t&1&&(_i(0,"pre",22),vw(1),Kc()),t&2){let e=VD(4);gI(),Ph(e.formatOutput(e.selectedExecution()));}}function Oe(t,s){if(t&1&&(_i(0,"div",15)(1,"h3"),vw(2),Kc(),bD(3,ze,16,13,"section",21)(4,Re,2,1,"pre",22),Kc()),t&2){let e=VD(3);gI(2),Ph(e.selectedDefinition()?.name),gI(),_D(e.showResume()?3:4);}}function Ve(t,s){if(t&1&&(_i(0,"p",16),vw(1),Rw(2,"transloco"),Kc()),t&2){let e=VD(4);gI(),nl(" ",Ow(2,1,"jobs.detail.inProgress."+e.selectedExecution().type)," ");}}function Be(t,s){if(t&1){let e=LD();_i(0,"button",29),gh("click",function(){Pu(e);let o=VD(5);return Lu(o.retryStep.emit())}),vw(1),Rw(2,"transloco"),Kc();}if(t&2){let e=VD(5);ch("disabled",e.retryingStep()),gI(),nl(" ",Ow(2,2,e.retryingStep()?"jobs.detail.retrying":"jobs.detail.retryStep")," ");}}function Fe(t,s){if(t&1&&(_i(0,"p",27),vw(1),Kc(),bD(2,Be,3,4,"button",28)),t&2){let e=VD(4);gI(),Ph(e.selectedExecution().error),gI(),_D(e.showRetryStep()?2:-1);}}function Ae(t,s){if(t&1&&(_i(0,"pre",22),vw(1),Kc()),t&2){let e=VD(4);gI(),Ph(e.formatOutput(e.selectedExecution()));}}function Le(t,s){if(t&1&&(_i(0,"div")(1,"h3"),vw(2),Kc(),bD(3,Ve,3,3,"p",16)(4,Fe,3,2)(5,Ae,2,1,"pre",22),Kc()),t&2){let e=VD(3);ah("data-testid",e.selectedExecution().type+"-view"),gI(2),Ph(e.selectedDefinition()?.name),gI(),_D(e.isRunning(e.selectedExecution())?3:e.selectedExecution().error||e.selectedExecution().status==="failed"?4:5);}}function $e(t,s){if(t&1&&bD(0,je,9,5,"div",13)(1,Je,6,5,"div",14)(2,Oe,5,2,"div",15)(3,Le,6,3,"div"),t&2){let e,i=VD(2);_D((e=i.selectedExecution().type)==="loop"?0:e==="sub_workflow"?1:e==="interaction"?2:3);}}function qe(t,s){if(t&1&&(_i(0,"aside",5)(1,"h3"),vw(2),Rw(3,"transloco"),Kc(),_i(4,"ul",6),ND(5,Ee,9,13,"li",null,ge),Kc()(),_i(7,"section",7),bD(8,ye,3,3,"p",8)(9,$e,4,1),Kc()),t&2){let e=VD();gI(2),Ph(Ow(3,2,"jobs.detail.stepsHeading")),gI(3),xD(e.rows()),gI(3),_D(e.selectedExecution()?9:8);}}var me=(()=>{class t{constructor(){this.definitions=$0.required(),this.executions=$0.required(),this.job=$0.required(),this.selectedExecutionId=$0(null),this.currentExecutionId=$0(null),this.waitingEvent=$0(null),this.resumeText=$0(`{
2
-
3
- }`),this.resumeParseError=$0(null),this.resuming=$0(false),this.canResume=$0(false),this.canRetryStep=$0(false),this.retryingStep=$0(false),this.selectExecution=B0(),this.resumeTextChange=B0(),this.resumeSubmit=B0(),this.retryStep=B0(),this.nestedIteration=qo(null),this.nestedLoopDefinition=qo(null),this.nestedSelectedId=qo(null),this.rows=Hw(()=>o$1(this.definitions(),this.executions())),this.selectedExecution=Hw(()=>{let e=this.selectedExecutionId();return e?this.executions().find(i=>i.id===e)??null:null}),this.selectedDefinition=Hw(()=>{let e=this.selectedExecution();return e?this.definitions().find(i=>i.id===e.stepDefinitionId)??null:null}),this.waitingPrompts=Hw(()=>{let e=this.waitingEvent();return e?e.questions.length>0?e.questions:e.data!=null?[JSON.stringify(e.data,null,2)]:[]:[]}),this.showResume=Hw(()=>{if(!this.canResume())return false;let e=this.selectedExecution(),i=this.currentExecutionId();return e!=null&&e.id===i&&e.type==="interaction"&&this.job().status==="waiting_for_human"}),this.showRetryStep=Hw(()=>{if(!this.canRetryStep())return false;let e=this.selectedExecution();return !e||e.status!=="failed"||e.id!==this.currentExecutionId()?false:l(e.type)});}stepStatusKey(e){return `jobs.stepStatus.${e}`}stepTypeKey(e){return `step-list.stepType.${e}`}onStepClick(e){!e.reached||!e.execution||(this.nestedIteration.set(null),this.nestedLoopDefinition.set(null),this.selectExecution.emit(e.execution.id));}openIteration(e,i){this.nestedLoopDefinition.set(e),this.nestedIteration.set(i);let o=i.stepExecutions[0];this.nestedSelectedId.set(o?.id??null);}closeIteration(){this.nestedIteration.set(null),this.nestedLoopDefinition.set(null),this.nestedSelectedId.set(null);}onNestedSelect(e){this.nestedSelectedId.set(e);}onResumeTextInput(e){this.resumeTextChange.emit(e.target.value);}formatOutput(e){return e.error?e.error:e.output===void 0?"":typeof e.output=="string"?e.output:JSON.stringify(e.output,null,2)}isRunning(e){return e?.status==="running"}isSelected(e){return e.execution!=null&&e.execution.id===this.selectedExecutionId()}isCurrent(e){return e.execution!=null&&e.execution.id===this.currentExecutionId()}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275cmp=QE({type:t,selectors:[["app-job-step-workspace"]],inputs:{definitions:[1,"definitions"],executions:[1,"executions"],job:[1,"job"],selectedExecutionId:[1,"selectedExecutionId"],currentExecutionId:[1,"currentExecutionId"],waitingEvent:[1,"waitingEvent"],resumeText:[1,"resumeText"],resumeParseError:[1,"resumeParseError"],resuming:[1,"resuming"],canResume:[1,"canResume"],canRetryStep:[1,"canRetryStep"],retryingStep:[1,"retryingStep"]},outputs:{selectExecution:"selectExecution",resumeTextChange:"resumeTextChange",resumeSubmit:"resumeSubmit",retryStep:"retryStep"},decls:3,vars:1,consts:[["data-testid","job-step-workspace",1,"workspace"],["data-testid","loop-drill-in",1,"nested"],["nz-button","","nzType","link","type","button","data-testid","loop-back",3,"click"],[1,"nested-label"],[3,"selectExecution","retryStep","definitions","executions","job","selectedExecutionId","currentExecutionId","waitingEvent","canResume","canRetryStep","retryingStep"],["data-testid","step-side-panel",1,"side-panel"],[1,"step-list"],["data-testid","step-main-area",1,"main-area"],["data-testid","no-step-selected",1,"muted"],["type","button",1,"step-button",3,"click","disabled"],[1,"step-name"],[1,"step-meta"],[1,"muted"],["data-testid","loop-view"],["data-testid","sub-workflow-view"],["data-testid","interaction-view"],["data-testid","step-in-progress"],["data-testid","loop-iterations",1,"iteration-list"],[1,"error"],["nz-button","","nzType","link","type","button",3,"click"],[3,"jobIds"],["data-testid","resume-form",1,"resume"],["data-testid","step-output"],["data-testid","waiting-questions"],["data-testid","resume-json","rows","8",3,"input","value"],["data-testid","resume-parse-error",1,"error"],["nz-button","","nzType","primary","type","button","data-testid","resume-button",3,"click","disabled"],["data-testid","step-error",1,"error"],["nz-button","","nzType","primary","type","button","data-testid","retry-step",3,"disabled"],["nz-button","","nzType","primary","type","button","data-testid","retry-step",3,"click","disabled"]],template:function(i,o){if(i&1&&(_i(0,"div",0),bD(1,Se,8,18,"div",1)(2,qe,10,4),Kc()),i&2){let f;gI(),_D((f=o.nestedIteration())?1:2,f);}},dependencies:[t,Mi,dd,zc,t7,y7,W,I,Bt,Kt],styles:[".workspace[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(14rem,18rem) 1fr;gap:1rem;align-items:start;min-height:20rem}.nested[_ngcontent-%COMP%]{grid-column:1 / -1}.nested-label[_ngcontent-%COMP%]{margin:0 0 .75rem;color:#57534e}.side-panel[_ngcontent-%COMP%]{border:1px solid #d6d3d1;background:#ffffffbf;padding:.75rem}.side-panel[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 .5rem;font-size:1rem}.step-list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.35rem}.step-button[_ngcontent-%COMP%]{width:100%;text-align:left;font:inherit;padding:.45rem .55rem;border:1px solid transparent;background:transparent;cursor:pointer;display:flex;flex-direction:column;gap:.2rem}.step-button[_ngcontent-%COMP%]:hover:not(:disabled){background:#f5f5f4}.step-button.selected[_ngcontent-%COMP%]{border-color:#a8a29e;background:#fafaf9}.step-button.current[_ngcontent-%COMP%]{box-shadow:inset 3px 0 #0c0a09}.step-button[_ngcontent-%COMP%]:disabled, .step-button.unreached[_ngcontent-%COMP%]{opacity:.55;cursor:not-allowed}.step-name[_ngcontent-%COMP%]{font-weight:600}.step-meta[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center;font-size:.8rem}.main-area[_ngcontent-%COMP%]{border:1px solid #d6d3d1;background:#ffffffd9;padding:1rem;min-height:16rem}.main-area[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-top:0}.muted[_ngcontent-%COMP%]{color:#78716c}.error[_ngcontent-%COMP%]{color:#9f1239}[data-testid=retry-step][_ngcontent-%COMP%]{margin-top:.5rem}pre[_ngcontent-%COMP%]{overflow:auto;padding:.75rem;background:#f5f5f4;border:1px solid #d6d3d1;font-size:.85rem}.iteration-list[_ngcontent-%COMP%]{padding-left:1.1rem}.resume[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.35rem;margin:.75rem 0}.resume[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{font:inherit;font-family:ui-monospace,Consolas,monospace;padding:.4rem .5rem;border:1px solid #a8a29e}@media(max-width:48rem){.workspace[_ngcontent-%COMP%]{grid-template-columns:1fr}}"]});}}return t})();function Ke(t,s){t&1&&(_i(0,"p",1),vw(1),Rw(2,"transloco"),Kc()),t&2&&(gI(),Ph(Ow(2,1,"common.loading")));}function Qe(t,s){if(t&1&&(_i(0,"p",2),vw(1),Kc()),t&2){let e=VD();gI(),Ph(e.loadError());}}function He(t,s){if(t&1&&(vw(0),Rw(1,"transloco")),t&2){let e=VD(2);Lh(" ",Ow(1,2,"jobs.detail.worktreeDeleted")," ",e.worktreeDeletedAt," ");}}function Ue(t,s){if(t&1&&vw(0),t&2){let e=VD(3);nl(" (",e.branch,") ");}}function Ge(t,s){if(t&1&&(vw(0),Rw(1,"transloco"),bD(2,Ue,1,1)),t&2){let e=VD(2);Lh(" ",Ow(1,3,"jobs.detail.worktree")," ",e.worktreePath," "),gI(2),_D(e.branch?2:-1);}}function Xe(t,s){if(t&1&&(_i(0,"p",10),bD(1,He,2,4)(2,Ge,3,5),Kc()),t&2){let e=VD();gI(),_D(e.worktreeDeletedAt?1:2);}}function Ye(t,s){if(t&1){let e=LD();_i(0,"button",19),gh("click",function(){Pu(e);let o=VD(2);return Lu(o.cancelJob())}),vw(1),Rw(2,"transloco"),Kc();}if(t&2){let e=VD(2);ch("disabled",e.cancelling()),gI(),nl(" ",Ow(2,2,e.cancelling()?"jobs.detail.cancelling":"jobs.detail.cancel")," ");}}function Ze(t,s){if(t&1){let e=LD();_i(0,"button",20),gh("click",function(){Pu(e);let o=VD(2);return Lu(o.retryWorkflow())}),vw(1),Rw(2,"transloco"),Kc();}if(t&2){let e=VD(2);ch("disabled",e.retryingWorkflow()),gI(),nl(" ",Ow(2,2,e.retryingWorkflow()?"jobs.detail.retrying":"jobs.detail.retryWorkflow")," ");}}function et(t,s){if(t&1){let e=LD();_i(0,"button",21),gh("click",function(){Pu(e);let o=VD(2);return Lu(o.jumpToCurrent())}),vw(1),Rw(2,"transloco"),Kc();}t&2&&(gI(),nl(" ",Ow(2,1,"jobs.detail.jumpToCurrent")," "));}function tt(t,s){if(t&1&&(_i(0,"p",15),vw(1),Kc()),t&2){let e=VD(2);gI(),Ph(e.actionError());}}function it(t,s){t&1&&(lh(0,"nz-alert",16),Rw(1,"transloco")),t&2&&ch("nzMessage",Ow(1,1,"jobs.detail.queued"));}function nt(t,s){if(t&1){let e=LD();_i(0,"app-job-step-workspace",22),gh("selectExecution",function(o){Pu(e);let f=VD(2);return Lu(f.onSelectExecution(o))})("resumeTextChange",function(o){Pu(e);let f=VD(2);return Lu(f.setResumeText(o))})("resumeSubmit",function(){Pu(e);let o=VD(2);return Lu(o.submitResume())})("retryStep",function(){Pu(e);let o=VD(2);return Lu(o.retryThisStep())}),Kc();}if(t&2){let e=VD(),i=VD();ch("definitions",s.steps)("executions",e.stepHistory)("job",e)("selectedExecutionId",i.viewedExecutionId())("currentExecutionId",i.blockingExecutionId()??i.currentStep()?.id??null)("waitingEvent",i.waitingEvent())("resumeText",i.resumeText())("resumeParseError",i.resumeParseError())("resuming",i.resuming())("canResume",true)("canRetryStep",e.status==="failed")("retryingStep",i.retryingStep());}}function ot(t,s){t&1&&(_i(0,"p",18),vw(1),Rw(2,"transloco"),Kc()),t&2&&(gI(),nl(" ",Ow(2,1,"jobs.detail.workflowMissing")," "));}function rt(t,s){if(t&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,"span",7),vw(9),Kc(),vw(10," \xB7 "),_i(11,"nz-tag",8),vw(12),Rw(13,"transloco"),Kc(),vw(14," \xB7 "),_i(15,"span",9),vw(16),Kc()(),bD(17,Xe,3,1,"p",10),Kc(),_i(18,"div",11),bD(19,Ye,3,4,"button",12),bD(20,Ze,3,4,"button",13),bD(21,et,3,3,"button",14),Kc()(),bD(22,tt,2,1,"p",15),bD(23,it,2,3,"nz-alert",16)(24,nt,1,12,"app-job-step-workspace",17)(25,ot,3,3,"p",18)),t&2){let e,i=s,o=VD();gI(3),Ph(Ow(4,11,"jobs.detail.backToStart")),gI(3),Ph(i.id),gI(3),Ph(i.workflowId),gI(3),Ph(Ow(13,13,o.statusKey(i.status))),gI(4),Ph(o.subjectText()),gI(),_D(i.worktreePath?17:-1),gI(2),_D(o.isTerminalStatus(i.status)?-1:19),gI(),_D(i.status==="failed"?20:-1),gI(),_D(o.showJumpToCurrent()?21:-1),gI(),_D(o.actionError()?22:-1),gI(),_D(o.showQueued()?23:(e=o.workflow())?24:25,e);}}var Mt=(()=>{class t{constructor(){this.route=C(ae),this.router=C(Ie$1),this.jobsApi=C($),this.eventsService=C(f),this.transloco=C(Ve$1),this.destroyRef=C(at),this.job=qo(null),this.workflow=qo(null),this.loading=qo(true),this.loadError=qo(null),this.actionError=qo(null),this.eventStream=qo(null),this.eventsSnapshot=qo([]),this.autoFollow=qo(true),this.viewedExecutionId=qo(null),this.resumeText=qo(`{
4
-
5
- }`),this.resumeParseError=qo(null),this.resuming=qo(false),this.retryingWorkflow=qo(false),this.retryingStep=qo(false),this.cancelling=qo(false),this.currentStep=Hw(()=>{let e=this.job();return e?c(e):null}),this.showQueued=Hw(()=>{let e=this.job();return e!=null&&c(e)==null}),this.showJumpToCurrent=Hw(()=>{let e=this.currentStep();return e?this.viewedExecutionId()!==e.id:false}),this.eventLog=Hw(()=>this.eventStream()?.events()??this.eventsSnapshot()),this.waitingEvent=Hw(()=>{let e=this.eventLog();for(let i=e.length-1;i>=0;i-=1){let o=e[i];if(o?.type==="waiting_for_human")return o}return null}),this.blockingExecutionId=Hw(()=>this.job()?.currentStepExecutionId??null),this.destroyRef.onDestroy(()=>this.closeStream()),this.route.paramMap.pipe(ue$1(this.destroyRef)).subscribe(e=>{let i=e.get("id");if(!i){this.loading.set(false),this.loadError.set(this.transloco.translate("jobs.detail.loadFailed"));return}this.load(i);}),rd(()=>{let e=this.eventStream();if(!e)return;let i=e.latest();i&&Bw(()=>{(i.type==="step_started"||i.type==="step_completed"||i.type==="step_failed"||i.type==="waiting_for_human"||i.type==="waiting_for_children"||i.type==="human_answered"||i.type==="job_completed"||i.type==="job_failed"||i.type==="job_cancelled")&&this.refreshJob(i.jobId),(i.type==="job_completed"||i.type==="job_failed"||i.type==="job_cancelled")&&this.closeStream();});}),rd(()=>{let e=this.currentStep();this.autoFollow()&&Bw(()=>{this.viewedExecutionId.set(e?.id??null);});});}statusKey(e){return `jobs.status.${e}`}isTerminalStatus(e){return u(e)}subjectText(){return f$1(this.job()?.subjectContext)??"\u2014"}onSelectExecution(e){this.autoFollow.set(false),this.viewedExecutionId.set(e);}jumpToCurrent(){this.autoFollow.set(true),this.viewedExecutionId.set(this.currentStep()?.id??null);}setResumeText(e){this.resumeText.set(e),this.resumeParseError.set(null);}submitResume(){let e=this.job();if(!e)return;let i;try{i=JSON.parse(this.resumeText());}catch(o){this.resumeParseError.set(o instanceof Error?o.message:this.transloco.translate("jobs.resume.invalidJson"));return}this.resumeParseError.set(null),this.actionError.set(null),this.resuming.set(true),this.jobsApi.resume(e.id,i).subscribe({next:o=>{this.resuming.set(false),this.applyJob(o),u(o.status)&&this.closeStream();},error:o=>{this.resuming.set(false),this.actionError.set(this.errorMessage(o,this.transloco.translate("jobs.errors.resumeFailed")));}});}retryWorkflow(){let e=this.job();!e||e.status!=="failed"||this.retryingWorkflow()||(this.actionError.set(null),this.retryingWorkflow.set(true),this.jobsApi.retry(e.id).subscribe({next:i=>{this.retryingWorkflow.set(false),this.router.navigate(["/jobs",i.id]);},error:i=>{this.retryingWorkflow.set(false),this.actionError.set(this.errorMessage(i,this.transloco.translate("jobs.errors.retryFailed")));}}));}retryThisStep(){let e=this.job();!e||e.status!=="failed"||this.retryingStep()||(this.actionError.set(null),this.retryingStep.set(true),this.jobsApi.retryStep(e.id).subscribe({next:i=>{this.retryingStep.set(false),this.applyJob(i),u(i.status)?this.closeStream():(this.closeStream(),this.eventStream.set(this.eventsService.connect({jobId:i.id})));},error:i=>{this.retryingStep.set(false),this.actionError.set(this.errorMessage(i,this.transloco.translate("jobs.errors.retryStepFailed")));}}));}cancelJob(){let e=this.job();!e||u(e.status)||this.cancelling()||(this.actionError.set(null),this.cancelling.set(true),this.jobsApi.cancel(e.id).subscribe({next:i=>{this.cancelling.set(false),this.applyJob(i),u(i.status)&&this.closeStream();},error:i=>{this.cancelling.set(false),this.actionError.set(this.errorMessage(i,this.transloco.translate("jobs.errors.cancelFailed")));}}));}load(e){this.loading.set(true),this.loadError.set(null),this.actionError.set(null),this.autoFollow.set(true),this.viewedExecutionId.set(null),this.resumeText.set(`{
6
-
7
- }`),this.resumeParseError.set(null),this.retryingWorkflow.set(false),this.retryingStep.set(false),this.cancelling.set(false),this.closeStream(),this.eventsSnapshot.set([]),this.jobsApi.get(e).pipe(ue$1(this.destroyRef)).subscribe({next:i=>{this.applyJob(i),this.loading.set(false),u(i.status)||this.eventStream.set(this.eventsService.connect({jobId:i.id}));},error:i=>{this.loading.set(false),this.loadError.set(this.errorMessage(i,this.transloco.translate("jobs.detail.loadFailed")));}});}applyJob(e){this.job.set(e),this.workflow.set(e.workflowSnapshot??null),this.autoFollow()&&this.viewedExecutionId.set(c(e)?.id??null);}refreshJob(e){this.jobsApi.get(e).subscribe({next:i=>this.applyJob(i),error:i=>{this.actionError.set(this.errorMessage(i,this.transloco.translate("jobs.errors.refreshFailed")));}});}closeStream(){let e=this.eventStream();e&&(this.eventsSnapshot.set(e.events()),e.close(),this.eventStream.set(null));}errorMessage(e,i){return e instanceof o||e instanceof Error?e.message:i}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275cmp=QE({type:t,selectors:[["app-job-detail"]],decls:4,vars:1,consts:[["data-testid","job-detail",1,"detail-page"],["data-testid","loading"],["data-testid","load-error",1,"error"],[1,"header"],["routerLink","/jobs"],["data-testid","job-id"],[1,"meta"],["data-testid","job-workflow"],["data-testid","job-status"],["data-testid","job-subject"],["data-testid","job-worktree",1,"meta"],[1,"header-actions"],["nz-button","","nzDanger","","type","button","data-testid","cancel-job",3,"disabled"],["nz-button","","nzType","primary","type","button","data-testid","retry-workflow",3,"disabled"],["nz-button","","type","button","data-testid","jump-to-current"],["data-testid","action-error",1,"error"],["data-testid","queued-message","nzType","info",3,"nzMessage"],[3,"definitions","executions","job","selectedExecutionId","currentExecutionId","waitingEvent","resumeText","resumeParseError","resuming","canResume","canRetryStep","retryingStep"],["data-testid","missing-workflow",1,"muted"],["nz-button","","nzDanger","","type","button","data-testid","cancel-job",3,"click","disabled"],["nz-button","","nzType","primary","type","button","data-testid","retry-workflow",3,"click","disabled"],["nz-button","","type","button","data-testid","jump-to-current",3,"click"],[3,"selectExecution","resumeTextChange","resumeSubmit","retryStep","definitions","executions","job","selectedExecutionId","currentExecutionId","waitingEvent","resumeText","resumeParseError","resuming","canResume","canRetryStep","retryingStep"]],template:function(i,o){if(i&1&&(_i(0,"main",0),bD(1,Ke,3,3,"p",1)(2,Qe,2,1,"p",2)(3,rt,26,15),Kc()),i&2){let f;gI(),_D(o.loading()?1:o.loadError()?2:(f=o.job())?3:-1,f);}},dependencies:[Mi,Ln,Gn,un,dd,zc,t7,y7,W,I,me,Kt],styles:[".detail-page[_ngcontent-%COMP%]{max-width:72rem;margin:0 auto;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:.5rem;align-items:center}.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}.error[_ngcontent-%COMP%]{color:#9f1239}.muted[_ngcontent-%COMP%]{color:#78716c}"]});}}return t})();export{Mt as JobDetailComponent};
@@ -1 +0,0 @@
1
- import {T}from'./chunk-CqGGDoIh.js';import {T as Tx,e as ey}from'./chunk-dUlsh7QS.js';import {a as ai,z}from'./chunk-DlsGU_Dk.js';import {C,a as ae,T as Ie,ai as u,b as at,V as Ve,aS as O,aT as de,al as Se,q as qo,H as Hw,u as ue$1,r,o,Q as QE,M as Mi,n as n8,am as S4,J as J6,k as k3,L as Ln,d as dd,z as zc,c as t7,Z as y7,X as Xb,e as V5,D as D5,K as Kt,f as _i,v as vw,g as Kc,R as Rw,h as gh,m as bD,p as gI,P as Ph,O as Ow,x as ch,w as nl,B as _D,E as VD,F as LD,j as oE,N as ND,y as sE,A as xD,S as SD,l as lh,G as Pu,I as Lu}from'./main-HV5WDK2F.js';import {a as ae$1,l as le}from'./chunk-Vz5kd858.js';import'./chunk-DWLHaSHg.js';import {U}from'./chunk-DUR5PalP.js';import'./chunk-C2eCmH-q.js';var me=(t,s)=>s.id;function ue(t,s){t&1&&(_i(0,"p",5),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",6),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",7)(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",11),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",13),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",7),_i(1,"label",8)(2,"span"),vw(3),Rw(4,"transloco"),Kc(),_i(5,"input",9),gh("ngModelChange",function(i){Pu(e);let u=VD();return Lu(u.name.set(i))}),Kc(),oE(),Kc(),_i(6,"div",8)(7,"span"),vw(8),Rw(9,"transloco"),Kc(),_i(10,"nz-select",10),gh("ngModelChange",function(i){Pu(e);let u=VD();return Lu(u.onWorkflowChange(i))}),ND(11,_e,1,2,"nz-option",11,me),Kc(),oE(),Kc(),bD(13,we,1,2,"app-workflow-input-form",12);}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(U),this.message=C(Tx),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",{id:this.routeId()}))),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=ey.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$1){return e instanceof o||e instanceof Error?e.message:o$1}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"],[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"),vw(4),Kc()(),_i(5,"div",2)(6,"a",3),vw(7),Rw(8,"transloco"),Kc(),_i(9,"button",4),gh("click",function(){return i.save()}),vw(10),Rw(11,"transloco"),Kc()()(),bD(12,ue,3,3,"p",5)(13,he,2,1,"p",6)(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,n8,S4,J6,k3,Ln,dd,zc,t7,y7,ai,z,Xb,V5,D5,le,Kt],styles:[".editor[_ngcontent-%COMP%]{max-width:40rem;margin:0 auto;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 {z,b,M,R}from'./chunk-C2eCmH-q.js';import {an as YE,ao as uu,C,as as oe,ar as _r,at as z0,au as a3,aw as Le,b as at,bL as A,aZ as ga$1,bM as Le$1,W as rd,u as ue,ay as St,Q as QE,n as n8,cN as w0,J as J6,k as k3,aF as Z0,b9 as BD,f as _i,h as gh,g as Kc,j as oE,l as lh,bn as $D,a4 as Mh,p as gI,x as ch,a5 as ah,y as sE,aG as Sw,aH as h1,aI as wo$1,aJ as Ih,aK as qD,aL as WD,ap as pT,cO as wn,aq as kt,av as hT,a0 as $0,cP as Ln,b8 as es$1,aE as ly,aV as Y0,m as bD,B as _D,cQ as On,bq as Vt,bW as on,cR as Fg,al as Se,cS as m9,aN as nh,ba as Lw,bs as vh,bu as XE,c3 as XI,bz as re,b4 as a9,bB as Gl$1,ak as Ml$1,cT as mt$1,ab as Dg,cU as zg,cV as Ie$1,cC as Yg,cW as Ri$1,cX as xn$1,cY as is$1,R as Rw,O as Ow,q as qo$1,b0 as Uw,H as Hw,b5 as Kf,Y as Bw,cZ as c9,X as Xb,e as V5,D as D5,aA as pt,aB as Se$1,bk as zD,ca as Aw,aM as ut$1,aC as Tt$1,aD as Ie$2,c_ as J,c$ as rn,bS as on$1,d0 as nn,d1 as an,d2 as W1,s,r,d3 as o9,d as dd,z as zc,c as t7,Z as y7,d4 as jt$1,d5 as S,i as ie,cB as Kg,d6 as Vl$1,d7 as om,E as VD,N as ND,a7 as MD,A as xD,d8 as Yc,ag as _h,F as LD,v as vw,w as nl$1,d9 as TD,cj as fh,da as ph,aO as el$1,aP as tl$1,P as Ph,br as sw,L as Ln$1,T as Ie$3,db as X,dc as r9,aQ as Jc,aR as Xc,cy as ji$1,ch as t4,dd as u0,de as m0,bv as uh,aY as Ee,df as rs,dg as Qg,dh as un$1,cK as vn,bE as pn,di as hn$1,bZ as Pa$1,cI as _e,cG as r2,cH as a2,bK as G1,S as SD,G as Pu,I as Lu,cn as fn$1,co as f1,dj as Dt,dk as f9,dl as v9,bc as rD,dm as pb,be as cw,a1 as B0,cu as s0,dn as h0,cw as ri,cv as oi,dp as X$1,bx as Er,ci as ec}from'./main-HV5WDK2F.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(Le).valueSignal;destroyRef=C(at);checkboxGroupComponent=C(yi,{optional:true});nzFormStatusService=C(ga$1,{optional:true});isNzDisableFirstChange=true;onChange=()=>{};onTouched=()=>{};inputElement;nzCheckedChange=new Le$1;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:h1,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:[n8,w0,J6,k3],encapsulation:2})}return t})(),eo=(()=>{class t{onChange=()=>{};onTouched=()=>{};isDisabledFirstChange=true;dir=C(Le).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:h1,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$1;gotoIndex=new Le$1;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$1;pageSizeChange=new Le$1;listOfPageSizeOption=[];onPageSizeChange(e){this.pageSize!==e&&this.pageSizeChange.next(e);}jumpToPageViaInput(e){let i=e.target,n=Math.floor(c9(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:[Xb,V5,D5,n8,J6,k3],encapsulation:2})}return t})(),Mi=(()=>{class t{dir=C(Le).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$1;pageSizeChange=new Le$1;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(Le).valueSignal;template;itemRender=null;disabled=false;locale;total=0;pageIndex=1;pageSize=10;pageIndexChange=new Le$1;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=c9(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(wn);cdr=C(z0);breakpointService=C(z);nzConfigService=C(kt);dir=C(Le).valueSignal;destroyRef=C(at);nzPageSizeChange=new Le$1;nzPageIndexChange=new Le$1;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$1(()=>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",r9],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(Le).valueSignal;menuClass=$0("");open=$0(false);leavedClassName=$0(f9(vt,"submenu-hidden"));mergedClass=Hw(()=>{let e=v9(this.menuClass())||[],i=[vt,f9(vt,"inline"),f9(vt,"sub"),...e];return this.dir()==="rtl"&&i.push(f9(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:pb,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:h0},aa=(()=>{class t{isMenuInsideDropdown=C(ve);dir=C(Le).valueSignal;menuClass=$0("");theme=$0("light");mode=$0("vertical");position=$0("right");open=$0(false);nzDisabled=$0(false);nzTriggerSubMenuAction=$0("hover");subMenuMouseState=B0();animationEnter=s0(()=>Ni[this.mode()].enter);animationLeave=s0(()=>Ni[this.mode()].leave);submenuClass=Hw(()=>{let e=[yt,f9(yt,"popup"),f9(mt,this.theme()==="dark"?"dark":"light")],i=this.mode(),n=this.position()==="left"?"left":"right";return i==="horizontal"?e.push(f9(yt,"placement-bottom")):i==="vertical"&&e.push(f9(yt,`placement-${n}`)),this.dir()==="rtl"&&e.push(f9(yt,"rtl")),e});mergedMenuClass=Hw(()=>{let e=v9(this.menuClass())||[];return this.isMenuInsideDropdown?e.push(f9(hn,"menu"),f9(hn,"menu-sub"),f9(hn,"menu-vertical")):e.push(mt,f9(mt,"sub"),f9(mt,"vertical")),this.dir()==="rtl"&&e.push(f9(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(Le).valueSignal;nzIcon=null;nzTitle=null;nzDisabled=false;paddingLeft=null;mode="vertical";nzTriggerSubMenuAction="hover";toggleSubMenu=new Le$1;subMenuMouseState=new Le$1;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,Ie$2],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(t4,{optional:true,host:true});dir=C(Le).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$1;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=vn(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,t4,aa,fn$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(Le).valueSignal;isMenuInsideDropdown=C(ve);listOfNzMenuItemDirective;listOfNzSubMenuComponent;nzInlineIndent=24;nzTheme="light";nzMode="vertical";nzInlineCollapsed=false;nzSelectable=!this.isMenuInsideDropdown;nzClick=new Le$1;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,Ie$2],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$1);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$1;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=un$1(this.injector,this.elementRef.nativeElement).withLockedPosition().withTransformOriginOn(".ant-dropdown");if(T.positionChanges.pipe(on(()=>!!this.overlayRef),Se(h=>vn(h)),ue(this.destroyRef)).subscribe(h=>{h&&this.nzDropdownMenu?.placement.set(this.nzPlacement);}),!this.overlayRef)this.overlayRef=pn(this.injector,{positionStrategy:T,minWidth:ye,disposeOnNavigation:true,hasBackdrop:this.nzBackdrop&&this.nzTrigger==="click",scrollStrategy:hn$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&&!Pa$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 G1(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$1);nzMenuService=C(Ie);cdr=C(z0);elementRef=C(_r);renderer=C(XI);dir=C(Le).valueSignal;noAnimation=C(t4,{host:true,optional:true});isChildSubMenuOpen$=this.nzMenuService.isChildSubMenuOpen$;descendantMenuItemClick$=this.nzMenuService.descendantMenuItemClick$;mouseState$=new On(false);animationStateChange$=new Le$1;templateRef;nzOverlayClassName="";nzOverlayStyle={};nzArrow=false;placement=qo$1("bottomLeft");slideAnimationEnter=u0(()=>this.placement().startsWith("top")?"down":"up");slideAnimationLeave=m0(()=>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:[t4],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(Le).valueSignal;nzRadioService=C(va,{optional:true});ngZone=C(oe);elementRef=C(_r);cdr=C(z0);focusMonitor=C(a3);destroyRef=C(at);nzFormStatusService=C(ga$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:h1,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=jt$1(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(Le).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$1);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(wn);destroyRef=C(at);contentTemplate=null;customFilter=false;extraTemplate=null;filterMultiple=true;listOfFilter=[];filterChange=new Le$1;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);o9(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,n8,J6,k3,dd,zc,t7,y7],encapsulation:2})}return t})(),Gl=(()=>{class t{expand=false;spaceMode=false;expandChange=new Le$1;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$1;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:[n8,J6,k3,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$1;nzExpandChange=new Le$1;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,n8,J6,k3],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$1;nzSortOrderChange=new Le$1;nzFilterChange=new Le$1;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;a9(b)?this.renderer.removeAttribute(this.el,"colspan"):this.renderer.setAttribute(this.el,"colspan",`${b}`);}if(o||f){let b=this.rowspan||this.rowSpan;a9(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$1;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$1;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,Ri$1,xn$1,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)(W1,5,W1),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,rn,on$1,nn,an,W1,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,Ie$2],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(Le).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$1);nzPageIndexChange=new Le$1;nzQueryParams=new Le$1;nzCurrentPageDataChange=new Le$1;nzCustomColumnChange=new Le$1;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=m9("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$1(()=>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$1(()=>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$1;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$1(()=>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 {a as ae$1,l as le}from'./chunk-Vz5kd858.js';import'./chunk-DWLHaSHg.js';import {U}from'./chunk-DUR5PalP.js';import {C,$ as $$1,T as Ie,V as Ve,a as ae,q as qo,H as Hw,s,r,o,Q as QE,M as Mi,L as Ln,K as Kt,f as _i,v as vw,R as Rw,g as Kc,m as bD,h as gh,N as ND,p as gI,P as Ph,O as Ow,B as _D,w as nl,x as ch,A as xD,E as VD,U as Lh,F as LD,G as Pu,I as Lu}from'./main-HV5WDK2F.js';var L=(t,p)=>p.id;function $(t,p){if(t&1&&(_i(0,"p",3),vw(1),Kc()),t&2){let e=VD();gI(),Ph(e.loadError());}}function z(t,p){if(t&1&&(_i(0,"option",6),vw(1),Kc()),t&2){let e=p.$implicit;ch("value",e.id),gI(),Lh("",e.name," (",e.id,")");}}function H(t,p){if(t&1){let e=LD();_i(0,"label"),vw(1),Rw(2,"transloco"),_i(3,"input",10),Rw(4,"transloco"),gh("input",function(o){Pu(e);let s=VD(2);return Lu(s.setSubjectId(o))}),Kc()();}if(t&2){let e=VD(2);gI(),nl(" ",Ow(2,3,"jobs.start.subjectId")," "),gI(2),ch("value",e.subjectId())("placeholder",Ow(4,5,"jobs.start.subjectIdPlaceholder"));}}function G(t,p){if(t&1){let e=LD();bD(0,H,5,7,"label"),_i(1,"app-workflow-input-form",9),gh("valuesChange",function(o){Pu(e);let s=VD();return Lu(s.inputValues.set(o))}),Kc();}if(t&2){let e=VD();_D(e.needsSubjectId()?0:-1),gI(),ch("fields",p.inputSchema)("values",e.inputValues());}}function K(t,p){if(t&1&&(_i(0,"p",8),vw(1),Kc()),t&2){let e=VD();gI(),Ph(e.actionError());}}var re=(()=>{class t{constructor(){this.workflowsApi=C(U),this.jobsApi=C($$1),this.router=C(Ie),this.transloco=C(Ve),this.route=C(ae),this.workflows=qo([]),this.selectedWorkflowId=qo(""),this.subjectId=qo(""),this.inputValues=qo({}),this.loadError=qo(null),this.actionError=qo(null),this.starting=qo(false),this.selectedWorkflow=Hw(()=>this.workflows().find(e=>e.id===this.selectedWorkflowId())??null),this.needsSubjectId=Hw(()=>{let e=this.selectedWorkflow();return e!=null&&e.appliesTo!=="none"}),this.workflowsApi.list({subjectHandling:"per-subject"}).subscribe({next:e=>{this.workflows.set(e);let n=this.route.snapshot.queryParamMap.get("workflowId"),o=n&&e.some(C=>C.id===n)?n:e[0]?.id;o&&this.selectWorkflow(o);let s=this.route.snapshot.queryParamMap.get("subjectId");s&&this.subjectId.set(s);},error:e=>{this.loadError.set(this.errorMessage(e,this.transloco.translate("jobs.errors.loadWorkflows")));}});}selectWorkflow(e){this.selectedWorkflowId.set(e);let n=this.workflows().find(o=>o.id===e);this.inputValues.set(ae$1(n?.inputSchema??[])),this.actionError.set(null);}onWorkflowChange(e){let n=e.target.value;this.selectWorkflow(n);}setSubjectId(e){this.subjectId.set(e.target.value);}start(){let e=this.selectedWorkflow();if(e){if(this.needsSubjectId()&&!this.subjectId().trim()){this.actionError.set(this.transloco.translate("jobs.errors.subjectIdRequired"));return}this.actionError.set(null),this.starting.set(true),this.jobsApi.start(s(r({workflowId:e.id},this.needsSubjectId()?{subjectId:this.subjectId().trim()}:{}),{inputValues:r({},this.inputValues())})).subscribe({next:n=>{this.starting.set(false),this.router.navigate(["/jobs",n.id]);},error:n=>{this.starting.set(false),this.actionError.set(this.errorMessage(n,this.transloco.translate("jobs.errors.startFailed")));}});}}errorMessage(e,n){return e instanceof o||e instanceof Error?e.message:n}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=QE({type:t,selectors:[["app-job-runner"]],decls:26,vars:23,consts:[[1,"runner"],["routerLink","/jobs"],[1,"lede"],["data-testid","load-error",1,"error"],["data-testid","start-form",1,"panel"],["data-testid","workflow-select",3,"change","value"],[3,"value"],["data-testid","start-button","type","button",3,"click","disabled"],["data-testid","action-error",1,"error"],[3,"valuesChange","fields","values"],["data-testid","subject-id","type","text",3,"input","value","placeholder"]],template:function(n,o){if(n&1&&(_i(0,"main",0)(1,"a",1),vw(2),Rw(3,"transloco"),Kc(),_i(4,"h1"),vw(5),Rw(6,"transloco"),Kc(),_i(7,"p",2),vw(8),Rw(9,"transloco"),Kc(),bD(10,$,2,1,"p",3),_i(11,"section",4)(12,"h2"),vw(13),Rw(14,"transloco"),Kc(),_i(15,"label"),vw(16),Rw(17,"transloco"),_i(18,"select",5),gh("change",function(C){return o.onWorkflowChange(C)}),ND(19,z,2,3,"option",6,L),Kc()(),bD(21,G,2,3),_i(22,"button",7),gh("click",function(){return o.start()}),vw(23),Rw(24,"transloco"),Kc()(),bD(25,K,2,1,"p",8),Kc()),n&2){let s;gI(2),Ph(Ow(3,11,"jobs.detail.backToStart")),gI(3),Ph(Ow(6,13,"jobs.title")),gI(3),Ph(Ow(9,15,"jobs.lede")),gI(2),_D(o.loadError()?10:-1),gI(3),Ph(Ow(14,17,"jobs.start.heading")),gI(3),nl(" ",Ow(17,19,"jobs.start.workflow")," "),gI(2),ch("value",o.selectedWorkflowId()),gI(),xD(o.workflows()),gI(2),_D((s=o.selectedWorkflow())?21:-1,s),gI(),ch("disabled",o.starting()),gI(),nl(" ",Ow(24,21,o.starting()?"jobs.start.starting":"jobs.start.button")," "),gI(2),_D(o.actionError()?25:-1);}},dependencies:[Mi,Ln,le,Kt],styles:[".runner[_ngcontent-%COMP%]{max-width:52rem;margin:0 auto;padding:1.5rem;color:#1c1917;line-height:1.45}.lede[_ngcontent-%COMP%]{color:#57534e}.panel[_ngcontent-%COMP%]{margin-top:1.25rem;padding:1rem 0;border-top:1px solid #d6d3d1}label[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.35rem;margin:.75rem 0;font-size:.95rem}input[type=text][_ngcontent-%COMP%], select[_ngcontent-%COMP%]{font:inherit;padding:.4rem .5rem;border:1px solid #a8a29e;background:#fff}button[_ngcontent-%COMP%]{font:inherit;margin-top:.5rem;padding:.45rem .9rem;border:1px solid #44403c;background:#f5f5f4;cursor:pointer}button[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed}.error[_ngcontent-%COMP%]{color:#9f1239}"]});}}return t})();export{re as JobRunnerComponent};
@@ -1 +0,0 @@
1
- import {q as qo,H as Hw,a8 as a,i as ie}from'./main-HV5WDK2F.js';var f=(()=>{class e{connect(t){let n=new URLSearchParams;t?.jobId&&n.set("jobId",t.jobId),t?.batchId&&n.set("batchId",t.batchId);let r=n.toString(),p=`${a.apiBaseUrl}/events${r?`?${r}`:""}`,a$1=qo([]),b=Hw(()=>{let o=a$1();return o.length>0?o[o.length-1]:void 0}),s=new EventSource(p);return s.onmessage=o=>{let c;try{c=JSON.parse(o.data);}catch(d){return}a$1.update(d=>[...d,c]);},{events:a$1.asReadonly(),latest:b,close:()=>{s.onmessage=null,s.close();}}}static{this.\u0275fac=function(n){return new(n||e)};}static{this.\u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();export{f};
@@ -1 +0,0 @@
1
- import {f}from'./chunk-DWLHaSHg.js';import {u}from'./chunk-CxBYhrEj.js';import {W,I}from'./chunk-Ct30cLzT.js';import {L as Lt,u as ut,p as pc,a as as,d as dc,K as Kl,c as cc,J as Ji,l as ls}from'./chunk-BGEuPXoV.js';import'./chunk-C2eCmH-q.js';import {Q as QE,l as lh,C,$,V as Ve,b as at,q as qo,H as Hw,u as ue$1,a9 as Ng,o,M as Mi,L as Ln,d as dd,z as zc,c as t7,Z as y7,K as Kt,f as _i,v as vw,R as Rw,g as Kc,h as gh,m as bD,p as gI,P as Ph,O as Ow,x as ch,w as nl,B as _D,E as VD,N as ND,A as xD,F as LD,a5 as ah,a3 as xw,G as Pu,I as Lu}from'./main-HV5WDK2F.js';var ae=t=>["/jobs",t],se=(t,d)=>d.id;function le(t,d){t&1&&(_i(0,"p",3),vw(1),Rw(2,"transloco"),Kc()),t&2&&(gI(),Ph(Ow(2,1,"common.loading")));}function de(t,d){if(t&1&&(_i(0,"p",4),vw(1),Kc()),t&2){let e=VD();gI(),Ph(e.loadError());}}function ce(t,d){if(t&1&&(_i(0,"p",5),vw(1),Kc()),t&2){let e=VD(2);gI(),Ph(e.actionError());}}function pe(t,d){t&1&&(_i(0,"p",6),vw(1),Rw(2,"transloco"),Kc()),t&2&&(gI(),Ph(Ow(2,1,"worktrees.activeWarning")));}function me(t,d){t&1&&(_i(0,"p",7),vw(1),Rw(2,"transloco"),Kc()),t&2&&(gI(),Ph(Ow(2,1,"worktrees.emptyState")));}function he(t,d){if(t&1){let e=LD();_i(0,"tr")(1,"td")(2,"label",9),gh("nzCheckedChange",function(l){let _=Pu(e).$implicit,oe=VD(3);return Lu(oe.toggleSelected(_.id,l))}),Kc()(),_i(3,"td")(4,"a",10),vw(5),Kc()(),_i(6,"td"),vw(7),Kc(),_i(8,"td"),vw(9),Kc(),_i(10,"td",11),vw(11),Kc(),_i(12,"td")(13,"nz-tag"),vw(14),Rw(15,"transloco"),Kc()(),_i(16,"td"),vw(17),Kc()();}if(t&2){let e=d.$implicit,n=VD(3);ah("data-testid","worktree-row-"+e.id),gI(2),ch("nzChecked",n.isSelected(e.id)),ah("data-testid","worktree-select-"+e.id),gI(2),ch("routerLink",xw(14,ae,e.id)),ah("data-testid","worktree-job-"+e.id),gI(),Ph(e.id),gI(2),Ph(n.repoName(e)),gI(2),Ph(e.branch??"\u2014"),gI(2),Ph(e.worktreePath),gI(2),ah("data-testid","worktree-status-"+e.id),gI(),Ph(Ow(15,12,n.statusKey(e.status))),gI(3),Ph(e.createdAt);}}function ue(t,d){if(t&1&&(_i(0,"nz-table",8)(1,"thead")(2,"tr"),lh(3,"th"),_i(4,"th"),vw(5),Rw(6,"transloco"),Kc(),_i(7,"th"),vw(8),Rw(9,"transloco"),Kc(),_i(10,"th"),vw(11),Rw(12,"transloco"),Kc(),_i(13,"th"),vw(14),Rw(15,"transloco"),Kc(),_i(16,"th"),vw(17),Rw(18,"transloco"),Kc(),_i(19,"th"),vw(20),Rw(21,"transloco"),Kc()()(),_i(22,"tbody"),ND(23,he,18,16,"tr",null,se),Kc()()),t&2){let e=VD(2);ch("nzData",e.jobs())("nzShowPagination",false),gI(5),Ph(Ow(6,8,"worktrees.column.job")),gI(3),Ph(Ow(9,10,"worktrees.column.repository")),gI(3),Ph(Ow(12,12,"worktrees.column.branch")),gI(3),Ph(Ow(15,14,"worktrees.column.path")),gI(3),Ph(Ow(18,16,"worktrees.column.status")),gI(3),Ph(Ow(21,18,"worktrees.column.created")),gI(3),xD(e.jobs());}}function fe(t,d){if(t&1&&(bD(0,ce,2,1,"p",5),bD(1,pe,3,3,"p",6),bD(2,me,3,3,"p",7)(3,ue,25,20,"nz-table",8)),t&2){let e=VD();_D(e.actionError()?0:-1),gI(),_D(e.selectedHasActive()?1:-1),gI(),_D(e.jobs().length===0?2:3);}}var ne=(()=>{class t{constructor(){this.jobsApi=C($),this.reposApi=C(f),this.transloco=C(Ve),this.destroyRef=C(at),this.jobs=qo([]),this.repos=qo([]),this.selectedIds=qo([]),this.loading=qo(true),this.loadError=qo(null),this.actionError=qo(null),this.deleting=qo(false),this.selectedHasActive=Hw(()=>this.selectedJobs().some(e=>!u(e.status))),this.selectedJobs=Hw(()=>{let e=new Set(this.selectedIds());return this.jobs().filter(n=>e.has(n.id))}),this.reload();}statusKey(e){return `jobs.status.${e}`}repoName(e){return this.repos().find(l=>ge(e,l))?.name??"\u2014"}isSelected(e){return this.selectedIds().includes(e)}toggleSelected(e,n){this.selectedIds.update(l=>n?l.includes(e)?l:[...l,e]:l.filter(_=>_!==e)),this.actionError.set(null);}deleteSelected(){if(!(this.deleting()||this.selectedIds().length===0)){if(this.selectedHasActive()){this.actionError.set(this.transloco.translate("worktrees.activeWarning"));return}this.deleting.set(true),this.actionError.set(null),this.jobsApi.deleteWorktrees(this.selectedIds()).pipe(ue$1(this.destroyRef)).subscribe({next:()=>{this.deleting.set(false),this.selectedIds.set([]),this.reload();},error:e=>{this.deleting.set(false),this.actionError.set(this.errorMessage(e,this.transloco.translate("worktrees.deleteFailed")));}});}}reload(){this.loading.set(true),this.loadError.set(null),Ng({jobs:this.jobsApi.list({liveWorktree:true}),repos:this.reposApi.list()}).pipe(ue$1(this.destroyRef)).subscribe({next:({jobs:e,repos:n})=>{this.jobs.set(e),this.repos.set(n),this.loading.set(false);},error:e=>{this.loading.set(false),this.loadError.set(this.errorMessage(e,this.transloco.translate("worktrees.loadFailed")));}});}errorMessage(e,n){return e instanceof o||e instanceof Error?e.message:n}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=QE({type:t,selectors:[["app-worktree-list"]],decls:11,vars:8,consts:[["data-testid","worktrees-manage",1,"list-page"],[1,"header"],["nz-button","","nzDanger","","type","button","data-testid","delete-worktrees",3,"click","disabled"],["data-testid","loading"],["data-testid","load-error",1,"error"],["data-testid","action-error",1,"error"],["data-testid","active-warning",1,"warn"],["data-testid","empty-state",1,"empty"],["data-testid","worktree-table",3,"nzData","nzShowPagination"],["nz-checkbox","",3,"nzCheckedChange","nzChecked"],[3,"routerLink"],[1,"path-cell"]],template:function(n,l){n&1&&(_i(0,"div",0)(1,"header",1)(2,"h1"),vw(3),Rw(4,"transloco"),Kc(),_i(5,"button",2),gh("click",function(){return l.deleteSelected()}),vw(6),Rw(7,"transloco"),Kc()(),bD(8,le,3,3,"p",3)(9,de,2,1,"p",4)(10,fe,4,3),Kc()),n&2&&(gI(3),Ph(Ow(4,4,"worktrees.title")),gI(2),ch("disabled",l.deleting()||l.selectedIds().length===0),gI(),nl(" ",Ow(7,6,"worktrees.deleteSelected")," "),gI(2),_D(l.loading()?8:l.loadError()?9:10));},dependencies:[Mi,Ln,dd,zc,t7,y7,Lt,ut,pc,as,dc,Kl,cc,Ji,ls,W,I,Kt],styles:[".list-page[_ngcontent-%COMP%]{max-width:72rem;margin:0 auto;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}.empty[_ngcontent-%COMP%]{text-align:center;padding:2.5rem 1rem;border:1px dashed #d6d3d1;background:#fff9}.error[_ngcontent-%COMP%]{color:#9f1239}.warn[_ngcontent-%COMP%]{color:#92400e}.path-cell[_ngcontent-%COMP%]{overflow-wrap:anywhere;word-break:break-word}"]});}}return t})();function ge(t,d){let e=(t.worktreePath??"").replaceAll("\\","/"),n=d.localPath.replaceAll("\\","/").replace(/\/+$/,""),l=(d.worktreeBasePath??xe(n)).replaceAll("\\","/");return e.startsWith(l)||e.startsWith(n)}function xe(t){let d=t.split("/"),e=d.pop()??"repo";return `${d.join("/")}/${e}-worktrees`}var $e=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=QE({type:t,selectors:[["app-worktrees-manage"]],decls:1,vars:0,template:function(n,l){n&1&&lh(0,"app-worktree-list");},dependencies:[ne],encapsulation:2});}}return t})();export{$e as WorktreesManageComponent};
@@ -1 +0,0 @@
1
- import {$ as $$1,R,y,T,P,q,D,N,w,V,_}from'./chunk-h3oyPsBC.js';import {T as Tx,f as fy,B as Bm}from'./chunk-dUlsh7QS.js';import {a as ai,z}from'./chunk-DlsGU_Dk.js';import {_ as _n,C as Cn}from'./chunk-DinAvqzQ.js';import {C,aj as $,b as at,V as Ve,q as qo,H as Hw,a9 as Ng,u as ue,s,r,ak as Ml,al as Se,aa as Xi,ab as Dg,o,Q as QE,M as Mi,n as n8,am as S4,J as J6,k as k3,d as dd,z as zc,c as t7,Z as y7,X as Xb,e as V5,D as D5,K as Kt$1,f as _i,v as vw,R as Rw,g as Kc,h as gh,m as bD,p as gI,P as Ph,O as Ow,w as nl,B as _D,an as YE,ao as uu,ap as pT,aq as kt$1,ar as _r,as as oe,at as z0,au as a3,av as hT,aw as Le,ax as m1,ay as St,az as c8,aA as pt,aB as Se$1,aC as Tt,aD as Ie,aE as ly,aF as Z0,l as lh,a4 as Mh,x as ch,a5 as ah,aG as Sw,aH as h1,aI as wo,aJ as Ih,aK as qD,aL as WD,E as VD,N as ND,A as xD,F as LD,j as oE,y as sE,aM as ut,aN as nh,S as SD,aO as el,aP as tl,G as Pu,I as Lu}from'./main-HV5WDK2F.js';import {G as Gn,u as un}from'./chunk-TNH96m0D.js';import {W,I}from'./chunk-Ct30cLzT.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-BGEuPXoV.js';import'./chunk-C2eCmH-q.js';var yt=["switchElement"];function bt(i,p){i&1&&lh(0,"nz-icon",3);}function Et(i,p){if(i&1&&(el(0),vw(1),tl()),i&2){let e=VD(2);gI(),Ph(e.nzCheckedChildren);}}function It(i,p){if(i&1&&nh(0,Et,2,1,"ng-container",6),i&2){let e=VD();ch("nzStringTemplateOutlet",e.nzCheckedChildren);}}function wt(i,p){if(i&1&&(el(0),vw(1),tl()),i&2){let e=VD(2);gI(),Ph(e.nzUnCheckedChildren);}}function Nt(i,p){if(i&1&&nh(0,wt,2,1,"ng-container",6),i&2){let e=VD();ch("nzStringTemplateOutlet",e.nzUnCheckedChildren);}}var kt="switch",J=(()=>{let i,p=[],e=[];return class K{static{let t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;i=[ut()],pT(null,null,i,{kind:"field",name:"nzSize",static:false,private:false,access:{has:r=>"nzSize"in r,get:r=>r.nzSize,set:(r,u)=>{r.nzSize=u;}},metadata:t},p,e),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:true,configurable:true,writable:true,value:t});}_nzModuleName=kt;nzConfigService=C(kt$1);el=C(_r).nativeElement;ngZone=C(oe);cdr=C(z0);focusMonitor=C(a3);destroyRef=C(at);isChecked=false;onChange=()=>{};onTouched=()=>{};switchElement;nzLoading=false;nzDisabled=false;nzControl=false;nzCheckedChildren=null;nzUnCheckedChildren=null;nzSize=hT(this,p,"default");nzId=(hT(this,e),null);dir=C(Le).valueSignal;isNzDisableFirstChange=true;size=qo(this.nzSize);formSize=C(m1,{optional:true});finalSize=Hw(()=>this.formSize?.()||this.size());updateValue(t){this.isChecked!==t&&(this.isChecked=t,this.onChange(this.isChecked));}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard");}blur(){this.switchElement.nativeElement.blur();}constructor(){this.destroyRef.onDestroy(()=>{this.focusMonitor.stopMonitoring(this.switchElement.nativeElement);});}ngOnChanges(t){let{nzSize:r}=t;r&&this.size.set(r.currentValue);}ngOnInit(){St(this.el,"click").pipe(ue(this.destroyRef)).subscribe(t=>{t.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck();});}),St(this.switchElement.nativeElement,"keydown").pipe(ue(this.destroyRef)).subscribe(t=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;let{keyCode:r}=t;r!==37&&r!==39&&r!==32&&r!==13||(t.preventDefault(),this.ngZone.run(()=>{r===37?this.updateValue(false):r===39?this.updateValue(true):(r===32||r===13)&&this.updateValue(!this.isChecked),this.cdr.markForCheck();}));});}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,true).pipe(ue(this.destroyRef)).subscribe(t=>{t||Promise.resolve().then(()=>this.onTouched());});}writeValue(t){this.isChecked=t,this.cdr.markForCheck();}registerOnChange(t){this.onChange=t;}registerOnTouched(t){this.onTouched=t;}setDisabledState(t){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||t,this.isNzDisableFirstChange=false,this.cdr.markForCheck();}static \u0275fac=function(r){return new(r||K)};static \u0275cmp=QE({type:K,selectors:[["nz-switch"]],viewQuery:function(r,u){if(r&1&&Ih(yt,7),r&2){let q;qD(q=WD())&&(u.switchElement=q.first);}},inputs:{nzLoading:[2,"nzLoading","nzLoading",Z0],nzDisabled:[2,"nzDisabled","nzDisabled",Z0],nzControl:[2,"nzControl","nzControl",Z0],nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize",nzId:"nzId"},exportAs:["nzSwitch"],features:[Sw([{provide:h1,useExisting:wo(()=>K),multi:true}]),ly],decls:8,vars:15,consts:[["switchElement",""],["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],[1,"ant-switch-handle"],["nzType","loading",1,"ant-switch-loading-icon"],[1,"ant-switch-inner"],[1,"ant-click-animating-node"],[4,"nzStringTemplateOutlet"]],template:function(r,u){r&1&&(_i(0,"button",1,0)(2,"span",2),bD(3,bt,1,0,"nz-icon",3),Kc(),_i(4,"span",4),bD(5,It,1,1,"ng-container")(6,Nt,1,1,"ng-container"),Kc(),lh(7,"div",5),Kc()),r&2&&(Mh("ant-switch-checked",u.isChecked)("ant-switch-loading",u.nzLoading)("ant-switch-disabled",u.nzDisabled)("ant-switch-small",u.finalSize()==="small")("ant-switch-rtl",u.dir()==="rtl"),ch("disabled",u.nzDisabled)("nzWaveExtraNode",true),ah("id",u.nzId),gI(3),_D(u.nzLoading?3:-1),gI(2),_D(u.isChecked?5:6));},dependencies:[c8,y7,pt,Se$1,Tt,Ie],encapsulation:2})}})(),ht=(()=>{class i{static \u0275fac=function(o){return new(o||i)};static \u0275mod=YE({type:i});static \u0275inj=uu({imports:[J]})}return i})();var Y=(i,p)=>p.id,Dt=(i,p)=>p.key;function Ot(i,p){i&1&&(_i(0,"div",4),lh(1,"nz-alert",9),Rw(2,"transloco"),Kc()),i&2&&(gI(),ch("nzMessage",Ow(2,1,"settings.restartRequired.message")));}function Vt(i,p){i&1&&(_i(0,"p",5),vw(1),Rw(2,"transloco"),Kc()),i&2&&(gI(),Ph(Ow(2,1,"common.loading")));}function Pt(i,p){if(i&1&&(_i(0,"p",6),vw(1),Kc()),i&2){let e=VD();gI(),Ph(e.loadError());}}function At(i,p){if(i&1&&(_i(0,"nz-tag",11),vw(1),Rw(2,"transloco"),Kc()),i&2){let e=VD().$implicit;ah("data-testid",e.id+"-default-chip"),gI(),Ph(Ow(2,2,"settings.defaultAgent.label"));}}function Ft(i,p){if(i&1){let e=LD();_i(0,"tr")(1,"td",10)(2,"span"),vw(3),Kc(),bD(4,At,3,4,"nz-tag",11),Kc(),_i(5,"td")(6,"nz-tag"),vw(7),Rw(8,"transloco"),Kc()(),_i(9,"td"),vw(10),Kc(),_i(11,"td",12)(12,"button",13),gh("click",function(){let t=Pu(e).$implicit,r=VD(2);return Lu(r.openEdit(t))}),vw(13),Rw(14,"transloco"),Kc(),_i(15,"button",14),Rw(16,"transloco"),Rw(17,"transloco"),Rw(18,"transloco"),gh("nzOnConfirm",function(){let t=Pu(e).$implicit,r=VD(2);return Lu(r.removeInstance(t.id))}),vw(19),Rw(20,"transloco"),Kc()()();}if(i&2){let e=p.$implicit,o=VD(2);ah("data-testid","instance-"+e.id),gI(),ah("data-testid",e.id+"-name"),gI(2),Ph(e.displayName),gI(),_D(o.isDefaultAgent(e)?4:-1),gI(2),ah("data-testid",e.id+"-type"),gI(),Ph(Ow(8,15,o.typeLabelKey(e))),gI(2),ah("data-testid",e.id+"-expires"),gI(),nl(" ",e.expiresOn??""," "),gI(2),ah("data-testid",e.id+"-edit"),gI(),nl(" ",Ow(14,17,"settings.edit")," "),gI(2),ch("nzPopconfirmTitle",Ow(16,19,"settings.deleteConfirm"))("nzOkText",Ow(17,21,"settings.delete"))("nzCancelText",Ow(18,23,"common.cancel")),ah("data-testid",e.id+"-delete"),gI(4),nl(" ",Ow(20,25,"settings.delete")," ");}}function Bt(i,p){if(i&1&&(_i(0,"nz-table",7)(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,"tbody"),ND(16,Ft,21,27,"tr",null,Y),Kc()()),i&2){let e=VD();ch("nzData",e.instances())("nzFrontPagination",false)("nzShowPagination",false),gI(4),Ph(Ow(5,7,"settings.column.displayName")),gI(3),Ph(Ow(8,9,"settings.column.type")),gI(3),Ph(Ow(11,11,"settings.column.expiresOn")),gI(3),Ph(Ow(14,13,"settings.column.actions")),gI(3),xD(e.instances());}}function Rt(i,p){if(i&1&&(_i(0,"li"),vw(1),Kc()),i&2){let e=p.$implicit;gI(),Ph(e);}}function Lt(i,p){if(i&1&&(_i(0,"section",16)(1,"h3"),vw(2),Rw(3,"transloco"),Kc(),_i(4,"ul"),ND(5,Rt,2,1,"li",null,SD),Kc()()),i&2){let e=VD(2);gI(2),Ph(Ow(3,1,"settings.validation")),gI(3),xD(e.validationErrors());}}function Kt(i,p){if(i&1&&(_i(0,"p",17),vw(1),Kc()),i&2){let e=VD(2);gI(),Ph(e.secretSaveError());}}function qt(i,p){if(i&1&&(lh(0,"nz-option",24),Rw(1,"transloco")),i&2){let e=p.$implicit;ch("nzValue",e.id)("nzLabel",Ow(1,2,e.labelKey));}}function $t(i,p){if(i&1){let e=LD();_i(0,"label",18)(1,"span"),vw(2),Rw(3,"transloco"),Kc(),_i(4,"input",32),gh("ngModelChange",function(t){let r=Pu(e).$implicit,u=VD(2);return Lu(u.setDraftConfig(r.key,t))}),Kc(),oE(),Kc();}if(i&2){let e=p.$implicit,o=VD(2);gI(2),Ph(Ow(3,3,e.labelKey)),gI(2),ch("ngModel",o.configValue(o.draft().config,e.key)),ah("data-testid","provider-config-"+e.key),sE();}}function jt(i,p){if(i&1){let e=LD();_i(0,"button",33),gh("click",function(){Pu(e);let t=VD(2);return Lu(t.fetchModels())}),vw(1),Rw(2,"transloco"),Kc();}if(i&2){let e=VD(2);ch("nzLoading",e.fetchingModels())("disabled",!e.canFetchModels()),gI(),nl(" ",Ow(2,3,"settings.model.fetch")," ");}}function Ut(i,p){if(i&1&&lh(0,"nz-option",24),i&2){let e=VD(3);ch("nzValue",e.configValue(e.draft().config,"model"))("nzLabel",e.configValue(e.draft().config,"model"));}}function Wt(i,p){if(i&1&&lh(0,"nz-option",24),i&2){let e=p.$implicit;ch("nzValue",e.id)("nzLabel",e.displayName);}}function Zt(i,p){if(i&1&&(_i(0,"p",35),vw(1),Kc()),i&2){let e=VD(3);gI(),Ph(e.modelsError());}}function Ht(i,p){if(i&1){let e=LD();_i(0,"div",18)(1,"span"),vw(2),Rw(3,"transloco"),Kc(),_i(4,"nz-select",34),Rw(5,"transloco"),gh("ngModelChange",function(t){Pu(e);let r=VD(2);return Lu(r.setDraftConfig("model",t??""))}),bD(6,Ut,1,2,"nz-option",24),ND(7,Wt,1,2,"nz-option",24,Y),Kc(),oE(),bD(9,Zt,2,1,"p",35),_i(10,"p",22),vw(11),Rw(12,"transloco"),Kc()(),_i(13,"label",36)(14,"span"),vw(15),Rw(16,"transloco"),Kc(),_i(17,"nz-switch",37),gh("ngModelChange",function(t){Pu(e);let r=VD(2);return Lu(r.setDefaultAgentDraft(t))}),Kc(),oE(),Kc();}if(i&2){let e=VD(2);gI(2),Ph(Ow(3,8,"settings.model.label")),gI(2),ch("nzPlaceHolder",Ow(5,10,"settings.model.placeholder"))("ngModel",e.configValue(e.draft().config,"model")),sE(),gI(2),_D(e.selectedModelMissingFromList()?6:-1),gI(),xD(e.availableModels()),gI(2),_D(e.modelsError()?9:-1),gI(2),Ph(Ow(12,12,"settings.model.hint")),gI(4),Ph(Ow(16,14,"settings.defaultAgent.toggle")),gI(2),ch("ngModel",e.draft().defaultAgent),sE();}}function Qt(i,p){if(i&1){let e=LD();_i(0,"div",8)(1,"div",15)(2,"h2"),vw(3),Rw(4,"transloco"),Kc(),bD(5,Lt,7,3,"section",16),bD(6,Kt,2,1,"p",17),_i(7,"label",18)(8,"span"),vw(9),Rw(10,"transloco"),Kc(),_i(11,"input",19),gh("ngModelChange",function(t){Pu(e);let r=VD();return Lu(r.onDisplayNameChange(t))}),Kc(),oE(),Kc(),_i(12,"label",20)(13,"span"),vw(14),Rw(15,"transloco"),Kc(),_i(16,"input",21),gh("ngModelChange",function(t){Pu(e);let r=VD();return Lu(r.onIdChange(t))}),Kc(),oE(),_i(17,"p",22),vw(18),Rw(19,"transloco"),Kc()(),_i(20,"div",18)(21,"span"),vw(22),Rw(23,"transloco"),Kc(),_i(24,"nz-select",23),gh("ngModelChange",function(t){Pu(e);let r=VD();return Lu(r.onTypeChange(t))}),ND(25,qt,2,4,"nz-option",24,Y),Kc(),oE(),Kc(),ND(27,$t,5,5,"label",18,Dt),_i(29,"label",18)(30,"span"),vw(31),Rw(32,"transloco"),Kc(),_i(33,"div",25)(34,"input",26),Rw(35,"transloco"),gh("ngModelChange",function(t){Pu(e);let r=VD();return Lu(r.setSecretValue(t))}),Kc(),oE(),bD(36,jt,3,5,"button",27),Kc()(),bD(37,Ht,18,16),_i(38,"label",18)(39,"span"),vw(40),Rw(41,"transloco"),Kc(),_i(42,"input",28),gh("ngModelChange",function(t){Pu(e);let r=VD();return Lu(r.setExpiresOn(t))}),Kc(),oE(),_i(43,"p",22),vw(44),Rw(45,"transloco"),Kc()(),_i(46,"div",29)(47,"button",30),gh("click",function(){Pu(e);let t=VD();return Lu(t.closeModal())}),vw(48),Rw(49,"transloco"),Kc(),_i(50,"button",31),gh("click",function(){Pu(e);let t=VD();return Lu(t.saveModal())}),vw(51),Rw(52,"transloco"),Kc()()()();}if(i&2){let e=VD();gI(3),nl(" ",Ow(4,21,e.draft().originalId?"settings.editProvider":"settings.addProvider")," "),gI(2),_D(e.validationErrors().length>0?5:-1),gI(),_D(e.secretSaveError()?6:-1),gI(3),Ph(Ow(10,23,"settings.displayName")),gI(2),ch("ngModel",e.draft().displayName),sE(),gI(3),Ph(Ow(15,25,"settings.instanceId")),gI(2),ch("ngModel",e.draft().id),sE(),gI(2),Ph(Ow(19,27,"settings.instanceIdHint")),gI(4),Ph(Ow(23,29,"settings.type.label")),gI(2),ch("ngModel",e.draft().optionId),sE(),gI(),xD(e.typeOptions),gI(2),xD(e.configFields(e.draft().type)),gI(4),Ph(Ow(32,31,"settings.apiKey.label")),gI(3),ch("ngModel",e.draft().secretValue)("placeholder",Ow(35,33,e.draft().originalId?"settings.apiKey.placeholderEdit":"settings.apiKey.placeholderCreate")),sE(),gI(2),_D(e.draft().kind==="agent"?36:-1),gI(),_D(e.draft().kind==="agent"?37:-1),gI(3),Ph(Ow(41,35,"settings.expiresOn.label")),gI(2),ch("ngModel",e.draft().expiresOn),sE(),gI(2),Ph(Ow(45,37,"settings.expiresOn.hint")),gI(4),nl(" ",Ow(49,39,"common.cancel")," "),gI(2),ch("nzLoading",e.saving()),gI(),nl(" ",Ow(52,41,"common.save")," ");}}var Ui=(()=>{class i{constructor(){this.api=C($),this.providersApi=C($$1),this.message=C(Tx),this.destroyRef=C(at),this.transloco=C(Ve),this.loaded=qo({providerInstances:[]}),this.status=qo([]),this.draft=qo(R()),this.loading=qo(true),this.saving=qo(false),this.loadError=qo(null),this.validationErrors=qo([]),this.secretSaveError=qo(null),this.restartRequired=qo(false),this.modalOpen=qo(false),this.availableModels=qo([]),this.fetchingModels=qo(false),this.modelsError=qo(null),this.instances=Hw(()=>this.loaded().providerInstances??[]),this.typeOptions=y,this.configFields=T,this.typeLabelKey=P,this.isAgent=fy,Ng({settings:this.api.getSettings(),status:this.api.getProviderStatus()}).pipe(ue(this.destroyRef)).subscribe({next:({settings:e,status:o})=>{this.applySettings(e,false),this.status.set(o),this.loading.set(false);},error:e=>{this.loading.set(false),this.loadError.set(this.errorMessage(e,this.transloco.translate("settings.loadFailed")));}});}configValue(e,o){let t=e[o];return typeof t=="string"?t:""}isDefaultAgent(e){return fy(e)&&this.loaded().defaultAgentInstanceId===e.id}selectedModelMissingFromList(){let e=this.configValue(this.draft().config,"model");return e?!this.availableModels().some(o=>o.id===e):false}canFetchModels(){let e=this.draft();return e.kind==="agent"&&(e.secretValue.trim().length>0||e.originalId!=null)}openCreate(){this.resetModal(R());}openEdit(e){this.resetModal(q(e,this.isDefaultAgent(e)));}closeModal(){this.modalOpen.set(false);}onDisplayNameChange(e){this.draft.update(o=>D(o,e,this.existingIds(o)));}onIdChange(e){this.draft.update(o=>N(o,e));}onTypeChange(e){this.availableModels.set([]),this.modelsError.set(null),this.draft.update(o=>{let t=w(o,e);return t.kind!=="agent"||o.kind==="agent"?t:s(r({},t),{defaultAgent:this.shouldDefaultNewAgent(o)})});}setDraftConfig(e,o){this.draft.update(t=>s(r({},t),{config:s(r({},t.config),{[e]:o})}));}setSecretValue(e){this.draft.update(o=>s(r({},o),{secretValue:e}));}setExpiresOn(e){this.draft.update(o=>s(r({},o),{expiresOn:e}));}setDefaultAgentDraft(e){this.draft.update(o=>s(r({},o),{defaultAgent:e}));}fetchModels(){let e=this.draft();if(e.kind!=="agent"||!this.canFetchModels())return;let o=e.secretValue.trim();this.fetchingModels.set(true),this.modelsError.set(null),this.providersApi.previewModels(o?{type:e.type,apiKey:o}:{type:e.type,instanceId:e.originalId}).pipe(ue(this.destroyRef)).subscribe({next:t=>{this.availableModels.set(t),this.fetchingModels.set(false);},error:t=>{this.fetchingModels.set(false),this.modelsError.set(this.errorMessage(t,this.transloco.translate("settings.model.fetchFailed")));}});}saveModal(){let e=this.draft();if(this.validationErrors.set([]),this.secretSaveError.set(null),!e.displayName.trim()){this.validationErrors.set([this.transloco.translate("settings.displayNameRequired")]);return}if(e.originalId==null&&!e.secretValue.trim()){this.validationErrors.set([this.transloco.translate("settings.apiKey.required")]);return}let o=Bm.safeParse(V(e));if(!o.success){this.validationErrors.set(_(o.error));return}this.saving.set(true);let t=o.data,r$1=t.kind==="agent"?{defaultAgent:e.defaultAgent}:{};(e.originalId==null?this.api.createProviderInstance(r(r({},t),r$1)):this.api.updateProviderInstance(e.originalId,r({displayName:t.displayName,config:t.config,secretKey:t.secretKey,expiresOn:t.expiresOn??null},r$1))).pipe(Ml(T=>{this.applySettings(T.settings,T.restartRequired);let P=e.secretValue.trim();return P?this.api.setSecret(t.secretKey,P).pipe(Se(()=>({kind:"ok"})),Xi(_t=>Dg({kind:"secret-failed",err:_t}))):Dg({kind:"ok"})}),ue(this.destroyRef)).subscribe({next:T=>{if(this.saving.set(false),T.kind==="secret-failed"){this.draft.update(P=>s(r({},P),{originalId:t.id,id:t.id,idAutoSync:false,secretKey:t.secretKey})),this.secretSaveError.set(this.errorMessage(T.err,this.transloco.translate("settings.apiKey.setFailedAfterSave"))),this.refreshStatus();return}this.modalOpen.set(false),this.refreshStatus();},error:T=>{this.saving.set(false),this.message.error(this.errorMessage(T,this.transloco.translate("settings.saveFailed")));}});}removeInstance(e){this.api.deleteProviderInstance(e).subscribe({next:o=>this.applySettings(o.settings,o.restartRequired),error:o=>{this.message.error(this.errorMessage(o,this.transloco.translate("settings.saveFailed")));}});}resetModal(e){this.validationErrors.set([]),this.secretSaveError.set(null),this.availableModels.set([]),this.modelsError.set(null),this.fetchingModels.set(false),this.draft.set(e),this.modalOpen.set(true);}shouldDefaultNewAgent(e){return e.originalId&&e.originalId===this.loaded().defaultAgentInstanceId?true:!this.loaded().defaultAgentInstanceId}existingIds(e){return this.instances().map(o=>o.id).filter(o=>o!==e.originalId)}applySettings(e,o){let t=e.providerInstances??[];this.loaded.set(r({providerInstances:t},e.defaultAgentInstanceId?{defaultAgentInstanceId:e.defaultAgentInstanceId}:{})),o&&this.restartRequired.set(true);}refreshStatus(){this.api.getProviderStatus().subscribe({next:e=>this.status.set(e),error:()=>{}});}errorMessage(e,o$1){return e instanceof o||e instanceof Error?e.message:o$1}static{this.\u0275fac=function(o){return new(o||i)};}static{this.\u0275cmp=QE({type:i,selectors:[["app-settings"]],decls:17,vars:12,consts:[["data-testid","settings-page",1,"settings"],[1,"header"],[1,"lede"],["nz-button","","nzType","primary","type","button","data-testid","add-provider",3,"click"],["data-testid","restart-required-banner"],["data-testid","loading"],["data-testid","load-error",1,"error"],["data-testid","provider-instances",3,"nzData","nzFrontPagination","nzShowPagination"],["data-testid","provider-modal",1,"modal-backdrop"],["nzType","warning","nzShowIcon","","nzBanner","",3,"nzMessage"],[1,"name-cell"],["nzColor","blue"],[1,"actions"],["nz-button","","nzType","link","type","button",3,"click"],["nz-button","","nzType","link","nzDanger","","type","button","nz-popconfirm","",3,"nzOnConfirm","nzPopconfirmTitle","nzOkText","nzCancelText"],["role","dialog",1,"modal-panel"],["data-testid","validation-errors",1,"errors"],["data-testid","secret-save-error",1,"error"],[1,"field"],["nz-input","","data-testid","provider-display-name",3,"ngModelChange","ngModel"],[1,"field","field-id"],["nz-input","","data-testid","provider-id",3,"ngModelChange","ngModel"],[1,"hint"],["data-testid","provider-type",3,"ngModelChange","ngModel"],[3,"nzValue","nzLabel"],[1,"api-key-row"],["nz-input","","type","password","autocomplete","off","data-testid","provider-api-key",3,"ngModelChange","ngModel","placeholder"],["nz-button","","type","button","data-testid","provider-fetch-models",3,"nzLoading","disabled"],["nz-input","","type","date","data-testid","provider-expires-on",3,"ngModelChange","ngModel"],[1,"modal-actions"],["nz-button","","type","button","data-testid","provider-cancel",3,"click"],["nz-button","","nzType","primary","type","button","data-testid","provider-save",3,"click","nzLoading"],["nz-input","",3,"ngModelChange","ngModel"],["nz-button","","type","button","data-testid","provider-fetch-models",3,"click","nzLoading","disabled"],["data-testid","provider-model","nzAllowClear","",3,"ngModelChange","nzPlaceHolder","ngModel"],["data-testid","provider-models-error",1,"error"],[1,"field","field-switch"],["data-testid","provider-default-agent",3,"ngModelChange","ngModel"]],template:function(o,t){o&1&&(_i(0,"main",0)(1,"header",1)(2,"div")(3,"h1"),vw(4),Rw(5,"transloco"),Kc(),_i(6,"p",2),vw(7),Rw(8,"transloco"),Kc()(),_i(9,"button",3),gh("click",function(){return t.openCreate()}),vw(10),Rw(11,"transloco"),Kc()(),bD(12,Ot,3,3,"div",4),bD(13,Vt,3,3,"p",5)(14,Pt,2,1,"p",6)(15,Bt,18,15,"nz-table",7),bD(16,Qt,53,43,"div",8),Kc()),o&2&&(gI(4),Ph(Ow(5,6,"settings.title")),gI(3),Ph(Ow(8,8,"settings.lede")),gI(3),nl(" ",Ow(11,10,"settings.addProvider")," "),gI(2),_D(t.restartRequired()?12:-1),gI(),_D(t.loading()?13:t.loadError()?14:15),gI(3),_D(t.modalOpen()?16:-1));},dependencies:[Mi,n8,S4,J6,k3,Gn,un,dd,zc,t7,y7,ai,z,_n,Cn,Xb,V5,D5,ht,J,pc,as,dc,Kl,cc,Ji,ls,W,I,Kt$1],styles:[".settings[_ngcontent-%COMP%]{max-width:72rem;margin:0 auto;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}.lede[_ngcontent-%COMP%]{margin:.25rem 0 0;color:#57534e}.field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.35rem;margin:.5rem 0}.field[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:.85rem;color:#57534e}.field-id[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-family:ui-monospace,Consolas,monospace;font-size:.85rem;color:#57534e}.hint[_ngcontent-%COMP%]{margin:0;font-size:.8rem;color:#78716c}.errors[_ngcontent-%COMP%]{border:1px solid #fecdd3;background:#fff1f2;padding:.75rem 1rem}.errors[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 .35rem;font-size:1rem}.error[_ngcontent-%COMP%]{color:#9f1239}.actions[_ngcontent-%COMP%]{white-space:nowrap}.name-cell[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.api-key-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:center}.api-key-row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{flex:1}.field-switch[_ngcontent-%COMP%]{flex-direction:row;align-items:center;justify-content:space-between}.modal-backdrop[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:1000;display:flex;align-items:flex-start;justify-content:center;padding:4rem 1rem 2rem;background:#1c191759}.modal-panel[_ngcontent-%COMP%]{width:min(32rem,100%);max-height:calc(100vh - 6rem);overflow:auto;background:#fff;border-radius:.5rem;padding:1.25rem 1.5rem 1.5rem;box-shadow:0 10px 30px #1c19172e}.modal-panel[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 .75rem;font-size:1.15rem}.modal-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:.5rem;margin-top:1rem}"]});}}return i})();export{Ui as ProvidersManageComponent,Ui as SettingsComponent};