1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5613],{3519:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>s.A});var s=a(27470);a(14451),a(89839),a(84838),a(12380)},3859:e=>{e.exports={shop:"Shop_shop__FmOBN",head:"Shop_head__VB3zD",nav:"Shop_nav__uP44D",navOpen:"Shop_navOpen___2y70",coffee:"Shop_coffee__Kdrtg",navBtn:"Shop_navBtn__c4195",isOpen:"Shop_isOpen__RI_Pe",hasFilters:"Shop_hasFilters__S3JM1",filterMenu:"Shop_filterMenu__filV4",Dropdown:"Shop_Dropdown__H50Sf",filterClear:"Shop_filterClear__w08zM",filterClearText:"Shop_filterClearText__JURef",sort:"Shop_sort__z8eiL",sortLabel:"Shop_sortLabel__ylVwo",items:"Shop_items__3w1HE",noProducts:"Shop_noProducts__wRvx6",spin:"Shop_spin__7_BOt",shine:"Shop_shine__uh_Wg"}},9146:(e,t,a)=>{"use strict";a.r(t),a.d(t,{CardProduct:()=>u,default:()=>h});var s=a(52100),n=a(79890),r=a(67367),l=a(47359),i=a(63922),o=a.n(i),d=a(47061),c=a(24719),_=a.n(c);let u=e=>{let{title:t="",detailsOneLine:a="",priceFormatted:i="",hasFrom:c=!1,className:u,target:h,rel:v,thumbnail:m,uri:p="",isSubscription:x=!1,ratingAverage:j=0,ratingTotal:g=0,dataLayer:b}=e;return(0,s.jsxs)(o(),{href:p||"/",target:h||void 0,rel:v||void 0,className:(0,l.A)(_().main,u,x&&_().isSubscription),onClick:()=>void(b&&(0,r.JN)("select_item",{items:[{...b,index:1}]})),children:[(0,s.jsxs)("div",{className:_().image,children:[m&&(0,s.jsx)(n.A,{...m,fullBleed:!0,alt:(null==m?void 0:m.alt)||"",sizes:{small:"100vw",medium:"50vw",large:"33.33vw"}}),x&&(0,s.jsx)("div",{className:(0,l.A)(_().titleSubs,"button-alt","h-m"),children:(0,s.jsx)("div",{children:(0,s.jsx)("span",{children:t})})})]}),(0,s.jsxs)("div",{className:_().detail,children:[(0,s.jsx)("h3",{className:(0,l.A)(_().title,"h4"),children:t}),a&&(0,s.jsx)("div",{className:(0,l.A)(_().desc,"copy"),dangerouslySetInnerHTML:{__html:a}}),(i||g>=1)&&(0,s.jsxs)("div",{className:(0,l.A)(_().footer,!i&&g>=1&&_().footerRatingOnly),children:[i&&(0,s.jsx)("div",{className:(0,l.A)(_().price,"button"),children:c?"From ".concat(i):i}),g>=1&&(0,s.jsx)(d.A,{ratingAverage:j,ratingTotal:g})]})]})]})},h=u},11502:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var s=a(52100),n=a(47359),r=a(92019),l=a.n(r);let i=e=>{let{title:t="",count:a}=e;return(0,s.jsxs)("div",{className:l().banner,children:[(0,s.jsx)("h1",{className:"h2",children:t}),"number"==typeof a&&a>0&&(0,s.jsxs)("div",{className:(0,n.$)(l().count,"label"),children:["(",a,")"]})]})}},23123:(e,t,a)=>{"use strict";a.d(t,{default:()=>f});var s=a(52100),n=a(11080),r=a(9146),l=a(3519),i=a(47359),o=a(60747),d=a.n(o);let c=e=>{let{active:t,placeholder:a,theme:n,onChange:r,onClick:o}=e;return"filter"===n?(0,s.jsxs)("div",{className:(0,i.A)(d().head,"button",(null==t?void 0:t.value)&&d().isActive),onClick:()=>{(null==t?void 0:t.value)?r(!1):o()},children:[(0,s.jsx)("span",{children:t?null==t?void 0:t.label:a}),(0,s.jsx)("div",{className:d().indicators,children:(0,s.jsx)(l.Ay,{svg:t?"close":"down"})})]}):(0,s.jsxs)("div",{className:(0,i.A)("button",d().head),onClick:()=>{o()},children:[(0,s.jsx)("span",{className:"h-m h-t",children:t?null==t?void 0:t.label:a}),(0,s.jsxs)("div",{className:d().indicators,children:[(0,s.jsx)(l.Ay,{svg:"down",className:"h-m h-t"}),(0,s.jsx)(l.Ay,{svg:"dropdownArrow",className:"h-d"})]})]})},_=e=>{let{active:t,options:a=[],onChange:n,isOpen:r=!1,setIsOpen:l,placeholder:o="",id:_="dropdown",theme:u="sort"}=e;return(0,s.jsxs)("div",{className:(0,i.A)(d().dropdown,r&&d().ddOpen,u&&d()["--theme-".concat(u)]),children:[(0,s.jsx)(c,{active:t,placeholder:o,theme:u,onChange:n,onClick:()=>{l&&l(!r)}}),(0,s.jsx)("div",{className:(0,i.A)(d().menu,r&&d().isOpen,"sort"===u&&"h-m"),children:(0,s.jsx)("ul",{className:(0,i.A)(d().menuList,"button-alt"),children:a.map((e,a)=>(0,s.jsx)("li",{children:(0,s.jsx)("button",{className:(0,i.A)(d().item,(null==t?void 0:t.value)===e.value&&d().isActive),onClick:()=>{n(e),l&&l(!1)},children:e.label})},"dropdown-options-".concat(_,"--").concat(a)))})}),"sort"===u&&(0,s.jsx)("select",{id:"sort",className:"h-d",onChange:e=>{let t=a.find(t=>t.value==e.target.value);t&&n(t)},children:a.map((e,t)=>(0,s.jsx)("option",{value:e.value,children:e.label},"".concat(_,"--").concat(t)))})]})};var u=a(64318),h=a(11502),v=a(67367),m=a(56093),p=a(85007),x=a.n(p),j=a(3859),g=a.n(j);let b=e=>{let{onClick:t}=e;return(0,s.jsxs)("div",{className:(0,i.A)(g().filterClear,"h-d"),children:[(0,s.jsx)("button",{className:(0,i.A)(g().filterClearText,"button-alt"),onClick:t,children:"Clear all"}),(0,s.jsx)("button",{onClick:t,children:(0,s.jsx)(l.Ay,{svg:"close"})})]})},f=e=>{var t;let{products:a=[],template:o="",title:d="",count:c=0,slug:p="",activeSlug:j=""}=e,{filters:f,categories:P}
1=(0,m.H)(),C="coffee"===o,[N,A]=(0,n.useState)({value:"featured",label:"Featured"}),[w,S]=(0,n.useState)(!1),[y,O]=(0,n.useState)(!1),[R,k]=(0,n.useState)(!1),F=P&&P.find(e=>e.slugId===p),[B,D]=(0,n.useState)({}),z=(null==(t=Object.values(B).filter(e=>e))?void 0:t.length)||0,L=((e,t)=>{let{sort:a,activeFilters:s={},filtersLength:n=0}=t,r=(null==a?void 0:a.value)||!1;if(!n&&!r)return e;let l=e;return n>0&&(l=e.filter(e=>Object.entries(s).every(t=>{var a;let[s,n]=t;return!n||(null==(a=e[s])?void 0:a.includes(n))}))),r&&"featured"!==r&&(l=x()(l,"date-no"===r||"date-on"===r?"createdAt":"price-hl"===r||"price-lh"===r?"priceVal":"name","date-no"===r||"z-a"===r||"price-hl"===r?"desc":"asc")),l})(a,{sort:N,activeFilters:B,filtersLength:z}),E=0===L.length,H=(0,n.useMemo)(()=>L.map((e,t)=>({...(null==e?void 0:e.dataLayer)||{},index:t,item_list_name:null==e?void 0:e.title})),[L]);return(0,n.useEffect)(()=>{(0,v.JN)("view_item_list",{items:H})},[H]),(0,s.jsxs)("div",{className:g().shop,children:[(0,s.jsx)(h.A,{title:d,count:c}),(0,s.jsxs)("div",{className:(0,i.A)(g().head,C&&g().coffee),children:[C?(0,s.jsxs)("div",{className:(0,i.A)(g().nav,R&&g().navOpen),children:[(0,s.jsx)("div",{className:g().filterMenu,children:null==f?void 0:f.map((e,t)=>{var a;let n=B[null==e?void 0:e.slug],r=!!n&&(null==e||null==(a=e.items)?void 0:a.find(e=>e.value===n));return(0,s.jsx)(_,{theme:"filter",placeholder:null==e?void 0:e.title,options:(null==e?void 0:e.items)||[],onChange:t=>{((e,t)=>{let a=B[e];a=a===t?null:t,D(t=>({...t,[e]:a}))})(null==e?void 0:e.slug,null==t?void 0:t.value),S(!1)},active:r,isOpen:w===(null==e?void 0:e.slug),setIsOpen:t=>{O(!1),S(!!t&&(null==e?void 0:e.slug))}},"shop-drodpdown-".concat(t,"-").concat(f))})}),z>0&&(0,s.jsx)(b,{onClick:()=>{D({})}})]}):(0,s.jsx)("div",{className:(0,i.A)(g().nav,R&&g().navOpen),children:(0,s.jsx)(u.A,{items:P,theme:"sort",activeSlug:j})}),(0,s.jsxs)("div",{className:(0,i.A)(g().sort),children:[!C&&(0,s.jsxs)("button",{className:(0,i.A)(g().navBtn,"button","h-d",R&&g().isOpen,F&&g().hasFilters),onClick:()=>k(!R),children:[null==F?void 0:F.title,(0,s.jsx)(l.Ay,{svg:"down"})]}),C&&(0,s.jsxs)("button",{className:(0,i.A)(g().navBtn,"button","h-d",R&&g().isOpen,z>0&&g().hasFilters),onClick:()=>k(!R),children:["Filter",(0,s.jsx)(l.Ay,{svg:"down"})]}),(0,s.jsx)("div",{className:(0,i.A)(g().sortLabel,"h-m","h-t","button"),children:"Sort by"}),(0,s.jsx)("div",{className:(0,i.A)(g().sortLabel,"h-d","button"),children:null==N?void 0:N.label}),(0,s.jsx)(_,{theme:"sort",bgColor:C?null:"black",active:N,options:[{value:"featured",label:"Featured"},{value:"a-z",label:"Alphabetical, A-Z"},{value:"z-a",label:"Alphabetical, Z-A"},{value:"price-lh",label:"Price, low to high"},{value:"price-hl",label:"Price, high to low"}],onChange:A,mobileVersion:!0,isOpen:y,setIsOpen:e=>{S(!1),O(e)}})]})]}),(0,s.jsxs)("div",{className:(0,i.A)(g().items,E&&g().noProducts),children:[L.map((e,t)=>(0,n.createElement)(r.default,{...e,key:"shop--".concat(t)})),E&&(0,s.jsx)("div",{className:g().noProducts,children:(0,s.jsx)("h5",{children:"No products found"})})]})]})}},24719:e=>{e.exports={main:"CardProduct_main__1zjgP",image:"CardProduct_image__byhFj",isSubscription:"CardProduct_isSubscription__9tkOo",title:"CardProduct_title__mMiDl",desc:"CardProduct_desc__fa04j",price:"CardProduct_price__1FG6S",footer:"CardProduct_footer__LxT1_",titleSubs:"CardProduct_titleSubs__QEsJS",detail
1:"CardProduct_detail__zJMUQ",footerRatingOnly:"CardProduct_footerRatingOnly__igCGT",detailInner:"CardProduct_detailInner__TDfy9",featured:"CardProduct_featured__yCzCi",newsPageFeatured:"CardProduct_newsPageFeatured__1ACXH",loading:"CardProduct_loading__ycEbR",button:"CardProduct_button__LZaxZ",shine:"CardProduct_shine__jHzD2",spin:"CardProduct_spin__cTFxa"}},45613:(e,t,a)=>{Promise.resolve().then(a.bind(a,94437)),Promise.resolve().then(a.bind(a,26486)),Promise.resolve().then(a.bind(a,20368)),Promise.resolve().then(a.bind(a,26001)),Promise.resolve().then(a.bind(a,10837)),Promise.resolve().then(a.bind(a,49183)),Promise.resolve().then(a.bind(a,69225)),Promise.resolve().then(a.bind(a,47256)),Promise.resolve().then(a.bind(a,84497)),Promise.resolve().then(a.bind(a,23123))},47061:(e,t,a)=>{"use strict";a.d(t,{A:()=>_});var s=a(52100),n=a(47359),r=a(90472),l=a.n(r);let i=15.491999999999999,o=[0,1,2,3,4].map(e=>e*i),d=o[4]+13.991999999999999,c=e=>{let{filled:t}=e;return(0,s.jsx)("svg",{className:l().starStrip,viewBox:"0 0 ".concat(d," ").concat(14),"aria-hidden":"true",focusable:"false",children:o.map(e=>(0,s.jsx)("g",{transform:"translate(".concat(e," 0) scale(").concat(.583,")"),children:(0,s.jsx)("path",{d:"M12 2.5l2.85 6.17 6.65.66-5 4.5 1.45 6.52L12 17.6 6.05 20.85 7.5 14.33l-5-4.5 6.65-.66L12 2.5z",className:t?l().starFilled:l().starEmpty})},e))})},_=e=>{let{ratingAverage:t,ratingTotal:a,className:r,variant:i="card",hideCount:o=!1,onClick:d}=e,_=Math.max(0,Math.min(100,t/5*100)),u="product"===i,h=u?"(".concat(a.toLocaleString()," Review").concat(1===a?"":"s",")"):"(".concat(a,")"),v=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:l().stars,children:[(0,s.jsx)("div",{className:l().starsBackground,children:(0,s.jsx)(c,{filled:!1})}),(0,s.jsx)("div",{className:l().starsForeground,style:{width:"".concat(_,"%")},children:(0,s.jsx)(c,{filled:!0})})]}),!o&&(0,s.jsx)("span",{className:(0,n.A)(l().count,u&&l().countReviews),"aria-hidden":"true",children:h})]}),m=o?"Rated ".concat(t.toFixed(1)," out of 5 stars"):"Rated ".concat(t.toFixed(1)," out of 5 stars, ").concat(a," reviews");return d?(0,s.jsx)("button",{type:"button",className:(0,n.A)(l().rating,l().ratingButton,u&&l().ratingProduct,r),onClick:d,"aria-label":"".concat(m,". Read reviews"),children:v}):(0,s.jsx)("div",{className:(0,n.A)(l().rating,r),role:"img","aria-label":m,children:v})}},56093:(e,t,a)=>{"use strict";a.d(t,{H:()=>l,ShopFiltersProvider:()=>i});var s=a(52100),n=a(11080);let r=(0,n.createContext)({filters:[],categories:[]}),l=()=>(0,n.useContext)(r),i=e=>{let{filters:t,categories:a,children:n}=e;return(0,s.jsx)(r.Provider,{value:{filters:t,categories:a},children:n})}},60747:e=>{e.exports={dropdown:"Dropdown_dropdown__3o4an","--theme-filter":"Dropdown_--theme-filter__ty171",disabled:"Dropdown_disabled__jJUWy",head:"Dropdown_head__q6nle","--theme-sort":"Dropdown_--theme-sort__2Bajz",isActive:"Dropdown_isActive__RBioU",indicators:"Dropdown_indicators__cbegv",ddOpen:"Dropdown_ddOpen__9rydK",menu:"Dropdown_menu__AOIpj",menuList:"Dropdown_menuList__nz1qT",item:"Dropdown_item__ItrK4",spin:"Dropdown_spin__CNSKH",shine:"Dropdown_shine__BOaI8"}},61347:e=>{e.exports={nav:"Nav_nav__EkkmE","--theme-blog":"Nav_--theme-blog__m8hRX","--theme-sort":"Nav_--theme-sort__SHGU0",spin:"Nav_spin__aWDYk",shine:"Nav_shine__OcS0s"}},64318:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var s=a(52100),n=a(86836),r=a(47359),l=a(61347),i=a.n(l);let o=e=>{let{items:t=[],theme:a="sort",activeSlug:l}=e;return(0,s.jsx)("ul",{className:(0,r.$)(i().nav,i()["--theme-".concat(a)]),children:null==t?void 0:t.map((e,t)=>{let{slug:a="",title:r=!1,slugId:i=""}=e,o="all"===i&&!l||l===i;return(0,s.jsx)("li",{className:"".concat(o?"is-active":""),children:(0,s.jsx)(n.default,{href:a,theme:o?"primary":"secondary",size:"medium",children:r})},"nav--"+t)})})}},90472:e=>{e.exports={rating:"CardProductRating_rating__eRdTx",ratingButton:"CardProductRating_ratingButton__e1lQr",countReviews:"CardProductRating_countReviews__exvT1",ratingProduct:"CardProductRating_ratingProduct__nGyfH",stars:"CardProductRating_stars__5Q9uj",starsBackgroun
1d:"CardProductRating_starsBackground__kbNZj",starsForeground:"CardProductRating_starsForeground__OCEJu",starStrip:"CardProductRating_starStrip__rOHs4",starFilled:"CardProductRating_starFilled__WPZ0X",starEmpty:"CardProductRating_starEmpty__WHPPZ",count:"CardProductRating_count__Yx3jf",spin:"CardProductRating_spin__KxxQ0",shine:"CardProductRating_shine__OuSk4"}},92019:e=>{e.exports={banner:"PageBanner_banner__eM0H7",count:"PageBanner_count__APa1i",spin:"PageBanner_spin___SxU4",shine:"PageBanner_shine__je1_p"}}}]);
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.