import{_ as D}from"./SaveButton.vue_vue_type_script_setup_true_lang.67bd35cf.js";import{L as x}from"./LoadingContainer.e89d330f.js";import{C as E,W as A}from"./model.394f2d30.js";import{E as W}from"./api.d87a733a.js";import{d as N,r as V,y as B,b as e,eV as c,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 v,am as f,f4 as u,f3 as T,cB as F,cY as H,E as M}from"./outputWidgets.161060e0.js";import{w as S}from"./metadata.7b60aad0.js";import{a as U}from"./asyncComputed.23e92968.js";import{U as I}from"./UnsavedChangesHandler.16673348.js";import{A as P}from"./index.ebf06c63.js";import"./workspaces.421f6612.js";import"./runnerData.b771a540.js";import"./url.5fda3169.js";import"./record.6a8bcc7f.js";import"./pubsub.ce004d19.js";import"./validations.450a5ff3.js";import"./string.0c0535f5.js";import"./PhArrowSquareOut.vue.09acb7fc.js";import"./index.1bb6a914.js";import"./Badge.f721ec16.js";import"./isNumeric.75337b1e.js";import"./index.c3bb7fe0.js";import"./Form.52ea0ff3.js";import"./hasIn.9bea2804.js";import"./Card.b8807339.js";import"./TabPane.a32e9742.js";import"./Modal.27701131.js";import"./uuid.4877e2f9.js";import"./fetch.a2434bd0.js";import"./PhCheckCircle.vue.21e08a83.js";import"./PhKanban.vue.c2d48f6c.js";import"./PhScroll.vue.510a499e.js";import"./PhWebhooksLogo.vue.35f83d87.js";import"./ExclamationCircleOutlined.1e441bc7.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]="a6af0b1c-6249-4326-91d1-7242b55ac02e",n._sentryDebugIdIdentifier="sentry-dbid-a6af0b1c-6249-4326-91d1-7242b55ac02e")}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}),g=new W,{result:l,loading:h}=U(()=>A.create(g)),b=(a,m)=>{var d,o;(d=m.dataTransfer)==null||d.setData("type",a),(o=_.value)==null||o.dragstart(a,m)};return(a,m)=>{var d;return e(),c(w,null,[t(h)?(e(),p(x,{key:0})):(e(),c("div",X,[t(l)?(e(),p(E,{key:0,ref_key:"canvasGui",ref:i,model:t(l)},null,8,["model"])):y("",!0),s(t(H),null,{default:r(()=>[k("div",Y,[(e(!0),c(w,null,G(t(S).stages,o=>(e(),p(t(F),{key:o.typeName,placement:"top"},{title:r(()=>[s(t(L),null,{default:r(()=>[s(t(v),null,{default:r(()=>[f(u(o.title),1)]),_:2},1024),s(t(v),{keyboard:""},{default:r(()=>[f(u(o.key),1)]),_:2},1024)]),_:2},1024)]),content:r(()=>[f(u(o.description),1)]),default:r(()=>[k("span",{draggable:"true",onDragstart:C=>b(o.typeName,C)},[(e(),p(T(o.icon),{width:"18",height:"18",class:"toolbar-item"}))],40,$)]),_:2},1024))),128)),s(t(P),{type:"vertical"}),t(l)?(e(),p(D,{key:0,model:t(l),disabled:void 0,type:"primary"},null,8,["model"])):y("",!0)])]),_:1})])),s(I,{"has-changes":(d=t(l))==null?void 0:d.hasChanges()},null,8,["has-changes"])],64)}}});const xt=M(j,[["__scopeId","data-v-04ada247"]]);export{xt as default};
//# sourceMappingURL=WorkflowEditor.6c9c6f63.js.map
