import{L as D}from"./LoadingContainer.824cc746.js";import{S as h}from"./SaveButton.e9222f9c.js";import{C as A,W as C}from"./model.66c44560.js";import{E as W}from"./api.a4d97af4.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 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.967882c8.js";import{w as F}from"./metadata.13347b41.js";import{a as M}from"./asyncComputed.4b2a24b4.js";import{A as I}from"./index.1d0b7068.js";import{A as J}from"./index.59911d25.js";import"./ExclamationCircleOutlined.46f64215.js";import"./workspaces.36a22d6b.js";import"./runnerData.6dfbb051.js";import"./url.ca479924.js";import"./record.b0f25f8f.js";import"./validations.46453e25.js";import"./string.76ce519c.js";import"./PhArrowSquareOut.vue.e9ee7d80.js";import"./index.ed4eff2c.js";import"./Badge.142b7502.js";import"./isNumeric.75337b1e.js";import"./index.1cdc6746.js";import"./Card.3d0c01c8.js";import"./TabPane.4d5829b5.js";import"./uuid.1bfc590a.js";import"./fetch.06db5e77.js";import"./PhBug.vue.4ca22a33.js";import"./PhCheckCircle.vue.1735ba12.js";import"./PhKanban.vue.d200ad18.js";import"./PhWebhooksLogo.vue.31f69db8.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]="840aa7fc-0ca9-4c25-a773-0c334e795471",s._sentryDebugIdIdentifier="sentry-dbid-840aa7fc-0ca9-4c25-a773-0c334e795471")}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 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(A,{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(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.2b3fd52d.js.map
