import{d as k,ex as S,ey as $,r as C,H as B,b as a,d2 as t,bu as u,ez as b,e as c,eA as v,ew as g,f as o,I as y,eu as i,c as D,w as l,u as m,v as f,eB as L,eC as T,a as A,cb as N,b0 as O}from"./registerWidgets.e46eca28.js";import{f as V,h as W,j,d as E,c as H,m as R,w as z}from"./icons.db549bc5.js";import{T as F}from"./Tooltip.cf86d848.js";import{_ as J}from"./logo.084e5d7c.js";import{L as P}from"./LoginBlock.5751a1e2.js";import{_ as U}from"./DocsButton.vue_vue_type_script_setup_true_lang.b60f35ac.js";import{c as q}from"./index.32337da8.js";import"./workspaces.5c5c851b.js";import"./activeRecord.d83b1b14.js";import"./pubsub.8f2ecd1e.js";import"./popupNotifcation.51171d15.js";import"./asyncComputed.15fd30e0.js";import"./transButton.6834f8a3.js";import"./index.aba1cab9.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[n]="3e943f4c-d491-4aaf-a012-0e2ffd52445c",s._sentryDebugIdIdentifier="sentry-dbid-3e943f4c-d491-4aaf-a012-0e2ffd52445c")}catch{}})();const G={class:"sidebar"},K={class:"section-name"},M=["onClick"],Q={class:"item-name"},X={key:0,class:"tag soon"},Y={key:1,class:"tag beta"},Z={key:2,class:"tag cloud"},ee=k({__name:"Sidebar",setup(s){var h;const n=S(),p=$(),r=C((h=p.name)!=null?h:"forms"),x=B(()=>[{name:"Runtime",items:[{name:"Forms",icon:V,path:"forms"},{name:"Hooks",icon:W,path:"hooks"},{name:"Jobs",icon:j,path:"jobs"},{name:"Dashes",icon:E,path:"dashes",beta:!0}]},{name:"Settings",items:[{name:"Style",icon:H,path:"style"},{name:"Sidebar",icon:R,path:"sidebar"}]}]),I=d=>{d.unavailable||(n.push(d.path),r.value=d.path)};return(d,pe)=>(a(),t("div",G,[(a(!0),t(u,null,b(x.value,_=>(a(),t("div",{key:_.name,class:"section"},[c("span",K,v(_.name),1),(a(!0),t(u,null,b(_.items,e=>(a(),t("div",{key:e.name,role:"button",class:g(["item",{active:r.value===e.path,disabled:e.unavailable||_.cloud}]),tabindex:"0",onClick:ue=>I(e)},[o(y,{class:g(["icon",{disabled:e.unavailable,active:r.value===e.path}]),path:e.icon,width:"20",height:"20"},null,8,["class","path"]),c("span",Q,v(e.name),1),e.unavailable?(a(),t("span",X,"SOON")):i("",!0),e.beta?(a(),t("span",Y,"BETA")):i("",!0),e.cloud?(a(),t("span",Z,"CLOUD")):i("",!0),e.warning?(a(),D(F,{key:3,class:"warning",text:e.warning,fixed:!0,top:18,left:18},{default:l(()=>[o(y,{path:m(z),fill:"#D35249",width:"20",height:"20"},null,8,["path"])]),_:2},1032,["text"])):i("",!0)],10,M))),128))]))),128))]))}});const se=f(ee,[["__scopeId","data-v-279aaccd"]]);const ae={},w=s=>(L("data-v-81cd596e"),s=s(),T(),s),te={class:"logo"},oe=w(()=>c("img",{src:J,alt:"Abstra cloud logo"},null,-1)),ne=w(()=>c("span",null," Abstra ",-1)),ce=[oe,ne];function re(s,n){return a(),t("div",te,ce)}const de=f(ae,[["render",re],["__scopeId","data-v-81cd596e"]]),_e={class:"workspace"},ie={class:"page-content"},le=k({__name:"Workspace",setup(s){return(n,p)=>{const r=A("router-view");return a(),t(u,null,[o(m(q),{style:{padding:"5px 10px"}},{title:l(()=>[o(de)]),extra:l(()=>[o(m(N),{type:"primary",href:"/_editor/workflow"},{default:l(()=>[O("Workflow editor")]),_:1}),o(U),o(P)]),_:1}),c("div",_e,[o(se,{class:"sidebar"}),c("div",ie,[o(r)])])],64)}}});const Be=f(le,[["__scopeId","data-v-02cd8bcb"]]);export{Be as default};
//# sourceMappingURL=Workspace.02094a68.js.map
