1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[905],{95159:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/products/[slug]",function(){return n(63593)}])},8453:function(e,t,n){"use strict";var i=n(85893),r=n(67294),o=n(9008),l=n.n(o),c=n(14640);let a="https://cdn.zoneit.app/og_image_a374cb449f.png";t.Z=e=>{var t,n;let{title:o,description:s,keywords:d,robots:u,canonicalURL:p,social:m}=e,x=(0,c.useTranslations)(),v=(0,r.useCallback)(e=>"".concat(e&&"".concat(e,": ")).concat(x("common.title-suffix")),[]),g=(0,r.useMemo)(()=>v(o),[o]);return(0,i.jsxs)(l(),{children:[(0,i.jsx)("title",{children:g}),(0,i.jsx)("meta",{name:"description",content:s}),(0,i.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),d&&(0,i.jsx)("meta",{name:"keywords",content:d}),u&&(0,i.jsx)("meta",{name:"robots",content:u}),p&&(0,i.jsx)("link",{rel:"canonical",href:p}),(0,i.jsx)("meta",{property:"og:site_name",content:"ZONEIT APP"}),(0,i.jsx)("meta",{property:"og:title",content:(null==m?void 0:m.title)?v(m.title):g}),(0,i.jsx)("meta",{property:"og:description",content:(null==m?void 0:m.description)?m.description:s}),(0,i.jsx)("meta",{property:"og:image",content:null!==(t=null==m?void 0:m.ogImageUrl)&&void 0!==t?t:a},"og-image"),(0,i.jsx)("meta",{property:"og:type",content:(null==m?void 0:m.article)?"article":"website"}),p&&(0,i.jsx)("meta",{property:"og:url",content:p}),(0,i.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,i.jsx)("meta",{name:"twitter:title",content:(null==m?void 0:m.title)?v(m.title):g}),(0,i.jsx)("meta",{name:"twitter:description",content:(null==m?void 0:m.description)?m.description:s}),(0,i.jsx)("meta",{name:"twitter:image",content:null!==(n=null==m?void 0:m.twitterImageUrl)&&void 0!==n?n:a},"twitter-image"),p&&(0,i.jsx)("meta",{name:"twitter:url",content:p}),(0,i.jsx)("meta",{property:"fb:app_id",content:"890897852580631"})]})}},33174:function(e,t,n){"use strict";var i=n(85893);n(67294);var r=n(44713),o=n(3044);let l={[r.Sx.GOOD]:"success.main",[r.Sx.FAIR]:"warning.main",[r.Sx.BAD]:"error.main"};t.Z=e=>{let t=e.type,n=e.size||8;return(0,i.jsx)(o.Z,{width:n,height:n,borderRadius:n/2,bgcolor:t?l[t]:"transparent",border:t?void 0:"1px solid",borderColor:t?void 0:"grey.500"})}},63593:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return C},default:function(){return F}});var i=n(85893),r=n(94274),o=n(2779),l=n(68011),c=n(8453),a=n(67294),s=n(3044),d=n(25675),u=n.n(d),p=n(98692),m=n(25941),x=n(4342),v=n(14640),g=n(35073),j=n(96285),h=n(44713);let y=(e,t)=>{if(!e)return;let n=(0,j.ZP)(e,"gram").to("best",null!=t?t:h.N7.METRIC),i=n.quantity%1==0?n.quantity.toFixed(0):n.quantity.toFixed(2).replace(/\.?0+$/,"");return"".concat(i," ").concat(n.unit)};var Z=n(77170);let f="containers.views.product.content.stats";var w=e=>{var t,n,r,o;let{product:l}=e,c=(0,v.useTranslations)(),{quantity:s}=l||{},d=y(s),u=(0,a.useMemo)(()=>{if(null==l?void 0:l.alternativeQuantity){let e=1*l.alternativeQuantity.value,t=c("metrics.".concat(l.alternativeQuantity.metric),{count:e});return"(".concat(e," ").concat(t,")")}return""},[]);return(0,i.jsxs)(g.Z,{gap:m.P.S,children:[(0,i.jsxs)(b,{children:[(0,i.jsx)(p.Z,{variant:"body1",color:"grey.600",children:c("".concat(f,".blocks.title"))}),(0,i.jsxs)(p.Z,{variant:"h5",color:"grey.800",children:[(0,i.jsx)(p.Z,{component:"span",variant:"h5",color:"grey.600",children:u}),"\xa0",d]})]}),(null==l?void 0:l.check)?(0,i.jsxs)(b,{children:["\xa0",(0,i.jsx)(Z.Z,{variant:"outlined",size:"medium",children:c("".concat(f,".check.button"))})]}):null,(0,i.jsxs)(b,{children:[(0,i.jsx)(p.Z,{variant:"body1",color:"grey.600",children:c("".concat(f,".category.title"))}),(0,i.jsx)(p.Z,{variant:"h5",color:"grey.800",children:(null==l?void 0:null===(t=l.group)||void 0===t?void 0:t.category)?"".concat(null==l?void 0:null===(r=l.group)||void 0===r?void 0:null===(n=r.category)||void 0===n?void 0:n.name).concat((null==l?void 0:l.combine)?" + ".concat(null==l?void 0:l.combine.name):""):"-"})]}),(0,i.jsxs)(b,{children:[(0,i.jsx)(p.Z,{variant:"body1",color:"grey.600",children:c("".concat(f,".group.title"))}),(0,i.jsx)(p.Z,{variant:"h5",color:"grey.800",children:(null==l?void 0:null===(o=l.group)||void 0===o?void 0:o.name)||"-"})]}),(null==l?void 0:l.lowFat)?(0,i.jsxs)(b,{children:[(0,i.jsx)(p.Z,{variant:"body1",color:"grey.600",children:c("".concat(f,".lowFat.title"))}),(0,i.jsx)(p.Z,{variant:"h5",color:"blue.main",children:c("common.yes")})]}):null,(null==l?void 0:l.ingredients)?(0,i.jsxs)(b,{children:[(0,i.jsx)(p.Z,{variant:"body1",color:"grey.600",children:c("".concat(f,".ingredients.title"))}),(0,i.jsx)(p.Z,{variant:"h5",color:"grey.800",children:null==l?void 0:l.ingredients})]}):null,(null==l?void 0:l.forms)?(0,i.jsxs)(b,{children:[(0,i.jsx)(p.Z,{variant:"body1",color:"grey.600",children:c("".concat(f,".form.title"))}),(0,i.jsx)(p.Z,{variant:"h5",color:"grey.800",children:null==l?void 0:l.forms})]}):null]})};let b=(0,x.ZP)(s.Z)(e=>{let{theme:t}=e;return{display:"flex",alignItems:"center",justifyContent:"space-between"}});(0,x.ZP)(s.Z)(e=>{let{theme:t}=e;return{width:24,height:24,color:t.palette.grey[500]}}),(0,x.ZP)(s.Z)(e=>{let{theme:t}=e;return{width:24,height:24,color:t.palette.warning.main}});var P=n(7761);let I="containers.views.recipe.content.download-app";var _=()=>{let e=(0,v.useTranslations)();return(0,i.jsx)(g.Z,{py:m.P.XXXL,children:(0,i.jsxs)(P.T,{children:[(0,i.jsx)(P.P,{xs:0,sm:2,lg:3}),(0,i.jsx)(P.P,{xs:4,sm:8,lg:6,children:(0,i.jsxs)(g.Z,{gap:m.P.L,children:[(0,i.jsxs)(g.Z,{gap:m.P.S,textAlign:"center",children:[(0,i.jsx)(p.Z,{variant:"h3",component:"h3",children:e("".concat(I,".title"))}),(0,i.jsx)(p.Z,{variant:"body1",component:"p",color:"grey.600",children:e("".concat(I,".description"))})]}),(0,i.jsx)(g.Z,{children:(0,i.jsx)(s.Z,{width:256,mx:"auto",children:(0,i.jsx)(Z.Z,{color:"warning",fullWidth:!0})})})]})}),(0,i.jsx)(P.P,{xs:0,sm:2,lg:3})]})})},R=n(63851),T=n(65350),k=n(97022),E=e=>{let{children:t}=e;return(0,i.jsx)(s.Z,{mt:{xs:"".concat(o.Mz.xs,"px"),sm:"".concat(o.Mz.sm,"px")},pt:m.P.M,children:(0,i.jsx)(R.Z,{children:(0,i.jsxs)(T.Z,{children:[(0,i.jsx)(k.Z,{xs:0,sm:1,md:2}),(0,i.jsx)(k.Z,{xs:12,sm:10,md:8,children:t}),(0,i.jsx)(k.Z,{xs:0,sm:1,md:2})]})})})},N=n(33174),S={src:"/_next/static/media/no-product.c4a3d79e.jpg"},A=n(5152);let O=n.n(A)()(n.e(667).then(n.bind(n,97667)),{loadableGenerated:{webpack:()=>[97667]},ssr:!1});var M=e=>{let{recipeIds:t}=e,n=(0,v.useTranslations)();return(null==t?void 0:t.length)?(0,i.jsxs)(g.Z,{gap:m.P.M,children:[(0,i.jsx)(p.Z,{variant:"h4",component:"h3",children:n("".concat("containers.views.product.content.relatedRecipes",".title"))}),(0,i.jsx)(g.Z,{direction:"row",gap:m.P.S,children:t.map(e=>(0,i.jsx)(O,{recipeId:e}))})]}):null},L=e=>{var t;let{product:n}=e,r=(0,a.useMemo)(()=>{var e;return null==n?void 0:null===(e=n.relatedRecipes)||void 0===e?void 0:e.map(e=>e.id)},[n]);return(0,i.jsxs)(E,{children:[(0,i.jsxs)(g.Z,{gap:m.P.XL,children:[(0,i.jsx)(s.Z,{position:"relative",sx:{aspectRatio:{xs:1,sm:16/9}},borderRadius:1,overflow:"hidden",children:(0,i.jsx)(u(),{src:(0,l.jj)(null===(t=n.image)||void 0===t?void 0:t.url)||S.src,alt:n.name,style:{objectFit:"cover"},fill:!0,priority:!0})}),(0,i.jsxs)(g.Z,{direction:"row",alignItems:"center",gap:m.P.S,children:[(0,i.jsx)(s.Z,{children:(0,i.jsx)(N.Z,{size:16,type:n.type})}),(0,i.jsx)(p.Z,{variant:"h3",component:"h1",children:n.name})]}),(0,i.jsx)(w,{product:n}),(0,i.jsx)(M,{recipeIds:r})]}),(0,i.jsx)(_,{})]})},C=!0,F=e=>{var t,n;let{product:a}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c.Z,{title:null==a?void 0:a.name,social:{ogImageUrl:(0,l.jj)(null==a?void 0:null===(t=a.image)||void 0===t?void 0:t.url),twitterImageUrl:(0,l.jj)(null==a?void 0:null===(n=a.image)||void 0===n?void 0:n.url)},canonicalURL:"https://zoneit.app/products/".concat(a.id,"-").concat(a.slug)}),(0,i.jsx)(r.Z,{defaultType:o.Nc.DARK,children:(0,i.jsx)(L,{product:a})})]})}},44713:function(e,t,n){"use strict";var i,r,o,l,c,a,s,d;n.d(t,{N7:function(){return i},Sx:function(){return o},a9:function(){return r}}),(c=i||(i={})).METRIC="metric",c.IMPERIAL="imperial",(a=r||(r={})).FATS="fats",a.CARBS="carbs",a.PROTEINS="proteins",(s=o||(o={})).GOOD="good",s.FAIR="fair",s.BAD="bad",(d=l||(l={})).GRAM="gram",d.KILOGRAM="kilogram",d.MILLILITER="milliliter",d.LITER="liter",d.TEASPOON="teaspoon",d.TABLESPOON="tablespoon",d.CUP="cup",d.PIECE="piece"},68011:function(e,t,n){"use strict";n.d(t,{NN:function(){return s},jj:function(){return o},uc:function(){return a}}),n(34804);var i=n(80129),r=n.n(i);let o=e=>{if(e)return e.startsWith("/")?"".concat("https://app-cms.zoneit.app").concat(e):e},l=e=>
1r().stringify(e,{encodeValuesOnly:!0}),c={fields:["amount"],populate:{product:{fields:["name","key","quantity","type","lowFat"],populate:{alternativeQuantity:{fields:["value","metric","description"]},combine:{populate:{category:{fields:["key"]}}},group:{fields:[],populate:{category:{fields:["key"]}}}}}}},a=e=>"/recipe-items/".concat(e,"?").concat(l({fields:["slug","title","description","preparing","cooking","notes"],populate:{image:{fields:["url"]},steps:{fields:["name","description","order"]},ingredients:c}})),s=e=>"/get-recipe-rating/".concat(e)},24654:function(){}},function(e){e.O(0,[127,567,274,888,774,179],function(){return e(e.s=95159)}),_N_E=e.O()}]);
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.