import{L as D}from"./LoadingContainer.35e80d23.js";import{S as b}from"./SaveButton.c903b3a1.js";import{C as h,W as A}from"./model.8fd6b9c9.js";import{E as C}from"./api.39524bac.js";import{d as W,e as E,f as N,u as t,c as n,W as _,R as y,b as d,w as e,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.6a68d184.js";import{w as F}from"./metadata.b24268c3.js";import{a as M}from"./asyncComputed.f77117da.js";import{A as I}from"./index.4be87654.js";import{A as J}from"./index.484a2057.js";import"./ExclamationCircleOutlined.e3ccd28d.js";import"./workspaces.24d8b995.js";import"./runnerData.ef427c2b.js";import"./url.dbab9c15.js";import"./record.048ae4ac.js";import"./validations.4a59a48b.js";import"./string.1c036a5c.js";import"./PhArrowSquareOut.vue.dc26b6b0.js";import"./index.1ee319f7.js";import"./Badge.f345c797.js";import"./isNumeric.75337b1e.js";import"./index.ead91012.js";import"./Card.5a15af6f.js";import"./TabPane.61754fc5.js";import"./uuid.8cc61c68.js";import"./fetch.77170fb6.js";import"./PhBug.vue.558234da.js";import"./PhCheckCircle.vue.1bf31e20.js";import"./PhKanban.vue.d28b960a.js";import"./PhWebhooksLogo.vue.8a010aca.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[i]="a86c6c53-734d-4ad2-b22d-1613a3aff3e6",s._sentryDebugIdIdentifier="sentry-dbid-a86c6c53-734d-4ad2-b22d-1613a3aff3e6")}catch{}})();const P={key:1,class:"workflow-editor"},R={class:"workflow-toolbar"},X=["onDragstart"],$=W({__name:"WorkflowEditor",setup(s){const i=E(null),u=N(()=>{var a;return(a=i.value)==null?void 0:a.gui}),v=new C,{result:l,loading:g}=M(()=>A.create(v)),x=(a,c)=>{var o,p;(o=c.dataTransfer)==null||o.setData("type",a),(p=u.value)==null||p.dragstart(a,c)};return(a,c)=>t(g)?(r(),n(D,{key:0})):(r(),_("div",P,[t(l)?(r(),n(h,{key:0,ref_key:"canvasGui",ref:i,model:t(l)},null,8,["model"])):y("",!0),d(t(L),null,{default:e(()=>[w("div",R,[(r(!0),_(B,null,S(t(F).stages,o=>(r(),n(t(G),{key:o.typeName,placement:"top"},{title:e(()=>[d(t(I),null,{default:e(()=>[d(t(k),null,{default:e(()=>[m(f(o.title),1)]),_:2},1024),d(t(k),{keyboard:""},{default:e(()=>[m(f(o.key),1)]),_:2},1024)]),_:2},1024)]),content:e(()=>[m(f(o.description),1)]),default:e(()=>[w("span",{draggable:"true",onDragstart:p=>x(o.typeName,p)},[(r(),n(V(o.icon),{width:"18",height:"18",class:"toolbar-item"}))],40,X)]),_:2},1024))),128)),d(t(J),{type:"vertical"}),t(l)?(r(),n(b,{key:0,model:t(l),disabled:void 0,type:"primary"},null,8,["model"])):y("",!0)])]),_:1})]))}});const vt=T($,[["__scopeId","data-v-de9c06f6"]]);export{vt as default};
//# sourceMappingURL=WorkflowEditor.1d0ad17d.js.map
