PageSourceSearch

https://www.hellofresh.lu/_next/static/chunks/pages/landing-pages/%5B...page%5D-2965a9fd86a8167f.js

js hellofresh.lu collected 2026-10-04 15:27:41 UTC 165,737 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[81247,86282,90520,37507],{612173:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/landing-pages/[...page]",function(){return n(937958)}])},520578:function(e,t,n){"use strict";n.d(t,{n:function(){return r}});var r=function(e){var t;return!e||e.planCreationAllowed?"none":null!==(t=e.redirect)&&void 0!==t?t:"none"}},953142:function(e,t,n){"use strict";n.d(t,{y:function(){return a}});var r=n(463171),i=n(681335),o=n(520578),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.enabled,n=(0,r.Z)("plans-4848_consumer-core_subscription-endpoint_use-plans-api"),a=n.isEnabled,l=n.isReady,c=a&&(void 0===t||t),u=(0,i.kH)({},{suspense:!1,enabled:c}),s=u.data,d=u.isSuccess,f=u.isError,p=u.isFetched;return{isFeatureFlagReady:l,isCheckoutStatusEnabled:a,shouldUseCheckoutStatusEndpoint:c,checkoutRedirect:f?"home":(0,o.n)(s),isCheckoutStatusSuccess:d,isCheckoutStatusError:f,isCheckoutStatusFetched:p,data:s}}},747012:function(e,t,n){"use strict";n.d(t,{Sj:function(){return v},h5:function(){return p},rm:function(){return b}});var r,i,o=n(671718),a=n(26124),l=n(447178),c=n(456552),u=n(699219),s=n(140224);function d(e,t,n,r,i,o,a){try{var l=e[o](a),c=l.value}catch(e){n(e);return}l.done?t(c):Promise.resolve(c).then(r,i)}function f(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 p=(r=function(e,t){var n,r,i,a,l,c,u,s,d,p,v,b,g,m,y,h,_=arguments;return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}(this,function(w){switch(w.label){case 0:n=_.length>2&&void 0!==_[2]?_[2]:o.Z,r=e.postcode,a=void 0===(i=e.numDeliveries)?4:i,l=e.locale,c=e.systemCountry,u=e.parentSpan,s=e.initialOrder,d=e.customerPriority,p=e.cutoffTimeThreshold,v=e.customerJourney,b=e.customerUUID,g=e,m=e,g.family&&(y=g.family),m.product&&(h=m.product),w.label=1;case 1:return w.trys.push([1,3,,4]),[4,n("/api/delivery_dates_options",t,{query:f({zip:r,numDeliveries:a,locale:l,country:c},y?{family:y}:{},h?{product:h}:{},s?{initialOrder:s}:{},d?{customerPriority:d}:{},p?{cutoffTimeThreshold:p}:{},v?{customerJourney:v}:{}),parentSpan:u,headers:f({},b?{"X-Customer-UUID":b}:{}),fetchSpanAttributes:{"request.backend_service":"delivery-options-service","request.backend_action":"get-delivery-options-by-postcode"}})];case 2:return[2,w.sent().json()];case 3:throw w.sent();case 4:return[2]}})},i=function(){var e=this,t=arguments;return new Promise(function(n,i){var o=r.apply(e,t);function a(e){d(o,n,i,a,l,"next",e)}function l(e){d(o,n,i,a,l,"throw",e)}a(void 0)})},function(e,t){return i.apply(this,arguments)}),v=function(e,t){var n=f({},e,(0,s.O)()),r=[u.Z["delivery-options.byPostcode"],n];return(0,a.Z)(r,function(e){return p(n,r,e)},t)},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=(0,l.Z)().fetch,n=(0,s.O)();return(0,c.useQueries)(null==e?void 0:e.map(function(e,r){var i,o,a=(i=f({},e,n),o=o={key:r},Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(o)):(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(o)).forEach(function(e){Object.defineProperty(i,e,Object.getOwnPropertyDescriptor(o,e))}),i),l=[u.Z["delivery-options.byPostcode.multiple"],a];return{queryKey:l,queryFn:function(){return p(a,l,t)},enabled:!!e.postcode}}))}},254350:function(e,t,n){"use strict";n.d(t,{Qv:function(){return c}});var r=n(827378),i=n(783244);function o(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 a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(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 o(e,t)}}(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.")}()}var l=function(e){if(!e)return{};try{var t=JSON.parse(e);return(void 0===t?"undefined":t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)=="object"&&null!==t?t:{}}catch(e){return{}}},c=function(){var e=a((0,i.Z)("hf_funnel_tracking",{expiresIn:86400}),2),t=e[0],n=e[1];return{tracking:(0,r.useMemo)(function(){return l(t)},[t]),mergeTracking:(0,r.useCallback)(function(e){var r=Object.fromEntries(Object.entries(e).filter(function(e){return!!a(e,2)[1]}));if(0!==Object.keys(r).length){var i=JSON.stringify(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}({},l(t),r));i!==t&&n(i)}},[t,n])}}},107135:function(e,t,n){"use strict";n.d(t,{i:function(){return d}});var r=n(567921),i=n.n(r),o=n(647220),a=n(267596),l=n(254350);function c(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 u=a.Hi,s={collectionId:null,collectionFieldsId:null,pageVariationId:null,pageVariationFieldsId:null},d=function(){var e=(0,o.e)(),t=(0,l.Qv)().tracking;if(!e)return c({funnelId:null,visitId:null,funnelName:null},s);var n=i().get(u);if(!n)return c({funnelId:null,visitId:null,funnelName:null},s);var r=(0,a.Jt)(n);return r?{funnelId:r.funnel_id||null,visitId:r.visit_id||t.visitId||null,funnelName:r.funnel_name||null,collectionId:r.collection_id||null,collectionFieldsId:t.collectionFieldsId||null,pageVariationId:t.pageVariationId||null,pageVariationFieldsId:t.pageVariationFieldsId||null}:c({funnelId:n,visitId:null,funnelName:null},s)}},182646:function(e,t,n){"use strict";n.d(t,{e:function(){return s}});var r=n(827378),i=n(567921),o=n.n(i),a=n(267596),l=n(254350);function c(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 u=a.Hi,s=function(e,t,n,i){var s=(0,l.Qv)().mergeTracking;(0,r.useEffect)(function(){if(n&&e||i){var r,l,d,f,p,v,b=null!==(p=(0,a.Jt)(o().get(u)))&&void 0!==p?p:null,g=null!==(v=null==i?void 0:i.collection_id)&&void 0!==v?v:null==b?void 0:b.collection_id,m=!!i||(null==b?void 0:b.collection_id)!==void 0,y=c((r=c({},m?{}:{funnel_id:e||void 0}),l=l={visit_id:t||void 0},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):(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(l)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(l,e))}),r),m?{}:{funnel_name:n||void 0},m?{collection_id:null!=g?g:null}:{});s({visitId:t,collectionFieldsId:null==i?void 0:i.collection_fields_id,pageVariationId:null==i?void 0:i.page_variation_id,pageVariationFieldsId:null==i?void 0:i.page_variation_fields_id});var h=(d=null==b?void 0:b.collection_id,!!(f=null==i?void 0:i.collection_id)&&!d&&!!f);if(b){var _=!b.visit_id&&!!t,w=b.funnel_name!==y.funnel_name,O=!!i&&(null==b?void 0:b.collection_id)===void 0;if(!_&&!w&&!O&&!h)return}try{o().set(u,(0,a._K)(y),{expires:1})}catch(e){console.error("Failed to store funnel data in cookies:",e)}}},[e,t,n,i,s])}},786282:function(e,t,n){"use strict";n.d(t,{m:function(){return k}});var r,i,o=n(827378),a=n(567921),l=n.n(a),c=n(581340),u=n(671718),s=n(26124),d=n(783244);function f(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 p=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=(0,c.t)().asPath,r=(function(e){if(Array.isArray(e))return e}(e=(0,d.Z)("hf_goals_plan_sku_cookie")||[""])||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),1!==o.length);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw r}}return o}}(e,1)||function(e,t){if(e){if("string"==typeof e)return f(e,1);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 f(e,1)}}(e,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],i=l().get("hf_ssr_stored_sku"),a=null==n?void 0:n.includes("/reactivat");return(0,o.useMemo)(function(){var e=null!=i?i:r,n=t.filter(function(e){return e&&"string"==typeof e});if(a&&n.length>0)return n;if(e&&"string"==typeof e&&n.length>0){var o=e.split("-").slice(0,2).join("-"),l=n.filter(function(e){return e.split("-").slice(0,2).join("-")===o});if(l.length>0){var c=new Set(l);return c.add(e),Array.from(c)}}return e&&"string"==typeof e?[e]:n.length>0?n:[]},[i,r,t,a])},v=n(140224),b=n(699219),g=function(e){var t=e.voucherCode,n=e.productSkus,r=e.locale,i=e.systemCountry,o=e.discountCommunicationId,a=e.zipcode,l=e.hf_public_id,c=e.checkoutType;return[b.Z["price-presentation.discountCommunication"],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}({voucherCode:t,productSkus:n,locale:r,systemCountry:i,hf_public_id:l},o&&{discountCommunicationId:o},a&&{zipcode:a},c&&{checkoutType:c})]},m=n(870771),y=n(364468),h=n(64294);function _(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 w(e,t,n,r,i,o,a){try{var l=e[o](a),c=l.value}catch(e){n(e);return}l.done?t(c):Promise.resolve(c).then(r,i)}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 P(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}var S=(r=function(e,t){var n,r,i,o,a,l,c,s,d,f=arguments;return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}(this,function(p){switch(p.label){case 0:return n=e.voucherCode,r=e.productSkus,i=e.systemCountry,o=e.locale,a=e.parentSpan,l=e.discountCommunicationId,c=e.zipcode,s=e.hf_public_id,d=e.checkoutType,[4,(f.length>2&&void 0!==f[2]?f[2]:u.Z)("/price-presentation/v2/discount_communication/voucher/".concat(n),t,{query:O({country:i,locale:o,skus:r.join(","),dc_id:l||"",zipcode:c||"",hf_public_id:s||""},void 0!==d&&{checkout_type:d}),parentSpan:a,fetchSpanAttributes:{"request.backend_service":"price-presentation-service","request.backend_action":"get-voucher-discount-communication",discountCommunicationId:l,voucherCode:n}})];case 1:return[2,p.sent().json()]}})},i=function(){var e=this,t=arguments;return new Promise(function(n,i){var o=r.apply(e,t);function a(e){w(o,n,i,a,l,"next",e)}function l(e){w(o,n,i,a,l,"throw",e)}a(void 0)})},function(e,t){return i.apply(this,arguments)}),k=function(e,t){var n,r,i,a=p(e.productSkus),u=(0,c.t)().asPath,f=(function(e){if(Array.isArray(e))return e}(n=(0,d.Z)(m.gi)||[""])||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),1!==o.length);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw r}}return o}}(n,1)||function(e,t){if(e){if("string"==typeof e)return _(e,1);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 _(e,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],b=(0,o.useMemo)(function(){var e;return(null===(e=l().get("hf_discount_comm_id"))||void 0===e?void 0:e.trim())||""},[]),w=new URLSearchParams((null==u?void 0:u.split("?")[1])||""),k=w&&(null===(r=w.get("discount_comm_id"))||void 0===r?void 0:r.trim())||b||e.discountCommunicationId,E=e.zipcode||f,Z=(0,y.Z)().isEnabled,j=(0,o.useMemo)(function(){return l().get(m.m4)},[]),x=(0,o.useMemo)(function(){return j||(0,h.ZP)()},[j]),I=O(P(O(P(O({},e),{productSkus:a}),(0,v.O)()),{discountCommunicationId:e.ignoreDiscountCommId?void 0:k}),E&&{zipcode:E},x&&{hf_public_id:x}),C=g(I),A="string"==typeof e.voucherCode&&e.voucherCode.length>0,T=(null===(i=null==t?void 0:t.enabled)||void 0===i||i)&&A&&a.length>0&&(!Z||!!E);return(0,s.Z)(C,function(e){if(Z&&!E)throw Error("Zipcode is required for price presentation with regional pricing enabled");return S(I,C,e)},P(O({},t),{enabled:T}))}},364468:function(e,t,n){"use strict";var r=n(463171),i=n(870771);t.Z=function(){var e=(null===r.Z||void 0===r.Z?void 0:(0,r.Z)(i.Fv))||{isEnabled:!1,isReady:!0};return{isEnabled:e.isEnabled,isReady:e.isReady}}},440492:function(e,t,n){"use strict";n.d(t,{W:function(){return v}});var r,i,o=n(671718),a=n(26124),l=n(463171),c=n(808215),u=(n(874570),n(140224)),s=n(699219);function d(e,t,n,r,i,o,a){try{var l=e[o](a),c=l.value}catch(e){n(e);return}l.done?t(c):Promise.resolve(c).then(r,i)}function f(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 p=(r=function(e,t){var n,r,i,a,l,c=arguments;return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;
1function l(o){return function(l){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}(this,function(u){switch(u.label){case 0:var s,d;return n=c.length>2&&void 0!==c[2]?c[2]:o.Z,r=e.parentSpan,a=void 0===(i=e.subscription_id)?0:i,[4,n("/voucher/validate",t,{method:"POST",data:(s=f({},l=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["parentSpan","subscription_id"])),d=d={subscription_id:a},Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(d)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(d)).forEach(function(e){Object.defineProperty(s,e,Object.getOwnPropertyDescriptor(d,e))}),s),parentSpan:r,fetchSpanAttributes:{"request.backend_service":"voucher-validation-service","request.backend_action":"voucher-validation",voucherCode:l.code}})];case 1:return[2,u.sent().json()]}})},i=function(){var e=this,t=arguments;return new Promise(function(n,i){var o=r.apply(e,t);function a(e){d(o,n,i,a,l,"next",e)}function l(e){d(o,n,i,a,l,"throw",e)}a(void 0)})},function(e,t){return i.apply(this,arguments)}),v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=f({},e,(0,u.O)());(0,l.Z)("mnlth-1166_voucher-validate-attachment-migration"),(0,c.Z)();var r=[s.Z["voucher.validate"],n];return(0,a.Z)(r,function(e){return p(n,r,e)},t)}},874570:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var l=e[o](a),c=l.value}catch(e){n(e);return}l.done?t(c):Promise.resolve(c).then(r,i)}function i(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}n.d(t,{L:function(){return f}});var o,a,l=function(e){if(!e)return"";var t=e.toLowerCase();return"percentage"===t?"percent":t},c=function(e){var t;return{code:e.code,order_status:e.order_status||"",template_type:"",discount_type:l(e.discount_type),discount_value:e.discount_value,skus_to_apply:e.available_products||[],applicable_to:"",apply_to_shipping:!1,is_helloshare:e.is_helloshare||!1,is_hellocredit:e.is_hellocredit||!1,coupon_category:0,is_refundable:!1,use_remaining_as_credit:!1,shipping_amount:e.shipping_amount||0,success_message:e.success_message||"",box_count:(null===(t=e.discount_settings)||void 0===t?void 0:t.box_count)||0}},u=[{category:"notFound",detail:"distributableReferenceUnknown",errorCode:"1011",fallbackMsg:"Voucher code does not exist"},{category:"failedPrecondition",detail:"alreadyAttached",errorCode:"1012",fallbackMsg:"Voucher already applied"},{category:"failedPrecondition",detail:"customerAttachmentLimitRuleError",errorCode:"1002",fallbackMsg:"Customer attachment limit reached"},{category:"failedPrecondition",detail:"planAttachmentLimitRuleError",errorCode:"1002",fallbackMsg:"Plan attachment limit reached"},{category:"failedPrecondition",detail:"planStatusRuleError",errorCode:"1002",fallbackMsg:"Invalid plan status for voucher"},{category:"failedPrecondition",detail:"planCanceledRuleError",errorCode:"1002",fallbackMsg:"Plan is canceled"},{category:"invalidArgument",detail:null,errorCode:"1002",fallbackMsg:"Invalid request"}],s=function(e){try{var t=JSON.parse(e),n=t.message||"",r=n.match(/VVS responded with \d+:\s*([\s\S]+)/);if(r)try{var o=JSON.parse(r[1]);if(void 0!==o.error_code)return{error_code:String(o.error_code),msg:o.msg||""}}catch(e){}var a=u.find(function(e){var n=e.category,r=e.detail,o=t[n];return!!o&&(!r||(void 0===o?"undefined":i(o))==="object"&&null!==o&&r in o)});if(a)return{error_code:a.errorCode,msg:n||a.fallbackMsg};return{error_code:"",msg:n||"Validation failed"}}catch(e){return{error_code:"",msg:"Unknown error"}}},d=function(e){if(e&&(void 0===e?"undefined":i(e))==="object"&&"responseResult"in e&&e.responseResult){var t=s(e.responseResult);e.responseResult=JSON.stringify(t)}return e},f=(o=function(e,t,n){var r,i,o,a,l,u,s;return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;
1function l(o){return function(l){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}(this,function(f){switch(f.label){case 0:r=e.code,i=e.brand,o=e.regionCode,a=e.customerId,l=e.customerPlanId,u=e.parentSpan,s=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}({distributableReference:{voucher:{businessDivision:{brand:i,regionCode:o},reference:r}}},a&&{customerId:a},l&&{customerPlanId:l}),f.label=1;case 1:return f.trys.push([1,3,,4]),[4,n("/benefit-distribution/v1/validate-attachment",t,{method:"POST",data:s,parentSpan:u,fetchSpanAttributes:{"request.backend_service":"benefit-distribution","request.backend_action":"validate-attachment",voucherCode:r}})];case 2:return f.sent(),[3,4];case 3:throw d(f.sent());case 4:return[4,n("/vouchers/".concat(r),t,{method:"GET",query:{country:e.systemCountry,locale:e.locale},parentSpan:u,fetchSpanAttributes:{"request.backend_service":"voucher-validation-service","request.backend_action":"voucher-details-after-validation",voucherCode:r}})];case 5:return[4,f.sent().json()];case 6:return[2,c(f.sent())]}})},a=function(){var e=this,t=arguments;return new Promise(function(n,i){var a=o.apply(e,t);function l(e){r(a,n,i,l,c,"next",e)}function c(e){r(a,n,i,l,c,"throw",e)}l(void 0)})},function(e,t,n){return a.apply(this,arguments)})},650603:function(e,t,n){"use strict";n.d(t,{Cp:function(){return x}});var r=n(687800);n(827378);var i=n(165218),o=n.n(i),a=n(768587),l=n(313954),c=n(43011),u=n(602307),s=n(169821),d=n(184883),f=n(493757),p=n(506685),v=n(430959),b=n(132021),g=n(763724),m=n(377380),y=n(589902),h=n(694414),_=n(389073),w=n(52566),O=n(481248);function P(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 S(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}var k=o()(function(){return Promise.all([n.e(40412),n.e(46045),n.e(35919)]).then(n.bind(n,635919)).then(function(e){return e.LeadBarFeature})},{loadableGenerated:{webpack:()=>[635919]}}),E=o()(function(){return Promise.all([n.e(40412),n.e(15863),n.e(50883)]).then(n.bind(n,875536)).then(function(e){return e.FooterFeature})},{loadableGenerated:{webpack:()=>[875536]}}),Z="56px",j=function(e){var t,n=e.enableSSRCustomerHeader,i=e.nonStickyDesktopHeader,o=e.disableHeader,b=e.disableFooter,g=e.disableMinHeight,P=e.headerFullWidth,S=e.ssrPayload,j=e.children,x=(0,c.Z)();return(0,r.tZ)(u.Z,{claim:{name:"activations-rte",githubTeam:"hellofresh/activations-rte",tribe:"conversions",alliance:"growth",jiraPrefix:"USCRO",slackChannel:"#squad-curation",slackAlertsChannel:"#squad-curation",skipLabelsOnPR:!1,teamIdentifier:"activations-rte"},children:(0,r.tZ)(d.Z,{scope:"universal-layout",children:(0,r.tZ)(l.Z,{componentName:"universal-layout",children:(0,r.tZ)(v.Z,{filtrationIdentifier:null!==(t=null==S?void 0:S.filtrationIdentifier)&&void 0!==t?t:"",children:(0,r.BX)(a.xu,{position:"relative","data-test-id":"universal-layout",backgroundColor:"alias.page-background.alternative",children:[(0,r.tZ)(d.Z,{scope:"layouts-universal-top-banner",children:(0,r.tZ)(l.Z,{componentName:"layouts-universal-top-banner",children:(0,r.tZ)(f.Z,{children:(0,r.tZ)(s.Z,{suspense:!0,children:(0,r.tZ)(p.Z,{})})})})}),!(void 0!==o&&o)&&(0,r.tZ)(d.Z,{scope:"layouts-universal-header",children:(0,r.BX)(l.Z,{componentName:"layouts-universal-header",children:[(0,r.tZ)(O.Z,{}),(0,r.tZ)(w.D9,{fullWidth:void 0!==P&&P,children:(0,r.tZ)(a.xu,{position:["sticky",void 0!==i&&i?"relative":"sticky"],top:"0",zIndex:"115",minHeight:Z,"data-test-id":"universal-layout-header-container",children:(0,r.tZ)(m.ZP,{queryKey:S.contentfulHeaderEntriesKey,children:void 0!==n&&n||x?(0,r.tZ)(_.default,{}):(0,r.tZ)(h.Z,{})})})})]})}),(0,r.tZ)(l.Z,{componentName:"layouts-universal-page",children:(0,r.tZ)(a.xu,{flex:"1",minHeight:void 0!==g&&g?"unset":"100vh",children:j})}),!(void 0!==b&&b)&&(0,r.tZ)(d.Z,{scope:"layouts-universal-footer",children:(0,r.BX)(l.Z,{componentName:"layouts-universal-footer",children:[(0,r.tZ)(k,{}),(0,r.tZ)(y.ZP,{queryKey:S.contentfulFooterEntriesKey,children:(0,r.tZ)(E,{})})]})})]})})})})})},x=function(e){var t=e.navigationComponent,n=e.children,i=e.disableHeader,o=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["navigationComponent","children","disableHeader"]);return(0,r.tZ)(u.Z,{claim:{name:"activations-rte",githubTeam:"hellofresh/activations-rte",tribe:"conversions",alliance:"growth",jiraPrefix:"USCRO",slackChannel:"#squad-curation",slackAlertsChannel:"#squad-curation",skipLabelsOnPR:!1,teamIdentifier:"activations-rte"},children:(0,r.tZ)(d.Z,{scope:"side-navigation-universal-layout",children:(0,r.tZ)(l.Z,{componentName:"layouts-universal-side-navigation",children:(0,r.BX)(j,S(P({},o),{disableHeader:i,children:[(0,r.tZ)(a.xu,S(P({position:"sticky",zIndex:2},!i&&{top:Z}),{children:(0,r.tZ)(d.Z,{scope:"layouts-universal-notifications",children:(0,r.tZ)(l.Z,{componentName:"layouts-universal-notifications",children:(0,r.tZ)(b.Z,{children:(0,r.tZ)(g.Z,{})})})})})),(0,r.BX)(a.xu,{minHeight:"100vh",display:[null,"flex"],maxWidth:["100%","960px","1144px"],px:["xs","md-1","zero"],mx:"auto",pt:["sm-1","md-2"],children:[(0,r.tZ)(a.xu,{as:"aside",width:[1,1/4],mr:["zero","md-1","md-2"],children:t}),(0,r.tZ)(a.xu,{width:[1,3/4],children:n})]})]}))})})})};t.ZP=j},308246:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var l=e[o](a),c=l.value}catch(e){n(e);return}l.done?t(c):Promise.resolve(c).then(r,i)}n.d(t,{Gs:function(){return a},Lk:function(){return l}});var i,o=(0,n(575085).Z)("hf.behamic-script.config",(i=function(){return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;
1function l(o){return function(l){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}(this,function(e){return[2,n.e(36220).then(n.bind(n,636220))]})},function(){var e=this,t=arguments;return new Promise(function(n,o){var a=i.apply(e,t);function l(e){r(a,n,o,l,c,"next",e)}function c(e){r(a,n,o,l,c,"throw",e)}l(void 0)})})),a=o.ProjectConfigProvider,l=(o.configMiddleware,o.useConfig)},394545:function(e,t,n){"use strict";n.d(t,{Ch:function(){return i}});var r=n(165218),i=n.n(r)()(function(){return n.e(78445).then(n.bind(n,581067))},{loadableGenerated:{webpack:()=>[581067]},loading:function(){return null},ssr:!1})},377380:function(e,t,n){"use strict";n.d(t,{yY:function(){return u}});var r=n(687800),i=n(827378),o=n(456552),a=n(497249),l=n(344884),c=(0,i.createContext)({segment:[],label:[]}),u=function(){return(0,i.useContext)(c)};t.ZP=function(e){var t=e.queryKey,n=e.children,u=(0,o.useQueryClient)(),s=(0,a.T)(),d=(0,i.useMemo)(function(){var e,n,r=u.getQueryData(t);return{segment:null!==(e=null==r?void 0:r.segment)&&void 0!==e?e:[],label:null!==(n=null==r?void 0:r.label)&&void 0!==n?n:[]}},[u,t]);return(0,i.useEffect)(function(){if(!d.segment.length||!d.label.length){var e=s.startSpan("contentful-header-provider.missing-data");e.setAttributes({segmentCount:d.segment.length,labelCount:d.label.length}),e.setStatus({code:l.Z.ERROR}).end()}},[d,s]),(0,r.tZ)(c.Provider,{value:d,children:n})}},267596:function(e,t,n){"use strict";n.d(t,{Hi:function(){return r},Jt:function(){return c},_K:function(){return o}});var r="hf_ssr_cross_page_funnel_id",i={funnel_id:"fi",visit_id:"v",funnel_name:"fn",collection_id:"ci"},o=function(e){var t={};
1return Object.keys(i).forEach(function(n){void 0!==e[n]&&(t[i[n]]=e[n])}),JSON.stringify(t)},a=function(e){try{var t=JSON.parse(e);if((void 0===t?"undefined":t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)=="object"&&null!==t&&!Array.isArray(t))return t}catch(e){}},l=function(e){var t=a(e);if(t)return t;try{return a(decodeURIComponent(e))}catch(e){return}},c=function(e){if(e){var t=l(e);if(t){var n={};return Object.keys(i).forEach(function(e){var r=i[e];r in t&&(n[e]=t[r])}),n}}}},932066:function(e,t,n){"use strict";n.d(t,{x:function(){return i}});var r=n(687800),i=(0,n(827378).createContext)({funnelId:null,visitId:null,funnelName:null,collection:null});t.Z=function(e){var t=e.funnelId,n=e.visitId,o=e.funnelName,a=e.collection,l=e.children;return(0,r.tZ)(i.Provider,{value:{funnelId:t,visitId:void 0===n?null:n,funnelName:void 0===o?null:o,collection:void 0===a?null:a},children:l})}},957711:function(e,t,n){"use strict";var r=n(827378),i=n(567921),o=n.n(i),a=n(932066),l=n(107135),c=n(267596),u=function(){var e;return(null===(e=(0,c.Jt)(o().get(c.Hi)))||void 0===e?void 0:e.visit_id)||null};t.Z=function(){var e,t,n,i,o,c,s,d,f,p,v,b,g,m,y=(0,r.useContext)(a.x),h=(0,l.i)(),_=null!==(c=null!==(o=h.collectionId)&&void 0!==o?o:null===(e=y.collection)||void 0===e?void 0:e.collectionId)&&void 0!==c?c:null,w=null!==(d=null!==(s=h.collectionFieldsId)&&void 0!==s?s:null===(t=y.collection)||void 0===t?void 0:t.collectionFieldsId)&&void 0!==d?d:null,O=null!==(p=null!==(f=h.pageVariationId)&&void 0!==f?f:null===(n=y.collection)||void 0===n?void 0:n.pageVariationId)&&void 0!==p?p:null,P=null!==(b=null!==(v=h.pageVariationFieldsId)&&void 0!==v?v:null===(i=y.collection)||void 0===i?void 0:i.pageVariationFieldsId)&&void 0!==b?b:null,S=!!(_||O||w||P);return{funnelId:S?null:null!==(g=y.funnelId)&&void 0!==g?g:h.funnelId,visitId:u(),funnelName:S?null:null!==(m=y.funnelName)&&void 0!==m?m:h.funnelName,collectionId:_,collectionFieldsId:w,pageVariationId:O,pageVariationFieldsId:P}}},409862:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var r=n(827378),i=n(957711),o=function(){var e=(0,i.Z)(),t=e.funnelId,n=e.visitId,o=e.funnelName,a=e.collectionId,l=e.collectionFieldsId,c=e.pageVariationId,u=e.pageVariationFieldsId,s=!!(a||c||l||u);return{funnelTrackingFields:(0,r.useMemo)(function(){return 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}({},t&&!s?{funnel_id:t}:{},n?{visit_id:n}:{},o&&!s?{funnel_name:o}:{},a?{collection_id:a}:{},l?{collection_fields_id:l}:{},c?{page_variation_id:c}:{},u?{page_variation_fields_id:u}:{})},[t,n,o,a,l,c,u,s]),funnelId:t,visitId:n,funnelName:o,collectionId:a,collectionFieldsId:l,pageVariationId:c,pageVariationFieldsId:u}}},923572:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var l=e[o](a),c=l.value}catch(e){n(e);return}l.done?t(c):Promise.resolve(c).then(r,i)}n.d(t,{dv:function(){return l},tr:function(){return a}});var i,o=(0,n(575085).Z)("hf.hubspot-script.config",(i=function(){return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}(this,function(e){return[2,n.e(85112).then(n.bind(n,485112))]})},function(){var e=this,t=arguments;return new Promise(function(n,o){var a=i.apply(e,t);function l(e){r(a,n,o,l,c,"next",e)}function c(e){r(a,n,o,l,c,"throw",e)}l(void 0)})})),a=o.ProjectConfigProvider,l=(o.configMiddleware,o.useConfig)},10362:function(e,t,n){"use strict";n.d(t,{n:function(){return i}});var r=n(687800),i=(0,n(827378).createContext)("");t.Z=function(e){var t=e.IPCountry,n=e.children;return(0,r.tZ)(i.Provider,{value:t,children:n})}},46864:function(e,t,n){"use strict";n.d(t,{G:function(){return a}});var r=n(26730),i=n(839444);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=function(){var e;return o(e={},r.Z.AO,[{locale:i.Z.enAU,name:"English",default:!0}]),o(e,r.Z.AT,[{locale:i.Z.deAT,name:"Deutsch",default:!0}]),o(e,r.Z.AU,[{locale:i.Z.enAU,name:"English",default:!0}]),o(e,r.Z.BE,[{locale:i.Z.nlBE,name:"Nederlands",default:!0},{locale:i.Z.frBE,name:"Fran\xe7ais",default:!1}]),o(e,r.Z.CA,[{locale:i.Z.enCA,name:"English",default:!0},{locale:i.Z.frCA,name:"Fran\xe7ais",default:!1}]),o(e,r.Z.CF,[{locale:i.Z.enCA,name:"English",default:!0},{locale:i.Z.frCA,name:"Fran\xe7ais",default:!1}]),o(e,r.Z.CG,[{locale:i.Z.enUS,name:"English",default:!0}]),o(e,r.Z.CH,[{locale:i.Z.deCH,name:"Deutsch",default:!0}]),o(e,r.Z.CK,[{locale:i.Z.enCA,name:"English",default:!0},{locale:i.Z.frCA,name:"Fran\xe7ais",default:!1}]),o(e,r.Z.DE,[{locale:i.Z.deDE,name:"Deutsch",default:!0}]),o(e,r.Z.DK,[{locale:i.Z.daDK,name:"Danish",default:!0}]),o(e,r.Z.ER,[{locale:i.Z.enUS,name:"English",default:!0}]),o(e,r.Z.ES,[{locale:i.Z.esES,name:"Spanish",default:!0}]),o(e,r.Z.FJ,[{locale:i.Z.enUS,name:"English",default:!0}]),o(e,r.Z.FR,[{locale:i.Z.frFR,name:"Fran\xe7ais",default:!0}]),o(e,r.Z.GB,[{locale:i.Z.enGB,name:"English",default:!0}]),o(e,r.Z.GN,[{locale:i.Z.enGB,name:"English",default:!0}]),o(e,r.Z.GQ,[{locale:i.Z.nlNL,name:"Nederlands",default:!0}]),o(e,r.Z.IE,[{locale:i.Z.enIE,name:"English",default:!0}
1]),o(e,r.Z.IT,[{locale:i.Z.itIT,name:"Italian",default:!0}]),o(e,r.Z.JP,[{locale:i.Z.jaJP,name:"Japanese",default:!0}]),o(e,r.Z.KN,[{locale:i.Z.enUS,name:"English",default:!0}]),o(e,r.Z.LU,[{locale:i.Z.frLU,name:"Luxembourg",default:!0}]),o(e,r.Z.MR,[{locale:i.Z.enUS,name:"English",default:!0}]),o(e,r.Z.NL,[{locale:i.Z.nlNL,name:"Nederlands",default:!0},{locale:i.Z.enNL,name:"English",default:!1}]),o(e,r.Z.NO,[{locale:i.Z.nbNO,name:"Norwegian Bokmal",default:!0}]),o(e,r.Z.NZ,[{locale:i.Z.enNZ,name:"English",default:!0}]),o(e,r.Z.SE,[{locale:i.Z.svSE,name:"Svenska",default:!0}]),o(e,r.Z.US,[{locale:i.Z.enUS,name:"English",default:!0}]),o(e,r.Z.YE,[{locale:i.Z.enAU,name:"English",default:!0}]),o(e,r.Z.TK,[{locale:i.Z.daDK,name:"Dansk",default:!0},{locale:i.Z.enDK,name:"English",default:!1}]),o(e,r.Z.TO,[{locale:i.Z.nlBE,name:"Nederlands",default:!0},{locale:i.Z.frBE,name:"Fran\xe7ais",default:!1},{locale:i.Z.enBE,name:"English",default:!1}]),o(e,r.Z.TT,[{locale:i.Z.nlNL,name:"Nederlands",default:!0},{locale:i.Z.enNL,name:"English",default:!1}]),o(e,r.Z.TV,[{locale:i.Z.svSE,name:"Svenska",default:!0},{locale:i.Z.enSE,name:"English",default:!1}]),o(e,r.Z.TZ,[{locale:i.Z.deDE,name:"Deutsch",default:!0},{locale:i.Z.enDE,name:"English",default:!1}]),e}},894326:function(e,t,n){"use strict";n.d(t,{h:function(){return o}});var r=n(200770),i=n(46864),o=function(){var e=(0,r.Z)();return(0,i.G)()[e]}},741541:function(e,t,n){"use strict";n.d(t,{AM:function(){return i},JM:function(){return o},ki:function(){return r}});var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.find(function(e){return e.default})||e[0]},i=function(e,t){return!!t.find(function(t){return t.locale===e})},o=function(e){var t=e.baseUrl,n=e.availableLocales,r=e.query,o=null==r?void 0:r.locale;return o&&i(o,n)?"".concat(t,"?locale=").concat(o):t}},982436:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var l=e[o](a),c=l.value}catch(e){n(e);return}l.done?t(c):Promise.resolve(c).then(r,i)}n.d(t,{cy:function(){return l},gd:function(){return a}});var i,o=(0,n(575085).Z)("micro-tags",(i=function(){return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}(this,function(e){return[2,n.e(33846).then(n.bind(n,133846))]})},function(){var e=this,t=arguments;return new Promise(function(n,o){var a=i.apply(e,t);function l(e){r(a,n,o,l,c,"next",e)}function c(e){r(a,n,o,l,c,"throw",e)}l(void 0)})})),a=o.ProjectConfigProvider,l=(o.configMiddleware,o.getConfigFromSSRPayload,o.useConfig)},57204:function(e,t,n){"use strict";n.d(t,{M:function(){return i}});var r=n(165218),i=n.n(r)()(function(){return Promise.all([n.e(14206),n.e(274),n.e(40638)]).then(n.bind(n,1302))},{loadableGenerated:{webpack:()=>[1302]},loading:function(){return null},ssr:!1})},870199:function(e,t,n){"use strict";n.d(t,{f:function(){return g},Z:function(){return m}});var r,i=n(687800),o=n(827378),a=n(761403),l=n(189452),c=n(165218),u=n.n(c),s=n(169821),d=n(158256);function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=(f(r={},d.nK.bounceModal,function(){return Promise.all([n.e(12737),n.e(78526),n.e(30816),n.e(20264),n.e(20828),n.e(52291)]).then(n.bind(n,594803))}),f(r,d.nK.genericModal,function(){return n.e(10783).then(n.bind(n,110783))}),f(r,d.nK.communityDiscountModal,function(){return Promise.all([n.e(47057),n.e(5441),n.e(61785)]).then(n.bind(n,561785))}),f(r,d.nK.communityPerksModal,function(){return Promise.all([n.e(47057),n.e(38579),n.e(12737),n.e(78526),n.e(30816),n.e(20264),n.e(20828),n.e(99184),n.e(5441),n.e(15263)]).then(n.bind(n,151949))}),f(r,d.nK.subscriptionSettingsModal,function(){return Promise.all([n.e(12737),n.e(78526),n.e(30816),n.e(20264),n.e(20828),n.e(28004),n.e(7965),n.e(33040)]).then(n.bind(n,508402))}),f(r,d.nK.paymentMethodModal,function(){return Promise.all([n.e(38579),n.e(12737),n.e(78526),n.e(30816),n.e(20264),n.e(20828),n.e(90730),n.e(56370)]).then(n.bind(n,169881))}),f(r,d.nK.deliveryAddressModal,function(){return Promise.all([n.e(47057),n.e(14206),n.e(9432),n.e(37384),n.e(63581),n.e(50182)]).then(n.bind(n,859149))}),f(r,d.nK.mealSelectionCompletionModal,function(){return Promise.all([n.e(47057),n.e(38579),n.e(17827),n.e(52463),n.e(34330),n.e(29725),n.e(96783),n.e(6730)]).then(n.bind(n,519003))}),f(r,d.nK.snapDialogPaidOrderModal,function(){return Promise.all([n.e(38579),n.e(87365)]).then(n.bind(n,687365))}),f(r,d.nK.xsellOrderSuccessModal,function(){return Promise.all([n.e(47057),n.e(35730)]).then(n.bind(n,435730))}),f(r,d.nK.standaloneHighRiskModal,function(){return n.e(49506).then(n.bind(n,649506))}),f(r,d.nK.loyaltyOptInModal,function(){return Promise.all([n.e(38579),n.e(2715),n.e(83394),n.e(87918),n.e(96715),n.e(83819),n.e(16477),n.e(81298)]).then(n.bind(n,185395))}),f(r,d.nK.loyaltyMissionIntroModal,function(){return Promise.all([n.e(47057),n.e(38579),n.e(73020),n.e(97077),n.e(59546)]).then(n.bind(n,59546))}),f(r,d.nK.loyaltyOnboardingModal,function(){return Promise.all([n.e(38579),n.e(26116),n.e(18451)]).then(n.bind(n,718451))}),f(r,d.nK.doubleProteinOnboardingModal,function(){return n.e(56828).then(n.bind(n,256828))}),f(r,d.nK.referralNudgeModal,function(){return Promise.all([n.e(38579),n.e(3657)]).then(n.bind(n,903657))}),r),v=function(e){var t=e.modalKey,n=e.isActive,r=u()(p[t]);return n?(0,i.tZ)(s.Z,{suspense:!0,children:(0,i.tZ)(r,{},t)}):null};function b(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}"test"!==(0,l.Z)().NODE_ENV&&(0,a.setAppElement)("#__next");var g=(0,o.createContext)({activeModal:null,setActiveModal:function(){},closeModal:function(){}}),m=function(e){var t,n=e.registerModals,r=e.initialModal,a=e.children,l=function(e){if(Array.isArray(e))return e}(t=(0,o.useState)(null!=r?r:null))||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),2!==o.length);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw r}}return o}}(t,2)||function(e,t){if(e){if("string"==typeof e)return b(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 b(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.")}(),c=l[0],u=l[1];return(0,i.BX)(g.Provider,{value:{activeModal:c,setActiveModal:u,closeModal:function(e){u(function(t){return t===e?null:t})}},children:[a,n.map(function(e){return(0,i.tZ)(v,{modalKey:e,isActive:c===e},"".concat(e,"+").concat(Date.now()))})]})}},158256:function(e,t,n){"use strict";var r,i;n.d(t,{nK:function(){return r}}),(i=r||(r={})).bounceModal="bounce-modal",i.genericModal="generic-modal",i.communityDiscountModal="community-discount-modal",i.communityPerksModal="community-perks-modal",i.subscriptionSettingsModal="subscription-settings-modal",i.paymentMethodModal="payment-method-modal",i.deliveryAddressModal="delivery-address-modal",i.mealSelectionCompletionModal="meal-selection-completion-modal",i.snapDialogPaidOrderModal="snap-dialog-paid-order-modal",i.xsellOrderSuccessModal="xsell-order-success-modal",i.standaloneHighRiskModal="standalone-high-risk-modal",i.loyaltyOptInModal="loyalty-opt-in-modal",i.loyaltyMissionIntroModal="loyalty-mission-intro-modal",i.loyaltyOnboardingModal="loyalty-onboarding-modal",i.doubleProteinOnboardingModal="double-protein-onboarding-modal",i.referralNudgeModal="referral-nudge-modal"},771513:function(e,t,n){"use strict";var r=n(303333),i=n.n(r),o=n(280832);t.Z=function(e){return(0,o.Z)(e,i())}},135090:function(e,t,n){"use strict";var r=n(771513),i=n(374931);t.Z=function(e){return{start:(0,i.Z)(e),end:(0,r.Z)(e)}}},297936:function(e,t,n){"use strict";var r=n(557784);t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.B)();return/(ca|us|en|ja)$/i.exec(e)?0:1}},921318:function(e,t,n){"use strict";n.d(t,{Bc:function(){return b},qC:function(){return v},yS:function(){return p}});var r=n(156006),i=n(581340),o=n(285087),a=n(647220),l=function(e){var t=(0,o.l)();if(!(0,a.e)())return null;try{var n=t.getItem("hf_cross_page_experiment_decisions");if(!n)return null;var r=e.find(function(e){return n[e]});return r?n[r]:null}catch(e){return null}},c=function(e,t){if(!e||!t)return null;var n=t.find(function(t){return e[t]});return n?e[n].variationKey:null},u=n(734835),s=n(744335);function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=["ccomms-351-influencers-ad-continuity","ccomms-1039-value-props-ad-progression"],p=function(e,t){var n=(0,i.t)(),o=(0,r.i)().getSlotConfig(e,n),a=o.isEnabled,l=o.content,p=(0,u.Sl)(),v=p.setSlotAccessAttributes,b=p.setSlotCommSpanAttributes,g=c((t||{}).publicExperimentDecisions,f);b(d({},s.Xk.EXPERIMENT_DECISION,(0,s.YF)(g||void 0)));var m=(0,s.PO)(l);return(v(e,(0,s.WN)(l,a),m),"control"===g)?t:a&&Object.keys(l).length>0?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){d(e,t,n[t])})}return e}({},t,l):t},v=function(e){var t=(0,i.t)(),n=(0,r.i)().getSlotConfig(e,t),o=n.isEnabled,a=n.content,c=(0,u.Sl)(),p=c.setSlotAccessAttributes,v=c.setSlotCommSpanAttributes,b=l(f);v(d({},s.Xk.EXPERIMENT_DECISION,(0,s.YF)(b||void 0)));var g=(0,s.PO)(a);return(p(e,(0,s.WN)(a,o),g),"control"===b)?{isEnabled:!1,content:{}}:{isEnabled:o,content:a}},b=function(e){var t=(0,i.t)(),n=(0,r.i)().getSlotConfig(e,t).content,o=(0,u.Sl)().setSlotAccessAttributes,a=(0,s.PO)(n);return o(e,!!a,a),{campaignId:a||""}}},808215:function(e,t,n){"use strict";var r=n(449551),i=n(527157),o=n(757114);t.Z=function(){var e=(0,r.Z)(),t=(0,i.Z)();return{brand:o.A[t],region_code:e}}},598669:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(687800);n(827378);var i=n(165218),o=n.n(i),a=n(953137),l=n(581340),c=n(527157),u=n(331227),s=n(543790),d=n(882493),f=n(951251),p=function(){var e=(0,f.gC)(),t=e.campaignEnabledRoutes,n=e.campaignParams,r=(0,l.t)().asPath;return(null==t?void 0:t.some(function(e){return r.includes(e)}))?n:{}},v=function(){var e=(0,l.t)(),t=["/reactivate","/my-account/deliveries/menu","/account-settings","/pages/reactivate","/pages/reaktivieren","/pages/genaktiver","/pages/reactivez","/pages/reaktiver","/pages/heractiveren","/about/2-tier"].every(function(t){return!e.asPath.includes(t)}),n=(0,a.u)({},{enabled:!!t,suspense:!1}).data,r=(0,c.Z)(),i=(0,u.Z)(),o=r===s.Z.goodchop,f=i===d.m.WhiteLabelMealKits||i===d.m.ReadyToEat,v=null==n?void 0:n.items.filter(function(e){var t,n,r,i,o;return e.canceledAt&&(null===(n=e.productType)||void 0===n?void 0:null===(t=n.specs)||void 0===t?void 0:t.recurrency)===0&&(null===(o=e.productType)||void 0===o?void 0:null===(i=o.family)||void 0===i?void 0:null===(r=i.tags)||void 0===r?void 0:r.includes("is_mealbox"))}),b=null==n?void 0:n.items.some(function(e){return e.isActive}),g=!!(t&&v&&v.length>0&&!b),m=p(),y=o?"/settings/plan/reactivate":"/reactivate",h=new URLSearchParams(m);(null==v?void 0:v.length)===1&&h.set("subscriptionId",v[0].id);var _=h.toString();return{showBanner:g,bannerLink:o||f||!_?y:"".concat(y,"?").concat(_)}},b=n(164528),g=n(768587),m=n(783045),y=n(579894),h=n.n(y),_=function(e){var t=e.bannerLink,n=(0,b.ZP)("reactivations").translate,i=(0,m.zv)(),o=n("reactivations.persistent-banner.redesign.title"),a=n("reactivations.persistent-banner.redesign.text"),l=n("reactivations.persistent-banner.redesign.v2.button");return(0,r.tZ)(g.xu,{"data-test-id":"proceed-to-reactivation-banner",role:"alert",backgroundColor:i?"alias.brand.background.default":"neutral.800",display:"flex",alignItems:"center",justifyContent:"center",py:"sm-2",px:["sm-2","md-1","xxl"],children:(0,r.BX)(g.xu,{display:"flex",flexDirection:["column","row","row"],justifyContent:"center",alignItems:"center",width:"100%",maxWidth:"1144px",children:[(0,r.BX)(g.xu,{display:["flex","flex","none"],flexDirection:"column",flex:"1",textAlign:["center","left"],children:[(0,r.BX)(g.xv,{color:"neutral.100",type:"body-md-regular",strong:!0,children:[o," \xa0"]}),(0,r.tZ)(g.xv,{color:"neutral.100",type:"body-md-regular",mr:"xs",children:a})]}),(0,r.tZ)(g.xu,{display:["none","none","flex"],flexDirection:"row",flex:"1",children:(0,r.BX)(g.xv,{color:"neutral.100",type:"body-md-regular",mr:"sm-1",children:[(0,r.tZ)("strong",{children:o})," ",a]})}),(0,r.tZ)(h(),{href:t,passHref:!0,legacyBehavior:!0,children:(0,r.tZ)(g.xu,{maxWidth:["100%","360px"],width:"100%",mt:["sm-2","zero"],as:"a","data-test-id":"proceed-to-reactivation-link",textDecorationLine:"none",children:(0,r.tZ)(g.zx.Primary,{size:"sm",children:l})})})]})})},w=n(999625),O=o()(function(){return n.e(85035).then(n.bind(n,685035)).then(function(e){return e.WinbackVoucherBanner})},{loadableGenerated:{webpack:()=>[685035]}}),P=function(){var e=v(),t=e.showBanner,n=e.bannerLink,i=(0,w.Z)();return t?i?(0,r.tZ)(O,{bannerLink:n}):(0,r.tZ)(_,{bannerLink:n}):null},S=function(){return(0,r.tZ)(f.Bq,{children:(0,r.tZ)(P,{})})}},999625:function(e,t,n){"use strict";var r=n(581340),i=n(200770);t.Z=function(){var e=(0,r.t)().asPath.includes("cancellation"),t=(0,i.Z)();return e&&"US"===t}},951251:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var l=e[o](a),c=l.value}catch(e){n(e);return}l.done?t(c):Promise.resolve(c).then(r,i)}n.d(t,{Bq:function(){return a},gC:function(){return l}});var i,o=(0,n(575085).Z)("hf.persistent-reactivation-banner",(i=function(){return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;
1function l(o){return function(l){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}(this,function(e){switch(e.label){case 0:return[4,n.e(83156).then(n.bind(n,283156))];case 1:return[2,e.sent().config]}})},function(){var e=this,t=arguments;return new Promise(function(n,o){var a=i.apply(e,t);function l(e){r(a,n,o,l,c,"next",e)}function c(e){r(a,n,o,l,c,"throw",e)}l(void 0)})})),a=o.ProjectConfigProvider,l=(o.configMiddleware,o.useConfig)},937958:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return nL},default:function(){return nD}});var r,i,o,a,l=n(687800),c=n(827378),u=n(567921),s=n.n(u),d=n(581340),f=n(768587),p=n(43011),v=n(169821),b=n(718583),g=n(530454),m=n.n(g),y=n(958042),h=n(527157),_=n(384036),w=n(37017),O=n(74144),P=n(517753),S=function(e){Object.keys(e).forEach(function(t){return s().set(t,e[t],{expires:365})})},k=n(450979),E=n(214744),Z=n(912496),j=n(695743),x=n(199729),I=n.n(x),C=function(){var e=(0,j.z)("modular-landing-pages").data,t=(0,j.z)("website").data;return{isPlansWidgetEnabled:I()(t,"newFeatures.plansWidget.enabled"),defaultVoucherCode:I()(e,"defaultVoucherCode"),showBiggerBoxBenefitMessage:I()(t,"newFeatures.showBiggerBoxBenefitMessage"),ingredientsUpcomingRecipesQuery:I()(e,"ingredientsUpcomingRecipesQuery"),mwdPatternTranslations:I()(e,"mwdPatternTranslations"),usePlansConfigApi:I()(e,"usePlansConfigApi"),shippingAmount:I()(t,"checkout.shippingAmount"),pricePresentationNotification:I()(t,"newFeatures.pricePresentationNotification"),SPATransition:I()(e,"SPATransitionConfig"),pricePresentationMLP:I()(e,"pricePresentationMLP"),isPPSMiddlewareEnabled:I()(e,"isPPSMiddlewareEnabled"),isNewBackgroundImageEnabled:I()(e,"isNewBackgroundImageEnabled")}},A=n(188038),T=n.n(A),L=n(449551),D=n(543790),M=n(783045),N=n(894326),B=n(741541);function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U=["blog","stories"],R=function(e){var t=null==e?void 0:e["@type"];return Array.isArray(t)?t.includes("Article"):"Article"===t},V=(F(a={},D.Z.hellofresh,{name:"HelloFresh",logoUrl:"https://media.hellofresh.com/hellofresh_website/logo/Hello_Fresh_Lockup.png"}),F(a,D.Z.factor,{name:"Factor",logoUrl:"https://hf-ui-assets.s3.eu-west-1.amazonaws.com/assets/factor/icons/Factor+Logo.png"}),a);function G(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 H(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 X(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}var q=function(e){var t;return null!==(t=null==e?void 0:e.filter(function(e){return"authorSection"===e.contentType}))&&void 0!==t?t:[]},z=function(e){var t,n,r,i,o,a,l;return{name:null===(n=e.fields)||void 0===n?void 0:null===(t=n.contributor)||void 0===t?void 0:t.name,image:null===(i=e.fields)||void 0===i?void 0:null===(r=i.contributor)||void 0===r?void 0:r.image,authorDetailsPageLink:null===(a=e.fields)||void 0===a?void 0:null===(o=a.contributor)||void 0===o?void 0:o.authorDetailsPageLink,jobTitle:null===(l=e.fields)||void 0===l?void 0:l.byline}},W=function(e){var t,n,r=null===(t=null==e?void 0:e.find(function(e){return"attribution"===e.contentType}))||void 0===t?void 0:t.fields;if(r)return{authorFieldsList:(null!==(n=r.contributors)&&void 0!==n?n:[]).map(z),publishedOn:r.publishedOn,updatedOn:r.updatedOn};var i=q(e).map(function(e){return e.fields}),o=(function(e){if(Array.isArray(e))return e}(i)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),1!==o.length);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw r}}return o}}(i,1)||function(e,t){if(e){if("string"==typeof e)return G(e,1);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 G(e,1)}}
1(i,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];return{authorFieldsList:i,publishedOn:null==o?void 0:o.publishedOn,updatedOn:null==o?void 0:o.updatedOn}},K=function(e){if(e){var t=new Date(e);return Number.isNaN(t.getTime())?void 0:t.toISOString()}},J=function(e){return H({"@type":"Person",name:e.name},e.authorDetailsPageLink&&{url:e.authorDetailsPageLink},e.image&&{image:e.image},e.jobTitle&&{jobTitle:e.jobTitle})},Y=function(e){var t=e.headline,n=e.description,r=e.image,i=e.canonicalURL,o=e.datePublished,a=e.dateModified,l=e.sections,u=V[(0,h.Z)()];return(0,c.useMemo)(function(){if(!t||!i||!o||!u)return null;var e,c,s,d=W(l),f=d.authorFieldsList,p=d.publishedOn,v=d.updatedOn,b=f.filter(function(e){return!!(null==e?void 0:e.name)}).map(J),g=null!==(e=K(p))&&void 0!==e?e:K(o),m=null!==(s=null!==(c=K(v))&&void 0!==c?c:K(a))&&void 0!==s?s:g;return g?X(H(X(H({"@context":"https://schema.org","@type":"Article",headline:t},n&&{description:n},r&&{image:r}),{mainEntityOfPage:{"@type":"WebPage","@id":i}}),1===b.length&&{author:b[0]},b.length>1&&{author:b}),{publisher:{"@type":"Organization",name:u.name,logo:{"@type":"ImageObject",url:u.logoUrl}},datePublished:g,dateModified:m}):null},[t,n,r,i,o,a,l,u])};function $(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 Q={greenchef:"https://www.greenchef.com/assets/greenchef/favicon/favicon.ico",everyplate:"https://cdn.hellofresh.com/favicon/everyplate_favicon_rebrand_v2.ico",hellofresh:"https://www.hellofresh.com/favicons/hellofresh.ico",factor:"https://www.factor75.com/assets/factor/favicon/favicon.ico",chefsplate:"https://www.chefsplate.com/assets/chefsplate/favicon/ck_favicon.ico",goodchop:"https://www.goodchop.com/assets/goodchop/favicon/favicon-mr.ico",youfoodz:"https://www.youfoodz.com/assets/youfoodz/favicon/favicon_new.ico",petstable:"https://www.thepetstable.com/assets/petstable/favicon/favicon-kn.ico"},ee=function(e){var t=e.pageEntry,n=e.ruleSet,r=e.seoURL,i=e.sections,o=(0,d.t)(),a=(0,y.Z)(),c=(0,L.Z)(),u=(0,h.Z)(),s=(0,M.Fg)(),f=Q[u]||"",p=(0,N.h)(),v={title:t.fields.title,description:t.fields.description,robots:t.fields.robots,seoTitle:t.fields.seoTitle||t.fields.title,seoImage:t.fields.seoImage,seoDescription:t.fields.seoDescription||t.fields.description,brandName:t.fields.brand||"HelloFresh",googleSiteVerificationId:t.fields.googleSiteVerificationId},b=u===D.Z.hellofresh?"#FAF8F3":s.colors.primary[600],g=t.fields.hreflangTags||[],m=r?(0,B.JM)({baseUrl:r,availableLocales:p,query:o.query}):void 0,_=v.seoImage||"https://cdn.hellofresh.com/de/cms/raf/hellofresh-logo.png",w=t.fields.customSchema,O=!R(w)&&U.includes(t.fields.prefix),S=Y({headline:v.seoTitle,description:v.seoDescription,image:v.seoImage,canonicalURL:m,datePublished:t.createdAt,dateModified:t.updatedAt,sections:i});if(Object.values(v).some(P.RL)){var k=!0,E=!1,Z=void 0;try{for(var j,x=Object.entries(v)[Symbol.iterator]();!(k=(j=x.next()).done);k=!0){var I,C=(I=j.value,function(e){if(Array.isArray(e))return e}(I)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),2!==o.length);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw r}}return o}}(I,2)||function(e,t){if(e){if("string"==typeof e)return $(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 $(e,2)}}(I,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.")}()),A=C[0],F=C[1];v[A]=(0,P.QV)({value:F,ruleSet:n,dynamicParams:o.query})}}catch(e){E=!0,Z=e}finally{try{k||null==x.return||x.return()}finally{if(E)throw Z}}}return(0,l.BX)(T(),{children:[(0,l.tZ)("title",{children:v.title}
1,"title"),(0,l.tZ)("meta",{property:"og:title",content:v.title},"og:title"),(0,l.tZ)("meta",{content:v.title,name:"apple-mobile-web-app-title"},"apple-mobile-web-app-title"),(0,l.tZ)("meta",{name:"description",content:v.description},"description"),(0,l.tZ)("meta",{content:b,name:"theme-color"},"theme-color"),(0,l.tZ)("meta",{content:b,name:"msapplication-TileColor"},"msapplication-TileColor"),f?(0,l.BX)(l.HY,{children:[(0,l.tZ)("link",{href:f,rel:"icon"}),(0,l.tZ)("link",{rel:"shortcut icon",href:f})]}):null,m&&(0,l.tZ)("link",{rel:"canonical",href:m},"canonical"),(0,l.tZ)("meta",{name:"thumbnail",content:_},"thumbnail"),(0,l.tZ)("meta",{name:"author",content:v.brandName},"author"),(0,l.tZ)("meta",{content:"cooking, ".concat(v.brandName),name:"keywords"},"keywords"),(0,l.tZ)("meta",{name:"robots",content:v.robots},"robots"),(0,l.tZ)("meta",{content:c,name:"country"},"country"),v.googleSiteVerificationId&&(0,l.tZ)("meta",{name:"google-site-verification",content:v.googleSiteVerificationId},"google-site-verification"),g.map(function(e,t){return(0,l.tZ)("link",{rel:"alternate",hrefLang:e.hreflang,href:e.href},t)}),(0,l.tZ)("meta",{name:"twitter:card",content:"summary_large_image"},"twitter:card"),r&&(0,l.tZ)("meta",{property:"twitter:domain",content:r},"twitter:domain"),r&&(0,l.tZ)("meta",{property:"twitter:url",content:r},"twitter:url"),(0,l.tZ)("meta",{name:"twitter:description",content:v.seoDescription},"twitter:description"),(0,l.tZ)("meta",{name:"twitter:title",content:v.seoTitle},"twitter:title"),(0,l.tZ)("meta",{name:"twitter:image",content:_},"twitter:image"),r&&(0,l.BX)(l.HY,{children:[(0,l.tZ)("meta",{content:r,property:"url"},"url"),(0,l.tZ)("meta",{property:"og:url",content:r},"og:url")]}),(0,l.tZ)("meta",{property:"og:title",content:v.seoTitle},"og:title"),(0,l.tZ)("meta",{property:"og:description",content:v.seoDescription},"og:description"),(0,l.tZ)("meta",{property:"og:site_name",content:v.brandName},"og:site_name"),(0,l.tZ)("meta",{property:"og:locale",content:a},"og:locale"),(0,l.tZ)("meta",{property:"og:image",content:_},"og:image"),(0,l.tZ)("meta",{property:"og:image:alt",content:v.brandName},"og:image:alt"),(0,l.tZ)("meta",{property:"og:image:width",content:"1140"},"og:image:width"),(0,l.tZ)("meta",{property:"og:image:height",content:"600"},"og:image:height"),w&&(0,l.tZ)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(w)}},"customPageSchema"),O&&S&&(0,l.tZ)("script",{type:"application/ld+json","data-test-id":"article-schema",dangerouslySetInnerHTML:{__html:JSON.stringify(S)}},"articleSchema")]})},et=["pages","eat","matkasse","ingredients","essensbox","grocery-delivery","meal-kits","panier-repas","maltidskasser","spesa-online","maaltijdbox","about","diet-plans","food-delivery","food-box","meal-prep","dieet-schema","caja-de-comida","blog","kits-de-recetas","kant-en-klare-maaltijden","stories","boites-repas","fertiggerichte","faerdigretter","fardigratter"],en=function(){return(0,l.BX)("svg",{id:"Layer_1",width:"24",height:"24","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,l.tZ)("title",{children:"IconChevronRightSmall"}),(0,l.tZ)("path",{d:"M9.458,17.792a.75.75,0,0,1-.53028-1.28027L13.39746,12.042,8.92773,7.57227A.74992.74992,0,0,1,9.98828,6.51172l5,5a.74973.74973,0,0,1,0,1.06055l-5,5A.74674.74674,0,0,1,9.458,17.792Z"})]})},er=n(954409),ei=n(200770),eo=n(321544),ea=n(396887),el=function(e){var t=e.brandName,n=e.pagePrefix,r=e.pagePrefixFormatted,i=e.pageSubpath,o=e.pageSubpathFormatted;return(0,l.tZ)(f.xu,{backgroundColor:"alias.page-background.default",py:"global.sm-1",px:["global.xs","global.sm-1","zero"],children:(0,l.BX)(f.xu,{"data-test-id":"breadcrumbs-wrapper",itemScope:!0,itemType:"http://schema.org/BreadcrumbList",maxWidth:["100%","100%","1140px"],marginX:"auto",display:"flex",alignItems:"center",flexWrap:["wrap","wrap","nowrap"],children:[(0,l.BX)(f.xv,{itemProp:"itemListElement",itemType:"http://schema.org/ListItem",itemScope:!0,children:[(0,l.tZ)("meta",{itemProp:"position",content:"1"}),(0,l.tZ)(f.rU,{noStyle:!0,itemProp:"item",href:"/",children:(0,l.tZ)(f.xv,{itemProp:"name",children:t})})]}),(0,l.tZ)(en,{}),(0,l.BX)(f.xv,{itemProp:"itemListElement",itemType:"http://schema.org/ListItem",itemScope:!0,children:[(0,l.tZ)("meta",{itemProp:"position",content:"2"}),i?(0,l.tZ)(f.rU,{noStyle:!0,itemProp:"item",href:"/".concat(n),children:(0,l.tZ)(f.xv,{itemProp:"name",children:r})}):(0,l.tZ)(f.xv,{itemProp:"name",children:r})]}),i&&(0,l.BX)(l.HY,{children:[(0,l.tZ)(en,{}),(0,l.BX)(f.xv,{itemProp:"itemListElement",itemType:"http://schema.org/ListItem",itemScope:!0,children:[(0,l.tZ)("meta",{itemProp:"position",content:"3"}),(0,l.tZ)(f.xv,{itemProp:"name",children:o})]})]})]})})};function ec(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 eu=["hellofresh","factor"],es=function(e){var t=e.page,n=(0,er.D)(),r=(0,ei.Z)(),i=(0,ea.ew)(),o=eu.includes(n.id
1),a=(0,c.useMemo)(function(){return eo._h[r][i.NEXT_PUBLIC_SERVER_ENV===ea.Xe.live?"live":"staging"]},[r,i.NEXT_PUBLIC_SERVER_ENV]),u=function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),2!==o.length);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw r}}return o}}(t,2)||function(e,t){if(e){if("string"==typeof e)return ec(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 ec(e,2)}}(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.")}(),s=u[0],d=u[1],p=(0,c.useMemo)(function(){if(!o||!s)return null;var e=(0,P.dI)(s),t=d?(0,P.dI)(d):void 0,r=[{"@type":"ListItem",position:1,name:n.name,item:"".concat(a,"/")},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}({"@type":"ListItem",position:2,name:e},d?{item:"".concat(a,"/").concat(s)}:{})];return t&&r.push({"@type":"ListItem",position:3,name:t}),{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:r}},[o,n.name,a,s,d]),v=!et.includes(s)||["pages","about"].includes(s);if(!Array.isArray(t)||!t.length||v)return null;var b=(0,P.dI)(s),g=d?(0,P.dI)(d):void 0;return o?(0,l.BX)(l.HY,{children:[p&&(0,l.tZ)(T(),{children:(0,l.tZ)("script",{type:"application/ld+json","data-test-id":"breadcrumb-schema",dangerouslySetInnerHTML:{__html:JSON.stringify(p)}},"breadcrumb-structured-data")}),(0,l.tZ)(f.xu,{backgroundColor:"alias.page-background.default",py:"global.sm-1",px:["global.xs","global.sm-1","zero"],children:(0,l.BX)(f.xu,{"data-test-id":"breadcrumbs-wrapper",maxWidth:["100%","100%","1140px"],marginX:"auto",display:"flex",alignItems:"center",flexWrap:["wrap","wrap","nowrap"],children:[(0,l.tZ)(f.rU,{noStyle:!0,href:"/",children:(0,l.tZ)(f.xv,{children:n.name})}),(0,l.tZ)(en,{}),d?(0,l.tZ)(f.rU,{noStyle:!0,href:"/".concat(s),children:(0,l.tZ)(f.xv,{children:b})}):(0,l.tZ)(f.xv,{children:b}),d&&(0,l.BX)(l.HY,{children:[(0,l.tZ)(en,{}),(0,l.tZ)(f.xv,{children:g})]})]})})]}):(0,l.tZ)(el,{brandName:n.name,pagePrefix:s,pagePrefixFormatted:b,pageSubpath:d,pageSubpathFormatted:g})},ed=n(448767),ef=n(184883),ep=n(240396),ev=n(361822),eb=n(963013),eg=n(608053),em=n(243352),ey=n(109344),eh=function(e){var t=e.logoSrc,n=e.logoWidth,r=e.logoHeight,i=e.ctaText,o=e.ctaUrl,a=e.queryParams,c=e.sectionId,u=(0,em.L)().trackStartFunnelClick;return(0,l.BX)(f.xu,{"data-test-id":"sticky-bar-top-nav",width:"100%",backgroundColor:"alias.elevation.base",boxShadow:"shadow-sm",display:"flex",alignItems:"center",justifyContent:"space-between",minHeight:"56px",px:["global.sm-2","global.md-1"],children:[(0,l.tZ)(ey.Z,{src:t,stickyBarLogoWidth:n,stickyBarLogoHeight:r}),i&&o&&(0,l.tZ)(f.rU,{"data-test-id":"top-nav-cta-button",href:(0,eg.BG)(o,a),noStyle:!0,children:(0,l.tZ)(f.zx.Primary,{size:"sm",onClick:function(){u({sectionId:null!=c?c:"",sectionType:"stickyBarSection",uiComponentLabel:i})},children:i})})]})},e_=n(509957),ew=n(966622),eO=n(409862),eP=n(887824),eS=n(497249),ek=n(921318),eE=n(264937),eZ=n(687992);function ej(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 ex={socialSection:"social-proof-section-slot",skuSection:"sku-section-slot",benefitsSection:"benefits-section-slot",videoSection:"video-section-slot",menuPreferenceSection:"menu-preference-section-slot",contentModuleImageSection:"content-module-image-section-slot",multiWeeklyDiscountSection:"mwd-section-slot",scrollSection:"hero-banner-section-slot"},eI=function(e){var t,n,r=e.children,i=e.sectionId,o=e.sectionType,a=e.scrollSectionType,u=e.sectionIndex,s=e.sectionCount,d=e.variationId,p=(0,eP.Z)().push,v=(0,eS.T)(),b=(0,eE._)().addSectionViewed,g=(0,ew.py)({runUsingStatsig:!0}
1),m=g.isReady,y=g.track,h=(0,eZ.Z)(),_=h.id,w=h.attributes,O=h.isReady,P=(0,e_.YD)({triggerOnce:!0,fallbackInView:!1,threshold:.5}),S=P.ref,k=P.inView,E=ex[o],Z=(0,ek.qC)(E),j=Z.isEnabled,x=null!==(t=Z.content.campaignId)&&void 0!==t?t:"",I=(0,ek.Bc)(E).campaignId,C=(0,eO.q)(),A=C.funnelTrackingFields,T=C.funnelId;j&&x?n=x:T&&(n=I||T),(0,c.useEffect)(function(){var e=v.startSpan("landing-page.contentful-section");e.setAttributes({"landing-page.content-type":o,"landing-page.section-id":i,"landing-page.scroll-section-type":a}),e.end()},[o,i,a,v]);var L=(0,c.useRef)(!1);return(0,c.useEffect)(function(){if(k&&!L.current){L.current=!0;var e=v.startSpan("landing-page.section-in-view");e.setAttributes(ej({"landing-page.section-in-view.id":i,"landing-page.section-in-view.type":o,"landing-page.section-in-view.index":u,"landing-page.section-in-view.total-count":s},a&&{"landing-page.section-in-view.scroll-type":a},d&&{"landing-page.section-in-view.page-variation-id":d})),e.end()}},[k,v,i,o,u,s,a,d]),(0,c.useEffect)(function(){k&&b(i),k&&m&&(p(ej({event:"gaEventTrigger",event_name:"Navigation_Scroll",gaEventCategory:"navigation",gaEventAction:"scroll",position:i,gaEventLabel:i,sectionType:o},a?{scrollSectionType:a}:{},n?{commsConfigId:n}:{},A)),O&&_&&y({eventName:"Navigation_Scroll",eventTags:ej({event:"gaEventTrigger",gaEventCategory:"navigation",gaEventAction:"scroll",position:i,gaEventLabel:i,brand:"HelloFresh",tribe:"Conversions Journey",screen:"Landing Page",sectionType:o},a?{scrollSectionType:a}:{},n?{commsConfigId:n}:{},A),experimentationUserId:_,experimentationUserAttributes:w}))},[k,n,m,O,_,T,A]),(0,l.tZ)(f.xu,{ref:S,children:r})},eC=function(e){if(e)return Array.isArray(e)?e[0]:e},eA=n(344884),eT=function(e,t,n){var r=e.startSpan(n,{attributes: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}({},t)});r.setStatus({code:eA.Z.OK,message:"".concat(t.dis_exp_name," ").concat(n)}),r.end()},eL=function(){var e=(0,d.t)(),t=e.query,n=e.asPath,r=(0,eP.Z)().push,i=(0,eS.T)(),o=t.discount_redirect,a=t.c,l=(0,ew.py)().isReady;return{logDiscountExpAnalytics:(0,c.useCallback)(function(e,t){var l,c=!1,u=!1,s=e.fields.discountData,d=Array.isArray(t)?t[0]:t,f=eC(a);if(s&&d&&f){var p,v=s[d];v&&(l=v.experiment,c=v.enabled)&&(r({event:"gaEventTrigger",event_name:"Contentful_DiscountTestingAllocation",tribe:"Customer Benefits",screen:"Landing Page",gaEventCategory:"Contentful_DiscountTestingAllocation",squad:"pricing-experience",gaEventLabel:f,variation_name:f,gaEventAction:p=l,experiment_name:p}),u=!0)}eT(i,{dis_exp_channel:d,dis_exp_redirect:o,url:n,dis_exp_name:l,dis_exp_variant:f,dis_exp_is_enabled:c,ga_event_pushed:u},"discount-experiment")},[o,n,r,i,a]),isReady:l}},eD=n(686677),eM=["/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","/
1pages/discountcode","/pages/b2bdiscount"],eN="routeChangeStart",eB=function(){var e=(0,d.t)(),t=(0,eS.T)(),n=e.asPath,r=eM.some(function(e){return n.includes(e)});(0,c.useEffect)(function(){var e=function(e){if(e.includes("plans")&&r){var n=new URLSearchParams(e.substring(7)),i=n.has("c"),o=n.get("c"),a=t.startSpan("landing-page.paid-marketing-page.redirect");a.setAttributes({"landing-page.paid-marketing-page.hasVoucher":i,"landing-page.paid-marketing-page.voucherCode":o||"","landing-page.paid-marketing-page.plansUrl":e}),a.end()}};return eD.Router.events.on(eN,e),function(){eD.Router.events.off(eN,e)}},[r,t,n])},eF=new Set,eU=function(){return{scroll_depth_pct:0,exit_intent:!1,cta_click:null,sections_viewed:[],sections_total:0,landing_page_id:null,landing_page_fields_id:null,page_variation_id:null,page_variation_fields_id:null,mountTimestamp:Date.now()}},eR=eU(),eV=function(){eF.forEach(function(e){return e()})},eG=function(){return eR},eH=function(e){var t=Math.round(Math.min(Math.max(e,0),100));t<=eR.scroll_depth_pct||(eR.scroll_depth_pct=t,eV())},eX=function(e){eR.sections_viewed.includes(e)||(eR.sections_viewed.push(e),eV())},eq=function(e){eR.cta_click!==e&&(eR.cta_click=e,eV())},ez=function(){eR.exit_intent||(eR.exit_intent=!0,eV())},eW=function(e,t,n,r){(eR.landing_page_id!==e||eR.landing_page_fields_id!==t||eR.page_variation_id!==n||eR.page_variation_fields_id!==r)&&(eR.landing_page_id=e,eR.landing_page_fields_id=t,eR.page_variation_id=n,eR.page_variation_fields_id=r,eV())},eK=function(e){eR.sections_total!==e&&(eR.sections_total=e,eV())},eJ=function(){eR.mountTimestamp=Date.now(),eV()},eY=function(){eR=eU(),eV()},e$=function(){(0,c.useEffect)(function(){eJ()},[])},eQ="routeChangeStart",e0=function(){var e=(0,eP.Z)().push;(0,c.useEffect)(function(){var t=function(t){if(t.split("?")[0].endsWith("/plans")){var n,r,i,o=eG(),a=o.sections_viewed.length,l=o.sections_total;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}({event:"gaEventTrigger",event_name:"Navigation_LandingToPlansSignals",gaEventCategory:"navigation",gaEventAction:"landingToPlans"},{scroll_depth_pct:o.scroll_depth_pct,section_viewed_no:a,sections_total:l,total_section_viewed_pct:l>0?Math.round(a/l*100):0,sections_viewed:o.sections_viewed.join(","),exit_intent:o.exit_intent,cta_click:null!==(n=o.cta_click)&&void 0!==n?n:"",time_on_page_ms:Math.max(0,Date.now()-eG().mountTimestamp),landing_page_id:null!==(r=o.landing_page_id)&&void 0!==r?r:"",page_variation_id:null!==(i=o.page_variation_id)&&void 0!==i?i:""}))}};return eD.Router.events.on(eQ,t),function(){eD.Router.events.off(eQ,t)}},[e])},e1=n(719920),e2=n(365769),e7=n(440492),e6=function(e){var t=(0,e2.Z)().planFamily,n=(0,ei.Z)();return(0,e7.W)({country:n,code:e,products:null==t?void 0:t.children.map(function(e){return e.handle}),customer_id:0},{enabled:!!t&&!!e,suspense:!1}).data},e8=n(953137),e4=n(285087);function e3(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 e5=["raf","share","raf-share","raf-freebie","freebies","charles"],e9={activation:"session_tracked",reactivation:"reactivation_session_tracked",referral:"referral_prospect_session_tracked"},te={},tt=function(){var e=(0,d.t)(),t=e.asPath,n=e.query,r=(0,eP.Z)().push,i=(0,eO.q)().funnelTrackingFields,o=(0,e4.l)(),a="/"===t.split("?")[0],l=(0,p.Z)(),u=(0,c.useMemo)(function(){return{suspense:!1,enabled:l&&a}},[l,a]),s=(0,e8.u)(te,u).data,f=(0,c.useMemo)(function(){if(!l||!a)return!1;var e=null==s?void 0:s.items,t=(null==e?void 0:e.find(function(e){return!e.canceledAt}))||(null==e?void 0:e[0]);return!!(null==t?void 0:t.canceledAt)},[l,a,s]),v=(0,c.useMemo)(function(){var e;return e5.includes(String(null!==(e=n.utm_source)&&void 0!==e?e:"").toLowerCase())},[n.utm_source]),b=(0,c.useMemo)(function(){var e;return String(null!==(e=n.c)&&void 0!==e?e:"")},[n.c]);(0,c.useEffect)(function(){a&&(l||o.getItem(e9.activation)||(r(e3({event:"gaEventTrigger",event_name:"Activation_SessionStart",gaEventCategory:"anomaly-detection",gaEventAction:"sessionStart"},i)),o.setItem(e9.activation,"true")),f&&!o.getItem(e9.reactivation)&&(r(e3({event:"gaEventTrigger",event_name:"Reactivation_SessionStart",gaEventCategory:"anomaly-detection",gaEventAction:"reactivationSessionStart"},i)),o.setItem(e9.reactivation,"true")),v&&!o.getItem(e9.referral)&&(r(e3({event:"gaEventTrigger",event_name:"Referral_ProspectSessionStart",gaEventCategory:"anomaly-detection",gaEventAction:"prospectSessionStart",referral_code:b},i)),o.setItem(e9.referral,"true")))},[a,l,f,v,b,r,i,o])},tn=function(e){var t=(0,c.useMemo)(function(){var t=[],n=0;return null==e||e.forEach(function(e,r){"articleItemSection"===e.contentType&&(t[r]=++n)}),t},[e]),n=(0,c.useMemo)(function(){var n=[];return null==e||e.forEach(function(e,r){if("articleItemSection"===e.contentType){var i,o,a=t[r],l=null===(i=e.sectionVariables)||void 0===i?void 0:i.id;n.push({itemNumber:a,title:null===(o=e.sectionVariables)||void 0===o?void 0:o.title,anchorId:l||"article-item-".concat(a)})}}),n},[e,t]);return{articleItemNumbers:t,articleIndexItems:n}},tr=n(407792),ti=n(52130),to=n(575182),ta=n(394545),tl=n(165218),tc=n.n(tl)()(function(){return n.e(38742).then(n.bind(n,859587))},{loadableGenerated:{webpack:()=>[859587]},loading:function(){return null},ssr:!1}),tu=n(937507);function ts(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 td=function(e){var t=(0,e4.l)();(0,c.useEffect)(function(){if(e&&0!==Object.keys(e.public).length){var n={};
1Object.entries(e.public).forEach(function(e){var t=function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),2!==o.length);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw r}}return o}}(e,2)||function(e,t){if(e){if("string"==typeof e)return ts(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 ts(e,2)}}(e,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=t[0],i=t[1];(null==i?void 0:i.variationKey)&&(n[r]=i.variationKey)}),Object.keys(n).length>0&&t.setItem("hf_cross_page_experiment_decisions",n)}},[e,t])},tf=n(182646),tp=n(463171),tv=n(781935),tb=n(266726),tg=n.n(tb),tm=n(60074),ty=function(){try{var e,t;return new URL(null===(t=window)||void 0===t?void 0:null===(e=t.location)||void 0===e?void 0:e.href).hostname.split(".").slice(1).join(".")}catch(e){return""}},th={scroll_depth_pct:"sd",time_on_page_ms:"t",exit_intent:"ei",cta_click:"cc",sections_viewed:"sv",sections_total:"st",landing_page_id:"lp",landing_page_fields_id:"lf",page_variation_id:"pv",page_variation_fields_id:"vf"};function t_(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 tw=function(e,t){var n,r,i,o,a=(n={},r=th.time_on_page_ms,i=Math.max(0,t-e.mountTimestamp),r in n?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,n);return e.scroll_depth_pct>0&&(a[th.scroll_depth_pct]=e.scroll_depth_pct),e.exit_intent&&(a[th.exit_intent]=!0),e.cta_click&&(a[th.cta_click]=e.cta_click),e.sections_viewed.length>0&&(a[th.sections_viewed]=function(e){if(Array.isArray(e))return t_(e)}(o=e.sections_viewed)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,t){if(e){if("string"==typeof e)return t_(e,void 0);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 t_(e,void 0)}}(o)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),e.sections_total>0&&(a[th.sections_total]=e.sections_total),e.landing_page_id&&(a[th.landing_page_id]=e.landing_page_id),e.landing_page_fields_id&&(a[th.landing_page_fields_id]=e.landing_page_fields_id),e.page_variation_id&&(a[th.page_variation_id]=e.page_variation_id),e.page_variation_fields_id&&(a[th.page_variation_fields_id]=e.page_variation_fields_id),a},tO=function(e,t){var n,r=tw(e,t),i=JSON.stringify(r),o=r[th.sections_viewed];if(o)for(;n=i,new TextEncoder().encode(n).length>500&&o.length>0;)o.shift(),0===o.length&&delete r[th.sections_viewed],i=JSON.stringify(r);return i},tP=function(){try{var e=tO(eG(),Date.now()),t={expires:1,sameSite:"Lax"},n=ty();n&&(t.domain=n),s().set("hf_ssr_lp_signals",e,t)}catch(e){tm.Tb(e)}},tS=tg()(tP,2e3),tk=function(){(0,c.useEffect)(function(){var e,t,n=Date.now(),r=!1,i=function(){r||Date.now()-n<5e3||(r=!0,ez())},o=function(){"hidden"===document.visibilityState&&i()},a="function"==typeof window.matchMedia&&window.matchMedia("(pointer: coarse)").matches;if(document.addEventListener("visibilitychange",o),a){var l=null,c=null;t=function(){var e=Date.now(),t=window.scrollY;if(null!==c&&null!==l){var n=e-c;(n>0?(l-t)/n:0)>=.5&&i()}l=t,c=e},window.addEventListener("scroll",t,{passive:!0})}else e=function(e){e.clientY<=0&&i()},document.addEventListener("mouseleave",e);return function(){document.removeEventListener("visibilitychange",o),t&&window.removeEventListener("scroll",t),e&&document.removeEventListener("mouseleave",e)}},[])},tE=function(){(0,c.useEffect)(function(){var e=function(){var e=document.documentElement.scrollHeight;e<=0||eH((window.scrollY+window.innerHeight)/e*100)};return e(),window.addEventListener("scroll",e,{passive:!0}),function(){window.removeEventListener("scroll",e)}},[])},tZ=function(e){var t=e.landing_page_id,n=e.landing_page_fields_id,r=e.page_variation_id,i=e.page_variation_fields_id,o=e.sections_total,a=e.writeCookie,u=e.children;(0,c.useEffect)(function(){eY()},[]),tE(),e$(),tk(),(0,c.useEffect)(function(){var e,l=a?(e=function(){tS()},eF.add(e),function(){eF.delete(e)}):void 0;return eW(t,n,r,i),eK(null!=o?o:0),a&&tS(),function(){null==l||l(),tS.cancel()}},[t,n,r,i,o,a]);var s=(0,c.useMemo)(function(){return{addSectionViewed:eX,setCTAClick:eq,writeSignalsCookieSync:a?tP:function(){}}},[a]);return(0,l.tZ)(tv.Y.Provider,{value:s,children:u})},tj=function(e){var t,n,r=(0,d.t)().asPath.split(/[?#]/)[0],i=(0,tp.Z)("IF-signal-collector-enabled",{page_path:r}),o=i.isEnabled,a=i.isReady;return(0,l.tZ)(tZ,(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}({}
1,e),n=n={writeCookie:a&&o},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))};function tx(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 tI(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 tC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return tx(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 tx(e,t)}}(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.")}()}var tA="StoredCouponCode",tT={sectionContainer:{height:"100%"}},tL=function(e){var t,n,r,i,o,a,u,p,g=e.contentfulData,j=e.ssrPageVariationId,x=e.ssrExperimentDecisions,I=e.edgeExperimentData,A=e.paidLP_publicId,T=e.isCollection,L=e.collection,D=(0,O.b)().requestUrl,M=(0,d.t)(),N=M.query,B=M.asPath,F=M.isReady,U=N.page,R=(0,c.useMemo)(function(){var e={};return new URLSearchParams(window.location.search).forEach(function(t,n){e[n]=t}),e},[N]),V=(0,y.Z)(),G=(0,h.Z)(),H=tC((0,Z.I)(),1)[0],X=tC((0,w.KO)(_.K),1)[0],q=C();eB(),e0(),tt();var z=(0,eS.T)(),W=(0,eP.Z)().push,K=(0,ti.a8)().track,J=(0,e1.Z)(),Y=J.trackStatsigEvents,$=J.isReady,Q=eL(),et=Q.logDiscountExpAnalytics,en=Q.isReady;td(x),(0,c.useEffect)(function(){var e=new URLSearchParams(window.location.search);if(e.has("c")||e.has("discount_comm_id")){var t=z.startSpan("lp-router-query-mismatch");t.setAttributes({"diagnostic.router_is_ready":F,"diagnostic.query_has_c":"c"in N,"diagnostic.query_has_discount_comm_id":"discount_comm_id"in N,"diagnostic.url_c":e.get("c")||"","diagnostic.url_discount_comm_id":e.get("discount_comm_id")||""}),t.end()}},[]);var er=(0,eO.q)(),ei=er.funnelTrackingFields,eo=er.funnelId,ea=er.visitId,el=er.funnelName;(0,tf.e)(L?null:eo,ea,L?null:el,L?{collection_id:L.collectionId,collection_fields_id:L.collectionFieldsId,page_variation_id:L.pageVariationId,page_variation_fields_id:L.pageVariationFieldsId}:null);var ec=(0,tr.O)(),eu=ec.id,eg=ec.attributes,em=g.variationItem,ey=em.pageVariation.fields,e_=g.pageEntry,ew=null===(t=g.ssrData)||void 0===t?void 0:t.default.voucherInfo,ek="Website"===ey.pageEnvironment,eE=g.ssrData||{default:{}},eZ="/"===B,ej=em.pageVariation.createdAt,ex=em.pageVariation.updatedAt,eC=null==B?void 0:null===(n=B.split("?"))||void 0===n?void 0:n[0],eA=eM.some(function(e){return eC===e}),eT=s().get("lp_experiment_id"),eD=s().get("lp_experiment_variation"),eN=(0,c.useMemo)(function(){var e=ey.voucherCodeExperiment;return!(null==R?void 0:R.dis_channel)&&R.discount_exp&&e?(b.ZP.setItem(tA,e),e):(null==ew?void 0:ew["voucher.isDefaultVoucher"])?ew["voucher.code"]:R.c||b.ZP.getItem(tA)},[ey.voucherCodeExperiment,R,ew]),eF=e6(eN),eU=(0,c.useCallback)(function(e){return(0,P.v6)(function(e){return(0,P.QV)({value:e,ruleSet:null==ey?void 0:ey.ruleSet,dynamicParams:tI({},(0,P.zi)(H),R)})},m()(e))},[H,null==ey?void 0:ey.ruleSet,R]),eR=(0,c.useMemo)(function(){var e;return null==ey?void 0:null===(e=ey.sections)||void 0===e?void 0:e.map(function(e,t){var n=e.contentType,r=e.fields,i=eU(r),o="iframeSection"===n&&(null==i?void 0:i.isFullscreen);return{sectionVariables:i,isFullscreenIframe:o,id:r.id||"".concat(ey.id,"-").concat(n,"-").concat(t),contentType:n}})},[null==ey?void 0:ey.sections,eU,ey.id]),eV=tn(eR),eG=eV.articleItemNumbers,eH=eV.articleIndexItems;if((0,c.useEffect)(function(){s().get(k.rY)!==V&&s().set(k.rY,V,{expires:k.Q7})},[V]),(0,c.useEffect)(function(){S(eU((null==ey?void 0:ey.cookies)||{}))},[ey,eU]),(0,c.useEffect)(function(){var e=ey.id,t=em.variationId,n=null==R?void 0:R.dis_channel;n&&en&&et(e_,n);var r=s().get("hf_landing_page"),i=z.startSpan("landing-page.variation-allocation");i.setAttributes(tI({"landing-page.id":e,"landing-page.experiment-id":eT,"landing-page.variation-id":t,"landing-page.assigned-default-variation":"control"
1===t,"landing-page.variation-cookie":r,"landing-page.variation-mismatch":r&&r!==t},j&&{"landing-page.variation-ssr":j,"landing-page.variation-ssr-mismatch":j!==t},T&&{"funnel_router.collection_rendered":!0,"funnel_router.collection_render_mismatch":!!(j&&j!==t)},eT&&eD&&{"landing-page.page-variation-experiment-id-cookie":eT,"landing-page.page-variation-experiment-allocation":eD},I&&{"routing-middleware.experiment-id":I.experimentId,"routing-middleware.experiment-variation":I.experimentVariation,"routing-middleware.page-variation":I.pageVariation,"routing-middleware.evaluated-at-edge":!0})),i.end()},[g,en,W,eT,eD,ey,em,R,e_,z,j,I,T,et]),(0,c.useEffect)(function(){if($){var e=eZ?E.C_:E._b,t=eZ?"homePageLoad":"FirstPageVisit";W({event:"gaEventTrigger",event_name:e,gaEventCategory:"funnel",gaEventAction:t,gaEventLabel:B}),Y(e,{gaEventCategory:"funnel",gaEventAction:t,gaEventLabel:B}),W(tI({event:"gaEventTrigger",event_name:"Navigation_landingpageLoad",brand:G,tribe:"Conversions Journey",EventCategory:"funnel",EventAction:"landingPageLoad",EventLabel:window.location.href,renderedPageVariation:em.variationId},ei)),Y("Navigation_landingpageLoad",tI({brand:G,tribe:"Conversions Journey",gaEventCategory:"funnel",gaEventAction:"landingPageLoad",gaEventLabel:window.location.href,renderedPageVariation:em.variationId},ei)),eA&&(W(tI({event:"gaEventTrigger",event_name:"Navigation_PaidLandingpageLoad",brand:G,tribe:"Conversions Journey",EventCategory:"funnel",EventAction:"landingPageLoad",EventLabel:window.location.href,renderedPageVariation:em.variationId},ei)),Y("Navigation_PaidLandingpageLoad",tI({brand:G,tribe:"Conversions Journey",gaEventCategory:"funnel",gaEventAction:"landingPageLoad",gaEventLabel:window.location.href,renderedPageVariation:em.variationId},ei)))}},[$,Y,B,W,eZ,em,eA,G,ei]),(0,c.useEffect)(function(){if(eu&&$&&eT&&eD){var e=Object.fromEntries(Object.entries(eg).filter(function(e){var t=tC(e,2),n=t[0];return null!==t[1]&&"userPersistedValues"!==n&&"$opt_experiment_bucket_map"!==n}));K((0,to.QWl)({event_name:"ExpLib_Decide",type:"variation",experiment_key:eT,variation_key:eD,customer_uuid:""}),{action:"Experimentation Decide",action_type:"system_message",is_ecommerce:!1}),W(tI({event:"gaEventTrigger",event_name:"ExpLib_Decide",type:"variation",experiment_key:eT,variation_key:eD,customer_uuid:"",hf_public_id:eu},e)),Y("ExpLib_Decide",tI({type:"variation",experiment_key:eT,variation_key:eD,customer_uuid:"",hf_public_id:eu},e))}},[W,K,Y,$,eg,eu,eT,eD]),(0,c.useEffect)(function(){eF&&Y("Voucher_VoucherFromURL",{EventCategory:"coupons",EventAction:B,EventLabel:"".concat(eN," | ").concat(eF.discount_type," | ").concat(eF.discount_value),brand:G,tribe:"Conversions Journey"})},[Y,eN,eF,B,G]),!ey||!e_||!ey.sections)return null;var eX=null==eR?void 0:eR.find(function(e){var t;return(null===(t=e.sectionVariables)||void 0===t?void 0:t.showStickyBar)||"stickyBarSection"===e.contentType}),eq=null==eX?void 0:eX.sectionVariables,ez=!!(null==eq?void 0:eq.showTopNav),eW=null!==(r=null==eR?void 0:eR.findIndex(function(e){return"urgencyBanner"===e.contentType}))&&void 0!==r?r:-1,eK=ez?(0,l.tZ)(eh,{logoSrc:null==eq?void 0:eq.stickyBarLogo,logoWidth:null==eq?void 0:eq.stickyBarLogoWidth,logoHeight:null==eq?void 0:eq.stickyBarLogoHeight,ctaText:null==eq?void 0:eq.topNavCtaText,ctaUrl:null==eq?void 0:eq.topNavCtaUrl,queryParams:R,sectionId:null==eX?void 0:eX.id}):null;return(0,l.BX)(l.HY,{children:[(0,l.tZ)(ee,{pageEntry:e_,ruleSet:ey.ruleSet,seoURL:D,sections:ey.sections}),(0,l.tZ)(tc,{}),(0,l.tZ)(ta.Ch,{}),(0,l.tZ)(tj,{landing_page_id:null!==(i=e_.entryId)&&void 0!==i?i:null,landing_page_fields_id:null!==(o=e_.fields.id)&&void 0!==o?o:null,page_variation_id:null!==(a=em.pageVariation.entryId)&&void 0!==a?a:null,page_variation_fields_id:null!==(u=em.pageVariation.fields.id)&&void 0!==u?u:null,sections_total:null!==(p=null==eR?void 0:eR.length)&&void 0!==p?p:0,children:(0,l.BX)(ev.ZP,{children:[(0,l.tZ)(ef.Z,{scope:"landing-page-sections",tags:[["content-module","stickyBar"]],fallback:(0,l.tZ)(ed.X,{error:Error("Client Side Error"),contentType:"stickyBar",id:"sticky-bar-section"}),children:(0,l.tZ)(eb.default,tI({sections:eR,pageId:e_.fields.id,queryParams:R,couponCode:eN},A&&{paidLP_publicId:A}))}),(0,l.tZ)(ef.Z,{scope:"landing-page-sections",tags:[["content-module","breadcrumbs"]],fallback:(0,l.tZ)(ed.X,{error:Error("Client Side Error"),contentType:"breadcrumbs",id:"breadcrumbs-section"}),children:(0,l.tZ)(es,{page:U})}
1),(0,l.BX)(ep.C,{children:[-1===eW&&eK,null==eR?void 0:eR.map(function(e,t){var n,r,i,o,a=e.sectionVariables,u=e.isFullscreenIframe,s=e.id,d=e.contentType,p=(n=tI({},eE[d],eE.default),r=r={createdAt:ej,updatedAt:ex},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n),b=tu.N[d];if(!b){var g=z.startSpan("landing-page.missing-section");return g.setAttributes({"landing-page.id":ey.id,"landing-page.section-contentType":d,"landing-page.section-id":s}),g.end(),null}return"scrollSection"===d&&(i=null==a?void 0:a.type),(0,l.BX)(c.Fragment,{children:[(0,l.BX)("div",{style:u?tT.sectionContainer:{position:"relative"},"data-component-id":d,"data-test-id":s,id:s,children:[X&&(0,l.BX)(f.xu,{position:"absolute",top:"0",left:"0",zIndex:9,backgroundColor:"alias.brand.background.darker",children:[(0,l.BX)(f.xv,{color:"shared-alias.neutral.foreground.inverse",children:["Module Name: ",d]}),(0,l.tZ)("br",{}),(0,l.BX)(f.xv,{color:"shared-alias.neutral.foreground.inverse",children:["Contentful Id: ",s]})]}),(0,l.tZ)(eI,{sectionId:s,sectionType:d,scrollSectionType:i,sectionIndex:t,sectionCount:null!==(o=null==eR?void 0:eR.length)&&void 0!==o?o:0,variationId:em.variationId,children:(0,l.tZ)(ef.Z,{scope:"landing-page-sections",tags:[["content-module",d]],fallback:(0,l.tZ)(ed.X,{error:Error("Client Side Error"),contentType:d,id:s}),children:t>2&&eA?(0,l.tZ)(v.Z,{children:(0,l.tZ)(b,tI({sectionId:s,contentType:d,pageId:e_.fields.id,queryParams:R,couponCode:eN,locale:e_.fields.countryLocale,isWebsite:ek,ssrData:p,rcs:q,publicExperimentDecisions:null==x?void 0:x.public},a,A&&{paidLP_publicId:A},eG[t]&&{itemNumber:eG[t]},"articleIndexSection"===d&&{items:eH}))}):(0,l.tZ)(b,tI({sectionId:s,contentType:d,pageId:e_.fields.id,queryParams:R,couponCode:eN,locale:e_.fields.countryLocale,isWebsite:ek,ssrData:p,publicExperimentDecisions:null==x?void 0:x.public,rcs:q},a,A&&{paidLP_publicId:A},eG[t]&&{itemNumber:eG[t]},"articleIndexSection"===d&&{items:eH}))})})]}),t===eW&&eK]},"lp_section_".concat(s))})]})]})})]})},tD=function(e){var t=e.children,n=e.styles;return(0,l.BX)(l.HY,{children:[(0,l.BX)(T(),{children:[(0,l.tZ)("style",{id:"landing-pages-global-styles",dangerouslySetInnerHTML:{__html:n}},"landing-pages-global-styles"),(0,l.tZ)("link",{rel:"preconnect",href:"https://img.hellofresh.com/"}),(0,l.tZ)("link",{rel:"dns-prefetch",href:"https://img.hellofresh.com/"})]}),t]})},tM=function(){var e=(0,M.Fg)();return(0,c.useMemo)(function(){return"\n        * {\n          box-sizing: border-box;\n          margin: 0;\n          padding: 0;\n        }\n        html,\n        body {\n          height: 100%;\n          width: 100%;\n          padding: 0;\n          margin: 0;\n          background: ".concat(e.colors.neutral[100],";\n          font-family: ").concat(e.fonts.primary,";\n          font-weight: 400;\n          font-size: 16px;\n          color: ").concat(e.colors.neutral[800],";\n          scroll-behavior: smooth;\n        }\n      ")},[e])},tN=n(228001),tB=n(141849);function tF(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 tU=function(e){var t,n=e.experimentName,r=e.cookieName,i=e.variationCookieValueMap,o=(0,tN.Z)().isMobile,a=function(e){if(Array.isArray(e))return e}(t=(0,tB.Z)())||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),2!==o.length);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw r}}return o}}(t,2)||function(e,t){if(e){if("string"==typeof e)return tF(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 tF(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.")}(),l=a[0],u=a[1];return(0,c.useEffect)(function(){if(o&&n){var e,t=l.activate(n);u&&t&&s().set(r,null!==(e=i[t])&&void 0!==e?e:i.default,{expires:31})}},[l,n,u,r,i,o]),null},tR=function(){return(0,p.Z)()?null:(0,l.tZ)(tU,{cookieName:"",experimentName:"",variationCookieValueMap:{default:""}})},tV=n(870199),tG=n(158256),tH=function(e){var t=e.children,n=(0,j.z)("website").data,r=I()(n,"newFeatures.enableWebCMDSModal"),i=(0,d.t)();return r?i.query.business?(0,l.tZ)(tV.Z,{registerModals:[tG.nK.communityPerksModal],children:t}):(0,l.tZ)(tV.Z,{registerModals:[tG.nK.communityDiscountModal],children:t}):(0,l.tZ)(l.HY,{children:t})},tX=n(650603),tq=n(336490),tz=n(953142),tW=n(164377),tK=function(e){var t=e.children,n=(0,d.t)().push,r=(0,tz.y)(),i=r.shouldUseCheckoutStatusEndpoint,o=r.checkoutRedirect,a=r.isCheckoutStatusFetched,u=(0,e8.u)({},{suspense:!1,enabled:!i}).data,s=(0,h.Z)()===D.Z.hellofresh,f=(0,tW.H)(),p=function(){var e=f();if(e.isReady){if(e.isEnabled){n(e.welcomeSpacePath);return}n("/my-deliveries")}};return(0,c.useEffect)(function(){if(i){if(!a)return;"home"===o&&(s?n("/my-account/deliveries/menu"):p());return}(null==u?void 0:u.items.length)&&s&&n("/my-account/deliveries/menu"),(null==u?void 0:u.items.length)&&!s&&p()},[u,n,s,f,i,o,a]),(0,l.tZ)(l.HY,{children:t})},tJ=n(117608),tY=n(783244);function t$(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 tQ=function(e){var t,n=e.children,r=e.params,i=(0,tJ.Z)();return(function(e){if(Array.isArray(e))return e}(t=(0,tY.Z)("hf_initial_page"))||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),1!==o.length);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw r}}return o}}(t,1)||function(e,t){if(e){if("string"==typeof e)return t$(e,1);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 t$(e,1)}}(t,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]?(0,l.tZ)(l.HY,{children:n}):"about"===r.pagePrefix&&"homepage"===r.pageSubpath&&i?(0,l.tZ)(tK,{children:n}):(0,l.tZ)(l.HY,{children:n})},t0=n(101272);function t1(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 t2=function(e){var t,n=function(e){if(Array.isArray(e))return e}(t=(0,c.useState)(null))||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),2!==o.length);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw r}}return o}}(t,2)||function(e,t){if(e){if("string"==typeof e)return t1(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 t1(e,2)}}(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=n[0],i=n[1],o=(0,e2.Z)(),a=o.defaultSku,l=o.productSkus,u=o.planFamily,f=o.isPlansConfigFetched,p=(0,d.t)().query;return(0,c.useEffect)(function(){if(e&&e["voucher.code"]&&f){var t=s().get(k._f)||"",n=(null==u?void 0:u.children.find(function(e){return e.handle===(t||a)}))||(null==u?void 0:u.children[0]),r=(0,t0.X5)({product:n,voucherInfo:e}).price;i({code:e["voucher.code"],isFromUrl:!!p.c,pricingDetails:{subTotal:(0,t0._k)(null==n?void 0:n.price),shippingAmount:"number"==typeof r&&r>0?100*r:0},productDetails:{servings:((null==n?void 0:n.specs.meals)||0)*((null==n?void 0:n.specs.size)||0),sku:a},productSkus:l})}},[f,a,l,e,u,p]),{eventData:r}},t7=n(253508),t6=n(23807),t8=function(e){var t=e.code,n=e.productDetails,r=n.sku,i=n.servings,o=e.pricingDetails,a=o.subTotal,c=o.shippingAmount,u=e.isFromUrl,s=(0,t7.Z)(t,a,c,i,!!u,r),d=s.gaEventLabel,f=s.data;return(0,l.tZ)(t6.Z,{code:t,shippingAmount:c,subTotal:a,eventLabel:d,trackingData:f,isFromUrl:u,sku:r})},t4=n(364468),t3=n(786282);function t5(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 t9=function(e){var t,n,r=e.code,i=e.productDetails,o=e.productSkus,a=e.visitorPostalCode,u=function(e){if(Array.isArray(e))return e}(t=(0,c.useState)(!1))||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),2!==o.length);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw r}}return o}}(t,2)||function(e,t){if(e){if("string"==typeof e)return t5(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 t5(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.")}(),s=u[0],f=u[1],p=(0,d.t)(),v=p.query,b=(0,eS.T)(),g=(0,c.useRef)(),m=(0,eP.Z)().push,y=i.sku,h=(0,t4.Z)(),_=h.isEnabled,w=h.isReady,O=(0,c.useMemo)(function(){return w&&_&&a?a:""},[w,_,a]),P=(0,t3.m)({voucherCode:r,productSkus:o||[y],zipcode:O}),S=P.isSuccess,k=P.isError,E=P.data,Z=null==E?void 0:null===(n=E.presets)||void 0===n?void 0:n[y],j=(null==E?void 0:E.discount_communication_id)||(null==v?void 0:v.discount_comm_id),x=!s&&S&&Z,I=p.asPath.split("?")[0];return(0,c.useEffect)(function(){x&&(m({event:"donotTrack",gaEventAction:"promoView",gaEventCategory:I,gaEventNonInteraction:!0,gaEventLabel:"".concat(r," | ").concat(j),data:{code:r,message:(null==Z?void 0:Z.lead_collection_modal_discount_message)||(null==Z?void 0:Z.title)}}),f(!0))},[x,m,Z,j,r,I,k]),(0,c.useEffect)(function(){return!k&&Z||g.current||(g.current=b.startSpan("lp-wunderkind-pps-notification-emitter"),g.current.setAttributes({error:k,discountCommunicationId:j,couponCode:r,discountMessage:null==Z?void 0:Z.title,zipcode:O})),function(){g.current&&(g.current.end(),g.current=void 0)}},[r,j,k,Z,b,w,O]),(0,l.tZ)(l.HY,{})},ne=function(e){var t=e.voucherInfo,n=e.shouldRenderPricePresentationEmitter,r=e.visitorPostalCode,i=t2(t).eventData;return(0,l.tZ)(v.Z,{suspense:!0,children:i&&(0,l.tZ)(n?t9:t8,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}({},i,n&&{visitorPostalCode:r}))})},nt=n(929651),nn=n(237947),nr=n(26730),ni={dm:["meals","servings","first-box-meals","free-box","buy1get1"],dm_gifts:["gifts"],dm_dollars:["true"],dm_custom:["tote","zon"]},no=["hf_dm_meals","hf_dm_box","hf_dm_gifts","hf_dm_dollars","hf_dm_custom"],na=function(e){var t=e.isPricePresentationEnabledOnMLP,n=e.isLandingPageWithWunderkind,r=e.ssrParams,i="1"===(0,nn.o)().hf_ssr_e_gift_card_checkout;return!!n&&!!t&&!i&&(r.systemCountry!==nr.Z.US||!!r.discount_comm_id||!(function(){var e=function(e){if(r[e])return{v:ni[e].some(function(t){return t===r[e]})}};for(var t in ni){var n=e(t);if("object"==(n&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n))return n.v}}()||no.some(function(e){return!!s().get(e)})))},nl=n(982436),nc=n(57204),nu=n(10362),ns=n(132021),nd=n(763724),nf=n(231140),np=n(598669),nv=n(479922),nb=(r={},i=nr.Z.US,o="/pages/meal-kit-delivery-now",i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,r);function ng(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 nm=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=(0,e4.l)(),n=(0,nv.Z)(),r=(0,ei.Z)(),i=(0,c.useMemo)(function(){return s().get("_HFtr")},[]),o=(0,c.useMemo)(function(){return s().get("hf_ssr_funnel_drop_off_point")},[]),a=t.getItem("hf_cross_page_experiment_decisions");(0,c.useEffect)(function(){i&&n.setAttributes({"LP-visitor-id":i});var t=((null==o?void 0:o.split("-"))||[])[1],l=new Date().getTime(),c=!(t&&l-Number(t)>36e5);if(n.setAttributes({"LP-first-visit":c}),a)try{Object.entries(a).forEach(function(e){var t=function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),2!==o.length);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw r}}return o}}(e,2)||function(e,t){if(e){if("string"==typeof e)return ng(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 ng(e,2)}}
1(e,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=t[0],i=t[1];r&&i&&n.setAttributes({experiment_key:r,variation_key:String(i)})})}catch(e){console.error("Failed to parse experiment data from sessionStorage:",e)}var u=function(){document.body.scrollHeight-window.innerHeight-(window.scrollY||window.pageYOffset||document.documentElement.scrollTop)<=100&&e&&n.track("Survey_LP",{experiment:e,country:r})};if(window.location.pathname===nb[r])return window.addEventListener("scroll",u),function(){window.removeEventListener("scroll",u)}},[n,r,e,i,o,a])},ny=function(e){return nm(e.pageVariationId),null},nh=n(283478);function n_(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 nw(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 nO(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return n_(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 n_(e,t)}}(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.")}()}var nP=function(){var e=nO((0,c.useState)(!1),2),t=e[0],n=e[1],r=nO((0,c.useState)(!1),2),i=r[0],o=r[1],a=nO((0,c.useState)(!1),2),l=a[0],u=a[1],f=(0,tr.O)(),p=f.id,v=f.attributes,b=(0,ti.a8)().track,g=nO((0,c.useMemo)(function(){var e,t;return null!==(t=null===(e=s().get("redirection_experiment_id_and_variation"))||void 0===e?void 0:e.split("/"))&&void 0!==t?t:[]},[]),2),m=g[0],y=g[1],h=(0,nh.M0)().allServerDecisionsPublicUser,_=(0,ew.py)({runUsingStatsig:!0}),w=_.isReady,O=_.track,P=(0,eP.Z)().push,S=(0,eS.T)(),k=(0,d.t)().asPath;(0,c.useEffect)(function(){w&&!i&&m&&y&&p&&(o(!0),O({experimentationUserId:null!=p?p:"",experimentationUserAttributes:v,eventName:"ExpLib_Decide",eventTags:{Eventcategory:"experiment_exposure",EventAction:"experiment_key: ".concat(m),EventLabel:"variation_key: ".concat(y," | ").concat(k),brand:"HelloFresh",tribe:"Conversions"}}))},[w,i,O,p,v,m,y,k]),(0,c.useEffect)(function(){if(!t&&m&&y&&p){n(!0);try{var e=Object.fromEntries(Object.values(v).filter(Boolean));P(nw({event:"gaEventTrigger",type:"redirection",event_name:"ExpLib_Decide",experiment_key:m,variation_key:y,hf_public_id:p,customer_uuid:"",squad:"customer-clarity"},e));var r=S.startSpan("redirection-experiment-allocation");r.setAttributes({experiment_key:m,variation_key:y}),r.end()}catch(e){}}},[v,t,k,P,S,p,m,y]),(0,c.useEffect)(function(){if(h&&!l&&w){var e=Object.fromEntries(Object.entries(v).filter(function(e){var t=nO(e,2),n=t[0];return null!==t[1]&&"userPersistedValues"!==n&&"$opt_experiment_bucket_map"!==n}));for(var t in h){var n=h[t].variationKey;b((0,to.QWl)({event_name:"ExpLib_Decide",experiment_key:t,variation_key:n||""}),{action:"Experimentation Decide",action_type:"system_message",is_ecommerce:!1}),O({experimentationUserId:p,experimentationUserAttributes:v,eventName:"ExpLib_Decide",eventTags:{experiment_key:t,variation_key:n,path:k,brand:"HelloFresh",screen:"Landing Page",tribe:"Conversions",hf_public_id:p}}),P(nw({event:"gaEventTrigger",event_name:"ExpLib_Decide",experiment_key:t,variation_key:n||"",hf_public_id:p,squad:"customer-clarity"},e))}u(!0)}},[h,v,k,p,O,P,l,u,b,w])},nS=n(308246),nk=n(923572),nE=n(365116),nZ=n(932066);function nj(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 nx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nI(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){nx(e,t,n[t])})}return e}function nC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return nj(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 nj(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.")}()}var nA=function(){var e,t,n=nC((0,c.useState)(!1),2),r=n[0],i=n[1],o=nC((0,c.useState)(!1),2),a=o[0],l=o[1],u=(0,tr.O)().attributes,s=(0,h.Z)(),f=(0,d.t)().query,p=null==f?void 0:null===(t=f.redirect_experiment)||void 0===t?void 0:null===(e=t.split(":"))||void 0===e?void 0:e[0],v=null==f?void 0:f.group,b=null==f?void 0:f.hf_public_id,g=(0,ew.py)({runUsingStatsig:!0}),m=g.isReady,y=g.track,_=(0,eP.Z)().push,w=(0,eS.T)(),O=(0,d.t)().asPath;(0,c.useEffect)(function(){m&&!a&&p&&v&&b&&(y({experimentationUserId:null!=b?b:"",experimentationUserAttributes:u,eventName:"ExpLib_Decide",eventTags:{Eventcategory:"experiment_exposure",EventAction:"experiment_key: ".concat(p),EventLabel:"variation_key: ".concat(v," | ").concat(O),brand:s,tribe:"Conversions"}}),l(!0))},[m,a,y,b,u,p,v,O,s]),(0,c.useEffect)(function(){if(!r&&p&&v&&b)try{var e=Object.entries(u).filter(function(e){var t=nC(e,2);return t[0],!!t[1]}).reduce(function(e,t){var n,r,i=nC(t,2),o=i[0],a=i[1];return n=nI({},e),r=nx({},o,a),r=null!=r?r:{},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n},{});_(nI({event:"gaEventTrigger",type:"redirection",event_name:"ExpLib_Decide",experiment_key:p,variation_key:v,hf_public_id:b,customer_uuid:"",squad:"customer-clarity"},e));var t=w.startSpan("redirection-experiment-allocation");t.setAttributes({experiment_key:p,variation_key:v}),t.end(),i(!0)}catch(e){}},[u,r,O,_,w,b,p,v])},nT=function(e){var t,n,r,i,o,a,u,v,b,g,m,y,h,_,w,O,P,S=e.ssrPayload,k=S.brand===D.Z.hellofresh&&S.params.c,E=S.commsConfigurationData,Z=E&&E.campaigns.length>0,j=!!(k&&!S.isPageWebsite&&(null===(r=S.rcs)||void 0===r?void 0:r.isWunderkindEnabled)),x=na({isLandingPageWithWunderkind:j,isPricePresentationEnabledOnMLP:!!(null===(i=S.rcs)||void 0===i?void 0:i.pricePresentationMLP),ssrParams:S.params}),I=S.contentfulLandingPagesEntries,C=I.pageEntry.fields.brand,A=null===(o=I.ssrData)||void 0===o?void 0:o.default.voucherInfo,T=tM(),L=(0,p.Z)()&&S.brand===D.Z.hellofresh,M=S.mobileWebView.active||!1,N=!!S.isPageWebsite&&!M;nP(),nA();var B=(0,d.t)();(0,c.useEffect)(function(){var e,t=null==B?void 0:null===(e=B.query)||void 0===e?void 0:e.berry_street_id;t&&s().set("bs_id_tracking",t,{expires:7})},[null==B?void 0:B.query]),(0,c.useEffect)(function(){var e=document.querySelector('a[href="#page"]');if(e)return e.setAttribute("href","#main-content"),function(){e.setAttribute("href","#page")}},[]);var F=null===(v=S.contentfulLandingPagesEntries)||void 0===v?void 0:null===(u=v.pageEntry)||void 0===u?void 0:null===(a=u.fields)||void 0===a?void 0:a.hideAllMicroTags,U=null!==(O=(null==S?void 0:S.funnelId)||(null==S?void 0:null===(b=S.modularFunnel)||void 0===b?void 0:b.entryId))&&void 0!==O?O:null,R=null!==(P=(null==S?void 0:S.funnelName)||(null==S?void 0:null===(g=S.modularFunnel)||void 0===g?void 0:g.funnelName))&&void 0!==P?P:null;return(0,l.BX)(nt.sE,{children:[(0,l.tZ)(nl.gd,{children:(0,l.tZ)(nu.Z,{IPCountry:null==S?void 0:S.IPCountry,children:(0,l.tZ)(nc.M,{microTagsEntries:(null==S?void 0:S.microTagsEntries)||[],singleMicroTagEntry:null==S?void 0:S.singleMicroTagEntry,hideAllMicroTags:F})})}),(0,l.BX)(tq.M,{brand:C,children:[(0,l.tZ)(tQ,{params:S.params,children:(0,l.tZ)(tH,{children:(0,l.tZ)(nk.tr,{children:(0,l.tZ)(nS.Gs,{children:(0,l.BX)(tD,{styles:T,children:[(0,l.BX)(f.xu,{position:"sticky",top:N?["60px","56px"]:"zero",zIndex:2,children:[L&&(0,l.tZ)(np.Z,{}),(0,l.tZ)(ns.Z,{customFilter:function(e){var t,n,r;return!(null===(t=e.meta)||void 0===t?void 0:t.isVoucherNotification)&&!(null===(n=e.meta)||void 0===n?void 0:n.isPricePresentationNotification)&&!(null===(r=e.meta)||void 0===r?void 0:r.isToastNotification)},children:(0,l.tZ)(nd.Z,{})}),j&&(0,l.tZ)(ne,{voucherInfo:A,shouldRenderPricePresentationEmitter:x,visitorPostalCode:null==S?void 0:S.visitorPostalCode})]}),(0,l.tZ)("div",{id:"landing-page-variation-id","data-variation-id":null==I?void 0:null===(m=I.variationItem)||void 0===m?void 0:m.variationId}),(0,l.tZ)(nE.f,(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}({},Z&&{payload:{campaigns:E.campaigns},type:"dynamic-config"}),n=n={children:(0,l.tZ)(nZ.Z,{funnelId:U,visitId:null==S?void 0:S.visitId,funnelName:R,collection:null==S?void 0:S.collection,children:(0,l.tZ)(f.xu,{as:"main",id:"main-content",tabIndex:-1,
1children:(0,l.tZ)(tL,{contentfulData:I,ssrPageVariationId:S.mlpRouterPageVariation,ssrExperimentDecisions:null==S?void 0:S.experimentDecisions,edgeExperimentData:null==S?void 0:S.edgeExperimentData,paidLP_publicId:null===(y=S.experimentationPublicUser)||void 0===y?void 0:y.id,isCollection:null==S?void 0:S.isCollection,collection:null==S?void 0:S.collection},null==I?void 0:null===(_=I.pageEntry)||void 0===_?void 0:null===(h=_.fields)||void 0===h?void 0:h.countryLocale)})})},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))]})})})})}),(0,l.tZ)(nf.Z,{children:(0,l.tZ)(ny,{pageVariationId:null==I?void 0:null===(w=I.variationItem)||void 0===w?void 0:w.variationId})}),(0,l.tZ)(tR,{})]})]})};nT.customLayout=tX.ZP,nT.provideCustomLayoutProps=function(e){var t=e.ssrPayload,n=t.mobileWebView.active,r=t.hideWebviewHeader,i=!!e.ssrPayload.isPageWebsite&&!(r&&n);return{disableHeader:!i,disableFooter:!i,pageName:"landing-page"}};var nL=!0,nD=nT},781935:function(e,t,n){"use strict";n.d(t,{Y:function(){return r}});var r=(0,n(827378).createContext)(null)},264937:function(e,t,n){"use strict";n.d(t,{_:function(){return a}});var r=n(827378),i=n(781935),o={addSectionViewed:function(){},setCTAClick:function(){},writeSignalsCookieSync:function(){}},a=function(){var e=(0,r.useContext)(i.Y);return null!=e?e:o}},448767:function(e,t,n){"use strict";n.d(t,{X:function(){return a}});var r=n(687800);n(827378);var i=n(768587),o=n(396887),a=function(e){var t=e.error,n=e.contentType,a=e.id,l=(0,o.ew)();return(null==l?void 0:l.NEXT_PUBLIC_SERVER_ENV)!=="live"&&(null==l?void 0:l.NEXT_PUBLIC_SERVER_ENV)?(0,r.tZ)(i.xu,{p:"global.xs",backgroundColor:"shared-alias.warning.background.light",children:(0,r.BX)(i.xu,{p:"global.md-1",borderColor:"shared-alias.warning.border.default",borderWidth:"0.25rem",borderStyle:"solid",children:[(0,r.tZ)(i.xv,{as:"p",styleAs:"h2",children:t.message}),(0,r.BX)(i.xv,{as:"p",styleAs:"h3",children:[(0,r.tZ)("small",{children:"Content Type:"}),"\xa0",n]}),(0,r.BX)(i.xv,{as:"p",styleAs:"h3",children:[(0,r.tZ)("small",{children:"Content ID:"}),"\xa0",a]}),(0,r.tZ)(i.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}},240396:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(687800),i=n(827378);function o(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 a=i.createContext({stickyBarAlignment:void 0,setStickyBarAlignment:function(){}});t.C=function(e){var t,n=function(e){if(Array.isArray(e))return e}(t=(0,i.useState)())||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),2!==o.length);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw r}}return o}}(t,2)||function(e,t){if(e){if("string"==typeof e)return o(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 o(e,2)}}(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.")}(),l=n[0],c=n[1];return(0,r.tZ)(a.Provider,{value:{stickyBarAlignment:l,setStickyBarAlignment:c},children:e.children})}},450979:function(e,t,n){"use strict";n.d(t,{Jw:function(){return c},KH:function(){return o},OZ:function(){return s},Oz:function(){return b},Q7:function(){return f},QH:function(){return i},Qg:function(){return p},R2:function(){return l},_f:function(){return u},fv:function(){return v},ic:function(){return a},qC:function(){return r},rY:function(){return d}});
1var r="StoredCouponCode",i="hf_cart_id",o=30,a="hf_prefill_email",l="hf_ssr_cart_cct",c="hf_ssr_stored_plan",u="hf_ssr_stored_sku",s="classic",d="locale",f=300,p={veg:"veggie",family:"family"},v="hf_ssr_e_plans_config_is_freebie",b="hf_cookie_permissions"},214744:function(e,t,n){"use strict";n.d(t,{C_:function(){return u},Rr:function(){return i},So:function(){return o},_b:function(){return c},bM:function(){return r},ir:function(){return l},xr:function(){return a}});var r="FaqNavigation",i="PageLoadedWithQuestion",o="PageLoadedWithCategory",a="ClickQuestion",l="ClickCategory",c="Navigation_FirstPageVisit",u="Navigation_HomePageLoad"},101272:function(e,t,n){"use strict";n.d(t,{J1:function(){return k},X5:function(){return P},_k:function(){return y},bs:function(){return x},eU:function(){return I},hx:function(){return T},jO:function(){return C},l3:function(){return L},mQ:function(){return A}});var r,i,o=n(995099),a=n.n(o),l=n(152501),c=n.n(l),u=n(90104),s=n.n(u),d=n(450979);function f(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 p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v={meals:3,size:2},b={lowest:"lowest",mealSize:"mealSize"},g=function(e){var t=e.specs,n=t.meals,r=t.size;return"number"!=typeof n&&"number"!=typeof r},m=function(e){return null==e?void 0:e.toFixed(2)},y=function(e){return Math.max(0,Math.round(100*e)/100)},h=function(e){var t=e.price,n=e.discount,r=e.isPercentageDiscount,i=Number(n);return i?r?t*(100-i)/100:i<=t?t-i:0:t},_=function(e){var t=e.pricePer,n=void 0===t?"serving":t,r=e.product,i=e.price;if(g(r)||"total"===n)return y(i);var o=r.specs,a=o.meals,l=o.size;return"person"===n?y(i/l):y(i/a/l)},w=function(e){var t=e.product,n=e.voucherInfo,r=e.useOnlyProductVoucher;return n&&(s()(n["voucher.productTypes"])&&!(void 0!==r&&r)||c()(n["voucher.productTypes"],null==t?void 0:t.handle))},O=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"products";if(!e)return 0;var i=e&&e["voucher.boxRule"]?e["voucher.boxRule"][n]:0;return i&&(null==i?void 0:i.discount_sku)&&(i.applicable_to===r||"both"===i.applicable_to)&&i.discount_sku[t.handle]&&((null==i?void 0:i.discount_sku[t.handle])?i.discount_sku[t.handle].discount_value/100:0)||0},P=function(e){var t=e.product,n=e.voucherInfo;if(!t)return{};var r=O(n,t,1,"shipping"),i=Object.values(n&&n["voucher.boxRule"]||{}).some(function(e){return(null==e?void 0:e.applicable_to)==="both"||(null==e?void 0:e.applicable_to)==="shipping"}),o=h({price:t.special_fee/100,discount:r||i?n["voucher.value"]:0,isPercentageDiscount:n["voucher.isPercent"]}),a=n&&n["voucher.isFreeShipping"]||n&&0!==r&&Math.abs(o)>=t.special_fee/100,l=y(t.special_fee/100);return{price:l,discountedPrice:a?0:o||l}},S=function(e){var t=e.plan,n=e.product,r=e.voucherInfo,i=e.useOnlyProductVoucher;return w({product:n,voucherInfo:r,useOnlyProductVoucher:void 0!==i&&i})?h({price:n.price,discount:r["voucher.value"]||t.discount,isPercentageDiscount:r["voucher.isPercent"]||t.isPercentageDiscount}):n.price},k=function(e,t,n,r,i,o,a,l,c){if(!t||!e)return[];var u=E({products:e.children,voucherInfo:n,priceCriteria:i,useOnlyProductVoucher:r}),s=u.price,d=u.discountedPrice,f=o("funnel.plans.widget.price.per",{price:s,pricePer:i||"lowest"}),p=o("funnel.plans.widget.price.per",{price:d,pricePer:i||"lowest"}),v=o("funnel.plans.widget.buttonText"),b=o("funnel.plans.cards.fromPrice");return t.map(function(t,n){var r="featured=".concat(e.handle,":").concat(t.preferenceName,"&mealsize=").concat(l,"-").concat(c);return{name:a(t.preferenceTitle),description:o("funnel.".concat(t.description)),isHighlighted:t.default,ctaText:v,ctaUrl:"/plans?".concat(r),discountedPriceText:p,priceText:"".concat(b," ").concat(f),dataTestId:"plan-card-".concat(n,"-").concat(t.preferenceName),price:s,discountedPrice:d,preference:t.preferenceName}})},E=function(e){var t=e.plan,n=void 0===t?{}:t,r=e.products,i=e.voucherInfo,o=e.criteria,a=void 0===o?b.lowest:o,l=e.criteriaArgs,c=e.useOnlyProductVoucher,u=void 0!==c&&c,s=j(a,r.map(function(e){var t=S({plan:n,product:e,voucherInfo:i,useOnlyProductVoucher:u});return{specs:e.specs,product:e.name,price:_({pricePer:n.pricePer,product:e,price:e.price}),discountedPrice:_({pricePer:n.pricePer,product:e,price:t})}}),void 0===l?[]:l),d=s.price,f=s.discountedPrice;return{price:m(d),discountedPrice:m(f)}},Z=(p(i={},b.lowest,function(e){var t,n;return{price:null===(t=a()(e,"price")[0])||void 0===t?void 0:t.price,discountedPrice:null===(n=a()(e,"discountedPrice")[0])||void 0===n?void 0:n.discountedPrice}}),p(i,b.mealSize,function(e){var t=arguments.length>
11&&void 0!==arguments[1]?arguments[1]:v,n=e.find(function(e){var n=e.specs,r=n.meals,i=n.size;return r===t.meals&&i===t.size})||e[0];return{price:n.price,discountedPrice:n.discountedPrice}}),i),j=function(e,t,n){return(r=Z)[e].apply(r,[t].concat(function(e){if(Array.isArray(e))return f(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return f(e,void 0);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 f(e,void 0)}}(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))},x=function(e){var t=e.plansResponse,n=e.plans,r=e.voucherInfo,i=void 0===r?{}:r,o=e.priceCriteria,a=e.useOnlyProductVoucher,l=void 0!==a&&a;return n.reduce(function(e,n){var r=t.find(function(e){return e.handle===n.handle});return r?e.concat(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){p(e,t,n[t])})}return e}({name:n.name,description:n.description,isHighlighted:n.isHighlighted,ctaText:n.ctaText,ctaUrl:n.ctaUrl,discountedPriceText:n.discountedPriceText,dataTestId:n.dataTestId,priceText:n.priceText},E({plan:n,products:r.children,voucherInfo:i,criteria:o,useOnlyProductVoucher:l}))):e},[])},I=function(e){return Array.from(e.reduce(function(e,t){return e.add(t.specs.size)},new Set))},C=function(e,t){return e?e.filter(function(e){return e.specs.size===Number(t)}):[]},A=function(e){return Object.keys(d.Qg).find(function(t){return null==e?void 0:e.includes(d.Qg[t])})||d.OZ},T=function(e,t,n){if(!t||!e)return 0;var r=e.price,i=e.special_fee,o=0,a=0;for(var l in t){var c,u,s,d,f=null===(c=t[l])||void 0===c?void 0:c.discount_sku,p=null===(u=t[l])||void 0===u?void 0:u.applicable_to;if(!p)break;var v=(null==f?void 0:null===(s=f[e.handle])||void 0===s?void 0:s.discount_value)||(null===(d=t[l])||void 0===d?void 0:d.discount_value);if(!v)break;var b=v/100;n?(o+="products"===p||"both"===p?r*b/100:0,a+="shipping"===p||"both"===p?i:0):o+=b<=r?b:r}return o+a},L=function(e,t){return t&&e&&e.length&&e.find(function(e){return e.family===t.family&&e.specs.meals===t.specs.meals+1&&e.specs.size===t.specs.size})||null}},517753:function(e,t,n){"use strict";n.d(t,{Yh:function(){return V},RL:function(){return R},zi:function(){return F},dI:function(){return G},QV:function(){return N},l:function(){return H},ub:function(){return U},v6:function(){return L}}),n(92584);var r,i=n(971719),o=n.n(i),a=n(69689),l=n.n(a),c=n(992360),u=n.n(c),s=/^(geo|global)\./,d="global.",f=n(218629);function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v="type",b="value",g=RegExp("".concat("{","(?:(?<").concat(v,">\\w+):)?(?<").concat(b,">[^}]+)").concat("}"),"g"),m=new RegExp(g.source),y=f.Ry((p(r={},v,f.nK().oneOf(["js"]).optional()),p(r,b,f.Z_().required()),r)),h=n(295332),_=n(384949),w=n(135090),O=n(647211),P=n.n(O),S=n(297936),k=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,S.Z)();return P()(e,{weekStartsOn:t})},E=n(932400),Z=n.n(E),j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,S.Z)();return Z()(e,{weekStartsOn:t})},x=["currentDate","currentYear","currentMonth","currentHFWeekBounds","currentWeekBounds"],I=function(e,t){return"".concat((0,h.Z)(e,_.r_)," - ").concat((0,h.Z)(t,_.r_))},C={currentYear:function(){return new Date().getFullYear().toString()},currentMonth:function(){return(0,h.Z)(new Date,_.HC)},currentHFWeekBounds:function(){var e=(0,w.Z)(new Date);return I(e.start,e.end)},currentWeekBounds:function(){return I(k(new Date),j(new Date))},currentDate:function(){return new Date().getDate().toString()}};function A(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 T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return A(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 A(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.")}()}var L=function(e,t){return t?u()(t)?(Object.keys(t).forEach(function(n){return t[n]=L(e,t[n])}),t):e(t):t},D=function(e,t){return e.includes(t)},M=function(e,t){return e===t},N=function(e){var t=e.value,n=e.ruleSet,r=e.dynamicParams,i=e.excludedParamsRegexp,a=void 0===i?null:i;if("string"!=typeof t)return t;Object.keys(r).forEach(function(e){return r[e]=o()(r[e])});var l=t.toString().replace(g,function(e){var t,i,o=null===(i=m.exec(e))||void 0===i?void 0:i.groups;if(!y.isValidSync(o))throw Error("Invalid variable regex groups");if("js"===o[v])return(t=o[b],x.includes(t))?C[o[b]]():"";var l=null==n?void 0:n.fields.rules.find(function(e){var t=e.fields;return(null==t?void 0:t.name)===o[b]});return B({key:o[b],dynamicParams:r,rule:l,excludedParamsRegexp:a})});return"true"===l||"false"!==l&&l},B=function(e){var t=e.key,n=e.dynamicParams,r=e.rule,i=e.excludedParamsRegexp,o=void 0===i?null:i,a=n[t];if(a)return a;if(!r)return o&&o.test(t)?"".concat("{").concat(t).concat("}"):"";var c=r.fields.lookupTable.tableData;if(c){if(o&&c.some(function(e){var t=T(e,1)[0];return o.test(t)}))return"".concat("{").concat(t).concat("}");for(var u=0,d=[M,D];u<d.length;u++)for(var f=d[u],p=0;p<c.length;p++){var v,b=T(c[p],4),g=b[0],m=b[1],y=b[2],h=b[3],_=n[g];
1if(_&&m){var w=parseInt(m.trim());w-=1,_=_.split("_")[w]}if(y&&h&&_&&f(_,y)||(v=_,y&&v&&s.test(g)&&f(v,l()(y).toUpperCase().replace(/\s/g,"").replace(/[^\w]/g,""))))return h}}return r.fields.defaultValue},F=function(e){return Object.keys(e).reduce(function(t,n){return t[n.startsWith(d)?n:"".concat(d).concat(n)]=e[n],t},{})},U=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=T(arguments.length>2&&void 0!==arguments[2]?arguments[2]:["{","}"],2),r=n[0],i=n[1];return Object.keys(t).reduce(function(e,n){var o=RegExp("".concat(r).concat(n).concat(i),"g"),a=String(t[n]).replace(/\$([0-9])/g,"$$$&");return e.replace(o,a)},e)},R=function(e){return null!=e&&("string"==typeof e?m.test(e):Object.keys(e).some(function(t){return R(e[t])}))},V=function(e){return/<[a-z][\s\S]*>/i.test(e)},G=function(e){return e.replace(/-/g," ").split(" ").map(function(e){return e.charAt(0).toLocaleUpperCase()+e.slice(1)}).join(" ")},H=function(e){return e.replace(/href/g,"target='_blank' href")}},632117:function(e,t,n){"use strict";n.d(t,{S:function(){return s}});var r=n(687800),i=n(827378),o=n(448767),a=n(497249),l=n(396887);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 u=function(e){var t,n=e.error,r=e.contentType,o=e.id,u=e.isSoftValidation,s=(0,l.ew)(),d=(0,a.T)(),f=function(e){if(Array.isArray(e))return e}(t=(0,i.useState)(!1))||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),2!==o.length);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw r}}return o}}(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)}}(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.")}(),p=f[0],v=f[1];return((0,i.useEffect)(function(){if(!p&&n){var e=d.startSpan("landing-page.section-error-display"),t={"error.message":n.message,"contentful.contentType":r,"contentful.id":o,isSoftValidation:u};e.setAttributes(t),e.end(),v(!0)}},[n,r,o,d,p,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:p,setIsSent:v}:null};function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e.displayName||e.name||"Component",a=function(a){var l=a.sectionId,c=a.contentType||i,s=t.safeParse(a);if(u({error:s.error,contentType:c,id:l||"",isSoftValidation:n}),!s.success&&!n){var d=s.error;return(0,r.tZ)(o.X,{error:d,contentType:c,id:l||""})}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(i),a}},687992:function(e,t,n){"use strict";var r=n(827378),i=n(407792),o=n(943701),a=n(43011);t.Z=function(){var e=(0,a.Z)(),t=(0,i.O)(),n=(0,o.R)({runUsingStatsig:!0});return(0,r.useMemo)(function(){return e?{id:n.id,attributes:n.attributes,isReady:n.isReady}:{id:t.id,attributes:t.attributes,isReady:!0}},[e,t,n])}},243352:function(e,t,n){"use strict";n.d(t,{L:function(){return l}});var r=n(827378),i=n(60074),o=n(468778),a=n(52130),l=function(){var e=(0,a.L3)().trackJanusEvent;return{trackStartFunnelClick:(0,r.useCallback)(function(t){var n=t.sectionId,r=t.sectionType,a=t.uiComponentLabel;try{var l=o.n.sectionType({sectionContent:n,sectionType:r}),c=o.n.uiComponent({uiComponentName:n,uiComponentLabel:null!=a?a:null});e(o.n.janusEvent({sectionType:l,uiComponent:c}))}catch(e){(0,i.Tb)(e,{tags:{event:"LandingPage_Start_Funnel_Button_Click",component:"useLandingPageStartFunnelClickEvent",surface:"landing-page"}})}},[e])}}},719920:function(e,t,n){"use strict";var r=n(966622),i=n(527157),o=n(827378),a=n(687992);t.Z=function(){var e=(0,r.py)({runUsingStatsig:!0}),t=e.track,n=e.isReady,l=(0,i.Z)(),c=(0,a.Z)(),u=c.id,s=c.attributes,d=c.isReady;return{trackStatsigEvents:(0,o.useCallback)(function(e,n){if(d&&u){var r,i;t({experimentationUserId:u,experimentationUserAttributes:s,eventName:e,eventTags:(r=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),i=i={screen:"Landing Page",tribe:"Conversions Journey",brand:l},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):(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(i)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(i,e))}),r)})}},[t,u,s,l,d]),isReady:n&&d}}},937507:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(165218),i=n.n(r),o={benefitsCommunication:i()(function(){return Promise.all([n.e(47057),n.e(12696),n.e(64291),n.e(86282),n.e(41828),n.e(31570)]).then(n.bind(n,417318))},{loadableGenerated:{webpack:()=>[417318]}}),basicBannerSection:i()(function(){return Promise.all([n.e(47057),n.e(48317),n.e(12322)]).then(n.bind(n,84467))},{loadableGenerated:{webpack:()=>[84467]}}),frequentlyAskedQuestionsSection:i()(function(){return Promise.all([n.e(47057),n.e(12696),n.e(49779)]).then(n.bind(n,498840))},{loadableGenerated:{webpack:()=>[498840]}}),searchableFaqSection:i()(function(){return Promise.all([n.e(47057),n.e(42631),n.e(91157)]).then(n.bind(n,105853))},{loadableGenerated:{webpack:()=>[105853]}}),extendedBenefitsSection:i()(function(){return n.e(41e3).then(n.bind(n,913546))},{loadableGenerated:{webpack:()=>[913546]}}),bottomCtaSection:i()(function(){return n.e(35105).then(n.bind(n,368527))},{loadableGenerated:{webpack:()=>[368527]}}),reviewsSection:i()(function(){return Promise.all([n.e(47057),n.e(50134),n.e(18629),n.e(92584),n.e(8950),n.e(84259)]).then(n.bind(n,103773))},{loadableGenerated:{webpack:()=>[103773]}}),appInstallSection:i()(function(){return Promise.all([n.e(40412),n.e(95803)]).then(n.bind(n,886106))},{loadableGenerated:{webpack:()=>[886106]}}),mediaListSection:i()(function(){return Promise.all([n.e(50134),n.e(18629),n.e(92584),n.e(8950),n.e(35284),n.e(64280)]).then(n.bind(n,760371))},{loadableGenerated:{webpack:()=>[760371]}}),logoSection:i()(function(){return Promise.all([n.e(13882),n.e(86140)]).then(n.bind(n,102727))},{loadableGenerated:{webpack:()=>[102727]}}),pressSection:i()(function(){return Promise.all([n.e(12696),n.e(15905)]).then(n.bind(n,762230))},{loadableGenerated:{webpack:()=>[762230]}}),nextWeekMenuSection:i()(function(){return Promise.all([n.e(12696),n.e(98977),n.e(70569),n.e(64291),n.e(93158),n.e(63236)]).then(n.bind(n,408371))},{loadableGenerated:{webpack:()=>[408371]}}),provenSection:i()(function(){return Promise.all([n.e(12696),n.e(53870)]).then(n.bind(n,817203))},{loadableGenerated:{webpack:()=>[817203]}}),rafLandingPage12:i()(function(){return Promise.all([n.e(47057),n.e(13882),n.e(80628)]).then(n.bind(n,308671))},{loadableGenerated:{webpack:()=>[308671]}}),contentModuleImageSection:i()(function(){return Promise.all([n.e(12696),n.e(90520),n.e(99123)]).then(n.bind(n,78218))},{loadableGenerated:{webpack:()=>[78218]}}),heroBannerSection:i()(function(){return Promise.all([n.e(47057),n.e(61403),n.e(5931),n.e(64291),n.e(86282),n.e(64714),n.e(13882),n.e(70765),n.e(54285),n.e(2777)]).then(n.bind(n,105281))},{loadableGenerated:{webpack:()=>[105281]}}),heroBannerSectionV2:i()(function(){return Promise.all([n.e(12696),n.e(5931),n.e(64714),n.e(70765),n.e(64293)]).then(n.bind(n,509320))},{loadableGenerated:{webpack:()=>[509320]}}),articleItemSection:i()(function(){return Promise.all([n.e(47057),n.e(12696),n.e(6183),n.e(64714),n.e(70765),n.e(8642)]).then(n.bind(n,106615))},{loadableGenerated:{webpack:()=>[106615]}}),articleIndexSection:i()(function(){return Promise.all([n.e(12696),n.e(42238)]).then(n.bind(n,409455))},{loadableGenerated:{webpack:()=>[409455]}}),conditionalCtaBannerSection:i()(function(){return Promise.all([n.e(47057),n.e(61403),n.e(5931),n.e(64291),n.e(86282),n.e(64714),n.e(13882),n.e(70765),n.e(54285),n.e(2777)]).then(n.bind(n,319316))},{loadableGenerated:{webpack:()=>[319316]}}),columnSection:i()(function(){return Promise.all([n.e(47057),n.e(12696),n.e(40412),n.e(5931),n.e(90520),n.e(92212)]).then(n.bind(n,833330))},{loadableGenerated:{webpack:()=>[833330]}}),footerModuleSection:i()(function(){return Promise.all([n.e(47057),n.e(12696),n.e(64291),n.e(86282),n.e(16617),n.e(62355),n.e(28668)]).then(n.bind(n,439))},{loadableGenerated:{webpack:()=>[439]}}),contentModuleSection:i()(function(){return Promise.all([n.e(47057),n.e(50134),n.e(18629),n.e(12696),n.e(40412),n.e(92584),n.e(8950),n.e(16791),n.e(13749)]).then(n.bind(n,272469))},{loadableGenerated:{webpack:()=>[272469]}}),recipesSection:i()(function(){return Promise.all([n.e(47057),n.e(12696),n.e(16791),n.e(25937)]).then(n.bind(n,798297))},{loadableGenerated:{webpack:()=>[798297]}}),plansSection:i()(function(){return Promise.all([n.e(47057),n.e(50134),n.e(18629),n.e(12696),n.e(40412),n.e(92584),n.e(8950),n.e(90734),n.e(64291),n.e(48317),n.e(16791),n.e(73856),n.e(56068)]).then(n.bind(n,763005))},{loadableGenerated:{webpack:()=>[763005]}}),urgencyBanner:i()(function(){return Promise.all([n.e(40412),n.e(53692)]).then(n.bind(n,204211))},{loadableGenerated:{webpack:()=>[204211]}}),iconListSection:i()(function(){return Promise.all([n.e(50134),n.e(18629),n.e(92584),n.e(8950),n.e(80974)]).then(n.bind(n,751378))},{loadableGenerated:{webpack:()=>[751378]}}),banner:i()(function(){return Promise.all([n.e(47057),n.e(61403),n.e(5931),n.e(64291),n.e(86282),n.e(64714),n.e(13882),n.e(70765),n.e(54285),n.e(68128)]).then(n.bind(n,105281))},{loadableGenerated:{webpack:()=>[105281]}}),ingredientSection:i()(function(){return Promise.all([n.e(48317),n.e(83862)]).then(n.bind(n,811671))},{loadableGenerated:{webpack:()=>[811671]}}),ingredientSectionModule:i()(function(){return Promise.all([n.e(47057),n.e(50134),n.e(18629),n.e(12696),n.e(40412),n.e(92584),n.e(8950),n.e(90734),n.e(64291),n.e(48317),n.e(16791),n.e(73856),n.e(56068),n.e(97886)]).then(n.bind(n,16984))},{loadableGenerated:{webpack:()=>[16984]}}),ingredientDetailsModule:i()(function(){return Promise.all([n.e(47057),n.e(24917),n.e(48317),n.e(61624)]).then(n.bind(n,847623))},{loadableGenerated:{webpack:()=>[847623]}}),highlightedContentModule:i()(function(){return Promise.all([n.e(47057),n.e(12696),n.e(24917),n.e(74107)]).then(n.bind(n,618896))},{loadableGenerated:{webpack:()=>[618896]}}),iframeSection:i()(function(){return n.e(52945).then(n.bind(n,476576))},{loadableGenerated:{webpack:()=>[476576]}}
1),productConfiguratorSection:i()(function(){return Promise.all([n.e(12696),n.e(64291),n.e(86282),n.e(73856),n.e(81856)]).then(n.bind(n,168633))},{loadableGenerated:{webpack:()=>[168633]}}),legalSection:i()(function(){return Promise.all([n.e(47057),n.e(83667)]).then(n.bind(n,154909))},{loadableGenerated:{webpack:()=>[154909]}}),popupSection:i()(function(){return Promise.all([n.e(40412),n.e(34269),n.e(36650)]).then(n.bind(n,624800))},{loadableGenerated:{webpack:()=>[624800]}}),seoSection:i()(function(){return n.e(68473).then(n.bind(n,790446))},{loadableGenerated:{webpack:()=>[790446]}}),tableSection:i()(function(){return Promise.all([n.e(47057),n.e(78877),n.e(69353)]).then(n.bind(n,108547))},{loadableGenerated:{webpack:()=>[108547]}}),tableCell:i()(function(){return Promise.all([n.e(47057),n.e(78877)]).then(n.bind(n,488486))},{loadableGenerated:{webpack:()=>[488486]}}),scrollSection:i()(function(){return Promise.all([n.e(47057),n.e(12696),n.e(43309),n.e(64723),n.e(74857),n.e(64291),n.e(72065),n.e(86282),n.e(90520),n.e(13882),n.e(1735),n.e(23760),n.e(97139)]).then(n.bind(n,520058))},{loadableGenerated:{webpack:()=>[520058]}}),benefitsSection:i()(function(){return Promise.all([n.e(12696),n.e(43309),n.e(77347)]).then(n.bind(n,621929))},{loadableGenerated:{webpack:()=>[621929]}}),extraBannerSection:i()(function(){return Promise.all([n.e(47057),n.e(12696),n.e(64291),n.e(86282),n.e(72336)]).then(n.bind(n,922306))},{loadableGenerated:{webpack:()=>[922306]}}),awardSection:i()(function(){return n.e(68353).then(n.bind(n,342123))},{loadableGenerated:{webpack:()=>[342123]}}),newsletterSection:i()(function(){return Promise.all([n.e(47057),n.e(16617),n.e(38575)]).then(n.bind(n,234710))},{loadableGenerated:{webpack:()=>[234710]}}),contentFarmRaw:i()(function(){return Promise.all([n.e(47057),n.e(12696),n.e(79524)]).then(n.bind(n,542544))},{loadableGenerated:{webpack:()=>[542544]}}),contentFarmRecipe:i()(function(){return Promise.all([n.e(47057),n.e(86196)]).then(n.bind(n,180155))},{loadableGenerated:{webpack:()=>[180155]}}),socialSection:i()(function(){return Promise.all([n.e(47057),n.e(12696),n.e(40412),n.e(43309),n.e(68057),n.e(64714),n.e(62063),n.e(12731)]).then(n.bind(n,17207))},{loadableGenerated:{webpack:()=>[17207]}}),socialProofSection:i()(function(){return Promise.all([n.e(47057),n.e(12696),n.e(40412),n.e(43309),n.e(68057),n.e(64714),n.e(62063),n.e(12731)]).then(n.bind(n,462063))},{loadableGenerated:{webpack:()=>[462063]}}),howItWorksSection:i()(function(){return Promise.all([n.e(12696),n.e(40412),n.e(43309),n.e(71246),n.e(33919),n.e(25528),n.e(26521)]).then(n.bind(n,1306))},{loadableGenerated:{webpack:()=>[1306]}}),videoSection:i()(function(){return Promise.all([n.e(12696),n.e(43309),n.e(15702),n.e(91255)]).then(n.bind(n,419219))},{loadableGenerated:{webpack:()=>[419219]}}),menuPreferenceSection:i()(function(){return Promise.all([n.e(47057),n.e(12696),n.e(7333),n.e(64291),n.e(72065),n.e(90520),n.e(31540)]).then(n.bind(n,185005))},{loadableGenerated:{webpack:()=>[185005]}}),skuSection:i()(function(){return Promise.all([n.e(12696),n.e(64723),n.e(64291),n.e(72065),n.e(90520),n.e(1735),n.e(87954)]).then(n.bind(n,822727))},{loadableGenerated:{webpack:()=>[822727]}}),multiWeeklyDiscount:i()(function(){return Promise.all([n.e(12696),n.e(64291),n.e(86282),n.e(23760),n.e(78648),n.e(72125)]).then(n.bind(n,168047))},{loadableGenerated:{webpack:()=>[168047]}}),bannerWithZipcode:i()(function(){return Promise.all([n.e(47057),n.e(43309),n.e(98497),n.e(64291),n.e(86282),n.e(98365),n.e(13882),n.e(73713)]).then(n.bind(n,798413))},{loadableGenerated:{webpack:()=>[798413]}}),trustpilotWidgetSection:i()(function(){return n.e(61914).then(n.bind(n,763558))},{loadableGenerated:{webpack:()=>[763558]}}),benefitsStickerSection:i()(function(){return Promise.all([n.e(12696),n.e(92565)]).then(n.bind(n,780475))},{loadableGenerated:{webpack:()=>[780475]}}
1),benefitsStackSection:i()(function(){return Promise.all([n.e(12696),n.e(64714),n.e(62799),n.e(12454)]).then(n.bind(n,562799))},{loadableGenerated:{webpack:()=>[562799]}}),plainMarkdownSection:i()(function(){return Promise.all([n.e(47057),n.e(12696),n.e(64291),n.e(86282),n.e(90520),n.e(24917),n.e(63013),n.e(71413)]).then(n.bind(n,775626))},{loadableGenerated:{webpack:()=>[775626]}}),stickyBarSection:i()(function(){return Promise.all([n.e(47057),n.e(12696),n.e(64291),n.e(86282),n.e(90520),n.e(24917),n.e(63013),n.e(71413)]).then(n.bind(n,963013))},{loadableGenerated:{webpack:()=>[963013]}}),authorSection:i()(function(){return Promise.all([n.e(12696),n.e(73435)]).then(n.bind(n,507461))},{loadableGenerated:{webpack:()=>[507461]},ssr:!0}),RecipeMenuSection:i()(function(){return Promise.all([n.e(71246),n.e(64291),n.e(25528),n.e(24791)]).then(n.bind(n,647260))},{loadableGenerated:{webpack:()=>[647260]}}),pricingAndBenefitsSection:i()(function(){return Promise.all([n.e(47057),n.e(12696),n.e(64723),n.e(64291),n.e(72065),n.e(86282),n.e(1735),n.e(82171)]).then(n.bind(n,385801))},{loadableGenerated:{webpack:()=>[385801]}}),comparisonTableSection:i()(function(){return Promise.all([n.e(12696),n.e(23557)]).then(n.bind(n,919858))},{loadableGenerated:{webpack:()=>[919858]}}),topMealsSection:i()(function(){return Promise.all([n.e(12696),n.e(86896)]).then(n.bind(n,892335))},{loadableGenerated:{webpack:()=>[892335]},ssr:!0}),attribution:i()(function(){return Promise.all([n.e(12696),n.e(54879)]).then(n.bind(n,415790))},{loadableGenerated:{webpack:()=>[415790]}})}},671273:function(e,t,n){"use strict";n.d(t,{h:function(){return d}});var r=n(966622),i=n(407792),o=n(887824),a=n(827378),l=n(687992),c=n(243352),u=n(264937);function s(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 d=function(e,t,n){var d=(0,o.Z)().push,f=(0,c.L)().trackStartFunnelClick,p=(0,u._)(),v=p.writeSignalsCookieSync,b=p.setCTAClick,g=(0,r.py)({runUsingStatsig:!0}).track,m=(0,i.O)(),y=m.id,h=m.attributes,_=(0,l.Z)(),w=_.id,O=_.attributes,P=_.isReady,S=(0,a.useCallback)(function(e){d({event:"gaEventTrigger",event_name:"Navigation_LPMenuSectionCarousel",brand:"HelloFresh",tribe:"Conversions",screen:"Landing Page",gaEventCategory:"menuSectionCarousel",gaEventAction:"view",gaEventLabel:e,action:"view",slide_name:e}),g({eventName:"Navigation_LPMenuSectionCarousel",eventTags:{event:"gaEventTrigger",brand:"HelloFresh",tribe:"Conversions",screen:"Landing Page",gaEventCategory:"menuSectionCarousel",gaEventAction:"view",gaEventLabel:e,action:"view",slide_name:e},experimentationUserId:y,experimentationUserAttributes:h})},[y,h,d,g]),k=(0,a.useCallback)(function(){d({event:"gaEventTrigger",event_name:"Navigation_LPMenuSectionCarousel",brand:"HelloFresh",tribe:"Conversions",screen:"Landing Page",gaEventCategory:"menuSectionCarousel",gaEventAction:"swipe",action:"swipe"}),g({eventName:"Navigation_LPMenuSectionCarousel",eventTags:{event:"gaEventTrigger",brand:"HelloFresh",tribe:"Conversions",screen:"Landing Page",gaEventCategory:"menuSectionCarousel",gaEventAction:"swipe",action:"swipe"},experimentationUserId:y,experimentationUserAttributes:h})},[y,h,d,g]),E=(0,a.useCallback)(function(e){d({event:"gaEventTrigger",event_name:"Navigation_LPMenuSectionCarousel",brand:"HelloFresh",tribe:"Conversions",screen:"Landing Page",gaEventCategory:"menuSectionCarousel",gaEventAction:"clickInfoIcon",gaEventLabel:e,action:"clickInfoIcon",slide_name:e}),g({eventName:"Navigation_LPMenuSectionCarousel",eventTags:{event:"gaEventTrigger",brand:"HelloFresh",tribe:"Conversions",screen:"Landing Page",gaEventCategory:"menuSectionCarousel",gaEventAction:"clickInfoIcon",gaEventLabel:e,action:"clickInfoIcon",slide_name:e},experimentationUserId:y,experimentationUserAttributes:h})},[y,h,d,g]),Z=(0,a.useCallback)(function(){d({event:"gaEventTrigger",event_name:"Navigation_LPHeroBannerCarousel",brand:"HelloFresh",tribe:"Conversions",screen:"Landing Page",gaEventCategory:"heroBannerCarousel",gaEventAction:"swipe",action:"swipe"}),g({eventName:"Navigation_LPHeroBannerCarousel",eventTags:{event:"gaEventTrigger",brand:"HelloFresh",tribe:"Conversions",screen:"Landing Page",gaEventCategory:"heroBannerCarousel",gaEventAction:"swipe",action:"swipe"},experimentationUserId:y,experimentationUserAttributes:h})},[y,h,d,g]),j=(0,a.useCallback)(function(e){d({event:"gaEventTrigger",event_name:"Navigation_LPHeroBannerCarousel",brand:"HelloFresh",tribe:"Conversions",screen:"Landing Page",gaEventCategory:"heroBannerCarousel",gaEventAction:"view",gaEventLabel:e,action:"view",slide_name:e}),g({eventName:"Navigation_LPHeroBannerCarousel",eventTags:{event:"gaEventTrigger",brand:"HelloFresh",tribe:"Conversions",screen:"Landing Page",gaEventCategory:"heroBannerCarousel",gaEventAction:"view",gaEventLabel:e,action:"view",slide_name:e},experimentationUserId:y,experimentationUserAttributes:h})},[y,h,d,g]),x=(0,a.useCallback)(function(){b(e),v(),d({event:"gaEventTrigger",event_name:"Navigation_LPHeroBannerCarousel",brand:"HelloFresh",tribe:"Conversions",screen:"Landing Page",gaEventCategory:"heroBannerCarousel",gaEventAction:"clickScroll",action:"clickScroll",user_action:e,gaEventLabel:e}),g({eventName:"Navigation_LPHeroBannerCarousel",eventTags:{event:"gaEventTrigger",brand:"HelloFresh",tribe:"Conversions",screen:"Landing Page",gaEventCategory:"heroBannerCarousel",gaEventAction:"clickScroll",action:"clickScroll",user_action:e,gaEventLabel:e},experimentationUserId:y,experimentationUserAttributes:h})},[y,h,d,g,e,b,v]);return{handleGAEventClick:(0,a.useCallback)(function(r,i){b(e),v(),d(s({event:"gaEventTrigger",gaEventCategory:"navigation",eventName:"Navigation_PageCTAclick",user_action:e,gaEventLabel:e,gaEventAction:"CTA",n
1onInteraction:!1,sectionType:t,scrollSectionType:n},i)),P&&w&&g({eventName:"Navigation_PageCTAclick",eventTags:s({event:"gaEventTrigger",gaEventCategory:"navigation",user_action:e,gaEventLabel:e,gaEventAction:"CTA",nonInteraction:"false",brand:"HelloFresh",tribe:"Conversions Journey",screen:"Landing Page",sectionType:null!=t?t:"",scrollSectionType:null!=n?n:""},i),experimentationUserId:w,experimentationUserAttributes:O}),f({sectionId:e,sectionType:null!=t?t:"scrollSection",uiComponentLabel:r})},[O,w,P,d,e,t,n,g,f,b,v]),handleGAEventOnMenuClick:(0,a.useCallback)(function(t){d({event:"gaEventTrigger",gaEventCategory:"navigation",eventName:t,position:e,gaEventAction:"CTA",gaEventLabel:e,nonInteraction:!1}),g({eventName:t,eventTags:{event:"gaEventTrigger",gaEventCategory:"navigation",position:e,gaEventAction:"CTA",gaEventLabel:e,nonInteraction:"false",brand:"HelloFresh",tribe:"Conversions Journey",screen:"Landing Page"},experimentationUserId:y,experimentationUserAttributes:h})},[h,y,d,e,g]),handleScrollCTAClick:x,handleBannerSliderOnView:j,handleBannerSlideSwipe:Z,handleOnInfoClick:E,handleMenuPrefernecesSwipe:k,handleMenuOnView:S}}},125846:function(e,t,n){"use strict";n.r(t);var r=n(687800);function i(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 o(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,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["title","titleId"]);return(0,r.BX)("svg",o(i(o(i({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",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 6h-3a4 4 0 0 0-8 0H5L4 22h16L19 6ZM8 8v2h2V8h4v2h2V8h1.121l.75 12H6.13l.75-12H8Zm6-2h-4a2 2 0 1 1 4 0Z",fill:"currentColor"})]}))}},299446:function(e,t,n){"use strict";n.r(t);var r=n(687800);function i(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 o(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,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["title","titleId"]);return(0,r.BX)("svg",o(i(o(i({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",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.4 6 8 3h8l.6 3H21v13h-2a2 2 0 1 1-4 0H9a2 2 0 1 1-4 0H3V6h4.4Zm2.04 0 .2-1h4.72l.2 1H9.44ZM19 17V8H5v9h14Z",fill:"currentColor"})]}))}},96553:function(){}},function(e){e.O(0,[47057,38579,12737,8139,14206,44355,61403,50134,18629,274,24613,47710,12696,70788,92584,8950,85970,56755,36060,64291,64290,64944,56360,95147,7563,36152,36233,62015,321,3968,58351,89073,94414,75182,63013,50779,92888,49774,40179],function(){return e(e.s=612173)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.