import{L as b}from"./LoadingContainer.810c895c.js";import{S as h}from"./SaveButton.9a5d5d8a.js";import{C as x,W as A}from"./model.3755de50.js";import{E as C}from"./api.14333d39.js";import{d as E,e as W,f as B,u as t,o as e,c as i,W as _,R as y,b as d,w as r,a as w,aJ as N,eD as V,cV as k,ax as f,eA as m,eE as S,cB as T,c_ as G,$ as L}from"./vue-router.b2844dbd.js";import{w as F}from"./metadata.7533f2aa.js";import{a as M}from"./asyncComputed.6438c00c.js";import{A as I}from"./index.a19b8d23.js";import{A as J}from"./index.3f446e05.js";import"./ExclamationCircleOutlined.f2497988.js";import"./workspaces.198efbfc.js";import"./runnerData.9fbeada9.js";import"./url.c5aa13f6.js";import"./record.d017e1a2.js";import"./validations.867d2176.js";import"./string.6a4d30e3.js";import"./PhArrowSquareOut.vue.b18d1766.js";import"./index.2754d54e.js";import"./Badge.7209b892.js";import"./isNumeric.75337b1e.js";import"./index.c8fb32b5.js";import"./Card.81031f41.js";import"./TabPane.1487adae.js";import"./uuid.1e016e3a.js";import"./fetch.0f9030aa.js";import"./PhCheckCircle.vue.fd275d53.js";import"./PhKanban.vue.fbcc2e7d.js";import"./PhWebhooksLogo.vue.b7fc26fe.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]="e6428d5f-8903-4707-a096-244f2f3b3324",s._sentryDebugIdIdentifier="sentry-dbid-e6428d5f-8903-4707-a096-244f2f3b3324")}catch{}})();const P={key:1,class:"workflow-editor"},R={class:"workflow-toolbar"},$=["onDragstart"],j=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}=M(()=>A.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(),i(b,{key:0})):(e(),_("div",P,[t(l)?(e(),i(x,{key:0,ref_key:"canvasGui",ref:n,model:t(l)},null,8,["model"])):y("",!0),d(t(G),null,{default:r(()=>[w("div",R,[(e(!0),_(N,null,V(t(F).stages,o=>(e(),i(t(T),{key:o.typeName,placement:"top"},{title:r(()=>[d(t(I),null,{default:r(()=>[d(t(k),null,{default:r(()=>[f(m(o.title),1)]),_:2},1024),d(t(k),{keyboard:""},{default:r(()=>[f(m(o.key),1)]),_:2},1024)]),_:2},1024)]),content:r(()=>[f(m(o.description),1)]),default:r(()=>[w("span",{draggable:"true",onDragstart:p=>D(o.typeName,p)},[(e(),i(S(o.icon),{width:"18",height:"18",class:"toolbar-item"}))],40,$)]),_:2},1024))),128)),d(t(J),{type:"vertical"}),t(l)?(e(),i(h,{key:0,model:t(l),disabled:void 0,type:"primary"},null,8,["model"])):y("",!0)])]),_:1})]))}});const kt=L(j,[["__scopeId","data-v-de9c06f6"]]);export{kt as default};
//# sourceMappingURL=WorkflowEditor.7b011b39.js.map
