import{_ as D}from"./SaveButton.vue_vue_type_script_setup_true_lang.08b0207b.js";import{L as x}from"./LoadingContainer.17a55082.js";import{C as E,W as A}from"./model.e4cca9e4.js";import{E as W}from"./api.491f7a89.js";import{d as N,r as V,y as B,b as o,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.049ac64d.js";import{w as S}from"./metadata.68579fd9.js";import{a as U}from"./asyncComputed.ea730548.js";import{U as I}from"./UnsavedChangesHandler.ec55a733.js";import{A as P}from"./index.eef1a417.js";import"./workspaces.3ec329b9.js";import"./runnerData.ea577873.js";import"./url.bfc1d6a1.js";import"./record.5a9ec5fd.js";import"./pubsub.0c3367ed.js";import"./validations.c2904803.js";import"./string.3fb102a6.js";import"./PhArrowSquareOut.vue.3f754e86.js";import"./index.7422ae93.js";import"./Badge.75599d10.js";import"./isNumeric.75337b1e.js";import"./index.c1842d07.js";import"./Form.8d97bd19.js";import"./hasIn.8c8d3925.js";import"./Card.6629bb68.js";import"./TabPane.223e6cb6.js";import"./Modal.dcfdf87a.js";import"./uuid.52af8294.js";import"./fetch.869cbc1f.js";import"./PhCheckCircle.vue.7af99e00.js";import"./PhKanban.vue.b5adf1c2.js";import"./PhScroll.vue.6c7ddf10.js";import"./PhWebhooksLogo.vue.d32b627f.js";import"./ExclamationCircleOutlined.741abbbe.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]="00ae9d99-b187-4091-a076-ec552907fb98",n._sentryDebugIdIdentifier="sentry-dbid-00ae9d99-b187-4091-a076-ec552907fb98")}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,e;(d=m.dataTransfer)==null||d.setData("type",a),(e=_.value)==null||e.dragstart(a,m)};return(a,m)=>{var d;return o(),c(w,null,[t(h)?(o(),p(x,{key:0})):(o(),c("div",X,[t(l)?(o(),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,[(o(!0),c(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(v),null,{default:r(()=>[f(u(e.title),1)]),_:2},1024),s(t(v),{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=>b(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(l)?(o(),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.10700f1a.js.map
