PageSourceSearch

https://sugary.me/_next/static/chunks/5367-6e601d2e82e275c2.js

js sugary.me collected 2026-09-24 10:59:54 UTC 10,487 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5367],{2123:(t,e,n)=>{n.d(e,{Tq:()=>u,qY:()=>s});var i=n(26250);function r(){let t=window.oaiq;return"function"==typeof t?t:null}function a(t,e){if(Number.isFinite(t)&&!(t<0))try{let n=e.trim().toUpperCase(),i=new Intl.NumberFormat("en",{style:"currency",currency:n}).resolvedOptions().maximumFractionDigits??2;return Math.round(t*10**i)}catch{return}}function o(t,e,n="USD"){let i,r=n.trim().toUpperCase(),c=null==e?void 0:a(e,r);return{type:"contents",...null!=c&&{amount:c,currency:r},...t.length>0&&{contents:(i=r.trim().toUpperCase(),t.map(t=>{let e=null==t.price?void 0:a(t.price,i),n=Number.isInteger(t.quantity)&&(t.quantity??0)>0?t.quantity:void 0;return{id:String(t.item_id),...t.item_name&&{name:t.item_name},content_type:t.item_category||"product",...null!=n&&{quantity:n},...null!=e&&{amount:e,currency:i}}}))}}}function c(t,e,n){if((0,i.R)())try{let i=r();if(!i)return;n?i("measure",t,e,n):i("measure",t,e)}catch{}}function s(t){try{r()?.("consent",t)}catch{}}let u={pageViewed(){c("page_viewed",{type:"contents"})},viewContent(t){c("contents_viewed",o([t],t.price,"USD"))},itemsAdded(t,e){t.length&&c("items_added",o(t,e,"USD"))},checkoutStarted(t,e){t.length&&c("checkout_started",o(t,e,"USD"))},orderCreated(t){c("order_created",o(t.items,t.value,t.currency),{event_id:`order_${t.transactionId}`})},registrationCompleted(){c("registration_completed",{type:"customer_action"})}}},8946:(t,e,n)=>{n.d(e,{$x:()=>o,Ao:()=>h,FJ:()=>s,KF:()=>y,M9:()=>p,Ot:()=>d,nY:()=>u,p_:()=>m,pl:()=>f});var i=n(51619),r=n(7268),a=n(17050);let o="USD",c=Object.fromEntries(Object.entries(a.vF).map(([t,e])=>[String(e),t.replace(/([a-z0-9])([A-Z])/g,"$1 $2")]));function s(t){if(null!=t)return c[String(t)]??String(t)}function u(t){(0,i.sendGAEvent)("set",{user_id:null==t?null:String(t)})}function l(t,e={}){(0,i.sendGAEvent)("event",t,e)}function d(t){return{item_id:t.ItemId,item_name:t.Material?.Title||`Item ${t.ItemId}`,item_brand:t.Material?.BrandName||t.Store?.Name,item_category:s(t.MaterialTypeId),item_variant:t.ItemVariantId??void 0,affiliation:t.Store?.Name,price:(0,r.un)(t),quantity:t.Quantity}}function m(t,e){return{item_id:t.Id,item_name:t.Title||`Voucher ${t.Id}`,item_category:s(t.TypeId??a.vF.GiftVoucher),affiliation:t.Store?.Name||void 0,item_brand:t.Store?.Name||void 0,price:function(t,e){if(null==t||!Number.isFinite(t))return;let n=Number(e?.ConversionRate??0);return n>0?Number((t/n).toFixed(2)):t}(e,t.Currency),quantity:1}}function y(t){return t.reduce((t,e)=>t+(0,r.bT)(e),0)}function p(t,e,n){return{item_id:t.Id,item_name:t.Title||`Item ${t.Id}`,item_category:s(t.TypeId),item_variant:e?.Id??void 0,affiliation:t.Store?.Name||void 0,price:e?.Price??void 0,quantity:n}}function h(t,e){return{item_id:t.Id,item_name:t.Title||`Item ${t.Id}`,item_brand:t.BrandName||void 0,item_category:s(t.TypeId),item_variant:t.VariantId??void 0,affiliation:t.StoreName||void 0,price:t.SalesPrice??void 0,index:e}}let f={viewItem(t){l("view_item",{currency:o,value:t.price??0,items:[t]})},viewItemList(t,e){t.length&&l("view_item_list",{item_list_name:e,items:t})},selectItem(t,e){l("select_item",{item_list_name:e,items:[t]})},addToCart(t,e){t.length&&l("add_to_cart",{currency:o,value:e,items:t})},removeFromCart(t,e){t.length&&l("remove_from_cart",{currency:o,value:e,items:t})},beginCheckout(t,e){t.length&&l("begin_checkout",{currency:o,value:e,items:t})},viewCart(t,e){t.length&&l("view_cart",{currency:o,value:e,items:t})},addShippingInfo(t,e,n){t.length&&l("add_shipping_info",{currency:o,value:e,shipping_tier:n,items:t})},addPaymentInfo(t,e,n){l("add_payment_info",{currency:o,value:e,payment_type:n,items:t})},purchase(t){l("purchase",{transaction_id:String(t.transactionId),currency:t.currency,value:t.value,items:t.items})},search(t){t.trim()&&l("search",{search_term:t.trim()})},login(t){l("login",{method:t})},signUp(t){l("sign_up",{method:t})}}},14390:(t,e,n)=>{n.d(e,{Op:()=>o,cu:()=>c,hv:()=>a});var i=n(35844),r=n(2125);let a=async t=>{try{let e=await i.u.post(r.TV.PRICE_QUOTE,t);return await e.json()}catch{return null}},o=async t=>{try{let e=await i.u.post(r.TV.CREATE,t);return await e.json()}catch{return null}},c=async t=>{try{let e=await i.u.get(r.TV.DETAILS+"?id="+t);return await e.json()}catch{return null}}},22167:(t,e,n)=>{n.d(e,{D:()=>a,L:()=>r});let i=t=>`sugary_purchase_usd_${t}`;function r(t,e){if(null!=t&&null!=e&&Number.isFinite(e))try{sessionStorage.setItem(i(t),String(e))}catch{}}function a(t){if(null==t)return null;try{let e=sessionStorage.getItem(i(t));if(null==e)return null;let n=Number(e);return Number.isFinite(n)?n:null}catch{return null}}},26250:(t,e,n)=>{n.d(e,{R:()=>a,p:()=>r});let i=!1;function r(t){i=t}function a(){return i}},27714:(t,e,n)=>{n.d(e,{Hx:()=>o,Rr:()=>c});var i=n(35844),r=n(2125);let a=new Map;
1function o(t,e){let{fractionDigits:n=2,showSymbol:i=!0,showFree:r=!1,currency:o,ignoreConversion:c=!1}=e,s=i?o?.Symbol??"$":"";if(null==t)return`${s}N/A`;if(r&&0===t)return"FREE";let u=o?.RoundOff?0:n,l=function(t,e,n={}){let{fractionDigits:i=2,ignoreConversion:r=!1}=n,a=r?1:Number(e?.ConversionRate??1),o=e?.RoundOff?0:i;return Number((t*a).toFixed(o))}(t,o,{fractionDigits:n,ignoreConversion:c}),d=(a.has(u)||a.set(u,new Intl.NumberFormat("en-US",{minimumFractionDigits:u,maximumFractionDigits:u})),a.get(u));return s?`${s} ${d.format(l)}`:d.format(l)}async function c(){try{let t=await i.u.get(r.Xv,{cache:"no-store"});return await t.json()}catch{return null}}},43209:(t,e,n)=>{n.d(e,{J5:()=>a,KF:()=>o});var i=n(2125),r=n(35844);async function a(t){try{let e=`${i.F_.GET_METHODS}?orderType=${t}`,n=await r.u.get(e);return await n.json()}catch(t){return console.error("Failed to fetch payment methods:",t),[]}}async function o(t,e=30){try{let n=`${i.X1}?paymentId=${t}&timeoutSeconds=${e}`,a=(Number(e)+5)*1e3,o=new Promise((t,e)=>{setTimeout(()=>{e(Error("Verification timeout"))},a)}),c=(async()=>{let t=await r.u.get(n);return await t.json()})();return await Promise.race([c,o])}catch(e){return console.error("Payment verification failed:",e),{Success:!1,PaymentId:t.toString()}}}},44369:(t,e,n)=>{n.d(e,{D:()=>c,MarketCurrencyProvider:()=>o});var i=n(95155),r=n(12115);let a=(0,r.createContext)(null);function o({currency:t,children:e}){return(0,i.jsx)(a.Provider,{value:t,children:e})}function c(){return(0,r.useContext)(a)}},62756:(t,e,n)=>{n.d(e,{$_:()=>c,UJ:()=>d,Xd:()=>a});var i=n(8946),r=n(26250);let a=()=>"function"==typeof window.fbq&&(0,r.R)();function o(t,e,n){a()&&(n?window.fbq("track",t,e,{eventID:n}):window.fbq("track",t,e))}function c(){o("PageView")}function s(t){return t.map(t=>String(t.item_id))}function u(t){return t.map(t=>({id:String(t.item_id),quantity:t.quantity??1,...null!=t.price&&{item_price:t.price}}))}function l(t){return t.reduce((t,e)=>t+(e.quantity??1),0)}let d={viewContent(t,e){o("ViewContent",{content_ids:[String(t.item_id)],contents:u([t]),content_name:t.item_name,content_type:"product",value:e,currency:i.$x})},search(t){t.trim()&&o("Search",{search_string:t.trim()})},addToCart(t,e){t.length&&o("AddToCart",{content_ids:s(t),contents:u(t),content_type:"product",value:e,currency:i.$x})},initiateCheckout(t,e){t.length&&o("InitiateCheckout",{content_ids:s(t),contents:u(t),content_type:"product",num_items:l(t),value:e,currency:i.$x})},addPaymentInfo(t,e){o("AddPaymentInfo",{content_ids:s(t),contents:u(t),content_type:"product",value:e,currency:i.$x})},purchase(t){o("Purchase",{content_ids:s(t.items),contents:u(t.items),content_type:"product",num_items:l(t.items),value:t.value,currency:t.currency},`purchase_${t.transactionId}`)},completeRegistration(t){o("CompleteRegistration",{content_name:t,status:!0})}}},95580:(t,e,n)=>{n.d(e,{PaymentFooter:()=>s});var i=n(95155),r=n(2693),a=n(82464),o=n(41455),c=n(5772);let s=()=>{let{language:t}=(0,r.n)(),e=a.P[t];return(0,i.jsx)("div",{className:"w-full border-t border-white/10  landing-section-container",children:(0,i.jsxs)("div",{className:"w-full flex flex-col md:flex-row gap-6 justify-between items-center text-[12px] leading-loose text-white/30 pt-8 md:pt-3 pb-16 md:pb-4 landing-content-padding",children:[(0,i.jsxs)("div",{className:"flex flex-wrap items-center justify-center md:justify-start gap-x-6 gap-y-2 text-[13px] text-white/50",children:[(0,i.jsx)(o.N_,{href:"/",className:"flex items-center",children:(0,i.jsx)(c.default,{src:"/sugary-web-assets/logo/sugary-icon.svg",alt:"Sugary Icon",width:20,height:20,className:"object-contain"})}),(0,i.jsx)(o.N_,{href:"/terms",className:"hover:text-white transition-colors",children:"\xa9 Sugary LLC"}),(0,i.jsx)(o.N_,{href:"/terms",className:"hover:text-white transition-colors",children:e.footer.terms_of_service}),(0,i.jsx)(o.N_,{href:"/privacy",className:"hover:text-white transition-colors",children:e.footer.privacy_policy}),(0,i.jsx)(o.N_,{href:"/home",className:"hover:text-white transition-colors",children:e.footer.delivery_locations}),(0,i.jsx)(o.N_,{href:"/account-deletion",className:"hover:text-white transition-colors",children:e.footer.user_data_deletion}),(0,i.jsx)(o.N_,{href:"/sitemap.xml",className:"hover:text-white transition-colors",children:e.footer.sitemap})]}),(0,i.jsxs)("div",{className:"flex gap-6 items-center flex-wrap mt-4",children:[(0,i.jsx)(c.default,{src:"/sugary-web-assets/icons/stripe-icon.svg",alt:"Stripe",width:40,height:18,className:"object-contain opacity-60 hover:opacity-100 transition-opacity duration-300 ease-in-out"}),(0,i.jsx)(c.default,{src:"/sugary-web-assets/icons/visa-icon.svg",alt:"Visa",width:36,height:12,className:"object-contain opacity-60 hover:opacity-100 transition-opacity duration-300 ease-in-out"}),(0,i.jsx)(c.default,{src:"/sugary-web-assets/icons/bkash-icon.svg",alt:"bKash",width:55,height:22,className:"object-contain opacity-60 hover:opacity-100 transition-opacity duration-300 ease-in-out"}),(0,i.jsx)(c.default,{src:"/sugary-web-assets/icons/amex-icon.svg",alt:"Amex",width:48,height:11,className:"object-contain opacity-60 hover:opacity-100 transition-opacity duration-300 ease-in-out"}),(0,i.jsx)(c.default,{src:"/sugary-web-assets/icons/apple-pay.svg",alt:"Apple Pay",width:36,height:17,className:"object-contain opacity-60 hover:opacity-100 transition-opacity duration-300 ease-in-out"}),(0,i.jsx)(c.default,{src:"/sugary-web-assets/icons/gpay.svg",alt:"Google Pay",width:36,height:17,className:"object-contain opacity-60 hover:opacity-100 transition-opacity duration-300 ease-in-out"})]})]})})}}}]);

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.