1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[76797],{131263:(e,n,t)=>{t.d(n,{a:()=>l});var a=t(75834),r=t(624281),i=t(261564),o=t(251846),l=function(){var e=(0,o.$T)().trackJanusEvent;return{trackStartFunnelClick:(0,a.useCallback)(function(n){var t=n.sectionId,a=n.sectionType,o=n.uiComponentLabel;try{var l=i.Y.sectionType({sectionContent:t,sectionType:a}),s=i.Y.uiComponent({uiComponentName:t,uiComponentLabel:null!=o?o:null});e(i.Y.janusEvent({sectionType:l,uiComponent:s}))}catch(e){(0,r.Cp)(e,{tags:{event:"LandingPage_Start_Funnel_Button_Click",component:"useLandingPageStartFunnelClickEvent",surface:"landing-page"}})}},[e])}}},452854:(e,n,t)=>{t.d(n,{A:()=>l});var a=t(75834),r=t(526697),i=t(681643),o=t(470663);let l=function(){var e=(0,o.A)(),n=(0,r.a)(),t=(0,i.D)({runUsingStatsig:!0});return(0,a.useMemo)(function(){return e?{id:t.id,attributes:t.attributes,isReady:t.isReady}:{id:n.id,attributes:n.attributes,isReady:!0}},[e,n,t])}},486603:(e,n,t)=>{t.d(n,{A:()=>o});var a=t(75834),r=t(674711),i={addSectionViewed:function(){},setCTAClick:function(){},writeSignalsCookieSync:function(){}},o=function(){var e=(0,a.useContext)(r.e);return null!=e?e:i}},542479:(e,n,t)=>{t.d(n,{n:()=>o});var a=t(126811);t(75834);var r=t(845653),i=t(951565),o=function(e){var n=e.error,t=e.contentType,o=e.id,l=(0,i.C)();return(null==l?void 0:l.NEXT_PUBLIC_SERVER_ENV)!=="live"&&(null==l?void 0:l.NEXT_PUBLIC_SERVER_ENV)?(0,a.Y)(r.az,{p:"global.xs",backgroundColor:"shared-alias.warning.background.light",children:(0,a.FD)(r.az,{p:"global.md-1",borderColor:"shared-alias.warning.border.default",borderWidth:"0.25rem",borderStyle:"solid",children:[(0,a.Y)(r.EY,{as:"p",styleAs:"h2",children:n.message}),(0,a.FD)(r.EY,{as:"p",styleAs:"h3",children:[(0,a.Y)("small",{children:"Content Type:"}),"\xa0",t]}),(0,a.FD)(r.EY,{as:"p",styleAs:"h3",children:[(0,a.Y)("small",{children:"Content ID:"}),"\xa0",o]}),(0,a.Y)(r.EY,{as:"p",styleAs:"h3",children:(0,a.Y)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://app.contentful.com/spaces/l52yi8w5hh4a/views/entries?searchText=".concat(o,"&contentTypeIds=").concat(t,"&displayedFieldIds=contentType"),children:"Find it on Contenful"})})]})}):null}},590730:(e,n,t)=>{t.d(n,{O:()=>u});var a=t(246178),r=t(526697),i=t(384652),o=t(75834),l=t(452854),s=t(131263),c=t(486603);function g(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.forEach(function(n){var a;a=t[n],n in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a})}return e}var u=function(e,n,t){var u=(0,i.A)().push,v=(0,s.a)().trackStartFunnelClick,d=(0,c.A)(),C=d.writeSignalsCookieSync,b=d.setCTAClick,p=(0,a.dj)({runUsingStatsig:!0}).track,E=(0,r.a)(),f=E.id,y=E.attributes,m=(0,l.A)(),h=m.id,T=m.attributes,S=m.isReady,A=(0,o.useCallback)(function(e){u({event:"gaEventTrigger",event_name:"Navigation_LPMenuSectionCarousel",brand:"HelloFresh",tribe:"Conversions",screen:"Landing Page",gaEventCategory:"menuSectionCarousel",gaEventAction:"view",gaEventLabel:e,action:"view",slide_name:e}),p({eventName:"Navigation_LPMenuSectionCarousel",eventTags:{event:"gaEventTrigger",brand:"HelloFresh",tribe:"Conversions",screen:"Landing Page",gaEventCategory:"menuSectionCarousel",gaEventAction:"view",gaEventLabel:e,action:"view",slide_name:e},experimentationUserId:f,experimentationUserAttributes:y})},[f,y,u,p]),_=(0,o.useCallback)(function(){u({event:"gaEventTrigger",event_name:"Navigation_LPMenuSectionCarousel",brand:"HelloFresh",tribe:"Conversions",screen:"Landing Page",gaEventCategory:"menuSectionCarousel",gaEventAction:"swipe",action:"swipe"}),p({eventName:"Navigation_LPMenuSectionCarousel",eventTags:{event:"gaEventTrigger",brand:"HelloFresh",tribe:"Conversions",screen:"Landing Page",gaEventCategory:"menuSectionCarousel",gaEventAction:"swipe",action:"swipe"},experimentationUserId:f,experimentationUserAttributes:y})},[f,y,u,p]),L=(0,o.useCallback)(function(e){u({event:"gaEventTrigger",event_name:"Navigation_LPMenuSectionCarousel",brand:"HelloFresh",tribe:"Conversions",screen:"Landing Page",gaEventCategory:"menuSectionCarousel",gaEventAction:"clickInfoIcon",gaEventLabel:e,action:"clickInfoIcon",slide_name:e}),p({eventName:"Navigation_LPMenuSectionCarousel",eventTags:{event:"gaEventTrigger",brand:"HelloFresh",tribe:"Conversions",screen:"Landing Page",gaEventCategory:"menuSectionCarousel",gaEventAction:"clickInfoIcon",gaEventLabel:e,action:"clickInfoIcon",slide_name:e},experimentationUserId:f,experimentationUserAttributes:y})},[f,y,u,p]),k=(0,o.useCallback)(function(){u({event:"gaEventTrigger",event_name:"Navigation_LPHeroBannerCarousel",brand:"HelloFresh",tribe:"Conversions",screen:"Landing Page",gaEventCategory:"heroBannerCarousel",gaEventAction:"swipe",action:"swipe"}),p({eventName:"Navigation_LPHeroBannerCarousel",eventTags:{event:"gaEventTrigger",brand:"HelloFresh",tribe:"Conversions",screen:"Landing Page",gaEventCategory:"heroBannerCarousel",gaEventAction:"swipe",action:"swipe"},experimentationUserId:f,experimentationUserAttributes:y})},[f,y,u,p]),P=(0,o.useCallback)(function(e){u({event:"gaEventTrigger",event_name:"Navigation_LPHeroBannerCarousel",brand:"HelloFresh",tribe:"Conversions",screen:"Landing Page",gaEventCategory:"heroBannerCarousel",gaEventAction:"view",gaEventLabel:e,action:"view",slide_name:e}),p({eventName:"Navigation_LPHeroBannerCarousel",eventTags:{event:"gaEventTrigger",brand:"HelloFresh",tribe:"Conversions",screen:"Landing Page",gaEventCategory:"heroBannerCarousel",gaEventAction:"view",gaEventLabel:e,action:"view",slide_name:e},experimentationUserId:f,experimentationUserAttributes:y})},[f,y,u,p]),w=(0,o.useCallback)(function(){b(e),C(),u({event:"gaEventTrigger",event_name:"Navigation_LPHeroBannerCarousel",brand:"HelloFresh",tribe:"Conversions",screen:"Landing Page",gaEventCategory:"heroBannerCarousel",gaEventAction:"clickScroll",action:"clickScroll",user_action:e,gaEventLabel:e}),p({eventName:"Navigation_LPHeroBannerCarousel",eventTags:{event:"gaEventTrigger",brand:"HelloFresh",tribe:"Conversions",screen:"Landing Page",gaEventCategory:"heroBannerCarousel",gaEventAction:"clickScroll",action:"clickScroll",user_action:e,gaEventLabel:e},experimentationUserId:f,experimentationUserAttributes:y})},[f,y,u,p,e,b,C]);return{handleGAEventClick:(0,o.useCallback)(function(a,r){b(e),C(),u(g({event:"gaEventTrigger",gaEventCategory:"navigation",eventName:"Navigation_PageCTAclick",user_action:e,gaEventLabel:e,gaEventAction:"CTA",n
1onInteraction:!1,sectionType:n,scrollSectionType:t},r)),S&&h&&p({eventName:"Navigation_PageCTAclick",eventTags:g({event:"gaEventTrigger",gaEventCategory:"navigation",user_action:e,gaEventLabel:e,gaEventAction:"CTA",nonInteraction:"false",brand:"HelloFresh",tribe:"Conversions Journey",screen:"Landing Page",sectionType:null!=n?n:"",scrollSectionType:null!=t?t:""},r),experimentationUserId:h,experimentationUserAttributes:T}),v({sectionId:e,sectionType:null!=n?n:"scrollSection",uiComponentLabel:a})},[T,h,S,u,e,n,t,p,v,b,C]),handleGAEventOnMenuClick:(0,o.useCallback)(function(n){u({event:"gaEventTrigger",gaEventCategory:"navigation",eventName:n,position:e,gaEventAction:"CTA",gaEventLabel:e,nonInteraction:!1}),p({eventName:n,eventTags:{event:"gaEventTrigger",gaEventCategory:"navigation",position:e,gaEventAction:"CTA",gaEventLabel:e,nonInteraction:"false",brand:"HelloFresh",tribe:"Conversions Journey",screen:"Landing Page"},experimentationUserId:f,experimentationUserAttributes:y})},[y,f,u,e,p]),handleScrollCTAClick:w,handleBannerSliderOnView:P,handleBannerSlideSwipe:k,handleOnInfoClick:L,handleMenuPrefernecesSwipe:_,handleMenuOnView:A}}},674711:(e,n,t)=>{t.d(n,{e:()=>a});var a=(0,t(75834).createContext)(null)},845250:(e,n,t)=>{t.d(n,{K:()=>g});var a=t(126811),r=t(75834),i=t(542479),o=t(348504),l=t(951565);function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=Array(n);t<n;t++)a[t]=e[t];return a}var c=function(e){var n,t=e.error,a=e.contentType,i=e.id,c=e.isSoftValidation,g=(0,l.C)(),u=(0,o.I)(),v=(n=(0,r.useState)(!1),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,a,r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var i=[],o=!0,l=!1;try{for(r=r.call(e);!(o=(t=r.next()).done)&&(i.push(t.value),i.length!==n);o=!0);}catch(e){l=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(l)throw a}}return i}}(n,2)||function(e,n){if(e){if("string"==typeof e)return s(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 s(e,n)}}(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=v[0],C=v[1];return((0,r.useEffect)(function(){if(!d&&t){var e=u.startSpan("landing-page.section-error-display"),n={"error.message":t.message,"contentful.contentType":a,"contentful.id":i,isSoftValidation:c};e.setAttributes(n),e.end(),C(!0)}},[t,a,i,u,d,c]),(null==g?void 0:g.NEXT_PUBLIC_SERVER_ENV)!=="live"&&(null==g?void 0:g.NEXT_PUBLIC_SERVER_ENV))?{serverEnv:g,tracer:u,isSent:d,setIsSent:C}:null};function g(e,n){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.displayName||e.name||"Component",o=function(o){var l=o.sectionId,s=o.contentType||r,g=n.safeParse(o);if(c({error:g.error,contentType:s,id:l||"",isSoftValidation:t}),!g.success&&!t){var u=g.error;return(0,a.Y)(i.n,{error:u,contentType:s,id:l||""})}return(0,a.Y)(e,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.forEach(function(n){var a;a=t[n],n in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a})}return e}({},t?o:g.data))};return o.displayName="ValidatedComponent:".concat(r),o}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.