PageSourceSearch

https://www.anslation.com/_next/static/chunks/44467.f657c195b8645505.js

js anslation.com collected 2026-09-24 14:39:14 UTC 16,632 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44467],{4751:(e,t,r)=>{r.d(t,{GC:()=>u,eo:()=>d,m0:()=>x,o1:()=>m});var a=r(95155),s=r(98500),n=r.n(s),o=r(12115),l=r(43476),i=r(23169);let c="anslation-store-toast";function d(e){window.dispatchEvent(new CustomEvent(c,{detail:e}))}function u(e){d({actionHref:`${i.UO}/cart`,actionLabel:"View cart",message:`${e} added to cart`,tone:"success"})}function m(){let[e,t]=(0,o.useState)(null);return((0,o.useEffect)(()=>{let e=0;function r(r){let a=r.detail;a?.message&&(t(a),window.clearTimeout(e),e=window.setTimeout(()=>t(null),3200))}return window.addEventListener(c,r),()=>{window.removeEventListener(c,r),window.clearTimeout(e)}},[]),e)?(0,a.jsx)("div",{role:"status","aria-live":"polite",className:"anslation-store-rise pointer-events-none fixed inset-x-0 bottom-[calc(4.75rem+env(safe-area-inset-bottom))] z-[68] flex justify-center px-4 md:bottom-8",children:(0,a.jsxs)("div",{className:"pointer-events-auto flex max-w-md items-center gap-3 rounded-full border border-[color:var(--anslation-ds-border-strong)] bg-[var(--anslation-ds-surface)] px-4 py-2.5 shadow-[var(--anslation-ds-shadow-md)]",children:[(0,a.jsx)("span",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-[var(--anslation-ds-product-green-soft)] text-[color:var(--anslation-ds-product-green)]",children:(0,a.jsx)(l.A,{size:16,children:"info"===e.tone?"lucide:info":"lucide:check"})}),(0,a.jsx)("p",{className:"min-w-0 flex-1 truncate text-xs font-semibold text-[color:var(--anslation-ds-text)]",children:e.message}),e.actionHref&&e.actionLabel?(0,a.jsx)(n(),{href:e.actionHref,className:"shrink-0 text-xs font-bold text-[color:var(--anslation-ds-accent-hover)] no-underline hover:underline",children:e.actionLabel}):null]})}):null}function x(){let[e,t]=(0,o.useState)(!1);return((0,o.useEffect)(()=>{function e(){let e=!!document.querySelector("[data-anslation-sticky-cart]");t(window.scrollY>1200&&!e)}return e(),window.addEventListener("scroll",e,{passive:!0}),window.addEventListener("storage",e),()=>{window.removeEventListener("scroll",e),window.removeEventListener("storage",e)}},[]),e)?(0,a.jsx)("button",{type:"button",onClick:()=>window.scrollTo({top:0}),"aria-label":"Back to top",className:"anslation-store-press anslation-store-rise fixed right-4 bottom-[calc(4.75rem+env(safe-area-inset-bottom))] z-[65] flex h-11 w-11 items-center justify-center rounded-full border border-[color:var(--anslation-ds-border-strong)] bg-[var(--anslation-ds-surface)] text-[color:var(--anslation-ds-text-soft)] shadow-[var(--anslation-ds-shadow-md)] md:right-8 md:bottom-8",children:(0,a.jsx)(l.A,{size:18,children:"lucide:arrow-up"})}):null}},15526:(e,t,r)=>{r.d(t,{Aq:()=>i,OU:()=>o,Zj:()=>n,yE:()=>l});var a=r(23169);let s="anslation-storefront-cart-change";function n(){try{var e;let t=window.localStorage.getItem(a.bm);return t?(e=JSON.parse(t),Array.isArray(e)?e.reduce((e,t)=>{let r=Number(t?.quantity);return e+(Number.isFinite(r)?Math.max(0,r):0)},0):0):0}catch{return 0}}function o(e){try{window.localStorage.setItem(a.bm,JSON.stringify(e))}catch{}window.dispatchEvent(new Event(s))}function l(e){function t(t){let{key:r}=t;(r===a.bm||null==r)&&e()}return window.addEventListener(s,e),window.addEventListener("storage",t),window.addEventListener("focus",e),()=>{window.removeEventListener(s,e),window.removeEventListener("storage",t),window.removeEventListener("focus",e)}}function i(e){let t=e.trim();return t?`${t} added to cart.`:"Added to cart."}},44467:(e,t,r)=>{r.d(t,{U:()=>h,X:()=>f});var a=r(95155),s=r(98500),n=r.n(s),o=r(73321),l=r(12115),i=r(29722),c=r(43476),d=r(71261),u=r(4751),m=r(15526),x=r(23169);function f(e){let[t,r]=(0,l.useState)(!1),a=(0,l.useRef)(e);return(0,l.useEffect)(()=>{if(a.current===e)return;a.current=e,r(!0);let t=window.setTimeout(()=>r(!1),260);return()=>window.clearTimeout(t)},[e]),t}function h(e){let{actions:t=[],cartHref:r=`${x.UO}/cart`,children:s,hideTrack:h=!1,pageLabel:p}=e,b=function(){let[e,t]=(0,l.useState)(0);return(0,l.useEffect)(()=>{function e(){t((0,m.Zj)())}return e(),(0,m.yE)(e)},[]),e}(),v=(0,o.useRouter)(),g=(0,o.usePathname)()||"",w=g.includes("/products/"),j=g.startsWith(`${x.UO}/cart`),y=g.startsWith(`${x.UO}/cart`)?"cart":g.startsWith(x.S$)?"track":g.startsWith(`${x.UO}/search`)||g.startsWith(`${x.UO}/categories`)||g.startsWith(`${x.UO}/departments`)||g.startsWith(`${x.UO}/deals`)?"browse":g===x.UO?"store":"",N=f(b);return(0,a.jsxs)("main",{"data-anslation-store-surface":!0,className:"min-h-screen max-w-full overflow-x-clip bg-[var(--anslation-ds-product-surface)] pb-16 text-[color:var(--anslation-ds-text)] lg:pb-[var(--anslation-store-bottom-bar-clearance,0px)]",children:[(0,a.jsx)("header",{className:"sticky top-0 z-40 border-b border-[color:var(--anslation-ds-border)] bg-[color-mix(in_srgb,var(--anslation-ds-surface)_95%,transparent)] shadow-[var(--anslation-ds-shadow-sm)] backdrop-blur-xl",children:(0,a.jsxs)("div",{className:"mx-auto flex w-full max-w-7xl items-center gap-2 px-4 py-2 sm:gap-3 md:px-8 md:py-3",children:[(0,a.jsx)("button",{type:"button",onClick:()=>{window.history.length>1?v.back():v.push(x.UO)},"aria-label":"Go back","data-testid":"store-shell-back",className:"anslation-store-press -ml-2 flex h-11 w-11 shrink-0 items-center justify-center rounded-full text-[color:var(--anslation-ds-text)] transition hover:bg-[var(--anslation-ds-product-primary-soft)] md:hidden",children:(0,a.jsx)(c.A,{size:22,children:"lucide:arrow-left"})}),(0,a.jsx)("p",{className:"min-w-0 flex-1 truncate text-base font-semibold tracking-[-0.02em] text-[color:var(--anslation-ds-text)] md:hidden",children:p}),(0,a.jsxs)(n(),{href:x.UO,className:"hidden min-w-0 items-center gap-3 rounded-full pr-2 no-underline md:flex",children:[(0,a.jsx)("img",{className:"h-10 w-10 shrink-0 rounded-[var(--anslation-ds-radius-lg)] bg-[var(--anslation-ds-surface)] object-contain p-2 ring-1 ring-[color:var(--anslation-ds-border-strong)]",src:"/assets/images/logo/anslation-mark.svg",width:40,height:40,decoding:"async",alt:"Anslation logo"}),(0,a.jsxs)("div",{className:"min-w-0 leading-tight",children:[(0,a.jsx)("p",{className:"truncate text-base font-semibold tracking-[-0.03em] text-[color:var(--anslation-ds-text)] sm:text-lg",children:"Anslation Store"}),(0,a.jsx)("p",{className:"truncate text-[0.68rem] font-bold tracking-[0.14em] text-[color:var(--anslation-ds-product-primary)] uppercase",children:p})]})]}),(0,a.jsxs)("div",{className:"ml-auto flex items-center gap-2",children:[t.map(e=>(0,a.jsxs)(n(),{href:e.href,className:"hidden items-center gap-2 rounded-full border border-[color:var(--anslation-ds-border-strong)] bg-[var(--anslation-ds-surface)] px-4 py-2.5 text-sm font-semibold text-[color:var(--anslation-ds-text-soft)] no-underline transition hover:border-[color:var(--anslation-ds-product-primary-border)] hover:bg-[var(--anslation-ds-product-primary-soft)] sm:inline-flex",children:[e.icon?(0,a.jsx)(c.A,{size:16,children:e.icon}):null,e.label]},e.href)),h?null:(0,a.jsx)(n(),{href:x.S$,className:"hidden rounded-full border border-[color:var(--anslation-ds-border-strong)] bg-[var(--anslation-ds-surface)] px-4 py-2.5 text-sm font-semibold text-[color:var(--anslation-ds-text-soft)] no-underline transition hover:border-[color:var(--anslation-ds-product-primary-border)] hover:bg-[var(--anslation-ds-product-primary-soft)] sm:inline-flex",children:"Track"}),(0,a.jsxs)(n(),{href:r,className:"anslation-store-press inline-flex items-center gap-2 rounded-full bg-[var(--anslation-ds-product-primary)] px-4 py-2.5 text-sm font-semibold text-[color:var(--anslation-ds-on-accent)] no-underline transition hover:bg-[var(--anslation-ds-product-primary-hover)]",children:[(0,a.jsx)(c.A,{size:16,children:"lucide:shopping-cart"}),(0,a.jsx)("span",{className:"hidden sm:inline",children:"Cart"}),(0,a.jsx)("span",{className:N?"anslation-store-bump inline-block":"inl
1ine-block",children:b})]})]})]})}),(0,a.jsx)("div",{id:"anslation-main-content","data-anslation-main-content":"true",tabIndex:-1,children:s}),(0,a.jsx)(u.o1,{}),(0,a.jsx)(u.m0,{}),(0,a.jsx)(d.H,{}),w||j?null:(0,a.jsx)("nav",{"aria-label":"Store quick navigation",className:"fixed inset-x-0 bottom-0 z-[60] border-t border-[color:var(--anslation-ds-border)] bg-[color-mix(in_srgb,var(--anslation-ds-surface)_95%,transparent)] pb-[env(safe-area-inset-bottom)] backdrop-blur lg:hidden",children:(0,a.jsxs)("div",{className:"mx-auto grid max-w-md grid-cols-4",children:[(0,a.jsxs)(n(),{href:x.UO,className:(0,i.A)("flex min-h-14 flex-col items-center justify-center gap-1 no-underline transition","store"===y?"font-bold text-[color:var(--anslation-ds-product-primary)]":"text-[color:var(--anslation-ds-text-soft)]"),"aria-current":"store"===y?"page":void 0,children:[(0,a.jsx)(c.A,{size:20,children:"lucide:store"}),(0,a.jsx)("span",{className:"text-[0.68rem] font-bold",children:"Store"})]}),(0,a.jsxs)(n(),{href:`${x.UO}/search`,className:(0,i.A)("flex min-h-14 flex-col items-center justify-center gap-1 no-underline transition","browse"===y?"font-bold text-[color:var(--anslation-ds-product-primary)]":"text-[color:var(--anslation-ds-text-soft)]"),"aria-current":"browse"===y?"page":void 0,children:[(0,a.jsx)(c.A,{size:20,children:"lucide:search"}),(0,a.jsx)("span",{className:"text-[0.68rem] font-bold",children:"Search"})]}),(0,a.jsxs)(n(),{href:x.S$,className:(0,i.A)("flex min-h-14 flex-col items-center justify-center gap-1 no-underline transition","track"===y?"font-bold text-[color:var(--anslation-ds-product-primary)]":"text-[color:var(--anslation-ds-text-soft)]"),"aria-current":"track"===y?"page":void 0,children:[(0,a.jsx)(c.A,{size:20,children:"lucide:package-search"}),(0,a.jsx)("span",{className:"text-[0.68rem] font-bold",children:"Track"})]}),(0,a.jsxs)(n(),{href:r,className:(0,i.A)("relative flex min-h-14 flex-col items-center justify-center gap-1 no-underline transition","cart"===y?"font-bold text-[color:var(--anslation-ds-product-primary)]":"text-[color:var(--anslation-ds-text-soft)]"),"aria-current":"cart"===y?"page":void 0,children:[(0,a.jsxs)("span",{className:"relative",children:[(0,a.jsx)(c.A,{size:20,children:"lucide:shopping-cart"}),b>0?(0,a.jsx)("span",{className:(0,i.A)("absolute -top-2 -right-3 flex h-5 min-w-5 items-center justify-center rounded-full bg-[var(--anslation-ds-product-primary)] px-1 text-[0.6rem] font-black text-[color:var(--anslation-ds-on-accent)]",N&&"anslation-store-bump"),children:b>99?"99+":b}):null]}),(0,a.jsx)("span",{className:"text-[0.68rem] font-bold",children:"Cart"})]})]})})]})}},71261:(e,t,r)=>{r.d(t,{H:()=>h});var a=r(95155),s=r(12115),n=r(98500),o=r.n(n),l=r(43476),i=r(23169),c=r(29722);let d="anslation-storefront-theme-v1";function u(e,t){e&&(e.dataset.anslationStoreTheme=t)}function m(){let[e,t]=(0,s.useState)("light"),[r,n]=(0,s.useState)(!1),o=(0,s.useRef)(null),i=(0,s.useRef)(null);return(0,s.useEffect)(()=>{i.current=o.current?.closest("[data-anslation-store-surface]")||null;let e=null;try{e=window.localStorage.getItem(d)}catch(t){e=null}let r="dark"===e||"light"===e?e:document.documentElement.classList.contains("dark")?"dark":"light";t(r),u(i.current,r),n(!0)},[]),(0,a.jsx)("div",{ref:o,role:"group","aria-label":"Store appearance",className:"inline-flex items-center gap-1 rounded-full border border-[color:var(--anslation-ds-border)] bg-[var(--anslation-ds-surface)] p-1",children:[{icon:"lucide:sun",label:"Light",value:"light"},{icon:"lucide:moon",label:"Dark",value:"dark"}].map(s=>{let n=r&&e===s.value;return(0,a.jsxs)("button",{type:"button",onClick:()=>(function(e){t(e),u(i.current,e);try{window.localStorage.setItem(d,e)}catch(e){}})(s.value),"aria-pressed":n,className:(0,c.A)("inline-flex min-h-8 items-center gap-1.5 rounded-full px-3 text-xs font-bold transition",n?"bg-[var(--anslation-ds-product-primary)] text-[color:var(--anslation-ds-on-accent)]":"text-[color:var(--anslation-ds-text-soft)] hover:bg-[var(--anslation-ds-hover)]"),children:[(0,a.jsx)(l.A,{size:14,children:s.icon}),s.label]},s.value)})})}let x=[{title:"Shop",links:[{href:`${i.UO}/search`,label:"All products"},{href:`${i.UO}/departments`,label:"All departments"},{href:`${i.UO}/sellers`,label:"All sellers"},{href:`${i.UO}/categories/groceries`,label:"Groceries"},{href:`${i.UO}/digital-products`,label:"Digital products"},{href:`${i.UO}/deals`,label:"Deals and offers"},{href:`${i.UO}/compare`,label:"Compare products"}]},{title:"Help",links:[{href:`${i.UO}/account`,label:"Your account"},{href:`${i.UO}/orders`,label:"Your orders"},{href:`${i.UO}/help`,label:"Help centre"},{href:i.S$,label:"Track your order"},{href:i.S$,label:"Returns & support"},{href:`${i.UO}/digital-products/library`,label:"Buyer library"},{href:`${i.UO}/wishlist`,label:"Your wishlist"},{href:`${i.UO}/cart`,label:"Your cart"}]},{title:"Sell & business",links:[{href:`${i.UO}/sell`,label:"Sell on Anslation Store"},{href:`${i.UO}/intelligence`,label:"Business & bulk buying"},{href:`${i.UO}/intelligence`,label:"Store tools"}]},{title:"Anslation",links:[{href:"/why-anslation",label:"About Anslation"},{href:i.UO,label:"Anslation Store"},{href:`${i.UO}/intelligence`,label:"For developers & agents"}]}],f=[{icon:"lucide:shield-check",label:"Buyer protection"},{icon:"lucide:badge-check",label:"Verified sellers"},{icon:"lucide:package-search",label:"Live order tracking"},{icon:"lucide:lock",label:"Assured checkout"}],h=(0,s.memo)(function(){return(0,a.jsxs)("footer",{className:"mt-12 border-t border-[color:var(--anslation-ds-border)] bg-[var(--anslation-ds-surface)]",children:[(0,a.jsxs)("a",{href:"#anslation-main-content",className:"anslation-store-press flex w-full items-center justify-center gap-2 border-b border-[color:var(--anslation-ds-border)] bg-[var(--anslation-ds-soft)] py-3 text-xs font-bold text-[color:var(--anslation-ds-text-soft)] no-underline transition hover:bg-[var(--anslation-ds-product-primary-soft)] hover:text-[color:var(--anslation-ds-product-primary)]",children:[(0,a.jsx)(l.A,{size:14,children:"lucide:chevron-up"}),"Back to top"]}
1),(0,a.jsxs)("div",{className:"mx-auto w-full max-w-7xl px-4 py-10 md:px-8",children:[(0,a.jsx)("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-3 border-b border-[color:var(--anslation-ds-border)] pb-6",children:f.map(e=>(0,a.jsxs)("span",{className:"inline-flex items-center gap-2 text-xs font-semibold text-[color:var(--anslation-ds-text-soft)]",children:[(0,a.jsx)(l.A,{size:16,className:"text-[color:var(--anslation-ds-product-primary)]",children:e.icon}),e.label]},e.label))}),(0,a.jsx)("div",{className:"mt-8 grid [&>*]:min-w-0 grid-cols-2 gap-8 min-[768px]:grid-cols-4",children:x.map(e=>(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-xs font-bold tracking-[0.14em] text-[color:var(--anslation-ds-muted)] uppercase",children:e.title}),(0,a.jsx)("ul",{className:"mt-3 space-y-1",children:e.links.map(t=>(0,a.jsx)("li",{children:(0,a.jsx)(o(),{href:t.href,className:"inline-flex min-h-8 items-center text-sm font-medium text-[color:var(--anslation-ds-text-soft)] no-underline transition hover:text-[color:var(--anslation-ds-product-primary)] sm:min-h-11 lg:min-h-8",children:t.label})},`${e.title}-${t.label}`))})]},e.title))}),(0,a.jsxs)("div",{className:"mt-10 flex flex-col gap-3 border-t border-[color:var(--anslation-ds-border)] pt-6 sm:flex-row sm:items-center sm:justify-between",children:[(0,a.jsxs)(o(),{href:i.UO,className:"flex items-center gap-3 no-underline",children:[(0,a.jsx)("img",{className:"h-9 w-9 rounded-[var(--anslation-ds-radius-lg)] bg-[var(--anslation-ds-surface)] object-contain p-1.5 ring-1 ring-[color:var(--anslation-ds-border-strong)]",src:"/assets/images/logo/anslation-mark.svg",width:36,height:36,decoding:"async",alt:"Anslation logo"}),(0,a.jsx)("span",{className:"text-sm font-semibold text-[color:var(--anslation-ds-text)]",children:"Anslation Store"})]}),(0,a.jsxs)("div",{className:"flex flex-col items-start gap-3 sm:flex-row sm:items-center sm:gap-5",children:[(0,a.jsx)(m,{}),(0,a.jsxs)("p",{className:"text-xs text-[color:var(--anslation-ds-muted)]",children:["\xa9 ",new Date().getFullYear()," Anslation. Prices include taxes where applicable."]})]})]})]})]})})},73321:(e,t,r)=>{var a=r(74645);r.o(a,"useParams")&&r.d(t,{useParams:function(){return a.useParams}}),r.o(a,"usePathname")&&r.d(t,{usePathname:function(){return a.usePathname}}),r.o(a,"useRouter")&&r.d(t,{useRouter:function(){return a.useRouter}}),r.o(a,"useSearchParams")&&r.d(t,{useSearchParams:function(){return a.useSearchParams}}),r.o(a,"useServerInsertedHTML")&&r.d(t,{useServerInsertedHTML:function(){return a.useServerInsertedHTML}})}}]);

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.