1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/cart-B-Gd6SVC.js","assets/rolldown-runtime-CXHxssQy.js","assets/vendor-core-DLV7unHF.js","assets/vendor-data-gP-SiX90.js","assets/i18n-BHBA6a-T.js","assets/preload-helper-BATLnrmA.js","assets/tracker-B3eq4qtf.js","assets/consent-DGzR1_ti.js","assets/identity-BOpqziND.js","assets/context-CYcc3Yen.js","assets/vendor-ui-HbZeGnVr.js","assets/utils-BUDDtgTh.js","assets/cva-tn1nuMbq.js","assets/api-CRGwQGva.js","assets/queryClient-CbhGi5gS.js","assets/_csrf-Df8Tgp56.js","assets/calculations-sGaDeB3w.js","assets/pricing-DVpphzOp.js","assets/events-api-CvO6EJ1p.js","assets/consent-BxQtDmwD.js","assets/hooks-Cd6OUmlD.js","assets/OptimizedImage-DsBIYH2D.js","assets/slugify-COPcHoH5.js","assets/RecommendationRow-DKG5T0mM.js","assets/use-toast-PQNKAu0e.js","assets/useScrollEdges-BLkm0ofD.js","assets/LazyImage-YkWFZ137.js","assets/Price-DofhS5ms.js","assets/useTranslatedProduct-hromY3mz.js","assets/cart-beacon-o8QDXeMo.js"])))=>i.map(i=>d[i]); 2import{r as y}from"./rolldown-runtime-CXHxssQy.js";import{a as w,d as b,f as q,l as T,t as r}from"./vendor-core-DLV7unHF.js";import{i as a}from"./queryClient-CbhGi5gS.js";import{r as E}from"./i18n-BHBA6a-T.js";import{t as C}from"./preload-helper-BATLnrmA.js";import{At as S,Hn as W,Xn as k,Zt as D}from"./vendor-ui-HbZeGnVr.js";import{t as j}from"./utils-BUDDtgTh.js";import{o as F,u as B}from"./api-CRGwQGva.js";import{n as K}from"./wishlist-BMhRPdNt.js";import{n as Q}from"./cart-B-Gd6SVC.js";import{t as H}from"./useAuth-D0TmjQpm.js";import{r as L}from"./chatbot-Dc7BP0fX.js";import{t as A}from"./BottomNavV2-C3_fxLT3.js";var n=y(q(),1),M=y(b(),1),O="/assets/3_1765151925056-DWvu7wui.png";async function i(t){const s=await fetch(t,{credentials:"include"});if(!s.ok)throw new Error(`Failed to fetch ${t}`);return s.json()}function p(){a.getQueryData(H)&&(a.prefetchQuery({queryKey:["/api/orders"],queryFn:()=>i("/api/orders"),staleTime:3e5}),a.prefetchQuery({queryKey:["/api/user/discount-codes"],queryFn:()=>i("/api/user/discount-codes"),staleTime:3e5}),a.prefetchQuery({queryKey:["/api/addresses"],queryFn:()=>i("/api/addresses"),staleTime:3e5}))}function x(){a.prefetchQuery({queryKey:["products",{limit:24}],queryFn:()=>B({limit:24}),staleTime:3e5}),a.prefetchQuery({queryKey:["categories"],queryFn:()=>F(),staleTime:3e5})}function g(){a.prefetchQuery({queryKey:["wishlist"],queryFn:()=>K(),staleTime:3e5})}var e=T(),P=(0,n.lazy)(()=>C(()=>import("./cart-B-Gd6SVC.js").then(t=>t.t).then(t=>({default:t.CartDrawer})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29]))),ae=[{code:"es",name:"ES",flag:"ðªð¸"},{code:"en",name:"EN",flag:"ð¬ð§"},{code:"de",name:"DE",flag:"ð©ðª"},{code:"ru",name:"RU",flag:"ð·ðº"},{code:"zh",name:"ZH",flag:"ð¨ð³"},{code:"it",name:"IT",flag:"ð®ð¹"},{code:"fr",name:"FR",flag:"ð«ð·"}];function o(t){return j("flex flex-col items-center justify-center flex-1 h-full gap-1 transition-colors duration-200 select-none",t?"text-primary":"text-muted-foreground hover:text-foreground")}function R(){const[t]=w(),{t:s}
2=E(),[c,l]=(0,n.useState)(!1),[u,_]=(0,n.useState)(!1);if(t==="/account"||t.startsWith("/account/"))return null;const m=t==="/",d=t==="/wishlist",N=t==="/categories"||t.startsWith("/categories/"),v=()=>{u||_(!0),l(!0)},h=document.getElementById("bottom-nav-portal"),f=(0,e.jsxs)("nav",{className:"w-full bg-white/95 backdrop-blur-md rounded-t-3xl shadow-[0_-6px_20px_rgba(181,41,94,0.12)] pb-safe md:hidden",children:[(0,e.jsxs)("div",{className:"flex items-center h-16 max-w-md mx-auto",children:[(0,e.jsxs)(r,{href:"/",className:o(m),onMouseEnter:()=>x(),onTouchStart:()=>x(),children:[(0,e.jsx)(k,{className:"w-5 h-5",strokeWidth:m?2.5:2}),(0,e.jsx)("span",{className:"text-[10px] font-medium",children:s.nav.home})]}),(0,e.jsxs)(r,{href:"/wishlist",className:o(d),onMouseEnter:()=>g(),onTouchStart:()=>g(),children:[(0,e.jsx)("img",{src:O,alt:"",width:20,height:20,className:"w-5 h-5",style:{filter:d?"invert(48%) sepia(79%) saturate(2476%) hue-rotate(319deg) brightness(94%) contrast(92%)":"invert(50%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(90%) contrast(90%)"}}),(0,e.jsx)("span",{className:"text-[10px] font-medium",children:s.nav.wishlist})]}),(0,e.jsxs)(r,{href:"/categories",className:"flex flex-col items-center justify-center flex-1 h-full select-none",children:[(0,e.jsx)("span",{className:"-mt-6 w-[46px] h-[46px] rounded-full bg-[#E85A8B] border-[3px] border-white shadow-[0_4px_12px_rgba(232,90,139,0.38)] flex items-center justify-center text-white",children:(0,e.jsx)(W,{className:"w-5 h-5",strokeWidth:2.25})}),(0,e.jsx)("span",{className:j("text-[10px] font-medium mt-0.5",N?"text-primary":"text-muted-foreground"),children:s.nav.categories})]}),(0,e.jsxs)("button",{type:"button",onClick:v,className:o(c),"data-testid":"mobile-cart",children:[(0,e.jsxs)("span",{className:"relative",children:[(0,e.jsx)(D,{className:"w-5 h-5",strokeWidth:2}),(0,e.jsx)("span",{className:"absolute -top-1.5 -right-2",children:(0,e.jsx)(Q,{})})]}),(0,e.jsx)("span",{className:"text-[10px] font-medium",children:s.nav.cart})]}),(0,e.jsxs)(r,{href:"/account",className:o(t==="/account"),onMouseEnter:()=>p(),onTouchStart:()=>p(),children:[(0,e.jsx)(S,{className:"w-5 h-5",strokeWidth:t==="/account"?2.5:2}),(0,e.jsx)("span",{className:"text-[10px] font-medium",children:s.nav.account})]})]}),u&&(0,e.jsx)(n.Suspense,{fallback:null,children:(0,e.jsx)(P,{open:c,onOpenChange:l})})]});return h?(0,M.createPortal)(f,h):f}function re(){return L()?(0,e.jsx)(A,{}):(0,e.jsx)(R,{})}export{O as a,g as i,ae as n,p as r,re as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.