import{a as f}from"./index.Iz6DHysp.js";import{_ as h}from"./HeaderMenuLink.vue.ClCxwLIT.js";import{_ as x}from"./HeaderSectionItemMobile.vue.DSjqN9Wm.js";import{_}from"./Icon.vue.Cmog-BTr.js";import b from"./VerticalStack.HmIf70mN.js";import r from"./Wrapper.Dhj6d9Iu.js";import{_ as v}from"./Button.vue.CvBn0PTH.js";import{f as w,r as k,a9 as y,o as a,n as o,w as l,b as m,x as i,c as u,A as g,F as c,j as s,k as B}from"./entry.FpkzWRi9.js";const j=w({__name:"HeaderMenuMobile",props:{sections:{},hasBanner:{type:Boolean},button:{},headerBackground:{}},setup(C){const e=k(!1),d=()=>{e.value=!e.value,e.value&&document.body.classList.add("overflow-hidden"),e.value||document.body.classList.remove("overflow-hidden")};y(()=>{document.body.classList.remove("overflow-hidden")});const{y:p}=f();return(n,L)=>(a(),o(r,{class:"lg:hidden"},{default:l(()=>[m(_,{height:"auto",width:"auto",name:e.value?"ic-close":"ic-menu",class:i(["w-[24px] md:w-[32px] md:min-w-[32px] min-w-[24px] aspect-square cursor-pointer",{"text-white":n.headerBackground==="teal-950"}]),onClick:d},null,8,["name","class"]),m(r,{class:i([[{"max-h-screen duration-700":e.value},n.hasBanner&&B(p)<40?"h-[calc(100vh-103px)] md:h-[calc(100vh-107px)]":"h-[calc(100vh-63px)] md:h-[calc(100vh-67px)]"],"absolute top-[calc(100%+1px)] inset-0 bg-white z-50 max-h-0 overflow-hidden"])},{default:l(()=>[e.value?(a(),o(b,{key:0,id:"mobileMenu",class:"px-[20px] py-[20px] md:px-[32px] pb-[100px] relative h-full w-full overflow-y-auto"},{default:l(()=>[(a(!0),u(c,null,g(n.sections,t=>(a(),u(c,{key:t._uid},[t.component==="menu-link"?(a(),o(h,{key:0,class:"py-[16px] md:py-[20px] border-b border-border",item:t},null,8,["item"])):s("",!0),t.component==="header-section"?(a(),o(x,{key:1,item:t},null,8,["item"])):s("",!0)],64))),128)),e.value?(a(),o(r,{key:0,class:"px-[20px] py-[20px] bg-white fixed inset-x-0 bottom-0 md:hidden w-full"},{default:l(()=>[n.button?(a(),o(v,{key:0,class:"!w-full",blok:n.button},null,8,["blok"])):s("",!0)]),_:1})):s("",!0)]),_:1})):s("",!0)]),_:1},8,["class"])]),_:1}))}});export{j as _};
