PageSourceSearch

https://www.hellofresh.de/_next/static/chunks/94414-22a89f4328c81b9f.js

js hellofresh.de collected 2026-09-25 23:37:10 UTC 49,946 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[94414,52899],{730383:function(t,e,n){n.d(e,{Bq:function(){return r}});var r=function(t,e){var n,r,i,o,a,l,c={handle:t.family,isActive:t.active},u=null!==(i=null==e?void 0:e.price)&&void 0!==i?i:0,s=null!==(o=null==e?void 0:e.specialFee)&&void 0!==o?o:0;return{id:t.id,country:t.country,family:c,specs:{meals:Number(t.specs.meals),size:Number(t.specs.size),recurrency:t.specs.recurrency},price:u,specialFee:s,isActive:t.active,active:t.active,productName:t.name,handle:t.handle,swappableMeals:null!==(a=null===(n=t.swappable_meals)||void 0===n?void 0:n.split(" "))&&void 0!==a?a:[],mealSwap:t.meal_swap,mealSwapDefaultChoice:null!==(l=null===(r=t.meal_swap_default_choice)||void 0===r?void 0:r.split(" "))&&void 0!==l?l:[],sort:t.sort,presetIsEnabled:t.is_preset_enabled,createdAt:t.created_at,updatedAt:t.updated_at,isPublic:t.public,isSubscribable:t.is_subscribable,is_subscribable:t.is_subscribable}}},454661:function(t,e,n){n.d(e,{X:function(){return b}});var r,i,o=n(671718),a=n(26124),l=n(140224),c=n(699219),u=n(704100),s=n(42208);function d(t,e,n,r,i,o,a){try{var l=t[o](a),c=l.value}catch(t){n(t);return}l.done?e(c):Promise.resolve(c).then(r,i)}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){var r;r=n[e],e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r})}return t}var p=(r=function(t,e){var n,r,i,a=arguments;return function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}(this,function(l){switch(l.label){case 0:return n=t.handle,r=t.systemCountry,i=t.parentSpan,[4,(a.length>2&&void 0!==a[2]?a[2]:o.Z)("/v2/products/".concat(n),e,{query:{country:r},parentSpan:i},{skipGetAuth:!1},{rewritePathForInternalCommunications:function(t,e){if(e.internalRewrites)return"".concat(e.internalRewrites.productsService,"/v2/products/").concat(n)}})];case 1:return[2,l.sent().json()]}})},i=function(){var t=this,e=arguments;return new Promise(function(n,i){var o=r.apply(t,e);function a(t){d(o,n,i,a,l,"next",t)}function l(t){d(o,n,i,a,l,"throw",t)}a(void 0)})},function(t,e){return i.apply(this,arguments)}),b=function(t,e){var n,r,i=f({},t,(0,l.O)()),o=[c.Z["products.v2.productInfo"],i],d=(0,u.Z)(s.kL);return(0,a.Z)(o,function(t){return p(i,o,t)},(n=f({},e),r=r={onSuccess:function(t){var n;d(t,o),null==e||null===(n=e.onSuccess)||void 0===n||n.call(e,t)}},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n.push.apply(n,r)}return n})(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))}),n))}},218266:function(t,e,n){n.d(e,{Q:function(){return l}});var r=n(827378),i=n(60074),o=n(851750),a=n(52130),l=function(){var t=(0,a.L3)().trackJanusEvent;return{trackPlanSelectionNavigationLinkClick:(0,r.useCallback)(function(){try{t(o._.janusEvent())}catch(t){(0,i.Tb)(t,{tags:{event:"PlanSelection_Select_Navigation_Link_Click",component:"usePlanSelectionNavigationLinkSnowplowEvent"}})}},[t])}}},211666:function(t,e,n){n.d(e,{K:function(){return l}});var r=n(827378),i=n(60074),o=n(476468),a=n(52130),l=function(){var t=(0,a.L3)().trackJanusEvent;return{trackRegistrationNavigationLinkClick:(0,r.useCallback)(function(){try{t(o.t.janusEvent())}catch(t){(0,i.Tb)(t,{tags:{event:"Registration_Select_Navigation_Link_Click",component:"useRegistrationNavigationLinkSnowplowEvent"}})}},[t])}}},508414:function(t,e,n){n.d(e,{u:function(){return u}});var r=n(581340),i=n(200770),o=n(529899),a=n(741541),l=n(46864),c=n(468891),u=function(){var t=(0,r.t)(),e=(0,i.Z)(),n=(0,l.G)()[e],u=(0,a.ki)(n),s=(0,o.bk)(t.pathname,e),d=t.query.locale;return{shouldUnify:s,buildHref:function(t){var e,n,r=(0,c.parseUrl)(t),i=r.url,a=r.query,l=a.locale;
1return d&&d!==u.locale&&!l?"".concat(i,"?").concat((0,c.stringify)((e=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){var r;r=n[e],e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r})}return t}({},a),n=n={locale:d},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):(function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n.push.apply(n,r)}return n})(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e))):s&&l===u.locale?(0,o.EK)(t):t}}}},623537:function(t,e,n){var r=n(687800),i=n(827378),o=n(768587),a=n(887824),l=n(318066),c=n(581340),u=n(211666),s=n(218266),d=n(638617),f=n(799969);function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}e.Z=function(t){var e,n=t.id,b=t.isMobile,g=t.disableLink,h=(0,f.xY)(),v=(0,d.At)().logo,y=(0,a.Z)().push,m=(0,c.t)(),k=(0,u.K)().trackRegistrationNavigationLinkClick,w=(0,s.Q)().trackPlanSelectionNavigationLinkClick,O=function(t){if(Array.isArray(t))return t}(e=i.useState(""))||function(t,e){var n,r,i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(t);!(a=(n=i.next()).done)&&(o.push(n.value),2!==o.length);a=!0);}catch(t){l=!0,r=t}finally{try{a||null==i.return||i.return()}finally{if(l)throw r}}return o}}(e,2)||function(t,e){if(t){if("string"==typeof t)return p(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(t,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.")}(),_=O[0],x=O[1],Z=v.logoAlt;return(i.useEffect(function(){var t=window.location.search;x((h?"/".concat(h):"")+(t?"/".concat(t):"/"))},[]),g)?(0,r.tZ)(o.xu,{display:"flex",height:30,px:h&&b?"global.lg-2":"zero",children:(0,r.tZ)(l.ZP,{height:b?v.mobile.height:v.desktop.height,width:b?v.mobile.width:v.desktop.width,src:b?v.mobile.src:v.desktop.src,quality:100,priority:!0,alt:Z,"data-test-id":b?"mobile-logo":"desktop-logo",id:n})}):(0,r.tZ)(o.rU,{href:_,"data-test-id":"logo","aria-label":Z,prefetch:!1,onClick:function(){y({event:"gaEventTrigger",event_name:"Signup_ClickHFLogo",gaEventCategory:"funnel",gaEventAction:"clickHFLogo",gaEventLabel:""});var t=m.asPath.split("?")[0];(t.includes("/register")||t.includes("/signup"))&&k(),t.includes("/plans")&&w()},children:(0,r.tZ)(o.xu,{display:"flex",height:30,px:h&&b?"global.lg-2":"zero",children:(0,r.tZ)(l.ZP,{height:b?v.mobile.height:v.desktop.height,width:b?v.mobile.width:v.desktop.width,src:b?v.mobile.src:v.desktop.src,quality:100,priority:!0,alt:"","data-test-id":b?"mobile-logo":"desktop-logo",id:n})})})}},166428:function(t,e,n){var r=n(827378),i=n(581340),o=n(567921),a=n.n(o),l=n(435172),c=n(730383),u=n(454661),s=n(43011),d=n(285087);function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n,r,i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(t);!(a=(n=i.next()).done)&&(o.push(n.value),!e||o.length!==e);a=!0);}catch(t){l=!0,r=t}finally{try{a||null==i.return||i.return()}finally{if(l)throw r}}return o}}(t,e)||function(t,e){if(t){if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(t,e)}}
1(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}e.Z=function(t){var e,n,o,f,b,g=p((0,r.useState)(!1),2),h=g[0],v=g[1],y="1"===a().get("hf_ssr_e_gift_card_purchase"),m="1"===a().get("hf_ssr_e_gift_card_checkout"),k=p((0,r.useState)(!1),2),w=k[0],O=k[1],_=p((0,r.useState)(!1),2),x=_[0],Z=_[1],S=p((0,r.useState)(!1),2),j=S[0],P=S[1],C=p((0,r.useState)(!1),2),L=C[0],I=C[1],E=p((0,r.useState)(!1),2),A=E[0],D=E[1],T=p((0,r.useState)(!1),2),z=T[0],N=T[1],F=!!(null===(e=a().get("hf_ssr_single_page_checkout"))||void 0===e?void 0:e.toLowerCase().startsWith("variation")),M=a().get("hf_cart_id"),U=(0,i.t)(),B=U.pathname,X=U.query,R=(0,d.l)(),H=(0,s.Z)(),J=(0,l.P)({id:M},{enabled:!!M,suspense:!1}).data,W=J&&J.items.length>0,q=null==J?void 0:null===(o=J.items)||void 0===o?void 0:null===(n=o.find(function(t){return t.sku}))||void 0===n?void 0:n.sku,Y=(0,u.X)({handle:q},{enabled:!!q,suspense:!1}).data,V=Y?(0,c.Bq)(Y):null,G=null==V?void 0:null===(b=V.family)||void 0===b?void 0:null===(f=b.tags)||void 0===f?void 0:f.includes("is_seasonal");return(0,r.useEffect)(function(){v(!!R.getItem("payment_page_visited"))},[B,X,R]),(0,r.useEffect)(function(){O(!!R.getItem("address_step_completed"))},[B,t,X,R]),(0,r.useEffect)(function(){Z(!!R.getItem("address_form_step_completed"))},[B,t,X,R]),(0,r.useEffect)(function(){P(!!R.getItem("address_delivery_window_step_completed"))},[B,t,X,R]),(0,r.useEffect)(function(){I(!!R.getItem("register_page_visited"))},[B,t,X,R]),(0,r.useEffect)(function(){D(!!R.getItem("plans_page_visited"))},[B,t,X,R]),(0,r.useEffect)(function(){N(!!R.getItem("zip_code_step_visited"))},[B,t,X,R]),{seasonal_only:!!G,non_seasonal:!G,is_logged:H,has_cart_id:!!W,payment_page_visited:h,has_gift_card_purchase_cookie
1:y,has_gift_card_redeem_cookie:m,address_step_completed:w,address_form_step_completed:x,address_delivery_window_step_completed:j,single_page_checkout:F,not_single_page_checkout:!F,register_page_visited:L,plans_page_visited:A,zip_code_step_visited:z}}},694414:function(t,e,n){n.d(e,{Z:function(){return eD}});var r,i,o=n(687800),a=n(827378),l=n(768587),c=n(313954),u=n(184883),s=n(602307),d=n(623537),f=n(169821),p=n(377380),b=n(837324),g=n(581340),h=n(887824),v=n(567921),y=n.n(v),m=n(435172),k=n(783045),w=function(t){var e=t["data-test-id"],n=function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,["data-test-id"]);return(0,k.zv)()?null:(0,o.tZ)(l.xu,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){var r;r=n[e],e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r})}return t}({as:"span",display:"inline-block",backgroundColor:"shared-alias.negative.foreground.default",borderWidth:0,borderStyle:"solid",borderColor:"global.white",borderRadius:"border-radius-circle",height:"10px",position:"absolute",width:"10px",transform:"translate(-6px, 0px)","data-test-id":e},n))},O=n(638617),_=n(986274),x=n(166428),Z=n(799969),S=n(860853),j=n(248998),P=function(){var t=(0,h.Z)().push,e=(0,Z.xY)(),n=(0,g.t)(),r=(0,O.At)(),i=r.cartRedirectionUrl,c=r.checkout,u=null==c?void 0:c.rolloutNavigationLoggedEntry,s=(0,a.useMemo)(function(){return y().get("hf_cart_id")},[]),d=(0,m.P)({id:String(s)},{enabled:!!s&&u}).data,f=(null==d?void 0:d.items)&&d.items.length>0,p=(0,a.useCallback)(function(){t({event:"gaEventTrigger",event_name:"PublicHeader_CartClick",gaEventCategory:"navigation",gaEventAction:"publicHeaderCartClick",gaEventLabel:"numCartItems:".concat(f?d.items.length:0)})},[t,f,d]),b=(0,a.useCallback)(function(t){" "===t.key&&(t.preventDefault(),n.push(i),p())},[p,i,n]),v=(0,x.Z)().seasonal_only,k=(0,j.Z)().showProgressBar;return s&&f&&u&&!v&&e!==S.M.factorform&&!k?(0,o.BX)(o.HY,{children:[(0,o.tZ)(l.rU,{"data-test-id":"public-cart-notification-icon","aria-label":"View Cart",href:i,onClick:p,onKeyDown:b,children:(0,o.tZ)(l.xu,{display:"flex",alignItems:"center",height:"100%",pseudo:{":hover":{backgroundColor:"primary.200"}},cursor:"pointer",paddingX:["xs","sm-2"],paddingY:["zero","sm-2"],children:(0,o.BX)(l.xu,{display:"flex",alignItems:"center",position:"relative",justifyContent:"flex-end",width:"100%",paddingX:["sm-1","zero"],children:[(0,o.tZ)(l.JO,{icon:(0,o.tZ)(_.default,{})}),(0,o.tZ)(l.xu,{position:"absolute",top:"zero",right:["10px","zero"],children:(0,o.tZ)(w,{"data-test-id":"cart-icon"})})]})})}),(0,o.tZ)(l.xu,{display:["none","block"],width:"1px",height:"40px",borderRightWidth:"thin",borderRightStyle:"solid",borderRightColor:"neutral.400"})]}):null},C=n(138354),L=n.n(C),I=n(432761),E=n(268481),A=n(140224),D=(0,l.q)(l.xu),T=function(t){var e=t.handleCloseMenu,n=t.style;return(0,o.tZ)(D,{"aria-hidden":"true","data-test-id":"public-header-drawer-overlay",style:n,backgroundColor:"neutral.800",position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:4,height:"100%",width:"100%",overflowX:"hidden",cursor:"pointer",onClick:e})},z=n(894326),N=n(480631),F=n.n(N),M=n(680974),U=n.n(M),B=n(468891),X=function(t,e){if(!e)return"";var n=(0,B.parseUrl)(e),r=(0,B.parseUrl)(t).query,i=(0,B.stringify)(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){var r;r=n[e],e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r})}return t}({},n.query,r));return decodeURIComponent(i?"".concat(n.url,"?").concat(i):n.url)},R=function(t){return t?t.toString().split("?")[0].replace(/\//g,"").replace(/[0-9]/g,""):""},H=function(t,e){return!!t&&R(t)==R(e)&&"/"!==e&&!(null==e?void 0:e.startsWith("/?"))};function J(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var W=function(t){return!!t.tagFilterList[t.tagName]},q=function(t){var e,n=t.tags,r=t.tagFilterList,i=(function(t){if(Array.isArray(t))return t}(e=r[t.tagName])||function(t,e){var n,r,i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(t);!(a=(n=i.next()).done)&&(o.push(n.value),1!==o.length);a=!0);}catch(t){l=!0,r=t}finally{try{a||null==i.return||i.return()}finally{if(l)throw r}}return o}}(e,1)||function(t,e){if(t){if("string"==typeof t)return J(t,1);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J(t,1)}}
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];return!!Object.keys(r).filter(function(t){return n.indexOf(t)>=0&&0===t.indexOf(i)}).some(function(t){var e=r[t];return Array.isArray(e)?e[1]:W({tagName:t,tagFilterList:r})})},Y=function(t){var e=t.tags,n=t.tagFilterList;return e.every(function(t){return!(t in n)||(Array.isArray(n[t])?q({tags:e,tagFilterList:n,tagName:t}):W({tagName:t,tagFilterList:n}))})},V=/\{\{([\s\S]+?)\}\}/g,G=function(t){var e=t.parameterList,n=t.text;return F()(n,{interpolate:V})(e)},$=function(t){var e=t.availableLocales,n=t.currentLocale,r=t.text;return e.length<2?r:X("?locale=".concat(n),r)},Q=function(t){var e=t.parameterList,n=t.availableLocales,r=t.currentLocale;return U()(function(t){return G({text:t,parameterList:e})},function(t){return $({text:t,availableLocales:n,currentLocale:r})})},K=function(t){var e=t.optimizely,n=t.link.optimizelyFeatureToggle;return!e||!n||e.isFeatureEnabled(n)},tt=function(t){var e=t.optimizely,n=t.link,r=n.optimizelyExperimentId;if(!e&&r)return!1;if(!r)return!0;var i=e.activate(r);return!!i&&(n.showForTheseVariations||"").split(",").includes(i)},te=function(t){var e=t.link,n=t.tagFilterList,r=t.optimizely,i=!e.tags||Y({tags:e.tags,tagFilterList:n});return r?i&&K({link:e,optimizely:r})&&tt({link:e,optimizely:r}):i&&!e.optimizelyFeatureToggle&&!e.optimizelyExperimentId},tn=function(){var t=window.innerWidth;return{resolution_mobile:["resolution_",t<768],resolution_tablet:["resolution_",t<1024],resolution_desktop:["resolution_",t>=1024]}},tr=function(t){var e=t.links,n=t.parameterList,r=void 0===n?{}:n,i=t.tagFilterList,o=void 0===i?{}:i,a=t.availableLocales,l=t.currentLocale,c=t.optimizely;return(void 0===e?[]:e).filter(function(t){return te({link:t,tagFilterList:o,optimizely:c})}).map(function(t){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){var r;r=n[e],e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r})}return t}({},t,t.subLinks&&{subLinks:tr({links:t.subLinks,parameterList:r,tagFilterList:o,availableLocales:a,currentLocale:l,optimizely:c})},t.target&&{target:Q({parameterList:r,availableLocales:a,currentLocale:l})(t.target)},t.name&&{name:G({text:t.name,parameterList:r})})})},ti=n(527157),to=n(543790);function ta(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function tl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function tc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){tl(t,e,n[e])})}return t}function tu(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):(function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n.push.apply(n,r)}return n}
1)(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}var ts=function(t,e){var n,r=(0,p.yY)(),i=(0,O.At)(),o=(0,z.h)(),l=(0,A.O)().locale,c=(0,ti.Z)(),u=(0,a.useMemo)(function(){return null==r?void 0:r.segment.find(function(e){return e.segment===t&&(!e.brand&&c===to.Z.hellofresh||!!e.brand&&e.brand===c)})},[t,r,c]),s=function(t){if(Array.isArray(t))return t}(n=(0,a.useState)({not_logged_in:!0,logged_in:!1,tablet_resolution_with_signup:!0}))||function(t,e){var n,r,i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(t);!(a=(n=i.next()).done)&&(o.push(n.value),2!==o.length);a=!0);}catch(t){l=!0,r=t}finally{try{a||null==i.return||i.return()}finally{if(l)throw r}}return o}}(n,2)||function(t,e){if(t){if("string"==typeof t)return ta(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ta(t,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.")}(),d=s[0],f=s[1],b=(0,a.useCallback)(function(){return tn()},[]);(0,a.useEffect)(function(){f(function(t){return tc({},t,b())})},[b]);var g=(0,a.useMemo)(function(){if(!u||!o)return[];if(i.subBrandLinks){var n,r;return t.includes("extra")?(null===(n=i.subBrandLinks.extraNavigationLinks)||void 0===n?void 0:n.filter(function(t){return Y({tags:t.tags,tagFilterList:d})}))||[]:(null===(r=i.subBrandLinks.navigationLinks)||void 0===r?void 0:r.filter(function(t){return Y({tags:t.tags,tagFilterList:d})}))||[]}return tr({links:u.links,tagFilterList:d,availableLocales:o,currentLocale:l,optimizely:e})},[d,e,o,u,l,i,t]);return u&&tu(tc({},u),{links:g})},td=function(){var t=(0,p.yY)(),e=(0,a.useMemo)(function(){var e;return null==t?void 0:null===(e=t.label)||void 0===e?void 0:e.reduce(function(t,e){return tu(tc({},t),tl({},e.key,e))},{})},[t]);return function(t){return e&&e[t]}},tf=function(){var t=td(),e=(0,O.At)().whitelabel,n=(0,z.h)(),r=t("login"),i=!e||!!(null==e?void 0:e.isTranslationToggleEnabled),o=!!n&&n.length>=3;return{loginTranslation:(null==r?void 0:r.value)||"",renderLanguageToggle:!!n&&n.length>1&&i,availableLocales:n||[],isTranslationDropdownEnabled:o}},tp=n(718583);function tb(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function tg(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var th="menuNotifications",tv=function(t){var e,n=function(t){if(Array.isArray(t))return t}(e=(0,a.useState)(!1))||function(t,e){var n,r,i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(t);!(a=(n=i.next()).done)&&(o.push(n.value),2!==o.length);a=!0);}catch(t){l=!0,r=t}finally{try{a||null==i.return||i.return()}finally{if(l)throw r}}return o}}(e,2)||function(t,e){if(t){if("string"==typeof t)return tb(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tb(t,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=n[0],o=n[1],l=function(t){return!t.hasNotification||i&&!!i[t.id]},c=null==t?void 0:t.map(function(t){return ts(t)});return(0,a.useEffect)(function(){c&&o(c.some(function(t){var e;return null==t?void 0:null===(e=t.links)||void 0===e?void 0:e.some(function(t){return(null==t?void 0:t.hasNotification)&&!l(t)})}))},[c,i]),(0,a.useEffect)(function(){i||(i=JSON.parse(tp.ZP.getItem(th)||"{}"))},[]),{isLinkAlreadyVisited:l,setLinkAsVisited:function(t){var e,n;t.hasNotification&&(e=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){tg(t,e,n[e])})}return t}({},i),n=null!=(n=tg({},t.id,!0))?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):(function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n.push.apply(n,r)}return n}
1)(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),i=e,tp.ZP.setItem(th,JSON.stringify(i)))},hasNotificationInSegments:r}},ty=n(867610),tm=n(660061),tk=n(296865),tw=n(856083),tO=n(306228),t_=n(465800),tx=n(8699),tZ=n(275946),tS=n(152899),tj=n(310333),tP=n(211337),tC=n(369414),tL=n(707905),tI=n(563359),tE=n(513719),tA=n(750866),tD=n(845818),tT=n(659707),tz=n(848699),tN=n(299446),tF=n(125846),tM={"my-deliveries":(0,o.tZ)(tZ.default,{}),"settings-v1":(0,o.tZ)(tk.default,{}),"favorite-recipes":(0,o.tZ)(tx.default,{}),"cookbook-menu":(0,o.tZ)(tj.default,{}),"social-bridge-cookbook":(0,o.tZ)(tz.default,{}),recycling:(0,o.tZ)(ty.default,{}),"our-plans":(0,o.tZ)(tj.default,{}),"how-it-works":(0,o.tZ)(ty.default,{}),"our-menus":(0,o.tZ)(tS.default,{}),"log-out":(0,o.tZ)(tO.default,{}),"invite-friends":(0,o.tZ)(t_.default,{}),"getting-started":(0,o.tZ)(tm.default,{}),"fresh-achievements":(0,o.tZ)(tw.default,{}),"our-products":(0,o.tZ)(tj.default,{}),dashboard:(0,o.tZ)(tP.default,{}),"pet-profile":(0,o.tZ)(tC.default,{}),sourcing:(0,o.tZ)(tL.default,{}),"our-plans-box-variation":(0,o.tZ)(tI.default,{}),faq:(0,o.tZ)(tE.default,{}),"contact-us-goc-variation":(0,o.tZ)(tA.default,{}),"gift-cards":(0,o.tZ)(tD.default,{}),"why-goodchop":(0,o.tZ)(_.default,{}),"contact-us":(0,o.tZ)(tT.default,{}),"business-gifts":(0,o.tZ)(tN.default,{}),"personal-gifts":(0,o.tZ)(tF.default,{})},tU=n(508414),tB=n(929037),tX=n(594719),tR=n(177496),tH=function(t){var e=t.onClick,n=t.links,r=t.asPath,i=t.viewport,c=tv().isLinkAlreadyVisited,u=(0,Z.xY)(),s=(0,tU.u)().buildHref,d=(0,tX.m)(),f=d.isReady,p=d.shouldRedirect,b=f&&p,g=(0,tR.Q)({utmContent:"header_navigation"});return(0,o.tZ)(o.HY,{children:null==n?void 0:n.map(function(t){if(u===S.M.factorform&&t.subLinks&&t.subLinks.length>0){var d,h,v=t.subLinks.length;return(0,o.BX)(a.Fragment,{children:[t.subLinks.map(function(t,n){return(0,o.tZ)(l.xu,{"data-test-id":"".concat(t.testId,"-").concat(i),children:(0,o.BX)(l.i9.Item,{id:t.id,href:X(r,t.target),icon:tM[t.icon],selected:H(t.target,r),onClick:function(){e(t,X(r,t.target))},title:t.name,position:n+1,total:v,children:[t.name,!c(t)&&(0,o.tZ)(l.xu,{transform:"translate(7px,15px)",children:(0,o.tZ)(w,{"data-test-id":"nav-element-notification"})})]})},t.id)}),(0,o.tZ)(l.xu,{borderTopWidth:1,borderTopStyle:"solid",borderTopColor:"neutral.300"})]},t.id)}var y=X(r,t.target),m=H(t.target,r),k=(null==n?void 0:n.length)||0,O=(null==n?void 0:n.findIndex(function(e){return e.id===t.id}))||0,_=p&&f&&(null===(d=t.target)||void 0===d?void 0:d.startsWith("/factorform")),x=_?g:s(y);return(0,o.BX)(l.i9.Item,{"data-test-id":"".concat(t.testId,"-").concat(i),id:t.id,href:x,icon:tM[t.icon],selected:m,onClick:function(n){_&&(n.preventDefault(),window.open(g,"_blank")),e(t,y)},title:t.name,position:O+1,total:k,children:[t.name,b&&(null===(h=t.target)||void 0===h?void 0:h.startsWith("/factorform"))&&(0,o.tZ)(l.xu,{as:"span",display:"inline-flex",alignItems:"center",ml:"xs",children:(0,o.tZ)(tB.default,{width:"14px",height:"14px",color:"inherit"})}),!c(t)&&(0,o.tZ)(l.xu,{transform:"translate(7px,15px)",children:(0,o.tZ)(w,{"data-test-id":"nav-element-notification"})})]},t.id)})})},tJ=n(579894),tW=n.n(tJ),tq=function(t,e){var n=tY(t);n.push(e),tG(t,n)},tY=function(t){var e=[];try{var n=tV(t)||"";e=n?JSON.parse(n):[]}catch(t){console.log(t)}return e},tV=function(t){return tp.ZP.getItem(t)},tG=function(t,e){return t$(t,JSON.stringify(e))},t$=function(t,e){return tp.ZP.setItem(t,e)},tQ=function(t,e){tq("DelayedDataLayerEvents",{event:"gaEventTrigger",gaEventCategory:"navigation",gaEventAction:t,gaEventLabel:e})},tK=function(){var t=(0,h.Z)().push;return function(e,n){t({event:"gaEventTrigger",event_name:"Header_Navigation",gaEventCategory:"Header_Navigation",gaEventAction:"click",gaEventLabel:"".concat(e).concat(null!=n?n?"|shopify":"|internal":""),tribe:"rte-expansion",squad:"rte-vms"})}},t0=function(){var t=(0,h.Z)().push;return function(){t({event:"gaEventTrigger",event_name:"Header_Navigation",gaEventCategory:"Header_Navigation",gaEventAction:"openMenu",gaEventLabel:"hamburgerClick",user_action:"click"})}},t1=function(t){var e=t.asPath,n=t.loginTranslation,r=void 0===n?"":n,i=t.handleCloseMenu,a=(0,Z.xY)()===S.M.factorform?"/factorform/login":"/login";return r?(0,o.tZ)(tW(),{passHref:!0,href:X(e,a),legacyBehavior:!0,children:(0,o.tZ)(l.zx.Secondary,{"data-test-id":"menu-item-login-button",as:"a",onClick:function(){tQ("navbarClick",a),i&&i()},size:"sm",textDecorationLine:"none",children:r})}):null},t2=n(518448),t8=n(882482);function t6(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var t4=(0,l.q)(l.xu),t7=function(t){var e,n,r=t.showDrawer,i=t.setShowDrawer,c=ts("mobile-navigation-public"),u=null==c?void 0:c.links,s=ts("extra-navigation"),d=null==s?void 0:s.links,f=tf(),p=f.loginTranslation,b=f.availableLocales,h=f.renderLanguageToggle,v=f.isTranslationDropdownEnabled,y=(0,O.At)(),m=(0,A.O)().locale,k=(0,g.t)().asPath;(0,a.useEffect)(function(){r&&(document.body.style.overflow="hidden"),r||(document.body.style.overflow="auto")},[r]);var w=(0,E.Sj)(),_=function(t){if(Array.isArray(t))return t}(e=(0,a.useState)(!1))||function(t,e){var n,r,i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(t);!(a=(n=i.next()).done)&&(o.push(n.value),2!==o.length);a=!0);}catch(t){l=!0,r=t}finally{try{a||null==i.return||i.return()}finally{if(l)throw r}}return o}}(e,2)||function(t,e){if(t){if("string"==typeof t)return t6(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t6(t,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.")}(),x=_[0],Z=_[1];(0,a.useEffect)(function(){var t,e=function(){Z(!!window.visualViewport&&window.visualViewport.scale>1.25)};return e(),null===(t=window.visualViewport)||void 0===t||t.addEventListener("resize",e),function(){var t;null===(t=window.visualViewport)||void 0===t||t.removeEventListener("resize",e)}},[]);var S="mobile"===w||x;(0,a.useEffect)(function(){return window.addEventListener("keydown",j),function(){return window.removeEventListener("keydown",j)}},[]);var j=function(t){"keydown"===t.type&&"Escape"===t.key&&i(!1)},P=function(){i(!1)},C=tv().setLinkAsVisited,D=tK(),z=(0,tX.m)().shouldRedirect,N=(0,a.useCallback)(function(t,e){C(t),P(),tQ("navbarClick","".concat(t.name,"|").concat(e||t.target)),D(t.name,z)},[C,D,z]),F=L()(d,function(t){return t.groupIndex}),M=td(),U=(null==y?void 0:y.showGreeting)?null===(n=M("welcome-greeting"))||void 0===n?void 0:n.value:"",B=(0,l.Yz)(r,l.uT.slideRight),R=(0,l.Yz)(r,{from:{opacity:0}
1,enter:{opacity:.4},leave:{opacity:0},config:{duration:200}});return(0,o.BX)(o.HY,{children:[B(function(t,e){return(0,o.BX)(t4,{"data-test-id":"public-header-drawer-container",role:"dialog","aria-modal":"true","aria-label":"Navigation menu","aria-keyshortcuts":"Escape",position:"fixed",top:"0",left:"0",height:"100vh",backgroundColor:"alias.elevation.base",overflowX:"hidden",width:"250px",zIndex:5,transform:"translate3d(0%, 0, 0)",style:t,display:e?"block":"none",children:[S&&(0,o.tZ)(l.xu,{as:"button","data-test-id":"public-header-menu-close",onClick:P,"aria-label":"Close menu",position:"absolute",top:"xs",right:"xs",zIndex:1,width:"44px",height:"44px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"transparent",borderWidth:"0",cursor:"pointer",color:"neutral.600",children:(0,o.tZ)(l.JO,{icon:(0,o.tZ)(I.Z,{})})}),(0,o.tZ)(l.xu,{marginTop:S?"md-3":"sm-1",children:(0,o.tZ)(t8._,{label:U})}),(0,o.tZ)(l.xu,{padding:"sm-1",children:(0,o.tZ)(t1,{asPath:k,loginTranslation:p,handleCloseMenu:P})}),(0,o.tZ)(l.i9.Stacked,{children:(0,o.tZ)(tH,{links:u,asPath:k,onClick:N,viewport:"mobile"})}),(0,o.tZ)(l.xu,{children:Object.keys(F).map(function(t){var e=F[t];return(0,o.tZ)(l.xu,{borderTopColor:"neutral.300",borderTopWidth:1,borderTopStyle:"solid",pseudo:{":first-of-type":{borderTopWidth:0}},children:(0,o.tZ)(l.i9.Stacked,{children:(0,o.tZ)(tH,{links:e,asPath:k,onClick:N,viewport:"mobile"})})},t)})}),(0,o.tZ)(l.xu,{display:["block","block","flex"],justifyContent:"center",padding:"sm-1",width:"250px",left:"inherit",paddingBottom:"md-1",children:(0,o.tZ)(t2.Z,{renderLanguageToggle:h,availableLocales:b,asPath:k,currentLocale:m,dataTestId:"public-header-menu-item-translation-button-mobile",mergeQueryParams:X,sendNavigationEvent:tQ,isTranslationDropdownEnabled:v})})]})}),R(function(t,e){return e&&(0,o.tZ)(T,{handleCloseMenu:P,style:t})})]})},t3=n(882493),t5=n(186e3),t9=n(628392);function et(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var ee=function(){var t,e=function(t){if(Array.isArray(t))return t}(t=(0,a.useState)(!1))||function(t,e){var n,r,i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(t);!(a=(n=i.next()).done)&&(o.push(n.value),2!==o.length);a=!0);}catch(t){l=!0,r=t}finally{try{a||null==i.return||i.return()}finally{if(l)throw r}}return o}}(t,2)||function(t,e){if(t){if("string"==typeof t)return et(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return et(t,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.")}(),n=e[0],r=e[1],i=(0,p.yY)(),c=tv(["extra-navigation","mobile-navigation-public"]).hasNotificationInSegments,u=t0(),s=!!((null==i?void 0:i.segment.length)&&(null==i?void 0:i.label.length)),g=(0,t5.q)();t3.m.WhiteLabelMealKits&&g&&(s=!1);var h=(0,Z.xY)();return(0,o.BX)(o.HY,{children:[(0,o.BX)(l.xu,{id:"header-navigation-mobile","data-test-id":"public-header-navigation-mobile",role:"navigation",minHeight:"60px",backgroundColor:"alias.elevation.base",display:"flex",flexDirection:"row",justifyContent:h?"flex-start":"center",alignItems:"center",boxShadow:"alias.box.md",children:[s&&(0,o.tZ)(o.HY,{children:(0,o.tZ)(l.xu,{position:"absolute",left:"zero",top:"zero",bottom:"zero",height:"60px",children:(0,o.tZ)(l.xu,{as:"button","data-test-id":"public-header-menu-hamburger","aria-label":"toggle side menu",onClick:function(t){t&&t.preventDefault(),r(!0),u()},backgroundColor:"transparent",borderWidth:"0",display:"flex",cursor:"pointer",alignItems:"center",height:"100%",pseudo:{":hover":{backgroundColor:"primary.200"}},paddingX:"xs",children:(0,o.BX)(l.xu,{paddingX:"xs",position:"relative",children:[(0,o.tZ)(l.JO,{icon:(0,o.tZ)(b.default,{}),color:"neutral.800"}),c&&(0,o.tZ)(l.xu,{position:"absolute",top:"zero",right:["10px","zero"],children:(0,o.tZ)(w,{"data-test-id":"nav-element-notification"})})]})})})}),(0,o.tZ)(d.Z,{id:"public-header-logo",isMobile:!0}),(0,o.tZ)(f.Z,{suspense:!0,children:(0,o.BX)(l.xu,{"data-testid":"sub-brand-cart-public-mobile-header",display:"flex",position:"absolute",right:"zero",children:[(0,o.tZ)(t9.Z,{}),(0,o.tZ)(P,{})]})})]}),s&&(0,o.tZ)(t7,{showDrawer:n,setShowDrawer:r})]})},en=n(52566),er=n(497249),ei=function(t){var e=t.children,n=t.isActive,r=t.href,i=t.title,a=t.icon,c=t.onClick,u=t.id,s=t.position,d=t.total;return(0,o.tZ)(l.i9.Item,{id:u,href:r,onClick:c,selected:n,icon:a,title:i,position:s,total:d,children:e})}
1,eo=function(t){var e,n=t.id,r=t.testId,i=t.links,a=t.name,c=t.onClick,u=t.position,s=t.total,d=(0,g.t)().asPath,f=td();return(0,o.tZ)(l.i9.DropdownItem,{label:a,id:n,"data-test-id":r,"aria-label":"".concat(null===(e=f("collapse-text"))||void 0===e?void 0:e.value," ").concat(a),position:u,total:s,title:a,children:(0,o.tZ)(tH,{links:i,asPath:d,onClick:c,viewport:"desktop"})})},ea=n(886120),el={IconConfetti24:(0,o.tZ)(tw.default,{}),IconGlassOrange24:(0,o.tZ)(ea.default,{})},ec=function(t){var e=t.href,n=t.link,r=t.shouldShowNotification,i=t.onClick,a=t.isActive,c=t.position,u=t.total,s=t.trailingIcon,d=n.subLinks,f=n.iconDesktop,p=n.id,b=n.testId,g=n.name,h=(0,tU.u)().buildHref;if(d&&d.length)return(0,o.tZ)(eo,{id:p,testId:b,links:d,name:g,onClick:i,position:c,total:u});var v=el[f];return(0,o.BX)(ei,{id:p,"data-test-id":b,title:g,href:h(e),onClick:function(t){return i(n,t)},isActive:a,icon:v,position:c,total:u,children:[g,s&&(0,o.tZ)(l.xu,{as:"span",display:"inline-flex",alignItems:"center",ml:"xs",children:s}),r&&(0,o.tZ)(l.xu,{transform:"translate(7px,15px)",children:(0,o.tZ)(w,{"data-test-id":"nav-element-notification"})})]})},eu=function(t){var e=t.link,n=t.position,r=t.total,i=t.trailingIcon,l=tv(),c=l.isLinkAlreadyVisited,u=l.setLinkAsVisited,s=tK(),d=(0,tX.m)(),f=d.isReady,p=d.shouldRedirect,b=e.target,h=(0,g.t)().asPath,v=X(h,b),y=(0,tR.Q)({utmContent:"header_navigation"}),m=p&&f&&(null==b?void 0:b.startsWith("/factorform")),k=m?y:v,w=H(b,h),O=(0,a.useCallback)(function(t,e){u(t),tQ("navbarClick","".concat(t.name,"|").concat(t.target)),s(t.name,p),m&&(e&&e.preventDefault(),e&&e.stopPropagation(),window.open(y,"_blank"))},[p,s,u,m,y]);return(0,o.tZ)(ec,{link:e,href:k,isActive:w,onClick:O,shouldShowNotification:!c(e),position:n,total:r,trailingIcon:i})},es=n(575085),ed={id:"link_products_mealshake_en_US_FJ_factorform",name:"Meal Shake",target:"/factorform/products/mealshake",icon:"",brand:"factor",tags:[],iconDesktop:"",testId:"sub-brand-products-mealshake-link"},ef={id:"link_products_creatine_en_US_FJ_factorform",name:"Creatine+",target:"/factorform/products/creatine",icon:"",brand:"factor",tags:[],iconDesktop:"",testId:"sub-brand-products-creatine-link"},ep={id:"segment_left-navigation-public_en-US_FJ_factorform",segment:"left-navigation-public-factorform",locale:"",links:[{id:"link_products_en-US_FJ_factorform",name:"Products",target:"/factorform/products/",icon:"",brand:"factor",tags:[],iconDesktop:"",testId:"sub-brand-products-link",subLinks:[{id:"link_products_all_products_en_US_FJ_factorform",name:"All Products",target:"/factorform/products/",icon:"",brand:"factor",tags:[],iconDesktop:"",testId:"sub-brand-all_products-protein-link"},{id:"link_products_greens_en_US_FJ_factorform",name:"Daily Greens",target:"/factorform/products/greens/",icon:"",brand:"factor",tags:[],iconDesktop:"",testId:"sub-brand-products-greens-link"},{id:"link_products_protein_en_US_FJ_factorform",name:"Whey Protein",target:"/factorform/products/protein/",icon:"",brand:"factor",tags:[],iconDesktop:"",testId:"sub-brand-products-protein-link"},{id:"link_products_hydration_en_US_FJ_factorform",name:"Hydration Boost",target:"/factorform/products/hydration/",icon:"",brand:"factor",tags:[],iconDesktop:"",testId:"sub-brand-products-hydration-link"}]},{id:"link_science_en-US_FJ_factorform",name:"Science",target:"/factorform/science/",icon:"",brand:"factor",tags:[],iconDesktop:"",testId:"sub-brand-science-link",subLinks:[{id:"link_science_greens_en_US_FJ_factorform",name:"Daily Greens Science",target:"https://get.factor75.com/factorform/science/greens",icon:"",brand:"factor",tags:[],iconDesktop:"",testId:"sub-brand-science-greens-link"},{id:"link_science_protein_en_US_FJ_factorform",name:"Protein Science",target:"https://get.factor75.com/factorform/science/protein",icon:"",brand:"factor",tags:[],iconDesktop:"",testId:"sub-brand-science-protein-link"},{id:"link_science_hydration_en_US_FJ_factorform",name:"Hydration Science",target:"https://get.factor75.com/factorform/science/hydration",icon:"",brand:"factor",tags:[],iconDesktop:"",testId:"sub-brand-science-hydration-link"}]},{id:"link_faq_sub_en_US_FJ_factorform",name:"FAQs",target:"/factorform/faq/",icon:"",brand:"factor",tags:[],iconDesktop:"",testId:"sub-brand-faq-link",subLinks:[]}]},eb=n(346962),eg=n(250982);function eh(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function ev(t,e,n,r,i,o,a){try{var l=t[o](a),c=l.value}catch(t){n(t);return}l.done?e(c):Promise.resolve(c).then(r,i)}function ey(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){var r;r=n[e],e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r})}return t}function em(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):(function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n.push.apply(n,r)}return n}
1)(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}function ek(t){return function(t){if(Array.isArray(t))return eh(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return eh(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eh(t,void 0)}}(t)||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 ew=(0,es.Z)("hf.funnel.public-header",(r=function(){return function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}(this,function(t){return[2,n.e(8332).then(n.bind(n,608332))]})},function(){var t=this,e=arguments;return new Promise(function(n,i){var o=r.apply(t,e);function a(t){ev(o,n,i,a,l,"next",t)}function l(t){ev(o,n,i,a,l,"throw",t)}a(void 0)})})),eO=ew.ProjectConfigProvider,e_=(ew.configMiddleware,ew.useConfig),ex=function(){var t=e_(),e=(0,eb.x)().isMealShakeEnabled,n=(0,eg.P)().isCreatineEnabled;if(!(0,Z.xY)())return t;var r=ep.links[0],i=r.subLinks,o=ek(e?[ed]:[]).concat(ek(n?[ef]:[])),a=em(ey({},ep),{links:[em(ey({},r),{subLinks:ek(i).concat(ek(o))})].concat(ek(ep.links.slice(1)))});return em(ey({},t),{segments:[a]})},eZ=function(){return(0,o.tZ)(l.xu,{display:"flex",pr:"sm-2",alignItems:"center",height:"100%",children:(0,o.tZ)(d.Z,{id:"desktop-navigation-logo"})})},eS=function(t){var e=t.segment,n=(0,tX.m)(),r=n.isReady,i=n.shouldRedirect,a=r&&i;if(!e)return null;var c=e.links.length;return(0,o.BX)(l.i9.Inline,{semantic:!0,flexWrap:"wrap",overflow:"hidden",height:"56px",__dangerouslySetCustomCSS:{"@media (max-width: 900px)":{height:"auto",overflow:"visible"}},children:[(0,o.tZ)(l.xu,{display:"flex",as:"li",role:"presentation",children:(0,o.tZ)(eZ,{})}),e.links.map(function(t,e){var n;return(0,o.tZ)(eu,{link:t,position:e+1,total:c,trailingIcon:a&&(null===(n=t.target)||void 0===n?void 0:n.startsWith("/factorform"))?(0,o.tZ)(tB.default,{width:"14px",height:"14px",color:"inherit"}):void 0},t.id)})]})},ej=function(){var t,e=(0,Z.xY)(),n=(0,er.T)(),r=ts("left-navigation-public"),i=ex().segments,a=n.startSpan("public-header-left-navigtaion.render-fallback-segment");if(e===S.M.factorform&&(r=i.find(function(t){return"left-navigation-public-factorform"===t.segment})),!r||!(null===(t=r.links)||void 0===t?void 0:t.length)){var l=i.find(function(t){return"left-navigation-public"===t.segment});if(!l)return null;a.setAttributes({renderedFallbackComponent:!0}),r=l}return a.end(),(0,o.tZ)(eS,{segment:r})},eP=function(){var t=(0,g.t)().push,e=(0,Z.xY)();return e?(0,o.tZ)(l.xu,{display:"inline-block",minWidth:"110px",children:(0,o.tZ)(l.zx.Primary,{"data-testid":"sub-brand-signup-button",size:"sm",onClick:function(){t("/".concat(e,"/signup"))},children:"Sign Up"})}):null},eC=function(){var t=tf(),e=t.availableLocales,n=t.renderLanguageToggle,r=t.loginTranslation,i=t.isTranslationDropdownEnabled,a=(0,g.t)().asPath,c=(0,A.O)().locale;return(0,o.BX)(l.xu,{display:"flex",flexWrap:"nowrap",alignItems:"center",height:"100%",children:[(0,o.tZ)(t2.Z,{renderLanguageToggle:n,availableLocales:e,asPath:a,currentLocale:c,dataTestId:"public-header-menu-item-translation-button-desktop",mergeQueryParams:X,sendNavigationEvent:tQ,isTranslationDropdownEnabled:i}),(0,o.BX)(f.Z,{suspense:!0,children:[(0,o.tZ)(t9.Z,{}),(0,o.tZ)(P,{})]}),(0,o.BX)(l.xu,{display:"flex",gap:"sm-2",children:[(0,o.tZ)(l.xu,{display:"inline-block",minWidth:"110px",ml:"sm-2",children:(0,o.tZ)(t1,{asPath:a,loginTranslation:r})}),(0,o.tZ)(eP,{})]})]})},eL=function(){var t=(0,en.cg)().fullWidth;return(0,o.tZ)(l.xu,{position:"relative",backgroundColor:"alias.elevation.base",boxShadow:"alias.box.md",height:"56px",__dangerouslySetCustomCSS:{"@media (max-width: 900px)":{height:"auto"}},children:(0,o.BX)(l.xu,{display:"flex",justifyContent:"space-between",maxWidth:t?"100%":["100%","960px","1144px"],mx:"auto",paddingX:t?"sm-2":["sm-2","sm-2","zero"],children:[(0,o.tZ)(l.xu,{display:"inline-flex",children:(0,o.tZ)(ej,{})}),(0,o.tZ)(l.xu,{children:(0,o.tZ)(eC,{})})]})})},eI=n(510856),eE=n(72804),eA=function(){return(0,o.BX)(o.HY,{children:[(0,o.tZ)(eI.u,{}),(0,o.tZ)(eE.j,{}),(0,o.BX)(l.xu,{id:"header-particle","data-new-header":"true","data-header-mounted":"true","data-test-id":"public-header",position:"relative",as:"header",children:[(0,o.tZ)(l.xu,{"data-test-id":"desktop-public-header",display:["none","block"],children:(0,o.tZ)(eL,{})}),(0,o.tZ)(l.xu,{display:["block","none"],children:(0,o.tZ)(ee,{})})]})]})},eD=function(){return(0,o.tZ)(s.Z,{claim:{name:"activations-rte",githubTeam:"hellofresh/activations-rte",tribe:"conversions",alliance:"growth",jiraPrefix:"USCRO",slackChannel:"#squad-curation",slackAlertsChannel:"#squad-curation",skipLabelsOnPR:!1,teamIdentifier:"activations-rte"},children:(0,o.tZ)(c.Z,{componentName:"public-header",children:(0,o.tZ)(u.Z,{scope:"public-header",children:(0,o.tZ)(O.sR,{children:(0,o.tZ)(eO,{children:(0,o.tZ)(eA,{})})})})})})}},152899:function(t,e,n){n.r(e);var r=n(687800);function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){var r;r=n[e],e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r})}return t}function o(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):(function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n.push.apply(n,r)}return n}
1)(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}n(827378),e.default=function(t){var e=t.title,n=t.titleId,a=function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,["title","titleId"]);return(0,r.BX)("svg",o(i(o(i({width:"1.5rem",height:"1.5rem",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:e?"img":"graphics-symbol",color:"inherit","aria-hidden":!e},!e&&{focusable:!1}),{"aria-labelledby":n}),a),{children:[e?(0,r.tZ)("title",{id:n,children:e}):null,(0,r.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 8.111c0 2.278-1.275 4.192-3 4.735V22H6v-9.154c-1.725-.543-3-2.457-3-4.735C3 5.411 5 2 7 2s4 3.411 4 6.111ZM7 11c.748 0 2-.9 2-2.889 0-.914-.36-2.077-.943-3.002-.284-.451-.573-.767-.811-.95A1.026 1.026 0 0 0 7 4.007c-.04.015-.122.054-.247.15-.238.184-.527.5-.811.951C5.359 6.034 5 7.197 5 8.111 5 10.101 6.252 11 7 11Z",fill:"currentColor"}),(0,r.tZ)("path",{d:"M21 9.017v-7h-2v6h-1v-6h-2v6h-1v-6h-2v7a2 2 0 0 0 2 2h1V22h2V11.018h1a2 2 0 0 0 2-2Z",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.