@knoflows/engine 0.1.0-alpha.10 → 0.1.0-alpha.12
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 +12 -12
- package/package.json +2 -2
- package/static/assets/i18n/en.json +34 -0
- package/static/assets/i18n/es.json +34 -0
- package/static/{chunk-CgqRVtSF.js → chunk--F2Y9kLC.js} +1 -1
- package/static/{chunk-jct1_zOr.js → chunk-A3t8CipM.js} +1 -1
- package/static/{chunk-2KSNHCgb.js → chunk-BAgwFLbm.js} +1 -1
- package/static/{chunk-B2hO-qT3.js → chunk-BLSuZA6j.js} +1 -1
- package/static/{chunk-W5GAgssE.js → chunk-Bc9kVhav.js} +1 -1
- package/static/{chunk-BUuwGTt7.js → chunk-BdrifDCS.js} +7 -7
- package/static/{chunk-CJDp11v5.js → chunk-BkJuaRUH.js} +1 -1
- package/static/chunk-BmP-Xct3.js +1 -0
- package/static/{chunk-XLpSkczx.js → chunk-BqB1I-vg.js} +1 -1
- package/static/{chunk-eSxb3-OU.js → chunk-BquoV7tV.js} +1 -1
- package/static/{chunk-BVw7xkK9.js → chunk-C3Ej8Ue9.js} +1 -1
- package/static/chunk-C5T1qa5G.js +1 -0
- package/static/{chunk-DNOjVPY0.js → chunk-CK-2DsDH.js} +1 -1
- package/static/{chunk-cHfOiAJm.js → chunk-CKFZoQzp.js} +1 -1
- package/static/{chunk-DblClAqu.js → chunk-CLNhyiRm.js} +1 -1
- package/static/{chunk-A4AkMf2s.js → chunk-CN5_Adst.js} +1 -1
- package/static/{chunk-DQnMulwi.js → chunk-COSsVdG3.js} +1 -1
- package/static/chunk-Cj-KtAk-.js +1 -0
- package/static/{chunk-3mppll1n.js → chunk-CrD5w72_.js} +1 -1
- package/static/chunk-D5Bqg3D5.js +7 -0
- package/static/chunk-DAfnL0eP.js +1 -0
- package/static/{chunk-Cd8F2jeN.js → chunk-Dc3mv2RT.js} +1 -1
- package/static/chunk-Dc7Nho4-.js +1 -0
- package/static/{chunk-BjZIiizu.js → chunk-Df_jRm7U.js} +1 -1
- package/static/{chunk-mzyds3TS.js → chunk-Dl9xoaKd.js} +1 -1
- package/static/{chunk-Ojn34cvU.js → chunk-DqECIHE5.js} +1 -1
- package/static/{chunk-B8MrNxxk.js → chunk-Dtfc5XNc.js} +1 -1
- package/static/chunk-DxtF2GQ1.js +1 -0
- package/static/{chunk-CJRNatUw.js → chunk-KhdCYqqN.js} +1 -1
- package/static/{chunk-BAc0DRm8.js → chunk-TkjFi8lV.js} +1 -1
- package/static/{chunk-DjibVmY7.js → chunk-UArWmYDU.js} +1 -1
- package/static/{chunk-CWbxWv5I.js → chunk-WGWZEfc0.js} +1 -1
- package/static/{chunk-CEcbtdnK.js → chunk-hEYSTlD1.js} +1 -1
- package/static/{chunk-Cf_xd8ER.js → chunk-jg6TAN9F.js} +1 -1
- package/static/{chunk-CDWIMt6y.js → chunk-mb666CWY.js} +1 -1
- package/static/{chunk-hZzW00VR.js → chunk-nXCKNQUo.js} +1 -1
- package/static/{chunk-wbdetocK.js → chunk-ndsN8K7Q.js} +3 -3
- package/static/{chunk-tYnBYi0l.js → chunk-tnTBlRRN.js} +1 -1
- package/static/index.html +1 -1
- package/static/{main-MNK6ZYDO.js → main-RRKPLQCF.js} +1 -1
- package/static/chunk-6BQlxALO.js +0 -1
- package/static/chunk-BFkZ796p.js +0 -7
- package/static/chunk-BNOYZq-b.js +0 -1
- package/static/chunk-BbcTWKT2.js +0 -1
- package/static/chunk-BhGgxvgu.js +0 -1
- package/static/chunk-D6YfO72h.js +0 -1
- package/static/chunk-DoXxOh8j.js +0 -1
package/static/chunk-BhGgxvgu.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a as ai,z as z$1}from'./chunk-CWbxWv5I.js';import {C,V as Ve,b as at,bi as U0,a0 as $0,q as qo,H as Hw,u as ue$1,o,Q as QE,M as Mi,n as n8,am as S4,J as J6,k as k3,d as dd,z as zc,c as t7,Z as y7,K as Kt,f as _i,m as bD,g as Kc,p as gI,B as _D,ae as Zi,a8 as a,ca as re,af as E,i as ie,F as LD,v as vw,R as Rw,N as ND,h as gh,E as VD,w as nl,O as Ow,A as xD,P as Ph,a5 as ah,a4 as Mh,U as Lh,G as Pu,I as Lu,j as oE,x as ch,y as sE}from'./main-MNK6ZYDO.js';var pe=(()=>{class t{constructor(){this.http=C(Zi),this.baseUrl=`${a.apiBaseUrl}/filesystem`;}browse(e){let i=new re;return e!=null&&e.trim()!==""&&(i=i.set("path",e.trim())),this.http.get(`${this.baseUrl}/browse`,{params:i}).pipe(E())}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275prov=ie({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();function z(t){if(!t)return [];if(/^[A-Za-z]:/.test(t)){let r=t.includes("\\")?"\\":"/",y=`${t.slice(0,2)}${r}`,v=t.slice(2).replace(/^[\\/]+/,"").split(/[\\/]/).filter(Boolean),P=[{label:t.slice(0,2),path:y}],M=y;for(let k of v)M=M.endsWith(r)?M+k:M+r+k,P.push({label:k,path:M});return P}if(t.startsWith("/")){let r=t.split("/").filter(Boolean),y=[{label:"/",path:"/"}],B="";for(let v of r)B+=`/${v}`,y.push({label:v,path:B});return y}let o=t.includes("\\")?"\\":"/",e=t.split(/[\\/]/).filter(Boolean),i=[],n="";for(let r of e)n=n?n+o+r:r,i.push({label:r,path:n});return i}function N(t){let o=z(t);return o.length<2?null:o[o.length-2].path}var de=(t,o)=>o.path;function ue(t,o){if(t&1){let e=LD();_i(0,"input",1),gh("ngModelChange",function(n){Pu(e);let r=VD();return Lu(r.path.set(n))}),Kc(),oE(),_i(1,"button",2),gh("click",function(){Pu(e);let n=VD();return Lu(n.showBrowser())}),vw(2),Rw(3,"transloco"),Kc();}if(t&2){let e=VD();ch("ngModel",e.path()),sE(),gI(2),nl(" ",Ow(3,2,e.selectMode()==="directory"?"file-browser.browseDirectory":"file-browser.browse")," ");}}function _e(t,o){if(t&1){let e=LD();_i(0,"button",11),gh("click",function(){Pu(e);let n=VD().$implicit,r=VD(2);return Lu(r.loadDir(n.path))}),vw(1),Kc(),_i(2,"span",12),vw(3,"/"),Kc();}if(t&2){let e=VD().$implicit;ah("data-testid","file-browser-crumb-"+e.label),gI(),nl(" ",e.label," ");}}function fe(t,o){if(t&1&&(_i(0,"span",10),vw(1),Kc()),t&2){let e=VD().$implicit;ah("data-testid","file-browser-crumb-"+e.label),gI(),Ph(e.label);}}function he(t,o){if(t&1&&bD(0,_e,4,2)(1,fe,2,2,"span",10),t&2){let e=o.$index,i=o.$count;_D(e!==i-1?0:1);}}function be(t,o){t&1&&(_i(0,"p",5),vw(1),Rw(2,"transloco"),Kc()),t&2&&(gI(),Ph(Ow(2,1,"common.loading")));}function Ce(t,o){if(t&1&&(_i(0,"p",6),vw(1),Kc()),t&2){let e=VD(2);gI(),Ph(e.error());}}function ge(t,o){if(t&1){let e=LD();_i(0,"li")(1,"button",13),gh("click",function(){let n=Pu(e),r=VD(3);return Lu(r.loadDir(n))}),vw(2," ../ "),Kc()();}}function we(t,o){if(t&1){let e=LD();_i(0,"li")(1,"button",14),gh("click",function(){let n=Pu(e).$implicit,r=VD(3);return Lu(r.onEntry(n))}),vw(2),Kc()();}if(t&2){let e=o.$implicit,i=VD(3);gI(),Mh("dir",e.isDirectory)("selected",i.isSelected(e)),ah("data-testid","file-browser-entry-"+e.name),gI(),Lh(" ",e.name,"",e.isDirectory?"/":""," ");}}function xe(t,o){if(t&1&&(_i(0,"ul",7),bD(1,ge,3,0,"li"),ND(2,we,3,7,"li",null,de),Kc()),t&2){let e,i=VD(2);gI(),_D((e=i.parentDir())?1:-1,e),gI(),xD(i.entries());}}function ye(t,o){if(t&1){let e=LD();_i(0,"button",15),gh("click",function(){Pu(e);let n=VD(2);return Lu(n.useCurrentFolder())}),vw(1),Rw(2,"transloco"),Kc();}t&2&&(gI(),nl(" ",Ow(2,1,"file-browser.useFolder")," "));}function Me(t,o){if(t&1){let e=LD();_i(0,"p",3),vw(1),Rw(2,"transloco"),Kc(),_i(3,"nav",4),ND(4,he,2,1,null,null,de),Kc(),bD(6,be,3,3,"p",5)(7,Ce,2,1,"p",6)(8,xe,4,1,"ul",7),_i(9,"button",8),gh("click",function(){Pu(e);let n=VD();return Lu(n.showManual())}),vw(10),Rw(11,"transloco"),Kc(),bD(12,ye,3,3,"button",9);}if(t&2){let e=VD();gI(),nl(" ",e.path()||Ow(2,4,e.selectMode()==="directory"?"file-browser.emptySelectionDirectory":"file-browser.emptySelection")," "),gI(3),xD(e.crumbs()),gI(2),_D(e.loading()?6:e.error()?7:8),gI(4),nl(" ",Ow(11,6,"file-browser.enterManually")," "),gI(2),_D(e.selectMode()==="directory"&&!e.loading()&&!e.error()?12:-1);}}var qe=(()=>{class t{constructor(){this.filesystem=C(pe),this.transloco=C(Ve),this.destroyRef=C(at),this.path=U0(""),this.selectMode=$0("file"),this.manual=qo(false),this.currentDir=qo(""),this.entries=qo([]),this.loading=qo(false),this.error=qo(null),this.crumbs=Hw(()=>z(this.currentDir())),this.parentDir=Hw(()=>N(this.currentDir()));}ngOnInit(){this.openAround(this.path());}isSelected(e){return this.selectMode()==="directory"?e.isDirectory&&e.path===this.path():!e.isDirectory&&e.path===this.path()}onEntry(e){if(e.isDirectory){this.loadDir(e.path);return}this.selectMode()==="file"&&this.path.set(e.path);}useCurrentFolder(){this.path.set(this.currentDir());}loadDir(e){this.loading.set(true),this.error.set(null),this.filesystem.browse(e).pipe(ue$1(this.destroyRef)).subscribe({next:i=>this.applyListing(i),error:i=>{this.loading.set(false),this.error.set(this.errorMessage(i,this.transloco.translate("file-browser.loadFailed")));}});}showManual(){this.manual.set(true);}showBrowser(){this.manual.set(false),this.openAround(this.path());}openAround(e){let i=e.trim();if(!i){this.loadDir(void 0);return}this.loading.set(true),this.error.set(null),this.filesystem.browse(i).pipe(ue$1(this.destroyRef)).subscribe({next:n=>this.applyListing(n),error:()=>this.loadDir(N(i)??void 0)});}applyListing(e){this.currentDir.set(e.path),this.entries.set(e.entries),this.loading.set(false),this.error.set(null);}errorMessage(e,i){return e instanceof o||e instanceof Error?e.message:i}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275cmp=QE({type:t,selectors:[["app-file-browser"]],inputs:{path:[1,"path"],selectMode:[1,"selectMode"]},outputs:{path:"pathChange"},decls:3,vars:1,consts:[["data-testid","file-browser",1,"file-browser"],["nz-input","","data-testid","context-file-path",3,"ngModelChange","ngModel"],["nz-button","","type","button","data-testid","file-browser-browse-toggle",3,"click"],["data-testid","file-browser-selected",1,"selected"],["data-testid","file-browser-breadcrumbs",1,"crumbs"],["data-testid","file-browser-loading"],["data-testid","file-browser-error",1,"error"],["data-testid","file-browser-entries",1,"entries"],["nz-button","","nzType","link","type","button","data-testid","file-browser-manual-toggle",3,"click"],["nz-button","","nzType","primary","type","button","data-testid","file-browser-use-folder"],[1,"current"],["nz-button","","nzType","link","type","button",3,"click"],["aria-hidden","true",1,"sep"],["type","button","data-testid","file-browser-up",1,"entry","dir",3,"click"],["type","button",1,"entry",3,"click"],["nz-button","","nzType","primary","type","button","data-testid","file-browser-use-folder",3,"click"]],template:function(i,n){i&1&&(_i(0,"div",0),bD(1,ue,4,4)(2,Me,13,8),Kc()),i&2&&(gI(),_D(n.manual()?1:2));},dependencies:[Mi,n8,S4,J6,k3,dd,zc,t7,y7,ai,z$1,Kt],styles:[".file-browser[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.45rem}.selected[_ngcontent-%COMP%]{margin:0;font-size:.85rem;color:#44403c;overflow-wrap:anywhere;word-break:break-word}.crumbs[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;gap:.1rem;font-size:.85rem}.crumbs[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding-inline:.15rem;height:auto}.sep[_ngcontent-%COMP%]{color:#a8a29e}.current[_ngcontent-%COMP%]{color:#1c1917;font-weight:600}.entries[_ngcontent-%COMP%]{list-style:none;margin:0;padding:.2rem 0;max-height:12rem;overflow:auto;border:1px solid #e7e5e4;background:#fff}.entry[_ngcontent-%COMP%]{display:block;width:100%;text-align:left;border:0;background:transparent;padding:.3rem .6rem;cursor:pointer;font:inherit;color:inherit}.entry[_ngcontent-%COMP%]:hover{background:#f5f5f4}.entry.dir[_ngcontent-%COMP%]{font-weight:600}.entry.selected[_ngcontent-%COMP%]{background:#e7e5e4}.error[_ngcontent-%COMP%]{margin:0;color:#9f1239}"]});}}return t})();export{qe as q};
|
package/static/chunk-D6YfO72h.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {I,g,b,v,T,y,h,E,P,A,j}from'./chunk-BbcTWKT2.js';import {N as Nt,K as Ke}from'./chunk-BAc0DRm8.js';import {$ as $$1,F,B}from'./chunk-A4AkMf2s.js';import {y as yx,o as oy,U as Um,J as J_,M as M_,a as ay}from'./chunk-BUuwGTt7.js';import {M as Me,z as zt}from'./chunk-BNOYZq-b.js';import {X as Xt,Z as Zn$1}from'./chunk-CDWIMt6y.js';import'./chunk-BhGgxvgu.js';import {a as ai$1,z,o as ot,b as at$1,i as it,r as rt}from'./chunk-CWbxWv5I.js';import'./chunk-Ojn34cvU.js';import {C,a as ae,T as Ie,aj as $,b as at,V as Ve,aS as O,aT as de,al as Se,q as qo,H as Hw,u as ue,s,r,o,Q as QE,M as Mi$1,n as n8,am as S4,J as J6,k as k3,L as Ln$1,d as dd,z as zc,c as t7,Z as y7,X as Xb,e as V5,D as D5,K as Kt,f as _i$1,v as vw,g as Kc,R as Rw,h as gh,m as bD,p as gI,P as Ph,O as Ow,x as ch,w as nl,B as _D,a0 as $0,a1 as B0,W as rd,t as t$1,aU as $6,N as ND,a5 as ah,A as xD,E as VD,F as LD,j as oE,S as SD,a7 as MD,y as sE,an as YE,ao as uu,aV as Y0,aF as Z0,aW as N1,aX as q0,ar as _r,aY as Ee,au as a3,aw as Le,aZ as ga,a_ as j3,ax as m1,a$ as za,b0 as Uw,b1 as W0,b2 as D8,b3 as p9,b4 as a9,b5 as Kf,Y as Bw,b6 as g9,aA as pt,aB as Se$1,b7 as va,b8 as es,b9 as BD,aN as nh,ba as Lw,aG as Sw,aH as h1,bb as B1,aI as wo,bc as rD,bd as R4,be as cw,bf as Dh,bg as GD,bh as Eh,bi as U0,a4 as Mh,l as lh,a2 as Pw,a3 as xw,bj as zD,G as Pu,I as Lu,bk as Vh,bl as jh,bm as $D,bn as ww,a6 as Nw}from'./main-MNK6ZYDO.js';import {U}from'./chunk-Cf_xd8ER.js';import {G as Gn$1,u as un$1}from'./chunk-eSxb3-OU.js';import {W,I as I$1}from'./chunk-DNOjVPY0.js';import {L as Lt,u as ut}from'./chunk-3mppll1n.js';import'./chunk-CEcbtdnK.js';var fn=["input"],Cn=["inputNumberHost"],gn=[[["","nzInputAddonBefore",""]],[["","nzInputAddonAfter",""]],[["","nzInputPrefix",""]],[["","nzInputSuffix",""]],[["","nzInputNumberUpIcon",""]],[["","nzInputNumberDownIcon",""]]],hn=["[nzInputAddonBefore]","[nzInputAddonAfter]","[nzInputPrefix]","[nzInputSuffix]","[nzInputNumberUpIcon]","[nzInputNumberDownIcon]"];function bn(i,l){}function wn(i,l){if(i&1&&nh(0,bn,0,0,"ng-template",8),i&2){VD();let e=zD(4);ch("ngTemplateOutlet",e);}}function vn(i,l){}function zn(i,l){if(i&1&&nh(0,vn,0,0,"ng-template",8),i&2){VD();let e=zD(8);ch("ngTemplateOutlet",e);}}function Sn(i,l){}function yn(i,l){if(i&1&&nh(0,Sn,0,0,"ng-template",8),i&2){VD();let e=zD(12);ch("ngTemplateOutlet",e);}}function Mn(i,l){if(i&1&&vw(0),i&2){let e=VD(3);Ph(e.nzAddonBefore());}}function Tn(i,l){i&1&&(_i$1(0,"div",10),$D(1,0,null,Mn,1,1),Kc());}function Nn(i,l){}function In(i,l){if(i&1&&nh(0,Nn,0,0,"ng-template",8),i&2){VD(2);let e=zD(6);ch("ngTemplateOutlet",e);}}function kn(i,l){}function En(i,l){if(i&1&&nh(0,kn,0,0,"ng-template",8),i&2){VD(2);let e=zD(10);ch("ngTemplateOutlet",e);}}function Vn(i,l){if(i&1&&vw(0),i&2){let e=VD(3);Ph(e.nzAddonAfter());}}function Fn(i,l){i&1&&(_i$1(0,"div",10),$D(1,1,null,Vn,1,1),Kc());}function An(i,l){if(i&1&&(_i$1(0,"div",9),bD(1,Tn,3,0,"div",10),bD(2,In,1,1,null,8)(3,En,1,1,null,8),bD(4,Fn,3,0,"div",10),Kc()),i&2){let e=VD();gI(),_D(e.hasAddonBefore()?1:-1),gI(),_D(e.hasAffix()?2:3),gI(2),_D(e.hasAddonAfter()?4:-1);}}function $n(i,l){}function Pn(i,l){if(i&1&&(_i$1(0,"div"),nh(1,$n,0,0,"ng-template",8),Kc()),i&2){let e=VD(),n=zD(8);cw(e.affixWrapperClass()),gI(),ch("ngTemplateOutlet",n);}}function Dn(i,l){if(i&1&&vw(0),i&2){let e=VD(3);Ph(e.nzPrefix());}}function Bn(i,l){i&1&&(_i$1(0,"span",11),$D(1,2,null,Dn,1,1),Kc());}function Ln(i,l){}function Wn(i,l){if(i&1&&vw(0),i&2){let e=VD(3);Ph(e.nzSuffix());}}function On(i,l){if(i&1&&lh(0,"nz-form-item-feedback-icon",13),i&2){let e=VD(3);ch("status",e.finalStatus());}}function jn(i,l){if(i&1&&(_i$1(0,"span",12),$D(1,3,null,Wn,1,1),bD(3,On,1,1,"nz-form-item-feedback-icon",13),Kc()),i&2){let e=VD(2);gI(3),_D(e.hasFeedback()&&e.finalStatus()?3:-1);}}function Rn(i,l){if(i&1&&(bD(0,Bn,3,0,"span",11),nh(1,Ln,0,0,"ng-template",8),bD(2,jn,4,1,"span",12)),i&2){let e=VD(),n=zD(10);_D(e.hasPrefix()?0:-1),gI(),ch("ngTemplateOutlet",n),gI(),_D(e.hasSuffix()?2:-1);}}function Kn(i,l){}function Hn(i,l){if(i&1&&(_i$1(0,"div",null,5),nh(2,Kn,0,0,"ng-template",8),Kc()),i&2){let e=VD(),n=zD(12);cw(e.inputNumberClass()),gI(2),ch("ngTemplateOutlet",n);}}function qn(i,l){i&1&&lh(0,"nz-icon",20);}function Gn(i,l){i&1&&lh(0,"nz-icon",21);}function Un(i,l){if(i&1){let e=LD();_i$1(0,"div",17,7),gh("mouseup",function(){Pu(e);let t=VD(2);return Lu(t.stopAutoStep())})("mouseleave",function(){Pu(e);let t=VD(2);return Lu(t.stopAutoStep())}),_i$1(2,"span",18),gh("mousedown",function(t){Pu(e);let o=VD(2);return Lu(o.onStepMouseDown(t,true))}),$D(3,4,null,qn,1,0),Kc(),_i$1(5,"span",19),gh("mousedown",function(t){Pu(e);let o=VD(2);return Lu(o.onStepMouseDown(t,false))}),$D(6,5,null,Gn,1,0),Kc()();}if(i&2){let e=VD(2);gI(2),Mh("ant-input-number-handler-up-disabled",e.upDisabled()),ah("aria-disabled",e.upDisabled()),gI(3),Mh("ant-input-number-handler-down-disabled",e.downDisabled()),ah("aria-disabled",e.downDisabled());}}function Zn(i,l){if(i&1){let e=LD();bD(0,Un,8,6,"div",14),_i$1(1,"div",15)(2,"input",16,6),gh("input",function(){Pu(e);let t=zD(3),o=VD();return Lu(o.onInput(t.value))})("wheel",function(t){Pu(e);let o=VD();return Lu(o.onWheel(t))}),Kc()();}if(i&2){let e=VD();_D(e.nzControls()?0:-1),gI(2),ch("value",e.displayValue())("placeholder",e.nzPlaceHolder()??"")("disabled",e.finalDisabled())("readOnly",e.nzReadOnly()),ah("aria-valuemin",e.nzMin())("aria-valuemax",e.nzMax())("id",e.nzId())("step",e.nzStep())("value",e.displayValue());}}var Ze=(()=>{class i{nzId=$0(null);nzSize=$0("default");nzPlaceHolder=$0(null);nzStatus=$0("");nzVariant=$0();nzStep=$0(1,{transform:Y0});nzMin=$0(Number.MIN_SAFE_INTEGER,{transform:Y0});nzMax=$0(Number.MAX_SAFE_INTEGER,{transform:Y0});nzPrecision=$0(null);nzParser=$0();nzFormatter=$0();nzDisabled=$0(false,{transform:Z0});nzReadOnly=$0(false,{transform:Z0});nzAutoFocus=$0(false,{transform:Z0});nzKeyboard=$0(true,{transform:Z0});nzControls=$0(true,{transform:Z0});nzChangeOnWheel=$0(true,{transform:Z0});nzPrefix=$0();nzSuffix=$0();nzAddonBefore=$0();nzAddonAfter=$0();nzBlur=B0();nzFocus=B0();nzOnStep=B0();onChange=()=>{};onTouched=()=>{};isDisabledFirstChange=true;compactSize=C(N1,{optional:true});inputRef=q0.required("input");hostRef=q0("inputNumberHost");elementRef=C(_r);injector=C(Ee);focusMonitor=C(a3);directionality=C(Le);nzFormStatusService=C(ga,{optional:true});autoStepTimer=null;defaultFormatter=e=>{let n=this.nzPrecision();return j3(n)?e.toFixed(n):e.toString()};value=qo(null);displayValue=qo("");formSize=C(m1,{optional:true});formVariant=C(za,{optional:true});dir=C(Le).valueSignal;focused=qo(false);hasFeedback=qo(false);finalStatus=Uw(()=>this.nzStatus());finalDisabled=Uw(()=>this.nzDisabled());prefix=W0(ot);suffix=W0(at$1);addonBefore=W0(it);addonAfter=W0(rt);hasPrefix=Hw(()=>!!this.nzPrefix()||!!this.prefix());hasSuffix=Hw(()=>!!this.nzSuffix()||!!this.suffix()||this.hasFeedback());hasAffix=Hw(()=>this.hasPrefix()||this.hasSuffix());hasAddonBefore=Hw(()=>!!this.nzAddonBefore()||!!this.addonBefore());hasAddonAfter=Hw(()=>!!this.nzAddonAfter()||!!this.addonAfter());hasAddon=Hw(()=>this.hasAddonBefore()||this.hasAddonAfter());class=Hw(()=>this.hasAddon()?this.groupWrapperClass():this.hasAffix()?this.affixWrapperClass():this.inputNumberClass());inputNumberClass=Hw(()=>r(r({"ant-input-number":true,"ant-input-number-lg":this.finalSize()==="large","ant-input-number-sm":this.finalSize()==="small","ant-input-number-disabled":this.finalDisabled(),"ant-input-number-readonly":this.nzReadOnly(),"ant-input-number-focused":this.focused(),"ant-input-number-rtl":this.dir()==="rtl","ant-input-number-in-form-item":!!this.nzFormStatusService,"ant-input-number-out-of-range":this.value()!==null&&!Ge(this.value(),this.nzMin(),this.nzMax())},p9("ant-input-number",this.finalVariant())),D8("ant-input-number",this.finalStatus(),this.hasFeedback())));affixWrapperClass=Hw(()=>r(r({"ant-input-number-affix-wrapper":true,"ant-input-number-affix-wrapper-disabled":this.finalDisabled(),"ant-input-number-affix-wrapper-readonly":this.nzReadOnly(),"ant-input-number-affix-wrapper-focused":this.focused(),"ant-input-number-affix-wrapper-rtl":this.dir()==="rtl"},D8("ant-input-number-affix-wrapper",this.finalStatus(),this.hasFeedback())),p9("ant-input-number-affix-wrapper",this.finalVariant())));groupWrapperClass=Hw(()=>r(r({"ant-input-number-group-wrapper":true,"ant-input-number-group-wrapper-rtl":this.dir()==="rtl"},D8("ant-input-number-group-wrapper",this.finalStatus(),this.hasFeedback())),p9("ant-input-number-group-wrapper",this.finalVariant())));finalSize=Hw(()=>this.formSize?.()?this.formSize():this.compactSize?this.compactSize():this.nzSize());finalVariant=Hw(()=>this.nzVariant()||this.formVariant?.()||"outlined");upDisabled=Hw(()=>!a9(this.value())&&this.value()>=this.nzMax());downDisabled=Hw(()=>!a9(this.value())&&this.value()<=this.nzMin());constructor(){let e=C(at);Kf(()=>{let n=this.hostRef(),t=n||this.elementRef;this.focusMonitor.monitor(t,true).pipe(ue(e)).subscribe(o=>{Bw(()=>{this.focused.set(!!o),o?this.nzFocus.emit():(this.fixValue(),this.onTouched(),this.nzBlur.emit());});}),e.onDestroy(()=>{this.focusMonitor.stopMonitoring(t);});}),this.nzFormStatusService?.formStatusChanges.pipe(ue()).subscribe(({status:n,hasFeedback:t})=>{this.finalStatus.set(n),this.hasFeedback.set(t);});}ngOnInit(){this.nzAutoFocus()&&Kf(()=>this.focus(),{injector:this.injector});}writeValue(e){a9(e)&&(e=null),Bw(()=>{this.value.set(e),this.setValue(e);});}registerOnChange(e){this.onChange=e;}registerOnTouched(e){this.onTouched=e;}setDisabledState(e){Bw(()=>{this.finalDisabled.set(this.isDisabledFirstChange&&this.nzDisabled()||e);}),this.isDisabledFirstChange=false;}focus(e){g9(this.inputRef().nativeElement,e);}blur(){this.inputRef().nativeElement.blur();}step(e,n,t){if(n&&this.upDisabled()||!n&&this.downDisabled())return;let o=e.shiftKey?this.nzStep()*10:this.nzStep();n||(o=-o);let E=10**nn(o),W=tn((Math.round((this.value()||0)*E)+Math.round(o*E))/E,this.nzMin(),this.nzMax(),this.nzPrecision());this.setValue(W),this.nzOnStep.emit({type:n?"up":"down",value:this.value(),offset:this.nzStep(),emitter:t}),this.focus();}setValue(e){let n=this.nzFormatter()??this.defaultFormatter,t=this.nzPrecision();j3(t)&&(e&&=+e.toFixed(t));let o=a9(e)?"":n(e);this.displayValue.set(o),this.updateValue(e);}setValueByTyping(e){if(this.displayValue.set(e),e===""){this.updateValue(null);return}let t=(this.nzParser()??en)(e);if(Jn(e)||Number.isNaN(t))return;let o=this.nzFormatter();if(o){let d=o(t);this.displayValue.set(d);}Ge(t,this.nzMin(),this.nzMax())&&this.updateValue(t);}updateValue(e){this.value()!==e&&(this.value.set(e),this.onChange(e));}fixValue(){let e=this.displayValue();if(e==="")return;let t=(this.nzParser()??en)(e);if(Number.isNaN(t))t=this.value();else {let o=this.nzPrecision();j3(o)&&nn(t)!==o&&(t=+t.toFixed(o)),Ge(t,this.nzMin(),this.nzMax())||(t=tn(t,this.nzMin(),this.nzMax(),o));}this.setValue(t);}stopAutoStep(){this.autoStepTimer!==null&&(clearTimeout(this.autoStepTimer),this.autoStepTimer=null);}onStepMouseDown(e,n){e.preventDefault(),this.stopAutoStep(),this.step(e,n,"handler");let t=()=>{this.step(e,n,"handler"),this.autoStepTimer=setTimeout(t,Qn);};this.autoStepTimer=setTimeout(t,Yn);}onKeyDown(e){switch(e.keyCode){case 38:e.preventDefault(),this.nzKeyboard()&&this.step(e,true,"keyboard");break;case 40:e.preventDefault(),this.nzKeyboard()&&this.step(e,false,"keyboard");break;case 13:this.fixValue();break}}onInput(e){this.setValueByTyping(e);}onWheel(e){this.finalDisabled()||this.nzReadOnly()||!this.nzChangeOnWheel()||(e.preventDefault(),this.step(e,e.deltaY<0,"wheel"));}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=QE({type:i,selectors:[["nz-input-number"]],contentQueries:function(n,t,o){n&1&&Eh(o,t.prefix,ot,5)(o,t.suffix,at$1,5)(o,t.addonBefore,it,5)(o,t.addonAfter,rt,5),n&2&&GD(4);},viewQuery:function(n,t){n&1&&Dh(t.inputRef,fn,5)(t.hostRef,Cn,5),n&2&&GD(2);},hostVars:2,hostBindings:function(n,t){n&1&&gh("keydown",function(d){return t.onKeyDown(d)}),n&2&&cw(t.class());},inputs:{nzId:[1,"nzId"],nzSize:[1,"nzSize"],nzPlaceHolder:[1,"nzPlaceHolder"],nzStatus:[1,"nzStatus"],nzVariant:[1,"nzVariant"],nzStep:[1,"nzStep"],nzMin:[1,"nzMin"],nzMax:[1,"nzMax"],nzPrecision:[1,"nzPrecision"],nzParser:[1,"nzParser"],nzFormatter:[1,"nzFormatter"],nzDisabled:[1,"nzDisabled"],nzReadOnly:[1,"nzReadOnly"],nzAutoFocus:[1,"nzAutoFocus"],nzKeyboard:[1,"nzKeyboard"],nzControls:[1,"nzControls"],nzChangeOnWheel:[1,"nzChangeOnWheel"],nzPrefix:[1,"nzPrefix"],nzSuffix:[1,"nzSuffix"],nzAddonBefore:[1,"nzAddonBefore"],nzAddonAfter:[1,"nzAddonAfter"]},outputs:{nzBlur:"nzBlur",nzFocus:"nzFocus",nzOnStep:"nzOnStep"},exportAs:["nzInputNumber"],features:[Sw([{provide:h1,useExisting:wo(()=>i),multi:true},{provide:B1,useValue:"input-number"}]),rD([R4])],ngContentSelectors:hn,decls:13,vars:1,consts:[["inputNumberWithAddonInner",""],["inputNumberWithAffix",""],["inputNumberWithAffixInner",""],["inputNumber",""],["inputNumberInner",""],["inputNumberHost",""],["input",""],["handlers",""],[3,"ngTemplateOutlet"],[1,"ant-input-number-wrapper","ant-input-number-group"],[1,"ant-input-number-group-addon"],[1,"ant-input-number-prefix"],[1,"ant-input-number-suffix"],[3,"status"],[1,"ant-input-number-handler-wrap"],[1,"ant-input-number-input-wrap"],["autocomplete","off","role","spinbutton",1,"ant-input-number-input",3,"input","wheel","value","placeholder","disabled","readOnly"],[1,"ant-input-number-handler-wrap",3,"mouseup","mouseleave"],["role","button","unselectable","on",1,"ant-input-number-handler","ant-input-number-handler-up",3,"mousedown"],["role","button","unselectable","on",1,"ant-input-number-handler","ant-input-number-handler-down",3,"mousedown"],["nzType","up",1,"ant-input-number-handler-up-inner"],["nzType","down",1,"ant-input-number-handler-down-inner"]],template:function(n,t){n&1&&(BD(gn),bD(0,wn,1,1,null,8)(1,zn,1,1,null,8)(2,yn,1,1,null,8),nh(3,An,5,3,"ng-template",null,0,Lw)(5,Pn,2,3,"ng-template",null,1,Lw)(7,Rn,3,3,"ng-template",null,2,Lw)(9,Hn,3,3,"ng-template",null,3,Lw)(11,Zn,4,10,"ng-template",null,4,Lw)),n&2&&_D(t.hasAddon()?0:t.hasAffix()?1:2);},dependencies:[pt,Se$1,va,es],encapsulation:2})}return i})(),Qn=200,Yn=600;function en(i){let l=i.trim().replace(/,/g,"").replace(/。/g,".");return l.length?+l:NaN}function Ge(i,l,e){return i>=l&&i<=e}function tn(i,l,e,n=null){if(n===null)return i<l?l:i>e?e:i;let t=+i.toFixed(n),o=Math.pow(10,n);return t<l?Math.ceil(l*o)/o:t>e?Math.floor(e*o)/o:t}function nn(i){return i.toString().split(".")[1]?.length||0}function Jn(i){return /[.。](\d*0)?$/.test(i.toString())}var on=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=YE({type:i});static \u0275inj=uu({imports:[Ze]})}return i})();function ei(i,l){if(i&1){let e=LD();_i$1(0,"div",1)(1,"input",3),Vh("ngModelChange",function(t){let o=Pu(e).$implicit;return ww(o.key,t)||(o.key=t),Lu(t)}),gh("ngModelChange",function(){Pu(e);let t=VD();return Lu(t.emitRows())}),Kc(),oE(),_i$1(2,"input",4),Vh("ngModelChange",function(t){let o=Pu(e).$implicit;return ww(o.value,t)||(o.value=t),Lu(t)}),gh("ngModelChange",function(){Pu(e);let t=VD();return Lu(t.emitRows())}),Kc(),oE(),_i$1(3,"button",5),gh("click",function(){let t=Pu(e).$index,o=VD();return Lu(o.remove(t))}),vw(4,"Remove"),Kc()();}if(i&2){let e=l.$implicit;gI(),jh("ngModel",e.key),sE(),gI(),jh("ngModel",e.value),sE();}}var dn=(()=>{class i{constructor(){this.rows=U0.required();}add(){this.rows.update(e=>[...e,{key:"",value:""}]);}remove(e){this.rows.update(n=>n.filter((t,o)=>o!==e));}emitRows(){this.rows.set(this.rows().map(e=>r({},e)));}static{this.\u0275fac=function(n){return new(n||i)};}static{this.\u0275cmp=QE({type:i,selectors:[["app-key-value-editor"]],inputs:{rows:[1,"rows"]},outputs:{rows:"rowsChange"},decls:5,vars:0,consts:[[1,"kv-editor"],[1,"kv-row"],["nz-button","","nzType","dashed","type","button",3,"click"],["nz-input","","placeholder","key",3,"ngModelChange","ngModel"],["nz-input","","placeholder","value",3,"ngModelChange","ngModel"],["nz-button","","nzType","default","type","button",3,"click"]],template:function(n,t){n&1&&(_i$1(0,"div",0),ND(1,ei,5,2,"div",1,MD),_i$1(3,"button",2),gh("click",function(){return t.add()}),vw(4,"Add param"),Kc()()),n&2&&(gI(),xD(t.rows()));},dependencies:[n8,S4,J6,k3,dd,zc,t7,y7,ai$1,z],styles:[".kv-editor[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.kv-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr auto;gap:.5rem;align-items:center}"]});}}return i})();function Te(i,l){let e=M_(i);return B(l,e).map(n=>n.id)}function _n(i,l){return Te(i,l)[0]??""}function cn(i,l,e){let n=Te(l,e);if(n.includes(i))return null;let t=(e?.providerInstances??[]).find(o=>o.id===i);return t?ay(t)&&M_(l).includes(t.subjectType)?null:{required:i,active:n[0]??t.id}:{required:i,active:n[0]??""}}function mn(i,l,e){if(i.extendedAction?.providerId){let n=cn(i.extendedAction.providerId,l,e);if(n)return n}return i.target?.source?cn(i.target.source,i.target.subjectType,e):null}function un(i){return i.extendedAction!=null}var oi=()=>[];function ri(i,l){return this.trackKey(l)}var Ne=(i,l)=>l.id,ai=(i,l)=>l.actionId,si=(i,l)=>l.name;function li(i,l){if(i&1&&(lh(0,"nz-option",15),Rw(1,"transloco")),i&2){let e=l.$implicit,n=VD(3);ch("nzValue",e)("nzLabel",Ow(1,2,n.stepTypeKey(e)));}}function pi(i,l){if(i&1&&(lh(0,"nz-option",15),Rw(1,"transloco")),i&2){let e=l.$implicit,n=VD(4);ch("nzValue",e)("nzLabel",Ow(1,2,n.outputFormatKey(e)));}}function di(i,l){if(i&1&&lh(0,"nz-option",15),i&2){let e=l.$implicit;ch("nzValue",e.id)("nzLabel",e.displayName);}}function ci(i,l){if(i&1){let e=LD();_i$1(0,"nz-tag",26),gh("nzOnClose",function(){let t=Pu(e).$implicit,o=VD(3).$index,d=VD();return Lu(d.removeContextFile(o,t.id))}),vw(1),Kc();}if(i&2){let e=l.$implicit;ah("data-testid","context-file-chip-"+e.id),gI(),nl(" ",e.name," ");}}function _i(i,l){i&1&&(_i$1(0,"span",24),vw(1),Rw(2,"transloco"),Kc()),i&2&&(gI(),Ph(Ow(2,1,"step-list.contextFilesEmpty")));}function mi(i,l){if(i&1){let e=LD();_i$1(0,"label",16)(1,"span"),vw(2),Rw(3,"transloco"),Kc(),_i$1(4,"textarea",20),gh("ngModelChange",function(t){Pu(e);let o=VD(2).$index,d=VD();return Lu(d.patchAt(o,{objective:t}))}),Kc(),oE(),Kc(),_i$1(5,"div",16)(6,"span"),vw(7),Rw(8,"transloco"),Kc(),_i$1(9,"nz-select",21),gh("ngModelChange",function(t){Pu(e);let o=VD(2).$index,d=VD();return Lu(d.patchAt(o,{outputFormat:t}))}),ND(10,pi,2,4,"nz-option",15,SD),Kc(),oE(),Kc(),_i$1(12,"div",16)(13,"span"),vw(14),Rw(15,"transloco"),Kc(),_i$1(16,"nz-select",21),gh("ngModelChange",function(t){Pu(e);let o=VD(2).$index,d=VD();return Lu(d.setAgentInstance(o,t))}),lh(17,"nz-option",15),Rw(18,"transloco"),ND(19,di,1,2,"nz-option",15,Ne),Kc(),oE(),Kc(),_i$1(21,"div",16)(22,"span"),vw(23),Rw(24,"transloco"),Kc(),_i$1(25,"div",22),ND(26,ci,2,2,"nz-tag",23,Ne,false,_i,3,3,"span",24),Kc(),_i$1(29,"button",25),gh("click",function(){Pu(e);let t=VD(2).$index,o=VD();return Lu(o.openContextFilePicker(t))}),vw(30),Rw(31,"transloco"),Kc()();}if(i&2){let e=VD(2),n=e.$implicit,t=e.$index,o=VD();gI(),ah("data-testid","agent-prompt-label-"+t),gI(),Ph(Ow(3,17,"step-list.objective")),gI(2),ch("ngModel",o.asAgent(n).objective),ah("data-testid","agent-objective-"+t),sE(),gI(3),Ph(Ow(8,19,"step-list.outputFormat.label")),gI(2),ch("ngModel",o.asAgent(n).outputFormat),ah("data-testid","agent-output-"+t),sE(),gI(),xD(o.outputFormats),gI(4),Ph(Ow(15,21,"step-list.agentInstance.label")),gI(2),ch("ngModel",o.asAgent(n).agentInstanceId??null),ah("data-testid","agent-instance-"+t),sE(),gI(),ch("nzValue",null)("nzLabel",Ow(18,23,"step-list.agentInstance.default")),gI(2),xD(o.agentInstanceOptions()),gI(2),ah("data-testid","agent-context-files-"+t),gI(2),Ph(Ow(24,25,"step-list.contextFiles")),gI(3),xD(o.selectedContextFiles(o.asAgent(n))),gI(3),ah("data-testid","select-context-files-"+t),gI(),nl(" ",Ow(31,27,"step-list.selectContextFiles")," ");}}function ui(i,l){if(i&1&&(lh(0,"nz-option",15),Rw(1,"transloco")),i&2){let e=l.$implicit,n=VD(4);ch("nzValue",e)("nzLabel",Ow(1,2,n.interactionKey(e)));}}function xi(i,l){if(i&1){let e=LD();_i$1(0,"div",16)(1,"span"),vw(2),Rw(3,"transloco"),Kc(),_i$1(4,"nz-select",21),gh("ngModelChange",function(t){Pu(e);let o=VD(2).$index,d=VD();return Lu(d.patchAt(o,{interaction:t}))}),ND(5,ui,2,4,"nz-option",15,SD),Kc(),oE(),Kc();}if(i&2){let e=VD(2),n=e.$implicit,t=e.$index,o=VD();gI(2),Ph(Ow(3,3,"step-list.interaction.label")),gI(2),ch("ngModel",o.asInteraction(n).interaction),ah("data-testid","interaction-type-"+t),sE(),gI(),xD(o.interactions);}}function fi(i,l){if(i&1){let e=LD();_i$1(0,"label",16)(1,"span"),vw(2),Rw(3,"transloco"),Kc(),_i$1(4,"textarea",20),gh("ngModelChange",function(t){Pu(e);let o=VD(2).$index,d=VD();return Lu(d.patchAt(o,{command:t}))}),Kc(),oE(),Kc();}if(i&2){let e=VD(2),n=e.$implicit,t=e.$index,o=VD();gI(2),Ph(Ow(3,3,"step-list.command")),gI(2),ch("ngModel",o.asShell(n).command),ah("data-testid","shell-command-"+t),sE();}}function Ci(i,l){if(i&1&&(lh(0,"nz-option",15),Rw(1,"transloco")),i&2){let e=l.$implicit,n=VD(4);ch("nzValue",e)("nzLabel",Ow(1,2,n.gitOperationKey(e)));}}function gi(i,l){if(i&1){let e=LD();_i$1(0,"label",16)(1,"span"),vw(2),Rw(3,"transloco"),Kc(),_i$1(4,"input",18),gh("ngModelChange",function(t){Pu(e);let o=VD(4).$index,d=VD();return Lu(d.setGitParam(o,"baseBranch",t))}),Kc(),oE(),Kc(),_i$1(5,"label",16)(6,"span"),vw(7),Rw(8,"transloco"),Kc(),_i$1(9,"input",18),gh("ngModelChange",function(t){Pu(e);let o=VD(4).$index,d=VD();return Lu(d.setGitParam(o,"branchName",t))}),Kc(),oE(),Kc();}if(i&2){let e=VD(4),n=e.$implicit,t=e.$index,o=VD();gI(2),Ph(Ow(3,6,"step-list.createWorktree.baseBranch")),gI(2),ch("ngModel",o.gitParam(o.asGit(n),"baseBranch")),ah("data-testid","git-base-branch-"+t),sE(),gI(3),Ph(Ow(8,8,"step-list.createWorktree.branchName")),gI(2),ch("ngModel",o.gitParam(o.asGit(n),"branchName")),ah("data-testid","git-branch-name-"+t),sE();}}function hi(i,l){if(i&1){let e=LD();_i$1(0,"label",16)(1,"span"),vw(2),Rw(3,"transloco"),Kc(),_i$1(4,"input",18),gh("ngModelChange",function(t){Pu(e);let o=VD(4).$index,d=VD();return Lu(d.setGitParam(o,"branch",t))}),Kc(),oE(),Kc();}if(i&2){let e=VD(4),n=e.$implicit,t=e.$index,o=VD();gI(2),Ph(Ow(3,3,"step-list.createWorktree.branch")),gI(2),ch("ngModel",o.gitParam(o.asGit(n),"branch")),ah("data-testid","git-branch-"+t),sE();}}function bi(i,l){if(i&1){let e=LD();_i$1(0,"div",16)(1,"span"),vw(2),Rw(3,"transloco"),Kc(),_i$1(4,"nz-select",21),gh("ngModelChange",function(t){Pu(e);let o=VD(3).$index,d=VD();return Lu(d.setCreateWorktreeMode(o,t))}),lh(5,"nz-option",27),Rw(6,"transloco"),lh(7,"nz-option",28),Rw(8,"transloco"),Kc(),oE(),Kc(),_i$1(9,"label",16)(10,"span"),vw(11),Rw(12,"transloco"),Kc(),_i$1(13,"input",18),gh("ngModelChange",function(t){Pu(e);let o=VD(3).$index,d=VD();return Lu(d.setGitParam(o,"repoPath",t))}),Kc(),oE(),Kc(),bD(14,gi,10,10)(15,hi,5,5,"label",16);}if(i&2){let e=VD(3),n=e.$implicit,t=e.$index,o=VD();gI(2),Ph(Ow(3,9,"step-list.createWorktree.mode")),gI(2),ch("ngModel",o.createWorktreeMode(o.asGit(n))),ah("data-testid","git-worktree-mode-"+t),sE(),gI(),ch("nzLabel",Ow(6,11,"step-list.createWorktree.newBranch")),gI(2),ch("nzLabel",Ow(8,13,"step-list.createWorktree.existingBranch")),gI(4),Ph(Ow(12,15,"step-list.createWorktree.repoPath")),gI(2),ch("ngModel",o.gitParam(o.asGit(n),"repoPath")),ah("data-testid","git-repo-path-"+t),sE(),gI(),_D(o.createWorktreeMode(o.asGit(n))==="new-branch"?14:15);}}function wi(i,l){if(i&1){let e=LD();_i$1(0,"div",16)(1,"span"),vw(2),Rw(3,"transloco"),Kc(),_i$1(4,"app-key-value-editor",29),gh("rowsChange",function(t){Pu(e);let o=VD(3),d=o.$implicit,E=o.$index,W=VD();return Lu(W.onParamRowsChange(E,d,t))}),Kc()();}if(i&2){let e=VD(3).$implicit,n=VD();gI(2),Ph(Ow(3,2,"step-list.params")),gI(2),ch("rows",n.paramRows(e));}}function vi(i,l){if(i&1){let e=LD();_i$1(0,"div",16)(1,"span"),vw(2),Rw(3,"transloco"),Kc(),_i$1(4,"nz-select",21),gh("ngModelChange",function(t){Pu(e);let o=VD(2).$index,d=VD();return Lu(d.patchAt(o,{operation:t}))}),ND(5,Ci,2,4,"nz-option",15,SD),Kc(),oE(),Kc(),bD(7,bi,16,17)(8,wi,5,4,"div",16);}if(i&2){let e=VD(2),n=e.$implicit,t=e.$index,o=VD();gI(2),Ph(Ow(3,4,"step-list.operation")),gI(2),ch("ngModel",o.asGit(n).operation),ah("data-testid","git-operation-"+t),sE(),gI(),xD(o.gitOperations),gI(2),_D(o.asGit(n).operation==="create_worktree"?7:8);}}function zi(i,l){if(i&1&&lh(0,"nz-alert",30),i&2){let e=VD(3).$index;ch("nzMessage",l),ah("data-testid","extended-action-mismatch-"+e);}}function Si(i,l){if(i&1&&(lh(0,"nz-option",15),Rw(1,"transloco")),i&2){let e=l.$implicit,n=VD(5);ch("nzValue",e)("nzLabel",Ow(1,2,n.subjectTypeKey(e)));}}function yi(i,l){if(i&1&&lh(0,"nz-option",15),i&2){let e=l.$implicit;ch("nzValue",e.id)("nzLabel",e.displayName);}}function Mi(i,l){if(i&1){let e=LD();_i$1(0,"div",16)(1,"span"),vw(2),Rw(3,"transloco"),Kc(),_i$1(4,"nz-select",21),gh("ngModelChange",function(t){Pu(e);let o=VD(3).$index,d=VD();return Lu(d.setTargetSubjectType(o,t))}),ND(5,Si,2,4,"nz-option",15,SD),Kc(),oE(),Kc(),_i$1(7,"div",16)(8,"span"),vw(9),Rw(10,"transloco"),Kc(),_i$1(11,"nz-select",34),Rw(12,"transloco"),gh("ngModelChange",function(t){Pu(e);let o=VD(3).$index,d=VD();return Lu(d.setTargetSource(o,t))}),ND(13,yi,1,2,"nz-option",15,Ne),Kc(),oE(),Kc(),_i$1(15,"label",16)(16,"span"),vw(17),Rw(18,"transloco"),Kc(),_i$1(19,"input",18),gh("ngModelChange",function(t){Pu(e);let o=VD(3).$index,d=VD();return Lu(d.setTargetSubjectId(o,t))}),Kc(),oE(),_i$1(20,"span",19),vw(21),Rw(22,"transloco"),Kc()();}if(i&2){let e=l,n=VD(3),t=n.$implicit,o=n.$index,d=VD();gI(2),Ph(Ow(3,11,"step-list.target.subjectType")),gI(2),ch("ngModel",e.subjectType),ah("data-testid","provider-action-target-type-"+o),sE(),gI(),xD(d.targetSubjectTypes),gI(4),Ph(Ow(10,13,"step-list.target.source")),gI(2),ch("ngModel",e.source||null)("nzPlaceHolder",Ow(12,15,"step-list.target.sourcePlaceholder")),ah("data-testid","provider-action-target-source-"+o),sE(),gI(2),xD(d.targetInstanceOptions(d.asProvider(t))),gI(4),Ph(Ow(18,17,"step-list.target.subjectId")),gI(2),ch("ngModel",e.subjectId),ah("data-testid","provider-action-target-id-"+o),sE(),gI(2),Ph(Ow(22,19,"step-list.target.subjectIdHint"));}}function Ti(i,l){if(i&1&&lh(0,"nz-option",15),i&2){let e=l.$implicit,n=VD(5);ch("nzValue",e)("nzLabel",n.providerLabel(e));}}function Ni(i,l){if(i&1&&lh(0,"nz-option",15),i&2){let e=l.$implicit;ch("nzValue",e.actionId)("nzLabel",e.label);}}function Ii(i,l){i&1&&(_i$1(0,"span",19),vw(1),Rw(2,"transloco"),Kc()),i&2&&(gI(),Ph(Ow(2,1,"step-list.extendedAction.empty")));}function ki(i,l){i&1&&(_i$1(0,"span",35),vw(1,"*"),Kc());}function Ei(i,l){if(i&1&&lh(0,"nz-option",15),i&2){let e=l.$implicit;ch("nzValue",e)("nzLabel",e);}}function Vi(i,l){if(i&1){let e=LD();_i$1(0,"nz-select",21),gh("ngModelChange",function(t){Pu(e);let o=VD().$implicit,d=VD(5).$index,E=VD();return Lu(E.setExtendedParam(d,o.name,t))}),ND(1,Ei,1,2,"nz-option",15,SD),Kc(),oE();}if(i&2){let e=VD().$implicit,n=VD(5),t=n.$implicit,o=n.$index,d=VD();ch("ngModel",d.extendedParamValue(d.asProvider(t),e.name)),ah("data-testid","extended-action-param-"+e.name+"-"+o),sE(),gI(),xD(e.options??Nw(2,oi));}}function Fi(i,l){if(i&1){let e=LD();_i$1(0,"input",18),gh("ngModelChange",function(t){Pu(e);let o=VD().$implicit,d=VD(5).$index,E=VD();return Lu(E.setExtendedParam(d,o.name,t))}),Kc(),oE();}if(i&2){let e=VD().$implicit,n=VD(5),t=n.$implicit,o=n.$index,d=VD();ch("ngModel",d.extendedParamValue(d.asProvider(t),e.name)),ah("data-testid","extended-action-param-"+e.name+"-"+o),sE();}}function Ai(i,l){if(i&1&&(_i$1(0,"label",16)(1,"span"),vw(2),bD(3,ki,2,0,"span",35),Kc(),bD(4,Vi,3,3,"nz-select",36)(5,Fi,1,2,"input",37),Kc()),i&2){let e=l.$implicit;gI(2),nl(" ",e.label," "),gI(),_D(e.required?3:-1),gI(),_D(e.type==="select"?4:5);}}function $i(i,l){i&1&&ND(0,Ai,6,3,"label",16,si),i&2&&xD(l.params);}function Pi(i,l){if(i&1){let e=LD();_i$1(0,"div",16)(1,"span"),vw(2),Rw(3,"transloco"),Kc(),_i$1(4,"nz-select",21),gh("ngModelChange",function(t){Pu(e);let o=VD(3).$index,d=VD();return Lu(d.setExtendedProvider(o,t))}),ND(5,Ti,1,2,"nz-option",15,SD),Kc(),oE(),Kc(),_i$1(7,"div",16)(8,"span"),vw(9),Rw(10,"transloco"),Kc(),_i$1(11,"nz-select",34),Rw(12,"transloco"),gh("ngModelChange",function(t){Pu(e);let o=VD(3).$index,d=VD();return Lu(d.setExtendedAction(o,t))}),ND(13,Ni,1,2,"nz-option",15,ai),Kc(),oE(),bD(15,Ii,3,3,"span",19),Kc(),bD(16,$i,2,0);}if(i&2){let e,n=VD(3),t=n.$implicit,o=n.$index,d=VD();gI(2),Ph(Ow(3,9,"step-list.extendedAction.provider")),gI(2),ch("ngModel",d.asProvider(t).extendedAction?.providerId),ah("data-testid","extended-action-provider-"+o),sE(),gI(),xD(d.extendedProviderOptions()),gI(4),Ph(Ow(10,11,"step-list.extendedAction.action")),gI(2),ch("ngModel",d.asProvider(t).extendedAction?.actionId||null)("nzPlaceHolder",Ow(12,13,"step-list.extendedAction.none")),ah("data-testid","extended-action-id-"+o),sE(),gI(2),xD(d.extendedDescriptors(d.asProvider(t))),gI(2),_D(d.extendedDescriptors(d.asProvider(t)).length===0?15:-1),gI(),_D((e=d.selectedExtendedDescriptor(d.asProvider(t)))?16:-1,e);}}function Di(i,l){if(i&1&&(lh(0,"nz-option",15),Rw(1,"transloco")),i&2){let e=l.$implicit,n=VD(5);ch("nzValue",e)("nzLabel",Ow(1,2,n.providerActionKey(e)));}}function Bi(i,l){if(i&1){let e=LD();_i$1(0,"div",16)(1,"span"),vw(2),Rw(3,"transloco"),Kc(),_i$1(4,"nz-select",21),gh("ngModelChange",function(t){Pu(e);let o=VD(3).$index,d=VD();return Lu(d.patchAt(o,{action:t}))}),ND(5,Di,2,4,"nz-option",15,SD),Kc(),oE(),Kc(),_i$1(7,"div",16)(8,"span"),vw(9),Rw(10,"transloco"),Kc(),_i$1(11,"app-key-value-editor",29),gh("rowsChange",function(t){Pu(e);let o=VD(3),d=o.$implicit,E=o.$index,W=VD();return Lu(W.onParamRowsChange(E,d,t))}),Kc()();}if(i&2){let e=VD(3),n=e.$implicit,t=e.$index,o=VD();gI(2),Ph(Ow(3,5,"step-list.action")),gI(2),ch("ngModel",o.asProvider(n).action),ah("data-testid","provider-action-"+t),sE(),gI(),xD(o.providerActions),gI(4),Ph(Ow(10,7,"step-list.params")),gI(2),ch("rows",o.paramRows(n));}}function Li(i,l){if(i&1){let e=LD();bD(0,zi,1,2,"nz-alert",30),_i$1(1,"label",31),gh("ngModelChange",function(t){Pu(e);let o=VD(2).$index,d=VD();return Lu(d.setTargetEnabled(o,t))}),vw(2),Rw(3,"transloco"),Kc(),oE(),bD(4,Mi,23,21),_i$1(5,"div",16)(6,"span"),vw(7),Rw(8,"transloco"),Kc(),_i$1(9,"nz-select",21),gh("ngModelChange",function(t){Pu(e);let o=VD(2).$index,d=VD();return Lu(d.setActionMode(o,t))}),lh(10,"nz-option",32),Rw(11,"transloco"),lh(12,"nz-option",33),Rw(13,"transloco"),Kc(),oE(),Kc(),bD(14,Pi,17,15)(15,Bi,12,9);}if(i&2){let e,n,t=VD(2),o=t.$implicit,d=t.$index,E=VD();_D((e=E.mismatchWarning(E.asProvider(o)))?0:-1,e),gI(),ch("ngModel",E.hasTarget(o)),ah("data-testid","provider-action-target-toggle-"+d),sE(),gI(),nl(" ",Ow(3,11,"step-list.target.toggle")," "),gI(2),_D((n=E.asProvider(o).target)?4:-1,n),gI(3),Ph(Ow(8,13,"step-list.extendedAction.mode")),gI(2),ch("ngModel",E.isExtended(o)?"extended":"portable"),ah("data-testid","provider-action-mode-"+d),sE(),gI(),ch("nzLabel",Ow(11,15,"step-list.extendedAction.portable")),gI(2),ch("nzLabel",Ow(13,17,"step-list.extendedAction.extended")),gI(2),_D(E.isExtended(o)?14:15);}}function Wi(i,l){if(i&1&&lh(0,"nz-option",15),i&2){let e=l.$implicit,n=VD(4);ch("nzValue",e.id)("nzLabel",n.workflowOptionLabel(e));}}function Oi(i,l){if(i&1){let e=LD();_i$1(0,"div",16)(1,"span"),vw(2),Rw(3,"transloco"),Kc(),_i$1(4,"nz-select",38),gh("ngModelChange",function(t){Pu(e);let o=VD(2).$index,d=VD();return Lu(d.patchAt(o,{workflowId:t}))}),ND(5,Wi,1,2,"nz-option",15,Ne),Kc(),oE(),Kc(),_i$1(7,"p",16)(8,"span"),vw(9),Rw(10,"transloco"),Kc(),_i$1(11,"code",39),vw(12,"selection"),Kc()();}if(i&2){let e=VD(2),n=e.$implicit,t=e.$index,o=VD();gI(2),Ph(Ow(3,4,"step-list.workflowId")),gI(2),ch("ngModel",o.asSubWorkflow(n).workflowId),ah("data-testid","sub-workflow-id-"+t),sE(),gI(),xD(o.availableWorkflows()),gI(4),Ph(Ow(10,6,"step-list.forEach"));}}function ji(i,l){if(i&1&&(lh(0,"nz-option",15),Rw(1,"transloco")),i&2){let e=l.$implicit,n=VD(4);ch("nzValue",e)("nzLabel",Ow(1,2,n.untilTypeKey(e)));}}function Ri(i,l){if(i&1){let e=LD();_i$1(0,"label",16)(1,"span"),vw(2),Rw(3,"transloco"),Kc(),_i$1(4,"input",18),gh("ngModelChange",function(t){Pu(e);let o=VD(3).$index,d=VD();return Lu(d.setUntilValue(o,t))}),Kc(),oE(),Kc();}if(i&2){let e=VD(3),n=e.$implicit,t=e.$index,o=VD();gI(2),Ph(Ow(3,3,"step-list.until.value")),gI(2),ch("ngModel",o.untilValue(o.asLoop(n))),ah("data-testid","loop-until-value-"+t),sE();}}function Ki(i,l){if(i&1&&(lh(0,"nz-option",15),Rw(1,"transloco")),i&2){let e=l.$implicit,n=VD(4);ch("nzValue",e)("nzLabel",Ow(1,2,n.onMaxIterationsKey(e)));}}function Hi(i,l){if(i&1){let e=LD();_i$1(0,"div",40)(1,"div",16)(2,"span"),vw(3),Rw(4,"transloco"),Kc(),_i$1(5,"nz-select",21),gh("ngModelChange",function(t){Pu(e);let o=VD(2).$index,d=VD();return Lu(d.setUntilType(o,t))}),ND(6,ji,2,4,"nz-option",15,SD),Kc(),oE(),Kc(),_i$1(8,"label",16)(9,"span"),vw(10),Rw(11,"transloco"),Kc(),_i$1(12,"input",18),gh("ngModelChange",function(t){Pu(e);let o=VD(2).$index,d=VD();return Lu(d.setUntilField(o,"stepId",t))}),Kc(),oE(),Kc(),_i$1(13,"label",16)(14,"span"),vw(15),Rw(16,"transloco"),Kc(),_i$1(17,"input",18),gh("ngModelChange",function(t){Pu(e);let o=VD(2).$index,d=VD();return Lu(d.setUntilField(o,"field",t))}),Kc(),oE(),Kc(),bD(18,Ri,5,5,"label",16),_i$1(19,"label",16)(20,"span"),vw(21),Rw(22,"transloco"),Kc(),_i$1(23,"nz-input-number",41),gh("ngModelChange",function(t){Pu(e);let o=VD(2).$index,d=VD();return Lu(d.patchAt(o,{maxIterations:t??0}))}),Kc(),oE(),Kc(),_i$1(24,"div",16)(25,"span"),vw(26),Rw(27,"transloco"),Kc(),_i$1(28,"nz-select",21),gh("ngModelChange",function(t){Pu(e);let o=VD(2).$index,d=VD();return Lu(d.patchAt(o,{onMaxIterations:{action:t}}))}),ND(29,Ki,2,4,"nz-option",15,SD),Kc(),oE(),Kc()(),_i$1(31,"div",42)(32,"h4"),vw(33),Rw(34,"transloco"),Kc(),_i$1(35,"app-step-list",43),gh("stepsChange",function(t){Pu(e);let o=VD(2).$index,d=VD();return Lu(d.setNestedSteps(o,t))}),Kc()();}if(i&2){let e=VD(2),n=e.$implicit,t=e.$index,o=VD();gI(3),Ph(Ow(4,25,"step-list.until.type")),gI(2),ch("ngModel",o.asLoop(n).until.type),ah("data-testid","loop-until-type-"+t),sE(),gI(),xD(o.untilTypes),gI(4),Ph(Ow(11,27,"step-list.until.stepId")),gI(2),ch("ngModel",o.asLoop(n).until.stepId),ah("data-testid","loop-until-stepId-"+t),sE(),gI(3),Ph(Ow(16,29,"step-list.until.field")),gI(2),ch("ngModel",o.asLoop(n).until.field),ah("data-testid","loop-until-field-"+t),sE(),gI(),_D(o.asLoop(n).until.type==="field_equals"?18:-1),gI(3),Ph(Ow(22,31,"step-list.maxIterations")),gI(2),ch("ngModel",o.asLoop(n).maxIterations)("nzMin",0),ah("data-testid","loop-max-"+t),sE(),gI(3),Ph(Ow(27,33,"step-list.onMaxIterations.action")),gI(2),ch("ngModel",o.asLoop(n).onMaxIterations.action),ah("data-testid","loop-on-max-"+t),sE(),gI(),xD(o.maxIterationActions),gI(2),ah("data-testid","loop-nested-"+t),gI(2),Ph(Ow(34,35,"step-list.nestedSteps")),gI(2),ch("steps",o.asLoop(n).steps)("rootSteps",o.effectiveRoot())("availableWorkflows",o.availableWorkflows())("appliesTo",o.appliesTo())("settings",o.settings())("depth",o.depth()+1);}}function qi(i,l){if(i&1){let e=LD();_i$1(0,"div",12)(1,"div",13)(2,"nz-select",14),gh("ngModelChange",function(t){Pu(e);let o=VD().$index,d=VD();return Lu(d.changeType(o,t))}),ND(3,li,2,4,"nz-option",15,SD),Kc(),oE(),Kc(),_i$1(5,"label",16)(6,"span"),vw(7),Rw(8,"transloco"),Kc(),_i$1(9,"input",17),gh("ngModelChange",function(t){Pu(e);let o=VD().$index,d=VD();return Lu(d.onNameChange(o,t))}),Kc(),oE(),Kc(),_i$1(10,"label",16)(11,"span"),vw(12),Rw(13,"transloco"),Kc(),_i$1(14,"input",18),gh("ngModelChange",function(t){Pu(e);let o=VD().$index,d=VD();return Lu(d.onIdChange(o,t))}),Kc(),oE(),_i$1(15,"p",19),vw(16),Rw(17,"transloco"),Kc()(),bD(18,mi,32,29)(19,xi,7,5,"div",16)(20,fi,5,5,"label",16)(21,vi,9,6)(22,Li,16,19)(23,Oi,13,8)(24,Hi,36,37),Kc();}if(i&2){let e,n=VD(),t=n.$implicit,o=n.$index,d=VD();ah("data-testid","step-body-"+o),gI(2),ch("ngModel",t.type),ah("data-testid","step-type-"+o),sE(),gI(),xD(d.stepTypes),gI(4),Ph(Ow(8,11,"step-list.name")),gI(2),ch("ngModel",t.name),ah("data-testid","step-name-"+o),sE(),gI(3),Ph(Ow(13,13,"step-list.id")),gI(2),ch("ngModel",t.id),ah("data-testid","step-id-"+o),sE(),gI(2),Ph(Ow(17,15,"step-list.idHint")),gI(2),_D((e=t.type)==="agent"?18:e==="interaction"?19:e==="shell"?20:e==="git"?21:e==="provider_action"?22:e==="sub_workflow"?23:e==="loop"?24:-1);}}function Gi(i,l){if(i&1){let e=LD();_i$1(0,"nz-card",3)(1,"div",4),gh("click",function(){let t=Pu(e).$implicit,o=VD();return Lu(o.toggleExpanded(t))}),_i$1(2,"div",5)(3,"span",6),vw(4),Kc(),_i$1(5,"span",7),vw(6),Rw(7,"transloco"),Kc(),_i$1(8,"span",8),vw(9),Rw(10,"transloco"),Kc()(),_i$1(11,"div",9),gh("click",function(t){return t.stopPropagation()}),_i$1(12,"button",10),gh("click",function(){let t=Pu(e).$index,o=VD();return Lu(o.moveUp(t))}),vw(13),Rw(14,"transloco"),Kc(),_i$1(15,"button",10),gh("click",function(){let t=Pu(e).$index,o=VD();return Lu(o.moveDown(t))}),vw(16),Rw(17,"transloco"),Kc(),_i$1(18,"button",11),gh("click",function(){let t=Pu(e).$index,o=VD();return Lu(o.removeStep(t))}),vw(19),Rw(20,"transloco"),Kc()()(),bD(21,qi,25,17,"div",12),Kc();}if(i&2){let e=l.$implicit,n=l.$index,t=VD();Mh("step-card-expanded",t.isExpanded(e)),ah("data-testid","step-card-"+n),gI(),ah("data-testid","step-header-"+n),gI(3),Ph(t.isExpanded(e)?"\u25BE":"\u25B8"),gI(),ah("data-testid","step-header-name-"+n),gI(),nl(" ",e.name||Ow(7,18,"step-list.unnamed")," "),gI(2),ah("data-testid","step-type-label-"+n),gI(),nl(" ",Ow(10,20,t.stepTypeKey(e.type))," "),gI(3),ch("disabled",n===0),ah("data-testid","move-up-"+n),gI(),nl(" ",Ow(14,22,"step-list.moveUp")," "),gI(2),ch("disabled",n===t.steps().length-1),ah("data-testid","move-down-"+n),gI(),nl(" ",Ow(17,24,"step-list.moveDown")," "),gI(2),ah("data-testid","remove-"+n),gI(),nl(" ",Ow(20,26,"step-list.remove")," "),gI(2),_D(t.isExpanded(e)?21:-1);}}var xn=(()=>{class i{constructor(){this.transloco=C(Ve),this.language=C(O),this.providersApi=C($$1),this.contextFilesApi=C(Me),this.modal=C(Xt),this.steps=$0.required(),this.rootSteps=$0([]),this.availableWorkflows=$0([]),this.appliesTo=$0("none"),this.settings=$0(oy),this.depth=$0(0),this.stepsChange=B0(),this.stepTypes=y,this.outputFormats=["questionnaire","confirmation","comment_suggestions","free_text"],this.interactions=["questionnaire","confirmation"],this.gitOperations=["create_worktree","checkout","create_branch","commit","push"],this.providerActions=["get_subject","get_comments","post_comment","update_status","get_content"],this.untilTypes=["field_empty","field_equals"],this.maxIterationActions=["fail","continue","ask_human"],this.expandedKey=qo(null),this.contextFiles=qo([]),this.paramRowsByStepKey=new Map,this.actionsByProvider=new Map,this.loadingActions=new Set,this.targetSubjectTypes=F,this.contextFilesApi.list().pipe(ue()).subscribe({next:e=>this.contextFiles.set(e),error:()=>this.contextFiles.set([])}),rd(()=>{for(let e of this.steps())e.type==="provider_action"&&e.extendedAction?.providerId&&this.ensureActionsLoaded(e.extendedAction.providerId);});}stepTypeKey(e){return `step-list.stepType.${e}`}outputFormatKey(e){return `step-list.outputFormat.${e}`}interactionKey(e){return `step-list.interaction.${e}`}gitOperationKey(e){return `step-list.gitOperation.${e}`}providerActionKey(e){return `step-list.providerAction.${e}`}untilTypeKey(e){return `step-list.untilType.${e}`}onMaxIterationsKey(e){return `step-list.onMaxIterations.${e}`}workflowOptionLabel(e){return this.language.currentLang(),this.transloco.translate("step-list.workflowOption",{name:e.name,id:e.id})}effectiveRoot(){let e=this.rootSteps();return e.length>0?e:this.steps()}trackKey(e){return e._key}isExpanded(e){return this.expandedKey()===e._key}toggleExpanded(e){this.expandedKey.update(n=>n===e._key?null:e._key);}addStep(){this.emit([...this.steps(),h("agent")]);}removeStep(e){let n=this.steps()[e];n&&this.paramRowsByStepKey.delete(n._key),this.emit(this.steps().filter((t,o)=>o!==e));}moveUp(e){if(e<=0)return;let n=[...this.steps()],t=n[e-1];n[e-1]=n[e],n[e]=t,this.emit(n);}moveDown(e){if(e>=this.steps().length-1)return;let n=[...this.steps()],t=n[e+1];n[e+1]=n[e],n[e]=t,this.emit(n);}changeType(e,n){let t=this.steps()[e];if(!t||t.type===n)return;this.paramRowsByStepKey.delete(t._key);let o=h(n,{id:t.id,name:t.name,idAutoSync:t._idAutoSync,key:t._key});this.replaceAt(e,o);}patchAt(e,n){let t=this.steps()[e];t&&this.replaceAt(e,r(r({},t),n));}onNameChange(e,n){let t=this.steps()[e];t&&this.replaceAt(e,E(t,n,this.effectiveRoot()));}onIdChange(e,n){let t=this.steps()[e];t&&this.replaceAt(e,P(t,n));}setNestedSteps(e,n){let t=this.steps()[e];!t||t.type!=="loop"||this.replaceAt(e,s(r({},t),{steps:n}));}asAgent(e){return e}asInteraction(e){return e}asShell(e){return e}asGit(e){return e}createWorktreeMode(e){return e.params?.mode==="existing-branch"?"existing-branch":"new-branch"}gitParam(e,n){let t=e.params?.[n];return typeof t=="string"?t:""}setGitParam(e,n,t){let o=this.steps()[e];!o||o.type!=="git"||(this.paramRowsByStepKey.delete(o._key),this.patchAt(e,{params:s(r({},o.params),{[n]:t})}));}setCreateWorktreeMode(e,n){let t=this.steps()[e];if(!t||t.type!=="git")return;let o=this.gitParam(t,"repoPath");if(this.paramRowsByStepKey.delete(t._key),n==="existing-branch"){this.patchAt(e,{params:{mode:"existing-branch",repoPath:o,branch:this.gitParam(t,"branch")||this.gitParam(t,"branchName")}});return}this.patchAt(e,{params:{repoPath:o,baseBranch:this.gitParam(t,"baseBranch"),branchName:this.gitParam(t,"branchName")||this.gitParam(t,"branch")}});}asProvider(e){return e}asSubWorkflow(e){return e}asLoop(e){return e}paramRows(e){let n=this.paramRowsByStepKey.get(e._key);if(!n){let t=e.type==="git"||e.type==="provider_action"?e.params:void 0;n=A(t),this.paramRowsByStepKey.set(e._key,n);}return n}onParamRowsChange(e,n,t){this.paramRowsByStepKey.set(n._key,t),this.patchAt(e,{params:j(t)});}isExtended(e){return e.type==="provider_action"&&un(this.asProvider(e))}setActionMode(e,n){let t=this.asProvider(this.steps()[e]);if(n==="portable"){let d=t,{extendedAction:E}=d,W=t$1(d,["extendedAction"]);this.replaceAt(e,W);return}let o=_n(this.appliesTo(),this.settings());this.patchAt(e,{extendedAction:{providerId:o,actionId:"",params:{}}}),this.ensureActionsLoaded(o);}extendedProviderOptions(){return Te(this.appliesTo(),this.settings())}providerLabel(e){return (this.settings().providerInstances??[]).find(t=>t.id===e)?.displayName||e}agentInstanceOptions(){return (this.settings().providerInstances??[]).filter(e=>e.kind==="agent")}setAgentInstance(e,n){this.patchAt(e,{agentInstanceId:n||void 0});}selectedContextFiles(e){let n=e.contextFileIds??[],t=this.contextFiles();return n.map(o=>t.find(d=>d.id===o)??{id:o,name:o,tier:"user",path:""})}removeContextFile(e,n){let t=this.asAgent(this.steps()[e]);this.patchAt(e,{contextFileIds:(t.contextFileIds??[]).filter(o=>o!==n)});}openContextFilePicker(e){let n=this.asAgent(this.steps()[e]),t=this.modal.create({nzTitle:this.transloco.translate("context-files.selectTitle"),nzContent:zt,nzData:{selectionMode:true,selectedIds:[...n.contextFileIds??[]]},nzWidth:800,nzOnOk:()=>{let o=t.getContentComponent();this.patchAt(e,{contextFileIds:o.currentSelectedIds()}),this.contextFilesApi.list().subscribe({next:d=>this.contextFiles.set(d)});}});}setExtendedProvider(e,n){this.patchAt(e,{extendedAction:{providerId:n,actionId:"",params:{}}}),this.ensureActionsLoaded(n);}setExtendedAction(e,n){let t=this.asProvider(this.steps()[e]),o=this.extendedDescriptors(t).find(d=>d.actionId===n);this.patchAt(e,{extendedAction:{providerId:t.extendedAction?.providerId??"",actionId:n,params:o?Ui(o):{}}});}setExtendedParam(e,n,t){let d=this.asProvider(this.steps()[e]).extendedAction;d&&this.patchAt(e,{extendedAction:s(r({},d),{params:s(r({},d.params??{}),{[n]:t})})});}extendedParamValue(e,n){let t=e.extendedAction?.params?.[n];return t==null?"":String(t)}extendedDescriptors(e){let n=e.extendedAction?.providerId;return n?this.actionsByProvider.get(n)??[]:[]}selectedExtendedDescriptor(e){let n=e.extendedAction?.actionId;if(n)return this.extendedDescriptors(e).find(t=>t.actionId===n)}mismatchWarning(e){let n=mn(e,this.appliesTo(),this.settings());return n?(this.language.currentLang(),this.transloco.translate("step-list.extendedAction.mismatch",n)):null}hasTarget(e){return e.type==="provider_action"&&this.asProvider(e).target!=null}setTargetEnabled(e,n){let t=this.asProvider(this.steps()[e]);if(!n){let o=t,{target:d}=o,E=t$1(o,["target"]);this.replaceAt(e,E);return}this.patchAt(e,{target:{subjectType:"ticket",source:"",subjectId:""}});}setTargetSubjectType(e,n){let t=this.asProvider(this.steps()[e]);this.patchAt(e,{target:{subjectType:n,source:"",subjectId:t.target?.subjectId??""}});}setTargetSource(e,n){let t=this.asProvider(this.steps()[e]);t.target&&this.patchAt(e,{target:s(r({},t.target),{source:n})});}setTargetSubjectId(e,n){let t=this.asProvider(this.steps()[e]);t.target&&this.patchAt(e,{target:s(r({},t.target),{subjectId:n})});}targetInstanceOptions(e){let n=e.target?.subjectType;return n?B(this.settings(),[n]):[]}subjectTypeKey(e){return `workflow-editor.subjectType.${e}`}ensureActionsLoaded(e){!e||this.actionsByProvider.has(e)||this.loadingActions.has(e)||(this.loadingActions.add(e),this.providersApi.listExtendedActions(e).subscribe({next:n=>{this.loadingActions.delete(e),this.actionsByProvider.set(e,n);},error:()=>{this.loadingActions.delete(e),this.actionsByProvider.set(e,[]);}}));}setUntilType(e,n){let t=this.asLoop(this.steps()[e]);if(n==="field_empty"){this.patchAt(e,{until:{type:n,stepId:t.until.stepId,field:t.until.field}});return}let o=t.until.type==="field_equals"?t.until.value:"";this.patchAt(e,{until:{type:n,stepId:t.until.stepId,field:t.until.field,value:o}});}setUntilField(e,n,t){let o=this.asLoop(this.steps()[e]);this.patchAt(e,{until:s(r({},o.until),{[n]:t})});}setUntilValue(e,n){let t=this.asLoop(this.steps()[e]);t.until.type==="field_equals"&&this.patchAt(e,{until:s(r({},t.until),{value:n})});}untilValue(e){return e.until.type==="field_equals"?String(e.until.value??""):""}replaceAt(e,n){this.emit(this.steps().map((t,o)=>o===e?n:t));}emit(e){this.stepsChange.emit(e);}static{this.\u0275fac=function(n){return new(n||i)};}static{this.\u0275cmp=QE({type:i,selectors:[["app-step-list"]],inputs:{steps:[1,"steps"],rootSteps:[1,"rootSteps"],availableWorkflows:[1,"availableWorkflows"],appliesTo:[1,"appliesTo"],settings:[1,"settings"],depth:[1,"depth"]},outputs:{stepsChange:"stepsChange"},decls:6,vars:4,consts:[["data-testid","step-list",1,"step-list"],[1,"step-card",3,"step-card-expanded"],["nz-button","","nzType","dashed","nzBlock","","type","button","data-testid","add-step",3,"click"],[1,"step-card"],[1,"step-header",3,"click"],[1,"step-header-meta"],["aria-hidden","true",1,"step-chevron"],[1,"step-name-preview"],[1,"step-type"],[1,"step-header-actions",3,"click"],["nz-button","","type","button",3,"click","disabled"],["nz-button","","nzDanger","","type","button",3,"click"],[1,"step-body"],[1,"step-toolbar"],[1,"type-select",3,"ngModelChange","ngModel"],[3,"nzValue","nzLabel"],[1,"field"],["nz-input","","required","",3,"ngModelChange","ngModel"],["nz-input","",3,"ngModelChange","ngModel"],[1,"hint"],["nz-input","","rows","3",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],[1,"context-file-chips"],["nzMode","closeable"],["data-testid","context-files-empty",1,"hint"],["nz-button","","type","button",3,"click"],["nzMode","closeable",3,"nzOnClose"],["nzValue","new-branch",3,"nzLabel"],["nzValue","existing-branch",3,"nzLabel"],[3,"rowsChange","rows"],["nzType","warning","nzShowIcon","",1,"mismatch",3,"nzMessage"],["nz-checkbox","",3,"ngModelChange","ngModel"],["nzValue","portable",3,"nzLabel"],["nzValue","extended",3,"nzLabel"],[3,"ngModelChange","ngModel","nzPlaceHolder"],[1,"required"],[3,"ngModel"],["nz-input","",3,"ngModel"],["nzShowSearch","","nzAllowClear","",3,"ngModelChange","ngModel"],["data-testid","sub-workflow-foreach"],[1,"field-grid"],[3,"ngModelChange","ngModel","nzMin"],[1,"nested"],[3,"stepsChange","steps","rootSteps","availableWorkflows","appliesTo","settings","depth"]],template:function(n,t){n&1&&(_i$1(0,"div",0),ND(1,Gi,22,28,"nz-card",1,ri,true),_i$1(3,"button",2),gh("click",function(){return t.addStep()}),vw(4),Rw(5,"transloco"),Kc()()),n&2&&(ah("data-depth",t.depth()),gI(),xD(t.steps()),gI(3),nl(" ",Ow(5,2,"step-list.addStep")," "));},dependencies:[i,Mi$1,n8,S4,J6,$6,k3,dd,zc,t7,y7,Nt,Ke,Lt,ut,ai$1,z,on,Ze,Zn$1,Xb,V5,D5,Gn$1,un$1,W,I$1,dn,Kt],styles:[".step-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem}.step-card[_ngcontent-%COMP%]{background:#fff}.step-header[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;cursor:pointer;-webkit-user-select:none;user-select:none}.step-header-meta[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;min-width:0}.step-chevron[_ngcontent-%COMP%]{color:#78716c;font-size:.85rem;width:.9rem}.step-type[_ngcontent-%COMP%]{font-size:.75rem;font-weight:600;letter-spacing:.02em;text-transform:uppercase;color:#57534e;background:#f5f5f4;border-radius:999px;padding:.15rem .55rem}.step-name-preview[_ngcontent-%COMP%]{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.step-header-actions[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.5rem}.step-body[_ngcontent-%COMP%]{margin-top:.75rem;padding-top:.75rem;border-top:1px solid #e7e5e4}.step-toolbar[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.75rem;align-items:center}.type-select[_ngcontent-%COMP%]{min-width:11rem}.field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.35rem;margin:.65rem 0}.field[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:.85rem;color:#57534e}.field-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));gap:.5rem 1rem}.hint[_ngcontent-%COMP%]{margin:0;font-size:.8rem;color:#78716c}.mismatch[_ngcontent-%COMP%]{margin:.5rem 0}.required[_ngcontent-%COMP%]{color:#b91c1c}.nested[_ngcontent-%COMP%]{margin-top:.75rem;padding:.75rem;border-left:3px solid #d6d3d1;background:#fafaf9}.nested[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin:0 0 .5rem}.context-file-chips[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center;margin:.35rem 0}"]});}}return i})();function Ui(i){let l={};for(let e of i.params)l[e.name]=e.type==="select"?e.options?.[0]??"":"";return l}var Zi=i=>({ids:i});function Qi(i,l){i&1&&(_i$1(0,"p",5),vw(1),Rw(2,"transloco"),Kc()),i&2&&(gI(),Ph(Ow(2,1,"workflow-editor.loading")));}function Yi(i,l){if(i&1&&(_i$1(0,"p",6),vw(1),Kc()),i&2){let e=VD();gI(),Ph(e.loadError());}}function Ji(i,l){if(i&1&&(_i$1(0,"li"),vw(1),Kc()),i&2){let e=l.$implicit;gI(),Ph(e);}}function Xi(i,l){if(i&1&&(_i$1(0,"section",7)(1,"h2"),vw(2),Rw(3,"transloco"),Kc(),_i$1(4,"ul"),ND(5,Ji,2,1,"li",null,SD),Kc()()),i&2){let e=VD(2);gI(2),Ph(Ow(3,1,"workflow-editor.validation")),gI(3),xD(e.validationErrors());}}function eo(i,l){if(i&1&&(lh(0,"nz-option",13),Rw(1,"transloco")),i&2){let e=l.$implicit,n=VD(2);ch("nzValue",e)("nzLabel",Ow(1,2,n.subjectTypeKey(e)));}}function to(i,l){if(i&1&&(lh(0,"nz-option",15),Rw(1,"transloco")),i&2){let e=l.$implicit,n=VD(2);ch("nzValue",e)("nzLabel",Ow(1,3,n.subjectHandlingKey(e)))("nzDisabled",e==="collection"&&n.appliesToValue()==="none");}}function no(i,l){if(i&1&&(lh(0,"nz-option",13),Rw(1,"transloco")),i&2){let e=l.$implicit,n=VD(3);ch("nzValue",e)("nzLabel",Ow(1,2,n.inputTypeKey(e)));}}function io(i,l){if(i&1){let e=LD();_i$1(0,"div",18)(1,"label",10)(2,"span"),vw(3),Rw(4,"transloco"),Kc(),_i$1(5,"input",22),gh("ngModelChange",function(t){let o=Pu(e).$index,d=VD(2);return Lu(d.patchInputField(o,{name:t}))}),Kc(),oE(),Kc(),_i$1(6,"label",10)(7,"span"),vw(8),Rw(9,"transloco"),Kc(),_i$1(10,"input",22),gh("ngModelChange",function(t){let o=Pu(e).$index,d=VD(2);return Lu(d.patchInputField(o,{label:t}))}),Kc(),oE(),Kc(),_i$1(11,"div",10)(12,"span"),vw(13),Rw(14,"transloco"),Kc(),_i$1(15,"nz-select",23),gh("ngModelChange",function(t){let o=Pu(e).$index,d=VD(2);return Lu(d.patchInputField(o,{type:t}))}),ND(16,no,2,4,"nz-option",13,SD),Kc(),oE(),Kc(),_i$1(18,"label",24),gh("ngModelChange",function(t){let o=Pu(e).$index,d=VD(2);return Lu(d.patchInputField(o,{required:t}))}),vw(19),Rw(20,"transloco"),Kc(),oE(),_i$1(21,"button",25),gh("click",function(){let t=Pu(e).$index,o=VD(2);return Lu(o.removeInputField(t))}),vw(22),Rw(23,"transloco"),Kc()();}if(i&2){let e=l.$implicit,n=l.$index,t=VD(2);ah("data-testid","input-field-"+n),gI(3),Ph(Ow(4,10,"workflow-editor.fieldName")),gI(2),ch("ngModel",e.name),sE(),gI(3),Ph(Ow(9,12,"workflow-editor.fieldLabel")),gI(2),ch("ngModel",e.label),sE(),gI(3),Ph(Ow(14,14,"workflow-editor.fieldType")),gI(2),ch("ngModel",e.type),sE(),gI(),xD(t.inputFieldTypes),gI(2),ch("ngModel",e.required),sE(),gI(),nl(" ",Ow(20,16,"workflow-editor.required")," "),gI(3),nl(" ",Ow(23,18,"workflow-editor.remove")," ");}}function oo(i,l){if(i&1&&(_i$1(0,"p",20),vw(1),Rw(2,"transloco"),Kc()),i&2){let e=VD(2);gI(),nl(" ",Pw(2,1,"workflow-editor.duplicateStepIds",xw(4,Zi,e.duplicateStepIds().join(", ")))," ");}}function ro(i,l){if(i&1){let e=LD();bD(0,Xi,7,3,"section",7),_i$1(1,"nz-card",8),Rw(2,"transloco"),_i$1(3,"div",9)(4,"label",10)(5,"span"),vw(6),Rw(7,"transloco"),Kc(),_i$1(8,"input",11),gh("ngModelChange",function(t){Pu(e);let o=VD();return Lu(o.patchWorkflow({name:t}))}),Kc(),oE(),Kc(),_i$1(9,"div",10)(10,"span"),vw(11),Rw(12,"transloco"),Kc(),_i$1(13,"nz-select",12),gh("ngModelChange",function(t){Pu(e);let o=VD();return Lu(o.setAppliesTo(t))}),ND(14,eo,2,4,"nz-option",13,SD),Kc(),oE(),Kc(),_i$1(16,"div",10)(17,"span"),vw(18),Rw(19,"transloco"),Kc(),_i$1(20,"nz-select",14),gh("ngModelChange",function(t){Pu(e);let o=VD();return Lu(o.patchWorkflow({subjectHandling:t}))}),ND(21,to,2,5,"nz-option",15,SD),Kc(),oE(),_i$1(23,"p",16),vw(24),Rw(25,"transloco"),Kc()()(),_i$1(26,"label",10)(27,"span"),vw(28),Rw(29,"transloco"),Kc(),_i$1(30,"textarea",17),gh("ngModelChange",function(t){Pu(e);let o=VD();return Lu(o.patchWorkflow({description:t||void 0}))}),Kc(),oE(),Kc()(),_i$1(31,"nz-card",8),Rw(32,"transloco"),ND(33,io,24,20,"div",18,MD),_i$1(35,"button",19),gh("click",function(){Pu(e);let t=VD();return Lu(t.addInputField())}),vw(36),Rw(37,"transloco"),Kc()(),_i$1(38,"nz-card",8),Rw(39,"transloco"),bD(40,oo,3,6,"p",20),_i$1(41,"app-step-list",21),gh("stepsChange",function(t){Pu(e);let o=VD();return Lu(o.onStepsChange(t))}),Kc()();}if(i&2){let e=VD();_D(e.validationErrors().length>0?0:-1),gI(),ch("nzTitle",Ow(2,20,"workflow-editor.basics")),gI(5),Ph(Ow(7,22,"workflow-editor.name")),gI(2),ch("ngModel",e.workflow().name),sE(),gI(3),Ph(Ow(12,24,"workflow-editor.appliesTo")),gI(2),ch("ngModel",e.appliesToValue()),sE(),gI(),xD(e.subjectTypes),gI(4),Ph(Ow(19,26,"workflow-editor.subjectHandling.label")),gI(2),ch("ngModel",e.workflow().subjectHandling),sE(),gI(),xD(e.subjectHandlingOptions),gI(3),nl(" ",Ow(25,28,e.subjectHandlingHelpKey())," "),gI(4),Ph(Ow(29,30,"workflow-editor.description")),gI(2),ch("ngModel",e.workflow().description??""),sE(),gI(),ch("nzTitle",Ow(32,32,"workflow-editor.inputSchema")),gI(2),xD(e.workflow().inputSchema),gI(3),nl(" ",Ow(37,34,"workflow-editor.addInputField")," "),gI(2),ch("nzTitle",Ow(39,36,"workflow-editor.steps")),gI(2),_D(e.duplicateStepIds().length>0?40:-1),gI(),ch("steps",e.workflow().steps)("rootSteps",e.workflow().steps)("availableWorkflows",e.availableWorkflows())("appliesTo",e.workflow().appliesTo)("settings",e.settings());}}var Fr=(()=>{class i{constructor(){this.route=C(ae),this.router=C(Ie),this.workflowsApi=C(U),this.settingsApi=C($),this.message=C(yx),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.workflow=qo(I()),this.availableWorkflows=qo([]),this.settings=qo(oy),this.loadError=qo(null),this.validationErrors=qo([]),this.duplicateStepIds=qo([]),this.saving=qo(false),this.loading=qo(true),this.isNew=Hw(()=>!this.routeId()),this.pageTitle=Hw(()=>(this.language.currentLang(),this.isNew()?this.transloco.translate("workflow-editor.titleNew"):this.transloco.translate("workflow-editor.titleEdit",{id:this.workflow().id||this.routeId()}))),this.subjectTypes=["none","ticket","pull_request","documentation"],this.subjectHandlingOptions=["per-subject","collection"],this.inputFieldTypes=["string","number","boolean","select","localRepository"],this.workflowsApi.list().pipe(ue(this.destroyRef)).subscribe({next:e=>this.availableWorkflows.set(e),error:()=>{}}),this.settingsApi.getSettings().pipe(ue(this.destroyRef)).subscribe({next:e=>this.settings.set(e),error:()=>{}}),this.route.paramMap.pipe(ue(this.destroyRef)).subscribe(e=>{let n=e.get("id");if(this.validationErrors.set([]),this.duplicateStepIds.set([]),this.loadError.set(null),!n){this.workflow.set(I()),this.loading.set(false);return}this.loading.set(true),this.workflowsApi.get(n).subscribe({next:t=>{this.workflow.set(s(r({},structuredClone(t)),{steps:g(t.steps,{idAutoSync:false})})),this.loading.set(false);},error:t=>{this.loading.set(false),this.loadError.set(this.errorMessage(t,`Failed to load workflow ${n}`));}});});}subjectTypeKey(e){return `workflow-editor.subjectType.${e}`}subjectHandlingKey(e){return `workflow-editor.subjectHandling.${e}`}subjectHandlingHelpKey(){return `workflow-editor.subjectHandling.help.${this.workflow().subjectHandling}`}inputTypeKey(e){return `workflow-editor.inputType.${e}`}patchWorkflow(e){this.workflow.update(n=>r(r({},n),e));}setAppliesTo(e){if(e==="none"){this.patchWorkflow({appliesTo:e,subjectHandling:"per-subject"});return}this.patchWorkflow({appliesTo:e});}appliesToValue(){let e=this.workflow().appliesTo;return Array.isArray(e)?e[0]??"none":e}onStepsChange(e){this.patchWorkflow({steps:e}),this.duplicateStepIds.set(Um(e));}addInputField(){this.patchWorkflow({inputSchema:[...this.workflow().inputSchema,b()]});}removeInputField(e){this.patchWorkflow({inputSchema:this.workflow().inputSchema.filter((n,t)=>t!==e)});}patchInputField(e,n){let t=this.workflow().inputSchema.map((o,d)=>d===e?r(r({},o),n):o);this.patchWorkflow({inputSchema:t});}save(){let e=this.workflow(),n=Um(e.steps);if(this.duplicateStepIds.set(n),n.length>0){this.validationErrors.set([this.transloco.translate("workflow-editor.duplicateStepIds",{ids:n.join(", ")})]);return}let t=v(e,{omitWorkflowId:this.isNew()}),o=J_.safeParse(t);if(!o.success){this.validationErrors.set(T(o.error));return}this.validationErrors.set([]),this.saving.set(true);let d=o.data,E=this.routeId();(this.isNew()||!E?this.workflowsApi.create(d):this.workflowsApi.update(E,s(r({},d),{id:E}))).subscribe({next:ne=>{this.saving.set(false),this.workflow.set(s(r({},structuredClone(ne)),{steps:g(ne.steps,{idAutoSync:false})})),this.message.success(this.isNew()?"Workflow created":"Workflow saved"),this.isNew()&&this.router.navigate(["/workflows",ne.id,"edit"]);},error:ne=>{this.saving.set(false),this.message.error(this.errorMessage(ne,"Save failed"));}});}errorMessage(e,n){return e instanceof o||e instanceof Error?e.message:n}static{this.\u0275fac=function(n){return new(n||i)};}static{this.\u0275cmp=QE({type:i,selectors:[["app-workflow-editor"]],decls:15,vars:10,consts:[["data-testid","workflow-editor",1,"editor"],[1,"header"],[1,"header-actions"],["routerLink","/workflows","data-testid","back-to-workflows"],["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"],[3,"nzTitle"],[1,"grid"],[1,"field"],["nz-input","","data-testid","workflow-name",3,"ngModelChange","ngModel"],["data-testid","workflow-applies-to",3,"ngModelChange","ngModel"],[3,"nzValue","nzLabel"],["data-testid","workflow-subject-handling",3,"ngModelChange","ngModel"],[3,"nzValue","nzLabel","nzDisabled"],["data-testid","workflow-subject-handling-help",1,"help"],["nz-input","","rows","2","data-testid","workflow-description",3,"ngModelChange","ngModel"],[1,"input-field-row"],["nz-button","","nzType","dashed","type","button",3,"click"],["data-testid","duplicate-step-ids",1,"error"],[3,"stepsChange","steps","rootSteps","availableWorkflows","appliesTo","settings"],["nz-input","",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],["nz-checkbox","",3,"ngModelChange","ngModel"],["nz-button","","nzDanger","","type","button",3,"click"]],template:function(n,t){n&1&&(_i$1(0,"main",0)(1,"header",1)(2,"div")(3,"h1"),vw(4),Kc()(),_i$1(5,"div",2)(6,"a",3),vw(7),Rw(8,"transloco"),Kc(),_i$1(9,"button",4),gh("click",function(){return t.save()}),vw(10),Rw(11,"transloco"),Kc()()(),bD(12,Qi,3,3,"p",5)(13,Yi,2,1,"p",6)(14,ro,42,38),Kc()),n&2&&(gI(4),Ph(t.pageTitle()),gI(3),Ph(Ow(8,6,"workflow-editor.backToWorkflows")),gI(2),ch("nzLoading",t.saving())("disabled",t.loading()||!!t.loadError()),gI(),nl(" ",Ow(11,8,"common.save")," "),gI(2),_D(t.loading()?12:t.loadError()?13:14));},dependencies:[Mi$1,n8,S4,J6,k3,Ln$1,dd,zc,t7,y7,Nt,Ke,Lt,ut,ai$1,z,Xb,V5,D5,xn,Kt],styles:[".editor[_ngcontent-%COMP%]{max-width:56rem;margin:0 auto;padding:1.25rem 1.5rem 3rem;display:flex;flex-direction:column;gap:1rem}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.header-actions[_ngcontent-%COMP%]{display:flex;gap:.75rem;align-items:center}.lede[_ngcontent-%COMP%]{margin:.25rem 0 0;color:#57534e}.grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));gap:.75rem 1rem}.field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.35rem;margin:.5rem 0}.field[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:.85rem;color:#57534e}.help[_ngcontent-%COMP%]{margin:0;font-size:.8rem;color:#78716c}.checkbox-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.75rem;margin-bottom:.5rem}.input-field-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr 8rem auto auto;gap:.5rem;align-items:end;margin-bottom:.5rem}.input-field-row[_ngcontent-%COMP%] > .field[_ngcontent-%COMP%]{margin:0}.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 i})();export{Fr as WorkflowEditorComponent};
|
package/static/chunk-DoXxOh8j.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {z as zt}from'./chunk-BNOYZq-b.js';import'./chunk-CDWIMt6y.js';import'./chunk-BhGgxvgu.js';import'./chunk-CWbxWv5I.js';import'./chunk-Ojn34cvU.js';import {Q as QE,l as lh}from'./main-MNK6ZYDO.js';import'./chunk-DNOjVPY0.js';import'./chunk-3mppll1n.js';import'./chunk-CEcbtdnK.js';var c=(()=>{class e{static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275cmp=QE({type:e,selectors:[["app-context-files-manage"]],decls:1,vars:0,template:function(t,a){t&1&&lh(0,"app-context-file-list");},dependencies:[zt],encapsulation:2});}}return e})();export{c as ContextFilesManageComponent};
|