1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90520],{781935:function(e,n,t){t.d(n,{Y:function(){return r}});var r=(0,t(827378).createContext)(null)},264937:function(e,n,t){t.d(n,{_:function(){return o}});var r=t(827378),a=t(781935),i={addSectionViewed:function(){},setCTAClick:function(){},writeSignalsCookieSync:function(){}},o=function(){var e=(0,r.useContext)(a.Y);return null!=e?e:i}},448767:function(e,n,t){t.d(n,{X:function(){return o}});var r=t(687800);t(827378);var a=t(768587),i=t(396887),o=function(e){var n=e.error,t=e.contentType,o=e.id,l=(0,i.ew)();return(null==l?void 0:l.NEXT_PUBLIC_SERVER_ENV)!=="live"&&(null==l?void 0:l.NEXT_PUBLIC_SERVER_ENV)?(0,r.tZ)(a.xu,{p:"global.xs",backgroundColor:"shared-alias.warning.background.light",children:(0,r.BX)(a.xu,{p:"global.md-1",borderColor:"shared-alias.warning.border.default",borderWidth:"0.25rem",borderStyle:"solid",children:[(0,r.tZ)(a.xv,{as:"p",styleAs:"h2",children:n.message}),(0,r.BX)(a.xv,{as:"p",styleAs:"h3",children:[(0,r.tZ)("small",{children:"Content Type:"}),"\xa0",t]}),(0,r.BX)(a.xv,{as:"p",styleAs:"h3",children:[(0,r.tZ)("small",{children:"Content ID:"}),"\xa0",o]}),(0,r.tZ)(a.xv,{as:"p",styleAs:"h3",children:(0,r.tZ)("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}},632117:function(e,n,t){t.d(n,{S:function(){return u}});var r=t(687800),a=t(827378),i=t(448767),o=t(497249),l=t(396887);function s(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 c=function(e){var n,t=e.error,r=e.contentType,i=e.id,c=e.isSoftValidation,u=(0,l.ew)(),g=(0,o.T)(),v=function(e){if(Array.isArray(e))return e}(n=(0,a.useState)(!1))||function(e,n){var t,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,l=!1;try{for(a=a.call(e);!(o=(t=a.next()).done)&&(i.push(t.value),2!==i.length);o=!0);}catch(e){l=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(l)throw r}}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,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=v[0],b=v[1];return((0,a.useEffect)(function(){if(!d&&t){var e=g.startSpan("landing-page.section-error-display"),n={"error.message":t.message,"contentful.contentType":r,"contentful.id":i,isSoftValidation:c};e.setAttributes(n),e.end(),b(!0)}},[t,r,i,g,d,c]),(null==u?void 0:u.NEXT_PUBLIC_SERVER_ENV)!=="live"&&(null==u?void 0:u.NEXT_PUBLIC_SERVER_ENV))?{serverEnv:u,tracer:g,isSent:d,setIsSent:b}:null};function u(e,n){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=e.displayName||e.name||"Component",o=function(o){var l=o.sectionId,s=o.contentType||a,u=n.safeParse(o);if(c({error:u.error,contentType:s,id:l||"",isSoftValidation:t}),!u.success&&!t){var g=u.error;return(0,r.tZ)(i.X,{error:g,contentType:s,id:l||""})}return(0,r.tZ)(e,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}({},t?o:u.data))};return o.displayName="ValidatedComponent:".concat(a),o}},687992:function(e,n,t){var r=t(827378),a=t(407792),i=t(943701),o=t(43011);n.Z=function(){var e=(0,o.Z)(),n=(0,a.O)(),t=(0,i.R)({runUsingStatsig:!0});return(0,r.useMemo)(function(){return e?{id:t.id,attributes:t.attributes,isReady:t.isReady}:{id:n.id,attributes:n.attributes,isReady:!0}},[e,n,t])}},243352:function(e,n,t){t.d(n,{L:function(){return l}});var r=t(827378),a=t(60074),i=t(468778),o=t(52130),l=function(){var e=(0,o.L3)().trackJanusEvent;return{trackStartFunnelClick:(0,r.useCallback)(function(n){var t=n.sectionId,r=n.sectionType,o=n.uiComponentLabel;try{var l=i.n.sectionType({sectionContent:t,sectionType:r}),s=i.n.uiComponent({uiComponentName:t,uiComponentLabel:null!=o?o:null});e(i.n.janusEvent({sectionType:l,uiComponent:s}))}catch(e){(0,a.Tb)(e,{tags:{event:"LandingPage_Start_Funnel_Button_Click",component:"useLandingPageStartFunnelClickEvent",surface:"landing-page"}})}},[e])}}},671273:function(e,n,t){t.d(n,{h:function(){return g}});var r=t(966622),a=t(407792),i=t(887824),o=t(827378),l=t(687992),s=t(243352),c=t(264937);function u(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 g=function(e,n,t){var g=(0,i.Z)().push,v=(0,s.L)().trackStartFunnelClick,d=(0,c._)(),b=d.writeSignalsCookieSync,C=d.setCTAClick,f=(0,r.py)({runUsingStatsig:!0}).track,p=(0,a.O)(),E=p.id,y=p.attributes,m=(0,l.Z)(),h=m.id,T=m.attributes,S=m.isReady,_=(0,o.useCallback)(function(e){g({event:"gaEventTrigger",event_name:"Navigation_LPMenuSectionCarousel",brand:"HelloFresh",tribe:"Conversions",screen:"Landing Page",gaEventCategory:"menuSectionCarousel",gaEventAction:"view",gaEventLabel:e,action:"view",slide_name:e}),f({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:E,experimentationUserAttributes:y})},[E,y,g,f]),L=(0,o.useCallback)(function(){g({event:"gaEventTrigger",event_name:"Navigation_LPMenuSectionCarousel",brand:"HelloFresh",tribe:"Conversions",screen:"Landing Page",gaEventCategory:"menuSectionCarousel",gaEventAction:"swipe",action:"swipe"}),f({eventName:"Navigation_LPMenuSectionCarousel",eventTags:{event:"gaEventTrigger",brand:"HelloFresh",tribe:"Conversions",screen:"Landing Page",gaEventCategory:"menuSectionCarousel",gaEventAction:"swipe",action:"swipe"},experimentationUserId:E,experimentationUserAttributes:y})},[E,y,g,f]),A=(0,o.useCallback)(function(e){g({event:"gaEventTrigger",event_name:"Navigation_LPMenuSectionCarousel",brand:"HelloFresh",tribe:"Conversions",screen:"Landing Page",gaEventCategory:"menuSectionCarousel",gaEventAction:"clickInfoIcon",gaEventLabel:e,action:"clickInfoIcon",slide_name:e}),f({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:E,experimentationUserAttributes:y})},[E,y,g,f]),k=(0,o.useCallback)(function(){g({event:"gaEventTrigger",event_name:"Navigation_LPHeroBannerCarousel",brand:"HelloFresh",tribe:"Conversions",screen:"Landing Page",gaEventCategory:"heroBannerCarousel",gaEventAction:"swipe",action:"swipe"}),f({eventName:"Navigation_LPHeroBannerCarousel",eventTags:{event:"gaEventTrigger",brand:"HelloFresh",tribe:"Conversions",screen:"Landing Page",gaEventCategory:"heroBannerCarousel",gaEventAction:"swipe",action:"swipe"},experimentationUserId:E,experimentationUserAttributes:y})},[E,y,g,f]),P=(0,o.useCallback)(function(e){g({event:"gaEventTrigger",event_name:"Navigation_LPHeroBannerCarousel",brand:"HelloFresh",tribe:"Conversions",screen:"Landing Page",gaEventCategory:"heroBannerCarousel",gaEventAction:"view",gaEventLabel:e,action:"view",slide_name:e}),f({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:E,experimentationUserAttributes:y})},[E,y,g,f]),w=(0,o.useCallback)(function(){C(e),b(),g({event:"gaEventTrigger",event_name:"Navigation_LPHeroBannerCarousel",brand:"HelloFresh",tribe:"Conversions",screen:"Landing Page",gaEventCategory:"heroBannerCarousel",gaEventAction:"clickScroll",action:"clickScroll",user_action:e,gaEventLabel:e}),f({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:E,experimentationUserAttributes:y})},[E,y,g,f,e,C,b]);return{handleGAEventClick:(0,o.useCallback)(function(r,a){C(e),b(),g(u({event:"gaEventTrigger",gaEventCategory:"navigation",eventName:"Navigation_PageCTAclick",user_action:e,gaEventLabel:e,gaEventAction:"CTA",n
1onInteraction:!1,sectionType:n,scrollSectionType:t},a)),S&&h&&f({eventName:"Navigation_PageCTAclick",eventTags:u({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:""},a),experimentationUserId:h,experimentationUserAttributes:T}),v({sectionId:e,sectionType:null!=n?n:"scrollSection",uiComponentLabel:r})},[T,h,S,g,e,n,t,f,v,C,b]),handleGAEventOnMenuClick:(0,o.useCallback)(function(n){g({event:"gaEventTrigger",gaEventCategory:"navigation",eventName:n,position:e,gaEventAction:"CTA",gaEventLabel:e,nonInteraction:!1}),f({eventName:n,eventTags:{event:"gaEventTrigger",gaEventCategory:"navigation",position:e,gaEventAction:"CTA",gaEventLabel:e,nonInteraction:"false",brand:"HelloFresh",tribe:"Conversions Journey",screen:"Landing Page"},experimentationUserId:E,experimentationUserAttributes:y})},[y,E,g,e,f]),handleScrollCTAClick:w,handleBannerSliderOnView:P,handleBannerSlideSwipe:k,handleOnInfoClick:A,handleMenuPrefernecesSwipe:L,handleMenuOnView:_}}}}]);
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.