import{_ as S,a as $,b as C,c as L,d as y,e as B,f as N}from"./HeaderComponent-D9y1RjxX.js";import{_ as E}from"./ButtonDefault-BIBStZbJ.js";import{d as H,ao as R,E as l,c as u,o as e,a as n,b as t,w as s,v as i,e as T,u as A,C as a,au as K,a1 as V}from"./index-CmCGXBst.js";import{u as D}from"./server-CRQmsQ4v.js";import"./IconClose-B_k4TzXM.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./IconCross-BH1MaI1J.js";import"./IconServer-g21NC45O.js";import"./IconSettings-C_oAltUA.js";import"./IconProfile-BO-wrWBn.js";import"./bootstrap-vue-next-DwS3lKQb.js";import"./contracts-P7YPBhEI.js";import"./user-placeholder-CyUFSnNp.js";import"./notes-CtofXW6g.js";import"./postings-CAwWnBGE.js";import"./basket-DLQfX1Py.js";const M={class:"tw-fixed tw-top-0 tw-left-0 tw-z-30 tw-w-full tw-flex tw-items-center tw-h-16 md:tw-h-20 tw-border-b tw-border-gray-200 tw-bg-white"},j={class:"tw-flex tw-items-center tw-justify-between tw-px-4 md:tw-pr-8 tw-w-full"},z=["src"],F={class:"tw-hidden md:tw-flex tw-items-center tw-gap-4"},G={__name:"HeaderNotAuth",setup(w){const r=H(),c=R();return(d,o)=>{const _=l("RouterLink"),m=E;return e(),u("header",M,[n("div",j,[t(_,{to:"/Home"},{default:s(()=>[n("img",{src:i(c).data.TopLogo,alt:"Logo",class:"tw-max-w-[120px] md:tw-max-w-[200px]"},null,8,z)]),_:1}),n("div",F,[t(_,{class:"btn btn-default btn--border",to:"/Registration"},{default:s(()=>o[1]||(o[1]=[T("Регистрация",-1)])),_:1,__:[1]}),t(m,{label:"Войти в аккаунт",onClick:o[0]||(o[0]=p=>i(r).push("/Logon"))})])])])}}},I={class:"tw-flex tw-flex-col tw-min-h-screen"},q={class:"tw-relative tw-flex-1 tw-flex tw-mt-16 md:tw-mt-20 tw-w-full"},J={class:"tw-flex-1 tw-min-w-0"},ct={__name:"DefaultLayout",setup(w){const r=A(),c=D();return r&&c.fetchServerGroups(),(d,o)=>{const _=S,m=G,p=$,f=N,h=l("router-view"),x=C,g=L,b=y,v=B;return e(),u("main",I,[i(r).userLoggedIn?(e(),a(_,{key:0})):(e(),a(m,{key:1})),n("div",q,[t(p,{class:"tw-hidden md:tw-block"}),n("div",J,[t(h,null,{default:s(({Component:k})=>[(e(),a(K,{timeout:0},{fallback:s(()=>[t(f)]),default:s(()=>[(e(),a(V(k)))]),_:2},1024))]),_:1})])]),t(x),t(g),t(b),t(v)])}}};export{ct as default};
