PageSourceSearch

https://www.littlespoon.com/_next/static/chunks/09cr7jy~ba_8..js

js littlespoon.com collected 2026-09-25 18:55:46 UTC 50,280 bytes, 602 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,174398,e=>{"use strict";e.s(["EVENT_NAME",0,{DUET_INITIALIZE:"DUET_INITIALIZE",DUET_DEINITIALIZE:"DUET_DEINITIALIZE"},"URL_PARAM",0,{IS_DECAGON_WIDGET_OPEN:"isDecagonWidgetOpen"}])},163315,e=>{"use strict";e.s(["MOBILE_BOTTOM_NAV_HEIGHT_IN_REM",0,4.85,"MOBILE_BOTTOM_NAV_LINK_NAME",0,{ACCOUNT:"Account",CHAT:"Chat",HOME:"Home",ORDERS:"Orders"}])},344344,e=>{"use strict";var t=e.i(667708);e.s(["default",0,function(e,i){return!!i.includes("sign-up/status/success")||e===t.default.reactivate.route}])},515225,598487,e=>{"use strict";var t=e.i(828626),i=e.i(124412),n=e.i(886951),a=e.i(130952),r=e.i(509025),o=e.i(24116),s=e.i(468775),l=e.i(667708),d=e.i(234976),c=e.i(627959);e.i(380543);var u=e.i(664675),p=e.i(28426);e.i(194573);var m=e.i(898160),h=e.i(134572),f=e.i(512086),g=e.i(488788),y=e.i(720690),_=e.i(469985),x=e.i(232345);function b(){let e=(0,_.default)().top;return 0===e?"env(safe-area-inset-top, 0rem)":`${e}rem`}let w=f.default.div.withConfig({displayName:"styled__BannerWrapper",componentId:"sc-ad377845-0"})`
2  display: flex;
3  align-items: flex-start;
4  gap: 0.8rem;
5  width: 100%;
6  /* The carousel track is as tall as its tallest slide, so fill it to avoid a
7     gap below the banner (see SliderWrapper in SiteBanner/DynamicBanner). */
8  ${e=>e.$inCarousel?"height: 100%;":""}
9  /* Standalone, the banner is the topmost element and absorbs the status-bar
10     inset itself; inside the carousel the BannerSurface already does that. */
11  padding: ${e=>e.$inCarousel?"1.2rem 0.8rem":`calc(1.2rem + ${b()}) 0.8rem 1.2rem`};
12  background: ${m.colorsV2.critical[20]};
13
14  ${x.default.md} {
15    /* Inside the promo carousel the slider arrows (4rem wide) overlay the
16       slide edges, so the content needs to clear them. */
17    padding: ${e=>e.$inCarousel?"1.2rem 4.8rem":`calc(1.2rem + ${b()}) 1.2rem 1.2rem`};
18  }
19`,C=f.default.div.withConfig({displayName:"styled__IconWrapper",componentId:"sc-ad377845-1"})`
20  display: flex;
21  flex-shrink: 0;
22
23  svg {
24    width: 2rem;
25    height: 2rem;
26  }
27`,I=f.default.div.withConfig({displayName:"styled__TextWrapper",componentId:"sc-ad377845-2"})`
28  flex: 1;
29`,E=(0,f.default)(g.default).attrs({noMargin:!0,bold:!0,variant:{0:"p4",[y.breakpoints.md]:"p3"}}).withConfig({displayName:"styled__Title",componentId:"sc-ad377845-3"})``,N=f.default.button.withConfig({displayName:"styled__UpdateButton",componentId:"sc-ad377845-4"})`
30  background: none;
31  border: none;
32  padding: 0;
33  cursor: pointer;
34  font: inherit;
35  color: inherit;
36  text-align: left;
37  text-decoration: underline;
38`,v=(0,f.default)(g.default).attrs({noMargin:!0,variant:{0:"caption1",[y.breakpoints.md]:"p4"}}).withConfig({displayName:"styled__Description",componentId:"sc-ad377845-5"})``,S=f.default.button.withConfig({displayName:"styled__CloseButton",componentId:"sc-ad377845-6"})`
39  position: relative;
40  top: -0.9rem;
41  right: -0.8rem;
42  display: flex;
43  align-items: center;
44  justify-content: center;
45  padding: 0;
46  border: none;
47  background: none;
48  cursor: pointer;
49
50  svg {
51    width: 3.2rem;
52    height: 3.2rem;
53  }
54`;function k(e){let a,r,s,d=(a=(0,n.useRouter)(),r=(0,o.default)(),s=(0,i.useRef)(null),(0,p.default)({elementRef:s,onlyCallOnce:!0,segmentEventName:"expiring_primary_banner_viewed"}),{bannerRef:s,handleUpdateClick:()=>{h.default.instance.track(h.SEGMENT_EVENTS.CTA_CLICKED,{name:"expiring_primary_banner_clicked"}),r.account.editPaymentMethodModal.call.open(),a.route!==l.default.details.route&&a.push(l.default.details.href({}),l.default.details.as({}))}});return(0,t.jsxs)(w,{ref:d.bannerRef,$inCarousel:e.inCarousel,"data-test":"@banner:expiring-payment",children:[(0,t.jsx)(C,{children:(0,t.jsx)(u.ExclamationIcon,{"aria-hidden":!0,stroke:m.colorsV2.shade.white,fill:m.colorsV2.critical[50]})}),(0,t.jsxs)(I,{children:[(0,t.jsx)(E,{children:"Heads up! Your card is expiring soon."}),(0,t.jsxs)(v,{children:[(0,t.jsx)(N,{type:"button",onClick:d.handleUpdateClick,"data-test":"@button:expiring-payment-update",children:"Update your payment method"})," ","so your next order ships on time."]})]}),(0,t.jsx)(S,{type:"button",onClick:e.onDismiss,"aria-label":"Dismiss banner","data-test":"@button:expiring-payment-dismiss",children:(0,t.jsx)(u.CloseIcon,{size:"small",fill:"none",stroke:m.colorsV2.shade.black})})]})}e.s(["default",0,k],598487);var j=e.i(610271);let{DISABLE_DYNAMIC_BANNERS:T}=(0,d.default)(),A=[l.default.reactivate.route],O={show:()=>{},hide:()=>{}};function B(){let[e]=(0,r.default)(e=>e.banner.state().showPublicBanner),{isLoading:t,banners:i}=(0,c.useBannersToShow)();return!T&&!!e&&(t||i.length>0)}function P(){let e=(0,n.useRouter)(),[[t,l,d]]=(0,r.default)(e=>[e.account.paymentMethod.data(),e.account.paymentMethod.state().status,e.user.state().type]),[c,u]=(0,s.default)(!1,"expiringPaymentBannerDismissed",a.STORAGE_TYPE.SESSION_STORAGE),p=l===a.LOADING_STATUS.LOADED&&null!==t&&"card"in t&&function(e,t=new Date){if(t>=new Date(e.expYear,e.expMonth,1))return!1;let i=new Date(e.expYear,e.expMonth,0);return i.setDate(i.getDate()-30),t>=i}(t.card),m=function(e){let t=(0,o.default)(),[n]=(0,r.default)(e=>e.account.upcomingOrders.state());return(0,i.useEffect)(()=>{let{status:i}=t.account.upcomingOrders.state();e&&i===a.LOADING_STATUS.PENDING&&t.account.upcomingOrders.call.fetch(O)},[e,n.status,t]),n.status===a.LOADING_STATUS.LOADED&&function(e){if(!e)return!1;let t=!1,i=!1;for(let a of e){let e=a.status===j.UPCOMING_ORDER_STATUS.SHIPPED;for(let r of a.orders??[]){var n;e||(n=r).trackingUrl||n.hasBeenSentToShipStation?t=!0:r.isFirst&&(i=!0)}}return t||!i}(n.data)}(p),h=A.includes(e.route),f=d===a.USER_TYPE.PRO;return{isVisible:p&&m&&!c&&!h&&!f,handleDismiss:()=>{u(!0)}}}e.s(["default",0,function(){let e=P(),i=B();return!e.isVisible||i?null:(0,t.jsx)(k,{onDismiss:e.handleDismiss})},"useExpiringPaymentBanner",0,P,"useIsExpiringPaymentBannerInPromoCarousel",0,B],515225)},554706,(e,t,i)=>{t.exports="https://ik.imagekit.io/littlespoon/web/fe-assets/app/components/modules/SiteBanner/DynamicBanner/assets/arrow-right.svg"},951905,(e,t,i)=>{t.exports="https://ik.imagekit.io/littlespoon/web/fe-assets/app/components/modules/SiteBanner/DynamicBanner/assets/arrow-left.svg"},16742,(e,t,i)=>{t.exports="https://ik.imagekit.io/littlespoon/web/fe-assets/app/components/modules/SiteBanner/DynamicBanner/Content/Images/assets/box-background_2025_03_26.png"}
54,575237,(e,t,i)=>{t.exports="https://ik.imagekit.io/littlespoon/web/fe-assets/app/components/modules/SiteBanner/DynamicBanner/Content/Images/assets/box_2025_03_26.png"},682229,e=>{"use strict";var t=e.i(828626),i=e.i(124412),n=e.i(24116),a=e.i(130952),r=e.i(209114),o=e.i(996830),s=e.i(886951),l=e.i(270738),d=e.i(512086),c=e.i(509025),u=e.i(152978),p=e.i(667708),m=e.i(469985),h=e.i(344344),f=e.i(444849),g=e.i(924453),y=e.i(829829),_=e.i(452649),x=e.i(234976);e.i(194573);var b=e.i(898160),w=e.i(712720),C=e.i(515225),I=e.i(598487),E=e.i(232345),N=e.i(336569);let v=d.default.div.withConfig({displayName:"styled__BannerSurface",componentId:"sc-2ee77abb-0"})`
55  width: 100%;
56  padding-top: ${e=>e.$paddingTopRem??0}rem;
57  background: ${e=>e.$syncBg??"transparent"};
58  /* The synced background flips when a slide transition starts, so crossfade
59     it over the slide animation (sliderSettings.speed) instead of snapping. */
60  transition: background 1000ms ease;
61`,S=d.default.div.withConfig({displayName:"styled__Box",componentId:"sc-2ee77abb-1"})`
62  display: flex;
63  width: 100%;
64  position: relative;
65  min-height: inherit;
66
67  ${E.default.md} {
68    height: ${e=>e.useHeightOverride?"7.3rem":"6.2rem"};
69  }
70
71  ${E.default.lg} {
72    height: ${e=>e.useHeightOverride?"8.6rem":"6.8rem"};
73  }
74`,k=d.default.div.withConfig({displayName:"styled__SliderWrapper",componentId:"sc-2ee77abb-2"})`
75  width: 100%;
76  height: 100%;
77
78  .slick-list {
79    overflow: hidden;
80  }
81
82  .slick-slider {
83    overflow: hidden;
84  }
85
86  .slick-slider,
87  .slick-list,
88  .slick-track,
89  .slick-slide,
90  .slick-slide > div {
91    height: 100%;
92  }
93
94  /* On mobile the Box has no fixed height, so the height chain above resolves
95     to auto and each slide keeps its natural height, leaving a gap below
96     shorter slides. Stretch all slides to the tallest via a flex track. Only
97     applied when the expiring payment slide is present, to keep the public
98     carousel untouched. */
99  ${e=>e.$equalSlideHeights?`
100        .slick-track {
101          display: flex;
102        }
103
104        .slick-slide {
105          height: auto;
106        }
107
108        .slick-slide > div {
109          height: 100%;
110        }
111      `:""}
112
113  .slick-prev::before,
114  .slick-next::before {
115    content: '';
116  }
117
118  .slick-prev,
119  .slick-next {
120    z-index: ${N.zIndex["10"]};
121  }
122
123  .slick-prev {
124    left: 0;
125
126    img {
127      margin-right: auto;
128    }
129  }
130
131  .slick-next {
132    right: 0;
133
134    img {
135      margin-left: auto;
136    }
137  }
138`,j=d.default.button.withConfig({displayName:"styled__ArrowButton",componentId:"sc-2ee77abb-3"})`
139  display: flex;
140  align-items: center;
141  background: transparent;
142  border: none;
143  cursor: pointer;
144  width: 4rem;
145  height: 4rem;
146  padding: 0 0.8rem;
147
148  img {
149    display: block;
150    width: 1.6rem;
151    ${({$white:e})=>e&&"filter: invert(1);"}
152  }
153
154  ${E.default.md} {
155    padding: 0 1.2rem;
156    width: 5rem;
157    height: 5rem;
158
159    img {
160      width: 2rem;
161    }
162  }
163`;function T(i){let{className:n,onClick:a,$white:r}=i;return(0,t.jsx)(j,{className:n,onClick:a,$white:r,children:(0,t.jsx)("img",{src:e.r(554706),alt:"left arrow"})})}function A(i){let{className:n,onClick:a,$white:r}=i;return(0,t.jsx)(j,{className:n,onClick:a,$white:r,children:(0,t.jsx)("img",{src:e.r(951905),alt:"left arrow"})})}var O=e.i(868087),B=e.i(834849),P=e.i(995084),$=e.i(357383),M=e.i(121897);let R=B.EXPRESS_CHECKOUT_PRODUCTS.map(e=>M.productTypeToPCPRoute[e]),L=RegExp(`^/products/(${R.join("|")})/\\[id]/\\[name]$`),D=["-flow/","plan-type","/onboarding/"];function V(){let e=(0,s.useRouter)(),t=L.test(e.pathname),{isLoading:i,variant:n}=(0,P.default)({enabled:t}),a=D.some(t=>e.asPath.includes(t))||(0,f.isQuickCheckoutPathname)(e.pathname),r=!i&&(0,$.isIncludedIn)(n,[P.EXPRESS_CHECKOUT_VARIANT.EXPRESS_CHECKOUT,P.EXPRESS_CHECKOUT_VARIANT.ONBOARDING_FLOW_WITHOUT_PLAN_SELECTION_STEP])&&t;return a||r}var U=e.i(34367),W=e.i(134572),H=e.i(307605),z=e.i(300486),F=e.i(692597);e.i(658383);var G=e.i(988258);e.i(315911);var K=e.i(619811),Y=e.i(364470);let q=d.default.div.withConfig({displayName:"styled__TimeUnitsContainer",componentId:"sc-1f8cb2e0-0"})`
164  display: flex;
165  align-items: center;
166  gap: 0.2rem;
167  color: ${G.colors.token.shadeBlack};
168`,Z=d.default.div.withConfig({displayName:"styled__Colon",componentId:"sc-1f8cb2e0-1"})`
169  font-size: 1.4rem;
170  color: ${G.colors.token.shadeWhite};
171  height: 100%;
172  display: flex;
173  align-items: center;
174  justify-content: center;
175
176  ${E.default.md} {
177    font-size: 2rem;
178  }
179`,Q=d.default.div.withConfig({displayName:"styled__TimeUnitWrapper",componentId:"sc-1f8cb2e0-2"})`
180  display: flex;
181  flex-direction: column;
182  align-items: center;
183  background-color: ${G.colors.token.shadeWhite};
184  padding: 0.3rem 0.1rem;
185  border-radius: 0.3rem;
186  width: 2.8rem;
187`,X=(0,d.default)(e=>(0,t.jsx)(K.default,{...e})).attrs({noMargin:!0}).withConfig({displayName:"styled__TimeLabel",componentId:"sc-1f8cb2e0-3"})`
188  font-size: 0.8rem;
189  line-height: 1.2rem;
190  text-transform: uppercase;
191  font-weight: 700;
192
193  ${E.default.md} {
194    font-size: 0.7rem;
195    line-height: 1.1rem;
196  }
197`,J=(0,d.default)(e=>(0,t.jsx)(K.default,{...e})).attrs({bold:!0,noMargin:!0}).withConfig({displayName:"styled__TimeValue",componentId:"sc-1f8cb2e0-4"})`
198  display: flex;
199  align-items: center;
200  justify-content: center;
201  width: 2.2rem;
202  height: 2.2rem;
203  color: ${Y.default.critical[50]};
204  border-radius: 0.2rem;
205  font-size: 1.9rem;
206  line-height: 2.5rem;
207  margin-bottom: -0.3rem;
208  font-weight: 700;
209`;function ee({endDate:e,hideDays:n=!1}
209){let[a,r]=(0,i.useState)({days:0,hours:0,minutes:0,seconds:0});return(0,i.useEffect)(()=>{let t=()=>{if(!e)return;let t=new Date,i=new Date(e).getTime()-t.getTime(),a=n?0:Math.floor(i/864e5),o=n?Math.floor(i/36e5):Math.floor(i/36e5%24),s=Math.floor(i/1e3/60%60),l=Math.floor(i/1e3%60);i<=0?r({days:0,hours:0,minutes:0,seconds:0}):r({days:Math.max(a,0),hours:Math.max(o,0),minutes:Math.max(s,0),seconds:Math.max(l,0)})};t();let i=setInterval(t,1e3);return()=>clearInterval(i)},[e,n]),(0,t.jsxs)(q,{"aria-live":"polite","aria-atomic":"true","aria-label":"Time remaining for promotion",children:[!n&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(Q,{children:[(0,t.jsx)(J,{children:et(a.days)}),(0,t.jsx)(X,{children:"Days"})]}),(0,t.jsx)(Z,{children:":"})]}),(0,t.jsxs)(Q,{children:[(0,t.jsx)(J,{children:et(a.hours)}),(0,t.jsx)(X,{children:"Hrs"})]}),(0,t.jsx)(Z,{children:":"}),(0,t.jsxs)(Q,{children:[(0,t.jsx)(J,{children:et(a.minutes)}),(0,t.jsx)(X,{children:"Mins"})]}),(0,t.jsx)(Z,{children:":"}),(0,t.jsxs)(Q,{children:[(0,t.jsx)(J,{children:et(a.seconds)}),(0,t.jsx)(X,{children:"Secs"})]})]})}function et(e){return e<10?`0${e}`:e}let ei=d.default.div.withConfig({displayName:"styled__Row",componentId:"sc-7bad47f0-0"})`
210  display: flex;
211  align-items: center;
212`,en=d.default.p.withConfig({displayName:"styled__Text",componentId:"sc-7bad47f0-1"})`
213  font-size: ${e=>e.isAprilSavingsBanner?G.fonts.primary.paragraph.p4.fontSize:G.fonts.primary.paragraph.p3.fontSize};
214  line-height: ${e=>e.isAprilSavingsBanner?G.fonts.primary.paragraph.p4.lineHeight:G.fonts.primary.paragraph.p3.lineHeight};
215  text-align: ${e=>e.isAprilSavingsBanner?"start":"center"};
216  color: ${e=>e.color};
217
218  ${e=>e.centerVertically&&d.css`
219      text-align: left;
220      ${E.default.md} {
221        display: flex;
222        align-items: center;
223        justify-content: center;
224      }
225    `}
226
227  ${E.default.minW(372)} {
228    min-width: ${e=>e.isAprilSavingsBanner?"23.3rem":"unset"};
229  }
230
231  ${E.default.md} {
232    font-size: ${G.fonts.primary.paragraph.p2.fontSize};
233    line-height: ${G.fonts.primary.paragraph.p2.lineHeight};
234    text-align: center;
235
236    br {
237      display: ${e=>e.breakLineOnMobile?"none":"unset"};
238    }
239  }
240
241  .useP4OnMobile {
242    font-size: ${G.fonts.primary.paragraph.p4.fontSize};
243    line-height: ${G.fonts.primary.paragraph.p4.lineHeight};
244
245    ${E.default.md} {
246      font-size: ${G.fonts.primary.paragraph.p2.fontSize};
247      line-height: ${G.fonts.primary.paragraph.p2.lineHeight};
248    }
249  }
250`,ea=d.default.p.withConfig({displayName:"styled__SubText",componentId:"sc-7bad47f0-2"})`
251  font-size: 1rem;
252  line-height: 1.4rem;
253  text-align: center;
254  color: ${e=>e.color};
255
256  ${E.default.md} {
257    font-size: ${G.fonts.primary.caption.caption1.fontSize};
258    line-height: ${G.fonts.primary.caption.caption1.lineHeight};
259    text-align: center;
260  }
261`,er=d.default.div.withConfig({displayName:"styled__TextWrapper",componentId:"sc-7bad47f0-3"})`
262  padding: ${e=>e.isAprilSavingsBanner?"0 0 0 0.8rem":"0"};
263`,eo=d.default.div.withConfig({displayName:"styled__TopTextWrapper",componentId:"sc-7bad47f0-4"})`
264  display: flex;
265  gap: ${e=>e.hasCountdownTimer?"0.6rem":"0.8rem"};
266  ${e=>e.hasCountdownTimer&&d.css`
267      align-items: center;
268    `}
269
270  ${E.default.md} {
271    gap: ${e=>e.hasCountdownTimer?"1.6rem":"0.8rem"};
272  }
273`,es=d.default.div.withConfig({displayName:"styled__ImagesWrapper",componentId:"sc-ce59c021-0"})`
274  height: 7.3rem;
275  display: flex;
276  background-image: url(${e.r(16742)});
277  color: ${G.colors.primary.brand.brand90()};
278  min-width: 17.56rem;
279  background-size: 100% 100%;
280  align-items: center;
281  justify-content: center;
282  gap: 0.523rem;
283  margin-right: -3.15rem;
284  padding-right: 1.5rem;
285  margin-left: -0.5rem;
286
287  ${E.default.minW(430)} {
288    margin-right: 0;
289    padding-right: 0;
290    margin-left: 1.3rem;
291  }
292
293  ${E.default.md} {
294    width: 20.4rem;
295  }
296
297  ${E.default.lg} {
298    height: 8.6rem;
299  }
300`,el=d.default.div.withConfig({displayName:"styled__ImageWrapper",componentId:"sc-ce59c021-1"})`
301  padding-top: 0.46rem;
302
303  ${E.default.md} {
304    padding-top: 0.8rem;
305  }
306`,ed=d.default.img.withConfig({displayName:"styled__BoxImage",componentId:"sc-ce59c021-2"})`
307  content: url(${e.r(575237)});
308  width: 4.6rem;
309  height: 3.7rem;
310`,ec=d.default.div.withConfig({displayName:"styled__ImageCopy",componentId:"sc-ce59c021-3"})`
311  text-align: center;
312  font-size: ${G.fonts.primary.paragraph.p3.fontSize};
313  line-height: ${G.fonts.primary.paragraph.p3.lineHeight};
314  font-weight: ${G.fonts.primary.weight.bold};
315`,eu=d.default.div.withConfig({displayName:"styled__ImagePlus",componentId:"sc-ce59c021-4"})`
316  margin-bottom: 0.8rem;
317  font-size: ${G.fonts.primary.paragraph.p1.fontSize};
318  font-weight: ${G.fonts.primary.weight.bold};
319`;function ep(){return(0,t.jsxs)(es,{children:[(0,t.jsxs)(el,{children:[(0,t.jsx)(ed,{}),(0,t.jsx)(ec,{children:"50%"})]}),(0,t.jsx)(eu,{children:"+"}),(0,t.jsxs)(el,{children:[(0,t.jsx)(ed,{}),(0,t.jsx)(ec,{children:"15%"})]})]})}let em={span:["style","class"],u:["style"],strong:["style"],b:["style"],br:["style"]};function eh(e){var n;let a,r,o,l,d=(n=e,a=(0,s.useRouter)().asPath,r=(0,i.useRef)(null),o="april
319Savings"===n.name,l=!!n.countdown,(0,i.useEffect)(()=>{n.setUseHeightOverride&&(o?n.setUseHeightOverride(!0):n.setUseHeightOverride(!1))},[o]),(0,F.default)({elementRef:r,onInView:()=>{W.default.instance.track(W.SEGMENT_EVENTS.PROMO_BANNER_VIEWED,{bannerName:n.name,bannerId:n.bannerId,pagePath:a,placement:"header"})},onlyCallOnce:!1}),{isAprilSavingsBanner:o,shouldShowCountdownTimer:l,ref:r});return(0,t.jsx)(H.Wrapper,{color:e.backgroundColor,hasCountdownTimer:d.shouldShowCountdownTimer,noPadding:d.isAprilSavingsBanner,ref:d.ref,children:(0,t.jsxs)(ei,{children:[(0,t.jsxs)(er,{isAprilSavingsBanner:d.isAprilSavingsBanner,children:[(0,t.jsxs)(eo,{hasCountdownTimer:d.shouldShowCountdownTimer,children:[(0,t.jsx)(en,{color:e.textColor,isAprilSavingsBanner:d.isAprilSavingsBanner,dangerouslySetInnerHTML:{__html:(0,z.default)(e.title,{allowedAttributes:em})},centerVertically:d.shouldShowCountdownTimer,breakLineOnMobile:d.shouldShowCountdownTimer||d.isAprilSavingsBanner}),d.shouldShowCountdownTimer&&(0,t.jsx)(ee,{endDate:e.endDate,hideDays:!0})]}),e.description&&(0,t.jsx)(ea,{color:e.textColor,dangerouslySetInnerHTML:{__html:(0,z.default)(e.description,{allowedAttributes:em})}})]}),d.isAprilSavingsBanner&&(0,t.jsx)(ep,{})]})})}function ef({banner:e,setUseHeightOverride:a}){let r,o,l,d,{handleBannerClick:c,shouldDisableBannerLink:u}=(r=(0,n.default)(),o=(0,s.useRouter)().asPath,l=V(),d=(0,s.useRouter)().pathname,(0,i.useEffect)(()=>{let e=Object.keys(eg).find(e=>{let t=p.default[e].href({});return d.includes(t)});e&&W.default.instance.track(W.SEGMENT_EVENTS.BANNER_VIEWED,{name:eg[e]})},[d]),{handleBannerClick:e=>{e?.coupon?.code&&e?.autoApplyCouponOnClick&&r.coupon.call.validate({type:"code",value:e.coupon?.code,showPopup:!1,source:U.COUPON_SOURCE.BANNER_CLICK}),W.default.instance.track(W.SEGMENT_EVENTS.PROMO_BANNER_CLICKED,{bannerName:e.name,bannerId:e.id,pagePath:o,placement:"header"})},shouldDisableBannerLink:l}),m=(0,t.jsx)(eh,{backgroundColor:e.backgroundColor,textColor:e.textColor,title:e.title,description:e.description,name:e.name,bannerId:e.id,setUseHeightOverride:a,endDate:e.endDate,countdown:e.countdown});return(0,t.jsxs)(O.default,{onClick:()=>c(e),children:[e.redirectRoute?(0,t.jsx)(H.Link,{to:e.redirectRoute,disableBannerLink:u,children:m}):null,!e.redirectRoute&&e.redirectURL?(0,t.jsx)(H.RawLink,{href:e.redirectURL,disableBannerLink:u,children:m}):null,e.redirectRoute||e.redirectURL?null:m]},e.id)}let eg={addBiteables:"reactivation-banner_aap-biteables_020525",addPlates:"reactivation-banner_aap-plates_020525",platesLanding:"reactivation-banner_add-plates_020525",biteablesLanding:"reactivation-banner_add-biteables_020525",plansAndOrders:"reactivation-banner_plans-orders_020525"};var ey=e.i(594510),e_=e.i(840732);e.i(380543);var ex=e.i(664675),eb=e.i(488788),ew=e.i(720690);let eC=d.default.div.withConfig({displayName:"styled__Wrapper",componentId:"sc-d8e1f47b-0"})`
320  background-color: ${b.colorsV2.shade.black};
321  display: flex;
322  height: 100%;
323  align-items: center;
324  justify-content: space-between;
325  padding: 0.8rem 1.2rem;
326  min-height: 6.4rem;
327
328  ${E.default.md} {
329    justify-content: center;
330    gap: 2.4rem;
331    padding: 1.2rem;
332  }
333`,eI=d.default.div.withConfig({displayName:"styled__CopyWrapper",componentId:"sc-d8e1f47b-1"})`
334  display: flex;
335  flex-direction: column;
336
337  ${E.default.md} {
338    flex-direction: row;
339  }
340`,eE=(0,d.default)(eb.default).attrs({variant:{0:"p3",[ew.breakpoints.md]:"p2"},bold:!0,noMargin:!0}).withConfig({displayName:"styled__Copy",componentId:"sc-d8e1f47b-2"})`
341  color: ${b.colorsV2.shade.white};
342
343  ${E.default.md} {
344    margin-right: 1rem;
345  }
346`,eN=(0,d.default)(eb.default).attrs({variant:"p2",noMargin:!0}).withConfig({displayName:"styled__SubCopy",componentId:"sc-d8e1f47b-3"})`
347  font-size: 1rem;
348  line-height: 1.4rem;
349  color: ${b.colorsV2.shade.white};
350
351  ${E.default.md} {
352    font-size: ${G.fonts.primary.paragraph.p2.fontSize};
353    line-height: ${G.fonts.primary.paragraph.p2.lineHeight};
354  }
355`,ev=(0,d.default)(eb.default).attrs({bold:!0,noMargin:!0}).withConfig({displayName:"styled__CouponCode",componentId:"sc-d8e1f47b-4"})`
356  color: ${b.colorsV2.shade.white};
357  display: inline;
358  text-decoration: underline;
359  text-underline-position: from-font;
360`,eS=d.default.div.withConfig({displayName:"styled__BadgeWrapper",componentId:"sc-d8e1f47b-5"})`
361  display: flex;
362  background-color: ${b.colorsV2.shade.white};
363  border-radius: 0.4rem;
364  align-items: center;
365  padding-left: 0.4rem;
366
367  ${E.default.md} {
368    padding-left: 1rem;
369  }
370`,ek=(0,d.default)(eb.default).attrs({noMargin:!0,bold:!0}).withConfig({displayName:"styled__BadgeText",componentId:"sc-d8e1f47b-6"})`
371  font-size: 1.2rem;
372  line-height: 1.8rem;
373  padding: 0.5rem 1rem 0.5rem 0rem;
374  color: ${b.colorsV2.success[50]};
375
376  ${E.default.md} {
377    letter-spacing: 0.05rem;
378    font-size: ${G.fonts.primary.paragraph.p4.fontSize};
379    line-height: ${G.fonts.primary.paragraph.p4.lineHeight};
380    padding: 0.6rem 1.8rem 0.6rem 0.2rem;
381  }
382`,ej=(0,d.default)(ex.CheckIcon).attrs({stroke:b.colorsV2.success[50]}).withConfig({displayName:"styled__StyledCheckIcon",componentId:"sc-d8e1f47b-7"})`
383  width: 2.8rem;
384  height: 2.8rem;
385
386  ${E.default.md} {
387    width: 3.2rem;
388    height: 3.2rem;
389  }
390`;function eT(){return(0,t.jsxs)(eC,{children:[(0,t.jsxs)(eI,{children:[(0,t.jsxs)(eE,{children:[(0,t.jsx)("span",{role:"img","aria-label":"Party Popper Emoji",children:"🎉"})," ","Woo! You're getting 50% OFF!*"," ",(0,t.jsx)(e_.default,{showFrom:E.queries.min.md,children:(0,t.jsx)("span",{role:"img","aria-label":"Party Popper Emoji",children:"🎉"})})]}),(0,t.jsxs)(eN,{children:["Code ",(0,t.jsx)(ev,{children:"NEWSPOONER50"})," auto-applied to your order"]}
390)]}),(0,t.jsxs)(eS,{children:[(0,t.jsx)(ej,{}),(0,t.jsx)(e_.default,{showUntil:E.queries.max.sm,children:(0,t.jsx)(ek,{children:"APPLIED"})}),(0,t.jsx)(e_.default,{showFrom:E.queries.min.md,children:(0,t.jsx)(ek,{children:"OFFER APPLIED"})})]})]})}let eA=d.default.div.withConfig({displayName:"styled__Wrapper",componentId:"sc-8c303b97-0"})`
391  background-color: ${b.colorsV2.shade.black};
392  display: flex;
393  align-items: center;
394  justify-content: space-between;
395  padding: 0.8rem 1.2rem;
396  min-height: 6.4rem;
397
398  ${E.default.md} {
399    height: 100%;
400    justify-content: center;
401    gap: 2.4rem;
402  }
403`,eO=(0,d.default)(eb.default).attrs({variant:{0:"p3",[ew.breakpoints.md]:"p2"},bold:!0,noMargin:!0}).withConfig({displayName:"styled__Copy",componentId:"sc-8c303b97-1"})`
404  color: ${b.colorsV2.shade.white};
405`,eB=(0,d.default)(eb.default).attrs({noMargin:!0,bold:!0}).withConfig({displayName:"styled__Badge",componentId:"sc-8c303b97-2"})`
406  background-color: ${b.colorsV2.shade.white};
407  padding: 0.4rem 1rem;
408  border-radius: 0.4rem;
409  font-size: 1.2rem;
410  line-height: ${G.fonts.primary.paragraph.p4.lineHeight};
411  letter-spacing: 0.1rem;
412
413  ${E.default.md} {
414    font-size: ${G.fonts.primary.paragraph.p4.fontSize};
415    padding: 0.6rem 1.6rem;
416    letter-spacing: 0.15rem;
417    border-radius: 0.5rem;
418  }
419`;function eP(){return(0,t.jsxs)(eA,{children:[(0,t.jsxs)(eO,{children:[(0,t.jsx)("span",{role:"img","aria-label":"Rotating Light Emoji",children:"🚨"})," ","Limited time: Get 50% OFF!*"," ",(0,t.jsx)("span",{role:"img","aria-label":"Rotating Light Emoji",children:"🚨"})]}),(0,t.jsx)(eB,{children:"CLAIM NOW"})]})}let e$=(0,d.default)(O.default).withConfig({displayName:"styled__FullWidthTopBanner",componentId:"sc-54fe4339-0"})`
420  width: 100%;
421`;function eM(){let e,n,a,r,o,l,d=(e=(0,g.useZipBasedPromoEmailCaptured)(),n=(0,ey.default)(),a=(0,w.default)(),r=(0,s.useRouter)().asPath,o=(0,i.useRef)(null),(0,F.default)({elementRef:o,onInView:()=>{W.default.instance.track(W.SEGMENT_EVENTS.PROMO_BANNER_VIEWED,{bannerName:"zipBasedGatedPromo",pagePath:r,placement:"header"})},onlyCallOnce:!0}),l=V(),{isEmailCaptured:e,handleBannerClick:()=>{if(e){l||s.default.push(p.default.onboardingPlanType.href({}));return}n&&window.__attentive?.trigger&&(a?window.__attentive.trigger(null,null,null,1331292):window.__attentive.trigger(null,null,null,1331293))},ref:o});return(0,t.jsx)("div",{ref:d.ref,children:(0,t.jsx)(e$,{onClick:d.handleBannerClick,children:d.isEmailCaptured?(0,t.jsx)(eT,{}):(0,t.jsx)(eP,{})})})}let eR=d.default.div.withConfig({displayName:"styled__Wrapper",componentId:"sc-17903154-0"})`
422  background-color: ${b.colorsV2.blue[90]};
423  display: flex;
424  height: 100%;
425  align-items: center;
426  justify-content: center;
427  padding: 0.8rem 1.2rem;
428  min-height: 6.4rem;
429
430  ${E.default.md} {
431    gap: 2.4rem;
432    padding: 1.2rem;
433  }
434`,eL=d.default.div.withConfig({displayName:"styled__CopyWrapper",componentId:"sc-17903154-1"})`
435  display: flex;
436  flex-direction: column;
437  text-align: center;
438
439  ${E.default.md} {
440    flex-direction: row;
441  }
442`,eD=(0,d.default)(eb.default).attrs({variant:{0:"p3",[ew.breakpoints.md]:"p2"},bold:!0,noMargin:!0}).withConfig({displayName:"styled__Copy",componentId:"sc-17903154-2"})`
443  color: ${b.colorsV2.shade.white};
444
445  ${E.default.md} {
446    margin-right: 1rem;
447  }
448`,eV=(0,d.default)(eb.default).attrs({variant:"p2",noMargin:!0}).withConfig({displayName:"styled__SubCopy",componentId:"sc-17903154-3"})`
449  font-size: 1rem;
450  line-height: 1.4rem;
451  color: ${b.colorsV2.shade.white};
452
453  ${E.default.md} {
454    font-size: ${G.fonts.primary.paragraph.p2.fontSize};
455    line-height: ${G.fonts.primary.paragraph.p2.lineHeight};
456  }
457`,eU=(0,d.default)(eb.default).attrs({bold:!0,noMargin:!0}).withConfig({displayName:"styled__CouponCode",componentId:"sc-17903154-4"})`
458  color: ${b.colorsV2.shade.white};
459  display: inline;
460  text-decoration: underline;
461  text-underline-position: from-font;
462`,eW=d.default.span.withConfig({displayName:"styled__MobileOnlyPeriod",componentId:"sc-17903154-5"})`
463  ${E.default.md} {
464    display: none;
465  }
466`;function eH(){return(0,t.jsx)(eR,{children:(0,t.jsxs)(eL,{children:[(0,t.jsxs)(eD,{children:[(0,t.jsx)("span",{role:"img","aria-label":"Party Popper Emoji",children:"🎉"})," ","Woo! You're getting 50% OFF*"," ",(0,t.jsx)("span",{role:"img","aria-label":"Party Popper Emoji",children:"🎉"})]}),(0,t.jsxs)(eV,{children:["Code ",(0,t.jsx)(eU,{children:"FIRSTBOX50"})," auto-applied to your order",(0,t.jsx)(eW,{children:"."})]})]})})}let ez=(0,d.default)(O.default).withConfig({displayName:"styled__FullWidthTopBanner",componentId:"sc-e012bff7-0"})`
467  width: 100%;
468`;function eF(){let e,n,a,r=(e=(0,s.useRouter)().asPath,n=(0,i.useRef)(null),(0,F.default)({elementRef:n,onInView:()=>{W.default.instance.track(W.SEGMENT_EVENTS.PROMO_BANNER_VIEWED,{bannerName:"firstBoxOfferSuccess",pagePath:e,placement:"header"})},onlyCallOnce:!0}),a=V(),{handleBannerClick:()=>{a||s.default.push(p.default.onboardingPlanType.href({}))},ref:n});return(0,t.jsx)("div",{ref:r.ref,children:(0,t.jsx)(ez,{onClick:r.handleBannerClick,children:(0,t.jsx)(eH,{})})})}var eG=e.i(937827);let eK=(0,d.default)(O.default).withConfig({displayName:"styled__FullWidthTopBanner",componentId:"sc-39dc1479-0"})`
469  width: 100%;
470`,eY=d.default.div.withConfig({displayName:"styled__Wrapper",componentId:"sc-39dc1479-1"})`
471  background-color: ${b.colorsV2.shade.black};
472  display: flex;
473  height: 100%;
474  align-items: center;
475  justify-content: space-between;
476  padding: 0.8rem 1.2rem;
477
478  ${E.default.md} {
479    justify-content: center;
480    gap: 2.4rem;
481    padding: 1.2rem;
482  }
483`,eq=d.default.div.withConfig({displayName:"styled__CopyWrapper",componentId:"sc-39dc1479-2"})`
484  display: flex;
485  flex-direction: column;
486
487  ${E.default.md} {
488    flex-direction: row;
489  }
490`,eZ=(0,d.default)(eb.default).attrs({variant:{0:"p3",[ew.breakpoints.md]:"p2"},bold:!0,noMargin:!0}).withConfig({displayName:"styled__Copy",componentId:"sc-39dc1479-3"})`
491  color: ${b.colorsV2.shade.white};
492
493  ${E.default.md} {
494    margin-right: 1rem;
495  }
496`,eQ=(0,d.default)(eb.default).attrs({variant:{0:"caption1",[ew.breakpoints.md]:"p2"},noMargin:!0}).withConfig({displayName:"styled__SubCopy",componentId:"sc-39dc1479-4"})`
497  font-size: 1rem;
498  line-height: 1.4rem;
499  color: ${b.colorsV2.shade.white};
500
501  ${E.default.md} {
502    font-size: ${G.fonts.primary.paragraph.p2.fontSize};
503    line-height: ${G.fonts.primary.paragraph.p2.lineHeight};
504  }
505`,eX=(0,d.default)(eb.default).attrs({bold:!0,noMargin:!0}).withConfig({displayName:"styled__CouponCode",componentId:"sc-39dc1479-5"})`
506  color: ${b.colorsV2.shade.white};
507  display: inline;
508  text-decoration: underline;
509  text-underline-position: from-font;
510`,eJ=d.default.div.withConfig({displayName:"styled__BadgeWrapper",componentId:"sc-39dc1479-6"})`
511  display: flex;
512  background-color: ${b.colorsV2.shade.white};
513  border-radius: 0.4rem;
514  align-items: center;
515  padding-left: 0.4rem;
516
517  ${E.default.md} {
518    padding-left: 1rem;
519  }
520`,e0=(0,d.default)(eb.default).attrs({variant:{0:"caption1",[ew.breakpoints.md]:"p4"},noMargin:!0,bold:!0}).withConfig({displayName:"styled__BadgeText",componentId:"sc-39dc1479-7"})`
521  padding: 0.5rem 1rem 0.5rem 0rem;
522  color: ${b.colorsV2.success[50]};
523
524  ${E.default.md} {
525    letter-spacing: 0.05rem;
526    padding: 0.6rem 1.8rem 0.6rem 0.2rem;
527  }
528`,e2=(0,d.default)(ex.CheckIcon).attrs({stroke:b.colorsV2.success[50]}).withConfig({displayName:"styled__StyledCheckIcon",componentId:"sc-39dc1479-8"})`
529  width: 2.8rem;
530  height: 2.8rem;
531
532  ${E.default.md} {
533    width: 3.2rem;
534    height: 3.2rem;
535  }
536`,e1="referAFriendPromoBanner",e5="hasReferAFriendBannerParams",e4="referAFriendCouponCode";function e3(){let e=function(){var e;let[t]=(0,c.default)(e=>e.coupon.state()),n=(0,s.useRouter)().asPath,a=(0,i.useRef)(null),r=e7(),o=t.isValid?t.code:"",l=(e=t.discount,t.percentage?`${e}%`:`$${Math.round(e/100)}`);(0,F.default)({elementRef:a,onInView:()=>{W.default.instance.track(W.SEGMENT_EVENTS.PROMO_BANNER_VIEWED,{bannerName:e1,bannerId:99001,pagePath:n,placement:"header"})},onlyCallOnce:!0});let d=(0,i.useCallback)(()=>{W.default.instance.track(W.SEGMENT_EVENTS.PROMO_BANNER_CLICKED,{bannerName:e1,bannerId:99001,pagePath:n,placement:"header"}),s.default.push(p.default.onboardingPlanType.href({}))},[n]),u=(0,i.useCallback)(e=>
536{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),d())},[d]);return{shouldShow:r,couponCode:o,discountText:l,handleBannerClick:d,handleBannerKeyDown:u,ref:a}}();return e.shouldShow?(0,t.jsx)(eK,{role:"button",tabIndex:0,onClick:e.handleBannerClick,onKeyDown:e.handleBannerKeyDown,children:(0,t.jsxs)(eY,{ref:e.ref,children:[(0,t.jsxs)(eq,{children:[(0,t.jsxs)(eZ,{children:[(0,t.jsx)("span",{role:"img","aria-label":"Party Popper Emoji",children:"🎉"})," ","Woo! You're getting ",e.discountText," OFF!"," ",(0,t.jsx)("span",{role:"img","aria-label":"Party Popper Emoji",children:"🎉"})]}),(0,t.jsxs)(eQ,{children:["Code ",(0,t.jsx)(eX,{children:e.couponCode.toUpperCase()})," applied to your order."]})]}),(0,t.jsxs)(eJ,{children:[(0,t.jsx)(e2,{}),(0,t.jsx)(e_.default,{showUntil:E.queries.max.sm,children:(0,t.jsx)(e0,{children:"APPLIED"})}),(0,t.jsx)(e_.default,{showFrom:E.queries.min.md,children:(0,t.jsx)(e0,{children:"OFFER APPLIED"})})]})]})}):null}function e7(){var e,t;let r,[o]=(0,c.default)(e=>e.session.isSignedIn()),[s]=(0,c.default)(e=>e.coupon.state()),l=function(){let[e]=(0,c.default)(e=>e.location.queryParams());return"friendbuy"===("string"==typeof e?.[a.UTM_PARAMS.SOURCE]?e[a.UTM_PARAMS.SOURCE].toLowerCase():"")&&"string"==typeof e?.coupon&&e.coupon.toLowerCase().startsWith("frnd")?e.coupon:null}(),d=eG.sessionStorageProxy.getItem(e4);e=l||d||null,t=o,r=(0,n.default)(),(0,i.useEffect)(()=>{if(!e||t)return;let{coupon:i}=r.getState(),n="validating"===i.status,a="validated"===i.status&&i.isValid&&i.code?.toLowerCase()===e.toLowerCase();n||a||r.coupon.call.validate({type:"code",value:e,showPopup:!1,source:U.COUPON_SOURCE.BANNER_AUTO})},[e,t]);let u=l&&s.isValid&&s.code?.toLowerCase()===l.toLowerCase();(0,i.useEffect)(()=>{!o&&u&&(eG.sessionStorageProxy.setItem(e5,!0),eG.sessionStorageProxy.setItem(e4,l))},[o,u,l]);let p=eG.sessionStorageProxy.getItem(e5)&&d&&s.isValid&&s.code?.toLowerCase()===d.toLowerCase();return!o&&!!(u||p)}var e8=e.i(627959);let e9=(0,o.default)(()=>e.A(480912),{loadableGenerated:{modules:[366620]},ssr:!0}),{ENABLE_FOUNDERS_BANNER:e6}=(0,x.default)();function te(){let{isLoading:e,banners:o,activeBannerIndex:x,sliderSettings:E,handleBannerMouseEnter:N,handleBannerMouseLeave:j,sliderRef:O,useHeightOverride:B,setUseHeightOverride:P,bannerRef:$,shouldShowAttentiveZipGatedPromoBanner:M,shouldShowFirstBoxOfferSuccessBanner:R,shouldShowReferAFriendBanner:L,shouldShowFoundersBanner:D,bannerSurfacePaddingTopRem:V,bannerSurfaceBackground:U,isMobile:W,shouldShowExpiringPaymentSlide:H,onExpiringPaymentBannerDismiss:z}=function(){let e,o=(0,s.useRouter)(),{isWebView:l}=(0,u.default)(),{isLoading:d,banners:x}=(0,e8.useBannersToShow)(),{isEligible:I}=(0,_.default)(),E=(0,_.useFirstBoxOfferEmailCaptured)(),[N]=(0,c.default)(e=>e.quickCheckout.state().flowType),[{isStageQuizPastResults:v,isStageQuizFormulaSelected:S}]=(0,c.default)(e=>{let{steps:t,positionTracker:i}=e.stageQuizFlow.navigation.state();return(0,e8.getStageQuizPastResultsInfo)(t,i)}),k=o.pathname.startsWith(e8.STAGE_QUIZ_PATH)&&v&&S,j=["/products/formula","/try-formula","/formula-flow"].some(e=>o.pathname.startsWith(e))||k,O=(0,f.isQuickCheckoutPathname)(o.pathname),B=O&&N===a.PRODUCT_TYPE.FORMULA,P=I&&E&&!j&&!B&&!(O&&null==N),$=function(e,n,r,o){let[l]=(0,c.default)(e=>e.session.isSignedIn()),[d,u]=(0,i.useState)(0),p=(0,s.useRouter)().pathname,m=e[d-!!r],h=(0,i.useRef)(null),[_,x]=(0,i.useState)(!1),b={dots:!1,infinite:e&&e.length>1,slidesToShow:1,speed:1e3,slidesToScroll:1,arrows:e&&e.length>1,nextArrow:(0,t.jsx)(T,{}),prevArrow:(0,t.jsx)(A,{}),autoplay:!0,autoplaySpeed:6e3,beforeChange:(e,t)=>
536{u(t)}},w=(0,g.useZipBasedPromoVariant)(),[C]=(0,c.default)(e=>e.quickCheckout.state().flowType),I=["/products/formula","/try-formula","/formula-flow"].some(e=>p.startsWith(e))||o,E=(0,f.isQuickCheckoutPathname)(p),N=E&&C===a.PRODUCT_TYPE.FORMULA;return{activeBanner:m,activeBannerIndex:d,isAutoScrollPaused:_,setAutoScrollPaused:x,handleBannerMouseEnter:()=>{x(!0)},handleBannerMouseLeave:()=>{x(!1)},sliderSettings:b,sliderRef:h,shouldShowAttentiveZipGatedPromoBanner:w===y.ZBP_VARIANTS.personalizedGatedPromo&&!l&&!I&&!N&&!(E&&null==C)&&!n}}(x,I,P,k),[M,R]=(0,i.useState)(!1),L=(0,n.default)(),D=(0,i.useRef)(null),V=e7()&&!I,U=(0,m.default)().top,W=l&&(0,h.default)(o.pathname,o.asPath)?1.6:0,H=(0,w.default)(),[z]=(0,c.default)(e=>e.user.state().type),F=z===a.USER_TYPE.PRO,G=o.pathname.startsWith("/account"),K=o.pathname===p.default.reactivationLogin.route,Y=(0,g.useZipBasedPromoIsLoading)(),q=!!e6&&!l&&!K&&!(F&&G)&&!d&&!Y,Z=(0,C.useExpiringPaymentBanner)(),Q=G&&x.length>0&&Z.isVisible,X=$.activeBanner?.backgroundColor,J=X&&String(X).trim(),ee=x.length+($.shouldShowAttentiveZipGatedPromoBanner||P?1:0),et=q&&$.activeBannerIndex===ee,ei=P&&0===$.activeBannerIndex,en=Q&&$.activeBannerIndex===ee+ +!!q;return e=ei?b.colorsV2.blue[90]:V||$.shouldShowAttentiveZipGatedPromoBanner||et?b.colorsV2.shade.black:en?b.colorsV2.critical[20]:J?X:void 0,(0,r.default)(D.current,()=>{D.current&&L.banner.call.setDynamicBannerOffsetHeight(D.current.offsetHeight)}),(0,e8.useAutoApplyCoupon)($.activeBanner),{...$,isLoading:d,banners:x,useHeightOverride:M,setUseHeightOverride:R,bannerRef:D,shouldShowReferAFriendBanner:V,shouldShowFirstBoxOfferSuccessBanner:P,shouldShowFoundersBanner:q,bannerSurfacePaddingTopRem:U+W,bannerSurfaceBackground:e,isMobile:H,shouldShowExpiringPaymentSlide:Q,onExpiringPaymentBannerDismiss:Z.handleDismiss}}();return!e&&(0!==o.length||M||R||L||D)?(0,t.jsx)(d.ThemeProvider,{theme:{},children:(0,t.jsx)(v,{ref:$,onMouseEnter:N,onMouseLeave:j,$syncBg:U,$paddingTopRem:V,children:(0,t.jsx)(S,{useHeightOverride:B,children:function({shouldShowReferAFriendBanner:e,shouldShowAttentiveZipGatedPromoBanner:i,shouldShowFirstBoxOfferSuccessBanner:n,shouldShowFoundersBanner:a,banners:r,activeBannerIndex:o,sliderSettings:s,sliderRef:d,setUseHeightOverride:c,isMobile:u,shouldShowExpiringPaymentSlide:p,onExpiringPaymentBannerDismiss:m}){if(e)return(0,t.jsx)(e3,{});let h=r.map(e=>(0,t.jsx)(ef,{banner:e,setUseHeightOverride:c},e.id))||[];if(i){h.push((0,t.jsx)(eM,{},"zip-based-personalized-promo-banner")),s.infinite=h.length>1,s.arrows=h.length>1&&!u;let e=o===r.length;s.nextArrow=(0,t.jsx)(T,{$white:e}),s.prevArrow=(0,t.jsx)(A,{$white:e})}if(n){h.unshift((0,t.jsx)(eF,{},"first-box-offer-success-banner")),s.infinite=h.length>1,s.arrows=h.length>1&&!u;let e=0===o;s.nextArrow=(0,t.jsx)(T,{$white:e}),s.prevArrow=(0,t.jsx)(A,{$white:e})}return a&&(h.push((0,t.jsx)(e9,{},"founders-banner")),s.infinite=h.length>1,s.arrows=h.length>1&&!(i&&u),o===h.length-1&&(s.nextArrow=(0,t.jsx)(T,{$white:!0}),s.prevArrow=(0,t.jsx)(A,{$white:!0}))),p&&(h.push((0,t.jsx)(I.default,{onDismiss:m,inCarousel:!0},"expiring-payment-banner")),s.infinite=h.length>1,s.arrows=h.length>1&&!u),(0,t.jsx)(k,{$equalSlideHeights:p,children:(0,t.jsx)(l.default,{...s,ref:d,children:h})})}({shouldShowReferAFriendBanner:L,shouldShowAttentiveZipGatedPromoBanner:M,shouldShowFirstBoxOfferSuccessBanner:R,shouldShowFoundersBanner:D,banners:o,activeBannerIndex:x,sliderSettings:E,sliderRef:O,setUseHeightOverride:P,isMobile:W,shouldShowExpiringPaymentSlide:H,onExpiringPaymentBannerDismiss:z})})})}):null}e.s(["default",0,function(e){let o,s,l=(o=(0,n.default)(),s=(0,i.useRef)(null),(0,r.default)(s.current,()=>{s.current&&o.banner.call.setBannerOffsetHeight(s.current?.offsetHeight??0)}),{bannerRef:s});return(0,t.jsxs)(H.BannerWrapper,{ref:l.bannerRef,noShadow:e.noShadow,children:[(0,t.jsx)(te,{}),(0,t.jsx)("div",{id:a.APP_HEADER_PORTAL_ID})]})}],682229)},120346,e=>{"use strict";var t=e.i(828626);let i=(0,e.i(124412).createContext)({isPageLevelError:!1});e.s(["PageLevelErrorContext",0,i,"PageLevelErrorProvider",0,function(e){return(0,t.jsx)(i.Provider,{value:{isPageLevelError:e.isPageLevelError},children:e.children})}])},927794,(e,t,i)=>{t.exports="https://ik.imagekit.io/littlespoon/web/fe-assets/app/components/modules/Layout/MobileBottomNav/assets/home_filled.svg"},440920,(e,t,i)=>{t.exports="https://ik.imagekit.io/littlespoon/web/fe-assets/app/components/modules/Layout/MobileBottomNav/assets/home_outlined.svg"},77977,(e,t,i)=>{t.exports="https://ik.imagekit.io/littlespoon/web/fe-assets/app/components/modules/Layout/MobileBottomNav/assets/mom_filled_20250625.svg"},927131,(e,t,i)=>{t.exports="https://ik.imagekit.io/littlespoon/web/fe-assets/app/components/modules/Layout/MobileBottomNav/assets/mom_outlined_20250625.svg"},273991,(e,t,i)=>{t.exports="https://ik.imagekit.io/littlespoon/web/fe-assets/app/components/modules/Layout/MobileBottomNav/assets/chat_filled.svg"},45724,(e,t,i)=>{t.exports="https://ik.imagekit.io/littlespoon/web/fe-assets/app/components/modules/Layout/MobileBottomNav/assets/chat_outlined.svg"},22643,(e,t,i)=>{t.exports="https://ik.imagekit.io/littlespoon/web/fe-assets/app/components/modules/Layout/MobileBottomNav/assets/account_filled.svg"},373172,(e,t,i)=>{t.exports="https://ik.imagekit.io/littlespoon/web/fe-assets/app/components/modules/Layout/MobileBottomNav/assets/account_outlined.svg"},709841,e=>{"use strict";var t=e.i(828626),i=e.i(886951),n=e.i(124412),a=e.i(174398),r=e.i(120346),o=e.i(268455),s=e.i(581602),l=e.i(607390),d=e.i(667708),c=e.i(725050),u=e.i(134572),p=e.i(469985),m=e.i(163315),h=e.i(463624),f=e.i(512086);let g=f.default.div.withConfig({displayName:"styled__NavColumn",componentId:"sc-fa30d082-0"})`
537  display: flex;
538  align-items: center;
539  flex-direction: column;
540  justify-content: center;
541  cursor: pointer;
542  padding: 1rem 3rem;
543`,y=f.default.img.withConfig({displayName:"styled__NavIcon",componentId:"sc-fa30d082-1"})`
544  width: 2.8rem;
545  height: 2.8rem;
546`;function _({link:e,selected:i}){let n=i?e.icon?.filled:e.icon?.outline;return e?.href?(0,t.jsx)(h.default,{href:e.href,as:e.href,style:{textDecoration:"none"},onClick:e?.onClick,children:(0,t.jsx)(g,{children:n&&(0,t.jsx)(y,{src:n,alt:e.name})})}):(0,t.jsx)(g,{onClick:e?.onClick,children:n&&(0,t.jsx)(y,{src:n,alt:e.name})})}e.i(194573);var x=e.i(336569);let b=f.default.div.withConfig({displayName:"styled__NavWrapper",componentId:"sc-d535fc09-0"})(e=>`
547  position: fixed;
548  justify-content: space-between;
549  bottom: 0;
550  left: 0;
551  display: flex;
552  border-top: 0.0333rem solid rgba(0, 0, 0, 0.3);
553  padding-bottom: ${e.paddingBottom}rem;
554  width: 100%;
555  z-index: ${x.zIndex["30"]};
556  background: linear-gradient(
557    to bottom,
558    rgba(255, 255, 255, 0.99),
559    rgba(255, 255, 255, 0.97),
560    rgba(255, 255, 255, 0.95)
561  );
562`);e.s(["default",0,function(){let h=function(){let{isPageLevelError:t}=(0,n.useContext)(r.PageLevelErrorContext),{pathname:p,query:h}=(0,i.useRouter)(),f=(0,s.default)(),g=(0,o.default)(),y={HomeIcon:{filled:e.r(927794),outline:e.r(440920)},BoxIcon:{filled:e.r(77977),outline:e.r(927131)},ChatIcon:{filled:e.r(273991),outline:e.r(45724)},AccountIcon:{filled:e.r(22643),outline:e.r(373172)}},_=e=>{u.default.instance.track(u.SEGMENT_EVENTS.CTA_CLICKED,{name:"bottom_nav_clicked",cta_clicked:e})},x=e=>{window.location=e};return{isLinkSelected:({name:e})=>{let i=g.href({}
562),n=h&&!Object.keys(h).includes(a.URL_PARAM.IS_DECAGON_WIDGET_OPEN);return e===m.MOBILE_BOTTOM_NAV_LINK_NAME.ORDERS?!t&&p.includes(i)&&h&&h[l.URL_PARAMS_OPTIONS.ACTION]===l.ACTIONS.MODIFY_ORDERS&&n:e===m.MOBILE_BOTTOM_NAV_LINK_NAME.HOME?!t&&p.includes(i)&&(!h||h&&!Object.keys(h).includes(l.URL_PARAMS_OPTIONS.ACTION)&&n):e!==m.MOBILE_BOTTOM_NAV_LINK_NAME.ACCOUNT||t?e===m.MOBILE_BOTTOM_NAV_LINK_NAME.CHAT&&h&&"true"===h[a.URL_PARAM.IS_DECAGON_WIDGET_OPEN]:!t&&p.includes(d.default.myAccount.route)&&n},links:[{href:g.route,name:m.MOBILE_BOTTOM_NAV_LINK_NAME.HOME,icon:y.HomeIcon,onClick:()=>{(_(m.MOBILE_BOTTOM_NAV_LINK_NAME.HOME),t)?x(g.href({})):(0,c.close)()}},{name:m.MOBILE_BOTTOM_NAV_LINK_NAME.ORDERS,icon:y.BoxIcon,onClick:()=>{(_("MOM"),t)?x(g.as({},{[l.URL_PARAMS_OPTIONS.ACTION]:l.ACTIONS.MODIFY_ORDERS})):((0,c.close)(),setTimeout(()=>{f()},200))}},{name:m.MOBILE_BOTTOM_NAV_LINK_NAME.CHAT,icon:y.ChatIcon,onClick:()=>{_(m.MOBILE_BOTTOM_NAV_LINK_NAME.CHAT),(0,c.open)()}},{href:d.default.myAccount.route,name:m.MOBILE_BOTTOM_NAV_LINK_NAME.ACCOUNT,icon:y.AccountIcon,onClick:()=>{(_(m.MOBILE_BOTTOM_NAV_LINK_NAME.ACCOUNT),t)?x(d.default.myAccount.href({})):(0,c.close)()}}]}}();return(0,t.jsx)(b,{paddingBottom:(0,p.default)().bottom,children:h.links.map((e,i)=>(0,t.jsx)(_,{link:e,selected:h.isLinkSelected(e)},i))})}],709841)},209756,e=>{"use strict";var t=e.i(150517),i=e.i(509025);e.s(["default",0,function(){let[[e,n]]=(0,i.default)(e=>[e.user.state(),e.subscriptions.state().data]),a=n?Object.values(n).flat().reduce((e,t)=>!e||t.createdAt&&t.createdAt<e.createdAt?t:e,null):null,r=a?(0,t.default)(a.createdAt??e.createdAt).format("MMMM YYYY"):"...";return{userDetails:e,userSinceDate:r}}])},134701,e=>{"use strict";var t=e.i(828626),i=e.i(886951),n=e.i(124412),a=e.i(60223),r=e.i(152978),o=e.i(709841),s=e.i(682229),l=e.i(627959),d=e.i(509025),c=e.i(234976),u=e.i(667708),p=e.i(344344),m=e.i(539025),h=e.i(2592),f=e.i(209756),g=e.i(726823),y=e.i(130952),_=e.i(512086);e.i(658383);var x=e.i(988258),b=e.i(717832);e.i(315911);var w=e.i(619811);e.i(194573);var C=e.i(336569),I=e.i(469985),E=e.i(232345);let N=_.default.div.withConfig({displayName:"styled__Wrapper",componentId:"sc-bc3ba1cc-0"})(e=>_.css`
563    display: flex;
564    justify-content: space-between;
565    align-items: ${e.withBackButton?"center":"baseline"};
566    padding: ${e.withBackButton?`${v(e)}rem 1.6rem 1.2rem`:`${v(e)}rem 2rem 1.6rem`};
567    position: sticky;
568    top: 0;
569    width: 100%;
570    background-color: ${x.colors.shadeWhite};
571    z-index: ${C.zIndex["100"]};
572    border-bottom: ${e.withBackButton?`0.1rem solid ${x.colors.grey10()}`:"none"};
573  `);function v(e){return e.$noInsetPadding?1.6:(0,I.default)().top+1.6}let S=_.default.div.withConfig({displayName:"styled__DeliveryScheduleTitleWrapper",componentId:"sc-bc3ba1cc-1"})`
574  display: block;
575`,k=(0,_.default)(w.default).attrs({variant:{0:"h5"},black:!0,noMargin:!0}).withConfig({displayName:"styled__Title",componentId:"sc-bc3ba1cc-2"})``,j=(0,_.default)(w.default).attrs({variant:{0:"h5"},black:!0,noMargin:!0,center:!0}).withConfig({displayName:"styled__HeaderTitle",componentId:"sc-bc3ba1cc-3"})`
576  width: 100%;
577`,T=_.default.div.withConfig({displayName:"styled__EmptyBox",componentId:"sc-bc3ba1cc-4"})`
578  width: ${e=>e.disableWidthOnSmallScreen?"0":"2.4rem"};
579
580  ${E.default.minW(392)} {
581    width: 2.4rem;
582  }
583`,A=(0,_.default)(w.default).attrs({variant:{0:"p4"},noMargin:!0}).withConfig({displayName:"styled__SubTitle",componentId:"sc-bc3ba1cc-5"})``,O=(0,_.default)(b.Button).attrs({size:"medium",variant:"tertiary"}).withConfig({displayName:"styled__BackButton",componentId:"sc-bc3ba1cc-6"})`
584  padding: 0;
585  width: 2.4rem;
586`;function B(){return(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M19 12H5M5 12L12 19M5 12L12 5",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}let{ENABLE_FALL_FAVORITES:P}=(0,c.default)();function $(e){let n=function(){let{userDetails:e,userSinceDate:t}=(0,f.default)(),n=(0,i.useRouter)(),a=(0,h.useSearchParams)().get("selectedTab"),r=n.route===u.default.deliverySchedule.route,o=n.route===u.default.myAccount.route,s=n.route.includes("/account/add-plan/smoothies"),l=function(e,t){let i={[u.default.details.route]:"Account Details",[u.default.refer.route]:"Refer a Friend",[u.default.faq.route]:"FAQ",[u.default.termsAndConditions.route]:"Terms & Conditions",[u.default.reviews.route]:"Little Spoon Reviews"};if(e===u.default.plansAndOrders.route)return"plans"===t?"My Products":"orders"===t?"Order History":"Plans & Orders";if(e.includes("account/add-plan")){let t=e.split("/").pop()?.slice(0,-1);return t&&g.default[t]?`Add ${g.default[t]}`:"Add Products"}if(i[e])return i[e];let n=Object.keys(u.default).find(t=>u.default[t].route===e);return n?n.replace(/([A-Z])/g," $1").replace(/^./,e=>e.toUpperCase()).trim():"Little Spoon"}(n.route,a);return{userFirstName:e?.firstName,isDeliverySchedule:r,isMyAccountPage:o,userSinceDate:t,shouldShowBackButton:!r,handleBack:()=>{2>=(window?.history?.length||0)?n.push(y.ACCOUNT_DEFAULT_PAGE.href,y.ACCOUNT_DEFAULT_PAGE.as):n.back()},pageTitle:l,isSmoothiesAAPFlow:s}}();return n.isMyAccountPage?null:n.isDeliverySchedule?(0,t.jsx)(N,{$noInsetPadding:e.noInsetPadding,children:(0,t.jsxs)(S,{children:[(0,t.jsxs)(k,{children:["Welcome",n.userFirstName&&`, ${n.userFirstName}`,"!",P?" 🍂":" 👋"]}),(0,t.jsxs)(A,{children:["Spooner Since: ",n.userSinceDate]})]})}
586):(0,t.jsxs)(N,{withBackButton:!0,$noInsetPadding:e.noInsetPadding,children:[n.shouldShowBackButton?(0,t.jsx)(O,{onClick:n.handleBack,"aria-label":"Back",children:(0,t.jsx)(B,{})}):(0,t.jsx)(T,{disableWidthOnSmallScreen:n.isSmoothiesAAPFlow}),(0,t.jsx)(j,{children:n.pageTitle}),(0,t.jsx)(T,{disableWidthOnSmallScreen:n.isSmoothiesAAPFlow})]})}var M=e.i(515225),R=e.i(598487);let L=_.default.div.withConfig({displayName:"styled__ChildrenWrapper",componentId:"sc-63275e91-0"})`
587  width: 100%;
588`,D=_.default.div.withConfig({displayName:"styled__StickyTopArea",componentId:"sc-63275e91-1"})`
589  position: sticky;
590  top: 0;
591  width: 100%;
592  z-index: ${C.zIndex["100"]};
593`,V=_.default.div.withConfig({displayName:"styled__StickyBanner",componentId:"sc-63275e91-2"})`
594  display: block;
595  position: sticky;
596  top: 0;
597  left: 0;
598  width: 100%;
599  z-index: ${C.zIndex["80"]};
600`,{DISABLE_DYNAMIC_BANNERS:U}=(0,c.default)();e.s(["default",0,function(e){let c=function(e){var t;let o,{isWebView:s}=(0,r.default)(),c=(0,i.useRouter)(),h=(0,M.useExpiringPaymentBanner)(),f=(0,M.useIsExpiringPaymentBannerInPromoCarousel)(),g=!!e.withExpiringPaymentBanner&&h.isVisible&&!f,[y]=(0,d.default)(e=>e.banner.state().showPublicBanner),{banners:_}=(0,l.useBannersToShow)(),x=!!e.withExpiringPaymentBanner&&!U&&!!y&&_.length>0,b=!e.noMobileAppHeader&&!(0,p.default)(c.pathname,c.asPath),w=c.route===u.default.addPlan.route;return t=s,o=(0,i.useRouter)(),(0,n.useEffect)(()=>{if(!t)return;let e=e=>{if((0,m.isForeignMessageSource)(e.source))return;let t=(0,m.parseWebViewPostMessage)(e.data);t&&t.type===a.POST_MESSAGE_TYPES.CHANGE_PAGE&&o.push({pathname:t.pathname,query:t.query})};return window.addEventListener("message",e),()=>{window.removeEventListener("message",e)}},[o,t]),{isWebView:s,shouldShowExpiringPaymentBanner:g,shouldShowSiteBanner:x,hasStickyTopBanner:x||g,dismissExpiringPaymentBanner:h.handleDismiss,shouldShowMobileAppHeader:b,shouldShowMobileBottomNavBar:!w}}(e);return c.isWebView?(0,t.jsxs)(t.Fragment,{children:[c.hasStickyTopBanner?(0,t.jsxs)(D,{children:[c.shouldShowSiteBanner&&(0,t.jsx)(s.default,{noShadow:!0}
600),c.shouldShowExpiringPaymentBanner&&(0,t.jsx)(V,{children:(0,t.jsx)(R.default,{onDismiss:c.dismissExpiringPaymentBanner})}),c.shouldShowMobileAppHeader&&(0,t.jsx)($,{noInsetPadding:!0})]}):c.shouldShowMobileAppHeader&&(0,t.jsx)($,{}),(0,t.jsx)(L,{children:e.children}),c.shouldShowMobileBottomNavBar&&(0,t.jsx)(o.default,{})]}):e.children}],134701)}]);
601
602//# sourceMappingURL=14nejo087q16v.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.