PageSourceSearch

https://www.aldi.ie/_nuxt/CavdpgxM2.js

js aldi.ie collected 2026-09-24 17:39:01 UTC 1,313 bytes, 1 lines download raw bytes

1import{k as e,m as t}from"./BuVWelWH.js";import{Ht as n,g as r,vn as i}from"./BV8rayHV.js";import{d as a,rr as o}from"./BsYtQRC8.js";import{r as s}from"./MPuz5BRY.js";import{t as c}from"./sT0LQLXz.js";var l=(l=!0)=>{let{$productClient:u,$config:d,$notificationService:f}=e(),p=c(s.GENERAL,`useBuyAgain`),m=o(),h=a(),g=t(),_=d.public.WEB_BUY_AGAIN_PRODUCTS_PER_PAGE,v=r(()=>{let e=parseInt(A(`page`));return Number.isNaN(e)||e===0?0:e-1}),y=i([]),b=i({offset:0,limit:_,totalCount:0}),x=i([]),S=i(!1),C=i(!0),w=r(()=>!S.value&&!C.value),T=r(()=>b.value.offset/b.value.limit+1),E=r(()=>Math.ceil(b.value.totalCount/b.value.limit)),D=()=>(v.value||0)*b.value.limit,O=async()=>{await k(_,D())};async function k(e,t){if(!m.isLoggedIn){C.value=!1;return}try{S.value=!0;let n=await u.getBuyAgainProducts(m.userId,h.selectedService,t,e);y.value=n.data,b.value=n.meta.pagination,x.value=n.disabledProductSkus}catch(e){p.error(`BuyAgainProducts: failed to load buy again products`,e),f.notifyByError(e)}finally{S.value=!1,C.value=!1}}let A=e=>Array.isArray(g.query[e])?g.query[e][0]:g.query[e];return l&&n(()=>g.query,async()=>{await O()},{deep:!0}),{products:y,pagination:b,isInitialized:w,isInitializing:C,isLoading:S,currentPage:T,pagesLength:E,disabledProductSkus:x,getPaginatedProducts:O,getProducts:k}};export{l as t};

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.