import{L as D}from"./LoadingContainer.2acfa165.js";import{S as h}from"./SaveButton.ffd953bb.js";import{C as A,W as x}from"./model.d5c9a4db.js";import{E as C}from"./api.850af954.js";import{d as E,e as W,f as B,u as e,o,c as i,V as _,R as y,b as d,w as r,a as w,aI as N,eD as V,cV as k,aw as m,eA as f,eE as S,cB as T,c_ as G,Y as L}from"./vue-router.a333e065.js";import{w as F}from"./metadata.97c76d2d.js";import{a as I}from"./asyncComputed.77239fe2.js";import{A as M}from"./index.e9f1c85a.js";import{A as P}from"./index.0cddc071.js";import"./ExclamationCircleOutlined.bbf260ab.js";import"./workspaces.40cacbc6.js";import"./runnerData.38462a80.js";import"./url.30f67d32.js";import"./record.d2fa9f98.js";import"./validations.9faf62ef.js";import"./string.ba08fe0f.js";import"./PhArrowSquareOut.vue.33a16968.js";import"./index.97ad1501.js";import"./Badge.98a36211.js";import"./isNumeric.75337b1e.js";import"./index.26e72621.js";import"./Card.30555f3f.js";import"./TabPane.4cf5b1ee.js";import"./uuid.4814b7c4.js";import"./fetch.0f0375b3.js";import"./PhCheckCircle.vue.f4992773.js";import"./PhKanban.vue.36dae975.js";import"./PhWebhooksLogo.vue.73a957f5.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]="dba5a5ce-4fb1-4c57-933e-46603c88e07e",s._sentryDebugIdIdentifier="sentry-dbid-dba5a5ce-4fb1-4c57-933e-46603c88e07e")}catch{}})();const R={key:1,class:"workflow-editor"},Y={class:"workflow-toolbar"},j=["onDragstart"],q=E({__name:"WorkflowEditor",setup(s){const n=W(null),u=B(()=>{var a;return(a=n.value)==null?void 0:a.gui}),v=new C,{result:l,loading:g}=I(()=>x.create(v)),b=(a,c)=>{var t,p;(t=c.dataTransfer)==null||t.setData("type",a),(p=u.value)==null||p.dragstart(a,c)};return(a,c)=>e(g)?(o(),i(D,{key:0})):(o(),_("div",R,[e(l)?(o(),i(A,{key:0,ref_key:"canvasGui",ref:n,model:e(l)},null,8,["model"])):y("",!0),d(e(G),null,{default:r(()=>[w("div",Y,[(o(!0),_(N,null,V(e(F).stages,t=>(o(),i(e(T),{key:t.typeName,placement:"top"},{title:r(()=>[d(e(M),null,{default:r(()=>[d(e(k),null,{default:r(()=>[m(f(t.title),1)]),_:2},1024),d(e(k),{keyboard:""},{default:r(()=>[m(f(t.key),1)]),_:2},1024)]),_:2},1024)]),content:r(()=>[m(f(t.description),1)]),default:r(()=>[w("span",{draggable:"true",onDragstart:p=>b(t.typeName,p)},[(o(),i(S(t.icon),{width:"18",height:"18",class:"toolbar-item"}))],40,j)]),_:2},1024))),128)),d(e(P),{type:"vertical"}),e(l)?(o(),i(h,{key:0,model:e(l),disabled:void 0,type:"primary"},null,8,["model"])):y("",!0)])]),_:1})]))}});const ke=L(q,[["__scopeId","data-v-de9c06f6"]]);export{ke as default};
//# sourceMappingURL=WorkflowEditor.49379313.js.map
