import{_ as B}from"./AppLoadingIndicator.20b259db.1750111005555.js";import{_ as L,V as I,n as x,a as A}from"./index.86ad6e8e.1750111005555.js";import{r as c,q as R,s as F,t as O,v as T,w as C,x as H,o as p,e as N,h as t,y as h,z as b,A as m,f as e,i as o,V as f,B as d,b as W,c as D,d as w,C as j,D as E,j as k,S as M,k as P,E as q,F as G,l as J,m as K,n as Q,p as U}from"./index.737529e8.1750111005555.js";import X from"./Footer.d318122f.1750111005555.js";import Y from"./NavSearchBar.f2bfd5aa.1750111005555.js";/* empty css                                                                */import Z from"./UserProfile.bc23ed9c.1750111005555.js";import"./_plugin-vue_export-helper.c27b6911.1750111005555.js";import"./VRow.65155936.1750111005555.js";import"./UserDialog.1e1ffc35.1750111005555.js";import"./validators.ecb9ff09.1750111005555.js";import"./AppTextField.969b9caf.1750111005555.js";import"./NavBarNotifications.7a7717c2.1750111005555.js";import"./VTooltip.508adc8b.1750111005555.js";import"./useAbility.645d44d8.1750111005555.js";import"./VCheckbox.74018340.1750111005555.js";import"./VDialog.e4612af5.1750111005555.js";const ee={class:"layout-navbar"},ae={class:"navbar-content-container"},te={class:"layout-page-content"},oe={class:"layout-footer"},se={class:"footer-content-container"},ne=t("span",null,"-",-1),le=t("span",null,"-",-1),re=t("span",null,"-",-1),ie=t("span",null,"-",-1),ce={__name:"HorizontalNavLayout",props:{navItems:{type:null,required:!0},verticalNavAttrs:{type:Object,default:()=>({})}},setup(g){const _=g,l=c(!1),n=()=>{l.value=!l.value},{width:s}=R(),v=F(),u=c(!1),r=c(!1),i=O(u);return T(u,r),C(s,()=>{!v.isLessThanOverlayNavBreakpoint&&r.value&&(r.value=!1)}),H(L,{isOverlayNavActive:u.value,toggleIsOverlayNavActive:i,navItems:_.navItems},{"nav-header":()=>{var a;return(a=slots["vertical-nav-header"])==null?void 0:a.call(slots)},"before-nav-items":()=>{var a;return(a=slots["before-vertical-nav-items"])==null?void 0:a.call(slots)}}),(a,y)=>(p(),N("div",{class:b(["layout-wrapper",m(v)._layoutClasses])},[t("div",{class:b(["layout-navbar-and-nav-container",m(v).isNavbarBlurEnabled&&"header-blur"])},[t("div",ee,[t("div",ae,[h(a.$slots,"navbar")])])],2),t("main",te,[h(a.$slots,"default")]),t("footer",oe,[t("div",se,[h(a.$slots,"footer")]),e(I,{elevation:0,grow:"",class:"menu-footer",mode:"shift"},{default:o(()=>[e(f,{to:"/","selected-class":"menu-footer-ativo"},{default:o(()=>[e(d,{icon:"tabler-home",size:"25"}),ne]),_:1}),e(f,{to:"/lojas","selected-class":"menu-footer-ativo"},{default:o(()=>[e(d,{icon:"tabler-building-store",size:"25"}),le]),_:1}),e(f,{to:"/carrinho","selected-class":"menu-footer-ativo"},{default:o(()=>[e(d,{icon:"tabler-shopping-cart",size:"25"}),re]),_:1}),e(f,{onClick:n,"selected-class":"menu-footer-ativo"},{default:o(()=>[e(d,{icon:"tabler-menu-2",size:"25"}),ie]),_:1})]),_:1})])],2))}},ue=t("img",{src:A,alt:"logo",class:"app-logo d-flex align-content-center"},null,-1),ze={__name:"DefaultLayoutWithHorizontalNav",setup(g){const _=W(),l=D(),n=c(!1),s=c(null);C([n,s],()=>{n.value&&s.value&&s.value.fallbackHandle(),!n.value&&s.value&&s.value.resolveHandle()},{immediate:!0}),J(i=>{l.themes.value[l.name.value].colors.primary=i,K(`${l.name.value}ThemePrimaryColor`,null).value=i,Q(U("initial-loader-color"),null).value=i},100)("#F27405"),_.theme="light";const u=window.innerWidth,r=c(!1);return u<768&&(r.value=!0),(i,a)=>{const y=w("RouterLink"),S=B,V=w("RouterView");return p(),N(G,null,[e(m(ce),{"nav-items":m(x)},{navbar:o(()=>[e(y,{to:"/",class:"d-flex align-center gap-x-3",style:j(m(r)?"margin-left: -7px;":"")},{default:o(()=>[ue]),_:1},8,["style"]),e(E),e(Y,{"trigger-btn-class":"ms-lg-n3"}),e(Z)]),footer:o(()=>[e(X)]),default:o(()=>[e(S,{ref_key:"refLoadingIndicator",ref:s},null,512),e(V,null,{default:o(({Component:$})=>[(p(),k(M,{timeout:0,onFallback:a[0]||(a[0]=z=>n.value=!0),onResolve:a[1]||(a[1]=z=>n.value=!1)},{default:o(()=>[(p(),k(P($)))]),_:2},1024))]),_:1})]),_:1},8,["nav-items"]),q("s ")],64)}}};export{ze as default};
