import{L as x}from"./LoadingContainer.27ce0e72.js";import{S as D}from"./SaveButton.27c0e0df.js";import{C as h,W as A}from"./model.5d96ca3d.js";import{E as C}from"./api.4cce616e.js";import{d as W,e as E,f as N,u as t,c as i,W as _,R as y,b as d,w as o,o as r,a as w,aJ as B,ew as S,cX as k,ax as m,et as f,ex as V,cD as G,d0 as L,$ as T}from"./vue-router.92e55c98.js";import{w as F}from"./metadata.bbb8090a.js";import{a as M}from"./asyncComputed.fa5d300b.js";import{A as I}from"./index.3468ebf1.js";import{A as J}from"./index.82e14820.js";import"./ExclamationCircleOutlined.07543b52.js";import"./workspaces.62ae2d2a.js";import"./runnerData.d6def43f.js";import"./url.4183c896.js";import"./record.25f01883.js";import"./validations.a939acb5.js";import"./string.9a4bb46b.js";import"./PhArrowSquareOut.vue.8733768c.js";import"./index.c1f65ea5.js";import"./Badge.df2e5e18.js";import"./isNumeric.75337b1e.js";import"./index.d88273ae.js";import"./Card.4606ef0f.js";import"./TabPane.2ffd0557.js";import"./uuid.4a723140.js";import"./fetch.ca8855af.js";import"./PhCheckCircle.vue.684bfc5d.js";import"./PhKanban.vue.964bce5a.js";import"./PhWebhooksLogo.vue.3e64c87f.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[n]="84cf8081-58a1-4db4-b482-3e851c1c206a",s._sentryDebugIdIdentifier="sentry-dbid-84cf8081-58a1-4db4-b482-3e851c1c206a")}catch{}})();const P={key:1,class:"workflow-editor"},R={class:"workflow-toolbar"},X=["onDragstart"],$=W({__name:"WorkflowEditor",setup(s){const n=E(null),u=N(()=>{var a;return(a=n.value)==null?void 0:a.gui}),v=new C,{result:l,loading:b}=M(()=>A.create(v)),g=(a,c)=>{var e,p;(e=c.dataTransfer)==null||e.setData("type",a),(p=u.value)==null||p.dragstart(a,c)};return(a,c)=>t(b)?(r(),i(x,{key:0})):(r(),_("div",P,[t(l)?(r(),i(h,{key:0,ref_key:"canvasGui",ref:n,model:t(l)},null,8,["model"])):y("",!0),d(t(L),null,{default:o(()=>[w("div",R,[(r(!0),_(B,null,S(t(F).stages,e=>(r(),i(t(G),{key:e.typeName,placement:"top"},{title:o(()=>[d(t(I),null,{default:o(()=>[d(t(k),null,{default:o(()=>[m(f(e.title),1)]),_:2},1024),d(t(k),{keyboard:""},{default:o(()=>[m(f(e.key),1)]),_:2},1024)]),_:2},1024)]),content:o(()=>[m(f(e.description),1)]),default:o(()=>[w("span",{draggable:"true",onDragstart:p=>g(e.typeName,p)},[(r(),i(V(e.icon),{width:"18",height:"18",class:"toolbar-item"}))],40,X)]),_:2},1024))),128)),d(t(J),{type:"vertical"}),t(l)?(r(),i(D,{key:0,model:t(l),disabled:void 0,type:"primary"},null,8,["model"])):y("",!0)])]),_:1})]))}});const kt=T($,[["__scopeId","data-v-de9c06f6"]]);export{kt as default};
//# sourceMappingURL=WorkflowEditor.bd2461e9.js.map
