import{d as w,eA as B,eB as D,H as v,r as N,b as t,c as d,w as a,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.66cb3323.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.bf22aa40.js";import{_ as O}from"./logo.084e5d7c.js";import{B as Q}from"./BaseLayout.ee46c20b.js";import{N as U}from"./NavbarControls.2c801adc.js";import{c as X}from"./index.3de0e2a0.js";import"./workspaces.f83ce80a.js";import"./runnerData.a18d3892.js";import"./url.50176a21.js";import"./record.b20b5768.js";import"./pubsub.19cef690.js";import"./asyncComputed.e916adae.js";import"./envVars.06a0ac3d.js";import"./index.b5362490.js";import"./SaveButton.vue_vue_type_script_setup_true_lang.e340b115.js";import"./ant-design.3885082e.js";import"./index.02c3e4df.js";import"./Modal.7f50b274.js";import"./Typography.2ce150f4.js";import"./Link.71607fd1.js";import"./Base.e0db6d09.js";import"./CloseCircleOutlined.446ee7c7.js";import"./index.67ac4d72.js";import"./popupNotifcation.9d486082.js";import"./index.c07575ec.js";import"./Text.86e9a2de.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.f80c2df7.js";import"./Paragraph.de06c047.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]="425f8818-2faa-4fe0-8b5c-fe8ae02323ac",e._sentryDebugIdIdentifier="sentry-dbid-425f8818-2faa-4fe0-8b5c-fe8ae02323ac")}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(o=>o.children).flat().find(o=>o.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:a(()=>[(t(!0),l(g,null,y(b.value,r=>(t(),d(i(L),{key:r.name,title:r.name},{default:a(()=>[(t(!0),l(g,null,y(r.children,o=>(t(),d(i(T),{key:o.name,role:"button",tabindex:"0",onClick:le=>A(o)},{icon:a(()=>[s(f,{path:o.icon,width:"18",height:"18"},null,8,["path"])]),default:a(()=>[V($(o.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 ae={},S=e=>(P("data-v-81cd596e"),e=e(),R(),e),oe={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",oe,re)}const ce=x(ae,[["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:a(()=>[s(i(X),{style:{padding:"5px 25px"}},{title:a(()=>[s(ce)]),extra:a(()=>[s(U,{"show-github-stars":"","show-v-s-code-button":""})]),_:1})]),sidebar:a(()=>[s(te,{class:"sidebar"})]),content:a(()=>[s(_)]),_:1})}}});export{We as default};
//# sourceMappingURL=Workspace.b279f449.js.map
