PageSourceSearch

https://www.hellofresh.de/_next/static/chunks/70765.74259af224784c43.js

js hellofresh.de collected 2026-09-25 23:36:27 UTC 12,897 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[70765],{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 i}});var r=t(827378),o=t(781935),a={addSectionViewed:function(){},setCTAClick:function(){},writeSignalsCookieSync:function(){}},i=function(){var e=(0,r.useContext)(o.Y);return null!=e?e:a}},361822:function(e,n,t){t.d(n,{vm:function(){return u}});var r=t(687800),o=t(827378);function a(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 i(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var a=[],i=!0,c=!1;try{for(o=o.call(e);!(i=(t=o.next()).done)&&(a.push(t.value),!n||a.length!==n);i=!0);}catch(e){c=!0,r=e}finally{try{i||null==o.return||o.return()}finally{if(c)throw r}}return a}}(e,n)||function(e,n){if(e){if("string"==typeof e)return a(e,n);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 a(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var c=(0,o.createContext)({hasHeroCta:!1,heroCtaInView:!1,registerHeroCta:function(){},setHeroCtaInView:function(){}}),u=function(){return(0,o.useContext)(c)};n.ZP=function(e){var n=e.children,t=i((0,o.useState)(!1),2),a=t[0],u=t[1],l=i((0,o.useState)(!1),2),d=l[0],s=l[1],f=(0,o.useCallback)(function(){return u(!0)},[]),v=(0,o.useCallback)(function(e){return s(e)},[]),g=(0,o.useMemo)(function(){return{hasHeroCta:a,heroCtaInView:d,registerHeroCta:f,setHeroCtaInView:v}},[a,d,f,v]);return(0,r.tZ)(c.Provider,{value:g,children:n})}},203794:function(e,n,t){t.d(n,{E8:function(){return i},h9:function(){return c}});var r=t(26730),o={US:"$",CA:"$",GB:"\xa3",UK:"\xa3",AU:"$",NZ:"$",DE:"€",AT:"€",BE:"€",NL:"€",FR:"€",LU:"€",CH:"CHF",SE:"kr",DK:"kr",NO:"kr",IT:"€",JP:"\xa5",IE:"€",ES:"€",AO:"$",CF:"$",CG:"$",CK:"$",ER:"$",FJ:"$",GN:"\xa3",KN:"$",MR:"$",YE:"$",GQ:"€",TO:"€",TT:"€",TV:"kr",TK:"kr",TZ:"€"},a={US:"USD",CA:"CAD",GB:"GBP",UK:"GBP",AU:"AUD",NZ:"NZD",DE:"EUR",AT:"EUR",BE:"EUR",NL:"EUR",FR:"EUR",LU:"EUR",CH:"CHF",SE:"SEK",DK:"DKK",NO:"NOK",IT:"EUR",JP:"JPY",IE:"EUR",ES:"EUR",AO:"AUD",CF:"CAD",CG:"USD",CK:"CAD",ER:"USD",FJ:"USD",GN:"GBP",KN:"USD",MR:"USD",YE:"AUD",GQ:"EUR",TO:"EUR",TT:"EUR",TV:"SEK",TK:"DKK",TZ:"EUR"},i=function(e){return a[(e||"").toUpperCase()]||""},c=function(e,n,t,a,c){if(n)return"".concat(e).concat(n?"%":o[(t||"").toUpperCase()]||"");var u=i(t);return t===r.Z.JP&&(c=null),new Intl.NumberFormat(a,{style:"currency",currency:u,minimumFractionDigits:c>-1?c:e%1==0?0:2,maximumFractionDigits:2}).format(e)}},274309:function(e,n,t){t.d(n,{Ww:function(){return p},X6:function(){return b},mO:function(){return h},Bf:function(){return C},IP:function(){return y},Mq:function(){return m}});var r=t(203794),o=t(285804),a=t.n(o),i=t(235935),c=t.n(i),u="gaEventTrigger",l="gaEventTrigger_EE",d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"freebie_mlp_v1"===e.split("|")[1]},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"raf_lp"===e.split("|")[1]},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"raf_lp11"===e.split("|")[1]},v=function(e,n){var t=n.utm_source;return f(e)&&"share"===t},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.toLowerCase().includes("about|faq")},p=function(e,n,t){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0;if(v(e,r)){var l=a()(Date.now()),p=c()(Date.now());return{event:u,gaEventCategory:"RAF",gaEventAction:"ClickRedeemDiscount",gaEventLabel:"Helloshare|".concat(n,"|").concat(r.c,"|").concat(l,"-W").concat(p),event_name:"RAF_RedeemDiscountClick",brand:t,tribe:"Conversions",screen:"RAF"}}return d(e)?{event:u,gaEventCategory:"RedeemFreebie",gaEventAction:"ClickViewOurPlans",gaEventLabel:n,gaEventNonInteraction:!1}:s(e)||f(e)?{event:u,gaEventCategory:"CeleryLP",gaEventAction:"ClickGetMyFreeMeal",gaEventLabel:n,gaEventNonInteraction:!1}:g(e)?{event:u,gaEventAction:"CTA",event_name:"Navigation_PageCTAclick",
1screen:"Landing Page",brand:t,tribe:"Conversions Journey",user_action:n,gaEventLabel:n,gaEventCategory:"navigation",gaEventNonInteraction:!1}:{event:u,Campaign:"LandingPageCTA-".concat(e,"-").concat(n),event_name:"Navigation_PageCTAclick",screen:"Landing Page",brand:t,tribe:"Conversions Journey",user_action:o||"LP_getStarted",gaEventCategory:"navigation",gaEventAction:"CTA",gaEventLabel:o||"LP_getStarted",gaEventNonInteraction:!1,sectionType:i||""}},b=function(e){var n,t,r=e.category,o=e.action,a=e.label,i=e.nonInteraction,c=e.fowardToWebView,l=e.eventName,d=void 0===l?"":l,s=e.userAction,f=void 0===s?"":s,v=e.position,g=void 0===v?"":v,p=e.brand,b=void 0===p?"":p,y=e.tribe,m=void 0===y?"":y,C=e.screen,h=void 0===C?"":C,E=e.elementId,A=void 0===E?"":E,P=e.preferencesSelected,S=void 0===P?"":P,k=e.faqCategory,O=void 0===k?"":k,T=e.numberOfPeople,I=void 0===T?"":T,w=(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}({event:u},d&&{event_name:d},f&&{user_action:f},g&&{position:g},b&&{brand:b},m&&{tribe:m},h&&{screen:h},A&&{elementId:A},S&&{preferences_selected:S},O&&{faq_category:O},I&&{n_people:I}),t=t={gaEventCategory:r,gaEventAction:o,gaEventLabel:a,gaEventNonInteraction:void 0!==i&&i},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);if(void 0!==c&&c){var U=new CustomEvent("webForwardedAnalyticsEvents",{detail:w});document.dispatchEvent(U)}return w},y=function(e){var n=e.ctaUrl,t=e.action,r=e.label;if(n.includes("plan-recommendations"))return b({category:"funnel",action:t,label:void 0===r?"":r,nonInteraction:!1})},m=function(e){var n=e.couponCode,t=e.product,o=e.productFamilyHandle,a=e.action,i=e.mealsPreset,c=void 0===i?"":i;if(t&&0!==Object.keys(t).length)return{event:l,gaEventCategory:"funnel",gaEventAction:a,gaEventLabel:"".concat(null==t?void 0:t.handle,"|").concat(c||"none","|").concat(n?"with-coupon":"no-coupon"),ecommerce:{click:{actionField:{currencyCode:(0,r.E8)(null==t?void 0:t.country)},products:[{name:null==t?void 0:t.name,id:null==t?void 0:t.handle,price:null==t?void 0:t.price,brand:"Hellofresh",category:o,variant:c||"none",coupon:n}]}}}},C=function(e){return b({category:"funnel",action:"multiplePreferenceSelect",label:null==e?void 0:e.join("|"),eventName:"SelectPlan_MultiplePreferenceSelect",brand:"HelloFresh",tribe:"Conversions",screen:"Plans",preferencesSelected:null==e?void 0:e.join(",")})},h=function(e){var n=e.couponCode,t=e.product,o=e.productFamilyHandle,a=e.mealsPreset,i=void 0===a?"":a,c=e.isMultiPreferences,u=void 0!==c&&c,d=e.multiPreferences,s=void 0===d?"":d;if(t&&0!==Object.keys(t).length)return{event:l,gaEventCategory:"funnel",gaEventAction:"go to cart",gaEventLabel:"".concat(null==t?void 0:t.handle,"|").concat(u?s||"none":i||"none","|").concat(n?"with-coupon":"no-coupon"),ecommerce:{currencyCode:(0,r.E8)(null==t?void 0:t.country),add:{products:[{name:null==t?void 0:t.name,id:null==t?void 0:t.handle,price:null==t?void 0:t.price,brand:"Hellofresh",category:o,variant:u?s||"none":i||"none",coupon:n,quantity:1}]}}}}},402612:function(e,n,t){t.d(n,{P0:function(){return r},Vt:function(){return c},cP:function(){return i},zh:function(){return o}});var r=function(e){var n=e?e.split("-")[0]:"en";return{appStoreBadge:"https://cdn.hellofresh.com/us/cms/ER/badges/appstore-badge-".concat(n,".png"),playStoreBadge:"https://cdn.hellofresh.com/us/cms/ER/badges/playstore-badge-".concat(n,".png")}},o=function(e){return!!(e&&navigator&&/iPad|iPhone|iPod/.test(navigator.userAgent))},a={mobile:["block","block","none"],desktop:["none","none","block"],both:["block","block","block"]},i=function(e){return a[e]},c=function(e){var n={};return Object.keys(e).forEach(function(t){var r=e[t];"string"==typeof t&&void 0!==r&&"event_name"!==t&&(n[t]=r)}),n}},870765:function(e,n,t){t.d(n,{Z:function(){return P}});var r=t(687800),o=t(827378),a=t(832402),i=t(608053),c=t(768587),u=t(361822),l=t(274309),d=t(793884),s=t(887824),f=t(719920),v=t(243352),g=t(402612),p=t(509957),b=t(686945),y=t(907567),m=t(264937),C=function(e){var n=e.dataTestId,t=e.ctaUrlWithParams,a=e.trackingId,i=e.pageId,C=e.ctaText,h=e.sectionId,E=e.contentType,A=e.buttonAppearance,P=e.enableOverridenCTA,S=(0,d.Z)().brand,k=(0,f.Z)().trackStatsigEvents,O=(0,v.L)().trackStartFunnelClick,T=(0,s.Z)().push,I=(0,b.A)().trackBerryStreetCTAClick,w=(0,m._)(),U=w.writeSignalsCookieSync,_=w.setCTAClick,D=(0,y.W)({},{suspense:!1}).data,j=(0,p.YD)({}),N=j.ref,R=j.inView,x=(0,u.vm)(),L=x.registerHeroCta,F=x.setHeroCtaInView,Z="main-cta-button"===n;(0,o.useEffect)(function(){Z&&L()},[Z,L]),(0,o.useEffect)(function(){Z&&F(R)},[Z,R,F]);var H=function(){_(h),U();var e=E||"heroBannerSection";T((0,l.Ww)(i,a,S,{},h,e));var n=(0,l.Ww)(i,a,S,{},h,e),r=n.event_name,o=function(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(n,["event_name"]);k(r||"Navigation_PageCTAclick",(0,g.Vt)(o));var c=null==D?void 0:D.uuid;c&&I({ctaUrl:t,source:"hero",customerId:c,pageId:i,sectionId:h}),O({sectionId:h,sectionType:e,uiComponentLabel:C})};return(0,r.tZ)(c.xu,{display:"inline-block",textAlign:"center",children:(0,r.tZ)(c.rU,{href:t,noStyle:!0,tabIndex:-1,
1children:"marketing"===A?(0,r.tZ)(c.zx.Marketing,{"data-test-id":n,onClick:H,ref:P||Z?N:void 0,children:C}):(0,r.tZ)(c.zx.Primary,{"data-test-id":n,appearance:A,onClick:H,ref:P||Z?N:void 0,children:C})})})},h=function(e){var n=document.querySelector("".concat(e));null==n||n.scrollIntoView({behavior:"smooth",block:"start"})};function E(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 A=function(e){var n,t=e.ctaText,a=e.buttonAppearance,i=e.ctaUrlWithParams,u=e.enableOverridenCTA,l=function(e){if(Array.isArray(e))return e}(n=(0,o.useState)(""))||function(e,n){var t,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var a=[],i=!0,c=!1;try{for(o=o.call(e);!(i=(t=o.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){c=!0,r=e}finally{try{i||null==o.return||o.return()}finally{if(c)throw r}}return a}}(n,2)||function(e,n){if(e){if("string"==typeof e)return E(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 E(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=l[0],s=l[1],f=(0,p.YD)({triggerOnce:!0}).ref;return(0,o.useEffect)(function(){d&&h(d)},[d]),(0,r.tZ)(c.xu,{display:"inline-block",textAlign:"center",children:(0,r.tZ)(c.zx.Primary,{onClick:function(){s(i)},appearance:a,ref:u?f:void 0,children:t})})},P=function(e){var n=e.dataTestId,t=e.ctaUrlWithParams,o=e.trackingId,c=e.pageId,u=e.ctaText,l=e.sectionId,d=e.contentType,s=e.buttonAppearance;return(0,i.Bx)(t)?(0,r.tZ)(A,{ctaText:u,ctaUrlWithParams:t,buttonAppearance:"marketing"===s?a.L.Brand:s}):(0,r.tZ)(C,{dataTestId:n,ctaUrlWithParams:t,trackingId:o||"HeroBannerCTA",pageId:c,ctaText:u,sectionId:l,contentType:d,buttonAppearance:s})}},832402:function(e,n,t){var r,o,a,i;t.d(n,{L:function(){return o},o:function(){return r}}),(a=r||(r={})).Primary="Primary",a.Secondary="Secondary",a.Tertiary="Tertiary",(i=o||(o={})).Brand="brand",i.Neutral="neutral",i.Negative="negative"}}]);

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.