1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1242],{38008:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSG:()=>v,default:()=>T});var i=a(37876),s=a(14232),r=a(47591),n=function(e){return e.Staging="staging",e.Production="production",e.Development="development",e}({}),o=a(76015),c=a(18813),l=a(99742);let d={space:l.env.CF_SPACE_ID,accessToken:l.env.CF_DELIVERY_ACCESS_TOKEN,environment:l.env.CF_ENVIRONMENT},p={space:l.env.CF_SPACE_ID,accessToken:l.env.CONTENTFUL_PREVIEW_ACCESS_TOKEN,host:l.env.CF_PREVIEW_API_URL,environment:l.env.CF_ENVIRONMENT},u="production"===n.Development?p:d,f=o.U(u),g=async e=>{try{return(await f.getEntries({content_type:"page",...e,include:10})).items.map(e=>e.fields).filter(e=>e.content)}catch(e){throw Error("Fetching static pages failed with the error ".concat(e,"."))}},y=async()=>{try{return(await f.getEntries({content_type:"seoHead","fields.pageType":c.A.ArticleDetail,include:10})).items.map(e=>e)}catch(e){throw Error("Fetching article details failed with the error ".concat(e,"."))}},h=async e=>{try{return(await f.getEntries({content_type:"productHeader",...e,include:10})).items.map(e=>e)}catch(e){throw Error("Fetching article details failed with the error ".concat(e,"."))}},w=async e=>{try{return(await f.getEntries({content_type:"productCategory",...e,include:10})).items.map(e=>e)}catch(e){throw Error("Fetching product category failed with the error ".concat(e,"."))}},m=async()=>{try{return(await f.getEntries({content_type:"pgDataLayer","fields.environment":"production",include:10,limit:1})).items[0].fields}catch(e){throw Error("Fetching Pg Data Layer failed with the error ".concat(e,"."))}},_=async()=>{try{let e=await f.getEntries({content_type:"footer",include:10,limit:1}),t=await f.getEntries({content_type:"header",include:10,limit:1}),a=e.items[0].fields,i=t.items[0].fields;return{footer:a,header:i}}catch(e){throw Error("Fetching global components failed with the error ".concat(e,"."))}},E=async(e,t,a,i)=>{var s,r;switch(null==(s=e.sys)?void 0:s.contentType.sys.id){case"sitemap":{let t=await g({"fields.seoHead.sys.contentType.sys.id":"seoHead"}),a=null==t?void 0:t.filter(e=>!e.seoHead.fields.excludeFromSitemap&&e.seoHead.fields.url).map(e=>({slug:e.seoHead.fields.url.replace("/"+"en-US".toLocaleLowerCase(),""),title:e.seoHead.fields.sitemapTitle||e.seoHead.fields.breadcrumbsTitle||e.seoHead.fields.title||""})),i=new Set;return t.forEach(e=>{e.seoHead.fields.articleCategory&&i.add(e.seoHead.fields.articleCategory.fields.name)}),Object.assign(e.fields,{slugs:a,categories:[...i]}),e}case"articleListing":{if(e.fields.articles)return e;let t=await y();return Object.assign(e.fields,{articles:t}),e}case"productListing":{if(Object.assign(e.fields,{logo:i.logo}),e.fields.products)return e;let a=await w({"fields.categoryListingPage.sys.contentType.sys.id":"seoHead","fields.categoryListingPage.sys.id":t.sys.id,limit:"1"}),s=await h();return a.length&&(s=s.filter(e=>{var t;return null==(t=e.fields.category)?void 0:t.find(e=>{var t;return e.sys.id===(null==a||null==(t=a.at(0))?void 0:t.sys.id)})})),Object.assign(e.fields,{products:s,logo:i.logo}),e}case"listingBanner":case"innovationSteps":return Object.assign(e.fields,{pageType:t.fields.pageType}),e;case"bvDisplayReviews":{let t=a.content.find(e=>["productHeader"].includes(e.sys.contentType.sys.id));if(t)Object.assign(e.fields,{productBvData:null==(r=t.fields.bazaarVoiceData)?void 0:r.fields});else throw Error("Bv Display Reviews component can not be used on the page where productHeader component is not present.");return e}case"articleDetail":return Object.assign(e.fields,{articleId:t.fields.articleRecommenderId||null}),e;case"relatedProducts":return e.fields.products.map(async e=>{let t=e.fields.category.find(e=>e.fields.categoryListingPage);Object.assign(e.fields,{mainCategory:t||null})}),Object.assign(e.fields,{pageType:t.fields.pageType||null}),e;default:return e}};var v=!0;let T=()=>
1{let e=null,[t,a]=(0,s.useState)(null);return e=new URLSearchParams(window.location.search).get("id"),(0,s.useEffect)(()=>{e&&(async()=>{let t=(await g({"sys.id":e}))[0],i=await m(),s=await _(),r=await Promise.all(t.content.map(e=>E(e,t.seoHead,t,s.header)));a({props:{pageInfo:t.seoHead,components:r,pgDataLayer:i,globalComponents:s}})})()},[e]),(0,i.jsx)(i.Fragment,{children:t&&(0,i.jsx)(r.default,{...t.props})})}},42634:()=>{},47591:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSG:()=>n,default:()=>o});var i=a(37876);a(14232);var s=a(52772),r=a(80688),n=!0;let o=e=>{let{components:t,pageInfo:a,globalComponents:n,pgDataLayer:o,backgroundImage:c}=e,l=(0,s.x)(t,a.fields),d=t.map(e=>e.sys.contentType.sys.id),p=t.find(e=>"productHeader"===e.sys.contentType.sys.id);return(0,i.jsx)(r.default,{pageInfo:a.fields,pgDataLayer:o,header:n.header,footer:n.footer,componentIds:d,backgroundImage:c,productData:p,children:l})}},52988:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/page-preview",function(){return a(38008)}])}},e=>{e.O(0,[6701,522,1040,1301,688,2772,636,6593,8792],()=>e(e.s=52988)),_N_E=e.O()}]);
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.