(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[890],{52519:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/coupons",function(){return o(17724)}])},72441:function(e,t,o){"use strict";var n=o(85893),i=o(67294),a=o(45697),r=o.n(a),l=o(29323),p=o(33555),s=o(19074),d=o.n(s),c=o(13633),u=o(35941);let x=e=>{let{data:t,closeHandler:o,behaviour:a,link:r,textClickhandler:l,pageSource:s,styles:x}=e,m=d()[s]||d().default,g=m[x]||m.default,h=(0,i.useRef)(null),f=e=>{h.current&&!h.current.contains(e.target)&&o()};return(0,i.useEffect)(()=>(a||document.addEventListener("mousedown",f),()=>{document.removeEventListener("mousedown",f)}),[h]),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:g&&g.toolTipWrapper,children:(0,n.jsxs)("div",{"data-testid":"tooltip-div",ref:h,className:g&&g.toolTipContent,children:[(0,n.jsx)("div",{className:g&&g.toolTipClose,children:(0,n.jsx)(c.Z,{handler:()=>o(),children:(0,n.jsx)(u.default,{className:g&&g.toolTipCloseIcon,name:"closeGray"})})}),(0,n.jsx)(c.Z,{to:r||null,handler:()=>l(),children:(0,n.jsx)(p.Z,{className:"text-left couponsText break-words",body:t})})]})})})};x.propTypes={data:r().string.isRequired,closeHandler:r().func,link:r().string,behaviour:r().string,pageSource:r().string,styles:r().string,textClickhandler:r().func},x.defaultProps={closeHandler:()=>{},textClickhandler:()=>{},link:null,pageSource:"",styles:"",behaviour:null},t.Z=(0,l.Pi)(x)},19074:function(e){"use strict";e.exports={default:{default:{toolTipWrapper:"md:block toolTipWrapper absolute z-20 bg-white shadow-headernav border-b-4 border-primary onboarding-tooltip-wrapper -left-60 top-45 xl:-left-30 xl:top-65",toolTipContent:"tool-tip relative bg-white p-25 text-center w-220 pointsRejectionText text-14 font-montserratSemiBold font-semibold leading-light",toolTipClose:"flex tooltip-close absolute top-0 right-0 justify-end p-2 lg:p22 focus:outline-none",toolTipCloseIcon:"w-11 h-11",bottomBar:{wrapper:"bottom-bar w-full flex flex-wrap p-12 relative",expiresWrapper:"w-6/12 flex",expires:"expires font-montserratlight font-light text-14 leading-seller18 pl-05 flex items-center",addToCartWrapper:"w-6/12 justify-end z-8",addToCart:"add-to-cart float-right font-montserratSemiBold font-semibold text-14  text-secondary flex flex-wrap leading-leading20",addToCartIcon:"pl-05"}}},tooltipCoupons:{default:{toolTipWrapper:"absolute z-20 bg-white coupon-tooltip-wrapperDigital shadow-dropdown w-252 bottom-70 top-auto -left-85",toolTipContent:"tool-tip relativ bg-white p-25 pointsRejectionTextCoupons text-14 font-montserratSemiBold font-semibold leading-leading20",toolTipClose:"flex tooltip-close absolute top-0 right-0 justify-end p-2 lg:p22 focus:outline-none",toolTipCloseIcon:"w-11 h-11",bottomBar:{wrapper:"bottom-bar w-full flex flex-wrap p-12 relative",expiresWrapper:"w-6/12 flex opacity-50 pointer-events-none",expires:"expires font-montserratlight font-light text-14 lg:text-14 leading-seller18 pl-05 flex items-center",addToCartWrapper:"w-6/12 justify-end z-8 opacity-50",addToCart:"add-to-cart float-right pointer-events-none font-montserratSemiBold font-semibold text-14 text-secondary flex flex-wrap leading-leading20",addToCartIcon:"pl-05"}}},earnPoints:{default:{toolTipWrapper:"earnPoints absolute z-21 top-0 bg-white coupon-tooltip-wrapper shadow-dropdown border-t-4 border-primary",toolTipContent:"tool-tip relative bg-white p-25 pointsEarnPointsText text-14 font-montserratSemiBold font-semibold leading-light",toolTipClose:"flex tooltip-close absolute top-0 right-0 justify-end p-2 lg:p22 focus:outline-none",toolTipCloseIcon:"w-11 h-11"}},causeDetails:{default:{toolTipWrapper:"causeDetails absolute z-21 top-0 bg-white coupon-tooltip-wrapper shadow-dropdown border-t-4 border-success",toolTipContent:"tool-tip relative bg-white p-25 pointsEarnPointsText text-14 font-montserratSemiBold font-semibold leading-light",toolTipClose:"flex tooltip-close absolute top-0 right-0 justify-end p-2 lg:p22 focus:outline-none",toolTipCloseIcon:"w-11 h-11"}},rewardsPoints:{default:{toolTipWrapper:"causeDetails absolute z-20 top-0 bg-white coupon-tooltip-wrapper shadow-dropdown border-t-4 border-warning",toolTipContent:"tool-tip relative bg-white p-25 pointsRewardsPointsText text-14 font-montserratSemiBold font-semibold leading-points16",toolTipClose:"flex tooltip-close absolute top-0 right-0 justify-end p-2 lg:p22 focus:outline-none",toolTipCloseIcon:"w-11 h-11"}},tooltipOnboarding:{toolTipWrapper:"absolute tooltipOnboarding z-20 bg-white coupon-tooltip-wrapper",toolTipContent:"tool-tip relative bg-white p-25 pointsRejectionText text-14 font-montserratSemiBold font-semibold leading-points16",toolTipClose:"flex tooltip-close absolute top-0 right-0 justify-end p-2 lg:p22 focus:outline-none",toolTipCloseIcon:"w-11 h-11"},tooltipDigitalCoupons:{default:{toolTipWrapper:"absolute z-20 bg-white coupon-tooltip-wrapperDigital shadow-digitalTooltip w-275 bottom-auto -top-150 -left-15",toolTipContent:"tool-tip relativ bg-white px-20 py-30 pointsRejectionTextCoupons text-14 font-montserratSemiBold font-semibold leading-leading20",toolTipClose:"flex hidden tooltip-close absolute top-0 right-0 justify-end p-2 lg:p22 focus:outline-none",toolTipCloseIcon:"w-11 h-11"}}}},11267:function(e,t){"use strict";let o=new String('.scan-receipt-head,.icon-button-wrapper-header{display:none}.washingtonStateGuidelinesSearch a,.couponsLandingLink button{color:#003CA5;font-weight:700}.couponsRewardsTitle a{text-decoration:underline;font-weight:700}.coupon-success h2{font-weight:700;font-size:1.5rem;line-height:28px;padding-bottom:10px;letter-spacing:normal}.couponsEarnRewardsTitle p{padding-bottom:15px}.noMoreCouponsText a,.washingtonStateGuidelinesSearch a{text-decoration:underline}.couponsTabs strong{font-weight:700}.couponCardMainWrapper{width:360px}.coupons-fullwrapper:after{position:absolute;height:350px;background:#FADB35;width:125%;-webkit-border-radius:100%100%0 0;-moz-border-radius:100%100%0 0;border-radius:100%100%0 0;left:-50px;bottom:-30px;overflow:hidden;z-index:auto;display:none}.letsGetStarted-Title h2{font-size:1.5rem;line-height:29px;font-weight:700;padding-bottom:20px}.search-form:focus{outline:solid}.headWrapper{-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center}.intro-coupons-text span{line-height:30px;font-size:16px}.iframeDigitalWrapper iframe{height:3210px}input[type="search"]::-webkit-search-decoration,input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-results-button,input[type="search"]::-webkit-search-results-decoration{display:none}.intro-coupons-text a,.coupons-content a{text-decoration:underline;font-weight:700;color:#003CA5}.search-form:focus{outline:solid}input[type="search"]::-webkit-search-decoration,input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-results-button,input[type="search"]::-webkit-search-results-decoration{display:none}.tileDeqInactive{position:absolute;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;letter-spacing:1.3px;background:#A400A6;-webkit-box-shadow:0 2px 2px 0 rgba(0,0,0,.3);-moz-box-shadow:0 2px 2px 0 rgba(0,0,0,.3);box-shadow:0 2px 2px 0 rgba(0,0,0,.3);right:0px;line-height:12px;top:0px;width:112px;height:31px;z-index:10;cursor:not-allowed;width:134px}.coupon-empty-basket h3{font-weight:600;font-size:1.375rem;line-height:24px;padding-top:30px;padding-bottom:15px}.couponsPageDescription p:nth-child(1){padding-bottom:10px}.printCouponsTitle h2{font-size:1.5rem;line-height:29px}.printCouponsTitle h2,.printCouponsSubTitle h2{font-weight:600}.about-accordian-mainWrapper .accordion-Panel-Wrapper:nth-child(1) .offerrules{border-top-width:.75px}.about-accordian-mainWrapper .accordion-Panel-Wrapper:nth-child(6) .offerrules{border-bottom-width:0}.pointsTab{width:100%;padding:0}.myimpacttab .inActive{color:#393939;height:40px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;font-size:.875rem;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;padding:0;border-bottom:solid 6px#D8D8D8;text-transform:uppercase}.myimpacttab .active{border-bottom:solid 7px#218372;width:100%;color:#0C7E6D;height:40px;font-size:.875rem;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;padding:0;text-transform:uppercase}.tabWrapper{padding-left:3px}.couponsText a{text-decoration:underline}.basket-container{height:42px;width:48px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;top:0;left:0;right:0;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center}.cart-button-wrapper{width:55px;height:55px;margin-right:6px}.basket-container svg{width:auto!important}.basket-count{top:17px}@media screen and (max-width:460px){.coupons-fullwrapper{padding-bottom:0}}.myimpacttab .inActive,.myimpacttab .active{padding-bottom:11px}@media screen and (min-width:768px){.coupons-fullwrapper:after{height:108%;width:108%;-webkit-border-radius:100%0 0 100%;-moz-border-radius:100%0 0 100%;border-radius:100%0 0 100%;left:15px;display:block}.startearningTileWrapper:nth-child(4){width:100%;margin-left:0px;padding-right:5px}.phoneNumberLinkWrapper:nth-child(3){margin-right:0px;padding-right:8px}.phoneNumberLinkWrapper:nth-child(3) .takeSurveybg,.phoneNumberLinkWrapper:nth-child(3) .cardText{width:100%}.phoneNumberLinkWrapper:nth-child(3) .cardText{padding-top:20px}.startearningTileWrapper:nth-child(3){margin-left:0px;padding-left:0}}@media only screen and (min-width:500px)and (max-width:767px){.earnMainWrapper{width:70%}}@media(min-width:768px)and (max-width:1023px){.takeSurvey{margin-top:20px}.phoneNumberLinkWrapper:nth-child(3) .takeSurvey{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%;-webkit-box-align:start;-webkit-align-items:flex-start;-moz-box-align:start;-ms-flex-align:start;align-items:flex-start;margin-top:0}.takeSurvey{padding-right:0}.takeSurvey .takeSurveybg{width:49%}.startearningTileWrapper:nth-child(3){padding-left:8px}.startearningTileWrapper:nth-child(2){padding-right:8px}}@media screen and (min-width:1024px){.pointsTab{width:80%}.couponsPageDescription span{display:block}.tabWrapper{padding-right:2px;padding-left:2px}.iframeDigitalWrapper iframe{height:1600px}.cart-button-wrapper{width:165px;height:55px;margin-right:83px}.coupon-empty-basket h3{font-size:1.5rem;line-height:29px;padding-top:35px;padding-bottom:20px}.basket-count{top:19px}.basket-container{height:47px;width:71px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;top:2px;left:-1px}.basket-container span{top:-9px;position:absolute}.myimpacttab button{letter-spacing:normal}.pointsTab{padding:0}.couponsRewardsTitle{padding-bottom:0}.startearningTileWrapper:nth-child(4){margin-right:8px;width:260px;padding-right:0}.startearningTileWrapper:nth-child(3){margin:0px 8px}.startearningTileWrapper:last-child{margin-left:8px;padding-left:0;padding-right:0}.letsGetStarted-Title h2{font-size:2rem;line-height:42px;padding-bottom:30px}}@media screen and (min-width:1280px){.pointsTab{width:1028px}.couponsPageDescription span{display:block}.coupons-fullwrapper:after{height:160%;width:100%;-webkit-border-radius:100%0 0 100%;-moz-border-radius:100%0 0 100%;border-radius:100%0 0 100%;left:15px;bottom:-120px}.startearningTileWrapper:nth-child(4){width:283px}.startearningTileWrapper:nth-child(3){margin:0 10px;padding-left:0}}@media screen and (min-width:1440px){.startearningTileWrapper:nth-child(4){width:330px;margin-left:0;padding-right:1px}.startearningTileWrapper:nth-child(3){margin:0px 10px}.startearningTileWrapper:last-child{padding-right:0}.couponCardMainWrapper{width:375px}}@media screen and (min-width:1500px){.background-wrapper img{height:auto!important}}.dotsSeleted,.dotsNotSeleted:hover{background-color:#003CA5}.dotsNotSeleted{background-color:#07A5E4}');o.__hash="bb6921a94396fe86",t.Z=o},17724:function(e,t,o){"use strict";o.r(t),o.d(t,{__N_SSG:function(){return E},default:function(){return I}});var n=o(85893),i=o(67294),a=o(45697),r=o.n(a),l=o(1822),p=o.n(l),s=o(29323),d=o(11163),c=o(35941),u={backgroundWrapper:"background-wrapper absolute top-0 w-full",afterBannerEarnCards:{pageTitle:"",bannerSectionWrapper:"w-full bg-couponsBlue pb-10",bannerSection:"earnBannerWrapper banner-section container w-12/12 px-20 xl:px-0 mx-auto relative top-0 md:rounded-rewards",rewardsCardSection:""},waysToEarnBelowBannerText:{wholeContainer:"bg-white container mx-auto relative",mainWrapper:"container mx-auto py-40 text-center text-sign-head relative",heading:"mx-auto w-8/12 md:w-full font-montserratSemiBold font-semibold leading-wider text-30 lg:text-38 lg:leading-noImgLh",description:"mx-auto font-montserratlight font-light text-16 pt-20 leading-lightmedium w-9/12 md:w-9/12 lg:w-5/12 lg:text-18 lg:leading-widest "},rewardsEarnCards:{bannerSection:"startEarnCards banner-section w-full pt-35 md:pt-28 xl:pt-45 pb-05 xl:pb-25 mx-auto relative container mx-auto md:px-13 lg:px-0 top-0 px-40",container:"flex flex-wrap w-full justify-center earnMainWrapper md: mx-auto px-10 md:px-0 md:w-10/12 lg:w-10/12 xl:w-9/12",contentWrapper:"text-center mx-auto container ",headingWrapper:"font-montserratSemiBold font-bold text-sign-head text-24 leading-wider xl:text-32 xl:leading-leading42 pb-25",cardTileWrapper:"w-full pb-15 md:pb-15 lg:pb-0 mx-auto flex flex-wrap  md:flex-row articalmd md:w-4/12 lg:w-4/12 cardItem px-10",cardTileInnerWrapper:"text-center mx-auto container",rewardTileWrapper:"startearningTileWrapper relative shadow-none lg:shadow-articalmd lg:bg-white md:w-6/12 lg:w-252 block xl:w-283 xxl:w-330"},articleCarousel:{carouselWrapper:"featured-earnPoints featured-earnPoints-1",panel:"article-carousel-tile",mainWrapper:"w-full container mx-auto",wrapper:"md:mx-20px bg-rewardsBg pb-45 lg:pb-130",sliderWrapper:"w-full md:w-w-full pt-20 xl:pt-0 mx-auto lg:w-10/12 xl:w-9/12 rticle-carousel xxl:pr-02 featuredcarousel featured-carousel2",cta:"w-full text-center leading-ultralight article-carousel-cta lg:leading-lightmedium card-right-cta-home-feature pt-1 pb-0 lg:pt-11 mt-10px text-14 lg:text-16 font-montserratSemiBold font-semibold mt-0"},homeContainer:{sectionWrapper:"bg-bgcolor w-full pt-15 relative z10 z-4",sectionWrapperRefer:"bg-bgcolor w-full pt-15 relative z10 z-4",sectionWrapperPromo:"w-full relative z10 z-4",sectionWrapperStart:"bg-bgcolor w-full pt-15 relative z10 z-4",mainWrapper:"flex flex-wrap w-full container mx-auto md:pt-15 lg:pt-18 pb-45 md:px-0 lg:pr-20 lg:pl-35 lg:pb-60 ",mainWrapperFeature:"flex flex-wrap w-full container mx-auto pt-15 md:pt-05 lg:pt-18 pb-75 md:px-0 lg:pr-20 lg:pl-20 lg:pb-60 ",mainJoinWrapper:"flex flex-wrap w-full container mx-auto md:p-20 bg-white mb-0 gradient-earnPointsSignup",mainJoinWrapperEp:"flex flex-wrap w-full container mx-auto md:p-20 bg-white mb-0",joinusWrapper:"joinusWrapper xxl:w-4/12 lg:w-5/12 md:w-8/12 w-full px-30 xxl:px-0 mx-auto py-30 flex flex-wrap justify-center",joinusReferWrapper:"earnRefer joinusWrapper lg:w-5/12 md:w-8/12 w-full px-30 md:px-0 mx-auto py-30 flex flex-wrap justify-center",joinusIconSVG:"w-79 h-79",getStartedSignUpBtn:"pt-10 pb-10 px-27 text-primaryCta bg-white font-montserratBold font-bold leading-ultralight text-16 lg:text-primaryCta lg:leading-lightmedium lg:text-18"},content:{pageTitle:"page-title relative text-center text-white py-25 lg:py-30 xl:min-h-84 font-montserratSemiBold font-semibold text-30 lg:text-50 leading-wider lg:leading-leading60 ",pageSubTitle:"w-full font-montserratBold font-bold text-center text-18 lg:text-28 leading-wider lg:leading-wider pt-25 pb-05 lg:pt-35 lg:pb-10 tracking-2 lg:tracking-3",pageDescription:"couponsPageDescription w-11/12 pt-30 pb-35 md:pb-15 xl:pt-40 xl:pb-30 px-10 md:px-0 md:w-10/12 xl:w-8/12 xxl:w-7/12 mx-auto lg:px-0 md:px-15 text-center text-18 font-montserratlight font-light leading-points24",spinnerIconWrapper:"w-full min-h-200 flex items-center",spinnerLoaderWrapper:"w-full min-h-50 flex items-center pb-10",spinnerIcon:"w-40 mx-auto",mainBannerSection:"banner-section w-full mx-auto relative container top-0 md:rounded-rewards flex flex-wrap",bannerSection:"banner-section w-full container pb-0 mx-auto relative top-0 bg-white w-full md:pb-0",couponsCardSection:"coupons-card-section md:flex lg:justify-center mt-8 md:w-11/12 lg:w-9/12 mx-auto",couponWrapper:"couponWrapper pt-10 pb-23 px-15 md:px-20 flex flex-wrap w-full xl:px-06 mx-auto",couponBannerWrapper:"couponWrapper pt-10 pb-23 px-0 flex flex-wrap w-full md:w-11/12 xl:px-60 lg:w-10/12 mx-auto",printCouponsWrapper:"print-coupons w-full flex justify-center pb-40 p-10 p-15",noCouponsToPrint:"bg-white flex items-center justify-center text-center font-montserratlight font-light lg:text-18 leading-lightmedium lg:leading-widest w-11/12 md:w-8/12 xl:w-9/12 mx-auto mt-10px px-60 md:px-75 h-350 md:h-400",noCouponsText:"lg:w-4/12 md:w-8/12 w-full ",noMoreCouponsText:"noMoreCouponsText1 w-full md:w-11/12 xl:w-9/12",noMoreCouponsAvailable:"noMoreCouponsAvailable w-full md:w-11/12 xl:w-9/12",noMoreCouponsButton:"w-full flex justify-center pt-15",basketWrapper:"",tabs:"font-montserratBold font-bold pb-05 w-11/12 mx-auto xl:w-auto md:px-0 xl:px-0",couponsPageSearch:"couponsPageSearch w-full couponsPageSearch pt-20 pb-25 md:pb-15 xl:pt-25 xl:pb-25 px-10 md:px-0 mx-auto lg:px-0 xl:px-25 text-center text-12 font-montserratlight font-light leading-seller18",couponsSearchInput:"font-medium search-form w-11/12 md:w-6/12 lg:w-4/12 couponsSearchInput mx-auto appearance-none focus:outline rounded-none text-center searchField-placeholder text-16 text-couponsBlue bg-footerBg pl-05 py-10 leading-lightmedium xl:leading-widest pr-05 border-1 border-black ",noMoreCouponsSearch:"justify-center text-center noMoreCouponsSearch font-montserratlight font-semibold lg:text-18 leading-lightmedium lg:leading-widest w-10/12 md:w-8/12 xl:w-9/12 mx-auto",couponsSearchCount:"text-center w-full md:w-8/12 lg:w-6/12 mx-auto pb-05",washingtonStateGuidelinesSearch:"washingtonStateGuidelinesSearch pt-05 mx-auto w-11/12 xl:w-10/12 pb-25 md:pb-15 xl:pb-20"},letsGetStarted:{wrapper:"w-full container mx-auto text-center py-90 px-10 bg-couponsBlue text-white",content:"letsGetStarted-Title w-6/12 xl:w-4/12 mx-auto pb-20 font-medium text-16 leading-lightmedium lg:text-18 lg:leading-widest",ctaWrapper:""}},x=o(11267),m=o(89459),g=o(45029),h=o(94382),f=o(63404),b=o(85218),w=o(33555),y=o(3868),k=o(63266),T=o(60143),v=o(71191),C=o(565),j=o(38032),S=o(50298);let W=e=>{var t,o,a;let{pageTitle:r,earnRewardFast:l,pageBackground:s,joinEarnSection:d,everydayActionSectionCollection:W,featuredPromotionsSectionCollection:N,letsGetStartedSectionCollection:z,offerDetailsLabel:B,addToBasketLabel:P,addedToBasketLabel:E,router:I}=e,R={offerDetailsLabel:B,addToBasketLabel:P,addedToBasketLabel:E},[Z,D]=(0,i.useState)(null),[_,L]=(0,i.useState)(!0),[A,G]=(0,i.useState)(0),O=async()=>{L(!0);let e=(await k.Z.init([])).sort((e,t)=>e.value+t.value).slice(0,3);k.Z.couponsToDisplay=[...e],L(!1)};return(0,i.useEffect)(()=>{if(O(),I.asPath.includes("#printAtHome")){var e;let t=new URL("".concat("https://www.pggoodeveryday.com").concat(I.asPath)),o=null==t?void 0:null===(e=t.searchParams)||void 0===e?void 0:e.get("coupon_name");o?I.replace("".concat(S.pahCoupons,"?coupon_name=").concat(o)):I.replace(S.pahCoupons)}!0===h.default.showCompleteProfile20Survey&&!0===h.default.userLoggedIn&&(0,j.kq)(async()=>{await (0,j.km)("1360")||((0,j.GZ)("1360"),h.default.showCompleteProfile20Survey=!1)})},[]),(0,n.jsxs)("div",{"data-nosnippet":!0,className:"bg-bg-color",children:[(0,n.jsxs)("div",{className:"bg-bgcolor",children:[(0,n.jsx)("div",{className:u.backgroundWrapper||"",children:(0,n.jsx)(m.Z,{priority:h.default.priority,className:"w-full",...s})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"bg-couponsBlue",children:(0,n.jsx)("h1",{className:u.content.pageTitle||"",children:r})}),(0,n.jsx)("div",{className:u.afterBannerEarnCards.bannerSectionWrapper||"",children:(0,n.jsx)("div",{className:u.afterBannerEarnCards.bannerSection||"",children:(0,n.jsx)(g.Z,{...d,pageSource:f.coupons,ctaHandler:()=>{h.default.simplifiedSignupFlow=!0,h.default.redirectionUrlAfterSimplifiedSignup=I.asPath,localStorage.setItem("redirectionUrlAfterSimplifiedSignup",I.asPath),localStorage.setItem("simplifiedSignupFlowWithCompleteProfileSurvey",!0),(0,y.Ki)()},styles:"couponsLanding-feature-Card",callToActionsCollection:!1===h.default.userLoggedIn?d.callToActionsCollection:null,description:!1===h.default.userLoggedIn?d.description:null})})}),(0,n.jsxs)("div",{className:u.waysToEarnBelowBannerText.wholeContainer||"",children:[(0,n.jsx)("div",{className:u.rewardsEarnCards.mainContainer||"",children:W&&(0,n.jsx)("div",{className:u.rewardsEarnCards.bannerSection||"",children:(0,n.jsx)("div",{className:u.rewardsEarnCards.container||"",children:W.items.map(e=>{if(e){var t;let o=!(h.default.userLoggedIn&&(null===h.default||void 0===h.default?void 0:null===(t=h.default.profileData)||void 0===t?void 0:t.phone)!==null)&&e.link==="/coupons/".concat(S.brandSaver);switch(e.__typename){case"ContentTypeRichText":return(0,n.jsx)("div",{id:"startEarningSectionReceipt",className:u.rewardsEarnCards.contentWrapper||"",children:(0,n.jsx)("div",{id:"startEarningSection",className:u.rewardsEarnCards.headingWrapper||"",children:(0,i.createElement)(w.Z,{...e,key:e&&e.sys&&e.sys.id})})});case"Tile":if(o)break;return(0,n.jsx)("div",{className:"".concat(u.rewardsEarnCards.rewardTileWrapper).concat(o?"":" phoneNumberLinkWrapper"),children:(0,n.jsx)(b.Z,{styles:"rewards-dashboard-tile",pageSource:f.coupons,...e,textIconName:"arrowHome"})})}}return null})})})}),_?(0,n.jsx)("div",{className:"w-full py-25 my-25 flex justify-center",children:(0,n.jsx)("div",{className:"w-30",children:(0,n.jsx)(c.default,{name:"spinnerCoral"})})}):(0,n.jsx)("div",{children:N&&(0,n.jsx)("div",{className:u.homeContainer.sectionWrapperPromo||"",children:(0,n.jsx)("div",{className:u.homeContainer.mainWrapperFeature||"",children:(0,n.jsxs)("div",{className:u.articleCarousel.sliderWrapper||"",children:[N&&N.items&&N.items.map(e=>e&&"ContentTypeRichText"===e.__typename?(0,i.createElement)(w.Z,{...e,key:e&&e.sys&&e.sys.id,pageSource:f.earnPoints,variant:"feature-earnpoints"}):null),(0,n.jsx)("div",{style:{scrollbarWidth:"none"},className:"flex overflow-y-auto",children:null===k.Z||void 0===k.Z?void 0:null===(t=k.Z.couponsToDisplay)||void 0===t?void 0:t.map(e=>(0,n.jsx)("div",{id:"coupon-".concat(e.id),className:"inline",children:(0,n.jsx)(T.Z,{...e,labels:R,addedToBasket:()=>I.push(S.pahCoupons),closeAllToolTips:Z!==e.id,toolTipOpened:e=>D(e),styles:"couponCard",pageSource:"printAtHome"})},null==e?void 0:e.id))}),(0,n.jsx)("div",{className:"flex justify-center",children:null===k.Z||void 0===k.Z?void 0:null===(o=k.Z.couponsToDisplay)||void 0===o?void 0:o.map((e,t)=>(0,n.jsx)("button",{"aria-label":"slide-".concat(e.id),type:"button",onClick:()=>{G(t),document.getElementById("coupon-".concat(e.id)).scrollIntoView({behavior:"smooth",block:"nearest"})},className:"w-10 h-10 bg-couponsBlue m-10px rounded-full ".concat(A===t?"dotsSeleted":"dotsNotSeleted")},null==e?void 0:e.id))})]})})})})]}),(0,n.jsx)("div",{className:u.content.mainBannerSection||"",children:(0,n.jsx)("div",{className:u.content.bannerSection||"",children:(0,n.jsx)("div",{children:(0,n.jsx)(g.Z,{iconName:l.iconName,image:l.image,title:l.title,styles:"coupons-earnRewards",subTitle:l.subTitle,callToActionsCollection:l.callToActionsCollection,pageSource:f.coupons},null==l?void 0:null===(a=l.sys)||void 0===a?void 0:a.id)})})}),!1===h.default.userLoggedIn&&(0,n.jsxs)("div",{className:u.letsGetStarted.wrapper||"",children:[(0,n.jsx)("div",{className:u.letsGetStarted.content||"",children:(0,n.jsx)(C.Z,{markdown:z.items[0].body})}),(0,n.jsx)("div",{className:u.letsGetStarted.ctaWrapper||"",children:(0,n.jsx)(v.Z,{pageSource:f.coupons,...z.items[1],handler:y.Ki})})]})]})]}),(0,n.jsx)(p(),{id:x.Z.__hash,children:x.Z})]})};W.propTypes={pageTitle:r().string.isRequired,earnRewardFast:r().instanceOf(Object).isRequired,pageBackground:r().instanceOf(Object).isRequired,offerDetailsLabel:r().string.isRequired,addToBasketLabel:r().string.isRequired,addedToBasketLabel:r().string.isRequired,router:r().instanceOf(Object).isRequired};var N=(0,d.withRouter)((0,s.Pi)(W)),z=o(87364),B=o(13466);let P=e=>{let{layoutData:t,page:o,couponPage:i}=e;return(0,n.jsxs)(z.Z,{...t,children:[(0,n.jsx)(B.Z,{...o.pageMetaData}),(0,n.jsx)(N,{...i,...o})]})};P.propTypes={layoutData:r().instanceOf(Object).isRequired,page:r().instanceOf(Object).isRequired};var E=!0,I=P}},function(e){e.O(0,[3662,724,1216,5814,1055,3495,1191,6839,6716,8743,7364,7573,5218,5029,143,2888,9774,179],function(){return e(e.s=52519)}),_N_E=e.O()}]);