PageSourceSearch

https://sugary.me/_next/static/chunks/app/%5Blang%5D/layout-757ce730239774aa.js

js sugary.me collected 2026-10-01 14:20:05 UTC 76,286 bytes, 28 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5160],{2123:(e,t,i)=>{"use strict";i.d(t,{Tq:()=>c,qY:()=>l});var n=i(26250);function a(){let e=window.oaiq;return"function"==typeof e?e:null}function r(e,t){if(Number.isFinite(e)&&!(e<0))try{let i=t.trim().toUpperCase(),n=new Intl.NumberFormat("en",{style:"currency",currency:i}).resolvedOptions().maximumFractionDigits??2;return Math.round(e*10**n)}catch{return}}function o(e,t,i="USD"){let n,a=i.trim().toUpperCase(),s=null==t?void 0:r(t,a);return{type:"contents",...null!=s&&{amount:s,currency:a},...e.length>0&&{contents:(n=a.trim().toUpperCase(),e.map(e=>{let t=null==e.price?void 0:r(e.price,n),i=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!=i&&{quantity:i},...null!=t&&{amount:t,currency:n}}}))}}}function s(e,t,i){if((0,n.R)())try{let n=a();if(!n)return;i?n("measure",e,t,i):n("measure",e,t)}catch{}}function l(e){try{a()?.("consent",e)}catch{}}let c={pageViewed(){s("page_viewed",{type:"contents"})},viewContent(e){s("contents_viewed",o([e],e.price,"USD"))},itemsAdded(e,t){e.length&&s("items_added",o(e,t,"USD"))},checkoutStarted(e,t){e.length&&s("checkout_started",o(e,t,"USD"))},orderCreated(e){s("order_created",o(e.items,e.value,e.currency),{event_id:`order_${e.transactionId}`})},registrationCompleted(){s("registration_completed",{type:"customer_action"})}}},2191:(e,t,i)=>{"use strict";i.d(t,{OpenInAppModal:()=>g});var n=i(95155),a=i(74350),r=i(74937),o=i(33210),s=i(41455),l=i(2693),c=i(23591),d=i(28183),u=i(96621),m=i(17050);let p=`${"https://d1wh1xji6f82aw.cloudfront.net/".replace(/\/$/,"")}/WebImages`;function g(){let{isOpen:e,closeModal:t,title:i,description:g}=(0,d.B)(),{language:f}=(0,l.n)(),h=c.P[f],y=(0,u.a)();return(0,n.jsx)(a.lG,{open:e,onOpenChange:t,children:(0,n.jsxs)(a.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,n.jsx)(a.L3,{className:"sr-only",children:"Open in the Sugary app"}),(0,n.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,n.jsx)(o.A,{size:20,className:"text-white/70"})}),(0,n.jsxs)("div",{className:"relative p-6 flex flex-col items-center justify-center text-center gap-6",children:[(0,n.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,n.jsx)("h2",{className:"text-xl font-bricolage font-bold text_gray_70 tracking-tight",children:i||h.openApp.get_full_access}),(0,n.jsx)("p",{className:"text_gray_50 text-sm font-thin",children:g||h.openApp.download_install_app})]}),(0,n.jsx)("div",{className:"download-container  relative",children:(0,n.jsxs)("div",{className:"p-4 inline-flex items-center gap-8 !rounded-2xl",children:[(0,n.jsx)("div",{className:"w-24 h-24 flex items-center justify-center",children:(0,n.jsx)(r.A,{src:`${p}/appicon.webp`,alt:"App Icon",width:96,height:96,className:"w-full h-full object-cover rounded-2xl"})}),(0,n.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,n.jsx)(s.N_,{href:"https://apps.apple.com/us/app/sugary-gift-app/id6444475666",target:"_blank",rel:"noopener noreferrer",children:(0,n.jsx)(r.A,{src:`${p}/apple.svg`,alt:"Download on the App Store",width:64,height:24,className:"w-[24px] h-auto"})}),(0,n.jsx)(s.N_,{href:"https://play.google.com/store/apps/details?id=com.app.sugary",target:"_blank",rel:"noopener noreferrer",className:"cardButton",children:(0,n.jsx)(r.A,{src:`${p}/android.svg`,alt:"Get it on Google Play",width:64,height:24,className:"w-[30px] h-auto"})})]}),(0,n.jsx)("div",{className:"flex flex-col items-center gap-3",children:(0,n.jsx)("div",{className:"w-24 h-24 ",children:(0,n.jsx)(r.A,{src:"/qr.svg",alt:"QR Code",width:96,height:96,className:"w-full h-full"})})})]})}),y&&(0,n.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,n.jsx)("p",{className:"uppercase text-sm text_gray_30 font-semibold",children:h.openApp.scan_from_phone})]}),(0,n.jsx)("style",{})]})})}},5160:(e,t,i)=>{"use strict";i.d(t,{default:()=>d});var n=i(95155),a=i(12115),r=i(73321),o=i(62756),s=i(2123),l=i(37276);function c(){let e=(0,r.usePathname)(),t=(0,r.useSearchParams)().toString(),i=(0,a.useRef)(!0);return(0,a.useEffect)(()=>{(0,l.fp)(),(0,l.u0)()},[]),(0,a.useEffect)(()=>{if(i.current){i.current=!1;return}(0,o.Xd)()&&(0,o.$_)(),s.Tq.pageViewed()},[e,t]),null}function d(){return(0,n.jsx)(a.Suspense,{fallback:null,children:(0,n.jsx)(c,{})})}},7089:(e,t,i)=>{Promise.resolve().then(i.t.bind(i,66872,23)),Promise.resolve().then(i.bind(i,89688)),Promise.resolve().then(i.bind(i,5160)),Promise.resolve().then(i.bind(i,46360)),Promise.resolve().then(i.bind(i,91174)),Promise.resolve().then(i.bind(i,12514)),Promise.resolve().then(i.bind(i,34417)),Promise.resolve().then(i.bind(i,92063)),Promise.resolve().then(i.bind(i,93934)),Promise.resolve().then(i.bind(i,44369)),Promise.resolve().then(i.bind(i,12322)),Promise.resolve().then(i.bind(i,2191)),Promise.resolve().then(i.bind(i,52307)),Promise.resolve().then(i.bind(i,61549)),Promise.resolve().then(i.bind(i,94245)),Promise.resolve().then(i.bind(i,16226)),Promise.resolve().then(i.bind(i,75602)),Promise.resolve().then(i.bind(i,29580)),Promise.resolve().then(i.bind(i,30565)),Promise.resolve().then(i.bind(i,90285)),Promise.resolve().then(i.bind(i,26300)),Promise.resolve().then(i.bind(i,91930)),Promise.resolve().then(i.t.bind(i,42593,23)),Promise.resolve().then(i.t.bind(i,93484,23)),Promise.resolve().then(i.t.bind(i,15530,23)),Promise.resolve().then(i.t.bind(i,24150,23)),Promise.resolve().then(i.t.bind(i,62089,23)),Promise.resolve().then(i.t.bind(i,34718,23)),Promise.resolve().then(i.t.bind(i,7275,23)),Promise.resolve().then(i.t.bind(i,86245,23)),Promise.resolve().then(i.t.bind(i,62542,23)),Promise.resolve().then(i.t.bind(i,1998,23))},8946:(e,t,i)=>{"use strict";i.d(t,{$x:()=>o,Ao:()=>f,FJ:()=>l,KF:()=>p,M9:()=>g,Ot:()=>u,nY:()=>c,p_:()=>m,pl:()=>h});var n=i(51619),a=i(7268),r=i(17050);let o="USD",s=Object.fromEntries(Object.entries(r.vF).map(([e,t])=>[String(t),e.replace(/([a-z0-9])([A-Z])/g,"$1 $2")]));function l(e){if(null!=e)return s[String(e)]??String(e)}function c(e){(0,n.sendGAEvent)("set",{user_id:null==e?null:String(e)})}function d(e,t={}){(0,n.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,a.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??r.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 i=Number(t?.ConversionRate??0);return i>0?Number((e/i).toFixed(2)):e}(t,e.Currency),quantity:1}}function p(e){return e.reduce((e,t)=>e+(0,a.bT)(t),0)}function g(e,t,i){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:i}}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:o,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:o,value:t,items:e})},removeFromCart(e,t){e.length&&d("remove_from_cart",{currency:o,value:t,items:e})},beginCheckout(e,t){e.length&&d("begin_checkout",{currency:o,value:t,items:e})},viewCart(e,t){e.length&&d("view_cart",{currency:o,value:t,items:e})},addShippingInfo(e,t,i){e.length&&d("add_shipping_info",{currency:o,value:t,shipping_tier:i,items:e})},addPaymentInfo(e,t,i){d("add_payment_info",{currency:o,value:t,payment_type:i,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,i)=>{"use strict";i.d(t,{f:()=>n});let n={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"}},ur:{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:"شرائط و ضوابط"}},hi:{cookieBanner:{title:"हम कुकीज़ का उपयोग करते हैं",de
1scription:"यह साइट उपहार देने का बेहतर अनुभव, वैयक्तिकरण और सुविधाएँ प्रदान करने के लिए आवश्यक कुकीज़ का उपयोग करती है।"},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:"नियम और शर्तें"}},bn:{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:"নিয়ম ও শর্তাবলী"}},zh:{cookieBanner:{title:"我们使用 Cookie",description:"本网站使用必要的 Cookie 来提供更好的送礼体验、个性化内容和功能。"},consentManagerDialog:{title:"Cookie 偏好设置",description:"我们尊重您的隐私。请选择您同意使用的 Cookie,您可以随时更改这些设置。"},common:{acceptAll:"允许全部",rejectAll:"仅必要",customize:"修改",save:"保存偏好",close:"关闭"},consentTypes:{necessary:{title:"必要",description:"维持网站、您的账户以及结账/送礼流程顺畅运行所必需。"},functionality:{title:"功能性",description:"包括产品优惠和促销活动等核心功能。"},measurement:{title:"分析",description:"帮助我们了解 Sugary 的使用情况以便进行改进。"},marketing:{title:"营销",description:"允许我们及广告合作伙伴(如 Meta)衡量并为您展示个性化广告。"}},legalLinks:{privacyPolicy:"隐私政策",cookiePolicy:"Cookie政策",termsOfService:"条款与条件"}},pt:{cookieBanner:{title:"Usamos cookies",description:"Este site utiliza cookies essenciais para proporcionar uma melhor experi\xeancia de presentes, personaliza\xe7\xe3o e recursos."},consentManagerDialog:{title:"Prefer\xeancias de cookies",description:"Respeitamos sua privacidade. Escolha quais cookies voc\xea aceita, voc\xea pode alterar essas configura\xe7\xf5es a qualquer momento."},common:{acceptAll:"Permitir todos",rejectAll:"Apenas necess\xe1rios",customize:"Modificar",save:"Salvar prefer\xeancias",close:"Fechar"},consentTypes:{necessary:{title:"Necess\xe1rios",description:"Necess\xe1rios para manter o site, sua conta e o fluxo de compra/presente funcionando perfeitamente."},functionality:{title:"Funcionalidade",description:"Inclui recursos essenciais, como ofertas de produtos e disponibilidade de promo\xe7\xf5es."},measurement:{title:"Estat\xedsticas",description:"Nos ajuda a entender como o Sugary \xe9 utilizado para que possamos melhor\xe1-lo."},marketing:{title:"Marketing",description:"Permite que n\xf3s e nossos parceiros de publicidade (como a Meta) me\xe7am e personalizem os an\xfancios que voc\xea v\xea."}},legalLinks:{privacyPolicy:"Pol\xedtica de Privacidade",cookiePolicy:"Pol\xedtica de Cookies",termsOfService:"Termos e Condi\xe7\xf5es"}},ru:{cookieBanner:{title:"Мы используем файлы cookie",description:"Этот сайт использует необходимые файлы cookie для улучшения процесса выбора подарков, персонализации и поддержки функций."},consentManagerDialog:{title:"Настройки файлов cookie",description:"Мы уважаем вашу конфиденциальность. Выберите, какие файлы cookie вы разрешаете. Вы можете изменить эти настройки в любое время."},common:{acceptAll:"Разрешить все",rejectAll:"Только обязательные",customize:"Изменить",save:"Сохранить настройки",close:"Закрыть"},consentTypes:{necessary:{title:"Необходимые",description:"Требуются для корректной работы сайта, вашей учетной записи и оформления заказа/подарка."},functionality:{title:"Функциональные",description:"Включают основные функции, включая предложения товаров и доступность акций."},measurement:{title:"Аналитика",description:"Помогают нам понимать, как используется Sugary, чтобы мы могли улучшать сервис."},marketing:{title:"Маркетинг",description:"Позволяют нам и нашим рекламн
1ым партнерам (таким как Meta) оценивать и персонализировать рекламу."}},legalLinks:{privacyPolicy:"Политика конфиденциальности",cookiePolicy:"Политика использования файлов cookie",termsOfService:"Условия и положения"}},tr:{cookieBanner:{title:"\xc7erezleri kullanıyoruz",description:"Bu site, daha iyi bir hediyeleşme deneyimi, kişiselleştirme ve \xf6zellikler sunmak i\xe7in zorunlu \xe7erezleri kullanır."},consentManagerDialog:{title:"\xc7erez Tercihleri",description:"Gizliliğinize saygı duyuyoruz. Hangi \xe7erezleri kabul ettiğinizi se\xe7in; bu ayarları istediğiniz zaman değiştirebilirsiniz."},common:{acceptAll:"T\xfcm\xfcne İzin Ver",rejectAll:"Yalnızca Gerekli",customize:"D\xfczenle",save:"Tercihleri kaydet",close:"Kapat"},consentTypes:{necessary:{title:"Zorunlu",description:"Sitenin, hesabınızın ve \xf6deme/hediye akışının sorunsuz \xe7alışması i\xe7in gereklidir."},functionality:{title:"İşlevsellik",description:"\xdcr\xfcn teklifleri ve promosyon ge\xe7erliliği dahil temel \xf6zellikleri i\xe7erir."},measurement:{title:"Analitik",description:"Sugary'nin nasıl kullanıldığını anlamamıza ve geliştirmemize yardımcı olur."},marketing:{title:"Pazarlama",description:"Bizim ve reklam ortaklarımızın (Meta gibi) g\xf6rd\xfcğ\xfcn\xfcz reklamları \xf6l\xe7mesine ve kişiselleştirmesine olanak tanır."}},legalLinks:{privacyPolicy:"Gizlilik Politikası",cookiePolicy:"Kurabiye Politikası",termsOfService:"Şartlar ve Koşullar"}},id:{cookieBanner:{title:"Kami menggunakan cookie",description:"Situs ini menggunakan cookie penting untuk memberikan pengalaman pemberian hadiah, personalisasi, dan fitur yang lebih baik."},consentManagerDialog:{title:"Preferensi Cookie",description:"Kami menghormati privasi Anda. Pilih cookie mana yang Anda setujui, Anda dapat mengubah pengaturan ini kapan saja."},common:{acceptAll:"Izinkan Semua",rejectAll:"Hanya Penting",customize:"Ubah",save:"Simpan preferensi",close:"Tutup"},consentTypes:{necessary:{title:"Wajib",description:"Diperlukan untuk menjaga kelancaran situs, akun Anda, dan alur checkout/hadiah."},functionality:{title:"Fungsionalitas",description:"Mencakup fitur inti termasuk penawaran produk & ketersediaan promo."},measurement:{title:"Analitik",description:"Membantu kami memahami bagaimana Sugary digunakan agar kami dapat meningkatkannya."},marketing:{title:"Pemasaran",description:"Memungkinkan kami dan mitra iklan (seperti Meta) mengukur dan mempersonalisasi iklan yang Anda lihat."}},legalLinks:{privacyPolicy:"Kebijakan Privasi",cookiePolicy:"Kebijakan Cookie",termsOfService:"Syarat & Ketentuan"}},tl:{cookieBanner:{title:"Gumagamit kami ng mga cookie",description:"Gumagamit ang site na ito ng mahahalagang cookie upang magbigay ng mas magandang karanasan sa pagbibigay ng regalo, pag-personalize, at mga feature."},consentManagerDialog:{title:"Mga Kagustuhan sa Cookie",description:"Iginagalang namin ang iyong privacy. Piliin kung aling mga cookie ang tinatanggap mo, maaari mong baguhin ang mga setting na ito anumang oras."},common:{acceptAll:"Payagan Lahat",rejectAll:"Mahalaga Lamang",customize:"Baguhin",save:"I-save ang mga kagustuhan",close:"Isara"}
1,consentTypes:{necessary:{title:"Kailangan",description:"Kinakailangan upang mapanatiling maayos ang site, iyong account, at ang checkout/gifting flow."},functionality:{title:"Functionality",description:"Kabilang ang mga pangunahing feature kabilang ang mga alok ng produkto at availability ng promo."},measurement:{title:"Analytics",description:"Tumutulong sa amin na maunawaan kung paano ginagamit ang Sugary upang mapabuti namin ito."},marketing:{title:"Marketing",description:"Nagbibigay-daan sa amin at sa aming mga kasosyo sa ad (tulad ng Meta) na sukatin at i-personalize ang mga ad na nakikita mo."}},legalLinks:{privacyPolicy:"Patakaran sa Privacy",cookiePolicy:"Patakaran sa Cookie",termsOfService:"Mga Tuntunin at Kundisyon"}},ja:{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:"利用規約"}},ko:{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:"이용 약관"}},it:{cookieBanner:{title:"Utilizziamo i cookie",description:"Questo sito utilizza cookie essenziali per offrire una migliore esperienza di regali, personalizzazione e funzionalit\xe0."},consentManagerDialog:{title:"Preferenze sui cookie",description:"Rispettiamo la tua privacy. Scegli quali cookie desideri accettare, puoi modificare queste impostazioni in qualsiasi momento."},common:{acceptAll:"Consenti tutti",rejectAll:"Solo necessari",customize:"Modifica",save:"Salva preferenze",close:"Chiudi"},consentTypes:{necessary:{title:"Necessari",description:"Necessari per il corretto funzionamento del sito, del tuo account e del processo di acquisto/regalo."},functionality:{title:"Funzionalit\xe0",description:"Include funzioni principali come offerte sui prodotti e disponibilit\xe0 di promozioni."},measurement:{title:"Statistiche",description:"Ci aiuta a capire come viene utilizzato Sugary per poterlo migliorare."},marketing:{title:"Marketing",description:"Consente a noi e ai nostri partner pubblicitari (come Meta) di misurare e personalizzare gli annunci visualizzati."}},legalLinks:{privacyPolicy:"Informativa sulla privacy",cookiePolicy:"Politica sui cookie",termsOfService:"Termini e Condizioni"}},nl:{cookieBanner:{title:"Wij gebruiken cookies",description:"Deze site gebruikt essenti\xeble cookies voor een betere cadeau-ervaring, personalisatie en functies."},consentManagerDialog:{title:"Cookievoorkeuren",description:"Wij respecteren je privacy. Kies welke cookies je toestaat, je kunt deze instellingen op elk moment wijzigen."},common:{acceptAll:"Alles toestaan",rejectAll:"Alleen noodzakelijk",customize:"Aanpassen",save:"Voorkeuren opslaan",close:"Sluiten"},consentTypes:{necessary:{title:"Noodzakelijk",description:"Vereist om de site, je account en het afreken-/cadeauproces soepel te laten werken."},functionality:{title:"Functionaliteit",description:"Omvat kernfuncties zoals productaanbiedingen en promotiebeschikbaarheid."},measurement:{title:"Statistieken",description:"Helpt ons begrijpen hoe Sugary wordt gebruikt, zodat we het kunnen verbeteren."},marketing:{title:"Marketing",description:"Stelt ons en onze advertentiepartners (zoals Meta) in staat om advertenties te meten en te personaliseren."}},legalLinks:{privacyPolicy:"Privacybeleid",cookiePolicy:"Cookiebeleid",termsOfService:"Algemene voorwaarden"}},pl:{cookieBanner:{title:"Używamy plik\xf3w cookie",description:"Ta strona używa niezbędnych plik\xf3w cookie, aby zapewnić lepsze doświadczenie podczas wręczania prezent\xf3w, personalizację i funkcje."},consentManagerDialog:{title:"Preferencje plik\xf3w cookie",description:"Szanujemy Twoją prywatność. Wybierz, na kt\xf3re pliki cookie wyrażasz zgodę, możesz zmienić te ustawienia w dowolnym momencie."},common:{acceptAll:"Zezw\xf3l na wszystkie",rejectAll:"Tylko niezbędne",customize:"Modyfikuj",save:"Zapisz preferencje",close:"Zamknij"},consentTypes:{necessary:{title:"Niezbędne",description:"Wymagane do sprawnego działania witryny, Twojego konta oraz procesu kasy/prezent\xf3w."},functionality:{title:"Funkcjonalność",description:"Obejmuje kluczowe funkcje, w tym oferty produkt\xf3w i dostępność promocji."},measurement:{title:"Analityka",description:"Pomaga nam zrozumieć, jak używany jest Sugary, abyśmy mogli go ulepszać."},marketing:{title:"Marketing",description:"Pozwala nam i naszym partnerom reklamowym (np. Meta) mierzyć i personalizować wyświetlane reklamy."}},legalLinks:{privacyPolicy:"Polityka prywatności",cookiePolicy:"Polityka plik\xf3w cookie",termsOfService:"Warunki i zasady"}}
1,th:{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:"ข้อกําหนดและเงื่อนไข"}},vi:{cookieBanner:{title:"Ch\xfang t\xf4i sử dụng cookie",description:"Trang web n\xe0y sử dụng cookie thiết yếu để mang lại trải nghiệm tặng qu\xe0, c\xe1 nh\xe2n h\xf3a v\xe0 c\xe1c t\xednh năng tốt hơn."},consentManagerDialog:{title:"T\xf9y chọn Cookie",description:"Ch\xfang t\xf4i t\xf4n trọng quyền ri\xeang tư của bạn. Chọn loại cookie bạn đồng \xfd, bạn c\xf3 thể thay đổi c\xe0i đặt n\xe0y bất kỳ l\xfac n\xe0o."},common:{acceptAll:"Cho ph\xe9p tất cả",rejectAll:"Chỉ thiết yếu",customize:"T\xf9y chỉnh",save:"Lưu t\xf9y chọn",close:"Đ\xf3ng"},consentTypes:{necessary:{title:"Thiết yếu",description:"Cần thiết để duy tr\xec trang web, t\xe0i khoản của bạn v\xe0 quy tr\xecnh thanh to\xe1n/tặng qu\xe0 hoạt động trơn tru."},functionality:{title:"Chức năng",description:"Bao gồm c\xe1c t\xednh năng cốt l\xf5i như ưu đ\xe3i sản phẩm & \xe1p dụng khuyến m\xe3i."},measurement:{title:"Ph\xe2n t\xedch",description:"Gi\xfap ch\xfang t\xf4i hiểu c\xe1ch Sugary được sử dụng để c\xf3 thể cải thiện dịch vụ."},marketing:{title:"Tiếp thị",description:"Cho ph\xe9p ch\xfang t\xf4i v\xe0 c\xe1c đối t\xe1c quảng c\xe1o (như Meta) đo lường v\xe0 c\xe1 nh\xe2n h\xf3a quảng c\xe1o bạn thấy."}},legalLinks:{privacyPolicy:"Ch\xednh s\xe1ch bảo mật",cookiePolicy:"Ch\xednh s\xe1ch Cookie",termsOfService:"Điều khoản & Điều kiện"}}
1,ms:{cookieBanner:{title:"Kami menggunakan kuki",description:"Laman web ini menggunakan kuki penting untuk memberikan pengalaman pemberian hadiah, pemperibadian & ciri yang lebih baik."},consentManagerDialog:{title:"Pilihan Kuki",description:"Kami menghormati privasi anda. Pilih kuki yang anda persetujui, anda boleh mengubah tetapan ini pada bila-bila masa."},common:{acceptAll:"Benarkan Semua",rejectAll:"Penting Sahaja",customize:"Ubah Suai",save:"Simpan pilihan",close:"Tutup"},consentTypes:{necessary:{title:"Penting",description:"Diperlukan untuk memastikan laman web, akaun anda & aliran pembayaran/hadiah berfungsi dengan lancar."},functionality:{title:"Kefungsian",description:"Termasuk ciri teras termasuk tawaran produk & ketersediaan promosi."},measurement:{title:"Analisis",description:"Membantu kami memahami cara Sugary digunakan supaya kami dapat memperbaikinya."},marketing:{title:"Pemasaran",description:"Membolehkan kami dan rakan kongsi iklan (seperti Meta) mengukur dan memperibadikan iklan yang anda lihat."}},legalLinks:{privacyPolicy:"Dasar Privasi",cookiePolicy:"Polisi Kuki",termsOfService:"Terma & Syarat"}}}},11109:(e,t,i)=>{"use strict";i.d(t,{Q:()=>r});var n=i(1934),a=i(31692);let r=(0,n.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})}))},12322:(e,t,i)=>{"use strict";i.d(t,{LocaleCatalogue:()=>a});var n=i(23591);function a({language:e,catalogue:t,children:i}){return t&&(0,n.l)(e,t),i}},12514:(e,t,i)=>{"use strict";i.d(t,{default:()=>r});var n=i(95155),a=i(12115);function r({children:e,placeholder:t=null}){let[i,o]=(0,a.useState)(!1);return((0,a.useEffect)(()=>{o(!0)},[]),i)?(0,n.jsx)(n.Fragment,{children:e}):(0,n.jsx)(n.Fragment,{children:t})}},16226:(e,t,i)=>{"use strict";i.d(t,{default:()=>l});var n=i(95155),a=i(37206),r=i(12115),o=i(6407);let s=(0,a.default)(()=>Promise.all([i.e(8032),i.e(8905),i.e(9457),i.e(1759),i.e(8619),i.e(4775)]).then(i.bind(i,99313)),{loadableGenerated:{webpack:()=>[99313]},ssr:!1});function l(){let e=(0,o.o)(e=>e.isOpen),[t,i]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{e&&i(!0)},[e]),t)?(0,n.jsx)(s,{}):null}},17050:(e,t,i)=>{"use strict";i.d(t,{Gg:()=>d,JT:()=>g,Ml:()=>p,RX:()=>c,Te:()=>r,ar:()=>n,gz:()=>h,i4:()=>o,li:()=>f,lq:()=>s,mc:()=>y,qc:()=>u,uc:()=>l,vF:()=>m,yV:()=>a});let n="https://sugary.me",a="https://gift.sugary.me",r="[email protected]",o="[email protected]",s="+971567884058",l={PLAY_STORE_LINK:"https://play.google.com/store/apps/details?id=com.app.sugary",APP_STORE_LINK:"https://apps.apple.com/app/id6444475666"}
1,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,y=191},26250:(e,t,i)=>{"use strict";i.d(t,{R:()=>r,p:()=>a});let n=!1;function a(e){n=e}function r(){return n}},27714:(e,t,i)=>{"use strict";i.d(t,{Hx:()=>o,Rr:()=>s});var n=i(35844),a=i(2125);let r=new Map;function o(e,t){let{fractionDigits:i=2,showSymbol:n=!0,showFree:a=!1,currency:o,ignoreConversion:s=!1}=t,l=n?o?.Symbol??"$":"";if(null==e)return`${l}N/A`;if(a&&0===e)return"FREE";let c=o?.RoundOff?0:i,d=function(e,t,i={}){let{fractionDigits:n=2,ignoreConversion:a=!1}=i,r=a?1:Number(t?.ConversionRate??1),o=t?.RoundOff?0:n;return Number((e*r).toFixed(o))}(e,o,{fractionDigits:i,ignoreConversion:s}),u=(r.has(c)||r.set(c,new Intl.NumberFormat("en-US",{minimumFractionDigits:c,maximumFractionDigits:c})),r.get(c));return l?`${l} ${u.format(d)}`:u.format(d)}async function s(){try{let e=await n.u.get(a.Xv,{cache:"no-store"});return await e.json()}catch{return null}}},28183:(e,t,i)=>{"use strict";i.d(t,{B:()=>n});let n=(0,i(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,i)=>{"use strict";i.d(t,{default:()=>l});var n=i(95155),a=i(37206),r=i(12115),o=i(11109);let s=(0,a.default)(()=>Promise.all([i.e(8032),i.e(9457),i.e(9e3),i.e(8619),i.e(3553)]).then(i.bind(i,43553)),{loadableGenerated:{webpack:()=>[43553]},ssr:!1});function l(){let e=(0,o.Q)(e=>e.isOpen),[t,i]=(0,r.useState)(!1);return(e&&!t&&i(!0),t)?(0,n.jsx)(s,{}):null}},34417:(e,t,i)=>{"use strict";i.d(t,{ConsentGatedMarketing:()=>l});var n=i(95155),a=i(3655),r=i(65596);function o(){let e="3568257946671867";return e?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.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,n.jsx)("noscript",{children:(0,n.jsx)("img",{height:1,width:1,alt:"",style:{display:"none"},src:`https://www.facebook.com/tr?id=${e}&ev=PageView&noscript=1`})})]}):(0,n.jsx)(n.Fragment,{})}function s(){let e="QN4m9PzuaX4geEuHXQzTo8";if(!e)return null;let t=JSON.stringify(e);return(0,n.jsx)(r.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,a.l)();return e("marketing")?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o,{}),(0,n.jsx)(s,{})]}):null}},44369:(e,t,i)=>{"use strict";i.d(t,{D:()=>s,MarketCurrencyProvider:()=>o});var n=i(95155),a=i(12115);let r=(0,a.createContext)(null);function o({currency:e,children:t}){return(0,n.jsx)(r.Provider,{value:e,children:t})}function s(){return(0,a.useContext)(r)}},45601:(e,t,i)=>{"use strict";i.d(t,{w:()=>n});let n=(0,i(1934).v)((e,t)=>({isOpen:!1,leftCode:!1,resolveCallback:null,openAuthModal:(t=!1)=>{let i="boolean"==typeof t?t:t?.leftCode??!1;return new Promise(t=>{e({isOpen:!0,leftCode:i,resolveCallback:t})})},closeAuthModal:(i=!1)=>{let{resolveCallback:n}=t();n&&n(i),e({isOpen:!1,resolveCallback:null})},isLogoutOpen:!1,logoutResolveCallback:null,openLogoutPopup:()=>new Promise(t=>{e({isLogoutOpen:!0,logoutResolveCallback:t})}),closeLogoutPopup:(i=!1)=>{let{logoutResolveCallback:n}=t();n&&n(i),e({isLogoutOpen:!1,logoutResolveCallback:null})}}))},46360:(e,t,i)=>{"use strict";i.d(t,{default:()=>o});var n=i(12115),a=i(37002),r=i(8946);function o(){let e=(0,a.useGlobalStore)(e=>e.isHydrated),t=(0,a.useGlobalStore)(e=>e.current_user?.Id??null);return(0,n.useEffect)(()=>{e&&(0,r.nY)(t)},[e,t]),null}},46752:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var n=i(95155),a=i(5772);function r({width:e=32,height:t=32,className:i=""}){return(0,n.jsx)(a.default,{src:"/sugary-web-assets/icons/icon_rounded.png",alt:"Sugary Icon",width:e,height:t,className:`object-contain ${i}`})}},61549:(e,t,i)=>{"use strict";i.d(t,{Toaster:()=>l});var n=i(95155),a=i(70460),r=i(66609),o=i(96621),s=i(12115);let l=({...e})=>{let{theme:t="system"}=(0,a.D)(),i=(0,o.a)();return(0,s.useEffect)(()=>{let e=e=>{let t=e.target.closest("[data-sonner-toast]");if(t){let e=t.getAttribute("data-sonner-toast");e&&r.oR.dismiss(e)}};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[]),(0,n.jsx)(r.l$,{theme:t,className:"toaster group",position:i?"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 "+(i?"!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,i)=>{"use strict";i.d(t,{$_:()=>s,UJ:()=>u,Xd:()=>r});var n=i(8946),a=i(26250);let r=()=>"function"==typeof window.fbq&&(0,a.R)();function o(e,t,i){r()&&(i?window.fbq("track",e,t,{eventID:i}):window.fbq("track",e,t))}function s(){o("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){o("ViewContent",{content_ids:[String(e.item_id)],contents:c([e]),content_name:e.item_name,content_type:"product",value:t,currency:n.$x})},search(e){e.trim()&&o("Search",{search_string:e.trim()})},addToCart(e,t){e.length&&o("AddToCart",{content_ids:l(e),contents:c(e),content_type:"product",value:t,currency:n.$x})},initiateCheckout(e,t){e.length&&o("InitiateCheckout",{content_ids:l(e),contents:c(e),content_type:"product",num_items:d(e),value:t,currency:n.$x})},addPaymentInfo(e,t){o("AddPaymentInfo",{content_ids:l(e),contents:c(e),content_type:"product",value:t,currency:n.$x})},purchase(e){o("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){o("CompleteRegistration",{content_name:e,status:!0})}}},62795:(e,t,i)=>{"use strict";i.d(t,{c:()=>s});var n=i(1934),a=i(93111),r=i(37002),o=i(45601);let s=(0,n.v)((e,t)=>({isOpen:!1,targetStoreId:null,targetRoomId:null,openDrawer:async t=>{let{current_user:i,token:n}=r.useGlobalStore.getState();(null!=i&&!i.IsGuest&&null!=n||await o.w.getState().openAuthModal())&&e({isOpen:!0,targetStoreId:t?.storeId??null,targetRoomId:t?.roomId??null})},closeDrawer:()=>{a.L.getState().cleanupEmptyRooms(),e({isOpen:!1,targetStoreId:null,targetRoomId:null})},toggleDrawer:async()=>{let{isOpen:e}=t();e?t().closeDrawer():await t().openDrawer()}}))},66872:()=>{},67021:(e,t,i)=>{"use strict";i.d(t,{RM:()=>c,RS:()=>o,S7:()=>s,Xe:()=>l,h:()=>a,kH:()=>r,pc:()=>u,s0:()=>n,xh:()=>d});let n={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"},r={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"},s={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"}},68477:(e,t,i)=>{"use strict";i.d(t,{G:()=>o,v:()=>s});var n=i(37002),a=i(35927),r=i(27714);async function o(e){try{let t=await (0,a.wz)();e(n.X.CurrentUser,t)}catch{}}async function s(e){try{let t=await (0,r.Rr)();t&&e(n.X.Currency,t)}catch{}}},74350:(e,t,i)=>{"use strict";i.d(t,{Cf:()=>u,HM:()=>c,L3:()=>p,ZJ:()=>l,c7:()=>m,lG:()=>o,rr:()=>g,zM:()=>s});var n=i(95155);i(12115);var a=i(52060),r=i(91337);function o({...e}){return(0,n.jsx)(a.bL,{"data-slot":"dialog",...e})}function s({...e}){return(0,n.jsx)(a.l9,{"data-slot":"dialog-trigger",...e})}function l({...e}){return(0,n.jsx)(a.ZL,{"data-slot":"dialog-portal",...e})}function c({...e}){return(0,n.jsx)(a.bm,{"data-slot":"dialog-close",...e})}function d({className:e,...t}){return(0,n.jsx)(a.hJ,{"data-slot":"dialog-overlay",className:(0,r.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:i,overlayClassName:o,...s}){return(0,n.jsxs)(l,{"data-slot":"dialog-portal",children:[(0,n.jsx)(d,{className:(0,r.cn)(i?"!animate-none !duration-0":"",o)}),(0,n.jsx)(a.UC,{"data-slot":"dialog-content",className:(0,r.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 roun
28ded-lg border p-6 shadow-lg duration-100 sm:max-w-lg",i?"!animate-none !duration-0":"",e),...s,children:t})]})}function m({className:e,...t}){return(0,n.jsx)("div",{"data-slot":"dialog-header",className:(0,r.cn)("flex flex-col gap-2 text-center sm:text-left",e),...t})}function p({className:e,...t}){return(0,n.jsx)(a.hE,{"data-slot":"dialog-title",className:(0,r.cn)("text-lg leading-none font-semibold",e),...t})}function g({className:e,...t}){return(0,n.jsx)(a.VY,{"data-slot":"dialog-description",className:(0,r.cn)("text-muted-foreground text-sm",e),...t})}},75602:(e,t,i)=>{"use strict";i.d(t,{default:()=>l});var n=i(95155),a=i(37206),r=i(12115),o=i(62795);let s=(0,a.default)(()=>Promise.all([i.e(4471),i.e(8905),i.e(1053),i.e(5435),i.e(9415),i.e(8207),i.e(4320),i.e(6716),i.e(2813)]).then(i.bind(i,80441)),{loadableGenerated:{webpack:()=>[80441]},ssr:!1});function l(){let e=(0,o.c)(e=>e.isOpen),[t,i]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{e&&i(!0)},[e]),t)?(0,n.jsx)(s,{}):null}},89688:(e,t,i)=>{"use strict";i.d(t,{GlobalStoreProvider:()=>d});var n=i(95155),a=i(12115),r=i(37002),o=i(15217),s=i(29407),l=i(37999),c=i(68477);function d({children:e}){let t=(0,r.useGlobalStore)(e=>e.hydrate),i=(0,r.useGlobalStore)(e=>e.setField),u=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{let e;if(u.current)return;u.current=!0;let n=(0,o.ok)(s.F.TOKEN),a=(0,o.ok)(s.F.CURRENCY);t({[r.X.Token]:n,[r.X.TokenExpiresAt]:(0,o.ok)(s.F.TOKEN_EXPIRES_AT),[r.X.CurrentUser]:(0,o.ok)(s.F.USER_DATA),[r.X.GiftingPlace]:(0,o.ok)(s.F.GIFTING_PLACE),[r.X.GiftingDate]:(0,o.ok)(s.F.GIFTING_DATE),[r.X.Currency]:a}),e=()=>{n&&(0,c.G)(i),a||(0,c.v)(i)},"requestIdleCallback"in window?requestIdleCallback(e,{timeout:2e3}):setTimeout(e,1)},[t,i]),!function(){let{fetchBasket:e}=(0,l.M)(),t=(0,r.useGlobalStore)(e=>e.giftingPlace),i=(0,r.useGlobalStore)(e=>e.current_user?.Id),n=(0,a.useRef)(null);(0,a.useEffect)(()=>{if(r.useGlobalStore.getState().isHydrated)return n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{e()},300),()=>{n.current&&clearTimeout(n.current)}},[t,i,e])}(),(0,n.jsx)(n.Fragment,{children:e})}},91174:(e,t,i)=>{"use strict";i.d(t,{ChunkErrorListener:()=>a});var n=i(12115);function a(){return(0,n.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),i=Date.now();(!t||i-parseInt(t,10)>1e4)&&(sessionStorage.setItem(e,i.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,i)=>{"use strict";i.d(t,{cn:()=>r});var n=i(29722),a=i(622);function r(...e){return(0,a.QP)((0,n.$)(e))}},92063:(e,t,i)=>{"use strict";i.d(t,{ConsentManager:()=>d});var n=i(95155),a=i(37206),r=i(18981),o=i(2693);let s={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=i(10916);let c=(0,a.default)(()=>Promise.all([i.e(3648),i.e(8758),i.e(1023),i.e(1622)]).then(i.bind(i,41622)),{loadableGenerated:{webpack:()=>[41622]},ssr:!1});function d({children:e}){let t=(0,o.n)(e=>e.language);return(0,n.jsxs)(r.x,{options:{mode:"offline",consentCategories:["necessary","functionality","measurement","marketing"],colorScheme:"dark",theme:s,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,n.jsx)(c,{language:t},t),e]},t)}},93111:(e,t,i)=>{"use strict";i.d(t,{L:()=>p});var n=i(1934),a=i(2125),r=i(35844),o=i(37002);async function s(e,t){try{let i=await r.u.get(`${a.VR.CREATE_ROOM}?storeId=${e}&userId=${t}`),n=await i.json();return n?.Data??n??null}catch(e){return console.error("Failed to create chat room:",e),null}}var l=i(15217),c=i(29407);let d=null,u=async()=>(d||(d=await i.e(3522).then(i.bind(i,73522))),d),m=new Set,p=(0,n.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:i=>{let{rooms:n}=t();n.some(e=>e.Id===i.Id)||e({rooms:[i,...n]})},setSelectedRoomId:t=>e({selectedRoomId:t}),cleanupEmptyRooms:()=>e(e=>({rooms:e.rooms.filter(e=>!!e.LastMessageText||!!e.LastMessageSentAt)})),fetchRooms:async(i=0,n=20,o="")=>{0===t().rooms.length&&e({isLoading:!0});try{let t=o?encodeURIComponent(o.trim()):"",s=await r.u.get(`${a.VR.GET_ROOMS}?skip=${i}&limit=${n}&search=${t}`),l=await s.json(),c=Array.isArray(l)?l:l.Data??[];return 0===i?e(e=>{if(!o){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(i,n=null)=>{let o=null!==n;if(o)e({isLoadingOlderMessages:!0});else{let n=t().messages;t().selectedRoomId===i&&n.length>0&&n[0]?.StoreChatRoomId===i||e({isLoading:!0,messages:[],hasOlderMessages:!0})}try{let t=`${a.VR.GET_MESSAGES}?roomId=${i}`+(n?`&firstMessageId=${n}`:""),s=await r.u.get(t),l=await s.json(),c=Array.isArray(l)?l:l.Data??[];c=[...c].reverse(),o?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,i,n)=>{let{current_user:s}=o.useGlobalStore.getState();if(s)try{let o={Id:0,StoreChatRoomId:e,Text:i,Type:n?"BESPOKE_ORDER":"TEXT",SenderId:s.Id,SentAt:new Date().toISOString().split(".")[0]+"Z",ImagePath:null,ImageWidth:null,ImageHeight:null,ByteSize:null,IsError:!1,...n?{IntValueA:n}:{}},l=await r.u.post(a.VR.SEND_MESSAGE,o),c=await l.json(),d=c?.Data??c;d?.Id&&t().addMessage(d)}catch(e){console.error("Failed to send message:",e)}},addMessage:i=>{let{messages:n}=t();n.some(e=>e.Id===i.Id)||(e({messages:[...n,i]}),e(e=>({rooms:e.rooms.map(e=>e.Id===i.StoreChatRoomId?{...e,LastMessageText:i.Text,LastMessageSentAt:i.SentAt}:e)})))},joinRoom:async e=>{let{connection:i}=t();if(i&&i.state===d?.HubConnectionState.Connected&&!m.has(e))try{await i.invoke("JoinRoom",e),m.add(e)}catch(t){console.error("Failed to join room:",e,t)}},startChat:async e=>{let i=t=>t.find(t=>t.StoreId?.toString()===e||t.Id?.toString()===e||t.StoreUid&&t.StoreUid.toLowerCase()===e.toLowerCase()),n=i(t().rooms);if(n)return n.Id;await t().fetchRooms();let a=i(t().rooms);if(a)return a.Id;let{current_user:r}=o.useGlobalStore.getState();if(r&&e){let i=await s(e,r.Id);if(i&&i.Id)return t().addRoom(i),i.Id}return console.warn(`No chat room found for storeId="${e}"`),null},initializeConnection:async i=>{let n,r,o;
28if(t().connection)return;try{({HubConnectionBuilder:n,LogLevel:r}=await u())}catch(e){console.warn("Failed to load SignalR module:",e);return}let s="https://api.sugary.ae".replace(/\/+$/,"");try{o=new n().withUrl(`${s}${a.Zf}`,{accessTokenFactory:()=>i,withCredentials:!1}).withAutomaticReconnect().configureLogging(r.Warning).build()}catch(e){console.warn("Failed to build SignalR connection:",e);return}o.on("ReceiveMessage",i=>{try{let n=Array.isArray(i)?i[0]:i,a="string"==typeof n?JSON.parse(n):n,{messages:r,selectedRoomId:o}=t();if(r.some(e=>e.Id===a.Id))return;a.StoreChatRoomId===o&&e({messages:[...r,a]}),e(e=>({rooms:e.rooms.map(e=>e.Id===a.StoreChatRoomId?{...e,LastMessageText:a.Text,LastMessageSentAt:a.SentAt}:e)}))}catch(e){console.error("Error processing incoming message:",e)}}),o.onreconnected(async()=>{m.clear();let{rooms:e,selectedRoomId:i}=t();for(let i of e)await t().joinRoom(i.Id);i&&await t().joinRoom(i)});try{for(let i of(await o.start(),console.log("✅ Connected to Chat Hub"),e({connection:o,isConnected:!0}),t().rooms))await t().joinRoom(i.Id)}catch(t){console.warn("SignalR Connection Error:",t),e({isConnected:!1})}},disconnect:()=>{let{connection:i}=t();i&&(i.stop(),m.clear(),e({connection:null,isConnected:!1}))}}))},93934:(e,t,i)=>{"use strict";i.d(t,{ConsentModeSync:()=>l});var n=i(12115),a=i(3655),r=i(26250),o=i(2123);let s={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,a.l)(),i=e("measurement"),l=e("marketing"),c=e("functionality"),d=t?.time??null;return(0,n.useEffect)(()=>{var e;if((0,r.p)(l),(0,o.qY)(l),null==d||"function"!=typeof window.gtag)return;let t={necessary:!0,functionality:c,measurement:i,marketing:l};window.gtag("consent","update",(e=e=>t[e],Object.fromEntries(Object.entries(s).map(([t,i])=>[t,e(i)?"granted":"denied"])))),d>=performance.timeOrigin&&window.dataLayer?.push({event:"consent_update"})},[d,i,l,c]),null}},94245:(e,t,i)=>{"use strict";i.d(t,{GlobalAuthPopover:()=>S});var n=i(95155),a=i(12115),r=i(91337);function o({className:e,...t}){return(0,n.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-6",e),...t})}var s=i(96621),l=i(74937),c=i(74350),d=i(6296),u=i(33210),m=i(94290),p=i(41313),g=i(2693),f=i(23591),h=i(45601),y=i(46752),k=i(41455),x=i(57243),b=i(35927),v=i(37206),w=i(17050);let j=(0,v.default)(()=>Promise.all([i.e(9415),i.e(9534)]).then(i.bind(i,9534)),{loadableGenerated:{webpack:()=>[9534]},ssr:!1,loading:()=>(0,n.jsx)("div",{className:"w-full h-[300px] flex items-center justify-center",children:(0,n.jsx)(d.A,{className:"animate-spin text-white/40",size:24})})});function S(){let{language:e}=(0,g.n)(),t=f.P[e],i=(0,s.a)(),r=(0,x.xP)(),v=(0,k.rd)(),S=(0,k.a8)(),{isOpen:P,leftCode:A,closeAuthModal:_,isLogoutOpen:z,closeLogoutPopup:N}=(0,h.w)(),[C,I]=(0,a.useState)(!1),[M,T]=(0,a.useState)(!1);(0,a.useEffect)(()=>{P&&T(!0)},[P]);let E=()=>{_(!0),"/"===S&&v.push("/home")};(0,a.useEffect)(()=>{r&&(P||z?r.stop():r.start())},[P,z,r]);let O=async()=>{I(!0);try{await (0,b.y4)()}finally{I(!1),N(!0),v.push("/home")}},R=()=>{C||N(!1)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.lG,{open:P,onOpenChange:e=>{e||_(!1)},children:(0,n.jsxs)(c.Cf,{disableAnimation:!0,className:`w-full ${A?"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,n.jsx)(c.L3,{className:"hidden",children:t.auth.sign_in}),(0,n.jsx)("button",{onClick:()=>_(!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,n.jsx)(u.A,{strokeWidth:4,size:14,className:"text-white"})}),M?A&&!i?(0,n.jsxs)("div",{className:"flex flex-col md:flex-row w-full md:h-[600px] min-h-[600px] bg-[#131313] overflow-hidden",children:[(0,n.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,n.jsxs)("div",{className:"flex flex-col items-center justify-center my-auto",children:[(0,n.jsxs)("div",{className:"relative bg-[#131313] p-4 sm:p-8 rounded-[20px] sm:rou
28nded-[30px] w-[140px] h-[140px] sm:w-[250px] sm:h-[250px] flex items-center justify-center mt-2 sm:mt-4",children:[(0,n.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,n.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,n.jsx)("div",{className:"relative w-full h-full",children:(0,n.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,n.jsxs)("div",{className:"hidden md:flex items-center gap-4 bg-[#131313] px-6 h-[50px] rounded-[18px] mt-6",children:[(0,n.jsx)("div",{className:"flex items-center gap-0.5",children:[1,2,3,4,5].map(e=>(0,n.jsx)(m.A,{size:14,className:"fill-[#F59E0B] text-[#F59E0B]"},e))}),(0,n.jsx)("span",{className:"text-[12px] text-white/50 font-semibold",children:t.auth.rating_by_users})]})]}),(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center mr-8 md:mr-0 gap-2",children:[(0,n.jsxs)("div",{className:"flex md:hidden items-center gap-1.5 bg-[#131313] px-3 h-[36px] rounded-[12px] mb-3",children:[(0,n.jsx)("div",{className:"flex items-center gap-0.5",children:[1,2,3,4,5].map(e=>(0,n.jsx)(m.A,{size:14,className:"w-[10px] h-[10px] fill-[#F59E0B] text-[#F59E0B]"},e))}),(0,n.jsx)("span",{className:"text-[10px] text-white/50 font-semibold",children:t.auth.rating_by_users})]}),(0,n.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,n.jsxs)("div",{className:"grid grid-cols-2 gap-2 sm:gap-3 w-full mt-2",children:[(0,n.jsxs)("a",{href:w.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,n.jsx)("div",{className:"relative w-[12px] h-[12px] sm:w-[18px] sm:h-[18px] flex-shrink-0",children:(0,n.jsx)(l.A,{src:"/sugary-web-assets/icons/apple.svg",alt:"App Store",fill:!0,style:{objectFit:"contain"},className:"object-contain text-white"})}),(0,n.jsx)("span",{children:t.auth.app_store})]}),(0,n.jsxs)("a",{href:w.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,n.jsx)("div",{className:"relative w-[12px] h-[12px] sm:w-[18px] sm:h-[18px] flex-shrink-0",children:(0,n.jsx)(l.A,{src:"/sugary-web-assets/icons/android.svg",alt:"Play Store",fill:!0,style:{objectFit:"contain"},className:"object-contain"})}),(0,n.jsx)("span",{children:t.auth.play_store})]})]})]})]}),(0,n.jsx)("div",{className:"w-full md:w-[50%] bg-[#131313] md:h-full overflow-y-auto scrollbar-hide flex flex-col",children:(0,n.jsxs)("div",{className:"w-full p-4 py-1 md:p-6 my-auto flex flex-col items-center justify-center",children:[(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center mx-auto mb-4 md:mb-6",children:[(0,n.jsx)("div",{className:"relative mb-3",children:(0,n.jsx)(y.A,{width:75,height:75})}),(0,n.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,n.jsx)("p",{className:"text-white/40 text-sm text-center leading-none",children:t.auth.sign_in_subtitle})]}),(0,n.jsx)(o,{className:`${i?"px-0":"px-2"} w-full`,children:(0,n.jsx)(j,{onSuccess:E,redirection:!1,showMerchantButton:!0})})]})})]}):(0,n.jsxs)("div",{className:"p-8 w-full flex flex-col items-center justify-center bg-[#131313]",children:[(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center mx-auto mb-8",children:[(0,n.jsx)("div",{className:"relative mb-3",children:(0,n.jsx)(y.A,{width:75,height:75})}),(0,n.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,n.jsx)("p",{className:"text-white/40 text-sm font-bricolage text-center leading-none",children:t.auth.sign_in_subtitle})]}),(0,n.jsx)(o,{className:`${i?"px-0":"px-2"} w-full`,children:(0,n.jsx)(j,{onSuccess:E,redirection:!1})})]}):null]})}),(0,n.jsx)(c.lG,{open:z,onOpenChange:e=>{e||R()},children:(0,n.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,n.jsx)(c.L3,{className:"hidden",children:t?.auth?.logout_title??"Log Out"}),(0,n.jsx)("button",{onClick:R,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,n.jsx)(u.A,{strokeWidth:4,size:14,className:"text-white"})}),(0,n.jsxs)("div",{className:"p-8 w-full flex flex-col items-center justify-center bg-[#131313]",children:[(0,n.jsx)("div",{className:"flex items-center justify-center w-16 h-16 rounded-full bg-[#1A1A1A] mb-5",children:(0,n.jsx)(p.A,{size:22,className:"text-white/70",strokeWidth:2})}),(0,n.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,n.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,n.jsxs)("div",{className:"grid grid-cols-2 gap-3 w-full",children:[(0,n.jsx)("button",{onClick:R,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,n.jsx)("button",{onClick:O,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,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.A,{size:14,className:"animate-spin"}),t.auth.logging_out]}
28):t.auth.confirm_logout})]})]})]})})]})}}},e=>{e.O(0,[7513,5662,7807,5997,8409,8058,3933,5772,1619,1957,3313,1929,1332,6181,8441,3794,7358],()=>e(e.s=7089)),_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.