@knoflows/engine 0.1.0-beta.16 → 0.1.0
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 +19 -19
- package/package.json +3 -3
- package/static/assets/i18n/en.json +1 -0
- package/static/assets/i18n/es.json +1 -0
- package/static/chunk--WRMKpmO.js +5 -0
- package/static/{chunk-iE460Kz5.js → chunk-5xJXPFlv.js} +1 -1
- package/static/{chunk-DfcFBVF4.js → chunk-7NTQwN96.js} +1 -1
- package/static/{chunk-Edaw7VGW.js → chunk-BCHj6l85.js} +1 -1
- package/static/{chunk-B2Xol2Un.js → chunk-BIL86kgf.js} +1 -1
- package/static/{chunk-C0HCwfa5.js → chunk-BIdwV0jx.js} +1 -1
- package/static/{chunk-B0kZCuEt.js → chunk-BRZ5T52h.js} +1 -1
- package/static/{chunk-Th9whP36.js → chunk-B_R_vsLt.js} +1 -1
- package/static/{chunk-DtQtDE8q.js → chunk-BaYdwXIA.js} +1 -1
- package/static/{chunk-HUIPNwd9.js → chunk-BcQQgpKh.js} +1 -1
- package/static/{chunk-Bgl02GNl.js → chunk-BrP_q6LZ.js} +1 -1
- package/static/{chunk-Fwpw-z7T.js → chunk-Bv1r1Ly-.js} +1 -1
- package/static/chunk-C3Xml1YG.js +1 -0
- package/static/{chunk-DYzSLsNo.js → chunk-C9PkSfMb.js} +1 -1
- package/static/{chunk-Cg2E0vnT.js → chunk-CLM-K-Vg.js} +1 -1
- package/static/{chunk-NZ-CPWJ2.js → chunk-CPNxRF7A.js} +1 -1
- package/static/{chunk-BhF-m2HP.js → chunk-CRGkNzel.js} +1 -1
- package/static/{chunk-9U0WIegY.js → chunk-CV-FUe_H.js} +1 -1
- package/static/{chunk-CeywzbyD.js → chunk-CZoPJsBm.js} +1 -1
- package/static/{chunk-yoe_30RI.js → chunk-CuwZV6XG.js} +1 -1
- package/static/{chunk-CenXuPs5.js → chunk-Cvoe3MtC.js} +1 -1
- package/static/{chunk-C2BVYtVN.js → chunk-D3JZ8ur5.js} +2 -2
- package/static/{chunk-BhTujCrk.js → chunk-DAONFRT8.js} +1 -1
- package/static/{chunk-CsQ_HDGC.js → chunk-DDhSFoAE.js} +1 -1
- package/static/{chunk-DZJZYEZl.js → chunk-DEF7Ge5B.js} +1 -1
- package/static/{chunk-bCuvpgQS.js → chunk-DHC_yfIa.js} +1 -1
- package/static/{chunk-z2vvQAle.js → chunk-DSgUAlqN.js} +1 -1
- package/static/{chunk-FOJfn_t9.js → chunk-DVJ9L-aC.js} +1 -1
- package/static/{chunk-Bu6_39Nh.js → chunk-DaO-gpzS.js} +1 -1
- package/static/{chunk-CRv0PDB7.js → chunk-Dg-4XevL.js} +1 -1
- package/static/{chunk-CRdEWPUM.js → chunk-DvWh-Q5D.js} +1 -1
- package/static/{chunk-B7WkIFy0.js → chunk-Dx92ksvP.js} +1 -1
- package/static/{chunk-CecXf-CU.js → chunk-DyiDg8XX.js} +1 -1
- package/static/{chunk-DGC4TkAL.js → chunk-VXZaUyyE.js} +1 -1
- package/static/{chunk-Dp4H7MY0.js → chunk-Ysn4Fbgj.js} +1 -1
- package/static/{chunk-BW9BdLk-.js → chunk-ZqQUQSE8.js} +1 -1
- package/static/{chunk-C7h8oMzu.js → chunk-hpn_m1ZC.js} +1 -1
- package/static/{chunk-DUkiyf7y.js → chunk-pi-mtheN.js} +1 -1
- package/static/{chunk-Dv5GyY6h.js → chunk-xeQj_hSF.js} +1 -1
- package/static/index.html +1 -1
- package/static/{main-CHQMTVIP.js → main-SI5AKDMC.js} +1 -1
- package/static/chunk-DixyYfV_.js +0 -1
- package/static/chunk-p6dftaf8.js +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
import {f}from'./chunk-
|
|
1
|
+
import {f}from'./chunk-DSgUAlqN.js';import {x,h,w}from'./chunk-CV-FUe_H.js';import'./chunk-D3JZ8ur5.js';import {W,I}from'./chunk-5xJXPFlv.js';import {L as Lt,u as ut,p as pc,a as as,d as dc,K as Kl,c as cc,J as Ji,l as ls}from'./chunk-DAONFRT8.js';import'./chunk-CLM-K-Vg.js';import {Z as ZE,n as uh,C,$,V as Ve,b as at,S as p,q as qo,U as Uw,u as ue$1,aW as Ng,c as bi,d as $8,X as M5,v as v3,Y as pf,a0 as bd,a1 as sp,a2 as fp,K as Kt,j as _i,I as Iw,P as Pw,J as Jc,m as mh,l as _D,o as gI,L as Lh,p as Fw,w as lh,z as rl,M as MD,H as HD,x as xD,B as AD,G as FD,D as ch,E as Aw,O as Fu,Q as ju}from'./main-SI5AKDMC.js';var pe=t=>["/jobs",t],ce=(t,d)=>d.id;function me(t,d){t&1&&(_i(0,"p",3),Iw(1),Pw(2,"transloco"),Jc()),t&2&&(gI(),Lh(Fw(2,1,"common.loading")));}function he(t,d){if(t&1&&(_i(0,"p",4),Iw(1),Jc()),t&2){let e=HD();gI(),Lh(e.loadError());}}function ue(t,d){if(t&1&&(_i(0,"p",5),Iw(1),Jc()),t&2){let e=HD(2);gI(),Lh(e.actionError());}}function fe(t,d){t&1&&(_i(0,"p",6),Iw(1),Pw(2,"transloco"),Jc()),t&2&&(gI(),Lh(Fw(2,1,"worktrees.activeWarning")));}function ge(t,d){t&1&&(_i(0,"p",7),Iw(1),Pw(2,"transloco"),Jc()),t&2&&(gI(),Lh(Fw(2,1,"worktrees.emptyState")));}function Ce(t,d){if(t&1){let e=FD();_i(0,"tr")(1,"td")(2,"label",9),mh("nzCheckedChange",function(l){let b=Fu(e).$implicit,le=HD(3);return ju(le.toggleSelected(b.id,l))}),Jc()(),_i(3,"td")(4,"a",10),Iw(5),Jc()(),_i(6,"td"),Iw(7),Jc(),_i(8,"td"),Iw(9),Jc(),_i(10,"td",11),Iw(11),Jc(),_i(12,"td")(13,"nz-tag",12),Iw(14),Pw(15,"transloco"),Jc()(),_i(16,"td"),Iw(17),Jc()();}if(t&2){let e=d.$implicit,i=HD(3);ch("data-testid","worktree-row-"+e.id),gI(2),lh("nzChecked",i.isSelected(e.id)),ch("data-testid","worktree-select-"+e.id),gI(2),lh("routerLink",Aw(16,pe,e.id)),ch("data-testid","worktree-job-"+e.id),gI(),Lh(e.id),gI(2),Lh(i.repoName(e)),gI(2),Lh(e.branch??"\u2014"),gI(2),Lh(e.worktreePath),gI(2),lh("nzColor",i.jobStatusTagColor(e.status,i.theme.theme()))("ngClass",i.jobStatusTagClass(e.status,i.theme.theme())),ch("data-testid","worktree-status-"+e.id),gI(),Lh(Fw(15,14,i.statusKey(e.status))),gI(3),Lh(e.createdAt);}}function xe(t,d){if(t&1&&(_i(0,"nz-table",8)(1,"thead")(2,"tr"),uh(3,"th"),_i(4,"th"),Iw(5),Pw(6,"transloco"),Jc(),_i(7,"th"),Iw(8),Pw(9,"transloco"),Jc(),_i(10,"th"),Iw(11),Pw(12,"transloco"),Jc(),_i(13,"th"),Iw(14),Pw(15,"transloco"),Jc(),_i(16,"th"),Iw(17),Pw(18,"transloco"),Jc(),_i(19,"th"),Iw(20),Pw(21,"transloco"),Jc()()(),_i(22,"tbody"),xD(23,Ce,18,18,"tr",null,ce),Jc()()),t&2){let e=HD(2);lh("nzData",e.jobs())("nzShowPagination",false),gI(5),Lh(Fw(6,8,"worktrees.column.job")),gI(3),Lh(Fw(9,10,"worktrees.column.repository")),gI(3),Lh(Fw(12,12,"worktrees.column.branch")),gI(3),Lh(Fw(15,14,"worktrees.column.path")),gI(3),Lh(Fw(18,16,"worktrees.column.status")),gI(3),Lh(Fw(21,18,"worktrees.column.created")),gI(3),AD(e.jobs());}}function be(t,d){if(t&1&&(_D(0,ue,2,1,"p",5),_D(1,fe,3,3,"p",6),_D(2,ge,3,3,"p",7)(3,xe,25,20,"nz-table",8)),t&2){let e=HD();MD(e.actionError()?0:-1),gI(),MD(e.selectedHasActive()?1:-1),gI(),MD(e.jobs().length===0?2:3);}}var se=(()=>{class t{constructor(){this.jobsApi=C($),this.reposApi=C(f),this.transloco=C(Ve),this.destroyRef=C(at),this.theme=C(p),this.jobStatusTagClass=x,this.jobStatusTagColor=h,this.jobs=qo([]),this.repos=qo([]),this.selectedIds=qo([]),this.loading=qo(true),this.loadError=qo(null),this.actionError=qo(null),this.deleting=qo(false),this.selectedHasActive=Uw(()=>this.selectedJobs().some(e=>!w(e.status))),this.selectedJobs=Uw(()=>{let e=new Set(this.selectedIds());return this.jobs().filter(i=>e.has(i.id))}),this.reload();}statusKey(e){return `jobs.status.${e}`}repoName(e){return this.repos().find(l=>_e(e,l))?.name??"\u2014"}isSelected(e){return this.selectedIds().includes(e)}toggleSelected(e,i){this.selectedIds.update(l=>i?l.includes(e)?l:[...l,e]:l.filter(b=>b!==e)),this.actionError.set(null);}deleteSelected(){if(!(this.deleting()||this.selectedIds().length===0)){if(this.selectedHasActive()){this.actionError.set(this.transloco.translate("worktrees.activeWarning"));return}this.deleting.set(true),this.actionError.set(null),this.jobsApi.deleteWorktrees(this.selectedIds()).pipe(ue$1(this.destroyRef)).subscribe({next:()=>{this.deleting.set(false),this.selectedIds.set([]),this.reload();},error:e=>{this.deleting.set(false),this.actionError.set(this.errorMessage(e,this.transloco.translate("worktrees.deleteFailed")));}});}}reload(){this.loading.set(true),this.loadError.set(null),Ng({jobs:this.jobsApi.list({liveWorktree:true}),repos:this.reposApi.list()}).pipe(ue$1(this.destroyRef)).subscribe({next:({jobs:e,repos:i})=>{this.jobs.set(e),this.repos.set(i),this.loading.set(false);},error:e=>{this.loading.set(false),this.loadError.set(this.errorMessage(e,this.transloco.translate("worktrees.loadFailed")));}});}errorMessage(e,i){return e instanceof bi||e instanceof Error?e.message:i}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275cmp=ZE({type:t,selectors:[["app-worktree-list"]],decls:11,vars:8,consts:[["data-testid","worktrees-manage",1,"list-page"],[1,"header"],["nz-button","","nzDanger","","type","button","data-testid","delete-worktrees",3,"click","disabled"],["data-testid","loading"],["data-testid","load-error",1,"error"],["data-testid","action-error",1,"error"],["data-testid","active-warning",1,"warn"],["data-testid","empty-state",1,"empty"],["data-testid","worktree-table",3,"nzData","nzShowPagination"],["nz-checkbox","",3,"nzCheckedChange","nzChecked"],[3,"routerLink"],[1,"path-cell"],[3,"nzColor","ngClass"]],template:function(i,l){i&1&&(_i(0,"div",0)(1,"header",1)(2,"h1"),Iw(3),Pw(4,"transloco"),Jc(),_i(5,"button",2),mh("click",function(){return l.deleteSelected()}),Iw(6),Pw(7,"transloco"),Jc()(),_D(8,me,3,3,"p",3)(9,he,2,1,"p",4)(10,be,4,3),Jc()),i&2&&(gI(3),Lh(Fw(4,4,"worktrees.title")),gI(2),lh("disabled",l.deleting()||l.selectedIds().length===0),gI(),rl(" ",Fw(7,6,"worktrees.deleteSelected")," "),gI(2),MD(l.loading()?8:l.loadError()?9:10));},dependencies:[$8,M5,v3,pf,bd,sp,fp,Lt,ut,pc,as,dc,Kl,cc,Ji,ls,W,I,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}.empty[_ngcontent-%COMP%]{text-align:center;padding:2.5rem 1rem;border:1px dashed #d6d3d1;background:#fff9}.error[_ngcontent-%COMP%]{color:#9f1239}.warn[_ngcontent-%COMP%]{color:#92400e}.path-cell[_ngcontent-%COMP%]{overflow-wrap:anywhere;word-break:break-word}"]});}}return t})();function _e(t,d){let e=(t.worktreePath??"").replaceAll("\\","/"),i=d.localPath.replaceAll("\\","/").replace(/\/+$/,""),l=(d.worktreeBasePath??ke(i)).replaceAll("\\","/");return e.startsWith(l)||e.startsWith(i)}function ke(t){let d=t.split("/"),e=d.pop()??"repo";return `${d.join("/")}/${e}-worktrees`}var qe=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275cmp=ZE({type:t,selectors:[["app-worktrees-manage"]],decls:1,vars:0,template:function(i,l){i&1&&uh(0,"app-worktree-list");},dependencies:[se],encapsulation:2});}}return t})();export{qe as WorktreesManageComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {o as ot}from'./chunk-C0HCwfa5.js';import {_ as _n,C as Cn}from'./chunk-NZ-CPWJ2.js';import {C,V as Ve$1,b as at,b3 as Wn,a5 as q0,U as Uw,q as qo,r as r$1,u as ue,c as bi,Z as ZE,d as $8,e as al,bb as er,f as rl,g as $i,Y as pf,a0 as bd,a1 as sp,a2 as fp,h as ex,F as Fm,A as Am,K as Kt,j as _i,l as _D,J as Jc,al as Sh,D as ch,o as gI,M as MD,b4 as N2,aV as ix,b5 as cx,i as ie,G as FD,I as Iw,P as Pw,m as mh,L as Lh,p as Fw,z as rl$1,H as HD,k as iE,x as xD,N as ND,w as lh,y as aE,B as AD,aR as xw,n as uh,O as Fu,Q as ju}from'./main-CHQMTVIP.js';import {a as ai,z}from'./chunk-B2Xol2Un.js';import {W,I}from'./chunk-iE460Kz5.js';import {L as Lt,u as ut,p as pc,a as as,d as dc,K as Kl,c as cc,J as Ji,l as ls}from'./chunk-BhTujCrk.js';var ze=(()=>{class t{constructor(){this.http=C(N2),this.baseUrl=`${ix.apiBaseUrl}/context-files`;}list(){return this.http.get(this.baseUrl).pipe(cx())}get(e){return this.http.get(`${this.baseUrl}/${encodeURIComponent(e)}`).pipe(cx())}create(e){return this.http.post(this.baseUrl,e).pipe(cx())}update(e,n){return this.http.patch(`${this.baseUrl}/${encodeURIComponent(e)}`,n).pipe(cx())}delete(e){return this.http.delete(`${this.baseUrl}/${encodeURIComponent(e)}`).pipe(cx())}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=ie({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var Te=()=>[".md"],Ie=(t,f)=>f.id;function Fe(t,f){if(t&1){let e=FD();_i(0,"header",1)(1,"h1"),Iw(2),Pw(3,"transloco"),Jc(),_i(4,"button",4),mh("click",function(){Fu(e);let r=HD();return ju(r.openCreateForm())}),Iw(5),Pw(6,"transloco"),Jc()();}t&2&&(gI(2),Lh(Fw(3,2,"context-files.title")),gI(3),rl$1(" ",Fw(6,4,"context-files.create")," "));}function ye(t,f){t&1&&(_i(0,"p",2),Iw(1),Pw(2,"transloco"),Jc()),t&2&&(gI(),Lh(Fw(2,1,"common.loading")));}function Ne(t,f){if(t&1&&(_i(0,"p",3),Iw(1),Jc()),t&2){let e=HD();gI(),Lh(e.loadError());}}function De(t,f){if(t&1&&(_i(0,"p",5),Iw(1),Jc()),t&2){let e=HD(2);gI(),Lh(e.deleteError());}}function we(t,f){if(t&1&&(_i(0,"p",9),Iw(1),Jc()),t&2){let e=HD(3);gI(),Lh(e.saveError());}}function ke(t,f){if(t&1&&(uh(0,"nz-option",13),Pw(1,"transloco")),t&2){let e=f.$implicit,n=HD(3);lh("nzValue",e)("nzLabel",Fw(1,2,n.tierKey(e)));}}function Le(t,f){if(t&1){let e=FD();_i(0,"button",20),mh("click",function(){Fu(e);let r=HD(3);return ju(r.cancelForm())}),Iw(1),Pw(2,"transloco"),Jc();}t&2&&(gI(),rl$1(" ",Fw(2,1,"context-files.form.cancel")," "));}function Pe(t,f){if(t&1){let e=FD();_i(0,"section",6),_D(1,we,2,1,"p",9),_i(2,"label",10)(3,"span"),Iw(4),Pw(5,"transloco"),Jc(),_i(6,"input",11),mh("ngModelChange",function(r){Fu(e);let p=HD(2);return ju(p.formName.set(r))}),Jc(),iE(),Jc(),_i(7,"div",10)(8,"span"),Iw(9),Pw(10,"transloco"),Jc(),_i(11,"nz-select",12),mh("ngModelChange",function(r){Fu(e);let p=HD(2);return ju(p.formTier.set(r))}),xD(12,ke,2,4,"nz-option",13,ND),Jc(),iE(),Jc(),_i(14,"div",10)(15,"span"),Iw(16),Pw(17,"transloco"),Jc(),_i(18,"app-path-picker",14),mh("pathChange",function(r){Fu(e);let p=HD(2);return ju(p.formPath.set(r))}),Jc(),_i(19,"p",15),Iw(20),Pw(21,"transloco"),Jc()(),_i(22,"label",10)(23,"span"),Iw(24),Pw(25,"transloco"),Jc(),_i(26,"input",16),mh("ngModelChange",function(r){Fu(e);let p=HD(2);return ju(p.formDescription.set(r))}),Jc(),iE(),Jc(),_i(27,"div",17)(28,"button",18),mh("click",function(){Fu(e);let r=HD(2);return ju(r.submitForm())}),Iw(29),Pw(30,"transloco"),Jc(),_D(31,Le,3,3,"button",19),Jc()();}if(t&2){let e=HD(2);gI(),MD(e.saveError()?1:-1),gI(3),Lh(Fw(5,14,"context-files.form.name")),gI(2),lh("ngModel",e.formName()),aE(),gI(3),Lh(Fw(10,16,"context-files.form.tier")),gI(2),lh("ngModel",e.formTier()),aE(),gI(),AD(e.tiers),gI(4),Lh(Fw(17,18,"context-files.form.path")),gI(2),lh("extensions",xw(26,Te))("path",e.formPath()),gI(2),Lh(Fw(21,20,"context-files.form.pathHint")),gI(4),Lh(Fw(25,22,"context-files.form.description")),gI(2),lh("ngModel",e.formDescription()),aE(),gI(2),lh("nzLoading",e.saving()),gI(),rl$1(" ",Fw(30,24,e.editingId()?"context-files.form.save":"context-files.form.add")," "),gI(2),MD(e.inSelectionMode()?-1:31);}}function Ve(t,f){if(t&1){let e=FD();_i(0,"section",7)(1,"p"),Iw(2),Pw(3,"transloco"),Jc(),_i(4,"button",21),mh("click",function(){Fu(e);let r=HD(2);return ju(r.openCreateForm())}),Iw(5),Pw(6,"transloco"),Jc()();}t&2&&(gI(2),Lh(Fw(3,2,"context-files.emptyState")),gI(3),rl$1(" ",Fw(6,4,"context-files.create")," "));}function Be(t,f){t&1&&uh(0,"th");}function Oe(t,f){t&1&&(_i(0,"th"),Iw(1),Pw(2,"transloco"),Jc()),t&2&&(gI(),Lh(Fw(2,1,"context-files.column.actions")));}function $e(t,f){if(t&1){let e=FD();_i(0,"td")(1,"label",24),mh("nzCheckedChange",function(r){Fu(e);let p=HD().$implicit,T=HD(3);return ju(T.toggleSelected(p.id,r))}),Jc()();}if(t&2){let e=HD().$implicit,n=HD(3);gI(),lh("nzChecked",n.isSelected(e.id)),ch("data-testid","select-"+e.id);}}function Ae(t,f){if(t&1){let e=FD();_i(0,"td",23)(1,"button",25),mh("click",function(){Fu(e);let r=HD().$implicit,p=HD(3);return ju(p.openEditForm(r))}),Iw(2),Pw(3,"transloco"),Jc(),_i(4,"button",26),Pw(5,"transloco"),Pw(6,"transloco"),Pw(7,"transloco"),mh("nzOnConfirm",function(){Fu(e);let r=HD().$implicit,p=HD(3);return ju(p.deleteFile(r.id))}),Iw(8),Pw(9,"transloco"),Jc()();}if(t&2){let e=HD().$implicit;gI(),ch("data-testid","edit-"+e.id),gI(),rl$1(" ",Fw(3,7,"context-files.edit")," "),gI(2),lh("nzPopconfirmTitle",Fw(5,9,"context-files.deleteConfirm"))("nzOkText",Fw(6,11,"context-files.delete"))("nzCancelText",Fw(7,13,"common.cancel")),ch("data-testid","delete-"+e.id),gI(4),rl$1(" ",Fw(9,15,"context-files.delete")," ");}}function Ue(t,f){if(t&1&&(_i(0,"tr"),_D(1,$e,2,2,"td"),_i(2,"td"),Iw(3),Jc(),_i(4,"td")(5,"nz-tag"),Iw(6),Pw(7,"transloco"),Jc()(),_i(8,"td",22),Iw(9),Jc(),_i(10,"td"),Iw(11),Jc(),_D(12,Ae,10,17,"td",23),Jc()),t&2){let e=f.$implicit,n=HD(3);ch("data-testid","context-file-"+e.id),gI(),MD(n.inSelectionMode()?1:-1),gI(),ch("data-testid","name-"+e.id),gI(),Lh(e.name),gI(2),ch("data-testid","tier-"+e.id),gI(),Lh(Fw(7,11,n.tierKey(e.tier))),gI(2),ch("data-testid","path-"+e.id),gI(),Lh(e.path),gI(),ch("data-testid","description-"+e.id),gI(),Lh(e.description),gI(),MD(n.inSelectionMode()?-1:12);}}function Re(t,f){if(t&1&&(_i(0,"nz-table",8)(1,"thead")(2,"tr"),_D(3,Be,1,0,"th"),_i(4,"th"),Iw(5),Pw(6,"transloco"),Jc(),_i(7,"th"),Iw(8),Pw(9,"transloco"),Jc(),_i(10,"th"),Iw(11),Pw(12,"transloco"),Jc(),_i(13,"th"),Iw(14),Pw(15,"transloco"),Jc(),_D(16,Oe,3,3,"th"),Jc()(),_i(17,"tbody"),xD(18,Ue,13,13,"tr",null,Ie),Jc()()),t&2){let e=HD(2);lh("nzData",e.files())("nzFrontPagination",false)("nzShowPagination",false),gI(3),MD(e.inSelectionMode()?3:-1),gI(2),Lh(Fw(6,9,"context-files.column.name")),gI(3),Lh(Fw(9,11,"context-files.column.tier")),gI(3),Lh(Fw(12,13,"context-files.column.path")),gI(3),Lh(Fw(15,15,"context-files.column.description")),gI(2),MD(e.inSelectionMode()?-1:16),gI(2),AD(e.files());}}function je(t,f){if(t&1&&(_D(0,De,2,1,"p",5),_D(1,Pe,32,27,"section",6),_D(2,Ve,7,6,"section",7)(3,Re,20,17,"nz-table",8)),t&2){let e=HD();MD(e.deleteError()?0:-1),gI(),MD(e.inSelectionMode()||e.formOpen()?1:-1),gI(),MD(e.files().length===0&&!e.inSelectionMode()&&!e.formOpen()?2:3);}}var Ke=["user","organization","project"],St=(()=>{class t{constructor(){this.filesApi=C(ze),this.transloco=C(Ve$1),this.destroyRef=C(at),this.modalData=C(Wn,{optional:true}),this.selectionModeInput=q0(false),this.inSelectionMode=Uw(()=>this.modalData?.selectionMode??this.selectionModeInput()),this.files=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.selectedIds=qo([...this.modalData?.selectedIds??[]]),this.formName=qo(""),this.formTier=qo("user"),this.formPath=qo(""),this.formDescription=qo(""),this.tiers=Ke,this.reload();}currentSelectedIds(){return this.selectedIds()}tierKey(e){return `context-files.tier.${e}`}isSelected(e){return this.selectedIds().includes(e)}toggleSelected(e,n){this.selectedIds.update(r=>n?r.includes(e)?r:[...r,e]:r.filter(p=>p!==e));}openCreateForm(){this.editingId.set(null),this.formName.set(""),this.formTier.set("user"),this.formPath.set(""),this.formDescription.set(""),this.saveError.set(null),this.formOpen.set(true);}openEditForm(e){this.editingId.set(e.id),this.formName.set(e.name),this.formTier.set(e.tier),this.formPath.set(e.path),this.formDescription.set(e.description??""),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$1({name:this.formName().trim(),tier:this.formTier(),path:this.formPath().trim()},this.formDescription().trim()?{description:this.formDescription().trim()}:{description:void 0}),n=this.editingId();(n?this.filesApi.update(n,e):this.filesApi.create(e)).pipe(ue(this.destroyRef)).subscribe({next:p=>{this.saving.set(false),this.formOpen.set(false),this.editingId.set(null),this.files.update(T=>[...T.filter(N=>N.id!==p.id),p].sort((N,Ee)=>N.name.localeCompare(Ee.name))),this.inSelectionMode()&&!this.isSelected(p.id)&&this.selectedIds.update(T=>[...T,p.id]),this.formName.set(""),this.formTier.set("user"),this.formPath.set(""),this.formDescription.set("");},error:p=>{this.saving.set(false),this.saveError.set(this.errorMessage(p,this.transloco.translate("context-files.saveFailed")));}});}deleteFile(e){this.deleteError.set(null),this.filesApi.delete(e).pipe(ue(this.destroyRef)).subscribe({next:()=>{this.files.update(n=>n.filter(r=>r.id!==e)),this.selectedIds.update(n=>n.filter(r=>r!==e));},error:n=>{this.deleteError.set(this.errorMessage(n,this.transloco.translate("context-files.deleteFailed")));}});}reload(){this.loading.set(true),this.loadError.set(null),this.filesApi.list().pipe(ue(this.destroyRef)).subscribe({next:e=>{this.files.set(e),this.loading.set(false);},error:e=>{this.loading.set(false),this.loadError.set(this.errorMessage(e,this.transloco.translate("context-files.loadFailed")));}});}errorMessage(e,n){return e instanceof bi||e instanceof Error?e.message:n}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=ZE({type:t,selectors:[["app-context-file-list"]],inputs:{selectionModeInput:[1,"selectionModeInput"]},decls:5,vars:5,consts:[[1,"context-file-list"],[1,"header"],["data-testid","loading"],["data-testid","load-error",1,"error"],["nz-button","","nzType","primary","type","button","data-testid","create-context-file",3,"click"],["data-testid","delete-error",1,"error"],["data-testid","context-file-form",1,"form"],["data-testid","empty-state",1,"empty"],["data-testid","context-file-items",3,"nzData","nzFrontPagination","nzShowPagination"],["data-testid","save-error",1,"error"],[1,"field"],["nz-input","","data-testid","context-file-name",3,"ngModelChange","ngModel"],["data-testid","context-file-tier",3,"ngModelChange","ngModel"],[3,"nzValue","nzLabel"],["mode","files",3,"pathChange","extensions","path"],[1,"hint"],["nz-input","","data-testid","context-file-description",3,"ngModelChange","ngModel"],[1,"form-actions"],["nz-button","","nzType","primary","type","button","data-testid","context-file-submit",3,"click","nzLoading"],["nz-button","","type","button","data-testid","context-file-cancel"],["nz-button","","type","button","data-testid","context-file-cancel",3,"click"],["nz-button","","nzType","primary","type","button","data-testid","empty-create",3,"click"],[1,"path-cell"],[1,"actions"],["nz-checkbox","",3,"nzCheckedChange","nzChecked"],["nz-button","","nzType","link","type","button",3,"click"],["nz-button","","nzType","link","nzDanger","","type","button","nz-popconfirm","",3,"nzOnConfirm","nzPopconfirmTitle","nzOkText","nzCancelText"]],template:function(n,r){n&1&&(_i(0,"div",0),_D(1,Fe,7,6,"header",1),_D(2,ye,3,3,"p",2)(3,Ne,2,1,"p",3)(4,je,4,3),Jc()),n&2&&(Sh("list-page",!r.inSelectionMode()),ch("data-testid",r.inSelectionMode()?"context-file-picker":"context-files-manage"),gI(),MD(r.inSelectionMode()?-1:1),gI(),MD(r.loading()?2:r.loadError()?3:4));},dependencies:[$8,al,er,rl,$i,pf,bd,sp,fp,Lt,ut,ai,z,_n,Cn,ex,Fm,Am,pc,as,dc,Kl,cc,Ji,ls,W,I,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})();export{St as S,ze as z};
|
|
1
|
+
import {o as ot}from'./chunk-BIdwV0jx.js';import {_ as _n,C as Cn}from'./chunk-CPNxRF7A.js';import {C,V as Ve$1,b as at,b3 as Wn,a5 as q0,U as Uw,q as qo,r as r$1,u as ue,c as bi,Z as ZE,d as $8,e as al,bb as er,f as rl,g as $i,Y as pf,a0 as bd,a1 as sp,a2 as fp,h as ex,F as Fm,A as Am,K as Kt,j as _i,l as _D,J as Jc,al as Sh,D as ch,o as gI,M as MD,b4 as N2,aV as ix,b5 as cx,i as ie,G as FD,I as Iw,P as Pw,m as mh,L as Lh,p as Fw,z as rl$1,H as HD,k as iE,x as xD,N as ND,w as lh,y as aE,B as AD,aR as xw,n as uh,O as Fu,Q as ju}from'./main-SI5AKDMC.js';import {a as ai,z}from'./chunk-BIL86kgf.js';import {W,I}from'./chunk-5xJXPFlv.js';import {L as Lt,u as ut,p as pc,a as as,d as dc,K as Kl,c as cc,J as Ji,l as ls}from'./chunk-DAONFRT8.js';var ze=(()=>{class t{constructor(){this.http=C(N2),this.baseUrl=`${ix.apiBaseUrl}/context-files`;}list(){return this.http.get(this.baseUrl).pipe(cx())}get(e){return this.http.get(`${this.baseUrl}/${encodeURIComponent(e)}`).pipe(cx())}create(e){return this.http.post(this.baseUrl,e).pipe(cx())}update(e,n){return this.http.patch(`${this.baseUrl}/${encodeURIComponent(e)}`,n).pipe(cx())}delete(e){return this.http.delete(`${this.baseUrl}/${encodeURIComponent(e)}`).pipe(cx())}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=ie({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var Te=()=>[".md"],Ie=(t,f)=>f.id;function Fe(t,f){if(t&1){let e=FD();_i(0,"header",1)(1,"h1"),Iw(2),Pw(3,"transloco"),Jc(),_i(4,"button",4),mh("click",function(){Fu(e);let r=HD();return ju(r.openCreateForm())}),Iw(5),Pw(6,"transloco"),Jc()();}t&2&&(gI(2),Lh(Fw(3,2,"context-files.title")),gI(3),rl$1(" ",Fw(6,4,"context-files.create")," "));}function ye(t,f){t&1&&(_i(0,"p",2),Iw(1),Pw(2,"transloco"),Jc()),t&2&&(gI(),Lh(Fw(2,1,"common.loading")));}function Ne(t,f){if(t&1&&(_i(0,"p",3),Iw(1),Jc()),t&2){let e=HD();gI(),Lh(e.loadError());}}function De(t,f){if(t&1&&(_i(0,"p",5),Iw(1),Jc()),t&2){let e=HD(2);gI(),Lh(e.deleteError());}}function we(t,f){if(t&1&&(_i(0,"p",9),Iw(1),Jc()),t&2){let e=HD(3);gI(),Lh(e.saveError());}}function ke(t,f){if(t&1&&(uh(0,"nz-option",13),Pw(1,"transloco")),t&2){let e=f.$implicit,n=HD(3);lh("nzValue",e)("nzLabel",Fw(1,2,n.tierKey(e)));}}function Le(t,f){if(t&1){let e=FD();_i(0,"button",20),mh("click",function(){Fu(e);let r=HD(3);return ju(r.cancelForm())}),Iw(1),Pw(2,"transloco"),Jc();}t&2&&(gI(),rl$1(" ",Fw(2,1,"context-files.form.cancel")," "));}function Pe(t,f){if(t&1){let e=FD();_i(0,"section",6),_D(1,we,2,1,"p",9),_i(2,"label",10)(3,"span"),Iw(4),Pw(5,"transloco"),Jc(),_i(6,"input",11),mh("ngModelChange",function(r){Fu(e);let p=HD(2);return ju(p.formName.set(r))}),Jc(),iE(),Jc(),_i(7,"div",10)(8,"span"),Iw(9),Pw(10,"transloco"),Jc(),_i(11,"nz-select",12),mh("ngModelChange",function(r){Fu(e);let p=HD(2);return ju(p.formTier.set(r))}),xD(12,ke,2,4,"nz-option",13,ND),Jc(),iE(),Jc(),_i(14,"div",10)(15,"span"),Iw(16),Pw(17,"transloco"),Jc(),_i(18,"app-path-picker",14),mh("pathChange",function(r){Fu(e);let p=HD(2);return ju(p.formPath.set(r))}),Jc(),_i(19,"p",15),Iw(20),Pw(21,"transloco"),Jc()(),_i(22,"label",10)(23,"span"),Iw(24),Pw(25,"transloco"),Jc(),_i(26,"input",16),mh("ngModelChange",function(r){Fu(e);let p=HD(2);return ju(p.formDescription.set(r))}),Jc(),iE(),Jc(),_i(27,"div",17)(28,"button",18),mh("click",function(){Fu(e);let r=HD(2);return ju(r.submitForm())}),Iw(29),Pw(30,"transloco"),Jc(),_D(31,Le,3,3,"button",19),Jc()();}if(t&2){let e=HD(2);gI(),MD(e.saveError()?1:-1),gI(3),Lh(Fw(5,14,"context-files.form.name")),gI(2),lh("ngModel",e.formName()),aE(),gI(3),Lh(Fw(10,16,"context-files.form.tier")),gI(2),lh("ngModel",e.formTier()),aE(),gI(),AD(e.tiers),gI(4),Lh(Fw(17,18,"context-files.form.path")),gI(2),lh("extensions",xw(26,Te))("path",e.formPath()),gI(2),Lh(Fw(21,20,"context-files.form.pathHint")),gI(4),Lh(Fw(25,22,"context-files.form.description")),gI(2),lh("ngModel",e.formDescription()),aE(),gI(2),lh("nzLoading",e.saving()),gI(),rl$1(" ",Fw(30,24,e.editingId()?"context-files.form.save":"context-files.form.add")," "),gI(2),MD(e.inSelectionMode()?-1:31);}}function Ve(t,f){if(t&1){let e=FD();_i(0,"section",7)(1,"p"),Iw(2),Pw(3,"transloco"),Jc(),_i(4,"button",21),mh("click",function(){Fu(e);let r=HD(2);return ju(r.openCreateForm())}),Iw(5),Pw(6,"transloco"),Jc()();}t&2&&(gI(2),Lh(Fw(3,2,"context-files.emptyState")),gI(3),rl$1(" ",Fw(6,4,"context-files.create")," "));}function Be(t,f){t&1&&uh(0,"th");}function Oe(t,f){t&1&&(_i(0,"th"),Iw(1),Pw(2,"transloco"),Jc()),t&2&&(gI(),Lh(Fw(2,1,"context-files.column.actions")));}function $e(t,f){if(t&1){let e=FD();_i(0,"td")(1,"label",24),mh("nzCheckedChange",function(r){Fu(e);let p=HD().$implicit,T=HD(3);return ju(T.toggleSelected(p.id,r))}),Jc()();}if(t&2){let e=HD().$implicit,n=HD(3);gI(),lh("nzChecked",n.isSelected(e.id)),ch("data-testid","select-"+e.id);}}function Ae(t,f){if(t&1){let e=FD();_i(0,"td",23)(1,"button",25),mh("click",function(){Fu(e);let r=HD().$implicit,p=HD(3);return ju(p.openEditForm(r))}),Iw(2),Pw(3,"transloco"),Jc(),_i(4,"button",26),Pw(5,"transloco"),Pw(6,"transloco"),Pw(7,"transloco"),mh("nzOnConfirm",function(){Fu(e);let r=HD().$implicit,p=HD(3);return ju(p.deleteFile(r.id))}),Iw(8),Pw(9,"transloco"),Jc()();}if(t&2){let e=HD().$implicit;gI(),ch("data-testid","edit-"+e.id),gI(),rl$1(" ",Fw(3,7,"context-files.edit")," "),gI(2),lh("nzPopconfirmTitle",Fw(5,9,"context-files.deleteConfirm"))("nzOkText",Fw(6,11,"context-files.delete"))("nzCancelText",Fw(7,13,"common.cancel")),ch("data-testid","delete-"+e.id),gI(4),rl$1(" ",Fw(9,15,"context-files.delete")," ");}}function Ue(t,f){if(t&1&&(_i(0,"tr"),_D(1,$e,2,2,"td"),_i(2,"td"),Iw(3),Jc(),_i(4,"td")(5,"nz-tag"),Iw(6),Pw(7,"transloco"),Jc()(),_i(8,"td",22),Iw(9),Jc(),_i(10,"td"),Iw(11),Jc(),_D(12,Ae,10,17,"td",23),Jc()),t&2){let e=f.$implicit,n=HD(3);ch("data-testid","context-file-"+e.id),gI(),MD(n.inSelectionMode()?1:-1),gI(),ch("data-testid","name-"+e.id),gI(),Lh(e.name),gI(2),ch("data-testid","tier-"+e.id),gI(),Lh(Fw(7,11,n.tierKey(e.tier))),gI(2),ch("data-testid","path-"+e.id),gI(),Lh(e.path),gI(),ch("data-testid","description-"+e.id),gI(),Lh(e.description),gI(),MD(n.inSelectionMode()?-1:12);}}function Re(t,f){if(t&1&&(_i(0,"nz-table",8)(1,"thead")(2,"tr"),_D(3,Be,1,0,"th"),_i(4,"th"),Iw(5),Pw(6,"transloco"),Jc(),_i(7,"th"),Iw(8),Pw(9,"transloco"),Jc(),_i(10,"th"),Iw(11),Pw(12,"transloco"),Jc(),_i(13,"th"),Iw(14),Pw(15,"transloco"),Jc(),_D(16,Oe,3,3,"th"),Jc()(),_i(17,"tbody"),xD(18,Ue,13,13,"tr",null,Ie),Jc()()),t&2){let e=HD(2);lh("nzData",e.files())("nzFrontPagination",false)("nzShowPagination",false),gI(3),MD(e.inSelectionMode()?3:-1),gI(2),Lh(Fw(6,9,"context-files.column.name")),gI(3),Lh(Fw(9,11,"context-files.column.tier")),gI(3),Lh(Fw(12,13,"context-files.column.path")),gI(3),Lh(Fw(15,15,"context-files.column.description")),gI(2),MD(e.inSelectionMode()?-1:16),gI(2),AD(e.files());}}function je(t,f){if(t&1&&(_D(0,De,2,1,"p",5),_D(1,Pe,32,27,"section",6),_D(2,Ve,7,6,"section",7)(3,Re,20,17,"nz-table",8)),t&2){let e=HD();MD(e.deleteError()?0:-1),gI(),MD(e.inSelectionMode()||e.formOpen()?1:-1),gI(),MD(e.files().length===0&&!e.inSelectionMode()&&!e.formOpen()?2:3);}}var Ke=["user","organization","project"],St=(()=>{class t{constructor(){this.filesApi=C(ze),this.transloco=C(Ve$1),this.destroyRef=C(at),this.modalData=C(Wn,{optional:true}),this.selectionModeInput=q0(false),this.inSelectionMode=Uw(()=>this.modalData?.selectionMode??this.selectionModeInput()),this.files=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.selectedIds=qo([...this.modalData?.selectedIds??[]]),this.formName=qo(""),this.formTier=qo("user"),this.formPath=qo(""),this.formDescription=qo(""),this.tiers=Ke,this.reload();}currentSelectedIds(){return this.selectedIds()}tierKey(e){return `context-files.tier.${e}`}isSelected(e){return this.selectedIds().includes(e)}toggleSelected(e,n){this.selectedIds.update(r=>n?r.includes(e)?r:[...r,e]:r.filter(p=>p!==e));}openCreateForm(){this.editingId.set(null),this.formName.set(""),this.formTier.set("user"),this.formPath.set(""),this.formDescription.set(""),this.saveError.set(null),this.formOpen.set(true);}openEditForm(e){this.editingId.set(e.id),this.formName.set(e.name),this.formTier.set(e.tier),this.formPath.set(e.path),this.formDescription.set(e.description??""),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$1({name:this.formName().trim(),tier:this.formTier(),path:this.formPath().trim()},this.formDescription().trim()?{description:this.formDescription().trim()}:{description:void 0}),n=this.editingId();(n?this.filesApi.update(n,e):this.filesApi.create(e)).pipe(ue(this.destroyRef)).subscribe({next:p=>{this.saving.set(false),this.formOpen.set(false),this.editingId.set(null),this.files.update(T=>[...T.filter(N=>N.id!==p.id),p].sort((N,Ee)=>N.name.localeCompare(Ee.name))),this.inSelectionMode()&&!this.isSelected(p.id)&&this.selectedIds.update(T=>[...T,p.id]),this.formName.set(""),this.formTier.set("user"),this.formPath.set(""),this.formDescription.set("");},error:p=>{this.saving.set(false),this.saveError.set(this.errorMessage(p,this.transloco.translate("context-files.saveFailed")));}});}deleteFile(e){this.deleteError.set(null),this.filesApi.delete(e).pipe(ue(this.destroyRef)).subscribe({next:()=>{this.files.update(n=>n.filter(r=>r.id!==e)),this.selectedIds.update(n=>n.filter(r=>r!==e));},error:n=>{this.deleteError.set(this.errorMessage(n,this.transloco.translate("context-files.deleteFailed")));}});}reload(){this.loading.set(true),this.loadError.set(null),this.filesApi.list().pipe(ue(this.destroyRef)).subscribe({next:e=>{this.files.set(e),this.loading.set(false);},error:e=>{this.loading.set(false),this.loadError.set(this.errorMessage(e,this.transloco.translate("context-files.loadFailed")));}});}errorMessage(e,n){return e instanceof bi||e instanceof Error?e.message:n}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=ZE({type:t,selectors:[["app-context-file-list"]],inputs:{selectionModeInput:[1,"selectionModeInput"]},decls:5,vars:5,consts:[[1,"context-file-list"],[1,"header"],["data-testid","loading"],["data-testid","load-error",1,"error"],["nz-button","","nzType","primary","type","button","data-testid","create-context-file",3,"click"],["data-testid","delete-error",1,"error"],["data-testid","context-file-form",1,"form"],["data-testid","empty-state",1,"empty"],["data-testid","context-file-items",3,"nzData","nzFrontPagination","nzShowPagination"],["data-testid","save-error",1,"error"],[1,"field"],["nz-input","","data-testid","context-file-name",3,"ngModelChange","ngModel"],["data-testid","context-file-tier",3,"ngModelChange","ngModel"],[3,"nzValue","nzLabel"],["mode","files",3,"pathChange","extensions","path"],[1,"hint"],["nz-input","","data-testid","context-file-description",3,"ngModelChange","ngModel"],[1,"form-actions"],["nz-button","","nzType","primary","type","button","data-testid","context-file-submit",3,"click","nzLoading"],["nz-button","","type","button","data-testid","context-file-cancel"],["nz-button","","type","button","data-testid","context-file-cancel",3,"click"],["nz-button","","nzType","primary","type","button","data-testid","empty-create",3,"click"],[1,"path-cell"],[1,"actions"],["nz-checkbox","",3,"nzCheckedChange","nzChecked"],["nz-button","","nzType","link","type","button",3,"click"],["nz-button","","nzType","link","nzDanger","","type","button","nz-popconfirm","",3,"nzOnConfirm","nzPopconfirmTitle","nzOkText","nzCancelText"]],template:function(n,r){n&1&&(_i(0,"div",0),_D(1,Fe,7,6,"header",1),_D(2,ye,3,3,"p",2)(3,Ne,2,1,"p",3)(4,je,4,3),Jc()),n&2&&(Sh("list-page",!r.inSelectionMode()),ch("data-testid",r.inSelectionMode()?"context-file-picker":"context-files-manage"),gI(),MD(r.inSelectionMode()?-1:1),gI(),MD(r.loading()?2:r.loadError()?3:4));},dependencies:[$8,al,er,rl,$i,pf,bd,sp,fp,Lt,ut,ai,z,_n,Cn,ex,Fm,Am,pc,as,dc,Kl,cc,Ji,ls,W,I,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})();export{St as S,ze as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {C,b4 as N2,aV as ix,b_ as u,b5 as cx,i as ie}from'./main-
|
|
1
|
+
import {C,b4 as N2,aV as ix,b_ as u,b5 as cx,i as ie}from'./main-SI5AKDMC.js';var U=(()=>{class r{constructor(){this.http=C(N2),this.baseUrl=`${ix.apiBaseUrl}/batches`;}list(t){return this.http.get(this.baseUrl,{params:u(t)}).pipe(cx())}get(t){return this.http.get(`${this.baseUrl}/${encodeURIComponent(t)}`).pipe(cx())}jobs(t){return this.http.get(`${this.baseUrl}/${encodeURIComponent(t)}/jobs`).pipe(cx())}launch(t){return this.http.post(this.baseUrl,t).pipe(cx())}cancel(t){return this.http.post(`${this.baseUrl}/${encodeURIComponent(t)}/cancel`,{}).pipe(cx())}static{this.\u0275fac=function(a){return new(a||r)};}static{this.\u0275prov=ie({token:r,factory:r.\u0275fac,providedIn:"root"});}}return r})();export{U};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {S as St}from'./chunk-BrP_q6LZ.js';import'./chunk-BIdwV0jx.js';import'./chunk-CPNxRF7A.js';import {Z as ZE,n as uh}from'./main-SI5AKDMC.js';import'./chunk-BIL86kgf.js';import'./chunk-5xJXPFlv.js';import'./chunk-DAONFRT8.js';import'./chunk-CLM-K-Vg.js';var c=(()=>{class e{static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275cmp=ZE({type:e,selectors:[["app-context-files-manage"]],decls:1,vars:0,template:function(t,a){t&1&&uh(0,"app-context-file-list");},dependencies:[St],encapsulation:2});}}return e})();export{c as ContextFilesManageComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as ae,l as le}from'./chunk-
|
|
1
|
+
import {a as ae,l as le}from'./chunk-DvWh-Q5D.js';import {T}from'./chunk-DVJ9L-aC.js';import {H as He}from'./chunk-hpn_m1ZC.js';import'./chunk-DSgUAlqN.js';import {C,a as C1,R as J1,b7 as m,b8 as y,b as at,V as Ve,bo as O,bp as de,ba as Se,q as qo,U as Uw,u as ue$1,r as r$1,c as bi,Z as ZE,d as $8,e as al,bb as er,f as rl,g as $i,v as v3,Y as pf,a0 as bd,a1 as sp,a2 as fp,h as ex,F as Fm,A as Am,K as Kt,j as _i,I as Iw,J as Jc,P as Pw,m as mh,l as _D,o as gI,L as Lh,p as Fw,w as lh,z as rl$1,M as MD,H as HD,G as FD,k as iE,x as xD,y as aE,B as AD,N as ND,n as uh,O as Fu,Q as ju}from'./main-SI5AKDMC.js';import {b}from'./chunk-Dx92ksvP.js';import {a as ai,z}from'./chunk-BIL86kgf.js';import {u as u_}from'./chunk-D3JZ8ur5.js';import'./chunk-CLM-K-Vg.js';var ue=(t,s)=>s.id;function he(t,s){t&1&&(_i(0,"p",6),Iw(1),Pw(2,"transloco"),Jc()),t&2&&(gI(),Lh(Fw(2,1,"common.loading")));}function fe(t,s){if(t&1&&(_i(0,"p",7),Iw(1),Jc()),t&2){let e=HD();gI(),Lh(e.loadError());}}function ge(t,s){if(t&1&&(_i(0,"li"),Iw(1),Jc()),t&2){let e=s.$implicit;gI(),Lh(e);}}function _e(t,s){if(t&1&&(_i(0,"section",8)(1,"h2"),Iw(2),Pw(3,"transloco"),Jc(),_i(4,"ul"),xD(5,ge,2,1,"li",null,ND),Jc()()),t&2){let e=HD(2);gI(2),Lh(Fw(3,1,"shortcuts.editor.validation")),gI(3),AD(e.validationErrors());}}function ve(t,s){if(t&1&&uh(0,"nz-option",12),t&2){let e=s.$implicit;lh("nzValue",e.id)("nzLabel",e.name);}}function we(t,s){if(t&1){let e=FD();_i(0,"app-workflow-input-form",14),mh("valuesChange",function(i){Fu(e);let u=HD(2);return ju(u.setInputValues(i))}),Jc();}if(t&2){let e=HD(2);lh("fields",s.inputSchema)("values",e.inputValues());}}function Ce(t,s){if(t&1){let e=FD();_D(0,_e,7,3,"section",8),_i(1,"label",9)(2,"span"),Iw(3),Pw(4,"transloco"),Jc(),_i(5,"input",10),mh("ngModelChange",function(i){Fu(e);let u=HD();return ju(u.name.set(i))}),Jc(),iE(),Jc(),_i(6,"div",9)(7,"span"),Iw(8),Pw(9,"transloco"),Jc(),_i(10,"nz-select",11),mh("ngModelChange",function(i){Fu(e);let u=HD();return ju(u.onWorkflowChange(i))}),xD(11,ve,1,2,"nz-option",12,ue),Jc(),iE(),Jc(),_D(13,we,1,2,"app-workflow-input-form",13);}if(t&2){let e,o=HD();MD(o.validationErrors().length>0?0:-1),gI(3),Lh(Fw(4,6,"shortcuts.editor.name")),gI(2),lh("ngModel",o.name()),aE(),gI(3),Lh(Fw(9,8,"shortcuts.editor.workflow")),gI(2),lh("ngModel",o.workflowId()),aE(),gI(),AD(o.eligibleWorkflows()),gI(2),MD((e=o.selectedWorkflow())?13:-1,e);}}function be(t){let s=t.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),e=crypto.randomUUID().slice(0,8);return s.length>0?`sc-${s}-${e}`:`sc-${e}`}var Ge=(()=>{class t{constructor(){this.route=C(C1),this.router=C(J1),this.shortcutsApi=C(m),this.nav=C(y),this.workflowsApi=C(b),this.message=C(He),this.destroyRef=C(at),this.transloco=C(Ve),this.language=C(O),this.routeId=de(this.route.paramMap.pipe(Se(e=>e.get("id"))),{initialValue:this.route.snapshot.paramMap.get("id")}),this.name=qo(""),this.workflowId=qo(""),this.workflows=qo([]),this.inputValues=qo({}),this.lastJobId=qo(void 0),this.loadError=qo(null),this.validationErrors=qo([]),this.saving=qo(false),this.loading=qo(true),this.isNew=Uw(()=>!this.routeId()),this.pageTitle=Uw(()=>(this.language.currentLang(),this.isNew()?this.transloco.translate("shortcuts.editor.titleNew"):this.transloco.translate("shortcuts.editor.titleEdit",{name:this.name().trim()}))),this.eligibleWorkflows=Uw(()=>this.workflows().filter(e=>e.appliesTo==="none"&&e.subjectHandling==="per-subject")),this.selectedWorkflow=Uw(()=>this.eligibleWorkflows().find(e=>e.id===this.workflowId())??null),this.workflowsApi.list().pipe(ue$1(this.destroyRef)).subscribe({next:e=>this.workflows.set(e),error:e=>{this.workflows.set([]),this.message.error(this.errorMessage(e,this.transloco.translate("shortcuts.editor.loadFailed")));}}),this.route.paramMap.pipe(ue$1(this.destroyRef)).subscribe(e=>{let o=e.get("id");if(this.validationErrors.set([]),this.loadError.set(null),!o){this.name.set(""),this.workflowId.set(""),this.inputValues.set({}),this.lastJobId.set(void 0),this.loading.set(false);return}this.loading.set(true),this.shortcutsApi.get(o).subscribe({next:i=>{this.name.set(i.name),this.workflowId.set(i.workflowId),this.inputValues.set(i.inputValues),this.lastJobId.set(i.lastJobId),this.loading.set(false);},error:i=>{this.loading.set(false),this.loadError.set(this.errorMessage(i,this.transloco.translate("shortcuts.editor.loadFailed")));}});});}onWorkflowChange(e){this.workflowId.set(e);let o=this.eligibleWorkflows().find(i=>i.id===e);this.inputValues.set(ae(o?.inputSchema??[]));}setInputValues(e){this.inputValues.set(e);}save(){let e=this.routeId(),o=r$1({id:e??be(this.name()),name:this.name().trim(),workflowId:this.workflowId(),inputValues:this.inputValues()},this.lastJobId()?{lastJobId:this.lastJobId()}:{}),i=u_.safeParse(o);if(!i.success){this.validationErrors.set(T(i.error));return}this.validationErrors.set([]),this.saving.set(true),(this.isNew()||!e?this.shortcutsApi.create(i.data):this.shortcutsApi.update(e,i.data)).subscribe({next:M=>{this.saving.set(false),this.nav.refresh(),this.message.success(this.transloco.translate(this.isNew()?"shortcuts.editor.created":"shortcuts.editor.saved")),this.isNew()&&this.router.navigate(["/shortcuts",M.id,"edit"]);},error:M=>{this.saving.set(false),this.message.error(this.errorMessage(M,this.transloco.translate("shortcuts.editor.saveFailed")));}});}errorMessage(e,o){return e instanceof bi||e instanceof Error?e.message:o}static{this.\u0275fac=function(o){return new(o||t)};}static{this.\u0275cmp=ZE({type:t,selectors:[["app-shortcut-editor"]],decls:15,vars:10,consts:[["data-testid","shortcut-editor",1,"editor"],[1,"header"],["data-testid","page-title"],[1,"header-actions"],["routerLink","/shortcuts"],["nz-button","","nzType","primary","type","button","data-testid","save-button",3,"click","nzLoading","disabled"],["data-testid","loading"],["data-testid","load-error",1,"error"],["data-testid","validation-errors",1,"errors"],[1,"field"],["nz-input","","data-testid","shortcut-name",3,"ngModelChange","ngModel"],["data-testid","shortcut-workflow",3,"ngModelChange","ngModel"],[3,"nzValue","nzLabel"],[3,"fields","values"],[3,"valuesChange","fields","values"]],template:function(o,i){o&1&&(_i(0,"main",0)(1,"header",1)(2,"div")(3,"h1",2),Iw(4),Jc()(),_i(5,"div",3)(6,"a",4),Iw(7),Pw(8,"transloco"),Jc(),_i(9,"button",5),mh("click",function(){return i.save()}),Iw(10),Pw(11,"transloco"),Jc()()(),_D(12,he,3,3,"p",6)(13,fe,2,1,"p",7)(14,Ce,14,10),Jc()),o&2&&(gI(4),Lh(i.pageTitle()),gI(3),Lh(Fw(8,6,"shortcuts.editor.backToList")),gI(2),lh("nzLoading",i.saving())("disabled",i.loading()||!!i.loadError()),gI(),rl$1(" ",Fw(11,8,"common.save")," "),gI(2),MD(i.loading()?12:i.loadError()?13:14));},dependencies:[$8,al,er,rl,$i,v3,pf,bd,sp,fp,ai,z,ex,Fm,Am,le,Kt],styles:[".editor[_ngcontent-%COMP%]{padding:1.25rem 1.5rem 3rem;display:flex;flex-direction:column;gap:1rem}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.header-actions[_ngcontent-%COMP%]{display:flex;gap:.75rem;align-items:center}.field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.35rem;margin:.5rem 0}.field[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:.85rem;color:#57534e}.errors[_ngcontent-%COMP%]{border:1px solid #fecdd3;background:#fff1f2;padding:.75rem 1rem}.errors[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 .35rem;font-size:1rem}.error[_ngcontent-%COMP%]{color:#9f1239}"]});}}return t})();export{Ge as ShortcutEditorComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {C,dv as yh,u as ue,ag as Ql,ba as Se,co as Kg,i as ie,aa as oe,b as at,ap as re,dw as Dr,d3 as Qg,c7 as Gl}from'./main-
|
|
1
|
+
import {C,dv as yh,u as ue,ag as Ql,ba as Se,co as Kg,i as ie,aa as oe,b as at,ap as re,dw as Dr,d3 as Qg,c7 as Gl}from'./main-SI5AKDMC.js';var u=()=>{},R=(()=>{class e{ngZone=C(oe);destroyRef=C(at);resizeSource$=new re;listeners=0;renderer=C(Dr).createRenderer(null,null);disposeHandle=u;handler=()=>{this.ngZone.run(()=>{this.resizeSource$.next();});};constructor(){this.destroyRef.onDestroy(()=>{this.handler=u;});}connect(){return this.registerListener(),this.resizeSource$.pipe(Qg(16),Gl(()=>this.unregisterListener()))}disconnet(){this.unregisterListener();}registerListener(){this.listeners===0&&this.ngZone.runOutsideAngular(()=>{this.disposeHandle=this.renderer.listen("window","resize",this.handler);}),this.listeners+=1;}unregisterListener(){this.listeners-=1,this.listeners===0&&(this.disposeHandle(),this.disposeHandle=u);}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),$=(()=>{class e{get singletonRegistry(){return this._singletonRegistry}_singletonRegistry=new Map;registerSingletonWithKey(t,n){let i=this.singletonRegistry.has(t),r=i?this.singletonRegistry.get(t):this.withNewTarget(n);i||this.singletonRegistry.set(t,r);}unregisterSingletonWithKey(t){this.singletonRegistry.has(t)&&this.singletonRegistry.delete(t);}getSingletonWithKey(t){return this.singletonRegistry.has(t)?this.singletonRegistry.get(t).target:null}withNewTarget(t){return {target:t}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var M=(function(e){return e.xxxl="xxxl",e.xxl="xxl",e.xl="xl",e.lg="lg",e.md="md",e.sm="sm",e.xs="xs",e})(M||{});var b={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)",xxxl:"(min-width: 1920px)"};var z=(()=>{class e{resizeService=C(R);mediaMatcher=C(yh);constructor(){this.resizeService.connect().pipe(ue()).subscribe();}subscribe(t,n){return n?this.resizeService.connect().pipe(Ql(void 0),Se(()=>this.matchMedia(t,true)),Kg((i,r)=>i[0]===r[0]),Se(i=>i[1])):this.resizeService.connect().pipe(Ql(void 0),Se(()=>this.matchMedia(t)),Kg())}matchMedia(t,n){let i=M.md,r={};return Object.keys(t).map(S=>{let d=S,g=this.mediaMatcher.matchMedia(b[d]).matches;r[d]=g,g&&(i=d);}),n?[i,r]:i}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();export{$,M,R,b,z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a7 as KE,a8 as fu,aA as mT,aB as yT,a5 as q0,av as K0,U as Uw,s,r as r$1,ae as Le$1,u as ue,bR as eD,c3 as th,al as Sh,q as qo,ap as re,C,c4 as Uo,c5 as Q0,c6 as em,ar as sn,c7 as Gl,Z as ZE,c8 as vo,c9 as Wt,ca as _o,cb as Gl$1,cc as zh,cd as Fh,c0 as Mn,as as st,at as Ee,a3 as Ah,a4 as Th,Y as pf,a0 as bd,a1 as sp,a2 as fp,ce as $b,cf as Zb,aw as rh,m as mh,w as lh,ax as Eh,bf as _r,an as WD,ao as GD,aM as Yl,cg as oc,bW as Bl,ch as Sy,G as FD,j as _i,ci as oi,cj as ri,l as _D,J as Jc,ck as $h,P as Pw,I as Iw,H as HD,aQ as aw,aG as lw,o as gI,M as MD,D as ch,p as Fw,z as rl,cl as Vi,bV as XI,be as E3,b as at,cm as Wm,cn as S2,co as Kg,cp as Yg,cq as kg,cr as kr,cs as xy,ai as ly,ab as Oe,a9 as Z0,ct as Sr,cu as Cr,cv as me,cw as Rg,cx as yo,cy as _n$1,ac as Er,aD as Nr,n as uh,aJ as tl,aK as nl,ad as jr,L as Lh,aT as Vw,O as Fu,Q as ju}from'./main-CHQMTVIP.js';var lt=["overlay"];function ct(i,m){if(i&1&&(tl(0),Iw(1),nl()),i&2){let e=HD(2);gI(),Lh(e.nzTitle);}}function pt(i,m){if(i&1){let e=FD();_i(0,"div",2),oi(function(){Fu(e);let n=HD();return ju(n.zoomAnimationLeave())}),ri(function(){Fu(e);let n=HD();return ju(n.zoomAnimationEnter())}),uh(1,"div",3),_i(2,"div",4)(3,"div",5),rh(4,ct,2,1,"ng-container",6),Jc()()();}if(i&2){let e=HD();aw(e.nzOverlayStyle),lw(e._classMap),Sh("ant-tooltip-rtl",e.dir()==="rtl"),lh("nzNoAnimation",!!e.noAnimation?.nzNoAnimation?.()),gI(),aw(e._arrowStyleMap),gI(2),aw(e._contentStyleMap),gI(),lh("nzStringTemplateOutlet",e.nzTitle)("nzStringTemplateOutletContext",e.nzTitleContext);}}var tt=(()=>{class i{componentType;elementRef=C(_r);hostView=C(Vi);renderer=C(XI);noAnimation=C(Mn,{host:true,optional:true});nzConfigService=C(E3);destroyRef=C(at);platformId=C(Wm);config;visibleChange=new Le$1;get _title(){return this.title||this.directiveTitle||null}get _content(){return this.content||this.directiveContent||null}get _trigger(){return typeof this.trigger<"u"?this.trigger:"hover"}get _placement(){let e=this.placement;return Array.isArray(e)&&e.length>0?e:typeof e=="string"&&e?[e]:["top"]}get _visible(){return (typeof this.visible<"u"?this.visible:this.internalVisible)||false}get _mouseEnterDelay(){return this.mouseEnterDelay||.15}get _mouseLeaveDelay(){return this.mouseLeaveDelay||.1}get _overlayClassName(){return this.overlayClassName||null}get _overlayStyle(){return this.overlayStyle||null}get _overlayClickable(){return this.overlayClickable??true}internalVisible=false;getProxyPropertyMap(){return {noAnimation:["noAnimation",()=>!!this.noAnimation]}}component;destroy$=new re;triggerDisposables=[];delayTimer;constructor(e){this.componentType=e,this.destroyRef.onDestroy(()=>{this.clearTogglingTimer(),this.removeTriggerListeners();});}ngAfterViewInit(){S2(this.platformId)&&(this.createComponent(),this.registerTriggers());}ngOnChanges(e){let{trigger:t}=e;t&&!t.isFirstChange()&&this.registerTriggers(),this.component&&this.updatePropertiesByChanges(e);}show(){this.component?.show();}hide(){this.component?.hide();}updatePosition(){this.component&&this.component.updatePosition();}createComponent(){let e=this.hostView.createComponent(this.componentType);this.component=e.instance,this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),e.location.nativeElement),this.component.setOverlayOrigin(this.origin||this.elementRef),this.initProperties();let t=this.component.nzVisibleChange.pipe(Kg());t.pipe(ue(this.destroyRef)).subscribe(n=>{this.internalVisible=n,this.visibleChange.emit(n);}),t.pipe(sn(Boolean),Yg(0,kg),sn(()=>!!this.component?.overlay?.overlayRef),ue(this.destroyRef)).subscribe(()=>{this.component?.updatePosition();});}registerTriggers(){let e=this.elementRef.nativeElement,t=this.trigger;if(this.removeTriggerListeners(),t==="hover"){let n;this.triggerDisposables.push(this.renderer.listen(e,"mouseenter",()=>{this.delayEnterLeave(true,true,this._mouseEnterDelay);})),this.triggerDisposables.push(this.renderer.listen(e,"mouseleave",()=>{this.delayEnterLeave(true,false,this._mouseLeaveDelay),this.component?.overlay.overlayRef&&!n&&(n=this.component.overlay.overlayRef.overlayElement,this.triggerDisposables.push(this.renderer.listen(n,"mouseenter",()=>{this.delayEnterLeave(false,true,this._mouseEnterDelay);})),this.triggerDisposables.push(this.renderer.listen(n,"mouseleave",()=>{this.delayEnterLeave(false,false,this._mouseLeaveDelay);})));}));}else t==="focus"?(this.triggerDisposables.push(this.renderer.listen(e,"focusin",()=>this.show())),this.triggerDisposables.push(this.renderer.listen(e,"focusout",()=>this.hide()))):t==="click"&&this.triggerDisposables.push(this.renderer.listen(e,"click",n=>{n.preventDefault(),this.show();}));}updatePropertiesByChanges(e){this.updatePropertiesByKeys(Object.keys(e));}updatePropertiesByKeys(e){let t=r$1({title:["nzTitle",()=>this._title],directiveTitle:["nzTitle",()=>this._title],content:["nzContent",()=>this._content],directiveContent:["nzContent",()=>this._content],trigger:["nzTrigger",()=>this._trigger],placement:["nzPlacement",()=>this._placement],visible:["nzVisible",()=>this._visible],mouseEnterDelay:["nzMouseEnterDelay",()=>this._mouseEnterDelay],mouseLeaveDelay:["nzMouseLeaveDelay",()=>this._mouseLeaveDelay],overlayClassName:["nzOverlayClassName",()=>this._overlayClassName],overlayStyle:["nzOverlayStyle",()=>this._overlayStyle],overlayClickable:["nzOverlayClickable",()=>this._overlayClickable],arrowPointAtCenter:["nzArrowPointAtCenter",()=>this.arrowPointAtCenter]},this.getProxyPropertyMap());(e||Object.keys(t).filter(n=>!n.startsWith("directive"))).forEach(n=>{if(t[n]){let[o,c]=t[n];this.updateComponentValue(o,c());}}),this.component?.updateByDirective();}initProperties(){this.updatePropertiesByKeys();}updateComponentValue(e,t){typeof t<"u"&&(this.component[e]=t);}delayEnterLeave(e,t,n=-1){this.delayTimer?this.clearTogglingTimer():n>0?this.delayTimer=setTimeout(()=>{this.delayTimer=void 0,t?this.show():this.hide();},n*1e3):t&&e?this.show():this.hide();}removeTriggerListeners(){this.triggerDisposables.forEach(e=>e()),this.triggerDisposables.length=0;}clearTogglingTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=void 0);}static \u0275fac=function(t){return new(t||i)(kr(xy))};static \u0275dir=eD({type:i,features:[ly]})}return i})(),mt=(()=>{class i{noAnimation=C(Mn,{host:true,optional:true});dir=C(Oe).valueSignal;cdr=C(Z0);elementRef=C(_r);destroyRef=C(at);overlay;nzTitle=null;nzContent=null;nzArrowPointAtCenter=false;nzOverlayClassName;nzOverlayStyle={};nzOverlayClickable=true;nzBackdrop=false;nzMouseEnterDelay;nzMouseLeaveDelay;nzVisibleChange=new re;set nzVisible(e){let t=jr(e);this._visible!==t&&(this._visible=t,this.nzVisibleChange.next(t));}get nzVisible(){return this._visible}_visible=false;set nzTrigger(e){this._trigger=e;}get nzTrigger(){return this._trigger}_trigger="hover";set nzPlacement(e){let t=e.map(n=>Sr(me[n],Cr[n]));this._positions=[...t,...Rg];}preferredPlacement="top";origin;_classMap={};_prefix="ant-tooltip";_positions=[...Rg];constructor(){this.destroyRef.onDestroy(()=>{this.nzVisibleChange.complete();});}show(){this.nzVisible||(this.isEmpty()||(this.nzVisible=true,this.nzVisibleChange.next(true),this.cdr.detectChanges()),this.origin&&this.overlay&&this.overlay.overlayRef&&this.overlay.overlayRef.getDirection()==="rtl"&&this.overlay.overlayRef.setDirection("ltr"));}hide(){this.nzVisible&&(this.nzVisible=false,this.nzVisibleChange.next(false),this.cdr.detectChanges());}updateByDirective(){this.updateStyles(),this.cdr.detectChanges(),Promise.resolve().then(()=>{this.updatePosition(),this.updateVisibilityByTitle();});}updatePosition(){this.origin&&this.overlay&&this.overlay.overlayRef&&this.overlay.overlayRef.updatePosition();}onPositionChange(e){this.preferredPlacement=yo(e),this.updateStyles(),this.cdr.detectChanges();}setOverlayOrigin(e){this.origin=e,this.cdr.markForCheck();}onClickOutside(e){if(!this.nzOverlayClickable)return;let t=_n$1(e);!this.origin.nativeElement.contains(t)&&this.nzTrigger!==null&&this.hide();}updateVisibilityByTitle(){this.isEmpty()&&this.hide();}updateStyles(){this._classMap=s(r$1({},this.transformClassListToMap(this.nzOverlayClassName)),{[`${this._prefix}-placement-${this.preferredPlacement}`]:true});}transformClassListToMap(e){let t={};return (e!==null?e.split(/\s+/):[]).forEach(o=>t[o]=true),t}static \u0275fac=function(t){return new(t||i)};static \u0275dir=eD({type:i,viewQuery:function(t,n){if(t&1&&Eh(lt,5),t&2){let o;WD(o=GD())&&(n.overlay=o.first);}}})}return i})();function ut(i){return i instanceof Er?false:i===""||!Nr(i)}var nt=(()=>{class i extends mt{_animationPrefix="ant-zoom-big-fast";nzTitle=null;nzTitleContext=null;nzColor;_arrowStyleMap={};_contentStyleMap={};zoomAnimationEnter=oc(()=>`${this._animationPrefix}-enter ${this._animationPrefix}-enter-active`);zoomAnimationLeave=oc(()=>`${this._animationPrefix}-leave ${this._animationPrefix}-leave-active`);isEmpty(){return ut(this.nzTitle)}updateStyles(){let e=this.nzColor&&Bl(this.nzColor);this._classMap=s(r$1({},this.transformClassListToMap(this.nzOverlayClassName)),{[`${this._prefix}-placement-${this.preferredPlacement}`]:true,[`${this._prefix}-${this.nzColor}`]:e}),this._contentStyleMap={backgroundColor:this.nzColor&&!e?this.nzColor:null},this._arrowStyleMap={"--antd-arrow-background-color":this.nzColor&&!e?this.nzColor:null};}static \u0275fac=(()=>{let e;return function(n){return (e||(e=Sy(i)))(n||i)}})();static \u0275cmp=ZE({type:i,selectors:[["nz-tooltip"]],exportAs:["nzTooltipComponent"],features:[th],decls:2,vars:4,consts:[["overlay","cdkConnectedOverlay"],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"overlayOutsideClick","detach","positionChange","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","nzArrowPointAtCenter"],[1,"ant-tooltip",3,"nzNoAnimation"],[1,"ant-tooltip-arrow"],[1,"ant-tooltip-content"],[1,"ant-tooltip-inner"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"]],template:function(t,n){t&1&&(rh(0,pt,5,13,"ng-template",1,0,Vw),mh("overlayOutsideClick",function(c){return n.onClickOutside(c)})("detach",function(){return n.hide()})("positionChange",function(c){return n.onPositionChange(c)})),t&2&&lh("cdkConnectedOverlayOrigin",n.origin)("cdkConnectedOverlayOpen",n._visible)("cdkConnectedOverlayPositions",n._positions)("nzArrowPointAtCenter",n.nzArrowPointAtCenter);},dependencies:[vo,Wt,Mn,st,Ee,_o,Gl$1],encapsulation:2})}return i})();var dt=["okBtn"],ft=["cancelBtn"];function zt(i,m){i&1&&uh(0,"div",5);}function ht(i,m){if(i&1&&(tl(0),uh(1,"nz-icon",17),nl()),i&2){let e=m.$implicit;gI(),lh("nzType",e||"exclamation-circle");}}function vt(i,m){if(i&1&&(_i(0,"span",10),rh(1,ht,2,1,"ng-container",16),Jc()),i&2){let e=HD(2);gI(),lh("nzStringTemplateOutlet",e.nzIcon);}}function yt(i,m){if(i&1&&(tl(0),Iw(1),nl()),i&2){let e=HD(2);gI(),rl(" ",e.nzTitle," ");}}function gt(i,m){if(i&1){let e=FD();_i(0,"div",4),oi(function(){Fu(e);let n=HD();return ju(n.zoomAnimationLeave())}),ri(function(){Fu(e);let n=HD();return ju(n.zoomAnimationEnter())}),_D(1,zt,1,0,"div",5),_i(2,"div",6)(3,"div",7)(4,"div")(5,"div",8)(6,"div",9),_D(7,vt,2,1,"span",10),_i(8,"div",11),rh(9,yt,2,1,"ng-container",12),Jc()(),_i(10,"div",13)(11,"button",14,1),mh("click",function(){Fu(e);let n=HD();return ju(n.onCancel())}),$h(13),Pw(14,"nzI18n"),Iw(15),Jc(),_i(16,"button",15,2),mh("click",function(){Fu(e);let n=HD();return ju(n.onConfirm())}),$h(18),Pw(19,"nzI18n"),Iw(20),Jc()()()()()()();}if(i&2){let e=HD();aw(e.nzOverlayStyle),lw(e._classMap),Sh("ant-popover-rtl",e.dir()==="rtl"),lh("cdkTrapFocusAutoCapture",e.nzAutoFocus!==null)("nzNoAnimation",!!e.noAnimation?.nzNoAnimation?.()),gI(),MD(e.nzPopconfirmShowArrow?1:-1),gI(6),MD(e.nzIcon!==null?7:-1),gI(2),lh("nzStringTemplateOutlet",e.nzTitle)("nzStringTemplateOutletContext",e.nzTitleContext),gI(2),lh("nzDanger",e.nzCancelButtonProps()?.nzDanger)("disabled",e.nzCancelButtonProps()?.nzDisabled),ch("cdkFocusInitial",e.nzAutoFocus==="cancel"||null);let t=e.nzCancelText()||Fw(14,22,"Modal.cancelText");gI(4),rl(" ",t," "),gI(),lh("nzType",e.nzOkButtonProps().nzType)("nzDanger",e.nzOkButtonProps().nzDanger)("nzLoading",e.confirmLoading)("disabled",e.nzOkButtonProps().nzDisabled),ch("cdkFocusInitial",e.nzAutoFocus==="ok"||null);let n=e.nzOkText()||Fw(19,24,"Modal.okText");gI(4),rl(" ",n," ");}}var Ct="popconfirm",Cn=(()=>{let i=tt,m,e=[],t=[],n,o=[],c=[];return class he extends i{static{let C=typeof Symbol=="function"&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;m=[Yl()],n=[Yl()],mT(null,null,m,{kind:"field",name:"nzPopconfirmBackdrop",static:false,private:false,access:{has:a=>"nzPopconfirmBackdrop"in a,get:a=>a.nzPopconfirmBackdrop,set:(a,N)=>{a.nzPopconfirmBackdrop=N;}},metadata:C},e,t),mT(null,null,n,{kind:"field",name:"nzAutofocus",static:false,private:false,access:{has:a=>"nzAutofocus"in a,get:a=>a.nzAutofocus,set:(a,N)=>{a.nzAutofocus=N;}},metadata:C},o,c),C&&Object.defineProperty(this,Symbol.metadata,{enumerable:true,configurable:true,writable:true,value:C});}_nzModuleName=Ct;arrowPointAtCenter;title;titleContext=null;directiveTitle;trigger="click";placement="top";origin;mouseEnterDelay;mouseLeaveDelay;overlayClassName;overlayStyle;visible;nzBeforeConfirm;nzIcon;nzCondition=false;nzPopconfirmShowArrow=true;nzPopconfirmBackdrop=yT(this,e,false);nzAutofocus=(yT(this,t),yT(this,o,null));nzOkText=(yT(this,c),q0(null));nzOkType=q0("primary");nzCancelText=q0(null);nzOkButtonProps=q0(null);nzCancelButtonProps=q0(null);nzOkDisabled=q0(false,{transform:K0});nzOkDanger=q0(false,{transform:K0});okButtonProps=Uw(()=>s(r$1({},this.nzOkButtonProps()),{nzType:this.nzOkButtonProps()?.nzType||this.nzOkType()==="danger"?"primary":this.nzOkType(),nzDanger:this.nzOkDanger()||this.nzOkButtonProps()?.nzDanger||this.nzOkType()==="danger",nzDisabled:this.nzOkDisabled()||this.nzOkButtonProps()?.nzDisabled}));cancelButtonProps=Uw(()=>r$1({},this.nzCancelButtonProps()));directiveContent=null;content=null;overlayClickable;visibleChange=new Le$1;nzOnCancel=new Le$1;nzOnConfirm=new Le$1;getProxyPropertyMap(){return r$1({nzOkText:["nzOkText",()=>this.nzOkText],nzCancelText:["nzCancelText",()=>this.nzCancelText],nzOkButtonProps:["nzOkButtonProps",()=>this.okButtonProps],nzCancelButtonProps:["nzCancelButtonProps",()=>this.cancelButtonProps],nzBeforeConfirm:["nzBeforeConfirm",()=>this.nzBeforeConfirm],nzCondition:["nzCondition",()=>this.nzCondition],nzIcon:["nzIcon",()=>this.nzIcon],nzPopconfirmShowArrow:["nzPopconfirmShowArrow",()=>this.nzPopconfirmShowArrow],nzPopconfirmBackdrop:["nzBackdrop",()=>this.nzPopconfirmBackdrop],nzPopconfirmContext:["nzTitleContext",()=>this.titleContext],nzAutoFocus:["nzAutoFocus",()=>this.nzAutofocus]},super.getProxyPropertyMap())}constructor(){super(it);}createComponent(){super.createComponent(),this.component.nzOnCancel.pipe(ue(this.destroyRef)).subscribe(()=>{this.nzOnCancel.emit();}),this.component.nzOnConfirm.pipe(ue(this.destroyRef)).subscribe(()=>{this.nzOnConfirm.emit();});}static \u0275fac=function(a){return new(a||he)};static \u0275dir=eD({type:he,selectors:[["","nz-popconfirm",""]],hostVars:2,hostBindings:function(a,N){a&2&&Sh("ant-popover-open",N.visible);},inputs:{arrowPointAtCenter:[2,"nzPopconfirmArrowPointAtCenter","arrowPointAtCenter",K0],title:[0,"nzPopconfirmTitle","title"],titleContext:[0,"nzPopconfirmTitleContext","titleContext"],directiveTitle:[0,"nz-popconfirm","directiveTitle"],trigger:[0,"nzPopconfirmTrigger","trigger"],placement:[0,"nzPopconfirmPlacement","placement"],origin:[0,"nzPopconfirmOrigin","origin"],mouseEnterDelay:[0,"nzPopconfirmMouseEnterDelay","mouseEnterDelay"],mouseLeaveDelay:[0,"nzPopconfirmMouseLeaveDelay","mouseLeaveDelay"],overlayClassName:[0,"nzPopconfirmOverlayClassName","overlayClassName"],overlayStyle:[0,"nzPopconfirmOverlayStyle","overlayStyle"],visible:[0,"nzPopconfirmVisible","visible"],nzBeforeConfirm:"nzBeforeConfirm",nzIcon:"nzIcon",nzCondition:[2,"nzCondition","nzCondition",K0],nzPopconfirmShowArrow:[2,"nzPopconfirmShowArrow","nzPopconfirmShowArrow",K0],nzPopconfirmBackdrop:"nzPopconfirmBackdrop",nzAutofocus:"nzAutofocus",nzOkText:[1,"nzOkText"],nzOkType:[1,"nzOkType"],nzCancelText:[1,"nzCancelText"],nzOkButtonProps:[1,"nzOkButtonProps"],nzCancelButtonProps:[1,"nzCancelButtonProps"],nzOkDisabled:[1,"nzOkDisabled"],nzOkDanger:[1,"nzOkDanger"]},outputs:{visibleChange:"nzPopconfirmVisibleChange",nzOnCancel:"nzOnCancel",nzOnConfirm:"nzOnConfirm"},exportAs:["nzPopconfirm"],features:[th]})}})(),it=(()=>{class i extends nt{_animationPrefix="ant-zoom-big";okBtn;cancelBtn;nzCondition=false;nzPopconfirmShowArrow=true;nzIcon;nzAutoFocus=null;nzBeforeConfirm=null;nzOkText=qo(null);nzCancelText=qo(null);nzOkButtonProps=qo({nzType:"primary"});nzCancelButtonProps=qo(null);nzOnCancel=new re;nzOnConfirm=new re;_trigger="click";elementFocusedBeforeModalWasOpened=null;document=C(Uo);_prefix="ant-popover";confirmLoading=false;constructor(){super(),this.destroyRef.onDestroy(()=>{this.nzVisibleChange.complete();});}show(){this.nzCondition?this.onConfirm():(this.capturePreviouslyFocusedElement(),super.show());}hide(){super.hide(),this.restoreFocus();}handleConfirm(){this.nzOnConfirm.next(),super.hide();}onCancel(){this.nzOnCancel.next(),super.hide();}onConfirm(){this.nzBeforeConfirm?(this.confirmLoading=true,this.cdr.markForCheck(),Q0(this.nzBeforeConfirm()).pipe(em(),sn(Boolean),Gl(()=>{this.confirmLoading=false,this.cdr.markForCheck();})).subscribe(()=>this.handleConfirm())):this.handleConfirm();}capturePreviouslyFocusedElement(){this.document&&(this.elementFocusedBeforeModalWasOpened=this.document.activeElement);}restoreFocus(){this.elementFocusedBeforeModalWasOpened?.focus();}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=ZE({type:i,selectors:[["nz-popconfirm"]],viewQuery:function(t,n){if(t&1&&Eh(dt,5,_r)(ft,5,_r),t&2){let o;WD(o=GD())&&(n.okBtn=o),WD(o=GD())&&(n.cancelBtn=o);}},exportAs:["nzPopconfirmComponent"],features:[th],decls:2,vars:5,consts:[["overlay","cdkConnectedOverlay"],["cancelBtn",""],["okBtn",""],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"overlayOutsideClick","detach","positionChange","cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayOpen","nzArrowPointAtCenter"],["cdkTrapFocus","",1,"ant-popover",3,"cdkTrapFocusAutoCapture","nzNoAnimation"],[1,"ant-popover-arrow"],[1,"ant-popover-content"],[1,"ant-popover-inner"],[1,"ant-popover-inner-content"],[1,"ant-popover-message"],[1,"ant-popover-message-icon"],[1,"ant-popover-message-title"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[1,"ant-popover-buttons"],["nz-button","","nzSize","small",3,"click","nzDanger","disabled"],["nz-button","","nzSize","small",3,"click","nzType","nzDanger","nzLoading","disabled"],[4,"nzStringTemplateOutlet"],["nzTheme","fill",3,"nzType"]],template:function(t,n){t&1&&(rh(0,gt,21,26,"ng-template",3,0,Vw),mh("overlayOutsideClick",function(c){return n.onClickOutside(c)})("detach",function(){return n.hide()})("positionChange",function(c){return n.onPositionChange(c)})),t&2&&lh("cdkConnectedOverlayHasBackdrop",n.nzBackdrop)("cdkConnectedOverlayOrigin",n.origin)("cdkConnectedOverlayPositions",n._positions)("cdkConnectedOverlayOpen",n._visible)("nzArrowPointAtCenter",n.nzArrowPointAtCenter);},dependencies:[vo,Wt,_o,Gl$1,zh,Fh,Mn,st,Ee,Ah,Th,pf,bd,sp,fp,$b,Zb],encapsulation:2})}return i})(),_n=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=KE({type:i});static \u0275inj=fu({imports:[it]})}return i})();export{Cn as C,_n as _};
|
|
1
|
+
import {a7 as KE,a8 as fu,aA as mT,aB as yT,a5 as q0,av as K0,U as Uw,s,r as r$1,ae as Le$1,u as ue,bR as eD,c3 as th,al as Sh,q as qo,ap as re,C,c4 as Uo,c5 as Q0,c6 as em,ar as sn,c7 as Gl,Z as ZE,c8 as vo,c9 as Wt,ca as _o,cb as Gl$1,cc as zh,cd as Fh,c0 as Mn,as as st,at as Ee,a3 as Ah,a4 as Th,Y as pf,a0 as bd,a1 as sp,a2 as fp,ce as $b,cf as Zb,aw as rh,m as mh,w as lh,ax as Eh,bf as _r,an as WD,ao as GD,aM as Yl,cg as oc,bW as Bl,ch as Sy,G as FD,j as _i,ci as oi,cj as ri,l as _D,J as Jc,ck as $h,P as Pw,I as Iw,H as HD,aQ as aw,aG as lw,o as gI,M as MD,D as ch,p as Fw,z as rl,cl as Vi,bV as XI,be as E3,b as at,cm as Wm,cn as S2,co as Kg,cp as Yg,cq as kg,cr as kr,cs as xy,ai as ly,ab as Oe,a9 as Z0,ct as Sr,cu as Cr,cv as me,cw as Rg,cx as yo,cy as _n$1,ac as Er,aD as Nr,n as uh,aJ as tl,aK as nl,ad as jr,L as Lh,aT as Vw,O as Fu,Q as ju}from'./main-SI5AKDMC.js';var lt=["overlay"];function ct(i,m){if(i&1&&(tl(0),Iw(1),nl()),i&2){let e=HD(2);gI(),Lh(e.nzTitle);}}function pt(i,m){if(i&1){let e=FD();_i(0,"div",2),oi(function(){Fu(e);let n=HD();return ju(n.zoomAnimationLeave())}),ri(function(){Fu(e);let n=HD();return ju(n.zoomAnimationEnter())}),uh(1,"div",3),_i(2,"div",4)(3,"div",5),rh(4,ct,2,1,"ng-container",6),Jc()()();}if(i&2){let e=HD();aw(e.nzOverlayStyle),lw(e._classMap),Sh("ant-tooltip-rtl",e.dir()==="rtl"),lh("nzNoAnimation",!!e.noAnimation?.nzNoAnimation?.()),gI(),aw(e._arrowStyleMap),gI(2),aw(e._contentStyleMap),gI(),lh("nzStringTemplateOutlet",e.nzTitle)("nzStringTemplateOutletContext",e.nzTitleContext);}}var tt=(()=>{class i{componentType;elementRef=C(_r);hostView=C(Vi);renderer=C(XI);noAnimation=C(Mn,{host:true,optional:true});nzConfigService=C(E3);destroyRef=C(at);platformId=C(Wm);config;visibleChange=new Le$1;get _title(){return this.title||this.directiveTitle||null}get _content(){return this.content||this.directiveContent||null}get _trigger(){return typeof this.trigger<"u"?this.trigger:"hover"}get _placement(){let e=this.placement;return Array.isArray(e)&&e.length>0?e:typeof e=="string"&&e?[e]:["top"]}get _visible(){return (typeof this.visible<"u"?this.visible:this.internalVisible)||false}get _mouseEnterDelay(){return this.mouseEnterDelay||.15}get _mouseLeaveDelay(){return this.mouseLeaveDelay||.1}get _overlayClassName(){return this.overlayClassName||null}get _overlayStyle(){return this.overlayStyle||null}get _overlayClickable(){return this.overlayClickable??true}internalVisible=false;getProxyPropertyMap(){return {noAnimation:["noAnimation",()=>!!this.noAnimation]}}component;destroy$=new re;triggerDisposables=[];delayTimer;constructor(e){this.componentType=e,this.destroyRef.onDestroy(()=>{this.clearTogglingTimer(),this.removeTriggerListeners();});}ngAfterViewInit(){S2(this.platformId)&&(this.createComponent(),this.registerTriggers());}ngOnChanges(e){let{trigger:t}=e;t&&!t.isFirstChange()&&this.registerTriggers(),this.component&&this.updatePropertiesByChanges(e);}show(){this.component?.show();}hide(){this.component?.hide();}updatePosition(){this.component&&this.component.updatePosition();}createComponent(){let e=this.hostView.createComponent(this.componentType);this.component=e.instance,this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),e.location.nativeElement),this.component.setOverlayOrigin(this.origin||this.elementRef),this.initProperties();let t=this.component.nzVisibleChange.pipe(Kg());t.pipe(ue(this.destroyRef)).subscribe(n=>{this.internalVisible=n,this.visibleChange.emit(n);}),t.pipe(sn(Boolean),Yg(0,kg),sn(()=>!!this.component?.overlay?.overlayRef),ue(this.destroyRef)).subscribe(()=>{this.component?.updatePosition();});}registerTriggers(){let e=this.elementRef.nativeElement,t=this.trigger;if(this.removeTriggerListeners(),t==="hover"){let n;this.triggerDisposables.push(this.renderer.listen(e,"mouseenter",()=>{this.delayEnterLeave(true,true,this._mouseEnterDelay);})),this.triggerDisposables.push(this.renderer.listen(e,"mouseleave",()=>{this.delayEnterLeave(true,false,this._mouseLeaveDelay),this.component?.overlay.overlayRef&&!n&&(n=this.component.overlay.overlayRef.overlayElement,this.triggerDisposables.push(this.renderer.listen(n,"mouseenter",()=>{this.delayEnterLeave(false,true,this._mouseEnterDelay);})),this.triggerDisposables.push(this.renderer.listen(n,"mouseleave",()=>{this.delayEnterLeave(false,false,this._mouseLeaveDelay);})));}));}else t==="focus"?(this.triggerDisposables.push(this.renderer.listen(e,"focusin",()=>this.show())),this.triggerDisposables.push(this.renderer.listen(e,"focusout",()=>this.hide()))):t==="click"&&this.triggerDisposables.push(this.renderer.listen(e,"click",n=>{n.preventDefault(),this.show();}));}updatePropertiesByChanges(e){this.updatePropertiesByKeys(Object.keys(e));}updatePropertiesByKeys(e){let t=r$1({title:["nzTitle",()=>this._title],directiveTitle:["nzTitle",()=>this._title],content:["nzContent",()=>this._content],directiveContent:["nzContent",()=>this._content],trigger:["nzTrigger",()=>this._trigger],placement:["nzPlacement",()=>this._placement],visible:["nzVisible",()=>this._visible],mouseEnterDelay:["nzMouseEnterDelay",()=>this._mouseEnterDelay],mouseLeaveDelay:["nzMouseLeaveDelay",()=>this._mouseLeaveDelay],overlayClassName:["nzOverlayClassName",()=>this._overlayClassName],overlayStyle:["nzOverlayStyle",()=>this._overlayStyle],overlayClickable:["nzOverlayClickable",()=>this._overlayClickable],arrowPointAtCenter:["nzArrowPointAtCenter",()=>this.arrowPointAtCenter]},this.getProxyPropertyMap());(e||Object.keys(t).filter(n=>!n.startsWith("directive"))).forEach(n=>{if(t[n]){let[o,c]=t[n];this.updateComponentValue(o,c());}}),this.component?.updateByDirective();}initProperties(){this.updatePropertiesByKeys();}updateComponentValue(e,t){typeof t<"u"&&(this.component[e]=t);}delayEnterLeave(e,t,n=-1){this.delayTimer?this.clearTogglingTimer():n>0?this.delayTimer=setTimeout(()=>{this.delayTimer=void 0,t?this.show():this.hide();},n*1e3):t&&e?this.show():this.hide();}removeTriggerListeners(){this.triggerDisposables.forEach(e=>e()),this.triggerDisposables.length=0;}clearTogglingTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=void 0);}static \u0275fac=function(t){return new(t||i)(kr(xy))};static \u0275dir=eD({type:i,features:[ly]})}return i})(),mt=(()=>{class i{noAnimation=C(Mn,{host:true,optional:true});dir=C(Oe).valueSignal;cdr=C(Z0);elementRef=C(_r);destroyRef=C(at);overlay;nzTitle=null;nzContent=null;nzArrowPointAtCenter=false;nzOverlayClassName;nzOverlayStyle={};nzOverlayClickable=true;nzBackdrop=false;nzMouseEnterDelay;nzMouseLeaveDelay;nzVisibleChange=new re;set nzVisible(e){let t=jr(e);this._visible!==t&&(this._visible=t,this.nzVisibleChange.next(t));}get nzVisible(){return this._visible}_visible=false;set nzTrigger(e){this._trigger=e;}get nzTrigger(){return this._trigger}_trigger="hover";set nzPlacement(e){let t=e.map(n=>Sr(me[n],Cr[n]));this._positions=[...t,...Rg];}preferredPlacement="top";origin;_classMap={};_prefix="ant-tooltip";_positions=[...Rg];constructor(){this.destroyRef.onDestroy(()=>{this.nzVisibleChange.complete();});}show(){this.nzVisible||(this.isEmpty()||(this.nzVisible=true,this.nzVisibleChange.next(true),this.cdr.detectChanges()),this.origin&&this.overlay&&this.overlay.overlayRef&&this.overlay.overlayRef.getDirection()==="rtl"&&this.overlay.overlayRef.setDirection("ltr"));}hide(){this.nzVisible&&(this.nzVisible=false,this.nzVisibleChange.next(false),this.cdr.detectChanges());}updateByDirective(){this.updateStyles(),this.cdr.detectChanges(),Promise.resolve().then(()=>{this.updatePosition(),this.updateVisibilityByTitle();});}updatePosition(){this.origin&&this.overlay&&this.overlay.overlayRef&&this.overlay.overlayRef.updatePosition();}onPositionChange(e){this.preferredPlacement=yo(e),this.updateStyles(),this.cdr.detectChanges();}setOverlayOrigin(e){this.origin=e,this.cdr.markForCheck();}onClickOutside(e){if(!this.nzOverlayClickable)return;let t=_n$1(e);!this.origin.nativeElement.contains(t)&&this.nzTrigger!==null&&this.hide();}updateVisibilityByTitle(){this.isEmpty()&&this.hide();}updateStyles(){this._classMap=s(r$1({},this.transformClassListToMap(this.nzOverlayClassName)),{[`${this._prefix}-placement-${this.preferredPlacement}`]:true});}transformClassListToMap(e){let t={};return (e!==null?e.split(/\s+/):[]).forEach(o=>t[o]=true),t}static \u0275fac=function(t){return new(t||i)};static \u0275dir=eD({type:i,viewQuery:function(t,n){if(t&1&&Eh(lt,5),t&2){let o;WD(o=GD())&&(n.overlay=o.first);}}})}return i})();function ut(i){return i instanceof Er?false:i===""||!Nr(i)}var nt=(()=>{class i extends mt{_animationPrefix="ant-zoom-big-fast";nzTitle=null;nzTitleContext=null;nzColor;_arrowStyleMap={};_contentStyleMap={};zoomAnimationEnter=oc(()=>`${this._animationPrefix}-enter ${this._animationPrefix}-enter-active`);zoomAnimationLeave=oc(()=>`${this._animationPrefix}-leave ${this._animationPrefix}-leave-active`);isEmpty(){return ut(this.nzTitle)}updateStyles(){let e=this.nzColor&&Bl(this.nzColor);this._classMap=s(r$1({},this.transformClassListToMap(this.nzOverlayClassName)),{[`${this._prefix}-placement-${this.preferredPlacement}`]:true,[`${this._prefix}-${this.nzColor}`]:e}),this._contentStyleMap={backgroundColor:this.nzColor&&!e?this.nzColor:null},this._arrowStyleMap={"--antd-arrow-background-color":this.nzColor&&!e?this.nzColor:null};}static \u0275fac=(()=>{let e;return function(n){return (e||(e=Sy(i)))(n||i)}})();static \u0275cmp=ZE({type:i,selectors:[["nz-tooltip"]],exportAs:["nzTooltipComponent"],features:[th],decls:2,vars:4,consts:[["overlay","cdkConnectedOverlay"],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"overlayOutsideClick","detach","positionChange","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","nzArrowPointAtCenter"],[1,"ant-tooltip",3,"nzNoAnimation"],[1,"ant-tooltip-arrow"],[1,"ant-tooltip-content"],[1,"ant-tooltip-inner"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"]],template:function(t,n){t&1&&(rh(0,pt,5,13,"ng-template",1,0,Vw),mh("overlayOutsideClick",function(c){return n.onClickOutside(c)})("detach",function(){return n.hide()})("positionChange",function(c){return n.onPositionChange(c)})),t&2&&lh("cdkConnectedOverlayOrigin",n.origin)("cdkConnectedOverlayOpen",n._visible)("cdkConnectedOverlayPositions",n._positions)("nzArrowPointAtCenter",n.nzArrowPointAtCenter);},dependencies:[vo,Wt,Mn,st,Ee,_o,Gl$1],encapsulation:2})}return i})();var dt=["okBtn"],ft=["cancelBtn"];function zt(i,m){i&1&&uh(0,"div",5);}function ht(i,m){if(i&1&&(tl(0),uh(1,"nz-icon",17),nl()),i&2){let e=m.$implicit;gI(),lh("nzType",e||"exclamation-circle");}}function vt(i,m){if(i&1&&(_i(0,"span",10),rh(1,ht,2,1,"ng-container",16),Jc()),i&2){let e=HD(2);gI(),lh("nzStringTemplateOutlet",e.nzIcon);}}function yt(i,m){if(i&1&&(tl(0),Iw(1),nl()),i&2){let e=HD(2);gI(),rl(" ",e.nzTitle," ");}}function gt(i,m){if(i&1){let e=FD();_i(0,"div",4),oi(function(){Fu(e);let n=HD();return ju(n.zoomAnimationLeave())}),ri(function(){Fu(e);let n=HD();return ju(n.zoomAnimationEnter())}),_D(1,zt,1,0,"div",5),_i(2,"div",6)(3,"div",7)(4,"div")(5,"div",8)(6,"div",9),_D(7,vt,2,1,"span",10),_i(8,"div",11),rh(9,yt,2,1,"ng-container",12),Jc()(),_i(10,"div",13)(11,"button",14,1),mh("click",function(){Fu(e);let n=HD();return ju(n.onCancel())}),$h(13),Pw(14,"nzI18n"),Iw(15),Jc(),_i(16,"button",15,2),mh("click",function(){Fu(e);let n=HD();return ju(n.onConfirm())}),$h(18),Pw(19,"nzI18n"),Iw(20),Jc()()()()()()();}if(i&2){let e=HD();aw(e.nzOverlayStyle),lw(e._classMap),Sh("ant-popover-rtl",e.dir()==="rtl"),lh("cdkTrapFocusAutoCapture",e.nzAutoFocus!==null)("nzNoAnimation",!!e.noAnimation?.nzNoAnimation?.()),gI(),MD(e.nzPopconfirmShowArrow?1:-1),gI(6),MD(e.nzIcon!==null?7:-1),gI(2),lh("nzStringTemplateOutlet",e.nzTitle)("nzStringTemplateOutletContext",e.nzTitleContext),gI(2),lh("nzDanger",e.nzCancelButtonProps()?.nzDanger)("disabled",e.nzCancelButtonProps()?.nzDisabled),ch("cdkFocusInitial",e.nzAutoFocus==="cancel"||null);let t=e.nzCancelText()||Fw(14,22,"Modal.cancelText");gI(4),rl(" ",t," "),gI(),lh("nzType",e.nzOkButtonProps().nzType)("nzDanger",e.nzOkButtonProps().nzDanger)("nzLoading",e.confirmLoading)("disabled",e.nzOkButtonProps().nzDisabled),ch("cdkFocusInitial",e.nzAutoFocus==="ok"||null);let n=e.nzOkText()||Fw(19,24,"Modal.okText");gI(4),rl(" ",n," ");}}var Ct="popconfirm",Cn=(()=>{let i=tt,m,e=[],t=[],n,o=[],c=[];return class he extends i{static{let C=typeof Symbol=="function"&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;m=[Yl()],n=[Yl()],mT(null,null,m,{kind:"field",name:"nzPopconfirmBackdrop",static:false,private:false,access:{has:a=>"nzPopconfirmBackdrop"in a,get:a=>a.nzPopconfirmBackdrop,set:(a,N)=>{a.nzPopconfirmBackdrop=N;}},metadata:C},e,t),mT(null,null,n,{kind:"field",name:"nzAutofocus",static:false,private:false,access:{has:a=>"nzAutofocus"in a,get:a=>a.nzAutofocus,set:(a,N)=>{a.nzAutofocus=N;}},metadata:C},o,c),C&&Object.defineProperty(this,Symbol.metadata,{enumerable:true,configurable:true,writable:true,value:C});}_nzModuleName=Ct;arrowPointAtCenter;title;titleContext=null;directiveTitle;trigger="click";placement="top";origin;mouseEnterDelay;mouseLeaveDelay;overlayClassName;overlayStyle;visible;nzBeforeConfirm;nzIcon;nzCondition=false;nzPopconfirmShowArrow=true;nzPopconfirmBackdrop=yT(this,e,false);nzAutofocus=(yT(this,t),yT(this,o,null));nzOkText=(yT(this,c),q0(null));nzOkType=q0("primary");nzCancelText=q0(null);nzOkButtonProps=q0(null);nzCancelButtonProps=q0(null);nzOkDisabled=q0(false,{transform:K0});nzOkDanger=q0(false,{transform:K0});okButtonProps=Uw(()=>s(r$1({},this.nzOkButtonProps()),{nzType:this.nzOkButtonProps()?.nzType||this.nzOkType()==="danger"?"primary":this.nzOkType(),nzDanger:this.nzOkDanger()||this.nzOkButtonProps()?.nzDanger||this.nzOkType()==="danger",nzDisabled:this.nzOkDisabled()||this.nzOkButtonProps()?.nzDisabled}));cancelButtonProps=Uw(()=>r$1({},this.nzCancelButtonProps()));directiveContent=null;content=null;overlayClickable;visibleChange=new Le$1;nzOnCancel=new Le$1;nzOnConfirm=new Le$1;getProxyPropertyMap(){return r$1({nzOkText:["nzOkText",()=>this.nzOkText],nzCancelText:["nzCancelText",()=>this.nzCancelText],nzOkButtonProps:["nzOkButtonProps",()=>this.okButtonProps],nzCancelButtonProps:["nzCancelButtonProps",()=>this.cancelButtonProps],nzBeforeConfirm:["nzBeforeConfirm",()=>this.nzBeforeConfirm],nzCondition:["nzCondition",()=>this.nzCondition],nzIcon:["nzIcon",()=>this.nzIcon],nzPopconfirmShowArrow:["nzPopconfirmShowArrow",()=>this.nzPopconfirmShowArrow],nzPopconfirmBackdrop:["nzBackdrop",()=>this.nzPopconfirmBackdrop],nzPopconfirmContext:["nzTitleContext",()=>this.titleContext],nzAutoFocus:["nzAutoFocus",()=>this.nzAutofocus]},super.getProxyPropertyMap())}constructor(){super(it);}createComponent(){super.createComponent(),this.component.nzOnCancel.pipe(ue(this.destroyRef)).subscribe(()=>{this.nzOnCancel.emit();}),this.component.nzOnConfirm.pipe(ue(this.destroyRef)).subscribe(()=>{this.nzOnConfirm.emit();});}static \u0275fac=function(a){return new(a||he)};static \u0275dir=eD({type:he,selectors:[["","nz-popconfirm",""]],hostVars:2,hostBindings:function(a,N){a&2&&Sh("ant-popover-open",N.visible);},inputs:{arrowPointAtCenter:[2,"nzPopconfirmArrowPointAtCenter","arrowPointAtCenter",K0],title:[0,"nzPopconfirmTitle","title"],titleContext:[0,"nzPopconfirmTitleContext","titleContext"],directiveTitle:[0,"nz-popconfirm","directiveTitle"],trigger:[0,"nzPopconfirmTrigger","trigger"],placement:[0,"nzPopconfirmPlacement","placement"],origin:[0,"nzPopconfirmOrigin","origin"],mouseEnterDelay:[0,"nzPopconfirmMouseEnterDelay","mouseEnterDelay"],mouseLeaveDelay:[0,"nzPopconfirmMouseLeaveDelay","mouseLeaveDelay"],overlayClassName:[0,"nzPopconfirmOverlayClassName","overlayClassName"],overlayStyle:[0,"nzPopconfirmOverlayStyle","overlayStyle"],visible:[0,"nzPopconfirmVisible","visible"],nzBeforeConfirm:"nzBeforeConfirm",nzIcon:"nzIcon",nzCondition:[2,"nzCondition","nzCondition",K0],nzPopconfirmShowArrow:[2,"nzPopconfirmShowArrow","nzPopconfirmShowArrow",K0],nzPopconfirmBackdrop:"nzPopconfirmBackdrop",nzAutofocus:"nzAutofocus",nzOkText:[1,"nzOkText"],nzOkType:[1,"nzOkType"],nzCancelText:[1,"nzCancelText"],nzOkButtonProps:[1,"nzOkButtonProps"],nzCancelButtonProps:[1,"nzCancelButtonProps"],nzOkDisabled:[1,"nzOkDisabled"],nzOkDanger:[1,"nzOkDanger"]},outputs:{visibleChange:"nzPopconfirmVisibleChange",nzOnCancel:"nzOnCancel",nzOnConfirm:"nzOnConfirm"},exportAs:["nzPopconfirm"],features:[th]})}})(),it=(()=>{class i extends nt{_animationPrefix="ant-zoom-big";okBtn;cancelBtn;nzCondition=false;nzPopconfirmShowArrow=true;nzIcon;nzAutoFocus=null;nzBeforeConfirm=null;nzOkText=qo(null);nzCancelText=qo(null);nzOkButtonProps=qo({nzType:"primary"});nzCancelButtonProps=qo(null);nzOnCancel=new re;nzOnConfirm=new re;_trigger="click";elementFocusedBeforeModalWasOpened=null;document=C(Uo);_prefix="ant-popover";confirmLoading=false;constructor(){super(),this.destroyRef.onDestroy(()=>{this.nzVisibleChange.complete();});}show(){this.nzCondition?this.onConfirm():(this.capturePreviouslyFocusedElement(),super.show());}hide(){super.hide(),this.restoreFocus();}handleConfirm(){this.nzOnConfirm.next(),super.hide();}onCancel(){this.nzOnCancel.next(),super.hide();}onConfirm(){this.nzBeforeConfirm?(this.confirmLoading=true,this.cdr.markForCheck(),Q0(this.nzBeforeConfirm()).pipe(em(),sn(Boolean),Gl(()=>{this.confirmLoading=false,this.cdr.markForCheck();})).subscribe(()=>this.handleConfirm())):this.handleConfirm();}capturePreviouslyFocusedElement(){this.document&&(this.elementFocusedBeforeModalWasOpened=this.document.activeElement);}restoreFocus(){this.elementFocusedBeforeModalWasOpened?.focus();}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=ZE({type:i,selectors:[["nz-popconfirm"]],viewQuery:function(t,n){if(t&1&&Eh(dt,5,_r)(ft,5,_r),t&2){let o;WD(o=GD())&&(n.okBtn=o),WD(o=GD())&&(n.cancelBtn=o);}},exportAs:["nzPopconfirmComponent"],features:[th],decls:2,vars:5,consts:[["overlay","cdkConnectedOverlay"],["cancelBtn",""],["okBtn",""],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"overlayOutsideClick","detach","positionChange","cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayOpen","nzArrowPointAtCenter"],["cdkTrapFocus","",1,"ant-popover",3,"cdkTrapFocusAutoCapture","nzNoAnimation"],[1,"ant-popover-arrow"],[1,"ant-popover-content"],[1,"ant-popover-inner"],[1,"ant-popover-inner-content"],[1,"ant-popover-message"],[1,"ant-popover-message-icon"],[1,"ant-popover-message-title"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[1,"ant-popover-buttons"],["nz-button","","nzSize","small",3,"click","nzDanger","disabled"],["nz-button","","nzSize","small",3,"click","nzType","nzDanger","nzLoading","disabled"],[4,"nzStringTemplateOutlet"],["nzTheme","fill",3,"nzType"]],template:function(t,n){t&1&&(rh(0,gt,21,26,"ng-template",3,0,Vw),mh("overlayOutsideClick",function(c){return n.onClickOutside(c)})("detach",function(){return n.hide()})("positionChange",function(c){return n.onPositionChange(c)})),t&2&&lh("cdkConnectedOverlayHasBackdrop",n.nzBackdrop)("cdkConnectedOverlayOrigin",n.origin)("cdkConnectedOverlayPositions",n._positions)("cdkConnectedOverlayOpen",n._visible)("nzArrowPointAtCenter",n.nzArrowPointAtCenter);},dependencies:[vo,Wt,_o,Gl$1,zh,Fh,Mn,st,Ee,Ah,Th,pf,bd,sp,fp,$b,Zb],encapsulation:2})}return i})(),_n=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=KE({type:i});static \u0275inj=fu({imports:[it]})}return i})();export{Cn as C,_n as _};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {N as Nt,K as Ke}from'./chunk-
|
|
1
|
+
import {N as Nt,K as Ke}from'./chunk-BCHj6l85.js';import {G as Gn,u as un}from'./chunk-Ysn4Fbgj.js';import {a as ai$1,z}from'./chunk-BIL86kgf.js';import {f}from'./chunk-CZoPJsBm.js';import {L as Lt}from'./chunk-DyiDg8XX.js';import {x,h,b,I,w,T,_,k,E,v,D,H,A as A$1,C as C$1,P,J}from'./chunk-CV-FUe_H.js';import {b as bg,J as J_,p as py,f as fy,M as M_,T as T_}from'./chunk-D3JZ8ur5.js';import {W as W$1,I as I$1}from'./chunk-5xJXPFlv.js';import'./chunk-DAONFRT8.js';import'./chunk-CLM-K-Vg.js';import {C,a as C1,R as J1,$,V as Ve,b as at$1,S as p,q as qo,U as Uw,u as ue,T as id,W as qw,c as bi$1,Z as ZE,d as $8,X as M5,v as v3,Y as pf,a0 as bd,a1 as sp$1,a2 as fp$1,a3 as Ah,a4 as Th,K as Kt,j as _i$1,l as _D,J as Jc$1,o as gI,M as MD,a5 as q0,a6 as U0,s,r as r$1,I as Iw,P as Pw,L as Lh,p as Fw,H as HD,G as FD,m as mh,n as uh,w as lh,D as ch,a7 as KE,a8 as fu,a9 as Z0,aa as oe$1,ab as Oe,ac as Er$1,ad as jr$1,ae as Le$1,af as H$1,ag as Ql$1,ah as zg,ai as ly,aj as $D,ak as UD,al as Sh,am as Ih,an as WD,ao as GD,ap as re$1,aq as el$1,ar as sn,as as st,at as Ee$1,au as w5,av as K0,aw as rh,ax as Eh,ay as n6,z as rl$1,O as Fu,Q as ju,az as jw,E as Aw,x as xD,B as AD,aA as mT,aB as yT,aC as zt$1,aD as Nr$1,aE as J0,aF as $r$1,aG as lw,aH as QD,aI as kw,aJ as tl$1,aK as nl$1,aL as Fh,aM as Yl$1,t as t$1,aN as Yu,aO as SD,aP as Mh,aQ as aw,aR as xw,aS as v$1,aT as Vw,aU as vv}from'./main-SI5AKDMC.js';var Ds=t=>({$implicit:t});function Ps(t,n){if(t&1&&uh(0,"nz-icon",3),t&2){let e=HD(3);lh("nzType",e.icon);}}function As(t,n){if(t&1&&(tl$1(0),Iw(1),nl$1()),t&2){let e=n.$implicit,i=HD(4);gI(),rl$1(" ",e(i.nzPercent)," ");}}function Ms(t,n){if(t&1&&rh(0,As,2,1,"ng-container",4),t&2){let e=HD(3);lh("nzStringTemplateOutlet",e.formatter)("nzStringTemplateOutletContext",Aw(2,Ds,e.nzPercent));}}function Os(t,n){if(t&1&&(_i$1(0,"span",2),_D(1,Ps,1,1,"nz-icon",3)(2,Ms,1,4,"ng-container"),Jc$1()),t&2){let e=HD(2);gI(),MD((e.status==="exception"||e.status==="success")&&!e.nzFormat?1:2);}}function Ns(t,n){if(t&1&&_D(0,Os,3,1,"span",2),t&2){let e=HD();MD(e.nzShowInfo?0:-1);}}function Ls(t,n){if(t&1&&uh(0,"div",8),t&2){let e=n.$implicit;aw(e);}}function js(t,n){}function $s(t,n){if(t&1&&(_i$1(0,"div",5),xD(1,Ls,1,2,"div",6,SD),rh(3,js,0,0,"ng-template",7),Jc$1()),t&2){let e=HD(2),i=QD(1);gI(),AD(e.steps),gI(2),lh("ngTemplateOutlet",i);}}function Ws(t,n){if(t&1&&uh(0,"div",13),t&2){let e=HD(3);Mh("width",e.nzSuccessPercent,"%")("border-radius",e.nzStrokeLinecap==="round"?"100px":"0")("height",e.strokeWidth,"px");}}function Fs(t,n){}function Bs(t,n){if(t&1&&(_i$1(0,"div",9)(1,"div",10),uh(2,"div",11),_D(3,Ws,1,6,"div",12),Jc$1()(),rh(4,Fs,0,0,"ng-template",7)),t&2){let e=HD(2),i=QD(1);gI(2),Mh("width",e.nzPercent,"%")("border-radius",e.nzStrokeLinecap==="round"?"100px":"0")("background",e.isGradient?null:e.nzStrokeColor)("background-image",e.isGradient?e.lineGradient:null)("height",e.strokeWidth,"px"),gI(),MD(e.nzSuccessPercent||e.nzSuccessPercent===0?3:-1),gI(),lh("ngTemplateOutlet",i);}}function Js(t,n){if(t&1&&(_i$1(0,"div"),_D(1,$s,4,1,"div",5)(2,Bs,5,12),Jc$1()),t&2){let e=HD();gI(),MD(e.isSteps?1:2);}}function Vs(t,n){if(t&1&&(Yu(),uh(0,"stop")),t&2){let e=n.$implicit;ch("offset",e.offset)("stop-color",e.color);}}function Gs(t,n){if(t&1&&(Yu(),_i$1(0,"defs")(1,"linearGradient",17),xD(2,Vs,1,2,":svg:stop",null,SD),Jc$1()()),t&2){let e=HD(2);gI(),lh("id","gradient-"+e.gradientId),gI(),AD(e.circleGradient);}}function Us(t,n){if(t&1&&(Yu(),uh(0,"path",18)),t&2){let e=n.$implicit,i=HD(2);aw(e.strokePathStyle),ch("d",i.pathString)("stroke-linecap",i.nzStrokeLinecap)("stroke",e.stroke)("stroke-width",i.nzPercent?i.strokeWidth:0);}}function qs(t,n){}function Hs(t,n){if(t&1&&(_i$1(0,"div",10),Yu(),_i$1(1,"svg",14),_D(2,Gs,4,1,":svg:defs"),uh(3,"path",15),xD(4,Us,1,6,":svg:path",16,SD),Jc$1(),rh(6,qs,0,0,"ng-template",7),Jc$1()),t&2){let e=HD(),i=QD(1);Mh("width",e.nzWidth,"px")("height",e.nzWidth,"px")("font-size",e.nzWidth*.15+6,"px"),Sh("ant-progress-circle-gradient",e.isGradient),gI(2),MD(e.isGradient?2:-1),gI(),aw(e.trailPathStyle),ch("stroke-width",e.strokeWidth)("d",e.pathString),gI(),AD(e.progressCirclePath),gI(2),lh("ngTemplateOutlet",i);}}function Qs(t){return +t.replace("%","")}var sr=t=>{let n=[];return Object.keys(t).forEach(e=>{let i=t[e],o=Qs(e);isNaN(o)||n.push({key:o,value:i});}),n=n.sort((e,i)=>e.key-i.key),n},Ys=t=>sr(t).map(({key:n,value:e})=>({offset:`${n}%`,color:e})),Zs=t=>{let r=t,{from:n="#1890ff",to:e="#1890ff",direction:i="to right"}=r,o=t$1(r,["from","to","direction"]);if(Object.keys(o).length!==0){let a=sr(o).map(({key:l,value:h})=>`${h} ${l}%`).join(", ");return `linear-gradient(${i}, ${a})`}return `linear-gradient(${i}, ${n}, ${e})`},Xs=0,or="progress",Ks=new Map([["success","check"],["exception","close"]]),ea=new Map([["normal","#108ee9"],["exception","#ff5500"],["success","#87d068"]]),ta=t=>`${t}%`,ai=(()=>{let t,n=[],e=[],i,o=[],r=[],a,l=[],h=[],g,v=[],S=[],P,te=[],$=[],se,Re=[],we=[],ye,Ke=[],Je=[];return class si{static{let M=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[Yl$1()],i=[Yl$1()],a=[Yl$1()],g=[Yl$1()],P=[Yl$1()],se=[Yl$1()],ye=[Yl$1()],mT(null,null,t,{kind:"field",name:"nzShowInfo",static:false,private:false,access:{has:b=>"nzShowInfo"in b,get:b=>b.nzShowInfo,set:(b,L)=>{b.nzShowInfo=L;}},metadata:M},n,e),mT(null,null,i,{kind:"field",name:"nzStrokeColor",static:false,private:false,access:{has:b=>"nzStrokeColor"in b,get:b=>b.nzStrokeColor,set:(b,L)=>{b.nzStrokeColor=L;}},metadata:M},o,r),mT(null,null,a,{kind:"field",name:"nzSize",static:false,private:false,access:{has:b=>"nzSize"in b,get:b=>b.nzSize,set:(b,L)=>{b.nzSize=L;}},metadata:M},l,h),mT(null,null,g,{kind:"field",name:"nzStrokeWidth",static:false,private:false,access:{has:b=>"nzStrokeWidth"in b,get:b=>b.nzStrokeWidth,set:(b,L)=>{b.nzStrokeWidth=L;}},metadata:M},v,S),mT(null,null,P,{kind:"field",name:"nzGapDegree",static:false,private:false,access:{has:b=>"nzGapDegree"in b,get:b=>b.nzGapDegree,set:(b,L)=>{b.nzGapDegree=L;}},metadata:M},te,$),mT(null,null,se,{kind:"field",name:"nzGapPosition",static:false,private:false,access:{has:b=>"nzGapPosition"in b,get:b=>b.nzGapPosition,set:(b,L)=>{b.nzGapPosition=L;}},metadata:M},Re,we),mT(null,null,ye,{kind:"field",name:"nzStrokeLinecap",static:false,private:false,access:{has:b=>"nzStrokeLinecap"in b,get:b=>b.nzStrokeLinecap,set:(b,L)=>{b.nzStrokeLinecap=L;}},metadata:M},Ke,Je),M&&Object.defineProperty(this,Symbol.metadata,{enumerable:true,configurable:true,writable:true,value:M});}_nzModuleName=or;cdr=C(Z0);dir=C(Oe).valueSignal;nzShowInfo=yT(this,n,true);nzWidth=(yT(this,e),132);nzStrokeColor=yT(this,o,void 0);nzSize=(yT(this,r),yT(this,l,"default"));nzFormat=yT(this,h);nzSuccessPercent;nzPercent=0;nzStrokeWidth=yT(this,v,void 0);nzGapDegree=(yT(this,S),yT(this,te,void 0));nzStatus=yT(this,$);nzType="line";nzGapPosition=yT(this,Re,"top");nzStrokeLinecap=(yT(this,we),yT(this,Ke,"round"));nzSteps=(yT(this,Je),0);steps=[];lineGradient=null;isGradient=false;isSteps=false;gradientId=Xs++;progressCirclePath=[];circleGradient;trailPathStyle=null;pathString;icon;get formatter(){return this.nzFormat||ta}get status(){return this.nzStatus||this.inferredStatus}get strokeWidth(){return this.nzStrokeWidth||(this.nzType==="line"&&this.nzSize!=="small"?8:6)}get isCircleStyle(){return this.nzType==="circle"||this.nzType==="dashboard"}cachedStatus="normal";inferredStatus="normal";constructor(){zt$1(or,()=>{this.updateIcon(),this.setStrokeColor(),this.getCirclePaths();});}ngOnChanges(M){let{nzSteps:b,nzGapPosition:L,nzStrokeLinecap:fe,nzStrokeColor:B,nzGapDegree:de,nzType:De,nzStatus:Pe,nzPercent:ae,nzSuccessPercent:et,nzStrokeWidth:Ae}=M;Pe&&(this.cachedStatus=this.nzStatus||this.cachedStatus),(ae||et)&&(parseInt(this.nzPercent.toString(),10)>=100?(Nr$1(this.nzSuccessPercent)&&this.nzSuccessPercent>=100||this.nzSuccessPercent===void 0)&&(this.inferredStatus="success"):this.inferredStatus=this.cachedStatus),(Pe||ae||et||B)&&this.updateIcon(),B&&this.setStrokeColor(),(L||fe||de||De||ae||B||B)&&this.getCirclePaths(),(ae||b||Ae)&&(this.isSteps=this.nzSteps>0,this.isSteps&&this.getSteps());}updateIcon(){let M=Ks.get(this.status);this.icon=M?M+(this.isCircleStyle?"-o":"-circle-fill"):"";}getSteps(){let M=Math.floor(this.nzSteps*(this.nzPercent/100)),b=this.nzSize==="small"?2:14,L=[];for(let fe=0;fe<this.nzSteps;fe++){let B;fe<=M-1&&(B=this.nzStrokeColor);let de={backgroundColor:`${B}`,width:`${b}px`,height:`${this.strokeWidth}px`};L.push(de);}this.steps=L;}getCirclePaths(){if(!this.isCircleStyle)return;let M=Nr$1(this.nzSuccessPercent)?[this.nzSuccessPercent,this.nzPercent]:[this.nzPercent],b=50-this.strokeWidth/2,L=this.nzGapPosition||(this.nzType==="circle"?"top":"bottom"),fe=Math.PI*2*b,B=this.nzGapDegree||(this.nzType==="circle"?0:75),de=0,De=-b,Pe=0,ae=b*-2;switch(L){case "left":de=-b,De=0,Pe=b*2,ae=0;break;case "right":de=b,De=0,Pe=b*-2,ae=0;break;case "bottom":De=b,ae=b*2;break;}this.pathString=`M 50,50 m ${de},${De}
|
|
2
2
|
a ${b},${b} 0 1 1 ${Pe},${-ae}
|
|
3
3
|
a ${b},${b} 0 1 1 ${-Pe},${ae}`,this.trailPathStyle={strokeDasharray:`${fe-B}px ${fe}px`,strokeDashoffset:`-${B/2}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s"},this.progressCirclePath=M.map((et,Ae)=>{let Dt=M.length===2&&Ae===0;return {stroke:this.isGradient&&!Dt?`url(#gradient-${this.gradientId})`:null,strokePathStyle:{stroke:this.isGradient?null:Dt?ea.get("success"):this.nzStrokeColor,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s",strokeDasharray:`${(et||0)/100*(fe-B)}px ${fe}px`,strokeDashoffset:`-${B/2}px`}}}).reverse();}setStrokeColor(){let M=this.nzStrokeColor,b=this.isGradient=!!M&&typeof M!="string";b&&!this.isCircleStyle?this.lineGradient=Zs(M):b&&this.isCircleStyle?this.circleGradient=Ys(this.nzStrokeColor):(this.lineGradient=null,this.circleGradient=[]);}static \u0275fac=function(b){return new(b||si)};static \u0275cmp=ZE({type:si,selectors:[["nz-progress"]],inputs:{nzShowInfo:"nzShowInfo",nzWidth:"nzWidth",nzStrokeColor:"nzStrokeColor",nzSize:"nzSize",nzFormat:"nzFormat",nzSuccessPercent:[2,"nzSuccessPercent","nzSuccessPercent",$r$1],nzPercent:[2,"nzPercent","nzPercent",J0],nzStrokeWidth:[2,"nzStrokeWidth","nzStrokeWidth",$r$1],nzGapDegree:[2,"nzGapDegree","nzGapDegree",$r$1],nzStatus:"nzStatus",nzType:"nzType",nzGapPosition:"nzGapPosition",nzStrokeLinecap:"nzStrokeLinecap",nzSteps:[2,"nzSteps","nzSteps",J0]},exportAs:["nzProgress"],features:[ly],decls:5,vars:18,consts:[["progressInfoTemplate",""],[1,"ant-progress-inner",3,"width","height","fontSize","ant-progress-circle-gradient"],[1,"ant-progress-text"],[3,"nzType"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[1,"ant-progress-steps-outer"],[1,"ant-progress-steps-item",3,"style"],[3,"ngTemplateOutlet"],[1,"ant-progress-steps-item"],[1,"ant-progress-outer"],[1,"ant-progress-inner"],[1,"ant-progress-bg"],[1,"ant-progress-success-bg",3,"width","border-radius","height"],[1,"ant-progress-success-bg"],["viewBox","0 0 100 100",1,"ant-progress-circle"],["stroke","#f3f3f3","fill-opacity","0",1,"ant-progress-circle-trail"],["fill-opacity","0",1,"ant-progress-circle-path",3,"style"],["x1","100%","y1","0%","x2","0%","y2","0%",3,"id"],["fill-opacity","0",1,"ant-progress-circle-path"]],template:function(b,L){b&1&&(rh(0,Ns,1,1,"ng-template",null,0,Vw),_i$1(2,"div"),_D(3,Js,3,1,"div"),_D(4,Hs,7,14,"div",1),Jc$1()),b&2&&(gI(2),lw("ant-progress ant-progress-status-"+L.status),Sh("ant-progress-line",L.nzType==="line")("ant-progress-small",L.nzSize==="small")("ant-progress-default",L.nzSize==="default")("ant-progress-show-info",L.nzShowInfo)("ant-progress-circle",L.isCircleStyle)("ant-progress-steps",L.isSteps)("ant-progress-rtl",L.dir()==="rtl"),gI(),MD(L.nzType==="line"?3:-1),gI(),MD(L.isCircleStyle?4:-1));},dependencies:[Ah,Th,st,Ee$1,w5],encapsulation:2})}})(),ar=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=KE({type:t});static \u0275inj=fu({imports:[ai]})}return t})();var ia=["processDotTemplate"],oa=["itemContainer"],ra=(t,n,e)=>({$implicit:t,status:n,index:e});function sa(t,n){t&1&&uh(0,"div",3);}function aa(t,n){if(t&1&&(_i$1(0,"div",11),uh(1,"nz-progress",12),Jc$1()),t&2){let e=HD(2);gI(),lh("nzPercent",e.nzPercentage)("nzWidth",e.nzSize==="small"?32:40)("nzFormat",e.nullProcessFormat)("nzStrokeWidth",4);}}function la(t,n){t&1&&(_i$1(0,"span",5),uh(1,"nz-icon",13),Jc$1());}function ca(t,n){t&1&&(_i$1(0,"span",5),uh(1,"nz-icon",14),Jc$1());}function pa(t,n){if(t&1&&(_i$1(0,"span",5),Iw(1),Jc$1()),t&2){let e=HD(2);gI(),rl$1(" ",e.index+1," ");}}function da(t,n){if(t&1&&(tl$1(0),uh(1,"nz-icon",15),nl$1()),t&2){let e=n.$implicit;gI(),lh("nzType",e);}}function ua(t,n){if(t&1&&(_i$1(0,"span",5),rh(1,da,2,1,"ng-container",8),Jc$1()),t&2){let e=HD(2);gI(),lh("nzStringTemplateOutlet",e.nzIcon);}}function ma(t,n){if(t&1&&(_D(0,aa,2,4,"div",11),_D(1,la,2,0,"span",5),_D(2,ca,2,0,"span",5),_D(3,pa,2,1,"span",5),_D(4,ua,2,1,"span",5)),t&2){let e=HD();MD(e.showProgress?0:-1),gI(),MD(e.nzStatus==="finish"&&!e.nzIcon?1:-1),gI(),MD(e.nzStatus==="error"?2:-1),gI(),MD((e.nzStatus==="process"||e.nzStatus==="wait")&&!e.nzIcon?3:-1),gI(),MD(e.nzIcon?4:-1);}}function fa(t,n){t&1&&uh(0,"span",17);}function ha(t,n){}function _a(t,n){if(t&1&&(_i$1(0,"span",5),rh(1,fa,1,0,"ng-template",null,1,Vw)(3,ha,0,0,"ng-template",16),Jc$1()),t&2){let e=QD(2),i=HD();gI(3),lh("ngTemplateOutlet",i.customProcessTemplate||e)("ngTemplateOutletContext",kw(2,ra,e,i.nzStatus,i.index));}}function ga(t,n){if(t&1&&(tl$1(0),Iw(1),nl$1()),t&2){let e=HD();gI(),Lh(e.nzTitle);}}function xa(t,n){if(t&1&&(tl$1(0),Iw(1),nl$1()),t&2){let e=HD(2);gI(),Lh(e.nzSubtitle);}}function ba(t,n){if(t&1&&(_i$1(0,"div",9),rh(1,xa,2,1,"ng-container",8),Jc$1()),t&2){let e=HD();gI(),lh("nzStringTemplateOutlet",e.nzSubtitle);}}function Ca(t,n){if(t&1&&(tl$1(0),Iw(1),nl$1()),t&2){let e=HD();gI(),Lh(e.nzDescription);}}var Sa=["*"],Rn=(()=>{class t{cdr=C(Z0);destroyRef=C(at$1);processDotTemplate;itemContainer;nzTitle;nzSubtitle;nzDescription;nzDisabled=false;nzPercentage=null;nzSize="default";get nzStatus(){return this._status}set nzStatus(e){this._status=e,this.isCustomStatus=true;}isCustomStatus=false;_status="wait";get nzIcon(){return this._icon}set nzIcon(e){e instanceof Er$1||(this.oldAPIIcon=typeof e=="string"&&e.indexOf("anticon")>-1),this._icon=e;}oldAPIIcon=true;_icon;customProcessTemplate;direction="horizontal";index=0;last=false;outStatus="process";showProcessDot=false;clickable=false;clickOutsideAngular$=new re$1;nullProcessFormat=()=>null;get showProgress(){return this.nzPercentage!==null&&!this.nzIcon&&this.nzStatus==="process"&&this.nzPercentage>=0&&this.nzPercentage<=100}get currentIndex(){return this._currentIndex}set currentIndex(e){this._currentIndex=e,this.isCustomStatus||(this._status=e>this.index?"finish":e===this.index?this.outStatus||"":"wait");}_currentIndex=0;ngOnInit(){el$1(this.itemContainer.nativeElement,"click").pipe(sn(()=>this.clickable&&this.currentIndex!==this.index&&!this.nzDisabled),ue(this.destroyRef)).subscribe(()=>{this.clickOutsideAngular$.next(this.index);});}enable(){this.nzDisabled=false,this.cdr.markForCheck();}disable(){this.nzDisabled=true,this.cdr.markForCheck();}markForCheck(){this.cdr.markForCheck();}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=ZE({type:t,selectors:[["nz-step"]],viewQuery:function(i,o){if(i&1&&Eh(ia,5)(oa,7),i&2){let r;WD(r=GD())&&(o.processDotTemplate=r.first),WD(r=GD())&&(o.itemContainer=r.first);}},hostAttrs:[1,"ant-steps-item"],hostVars:16,hostBindings:function(i,o){i&2&&Sh("ant-steps-item-wait",o.nzStatus==="wait")("ant-steps-item-process",o.nzStatus==="process")("ant-steps-item-finish",o.nzStatus==="finish")("ant-steps-item-error",o.nzStatus==="error")("ant-steps-item-active",o.currentIndex===o.index)("ant-steps-item-disabled",o.nzDisabled)("ant-steps-item-custom",!!o.nzIcon)("ant-steps-next-error",o.outStatus==="error"&&o.currentIndex===o.index+1);},inputs:{nzTitle:"nzTitle",nzSubtitle:"nzSubtitle",nzDescription:"nzDescription",nzDisabled:[2,"nzDisabled","nzDisabled",K0],nzPercentage:"nzPercentage",nzSize:"nzSize",nzStatus:"nzStatus",nzIcon:"nzIcon"},exportAs:["nzStep"],decls:12,vars:8,consts:[["itemContainer",""],["processDotTemplate",""],[1,"ant-steps-item-container",3,"tabindex"],[1,"ant-steps-item-tail"],[1,"ant-steps-item-icon"],[1,"ant-steps-icon"],[1,"ant-steps-item-content"],[1,"ant-steps-item-title"],[4,"nzStringTemplateOutlet"],[1,"ant-steps-item-subtitle"],[1,"ant-steps-item-description"],[1,"ant-steps-progress-icon"],["nzType","circle",3,"nzPercent","nzWidth","nzFormat","nzStrokeWidth"],["nzType","check"],["nzType","close"],[3,"nzType"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-steps-icon-dot"]],template:function(i,o){i&1&&(_i$1(0,"div",2,0),_D(2,sa,1,0,"div",3),_i$1(3,"div",4),_D(4,ma,5,5),_D(5,_a,4,6,"span",5),Jc$1(),_i$1(6,"div",6)(7,"div",7),rh(8,ga,2,1,"ng-container",8),_D(9,ba,2,1,"div",9),Jc$1(),_i$1(10,"div",10),rh(11,Ca,2,1,"ng-container",8),Jc$1()()()),i&2&&(lh("tabindex",o.clickable&&!o.nzDisabled?0:null),ch("role",o.clickable&&!o.nzDisabled?"button":null),gI(2),MD(o.last?-1:2),gI(2),MD(o.showProcessDot?-1:4),gI(),MD(o.showProcessDot?5:-1),gI(3),lh("nzStringTemplateOutlet",o.nzTitle),gI(),MD(o.nzSubtitle?9:-1),gI(2),lh("nzStringTemplateOutlet",o.nzDescription));},dependencies:[ar,ai,Ah,Th,st,Ee$1,w5],encapsulation:2})}return t})(),lr=(()=>{class t{static ngAcceptInputType_nzProgressDot;cdr=C(Z0);ngZone=C(oe$1);dir=C(Oe).valueSignal;destroyRef=C(at$1);steps;nzCurrent=0;nzDirection="horizontal";nzLabelPlacement="horizontal";nzType="default";nzSize="default";nzStartIndex=0;nzStatus="process";set nzProgressDot(e){e instanceof Er$1?(this.showProcessDot=true,this.customProcessDotTemplate=e):this.showProcessDot=jr$1(e),this.updateChildrenSteps();}nzIndexChange=new Le$1;indexChangeSubscription=H$1.EMPTY;showProcessDot=false;showProgress=false;customProcessDotTemplate;ngOnChanges(e){let{nzStartIndex:i,nzDirection:o,nzStatus:r,nzCurrent:a,nzSize:l}=e;(i||o||r||a||l)&&this.updateChildrenSteps();}ngOnInit(){this.updateChildrenSteps();}ngAfterContentInit(){this.steps&&this.steps.changes.pipe(Ql$1(null),ue(this.destroyRef)).subscribe(()=>{this.updateHostProgressClass(),this.updateChildrenSteps();});}updateHostProgressClass(){this.steps&&!this.showProcessDot&&(this.showProgress=!!this.steps.toArray().find(e=>e.nzPercentage!==null));}updateChildrenSteps(){if(this.steps){let e=this.steps.length;this.steps.toArray().forEach((i,o)=>{Promise.resolve().then(()=>{i.nzSize=this.nzSize,i.outStatus=this.nzStatus,i.showProcessDot=this.showProcessDot,this.customProcessDotTemplate&&(i.customProcessTemplate=this.customProcessDotTemplate),i.clickable=this.nzIndexChange.observers.length>0,i.direction=this.nzDirection,i.index=o+this.nzStartIndex,i.currentIndex=this.nzCurrent,i.last=e===o+1,i.markForCheck();});}),this.indexChangeSubscription.unsubscribe(),this.indexChangeSubscription=zg(...this.steps.map(i=>i.clickOutsideAngular$)).pipe(ue(this.destroyRef)).subscribe(i=>{this.nzIndexChange.observers.length&&this.ngZone.run(()=>this.nzIndexChange.emit(i));});}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=ZE({type:t,selectors:[["nz-steps"]],contentQueries:function(i,o,r){if(i&1&&Ih(r,Rn,4),i&2){let a;WD(a=GD())&&(o.steps=a);}},hostAttrs:[1,"ant-steps"],hostVars:18,hostBindings:function(i,o){i&2&&Sh("ant-steps-horizontal",o.nzDirection==="horizontal")("ant-steps-vertical",o.nzDirection==="vertical")("ant-steps-label-horizontal",o.nzDirection==="horizontal")("ant-steps-label-vertical",(o.showProcessDot||o.nzLabelPlacement==="vertical")&&o.nzDirection==="horizontal")("ant-steps-dot",o.showProcessDot)("ant-steps-small",o.nzSize==="small")("ant-steps-navigation",o.nzType==="navigation")("ant-steps-rtl",o.dir()==="rtl")("ant-steps-with-progress",o.showProgress);},inputs:{nzCurrent:"nzCurrent",nzDirection:"nzDirection",nzLabelPlacement:"nzLabelPlacement",nzType:"nzType",nzSize:"nzSize",nzStartIndex:"nzStartIndex",nzStatus:"nzStatus",nzProgressDot:"nzProgressDot"},outputs:{nzIndexChange:"nzIndexChange"},exportAs:["nzSteps"],features:[ly],ngContentSelectors:Sa,decls:1,vars:0,template:function(i,o){i&1&&($D(),UD(0));},encapsulation:2})}return t})(),cr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=KE({type:t});static \u0275inj=fu({imports:[Rn]})}return t})();function pr(t,n){(n==null||n>t.length)&&(n=t.length);for(var e=0,i=Array(n);e<n;e++)i[e]=t[e];return i}function wa(t){if(Array.isArray(t))return t}function ya(t,n){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var i,o,r,a,l=[],h=true,g=false;try{if(r=(e=e.call(t)).next,n!==0)for(;!(h=(i=r.call(e)).done)&&(l.push(i.value),l.length!==n);h=!0);}catch(v){g=true,o=v;}finally{try{if(!h&&e.return!=null&&(a=e.return(),Object(a)!==a))return}finally{if(g)throw o}}return l}}function va(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
4
4
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ta(t,n){return wa(t)||ya(t,n)||za(t,n)||va()}function za(t,n){if(t){if(typeof t=="string")return pr(t,n);var e={}.toString.call(t).slice(8,-1);return e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set"?Array.from(t):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?pr(t,n):void 0}}var vr=Object.entries,dr=Object.setPrototypeOf,Ea=Object.isFrozen,Ia=Object.getPrototypeOf,Ra=Object.getOwnPropertyDescriptor,oe=Object.freeze,re=Object.seal,zt=Object.create,Tr=typeof Reflect<"u"&&Reflect,fi=Tr.apply,hi=Tr.construct;oe||(oe=function(n){return n});re||(re=function(n){return n});fi||(fi=function(n,e){for(var i=arguments.length,o=new Array(i>2?i-2:0),r=2;r<i;r++)o[r-2]=arguments[r];return n.apply(e,o)});hi||(hi=function(n){for(var e=arguments.length,i=new Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];return new n(...i)});var lt=ne(Array.prototype.forEach),Da=ne(Array.prototype.lastIndexOf),ur=ne(Array.prototype.pop),Wt=ne(Array.prototype.push),Pa=ne(Array.prototype.splice),Et=Array.isArray,Jt=ne(String.prototype.toLowerCase),li=ne(String.prototype.toString),mr=ne(String.prototype.match),Ft=ne(String.prototype.replace),fr=ne(String.prototype.indexOf),Aa=ne(String.prototype.trim),Ma=ne(Number.prototype.toString),Oa=ne(Boolean.prototype.toString),hr=typeof BigInt>"u"?null:ne(BigInt.prototype.toString),_r=typeof Symbol>"u"?null:ne(Symbol.prototype.toString),be=ne(Object.prototype.hasOwnProperty),Bt=ne(Object.prototype.toString),ce=ne(RegExp.prototype.test),at=Na(TypeError);function ne(t){return function(n){n instanceof RegExp&&(n.lastIndex=0);for(var e=arguments.length,i=new Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];return fi(t,n,i)}}function Na(t){return function(){for(var n=arguments.length,e=new Array(n),i=0;i<n;i++)e[i]=arguments[i];return hi(t,e)}}function W(t,n){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Jt;if(dr&&dr(t,null),!Et(n))return t;let i=n.length;for(;i--;){let o=n[i];if(typeof o=="string"){let r=e(o);r!==o&&(Ea(n)||(n[i]=r),o=r);}t[o]=true;}return t}function La(t){for(let n=0;n<t.length;n++)be(t,n)||(t[n]=null);return t}function Se(t){let n=zt(null);for(let i of vr(t)){var e=Ta(i,2);let o=e[0],r=e[1];be(t,o)&&(Et(r)?n[o]=La(r):r&&typeof r=="object"&&r.constructor===Object?n[o]=Se(r):n[o]=r);}return n}function ja(t){switch(typeof t){case "string":return t;case "number":return Ma(t);case "boolean":return Oa(t);case "bigint":return hr?hr(t):"0";case "symbol":return _r?_r(t):"Symbol()";case "undefined":return Bt(t);case "function":case "object":{if(t===null)return Bt(t);let n=t,e=ve(n,"toString");if(typeof e=="function"){let i=e(n);return typeof i=="string"?i:Bt(i)}return Bt(t)}default:return Bt(t)}}function ve(t,n){for(;t!==null;){let i=Ra(t,n);if(i){if(i.get)return ne(i.get);if(typeof i.value=="function")return ne(i.value)}t=Ia(t);}function e(){return null}return e}function $a(t){try{return ce(t,""),!0}catch(n){return false}}var gr=oe(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ci=oe(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),pi=oe(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Wa=oe(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),di=oe(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Fa=oe(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),xr=oe(["#text"]),br=oe(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),ui=oe(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Cr=oe(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Dn=oe(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ba=re(/{{[\w\W]*|^[\w\W]*}}/g),Ja=re(/<%[\w\W]*|^[\w\W]*%>/g),Va=re(/\${[\w\W]*/g),Ga=re(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ua=re(/^aria-[\-\w]+$/),Sr=re(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),qa=re(/^(?:\w+script|data):/i),Ha=re(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Qa=re(/^html$/i),Ya=re(/^[a-z][.\w]*(-[.\w]+)+$/i),kr=re(/<[/\w!]/g),wr=re(/<[/\w]/g),Za=re(/<\/no(script|embed|frames)/i),Xa=re(/\/>/i),Ce={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},zr=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],Ka=oe(W({},zr)),el=(function(){let t={};return lt(zr,n=>{t[n]=re(new RegExp("</"+n+"(?=[\\t\\n\\f\\r />])","i"));}),oe(t)})(),tl=function(){return typeof window>"u"?null:window},nl=function(n,e){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let i=null,o="data-tt-policy-suffix";e&&e.hasAttribute(o)&&(i=e.getAttribute(o));let r="dompurify"+(i?"#"+i:"");try{return n.createPolicy(r,{createHTML(a){return a},createScriptURL(a){return a}})}catch(a){return console.warn("TrustedTypes policy "+r+" could not be created."),null}},yr=function(){return {afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Ze=function(n,e,i,o){return be(n,e)&&Et(n[e])?W(o.base?Se(o.base):{},n[e],o.transform):i},mi=function(n,e,i){let o=be(n,e)?n[e]:void 0;return o&&typeof o=="object"?Se(o):i()};function Er(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:tl(),n=x=>Er(x);if(n.version="3.4.15",n.removed=[],!t||!t.document||t.document.nodeType!==Ce.document||!t.Element)return n.isSupported=false,n;let e=t.document,i=e,o=i.currentScript;t.DocumentFragment;let r=t.HTMLTemplateElement,a=t.Node,l=t.Element,h=t.NodeFilter,g=t.NamedNodeMap;g===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;let v=t.DOMParser,S=t.trustedTypes,P=l.prototype,te=ve(P,"cloneNode"),$=ve(P,"remove"),se=ve(P,"removeAttributeNode"),Re=ve(P,"nextSibling"),we=ve(P,"childNodes"),ye=ve(P,"parentNode"),Ke=ve(P,"shadowRoot"),Je=ve(P,"attributes"),Te=a&&a.prototype?ve(a.prototype,"nodeType"):null,M=a&&a.prototype?ve(a.prototype,"nodeName"):null,b=a&&a.prototype?ve(a.prototype,"ownerDocument"):null,L=function(s){return Te?Te(s):s.nodeType},fe=function(s){return M?M(s):s.nodeName};if(typeof r=="function"){let x=e.createElement("template");x.content&&x.content.ownerDocument&&(e=x.content.ownerDocument);}let B,de="",De,Pe=false,ae=0,et=function(){if(ae>0)throw at('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},Ae=function(s){et(),ae++;try{return B.createHTML(s)}finally{ae--;}},Dt=function(s){et(),ae++;try{return B.createScriptURL(s)}finally{ae--;}},is=function(){return Pe||(De=nl(S,o),Pe=true),De},Qt=e,Ln=Qt.implementation,Ei=Qt.createNodeIterator,os=Qt.createDocumentFragment,rs=Qt.getElementsByTagName,ss=i.importNode,U=yr();n.isSupported=typeof vr=="function"&&typeof ye=="function"&&Ln&&Ln.createHTMLDocument!==void 0;let as=Ba,ls=Ja,cs=Va,ps=Ga,ds=Ua,us=qa,Ii=Ha,ms=Ya,Ri=Sr,q=null,jn=W({},[...gr,...ci,...pi,...di,...xr]),H=null,$n=W({},[...br,...ui,...Cr,...Dn]),Me=Object.seal(zt(null,{tagNameCheck:{writable:true,configurable:false,enumerable:true,value:null},attributeNameCheck:{writable:true,configurable:false,enumerable:true,value:null},allowCustomizedBuiltInElements:{writable:true,configurable:false,enumerable:true,value:false}})),Pt=null,Di=null,Ve=Object.seal(zt(null,{tagCheck:{writable:true,configurable:false,enumerable:true,value:null},attributeCheck:{writable:true,configurable:false,enumerable:true,value:null}})),Pi=true,Wn=true,Ai=false,Mi=true,Ge=false,tt=true,nt=false,Fn=false,Yt=null,Zt=null,Bn=false,ut=false,Xt=false,Kt=false,Oi=true,Ni=false,Li="user-content-",Jn=true,Vn=false,mt={},ft=null,ji=W({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),$i=null,Wi=W({},["audio","video","img","source","image","track"]),Fi=null,Bi=W({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),en="http://www.w3.org/1998/Math/MathML",tn="http://www.w3.org/2000/svg",Oe="http://www.w3.org/1999/xhtml",ht=Oe,Gn=false,Un=null,fs=W({},[en,tn,Oe],li),Ji=oe(["mi","mo","mn","ms","mtext"]),qn=W({},Ji),Vi=oe(["annotation-xml"]),Hn=W({},Vi),hs=W({},["title","style","font","a","script"]),At=null,_s=["application/xhtml+xml","text/html"],gs="text/html",ee=null,_t=null,xs=e.createElement("form"),Gi=function(s){return s instanceof RegExp||s instanceof Function},Qn=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(_t&&_t===s)return;(!s||typeof s!="object")&&(s={}),s=Se(s),At=_s.indexOf(s.PARSER_MEDIA_TYPE)===-1?gs:s.PARSER_MEDIA_TYPE,ee=At==="application/xhtml+xml"?li:Jt,q=Ze(s,"ALLOWED_TAGS",jn,{transform:ee}),H=Ze(s,"ALLOWED_ATTR",$n,{transform:ee}),Un=Ze(s,"ALLOWED_NAMESPACES",fs,{transform:li}),Fi=Ze(s,"ADD_URI_SAFE_ATTR",Bi,{transform:ee,base:Bi}),$i=Ze(s,"ADD_DATA_URI_TAGS",Wi,{transform:ee,base:Wi}),ft=Ze(s,"FORBID_CONTENTS",ji,{transform:ee}),Pt=Ze(s,"FORBID_TAGS",Se({}),{transform:ee}),Di=Ze(s,"FORBID_ATTR",Se({}),{transform:ee}),mt=be(s,"USE_PROFILES")?s.USE_PROFILES&&typeof s.USE_PROFILES=="object"?Se(s.USE_PROFILES):s.USE_PROFILES:false,Pi=s.ALLOW_ARIA_ATTR!==false,Wn=s.ALLOW_DATA_ATTR!==false,Ai=s.ALLOW_UNKNOWN_PROTOCOLS||false,Mi=s.ALLOW_SELF_CLOSE_IN_ATTR!==false,Ge=s.SAFE_FOR_TEMPLATES||false,tt=s.SAFE_FOR_XML!==false,nt=s.WHOLE_DOCUMENT||false,ut=s.RETURN_DOM||false,Xt=s.RETURN_DOM_FRAGMENT||false,Kt=s.RETURN_TRUSTED_TYPE||false,Bn=s.FORCE_BODY||false,Oi=s.SANITIZE_DOM!==false,Ni=s.SANITIZE_NAMED_PROPS||false,Jn=s.KEEP_CONTENT!==false,Vn=s.IN_PLACE||false,Ri=$a(s.ALLOWED_URI_REGEXP)?s.ALLOWED_URI_REGEXP:Sr,ht=typeof s.NAMESPACE=="string"?s.NAMESPACE:Oe,qn=mi(s,"MATHML_TEXT_INTEGRATION_POINTS",()=>W({},Ji)),Hn=mi(s,"HTML_INTEGRATION_POINTS",()=>W({},Vi));let p=mi(s,"CUSTOM_ELEMENT_HANDLING",()=>zt(null));if(Me=zt(null),be(p,"tagNameCheck")&&Gi(p.tagNameCheck)&&(Me.tagNameCheck=p.tagNameCheck),be(p,"attributeNameCheck")&&Gi(p.attributeNameCheck)&&(Me.attributeNameCheck=p.attributeNameCheck),be(p,"allowCustomizedBuiltInElements")&&typeof p.allowCustomizedBuiltInElements=="boolean"&&(Me.allowCustomizedBuiltInElements=p.allowCustomizedBuiltInElements),re(Me),Ge&&(Wn=false),Xt&&(ut=true),mt&&(q=W({},xr),H=zt(null),mt.html===true&&(W(q,gr),W(H,br)),mt.svg===true&&(W(q,ci),W(H,ui),W(H,Dn)),mt.svgFilters===true&&(W(q,pi),W(H,ui),W(H,Dn)),mt.mathMl===true&&(W(q,di),W(H,Cr),W(H,Dn))),Ve.tagCheck=null,Ve.attributeCheck=null,be(s,"ADD_TAGS")&&(typeof s.ADD_TAGS=="function"?Ve.tagCheck=s.ADD_TAGS:Et(s.ADD_TAGS)&&(q===jn&&(q=Se(q)),W(q,s.ADD_TAGS,ee))),be(s,"ADD_ATTR")&&(typeof s.ADD_ATTR=="function"?Ve.attributeCheck=s.ADD_ATTR:Et(s.ADD_ATTR)&&(H===$n&&(H=Se(H)),W(H,s.ADD_ATTR,ee))),be(s,"ADD_FORBID_CONTENTS")&&Et(s.ADD_FORBID_CONTENTS)&&(ft===ji&&(ft=Se(ft)),W(ft,s.ADD_FORBID_CONTENTS,ee)),Jn&&(q["#text"]=true),nt&&W(q,["html","head","body"]),q.table&&(W(q,["tbody"]),delete Pt.tbody),s.TRUSTED_TYPES_POLICY){if(typeof s.TRUSTED_TYPES_POLICY.createHTML!="function")throw at('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof s.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw at('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let f=B;B=s.TRUSTED_TYPES_POLICY;try{de=Ae("");}catch(C){throw B=f,C}}else s.TRUSTED_TYPES_POLICY===null?(B=void 0,de=""):(B===void 0&&(B=is()),B&&typeof de=="string"&&(de=Ae("")));oe&&oe(s),_t=s;},Ui=W({},[...ci,...pi,...Wa]),qi=W({},[...di,...Fa]),bs=function(s,p,f){return p.namespaceURI===Oe?s==="svg":p.namespaceURI===en?s==="svg"&&(f==="annotation-xml"||qn[f]):!!Ui[s]},Cs=function(s,p,f){return p.namespaceURI===Oe?s==="math":p.namespaceURI===tn?s==="math"&&Hn[f]:!!qi[s]},Ss=function(s,p,f){return p.namespaceURI===tn&&!Hn[f]||p.namespaceURI===en&&!qn[f]?false:!qi[s]&&(hs[s]||!Ui[s])},ks=function(s){let p=ye(s);(!p||!p.tagName)&&(p={namespaceURI:ht,tagName:"template"});let f=Jt(s.tagName),C=Jt(p.tagName);return Un[s.namespaceURI]?s.namespaceURI===tn?bs(f,p,C):s.namespaceURI===en?Cs(f,p,C):s.namespaceURI===Oe?Ss(f,p,C):!!(At==="application/xhtml+xml"&&Un[s.namespaceURI]):false},Ue=function(s){Wt(n.removed,{element:s});try{ye(s).removeChild(s);}catch(p){if($(s),!ye(s))throw at("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Hi=function(s,p,f){try{se(s,p);}catch(C){try{s.removeAttribute(f);}catch(w){}}},nn=function(s){on(s);let p=we(s);if(p){let C=[];lt(p,w=>{Wt(C,w);}),lt(C,w=>{try{$(w);}catch(R){}});}let f=Je(s);if(f)for(let C=f.length-1;C>=0;--C){let w=f[C],R=w&&w.name;typeof R=="string"&&Hi(s,w,R);}},it=function(s,p,f){if(!f)try{f=p.getAttributeNode(s);}catch(C){f=null;}Wt(n.removed,{attribute:f||null,from:p});try{f?se(p,f):p.removeAttribute(s);}catch(C){try{p.removeAttribute(s);}catch(w){}}if(s==="is")if(ut||Xt)try{Ue(p);}catch(C){}else try{p.setAttribute(s,"");}catch(C){}},ws=function(s){let p=Je(s);if(p)for(let f=p.length-1;f>=0;--f){let C=p[f],w=C&&C.name;typeof w!="string"||H[ee(w)]||Hi(s,C,w);}},on=function(s){let p=[s];for(;p.length>0;){let f=p.pop();L(f)===Ce.element&&ws(f);let w=we(f);if(w)for(let R=w.length-1;R>=0;--R)p.push(w[R]);}},Qi=function(s,p){return tt?s==="patchsrc"?true:s==="for"&&p!=="label"&&p!=="output":false},ys=function(s){if(!tt)return;let p=[s];for(;p.length>0;){let f=p.pop(),C=L(f);if(C===Ce.processingInstruction||C===Ce.comment&&ce(wr,f.data)){try{$(f);}catch(R){}continue}if(C===Ce.element){let R=f,J=ee(fe(f));try{R.hasAttribute&&R.hasAttribute("patchsrc")&&R.removeAttribute("patchsrc"),R.hasAttribute&&R.hasAttribute("for")&&Qi("for",J)&&R.removeAttribute("for");}catch(X){}}let w=we(f);if(w)for(let R=w.length-1;R>=0;--R)p.push(w[R]);}},Yi=function(s){let p=null,f=null;if(Bn)s="<remove></remove>"+s;else {let R=mr(s,/^[\r\n\t ]+/);f=R&&R[0];}At==="application/xhtml+xml"&&ht===Oe&&(s='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+s+"</body></html>");let C=B?Ae(s):s;if(ht===Oe)try{p=new v().parseFromString(C,At);}catch(R){}if(!p||!p.documentElement){p=Ln.createDocument(ht,"template",null);try{p.documentElement.innerHTML=Gn?de:C;}catch(R){}}let w=p.body||p.documentElement;return s&&f&&w.insertBefore(e.createTextNode(f),w.childNodes[0]||null),ht===Oe?rs.call(p,nt?"html":"body")[0]:nt?p.documentElement:w},Zi=function(s){let p=b?b(s):s.ownerDocument;return Ei.call(p||s,s,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},rn=function(s){return s=Ft(s,as," "),s=Ft(s,ls," "),s=Ft(s,cs," "),s},Yn=function(s){var p;s.normalize();let f=b?b(s):s.ownerDocument,C=Ei.call(f||s,s,h.SHOW_TEXT|h.SHOW_COMMENT|h.SHOW_CDATA_SECTION|h.SHOW_PROCESSING_INSTRUCTION,null),w=C.nextNode();for(;w;)w.data=rn(w.data),w=C.nextNode();let R=(p=s.querySelectorAll)===null||p===void 0?void 0:p.call(s,"template");R&<(R,J=>{gt(J.content)&&Yn(J.content);});},sn=function(s){let p=M?M(s):null;return typeof p!="string"||ee(p)!=="form"?false:typeof s.nodeName!="string"||typeof s.textContent!="string"||typeof s.removeChild!="function"||s.attributes!==Je(s)||typeof s.removeAttribute!="function"||typeof s.removeAttributeNode!="function"||typeof s.getAttributeNode!="function"||typeof s.setAttribute!="function"||typeof s.namespaceURI!="string"||typeof s.insertBefore!="function"||typeof s.hasChildNodes!="function"||s.nodeType!==Te(s)||s.childNodes!==we(s)},gt=function(s){if(!Te||typeof s!="object"||s===null)return false;try{return Te(s)===Ce.documentFragment}catch(p){return false}},Mt=function(s){if(!Te||typeof s!="object"||s===null)return false;try{return typeof Te(s)=="number"}catch(p){return false}};function Ne(x,s,p){x.length!==0&<(x,f=>{f.call(n,s,p,_t);});}let vs=function(s,p){return !!(tt&&s.hasChildNodes()&&!Mt(s.firstElementChild)&&ce(kr,s.textContent)&&ce(kr,s.innerHTML)||tt&&s.namespaceURI===Oe&&Ka[p]&&(Mt(s.firstElementChild)||typeof s.textContent=="string"&&ce(el[p],s.textContent))||s.nodeType===Ce.processingInstruction||tt&&s.nodeType===Ce.comment&&ce(wr,s.data))},an=function(s,p){if(s instanceof RegExp)return ce(s,p);if(s instanceof Function){for(var f=arguments.length,C=new Array(f>2?f-2:0),w=2;w<f;w++)C[w-2]=arguments[w];return !!s(p,...C)}return false},Ts=function(s,p,f){if(!Pt[p]&&no(p)&&an(Me.tagNameCheck,p))return false;if(Jn&&!ft[p]){let C=ye(s),w=we(s);if(w&&C){let R=w.length;for(let J=R-1;J>=0;--J){let X=s===f?te(w[J],true):w[J];C.insertBefore(X,Re(s));}}}return Ue(s),true},Xi=function(s,p,f,C){return s.length===0?p:p===f||p===C?Se(p):p},Ki=function(s,p){return s===p||ye(s)!==null?false:(Vn&&on(s),true)},eo=function(s,p){if(Ne(U.beforeSanitizeElements,s,null),Ki(s,p))return true;if(sn(s))return Ue(s),true;let f=ee(fe(s));if(q=Xi(U.uponSanitizeElement,q,jn,Yt),Ne(U.uponSanitizeElement,s,{tagName:f,allowedTags:q}),Ki(s,p))return true;if(vs(s,f))return Ue(s),true;if(Pt[f]||!(Ve.tagCheck instanceof Function&&Ve.tagCheck(f))&&!q[f]){let w=Ts(s,f,p);return w===false&&Ne(U.afterSanitizeElements,s,null),w}if(L(s)===Ce.element&&!ks(s)||(f==="noscript"||f==="noembed"||f==="noframes")&&ce(Za,s.innerHTML))return Ue(s),true;if(Ge&&s.nodeType===Ce.text){let w=rn(s.textContent);s.textContent!==w&&(Wt(n.removed,{element:s.cloneNode()}),s.textContent=w);}return Ne(U.afterSanitizeElements,s,null),false},to=function(s,p,f){if(Di[p]||Qi(p,s)||Oi&&(p==="id"||p==="name")&&(f in e||f in xs))return false;let C=H[p]||Ve.attributeCheck instanceof Function&&Ve.attributeCheck(p,s);return Wn&&ce(ps,p)||Pi&&ce(ds,p)?true:C?Fi[p]||ce(Ri,Ft(f,Ii,""))||(p==="src"||p==="xlink:href"||p==="href")&&s!=="script"&&fr(f,"data:")===0&&$i[s]||Ai&&!ce(us,Ft(f,Ii,""))?true:!f:no(s)&&an(Me.tagNameCheck,s)&&an(Me.attributeNameCheck,p,s)||p==="is"&&Me.allowCustomizedBuiltInElements&&an(Me.tagNameCheck,f)},zs=W({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),no=function(s){return !zs[Jt(s)]&&ce(ms,s)},Es=function(s,p,f,C){if(B&&typeof S=="object"&&typeof S.getAttributeType=="function"&&!f)switch(S.getAttributeType(s,p)){case "TrustedHTML":return Ae(C);case "TrustedScriptURL":return Dt(C)}return C},Is=function(s,p,f,C){try{return f?s.setAttributeNS(f,p,C):s.setAttribute(p,C),sn(s)?(Ue(s),!1):!0}catch(w){return it(p,s),false}},io=function(s){Ne(U.beforeSanitizeAttributes,s,null);let p=s.attributes;if(!p||sn(s))return;H=Xi(U.uponSanitizeAttribute,H,$n,Zt);let f={attrName:"",attrValue:"",keepAttr:true,allowedAttributes:H,forceKeepAttr:void 0},C=p.length,w=ee(s.nodeName);for(;C--;){let R=p[C],J=R.name,X=R.namespaceURI,he=R.value,_e=ee(J),Xn=he,ue=J==="value"?Xn:Aa(Xn),oo=false;if(f.attrName=_e,f.attrValue=ue,f.keepAttr=true,f.forceKeepAttr=void 0,Ne(U.uponSanitizeAttribute,s,f),ue=f.attrValue,Ni&&(_e==="id"||_e==="name")&&fr(ue,Li)!==0&&(it(J,s,R),ue=Li+ue,oo=true),tt&&ce(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,ue)){it(J,s,R);continue}if(_e==="attributename"&&mr(ue,"href")){it(J,s,R);continue}if(!f.forceKeepAttr){if(!f.keepAttr){it(J,s,R);continue}if(!Mi&&ce(Xa,ue)){it(J,s,R);continue}if(Ge&&(ue=rn(ue)),!to(w,_e,ue)){it(J,s,R);continue}ue=Es(w,_e,X,ue),ue!==Xn&&Is(s,J,X,ue)&&oo&&ur(n.removed);}}Ne(U.afterSanitizeAttributes,s,null);},ln=function(s){let p=null,f=Zi(s);for(Ne(U.beforeSanitizeShadowDOM,s,null);p=f.nextNode();)if(Ne(U.uponSanitizeShadowNode,p,null),eo(p,s),io(p),gt(p.content)&&ln(p.content),L(p)===Ce.element){let C=Ke(p);gt(C)&&(Zn(C),ln(C));}Ne(U.afterSanitizeShadowDOM,s,null);},Zn=function(s){let p=[{node:s,shadow:null}];for(;p.length>0;){let f=p.pop();if(f.shadow){ln(f.shadow);continue}let C=f.node,R=L(C)===Ce.element,J=we(C);if(J)for(let X=J.length-1;X>=0;--X)p.push({node:J[X],shadow:null});if(R){let X=M?M(C):null;if(typeof X=="string"&&ee(X)==="template"){let he=C.content;gt(he)&&p.push({node:he,shadow:null});}}if(R){let X=Ke(C);gt(X)&&p.push({node:null,shadow:X},{node:X,shadow:null});}}};return n.sanitize=function(x){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=null,f=null,C=null,w=null;if(Gn=!x,Gn&&(x="<!-->"),typeof x!="string"&&!Mt(x)&&(x=ja(x),typeof x!="string"))throw at("dirty is not a string, aborting");if(!n.isSupported)return x;Fn?(q=Yt,H=Zt):Qn(s),(U.uponSanitizeElement.length>0||U.uponSanitizeAttribute.length>0)&&(q=Se(q)),U.uponSanitizeAttribute.length>0&&(H=Se(H)),n.removed=[];let R=Vn&&typeof x!="string"&&Mt(x);if(R){ys(x);let he=fe(x);if(typeof he=="string"){let _e=ee(he);if(!q[_e]||Pt[_e])throw nn(x),at("root node is forbidden and cannot be sanitized in-place")}if(sn(x))throw nn(x),at("root node is clobbered and cannot be sanitized in-place");try{Zn(x);}catch(_e){throw nn(x),_e}}else if(Mt(x))p=Yi("<!---->"),f=p.ownerDocument.importNode(x,true),f.nodeType===Ce.element&&f.nodeName==="BODY"||f.nodeName==="HTML"?p=f:p.appendChild(f),Zn(p);else {if(!ut&&!Ge&&!nt&&x.indexOf("<")===-1)return B&&Kt?Ae(x):x;if(p=Yi(x),!p)return ut?null:Kt?de:""}p&&Bn&&Ue(p.firstChild);let J=R?x:p;try{let he=Zi(J);for(;C=he.nextNode();)eo(C,J),io(C),gt(C.content)&&ln(C.content);}catch(he){throw R&&(nn(x),lt(n.removed,_e=>{_e.element&&on(_e.element);})),he}if(R)return lt(n.removed,he=>{he.element&&on(he.element);}),Ge&&Yn(x),x;if(ut){if(Ge&&Yn(p),Xt)for(w=os.call(p.ownerDocument);p.firstChild;)w.appendChild(p.firstChild);else w=p;return (H.shadowroot||H.shadowrootmode)&&(w=ss.call(i,w,true)),w}let X=nt?p.outerHTML:p.innerHTML;return nt&&q["!doctype"]&&p.ownerDocument&&p.ownerDocument.doctype&&p.ownerDocument.doctype.name&&ce(Qa,p.ownerDocument.doctype.name)&&(X="<!DOCTYPE "+p.ownerDocument.doctype.name+`>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {U as Uy}from'./chunk-
|
|
1
|
+
import {U as Uy}from'./chunk-D3JZ8ur5.js';function p(t){switch(t){case "completed":return "success";case "failed":return "error";case "waiting_for_human":case "waiting_for_children":return "info";case "pending":case "cancelled":return "muted";case "planning":case "implementing":case "testing":return "primary"}}function d(t){switch(t){case "completed":return "success";case "failed":return "error";case "completed_with_issues":case "cancelled":return "warning";default:return null}}function m(t){switch(t){case "completed":return "success";case "failed":return "error";case "queued":case "waiting_for_children":return "info";case "running":return "primary";case "pending":case "skipped":return "muted"}}function a(t,e){if(!(!t||e==="dark"))switch(t){case "success":return "success";case "warning":return "warning";case "error":return "error";case "info":case "primary":case "muted":return}}function f(t,e){return !t||e!=="dark"&&!(t==="info"||t==="primary"||t==="muted")?"":`knoflows-tag-${t}`}function x(t,e){return f(p(t),e)}function h(t,e){return a(p(t),e)}function y(t,e){return f(d(t),e)}function S(t,e){return a(d(t),e)}function T(t,e){return f(m(t),e)}function _(t,e){return a(m(t),e)}var g=new Set(["completed","failed","cancelled"]);function C(t){return t==="agent"||t==="shell"||t==="git"||t==="provider_action"}function w(t){return g.has(t)}function I(t){let e=t.stepHistory.find(r=>r.status==="running");if(e)return e;let n=t.stepHistory.find(r=>r.status==="queued");if(n)return n;if((t.status==="waiting_for_human"||t.status==="waiting_for_children")&&t.currentStepExecutionId){let r=t.stepHistory.find(i=>i.id===t.currentStepExecutionId);if(r)return r}return w(t.status)&&t.stepHistory.length>0?t.stepHistory[t.stepHistory.length-1]??null:null}function k(t,e){let n=new Map;for(let r of e)n.set(r.stepDefinitionId,r);return t.map(r=>{let i=n.get(r.id)??null;return {definition:r,execution:i,reached:i!=null}})}function O(t){if(!t)return null;if(t.mode==="single"){let n=t.subject;return `${n.id} \xB7 ${n.title}`}let e=t.subjects.length;if(e===0)return null;if(e===1){let n=t.subjects[0];return `${n.id} \xB7 ${n.title}`}return `${e} subjects`}function b(t){let e=t.workflowSnapshot?.name??t.workflowId;return t.subjectContext?t.subjectContext.mode==="single"?`${e} \u2014 ${t.subjectContext.subject.title}`:`${e} \u2014 ${t.subjectContext.subjects.length} items`:e}function v(t,e,n,r){let i=t.findIndex(s=>s.id===n);if(!(i<0))for(let s=i-1;s>=0;s-=1){let o=t[s];if(o.type!=="agent")continue;let c=e.find(u=>u.stepDefinitionId===o.id);if(c?.output!==void 0)return c.output;if(Object.prototype.hasOwnProperty.call(r.context,o.id))return r.context[o.id]}}function D(t){let e=t.waitingEvent;if(e&&e.questions.length>0)return e.questions;let n=e?.data??t.selectedOutput??t.priorOutput,r=Uy(t.interaction,n);return r.length>0?r:e?.data!=null?[JSON.stringify(e.data,null,2)]:[]}function E(t){return t.waitingEvent?.data??t.selectedOutput??t.priorOutput}function H(t){if(!t||typeof t!="object")return [];let e=t.questions;if(!Array.isArray(e))return [];let n=new Set,r=[];return e.forEach((i,s)=>{let o="",c="";if(typeof i=="string")c=i.trim();else if(i&&typeof i=="object"){let u=i;typeof u.prompt=="string"&&(c=u.prompt.trim()),typeof u.id=="string"&&(o=u.id.trim());}if(c){if(!o){let u=`q${s+1}`;for(;n.has(u);)u=`${u}_${s}`;o=u;}n.add(o),r.push({id:o,prompt:c});}}),r}function A(t,e){return t.every(n=>(e[n.id]??"").trim()!=="")}function P(t,e,n){let r={};for(let s of t)r[s.id]=(e[s.id]??"").trim();let i=n.trim();return i&&(r.additionalComments=i),r}function J(t,e){let n=e.trim();return n?{approved:t,comment:n}:{approved:t}}export{A,C,D,E,H,I,J,O,P,S,T,_,b,h,k,v,w,x,y};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {q as qo,U as Uw,aV as ix,i as ie}from'./main-
|
|
1
|
+
import {q as qo,U as Uw,aV as ix,i as ie}from'./main-SI5AKDMC.js';var f=(()=>{class e{connect(t){let n=new URLSearchParams;t?.jobId&&n.set("jobId",t.jobId),t?.batchId&&n.set("batchId",t.batchId);let r=n.toString(),p=`${ix.apiBaseUrl}/events${r?`?${r}`:""}`,a=qo([]),b=Uw(()=>{let o=a();return o.length>0?o[o.length-1]:void 0}),s=new EventSource(p);return s.onmessage=o=>{let c;try{c=JSON.parse(o.data);}catch(d){return}a.update(d=>[...d,c]);},{events:a.asReadonly(),latest:b,close:()=>{s.onmessage=null,s.close();}}}static{this.\u0275fac=function(n){return new(n||e)};}static{this.\u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();export{f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {p as pc,a as as,d as dc,K as Kl,U as Ul,c as cc,J as Ji,l as ls,e as es}from'./chunk-
|
|
1
|
+
import {p as pc,a as as,d as dc,K as Kl,U as Ul,c as cc,J as Ji,l as ls,e as es}from'./chunk-DAONFRT8.js';import {a5 as q0,a6 as U0,q as qo,U as Uw,Z as ZE,d as $8,v as v3,Y as pf,a0 as bd,a1 as sp,a2 as fp,K as Kt,j as _i,l as _D,I as Iw,P as Pw,J as Jc,x as xD,o as gI,M as MD,w as lh,L as Lh,p as Fw,B as AD,G as FD,m as mh,H as HD,z as rl,az as jw,E as Aw,D as ch,O as Fu,Q as ju}from'./main-SI5AKDMC.js';var Q=t=>({count:t}),U=t=>["/jobs",t],X=(t,c)=>c.id;function Y(t,c){if(t&1){let e=FD();_i(0,"div",1)(1,"button",4),mh("click",function(){Fu(e);let o=HD();return ju(o.emitBulk())}),Iw(2),Pw(3,"transloco"),Jc()();}if(t&2){let e=HD();gI(),lh("disabled",e.checkedCount()===0),gI(),rl(" ",jw(3,2,"runnableTable.runSelected",Aw(5,Q,e.checkedCount()))," ");}}function Z(t,c){if(t&1){let e=FD();_i(0,"th",5),mh("nzCheckedChange",function(o){Fu(e);let s=HD();return ju(s.onAllChecked(o))}),Jc();}if(t&2){let e=HD();lh("nzChecked",e.allChecked())("nzIndeterminate",e.someChecked());}}function ee(t,c){t&1&&(_i(0,"th"),Iw(1),Pw(2,"transloco"),Jc()),t&2&&(gI(),Lh(Fw(2,1,"runnableTable.column.actions")));}function te(t,c){if(t&1){let e=FD();_i(0,"td",12),mh("nzCheckedChange",function(o){Fu(e);let s=HD().$implicit,H=HD();return ju(H.onItemChecked(s.id,o))}),Jc();}if(t&2){let e=HD().$implicit,n=HD();lh("nzChecked",n.checkedIds().has(e.id)),ch("data-testid","check-"+e.id);}}function ne(t,c){if(t&1&&(_i(0,"span",9),Iw(1),Jc()),t&2){let e=HD().$implicit;ch("data-testid","subtitle-"+e.id),gI(),Lh(e.subtitle);}}function ie(t,c){if(t&1&&(_i(0,"a",10),Iw(1),Pw(2,"transloco"),Jc()),t&2){let e=c,n=HD().$implicit,o=HD();lh("routerLink",Aw(5,U,e.id)),ch("data-testid","latest-"+n.id),gI(),rl(" ",Fw(2,3,o.statusKey(e.status))," ");}}function oe(t,c){if(t&1&&(_i(0,"span",11),Iw(1),Pw(2,"transloco"),Jc()),t&2){let e=HD().$implicit;ch("data-testid","latest-"+e.id),gI(),Lh(Fw(2,2,"runnableTable.neverRun"));}}function ae(t,c){if(t&1){let e=FD();_i(0,"td")(1,"button",13),mh("click",function(){Fu(e);let o=HD().$implicit,s=HD();return ju(s.emitRow(o.id))}),Iw(2),Pw(3,"transloco"),Jc()();}if(t&2){let e=HD().$implicit;gI(),ch("data-testid","run-"+e.id),gI(),rl(" ",Fw(3,2,"runnableTable.run")," ");}}function le(t,c){if(t&1&&(_i(0,"tr"),_D(1,te,1,2,"td",6),_i(2,"td")(3,"div",7)(4,"span",8),Iw(5),Jc(),_D(6,ne,2,2,"span",9),Jc()(),_i(7,"td"),_D(8,ie,3,7,"a",10)(9,oe,3,4,"span",11),Jc(),_D(10,ae,4,4,"td"),Jc()),t&2){let e,n=c.$implicit,o=HD();ch("data-testid","row-"+n.id),gI(),MD(o.selectable()?1:-1),gI(3),ch("data-testid","label-"+n.id),gI(),Lh(n.primaryLabel),gI(),MD(n.subtitle?6:-1),gI(2),MD((e=n.latestJob)?8:9,e),gI(2),MD(o.showRowAction()?10:-1);}}var we=(()=>{class t{constructor(){this.rows=q0([]),this.selectable=q0(false),this.showRowAction=q0(true),this.rowAction=U0(),this.bulkAction=U0(),this.checkedIds=qo(new Set),this.checkedCount=Uw(()=>this.checkedIds().size),this.allChecked=Uw(()=>{let e=this.rows();return e.length>0&&e.every(n=>this.checkedIds().has(n.id))}),this.someChecked=Uw(()=>{let e=this.checkedCount();return e>0&&e<this.rows().length});}onItemChecked(e,n){this.checkedIds.update(o=>{let s=new Set(o);return n?s.add(e):s.delete(e),s});}onAllChecked(e){this.checkedIds.set(e?new Set(this.rows().map(n=>n.id)):new Set);}emitBulk(){this.bulkAction.emit([...this.checkedIds()]);}emitRow(e){this.rowAction.emit(e);}statusKey(e){return `jobs.status.${e}`}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=ZE({type:t,selectors:[["app-runnable-items-table"]],inputs:{rows:[1,"rows"],selectable:[1,"selectable"],showRowAction:[1,"showRowAction"]},outputs:{rowAction:"rowAction",bulkAction:"bulkAction"},decls:16,vars:12,consts:[["data-testid","runnable-items-table",1,"runnable-table"],["data-testid","bulk-bar",1,"bulk-bar"],[3,"nzData","nzFrontPagination","nzShowPagination"],["data-testid","select-all",3,"nzChecked","nzIndeterminate"],["nz-button","","type","button","data-testid","run-selected",3,"click","disabled"],["data-testid","select-all",3,"nzCheckedChange","nzChecked","nzIndeterminate"],[3,"nzChecked"],[1,"item"],[1,"primary"],[1,"subtitle"],[3,"routerLink"],[1,"never"],[3,"nzCheckedChange","nzChecked"],["nz-button","","nzType","link","type","button",3,"click"]],template:function(n,o){n&1&&(_i(0,"div",0),_D(1,Y,4,7,"div",1),_i(2,"nz-table",2)(3,"thead")(4,"tr"),_D(5,Z,1,2,"th",3),_i(6,"th"),Iw(7),Pw(8,"transloco"),Jc(),_i(9,"th"),Iw(10),Pw(11,"transloco"),Jc(),_D(12,ee,3,3,"th"),Jc()(),_i(13,"tbody"),xD(14,le,11,7,"tr",null,X),Jc()()()),n&2&&(gI(),MD(o.selectable()?1:-1),gI(),lh("nzData",o.rows())("nzFrontPagination",false)("nzShowPagination",false),gI(3),MD(o.selectable()?5:-1),gI(2),Lh(Fw(8,8,"runnableTable.column.item")),gI(3),Lh(Fw(11,10,"runnableTable.column.latestRun")),gI(2),MD(o.showRowAction()?12:-1),gI(2),AD(o.rows()));},dependencies:[$8,v3,pf,bd,sp,fp,pc,as,dc,Kl,Ul,cc,Ji,ls,es,Kt],styles:[".runnable-table[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem}.bulk-bar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.item[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.15rem}.primary[_ngcontent-%COMP%]{font-weight:600}.subtitle[_ngcontent-%COMP%]{color:#78716c;font-size:.85rem}.never[_ngcontent-%COMP%]{color:#78716c}[_nghost-%COMP%] .ant-table-tbody>tr>td{white-space:normal;vertical-align:top}"]});}}return t})();export{we as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {aZ as H,Z as ZE,a_ as D6,v as v3,a$ as Yc,a3 as Ah,a4 as Th,K as Kt,j as _i,x as xD,J as Jc,n as uh,o as gI,B as AD,I as Iw,P as Pw,aH as QD,H as HD,w as lh,E as Aw,aR as xw,D as ch,z as rl,p as Fw}from'./main-
|
|
1
|
+
import {aZ as H,Z as ZE,a_ as D6,v as v3,a$ as Yc,a3 as Ah,a4 as Th,K as Kt,j as _i,x as xD,J as Jc,n as uh,o as gI,B as AD,I as Iw,P as Pw,aH as QD,H as HD,w as lh,E as Aw,aR as xw,D as ch,z as rl,p as Fw}from'./main-SI5AKDMC.js';var A=e=>["/manage",e],z=()=>({exact:true}),K=(e,i)=>i.path;function L(e,i){if(e&1&&(_i(0,"a",3,0),uh(2,"span",4),Iw(3),Pw(4,"transloco"),Jc()),e&2){let t=i.$implicit,n=QD(1),r=HD();lh("routerLink",Aw(8,A,t.path))("routerLinkActiveOptions",xw(10,z)),ch("data-testid","manage-tab-"+t.path),gI(2),lh("nzType",t.icon)("nzTheme",r.navIconTheme(n.isActive,t.icon)),gI(),rl(" ",Fw(4,6,t.labelKey)," ");}}var I=[{path:"workflows",labelKey:"manage.tab.workflows",icon:"partition"},{path:"views",labelKey:"manage.tab.views",icon:"appstore"},{path:"providers",labelKey:"manage.tab.providers",icon:"api"},{path:"context-files",labelKey:"manage.tab.contextFiles",icon:"file"},{path:"local-repositories",labelKey:"manage.tab.localRepositories",icon:"database"},{path:"worktrees",labelKey:"manage.tab.worktrees",icon:"deployment-unit"},{path:"preferences",labelKey:"manage.tab.preferences",icon:"setting"}],B=(()=>{class e{constructor(){this.tabs=I,this.navIconTheme=H;}static{this.\u0275fac=function(n){return new(n||e)};}static{this.\u0275cmp=ZE({type:e,selectors:[["app-manage-shell"]],decls:5,vars:0,consts:[["rla","routerLinkActive"],["data-testid","manage-shell",1,"manage-shell"],["data-testid","manage-tabs","role","tablist",1,"manage-tabs"],["role","tab","routerLinkActive","active",3,"routerLink","routerLinkActiveOptions"],["nz-icon","",1,"tab-icon",3,"nzType","nzTheme"]],template:function(n,r){n&1&&(_i(0,"section",1)(1,"nav",2),xD(2,L,5,11,"a",3,K),Jc(),uh(4,"router-outlet"),Jc()),n&2&&(gI(2),AD(r.tabs));},dependencies:[D6,v3,Yc,Ah,Th,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 var(--knoflows-border, #e1dacb);background:var(--knoflows-surface, #fff)}.manage-tabs[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.4rem;padding:.65rem .9rem;color:var(--knoflows-text-secondary, inherit);text-decoration:none;border-bottom:2px solid transparent;margin-bottom:-1px}.tab-icon[_ngcontent-%COMP%]{font-size:16px;color:currentColor}.manage-tabs[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:var(--knoflows-text, inherit)}.manage-tabs[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]{color:var(--knoflows-link, inherit);font-weight:600;border-bottom-color:var(--knoflows-link, currentColor)}"]});}}return e})();export{I as MANAGE_TABS,B as ManageShellComponent};
|