PageSourceSearch

https://spastore.me/_next/static/chunks/fd241d2b983b5bc5.js

js spastore.me collected 2026-10-04 19:07:17 UTC 78,806 bytes, 334 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,77825,e=>{"use strict";var t=e.i(43476),s=e.i(71645),a=e.i(18566),r=e.i(22016),i=e.i(57688),n=e.i(55487),l=e.i(1928),o=e.i(84614),c=e.i(75254);let d=(0,c.default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);var x=e.i(37727),h=e.i(46897),m=e.i(94351),u=e.i(64659),p=e.i(15788);let f=(0,c.default)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]),g=(0,c.default)("log-in",[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]]);var b=e.i(85248),w=e.i(42820),v=e.i(95835),y=e.i(932),j=e.i(69638),N=e.i(48256);function k(e){let r,i,n,l,o,c,d,h,m,u,p,f,g=(0,y.c)(34),{show:b,onHide:w,countries:v,activeLocation:k,onSelect:S,position:C}=e;g[0]!==v?(r=void 0===v?[]:v,g[0]=v,g[1]=r):r=g[1];let $=r,E=(0,s.useRef)(null),z=(0,a.useRouter)();if(g[2]!==w?(i=()=>{let e=function(e){E.current&&!E.current.contains(e.target)&&w()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},n=[w],g[2]=w,g[3]=i,g[4]=n):(i=g[3],n=g[4]),(0,s.useEffect)(i,n),!b)return null;g[5]!==w?(l=(0,t.jsx)("div",{onClick:w,className:"absolute inset-0 bg-black/20"}),g[5]=w,g[6]=l):l=g[6];let A=C?.top??0,P=C?.left??0;if(g[7]!==A||g[8]!==P?(o={position:"fixed",top:A,left:P,maxWidth:"calc(100vw - 16px)"},g[7]=A,g[8]=P,g[9]=o):o=g[9],g[10]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsxs)("div",{className:"flex items-center gap-2 text-[10px] lg:text-[10px] xl:text-[11px] 2xl:text-[12px] font-extrabold uppercase text-white",children:[(0,t.jsx)(N.Globe,{size:16,className:"text-white/80"}),"Select Location"]}),g[10]=c):c=g[10],g[11]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsx)(x.X,{size:18}),g[11]=d):d=g[11],g[12]!==w?(h=(0,t.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 border-b border-white/10 bg-[#151c26]\n        ",children:[c,(0,t.jsx)("button",{onClick:w,className:"text-white/60 hover:text-white transition",children:d})]}),g[12]=w,g[13]=h):h=g[13],g[14]!==k?.currency||g[15]!==$||g[16]!==w||g[17]!==S||g[18]!==z){let e;g[20]!==k?.currency||g[21]!==w||g[22]!==S||g[23]!==z?(e=e=>{let s=k?.currency===e.currency;return(0,t.jsxs)("button",{onClick:()=>{S(e),w();let t=window.location.pathname,s=t.split("/")[1];if(s!==e.code){let a=t.replace(`/${s}`,`/${e.code}`);z.push(a)}else z.refresh()},className:`
2                  w-full flex items-center justify-between px-4 py-3
3                  transition-all duration-150 ease-out
4                  outline-none group
5                  border-b border-black/40
6                  text-[10px] lg:text-[10px] xl:text-[11px] 2xl:text-[12px]
7                  font-extrabold uppercase
8                  ${s?"bg-white/10 text-white":"bg-[#1e2834] text-white/70 hover:bg-white/5 hover:text-white"}
9                `,children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[e.flagUrl&&(0,t.jsx)("img",{src:e.flagUrl,className:"w-6 h-4 rounded-sm",alt:e.name}),(0,t.jsxs)("div",{className:"text-left",children:[(0,t.jsx)("div",{className:"text-[9px] text-white/40 font-bold uppercase",children:e.currency}),(0,t.jsx)("div",{className:"text-sm font-semibold text-white",children:e.name})]})]}),s&&(0,t.jsx)(j.CheckCircle,{size:16,className:"text-green-400"})]},e.code)},g[20]=k?.currency,g[21]=w,g[22]=S,g[23]=z,g[24]=e):e=g[24],m=$.map(e),g[14]=k?.currency,g[15]=$,g[16]=w,g[17]=S,g[18]=z,g[19]=m}else m=g[19];return g[25]!==m?(u=(0,t.jsx)("div",{className:"py-1",children:m}),g[25]=m,g[26]=u):u=g[26],g[27]!==h||g[28]!==u||g[29]!==o?(p=(0,t.jsxs)("div",{ref:E,onClick:_,style:o,className:"\n    w-[320px]\n    bg-[#1b2430]\n    border border-white/10\n    rounded-lg\n    shadow-[0_10px_40px_rgba(255,255,255,0.08)]\n    overflow-hidden\n    z-[999]\n    animate-in fade-in zoom-in-95 duration-150\n  ",children:[h,u]}),g[27]=h,g[28]=u,g[29]=o,g[30]=p):p=g[30],g[31]!==p||g[32]!==l?(f=(0,t.jsxs)("div",{className:"fixed inset-0 z-[998]",children:[l,p]}),g[31]=p,g[32]=l,g[33]=f):f=g[33],f}function _(e){return e.stopPropagation()}e.i(47167);var S=e.i(81949),C=e.i(55436),$=e.i(31278),E=e.i(72520);function z({country:e,onSelect:a}
9){let i=(0,s.useRef)(null),n=(0,s.useRef)(null),[l,o]=(0,s.useState)(""),[c,d]=(0,s.useState)(!1),[h,m]=(0,s.useState)([]),[u,p]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{let e=e=>{i.current&&!i.current.contains(e.target)&&d(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,s.useEffect)(()=>{let e=l.trim();if(!e){m([]),p(!1),n.current?.abort();return}let t=setTimeout(async()=>{try{p(!0),n.current?.abort();let t=new AbortController;n.current=t;let s=await S.default.get("https://api.spastore.me/api/v1/products/search",{params:{q:e},signal:t.signal});m(s.data?.success&&s.data.data||[])}catch(e){"CanceledError"!==e.name&&e.name}finally{p(!1)}},300);return()=>clearTimeout(t)},[l]),(0,t.jsxs)(t.Fragment,{children:[c&&l&&(0,t.jsx)("div",{className:"fixed inset-0 bg-black/30 z-[9990]",onClick:()=>d(!1)}),(0,t.jsxs)("div",{ref:i,className:"relative w-full lg:max-w-[640px] font-sans z-[9999]",children:[(0,t.jsxs)("div",{className:" h-[46px] flex items-center bg-white border border-white/20 shadow-[0_8px_24px_rgba(0,0,0,0.12)] overflow-hidden transition-all duration-300 focus-within:ring-2 focus-within:ring-[#ffb300]/70 focus-within:border-[#ffb300] ",children:[(0,t.jsx)("div",{className:"h-full w-[46px] flex items-center justify-center bg-[#f7f7f7] border-r border-gray-100",children:(0,t.jsx)(C.Search,{size:18,className:"text-[#1a222c]"})}),(0,t.jsx)("input",{value:l,onFocus:()=>d(!0),onChange:e=>{o(e.target.value),d(!0)},placeholder:"Search products...",className:" flex-1 h-full px-4 outline-none bg-white text-[14px] font-medium text-[#1a222c] placeholder:text-gray-400 placeholder:font-normal "}),l&&(0,t.jsx)("button",{type:"button",onClick:()=>{o(""),m([]),d(!1)},className:" mr-2 w-8 h-8 flex items-center justify-center rounded-full text-gray-400 hover:text-[#1a222c] hover:bg-gray-100 transition-all ",children:(0,t.jsx)(x.X,{size:16})})]}),c&&l&&(0,t.jsxs)("div",{className:" absolute top-[54px] left-0 right-0 bg-white border border-gray-200 shadow-[0_30px_90px_rgba(0,0,0,0.35)] z-[10000] max-h-[75vh] overflow-y-auto search-scroll ",children:[(0,t.jsx)("div",{className:"px-4 py-3 border-b border-gray-100 bg-[#fafafa]",children:(0,t.jsx)("p",{className:"text-[11px] font-bold uppercase tracking-[0.18em] text-gray-400",children:"Search Results"})}),u?(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center py-10",children:[(0,t.jsx)($.Loader2,{className:"animate-spin text-[#1a222c]",size:26}),(0,t.jsx)("p",{className:"mt-3 text-xs text-gray-400 font-medium",children:"Searching products..."})]}):0===h.length?(0,t.jsxs)("div",{className:"px-6 py-10 text-center",children:[(0,t.jsx)("p",{className:"text-sm font-semibold text-gray-700",children:"No results found"}),(0,t.jsx)("p",{className:"mt-1 text-xs text-gray-400",children:"Try searching with another product name."})]}):(0,t.jsx)("div",{className:"divide-y divide-gray-100",children:h.map(s=>(0,t.jsxs)(r.default,{href:`/${e}/${s.category}/${s.subCategory}/${s.slug}`,onClick:()=>{d(!1),a?.()},className:" group flex items-center gap-4 px-4 py-3 bg-white hover:bg-[#faf7ef] transition-all duration-200 ",children:[(0,t.jsx)("div",{className:" w-[58px] h-[58px] flex-shrink-0 bg-[#f7f7f7] border border-gray-100 flex items-center justify-center overflow-hidden ",children:(0,t.jsx)("img",{src:s.image,alt:s.productName||"Product",className:" w-full h-full object-contain p-1 transition-transform duration-300 group-hover:scale-105 "})}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsx)("h4",{className:" text-[13px] font-bold leading-snug text-[#1a222c] line-clamp-2 group-hover:text-black ",children:s.productName}),(0,t.jsx)("p",{className:"mt-1 text-[11px] text-gray-400 capitalize truncate",children:s.category?.replaceAll("-"," ")})]}),(0,t.jsx)(E.ArrowRight,{size:16,className:" text-gray-300 group-hover:text-[#ffb300] group-hover:translate-x-1 transition-all "})]},s._id||s.slug))})]})]})]})}var A=e.i(63059);function P(e){let n,l,o,c,d,x,h,m,p,f,g,b,w,v,j,N,k=(0,y.c)(62),{menu:_,country:S,isMobile:C,onLinkClick:$}=e;k[0]!==_?(n=void 0===_?[]:_,k[0]=_,k[1]=n):n=k[1];
9let E=n,[z,P]=(0,s.useState)(null),R=(0,a.usePathname)();k[2]!==R?(l=e=>R.startsWith(e),k[2]=R,k[3]=l):l=k[3];let D=l;k[4]!==z?(o=e=>{P(z===e?null:e)},k[4]=z,k[5]=o):o=k[5];let F=o,[U,I]=(0,s.useState)(L);k[6]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{let e=()=>{I(window.location.hash||"#all-products")};return window.addEventListener("hashchange",e),window.addEventListener("popstate",e),()=>{window.removeEventListener("hashchange",e),window.removeEventListener("popstate",e)}},d=[],k[6]=c,k[7]=d):(c=k[6],d=k[7]),(0,s.useEffect)(c,d),k[8]!==U?(x=()=>{if(!U)return;let e=U.replace("#",""),t=document.getElementById(e);t&&setTimeout(()=>{t.scrollIntoView({behavior:"smooth",block:"start"})},50)},h=[U],k[8]=U,k[9]=x,k[10]=h):(x=k[9],h=k[10]),(0,s.useEffect)(x,h);let M=e=>R===`/${S}/${e}`;if(!C){let e,s,a,n,l,o,c,d,x,h=`/${S}/shop-all`,m=`
10        flex items-center justify-center gap-1
11        px-2 sm:px-3 xl:px-4 py-2
12        text-[9px] sm:text-[10px]
13        font-black uppercase tracking-[0.12em]
14        text-white
15        bg-white/80/10
16        transition-all duration-300
17        ${M("shop-all")?"border border-white":"border border-white/20 hover:border-white"}
18`;k[11]!==m||k[12]!==h?(e=(0,t.jsx)(r.default,{href:h,className:m,children:"Shop All"}),k[11]=m,k[12]=h,k[13]=e):e=k[13],k[14]!==S||k[15]!==E||k[16]!==R?(s=E?.map(e=>{let s=R.startsWith(`/${S}/${e.slug}`),a=e?.subcategories;return(0,t.jsxs)("div",{className:"group h-full flex items-center",children:[(0,t.jsxs)(r.default,{href:`/${S}/${e.slug}`,className:"inline-flex w-fit items-center justify-center gap-2 px-2 sm:px-3 xl:px-4 py-2 text-[9px] sm:text-[10px] font-black uppercase tracking-[0.18em] whitespace-nowrap transition-all duration-300 text-white",children:[(0,t.jsx)("span",{className:`pb-1 border-b-2 transition-all duration-300 ${s?"border-white text-white":"border-transparent group-hover:border-white text-white/85 group-hover:text-white"}`,children:e.name}),a?.length>0&&(0,t.jsx)(u.ChevronDown,{size:12,className:"text-white group-hover:rotate-180 transition-transform duration-500"})]}),a?.length>0&&(0,t.jsx)("div",{className:"absolute top-full left-0 w-full bg-[#1e2834] opacity-0 invisible pointer-events-none group-hover:opacity-100 group-hover:visible group-hover:pointer-events-auto transition-all duration-300 z-[150]",children:(0,t.jsx)("div",{className:"max-w-[1800px] mx-auto px-6 py-8",children:"hospitality-and-recreation-products"===e.slug?(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"space-y-10",children:[(0,t.jsx)("div",{className:"mb-4",children:(0,t.jsx)("h3",{className:"inline-block text-white text-[14px] font-bold uppercase tracking-[0.18em] pb-1",children:"Hotel Products"})}),(0,t.jsx)("div",{className:"grid grid-cols-5 gap-x-8 gap-y-2",children:a.filter(O).map(s=>{let a=R===`/${S}/${e.slug}/${s.slug}`;return(0,t.jsx)("div",{children:(0,t.jsxs)(r.default,{href:`/${S}/${e.slug}/${s.slug}`,className:`
19    group/card flex items-center gap-4 p-3
20    bg-white/[0.04]
21    border
22    backdrop-blur-md
23    transition-all duration-300
24    ${a?"border-white bg-white/[0.08]":"border-white/20 hover:border-white hover:bg-white/[0.08]"}
25  `,children:[(0,t.jsx)("div",{className:"w-[70px] h-[70px] flex-shrink-0 rounded-lg flex items-center justify-center overflow-hidden",children:(0,t.jsx)(i.default,{src:s.image,alt:s.name,width:70,height:70,sizes:"70px",loading:"lazy",className:"w-full h-full object-contain group-hover/card:scale-105 transition-transform duration-300"})}),(0,t.jsx)("div",{className:"flex-1 min-w-0",children:(0,t.jsx)("h3",{className:`text-[15px] font-semibold leading-tight transition-colors break-words ${a?"text-white":"text-white/90 group-hover/card:text-white"}`,children:s.name})})]},s.slug)},s.slug)})})]}),(0,t.jsxs)("div",{className:"space-y-10 mt-10",children:[(0,t.jsx)("div",{className:"mb-4",children:(0,t.jsx)("h3",{className:"inline-block text-white text-[14px] font-bold uppercase tracking-[0.18em] pb-1",children:"Recreation Products"})}),(0,t.jsx)("div",{className:"grid grid-cols-5 mt-4 gap-x-8 gap-y-2",children:a.filter(T).map(s=>{let a=R===`/${S}/${e.slug}/${s.slug}`;return(0,t.jsx)("div",{children:(0,t.jsxs)(r.default,{href:`/${S}/${e.slug}/${s.slug}`,className:`
26    group/card flex items-center gap-4 p-3
27    bg-white/[0.04]
28    border
29    backdrop-blur-md
30    transition-all duration-300
31    ${a?"border-white bg-white/[0.08]":"border-white/20 hover:border-white hover:bg-white/[0.08]"}
32  `,children:[(0,t.jsx)("div",{className:"w-[70px] h-[70px] flex-shrink-0 rounded-lg flex items-center justify-center overflow-hidden",children:(0,t.jsx)(i.default,{src:s.image,alt:s.name,width:70,height:70,sizes:"70px",loading:"lazy",className:"w-full h-full object-contain group-hover/card:scale-105 transition-transform duration-300"})}),(0,t.jsx)("div",{className:"flex-1 min-w-0",children:(0,t.jsx)("h3",{className:`text-[15px] font-semibold leading-tight transition-colors break-words ${a?"text-white":"text-white/90 group-hover/card:text-white"}`,children:s.name})})]},s.slug)},s.slug)})})]})]}):(0,t.jsx)("div",{className:"\n    grid\n    grid-cols-2\n    md:grid-cols-3\n    lg:grid-cols-4\n    xl:grid-cols-5\n    gap-4\n  ",children:a.map(s=>{let a=R===`/${S}/${e.slug}/${s.slug}`;return(0,t.jsxs)(r.default,{href:`/${S}/${e.slug}/${s.slug}`,className:`
33    group/card flex items-center gap-4 p-3
34    bg-white/[0.04]
35    border
36    backdrop-blur-md
37    transition-all duration-300
38    ${a?"border-white bg-white/[0.08]":"border-white/20 hover:border-white hover:bg-white/[0.08]"}
39  `,children:[(0,t.jsx)("div",{className:"w-[70px] h-[70px] flex-shrink-0 bg-[#f7f7f7] rounded-lg flex items-center justify-center overflow-hidden",children:(0,t.jsx)(i.default,{src:s.image,alt:s.name,width:70,height:70,sizes:"70px",loading:"lazy",className:"w-full h-full object-contain group-hover/card:scale-105 transition-transform duration-300"})}),(0,t.jsx)("div",{className:"flex-1 min-w-0",children:(0,t.jsx)("h3",{className:`text-[15px] font-semibold leading-tight transition-colors break-words ${a?"text-white":"text-white/90 group-hover/card:text-white"}`,children:s.name})})]},s.slug)})})})})]},e.slug)}
39),k[14]=S,k[15]=E,k[16]=R,k[17]=s):s=k[17],k[18]!==e||k[19]!==s?(a=(0,t.jsxs)("div",{className:"flex items-center h-full min-w-0 overflow-x-auto scrollbar-hide gap-2",children:[e,s]}),k[18]=e,k[19]=s,k[20]=a):a=k[20];let p=`/${S}/bulk-items`,f=`
40        flex items-center justify-center gap-1
41        px-2 sm:px-3 xl:px-4 py-2
42        text-[9px] sm:text-[10px]
43        font-black uppercase tracking-[0.12em]
44        text-white
45        bg-white/80/10
46        transition-all duration-300
47         ${M("bulk-items")?"border border-white":"border border-white/20 hover:border-white"}
48`;k[21]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)("span",{className:"hidden sm:inline",children:"Bulk Packs"}),k[21]=n):n=k[21],k[22]!==p||k[23]!==f?(l=(0,t.jsx)(r.default,{href:p,className:f,children:n}),k[22]=p,k[23]=f,k[24]=l):l=k[24];let g=`/${S}/offer-items`,b=`
49    flex items-center justify-center gap-1
50    px-2 sm:px-3 xl:px-4 py-2
51    text-[9px] sm:text-[10px]
52    font-black uppercase tracking-[0.12em]
53    text-white
54    bg-white/10
55    transition-all duration-300
56    ${M("offer-items")?"border border-white blink-highlight":"border border-white/20 hover:border-white"}
57  `;return k[25]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)("span",{className:"hidden sm:inline",children:"OFFERS"}),k[25]=o):o=k[25],k[26]!==g||k[27]!==b?(c=(0,t.jsx)(r.default,{href:g,className:b,children:o}),k[26]=g,k[27]=b,k[28]=c):c=k[28],k[29]!==l||k[30]!==c?(d=(0,t.jsxs)("div",{className:"flex items-center gap-2 sm:gap-3 xl:gap-4",children:[l,c]}),k[29]=l,k[30]=c,k[31]=d):d=k[31],k[32]!==a||k[33]!==d?(x=(0,t.jsxs)("nav",{className:"h-full grid grid-cols-[1fr_auto] items-center gap-6 pl-[2px] relative",children:[a,d]}),k[32]=a,k[33]=d,k[34]=x):x=k[34],x}let B=`/${S}/offer-items`;k[35]===Symbol.for("react.memo_cache_sentinel")?(m=(0,t.jsx)("div",{className:"flex items-center gap-3",children:(0,t.jsx)("span",{className:"text-[15px] font-bold text-[#CC0C39]",children:"Special Offers"})}),p=(0,t.jsx)("span",{className:"bg-[#CC0C39] text-white text-[10px] font-bold px-2 py-0.5 rounded-full",children:"HOT"}),k[35]=m,k[36]=p):(m=k[35],p=k[36]),k[37]!==$||k[38]!==B?(f=(0,t.jsxs)(r.default,{href:B,onClick:$,className:"flex items-center justify-between h-[72px] px-6 md:px-10 bg-[#FFF9F9] group",children:[m,p]}),k[37]=$,k[38]=B,k[39]=f):f=k[39];let W=`/${S}/shop-all`;k[40]!==$||k[41]!==W?(g=(0,t.jsx)(r.default,{href:W,onClick:$,className:"flex items-center text-[15px] font-bold text-gray-800 justify-between h-[72px] px-6 md:px-10",children:"Shop All Collections"}),k[40]=$,k[41]=W,k[42]=g):g=k[42];let H=`/${S}/bulk-items`;return k[43]!==$||k[44]!==H?(b=(0,t.jsx)(r.default,{href:H,onClick:$,className:"flex items-center text-[15px] font-bold text-gray-800 justify-between h-[72px] px-6 md:px-10",children:"Shop Bulk Packs"}),k[43]=$,k[44]=H,k[45]=b):b=k[45],k[46]!==f||k[47]!==g||k[48]!==b?(w=(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 bg-white/80 border-b border-gray-100",children:[f,g,b]}),k[46]=f,k[47]=g,k[48]=b,k[49]=w):w=k[49],k[50]!==S||k[51]!==D||k[52]!==E||k[53]!==$||k[54]!==z||k[55]!==F?(v=E?.map(e=>{let s=e.subcategories?.length>0,a=z===e.slug;return(0,t.jsxs)("div",{className:"border-b border-gray-50 md:border-r last:border-r-0",children:[(0,t.jsxs)("div",{className:`flex items-center justify-between h-[68px] transition-colors ${a?"bg-[#F4F7F4]":"bg-white/80"}`,children:[(0,t.jsx)(r.default,{href:`/${S}/${e.slug}`,onClick:$,className:`flex-1 px-6 md:px-10 text-[15px] font-medium tracking-tight transition-colors
58${D(`/${S}/${e.slug}`)?"text-[#698467]":"text-gray-800"}`,children:e.name}),s&&(0,t.jsx)("button",{onClick:()=>F(e.slug),className:`h-full px-8 flex items-center transition-all ${a?"text-[#698467]":"text-gray-300"}`,children:(0,t.jsx)(u.ChevronDown,{size:20,className:`transition-transform duration-300 ${a?"rotate-180":""}`})})]}),s&&(0,t.jsx)("div",{className:`bg-[#F9FBFA] transition-all duration-300 ease-in-out overflow-hidden ${a?"max-h-[1000px] border-b border-gray-100":"max-h-0"}`,children:(0,t.jsxs)("div",{className:"flex flex-col py-2 px-6 md:px-10",children:[(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-10",children:e.subcategories.map(s=>(0,t.jsxs)(r.default,{href:`/${S}/${e.slug}/${s.slug}`,onClick:$,className:`py-4 text-[14px] flex justify-between items-center border-b border-gray-100 last:border-0 transition-colors
59${D(`/${S}/${e.slug}/${s.slug}`)?"text-[#698467] font-semibold":"text-gray-500"}`,children:[s.name,(0,t.jsx)(A.ChevronRight,{size:14,className:"text-gray-300"})]},s.slug))}),(0,t.jsxs)(r.default,{href:`/${S}/${e.slug}`,onClick:$,className:"mt-4 mb-4 py-3 text-center text-[11px] font-bold uppercase tracking-widest text-[#698467] border border-[#698467]/20 rounded-lg bg-white/80",children:["View All ",e.name]})]})})]},e.slug)}),k[50]=S,k[51]=D,k[52]=E,k[53]=$,k[54]=z,k[55]=F,k[56]=v):v=k[56],k[57]!==v?(j=(0,t.jsx)("div",{className:"flex-1 bg-white/80",children:(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2",children:v})}),k[57]=v,k[58]=j):j=k[58],k[59]!==w||k[60]!==j?(N=(0,t.jsxs)("div",{className:"flex flex-col text-left bg-[#F9FBFA] font-sans min-h-screen overflow-y-auto pb-20",children:[w,j]}),k[59]=w,k[60]=j,k[61]=N):N=k[61],N}function T(e,t){return t%2==1}function O(e,t){return t%2==0}function L(){return window.location.hash||"#all-products"}var R=e.i(43510);let D={current:null},F={name:"Other",shortLabel:"INT",code:"uae",isoCode:"US",currency:"USD",flagUrl:"https://flagcdn.com/us.svg"};function U({menu:e,currency:c}){let y=(0,a.useParams)(),j=(0,a.useRouter)(),N=(0,n.useDispatch)(),_=(0,a.usePathname)(),[S,C]=(0,s.use
59State)(null),[$,E]=(0,s.useState)(!1),[A,T]=(0,s.useState)(!1),[O,L]=(0,s.useState)(!1),{cart:U}=(0,n.useSelector)(e=>e.cartState),{isAuthenticated:I,user:M,token:B}=(0,n.useSelector)(e=>e.authState),W=y?.country||"uae",H=_===`/${W}`,G=_===`/${W}/my-orders`,q=_===`/${W}/cart`,[Y,V]=(0,s.useState)({top:0,left:0}),[K,X]=(0,s.useState)(!1),Z=(0,s.useRef)(null),[Q,J]=(0,s.useState)(!1),ee=(0,s.useRef)(null);return((0,s.useEffect)(()=>{ee.current&&(D.current=ee.current)},[O,U]),b.flyRegistry.getCart=()=>ee.current,(0,s.useEffect)(()=>{L(!0)},[]),(0,s.useEffect)(()=>{O&&(B?N((0,w.getUserCart)(B,c)):N((0,w.getGuestCart)(c)))},[c,N,B,O]),(0,s.useEffect)(()=>{let e=e=>{Z.current&&!Z.current.contains(e.target)&&J(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,s.useEffect)(()=>{T(!0);let e=localStorage.getItem("user_region_code"),t=localStorage.getItem("user_currency"),s=[...R.GCC_COUNTRIES,F].find(s=>s.code===e&&s.currency===t);s&&C(s)},[]),A)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("header",{className:"fixed top-0 left-0 right-0 z-[999] w-full bg-[#1a222c] shadow-2xl",children:[(0,t.jsx)("div",{className:"border-b border-white/5",children:(0,t.jsx)("div",{className:"max-w-[1500px] mx-auto w-full px-4 xl:px-8",children:(0,t.jsxs)("div",{className:"h-[68px] md:h-[82px] grid grid-cols-[auto_1fr_auto] flex items-center justify-between sm:gap-3",children:[(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)("button",{type:"button",onClick:()=>X(!0),"aria-label":"Open navigation menu","aria-expanded":K,"aria-controls":"mobile-navigation",className:"lg:hidden p-2 text-white hover:text-white focus:outline-none focus-visible:ring-2 focus-visible:ring-white",children:(0,t.jsx)(d,{size:24,"aria-hidden":"true"})}),(0,t.jsx)(r.default,{href:`/${W}`,className:"shrink-0",children:(0,t.jsx)(i.default,{src:"/logo/spastore.svg",alt:"Spa Store",width:170,height:60,priority:!0,className:"w-[115px] md:w-[155px] xl:w-[170px] h-auto object-contain"})}),(0,t.jsxs)("div",{className:"hidden md:flex items-center gap-2",children:[(0,t.jsxs)("div",{className:"flex flex-col leading-none text-left",children:[(0,t.jsx)("span",{className:"mb-1 ml-1 text-[9px] font-semibold uppercase tracking-[0.14em] text-white/75",children:"Choose Your Country"}),(0,t.jsxs)("button",{onClick:e=>{let t=e.currentTarget.getBoundingClientRect();V({top:t.bottom+8,left:t.left}),E(!0)},className:" group flex items-center gap-2 px-3 py-2 bg-white/5 hover:bg-white/10 border border-white/10 transition-all duration-300 ",children:[(0,t.jsx)(h.MapPin,{size:16,className:"text-white/80 group-hover:text-white shrink-0"}),(0,t.jsx)("span",{className:"text-[13px] font-semibold text-white whitespace-nowrap",children:S?.name||"Location"}),(0,t.jsx)(u.ChevronDown,{size:15,strokeWidth:2,className:`
60                    ml-1
61                    shrink-0
62                    text-white/50
63                    transition-transform
64                    duration-200
65                    ${$?"rotate-180":""}
66                `})]})]}),(0,t.jsx)(k,{show:$,onHide:()=>E(!1),activeLocation:S,onSelect:e=>{C(e),localStorage.setItem("user_region_code",e.code),localStorage.setItem("user_currency",e.currency),document.cookie=`user_currency=${e.currency}; path=/; max-age=31536000; SameSite=Lax`,window.dispatchEvent(new Event("locationChanged")),E(!1)},countries:[...R.GCC_COUNTRIES,F],position:Y})]})]}),(0,t.jsx)("div",{className:"hidden lg:flex justify-center w-full",children:(0,t.jsx)(z,{country:W})}),(0,t.jsxs)("div",{className:"flex items-center justify-end gap-2 xl:gap-3",children:[(0,t.jsxs)(r.default,{href:`/${W}`,className:`hidden sm:flex items-center gap-2 group p-1.5 rounded-xl transition-all
67  ${H?"border-[#fff] bg-white/5":"hover:bg-white/5"}
68  `,children:[(0,t.jsx)("div",{className:`w-9 h-9 flex items-center justify-center rounded-full border
69    ${H?"border-[#fff] hover:bg-white/5":"border-white/20 group-hover:border-white"}
70  `,children:(0,t.jsx)(m.Home,{size:18,className:H?"text-[#fff]":"text-white group-hover:text-[#ff]"})}),(0,t.jsxs)("div",{className:"hidden sm:flex flex-col leading-none",children:[(0,t.jsx)("span",{className:"text-[10px] text-gray-400 font-medium",children:"Back to"}),(0,t.jsx)("span",{className:`text-[13px] font-bold ${H?"text-[#fff]":"text-white"}`,children:"Home"})]})]}),(0,t.jsxs)(r.default,{href:`/${W}/my-orders`,"aria-label":"Track my orders",className:`flex items-center gap-2 group p-1.5 rounded-xl transition-all
71        ${G?"bg-white/5 shadow-md":"hover:bg-white/5"}
72    `,children:[(0,t.jsx)("div",{className:`w-9 h-9 flex items-center justify-center rounded-full border
73                    ${G?"border-white bg-white/5":"border-white/20 group-hover:border-white"}
74                `,children:(0,t.jsx)(p.Truck,{size:18,"aria-hidden":"true",className:G?"text-white":"text-white group-hover:text-white"})}),(0,t.jsxs)("div",{className:"hidden sm:flex flex-col leading-none",children:[(0,t.jsx)("span",{className:"text-[10px] text-gray-400 font-medium",children:"Track"}),(0,t.jsx)("span",{className:`text-[13px] font-bold ${G?"text-white":"text-white/80 group-hover:text-white"}`,children:"Orders"})]})]}),(0,t.jsxs)("div",{className:"relative",ref:Z,children:[(0,t.jsxs)("button",{type:"button",onClick:()=>J(e=>!e),"aria-label":I?"Open account menu":"Open login menu","aria-expanded":Q,"aria-haspopup":"menu",className:" group flex items-center gap-2 rounded-xl p-1.5 transition-colors hover:bg-white/5 focus:outline-none focus-visible:ring-2 focus-visible:ring-white ",children:[(0,t.jsx)("div",{className:`
75                flex
76                h-9
77                w-9
78                items-center
79                justify-center
80                rounded-full
81                border
82                transition-colors
83                ${Q?"border-white bg-white/5":"border-white/20 group-hover:border-white"}
84            `,children:(0,t.jsx)(o.User,{size:18,strokeWidth:2,"aria-hidden":"true",className:"text-white"})}),(0,t.jsxs)("div",{className:"hidden min-w-0 flex-col leading-none text-left sm:flex",children:[(0,t.jsx)("span",{className:"text-[10px] font-medium text-gray-400",children:I?"Welcome,":"Hello,"}),(0,t.jsx)("span",{className:"max-w-[80px] truncate text-[13px] font-bold text-white",children:I?M?.name?.split(" ")[0]||"Account":"Sign in"})]})]}),Q&&(0,t.jsx)("div",{role:"menu","aria-label":"Account menu",className:" absolute right-0 top-full z-[200] mt-3 w-72 overflow-hidden border border-gray-100 bg-white shadow-2xl ",children:I?(0,t.jsxs)("div",{className:"p-5",children:[(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsx)("p",{className:"text-xs font-medium text-gray-400",children:"Signed in as"}),(0,t.jsx)("p",{className:"mt-1 truncate text-sm font-bold text-gray-900",children:M?.name||"Account"})]}),(0,t.jsxs)("button",{type:"button",role:"menuitem",onClick:()=>{J(!1),N((0,v.logout)()),j.push(`/${W}`)},className:" flex w-full items-center justify-center gap-2 bg-[#ffb300] py-3 text-[11px] font-bold uppercase tracking-[0.2em] text-white transition-colors hover:bg-[#e6a000] focu
84s:outline-none focus-visible:ring-2 focus-visible:ring-[#1a222c] ",children:[(0,t.jsx)(f,{size:16,strokeWidth:2,"aria-hidden":"true"}),"Sign Out"]})]}):(0,t.jsx)("div",{className:"p-5",children:(0,t.jsxs)(r.default,{href:"/auth/signup",role:"menuitem",onClick:()=>J(!1),"aria-label":"Login or create a Spa Store account",className:" flex w-full items-center justify-center gap-2 bg-[#ffb300] py-3 text-[11px] font-bold uppercase tracking-[0.2em] text-white transition-colors hover:bg-[#e6a000] focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1a222c] ",children:[(0,t.jsx)(g,{size:16,strokeWidth:2,"aria-hidden":"true"}),"Login / Signup"]})})})]}),(0,t.jsxs)(r.default,{href:`/${W}/cart`,"aria-label":`Shopping cart${O&&U?.length>0?`, ${U.length} items`:""}`,className:`flex items-center gap-2 group p-1.5 rounded-xl transition-all
85                    ${q?"bg-white/5 shadow-md":"hover:bg-white/5"}
86                `,children:[(0,t.jsxs)("div",{ref:e=>{ee.current=e,D.current=e},className:`relative w-9 h-9 flex items-center justify-center rounded-full border 
87                    ${q?"border-white bg-white/5":"border-white/20 group-hover:border-white"}
88                `,children:[(0,t.jsx)(l.ShoppingCart,{size:18,"aria-hidden":"true",className:q?"text-white":"text-white/80 group-hover:text-white"}),O&&U?.length>0&&(0,t.jsx)("span",{className:"absolute -top-1 -right-1 bg-[#ffb300] text-[#1a222c] text-[10px] font-black w-4 h-4 flex items-center justify-center rounded-full",children:U.length})]}),(0,t.jsxs)("div",{className:"hidden sm:flex flex-col leading-none",children:[(0,t.jsx)("span",{className:"text-[10px] text-gray-400 font-medium",children:"My"}),(0,t.jsx)("span",{className:`text-[13px] font-bold ${q?"text-white":"text-white/80 group-hover:text-white"}`,children:"Cart"})]})]})]})]})})}),(0,t.jsx)("div",{className:"hidden lg:block bg-[#1e2834] border-b border-white/5",children:(0,t.jsx)("div",{className:"max-w-[1500px] mx-auto w-full px-4 xl:px-8 h-[40px]",children:(0,t.jsx)(P,{menu:e,country:W,isMobile:!1})})}),(0,t.jsx)("div",{className:"lg:hidden bg-[#1a222c] px-4 pb-3",children:(0,t.jsx)("div",{className:"max-w-[1500px] mx-auto w-full",children:(0,t.jsx)(z,{country:W})})})]}),K&&(0,t.jsxs)("div",{className:"fixed inset-0 z-[1000] lg:hidden",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-md transition-opacity duration-500",onClick:()=>X(!1)}),(0,t.jsxs)("div",{id:"mobile-navigation",className:"relative w-[85vw] max-w-[320px] h-full bg-white flex flex-col shadow-2xl animate-in slide-in-from-left duration-300",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between border-b border-gray-100 bg-white px-6 py-5",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-base font-semibold text-gray-900 tracking-wide",children:"Explore Products"}),(0,t.jsx)("p",{className:"mt-1 text-xs text-gray-500",children:"Browse our collections"})]}),(0,t.jsx)("button",{type:"button",onClick:()=>X(!1),"aria-label":"Close navigation menu",className:"flex h-10 w-10 items-center justify-center rounded-full border border-gray-200 bg-white transition-all duration-200 hover:bg-gray-50 active:scale-95 focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1a222c]",children:(0,t.jsx)(x.X,{size:18,"aria-hidden":"true"})})]}),(0,t.jsx)("div",{className:"flex-1 overflow-y-auto scrollbar-hide py-2",children:(0,t.jsx)(P,{menu:e,country:W,isMobile:!0,onLinkClick:()=>X(!1)})})]})]})]}):null}e.s(["default",()=>U],77825)},9069,e=>{"use strict";var t=e.i(43476),s=e.i(932),a=e.i(71645),r=e.i(22016),i=e.i(57688),n=e.i(55900),l=e.i(43432),o=e.i(63488);let c="bg-[#1e2834] border border-white/5 p-4 md:p-5 flex flex-col gap-3 h-full",d="text-sm font-bold text-white",x="text-xs md:text-[13px] leading-relaxed text-white/70";function h(){let e,a,r,i=(0,s.c)(3);return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsxs)("div",{className:c,children:[(0,t.jsx)("h2",{className:d,children:"Spa, Salon & Hospitality Supplies Online in UAE & GCC"}),(0,t.jsx)("p",{className:x,children:"Spa Store is a professional eCommerce platform for spa, salon, hotel, and wellness products, serving the UAE, Saudi Arabia, Qatar, Kuwait, Oman, and Bahrain."})]}),i[0]=e):e=i[0],i[1]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsxs)("div",{className:c,children:[(0,t.jsx)("h2",{className:d,children:"Shop Spa, Salon & Hotel Products Online"}),(0,t.jsx)("p",{className:x,children:"Browse a complete selection of spa equipment, massage tables, salon tools, pedicure equipment, beauty and skincare products, wellness accessories, and hotel supplies including towels, linen, and amenities. All products are available in one place for easy and efficie
88nt ordering."})]}),i[1]=a):a=i[1],i[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 auto-rows-fr gap-3",children:[e,a,(0,t.jsxs)("div",{className:c,children:[(0,t.jsx)("h2",{className:d,children:"Secure & Reliable GCC Delivery"}),(0,t.jsx)("p",{className:x,children:"We offer secure online payments, multi-currency checkout (AED, SAR, QAR, KWD, BHD, OMR), and reliable shipping across all Gulf countries. Our platform is designed for fast, simple, and professional online purchasing."})]})]}),i[2]=r):r=i[2],r}e.i(47167);var m=e.i(81949),u=e.i(38325),p=e.i(31278);function f({isActive:e=!1}){let[s,r]=(0,a.useState)(!1),n=(0,a.useRef)(null),[c,d]=(0,a.useState)({firstName:"",lastName:".",email:"",mobile:"",subject:"Contact Form Inquiry",message:""});(0,a.useEffect)(()=>{if(n.current){let e=setTimeout(()=>n.current?.focus(),100);return()=>clearTimeout(e)}},[]);let x=e=>{d({...c,[e.target.name]:e.target.value})},h=async e=>{e.preventDefault(),r(!0);try{await m.default.post("https://api.spastore.me/api/v1/contact",c),u.default.fire({icon:"success",title:"Message Sent",text:"We will contact you within 24 hours.",confirmButtonColor:"#ffd27a"}),d({firstName:"",lastName:".",email:"",mobile:"",subject:"Contact Form Inquiry",message:""})}catch{u.default.fire({icon:"error",title:"Error",text:"Please try again.",confirmButtonColor:"#000"})}finally{r(!1)}};return(0,t.jsx)("div",{className:"animate-in fade-in slide-in-from-bottom-4 duration-500",children:(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-y-16 lg:gap-x-24 items-start",children:[(0,t.jsx)("div",{className:"lg:col-span-5 flex flex-col justify-center lg:pr-16 pb-10 lg:pb-0 border-b lg:border-b-0 lg:border-r border-white/10",children:(0,t.jsxs)("div",{className:"space-y-10",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-2xl font-semibold text-white mb-4",children:"Contact Us"}),(0,t.jsx)("p",{className:"text-sm leading-7 text-white/60",children:"We assist with product inquiries, quotations, bulk orders, and customer support for professional spa, salon, wellness, and hospitality products and equipment across the UAE and GCC."})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-[11px] font-semibold uppercase tracking-[0.22em] text-gray-400 mb-5",children:"Customer Support"}),(0,t.jsxs)("div",{className:"space-y-5",children:[(0,t.jsxs)("a",{href:"tel:+971523987292",className:"flex items-center gap-3 group",children:[(0,t.jsx)(l.Phone,{size:18,className:"text-[#ffd27a] shrink-0"}),(0,t.jsx)("span",{className:"text-white text-[15px] font-medium tracking-wide group-hover:text-[#ffd27a] transition-colors",children:"+971 52 398 7292"})]}),(0,t.jsxs)("a",{href:"mailto:[email protected]",className:"flex items-center gap-3 group",children:[(0,t.jsx)(o.Mail,{size:18,className:"text-[#ffd27a] shrink-0"}),(0,t.jsx)("span",{className:"text-white text-[15px] font-medium break-all group-hover:text-[#ffd27a] transition-colors",children:"[email protected]"})]})]})]}),(0,t.jsxs)("div",{className:"border-t border-white/10 pt-8",children:[(0,t.jsx)("h3",{className:"text-[11px] font-semibold uppercase tracking-[0.22em] text-gray-400 mb-5",children:"Business Information"}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("p",{className:"text-white text-[15px] font-semibold",children:"Spa Store"}),(0,t.jsx)("p",{className:"text-white/70 text-sm",children:"Operated by Eternica Beauty FZE"}),(0,t.jsx)("p",{className:"text-white/60 text-sm",children:"United Arab Emirates"})]})]})]})}),(0,t.jsx)("div",{className:"lg:col-span-7",children:(0,t.jsxs)("form",{onSubmit:h,className:"space-y-10",children:[(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-10",children:[{label:"Full Name",name:"firstName",type:"text"},{label:"Email",name:"email",type:"email"},{label:"Mobile",name:"mobile",type:"text"}].map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("label",{className:"text-[10px] font-semibold uppercase tracking-[0.25em] text-gray-400",children:e.label}),(0,t.jsx)("input",{ref:"firstName"===e.name?n:null,type:e.type,name:e.name,required:!0,value:c[e.name],onChange:x,className:" w-full border border-white/10 bg-white/[0.03] px-4 py-4 text-[15px] text-white placeholder:text-white/30 backdrop-blur-md outline-none transition-all duration-300 focus:border-white/40 focus:bg-white/[0.05] focus:shadow-[0_0_0_4px_rgba(255,255,255,0.08)] hover:border-white/20 "})]},e.name))}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("label",{className:"text-[10px] font-semibold uppercase tracking-[0.25em] text-gray-400",children:"Message"}),(0,t.jsxs)("div",{className:"flex flex-col md:flex-row items-stretch md:items-end gap-4 md:gap-6",children:[(0,t.jsx)("textarea",{name:"message",required:!0,rows:8,value:c.message,onChange:x,className:" w-full md:w-[75%] min-h-[220px]  border border-white/10 bg-white/[0.03]  px-4 py-4 text-[15px] text-white placeholder:text-white/30  backdrop-blur-md outline-none resize-none transition-all duration-300  focus:border-white/40 focus:bg-white/[0.05] focus:shadow-[0_0_0_4px_rgba(255,255,255,0.08)]  hover:border-white/20 "}),(0,t.jsxs)("button",{type:"submit",disabled:s,className:`
89    md:hidden
90
91    relative
92    w-full
93    h-[56px]
94
95    flex items-center justify-center
96
97    bg-[#1e2834]
98    text-white
99
100    text-[11px]
101    font-extrabold
102    uppercase
103    tracking-[0.25em]
104
105    border-t border-white/10
106
107    shadow-[0_4px_12px_rgba(255,255,255,0.35)]
108
109    transition-all
110    duration-150
111
112    active:translate-y-[4px]
113    active:shadow-[1px_1px_1px_#0a0e12]
114
115    ${s?"opacity-50 cursor-not-allowed":""}
116  `,children:[(0,t.jsx)("div",{className:"absolute inset-0 opacity-[0.03] pointer-events-none bg-[url('https://www.transparenttextures.com/patterns/brushed-alum.png')]"}),(0,t.jsx)("div",{className:"absolute top-0 left-0 right-0 h-[1px] bg-gradient-to-r from-transparent via-white/20 to-transparent"}),s?(0,t.jsx)(p.Loader2,{className:"animate-spin relative z-10",size:20}):(0,t.jsx)("span",{className:"relative z-10",children:"Send Message"})]}),(0,t.jsx)("button",{type:"submit",disabled:s,className:`
117    hidden md:block
118    relative
119    shrink-0
120    transition-all duration-300
121    hover:scale-105
122    active:scale-95
123
124    ${s?"opacity-50 cursor-not-allowed":""}
125  `,children:s?(0,t.jsx)("div",{className:"w-[160px] h-[120px] flex items-center justify-center",children:(0,t.jsx)(p.Loader2,{className:"animate-spin text-white",size:28})}):(0,t.jsx)(i.default,{src:"/button.png",alt:"Send",width:160,height:120,priority:!0,className:" object-contain transition-all duration-300 drop-shadow-[0_0_10px_rgba(200,220,255,0.3)] hover:drop-shadow-[0_0_25px_rgba(200,220,255,0.55)] "})})]})]})]})})]})})}let g="bg-[#1e2834] border border-white/5 p-4 md:p-5 h-full flex flex-col gap-3",b="text-sm font-bold text-white",w="text-xs md:text-[13px] leading-relaxed text-white/70";function v(){let e,a,r,i=(0,s.c)(3);return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsxs)("div",{className:g,children:[(0,t.jsx)("h3",{className:b,children:"Returns"}),(0,t.jsx)("p",{className:w,children:"You have 7 days to return unused items in original packaging."})]}),i[0]=e):e=i[0],i[1]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsxs)("div",{className:g,children:[(0,t.jsx)("h3",{className:b,children:"Refund"}),(0,t.jsx)("p",{className:w,children:"Refunds are processed after inspection to original payment method."})]}),i[1]=a):a=i[1],i[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[e,a,(0,t.jsxs)("div",{className:g,children:[(0,t.jsx)("h3",{className:b,children:"Shipping"}),(0,t.jsx)("p",{className:w,children:"Return shipping costs are customer responsibility."})]})]}),i[2]=r):r=i[2],r}let y="bg-[#1e2834] border border-white/5 p-4 md:p-5 h-full flex flex-col gap-3",j="text-sm font-bold text-white",N="text-xs md:text-[13px] leading-relaxed text-white/70";function k(){let e,a,r,i,n=(0,s.c)(4);return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsxs)("div",{className:y,children:[(0,t.jsx)("h3",{className:j,children:"Collection"}),(0,t.jsx)("p",{className:N,children:"We collect basic order and contact information."})]}),n[0]=e):e=n[0],n[1]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsxs)("div",{className:y,children:[(0,t.jsx)("h3",{className:j,children:"Usage"}),(0,t.jsx)("p",{className:N,children:"Used only for orders, logistics, and support."})]}),n[1]=a):a=n[1],n[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsxs)("div",{className:y,children:[(0,t.jsx)("h3",{className:j,children:"Protection"}),(0,t.jsx)("p",{className:N,children:"Encrypted systems and secure payment gateways."})]}),n[2]=r):r=n[2],n[3]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[e,a,r,(0,t.jsxs)("div",{className:y,children:[(0,t.jsx)("h3",{className:j,children:"Compliance"}),(0,t.jsx)("p",{className:N,children:"Aligned with UAE & GCC data regulations."})]})]}),n[3]=i):i=n[3],i}var _=e.i(18566),S=e.i(41020);let C=()=>{let e,a,r=(0,s.c)(2);return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("div",{className:"w-14 h-14 bg-white/5"}),r[0]=e):e=r[0],r[1]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsxs)("div",{className:"flex gap-3 p-3 bg-[#1e2834] border border-white/5 animate-pulse",children:[e,(0,t.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,t.jsx)("div",{className:"h-2 w-1/3 bg-white/10"}),(0,t.jsx)("div",{className:"h-3 w-2/3 bg-white/10"})]})]}),r[1]=a):a=r[1],a};function $({initialBlogs:e=[],country:s,variant:r="page"}){let i=(0,_.useRouter)(),[n,l]=(0,a.useState)(e),[o,c]=(0,a.useState)(!1),d="drawer"===r,x="uae"===s.toLowerCase()?"UAE":s.toUpperCase();(0,a.useEffect)(()=>
125{if(e.length>0)return;let t=!1;return(async()=>{c(!0);try{let e=await m.default.get("https://api.spastore.me/api/v1/blog");t||l(e.data.success?e.data.data:[])}catch{t||l([])}finally{t||c(!1)}})(),()=>{t=!0}},[]);let h=d?n.slice(0,4):n;return(0,t.jsxs)("main",{className:d?"":"h-full",children:[!d&&(0,t.jsx)("div",{className:"mb-10",children:(0,t.jsxs)("h2",{className:"text-3xl font-bold text-white",children:["Blog - ",x]})}),(0,t.jsxs)("div",{className:d?"flex flex-col gap-2":"grid grid-cols-1 md:grid-cols-2 gap-6",children:[o&&Array.from({length:d?3:4}).map((e,s)=>(0,t.jsx)(C,{},s)),!o&&0===h.length&&(0,t.jsx)("p",{className:"text-gray-400 text-xs uppercase",children:"No blogs available"}),!o&&h.map(e=>(0,t.jsx)("div",{onClick:()=>i.push(`/${s}/blog/${e.slug}`),className:"cursor-pointer",children:(0,t.jsx)(S.default,{blog:e,variant:d?"drawer":"page"})},e._id))]}),d&&n.length>0&&(0,t.jsx)("div",{className:"mt-3 text-right",children:(0,t.jsx)("button",{onClick:()=>i.push(`/${s}/blog`),className:"text-[#ffd27a] text-xs",children:"View all →"})})]})}function E(e){let c,d,x,m,u,p,g,b,w,y,j,N,_,S,C,E,A,P,T,O,L,R,D,F,U,I,M,B,W,H,G,q,Y,V,K,X,Z,Q,J,ee,et,es,ea,er,ei=(0,s.c)(93),{menu:en,country:el}=e,[eo,ec]=(0,a.useState)(""),[ed,ex]=(0,a.useState)(null),[eh,em]=(0,a.useState)(!1);ei[0]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{ec(new Date().getFullYear().toString())},d=[],ei[0]=c,ei[1]=d):(c=ei[0],d=ei[1]),(0,a.useEffect)(c,d),ei[2]===Symbol.for("react.memo_cache_sentinel")?(x=[{key:"about",label:"About",type:"drawer"},{key:"contact",label:"Contact",type:"drawer"},{key:"terms",label:"Terms",type:"drawer"},{key:"privacy",label:"Privacy",type:"drawer"},{key:"blog",label:"Blogs",type:"drawer"},{key:"top",label:"Back to Top",type:"action"}],ei[2]=x):x=ei[2];let eu=x;(ei[3]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{let e=()=>{em(window.innerWidth<640)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},u=[],ei[3]=m,ei[4]=u):(m=ei[3],u=ei[4]),(0,a.useEffect)(m,u),ei[5]!==eh||ei[6]!==ed)?(g="bg-[#1a222c] text-[#e5e7eb] pt-0 pb-10",p="sticky top-[64px] lg:top-[120px] z-[10]",y="Footer navigation",j="w-full h-[44px] flex items-center bg-[#1e2834] border-b border-black/40 relative z-50",b="max-w-[1500px] mx-auto w-full px-4 xl:px-8 h-[40px] flex items-center gap-1 p-1 rounded-sm",w=eu.map((e,s)=>{let{key:a,label:r,type:i}=e,l=ed===a,o=0===s,c=s===eu.length-1,d="top"===a;if(d&&eh)return null;let x=["relative flex-1 h-full flex flex-col items-center justify-center transition-all duration-150 ease-out outline-none group text-[10px] lg:text-[10px] xl:text-[11px] 2xl:text-[12px] font-extrabold uppercase tracking-[0.25em]",o?"rounded-l-[2px]":"",c?"rounded-r-[2px]":"","action"===i?"bg-[#1e2834] text-white translate-y-0 shadow-[0_5px_0_#0a0e12,0_10px_15px_-2px_rgba(0,0,0,0.7)] hover:text-white hover:bg-[#252f3d] border-t border-white/5":l?"bg-white text-[#1a222c] translate-y-[2px] shadow-[inset_0_4px_12px_rgba(0,0,0,0.9),inset_0_-1px_2px_rgba(255,255,255,0.03)]":"bg-[#1e2834] text-white translate-y-0 shadow-[0_5px_0_#0a0e12,0_10px_15px_-2px_rgba(0,0,0,0.7)] hover:text-white hover:bg-[#252f3d] border-t border-white/5","active:translate-y-[4px] active:shadow-[1px_1px_1px_#0a0e12]"].join(" "),h=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:`absolute inset-0 opacity-[0.03] pointer-events-none bg-[url('https://www.transparenttextures.com/patterns/brushed-alum.png')] mix-blend-overlay ${o?"rounded-l-[2px]":""} ${c?"rounded-r-[2px]":""}`}),d?(0,t.jsxs)("div",{className:"relative z-10 w-full flex items-center justify-center gap-2 sm:gap-3 md:gap-5 group px-2 text-center",children:[(0,t.jsx)("span",{className:"text-[10px] lg:text-[10px] xl:text-[11px] 2xl:text-[12px] text-white font-extrabold uppercase tracking-[0.25em] whitespace-nowrap",children:"BACK TO TOP"}),(0,t.jsx)(n.ChevronUp,{className:"w-4 h-4 sm:w-10 sm:h-10 stroke-[2.5] text-white shrink-0 transition-all duration-300 drop-shadow-[0_0_12px_rgba(255,255,255,0.6)] group-hover:-translate-y-1 group-hover:scale-110"})]}):(0,t.jsx)("span",{className:`relative z-10 transition-all duration-300 ${l?"scale-95 text-[#1a222c]":"group-hover:scale-105"}`,children:r}),!l&&(0,t.jsx)("div",{className:"absolute top-0 left-0 right-0 h-[1px] bg-gradient-to-r from-transparent via-white/10 to-transparent"}),!l&&(0,t.jsx)("div",{className:"absolute inset-y-0 left-0 w-[1px] bg-white/10 group-hover:bg-white/20 transition-colors"})]});return(0,t.jsx)("button",{onClick:()=>(e=>{if("action"===e.type){"top"===e.key&&(ex(null),z());return}
125ex(ed===e.key?null:e.key)})(e),className:x,type:"button",children:h},a)}),ei[5]=eh,ei[6]=ed,ei[7]=p,ei[8]=g,ei[9]=b,ei[10]=w,ei[11]=y,ei[12]=j):(p=ei[7],g=ei[8],b=ei[9],w=ei[10],y=ei[11],j=ei[12]),ei[13]!==b||ei[14]!==w?(N=(0,t.jsx)("div",{className:b,children:w}),ei[13]=b,ei[14]=w,ei[15]=N):N=ei[15],ei[16]!==N||ei[17]!==y||ei[18]!==j?(_=(0,t.jsx)("nav",{"aria-label":y,className:j,children:N}),ei[16]=N,ei[17]=y,ei[18]=j,ei[19]=_):_=ei[19],ei[20]!==p||ei[21]!==_?(S=(0,t.jsx)("div",{className:p,children:_}),ei[20]=p,ei[21]=_,ei[22]=S):S=ei[22];let ep=`
126                    relative
127                    bg-[#1a222c]
128                    border-b
129                    border-white/10
130                    transition-all
131                    duration-700
132                    ease-[cubic-bezier(0.16,1,0.3,1)]
133                    ${ed?"opacity-100":"max-h-0 opacity-0"}
134                    overflow-hidden
135                `;ei[23]!==ed?(C="about"===ed&&(0,t.jsx)(h,{}),ei[23]=ed,ei[24]=C):C=ei[24],ei[25]!==ed?(E="contact"===ed&&(0,t.jsx)(f,{isActive:!0}),ei[25]=ed,ei[26]=E):E=ei[26],ei[27]!==ed?(A="terms"===ed&&(0,t.jsx)(v,{}),ei[27]=ed,ei[28]=A):A=ei[28],ei[29]!==ed?(P="privacy"===ed&&(0,t.jsx)(k,{}),ei[29]=ed,ei[30]=P):P=ei[30],ei[31]!==el||ei[32]!==ed?(T="blog"===ed&&(0,t.jsx)($,{country:el}),ei[31]=el,ei[32]=ed,ei[33]=T):T=ei[33],ei[34]!==C||ei[35]!==E||ei[36]!==A||ei[37]!==P||ei[38]!==T?(O=(0,t.jsx)("div",{className:"overflow-y-auto",children:(0,t.jsxs)("div",{className:"max-w-[1500px] mx-auto p-8 md:p-16",children:[C,E,A,P,T]})}),ei[34]=C,ei[35]=E,ei[36]=A,ei[37]=P,ei[38]=T,ei[39]=O):O=ei[39],ei[40]!==ep||ei[41]!==O?(L=(0,t.jsx)("div",{className:ep,children:O}),ei[40]=ep,ei[41]=O,ei[42]=L):L=ei[42],ei[43]===Symbol.for("react.memo_cache_sentinel")?(R=(0,t.jsx)(i.default,{src:"/logo/spastore.svg",alt:"Spa Store",width:160,height:58,className:"mx-auto mb-10"}),ei[43]=R):R=ei[43],ei[44]!==el||ei[45]!==en?(D=en?.slice(0,5).map(e=>(0,t.jsx)(r.default,{href:`/${el}/${e.slug}`,className:"\n                                text-[10px]\n                                text-gray-300\n                                hover:text-white\n                                uppercase\n                                tracking-[0.35em]\n                                transition\n                            ",children:e.name},e.slug)),ei[44]=el,ei[45]=en,ei[46]=D):D=ei[46],ei[47]!==D?(F=(0,t.jsx)("nav",{"aria-label":"Product categories",className:"flex justify-center flex-wrap gap-x-12 gap-y-6 border-y border-white/10 py-10",children:D}),ei[47]=D,ei[48]=F):F=ei[48];let ef=`/${el}/about-us`;ei[49]!==ef?(U=(0,t.jsx)(r.default,{href:ef,className:"hover:text-white transition",children:"About Us"}),ei[49]=ef,ei[50]=U):U=ei[50];let eg=`/${el}/contact-us`;ei[51]!==eg?(I=(0,t.jsx)(r.default,{href:eg,className:"hover:text-white transition",children:"Contact Us"}),ei[51]=eg,ei[52]=I):I=ei[52];let eb=`/${el}/shipping-policy`;ei[53]!==eb?(M=(0,t.jsx)(r.default,{href:eb,className:"hover:text-white transition",children:"Shipping Policy"}),ei[53]=eb,ei[54]=M):M=ei[54];let ew=`/${el}/returns-refund-policy`;ei[55]!==ew?(B=(0,t.jsx)(r.default,{href:ew,className:"hover:text-white transition",children:"Returns & Refund Policy"}),ei[55]=ew,ei[56]=B):B=ei[56];let ev=`/${el}/privacy-policy`;ei[57]!==ev?(W=(0,t.jsx)(r.default,{href:ev,className:"hover:text-white transition",children:"Privacy Policy"}),ei[57]=ev,ei[58]=W):W=ei[58];let ey=`/${el}/terms-and-conditions`;ei[59]!==ey?(H=(0,t.jsx)(r.default,{href:ey,className:"hover:text-white transition",children:"Terms & Conditions"}),ei[59]=ey,ei[60]=H):H=ei[60];let ej=`/${el}/payment-methods`;ei[61]!==ej?(G=(0,t.jsx)(r.default,{href:ej,className:"hover:text-white transition",children:"Payment Methods"}),ei[61]=ej,ei[62]=G):G=ei[62];let eN=`/${el}/billing-terms`;return ei[63]!==eN?(q=(0,t.jsx)(r.default,{href:eN,className:"hover:text-white transition",children:"Billing Terms & Conditions"}),ei[63]=eN,ei[64]=q):q=ei[64],ei[65]!==U||ei[66]!==I||ei[67]!==M||ei[68]!==B||ei[69]!==W||ei[70]!==H||ei[71]!==G||ei[72]!==q?(Y=(0,t.jsxs)("nav",{"aria-label":"Legal and information links",className:"\n                        mt-10\n                        flex\n                        justify-center\n                        flex-wrap\n                        gap-x-8\n                        gap-y-5\n                        text-[10px]\n                        uppercase\n                        tracking-[0.25em]\n                        text-gray-300\n                    ",children:[U,I,M,B,W,H,G,q]}),ei[65]=U,ei[66]=I,ei[67]=M,ei[68]=B,ei[69]=W,ei[70]=H,ei[71]=G,ei[72]=q,ei[73]=Y):Y=ei[73],ei[74]===Symbol.for("react.memo_cache_sentinel")?(V=(0,t.jsx)("p",{className:"\n                        text-[11px]\n                        uppercase\n                        tracking-[0.25em]\n                        text-white\n                        font-semibold\n                    ",children:"SPA Store"}),ei[74]=V):V=ei[74],ei[75]===Symbol.for("react.memo_cache_sentinel")?(K=(0,t.jsxs)("p",{className:"\n                        mt-3\n                        text-xs\n                        text-gray-300\n                        leading-6\n                    ",children:["Operated by"," ",(0,t.jsx)("strong",{className:"text-white",children:"Eternica Beauty FZE"})]}),X=(0,t.jsx)("p",{className:"\n                        mt-1\n                        text-xs\n                        text-gray-300\n                        leading-6\n                        max-w-xl\n                        mx-auto\n                    ",children:"Business Centre, Sharjah Publishing City Free Zone, Sharjah, United Arab Emirates"}),ei[75]=K,ei[76]=X):(K=ei[75],X=ei[76]),ei[77]===Symbol.for("react.memo_cache_sentinel")?(Z=(0,t.jsxs)("a",{href:"tel:+971523987292",className:"\n                                flex\n                                items-center\n                                gap-2\n                                text-gray-300\n                                hover:text-white\n                                transition\n                            ",children:[(0,t.jsx)(l.Phone,{className:"w-4 h-4 text-gray-300",strokeWidth:1.8}),(0,t.jsx)("span",{children:"+971 52 398 7292"})]}),ei[77]=Z):Z=ei[77],ei[78]===Symbol.for("react.memo_cache_sentinel")?(Q=(0,t.jsxs)("div",{className:"mt-10 border-t border-white/10 pt-10 text-center",children:[V,K,X,(0,t.jsxs)("div",{className:"\n                        mt-5\n                        flex\n                        flex-col\n                        sm:flex-row\n                        justify-center\n                        items-center\n                        gap-4\n                        sm:gap-8\n                        text-xs\n                    ",children:[Z,(0,t.jsxs)("a",{href:"mailto:[email protected]",className:"\n                                flex\n                                items-center\n                                gap-2\n                                text-gray-300\n                                hover:text-white\n                                transition\n                            ",children:[(0,t.jsx)(o.Mail,{className:"w-4 h-4 text-gray-300",strokeWidth:1.8}),(0,t.jsx)("span",{children:"[email protected]"})]})]})]}
135),ei[78]=Q):Q=ei[78],ei[79]===Symbol.for("react.memo_cache_sentinel")?(J=(0,t.jsxs)("div",{className:"\n                        flex\n                        justify-center\n                        items-center\n                        flex-wrap\n                        gap-5\n                    ",children:[(0,t.jsx)(i.default,{src:"/logo/visa.png",alt:"Visa",width:512,height:512,className:"h-7 w-auto object-contain"}),(0,t.jsx)(i.default,{src:"/logo/mastercard.png",alt:"Mastercard",width:512,height:512,className:"h-7 w-auto object-contain"}),(0,t.jsx)(i.default,{src:"/logo/amex.png",alt:"American Express",width:512,height:512,className:"h-7 w-auto object-contain"}),(0,t.jsx)(i.default,{src:"/logo/apple-pay.png",alt:"Apple Pay",width:512,height:512,className:"h-7 w-auto object-contain"}),(0,t.jsx)(i.default,{src:"/logo/google-pay.png",alt:"Google Pay",width:512,height:512,className:"h-7 w-auto object-contain"})]}),ei[79]=J):J=ei[79],ei[80]===Symbol.for("react.memo_cache_sentinel")?(ee=(0,t.jsxs)("div",{className:"\n                    mt-12\n                    border-t\n                    border-white/10\n                    pt-10\n                ",children:[J,(0,t.jsxs)("p",{className:"\n                        mt-6\n                        text-xs\n                        text-gray-300\n                        leading-6\n                    ",children:["Secure payments processed by"," ",(0,t.jsx)("strong",{className:"text-white",children:"Stripe"}),". Your payment information is protected with encrypted and secure payment technology."]}),(0,t.jsx)("p",{className:"\n                        mt-3\n                        text-xs\n                        text-gray-400\n                    ",children:"We accept secure payments from Visa, Mastercard, American Express, Apple Pay and Google Pay."})]}),ei[80]=ee):ee=ei[80],ei[81]===Symbol.for("react.memo_cache_sentinel")?(et=(0,t.jsx)("br",{className:"sm:hidden"}),ei[81]=et):et=ei[81],ei[82]!==eo?(es=(0,t.jsxs)("p",{className:"\n                    text-[9px]\n                    text-gray-400\n                    tracking-[0.5em]\n                    uppercase\n                    mt-12\n                    leading-5\n                ",children:["© ",eo," SPA STORE",et," • ","OPERATED BY ETERNICA BEAUTY FZE"," • ","UAE"]}),ei[82]=eo,ei[83]=es):es=ei[83],ei[84]!==F||ei[85]!==Y||ei[86]!==es?(ea=(0,t.jsxs)("div",{className:"max-w-[1500px] mx-auto px-5 sm:px-8 lg:px-12 pt-20 text-center",children:[R,F,Y,Q,ee,es]}),ei[84]=F,ei[85]=Y,ei[86]=es,ei[87]=ea):ea=ei[87],ei[88]!==g||ei[89]!==S||ei[90]!==L||ei[91]!==ea?(er=(0,t.jsxs)("footer",{className:g,children:[S,L,ea]}),ei[88]=g,ei[89]=S,ei[90]=L,ei[91]=ea,ei[92]=er):er=ei[92],er}function z(){window.scrollTo({top:0,behavior:"smooth"})}e.s(["default",()=>E],9069)},65912,e=>{"use strict";var t=e.i(43476),s=e.i(932),a=e.i(94983),r=e.i(37727),i=e.i(71645);let n=`https://wa.me/971523987292?text=${encodeURIComponent("Hello SPA STORE, I need assistance with your products.")}`;function l(){let e,l,c,d,x,h,m,u,p=(0,s.c)(17),[f,g]=(0,i.useState)(!1),b=(0,i.useRef)(null);p[0]!==f?(e=()=>{if(!f)return;let e=e=>{if(e instanceof KeyboardEvent){"Escape"===e.key&&g(!1);return}let t=e.target;t instanceof Node&&b.current&&!b.current.contains(t)&&g(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",e)}},l=[f],p[0]=f,p[1]=e,p[2]=l):(e=p[1],l=p[2]),(0,i.useEffect)(e,l),p[3]!==f?(c=f&&(0,t.jsxs)("div",{role:"dialog","aria-label":"SPA Store WhatsApp Support",className:"\n            absolute\n            bottom-[calc(100%+14px)]\n            right-0\n            w-[calc(100vw-32px)]\n            max-w-[320px]\n            overflow-hidden\n            rounded-3xl\n            border\n            border-gray-200\n            bg-white\n            shadow-[0_20px_60px_rgba(0,0,0,0.18)]\n          ",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between bg-[#1a222c] px-5 py-4 text-white",children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,t.jsx)("div",{"aria-hidden":"true",className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-[#25D366]",children:(0,t.jsx)(a.MessageCircle,{size:20,strokeWidth:2})}),(0,t.jsxs)("div",{className:"min-w-0 leading-tight",children:[(0,t.jsx)("p",{className:"text-xs font-semibold",children:"SPA Store Support"}),(0,t.jsx)("p",{className:"mt-1 text-[9px] uppercase tracking-wider text-white/70",children:"WhatsApp Support"})]})]}),(0,t.jsx)("button",{type:"button",onClick:()=>g(!1),"aria-label":"Close WhatsApp support",className:"\n                ml-3\n                flex\n                h-8\n                w-8\n                shrink-0\n                items-center\n                justify-center\n                rounded-full\n                text-white/70\n                transition-colors\n                hover:bg-white/10\n                hover:text-white\n                focus-visible:outline-none\n                focus-visible:ring-2\n                focus-visible:ring-white\n              ",children:(0,t.jsx)(r.X,{size:17,strokeWidth:2})})]}),(0,t.jsxs)("div",{className:"px-5 py-5",children:[(0,t.jsx)("p",{className:"text-sm font-semibold text-gray-900",children:"Need assistance?"}),(0,t.jsx)("p",{className:"mt-1.5 text-xs leading-5 text-gray-600",children:"Our team can help with products, availability, orders, and delivery."}),(0,t.jsxs)("a",{href:n,target:"_blank",rel:"noopener noreferrer","aria-label":"Chat with SPA Store on WhatsApp",className:"\n                mt-5\n                flex\n                w-full\n                items-center\n                justify-center\n                gap-2\n                rounded-full\n                bg-[#25D366]\n                px-4\n                py-3\n                text-xs\n                font-semibold\n                text-white\n                transition-colors\n                hover:bg-[#20BD5A]\n                focus-visible:outline-none\n                focus-visible:ring-2\n                focus-visible:ring-[#128C7E]\n                focus-visible:ring-offset-2\n                active:scale-[0.98]\n              ",children:[(0,t.jsx)(a.MessageCircle,{size:17,strokeWidth:2.2}),(0,t.jsx)("span",{children:"Chat with us"})]})]}),(0,t.jsx)("div",{"aria-hidden":"true",className:"\n              absolute\n              bottom-[-7px]\n              right-8\n              h-4\n              w-4\n              rotate-45\n              border-b\n              border-r\
135n              border-gray-200\n              bg-white\n            "})]}),p[3]=f,p[4]=c):c=p[4],p[5]===Symbol.for("react.memo_cache_sentinel")?(d=()=>g(o),p[5]=d):d=p[5];let w=f?"Close WhatsApp support":"Open WhatsApp support";return p[6]!==f?(x=(0,t.jsx)("span",{"aria-hidden":"true",className:"\n            flex\n            h-10\n            w-10\n            items-center\n            justify-center\n            rounded-full\n            bg-white/15\n            sm:h-11\n            sm:w-11\n          ",children:f?(0,t.jsx)(r.X,{size:21,strokeWidth:2}):(0,t.jsx)(a.MessageCircle,{size:22,strokeWidth:2})}),h=!f&&(0,t.jsx)("span",{"aria-hidden":"true",className:"\n              absolute\n              right-0\n              top-0\n              flex\n              h-4\n              w-4\n              items-center\n              justify-center\n              rounded-full\n              bg-white\n              shadow-sm\n            ",children:(0,t.jsx)("span",{className:"h-2 w-2 rounded-full bg-[#25D366]"})}),p[6]=f,p[7]=x,p[8]=h):(x=p[7],h=p[8]),p[9]!==f||p[10]!==w||p[11]!==x||p[12]!==h?(m=(0,t.jsxs)("button",{type:"button",onClick:d,"aria-label":w,"aria-expanded":f,className:"\n          group\n          relative\n          flex\n          h-14\n          w-14\n          items-center\n          justify-center\n          rounded-full\n          bg-[#25D366]\n          text-white\n          shadow-[0_8px_28px_rgba(0,0,0,0.22)]\n          transition-shadow\n          duration-200\n          hover:shadow-[0_10px_32px_rgba(6,122,70,0.30)]\n          active:scale-[0.97]\n          focus-visible:outline-none\n          focus-visible:ring-2\n          focus-visible:ring-[#25D366]\n          focus-visible:ring-offset-2\n          sm:h-16\n          sm:w-16\n        ",children:[x,h]}),p[9]=f,p[10]=w,p[11]=x,p[12]=h,p[13]=m):m=p[13],p[14]!==c||p[15]!==m?(u=(0,t.jsxs)("div",{ref:b,className:"fixed bottom-4 right-4 z-[9998] sm:bottom-6 sm:right-6",children:[c,m]}),p[14]=c,p[15]=m,p[16]=u):u=p[16],u}function o(e){return!e}e.s(["default",()=>l])},92208,e=>{"use strict";var t=e.i(43476),s=e.i(932),a=e.i(55900),r=e.i(64659),i=e.i(71645);function n(){let e,n,l,o,c,d=(0,s.c)(12),[x,h]=(0,i.useState)(!1),[m,u]=(0,i.useState)(!1),[p,f]=(0,i.useState)(!1);if(d[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>{let e=()=>{h(window.innerWidth<768)},t=()=>{let e=window.scrollY,t=document.documentElement.scrollHeight-window.innerHeight;u(e>200),f(e>=t-50)};return e(),t(),window.addEventListener("resize",e),window.addEventListener("scroll",t,{passive:!0}),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",t)}},n=[],d[0]=e,d[1]=n):(e=d[0],n=d[1]),(0,i.useEffect)(e,n),!x)return null;d[2]!==p?(l=()=>{p?window.scrollTo({top:0,behavior:"smooth"}):window.scrollTo({top:document.documentElement.scrollHeight,behavior:"smooth"})},d[2]=p,d[3]=l):l=d[3];let g=l,b=p?"Scroll to top of page":"Scroll to bottom of page",w=p?"Scroll to top":"Scroll to bottom",v=`
136                fixed
137                left-4
138                bottom-6
139                z-[999]
140                w-11
141                h-11
142                rounded-full
143                bg-[#1e2834]
144                border
145                border-white/10
146                flex
147                items-center
148                justify-center
149                shadow-lg
150                transition-all
151                duration-200
152                hover:bg-[#273442]
153                focus:outline-none
154                focus-visible:ring-2
155                focus-visible:ring-[#ffb300]
156                focus-visible:ring-offset-2
157                ${m?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"}
158            `;return d[4]!==p?(o=p?(0,t.jsx)(a.ChevronUp,{"aria-hidden":"true",focusable:"false",className:"w-5 h-5 text-white"}):(0,t.jsx)(r.ChevronDown,{"aria-hidden":"true",focusable:"false",className:"w-5 h-5 text-white"}),d[4]=p,d[5]=o):o=d[5],d[6]!==g||d[7]!==b||d[8]!==w||d[9]!==v||d[10]!==o?(c=(0,t.jsx)("button",{type:"button",onClick:g,"aria-label":b,title:w,className:v,children:o}),d[6]=g,d[7]=b,d[8]=w,d[9]=v,d[10]=o,d[11]=c):c=d[11],c}e.s(["default",()=>n])},54416,e=>{"use strict";var t=e.i(43476),s=e.i(932),a=e.i(71645),r=e.i(68096),i=e.i(1928),n=e.i(37727);function l(){let e,l,o,c,d,x=(0,s.c)(5),[h,m]=(0,a.useState)(!1);return(x[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>{(0,r.initializeGuestCart)()&&m(!0)},l=[],x[0]=e,x[1]=l):(e=x[0],l=x[1]),(0,a.useEffect)(e,l),h)?(x[2]===Symbol.for("react.memo_cache_sentinel")?(o=()=>m(!1),x[2]=o):o=x[2],x[3]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)("button",{onClick:o,className:"absolute right-4 top-4 p-2 text-gray-400 transition hover:bg-gray-100 hover:text-black",children:(0,t.jsx)(n.X,{className:"h-5 w-5"})}),x[3]=c):c=x[3],x[4]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsx)("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center bg-black/40 backdrop-blur-sm",children:(0,t.jsxs)("div",{className:"relative w-[90%] max-w-md border border-gray-200 bg-white p-6 shadow-2xl shadow-black/20",children:[c,(0,t.jsx)("div",{className:"flex h-14 w-14 items-center justify-center rounded-2xl bg-black",children:(0,t.jsx)(i.ShoppingCart,{className:"h-6 w-6 text-white"})}),(0,t.jsx)("h2",{className:"mt-5 text-xl font-semibold tracking-tight text-black",children:"Cart Updated"}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-6 text-gray-500",children:"Your previous cart was cleared due to product updates. Please add your items again and continue shopping."}),(0,t.jsx)("button",{onClick:()=>m(!1),className:"mt-6 w-full bg-black py-3 text-sm font-medium text-white transition hover:bg-gray-800",children:"Continue Shopping"})]})}),x[4]=d):d=x[4],d):null}e.s(["default",()=>l])},5766,e=>{"use strict";let t,s;var a,r=e.i(71645);let i={data:""},n=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,l=/\/\*[^]*?\*\/|  +/g,o=/\n+/g,c=(e,t)=>{let s="",a="",r="";for(let i in e){let n=e[i];"@"==i[0]?"i"==i[1]?s=i+" "+n+";":a+="f"==i[1]?c(n,i):i+"{"+c(n,"k"==i[1]?"":t)+"}":"object"==typeof n?a+=c(n,t?t.replace(/([^,])+/g,e=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):i):null!=n&&(i="-"==i[1]?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),r+=c.p?c.p(i,n):i+":"+n+";")}return s+(t&&r?t+"{"+r+"}":r)+a},d={},x=e=>{if("object"==typeof e){let t="";for(let s in e)t+=s+x(e[s]);return t}return e};function h(e){let t,s,a=this||{},r=e.call?e(a.p):e;return((e,t,s,a,r)=>{var i;let h=x(e),m=d[h]||(d[h]=(e=>{let t=0,s=11;for(;t<e.length;)s=101*s+e.charCodeAt(t++)>>>0;return"go"+s})(h));if(!d[m]){let t=h!==e?e:(e=>{let t,s,a=[{}];for(;t=n.exec(e.replace(l,""));)t[4]?a.shift():t[3]?(s=t[3].replace(o," ").trim(),a.unshift(a[0][s]=a[0][s]||{})):a[0][t[1]]=t[2].replace(o," ").trim();return a[0]})(e);d[m]=c(r?{["@keyframes "+m]:t}:t,s?"":"."+m)}let u=s&&d.g;return s&&(d.g=d[m]),i=d[m],u?t.data=t.data.replace(u,i):-1===t.data.indexOf(i)&&(t.data=a?i+t.data:t.data+i),m}
158)(r.unshift?r.raw?(t=[].slice.call(arguments,1),s=a.p,r.reduce((e,a,r)=>{let i=t[r];if(i&&i.call){let e=i(s),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":c(e,""):!1===e?"":e}return e+a+(null==i?"":i)},"")):r.reduce((e,t)=>Object.assign(e,t&&t.call?t(a.p):t),{}):r,(e=>{if("object"==typeof window){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||i})(a.target),a.g,a.o,a.k)}h.bind({g:1});let m,u,p,f=h.bind({k:1});function g(e,t){let s=this||{};return function(){let a=arguments;function r(i,n){let l=Object.assign({},i),o=l.className||r.className;s.p=Object.assign({theme:u&&u()},l),s.o=/go\d/.test(o),l.className=h.apply(s,a)+(o?" "+o:""),t&&(l.ref=n);let c=e;return e[0]&&(c=l.as||e,delete l.as),p&&c[0]&&p(l),m(c,l)}return t?t(r):r}}var b=(e,t)=>"function"==typeof e?e(t):e,w=(t=0,()=>(++t).toString()),v=()=>{if(void 0===s&&"u">typeof window){let e=matchMedia("(prefers-reduced-motion: reduce)");s=!e||e.matches}return s},y="default",j=(e,t)=>{let{toastLimit:s}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,s)};case 1:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case 2:let{toast:a}=t;return j(e,{type:+!!e.toasts.find(e=>e.id===a.id),toast:a});case 3:let{toastId:r}=t;return{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,dismissed:!0,visible:!1}:e)};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(e=>({...e,pauseDuration:e.pauseDuration+i}))}}},N=[],k={toasts:[],pausedAt:void 0,settings:{toastLimit:20}},_={},S=(e,t=y)=>{_[t]=j(_[t]||k,e),N.forEach(([e,s])=>{e===t&&s(_[t])})},C=e=>Object.keys(_).forEach(t=>S(e,t)),$=(e=y)=>t=>{S(t,e)},E={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},z=(e={},t=y)=>{let[s,a]=(0,r.useState)(_[t]||k),i=(0,r.useRef)(_[t]);(0,r.useEffect)(()=>(i.current!==_[t]&&a(_[t]),N.push([t,a]),()=>{let e=N.findIndex(([e])=>e===t);e>-1&&N.splice(e,1)}),[t]);let n=s.toasts.map(t=>{var s,a,r;return{...e,...e[t.type],...t,removeDelay:t.removeDelay||(null==(s=e[t.type])?void 0:s.removeDelay)||(null==e?void 0:e.removeDelay),duration:t.duration||(null==(a=e[t.type])?void 0:a.duration)||(null==e?void 0:e.duration)||E[t.type],style:{...e.style,...null==(r=e[t.type])?void 0:r.style,...t.style}}});return{...s,toasts:n}},A=e=>(t,s)=>{let a,r=((e,t="blank",s)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...s,id:(null==s?void 0:s.id)||w()}))(t,e,s);return $(r.toasterId||(a=r.id,Object.keys(_).find(e=>_[e].toasts.some(e=>e.id===a))))({type:2,toast:r}),r.id},P=(e,t)=>A("blank")(e,t);P.error=A("error"),P.success=A("success"),P.loading=A("loading"),P.custom=A("custom"),P.dismiss=(e,t)=>{let s={type:3,toastId:e};t?$(t)(s):C(s)},P.dismissAll=e=>P.dismiss(void 0,e),P.remove=(e,t)=>{let s={type:4,toastId:e};t?$(t)(s):C(s)},P.removeAll=e=>P.remove(void 0,e),P.promise=(e,t,s)=>{let a=P.loading(t.loading,{...s,...null==s?void 0:s.loading});return"function"==typeof e&&(e=e()),e.then(e=>{let r=t.success?b(t.success,e):void 0;return r?P.success(r,{id:a,...s,...null==s?void 0:s.success}):P.dismiss(a),e}).catch(e=>{let r=t.error?b(t.error,e):void 0;r?P.error(r,{id:a,...s,...null==s?void 0:s.error}):P.dismiss(a)}),e};var T=1e3,O=(e,t="default")=>{let{toasts:s,pausedAt:a}=z(e,t),i=(0,r.useRef)(new Map).current,n=(0,r.useCallback)((e,t=T)=>{if(i.has(e))return;let s=setTimeout(()=>{i.delete(e),l({type:4,toastId:e})},t);i.set(e,s)},[]);(0,r.useEffect)(()=>{if(a)return;let e=Date.now(),r=s.map(s=>{if(s.duration===1/0)return;let a=(s.duration||0)+s.pauseDuration-(e-s.createdAt);if(a<0){s.visible&&P.dismiss(s.id);return}return setTimeout(()=>P.dismiss(s.id,t),a)});return()=>{r.forEach(e=>e&&clearTimeout(e))}},[s,a,t]);let l=(0,r.useCallback)($(t),[t]),o=(0,r.useCallback)(()=>{l({type:5,time:Date.now()})},[l]),c=(0,r.useCallback)((e,t)=>{l({type:1,toast:{id:e,height:t}})},[l]),d=(0,r.useCallback)(()=>{a&&l({type:6,time:Date.now()})},[a,l]),x=(0,r.useCallback)((e,t)=>{let{reverseOrder:a=!1,gutter:r=8,defaultPosition:i}=t||{},n=s.filter(t=>(t.position||i)===(e.position||i)&&t.height),l=n.findIndex(t=>t.id===e.id),o=n.filter((e,t)=>
vendor: 4,095 bytes, lines 158-326
158t<l&&e.visible).length;return n.filter(e=>e.visible).slice(...a?[o+1]:[0,o]).reduce((e,t)=>e+(t.height||0)+r,0)},[s]);return(0,r.useEffect)(()=>{s.forEach(e=>{if(e.dismissed)n(e.id,e.removeDelay);else{let t=i.get(e.id);t&&(clearTimeout(t),i.delete(e.id))}})},[s,n]),{toasts:s,handlers:{updateHeight:c,startPause:o,endPause:d,calculateOffset:x}}},L=f`
159from {
160  transform: scale(0) rotate(45deg);
161	opacity: 0;
162}
163to {
164 transform: scale(1) rotate(45deg);
165  opacity: 1;
166}`,R=f`
167from {
168  transform: scale(0);
169  opacity: 0;
170}
171to {
172  transform: scale(1);
173  opacity: 1;
174}`,D=f`
175from {
176  transform: scale(0) rotate(90deg);
177	opacity: 0;
178}
179to {
180  transform: scale(1) rotate(90deg);
181	opacity: 1;
182}`,F=g("div")`
183  width: 20px;
184  opacity: 0;
185  height: 20px;
186  border-radius: 10px;
187  background: ${e=>e.primary||"#ff4b4b"};
188  position: relative;
189  transform: rotate(45deg);
190
191  animation: ${L} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
192    forwards;
193  animation-delay: 100ms;
194
195  &:after,
196  &:before {
197    content: '';
198    animation: ${R} 0.15s ease-out forwards;
199    animation-delay: 150ms;
200    position: absolute;
201    border-radius: 3px;
202    opacity: 0;
203    background: ${e=>e.secondary||"#fff"};
204    bottom: 9px;
205    left: 4px;
206    height: 2px;
207    width: 12px;
208  }
209
210  &:before {
211    animation: ${D} 0.15s ease-out forwards;
212    animation-delay: 180ms;
213    transform: rotate(90deg);
214  }
215`,U=f`
216  from {
217    transform: rotate(0deg);
218  }
219  to {
220    transform: rotate(360deg);
221  }
222`,I=g("div")`
223  width: 12px;
224  height: 12px;
225  box-sizing: border-box;
226  border: 2px solid;
227  border-radius: 100%;
228  border-color: ${e=>e.secondary||"#e0e0e0"};
229  border-right-color: ${e=>e.primary||"#616161"};
230  animation: ${U} 1s linear infinite;
231`,M=f`
232from {
233  transform: scale(0) rotate(45deg);
234	opacity: 0;
235}
236to {
237  transform: scale(1) rotate(45deg);
238	opacity: 1;
239}`,B=f`
2400% {
241	height: 0;
242	width: 0;
243	opacity: 0;
244}
24540% {
246  height: 0;
247	width: 6px;
248	opacity: 1;
249}
250100% {
251  opacity: 1;
252  height: 10px;
253}`,W=g("div")`
254  width: 20px;
255  opacity: 0;
256  height: 20px;
257  border-radius: 10px;
258  background: ${e=>e.primary||"#61d345"};
259  position: relative;
260  transform: rotate(45deg);
261
262  animation: ${M} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
263    forwards;
264  animation-delay: 100ms;
265  &:after {
266    content: '';
267    box-sizing: border-box;
268    animation: ${B} 0.2s ease-out forwards;
269    opacity: 0;
270    animation-delay: 200ms;
271    position: absolute;
272    border-right: 2px solid;
273    border-bottom: 2px solid;
274    border-color: ${e=>e.secondary||"#fff"};
275    bottom: 6px;
276    left: 6px;
277    height: 10px;
278    width: 6px;
279  }
280`,H=g("div")`
281  position: absolute;
282`,G=g("div")`
283  position: relative;
284  display: flex;
285  justify-content: center;
286  align-items: center;
287  min-width: 20px;
288  min-height: 20px;
289`,q=f`
290from {
291  transform: scale(0.6);
292  opacity: 0.4;
293}
294to {
295  transform: scale(1);
296  opacity: 1;
297}`,Y=g("div")`
298  position: relative;
299  transform: scale(0.6);
300  opacity: 0.4;
301  min-width: 20px;
302  animation: ${q} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
303    forwards;
304`,V=({toast:e})=>{let{icon:t,type:s,iconTheme:a}=e;return void 0!==t?"string"==typeof t?r.createElement(Y,null,t):t:"blank"===s?null:r.createElement(G,null,r.createElement(I,{...a}),"loading"!==s&&r.createElement(H,null,"error"===s?r.createElement(F,{...a}):r.createElement(W,{...a})))},K=g("div")`
305  display: flex;
306  align-items: center;
307  background: #fff;
308  color: #363636;
309  line-height: 1.3;
310  will-change: transform;
311  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
312  max-width: 350px;
313  pointer-events: auto;
314  padding: 8px 10px;
315  border-radius: 8px;
316`,X=g("div")`
317  display: flex;
318  justify-content: center;
319  margin: 4px 10px;
320  color: inherit;
321  flex: 1 1 auto;
322  white-space: pre-line;
323`,Z=r.memo(({toast:e,position:t,style:s,children:a})=>{let i=e.height?((e,t)=>{let s=e.includes("top")?1:-1,[a,r]=v()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[`
3240% {transform: translate3d(0,${-200*s}%,0) scale(.6); opacity:.5;}
325100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
326`,`
3270% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
328100% {transform: translate3d(0,${-150*s}%,-1px) scale(.6); opacity:0;}
329`];return{animation:t?`${f(a)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${f(r)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||t||"top-center",e.visible):{opacity:0},n=r.createElement(V,{toast:e}),l=r.createElement(X,{...e.ariaProps},b(e.message,e));return r.createElement(K,{className:e.className,style:{...i,...s,...e.style}},"function"==typeof a?a({icon:n,message:l}):r.createElement(r.Fragment,null,n,l))});a=r.createElement,c.p=void 0,m=a,u=void 0,p=void 0;var Q=({id:e,className:t,style:s,onHeightUpdate:a,children:i})=>{let n=r.useCallback(t=>{if(t){let s=()=>{a(e,t.getBoundingClientRect().height)};s(),new MutationObserver(s).observe(t,{subtree:!0,childList:!0,characterData:!0})}},[e,a]);return r.createElement("div",{ref:n,className:t,style:s},i)},J=h`
330  z-index: 9999;
331  > * {
332    pointer-events: auto;
333  }
334`,ee=({reverseOrder:e,position:t="top-center",toastOptions:s,gutter:a,children:i,toasterId:n,containerStyle:l,containerClassName:o})=>{let{toasts:c,handlers:d}=O(s,n);return r.createElement("div",{"data-rht-toaster":n||"",style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...l},className:o,onMouseEnter:d.startPause,onMouseLeave:d.endPause},c.map(s=>{let n,l,o=s.position||t,c=d.calculateOffset(s,{reverseOrder:e,gutter:a,defaultPosition:t}),x=(n=o.includes("top"),l=o.includes("center")?{justifyContent:"center"}:o.includes("right")?{justifyContent:"flex-end"}:{},{left:0,right:0,display:"flex",position:"absolute",transition:v()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${c*(n?1:-1)}px)`,...n?{top:0}:{bottom:0},...l});return r.createElement(Q,{id:s.id,key:s.id,onHeightUpdate:d.updateHeight,className:s.visible?J:"",style:x},"custom"===s.type?b(s.message,s):i?i(s):r.createElement(Z,{toast:s,position:o}))}))};e.s(["CheckmarkIcon",()=>W,"ErrorIcon",()=>F,"LoaderIcon",()=>I,"ToastBar",()=>Z,"ToastIcon",()=>V,"Toaster",()=>ee,"default",()=>P,"resolveValue",()=>b,"toast",()=>P,"useToaster",()=>O,"useToasterStore",()=>z],5766)},36852,e=>{"use strict";var t=e.i(932),s=e.i(71645),a=e.i(18566);function r(){let e,r=(0,t.c)(2),n=(0,a.usePathname)();return r[0]!==n?(e=[n],r[0]=n,r[1]=e):e=r[1],(0,s.useEffect)(i,e),null}function i(){window.scrollTo(0,0)}e.s(["default",()=>r])}]);

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.