1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5160],{2123:(e,t,n)=>{"use strict";n.d(t,{Tq:()=>c,qY:()=>l});var r=n(26250);function s(){let e=window.oaiq;return"function"==typeof e?e:null}function i(e,t){if(Number.isFinite(e)&&!(e<0))try{let n=t.trim().toUpperCase(),r=new Intl.NumberFormat("en",{style:"currency",currency:n}).resolvedOptions().maximumFractionDigits??2;return Math.round(e*10**r)}catch{return}}function a(e,t,n="USD"){let r,s=n.trim().toUpperCase(),o=null==t?void 0:i(t,s);return{type:"contents",...null!=o&&{amount:o,currency:s},...e.length>0&&{contents:(r=s.trim().toUpperCase(),e.map(e=>{let t=null==e.price?void 0:i(e.price,r),n=Number.isInteger(e.quantity)&&(e.quantity??0)>0?e.quantity:void 0;return{id:String(e.item_id),...e.item_name&&{name:e.item_name},content_type:e.item_category||"product",...null!=n&&{quantity:n},...null!=t&&{amount:t,currency:r}}}))}}}function o(e,t,n){if((0,r.R)())try{let r=s();if(!r)return;n?r("measure",e,t,n):r("measure",e,t)}catch{}}function l(e){try{s()?.("consent",e)}catch{}}let c={pageViewed(){o("page_viewed",{type:"contents"})},viewContent(e){o("contents_viewed",a([e],e.price,"USD"))},itemsAdded(e,t){e.length&&o("items_added",a(e,t,"USD"))},checkoutStarted(e,t){e.length&&o("checkout_started",a(e,t,"USD"))},orderCreated(e){o("order_created",a(e.items,e.value,e.currency),{event_id:`order_${e.transactionId}`})},registrationCompleted(){o("registration_completed",{type:"customer_action"})}}},2191:(e,t,n)=>{"use strict";n.d(t,{OpenInAppModal:()=>g});var r=n(95155),s=n(74350),i=n(74937),a=n(33210),o=n(41455),l=n(2693),c=n(82464),d=n(28183),u=n(96621),m=n(17050);let p=`${"https://d1wh1xji6f82aw.cloudfront.net/".replace(/\/$/,"")}/WebImages`;function g(){let{isOpen:e,closeModal:t,title:n,description:g}=(0,d.B)(),{language:f}=(0,l.n)(),h=c.P[f],x=(0,u.a)();return(0,r.jsx)(s.lG,{open:e,onOpenChange:t,children:(0,r.jsxs)(s.Cf,{className:"w-fit max-w-[95vw] p-0 border-none shadow-2xl bg_secondary squircle overflow-hidden inline-flex flex-col items-center",children:[(0,r.jsx)(s.L3,{className:"sr-only",children:"Open in the Sugary app"}),(0,r.jsx)("button",{onClick:t,className:"absolute top-4 right-4 p-2 rounded-full hover:bg-white/10 transition-colors z-[1001] cursor-pointer",children:(0,r.jsx)(a.A,{size:20,className:"text-white/70"})}),(0,r.jsxs)("div",{className:"relative p-6 flex flex-col items-center justify-center text-center gap-6",children:[(0,r.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,r.jsx)("h2",{className:"text-xl font-bricolage font-bold text_gray_70 tracking-tight",children:n||h.openApp.get_full_access}),(0,r.jsx)("p",{className:"text_gray_50 text-sm font-thin",children:g||h.openApp.download_install_app})]}),(0,r.jsx)("div",{className:"download-container relative",children:(0,r.jsxs)("div",{className:"p-4 inline-flex items-center gap-8 !rounded-2xl",children:[(0,r.jsx)("div",{className:"w-24 h-24 flex items-center justify-center",children:(0,r.jsx)(i.A,{src:`${p}/appicon.webp`,alt:"App Icon",width:96,height:96,className:"w-full h-full object-cover rounded-2xl"})}),(0,r.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,r.jsx)(o.N_,{href:"https://apps.apple.com/us/app/sugary-gift-app/id6444475666",target:"_blank",rel:"noopener noreferrer",children:(0,r.jsx)(i.A,{src:`${p}/apple.svg`,alt:"Download on the App Store",width:64,height:24,className:"w-[24px] h-auto"})}),(0,r.jsx)(o.N_,{href:"https://play.google.com/store/apps/details?id=com.app.sugary",target:"_blank",rel:"noopener noreferrer",className:"cardButton",children:(0,r.jsx)(i.A,{src:`${p}/android.svg`,alt:"Get it on Google Play",width:64,height:24,className:"w-[30px] h-auto"})})]}),(0,r.jsx)("div",{className:"flex flex-col items-center gap-3",children:(0,r.jsx)("div",{className:"w-24 h-24 ",children:(0,r.jsx)(i.A,{src:"/qr.svg",alt:"QR Code",width:96,height:96,className:"w-full h-full"})})})]})}),x&&(0,r.jsx)("button",{onClick:()=>{window.location.href="sugary://",setTimeout(()=>{/android/i.test(navigator.userAgent.toLowerCase())?window.open(m.uc.PLAY_STORE_LINK,"_blank"):/iphone|ipad|ipod/i.test(navigator.userAgent.toLowerCase())&&window.open(m.uc.APP_STORE_
1LINK,"_blank")},2500)},className:"cursor-pointer px-4 py-1.5 rounded-full bg-white text-black text-[10px] font-bold uppercase tracking-wider hover:bg-white/90 transition-all transform hover:scale-105 active:scale-95",children:h.openApp.open_app}),(0,r.jsx)("p",{className:"uppercase text-sm text_gray_30 font-semibold",children:h.openApp.scan_from_phone})]}),(0,r.jsx)("style",{})]})})}},5160:(e,t,n)=>{"use strict";n.d(t,{default:()=>d});var r=n(95155),s=n(12115),i=n(73321),a=n(62756),o=n(2123),l=n(37276);function c(){let e=(0,i.usePathname)(),t=(0,i.useSearchParams)().toString(),n=(0,s.useRef)(!0);return(0,s.useEffect)(()=>{(0,l.fp)(),(0,l.u0)()},[]),(0,s.useEffect)(()=>{if(n.current){n.current=!1;return}(0,a.Xd)()&&(0,a.$_)(),o.Tq.pageViewed()},[e,t]),null}function d(){return(0,r.jsx)(s.Suspense,{fallback:null,children:(0,r.jsx)(c,{})})}},7635:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,66872,23)),Promise.resolve().then(n.bind(n,89688)),Promise.resolve().then(n.bind(n,5160)),Promise.resolve().then(n.bind(n,46360)),Promise.resolve().then(n.bind(n,91174)),Promise.resolve().then(n.bind(n,12514)),Promise.resolve().then(n.bind(n,34417)),Promise.resolve().then(n.bind(n,92063)),Promise.resolve().then(n.bind(n,93934)),Promise.resolve().then(n.bind(n,44369)),Promise.resolve().then(n.bind(n,2191)),Promise.resolve().then(n.bind(n,61549)),Promise.resolve().then(n.bind(n,94245)),Promise.resolve().then(n.bind(n,16226)),Promise.resolve().then(n.bind(n,75602)),Promise.resolve().then(n.bind(n,29580)),Promise.resolve().then(n.bind(n,30565)),Promise.resolve().then(n.bind(n,90285)),Promise.resolve().then(n.bind(n,26300)),Promise.resolve().then(n.bind(n,91930)),Promise.resolve().then(n.t.bind(n,42593,23)),Promise.resolve().then(n.t.bind(n,93484,23)),Promise.resolve().then(n.t.bind(n,15530,23)),Promise.resolve().then(n.t.bind(n,24150,23)),Promise.resolve().then(n.t.bind(n,62089,23)),Promise.resolve().then(n.t.bind(n,34718,23)),Promise.resolve().then(n.t.bind(n,7275,23)),Promise.resolve().then(n.t.bind(n,86245,23)),Promise.resolve().then(n.t.bind(n,62542,23)),Promise.resolve().then(n.t.bind(n,1998,23))},8946:(e,t,n)=>{"use strict";n.d(t,{$x:()=>a,Ao:()=>f,FJ:()=>l,KF:()=>p,M9:()=>g,Ot:()=>u,nY:()=>c,p_:()=>m,pl:()=>h});var r=n(51619),s=n(7268),i=n(17050);let a="USD",o=Object.fromEntries(Object.entries(i.vF).map(([e,t])=>[String(t),e.replace(/([a-z0-9])([A-Z])/g,"$1 $2")]));function l(e){if(null!=e)return o[String(e)]??String(e)}function c(e){(0,r.sendGAEvent)("set",{user_id:null==e?null:String(e)})}function d(e,t={}){(0,r.sendGAEvent)("event",e,t)}function u(e){return{item_id:e.ItemId,item_name:e.Material?.Title||`Item ${e.ItemId}`,item_brand:e.Material?.BrandName||e.Store?.Name,item_category:l(e.MaterialTypeId),item_variant:e.ItemVariantId??void 0,affiliation:e.Store?.Name,price:(0,s.un)(e),quantity:e.Quantity}}function m(e,t){return{item_id:e.Id,item_name:e.Title||`Voucher ${e.Id}`,item_category:l(e.TypeId??i.vF.GiftVoucher),affiliation:e.Store?.Name||void 0,item_brand:e.Store?.Name||void 0,price:function(e,t){if(null==e||!Number.isFinite(e))return;let n=Number(t?.ConversionRate??0);return n>0?Number((e/n).toFixed(2)):e}(t,e.Currency),quantity:1}}function p(e){return e.reduce((e,t)=>e+(0,s.bT)(t),0)}function g(e,t,n){return{item_id:e.Id,item_name:e.Title||`Item ${e.Id}`,item_category:l(e.TypeId),item_variant:t?.Id??void 0,affiliation:e.Store?.Name||void 0,price:t?.Price??void 0,quantity:n}}function f(e,t){return{item_id:e.Id,item_name:e.Title||`Item ${e.Id}`,item_brand:e.BrandName||void 0,item_category:l(e.TypeId),item_variant:e.VariantId??void 0,affiliation:e.StoreName||void 0,price:e.SalesPrice??void 0,index:t}}let h={viewItem(e){d("view_item",{currency:a,value:e.price??0,items:[e]})},viewItemList(e,t){e.length&&d("view_item_list",{item_list_name:t,items:e})},selectItem(e,t){d("select_item",{item_list_name:t,items:[e]})},addToCart(e,t){e.length&&d("add_to_cart",{currency:a,value:t,items:e})},removeFromCart(e,t){e.length&&d("remove_from_cart",{currency:a,value:t,items:e})},beginCheckout(e,t){e.length&&d("begin_checkout",{currency:a,value:t,items:e})},viewCart(e,t){e.length&&d("view_cart",{currency:a,value:t,items:e})},addShippingInfo(e,t,n){e.length&&d("add_shipping_info",{currency:a,value:t,shipping_tier:n,items:e})},addPaymentInfo(e,t,n){d("add_payment_info",{currency:a,value:t,payment_type:n,items:e})},purchase(e){d("purchase",{transaction_id:String(e.transactionId),currency:e.currency,value:e.value,items:e.items})},search(e){e.trim()&&d("search",{search_term:e.trim()})},login(e){d("login",{method:e})},signUp(e){d("sign_up",{method:e})}}},10916:(e,t,n)=>{"use strict";n.d(t,{f:()=>r});let r={en:{cookieBanner:{title:"We use cookies",description:"This site uses essential cookies to provide better gifting experience, personalization & features."},consentManagerDialog:{title:"Cookie Preferences",description:"We respect your privacy concerns. Choose which cookies you're okay with, you can change these settings anytime."},common:{acceptAll:"Allow All",rejectAll:"Essential Only",customize:"Modify",save:"Save preferences",close:"Close"},consentTypes:{necessary:{title:"Necessary",description:"Required to keep the site, your account & the current checkout/gifting flow working smoothly."},functionality:{title:"Functionality",description:"Includes core features including product offers & promo availability."},measurement:{title:"Analytics",description:"Helps us understand how Sugary is used so we can improve it."},marketing:{title:"Marketing",description:"Lets us and our ad partners (like Meta) measure and personalize the ads you see."}},legalLinks:{privacyPolicy:"Privacy Policy",cookiePolicy:"Cookie Policy",termsOfService:"Terms of Service"}},ar:{cookieBanner:{title:"ÙØ³ØªØ®Ø¯Ù
Ù
ÙÙØ§Øª تعرÙÙ Ø§ÙØ§Ø±ØªØ¨Ø§Ø·",description:"ÙØ³ØªØ®Ø¯Ù
ÙØ°Ø§ اÙÙ
ÙÙØ¹ Ù
ÙÙØ§Øª تعرÙÙ Ø§ÙØ§Ø±ØªØ¨Ø§Ø· Ø§ÙØ£Ø³Ø§Ø³ÙØ© ÙØªÙدÙÙ
تجربة Ø¥ÙØ¯Ø§Ø¡ Ø£ÙØ¶Ù ÙØªØ®ØµÙص اÙÙ
ÙØ²Ø§Øª."},consentManagerDialog:{title:"ØªÙØ¶ÙÙØ§Øª Ù
ÙÙØ§Øª تعرÙÙ Ø§ÙØ§Ø±ØªØ¨Ø§Ø·",description:"ÙØÙ ÙØØªØ±Ù
Ø®ØµÙØµÙتÙ. اختر Ù
ÙÙØ§Øª تعرÙÙ Ø§ÙØ§Ø±ØªØ¨Ø§Ø· Ø§ÙØªÙ ØªÙØ§Ù٠عÙÙÙØ§Ø ÙÙÙ
ÙÙ٠تغÙÙØ± ÙØ°Ù Ø§ÙØ¥Ø¹Ø¯Ø§Ø¯Ø§Øª Ù٠أ٠ÙÙØª."},common:{acceptAll:"ÙØ¨Ù٠اÙÙÙ",rejectAll:"Ø§ÙØ¶Ø±Ùر٠ÙÙØ·",customize:"تعدÙÙ",save:"ØÙظ Ø§ÙØªÙضÙÙØ§Øª",close:"Ø¥ØºÙØ§Ù"},consentTypes:{necessary:{title:"Ø¶Ø±ÙØ±Ù",description:"Ù
Ø·ÙÙØ¨ ÙØªØ´ØºÙ٠اÙÙ
ÙÙØ¹ ÙØØ³Ø§Ø¨Ù ÙØ¹Ù
ÙÙØ© Ø§ÙØ¯Ùع/Ø§ÙØ¥Ùداء Ø¨Ø³ÙØ§Ø³Ø©."},functionality:{title:"اÙÙØ¸Ø§Ø¦Ù",description:"ÙØ´Ù
٠اÙÙ
ÙØ²Ø§Øª Ø§ÙØ£Ø³Ø§Ø³ÙØ© بÙ
ا Ù٠ذÙÙ Ø¹Ø±ÙØ¶ اÙÙ
ÙØªØ¬Ø§Øª ÙØªÙØ§ÙØ± Ø§ÙØ¹Ø±Ùض Ø§ÙØªØ±ÙÙØ¬ÙØ©."},measurement:{title:"Ø§ÙØªØÙÙÙØ§Øª",description:"ÙØ³Ø§Ø¹Ø¯Ùا عÙÙ ÙÙÙ
ÙÙÙÙØ© استخداÙ
Sugary ØØªÙ ÙØªÙ
ÙÙ Ù
Ù ØªØØ³ÙÙÙ."},marketing:{title:"Ø§ÙØªØ³ÙÙÙ",description:"ÙØªÙØ ÙÙØ§ ÙÙØ´Ø±ÙØ§Ø¦ÙØ§ Ø§ÙØ¥Ø¹ÙاÙÙÙÙ (Ù
ث٠Meta) ÙÙØ§Ø³ ÙØªØ®ØµÙص Ø§ÙØ¥Ø¹ÙØ§ÙØ§Øª Ø§ÙØªÙ ØªØ±Ø§ÙØ§."}},legalLinks:{privacyPolicy:"Ø³ÙØ§Ø³Ø© Ø§ÙØ®ØµÙØµÙØ©",cookiePolicy:"Ø³ÙØ§Ø³Ø© Ù
ÙÙØ§Øª تعرÙÙ Ø§ÙØ§Ø±ØªØ¨Ø§Ø·",termsOfService:"Ø´Ø±ÙØ· Ø§ÙØ®Ø¯Ù
Ø©"}},es:{cookieBanner:{title:"Utilizamos cookies",description:"Este sitio utiliza cookies esenciales para brindar una mejor experiencia de regalos, personalizaci\xf3n y funciones."},consentManagerDialog:{title:"Preferencias de cookies",description:"Respetamos su privacidad. Elija qu\xe9 cookies acepta, puede cambiar esta configuraci\xf3n en cualquier momento."},common:{acceptAll:"Permitir todo",rejectAll:"Solo las necesarias",customize:"Modificar",save:"Guardar preferencias",close:"Cerrar"},consentTypes:{necessary:{title:"Necesarias",description:"Requeridas para que el sitio web, su cuenta y el proceso de compra/regalo funcionen correctamente."},functionality:{title:"Funcionalidad",description:"Incluye funciones principales como ofertas de productos y disponibilidad de promociones."},measurement:{title:"Anal\xedtica",description:"Nos ayuda a entender c\xf3mo se usa Sugary para que podamos mejorarlo."},marketing:{title:"Marketing",description:"Permite que nosotros y nuestros socios publicitarios (como Meta) midan y personalicen los anuncios que ve."}},legalLinks:{privacyPolicy:"Pol\xedtica de privacidad",cookiePolicy:"Pol\xedtica de cookies",termsOfService:"T\xe9rminos del servicio"}}
1,fr:{cookieBanner:{title:"Nous utilisons des cookies",description:"Ce site utilise des cookies essentiels pour offrir une meilleure exp\xe9rience d'envoi de cadeaux, la personnalisation et des fonctionnalit\xe9s."},consentManagerDialog:{title:"Pr\xe9f\xe9rences de cookies",description:"Nous respectons votre vie priv\xe9e. Choisissez les cookies que vous acceptez, vous pouvez modifier ces param\xe8tres \xe0 tout moment."},common:{acceptAll:"Tout autoriser",rejectAll:"N\xe9cessaires uniquement",customize:"Modifier",save:"Enregistrer les pr\xe9f\xe9rences",close:"Fermer"},consentTypes:{necessary:{title:"N\xe9cessaires",description:"N\xe9cessaires au bon fonctionnement du site, de votre compte et du processus de paiement/cadeau."},functionality:{title:"Fonctionnalit\xe9s",description:"Comprend les fonctionnalit\xe9s cl\xe9s, notamment les offres de produits et la disponibilit\xe9 des promotions."},measurement:{title:"Statistiques",description:"Nous aide \xe0 comprendre comment Sugary est utilis\xe9 afin de l'am\xe9liorer."},marketing:{title:"Marketing",description:"Nous permet, ainsi qu'\xe0 nos partenaires publicitaires (comme Meta), de mesurer et de personnaliser les publicit\xe9s affich\xe9es."}},legalLinks:{privacyPolicy:"Politique de confidentialit\xe9",cookiePolicy:"Politique de cookies",termsOfService:"Conditions d'utilisation"}},de:{cookieBanner:{title:"Wir verwenden Cookies",description:"Diese Website verwendet essenzielle Cookies, um ein besseres Geschenkerlebnis, Personalisierung und Funktionen zu bieten."},consentManagerDialog:{title:"Cookie-Einstellungen",description:"Wir respektieren Ihre Privatsph\xe4re. W\xe4hlen Sie, welche Cookies Sie zulassen m\xf6chten. Sie k\xf6nnen diese Einstellungen jederzeit \xe4ndern."},common:{acceptAll:"Alle zulassen",rejectAll:"Nur notwendige",customize:"Anpassen",save:"Einstellungen speichern",close:"Schlie\xdfen"},consentTypes:{necessary:{title:"Notwendig",description:"Erforderlich, damit die Website, Ihr Konto und der Bezahl-/Geschenkvorgang reibungslos funktionieren."},functionality:{title:"Funktionalit\xe4t",description:"Umfasst Kernfunktionen wie Produktangebote und Verf\xfcgbarkeit von Aktionen."},measurement:{title:"Analyse",description:"Hilft uns zu verstehen, wie Sugary genutzt wird, damit wir es verbessern k\xf6nnen."},marketing:{title:"Marketing",description:"Erm\xf6glicht es uns und unseren Werbepartnern (wie Meta), die angezeigte Werbung zu messen und zu personalisieren."}},legalLinks:{privacyPolicy:"Datenschutzrichtlinie",cookiePolicy:"Cookie-Richtlinie",termsOfService:"Nutzungsbedingungen"}}}},11109:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i});var r=n(1934),s=n(31692);let i=(0,r.v)()((0,s.Zr)(e=>({currentGeoPlace:null,initialSelectedPlace:null,onSelectPlaceAction: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}),closePicker:()=>e({isOpen:!1,initialSelectedPlace:null,onSelectPlaceAction:null})}),{name:"delivery-details-storage",partialize:e=>({currentGeoPlace:e.currentGeoPlace,isAddressUnknown:e.isAddressUnknown,isGiftingPlaceBySystem:e.isGiftingPlaceBySystem})}))},12514:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var r=n(95155),s=n(12115);function i({children:e,placeholder:t=null}){let[n,a]=(0,s.useState)(!1);return((0,s.useEffect)(()=>{a(!0)},[]),n)?(0,r.jsx)(r.Fragment,{children:e}):(0,r.jsx)(r.Fragment,{children:t})}},16226:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var r=n(95155),s=n(37206),i=n(12115),a=n(6407);let o=(0,s.default)(()=>Promise.all([n.e(8032),n.e(8905),n.e(9457),n.e(1759),n.e(8619),n.e(4775)]).then(n.bind(n,99313)),{loadableGenerated:{webpack:()=>[99313]},ssr:!1});function l(){let e=(0,a.o)(e=>e.isOpen),[t,n]=(0,i.useState)(!1);return((0,i.useEffect)(()=>{e&&n(!0)},[e]),t)?(0,r.jsx)(o,{}):null}},17050:(e,t,n)=>{"use strict";n.d(t,{Gg:()=>d,JT:()=>g,Ml:()=>p,RX:()=>c,Te:()=>i,ar:()=>r,gz:()=>h,i4:()=>a,li:()=>f,lq:()=>o,mc:()=>x,qc:()=>u,uc:()=>l,vF:()=>m,yV:()=>s});let r="https://sugary.me",s="https://gift.sugary.me",i="[email protected]",a="[email protected]",o="+971567884058",l={PLAY_STORE_LINK:"https://play.google.com/store/apps/details?id=com.app.sugary",APP_STORE_
1LINK:"https://apps.apple.com/app/id6444475666"},c={WHATSAPP:{url:"https://wa.me/971567884058",phone:"+971567884058",label:"WhatsApp"},INSTAGRAM:{url:"https://www.instagram.com/sugary.gifts",label:"Instagram"},MESSENGER:{url:"https://www.facebook.com/sugary.gifting",label:"Messenger"},TELEGRAM:{url:"https://t.me/SugaryGifts",username:"@SugaryGifts",label:"Telegram"}},d={WHATSAPP:"/sugary-web-assets/images/whatsapp.png",INSTAGRAM:"/sugary-web-assets/images/instagram.png",MESSENGER:"/sugary-web-assets/images/messenger.png",TELEGRAM:"/sugary-web-assets/images/telegram.png"},u={Personalize:1,Discuss:2,PreCurated:3,GiftMarket:4,EGift:5,ReadyGift:7},m={CurationProduct:1,Card:2,OuterCraft:3,InnerCraft:4,Addon:5,ECard:6,DigitalCard:7,Gifting:8,Business:9,Collabs:10,Weddings:11,Surprises:12,Gesture:13,ReadyGift:14,GiftMarketProduct:15,EGiftCard:16,GiftVoucher:17,BespokeOrder:18},p={Relationship:"Relationship",Personality:"Personality",Gender:"Gender",Occasion:"Occasion",Vibe:"Vibe",AgeGroup:"AgeGroup",Constraint:"Constraint"},g={Popover:"popover",Page:"page"},f={Most_popular:"Rating",Newly_added:"UpdatedAt",Price:"SalesPrice",Random:"random",Sales_price_in_usd:"SalesPriceInUsd"},h=18,x=191},26250:(e,t,n)=>{"use strict";n.d(t,{R:()=>i,p:()=>s});let r=!1;function s(e){r=e}function i(){return r}},27714:(e,t,n)=>{"use strict";n.d(t,{Hx:()=>a,Rr:()=>o});var r=n(35844),s=n(2125);let i=new Map;function a(e,t){let{fractionDigits:n=2,showSymbol:r=!0,showFree:s=!1,currency:a,ignoreConversion:o=!1}=t,l=r?a?.Symbol??"$":"";if(null==e)return`${l}N/A`;if(s&&0===e)return"FREE";let c=a?.RoundOff?0:n,d=function(e,t,n={}){let{fractionDigits:r=2,ignoreConversion:s=!1}=n,i=s?1:Number(t?.ConversionRate??1),a=t?.RoundOff?0:r;return Number((e*i).toFixed(a))}(e,a,{fractionDigits:n,ignoreConversion:o}),u=(i.has(c)||i.set(c,new Intl.NumberFormat("en-US",{minimumFractionDigits:c,maximumFractionDigits:c})),i.get(c));return l?`${l} ${u.format(d)}`:u.format(d)}async function o(){try{let e=await r.u.get(s.Xv,{cache:"no-store"});return await e.json()}catch{return null}}},28183:(e,t,n)=>{"use strict";n.d(t,{B:()=>r});let r=(0,n(1934).v)(e=>({isOpen:!1,title:void 0,description:void 0,openAppModal:t=>e({isOpen:!0,...t}),closeModal:()=>e({isOpen:!1,title:void 0,description:void 0})}))},29580:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var r=n(95155),s=n(37206),i=n(12115),a=n(11109);let o=(0,s.default)(()=>Promise.all([n.e(8032),n.e(9457),n.e(9e3),n.e(8619),n.e(3553)]).then(n.bind(n,43553)),{loadableGenerated:{webpack:()=>[43553]},ssr:!1});function l(){let e=(0,a.Q)(e=>e.isOpen),[t,n]=(0,i.useState)(!1);return(e&&!t&&n(!0),t)?(0,r.jsx)(o,{}):null}},34417:(e,t,n)=>{"use strict";n.d(t,{ConsentGatedMarketing:()=>l});var r=n(95155),s=n(3655),i=n(65596);function a(){let e="3568257946671867";return e?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.default,{id:"meta-pixel",strategy:"afterInteractive",children:` 2 !function(f,b,e,v,n,t,s) 3 {if(f.fbq)return;n=f.fbq=function(){n.callMethod? 4 n.callMethod.apply(n,arguments):n.queue.push(arguments)}; 5 if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; 6 n.queue=[];t=b.createElement(e);t.async=!0; 7 t.src=v;s=b.getElementsByTagName(e)[0]; 8 s.parentNode.insertBefore(t,s)}(window, document,'script', 9 'https://connect.facebook.net/en_US/fbevents.js'); 10 fbq('init', '${e}'); 11 fbq('track', 'PageView'); 12 `}),(0,r.jsx)("noscript",{children:(0,r.jsx)("img",{height:1,width:1,alt:"",style:{display:"none"},src:`https://www.facebook.com/tr?id=${e}&ev=PageView&noscript=1`})})]}):(0,r.jsx)(r.Fragment,{})}function o(){let e="QN4m9PzuaX4geEuHXQzTo8";if(!e)return null;let t=JSON.stringify(e);return(0,r.jsx)(i.default,{id:"openai-ads-pixel",strategy:"afterInteractive",children:` 13 try { 14 (function (w, d, s, u) { 15 if (w.oaiq) return; 16 var q = function () { q.q.push(arguments); }; 17 q.q = []; 18 w.oaiq = q; 19 var js = d.createElement(s); 20 js.async = true; 21 js.src = u; 22 var f = d.getElementsByTagName(s)[0]; 23 f.parentNode.insertBefore(js, f); 24 })(window, document, "script", "https://bzrcdn.openai.com/sdk/oaiq.min.js"); 25 oaiq("init", { pixelId: ${t} }); 26 oaiq("measure", "page_viewed", { type: "contents" }); 27 } catch (_) {} 28 `})}function l(){let{has:e}=(0,s.l)();return e("marketing")?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a,{}),(0,r.jsx)(o,{})]}):null}},37276:(e,t,n)=>{"use strict";n.d(t,{Ek:()=>p,fp:()=>d,lk:()=>x,lm:()=>h,rs:()=>
28g,u0:()=>u});var r=n(28300),s=n(2125),i=n(17050),a=n(35844);let o="SUGARY_CLIENT_ID",l="SUGARY_SESSION_ID",c="SUGARY_SESSION_TIME",d=()=>{let e=localStorage.getItem(o);return e||(e=(0,r.Z0)(),localStorage.setItem(o,e)),e},u=()=>{let e=localStorage.getItem(l),t=localStorage.getItem(c),n=Date.now();return(!e||!t||n-parseInt(t,10)>18e5)&&(e=(0,r.Z0)(),localStorage.setItem(l,e)),localStorage.setItem(c,n.toString()),e},m=()=>{let e=navigator.userAgent,t="Unknown";-1!==e.indexOf("Win")&&(t="Windows"),-1!==e.indexOf("Mac")&&(t="MacOS"),-1!==e.indexOf("X11")&&(t="UNIX"),-1!==e.indexOf("Linux")&&(t="Linux"),/Android/.test(e)&&(t="Android"),/iPhone|iPad|iPod/.test(e)&&(t="iOS");let n="Desktop";return/Mobile|Android|iP(hone|od)|IEMobile|BlackBerry|Kindle|Silk-Accelerated|(hpw|web)OS|Opera M(obi|ini)/.test(e)?n="Mobile":/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i.test(e)&&(n="Tablet"),{os:t,device:n}},p=async e=>{try{let t={...f(),MetaData:{AdminZone:e.adminZone||null,CityName:e.cityName||null,CountryIso2:e.countryIso2||null,IsOutOfCoverage:e.isOutOfCoverage??null,Latitude:e.latitude??null,Longitude:e.longitude??null,PlaceSearchQuery:e.placeSearchQuery||null,StateName:e.stateName||null}};await a.u.post(s.qY.GIFTING_PLACE_SELECT,t)}catch{}},g=async e=>{try{let{os:t}=m(),n=e.externalSource||null;if(n)try{let e=new URL(n).hostname,t=new URL(i.ar).hostname;e===t&&(n=null)}catch(e){n?.startsWith(i.ar)&&(n=null)}let r={...f(),MetaData:{ExternalSource:n,InternalSource:e.internalSource||null,MaterialId:e.materialId,MaterialTypeId:e.materialTypeId,VariantId:e.variantId||null,ViewPosition:e.viewPosition||null},Os:t};await a.u.post(s.qY.MATERIAL_VIEW,r)}catch{}},f=()=>{let{os:e,device:t}=m();return{ClientId:d(),Device:t,Domain:window.location.host,SessionId:u(),Os:e}},h=async e=>{try{let{os:t}=m(),n=e.externalSource||null,r=e.isDirectLink??!1;if(n)try{let e=new URL(n).hostname,t=new URL(i.ar).hostname;e===t&&(n=null)}catch(e){n?.startsWith(i.ar)&&(n=null)}let o={...f(),MetaData:{ExternalSource:n,InternalSource:e.internalSource||null,IsDirectLink:r,StoreId:e.storeId},Os:t};await a.u.post(s.qY.STORE_VIEW,o)}catch{}},x=async e=>{try{let t={...f(),MetaData:{AdminZone:e.adminZone||null,CityName:e.cityName||null,CountryIso2:e.countryIso2||null,IsNoResultFound:e.isNoResultFound??null,Latitude:e.latitude??null,Longitude:e.longitude??null,Query:e.query||null,StateName:e.stateName||null}};await a.u.post(s.qY.SEARCH_QUERY,t)}catch{}}},44369:(e,t,n)=>{"use strict";n.d(t,{D:()=>o,MarketCurrencyProvider:()=>a});var r=n(95155),s=n(12115);let i=(0,s.createContext)(null);function a({currency:e,children:t}){return(0,r.jsx)(i.Provider,{value:e,children:t})}function o(){return(0,s.useContext)(i)}},45601:(e,t,n)=>{"use strict";n.d(t,{w:()=>r});let r=(0,n(1934).v)((e,t)=>({isOpen:!1,leftCode:!1,resolveCallback:null,openAuthModal:(t=!1)=>{let n="boolean"==typeof t?t:t?.leftCode??!1;return new Promise(t=>{e({isOpen:!0,leftCode:n,resolveCallback:t})})},closeAuthModal:(n=!1)=>{let{resolveCallback:r}=t();r&&r(n),e({isOpen:!1,resolveCallback:null})},isLogoutOpen:!1,logoutResolveCallback:null,openLogoutPopup:()=>new Promise(t=>{e({isLogoutOpen:!0,logoutResolveCallback:t})}),closeLogoutPopup:(n=!1)=>{let{logoutResolveCallback:r}=t();r&&r(n),e({isLogoutOpen:!1,logoutResolveCallback:null})}}))},46360:(e,t,n)=>{"use strict";n.d(t,{default:()=>a});var r=n(12115),s=n(37002),i=n(8946);function a(){let e=(0,s.useGlobalStore)(e=>e.isHydrated),t=(0,s.useGlobalStore)(e=>e.current_user?.Id??null);return(0,r.useEffect)(()=>{e&&(0,i.nY)(t)},[e,t]),null}},46752:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(95155),s=n(5772);function i({width:e=32,height:t=32,className:n=""}){return(0,r.jsx)(s.default,{src:"/sugary-web-assets/icons/icon_rounded.png",alt:"Sugary Icon",width:e,height:t,className:`object-contain ${n}`})}},61549:(e,t,n)=>{"use strict";n.d(t,{Toaster:()=>l});var r=n(95155),s=n(70460),i=n(66609),a=n(96621),o=n(12115);let l=({...e})=>{let{theme:t="system"}=(0,s.D)(),n=(0,a.a)();return(0,o.useEffect)(()=>{let e=e=>{let t=e.target.closest("[data-sonner-toast]");if(t){let e=t.getAttribute("data-sonner-toast");e&&i.oR.dismiss(e)}};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[]),(0,r.jsx)(i.l$,{theme:t,className:"toaster group",position:n?"top-center":"bottom-left",expand:!1,style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},toastOptions:{classNames:{toast:"group bg-background text-foreground border-border shadow-lg "+(n?"!bg_secondary !text-sm !rounded-full !py-2 !px-4 !h-auto !min-h-0 !w-fit !mx-auto !mt-4 !border-none
28!flex !items-center !justify-center !text-white":""),description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})}},62756:(e,t,n)=>{"use strict";n.d(t,{$_:()=>o,UJ:()=>u,Xd:()=>i});var r=n(8946),s=n(26250);let i=()=>"function"==typeof window.fbq&&(0,s.R)();function a(e,t,n){i()&&(n?window.fbq("track",e,t,{eventID:n}):window.fbq("track",e,t))}function o(){a("PageView")}function l(e){return e.map(e=>String(e.item_id))}function c(e){return e.map(e=>({id:String(e.item_id),quantity:e.quantity??1,...null!=e.price&&{item_price:e.price}}))}function d(e){return e.reduce((e,t)=>e+(t.quantity??1),0)}let u={viewContent(e,t){a("ViewContent",{content_ids:[String(e.item_id)],contents:c([e]),content_name:e.item_name,content_type:"product",value:t,currency:r.$x})},search(e){e.trim()&&a("Search",{search_string:e.trim()})},addToCart(e,t){e.length&&a("AddToCart",{content_ids:l(e),contents:c(e),content_type:"product",value:t,currency:r.$x})},initiateCheckout(e,t){e.length&&a("InitiateCheckout",{content_ids:l(e),contents:c(e),content_type:"product",num_items:d(e),value:t,currency:r.$x})},addPaymentInfo(e,t){a("AddPaymentInfo",{content_ids:l(e),contents:c(e),content_type:"product",value:t,currency:r.$x})},purchase(e){a("Purchase",{content_ids:l(e.items),contents:c(e.items),content_type:"product",num_items:d(e.items),value:e.value,currency:e.currency},`purchase_${e.transactionId}`)},completeRegistration(e){a("CompleteRegistration",{content_name:e,status:!0})}}},62795:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(1934),s=n(93111),i=n(37002),a=n(45601);let o=(0,r.v)((e,t)=>({isOpen:!1,targetStoreId:null,targetRoomId:null,openDrawer:async t=>{let{current_user:n,token:r}=i.useGlobalStore.getState();(null!=n&&!n.IsGuest&&null!=r||await a.w.getState().openAuthModal())&&e({isOpen:!0,targetStoreId:t?.storeId??null,targetRoomId:t?.roomId??null})},closeDrawer:()=>{s.L.getState().cleanupEmptyRooms(),e({isOpen:!1,targetStoreId:null,targetRoomId:null})},toggleDrawer:async()=>{let{isOpen:e}=t();e?t().closeDrawer():await t().openDrawer()}}))},66872:()=>{},68477:(e,t,n)=>{"use strict";n.d(t,{G:()=>a,v:()=>o});var r=n(37002),s=n(35927),i=n(27714);async function a(e){try{let t=await (0,s.wz)();e(r.X.CurrentUser,t)}catch{}}async function o(e){try{let t=await (0,i.Rr)();t&&e(r.X.Currency,t)}catch{}}},74350:(e,t,n)=>{"use strict";n.d(t,{Cf:()=>u,HM:()=>c,L3:()=>p,ZJ:()=>l,c7:()=>m,lG:()=>a,rr:()=>g,zM:()=>o});var r=n(95155);n(12115);var s=n(52060),i=n(91337);function a({...e}){return(0,r.jsx)(s.bL,{"data-slot":"dialog",...e})}function o({...e}){return(0,r.jsx)(s.l9,{"data-slot":"dialog-trigger",...e})}function l({...e}){return(0,r.jsx)(s.ZL,{"data-slot":"dialog-portal",...e})}function c({...e}){return(0,r.jsx)(s.bm,{"data-slot":"dialog-close",...e})}function d({className:e,...t}){return(0,r.jsx)(s.hJ,{"data-slot":"dialog-overlay",className:(0,i.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-[1000000] bg-black/60 backdrop-blur-md shadow-xl",e),...t})}function u({className:e,children:t,disableAnimation:n,overlayClassName:a,...o}){return(0,r.jsxs)(l,{"data-slot":"dialog-portal",children:[(0,r.jsx)(d,{className:(0,i.cn)(n?"!animate-none !duration-0":"",a)}),(0,r.jsx)(s.UC,{"data-slot":"dialog-content",className:(0,i.cn)("bg_secondary data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed top-[50%] left-[50%] z-[1000000] grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-100 sm:max-w-lg",n?"!animate-none !duration-0":"",e),...o,children:t})]})}function m({className:e,...t}){return(0,r.jsx)("div",{"data-slot":"dialog-header",className:(0,i.cn)("flex flex-col gap-2 text-center sm:text-left",e),...t})}function p({className:e,...t}){return(0,r.jsx)(s.hE,{"data-slot":"dialog-title",className:(0,i.cn)("text-lg leading-none font-semibold",e),...t})}function g({className:e,...t}){return(0,r.jsx)(s.VY,{"data-slot":"dialog-description",className:(0,i.cn)("text-muted-foreground text-sm",e),...t})}}
28,75602:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var r=n(95155),s=n(37206),i=n(12115),a=n(62795);let o=(0,s.default)(()=>Promise.all([n.e(4471),n.e(8905),n.e(1053),n.e(5435),n.e(9415),n.e(8207),n.e(4320),n.e(2272),n.e(3184)]).then(n.bind(n,42383)),{loadableGenerated:{webpack:()=>[42383]},ssr:!1});function l(){let e=(0,a.c)(e=>e.isOpen),[t,n]=(0,i.useState)(!1);return((0,i.useEffect)(()=>{e&&n(!0)},[e]),t)?(0,r.jsx)(o,{}):null}},89688:(e,t,n)=>{"use strict";n.d(t,{GlobalStoreProvider:()=>d});var r=n(95155),s=n(12115),i=n(37002),a=n(15217),o=n(29407),l=n(80969),c=n(68477);function d({children:e}){let t=(0,i.useGlobalStore)(e=>e.hydrate),n=(0,i.useGlobalStore)(e=>e.setField),u=(0,s.useRef)(!1);return(0,s.useEffect)(()=>{let e;if(u.current)return;u.current=!0;let r=(0,a.ok)(o.F.TOKEN),s=(0,a.ok)(o.F.CURRENCY);t({[i.X.Token]:r,[i.X.TokenExpiresAt]:(0,a.ok)(o.F.TOKEN_EXPIRES_AT),[i.X.CurrentUser]:(0,a.ok)(o.F.USER_DATA),[i.X.GiftingPlace]:(0,a.ok)(o.F.GIFTING_PLACE),[i.X.GiftingDate]:(0,a.ok)(o.F.GIFTING_DATE),[i.X.Currency]:s}),e=()=>{r&&(0,c.G)(n),s||(0,c.v)(n)},"requestIdleCallback"in window?requestIdleCallback(e,{timeout:2e3}):setTimeout(e,1)},[t,n]),!function(){let{fetchBasket:e}=(0,l.M)(),t=(0,i.useGlobalStore)(e=>e.giftingPlace),n=(0,i.useGlobalStore)(e=>e.current_user?.Id),r=(0,s.useRef)(null);(0,s.useEffect)(()=>{if(i.useGlobalStore.getState().isHydrated)return r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{e()},300),()=>{r.current&&clearTimeout(r.current)}},[t,n,e])}(),(0,r.jsx)(r.Fragment,{children:e})}},91174:(e,t,n)=>{"use strict";n.d(t,{ChunkErrorListener:()=>s});var r=n(12115);function s(){return(0,r.useEffect)(()=>{let e=e=>{let t=e instanceof ErrorEvent?e.message:e.reason?.message||e.reason;if("string"==typeof t&&(t.includes("ChunkLoadError")||t.includes("Loading chunk"))){let e="last-chunk-reload-timestamp",t=sessionStorage.getItem(e),n=Date.now();(!t||n-parseInt(t,10)>1e4)&&(sessionStorage.setItem(e,n.toString()),window.location.reload())}};return window.addEventListener("error",e),window.addEventListener("unhandledrejection",e),()=>{window.removeEventListener("error",e),window.removeEventListener("unhandledrejection",e)}},[]),null}},91337:(e,t,n)=>{"use strict";n.d(t,{cn:()=>i});var r=n(29722),s=n(622);function i(...e){return(0,s.QP)((0,r.$)(e))}},92063:(e,t,n)=>{"use strict";n.d(t,{ConsentManager:()=>d});var r=n(95155),s=n(37206),i=n(18981),a=n(2693);let o={colors:{primary:"#ffffff",primaryHover:"rgba(255, 255, 255, 0.85)",surface:"#1a1a1c",surfaceHover:"rgba(255, 255, 255, 0.04)",border:"rgba(255, 255, 255, 0.1)",borderHover:"rgba(255, 255, 255, 0.2)",text:"#ffffff",textMuted:"rgba(255, 255, 255, 0.55)",textOnPrimary:"#0a0a0a",overlay:"rgba(0, 0, 0, 0.6)",switchTrack:"rgba(255, 255, 255, 0.15)",switchTrackActive:"#ffffff",switchThumb:"#0a0a0a"},dark:{primary:"#ffffff",primaryHover:"rgba(255, 255, 255, 0.85)",surface:"#1a1a1c",surfaceHover:"rgba(255, 255, 255, 0.04)",border:"rgba(255, 255, 255, 0.1)",borderHover:"rgba(255, 255, 255, 0.2)",text:"#ffffff",textMuted:"rgba(255, 255, 255, 0.55)",textOnPrimary:"#0a0a0a",overlay:"rgba(0, 0, 0, 0.6)",switchTrack:"rgba(255, 255, 255, 0.15)",switchTrackActive:"#ffffff",switchThumb:"#0a0a0a"},typography:{fontFamily:"var(--font-bricolage), var(--font-cairo), sans-serif",fontSize:{sm:"14px",base:"15px",lg:"16px"}},spacing:{xs:"6px",sm:"10px",md:"16px",lg:"24px",xl:"32px"},radius:{sm:"10px",md:"14px",lg:"22px",full:"9999px"},shadows:{lg:"0 20px 60px rgba(0, 0, 0, 0.45)"},consentActions:{default:{variant:"neutral",mode:"stroke"},accept:{variant:"primary",mode:"filled"},reject:{variant:"neutral",mode:"stroke"},customize:{variant:"neutral",mode:"ghost"}},slots:{consentBanner:"fixed inset-x-0 bottom-0 z-[1000000] pointer-events-none flex items-end justify-end px-4 pb-[calc(1rem+env(safe-area-inset-bottom))] sm:px-6 sm:pb-[calc(1.5rem+env(safe-area-inset-bottom))]",consentBannerCard:"pointer-events-auto w-full max-w-full md:max-w-xl rounded-[28px] border border-white/10 bg-[#0e0e0f]/60 shadow-2xl backdrop-blur-xl min-h-[220px] pt-3 flex flex-col select-none",consentBannerHeader:"px-6 pt-[30px] sm:px-7 sm:pt-7",consentBannerTitle:"font-montas font-bold text-white pb-2 !text-[23px] sm:!text-[25px] pb-5",consentBannerDescription:"mt-1.5 leading-relaxed text-white/55 !text-[16
28px]",consentBannerFooter:"flex flex-nowrap items-center gap-2 px-5 pb-5 pt-3 sm:px-7 sm:pb-5",consentBannerFooterSubGroup:"flex flex-nowrap items-center gap-2 w-full",consentBannerTag:"hidden",consentDialogCard:"w-full max-w-lg rounded-[28px] border border-white/10 bg-[#1a1a1c] shadow-2xl min-h-[400px] py-4 flex flex-col justify-center select-none",consentDialogHeader:"px-6 pt-6 sm:px-7 sm:pt-7",consentDialogTitle:"font-bricolage font-bold text-white",consentDialogDescription:"mt-1.5 leading-relaxed text-white/55",consentDialogContent:"px-6 sm:px-7",consentDialogFooter:"px-6 pb-6 sm:px-7 sm:pb-7",consentDialogTag:"hidden",consentWidgetFooter:"flex flex-wrap gap-2.5 px-0 pb-6 pt-4",consentWidgetFooterSubGroup:"flex flex-wrap gap-2.5",consentWidgetTag:"hidden",buttonPrimary:"rounded-full h-[50px] !px-6 sm:!px-8 text-white font-bold bg-gradient-to-r from-[#004128] to-[#006531] hover:scale-105 active:scale-95 transition-transform duration-150 ease-out shadow-lg uppercase !text-[13px] sm:!text-[13px] border border-white/15 whitespace-nowrap",buttonSecondary:"!rounded-full h-[50px] bg-white/3 border border-white/5 text-white/70 hover:bg-white/10 font-medium !px-5 sm:!px-6 !text-[14px] sm:!text-[14px] transition-all duration-150 ease-out active:scale-95 whitespace-nowrap",toggle:"data-[state=checked]:bg-white"}};var l=n(10916);let c=(0,s.default)(()=>Promise.all([n.e(3648),n.e(8758),n.e(1023),n.e(1622)]).then(n.bind(n,41622)),{loadableGenerated:{webpack:()=>[41622]},ssr:!1});function d({children:e}){let t=(0,a.n)(e=>e.language);return(0,r.jsxs)(i.x,{options:{mode:"offline",consentCategories:["necessary","functionality","measurement","marketing"],colorScheme:"dark",theme:o,overrides:{language:t},i18n:{messages:l.f,locale:t,detectBrowserLanguage:!1},legalLinks:{privacyPolicy:{href:"/privacy",target:"_self"},cookiePolicy:{href:"/cookies",target:"_self"},termsOfService:{href:"/terms",target:"_self"}}},children:[(0,r.jsx)(c,{language:t},t),e]},t)}},93111:(e,t,n)=>{"use strict";n.d(t,{L:()=>p});var r=n(1934),s=n(2125),i=n(35844),a=n(37002);async function o(e,t){try{let n=await i.u.get(`${s.VR.CREATE_ROOM}?storeId=${e}&userId=${t}`),r=await n.json();return r?.Data??r??null}catch(e){return console.error("Failed to create chat room:",e),null}}var l=n(15217),c=n(29407);let d=null,u=async()=>(d||(d=await n.e(3522).then(n.bind(n,73522))),d),m=new Set,p=(0,r.v)((e,t)=>({rooms:[],messages:[],selectedRoomId:null,connection:null,isConnected:!1,isLoading:!1,isLoadingOlderMessages:!1,hasOlderMessages:!0,autoTranslate:!1,setAutoTranslate:t=>{(0,l.setClientCookie)(c.F.CHAT_AUTO_TRANSLATE,t,365),e({autoTranslate:t})},hydrateAutoTranslate:()=>{let t=(0,l.ok)(c.F.CHAT_AUTO_TRANSLATE);null!==t&&e({autoTranslate:!0===t||"true"===t})},addRoom:n=>{let{rooms:r}=t();r.some(e=>e.Id===n.Id)||e({rooms:[n,...r]})},setSelectedRoomId:t=>e({selectedRoomId:t}),cleanupEmptyRooms:()=>e(e=>({rooms:e.rooms.filter(e=>!!e.LastMessageText||!!e.LastMessageSentAt)})),fetchRooms:async(n=0,r=20,a="")=>{0===t().rooms.length&&e({isLoading:!0});try{let t=a?encodeURIComponent(a.trim()):"",o=await i.u.get(`${s.VR.GET_ROOMS}?skip=${n}&limit=${r}&search=${t}`),l=await o.json(),c=Array.isArray(l)?l:l.Data??[];return 0===n?e(e=>{if(!a){let t=new Set(c.map(e=>e.Id));return{rooms:[...e.rooms.filter(e=>!t.has(e.Id)),...c]}}return{rooms:c}}):e(e=>({rooms:[...e.rooms,...c]})),c}catch(e){return console.error("Failed to fetch chat rooms:",e),[]}finally{e({isLoading:!1})}},fetchMessages:async(n,r=null)=>{let a=null!==r;if(a)e({isLoadingOlderMessages:!0});else{let r=t().messages;t().selectedRoomId===n&&r.length>0&&r[0]?.StoreChatRoomId===n||e({isLoading:!0,messages:[],hasOlderMessages:!0})}try{let t=`${s.VR.GET_MESSAGES}?roomId=${n}`+(r?`&firstMessageId=${r}`:""),o=await i.u.get(t),l=await o.json(),c=Array.isArray(l)?l:l.Data??[];c=[...c].reverse(),a?0===c.length?e({hasOlderMessages:!1}):e(e=>({messages:[...c,...e.messages]})):(e({messages:c}),0===c.length&&e({hasOlderMessages:!1}))}catch(e){console.error("Failed to fetch messages:",e)}finally{e({isLoading:!1,isLoadingOlderMessages:!1})}},sendMessage:async(e,n,r)=>{let{current_user:o}=a.useGlobalStore.getState();if(o)try{let a={Id:0,StoreChatRoomId:e,Text:n,Type:r?"BESPOKE_ORDER":"TEXT",SenderId:o.Id,SentAt:new Date().toISOString().split(".")[0]+"Z",ImagePath:null,ImageWidth:null,ImageHeight:null,ByteSize:null,IsError:!1,...r?{IntV
28alueA:r}:{}},l=await i.u.post(s.VR.SEND_MESSAGE,a),c=await l.json(),d=c?.Data??c;d?.Id&&t().addMessage(d)}catch(e){console.error("Failed to send message:",e)}},addMessage:n=>{let{messages:r}=t();r.some(e=>e.Id===n.Id)||(e({messages:[...r,n]}),e(e=>({rooms:e.rooms.map(e=>e.Id===n.StoreChatRoomId?{...e,LastMessageText:n.Text,LastMessageSentAt:n.SentAt}:e)})))},joinRoom:async e=>{let{connection:n}=t();if(n&&n.state===d?.HubConnectionState.Connected&&!m.has(e))try{await n.invoke("JoinRoom",e),m.add(e)}catch(t){console.error("Failed to join room:",e,t)}},startChat:async e=>{let n=t=>t.find(t=>t.StoreId?.toString()===e||t.Id?.toString()===e||t.StoreUid&&t.StoreUid.toLowerCase()===e.toLowerCase()),r=n(t().rooms);if(r)return r.Id;await t().fetchRooms();let s=n(t().rooms);if(s)return s.Id;let{current_user:i}=a.useGlobalStore.getState();if(i&&e){let n=await o(e,i.Id);if(n&&n.Id)return t().addRoom(n),n.Id}return console.warn(`No chat room found for storeId="${e}"`),null},initializeConnection:async n=>{let r,i,a;if(t().connection)return;try{({HubConnectionBuilder:r,LogLevel:i}=await u())}catch(e){console.warn("Failed to load SignalR module:",e);return}let o="https://api.sugary.ae".replace(/\/+$/,"");try{a=new r().withUrl(`${o}${s.Zf}`,{accessTokenFactory:()=>n,withCredentials:!1}).withAutomaticReconnect().configureLogging(i.Warning).build()}catch(e){console.warn("Failed to build SignalR connection:",e);return}a.on("ReceiveMessage",n=>{try{let r=Array.isArray(n)?n[0]:n,s="string"==typeof r?JSON.parse(r):r,{messages:i,selectedRoomId:a}=t();if(i.some(e=>e.Id===s.Id))return;s.StoreChatRoomId===a&&e({messages:[...i,s]}),e(e=>({rooms:e.rooms.map(e=>e.Id===s.StoreChatRoomId?{...e,LastMessageText:s.Text,LastMessageSentAt:s.SentAt}:e)}))}catch(e){console.error("Error processing incoming message:",e)}}),a.onreconnected(async()=>{m.clear();let{rooms:e,selectedRoomId:n}=t();for(let n of e)await t().joinRoom(n.Id);n&&await t().joinRoom(n)});try{for(let n of(await a.start(),console.log("â
Connected to Chat Hub"),e({connection:a,isConnected:!0}),t().rooms))await t().joinRoom(n.Id)}catch(t){console.warn("SignalR Connection Error:",t),e({isConnected:!1})}},disconnect:()=>{let{connection:n}=t();n&&(n.stop(),m.clear(),e({connection:null,isConnected:!1}))}}))},93934:(e,t,n)=>{"use strict";n.d(t,{ConsentModeSync:()=>l});var r=n(12115),s=n(3655),i=n(26250),a=n(2123);let o={ad_storage:"marketing",ad_user_data:"marketing",ad_personalization:"marketing",analytics_storage:"measurement",functionality_storage:"functionality",personalization_storage:"functionality",security_storage:"necessary"};function l(){let{has:e,consentInfo:t}=(0,s.l)(),n=e("measurement"),l=e("marketing"),c=e("functionality"),d=t?.time??null;return(0,r.useEffect)(()=>{var e;if((0,i.p)(l),(0,a.qY)(l),null==d||"function"!=typeof window.gtag)return;let t={necessary:!0,functionality:c,measurement:n,marketing:l};window.gtag("consent","update",(e=e=>t[e],Object.fromEntries(Object.entries(o).map(([t,n])=>[t,e(n)?"granted":"denied"])))),d>=performance.timeOrigin&&window.dataLayer?.push({event:"consent_update"})},[d,n,l,c]),null}},94245:(e,t,n)=>{"use strict";n.d(t,{GlobalAuthPopover:()=>j});var r=n(95155),s=n(12115),i=n(91337);function a({className:e,...t}){return(0,r.jsx)("div",{"data-slot":"card-content",className:(0,i.cn)("px-6",e),...t})}var o=n(96621),l=n(74937),c=n(74350),d=n(6296),u=n(33210),m=n(94290),p=n(41313),g=n(2693),f=n(82464),h=n(45601),x=n(46752),b=n(41455),y=n(57243),w=n(35927),v=n(37206),S=n(17050);let _=(0,v.default)(()=>Promise.all([n.e(9415),n.e(9534)]).then(n.bind(n,9534)),{loadableGenerated:{webpack:()=>[9534]},ssr:!1,loading:()=>(0,r.jsx)("div",{className:"w-full h-[300px] flex items-center justify-center",children:(0,r.jsx)(d.A,{className:"animate-spin text-white/40",size:24})})});function j(){let{language:e}=(0,g.n)(),t=f.P[e],n=(0,o.a)(),i=(0,y.xP)(),v=(0,b.rd)(),j=(0,b.a8)(),{isOpen:k,leftCode:N,closeAuthModal:I,isLogoutOpen:A,closeLogoutPopup:P}
28=(0,h.w)(),[C,E]=(0,s.useState)(!1),[T,R]=(0,s.useState)(!1);(0,s.useEffect)(()=>{k&&R(!0)},[k]);let O=()=>{I(!0),"/"===j&&v.push("/home")};(0,s.useEffect)(()=>{i&&(k||A?i.stop():i.start())},[k,A,i]);let M=async()=>{E(!0);try{await (0,w.y4)()}finally{E(!1),P(!0),v.push("/home")}},L=()=>{C||P(!1)};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.lG,{open:k,onOpenChange:e=>{e||I(!1)},children:(0,r.jsxs)(c.Cf,{disableAnimation:!0,className:`w-full ${N?"sm:max-w-[600px] md:max-w-[800px] md:h-[600px]":"sm:max-w-md"} p-0 border border-white/5 shadow-2xl bg-[#131313] overflow-hidden rounded-[30px]`,children:[(0,r.jsx)(c.L3,{className:"hidden",children:t.auth.sign_in}),(0,r.jsx)("button",{onClick:()=>I(!1),className:"absolute top-4 right-4 p-[12px] rounded-full bg-[#1A1A1A] hover:bg-white/10 transition-all duration-200 z-50 cursor-pointer",children:(0,r.jsx)(u.A,{strokeWidth:4,size:14,className:"text-white"})}),T?N&&!n?(0,r.jsxs)("div",{className:"flex flex-col md:flex-row w-full md:h-[600px] min-h-[600px] bg-[#131313] overflow-hidden",children:[(0,r.jsxs)("div",{className:"w-full md:w-[50%] bg-[#1A1A1A] p-4 flex md:flex-col flex-row justify-between items-center text-center relative border-r border-white/5 rounded-[30px]",children:[(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center my-auto",children:[(0,r.jsxs)("div",{className:"relative bg-[#131313] p-4 sm:p-8 rounded-[20px] sm:rounded-[30px] w-[140px] h-[140px] sm:w-[250px] sm:h-[250px] flex items-center justify-center mt-2 sm:mt-4",children:[(0,r.jsx)("div",{className:"absolute -top-4 -right-4 w-9 h-9 sm:-top-8 sm:-right-6 sm:w-14 sm:h-14 select-none pointer-events-none hover:scale-110 transition-transform z-20",children:(0,r.jsx)(l.A,{loading:"eager",priority:!0,alt:"10% OFF",src:"/sugary-web-assets/images/10-percent.webp",fill:!0,style:{objectFit:"contain"},className:"object-contain"})}),(0,r.jsx)("div",{className:"relative w-full h-full",children:(0,r.jsx)(l.A,{loading:"eager",priority:!0,alt:"Sugary QR",src:"/sugary-web-assets/images/sugary-qr.svg",fill:!0,style:{objectFit:"contain"},className:"object-contain"})})]}),(0,r.jsxs)("div",{className:"hidden md:flex items-center gap-4 bg-[#131313] px-6 h-[50px] rounded-[18px] mt-6",children:[(0,r.jsx)("div",{className:"flex items-center gap-0.5",children:[1,2,3,4,5].map(e=>(0,r.jsx)(m.A,{size:14,className:"fill-[#F59E0B] text-[#F59E0B]"},e))}),(0,r.jsx)("span",{className:"text-[12px] text-white/50 font-semibold",children:t.auth.rating_by_users})]})]}),(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center mr-8 md:mr-0 gap-2",children:[(0,r.jsxs)("div",{className:"flex md:hidden items-center gap-1.5 bg-[#131313] px-3 h-[36px] rounded-[12px] mb-3",children:[(0,r.jsx)("div",{className:"flex items-center gap-0.5",children:[1,2,3,4,5].map(e=>(0,r.jsx)(m.A,{size:14,className:"w-[10px] h-[10px] fill-[#F59E0B] text-[#F59E0B]"},e))}),(0,r.jsx)("span",{className:"text-[10px] text-white/50 font-semibold",children:t.auth.rating_by_users})]}),(0,r.jsx)("p",{className:"text-white font-bricolage text-sm sm:text-lg mb-2 font-thin max-w-[130px] sm:max-w-[200px]",children:t.auth.order_app_pitch}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-2 sm:gap-3 w-full mt-2",children:[(0,r.jsxs)("a",{href:S.uc.APP_STORE_LINK,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-1.5 sm:gap-2 h-[40px] sm:h-[50px] px-3 sm:px-6 rounded-full bg-white/10 hover:bg-white/20 text-white font-bricolage text-[9px] sm:text-sm font-bold uppercase tracking-wider transition-all duration-300 shadow-md border border-white/5 cursor-pointer",children:[(0,r.jsx)("div",{className:"relative w-[12px] h-[12px] sm:w-[18px] sm:h-[18px] flex-shrink-0",children:(0,r.jsx)(l.A,{src:"/sugary-web-assets/icons/apple.svg",alt:"App Store",fill:!0,style:{objectFit:"contain"},className:"object-contain text-white"})}),(0,r.jsx)("span",{children:t.auth.app_store})]}),(0,r.jsxs)("a",{href:S.uc.PLAY_STORE_LINK,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-1.5 sm:gap-2 h-[40px] sm:h-[50px] px-3 sm:px-6 rounded-full bg-white/10 hover:bg-white/20 text-white font-bricolage text-[9px] sm:text-sm font-bold uppercase tracking-wider transition-all duration-300 shadow-md border border-white/5 cursor-pointer",children:[(0,r.jsx)("div",{className:"relative w-[12px] h-[12px] sm:w-[18px] sm:h-[18px] flex-shrink-0",children:(0,r.jsx)(l.A,{src:"/sugary-web-assets/icons/android.svg",alt:"Play Store",fill:!0,style:{objectFit:"contain"},className:"object-contain"})}),(0,r.jsx)("span",{children:t.auth.play_store})]})]})]})]}),(0,r.jsx)("div",{className:"w-full md:w-[50%] bg-[#131313] md:h-full overflow-y-auto scrollbar-hide flex flex-col",children:(0,r.jsxs)("div",{className:"w-full p-4 py-1 md:p-6 my-auto flex flex-col items-center justify-center",children:[(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center mx-auto mb-4 md:mb-6",children:[(0,r.jsx)("div",{className:"relative mb-3",children:(0,r.jsx)(x.A,{width:75,height:75})}),(0,r.jsx)("h3",{className:"text-white text-2xl md:text-xl font-bold font-bricolage tracking-tight mb-1 text-center",children:t.auth.welcome_back}),(0,r.jsx)("p",{className:"text-white/40 text-sm text-center leading-none",children:t.auth.sign_in_subtitle})]}),(0,r.jsx)(a,{className:`${n?"px-0":"px-2"} w-full`,children:(0,r.jsx)(_,{onSuccess:O,redirection:!1,showMerchantButton:!0})})]})})]}):(0,r.jsxs)("div",{className:"p-8 w-full flex flex-col items-center justify-center bg-[#131313]",children:[(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center mx-auto mb-8",children:[(0,r.jsx)("div",{className:"relative mb-3",children:(0,r.jsx)(x.A,{width:75,height:75})}),(0,r.jsx)("h3",{className:"text-white text-2xl md:text-xl font-bold font-bricolage tracking-tight mb-1 text-center",children:t.auth.welcome_back}),(0,r.jsx)("p",{className:"text-white/40 text-sm font-bricolage text-center leading-none",children:t.auth.sign_in_subtitle})]}),(0,r.jsx)(a,{className:`${n?"px-0":"px-2"} w-full`,children:(0,r.jsx)(_,{onSuccess:O,redirection:!1})})]}):null]})}),(0,r.jsx)(c.lG,{open:A,onOpenChange:e=>{e||L()},children:(0,r.jsxs)(c.Cf,{disableAnimation:!0,className:"w-full sm:max-w-[380px] p-0 border border-white/5 shadow-2xl bg-[#131313] overflow-hidden rounded-[30px]",children:[(0,r.jsx)(c.L3,{className:"hidden",children:t?.auth?.logout_title??"Log Out"}),(0,r.jsx)("button",{onClick:L,disabled:C,className:"absolute top-4 right-4 p-[12px] rounded-full bg-[#1A1A1A] hover:bg-white/10 transition-all duration-200 z-50 cursor-pointer disabled:opacity-30 disabled:cursor-not-allowed",children:(0,r.jsx)(u.A,{strokeWidth:4,size:14,className:"text-white"})}),(0,r.jsxs)("div",{className:"p-8 w-full flex flex-col items-center justify-center bg-[#131313]",children:[(0,r.jsx)("div",{className:"flex items-center justify-center w-16 h-16 rounded-full bg-[#1A1A1A] mb-5",children:(0,r.jsx)(p.A,{size:22,className:"text-white/70",strokeWidth:2})}),(0,r.jsx)("h3",{className:"text-white text-[22px] md:text-xl font-bold font-bricolage tracking-tight mb-2 text-center",children:t.auth.logout_title}),(0,r.jsx)("p",{className:"text-white/40 text-xl md:text-sm text-center leading-snug mb-8 max-w-[260px]",children:t.auth.logout_subtitle}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-3 w-full",children:[(0,r.jsx)("button",{onClick:L,disabled:C,className:"h-[48px] rounded-full bg-white/10 hover:bg-white/20 text-white font-bricolage text-lg md:text-sm font-bold transition-all duration-300 disabled:opacity-40 disabled:cursor-not-allowed cursor-pointer",children:t.auth.cancel}),(0,r.jsx)("button",{onClick:M,disabled:C,className:"h-[48px] rounded-full bg-red-500/90 hover:bg-red-500 text-white font-bricolage text-lg md:text-sm font-bold transition-all duration-300 disabled:opacity-70 disabled:cursor-not-allowed cursor-pointer flex items-center justify-center gap-2",children:C?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.A,{size:14,className:"animate-spin"}),t.auth.logging_out]}
28):t.auth.confirm_logout})]})]})]})})]})}}},e=>{e.O(0,[7513,5662,7807,6558,8409,7138,8468,5772,1619,1957,2872,2974,3887,8441,3794,7358],()=>e(e.s=7635)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.