PageSourceSearch

https://www.aceuae.com/_next/static/chunks/2324.4475f1c050dee716.js

js aceuae.com collected 2026-09-24 22:29:10 UTC 2,318 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2324],{12324:(e,l,a)=>{"use strict";a.r(l),a.d(l,{default:()=>h});var r=a(95155),t=a(39419),i=a(12115),s=a(61432),d=a(83789),n=a.n(d),u=a(23973),o=a(32009),c=a(2841),p=a(69213),m=a(93439);let h=e=>{var l,a;let{genericData:d,currencyValue:h,productDetails:g}=e,{isMobile:v}=(0,p.Y)(),{locale:_}=(0,m.P)(),[f,N]=(0,i.useState)([]),[P,x]=(0,i.useState)(!1),y=(0,i.useRef)(!1),b=(0,i.useRef)(new Set),{fetchRecommendations:w,fetchProductsFromData:D}=(0,u.G)(null==d||null==(l=d.masterData)?void 0:l.data,_);(0,i.useEffect)(()=>{y.current||(y.current=!0,E())},[]);let S=(e,l)=>{x(!1),N(a=>{let r=[...a];return r[l]=e,r}),j(e,l)},j=async(e,l)=>{let a=(null==e?void 0:e.products)||[];if(!a.length||b.current.has(e.id))return;let r=await D(a),t=(null==r?void 0:r.length)?r:a;(null==r?void 0:r.length)&&N(e=>{let a=[...e];return a[l]={...a[l],products:r},a}),b.current.add(e.id),(0,o.lp)({data:t,recommendationId:null==e?void 0:e.id,title:null==e?void 0:e.title,currencyValue:h})},E=async()=>{try{x(!0);let e=await w({categoryType:"harware",pageName:t.pageName.PDP_RECOMMENDATION,isMultiple:!0,items:{[null==g?void 0:g.barcode]:1},onResult:S});if(!e||!Array.isArray(e))return void x(!1);e.length||x(!1),N(l=>(null==l?void 0:l.length)?e.map((e,a)=>{var r;let t=l[a];return(null==t||null==(r=t.products)?void 0:r.length)?t:e}):e)}catch(e){x(!1)}};return(0,r.jsxs)("div",{className:n().mainWrapper,children:[P&&(0,r.jsx)("div",{className:n().sliderWrapper,children:(0,r.jsx)("div",{className:"d-100 d-flex flex-row mb-3 gap-2",children:Array(v?2:5).fill(0).map((e,l)=>(0,r.jsx)(c.A,{isMobile:v},l))})}),null==f||null==(a=f.map)?void 0:a.call(f,e=>{let{id:l,title:a,products:t}=e;return t&&t.length>0&&(0,r.jsxs)("div",{className:n().sliderWrapper,children:[(0,r.jsx)("h2",{className:"".concat(v?"subtitle-bold":"heading-xl-bold"),children:a}),(0,r.jsx)(s.default,{products:t,currencyValue:h,genericData:d,deskTopSlidesToShow:5,mobileSlidesToShow:2.5,gapDesktop:24,showScrollbar:!1,customProductCardClass:n().productCard,pageName:"Product Details Page",pageType:"PDP",item_list_id:l,item_list_name:a,priority:!0,loading:"eager"})]},l)})]})}},83789:e=>{e.exports={mainWrapper:"PDPRecommendation_mainWrapper__7IvFI",sliderWrapper:"PDPRecommendation_sliderWrapper__oOENE"}}}]);

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.