(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[53698],{104771:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/whitelabel/plans",function(){return n(564067)}])},635261:function(e,t,n){"use strict";n.d(t,{m:function(){return g}});var r,o,i=n(827378),u=n(456552),a=n(567921),c=n.n(a),l=n(686677),s=n(865051),f=n(74186),d=n(254156),p=n(221527),m=n(951730),b=function(e){var t=e.voucherCode,n=e.productSkus,r=e.locale,o=e.systemCountry,i=e.discountCommunicationId;return[m.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:o},i&&{discountCommunicationId:i})]};function v(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 y(e,t,n,r,o,i,u){try{var a=e[i](u),c=a.value}catch(e){n(e);return}a.done?t(c):Promise.resolve(c).then(r,o)}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}var w=(r=function(e,t){var n,r,o,i,u,a,c,l=arguments;return function(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=(o=u.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,function(f){switch(f.label){case 0:return n=e.voucherCode,r=e.productSkus,o=e.systemCountry,i=e.locale,u=e.parentSpan,a=e.discountCommunicationId,c=e.zipcode,[4,(l.length>2&&void 0!==l[2]?l[2]:s.Z)("/price-presentation/discount_communication/voucher/".concat(n),t,{query:{country:o,locale:i,skus:r.join(","),dc_id:a||"",zipcode:c||""},parentSpan:u,fetchSpanAttributes:{discountCommunicationId:a,voucherCode:n}})];case 1:return[2,f.sent().json()]}})},o=function(){var e=this,t=arguments;return new Promise(function(n,o){var i=r.apply(e,t);function u(e){y(i,n,o,u,a,"next",e)}function a(e){y(i,n,o,u,a,"throw",e)}u(void 0)})},function(e,t){return o.apply(this,arguments)}),g=function(e,t){var n,r,o,a=(0,l.useRouter)().query.discount_comm_id,s=(function(e){if(Array.isArray(e))return e}(n=(0,d.Z)("hf_prefill_zipcode")||[""])||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],u=!0,a=!1;try{for(o=o.call(e);!(u=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);u=!0);}catch(e){a=!0,r=e}finally{try{u||null==o.return||o.return()}finally{if(a)throw r}}return i}}(n,1)||function(e,t){if(e){if("string"==typeof e)return v(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 v(e,t)}}(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],m=(0,i.useMemo)(function(){return c().get("hf_discount_comm_id")},[]),y=(Array.isArray(a)?a[0]:a)||m||e.discountCommunicationId,g=(0,f.Z)().fetch,k=h((r=h({},e,(0,p.O)()),o=o={discountCommunicationId:y},Object.getOwnPropertyDescriptors?Object.defineProperties(r,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})(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}),r),s&&{zipcode:s}),O=b(k);return(0,u.useQuery)(O,function(){return w(k,O,g)},h({},t))}},738010:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var r=n(687800),o=n(910043);n(827378);var i=n(188038),u=n.n(i),a=n(686677),c=n(529378),l=n(617461),s=n(102097),f=n(38246),d=n(732556),p=n(788141),m=n(652022),b=n(235862),v=n(862047),y=["[sku]","[week]"],h=function(e,t){if(!t||!e)return"";var n=t||e;return y.forEach(function(t){e.endsWith(t)&&(n=e)}),n},w=n(517741),g=n(119409),k=n(141061),O=function(e){var t,n=(0,g.n)(),r=(0,k.G)().userAgent,o=null==r?void 0:r.getResult(),i=((null==r?void 0:r.getBrowser().name)||"").toLowerCase().includes("safari"),u=(null==o?void 0:null===(t=o.os)||void 0===t?void 0:t.name)==="iOS";return e&&u&&i&&!n};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}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})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var _=function(e,t){return(0,b.x)()&&t?t:e},F=function(e){var t,n,i,b,y=e.overrides,g=(0,c.ew)(),k=(0,l.b)(),F=(0,a.useRouter)(),E=F.pathname,Z=F.asPath,C=(0,s.Z)(),x=(0,f.Z)(),j=(0,d.Z)(),A=(0,m.Z)(),I=v.Z.useConfig(),T=I.brandName,D=I.subBrandName,R=I.favIcon,B=I.subBrandFavIcon,M=I.subBrandOGImageUrl,L=I.googleSiteVerificationId,N=I.facebookId,U=I.twitter,G=I.metaLinks,W=I.links,q=I.pages,V=I.appleItunesAppTag,K=I.ogImageUrl,X=I.thumbnailImageUrl,H=null===(t=h(E,Z))||void 0===t?void 0:t.split("?")[0],z=_(T,D),Q=_(K,M),$=_(R,B),Y=q[H]||{},J=Y.image,ee=Y.favIcon,et=Y.title,en=Y.description,er=Y.keywords,eo=void 0===er?[]:er,ei=Y.customMetaTags,eu=void 0===ei?[]:ei,ea=Y.hreflangs,ec=void 0===ea?[]:ea,el=null!=ee?ee:$,es=null!==(n=null!=J?J:Q)&&void 0!==n?n:el,ef=(0,w.xp)(Z),ed=x===p.Z.hellofresh?A.colors.neutral[100]:A.colors.primary[600],ep=null!==(i=null==y?void 0:y.title)&&void 0!==i?i:void 0===et?z:et,em=null!==(b=null==y?void 0:y.description)&&void 0!==b?b:void 0===en?"":en,eb=V.isEnabled,ev=V.appId,ey=O(eb);return(0,r.BX)(u(),{children:[(0,r.tZ)("title",{children:ep},"title"),(0,r.tZ)("meta",{property:"og:title",content:ep},"og:title"),(0,r.tZ)("meta",{name:"twitter:title",content:ep},"twitter:title"),(0,r.tZ)("meta",{content:ep,name:"apple-mobile-web-app-title"},"apple-mobile-web-app-title"),(0,r.tZ)("meta",{content:em,name:"description"},"description"),(0,r.tZ)("meta",{content:em,property:"og:description"},"og:description"),(0,r.tZ)("meta",{name:"twitter:description",content:em},"twitter:description"),(0,r.tZ)("meta",{name:"author",content:z},"author"),(null==eo?void 0:eo.length)>0?(0,r.tZ)("meta",{content:"cooking, ".concat(z,", ").concat(null==eo?void 0:eo.join(", ")),name:"keywords"},"keywords"):(0,r.tZ)("meta",{content:"cooking, ".concat(z),name:"keywords"},"keywords"),(0,r.tZ)("link",{rel:"icon",type:"image/x-icon",href:el}),(0,r.tZ)("link",{rel:"shortcut icon",href:el}),(0,r.tZ)("link",{rel:"apple-touch-icon",href:el}),es?(0,r.BX)(r.HY,{children:[(0,r.tZ)("meta",{name:"thumbnail",content:X||es},"thumbnail"),(0,r.tZ)("meta",{property:"og:image",content:es},"og:image"),(0,r.tZ)("meta",{property:"og:image:alt",content:z},"og:image:alt"),(0,r.tZ)("meta",{property:"og:image:width",content:"1140"},"og:image:width"),(0,r.tZ)("meta",{property:"og:image:height",content:"600"},"og:image:height"),(0,r.tZ)("meta",{name:"twitter:image",content:es},"twitter:image")]}):null,(0,r.tZ)("meta",{content:z,property:"site:name"},"site:name"),(0,r.tZ)("meta",{content:k.requestUrl,property:"url"},"url"),(0,r.tZ)("meta",{content:k.requestUrl,property:"og:url"},"og:url"),(0,r.tZ)("meta",{content:j,name:"country"},"country"),(0,r.tZ)("meta",{content:C,property:"og:locale"},"og:locale"),(0,r.tZ)("link",{href:k.requestUrl,rel:"canonical"},"canonical"),(0,r.tZ)("meta",{content:"product",property:"og:type"},"type"),(0,r.tZ)("meta",{content:g.NEXT_PUBLIC_RELEASE_VERSION,property:"version"},"version"),(0,r.tZ)("meta",{content:ed,name:"theme-color"},"theme-color"),(0,r.tZ)("meta",{content:ed,name:"msapplication-TileColor"},"msapplication-TileColor"),(0,r.tZ)("meta",{content:"width=device-width, initial-scale=1.0, user-scalable=yes",name:"viewport"},"viewport"),(0,r.tZ)("meta",{httpEquiv:"Accept-CH",content:"Width, Viewport-Width, DPR"}),(null==eu?void 0:eu.length)>0?eu.map(function(e){return(0,r.tZ)("meta",{content:e.content,name:e.name},"".concat(e.name,"-").concat(e.content))}):(0,r.tZ)("meta",{content:ef,name:"robots"},"robots"),(null==G?void 0:G.length)>0?G.map(function(e){return(0,o.az)("meta",P(S({},e),{key:"meta-".concat(e.name)}))}):null,(null==W?void 0:W.length)>0?W.map(function(e,t){return(0,o.az)("link",P(S({},e),{key:t}))}):null,(null==ec?void 0:ec.length)>0?ec.map(function(e,t){return(0,o.az)("link",P(S({rel:"alternate"},e),{key:t}))}):null,L.map(function(e,t){return(0,r.tZ)("meta",{content:e,name:"google-site-verification"},"google-site-verification-".concat(t))}),N?(0,r.tZ)("meta",{content:N,property:"fb:app_id"},"facebook"):null,U?(0,r.tZ)("meta",{content:U,property:"twitter:site"},"twitter"):null,(0,r.tZ)("meta",{name:"twitter:card",content:"summary_large_image"},"twitter:card"),(0,r.tZ)("meta",{property:"twitter:domain",content:k.requestUrl},"twitter:domain"),(0,r.tZ)("meta",{property:"twitter:url",content:k.requestUrl},"twitter:url"),ey&&(0,r.tZ)("meta",{name:"apple-itunes-app",content:"app-id=".concat(ev)},"apple-itunes-app")]})},E=function(e){return(0,r.tZ)(v.Z.ProjectConfigProvider,{children:(0,r.tZ)(F,S({},e))})}},862047:function(e,t,n){"use strict";function r(e,t,n,r,o,i,u){try{var a=e[i](u),c=a.value}catch(e){n(e);return}a.done?t(c):Promise.resolve(c).then(r,o)}var o,i=(0,n(567942).Z)("head-meta-tags-feature-config",(o=function(){return function(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=(o=u.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,function(e){switch(e.label){case 0:return[4,n.e(87168).then(n.bind(n,287168))];case 1:return[2,e.sent()]}})},function(){var e=this,t=arguments;return new Promise(function(n,i){var u=o.apply(e,t);function a(e){r(u,n,i,a,c,"next",e)}function c(e){r(u,n,i,a,c,"throw",e)}a(void 0)})}));t.Z=i},517741:function(e,t,n){"use strict";n.d(t,{xp:function(){return u}});var r={GIFT_REDEEM:"/gift/redeem",FORGOT_PASSWORD:"/forgotpassword",RECIPES:"/recipes",LOGOUT:"/logout",WL_ACCESSIBILITY:"/accessibility",CANCELLATION:"/cancellation",NOT_FOUND:"/error/404",HF_ACCOUNT_SETTINGS:"/account-settings",WL_SETTINGS:"/settings",FACTOR_FORM_MY_DELIVERIES:"/factorform/my-deliveries",FACTOR_FORM_CHECKOUT:"/factorform/checkout",FACTOR_FORM_HOME:"/factorform"},o=[r.GIFT_REDEEM,r.WL_SETTINGS,r.HF_ACCOUNT_SETTINGS,r.FORGOT_PASSWORD,r.LOGOUT,r.WL_ACCESSIBILITY,r.CANCELLATION,r.NOT_FOUND,r.FACTOR_FORM_MY_DELIVERIES,r.FACTOR_FORM_CHECKOUT],i=[r.RECIPES,r.FACTOR_FORM_HOME],u=function(e){if(o.some(function(t){return e.includes(t)}))return"noindex,nofollow";var t=i.some(function(t){return e.includes(t)});return"/"===e||e.includes("/?locale=")||t?"index,follow":"noindex,follow"}},661771:function(e,t,n){"use strict";function r(e,t,n,r,o,i,u){try{var a=e[i](u),c=a.value}catch(e){n(e);return}a.done?t(c):Promise.resolve(c).then(r,o)}n.d(t,{Ds:function(){return a},a:function(){return u}});var o,i=(0,n(567942).Z)("hf.free-addon",(o=function(){return function(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=(o=u.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,function(e){return[2,n.e(20525).then(n.bind(n,820525))]})},function(){var e=this,t=arguments;return new Promise(function(n,i){var u=o.apply(e,t);function a(e){r(u,n,i,a,c,"next",e)}function c(e){r(u,n,i,a,c,"throw",e)}a(void 0)})})),u=i.ProjectConfigProvider,a=(i.configMiddleware,i.useConfig)},732556:function(e,t,n){"use strict";var r=n(101518),o=n(736276);t.Z=function(){var e=(0,r.Z)();return(0,o.bP)(e)}},17659:function(e,t,n){"use strict";function r(e,t,n,r,o,i,u){try{var a=e[i](u),c=a.value}catch(e){n(e);return}a.done?t(c):Promise.resolve(c).then(r,o)}n.d(t,{V_:function(){return u},cP:function(){return a}});var o,i=(0,n(567942).Z)("hf.customer-wallet",(o=function(){return function(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=(o=u.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,function(e){return[2,n.e(45335).then(n.bind(n,545335))]})},function(){var e=this,t=arguments;return new Promise(function(n,i){var u=o.apply(e,t);function a(e){r(u,n,i,a,c,"next",e)}function c(e){r(u,n,i,a,c,"throw",e)}a(void 0)})})),u=i.ProjectConfigProvider,a=(i.configMiddleware,i.useConfig)},564067:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return ee},default:function(){return et}});var r=n(687800),o=n(827378),i=n(546795),u=n(165218),a=n.n(u),c=n(606657),l=n(373099),s=n(732924),f=n(571263),d=n(902716),p=n(287232),m=n(130014),b=n(254156),v=n(815493),y=n(132373),h=n(442096),w=n(686677),g=n(267123),k=n(611691),O=n(736276),S=n(788141),P=n(413020),_={isEnabled:!1,overrides:[{systemCountry:[O.Rc[S.Z.everyplate].US,O.Rc[S.Z.greenchef].US,O.Rc[S.Z.factor].US,O.Rc[S.Z.factor].CA,O.Rc[S.Z.factor].BE,O.Rc[S.Z.factor].NL,O.Rc[S.Z.youfoodz].AU],values:{isEnabled:!0}}]},F=(0,P.Z)("wl.plans-page.single-question-flow",_).useConfig,E=function(){var e=(0,w.useRouter)().query,t=(0,g.D)(),n=F().isEnabled,r=(0,k.S)();return!!n&&("server"===r?"cloudflare"===t.from&&!!t.isMobile:!Z(e).match("^(raf_)|^(raf-)|^(freebie)|^(share)|^(direct_sales_exclusion)")&&"mobile"===r)},Z=function(e){var t=e.utm_source;return Array.isArray(t)?t[0]||"":t||""};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 x=function(){var e,t=(function(e){if(Array.isArray(e))return e}(e=(0,b.Z)("hf_goals_plan_sku_cookie"))||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],u=!0,a=!1;try{for(o=o.call(e);!(u=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);u=!0);}catch(e){a=!0,r=e}finally{try{u||null==o.return||o.return()}finally{if(a)throw r}}return i}}(e,1)||function(e,t){if(e){if("string"==typeof e)return C(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 C(e,t)}}(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],n=(0,y.useDispatch)(),r=(0,y.useSelector)(h.j4),i=E();(0,o.useEffect)(function(){i&&t&&t!=r&&n((0,v.Ng)({sku:t}))},[t])},j=n(757525),A=n(333329),I=n(568653),T=a()(function(){return Promise.all([n.e(38579),n.e(99016),n.e(65015),n.e(40412),n.e(7463),n.e(31173),n.e(28741),n.e(82159),n.e(17377),n.e(89425),n.e(22169),n.e(48289),n.e(9360),n.e(62426),n.e(90332),n.e(12604),n.e(15630),n.e(46051),n.e(8680)]).then(n.bind(n,775728))},{loadableGenerated:{webpack:()=>[775728]}}),D=a()(function(){return Promise.all([n.e(38579),n.e(17377),n.e(28171),n.e(89425),n.e(22169),n.e(60545),n.e(12604),n.e(27208)]).then(n.bind(n,389920))},{loadableGenerated:{webpack:()=>[389920]}}),R=a()(function(){return Promise.all([n.e(30809),n.e(27298),n.e(38579),n.e(99016),n.e(40412),n.e(7463),n.e(28741),n.e(22169),n.e(48289),n.e(70891),n.e(15630),n.e(18856)]).then(n.bind(n,207967)).then(function(e){return e.SingleQuestionFlow})},{loadableGenerated:{webpack:()=>[207967]}}),B=function(){var e,t=(0,c.useSelector)(s.e),n=(0,j.T)(),i=E();(0,o.useEffect)(function(){var e=(0,A.MQ)(n,A.XM.LANDING);e.setAttribute(A.Jg.STATUS,A.bU.STARTED),e.end()},[]),x(),(0,p.Z)();var u=(0,m.z)("website").data,a=(null==u?void 0:null===(e=u.newFeatures)||void 0===e?void 0:e.pricePresentationNotification)||!1,b=T;(0,c.useSelector)(l.N)&&(b=D);var v=(0,c.useSelector)(I.ub);return(0,r.tZ)(d.Z,{componentName:"whitelabel-plans-page-root",children:(0,r.tZ)(f.Z,{children:i?(0,r.tZ)(R,{isPricePresentationNotificationEnabled:a,isMobileAppWebview:t,voucherCode:v}):(0,r.tZ)(b,{})})})},M=n(418283),L=n(738010),N=n(516198),U=n(661771),G=n(958660),W=n(856130),q=n(109383),V=n(233169),K=n(598792),X=n(60074),H=n(567921),z=n.n(H);function Q(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 $(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],u=!0,a=!1;try{for(o=o.call(e);!(u=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);u=!0);}catch(e){a=!0,r=e}finally{try{u||null==o.return||o.return()}finally{if(a)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Q(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 Q(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 Y=function(){var e=$((0,o.useState)(!1),2),t=e[0],n=e[1],r=$((0,o.useState)(!1),2),i=r[0],u=r[1],a=(0,q.O)(),c=a.id,l=a.attributes,s=$((0,o.useMemo)(function(){var e,t;return null!==(t=null===(e=z().get("redirection_experiment_id_and_variation"))||void 0===e?void 0:e.split("/"))&&void 0!==t?t:[]},[]),2),f=s[0],d=s[1],p=(0,K.py)({runUsingStatsig:!0}),m=p.isReady,b=p.track,v=(0,V.Z)().push,y=(0,j.T)(),h=(0,w.useRouter)().asPath;(0,o.useEffect)(function(){if(!c)try{if(window&&window.URL){var e=z().get();X.Tb(Error("No public ID found"),function(t){return t.setLevel("warning"),t.setFingerprint(["no-public-id"]),t.setContext("cookie-string",{cookies:e}),t})}}catch(e){}},[c]),(0,o.useEffect)(function(){m&&!i&&f&&d&&c&&(u(!0),b({experimentationUserId:null!=c?c:"",experimentationUserAttributes:l,eventName:"ExpLib_Decide",eventTags:{Eventcategory:"experiment_exposure",EventAction:"experiment_key: ".concat(f),EventLabel:"variation_key: ".concat(d," | ").concat(h),brand:"HelloFresh",tribe:"Conversions"}}))},[m,i,b,c,l,f,d,h]),(0,o.useEffect)(function(){if(!t&&f&&d&&c){n(!0);try{var e=Object.fromEntries(Object.values(l).filter(Boolean));v(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",type:"redirection",event_name:"ExpLib_Decide",experiment_key:f,variation_key:d,hf_public_id:c,customer_uuid:"",squad:"customer-clarity"},e));var r=y.startSpan("redirection-experiment-allocation");r.setAttributes({experiment_key:f,variation_key:d}),r.end()}catch(e){}}},[l,t,h,v,y,c,f,d])},J=function(){return Y(),(0,r.BX)(i.Z,{scope:"plans",fallback:(0,r.tZ)(N.Z,{}),children:[(0,r.tZ)(L.Z,{}),(0,r.tZ)(W.bm,{children:(0,r.tZ)(U.a,{children:(0,r.tZ)(B,{})})}),(0,r.tZ)(G.Z,{})]})};J.customLayout=M.ZP,J.provideCustomLayoutProps=function(e){return{ssrPayload:e.ssrPayload,claim:{name:"rte-growth-and-onboarding",githubTeam:"hellofresh/squad-rte-growth-and-onboarding",tribe:"rte-consumer",alliance:"tam-expansion",jiraPrefix:"RTEGO",slackChannel:"#squad-rte-growth-and-onboarding",slackAlertsChannel:"#squad-rte-growth-and-onboarding",skipLabelsOnPR:!1,teamIdentifier:"rte-growth-and-onboarding"},locationConstant:"ROUTE_PLANS",disableFooter:e.ssrPayload.isMobileAppWebview}};var ee=!0,et=J},667845:function(e,t,n){"use strict";var r=n(687800);n(827378);var o=n(13547),i=n(556435),u=n(25219),a={spinner: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.d.both)};t.Z=function(){var e=(0,o.u)();return(0,r.tZ)(u.Z,{color:e.primaryColor,css:a.spinner,"data-testid":"page-spinner"})}},47415:function(e,t,n){"use strict";n.d(t,{BK:function(){return C},Bv:function(){return F},n5:function(){return E}});var r=n(827378),o=n(624849),i=n(742019),u=n(993438),a=n(757525),c=n(119409),l=n(598792),s=n(109383),f=n(518422),d=n(101518),p=n(479231);function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=function(){var e,t=(0,d.Z)();return(m(e={},p.Z.GN,"gn_price_test_nov_2024"),m(e,p.Z.GQ,"greenchef_nl_price_increase_experiment"),m(e,p.Z.AO,"ao_price_test_sept_2024"),m(e,p.Z.CK,"chefsplate_always_on_price_test"),m(e,p.Z.CF,"cf_2024_q2_pricing_increase_test"),m(e,p.Z.YE,"ye_2024_q2_pricing_increase_test"),m(e,p.Z.FJ,"regional-pricing-rollout-fj"),m(e,p.Z.CG,"mess_gcu_2x2_box_v2"),m(e,p.Z.TT,"tt_price_decrease_test_q4_24"),e)[t]},v=n(567921),y=n.n(v),h=n(315285),w=n(921564),g=function(){var e=(0,r.useMemo)(function(){return y().get(w._h)},[]);if(e)return!0;var t=new URLSearchParams(window.location.search),n=t.get("utm_source"),o=t.get("dm"),i=Object.values(h.hQ).includes(String(n))||"free-box"===o;return i&&!e&&y().set(w._h,"true"),i},k=n(391953),O=n(389066),S=n(913129),P=["T","RP"],_=function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=P[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var u=o.value;if(e.includes(u))return e}}catch(e){n=!0,r=e}finally{try{t||null==i.return||i.return()}finally{if(n)throw r}}return""},F=function(){var e=(0,o.r)(),t=e.experimentPlansMap,n=e.getPlansMap,r=Z(),i=r.isControl,u=r.tier,a=void 0===u?"":u,c=r.exclusions,l=void 0===c?[]:c;return{getPlansMap:function(e){return i?n(e):t({productFamily:e,tier:a,exclusions:l})},tier:a}},E=function(){var e=(0,o.r)(),t=e.getPlans,n=e.getExperimentPlans,r=Z(),i=r.isControl,u=r.tier,a=r.exclusions;return i?t():n({tier:void 0===u?"":u,exclusions:void 0===a?[]:a})},Z=function(){var e,t,n=(0,u.ZP)(),o=(0,a.T)(),i=(0,c.n)(),d=b(),p=(0,S.S9)().useStatsig,m=(0,l.py)({runUsingStatsig:p}).decide,v=(0,s.O)(),y=g(),h=(0,k.fB)((0,O.Z)()),w={experimentKey:d,experimentationUserId:v.id,experimentationUserAttributes:(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}({},v.attributes),t=t={is_freebie_or_helloshare:y,is_active_customer:h},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)},P=d?p?m(w):m(f.mj.ABTEST,w):void 0,F=null==P?void 0:P.variationKey,E=!F||"control"===F,Z=F&&_(F),C=F&&F.includes("2-2")?["2-2-0"]:[];return(0,r.useEffect)(function(){var e=o.startSpan("wl-plans-experiment-allocation");e.setAttributes({isMobileApp:i,publicId:n,experimentKey:d}),F?e.setAttributes({step:"allocation",variant:F,tier:Z}):e.setAttributes({step:"client-side-request-not-ready",experimentKey:"null",variation:"null"}),e.end()},[d,i,n,Z,F]),{isControl:E,tier:Z,exclusions:C}},C=function(){var e=(0,i.n)(),t=e.productFamilies,n=e.isProductFamiliesEnabled,r=e.defaultProductFamily,o=r;return t.length&&(o=t.find(function(e){return e.handle===r})?r:t[0].handle),{productFamilies:t,isProductFamiliesEnabled:n,defaultProductFamily:o}}},898804:function(e,t,n){"use strict";n.d(t,{e:function(){return u}});var r=n(606657),o=n(373099),i=n(933451),u=function(){var e,t=(0,r.useSelector)(o.QB),n=(0,r.useSelector)(i.RE),u=(0,r.useSelector)(i.Bo),a=null===(e=(0,r.useSelector)(i.OX))||void 0===e?void 0:e.handle,c=null==a?void 0:a.endsWith("-".concat(u,"WEEKLY"));return!t||!!n&&!!c}},742019:function(e,t,n){"use strict";n.d(t,{n:function(){return s}});var r=n(606657),o=n(880479),i=n(451218),u=n(896314),a=n(556180);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 l=function(){var e,t=function(e){if(Array.isArray(e))return e}(e=(0,o.Gi)([i.N7,i.i,i.vF,i.h9,i.xv,i.uH,i.r3,i.Li,i.MW]))||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],u=!0,a=!1;try{for(o=o.call(e);!(u=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);u=!0);}catch(e){a=!0,r=e}finally{try{u||null==o.return||o.return()}finally{if(a)throw r}}return i}}(e,9)||function(e,t){if(e){if("string"==typeof e)return c(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 c(e,t)}}(e,9)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=t[0],r=t[1],u=t[2],a=t[3],l=t[4],s=t[5];return{"carb-conscious":{name:n,subtitle:a,icon:t[6]},"balanced-living":{name:r,subtitle:l,icon:t[7]},"plant-powered":{name:u,subtitle:s,icon:t[8]}}},s=function(e){var t=(0,a.b)(e),n=t.productFamilies,o=t.isProductFamiliesEnabled,i=t.isProductFamiliesDropdownDisabled,c=l();return{productFamilies:o?n.map(function(e){var t=c[e.replace(/(-t[1-9][0-9]?)/,"")];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}({handle:e,familyIdentifier:e.replace(/-/g,"")},t||{})}):[],defaultProductFamily:(0,r.useSelector)(u.r8),isProductFamiliesEnabled:o,isProductFamiliesDropdownDisabled:i}}},34364:function(e,t,n){"use strict";n.d(t,{w:function(){return l}});var r=n(606657),o=n(478923),i=n(656886),u=n(933451),a=n(244352),c=n(898804),l=function(){var e=(0,r.useDispatch)(),t=(0,c.e)(),n=(0,r.useSelector)(o.wW),l=(0,r.useSelector)(u.PS);return{isFetchSubscriptionFulfilled:(0,r.useSelector)(a.wp),hasSubscription:n&&!!l&&t,isFetchingSubscription:(0,r.useSelector)(a.um),fetchSubscription:function(){return e((0,i.Of)())},subscriptionId:l}}},193935:function(e,t,n){"use strict";n.d(t,{F:function(){return S}});var r=n(827378),o=n(606657),i=n(155180),u=n(234453),a=n(550630),c=n(478923),l=n(367639),s=n(865193),f=n(90104),d=n.n(f),p=n(568653),m=function(){var e=(0,o.useSelector)(p.KZ),t=!d()(e);return{verifiedVoucher:e,isVoucherApplied:t}},b=n(529659),v=n(38246),y=n(101518),h=n(788141),w=n(479231),g=n(119409),k=n(757525),O=n(206280),S=function(){var e=m().isVoucherApplied,t=(0,o.useSelector)(u.gA),n=(0,o.useSelector)(c.OH),f=(0,o.useSelector)(l.UV),d=(0,b.Z)(),p=(0,k.T)(),S=(0,o.useSelector)(a.$U),P=e||t,_=[s.L0,s.oi],F=[s.XX,s.oi,s.wz,s.Wg],E=(0,v.Z)(),Z=(0,y.Z)(),C=(0,g.n)(),x=E===h.Z.petstable?F.includes(S):_.includes(S),j=(0,i.o)((0,o.useSelector)(u.FD)),A=!!d&&!n&&!f&&!P&&x,I=(0,O.v)(),T=E===h.Z.factor&&Z===w.Z.FJ&&"plans"===j&&!P&&(C||I);return(0,r.useEffect)(function(){var e=p.startSpan("wl-entry-intent-trace");e.setAttributes({shouldShowEntryIntent:A,hasMobileWebViewCookie:I,shouldShowForPage:x,hasVoucher:P,isWebViewSimpleCheck:C,page:j}),e.end()},[]),{shouldShowEntryIntent:A||T,locationType:S,page:j}}},529659:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(606657),o=n(120661),i=function(e){return(0,o.K)(e).entryIntent||{}},u=function(e){return(0,o.K)(e).entryIntentWebView||{}},a=n(732924),c=n(812288),l=n(119409),s=n(757525),f=n(827378),d=n(206280),p=function(){var e=(0,r.useSelector)(a.e),t=(0,c.q)(),n=(0,l.n)(),o=(0,r.useSelector)(i),p=(0,s.T)(),m=(0,d.v)(),b=(0,r.useSelector)(u),v=e||t||n||m?b:o;return((0,f.useEffect)(function(){var r=p.startSpan("wl-webview-trace");r.setAttributes({isMobileAppWebview:e,isHelloFreshApp:t,isWebViewSimpleCheck:n,hasMobileWebViewCookie:m,isResolvedAsWebview:e||t||n||m}),r.end()},[]),v.isEnabled&&v.voucherCode)?{voucherCode:v.voucherCode,secondsDelay:v.secondsDelay||0}:null}},206280:function(e,t,n){"use strict";n.d(t,{v:function(){return i}});var r=n(567921),o=n.n(r),i=function(){var e=o().get("mobileWebView"),t=!1;return e&&(t=e.includes("isMobileAppWebview")&&e.includes("true")),t}},958660:function(e,t,n){"use strict";var r=n(687800);n(827378);var o=n(165218),i=n.n(o),u=n(546795),a=n(193935),c=i()(function(){return n.e(59249).then(n.bind(n,559249))},{loadableGenerated:{webpack:()=>[559249]}}),l=function(){return(0,a.F)().shouldShowEntryIntent?(0,r.tZ)(c,{}):null};t.Z=function(){return(0,r.tZ)(u.Z,{scope:"wl-entry-intent-voucher",children:(0,r.tZ)(l,{})})}},856130:function(e,t,n){"use strict";n.d(t,{bm:function(){return f},pR:function(){return s}});var r,o=n(687800);n(827378);var i=n(567942),u=n(17659);function a(e,t,n,r,o,i,u){try{var a=e[i](u),c=a.value}catch(e){n(e);return}a.done?t(c):Promise.resolve(c).then(r,o)}var c=(0,i.Z)("wl.free-for-life.whitelabel",(r=function(){return function(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=(o=u.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,function(e){return[2,n.e(28738).then(n.bind(n,328738))]})},function(){var e=this,t=arguments;return new Promise(function(n,o){var i=r.apply(e,t);function u(e){a(i,n,o,u,c,"next",e)}function c(e){a(i,n,o,u,c,"throw",e)}u(void 0)})})),l=c.ProjectConfigProvider,s=(c.configMiddleware,c.useConfig),f=function(e){var t=e.children;return(0,o.tZ)(l,{children:(0,o.tZ)(u.V_,{children:t})})}},287232:function(e,t,n){"use strict";n.d(t,{Z:function(){return Z}});var r=n(827378),o=n(90104),i=n.n(o),u=n(606657),a=n(686677),c=n(55140),l=n(176398),s=n(442096),f=n(568653),d=n(549754),p=n(101518),m=n(611691),b=n(47415),v=n(413020),y=n(479231),h={isDiscountCommIdDefaultEnabled:!1,overrides:[{systemCountry:[y.Z.ER,y.Z.CG,y.Z.CK],values:{isDiscountCommIdDefaultEnabled:!0}}]},w=(0,v.Z)("wl.price-presentation-notification",h).useConfig,g=n(635261),k=n(233169),O=n(757525),S=n(154025),P=n(283820),_=function(e,t,n){var r=(0,O.T)(),o=(0,a.useRouter)().query,i=(0,k.Z)().push,u=(0,g.m)({voucherCode:e,productSkus:(null==n?void 0:n.length)?n:[],discountCommunicationId:o.discount_communication_id},{suspense:!1,enabled:!!(null==n?void 0:n.length)&&!!e}),c=function(){var e,n,r,o=null!==(r=(null!==(n=null==u?void 0:null===(e=u.data)||void 0===e?void 0:e.presets)&&void 0!==n?n:{})[t])&&void 0!==r?r:{},i=o.total_offer_value,a=o.organic_modal_offer_title;return{header:void 0===a?"":a,body:void 0===i?"":i}};return{setWunderkind:function(t,n){var o=r.startSpan("wl-wunderkind-set"),u=c(),a=(n/100).toString(),l=(0,S.I)("".concat(u.header," </b> ").concat(u.body),{discountAmount:"percent"===t?"".concat(a,"%"):"$".concat(a)});o.setAttributes({isSet:!0,code:e,discountType:t,amount:a,emailDescription:l}).end(),(0,P.Z)({code:e,discountType:t,amount:a,emailDescription:l}),i({event:"gaEventTrigger",gaEventCategory:"applyVoucher",gaEventAction:"notificationImpression",gaEventNonInteraction:!1,gaEventLabel:"default | ".concat(t," | ").concat(e),event_name:"Voucher_ApplyVoucherNotificationDisplay",voucher:e,voucher_type:t,voucher_apply:"default",voucherDiscountAmount:a,discountAmount:a,discountMessage:l})}}},F=function(e){var t=e.isMobile,n=e.pathname,r=e.systemCountry,o=e.code,i=e.sku,u=e.isDiscountCommIdDefaultEnabled,a=e.discount_comm_id;return!(t&&("/whitelabel/plans"===n||"/whitelabel/signup/[sku]"===n||"/whitelabel/checkout"===n)&&["FJ","YE","TT","TO","CF","ER"].includes(r))&&(u?!!o&&!!i:!!o&&!!i&&!!a)},E=function(e){var t,n,r=c.ZP.create("","pricePresentationNotification",{type:c.k$.success,meta:(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}({},e),n=n={isPricePresentationNotification:!0},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),overrideId:"pricePresentationNotification"});(0,l.wN)(r)},Z=function(){var e=w(),t=(0,u.useSelector)(s.F1),n=(0,u.useSelector)(f.ub),o=(0,u.useSelector)(f.KZ),c=(0,b.BK)().defaultProductFamily,l=(0,(0,b.Bv)().getPlansMap)(c),v=(0,r.useMemo)(function(){var e=[];for(var t in l)for(var n in l[t])e.push(l[t][n].handle);return e},[l]),y=(0,p.Z)(),h=(0,a.useRouter)(),g=h.query,k=h.pathname,O=(0,d.i)().trackSuccessImpression,S=(0,m.S)(),P=_(n,t,v).setWunderkind,Z="mobile"===S;(0,r.useEffect)(function(){F({isMobile:Z,pathname:k,systemCountry:y,code:n,sku:t,isDiscountCommIdDefaultEnabled:e.isDiscountCommIdDefaultEnabled,discount_comm_id:g.discount_comm_id})&&!i()(o)&&(E({code:n,sku:t,productSkus:v,discountCommunicationId:g.discount_comm_id}),"CK"===y?P(o.discountType,o.boxRules[0].discountValueRaw):O())},[Z,k,y,n,t,g,v,O,e,o,P])}},315285:function(e,t,n){"use strict";n.d(t,{hQ:function(){return r}});var r={freebie:"freebie",share:"share",rafShareHpt:"raf-share-hpt",rafShare:"raf-share",b2b:"b2b",directSalesExclusion:"direct_sales_exclusion"}},451218:function(e,t,n){"use strict";n.d(t,{$f:function(){return Z},BX:function(){return s},CA:function(){return eH},DQ:function(){return e7},Dn:function(){return B},FG:function(){return o},Fe:function(){return el},HA:function(){return eM},Hb:function(){return T},I2:function(){return _},I6:function(){return N},Im:function(){return l},Iq:function(){return ec},J$:function(){return r},KC:function(){return eu},KM:function(){return ef},Kt:function(){return $},L0:function(){return A},L5:function(){return eb},L6:function(){return G},Li:function(){return g},MO:function(){return eX},MW:function(){return k},Ms:function(){return q},N7:function(){return p},N9:function(){return eU},NF:function(){return ew},Ol:function(){return P},P0:function(){return e_},QC:function(){return e1},QH:function(){return J},QM:function(){return e0},RU:function(){return eP},Rf:function(){return M},TG:function(){return eo},Tw:function(){return eR},Ur:function(){return E},V0:function(){return ee},WV:function(){return D},XJ:function(){return ez},XW:function(){return i},Xe:function(){return O},Xy:function(){return F},Y6:function(){return ek},YE:function(){return es},Zs:function(){return em},_$:function(){return eC},_3:function(){return x},_g:function(){return X},aX:function(){return Y},ae:function(){return L},an:function(){return eh},az:function(){return eE},bP:function(){return eF},bj:function(){return W},c7:function(){return eW},d3:function(){return d},d8:function(){return eA},dI:function(){return eD},dj:function(){return eB},dq:function(){return e6},e0:function(){return e5},eh:function(){return e8},en:function(){return ep},fC:function(){return et},fU:function(){return K},fV:function(){return e$},fZ:function(){return ey},fs:function(){return c},ft:function(){return eZ},gI:function(){return eS},h9:function(){return v},hX:function(){return ei},ht:function(){return eO},hw:function(){return e2},i:function(){return m},iF:function(){return U},ih:function(){return f},ir:function(){return eV},je:function(){return eG},k9:function(){return C},kh:function(){return ea},lC:function(){return H},lG:function(){return u},l_:function(){return eL},lr:function(){return eT},m7:function(){return en},of:function(){return e9},pK:function(){return a},pU:function(){return eg},pq:function(){return ed},q1:function(){return z},r3:function(){return w},ri:function(){return er},s3:function(){return e3},t7:function(){return ev},tX:function(){return eQ},u4:function(){return S},uH:function(){return h},uJ:function(){return V},vF:function(){return b},vX:function(){return eK},vu:function(){return j},w1:function(){return eN},w6:function(){return ex},wu:function(){return eI},x0:function(){return Q},xS:function(){return R},xv:function(){return y},y2:function(){return eq},yZ:function(){return eJ},yo:function(){return ej},z5:function(){return I},zV:function(){return eY}});var r="markdown.productFamilies.menu.title",o="markdown.productFamilies.menu.description",i="markdown.productFamilies.addons.title",u="markdown.productFamilies.addons.description",a="markdown.productFamilies.addons.loadMore",c="markdown.productFamilies.addons.seeLess",l="markdown.productFamilies.menu.loadMore",s="markdown.productFamilies.menu.seeLess",f="markdown.productFamilies.toggle.label",d="markdown.productFamilies.toggle.select.text",p="markdown.productFamilies.carbConscious.title",m="markdown.productFamilies.balancedLiving.title",b="markdown.productFamilies.plantPowered.title",v="markdown.productFamilies.carbConscious.subtitle",y="markdown.productFamilies.balancedLiving.subtitle",h="markdown.productFamilies.plantPowered.subtitle",w="markdown.productFamilies.carbConscious.icon",g="markdown.productFamilies.balancedLiving.icon",k="markdown.productFamilies.plantPowered.icon",O="markdown.productFamilies.vegan.icon",S="markdown.productFamilies.keto.icon",P="markdown.productFamilies.lowCarb.icon",_="markdown.productFamilies.glutenFree.icon",F="markdown.productFamilies.proteinPacked.title",E="markdown.productFamilies.proteinPacked.subtitle",Z="markdown.preferences.proteinPacked.icon",C="markdown.productFamilies.calorieSmart.icon",x="markdown.productFamilies.chefsChoice.icon",j="markdown.productFamilies.proteinPlus.icon",A="markdown.preferences.meatAndVeggie.icon.outline",I="markdown.preferences.meatAndVeggie.icon.coloured",T="markdown.preferences.vegetarian.icon.outline",D="markdown.preferences.vegetarian.icon.coloured",R="markdown.preferences.family.icon.outline",B="markdown.preferences.family.icon.coloured",M="markdown.preferences.veganvegetarian.icon",L="markdown.preferences.highProtein.icon",N="markdown.preferences.lowLactose.icon",U="markdown.preferences.calorieSmart.title",G="markdown.preferences.calorieSmart.subtitle",W="markdown.preferences.plantBased.title",q="markdown.preferences.plantBased.subtitle",V="markdown.preferences.plantBased.icon",K="markdown.preferences.adventurousEats.title",X="markdown.preferences.adventurousEats.subtitle",H="markdown.preferences.adventurousEats.icon",z="markdown.preferences.quick.icon.outline",Q="markdown.preferences.quick.icon.coloured",$="markdown.preferences.quick.title",Y="markdown.preferences.quick.subtitle",J="markdown.preferences.glutenFree.title",ee="markdown.preferences.glutenFree.subtitle",et="markdown.preferences.mediterranean.subtitle",en="markdown.preferences.mediterranean.icon",er="markdown.preferences.mediterranean.title",eo="markdown.preferences.fastAndFit.icon",ei="markdown.preferences.fastAndFit.subtitle",eu="markdown.preferences.fastAndFit.title",ea="markdown.preferences.glutenFree.icon",ec="markdown.preferences.pescatarian.icon",el="markdown.preferences.classicPlate.icon.outline",es="markdown.preferences.classicPlate.icon.coloured",ef="markdown.preferences.veggiePlate.icon.outline",ed="markdown.preferences.veggiePlate.icon.coloured",ep="markdown.preferences.familyPlate.icon.outline",em="markdown.preferences.familyPlate.icon.coloured",eb="markdown.preferences.easyPlate.icon.outline",ev="markdown.preferences.easyPlate.icon.coloured",ey="markdown.preferences.flexitarian.icon.outline",eh="markdown.preferences.flexitarian.icon.coloured",ew="markdown.preferences.everyday.icon",eg="markdown.preferences.lowCalorie.icon",ek="markdown.productFamilies.settings.label",eO="markdown.productFamilies.settings.note",eS="markdown.productFamilies.giftCard.title",eP="markdown.productFamilies.mediumBox.title",e_="markdown.productFamilies.mediumBox.description",eF="markdown.productFamilies.mediumBox.description.short",eE="markdown.productFamilies.mediumBox.description.variation",eZ="markdown.productFamilies.mediumBox.image",eC="markdown.productFamilies.largeBox.title",ex="markdown.productFamilies.largeBox.description",ej="markdown.productFamilies.largeBox.description.short",eA="markdown.productFamilies.largeBox.description.variation",eI="markdown.productFamilies.largeBox.image",eT="markdown.productFamilies.smallBox.title",eD="markdown.productFamilies.smallBox.description",eR="markdown.productFamilies.smallBox.image",eB="markdown.productFamilies.trialBox.title",eM="markdown.productFamilies.trialBox.description",eL="markdown.productFamilies.trialBox.description.variation",eN="markdown.productFamilies.trialBox.description.short",eU="markdown.productFamilies.trialBox.image",eG="markdown.productFamilies.example.mediumBox.content",eW="markdown.productFamilies.example.largeBox.content",eq="markdown.plansPage.preferencesDescription.generic",eV="markdown.productFamilies.smallBox.weight",eK="markdown.productFamilies.mediumBox.weight",eX="markdown.productFamilies.mediumBox.weight.variation",eH="markdown.productFamilies.largeBox.weight",ez="markdown.productFamilies.largeBox.weight.variation",eQ="markdown.productFamilies.trialBox.weight",e$="markdown.productFamilies.trialBox.weight.variation",eY="markdown.productFamilies.xlBox.title",eJ="markdown.productFamilies.xlBox.description",e0="markdown.productFamilies.xlBox.image",e1="markdown.productFamilies.xlBox.weight",e2="markdown.productFamilies.mediumBox.variation.xl.description",e6="markdown.productFamilies.largeBox.variation.xl.description",e7="markdown.preferences.gutAndBrain.title",e8="markdown.preferences.gutAndBrain.subtitle",e5="markdown.preferences.gutAndBrain.icon",e3="markdown.preferences.proteinPlus.title",e9="markdown.preferences.proteinPlus.subtitle"},333329:function(e,t,n){"use strict";n.d(t,{Jg:function(){return o},MQ:function(){return u},XM:function(){return r},bU:function(){return i}});var r={GIFT:"gift-card",CHECKOUT:"checkout",LANDING:"landing-page",HOME:"home-page"},o={SCOPE:"scope",STATUS:"status",IS_MOBILE_WEBVIEW:"is-wl-mobile-webview"},i={INIT:"initialized",STARTED:"started",ABANDONED:"abandoned",FAILED:"failed",SUCCESS:"success",PROGRESS:"in-progress"},u=function(e,t){var n=e.startSpan("conversions");return n.setAttribute(o.SCOPE,t),n.setAttribute(o.STATUS,i.INIT),n}},571263:function(e,t,n){"use strict";var r=n(687800),o=n(827378),i=n(723615),u=n.n(i),a=n(606657),c=n(738969),l=n(865193),s=n(610650),f=n(34364),d=n(667845),p=n(569842);function m(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 b=function(e){var t,n=e.children,i=e.loadingFallback,u=void 0===i?(0,r.tZ)(d.Z,{}):i,b=e.showLoading,v=function(e){if(Array.isArray(e))return e}(t=o.useState(!b))||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],u=!0,a=!1;try{for(o=o.call(e);!(u=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);u=!0);}catch(e){a=!0,r=e}finally{try{u||null==o.return||o.return()}finally{if(a)throw r}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return m(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 m(e,t)}}(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.")}(),y=v[0],h=v[1],w=(0,a.useDispatch)(),g=(0,s.D)(),k=(0,f.w)().hasSubscription,O=(0,p.G)().routeKey;return o.useEffect(function(){g&&(k?w((0,c.uX)({type:O||l.M,kind:"redirect"})):y||h(!0))},[g,k,w,O,y]),y?n:u};b.propTypes={children:u().node,loadingFallback:u().node,showLoading:u().bool},t.Z=b},569842:function(e,t,n){"use strict";n.d(t,{G:function(){return l}});var r=n(865193),o=n(213781),i=n(788141),u=n(413020),a={isRedirectionEnabled:!1,overrides:[{brand:[i.Z.greenchef,i.Z.everyplate,i.Z.chefsplate],values:{isRedirectionEnabled:!0}}]},c=(0,u.Z)("wl.page-guard-redirection",a).useConfig,l=function(){var e=c().isRedirectionEnabled,t=(0,o.Z)(),n="success"===t.queryStatus,i=n?t.subscription:null,u=!!(null==i?void 0:i.canceledAt),a="";return n&&u&&e&&(a=r.VE),{routeKey:a,isSubscriptionDataResolved:n}}},610650:function(e,t,n){"use strict";n.d(t,{D:function(){return i}});var r=n(827378),o=n(788678),i=function(){return(0,r.useContext)(o.K)}},732924:function(e,t,n){"use strict";n.d(t,{e:function(){return r}});var r=function(e){var t;return!!(null==e?void 0:null===(t=e.appConfig)||void 0===t?void 0:t.isMobileAppWebview)}},624849:function(e,t,n){"use strict";n.d(t,{r:function(){return c}});var r=n(606657),o=n(896314),i=n(574721),u=n(373099),a=function(e,t){return Object.values(e).filter(function(e){return e.family===t})},c=function(){var e=(0,r.useSelector)(o.$F),t=(0,r.useSelector)(o.r8),n=(0,r.useSelector)(o.nR),c=(0,r.useSelector)(u.f2);return{subscribableProducts:e,getPlansMap:function(n){var r=a(e,n||t);return(0,i.TL)(r)},getPlans:function(){return Object.values(e)},getAllProducts:n,experimentPlansMap:function(n){var r=n.productFamily,o=n.tier,u=n.exclusions,c=a(e,r||t),l=(0,i.bO)({products:c,exclusions:void 0===u?void 0:u});return(0,i.TL)(l,{tier:void 0===o?void 0:o})},getExperimentPlans:function(e){var t=e.tier,r=void 0===t?void 0:t;if(!r||!(null==c?void 0:c.length)>0)return[];var o=c[0].replace(/t\d/,r.toLowerCase());return a(Object.values(n),o).filter(function(e){return e.isSubscribable}).sort(function(e,t){return e.meals-t.meals})}}}},556180:function(e,t,n){"use strict";n.d(t,{b:function(){return c}});var r=n(199729),o=n.n(r),i=n(606657),u=n(896314),a=n(711022),c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=(0,a.D)(),n=(0,i.useSelector)(function(t){return(0,u.B7)(t,e)})||[];return{isProductFamiliesEnabled:o()(t,"productFamilies.isEnabled"),showProductFamilies:o()(t,"productFamilies.showProductFamilies"),isProductFamiliesDropdownDisabled:o()(t,"productFamilies.disablePlanType"),productFamilies:n}}},155180:function(e,t,n){"use strict";n.d(t,{o:function(){return u}});var r=n(199729),o=n.n(r),i=n(865193),u=function(e){var t=e.type;if(t===i.lC){var n=o()(e,"payload.page");return"checkout".concat(n)}return t.replace(/ROUTE_/,"").replace(/_/g,"").toLowerCase()}}},function(e){e.O(0,[10667,72953,96728,27650,79894,30809,27298,66824,42571,69567,37635,74762,61403,14206,94022,85698,74836,29809,5710,18629,60475,82544,36943,26157,16724,68034,39108,87120,18283,49774,92888,40179],function(){return e(e.s=104771)}),_N_E=e.O()}]);