PageSourceSearch

https://sugary.me/_next/static/chunks/4419-9c0380f3a5a70902.js

js sugary.me collected 2026-10-01 14:20:18 UTC 39,246 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4419],{9338:(e,t,r)=>{"use strict";r.d(t,{L$:()=>m,X6:()=>g,fG:()=>d,ns:()=>h,rM:()=>l,setGiftingPlace:()=>c});var i=r(2125),a=r(35844),s=r(37002),o=r(11109),n=r(85702);async function l(){try{let e=await a.u.get(i.Ge);return await e.json()}catch{return null}}function c(e,t,r){let i=s.useGlobalStore.getState(),a=i[s.X.CurrentUser];if(a){let t={...a,GiftingPlace:e};i.setField(s.X.CurrentUser,t)}return i.setField(s.X.GiftingPlace,e),o.Q.getState().setCurrentGeoPlace(t),o.Q.getState().setIsGiftingPlaceBySystem(r),u({place:e}),{success:!0}}function d(e){let t=s.useGlobalStore.getState(),r=t[s.X.CurrentUser];if(r){let i={...r,GiftingDate:e};t.setField(s.X.CurrentUser,i)}return e&&t.setField(s.X.GiftingDate,e),u({date:e}),{success:!0}}function u(e){let t=s.useGlobalStore.getState();if(!t[s.X.Token])return;let r=e.place??t[s.X.GiftingPlace],o=e.date??t[s.X.GiftingDate],n=o?`?giftingDate=${encodeURIComponent(o)}`:"";a.u.post(`${i.AM}${n}`,r).catch(e=>{console.warn("Silently caught error while syncing gifting place to backend:",e)})}async function m(e,t){try{let r=`${i.td.LOOKUP}?coordinate=${e},${t}&checkInService=true`,a=await n.O.get(r);return await a.json()}catch(e){return console.error("Error looking up sugary place:",e),null}}async function h(e,t,r,a,s){try{let o="cities"===t?i.td.CITIES:i.td.STATES,l=await n.O.get(`${o}?countryIso2=${encodeURIComponent(e)}&skip=${r}&limit=30&keyword=${encodeURIComponent(a??"")}&onlyInService=${s}`);return await l.json()}catch(e){return console.error(`Error getting ${t}:`,e),null}}let f=new Map;async function g(e=!0,t=!0){let r=`${e}:${t}`,a=f.get(r);if(a)return a;let s=(async()=>{try{let r=`${i.td.COUNTRIES}?checkInService=${e}&onlyInService=${t}`,a=await n.O.get(r);return await a.json()}catch(e){return console.error("Error getting countries:",e),f.delete(r),null}})();return f.set(r,s),s}},11109:(e,t,r)=>{"use strict";r.d(t,{Q:()=>s});var i=r(1934),a=r(31692);let s=(0,i.v)()((0,a.Zr)(e=>({currentGeoPlace:null,initialSelectedPlace:null,onSelectPlaceAction:null,surface:null,isAddressUnknown:!1,isOpen:!1,hasShownLocationPopover:!1,isGiftingPlaceBySystem:void 0,setCurrentGeoPlace:t=>e({currentGeoPlace:t}),setIsAddressUnknown:t=>e({isAddressUnknown:t}),setIsGiftingPlaceBySystem:t=>e({isGiftingPlaceBySystem:t}),markLocationPopoverShown:()=>e({hasShownLocationPopover:!0}),openPicker:t=>e({isOpen:!0,initialSelectedPlace:t?.initialSelectedPlace??null,onSelectPlaceAction:t?.onSelectPlaceAction??null,surface:t?.surface??null}),closePicker:()=>e({isOpen:!1,initialSelectedPlace:null,onSelectPlaceAction:null,surface:null})}),{name:"delivery-details-storage",partialize:e=>({currentGeoPlace:e.currentGeoPlace,isAddressUnknown:e.isAddressUnknown,isGiftingPlaceBySystem:e.isGiftingPlaceBySystem})}))},25704:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var i=r(95155),a=r(81566),s=r(80526),o=r(42268),n=r(67310),l=r(2693),c=r(23591);let d=({terms:e,isLoading:t,isInitialLoading:r,handleTagClick:d,onClose:u})=>{let{language:m}=(0,l.n)(),h=c.P[m];return t?e&&e.length>0||r?(0,i.jsxs)("div",{className:"mb-8 px-6",children:[(0,i.jsxs)("div",{className:"flex items-center gap-3 mb-3",children:[(0,i.jsx)("div",{className:"h-4 w-24 bg-white/10 rounded shrink-0 animate-pulse"}),(0,i.jsx)("div",{className:"flex-1 h-[1px] bg-white/10"})]}),(0,i.jsx)("div",{className:"flex flex-wrap gap-2.5",children:(e&&e.length>0?e:[1,2,3,4,5,6]).map((e,t)=>{let r="string"==typeof e?e:"object"==typeof e&&e&&"Title"in e&&"string"==typeof e.Title?e.Title:"",a=r?Math.max(8*r.length,50):[80,96,64,112,88,72][t%6];return(0,i.jsx)("div",{className:"h-[40px] rounded-[16px] bg-white/10 animate-pulse",style:{width:`${a}px`}},`cat-skel-${t}`)})})]}):null:e&&0!==e.length?(0,i.jsxs)("div",{className:"mb-8 px-6 animate-in fade-in slide-in-from-bottom-2 duration-300",children:[(0,i.jsxs)("div",{className:"flex items-center gap-3 mb-3",children:[(0,i.jsx)("h3",{className:"text-[16px] font-normal text-white/50 font-bricolage uppercase shrink-0",children:h.searchPanel.categories}),(0,i.jsx)("div",{className:"flex-1 h-[1px] bg-white/10"})]}),(0,i.jsx)("div",{className:"flex flex-wrap gap-y-6 gap-x-2",children:e.map((e,t)=>{let r="string"==typeof e?e:e.Title||e.Text||e.Name||"",l="string"==typeof e?e:e.LocalizedTitle||r;if(!r)return null;
1let c=`category-${r}-${t}`,m=(0,n.Yv)(r),h="group inline-flex items-center gap-1.5 px-3.5 h-[40px] rounded-[16px] border border-white/10 bg-black/15 hover:bg-white/10 hover:border-white/20 active:scale-95 transition-all cursor-pointer text-left animate-reveal-product",f=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.A,{size:20,className:"text-white/60 group-hover:text-white shrink-0 transition-colors"}),(0,i.jsx)("span",{className:"text-xl lg:text-[14px] font-medium text-white/50 group-hover:text-white transition-colors",children:l.toLowerCase()})]});return m?(0,i.jsx)(a.TrackingLink,{href:`/categories/${m}`,inRefId:s.L.searchPanel.categories,onClick:()=>u?.(),style:{animationDelay:`${40*t}ms`},className:h,children:f},c):(0,i.jsx)("button",{type:"button",onClick:()=>d?.(r),style:{animationDelay:`${40*t}ms`},className:h,children:f},c)})})]}):null}},39658:(e,t,r)=>{"use strict";r.d(t,{p:()=>s});var i=r(95155);r(12115);var a=r(91337);function s({className:e,type:t,...r}){return(0,i.jsx)("input",{type:t,"data-slot":"input",className:(0,a.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground border-input h-9 w-full min-w-0 rounded-md border bg-background px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...r})}},46294:(e,t,r)=>{"use strict";r.d(t,{F5:()=>i,q8:()=>a}),r(4858);let i=(e,t,r)=>{let i=new URLSearchParams(r||"");t&&i.set("r",t);let a=i.toString();return a?`/p/${e}?${a}`:`/p/${e}`},a=(e,t,r)=>{let i=new URLSearchParams(r||"");t&&i.set("r",t);let a=i.toString();return a?`/v/${e}?${a}`:`/v/${e}`}},54419:(e,t,r)=>{"use strict";r.d(t,{T:()=>B});var i=r(95155),a=r(12115),s=r(39658),o=r(33210),n=r(61878),l=r(51914),c=r(21628);let d=({text:e,as:t="div",typingSpeed:r=50,initialDelay:s=0,pauseDuration:o=2e3,loop:n=!0,className:l="",showCursor:c=!0,hideCursorWhileTyping:d=!1,cursorCharacter:u="|",cursorClassName:m="",cursorBlinkDuration:h=.5,textColors:f=[],variableSpeed:g,onSentenceComplete:p,startOnVisible:x=!1,reverseMode:v=!1,...b})=>{let[w,y]=(0,a.useState)(""),[j,N]=(0,a.useState)(0),[k,S]=(0,a.useState)(!1),[P,C]=(0,a.useState)(0),[D,I]=(0,a.useState)(!x),L=(0,a.useRef)(null),$=(0,a.useRef)(null),F=(0,a.useMemo)(()=>Array.isArray(e)?e:[e],[e]),A=(0,a.useCallback)(()=>{if(!g)return r;let{min:e,max:t}=g;return Math.random()*(t-e)+e},[g,r]);(0,a.useEffect)(()=>{if(!x||!$.current)return;let e=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&I(!0)})},{threshold:.1});return e.observe($.current),()=>e.disconnect()},[x]),(0,a.useEffect)(()=>{c&&L.current&&(L.current.style.animation=`blink ${2*h}s step-end infinite`)},[c,h]),(0,a.useEffect)(()=>{let e;if(!D)return;let t=F[P],i=v?t.split("").reverse().join(""):t,a=()=>{if(k){if(P!==F.length-1||n){p&&p(F[P],P),y(""),N(0),C(e=>(e+1)%F.length),S(!1);return}}else if(j<i?.length)e=setTimeout(()=>{y(e=>e+i[j]),N(e=>e+1)},g?A():r);else if(F.length>=1){if(!n&&P===F.length-1)return;e=setTimeout(()=>{(P!==F.length-1||n)&&(p&&p(F[P],P),y(""),N(0),C(e=>(e+1)%F.length))},o)}};return 0!==j||k||""!==w?a():e=setTimeout(a,s),()=>clearTimeout(e)},[j,w,k,r,o,F,P,n,s,D,v,g,p]);let T=d&&(j<F[P].length||k);return(0,a.createElement)(t,{ref:$,className:`inline-block whitespace-pre-wrap tracking-tight ${l}`,...b},(0,i.jsx)("span",{className:"inline",style:{color:(()=>{if(f?.length!==0)return f[P%f?.length]})()||"inherit"},children:w}),c&&(0,i.jsx)("span",{ref:L,className:`ml-1 inline-block opacity-100 ${T?"hidden":""} ${m} cursor-text-blink`,children:u}))};var u=r(96621),m=r(87851),h=r(74937),f=r(81566),g=r(17050),p=r(67021),x=r(31910),v=r(80526),b=r(41455),w=r(41641),y=r(21362),j=r(6296),N=r(52760),k=r(4858),S=r(46294),P=r(62591),C=r(11109),D=r(37002);let I=({products:e,isLoading:t,isInitialLoading:a,navigatingId:s,setNavigatingId:o,handleTag
1Click:n,onClose:l,title:c="TRENDING GIFTS"})=>{let d=(0,b.rd)(),u=(0,P.h)(),m=e=>{u.ref.current&&u.ref.current.scrollBy({left:"left"===e?-240:240,behavior:"smooth"})};if(t){if(e&&e.length>0||a){let t=e&&e.length>0?Math.min(e.length,6):4;return(0,i.jsxs)("div",{className:"mb-8",children:[(0,i.jsx)("div",{className:"flex items-center justify-between mb-3 px-6",children:(0,i.jsx)("div",{className:"h-4 w-32 bg-white/10 rounded animate-pulse"})}),(0,i.jsx)("div",{className:"flex gap-3 overflow-hidden px-6 pb-2",children:Array.from({length:t}).map((e,t)=>(0,i.jsxs)("div",{className:"flex flex-col items-center gap-2 shrink-0 w-[115px] sm:w-[130px]",children:[(0,i.jsx)("div",{className:"w-full h-[155px] sm:h-[175px] squircle bg-white/10 animate-pulse"}),(0,i.jsx)("div",{className:"h-3 w-16 bg-white/10 rounded animate-pulse"})]},`product-skel-${t}`))})]})}return null}return e&&0!==e.length?(0,i.jsxs)("div",{className:"mb-8 animate-in fade-in slide-in-from-bottom-2 duration-300",children:[(0,i.jsxs)("div",{className:"flex items-center justify-between mb-3 px-6",children:[(0,i.jsx)("h3",{className:"text-[16px] font-normal text-white/50 font-bricolage uppercase",children:c}),(0,i.jsxs)("div",{className:"flex items-center gap-1",children:[(0,i.jsx)("button",{type:"button",onClick:()=>m("left"),className:"p-1 rounded-full text-white/60 hover:text-white hover:bg-white/10 bg-white/5 transition-colors cursor-pointer","aria-label":"Scroll products left",children:(0,i.jsx)(w.A,{size:16})}),(0,i.jsx)("button",{type:"button",onClick:()=>m("right"),className:"p-1 rounded-full text-white/60 hover:text-white hover:bg-white/10 bg-white/5 transition-colors cursor-pointer","aria-label":"Scroll products right",children:(0,i.jsx)(y.A,{size:16})})]})]}),(0,i.jsx)("div",{ref:u.ref,onMouseDown:u.onMouseDown,onDragStart:u.onDragStart,className:"flex overflow-x-auto gap-3 pb-2 px-6 no-scrollbar scrollbar-hide select-none cursor-grab active:cursor-grabbing",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:e.map((e,t)=>{let a=`product-${e.Id}-${t}`,c=e.Title||e.Name||e.DisplayText||"",u=e.CoverPhoto||e.CoverPhotoPath||"",m=(0,N.X)(u,"md"),b=s===a,w=(0,k.SV)(c,e.Id,e.WinningVariantId||null,null,e.StoreUId||null),y=(0,S.F5)(w,"search");return(0,i.jsxs)(f.TrackingLink,{href:y,inRefId:v.L.searchPanel.storeDetailsFromProduct,onClick:t=>{y?(t.preventDefault(),D.useGlobalStore.getState().giftingPlace?(o(a),setTimeout(()=>{l?.()},400),d.push((0,x.B)(y,v.L.searchPanel.storeDetailsFromProduct))):C.Q.getState().openPicker({surface:p.S7.Product,onSelectPlaceAction:async(t,i)=>{let{setGiftingPlace:s}=await Promise.resolve().then(r.bind(r,9338)),{checkStoreInCoverage:n}=await r.e(1781).then(r.bind(r,51781));s(t,i),await n(t.CountryIso2,t.StateUId,t.CityUId,t.AdminZoneUId,t.RequestLatitude,t.RequestLongitude,null,e.StoreUId)?(o(a),setTimeout(()=>{l?.()},400),d.push((0,x.B)(y,v.L.searchPanel.storeDetailsFromProduct))):(setTimeout(()=>{l?.()},400),d.push("/home"))}})):(t.preventDefault(),n(c))},trackItem:{itemType:p.kH.Material,id:e.Id,materialTypeId:e.TypeId??g.vF.GiftMarketProduct,position:t},style:{animationDelay:`${40*t}ms`},className:"group flex flex-col items-center gap-2 shrink-0 cursor-pointer animate-reveal-product w-[115px] sm:w-[130px]",children:[(0,i.jsxs)("div",{className:"relative w-full h-[155px] sm:h-[175px] squircle overflow-hidden border border-white/10 bg-white/5 group-hover:scale-[1.03] group-active:scale-95 transition-all duration-300 shadow-md",children:[(0,i.jsx)(h.A,{src:m,alt:c,fill:!0,className:"object-cover transition-transform duration-700 group-hover:scale-105"}),b&&(0,i.jsx)("div",{className:"absolute inset-0 bg-black/60 flex flex-col items-center justify-center gap-1 z-20 transition-all rounded-[22px]",children:(0,i.jsx)(j.A,{size:22,className:"animate-spin text-white"})})]}),(0,i.jsx)("p",{className:"text-xl sm:text-sm font-medium text-white/70 group-hover:text-white truncate w-full text-center transition-colors",children:c})]},a)})})]}):null};var L=r(41159),$=r(2693),F=r(23591);let A=({stores:e,isLoading:t,navigatingId:r,setNavigatingId:a,handleTag
1Click:s,onClose:o})=>{let{language:n}=(0,$.n)(),l=F.P[n];return t?e&&e.length>0?(0,i.jsxs)("div",{className:"mb-12 lg:mb-6 px-6",children:[(0,i.jsx)("div",{className:"h-4 w-20 bg-white/10 rounded mb-3 animate-pulse"}),(0,i.jsx)("div",{className:"grid grid-cols-5 lg:grid-cols-6 gap-2",children:Array.from({length:Math.min(e.length,6)}).map((e,t)=>(0,i.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,i.jsx)("div",{className:"w-20 h-20 lg:w-14 lg:h-14 rounded-full bg-white/10 animate-pulse"}),(0,i.jsx)("div",{className:"h-3 w-12 bg-white/10 rounded animate-pulse"})]},`store-skel-${t}`))})]}):null:e&&0!==e.length?(0,i.jsxs)("div",{className:"mb-12 lg:mb-6 px-6 animate-in fade-in slide-in-from-bottom-2 duration-300",children:[(0,i.jsx)("h3",{className:"text-[16px] font-normal text-white/50 font-bricolage uppercase mb-4",children:l.searchPanel.stores}),(0,i.jsx)("div",{className:"grid grid-cols-5 lg:grid-cols-6 gap-2",children:e.map((e,t)=>{let n=`store-${e.UId||e.Id}-${t}`,l=(0,N.X)(e.LogoPath,"sm"),c=r===n,d=e.UId?`/${e.UId.toLowerCase()}`:"";return(0,i.jsxs)(f.TrackingLink,{href:d,inRefId:v.L.searchPage.storeDetailsFromStore,onClick:t=>{d?(a(n),setTimeout(()=>{o?.()},400)):(t.preventDefault(),s(e.Name))},trackItem:{itemType:p.kH.Store,id:e.Id,position:t},style:{animationDelay:`${40*t}ms`},className:"group flex flex-col items-center cursor-pointer text-center animate-reveal-product",children:[(0,i.jsxs)("div",{className:"relative w-20 h-20 lg:w-14 lg:h-14 rounded-full overflow-hidden border-2 border-white/10 flex items-center justify-center bg-gray-800 transition-all duration-300 group-hover:scale-110 group-hover:border-white/30 shrink-0",children:[l?(0,i.jsx)(h.A,{src:l,alt:e.Name,fill:!0,className:"object-cover"}):(0,i.jsx)(L.A,{className:"w-6 h-6 text-white/60"}),c&&(0,i.jsx)("div",{className:"absolute inset-0 bg-black/60 flex items-center justify-center rounded-full",children:(0,i.jsx)(j.A,{className:"w-4 h-4 text-white animate-spin"})})]}),(0,i.jsx)("span",{className:"text-lg lg:text-sm text-white/50 group-hover:text-white mt-2 transition-colors font-medium  w-full",children:e.Name})]},n)})})]}):null},T=({voucher:e,onClick:t,className:r="",style:a={},isLoading:s})=>{let o=e.StoreName||e.BrandName||"Store",n=e.ECardIconCoverPath,l=n?(0,N.X)(n,"md"):null,c=e.ECardGradient1,d=e.ECardGradient2,u={};return u=c||d?{background:`linear-gradient(135deg, ${c||"#1c1c24"} 0%, ${d||"#121218"} 100%)`}:{background:"linear-gradient(135deg, #1c1c24 0%, #121218 100%)"},(0,i.jsxs)("div",{style:a,onClick:t,className:`flex flex-col gap-2 w-full relative group cursor-pointer active:scale-95 transition-all duration-300 ease-out ${r}`,children:[(0,i.jsx)("div",{className:"pb-1 select-none w-full",children:(0,i.jsxs)("div",{className:"relative w-full aspect-[1.6/1]",children:[(0,i.jsx)("div",{className:"absolute inset-0 border border-white/10 squircle overflow-hidden -rotate-3 scale-[1.04] group-hover:-rotate-6 group-hover:scale-105 transition-all duration-500 ease-out",style:{...u,opacity:.3,zIndex:0},children:l&&(0,i.jsx)(h.A,{draggable:!1,src:l,alt:`${o} background`,fill:!0,sizes:"(max-width: 768px) 300px, 450px",className:"object-cover",loading:"lazy"})}),(0,i.jsxs)("div",{className:"relative w-full h-full flex items-center justify-center border border-white/15 overflow-hidden transition-all duration-300 squircle group-hover:scale-[1.02] group-hover:rotate-1",style:{...u,zIndex:2},children:[l&&(0,i.jsx)(h.A,{draggable:!1,src:l,alt:`${o} background`,fill:!0,sizes:"(max-width: 768px) 300px, 450px",className:"object-cover",loading:"lazy"}),(0,i.jsx)("div",{className:"absolute top-0 left-0 right-0 h-[1px] bg-gradient-to-r from-transparent via-white/20 to-transparent pointer-events-none"}),s&&(0,i.jsx)("div",{className:"absolute inset-0 bg-black/65 backdrop-blur-xs flex items-center justify-center z-30 squircle",children:(0,i.jsx)(j.A,{size:20,className:"animate-spin text-white"})})]})]})}),(0,i.jsx)("span",{className:"text-xl sm:text-sm font-medium text-white/70 group-hover:text-white truncate w-full text-center transition-colors",children:o})]})},G=({vouchers:e,isLoading:t,navigatingId:r,setNavigatingId:a,handleTag
1Click:s,onClose:o,title:n="MOST GIFTED VOUCHERS"})=>{let l=(0,P.h)(),c=e=>{l.ref.current&&l.ref.current.scrollBy({left:"left"===e?-240:240,behavior:"smooth"})};return t?e&&e.length>0?(0,i.jsxs)("div",{className:"mb-8",children:[(0,i.jsx)("div",{className:"flex items-center justify-between mb-3 px-6",children:(0,i.jsx)("div",{className:"h-4 w-40 bg-white/10 rounded animate-pulse"})}),(0,i.jsx)("div",{className:"flex gap-3 overflow-hidden px-6 py-2",children:Array.from({length:Math.min(e.length,6)}).map((e,t)=>(0,i.jsxs)("div",{className:"flex flex-col items-center gap-2 shrink-0",children:[(0,i.jsx)("div",{className:"w-[130px] sm:w-[145px] md:w-[150px] aspect-[1.5/1] squircle bg-white/10 animate-pulse"}),(0,i.jsx)("div",{className:"h-3 w-16 bg-white/10 rounded animate-pulse"})]},`voucher-skel-${t}`))})]}):null:e&&0!==e.length?(0,i.jsxs)("div",{className:"animate-in fade-in slide-in-from-bottom-2 duration-300",children:[(0,i.jsxs)("div",{className:"flex items-center justify-between mb-3 px-6",children:[(0,i.jsx)("h3",{className:"text-[16px] font-normal text-white/50 font-bricolage uppercase",children:n}),(0,i.jsxs)("div",{className:"flex items-center gap-1",children:[(0,i.jsx)("button",{type:"button",onClick:()=>c("left"),className:"p-1 rounded-full text-white/60 hover:text-white hover:bg-white/10 bg-white/5 transition-colors cursor-pointer","aria-label":"Scroll gift vouchers left",children:(0,i.jsx)(w.A,{size:16})}),(0,i.jsx)("button",{type:"button",onClick:()=>c("right"),className:"p-1 rounded-full text-white/60 hover:text-white hover:bg-white/10 bg-white/5 transition-colors cursor-pointer","aria-label":"Scroll gift vouchers right",children:(0,i.jsx)(y.A,{size:16})})]})]}),(0,i.jsx)("div",{ref:l.ref,onMouseDown:l.onMouseDown,onDragStart:l.onDragStart,className:"flex overflow-x-auto gap-3 py-2 px-6 no-scrollbar scrollbar-hide select-none cursor-grab active:cursor-grabbing",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:e.map((e,t)=>{let n=`voucher-${e.Id}-${t}`,l=e.Title||"Gift Card",c=r===n,d=(0,k.SV)(l,e.Id,e.VariantId||null,e.StoreName||null,e.StoreUId||null),u=(0,S.q8)(d,"search");return(0,i.jsx)(f.TrackingLink,{href:u,inRefId:v.L.searchPanel.storeDetailsFromGiftCard,onClick:e=>{u?(a(n),setTimeout(()=>{o?.()},400)):(e.preventDefault(),s(l))},trackItem:{itemType:p.kH.Material,id:e.Id,materialTypeId:e.TypeId??g.vF.GiftVoucher,position:t},style:{animationDelay:`${40*t}ms`},className:"relative w-[130px] sm:w-[145px] md:w-[150px] shrink-0 animate-reveal-product block",children:(0,i.jsx)(T,{voucher:e,isLoading:c})},n)})})]}):null};var U=r(63439),E=r(9338);let R=()=>{let e=(0,D.useGlobalStore)(e=>e.giftingPlace),{language:t}=(0,$.n)(),r=F.P[t],[s,o]=(0,a.useState)([]),[n,l]=(0,a.useState)(!0);(0,a.useEffect)(()=>{let e=!0;return(async()=>{try{l(!0);let t=await (0,E.X6)(!0);if(e){let e=Array.isArray(t)?t:t?.data||[];o(e)}}catch(e){console.error("Failed to fetch countries in SearchCountries:",e)}finally{e&&l(!1)}})(),()=>{e=!1}},[]);let c=e?.CountryIso2?.toLowerCase()||"",d=e?.CountryName?.toLowerCase()||"",u=(0,a.useMemo)(()=>s.filter(e=>{let t=(e.CountryIso2||e.code||"").toLowerCase(),r=(e.CountryName||e.name||"").toLowerCase();return(!c||t!==c)&&(!d||r!==d)}).slice(0,6),[s,c,d]);return n||0!==u.length?(0,i.jsxs)("div",{className:"px-6 animate-in fade-in slide-in-from-bottom-2 duration-300",children:[(0,i.jsx)("h3",{className:"text-[16px] font-normal text-white/50 font-bricolage uppercase mb-4",children:r.searchPanel.top_gifting_country}),(0,i.jsx)("div",{className:"grid grid-cols-5 lg:grid-cols-6 gap-2",children:n?Array.from({length:6}).map((e,t)=>(0,i.jsxs)("div",{className:"flex flex-col items-center shrink-0",children:[(0,i.jsx)("div",{className:"w-11 h-11 rounded-full bg-white/5 border border-white/10 animate-pulse"}),(0,i.jsx)("div",{className:"h-3 bg-white/5 rounded w-8 mt-2 animate-pulse"})]},`country-skeleton-${t}`)):u.map((e,t)=>{let r=e.CountryIso2||"",a=e.CountryName||"";return(0,i.jsxs)("div",{onClick:()=>{let t,r,i;return t=e.CountryName||e.name||"",r=e.CountryIso2||e.code||null,i={RequestLatitude:e.CenterLat??null,RequestLongitude:e.CenterLng??null,CountryIso2:r,CountryIso3:e.CountryIso3||null,CountryName:t||null,StateUId:null,StateName:null,StateLocalName:null,CityUId:null,CityName:null,CityLocalName:null,AdminZoneUId:null,AdminZoneName:null,AdminZoneLocalName:null,CenterLat:e.CenterLat??null,CenterLng:e.CenterLng??null,Level:"COUNTRY",IsInService:e.IsInService??!0,CountryHasCity:e.CountryHasCity??void 0,CountryHasState:e.CountryHasState??void 0},void C.Q.getState().openPicker({initialSelectedPlace:i})},style:{animationDelay:`${40*t}ms`},className:"group flex flex-col items-center cursor-pointer text-center animate-reveal-product",children:[(0,i.jsx)("div",{className:"w-14 h-14 lg:w-11 lg:h-11 rounded-full overflow-hidden border border-white/5 flex items-center justify-center bg-gray-800 transition-all duration-300 group-hover:scale-110 group-hover:border-white/30 shrink-0",children:(0,i.jsx)(U.iF,{countryIso2:r,countryName:a,width:44,height:44,className:"w-full h-full object-cover scale-125"})}),(0,i.jsx)("span",{className:"text-xl lg:text-[14px]  text-white/50 group-hover:text-white mt-2 transition-colors font-medium truncate w-full",children:a})]},r||`country-${t}`)})})]}):null};var _=r(25704),z=r(12419);r(76005);
1let O=({keyword:e="",onSelectTag:t,onClose:r})=>{let s=(0,D.useGlobalStore)(e=>e.giftingPlace),{language:o}=(0,$.n)(),n=F.P[o],l=e.trim(),c=l.length>=2,[d,u]=(0,a.useState)(null),[h,f]=(0,a.useState)(!1),[g,x]=(0,a.useState)(null),v=(0,a.useRef)(0);(0,a.useEffect)(()=>{f(!0);let e=++v.current,t=s?.RequestLatitude??s?.CenterLat??null,r=s?.RequestLongitude??s?.CenterLng??null,i={query:c?l:"",country:s?.CountryIso2||void 0,city:s?.CityUId||void 0,state:s?.StateUId||void 0,adminZone:s?.AdminZoneUId||void 0,latitude:t??void 0,longitude:r??void 0,locale:o};if(!c)return void(0,m.y)(i).then(t=>{e===v.current&&(u(t),f(!1))});let a=setTimeout(async()=>{let t=await (0,m.y)(i);e===v.current&&(u(t),f(!1))},300);return()=>clearTimeout(a)},[l,c,o,s?.CountryIso2,s?.CityUId,s?.StateUId,s?.AdminZoneUId,s?.RequestLatitude,s?.RequestLongitude,s?.CenterLat,s?.CenterLng]);let b=e=>{t&&t(e)},w=d?.Categories||[],y=d?.Stores||[],j=d?.Products||[],N=d?.GiftVouchers||[],k=h&&null===d,S=w.length>0||y.length>0||j.length>0||N.length>0;return(0,i.jsx)("div",{className:"w-full max-w-full md:w-[700px] h-fit max-h-[var(--radix-popover-content-available-height,calc(100dvh-100px))] flex flex-col overflow-hidden squircle bg-black/40 border border-white/10 shadow-[0_20px_50px_rgba(0,0,0,0.8)] backdrop-blur-xl",children:(0,i.jsxs)("div",{className:"w-full h-fit max-h-[var(--radix-popover-content-available-height,calc(100dvh-100px))] py-6 px-0 flex flex-col gap-4 overflow-y-auto overscroll-contain no-scrollbar scrollbar-hide",style:{scrollbarWidth:"none",msOverflowStyle:"none"},onClick:e=>e.stopPropagation(),children:[(c||h||S)&&(0,i.jsxs)("div",{children:[(0,i.jsx)(z.TrackedList,{listKey:p.s0.SearchPreview,children:(0,i.jsx)(A,{stores:y,isLoading:h,isInitialLoading:k,navigatingId:g,setNavigatingId:x,handleTagClick:b,onClose:r})}),(0,i.jsx)(z.TrackedList,{listKey:p.s0.SearchPreview,children:(0,i.jsx)(I,{products:j,isLoading:h,isInitialLoading:k,navigatingId:g,setNavigatingId:x,handleTagClick:b,onClose:r,title:c?n.searchPanel.products:n.searchPanel.trending_gifts})}),(0,i.jsx)(_.A,{terms:w,isLoading:h,isInitialLoading:k,handleTagClick:b,onClose:r}),(0,i.jsx)(z.TrackedList,{listKey:p.s0.SearchPreview,children:(0,i.jsx)(G,{vouchers:N,isLoading:h,isInitialLoading:k,navigatingId:g,setNavigatingId:x,handleTagClick:b,onClose:r,title:c?n.searchPanel.gift_vouchers:n.searchPanel.most_gifted_vouchers})})]}),(0,i.jsx)(R,{})]})})};var M=r(62489),q=r(91459);let B=(0,a.forwardRef)(({initialValue:e="",handleSearch:t,placeholderText:r="Search",typewriterTexts:m=[],className:h,onActiveChange:f,showSearchPanel:g=!0,autoFocus:p=!1,storeChip:x},v)=>{let{language:b}=(0,$.n)(),w=F.P[b]??F.P.en,[y,j]=(0,a.useState)(e),N=(0,u.a)(),[k,S]=(0,a.useState)(p),[P,C]=(0,a.useState)(!1),D=(0,a.useRef)(null),I=(0,a.useRef)(null);(0,a.useEffect)(()=>{let e=()=>{C(window.innerWidth<1300)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,a.useEffect)(()=>{f&&f(k)},[k,f]),(0,a.useEffect)(()=>{p?(S(!0),!N&&window.innerWidth>=1024&&I.current?.focus()):S(!1)},[p,N]);let L=void 0!==h?h:N?"flex-1 w-full":"flex-1 md:w-[300px] lg:w-[340px] xl:w-[440px]";(0,a.useEffect)(()=>{j(e)},[e]);let A=()=>{I.current?.blur(),S(!1),t(y)},T=!!(x&&!1!==x.isActive),G=g&&!T;return(0,i.jsx)("div",{ref:e=>{D.current=e,"function"==typeof v?v(e):v&&(v.current=e)},className:`relative ${L}`,children:(0,i.jsxs)(M.AM,{open:G&&k,onOpenChange:S,modal:!1,children:[(0,i.jsx)(M.dT,{asChild:!0,children:(0,i.jsxs)("form",{className:"flex items-center rounded-full border border-white/10 glass_card_black pl-[11px] px-4 group focus-within:!border-white/30 transition-all shadow-xl h-[52px] w-full relative z-50 cursor-pointer",onClick:()=>{S(!0),I.current?.focus()},onSubmit:e=>{e.preventDefault(),A()},children:[T&&x?(0,i.jsxs)("div",{className:"shrink-0 flex items-center rounded-full bg-white/10 border border-white/15 overflow-hidden transition-all animate-fadeIn mr-2",children:[(0,i.jsxs)("div",{className:"flex items-center gap-1.5 pl-2.5 pr-2 h-[32px] cursor-default",children:[(0,i.jsx)("span",{className:"w-2 h-2 rounded-full bg-[#3B82F6] shrink-0"}),(0,i.jsx)("span",{className:"text-white text-xl md:text-sm font-medium truncate max-w-[90px] sm:max-w-[130px] md:max-w-[160px]",children:x.name})]}),(0,i.jsx)("div",{className:"w-[1px] h-3.5 bg-white/20"}),(0,i.jsxs)(q.m_,{children:[(0,i.jsx)(q.k$,{asChild:!0,children:(0,i.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),x.onRemove()},className:"px-2 py-1 text-white/60 hover:text-white transition-colors flex items-center justify-center cursor-pointer","aria-label":w.header?.search_all_products,children:(0,i.jsx)(o.A,{size:13})})}),(0,i.jsx)(q.ZI,{side:"bottom",sideOffset:8,className:"bg-white text-sm font-normal text-black rounded-xl border border-gray-100 shadow-xl",children:w.header?.search_all_products})]})]}):(0,i.jsx)(n.A,{className:`text_gray_50 group-focus-within:text-white shrink-0 ${N?"h-8 w-8":"h-6 w-6"}`}),(0,i.jsx)("div",{className:"relative flex-1 px-3 h-full flex items-center gap-2 min-w-0",children:(0,i.jsxs)("div",{className:"relative flex-1 h-full flex items-center min-w-0",children:[(0,i.jsx)(s.p,{ref:I,value:y,onChange:e=>{let r=e.target.value;j(r),T?t(r):""===r&&t("")},autoFocus:!N&&p,onKeyDown:e=>{"Enter"===e.key&&(I.current?.blur(),S(!1),t(y))},onFocus:()=>S(!0),className:"peer shadow-none h-full w-full bg-transparent border-0 focus-visible:ring-0 px-0 text-[1.5rem] md:text-[1.35rem] lg:text-[1.1rem] font-medium text-white [&::-webkit-search-cancel-button]:appearance-none",placeholder:" ","aria-label":"Search",autoComplete:"off",type:"search",enterKeyHint:"search"}),(0,i.jsxs)("span",{className:"flex items-center pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 text-gray-400 peer-focus:opacity-0 peer-[&:not(:placeholder-shown)]:opacity-0 whitespace-nowrap py-1",children:[r&&(0,i.jsx)("span",{className:"leading-normal text_gray_50 text-[1.5rem] md:text-lg font-semibold truncate",children:r}),m&&m.length>0&&(0,i.jsx)(d,{text:m,className:"px-1 text_gray_70 !font-semibold leading-normal text-[1.5rem] md:text-sm",showCursor:!1})]})]})}),(0,i.jsx)(o.A,{size:N?18:16,className:`hover:bg-white/20 rounded-full text_gray_70 cursor-pointer hover:text-white transition-opacity ${y?"o
1pacity-100":"opacity-0 pointer-events-none"}`,onClick:()=>{j(""),t("")}}),x&&!T&&(0,i.jsxs)(q.m_,{children:[(0,i.jsx)(q.k$,{asChild:!0,children:(0,i.jsxs)("button",{type:"button",onClick:e=>{e.stopPropagation(),x.onRestore?.(y),I.current?.focus()},className:"shrink-0 flex items-center gap-1 rounded-full bg-white/5 hover:bg-white/10 border border-dashed border-white/20 hover:border-white/40 px-2.5 py-0.5 h-[28px] text-white/70 hover:text-white transition-all text-xs font-medium cursor-pointer mx-1 animate-fadeIn","aria-label":(w.header?.search_in_store||"Search in {store}").replace("{store}",x.name),children:[(0,i.jsx)(l.A,{size:14,className:"shrink-0 text-blue-400"}),(0,i.jsx)("span",{className:"truncate max-w-[70px] sm:max-w-[100px] md:max-w-[130px] text-xl md:text-sm",children:x.name})]})}),(0,i.jsx)(q.ZI,{side:"bottom",sideOffset:8,className:"bg-white text-sm font-normal text-black rounded-xl border border-gray-100 shadow-xl",children:(w.header?.search_in_store).replace("{store}",x.name)})]}),(0,i.jsx)(c.A,{className:`text_gray_50 group-focus-within:text-white cursor-pointer hover:text-white transition-colors ml-2 ${N?"h-8 w-8":"h-5 w-5"}`,onClick:A})]})}),G&&(0,i.jsx)(M.hl,{align:P?"center":"start",sideOffset:12,collisionPadding:16,className:"p-0 border-0 bg-transparent shadow-none z-50 w-[calc(100vw-32px)] md:w-[610px] max-h-[var(--radix-popover-content-available-height,calc(100dvh-100px))]",onOpenAutoFocus:e=>e.preventDefault(),onCloseAutoFocus:e=>e.preventDefault(),onInteractOutside:e=>{D.current?.contains(e.target)&&e.preventDefault()},children:(0,i.jsx)(O,{keyword:y,onSelectTag:e=>{I.current?.blur(),S(!1),j(e),t(e)},onClose:()=>S(!1)})})]})})});B.displayName="HomeHeaderSearchField"},62489:(e,t,r)=>{"use strict";r.d(t,{AM:()=>o,Wv:()=>n,dT:()=>c,hl:()=>l});var i=r(95155);r(12115);var a=r(62183),s=r(91337);function o({...e}){return(0,i.jsx)(a.bL,{"data-slot":"popover",...e})}function n({...e}){return(0,i.jsx)(a.l9,{"data-slot":"popover-trigger",...e})}function l({className:e,align:t="center",sideOffset:r=4,...o}){return(0,i.jsx)(a.ZL,{children:(0,i.jsx)(a.UC,{"data-slot":"popover-content",align:t,sideOffset:r,className:(0,s.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) outline-hidden",e),...o})})}function c({...e}){return(0,i.jsx)(a.Mz,{"data-slot":"popover-anchor",...e})}},62591:(e,t,r)=>{"use strict";r.d(t,{h:()=>a});var i=r(12115);function a(){let e=(0,i.useRef)(null);return{ref:e,onMouseDown:t=>{if(0!==t.button)return;let r=e.current;if(!r)return;let i=!1,a=t.clientX,s=r.scrollLeft,o=e=>{let t=e.clientX-a;Math.abs(t)>5&&(i=!0),r.scrollLeft=s-t},n=()=>{window.removeEventListener("mousemove",o),window.removeEventListener("mouseup",n),i&&window.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault()},{capture:!0,once:!0})};window.addEventListener("mousemove",o),window.addEventListener("mouseup",n)},onDragStart:e=>{e.preventDefault()}}}},67021:(e,t,r)=>{"use strict";r.d(t,{RM:()=>c,RS:()=>o,S7:()=>n,Xe:()=>l,h:()=>a,kH:()=>s,pc:()=>u,s0:()=>i,xh:()=>d});let i={HomeSection:"home-section",LandingSection:"landing-section",SearchResults:"search-results",SearchPreview:"search-preview",Browse:"browse",Category:"category",GiftMarket:"gift-market",EGiftBrowse:"egift-browse",Trending:"trending",AllVendors:"all-vendors",StorePage:"store-page",Similar:"similar",HubPage:"hub-page"},a={Products:"products",Vouchers:"vouchers",EGifts:"egifts",Stores:"stores",All:"all"},s={Material:"material",Store:"store",GiftLink:"gift-link"},o={Whatsapp:"whatsapp",Facebook:"facebook",Messenger:"messenger",Instagram:"instagram",CopyLink:"copy-link",NativeSheet:"native-sheet",Email:"email",Sms:"sms"},n={Product:"product",Store:"store",Checkout:"checkout",Header:"header",Onboarding:"onboarding",Order:"order",GiftLink:"gift-link"},l={IpDefault:"ip-default",UserPicked:"user-picked",CheckoutChange:"checkout-change"},c={OutOfZone:"out-of-zone",StoreClosed:"store-closed",DateUnavailable:"date-unavailable"},d={Add:"add",Remove:"remove",Quantity:"quantity",Clear:"clear"},u={DeliveryMode:"delivery-mode",Recipient:"recipient",DigitalCard:"digital-card",Promo:"promo",PaymentMethod:"payment-method",QuoteFailed:"quote-failed",DeliveryUnavailable:"delivery-unavailable",OrderCreateFailed:"order-create-failed",GatewayRedirect:"gateway-redirect"}}
1,67310:(e,t,r)=>{"use strict";r.d(t,{I$:()=>s,Yv:()=>a});let i=RegExp(`[${String.fromCharCode(768)}-${String.fromCharCode(879)}]`,"g");function a(e){return e?e.normalize("NFKD").replace(i,"").toLowerCase().replace(/'/g,"").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,""):""}function s(e){return e?e.UrlSlug||a(e.Title):""}},76005:()=>{},80526:(e,t,r)=>{"use strict";r.d(t,{L:()=>i});let i={landignPage:{flowersSlider:"landing-fs",cakesSlider:"landing-cs",trendingSlider:"landing-ts",uniqueSlider:"landing-uqs",egiftSlider:"landing-es",blog:"landing-blgs",miniFooter:"landing-mini-ftr",footer:"landing-ftr",categories:"landing-cats",storeDetails:"landing-str"},categoriesPage:{categories:"categories-cats",miniFooter:"categories-mini-ftr",footer:"categories-ftr",storeDetails:"categories-str"},blogPage:{blogDetails:"blog-blgsec",footer:"blog-ftr",miniFooter:"blog-mini-ftr",similarBlog:"blog-smlr-blg",featuredBlog:"blog-featuredblg",storeDetails:"blog-str"},blogDetailsPage:{footer:"blogde-ftr",miniFooter:"blogde-mini-ftr",similarBlog:"blogde-smlr-blg",storeDetails:"blogde-str"},basketDrawer:{storeDetails:"basket-itm"},homePage:{storeDetails:"home-str",productDetails:"home-ps",storeSection:"home-ss",egiftSection:"home-es",footer:"home-ftr",miniFooter:"home-mini-ftr"},trendingPage:{footer:"trending-ftr",miniFooter:"trending-mini-ftr",storeDetails:"trending-str"},giftMarketPage:{footer:"giftmarket-ftr",miniFooter:"giftmarket-mini-ftr",storeDetails:"giftmarket-str",productDetails:"giftmarket-p"},productDetailsPage:{footer:"productde-ftr",miniFooter:"productde-mini-ftr",storeDetails:"productde-str"},voucherDetailsPage:{footer:"voucherde-ftr",miniFooter:"voucherde-mini-ftr",storeDetails:"voucherde-str"},categoryDetailsPage:{footer:"categoryde-ftr",miniFooter:"categoryde-mini-ftr",storeDetails:"categoryde-str"},subCategoryDetailsPage:{footer:"subcategoryde-ftr",miniFooter:"subcategoryde-mini-ftr",storeDetails:"subcategoryde-str"},allProductsPage:{footer:"allproducts-ftr",miniFooter:"allproducts-mini-ftr",storeDetails:"allproducts-str",productDetails:"allproducts-p"},allVendorsPage:{footer:"allvendors-ftr",miniFooter:"allvendors-mini-ftr",storeDetails:"allvendors-str"},searchPage:{footer:"search-ftr",miniFooter:"search-mini-ftr",storeDetails:"search-str",storeDetailsFromStore:"search-str",storeDetailsFromProducts:"search-ps",storeDetailsFromGifts:"search-es"},searchPanel:{categories:"searchpanel-cat",storeDetailsFromProduct:"searchpanel-str",storeDetailsFromGiftCard:"searchpanel-egft"},partnerPage:{footer:"partner-ftr",miniFooter:"partner-mini-ftr",storeDetails:"partner-str"},careerPage:{footer:"career-ftr",miniFooter:"career-mini-ftr",storeDetails:"career-str"},businessPage:{footer:"business-ftr",miniFooter:"business-mini-ftr",storeDetails:"business-str"},aboutPage:{footer:"about-ftr",miniFooter:"about-mini-ftr",storeDetails:"about-str"},contactUsPage:{footer:"contactus-ftr",miniFooter:"contactus-mini-ftr",storeDetails:"contactus-str"},supportPage:{footer:"support-ftr",miniFooter:"support-mini-ftr",storeDetails:"support-str"},termsPage:{footer:"terms-ftr",miniFooter:"terms-mini-ftr",storeDetails:"terms-str"},privacyPage:{footer:"privacy-ftr",miniFooter:"privacy-mini-ftr",storeDetails:"privacy-str"},cookiesPage:{footer:"cookies-ftr",miniFooter:"cookies-mini-ftr",storeDetails:"cookies-str"},returnPolicyPage:{footer:"returnpolicy-ftr",miniFooter:"returnpolicy-mini-ftr",storeDetails:"returnpolicy-str"},shippingPage:{footer:"shipping-ftr",miniFooter:"shipping-mini-ftr",storeDetails:"shipping-str"},trademarkPage:{footer:"trademark-ftr",miniFooter:"trademark-mini-ftr",storeDetails:"trademark-str"},antiBribingPage:{footer:"antibribing-ftr",miniFooter:"antibribing-mini-ftr",storeDetails:"antibribing-str"},codeOfConductPage:{footer:"codeofconduct-ftr",miniFooter:"codeofconduct-mini-ftr",storeDetails:"codeofconduct-str"},accountDeletionPage:{footer:"accountdel-ftr",miniFooter:"accountdel-mini-ftr",storeDetails:"accountdel-str"},myProfilePage:{footer:"myprofile-ftr",miniFooter:"myprofile-mini-ftr",storeDetails:"myprofile-str"},checkoutPage:{footer:"checkout-ftr",miniFooter:"checkout-mini-ftr",storeDetails:"checkout-items"}
1,myOrdersPage:{footer:"myorders-ftr",miniFooter:"myorders-mini-ftr",storeDetails:"myorders-str"},countriesPage:{footer:"countries-ftr",miniFooter:"countries-mini-ftr",storeDetails:"countries-str"},countryDetailsPage:{footer:"countryde-ftr",miniFooter:"countryde-mini-ftr",storeDetails:"countryde-str"}}},87851:(e,t,r)=>{"use strict";r.d(t,{y:()=>o});var i=r(2125),a=r(76348),s=r(85702);let o=async(e={},t={})=>{try{let r=(0,a.B)(e),o=i.Dn?.SEARCH_PREVIEW,n=await s.O.get(`${o}${r}`,t),l=await n.json();return{Categories:Array.isArray(l?.Categories)?l.Categories:[],Stores:Array.isArray(l?.Stores)?l.Stores:[],Products:Array.isArray(l?.Products)?l.Products:[],GiftVouchers:Array.isArray(l?.GiftVouchers)?l.GiftVouchers:[]}}catch(e){return console.error("Error fetching search suggestions:",e),null}}},91459:(e,t,r)=>{"use strict";r.d(t,{Bc:()=>o,ZI:()=>c,k$:()=>l,m_:()=>n});var i=r(95155);r(12115);var a=r(48489),s=r(91337);function o({delayDuration:e=0,...t}){return(0,i.jsx)(a.Kq,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function n({...e}){return(0,i.jsx)(o,{children:(0,i.jsx)(a.bL,{"data-slot":"tooltip",...e})})}function l({...e}){return(0,i.jsx)(a.l9,{"data-slot":"tooltip-trigger",...e})}function c({className:e,sideOffset:t=0,children:r,...o}){return(0,i.jsx)(a.ZL,{children:(0,i.jsxs)(a.UC,{"data-slot":"tooltip-content",sideOffset:t,className:(0,s.cn)("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...o,children:[r,(0,i.jsx)(a.i3,{className:"bg-white fill-white z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}}}]);

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.