PageSourceSearch

https://www.savings.com/_next/static/chunks/app/page-42d3c222b6235ad6.js

js savings.com collected 2026-10-02 02:26:00 UTC 53,551 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[974],{350:(e,t,a)=>{"use strict";a.d(t,{Y5:()=>c,kz:()=>s});let l={month:"long",day:"numeric",year:"numeric"},r={month:"short",day:"numeric",year:"numeric"},o=null,n=null;function i(e){let t="string"==typeof e?new Date(e):e;return t instanceof Date&&!Number.isNaN(t.getTime())}function s(e){if(!i(e))return"";let t="string"==typeof e?new Date(e):e;return(null!=n?n:n=new Intl.DateTimeFormat("en-US",r)).format(t)}function c(){var e=new Date;if(!i(e))return"";let t="string"==typeof e?new Date(e):e;return(null!=o?o:o=new Intl.DateTimeFormat("en-US",l)).format(t)}},699:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>D});var l=a(5155),r=a(7655);let o={IMAGE:{TITLE:"Save Big on Your Favorite Brands",HEADER:"Exclusive Deals",ALT_TEXT:"Hero image showing savings and deals",CTA_TEXT:"Shop Now",DESTINATION_URL:"#"},FALLBACKS:{ALT_TEXT:"Hero image",CTA_TEXT:"Shop Now",DESTINATION_URL:"#"}};a(3820);var n=a(3151),i=a(3461);n.Ikc({accentImageUrl:n.lqM(n.mee(n.YjP())),backgroundColor:i.bb,ctaDescription:n.YjP().check(n.BpQ(1)),headline:n.YjP().check(n.BpQ(1)),heroImages:n.YOg(n.L5J()),promoBackgroundColor:i.bb,subline:n.YjP().check(n.BpQ(1))});var s=a(8796);n.Ikc({altText:n.lqM(n.mee(n.YjP())),autoUnpublish:n.zMY(),ctaText:n.lqM(n.mee(n.YjP())),deal:n.lqM(n.mee(s.b)),destinationUrl:n.lqM(n.mee(n.YjP())),header:n.lqM(n.mee(n.YjP())),id:i.xf,imageUrl:n.YjP().check(n.BpQ(1)),promotional:n.lqM(n.mee(n.zMY())),publishDate:n.lqM(n.mee(i.ht)),title:n.lqM(n.mee(n.YjP())),unpublishDate:n.lqM(n.mee(i.ht))}),a(1110);var c=a(5904);let d={HERO_IMAGE:"/nextjs-assets/images/homepage/animated-pig-logo.svg"};a(3941),a(6660);var x=a(2115),m=a(6775),g=a(1425),h=a(6784),u=a(2567),f=a(6800),v=a(1438),p=a(5798),b=a(2735);function j(e){let{onSubmitted:t,onSkipped:a,description:r=p.fw,submitText:o=p.ke,submittingText:n=p.e1,skipText:i=p.XN}=e,{siteBaseUrl:s}=(0,h.v)(),{phone:d,isSubmitting:m,hasError:g,errorMessage:j,inputRef:w,handlePhoneChange:N,handleSubmit:y,handleSkip:S}=(0,v.V)({onSubmitted:t,onSkipped:a}),C=(0,x.useRef)(null);(0,x.useEffect)(()=>{var e;null==(e=C.current)||e.focus()},[]);let E=g?"border-[color:var(--color-error)] focus:border-[color:var(--color-error)] focus:ring-[color:var(--color-error)]/20":"border-[color:var(--color-Savings-Accent-Grey)] focus:border-[color:var(--color-Savings-Primary-Dark-Green)] focus:ring-[color:var(--color-ring-focus)]";return(0,l.jsxs)("div",{className:"flex flex-col gap-5 w-full",children:[(0,l.jsx)("div",{className:"text-center lg:text-left",children:(0,l.jsx)("p",{ref:C,tabIndex:-1,className:"font-normal text-base lg:text-lg leading-[1.2] text-[color:var(--color-Savings-Primary-Black)] outline-none",children:r})}),(0,l.jsxs)("div",{className:"flex flex-col gap-6 w-full",children:[(0,l.jsxs)("form",{onSubmit:y,noValidate:!0,className:"flex flex-col gap-5 lg:flex-row w-full",children:[(0,l.jsx)("div",{className:"w-full lg:flex-1",children:(0,l.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,l.jsx)("input",{ref:w,type:"tel",inputMode:"tel",autoComplete:"tel",name:"phoneNumber","aria-label":p.YS,value:d,onChange:e=>N(e.target.value),placeholder:p.wH,disabled:m,className:"w-full px-5 py-4.5 bg-white border rounded-lg text-base leading-5 font-normal focus:outline-none focus:ring-[length:var(--ring-width-focus)] placeholder:text-[color:var(--color-Savings-Accent-Dark-Grey)] text-[color:var(--color-Savings-Primary-Black)] disabled:opacity-50 disabled:cursor-not-allowed ".concat(E),"aria-invalid":g,"aria-describedby":g?"hero-sms-error":void 0}),g&&j&&(0,l.jsx)("p",{id:"hero-sms-error",className:"text-xs text-[color:var(--color-error)] font-normal",role:"alert",children:j})]})}),(0,l.jsxs)("div",{className:"flex flex-col gap-5 lg:flex-1 lg:gap-3",children:[(0,l.jsx)("button",{type:"submit",disabled:m,className:"w-full px-5 py-4.5 bg-[color:var(--color-Savings-Primary-Dark-Green)] rounded-lg text-white font-bold text-lg lg:text-xl leading-[1.2] text-center hover:bg-[color:var(--color-hover-dark-green)] disabled:opacity-50 disabled:cursor-not-allowed transition-colors flex items-center justify-center",children:m?n:o}),(0,l.jsx)("div",{className:"text-center lg:text-left",children:(0,l.jsx)("button",{type:"button",onClick:S,disabled:m,className:"font-normal text-sm text-[color:var(--color-Savings-Primary-Black)] underline underline-offset-2 hover:opacity-80 disabled:opacity-50 disabled:cursor-not-allowed",children:i})})]})]}),(0,l.jsx)("div",{className:"disclaimer-text text-center lg:text-left",children:(0,l.jsx)("p",{className:"text-xs text-[color:var(--color-Savings-Primary-Black)] font-normal",children:(0,l.jsx)(f.p,{prefix:b.BO,connector:b.ox,suffix:b.kN,termsHref:(0,c.uM)(u.q.TERMS,s),privacyHref:(0,c.uM)(u.q.PRIVACY,s
1)})})})]})]})}var w=a(5823);function N(e){let{onEmailCaptured:t,className:a=""}=e,[r,o]=(0,x.useState)("email"),n=(0,m.q)("mx-auto lg:mx-0",a),i=(0,m.q)("mx-auto",a);return"sms"===r?(0,l.jsx)("div",{className:n,children:(0,l.jsx)(j,{onSubmitted:()=>o("complete"),onSkipped:()=>o("complete")})}):"complete"===r?(0,l.jsx)("div",{className:i,children:(0,l.jsx)(w.A,{})}):(0,l.jsx)(g.A,{className:a,onSignupSuccess:e=>{let{sessionEstablished:a}=e;null==t||t(),o(a?"sms":"complete")}})}var y=a(5239),S=a(6898);function C(){return(0,l.jsx)("div",{className:"".concat(S.Dv.image.position," ").concat(S.Dv.image.width.base," ").concat(S.Dv.image.width.maxBase," ").concat(S.Dv.image.height.base," ").concat(S.Dv.image.width.md," ").concat(S.Dv.image.height.md," ").concat(S.Dv.image.width.lg," ").concat(S.Dv.image.height.lg," ").concat(S.Dv.image.width.xl," ").concat(S.Dv.image.height.xl," ").concat(S.Dv.image.shrink),children:(0,l.jsx)(y.default,{src:d.HERO_IMAGE,alt:"Savings.com mascot",fill:!0,className:"object-contain object-center",priority:!0,unoptimized:!0,sizes:"(max-width: 1024px) 327px, 480px"})})}var E=a(8218);function A(e){let{viewModel:t}=e,{isAuthenticated:a}=(0,E.A)(),[r,o]=(0,x.useState)(!1),n=(0,x.useCallback)(()=>o(!0),[]);return(0,l.jsx)("section",{style:{backgroundColor:t.backgroundColor},children:(0,l.jsx)("div",{className:"px-6 py-10",children:(0,l.jsx)("div",{className:"".concat(S.MR.width.max.base," mx-auto ").concat(S.MR.width.min.base),children:(0,l.jsxs)("div",{className:"flex flex-col lg:flex-row gap-5 items-center",children:[(0,l.jsx)("div",{className:"flex-1 ".concat(S.KB.width.lg," ").concat(S.MR.width.min.base," w-full"),children:(0,l.jsxs)("div",{className:"flex flex-col gap-10",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-4 text-[color:var(--color-Savings-Primary-Black)] text-center lg:text-left",children:[(0,l.jsx)("h1",{className:"font-bold text-5xl lg:text-[length:var(--theme-6xl-font-size)] leading-12 lg:leading-[var(--theme-6xl-line-height)]",children:t.sectionTitle}),(0,l.jsx)("p",{className:"font-normal text-xl lg:text-[length:var(--theme-3xl-font-size)] leading-6 lg:leading-[var(--theme-3xl-line-height)]",children:t.sectionSubtitle})]}),(!a||r)&&(0,l.jsxs)("div",{className:"flex flex-col gap-5 w-full",children:[!r&&(0,l.jsx)("div",{className:"text-center lg:text-left",children:(0,l.jsx)("p",{className:"font-normal text-base lg:text-lg leading-6 lg:leading-7 text-[color:var(--color-Savings-Primary-Black)]",children:t.ctaDescription})}),(0,l.jsx)(N,{onEmailCaptured:n})]})]})}),(0,l.jsx)(C,{})]})})})})}function D(e){let{heroSection:t}=e,a=function(e){if(!e)return null;let t=e.heroImages.filter(e=>!e.isPromotional),a=t.length>0?t:[{id:1,title:o.IMAGE.TITLE,header:o.IMAGE.HEADER,altText:o.IMAGE.ALT_TEXT,imageUrl:d.HERO_IMAGE,destinationUrl:o.IMAGE.DESTINATION_URL,ctaText:o.IMAGE.CTA_TEXT,isPromotional:!1,autoUnpublish:!1,publishDate:new Date,unpublishDate:null,deal:null}];return{sectionTitle:e.headline,sectionSubtitle:e.subline,sectionAriaLabel:"Hero section: ".concat(e.headline),ctaDescription:e.ctaDescription,heroImages:a.map(e=>({id:e.id,displayTitle:e.title||"",displayHeader:e.header||"",imageUrl:e.imageUrl,imageAlt:e.altText||"",actionLabel:e.ctaText||o.FALLBACKS.CTA_TEXT,isPromotional:e.isPromotional,deal:e.deal?(0,r.R)(e.deal):null})),backgroundColor:e.backgroundColor,promoBackgroundColor:e.promoBackgroundColor,accentImageUrl:e.accentImageUrl||null,hasError:!1,errorMessage:null,shouldShowContent:!0}}(t);return a&&a.shouldShowContent?(0,l.jsx)(A,{viewModel:a}):null}},960:(e,t,a)=>{Promise.resolve().then(a.t.bind(a,1356,23)),Promise.resolve().then(a.bind(a,4437)),Promise.resolve().then(a.bind(a,6552)),Promise.resolve().then(a.bind(a,5418)),Promise.resolve().then(a.bind(a,1627)),Promise.resolve().then(a.bind(a,7027)),Promise.resolve().then(a.bind(a,5408)),Promise.resolve().then(a.bind(a,699)),Promise.resolve().then(a.bind(a,6347)),Promise.resolve().then(a.bind(a,7895)),Promise.resolve().then(a.bind(a,3165))},1110:(e,t,a)=>{"use strict";a.d(t,{n:()=>l});var l=function(e){return e.BuyThisGetThat="buy-this-get-that",e.Clearance="clearance",e.Discount="discount",e.FreeShipping="free-shipping",e.Rebate="rebate",e.Tip="tip",e.Other="other",e}({})},1390:(e,t,a)=>{"use strict";a.d(t,{a:()=>r});let l={"updated-today":{bgColor:"var(--color-Savings-Accent-Light-Mint)",text:"UPDATED TODAY",showIcon:!0},exclusive:{bgColor:"var(--color-Savings-Accent-Light-Peach)",text:"ONLINE EXCLUSIVE",showIcon:!1,fontSize:"text-[12px] xl:text-[18px]",lineHeight:"leading-[var(--theme-xs-line-height)] xl:leading-[var(--theme-lg-line-height)]",borderSize:"2px",padding:"12px"},"exclusive-deal-card":{bgColor:"var(--color-Savings-Accent-White)",textColor:"var(--color-Savings-Secondary-Spice)",borderColor:"var(--color-Savings-Secondary-Spice)",text:"exclusive",showIcon:!1,fontSize:"text-[12px]",lineHeight:"leading-[var(--theme-xs-line-height)]",borderSize:"1px",padding:"6px 12px"},"exclusive-featured-coupons":{bgColor:"var(--color-Savings-Accent-Light-Peach)",textColor:"var(--color-Savings-Primary-Black)",borderColor:"var(--color-Savings-Secondary-Spice)",text:"EXCLUSIVE",showIcon:!1,fontSize:"text-[12px] xl:text-[18px]",lineHeight:"leading-[var(--theme-xs-line-height)] xl:leading-[var(--theme-lg-line-height)]",borderSize:"2px",padding:"12px"}};function r(e,t){let a={borderSize:"1px",padding:"6px 12px",...l[e]};return t?{...a,text:t}:a}},1425:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var l=a(5155);a(2115);var r=a(3157),o=a(2567),n=a(4457),i=a(6898),s=a(5904),c=a(6784),d=a(6775),x=a(5823),m=a(8276),g=a(5798),h=a(6800);function u(e){let{buttonText:t=g.FW,buttonSubmittingText:a=g.Z,successMessage:u=g.nU,termsUrl:f=o.q.TERMS,privacyUrl:v=o.q.PRIVACY,buttonColor:p="bg-[color:var(--color-Savings-Primary-Dark-Green)]",buttonHoverColor:b="hover:bg-[color:var(--color-hover-dark-green)]",successColor:j="text-[color:var(--color-Savings-Primary-Dark-Green)]",inputFocusColor:w="focus:border-[color:var(--color-Savings-Primary-Dark-Green)]",inputFocusRingColor:N="focus:ring-[color:var(--color-ring-focus-success)]",className:y="",onSignupSuccess:S}=e,{email:C,isSubmitting:E,formState:A,handleEmailChange:D,handleInputFocus:k,handleInputBlur:T,handleSubmit:M}=(0,r.A)({onSuccess:S}),{siteBaseUrl:L}=(0,c.v)();if("success"===A)return(0,l.jsx)("div",{className:(0,d.q)("mx-auto",y
1),children:(0,l.jsx)(x.A,{message:u,successColor:j})});let _="error-empty"===A||"error-invalid"===A||"error-existing"===A,P=_?"border-[color:var(--color-error)] focus:border-[color:var(--color-error)] focus:ring-[color:var(--color-ring-focus-error)]":"border-[color:var(--color-Savings-Accent-Grey)] ".concat(w," ").concat(N),R="error-empty"===A?g.U7:"error-invalid"===A?g.AI:"error-existing"===A?(0,l.jsx)(m.n,{loginHref:(0,s.uM)(n._m,L)}):"";return(0,l.jsxs)("div",{className:(0,d.q)("mx-auto lg:mx-0",y,"[&.bottom]:max-w-[580px] [&.bottom]:lg:w-[680px] [&.bottom]:lg:max-w-none [&.bottom]:!min-w-0"),children:[(0,l.jsxs)("form",{onSubmit:M,noValidate:!0,className:"flex flex-col gap-2 lg:flex-row lg:gap-4 xl:gap-5 w-full [.bottom_&]:md:flex-row",children:[(0,l.jsx)("div",{className:"form-input w-full lg:flex-1 ".concat(i._5.input.minWidth.lg," ").concat(i._5.input.minWidth.xl," ").concat(i._5.button.maxWidth.bottomXl),children:(0,l.jsxs)("div",{className:"flex-col flex gap-1 w-full",children:[(0,l.jsx)("input",{type:"email","aria-label":g.LD,value:C,onChange:e=>D(e.target.value),onFocus:k,onBlur:T,placeholder:g.BY,className:"w-full ".concat(i._5.input.height.base," px-5 py-0 bg-white border rounded-lg text-base leading-5 font-normal focus:outline-none focus:ring-1 placeholder:text-[color:var(--color-Savings-Accent-Dark-Grey)] text-[color:var(--color-Savings-Primary-Black)] ").concat(i._5.input.height.lg," lg:px-4 lg:text-base lg:").concat(i.a$.lineHeight["1_375"]," ").concat(i._5.input.height.xl," xl:px-5 xl:leading-6 [.bottom_.form-input_&]:").concat(i._5.input.height.base," ").concat(P),required:!0,"aria-invalid":_,"aria-describedby":_?"email-error":void 0}),_&&R&&(0,l.jsx)("p",{id:"email-error",className:"text-xs text-[color:var(--color-error)] font-normal",role:"alert",children:R})]})}),(0,l.jsx)("button",{type:"submit",disabled:E,className:"form-button w-full ".concat(i._5.button.height.base," px-5 py-5 ").concat(p," rounded-lg text-white font-bold text-lg leading-7 text-center ").concat(b," disabled:opacity-50 disabled:cursor-not-allowed transition-colors flex items-center justify-center lg:flex-1 ").concat(i._5.button.height.lg," lg:px-4 lg:py-4 lg:text-lg lg:").concat(i.a$.lineHeight["1_375"]," ").concat(i._5.button.height.xl," xl:px-5 xl:py-5 xl:text-xl xl:leading-6 [.bottom_&]:").concat(i._5.button.height.base," ").concat(i._5.button.maxWidth.bottomXl),children:E?a:t})]}),(0,l.jsx)("div",{className:"disclaimer-text text-center lg:text-left mt-5 [.bottom_&]:text-center [.bottom_&]:lg:text-center",children:(0,l.jsx)("p",{className:"text-xs text-[color:var(--color-Savings-Primary-Black)] font-normal",children:(0,l.jsx)(h.p,{prefix:g.bq,connector:g.q1,suffix:g.Mi,termsHref:f,privacyHref:v})})})]})}},1627:(e,t,a)=>{"use strict";a.d(t,{default:()=>s});var l=a(5155),r=a(2115),o=a(7937);function n(e){let{item:t,isOpen:a,onToggle:n,index:i,totalItems:s}=e,c=(0,r.useRef)(null),[d,x]=r.useState(0);return(0,r.useEffect)(()=>{c.current&&x(c.current.scrollHeight)},[t.answer]),(0,l.jsxs)("div",{className:"w-full",children:[(0,l.jsx)("h3",{children:(0,l.jsxs)("button",{onClick:n,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),n())},className:"w-full flex items-center justify-between text-left cursor-pointer focus:outline-none","aria-expanded":a,"aria-controls":"faq-answer-".concat(t.id),id:"faq-question-".concat(t.id),tabIndex:0,children:[(0,l.jsx)("span",{className:"faq-question-content text-base md:text-lg leading-6 md:leading-7 font-bold text-[color:var(--color-Savings-Primary-Black)] flex-1 pr-4 [&>br:last-child]:hidden",style:{fontFamily:"var(--Font-Body-Font)"},dangerouslySetInnerHTML:{__html:t.question}}),(0,l.jsx)(o.A,{size:24,className:"transform transition-transform duration-200 ease-in-out ".concat(a?"rotate-90":"rotate-0"),style:{color:"var(--color-Savings-Primary-Dark-Green)"},strokeWidth:2,"aria-hidden":"true"})]})}),(0,l.jsx)("div",{id:"faq-answer-".concat(t.id),className:"faq-answer overflow-hidden transition-all duration-200 ease-in-out",style:{maxHeight:a?"".concat(d,"px"):"0px",opacity:+!!a},"aria-labelledby":"faq-question-".concat(t.id),role:"region","aria-hidden":!a,children:(0,l.jsx)("div",{ref:c,className:"pb-4 pt-1",children:(0,l.jsx)("div",{className:"faq-answer-content text-base leading-5 md:text-lg md:leading-7 text-[color:var(--color-Savings-Primary-Black)] [&>br:last-child]:hidden [&_ul>br]:hidden [&_ol>br]:hidden [&_a]:underline",style:{fontFamily:"var(--Font-Body-Font)"},dangerouslySetInnerHTML:{__html:t.answer}}
1)})}),i<s-1&&(0,l.jsx)("div",{className:"py-6",children:(0,l.jsx)("div",{className:"h-px bg-[color:var(--color-Savings-Secondary-Mint)] w-full"})})]})}var i=a(6898);function s(e){let{sectionTitle:t,sectionAriaLabel:a,items:o,allowMultipleOpen:s,defaultOpenItems:c}=e,[d,x]=(0,r.useState)(new Set(c)),m=(0,r.useCallback)(e=>{x(t=>{let a=new Set(t);return a.has(e)?a.delete(e):(s||a.clear(),a.add(e)),a})},[s]);return(0,l.jsx)("section",{className:"bg-[color:var(--color-Savings-Accent-Light-Peach)] py-10 lg:py-16 px-6",role:"region","aria-label":a,children:(0,l.jsx)("div",{className:"".concat(i.MR.width.max.base," mx-auto ").concat(i.MR.width.min.base),children:(0,l.jsxs)("div",{className:"bg-white rounded-[var(--radius-3xl)] px-7 lg:px-15 py-10 lg:py-16 flex flex-col gap-10",children:[(0,l.jsx)("div",{className:"text-center",children:(0,l.jsx)("h2",{className:"text-[2rem] lg:text-5xl leading-8 lg:leading-12 text-[color:var(--color-Savings-Primary-Black)]",children:t})}),(0,l.jsx)("div",{className:"flex flex-col",children:o.map((e,t)=>(0,l.jsx)(n,{item:e,isOpen:d.has(e.id),onToggle:()=>m(e.id),index:t,totalItems:o.length},e.id))})]})})})}},3165:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>p});var l=a(5155),r=a(2115),o=a(7655);let n={LOAD_MORE_MIN_DEALS:17,LOAD_MORE_PAGE_SIZE:16};var i=function(e){return e.LOAD_MORE_STARTED="LOAD_MORE_STARTED",e.LOAD_MORE_SUCCESS="LOAD_MORE_SUCCESS",e.LOAD_MORE_FAILED="LOAD_MORE_FAILED",e}({});function s(e,t){switch(t.type){case i.LOAD_MORE_STARTED:return{...e,isLoading:!0,error:null};case i.LOAD_MORE_SUCCESS:return{...e,dealCards:[...e.dealCards,...t.payload.deals],totalDeals:t.payload.total,hasMore:t.payload.hasMore,page:e.page+1,isLoading:!1,error:null};case i.LOAD_MORE_FAILED:return{...e,error:t.payload,isLoading:!1};default:return e}}var c=a(926);let d=(0,c.createServerReference)("40d6ff902d2942ab274a96bb2eb29d4c2c67f5209c",c.callServer,void 0,c.findSourceMapURL,"loadDeals");var x=a(6660),m=a(5239),g=a(3652),h=a(4103),u=a(6898),f=a(4337);function v(e){let{viewModel:t,deals:a,hasMore:r,loading:o,onLoadMore:n}=e;return(0,l.jsxs)(h.A,{title:t.sectionTitle,className:"bg-[color:var(--color-Savings-Accent-Off-White)]",icon:(0,l.jsx)(m.default,{src:"/nextjs-assets/images/homepage/magnifying-icon.svg",alt:"",fill:!0,className:"object-contain"}),children:[t.shouldShowErrorState&&(0,l.jsxs)("div",{className:"text-red-600 mb-5 p-3 bg-red-50 border border-red-200 rounded",children:[(0,l.jsx)("h3",{className:"font-medium",children:"Unable to Load Deals"}),(0,l.jsx)("p",{className:"text-sm mt-1",children:f.Qp})]}),t.shouldShowContent&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-
15 justify-items-center items-start",children:a.map(e=>(0,l.jsx)(g.Tv,{id:e.id,title:e.displayTitle,imageUrl:e.imageUrl,merchantName:e.merchantName,merchantLogoUrl:e.merchantLogoUrl,merchantBgColor:e.merchantBgColor,expiration:e.displayExpiration,expirationDate:e.expirationDate,lastValidated:e.lastValidated,isExclusive:e.shouldShowExclusiveBadge,actionUrl:e.actionUrl,actionTarget:e.actionTarget,ariaLabel:e.ariaLabel},e.id))}),r&&(0,l.jsx)("div",{className:"mt-6 flex justify-center",children:(0,l.jsx)("button",{onClick:n,disabled:o,className:"px-5 py-5 bg-[color:var(--color-Savings-Primary-Dark-Green)] text-white text-xl font-bold leading-6 rounded-lg hover:bg-[color:var(--color-hover-dark-green-alt)] disabled:bg-gray-400 disabled:cursor-not-allowed transition-colors w-full ".concat(u.PE.width.max.base," cursor-pointer"),children:o?"Loading...":"Discover More"})})]}),t.isLoading&&(0,l.jsxs)("div",{className:"text-center py-8",children:[(0,l.jsx)("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-blue-600 mx-auto"}),(0,l.jsx)("p",{className:"text-gray-500 mt-2",children:"Loading deals..."})]})]})}function p(e){let{initialData:t}=e,{viewModel:a,handleLoadMore:c}=function(e){let[t,a]=(0,r.useReducer)(s,e,e=>{let t,a;return{dealCards:t=e.deals.map(o.R),page:1,totalDeals:a=e.totalDeals,hasMore:t.length<a,isLoading:!1,error:null}}),{handleLoadMore:l}=function(e){let{dispatch:t,page:a,isLoading:l,hasMore:o}=e;return{handleLoadMore:(0,r.useCallback)(async()=>{if(!l&&o){t({type:i.LOAD_MORE_STARTED});try{let e=await d({page:a+1,size:n.LOAD_MORE_PAGE_SIZE});t({type:i.LOAD_MORE_SUCCESS,payload:{deals:e.deals,total:e.total,hasMore:e.hasMore}})}catch(l){let e=l instanceof Error?l.message:"Failed to load more deals";t({type:i.LOAD_MORE_FAILED,payload:e}),(0,x.vV)("top-deals","Load more failed",l,{page:a+1})}}},[t,a,l,o])}}({dispatch:a,page:t.page,isLoading:t.isLoading,hasMore:t.hasMore}),c=t.hasMore&&!t.isLoading&&t.totalDeals>=n.LOAD_MORE_MIN_DEALS;return{viewModel:{sectionTitle:e.title,dealCards:t.dealCards,isLoading:t.isLoading,errorMessage:t.error,shouldShowErrorState:!!t.error,shouldShowContent:t.dealCards.length>0,shouldShowLoadMore:c},handleLoadMore:l}}(t);return(0,l.jsx)(v,{viewModel:a,deals:a.dealCards,hasMore:a.shouldShowLoadMore,loading:a.isLoading,onLoadMore:c})}},3461:(e,t,a)=>{"use strict";a.d(t,{bb:()=>o,ht:()=>n,v4:()=>i,xf:()=>r});var l=a(3151);let r=l.aig().check(l.yjt()),o=l.YjP().check(l.yGV(/^#[0-9A-Fa-f]{6}$/,"Must be a valid hex color"));l.YjP().check(l.BpQ(1));let n=l.KCZ([l.YjP(),l.aig()]),i=l.k5n(["BUYTHISGETTHAT","CLEARANCEPAGE","DISCOUNT","FREESHIPPING","OTHERDEALTYPE","REBATE","TIP"]);l.k5n(["SEASONAL_BANNER","HERO_CTA","TOP_DEALS","FEATURED_MERCHANTS","SAVVY_DEALS","ARTICLE_MASONRY","CONTRIBUTOR_PICKS","TRENDING","FAQS","ABOUT_US"])},3652:(e,t,a)=>{"use strict";a.d(t,{df:()=>p,Tv:()=>v,pe:()=>w});var l=a(3608),r=a(2451),o=a(3447),n=a(5155),i=a(5239),s=a(6047);function c(e){let{config:t,position:a="inside",className:l=""}=e;if(!t.text)return null;let r=t.fontSize||"text-xs lg:text-lg",o=t.lineHeight||"lg:leading-7",c={backgroundColor:t.bgColor,padding:t.padding};return t.borderColor&&(c.borderColor=t.borderColor,c.borderWidth=t.borderSize,c.borderStyle="solid"),(0,n.jsxs)("div",{className:"".concat("outside"===a?"absolute -top-5 -left-2 z-10":"absolute top-3 left-3 z-10"," rounded-3xl min-h-[33px] flex items-center gap-2 shadow-badge ").concat(l),style:c,children:[t.showIcon&&(0,n.jsx)("div",{className:"w-[32px] h-[25px] md:h-[28px] relative flex-shrink-0",children:(0,n.jsx)(i.default,{src:s.ID,alt:"",fill:!0,className:"object-contain"})}),(0,n.jsx)("span",{className:"".concat(r," font-bold ").concat(o," uppercase whitespace-nowrap ").concat(t.textColor?"":"text-Savings-Primary-Black"),style:t.textColor?{color:t.textColor}:void 0,children:t.text})]})}var d=a(6898);let x={small:{container:d.KN.merchant.sm.container,width:70,height:60,maxWidth:"70px",maxHeight:"60px",rounded:d.KN.merchant.sm.rounded,shadow:"shadow-lg"},medium:{container:d.KN.merchant.md.container,width:87,height:76,maxWidth:"87px",maxHeight:"76px",rounded:d.KN.merchant.md.rounded,shadow:d.xc.merchant.sm},large:{container:d.KN.merchant.lg.container,width:160,height:140,maxWidth:"80%",maxHeight:"150px",rounded:d.KN.merchant.lg.rounded,shadow:d.xc.merchant.lg}};function m(e){let{logoUrl:t,merchantName:a,backgroundColor:l="var(--color-Savings-Accent-White)",size:r="medium",className:o=""}=e,s=x[r];return(0,n.jsx)("div",{className:"".concat(s.container," ").concat(s.rounded," ").concat(s.shadow," flex items-center justify-center ").concat(o),style:{backgroundColor:l},children:(0,n.jsx)(i.default,{src:t,alt:"".concat(a," logo"),width:s.width,height:s.height,className:"object-contain",style:{width:"auto",height:"auto",maxWidth:s.maxWidth,maxHeight:s.maxHeight}})})}var g=a(2115),h=a(4033),u=a(7937),f=a(1390);function v(e){let{title:t,imageUrl:a,merchantName:i,merchantLogoUrl:s,merchantBgColor:d,expiration:x,expirationDate:v,lastValidated:p,isExclusive:b,actionUrl:j,actionTarget:w="_blank",ariaLabel:N}=e,[y,S]=(0,g.useState)(!1),C=(0,f.a)("exclusive-deal-card");return(0,n.jsxs)("div",{className:"relative w-full max-w-[380px] min-w-[280px]",children:[b&&(0,n.jsx)(c,{config:C,position:"inside"}),(0,n.jsxs)(l.Z,{href:j,target:w,ariaLabel:N||"".concat(i," - ").concat(t),borderStyle:"border",children:[(0,n.jsx)(r.M,{src:a,alt:t,height:"small",overlay:s&&(0,n.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,n.jsx)(m,{logoUrl:s,merchantName:i,backgroundColor:d,size:"medium"})})}),(0,n.jsxs)(o.W,{children:[(0,n.jsx)("div",{className:"text-xs font-bold text-Savings-Primary-Black uppercase tracking-wide",children:i}),(0,n.jsx)("div",{className:"min-h-[2.4em] lg:min-h-[2.3333em] text-xl lg:text-2xl",children:(0,n.jsx)("h3",{className:"text-xl lg:text-2xl font-bold leading-6 lg:leading-7 text-Savings-Primary-Black line-clamp-2",children:t})}),(0,n.jsxs)("div",{className:"flex flex-col gap-3 w-full",children:[(0,n.jsxs)("div",{className:"flex justify-between",children:[x&&(0,n.jsx)("div",{className:"text-[11.5px] font-extrabold leading-4 text-Savings-Red-600 uppercase",children:x}),(0,n.jsxs)("button",{className:"flex items-center gap-1 text-xs font-normal text-Savings-Accent-Dark-Grey hover:text-Savings-Primary-Black transition-colors",onClick:e=>{e.stopPropagation(),e.preventDefault(),S(!y)},children:[(0,n.jsx)("span",{children:"Details & Exclusions"}),y?(0,n.jsx)(h.A,{size:12,className:"text-current"}):(0,n.jsx)(u.A,{size:12,className:"text-current"})]})]}),y&&(0,n.jsxs)("div",{className:"flex flex-col gap-0.5 text-xs text-Savings-Primary-Black",children:[(0,n.jsx)("div",{className:"font-bold",children:"Deal Stats"}),v&&(0,n.jsxs)("div",{className:"font-normal",children:["Expires: ",v]}),p&&(0,n.jsxs)("div",{className:"font-normal",children:["Last Validated: ",p]})]})]})]})]})]})}function p(e){let{title:t,subtitle:a,imageUrl:i,category:s,href:c,target:d="_self",ariaLabel:x}=e;return(0,n.jsxs)(l.Z,{href:c,target:d,ariaLabel:x||t,borderStyle:"border",children:[(0,n.jsx)(r.M,{src:i,alt:t,height:"small"}),(0,n.jsxs)(o.W,{children:[s&&(0,n.jsx)("div",{className:"text-xs font-bold text-Savings-Primary-Black uppercase tracking-wide",children:s}),(0,n.jsx)("div",{className:"min-h-[3.6em] lg:min-h-[3.5em] text-xl lg:text-2xl",children:(0,n.jsx)("h3",{className:"text-xl lg:text-2xl font-bold leading-6 lg:leading-7 text-Savings-Primary-Black line-clamp-3",children:t})}),a&&(0,n.jsx)("div",{className:"text-xs font-normal text-Savings-Accent-Dark-Grey",children:a})]})]})}function b(e){let{title:t,category:a,date:l}=e;return(0,n.jsxs)("div",{className:"flex flex-col gap-2 lg:gap-3 text-Savings-Accent-Off-White w-full",children:[(0,n.jsx)("div",{className:"text-sm lg:text-lg font-bold leading-5 lg:leading-7 uppercase",children:a}),(0,n.jsx)("h3",{className:"text-xl md:text-2xl lg:text-4xl font-bold leading-6 md:leading-7 lg:leading-10",children:t}),l&&(0,n.jsx)("div",{className:"text-sm lg:text-lg font-normal leading-5 lg:leading-7",children:l})]})}function j(e){let{title:t,subtitle:a,merchantName:l,showMerchantName:r,showSubtitle:o,fixedTitleHeight:i}=e;return(0,n.jsxs)("div",{className:"featured-card-content grid gap-[var(--spacing-3)] text-Savings-Accent-Off-White w-full ".concat(r?"h-auto":"md:".concat(d.AQ.content.md," lg:").concat(d.AQ.content.lg," xl:").concat(d.AQ.content.xl)),style:{gridTemplateRows:i?"auto auto auto":""},children:[r&&(0,n.jsx)("div",{className:"text-lg font-bold leading-7 uppercase font-sans",children:l}),(0,n.jsx)("div",{className:"text-xl lg:text-2xl xl:text-4xl ".concat(i?"min-h-[2.4em] lg:min-h-[2.3333em] xl:min-h-[2.2222em]":"xl:min-h-[3.3333em]"),children:(0,n.jsx)("h3",{className:"text-xl lg:text-2xl xl:text-4xl font-bold leading-6 lg:leading-7 xl:leading-10 ".concat(i?"line-clamp-2":"xl:line-clamp-3 lg:min-h-[5.25rem]"),children:t})}),o&&(0,n.jsx)("div",{className:"text-base xl:text-lg font-normal leading-6 xl:leading-7 mt-auto line-clamp-2 min-h-6 xl:min-h-7",suppressHydrationWarning:!0,children:a})]})}function w(e){let{title:t,subtitle:a,category:o,date:i,merchantName:s,merchantLogo:x,merchantBgColor:g,imageUrl:h,href:u,target:f="_self",rel:v,logoPosition:p="top-right",badgePosition:w="outside",badgeConfig:N,cardHeight:y="".concat(d.AQ.height.desktop," xl:").concat(d.AQ.height.mobile),showMerchantName:S=!0,showSubtitle:C=!0,fixedTitleHeight:E=!1,enableHover:A=!0,imageClassName:D="object-cover",className:k=""}=e,T="none"!==p&&x;return(0,n.jsxs)("div",{className:"relative w-full ".concat(k),children:[N&&N.text&&(0,n.jsx)(c,{config:N,position:w}),(0,n.jsx)(l.Z,{href:u,target:f,rel:v,ariaLabel:"".concat(t," - ").concat(s),borderStyle:"none",enableHover:A,className:y,children:(0,n.jsx)(r.M,{src:h,alt:"",height:"custom",customHeight:"h-full",objectFit:D.includes("contain")?"contain":"cover",objectPosition:D.includes("object-top")?"top":void 0,showGradient:!0,overlay:(0,n.jsxs)("div",{className:"center"===p?"relative h-full p-5 flex flex-col justify-between items-center":"relative h-full p-5 flex flex-col ".concat("none"===p?"justify-end":"justify-between"),children:[T&&(0,n.jsx)("div",{className:"center"===p?"flex-1 flex items-center justify-center":"flex justify-end",children:(0,n.jsx)(m,{logoUrl:x,merchantName:s,backgroundColor:g,size:"center"===p?"large":"medium"})}),o?(0,n.jsx)(b,{title:t,category:o,date:i}):(0,n.jsx)(j,{title:t,subtitle:a,merchantName:s,showMerchantName:S,showSubtitle:C,fixedTitleHeight:E})]})})})]})}},3820:(e,t,a)=>{"use strict";a.d(t,{DI:()=>o,UC:()=>r,ow:()=>n});var l=a(1110);function r(e){if(!e)return!1;let t=new Date(e),a=new Date;return a.setDate(a.getDate()+14),t<=a}function o(e){if(!e)return null;let t=new Date;t.setHours(0,0,0,0);let a=new Date(e);a.setHours(0,0,0,0);let l=Math.ceil((a.getTime()-t.getTime())/864e5);return l<0||l>14?null:0===l?"Ends Today":1===l?"Ends Tomorrow":l<=7?"Ends in 1 Week":l<=14?"Ends in 2 Weeks":null}function n(e){return({[l.n.BuyThisGetThat]:"Buy This Get That",[l.n.Clearance]:"Clearance Sale",[l.n.Discount]:"Discount",[l.n.FreeShipping]:"Free Shipping",[l.n.Rebate]:"Rebate",[l.n.Tip]:"Pro Tip",[l.n.Other]:"Special Offer"})[e]||"Special Offer"}a(8796),a(9554)},4103:(e,t,a)=>{"use strict";a.d(t,{A:()=>
1o});var l=a(5155);a(2115);var r=a(6898);function o(e){let{title:t,icon:a,children:o,className:n=""}=e;return(0,l.jsx)("section",{className:"py-10 lg:py-16 px-6 ".concat(n),children:(0,l.jsx)("div",{className:"".concat(r.MR.width.max.base," mx-auto ").concat(r.MR.width.min.base),children:(0,l.jsxs)("div",{className:"flex flex-col gap-10 lg:gap-10",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[a&&(0,l.jsx)("div",{className:"w-12 h-12 relative flex-shrink-0",children:a}),(0,l.jsx)("h2",{className:"text-3xl xl:text-5xl font-bold leading-8 xl:leading-12 text-[color:var(--color-Savings-Primary-Black)]",children:t})]}),o]})})})}},4269:(e,t,a)=>{"use strict";a.d(t,{cn:()=>o});var l=a(2821),r=a(5889);function o(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,r.QP)((0,l.$)(t))}},4337:(e,t,a)=>{"use strict";a.d(t,{D9:()=>o,K9:()=>i,Qp:()=>l,W6:()=>s,h1:()=>r,wz:()=>n});let l="Something went wrong loading deals. Please try again.",r="Something went wrong. Please try again.",o="Unable to save your interests. Please try again.",n=6,i=100,s="Password must be ".concat(n," to ").concat(i," characters long.")},4457:(e,t,a)=>{"use strict";a.d(t,{Ip:()=>i,Iz:()=>l,Pe:()=>d,Vz:()=>n,XT:()=>c,_m:()=>s,dO:()=>r,lQ:()=>o});let l="/account",r="/account/preferences",o="/secure/member/profile/edit.html",n="/auth/member/profile/notify.html",i="/account/memberlogin.html",s="".concat(i,"?familiar=true"),c=["TOO_MANY_EMAILS","CONTENT","OTHER"],d="Add a phone number to receive text alerts."},5408:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>v});var l=a(5155),r=a(2115),o=a(5239),n=a(3652),i=a(4103),s=a(7141),c=a(1390),d=a(7655),x=a(6047);function m(e){var t,a,l;let r=null!=(t=e.merchantLogoUrl)?t:x.en,o=null!=(a=e.merchantBgColor)?a:"var(--color-Savings-Accent-White)",n=null!=(l=e.imageUrl)?l:x.wP;return{id:e.id.toString(),merchantName:e.merchantName,title:e.displayTitle,subtitle:e.displayDescription,badgeType:e.shouldShowExclusiveBadge?"exclusive-featured-coupons":void 0,merchantLogo:r,merchantBgColor:o,imageUrl:n,detailsUrl:e.actionUrl}}var g=a(6898);let{AUTO_ADVANCE_INTERVAL_MS:h,DESKTOP_CARDS_PER_VIEW:u}={AUTO_ADVANCE_INTERVAL_MS:5e3,DESKTOP_CARDS_PER_VIEW:2};function f(e){let{deal:t,className:a}=e,r=t.badgeType?(0,c.a)(t.badgeType):void 0;return(0,l.jsx)(n.pe,{title:t.title,subtitle:t.subtitle,category:t.category,date:t.expirationDate,merchantName:t.merchantName,merchantLogo:t.merchantLogo,merchantBgColor:t.merchantBgColor,imageUrl:t.imageUrl,href:t.detailsUrl||"#",target:"_blank",logoPosition:"center",badgePosition:"inside",badgeConfig:r,showMerchantName:!0,showSubtitle:!1,fixedTitleHeight:!0,enableHover:!1,className:"feature-coupon-card ".concat(a||"")})}function v(e){var t;let{initialData:a}=e,n=function(e){if(!e)return null;let t=e.deals.map(e=>(0,d.R)(e)).map(m);return{sectionTitle:e.title||"Savvy Deals",sectionSubtitle:"Discover exclusive offers and smart savings",sectionAriaLabel:"Savvy deals section with ".concat(t.length," deals"),dealCards:t,hasError:!1,isLoading:!1,errorMessage:null,errorType:null,shouldShowErrorState:!1,shouldShowContent:t.length>0,shouldShowLoadMore:!1,trackingContext:{sectionName:"savvy-deals",totalItems:t.length,source:"homepage-api"}}}(a),c=null!=(t=null==n?void 0:n.dealCards)?t:[],x=c.length,v=x>u,p=x>1,[b,j]=(0,r.useState)(x),[w,N]=(0,r.useState)("instant"),[y,S]=(0,r.useState)(x),[C,E]=(0,r.useState)(!0),A=(0,r.useRef)(null),D=(0,r.useRef)([]),k=(0,r.useRef)(!1),T=(0,r.useRef)(null),M=e=>{p&&(N("smooth"),j(t=>t+e)),v&&(E(!0),S(t=>t+e))},L=()=>{T.current&&clearInterval(T.current),x<=1||(T.current=setInterval(()=>M(1),h))};if((0,r.useEffect)(()=>(L(),()=>{T.current&&clearInterval(T.current)}),[x,v]),(0,r.useEffect)(()=>{let e=A.current;if(!e||!p)return;let t=D.current[b];t&&(k.current=!0,e.scrollTo({left:t.offsetLeft,behavior:w}))},[b,w,p]),(0,r.useEffect)(()=>{let e=A.current;if(!e||!p)return;let t=()=>{let t=k.current;k.current=!1;let a=0,l=1/0;D.current.forEach((t,r)=>{if(!t)return;let o=Math.abs(t.offsetLeft-e.scrollLeft);o<l&&(l=o,a=r)}),t||L(),a>=2*x?(k.current=!0,N("instant"),j(a-x)):a<x?(k.current=!0,N("instant"),j(a+x)):j(a)};return e.addEventListener("scrollend",t),()=>e.removeEventListener("scrollend",t)},[x,p]),!n||!n.shouldShowContent)return null;let _=e=>{M(e),L()},P=v?[...c,...c,...c]:c,R=p?[...c,...c,...c]:c;return(0,l.jsxs)(i.A,{title:n.sectionTitle||"Magical Markdowns",icon:(0,l.jsx)(o.default,{src:"/nextjs-assets/images/homepage/star-icon.svg",alt:"",fill:!0,className:"object-contain"}),className:"bg-[color:var(--color-Savings-Accent-Off-White)]",children:[(0,l.jsx)("div",{className:"xl:hidden",children:(0,l.jsx)("div",{ref:A,className:"relative flex gap-[var(--spacing-gutter)] overflow-x-auto scroll-smooth scrollbar-hide pb-[var(--spacing-4)]",children:R.map((e,t)=>(0,l.jsx)("div",{ref:e=>{D.current[t]=e},className:"\n                ".concat(g.MR.width.min.base," ").concat(g.KB.width.modal.base," flex-[1_0_0]\n                ").concat(g.KB.width.modal.width.lg," ").concat(g.MR.width.min.lg," ").concat(g.KB.width.modal.lg," lg:flex-initial\n              "),children:(0,l.jsx)(f,{deal:e})},"".concat(e.id,"-").concat(t)))})}),(0,l.jsxs)("div",{className:"hidden xl:block relative",children:[(0,l.jsx)("div",{className:"".concat(g.MR.width.max.base," mx-auto overflow-hidden"),children:(0,l.jsx)("div",{className:"flex gap-[var(--spacing-gutter)] ".concat(C?"transition-transform duration-1000 ease-in-out":""),style:{transform:"translateX(calc(-1 * ".concat(v?y:0," * (100% + var(--spacing-gutter)) / ").concat(u,"))")},onTransitionEnd:e=>{e.target===e.currentTarget&&v&&(y>=2*x?(E(!1),S(y-x)):y<x&&(E(!1),S(y+x)))},children:P.map((e,t)=>(0,l.jsx)("div",{className:"flex-shrink-0",style:{width:"calc((100% - var(--spacing-gutter)) / ".concat(u,")")},children:(0,l.jsx)(f,{deal:e,className:"w-auto ".concat(g.MR.width.min.base," ").concat(g.KB.width.base)})},"".concat(e.id,"-").concat(t)))})}),v&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(s.L,{direction:"left",position:"left",onClick:()=>_(-1),isActive:!0}),(0,l.jsx)(s.L,{direction:"right",position:"right",onClick:()=>_(1),isActive:!0})]})]})]})}},5418:(e,t,a)=>{"use strict";a.d(t,{default:()=>m});var l=a(5155),r=a(2115),o=a(6898);function n(e){let{value:t,label:a,className:r=""}=e;return(0,l.jsxs)("div",{className:"text-center ".concat(r),children:[(0,l.jsx)("div",{className:"text-lg lg:".concat(o.a$.fontSize["28px"]," leading-7 lg:").concat(o.a$.lineHeight["42px"]," font-bold text-[color:var(--color-Savings-Secondary-Spice)] mb-1"),children:t}),(0,l.jsx)("div",{className:"text-sm lg:text-lg leading-5 lg:leading-7 text-[color:var(--color-Savings-Primary-Black)]",children:a})]})}var i=a(1425),s=a(5239);let c=r.memo(()=>(0,l.jsx)("div",{className:"hidden md:block absolute -bottom-11 -right-2 lg:-bottom-2 lg:right-0 w-[200px] h-[200px] z-10",children:(0,l.jsx)(s.default,{src:"/nextjs-assets/images/logos/pig-form-icon.svg",alt:"Scout pig illustration",width:200,height:200,className:"w-full h-full object-contain"})}));c.displayName="PigImage";var d=a(8218),x=a(5798);function m(e){let{className:t=""}=e,{isAuthenticated:a}=(0,d.A)(),[s,m]=(0,r.useState)(!1),g=(0,r.useCallback)(()=>m(!0),[]);return a&&!s?null:(0,l.jsx)("section",{className:"bg-[color:var(--color-Savings-Accent-Light-Peach)] py-10 lg:py-16 px-6 ".concat(t),children:(0,l.jsx)("div",{className:"".concat(o.MR.width.max.base," mx-auto ").concat(o.MR.width.min.base),children:(0,l.jsxs)("div",{className:"relative bg-[color:var(--color-gradient-peach-light)] bg-gradient-to-br from-[color:var(--color-gradient-peach-light)] to-[color:var(--color-gradient-peach-dark)] rounded-[var(--radius-3xl)] p-10 overflow-hidden",children:[(0,l.jsx)(c,{}),(0,l.jsxs)("div",{className:"flex flex-col items-center gap-7 lg:gap-10 relative z-20",children:[(0,l.jsx)("div",{className:"text-center ".concat(o.KB.width.base),children:(0,l.jsx)("h2",{className:"text-2xl lg:text-5xl leading-7 lg:leading-12 text-[color:var(--color-Savings-Primary-Black)] mb-0",children:x.d4})}),(0,l.jsx)(i.A,{onSignupSuccess:g,buttonText:x.FW,buttonSubmittingText:x.Zh,successMessage:x.nU,buttonColor:"bg-[color:var(--color-Savings-Secondary-Spice)]",buttonHoverColor:"hover:bg-[color:var(--color-hover-spice)]",successColor:"text-[color:var(--color-Savings-Secondary-Spice)]",
1inputFocusColor:"focus:border-[color:var(--color-Savings-Primary-Dark-Green)]",inputFocusRingColor:"focus:ring-[color:var(--color-ring-focus-success)]",className:"bottom"}),(0,l.jsxs)("div",{className:"flex flex-row gap-8 lg:gap-10 items-center justify-center w-full ".concat(o.KB.width.base),children:[(0,l.jsx)(n,{value:x.Qs,label:x.ZA}),(0,l.jsx)(n,{value:x.iN,label:x.V2})]})]})]})})})}},5426:(e,t,a)=>{"use strict";a.d(t,{K:()=>n,i:()=>o});var l=a(5904),r=a(2567);function o(e,t){if(!e.startsWith("http"))return!1;let a=t||(0,l.Or)();return!e.startsWith(a)}function n(e){if(e&&e.startsWith("http"))try{let t=new URL(e);if("http:"!==t.protocol&&"https:"!==t.protocol)return;let a=t.hostname.toLowerCase();if(r.V.includes(a))return"nofollow"}catch(e){}}a(6660)},5823:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var l=a(5155),r=a(2115),o=a(6898),n=a(5798);function i(e){let{message:t=n.nU,successColor:a="text-[color:var(--color-Savings-Primary-Dark-Green)]"}=e,i=(0,r.useRef)(null);return(0,r.useEffect)(()=>{var e;null==(e=i.current)||e.focus({preventScroll:!0})},[]),(0,l.jsx)("div",{className:"".concat(o._5.container.success.height," flex items-center justify-start [.bottom_&]:justify-center"),children:(0,l.jsx)("p",{ref:i,tabIndex:-1,role:"status",className:"font-brand font-bold text-2xl lg:text-3xl leading-tight [.bottom_&]:text-[length:var(--theme-4xl-font-size)] [.bottom_&]:leading-[length:var(--theme-4xl-line-height)] [.bottom_&]:lg:text-[length:var(--theme-5xl-font-size)] [.bottom_&]:lg:leading-[length:var(--theme-5xl-line-height)] ".concat(a," text-left [.bottom_&]:text-center outline-none"),children:t})})}},5904:(e,t,a)=>{"use strict";a.d(t,{Or:()=>r,PX:()=>o,uM:()=>n});var l=a(5704);function r(){return l.env.SITE_BASE_URL||"https://www.savings.com"}function o(){var e;return null!=(e=l.env.APP_ENV)?e:"dev"}function n(e,t){if(e.startsWith("http://")||e.startsWith("https://"))return e;let a=(t||r()).replace(/\/$/,""),l=e.startsWith("/")?e:"/".concat(e);return"".concat(a).concat(l)}},6347:(e,t,a)=>{"use strict";a.d(t,{default:()=>d});var l=a(5155),r=a(2115),o=a(5239),n=a(4103),i=a(7141),s=a(6898);function c(e){let{store:t}=e;return(0,l.jsxs)("a",{href:t.destinationUrl,className:"flex flex-col gap-4 items-center px-5 w-full h-full no-underline hover:opacity-90 transition-opacity","aria-label":t.ariaLabel,children:[(0,l.jsx)("div",{className:"w-full ".concat(s.rX.logo.container," aspect-square rounded-full flex items-center justify-center ").concat(s.xc.badge," overflow-hidden mx-auto"),style:{backgroundColor:t.backgroundColor},children:(0,l.jsx)("div",{className:"".concat(s.rX.logo.inner," flex items-center justify-center"),children:(0,l.jsx)(o.default,{src:t.logoUrl,alt:"".concat(t.displayName," logo"),width:120,height:120,className:"object-contain",style:{width:"auto",height:"auto",maxWidth:"120px",maxHeight:"120px"}})})}),(0,l.jsx)("div",{className:"text-center w-full flex-1 flex items-start justify-center",children:(0,l.jsx)("div",{className:"text-xl leading-6 font-bold",children:(0,l.jsx)("p",{className:"mb-0 text-[color:var(--color-Savings-Primary-Black)] line-clamp-3",children:t.displayName})})}),(0,l.jsx)("div",{className:"text-xs font-bold uppercase text-[color:var(--color-Savings-Primary-Black)] text-center w-full",children:(0,l.jsxs)("p",{children:[t.couponsCount," offers"]})})]})}function d(e){let{viewModel:t}=e,[a,d]=(0,r.useState)(0),x=t.shouldShowContent?t.stores:[],m=t.storesPerPage,g=Math.ceil(x.length/m);return t.hasError||!t.shouldShowContent?null:(0,l.jsx)(n.A,{title:t.sectionTitle,icon:(0,l.jsx)(o.default,{src:"/nextjs-assets/images/homepage/discount-icon.svg",alt:"Popular stores icon",width:48,height:48,className:"w-full h-full"}),className:"bg-white",children:(0,l.jsxs)("div",{className:"w-full",children:[(0,l.jsx)("div",{className:"xl:hidden overflow-x-auto scrollbar-hide",children:(0,l.jsx)("div",{className:"flex gap-5 pb-4",style:{width:"max-content"},children:x.map(e=>(0,l.jsx)("div",{className:"".concat(s.rX.item.width," flex-shrink-0"),children:(0,l.jsx)(c,{store:e})},e.id))})}),(0,l.jsxs)("div",{className:"hidden xl:block relative",children:[(0,l.jsx)("div",{className:"overflow-hidden",children:(0,l.jsx)("div",{className:"flex transition-transform duration-300 ease-in-out",style:{transform:"translateX(-".concat(100*a,"%)")},children:Array.from({length:g},(e,t)=>(0,l.jsx)("div",{className:"w-full flex-shrink-0 grid grid-cols-6",children:x.slice(t*m,(t+1)*m).map(e=>(0,l.jsx)(c,{store:e},e.id))},t))})}),g>1&&(0,l.jsx)(i.A,{currentPage:a,totalPages:g,onPageChange:e=>{e!==a&&d(e)},leftButtonClassName:"!-left-20 xl:!-left-20",rightButtonClassName:"!-right-20 xl:!-right-20"})]})]})})}},6660:(e,t,a)=>{"use strict";a.d(t,{FF:()=>n,vV:()=>o});var l=a(5904);function r(e,t,a,r){let o=function(e,t,a,r){let o=new Date().toISOString(),n=(0,l.PX)(),i={timestamp:o,level:e.toUpperCase(),environment:n,context:"[CLIENT] ".concat(t),message:a};return void 0!==r&&(i.data=r),JSON.stringify(i)}(e,t,a,r);switch(e){case"debug":console.debug(o);break;case"info":console.info(o);break;case"warn":console.warn(o);break;case"error":console.error(o)}}function o(e,t,a,l){r("error",e,t,{...l,error:a?function e(t){if(t instanceof Error){let a={name:t.name,message:t.message,stack:t.stack};
1return t.cause&&(a.cause=e(t.cause)),Object.keys(t).forEach(e=>{["name","message","stack"].includes(e)||(a[e]=t[e])}),a}if("object"==typeof t&&null!==t)try{return JSON.stringify(t)}catch(e){return"[Circular Object]"}return String(t)}(a):void 0})}function n(e,t,a){r("warn",e,t,a)}let i=["search","email","query"];function s(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}RegExp("([?&](?:".concat(i.map(s).join("|"),")=)[^&#]*"),"gi"),RegExp("\\b((?:".concat(i.map(s).join("|"),")=)[^&#\\s\"']*"),"gi")},6775:(e,t,a)=>{"use strict";a.d(t,{q:()=>s});let{base:l,maxBase:r,minBase:o,lg:n,xl:i}=a(6898)._5.container.width;function s(e,t,a){let s=a?"".concat(a," ").concat(t):t;return"".concat(l," ").concat(r," ").concat(o," ").concat(e," ").concat(n," lg:max-w-none ").concat(i," ").concat(s)}},7027:(e,t,a)=>{"use strict";a.d(t,{default:()=>m});var l=a(5155);a(2115);var r=a(5239),o=a(3652),n=a(4103),i=a(1390),s=a(350),c=a(5426),d=a(6898);let x={id:"booking-getaway-deals",title:"Get Up to 20% Off Getaway Deals",subtitle:"",imageUrl:"/nextjs-assets/images/homepage/article-booking.png",merchantLogo:"/nextjs-assets/images/logos/booking-logo.svg",merchantName:"Booking.com",merchantBgColor:"#003580",badgeType:"exclusive"};function m(e){let{promotionalData:t}=e,a=[...function(){let e=(0,s.Y5)();return[{id:"amazon-lightning-deals",title:"Hacking Amazon—Today's Best Lightning Deals",subtitle:e,detailsUrl:"https://deals.savings.com/hacking-amazon-todays-best-lightning-deals-available-now/",imageUrl:"/nextjs-assets/images/homepage/article-amazon.png",merchantLogo:"/nextjs-assets/images/logos/amazon-logo.svg",merchantName:"Amazon",merchantBgColor:"#121920",badgeType:"updated-today"},{id:"walmart-flash-deals",title:"Walmart's Best Flash Deals of Today",subtitle:e,detailsUrl:"https://deals.savings.com/walmarts-best-flash-deals-live/",imageUrl:"/nextjs-assets/images/homepage/article-walmart.png",merchantLogo:"/nextjs-assets/images/logos/walmart-logo.svg",merchantName:"Walmart",merchantBgColor:"#041e42",badgeType:"updated-today"}]}(),(null==t?void 0:t.card)||x];return(0,l.jsx)(n.A,{title:"Trending Now",icon:(0,l.jsx)(r.default,{src:"/nextjs-assets/images/homepage/fire-icon.svg",alt:"",fill:!0,className:"object-contain"}),children:(0,l.jsx)("div",{className:"flex flex-col gap-10 pt-6 md:overflow-x-auto md:flex-row md:gap-4 md:-mx-6 md:scrollbar-hide xl:overflow-visible xl:flex-wrap xl:gap-5 xl:mx-0 xl:pt-0",children:(0,l.jsx)("div",{className:"flex flex-col gap-10 md:flex-row md:gap-4 md:px-6 md:pt-6 md:pb-2 xl:flex-wrap xl:gap-5 xl:px-0 xl:pt-0 xl:pb-0 xl:w-full",children:a.map((e,r)=>{var n;let s=r===a.length-1&&t?t.customBadge:(0,i.a)(null!=(n=e.badgeType)?n:"updated-today"),x=e.detailsUrl||"#".concat(e.id),m=(0,c.K)(x);return(0,l.jsx)(o.pe,{title:e.title,subtitle:e.subtitle,merchantName:e.merchantName,merchantLogo:e.merchantLogo,merchantBgColor:e.merchantBgColor,imageUrl:e.imageUrl,href:x,target:"_self",rel:m,showMerchantName:!1,badgeConfig:s,className:"featured-article-card ".concat(d.PE.width.max.base," ").concat(d.MR.width.min.base," ").concat(d.Oh.card.width.md," md:flex-shrink-0 xl:w-auto xl:flex-shrink xl:flex-grow xl:basis-0 ").concat(d.PE.width.max.xl," ").concat(d.MR.width.min.xl)},e.id)})})})})}},7141:(e,t,a)=>{"use strict";a.d(t,{L:()=>s,A:()=>c});var l=a(5155);a(2115);var r=a(4269),o=a(6898);let n=()=>(0,l.jsxs)("svg",{width:"60",height:"60",viewBox:"0 0 60 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{d:"M30 1C46.0163 1 59 13.9837 59 30C59 46.0163 46.0163 59 30 59C13.9837 59 1 46.0163 1 30C1 13.9837 13.9837 1 30 1Z",fill:"#D4E6E0",stroke:"url(#paint0_linear_active)",strokeWidth:"2"}),(0,l.jsx)("path",{d:"M25 16C25.3373 15.6665 25.8874 15.6664 26.2246 16L39.3115 28.9531C39.8964 29.532 39.8964 30.468 39.3115 31.0469L26.2246 44C25.8874 44.3337 25.3373 44.3336 25 44C24.667 43.6704 24.6669 43.1384 25 42.8086L37.4023 30.5332L37.9404 30L37.4023 29.4668L25 17.1914C24.6669 16.8616 24.667 16.3296 25 16Z",fill:"#2E8B6F",stroke:"#2E8B6F",strokeWidth:"1.5"}),(0,l.jsx)("defs",{children:(0,l.jsxs)("linearGradient",{id:"paint0_linear_active",x1:"0",y1:"30",x2:"60",y2:"30",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#2E8B6F"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#B0DDCF"})]})})]}),i=()=>(0,l.jsxs)("svg",{width:"60",height:"60",viewBox:"0 0 60 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{d:"M30 1C46.0163 1 59 13.9837 59 30C59 46.0163 46.0163 59 30 59C13.9837 59 1 46.0163 1 30C1 13.9837 13.9837 1 30 1Z",fill:"#F7F7F8",stroke:"#B0DDCF",strokeWidth:"2"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24.4722 15.4674C25.1017 14.8442 26.1226 14.8442 26.7522 15.4674L39.8389 28.4203C40.7203 29.2927 40.7203 30.7072 39.8389 31.5796L26.7522 44.5326C26.1226 45.1558 25.1017 45.1558 24.4722 44.5326C23.8426 43.9095 23.8426 42.8991 24.4722 42.2758L36.8748 30L24.4722 17.7241C23.8426 17.1009 23.8426 16.0905 24.4722 15.4674Z",fill:"#B0DDCF"})]});function s(e){let{direction:t,onClick:a,position:s,isActive:c=!0,className:d=""}=e,x="left"===s?o.Bq.button.position.left:o.Bq.button.position.right;return(0,l.jsx)("button",{onClick:a,disabled:!c,className:(0,r.cn)("absolute top-1/2 -translate-y-1/2 z-10 hover:opacity-80 transition-opacity",x,!c&&"cursor-not-allowed",d),"aria-label":"left"===t?"Previous page":"Next page",children:(0,l.jsx)("div",{className:"left"
1===t?"scale-x-[-1]":"",children:c?(0,l.jsx)(n,{}):(0,l.jsx)(i,{})})})}function c(e){let{currentPage:t,totalPages:a,onPageChange:r,leftButtonClassName:o,rightButtonClassName:n}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(s,{direction:"left",position:"left",onClick:()=>r(t-1),isActive:t>0,className:o}),(0,l.jsx)(s,{direction:"right",position:"right",onClick:()=>r(t+1),isActive:t<a-1,className:n})]})}},7655:(e,t,a)=>{"use strict";a.d(t,{R:()=>i});var l=a(3820),r=a(6047),o=a(350),n=a(5904);function i(e){let t=e.title,a=(0,l.ow)(e.type),i=e.description,s=(0,l.DI)(e.expirationDate),c=(0,l.UC)(e.expirationDate),d=e.isExclusive,x=!!e.merchant.logoUrl,m=e.expirationDate?(0,o.kz)(e.expirationDate):null,g=(0,o.kz)(new Date),h="".concat(t," from ").concat(e.merchant.displayName,". ").concat(a," deal.").concat(e.isExclusive?" Exclusive offer.":""),u="".concat(e.merchant.websiteUrl,"#d-").concat(e.id);return{id:e.id,displayTitle:t,displayType:a,displayDescription:i,displayExpiration:s,merchantName:e.merchant.displayName,merchantLogoUrl:(0,r.Tf)(e.merchant.logoUrl),merchantLogoAlt:"".concat(e.merchant.displayName," logo"),merchantBgColor:e.merchant.backgroundColor||"#e11a2b",merchantUrl:(0,n.uM)(e.merchant.websiteUrl),imageUrl:(0,r.ht)(e.imageUrl),expirationDate:m,lastValidated:g,shouldShowExpiration:c,shouldShowExclusiveBadge:d,shouldShowMerchantLogo:x,actionUrl:(0,n.uM)(u),actionLabel:"View Deal",actionTarget:"_blank",ariaLabel:h}}},7895:(e,t,a)=>{"use strict";a.d(t,{default:()=>x});var l=a(5155),r=a(5239),o=a(6784),n=a(3652),i=a(4103),s=a(5904),c=a(6898);function d(e){let{className:t}=e;return(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640",className:t,children:(0,l.jsx)("path",{d:"M569 337C578.4 327.6 578.4 312.4 569 303.1L401 135C391.6 125.6 376.4 125.6 367.1 135C357.8 144.4 357.7 159.6 367.1 168.9L494.1 295.9L88 295.9C74.7 295.9 64 306.6 64 319.9C64 333.2 74.7 343.9 88 343.9L494.1 343.9L367.1 470.9C357.7 480.3 357.7 495.5 367.1 504.8C376.5 514.1 391.7 514.2 401 504.8L569 337z"})})}function x(e){let{viewModel:t,articles:a}=e,{siteBaseUrl:x}=(0,o.v)();return 0===a.length?null:(0,l.jsxs)(i.A,{title:t.sectionTitle,className:"bg-[color:var(--color-Savings-Accent-Off-White)]",icon:(0,l.jsx)(r.default,{src:"/nextjs-assets/images/homepage/money-icon.svg",alt:"",fill:!0,className:"object-contain"}),children:[(0,l.jsxs)("div",{className:"grid grid-cols-1 xl:grid-cols-2 gap-5 w-full max-w-content-xl xl:max-w-none mx-auto",children:[a[0]&&(0,l.jsx)("div",{className:"xl:row-span-2 flex justify-center xl:justify-start",children:(0,l.jsx)(n.pe,{title:a[0].displayTitle,subtitle:"",category:a[0].displayCategory,date:a[0].formattedDate,merchantName:"Savvy Shopping",merchantLogo:"",merchantBgColor:"transparent",imageUrl:a[0].imageUrl,href:a[0].actionUrl,logoPosition:"none",badgePosition:"outside",cardHeight:"".concat(c.Oh.card.height.base," ").concat(c.Oh.card.height.xl),className:"savvy-article-card ".concat(c.MR.width.min.base," ").concat(c.PE.width.max.base," md:max-w-none"),imageClassName:"object-cover object-top"})}),(0,l.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5 justify-items-center xl:justify-items-start",children:a.slice(1,5).map(e=>(0,l.jsx)(n.df,{id:e.id,title:e.displayTitle,subtitle:e.formattedDate,imageUrl:e.imageUrl,category:e.displayCategory,href:e.actionUrl},e.id))})]}),(0,l.jsxs)("a",{href:(0,s.uM)("/savvy",x),className:"group flex items-center gap-1 justify-end transition-colors","aria-label":"View more savvy shopping tips",children:[(0,l.jsx)("span",{className:"text-lg leading-7 font-bold text-[color:var(--color-Savings-Primary-Dark-Green)] group-hover:text-[color:var(--color-Savings-Secondary-Darkest-Green)]",style:{fontFamily:"var(--Font-Body-Font)"},children:"More Tips"}),(0,l.jsx)(d,{className:"w-5 h-5 fill-[color:var(--color-Savings-Primary-Dark-Green)] group-hover:fill-[color:var(--color-Savings-Secondary-Darkest-Green)]"})]})]})}},8796:(e,t,a)=>{"use strict";a.d(t,{b:()=>n});var l=a(3151),r=a(3461),o=a(9554);let n=l.Ikc({couponCode:l.lqM(l.mee(l.YjP())),dealId:r.xf,dealTitle:l.lqM(l.mee(l.YjP())),dealType:l.lqM(l.mee(r.v4)),description:l.lqM(l.mee(l.YjP())),exclusive:l.lqM(l.mee(l.zMY())),expireDate:l.lqM(l.mee(r.ht)),imageUrl:l.lqM(l.mee(l.YjP())),lifeTimeReferrals:l.lqM(l.mee(l.aig())),merchant:l.lqM(l.mee(o.N)),offerId:r.xf,reviewDate:l.lqM(l.mee(r.ht)),url:l.lqM(l.mee(l.YjP()))})},9554:(e,t,a)=>{"use strict";a.d(t,{N:()=>o});var l=a(3151),r=a(3461);let o=l.Ikc({backgroundColor:l.lqM(l.mee(l.YjP())),displayName:l.lqM(l.mee(l.YjP())),id:r.xf,logoUrl:l.lqM(l.mee(l.YjP())),name:l.YjP().check(l.BpQ(1)),numActiveDeals:l.lqM(l.mee(l.aig())),url:l.lqM(l.mee(l.YjP()))})}},e=>{e.O(0,[108,151,239,795,433,441,255,358],()=>e(e.s=960)),_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.