PageSourceSearch

https://blog.eden.co.uk/_next/static/chunks/2rtb-1ttao-tf.js?dpl=dpl_3XfyaxbmazSuQB6UyxcN9ope3evd

js eden.co.uk collected 2026-10-02 03:32:26 UTC 27,875 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,578798,e=>{"use strict";let t=(0,e.i(86854).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",0,t],578798)},612562,e=>{"use strict";var t=e.i(74961),r=e.i(898881),l=e.i(479656),a=e.i(578798);let s=e=>"number"==typeof e?`${e}px`:e,n=({className:e,height:r,top:a})=>{let n={};return void 0!==a&&(n.top=s(a)),void 0!==r&&(n.height=s(r)),(0,t.jsx)("div",{className:(0,l.twMerge)("pointer-events-none absolute top-0 z-40 w-full bg-[#000000] opacity-50",e),style:Object.keys(n).length>0?n:void 0,"aria-hidden":!0})},i=({navItems:e,itemsPerColumn:r,exploreAll:l,onMouseLeave:s})=>{let i=[...e],o=[];return 0===r.length&&i.length>0?o.push(i):r.forEach(e=>{let t=[];for(let r=0;r<e;r+=1){let e=i.shift();e&&t.push(e)}o.push(t)}),(0,t.jsxs)("div",{className:"relative flex w-full justify-center px-3",onMouseLeave:s,children:[(0,t.jsx)(n,{}),(0,t.jsxs)("div",{className:"z-50 mx-6 w-full rounded-b-xl bg-[#EDF2ED] p-10",children:[l?(0,t.jsxs)("a",{href:l.link,className:"mb-5 ml-2 flex items-center gap-1 text-base font-bold text-[#225A0D] no-underline",children:[l.text,(0,t.jsx)(a.ChevronRight,{className:"size-5 text-[#225A0D]","aria-hidden":!0})]}):null,(0,t.jsx)("div",{className:"grid justify-between gap-x-5 text-wrap",style:{gridTemplateColumns:`repeat(${o.length}, minmax(0, max-content))`},children:o.map((e,r)=>(0,t.jsx)("ul",{children:e.map((r,l)=>(0,t.jsxs)("li",{className:"mb-4 min-h-auto",children:[(0,t.jsx)("a",{href:r.allLink.url,className:"block px-2 py-1 font-semibold text-[#225A0D] no-underline",children:r.heading}),r.collapseDesktop?null:(0,t.jsxs)("ul",{children:[r.children.map(e=>(0,t.jsx)("li",{className:"w-full rounded-md hover:bg-[#bcceba]",children:(0,t.jsx)("a",{href:e.link,className:"block w-full px-2 py-1 leading-tight text-[#0C3300] no-underline",children:e.title})},e.link)),r.allLink.url?(0,t.jsx)("li",{className:"w-full rounded-md hover:bg-[#bcceba]",children:(0,t.jsx)("a",{href:r.allLink.url,className:"block w-full px-2 py-1 font-semibold leading-tight text-[#225A0D] no-underline",children:""!==r.allLink.text?r.allLink.text:"See all"})}):null]}),r.showDivider&&l!==e.length-1?(0,t.jsx)("hr",{className:"my-3 h-px w-3/4 border-[#0000001f]"}):null]},r.heading))},r))})]})]})};e.s(["EdenNavigationDesktopClient",0,({navigationBar:e,className:a,suppressWhenSearchFocused:s=!1})=>{let[n,o]=(0,r.useState)(void 0),[c,d]=(0,r.useState)(!1),[u,h]=(0,r.useState)(!1),m=(0,r.useRef)(null),x=()=>{m.current&&(clearTimeout(m.current),m.current=null)},f=()=>d(!1),p=()=>{x(),h(!1),f(),o(void 0)},g=u&&!s&&!c&&n&&n.megaNav&&n.megaNav.megaMenuItems.length>0;return(0,t.jsxs)("div",{className:(0,l.twMerge)("relative hidden md:block",a),children:[(0,t.jsx)("ul",{className:"relative ml-1.5 flex max-h-[28px] flex-wrap overflow-hidden before:pointer-events-none before:absolute before:left-0 before:right-0 before:top-full before:z-50 before:h-2 before:content-['']",onMouseEnter:()=>{x(),m.current=setTimeout(()=>h(!0),100)},onMouseLeave:p,onMouseUp:f,children:e.map(e=>(0,t.jsx)("li",{className:"hidden whitespace-nowrap md:block",children:(0,t.jsx)("a",{className:"block border-2 border-b-4 border-solid border-transparent px-3 no-underline hover:border-b-[#278002] focus:outline-none focus-visible:border-[#278002]",href:e.href??void 0,style:e.textColour?{color:e.textColour}:void 0,onMouseEnter:()=>o(e),onFocus:()=>o(e),onMouseDown:()=>d(!0),children:e.text})},e.text))}),(0,t.jsx)("div",{id:"desktop-mega-nav-menu",className:"absolute left-0 top-full w-full",children:g?(0,t.jsx)(i,{parentText:n.text,itemsPerColumn:n.megaNav.itemsPerColumns,navItems:n.megaNav.megaMenuItems,exploreAll:n.href?{text:`Explore all ${n.text}`,link:n.href}:void 0,onMouseLeave:p}):null})]})}],612562)},400950,e=>{"use strict";var t=e.i(74961),r=e.i(86854);let l=(0,r.default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);var a=e.i(578798);let s=(0,r.default)("menu",[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]]);var n=e.i(309427);function i(e){return(0,t.jsx)("svg",{viewBox:"0 0 512 512",fill:"
1currentColor","aria-hidden":"true",...e,children:(0,t.jsx)("g",{transform:"scale(1,-1) translate(0,-512)",children:(0,t.jsx)("path",{d:"M256 512c-141 0-256-115-256-256 0-141 115-256 256-256 141 0 256 115 256 256 0 141-115 256-256 256z m15-374c0-4-3-7-8-7l-31 0c-4 0-8 3-8 7l0 27c0 5 4 8 8 8l31 0c5 0 8-3 8-8z m56 185c0-9-1-17-4-24-2-7-6-13-9-18-4-5-9-11-15-18-6-8-12-14-15-19-4-5-7-12-10-19-2-7-4-15-4-24l-45 0c0 11 1 21 4 30 3 9 7 17 11 23 4 6 10 13 17 21 5 6 9 11 13 16 3 4 5 8 7 13 2 5 3 10 3 16 0 9-2 16-7 22-5 4-12 7-21 7-9 0-16-3-22-9-4-6-7-14-7-25l-47 0c0 15 3 29 10 40 6 11 14 19 26 25 11 5 24 8 39 8 16 0 30-2 41-8 12-5 20-12 26-22 6-10 9-21 9-35z"})})})}function o(e){return(0,t.jsx)("svg",{viewBox:"0 0 512 512",fill:"currentColor","aria-hidden":"true",...e,children:(0,t.jsx)("g",{transform:"scale(1,-1) translate(0,-512)",children:(0,t.jsx)("path",{d:"M507 120c-3 7-8 13-16 19l-83 58c-6 5-13 8-18 11-14 5-27 4-39-3-6-3-12-8-19-15l-19-18c-3-3-8-3-10-2l-2 1c0 0-2 1-2 1-8 4-19 11-31 22-12 10-24 21-39 36-12 12-24 25-36 39-11 13-19 23-22 30-1 1-1 2-2 3l0 2c-1 1-1 2-1 4 0 2 1 4 3 6l18 19c7 7 12 13 15 19 5 7 7 14 7 21 0 5-2 11-4 17-3 6-6 13-11 19l-58 82c-5 7-11 12-19 16-7 3-15 5-23 5-20 0-40-9-56-25-14-13-24-28-31-44-6-16-9-33-9-51 0-26 6-55 18-84 12-28 29-57 50-86 21-29 45-56 71-82 26-26 54-50 82-71 29-21 59-38 88-50 29-13 57-19 84-19 18 0 35 3 51 10 16 7 30 17 43 31 7 8 13 17 18 27 5 10 7 19 7 30 0 7-1 14-5 22z"})})})}var c=e.i(898881),d=e.i(479656),u=e.i(175148);let h={left:"flex-row-reverse gap-2",bottom:"flex-col gap-1.5",right:"flex-row gap-3"},m="inline-flex h-auto items-center px-2 py-0 text-start text-[#225A0D] hover:bg-accent";function x({icon:e,heading:r,subHeading:l,variant:a,iconClassName:s}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:(0,d.twMerge)("flex items-center justify-center text-3xl leading-none text-[#225A0D] [&_svg]:size-[1.55rem]",s),children:e}),(0,t.jsxs)("span",{className:"block text-start text-sm",children:[(0,t.jsx)("span",{className:(0,d.twMerge)("font-semibold","lg"===a?"text-base":void 0),children:r}),l?(0,t.jsx)("span",{className:"block",children:l}):null]})]})}let f=({icon:e,heading:r,subHeading:l,textLocation:a="bottom",variant:s="md",link:n,onClick:i,className:o,iconClassName:c,ariaLabel:f,rel:p})=>{let g={icon:e,heading:r,subHeading:l,variant:s,iconClassName:c};return n?(0,t.jsx)("a",{href:n,className:(0,d.twMerge)(m,h[a],"cursor-pointer no-underline",o),"aria-label":f??r,rel:p,children:(0,t.jsx)(x,{...g})}):i?(0,t.jsx)(u.Button,{type:"button",variant:"plain",className:(0,d.twMerge)(m,h[a],o),onClick:i,"aria-label":f??r,children:(0,t.jsx)(x,{...g})}):(0,t.jsx)("span",{className:(0,d.twMerge)(m,h[a],o),"aria-label":f??r,children:(0,t.jsx)(x,{...g})})},p=({items:e,goBack:r,seeAll:a,chevronIcon:s})=>{let n="flex w-full items-center justify-between py-4 pl-5 pr-3";return(0,t.jsxs)("div",{children:[(0,t.jsx)("hr",{className:"h-px border-0 bg-[#e5e7eb]"}),(0,t.jsxs)("ul",{children:[r?(0,t.jsxs)("li",{children:[(0,t.jsxs)("button",{type:"button",className:`-ml-1.5 flex items-center ${n}`,onClick:r.onClick,children:[(0,t.jsx)(l,{className:"size-5","aria-hidden":!0}),(0,t.jsx)("p",{className:"ml-2 text-base font-semibold",children:r.text})]}),(0,t.jsx)("hr",{className:"h-px border-0 bg-[#e5e7eb]"})]}):null,a?(0,t.jsxs)("li",{children:[(0,t.jsxs)("a",{className:n,href:a.href,children:[(0,t.jsxs)("p",{className:"text-base font-semibold",children:["See all in ",(0,t.jsx)("span",{className:"font-bold",children:a.text})]}),s]}),(0,t.jsx)("hr",{className:"h-px border-0 bg-[#e5e7eb]"})]}):null,e.map(e=>(0,t.jsxs)("li",{children:["href"in e?(0,t.jsxs)("a",{className:n,href:e.href,children:[(0,t.jsx)("p",{className:"text-base font-bold",children:e.text}),s]}):(0,t.jsxs)("button",{type:"button",className:n,onClick:e.onClick,children:[(0,t.jsx)("p",{className:"text-base font-bold",children:e.text}),s]}),(0,t.jsx)("hr",{className:"h-px border-0 bg-[#e5e7eb]"})]},e.text))]})]})};e.s(["EdenNavigationMobileClient",0,({navigationBar:e,logoSlot:r,phoneNumber:l,openHour:u,helpHref:h,menuIconSlot:m,phoneIconSlot:x,helpIconSlot:g,closeIconSlot:b,className:j})=>{let[v,N]=(0,c.useState)(!1),[w,y]=(0,c.useState)(0),[k,C]=(0,c.useState)(null),[S,E]=(0,c.useState)(null),I=(0,t.jsx)(a.ChevronRight,{className:"size-5 text-inherit","aria-hidden":!0}),D=e.map(e=>0===e.megaNavBlocks.length&&e.href?{text:e.text,href:e.href}:{text:e.text,onClick:()=>{C(e),y(1)}});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(f,{heading:"Menu",icon:m??(0,t.jsx)(s,{className:"size-7"}),textLocation:"bottom",onClick:()=>N(!0),ariaLabel:"menu"}),(0,t.jsxs)("div",{className:(0,d.twMerge)("font-outfit fixed left-0 top-0 z-50 block h-full overflow-scroll bg-[#ffffff] text-[#205E1C] transition-all ease-in-out md:hidden",v?"w-screen":"w-0",j),children:[(0,t.jsxs)("div",{className:"flex p-5",children:[r,(0,t.jsx)("button",{type:"button",onClick:()=>{N(!1),y(0),C(null),E(null)},className:"ml-auto","aria-label":"Close",children:b??(0,t.jsx)(n.X,{className:"size-6","aria-hidden":!0})})]}),(0,t.jsxs)("div",{className:"grid w-full overflow-hidden",children:[(0,t.jsx)("div",{className:"w-full transition-transform duration-300 [grid-column:1] [grid-row:1]",style:{transform:`translateX(${(0-w)*100}
1%)`,height:0===w?"auto":0},children:(0,t.jsx)(p,{items:D,chevronIcon:I})}),(0,t.jsx)("div",{className:"w-full transition-transform duration-300 [grid-column:1] [grid-row:1]",style:{transform:`translateX(${(1-w)*100}%)`,height:1===w?"auto":0},children:k?(0,t.jsx)(p,{chevronIcon:I,goBack:{text:"Back to all",onClick:()=>y(0)},seeAll:k.href?{text:k.text,href:k.href}:void 0,items:k.megaNavBlocks.map(e=>({text:e.heading,onClick:()=>{E(e),y(2)}}))}):null}),(0,t.jsx)("div",{className:"w-full transition-transform duration-300 [grid-column:1] [grid-row:1]",style:{transform:`translateX(${(2-w)*100}%)`,height:2===w?"auto":0},children:S&&k?(0,t.jsx)(p,{chevronIcon:I,goBack:{text:`Back to ${k.text}`,onClick:()=>y(1)},seeAll:S.bottomLink?{text:S.heading,href:S.bottomLink}:void 0,items:S.childLinks.map(e=>({text:e.text,href:e.href}))}):null})]}),(0,t.jsxs)("ul",{className:"my-4 ml-3 flex flex-col gap-4",children:[(0,t.jsx)("li",{children:(0,t.jsx)(f,{heading:l,subHeading:u,icon:x??(0,t.jsx)(o,{}),variant:"lg",className:"justify-start",link:`tel:${l}`,textLocation:"right",ariaLabel:"phone"})}),(0,t.jsx)("li",{children:(0,t.jsx)(f,{heading:"Help",icon:g??(0,t.jsx)(i,{}),variant:"lg",className:"justify-start",textLocation:"right",link:h,ariaLabel:"help"})})]})]})]})}],400950)},679331,e=>{"use strict";let t="https://www.eden.co.uk",r=`${t}/shop/basket.php`;e.s(["EDEN_BASKET_URL",0,r,"EDEN_ORIGIN",0,t,"buildEdenLoginUrl",0,e=>{let r=new URLSearchParams({delayBasketMerge:"false",redirect:e});return`${t}/secure/myeden/login.php?${r.toString()}`},"buildEdenProductSearchUrl",0,e=>{let r=new URLSearchParams;return r.set("products[query]",e),`${t}/shop/search.php?${r.toString()}`}])},772014,e=>{"use strict";var t=e.i(74961),r=e.i(479656);let l=({itemCount:e=0,href:l,icon:a,heading:s,id:n,testId:i,className:o,ariaLabel:c})=>(0,t.jsxs)("a",{href:l,id:n,"data-testid":i,"aria-label":c??s,className:(0,r.twMerge)("relative inline-flex h-full min-h-0 cursor-pointer flex-col items-center gap-1.5 px-2 py-0 text-start text-[#225A0D] no-underline hover:bg-accent",o),children:[(0,t.jsx)("span",{className:"leading-none text-[#225A0D] text-3xl [&_svg]:size-[1.55rem]",children:a}),(0,t.jsx)("span",{className:"text-sm font-semibold",children:s}),e>0?(0,t.jsx)("p",{className:"absolute -top-0.5 right-0 z-10 ml-8 mt-0 flex size-[18px] items-center justify-center rounded-full bg-[#b91c1c] pt-px text-center align-middle text-[11px] font-semibold text-[#ffffff]",children:e}):null]});function a(e){return(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",...e,children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.704 0.170099C14.8508 0.0862031 15.0126 0.0320668 15.1803 0.0107872C15.348 -0.0104923 15.5182 0.00150255 15.6813 0.0460857C15.8443 0.0906688 15.997 0.166965 16.1305 0.270609C16.264 0.374252 16.3758 0.503208 16.4595 0.650099L20.0183 6.8781H20.7023C21.0869 6.87191 21.4681 6.95209 21.8176 7.11274C22.1671 7.2734 22.4762 7.51042 22.7219 7.80636C22.9677 8.1023 23.1439 8.44961 23.2376 8.8227C23.3314 9.19578 23.3402 9.58515 23.2635 9.9621V9.96381L21.3777 19.389V19.3924C21.2578 19.9805 20.9359 20.5081 20.4678 20.8838C19.9998 21.2595 19.415 21.4596 18.8149 21.4495H4.5006C3.90048 21.4596 3.31573 21.2595 2.84766 20.8838C2.3796 20.5081 2.0577 19.9805 1.93774 19.3924V19.389L0.0520284 9.96381V9.9621C-0.0250278 9.58488 -0.0163958 9.19518 0.0772873 8.82174C0.170971 8.44831 0.347314 8.10068 0.593303 7.8045C0.839292 7.50833 1.14865 7.27117 1.49854 7.11053C1.84844 6.9499 2.22993 6.86988 2.61489 6.87638H3.29717L6.85603 0.648384C6.93977 0.501717 7.05159 0.37298 7.18509 0.269525C7.31858 0.166069 7.47115 0.0899218 7.63408 0.0454293C7.79701 0.000936771 7.9671 -0.0110293 8.13465 0.0102144C8.3022 0.0314581 8.46393 0.0854957 8.6106 0.169242C8.75727 0.252987 8.886 0.364801 8.98946 0.4983C9.09291 0.631798 9.16906 0.784366 9.21356 0.947293C9.25805 1.11022 9.27001 1.28032 9.24877 1.44787C9.22753 1.61542 9.17349 1.77714 9.08974 1.92381L6.25774 6.8781H17.0543L14.2292 1.92381C14.06 1.62802 14.0152 1.27716 14.1045 0.948328C14.1939 0.619496 14.4084 0.339587 14.704 0.170099Z"})})}var s=e.i(488630),n=e.i(251205),i=e.i(679331);let o={headerHelp:"https://helpdesk.eden.co.uk/support/home",accountLogin:(0,i.buildEdenLoginUrl)(`${i.EDEN_ORIGIN}/o/organisations`),basket:i.EDEN_BASKET_URL,home:`${i.EDEN_ORIGIN}/`};i.EDEN_ORIGIN,i.EDEN_ORIGIN,i.EDEN_ORIGIN,i.EDEN_ORIGIN,i.EDEN_ORIGIN,i.EDEN_ORIGIN,i.EDEN_ORIGIN,i.EDEN_ORIGIN,i.EDEN_ORIGIN,i.EDEN_ORIGIN,i.EDEN_ORIGIN,i.EDEN_ORIGIN,e.s(["SanityHeaderBasketClient",0,()=>{let{data:e}=(0,n.useEdenBasket)(),r=(0,s.basketItemCount)(e),i=r>0?`basket, ${r} items`:"basket";return(0,t.jsx)(l,{href:o.basket,heading:"Basket",icon:(0,t.jsx)(a,{width:24,height:24,className:"size-[1.55rem]"}),itemCount:r,ariaLabel:i})}],772014)},878524,(e,t,r)=>{t.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},505918,(e,t,r)=>{t.exports=e.g&&e.g.Object===Object&&e.g},78974,(e,t,r)=>{var l=e.r(505918),a="object"==typeof self&&self&&self.Object===Object&&self;
1t.exports=l||a||Function("return this")()},864564,(e,t,r)=>{var l=e.r(78974);t.exports=function(){return l.Date.now()}},860205,(e,t,r)=>{var l=/\s/;t.exports=function(e){for(var t=e.length;t--&&l.test(e.charAt(t)););return t}},798430,(e,t,r)=>{var l=e.r(860205),a=/^\s+/;t.exports=function(e){return e?e.slice(0,l(e)+1).replace(a,""):e}},328042,(e,t,r)=>{t.exports=e.r(78974).Symbol},684435,(e,t,r)=>{var l=e.r(328042),a=Object.prototype,s=a.hasOwnProperty,n=a.toString,i=l?l.toStringTag:void 0;t.exports=function(e){var t=s.call(e,i),r=e[i];try{e[i]=void 0;var l=!0}catch(e){}var a=n.call(e);return l&&(t?e[i]=r:delete e[i]),a}},933680,(e,t,r)=>{var l=Object.prototype.toString;t.exports=function(e){return l.call(e)}},416907,(e,t,r)=>{var l=e.r(328042),a=e.r(684435),s=e.r(933680),n=l?l.toStringTag:void 0;t.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":n&&n in Object(e)?a(e):s(e)}},394022,(e,t,r)=>{t.exports=function(e){return null!=e&&"object"==typeof e}},692558,(e,t,r)=>{var l=e.r(416907),a=e.r(394022);t.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==l(e)}},868922,(e,t,r)=>{var l=e.r(798430),a=e.r(878524),s=e.r(692558),n=0/0,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;t.exports=function(e){if("number"==typeof e)return e;if(s(e))return n;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=l(e);var r=o.test(e);return r||c.test(e)?d(e.slice(2),r?2:8):i.test(e)?n:+e}},787331,(e,t,r)=>{var l=e.r(878524),a=e.r(864564),s=e.r(868922),n=Math.max,i=Math.min;t.exports=function(e,t,r){var o,c,d,u,h,m,x=0,f=!1,p=!1,g=!0;if("function"!=typeof e)throw TypeError("Expected a function");function b(t){var r=o,l=c;return o=c=void 0,x=t,u=e.apply(l,r)}function j(e){var r=e-m,l=e-x;return void 0===m||r>=t||r<0||p&&l>=d}function v(){var e,r,l,s=a();if(j(s))return N(s);h=setTimeout(v,(e=s-m,r=s-x,l=t-e,p?i(l,d-r):l))}function N(e){return(h=void 0,g&&o)?b(e):(o=c=void 0,u)}function w(){var e,r=a(),l=j(r);if(o=arguments,c=this,m=r,l){if(void 0===h)return x=e=m,h=setTimeout(v,t),f?b(e):u;if(p)return clearTimeout(h),h=setTimeout(v,t),b(m)}return void 0===h&&(h=setTimeout(v,t)),u}return t=s(t)||0,l(r)&&(f=!!r.leading,d=(p="maxWait"in r)?n(s(r.maxWait)||0,t):d,g="trailing"in r?!!r.trailing:g),w.cancel=function(){void 0!==h&&clearTimeout(h),x=0,o=m=c=h=void 0},w.flush=function(){return void 0===h?u:N(a())},w}},474120,e=>{"use strict";var t=e.i(74961),r=e.i(898881),l=e.i(479656),a=e.i(86854);let s=(0,a.default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);var n=e.i(309427);let i=({value:e,placeholder:r="Search Eden.co.uk",name:a="q",id:i="searchBar",action:o="/shop/search.php",onChange:c,onFocus:d,onClear:u,onSubmit:h,searchIconSlot:m,className:x})=>(0,t.jsxs)("form",{action:o,method:"get",className:(0,l.twMerge)("relative w-full",x),onSubmit:t=>{h&&(t.preventDefault(),h(e))},children:[(0,t.jsx)("label",{htmlFor:i,className:"sr-only",children:"Search"}),(0,t.jsx)("span",{className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-[#225A0D]",children:m??(0,t.jsx)(s,{className:"size-5","aria-hidden":!0})}),(0,t.jsx)("input",{type:"text",id:i,name:a,value:e,placeholder:r,onChange:e=>c(e.target.value),onFocus:d,className:"h-[54px] w-full rounded-md border border-[#225A0D] bg-[#ffffff] py-2 pl-10 pr-10 text-lg text-[#4F4F4F] focus:border-[#278002] focus:outline-none",autoComplete:"off"}),e.length>0&&u?(0,t.jsx)("button",{type:"button",className:"absolute right-3 top-1/2 -translate-y-1/2 cursor-pointer text-[#888888] hover:text-[#4F4F4F]",onClick:u,"aria-label":"Clear search",children:(0,t.jsx)(n.X,{className:"size-5","aria-hidden":!0})}):null]}),o=170,c=({className:e,headerHeightPx:a=o})=>{let[s,n]=(0,r.useState)(0),[i,c]=(0,r.useState)(a),d=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=new IntersectionObserver(e=>{n(document.body.scrollHeight),c(e[0]?.boundingClientRect.y===0?a:e[0]?.boundingClientRect.y??a)}),t=d.current;return t&&e.observe(t),()=>{t&&e.unobserve(t)}},[a]),(0,t.jsx)("div",{ref:d,className:(0,l.twMerge)("search-backdrop pointer-events-none absolute top-0 z-40 w-full bg-[#000000] opacity-50",e),style:{height:`max(calc(100vh - ${i}px), ${s-i}px)`},"aria-hidden":!0})},d=(0,a.default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),u=({query:e,minQueryLength:r=3,results:a,viewAllHref:s,searchBaseUrl:n="https://www.eden.co.uk/shop/search.php",buildSearchUrl:i,className:o})=>{let c=e.length>=r;return(0,t.jsx)("div",{id:"searchResults",className:(0,l.twMerge)("peer absolute left-1/2 top-[calc(100%+2px)] z-30 block w-full -translate-x-1/2 sm:top-full sm:px-8",o),children:(0,t.jsxs)("div",{className:(0,l.twMerge)("mx-auto w-full rounded-b-lg bg-[#ffffff] p-6 text-[#252525] shadow-[0_4px_12px_rgba(0,0,0,0.12)] md:px-40",!c&&"hidden"),children:[(0,t.jsx)("ul",{className:"flex max-h-[116px] flex-wrap gap-x-2 gap-y-4 overflow-hidden py-1 sm:max-h-max",children:a.suggestions.slice(0,8).map(e=>{let r;return(0,t.jsx)("li",{tabIndex:1,children:(0,t.jsx)("a",{className:"rounded-full border border-[#BDBDBD] px-3 py-1 text-[#252525] hover:bg-[#0000000A]",href:(r=e.query,i?i(r):`${n}?q=${encodeURIComponent(r)}`),children:e.highlightedQuery??e.query})},e.objectID)})}),(0,t.jsxs)("div",{className:"mt-5 gap-10 md:grid md:[grid-template-columns:auto_minmax(0,1fr)]",children:[(0,t.jsxs)("div",{className:"hidden whitespace-nowrap md:block",children:[a.categories.length>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-base font-bold text-[#00000099]",children:"Categories"}),(0,t.jsx)("ul",{children:a.categories.slice(0,5).map(e=>(0,t.jsx)("li",{tabIndex:2,children:(0,t.jsx)("a",{className:"block px-3 py-2 text-[#252525] no-underline hover:bg-[#2E7D320A]",href:e.url,children:e.highlightedName??e.name})},e.objectID))})]}):null,a.authors.length>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"mt-4 text-base font-bold text-[#00000099]",children:"People"}),(0,t.jsx)("ul",{children:a.authors.slice(0,5).map(e=>(0,t.jsx)("li",{tabIndex:3,children:(0,t.jsx)("a",{className:"block px-3 py-2 text-[#252525] no-underline hover:bg-[#2E7D320A]",href:e.url,children:e.highlightedName??e.name})},e.objectID))})]}):null]}),(0,t.jsxs)("div",{className:"max-w-full",children:[(0,t.jsx)("p",{className:"mb-3 text-2xl",children:"Products"}),(0,t.jsx)("ul",{className:"flex gap-x-6 overflow-scroll px-1 pt-1 scrollbar-none [grid-auto-rows:0] [grid-template-columns:repeat(auto-fit,200px)] [grid-template-rows:auto] md:grid md:overflow-hidden",children:a.products.slice(0,8).map(e=>(0,t.jsx)("li",{tabIndex:4,className:"mb-1 w-[200px] shrink-0 has-[:focus-visible]:outline has-[:focus-visible]:outline-[#278002]",children:(0,t.jsxs)("a",{className:"flex flex-col justify-between focus-visible:outline-none",href:e.url,children:[(0,t.jsx)("div",{className:"flex h-[200px] items-center justify-center",children:e.imageSlot}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"line-clamp-2 text-sm font-semibold",children:e.product_name}),e.author?(0,t.jsxs)("p",{className:"text-xs leading-relaxed text-[#5D5D5D]",children:["by ",e.author]}):null,e.format?(0,t.jsx)("p",{className:"text-xs text-[#5D5D5D]",children:e.format}):null,(0,t.jsxs)("p",{className:"mt-1 text-base text-[#D32F2F]",children:["£",e.price.toFixed(2)]})]})]})},e.objectID))}),(0,t.jsxs)("a",{className:"mt-6 flex items-center gap-2 text-[#046FD6]",tabIndex:0===a.numberOfProductHits?-1:void 0,href:s,children:[`View all products (${a.numberOfProductHits})`,(0,t.jsx)(d,{className:"size-4","aria-hidden":!0})]})]})]})]})})},h=({query:e,focused:a,placeholder:s,results:n,minQueryLength:o=3,viewAllHref:d,searchBaseUrl:h,buildSearchUrl:m,onSubmit:x,searchIconSlot:f,headerHeightPx:p,onQueryChange:g,onFocus:b,onClear:j,onBlur:v,className:N})=>{let w=(0,r.useRef)(null),y=(0,r.useRef)(null);return(0,r.useEffect)(()=>
1{if(!a||!v)return;let e=e=>{let t=e.target;w.current?.contains(t)||y.current?.contains(t)||v()};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[a,v]),(0,t.jsxs)("div",{className:(0,l.twMerge)("font-outfit group w-full [&>#searchResults:hover]:bg",N),ref:w,...a?{"data-search-focused":""}:{},children:[(0,t.jsx)(i,{value:e,placeholder:s,onChange:g,onFocus:b,onClear:e.length>0?j:void 0,onSubmit:x,searchIconSlot:f}),a?(0,t.jsx)("div",{ref:y,children:(0,t.jsx)(u,{query:e,minQueryLength:o,results:n,viewAllHref:d,searchBaseUrl:h,buildSearchUrl:m})}):null,a?(0,t.jsx)(c,{className:"left-0 top-full z-[25] hidden sm:block",headerHeightPx:p}):null]})};var m=e.i(298378);let x=[32,40,45,48,55,60,96,110,128,130,135,150,185,190,220,223,250,256,300,384,500,640,750],f=["/noimage.webp","/0.webp","/noimage.gif","/0.gif"];var p=e.i(679331),g=e.i(958206);function b(e){return(0,t.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",width:20,height:20,className:"size-5",...e,children:[(0,t.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,t.jsx)("path",{d:"m21 21-4.3-4.3"})]})}e.i(708880);var j=e.i(211104),v=e.i(430262),N=e.i(787331);let w=()=>({products:[],suggestions:[],categories:[],authors:[],numberOfProductHits:0}),y=(e,r)=>e?e.split("<em>").map((e,r)=>{let[l,a]=e.split("</em>");return void 0!==a?[(0,t.jsx)("strong",{children:l},`${r}-bold`),a]:[l]}).flat().filter(Boolean):r;e.s(["SanityHeaderSearchClient",0,({analyticsTags:e})=>{let[l,a]=(0,r.useState)(""),[s,n]=(0,r.useState)(!1),{results:i,dispatchSearch:o,clearResults:c}=(e=>{let[t,l]=(0,r.useState)(w);return{results:t,dispatchSearch:(0,r.useMemo)(()=>(0,N.default)(async t=>{if(t.length<m.headerSearchParams.minQueryLength||!(0,j.isAlgoliaEnvConfigured)())return void l(w());let r=(0,v.algoliasearch)("GV9465CYMM","9cfe66189c652acc1a17b4625b3aed4b"),a=m.headerSearchIndices.map(r=>r===m.productsIndex?{indexName:r,query:t,params:{hitsPerPage:m.headerSearchParams.hitsPerPage,filters:m.headerSearchParams.filters,analyticsTags:[...e]}}:{indexName:r,query:t,params:{hitsPerPage:m.headerSearchParams.hitsPerPage,analyticsTags:[...e]}});try{let e=(await r.search(a)).results,t=e.find(e=>e.index===m.productsIndex),s=e.find(e=>"products_query_suggestions"===e.index),n=e.find(e=>"feature_pages"===e.index),i=e.find(e=>"author"===e.index);l({products:(t?.hits??[]).map(e=>({objectID:String(e.objectID??""),product_name:String(e.product_name??""),author:e.author?String(e.author):void 0,format:e.format?String(e.format):void 0,price:"number"==typeof e.price?e.price:0,url:String(e.url??"#"),image:e.image?String(e.image):void 0,imageWidth:e.imageWidth?String(e.imageWidth):void 0,imageHeight:e.imageHeight?String(e.imageHeight):void 0})),suggestions:(s?.hits??[]).map(e=>{let t=e._highlightResult,r=String(e.query??"");return{objectID:String(e.objectID??r),query:r,highlightedQuery:y(t?.query?.value,r)}}),categories:(n?.hits??[]).map(e=>{let t=e._highlightResult,r=String(e.name??"");return{objectID:String(e.objectID??r),name:r,url:String(e.url??"#"),highlightedName:y(t?.name?.value,r)}}),authors:(i?.hits??[]).map(e=>{let t=e._highlightResult,r=String(e.name??"");return{objectID:String(e.objectID??r),name:r,url:String(e.url??"#"),highlightedName:y(t?.name?.value,r)}}),numberOfProductHits:t?.nbHits??0})}catch{l(w())}},300),[e]),clearResults:()=>l(w())}})(e),d=(0,p.buildEdenProductSearchUrl)(l);return(0,t.jsx)(h,{query:l,focused:s,placeholder:"Search Eden.co.uk",minQueryLength:m.headerSearchParams.minQueryLength,viewAllHref:d,buildSearchUrl:p.buildEdenProductSearchUrl,searchIconSlot:(0,t.jsx)(b,{}),onSubmit:e=>{window.location.assign((0,p.buildEdenProductSearchUrl)(e))},results:{suggestions:i.suggestions,categories:i.categories,authors:i.authors,numberOfProductHits:i.numberOfProductHits,products:i.products.map(e=>{let r=(({width:e,height:t,desiredHeight:r,desiredWidth:l})=>{if(!e||!t)return{width:l,height:r};let a=e/t;return a>l/r?{width:l,height:Math.round(l/a)}:{width:Math.round(r*a),height:r}})({width:parseInt(e.imageWidth??"0",10),height:parseInt(e.imageHeight??"0",10),desiredHeight:200,desiredWidth:150});return{objectID:e.objectID,product_name:e.product_name,author:e.author,format:e.format,price:e.price,url:e.url,imageSlot:e.image?(0,t.jsx)("img",{src:((e,t)=>{var r;let l,a,s=(r=Math.round(t),l=Math.max(...x),a=x.includes(r)?r:x.reduce((e,t)=>
1Math.abs(t-r)<Math.abs(e-r)?t:e),.9*r>l?"fullsize":a);if(f.some(t=>e.includes(t))||/noimage/i.test(e)){let t=e.endsWith(".webp")?"webp":"jpg",r="fullsize"===s?"":String(s);return`https://www.eden.co.uk/staticimages/noimagepresent/noimage${r}.${t}?3=3`}let n=e.split("/").pop()??"noimageavailable.webp";return`https://www.eden.co.uk/images/${s}/${n}`})(e.image,r.width),alt:"",width:r.width,height:r.height,className:"mx-auto h-auto max-h-[200px] w-full max-w-[150px] object-contain"}):(0,t.jsx)("span",{className:"text-xs text-copy-500",children:"No image"})}})},onQueryChange:e=>{a(e),o(e)},onFocus:()=>{(0,g.sendTagManagerEvent)({event:"search_bar"}),n(!0)},onClear:()=>{a(""),c(),n(!1)},onBlur:()=>n(!1)})}],474120)}]);

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.