https://www.hellofresh.com/_next/static/chunks/ContentModuleImageSection/Section.a9737a8a13a3dc4a.js
1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[23303],{608053:function(e,t,r){r.d(t,{BG:function(){return c},Bx:function(){return n},nZ:function(){return o},tZ:function(){return l}});var n=function(e){return e.startsWith("#")},o=function(e){return Object.keys(e).map(function(t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e[t]))}).join("&")},i=function(e,t,r){if(!r||n(e))return e;var o=RegExp("([?&])"+t+"=.*?(&|$)","i"),i=-1!==e.indexOf("?")?"&":"?";return e.match(o)?e.replace(o,"$1"+t+"="+r+"$2"):e+i+t+"="+r},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return r.reduce(function(e,r){return i(e,r,t[r])},e)},c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null==e?void 0:e.startsWith("Tel:"))return e;var n=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},r,t);return a(e,n,Object.keys(n).sort(function(e,t){return e>t?1:e<t?-1:0}))},l=function(e){var t=e.slug,r=e.id,n=e.queryParams;return a("/recipes/".concat(t,"-").concat(r),void 0===n?{}:n,["locale"])}},545241:function(e,t,r){r.r(t);var n=r(687800);r(827378);var o=r(553911),i=r(768587),a=r(608053),c=r(832402),l=r(423825),u=r(783045);function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){s(e,t,r[t])})}return e}var f={afterSanitizeAttributes:function(e){"IMG"!==e.tagName||e.hasAttribute("alt")||e.setAttribute("alt","")}},p={overrides:{img:function(e){var t=e.alt,r=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["alt"]);return(0,n.tZ)("img",d({alt:void 0===t?"":t},r))}}};t.default=function(e){var t,r,b,y,g=e.title,m=e.imageUrl,O=e.imageHeight,v=e.subtitle,h=e.description,x=e.reverse,w=e.ctaText,j=e.ctaUrl,P=e.isWebsite,k=e.queryParams,S=e.textAlignment,Z=e.keepAssetSize,C=e.reorderImageOnMobile,A=e.buttonType,z=void 0===A?c.o.Primary:A,B=e.buttonAppearance,T=void 0===B?c.L.Brand:B,E=e.onCtaClick,D=(s(y={},c.o.Primary,i.zx.Primary),s(y,c.o.Secondary,i.zx.Secondary),s(y,c.o.Tertiary,i.zx.Tertiary),y)[z],_=(0,u.zv)();return(0,n.tZ)(i.xu,(r=d({maxWidth:["100%","960px","1140px"],marginX:"auto"},_&&{backgroundColor:"alias.elevation.base"}),b=b={children:(0,n.BX)(i.xu,{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:[C?"column-reverse":"column",x?"row-reverse":"row"],position:"relative",gap:["zero","global.md-3","global.md-3"],px:["sm-2","sm-2","zero"],children:[(0,n.tZ)(i.xu,{width:["100%","50%"],display:"flex",children:(0,n.tZ)(l.Z,{imageUrl:m,imageHeight:O,keepAssetSize:Z,title:g||""})}),(0,n.BX)(i.xu,{width:["100%","50%"],children:[(0,n.BX)(i.xu,{textAlign:P?"left":void 0===S?"center":S,__dangerouslySetCustomCSS:{"& a":{color:"primary.600"}},children:[v&&(0,n.BX)(i.xu,{pb:"sm-2",display:P?"none":"block",children:[(0,n.tZ)(i.xv,{type:"body-lg-regular",color:"primary.600","data-test-id":"section-subtitle",children:(0,n.tZ)(o.Z,{copy:v,hasMarkdown:!0,config:{HOOKS:f},markdownOptions:p})}),(0,n.tZ)(i.xu,{width:"60px",height:"3px",backgroundColor:"primary.600",mx:"auto"})]}),g&&(0,n.tZ)(i.xv,{as:"h2",my:"sm-2",children:(0,n.tZ)(o.Z,{copy:g,config:{ALLOWED_TAGS:["br","i","b"]},hasMarkdown:!0})}),(0,n.tZ)(i.xu,{marginLeft:"global.none",children:(0,n.tZ)(i.xv,{type:"body-md-regular","data-test-id":"section-description",children:(0,n.tZ)(o.Z,{copy:(t=h||"")?t.replace(/(<(?:ul|ol)[^>]*>)\s*(?:<br\s*\/?>)+\s*/gi,"$1").replace(/\s*(?:<br\s*\/?>)+\s*(<\/(?:ul|ol)>)/gi,"$1").replace(/(<\/li>)\s*(?:<br\s*\/?>)+\s*(?=<li|<\/(?:ul|ol)>)/gi,"$1"):t,hasMarkdown:!0,allowedAttrs:["target"],config:{HOOKS:f},markdownOptions:p})})})]}),w&&j&&(0,n.tZ)(i.xu,{marginX:"auto",marginTop:"md-2",children:(0,n.tZ)(i.rU,{href:(0,a.BG)(j,k),noStyle:!0,children:(0,n.tZ)(D,{appearance:T,onClick:E,"data-test-id":"
1content-module-image-section-cta-button",children:w})})})]})]})},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(b)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(b)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(b,e))}),r))}},832402:function(e,t,r){var n,o,i,a;r.d(t,{L:function(){return o},o:function(){return n}}),(i=n||(n={})).Primary="Primary",i.Secondary="Secondary",i.Tertiary="Tertiary",(a=o||(o={})).Brand="brand",a.Neutral="neutral",a.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.