import{_ as S,a as L,b as $,c as y,d as C,e as B,f as N}from"./HeaderComponent-wKGfadnI.js";import{_ as E}from"./ButtonDefault-CghIUDY0.js";import{d as H,ao as R,E as u,c as l,o as e,a as n,b as t,w as s,v as m,e as T,u as A,C as a,au as D,a1 as K}from"./index-CipWZKo_.js";import{u as V}from"./server-DA2BhLHe.js";import{_ as I}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./IconClose-ChC2G6HM.js";import"./IconCross-C6IvNpdZ.js";import"./IconServer-CdUgYuSa.js";import"./IconSettings-6AAphU28.js";import"./IconProfile-CLsn7h6L.js";import"./bootstrap-vue-next-3DpAa4tb.js";import"./contracts-CILh9uSu.js";import"./user-placeholder-CyUFSnNp.js";import"./notes-BiOFV6-v.js";import"./postings-dJpYnOCG.js";import"./basket-BrgYPkmu.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(d){const _=H(),c=R();return(w,o)=>{const r=u("RouterLink"),p=E;return e(),l("header",M,[n("div",j,[t(r,{to:"/Home"},{default:s(()=>[n("img",{src:m(c).data.TopLogo,alt:"Logo",class:"tw-max-w-[120px] md:tw-max-w-[200px]"},null,8,z)]),_:1}),n("div",F,[t(r,{class:"btn btn-default btn--border",to:"/Registration"},{default:s(()=>o[1]||(o[1]=[T("Регистрация",-1)])),_:1,__:[1]}),t(p,{label:"Войти в аккаунт",onClick:o[0]||(o[0]=i=>m(_).push("/Logon"))})])])])}}},q={class:"main-content"},J={class:"page-content"},O={class:"tw-flex-1 tw-min-w-0"},P={__name:"DefaultLayout",setup(d){const _=A(),c=V();return _&&c.fetchServerGroups(),(w,o)=>{const r=S,p=G,i=L,f=N,h=u("router-view"),g=$,b=y,x=C,v=B;return e(),l("main",q,[m(_).userLoggedIn?(e(),a(r,{key:0})):(e(),a(p,{key:1})),n("div",J,[t(i,{class:"tw-hidden md:tw-block"}),n("div",O,[t(h,null,{default:s(({Component:k})=>[(e(),a(D,{timeout:0},{fallback:s(()=>[t(f)]),default:s(()=>[(e(),a(K(k)))]),_:2},1024))]),_:1})])]),t(g),t(b),t(x),t(v)])}}},mt=I(P,[["__scopeId","data-v-643f327e"]]);export{mt as default};
