1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[15540,64800],{910195:function(e,n,t){var r,a,o,i,l,c,u;t.d(n,{_W:function(){return r},dL:function(){return o},ei:function(){return a},xA:function(){return i}}),(l=r||(r={})).completed="completed",l.reached="reached",l.upcoming="upcoming",(c=a||(a={})).normal="normal",c.oneOffReward="one_off_reward",(u=o||(o={})).locked="locked",u.activated="activated",u.expired="expired",u.conflicted="conflicted",u.cancelled="cancelled",(i||(i={})).v2="v2"},492106:function(e,n,t){t.d(n,{Ub:function(){return S},K2:function(){return C}});var r,a,o=t(456552),i=t(671718),l=t(447178),c=t(699219),u=t(140224),s=t(463171),d=t(184151);function f(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function p(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}function b(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}function y(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return f(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return f(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 v=function(){var e=(0,s.Z)("loyalty_v2_rate_recipe_mission").isEnabled,n=(0,s.Z)("loyalty_v2_refer_friend_mission").isEnabled,t=(0,s.Z)("loyalty_v2_box_ordering_streak_mission").isEnabled,r=(0,s.Z)("loyalty_v2_order_premium_meal_mission").isEnabled,a=(0,s.Z)("loyalty_v2_claim_first_reward_mission").isEnabled;return function(o){if(!o||o.program_type!==d.oj.pointBased||!o.missions)return o;var i=y(e?[d.Rm.RATE_RECIPE]:[]).concat(y(n?[d.Rm.REFER_A_FRIEND]:[]),y(t?[d.Rm.BOX_ORDERING_STREAK]:[]),y(r?[d.Rm.ORDER_PREMIUM_MEAL]:[]),y(a?[d.Rm.CLAIM_REWARD]:[])),l=o.missions.filter(function(e){return i.includes(e.archetype)});return b(p({},o),{missions:l})}},m=function(){var e=(0,s.Z)("loyalty_v2_onboarding_package").isEnabled;return function(n){if(!n||n.program_type!==d.oj.pointBased||!n.packages)return n;var t=y(e?[d.Un.ONBOARDING]:[]),r=n.packages.filter(function(e){return t.includes(e.archetype)});return b(p({},n),{packages:r})}};function g(e,n,t,r,a,o,i){try{var l=e[o](i),c=l.value}catch(e){t(e);return}l.done?n(c):Promise.resolve(c).then(r,a)}function h(e){return function(){var n=this,t=arguments;return new Promise(function(r,a){var o=e.apply(n,t);function i(e){g(o,r,a,i,l,"next",e)}function l(e){g(o,r,a,i,l,"throw",e)}i(void 0)})}}function _(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}function O(e,n){var t,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;
1function l(o){return function(l){return function(o){if(t)throw TypeError("Generator is already executing.");for(;i;)try{if(t=1,r&&(a=2&o[0]?r.return:o[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;switch(r=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,r=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===o[0]||2===o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(6===o[0]&&i.label<a[1]){i.label=a[1],a=o;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(o);break}a[2]&&i.ops.pop(),i.trys.pop();continue}o=n.call(e,i)}catch(e){o=[6,e],r=0}finally{t=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}var w=(r=h(function(e,n){var t,r,a,o,l=arguments;return O(this,function(c){switch(c.label){case 0:return t=e.systemCountry,r=e.locale,a=e.parentSpan,o=e.dummy,[4,(l.length>2&&void 0!==l[2]?l[2]:i.Z)("/loyalty/v3/programs/enrollment",n,{query:_({country:t,locale:r},o&&{dummy:o}),parentSpan:a})];case 1:return[2,c.sent().json()]}})}),function(e,n){return r.apply(this,arguments)}),S=function(e){var n,t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=(0,l.Z)().fetch,i=v(),s=m(),d=_({},e,(0,u.O)()),f=[c.Z["loyalty.v3.enrollment"],d];return(0,o.useQuery)(f,function(){return w(d,f,a)},(n=_({},r),t=t={select:function(e){return s(i(e))}},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}),n))},k=(a=h(function(e,n){var t,r,a,o,l,c=arguments;return O(this,function(u){switch(u.label){case 0:return t=e.parentSpan,r=e.customerPlanId,a=e.sku,o=e.locale,l=e.systemCountry,[4,(c.length>2&&void 0!==c[2]?c[2]:i.Z)("/loyalty/v3/programs/enrollment",n,{method:"POST",headers:{"Content-Type":"application/json"},query:{country:l,locale:o},data:{customer_plan_id:r,sku:a},parentSpan:t})];case 1:return[2,u.sent().json()]}})}),function(e,n){return a.apply(this,arguments)}),C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(0,l.Z)().fetch,t=(0,u.O)(),r=[c.Z["loyalty.v3.update.enrollment"],t];return(0,o.useMutation)(function(e){return k(_({},t,e),r,n)},_({},e))}},486598:function(e,n,t){t.d(n,{X:function(){return f}});var r,a,o=t(456552),i=t(671718),l=t(447178),c=t(699219),u=t(140224);function s(e,n,t,r,a,o,i){try{var l=e[o](i),c=l.value}catch(e){t(e);return}l.done?n(c):Promise.resolve(c).then(r,a)}var d=(r=function(e,n){var t,r,a,o,l=arguments;return function(e,n){var t,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(t)throw TypeError("Generator is already executing.");for(;i;)try{if(t=1,r&&(a=2&o[0]?r.return:o[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;switch(r=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,r=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===o[0]||2===o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(6===o[0]&&i.label<a[1]){i.label=a[1],a=o;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(o);break}a[2]&&i.ops.pop(),i.trys.pop();continue}o=n.call(e,i)}catch(e){o=[6,e],r=0}finally{t=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}(this,function(c){switch(c.label){case 0:return t=e.sku,r=e.systemCountry,a=e.locale,o=e.parentSpan,[4,(l.length>2&&void 0!==l[2]?l[2]:i.Z)("/loyalty/v3/programs/opt-in",n,{query:{country:r,locale:a,sku:t},parentSpan:o,fetchSpanAttributes:{"request.backend_service":"customer-achievements-service","request.backend_action":"get-program-opt-in"}})];case 1:return[2,c.sent().json()]}})},a=function(){var e=this,n=arguments;return new Promise(function(t,a){var o=r.apply(e,n);function i(e){s(o,t,a,i,l,"next",e)}function l(e){s(o,t,a,i,l,"throw",e)}i(void 0)})},function(e,n){return a.apply(this,arguments)}),f=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=(0,l.Z)().fetch,r=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({}
1,e,(0,u.O)()),a=[c.Z["loyalty.v3.optin"],r];return(0,o.useQuery)(a,function(){return d(r,a,t)},n)}},184151:function(e,n,t){t.d(n,{Fl:function(){return l},Rm:function(){return u},Un:function(){return s},Z4:function(){return c},oj:function(){return i},t:function(){return o}}),(r=o||(o={})).notOptedIn="not_opted_in",r.optedIn="opted_in",r.optInClosed="opt_in_closed",r.notEligible="not_eligible",(a=i||(i={})).milestoneBased="milestone_based_v1",a.pointBased="point_based_v1";var r,a,o,i,l={REFER_A_FRIEND:"refer_a_friend",REVIEW_NEXT_ORDER:"review_next_order"},c={RATE_RECIPE:"rate_a_recipe",BOX_ORDERING_STREAK:"box_ordering_streak",ORDER_PREMIUM_MEAL:"order_premium_meal",CLAIM_REWARD:"claim_reward"},u=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({},l,c),s={ONBOARDING:"onboarding"}},744837:function(e,n,t){t.d(n,{R:function(){return j}});var r=t(687800);t(517827);var a=t(827378),o=t(509957),i=t(268481),l=t(748248),c=t(340332),u=t(200770),s=t(26730),d=function(e,n){var t,r="".concat(n.toUpperCase(),"-CHARGE-0-0-0");return null===(t=e.products)||void 0===t?void 0:t.find(function(e){return e.handle===r})},f=function(e){var n,t=e.cartPricing,r=e.systemCountry,a=e.rawWeeklyShippingSavings,o=e.rawWeeklyPremiumSavings,i=r===s.Z.US?t.standardShippingAmount||0:a||0,l=o||0,c=t.standardShippingDiscountAmount||0,u=(null===(n=d(t,r))||void 0===n?void 0:n.couponMoneyValue)||0,f=Math.max(0,i-c),p=Math.max(0,l-u),b=f+p;return{weeklySavings:b,actualShippingSavings:f,actualPremiumSavings:p,hasBenefitOverlap:0===b&&(c>0||l>0&&u>0)}},p=t(686230),b=t(31499),y=t(768587);function v(e,n,t,r,a,o,i){try{var l=e[o](i),c=l.value}catch(e){t(e);return}l.done?n(c):Promise.resolve(c).then(r,a)}var m=(0,y.q)(y.xu),g=function(){var e,n,t=(0,y.q_)({from:{opacity:.33},to:(e=function(e){return function(e,n){var t,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(t)throw TypeError("Generator is already executing.");for(;i;)try{if(t=1,r&&(a=2&o[0]?r.return:o[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;switch(r=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,r=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===o[0]||2===o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(6===o[0]&&i.label<a[1]){i.label=a[1],a=o;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(o);break}a[2]&&i.ops.pop(),i.trys.pop();continue}o=n.call(e,i)}catch(e){o=[6,e],r=0}finally{t=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}(this,function(n){switch(n.label){case 0:return[4,e({opacity:.8})];case 1:return n.sent(),[4,e({opacity:.33})];case 2:return n.sent(),[2]}})},n=function(){var n=this,t=arguments;return new Promise(function(r,a){var o=e.apply(n,t);function i(e){v(o,r,a,i,l,"next",e)}function l(e){v(o,r,a,i,l,"throw",e)}i(void 0)})},function(e){return n.apply(this,arguments)}),config:{duration:1e3,easing:y.Gk.linear},loop:!0});return(0,r.BX)(y.xu,{"data-test-id":"benefit-plus-banner-skeleton",width:"100%",backgroundColor:"alias.interactive-alt.surface.level-1",borderRadius:"global.lg",padding:"global.sm-2",display:"flex",alignItems:"center",gap:"global.sm-2",children:[(0,r.tZ)(m,{backgroundColor:"alias.elevation.alternative.default",width:40,height:28,borderRadius:"global.sm",flexShrink:0,style:t}),(0,r.tZ)(m,{backgroundColor:"alias.elevation.alternative.default",height:16,flexGrow:1,borderRadius:"global.sm",style:t}),(0,r.tZ)(y.xu,{width:24,height:24,flexShrink:0})]})},h=t(502787),_=t(887824),O=t(966622),w=t(943701),S=t(625951);function k(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}var C="gaEventTrigger",E={brand:"hellofresh",country:"US",experiment_id:S.Br,platform:"web"},P=function(){var e=(0,_.Z)().push,n=(0,O.py)({runUsingStatsig:!0}),t=n.track,r=n.isReady,o=(0,w.R)({runUsingStatsig:!0}),i=o.id,l=o.attributes,c=(0,a.useCallback)(function(e,n){i&&r&&t({experimentationUserId:i,experimentationUserAttributes:l,eventName:e,eventTags:n})},[t,r,i,l]);return{trackBannerViewed:(0,a.useCallback)(function(n){e(k({event:C,event_name:"fp_upsell_banner_viewed",source:n},E)),c("fp_upsell_banner_viewed",k({source:n},E))},[e,c]),trackCtaClicked:(0,a.useCallback)(function(n){e(k({event:C,event_name:"fp_cta_clicked",source:n},E)),c("fp_cta_clicked",k({source:n},E))},[e,c]),trackBannerDismissed:(0,a.useCallback)(function(){e(k({event:C,event_name:"fp_upsell_banner_dismissed"},E)),c("fp_upsell_banner_dismissed",k({},E))},[e,c]),trackBannerExpanded:(0,a.useCallback)(function(){e(k({event:C,event_name:"fp_upsell_banner_expanded"},E)),c("fp_upsell_banner_expanded",k({},E))},[e,c]),trackBannerCollapsed:(0,a.useCallback)(function(){e(k({event:C,event_name:"fp_upsell_banner_collapsed"},E)),c("fp_upsell_banner_collapsed",k({},E))},[e,c]),trackOptInChecked:(0,a.useCallback)(function(){e(k({event:C,event_name:"fp_upsell_opt_in_checked"},E)),c("fp_upsell_opt_in_checked",k({},E))},[e,c]),trackOptInUnchecked:(0,a.useCallback)(function(){e(k({event:C,event_name:"fp_upsell_opt_in_unchecked"},E)),c("fp_upsell_opt_in_unchecked",k({},E))},[e,c])}},j=function(e){e.benefits;var n=e.onEnrollClick,t=e.context,d=void 0===t?"cart":t,y=e.customerId,v=e.planId,m=e.cartPricing,_=e.isCartPricingLoading,O=e.standardShippingAmount,w=e.hasBenefitOverlap,S=(0,i.Sj)(),k=(0,c.nB)(),C=(0,u.Z)(),E=C===s.Z.US,j=(0,l.$)({customerId:void 0===y?""
1:y,planId:void 0===v?"":v}).pricing,x=P(),Z=(0,o.YD)({threshold:.5,triggerOnce:!0}),R=Z.ref,I=Z.inView,D=(0,a.useRef)(!1);(0,a.useEffect)(function(){I&&!D.current&&(x.trackBannerViewed(d),D.current=!0)},[I,x,d]);var A=function(){x.trackCtaClicked(d),n()},B=m?f({cartPricing:m,systemCountry:C,rawWeeklyShippingSavings:null==j?void 0:j.rawWeeklyShippingSavings,rawWeeklyPremiumSavings:null==j?void 0:j.rawWeeklyPremiumSavings}):null,U=B?B.hasBenefitOverlap:void 0!==w&&w,N=function(){if(B)return B.weeklySavings>0?k(Math.round(100*B.weeklySavings)):null;var e,n=E&&void 0!==O?O:null==j?void 0:j.rawWeeklyShippingSavings;if(void 0===n)return null;var t=n+(null!==(e=null==j?void 0:j.rawWeeklyPremiumSavings)&&void 0!==e?e:0);return t>0?k(Math.round(100*t)):null}(),M=void 0!==_&&_&&!B;if(!M&&!N&&!U)return null;if("order-confirmation"===d)return M?(0,r.tZ)(g,{}):(0,r.tZ)(b.r,{onEnrollClick:A,orderConfirmationCardRef:R,weeklySavings:null!=N?N:"",hasBenefitOverlap:U});var L=M?(0,r.tZ)(g,{}):(0,r.tZ)(p.I,{onEnrollClick:A,weeklySavings:null!=N?N:"",bannerRef:R,hasBenefitOverlap:U});return"mobile"===S?(0,r.tZ)(h.g,{children:L}):L}},686230:function(e,n,t){t.d(n,{I:function(){return c}});var r=t(687800);t(827378);var a=t(768587),o=t(164528),i=t(553911),l=t(988402),c=function(e){var n,t=e.onEnrollClick,c=e.weeklySavings,u=e.bannerRef,s=e.hasBenefitOverlap,d=e.benefitsSubtext,f=(0,o.ZP)("benef
1it-plus").translateRaw,p=void 0!==s&&s?f("benefit-plus.web.cart_banner.benefit_overlap.text"):f("benefit-plus.web.cart_banner.title.text",{savings:c});return d&&(n=d.hasPremiumMealsDiscount?f("benefit-plus.web.cart_banner.benefits.text",{premiumMealsDiscount:d.premiumMealsDiscountDisplay}):f("benefit-plus.web.cart_banner.benefits.shipping_only.text")),(0,r.BX)(a.xu,{ref:u,as:"button",onClick:t,backgroundColor:"alias.interactive-alt.surface.level-1",borderRadius:"global.lg",padding:"global.sm-2",display:"flex",alignItems:"center",gap:"global.sm-2",width:"100%",borderWidth:0,cursor:"pointer",textAlign:"left","data-test-id":"benefit-plus-cart-banner",children:[(0,r.tZ)(a.xu,{display:"inline-flex",alignItems:"center",justifyContent:"center",backgroundColor:"global.hellofresh-lime.600",borderRadius:"global.sm",width:40,height:28,flexShrink:0,children:(0,r.tZ)(a.xv,{type:"body-xs-bold",color:"global.white",children:"HF+"})}),(0,r.BX)(a.xu,{flexGrow:1,children:[(0,r.tZ)(a.xv,{type:"body-sm-regular",color:"global.black",children:(0,r.tZ)(i.Z,{copy:p,hasMarkdown:!0})}),n&&(0,r.tZ)(a.xv,{type:"body-sm-regular",color:"global.black",children:(0,r.tZ)(i.Z,{copy:n,hasMarkdown:!0})})]}),(0,r.tZ)(a.xu,{flexShrink:0,children:(0,r.tZ)(l.default,{"aria-hidden":"true"})})]})}},502787:function(e,n,t){t.d(n,{g:function(){return i}});var r=t(827378),a=t(331542);function o(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var i=function(e){var n,t=e.children,i=e.slotId,l=void 0===i?"benefit-plus-banner-slot":i,c=function(e){if(Array.isArray(e))return e}(n=(0,r.useState)(null))||function(e,n){var t,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,l=!1;try{for(a=a.call(e);!(i=(t=a.next()).done)&&(o.push(t.value),2!==o.length);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(l)throw r}}return o}}(n,2)||function(e,n){if(e){if("string"==typeof e)return o(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return o(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),u=c[0],s=c[1];return((0,r.useEffect)(function(){var e=document.getElementById(l);if(e){s(e);return}var n=new MutationObserver(function(){var e=document.getElementById(l);e&&(s(e),n.disconnect())});return n.observe(document.body,{childList:!0,subtree:!0}),function(){return n.disconnect()}},[l]),u)?(0,a.createPortal)(t,u):null}},31499:function(e,n,t){t.d(n,{r:function(){return i}});var r=t(687800);t(827378);var a=t(768587),o=t(164528),i=function(e){var n,t=e.weeklySavings,i=e.onEnrollClick,l=e.orderConfirmationCardRef,c=e.hasBenefitOverlap,u=e.benefitsBody,s=(0,o.ZP)("benef
1it-plus").translateRaw,d=void 0!==c&&c?s("benefit-plus.web.cart_banner.benefit_overlap.text"):s("benefit-plus.web.ocs_card.headline.text",{savings:t});n=u?u.hasPremiumMealsDiscount?s("benefit-plus.web.order_confirmation.benefits.text",{premiumMealsSaving:u.premiumMealsDiscountDisplay}):s("benefit-plus.web.order_confirmation.benefits.shipping_only.text"):s("benefit-plus.web.ocs_card.body.text");var f=s("benefit-plus.web.ocs_card.cta.text");return(0,r.BX)(a.xu,{ref:l,backgroundColor:"global.gray.200",borderColor:"global.goodchop-navy.200",borderWidth:"2px",borderStyle:"solid",borderRadius:"global.lg",padding:"global.sm-2",display:"flex",flexDirection:"column",alignItems:"center",gap:"global.xs",width:"100%","data-test-id":"benefit-plus-order-confirmation-card",children:[(0,r.tZ)(a.xu,{display:"inline-flex",alignItems:"center",justifyContent:"center",backgroundColor:"global.hellofresh-lime.600",borderRadius:"global.sm",paddingX:"global.xs",paddingY:"global.xxs",flexShrink:0,marginBottom:"global.xs",children:(0,r.tZ)(a.xv,{type:"body-xs-bold",color:"global.white",children:s("benefit-plus.web.enrollment.brand_name.text")})}),(0,r.tZ)(a.xv,{as:"h3",type:["body-lg-bold","body-xl-bold"],textAlign:"center",children:d}),(0,r.tZ)(a.xv,{type:"body-md-regular",textAlign:"center",children:n}),(0,r.tZ)(a.xu,{as:"button",onClick:i,backgroundColor:"transparent",borderWidth:0,cursor:"pointer",textAlign:"center",padding:"zero",marginTop:"global.xs","data-test-id":"benefit-plus-order-confirmation-card-cta",children:(0,r.tZ)(a.xv,{type:"body-md-bold",color:"global.hellofresh-lime.600",textDecoration:"underline",children:f})})]})}},625951:function(e,n,t){function r(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}t.d(n,{Br:function(){return i},Js:function(){return l},Mg:function(){return o}});var a,o="$80",i="hellofresh_plus_launch_ll0-10",l={control:"control",test1:"test_1",test2:"test_2"};r(a={},l.control,null),r(a,l.test1,"$30"),r(a,l.test2,"$60")},697621:function(e,n,t){t.d(n,{EE:function(){return f},K2:function(){return b},Mf:function(){return c},el:function(){return s},hp:function(){return p},kO:function(){return u},rq:function(){return y},xi:function(){return d}});var r,a,o=t(892940),i=t(26730);function l(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var c="hf_plus_smoke_test_suppressed",u="hf_plus_smoke_test_cart_banner_interacted",s=(l(r={},i.Z.GB,"hf_plus_gb_smoke_test"),l(r,i.Z.IE,"hf_plus_ie_smoke_test"),l(r,i.Z.CA,"hf_plus_ca_smoke_test"),l(r,i.Z.FR,"hf_plus_fr_smoke_test"),l(r,i.Z.DE,"hf_plus_de_smoke_test"),l(r,i.Z.AU,"hf_plus_au_smoke_test"),r),d=["Variation_1","Variation_2","Variation_3","Variation_4"],f=o.z.object({monthly:o.z.number().finite().positive(),annual:o.z.number().finite().positive()}),p=o.z.object({free_shipping:o.z.boolean(),premium_meals_discount:o.z.number().finite().nonnegative()}),b={bannerViewed:"fp_upsell_banner_viewed",ctaClicked:"fp_cta_clicked",enrollmentView:"fp_enrollment_view",pricingUnavailable:"fp_pricing_unavailable",benefitsUnavailable:"fp_benefits_unavailable",termsChecked:"fp_terms_checked",subscribeClicked:"fp_subscribe_clicked",successScreenViewed:"fp_success_screen_viewed"},y=(l(a={},i.Z.GB,1199),l(a,i.Z.IE,1199),l(a,i.Z.CA,1199),l(a,i.Z.FR,1199),l(a,i.Z.DE,1199),l(a,i.Z.AU,1199),a)},703518:function(e,n,t){t.d(n,{q:function(){return o}});var r=t(340332),a=t(697621),o=function(e,n){var t=a.rq[e];return void 0===t?null:(0,r.xG)(t,{country:e,locale:n,decimals:2})}},409065:function(e,n,t){t.d(n,{t:function(){return l}});var r=t(827378),a=t(783244),o=t(697621);function i(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var l=function(){var e,n=function(e){if(Array.isArray(e))return e}(e=(0,a.Z)(o.kO))||function(e,n){var t,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,l=!1;try{for(a=a.call(e);!(i=(t=a.next()).done)&&(o.push(t.value),2!==o.length);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(l)throw r}}return o}}(e,2)||function(e,n){if(e){if("string"==typeof e)return i(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return i(e,2)}}
1(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),t=n[0],l=n[1];return{hasInteractedWithCartBanner:"true"===t,markCartBannerInteracted:(0,r.useCallback)(function(){l("true")},[l])}}},945982:function(e,n,t){t.d(n,{C:function(){return f}});var r=t(827378),a=t(966622),o=t(943701),i=t(958042),l=t(200770),c=t(697621),u=t(340332),s=function(e,n,t){var r=c.hp.safeParse(e);if(!r.success)return null;var a=r.data,o=a.free_shipping,i=a.premium_meals_discount;if(!o)return null;var l=Math.round(100*i),s=l>0;return{benefitLayout:s?"full":"shipping_only",benefitTypes:s?["shipping","premium"]:["shipping"],freeShipping:o,hasPremiumMealsDiscount:s,premiumMealsDiscountDisplay:(0,u.xG)(l,{country:n,locale:t,decimals:2}),rawPremiumMealsDiscount:(0,u.il)(l)}},d=function(e,n,t){var r=c.EE.safeParse(e);if(!r.success)return null;var a=Math.round(100*r.data.monthly),o=Math.round(100*r.data.annual);if(a<=0||o<=0)return null;var i=function(e){return(0,u.xG)(e,{country:n,locale:t,decimals:2})},l=Math.round((1-o/(12*a))*100);return{monthlyPrice:i(a),annualPrice:i(o),annualMonthlyEquivalent:i(Math.round(o/12)),savingsPercent:l,rawMonthlyPrice:(0,u.il)(a),rawAnnualPrice:(0,u.il)(o),rawAnnualSavingsVsMonthly:(0,u.il)(12*a-o)}},f=function(){var e=(0,l.Z)(),n=(0,i.Z)(),t=c.el[e],u=(0,a.py)({runUsingStatsig:!0}),f=u.decide,p=u.isReady,b=(0,o.R)({runUsingStatsig:!0}),y=b.id,v=b.attributes,m=b.isReady,g=p&&m,h=(0,r.useMemo)(function(){if(!t||!g)return{variant:null,pricingParam:null,benefitsParam:null};var e,n,r=f({experimentKey:t,experimentationUserId:y,experimentationUserAttributes:v}),a=r.variationKey,o=r.parameters;return c.xi.includes(a)?{variant:a,pricingParam:null!==(e=null==o?void 0:o.pricing)&&void 0!==e?e:null,benefitsParam:null!==(n=null==o?void 0:o.benef
1its)&&void 0!==n?n:null}:{variant:null,pricingParam:null,benefitsParam:null}},[t,g,f,y,v]),_=h.variant,O=h.pricingParam,w=h.benefitsParam,S=(0,r.useMemo)(function(){return d(O,e,String(n))},[O,e,n]);return{variant:_,benefits:(0,r.useMemo)(function(){return s(w,e,String(n))},[w,e,n]),prices:S,isLoading:!!t&&!g}}},364518:function(e,n,t){t.d(n,{q:function(){return l}});var r=t(827378),a=t(783244),o=t(697621);function i(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var l=function(){var e,n=function(e){if(Array.isArray(e))return e}(e=(0,a.Z)(o.Mf))||function(e,n){var t,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,l=!1;try{for(a=a.call(e);!(i=(t=a.next()).done)&&(o.push(t.value),2!==o.length);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(l)throw r}}return o}}(e,2)||function(e,n){if(e){if("string"==typeof e)return i(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return i(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.")}(),t=n[0],l=n[1];return{isSuppressed:"true"===t,suppress:(0,r.useCallback)(function(){l("true")},[l])}}},415557:function(e,n,t){t.d(n,{t:function(){return f}});var r=t(827378),a=t(966622),o=t(943701),i=t(887824),l=t(200770),c=t(697621);function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}var d=function(e){var n={};return Object.entries(e).forEach(function(e){var t=function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,l=!1;try{for(a=a.call(e);!(i=(t=a.next()).done)&&(o.push(t.value),2!==o.length);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(l)throw r}}return o}}(e,2)||function(e,n){if(e){if("string"==typeof e)return u(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return u(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],a=t[1];n[r]="boolean"==typeof a?String(a):a}),n},f=function(e){var n=e.source,t=e.groupId,u=(0,l.Z)(),f=(0,i.Z)().push,p=(0,a.py)({runUsingStatsig:!0}).track,b=(0,o.R)({runUsingStatsig:!0}),y=b.id,v=b.attributes,m=b.isReady,g=c.el[u],h=(0,r.useMemo)(function(){return{bob_entity_code:u,experiment_id:null!=g?g:"",group_id:null!=t?t:"",platform:"web",source:n}},[u,g,t,n]),_=(0,r.useCallback)(function(e,n){if(g){var t,r,a=(t=s({},h,n),r=r={timestamp:new Date().toISOString()},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t);try{f(s({event:"gaEventTrigger",event_name:e},a))}catch(e){}if(y&&m)try{p({eventName:e,experimentationUserId:y,experimentationUserAttributes:v,eventTags:d(a)})}catch(e){}}},[h,g,f,p,y,v,m]);return{trackUpsellBannerViewed:(0,r.useCallback)(function(e){var n=e.bannerType;return _(c.K2.bannerViewed,{banner_type:n})},[_]),trackCtaClicked:(0,r.useCallback)(function(e){var n=e.ctaText,t=e.ctaLocation;return _(c.K2.ctaClicked,{cta_text:n,cta_location:t})},[_]),trackEnrollmentView:(0,r.useCallback)(function(e){var n=e.monthlyPrice,t=e.annualPrice,r=e.benefitLayout;return _(c.K2.enrollmentView,{monthly_price:n,annual_price:t,benefit_layout:r})},[_]),trackPricingUnavailable:(0,r.useCallback)(function(){return _(c.K2.pricingUnavailable,{})},[_]),trackBenefitsUnavailable:(0,r.useCallback)(function(){return _(c.K2.benefitsUnavailable,{})},[_]),trackTermsChecked:(0,r.useCallback)(function(e){var n=e.checked;return _(c.K2.termsChecked,{checked:n})},[_]),trackSubscribeClicked:(0,r.useCallback)(function(e){var n=e.selectedPlan,t=e.selectedPrice;return _(c.K2.subscribeClicked,{selected_plan:n,selected_price:t})},[_]),trackSuccessScreenViewed:(0,r.useCallback)(function(e){var n=e.selectedPlan,t=e.selectedPrice;return _(c.K2.successScreenViewed,{selected_plan:n,selected_price:t})},[_])}}},273992:function(e,n,t){t.d(n,{E:function(){return l}});var r=t(966622),a=t(943701),o=t(536150),i=t(625951),l=function(e){var n,t,l,c=(0,r.py)({runUsingStatsig:!0}),u=c.decide,s=c.isReady,d=(0,a.R)({runUsingStatsig:!0}),f=d.id,p=d.attributes,b=d.isReady,y=(0,o.m)({},{suspense:!1}),v=y.data,m=y.isFetched;if(!s||!b||!m)return{isReady:!1};var g=u({experimentKey:i.Br,experimentationUserId:f,experimentationUserAttributes:(n=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({},p,v),t=t={is_eligible:e},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}
1)(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}),n)}).variationKey,h=null!==(l=null==g?void 0:g.trim().toLowerCase())&&void 0!==l?l:null;return{isReady:!0,isEnabled:h===i.Js.test1||h===i.Js.test2,variationKey:null!=g?g:null}}},956044:function(e,n){var t,r;(r=t||(t={})).DOLLAR="$",r.POUND="\xa3",r.EURO="â¬",r.CHF="CHF",r.KRONA="kr",r.YEN="\xa5",n.Z=t},305625:function(e,n,t){t.d(n,{M:function(){return o}});var r=t(956044),a={decimalSeparator:".",numberSeparator:",",currencyCode:"GBP",formatNumberWithCurrency:function(e){return"".concat(r.Z.POUND).concat(e)}},o={US:{decimalSeparator:".",numberSeparator:",",currencyCode:"USD",formatNumberWithCurrency:function(e){return"".concat(r.Z.DOLLAR).concat(e)}},CA:{decimalSeparator:".",numberSeparator:",",currencyCode:"CAD",formatNumberWithCurrency:function(e){return"".concat(r.Z.DOLLAR).concat(e)}},"FR-CA":{decimalSeparator:",",numberSeparator:".",currencyCode:"CAD",formatNumberWithCurrency:function(e){return"".concat(e," ").concat(r.Z.DOLLAR)}},GB:a,UK:a,AU:{decimalSeparator:".",numberSeparator:",",currencyCode:"AUD",formatNumberWithCurrency:function(e){return"".concat(r.Z.DOLLAR).concat(e)}},NZ:{decimalSeparator:".",numberSeparator:",",currencyCode:"NZD",formatNumberWithCurrency:function(e){return"".concat(r.Z.DOLLAR).concat(e)}},DE:{decimalSeparator:",",numberSeparator:".",currencyCode:"EUR",formatNumberWithCurrency:function(e){return"".concat(e," ").concat(r.Z.EURO)}},AT:{decimalSeparator:",",numberSeparator:".",currencyCode:"EUR",formatNumberWithCurrency:function(e){return"".concat(r.Z.EURO," ").concat(e)}},"EN-BE":{decimalSeparator:",",numberSeparator:".",currencyCode:"EUR",formatNumberWithCurrency:function(e){return"".concat(r.Z.EURO," ").concat(e)}},"FR-BE":{decimalSeparator:",",numberSeparator:".",currencyCode:"EUR",formatNumberWithCurrency:function(e){return"".concat(e," ").concat(r.Z.EURO)}},BE:{decimalSeparator:",",numberSeparator:".",currencyCode:"EUR",formatNumberWithCurrency:function(e){return"".concat(e," ").concat(r.Z.EURO)}},"NL-BE":{decimalSeparator:",",numberSeparator:".",currencyCode:"EUR",formatNumberWithCurrency:function(e){return"".concat(r.Z.EURO," ").concat(e)}},NL:{decimalSeparator:",",numberSeparator:".",currencyCode:"EUR",formatNumberWithCurrency:function(e){return"".concat(r.Z.EURO," ").concat(e)}},FR:{decimalSeparator:",",numberSeparator:".",currencyCode:"EUR",formatNumberWithCurrency:function(e){return"".concat(e," ").concat(r.Z.EURO)}},LU:{decimalSeparator:",",numberSeparator:".",currencyCode:"EUR",formatNumberWithCurrency:function(e){return"".concat(e," ").concat(r.Z.EURO)}},CH:{decimalSeparator:".",numberSeparator:"'",currencyCode:"CHF",formatNumberWithCurrency:function(e){return"".concat(r.Z.CHF," ").concat(e)}},SE:{decimalSeparator:",",numberSeparator:" ",currencyCode:"SEK",formatNumberWithCurrency:function(e){return"".concat(e," ").concat(r.Z.KRONA)}},DK:{decimalSeparator:",",numberSeparator:" ",currencyCode:"DKK",formatNumberWithCurrency:function(e){return"".concat(e," ").concat(r.Z.KRONA,".")}},NO:{decimalSeparator:",",numberSeparator:" ",currencyCode:"NOK",formatNumberWithCurrency:function(e){return"".concat(e," ").concat(r.Z.KRONA)}},IT:{decimalSeparator:",",numberSeparator:".",currencyCode:"EUR",formatNumberWithCurrency:function(e){return"".concat(e," ").concat(r.Z.EURO)}},JP:{decimalSeparator:".",numberSeparator:",",currencyCode:"JPY",formatNumberWithCurrency:function(e){return"".concat(r.Z.YEN).concat(e)}},IE:{decimalSeparator:".",numberSeparator:",",currencyCode:"EUR",formatNumberWithCurrency:function(e){return"".concat(r.Z.EURO).concat(e)}},ES:{decimalSeparator:",",numberSeparator:".",currencyCode:"EUR",formatNumberWithCurrency:function(e){return"".concat(e," ").concat(r.Z.EURO)}}}},340332:function(e,n,t){t.d(n,{E8:function(){return s},SX:function(){return d},il:function(){return i},nB:function(){return f},uf:function(){return l},xG:function(){return u}});var r=t(449551),a=t(958042),o=t(305625),i=function(e){return e/100},l=function(e,n){var t=n.decimals;t="number"==typeof t?t:parseInt(t,10);var r=(e/100).toFixed(t);return 0===Number(r)&&(r=Math.max(Number(r),0).toFixed(t)),r},c=function(e,n){var t=n.currencyInfo,r=n.decimals;if(!t)return e;var a=RegExp("\\d(?=(\\d{3})+".concat(r>0?"\\D":"$",")"),"g");return e.replace(".",t.decimalSeparator).replace(a,"$&".concat(t.numberSeparator))}
1,u=function(e,n){var t=n.country,r=n.locale,a=n.decimals,i=void 0===a?2:a,u=o.M[(void 0===r?"":r).toUpperCase()]||o.M[t.toUpperCase()],s=c(l(e,{decimals:i}),{currencyInfo:u,decimals:i});return((u||{}).formatNumberWithCurrency||function(e){return e})(s)},s=function(e){return o.M[e.toUpperCase()].currencyCode},d=function(){var e=(0,r.Z)();return o.M[e.toUpperCase()].currencyCode||o.M.US.currencyCode},f=function(){var e={country:(0,r.Z)(),locale:(0,a.Z)(),decimals:2};return function(n,t){return u(n,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({},e,t))}}},160906:function(e,n,t){t.d(n,{Z:function(){return _}});var r=t(687800),a=t(827378),o=t(768587),i=t(900253),l=t(184883),c=t(548295),u=t(581340),s=t(164528),d=t(8451),f=t(340332),p=t(449551),b=t(958042),y=function(e){var n=e.savings,t=e.type,a=e.isEnrolled,i=e.points,l=e.showFreeShippingNudge,c=e.hasBenefitPlusSavings,u=(0,p.Z)(),y=(0,b.Z)(),v=(0,s.ZP)("loyalty").translateRaw,m=void 0!==n&&n>0&&!!t,g=v(l?"loyalty.entry_point.active.banner.claim_cta":a?"loyalty.entry_point.active.banner.savings_cta":"loyalty.entry_point.opt_in.banner.savings_cta"),h=m&&(0,r.tZ)(o.xv,{type:"body-md-bold",children:(0,f.xG)(100*n,{country:u,locale:y,decimals:2})})||"",_=(0,r.tZ)(o.xv,{type:"body-md-bold",children:i}),O=(0,r.tZ)(o.xv,{type:"body-md-bold",textDecoration:"underline",children:g}),w=(0,r.tZ)(o.xv,{type:"body-md-bold",textDecoration:"underline",children:g});return(0,r.tZ)(o.xv,{type:"body-md-regular",children:(0,d.lU)(v(l?m?"loyalty.entry_point.active.banner.savings_and_points_free_shipping_nudge":"loyalty.entry_point.active.banner.points_free_shipping_nudge":a&&m&&c?"loyalty.entry_point.active.banner.benefit_plus_savings_and_specific_points":a?m?"loyalty.entry_point.active.banner.savings_and_specific_points":"loyalty.entry_point.active.banner.specific_points":m?"loyalty.entry_point.opt_in.banner.savings_and_specific_points":"loyalty.entry_point.opt_in.banner.specific_points"),{discount:h,viewRewards:O,joinRewards:O,number:_,claimCTA:w})})},v=t(463171),m=t(809805),g=function(){var e,n,t,r,a=(0,v.Z)("loyalty_v2_post_meal_selection_free_shipping_nudge").isEnabled,o=(0,m.Ae)("loyalty_v2_post_meal_selection_rewards_nudge_config"),i=o.isReady?o.value:null;return{isEnabled:!!a,freeShippingThreshold:null!==(t=null==i?void 0:null===(e=i.rewards)||void 0===e?void 0:e.free_shipping_threshold)&&void 0!==t?t:2500,freeShippingRedemptionCost:null!==(r=null==i?void 0:null===(n=i.rewards)||void 0===n?void 0:n.free_shipping_redemption_cost)&&void 0!==r?r:2500,isLoading:!o.isReady}},h=function(e){var n=e.forceState,t=e.loyaltyData,l=e.savings,s=e.type,d=e.points,f=e.storePoints,p=e.hasBenefitPlusSavings,b=e.onDisplay,v=e.onClick,m=(0,u.t)(),h=m.query,_=m.pathname,O=m.push,w=(0,a.useRef)(!1),S=g(),k=S.isEnabled,C=S.freeShippingThreshold,E=S.freeShippingRedemptionCost,P=(0,a.useMemo)(function(){return null==_?void 0:_.startsWith("/deliveries/cart")},[_]),j=n||h.loyaltyBannerState,x=j?"enrolled"===j:t.isV2Enrolled,Z=j?"not-enrolled"===j:t.canOptInV2,R=t.isFetched,I=R&&(Z||x),D=k&&!P&&x&&void 0!==f&&f>=C;(0,a.useEffect)(function(){I&&b&&!w.current&&(w.current=!0,b())},[I,b]);var A=function(){if(null==v||v(),D){O("".concat("/rewards","?rewards_hub_entry_point=post_meal_selection_click&benefit_type=shipping&points=").concat(E));return}var e=void 0!==l&&l>0&&!!s;O("".concat("/my-account/loyalty","?rewards_hub_entry_point=").concat(e?"post_meal_selection_click":"cart_banner_click"))};return R&&(Z||x)&&void 0!==d&&0!==d?(0,r.tZ)(c.Z,{componentName:"loyalty-program.v2.points-communication-pill",children:(0,r.BX)(o.xu,{"data-test-id":"loyalty-points-communication-banner","data-enrollment-state":x?"enrolled":"not-enrolled",backgroundColor:"global.purple.100",borderTopLeftRadius:"global.xxxl",borderTopRightRadius:"global.none",borderBottomLeftRadius:"global.none",borderBottomRightRadius:"global.xxxl",px:["global.md-1","global.sm-2"],py:["global.sm-1"],marginBottom:P?["global.md-1","global.md-1","global.none"]:void 0,display:"flex",flexDirection:"row",alignItems:"center",gap:"global.sm-1",cursor:"pointer",role:"button",tabIndex:0,onClick:A,onKeyDown:function(e){("Enter"===e.key||" "===e.key)&&
1(e.preventDefault(),A())},children:[(0,r.tZ)(o.xu,{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,children:(0,r.tZ)("img",{role:"presentation",height:24,width:24,src:(0,i.V)("/assets/wallet-v2/hellofresh/loyalty_rewards.svg"),alt:""})}),(0,r.tZ)(y,{savings:l,type:s,isEnrolled:x,points:d,showFreeShippingNudge:D,hasBenefitPlusSavings:p})]})}):null},_=function(e){return(0,r.tZ)(l.Z,{scope:"loyalty-program.v2.points-communication-pill",fallback:(0,r.tZ)(r.HY,{}),children:(0,r.tZ)(h,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({},e))})}},683421:function(e,n,t){t.d(n,{q:function(){return v}});var r=t(827378),a=t(887824),o=t(631540),i=t(976555),l=t(60074),c=t(369840),u=t(52130),s=function(){var e=(0,u.L3)().trackJanusEvent,n=(0,r.useRef)(!1);return{trackCartBannerImpression:(0,r.useCallback)(function(t){if(!n.current){n.current=!0;var r=t.enrollmentId,a=t.enrollmentState,o=t.programId,i=t.pointsBalance;try{var u=void 0!==i?[c.qZ.loyaltyProgramPointsStatus({pointsBalance:i})]:void 0;e(c.qZ.janusEvent({event:c.qZ.event({impressionType:c.w7.NavigatedTo,visibilityThreshold:c.Mc.Major}),loyaltyProgramIdentity:c.qZ.loyaltyProgramIdentity({enrollmentId:r,enrollmentState:"Enrolled"===a?c.T_.Enrolled:c.T_.NotEnrolled,programId:o}),loyaltyProgramPointsStatusEntities:u}))}catch(e){(0,l.Tb)(e,{tags:{event:"Cart_Banner_LoyaltyEntryPoint_Impression",component:"useCartBannerLoyaltyEntryPointImpressionSnowplowEvent"}})}}},[e])}},d=t(946706),f=function(){var e=(0,u.L3)().trackJanusEvent,n=(0,r.useRef)(!1);return{trackCartBannerClick:(0,r.useCallback)(function(t){if(!n.current){n.current=!0;var r=t.enrollmentId,a=t.enrollmentState,o=t.programId,i=t.pointsBalance;try{var c=void 0!==i?[d.wB.loyaltyProgramPointsStatus({pointsBalance:i})]:void 0;e(d.wB.janusEvent({loyaltyProgramIdentity:d.wB.loyaltyProgramIdentity({enrollmentId:r,enrollmentState:"Enrolled"===a?d.T_.Enrolled:d.T_.NotEnrolled,programId:o}),loyaltyProgramPointsStatusEntities:c}))}catch(e){(0,l.Tb)(e,{tags:{event:"Cart_View_RewardsHub_Banner_Click",component:"useCartViewRewardsHubBannerClickSnowplowEvent"}})}}},[e])}};function p(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}function b(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}var y={Cart:{displayEventName:"Loyalty_EP_Cart_BannerDisplay",clickEventName:"Loyalty_EP_Cart_BannerClick",eventLabel:"EntryPointCartBanner",element:"loyaltyProgramCartBanner"},MyDeliveries:{displayEventName:"Loyalty_EP_MyDeliveries_PopupDisplay",clickEventName:"Loyalty_EP_MyDeliveries_PopupClick",eventLabel:"EntryPointMyDeliveriesPopup",element:"loyaltyProgramMyDeliveriesPopup"}},v=function(e){var n=e.screen,t=e.loyaltyData,l=(0,a.Z)().push,c=(0,o.C)(),u=s().trackCartBannerImpression,d=f().trackCartBannerClick,v=t.isEnrolled,m=t.canOptIn,g=t.programId,h=t.enrollmentId,_=t.pointsBalance,O=y[n],w=(0,r.useMemo)(function(){var e,t=c.page_path,r=null!==(e=c.current_hf_week)&&void 0!==e?e:(0,i.Z)(),a=v?"enrolled":"not_enrolled",o=v?"savings_reassurance":"opt_in_to_program";return b(p(b(p({event:"gaEventTrigger",event_category:"loyaltyProgram",event_label:O.eventLabel,element:O.element},g&&{program_id:String(g)},v&&h&&{enrollment_id:String(h)}),{enrollment_state:a,ui_element_target:o,screen:n,current_hf_week:r}),t&&{page_path:t}),{squad:"missions",tribe:"loyalty-and-virality"})},[c.page_path,c.current_hf_week,v,h,g,O.eventLabel,O.element,n]);return{trackDisplay:(0,r.useCallback)(function(){(v||m)&&(l(b(p({},w),{event_name:O.displayEventName,event_action:"display"})),"Cart"===n&&u({enrollmentId:h?String(h):null,enrollmentState:v?"Enrolled":"NotEnrolled",programId:g?String(g):null,pointsBalance:_}))},[l,w,O.displayEventName,v,m,n,u,h,g,_]),trackClick:(0,r.useCallback)(function(){if(v||m){var e=v?"RewardsHub":"OptInPage";l(b(p({},w),{event_name:O.clickEventName,event_action:"click",click_target:e})),"Cart"===n&&d({enrollmentId:h?String(h):null,enrollmentState:v?"Enrolled":"NotEnrolled",programId:g?String(g):null,pointsBalance:_})}},[l,w,O.clickEventName,v,m,n,d,h,g,_])}}},29765:function(e,n,t){var r=t(882392),a=t.n(r),o=t(458735),i=/(Z|[+-]\d{2}:?\d{2})$/,l=function(e){var n=/([+-])(\d{2}):?(\d{2})$/.exec(e);if(n){var t=60*parseInt(n[2],10)+parseInt(n[3],10);return"+"===n[1]?-t:t}return 0};n.Z=function(e){var n=(0,o.Z)(e,Date.now());return"string"==typeof e&&i.test(e)?a()(n,n.getTimezoneOffset()-l(e)):new Date(n.getTime())}},941442:function(e,n,t){t.d(n,{s:function(){return a}});var r=t(387975),a=function(e){var n=e.customerId,t=e.planId,a=(0,r.a)({customerId:n,planId:t}),o=a.status,i=a.isLoading,l=a.isError,c=a.refetch;return{shouldShowBanner:!i&&!l&&(null==o?void 0:o.displayStatus)!=="active",isActiveSubscriber:!i&&!l&&(null==o?void 0:o.displayStatus)==="active",isEligible:(null==o?void 0:o.isEligible)||!1,isLoading:i,isError:l,refetch:c}}},387975:function(e,n,t){t.d(n,{a:function(){return v}});var r,a,o=t(827378),i=t(456552),l=t(671718),c=t(447178),u=t(699219);function s(e,n,t,r,a,o,i){try{var l=e[o](i),c=l.value}catch(e){t(e);return}l.done?n(c):Promise.resolve(c).then(r,a)}var d=(r=function(e,n){var t,r,a=arguments;return function(e,n){var t,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;
1function l(o){return function(l){return function(o){if(t)throw TypeError("Generator is already executing.");for(;i;)try{if(t=1,r&&(a=2&o[0]?r.return:o[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;switch(r=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,r=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===o[0]||2===o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(6===o[0]&&i.label<a[1]){i.label=a[1],a=o;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(o);break}a[2]&&i.ops.pop(),i.trys.pop();continue}o=n.call(e,i)}catch(e){o=[6,e],r=0}finally{t=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}(this,function(o){switch(o.label){case 0:return t=e.customerId,r=e.planId,[4,(a.length>2&&void 0!==a[2]?a[2]:l.Z)("/benefit-pass/v1/status",n,{method:"GET",query:{customer_id:t,plan_id:r},headers:{"Content-Type":"application/json"},fetchSpanAttributes:{"request.backend_service":"benefit-pass","request.backend_action":"get-status"}})];case 1:return[2,o.sent().json()]}})},a=function(){var e=this,n=arguments;return new Promise(function(t,a){var o=r.apply(e,n);function i(e){s(o,t,a,i,l,"next",e)}function l(e){s(o,t,a,i,l,"throw",e)}i(void 0)})},function(e,n){return a.apply(this,arguments)}),f=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=(0,c.Z)().fetch,r=e.customerId,a=e.planId,o=[u.Z["benefit-plus.get-status"],r,a];return(0,i.useQuery)(o,function(){return d({customerId:r,planId:a},o,t)},n)},p=t(200770),b=t(26730),y=function(e){r="pending"===e.subscription_status&&(null===(n=e.dunning_details)||void 0===n?void 0:n.failure_type)==="soft"?"payment_failed_soft":"pending"===e.subscription_status&&(null===(t=e.dunning_details)||void 0===t?void 0:t.failure_type)==="hard"?"payment_failed_hard":"active"===e.subscription_status&&null!=e.cancel_at?"cancelled":"active"===e.subscription_status?"active":"pending"===e.subscription_status?"active":"none";var n,t,r,a,o,i=e.cadence;return{displayStatus:r,cadence:"15_days_trial"===i?null!==(a=e.next_cadence_days)&&void 0!==a?a:null:null!=i?i:null,nextCadenceDays:null!==(o=e.next_cadence_days)&&void 0!==o?o:null,nextRenewalDate:e.next_renewal_at,cancelAt:e.cancel_at,canReactivateWithoutCharge:"active"===e.subscription_status&&null!=e.cancel_at,canReactivateWithCharge:"inactive"===e.subscription_status,dunningDetails:e.dunning_details?{declineType:e.dunning_details.failure_type,dunningCutoff:e.dunning_details.dunning_cutoff,amountDue:e.dunning_details.amount_due}:null,savings:e.savings?{lifetimeCents:e.savings.lifetime_cents,currentPeriodCents:e.savings.current_period_cents,last30DaysCents:e.savings.last_30_days_cents,last14DaysCents:e.savings.last_14_days_cents}:null,isEligible:e.is_eligible,createdAt:e.created_at}},v=function(e){var n=e.customerId,t=e.planId,r=(0,p.Z)()===b.Z.US,a=!!n&&!!t&&r,i=f({customerId:n,planId:t},{enabled:a,suspense:!1}),l=i.data,c=i.isLoading,u=i.isError,s=i.refetch;return{status:(0,o.useMemo)(function(){if(l)return y(l)},[l]),isLoading:c||!a,isError:u,refetch:s}}},760014:function(e,n,t){t.d(n,{Z:function(){return b}});var r=t(953137),a=t(486598),o=t(184151),i=t(492106),l=t(910195),c=t(463171),u=function(){var e=(0,r.u)({},{suspense:!1}).data;return null==e?void 0:e.items.every(function(e){var n=e.isActive,t=e.canceledAt;return!n||t})},s=function(){var e=(0,c.Z)("loyalty_program"),n=e.isReady,t=e.isEnabled,r=u();if(n&&void 0!==r)return t&&!r},d=function(){var e=(0,c.Z)("loyalty_program_v2"),n=e.isReady,t=e.isEnabled,r=u();if(n&&void 0!==r)return t&&!r};function f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}function p(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}
1)(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}var b=function(){var e,n,t,c,u,b,y,v,m,g,h,_,O,w,S,k,C,E,P,j=s(),x=d(),Z=!!j||!!x,R=(0,r.u)({},{suspense:!1,enabled:Z}).data,I=null==R?void 0:null===(e=R.items)||void 0===e?void 0:e.find(function(e){return e.isActive}),D=(null==I?void 0:I.product.sku)||"",A=!!(null==I?void 0:I.lastReactivationDate),B=(0,a.X)({sku:D},{suspense:!1,enabled:Z&&!!D}),U=(null==B?void 0:B.data)||null,N=null==U?void 0:U.program_type,M=(null==U?void 0:U.opt_in_status)===o.t.optedIn,L=(null==U?void 0:U.opt_in_status)===o.t.notOptedIn,T=(null==U?void 0:U.opt_in_status)===o.t.optInClosed,F=(0,i.Ub)({},{suspense:!1,enabled:Z&&M}),W=(null==F?void 0:F.data)||null,V=N===o.oj.milestoneBased,K=N===o.oj.pointBased,q=(null==W?void 0:W.program_type)===o.oj.milestoneBased,G=(null==W?void 0:W.program_type)===o.oj.pointBased,$={data:U,extra:p(f({},V?{isColdStart:!!(null==U?void 0:U.was_offset),isAlternate:(null==U?void 0:null===(n=U.milestone)||void 0===n?void 0:n.type)===l.ei.oneOffReward}:{isColdStart:!1,isAlternate:!1}),{isClosed:T,canOptIn:L}),isLoading:null!==(c=null==B?void 0:B.isLoading)&&void 0!==c&&c,isFetched:null!==(u=null==B?void 0:B.isFetched)&&void 0!==u&&u,isError:null!==(b=null==B?void 0:B.isError)&&void 0!==b&&b,isFetching:null!==(y=null==B?void 0:B.isFetching)&&void 0!==y&&y},X={data:W,extra:p(f({},(null==W?void 0:W.program_type)===o.oj.milestoneBased?{isColdStart:!!(null==W?void 0:W.was_offset),isAlternate:!!(null==W?void 0:null===(t=W.milestones)||void 0===t?void 0:t.some(function(e){var n;return(null===(n=e.data.rewards)||void 0===n?void 0:n.length)===0||null===e.data.rewards}))}:{isColdStart:!1,isAlternate:!1}),{isEnrolled:M}),isLoading:null!==(v=null==F?void 0:F.isLoading)&&void 0!==v&&v,isFetched:null!==(m=null==F?void 0:F.isFetched)&&void 0!==m&&m,isError:null!==(g=null==F?void 0:F.isError)&&void 0!==g&&g,isFetching:null!==(h=null==F?void 0:F.isFetching)&&void 0!==h&&h},H={data:null,extra:{isColdStart:!1,isEnrolled:!1,isAlternate:!1},isLoading:null!==(_=null==F?void 0:F.isLoading)&&void 0!==_&&_,isFetched:null!==(O=null==F?void 0:F.isFetched)&&void 0!==O&&O,isError:null!==(w=null==F?void 0:F.isError)&&void 0!==w&&w,isFetching:null!==(S=null==F?void 0:F.isFetching)&&void 0!==S&&S},z={data:null,extra:{isColdStart:!1,isClosed:T,isAlternate:!1,canOptIn:!1},isLoading:null!==(k=null==B?void 0:B.isLoading)&&void 0!==k&&k,isFetched:null!==(C=null==B?void 0:B.isFetched)&&void 0!==C&&C,isError:null!==(E=null==B?void 0:B.isError)&&void 0!==E&&E,isFetching:null!==(P=null==B?void 0:B.isFetching)&&void 0!==P&&P};return{isEnabled:j,isV2Enabled:x,isVisible:(L||M&&!F.isError)&&V,isV2Visible:(L||M&&!F.isError)&&K,payload:{enrollment:q?p(f({},X),{data:W}):H,optIn:V?p(f({},$),{data:U}):z},payloadV2:{enrollment:G?p(f({},X),{data:W}):H,optIn:p(f({},K?p(f({},$),{data:U}):z),{extra:p(f({},K?$.extra:z.extra),{isReactivatingCustomer:A})})},isLoading:B.isLoading||F.isLoading,isFetched:B.isFetched&&(!M||F.isFetched),isFetching:B.isFetching||F.isFetching}}},264800:function(e,n,t){t.r(n);var r=t(687800);function a(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}function o(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}t(827378),n.default=function(e){var n=e.title,t=e.titleId,i=function(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}(e,["title","titleId"]);return(0,r.BX)("svg",o(a(o(a({width:"1.5rem",height:"1.5rem",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:n?"img":"graphics-symbol",color:"inherit","aria-hidden":!n},!n&&{focusable:!1}),{"aria-labelledby":t}),i),{children:[n?(0,r.tZ)("title",{id:t,children:n}):null,(0,r.tZ)("path",{d:"M9.973 11.405a.918.918 0 1 0 1.3-1.3.918.918 0 0 0-1.3 1.3ZM9.973 16.6a.918.918 0 1 0 1.3-1.299.918.918 0 0 0-1.3 1.298ZM13.87 14.041H7.376v-1.377h6.494v1.377Z",fill:"currentColor"}),(0,r.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.432 3.27a.918.918 0 0 1 1.299 1.298l-1.097 1.098.815 5.471-9.85 9.85L3 13.39l9.85-9.85 5.495.818 1.087-1.087Zm-3.247 3.247.584-.584-3.29-.49-7.946 7.946 5.066 5.066 7.946-7.946-.487-3.267-.574.573a.918.918 0 0 1-1.299-1.298Z",fill:"currentColor"})]}))}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.