import{d as w,eA as B,eB as D,H as v,r as N,b as t,c as d,w as o,ev as l,eC as y,u as i,cw as L,aD as g,bf as T,f as s,I as f,ar as V,eD as $,ex as k,bh as E,v as x,eE as P,eF as R,e as I,a as M}from"./outputWidgets.ed989e0a.js";import{p as W,w as q,k as F,s as H,a as j,b as G,v as z,c as J,d as K}from"./icons.8f8b8d07.js";import{_ as O}from"./logo.084e5d7c.js";import{B as Q}from"./BaseLayout.7ec04095.js";import{N as U}from"./NavbarControls.c1407acf.js";import{c as X}from"./index.e56fd585.js";import"./workspaces.794fe924.js";import"./runnerData.8a85b982.js";import"./url.7656a70f.js";import"./record.f2e811cc.js";import"./pubsub.14278e58.js";import"./asyncComputed.9f78a6df.js";import"./envVars.8fdda236.js";import"./index.babdaf2d.js";import"./SaveButton.vue_vue_type_script_setup_true_lang.c23abd7c.js";import"./ant-design.91be1275.js";import"./index.b8ad5c16.js";import"./Modal.1ce4fb47.js";import"./Typography.5e43ce25.js";import"./Link.3b52e7a5.js";import"./Base.42a4c5ca.js";import"./CloseCircleOutlined.bb70643e.js";import"./index.08bc448a.js";import"./popupNotifcation.c17802b7.js";import"./index.881316ff.js";import"./Text.8e13d454.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.a2269c93.js";import"./Paragraph.4678e06b.js";import"./ArrowRightOutlined.08fa31dd.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="3215d8f7-269d-41f3-8ef2-19edeb0b7e0f",e._sentryDebugIdIdentifier="sentry-dbid-3215d8f7-269d-41f3-8ef2-19edeb0b7e0f")}catch{}})();const Y={key:0,class:"collapsible"},Z={key:1,class:"collapsible"},ee=w({__name:"Sidebar",setup(e){const n=B(),p=D();function _(){var m,r;return[(r=(m=b.value.map(a=>a.children).flat().find(a=>a.path===p.path))==null?void 0:m.name)!=null?r:"Workflow"]}const C=v(_),c=N(!1),h=()=>{c.value=!c.value},b=v(()=>[{name:"Project",children:[{name:"Stages",icon:W,path:"/_editor/stages"},{name:"Workflow",icon:q,path:"/_editor/workflow"},{name:"Threads",icon:F,path:"/_editor/kanban"}]},{name:"Settings",children:[{name:"Style",icon:H,path:"/_editor/style"},{name:"Sidebar",icon:j,path:"/_editor/sidebar"},{name:"Requirements",icon:G,path:"/_editor/requirements"},{name:"Env Vars",icon:z,path:"/_editor/env-vars"}]}]),A=u=>{n.push(u.path)};return(u,m)=>(t(),d(i(E),{"inline-collapsed":c.value,"selected-keys":C.value,style:{display:"flex","flex-direction":"column"}},{default:o(()=>[(t(!0),l(g,null,y(b.value,r=>(t(),d(i(L),{key:r.name,title:r.name},{default:o(()=>[(t(!0),l(g,null,y(r.children,a=>(t(),d(i(T),{key:a.name,role:"button",tabindex:"0",onClick:le=>A(a)},{icon:o(()=>[s(f,{path:a.icon,width:"18",height:"18"},null,8,["path"])]),default:o(()=>[V($(a.name),1)]),_:2},1032,["onClick"]))),128))]),_:2},1032,["title"]))),128)),c.value?(t(),l("div",Y,[s(f,{path:i(J),onClick:h},null,8,["path"])])):k("",!0),c.value?k("",!0):(t(),l("div",Z,[s(f,{path:i(K),onClick:h},null,8,["path"])]))]),_:1},8,["inline-collapsed","selected-keys"]))}});const te=x(ee,[["__scopeId","data-v-70171c75"]]);const oe={},S=e=>(P("data-v-81cd596e"),e=e(),R(),e),ae={class:"logo"},se=S(()=>I("img",{src:O,alt:"Abstra cloud logo"},null,-1)),ne=S(()=>I("span",null," Abstra ",-1)),re=[se,ne];function ie(e,n){return t(),l("div",ae,re)}const ce=x(oe,[["render",ie],["__scopeId","data-v-81cd596e"]]),We=w({__name:"Workspace",setup(e){return(n,p)=>{const _=M("router-view");return t(),d(Q,{"full-canvas":""},{navbar:o(()=>[s(i(X),{style:{padding:"5px 25px"}},{title:o(()=>[s(ce)]),extra:o(()=>[s(U,{"show-github-stars":"","show-v-s-code-button":""})]),_:1})]),sidebar:o(()=>[s(te,{class:"sidebar"})]),content:o(()=>[s(_)]),_:1})}}});export{We as default};
//# sourceMappingURL=Workspace.2a4514fe.js.map
