PageSourceSearch

https://www.hellofresh.co.uk/_next/static/chunks/lp-hero-highlightedContentModule.a8eb3db5d745bef8.js

js hellofresh.co.uk collected 2026-09-24 18:03:57 UTC 6,968 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[74107],{553911:function(e,t,n){var r=n(687800),i=n(827378),o=n(72344),a=n(727650),l=n(497249),c=n(165218),s=n.n(c)()(function(){return Promise.resolve().then(n.bind(n,72344))},{loadableGenerated:{webpack:()=>[null]},ssr:!1});t.Z=function(e){var t,n,c=e.hasMarkdown,u=e.copy,d=e.markdownOptions,f=e.noSSR,p=e.allowedAttrs,y=e.config,h=(0,l.T)(),b="string"==typeof u?u.replace(/[ \t]{9,}/g," ".repeat(8)):u,m=(0,a.sanitize)(b,(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({ADD_ATTR:void 0===p?[]:p},void 0===y?{}:y),n=n={RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t));return((0,i.useEffect)(function(){if((u||"")!==m){var e=h.startSpan("sanitize-content-libray");e.setAttributes({"sanitize-content-libray":!0,"sanitize-error-detected":u!==m,"sanitize-message":"HTML content has been sanitized. Please check the content to ensure it is safe.","sanitize-original-content":u,"sanitize-sanitized-content":m}),e.end()}},[u,m,h]),c)?f?(0,r.tZ)(s,{options:d,children:m}):(0,r.tZ)(o.default,{options:d,children:m}):(0,r.tZ)("div",{dangerouslySetInnerHTML:{__html:m}})}},448767:function(e,t,n){n.d(t,{X:function(){return a}});var r=n(687800);n(827378);var i=n(768587),o=n(396887),a=function(e){var t=e.error,n=e.contentType,a=e.id,l=(0,o.ew)();return(null==l?void 0:l.NEXT_PUBLIC_SERVER_ENV)!=="live"&&(null==l?void 0:l.NEXT_PUBLIC_SERVER_ENV)?(0,r.tZ)(i.xu,{p:"global.xs",backgroundColor:"shared-alias.warning.background.light",children:(0,r.BX)(i.xu,{p:"global.md-1",borderColor:"shared-alias.warning.border.default",borderWidth:"0.25rem",borderStyle:"solid",children:[(0,r.tZ)(i.xv,{as:"p",styleAs:"h2",children:t.message}),(0,r.BX)(i.xv,{as:"p",styleAs:"h3",children:[(0,r.tZ)("small",{children:"Content Type:"}),"\xa0",n]}),(0,r.BX)(i.xv,{as:"p",styleAs:"h3",children:[(0,r.tZ)("small",{children:"Content ID:"}),"\xa0",a]}),(0,r.tZ)(i.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(a,"&contentTypeIds=").concat(n,"&displayedFieldIds=contentType"),children:"Find it on Contenful"})})]})}):null}},632117:function(e,t,n){n.d(t,{S:function(){return u}});var r=n(687800),i=n(827378),o=n(448767),a=n(497249),l=n(396887);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var s=function(e){var t,n=e.error,r=e.contentType,o=e.id,s=e.isSoftValidation,u=(0,l.ew)(),d=(0,a.T)(),f=function(e){if(Array.isArray(e))return e}(t=(0,i.useState)(!1))||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),2!==o.length);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw r}}return o}}(t,2)||function(e,t){if(e){if("string"==typeof e)return c(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,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.")}(),p=f[0],y=f[1];return((0,i.useEffect)(function(){if(!p&&n){var e=d.startSpan("landing-page.section-error-display"),t={"error.message":n.message,"contentful.contentType":r,"contentful.id":o,isSoftValidation:s};e.setAttributes(t),e.end(),y(!0)}},[n,r,o,d,p,s]),(null==u?void 0:u.NEXT_PUBLIC_SERVER_ENV)!=="live"&&(null==u?void 0:u.NEXT_PUBLIC_SERVER_ENV))?{serverEnv:u,tracer:d,isSent:p,setIsSent:y}:null};function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e.displayName||e.name||"Component",a=function(a){var l=a.sectionId,c=a.contentType||i,u=t.safeParse(a);if(s({error:u.error,contentType:c,id:l||"",isSoftValidation:n}),!u.success&&!n){var d=u.error;
1return(0,r.tZ)(o.X,{error:d,contentType:c,id:l||""})}return(0,r.tZ)(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},n?a:u.data))};return a.displayName="ValidatedComponent:".concat(i),a}},618896:function(e,t,n){n.r(t),n.d(t,{default:function(){return b}});var r=n(687800);n(827378);var i=n(553911),o=n(768587),a=n(632117),l=n(939010),c=n(427850),s=n(318066),u=n(277425),d=function(e){var t=e.src,n=e.smallVersion;return t?(0,r.tZ)(o.xu,{display:"flex",justifyContent:"center",width:n?["100%","70%"]:["100%"],position:"relative",minHeight:["300px","500px"],children:(0,r.tZ)(s.ZP,{src:(0,u.Z)(t),objectFit:"contain",layout:"fill",alt:"highlighted-content-image"})}):null},f=function(e){var t=e.src,n=e.smallVersion;return(0,l.Qd)(t)?(0,r.tZ)(c.Z,{src:t}):(0,r.tZ)(d,{src:t,smallVersion:n})},p=n(112696),y=p.z.object({title:p.z.string().optional(),subtitle:p.z.string().optional(),description:p.z.string().optional(),imageUrl:p.z.string().min(1,{message:"Image URL is required"}),smallVersion:p.z.boolean().optional().default(!1),sectionId:p.z.string()}),h=function(e){var t=e.title,n=e.subtitle,a=e.description,l=e.imageUrl,c=e.smallVersion,s=void 0!==c&&c;return(0,r.tZ)(o.xu,{maxWidth:["100%","960px","1140px"],marginX:"auto",py:"md-2",px:["sm-2","zero"],children:(0,r.BX)(o.xu,{display:"flex",alignItems:"center",flexDirection:"column",children:[t&&(0,r.tZ)(o.xu,{maxWidth:"600px",mb:"sm-1",children:(0,r.tZ)(o.xv,{as:"h2",textAlign:"center",children:t})}),n&&(0,r.tZ)(o.xu,{maxWidth:"600px",mb:"sm-1",children:(0,r.tZ)(o.xv,{as:"h2",textAlign:"center",children:n})}),a&&(0,r.tZ)(o.xu,{width:s?["100%","60%"]:["100%"],mb:"md-1",display:"flex",children:(0,r.tZ)(o.xv,{type:"body-md-regular",textAlign:"center",children:(0,r.tZ)(i.Z,{copy:a})})}),(0,r.tZ)(f,{src:l,smallVersion:s})]})})};h.displayName="HighlightedContentModule";var b=(0,a.S)(h,y,!0)}}]);

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.