1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2745],{81352:function(e,n,l){"use strict";l.d(n,{D:function(){return b}});var t=l(85893),a=l(53236),s=l(81230),i=l(70723),r=l(65649),o=l(97434),d=l(96520),c=l(93967),u=l.n(c),m=l(86492),p=l(11163),x=l(67294),v=l(22751),_=l.n(v);let b=e=>{var n,l;let{identifier:c,contentType:v="moleculeBanner",initialData:b}=e,{asPath:h,pathname:g}=(0,p.useRouter)(),[f,k]=(0,x.useState)(!1),y=void 0!==b,{data:j}=(0,d.P)({identifier:c,contentType:v,options:{level:4}},{revalidateOnFocus:!1,revalidateOnMount:!y,...y?{initialData:{data:{contentJson:b?[{identifier:c[0],parsedEntries:b}]:[]}}}:{}}),C=null==j?void 0:null===(n=j[0])||void 0===n?void 0:n.parsedEntries,N=(null==C?void 0:C.customOptions)||{},B=(h||g||"").split("?")[0],D=N.hideOnPaths,T=(Array.isArray(D)?D:"string"==typeof D?D.split(","):[]).map(e=>e.trim()).filter(e=>e.length>0),w=B.split("/").filter(e=>e.length>0),S="/"===B||2===w.length,E=T.some(e=>B.includes(e)||S&&"/"===e);function O(){localStorage.setItem("customDealsBannerDismissed","true")}if((0,x.useEffect)(()=>{let e=()=>{let e=document.querySelector(".contentful-page");if(!e)return;
1let n=localStorage.getItem("customDealsBannerDismissed");k(e.getBoundingClientRect().top<=0&&"true"!==n)};return window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[g]),!C||E)return null;let{headline:z,text:U,link:A,cloudinaryImage:R,image:I}=C,L=null==A?void 0:A.customStyle,M=null==I?void 0:null===(l=I.file)||void 0===l?void 0:l.url,P={backgroundColor:"string"==typeof N.backgroundColor?N.backgroundColor:void 0,backgroundImage:M?"url(".concat(M,")"):void 0,backgroundSize:M?"cover":void 0,backgroundRepeat:M?"no-repeat":void 0,backgroundPosition:M?"center":void 0};return(0,t.jsxs)("div",{className:u()(_()["custom-deals-banner"],"fixed left-0 text-white rounded-r-xxxl",{"opacity-100 translate-x-0":f,"opacity-0 -translate-x-full":!f}),style:P,children:[(0,t.jsxs)("div",{className:"flex h-full relative items-end gap-16px md:gap-40px",children:[(0,t.jsxs)("div",{className:u()(_()["custom-deals-banner__textContent"],"flex flex-col gap-24px md:gap-32px relative z-1 flex-1"),children:[(0,t.jsxs)("div",{className:"flex flex-col gap-12px",children:[z&&(0,t.jsx)("h4",{className:"md:text-h4 h5 font-bold ",children:z}),U&&(0,t.jsx)("p",{className:"md:text-small-copy text-[14px] max-w-[300px]",children:(0,m.decode)(U)})]}),(null==A?void 0:A.linkUrl)&&(0,t.jsx)(i.z,{href:A.linkUrl,className:u()(_()["custom-deals-banner__button"],"md:text-small-copy text-[14px] max-w-[300px]"),style:L||{backgroundColor:null==A?void 0:A.styleColor},tracking:!0,dataLayer:A.eventTracking,onClick:()=>{var e,n;O(),(0,r.O7)({contentGroup:null!==(e=null==A?void 0:A.linkTitle)&&void 0!==e?e:""}),(0,r.xn)({promotion_id:"custom-deals-banner",name:null!==(n=null==A?void 0:A.linkTitle)&&void 0!==n?n:void 0})},children:A.linkTitle})]}),R&&(0,t.jsx)(s.default,{cloudinaryMedia:R,className:u()(_()["custom-deals-banner__image"],"pr-16px md:pr-0"),mobileStyle:{height:80},style:{width:118,height:164}})]}),(0,t.jsx)("button",{className:u()("absolute right-16px top-16px md:right-32px md:top-32px z-10 cursor-pointer border-none",_()["custom-deals-banner__close"]),onClick:()=>{k(!1),O(),(0,o.y)({event:"custom-deals-banner",eventAction:"close",shop:null==A?void 0:A.linkTitle,link:null==A?void 0:A.linkUrl})},"aria-label":"Close banner","data-layer":null==A?void 0:A.eventTracking,children:(0,t.jsx)(a.Z,{width:"24",height:"24"})})]})}},83940:function(e,n,l){"use strict";l.d(n,{R:function(){return h},U:function(){return b}});var t=l(85893),a=l(53236),s=l(81230),i=l(70723),r=l(65649),o=l(97434),d=l(96520),c=l(93967),u=l.n(c),m=l(86492),p=l(67294),x=l(3554),v=l.n(x);let _=["dealsBanner"],b=["/","/s/prime-day"],h=()=>{var e;let{data:n}=(0,d.P)({identifier:_,contentType:"moleculeBanner",options:{level:4}},{revalidateOnFocus:!1,revalidateOnMount:!0}),[l,c]=(0,p.useState)(!0),[x,b]=(0,p.useState)(!1),[h,g]=(0,p.useState)(!1);if((0,p.useEffect)(()=>{c(!0),g(!1),setTimeout(()=>{b(!0)},3e3)},[]),!l||!(null==n?void 0:null===(e=n[0])||void 0===e?void 0:e.parsedEntries))return null;let{headline:f,text:k,link:y,cloudinaryImage:j}=n[0].parsedEntries;return(0,t.jsxs)("div",{className:u()(v()["deals-banner"],"fixed left-0 text-white transform rounded-r-xxxl",{"opacity-100 translate-x-0 translate-y-0":x&&!h,"opacity-0 -translate-x-full translate-y-0":h}),children:[(0,t.jsxs)("div",{className:"flex h-full relative items-end gap-16px md:gap-40px",children:[(0,t.jsxs)("div",{className:u()(v()["deals-banner__textContent"],"flex flex-col gap-24px relative z-1 py-16px md:py-32px pl-16px md:pl-32px flex-1"),children:[(0,t.jsxs)("div",{className:"flex flex-col gap-12px",children:[(0,t.jsx)("h4",{className:"text-h4 font-bold ",children:f}),(0,t.jsx)("p",{className:"text-small-copy",children:(0,m.decode)(k||"")})]}),y&&y.linkUrl&&(0,t.jsx)(i.z,{href:y.linkUrl,className:u()(v()["deals-banner__button"],"text-small-copy"),style:{backgroundColor:"#6ff787"},tracking:!0,dataLayer:y.eventTracking,onClick:()=>{var e,n;(0,r.O7)({contentGroup:null!==(e=null==y?void 0:y.linkTitle)&&void 0!==e?e:""}),(0,r.xn)({promotion_id:"deals-banner",name:null!==(n=null==y?void 0:y.linkTitle)&&void 0!==n?n:void 0})},children:y.linkTitle})]}),(0,t.jsx)(s.default,{cloudinaryMedia:j,className:u()(v()["deals-banner__image"],"pr-16px md:pr-0"),mobileStyle:{height:80},style:{width:118,height:164}})]}),(0,t.jsx)("button",{className:"absolute right-16px top-16px md:right-32px md:top-32px z-10 cursor-pointer border-none",onClick:()=>{g(!0),setTimeout(()=>{c(!1)},600),(0,o.y)({event:"deals-banner",eventAction:"close",shop:null==y?void 0:y.linkTitle,link:null==y?void 0:y.linkUrl})},"aria-label":"Close banner","data-layer":null==y?void 0:y.eventTracking,children:(0,t.jsx)(a.Z,{width:"24",height:"24"})})]})}},22751:function(e){e.exports={"custom-deals-banner":"CustomDealsB
1anner_custom-deals-banner__Olduj","custom-deals-banner__button":"CustomDealsBanner_custom-deals-banner__button__VAiz_","custom-deals-banner__image":"CustomDealsBanner_custom-deals-banner__image__rlNya","custom-deals-banner__close":"CustomDealsBanner_custom-deals-banner__close__yhi6g"}},3554:function(e){e.exports={"deals-banner":"DealsBanner_deals-banner__UIulS","deals-banner--mounted":"DealsBanner_deals-banner--mounted__WRpBi","deals-banner--closing":"DealsBanner_deals-banner--closing__DG1gr","deals-banner__button":"DealsBanner_deals-banner__button__Tjpj4","deals-banner__image":"DealsBanner_deals-banner__image__mubCV"}}}]);
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.