import{q as o,j as e,a as s}from"./app-CmUQXjFf.js";const u=({categories:a,genderList:n})=>{const{url:t}=o(),d=r=>a.filter(l=>l.parent_id===null&&(l.gender.id===1||l.gender.id===r)).map(l=>l.sub_categories&&l.sub_categories.length>0&&e.jsxs("li",{children:[e.jsx("span",{className:"text-lg font-bold mb-4 inline-block",children:l.name}),e.jsx("ul",{children:l.sub_categories.filter(i=>i.gender.id===1||i.gender.id===r).map(i=>e.jsx("li",{className:"hover:underline my-2",children:e.jsx(s,{href:"/",children:i.name})},i.id))})]},l.id));return e.jsx("nav",{className:"d_container mx-auto hidden lg:block relative",children:e.jsxs("ul",{className:"flex justify-center border-b border-d_gray/50",children:[e.jsx("li",{className:`group cursor-pointer ${t==="/"?"text-d_light_blue":""}`,children:e.jsx(s,{href:"/",className:"group-hover:text-d_light_blue text-lg tracking-wider uppercase font-semibold inline-block py-4 px-4",children:"Home"})}),n.filter(r=>r.name!=="All").map(r=>e.jsxs("li",{className:"group cursor-pointer py-4 px-4",children:[e.jsx("span",{className:"group-hover:text-d_light_blue text-lg tracking-wider uppercase font-semibold",children:r.name}),e.jsx("div",{className:"hidden group-hover:block absolute top-full left-0 w-full bg-d_white dark:bg-d_dark_blue shadow-md border-b dark:border-d_gray overflow-hidden px-4",children:e.jsx("ul",{className:"w-full grid grid-cols-4 container mx-auto py-8 gap-6",children:d(r.id)})})]},r.id)),e.jsx("li",{className:`group cursor-pointer ${t.startsWith("/about")?"text-d_light_blue":""}`,children:e.jsx(s,{href:"/about",className:"group-hover:text-d_light_blue text-lg tracking-wider uppercase font-semibold inline-block py-4 px-4",children:"About"})}),e.jsx("li",{className:`group cursor-pointer ${t.startsWith("/contact")?"text-d_light_blue":""}`,children:e.jsx(s,{href:"/contact",className:"group-hover:text-d_light_blue text-lg tracking-wider uppercase font-semibold inline-block py-4 px-4",children:"Contact Us"})})]})})};export{u as default};
