PageSourceSearch

https://sugary.me/_next/static/chunks/6336-c374a37dcd7ed077.js

js sugary.me collected 2026-10-01 14:20:44 UTC 11,597 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6336],{2123:(t,e,n)=>{n.d(e,{Tq:()=>s,qY:()=>u});var r=n(26250);function a(){let t=window.oaiq;return"function"==typeof t?t:null}function i(t,e){if(Number.isFinite(t)&&!(t<0))try{let n=e.trim().toUpperCase(),r=new Intl.NumberFormat("en",{style:"currency",currency:n}).resolvedOptions().maximumFractionDigits??2;return Math.round(t*10**r)}catch{return}}function o(t,e,n="USD"){let r,a=n.trim().toUpperCase(),c=null==e?void 0:i(e,a);return{type:"contents",...null!=c&&{amount:c,currency:a},...t.length>0&&{contents:(r=a.trim().toUpperCase(),t.map(t=>{let e=null==t.price?void 0:i(t.price,r),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:r}}}))}}}function c(t,e,n){if((0,r.R)())try{let r=a();if(!r)return;n?r("measure",t,e,n):r("measure",t,e)}catch{}}function u(t){try{a()?.("consent",t)}catch{}}let s={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:()=>y,FJ:()=>u,KF:()=>f,M9:()=>_,Ot:()=>l,nY:()=>s,p_:()=>m,pl:()=>g});var r=n(51619),a=n(7268),i=n(17050);let o="USD",c=Object.fromEntries(Object.entries(i.vF).map(([t,e])=>[String(e),t.replace(/([a-z0-9])([A-Z])/g,"$1 $2")]));function u(t){if(null!=t)return c[String(t)]??String(t)}function s(t){(0,r.sendGAEvent)("set",{user_id:null==t?null:String(t)})}function d(t,e={}){(0,r.sendGAEvent)("event",t,e)}function l(t){return{item_id:t.ItemId,item_name:t.Material?.Title||`Item ${t.ItemId}`,item_brand:t.Material?.BrandName||t.Store?.Name,item_category:u(t.MaterialTypeId),item_variant:t.ItemVariantId??void 0,affiliation:t.Store?.Name,price:(0,a.un)(t),quantity:t.Quantity}}function m(t,e){return{item_id:t.Id,item_name:t.Title||`Voucher ${t.Id}`,item_category:u(t.TypeId??i.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 f(t){return t.reduce((t,e)=>t+(0,a.bT)(e),0)}function _(t,e,n){return{item_id:t.Id,item_name:t.Title||`Item ${t.Id}`,item_category:u(t.TypeId),item_variant:e?.Id??void 0,affiliation:t.Store?.Name||void 0,price:e?.Price??void 0,quantity:n}}function y(t,e){return{item_id:t.Id,item_name:t.Title||`Item ${t.Id}`,item_brand:t.BrandName||void 0,item_category:u(t.TypeId),item_variant:t.VariantId??void 0,affiliation:t.StoreName||void 0,price:t.SalesPrice??void 0,index:e}}let g={viewItem(t){d("view_item",{currency:o,value:t.price??0,items:[t]})},viewItemList(t,e){t.length&&d("view_item_list",{item_list_name:e,items:t})},selectItem(t,e){d("select_item",{item_list_name:e,items:[t]})},addToCart(t,e){t.length&&d("add_to_cart",{currency:o,value:e,items:t})},removeFromCart(t,e){t.length&&d("remove_from_cart",{currency:o,value:e,items:t})},beginCheckout(t,e){t.length&&d("begin_checkout",{currency:o,value:e,items:t})},viewCart(t,e){t.length&&d("view_cart",{currency:o,value:e,items:t})},addShippingInfo(t,e,n){t.length&&d("add_shipping_info",{currency:o,value:e,shipping_tier:n,items:t})},addPaymentInfo(t,e,n){d("add_payment_info",{currency:o,value:e,payment_type:n,items:t})},purchase(t){d("purchase",{transaction_id:String(t.transactionId),currency:t.currency,value:t.value,items:t.items})},search(t){t.trim()&&d("search",{search_term:t.trim()})},login(t){d("login",{method:t})},signUp(t){d("sign_up",{method:t})}}},23155:(t,e,n)=>{n.d(e,{k:()=>o});var r=n(35844),a=n(2125),i=n(76348);async function o(t){try{if(!t.storeIds||0===t.storeIds.length)return[];let e={storeIds:t.storeIds.join(","),addressId:t.addressId,targetDate:t.targetDate,timezoneOffset:t.timezoneOffset,countryIso2:t.countryIso2,stateUId:t.stateUId,cityUId:t.cityUId,adminZoneUId:t.adminZoneUId,latitude:t.latitude,longitude:t.longitude,skipDynamicPriceFetch:t.skipDynamicPriceFetch};t.productIds&&t.productIds.length>0&&(e.productIds=t.productIds.join(",")),t.bespokeRequestIds&&t.bespokeRequestIds.length>0&&(e.bespokeRequestIds=t.bespokeRequestIds.join(","));let n=(0,i.B)(e),o=await r.u.get(a.HD.GET_ALL_STORES+n);return await o.json()}catch(t){return console.error("Failed to fetch delivery profiles:",t),[]}}},26250:(t,e,n)=>{n.d(e,{R:()=>i,p:()=>a});let r=!1;function a(t){r=t}function i(){return r}},27714:(t,e,n)=>{n.d(e,{Hx:()=>o,Rr:()=>c});var r=n(35844),a=n(2125);let i=new Map;function o(t,e){let{fractionDigits:n=2,showSymbol:r=!0,showFree:a=!1,currency:o,ignoreConversion:c=!1}=e,u=r?o?.Symbol??"$":"";if(null==t)return`${u}N/A`;if(a&&0===t)return"FREE";let s=o?.RoundOff?0:n,d=function(t,e,n={}){let{fractionDigits:r=2,ignoreConversion:a=!1}=n,i=a?1:Number(e?.ConversionRate??1),o=e?.RoundOff?0:r;return Number((t*i).toFixed(o))}(t,o,{fractionDigits:n,ignoreConversion:c}),l=(i.has(s)||i.set(s,new Intl.NumberFormat("en-US",{minimumFractionDigits:s,maximumFractionDigits:s})),i.get(s));return u?`${u} ${l.format(d)}`:l.format(d)}async function c(){try{let t=await r.u.get(a.Xv,{cache:"no-store"});return await t.json()}catch{return null}}},44369:(t,e,n)=>{n.d(e,{D:()=>c,MarketCurrencyProvider:()=>o});var r=n(95155),a=n(12115);let i=(0,a.createContext)(null);function o({currency:t,children:e}){return(0,r.jsx)(i.Provider,{value:t,children:e})}function c(){return(0,a.useContext)(i)}},51781:(t,e,n)=>{n.d(e,{BK:()=>s,QB:()=>l,SF:()=>f,T1:()=>_,_d:()=>u,a8:()=>g,checkStoreInCoverage:()=>y,oZ:()=>d});var r=n(35844),a=n(2125),i=n(76348),o=n(85702),c=n(68054);async function u(t,e){try{let n=(0,i.B)({storeId:`${t}`,locale:e}),o=await r.u.get(a.er.GET_BY_ID+n);return await o.json()}catch{return null}}async function s(t){try{let e=(0,i.B)({storeId:`${t}`}),n=await r.u.get(a.er.FOLLOW_STORE+e);return await n.json()}catch(t){return{Success:!1,Message:t.message}}}async function d(t){try{let e=(0,i.B)({storeId:`${t}`}),n=await r.u.get(a.er.UNFOLLOW_STORE+e);return await n.json()}catch(t){return{Success:!1,Message:t.message}}}async function l(){try{let t=await o.O.get(a.er.GET_ALL_UIDS);return await t.json()}catch{return[]}}async function m(){try{let t=await o.O.get(a.er.GET_ALL_UIDS_WITH_COUNTRY);return await t.json()}catch{return[]}}async function f(){let t=(0,c.JH)();return(await m()).filter(e=>(0,c.$F)(e.CountryIso2)===t)}async function _(t){try{let e=(0,i.B)({storeId:`${t}`}),n=await r.u.get(a.er.IS_FOLLOWING+e);return(await n.json()).IsFollowing}catch{return!1}}async function y(t,e,n,o,c,u,s,d){try{let l=(0,i.B)({countryIso2:t,stateUId:e,cityUId:n,adminZoneUId:o,latitude:c,longitude:u,storeId:s,uid:d}),m=await r.u.get(a.er.CHECK_IN_COVERAGE+l);return(await m.json()).InCoverage}catch{return!0}}async function g(t,e,n,r){try{let c=(0,i.B)({storeId:t,uid:e,skip:n,limit:r}),u=await o.O.get(a.er.STORE_REVIEWS+c);return await u.json()}catch{return[]}}},57185:(t,e,n)=>{n.d(e,{AS:()=>c,Ok:()=>s,Xf:()=>m,gX:()=>d,hX:()=>u,q$:()=>l});var r=n(76348),a=n(85702),i=n(2125),o=n(35844);n(51781),n(68054);let c=async(t={},e={})=>{try{void 0==t.useIpLocation&&(t.useIpLocation=!1);let n=(0,r.B)(t),o=await a.O.get(`${i.Ax.GET_ALL}${n}`,e);return await o.json()}catch(t){return console.error("Error fetching all products:",t),null}},u=async(t={})=>{try{let e=(0,r.B)(t),n=await a.O.get(`${i.Ax.GROUPED_PRODUCTS}${e}`);return await n.json()}catch(t){return console.error("Error fetching all grouped products:",t),null}};async function s(t){try{void 0==t.useIpLocation&&(t.useIpLocation=!1);let e=(0,r.B)(t),n=`${i.Ax.GET_BY_ID}${e}`;return(await a.O.get(n)).json()}catch{return null}}async function d(t,e={}){try{let n=(0,r.B)(t),o=await a.O.get(`${i.mz.GET_ALL}${n}`,e);return await o.json()}catch(t){return console.error("Error fetching all products:",t),null}}let l=async t=>{try{let e=(0,r.B)(t),n=await o.u.get(`${i.ZX.GET_ALL_WITH_CATEGORIES}${e}`);return await n.json()}catch{return[]}};async function m(t){try{let e=await a.O.get(`${i.G7.GET_BY_ID}?id=${t}`);return await e.json()}catch{return null}}},62756:(t,e,n)=>{n.d(e,{$_:()=>c,UJ:()=>l,Xd:()=>i});var r=n(8946),a=n(26250);let i=()=>"function"==typeof window.fbq&&(0,a.R)();function o(t,e,n){i()&&(n?window.fbq("track",t,e,{eventID:n}):window.fbq("track",t,e))}function c(){o("PageView")}function u(t){return t.map(t=>String(t.item_id))}function s(t){return t.map(t=>({id:String(t.item_id),quantity:t.quantity??1,...null!=t.price&&{item_price:t.price}}))}function d(t){return t.reduce((t,e)=>t+(e.quantity??1),0)}let l={viewContent(t,e){o("ViewContent",{content_ids:[String(t.item_id)],contents:s([t]),content_name:t.item_name,content_type:"product",value:e,currency:r.$x})},search(t){t.trim()&&o("Search",{search_string:t.trim()})},addToCart(t,e){t.length&&o("AddToCart",{content_ids:u(t),contents:s(t),content_type:"product",value:e,currency:r.$x})},initiateCheckout(t,e){t.length&&o("InitiateCheckout",{content_ids:u(t),contents:s(t),content_type:"product",num_items:d(t),value:e,currency:r.$x})},addPaymentInfo(t,e){o("AddPaymentInfo",{content_ids:u(t),contents:s(t),content_type:"product",value:e,currency:r.$x})},purchase(t){o("Purchase",{content_ids:u(t.items),contents:s(t.items),content_type:"product",num_items:d(t.items),value:t.value,currency:t.currency},`purchase_${t.transactionId}`)},completeRegistration(t){o("CompleteRegistration",{content_name:t,status:!0})}}},74350:(t,e,n)=>{n.d(e,{Cf:()=>l,HM:()=>s,L3:()=>f,ZJ:()=>u,c7:()=>m,lG:()=>o,rr:()=>_,zM:()=>c});var r=n(95155);n(12115);var a=n(52060),i=n(91337);function o({...t}){return(0,r.jsx)(a.bL,{"data-slot":"dialog",...t})}function c({...t}){return(0,r.jsx)(a.l9,{"data-slot":"dialog-trigger",...t})}function u({...t}){return(0,r.jsx)(a.ZL,{"data-slot":"dialog-portal",...t})}function s({...t}){return(0,r.jsx)(a.bm,{"data-slot":"dialog-close",...t})}function d({className:t,...e}){return(0,r.jsx)(a.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",t),...e})}function l({className:t,children:e,disableAnimation:n,overlayClassName:o,...c}){return(0,r.jsxs)(u,{"data-slot":"dialog-portal",children:[(0,r.jsx)(d,{className:(0,i.cn)(n?"!animate-none !duration-0":"",o)}),(0,r.jsx)(a.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 roun
1ded-lg border p-6 shadow-lg duration-100 sm:max-w-lg",n?"!animate-none !duration-0":"",t),...c,children:e})]})}function m({className:t,...e}){return(0,r.jsx)("div",{"data-slot":"dialog-header",className:(0,i.cn)("flex flex-col gap-2 text-center sm:text-left",t),...e})}function f({className:t,...e}){return(0,r.jsx)(a.hE,{"data-slot":"dialog-title",className:(0,i.cn)("text-lg leading-none font-semibold",t),...e})}function _({className:t,...e}){return(0,r.jsx)(a.VY,{"data-slot":"dialog-description",className:(0,i.cn)("text-muted-foreground text-sm",t),...e})}}}]);

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.