1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[61573,92282,72065,86282,10198],{70972:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationError=void 0;class r extends Error{constructor(e){super(e),this.name="ValidationError"}}t.ValidationError=r},151014:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Validator=void 0;class r{static validatePattern(e,t){try{return new RegExp(t).test(e)}catch(e){return!1}}static validateUUID(e){return/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)}static validationError(e,t,r){let n=r?`[${r}] `:"";return`Janus validation failed: ${n}field '${e}' ${t}`}static validateCardinality(e,t,r){let n=e?.length??0;return n>=t&&(null===r||n<=r)}static cardinalityError(e,t,r,n,o){let i=o?`[${o}] `:"";return`Janus validation failed: ${i}${e} count must be between ${r} and ${n?.toString()??"â"}, got ${t}`}}t.Validator=r},626269:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EcommercePriceEntity_v1_0_0=void 0;class r{constructor(e,t,r,n,o,i,u,a){this.currency=e,this.productSku=t,this.productPrice=r,this.shippingPrice=n,this.totalOrderPrice=o,this.productPriceInclDiscount=i,this.shippingPriceInclDiscount=u,this.totalOrderPriceInclDiscount=a}toJSON(){return{currency:this.currency,product_sku:this.productSku,product_price:this.productPrice,shipping_price:this.shippingPrice,total_order_price:this.totalOrderPrice,product_price_incl_discount:this.productPriceInclDiscount,shipping_price_incl_discount:this.shippingPriceInclDiscount,total_order_price_incl_discount:this.totalOrderPriceInclDiscount}}}t.EcommercePriceEntity_v1_0_0=r},666665:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EcommerceProductEntity_v3_0_0=void 0;class r{constructor(e,t,r,n=null){this.productSku=e,this.productName=t,this.productCategory=r,this.productPreference=n}toJSON(){return{product_sku:this.productSku,product_name:this.productName,product_category:this.productCategory,product_preference:this.productPreference}}}t.EcommerceProductEntity_v3_0_0=r},193517:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FunnelEntity_v1_2_0=void 0;class r{constructor(e=null,t=null,r=null){this.funnelId=e,this.funnelName=t,this.visitId=r}toJSON(){return{funnel_id:this.funnelId,funnel_name:this.funnelName,visit_id:this.visitId}}}t.FunnelEntity_v1_2_0=r},58100:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PageEntity_v1_2_0=void 0;class r{constructor(e){this.pageName=e}toJSON(){return{page_name:this.pageName}}}t.PageEntity_v1_2_0=r},849141:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PageEntity_v1_3_0=void 0;class r{constructor(e){this.pageName=e}toJSON(){return{page_name:this.pageName}}}t.PageEntity_v1_3_0=r},891498:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UiComponentEntity_v1_0_1=void 0;class r{constructor(e,t=null){this.uiComponentName=e,this.uiComponentLabel=t}toJSON(){return{ui_component_name:this.uiComponentName,ui_component_label:this.uiComponentLabel}}}t.UiComponentEntity_v1_0_1=r},484328:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UiModalEntity_v1_4_0=void 0;class r{constructor(e){this.uiModalName=e}toJSON(){return{ui_modal_name:this.uiModalName}}}t.UiModalEntity_v1_4_0=r},885628:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserInteractionEvent_v2_1_0=void 0;class r{constructor(e,t,r,n){this.actionType=e,this.interactionType=t,this.target=r,this.uiElementType=n}toJSON(){return{action_type:this.actionType,interaction_type:this.interactionType,target:this.target,ui_element_type:this.uiElementType}}}t.UserInteractionEvent_v2_1_0=r},337261:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserInteractionEvent_v2_3_0=void 0;class r{constructor(e,t,r,n){this.actionType=e,this.interactionType=t,this.target=r,this.uiElementType=n}toJSON(){return{action_type:this.actionType,interaction_type:this.interactionType,target:this.target,ui_element_type:this.uiElementType}}}t.UserInteractionEvent_v2_3_0=r},645233:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/intelligent-funnel/factor-plans",function(){return r(188482)}])},10198:function(e,t,r){"use strict";r.d(t,{vr:function(){return C},SV:function(){return A}});var n,o,i=r(456552),u=r(827378),a=r(534243),c=r(671718),l=r(26124),s=r(140224),f=r(841723),d=r(64294),p=r(808215),v=r(783244),y=function(e){var t,r,n,o,i,u,a,c,l,s,f,d,p=null===(t=e.products)||void 0===t?void 0:t[0];return{businessDivision:e.businessDivision,hfPublicID:e.hfPublicID,customerUUID:(null==e?void 0:e.customerUUID)||null,delivery:{handle:(null==p?void 0:p.deliveryOption)||null,date:(null==p?void 0:p.deliveryDate)||null},products:null!==(a=null===(r=e.products)||void 0===r?void 0:r.map(function(e){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}
1))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({handle:e.handle},e.quantityPerCourse&&e.quantityPerCourse.length>0&&{quantityPerCourse:e.quantityPerCourse},e.customer_selection&&e.customer_selection.length>0&&{customer_selection:e.customer_selection},e.hfWeek&&{hfWeek:e.hfWeek})}))&&void 0!==a?a:[],voucherCode:null!==(c=e.couponCode)&&void 0!==c?c:"",shippingAddress:e.shippingAddress?{address1:null!==(l=null==e?void 0:null===(n=e.shippingAddress)||void 0===n?void 0:n.address1Street)&&void 0!==l?l:"",city:null!==(s=null==e?void 0:null===(o=e.shippingAddress)||void 0===o?void 0:o.city)&&void 0!==s?s:"",phone:null!==(f=null==e?void 0:null===(i=e.shippingAddress)||void 0===i?void 0:i.phone)&&void 0!==f?f:"",postcode:null!==(d=null==e?void 0:null===(u=e.shippingAddress)||void 0===u?void 0:u.postcode)&&void 0!==d?d:""}:void 0,checkoutType:e.checkoutType}},b=function(e){var t,r,n=function(e){return e.units+e.nanos/1e9},o=null==e?void 0:null===(t=e.products)||void 0===t?void 0:t.map(function(t){return{handle:t.id,quantity:1,deliveryDate:null,deliveryOption:void 0,charges:null,priceId:t.priceId,couponMoneyValue:n(t.discount),couponRefundable:t.couponRefundable,currency:t.price.currencyCode,paidPrice:n(t.price)-n(t.discount),shippingAmount:n(t.shippingFee),shippingDiscountAmount:n(t.shippingDiscount),taxAmount:n(t.tax),taxPercent:t.taxPercent,unitPrice:n(t.price),couponCode:e.voucherCode||""}});return{Recalculate:!1,country:e.businessDivision.regionCode,couponCode:e.voucherCode||"",currency:(null===(r=e.products[0])||void 0===r?void 0:r.price.currencyCode)||"USD",customerID:0,discountAmount:n(e.totalDiscountApplied),grandTotal:n(e.grandTotal),isRecurring:!1,minimumValue:e.minimumValue,premiumShippingAmount:n(e.shipping.premium),products:o,remainingDiscountAmount:e.remainingDiscountAmount,shippingAddress:{city:"",postcode:""},city:"",postcode:"",shippingAmount:n(e.shipping.final),shippingDiscountAmount:n(e.shipping.discount),shippingTaxAmount:n(e.shipping.tax),standardShippingAmount:n(e.shipping.base),standardShippingDiscountAmount:n(e.shipping.discount),subTotal:n(e.subtotal),taxAmount:n(e.totalTax),useRemainingDiscountAsCredit:e.useRemainingDiscountAsCredit}},h=r(699219);function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var g=function(e){return Object.fromEntries(Object.entries(e).filter(function(e){var t=(function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,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=(r=o.next()).done)&&(i.push(r.value),2!==i.length);u=!0);}catch(e){a=!0,n=e}finally{try{u||null==o.return||o.return()}finally{if(a)throw n}}return i}}(e,2)||function(e,t){if(e){if("string"==typeof e)return m(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(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.")}())[1];return null!=t&&""!==t}))},O=function(e){var t,r,n,o,i=null===(r=e.products)||void 0===r?void 0:r[0],u=g({handle:null==i?void 0:i.deliveryOption,date:"string"==typeof(t=null==i?void 0:i.deliveryDate)?t.split("T")[0]:t}),a=(null!==(o=e.products)&&void 0!==o?o:[]).map(function(e){var t,r;return g({handle:e.handle,hfWeek:e.hfWeek,quantityPerCourse:(null===(t=e.quantityPerCourse)||void 0===t?void 0:t.length)?e.quantityPerCourse:void 0,customer_selection:(null===(r=e.customer_selection)||void 0===r?void 0:r.length)?e.customer_selection:void 0})});return[h.Z["calculate.calculateCheckoutPrices"],g(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}
1))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({businessDivision:e.businessDivision,customerUUID:e.customerUUID,delivery:u,products:a,voucherCode:e.couponCode,checkoutType:e.checkoutType,hfPublicIDSuffix:e.hfPublicIDSuffix},(null===(n=e.shippingAddress)||void 0===n?void 0:n.postcode)?{shippingAddress:{postcode:e.shippingAddress.postcode}}:{}))]};function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function S(e,t,r,n,o,i,u){try{var a=e[i](u),c=a.value}catch(e){r(e);return}a.done?t(c):Promise.resolve(c).then(n,o)}function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function w(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function Z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,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=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);u=!0);}catch(e){a=!0,n=e}finally{try{u||null==o.return||o.return()}finally{if(a)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return I(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 j="hf_prefill_zipcode",_=(n=function(e,t){var r,n,o,i,u,l,s,f,p,v,h=arguments;return function(e,t){var r,n,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(r)throw TypeError("Generator is already executing.");for(;u;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=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++,n=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],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,function(m){switch(m.label){case 0:if(r=h.length>2&&void 0!==h[2]?h[2]:c.Z,n=e.systemCountry,o=e.businessDivision,i=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["systemCountry","businessDivision"]),f=(0,d.ZP)(),!(p=i.hfPublicIDSuffix&&f?(0,a.Z)("".concat(f,":").concat(i.hfPublicIDSuffix),a.Z.URL):f))throw Error("Missing required parameter: hfPublicID");return v=y(w(P({},i),{businessDivision:o,hfPublicID:p})),[4,r("/activations/checkout/price",t,{method:"POST",headers:P({"Content-Type":"application/json"},i.headers),data:w(P({},v),{country:n.toUpperCase()}),parentSpan:i.parentSpan,fetchSpanAttributes:{"request.backend_service":"price-service","request.backend_action":"activations-checkout-price","sales.channel":(null===(u=i.headers)||void 0===u?void 0:u["Checkout-Context-Sales-Channel"])||"none","sales.conversion_funnel":(null===(l=i.headers)||void 0===l?void 0:l["Checkout-Context-Conversion-Funnel"])||"none","sales.checkout_type":(null===(s=i.headers)||void 0===s?void 0:s["Checkout-Context-Type"])||"none","sales.headers_present":!!(i.headers&&Object.keys(i.headers).length>0)}})];case 1:return[4,m.sent().json()];case 2:return[2,b.apply(void 0,[m.sent()])]}})},o=function(){var e=this,t=arguments;return new Promise(function(r,o){var i=n.apply(e,t);function u(e){S(i,r,o,u,a,"next",e)}function a(e){S(i,r,o,u,a,"throw",e)}u(void 0)})},function(e,t){return o.apply(this,arguments)}),C=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,s.O)(),o=(0,p.Z)(),i=o.brand,u=o.region_code,a=Z((0,v.Z)(j)||[""],1)[0],c=(null===(t=e.shippingAddress)||void 0===t?void 0:t.postcode)||a||"",f=w(P({},e),{businessDivision:{brand:i,regionCode:u},shippingAddress:w(P({},e.shippingAddress),{postcode:c})}),d=O(f);return(0,l.Z)(d,function(e){return _(P({},f,n),d,e)},P({enabled:!!c,staleTime:3e4},r))},A=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Z((0,v.Z)(j)||[""],1)[0],o=(0,i.useQueryClient)(),a=(0,s.O)(),c=(null===(t=e.shippingAddress)||void 0===t?void 0:t.postcode)||n||"",d=(0,p.Z)(),y=d.brand,b=d.region_code,h=Z((0,u.useState)(""),2),m=h[0],g=h[1],I=!!c&&(0,f.v)(c,a.systemCountry);(0,u.useEffect)(function(){I&&c&&g(c)},[c,I]);var S=w(P({},e),{businessDivision:{brand:y,regionCode:b},shippingAddress:w(P({},e.shippingAddress),{postcode:c})}),C=I?c:m,A=O(w(P({},S),{shippingAddress:w(P({},S.shippingAddress),{postcode:C})}));return(0,l.Z)(A,function(e){return _(P({},S,a),A,e)},P({enabled:!!C,staleTime:3e4,initialData:!I&&m?o.getQueryData(A):void 0},r))}},72065:function(e,t,r){"use strict";r.d(t,{vr:function(){return w},SV:function(){return j},RA:function(){return Z}});var n,o,i=r(456552),u=r(827378),a=r(671718),c=r(447178),l=r(26124),s=r(64294),f=r(140224),d=r
1(699219),p=function(e,t){var r=e.productIds,n=e.voucherCode;return{query:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({productIds:Array.isArray(r)?null==r?void 0:r.join(","):r,voucherCode:n||"",hfCountryCode:(null==t?void 0:t.toUpperCase())||""},e.zipCode&&{zipCode:e.zipCode},e.hfPublicID&&{hfPublicID:e.hfPublicID},e.checkoutType&&{checkoutType:e.checkoutType}),parentSpan:e.parentSpan}},v=r(841723);function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function b(e,t,r,n,o,i,u){try{var a=e[i](u),c=a.value}catch(e){r(e);return}a.done?t(c):Promise.resolve(c).then(n,o)}function h(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function u(e){b(i,n,o,u,a,"next",e)}function a(e){b(i,n,o,u,a,"throw",e)}u(void 0)})}}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function g(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function O(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function I(e,t){var r,n,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(r)throw TypeError("Generator is already executing.");for(;u;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=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++,n=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],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}var S=(n=h(function(e,t){var r,n,o,i,u,c,l=arguments;return I(this,function(s){switch(s.label){case 0:if(r=l.length>2&&void 0!==l[2]?l[2]:a.Z,n=e.systemCountry,o=O(e,["systemCountry"]),!n||!o.productIds||!o.productIds.length)throw Error("Missing required params");s.label=1;case 1:return s.trys.push([1,3,,4]),[4,r("/calculate/prospect/batch",t,g(m({},p(o,n)),{headers:o.headers,fetchSpanAttributes:{"request.backend_service":"price-service","request.backend_action":"calculate-prospect-batch","sales.channel":(null===(i=o.headers)||void 0===i?void 0:i["Checkout-Context-Sales-Channel"])||"none","sales.conversion_funnel":(null===(u=o.headers)||void 0===u?void 0:u["Checkout-Context-Conversion-Funnel"])||"none","sales.checkout_type":(null===(c=o.headers)||void 0===c?void 0:c["Checkout-Context-Type"])||"none","sales.headers_present":!!(o.headers&&Object.keys(o.headers).length>0)}}))];case 2:return[2,s.sent().json()];case 3:throw s.sent();case 4:return[2]}})}),function(e,t){return n.apply(this,arguments)}),P=(o=h(function(e,t){var r,n,o,i=arguments;return I(this,function(u){switch(u.label){case 0:return r=i.length>2&&void 0!==i[2]?i[2]:a.Z,n=e.systemCountry,[4,r("/calculate",t,{method:"POST",data:g(m({},o=O(e,["systemCountry"])),{country:n.toUpperCase()}),parentSpan:o.parentSpan,fetchSpanAttributes:{"request.backend_service":"price-service","request.backend_action":"calculate"}})];case 1:return[2,u.sent().json()]}})}),function(e,t){return o.apply(this,arguments)}),w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,c.Z)().fetch,n=(0,f.O)(),o=[d.Z["calculate.calculatePrices"],e];return(0,i.useQuery)(o,function(){return P(m({},e,n),o,r)},t)},Z=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
1,n=(0,f.O)(),o=[d.Z["calculate.calculatePricesProspectBatch"],e];e.hfPublicID||(e.hfPublicID=(0,s.ZP)());var i=Array.isArray(e.productIds)?e.productIds.length>0:!!e.productIds&&e.productIds.length>0;return(0,l.Z)(o,function(t){return S(m({},e,n),o,t)},g(m({},r),{enabled:!1!==r.enabled&&!!e.hfPublicID&&i&&(null===(t=r.enabled)||void 0===t||t)}))},j=function(e){var t,r,n,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=(0,c.Z)().fetch,s=(0,i.useQueryClient)(),p=(0,f.O)(),b=(null===(r=e.shippingAddress)||void 0===r?void 0:r.postcode)||"",h=function(e){if(Array.isArray(e))return e}(t=(0,u.useState)(""))||function(e,t){var r,n,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=(r=o.next()).done)&&(i.push(r.value),2!==i.length);u=!0);}catch(e){a=!0,n=e}finally{try{u||null==o.return||o.return()}finally{if(a)throw n}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return y(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y(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.")}(),O=h[0],I=h[1],S=!!(null===(n=e.shippingAddress)||void 0===n?void 0:n.postcode)&&(0,v.v)(null===(o=e.shippingAddress)||void 0===o?void 0:o.postcode,p.systemCountry);(0,u.useEffect)(function(){S&&b&&I(b)},[b,S]);var w=S?b:O,Z=[d.Z["calculate.calculatePrices"],g(m({},e),{shippingAddress:g(m({},e.shippingAddress),{postcode:w})})];return(0,i.useQuery)(Z,function(){return P(m({},e,p),Z,l)},m({enabled:!!w,initialData:!S&&O?s.getQueryData(Z):void 0},a))}},580766:function(e,t,r){"use strict";r.d(t,{S:function(){return m}});var n,o=r(827378),i=r(456552),u=r(497249),a=r(344884),c=r(671718),l=r(407108),s=r(140224),f=r(699219);function d(e,t,r,n,o,i,u){try{var a=e[i](u),c=a.value}catch(e){r(e);return}a.done?t(c):Promise.resolve(c).then(n,o)}function p(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function u(e){d(i,n,o,u,a,"next",e)}function a(e){d(i,n,o,u,a,"throw",e)}u(void 0)})}}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function y(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function b(e,t){var r,n,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(r)throw TypeError("Generator is already executing.");for(;u;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=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++,n=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],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}var h=(n=p(function(e,t){var r,n,o,i,u,a=arguments;return b(this,function(l){switch(l.label){case 0:return r=a.length>2&&void 0!==a[2]?a[2]:c.Z,n=e.systemCountry,o=e.locale,i=e.parentSpan,u=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["systemCountry","locale","parentSpan"]),[4,r("/cart/".concat(u.cartId,"/items"),t,{method:"PATCH",headers:{"Content-Type":"application/json"},query:{country:n,locale:o},data:y(v({},u),{country:n}),parentSpan:i,fetchSpanAttributes:{"request.backend_service":"cart-service","request.backend_action":"patch-cart-items","cart.id":u.cartId}})];case 1:return[2,l.sent().json()]}})}),function(e,t){return n.apply(this,arguments)}),m=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,i.useQueryClient)(),n=(0,s.O)(),c=(0,o.useRef)(),d=(0,u.T)();return(0,l.Z)([f.Z["cart.patchCart"]],function(e,t){if(c.current=d.startSpan("data-access.patch-cart"),c.current.setAttribute("voucherCode",t.voucher||"undefined"),t.items.length){var r,o,i,u,a=t.items[0],l=(null===(r=a.metadata)||void 0===r?void 0:r.presets)||[];c.current.setAttribute("sku",a.sku),c.current.setAttribute("mealsPreset",(null===(o=a.metadata)||void 0===o?void 0:o.mealsPreset)||"undefined"),c.current.setAttribute("productFamily",(null===(i=a.metadata)||void 0===i?void 0:i.productFamily)||"undefined"),c.current.setAttribute("presets",l.join("|")),c.current.setAttribute("presetsCount",l.length),c.current.setAttribute("productType",(null===(u=a.metadata)||void 0===u?void 0:u.productType)||"undefined")}return h(v({},t,n),[f.Z["cart.patchCart"]],e)},y(v({},t),{onMutate:(e=p(function(e){var t,n,o;return b(this,function(i){switch(i.label){case 0:return t=[f.Z["cart.byId"],{id:e.cartId}],[4,r.cancelQueries({queryKey:t})];case 1:return i.sent(),n=r.getQueryData(t),o=function(){var t,r,o,i,u,a,c,l,s,f,d,p,b,h,m,g,O,I,S,P,w,Z,j,_,C,A;return y(v({},n),{items:[y(v({},null==n?void 0:null===(t=n.items)||void 0===t?void 0:t[0]),{sku:null==e?void 0:null===(o=e.items)||void 0===o?void 0:null===(r=o[0])||void 0===r?void 0:r.sku,metadata:y(v({},null==n?void 0:null===(u=n.items)||void 0===u?void 0:null===(i=u[0])||void 0===i?void 0:i.metadata),{mealsPreset:null==e?void 0:null===(l=e.items)||void 0===l?void 0:null===(c=l[0])||void 0===c?void 0:null===(a=c.metadata)||void 0===a?void 0:a.mealsPreset,presets:null==e?void 0:null===(d=e.items)||void 0===d?void 0:null===(f=d[0])||void 0===f?void 0:null===(s=f.metadata)||void 0===s?void 0:s.presets,goals:null==e?void 0:null===(h=e.items)||void 0===h?void 0:null===(b=h[0])||void 0===b?void 0:null===(p=b.metadata)||void 0===p?void 0:p.goals,additionalPreferences:null==e?void 0:null===(O=e.items)||void 0===O?void 0:null===(g=O[0])||void 0===g?void 0:null===(m=g.metadata)||void 0===m?void 0:m.additionalPreferences,zipcode:null==e?void 0:null===(P=e.items)||void 0===P?void 0:null===(S=P[0])||void 0===S?void 0:null===(I=S.metadata)||void 0===I?void 0:I.zipcode,productType:null==e?void 0:null===(j=e.items)||void 0===j?void 0:null===(Z=j[0])||void 0===Z?void 0:null===(w=Z.metadata)||void 0===w?void 0:w.productType,checkoutType:null==e?void 0:null===(A=e.items)||void 0===A?void 0:null===(C=A[0])||void 0===C?void 0:null===(_=C.metadata)||void 0===_?void 0:_.checkoutType})})]})},r.setQueryData(t,o),[2,{previousCartData:n,queryKey:t}]}})}),function(t){return e.apply(this,arguments)}),onSuccess:function(e,r,n){c.current&&(c.current.setAttribute("cartId",e.id),c.current.end()),"function"==typeof t.onSuccess&&t.onSuccess(e,r,n)},onError:function(e,n,o){(null==o?void 0:o.queryKey)&&r.setQueryData(o.queryKey,null==o?void 0:o.previousCartData),c.current&&(c.current.setStatus({message:e.message,code:a.Z.ERROR}),c.current.end()),"function"==typeof t.onError&&t.onError(e,n,o)}}))}},431328:function(e,t,r){"use strict";r.d(t,{u:function(){return f}});var n,o,i=r(456552),u=r(671718),a=r(407108),c=r(699219);function l(e,t,r,n,o,i,u){try{var a=e[i](u),c=a.value}catch(e){r(e);return}a.done?t(c):Promise.resolve(c).then(n,o)}var s=(n=function(e,t){var r,n,o,i,a=arguments;return function(e,t){var r,n,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(r)throw TypeError("Generator is already executing.");for(;u;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=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++,n=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}
1o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,function(c){switch(c.label){case 0:return r=a.length>2&&void 0!==a[2]?a[2]:u.Z,n=e.cartId,o=e.voucher,i=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["cartId","voucher"]),[4,r("/cart/".concat(n),t,{method:"PATCH",headers:{"Content-Type":"application/json"},data:{voucher:o},parentSpan:i.parentSpan,fetchSpanAttributes:{"request.backend_service":"cart-service","request.backend_action":"patch-cart","cart.id":n}})];case 1:return[2,c.sent().json()]}})},o=function(){var e=this,t=arguments;return new Promise(function(r,o){var i=n.apply(e,t);function u(e){l(i,r,o,u,a,"next",e)}function a(e){l(i,r,o,u,a,"throw",e)}u(void 0)})},function(e,t){return o.apply(this,arguments)}),f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,i.useQueryClient)();return(0,a.Z)([c.Z["cart.updateCartVoucher"]],function(e,t){return s(t,[c.Z["cart.updateCartVoucher"]],e)},function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({onSuccess:function(e,r){t.invalidateQueries([c.Z["cart.byId"],r.cartId])}},e))}},747012:function(e,t,r){"use strict";r.d(t,{Sj:function(){return v},h5:function(){return p},rm:function(){return y}});var n,o,i=r(671718),u=r(26124),a=r(447178),c=r(456552),l=r(699219),s=r(140224);function f(e,t,r,n,o,i,u){try{var a=e[i](u),c=a.value}catch(e){r(e);return}a.done?t(c):Promise.resolve(c).then(n,o)}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}var p=(n=function(e,t){var r,n,o,u,a,c,l,s,f,p,v,y,b,h,m,g,O=arguments;return function(e,t){var r,n,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(r)throw TypeError("Generator is already executing.");for(;u;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=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++,n=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],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,function(I){switch(I.label){case 0:r=O.length>2&&void 0!==O[2]?O[2]:i.Z,n=e.postcode,u=void 0===(o=e.numDeliveries)?4:o,a=e.locale,c=e.systemCountry,l=e.parentSpan,s=e.initialOrder,f=e.customerPriority,p=e.cutoffTimeThreshold,v=e.customerJourney,y=e.customerUUID,b=e,h=e,b.family&&(m=b.family),h.product&&(g=h.product),I.label=1;case 1:return I.trys.push([1,3,,4]),[4,r("/api/delivery_dates_options",t,{query:d({zip:n,numDeliveries:u,locale:a,country:c},m?{family:m}:{},g?{product:g}:{},s?{initialOrder:s}:{},f?{customerPriority:f}:{},p?{cutoffTimeThreshold:p}:{},v?{customerJourney:v}:{}),parentSpan:l,headers:d({},y?{"X-Customer-UUID":y}:{}),fetchSpanAttributes:{"request.backend_service":"delivery-options-service","request.backend_action":"get-delivery-options-by-postcode"}})];case 2:return[2,I.sent().json()];case 3:throw I.sent();case 4:return[2]}})},o=function(){var e=this,t=arguments;return new Promise(function(r,o){var i=n.apply(e,t);function u(e){f(i,r,o,u,a,"next",e)}function a(e){f(i,r,o,u,a,"throw",e)}u(void 0)})},function(e,t){return o.apply(this,arguments)}),v=function(e,t){var r=d({},e,(0,s.O)()),n=[l.Z["delivery-options.byPostcode"],r];return(0,u.Z)(n,function(e){return p(r,n,e)},t)},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=(0,a.Z)().fetch,r=(0,s.O)();return(0,c.useQueries)(null==e?void 0:e.map(function(e,n){var o,i,u=(o=d({},e,r),i=i={key:n}
1,Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(i)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(i)).forEach(function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(i,e))}),o),a=[l.Z["delivery-options.byPostcode.multiple"],u];return{queryKey:a,queryFn:function(){return p(u,a,t)},enabled:!!e.postcode}}))}},555372:function(e,t,r){"use strict";r.d(t,{x:function(){return s}});var n=r(567921),o=r.n(n),i=r(647220),u=r(267596);function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}var c=u.Hi,l={collectionId:null,collectionFieldsId:null,pageVariationId:null,pageVariationFieldsId:null},s=function(){if(!(0,i.e)())return a({funnelId:null,visitId:null,funnelName:null},l);var e,t,r,n,s=o().get(c);if(!s)return a({funnelId:null,visitId:null,funnelName:null},l);var f=(0,u.Jt)(s);return f?{funnelId:f.funnel_id||null,visitId:f.visit_id||null,funnelName:f.funnel_name||null,collectionId:(null===(e=f.collection)||void 0===e?void 0:e.collection_id)||null,collectionFieldsId:(null===(t=f.collection)||void 0===t?void 0:t.collection_fields_id)||null,pageVariationId:(null===(r=f.collection)||void 0===r?void 0:r.page_variation_id)||null,pageVariationFieldsId:(null===(n=f.collection)||void 0===n?void 0:n.page_variation_fields_id)||null}:a({funnelId:s,visitId:null,funnelName:null},l)}},870771:function(e,t,r){"use strict";r.d(t,{Fv:function(){return o},ck:function(){return u},gi:function(){return n},m4:function(){return i}});var n="hf_prefill_zipcode",o="enable_rp_web",i="hf_public_id",u=["/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"]},786282:function(e,t,r){"use strict";r.d(t,{m:function(){return Z}});var n,o,i=r(827378),u=r(567921),a=r.n(u),c=r(581340),l=r(671718),s=r(26124),f=r(783244);function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var p=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=(0,c.t)().asPath,n=(function(e){if(Array.isArray(e))return e}(e=(0,f.Z)("hf_goals_plan_sku_cookie")||[""])||function(e,t){var r,n,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=(r=o.next()).done)&&(i.push(r.value),1!==i.length);u=!0);}catch(e){a=!0,n=e}finally{try{u||null==o.return||o.return()}finally{if(a)throw n}}return i}}(e,1)||function(e,t){if(e){if("string"==typeof e)return d(e,1);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(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],o=a().get("hf_ssr_stored_sku"),u=null==r?void 0:r.includes("/reactivat");return(0,i.useMemo)(function(){var e=null!=o?o:n,r=t.filter(function(e){return e&&"string"==typeof e});if(u&&r.length>0)return r;if(e&&"string"==typeof e&&r.length>0){var i=e.split("-").slice(0,2).join("-"),a=r.filter(function(e){return e.split("-").slice(0,2).join("-")===i});if(a.length>0){var c=new Set(a);return c.add(e),Array.from(c)}}return e&&"string"==typeof e?[e]:r.length>0?r:[]},[o,n,t,u])},v=r(140224),y=r(699219),b=function(e){var t=e.voucherCode,r=e.productSkus,n=e.locale,o=e.systemCountry,i=e.discountCommunicationId,u=e.zipcode,a=e.hf_public_id,c=e.checkoutType;return[y.Z["price-presentation.discountCommunication"],function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({voucherCode:t,productSkus:r,locale:n,systemCountry:o,hf_public_id:a},i&&{discountCommunicationId:i},u&&{zipcode:u},c&&{checkoutType:c})]},h=r(870771),m=r(364468),g=r(64294);function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function I(e,t,r,n,o,i,u){try{var a=e[i](u),c=a.value}catch(e){r(e);return}a.done?t(c):Promise.resolve(c).then(n,o)}function S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function P(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}var w=(n=function(e,t){var r,n,o,i,u,a,c,s,f,d=arguments;return function(e,t){var r,n,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(r)throw TypeError("Generator is already executing.");for(;u;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=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++,n=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}
1o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,function(p){switch(p.label){case 0:return r=e.voucherCode,n=e.productSkus,o=e.systemCountry,i=e.locale,u=e.parentSpan,a=e.discountCommunicationId,c=e.zipcode,s=e.hf_public_id,f=e.checkoutType,[4,(d.length>2&&void 0!==d[2]?d[2]:l.Z)("/price-presentation/v2/discount_communication/voucher/".concat(r),t,{query:S({country:o,locale:i,skus:n.join(","),dc_id:a||"",zipcode:c||"",hf_public_id:s||""},void 0!==f&&{checkout_type:f}),parentSpan:u,fetchSpanAttributes:{"request.backend_service":"price-presentation-service","request.backend_action":"get-voucher-discount-communication",discountCommunicationId:a,voucherCode:r}})];case 1:return[2,p.sent().json()]}})},o=function(){var e=this,t=arguments;return new Promise(function(r,o){var i=n.apply(e,t);function u(e){I(i,r,o,u,a,"next",e)}function a(e){I(i,r,o,u,a,"throw",e)}u(void 0)})},function(e,t){return o.apply(this,arguments)}),Z=function(e,t){var r,n,o,u=p(e.productSkus),l=(0,c.t)().asPath,d=(function(e){if(Array.isArray(e))return e}(r=(0,f.Z)(h.gi)||[""])||function(e,t){var r,n,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=(r=o.next()).done)&&(i.push(r.value),1!==i.length);u=!0);}catch(e){a=!0,n=e}finally{try{u||null==o.return||o.return()}finally{if(a)throw n}}return i}}(r,1)||function(e,t){if(e){if("string"==typeof e)return O(e,1);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return O(e,1)}}(r,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],y=(0,i.useMemo)(function(){var e;return(null===(e=a().get("hf_discount_comm_id"))||void 0===e?void 0:e.trim())||""},[]),I=new URLSearchParams((null==l?void 0:l.split("?")[1])||""),Z=I&&(null===(n=I.get("discount_comm_id"))||void 0===n?void 0:n.trim())||y||e.discountCommunicationId,j=e.zipcode||d,_=(0,m.Z)().isEnabled,C=(0,i.useMemo)(function(){return a().get(h.m4)},[]),A=(0,i.useMemo)(function(){return C||(0,g.ZP)()},[C]),E=S(P(S(P(S({},e),{productSkus:u}),(0,v.O)()),{discountCommunicationId:e.ignoreDiscountCommId?void 0:Z}),j&&{zipcode:j},A&&{hf_public_id:A}),k=b(E),x="string"==typeof e.voucherCode&&e.voucherCode.length>0,U=(null===(o=null==t?void 0:t.enabled)||void 0===o||o)&&x&&u.length>0&&(!_||!!j);return(0,s.Z)(k,function(e){if(_&&!j)throw Error("Zipcode is required for price presentation with regional pricing enabled");return w(E,k,e)},P(S({},t),{enabled:U}))}},364468:function(e,t,r){"use strict";var n=r(463171),o=r(870771);t.Z=function(){var e=(null===n.Z||void 0===n.Z?void 0:(0,n.Z)(o.Fv))||{isEnabled:!1,isReady:!0};return{isEnabled:e.isEnabled,isReady:e.isReady}}},440492:function(e,t,r){"use strict";r.d(t,{W:function(){return v}});var n,o,i=r(671718),u=r(26124),a=r(463171),c=r(808215),l=(r(874570),r(140224)),s=r(699219);function f(e,t,r,n,o,i,u){try{var a=e[i](u),c=a.value}catch(e){r(e);return}a.done?t(c):Promise.resolve(c).then(n,o)}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}var p=(n=function(e,t){var r,n,o,u,a,c=arguments;return function(e,t){var r,n,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(r)throw TypeError("Generator is already executing.");for(;u;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=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++,n=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}
1o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,function(l){switch(l.label){case 0:var s,f;return r=c.length>2&&void 0!==c[2]?c[2]:i.Z,n=e.parentSpan,u=void 0===(o=e.subscription_id)?0:o,[4,r("/voucher/validate",t,{method:"POST",data:(s=d({},a=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["parentSpan","subscription_id"])),f=f={subscription_id:u},Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(f)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(f)).forEach(function(e){Object.defineProperty(s,e,Object.getOwnPropertyDescriptor(f,e))}),s),parentSpan:n,fetchSpanAttributes:{"request.backend_service":"voucher-validation-service","request.backend_action":"voucher-validation",voucherCode:a.code}})];case 1:return[2,l.sent().json()]}})},o=function(){var e=this,t=arguments;return new Promise(function(r,o){var i=n.apply(e,t);function u(e){f(i,r,o,u,a,"next",e)}function a(e){f(i,r,o,u,a,"throw",e)}u(void 0)})},function(e,t){return o.apply(this,arguments)}),v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=d({},e,(0,l.O)());(0,a.Z)("mnlth-1166_voucher-validate-attachment-migration"),(0,c.Z)();var n=[s.Z["voucher.validate"],r];return(0,u.Z)(n,function(e){return p(r,n,e)},t)}},874570:function(e,t,r){"use strict";function n(e,t,r,n,o,i,u){try{var a=e[i](u),c=a.value}catch(e){r(e);return}a.done?t(c):Promise.resolve(c).then(n,o)}function o(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}r.d(t,{L:function(){return d}});var i,u,a=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:a(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}},l=[{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),r=t.message||"",n=r.match(/VVS responded with \d+:\s*([\s\S]+)/);if(n)try{var i=JSON.parse(n[1]);if(void 0!==i.error_code)return{error_code:String(i.error_code),msg:i.msg||""}}catch(e){}var u=l.find(function(e){var r=e.category,n=e.detail,i=t[r];return!!i&&(!n||(void 0===i?"undefined":o(i))==="object"&&null!==i&&n in i)});if(u)return{error_code:u.errorCode,msg:r||u.fallbackMsg};return{error_code:"",msg:r||"Validation failed"}}catch(e){return{error_code:"",msg:"Unknown error"}}},f=function(e){if(e&&(void 0===e?"undefined":o(e))==="object"&&"responseResult"in e&&e.responseResult){var t=s(e.responseResult);e.responseResult=JSON.stringify(t)}return e},d=(i=function(e,t,r){var n,o,i,u,a,l,s;return function(e,t){var r,n,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(r)throw TypeError("Generator is already executing.");for(;u;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=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++,n=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}
1o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,function(d){switch(d.label){case 0:n=e.code,o=e.brand,i=e.regionCode,u=e.customerId,a=e.customerPlanId,l=e.parentSpan,s=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({distributableReference:{voucher:{businessDivision:{brand:o,regionCode:i},reference:n}}},u&&{customerId:u},a&&{customerPlanId:a}),d.label=1;case 1:return d.trys.push([1,3,,4]),[4,r("/benefit-distribution/v1/validate-attachment",t,{method:"POST",data:s,parentSpan:l,fetchSpanAttributes:{"request.backend_service":"benefit-distribution","request.backend_action":"validate-attachment",voucherCode:n}})];case 2:return d.sent(),[3,4];case 3:throw f(d.sent());case 4:return[4,r("/vouchers/".concat(n),t,{method:"GET",query:{country:e.systemCountry,locale:e.locale},parentSpan:l,fetchSpanAttributes:{"request.backend_service":"voucher-validation-service","request.backend_action":"voucher-details-after-validation",voucherCode:n}})];case 5:return[4,d.sent().json()];case 6:return[2,c(d.sent())]}})},u=function(){var e=this,t=arguments;return new Promise(function(r,o){var u=i.apply(e,t);function a(e){n(u,r,o,a,c,"next",e)}function c(e){n(u,r,o,a,c,"throw",e)}a(void 0)})},function(e,t,r){return u.apply(this,arguments)})},308246:function(e,t,r){"use strict";function n(e,t,r,n,o,i,u){try{var a=e[i](u),c=a.value}catch(e){r(e);return}a.done?t(c):Promise.resolve(c).then(n,o)}r.d(t,{Gs:function(){return u},Lk:function(){return a}});var o,i=(0,r(575085).Z)("hf.behamic-script.config",(o=function(){return function(e,t){var r,n,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(r)throw TypeError("Generator is already executing.");for(;u;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=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++,n=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],n=0}finally{r=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,r.e(36220).then(r.bind(r,636220))]})},function(){var e=this,t=arguments;return new Promise(function(r,i){var u=o.apply(e,t);function a(e){n(u,r,i,a,c,"next",e)}function c(e){n(u,r,i,a,c,"throw",e)}a(void 0)})})),u=i.ProjectConfigProvider,a=(i.configMiddleware,i.useConfig)},394545:function(e,t,r){"use strict";r.d(t,{Ch:function(){return o}});var n=r(165218),o=r.n(n)()(function(){return r.e(78445).then(r.bind(r,581067))},{loadableGenerated:{webpack:()=>[581067]},loading:function(){return null},ssr:!1})},401524:function(e,t,r){"use strict";function n(e,t,r,n,o,i,u){try{var a=e[i](u),c=a.value}catch(e){r(e);return}a.done?t(c):Promise.resolve(c).then(n,o)}r.d(t,{Gi:function(){return u},Sc:function(){return a}});var o,i=(0,r(575085).Z)("hf.funnel.cart",(o=function(){return function(e,t){var r,n,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(r)throw TypeError("Generator is already executing.");for(;u;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=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++,n=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}
1o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],n=0}finally{r=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,r.e(20510).then(r.bind(r,420510))];case 1:return[2,e.sent().config]}})},function(){var e=this,t=arguments;return new Promise(function(r,i){var u=o.apply(e,t);function a(e){n(u,r,i,a,c,"next",e)}function c(e){n(u,r,i,a,c,"throw",e)}a(void 0)})})),u=i.ProjectConfigProvider,a=(i.configMiddleware,i.useConfig)},124665:function(e,t,r){"use strict";var n=r(827378),o=r(581340),i=r(718583),u=r(567921),a=r.n(u),c=r(497249),l=r(344884),s=r(580766),f=r(905970),d=r(874938),p=r(408558),v=r(134094);t.Z=function(){var e,t=(0,o.t)(),r=(0,c.T)(),u=(0,s.S)().mutate,y=(0,p.iQ)(),b=(0,f.Z)().planFamily,h=(0,d.r)(),m=null!==(e=(0,n.useMemo)(function(){return i.ZP.getItem("StoredCouponCode")},[]))&&void 0!==e?e:"",g=t.query.c||m,O=(0,n.useRef)(null);return(0,n.useCallback)(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.goals,i=n.additionalPreferences,c=n.zipcode,s=r.startSpan("cart-context-hooks.mutate-cart"),f=i||(null==y?void 0:null===(S=y.items)||void 0===S?void 0:null===(I=S[0])||void 0===I?void 0:null===(m=I.metadata)||void 0===m?void 0:m.additionalPreferences),d=o||(null==y?void 0:null===(Z=y.items)||void 0===Z?void 0:null===(w=Z[0])||void 0===w?void 0:null===(P=w.metadata)||void 0===P?void 0:P.goals),p=c||(null==y?void 0:null===(C=y.items)||void 0===C?void 0:null===(_=C[0])||void 0===_?void 0:null===(j=_.metadata)||void 0===j?void 0:j.zipcode);if((null==y?void 0:y.id)&&t&&e){var m,I,S,P,w,Z,j,_,C,A,E,k,x,U,D,T,N,R,M,q=h(e,t),F=g||y.voucher||null,L=JSON.stringify({cartId:y.id,voucher:F,sku:t,mealsPreset:q,presets:e||[],goals:null!=d?d:null,additionalPreferences:null!=f?f:null,zipcode:null!=p?p:null}),K=null===(A=y.items)||void 0===A?void 0:A[0],V=K?JSON.stringify({cartId:y.id,voucher:y.voucher||null,sku:K.sku,mealsPreset:null===(E=K.metadata)||void 0===E?void 0:E.mealsPreset,presets:null!==(T=null===(k=K.metadata)||void 0===k?void 0:k.presets)&&void 0!==T?T:[],goals:null!==(N=null===(x=K.metadata)||void 0===x?void 0:x.goals)&&void 0!==N?N:null,additionalPreferences:null!==(R=null===(U=K.metadata)||void 0===U?void 0:U.additionalPreferences)&&void 0!==R?R:null,zipcode:null!==(M=null===(D=K.metadata)||void 0===D?void 0:D.zipcode)&&void 0!==M?M:null}):null,W=null!==V&&L===V,J=L===O.current;if(W||J){s.setStatus({message:W?"cart mutation skipped (cart already matches selection)":"cart mutation skipped (identical to previous write)",code:l.Z.OK}),s.end();return}O.current=L,u({cartId:y.id,voucher:g||y.voucher||null,items:[{quantity:1,sku:t,metadata:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({productFamily:null==b?void 0:b.handle,mealsPreset:h(e,t),timestamp:Date.now(),presets:e||[]},d&&d.length>0&&{goals:d},f&&f.length>0&&{additionalPreferences:f},p&&{zipcode:p})}]},{onSuccess:function(){a().set(v.Hc,t,{expires:30}),s.setStatus({message:"cart mutated",code:l.Z.OK}),s.end()},onError:function(e){O.current===L&&(O.current=null),s.setStatus({message:e.message,code:l.Z.ERROR}),s.end()}})}},[y,g,u,null==b?void 0:b.handle])}},186229:function(e,t){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function n(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(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 r(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}t.Z=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(function(e,t){var r,o;return r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}
1))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},e,t),o=o={overrides:n(e.overrides||[]).concat(n(t.overrides||[]))},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}),r},{})}},956044:function(e,t){"use strict";var r,n;(n=r||(r={})).DOLLAR="$",n.POUND="\xa3",n.EURO="â¬",n.CHF="CHF",n.KRONA="kr",n.YEN="\xa5",t.Z=r},305625:function(e,t,r){"use strict";r.d(t,{M:function(){return i}});var n=r(956044),o={decimalSeparator:".",numberSeparator:",",currencyCode:"GBP",formatNumberWithCurrency:function(e){return"".concat(n.Z.POUND).concat(e)}},i={US:{decimalSeparator:".",numberSeparator:",",currencyCode:"USD",formatNumberWithCurrency:function(e){return"".concat(n.Z.DOLLAR).concat(e)}},CA:{decimalSeparator:".",numberSeparator:",",currencyCode:"CAD",formatNumberWithCurrency:function(e){return"".concat(n.Z.DOLLAR).concat(e)}},"FR-CA":{decimalSeparator:",",numberSeparator:".",currencyCode:"CAD",formatNumberWithCurrency:function(e){return"".concat(e," ").concat(n.Z.DOLLAR)}},GB:o,UK:o,AU:{decimalSeparator:".",numberSeparator:",",currencyCode:"AUD",formatNumberWithCurrency:function(e){return"".concat(n.Z.DOLLAR).concat(e)}},NZ:{decimalSeparator:".",numberSeparator:",",currencyCode:"NZD",formatNumberWithCurrency:function(e){return"".concat(n.Z.DOLLAR).concat(e)}},DE:{decimalSeparator:",",numberSeparator:".",currencyCode:"EUR",formatNumberWithCurrency:function(e){return"".concat(e," ").concat(n.Z.EURO)}},AT:{decimalSeparator:",",numberSeparator:".",currencyCode:"EUR",formatNumberWithCurrency:function(e){return"".concat(n.Z.EURO," ").concat(e)}},"EN-BE":{decimalSeparator:",",numberSeparator:".",currencyCode:"EUR",formatNumberWithCurrency:function(e){return"".concat(n.Z.EURO," ").concat(e)}},"FR-BE":{decimalSeparator:",",numberSeparator:".",currencyCode:"EUR",formatNumberWithCurrency:function(e){return"".concat(e," ").concat(n.Z.EURO)}},BE:{decimalSeparator:",",numberSeparator:".",currencyCode:"EUR",formatNumberWithCurrency:function(e){return"".concat(e," ").concat(n.Z.EURO)}},"NL-BE":{decimalSeparator:",",numberSeparator:".",currencyCode:"EUR",formatNumberWithCurrency:function(e){return"".concat(n.Z.EURO," ").concat(e)}},NL:{decimalSeparator:",",numberSeparator:".",currencyCode:"EUR",formatNumberWithCurrency:function(e){return"".concat(n.Z.EURO," ").concat(e)}},FR:{decimalSeparator:",",numberSeparator:".",currencyCode:"EUR",formatNumberWithCurrency:function(e){return"".concat(e," ").concat(n.Z.EURO)}},LU:{decimalSeparator:",",numberSeparator:".",currencyCode:"EUR",formatNumberWithCurrency:function(e){return"".concat(e," ").concat(n.Z.EURO)}},CH:{decimalSeparator:".",numberSeparator:"'",currencyCode:"CHF",formatNumberWithCurrency:function(e){return"".concat(n.Z.CHF," ").concat(e)}},SE:{decimalSeparator:",",numberSeparator:" ",currencyCode:"SEK",formatNumberWithCurrency:function(e){return"".concat(e," ").concat(n.Z.KRONA)}},DK:{decimalSeparator:",",numberSeparator:" ",currencyCode:"DKK",formatNumberWithCurrency:function(e){return"".concat(e," ").concat(n.Z.KRONA,".")}},NO:{decimalSeparator:",",numberSeparator:" ",currencyCode:"NOK",formatNumberWithCurrency:function(e){return"".concat(e," ").concat(n.Z.KRONA)}},IT:{decimalSeparator:",",numberSeparator:".",currencyCode:"EUR",formatNumberWithCurrency:function(e){return"".concat(e," ").concat(n.Z.EURO)}},JP:{decimalSeparator:".",numberSeparator:",",currencyCode:"JPY",formatNumberWithCurrency:function(e){return"".concat(n.Z.YEN).concat(e)}},IE:{decimalSeparator:".",numberSeparator:",",currencyCode:"EUR",formatNumberWithCurrency:function(e){return"".concat(n.Z.EURO).concat(e)}},ES:{decimalSeparator:",",numberSeparator:".",currencyCode:"EUR",formatNumberWithCurrency:function(e){return"".concat(e," ").concat(n.Z.EURO)}}}},340332:function(e,t,r){"use strict";r.d(t,{E8:function(){return s},SX:function(){return f},il:function(){return u},nB:function(){return d},uf:function(){return a},xG:function(){return l}});var n=r(449551),o=r(958042),i=r(305625),u=function(e){return e/100},a=function(e,t){var r=t.decimals;r="number"==typeof r?r:parseInt(r,10);var n=(e/100).toFixed(r);return 0===Number(n)&&(n=Math.max(Number(n),0).toFixed(r)),n},c=function(e,t){var r=t.currencyInfo,n=t.decimals;if(!r)return e;var o=RegExp("\\d(?=(\\d{3})+".concat(n>0?"\\D":"$",")"),"g");return e.replace(".",r.decimalSeparator).replace(o,"$&".concat(r.numberSeparator))},l=function(e,t){var r=t.country,n=t.locale,o=t.decimals,u=void 0===o?2:o,l=i.M[(void 0===n?"":n).toUpperCase()]||i.M[r.toUpperCase()],s=c(a(e,{decimals:u}),{currencyInfo:l,decimals:u});return((l||{}).formatNumberWithCurrency||function(e){return e})(s)},s=function(e){return i.M[e.toUpperCase()].currencyCode},f=function(){var e=(0,n.Z)();return i.M[e.toUpperCase()].currencyCode||i.M.US.currencyCode},d=function(){var e={country:(0,n.Z)(),locale:(0,o.Z)(),decimals:2};return function(t,r){return l(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}
1))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},e,r))}}},973524:function(e,t,r){"use strict";var n=r(262978);t.Z=function(e){var t,r=e.voucherCode,o=(0,n.Z)({voucherCode:null!=r?r:""}),i=o.isFreeAddonVoucher,u=o.freeAddonVoucherDetails;if(!i)return{lifetimeVoucherInfo:{isEligible:!1},multiWeekVoucherInfo:{isEligible:!1,numberOfWeeks:0}};var a=!!i&&!!(null==u?void 0:u.isLifetime),c=i&&!a&&!!(null==u?void 0:u.numOfFreeWeeks);return{lifetimeVoucherInfo:{isEligible:!c&&a},multiWeekVoucherInfo:{isEligible:c,numberOfWeeks:null!==(t=null==u?void 0:u.numOfFreeWeeks)&&void 0!==t?t:0}}}},267596:function(e,t,r){"use strict";function n(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}r.d(t,{Hi:function(){return o},Jt:function(){return s},_K:function(){return a}});var o="hf_ssr_cross_page_funnel_id",i={funnel_id:"fi",visit_id:"v",funnel_name:"fn",collection:"c"},u={collection_id:"ci",collection_fields_id:"cf",page_variation_id:"pv",page_variation_fields_id:"pf"},a=function(e){var t={};if(void 0!==e.funnel_id&&(t[i.funnel_id]=e.funnel_id),void 0!==e.visit_id&&(t[i.visit_id]=e.visit_id),void 0!==e.funnel_name&&(t[i.funnel_name]=e.funnel_name),e.collection){var r={},n=e.collection;Object.keys(u).forEach(function(e){void 0!==n[e]&&(r[u[e]]=n[e])}),t[i.collection]=r}return JSON.stringify(t)},c=function(e){try{var t=JSON.parse(e);if((void 0===t?"undefined":n(t))==="object"&&null!==t&&!Array.isArray(t))return t}catch(e){}},l=function(e){var t=c(e);if(t)return t;try{return c(decodeURIComponent(e))}catch(e){return}},s=function(e){if(e){var t=l(e);if(t){var r={};"string"==typeof t[i.funnel_id]&&(r.funnel_id=t[i.funnel_id]),"string"==typeof t[i.visit_id]&&(r.visit_id=t[i.visit_id]),"string"==typeof t[i.funnel_name]&&(r.funnel_name=t[i.funnel_name]);var o=t[i.collection];if((void 0===o?"undefined":n(o))==="object"&&null!==o&&!Array.isArray(o)){var a={};Object.keys(u).forEach(function(e){var t=u[e];t in o&&(a[e]=o[t])}),r.collection=a}return r}}}},932066:function(e,t,r){"use strict";r.d(t,{x:function(){return o}});var n=r(687800),o=(0,r(827378).createContext)({funnelId:null,visitId:null,funnelName:null,collection:null});t.Z=function(e){var t=e.funnelId,r=e.visitId,i=e.funnelName,u=e.collection,a=e.children;return(0,n.tZ)(o.Provider,{value:{funnelId:t,visitId:void 0===r?null:r,funnelName:void 0===i?null:i,collection:void 0===u?null:u},children:a})}},957711:function(e,t,r){"use strict";var n=r(827378),o=r(932066),i=r(555372);t.Z=function(){var e,t,r,u,a,c,l,s,f,d,p,v,y,b,h,m=(0,n.useContext)(o.x),g=(0,i.x)(),O=null!==(c=null!==(a=g.collectionId)&&void 0!==a?a:null===(e=m.collection)||void 0===e?void 0:e.collectionId)&&void 0!==c?c:null,I=null!==(s=null!==(l=g.collectionFieldsId)&&void 0!==l?l:null===(t=m.collection)||void 0===t?void 0:t.collectionFieldsId)&&void 0!==s?s:null,S=null!==(d=null!==(f=g.pageVariationId)&&void 0!==f?f:null===(r=m.collection)||void 0===r?void 0:r.pageVariationId)&&void 0!==d?d:null,P=null!==(v=null!==(p=g.pageVariationFieldsId)&&void 0!==p?p:null===(u=m.collection)||void 0===u?void 0:u.pageVariationFieldsId)&&void 0!==v?v:null,w=!!(O||S||I||P);return{funnelId:w?null:null!==(y=m.funnelId)&&void 0!==y?y:g.funnelId,visitId:null!==(b=g.visitId)&&void 0!==b?b:m.visitId,funnelName:w?null:null!==(h=m.funnelName)&&void 0!==h?h:g.funnelName,collectionId:O,collectionFieldsId:I,pageVariationId:S,pageVariationFieldsId:P}}},10362:function(e,t,r){"use strict";r.d(t,{n:function(){return o}});var n=r(687800),o=(0,r(827378).createContext)("");t.Z=function(e){var t=e.IPCountry,r=e.children;return(0,n.tZ)(o.Provider,{value:t,children:r})}},982436:function(e,t,r){"use strict";function n(e,t,r,n,o,i,u){try{var a=e[i](u),c=a.value}catch(e){r(e);return}a.done?t(c):Promise.resolve(c).then(n,o)}r.d(t,{cy:function(){return a},gd:function(){return u}});var o,i=(0,r(575085).Z)("micro-tags",(o=function(){return function(e,t){var r,n,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(r)throw TypeError("Generator is already executing.");for(;u;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=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++,n=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}
1o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],n=0}finally{r=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,r.e(33846).then(r.bind(r,133846))]})},function(){var e=this,t=arguments;return new Promise(function(r,i){var u=o.apply(e,t);function a(e){n(u,r,i,a,c,"next",e)}function c(e){n(u,r,i,a,c,"throw",e)}a(void 0)})})),u=i.ProjectConfigProvider,a=(i.configMiddleware,i.getConfigFromSSRPayload,i.useConfig)},57204:function(e,t,r){"use strict";r.d(t,{M:function(){return o}});var n=r(165218),o=r.n(n)()(function(){return Promise.all([r.e(14206),r.e(274),r.e(40638)]).then(r.bind(r,1302))},{loadableGenerated:{webpack:()=>[1302]},loading:function(){return null},ssr:!1})},641634:function(e,t,r){"use strict";r.d(t,{Z:function(){return y}});var n,o,i,u=r(827378),a=r(200770),c=r(26730),l=new Set([c.Z.GB]),s=(n={},o=c.Z.GB,i=["chefschoice","pescatarian","veggie"],o in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i,n),f=r(555372);function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var p=["chefschoice","pescatarian","veggie"],v=function(e,t){return e.filter(function(e){return t.includes(e.preferenceName)}).sort(function(e,r){return t.indexOf(e.preferenceName)-t.indexOf(r.preferenceName)})},y=function(e){var t=(0,a.Z)(),r=!!(0,f.x)().funnelName;return(0,u.useMemo)(function(){if(t===c.Z.US)return v(e,p);if(r&&l.has(t)){var n=s[t];if(n)return v(e,n)}return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return d(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(e,void 0)}}(e)||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,t,r])}},841723:function(e,t,r){"use strict";r.d(t,{v:function(){return c}});var n,o=r(57502),i=r(26730);function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a=(u(n={},i.Z.US,o.XA),u(n,i.Z.ER,o.XA),u(n,i.Z.MR,o.XA),u(n,i.Z.FJ,o.XA),u(n,i.Z.AU,o.vm),u(n,i.Z.AO,o.vm),u(n,i.Z.YE,o.vm),u(n,i.Z.GB,o.RK),u(n,i.Z.GN,o.RK),u(n,i.Z.CA,o.wo),u(n,i.Z.CK,o.wo),u(n,i.Z.CF,o.wo),u(n,i.Z.NL,o.fS),u(n,i.Z.GQ,o.fS),u(n,i.Z.TT,o.fS),u(n,i.Z.BE,o.tL),u(n,i.Z.TO,o.tL),u(n,i.Z.SE,o.Pb),u(n,i.Z.TV,o.Pb),u(n,i.Z.DK,o.je),u(n,i.Z.TK,o.je),u(n,i.Z.DE,o.t1),u(n,i.Z.TZ,o.t1),u(n,i.Z.AT,o.E8),u(n,i.Z.CH,o.Wg),u(n,i.Z.ES,o.G$),u(n,i.Z.FR,o.kn),u(n,i.Z.IE,o.GO),u(n,i.Z.IT,o.CZ),u(n,i.Z.LU,o.Pj),u(n,i.Z.NO,o.qT),u(n,i.Z.NZ,o.FT),n),c=function(e,t){var r=a[t];return!!r&&r.test(e)}},529553:function(e,t,r){"use strict";r.d(t,{o:function(){return i}});var n=r(841999);function o(){return void 0!==window.sessionStorage&&"undefined"!=typeof Storage}var i={getItem:function(e){if(!o())return null;try{var t=window.sessionStorage.getItem(e);return null===t?null:String(t)}catch(t){return(0,n.Vp)(t,"PlainStringSessionStorage.getItem",{key:e},"plainStringGetItem"),null}},setItem:function(e,t){if(o())try{window.sessionStorage.setItem(e,String(t))}catch(t){(0,n.Vp)(t,"PlainStringSessionStorage.setItem",{key:e},"plainStringSetItem");try{var r=(0,n._0)();r>n.AR&&(0,n.Vp)(Error("Session Storage Limit Exceeding"),"PlainStringSessionStorage.setItem.limit",{currentSize:r},"plainStringSetItemLimit")}catch(t){(0,n.Vp)(t,"PlainStringSessionStorage.setItem.sizeCalc",{key:e},"plainStringSetItemSizeCalc")}}},removeItem:function(e){if(o())try{window.sessionStorage.removeItem(e)}catch(e){}}}},285087:function(e,t,r){"use strict";r.d(t,{l:function(){return i}});var n=r(627854),o=r(827378),i=function(){var e=(0,n.E)();return{getItem:(0,o.useCallback)(function(t){return e.getItem(t)},[e]),setItem:(0,o.useCallback)(function(t,r){e.setItem(t,r)},[e]),removeItem:(0,o.useCallback)(function(t){e.removeItem(t)},[e]),clear:(0,o.useCallback)(function(){e.clear()},[e])}}},479922:function(e,t,r){"use strict";r.d(t,{u:function(){return o}});var n=r(827378),o=(0,n.createContext)({});t.Z=function(){return(0,n.useContext)(o)}},231140:function(e,t,r){"use strict";r.d(t,{Z:function(){return P}});var n=r(687800),o=r(827378),i=r(581340),u=r(141323),a=r(953137),c=r(64294),l=r(200770),s=r(24165),f=r(874123),d=r(497249),p=r(344884),v=r(587018),y=r(479922),b=function(e){var t=new Date(e||"");return Math.round((new Date().getTime()-t.getTime())/864e5)||-1};function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}
1))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,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=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);u=!0);}catch(e){a=!0,n=e}finally{try{u||null==o.return||o.return()}finally{if(a)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(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 O=function(){return console.warn("Sprig environment id not set for this market. Please add it in the @/libs/sprig/config")},I={track:O,setAttribute:O,setAttributes:O,setUserId:O},S=function(e){var t,h,O=e.children,S=e.whitelist,P=(0,f.C)(),w=(0,i.t)().query,Z=(0,l.Z)(),j=(0,v.RN)(),_=j.environmentId,C=j.usePrefixInUserId,A=(0,u.j)({},{suspense:!1}).data,E=(0,s.Z)(),k=g((0,o.useState)(!1),2),x=k[0],U=k[1],D=g((0,o.useState)(!1),2),T=D[0],N=D[1],R=(0,a.u)({},{suspense:!1}).data,M=!S||S.includes(Z),q=(0,d.T)(),F=(0,o.useMemo)(function(){return w.subsriptionId?((null==R?void 0:R.items)||[]).find(function(e){return e.id===w.subscriptionId}):((null==R?void 0:R.items)||[])[0]},[null==R?void 0:R.items,w.subscriptionId,w.subsriptionId]),L=(0,o.useRef)(I);return(0,o.useEffect)(function(){_&&M&&!P.isCypress&&r.e(10775).then(r.bind(r,810775)).then(function(e){var t=e.sprig,r=q.startSpan("sprig-sdk-configure");
1try{L.current=t.configure({environmentId:_}),N(!0),r.setStatus({code:p.Z.OK}),r.end()}catch(e){r.setStatus({code:p.Z.ERROR,message:(null==e?void 0:e.message)||"Failed to configure Sprig SDK"}),r.recordException(e),r.end(),L.current=I}}).catch(function(e){var t=q.startSpan("sprig-sdk-load-error");t.setStatus({code:p.Z.ERROR,message:(null==e?void 0:e.message)||"Failed to load Sprig SDK"}),t.recordException(e),t.end(),L.current=I})},[_,M,P.isCypress,q]),(0,o.useEffect)(function(){if(T){var e=q.startSpan("sprig-set-attributes");try{var t={};if(A){t.loyaltyLevel=A.boxesReceived,L.current.setUserId(C?"".concat(Z,"-").concat(A.id):A.id);var r,n=null==A?void 0:null===(r=A.freeAddOnSubscriptions)||void 0===r?void 0:r.find(function(e){return e.subscriptionId===A.activeSubscriptionId});t.isFreeForLifeEnabled=(null==n?void 0:n.isEnabled)&&!(null==n?void 0:n.isRevoked)}else{var o,i=(null==E?void 0:null===(o=E.user_data)||void 0===o?void 0:o.id)||(0,c.ZP)();L.current.setUserId(i)}F&&(t.couponCode=F.couponCode,t.daysSinceCancellation=b(F.canceledAt),t.reactivationCount=F.reactivationCount),A&&F&&L.current.setAttributes(m({},{country:Z},t)),e.setStatus({code:p.Z.OK}),e.end()}catch(t){e.setStatus({code:p.Z.ERROR,message:(null==t?void 0:t.message)||"Failed to set Sprig user attributes"}),e.recordException(t),e.end()}finally{A&&F&&U(!0)}}},[Z,A,F,E,R,T,C,q]),(0,n.tZ)(y.u.Provider,{value:(t=m({},L.current),h=h={attributesReady:x,isConfigured:T},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(h)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(h)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(h,e))}),t),children:O})},P=function(e){var t=e.children,r=e.whitelist;return(0,n.tZ)(v.pL,{children:(0,n.tZ)(S,{whitelist:r,children:t})})}},587018:function(e,t,r){"use strict";r.d(t,{pL:function(){return A},RN:function(){return E}});var n,o,i,u=r(186229),a=r(575085),c=r(175010),l=r(396887),s=r(26730),f=r(543790);function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var p="GF_ykPoRt",v="cj6iriK8oJ1t",y="usNrlBRd54Ak",b="PCy8gvXsqXW9",h=(d(o={},s.Z.US,{environmentId:p,brand:f.Z.hellofresh,usePrefixInUserId:!1}),d(o,s.Z.NZ,{environmentId:p,brand:f.Z.hellofresh,usePrefixInUserId:!1}),d(o,s.Z.NL,{environmentId:p,brand:f.Z.hellofresh,usePrefixInUserId:!1}),d(o,s.Z.DE,{environmentId:p,brand:f.Z.hellofresh,usePrefixInUserId:!1}),d(o,s.Z.AU,{environmentId:p,brand:f.Z.hellofresh,usePrefixInUserId:!1}),d(o,s.Z.AT,{environmentId:p,brand:f.Z.hellofresh,usePrefixInUserId:!1}),d(o,s.Z.BE,{environmentId:p,brand:f.Z.hellofresh,usePrefixInUserId:!1}),d(o,s.Z.CA,{environmentId:p,brand:f.Z.hellofresh,usePrefixInUserId:!1}),d(o,s.Z.CH,{environmentId:p,brand:f.Z.hellofresh,usePrefixInUserId:!1}),d(o,s.Z.DK,{environmentId:p,brand:f.Z.hellofresh,usePrefixInUserId:!1}),d(o,s.Z.ES,{environmentId:p,brand:f.Z.hellofresh,usePrefixInUserId:!1}),d(o,s.Z.FR,{environmentId:p,brand:f.Z.hellofresh,usePrefixInUserId:!1}),d(o,s.Z.GB,{environmentId:p,brand:f.Z.hellofresh,usePrefixInUserId:!1}),d(o,s.Z.IE,{environmentId:p,brand:f.Z.hellofresh,usePrefixInUserId:!1}),d(o,s.Z.IT,{environmentId:p,brand:f.Z.hellofresh,usePrefixInUserId:!1}),d(o,s.Z.LU,{environmentId:p,brand:f.Z.hellofresh,usePrefixInUserId:!1}),d(o,s.Z.NO,{environmentId:p,brand:f.Z.hellofresh,usePrefixInUserId:!1}),d(o,s.Z.SE,{environmentId:p,brand:f.Z.hellofresh,usePrefixInUserId:!1}),d(o,s.Z.JP,{environmentId:p,brand:f.Z.hellofresh,usePrefixInUserId:!1}),d(o,s.Z.FJ,{environmentId:v,brand:f.Z.factor,usePrefixInUserId:!0}),d(o,s.Z.CF,{environmentId:v,brand:f.Z.factor,usePrefixInUserId:!0}),d(o,s.Z.TZ,{environmentId:v,brand:f.Z.factor,usePrefixInUserId:!0}),d(o,s.Z.TK,{environmentId:v,brand:f.Z.factor,usePrefixInUserId:!0}),d(o,s.Z.TO,{environmentId:v,brand:f.Z.factor,usePrefixInUserId:!0}),d(o,s.Z.TT,{environmentId:v,brand:f.Z.factor,usePrefixInUserId:!0}),d(o,s.Z.TV,{environmentId:v,brand:f.Z.factor,usePrefixInUserId:!0}),d(o,s.Z.YE,{environmentId:"XCtjD1EGk7aG",brand:f.Z.youfoodz,usePrefixInUserId:!0}),d(o,s.Z.KN,{environmentId:"F7ACw6BrPffA",brand:f.Z.petstable,usePrefixInUserId:!0}),d(o,s.Z.MR,{environmentId:"9dT5etAktWTR",brand:f.Z.goodchop,usePrefixInUserId:!0}),d(o,s.Z.CG,{environmentId:y,brand:f.Z.greenchef,usePrefixInUserId:!0}),d(o,s.Z.GN,{environmentId:y,brand:f.Z.greenchef,usePrefixInUserId:!0}),d(o,s.Z.GQ,{environmentId:y,brand:f.Z.greenchef,usePrefixInUserId:!0}),d(o,s.Z.ER,{environmentId:b,brand:f.Z.everyplate,usePrefixInUserId:!0}),d(o,s.Z.AO,{environmentId:b,brand:f.Z.everyplate,usePrefixInUserId:!0}),d(o,s.Z.CK,{environmentId:"j4AQHkHZUQpU",brand:f.Z.chefsplate,usePrefixInUserId:!0}),o),m=(0,c.Z)("systemCountry",h,void 0,{serverEnv:[l.Xe.staging,l.Xe.local]});function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var O="YrX2rPQTtq",I="x7LUly6nqa9D",S="_AqtdbkFbKjJ",P="4J3CjyUyCdM4",w=(g(i={},s.Z.US,{environmentId:O,brand:f.Z.hellofresh,usePrefixInUserId:!1}),g(i,s.Z.NZ,{environmentId:O,brand:f.Z.hellofresh,usePrefixInUserId:!1}),g(i,s.Z.NL,{environmentId:O,brand:f.Z.hellofresh,usePrefixInUserId:!1}),g(i,s.Z.DE,{environmentId:O,brand:f.Z.hellofresh,usePrefixInUserId:!1}),g(i,s.Z.AU,{environmentId:O,brand:f.Z.hellofresh,usePrefixInUserId:!1}),g(i,s.Z.AT,{environmentId:O,brand:f.Z.hellofresh,usePrefixInUserId:!1}),g(i,s.Z.BE,{environmentId:O,brand:f.Z.hellofresh,usePrefixInUserId:!1}),g(i,s.Z.CA,{environmentId:O,brand:f.Z.hellofresh,usePrefixInUserId:!1}),g(i,s.Z.CH,{environmentId:O,brand:f.Z.hellofresh,usePrefixInUserId:!1}),g(i,s.Z.DK,{environmentId:O,brand:f.Z.hellofresh,usePrefixInUserId:!1}),g(i,s.Z.ES,{environmentId:O,brand:f.Z.hellofresh,usePrefixInUserId:!1}),g(i,s.Z.FR,{environmentId:O,brand:f.Z.hellofresh,usePrefixInUserId:!1}),g(i,s.Z.GB,{environmentId:O,brand:f.Z.hellofresh,usePrefixInUserId:!1}),g(i,s.Z.IE,{environmentId:O,brand:f.Z.hellofresh,usePrefixInUserId:!1}),g(i,s.Z.IT,{environmentId:O,brand:f.Z.hellofresh,usePrefixInUserId:!1}),g(i,s.Z.LU,{environmentId:O,brand:f.Z.hellofresh,usePrefixInUserId:!1}),g(i,s.Z.NO,{environmentId:O,brand:f.Z.hellofresh,usePrefixInUserId:!1}),g(i,s.Z.SE,{environmentId:O,brand:f.Z.hellofresh,usePrefixInUserId:!1}),g(i,s.Z.JP,{environmentId:O,brand:f.Z.hellofresh,usePrefixInUserId:!1}),g(i,s.Z.FJ,{environmentId:I,brand:f.Z.factor,usePrefixInUserId:!0}),g(i,s.Z.CF,{environmentId:I,brand:f.Z.factor,usePrefixInUserId:!0}),g(i,s.Z.TZ,{environmentId:I,brand:f.Z.factor,usePrefixInUserId:!0}),g(i,s.Z.TK,{environmentId:I,brand:f.Z.factor,usePrefixInUserId:!0}),g(i,s.Z.TO,{environmentId:I,brand:f.Z.factor,usePrefixInUserId:!0}),g(i,s.Z.TT,{environmentId:I,brand:f.Z.factor,usePrefixInUserId:!0}),g(i,s.Z.TV,{environmentId:I,brand:f.Z.factor,usePrefixInUserId:!0}),g(i,s.Z.YE,{environmentId:"zW9ESwpgNtss",brand:f.Z.youfoodz,usePrefixInUserId:!0}),g(i,s.Z.KN,{environmentId:"2mLA-ZKNqNso",brand:f.Z.petstable,usePrefixInUserId:!0}),g(i,s.Z.MR,{environmentId:"-gPGMIBCOpxk",brand:f.Z.goodchop,usePrefixInUserId:!0}),g(i,s.Z.CG,{environmentId:S,brand:f.Z.greenchef,usePrefixInUserId:!0}),g(i,s.Z.GN,{environmentId:S,brand:f.Z.greenchef,usePrefixInUserId:!0}),g(i,s.Z.GQ,{environmentId:S,brand:f.Z.greenchef,usePrefixInUserId:!0}),g(i,s.Z.ER,{environmentId:P,brand:f.Z.everyplate,usePrefixInUserId:!0}),g(i,s.Z.AO,{environmentId:P,brand:f.Z.everyplate,usePrefixInUserId:!0}),g(i,s.Z.CK,{environmentId:"h_QaElrA-Dd3",brand:f.Z.chefsplate,usePrefixInUserId:!0}),i),Z=(0,c.Z)("systemCountry",w,void 0,{serverEnv:l.Xe.live});function j(e,t,r,n,o,i,u){try{var a=e[i](u),c=a.value}catch(e){r(e);return}a.done?t(c):Promise.resolve(c).then(n,o)}var _=(0,u.Z)(m,Z),C=(0,a.Z)("hf.sprig-configuration",(n=function(){return function(e,t){var r,n,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(r)throw TypeError("Generator is already executing.");for(;u;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=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++,n=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}
1o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],n=0}finally{r=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,_]})},function(){var e=this,t=arguments;return new Promise(function(r,o){var i=n.apply(e,t);function u(e){j(i,r,o,u,a,"next",e)}function a(e){j(i,r,o,u,a,"throw",e)}u(void 0)})})),A=C.ProjectConfigProvider,E=(C.configMiddleware,C.useConfig)},808215:function(e,t,r){"use strict";var n=r(449551),o=r(527157),i=r(757114);t.Z=function(){var e=(0,n.Z)(),t=(0,o.Z)();return{brand:i.A[t],region_code:e}}},592610:function(e,t,r){"use strict";r.d(t,{T:function(){return o}});var n=new Set(["[object object]","undefined","null"]),o=function(e){if("string"!=typeof e)return"";var t=e.trim();return!t||n.has(t.toLowerCase())?"":t}},612771:function(e,t,r){"use strict";r.d(t,{P:function(){return n}});var n={mobile:"mobile",tablet:"tablet",desktop:"desktop",server:"server"}},496329:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(581340),o=r(827378),i=r(953137),u=r(43011),a=r(718583),c=r(748966),l=function(e){var t,r=null==e?void 0:null===(t=e.split("?"))||void 0===t?void 0:t[1];if(!r)return{};try{var n=decodeURIComponent(r);return(0,c.parse)(n)}catch(e){return{}}},s=function(e){var t,r,c=(0,u.Z)(),s=(0,n.t)(),f=s.query,d=l(s.asPath),p=(0,o.useMemo)(function(){var e,t=a.ZP.getItem("hf_subscription_id");try{return t&&(null===(e=JSON.parse(t))||void 0===e?void 0:e.value)}catch(e){}},[]),v=(null==f?void 0:f.subscriptionId)||(null==d?void 0:d.subscriptionId)||p,y=(0,i.u)({},{suspense:!1,enabled:!!c}).data,b=null==y?void 0:y.items;if(!b)return!1;var h=void 0;v&&(h=b.find(function(e){return e.id===v})),h||(h=b.find(function(e){return!e.canceledAt})||b[0]);var m=!!(null==h?void 0:h.canceledAt);return e&&(m=(null===(r=h.productType)||void 0===r?void 0:null===(t=r.specs)||void 0===t?void 0:t.recurrency)===0&&!!(null==h?void 0:h.canceledAt)),m}},898457:function(e,t,r){"use strict";r.d(t,{Id:function(){return u},LB:function(){return a}});var n,o=r(543790);function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u="deliveryInformation",a="mealSelection";i(n={},o.Z.hellofresh,{"en-US":"P500-funnel-HF-US"}),i(n,o.Z.factor,{"en-US":"funnel-factor-US-p500-navigation-v1"}),i(n,o.Z.youfoodz,{"en-AU":"funnel-Youfoodz-HF-AU"})},599506:function(e,t,r){"use strict";r.d(t,{Z:function(){return O}});
1var n=r(37017),o=r(194924),i=r(859737),u=r(827378),a=r(718583),c={meals:[],totalCount:0,week:"",productSKU:""};function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function f(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function d(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var p=function(e,t){switch(t.type){case"ADD_MEAL":var r,n,o=e.meals.findIndex(function(e){return e.index===t.payload.index});if(-1!==o){var i=d(e.meals);return i[o]=f(s({},i[o]),{quantity:i[o].quantity+t.payload.quantity}),f(s({},e),{meals:i,totalCount:i.reduce(function(e,t){return e+t.quantity},0)})}var u=d(e.meals).concat([t.payload]);return f(s({},e),{meals:u,totalCount:u.reduce(function(e,t){return e+t.quantity},0)});case"REMOVE_MEAL":var a=e.meals.filter(function(e){return e.index!==t.payload.index});return f(s({},e),{meals:a,totalCount:a.reduce(function(e,t){return e+t.quantity},0)});case"DECREASE_MEAL_QUANTITY":if(t.payload.quantity<=0){var l=e.meals.filter(function(e){return e.index!==t.payload.index});return f(s({},e),{meals:l,totalCount:l.reduce(function(e,t){return e+t.quantity},0)})}var v=e.meals.map(function(e){return e.index===t.payload.index?f(s({},e),{quantity:e.quantity-1}):e});if(0===v.length)return c;var y=v.find(function(e){return e.index===t.payload.index});if(!y)return e;return p(e,{type:"UPDATE_MEAL_QUANTITY",payload:{index:t.payload.index,quantity:y.quantity}});case"UPDATE_MEAL_QUANTITY":if(t.payload.quantity<=0)return p(e,{type:"REMOVE_MEAL",payload:{index:t.payload.index}});var b=e.meals.map(function(e){return e.index===t.payload.index?f(s({},e),{quantity:t.payload.quantity}):e});return f(s({},e),{meals:b,totalCount:b.reduce(function(e,t){return e+t.quantity},0)});case"CLEAR_CART":return c;case"SET_CART":return f(s({},e),{meals:t.payload.meals,week:null!==(r=t.payload.week)&&void 0!==r?r:e.week,productSKU:null!==(n=t.payload.productSKU)&&void 0!==n?n:e.productSKU,totalCount:t.payload.meals.reduce(function(e,t){return e+t.quantity},0)});case"SET_WEEK":return f(s({},e),{week:t.payload.week});case"SET_PRODUCT_SKU":return f(s({},e),{productSKU:t.payload.productSKU});default:return e}},v=r(497249),y=r(344884),b=function(e){var t=(0,v.T)();return(0,u.useCallback)(function(r){var n=t.startSpan("meal-selection-cart-state-reducer-error");n.setAttributes({"availability-error-type":"state-definitions-operation-reducer-error",operation:e}),n.setStatus({code:y.Z.ERROR,message:String(r)}),n.end()},[t,e])};function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var m=(0,o.FL)(function(){return a.ZP}),g=(0,o.O4)("hf_meal_selection_cart",c,{getItem:function(e){var t=m.getItem(e);return t===i.o5||Date.now()>t.expiresAt?i.o5:t.value},setItem:function(e,t){m.setItem(e,{value:t,expiresAt:Date.now()+6048e5})},removeItem:function(e){m.removeItem(e)},subscribe:function(e,t){var r=m.subscribe;return r?r(e,function(e){Date.now()<=e.expiresAt&&t(e.value)}):function(){}}}),O=function(){var e,t=function(e){if(Array.isArray(e))return e}(e=(0,n.KO)(g))||function(e,t){var r,n,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=(r=o.next()).done)&&(i.push(r.value),2!==i.length);u=!0);}catch(e){a=!0,n=e}finally{try{u||null==o.return||o.return()}finally{if(a)throw n}}return i}}(e,2)||function(e,t){if(e){if("string"==typeof e)return h(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);
1if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(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],o=t[1],i=b("meal-selection-cart-state");return[r,(0,u.useCallback)(function(e){o(function(t){try{return p(t,e)}catch(e){return i(e),t}})},[o,i])]}},368058:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var n=r(37017),o=r(827378),i=r(317512),u=r(602307),a=r(497249),c=r(344884),l=function(e){var t=(0,u.z)()||{name:"activations-rte",githubTeam:"hellofresh/activations-rte",tribe:"conversions",alliance:"growth",jiraPrefix:"USCRO",slackChannel:"#squad-curation",slackAlertsChannel:"#squad-curation",skipLabelsOnPR:!1,teamIdentifier:"activations-rte"},r=(0,a.T)();return(0,o.useCallback)(function(n){var o=Error("state-definition-reducer-error: ".concat(e),{cause:n});(0,i.Z)(t,o);var u=r.startSpan("state-definition-operation-error");u.setAttributes({"availability-error-type":"state-definitions-operation-reducer-error",operation:e}),u.setStatus({code:c.Z.ERROR,message:"[".concat(n.name,"] ").concat(n.message)}),u.end()},[t,r,e])},s=function(e,t){switch(t.type){case"LEAVE_FLOW":return{isUserInFlow:!1};case"SET_CURRENT_FLOW_STEP":return{isUserInFlow:!0,currentStepId:t.currentStepId,flowCompletionPercentage:t.flowCompletionPercentage,previousStepId:e.currentStepId};default:return e}};function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var d=(0,n.cn)({isUserInFlow:!1}),p=function(){var e,t=function(e){if(Array.isArray(e))return e}(e=(0,n.KO)(d))||function(e,t){var r,n,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=(r=o.next()).done)&&(i.push(r.value),2!==i.length);u=!0);}catch(e){a=!0,n=e}finally{try{u||null==o.return||o.return()}finally{if(a)throw n}}return i}}(e,2)||function(e,t){if(e){if("string"==typeof e)return f(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return f(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],u=l("use-flow-progress-state"),a=(0,o.useCallback)(function(e){try{var t=s(r,e);i(t)}catch(e){u(e)}},[r,i,u]);return[r,a]}},620020:function(e,t,r){"use strict";r.d(t,{_:function(){return d},k:function(){return p}});
1var n=r(37017),o=r(827378),i=r(529553),u="hf_progress_bar_config",a={progressBarConfig:null,funnelSteps:null},c=function(e){return null!=e&&!!e.length&&e.some(function(e){return null!=e.path})},l=function(){try{var e=i.o.getItem(u);if(e)return JSON.parse(e)}catch(e){}return a},s=function(e){try{i.o.setItem(u,JSON.stringify(e))}catch(e){}},f=(0,n.cn)(a),d=function(){var e=(0,n.Dv)(f),t=(0,n.b9)(f);return(0,o.useEffect)(function(){if(!e.progressBarConfig&&!e.funnelSteps){var r=l();c(r.progressBarConfig)&&t(r)}},[]),e},p=function(e,t){var r=(0,n.b9)(f),i=c(e);(0,o.useEffect)(function(){if((null==e?void 0:e.length)||(null==t?void 0:t.length)){var n={progressBarConfig:null!=e?e:null,funnelSteps:null!=t?t:null};r(n),i&&s(n)}},[e,t,r,i])}},188482:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return g}});var n=r(687800);r(827378);var o=r(184883),i=r(481989),u=r(31748),a=r(10362),c=r(982436),l=r(57204),s=r(231140),f=r(365116),d=r(932066),p=r(872728),v=r(956222),y=r(279810),b=r(308246),h=r(394545),m=function(e){var t,r,i,m,g,O,I=e.ssrPayload,S=I.commsConfigurationData,P=S&&S.campaigns.length>0,w=null!==(m=null==I?void 0:I.funnelId)&&void 0!==m?m:null,Z=null!==(O=null!==(g=null==I?void 0:I.funnelName)&&void 0!==g?g:null==I?void 0:null===(i=I.modularFunnel)||void 0===i?void 0:i.funnelName)&&void 0!==O?O:null;return(0,n.BX)(o.Z,{scope:"intelligent-funnel-factor-plans",children:[(0,n.tZ)(u.Z,{}),(0,n.tZ)(c.gd,{children:(0,n.tZ)(a.Z,{IPCountry:null==I?void 0:I.IPCountry,children:(0,n.tZ)(l.M,{microTagsEntries:(null==I?void 0:I.microTagsEntries)||[],singleMicroTagEntry:null==I?void 0:I.singleMicroTagEntry})})}),(0,n.tZ)(p.lm,{value:null==I?void 0:I.modularFunnel,children:(0,n.tZ)(d.Z,{funnelId:w,visitId:null==I?void 0:I.visitId,funnelName:Z,children:(0,n.tZ)(s.Z,{children:(0,n.tZ)(b.Gs,{children:(0,n.BX)(y.x2,{children:[(0,n.tZ)(h.Ch,{}),(0,n.tZ)(f.f,(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},P&&{payload:{campaigns:S.campaigns},type:"dynamic-config"}),r=r={children:(0,n.tZ)(v.Z,{})},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))]})})})})})]})};m.customLayout=i.A5,m.provideCustomLayoutProps=function(e){return{ssrPayload:e.ssrPayload,claim:{name:"conversion-comms",githubTeam:"hellofresh/squad-conversion-comms",tribe:"conversions",alliance:"growth",jiraPrefix:"CCOMMS",slackChannel:"#squad-conversion-comms",slackAlertsChannel:"#squad-conversion-comms",skipLabelsOnPR:!1,teamIdentifier:"conversion-comms"},disableFooter:e.ssrPayload.isMobileAppWebview}};var g=!0;t.default=m},359839:function(e,t,r){"use strict";function n(e,t,r,n,o,i,u){try{var a=e[i](u),c=a.value}catch(e){r(e);return}a.done?t(c):Promise.resolve(c).then(n,o)}r.d(t,{V2:function(){return a},W4:function(){return u},r9:function(){return c}});var o,i=(0,r(575085).Z)("hf.plans.single-question-page",(o=function(){return function(e,t){var r,n,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(r)throw TypeError("Generator is already executing.");for(;u;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=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++,n=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}
1o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],n=0}finally{r=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,r.e(62757).then(r.bind(r,962757))]})},function(){var e=this,t=arguments;return new Promise(function(r,i){var u=o.apply(e,t);function a(e){n(u,r,i,a,c,"next",e)}function c(e){n(u,r,i,a,c,"throw",e)}a(void 0)})})),u=i.ProjectConfigProvider,a=i.configMiddleware,c=i.useConfig},682617:function(e,t,r){"use strict";r.d(t,{Km:function(){return i},Ve:function(){return a},gx:function(){return u},hv:function(){return o}}),(n=o||(o={})).subscription="subscription",n.oneTimePurchase="one_time_purchase";var n,o,i=["subscription","one_time_purchase"],u="StoredCouponCode",a="STORED_COUPON_CODE"},872728:function(e,t,r){"use strict";r.d(t,{lm:function(){return m},PJ:function(){return g},KR:function(){return O},Tb:function(){return S},ut:function(){return I}});var n=r(687800),o=r(827378),i=r(718583),u=r(783244),a=r(581340);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var l=function(e){if(e)try{var t=JSON.parse(e);if(!t||(void 0===t?"undefined":t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)!="object")return;var r={};return Object.entries(t).forEach(function(e){var t=function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,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=(r=o.next()).done)&&(i.push(r.value),2!==i.length);u=!0);}catch(e){a=!0,n=e}finally{try{u||null==o.return||o.return()}finally{if(a)throw n}}return i}}(e,2)||function(e,t){if(e){if("string"==typeof e)return c(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(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.")}(),n=t[0],o=t[1];if(Array.isArray(o)&&o.length>0){var i=o.filter(function(e){return"string"==typeof e});i.length>0&&(r[n]=i)}}),Object.keys(r).length>0?r:void 0}catch(e){return}},s=function(e,t){var r=e[t];return void 0===r?void 0:Array.isArray(r)?r[0]:r},f=function(e,t){switch(e.source){case"urlParam":return s(t.urlQuery,e.key)===e.value;case"localStorage":if(!t.getLocalStorageString)return!0;var r,n,o=t.getLocalStorageString(e.key),i=o;try{i=null!==(n=null===(r=JSON.parse(null!=o?o:"{}"))||void 0===r?void 0:r.value)&&void 0!==n?n:o}catch(e){i=o}return i===e.value;case"quizSelectionStorage":if(!t.quizSelectionsByHandle)return!0;var u=t.quizSelectionsByHandle[e.key];return Array.isArray(u)&&u.includes(e.value);default:return e.source}},d=function(e,t){if(null==e||!(null===(r=e.conditions)||void 0===r?void 0:r.length))return!0;var r,n,o=e.conditions.map(function(e){return f(e,t)});return"or"===(null!==(n=e.logic)&&void 0!==n?n:"and")?o.some(Boolean):o.every(Boolean)},p=function(e,t){if(!e)return null;var r,n,o=e.steps.filter(function(e){var r,n=e.visibilityCondition;return null==n||null===(r=n.conditions)||void 0===r||!r.length||d(n,t)});return r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},e),n=n={steps:o,flow:o.map(function(e){return e.subType})},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r},v=r(620020),y=r(94297);function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var h=(0,o.createContext)(null),m=function(e){var t,r=e.children,c=e.value,s=(0,a.t)().query,f=(function(e){if(Array.isArray(e))return e}(t=(0,u.Z)(y.Z))||function(e,t){var r,n,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=(r=o.next()).done)&&(i.push(r.value),1!==i.length);u=!0);}catch(e){a=!0,n=e}finally{try{u||null==o.return||o.return()}finally{if(a)throw n}}return i}}(t,1)||function(e,t){if(e){if("string"==typeof e)return b(e,1);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);
1if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return b(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],d=(0,o.useMemo)(function(){return l(null!=f?f:null)},[f]),m=(0,o.useCallback)(function(e){try{return i.ZP.getItem(e)}catch(e){return null}},[]),g=(0,o.useMemo)(function(){var e;return null==c?null:null!==(e=p(c,{urlQuery:s,getLocalStorageString:m,quizSelectionsByHandle:d}))&&void 0!==e?e:null},[c,s,m,d]);return(0,v.k)(null==c?void 0:c.progressBarConfig,null==c?void 0:c.steps),(0,n.tZ)(h.Provider,{value:g,children:r})},g=function(){return(0,o.useContext)(h)},O=function(){var e=(0,o.useContext)(h);return e?e.flow:null},I=function(e){var t=(0,o.useContext)(h);return(null==t?void 0:t.steps)&&t.steps.find(function(t){return t.subType===e})||null},S=function(e){var t=(0,o.useContext)(h);return!(null==t?void 0:t.steps)||e<0||e>=t.steps.length?null:t.steps[e]||null}},698764:function(e,t,r){"use strict";r.d(t,{K:function(){return u},e:function(){return i}});var n=r(827378),o=(0,n.createContext)(!1),i=o.Provider,u=function(){return(0,n.useContext)(o)}},94297:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(827378),o=r(783244);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var u="hf_generic_step_selections";t.C=function(e){var t,r=function(e){if(Array.isArray(e))return e}(t=(0,o.Z)(u))||function(e,t){var r,n,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=(r=o.next()).done)&&(i.push(r.value),2!==i.length);u=!0);}catch(e){a=!0,n=e}finally{try{u||null==o.return||o.return()}finally{if(a)throw n}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return i(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(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.")}(),a=r[0],c=r[1];return{persistedSelections:(0,n.useMemo)(function(){if(!a||!e)return[];try{var t=JSON.parse(a);return Array.isArray(t[e])?t[e]:[]}catch(e){return[]}},[a,e]),persistSelections:(0,n.useCallback)(function(t,r){if(e)try{var n,o=a?JSON.parse(a):{};o[e]=t,void 0!==r&&(o["".concat(e,"__dynamicKey")]=r),c(JSON.stringify(o))}catch(r){c(JSON.stringify((e in(n={})?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n)))}},[e,a,c]),storedDynamicKey:(0,n.useMemo)(function(){if(!a||!e)return"";try{return JSON.parse(a)["".concat(e,"__dynamicKey")]||""}catch(e){return""}},[a,e])}}},656573:function(e,t,r){"use strict";r.d(t,{D6:function(){return l},kB:function(){return s}});
1var n=r(37017),o=r(859737),i=r(194924),u=r(529553),a=r(682617),c=(0,i.O4)("hf_sqf_order_type",a.hv.subscription,{getItem:function(e){var t=u.o.getItem(e);return t===a.hv.subscription||t===a.hv.oneTimePurchase?t:o.o5},setItem:function(e,t){u.o.setItem(e,t)},removeItem:function(e){u.o.removeItem(e)},delayInit:!0}),l=function(){return(0,n.KO)(c)},s=function(){return(0,n.Dv)(c)===a.hv.oneTimePurchase}},292282:function(e,t,r){"use strict";r.r(t);var n=r(687800);function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function i(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}r(827378),t.default=function(e){var t=e.title,r=e.titleId,u=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["title","titleId"]);return(0,n.BX)("svg",i(o(i(o({width:"1.5rem",height:"1.5rem",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:t?"img":"graphics-symbol",color:"inherit","aria-hidden":!t},!t&&{focusable:!1}),{"aria-labelledby":r}),u),{children:[t?(0,n.tZ)("title",{id:r,children:t}):null,(0,n.tZ)("path",{d:"m11 3-9 9 9 9 1.333-1.334L5.667 13H22v-2H5.667l6.666-6.667L11 3Z",fill:"currentColor"})]}))}},534243:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(914325),o=r(646052),i=function(e){if(!(0,o.Z)(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};function u(e,t){return e<<t|e>>>32-t}var a=function(e,t,r){function o(e,t,o,u){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof t&&(t=i(t)),16!==t.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(t),a.set(e,t.length),(a=r(a))[6]=15&a[6]|80,a[8]=63&a[8]|128,o){u=u||0;for(var c=0;c<16;++c)o[u+c]=a[c];return o}return(0,n.Z)(a)}try{o.name="v5"}catch(e){}return o.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",o.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",o}(0,0,function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=[];for(var o=0;o<n.length;++o)e.push(n.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=Math.ceil((e.length/4+2)/16),a=Array(i),c=0;c<i;++c){for(var l=new Uint32Array(16),s=0;s<16;++s)l[s]=e[64*c+4*s]<<24|e[64*c+4*s+1]<<16|e[64*c+4*s+2]<<8|e[64*c+4*s+3];a[c]=l}a[i-1][14]=(e.length-1)*8/4294967296,a[i-1][14]=Math.floor(a[i-1][14]),a[i-1][15]=(e.length-1)*8&4294967295;for(var f=0;f<i;++f){for(var d=new Uint32Array(80),p=0;p<16;++p)d[p]=a[f][p];for(var v=16;v<80;++v)d[v]=u(d[v-3]^d[v-8]^d[v-14]^d[v-16],1);for(var y=r[0],b=r[1],h=r[2],m=r[3],g=r[4],O=0;O<80;++O){var I=Math.floor(O/20),S=u(y,5)+function(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}(I,b,h,m)+g+t[I]+d[O]>>>0;g=m,m=h,h=u(b,30)>>>0,b=y,y=S}r[0]=r[0]+y>>>0,r[1]=r[1]+b>>>0,r[2]=r[2]+h>>>0,r[3]=r[3]+m>>>0,r[4]=r[4]+g>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]})}},function(e){e.O(0,[47057,38579,12737,8139,14206,44355,61403,40889,85698,50134,18629,17827,3243,83030,32857,69190,64901,94924,13296,25216,57252,36060,74050,64291,24400,14005,81989,77007,14197,51038,56222,92888,49774,40179],function(){return e(e.s=645233)}),_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.