1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2411],{11647:(e,t,r)=>{"use strict";r.d(t,{E:()=>i});var s=r(95155);r(12115);var a=r(83101),l=r(64269);let o=(0,a.F)("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function i(e){let{className:t,variant:r,...a}=e;return(0,s.jsx)("div",{className:(0,l.cn)(o({variant:r}),t),...a})}},13496:(e,t,r)=>{"use strict";r.d(t,{$m:()=>d,As:()=>c,nD:()=>n,ub:()=>m});var s=r(95155),a=r(12115),l=r(16083),o=r(59007),i=r(64269);let n=l.bL,c=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(l.q7,{ref:t,className:(0,i.cn)("border-b",r),...a})});c.displayName="AccordionItem";let d=a.forwardRef((e,t)=>{let{className:r,children:a,...n}=e;return(0,s.jsx)(l.Y9,{className:"flex",children:(0,s.jsxs)(l.l9,{ref:t,className:(0,i.cn)("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",r),...n,children:[a,(0,s.jsx)(o.A,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})})});d.displayName=l.l9.displayName;let m=a.forwardRef((e,t)=>{let{className:r,children:a,...o}=e;return(0,s.jsx)(l.UC,{ref:t,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...o,children:(0,s.jsx)("div",{className:(0,i.cn)("pb-4 pt-0",r),children:a})})});m.displayName=l.UC.displayName},27096:(e,t,r)=>{Promise.resolve().then(r.bind(r,88920))},33173:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(14294).A)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},64269:(e,t,r)=>{"use strict";r.d(t,{AE:()=>o,cn:()=>l,s3:()=>i});var s=r(2821),a=r(75889);function l(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,a.QP)((0,s.$)(t))}function o(e){let t;if(!e)return;let r=e.bookingDate;if(r)t="function"==typeof r?.toDate?r.toDate():new Date(r);else if(e.date){let r="string"==typeof e.time&&/^\d{1,2}:\d{2}/.test(e.time)?e.time:"00:00";t=new Date(`${e.date}T${r}`)}if(!(!t||isNaN(t.getTime())))return t}function i(e){let t=new Date().getTime(),r=Math.random().toString(36).substring(2,8),s=e.substring(0,8);return`${t}-${s}-${r}`}},64658:(e,t,r)=>{"use strict";r.d(t,{A$:()=>g,SI:()=>f,UI:()=>w,ge:()=>y,tV:()=>j,yb:()=>h});var s=r(95155),a=r(71825),l=r(94908),o=r(61270),i=r(76140),n=r(72366),c=r(59338),d=r(72251),m=r(26615),u=r(19201),p=r(32361),x=r(13496);function h(e){let{delivery:t}=e,r=[{icon:a.A,title:"100% Authentic",sub:"Genuine, sourced products"},{icon:l.A,title:t?.title||"Fast UAE Delivery",sub:t?.sub||"Dispatched in 1â3 days"},{icon:o.A,title:"Secure Checkout",sub:"Encrypted card payment"},{icon:i.A,title:"Easy Returns",sub:"30-day peace of mind"}];return(0,s.jsx)("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-4",children:r.map(e=>{let{icon:t,title:r,sub:a}=e;return(0,s.jsxs)("div",{className:"flex flex-col items-center rounded-2xl border border-primary/10 bg-primary/5 p-4 text-center",children:[(0,s.jsx)(t,{className:"mb-2 h-6 w-6 text-primary"}),(0,s.jsx)("span",{className:"text-sm font-bold text-foreground",children:r}),(0,s.jsx)("span",{className:"text-xs text-muted-foreground",children:a})]},r)})})}function f(e){let{eta:t}=e,r=[{icon:n.A,top:"Today",label:"Order placed"},{icon:l.A,top:t?.dispatched||"1â2 days",label:"Dispatched"},{icon:c.A,top:t?.delivered||"2â3 days",label:"Delivered"}];return(0,s.jsx)("div",{className:"rounded-2xl border border-border bg-card p-6",children:(0,s.jsxs)("div",{className:"relative grid grid-cols-3 gap-2",children:[(0,s.jsx)("div",{className:"absolute left-[16%] right-[16%] top-6 h-0.5 bg-primary/20","aria-hidden":!0}),r.map(e=>{let{icon:t,top:r,label:a}=e;return(0,s.jsxs)("div",{className:"relative flex flex-col items-center text-center",children:[(0,s.jsx)("div",{className:"z-10 flex h-12 w-12 items-center justify-center rounded-full bg-primary text-primary-foreground",children:(0,s.jsx)(t,{className:"h-5 w-5"})}),(0,s.jsx)("p",{className:"mt-2 text-sm font-bold text-foreground",children:r}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:a})]},a)})]})})}let b=["Authentic, sourced products","Lab-tested supplement brands","Fast, tracked UAE delivery","Secure card checkout","Responsive local support"];function g(){return(0,s.jsxs)("section",{className:"mx-auto max-w-3xl",children:[(0,s.jsxs)("h2",{className:"mb-8 text-center font-headline text-2xl font-bold md:text-3xl",children:["Why choose ",(0,s.jsx)("span",{className:"text-primary",children:"XLR8well"}),"?"]}),(0,s.jsx)("div",{className:"overflow-hidden rounded-2xl border border-border",children:(0,s.jsxs)("div",{className:"grid grid-cols-[1fr_auto_auto] items-stretch",children:[(0,s.jsx)("div",{className:"bg-muted/50 p-4"}),(0,s.jsx)("div",{className:"flex items-center justify-center bg-primary px-6 py-4 text-center text-sm font-bold text-primary-foreground",children:"XLR8well"}),(0,s.jsx)("div",{className:"flex items-center justify-center bg-muted px-6 py-4 text-center text-sm font-semibold text-muted-foreground",children:"Others"}),b.map((e,t)=>(0,s.jsxs)("div",{className:"contents",children:[(0,s.jsx)("div",{className:`flex items-center p-4 text-sm font-medium ${t%2?"bg-muted/30":""}`,children:e}),(0,s.jsx)("div",{className:`flex items-center justify-center px-6 ${t%2?"bg-primary/5":""}`,children:(0,s.jsx)("span",{className:"flex h-6 w-6 items-center justify-center rounded-full bg-primary/15",children:(0,s.jsx)(d.A,{className:"h-4 w-4 text-primary"})})}),(0,s.jsx)("div",{className:`flex items-center justify-center px-6 ${t%2?"bg-muted/30":""}`,children:(0,s.jsx)("span",{className:"flex h-6 w-6 items-center justify-center rounded-full bg-muted",children:(0,s.jsx)(m.A,{className:"h-4 w-4 text-muted-foreground"})})})]},e))]})})]})}function y(){return(0,s.jsxs)("section",{className:"rounded-3xl bg-gradient-to-br from-primary to-primary/80 p-8 text-center text-primary-foreground md:p-12",children:[(0,s.jsx)(u.A,{className:"mx-auto mb-4 h-12 w-12"}),(0,s.jsx)("h2",{className:"mb-2 font-headline text-2xl font-bold md:text-3xl",children:"30-Day Satisfaction Guarantee"}),(0,s.jsx)("p",{className:"mx-auto max-w-xl text-primary-foreground
1/90",children:"We stand behind every product we ship. If it isnât right, our UAE support team will make it right â full refund or replacement in line with our return policy."})]})}let v=[{q:"How fast is delivery?",a:"Most UAE orders are dispatched within 1â3 working days. Some items sourced from our international partners take 5â10 business days â the estimate is shown on each product page, delivered with tracked courier service."},{q:"Are the products authentic?",a:"Yes. Every product is sourced through our authorised fulfilment partners and shipped sealed and genuine."},{q:"How do I pay?",a:"Checkout is by secure encrypted card payment. Your details are never stored on our servers."},{q:"What is your return policy?",a:"We offer a 30-day satisfaction guarantee. Contact our support team and weâll arrange a refund or replacement per our policy."}];function j(){return(0,s.jsxs)("section",{className:"mx-auto max-w-3xl",children:[(0,s.jsx)("p",{className:"mb-1 text-center text-sm font-semibold uppercase tracking-wider text-primary",children:"Got questions?"}),(0,s.jsx)("h2",{className:"mb-8 text-center font-headline text-2xl font-bold md:text-3xl",children:"Weâve got answers"}),(0,s.jsx)(x.nD,{type:"single",collapsible:!0,className:"w-full",children:v.map((e,t)=>(0,s.jsxs)(x.As,{value:`faq-${t}`,children:[(0,s.jsx)(x.$m,{className:"text-left text-base font-semibold",children:e.q}),(0,s.jsx)(x.ub,{className:"text-muted-foreground",children:e.a})]},t))})]})}function w(){return(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 rounded-2xl border border-border bg-card p-6 text-center sm:flex-row sm:gap-4",children:[(0,s.jsx)(p.A,{className:"h-6 w-6 text-primary"}),(0,s.jsx)("span",{className:"text-sm font-medium",children:"Need help choosing? Message our team on WhatsApp â we reply fast."})]})}},81107:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n,t:()=>c});var s=r(95155),a=r(12115);let l={general:{siteName:"XLR8well",siteDescription:"Accelerating Your Journey to Holistic Wellbeing."},appearance:{logoUrl:"https://firebasestorage.googleapis.com/v0/b/verv-portal.firebasestorage.app/o/Untitled%20design%20(7).png?alt=media&token=e6472222-a731-40af-86cb-465b40ec83db",faviconUrl:"https://firebasestorage.googleapis.com/v0/b/studio-9016672513-b929b.firebasestorage.app/o/Home%20Page%2FUntitled%2520design%2520(7)_200x200.webp?alt=media&token=7c8784a2-0037-4c72-a78a-dbb84987c1e4",heroImages:["https://firebasestorage.googleapis.com/v0/b/studio-9016672513-b929b.firebasestorage.app/o/Hero%20Images%2F1.png?alt=media&token=5dc15504-39b2-4ae4-b368-440ed54f44ad","https://firebasestorage.googleapis.com/v0/b/studio-9016672513-b929b.firebasestorage.app/o/Hero%20Images%2F2.png?alt=media&token=6104c61c-0880-42ab-af40-4f6ee46f579b"],homepageSections:[{id:"best-sellers",title:"XLR8's Best Sellers",enabled:!0},{id:"top-lab-tests",title:"Top Lab Tests",enabled:!0},{id:"womens-health",title:"Top for Women's Health",enabled:!0},{id:"mens-health",title:"Top for Men's Health",enabled:!0},{id:"iv-therapies",title:"Top IV Therapies",enabled:!0},{id:"top-retreats",title:"Featured Retreats",enabled:!0}],bestSellerProductIds:[],theme:{primaryColor:"173 49% 39%",accentColor:"41 100% 67%",backgroundColor:"0 0% 100%"}},promotions:{banner:{enabled:!1,message:"Use code XLRWELCOME for 20% OFF your first order!",promoCode:"XLRWELCOME",bgColor:"#0f172a",textColor:"#ffffff",link:"",dismissible:!0},bnpl:{showBadges:!1,badgeText:"Pay in 4 with"}},shop:{categories:[{id:"supplements",name:"Supplements",enabled:!0},{id:"sporting-goods",name:"Sporting Goods",enabled:!0}]},socialMedia:{facebook:{url:"",enabled:!0},twitter:{url:"",enabled:!0},instagram:{url:"",enabled:!0},linkedin:{url:"",enabled:!0},whatsapp:{url:"",enabled:!0},telegram:{url:"",enabled:!1}},payments:{codEnabled:!0,stripePublicKey:"",stripeSecretKey:"",tabby:{isActive:!1,publicKey:""},tamara:{isActive:!1,publicKey:""}},notifications:{webhook:{url:"",accessToken:""},whatsapp:{apiKey:"",apiUrl:"",senderId:""},email:{fromEmail:"",smtpHost:"",smtpPort:"",smtpUser:"",smtpPassword:""},messages:{bookingConfirmed:"Hi {{name}}, your booking {{bookingId}} is confirmed!",bookingCancelled:"Hi {{name}}, your booking {{bookingId}} has been cancelled.",bookingReminder:"Hi {{name}}, this is a reminder for your booking {{bookingId}} tomorrow."}},seo:{home:{metaTitle:"xlr8well | Home",metaDescription:"Accelerating Your Journey to Holistic Wellbeing.",keywords:["wellness","dubai","health"]},about:{metaTitle:"About Us | xlr8well",metaDescription:"Learn about our mission to democratize premium wellness.",keywords:["about","team","mission"]},services:{metaTitle:"Our Services | xlr8well",metaDescription:"Explore our comprehensive range of at-home health services.",keywords:["iv therapy","blood test","home doctor"]},shop:{metaTitle:"The Wellness Store | xlr8well",metaDescription:"Shop curated supplements and wellness products.",keywords:["shop","supplements","vitamins"]},partners:{metaTitle:"Partner with Us | xlr8well",metaDescription:"Join our network of healthcare professionals.",keywords:["partner","healthcare","b2b"]},investors:{metaTitle:"Investor Relations | xlr8well",metaDescription:"Invest in the future of proactive health.",keywords:["invest","venture capital","wellness economy"]}
1,contact:{metaTitle:"Contact Us | xlr8well",metaDescription:"Get in touch with the xlr8well team.",keywords:["contact","support","help"]}}};function o(e){return e&&"object"==typeof e&&!Array.isArray(e)}let i=(0,a.createContext)({settings:l,loading:!0,updateTheme:()=>{}});function n(e){let{children:t}=e,[r,n]=(0,a.useState)(l),[c,d]=(0,a.useState)(!0),m=(0,a.useCallback)(e=>{e&&(document.documentElement.style.setProperty("--primary",e.primaryColor),document.documentElement.style.setProperty("--accent",e.accentColor),document.documentElement.style.setProperty("--background",e.backgroundColor))},[]),u=(0,a.useCallback)(()=>{fetch("/api/db/settings").then(e=>e.json()).then(e=>{if(e&&Object.keys(e).length>0){let t=function e(t,r){let s={...t};return o(t)&&o(r)&&Object.keys(r).forEach(a=>{let l=t[a],i=r[a];o(l)&&o(i)?s[a]=e(l,i):s[a]=i}),s}(l,e);n(t),t.appearance?.theme&&m(t.appearance.theme)}else n(l);d(!1)}).catch(e=>{console.error("Failed to fetch settings, using defaults:",e),n(l),d(!1)})},[m]);(0,a.useEffect)(()=>{u();let e=()=>u();return window.addEventListener("xlr8well-settings-changed",e),()=>window.removeEventListener("xlr8well-settings-changed",e)},[u]);let p=(0,a.useMemo)(()=>({settings:r,loading:c,updateTheme:m}),[r,c,m]);return(0,s.jsx)(i.Provider,{value:p,children:t})}let c=()=>{let e=(0,a.useContext)(i);return void 0===e?{settings:null,loading:!0,updateTheme:async()=>{}}:e}},88920:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>k});var s=r(95155),a=r(12115),l=r(15239),o=r(52619),i=r.n(o),n=r(71825),c=r(94908),d=r(61270),m=r(76140),u=r(90109),p=r(26615),x=r(92033),h=r(11647),f=r(64269),b=r(92649),g=r(33173);function y(e){let{product:t}=e,r=`/shop/${t.slug}`,a=0===t.stock,o=t.compareAtPrice&&t.price<t.compareAtPrice,n=o?Math.round((1-t.price/t.compareAtPrice)*100):0;return(0,s.jsx)(i(),{href:r,className:(0,f.cn)("group relative block h-full",a&&"pointer-events-none opacity-60"),children:(0,s.jsxs)("div",{className:"relative flex h-full flex-col overflow-hidden rounded-2xl border border-border bg-white shadow-sm transition-all duration-300 hover:-translate-y-1 hover:border-primary/30 hover:shadow-xl hover:shadow-primary/10",children:[(0,s.jsxs)("div",{className:"relative aspect-square overflow-hidden bg-gray-50",children:[(0,s.jsx)(l.default,{src:t.images?.[0]||"https://firebasestorage.googleapis.com/v0/b/studio-9016672513-b929b.firebasestorage.app/o/Shop%2FGemini_Generated_Image_st07oost07oost07_200x200.png?alt=media&token=9aac92f6-daf2-4332-aaef-a648640134ca",alt:t.name||"Shop Product",fill:!0,className:"h-full w-full object-contain p-3 transition-transform duration-500 group-hover:scale-105",sizes:"(max-width: 768px) 50vw, (max-width: 1024px) 33vw, 22vw"}),o&&(0,s.jsxs)("span",{className:"absolute left-3 top-3 rounded-full bg-accent px-2.5 py-0.5 text-xs font-bold text-accent-foreground shadow",children:["SAVE ",n,"%"]}),(0,s.jsx)("div",{className:"absolute right-3 top-3 flex flex-col items-end gap-1.5",children:a?(0,s.jsx)(h.E,{variant:"destructive",children:"Out of Stock"}):t.stock<5?(0,s.jsx)(h.E,{className:"border-accent bg-accent text-accent-foreground",children:"Selling Fast"}):null})]}),(0,s.jsxs)("div",{className:"flex flex-grow flex-col p-4",children:[t.category&&(0,s.jsx)("div",{className:"mb-1.5 text-[10px] font-bold uppercase tracking-wider text-primary",children:t.category}),(0,s.jsx)("h3",{className:"mb-2 line-clamp-2 text-sm font-bold leading-snug text-foreground transition-colors group-hover:text-primary md:text-base",children:t.name}),(0,s.jsx)("div",{className:"mb-3 flex items-center gap-1 text-accent",children:[0,1,2,3,4].map(e=>(0,s.jsx)(b.A,{className:"h-3.5 w-3.5 fill-current"},e))}),(0,s.jsxs)("div",{className:"mt-auto flex items-end justify-between",children:[(0,s.jsxs)("div",{className:"flex flex-col",children:[o&&(0,s.jsxs)("span",{className:"text-xs text-muted-foreground line-through",children:["AED ",t.compareAtPrice.toFixed(2)]}),(0,s.jsxs)("span",{className:"text-lg font-extrabold text-primary",children:["AED ",t.price.toFixed(2)]})]}),(0,s.jsx)("span",{className:"flex h-9 w-9 items-center justify-center rounded-full bg-primary/10 text-primary transition-all group-hover:bg-primary group-hover:text-primary-foreground",children:(0,s.jsx)(g.A,{className:"h-4 w-4"})})]})]})]})})}var v=r(81107),j=r(64658);let w=new Set(["supplements","sporting-goods","health-beauty","fitness-sports-outdoors","the-xlr8well-collection"]),N=["the-xlr8well-collection"];function k(){let{settings:e,loading:t}=(0,v.t)(),[r,o]=(0,a.useState)([]),[h,f]=(0,a.useState)(!0),[b,g]=(0,a.useState)(null),[k,A]=(0,a.useState)(""),[C,S]=(0,a.useState)("all");(0,a.useEffect)(()=>{f(!0),fetch("/api/db/products?status=active").then(e=>e.json()).then(e=>{Array.isArray(e)&&o(e.filter(e=>{let t;return"string"==typeof(t=e.category)&&w.has(t.toLowerCase().replace(/[^a-z0-9]+/g,"-"))})),f(!1)}).catch(()=>f(!1))},[]),(0,a.useEffect)(()=>{let e=new URLSearchParams(window.location.search),t=e.get("category")||void 0,r="best-sellers"===e.get("filter"),s=e.get("maxPrice")?Number(e.get("maxPrice")):void 0;(t||r||s)&&g({category:t,bestSellers:r,maxPrice:s})},[]);let E=(0,a.useMemo)(()=>e?.shop?.categories?.filter(e=>e.enabled)??[],[e]),D=(0,a.useMemo)(()=>"all"===C?r:r.filter(e=>("syncee"===e.vendor?"standard":"fast")===C),[r,C]),P=(0,a.useMemo)(()=>b?D.filter(e=>(!b.category||!!(e.category===b.category||e.tags?.includes(b.category)))&&
1(!b.bestSellers||!!e.tags?.includes("best-seller"))&&(null==b.maxPrice||!!("number"==typeof e.price&&e.price<=b.maxPrice))):null,[D,b]),T=b?b.category?E.find(e=>e.id===b.category)?.name??b.category.replace(/-/g," ").replace(/\b\w/g,e=>e.toUpperCase()):b.bestSellers?"Best Sellers":`Under ${b.maxPrice} AED`:null,L=e=>e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,""),U=(0,a.useMemo)(()=>{let e=e=>E.find(t=>t.id===e||t.name===e)?.name||e.replace(/[-_]/g," ").replace(/\b\w/g,e=>e.toUpperCase()),t=new Map;for(let r of D){let s=L(r.category||"other");t.has(s)||t.set(s,{key:s,label:e(r.category||"Other"),items:[]}),t.get(s).items.push(r)}return[...t.values()].sort((e,t)=>{let r=N.indexOf(e.key),s=N.indexOf(t.key);return -1!==r||-1!==s?-1===r?1:-1===s?-1:r-s:t.items.length-e.items.length})},[D,E]),$=k.trim().toLowerCase(),R=(0,a.useMemo)(()=>$?D.filter(e=>[e.name,e.category,e.description].filter(Boolean).some(e=>e.toLowerCase().includes($))):null,[D,$]),I=[{icon:n.A,label:"100% Authentic"},{icon:c.A,label:"Fast UAE Delivery"},{icon:d.A,label:"Secure Checkout"},{icon:m.A,label:"30-Day Guarantee"}];return(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsxs)("section",{className:"relative flex min-h-[340px] items-center justify-center overflow-hidden text-center text-white",children:[(0,s.jsx)(l.default,{src:"https://firebasestorage.googleapis.com/v0/b/studio-9016672513-b929b.firebasestorage.app/o/Shop%2Funnamed%20(3).jpg?alt=media&token=eb92287b-d0a1-414a-b349-9f98f2687659",alt:"The XLR8well Store",fill:!0,className:"object-cover",priority:!0}),(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/90 via-primary/70 to-black/80"}),(0,s.jsxs)("div",{className:"relative container mx-auto px-4 py-16",children:[(0,s.jsx)("span",{className:"mb-4 inline-block rounded-full bg-white/15 px-4 py-1 text-sm font-semibold backdrop-blur",children:"Premium Supplements & Wellness"}),(0,s.jsx)("h1",{className:"font-headline text-4xl font-bold md:text-6xl",children:"The XLR8well Store"}),(0,s.jsx)("p",{className:"mx-auto mt-4 max-w-2xl text-lg text-white/90",children:"Authentic supplements and sports nutrition â sourced, lab-tested and delivered fast across the UAE."})]})]}),(0,s.jsx)("div",{className:"border-b border-border bg-card",children:(0,s.jsx)("div",{className:"container mx-auto grid grid-cols-2 gap-4 px-4 py-5 sm:grid-cols-4",children:I.map(e=>{let{icon:t,label:r}=e;return(0,s.jsxs)("div",{className:"flex items-center justify-center gap-2 text-center",children:[(0,s.jsx)(t,{className:"h-5 w-5 shrink-0 text-primary"}),(0,s.jsx)("span",{className:"text-xs font-semibold sm:text-sm",children:r})]},r)})})}),(0,s.jsx)("section",{className:"py-12 md:py-16",children:(0,s.jsxs)("div",{className:"container mx-auto px-4",children:[(0,s.jsxs)("div",{className:"mx-auto mb-10 max-w-xl",children:[(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)(u.A,{className:"absolute left-4 top-1/2 h-5 w-5 -translate-y-1/2 text-muted-foreground"}),(0,s.jsx)("input",{type:"search",value:k,onChange:e=>A(e.target.value),placeholder:"Search productsâ¦",className:"h-12 w-full rounded-full border border-border bg-card pl-12 pr-12 text-base outline-none ring-primary/30 transition focus:border-primary focus:ring-2","aria-label":"Search products"}),k&&(0,s.jsx)("button",{onClick:()=>A(""),"aria-label":"Clear search",className:"absolute right-4 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",children:(0,s.jsx)(p.A,{className:"h-5 w-5"})})]}),(0,s.jsxs)("div",{className:"mt-4 flex flex-wrap items-center justify-center gap-2",children:[(0,s.jsxs)("span",{className:"inline-flex items-center gap-1 text-sm font-medium text-muted-foreground",children:[(0,s.jsx)(c.A,{className:"h-4 w-4"})," Delivery:"]}),[{key:"all",label:"All"},{key:"fast",label:"1â3 days"},{key:"standard",label:"5â10 business days"}].map(e=>(0,s.jsx)("button",{onClick:()=>S(e.key),className:`rounded-full border px-4 py-1.5 text-sm font-semibold transition ${C===e.key?"border-primary bg-primary text-primary-foreground":"border-border bg-card text-foreground hover:border-primary/50"}`,children:e.label},e.key))]})]}),h||t?(0,s.jsx)("div",{className:"flex h-48 items-center justify-center",children:(0,s.jsx)(x.A,{className:"h-12 w-12 animate-spin text-primary"})}):R?(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"mb-8 flex flex-wrap items-center justify-between gap-2",children:[(0,s.jsxs)("h2",{className:"font-headline text-2xl font-bold md:text-3xl",children:[R.length," result",1===R.length?"":"s"," for â",k.trim(),"â"]}
1),(0,s.jsx)("button",{onClick:()=>A(""),className:"text-sm font-medium text-primary hover:underline",children:"Clear search"})]}),R.length>0?(0,s.jsx)("div",{className:"grid grid-cols-2 gap-4 sm:gap-6 md:grid-cols-3 lg:grid-cols-4",children:R.map(e=>(0,s.jsx)(y,{product:e},e.id))}):(0,s.jsx)("div",{className:"py-16 text-center",children:(0,s.jsxs)("p",{className:"text-muted-foreground",children:["No products match â",k.trim(),"â. Try a different term."]})})]}):P?(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"mb-8 flex flex-wrap items-center justify-between gap-2",children:[(0,s.jsx)("h2",{className:"font-headline text-3xl font-bold",children:T}),(0,s.jsx)(i(),{href:"/shop",className:"text-sm font-medium text-primary hover:underline",children:"Clear filter"})]}),P.length>0?(0,s.jsx)("div",{className:"grid grid-cols-2 gap-4 sm:gap-6 md:grid-cols-3 lg:grid-cols-4",children:P.map(e=>(0,s.jsx)(y,{product:e},e.id))}):(0,s.jsx)("div",{className:"py-16 text-center",children:(0,s.jsx)("p",{className:"text-muted-foreground",children:"No products match this filter yet."})})]}):U.length>0?(0,s.jsxs)("div",{className:"space-y-14",children:[U.length>1&&(0,s.jsx)("div",{className:"flex flex-wrap gap-2",children:U.map(e=>(0,s.jsxs)("a",{href:`#cat-${e.label.toLowerCase().replace(/[^a-z0-9]+/g,"-")}`,className:"rounded-full border border-primary/20 bg-primary/5 px-4 py-1.5 text-sm font-semibold text-primary transition hover:bg-primary hover:text-primary-foreground",children:[e.label," ",(0,s.jsxs)("span",{className:"opacity-60",children:["(",e.items.length,")"]})]},e.label))}),U.map(e=>(0,s.jsxs)("div",{id:`cat-${e.label.toLowerCase().replace(/[^a-z0-9]+/g,"-")}`,className:"scroll-mt-24",children:[(0,s.jsxs)("h2",{className:"mb-6 flex items-center gap-3 font-headline text-2xl font-bold md:text-3xl",children:[(0,s.jsx)("span",{className:"h-7 w-1.5 rounded-full bg-primary"})," ",e.label]}),(0,s.jsx)("div",{className:"grid grid-cols-2 gap-4 sm:gap-6 md:grid-cols-3 lg:grid-cols-4",children:e.items.map(e=>(0,s.jsx)(y,{product:e},e.id))})]},e.label))]}):(0,s.jsxs)("div",{className:"py-24 text-center",children:[(0,s.jsx)("h2",{className:"text-2xl font-bold",children:"Store is Empty"}),(0,s.jsx)("p",{className:"mt-2 text-muted-foreground",children:"Check back soon for our curated wellness products!"})]})]})}),!P&&(0,s.jsx)("section",{className:"border-t border-border bg-muted/30 py-16",children:(0,s.jsx)("div",{className:"container mx-auto px-4",children:(0,s.jsx)(j.tV,{})})})]})}},90109:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(14294).A)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])}},e=>{e.O(0,[2619,830,1356,7229,7781,3080,8441,1255,7358],()=>e(e.s=27096)),_N_E=e.O()}]);
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.