1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[63013],{870771:function(t,n,e){e.d(n,{Fv:function(){return o},ck:function(){return a},gi:function(){return r},m4:function(){return i}});var r="hf_prefill_zipcode",o="enable_rp_web",i="hf_public_id",a=["/pages/cook-this-big-idea","/pages/inspiration-delivered","/pages/simplydelicious","/pages/resolution","/pages/value-messaging","/pages/cucinare-smart","/pages/meal-kit-delivery","/pages/deliciosamente-simple-1","/pages/discountcode","/pages/b2bdiscount"]},737751:function(t,n,e){e.d(n,{v:function(){return o},w:function(){return i}}),(r=o||(o={})).wine="wine",r.cloudfront="cloudfront",r.website="website";var r,o,i={fetch_format:"auto",flags:"lossy",quality:"auto"}},977382:function(t,n,e){var r=e(347334);n.ZP=r.ZP},347334:function(t,n,e){e.d(n,{ZP:function(){return y},LJ:function(){return p}});var r,o={width:function(t){return t>0?"w_".concat(t):""},height:function(t){return t>0?"h_".concat(t):""},crop:function(t){return"c_".concat(t)},gravity:function(t){return"g_".concat(t)},background:function(t){return"b_".concat(t)},x:function(t){return"x_".concat(t)},y:function(t){return"y_".concat(t)},aspect_ratio:function(t){return"ar_".concat(t)},radius:function(t){return"r_".concat(t)},opacity:function(t){return"o_".concat(t)},dpr:function(t){return"dpr_".concat(t)},effect:function(t){return"e_".concat(t)},flags:function(t){return"fl_".concat(t)},overlay:function(t){return"l_".concat(t)},zoom:function(t){return"z_".concat(t)},fetch_format:function(t){return"f_".concat(t)},quality:function(t){return"q_".concat(t)},angle:function(t){return"a_".concat(t)},border:function(t){return"bo_".concat(t)},color:function(t){return"co_".concat(t)}},i=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(t).reduce(function(n,e){var r=o[e],i=t[e],a=r&&i&&r(i);return a?n.concat([a]):n},[]).sort().join(",")},a=function(t,n){var e=i(n);return"".concat("https://media.hellofresh.com","/").concat(e,"/").concat(t)},c=e(737751),l=function(t){if(t&&t.match(/,/)){var n=t.split(","),e=parseInt(n[0],10),r=parseInt(n[1],10),o={};return r>0&&(o.height=r),e>0&&(o.width=e),o}return{}};function u(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var s=(u(r={},c.v.wine,{proxyName:"lot18",extractImageId:function(t){var n=t.split(/\//);return n.splice(0,3),n.join("/")},extractSize:function(){return{}}}),u(r,c.v.cloudfront,{proxyName:"hellofresh_s3",extractImageId:function(t){var n=t.split(/\//);return n.splice(0,4),n.join("/")},extractSize:function(t){return l(t.split(/\//)[3])}}),u(r,c.v.website,{proxyName:"hellofresh_website",extractImageId:function(t){var n=t.split(/\//);return n.splice(0,3),n.join("/")},extractSize:function(t){return l(t.split(/\//)[3])}}),r);function d(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{},r=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.forEach(function(n){var r;r=e[n],n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r})}return t}var f=RegExp("^http(s)?."),v={hasWarned:!1,markAsWarned:function(){this.hasWarned=!0}},p=function(t,n){return a(t,d({},c.w,n))},g=function(t){var n=f.test(t);return n&&!v.hasWarned&&(console.warn("\uD83D\uDE35 using imageLink for cloudfront images will be deprecated soon, pass an imagePath instead!"),v.markAsWarned()),n},y=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.v.cloudfront;if(!t||!t.length)return function(){return t};var e=s[n],r=e.extractImageId,o=e.extractSize,i=e.proxyName,a="/".concat(r(t));n!==c.v.cloudfront||g(t)||(a=t);var l="".concat(i).concat(a);return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p(l,d({},o(t),n))}}},336490:function(t,n,e){e.d(n,{F:function(){return l},M:function(){return u}});var r=e(687800),o=e(827378),i=function(t){return"https://".concat(t,".hellofresh.com")},a=[{id:"hellofresh",name:"HelloFresh",logoURL:"".concat(i("cdn"),"/logo/ModularLandingPages/Logo6.png"),wideLogoURL:"".concat(i("cdn"),"/logo/ModularLandingPages/Logo6.png"),faviconURL:"".concat(i("cdn"),"/logo/ModularLandingPages/favicon_24.ico"),countryCodes:["US","CA","GB","DE","AT","NL","BE","CH","NZ","AU","FR","LU","SE","DK","ES","IE"],width:93,height:30},{id:"chefsplate",name:"Chefs Plate",logoURL:"".concat(i("cdn"),"/logo/CP_Logo.svg"),wideLogoURL:"".concat(i("cdn"),"/logo/cp_wordmark.svg"),faviconURL:"".concat(i("cdn"),"/favicon/chefsplate_favicon_new.ico"),countryCodes:["CK"],width:176,height:24},{id:"everyplate",name:"EveryPlate",logoURL:"".concat(i("cdn"),"/logo/everyplate_logo.png"),wideLogoURL:"".concat(i("cdn"),"/logo/everyplate_logo_wide.svg"),faviconURL:"".concat(i("cdn"),"/favicon/everyplate_favicon_rebrand.ico"),countryCodes:["ER","AO"],width:220,height:40},{id:"factor",name:"Factor",logoURL:"".concat(i("cdn"),"/logo/whitelabel_logos_lg/fa_lg_full.svg"),wideLogoURL:"".concat(i("cdn"),"/logo/whitelabel_logos_lg/fa_lg_full.svg"),faviconURL:"".concat(i("cdn"),"/favicon/factor_favicon.ico"),countryCodes:["FJ","CF","TO","TT","TV","TK","TZ"],width:140,height:30},{id:"goodchop",name:"Good Chop",logoURL:"".concat(i("cdn"),"/logo/goodchop_logo.svg"),wideLogoURL:"".concat(i("cdn"),"/logo/goodchop_logo.svg"),faviconURL:"".concat(i("cdn"),"/favicon/goodchop_favicon.ico"),countryCodes:["MR"],width:6
15,height:48},{id:"greenchef",name:"Green Chef",logoURL:"".concat(i("cdn"),"/logo/greenchef_logo.svg"),wideLogoURL:"".concat(i("cdn"),"/logo/greenchef_logo.svg"),faviconURL:"".concat(i("cdn"),"/favicon/greenchef_favicon.ico"),countryCodes:["CG","GN","GQ"],width:94,height:52},{id:"youfoodz",name:"Youfoodz",logoURL:"".concat(i("cdn"),"/logo/ModularLandingPages/rebranded_yf_lg.svg "),wideLogoURL:"".concat(i("cdn"),"/logo/ModularLandingPages/rebranded_yf_lg.svg "),faviconURL:"".concat(i("cdn"),"/favicon/youfoodz_favicon_new.ico"),countryCodes:["YE"],width:271,height:50},{id:"petstable",name:"The Pets Table",logoURL:"".concat(i("cdn"),"/logo/whitelabel_logos_lg/TPT_Primary.png"),wideLogoURL:"".concat(i("cdn"),"/logo/whitelabel_logos_lg/TPT_Primary.png"),faviconURL:"https://www.thepetstable.com/assets/petstable/favicon/favicon-kn.ico",countryCodes:["KN"],width:100,height:30}],c=function(t){return a.find(function(n){return n.id===(t||"").toLowerCase().replace(/\s/g,"")})||a[0]},l=(0,o.createContext)({brandData:c("hellofresh")}),u=function(t){var n=t.children,e=t.brand,i=(0,o.useMemo)(function(){return c(e)},[e]);return(0,r.tZ)(l.Provider,{value:{brandData:i},children:n})}},954409:function(t,n,e){e.d(n,{D:function(){return i}});var r=e(827378),o=e(336490),i=function(){return(0,r.useContext)(o.F).brandData||{}}},361822:function(t,n,e){e.d(n,{vm:function(){return l}});var r=e(687800),o=e(827378);function i(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}function a(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e,r,o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var i=[],a=!0,c=!1;try{for(o=o.call(t);!(a=(e=o.next()).done)&&(i.push(e.value),!n||i.length!==n);a=!0);}catch(t){c=!0,r=t}finally{try{a||null==o.return||o.return()}finally{if(c)throw r}}return i}}(t,n)||function(t,n){if(t){if("string"==typeof t)return i(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);if("Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return i(t,n)}}(t,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var c=(0,o.createContext)({hasHeroCta:!1,heroCtaInView:!1,registerHeroCta:function(){},setHeroCtaInView:function(){}}),l=function(){return(0,o.useContext)(c)};n.ZP=function(t){var n=t.children,e=a((0,o.useState)(!1),2),i=e[0],l=e[1],u=a((0,o.useState)(!1),2),s=u[0],d=u[1],f=(0,o.useCallback)(function(){return l(!0)},[]),v=(0,o.useCallback)(function(t){return d(t)},[]),p=(0,o.useMemo)(function(){return{hasHeroCta:i,heroCtaInView:s,registerHeroCta:f,setHeroCtaInView:v}},[i,s,f,v]);return(0,r.tZ)(c.Provider,{value:p,children:n})}},403647:function(t,n,e){e.d(n,{K:function(){return a}});var r=e(870771);function o(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}var i=["/reactivate","/account-settings/subscription-settings/reactivate","/loyalty","/path","https://","/programs-funnel"],a=function(t,n,e,a){if(!r.ck.includes(n.split("?")[0]||"")||i.some(function(n){return t.startsWith(n)}))return t;var c,l=function(t){if(Array.isArray(t))return t}(c=null==t?void 0:t.split("?"))||function(t,n){var e,r,o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var i=[],a=!0,c=!1;try{for(o=o.call(t);!(a=(e=o.next()).done)&&(i.push(e.value),2!==i.length);a=!0);}catch(t){c=!0,r=t}finally{try{a||null==o.return||o.return()}finally{if(c)throw r}}return i}}(c,2)||function(t,n){if(t){if("string"==typeof t)return o(t,2);var e=Object.prototype.toString.call(t).slice(8,-1);if("Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return o(t,2)}}(c,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),u=l[0],s=l[1];if(!t||"/plans"!=u){var d="/plans".concat(s?"?".concat(s):"");return a.setAttributes({"cta-url-redirection-to-plans.page_path":u,"cta-url-redirection-to-plans.query":s,"cta-url-redirection-to-plans.initial_cta_path":t,"cta-url-redirection-to-plans.updated_cta_url":d,"cta-url-redirection-to-plans.section_id":e}),a.end(),d}return t}},203794:function(t,n,e){e.d(n,{E8:function(){return a},h9:function(){return c}});var r=e(26730),o={US:"$",CA:"$",GB:"\xa3",UK:"\xa3",AU:"$",NZ:"$",DE:"â¬",AT:"â¬",BE:"â¬",NL:"â¬",FR:"â¬",LU:"â¬",CH:"CHF",SE:"kr",DK:"kr",NO:"kr",IT:"â¬",JP:"\xa5",IE:"â¬",ES:"â¬",AO:"$",CF:"$",CG:"$",CK:"$",ER:"$",FJ:"$",GN:"\xa3",KN:"$",MR:"$",YE:"$",GQ:"â¬",TO:"â¬",TT:"â¬",TV:"kr",TK:"kr",TZ:"â¬"},i={US:"USD",CA:"CAD",GB:"GBP",UK:"GBP",AU:"AUD",NZ:"NZD",DE:"EUR",AT:"EUR",BE:"EUR",NL:"EUR",FR:"EUR",LU:"EUR",CH:"CHF",SE:"SEK",DK:"DKK",NO:"NOK",IT:"EUR",JP:"JPY",IE:"EUR",ES:"EUR",AO:"AUD",CF:"CAD",CG:"USD",CK:"CAD",ER:"USD",FJ:"USD",GN:"GBP",KN:"USD",MR:"USD",YE:"AUD",GQ:"EUR",TO:"EUR",TT:"EUR",TV:"SEK",TK:"DKK",TZ:"EUR"},a=function(t){return i[(t||"").toUpperCase()]||""},c=function(t,n,e,i,c){if(n)return"".concat(t).concat(n?"%":o[(e||"").toUpperCase()]||"");var l=a(e);return e===r.Z.JP&&(c=null),new Intl.NumberFormat(i,{style:"currency",currency:l,minimumFractionDigits:c>-1?c:t%1==0?0:2,maximumFractionDigits:2}).format(t)}},274309:function(t,n,e){e.d(n,{Ww:function(){return g},X6:function(){return y},mO:function(){return S},Bf:function(){return b},IP:function(){return h},Mq:function(){return m}});var r=e(203794),o=e(285804),i=e.n(o),a=e(235935),c=e.n(a),l="gaEventTrigger",u="gaEventTrigger_EE",s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"freebie_mlp_v1"===t.split("|")[1]},d=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"raf_lp"===t.split("|")[1]},f=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"raf_lp11"===t.split("|")[1]},v=function(t,n){var e=n.utm_source;return f(t)&&"share"===e},p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.toLowerCase().includes("about|faq")},g=function(t,n,e){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;if(v(t,r)){var u=i()(Date.now()),g=c()(Date.now());return{event:l,gaEventCategory:"RAF",gaEventAction:"ClickRedeemDiscount",gaEventLabel:"Helloshare|".concat(n,"|").concat(r.c,"|").concat(u,"-W").concat(g),event_name:"RAF_RedeemDiscountClick",brand:e,tribe:"Conversions",screen:"RAF"}}return s(t)?{event:l,gaEventCategory:"RedeemFreebie",gaEventAction:"ClickViewOurPlans",gaEventLabel:n,gaEventNonInteraction:!1}:d(t)||f(t)?{event:l,gaEventCategory:"CeleryLP",gaEventAction:"ClickGetMyFreeMeal",gaEventLabel:n,gaEventNonInteraction:!1}:p(t)?{event:l,gaEventAction:"CTA",event_name:"Navigation_PageCTAclick",
1screen:"Landing Page",brand:e,tribe:"Conversions Journey",user_action:n,gaEventLabel:n,gaEventCategory:"navigation",gaEventNonInteraction:!1}:{event:l,Campaign:"LandingPageCTA-".concat(t,"-").concat(n),event_name:"Navigation_PageCTAclick",screen:"Landing Page",brand:e,tribe:"Conversions Journey",user_action:o||"LP_getStarted",gaEventCategory:"navigation",gaEventAction:"CTA",gaEventLabel:o||"LP_getStarted",gaEventNonInteraction:!1,sectionType:a||""}},y=function(t){var n,e,r=t.category,o=t.action,i=t.label,a=t.nonInteraction,c=t.fowardToWebView,u=t.eventName,s=void 0===u?"":u,d=t.userAction,f=void 0===d?"":d,v=t.position,p=void 0===v?"":v,g=t.brand,y=void 0===g?"":g,h=t.tribe,m=void 0===h?"":h,b=t.screen,S=void 0===b?"":b,P=t.elementId,w=void 0===P?"":P,C=t.preferencesSelected,_=void 0===C?"":C,k=t.faqCategory,E=void 0===k?"":k,L=t.numberOfPeople,U=void 0===L?"":L,A=(n=function(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{},r=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.forEach(function(n){var r;r=e[n],n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r})}return t}({event:l},s&&{event_name:s},f&&{user_action:f},p&&{position:p},y&&{brand:y},m&&{tribe:m},S&&{screen:S},w&&{elementId:w},_&&{preferences_selected:_},E&&{faq_category:E},U&&{n_people:U}),e=e={gaEventCategory:r,gaEventAction:o,gaEventLabel:i,gaEventNonInteraction:void 0!==a&&a},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):(function(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e.push.apply(e,r)}return e}
1)(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}),n);if(void 0!==c&&c){var O=new CustomEvent("webForwardedAnalyticsEvents",{detail:A});document.dispatchEvent(O)}return A},h=function(t){var n=t.ctaUrl,e=t.action,r=t.label;if(n.includes("plan-recommendations"))return y({category:"funnel",action:e,label:void 0===r?"":r,nonInteraction:!1})},m=function(t){var n=t.couponCode,e=t.product,o=t.productFamilyHandle,i=t.action,a=t.mealsPreset,c=void 0===a?"":a;if(e&&0!==Object.keys(e).length)return{event:u,gaEventCategory:"funnel",gaEventAction:i,gaEventLabel:"".concat(null==e?void 0:e.handle,"|").concat(c||"none","|").concat(n?"with-coupon":"no-coupon"),ecommerce:{click:{actionField:{currencyCode:(0,r.E8)(null==e?void 0:e.country)},products:[{name:null==e?void 0:e.name,id:null==e?void 0:e.handle,price:null==e?void 0:e.price,brand:"Hellofresh",category:o,variant:c||"none",coupon:n}]}}}},b=function(t){return y({category:"funnel",action:"multiplePreferenceSelect",label:null==t?void 0:t.join("|"),eventName:"SelectPlan_MultiplePreferenceSelect",brand:"HelloFresh",tribe:"Conversions",screen:"Plans",preferencesSelected:null==t?void 0:t.join(",")})},S=function(t){var n=t.couponCode,e=t.product,o=t.productFamilyHandle,i=t.mealsPreset,a=void 0===i?"":i,c=t.isMultiPreferences,l=void 0!==c&&c,s=t.multiPreferences,d=void 0===s?"":s;if(e&&0!==Object.keys(e).length)return{event:u,gaEventCategory:"funnel",gaEventAction:"go to cart",gaEventLabel:"".concat(null==e?void 0:e.handle,"|").concat(l?d||"none":a||"none","|").concat(n?"with-coupon":"no-coupon"),ecommerce:{currencyCode:(0,r.E8)(null==e?void 0:e.country),add:{products:[{name:null==e?void 0:e.name,id:null==e?void 0:e.handle,price:null==e?void 0:e.price,brand:"Hellofresh",category:o,variant:l?d||"none":a||"none",coupon:n,quantity:1}]}}}}},502408:function(t,n,e){e.d(n,{L:function(){return u},j:function(){return s}});var r=e(737751),o=e(977382),i=e(347334),a=["hellofresh_website","hellofresh_s3","everyplate_contentful"],c=function(t){var n;return!!a.some(function(n){return t.pathname.startsWith("/".concat(n,"/"))})||(n=t.hostname,/^media\.[a-z0-9-]+\.com$/i.test(n)&&t.pathname.startsWith("/dam/"))},l=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.v.website;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!t)return(0,o.ZP)(t,n)(e);var r=t.startsWith("//")?"https:".concat(t):t;if(/^https?:\/\//.test(r))try{var a=new URL(r);if(c(a)){var l="".concat(a.pathname).concat(a.search).replace(/^\//,"");return"".concat(a.origin).concat((0,i.LJ)(l,e).slice(28))}}catch(t){}return(0,o.ZP)(t,n)(e)}},u=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.v.website;return t&&l(t,e)(n)||""},s=function(t){return t.endsWith(".svg")}},608053:function(t,n,e){e.d(n,{BG:function(){return c},Bx:function(){return r},nZ:function(){return o},tZ:function(){return l}});var r=function(t){return t.startsWith("#")},o=function(t){return Object.keys(t).map(function(n){return"".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(t[n]))}).join("&")},i=function(t,n,e){if(!e||r(t))return t;var o=RegExp("([?&])"+n+"=.*?(&|$)","i"),i=-1!==t.indexOf("?")?"&":"?";return t.match(o)?t.replace(o,"$1"+n+"="+e+"$2"):t+i+n+"="+e},a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,e=arguments.length>2?arguments[2]:void 0;return e.reduce(function(t,e){return i(t,e,n[e])},t)},c=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null==t?void 0:t.startsWith("Tel:"))return t;var r=function(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{},r=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.forEach(function(n){var r;r=e[n],n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r})}return t}({},e,n);return a(t,r,Object.keys(r).sort(function(t,n){return t>n?1:t<n?-1:0}))},l=function(t){var n=t.slug,e=t.id,r=t.queryParams;return a("/recipes/".concat(n,"-").concat(e),void 0===r?{}:r,["locale"])}},365769:function(t,n,e){var r=e(827378),o=e(567921),i=e.n(o),a=e(764291),c=e(581340),l=e(450979);function u(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}n.Z=function(){var t=(0,c.t)(),n=t.query,e=t.asPath,o=(null==e?void 0:e.includes("raf_lp11"))||!1;(0,r.useMemo)(function(){try{i().set(l.fv,o?"1":"0")}catch(t){}},[o]);var s=(0,a.Z)(),d=s.data,f=s.isFetching,v=s.isSuccess,p=null==d?void 0:d.plans[0],g="";if(n.mealsize){var y,h,m=function(t){if(Array.isArray(t))return t}(h=(Array.isArray(n.mealsize)?n.mealsize[0]:n.mealsize).split("-"))||function(t,n){var e,r,o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var i=[],a=!0,c=!1;try{for(o=o.call(t);!(a=(e=o.next()).done)&&(i.push(e.value),2!==i.length);a=!0);}catch(t){c=!0,r=t}finally{try{a||null==o.return||o.return()}finally{if(c)throw r}}return i}}(h,2)||function(t,n){if(t){if("string"==typeof t)return u(t,2);var e=Object.prototype.toString.call(t).slice(8,-1);if("Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return u(t,2)}}
1(h,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),b=m[0],S=m[1];g=(null==p?void 0:null===(y=p.children.find(function(t){return t.specs.meals===parseInt(b)&&t.specs.size===parseInt(S)}))||void 0===y?void 0:y.handle)||""}var P=(null==d?void 0:d.config.preferences)||[],w=g||(null==d?void 0:d.config.defaultSku)||"",C=(null==d?void 0:d.preferences)||[],_=null==d?void 0:d.config.multiplePreferences,k=(0,r.useMemo)(function(){return null==p?void 0:p.children.map(function(t){return t.handle})},[p]);return{isPlansConfigFetched:v,preferences:P,planFamily:p,presets:C,isFetching:f,defaultSku:w,multiplePreferences:_,productSkus:k}}},443742:function(t,n,e){e.d(n,{A:function(){return l}});var r=e(786282),o=e(695743),i=e(912496),a=e(365769);function c(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}var l=function(t){var n,e,l=t.couponCode,u=t.disablePPSOverri
1de,s=t.paidLP_publicId,d=t.zipcode,f=(function(t){if(Array.isArray(t))return t}(n=(0,i.I)())||function(t,n){var e,r,o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var i=[],a=!0,c=!1;try{for(o=o.call(t);!(a=(e=o.next()).done)&&(i.push(e.value),1!==i.length);a=!0);}catch(t){c=!0,r=t}finally{try{a||null==o.return||o.return()}finally{if(c)throw r}}return i}}(n,1)||function(t,n){if(t){if("string"==typeof t)return c(t,1);var e=Object.prototype.toString.call(t).slice(8,-1);if("Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return c(t,1)}}(n,1)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0].productSku,v=(0,o.z)("modular-landing-pages").data,p=(0,a.Z)(),g=p.productSkus,y=p.defaultSku,h=f||y,m=(null==v?void 0:v.pricePresentationMLP)===!0,b=!(void 0!==u&&u),S=m&&l&&(null==g?void 0:g.length)&&h&&b,P=(0,r.m)({voucherCode:l,productSkus:g||[],hf_public_id:s||"",zipcode:d},{enabled:!!S,suspense:!1,retry:3}),w=P.isSuccess,C=P.data,_=P.isLoading,k=b&&w&&h&&(null==C?void 0:null===(e=C.presets)||void 0===e?void 0:e[h]),E=b&&w&&(null==C?void 0:C.presets)&&Object.values(C.presets)[0],L=k||E||null;return{displayPricePresentation:!!(b&&w&&L),isPricePresentationLoading:_,discountCommunicationPreset:L}}},109344:function(t,n,e){var r=e(687800);e(827378);var o=e(954409),i=e(277425),a=e(318066),c=e(768587),l=e(502408);n.Z=function(t){var n=t.src,e=t.stickyBarLogoWidth,u=t.stickyBarLogoHeight,s=(0,o.D)(),d=s.name,f=s.wideLogoURL,v=s.width,p=s.height,g=n?(0,i.Z)(n):(0,i.Z)(f);return(0,r.tZ)(c.xu,{position:"relative",display:"inline-block",width:e||v,height:u||p,children:(0,r.tZ)(a.ZP,{src:g,alt:"".concat(d," Logo"),fill:!0,fetchFormat:(0,l.j)(g)?"svg":void 0})})}},963013:function(t,n,e){e.r(n),e.d(n,{default:function(){return N}});var r=e(687800),o=e(827378),i=e(632117),a=e(887824),c=e(274309),l=e(695743),u=e(443742),s=e(768587),d=e(608053),f=e(109344),v=e(200770),p=e(26730),g=function(t){var n=t.queryParams,e=t.ctaText,o=t.showStickyBarVariation,i=t.descriptionVariation,a=t.underDescriptionVariation,c=t.ctaUrl,l=t.showSpinner,u=t.displayPricePresentation,g=t.discountCommunicationPreset,y=t.stickyBarLogo,h=t.stickyBarLogoWidth,m=t.stickyBarLogoHeight,b=t.handleTracking,S=(0,v.Z)(),P=[p.Z.GB,p.Z.FR,p.Z.IT,p.Z.ES,p.Z.IE,p.Z.LU],w=c,C=null==c?void 0:c.includes("plan-recommendations"),_=P.includes(S);return C&&_&&(w=null==(w=null==c?void 0:c.replace("/pages/plan-recommendations","/plans"))?void 0:w.replace("planRecommendation=true","planRecommendation=false")),(0,r.tZ)(s.xu,{display:["none","block"],backgroundColor:"neutral.100",boxShadow:"shadow-md",children:(0,r.BX)(s.xu,{pb:"zero",pt:"zero",pl:["zero","md-1","zero"],pr:["zero","md-1","zero"],display:"flex",alignItems:"center",justifyContent:"space-between",minHeight:"70px",maxWidth:["100%","964px","1140px"],m:"auto",children:[(0,r.tZ)(f.Z,{src:y,stickyBarLogoWidth:h,stickyBarLogoHeight:m}),o&&(0,r.BX)(s.xu,{textAlign:"end",ml:"auto",mr:"sm-2",children:[l?(0,r.tZ)(s.xu,{"data-test-id":"spin-icon",children:(0,r.tZ)(s.$j,{size:"xs",variant:"primary"})}):(0,r.tZ)(s.xv,{"data-test-id":"sticky-bar-description",type:"body-md-bold",children:u?null==g?void 0:g.no_commitment_title:i}),(0,r.tZ)(s.xv,{as:"p",type:"body-sm-regular",children:a})]}),(0,r.tZ)(s.xu,{minWidth:"210px",children:(0,r.tZ)(s.rU,{"data-test-id":"sticky-bar-desktop-cta-button",href:(0,d.BG)(w,n),noStyle:!0,children:(0,r.tZ)(s.zx.Primary,{onClick:function(){return b(w)},children:e})})})]})})},y=e(361822),h=e(819783),m=e.n(h);function b(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}var S=function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200,e=function(t){if(Array.isArray(t))return t}(t=(0,o.useState)(!1))||function(t,n){var e,r,o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var i=[],a=!0,c=!1;try{for(o=o.call(t);!(a=(e=o.next()).done)&&(i.push(e.value),2!==i.length);a=!0);}catch(t){c=!0,r=t}finally{try{a||null==o.return||o.return()}finally{if(c)throw r}}return i}}(t,2)||function(t,n){if(t){if("string"==typeof t)return b(t,2);var e=Object.prototype.toString.call(t).slice(8,-1);if("Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return b(t,2)}}
1(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=e[0],i=e[1];return(0,o.useEffect)(function(){if(!r){var t=m()(function(){(document.documentElement.scrollTop||document.body.scrollTop)>=n&&i(!0)},100);return window.addEventListener("scroll",t,{passive:!0}),function(){t.cancel(),window.removeEventListener("scroll",t)}}},[r,n]),r};function P(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}var w=function(t){var n,e=(0,y.vm)(),r=e.hasHeroCta,i=e.heroCtaInView,a=S(200),c=function(t){if(Array.isArray(t))return t}(n=(0,o.useState)(!1))||function(t,n){var e,r,o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var i=[],a=!0,c=!1;try{for(o=o.call(t);!(a=(e=o.next()).done)&&(i.push(e.value),2!==i.length);a=!0);}catch(t){c=!0,r=t}finally{try{a||null==o.return||o.return()}finally{if(c)throw r}}return i}}(n,2)||function(t,n){if(t){if("string"==typeof t)return P(t,2);var e=Object.prototype.toString.call(t).slice(8,-1);if("Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return P(t,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),l=c[0],u=c[1];return(0,o.useEffect)(function(){t&&r&&i&&u(!0)},[t,r,i]),!t||(r?l&&!i:a)},C=function(t){var n=t.showStickyBarVariation,e=t.displayPricePresentation,i=t.discountCommunicationPreset,a=t.descriptionVariation,c=t.underDescriptionVariation,l=t.ctaTextMobile,u=t.ctaUrlMobile,f=t.ctaText,v=t.ctaUrl,p=t.queryParams,g=t.showSpinner,y=t.handleTracking,h=t.shouldHideUntilScroll,m=u||v,b=w(h),S=!!h&&!b,P=(0,o.useRef)(void 0),C=void 0!==P.current&&P.current!==S;return(0,o.useEffect)(function(){P.current=S},[S]),(0,r.BX)(s.xu,{"data-test-id":"sticky-bar-responsive",minHeight:"70px",textAlign:"center",position:"fixed",bottom:0,left:"50%",transform:h?"translate(-50%, ".concat(S?"100%":"0",")"):"translateX(-50%)",width:"100%",zIndex:9,backgroundColor:"neutral.100",display:[n?"flex":"block","none"],alignItems:"center",p:"global.sm-2",boxShadow:"shadow-xl",pointerEvents:S?"none":void 0,"aria-hidden":S||void 0,__dangerouslySetCustomCSS:h&&C?{"@keyframes stickyBarSlideIn":{from:{transform:"translate(-50%, 100%)"},to:{transform:"translate(-50%, 0)"}},"@keyframes stickyBarSlideOut":{from:{transform:"translate(-50%, 0)"},to:{transform:"translate(-50%, 100%)"}},animation:"".concat(S?"stickyBarSlideOut":"stickyBarSlideIn"," 0.3s ease-out")}:void 0,children:[n&&(0,r.BX)(s.xu,{textAlign:"left",mr:"auto",pr:"global.xs",children:[g?(0,r.tZ)(s.xu,{"data-test-id":"spin-icon-mobile",children:(0,r.tZ)(s.$j,{size:"xs",variant:"primary"})}):(0,r.tZ)(s.xv,{"data-test-id":"sticky-bar-mobile-description",type:"body-sm-bold",children:e?null==i?void 0:i.no_commitment_title:a}),(0,r.tZ)(s.xv,{as:"p",type:"body-sm-regular",children:c})]}),(0,r.tZ)(s.rU,{"data-test-id":"sticky-bar-mobile-cta-button",href:(0,d.BG)(m,p),noStyle:!0,children:(0,r.tZ)(s.zx.Primary,{onClick:function(){return y(m)},children:l||f})})]})},_=e(581340),k=e(567921),E=e.n(k),L=e(403647),U=e(497249);function A(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}function O(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e,r,o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var i=[],a=!0,c=!1;try{for(o=o.call(t);!(a=(e=o.next()).done)&&(i.push(e.value),!n||i.length!==n);a=!0);}catch(t){c=!0,r=t}finally{try{a||null==o.return||o.return()}finally{if(c)throw r}}return i}}(t,n)||function(t,n){if(t){if("string"==typeof t)return A(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);if("Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return A(t,n)}}
1(t,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var I="/pages/plan-recommendations",x={heroBannerSection:!1,productConfiguratorSection:!0},T=function(t){var n=t.ctaUrlSticky,e=t.ctaUrlStickyMobile,r=t.contentType,i=t.sectionId,a=(0,_.t)().asPath,c=O((0,o.useState)(n||""),2),l=c[0],u=c[1],s=O((0,o.useState)(e||""),2),d=s[0],f=s[1],v=(0,U.T)().startSpan("cta-url-redirection-to-plans"),p=E().get("hf_plan_recommendation_experiment");return(0,o.useEffect)(function(){n&&u(n),e&&f(e)},[n,e]),(0,o.useEffect)(function(){if(x[r]){var t=(p?JSON.parse(p):{}).redirectToPlansPage,o=void 0!==t&&t;u((o?null==n?void 0:n.replace(I,"/plans"):n)||""),f((o?null==e?void 0:e.replace(I,"/plans"):e)||"")}},[p,n,e,r]),{stickyCtaUrl:(0,L.K)(l,a,i,v),stickyCtaMobileUrl:(0,L.K)(d,a,i,v)}},j=e(365769),R=e(671273);function B(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}function Z(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e,r,o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var i=[],a=!0,c=!1;try{for(o=o.call(t);!(a=(e=o.next()).done)&&(i.push(e.value),!n||i.length!==n);a=!0);}catch(t){c=!0,r=t}finally{try{a||null==o.return||o.return()}finally{if(c)throw r}}return i}}(t,n)||function(t,n){if(t){if("string"==typeof t)return B(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);if("Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return B(t,n)}}(t,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var D=function(t){var n,e=t.queryParams,i=t.ctaText,d=t.ctaTextMobile,f=t.descriptionVariation,v=t.underDescriptionVariation,p=t.shouldShowMobileOnlyStickyBar,y=t.ctaUrl,h=t.ctaUrlMobile,m=t.couponCode,b=t.contentType,S=t.sectionId,P=t.stickyBarLogo,w=t.stickyBarLogoWidth,_=t.stickyBarLogoHeight,k=t.disablePPSOverride,E=t.paidLP_publicId,L=t.shouldHideUntilScroll,U=null===(n=f||v)||void 0===n?void 0:n.trim(),A=(0,j.Z)().isFetching,O=(0,l.z)("modular-landing-pages").data,I=null==O?void 0:O.usePlansConfigApi,x=(0,u.A)({couponCode:m,disablePPSOverride:k,paidLP_publicId:E}),B=x.displayPricePresentation,D=x.discountCommunicationPreset,z=x.isPricePresentationLoading,M=(0,R.h)(S,b).handleGAEventClick,F=Z((0,o.useState)(!1),2),H=F[0],N=F[1],V=Z((0,o.useState)(!1),2),$=V[0],K=V[1];(0,o.useEffect)(function(){K(!0),N(!0)},[]);var W=T({ctaUrlSticky:y,ctaUrlStickyMobile:h,contentType:b,sectionId:S}),G=W.stickyCtaUrl,q=W.stickyCtaMobileUrl,J=(0,a.Z)().push,X=function(t){M(i);var n=(0,c.IP)({ctaUrl:t||"",action:"recommendationEntryFindMyPlanSelect"});n&&J(n)},Y=!$||A||z||!H&&I;return(0,r.BX)(s.xu,{m:"zero","data-test-id":"sticky-bar",position:["static","sticky"],top:"zero",zIndex:9,children:[!p&&(0,r.tZ)(g,{queryParams:e,ctaText:i,showStickyBarVariation:U,descriptionVariation:f,underDescriptionVariation:v,ctaUrl:G,showSpinner:Y,displayPricePresentation:B,discountCommunicationPreset:D,handleTracking:X,stickyBarLogo:P,stickyBarLogoWidth:w,stickyBarLogoHeight:_}),(0,r.tZ)(C,{showStickyBarVariation:U,displayPricePresentation:B,discountCommunicationPreset:D,descriptionVariation:f,underDescriptionVariation:v,ctaTextMobile:d,ctaUrlMobile:q,showSpinner:Y,ctaText:i,ctaUrl:G,queryParams:e,handleTracking:X,shouldHideUntilScroll:L})]})},z=e(112696),M=z.z.object({sectionVariables:z.z.record(z.z.string(),z.z.unknown()),id:z.z.string().optional(),contentType:z.z.string()}),F=z.z.object({sections:z.z.array(M).optional(),pageId:z.z.string(),queryParams:z.z.custom().optional(),couponCode:z.z.string().optional().default(""),paidLP_publicId:z.z.string().optional()}),H=function(t){var n=t.sections,e=t.pageId,i=t.queryParams,a=t.couponCode,c=t.paidLP_publicId,l=(0,o.useMemo)(function(){return null==n?void 0:n.filter(function(t){var n;return(null===(n=t.sectionVariables)||void 0===n?void 0:n.showStickyBar)||"stickyBarSection"===t.contentType}).map(function(t){var n=t.sectionVariables,r=t.id;return{ctaText:null==n?void 0:n.ctaTextSticky,ctaTextMobile:null==n?void 0:n.ctaTextStickyMobile,descriptionVariation:null==n?void 0:n.descriptionVariation,underDescriptionVariation:null==n?void 0:n.underDescriptionVariation,shouldShowMobileOnlyStickyBar:null==n?void 0:n.shouldShowMobileOnlyStickyBar,ctaUrl:null==n?void 0:n.ctaUrlSticky,ctaUrlMobile:null==n?void 0:n.ctaUrlStickyMobile,pageId:e,queryParams:i,couponCode:
1a,paidLP_publicId:c,contentType:"stickyBarSection",sectionId:r||"",stickyBarLogo:null==n?void 0:n.stickyBarLogo,stickyBarLogoWidth:null==n?void 0:n.stickyBarLogoWidth,stickyBarLogoHeight:null==n?void 0:n.stickyBarLogoHeight,disablePPSOverride:null==n?void 0:n.disablePPSOverride,shouldHideUntilScroll:null==n?void 0:n.shouldHideUntilScroll}})[0]},[a,e,i,n,c]);return l?(0,r.tZ)(D,function(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{},r=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.forEach(function(n){var r;r=e[n],n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r})}return t}({},l)):null};H.displayName="StickyBar";var N=(0,i.S)(H,F,!0)},912496:function(t,n,e){e.d(n,{I:function(){return i}});var r=e(37017),o=(0,r.cn)({productSku:void 0,productPreset:void 0,familyHandle:void 0,familySize:void 0,familyMeals:void 0,planRecommendationShouldRedirectToPlans:!1,preferenceStatus:"not-selected",isPlansConfigLoading:!0}),i=function(){return(0,r.KO)(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.