import{d as k,eA as B,eB as D,r as N,G as $,b as a,ev as o,bq as b,eC as g,e as d,eD as v,ez as y,f as n,I as w,ex as c,c as x,w as s,u as I,v as S,eE as L,eF as T,a as m}from"./outputWidgets.396f5ce1.js";import{p as A,c as E,m as V,a as O,w as R}from"./icons.37b6f90f.js";import{T as q}from"./Tooltip.92756f89.js";import{_ as z}from"./logo.084e5d7c.js";import{B as F}from"./BaseLayout.16854fe5.js";import{N as P}from"./NavbarControls.d0ada778.js";import{c as W}from"./index.f6bad865.js";import"./workspaces.784fafc7.js";import"./record.1aff3d29.js";import"./pubsub.06faa612.js";import"./url.4e42e1d0.js";import"./popupNotifcation.bd1b6235.js";import"./asyncComputed.95737324.js";import"./index.8f7afe7c.js";import"./SaveButton.vue_vue_type_script_setup_true_lang.04edd88f.js";import"./ant-design.e656dd24.js";import"./index.b703167a.js";import"./Modal.c02a2840.js";import"./index.f0384574.js";import"./Text.4e180dc2.js";import"./Base.ee1dde08.js";import"./index.8b4185b0.js";import"./Link.70d4fc5a.js";import"./Title.819eb0fe.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[r]="85c28d1c-4fdf-4576-9ba1-a2866d5301bc",t._sentryDebugIdIdentifier="sentry-dbid-85c28d1c-4fdf-4576-9ba1-a2866d5301bc")}catch{}})();const G={class:"sidebar"},H={class:"section-name"},U=["onClick"],j={class:"item-name"},J={key:0,class:"tag soon"},K={key:1,class:"tag beta"},M={key:2,class:"tag cloud"},Q=k({__name:"Sidebar",setup(t){var h;const r=B(),p=D(),i=N((h=p.name)!=null?h:"forms"),f=$(()=>[{name:"Runtime",items:[{name:"Scripts",icon:A,path:"scripts"}]},{name:"Settings",items:[{name:"Style",icon:E,path:"style"},{name:"Sidebar",icon:V,path:"sidebar"},{name:"Packages",icon:O,path:"requirements"}]}]),u=_=>{_.unavailable||(r.push(_.path),i.value=_.path)};return(_,ne)=>(a(),o("div",G,[(a(!0),o(b,null,g(f.value,l=>(a(),o("div",{key:l.name,class:"section"},[d("span",H,v(l.name),1),(a(!0),o(b,null,g(l.items,e=>(a(),o("div",{key:e.name,role:"button",class:y(["item",{active:i.value===e.path,disabled:e.unavailable||l.cloud}]),tabindex:"0",onClick:re=>u(e)},[n(w,{class:y(["icon",{disabled:e.unavailable,active:i.value===e.path}]),path:e.icon,width:"20",height:"20"},null,8,["class","path"]),d("span",j,v(e.name),1),e.unavailable?(a(),o("span",J,"SOON")):c("",!0),e.beta?(a(),o("span",K,"BETA")):c("",!0),e.cloud?(a(),o("span",M,"CLOUD")):c("",!0),e.warning?(a(),x(q,{key:3,class:"warning",text:e.warning,fixed:!0,top:18,left:18},{default:s(()=>[n(w,{path:I(R),fill:"#D35249",width:"20",height:"20"},null,8,["path"])]),_:2},1032,["text"])):c("",!0)],10,U))),128))]))),128))]))}});const X=S(Q,[["__scopeId","data-v-1248a30e"]]);const Y={},C=t=>(L("data-v-81cd596e"),t=t(),T(),t),Z={class:"logo"},ee=C(()=>d("img",{src:z,alt:"Abstra cloud logo"},null,-1)),te=C(()=>d("span",null," Abstra ",-1)),ae=[ee,te];function oe(t,r){return a(),o("div",Z,ae)}const se=S(Y,[["render",oe],["__scopeId","data-v-81cd596e"]]),Le=k({__name:"Workspace",setup(t){return(r,p)=>{const i=m("ant-button"),f=m("router-link"),u=m("router-view");return a(),x(F,null,{navbar:s(()=>[n(I(W),{style:{padding:"5px 10px"}},{title:s(()=>[n(se)]),extra:s(()=>[n(P,{"show-github-stars":""},{default:s(()=>[c("",!0)]),_:1})]),_:1})]),sidebar:s(()=>[n(X,{class:"sidebar"})]),content:s(()=>[n(u)]),_:1})}}});export{Le as default};
//# sourceMappingURL=Workspace.34a3c820.js.map
