import{_ as D}from"./SaveButton.vue_vue_type_script_setup_true_lang.063e5178.js";import{L as x}from"./LoadingContainer.816bd751.js";import{C as E,W as A}from"./model.eec681b8.js";import{E as W}from"./api.601f0646.js";import{d as N,r as V,y as B,b as o,eV as m,u as t,c as p,eX as y,f as s,w as r,ay as w,e as k,f2 as G,cH as L,cV as b,am as f,f4 as u,f3 as T,cB as F,cY as H,E as M}from"./outputWidgets.9e7bd3a6.js";import{w as S}from"./metadata.22937975.js";import{a as U}from"./asyncComputed.fb556333.js";import{U as I}from"./UnsavedChangesHandler.351f8ebe.js";import{A as P}from"./index.bc1017fc.js";import"./workspaces.b4b6e33b.js";import"./runnerData.612b9465.js";import"./url.1f5e31bf.js";import"./record.dce94ddc.js";import"./pubsub.f3af3eeb.js";import"./validations.f86edcaf.js";import"./string.6d0759d4.js";import"./PhArrowSquareOut.vue.03deadf7.js";import"./index.49c494fd.js";import"./Badge.ee030deb.js";import"./isNumeric.75337b1e.js";import"./index.4ef54852.js";import"./Form.dfca34ad.js";import"./hasIn.35808092.js";import"./Card.f3981b7f.js";import"./TabPane.46cefe49.js";import"./Modal.41211848.js";import"./uuid.4dd73f48.js";import"./PhCheckCircle.vue.30d6c294.js";import"./PhKanban.vue.214ed7d0.js";import"./PhScroll.vue.729b9761.js";import"./PhWebhooksLogo.vue.67eab4c4.js";import"./ExclamationCircleOutlined.03eefce9.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[i]="b7ce0da3-7b18-46f3-8bcb-f5db39843e93",n._sentryDebugIdIdentifier="sentry-dbid-b7ce0da3-7b18-46f3-8bcb-f5db39843e93")}catch{}})();const X={key:1,class:"workflow-editor"},Y={class:"workflow-toolbar"},$=["onDragstart"],j=N({__name:"WorkflowEditor",setup(n){const i=V(null),_=B(()=>{var a;return(a=i.value)==null?void 0:a.gui}),v=new W,{result:d,loading:g}=U(()=>A.create(v)),h=(a,c)=>{var l,e;(l=c.dataTransfer)==null||l.setData("type",a),(e=_.value)==null||e.dragstart(a,c)};return(a,c)=>{var l;return o(),m(w,null,[t(g)?(o(),p(x,{key:0})):(o(),m("div",X,[t(d)?(o(),p(E,{key:0,ref_key:"canvasGui",ref:i,model:t(d)},null,8,["model"])):y("",!0),s(t(H),null,{default:r(()=>[k("div",Y,[(o(!0),m(w,null,G(t(S).stages,e=>(o(),p(t(F),{key:e.typeName,placement:"top"},{title:r(()=>[s(t(L),null,{default:r(()=>[s(t(b),null,{default:r(()=>[f(u(e.title),1)]),_:2},1024),s(t(b),{keyboard:""},{default:r(()=>[f(u(e.key),1)]),_:2},1024)]),_:2},1024)]),content:r(()=>[f(u(e.description),1)]),default:r(()=>[k("span",{draggable:"true",onDragstart:C=>h(e.typeName,C)},[(o(),p(T(e.icon),{width:"18",height:"18",class:"toolbar-item"}))],40,$)]),_:2},1024))),128)),s(t(P),{type:"vertical"}),t(d)?(o(),p(D,{key:0,model:t(d),disabled:void 0,type:"primary"},null,8,["model"])):y("",!0)])]),_:1})])),s(I,{"has-changes":(l=t(d))==null?void 0:l.hasChanges()},null,8,["has-changes"])],64)}}});const Dt=M(j,[["__scopeId","data-v-04ada247"]]);export{Dt as default};
//# sourceMappingURL=WorkflowEditor.41558106.js.map
