import{_ as w,u as k,r as n,i as _,b as h,c as r,o as s,a as l,F as m,g as C,d as M,w as f,h as z,t as i,f as v,n as T,e as o,k as B,E as N,T as V}from"./app-q0jdcHwC.js";import{C as P}from"./CategoryMenu-nc4UBMN1.js";import{u as D}from"./useMousePosition-BCaqObBa.js";const E={class:"hidden md:inline-flex justify-start items-center gap-2.5 lg:gap-3 xl:gap-8 grow"},F={key:1},I={key:0,class:"fixed top-22 left-0 h-auto bg-transparent w-full"},L={class:"relative h-auto w-full max-h-[80vh] overflow-y-scroll overflow-x-visible scrollbar-hide"},S=["href","target"],$={__name:"MenuPages",setup(j){const u=k(),{mouseX:c,stopTracking:d,startTracking:p}=D();n(null);const a=n(!1),g=n(),x=async()=>{g.value=u.categories};return _(()=>{x()}),(X,e)=>{const b=h("router-link");return s(),r("div",E,[(s(!0),r(m,null,C(o(u).menus,(t,q)=>(s(),r("div",{key:t.id,class:"flex items-center gap-2.5 lg:gap-3 xl:gap-5 2xl:gap-6"},[t.is_external?(s(),r("a",{key:1,href:t.url,target:t.target,class:"h-9 py-2 border-b-2 border-transparent text-sm lg:text-base font-normal text-zinc-900"},i(t.name),9,S)):(s(),r(m,{key:0},[t.name.toLowerCase()!=="categories"?(s(),M(b,{key:0,to:t.url,target:t.target,class:"h-9 py-2 border-b-2 border-transparent text-sm lg:text-base font-medium text-zinc-900 whitespace-nowrap transtion-all duration-300 hover:text-primary"},{default:f(()=>[z(i(t.name),1)]),_:2},1032,["to","target"])):(s(),r("div",F,[l("button",{class:T(["h-9 py-2 border-b-2 border-transparent text-sm lg:text-base font-medium whitespace-nowrap cursor-pointer capitalize text-zinc-900 transtion-all duration-300 hover:text-primary",a.value?"text-primary":"text-zinc-900"]),onClick:e[0]||(e[0]=y=>a.value=!a.value),onMouseenter:e[1]||(e[1]=()=>{a.value=!0,o(d)()}),onMouseleave:e[2]||(e[2]=()=>{a.value=!1,o(p)()})},i(t.name),35),v(V,{name:"slide-fade"},{default:f(()=>[a.value?(s(),r("ul",I,[l("div",L,[l("div",{class:"absolute top-0 w-fit",style:N({left:o(c)-50+"px"})},[v(P,{onMouseenter:e[3]||(e[3]=()=>{a.value=!0,o(d)()}),onMouseleave:e[4]||(e[4]=()=>{a.value=!1,o(p)()}),items:g.value,showImage:!0,onClose:e[5]||(e[5]=y=>a.value=!1)},null,8,["items"])],4)])])):B("",!0)]),_:1})]))],64))]))),128)),e[6]||(e[6]=l("div",null,null,-1))])}}},J=w($,[["__scopeId","data-v-aec4b1a2"]]);export{J as M};
