(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{KxBF:function(e,t){e.exports=function(e,t,n){var i=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(r);++i0){var n=d()(t.recipeCollections.map((function(e){return e.collections}))),i=Object(R.a)();r=Object(N.a)(n).filter((function(e){return e!==i}));var a=e.state.week||m()(r),o=n.filter((function(e){return e.day===a})).map((function(e){return e.recipes=e.recipes.filter((function(e){return 0===e.surcharge})),e}));return o.length>0?(l=!l,y.createElement("div",{key:t.id+"-"+a,className:b()({"bg-secondary":l})},y.createElement(f.RecipeWeeks,{key:t.id,id:t.id,title:t.name,showWeekSelector:!1,recipeCollections:o,isRecipeModalEnabled:!0}))):y.createElement("div",{key:t.id+"-"+a,className:b()({"bg-secondary":l})},y.createElement(f.RecipeWeeks,{key:t.id,id:t.id,title:t.name,showWeekSelector:!1,isRecipeModalEnabled:!0,recipeCollections:o}))}})),p=c()(a()(r),2).map((function(t,n){var i=t.split(" ")||[];i.shift();var r=i.map((function(e){return e.substring(0,3)})).join(" ");return y.createElement("button",{onClick:function(){return e.handleWeekChange(t)},key:t,className:b()("btn ml-2 px-2 px-md-3 px-lg-4",e.state.week===t||void 0===e.state.week&&0===n?"btn-primary":"btn-secondary")},r)})),g=y.createElement("div",{className:"d-flex justify-content-center"},y.createElement(S,{placeholder:"Bag",options:o.filter((function(e){return e.recipeCollections&&e.recipeCollections.length>0&&e.recipeCollections.some((function(e){return e.collections.length>0}))})).map((function(e){return{id:e.id,label:e.name}})),onSelect:function(e){return Object(j.a)(e,-90)}}),p),k="Our menus are all about quality and freshness, so we use what’s in season and the best ingredients. We’re committed to using locally grown meat, seafood, fruit and veggies, sourced from New Zealand’s finest producers whenever possible.",v={title:"My Food Bag Recipes by Nadia Lim - My Food Bag",description:{description:k},type:"article",canonicalUrlLink:{absoluteUrl:"/recipes"},sharingLinkImage:{id:"",__typename:"",alternateText:"",small:{id:"",file:{url:""}},large:{id:"",file:{url:""}}},allowIndexing:"MFB"===t.brand,keywords:[]};return y.createElement(W.a,{metadata:v,render:function(){return y.createElement(y.Fragment,null,y.createElement(h.Jumbotron,{img:{},id:"jumbo-recipes",title:"Our Delicious Recipes",description:k,splitOnMobile:!1},g,y.createElement(h.StickyHeader,{text:"Select a Bag",actionItem:g})),u)}})}})},t}(y.PureComponent),F=Object(B.WithPathRules)(Object(I.WithSiteMetadata)(z));t.default=F},Xp7I:function(e,t,n){var i=n("KxBF"),r=n("Sxd8");e.exports=function(e,t,n){return e&&e.length?(t=n||void 0===t?1:r(t),i(e,0,t<0?0:t)):[]}},"k8Y/":function(e,t,n){var i=n("alwl"),r=n("Z0cm");e.exports=function(e,t,n,a){return null==e?[]:(r(t)||(t=null==t?[]:[t]),r(n=a?void 0:n)||(n=null==n?[]:[n]),i(e,t,n))}}}]);