import{L as h}from"./LoadingContainer.91064174.js";import{S as C}from"./SaveButton.d65552d2.js";import{C as x,W as A}from"./model.8e9c7094.js";import{E as b}from"./api.39bb761e.js";import{d as E,e as W,f as N,u as e,o,c as i,et as _,ev as y,b as d,w as r,a as w,aD as B,eC as V,cQ as k,ar as m,ez as f,eD as S,cw as T,cV as G,R as L}from"./vue-router.9c189215.js";import{w as F}from"./metadata.8d3d9e54.js";import{a as M}from"./asyncComputed.9b764511.js";import{A as z}from"./index.cef5be1e.js";import{A as I}from"./index.cfeca020.js";import"./ExclamationCircleOutlined.e7e177bc.js";import"./workspaces.071bd719.js";import"./runnerData.bc555239.js";import"./url.31fc40ca.js";import"./record.81eab1e4.js";import"./validations.3502c42f.js";import"./string.ab5242d0.js";import"./PhArrowSquareOut.vue.ddd88f8c.js";import"./index.52637728.js";import"./Badge.8f0bc30f.js";import"./isNumeric.75337b1e.js";import"./index.aa9903a2.js";import"./Card.2a8e9df0.js";import"./TabPane.1c00cd5f.js";import"./uuid.29ec31f9.js";import"./fetch.cbad757f.js";import"./PhCheckCircle.vue.77d168c1.js";import"./PhKanban.vue.79a750bc.js";import"./PhWebhooksLogo.vue.4027a276.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]="1064d3e3-f82d-4170-80ea-e259e7f7c764",s._sentryDebugIdIdentifier="sentry-dbid-1064d3e3-f82d-4170-80ea-e259e7f7c764")}catch{}})();const P={key:1,class:"workflow-editor"},Q={class:"workflow-toolbar"},R=["onDragstart"],j=E({__name:"WorkflowEditor",setup(s){const n=W(null),u=N(()=>{var a;return(a=n.value)==null?void 0:a.gui}),v=new b,{result:l,loading:g}=M(()=>A.create(v)),D=(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(h,{key:0})):(o(),_("div",P,[e(l)?(o(),i(x,{key:0,ref_key:"canvasGui",ref:n,model:e(l)},null,8,["model"])):y("",!0),d(e(G),null,{default:r(()=>[w("div",Q,[(o(!0),_(B,null,V(e(F).stages,t=>(o(),i(e(T),{key:t.typeName,placement:"top"},{title:r(()=>[d(e(z),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=>D(t.typeName,p)},[(o(),i(S(t.icon),{width:"18",height:"18",class:"toolbar-item"}))],40,R)]),_:2},1024))),128)),d(e(I),{type:"vertical"}),e(l)?(o(),i(C,{key:0,model:e(l),disabled:void 0,type:"primary"},null,8,["model"])):y("",!0)])]),_:1})]))}});const ke=L(j,[["__scopeId","data-v-de9c06f6"]]);export{ke as default};
//# sourceMappingURL=WorkflowEditor.edbb5a4b.js.map
