PageSourceSearch

https://www.hellofresh.ie/_next/static/chunks/lp-hero-recipesSection.58f7dd8cddec6721.js

js hellofresh.ie collected 2026-09-29 18:51:48 UTC 45,905 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[25937],{567375:function(e,t,n){var r=n(752033),i=n(280068);e.exports=function(e,t){var n=-1,o=i(e)?Array(e.length):[];return r(e,function(e,r,i){o[++n]=t(e,r,i)}),o}},530454:function(e,t,n){var r=n(440699);e.exports=function(e){return r(e,5)}},278174:function(e,t,n){var r=n(523545),i=n(555807);e.exports=function(e,t){return r(i(e,t),1)}},555807:function(e,t,n){var r=n(66070),i=n(189278),o=n(567375),a=n(719785);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},437408:function(e,t,n){"use strict";var r=n(922820);e.exports=function(e,t){return r(e,36e5*Number(t))}},922820:function(e,t,n){"use strict";var r=n(244502);e.exports=function(e,t){return new Date(r(e).getTime()+Number(t))}},882392:function(e,t,n){"use strict";var r=n(922820);e.exports=function(e,t){return r(e,6e4*Number(t))}},530099:function(e,t,n){"use strict";var r=n(244502);e.exports=function(e,t){var n=r(e).getTime(),i=r(t).getTime();return n>i?-1:n<i?1:0}},973752:function(e,t,n){"use strict";var r=n(244502);e.exports=function(e,t){var n=r(e),i=r(t);return n.getTime()-i.getTime()}},773754:function(e,t,n){"use strict";var r=n(973752);e.exports=function(e,t){var n=r(e,t)/1e3;return n>0?Math.floor(n):Math.ceil(n)}},522777:function(e,t,n){"use strict";var r=n(530099),i=n(244502),o=n(773754),a=n(7106);e.exports=function(e,t,n){var l,c,u,s=n||{},d=r(e,t),f=s.locale,p=a.distanceInWords.localize;f&&f.distanceInWords&&f.distanceInWords.localize&&(p=f.distanceInWords.localize);var b={addSuffix:!!s.addSuffix,comparison:d};d>0?(l=i(e),c=i(t)):(l=i(t),c=i(e));var g=Math[s.partialMethod?String(s.partialMethod):"floor"],h=o(c,l),v=c.getTimezoneOffset()-l.getTimezoneOffset(),m=g(h/60)-v;if("s"===(u=s.unit?String(s.unit):m<1?"s":m<60?"m":m<1440?"h":m<43200?"d":m<525600?"M":"Y"))return p("xSeconds",h,b);if("m"===u)return p("xMinutes",m,b);if("h"===u)return p("xHours",g(m/60),b);if("d"===u)return p("xDays",g(m/1440),b);if("M"===u)return p("xMonths",g(m/43200),b);if("Y"===u)return p("xYears",g(m/525600),b);throw Error("Unknown unit: "+u)}},303333:function(e,t,n){"use strict";var r=n(932400);e.exports=function(e){return r(e,{weekStartsOn:1})}},932400:function(e,t,n){"use strict";var r=n(244502);e.exports=function(e,t){var n=t&&Number(t.weekStartsOn)||0,i=r(e),o=i.getDay();return i.setDate(i.getDate()+((o<n?-7:0)+6-(o-n))),i.setHours(23,59,59,999),i}},916368:function(e,t,n){"use strict";var r=n(410690);e.exports=function(e,t){return r(e,-Number(t))}},277425:function(e,t,n){"use strict";var r=n(822897),i=n(543790),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.b.cloudfront;if(t===r.b.cloudfront){var n=e.split(/\//);return n.splice(0,4),"/hellofresh_s3/".concat(n.join("/"))}if(t==r.b.everyplate_contentful){var i=e.split(/\//);return i.splice(0,4),"/everyplate_contentful/".concat(i.join("/"))}var o=e.split(/\//);return o.splice(0,3),"/hellofresh_website/".concat(o.join("/"))};t.Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.b.cloudfront;if(e=(null==e?void 0:e.startsWith("//"))?e.replace("//","https://"):e,!RegExp("^http(s)?.").test(e)&&t===r.b.cloudfront)return e.startsWith("/")?"/hellofresh_s3".concat(e):"/hellofresh_s3/".concat(e);try{var n=new URL(e);if(n.hostname.includes("cloudfront"))return o(e,r.b.cloudfront);if(n.href.includes("images.ctfassets.net/4frik3v39clf"))return o(e,r.b.everyplate_contentful);if(Object.keys(i.Z).some(function(e){return n.hostname.includes("cdn.".concat(e,".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 o(e,r.b.website);return n.pathname}catch(t){return e}}},617947:function(e,t,n){"use strict";var r=n(410690),i=n.n(r),o=n(447054);t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();return(0,o.Z)(i()(e,1))}},203794:function(e,t,n){"use strict";n.d(t,{E8:function(){return a},h9:function(){return l}});var r=n(26730),i={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:"€"},o={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"},a=function(e){return o[(e||"").toUpperCase()]||""},l=function(e,t,n,o,l){if(t)return"".concat(e).concat(t?"%":i[(n||"").toUpperCase()]||"");var c=a(n);return n===r.Z.JP&&(l=null),new Intl.NumberFormat(o,{style:"currency",currency:c,minimumFractionDigits:l>-1?l:e%1==0?0:2,maximumFractionDigits:2}).format(e)}},274309:function(e,t,n){"use strict";n.d(t,{Ww:function(){return g},X6:function(){return h},mO:function(){return x},Bf:function(){return y},IP:function(){return v},Mq:function(){return m}});var r=n(203794),i=n(285804),o=n.n(i),a=n(235935),l=n.n(a),c="gaEventTrigger",u="gaEventTrigger_EE",s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"freebie_mlp_v1"===e.split("|")[1]},d=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]},p=function(e,t){var n=t.utm_source;return f(e)&&"share"===n},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.toLowerCase().includes("about|faq")},g=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;if(p(e,r)){var u=o()(Date.now()),g=l()(Date.now());return{event:c,gaEventCategory:"RAF",gaEventAction:"ClickRedeemDiscount",gaEventLabel:"Helloshare|".concat(t,"|").concat(r.c,"|").concat(u,"-W").concat(g),event_name:"RAF_RedeemDiscountClick",brand:n,tribe:"Conversions",screen:"RAF"}}return s(e)?{event:c,gaEventCategory:"RedeemFreebie",gaEventAction:"ClickViewOurPlans",gaEventLabel:t,gaEventNonInteraction:!1}:d(e)||f(e)?{event:c,gaEventCategory:"CeleryLP",gaEventAction:"ClickGetMyFreeMeal",gaEventLabel:t,gaEventNonInteraction:!1}:b(e)?{event:c,gaEventAction:"CTA",event_name:"Navigation_PageCTAclick",
1screen:"Landing Page",brand:n,tribe:"Conversions Journey",user_action:t,gaEventLabel:t,gaEventCategory:"navigation",gaEventNonInteraction:!1}:{event:c,Campaign:"LandingPageCTA-".concat(e,"-").concat(t),event_name:"Navigation_PageCTAclick",screen:"Landing Page",brand:n,tribe:"Conversions Journey",user_action:i||"LP_getStarted",gaEventCategory:"navigation",gaEventAction:"CTA",gaEventLabel:i||"LP_getStarted",gaEventNonInteraction:!1,sectionType:a||""}},h=function(e){var t,n,r=e.category,i=e.action,o=e.label,a=e.nonInteraction,l=e.fowardToWebView,u=e.eventName,s=void 0===u?"":u,d=e.userAction,f=void 0===d?"":d,p=e.position,b=void 0===p?"":p,g=e.brand,h=void 0===g?"":g,v=e.tribe,m=void 0===v?"":v,y=e.screen,x=void 0===y?"":y,O=e.elementId,w=void 0===O?"":O,P=e.preferencesSelected,Z=void 0===P?"":P,j=e.faqCategory,S=void 0===j?"":j,k=e.numberOfPeople,C=void 0===k?"":k,E=(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}({event:c},s&&{event_name:s},f&&{user_action:f},b&&{position:b},h&&{brand:h},m&&{tribe:m},x&&{screen:x},w&&{elementId:w},Z&&{preferences_selected:Z},S&&{faq_category:S},C&&{n_people:C}),n=n={gaEventCategory:r,gaEventAction:i,gaEventLabel:o,gaEventNonInteraction:void 0!==a&&a},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);if(void 0!==l&&l){var D=new CustomEvent("webForwardedAnalyticsEvents",{detail:E});document.dispatchEvent(D)}return E},v=function(e){var t=e.ctaUrl,n=e.action,r=e.label;if(t.includes("plan-recommendations"))return h({category:"funnel",action:n,label:void 0===r?"":r,nonInteraction:!1})},m=function(e){var t=e.couponCode,n=e.product,i=e.productFamilyHandle,o=e.action,a=e.mealsPreset,l=void 0===a?"":a;if(n&&0!==Object.keys(n).length)return{event:u,gaEventCategory:"funnel",gaEventAction:o,gaEventLabel:"".concat(null==n?void 0:n.handle,"|").concat(l||"none","|").concat(t?"with-coupon":"no-coupon"),ecommerce:{click:{actionField:{currencyCode:(0,r.E8)(null==n?void 0:n.country)},products:[{name:null==n?void 0:n.name,id:null==n?void 0:n.handle,price:null==n?void 0:n.price,brand:"Hellofresh",category:i,variant:l||"none",coupon:t}]}}}},y=function(e){return h({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(",")})},x=function(e){var t=e.couponCode,n=e.product,i=e.productFamilyHandle,o=e.mealsPreset,a=void 0===o?"":o,l=e.isMultiPreferences,c=void 0!==l&&l,s=e.multiPreferences,d=void 0===s?"":s;if(n&&0!==Object.keys(n).length)return{event:u,gaEventCategory:"funnel",gaEventAction:"go to cart",gaEventLabel:"".concat(null==n?void 0:n.handle,"|").concat(c?d||"none":a||"none","|").concat(t?"with-coupon":"no-coupon"),ecommerce:{currencyCode:(0,r.E8)(null==n?void 0:n.country),add:{products:[{name:null==n?void 0:n.name,id:null==n?void 0:n.handle,price:null==n?void 0:n.price,brand:"Hellofresh",category:i,variant:c?d||"none":a||"none",coupon:t,quantity:1}]}}}}},366797:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(687800);n(827378);var i=n(277425),o=n(318066),a=n(768587),l=function(e){var t=e.text,n=e.foregroundColor,i=e.backgroundColor;return(0,r.tZ)(a.xu,{backgroundColor:"global.white",padding:"global.xxs",position:"absolute",borderTopLeftRadius:"border-radius-sm",borderTopRightRadius:"border-radius-sm","data-test-id":"lp-recipes-section-recipe-card-label",children:(0,r.tZ)(a.Vp.Static,{variant:"primary",size:"xs",backgroundColor:i,
1color:n,content:t.toLocaleUpperCase()})})},c=function(e){var t=e.name,n=e.headline,c=e.imageLink,u=e.imagePath,s=e.disabled,d=e.label,f=u||c,p=f?(0,i.Z)(f):null;return(0,r.BX)(a.xu,{height:"inherit",alignSelf:"stretch",opacity:s?.5:1,"data-test-id":"lp-recipes-section-recipe-card",children:[(0,r.BX)(a.xu,{position:"relative",cursor:"pointer",width:"100%",display:"flex",flexDirection:"column-reverse",flexGrow:"1",children:[p&&(0,r.tZ)(o.ZP,{role:"presentation","data-test-id":"recipe-card-image",quality:60,width:640,height:425,sizes:"(max-width: 768px) 60vw, (min-width: 769px) 30vw",src:p,alt:t,style:{width:"100%",height:"auto"}}),d&&(0,r.tZ)(l,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}({},d))]}),(0,r.BX)(a.xu,{minHeight:["109px","inherit"],px:"global.sm-1",pt:"global.sm-1",pb:"global.md-1",textAlign:"left",children:[(0,r.tZ)(a.xv,{as:"h4",children:t}),(0,r.tZ)(a.xv,{type:"body-md-regular",children:n})]})]})}},798297:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return e2}});var r,i,o=n(687800),a=n(827378),l=n(169821),c=n(768587),u=n(632117),s=n(164528),d=n(617947),f=n(273656),p=n(887824),b=n(278174),g=n.n(b);function h(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}function v(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}function m(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var y=function(e,t){return t&&t.length?e.filter(function(e){return t.includes(e.product)}):[]},x=function(e){return e.map(function(e){var t=e.courses.filter(function(e){return!e.recipe.tags.length||!e.recipe.tags.some(function(e){return"thermomix"===e.type})});return m(v({},e),{courses:t})})},O=function(e){return e.map(function(e){var t=e.courses.filter(function(e){return!e.chargeSetting||(e.chargeSetting.reason,!1)});return m(v({},e),{courses:t})})},w=function(e,t){return e.tags.some(function(e){return e.type===t})},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=g()(e,"courses").map(function(e){return v({index:e.index},e.recipe)});return t&&n.sort(function(e,n){var r=w(e,t),i=w(n,t);return r&&!i?-1:!r&&i?1:0}),n},Z=function(e,t){return e.some(function(e){return t.includes(e.type)})},j=function(e,t){var n;return function(e){if(Array.isArray(e))return h(e)}(n=new Set(e.flatMap(function(e){return e.preferences}).filter(function(e,t,n){return n.findIndex(function(t){return t.preset===e.preset})===t}).filter(function(e){return t.includes(e.preset)}).flatMap(function(e){return e.recommended})))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return h(e,void 0);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 h(e,void 0)}}(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},S=n(608053),k=n(274309),C=n(912496),E=n(321815),D=n(140224),A=n(458735),I=n(295332),L=n(384949),T=n(410690),z=n.n(T),R=n(916368),M=n.n(R),U=n(15764),B=n.n(U),N=n(208195),_=n.n(N),W=n(303333),F=n.n(W),X=function(e,t){var n=(0,A.Z)(e);return(0,I.Z)(z()(n,t),L.ZF)},G=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return Array.from({length:t},function(t,n){return X(e,n)})},H=function(e,t){var n=(0,I.Z)(M()(e,1),L.ZF);return{startMonth:K(e,n,"MMM","start",t),endMonth:K(e,e,"MMM","end",t),startDay:K(e,n,"DD","start",t),endDay:K(e,e,"DD","end",t)}},K=function(e,t,n,r,i){return"Invalid Date"!==t&&(0,I.Z)({start:B()(_()(e),2),end:B()(F()(e),2)}[r],n||"DD MMM",i)},q=function(e){var t=e.currentWeek,n=e.activeWeek,r=e.onWeekChange,i=G(t,3),a=(0,D.O)().locale,u=function(e){r(e)};return(0,o.tZ)(c.xu,{display:"flex",justifyContent:"center",alignItems:"center",mb:"global.sm-2",minHeight:"62px","data-test-id":"lp-recipes-section-weekly-navigation",children:(0,o.tZ)(l.Z,{children:(0,o.tZ)(c.dm,{"aria-label":"segmented buttons",size:"sm",children:i.map(function(e){var t=H(e,a),r=t.startMonth,i=t.endMonth,l=t.startDay,s=t.endDay;return(0,o.tZ)(c.dm.Button,{"data-test-id":"button-for-".concat(e),"data-component-id":"weekly-button",onClick:function(){return u(e)},active:e===n,children:(0,o.BX)(c.xu,{flexDirection:"column",children:[(0,o.tZ)(c.xu,{children:r===i?r:"".concat(r,"-").concat(i)}),(0,o.tZ)(c.xu,{children:"".concat(l,"-").concat(s)})]})},e)})})})})},$=n(366797),J=n(553911),V=n(581340),Y=function(e){var t=e.ctaText,n=e.ctaSubtitle,r=e.ctaURL,i=e.onClick,a=e.sectionId,l=(0,V.t)();return t?(0,o.BX)(c.xu,{id:a,"data-test-id":"lp-recipes-section-cta",display:"flex",flexDirection:"column",alignItems:"center",children:[n&&(0,o.tZ)(c.xv,{as:"h3",children:n}),(0,o.tZ)(c.xu,{children:(0,o.tZ)(c.zx.Primary,{onClick:function(){i(),l.push(r)},children:(0,o.tZ)(J.Z,{copy:t,hasMarkdown:!0})})})]}):null}
1,Q=["recipes.category","recipes.nutrition","recipes.steps"],ee={menus:[],recipes:[],recipesWithIngredients:{},selectedProduct:""},et="cuisines",en="tags",er="thermomix",ei=function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()};function eo(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}function ea(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}function el(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function ec(e,t){return function(e){if(Array.isArray(e))return e}(e)||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),!t||o.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return eo(e,t);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 eo(e,t)}}(e,t)||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 eu=function(e){var t,n,r,i,l,u,b=e.recipesProducts,g=e.showNextWeekRecipes,h=e.trackCtaGoToCartEvent,v=e.ssrData,m=e.title,w=e.description,D=e.subtitle,A=e.backgroundColor,I=e.ctaText,L=e.ctaURL,T=e.sectionId,z=e.ctaSubtitle,R=e.queryParams,M=e.useRecipesGrid,U=e.filterTags,B=void 0===U?[]:U,N=e.filterCuisines,_=void 0===N?[]:N,W=e.filterPreferences,F=void 0===W?[]:W,X=e.filterLabel,G=void 0===X?void 0:X,H=e.showLoadMoreButton,K=void 0!==H&&H,V=e.anchorName,eo=(0,p.Z)().push,eu=ec((0,C.I)(),1)[0],es=(0,s.ZP)("landing-pages").translateRaw,ed=(0,E.Z)(),ef=ec((0,a.useState)(ee),2),ep=ef[0],eb=ef[1],eg=ec((0,a.useState)((0,d.Z)()),2),eh=eg[0],ev=eg[1],em=ec((0,a.useState)(6),2),ey=em[0],ex=em[1],eO=ec((0,a.useState)(!1),2),ew=eO[0],eP=eO[1];(0,a.useEffect)(function(){eP(!0),setTimeout(function(){eP(!1)},500)},[eh]);var eZ=(0,a.useCallback)(function(){if(!b)return{};var e=b.find(function(e){return e.default})||b[0];return{handle:e.handle,sortPreference:e.sortPreference}},[b]),ej=(0,f.rS)({weeks:eh,exclude:Q},{enabled:g}),eS=ej.data,ek=ej.isFetched;(0,a.useEffect)(function(){if(ek&&eS){var e=eS.items,t=O(B.includes(er)?e:x(e)),n=eZ(),r=n.handle,i=n.sortPreference,o=y(t,[r]),a=P(o,i)||[];if(B.length&&(a=eC(a,en,B)),_.length&&(a=eC(a,et,_)),F.length){var l=j(o,F);a=a.filter(function(e){return l.includes(e.index)})}G&&(a=a.filter(function(e){var t=e.label;return t&&t.handle===G})),eb(function(e){return el(ea({},e),{menus:t,recipes:a,selectedProduct:r})})}},[ek,eS,eZ]);var eC=function(e,t,n){return e.map(function(e){return Z(e[t],n)?e:null}).filter(function(e){return!!e})};return(0,o.tZ)(c.xu,el(ea({},V&&{id:V}),{backgroundColor:A,px:"global.none",py:"global.xl-1","data-test-id":"lp-recipes-section-menu-by-week",maxWidth:["100%","100%","1140px"],marginX:"auto",paddingX:["global.sm-1","global.sm-1","zero"],children:(0,o.BX)(c.xu,{display:"grid",gridTemplateColumns:"1fr",gap:"sm-2",justifySelf:"center",children:[(0,o.BX)(c.xu,{"data-test":"lp-recipes-section-title-bar",textAlign:"center",children:[D&&(0,o.BX)(c.xu,{children:[(0,o.tZ)(c.xv,{type:"body-md-regular",color:"alias.brand.foreground.default","data-test-id":"title-bar-subtitle",children:(0,o.tZ)(J.Z,{copy:ei(D),hasMarkdown:!0})}),(0,o.tZ)(c.xu,{width:"60px",height:"3px",backgroundColor:"alias.brand.foreground.default",mx:"auto",px:"global.md-1",my:"global.xs",children:(0,o.tZ)(c.iz,{variant:"horizontal"})})]}),m&&(0,o.tZ)(c.xu,{marginX:"global.xxs",mb:"global.xs","data-test-id":"title-bar-title",children:(0,o.tZ)(c.xv,{as:"h2",children:(0,o.tZ)(J.Z,{copy:m,hasMarkdown:!0,config:{ALLOWED_TAGS:["br","i","b"]}})})}),w&&(0,o.tZ)(c.xv,{type:"body-md-regular","data-test-id":"title-bar-description",children:(0,o.tZ)(J.Z,{copy:w,hasMarkdown:!0})})]}),(0,o.tZ)(q,{currentWeek:(0,d.Z)(),activeWeek:eh,onWeekChange:ev}),(null==ep?void 0:null===(u=ep.recipes)||void 0===u?void 0:u.length)?(n=void 0===(t=ep.recipes)?[]:t,r=K&&M?n.filter(function(e,t){return t<ey}):n,l=ed?(i=es("landing-pages.load-more-button")).charAt(0).toUpperCase()+i.slice(1):es("landing-pages.load-more-button"),(0,o.BX)(c.xu,{mb:"global.md-2","data-test-id":"lp-recipes-section-menu-by-week-recipes",children:[(0,o.tZ)(c.xu,{display:"grid",gridAutoFlow:"row",gridTemplateColumns:["repeat(1, 1fr)","repeat(3, 1fr)"],justifySelf:"center",gap:"sm-2",mt:"global.sm-1",mb:"global.md-3",children:r.map(function(e,t){return(0,o.tZ)(c.xu,{mb:"global.sm-2",backgroundColor:"global.white",boxShadow:"shadow-sm",children:ew?(0,o.tZ)(c.xu,{backgroundColor:"global.gray.300",width:"100%",height:"300px"}):(0,o.tZ)($.Z,ea({},e))},t)})}),K&&ey<n.length&&(0,o.tZ)(c.xu,{display:"flex",justifyContent:"center",my:"global.md-1","data-test-id":"lp-recipes-section-menu-by-week-load-more-btn",children:(0,o.tZ)(c.zx.Primary,{onClick:function(){ex(ey+6)},width:"auto",children:l})})]})):(0,o.tZ)(o.HY,{children:"No Recipe found"}),L&&(0,o.tZ)(Y,{onClick:function(){if(h&&eu.productSku){var e=v.productFamiliesInfo,t=v.voucherInfo,n=e.find(function(e){return e.children.some(function(e){return e.handle===eu.productSku})}),r=n.children.find(function(e){return e.handle===eu.productSku}),i=(0,k.mO)({couponCode:t["voucher.code"],product:r,productFamilyHandle:n.handle});i&&eo(i)}},ctaText:I,sectionId:T,ctaSubtitle:z,ctaURL:(0,S.BG)(L,R)})]})}))},es=n(530454),ed=n.n(es),ef=n(456552),ep=n(671718),eb=n(447178),eg=n(699219);function eh(e,t,n,r,i,o,a){try{var l=e[o](a),c=l.value}catch(e){n(e);return}l.done?t(c):Promise.resolve(c).then(r,i)}var ev=(r=function(e,t){var n,r,i,o,a,l,c=arguments;return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;
1function l(o){return function(l){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}(this,function(u){switch(u.label){case 0:return n=e.ids,r=e.systemCountry,i=e.locale,a=void 0===(o=e.sort)?"created":o,l=e.parentSpan,[4,(c.length>2&&void 0!==c[2]?c[2]:ep.Z)("/recipes/recipes",t,{query:{ids:n.join(","),country:r,locale:i,sort:
1a},parentSpan:l,fetchSpanAttributes:{"request.backend_service":"shopping-platform-service","request.backend_action":"get-all-recipes"}})];case 1:return[2,u.sent().json()]}})},i=function(){var e=this,t=arguments;return new Promise(function(n,i){var o=r.apply(e,t);function a(e){eh(o,n,i,a,l,"next",e)}function l(e){eh(o,n,i,a,l,"throw",e)}a(void 0)})},function(e,t){return i.apply(this,arguments)}),em=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,eb.Z)().fetch,r=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}({},e,(0,D.O)()),i=[eg.Z["recipe.byIds"],r];return(0,ef.useQuery)(i,function(){return ev(r,i,n)},t)},ey=function(e){var t=e.products,n=e.selectedHandle,r=e.onClick;return t&&1!==t.length?(0,o.tZ)(c.xu,{"data-test-id":"lp-recipes-section-product-selector",display:"flex",justifyContent:"center",alignItems:"center",mb:"global.sm-2",children:t&&t.length>0&&(0,o.tZ)(c.dm,{size:"lg",children:t.map(function(e,t){return(0,o.tZ)(c.dm.Button,{active:n===e.handle,onClick:function(){return r(e.handle)},children:e.label},t)})})}):null},ex=n(277425),eO=n(822897),ew=n(318066),eP=n(910043),eZ=n(1689);function ej(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}function eS(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var ek=function(e){var t=e.imageLink,n=e.imagePath,r=e.name,i=t||n;return(0,o.BX)(c.xu,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-start",px:"global.sm-1",children:[i?(0,o.tZ)(ew.ZP,{src:(0,ex.Z)(i),width:62,height:62,alt:null!=r?r:""}):(0,o.tZ)(c.xu,{verticalAlign:"middle",display:"inline-block",children:(0,o.tZ)(c.JO,{icon:(0,o.tZ)(eZ.Z,{}),"data-test-id":"open-box-star-icon",color:"shared-alias.neutral.border.default"})}),(0,o.tZ)(c.xu,{lineHeight:"line-height-sm-1",mt:"global.xs",textAlign:"center",children:(0,o.tZ)(c.xv,{type:"body-md-regular",children:r})})]})},eC=function(e){var t=e.ingredients,n=e.carouselProps;return(0,o.tZ)(c.xu,{position:"relative",m:["global.none","global.sm-2"],"data-test-id":"lp-recipes-section-recipe-ingredients-carousel",children:(0,o.tZ)(c.lr,eS(ej({"aria-label":"carousel"},n),{children:t.map(function(e){return(0,eP.az)(ek,eS(ej({},e),{key:e.id}))})}))})},eE=function(e){var t=e.ingredients,n=e.ingredientsLabel;return(0,o.BX)(c.xu,{"data-test-id":"lp-recipes-section-recipe-ingredients",backgroundColor:["shared-alias.neutral.background.lightest","transparent"],px:"global.sm-2",py:["global.none","global.xxs"],textAlign:["center","left"],children:[(0,o.tZ)(c.xu,{mt:"global.sm-2",children:(0,o.tZ)(c.xv,{as:"h3",children:n})}),(0,o.tZ)(c.xu,{children:(0,o.tZ)(eC,{ingredients:t,carouselProps:{id:"ingredient-carousel",showArrowNavigation:!0,showBulletPagination:!1,autosnap:!0,autosize:!0,perPage:4}})})]})},eD=n(931159),eA=n.n(eD),eI=n(522777),eL=n.n(eI),eT=n(437408),ez=n.n(eT),eR=n(882392),eM=n.n(eR),eU=n(852008),eB=function(e){var t=e.str,n=e.locale,r=void 0===n?"en-US":n,i=e.shortenMinutes,o=e.preparationThreshold;if(!t)return"";var a=eA()(t.split("PT")),l=[],c=new Date;if(a.match("H")){var u=a.split("H"),s=u.shift();a=u.join(),l.push(eL()(c,ez()(c,parseInt(s,10)),{locale:(0,eU.Z)(r),unit:"h"}))}if(a.match("M")){var d=a.split("M"),f=d.shift(),p=f>(void 0===o?120:o);a=d.join();var b=eL()(c,eM()(c,parseInt(f,10)),{locale:(0,eU.Z)(r),unit:p?"h":"m",partialMethod:"roun
1d"});if(void 0!==i&&i){var g=b.split(" ");g[1]=p?g[1]:"min",b=g.join(" ")}l.push(b)}return l.join(" ")},eN=function(e){var t=e.prepTime,n=e.tags,r=e.locale,i=e.timeItemProp,a=n.filter(function(e){return e.displayLabel});return(0,o.BX)(c.xu,{"data-test-id":"lp-recipes-section-recipe-time-tags",display:"flex",flexDirection:["column","row"],flexWrap:"wrap",justifyContent:["center","flex-start"],mt:"global.sm-1",children:[(0,o.tZ)(c.xu,{as:"span",display:"inline-block",itemProp:void 0===i?"":i,content:t,children:(0,o.tZ)(c.xv,{type:"body-md-bold",children:eB({str:t,locale:r,shortenMinutes:!0})})}),a.length>0&&(0,o.BX)(c.xu,{display:"flex",flexDirection:"row",justifyContent:["center","flex-start"],children:[(0,o.tZ)(c.xu,{as:"span",display:["none","inline-block"],mx:"global.xs",color:"global.gray.600",children:"|"}),(0,o.tZ)(c.xu,{mt:["global.sm-2","global.none"],children:(0,o.tZ)(c.xv,{type:"body-md-regular",color:"global.gray.600",children:a.map(function(e){return e.name}).join(" • ")})})]})]})},e_=function(e){var t=e.locale,n=e.name,r=e.headline,i=e.prepTime,a=e.tags,l=e.ingredients,u=e.ingredientsLabel;return(0,o.BX)(c.xu,{"data-test-id":"lp-recipes-section-recipe-description-review",display:"flex",flexDirection:"column",children:[(0,o.BX)(c.xu,{p:"global.md-2",textAlign:["center","left"],children:[(0,o.tZ)(c.xu,{maxWidth:["100%","90%"],children:(0,o.tZ)(c.xv,{as:"h2",children:n})}),(0,o.tZ)(c.xv,{as:"p",type:"body-lg-regular",children:r}),(0,o.tZ)(eN,{tags:a,prepTime:i,locale:t})]}),!!l.length&&(0,o.tZ)(eE,{ingredients:l,ingredientsLabel:u})]})},eW=n(268481),eF=function(e){var t,n,r=e.recipe,i=e.locale,l=e.ingredientsLabel,u=(0,eW.Sj)(),s=(0,a.useMemo)(function(){return(0,ex.Z)(null==r?void 0:r.imageLink,eO.b.website)},[r]);return r?(0,o.BX)(c.xu,{"data-test-id":"lp-recipes-section-recipe-preview",display:"flex",flexDirection:["column","row"],alignItems:"center",position:"relative",children:[(0,o.tZ)(c.xu,{display:"flex",justifyContent:"center",alignItems:"center",children:(0,o.tZ)(ew.ZP,{alt:r.name,width:"mobile"===u?420:"tablet"===u?470:560,height:380,src:s,style:{objectFit:"cover",objectPosition:"center",maxWidth:"560px",minWidth:"350px",height:"auto"}})}),(0,o.tZ)(c.xu,{width:["100%","50%"],pr:"global.sm-2",children:(0,o.tZ)(e_,(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}({},r),n=n={locale:i,ingredientsLabel:l},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))})]}):null},eX=n(432761),eG=function(e){var t=e.isOpen,n=e.handleClose,r=e.recipe,i=e.locale,a=e.ingredientsLabel,l=e.collapsableRef,u=e.transitionDuration,s="desktop"===(0,eW.Sj)();return(0,o.BX)(c.xu,{"data-test-id":"lp-recipes-section-preview",children:[(0,o.BX)(c.xu,{ref:l,maxHeight:t?"400px":"0",transition:"max-height ".concat(u,"ms"),overflow:"hidden",backgroundColor:"global.white",boxShadow:"global.sm",borderRadius:"global.sm",position:"relative",m:"global.xs",mb:"global.none",display:s?"block":"none",children:[(0,o.tZ)(c.xu,{"data-test-id":"lp-recipes-section-preview-close-button",position:"absolute",right:"sm-1",top:"sm-1",display:"flex",zIndex:1,children:(0,o.tZ)(c.hU.Secondary,{size:"lg",onClick:n,icon:(0,o.tZ)(eX.Z,{})})}),(0,o.tZ)(eF,{recipe:r,locale:null!=i?i:"",ingredientsLabel:a})]}),!s&&(0,o.tZ)(c.Vq,{isOpen:t,"data-test-id":"lp-recipes-section-preview-dialog",headless:!0,width:"calc(100vw - 15px)",hasCloseButton:!0,onClose:n,children:(0,o.tZ)(eF,{recipe:r,locale:null!=i?i:"",ingredientsLabel:a})})]})};function eH(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}function eK(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}function eq(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n}
1)(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function e$(e,t){return function(e){if(Array.isArray(e))return e}(e)||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),!t||o.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return eH(e,t);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 eH(e,t)}}(e,t)||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 eJ=function(e){var t,n,r,i,l,u,b,g,h=e.recipesProducts,v=e.showNextWeekRecipes,m=e.recipeIds,w=e.trackCtaGoToCartEvent,D=e.ssrData,A=e.title,I=e.description,L=e.subtitle,T=e.locale,z=e.ingredientsLabel,R=e.backgroundColor,M=e.ctaText,U=e.ctaURL,B=e.sectionId,N=e.ctaSubtitle,_=e.queryParams,W=e.showPreview,F=e.useRecipesGrid,X=e.filterTags,G=void 0===X?[]:X,H=e.filterCuisines,K=void 0===H?[]:H,q=e.filterPreferences,V=void 0===q?[]:q,eo=e.filterLabel,ea=void 0===eo?void 0:eo,el=e.showLoadMoreButton,ec=void 0!==el&&el,eu=e.anchorName,es=(0,p.Z)().push,ef="mobile"===(0,eW.Sj)(),ep=(0,a.useRef)(null),eb=e$((0,C.I)(),1)[0],eg=(0,s.ZP)("landing-pages").translateRaw,eh=e$((0,a.useState)(ee),2),ev=eh[0],ex=eh[1],eO=e$((0,a.useState)(null),2),ew=eO[0],eP=eO[1],eZ=e$((0,a.useState)(!1),2),ej=eZ[0],eS=eZ[1],ek=e$((0,a.useState)([]),2),eC=ek[0],eE=ek[1],eD=e$((0,a.useState)(6),2),eA=eD[0],eI=eD[1],eL=(0,E.Z)()?(i=eg("landing-pages.load-more-button")).charAt(0).toUpperCase()+i.slice(1):eg("landing-pages.load-more-button"),eT=(0,a.useCallback)(function(){if(!h)return{};var e=h.find(function(e){return e.default})||h[0];return{handle:e.handle,sortPreference:e.sortPreference}},[h]),ez=(0,f.rS)({weeks:(0,d.Z)(),exclude:Q},{enabled:v}),eR=ez.data,eM=ez.isFetched,eU=em({ids:eC,sort:""},{enabled:!1}),eB=eU.data,eN=eU.refetch,e_=eU.isFetched;(0,a.useEffect)(function(){!v&&(null==m?void 0:m.length)&&(1===m.length?eE(m[0].split(",")):eE(m))},[]),(0,a.useEffect)(function(){eC.length&&eN()},[eN,eC]);var eF=function(){var e=D.productFamiliesInfo;return!!(null==e?void 0:e.find(function(e){return e.tags.includes("is_seasonal")}))},eX=function(){var e;null==eB||null===(e=eB.items)||void 0===e||e.sort(function(e,t){return m.indexOf(e.id)-m.indexOf(t.id)})};(0,a.useEffect)(function(){e_&&eF()&&eX()},[e_]),(0,a.useEffect)(function(){if(eM&&eR){var e=eR.items,t=O(G.includes(er)?e:x(e)),n=eT(),r=n.handle,i=n.sortPreference,o=P(y(t,[r]),i)||[];if(G.length&&(o=eH(o,en,G)),K.length&&(o=eH(o,et,K)),V.length){var a=j(t,V);o=o.filter(function(e){return a.includes(e.index)})}ea&&(o=o.filter(function(e){var t=e.label;return t&&t.handle===ea})),ex(function(e){return eq(eK({},e),{menus:t,recipes:o,selectedProduct:r})})}},[eM,eR,eT]);var eH=function(e,t,n){return e.map(function(e){return Z(e[t],n)?e:null}).filter(function(e){return!!e})};(0,a.useEffect)(function(){if(e_&&eB){var e=eB.items,t=ed()(ev.recipesWithIngredients);if(1===eC.length){var n=e$(eC,1)[0],r=e$(e,1)[0];t[n]=r,eP(r),ex(function(e){return eq(eK({},e),{recipesWithIngredients:t})})}else e.forEach(function(e){t[e.id]=e}),ex(function(n){return eq(eK({},n),{recipes:e,recipesWithIngredients:t})})}},[v,eC,e_]);var eJ=function(e){var t=e.id;if((null==ew?void 0:ew.id)===t&&ej){eS(!1);return}var n=ev.recipesWithIngredients[t];if(n){eP(n),eS(!0);return}eP(e),eE([e.id]),eS(!0),ej&&eV(ep)},eV=function(e){setTimeout(function(){(null==e?void 0:e.current)&&e.current.scrollIntoView({behavior:"smooth",block:"center"})},150)},eY=function(e){var t=ej&&!!ew&&e.id!==ew.id;return(0,o.tZ)($.Z,eK({disabled:t},e))};return(null==ev?void 0:null===(g=ev.recipes)||void 0===g?void 0:g.length)?(0,o.tZ)(c.xu,eq(eK({"data-test-id":"lp-recipes-section-recipes-slider",pb:"global.md-2",pt:"global.sm-2",backgroundColor:R},eu&&{id:eu}),{children:(0,o.BX)(c.xu,{"data-test-id":"lp-recipes-section-recipes-slider-container",width:"90%",maxWidth:"1140px",my:"global.none",mx:"auto",children:[(0,o.tZ)(c.xu,{display:"flex",justifyContent:"center",mb:"global.md-1",children:(0,o.BX)(c.xu,{"data-test":"lp-recipes-section-title-bar",textAlign:"center",children:[L&&(0,o.BX)(c.xu,{children:[(0,o.tZ)(c.xv,{type:"body-md-regular",color:"alias.brand.foreground.default","data-test-id":"title-bar-subtitle",children:(0,o.tZ)(J.Z,{copy:ei(L),hasMarkdown:!0})}),(0,o.tZ)(c.xu,{width:"60px",height:"3px",backgroundColor:"alias.brand.foreground.default",mx:"auto",px:"global.md-1",my:"global.xs",children:(0,o.tZ)(c.iz,{variant:"horizontal"})})]}),A&&(0,o.tZ)(c.xu,{marginX:"global.xxs",mb:"global.xs","data-test-id":"title-bar-title",children:(0,o.tZ)(c.xv,{as:"h2",children:(0,o.tZ)(J.Z,{copy:A,hasMarkdown:!0,config:{ALLOWED_TAGS:["br","i","b"]}})})}),I&&(0,o.tZ)(c.xv,{type:"body-md-regular","data-test-id":"title-bar-description",children:(0,o.tZ)(J.Z,{copy:I,hasMarkdown:!0})})]})}),v&&(0,o.tZ)(ey,{onClick:function(e){var t=P(y(ev.menus,[e]));ex(eq(eK({},ev),{recipes:t,selectedProduct:e})),eS(!1)},products:h,selectedHandle:ev.selectedProduct}),(u=void 0===(l=ev.recipes)?[]:l,b=ec&&F?u.filter(function(e,t){return t<eA}):u,F?(0,o.BX)(c.xu,{"data-test-id":"lp-recipes-section-recipes-grid",children:[(0,o.tZ)(c.xu,{display:"grid",gridTemplateColumns:["repeat(1, 1fr)","repeat(2, 1fr)","repeat(3, 1fr)"],gap:"global.md-1",mb:"global.md-1",children:b.map(function(e){return(0,o.tZ)(c.xu,{children:eY(e)}
1,e.id)})}),ec&&eA<u.length&&(0,o.tZ)(c.xu,{display:"flex",justifyContent:"center",mt:"global.md-1",children:(0,o.tZ)(c.zx.Primary,{onClick:function(){eI(eA+6)},width:"auto",children:eL})})]}):(0,o.tZ)(c.xu,{"data-test-id":"lp-recipes-section-recipes-carousel",children:(n=(t={recipes:u,carouselProps:{id:"recipes-carousel",showArrowNavigation:!ef,showBulletPagination:!1,autosnap:!1,autosize:!0,perPage:ef?1.3:3.1}}).recipes,r=t.carouselProps,(0,o.tZ)(c.xu,{position:"relative",m:["global.none","global.xs"],"data-test-id":"lp-recipes-section-recipes-carousel",minWidth:"350px",children:(0,o.tZ)(c.lr,eq(eK({"aria-label":"carousel",carouselRole:"group"},r),{children:n.map(function(e){return W?(0,o.tZ)(c.xu,{as:"button",type:"button",mx:"global.xs",onClick:function(){return eJ(e)},cursor:"pointer",borderStyle:"none",background:"none",p:"global.none",textAlign:"left",children:eY(e)},e.id):(0,o.tZ)(c.xu,{as:"a",mx:"global.xs",href:(0,S.tZ)({id:e.id,slug:e.slug,queryParams:_}),textDecoration:"none",color:"inherit",children:eY(e)},e.id)})}))}))})),ew&&ej&&(0,o.tZ)(eG,{isOpen:ej,handleClose:function(){eS(!1)},recipe:ew,locale:T,ingredientsLabel:z,collapsableRef:function(e){return ep=e},transitionDuration:150}),U&&(0,o.tZ)(Y,{onClick:function(){if(w&&eb.productSku){var e=D.productFamiliesInfo,t=D.voucherInfo,n=e.find(function(e){return e.children.some(function(e){return e.handle===eb.productSku})}),r=n.children.find(function(e){return e.handle===eb.productSku}),i=(0,k.mO)({couponCode:t["voucher.code"],product:r,productFamilyHandle:n.handle});i&&es(i)}},ctaText:M,sectionId:B,ctaSubtitle:N,ctaURL:(0,S.BG)(U,_)})]})})):null},eV=n(112696),eY=eV.z.object({handle:eV.z.string().min(1,{message:"Product handle is required"}),sortPreference:eV.z.string().optional(),label:eV.z.string().min(1,{message:"Product label is required"}),default:eV.z.boolean().optional().default(!1)}),eQ=eV.z.object({id:eV.z.string(),title:eV.z.string().optional(),description:eV.z.string().optional(),subtitle:eV.z.string().optional(),showNextWeekRecipes:eV.z.boolean(),recipesProducts:eV.z.array(eY).optional(),recipeIds:eV.z.array(eV.z.string()).optional().default([]),showPreview:eV.z.boolean(),ingredientsLabel:eV.z.string().optional(),backgroundColor:eV.z.string().optional(),ctaText:eV.z.string().optional(),ctaURL:eV.z.string().optional(),ctaSubtitle:eV.z.string().optional(),useRecipesGrid:eV.z.boolean().optional(),filterTags:eV.z.array(eV.z.string()).optional(),filterCuisines:eV.z.array(eV.z.string()).optional(),filterPreferences:eV.z.array(eV.z.string()).optional(),filterAddOns:eV.z.array(eV.z.string()).optional(),filterLabel:eV.z.string().optional(),showLoadMoreButton:eV.z.boolean().optional().default(!1),trackCtaGoToCartEvent:eV.z.boolean().optional(),anchorName:eV.z.string().optional(),showMultiWeekRecipes:eV.z.boolean().optional(),queryParams:eV.z.custom(),sectionId:eV.z.string()});function e0(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}var e1=function(e){var t=e.showMultiWeekRecipes;return(0,o.tZ)(l.Z,{suspense:!0,children:(0,o.tZ)(c.xu,{children:t?(0,o.tZ)(eu,e0({},e)):(0,o.tZ)(eJ,e0({},e))})})};e1.displayName="RecipesSection";var e2=(0,u.S)(e1,eQ,!0)},912496:function(e,t,n){"use strict";n.d(t,{I:function(){return o}});var r=n(37017),i=(0,r.cn)({productSku:void 0,productPreset:void 0,familyHandle:void 0,familySize:void 0,familyMeals:void 0,planRecommendationShouldRedirectToPlans:!1,preferenceStatus:"not-selected",isPlansConfigLoading:!0}),o=function(){return(0,r.KO)(i)}},1689:function(e,t,n){"use strict";var r=n(687800);function i(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}function o(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n}
1)(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}n(827378),t.Z=function(e){var t=e.title,n=e.titleId,a=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["title","titleId"]);return(0,r.BX)("svg",o(i(o(i({width:"2.5rem",height:"2.5rem",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:t?"img":"graphics-symbol",color:"inherit","aria-hidden":!t},!t&&{focusable:!1}),{"aria-labelledby":n}),a),{children:[t?(0,r.tZ)("title",{id:n,children:t}):null,(0,r.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m29.585 6.493-6.39-.745L20.5 0l-2.695 5.748-6.39.745 4.724 4.298L14.885 17l5.615-3.092L26.115 17l-1.254-6.209 4.724-4.298Zm-7.746 1.11 3.138.367-2.319 2.11.62 3.07-2.778-1.53-2.778 1.53.62-3.07-2.32-2.11 3.139-.366L20.5 4.748l1.339 2.856Z",fill:"currentColor"}),(0,r.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m12.424 10.268-7.066 4L1 23.248l4.358 2.466v5.715L20.5 40l15.142-8.572v-5.714L40 23.247l-4.358-8.98-7.067-4v2.304l4.023 2.277L20.5 21.723 8.402 14.848l4.022-2.277v-2.303Zm-5.047 20v-3.411l9.51 5.384 2.603-5.157v10.041L7.377 30.268Zm11.793-7.02L6.793 16.24 3.66 22.449l12.377 7.006 3.133-6.208Zm14.453 3.61-9.51 5.383-2.604-5.157v10.041l12.114-6.857v-3.41Zm-11.793-3.61 3.134 6.207L37.34 22.45l-3.133-6.208-12.377 7.006Z",fill:"currentColor"})]}))}}}]);

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.