1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[49779,77250,87167],{407792:function(e,t,n){n.d(t,{O:function(){return a}});var r=n(64294),o=n(827378),i=n(233477),a=function(){var e=(0,i.F)();return(0,o.useMemo)(function(){return{id:(0,r.ZP)(),attributes:e}},[e])}},553911:function(e,t,n){var r=n(687800),o=n(827378),i=n(72344),a=n(727650),c=n(497249),l=n(165218),u=n.n(l)()(function(){return Promise.resolve().then(n.bind(n,72344))},{loadableGenerated:{webpack:()=>[null]},ssr:!1});t.Z=function(e){var t,n,l=e.hasMarkdown,s=e.copy,d=e.markdownOptions,f=e.noSSR,g=e.allowedAttrs,v=e.config,b=(0,c.T)(),p="string"==typeof s?s.replace(/[ \t]{9,}/g," ".repeat(8)):s,h=(0,a.sanitize)(p,(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({ADD_ATTR:void 0===g?[]:g},void 0===v?{}:v),n=n={RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t));return((0,o.useEffect)(function(){if((s||"")!==h){var e=b.startSpan("sanitize-content-libray");e.setAttributes({"sanitize-content-libray":!0,"sanitize-error-detected":s!==h,"sanitize-message":"HTML content has been sanitized. Please check the content to ensure it is safe.","sanitize-original-content":s,"sanitize-sanitized-content":h}),e.end()}},[s,h,b]),l)?f?(0,r.tZ)(u,{options:d,children:h}):(0,r.tZ)(i.default,{options:d,children:h}):(0,r.tZ)("div",{dangerouslySetInnerHTML:{__html:h}})}},277425:function(e,t,n){var r=n(822897),o=n(543790),i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.b.cloudfront;if(t===r.b.cloudfront){var n=e.split(/\//);return n.splice(0,4),"/hellofresh_s3/".concat(n.join("/"))}if(t==r.b.everyplate_contentful){var o=e.split(/\//);return o.splice(0,4),"/everyplate_contentful/".concat(o.join("/"))}var i=e.split(/\//);return i.splice(0,3),"/hellofresh_website/".concat(i.join("/"))};t.Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.b.cloudfront;if(e=(null==e?void 0:e.startsWith("//"))?e.replace("//","https://"):e,!RegExp("^http(s)?.").test(e)&&t===r.b.cloudfront)return e.startsWith("/")?"/hellofresh_s3".concat(e):"/hellofresh_s3/".concat(e);try{var n=new URL(e);if(n.hostname.includes("cloudfront"))return i(e,r.b.cloudfront);if(n.href.includes("images.ctfassets.net/4frik3v39clf"))return i(e,r.b.everyplate_contentful);if(Object.keys(o.Z).some(function(e){return n.hostname.includes("cdn.".concat(e,".com"))})||n.hostname.includes("hf-website-live.s3-eu-west-1.amazonaws.com")||n.hostname.includes("hf-website-live.s3.eu-west-1.amazonaws.com"))return i(e,r.b.website);return n.pathname}catch(t){return e}}},228001:function(e,t,n){var r=n(827378),o=n(60074),i=n(266726),a=n.n(i),c=n(768587);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,c=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){c=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(c)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}}
1(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}t.Z=function(e){var t=u((0,r.useState)([0,0]),2),n=t[0],i=t[1],l=u(n,2),s=l[0],d=l[1],f=u((0,c.Fg)().breakpoints.map(function(e){return Number(e.slice(0,-2))}).sort(function(e,t){return e-t}),2),g=f[0],v=f[1];(0,r.useEffect)(function(){i([window.innerWidth,window.innerHeight]);var t=a()(function(){e&&o.n_({message:"debounced set size state",category:"@/libs/window-api/useWindowSize",level:"debug",data:{newWidth:window.innerWidth,newHeight:window.innerHeight,previousWidth:s,previousHeight:d}}),i([window.innerWidth,window.innerHeight])},250);return window.addEventListener("resize",t),function(){e&&o.n_({message:"removing event listener and cancelling debounced function",category:"@/libs/window-api/useWindowSize",level:"debug"}),window.removeEventListener("resize",t),t.cancel()}},[]);var b=!!s&&s<g,p=!!s&&s>=g&&s<v,h=!!s&&s>=v;return{width:s,height:d,tabletWidth:g,isMobile:b,isTablet:p,isDesktop:h}}},336490:function(e,t,n){n.d(t,{F:function(){return l},M:function(){return u}});var r=n(687800),o=n(827378),i=function(e){return"https://".concat(e,".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(e){return a.find(function(t){return t.id===(e||"").toLowerCase().replace(/\s/g,"")})||a[0]},l=(0,o.createContext)({brandData:c("hellofresh")}),u=function(e){var t=e.children,n=e.brand,i=(0,o.useMemo)(function(){return c(n)},[n]);return(0,r.tZ)(l.Provider,{value:{brandData:i},children:t})}},954409:function(e,t,n){n.d(t,{D:function(){return i}});var r=n(827378),o=n(336490),i=function(){return(0,r.useContext)(o.F).brandData||{}}},448767:function(e,t,n){n.d(t,{X:function(){return a}});var r=n(687800);n(827378);var o=n(768587),i=n(396887),a=function(e){var t=e.error,n=e.contentType,a=e.id,c=(0,i.ew)();return(null==c?void 0:c.NEXT_PUBLIC_SERVER_ENV)!=="live"&&(null==c?void 0:c.NEXT_PUBLIC_SERVER_ENV)?(0,r.tZ)(o.xu,{p:"global.xs",backgroundColor:"shared-alias.warning.background.light",children:(0,r.BX)(o.xu,{p:"global.md-1",borderColor:"shared-alias.warning.border.default",borderWidth:"0.25rem",borderStyle:"solid",children:[(0,r.tZ)(o.xv,{as:"p",styleAs:"h2",children:t.message}),(0,r.BX)(o.xv,{as:"p",styleAs:"h3",children:[(0,r.tZ)("small",{children:"Content Type:"}),"\xa0",n]}),(0,r.BX)(o.xv,{as:"p",styleAs:"h3",children:[(0,r.tZ)("small",{children:"Content ID:"}),"\xa0",a]}),(0,r.tZ)(o.xv,{as:"p",styleAs:"h3",children:(0,r.tZ)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://app.contentful.com/spaces/l52yi8w5hh4a/views/entries?searchText=".concat(a,"&contentTypeIds=").concat(n,"&displayedFieldIds=contentType"),children:"Find it on Contenful"})})]})}):null}},214744:function(e,t,n){n.d(t,{C_:function(){return u},Rr:function(){return o},So:function(){return i},_b:function(){return l},bM:function(){return r},ir:function(){return c},xr:function(){return a}});var r="FaqNavigation",o="PageLoadedWithQuestion",i="PageLoadedWithCategory",a="ClickQuestion",c="ClickCategory",l="Navigation_FirstPageVisit",u="Navigation_HomePageLoad"},759230:function(e,t,n){n.d(t,{BK:function(){return r},ld:function(){return o}}),n(210970);var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"center";e&&e.scrollIntoView({block:t,behavior:"smooth"})},o=function(e){var t=e.currentTarget;if(t.hash&&t.href&&t.href.includes(window.location.href)){e.preventDefault();var n=t.hash.replace("#","");r(document.querySelector('div[data-test-id="'.concat(n,'"]')))}}},203794:function(e,t,n){n.d(t,{E8:function(){return a},h9:function(){return c}});var r=n(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(e){return i[(e||"").toUpperCase()]||""},c=function(e,t,n,i,c){if(t)return"".concat(e).concat(t?"%":o[(n||"").toUpperCase()]||"");var l=a(n);return n===r.Z.JP&&(c=null),new Intl.NumberFormat(i,{style:"currency",currency:l,minimumFractionDigits:c>-1?c:e%1==0?0:2,maximumFractionDigits:2}).format(e)}},274309:function(e,t,n){n.d(t,{Ww:function(){return b},X6:function(){return p},mO:function(){return w},Bf:function(){return m},IP:function(){return h},Mq:function(){return y}});var r=n(203794),o=n(285804),i=n.n(o),a=n(235935),c=n.n(a),l="gaEventTrigger",u="gaEventTrigger_EE",s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"freebie_mlp_v1"===e.split("|")[1]},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"raf_lp"===e.split("|")[1]},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"raf_lp11"===e.split("|")[1]},g=function(e,t){var n=t.utm_source;return f(e)&&"share"===n},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.toLowerCase().includes("about|faq")},b=function(e,t,n){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(g(e,r)){var u=i()(Date.now()),b=c()(Date.now());return{event:l,gaEventCategory:"RAF",gaEventAction:"ClickRedeemDiscount",gaEventLabel:"Helloshare|".concat(t,"|").concat(r.c,"|").concat(u,"-W").concat(b),event_name:"RAF_RedeemDiscountClick",brand:n,tribe:"Conversions",screen:"RAF"}}return s(e)?{event:l,gaEventCategory:"RedeemFreebie",gaEventAction:"ClickViewOurPlans",gaEventLabel:t,gaEventNonInteraction:!1}:d(e)||f(e)?{event:l,gaEventCategory:"CeleryLP",gaEventAction:"ClickGetMyFreeMeal",gaEventLabel:t,gaEventNonInteraction:!1}:v(e)?{event:l,gaEventAction:"CTA",event_name:"Navigation_PageCTAclick",
1screen:"Landing Page",brand:n,tribe:"Conversions Journey",user_action:t,gaEventLabel:t,gaEventCategory:"navigation",gaEventNonInteraction:!1}:{event:l,Campaign:"LandingPageCTA-".concat(e,"-").concat(t),event_name:"Navigation_PageCTAclick",screen:"Landing Page",brand:n,tribe:"Conversions Journey",user_action:o||"LP_getStarted",gaEventCategory:"navigation",gaEventAction:"CTA",gaEventLabel:o||"LP_getStarted",gaEventNonInteraction:!1,sectionType:a||""}},p=function(e){var t,n,r=e.category,o=e.action,i=e.label,a=e.nonInteraction,c=e.fowardToWebView,u=e.eventName,s=void 0===u?"":u,d=e.userAction,f=void 0===d?"":d,g=e.position,v=void 0===g?"":g,b=e.brand,p=void 0===b?"":b,h=e.tribe,y=void 0===h?"":h,m=e.screen,w=void 0===m?"":m,O=e.elementId,E=void 0===O?"":O,P=e.preferencesSelected,j=void 0===P?"":P,S=e.faqCategory,C=void 0===S?"":S,_=e.numberOfPeople,U=void 0===_?"":_,A=(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({event:l},s&&{event_name:s},f&&{user_action:f},v&&{position:v},p&&{brand:p},y&&{tribe:y},w&&{screen:w},E&&{elementId:E},j&&{preferences_selected:j},C&&{faq_category:C},U&&{n_people:U}),n=n={gaEventCategory:r,gaEventAction:o,gaEventLabel:i,gaEventNonInteraction:void 0!==a&&a},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t);if(void 0!==c&&c){var L=new CustomEvent("webForwardedAnalyticsEvents",{detail:A});document.dispatchEvent(L)}return A},h=function(e){var t=e.ctaUrl,n=e.action,r=e.label;if(t.includes("plan-recommendations"))return p({category:"funnel",action:n,label:void 0===r?"":r,nonInteraction:!1})},y=function(e){var t=e.couponCode,n=e.product,o=e.productFamilyHandle,i=e.action,a=e.mealsPreset,c=void 0===a?"":a;if(n&&0!==Object.keys(n).length)return{event:u,gaEventCategory:"funnel",gaEventAction:i,gaEventLabel:"".concat(null==n?void 0:n.handle,"|").concat(c||"none","|").concat(t?"with-coupon":"no-coupon"),ecommerce:{click:{actionField:{currencyCode:(0,r.E8)(null==n?void 0:n.country)},products:[{name:null==n?void 0:n.name,id:null==n?void 0:n.handle,price:null==n?void 0:n.price,brand:"Hellofresh",category:o,variant:c||"none",coupon:t}]}}}},m=function(e){return p({category:"funnel",action:"multiplePreferenceSelect",label:null==e?void 0:e.join("|"),eventName:"SelectPlan_MultiplePreferenceSelect",brand:"HelloFresh",tribe:"Conversions",screen:"Plans",preferencesSelected:null==e?void 0:e.join(",")})},w=function(e){var t=e.couponCode,n=e.product,o=e.productFamilyHandle,i=e.mealsPreset,a=void 0===i?"":i,c=e.isMultiPreferences,l=void 0!==c&&c,s=e.multiPreferences,d=void 0===s?"":s;if(n&&0!==Object.keys(n).length)return{event:u,gaEventCategory:"funnel",gaEventAction:"go to cart",gaEventLabel:"".concat(null==n?void 0:n.handle,"|").concat(l?d||"none":a||"none","|").concat(t?"with-coupon":"no-coupon"),ecommerce:{currencyCode:(0,r.E8)(null==n?void 0:n.country),add:{products:[{name:null==n?void 0:n.name,id:null==n?void 0:n.handle,price:null==n?void 0:n.price,brand:"Hellofresh",category:o,variant:l?d||"none":a||"none",coupon:t,quantity:1}]}}}}},632117:function(e,t,n){n.d(t,{S:function(){return s}});var r=n(687800),o=n(827378),i=n(448767),a=n(497249),c=n(396887);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var u=function(e){var t,n=e.error,r=e.contentType,i=e.id,u=e.isSoftValidation,s=(0,c.ew)(),d=(0,a.T)(),f=function(e){if(Array.isArray(e))return e}(t=(0,o.useState)(!1))||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,c=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){c=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(c)throw r}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return l(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,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.")}(),g=f[0],v=f[1];return((0,o.useEffect)(function(){if(!g&&n){var e=d.startSpan("landing-page.section-error-display"),t={"error.message":n.message,"contentful.contentType":r,"contentful.id":i,isSoftValidation:u};e.setAttributes(t),e.end(),v(!0)}},[n,r,i,d,g,u]),(null==s?void 0:s.NEXT_PUBLIC_SERVER_ENV)!=="live"&&(null==s?void 0:s.NEXT_PUBLIC_SERVER_ENV))?{serverEnv:s,tracer:d,isSent:g,setIsSent:v}:null};function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e.displayName||e.name||"Component",a=function(a){var c=a.sectionId,l=a.contentType||o,s=t.safeParse(a);if(u({error:s.error,contentType:l,id:c||"",isSoftValidation:n}),!s.success&&!n){var d=s.error;return(0,r.tZ)(i.X,{error:d,contentType:l,id:c||""})}return(0,r.tZ)(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},n?a:s.data))};return a.displayName="ValidatedComponent:".concat(o),a}},498840:function(e,t,n){n.r(t),n.d(t,{default:function(){return z}});var r=n(687800),o=n(827378),i=n(632117),a=n(274309),c=n(214744),l=n(759230),u=n(768587),s=n(228001),d=n(887824),f=n(553911),g=n(954409),v=n(188038),b=n.n(v),p=function(e){return e.replace(/<[^>]*>/g,"").trim()},h=function(e){var t=e.faq,n=(0,o.useMemo)(function(){return t&&t.length?{"@context":"https://schema.org","@type":"FAQPage",mainEntity:t.map(function(e){var t=e.question,n=e.answer;return{"@type":"Question",name:p(t),acceptedAnswer:{"@type":"Answer",text:p(n)}}})}:null},[t]);return n?(0,r.tZ)(b(),{children:(0,r.tZ)("script",{type:"application/ld+json","data-test-id":"faq-schema",dangerouslySetInnerHTML:{__html:JSON.stringify(n)}},"faq-structured-data")}):null},y=function(e,t,n){return encodeURI("question-".concat(e.replace(/\s+/g,"-"),"-").concat(t.replace(/\s+/g,"-"),"-").concat(n))},m=function(){return window.location.hash.replace("#","").replace(/\/$/,"")},w=function(e){return null==e?void 0:e.filter(function(e){return Object.entries(e).length>0}).map(function(e){var t,n,r,o;return{answer:(null!==(r=null===(t=e.fields)||void 0===t?void 0:t.content)&&void 0!==r?r:e.content)||"",question:(null!==(o=null===(n=e.fields)||void 0===n?void 0:n.title)&&void 0!==o?o:e.title)||""}})},O=["hellofresh","factor"],E=n(793884),P=n(966622),j=n(407792),S=function(e){var t=e.id,n=e.faq,o=e.currentQuestion,i=e.toggleQuestion,s=(0,d.Z)().push,g=(0,P.py)({runUsingStatsig:!0}).track,v=(0,E.Z)(),b=(0,j.O)(),p=b.id,h=b.attributes;return(0,r.tZ)(u.xu,{padding:"xs",minWidth:["100%","764px","1140px"],children:null==n?void 0:n.map(function(e,n){var d=e.question,b=e.answer,m=y(t,d,n);return(0,r.BX)(u.UQ.Outline,{onClick:function(){window.location.hash="#".concat(m),i(m),(0,l.BK)(document.getElementById("answer-".concat(m)));var e=(0,a.X6)({category:c.bM,action:c.xr,label:m});s(e),e.gaEventNonInteraction;var t=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["gaEventNonInteraction"]);g({eventName:"".concat(c.bM,"_").concat(c.xr),eventTags:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},v,t),experimentationUserId:p,experimentationUserAttributes:h})},buttonPosition:"left",isOpen:o===m,children:[(0,r.tZ)(u.UQ.Title,{children:d}),(0,r.tZ)(u.UQ.Description,{children:(0,r.tZ)(u.xv,{type:"body-sm-regular",id:"answer-".concat(m),children:(0,r.tZ)(f.Z,{copy:b,hasMarkdown:!0})})})]},"".concat(t,"-").concat(n))})})};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var _=function(e){var t,n=e.id,i=e.title,v=e.faq,b=e.faqItems,p=(0,d.Z)().push,E=w(b)||v||[],P=(0,g.D)(),j=O.includes(P.id),_=function(e){if(Array.isArray(e))return e}(t=(0,o.useState)(""))||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,c=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){c=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(c)throw r}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return C(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C(e,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.")}(),U=_[0],A=_[1],L=(0,s.Z)(),T=L.isMobile,x=L.isTablet;return(0,o.useEffect)(function(){var e=m(),t=function(){return A(m())};return window.addEventListener("hashchange",t),e&&(A(e),(null==E?void 0:E.find(function(t,r){return y(n,t.question,r)===e}))&&(setTimeout(function(){return(0,l.BK)(document.getElementById("answer-".concat(e)))}),p((0,a.X6)({eventName:"CustomerCare_FAQOpenWithQuestion",brand:"HelloFresh",tribe:"Fulfillment",screen:"Home",faqCategory:i,category:c.bM,action:c.Rr,label:e,fowardToWebView:!0})))),function(){window.removeEventListener("hashchange",t)}},[]),(0,r.BX)(r.HY,{children:[j&&(0,r.tZ)(h,{faq:E}),(0,r.tZ)(u.xu,{display:"flex",justifyContent:"center",pb:"global.md-2",pt:"global.sm-2",children:(0,r.BX)(u.xu,{maxWidth:["100%","765px","1140px"],margin:"sm-2",children:[(0,r.tZ)(u.xv,{as:T||x?"h3":"h1",my:"sm-2",textAlign:"center",children:(0,r.tZ)(f.Z,{copy:i,hasMarkdown:!0,config:{ALLOWED_TAGS:["br","i","b"]}})}),(0,r.tZ)(S,{id:n,faq:E,toggleQuestion:function(e){return e===U?A(""):A(e)},currentQuestion:U})]})})]})},U=n(318066),A=n(277425),L=n(987167),T=n(277250),x=function(e){var t=e.id,n=e.faq,o=e.currentQuestion,i=e.toggleQuestion,s=(0,d.Z)().push,g=(0,P.py)({runUsingStatsig:!0}).track,v=(0,E.Z)(),b=(0,j.O)(),p=b.id,h=b.attributes;return(0,r.tZ)(u.xu,{children:null==n?void 0:n.map(function(e,d){var b=e.question,m=e.answer,w=y(t,b,d),O=o===w;return(0,r.BX)(u.xu,{borderBottomWidth:d<n.length-1?"1px":"0",borderBottomStyle:"solid",borderBottomColor:"global.gray.500","data-test-id":"faq-variant-item-".concat(d),children:[(0,r.BX)(u.xu,{as:"button",type:"button",display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",pt:"global.md-2",pb:"global.sm-2",backgroundColor:"transparent",borderWidth:"0",textAlign:"left",onClick:function(){window.location.hash="#".concat(w),i(w),(0,l.BK)(document.getElementById("answer-".concat(w)));var e=(0,a.X6)({category:c.bM,action:c.xr,label:w});s(e),e.gaEventNonInteraction;var t=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["gaEventNonInteraction"]);g({eventName:"".concat(c.bM,"_").concat(c.xr),eventTags:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},v,t),experimentationUserId:p,experimentationUserAttributes:h})},"aria-expanded":O,"aria-controls":"answer-".concat(w),cursor:"pointer",children:[(0,r.tZ)(u.xv,{type:"body-lg-regular",color:"global.white",children:b}),(0,r.tZ)(u.xu,{flexShrink:0,ml:"global.sm-2",color:"global.white","data-test-id":"faq-variant-item-icon-".concat(d),children:O?(0,r.tZ)(T.default,{}):(0,r.tZ)(L.default,{})})]}),O&&(0,r.tZ)(u.xu,{pb:"global.md-1",id:"answer-".concat(w),"data-test-id":"faq-variant-item-answer-".concat(d),children:(0,r.tZ)(u.xv,{type:"body-md-regular",color:"global.gray.300",children:(0,r.tZ)(f.Z,{copy:m,hasMarkdown:!0})})})]},"".concat(t,"-").concat(d))})})};function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var R=function(e){var t,n=e.id,r=e.title,i=e.faq,u=(0,d.Z)().push,s=function(e){if(Array.isArray(e))return e}(t=(0,o.useState)(""))||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,c=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){c=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(c)throw r}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return I(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I(e,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.")}(),f=s[0],g=s[1];return(0,o.useEffect)(function(){var e=m(),t=function(){return g(m())};return window.addEventListener("hashchange",t),e&&(g(e),(null==i?void 0:i.find(function(t,r){return y(n,t.question,r)===e}))&&(setTimeout(function(){return(0,l.BK)(document.getElementById("answer-".concat(e)))}),u((0,a.X6)({eventName:"CustomerCare_FAQOpenWithQuestion",brand:"HelloFresh",tribe:"Fulfillment",screen:"Home",faqCategory:r,category:c.bM,action:c.Rr,label:e,fowardToWebView:!0})))),function(){window.removeEventListener("hashchange",t)}},[]),{currentQuestion:f,toggleQuestion:function(e){return e===f?g(""):g(e)}}},Z=function(e){var t=e.id,n=e.title,o=e.faq,i=e.faqItems,a=e.mobileImageUrl,c=e.tabletImageUrl,l=e.desktopImageUrl,d=w(i)||o||[],v=(0,g.D)(),b=O.includes(v.id),p=(0,s.Z)(),y=p.isMobile,m=p.isTablet,E=R({id:t,title:n,faq:d}),P=E.currentQuestion,j=E.toggleQuestion,S=y&&a||m&&c||l;return(0,r.BX)(r.HY,{children:[b&&(0,r.tZ)(h,{faq:d}),(0,r.tZ)(u.xu,{"data-test-id":"faq-with-image-variant-container",backgroundColor:"global.black",children:(0,r.BX)(u.xu,{display:"flex",flexDirection:y?"column":"row",gap:y?"global.md-2":"global.lg-1",alignItems:y?"stretch":"center",maxWidth:["100%","900px","1200px"],mx:"auto",px:["global.sm-2","global.sm-2","global.none"],py:["global.lg-1","global.lg-2","global.xl-1"],children:[S&&(0,r.tZ)(u.xu,{width:y?"100%":"50%",minWidth:"0",children:(0,r.tZ)(U.ZP,{src:(0,A.Z)(S),alt:"",width:570,height:570,objectFit:"cover",layout:"responsive",style:{borderRadius:"16px"},"data-test-id":"faq-variant-image"})}),(0,r.BX)(u.xu,{width:y?"100%":"50%",minWidth:"0",children:[(0,r.tZ)(u.xv,{as:"h1",my:["global.sm-1","global.xs","global.md-1"],color:"global.white","data-test-id":"faq-variant-title-mobile",children:(0,r.tZ)(f.Z,{copy:n,hasMarkdown:!0,config:{ALLOWED_TAGS:["br","i","b"]}})}),(0,r.tZ)(x,{id:t,faq:d,toggleQuestion:j,currentQuestion:P})]})]})})]})};Z.displayName="WithImageVariant";var D=n(112696),k=D.z.object({question:D.z.string().min(1,"Question is required"),answer:D.z.string().min(1,"Answer is required")}),N=D.z.object({fields:D.z.object({title:D.z.string(),content:D.z.string()}).optional(),title:D.z.string().optional(),content:D.z.string().optional()}),q=D.z.union([D.z.enum(["Default","WithImage"]),D.z.array(D.z.enum(["Default","WithImage"]))]).optional(),F=D.z.object({id:D.z.string().min(1,"ID is required"),title:D.z.string().min(1,"Title is required"),faq:D.z.array(k).optional(),faqItems:D.z.array(N).optional(),layoutVariant:q,mobileImageUrl:D.z.string().optional(),tabletImageUrl:D.z.string().optional(),desktopImageUrl:D.z.string().optional()});function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}var B=function(e){return"WithImage"===e.layoutVariant?(0,r.tZ)(Z,M({},e)):(0,r.tZ)(_,M({},e))};B.displayName="FAQSection";var z=(0,i.S)(B,F,!0)},277250:function(e,t,n){n.r(t);var r=n(687800);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function i(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n}
1)(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}n(827378),t.default=function(e){var t=e.title,n=e.titleId,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["title","titleId"]);return(0,r.BX)("svg",i(o(i(o({width:"1.5rem",height:"1.5rem",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:t?"img":"graphics-symbol",color:"inherit","aria-hidden":!t},!t&&{focusable:!1}),{"aria-labelledby":n}),a),{children:[t?(0,r.tZ)("title",{id:n,children:t}):null,(0,r.tZ)("path",{d:"M3 11v2h18v-2H3Z",fill:"currentColor"})]}))}},987167:function(e,t,n){n.r(t);var r=n(687800);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function i(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}n(827378),t.default=function(e){var t=e.title,n=e.titleId,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["title","titleId"]);return(0,r.BX)("svg",i(o(i(o({width:"1.5rem",height:"1.5rem",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:t?"img":"graphics-symbol",color:"inherit","aria-hidden":!t},!t&&{focusable:!1}),{"aria-labelledby":n}),a),{children:[t?(0,r.tZ)("title",{id:n,children:t}):null,(0,r.tZ)("path",{d:"M13 3h-2v8H3v2h8v8h2v-8h8v-2h-8V3Z",fill:"currentColor"})]}))}}}]);
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.