import{_ as D}from"./SaveButton.vue_vue_type_script_setup_true_lang.ae51ec57.js";import{L as x}from"./LoadingContainer.8bdfd331.js";import{C as E,W as A}from"./model.a82d0e8d.js";import{E as W}from"./api.4b751f1f.js";import{d as N,r as V,y as B,b as e,eV as m,u as t,c as p,eX as y,f as s,w as a,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.fb72f334.js";import{w as S}from"./metadata.33f78358.js";import{a as U}from"./asyncComputed.7ed124a4.js";import{U as I}from"./UnsavedChangesHandler.2c595f4e.js";import{A as P}from"./index.f34a29b4.js";import"./workspaces.5d48a54d.js";import"./runnerData.aad08e2c.js";import"./url.14a615f7.js";import"./record.7e471bce.js";import"./pubsub.b6388b69.js";import"./validations.2f89f9b3.js";import"./string.8f29ec33.js";import"./PhArrowSquareOut.vue.880000c0.js";import"./index.82052404.js";import"./Badge.0b807204.js";import"./isNumeric.75337b1e.js";import"./index.d697c0c3.js";import"./Form.829a2cd2.js";import"./hasIn.ebbb1eda.js";import"./Card.4eb2c6ac.js";import"./TabPane.ec6e6a9e.js";import"./Modal.082f2dc7.js";import"./uuid.0b9386c0.js";import"./fetch.019a6448.js";import"./PhCheckCircle.vue.74dac16e.js";import"./PhKanban.vue.6c573e74.js";import"./PhScroll.vue.17174b09.js";import"./PhWebhooksLogo.vue.606ade3b.js";import"./ExclamationCircleOutlined.1f5cfba6.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]="75b7a806-61a5-41cf-adc6-ca92db999389",n._sentryDebugIdIdentifier="sentry-dbid-75b7a806-61a5-41cf-adc6-ca92db999389")}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 r;return(r=i.value)==null?void 0:r.gui}),g=new W,{result:d,loading:h}=U(()=>A.create(g)),b=(r,c)=>{var l,o;(l=c.dataTransfer)==null||l.setData("type",r),(o=_.value)==null||o.dragstart(r,c)};return(r,c)=>{var l;return e(),m(w,null,[t(h)?(e(),p(x,{key:0})):(e(),m("div",X,[t(d)?(e(),p(E,{key:0,ref_key:"canvasGui",ref:i,model:t(d)},null,8,["model"])):y("",!0),s(t(H),null,{default:a(()=>[k("div",Y,[(e(!0),m(w,null,G(t(S).stages,o=>(e(),p(t(F),{key:o.typeName,placement:"top"},{title:a(()=>[s(t(L),null,{default:a(()=>[s(t(v),null,{default:a(()=>[f(u(o.title),1)]),_:2},1024),s(t(v),{keyboard:""},{default:a(()=>[f(u(o.key),1)]),_:2},1024)]),_:2},1024)]),content:a(()=>[f(u(o.description),1)]),default:a(()=>[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(d)?(e(),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 xt=M(j,[["__scopeId","data-v-04ada247"]]);export{xt as default};
//# sourceMappingURL=WorkflowEditor.b8bf4cf7.js.map
