PageSourceSearch

https://edlyn-prod.netlify.app/component---src-templates-edlyn-product-js-7e511a6ed1fdb169bca9.js

js edlyn-prod.netlify.app collected 2026-10-03 10:41:52 UTC 13,693 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkatollon=self.webpackChunkatollon||[]).push([[820],{3740:function(e,t,l){var n=l(7387),a=l(6540),r=l(4589),i=l(8357),c=l(4763),s=l(9919),u=l(1919),m=l(8833);let d=function(e){function t(){return e.apply(this,arguments)||this}(0,n.A)(t,e);var l=t.prototype;return l.shouldComponentUpdate=function(){return!1},l.render=function(){return a.createElement(a.Fragment,null,this.props.children)},t}(a.Component);t.A=e=>{var t,l,n,o,E,v,_,p,y,N,g,b,h,q,f,k,C;const[A,z]=a.useState(!1),[w,I]=a.useState(!1),[F,S]=a.useState(!1),P={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,P,(null===(l=e.gallery)||void 0===l?void 0:l.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===(n=e.availableIn)||void 0===n?void 0:n.length)?"product__sku-wrapper--none":"")},(null===(o=e.availableIn)||void 0===o?void 0:o.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,l)=>{var n,r;return a.createElement("li",{key:l},a.createElement(i.N_,{className:"btn"+((null===(n=t.url)||void 0===n?void 0:n.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:()=>I(!w)},"Learn More"),a.createElement("div",{className:"product__expanders"},a.createElement("ul",null,a.createElement("li",null,a.createElement("button",{onClick:()=>I(!w)},"Ingredients & Nutrition"," ",a.createElement("span",null,a.createElement(s.FW,null)))),a.createElement("li",null,a.createElement("button",{onClick:()=>S(!F)},"Directions & Storage"," ",a.createElement("span",null,a.createElement(s.FW,null))))),a.createElement(m.A,{form:!0,className:"product__enquire btn btn--animation",onClick:()=>z(!A)},"Enquire Now")))))),a.createElement("section",{className:"enquiry"+(A?" 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:()=>z(!A)},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===(p=e.richContent)||void 0===p?void 0:p.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"+(w?" 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:()=>I(!w)},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===(y=e.gallery)||void 0===y?void 0:y.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"+(F?" 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:()=>S(!F)},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===(k=e.directionsStorage)||void 0===k?void 0:k.length)>0&&a.createElement("ul",null,null===(C=e.directionsStorage)||void 0===C?void 0:C.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}))))))))))))}},8287:function(e,t,l){var n=l(6540),a=l(8357),r=l(5232),i=l(9919),c=(l(4763),l(8833));t.A=e=>{var t;let{cta:l,brand:s,categories:u,colorBg:m,colorText:d}=e;const o=(0,n.useRef)(),{0:E,1:v}
1=(0,n.useState)();return(0,n.useLayoutEffect)((()=>{const e=()=>{var e;v(null==o||null===(e=o.current)||void 0===e?void 0:e.offsetHeight)};return e(),window.addEventListener("resize",(()=>e())),()=>{window.removeEventListener("resize",(()=>e()))}}),[]),n.createElement("section",{className:"product__cta "+(l.brand?l.brand:s)},"woods"===l.brand&&n.createElement("div",{ref:o,className:"product__cta--edge"},n.createElement(i.Jd,{color:"#FFFFFF"})),n.createElement("div",{className:"product__cta--inner"},n.createElement("div",{className:"product__cta--media"},l.image&&n.createElement(a.Vd,{asset:l.image}),l.sunnysideSecondImage&&n.createElement(a.Vd,{asset:l.sunnysideSecondImage})),n.createElement("div",{className:"product__cta--content"},l.title&&n.createElement("h3",null,(0,r.Ay)(l.title)),"sunnyside"===s&&n.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&&n.createElement("div",{className:"sunnyside-quality__items"},n.createElement("div",{className:"sunnyside-quality__item"},n.createElement("div",{className:"sunnyside-quality__item-content"},n.createElement("p",null,"Highest",n.createElement("br",null),"Quality")),n.createElement("div",{className:"sunnyside-quality__item-icon"},n.createElement(i.n3,null))),n.createElement("div",{className:"sunnyside-quality__item"},n.createElement("div",{className:"sunnyside-quality__item-content"},n.createElement("p",null,"Peak",n.createElement("br",null),"Ripeness")),n.createElement("div",{className:"sunnyside-quality__item-icon"},n.createElement(i.kE,null))),n.createElement("div",{className:"sunnyside-quality__item"},n.createElement("div",{className:"sunnyside-quality__item-content"},n.createElement("p",null,"Quick",n.createElement("br",null),"Freeze")),n.createElement("div",{className:"sunnyside-quality__item-icon"},n.createElement(i.X_,null))),n.createElement("div",{className:"sunnyside-quality__item"},n.createElement("div",{className:"sunnyside-quality__item-content"},n.createElement("p",null,"Year-Round",n.createElement("br",null),"Availability")),n.createElement("div",{className:"sunnyside-quality__item-icon"},n.createElement(i.zv,null)))),(null===(t=l.buttons)||void 0===t?void 0:t.length)>0&&l.buttons.map(((e,t)=>{var l;return n.createElement(c.A,{className:"btn btn--animation",key:t,to:e.link[0].externalLink?e.link[0].externalLink:null===(l=e.link[0].internalLink)||void 0===l?void 0:l.permalink},e.title)})))))}},2670:function(e,t,l){var n=l(6540),a=l(4506),r=l(6110);t.A=e=>{const t=(0,r.A)(),l=t.filter((t=>t.relatedProducts.some((t=>t.originalId===e.originalId))));if(l.length<3){const n=t.sort((()=>.5-Math.random())).filter((t=>t.brand===e.brand&&t.originalId!==e.originalId));for(let e=0;e<n.length;e++)l.length<3&&l.push(n[e])}if(l.length>0)return n.createElement(a.A,{title:"Recipes to inspire you",items:l,brand:e.brand})}},7362:function(e,t,l){var n=l(6540),a=l(8357),r=l(662);t.A=e=>{let{brand:t,related:l}=e;if(0!==(null==l?void 0:l.length))return n.createElement("section",{className:"product-archive "+t+" product-archive--related"},n.createElement("div",{className:"product-archive__inner"},n.createElement("h3",null,"More quality products"),n.createElement("div",{className:"product-archive__items"},(null==l?void 0:l.length)>0&&l.map(((e,t)=>n.createElement(a.N_,{to:e.permalink,key:t,className:"product-archive__item"},n.createElement(r.A,e)))))))}},970:function(e,t,l){l.r(t);var n=l(6540),a=l(8357),r=l(5275),i=l(3740),c=l(2670),s=l(7362),u=l(8287);t.default=e=>{var t,l,m,d,o;let{pageContext:E,data:v}=e;let _={tags:(null==v||null===(t=v.datoCmsEdlynProduct)||void 0===t?void 0:t.seoMetaTags).tags.map((e=>{var t;"title"===e.tagName&&(e.content=(null==v||null===(t=v.datoCmsEdlynProduct)||void 0===t?void 0:t.title)+" Bulk Online | Edlyn Foods");if("meta"===e.tagName){var l,n,a;if("og:title"===e.attributes.property||"twitter:title"===e.attributes.name)e.attributes.content=(null==v||null===(l=v.datoCmsEdlynProduct)||void 0===l?void 0:l.title)+" Bulk Online | Edlyn Foods";if("og:description"===e.attributes.property||"twitter:description"===e.attributes.name)e.attributes.content="Bulk order "+(null==v||null===(n=v.datoCmsEdlynProduct)||void 0===n?void 0:n.title)+". Edlyn Foods supports the food service industry.";if("description"===e.attributes.name)e.attributes.content="Bulk order "+(null==v||null===(a=v.datoCmsEdlynProduct)||void 0===a?void 0:a.title)+". Edlyn Foods supports the food service industry."}return e}))};return n.createElement(n.Fragment,null,n.createElement(a.by,{publishedAt:null==v||null===(l=v.datoCmsEdlynProduct)||void 0===l||null===(m=l.meta)||void 0===m?void 0:m.publishedAt}),n.createElement(a.HG,{seo:_}),n.createElement(i.A,Object.assign({},null==v?void 0:v.datoCmsEdlynProduct,{form:null==v?void 0:v.productForm})),n.createElement(r.Ay,{data:null==v||null===(d=v.datoCmsEdlynProduct)||void 0===d?void 0:d.blocks,brand:"edlyn"}),n.createElement(c.A,{brand:"edlyn",originalId:null==v?void 0:v.datoCmsEdlynProduct.originalId}),n.createElement(s.A,{related:null==v||null===(o=v.datoCmsEdlynProduct)||void 0===o?void 0:o.related,brand:"edlyn"}),n.createElement(u.A,{cta:null==v?void 0:v.productCta}
1))}}}]);
2//# sourceMappingURL=component---src-templates-edlyn-product-js-7e511a6ed1fdb169bca9.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.