PageSourceSearch

https://nzanewzealand.com/_next/static/chunks/9546.ecfe7ba12958e9a4.js

js nzanewzealand.com collected 2026-10-06 08:53:59 UTC 5,054 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9546,8941],{1341:function(e,t,r){"use strict";r.d(t,{P:function(){return v}});var s=r(52322),i=r(2784),o=r(5632),n=r(55572),l=r(52022),a=r(14613),d=r(2926),u=r(49711),c=r(96577),p=r.n(c),_=r(1706),h=r.n(_);const v=(0,n.x)(h())((e=>{let{classes:t,products:r,title:n,banner:c,listId:_="related_pdp",listName:h="related_pdp"}=e;const v=(0,o.useRouter)();return(0,i.useEffect)((()=>{try{r&&(null===v||void 0===v?void 0:v.isReady)&&(0,d.gq)({data:{items:r,listId:n,listName:n},propertyType:"viewItemList"})}catch(e){console.error(e)}}),[null===v||void 0===v?void 0:v.isReady,null===v||void 0===v?void 0:v.asPath,r]),r?(0,s.jsx)(a.F,{title:n,extraClasses:{root:t.root,headingWrapper:t.headingWrapper},children:(0,s.jsxs)(u.G,{extraClasses:{list:t.items},ListElement:"div",scrollAmount:350,children:[c&&(0,s.jsx)("div",{className:t.bannerWrapper,children:(0,s.jsx)(p(),{alt:c.label,src:c.url})}),r.map(((e,r)=>(0,s.jsx)(l.xs,{item:e,listId:_,listName:h,extraClasses:{shopButton:t.shopButton,addToCartButton:t.addToCartButton,images:t.images}},r)))]})}):null}))},14613:function(e,t,r){"use strict";r.d(t,{F:function(){return _}});var s=r(52322),i=r(2784),o=r(83112),n=r(55572),l=r(89268),a=r(19832),d=r(26677),u=r(70517),c=r(41368),p=r.n(c);const _=(0,n.x)(p())((e=>{let{classes:t,title:r,headingVariant:n="h2",children:c,showMoreHandler:p,hasShowMoreBtn:_}=e;const[h,v]=(0,i.useState)(!1),{formatMessage:m}=(0,o.Z)(),g=m({id:"productDetailsSection.showMoreText",defaultMessage:"Show more"}),x=m({id:"productDetailsSection.showLessText",defaultMessage:"Show less"}),f=(0,i.useCallback)((()=>{v(!h),p&&p()}),[p,h]);return(0,s.jsxs)("div",{className:t.root,children:[(0,s.jsxs)("div",{className:t.headingWrapper,children:[r&&(0,s.jsx)(u.X,{variant:n,extraClasses:{root:t.title},children:r}),_&&(0,s.jsx)(d.Ei,{onClick:f,children:h?(0,s.jsxs)("span",{className:t.showMoreBtnInner,children:[(0,s.jsx)(a.V,{height:12,width:12}),x]}):(0,s.jsxs)("span",{className:t.showMoreBtnInner,children:[(0,s.jsx)(l.p,{height:12,width:12}),g]})})]}),c&&c]})}))},8464:function(e,t,r){"use strict";r.d(t,{P:function(){return s.P}});var s=r(1341)},19546:function(e,t,r){"use strict";r.r(t),r.d(t,{RecentlyViewed:function(){return m}});var s=r(52322),i=r(2784),o=r(83112),n=r(55572),l=r(79381),a=r(82654),d=r(13111),u=r(26246),c=r(81259);const p=e=>{let t=[];if(localStorage.getItem(e))try{t=JSON.parse(localStorage.getItem(e))}catch(r){}return t};var _=r(8464),h=r(5166),v=r.n(h);const m=(0,n.x)(v())((e=>{let{classes:t,product:r=null}=e;const n="simple"!==(null===r||void 0===r?void 0:r.type_id)&&(null===r||void 0===r?void 0:r.parentSku)?null===r||void 0===r?void 0:r.parentSku:null===r||void 0===r?void 0:r.sku,{items:h}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const{user:t}=(0,a.ZP)(),{storeCode:r,currencyCode:s}=(0,c.l8)(),[o,n]=(0,i.useState)(p("recently_viewed_items")),[_,h]=(0,i.useState)(!1),v=(0,i.useMemo)((()=>{let t=p("recently_viewed_skus");return e&&t.length>u.c6.recentlyViewed.count&&t.shift(),e&&!t.includes(e)&&(h(!0),t.push(e)),localStorage.setItem("recently_viewed_skus",JSON.stringify(t)),t}),[e]),{data:m}=(0,l.ZP)(e&&_?{filter:{sku:null===v||void 0===v?void 0:v.join(",")},context:{authToken:null===t||void 0===t?void 0:t.token,storeCode:r,currencyCode:s}}:null,d.rv,{revalidateIfStale:!1});return{getRecentlyViewedItems:(0,i.useMemo)((async()=>{var e;if(m&&(null===m||void 0===m||null===(e=m.items)||void 0===e?void 0:e.length)){const e=m.items.sort(((e,t)=>{const r=v.indexOf("simple"!==(null===e||void 0===e?void 0:e.type_id)&&(null===e||void 0===e?void 0:e.parentSku)?e.parentSku:e.sku),s=v.indexOf("simple"!==(null===t||void 0===t?void 0:t.type_id)&&(null===t||void 0===t?void 0:t.parentSku)?t.parentSku:e.sku);return r<s?1:r>s?-1:0}));localStorage.setItem("recently_viewed_items",JSON.stringify(e)),n(e)}return o}),[v,m]),items:o.filter((t=>{let{sku:r}=t;return r!==e}))}}((null===r||void 0===r?void 0:r.sku)?n:null),{formatMessage:v}=(0,o.Z)(),m=v({id:"productPage.recentlyViewedTitle",defaultMessage:"Recently Viewed"});return h.length?(0,s.jsx)(_.P,{title:m,products:h,type:"recently_viewed",extraClasse
1s:{root:t.root}}):null}))},1706:function(e){e.exports={primaryColor:"#153243",root:"productRelationList_root__MULmM",headingWrapper:"productRelationList_headingWrapper__a8Txd",items:"productRelationList_items__Z3jQe",bannerWrapper:"productRelationList_bannerWrapper__kFIsx",shopButton:"productRelationList_shopButton__51vKP",addToCartButton:"productRelationList_addToCartButton__utkxC",images:"productRelationList_images__wMhNK"}},41368:function(e){e.exports={primaryColor:"#153243",root:"productDetailSection_root__q8jdQ",title:"productDetailSection_title__KUbVi",showMoreBtnInner:"productDetailSection_showMoreBtnInner__mNDaQ",headingWrapper:"productDetailSection_headingWrapper__g_QUB"}},5166:function(e){e.exports={primaryColor:"#153243",root:"recentlyViewed_root__pslxa",list:"recentlyViewed_list__CFdWj",title:"recentlyViewed_title__2Vu7V"}}}]);

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.