1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[69056],{86207:function(e,t,r){"use strict";r.d(t,{N:function(){return m}});var c=r(59499),n=r(67294),s=r(86896),i=r(11163),o=r(64487),a=r(94184),l=r.n(a),p=r(68746),u=r(7885),d=r(36858),f=r(34899),b=r(50395),_=r(15833),h=r.n(_),O=r(85893);function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,c)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?j(Object(r),!0).forEach((function(t){(0,c.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const m=({recipes:e,productSlug:t,totalRecipes:r,filterBy:c})=>{const a=(0,s.Z)(),{locale:_}=(0,i.useRouter)(),{0:j,1:m}=(0,n.useState)(!1),{0:w,1:y}=(0,n.useState)([]),v=()=>r===w.length;return(0,n.useEffect)((()=>{y(e)}),[e]),(0,O.jsxs)("div",{className:h().wrapper,"data-testid":"RecipeList",children:[0===w.length?(0,O.jsx)("p",{className:l()(h()["no-match"],"fluid-font-t5"),children:a.formatMessage(b.b.noResults)}):(0,O.jsx)("ul",{"aria-label":a.formatMessage(b.b.recipeListLabel),className:l()(h().list,"grid"),children:w.map((e=>(0,O.jsx)("li",{className:h().item,children:(0,O.jsx)(u.a,g({className:h().card,headingLevel:2},e))},e._id)))}),v()?null:(0,O.jsx)("div",{className:h()["button-wrapper"],children:(0,O.jsx)(p.z,{className:h()["load-more-btn"],disabled:j,onClick:async()=>{if(v()||!w)return;const e=w[w.length-1];m(!0);try{let r;r=t?await(0,f.wX)(e._createdAt,e._id,t,_,c):await(0,d.e5)(e._createdAt,e._id,_,c),r&&y([...w,...r])}catch(r){(0,o.Tb)(r)}m(!1)},children:j?a.formatMessage(b.b.loading):a.formatMessage(b.b.loadMore)})})]})}},6809:function(e,t,r){"use strict";r.d(t,{_:function(){return a}});var c=r(94184),n=r.n(c),s=r(21686),i=r.n(s),o=r(85893);const a=({title:e,backgroundColor:t,children:r})=>{const c={"--background-color":null===t||void 0===t?void 0:t.hex};return(0,o.jsxs)("section",{className:n()(i().wrapper,"stack-block"),"data-testid":"RecipeListHeader",style:c,children:[(0,o.jsx)("h1",{className:"fluid-font-t2",children:e}),(0,o.jsx)("div",{className:n()(i().content,"stack-block"),children:r})]})}},24080:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return b}});var c=r(59499),n=r(67294),s=r(11163),i=r(64487),o=r(19246),a=r(86207),l=r(6809),p=r(36858),u=r(85893);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,c)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){(0,c.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var b=!0;t.default=({productRecipesPage:{metadata:e,product:{metadata:t,category:r},recipes:c,filters:d,totalRecipes:b}})=>{const{locale:_}=(0,s.useRouter)(),{0:h,1:O}
1=(0,n.useState)({recipes:c,totalRecipes:b,filterBy:null});return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(l._,{backgroundColor:r.highlightColor,title:e.title,children:[(0,u.jsx)("p",{className:"fluid-font-t5",children:e.description}),(0,u.jsx)(o.I,{filterOptions:d,onFilter:async e=>{try{const r=await(0,p.oF)(t.slug,_,e);r&&O(f(f({},r),{},{filterBy:e}))}catch(r){(0,i.Tb)(r)}}})]}),(0,u.jsx)(a.N,f(f({},h),{},{productSlug:t.slug}))]})}},89441:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/recipes/product/[slug]",function(){return r(24080)}])},15833:function(e){e.exports={wrapper:"RecipeList_wrapper__PjcBO","button-wrapper":"RecipeList_button-wrapper__NUQF1","no-match":"RecipeList_no-match__SVr9p",list:"RecipeList_list__A4tS0",item:"RecipeList_item__ZS7OD"}},21686:function(e){e.exports={wrapper:"RecipeListHeader_wrapper__TwMJJ",content:"RecipeListHeader_content__l_okh"}}},function(e){e.O(0,[42967,49774,92888,40179],(function(){return t=89441,e(e.s=t);var t}));var t=e.O();_N_E=t}]); 2//# sourceMappingURL=[slug]-5a3ba5a12fd9ba6d.js.map
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.