import{L as b}from"./LoadingContainer.891c6523.js";import{S as x}from"./SaveButton.0c85c1be.js";import{C as A,W as E}from"./model.77ffc993.js";import{E as h}from"./api.69f67839.js";import{d as C,e as W,f as N,u as t,o as e,c as n,eu as _,ew as y,b as l,w as r,a as w,aE as B,eD as S,cR as k,as as m,eA as f,eE as V,cx as G,cW as L,S as T}from"./vue-router.74c693f1.js";import{w as F}from"./metadata.3e87581a.js";import{a as M}from"./asyncComputed.7b5c3427.js";import{A as I}from"./index.33768c38.js";import{A as P}from"./index.b878c184.js";import"./ExclamationCircleOutlined.041ab969.js";import"./workspaces.521596e9.js";import"./runnerData.91386489.js";import"./url.8b7ee03b.js";import"./record.0d85e3b6.js";import"./validations.12abcaad.js";import"./string.b1ebfabb.js";import"./PhArrowSquareOut.vue.0479da5c.js";import"./index.507aa0d6.js";import"./Badge.3eab8685.js";import"./isNumeric.75337b1e.js";import"./index.e8eb3ab0.js";import"./Card.e642dff5.js";import"./TabPane.bfa47506.js";import"./uuid.7ddedf43.js";import"./fetch.aa87e7cf.js";import"./PhCheckCircle.vue.970d6f97.js";import"./PhKanban.vue.b54530a2.js";import"./PhScroll.vue.9a674589.js";import"./PhWebhooksLogo.vue.ea04f3c9.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]="3f2c5046-53c1-47a7-9b34-468a63a12312",s._sentryDebugIdIdentifier="sentry-dbid-3f2c5046-53c1-47a7-9b34-468a63a12312")}catch{}})();const R={key:1,class:"workflow-editor"},j={class:"workflow-toolbar"},q=["onDragstart"],z=C({__name:"WorkflowEditor",setup(s){const i=W(null),u=N(()=>{var a;return(a=i.value)==null?void 0:a.gui}),v=new h,{result:d,loading:g}=M(()=>E.create(v)),D=(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)?(e(),n(b,{key:0})):(e(),_("div",R,[t(d)?(e(),n(A,{key:0,ref_key:"canvasGui",ref:i,model:t(d)},null,8,["model"])):y("",!0),l(t(L),null,{default:r(()=>[w("div",j,[(e(!0),_(B,null,S(t(F).stages,o=>(e(),n(t(G),{key:o.typeName,placement:"top"},{title:r(()=>[l(t(I),null,{default:r(()=>[l(t(k),null,{default:r(()=>[m(f(o.title),1)]),_:2},1024),l(t(k),{keyboard:""},{default:r(()=>[m(f(o.key),1)]),_:2},1024)]),_:2},1024)]),content:r(()=>[m(f(o.description),1)]),default:r(()=>[w("span",{draggable:"true",onDragstart:p=>D(o.typeName,p)},[(e(),n(V(o.icon),{width:"18",height:"18",class:"toolbar-item"}))],40,q)]),_:2},1024))),128)),l(t(P),{type:"vertical"}),t(d)?(e(),n(x,{key:0,model:t(d),disabled:void 0,type:"primary"},null,8,["model"])):y("",!0)])]),_:1})]))}});const vt=T(z,[["__scopeId","data-v-4a26884a"]]);export{vt as default};
//# sourceMappingURL=WorkflowEditor.213e83e0.js.map
