1"use strict";(self.webpackChunkatollon=self.webpackChunkatollon||[]).push([[172],{3740:function(e,t,n){var l=n(7387),a=n(6540),r=n(4589),i=n(8357),c=n(4763),s=n(9919),u=n(1919),o=n(8833);let d=function(e){function t(){return e.apply(this,arguments)||this}(0,l.A)(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(){return!1},n.render=function(){return a.createElement(a.Fragment,null,this.props.children)},t}(a.Component);t.A=e=>{var t,n,l,m,E,v,_,y,p,N,g,b,h,q,f,C,k;const[S,A]=a.useState(!1),[P,w]=a.useState(!1),[z,F]=a.useState(!1),I={slidesToShow:1,slidesToScroll:1,arrows:!0,dots:!1,infinite:!1,fade:!0,autoplay:!1};let T="";if(e.brand)switch(e.brand){case"bone":T="bone-roasters";break;case"greenwheat":T="greenwheat-freekeh";break;default:T=e.brand}return a.createElement(a.Fragment,null,a.createElement("section",{className:"product "+e.brand},a.createElement("div",{className:"product__header"},a.createElement("div",{className:"product__inner"},e.title&&a.createElement("h1",null,e.title.replace(" "+e.size,"",e.title)))),a.createElement("div",{className:"product__main"},e.freeSample&&a.createElement(i.N_,{className:"product__request-sample",to:"/"+T+"/request-a-sample/"},"FREE Sample"),a.createElement("div",{className:"product__inner"},a.createElement("div",{className:"product__gallery"+((null===(t=e.gallery)||void 0===t?void 0:t.length)>1?" has-arrows":"")},a.createElement(d,null,a.createElement(r.A,I,(null===(n=e.gallery)||void 0===n?void 0:n.length)>0&&e.gallery.map(((e,t)=>a.createElement("div",{className:"product__image"},e&&a.createElement(i.Vd,{asset:e}))))))),a.createElement("div",{className:"product__content"},a.createElement("div",{className:"product__sku-wrapper "+(0===(null===(l=e.availableIn)||void 0===l?void 0:l.length)?"product__sku-wrapper--none":"")},(null===(m=e.availableIn)||void 0===m?void 0:m.length)>0&&a.createElement("ul",{className:"product__sizes"},a.createElement("li",null,"Available In"),null===(E=e.availableIn)||void 0===E?void 0:E.map(((t,n)=>{var l,r;return a.createElement("li",{key:n},a.createElement(i.N_,{className:"btn"+((null===(l=t.url)||void 0===l?void 0:l.permalink)===e.permalink?" active":""),to:null===(r=t.url)||void 0===r?void 0:r.permalink},t.label))}))),e.sku&&a.createElement("span",{className:"product__sku"},"SKU ",e.sku)),(null===(v=e.richContent)||void 0===v?void 0:v.value)&&a.createElement("div",{className:"product__text"},a.createElement(c.A,{data:e.richContent})),"sunnyside"!==e.brand&&a.createElement("button",{className:"product__more",onClick:()=>w(!P)},"Learn More"),a.createElement("div",{className:"product__expanders"},a.createElement("ul",null,a.createElement("li",null,a.createElement("button",{onClick:()=>w(!P)},"Ingredients & Nutrition"," ",a.createElement("span",null,a.createElement(s.FW,null)))),a.createElement("li",null,a.createElement("button",{onClick:()=>F(!z)},"Directions & Storage"," ",a.createElement("span",null,a.createElement(s.FW,null))))),a.createElement(o.A,{form:!0,className:"product__enquire btn btn--animation",onClick:()=>A(!S)},"Enquire Now")))))),a.createElement("section",{className:"enquiry"+(S?" active":"")+" "+e.brand,"data-lenis-prevent":!0},a.createElement("div",{className:"enquiry__scroll"},a.createElement("div",{className:"enquiry__header"},a.createElement("div",{className:"enquiry__inner"},a.createElement("h4",null,"Enquire Now"),a.createElement("button",{onClick:()=>A(!S)},a.createElement(s.zC,null)))),a.createElement("div",{className:"enquiry__main"},a.createElement("div",{className:"enquiry__inner"},a.createElement("div",{className:"enquiry__product"},a.createElement("div",{className:"enquiry__title"},a.createElement("h5",null,e.title.replace(" "+e.size,"",e.title)),e.size&&a.createElement("ul",{className:"product__sizes"},a.createElement("li",null,a.createElement("span",{className:"btn"},e.size)))),a.createElement("div",{className:"enquiry__image"},(null===(_=e.gallery)||void 0===_?void 0:_.length)>0&&a.createElement(i.Vd,{asset:e.gallery[0]}))),a.createElement("div",{className:"enquiry__content"},(null===(y=e.richContent)||void 0===y?void 0:y.value)&&a.createElement("div",{className:"product__text"},a.createElement(c.A,{data:e.richContent}))),a.createElement("div",{className:"enquiry__form"},a.createElement(u.A,{form:e.form,title:e.title})))))),a.createElement("section",{className:"enquiry"+(P?" active":"")+" "+e.brand,"data-lenis-prevent":!0},a.createElement("div",{className:"enquiry__scroll"},a.createElement("div",{className:"enquiry__header"},a.createElement("div",{className:"enquiry__inner"},a.createElement("h4",null,"Ingredients & Nutrition"),a.createElement("button",{onClick:()=>w(!P)},a.createElement(s.zC,null)))),a.createElement("div",{className:"enquiry__main"},a.createElement("div",{className:"enquiry__inner"},a.createElement("div",{className:"enquiry__product"},a.createElement("div",{className:"enquiry__title"},a.createElement("h5",null,e.title.replace(" "+e.size,"",e.title)),e.size&&a.createElement("ul",{className:"product__sizes"},a.createElement("li",null,a.createElement("span",{className:"btn"},e.size)))),a.createElement("div",{className:"enquiry__image"},(null===(p=e.gallery)||void 0===p?void 0:p.length)>0&&a.createElement(i.Vd,{asset:e.gallery[0]}))),a.createElement("div",{className:"enquiry__content"},a.createElement("p",null,a.createElement("strong",null,"Ingredients")),(null===(N=e.richContent)||void 0===N?void 0:N.value)&&a.createElement("div",{className:"product__text"},a.createElement(c.A,{data:e.ingredients}))),(null===(g=e.nutritionalInformation)||void 0===g?void 0:g.length)>0&&a.createElement("div",{className:"enquiry__content"},a.createElement("p",null,a.createElement("strong",null,"Nutritional Information")),a.createElement("ul",null,null===(b=e.nutritionalInformation)||void 0===b?void 0:b.map(((e,t)=>a.createElement("li",{key:t},a.createElement("h5",null,e.label),a.createElement("p",null,e.value))))),(null===(h=e.nutritionalTable)||void 0===h?void 0:h.length)>0&&a.createElement("div",{className:"enquiry__table"},a.createElement("ul",null,a.createElement("li",null,a.createElement("h5",null,"Â "),a.createElement("span",null,e.tableColumnTitleOne?e.tableColumnTitleOne:"Per Serving"),a.createElement("span",null,e.tableColumnTitleTwo?e.tableColumnTitleTwo:"Per 100g")),null===(q=e.nutritionalTable)||void 0===q?void 0:q.map(((e,t)=>a.createElement("li",{key:t},a.createElement("h5",null,e.label),a.createElement("span",null,e.serveValue),a.createElement("span",null,e.perHundredValue))))))),e.allergens&&a.createElement("div",{className:"enquiry__content"},a.createElement("p",null,a.createElement("strong",null,"Allergens")),a.createElement("p",null,e.allergens)))))),a.createElement("section",{className:"enquiry"+(z?" active":"")+" "+e.brand},a.createElement("div",{className:"enquiry__scroll"},a.createElement("div",{className:"enquiry__header"},a.createElement("div",{className:"enquiry__inner"},a.createElement("h4",null,"Directions & Storage"),a.createElement("button",{onClick:()=>F(!z)},a.createElement(s.zC,null)))),a.createElement("div",{className:"enquiry__main"},a.createElement("div",{className:"enquiry__inner"},a.createElement("div",{className:"enquiry__product"},a.createElement("div",{className:"enquiry__title"},a.createElement("h5",null,e.title.replace(" "+e.size,"",e.title)),e.size&&a.createElement("ul",{className:"product__sizes"},a.createElement("li",null,a.createElement("span",{className:"btn"},e.size)))),a.createElement("div",{className:"enquiry__image"},(null===(f=e.gallery)||void 0===f?void 0:f.length)>0&&a.createElement(i.Vd,{asset:e.gallery[0]}))),a.createElement("div",{className:"enquiry__content enquiry__directions"},(null===(C=e.directionsStorage)||void 0===C?void 0:C.length)>0&&a.createElement("ul",null,null===(k=e.directionsStorage)||void 0===k?void 0:k.map(((e,t)=>a.createElement("li",{key:t},a.createElement("h5",null,e.label),a.createElement("div",null,e.value&&a.createElement("p",null,e.value),e.richValue&&a.createElement(c.A,{className:"structured",data:e.richValue}))))))))))))}}
1,8287:function(e,t,n){var l=n(6540),a=n(8357),r=n(5232),i=n(9919),c=(n(4763),n(8833));t.A=e=>{var t;let{cta:n,brand:s,categories:u,colorBg:o,colorText:d}=e;const m=(0,l.useRef)(),{0:E,1:v}=(0,l.useState)();return(0,l.useLayoutEffect)((()=>{const e=()=>{var e;v(null==m||null===(e=m.current)||void 0===e?void 0:e.offsetHeight)};return e(),window.addEventListener("resize",(()=>e())),()=>{window.removeEventListener("resize",(()=>e()))}}),[]),l.createElement("section",{className:"product__cta "+(n.brand?n.brand:s)},"woods"===n.brand&&l.createElement("div",{ref:m,className:"product__cta--edge"},l.createElement(i.Jd,{color:"#FFFFFF"})),l.createElement("div",{className:"product__cta--inner"},l.createElement("div",{className:"product__cta--media"},n.image&&l.createElement(a.Vd,{asset:n.image}),n.sunnysideSecondImage&&l.createElement(a.Vd,{asset:n.sunnysideSecondImage})),l.createElement("div",{className:"product__cta--content"},n.title&&l.createElement("h3",null,(0,r.Ay)(n.title)),"sunnyside"===s&&l.createElement("p",null,"Sunnyside frozen fruit and vegetable products capture peak flavour, colour and nutrition. Individually quick frozen for freshness, they offer year-round consistency, convenience and premium quality with no prep."),"sunnyside"===s&&l.createElement("div",{className:"sunnyside-quality__items"},l.createElement("div",{className:"sunnyside-quality__item"},l.createElement("div",{className:"sunnyside-quality__item-content"},l.createElement("p",null,"Highest",l.createElement("br",null),"Quality")),l.createElement("div",{className:"sunnyside-quality__item-icon"},l.createElement(i.n3,null))),l.createElement("div",{className:"sunnyside-quality__item"},l.createElement("div",{className:"sunnyside-quality__item-content"},l.createElement("p",null,"Peak",l.createElement("br",null),"Ripeness")),l.createElement("div",{className:"sunnyside-quality__item-icon"},l.createElement(i.kE,null))),l.createElement("div",{className:"sunnyside-quality__item"},l.createElement("div",{className:"sunnyside-quality__item-content"},l.createElement("p",null,"Quick",l.createElement("br",null),"Freeze")),l.createElement("div",{className:"sunnyside-quality__item-icon"},l.createElement(i.X_,null))),l.createElement("div",{className:"sunnyside-quality__item"},l.createElement("div",{className:"sunnyside-quality__item-content"},l.createElement("p",null,"Year-Round",l.createElement("br",null),"Availability")),l.createElement("div",{className:"sunnyside-quality__item-icon"},l.createElement(i.zv,null)))),(null===(t=n.buttons)||void 0===t?void 0:t.length)>0&&n.buttons.map(((e,t)=>{var n;return l.createElement(c.A,{className:"btn btn--animation",key:t,to:e.link[0].externalLink?e.link[0].externalLink:null===(n=e.link[0].internalLink)||void 0===n?void 0:n.permalink},e.title)})))))}}
1,2670:function(e,t,n){var l=n(6540),a=n(4506),r=n(6110);t.A=e=>{const t=(0,r.A)(),n=t.filter((t=>t.relatedProducts.some((t=>t.originalId===e.originalId))));if(n.length<3){const l=t.sort((()=>.5-Math.random())).filter((t=>t.brand===e.brand&&t.originalId!==e.originalId));for(let e=0;e<l.length;e++)n.length<3&&n.push(l[e])}if(n.length>0)return l.createElement(a.A,{title:"Recipes to inspire you",items:n,brand:e.brand})}},7362:function(e,t,n){var l=n(6540),a=n(8357),r=n(662);t.A=e=>{let{brand:t,related:n}=e;if(0!==(null==n?void 0:n.length))return l.createElement("section",{className:"product-archive "+t+" product-archive--related"},l.createElement("div",{className:"product-archive__inner"},l.createElement("h3",null,"More quality products"),l.createElement("div",{className:"product-archive__items"},(null==n?void 0:n.length)>0&&n.map(((e,t)=>l.createElement(a.N_,{to:e.permalink,key:t,className:"product-archive__item"},l.createElement(r.A,e)))))))}},7957:function(e,t,n){n.r(t);var l=n(6540),a=n(8357),r=n(3740),i=n(2670),c=n(7362),s=n(8287),u=n(1548);t.default=e=>{var t,n,o,d,m,E,v;let{pageContext:_,data:y}=e;let p={tags:(null==y||null===(t=y.datoCmsSunnysideProduct)||void 0===t?void 0:t.seoMetaTags).tags.map((e=>{var t;"title"===e.tagName&&(e.content=(null==y||null===(t=y.datoCmsSunnysideProduct)||void 0===t?void 0:t.title)+" Bulk Online | Edlyn Foods");if("meta"===e.tagName){var n,l,a;if("og:title"===e.attributes.property||"twitter:title"===e.attributes.name)e.attributes.content=(null==y||null===(n=y.datoCmsSunnysideProduct)||void 0===n?void 0:n.title)+" Bulk Online | Edlyn Foods";if("og:description"===e.attributes.property||"twitter:description"===e.attributes.name)e.attributes.content="Bulk order "+(null==y||null===(l=y.datoCmsSunnysideProduct)||void 0===l?void 0:l.title)+". Edlyn Foods supports the food service industry.";if("description"===e.attributes.name)e.attributes.content="Bulk order "+(null==y||null===(a=y.datoCmsSunnysideProduct)||void 0===a?void 0:a.title)+". Edlyn Foods supports the food service industry."}return e}))};const N=e=>{let{red:t,green:n,blue:l}=e;return"rgb("+t+", "+n+", "+l+")"};let g=!1;var b;null!=y&&null!==(n=y.datoCmsSunnysideProduct)&&void 0!==n&&n.sunnysideProductCategories&&(null==y||null===(b=y.datoCmsSunnysideProduct)||void 0===b||b.sunnysideProductCategories.forEach((e=>{e.title.toLowerCase().includes("fruit")&&(g=!0)})));return l.createElement(l.Fragment,null,l.createElement(a.by,{publishedAt:null==y||null===(o=y.datoCmsSunnysideProduct)||void 0===o||null===(d=o.meta)||void 0===d?void 0:d.publishedAt}),l.createElement(a.HG,{seo:p},l.createElement("body",{className:"product-template"}),l.createElement("style",{type:"text/css"},"\n body {\n --color-bg: "+N((null==y?void 0:y.datoCmsSunnysideProduct.colourBg)||{red:0,green:0,blue:0})+";\n --color-text: "+N((null==y?void 0:y.datoCmsSunnysideProduct.colourText)||{red:0,green:0,blue:0})+";\n }\n ")),l.createElement(r.A,Object.assign({},null==y?void 0:y.datoCmsSunnysideProduct,{form:null==y?void 0:y.productForm})),(null==y||null===(m=y.datoCmsSunnysideProduct.productCta)||void 0===m?void 0:m.length)>0&&l.createElement(s.A,{brand:"sunnyside",cta:null==y?void 0:y.datoCmsSunnysideProduct.productCta[0]}),l.createElement(i.A,{brand:"sunnyside",originalId:null==y?void 0:y.datoCmsSunnysideProduct.originalId}),l.createElement(c.A,{related:null==y||null===(E=y.datoCmsSunnysideProduct)||void 0===E?void 0:E.related,brand:"sunnyside"}),(null==y||null===(v=y.datoCmsSunnysideProduct.imageContentCta)||void 0===v?void 0:v.length)>0&&l.createElement(u.A,Object.assign({isFruit:g,colorBg:null==y?void 0:y.datoCmsSunnysideProduct.colourBg,colorText:null==y?void 0:y.datoCmsSunnysideProduct.colourText,brand:"sunnyside"},null==y?void 0:y.datoCmsSunnysideProduct.imageContentCta[0])))}}}]); 2//# sourceMappingURL=component---src-templates-sunnyside-product-js-38cffe3a68a8285dc625.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.