import{L as D}from"./LoadingContainer.33441787.js";import{S as h}from"./SaveButton.c020f919.js";import{C as A,W as C}from"./model.758fcd60.js";import{E as W}from"./api.fe471eef.js";import{d as b,e as E,f as N,u as t,c as n,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.33ac8cf0.js";import{w as F}from"./metadata.9e4f8380.js";import{a as M}from"./asyncComputed.9837140d.js";import{A as I}from"./index.f737d7de.js";import{A as J}from"./index.43a96421.js";import"./ExclamationCircleOutlined.55ff1770.js";import"./workspaces.5a78a193.js";import"./runnerData.411ef4c2.js";import"./url.d6d42cf8.js";import"./record.88671b98.js";import"./validations.61b9d43a.js";import"./string.cf4460b1.js";import"./PhArrowSquareOut.vue.8f35b18d.js";import"./index.7459a6b4.js";import"./Badge.5af6a5fd.js";import"./isNumeric.75337b1e.js";import"./index.fed9fe14.js";import"./Card.3815c904.js";import"./TabPane.3c2ae325.js";import"./uuid.5f70b278.js";import"./fetch.fbcfc71d.js";import"./PhBug.vue.14c4ca47.js";import"./PhCheckCircle.vue.dd54e5f8.js";import"./PhKanban.vue.3f725030.js";import"./PhWebhooksLogo.vue.ecd2df5b.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]="dff2ca9a-19ae-444c-a580-189e28989caf",s._sentryDebugIdIdentifier="sentry-dbid-dff2ca9a-19ae-444c-a580-189e28989caf")}catch{}})();const P={key:1,class:"workflow-editor"},R={class:"workflow-toolbar"},X=["onDragstart"],$=b({__name:"WorkflowEditor",setup(s){const i=E(null),u=N(()=>{var a;return(a=i.value)==null?void 0:a.gui}),v=new W,{result:l,loading:g}=M(()=>C.create(v)),x=(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(g)?(r(),n(D,{key:0})):(r(),_("div",P,[t(l)?(r(),n(A,{key:0,ref_key:"canvasGui",ref:i,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(),n(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=>x(e.typeName,p)},[(r(),n(V(e.icon),{width:"18",height:"18",class:"toolbar-item"}))],40,X)]),_:2},1024))),128)),d(t(J),{type:"vertical"}),t(l)?(r(),n(h,{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.19cd32ea.js.map
