PageSourceSearch

https://www.hellofresh.com/_next/static/chunks/24917.de1e4673a290e9fe.js

js hellofresh.com collected 2026-09-24 09:12:40 UTC 9,866 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[24917],{277425:function(t,e,n){var r=n(822897),o=n(543790),i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.b.cloudfront;if(e===r.b.cloudfront){var n=t.split(/\//);return n.splice(0,4),"/hellofresh_s3/".concat(n.join("/"))}if(e==r.b.everyplate_contentful){var o=t.split(/\//);return o.splice(0,4),"/everyplate_contentful/".concat(o.join("/"))}var i=t.split(/\//);return i.splice(0,3),"/hellofresh_website/".concat(i.join("/"))};e.Z=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.b.cloudfront;if(t=(null==t?void 0:t.startsWith("//"))?t.replace("//","https://"):t,!RegExp("^http(s)?.").test(t)&&e===r.b.cloudfront)return t.startsWith("/")?"/hellofresh_s3".concat(t):"/hellofresh_s3/".concat(t);try{var n=new URL(t);if(n.hostname.includes("cloudfront"))return i(t,r.b.cloudfront);if(n.href.includes("images.ctfassets.net/4frik3v39clf"))return i(t,r.b.everyplate_contentful);if(Object.keys(o.Z).some(function(t){return n.hostname.includes("cdn.".concat(t,".com"))})||n.hostname.includes("hf-website-live.s3-eu-west-1.amazonaws.com")||n.hostname.includes("hf-website-live.s3.eu-west-1.amazonaws.com"))return i(t,r.b.website);return n.pathname}catch(e){return t}}},427850:function(t,e,n){n.d(e,{Z:function(){return C}});var r=n(687800),o=n(827378),i=n(567921),u=n.n(i),a=n(768587),l=n(396887),c=n(647220),s=n(66077),f={thumbnailText:"",giveConsentBtnText:"",isEnabled:!1,overrides:[{systemCountry:n(26730).Z.GB,values:{isEnabled:!0,thumbnailText:"This video is hosted on YouTube and requires marketing cookies to be enabled to play. <br/>Press 'Play' to open the cookie settings and accept them or watch it directly on YouTube {{link}}.",linkText:"here",giveConsentBtnText:"Play"}}]},d=(0,s.Z)("lp.youtube-consent-display",f).useConfig,h=n(579894),v=n.n(h),y=n(553911),b=function(t,e,n){if(!e||!n)return[{type:"text",content:t.replace(/\s*{{link}}\s*\.?/,"")}];var r=t.split("{{link}}");if(1===r.length)return[{type:"text",content:t}];var o=[];return r[0]&&o.push({type:"text",content:r[0]}),o.push({type:"link",content:n,url:e}),r[1]&&o.push({type:"text",content:r[1]}),o},m=function(t){var e=t.thumbnailText,n=t.youtubeUrl,i=t.linkText,u=o.useMemo(function(){return b(e,n,i)},[e,n,i]);return(0,r.tZ)(r.HY,{children:u.map(function(t,e){return"link"===t.type&&t.url?(0,r.tZ)(v(),{href:t.url,target:"_blank",rel:"noopener noreferrer",children:t.content},e):(0,r.tZ)(y.Z,{copy:t.content,hasMarkdown:!0,markdownOptions:{forceInline:!0}},e)})})},p=function(t){var e=t.onConsentGiven,n=t.thumbnailUrl,o=t.youtubeUrl,i=t.height,u=t.width,l=d(),c=l.thumbnailText,s=l.giveConsentBtnText,f=l.linkText;return(0,r.tZ)(a.xu,{"data-test-id":"youtube-consent-preview",width:["100%","70%"],children:(0,r.BX)(a.xu,{width:"100%",my:"auto",textAlign:"center",position:"relative",height:0,__dangerouslySetCustomCSS:{paddingBottom:"".concat(Math.round((void 0===i?265:i)/(void 0===u?420:u)*100),"%")},children:[(0,r.tZ)(a.xu,{"data-test-id":"youtube-consent-thumbnail",position:"absolute",left:"zero",top:"zero",width:"100%",height:"100%",backgroundImage:n?"url(".concat(n,")"):void 0,backgroundSize:"cover",backgroundPosition:"center",backgroundColor:"global.white"}),(0,r.tZ)(a.xu,{position:"absolute",left:"zero",top:"zero",width:"100%",height:"100%",backgroundColor:"alias.interactive.foreground.disabled","aria-hidden":"true"}),(0,r.BX)(a.xu,{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",textAlign:"center",px:"global.xs",justifyContent:"center",children:[(0,r.tZ)(a.xu,{pb:"global.sm-2",children:(0,r.tZ)(a.xv,{color:"global.white",type:"body-sm-regular",children:(0,r.tZ)(m,{thumbnailText:c,youtubeUrl:o,linkText:f})})}),(0,r.tZ)(a.xu,{display:"flex",justifyContent:"center",children:(0,r.tZ)(a.zx.Primary,{onClick:function(t){t.preventDefault(),void 0!==window.UC_UI&&(window.UC_UI.showSecondLayer(),null==e||e())},"data-test-id":"youtube-consent-button",width:"auto",children:s})})]})]})})},g=n(939010),w=n(450979);function x(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 _(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n,r,o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var i=[],u=!0,a=!1;try{for(o=o.call(t);!(u=(n=o.next()).done)&&(i.push(n.value),!e||i.length!==e);u=!0);}catch(t){a=!0,r=t}finally{try{u||null==o.return||o.return()}finally{if(a)throw r}}return i}}(t,e)||k(t,e)||function(){throw TypeError("Invalid attempt to de
1structure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(t,e){if(t){if("string"==typeof t)return x(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 x(t,e)}}var S=function(t){var e=t.eventName,n=t.cookieKey,r=t.paramName,i=_((0,o.useState)(function(){return u().get(n)}),2),a=i[0],l=i[1],c=_((0,o.useState)(null),2),s=c[0],f=c[1];return(0,o.useEffect)(function(){var t=window.dataLayer||[],o=t.push.bind(t);return t.push=function(){for(var t=arguments.length,i=Array(t),a=0;a<t;a++)i[a]=arguments[a];var c=!0,s=!1,d=void 0;try{for(var h,v=i[Symbol.iterator]();!(c=(h=v.next()).done);c=!0){var y=h.value;if((null==y?void 0:y.event)===e){var b=u().get(n);l(b),r&&f(y[r])}}}catch(t){s=!0,d=t}finally{try{c||null==v.return||v.return()}finally{if(s)throw d}}return o.apply(void 0,function(t){if(Array.isArray(t))return x(t)}(i)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(i)||k(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())},t.forEach(function(t){(null==t?void 0:t.event)===e&&(l(u().get(n)),r&&f(t[r]))}),function(){t.push=o}},[e,n,r]),{cookieValue:a,paramValue:s}},C=function(t){var e,n=t.src,o=t.alt,i=t.isFullWidth,s=d().isEnabled,f=(0,c.e)(),h=S({eventName:"consent_status",cookieKey:w.Oz,paramName:"ucCategory"}),v=h.cookieValue,y=h.paramValue,b=(0,l.ew)(),m=!!f&&((null===(e=u().get(w.Oz))||void 0===e?void 0:e.includes('marketing":true'))||(null==v?void 0:v.includes('marketing":true'))||!!(null==y?void 0:y.marketing));if(!(0,g.Qd)(n))return(null==b?void 0:b.NODE_ENV)==="production"?null:(0,r.tZ)(a.xu,{"data-test-id":"invalid-video-url",width:["100%","70%"],"aria-live":"polite",children:(0,r.tZ)(a.xv,{color:"shared-alias.negative.foreground.default",children:"Invalid YouTube URL provided"})});if(s&&(!f||!m)){var x=(0,g.TO)(n,"high");return(0,r.tZ)(p,{thumbnailUrl:x,youtubeUrl:n,height:265,width:420})}return(0,r.tZ)(a.xu,{"data-test-id":"youtube-video",width:void 0!==i&&i?"100%":["100%","70%"],children:(0,r.tZ)(a.xu,{width:"100%",my:"auto",textAlign:"center",position:"relative",height:"0",__dangerouslySetCustomCSS:{paddingBottom:"".concat(Math.round(63.095238095238095),"%")},children:(0,r.tZ)(a.xu,{as:"iframe",position:"absolute",left:"zero",top:"zero",width:"100%",height:"100%",src:(0,g.iT)(n,s),frameBorder:"0",allowFullScreen:!0,title:o||"YouTube video player - embedded content","aria-label":"YouTube video content"})})})}},450979:function(t,e,n){n.d(e,{Jw:function(){return l},KH:function(){return i},OZ:function(){return s},Oz:function(){return y},Q7:function(){return d},QH:function(){return o},Qg:function(){return h},R2:function(){return a},_f:function(){return c},fv:function(){return v},ic:function(){return u},qC:function(){return r},rY:function(){return f}});var r="StoredCouponCode",o="hf_cart_id",i=30,u="hf_prefill_email",a="hf_ssr_cart_cct",l="hf_ssr_stored_plan",c="hf_ssr_stored_sku",s="classic",f="locale",d=300,h={veg:"veggie",family:"family"},v="hf_ssr_e_plans_config_is_freebie",y="hf_cookie_permissions"},939010:function(t,e,n){function r(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}n.d(e,{Qd:function(){return a},TO:function(){return u},iT:function(){return o}}),n(468891);var o=function(t,e){if(!t||"string"!=typeof t)return"";var n=t.match(/^.*(youtu.be\/|v\/|e\/|u\/\w+\/|embed\/|v=)([^#&?]*).*/);if(!n||!n[2])return"";var r=n[2];return e?"https://www.youtube-nocookie.com/embed/".concat(r):"https://www.youtube.com/embed/".concat(r)},i=function(t){if(!t||"string"!=typeof t)return null;var e=t.match(/^.*(youtu.be\/|v\/|e\/|u\/\w+\/|embed\/|v=)([^#&?]*).*/);return e&&e[2]?e[2]:null},u=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"medium",n=i(t);return n?"https://img.youtube.com/vi/".concat(n,"/").concat({default:"default",medium:"mqdefault",high:"hqdefault",maxres:"maxresdefault"}[e],".jpg"):""},a=function(t){if(!t)return!1;var e,n=(function(t){if(Array.isArray(t))return t}(e=t.split("://"))||function(t,e){var n,r,o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var i=[],u=!0,a=!1;try{for(o=o.call(t);!(u=(n=o.next()).done)&&(i.push(n.value),2!==i.length);u=!0);}catch(t){a=!0,r=t}finally{try{u||null==o.return||o.return()}finally{if(a)throw r}}return i}}(e,2)||function(t,e){if(t){if("string"==typeof t)return r(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 r(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.")}())[1];return!!n&&["www.youtube.com","youtu.be","youtube.com"].some(function(t){return n.startsWith(t)})}}}]);

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.