1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5445],{4720:()=>{},74006:()=>{},75445:(e,r,a)=>{"use strict";a.r(r),a.d(r,{default:()=>_});var l=a(61975),s=a(71983),t=a(45849),o=a(22043),n=a(71450),i=a(95155),u=a(12115),d=a(47650),c=a(67909),f=a(15239),p=a(52619),b=a.n(p),h=a(20063);a(94960),a(4720),a(74006);var m=a(64303),w=a(58966),g=(0,c.default)(()=>a.e(2389).then(a.bind(a,12389)),{loadableGenerated:{webpack:()=>[12389]},ssr:!1}),v="super_offer_popup_shown";let _=e=>{var r=e.companyId,a=e.domain,c=e.pageKey,p=(0,h.usePathname)(),_=c||(e=>"/"===e?"homepage":e.split("/").filter(Boolean)[0]||"homepage")(p),k=(0,o._)((0,u.useState)([]),2),x=k[0],y=k[1],C=(0,o._)((0,u.useState)("hidden"),2),N=C[0],j=C[1],S=(0,o._)((0,u.useState)(0),2),I=S[0],P=S[1],E=(0,o._)((0,u.useState)(!1),2),T=E[0],q=E[1];(0,u.useEffect)(()=>{var e,a,s=!1,t=()=>{(0,l._)(function(){var e,a;return(0,n.YH)(this,function(l){switch(l.label){case 0:return[4,(0,m.tt)(r)];case 1:return a=((null==(e=l.sent())?void 0:e.data)||[]).filter(e=>e.banner_image).sort((e,r)=>{var a,l;return(null!=(a=e.sort_order)?a:0)-(null!=(l=r.sort_order)?l:0)}),s||y(a),[2]}})})()};return"requestIdleCallback"in window?e=window.requestIdleCallback(t,{timeout:2500}):a=setTimeout(t,1200),()=>{s=!0,void 0!==e&&"cancelIdleCallback"in window&&window.cancelIdleCallback(e),a&&clearTimeout(a)}},[r]),(0,u.useEffect)(()=>("popup"===N?document.body.classList.add("super-offer-open"):document.body.classList.remove("super-offer-open"),()=>{document.body.classList.remove("super-offer-open")}),[N]);var H=(0,u.useMemo)(()=>x.filter(e=>{var r;return null==(r=e.show_on_pages)?void 0:r.includes(_)}),[x,_]);(0,u.useEffect)(()=>{if(0===H.length)return void j("hidden");P(0),q(!1);var e=sessionStorage.getItem(v);window.matchMedia("(max-width: 768px)").matches||e?j("bubble"):(j("popup"),sessionStorage.setItem(v,"1"))},[H,_]);var L=()=>j("bubble");if("hidden"===N||0===H.length||"bubble"===N&&T)return null;var z={dots:!1,arrows:!1,infinite:H.length>1,autoplay:H.length>1,autoplaySpeed:4e3,pauseOnHover:!0,speed:600,slidesToShow:1,slidesToScroll:1,adaptiveHeight:!1,afterChange:e=>P(e)},D=H[I];return"bubble"===N?(0,i.jsxs)("button",{type:"button",className:"super-offer-bubble",onClick:()=>j("popup"),"aria-label":"Reopen offer",children:[(0,i.jsx)(f.default,{src:(0,w.Uh)(a,D.banner_image,""),alt:D.title||"Offer",width:300,height:150,quality:90,loading:"lazy",fetchPriority:"low",className:"super-offer-bubble-image"}),(0,i.jsx)("span",{className:"super-offer-bubble-close",role:"button","aria-label":"Dismiss offer",onClick:e=>{e.stopPropagation(),q(!0)},children:"\xd7"})]}):(0,d.createPortal)((0,i.jsx)("div",{className:"super-offer-overlay",onClick:L,children:(0,i.jsxs)("div",{className:"super-offer-modal",onClick:e=>e.stopPropagation(),children:[(0,i.jsx)("button",{type:"button",className:"super-offer-close-btn","aria-label":"Close",onClick:L,children:"\xd7"}),(0,i.jsx)(g,(0,t._)((0,s._)({},z),{className:"super-offer-slider",children:H.map(e=>(0,i.jsx)("div",{className:"super-offer-slide",children:(0,i.jsx)(b(),{href:e.link,target:"_blank",rel:"nofollow sponsored noopener noreferrer","aria-label":"Visit merchant website",onClick:L,className:"super-offer-image-link",children:(0,i.jsx)(f.default,{src:(0,w.Uh)(a,e.banner_image,""),alt:e.title||"Super offer",width:1200,height:600,sizes:"(max-width: 768px) 100vw, 900px",fetchPriority:"high",className:"super-offer-image",priority:!0})})},e.id))})),(0,i.jsx)("div",{className:"super-offer-cta-wrapper",children:(0,i.jsx)(b(),{href:(null==D?void 0:D.link)||"#",target:"_blank",rel:"nofollow sponsored noopener noreferrer","aria-label":"Visit merchant website",onClick:L,className:"super-offer-cta-btn",children:(null==D?void 0:D.title)||"Get This Deal"})})]})}),document.body)}},94960:()=>{}}]); 2//# sourceMappingURL=5445.f0a9789fab4ec474.js.map
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.