import{_ as w,r as i,u as x,l as y,i as _,c,o as f,a as t,f as l,t as m,e as C,C as p,w as $,k as M,T as k,F as S}from"./app-q0jdcHwC.js";import{_ as g,C as j,a as D}from"./MobileMenuCategory-BshJE2iw.js";import{_ as h}from"./SearchIcon-C2CiCe3u.js";import{r as B}from"./ChevronDownIcon-Dv6ySi1F.js";import"./useMousePosition-BCaqObBa.js";import"./ChevronRightIcon-BtvBgAWv.js";const N={class:"relative lg:bg-slate-100"},V={class:"container-2 flex items-center justify-between md:gap-3 lg:gap-10 flex-nowrap relative py-2 px-4 lg:py-4 2xl:px-0 border-t border-b border-slate-100 lg:border-none"},F={class:"w-full px-3 flex justify-between items-center gap-2 rounded-lg bg-white h-12"},I={class:"w-full text-primary-600 text-base font-medium font-['Inter'] leading-normal text-start text-nowrap"},T=["placeholder"],z={type:"submit",class:"h-full px-6 py-3 bg-primary-600 flex justify-center items-center gap-3"},L={class:"text-white text-base font-semibold leading-normal"},O={type:"submit",class:"h-full flex justify-start items-center"},A=["placeholder"],E={key:0,class:"h-0 relative w-full"},R={class:"container-2 relative max-h-[80vh] overflow-y-scroll overflow-x-visible scrollbar-hide"},q={class:"w-80 bg-slate-100 p-2"},G={__name:"NavbarBottom",setup(H){const a=i(!1),n=i(),r=i(!1),u=x(),v=y(),d=s=>{s.preventDefault();const o=new FormData(s.target).get("search");console.log(o),u.search=o,v.push({name:"products"})},b=async()=>{n.value=u.categories};return _(()=>{b()}),(s,e)=>(f(),c(S,null,[t("div",N,[t("div",V,[t("button",{onClick:e[0]||(e[0]=o=>r.value=!0),class:"block lg:hidden p-3 bg-primary-50 rounded-lg"},[l(g,{width:"24",height:"24",class:"fill-primary"})]),t("div",{class:"hidden lg:block min-w-80 relative",onMouseenter:e[1]||(e[1]=o=>a.value=!0),onMouseleave:e[2]||(e[2]=o=>a.value=!1)},[t("button",F,[l(g,{width:"24",height:"24",class:"fill-primary"}),t("p",I,m(s.$t("All Categories")),1),l(C(B),{class:"text-primary w-5 h-5"})])],32),e[7]||(e[7]=t("div",{class:"block lg:hidden w-0 self-stretch origin-top-left rotate-0 outline outline-1 outline-offset-[-0.50px] outline-neutral-100 mx-2"},null,-1)),t("form",{onSubmit:p(d,["prevent"]),class:"w-full h-12 bg-white rounded-lg hidden lg:flex justify-between items-center overflow-hidden"},[t("input",{type:"search",name:"search",class:"form-control grow h-full inline-block p-6 placeholder:text-gray-400 text-zinc-900 text-base font-normal font-['Lato'] leading-normal outline-none",placeholder:s.$t("Search for products")+"..."},null,8,T),t("button",z,[l(h,{colorClass:"text-white"}),t("p",L,m(s.$t("Search")),1)])],32),t("form",{onSubmit:p(d,["prevent"]),class:"w-full h-12 bg-white rounded-lg flex lg:hidden justify-between items-center overflow-hidden bg-neutral-100 rounded-lg outline outline-1 outline-offset-[-1px] outline-gray-100 p-2"},[t("button",O,[l(h,{colorClass:"text-slate-400"})]),t("input",{type:"search",name:"search",class:"form-control grow h-full inline-block p-6 pl-2 placeholder:text-gray-400 text-zinc-900 text-base font-normal font-['Lato'] leading-normal outline-none",placeholder:s.$t("Search for products")+"..."},null,8,A)],32)]),l(k,{name:"slide-fade"},{default:$(()=>[a.value?(f(),c("div",E,[t("div",R,[t("ul",q,[l(j,{onMouseenter:e[3]||(e[3]=o=>a.value=!0),onMouseleave:e[4]||(e[4]=o=>a.value=!1),items:n.value,showImage:!0,onClose:e[5]||(e[5]=o=>a.value=!1)},null,8,["items"])])])])):M("",!0)]),_:1})]),l(D,{mobileMenuCategoryOpen:r.value,categories:n.value,onClose:e[6]||(e[6]=o=>r.value=!1)},null,8,["mobileMenuCategoryOpen","categories"])],64))}},X=w(G,[["__scopeId","data-v-a5c1abf5"]]);export{X as default};
