@knoflows/engine 0.1.0-alpha.14 → 0.1.0-alpha.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/engine.js +18 -18
- package/dist/migrations/20260919073531_tense_grey_gargoyle/migration.sql +1 -0
- package/dist/migrations/20260919073531_tense_grey_gargoyle/snapshot.json +1348 -0
- package/dist/migrations/20260919081637_fearless_warlock/migration.sql +1 -0
- package/dist/migrations/20260919081637_fearless_warlock/snapshot.json +1358 -0
- package/package.json +2 -2
- package/static/apple-touch-icon.png +0 -0
- package/static/assets/i18n/en.json +23 -6
- package/static/assets/i18n/es.json +23 -6
- package/static/chunk-1Oqdt_Gp.js +1 -0
- package/static/{chunk-BGD9WiFM.js → chunk-1eeePIP1.js} +1 -1
- package/static/chunk-37yFTUcY.js +1 -0
- package/static/chunk-7MZQgksi.js +1 -0
- package/static/chunk-7VyHTRp_.js +1 -0
- package/static/chunk-B0V1VBvY.js +1 -0
- package/static/chunk-BH5zvE8A.js +1 -0
- package/static/chunk-BZxs3wP7.js +1 -0
- package/static/chunk-B_L2A3hm.js +1 -0
- package/static/chunk-BbIC5sO2.js +1 -0
- package/static/chunk-BeWWb9rm.js +1 -0
- package/static/chunk-BnD2l9n3.js +1 -0
- package/static/chunk-Bp8u1CCw.js +1 -0
- package/static/chunk-BpOumnMU.js +1 -0
- package/static/chunk-BuPc66MS.js +1 -0
- package/static/chunk-C4Ee3umI.js +1 -0
- package/static/chunk-C5n_oTWP.js +1 -0
- package/static/chunk-CF4gc4Im.js +1 -0
- package/static/chunk-CM8oLO7n.js +1 -0
- package/static/chunk-CXGgR5M1.js +1 -0
- package/static/chunk-CiJRU6lo.js +1 -0
- package/static/chunk-Cn95hfnf.js +1 -0
- package/static/chunk-Cq09TrKP.js +1 -0
- package/static/chunk-Cx2n09Ng.js +1 -0
- package/static/chunk-DFoFQkTa.js +1 -0
- package/static/chunk-DMAf3Qir.js +66 -0
- package/static/chunk-DYARU-G0.js +1 -0
- package/static/chunk-DZhQ2iEt.js +1 -0
- package/static/chunk-D_DUAV49.js +1 -0
- package/static/chunk-DgEO14wO.js +1 -0
- package/static/{chunk-CjitpVjI.js → chunk-DphMF2VB.js} +1 -1
- package/static/chunk-DxZsQqxS.js +1 -0
- package/static/chunk-GQe0l3Uh.js +1 -0
- package/static/chunk-J9qS04nF.js +1 -0
- package/static/chunk-dOUa0Vhs.js +1 -0
- package/static/chunk-nx1xncBD.js +1 -0
- package/static/chunk-q9oVn_qj.js +5 -0
- package/static/chunk-vYeIWxg4.js +1 -0
- package/static/chunk-yxqIQom4.js +1 -0
- package/static/favicon-16x16.png +0 -0
- package/static/favicon-32x32.png +0 -0
- package/static/favicon.ico +0 -0
- package/static/favicon.svg +12 -0
- package/static/icon-192.png +0 -0
- package/static/icon-512.png +0 -0
- package/static/index.html +30 -5
- package/static/main-2ZW45HAE.js +248 -0
- package/static/media/inter-latin-400-normal-55WT6UWF.woff2 +0 -0
- package/static/media/inter-latin-400-normal-FR5HOXA4.woff +0 -0
- package/static/media/inter-latin-500-normal-W62DVTXI.woff2 +0 -0
- package/static/media/inter-latin-500-normal-ZNGIZ2YB.woff +0 -0
- package/static/media/inter-latin-600-normal-R6Y2SZCR.woff2 +0 -0
- package/static/media/inter-latin-600-normal-ZYHV6QZT.woff +0 -0
- package/static/media/jetbrains-mono-latin-500-normal-ETEQEOVZ.woff +0 -0
- package/static/media/jetbrains-mono-latin-500-normal-V4XIP5OW.woff2 +0 -0
- package/static/media/space-grotesk-latin-500-normal-GESQWJQV.woff2 +0 -0
- package/static/media/space-grotesk-latin-500-normal-HV4TE4RA.woff +0 -0
- package/static/media/space-grotesk-latin-700-normal-6Z7GHSI6.woff +0 -0
- package/static/media/space-grotesk-latin-700-normal-I3MXRIUZ.woff2 +0 -0
- package/static/nz-theme-dark.css +1 -0
- package/static/nz-theme.css +1 -0
- package/static/styles-JGCTKGGH.css +1 -0
- package/static/chunk-7nUPxia9.js +0 -1
- package/static/chunk-B5OZfu7U.js +0 -1
- package/static/chunk-B6yhN6h_.js +0 -1
- package/static/chunk-B8xDFyOW.js +0 -1
- package/static/chunk-BCQYv6zO.js +0 -1
- package/static/chunk-BRQzRdUy.js +0 -1
- package/static/chunk-BT1tqKUa.js +0 -1
- package/static/chunk-BbMJvJVR.js +0 -5
- package/static/chunk-Bdf1gK_x.js +0 -1
- package/static/chunk-BgZJenki.js +0 -1
- package/static/chunk-BhOOhcFV.js +0 -1
- package/static/chunk-BphvnLVV.js +0 -1
- package/static/chunk-C4ekQTdr.js +0 -1
- package/static/chunk-CMCOXbTF.js +0 -1
- package/static/chunk-CVunAaEq.js +0 -1
- package/static/chunk-CWPY-qdb.js +0 -1
- package/static/chunk-C_RmBwoX.js +0 -1
- package/static/chunk-CkEV4Kdw.js +0 -1
- package/static/chunk-CmjHhm0_.js +0 -1
- package/static/chunk-Cprdc3WE.js +0 -1
- package/static/chunk-CsI-lLXP.js +0 -1
- package/static/chunk-D1s098WO.js +0 -1
- package/static/chunk-D5uYKhQI.js +0 -1
- package/static/chunk-DCwYXBAy.js +0 -1
- package/static/chunk-DDsAcugC.js +0 -66
- package/static/chunk-DWyVd0g2.js +0 -1
- package/static/chunk-Dn9gu9_q.js +0 -1
- package/static/chunk-Doaes0Yg.js +0 -7
- package/static/chunk-Dqf92YVW.js +0 -1
- package/static/chunk-Oq0qp-a6.js +0 -1
- package/static/chunk-PTPh9FQ2.js +0 -1
- package/static/chunk-PfPOHfb1.js +0 -1
- package/static/chunk-WIfL3i6D.js +0 -1
- package/static/chunk-ZTjXJrt4.js +0 -1
- package/static/chunk-bbBn-iZU.js +0 -1
- package/static/chunk-gl_-d0La.js +0 -1
- package/static/chunk-hTFsYp4X.js +0 -1
- package/static/chunk-szOy8Im7.js +0 -1
- package/static/main-OG6DVLH6.js +0 -249
- package/static/styles-4UB6RUIG.css +0 -1
package/static/chunk-DWyVd0g2.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {ar as YE,as as uu,C,c5 as XI,av as _r,aA as Ie,bP as Le,ce as W7,cf as q7,Q as QE,aE as pt,aF as Se,aI as ly,aJ as Z0,bd as BD,bq as $D,p as bD,x as gI,B as _D,l as gh,ah as _h,a5 as Mh,cg as _r$1,ch as yr,J as LD,h as _i,k as Kc,U as Pu,F as VD,W as Lu}from'./main-OG6DVLH6.js';var V=["*"];function x(o,A){if(o&1){let n=LD();_i(0,"nz-icon",1),gh("click",function(e){Pu(n);let i=VD();return Lu(i.closeTag(e))}),Kc();}}var I=(()=>{class o{renderer=C(XI);el=C(_r).nativeElement;dir=C(Ie).valueSignal;nzMode="default";nzColor;nzChecked=false;nzBordered=true;nzOnClose=new Le;nzCheckedChange=new Le;isPresetColor=false;updateCheckedStatus(){this.nzMode==="checkable"&&(this.nzChecked=!this.nzChecked,this.nzCheckedChange.emit(this.nzChecked));}closeTag(n){this.nzOnClose.emit(n),n.defaultPrevented||this.renderer.removeChild(this.renderer.parentNode(this.el),this.el);}clearPresetColor(){let n=new RegExp(`(ant-tag-(?:${[..._r$1,...yr].join("|")}))`,"g"),t=this.el.classList.toString(),e=[],i=n.exec(t);for(;i!==null;)e.push(i[1]),i=n.exec(t);this.el.classList.remove(...e);}setPresetColor(){this.clearPresetColor(),this.nzColor?this.isPresetColor=W7(this.nzColor)||q7(this.nzColor):this.isPresetColor=false,this.isPresetColor&&this.el.classList.add(`ant-tag-${this.nzColor}`);}ngOnChanges(n){let{nzColor:t}=n;t&&this.setPresetColor();}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=QE({type:o,selectors:[["nz-tag"]],hostAttrs:[1,"ant-tag"],hostVars:12,hostBindings:function(t,e){t&1&&gh("click",function(){return e.updateCheckedStatus()}),t&2&&(_h("background-color",e.isPresetColor?"":e.nzColor),Mh("ant-tag-has-color",e.nzColor&&!e.isPresetColor)("ant-tag-checkable",e.nzMode==="checkable")("ant-tag-checkable-checked",e.nzChecked)("ant-tag-rtl",e.dir()==="rtl")("ant-tag-borderless",!e.nzBordered));},inputs:{nzMode:"nzMode",nzColor:"nzColor",nzChecked:[2,"nzChecked","nzChecked",Z0],nzBordered:[2,"nzBordered","nzBordered",Z0]},outputs:{nzOnClose:"nzOnClose",nzCheckedChange:"nzCheckedChange"},exportAs:["nzTag"],features:[ly],ngContentSelectors:V,decls:2,vars:1,consts:[["nzType","close","tabindex","-1",1,"ant-tag-close-icon"],["nzType","close","tabindex","-1",1,"ant-tag-close-icon",3,"click"]],template:function(t,e){t&1&&(BD(),$D(0),bD(1,x,1,0,"nz-icon",0)),t&2&&(gI(),_D(e.nzMode==="closeable"?1:-1));},dependencies:[pt,Se],encapsulation:2})}return o})(),W=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=YE({type:o});static \u0275inj=uu({imports:[I]})}return o})();export{I,W};
|
package/static/chunk-Dn9gu9_q.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {w as we}from'./chunk-BCQYv6zO.js';import {C,a as ae$1,X as Ie,aj as U,d,V as Ve,b as at,q as qo,H as Hw,u as ue$1,r,a9 as Ng,ab as Dg,n as n$1,Q as QE,M as Mi,L as Ln,v as vd,c as Cc,f as r7,a1 as w7,K as Kt,h as _i,p as bD,k as Kc,x as gI,B as _D,j as vw,R as Rw,P as Ph,O as Ow,F as VD,J as LD,l as gh,z as ch,y as nl,U as Pu,W as Lu,w as lh,I as xw}from'./main-OG6DVLH6.js';import {a as ae$2,l as le$1}from'./chunk-WIfL3i6D.js';import'./chunk-ZTjXJrt4.js';import {b}from'./chunk-Dqf92YVW.js';import {G as Gn,u as un}from'./chunk-bbBn-iZU.js';import {U as U$1}from'./chunk-szOy8Im7.js';import'./chunk-CVunAaEq.js';import'./chunk-CjitpVjI.js';var te=i=>["/batches",i];function ie(i,r){i&1&&(_i(0,"p",1),vw(1),Rw(2,"transloco"),Kc()),i&2&&(gI(),Ph(Ow(2,1,"common.loading")));}function ne(i,r){if(i&1&&(_i(0,"p",2),vw(1),Kc()),i&2){let e=VD();gI(),Ph(e.loadError());}}function oe(i,r){i&1&&(_i(0,"a",10),vw(1),Rw(2,"transloco"),Kc()),i&2&&(ch("routerLink",xw(4,te,r)),gI(),nl(" ",Ow(2,2,"views.detail.openBatch")," "));}function ae(i,r){if(i&1&&(lh(0,"nz-alert",9),bD(1,oe,3,6,"a",10)),i&2){let e,t=VD(2);ch("nzMessage",t.confirmation()),gI(),_D((e=t.confirmationBatchId())?1:-1,e);}}function le(i,r){i&1&&(_i(0,"p",11),vw(1),Rw(2,"transloco"),Kc()),i&2&&(gI(),nl(" ",Ow(2,1,"views.detail.noBulkWorkflows")," "));}function re(i,r){if(i&1&&(_i(0,"p",14),vw(1),Kc()),i&2){let e=VD(4);gI(),Ph(e.launchError());}}function se(i,r){if(i&1){let e=LD();_i(0,"p",12),vw(1),Kc(),_i(2,"app-workflow-input-form",13),gh("valuesChange",function(n){Pu(e);let s=VD(3);return Lu(s.setInputValues(n))}),Kc(),bD(3,re,2,1,"p",14),_i(4,"div",15)(5,"button",16),gh("click",function(){Pu(e);let n=VD(3);return Lu(n.launch())}),vw(6),Rw(7,"transloco"),Kc(),_i(8,"button",17),gh("click",function(){Pu(e);let n=VD(3);return Lu(n.cancelLaunch())}),vw(9),Rw(10,"transloco"),Kc()();}if(i&2){let e=r,t=VD(3);gI(),Ph(e.name),gI(),ch("fields",e.inputSchema)("values",t.inputValues()),gI(),_D(t.launchError()?3:-1),gI(2),ch("nzLoading",t.launching())("disabled",t.launching()),gI(),nl(" ",Ow(7,8,t.launching()?"views.detail.launching":"views.detail.launch")," "),gI(3),nl(" ",Ow(10,10,"views.detail.cancelLaunch")," ");}}function ce(i,r){if(i&1&&(_i(0,"section",6)(1,"h2"),vw(2),Rw(3,"transloco"),Kc(),bD(4,le,3,3,"p",11)(5,se,11,12),Kc()),i&2){let e,t=VD(2);gI(2),nl(" ",Ow(3,2,r==="view"?"views.detail.launchViewTitle":"views.detail.launchSelectedTitle")," "),gI(2),_D(t.canBulkLaunch()?(e=t.boundWorkflow())?5:-1:4,e);}}function de(i,r){i&1&&(_i(0,"p",7),vw(1),Rw(2,"transloco"),Kc()),i&2&&(gI(),Ph(Ow(2,1,"views.detail.emptySubjects")));}function ue(i,r){if(i&1){let e=LD();_i(0,"app-runnable-items-table",18),gh("rowAction",function(n){Pu(e);let s=VD(2);return Lu(s.onRowAction(n))})("bulkAction",function(n){Pu(e);let s=VD(2);return Lu(s.onBulkAction(n))}),Kc();}if(i&2){let e=VD(2);ch("rows",e.rows())("selectable",true)("showRowAction",e.showRowAction());}}function pe(i,r){if(i&1){let e=LD();_i(0,"header",3)(1,"h1",4),vw(2),Kc(),_i(3,"button",5),gh("click",function(){Pu(e);let n=VD();return Lu(n.beginLaunch("view"))}),vw(4),Rw(5,"transloco"),Kc()(),bD(6,ae,2,2),bD(7,ce,6,4,"section",6),bD(8,de,3,3,"p",7)(9,ue,1,3,"app-runnable-items-table",8);}if(i&2){let e,t=VD();gI(2),Ph(r.name),gI(),ch("disabled",!t.canBulkLaunch()),gI(),nl(" ",Ow(5,6,"views.detail.runOnAll")," "),gI(2),_D(t.confirmation()?6:-1),gI(),_D((e=t.launchMode())?7:-1,e),gI(),_D(t.subjects().length===0?8:9);}}var Ne=(()=>{class i{constructor(){this.route=C(ae$1),this.router=C(Ie),this.viewsApi=C(U),this.workflowsApi=C(b),this.batchesApi=C(U$1),this.jobsApi=C(d),this.transloco=C(Ve),this.destroyRef=C(at),this.view=qo(null),this.subjects=qo([]),this.workflows=qo([]),this.latestBySubject=qo({}),this.loading=qo(true),this.loadError=qo(null),this.selectedIds=qo([]),this.launchMode=qo(null),this.inputValues=qo({}),this.launching=qo(false),this.launchError=qo(null),this.confirmation=qo(null),this.confirmationBatchId=qo(null),this.boundWorkflow=Hw(()=>{let e=this.view();return e?this.workflows().find(t=>t.id===e.workflowId)??null:null}),this.canBulkLaunch=Hw(()=>this.boundWorkflow()!=null),this.showRowAction=Hw(()=>this.boundWorkflow()?.subjectHandling==="per-subject"),this.rows=Hw(()=>{let e=this.latestBySubject();return this.subjects().map(t=>({id:t.id,primaryLabel:t.title,subtitle:this.subjectDetails(t),latestJob:e[t.id]??null}))}),this.route.paramMap.pipe(ue$1(this.destroyRef)).subscribe(e=>{let t=e.get("id");if(!t){this.loading.set(false),this.loadError.set(this.transloco.translate("views.detail.loadFailed"));return}this.load(t);});}subjectDetails(e){if(e.subjectType==="ticket")return [e.status,e.assignee].filter(Boolean).join(" \xB7 ");if(e.subjectType==="pull_request"){let t=`${e.sourceBranch} \u2192 ${e.targetBranch}`;return e.author?`${e.author} \xB7 ${t}`:t}return e.url??""}onBulkAction(e){this.selectedIds.set(e),this.beginLaunch("manual");}onRowAction(e){let t=this.view();t&&this.router.navigate(["/jobs/new"],{queryParams:{workflowId:t.workflowId,subjectId:e}});}beginLaunch(e){e==="manual"&&this.selectedIds().length===0||(this.launchError.set(null),this.confirmation.set(null),this.confirmationBatchId.set(null),this.launchMode.set(e),this.inputValues.set(ae$2(this.boundWorkflow()?.inputSchema??[])));}cancelLaunch(){this.launchMode.set(null),this.launchError.set(null);}setInputValues(e){this.inputValues.set(e);}launch(){let e=this.view(),t=this.boundWorkflow(),n=this.launchMode();if(!e||!t||!n)return;let s=n==="view"?{mode:"view",viewId:e.id}:{mode:"manual",subjectType:e.subjectType,subjectIds:[...this.selectedIds()]};this.launching.set(true),this.launchError.set(null),this.batchesApi.launch({workflowId:t.id,selection:s,triggeredBy:n==="view"?"view_bulk":"multiselect",inputValues:r({},this.inputValues())}).pipe(ue$1(this.destroyRef)).subscribe({next:w=>{this.launching.set(false),this.confirmation.set(this.confirmationMessage(w)),this.confirmationBatchId.set(w.kind==="batch"?w.batch.id:null),this.launchMode.set(null),this.refreshLatest(e.workflowId,this.subjects().map(ee=>ee.id));},error:w=>{this.launching.set(false),this.launchError.set(this.errorMessage(w,this.transloco.translate("views.detail.launchFailed")));}});}confirmationMessage(e){return e.kind==="batch"?this.transloco.translate("views.detail.confirmation.batch",{id:e.batch.id,count:e.batch.jobIds.length}):this.transloco.translate("views.detail.confirmation.job",{id:e.job.id})}load(e){this.loading.set(true),this.loadError.set(null),this.selectedIds.set([]),this.launchMode.set(null),this.confirmation.set(null),this.confirmationBatchId.set(null),Ng({view:this.viewsApi.get(e),subjects:this.viewsApi.getSubjects(e),workflows:this.workflowsApi.list()}).pipe(ue$1(this.destroyRef)).subscribe({next:({view:t,subjects:n,workflows:s})=>{this.view.set(t),this.subjects.set(n),this.workflows.set(s),this.loading.set(false),this.refreshLatest(t.workflowId,n.map(w=>w.id));},error:t=>{this.loading.set(false),this.loadError.set(this.errorMessage(t,this.transloco.translate("views.detail.loadFailed")));}});}refreshLatest(e,t){(t.length===0?Dg({}):this.jobsApi.latestBySubject(e,t)).pipe(ue$1(this.destroyRef)).subscribe({next:s=>this.latestBySubject.set(s),error:()=>this.latestBySubject.set({})});}errorMessage(e,t){return e instanceof n$1||e instanceof Error?e.message:t}static{this.\u0275fac=function(t){return new(t||i)};}static{this.\u0275cmp=QE({type:i,selectors:[["app-view-detail"]],decls:4,vars:1,consts:[["data-testid","view-detail",1,"detail-page"],["data-testid","loading"],["data-testid","load-error",1,"error"],[1,"header"],["data-testid","view-name"],["nz-button","","nzType","primary","type","button","data-testid","run-on-all",3,"click","disabled"],["data-testid","launch-panel",1,"launch-panel"],["data-testid","empty-subjects",1,"muted"],[3,"rows","selectable","showRowAction"],["data-testid","launch-confirmation","nzType","success",3,"nzMessage"],["nz-button","","nzType","link","data-testid","open-batch",3,"routerLink"],["data-testid","no-bulk-workflows",1,"muted"],["data-testid","launch-workflow",1,"muted"],[3,"valuesChange","fields","values"],["data-testid","launch-error",1,"error"],[1,"launch-actions"],["nz-button","","nzType","primary","type","button","data-testid","launch-submit",3,"click","nzLoading","disabled"],["nz-button","","type","button","data-testid","launch-cancel",3,"click"],[3,"rowAction","bulkAction","rows","selectable","showRowAction"]],template:function(t,n){if(t&1&&(_i(0,"main",0),bD(1,ie,3,3,"p",1)(2,ne,2,1,"p",2)(3,pe,10,8),Kc()),t&2){let s;gI(),_D(n.loading()?1:n.loadError()?2:(s=n.view())?3:-1,s);}},dependencies:[Mi,Ln,Gn,un,vd,Cc,r7,w7,le$1,we,Kt],styles:[".detail-page[_ngcontent-%COMP%]{padding:1.25rem 1.5rem 3rem;display:flex;flex-direction:column;gap:1rem}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:1rem;align-items:center}.header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0}.field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.35rem;min-width:14rem}.field[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:.85rem;color:#57534e}.launch-panel[_ngcontent-%COMP%]{padding:1rem;border:1px solid #d6d3d1;background:#ffffffb3}.launch-panel[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 .75rem;font-size:1.1rem}.launch-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;margin-top:.5rem}.muted[_ngcontent-%COMP%]{color:#78716c}.error[_ngcontent-%COMP%]{color:#9f1239}.actions[_ngcontent-%COMP%]{white-space:nowrap}[_nghost-%COMP%] .ant-table-tbody>tr>td{white-space:normal;vertical-align:top}"]});}}return i})();export{Ne as ViewDetailComponent};
|
package/static/chunk-Doaes0Yg.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import {G as Gn,u as un}from'./chunk-bbBn-iZU.js';import {f}from'./chunk-B6yhN6h_.js';import {B as Bt}from'./chunk-CMCOXbTF.js';import {l,s,f as f$1,o,c}from'./chunk-DCwYXBAy.js';import {W,I}from'./chunk-DWyVd0g2.js';import'./chunk-CVunAaEq.js';import'./chunk-CjitpVjI.js';import {C,a as ae,X as Ie$1,d,V as Ve$1,b as at$1,q as qo,H as Hw,u as ue$1,$ as rd,a0 as Bw,n as n$1,Q as QE,M as Mi,L as Ln,v as vd,c as Cc,f as r7,a1 as w7,K as Kt,h as _i,p as bD,k as Kc,x as gI,B as _D,a2 as $0,a3 as B0,j as vw,R as Rw,P as Ph,O as Ow,F as VD,J as LD,l as gh,U as Pu,W as Lu,y as nl,a4 as Pw,I as xw,z as ch,N as ND,D as xD,w as lh,a5 as Mh,G as ah,Z as Lh,a6 as Nw,a7 as MD}from'./main-OG6DVLH6.js';var ue=t=>({index:t}),_e=()=>[],he=(t,l)=>l.definition.id,ve=(t,l)=>l.index;function Se(t,l){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 C=VD();return Lu(C.onNestedSelect(o))})("retryStep",function(){Pu(e);let o=VD();return Lu(o.retryStep.emit())}),Kc()();}if(t&2){let e=l,i=VD();gI(2),nl(" ",Ow(3,11,"jobs.detail.loopBack")," "),gI(3),nl(" ",Pw(6,13,"jobs.detail.loopIteration",xw(16,ue,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 Ee(t,l){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(l.status)));}}function ye(t,l){if(t&1){let e=LD();_i(0,"li")(1,"button",9),gh("click",function(){let o=Pu(e).$implicit,C=VD(2);return Lu(C.onStepClick(o))}),_i(2,"span",10),vw(3),Kc(),_i(4,"span",11)(5,"span",12),vw(6),Rw(7,"transloco"),Kc(),bD(8,Ee,3,4,"nz-tag"),Kc()()();}if(t&2){let e,i=l.$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 we(t,l){t&1&&(_i(0,"p",8),vw(1),Rw(2,"transloco"),Kc()),t&2&&(gI(),nl(" ",Ow(2,1,"jobs.detail.noStepSelected")," "));}function ke(t,l){t&1&&(_i(0,"p",17),vw(1),Rw(2,"transloco"),Kc()),t&2&&(gI(),Ph(Ow(2,1,"jobs.detail.inProgress.loop")));}function Te(t,l){if(t&1){let e=LD();_i(0,"li")(1,"button",20),gh("click",function(){let o=Pu(e).$implicit,C=VD(4);return Lu(C.openIteration(C.selectedDefinition(),o))}),vw(2),Rw(3,"transloco"),Kc()();}if(t&2){let e=l.$implicit;gI(),ah("data-testid","loop-iteration-"+e.index),gI(),nl(" ",Pw(3,2,"jobs.detail.loopIteration",xw(5,ue,e.index+1))," ");}}function Ie(t,l){t&1&&(_i(0,"li",12),vw(1),Rw(2,"transloco"),Kc()),t&2&&(gI(),Ph(Ow(2,1,"jobs.detail.noIterations")));}function je(t,l){if(t&1&&(_i(0,"p",19),vw(1),Kc()),t&2){let e=VD(4);gI(),Ph(e.selectedExecution().error);}}function De(t,l){if(t&1&&(_i(0,"div",13)(1,"h3"),vw(2),Kc(),bD(3,ke,3,3,"p",17),_i(4,"ul",18),ND(5,Te,4,7,"li",null,ve,false,Ie,3,3,"li",12),Kc(),bD(8,je,2,1,"p",19),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,_e)),gI(3),_D(e.selectedExecution().error?8:-1);}}function Me(t,l){t&1&&(_i(0,"p",17),vw(1),Rw(2,"transloco"),Kc()),t&2&&(gI(),nl(" ",Ow(2,1,"jobs.detail.inProgress.sub_workflow")," "));}function Je(t,l){if(t&1&&(_i(0,"p",19),vw(1),Kc()),t&2){let e=VD(4);gI(),Ph(e.selectedExecution().error);}}function Pe(t,l){if(t&1&&(_i(0,"div",14)(1,"h3"),vw(2),Kc(),bD(3,Me,3,3,"p",17),lh(4,"app-job-status-table",21),bD(5,Je,2,1,"p",19),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,_e)),gI(),_D(e.selectedExecution().error?5:-1);}}function Ne(t,l){if(t&1&&(_i(0,"li"),vw(1),Kc()),t&2){let e=l.$implicit;gI(),Ph(e);}}function Ve(t,l){t&1&&(_i(0,"li",12),vw(1),Rw(2,"transloco"),Kc()),t&2&&(gI(),Ph(Ow(2,1,"jobs.resume.noQuestions")));}function Re(t,l){if(t&1&&(_i(0,"p",26),vw(1),Kc()),t&2){let e=VD(5);gI(),Ph(e.resumeParseError());}}function We(t,l){if(t&1){let e=LD();_i(0,"section",22)(1,"h4"),vw(2),Rw(3,"transloco"),Kc(),_i(4,"ul",24),ND(5,Ne,2,1,"li",null,MD,false,Ve,3,3,"li",12),Kc(),_i(8,"label"),vw(9),Rw(10,"transloco"),_i(11,"textarea",25),gh("input",function(o){Pu(e);let C=VD(4);return Lu(C.onResumeTextInput(o))}),Kc()(),bD(12,Re,2,1,"p",26),_i(13,"button",27),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 ze(t,l){if(t&1&&(_i(0,"pre",23),vw(1),Kc()),t&2){let e=VD(4);gI(),Ph(e.formatOutput(e.selectedExecution()));}}function Oe(t,l){if(t&1&&(_i(0,"div",15)(1,"h3"),vw(2),Kc(),bD(3,We,16,13,"section",22)(4,ze,2,1,"pre",23),Kc()),t&2){let e=VD(3);gI(2),Ph(e.selectedDefinition()?.name),gI(),_D(e.showResume()?3:4);}}function Be(t,l){t&1&&(_i(0,"p",17),vw(1),Rw(2,"transloco"),Kc()),t&2&&(gI(),nl(" ",Ow(2,1,"jobs.detail.inProgress.extract")," "));}function Fe(t,l){t&1&&(_i(0,"p",12),vw(1),Rw(2,"transloco"),_i(3,"code",36),vw(4),Kc()()),t&2&&(gI(),nl(" ",Ow(2,2,"jobs.extract.pattern")," "),gI(3),Ph(l));}function Ae(t,l){if(t&1){let e=LD();_i(0,"section",28)(1,"h4"),vw(2),Rw(3,"transloco"),Kc(),_i(4,"p",12),vw(5),Rw(6,"transloco"),Kc(),_i(7,"pre",30),vw(8),Kc(),bD(9,Fe,5,4,"p",12),_i(10,"label"),vw(11),Rw(12,"transloco"),_i(13,"input",31),gh("input",function(o){Pu(e);let C=VD(4);return Lu(C.onExtractValueInput(o))}),Kc()(),_i(14,"div",32)(15,"button",33),gh("click",function(){Pu(e);let o=VD(4);return Lu(o.provideExtractValue())}),vw(16),Rw(17,"transloco"),Kc(),_i(18,"button",34),gh("click",function(){Pu(e);let o=VD(4);return Lu(o.continueExtract())}),vw(19),Rw(20,"transloco"),Kc(),_i(21,"button",35),gh("click",function(){Pu(e);let o=VD(4);return Lu(o.cancelExtract())}),vw(22),Rw(23,"transloco"),Kc()()();}if(t&2){let e,i=VD(4);gI(2),Ph(Ow(3,12,"jobs.extract.heading")),gI(3),Ph(Ow(6,14,"jobs.extract.sourceValue")),gI(3),Ph(i.extractSourceDisplay()),gI(),_D((e=i.extractPauseData()?.pattern)?9:-1,e),gI(2),nl(" ",Ow(12,16,"jobs.extract.valueLabel")," "),gI(2),ch("value",i.extractValue()),gI(2),ch("disabled",i.resuming()),gI(),nl(" ",Ow(17,18,"jobs.extract.provideValue")," "),gI(2),ch("disabled",i.resuming()),gI(),nl(" ",Ow(20,20,"jobs.extract.continue")," "),gI(2),ch("disabled",i.resuming()),gI(),nl(" ",Ow(23,22,"jobs.extract.cancel")," ");}}function Le(t,l){if(t&1&&(_i(0,"p",29),vw(1),Kc()),t&2){let e=VD(4);gI(),Ph(e.selectedExecution().error);}}function $e(t,l){if(t&1&&(_i(0,"pre",23),vw(1),Kc()),t&2){let e=VD(4);gI(),Ph(e.formatOutput(e.selectedExecution()));}}function qe(t,l){if(t&1&&(_i(0,"div",16)(1,"h3"),vw(2),Kc(),bD(3,Be,3,3,"p",17)(4,Ae,24,24,"section",28)(5,Le,2,1,"p",29)(6,$e,2,1,"pre",23),Kc()),t&2){let e=VD(3);gI(2),Ph(e.selectedDefinition()?.name),gI(),_D(e.isRunning(e.selectedExecution())?3:e.showExtractResume()?4:e.selectedExecution().error||e.selectedExecution().status==="failed"?5:6);}}function Ke(t,l){t&1&&(_i(0,"p",37),vw(1),Rw(2,"transloco"),Kc()),t&2&&(gI(),nl(" ",Ow(2,1,"jobs.detail.waitingForAgentSlot")," "));}function Qe(t,l){if(t&1&&(_i(0,"p",17),vw(1),Rw(2,"transloco"),Kc()),t&2){let e=VD(4);gI(),nl(" ",Ow(2,1,"jobs.detail.inProgress."+e.selectedExecution().type)," ");}}function He(t,l){if(t&1){let e=LD();_i(0,"button",39),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 Ue(t,l){if(t&1&&(_i(0,"p",29),vw(1),Kc(),bD(2,He,3,4,"button",38)),t&2){let e=VD(4);gI(),Ph(e.selectedExecution().error),gI(),_D(e.showRetryStep()?2:-1);}}function Ge(t,l){if(t&1&&(_i(0,"pre",23),vw(1),Kc()),t&2){let e=VD(4);gI(),Ph(e.formatOutput(e.selectedExecution()));}}function Xe(t,l){if(t&1&&(_i(0,"div")(1,"h3"),vw(2),Kc(),bD(3,Ke,3,3,"p",37)(4,Qe,3,3,"p",17)(5,Ue,3,2)(6,Ge,2,1,"pre",23),Kc()),t&2){let e=VD(3);ah("data-testid",e.selectedExecution().type+"-view"),gI(2),Ph(e.selectedDefinition()?.name),gI(),_D(e.isQueued(e.selectedExecution())?3:e.isRunning(e.selectedExecution())?4:e.selectedExecution().error||e.selectedExecution().status==="failed"?5:6);}}function Ye(t,l){if(t&1&&bD(0,De,9,5,"div",13)(1,Pe,6,5,"div",14)(2,Oe,5,2,"div",15)(3,qe,7,2,"div",16)(4,Xe,7,3,"div"),t&2){let e,i=VD(2);_D((e=i.selectedExecution().type)==="loop"?0:e==="sub_workflow"?1:e==="interaction"?2:e==="extract"?3:4);}}function Ze(t,l){if(t&1&&(_i(0,"aside",5)(1,"h3"),vw(2),Rw(3,"transloco"),Kc(),_i(4,"ul",6),ND(5,ye,9,13,"li",null,he),Kc()(),_i(7,"section",7),bD(8,we,3,3,"p",8)(9,Ye,5,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.extractResume=B0(),this.retryStep=B0(),this.nestedIteration=qo(null),this.nestedLoopDefinition=qo(null),this.nestedSelectedId=qo(null),this.extractValue=qo(""),this.rows=Hw(()=>o(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.showExtractResume=Hw(()=>{if(!this.canResume())return false;let e=this.selectedExecution(),i=this.currentExecutionId();return e!=null&&e.id===i&&e.type==="extract"&&this.job().status==="waiting_for_human"}),this.extractPauseData=Hw(()=>{let e=this.waitingEvent();if(e&&pe(e.data))return e.data;let i=this.selectedExecution()?.output;return pe(i)?i:null}),this.showRetryStep=Hw(()=>{if(!this.canRetryStep())return false;let e=this.selectedExecution();return !e||e.status!=="failed"||e.id!==this.currentExecutionId()?false:c(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);}onExtractValueInput(e){this.extractValue.set(e.target.value);}extractSourceDisplay(){let e=this.extractPauseData();return e?et(e.sourceValue):""}provideExtractValue(){this.extractResume.emit({action:"provide_value",value:this.extractValue()});}continueExtract(){this.extractResume.emit({action:"continue"});}cancelExtract(){this.extractResume.emit({action:"cancel"});}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"}isQueued(e){return e?.status==="queued"}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",extractResume:"extractResume",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","extract-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","extract-resume-form",1,"resume"],["data-testid","step-error",1,"error"],["data-testid","extract-source-value"],["data-testid","extract-value",3,"input","value"],[1,"extract-actions"],["nz-button","","nzType","primary","type","button","data-testid","extract-provide",3,"click","disabled"],["nz-button","","type","button","data-testid","extract-continue",3,"click","disabled"],["nz-button","","nzDanger","","type","button","data-testid","extract-cancel",3,"click","disabled"],["data-testid","extract-pattern"],["data-testid","step-queued"],["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,Ze,10,4),Kc()),i&2){let C;gI(),_D((C=o.nestedIteration())?1:2,C);}},dependencies:[t,Mi,vd,Cc,r7,w7,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%], .resume[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font:inherit;font-family:ui-monospace,Consolas,monospace;padding:.4rem .5rem;border:1px solid #a8a29e}.extract-actions[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.5rem}@media(max-width:48rem){.workspace[_ngcontent-%COMP%]{grid-template-columns:1fr}}"]});}}return t})();function pe(t){return t!=null&&typeof t=="object"&&!Array.isArray(t)&&"sourceValue"in t}function et(t){return t==null?"":typeof t=="string"?t:JSON.stringify(t,null,2)}function tt(t,l){t&1&&(_i(0,"p",1),vw(1),Rw(2,"transloco"),Kc()),t&2&&(gI(),Ph(Ow(2,1,"common.loading")));}function it(t,l){if(t&1&&(_i(0,"p",2),vw(1),Kc()),t&2){let e=VD();gI(),Ph(e.loadError());}}function nt(t,l){if(t&1&&(vw(0),Rw(1,"transloco")),t&2){let e=VD(2);Lh(" ",Ow(1,2,"jobs.detail.worktreeDeleted")," ",e.worktreeDeletedAt," ");}}function ot(t,l){if(t&1&&vw(0),t&2){let e=VD(3);nl(" (",e.branch,") ");}}function rt(t,l){if(t&1&&(vw(0),Rw(1,"transloco"),bD(2,ot,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 at(t,l){if(t&1&&(_i(0,"p",10),bD(1,nt,2,4)(2,rt,3,5),Kc()),t&2){let e=VD();gI(),_D(e.worktreeDeletedAt?1:2);}}function st(t,l){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 lt(t,l){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 ct(t,l){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 dt(t,l){if(t&1&&(_i(0,"p",15),vw(1),Kc()),t&2){let e=VD(2);gI(),Ph(e.actionError());}}function pt(t,l){t&1&&(lh(0,"nz-alert",16),Rw(1,"transloco")),t&2&&ch("nzMessage",Ow(1,1,"jobs.detail.queued"));}function ut(t,l){if(t&1){let e=LD();_i(0,"app-job-step-workspace",22),gh("selectExecution",function(o){Pu(e);let C=VD(2);return Lu(C.onSelectExecution(o))})("resumeTextChange",function(o){Pu(e);let C=VD(2);return Lu(C.setResumeText(o))})("resumeSubmit",function(){Pu(e);let o=VD(2);return Lu(o.submitResume())})("extractResume",function(o){Pu(e);let C=VD(2);return Lu(C.submitExtractResume(o))})("retryStep",function(){Pu(e);let o=VD(2);return Lu(o.retryThisStep())}),Kc();}if(t&2){let e=VD(),i=VD();ch("definitions",l.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 _t(t,l){t&1&&(_i(0,"p",18),vw(1),Rw(2,"transloco"),Kc()),t&2&&(gI(),nl(" ",Ow(2,1,"jobs.detail.workflowMissing")," "));}function mt(t,l){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,at,3,1,"p",10),Kc(),_i(18,"div",11),bD(19,st,3,4,"button",12),bD(20,lt,3,4,"button",13),bD(21,ct,3,3,"button",14),Kc()(),bD(22,dt,2,1,"p",15),bD(23,pt,2,3,"nz-alert",16)(24,ut,1,12,"app-job-step-workspace",17)(25,_t,3,3,"p",18)),t&2){let e,i=l,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 Ot=(()=>{class t{constructor(){this.route=C(ae),this.router=C(Ie$1),this.jobsApi=C(d),this.eventsService=C(f),this.transloco=C(Ve$1),this.destroyRef=C(at$1),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?l(e):null}),this.showQueued=Hw(()=>{let e=this.job();return e!=null&&l(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 s(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),s(o.status)&&this.closeStream();},error:o=>{this.resuming.set(false),this.actionError.set(this.errorMessage(o,this.transloco.translate("jobs.errors.resumeFailed")));}});}submitExtractResume(e){let i=this.job();i&&(this.actionError.set(null),this.resuming.set(true),this.jobsApi.resume(i.id,e).subscribe({next:o=>{this.resuming.set(false),this.applyJob(o),s(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),s(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||s(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),s(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),s(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(l(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 n$1||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","extractResume","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,tt,3,3,"p",1)(2,it,2,1,"p",2)(3,mt,26,15),Kc()),i&2){let C;gI(),_D(o.loading()?1:o.loadError()?2:(C=o.job())?3:-1,C);}},dependencies:[Mi,Ln,Gn,un,vd,Cc,r7,w7,W,I,me,Kt],styles:[".detail-page[_ngcontent-%COMP%]{padding:1.25rem 1.5rem 3rem;display:flex;flex-direction:column;gap:1rem}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.header-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{Ot as JobDetailComponent};
|
package/static/chunk-Dqf92YVW.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {C,af as Zi,a8 as m,ci as u,ag as E,i as ie}from'./main-OG6DVLH6.js';var b=(()=>{class r{constructor(){this.http=C(Zi),this.baseUrl=`${m.apiBaseUrl}/workflows`;}list(t){return this.http.get(this.baseUrl,{params:u(t)}).pipe(E())}get(t){return this.http.get(`${this.baseUrl}/${encodeURIComponent(t)}`).pipe(E())}create(t){return this.http.post(this.baseUrl,t).pipe(E())}update(t,i){return this.http.patch(`${this.baseUrl}/${encodeURIComponent(t)}`,i).pipe(E())}delete(t){return this.http.delete(`${this.baseUrl}/${encodeURIComponent(t)}`).pipe(E())}exportDefinition(t){return this.http.get(`${this.baseUrl}/${encodeURIComponent(t)}/export`).pipe(E())}importDefinition(t){return this.http.post(`${this.baseUrl}/import`,t).pipe(E())}getInstructions(){return this.http.get(`${this.baseUrl}/instructions`,{responseType:"text"}).pipe(E())}static{this.\u0275fac=function(i){return new(i||r)};}static{this.\u0275prov=ie({token:r,factory:r.\u0275fac,providedIn:"root"});}}return r})();export{b};
|
package/static/chunk-Oq0qp-a6.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {C,b0 as Ee,au as kt,aA as Ie,bC as re,bD as Vg,bE as Gl,bF as jt$1,bG as qu,bH as vn,bI as $a,bJ as Ba,bK as t2,bL as G1,bM as L1,bN as $1,b2 as W3,bO as A,i as ie$1,ar as YE,as as uu,r,bP as Le,bQ as Sy,Q as QE,aE as pt,aF as Se$1,aG as Tt,aH as Ne,bR as Z4,bS as Pa,v as vd,c as Cc,f as r7,a1 as w7,bT as Xy,bU as eh,h as _i,R as Rw,p as bD,w as lh,aR as nh,k as Kc,bu as sw,bi as cw,ah as _h,O as Ow,x as gI,B as _D,z as ch,bg as rD,bV as rn,l as gh,a5 as Mh,aN as Ih,aO as qD,aP as WD,bW as W,bX as We,bY as Ge,bZ as on,b_ as yt$1,b$ as im,c0 as Ha,ae as v,c1 as Tr,ax as z0,a2 as $0,a3 as B0,c2 as G4,c3 as Uo,aw as oe,av as _r,c4 as r0,c5 as XI,c6 as Gm,b as at,bt as Vt$1,c7 as p9,c8 as x1,aC as St$1,u as ue,bx as XE,c9 as eD,J as LD,aS as el,aT as tl,F as VD,j as vw,G as ah,y as nl,U as Pu,W as Lu,ca as f9,cb as v9,cc as Aw,N as ND,S as SD,D as xD,cd as vv}from'./main-OG6DVLH6.js';(class n{static formats={B:{max:1024},kB:{max:Math.pow(1024,2),prev:"B"},KB:{max:Math.pow(1024,2),prev:"B"},MB:{max:Math.pow(1024,3),prev:"kB"},GB:{max:Math.pow(1024,4),prev:"MB"},TB:{max:Number.MAX_SAFE_INTEGER,prev:"GB"}};transform(o,e=0,t="B",i){if(!(f9(o)&&f9(e)&&e%1===0&&e>=0))return o;let a=o,r=t;for(;r!=="B";)a*=1024,r=n.formats[r].prev;if(i){let m=n.formats[i],k=v9(n.calculateResult(m,a),e);return n.formatResult(k,i)}for(let m in n.formats)if(n.formats.hasOwnProperty(m)){let k=n.formats[m];if(a<k.max){let kt=v9(n.calculateResult(k,a),e);return n.formatResult(kt,m)}}}static formatResult(o,e){return `${o} ${e}`}static calculateResult(o,e){let t=o.prev?n.formats[o.prev]:void 0;return t?e/t.max:e}static \u0275fac=function(e){return new(e||n)};static \u0275pipe=eD({name:"nzBytes",type:n,pure:true})});var Se=(()=>{class n{transform(e,t="px"){return typeof e=="number"?`${e}${t}`:e}static \u0275fac=function(t){return new(t||n)};static \u0275pipe=eD({name:"nzToCssUnit",type:n,pure:true})}return n})();var Fe=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=YE({type:n});static \u0275inj=uu({})}return n})();function Ot(n,o){if(n&1&&(el(0),lh(1,"nz-icon",2),tl()),n&2){let e=o.$implicit;gI(),ch("nzType",e);}}var gt=["modalElement"];function Dt(n,o){if(n&1){let e=LD();_i(0,"button",16),gh("click",function(){Pu(e);let i=VD();return Lu(i.onCloseClick())}),Kc();}}function xt(n,o){if(n&1&&(el(0),lh(1,"span",12),tl()),n&2){let e=VD();gI(),ch("innerHTML",e.config.nzTitle,vv);}}function Et(n,o){}function Nt(n,o){if(n&1&&lh(0,"div",12),n&2){let e=VD();ch("innerHTML",e.config.nzContent,vv);}}function At(n,o){if(n&1){let e=LD();_i(0,"button",17),gh("click",function(){Pu(e);let i=VD();return Lu(i.onCancel())}),vw(1),Rw(2,"nzI18n"),Kc();}if(n&2){let e=VD();ch("nzLoading",e.config.nzCancelLoading)("disabled",e.config.nzCancelDisabled),ah("cdkFocusInitial",e.config.nzAutofocus==="cancel"||null),gI(),nl(" ",e.config.nzCancelText||Ow(2,4,"Modal.cancelText")," ");}}function St(n,o){if(n&1){let e=LD();_i(0,"button",18),gh("click",function(){Pu(e);let i=VD();return Lu(i.onOk())}),vw(1),Rw(2,"nzI18n"),Kc();}if(n&2){let e=VD();ch("nzType",e.config.nzOkType)("nzLoading",e.config.nzOkLoading)("disabled",e.config.nzOkDisabled)("nzDanger",e.config.nzOkDanger),ah("cdkFocusInitial",e.config.nzAutofocus==="ok"||null),gI(),nl(" ",e.config.nzOkText||Ow(2,6,"Modal.okText")," ");}}var Ft=(n,o)=>({$implicit:n,modalRef:o});function Rt(n,o){if(n&1){let e=LD();_i(0,"button",3),gh("click",function(){let i=Pu(e).$implicit,a=VD(4);return Lu(a.onButtonClick(i))}),vw(1),Kc();}if(n&2){let e=o.$implicit,t=VD(4);ch("hidden",!t.getButtonCallableProp(e,"show"))("nzLoading",t.getButtonCallableProp(e,"loading"))("disabled",t.getButtonCallableProp(e,"disabled"))("nzType",e.type)("nzDanger",e.danger)("nzShape",e.shape)("nzSize",e.size)("nzGhost",e.ghost),gI(),nl(" ",e.label," ");}}function wt(n,o){if(n&1&&ND(0,Rt,2,9,"button",2,SD),n&2){let e=VD(3);xD(e.buttons);}}function Lt(n,o){if(n&1&&lh(0,"div",1),n&2){let e=VD(3);ch("innerHTML",e.config.nzFooter,vv);}}function It(n,o){if(n&1&&(el(0),bD(1,wt,2,0)(2,Lt,1,1,"div",1),tl()),n&2){let e=VD(2);gI(),_D(e.buttons?1:2);}}function Bt(n,o){if(n&1&&nh(0,It,3,1,"ng-container",0),n&2){let e=VD();ch("nzStringTemplateOutlet",e.config.nzFooter)("nzStringTemplateOutletContext",Aw(2,Ft,e.config.nzData,e.modalRef()));}}function Pt(n,o){if(n&1){let e=LD();_i(0,"button",6),gh("click",function(){Pu(e);let i=VD(2);return Lu(i.onCancel())}),vw(1),Rw(2,"nzI18n"),Kc();}if(n&2){let e=VD(2);ch("nzLoading",e.config.nzCancelLoading)("disabled",e.config.nzCancelDisabled),ah("cdkFocusInitial",e.config.nzAutofocus==="cancel"||null),gI(),nl(" ",e.config.nzCancelText||Ow(2,4,"Modal.cancelText")," ");}}function Vt(n,o){if(n&1){let e=LD();_i(0,"button",7),gh("click",function(){Pu(e);let i=VD(2);return Lu(i.onOk())}),vw(1),Rw(2,"nzI18n"),Kc();}if(n&2){let e=VD(2);ch("nzType",e.config.nzOkType)("nzDanger",e.config.nzOkDanger)("nzLoading",e.config.nzOkLoading)("disabled",e.config.nzOkDisabled),ah("cdkFocusInitial",e.config.nzAutofocus==="ok"||null),gI(),nl(" ",e.config.nzOkText||Ow(2,6,"Modal.okText")," ");}}function Wt(n,o){if(n&1&&(bD(0,Pt,3,6,"button",4),bD(1,Vt,3,8,"button",5)),n&2){let e=VD();_D(e.config.nzCancelText!==null?0:-1),gI(),_D(e.config.nzOkText!==null?1:-1);}}function jt(n,o){if(n&1&&(el(0),lh(1,"div",2),tl()),n&2){let e=VD();gI(),ch("innerHTML",e.config.nzTitle,vv);}}function Ht(n,o){if(n&1){let e=LD();_i(0,"button",9),gh("click",function(){Pu(e);let i=VD();return Lu(i.onCloseClick())}),Kc();}}function $t(n,o){if(n&1&&lh(0,"div",10),n&2){let e=VD();_h("cursor",e.config.nzDraggable?"move":"auto");}}function Zt(n,o){}function Kt(n,o){if(n&1&&lh(0,"div",7),n&2){let e=VD();ch("innerHTML",e.config.nzContent,vv);}}function Qt(n,o){if(n&1){let e=LD();_i(0,"div",11),gh("cancelTriggered",function(){Pu(e);let i=VD();return Lu(i.onCloseClick())})("okTriggered",function(){Pu(e);let i=VD();return Lu(i.onOkClick())}),Kc();}if(n&2){let e=VD();ch("modalRef",e.modalRef);}}var zt=()=>{},T=class{nzCentered=false;nzClosable=true;nzOkLoading=false;nzOkDisabled=false;nzCancelDisabled=false;nzCancelLoading=false;nzDraggable=false;nzNoAnimation=false;nzAutofocus="auto";nzMask;nzMaskClosable;nzKeyboard=true;nzZIndex=1e3;nzWidth=520;nzCloseIcon="close";nzOkType="primary";nzOkDanger=false;nzModalType="default";nzOnCancel=zt;nzOnOk=zt;nzData;nzMaskStyle;nzBodyStyle;nzWrapClassName;nzClassName;nzStyle;nzTitle;nzFooter;nzCancelText;nzOkText;nzContent;nzCloseOnNavigation;nzViewContainerRef;nzAfterOpen;nzAfterClose;nzIconType="question-circle";nzDirection},_={enter:"ant-zoom-enter",enterActive:"ant-zoom-enter-active",leave:"ant-zoom-leave",leaveActive:"ant-zoom-leave-active"},I={enter:"ant-fade-enter",enterActive:"ant-fade-enter-active",leave:"ant-fade-leave",leaveActive:"ant-fade-leave-active"},te="ant-modal-mask",ne="modal",Ut=new A(""),we=(()=>{class n{config=C(T);static \u0275fac=function(t){return new(t||n)};static \u0275cmp=QE({type:n,selectors:[["button","nz-modal-close",""]],hostAttrs:["aria-label","Close",1,"ant-modal-close"],exportAs:["nzModalCloseBuiltin"],decls:2,vars:1,consts:[[1,"ant-modal-close-x"],[4,"nzStringTemplateOutlet"],[1,"ant-modal-close-icon",3,"nzType"]],template:function(t,i){t&1&&(_i(0,"span",0),nh(1,Ot,2,1,"ng-container",1),Kc()),t&2&&(gI(),ch("nzStringTemplateOutlet",i.config.nzCloseIcon));},dependencies:[pt,Se$1,Tt,Ne],encapsulation:2})}return n})();function qt(n,o){return r(r({},o),n)}function q(n,o,e){return typeof n>"u"?typeof o>"u"?e:o:n}function Ct(){throw Error("Attempting to attach modal content after content is already attached")}var ht=(()=>{class n extends G4{document=C(Uo);cdr=C(z0);config=C(T);ngZone=C(oe);host=C(_r);focusTrapFactory=C(r0);renderer=C(XI);overlayRef=C(t2);nzConfigService=C(kt);animationType=C(Gm,{optional:true});destroyRef=C(at);portalOutlet;modalElementRef;animationStateChanged=new Le;containerClick=new Le;cancelTriggered=new Le;okTriggered=new Le;modalRef;isStringContent=false;dir="ltr";elementFocusedBeforeModalWasOpened=null;focusTrap;mouseDown=false;oldMaskStyle=null;get showMask(){let e=this.nzConfigService.getConfigForComponent(ne)||{};return !!q(this.config.nzMask,e.nzMask,true)}get maskClosable(){let e=this.nzConfigService.getConfigForComponent(ne)||{};return !!q(this.config.nzMaskClosable,e.nzMaskClosable,true)}constructor(){super(),this.dir=this.overlayRef.getDirection(),this.isStringContent=typeof this.config.nzContent=="string",Vt$1(ne,()=>this.updateMaskClassname()),this.destroyRef.onDestroy(()=>{this.setMaskExitAnimationClass(true);});}onContainerClick(e){e.target===e.currentTarget&&!this.mouseDown&&this.showMask&&this.maskClosable&&this.containerClick.emit();}onCloseClick(){this.cancelTriggered.emit();}onOkClick(){this.okTriggered.emit();}markForCheck(){this.cdr.markForCheck();}attachComponentPortal(e){this.portalOutlet.hasAttached()&&Ct(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop();let t=this.portalOutlet.attachComponentPortal(e);return this._startEnterAnimation(),t}attachTemplatePortal(e){this.portalOutlet.hasAttached()&&Ct(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop();let t=this.portalOutlet.attachTemplatePortal(e);return this._startEnterAnimation(),t}attachStringContent(){this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this._startEnterAnimation();}getNativeElement(){return this.host.nativeElement}animationDisabled(){return this.config.nzNoAnimation||this.animationType==="NoopAnimations"}setModalTransformOrigin(){let e=this.modalElementRef.nativeElement;if(this.elementFocusedBeforeModalWasOpened){let t=this.elementFocusedBeforeModalWasOpened.getBoundingClientRect(),i=p9(this.elementFocusedBeforeModalWasOpened),a=i.left+t.width/2,r=i.top+t.height/2,m=`${a-e.offsetLeft}px ${r-e.offsetTop}px 0px`;this.renderer.setStyle(e,"transform-origin",m);}}savePreviouslyFocusedElement(){this.focusTrap||(this.focusTrap=this.focusTrapFactory.create(this.host.nativeElement)),this.document&&(this.elementFocusedBeforeModalWasOpened=this.document.activeElement,this.host.nativeElement.focus&&this.ngZone.runOutsideAngular(()=>x1(()=>this.host.nativeElement.focus())));}trapFocus(){let e=this.host.nativeElement;if(this.config.nzAutofocus)this.focusTrap.focusInitialElementWhenReady();else {let t=this.document.activeElement;t!==e&&!e.contains(t)&&e.focus();}}restoreFocus(){this.elementFocusedBeforeModalWasOpened?.focus(),this.focusTrap?.destroy();}setEnterInitialClass(){if(this.animationDisabled())return;let e=this.modalElementRef.nativeElement,t=this.overlayRef.backdropElement;e.classList.add(_.enter),t&&t.classList.add(I.enter);}setEnterActiveClass(){if(this.animationDisabled())return;this.setModalTransformOrigin();let e=this.modalElementRef.nativeElement,t=this.overlayRef.backdropElement;e.classList.add(_.enterActive),t&&t.classList.add(I.enterActive);}setExitAnimationClass(){let e=this.modalElementRef.nativeElement;e.classList.add(_.leave),e.classList.add(_.leaveActive),this.setMaskExitAnimationClass();}setMaskExitAnimationClass(e=false){let t=this.overlayRef.backdropElement;if(t){if(this.animationDisabled()||e){t.classList.remove(te);return}t.classList.add(I.leave),t.classList.add(I.leaveActive);}}cleanAnimationClass(){if(this.animationDisabled())return;let e=this.overlayRef.backdropElement,t=this.modalElementRef.nativeElement;e&&(e.classList.remove(I.enter),e.classList.remove(I.enterActive)),t.classList.remove(_.enter),t.classList.remove(_.enterActive),t.classList.remove(_.leave),t.classList.remove(_.leaveActive);}setZIndexForBackdrop(){let e=this.overlayRef.backdropElement;e&&W3(this.config.nzZIndex)&&this.renderer.setStyle(e,"z-index",this.config.nzZIndex);}bindBackdropStyle(){let e=this.overlayRef.backdropElement;if(e){if(this.oldMaskStyle){let t=this.oldMaskStyle;Object.keys(t).forEach(i=>{this.renderer.removeStyle(e,i);}),this.oldMaskStyle=null;}if(this.setZIndexForBackdrop(),typeof this.config.nzMaskStyle=="object"&&Object.keys(this.config.nzMaskStyle).length){let t=r({},this.config.nzMaskStyle);Object.keys(t).forEach(i=>{this.renderer.setStyle(e,i,t[i]);}),this.oldMaskStyle=t;}}}updateMaskClassname(){let e=this.overlayRef.backdropElement;e&&(this.showMask?e.classList.add(te):e.classList.remove(te));}_startEnterAnimation(){if(this.bindBackdropStyle(),this.animationStateChanged.emit("enter-start"),this.animationDisabled())this.trapFocus(),this.animationStateChanged.emit("enter-active");else {this.setEnterInitialClass(),x1(()=>this.setEnterActiveClass());let e=this.modalElementRef.nativeElement,t=()=>{e.removeEventListener("animationend",t),this.trapFocus(),this.cleanAnimationClass(),this.animationStateChanged.emit("enter-active");};e.addEventListener("animationend",t);}}_startLeaveAnimation(e){if(this.animationStateChanged.emit("leave-start"),this.animationDisabled())this.restoreFocus(),e?.(),this.animationStateChanged.emit("leave-active");else {this.setExitAnimationClass();let t=this.modalElementRef.nativeElement,i=()=>{t.removeEventListener("animationend",i),this.restoreFocus(),this.cleanAnimationClass(),e?.(),this.animationStateChanged.emit("leave-active");};t.addEventListener("animationend",i);}}setupMouseListeners(e){St$1(this.host.nativeElement,"mouseup").pipe(ue(this.destroyRef)).subscribe(()=>{this.mouseDown&&setTimeout(()=>{this.mouseDown=false;});}),St$1(e.nativeElement,"mousedown").pipe(ue(this.destroyRef)).subscribe(()=>{this.mouseDown=true;});}static \u0275fac=function(t){return new(t||n)};static \u0275dir=XE({type:n,features:[eh]})}return n})(),yt=(()=>{class n extends ht{set _portalOutlet(e){this.portalOutlet=e;}set _modalElementRef(e){this.modalElementRef=e;}cancelTriggered=new Le;okTriggered=new Le;ngOnInit(){this.setupMouseListeners(this.modalElementRef);}onCancel(){this.cancelTriggered.emit();}onOk(){this.okTriggered.emit();}static \u0275fac=(()=>{let e;return function(i){return (e||(e=Sy(n)))(i||n)}})();static \u0275cmp=QE({type:n,selectors:[["nz-modal-confirm-container"]],viewQuery:function(t,i){if(t&1&&Ih(Pa,7)(gt,7),t&2){let a;qD(a=WD())&&(i._portalOutlet=a.first),qD(a=WD())&&(i._modalElementRef=a.first);}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:8,hostBindings:function(t,i){t&1&&gh("click",function(r){return i.onContainerClick(r)}),t&2&&(cw(i.config.nzWrapClassName?"ant-modal-wrap "+i.config.nzWrapClassName:"ant-modal-wrap"),_h("z-index",i.config.nzZIndex),Mh("ant-modal-wrap-rtl",i.dir==="rtl")("ant-modal-centered",i.config.nzCentered));},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["nzModalConfirmContainer"],features:[rD([rn]),eh],decls:17,vars:16,consts:[["modalElement",""],["role","document",1,"ant-modal"],[1,"ant-modal-content"],["nz-modal-close",""],[1,"ant-modal-body"],[1,"ant-modal-confirm-body-wrapper"],[1,"ant-modal-confirm-body"],[3,"nzType"],[1,"ant-modal-confirm-title"],[4,"nzStringTemplateOutlet"],[1,"ant-modal-confirm-content"],["cdkPortalOutlet",""],[3,"innerHTML"],[1,"ant-modal-confirm-btns"],["nz-button","",3,"nzLoading","disabled"],["nz-button","",3,"nzType","nzLoading","disabled","nzDanger"],["nz-modal-close","",3,"click"],["nz-button","",3,"click","nzLoading","disabled"],["nz-button","",3,"click","nzType","nzLoading","disabled","nzDanger"]],template:function(t,i){t&1&&(_i(0,"div",1,0),Rw(2,"nzToCssUnit"),_i(3,"div",2),bD(4,Dt,1,0,"button",3),_i(5,"div",4)(6,"div",5)(7,"div",6),lh(8,"nz-icon",7),_i(9,"span",8),nh(10,xt,2,1,"ng-container",9),Kc(),_i(11,"div",10),nh(12,Et,0,0,"ng-template",11),bD(13,Nt,1,1,"div",12),Kc()(),_i(14,"div",13),bD(15,At,3,6,"button",14),bD(16,St,3,8,"button",15),Kc()()()()()),t&2&&(sw(i.config.nzStyle),cw(i.config.nzClassName),_h("width",Ow(2,14,i.config?.nzWidth)),gI(4),_D(i.config.nzClosable?4:-1),gI(),sw(i.config.nzBodyStyle),gI(3),ch("nzType",i.config.nzIconType),gI(2),ch("nzStringTemplateOutlet",i.config.nzTitle),gI(3),_D(i.isStringContent?13:-1),gI(2),_D(i.config.nzCancelText!==null?15:-1),gI(),_D(i.config.nzOkText!==null?16:-1));},dependencies:[Fe,pt,Se$1,we,Tt,Ne,Z4,Pa,vd,Cc,r7,w7,Se,Xy],encapsulation:2})}return n})(),Re=(()=>{class n{cdr=C(z0);config=C(T);modalRef=$0.required();cancelTriggered=B0();okTriggered=B0();buttons=Array.isArray(this.config.nzFooter)?this.config.nzFooter.map(Gt):null;onCancel(){this.cancelTriggered.emit();}onOk(){this.okTriggered.emit();}markForCheck(){this.cdr.markForCheck();}getButtonCallableProp(e,t){let i=e[t],a=this.modalRef().getContentComponent();return typeof i=="function"?i.apply(e,a&&[a]):i}onButtonClick(e){if(!this.getButtonCallableProp(e,"loading")){let i=this.getButtonCallableProp(e,"onClick");e.autoLoading&&Tr(i)&&(e.loading=true,i.then(()=>e.loading=false).catch(a=>{throw e.loading=false,a}));}}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=QE({type:n,selectors:[["div","nz-modal-footer",""]],hostAttrs:[1,"ant-modal-footer"],inputs:{modalRef:[1,"modalRef"]},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["nzModalFooterBuiltin"],decls:2,vars:1,consts:[[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[3,"innerHTML"],["nz-button","",3,"hidden","nzLoading","disabled","nzType","nzDanger","nzShape","nzSize","nzGhost"],["nz-button","",3,"click","hidden","nzLoading","disabled","nzType","nzDanger","nzShape","nzSize","nzGhost"],["nz-button","",3,"nzLoading","disabled"],["nz-button","",3,"nzType","nzDanger","nzLoading","disabled"],["nz-button","",3,"click","nzLoading","disabled"],["nz-button","",3,"click","nzType","nzDanger","nzLoading","disabled"]],template:function(t,i){t&1&&bD(0,Bt,1,5,"ng-container")(1,Wt,2,2),t&2&&_D(i.config.nzFooter?0:1);},dependencies:[Tt,Ne,vd,Cc,r7,w7,Xy],encapsulation:2})}return n})();function Gt(n){return r({type:null,size:"default",autoLoading:true,show:true,loading:false,disabled:false},n)}var vt=(()=>{class n{config=C(T);static \u0275fac=function(t){return new(t||n)};static \u0275cmp=QE({type:n,selectors:[["div","nz-modal-title",""]],hostAttrs:[1,"ant-modal-header"],exportAs:["nzModalTitleBuiltin"],decls:2,vars:1,consts:[[1,"ant-modal-title"],[4,"nzStringTemplateOutlet"],[3,"innerHTML"]],template:function(t,i){t&1&&(_i(0,"div",0),nh(1,jt,2,1,"ng-container",1),Kc()),t&2&&(gI(),ch("nzStringTemplateOutlet",i.config.nzTitle));},dependencies:[Tt,Ne],encapsulation:2})}return n})(),Mt=(()=>{class n extends ht{set _portalOutlet(e){this.portalOutlet=e;}set _modalElementRef(e){this.modalElementRef=e;}modalFooter;markForCheck(){super.markForCheck(),this.modalFooter?.markForCheck();}ngOnInit(){this.setupMouseListeners(this.modalElementRef);}onDragEnded(e){let t=this.modalElementRef.nativeElement,i=e.source.getFreeDragPosition(),{top:a,left:r}=getComputedStyle(t);this.renderer.setStyle(t,"top",W((parseFloat(a)||0)+i.y)),this.renderer.setStyle(t,"left",W((parseFloat(r)||0)+i.x)),e.source.reset();}static \u0275fac=(()=>{let e;return function(i){return (e||(e=Sy(n)))(i||n)}})();static \u0275cmp=QE({type:n,selectors:[["nz-modal-container"]],viewQuery:function(t,i){if(t&1&&Ih(Pa,7)(gt,7)(Re,5),t&2){let a;qD(a=WD())&&(i._portalOutlet=a.first),qD(a=WD())&&(i._modalElementRef=a.first),qD(a=WD())&&(i.modalFooter=a.first);}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:8,hostBindings:function(t,i){t&1&&gh("click",function(r){return i.onContainerClick(r)}),t&2&&(cw(i.config.nzWrapClassName?"ant-modal-wrap "+i.config.nzWrapClassName:"ant-modal-wrap"),_h("z-index",i.config.nzZIndex),Mh("ant-modal-wrap-rtl",i.dir==="rtl")("ant-modal-centered",i.config.nzCentered));},exportAs:["nzModalContainer"],features:[rD([rn]),eh],decls:10,vars:15,consts:[["modalElement",""],["cdkDrag","","cdkDragBoundary",".cdk-overlay-container","role","document",1,"ant-modal",3,"cdkDragEnded","cdkDragDisabled"],[1,"ant-modal-content"],["nz-modal-close",""],["nz-modal-title","","cdkDragHandle","",3,"cursor"],[1,"ant-modal-body"],["cdkPortalOutlet",""],[3,"innerHTML"],["nz-modal-footer","",3,"modalRef"],["nz-modal-close","",3,"click"],["nz-modal-title","","cdkDragHandle",""],["nz-modal-footer","",3,"cancelTriggered","okTriggered","modalRef"]],template:function(t,i){t&1&&(_i(0,"div",1,0),Rw(2,"nzToCssUnit"),gh("cdkDragEnded",function(r){return i.onDragEnded(r)}),_i(3,"div",2),bD(4,Ht,1,0,"button",3),bD(5,$t,1,2,"div",4),_i(6,"div",5),nh(7,Zt,0,0,"ng-template",6),bD(8,Kt,1,1,"div",7),Kc(),bD(9,Qt,1,1,"div",8),Kc()()),t&2&&(sw(i.config.nzStyle),cw(i.config.nzClassName),_h("width",Ow(2,13,i.config?.nzWidth)),ch("cdkDragDisabled",!i.config.nzDraggable),gI(4),_D(i.config.nzClosable?4:-1),gI(),_D(i.config.nzTitle?5:-1),gI(),sw(i.config.nzBodyStyle),gI(2),_D(i.isStringContent?8:-1),gI(),_D(i.config.nzFooter!==null?9:-1));},dependencies:[we,vt,Z4,Pa,Re,Fe,We,Ge,Se],encapsulation:2})}return n})(),U={OPEN:0,CLOSING:1,CLOSED:2},b={CANCEL:"cancel",OK:"ok"},ie=class{overlayRef;config;containerInstance;componentInstance=null;componentRef=null;result;state=U.OPEN;afterClose=new re;afterOpen=new re;destroy$=new re;constructor(o,e,t){this.overlayRef=o,this.config=e,this.containerInstance=t,t.animationStateChanged.pipe(on(i=>i==="enter-active"),yt$1(1)).subscribe(()=>{this.afterOpen.next(),this.afterOpen.complete(),e.nzAfterOpen instanceof Le&&e.nzAfterOpen.emit();}),t.animationStateChanged.pipe(on(i=>i==="leave-active"),yt$1(1)).subscribe(()=>this._finishDialogClose()),t.containerClick.pipe(im(this.destroy$)).subscribe(()=>{!this.config.nzCancelLoading&&!this.config.nzOkLoading&&this.trigger(b.CANCEL);}),o.keydownEvents().pipe(on(()=>this.config.nzKeyboard&&!this.config.nzCancelLoading&&!this.config.nzOkLoading),on(i=>i.keyCode===27&&!Ha(i))).subscribe(i=>{i.preventDefault(),this.trigger(b.CANCEL);}),t.cancelTriggered.pipe(im(this.destroy$)).subscribe(()=>this.trigger(b.CANCEL)),t.okTriggered.pipe(im(this.destroy$)).subscribe(()=>this.trigger(b.OK)),o.detachments().subscribe(()=>{this.afterClose.next(this.result),this.afterClose.complete(),e.nzAfterClose instanceof Le&&e.nzAfterClose.emit(this.result),this.componentInstance=null,this.componentRef=null,this.overlayRef.dispose();});}getContentComponent(){return this.componentInstance}getContentComponentRef(){return this.componentRef}getElement(){return this.containerInstance.getNativeElement()}destroy(o){this.close(o);}triggerOk(){return this.trigger(b.OK)}triggerCancel(){return this.trigger(b.CANCEL)}close(o){this.state===U.OPEN&&(this.result=o,this.state=U.CLOSING,this.containerInstance._startLeaveAnimation(()=>{this.overlayRef.detachBackdrop(),this._finishDialogClose();}));}updateConfig(o){Object.assign(this.config,o),this.containerInstance.bindBackdropStyle(),this.containerInstance.markForCheck();}getState(){return this.state}getConfig(){return this.config}getBackdropElement(){return this.overlayRef.backdropElement}trigger(o){return v(this,null,function*(){if(this.state===U.CLOSING)return;let e={[b.OK]:{trigger:this.config.nzOnOk,loadingKey:"nzOkLoading"},[b.CANCEL]:{trigger:this.config.nzOnCancel,loadingKey:"nzCancelLoading"}},{trigger:t,loadingKey:i}=e[o];if(!this.config[i]){if(t instanceof Le)t.emit(this.getContentComponent());else if(typeof t=="function"){let a=t(this.getContentComponent());if(Tr(a)){this.config[i]=true,this.updateConfig(this.config);let r=false;try{r=yield a;}finally{this.config[i]=false,this.updateConfig(this.config),this.closeWhitResult(r);}}else this.closeWhitResult(a);}}})}closeWhitResult(o){o!==false&&this.close(o);}_finishDialogClose(){this.state=U.CLOSED,this.overlayRef.dispose(),this.destroy$.next();}},Xt=(()=>{class n{injector=C(Ee);nzConfigService=C(kt);directionality=C(Ie);parentModal=C(n,{skipSelf:true,optional:true});openModalsAtThisLevel=[];afterAllClosedAtThisLevel=new re;get openModals(){return this.parentModal?this.parentModal.openModals:this.openModalsAtThisLevel}get _afterAllClosed(){let e=this.parentModal;return e?e._afterAllClosed:this.afterAllClosedAtThisLevel}afterAllClose=Vg(()=>this.openModals.length?this._afterAllClosed:this._afterAllClosed.pipe(Gl(void 0)));create(e){return this.open(e.nzContent,e)}closeAll(){this.closeModals(this.openModals);}confirm(e={},t="confirm"){return "nzFooter"in e&&jt$1(`The Confirm-Modal doesn't support "nzFooter", this property will be ignored.`),"nzWidth"in e||(e.nzWidth=416),"nzMaskClosable"in e||(e.nzMaskClosable=false),e.nzModalType="confirm",e.nzClassName=`ant-modal-confirm ant-modal-confirm-${t} ${e.nzClassName||""}`,this.create(e)}info(e={}){return this.confirmFactory(e,"info")}success(e={}){return this.confirmFactory(e,"success")}error(e={}){return this.confirmFactory(e,"error")}warning(e={}){return this.confirmFactory(e,"warning")}open(e,t){let i=qt(t||{},new T),a=this.createOverlay(i),r=this.attachModalContainer(a,i),m=this.attachModalContent(e,r,a,i);return r.modalRef=m,qu(a,t?.nzZIndex),this.openModals.push(m),m.afterClose.subscribe(()=>this.removeOpenModal(m)),m}removeOpenModal(e){let t=this.openModals.indexOf(e);t>-1&&(this.openModals.splice(t,1),this.openModals.length||this._afterAllClosed.next());}closeModals(e){let t=e.length;for(;t--;)e[t].close(),this.openModals.length||this._afterAllClosed.next();}createOverlay(e){let t=this.nzConfigService.getConfigForComponent(ne)||{};return vn(this.injector,{hasBackdrop:true,scrollStrategy:Ba(this.injector),backdropClass:q(e.nzMask,t.nzMask,true)?te:"",positionStrategy:$a(this.injector),disposeOnNavigation:q(e.nzCloseOnNavigation,t.nzCloseOnNavigation,true),direction:q(e.nzDirection,t.nzDirection,this.directionality.valueSignal())})}attachModalContainer(e,t){let i=t&&t.nzViewContainerRef&&t.nzViewContainerRef.injector,a=Ee.create({parent:i||this.injector,providers:[{provide:t2,useValue:e},{provide:T,useValue:t}]}),r=t.nzModalType==="confirm"?yt:Mt,m=new G1(r,t.nzViewContainerRef,a);return e.attach(m).instance}attachModalContent(e,t,i,a){let r=new ie(i,a,t);if(L1(e))t.attachTemplatePortal(new $1(e,null,{$implicit:a.nzData,modalRef:r}));else if(W3(e)&&typeof e!="string"){let m=this.createInjector(r,a),k=t.attachComponentPortal(new G1(e,a.nzViewContainerRef,m));r.componentRef=k,r.componentInstance=k.instance;}else t.attachStringContent();return r}createInjector(e,t){let i=t&&t.nzViewContainerRef&&t.nzViewContainerRef.injector;return Ee.create({parent:i||this.injector,providers:[{provide:ie,useValue:e},{provide:Ut,useValue:t.nzData}]})}confirmFactory(e={},t){let i={info:"info-circle",success:"check-circle",error:"close-circle",warning:"exclamation-circle"};return "nzIconType"in e||(e.nzIconType=i[t]),"nzCancelText"in e||(e.nzCancelText=null),this.confirm(e,t)}ngOnDestroy(){this.closeModals(this.openModalsAtThisLevel),this.afterAllClosedAtThisLevel.complete();}static \u0275fac=function(t){return new(t||n)};static \u0275prov=ie$1({token:n,factory:n.\u0275fac})}return n})();var Zn=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=YE({type:n});static \u0275inj=uu({providers:[Xt],imports:[we,Re,vt,Mt,yt]})}return n})();export{Ut as U,Xt as X,Zn as Z,ie as i};
|
package/static/chunk-PTPh9FQ2.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {$}from'./chunk-CjitpVjI.js';import {s,r,bQ as Sy,i as ie,C,b0 as Ee,bH as vn,bI as $a,ds as Ec,bL as G1,bt as Vt,bw as m9,Q as QE,bU as eh,h as _i,N as ND,S as SD,k as Kc,ah as _h,a5 as Mh,x as gI,D as xD,bC as re,ax as z0,au as kt,bx as XE,bP as Le,a$ as q0,av as _r,aE as pt,aF as Se,aG as Tt,aH as Ne,l as gh,p as bD,aR as nh,bu as sw,bi as cw,B as _D,z as ch,cc as Aw,bj as Dh,bk as GD,J as LD,b as at,w as lh,aS as el,aT as tl,F as VD,U as Pu,W as Lu,cd as vv}from'./main-OG6DVLH6.js';var ce=["animationElement"],me=(n,o)=>({$implicit:n,data:o});function le(n,o){n&1&&lh(0,"nz-icon",4);}function pe(n,o){n&1&&lh(0,"nz-icon",5);}function de(n,o){n&1&&lh(0,"nz-icon",6);}function he(n,o){n&1&&lh(0,"nz-icon",7);}function fe(n,o){n&1&&lh(0,"nz-icon",8);}function ue(n,o){if(n&1&&(el(0),lh(1,"span",10),tl()),n&2){let e=VD();gI(),ch("innerHTML",e.instance.content,vv);}}function ge(n,o){if(n&1){let e=LD();_i(0,"nz-message",2),gh("destroyed",function(i){Pu(e);let s=VD();return Lu(s.remove(i.id,i.userAction))}),Kc();}if(n&2){let e=o.$implicit;ch("instance",e);}}var ve=0,M=class{container;nzSingletonService=C($);injector=C(Ee);remove(o){this.container&&(o?this.container.remove(o):this.container.removeAll());}getInstanceId(){return `${this.componentPrefix}-${ve++}`}withContainer(o){let e=this.nzSingletonService.getSingletonWithKey(this.componentPrefix);if(e)return e;let t=vn(this.injector,{hasBackdrop:false,scrollStrategy:Ec(),positionStrategy:$a(this.injector)}),i=new G1(o,null,this.injector),s=t.attach(i),re=t.hostElement;return re.style.zIndex="1010",e||(this.container=e=s.instance,this.nzSingletonService.registerSingletonWithKey(this.componentPrefix,e),this.container.afterAllInstancesRemoved.subscribe(()=>{this.container=void 0,this.nzSingletonService.unregisterSingletonWithKey(this.componentPrefix),t.dispose();})),e}},Ce=(()=>{class n{config;instances=[];_afterAllInstancesRemoved=new re;afterAllInstancesRemoved=this._afterAllInstancesRemoved.asObservable();cdr=C(z0);nzConfigService=C(kt);constructor(){this.subscribeConfigChange();}create(e){let t=this.onCreate(e);return this.instances.length>=this.config.nzMaxStack&&(this.instances=this.instances.slice(1)),this.instances=[...this.instances,t],this.readyInstances(),t}remove(e,t=false){this.instances.map((i,s)=>({index:s,instance:i})).filter(({instance:i})=>i.messageId===e).forEach(({index:i,instance:s})=>{this.instances.splice(i,1),this.instances=[...this.instances],this.onRemove(s,t),this.readyInstances();}),this.instances.length||this.onAllInstancesRemoved();}removeAll(){this.instances.forEach(e=>this.onRemove(e,false)),this.instances=[],this.readyInstances(),this.onAllInstancesRemoved();}onCreate(e){return e.options=this.mergeOptions(e.options),e.onClose=new re,e}onRemove(e,t){e.onClose.next(t),e.onClose.complete();}onAllInstancesRemoved(){this._afterAllInstancesRemoved.next(),this._afterAllInstancesRemoved.complete();}readyInstances(){this.cdr.detectChanges();}mergeOptions(e){let{nzDuration:t,nzAnimate:i,nzPauseOnHover:s}=this.config;return r({nzDuration:t,nzAnimate:i,nzPauseOnHover:s},e)}static \u0275fac=function(t){return new(t||n)};static \u0275dir=XE({type:n})}return n})(),ye=(()=>{class n{destroyRef=C(at);elementRef=C(_r);options;autoClose;userAction=false;eraseTimer;eraseTimingStart;eraseTTL;constructor(){this.destroyRef.onDestroy(()=>{this.autoClose&&this.clearEraseTimeout();});}ngOnInit(){this.options=this.instance.options,this.options.nzAnimate&&this._startEnterAnimation(),this.autoClose=this.options.nzDuration>0,this.autoClose&&(this.initErase(),this.startEraseTimeout());}onEnter(){this.autoClose&&this.options.nzPauseOnHover&&(this.clearEraseTimeout(),this.updateTTL());}onLeave(){this.autoClose&&this.options.nzPauseOnHover&&this.startEraseTimeout();}destroy(e=false){this.userAction=e,this.options.nzAnimate?this._startLeaveAnimation(()=>this.destroyed.next({id:this.instance.messageId,userAction:e})):this.destroyed.next({id:this.instance.messageId,userAction:e});}initErase(){this.eraseTTL=this.options.nzDuration,this.eraseTimingStart=Date.now();}updateTTL(){this.autoClose&&(this.eraseTTL-=Date.now()-this.eraseTimingStart);}startEraseTimeout(){this.eraseTTL>0?(this.clearEraseTimeout(),this.eraseTimer=setTimeout(()=>this.destroy(),this.eraseTTL),this.eraseTimingStart=Date.now()):this.destroy();}clearEraseTimeout(){this.eraseTimer!==null&&(clearTimeout(this.eraseTimer),this.eraseTimer=void 0);}_startEnterAnimation(){let e=this.animationElement().nativeElement;e.classList.add(this._animationClassMap.enter);let t=i=>{this.matchAnimationKeyframe(i,this._animationKeyframeMap.enter)&&(e.removeEventListener("animationend",t),e.classList.remove(this._animationClassMap.enter));};e.addEventListener("animationend",t);}_startLeaveAnimation(e){let t=this.animationElement().nativeElement;t.classList.remove(this._animationClassMap.enter),t.classList.add(this._animationClassMap.leave);let i=s=>{this.matchAnimationKeyframe(s,this._animationKeyframeMap.leave)&&(t.removeEventListener("animationend",i),e());};t.addEventListener("animationend",i);}matchAnimationKeyframe(e,t){return typeof t=="string"?e.animationName===t:t.includes(e.animationName)}static \u0275fac=function(t){return new(t||n)};static \u0275dir=XE({type:n})}return n})(),ze=(()=>{class n extends ye{instance;destroyed=new Le;index;animationElement=q0.required("animationElement",{read:_r});_animationKeyframeMap={enter:"MessageMoveIn",leave:"MessageMoveOut"};_animationClassMap={enter:"ant-message-move-up-enter",leave:"ant-message-move-up-leave"};static \u0275fac=(()=>{let e;return function(i){return (e||(e=Sy(n)))(i||n)}})();static \u0275cmp=QE({type:n,selectors:[["nz-message"]],viewQuery:function(t,i){t&1&&Dh(i.animationElement,ce,5,_r),t&2&&GD();},inputs:{instance:"instance"},outputs:{destroyed:"destroyed"},exportAs:["nzMessage"],features:[eh],decls:10,vars:12,consts:[["animationElement",""],[1,"ant-message-notice",3,"mouseenter","mouseleave"],[1,"ant-message-notice-content"],[1,"ant-message-custom-content"],["nzType","check-circle"],["nzType","info-circle"],["nzType","exclamation-circle"],["nzType","close-circle"],["nzType","loading"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[3,"innerHTML"]],template:function(t,i){if(t&1&&(_i(0,"div",1,0),gh("mouseenter",function(){return i.onEnter()})("mouseleave",function(){return i.onLeave()}),_i(2,"div",2)(3,"div",3),bD(4,le,1,0,"nz-icon",4)(5,pe,1,0,"nz-icon",5)(6,de,1,0,"nz-icon",6)(7,he,1,0,"nz-icon",7)(8,fe,1,0,"nz-icon",8),nh(9,ue,2,1,"ng-container",9),Kc()()()),t&2){let s;sw(i.instance.options?.nzStyle),cw(i.instance.options?.nzClass),gI(3),cw("ant-message-"+i.instance.type),gI(),_D((s=i.instance.type)==="success"?4:s==="info"?5:s==="warning"?6:s==="error"?7:s==="loading"?8:-1),gI(5),ch("nzStringTemplateOutlet",i.instance.content)("nzStringTemplateOutletContext",Aw(9,me,i,i.instance.options?.nzData));}},dependencies:[pt,Se,Tt,Ne],encapsulation:2})}return n})(),f="message",_e={nzAnimate:true,nzDuration:3e3,nzMaxStack:7,nzPauseOnHover:true,nzTop:24,nzDirection:"ltr"},Te=(()=>{class n extends Ce{dir=this.nzConfigService.getConfigForComponent(f)?.nzDirection||"ltr";top;constructor(){super(),this.updateConfig();}subscribeConfigChange(){Vt(f,()=>{this.updateConfig(),this.dir=this.nzConfigService.getConfigForComponent(f)?.nzDirection||this.dir;});}updateConfig(){this.config=r(r(r({},_e),this.config),this.nzConfigService.getConfigForComponent(f)),this.top=m9(this.config.nzTop),this.cdr.markForCheck();}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=QE({type:n,selectors:[["nz-message-container"]],exportAs:["nzMessageContainer"],features:[eh],decls:3,vars:4,consts:[[1,"ant-message"],[3,"instance"],[3,"destroyed","instance"]],template:function(t,i){t&1&&(_i(0,"div",0),ND(1,ge,1,1,"nz-message",1,SD),Kc()),t&2&&(_h("top",i.top),Mh("ant-message-rtl",i.dir==="rtl"),gI(),xD(i.instances));},dependencies:[ze],encapsulation:2})}return n})(),He=(()=>{class n extends M{componentPrefix="message-";success(e,t){return this.createInstance({type:"success",content:e},t)}error(e,t){return this.createInstance({type:"error",content:e},t)}info(e,t){return this.createInstance({type:"info",content:e},t)}warning(e,t){return this.createInstance({type:"warning",content:e},t)}loading(e,t){return this.createInstance({type:"loading",content:e},t)}create(e,t,i){return this.createInstance({type:e,content:t},i)}createInstance(e,t){return this.container=this.withContainer(Te),this.container.create(s(r({},e),{createdAt:new Date,messageId:this.getInstanceId(),options:t}))}static \u0275fac=(()=>{let e;return function(i){return (e||(e=Sy(n)))(i||n)}})();static \u0275prov=ie({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();export{He as H};
|
package/static/chunk-PfPOHfb1.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {Q as QE,ac as Lr,L as Ln,ad as Mu,K as Kt,h as _i,N as ND,k as Kc,w as lh,x as gI,D as xD,j as vw,R as Rw,z as ch,I as xw,a6 as Nw,G as ah,y as nl,O as Ow}from'./main-OG6DVLH6.js';var k=e=>["/manage",e],w=()=>({exact:true}),O=(e,o)=>o.path;function P(e,o){if(e&1&&(_i(0,"a",2),vw(1),Rw(2,"transloco"),Kc()),e&2){let t=o.$implicit;ch("routerLink",xw(6,k,t.path))("routerLinkActiveOptions",Nw(8,w)),ah("data-testid","manage-tab-"+t.path),gI(),nl(" ",Ow(2,4,t.labelKey)," ");}}var K=[{path:"workflows",labelKey:"manage.tab.workflows"},{path:"views",labelKey:"manage.tab.views"},{path:"providers",labelKey:"manage.tab.providers"},{path:"context-files",labelKey:"manage.tab.contextFiles"},{path:"local-repositories",labelKey:"manage.tab.localRepositories"},{path:"worktrees",labelKey:"manage.tab.worktrees"},{path:"preferences",labelKey:"manage.tab.preferences"}],F=(()=>{class e{constructor(){this.tabs=K;}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=QE({type:e,selectors:[["app-manage-shell"]],decls:5,vars:0,consts:[["data-testid","manage-shell",1,"manage-shell"],["data-testid","manage-tabs","role","tablist",1,"manage-tabs"],["role","tab","routerLinkActive","active",3,"routerLink","routerLinkActiveOptions"]],template:function(a,M){a&1&&(_i(0,"section",0)(1,"nav",1),ND(2,P,3,9,"a",2,O),Kc(),lh(4,"router-outlet"),Kc()),a&2&&(gI(2),xD(M.tabs));},dependencies:[Lr,Ln,Mu,Kt],styles:[".manage-shell[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-height:100%}.manage-tabs[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.25rem;padding:.5rem 1.5rem 0;border-bottom:1px solid #d6d3d1;background:#ffffffb3}.manage-tabs[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:.65rem .9rem;color:#57534e;text-decoration:none;border-bottom:2px solid transparent;margin-bottom:-1px}.manage-tabs[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#1c1917}.manage-tabs[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]{color:#1c1917;font-weight:600;border-bottom-color:#1c1917}"]});}}return e})();export{K as MANAGE_TABS,F as ManageShellComponent};
|
package/static/chunk-WIfL3i6D.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {f}from'./chunk-ZTjXJrt4.js';import {C,b as at,a2 as $0,a3 as B0,q as qo,u as ue,s,r,Q as QE,M as Mi,K as Kt,aU as Jc,N as ND,aV as Xc,x as gI,D as xD,j as vw,p as bD,y as nl,B as _D,J as LD,bn as mh,F as VD,dc as ph,G as ah,S as SD,a6 as Nw,R as Rw,P as Ph,O as Ow,U as Pu,W as Lu}from'./main-OG6DVLH6.js';var q=()=>[],A=(t,o)=>o.name,B=(t,o)=>o.id;function j(t,o){t&1&&(Jc(0,"span",1),vw(1,"*"),Xc());}function z(t,o){if(t&1){let e=LD();Jc(0,"input",6),mh("change",function(r){Pu(e);let a=VD().$implicit,c=VD();return Lu(c.setValue(a,r))}),Xc();}if(t&2){let e=VD().$implicit,n=VD();ph("checked",n.checked(e)),ah("data-testid","input-"+e.name);}}function U(t,o){if(t&1){let e=LD();Jc(0,"input",7),mh("input",function(r){Pu(e);let a=VD().$implicit,c=VD();return Lu(c.setValue(a,r))}),Xc();}if(t&2){let e=VD().$implicit,n=VD();ph("value",n.displayValue(e)),ah("data-testid","input-"+e.name);}}function G(t,o){if(t&1&&(Jc(0,"option",4),vw(1),Xc()),t&2){let e=o.$implicit;ph("value",e),gI(),Ph(e);}}function H(t,o){if(t&1){let e=LD();Jc(0,"select",8),mh("change",function(r){Pu(e);let a=VD().$implicit,c=VD();return Lu(c.setValue(a,r))}),ND(1,G,2,2,"option",4,SD),Xc();}if(t&2){let e=VD().$implicit,n=VD();ph("value",n.displayValue(e)),ah("data-testid","input-"+e.name),gI(),xD(e.options??Nw(2,q));}}function J(t,o){if(t&1&&(Jc(0,"option",4),vw(1),Xc()),t&2){let e=o.$implicit;ph("value",e.id),gI(),Ph(e.name);}}function K(t,o){if(t&1){let e=LD();Jc(0,"select",8),mh("change",function(r){Pu(e);let a=VD().$implicit,c=VD();return Lu(c.setValue(a,r))}),Jc(1,"option",9),vw(2),Rw(3,"transloco"),Xc(),ND(4,J,2,2,"option",4,B),Xc();}if(t&2){let e=VD().$implicit,n=VD();ph("value",n.displayValue(e)),ah("data-testid","input-"+e.name),gI(2),Ph(Ow(3,3,"workflow-input.localRepositoryPlaceholder")),gI(2),xD(n.localRepositories());}}function Q(t,o){if(t&1){let e=LD();Jc(0,"input",10),mh("input",function(r){Pu(e);let a=VD().$implicit,c=VD();return Lu(c.setValue(a,r))}),Xc();}if(t&2){let e=VD().$implicit,n=VD();ph("value",n.displayValue(e)),ah("data-testid","input-"+e.name);}}function X(t,o){if(t&1&&(Jc(0,"label"),vw(1),bD(2,j,2,0,"span",1),bD(3,z,1,2,"input",2)(4,U,1,2,"input",3)(5,H,3,3,"select",4)(6,K,6,5,"select",4)(7,Q,1,2,"input",5),Xc()),t&2){let e,n=o.$implicit;gI(),nl(" ",n.label," "),gI(),_D(n.required?2:-1),gI(),_D((e=n.type)==="boolean"?3:e==="number"?4:e==="select"?5:e==="localRepository"?6:7);}}function Y(t){if(t.defaultValue!==void 0)return t.defaultValue;switch(t.type){case "boolean":return false;case "number":return "";case "select":return t.options?.[0]??"";default:return ""}}function ae(t){let o={};for(let e of t)o[e.name]=Y(e);return o}var le=(()=>{class t{constructor(){this.reposApi=C(f),this.destroyRef=C(at),this.fields=$0([]),this.values=$0({}),this.valuesChange=B0(),this.localRepositories=qo([]),this.reposApi.list().pipe(ue(this.destroyRef)).subscribe({next:e=>this.localRepositories.set(e),error:()=>this.localRepositories.set([])});}displayValue(e){let n=this.values()[e.name];return n==null?"":String(n)}checked(e){return !!this.values()[e.name]}setValue(e,n){let r$1=n.target,a=r$1.value;e.type==="boolean"?a=r$1.checked:e.type==="number"&&(a=r$1.value===""?"":Number(r$1.value)),this.valuesChange.emit(s(r({},this.values()),{[e.name]:a}));}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=QE({type:t,selectors:[["app-workflow-input-form"]],inputs:{fields:[1,"fields"],values:[1,"values"]},outputs:{valuesChange:"valuesChange"},decls:3,vars:0,consts:[["data-testid","workflow-input-form",1,"input-form"],[1,"required"],["type","checkbox",3,"checked"],["type","number",3,"value"],[3,"value"],["type","text",3,"value"],["type","checkbox",3,"change","checked"],["type","number",3,"input","value"],[3,"change","value"],["value",""],["type","text",3,"input","value"]],template:function(n,r){n&1&&(Jc(0,"div",0),ND(1,X,8,3,"label",null,A),Xc()),n&2&&(gI(),xD(r.fields()));},dependencies:[Mi,Kt],styles:["label[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.35rem;margin:.75rem 0;font-size:.95rem}input[type=text][_ngcontent-%COMP%], input[type=number][_ngcontent-%COMP%], select[_ngcontent-%COMP%]{font:inherit;padding:.4rem .5rem;border:1px solid #a8a29e;background:#fff}input[type=checkbox][_ngcontent-%COMP%]{width:1.1rem;height:1.1rem}.required[_ngcontent-%COMP%]{color:#9f1239}"]});}}return t})();export{ae as a,le as l};
|
package/static/chunk-ZTjXJrt4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {C,af as Zi,a8 as m,ag as E,i as ie}from'./main-OG6DVLH6.js';var f=(()=>{class r{constructor(){this.http=C(Zi),this.baseUrl=`${m.apiBaseUrl}/local-repositories`;}list(){return this.http.get(this.baseUrl).pipe(E())}get(t){return this.http.get(`${this.baseUrl}/${encodeURIComponent(t)}`).pipe(E())}create(t){return this.http.post(this.baseUrl,t).pipe(E())}update(t,i){return this.http.patch(`${this.baseUrl}/${encodeURIComponent(t)}`,i).pipe(E())}delete(t){return this.http.delete(`${this.baseUrl}/${encodeURIComponent(t)}`).pipe(E())}static{this.\u0275fac=function(i){return new(i||r)};}static{this.\u0275prov=ie({token:r,factory:r.\u0275fac,providedIn:"root"});}}return r})();export{f};
|
package/static/chunk-bbBn-iZU.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {ar as YE,as as uu,at as pT,C,ax as z0,c6 as Gm,aA as Ie,az as hT,bP as Le,bt as Vt,Q as QE,aE as pt,aF as Se,aG as Tt,aH as Ne,cj as n4,aI as ly,aJ as Z0,p as bD,B as _D,aQ as ut,J as LD,h as _i,ck as ec,k as Kc,F as VD,a5 as Mh,z as ch,x as gI,aR as nh,l as gh,w as lh,aS as el,j as vw,aT as tl,P as Ph,U as Pu,W as Lu,cl as fh}from'./main-OG6DVLH6.js';function X(n,i){n&1&&fh(0);}function $(n,i){if(n&1&&nh(0,X,1,0,"ng-container",7),n&2){let e=VD(3);ch("nzStringTemplateOutlet",e.nzIcon);}}function nn(n,i){if(n&1&&lh(0,"nz-icon",6),n&2){let e=VD(3);ch("nzType",e.nzIconType||e.inferredIconType)("nzTheme",e.iconTheme);}}function en(n,i){if(n&1&&(_i(0,"div",2),bD(1,$,1,1,"ng-container")(2,nn,1,2,"nz-icon",6),Kc()),n&2){let e=VD(2);gI(),_D(e.nzIcon?1:2);}}function tn(n,i){if(n&1&&(el(0),vw(1),tl()),n&2){let e=VD(4);gI(),Ph(e.nzMessage);}}function on(n,i){if(n&1&&(_i(0,"span",8),nh(1,tn,2,1,"ng-container",7),Kc()),n&2){let e=VD(3);gI(),ch("nzStringTemplateOutlet",e.nzMessage);}}function an(n,i){if(n&1&&(el(0),vw(1),tl()),n&2){let e=VD(4);gI(),Ph(e.nzDescription);}}function rn(n,i){if(n&1&&(_i(0,"span",9),nh(1,an,2,1,"ng-container",7),Kc()),n&2){let e=VD(3);gI(),ch("nzStringTemplateOutlet",e.nzDescription);}}function ln(n,i){if(n&1&&(_i(0,"div",3),bD(1,on,2,1,"span",8),bD(2,rn,2,1,"span",9),Kc()),n&2){let e=VD(2);gI(),_D(e.nzMessage?1:-1),gI(),_D(e.nzDescription?2:-1);}}function cn(n,i){if(n&1&&(el(0),vw(1),tl()),n&2){let e=VD(3);gI(),Ph(e.nzAction);}}function sn(n,i){if(n&1&&(_i(0,"div",4),nh(1,cn,2,1,"ng-container",7),Kc()),n&2){let e=VD(2);gI(),ch("nzStringTemplateOutlet",e.nzAction);}}function dn(n,i){if(n&1&&(el(0),_i(1,"span",12),vw(2),Kc(),tl()),n&2){let e=VD(4);gI(2),Ph(e.nzCloseText);}}function mn(n,i){if(n&1&&nh(0,dn,3,1,"ng-container",7),n&2){let e=VD(3);ch("nzStringTemplateOutlet",e.nzCloseText);}}function pn(n,i){n&1&&lh(0,"nz-icon",11);}function _n(n,i){if(n&1){let e=LD();_i(0,"button",10),gh("click",function(){Pu(e);let z=VD(2);return Lu(z.closeAlert())}),bD(1,mn,1,1,"ng-container")(2,pn,1,0,"nz-icon",11),Kc();}if(n&2){let e=VD(2);gI(),_D(e.nzCloseText?1:2);}}function zn(n,i){if(n&1){let e=LD();_i(0,"div",1),ec(function(z){Pu(e);let T=VD();return Lu(T.onLeaveAnimationDone(z))}),bD(1,en,3,1,"div",2),bD(2,ln,3,2,"div",3),bD(3,sn,2,1,"div",4),bD(4,_n,3,1,"button",5),Kc();}if(n&2){let e=VD();Mh("ant-alert-rtl",e.dir()==="rtl")("ant-alert-success",e.nzType==="success")("ant-alert-info",e.nzType==="info")("ant-alert-warning",e.nzType==="warning")("ant-alert-error",e.nzType==="error")("ant-alert-no-icon",!e.nzShowIcon)("ant-alert-banner",e.nzBanner)("ant-alert-closable",e.nzCloseable)("ant-alert-with-description",!!e.nzDescription),ch("nzNoAnimation",e.nzNoAnimation),gI(),_D(e.nzShowIcon?1:-1),gI(),_D(e.nzMessage||e.nzDescription?2:-1),gI(),_D(e.nzAction?3:-1),gI(),_D(e.nzCloseable||e.nzCloseText?4:-1);}}var Z="alert",un=(()=>{let n,i=[],e=[],_,z=[],T=[];return class D{static{let r=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;n=[ut()],_=[ut()],pT(null,null,n,{kind:"field",name:"nzCloseable",static:false,private:false,access:{has:t=>"nzCloseable"in t,get:t=>t.nzCloseable,set:(t,l)=>{t.nzCloseable=l;}},metadata:r},i,e),pT(null,null,_,{kind:"field",name:"nzShowIcon",static:false,private:false,access:{has:t=>"nzShowIcon"in t,get:t=>t.nzShowIcon,set:(t,l)=>{t.nzShowIcon=l;}},metadata:r},z,T),r&&Object.defineProperty(this,Symbol.metadata,{enumerable:true,configurable:true,writable:true,value:r});}cdr=C(z0);animationType=C(Gm,{optional:true});dir=C(Ie).valueSignal;_nzModuleName=Z;nzAction=null;nzCloseText=null;nzIconType=null;nzMessage=null;nzDescription=null;nzType="info";nzCloseable=hT(this,i,false);nzShowIcon=(hT(this,e),hT(this,z,false));nzBanner=(hT(this,T),false);nzNoAnimation=false;nzIcon=null;nzOnClose=new Le;closed=false;iconTheme="fill";inferredIconType="info-circle";isTypeSet=false;isShowIconSet=false;constructor(){Vt(Z,()=>this.cdr.markForCheck());}closeAlert(){this.closed=true,(this.nzNoAnimation||this.animationType==="NoopAnimations")&&this.nzOnClose.emit(true);}onLeaveAnimationDone(r){let t=r.target;if(this.nzNoAnimation||this.animationType==="NoopAnimations"){r.animationComplete();return}t.classList.add("ant-alert-motion-leave","ant-alert-motion-leave-active");let l=()=>{t.removeEventListener("transitionend",l),this.nzOnClose.emit(true),r.animationComplete();};t.addEventListener("transitionend",l);}ngOnChanges(r){let{nzShowIcon:t,nzDescription:l,nzType:J,nzBanner:K}=r;if(t&&(this.isShowIconSet=true),J)switch(this.isTypeSet=true,this.nzType){case "error":this.inferredIconType="close-circle";break;case "success":this.inferredIconType="check-circle";break;case "info":this.inferredIconType="info-circle";break;case "warning":this.inferredIconType="exclamation-circle";break}l&&(this.iconTheme=this.nzDescription?"outline":"fill"),K&&(this.isTypeSet||(this.nzType="warning"),this.isShowIconSet||(this.nzShowIcon=true));}static \u0275fac=function(t){return new(t||D)};static \u0275cmp=QE({type:D,selectors:[["nz-alert"]],inputs:{nzAction:"nzAction",nzCloseText:"nzCloseText",nzIconType:"nzIconType",nzMessage:"nzMessage",nzDescription:"nzDescription",nzType:"nzType",nzCloseable:[2,"nzCloseable","nzCloseable",Z0],nzShowIcon:[2,"nzShowIcon","nzShowIcon",Z0],nzBanner:[2,"nzBanner","nzBanner",Z0],nzNoAnimation:[2,"nzNoAnimation","nzNoAnimation",Z0],nzIcon:"nzIcon"},outputs:{nzOnClose:"nzOnClose"},exportAs:["nzAlert"],features:[ly],decls:1,vars:1,consts:[[1,"ant-alert",3,"nzNoAnimation","ant-alert-rtl","ant-alert-success","ant-alert-info","ant-alert-warning","ant-alert-error","ant-alert-no-icon","ant-alert-banner","ant-alert-closable","ant-alert-with-description"],[1,"ant-alert",3,"nzNoAnimation"],[1,"ant-alert-icon"],[1,"ant-alert-content"],[1,"ant-alert-action"],["type","button","tabindex","0",1,"ant-alert-close-icon"],[3,"nzType","nzTheme"],[4,"nzStringTemplateOutlet"],[1,"ant-alert-message"],[1,"ant-alert-description"],["type","button","tabindex","0",1,"ant-alert-close-icon",3,"click"],["nzType","close"],[1,"ant-alert-close-text"]],template:function(t,l){t&1&&bD(0,zn,5,23,"div",0),t&2&&_D(l.closed?-1:0);},dependencies:[pt,Se,Tt,Ne,n4],encapsulation:2})}})(),Gn=(()=>{class n{static \u0275fac=function(_){return new(_||n)};static \u0275mod=YE({type:n});static \u0275inj=uu({imports:[un]})}return n})();export{Gn as G,un as u};
|
package/static/chunk-gl_-d0La.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {o as ot}from'./chunk-BT1tqKUa.js';import'./chunk-Oq0qp-a6.js';import {a as ai,z}from'./chunk-B5OZfu7U.js';import {_ as _n,C as Cn}from'./chunk-D1s098WO.js';import {Q as QE,w as lh,C,V as Ve,b as at,q as qo,r,u as ue$1,n as n$1,M as Mi,o as o8,ao as k4,e as e8,T as T3,v as vd,c as Cc,f as r7,a1 as w7,K as Kt,h as _i,j as vw,R as Rw,k as Kc,l as gh,p as bD,x as gI,P as Ph,O as Ow,y as nl,B as _D,F as VD,J as LD,m as oE,z as ch,A as sE,N as ND,D as xD,G as ah,U as Pu,W as Lu}from'./main-OG6DVLH6.js';import {f}from'./chunk-ZTjXJrt4.js';import {p as pc,a as as,d as dc,K as Kl,c as cc,J as Ji,l as ls}from'./chunk-CVunAaEq.js';import'./chunk-CjitpVjI.js';var ce=(t,_)=>_.id;function de(t,_){t&1&&(_i(0,"p",3),vw(1),Rw(2,"transloco"),Kc()),t&2&&(gI(),Ph(Ow(2,1,"common.loading")));}function me(t,_){if(t&1&&(_i(0,"p",4),vw(1),Kc()),t&2){let e=VD();gI(),Ph(e.loadError());}}function fe(t,_){if(t&1&&(_i(0,"p",5),vw(1),Kc()),t&2){let e=VD(2);gI(),Ph(e.deleteError());}}function _e(t,_){if(t&1&&(_i(0,"p",9),vw(1),Kc()),t&2){let e=VD(3);gI(),Ph(e.saveError());}}function he(t,_){if(t&1){let e=LD();_i(0,"section",6),bD(1,_e,2,1,"p",9),_i(2,"label",10)(3,"span"),vw(4),Rw(5,"transloco"),Kc(),_i(6,"input",11),gh("ngModelChange",function(l){Pu(e);let d=VD(2);return Lu(d.formName.set(l))}),Kc(),oE(),Kc(),_i(7,"div",10)(8,"span"),vw(9),Rw(10,"transloco"),Kc(),_i(11,"app-path-picker",12),gh("pathChange",function(l){Pu(e);let d=VD(2);return Lu(d.formLocalPath.set(l))}),Kc()(),_i(12,"div",10)(13,"span"),vw(14),Rw(15,"transloco"),Kc(),_i(16,"p",13),vw(17),Rw(18,"transloco"),Kc(),_i(19,"app-path-picker",12),gh("pathChange",function(l){Pu(e);let d=VD(2);return Lu(d.formWorktreeBasePath.set(l))}),Kc()(),_i(20,"div",14)(21,"button",15),gh("click",function(){Pu(e);let l=VD(2);return Lu(l.submitForm())}),vw(22),Rw(23,"transloco"),Kc(),_i(24,"button",16),gh("click",function(){Pu(e);let l=VD(2);return Lu(l.cancelForm())}),vw(25),Rw(26,"transloco"),Kc()()();}if(t&2){let e=VD(2);gI(),_D(e.saveError()?1:-1),gI(3),Ph(Ow(5,11,"local-repos.form.name")),gI(2),ch("ngModel",e.formName()),sE(),gI(3),Ph(Ow(10,13,"local-repos.form.localPath")),gI(2),ch("path",e.formLocalPath()),gI(3),Ph(Ow(15,15,"local-repos.form.worktreeBasePath")),gI(3),Ph(Ow(18,17,"local-repos.form.worktreeBaseHint")),gI(2),ch("path",e.formWorktreeBasePath()),gI(2),ch("disabled",e.saving()),gI(),nl(" ",Ow(23,19,"common.save")," "),gI(3),nl(" ",Ow(26,21,"common.cancel")," ");}}function ue(t,_){t&1&&(_i(0,"p",7),vw(1),Rw(2,"transloco"),Kc()),t&2&&(gI(),Ph(Ow(2,1,"local-repos.emptyState")));}function Ce(t,_){if(t&1){let e=LD();_i(0,"tr")(1,"td"),vw(2),Kc(),_i(3,"td",17),vw(4),Kc(),_i(5,"td",17),vw(6),Kc(),_i(7,"td",18)(8,"button",19),gh("click",function(){let l=Pu(e).$implicit,d=VD(3);return Lu(d.openEditForm(l))}),vw(9),Rw(10,"transloco"),Kc(),_i(11,"button",20),Rw(12,"transloco"),gh("nzOnConfirm",function(){let l=Pu(e).$implicit,d=VD(3);return Lu(d.deleteRepo(l))}),vw(13),Rw(14,"transloco"),Kc()()();}if(t&2){let e=_.$implicit;ah("data-testid","local-repo-row-"+e.id),gI(2),Ph(e.name),gI(2),Ph(e.localPath),gI(2),Ph(e.worktreeBasePath||"\u2014"),gI(2),ah("data-testid","edit-local-repo-"+e.id),gI(),nl(" ",Ow(10,9,"local-repos.edit")," "),gI(2),ch("nzPopconfirmTitle",Ow(12,11,"local-repos.deleteConfirm")),ah("data-testid","delete-local-repo-"+e.id),gI(2),nl(" ",Ow(14,13,"local-repos.delete")," ");}}function ge(t,_){if(t&1&&(_i(0,"nz-table",8)(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,Ce,15,15,"tr",null,ce),Kc()()),t&2){let e=VD(2);ch("nzData",e.repos())("nzShowPagination",false),gI(4),Ph(Ow(5,6,"local-repos.column.name")),gI(3),Ph(Ow(8,8,"local-repos.column.localPath")),gI(3),Ph(Ow(11,10,"local-repos.column.worktreeBasePath")),gI(3),Ph(Ow(14,12,"local-repos.column.actions")),gI(3),xD(e.repos());}}function xe(t,_){if(t&1&&(bD(0,fe,2,1,"p",5),bD(1,he,27,23,"section",6),bD(2,ue,3,3,"p",7)(3,ge,18,14,"nz-table",8)),t&2){let e=VD();_D(e.deleteError()?0:-1),gI(),_D(e.formOpen()?1:-1),gI(),_D(e.repos().length===0&&!e.formOpen()?2:e.repos().length>0?3:-1);}}var ae=(()=>{class t{constructor(){this.reposApi=C(f),this.transloco=C(Ve),this.destroyRef=C(at),this.repos=qo([]),this.loading=qo(true),this.loadError=qo(null),this.saveError=qo(null),this.deleteError=qo(null),this.saving=qo(false),this.formOpen=qo(false),this.editingId=qo(null),this.formName=qo(""),this.formLocalPath=qo(""),this.formWorktreeBasePath=qo(""),this.reload();}openCreateForm(){this.editingId.set(null),this.formName.set(""),this.formLocalPath.set(""),this.formWorktreeBasePath.set(""),this.saveError.set(null),this.formOpen.set(true);}openEditForm(e){this.editingId.set(e.id),this.formName.set(e.name),this.formLocalPath.set(e.localPath),this.formWorktreeBasePath.set(e.worktreeBasePath??""),this.saveError.set(null),this.formOpen.set(true);}cancelForm(){this.formOpen.set(false),this.editingId.set(null),this.saveError.set(null);}submitForm(){if(this.saving())return;this.saveError.set(null),this.saving.set(true);let e=r({name:this.formName().trim(),localPath:this.formLocalPath().trim()},this.formWorktreeBasePath().trim()?{worktreeBasePath:this.formWorktreeBasePath().trim()}:{worktreeBasePath:void 0}),r$1=this.editingId();(r$1?this.reposApi.update(r$1,e):this.reposApi.create(e)).pipe(ue$1(this.destroyRef)).subscribe({next:d=>{this.saving.set(false),this.formOpen.set(false),this.editingId.set(null),this.repos.update(le=>[...le.filter(M=>M.id!==d.id),d].sort((M,se)=>M.name.localeCompare(se.name))),this.formName.set(""),this.formLocalPath.set(""),this.formWorktreeBasePath.set("");},error:d=>{this.saving.set(false),this.saveError.set(this.errorMessage(d,this.transloco.translate("local-repos.saveFailed")));}});}deleteRepo(e){this.deleteError.set(null),this.reposApi.delete(e.id).pipe(ue$1(this.destroyRef)).subscribe({next:()=>{this.repos.update(r=>r.filter(l=>l.id!==e.id));},error:r=>{this.deleteError.set(this.errorMessage(r,this.transloco.translate("local-repos.deleteFailed")));}});}reload(){this.loading.set(true),this.loadError.set(null),this.reposApi.list().pipe(ue$1(this.destroyRef)).subscribe({next:e=>{this.repos.set(e),this.loading.set(false);},error:e=>{this.loading.set(false),this.loadError.set(this.errorMessage(e,this.transloco.translate("local-repos.loadFailed")));}});}errorMessage(e,r){return e instanceof n$1||e instanceof Error?e.message:r}static{this.\u0275fac=function(r){return new(r||t)};}static{this.\u0275cmp=QE({type:t,selectors:[["app-local-repository-list"]],decls:11,vars:7,consts:[["data-testid","local-repos-manage",1,"list-page"],[1,"header"],["nz-button","","nzType","primary","type","button","data-testid","create-local-repo",3,"click"],["data-testid","loading"],["data-testid","load-error",1,"error"],["data-testid","delete-error",1,"error"],["data-testid","local-repo-form",1,"form"],["data-testid","empty-state",1,"empty"],["data-testid","local-repo-table",3,"nzData","nzShowPagination"],["data-testid","save-error",1,"error"],[1,"field"],["nz-input","","data-testid","local-repo-name",3,"ngModelChange","ngModel"],["mode","directories",3,"pathChange","path"],[1,"hint"],[1,"form-actions"],["nz-button","","nzType","primary","type","button","data-testid","save-local-repo",3,"click","disabled"],["nz-button","","type","button","data-testid","cancel-local-repo",3,"click"],[1,"path-cell"],[1,"actions"],["nz-button","","nzType","link","type","button",3,"click"],["nz-button","","nzType","link","nzDanger","","type","button","nz-popconfirm","",3,"nzOnConfirm","nzPopconfirmTitle"]],template:function(r,l){r&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.openCreateForm()}),vw(6),Rw(7,"transloco"),Kc()(),bD(8,de,3,3,"p",3)(9,me,2,1,"p",4)(10,xe,4,3),Kc()),r&2&&(gI(3),Ph(Ow(4,3,"local-repos.title")),gI(3),nl(" ",Ow(7,5,"local-repos.create")," "),gI(2),_D(l.loading()?8:l.loadError()?9:10));},dependencies:[Mi,o8,k4,e8,T3,vd,Cc,r7,w7,ai,z,_n,Cn,pc,as,dc,Kl,cc,Ji,ls,ot,Kt],styles:[".list-page[_ngcontent-%COMP%]{padding:1.25rem 1.5rem 3rem;display:flex;flex-direction:column;gap:1rem}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.65rem;padding:.85rem;border:1px solid #e7e5e4;background:#fff}.field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.35rem}.field[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:.85rem;color:#57534e}.hint[_ngcontent-%COMP%]{margin:.2rem 0 0;font-size:.8rem;color:#78716c}.form-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}.empty[_ngcontent-%COMP%]{text-align:center;padding:2.5rem 1rem;border:1px dashed #d6d3d1;background:#fff9}.error[_ngcontent-%COMP%]{color:#9f1239}.actions[_ngcontent-%COMP%]{white-space:nowrap}.path-cell[_ngcontent-%COMP%]{overflow-wrap:anywhere;word-break:break-word}"]});}}return t})();var qe=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)};}static{this.\u0275cmp=QE({type:t,selectors:[["app-local-repositories-manage"]],decls:1,vars:0,template:function(r,l){r&1&&lh(0,"app-local-repository-list");},dependencies:[ae],encapsulation:2});}}return t})();export{qe as LocalRepositoriesManageComponent};
|
package/static/chunk-hTFsYp4X.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {ar as YE,as as uu,bs as H1,at as pT,C,ax as z0,aA as Ie$1,az as hT,bt as Vt,Q as QE,aG as Tt,aH as Ne$1,bc as es,aJ as Z0,bd as BD,p as bD,h as _i,k as Kc,B as _D,x as gI,bu as sw,a5 as Mh,bv as vh,aO as qD,aP as WD,aQ as ut,bw as m9,r,aI as ly,F as VD,aR as nh,z as ch,w as lh,a6 as Nw,bq as $D,N as ND,a7 as MD,D as xD,bx as XE,by as uh,ah as _h,aS as el,j as vw,aT as tl,P as Ph,bz as rh,aN as Ih,bA as Er,S as SD}from'./main-OG6DVLH6.js';function Xe(e,a,t){let n=new Blob([a],{type:t}),i=URL.createObjectURL(n),u=document.createElement("a");u.href=i,u.download=e,document.body.appendChild(u),u.click(),u.remove(),URL.revokeObjectURL(i);}var Ce=["*"];function fe(e,a){if(e&1&&(_i(0,"div",0),lh(1,"nz-skeleton-element",4),Kc()),e&2){let t=VD(2);gI(),ch("nzSize",t.avatar.size||"default")("nzShape",t.avatar.shape||"circle");}}function _e(e,a){if(e&1&&lh(0,"h3",5),e&2){let t=VD(2);_h("width",t.toCSSUnit(t.title.width));}}function ve(e,a){if(e&1&&lh(0,"li"),e&2){let t=a.$index,n=VD(3);_h("width",n.toCSSUnit(n.widthList[t]));}}function ge(e,a){if(e&1&&(_i(0,"ul",3),ND(1,ve,1,2,"li",6,SD),Kc()),e&2){let t=VD(2);gI(),xD(t.rowsList);}}function he(e,a){if(e&1&&(bD(0,fe,2,2,"div",0),_i(1,"div",1),bD(2,_e,1,2,"h3",2),bD(3,ge,3,0,"ul",3),Kc()),e&2){let t=VD();_D(t.nzAvatar?0:-1),gI(2),_D(t.nzTitle?2:-1),gI(),_D(t.nzParagraph?3:-1);}}function Se(e,a){e&1&&$D(0);}var ye=(()=>{class e{nzActive=false;nzType;nzBlock=false;static \u0275fac=function(n){return new(n||e)};static \u0275dir=XE({type:e,selectors:[["nz-skeleton-element"]],hostAttrs:[1,"ant-skeleton","ant-skeleton-element"],hostVars:4,hostBindings:function(n,i){n&2&&Mh("ant-skeleton-active",i.nzActive)("ant-skeleton-block",i.nzBlock);},inputs:{nzActive:[2,"nzActive","nzActive",Z0],nzType:"nzType",nzBlock:[2,"nzBlock","nzBlock",Z0]}})}return e})();var Te=(()=>{class e{nzShape="circle";nzSize="default";styleMap={};ngOnChanges(t){if(t.nzSize&&typeof this.nzSize=="number"){let n=`${this.nzSize}px`;this.styleMap={width:n,height:n,"line-height":n};}else this.styleMap={};}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=QE({type:e,selectors:[["nz-skeleton-element","nzType","avatar"]],inputs:{nzShape:"nzShape",nzSize:"nzSize"},features:[ly],decls:1,vars:10,consts:[[1,"ant-skeleton-avatar"]],template:function(n,i){n&1&&uh(0,"span",0),n&2&&(sw(i.styleMap),Mh("ant-skeleton-avatar-square",i.nzShape==="square")("ant-skeleton-avatar-circle",i.nzShape==="circle")("ant-skeleton-avatar-lg",i.nzSize==="large")("ant-skeleton-avatar-sm",i.nzSize==="small"));},encapsulation:2})}return e})();var ce=(()=>{class e{cdr=C(z0);nzActive=false;nzLoading=true;nzRound=false;nzTitle=true;nzAvatar=false;nzParagraph=true;title;avatar;paragraph;rowsList=[];widthList=[];toCSSUnit(t=""){return m9(t)}getTitleProps(){let t=!!this.nzAvatar,n=!!this.nzParagraph,i="";return !t&&n?i="38%":t&&n&&(i="50%"),r({width:i},this.getProps(this.nzTitle))}getAvatarProps(){let t=this.nzTitle&&!this.nzParagraph?"square":"circle";return r({shape:t,size:"large"},this.getProps(this.nzAvatar))}getParagraphProps(){let t=!!this.nzAvatar,n=!!this.nzTitle,i={};return (!t||!n)&&(i.width="61%"),!t&&n?i.rows=3:i.rows=2,r(r({},i),this.getProps(this.nzParagraph))}getProps(t){return t&&typeof t=="object"?t:{}}getWidthList(){let{width:t,rows:n}=this.paragraph,i=[];return t&&Array.isArray(t)?i=t:t&&!Array.isArray(t)&&(i=[],i[n-1]=t),i}updateProps(){this.title=this.getTitleProps(),this.avatar=this.getAvatarProps(),this.paragraph=this.getParagraphProps(),this.rowsList=[...Array(this.paragraph.rows)],this.widthList=this.getWidthList(),this.cdr.markForCheck();}ngOnInit(){this.updateProps();}ngOnChanges(t){(t.nzTitle||t.nzAvatar||t.nzParagraph)&&this.updateProps();}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=QE({type:e,selectors:[["nz-skeleton"]],hostAttrs:[1,"ant-skeleton"],hostVars:6,hostBindings:function(n,i){n&2&&Mh("ant-skeleton-with-avatar",!!i.nzAvatar)("ant-skeleton-active",i.nzActive)("ant-skeleton-round",i.nzRound);},inputs:{nzActive:[2,"nzActive","nzActive",Z0],nzLoading:[2,"nzLoading","nzLoading",Z0],nzRound:[2,"nzRound","nzRound",Z0],nzTitle:"nzTitle",nzAvatar:"nzAvatar",nzParagraph:"nzParagraph"},exportAs:["nzSkeleton"],features:[ly],ngContentSelectors:Ce,decls:2,vars:1,consts:[[1,"ant-skeleton-header"],[1,"ant-skeleton-content"],[1,"ant-skeleton-title",3,"width"],[1,"ant-skeleton-paragraph"],["nzType","avatar",3,"nzSize","nzShape"],[1,"ant-skeleton-title"],[3,"width"]],template:function(n,i){n&1&&(BD(),bD(0,he,4,3)(1,Se,1,0)),n&2&&_D(i.nzLoading?0:1);},dependencies:[ye,Te],encapsulation:2})}return e})(),pe=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=YE({type:e});static \u0275inj=uu({})}return e})();function Ne(e,a){}function ke(e,a){if(e&1&&(_i(0,"div",0),nh(1,Ne,0,0,"ng-template",2),Kc()),e&2){let t=VD();gI(),ch("ngTemplateOutlet",t.nzAvatar);}}function be(e,a){if(e&1&&(el(0),vw(1),tl()),e&2){let t=VD(3);gI(),Ph(t.nzTitle);}}function Me(e,a){if(e&1&&(_i(0,"div",3),nh(1,be,2,1,"ng-container",5),Kc()),e&2){let t=VD(2);gI(),ch("nzStringTemplateOutlet",t.nzTitle);}}function Ae(e,a){if(e&1&&(el(0),vw(1),tl()),e&2){let t=VD(3);gI(),Ph(t.nzDescription);}}function De(e,a){if(e&1&&(_i(0,"div",4),nh(1,Ae,2,1,"ng-container",5),Kc()),e&2){let t=VD(2);gI(),ch("nzStringTemplateOutlet",t.nzDescription);}}function we(e,a){if(e&1&&(_i(0,"div",1),bD(1,Me,2,1,"div",3),bD(2,De,2,1,"div",4),Kc()),e&2){let t=VD();gI(),_D(t.nzTitle?1:-1),gI(),_D(t.nzDescription?2:-1);}}var me=["*"];function Ee(e,a){e&1&&$D(0);}var Pe=()=>({rows:4});function Oe(e,a){if(e&1&&(el(0),vw(1),tl()),e&2){let t=VD(3);gI(),Ph(t.nzTitle);}}function Be(e,a){if(e&1&&(_i(0,"div",6),nh(1,Oe,2,1,"ng-container",9),Kc()),e&2){let t=VD(2);gI(),ch("nzStringTemplateOutlet",t.nzTitle);}}function Le(e,a){if(e&1&&(el(0),vw(1),tl()),e&2){let t=VD(3);gI(),Ph(t.nzExtra);}}function Fe(e,a){if(e&1&&(_i(0,"div",7),nh(1,Le,2,1,"ng-container",9),Kc()),e&2){let t=VD(2);gI(),ch("nzStringTemplateOutlet",t.nzExtra);}}function He(e,a){}function Ie(e,a){if(e&1&&nh(0,He,0,0,"ng-template",8),e&2){let t=VD(2);ch("ngTemplateOutlet",t.listOfNzCardTabComponent.template);}}function je(e,a){if(e&1&&(_i(0,"div",0)(1,"div",5),bD(2,Be,2,1,"div",6),bD(3,Fe,2,1,"div",7),Kc(),bD(4,Ie,1,1,null,8),Kc()),e&2){let t=VD();gI(2),_D(t.nzTitle?2:-1),gI(),_D(t.nzExtra?3:-1),gI(),_D(t.listOfNzCardTabComponent?4:-1);}}function qe(e,a){}function Re(e,a){if(e&1&&(_i(0,"div",1),nh(1,qe,0,0,"ng-template",8),Kc()),e&2){let t=VD();gI(),ch("ngTemplateOutlet",t.nzCover);}}function Ge(e,a){e&1&&lh(0,"nz-skeleton",3),e&2&&ch("nzActive",true)("nzTitle",false)("nzParagraph",Nw(3,Pe));}function Qe(e,a){e&1&&$D(0);}function Ue(e,a){}function Ve(e,a){if(e&1&&(_i(0,"li")(1,"span"),nh(2,Ue,0,0,"ng-template",8),Kc()()),e&2){let t=a.$implicit,n=a.$count;_h("width",100/n,"%"),gI(2),ch("ngTemplateOutlet",t);}}function $e(e,a){if(e&1&&(_i(0,"ul",4),ND(1,Ve,3,3,"li",10,MD),Kc()),e&2){let t=VD();gI(),xD(t.nzActions);}}var We=(()=>{class e{nzHoverable=true;static \u0275fac=function(n){return new(n||e)};static \u0275dir=XE({type:e,selectors:[["","nz-card-grid",""]],hostAttrs:[1,"ant-card-grid"],hostVars:2,hostBindings:function(n,i){n&2&&Mh("ant-card-hoverable",i.nzHoverable);},inputs:{nzHoverable:[2,"nzHoverable","nzHoverable",Z0]},exportAs:["nzCardGrid"]})}return e})(),Ze=(()=>{class e{nzTitle=null;nzDescription=null;nzAvatar=null;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=QE({type:e,selectors:[["nz-card-meta"]],hostAttrs:[1,"ant-card-meta"],inputs:{nzTitle:"nzTitle",nzDescription:"nzDescription",nzAvatar:"nzAvatar"},exportAs:["nzCardMeta"],decls:2,vars:2,consts:[[1,"ant-card-meta-avatar"],[1,"ant-card-meta-detail"],[3,"ngTemplateOutlet"],[1,"ant-card-meta-title"],[1,"ant-card-meta-description"],[4,"nzStringTemplateOutlet"]],template:function(n,i){n&1&&(bD(0,ke,2,1,"div",0),bD(1,we,3,2,"div",1)),n&2&&(_D(i.nzAvatar?0:-1),gI(),_D(i.nzTitle||i.nzDescription?1:-1));},dependencies:[es,Tt,Ne$1],encapsulation:2})}return e})(),Je=(()=>{class e{template;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=QE({type:e,selectors:[["nz-card-tab"]],viewQuery:function(n,i){if(n&1&&Ih(Er,7),n&2){let u;qD(u=WD())&&(i.template=u.first);}},exportAs:["nzCardTab"],ngContentSelectors:me,decls:1,vars:0,template:function(n,i){n&1&&(BD(),rh(0,Ee,1,0,"ng-template"));},encapsulation:2})}return e})(),ze="card",Ke=(()=>{let e,a=[],t=[],n,i=[],u=[],W,Z=[],J=[];return class ${static{let f=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;e=[ut()],n=[ut()],W=[ut()],pT(null,null,e,{kind:"field",name:"nzBordered",static:false,private:false,access:{has:r=>"nzBordered"in r,get:r=>r.nzBordered,set:(r,l)=>{r.nzBordered=l;}},metadata:f},a,t),pT(null,null,n,{kind:"field",name:"nzHoverable",static:false,private:false,access:{has:r=>"nzHoverable"in r,get:r=>r.nzHoverable,set:(r,l)=>{r.nzHoverable=l;}},metadata:f},i,u),pT(null,null,W,{kind:"field",name:"nzSize",static:false,private:false,access:{has:r=>"nzSize"in r,get:r=>r.nzSize,set:(r,l)=>{r.nzSize=l;}},metadata:f},Z,J),f&&Object.defineProperty(this,Symbol.metadata,{enumerable:true,configurable:true,writable:true,value:f});}cdr=C(z0);dir=C(Ie$1).valueSignal;_nzModuleName=ze;nzBordered=hT(this,a,true);nzLoading=(hT(this,t),false);nzHoverable=hT(this,i,false);nzBodyStyle=(hT(this,u),null);nzCover;nzActions=[];nzType=null;nzSize=hT(this,Z,"default");nzTitle=hT(this,J);nzExtra;listOfNzCardTabComponent;listOfNzCardGridDirective;constructor(){Vt(ze,()=>this.cdr.markForCheck());}static \u0275fac=function(r){return new(r||$)};static \u0275cmp=QE({type:$,selectors:[["nz-card"]],contentQueries:function(r,l,K){if(r&1&&vh(K,Je,5)(K,We,4),r&2){let w;qD(w=WD())&&(l.listOfNzCardTabComponent=w.first),qD(w=WD())&&(l.listOfNzCardGridDirective=w);}},hostAttrs:[1,"ant-card"],hostVars:16,hostBindings:function(r,l){r&2&&Mh("ant-card-loading",l.nzLoading)("ant-card-bordered",l.nzBordered)("ant-card-hoverable",l.nzHoverable)("ant-card-small",l.nzSize==="small")("ant-card-contain-grid",l.listOfNzCardGridDirective&&l.listOfNzCardGridDirective.length)("ant-card-type-inner",l.nzType==="inner")("ant-card-contain-tabs",!!l.listOfNzCardTabComponent)("ant-card-rtl",l.dir()==="rtl");},inputs:{nzBordered:[2,"nzBordered","nzBordered",Z0],nzLoading:[2,"nzLoading","nzLoading",Z0],nzHoverable:[2,"nzHoverable","nzHoverable",Z0],nzBodyStyle:"nzBodyStyle",nzCover:"nzCover",nzActions:"nzActions",nzType:"nzType",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra"},exportAs:["nzCard"],ngContentSelectors:me,decls:6,vars:6,consts:[[1,"ant-card-head"],[1,"ant-card-cover"],[1,"ant-card-body"],[3,"nzActive","nzTitle","nzParagraph"],[1,"ant-card-actions"],[1,"ant-card-head-wrapper"],[1,"ant-card-head-title"],[1,"ant-card-extra"],[3,"ngTemplateOutlet"],[4,"nzStringTemplateOutlet"],[3,"width"]],template:function(r,l){r&1&&(BD(),bD(0,je,5,3,"div",0),bD(1,Re,2,1,"div",1),_i(2,"div",2),bD(3,Ge,1,4,"nz-skeleton",3)(4,Qe,1,0),Kc(),bD(5,$e,3,0,"ul",4)),r&2&&(_D(l.nzTitle||l.nzExtra||l.listOfNzCardTabComponent?0:-1),gI(),_D(l.nzCover?1:-1),gI(),sw(l.nzBodyStyle),gI(),_D(l.nzLoading?3:4),gI(2),_D(l.nzActions.length?5:-1));},dependencies:[Tt,Ne$1,es,pe,ce],encapsulation:2})}})(),bt=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=YE({type:e});static \u0275inj=uu({imports:[Ke,Ze,H1]})}return e})();export{Ke as K,Xe as X,bt as b};
|
package/static/chunk-szOy8Im7.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {C,af as Zi,a8 as m,ci as u,ag as E,i as ie}from'./main-OG6DVLH6.js';var U=(()=>{class r{constructor(){this.http=C(Zi),this.baseUrl=`${m.apiBaseUrl}/batches`;}list(t){return this.http.get(this.baseUrl,{params:u(t)}).pipe(E())}get(t){return this.http.get(`${this.baseUrl}/${encodeURIComponent(t)}`).pipe(E())}jobs(t){return this.http.get(`${this.baseUrl}/${encodeURIComponent(t)}/jobs`).pipe(E())}launch(t){return this.http.post(this.baseUrl,t).pipe(E())}cancel(t){return this.http.post(`${this.baseUrl}/${encodeURIComponent(t)}/cancel`,{}).pipe(E())}static{this.\u0275fac=function(a){return new(a||r)};}static{this.\u0275prov=ie({token:r,factory:r.\u0275fac,providedIn:"root"});}}return r})();export{U};
|