PageSourceSearch

https://devo.co.uk/_next/static/chunks/5421-5383abe8590e326a.js

js devo.co.uk collected 2026-10-02 00:05:55 UTC 98,129 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="981cea31-c66c-48ec-9fba-b7e65770a8d6",e._sentryDebugIdIdentifier="sentry-dbid-981cea31-c66c-48ec-9fba-b7e65770a8d6")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"4caa2f0b7eafee3551b10293ea03a94cb35e629a"},(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5421],{7213:(e,t,o)=>{"use strict";o.d(t,{b:()=>n});var i=o(67815);let n=e=>t=>(0,i.V)(e)&&t.product.priceMarked},13842:(e,t,o)=>{"use strict";o.d(t,{g:()=>r});var i=o(28888);function n(){let e=(0,i._)(['\nquery getCategories($shopId: string) {\n  categories(shopId: $shopId)\n  @rest(type: "Category", path: "/shop/{args.shopId}/category", endpoint: "ss") {\n    id\n    parentId\n    name\n    containsAlcohol\n    containsTobacco\n    isFlammable\n    isDisplayed\n    productsCount\n  }\n}\n']);return n=function(){return e},e}let r=(0,o(3219).J1)(n())},29735:(e,t,o)=>{"use strict";o.d(t,{_2:()=>r,xQ:()=>d});var i=o(58462),n=o(45011);let r=(e,t)=>{let o=t?[i._Y,i.s1,a(t)]:[i._Y,i.s1];return{title:"Shops delivering in ".concat(e," | Devo"),description:"Order from the best local shop in ".concat(e,". With Devo’s same day delivery you can get food, drinks, alcohol and tobacco delivered in ").concat(e,"."),canonical:"/shops/".concat(e),schema:o}},a=e=>({"@context":"https://schema.org","@type":"ItemList",itemListElement:(null==e?void 0:e.map((e,t)=>({"@type":"ListItem",position:t,url:"https://devo.co.uk/shop/".concat((null==e?void 0:e.prettyId)||"")})))||[]}),d=e=>({"@context":"https://schema.org","@type":"LocalBusiness",name:e.name,image:e.imageUrl,address:{"@type":"PostalAddress",streetAddress:e.addressLine1,addressLocality:e.city,postalCode:e.postcode},openingHoursSpecification:l(e.openingSchedule),telephone:e.phoneNumber,priceRange:"\xa31-13"}),l=e=>{if(!e)return null;var t=[];let o=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];for(var i=0;i<o.length;i++){let n=s(o[i],e,t);n&&t.push(n)}return t},s=(e,t,o)=>{let i=t[e.toLowerCase()];return i&&!(0,n.Al)(i)?{"@type":"OpeningHoursSpecification",dayOfWeek:"https://schema.org/"+e,opens:(0,n.fU)(i,"from")+":00",closes:(0,n.fU)(i,"to")+":00"}:null}},32885:(e,t,o)=>{"use strict";o.d(t,{Uw:()=>h,V9:()=>f,WY:()=>x,X6:()=>g,_Q:()=>m,rB:()=>y});var i=o(28888),n=o(3219);function r(){let e=(0,i._)(['\n  query getProducts($shopId: string, $offset: number, $limit: number) {\n    products(shopId: $shopId, offset: $offset, limit: $limit)\n      @rest(\n        type: "Product"\n        method: "GET"\n        path: "/shop/{args.shopId}/product?offset={args.offset}&limit={args.limit}"\n        endpoint: "ss"\n      ) {\n      shopUuid\n      devoPrice\n      product\n      availability\n      limit\n    }\n  }\n']);return r=function(){return e},e}function a(){let e=(0,i._)(['\n  query getPaginatedShopProducts(\n    $shopUuid: string\n    $offset: number\n    $limit: number\n  ) {\n    response(shopUuid: $shopUuid, offset: $offset, limit: $limit)\n      @rest(\n        type: "Product"\n        method: "GET"\n        path: "/shopProduct?shopUuid={args.shopUuid}&offset={args.offset}&limit={args.limit}&includeSubcats=true"\n        endpoint: "ss"\n      ) {\n      results\n      shopProducts\n    }\n  }\n']);return a=function(){return e},e}function d(){let e=(0,i._)(['\n  query getProducts(\n    $shopId: string\n    $search: string\n    $offset: number\n    $limit: number\n  ) {\n    products(shopId: $shopId, search: $search, offset: $offset, limit: $limit)\n      @rest(\n        type: "Product"\n        method: "GET"\n        path: "/shopProduct/elastic?shopUuid={args.shopId}&keyword={args.search}&offset={args.offset}&limit={args.limit}&includeSubcats=true"\n        endpoint: "ss"\n      ) {\n      results\n      total\n      shopProducts\n      nextCursor\n      totalRelation\n    }\n  }\n']);return d=function(){return e},e}function l(){let e=(0,i._)(['\n  query getProducts(\n    $shopId: string\n    $category: string\n    $offset: number\n    $limit: number\n  ) {\n    products(\n      shopId: $shopId\n      category: $category\n      offset: $offset\n      limit: $limit\n    )\n      @rest(\n        type: "Product"\n        method: "GET"\n        path: "/shop/{args.shopId}/product?filterBy=c.%60id%60&value={args.category}&offset={args.offset}&limit={args.limit}&includeSubcats=true"\n        endpoint: "ss"\n      ) {\n      shopUuid\n      devoPrice\n      product\n      availability\n      limit\n    }\n  }\n']);return l=function(){return e},e}function s(){let e=(0,i._)(['\n  query getShopProductsByCategory(\n    $shopUuid: string\n    $categoryId: number\n    $offset: number\n    $limit: number\n  ) {\n    response(\n      shopUuid: $shopUuid\n      categoryId: $categoryId\n      offset: $offset\n      limit: $limit\n    )\n      @rest(\n        type: "Product"\n        method: "GET"\n        path: "/shopProduct?shopUuid={args.shopUuid}&categoryId={args.categoryId}&offset={args.offset}&limit={args.limit}&includeSubcats=true"\n        endpoint: "ss"\n      ) {\n      results\n      shopProducts\n    }\n  }\n']);return s=function(){return e},e}function c(){let e=(0,i._)(['\n  query getProductsNumber($shopId: String) {\n    count(shopId: $shopId)\n      @rest(\n        type: "number"\n        method: "GET"\n        path: "/shop/{args.shopId}/product/number"\n        endpoint: "ss"\n      )\n  }\n']);return c=function(){return e},e}
1function p(){let e=(0,i._)(['\n  query getShopForProduct($shopId: String, $upc: String) {\n    product(shopId: $shopId, upc: $upc)\n      @rest(\n        type: "Product"\n        method: "GET"\n        path: "/shop/{args.shopId}/product/{args.upc}"\n        endpoint: "ss"\n      ) {\n      shopUuid\n      devoPrice\n      product\n      availability\n      limit\n    }\n  }\n']);return p=function(){return e},e}function u(){let e=(0,i._)(['\n  query getRecentProducts($shopUuid: string, $userUuid: string) {\n    products(shopUuid: $shopUuid, userUuid: $userUuid)\n      @rest(\n        type: "Product"\n        method: "GET"\n        path: "/shopProduct/recent?shopUuid={args.shopUuid}&userUuid={args.userUuid}"\n        endpoint: "ss"\n      ) {\n      results\n      shopProducts\n    }\n  }\n']);return u=function(){return e},e}(0,n.J1)(r());let h=(0,n.J1)(a()),g=(0,n.J1)(d()),m=(0,n.J1)(l()),f=(0,n.J1)(s()),x=(0,n.J1)(c());(0,n.J1)(p());let y=(0,n.J1)(u())},33773:(e,t,o)=>{"use strict";o.d(t,{L:()=>l,T:()=>c});var i=o(84626),n=o(99046),r=o(58462),a=o(48317),d=o(29735);let l=e=>{var t,o;return e?{title:"".concat(e.name.trim()," delivery from ").concat((null==(t=e.areaName)?void 0:t.trim())||(null==(o=e.city)?void 0:o.trim())||"Devo"," | Devo"),description:"Get fast grocery delivery with ".concat(e.name.trim()," in ").concat(e.city.trim(),". ").concat(e.type.trim(),". ").concat((0,n.Vl)(e).trim(),". Order food, drinks, alcohol and tobacco in ").concat((0,i.mW)(e.postcode).trim(),"."),canonical:"/shop/".concat(e.prettyId),image:e.imageUrl,schema:[r._Y,(0,r.B1)((0,a.C)(e.prettyId)),(0,d.xQ)(e),s(e)]}:{title:"Same-day grocery delivery | Order Food, Drinks, Alcohol &amp; Cigarettes | Devo",description:"Same day grocery delivery from the best local shops. Buy food, drinks, alcohol, cigarettes in three simple steps. Thousands of items delivered in a little as 10 minutes."}},s=e=>({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[c(e),{"@type":"ListItem",position:2,name:e.name}]}),c=e=>e.areaName?{"@type":"ListItem",position:1,name:e.areaName,item:"https://devo.co.uk/area/".concat(encodeURIComponent(e.areaName))}:{"@type":"ListItem",position:1,name:e.postcode,item:"https://devo.co.uk/shops/".concat(e.postcode.replace(/\s/,""))}},33920:(e,t,o)=>{"use strict";o.d(t,{A:()=>j});var i=o(37876),n=o(14232),r=o(86127),a=o(59689),d=o(35976),l=o(50841),s=o(21651);let c=l.Ay.div.withConfig({componentId:"sc-8fc4552f-0"}
1)(["height:100%;width:100%;background-color:#fff;position:relative;border-radius:6px;cursor:pointer;&.disabled{opacity:0.5;}"]),p=l.Ay.div.withConfig({componentId:"sc-8fc4552f-1"})(["height:200px;padding:25px 0;position:relative;text-align:center;display:flex;align-items:center;justify-content:center;@media (max-width:767px){}"]),u=l.Ay.div.withConfig({componentId:"sc-8fc4552f-2"})(["padding:0 25px 30px;height:100%;display:flex;flex-flow:column nowrap;@media (max-width:767px){padding:0 20px 15px;}.product-title{font-family:Lato,Lato-fallback,sans-serif;font-size:15px;font-weight:600;color:#0d1136;width:100%;overflow:hidden;text-overflow:ellipsis;margin-bottom:10px;@media (max-width:767px){font-size:14px;}}.product-weight{font-size:13px;font-weight:400;color:#77798c;margin-bottom:20px;@media (max-width:767px){font-size:12px;margin-bottom:10px;}}.product-meta{display:flex;align-items:center;justify-content:space-between;@media (max-width:767px){&.incart{flex-flow:column nowrap;align-items:flex-start;.cart-counter{margin:20px 0 10px;}}&.add{margin-bottom:15px;}}.productPriceWrapper{position:relative;display:flex;flex-direction:column;align-items:flex-start;.product-price{font-size:14px;font-weight:800;color:rgb(119,121,140);@media (max-width:767px){font-size:14px;}}.product-price.error{color:#ff0000;}}.cart-button{border:2px solid #f7f7f7;border-radius:18px;height:36px;padding-left:17px;padding-right:17px;font-size:13px;font-weight:700;@media (max-width:767px){width:32px;height:32px;padding:0px;border-radius:50%;}.btn-text{padding:0 0 0 6px;@media (max-width:767px){display:none;}}&:hover{color:#fff;background-color:var(--devo-red);border-color:var(--devo-red);}svg{fill:currentColor;}}@media (max-width:767px){.quantity{width:32px;height:90px;display:block;flex-shrink:0;position:absolute;bottom:15px;right:15px;z-index:1;box-shadow:0 10px 20px rgba(0,0,0,0.16);}button{width:100%;height:27px;}.incBtn{top:0;justify-content:center;}.decBtn{top:auto;bottom:0;justify-content:center;}input[type='number']{left:0;color:#222222;font-size:14px;height:calc(100% - 54px);position:absolute;top:27px;width:100%;color:#fff;}}}"]);l.Ay.span.withConfig({componentId:"sc-8fc4552f-3"})(["font-size:14px;font-weight:700;margin:0 0 7px 0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;display:block;&:only-child{margin:0;}@media (max-width:767px){font-size:14px;}"]);let h=l.Ay.div.withConfig({componentId:"sc-8fc4552f-4"})(["position:relative;"]),g=l.Ay.span.withConfig({componentId:"sc-8fc4552f-5"})(["position:absolute;top:20px;background-color:var(--devo-blue);color:#fff;font-size:12px;padding:4px 8px;line-height:1;border-radius:8px;"]),m=l.Ay.span.withConfig({componentId:"sc-8fc4552f-6"})(["font-size:"," px;font-weight:",";color:",";@media (max-width:767px){font-size:14px;}"],(0,s.y)("fontSizes.2","15"),(0,s.y)("fontWeights.6","700"),(0,s.y)("colors.primary","#009E7F")),f=l.Ay.div.withConfig({componentId:"sc-8fc4552f-7"})(["flex-grow:2;"]);var x=o(41692),y=o(48830),v=o(33995),b=o(99046),w=o(29356);let j=n.memo(e=>{let{upc:t,title:o,image:n,price:l,quantityUnits:s,quantityMeasure:j,addedToCart:C,removedFromCart:A,data:I,onClick:k,shouldAnimate:S=!0,priceMarked:_=!1,...P}=e,{getItem:E,isInCart:N}=(0,x._)(),{atCap:R,guardAdd:T}=(0,y.P)(),U=e=>{e.stopPropagation(),T(I)||(C(),S&&!N(I)&&(e=>{let t=function(e,t){for(;e&&e!==document;e=e.parentNode)if(e.matches(t))return e;return null}(e.target,".product-card"),o=document.getElementsByClassName("product-cart")[0],i=t.querySelector(".product-image"),n=t.getBoundingClientRect().left,r=t.getBoundingClientRect().top,a=o.getBoundingClientRect().left,d=o.getBoundingClientRect().top,l=i.cloneNode(!0);l.style="z-index: 11111; width: 100px;opacity:1; position:fixed; top:"+r+"px;left:"+n+"px;transition: left 1s, top 1s, width 1s, opacity 1s cubic-bezier(1, 1, 1, 1);border-radius: 50px; overflow: hidden; box-shadow: 0 21px 36px rgba(0,0,0,0.1)";var s=document.body.appendChild(l);setTimeout(function(){l.style.left=a+"px",l.style.top=d+"px",l.style.width="40px",l.style.opacity="0"},200),setTimeout(function(){s.parentNode.removeChild(s)},1e3)})(e))},O=N(I),z=(0,w.h)(I),D=(null==I?void 0:I.availability)==="AVAILABLE";return(0,i.jsx)(c,{onClick:k,className:"product-card ".concat(D?"":"disabled"),children:(0,i.jsxs)(u,{children:[(0,i.jsx)(p,{children:(0,i.jsx)(r.A,{url:n,alt:o,width:150,height:150})}),(0,i.jsx)("h3",{className:"product-title ".concat(O?"incart":"add"),children:o}),(0,i.jsx)("p",{className:"product-weight",children:z}),(0,i.jsx)(f,{}),(0,i.jsx)("div",{className:"product-meta ".concat(O?"incart":"add"),children:D?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(h,{className:"productPriceWrapper",children:[(0,i.jsx)(m,{className:"product-price",children:(0,b.$g)(l)}),_&&(0,i.jsx)(g,{children:"PM"})]}),O?(0,i.jsx)(v.p,{className:"cart-counter",value:E(t,null==I?void 0:I.shopUuid).quantity,onDecrement:e=>{e.stopPropagation(),A()},onIncrement:U,atMax:R(I)}):(0,i.jsx)(a.A,{title:"Add",iconPosition:"left",colors:"primary",size:"small",variant:"outlined",className:"cart-button",icon:(0,i.jsx)(d.Kj,{}),onClick:U})]}):(0,i.jsx)(h,{className:"productPriceWrapper",children:(0,i.jsx)(m,{className:"product-price error",children:"Unavailable"})})})]})})})},33995:(e,t,o)=>{"use strict";o.d(t,{p:()=>u});var i=o(37876);o(14232);let n=e=>{let{color:t="currentColor",width:o="12px",height:n="12px"}=e;return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:n,viewBox:"0 0 12 12",children:(0,i.jsxs)("g",{id:"Group_3351","data-name":"Group 3351",transform:"translate(-1367 -190)",children:[(0,i.jsx)("rect",{"data-name":"Rectangle 520",width:"12",height:"2",rx:"1",transform:"translate(1367 195)",fill:t}),(0,i.jsx)("rect",{"data-name":"Rectangle 521",width:"12",height:"2",rx:"1",transform:"translate(1374 190) rotate(90)",fill:t})]})})},r=e=>{let{color:t="currentColor",width:o="12px",height:n="2px"}=e;return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:n,viewBox:"0 0 12 2",children:(0,i.jsx)("rect",{"data-name":"Rectangle 522",width:"12",height:"2",rx:"1",fill:t})})};
1var a=o(50841),d=o(54770),l=o(91102);let s=a.Ay.div.withConfig({componentId:"sc-b4079c03-0"})((0,d.Ay)({display:"flex",backgroundColor:"primary",color:"white",fontSize:2,fontWeight:6}),{borderRadius:200,justifyContent:"space-between",alignItems:"center",overflow:"hidden",flexShrink:0,"&:focus":{outline:"none"}},(0,l.Ox)({variants:{horizontal:{width:104,height:36},vertical:{width:30,height:90,flexDirection:"column-reverse"},lightHorizontal:{width:104,height:36,backgroundColor:"lightColor",color:"darkBold"},lightVertical:{width:30,height:90,flexDirection:"column-reverse",backgroundColor:"lightColor",color:"darkBold"}}})),c=a.Ay.button.withConfig({componentId:"sc-b4079c03-1"})({border:"none",backgroundColor:"transparent",color:"#ffffff",display:"flex",alignItems:"center",justifyContent:"center",height:"100%",padding:10,cursor:"pointer","&:hover, &:focus":{outline:"none"}},(0,l.Ox)({variants:{lightHorizontal:{color:"darkRegular"},lightVertical:{color:"darkRegular"}}})),p=a.Ay.span.withConfig({componentId:"sc-b4079c03-2"})({pointerEvents:"none"});p.displayName="CounterValue",c.displayName="CounterButton",s.displayName="CounterBox",s.defaultProps={variant:"horizontal"};let u=e=>{let{onDecrement:t,onIncrement:o,value:a,variant:d,className:l,atMax:u=!1}=e;return(0,i.jsxs)(s,{variant:d,className:l,children:[(0,i.jsx)(c,{onClick:t,variant:d,children:(0,i.jsx)(r,{})}),(0,i.jsx)(p,{children:a}),(0,i.jsx)(c,{onClick:o,variant:d,disabled:u,"aria-disabled":u,style:u?{opacity:.4,cursor:"not-allowed"}:void 0,children:(0,i.jsx)(n,{})})]})}},34256:(e,t,o)=>{"use strict";o.d(t,{A5:()=>a,Qp:()=>d,pY:()=>n,zg:()=>r});var i=o(19136);let n=async e=>(0,i.Vg)("shop","/shop/".concat(e)),r=async e=>(0,i.Vg)("shop","/shop/pretty/".concat(e)),a=async e=>(0,i.Vg)("shop","/shop",{query:{postcode:e}}),d=async(e,t,o)=>{try{return await (0,i.Vg)("shop","/shop/".concat(e),{query:{postcode:t},signal:o})}catch(e){if((e=>e instanceof i.hD&&404===e.status)(e))return null;throw e}}},40405:(e,t,o)=>{"use strict";o.d(t,{d:()=>r});var i=o(14232),n=o(10396);let r=()=>(0,i.useContext)(n.$)},46786:(e,t,o)=>{"use strict";o.d(t,{A:()=>s,CC:()=>n,Gd:()=>u,Tm:()=>l,Un:()=>d,Z6:()=>c,a3:()=>p,ih:()=>a,lG:()=>r});var i=o(50841);let n=i.Ay.div.withConfig({componentId:"sc-864cedb9-0"})(["width:100%;display:flex;overflow:scroll;position:relative;z-index:10;margin:0;border-top:solid 2px #f7f7f7;box-shadow:rgba(0,0,0,0.1) 0px 4px 6px;-webkit-backdrop-filter:var(--blur-filter);backdrop-filter:var(--blur-filter);background-color:var(--blur-color-2) !important;&::-webkit-scrollbar,div::-webkit-scrollbar{display:none;}&.root{& > div{padding:0 15px;@media (max-width:768px){padding:0;}}}.cancel{cursor:pointer;margin:auto 32px;color:var(--devo-blue);font-weight:600;background:none;border:none;padding:0;font-size:inherit;font-family:inherit;@media (max-width:768px){margin:auto 10px;}}"]),r=i.Ay.div.withConfig({componentId:"sc-864cedb9-1"})([".navigation{padding:0 20px 0 30px;@media (max-width:768px){padding:0 15px;}}"]),a=i.Ay.div.withConfig({componentId:"sc-864cedb9-2"})(["display:flex;flex-wrap:nowrap;align-items:flex-start;overflow-y:hidden;overflow-x:auto;&.additional{div:first-child{margin-left:20px;}div:last-child{margin-right:100px;}}"]),d=i.Ay.div.withConfig({componentId:"sc-864cedb9-3"})(["display:block;& > div{display:inline-block;}"]),l=i.Ay.div.withConfig({componentId:"sc-864cedb9-4"})(["height:100%;position:relative;a,span{height:100%;display:block;align-items:center;font-size:15px;font-weight:600;color:var(--devo-red);margin:30px 10px;line-height:1.2;white-space:nowrap;cursor:pointer;text-decoration:none;@media (max-width:768px){margin:30px 10px;}}a:hover{text-decoration:underline;}a.label,span.label{font-weight:400;cursor:default;text-decoration:none;}"]),s=i.Ay.div.withConfig({componentId:"sc-864cedb9-5"})(["height:100%;position:relative;height:100%;display:block;align-items:center;font-size:15px;color:rgb(119,121,140);margin:30px 0;line-height:1.2;white-space:nowrap;@media (max-width:768px){margin:20px 0;}"]),c=i.Ay.div.withConfig({componentId:"sc-864cedb9-6"})(["height:100%;position:relative;&.child{background-color:rgba(0,0,0,0.05);}a,button{height:100%;display:block;align-items:center;font-size:15px;font-weight:400;color:rgb(119,121,140);margin:30px 25px;line-height:1.2;white-space:nowrap;cursor:pointer;text-decoration:none;}a.active{font-weight:600;color:var(--devo-red);}@media (max-width:768px){a,button{margin:30px 10px;}&:first-child{a,button{margin-left:25px;}}&:last-child{a,button{margin-right:60px;}}}"]),p=i.Ay.div.withConfig({componentId:"sc-864cedb9-7"})(["padding:27px 40px;"]),u=i.Ay.div.withConfig({componentId:"sc-864cedb9-8"})(["flex-grow:2;display:flex;align-items:center;form,input,.help{margin:0;padding:0;}form,input{width:100%;border:none;background-color:transparent;font-size:18px;}.help{display:block;font-size:14px;color:var(--secondary-label-color);}input:focus{outline:none;}"])},48317:(e,t,o)=>{"use strict";o.d(t,{C:()=>n,i:()=>i});let i={"@context":"https://schema.org","@type":"SearchAction",target:"https://devo.co.uk/shops/{postcode}","query-input":"required name=postcode"},n=e=>({"@context":"https://schema.org","@type":"SearchAction",target:"https://devo.co.uk/shop/".concat(e,"?search={query}"),"query-input":"required name=query"})},48830:(e,t,o)=>{"use strict";o.d(t,{P:()=>d});var i=o(37328),n=o(96387),r=o(41692),a=o(40405);let d=()=>{let e=(0,i.A)(),{getItem:t}=(0,r._)(),{showToast:o}=(0,a.d)(),d=e=>{var o,i,n;return null!=(n=null==(o=t(null==e||null==(i=e.product)?void 0:i.upc,null==e?void 0:e.shopUuid))?void 0:o.quantity)?n:0},l=e=>{let t=(0,n.l)(e);return null!=t&&d(e)>=t};return{effectiveLimit:n.l,currentQuantity:d,atCap:l,guardAdd:t=>!!l(t)&&(o({message:e.formatMessage({id:"basketLimitReached",defaultMessage:"You can only add up to {limit} of this item"},{limit:(0,n.l)(t)})}),!0)}}},57044:(e,t,o)=>{"use strict";o.d(t,{NV:()=>r,Rb:()=>n,hn:()=>i});let i=e=>{var t,o="/shop/".concat((null==(t=e.shop)?void 0:t.prettyId)||e.prettyId),i="?";return e.postcode&&(o="".concat(o).concat(i,"postcode=").concat(e.postcode),i="&"),e.category&&(o="".concat(o).concat(i,"category=").concat(e.category),i="&"),e.search&&(o="".concat(o).concat(i,"search=").concat(e.search),i="&"),e.page&&e.page>1&&(o="".concat(o).concat(i,"page=").concat(e.page),i="&"),e.recents&&(o="".concat(o).concat(i,"recents"),i="&"),"&"===o.substr(-1)&&(o=o.slice(0,-1)),o},n=(e,t)=>{var o,i="/shop/".concat((null==(o=e.shop)?void 0:o.prettyId)||e.prettyId,"/upc/").concat(t),n="?";
1return e.postcode&&(i="".concat(i).concat(n,"postcode=").concat(e.postcode),n="&"),"&"===i.substr(-1)&&(i=i.slice(0,-1)),i},r=(e,t)=>{var o,i="/shop/".concat((null==(o=e.shop)?void 0:o.prettyId)||e.prettyId,"/product/").concat(t),n="?";return e.postcode&&(i="".concat(i).concat(n,"postcode=").concat(e.postcode),n="&"),"&"===i.substr(-1)&&(i=i.slice(0,-1)),i}},58462:(e,t,o)=>{"use strict";o.d(t,{B1:()=>r,_Y:()=>i,jb:()=>d,s1:()=>n,xD:()=>a});let i={"@context":"https://schema.org","@type":"Organization",name:"Devo",url:"https://devo.co.uk",description:"Same day grocery delivery from the best local shops. Buy food, drinks, alcohol, cigarettes in three simple steps. Thousands of items delivered in a little as 10 minutes.",logo:"https://devo.co.uk/assets/logo.png",telephone:"+442033895255",sameAs:["https://www.instagram.com/devodelivery/","https://twitter.com/DevoDelivery","https://www.facebook.com/DevoDelivery/"],contactPoint:[{"@type":"ContactPoint",telephone:"+442033895255",contactType:"customer service"},{"@type":"ContactPoint",email:"[email protected]",contactType:"customer service"}]},n={"@context":"https://schema.org","@type":"WebSite",name:"Devo",url:"https://devo.co.uk"},r=e=>(e&&(n.potentialAction=e),n),a={"@context":"https://schema.org","@type":"SoftwareApplication",name:"Devo: Grocery delivery",operatingSystem:"iOS 12.0",applicationCategory:"ShoppingApplication",aggregateRating:{"@type":"AggregateRating",ratingValue:"4.5",ratingCount:"62"},offers:{"@type":"Offer",price:"0",priceCurrency:"GBP"}},d={"@context":"https://schema.org","@type":"SoftwareApplication",name:"Devo: Grocery delivery",operatingSystem:"Android 6.0",applicationCategory:"ShoppingApplication",aggregateRating:{"@type":"AggregateRating",ratingValue:"4.7",ratingCount:"28"},offers:{"@type":"Offer",price:"0",priceCurrecy:"GBP"}}},61859:(e,t,o)=>{"use strict";o.d(t,{A:()=>u});var i=o(37876),n=o(14232),r=o(21651),a=o(92987);o(98880);var d=o(86127),l=o(50841),s=o(72437);let c=l.Ay.li.withConfig({componentId:"sc-3184bdc9-0"})(["border:1px solid ",";border-radius:6px;margin-right:20px;padding:0;outline:none;width:70px;height:auto;overflow:hidden;&:last-child{margin-right:0;}&.custom-dot--active{border:2px solid ",";}"],(0,r.y)("colors.borderColor","#f1f1f1"),(0,r.y)("colors.primary","var(--devo-red)")),p={desktop:{breakpoint:{max:3e3,min:1024},items:1},mobile:{breakpoint:{max:464,min:0},items:1},tablet:{breakpoint:{max:1024,min:200},items:1}},u=e=>{let{items:t=[],title:o,...r}=e,{mobile:l,tablet:u,desktop:h}=(0,s.k)(),g=t.slice(0,6).map((e,t)=>(0,i.jsx)(d.A,{url:e.image,alt:o,width:400,height:400},t)),m=t.map((e,t)=>(0,i.jsx)(d.A,{url:e.thumbnail,alt:o,width:70,height:70},t)),f="desktop";return l&&(f="mobile"),u&&(f="tablet"),(0,i.jsx)(a.default,{showDots:!0,ssr:!0,infinite:!0,slidesToSlide:1,containerClass:"carousel-with-custom-dots",responsive:p,deviceType:f,autoPlay:!1,arrows:!1,customDot:(0,i.jsx)(e=>{let{index:t,onClick:o,active:r,carouselState:{currentSlide:a,deviceType:d}}=e;return(0,i.jsx)(c,{"data-index":t,onClick:()=>o(),className:"custom-dot ".concat(r&&"custom-dot--active"),children:n.Children.toArray(m)[t]},t)},{}),...r,children:g})}},67140:(e,t,o)=>{"use strict";o.d(t,{Ay:()=>l});var i=o(14232),n=function(){return(n=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},r=function(e){var t=e.animate,o=e.backgroundColor,r=e.backgroundOpacity,a=e.baseUrl,d=e.children,l=e.foregroundColor,s=e.foregroundOpacity,c=e.gradientRatio,p=e.uniqueKey,u=e.interval,h=e.rtl,g=e.speed,m=e.style,f=e.title,x=function(e,t){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(o[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)0>t.indexOf(i[n])&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(o[i[n]]=e[i[n]]);return o}(e,["animate","backgroundColor","backgroundOpacity","baseUrl","children","foregroundColor","foregroundOpacity","gradientRatio","uniqueKey","interval","rtl","speed","style","title"]),y=p||Math.random().toString(36).substring(6),v=y+"-diff",b=y+"-animated-diff",w=y+"-aria",j="0; "+u+"; 1",C=g+"s";return(0,i.createElement)("svg",n({"aria-labelledby":w,role:"img",style:n(n({},m),h?{transform:"scaleX(-1)"}:null)},x),f?(0,i.createElement)("title",{id:w},f):null,(0,i.createElement)("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:"url("+a+"#"+v+")",
1style:{fill:"url("+a+"#"+b+")"}}),(0,i.createElement)("defs",{role:"presentation"},(0,i.createElement)("clipPath",{id:v},d),(0,i.createElement)("linearGradient",{id:b},(0,i.createElement)("stop",{offset:"0%",stopColor:o,stopOpacity:r},t&&(0,i.createElement)("animate",{attributeName:"offset",values:-c+"; "+-c+"; 1",keyTimes:j,dur:C,repeatCount:"indefinite"})),(0,i.createElement)("stop",{offset:"50%",stopColor:l,stopOpacity:s},t&&(0,i.createElement)("animate",{attributeName:"offset",values:-c/2+"; "+-c/2+"; "+(1+c/2),keyTimes:j,dur:C,repeatCount:"indefinite"})),(0,i.createElement)("stop",{offset:"100%",stopColor:o,stopOpacity:r},t&&(0,i.createElement)("animate",{attributeName:"offset",values:"0; 0; "+(1+c),keyTimes:j,dur:C,repeatCount:"indefinite"})))))};r.defaultProps={animate:!0,backgroundColor:"#f5f6f7",backgroundOpacity:1,baseUrl:"",foregroundColor:"#eee",foregroundOpacity:1,gradientRatio:2,id:null,interval:.25,rtl:!1,speed:1.2,style:{},title:"Loading..."};var a=function(e){return e.children?(0,i.createElement)(r,n({},e)):(0,i.createElement)(d,n({},e))},d=function(e){return(0,i.createElement)(a,n({viewBox:"0 0 476 124"},e),(0,i.createElement)("rect",{x:"48",y:"8",width:"88",height:"6",rx:"3"}),(0,i.createElement)("rect",{x:"48",y:"26",width:"52",height:"6",rx:"3"}),(0,i.createElement)("rect",{x:"0",y:"56",width:"410",height:"6",rx:"3"}),(0,i.createElement)("rect",{x:"0",y:"72",width:"380",height:"6",rx:"3"}),(0,i.createElement)("rect",{x:"0",y:"88",width:"178",height:"6",rx:"3"}),(0,i.createElement)("circle",{cx:"20",cy:"20",r:"20"}))};let l=a},68792:(e,t,o)=>{"use strict";o.r(t),o.d(t,{ProductsPage:()=>tg,__N_SSG:()=>th,default:()=>tm});var i=o(37876),n=o(14232),r=o(77328),a=o.n(r),d=o(18847),l=o.n(d),s=o(87156),c=o.n(s),p=o(89099),u=o.n(p),h=o(54431),g=o(78248),m=o(75290),f=o(86973),x=o(98627),y=o(73658),v=o(50841),b=o(21651);let w=v.Ay.div.withConfig({componentId:"sc-339e3030-0"})(["width:70%;padding:0 25px;@media (max-width:1200px){width:65%;}@media (max-width:1000px){width:60%;}@media (max-width:900px){width:100%;padding:0;}"]),j=v.Ay.div.withConfig({componentId:"sc-339e3030-1"})(["width:30%;padding:0 25px 0 0;.cart{width:auto;}@media (max-width:1200px){width:35%;}@media (max-width:1000px){width:40%;}@media (max-width:900px){width:0;display:none;}"]),C=v.Ay.div.withConfig({componentId:"sc-339e3030-2"})(["position:",";top:","px;z-index:10;"],e=>{let{enabled:t=!0}=e;return t?"sticky":"relative"},e=>{let{top:t=0}=e;return t}),A=v.Ay.div.withConfig({componentId:"sc-339e3030-3"})(["display:flex;flex-wrap:wrap;margin-top:25px;position:relative;z-index:1;margin:0 -15px;@media (max-width:768px){margin-left:-7.5px;margin-right:-7.5px;}"]);v.Ay.div.withConfig({componentId:"sc-339e3030-4"})(["text-align:center;margin-top:30px;"]);let I=v.Ay.div.withConfig({componentId:"sc-339e3030-5"})(["flex:0 0 25%;max-width:25%;padding-left:15px;padding-right:15px;margin-bottom:30px;@supports (content-visibility:auto){content-visibility:auto;contain-intrinsic-size:360px;}@media (max-width:1400px){flex:0 0 33.333333%;max-width:33.333333%;}@media (max-width:1200px){flex:0 0 50%;max-width:50%;}@media (max-width:900px){flex:0 0 33.333333%;max-width:33.333333%;padding-left:10px;padding-right:10px;margin-bottom:15px;}@media (max-width:768px){flex:0 0 50%;max-width:50%;}"]);v.Ay.div.withConfig({componentId:"sc-339e3030-6"})(["width:100%;padding:100px 30px;display:flex;justify-content:center;align-items:center;font-size:","px;font-weight:",";color:",";"],(0,b.y)("fontSizes.4","21"),(0,b.y)("fontWeights.6","700"),(0,b.y)("colors.darkBold","#0D1136"));let k=v.Ay.div.withConfig({componentId:"sc-339e3030-7"})(["width:100%;min-height:100vh;display:flex;flex-wrap:wrap;"]),S=v.Ay.div.withConfig({componentId:"sc-339e3030-8"})(["padding:0 15px;margin:30px 0;"]),_=v.Ay.div.withConfig({componentId:"sc-339e3030-9"})(["height:100%;> div{height:100%;}"]),P=v.Ay.div.withConfig({componentId:"sc-339e3030-10"})(["display:flex;justify-content:space-between;padding:30px 5px;@media (max-width:768px){margin-top:20px;}"]),E={Wrapper:P,Title:v.Ay.h2.withConfig({componentId:"sc-339e3030-11"})(["font-size:20px;"]),Button:v.Ay.button.withConfig({componentId:"sc-339e3030-12"})(["border:none;background-color:transparent;font-family:Inter,Inter-fallback,Lato,Lato-fallback,Helvetica Neue,sans-serif;font-size:16px;color:var(--devo-red);cursor:pointer;"])},N=v.Ay.div.withConfig({componentId:"sc-339e3030-13"})(["display:inline-block;margin:10px 0 25px;padding:10px 15px;background-color:var(--devo-red);border-radius:6px;span{font-family:Lato,Lato-fallback,Helvetica Neue,sans-serif;font-weight:600;font-size:14px;color:#fff;margin-right:10px;}
1a,button{cursor:pointer;background:none;border:none;padding:0;}svg{color:white;}@media (max-width:768px){margin-left:5px;}"]);var R=o(26207);let T=v.Ay.div.withConfig({componentId:"sc-b103068-0"})(["width:100%;display:flex;flex-direction:column;align-items:center;padding:50px 20px;h3{font-size:24px;font-weight:800;color:#0D1136;margin:0 0 15px;}p{font-size:16px;font-weight:400;color:#707070;margin:0;}"]);v.Ay.div.withConfig({componentId:"sc-b103068-1"})(["margin-top:50px;width:100%;max-width:400px;display:flex;align-items:center;justify-content:center;img{max-width:100%;}"]),v.Ay.div.withConfig({componentId:"sc-b103068-2"})(["width:100%;display:flex;justify-content:center;margin-top:70px;span.btn-icon{height:50px;}"]),v.Ay.button.withConfig({componentId:"sc-b103068-3"})(["cursor:pointer;display:inline-flex;align-items:center;justify-content:center;color:#ffffff;background-color:var(--devo-red);height:50px;border-radius:6px;font-size:16px;font-weight:800;text-decoration:none;text-transform:capitalize;padding:0 30px;border:0;transition:all 0.3s ease;"]);let U=e=>{let{id:t}=e;(0,p.useRouter)();let{dispatch:o}=n.useContext(m.o);return(0,i.jsxs)(T,{id:t,children:[(0,i.jsx)("h3",{children:"No products found"}),(0,i.jsx)("p",{children:"Please try searching for something else."})]})};var O=o(5737),z=o(41692),D=o(59942),G=o(84626),L=o(86172),M=o(5691),B=o(69742),q=o(59689),Y=o(50074),W=o(27342),F=o(92134),H=o(33920),Z=o(99046),$=o(35976),V=o(61859),J=o(48830),X=o(33995),Q=o(29356),K=o(32885),ee=o(13842);let et=e=>{var t;let{modalProps:o,routeLanding:r=!1,shopHref:a}=e,d=(0,p.useRouter)(),{state:l,dispatch:s}=n.useContext(m.o),{items:c,addItem:u,removeItem:g,isInCart:f,getItem:x,clearCart:y,removeCoupon:v}=(0,z._)(),{atCap:b,guardAdd:w}=(0,J.P)(),[j,C]=(0,n.useState)(o),A=(0,n.useRef)(!1),I=e=>{let t="/shop/".concat(d.query.prettyId,"/product/").concat(e.product.prettyId);return l.postcode&&(t+="?postcode=".concat(encodeURIComponent(l.postcode))),t};(0,n.useEffect)(()=>{r||window.location.pathname.includes("/product/")||window.history.pushState({productModal:!0},"",I(j))},[]),(0,n.useEffect)(()=>{let e=()=>{A.current=!0,(0,Y.Oo)()};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[]),(0,n.useEffect)(()=>()=>{if((0,W.Np)(A.current,window.history.state)){let e=window.scrollY;window.history.back(),requestAnimationFrame(()=>window.scrollTo(0,e))}},[]);let k={shopId:null==j?void 0:j.shopUuid,category:null==j?void 0:j.product.category.id.toString(),offset:0,limit:10},{data:S}=(0,h.IT)(K._Q,{skip:!j,variables:k}),{data:P}=(0,h.IT)(ee.g,{skip:!(null==j?void 0:j.shopUuid),variables:{shopId:null==j?void 0:j.shopUuid}}),E=null==P?void 0:P.categories,[N,R]=(0,n.useState)([]);(0,n.useEffect)(()=>{if(j&&(null==E?void 0:E.length)){for(var e=[E.find(e=>{var t,o;return e.id===(null==j||null==(o=j.product)||null==(t=o.category)?void 0:t.id)})];1!==e[0].id;)e=[E.find(t=>t.id===e[0].parentId)].concat(e);R(e)}},[j]);let T=(e,t)=>{var o,i;if(null==e||e.stopPropagation(),!w(t)){if(!(null==l?void 0:l.postcode)){let e=null==(o=d.query.prettyId)?void 0:o.toString();e&&(0,B.A)(e,()=>u(t),t);return}if((0,L.x_)(l.addressCheck,null==t?void 0:t.shopUuid,(0,G.E3)(l.postcode))){let e=null==(i=d.query.prettyId)?void 0:i.toString();e&&(0,B.A)(e,()=>u(t),t,l.postcode);return}(0,G.gN)(t,c)?u(t):(0,O.ul)(()=>{y(),v(),u(t)})}},U=(e,t)=>{null==e||e.stopPropagation(),g(t)},D=null==S||null==(t=S.products)?void 0:t.filter(e=>e.product.upc!==j.product.upc);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(F.Oj,{onClick:()=>{(0,Y.Oo)(),r&&a&&d.replace(a)},children:(0,i.jsx)($.US,{})}),(0,i.jsx)(F.UL,{children:(0,i.jsxs)(F.rr,{className:"product-card",dir:"ltr",children:[(0,i.jsx)(F.e2,{children:(0,i.jsx)(V.A,{items:[j.product]})}),(0,i.jsx)(F.dn,{dir:"ltr",children:(0,i.jsxs)(F.kr,{children:[(0,i.jsxs)(F.yr,{children:[(0,i.jsx)(F.Gf,{children:j.product.name}),(0,i.jsx)(F.me,{className:"desktop-only",href:I(j),target:"_blank",children:(0,i.jsx)("img",{src:"data:image/webp;base64,UklGRtAGAABXRUJQVlA4WAoAAAAUAAAAFwAAFwAAQUxQSKsAAAABgFtt27LmQSrG+PkOu7jDPwVM4O4kXcq0NgFt3Cp0gbgnA/BE3u+LDhARE4C/befFgvWlV8pFwVO/4Odd2L1eb51kXdimvAMAasKlFOOd3wmtmnCyJhW4Cr2acKLqUp11nXfMhQ/f4B1z4cM3qAknCoD9Yn/hlBMFU4PDMwUAu7tf0pL/TY0NMzeXUo4jsyDPJeuWo3Jev3rPqoTELc03PBpY2VZPXwzjjwIAVlA4IOwAAADwBwCdASoYABgAPpFAmUmlo6IhKAqosBIJbGnURNnAhcbwD8VeQM0+7q4YFiA5gDaAP1m9gDzANUA/YDrM/JpAmN+EkTFbcYAA/u9Zhr+hBo0biNXRR0sVAXv/iXuDBzlccq9152nymYjHAeUOUP0hropW+r5K5JiLKsQS+W6iCDZibX
1oLkBtRQFHnab++Mo7aPFDwZZHw8fCeBM9quuGMmyXQDQRD2WISRTbg8/aOG++dFAKWrnOSebNr/YdVX/WxzeFE/d+pU6w7Um3y0fq1DqjFj4vH6eRj4NBuv6ibACDhbiFMZmgDuAAAAFhNUCAKBQAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDAgNzkuMTYwNDUxLCAyMDE3LzA1LzA2LTAxOjA4OjIxICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOCAoTWFjaW50b3NoKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjAtMDktMjdUMDA6NTY6NDgrMDE6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDIwLTA5LTI3VDAwOjU3OjIyKzAxOjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDIwLTA5LTI3VDAwOjU3OjIyKzAxOjAwIiBkYzpmb3JtYXQ9ImltYWdlL3BuZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgcGhvdG9zaG9wOklDQ1Byb2ZpbGU9InNSR0IgSUVDNjE5NjYtMi4xIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjgzY2Q2MzY5LTEwYmMtNGM5Yi1iZThhLTA1N2JkOTEzYTQ4YyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo4M2NkNjM2OS0xMGJjLTRjOWItYmU4YS0wNTdiZDkxM2E0OGMiIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo4M2NkNjM2OS0xMGJjLTRjOWItYmU4YS0wNTdiZDkxM2E0OGMiPiA8eG1wTU06SGlzdG9yeT4gPHJkZjpTZXE+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJjcmVhdGVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjgzY2Q2MzY5LTEwYmMtNGM5Yi1iZThhLTA1N2JkOTEzYTQ4YyIgc3RFdnQ6d2hlbj0iMjAyMC0wOS0yN1QwMDo1Njo0OCswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKE1hY2ludG9zaCkiLz4gPC9yZGY6U2VxPiA8L3htcE1NOkhpc3Rvcnk+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+",alt:"".concat(j.product.name," link")})}),(0,i.jsx)(F.Qz,{children:(0,i.jsx)(F.NM,{children:(0,Z.$g)(j.devoPrice)})})]}),(0,i.jsx)(F.m0,{children:(0,Q.h)(j)}),"AVAILABLE"===j.availability?(0,i.jsx)(F.H1,{children:(0,i.jsx)(F.Sb,{children:f(j)?(0,i.jsx)(X.p,{value:x(j.product.upc,j.shopUuid).quantity,onDecrement:e=>U(e,j),onIncrement:e=>T(e,j),atMax:b(j)}):(0,i.jsx)(q.A,{title:"Add",iconPosition:"left",colors:"primary",size:"small",variant:"outlined",className:"cart-button",icon:(0,i.jsx)($.Kj,{}),onClick:e=>T(e,j)})})}):(0,i.jsx)(F.H1,{children:(0,i.jsx)(F.KJ,{children:"Unavailable"})}),(0,i.jsx)(F.zB,{children:(0,i.jsx)(F.Yh,{children:null==N?void 0:N.map((e,t)=>1===e.id?(0,i.jsx)(i.Fragment,{}):(0,i.jsx)("button",{type:"button",onClick:t=>{t.preventDefault(),s({type:"UPDATE_CATEGORY",payload:e.id.toString()}),(0,Y.Oo)()},children:(0,i.jsx)(F.pj,{children:e.name})},e.id))})})]})})]})}),(null==D?void 0:D.length)>0&&(0,i.jsxs)(F.Jb,{children:[(0,i.jsx)(F.Gf,{children:"Related Items"}),(0,i.jsx)(F.EX,{children:D.map((e,t)=>(0,i.jsx)(F.K5,{children:(0,i.jsx)(_,{children:(0,i.jsx)(H.A,{upc:e.product.upc,title:e.product.name,image:e.product.image,quantityUnits:e.product.quantityUnits,quantityMeasure:e.product.quantityMeasure,price:e.devoPrice,data:e,onClick:()=>(e=>{if(r){(0,Y.Oo)(),d.replace(I(e));return}C(e),window.history.replaceState({productModal:!0},"",I(e));var t=document.getElementsByClassName("reuseModalHolder")[0];t&&(t.scrollTop=0)})(e),addedToCart:()=>T(null,e),removedFromCart:()=>U(null,e),shouldAnimate:!1})})},t))})]})]})},eo=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(window.innerWidth<=767){let i=o(70930).A;(0,Y.qf)({show:!0,closeOnClickOutside:!1,component:i,componentProps:{initialItem:e,routeLanding:t.routeLanding,shopHref:t.shopHref,onDismiss:()=>(0,Y.Oo)(),onClose:()=>{(0,Y.Oo)(),t.routeLanding&&t.shopHref&&Promise.resolve().then(o.t.bind(o,89099,23)).then(e=>{let{default:o}=e;return o.replace(t.shopHref)})}},overlayClassName:"mobile-qv-overlay",config:{className:"mobile-qv-container",width:"100%"}})}else(0,Y.qf)({show:!0,overlayClassName:"quick-view-overlay",closeOnClickOutside:!t.routeLanding,component:et,componentProps:{modalProps:e,...t},closeComponent:t.routeLanding?void 0:"div",config:{enableResizing:!1,disableDragging:!0,className:"quick-view-modal",width:900,y:30,height:"auto",transition:{mass:1,tension:0,friction:0}}})};var ei=o(10454);let en=l()(()=>Promise.all([o.e(9665),o.e(9051)]).then(o.bind(o,79051)),{loadableGenerated:{webpack:()=>[79051]}}),er=l()(()=>o.e(2741).then(o.bind(o,62741)),{loadableGenerated:{webpack:()=>[62741]}}),ea=e=>{let{callback:t,clearCallback:o}=e;return(0,i.jsx)(en,{isOpen:null!==t,closeModal:()=>o(),children:(0,i.jsx)(er,{closeModal:()=>o(),title:"Are you old enough to buy age restricted items?",noText:"Cancel",
1yesText:"Yes, I am 18 or over",yesAction:()=>t(),children:(0,i.jsx)("p",{children:"Age restricted items (including alcohol and tobacco) are not for sale to anyone under the age of 18. You may need to provide a valid ID open receiving your order."})})})};var ed=o(45011),el=o(67815),es=o(7213);let ec=l()(()=>Promise.all([o.e(9665),o.e(9051)]).then(o.bind(o,79051)),{loadableGenerated:{webpack:()=>[79051]}}),ep=l()(()=>o.e(2741).then(o.bind(o,62741)),{loadableGenerated:{webpack:()=>[62741]}}),eu=e=>{let{onVisible:t,children:o}=e,[r,a]=(0,x.W)({once:!0});return(0,n.useEffect)(()=>{a&&t()},[a]),(0,i.jsx)("div",{ref:r,children:o})},eh=e=>{let{products:t=[],error:o,loading:r=!1,categories:a=[],shop:d,routeOwnedProductNavigation:l=!1}=e,{setPostcode:s,items:c,addItem:u,removeItem:h,isInCart:g,clearCart:f,removeCoupon:x}=(0,z._)(),v=(0,p.useRouter)(),{state:b,dispatch:w}=(0,n.useContext)(m.o),[j,C]=(0,n.useState)(null),[P,E]=(0,n.useState)(!1),[N,T]=(0,n.useState)({status:"idle"}),q=(0,el.V)(d),[Y,W]=(0,n.useState)(!1);(0,n.useEffect)(()=>{W(!d.open)},[null==d?void 0:d.open]);let F=(0,n.useCallback)((e,t,o)=>{var i;if((null==b?void 0:b.postcode)&&!o)return;let n=null==(i=v.query.prettyId)?void 0:i.toString();n&&(0,B.A)(n,e,t,o)},[null==b?void 0:b.postcode,v.query.prettyId]),Z=(0,n.useCallback)(e=>{var t,o,i,n;if(g(e)||P)return!1;let r=(null==e||null==(o=e.product)||null==(t=o.category)?void 0:t.containsTobacco)===!0,a=(null==e||null==(n=e.product)||null==(i=n.category)?void 0:i.containsAlcohol)===!0;return r||a},[g,P]),$=(0,n.useCallback)((e,t)=>{(null==b?void 0:b.postcode)&&s(b.postcode),u(e),(0,D.fE)(e,t,null==d?void 0:d.name,a,1)},[null==b?void 0:b.postcode,s,u,null==d?void 0:d.name,a]),V=(0,n.useCallback)((e,t)=>{Z(e)?C(()=>()=>{E(!0),$(e,t)}):$(e,t)},[Z,$]),J=(0,n.useCallback)(async e=>{T({status:"loading",href:e});try{let t=await v.push("/shop/[prettyId]/product/[productPrettyId]",e);T({status:t?"idle":"failed"})}catch(t){ei.Ay.warning("Product route navigation failed","products",t),T({status:"failed",href:e})}},[v]),X=(0,n.useCallback)((e,t)=>{var o,i;if("loading"===N.status)return;ei.Ay.debug("onClick product @ index ".concat(t),"products",e),(0,D.wt)(e,t,null==d?void 0:d.name,a);let n=(e=>{let{routeOwned:t,prettyId:o,productPrettyId:i,postcode:n}=e,r=t?(e=>{let{prettyId:t,productPrettyId:o,postcode:i}=e;if(!t||!o)return null;let n="/shop/".concat(encodeURIComponent(t),"/product/").concat(encodeURIComponent(o));return i?"".concat(n,"?postcode=").concat(encodeURIComponent(i)):n})({prettyId:o,productPrettyId:i,postcode:n}):null;return r?{kind:"route",href:r}:{kind:"quickview"}})({routeOwned:l,prettyId:(null==d?void 0:d.prettyId)||(null==(o=v.query.prettyId)?void 0:o.toString()),productPrettyId:null==e||null==(i=e.product)?void 0:i.prettyId,postcode:null==b?void 0:b.postcode});if("route"===n.kind)return void J(n.href);eo(e)},[null==d?void 0:d.name,null==d?void 0:d.prettyId,a,l,v.query.prettyId,null==b?void 0:b.postcode,N.status,J]),Q=(0,n.useCallback)((e,t)=>{var o;(0,M.n0)("add_to_cart_clicked",{product_name:null==e||null==(o=e.product)?void 0:o.name,shop_id:null==d?void 0:d.prettyId,shop_name:null==d?void 0:d.name}),(null==b?void 0:b.postcode)?(0,L.x_)(b.addressCheck,null==e?void 0:e.shopUuid,(0,G.E3)(b.postcode))?F(()=>V(e,t),e,b.postcode):(0,G.gN)(e,c)?V(e,t):(0,O.ul)(()=>{f(),x(),V(e,t)}):F(()=>V(e,t),e)},[null==b?void 0:b.postcode,null==b?void 0:b.addressCheck,c,f,x,F,V]),K=(0,n.useCallback)((e,t)=>{h(e),(0,D.rO)(e,t,null==d?void 0:d.name,a,1)},[h,null==d?void 0:d.name,a]),ee=(0,n.useCallback)((e,t)=>{a&&a.length>0&&d&&(0,D.DX)(e,t,d.name,a)},[a,d]);if(o)return(0,i.jsx)(y.A,{error:o});if(r||!t)return(0,i.jsxs)(k,{children:[(0,i.jsx)("div",{className:"desktop-only",children:[void 0,void 0,void 0].map((e,t)=>(0,i.jsx)(S,{children:(0,i.jsx)(R.Ay,{})},t))}),(0,i.jsx)("div",{className:"mobile-only",children:[...Array(7)].map((e,t)=>(0,i.jsx)(S,{children:(0,i.jsx)(R.jF,{})},t))})]});if(0===t.length)return(0,i.jsx)(U,{});let et=()=>W(null),en=(0,ed.nz)(d,"LONG");return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ec,{isOpen:Y,closeModal:et,children:(0,i.jsx)(ep,{closeModal:et,title:"Shop Closed",noText:"OK",children:(0,i.jsx)("p",{children:en?"This shop has now closed but you can still place your order and have it delivered ".concat(en,"."):"This shop has now closed and is no longer accepting orders."})})}),(0,i.jsx)(ea,{callback:j,clearCallback:()=>C(null)}),"loading"===N.status&&(0,i.jsx)("p",{role:"status","aria-live":"polite",children:"Loading product…"}),"failed"===N.status&&N.href&&(0,i.jsxs)("div",{role:"alert",children:[(0,i.jsx)("span",{children:"We could not open that product. "}),(0,i.jsx)("button",{type:"button",onClick:()=>J(N.href),children:"Try again"})]}),(0,i.jsx)(A,{"aria-busy":"loading"===N.status,children:t.map((e,t)=>(0,i.jsx)(I,{children:(0,i.jsx)(_,{children:(0,i.jsx)(eu,{onVisible:()=>ee(e,t),children:(0,i.jsx)(H.A,{upc:e.product.upc,title:e.product.name,image:e.product.thumbnail,quantityUnits:e.product.quantityUnits,quantityMeasure:e.product.quantityMeasure,price:q?e.shopPr
1ice:e.devoPrice,data:e,onClick:()=>X(e,t),addedToCart:()=>Q(e,t),removedFromCart:()=>K(e,t),shouldAnimate:!1,priceMarked:(0,es.b)(d)(e)})})})},e.product.upc))})]})};var eg=o(89602);let em=v.Ay.div.withConfig({componentId:"sc-1725ecfb-0"})(["margin:0;overflow:hidden;"]),ef=v.Ay.div.withConfig({componentId:"sc-1725ecfb-1"})(["position:absolute;width:100%;height:100%;background-color:rgba(0,0,0,0.5);z-index:2;border-radius:6px;cursor:auto;display:flex;justify-content:center;h3{color:white;align-self:center;}"]),ex=v.Ay.div.withConfig({componentId:"sc-1725ecfb-2"})(["vertical-align:top;width:100%;position:relative;margin:0;min-height:275px;background-color:rgb(255,142,48);overflow:hidden;&.seafood-supply-co-e10{max-height:450px;}> img{width:100%;height:100%;object-fit:cover;object-position:center;position:absolute;top:0;left:0;}&.seafood-supply-co-e10 > img{object-position:center calc(50% - 50px);}@media (max-width:767px){max-height:200px;min-height:200px;width:100%;}"]),ey=v.Ay.div.withConfig({componentId:"sc-1725ecfb-3"})(["padding:20px 40px;width:100%;overflow:auto;@media (max-width:768px){padding:25px 25px;}"]),ev=v.Ay.div.withConfig({componentId:"sc-1725ecfb-4"})(["float:left;@media (max-width:1100px){display:block;width:100%;}"]),eb=v.Ay.h1.withConfig({componentId:"sc-1725ecfb-5"})(["font-size:21px;font-weight:800;margin-bottom:5px;color:rgb(22,31,106);"]),ew=v.Ay.p.withConfig({componentId:"sc-1725ecfb-6"})(["font-size:15px;font-weight:400;color:rgb(158,158,158);@media (max-width:768px){font-size:14px;}"]),ej=v.Ay.button.withConfig({componentId:"sc-1725ecfb-7"})(["color:var(--devo-red);font-weight:600;cursor:pointer;background:none;border:none;padding:0;font-size:inherit;font-family:inherit;"]),eC=v.Ay.span.withConfig({componentId:"sc-1725ecfb-8"})(["font-weight:800;display:inline-block;color:#616568;margin:0 2px;font-size:6px;@media (max-width:480px){opacity:0;display:block;}"]),eA=v.Ay.div.withConfig({componentId:"sc-1725ecfb-9"})(["float:right;margin-top:4px;min-height:50px;@media (max-width:1100px){display:block;width:100%;margin-top:15px;min-height:90px;}"]),eI=v.Ay.div.withConfig({componentId:"sc-1725ecfb-10"})(["display:inline-block;margin-right:35px;@media (max-width:1100px){margin-top:20px;margin-right:0;width:50%;}"]),ek=v.Ay.p.withConfig({componentId:"sc-1725ecfb-11"})(["font-size:13px;font-weight:400;color:rgb(158,158,158);margin-bottom:10px;"]),eS=v.Ay.span.withConfig({componentId:"sc-1725ecfb-12"})(["font-size:13px;font-family:Inter,Inter-fallback,Helvetica Neue,sans-serif;font-weight:800;color:rgb(22,31,106);"]);var e_=o(39401),eP=o(34256);let eE=l()(()=>Promise.all([o.e(9665),o.e(9051)]).then(o.bind(o,79051)),{loadableGenerated:{webpack:()=>[79051]},ssr:!1}),eN=l()(()=>Promise.all([o.e(9759),o.e(4815)]).then(o.bind(o,94815)),{loadableGenerated:{webpack:()=>[94815]},ssr:!1}),eR=e=>{let{shop:t,reference:o,scheduledNextAvailableDate:r}=e,{state:a,dispatch:d}=(0,n.useContext)(m.o),{postcode:l}
1=a,[s,c]=(0,n.useState)(!1),[p,u]=(0,n.useState)(!1);(0,n.useEffect)(()=>{if(p)return;let e=!1,t=window.requestIdleCallback?window.requestIdleCallback(()=>{e||u(!0)},{timeout:1200}):window.setTimeout(()=>{e||u(!0)},400);return()=>{e=!0,window.cancelIdleCallback&&"number"==typeof t?window.cancelIdleCallback(t):clearTimeout(t)}},[p]);let[g,f]=(0,n.useState)(null);(0,n.useEffect)(()=>{if(!l||!(null==t?void 0:t.uuid))return void f(null);let e=new AbortController,o=!0,i=(0,G.E3)(l);return f(null),(0,eP.Qp)(t.uuid,(0,G.j3)(l),e.signal).then(e=>{o&&(f(e),d({type:"SET_ADDRESS_CHECK",payload:{shopUuid:t.uuid,postcode:i,deliverable:!!(null==e?void 0:e.uuid)}}))}).catch(t=>{o&&!e.signal.aborted&&ei.Ay.warning("Could not check shop serviceability","products",t)}),()=>{o=!1,e.abort()}},[null==t?void 0:t.uuid,l,d]);let{data:x}=(0,h.IT)(K.WY,{skip:!p||!t,variables:{shopId:null==t?void 0:t.uuid}}),{data:y,loading:v}=(0,h.IT)(e_.n,{skip:!p||!t||!l,variables:{shopId:null==t?void 0:t.uuid,input:{postcode:(0,G.j3)(l)}}}),b=(0,Z.Vl)(t),w=null==x?void 0:x.count,j=null==g?void 0:g.deliveryFee,C=null==y?void 0:y.estimate,A=!1===t.open?(0,ed.pS)(r,"LONG"):null,I=w>0,k=!v&&!!C&&t.open,S=j>=0,_=t.largeImageUrl||t.imageUrl,P=(0,n.useMemo)(()=>(0,i.jsx)("img",{src:_,alt:t.name,width:800,height:389,loading:"eager",fetchpriority:"high"}),[_]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(eE,{isOpen:s,closeModal:()=>c(!1),children:(0,i.jsx)(eN,{shop:t})}),(0,i.jsxs)(em,{ref:o,children:[(0,i.jsxs)(ex,{className:(null==t?void 0:t.prettyId)||"",children:[P,!1===t.open&&(0,i.jsx)(ef,{style:{borderRadius:0},children:(0,i.jsx)("h3",{children:A?"Pre-order ".concat(A):"Closed"})})]}),(0,i.jsxs)(ey,{children:[(0,i.jsxs)(ev,{children:[(0,i.jsx)(eb,{children:t.name}),(0,i.jsxs)(ew,{children:[b,(0,i.jsx)(eC,{children:"•"}),(0,i.jsx)(ej,{onClick:()=>c(!0),children:"More Info"})]})]}),(0,i.jsxs)(eA,{children:[(0,i.jsxs)(eI,{children:[(0,i.jsx)(ek,{children:"Shop Type"}),(0,i.jsx)(eS,{children:(null==t?void 0:t.type)||"Convenience Store"})]}),(0,i.jsxs)(eI,{"aria-hidden":!I,style:I?void 0:{visibility:"hidden"},children:[(0,i.jsx)(ek,{children:"Product Count"}),(0,i.jsx)(eS,{children:I?w:"--"})]}),(0,i.jsxs)(eI,{"aria-hidden":!k,style:k?void 0:{visibility:"hidden"},children:[(0,i.jsx)(ek,{children:"Delivery in"}),(0,i.jsx)(eS,{children:k?"".concat(C.from," - ").concat(C.to," minutes"):"--"})]}),(0,i.jsxs)(eI,{"aria-hidden":!S,style:S?void 0:{visibility:"hidden"},children:[(0,i.jsx)(ek,{children:"Delivery Fee"}),S&&j>0&&(0,i.jsx)(eS,{children:(0,Z.$g)(j)}),S&&0==j&&(0,i.jsx)(eS,{children:"Free"}),!S&&(0,i.jsx)(eS,{children:"--"})]})]})]})]})]})};var eT=o(48091),eU=o(88939),eO=o(91607);let ez=v.Ay.section.withConfig({componentId:"sc-cc1a28c1-0"})(["background:",";border-bottom:1px solid ",";padding:22px 24px 26px;@media (max-width:767px){padding:20px 16px 24px;}"],(0,b.y)("colors.lightColor","#F7F7F7"),(0,b.y)("colors.borderColor","#e6e6e6")),eD=v.Ay.div.withConfig({componentId:"sc-cc1a28c1-1"})(["margin:0 auto;max-width:1160px;"]),eG=v.Ay.h2.withConfig({componentId:"sc-cc1a28c1-2"})(["color:",";font-size:","px;margin:0 0 8px;"],(0,b.y)("colors.darkBold","#0D1136"),(0,b.y)("fontSizes.4","21"));v.Ay.p.withConfig({componentId:"sc-cc1a28c1-3"})(["color:",";margin:0;"],(0,b.y)("colors.darkRegular","#77798c"));let eL=v.Ay.div.withConfig({componentId:"sc-cc1a28c1-4"})(["margin-top:14px;"]),eM=v.Ay.div.withConfig({componentId:"sc-cc1a28c1-5"})(["color:",";display:flex;flex-direction:column;gap:12px;margin-top:16px;"],(0,b.y)("colors.darkRegular","#77798c")),eB=v.Ay.button.withConfig({componentId:"sc-cc1a28c1-6"})(["align-self:flex-start;background:",";border:0;border-radius:4px;color:#ffffff;cursor:pointer;padding:9px 14px;"],(0,b.y)("colors.primary","var(--devo-red)")),eq=e=>{let{shopUuid:t,userUuid:o}
1=e,[r,a]=(0,n.useState)([]),[d,l]=(0,n.useState)(!1),[s,c]=(0,n.useState)(null),[p,u]=(0,n.useState)(0);return((0,n.useEffect)(()=>{if(!o){a([]),c(null),l(!1);return}let e=new AbortController;return l(!0),c(null),a([]),(0,eO.HH)({shopUuid:t,userUuid:o,signal:e.signal}).then(t=>{e.signal.aborted||a((t.results||[]).filter(e=>{let{availability:t}=e;return"ONLINE-ONLY"===t||"IN-STORE-AND-ONLINE"===t}))}).catch(t=>{e.signal.aborted||c(t)}).finally(()=>{e.signal.aborted||l(!1)}),()=>e.abort()},[p,t,o]),o&&(d||s||0!==r.length))?(0,i.jsx)(ez,{"aria-labelledby":"shop-stamp-progress-heading",children:(0,i.jsxs)(eD,{children:[(0,i.jsx)(eG,{id:"shop-stamp-progress-heading",children:"Rewards"}),o&&d&&(0,i.jsx)(eT.A,{style:{margin:"16px 0"}}),o&&s&&(0,i.jsxs)(eM,{children:[(0,i.jsx)("span",{children:"We could not load your stamp progress for this shop."}),(0,i.jsx)(eB,{onClick:()=>u(e=>e+1),children:"Retry"})]}),o&&!d&&!s&&!!r.length&&(0,i.jsx)(eL,{children:(0,i.jsx)(eU.A,{campaigns:r})})]})}):null};var eY=o(46786),eW=o(61846),eF=o(22038);let eH=v.Ay.div.withConfig({componentId:"sc-79540716-0"})(["max-height:50vh;
1min-width:200px;overflow:scroll;"]),eZ=v.Ay.span.withConfig({componentId:"sc-79540716-1"})(["display:block;padding:20px;border-bottom:1px rgba(0,0,0,0.1) solid;&:active{background-color:rgba(0,0,0,0.1);}"]),e$=e=>{let{categories:t,didSelectCategory:o}=e;return(0,i.jsx)(eH,{children:t.map((e,n)=>(0,i.jsx)(eZ,{onClick:e=>{e.stopPropagation(),o(t[n])},children:e.name}))})};var eV=o(97460),eJ=o(11041);let eX=e=>{let{onSearch:t}=e;return(0,i.jsx)(eY.Z6,{className:"no-select",children:(0,i.jsx)("button",{type:"button",onClick:t,style:{background:"none",border:"none",padding:0,cursor:"pointer",color:"inherit",font:"inherit"},children:(0,i.jsx)(eV.g,{icon:eJ.MjD})})},999)},eQ=e=>{var t;let{shop:o,categories:r=[],categoriesLoading:a=!1}=e,d=(0,eW.A)().width<991,{state:l,dispatch:s}=n.useContext(m.o),{shopSearch:c}=l,p=parseInt(l.category||1),u=(0,n.useRef)(null),h=(0,n.useRef)(null),[g,f]=(0,n.useState)(null),[x,y]=(0,n.useState)([]),[v,b]=(0,n.useState)([]),[w,j]=(0,n.useState)([]),[C,A]=(0,n.useState)(null),I=e=>e&&1!==e.id?"/shop/".concat(null==o?void 0:o.prettyId,"?category=").concat(e.id):"/shop/".concat(null==o?void 0:o.prettyId);(0,n.useEffect)(()=>{var e;(null==(e=l.search)?void 0:e.length)>0&&!c&&s({type:"TOGGLE_SHOP_SEARCH"})},[l.search]);let k=a||!o,S=null!=r?r:[];(0,n.useEffect)(()=>{let e=S.filter(e=>e.productsCount>0),t=e.find(e=>e.id===p);if(!t){y([]),j([]),f(null),b([]);return}let o=e.find(e=>e.id===t.parentId),i=0===e.filter(e=>e.parentId===p).length;var n=i?[o]:[t];let r=i?o.id:t.id,a=e.filter(e=>e.parentId===r&&1!==e.id);for(;1!==n[0].id;)n=[e.find(e=>e.id===n[0].parentId)].concat(n);var d=n.filter(o=>{let n=e.filter(e=>e.parentId===o.parentId&&e.id>1);return i?n.length>1||t.parentId===o.id:n.length>1||t.id===o.id});if(1===n[n.length-1].id)y([]),j([]);else{y(d);let t=n.map(e=>e.id);j(e.filter(e=>1===e.parentId&&e.id>1&&!t.includes(e.id)))}f(i?t:null),b(a),1!==a.length||l.search||a[0].id===p||P(a[0])},[S,l.category,l.search]);let _=(e,t)=>{e.preventDefault(),P(t)},P=e=>{A(null),s({type:"UPDATE_CATEGORY",payload:null==e?void 0:e.id}),(0,D.HM)(e,S,o),u.current&&(u.current.scrollLeft=0)}
1,[E,N]=(0,n.useState)(l.search),[R,T]=(0,n.useState)(!1),[U,O]=(0,n.useState)(null),z=()=>{l.shopSearch||setTimeout(()=>{var e;null==h||null==(e=h.current)||e.focus()},50),s({type:"TOGGLE_SHOP_SEARCH"})};if(k)return(0,i.jsx)(eY.a3,{children:(0,i.jsx)(eT.A,{})});let G=0===x.length,L=null==(t=l.shop)?void 0:t.name;return d&&c?(0,i.jsxs)(eY.CC,{ref:u,style:{overflow:G?"scroll":"visible"},children:[(0,i.jsx)(eX,{onSearch:z}),(0,i.jsx)(eY.Gd,{children:(0,i.jsxs)("form",{onSubmit:e=>{var t;e.preventDefault(),null==h||null==(t=h.current)||t.blur()},children:[(0,i.jsx)("input",{ref:h,type:"text",value:E,onChange:e=>{let t=e.target.value;N(t),U&&clearTimeout(U),O(setTimeout(()=>{s({type:"UPDATE_SEARCH",payload:t&&t.length>0?t:""})},500))},onFocus:e=>{var t,o;T(!0),(0,M.n0)("open_search"),null==h||null==(o=h.current)||o.setSelectionRange(0,null==h||null==(t=h.current)?void 0:t.value.length)},onBlur:e=>{T(!1),(0,M.n0)("close_search")},placeholder:"Search ".concat(L||"products","...")}),d&&!R&&(0,i.jsx)("span",{className:"help",children:"Tap to search"})]})}),(0,i.jsx)("button",{type:"button",className:"cancel",onClick:z,children:"Cancel"})]}):d?(0,i.jsx)(eY.CC,{ref:u,style:{overflow:G?"scroll":"visible"},children:G?(0,i.jsx)(eY.lG,{children:(0,i.jsxs)(eY.ih,{className:"items",children:[(0,i.jsx)(eX,{onSearch:z}),v.map((e,t)=>(0,i.jsx)(eY.Z6,{className:G?"":"child",children:(0,i.jsx)("a",{href:I(e),className:e.id===p?"active":"",onClick:t=>_(t,e),children:e.name})},e.id))]})}):(0,i.jsx)(eY.lG,{children:(0,i.jsxs)(eY.Un,{className:"navigation",children:[x.concat(g?[g]:[]).map((e,t)=>(0,i.jsxs)(n.Fragment,{children:[(0,i.jsx)(eF.A,{id:t,state:C===t,handleToggle:e=>{0===t?P(null):A(C===e?null:t)},handler:(0,i.jsx)(eY.Tm,{className:"no-select",children:(0,i.jsx)("a",{href:I(e),children:1===e.id?"Home":e.name})},e.id),content:(0,i.jsx)(e$,{categories:S.filter(e=>e.productsCount>0).filter(t=>t.parentId===e.parentId&&1!==t.id),didSelectCategory:P})}),t<x.length&&!x.includes(g)&&(0,i.jsx)(eY.A,{className:"no-select",children:"/"})]},"mobile-parent-".concat(e.id,"-").concat(t))),!v.includes(g)&&(0,i.jsx)(eF.A,{id:-1,state:-1===C,handleToggle:e=>{A(C===e?null:-1)},handler:(0,i.jsx)(eY.Tm,{className:"no-select",children:(0,i.jsx)("span",{className:"label",children:"Select..."})},-1),content:(0,i.jsx)(e$,{categories:v,didSelectCategory:P})})]})})}):(0,i.jsxs)(eY.CC,{ref:u,className:G?"root":"",children:[!G&&(0,i.jsx)(eY.lG,{children:(0,i.jsx)(eY.ih,{className:"navigation",children:x.map((e,t)=>(0,i.jsxs)(n.Fragment,{children:[(0,i.jsx)(eY.Tm,{className:"no-select",children:(0,i.jsx)("a",{href:I(e),className:e.id===p?"label":"",onClick:t=>((e,t)=>{e.preventDefault(),t.id!==p&&(1===t.id?P(null):P(t))})(t,e),children:1===e.id?"Home":e.name})},e.id),t!==x.length-1&&(0,i.jsx)(eY.A,{className:"no-select",children:"/"})]},"desktop-parent-".concat(e.id,"-").concat(t)))})}),(0,i.jsx)(eY.lG,{children:(0,i.jsx)(eY.ih,{className:"items",children:v.map(e=>(0,i.jsx)(eY.Z6,{className:G?"":"child",children:(0,i.jsx)("a",{href:I(e),className:e.id===p?"active":"",onClick:t=>_(t,e),children:e.name})},e.id))})}),!G&&(0,i.jsx)(eY.lG,{children:(0,i.jsx)(eY.ih,{className:"additional",children:w.map(e=>(0,i.jsx)(eY.Z6,{children:(0,i.jsx)("a",{href:I(e),onClick:t=>_(t,e),children:e.name})},e.id))})})]})},eK=e=>{let{children:t}=e;return(0,i.jsx)(Y.aF,{children:t})},e0=v.Ay.div.withConfig({componentId:"sc-169c15a9-0"})(["display:flex;height:64px;align-items:center;background-color:",";box-shadow:0 2px 4px rgb(0 0 0 / 0.25);justify-content:center;img{height:40px;margin-right:15px;}a{display:block;font-family:Inter,Inter-fallback,Helvetica Neue,sans-serif;color:#fff;cursor:pointer;}@media (max-width:768px){height:auto;min-height:84px;padding:20px 0;a{margin:0 20px;}img{margin-right:0;margin-left:15px;}}"],e=>e.backgroundColor||"rgb(255, 142, 48)");var e1=o(86623),e3=o(13729),e2=o(85891);let e5=e=>{var t,o;let{ref:r,enabled:a,didChangeStatus:d,initialMessage:l}=e,[s,c]=(0,n.useState)(void 0!==l),{data:p}=(0,h.IT)(e2.x,{fetchPolicy:"cache-and-network",variables:{key:"shop_products_list_banner"},onCompleted:e=>{var t;c(!0),d((null==e||null==(t=e.message)?void 0:t.live)===!0)},onError:()=>{c(!0)}}),u=null!=(o=null!=(t=null==p?void 0:p.message)?t:l)?o:null,g=(null==u?void 0:u.link)==="devo://referral",m=(null==u?void 0:u.live)===!0,f=g?null:null==u?void 0:u.link;return(a||m)&&u?(0,i.jsxs)(e0,{ref:r,backgroundColor:u.backgroundColor,children:[u.imageUrl&&(0,i.jsx)("img",{src:u.imageUrl,alt:u.title,width:40,height:40}),(0,i.jsxs)("a",{href:f,target:g?null:"_blank",onClick:e=>{g&&((0,e3.C)("shop_banner"),(0,Y.qf)({config:{className:"flush-modal",width:560,height:"auto"},closeOnClickOutside:!0,component:e1.default,componentProps:{closeModal:Y.Oo},closeComponent:"div"}))},style:{textAlign:u.imageUrl?"left":"center",color:u.textColor,cursor:u.link?"pointer":"default"},children:[u.title,(0,i.jsx)("br",{}),(0,i.jsx)("span",{children:u.subtitle}),u.link&&(0,i.jsxs)(i.Fragment,{children:["\xa0\xa0",(0,i.jsx)(eV.g,{icon:eJ.XkK}
1)]})]})]}):s?(0,i.jsx)("div",{ref:r}):(0,i.jsxs)(e0,{ref:r,"aria-hidden":!0,style:{visibility:"hidden"},children:[(0,i.jsx)("img",{src:"data:image/gif;base64,R0lGODlhAQABAAAAACw=",alt:"",width:40,height:40}),(0,i.jsxs)("a",{children:["placeholder",(0,i.jsx)("br",{}),(0,i.jsx)("span",{children:"placeholder"})]})]})};var e4=o(16171);let e7=v.Ay.div.withConfig({componentId:"sc-4e48d29e-0"})(["display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;margin:12px 16px 0;padding:12px 16px;background:#fff7e6;border:1px solid #f5c97b;border-left:4px solid #f59e0b;border-radius:8px;@media (min-width:991px){margin:12px 30px 0;}"]),e6=v.Ay.span.withConfig({componentId:"sc-4e48d29e-1"})(["color:#5c4400;font-size:14px;font-weight:600;line-height:1.4;"]),e9=v.Ay.button.withConfig({componentId:"sc-4e48d29e-2"})(["flex-shrink:0;background:transparent;border:none;padding:0;color:#b45309;font-size:14px;font-weight:700;text-decoration:underline;cursor:pointer;&:hover{color:#92400e;}"]),e8=e=>{let{shopName:t,postcode:o,cleanPostcode:n}=e;return(0,i.jsxs)(e7,{role:"status",children:[(0,i.jsx)(e6,{children:(0,i.jsx)(e4.A,{id:"outOfRangeBannerMessage",defaultMessage:"{shopName} doesn't deliver to {postcode}",values:{shopName:t,postcode:o}})}),(0,i.jsx)(e9,{type:"button",onClick:()=>u().push("/shops/".concat(n)),children:(0,i.jsx)(e4.A,{id:"outOfRangeBannerCta",defaultMessage:"See shops that deliver to you"})})]})};var te=o(33773),tt=o(5207),to=o(57044),ti=o(72437),tn=o(34673),tr=o(70708),ta=o(14255);let td=l()(()=>Promise.all([o.e(5235),o.e(4456)]).then(o.bind(o,24456)),{loadableGenerated:{webpack:()=>[24456]},ssr:!1}),tl=l()(()=>Promise.all([o.e(5235),o.e(7465)]).then(o.bind(o,57465)),{loadableGenerated:{webpack:()=>[57465]},ssr:!1}),ts=l()(()=>Promise.all([o.e(8230),o.e(5757)]).then(o.bind(o,45757)),{loadableGenerated:{webpack:()=>[45757]},ssr:!1}),tc=l()(()=>o.e(8950).then(o.bind(o,38950)),{loadableGenerated:{webpack:()=>[38950]},ssr:!1}),tp=l()(()=>Promise.all([o.e(8230),o.e(2386)]).then(o.bind(o,22386)),{loadableGenerated:{webpack:()=>[22386]}}),tu=e=>{let[t]=(e||"").split("#"),[o,i=""]=t.split("?"),n=[...new URLSearchParams(i).entries()].sort((e,t)=>{let[o,i]=e,[n,r]=t,a=o.localeCompare(n);return 0!==a?a:i.localeCompare(r)}).map(e=>{let[t,o]=e;return"".concat(t,"=").concat(o)}).join("&");return n?"".concat(o,"?").concat(n):o};var th=!0;let tg=e=>{let{shop:t,promotionBannerMessage:o,initialProduct:r=null,hideShopSeo:d=!1}=e,l=(0,ti.k)(),s=(0,eW.A)(),x=(0,n.useRef)(null),v=(0,n.useRef)(null),[b,A]=(0,n.useState)((null==o?void 0:o.live)===!0),[I,k]=(0,n.useState)(!0),S=(0,p.useRouter)(),{state:_,dispatch:P}=(0,n.useContext)(m.o),R=(null==(eD=S.query.prettyId)?void 0:eD.toString())||(null==t?void 0:t.prettyId);(0,n.useEffect)(()=>{P({type:"UPDATE_SHOP",payload:t});let e=new URLSearchParams(window.location.search).get("postcode");e&&P({type:"UPDATE_POSTCODE",payload:e})},[null==t?void 0:t.uuid]),(0,n.useEffect)(()=>{if(!S.isReady)return;let e=S.query;e.search?P({type:"UPDATE_SEARCH",payload:e.search}):e.category?P({type:"UPDATE_CATEGORY",payload:Number(e.category)}):"recents"in e&&P({type:"SHOW_RECENTS",payload:!0}),e.page&&P({type:"SET_PAGE",payload:Number(e.page)})},[S.isReady]);let[T,U]=(0,n.useState)("ALL"),[O,z]=(0,n.useState)(null),[B,q]=(0,n.useState)(0),Y=(null==(eG=_.category)?void 0:eG.id)||_.category||1,W=_.page||1,[F,H]=(0,n.useState)(t),[Z,V]=(0,n.useState)(null),J=(0,n.useRef)(null);(0,n.useEffect)(()=>{if(H(t),V(null),(null==t?void 0:t.uuid)&&J.current!==t.uuid){var e;J.current=t.uuid,(0,D.s5)(t),null==(e=(0,tt.U0)())||e.group("shop",t.uuid,{name:t.name})}},[null==t?void 0:t.uuid]);let X=null==F?void 0:F.uuid,[Q,et]=(0,n.useState)(null);(0,n.useEffect)(()=>{et((0,tr.f)(F).firstAvailableDate)},[F]);let{data:eo,loading:en}=(0,h.IT)(ee.g,{skip:!X,variables:{shopId:X}}),[er,{data:ea,error:ed,loading:el,called:es}]=(0,g._)(K.Uw,{onCompleted:e=>{var t;ei.Ay.debug("GET_SHOP_PRODUCTS_FOR_SHOP onCompleted","products",null),"ALL"===T&&eA(null!=(t=null==e?void 0:e.response.shopProducts)?t:[])}}),[ec,{error:ep,loading:eu}]=(0,g._)(K.X6,{onCompleted:e=>{if(ei.Ay.debug("GET_PRODUCTS_FOR_SHOP_BY_TEXT onCompleted","products",null),"SEARCH"!==T)return;let t=(0,ta.Vu)(null==e?void 0:e.products);eA(t.shopProducts),q(t.results),(0,D.bj)(F,_.search,t.results,R)}}),[em,{data:ef,error:ex,loading:ey}]=(0,g._)(K.V9,{onCompleted:e=>{var t;ei.Ay.debug("GET_PRODUCTS_FOR_SHOP_BY_CATEGORY onCompleted","products",null),"CATEGORY"===T&&eA(null!=(t=null==e?void 0:e.response.shopProducts)?t:[])}}),ev=(0,tn.CY)(),{data:eb,loading:ew,error:ej}=(0,h.IT)(K.rB,{skip:!(X&&ev),variables:{shopUuid:X,userUuid:ev}}),eC=null==eb?void 0:eb.products.shopProducts;(0,n.useEffect)(()=>{var e,t,o;if(!_||!_.shop)return;let i=null==(e=S.query.prettyId)?void 0:e.toString(),n=!i||(null==(t=_.shop)?void 0:t.prettyId)===i,a=(0,to.hn)(_);(e=>{let{productLanding:t,stateShopMatchesRoute:o,currentRoute:i,nextRoute:n}=e;return!t&&o&&i!==n})({productLanding:!!(null==r||null==(o=r.product)?void 0:o.upc),stateShopMatchesRoute:n,currentRoute:tu(S.asPath),nextRoute:tu(a)})&&u().replace("/shop/[prettyId]",a,{shallow:!0}).then(()=>{window.history.replaceState((e=>{var t;return(null==e?void 0:e.__N)&&(null==(t=e.options)?void 0:t.shallow)?{...e,options:{...e.options,shallow:!1}}:e})(window.history.state),"",window.location.href)}).catch(()=>{}),I||!0!==l.desktop||e$();let d=(W-1)*24;(null==eC?void 0:eC.length)>0&&_.recents?(U("RECENTS"),F&&eA(eC.slice(d,24))):_.search&&_.search.length>0?(U("SEARCH"),(e=>{if(!F)return;let t=encodeURI(_.search.trim().replace(/[^a-zA-Z0-9&'.\s]/g," ")).replace("&","%26").replace("'","%27"),o={shopId:X,search:t,offset:e,limit:24};ei.Ay.debug('triggerTextSearch "'.concat(t,'"'),"products",o),ec({variables:o})})(d),e$()):_.category?(U("CATEGORY"),(e=>{if(!F)return;let t={shopUuid:X,categoryId:Y,offset:e,limit:24};ei.Ay.debug("triggerCategorySearch","products",t),em({variables:t})})(d)):(U("ALL"),(e=>{if(!F)return;let t={shopUuid:X,offset:e,limit:24};ei.Ay.debug("triggerAllSearch","products",t),er({variables:t})})(d)),k(!1)},[_.shop,_.search,_.category,_.postcode,_.page,_.recents,S.asPath,null==r||null==(eL=r.product)?void 0:eL.upc]);let eA=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];switch(ei.Ay.debug("receivedProducts","products",{count:e.length,state:T}),z(e),T){case"ALL":case"CATEGORY":var t=e_();(null==t?void 0:t.id)===1&&(t=null),(0,M.n0)("view_item_list",{item_category:(null==t?void 0:t.name)||"None",shop_name:F.name});return;case"SEARCH":(0,M.n0)("view_search_results",{search_term:_.search});return;case"RECENTS":(0,M.n0)("recently_ordered_items_viewed");return;default:return}},eI=(0,n.useRef)(0),ek=(0,n.useRef)(Date.now()),eS=(0,n.useCallback)(async()=>
1{if(!R||document.hidden)return;let e=++eI.current;try{let t=await (0,eP.zg)(R);if(e!==eI.current||(null==t?void 0:t.prettyId)!==R)return;ek.current=Date.now(),H(t),V(null),P({type:"UPDATE_SHOP",payload:t})}catch(t){if(e!==eI.current)return;ei.Ay.warning("Failed to refresh shop","products",t),V(t)}},[R,P]);(0,n.useEffect)(()=>{ek.current=Date.now();let e=window.setInterval(eS,6e4),t=()=>{!document.hidden&&Date.now()-ek.current>=6e4&&eS()};return document.addEventListener("visibilitychange",t),()=>{window.clearInterval(e),document.removeEventListener("visibilitychange",t),eI.current+=1}},[eS]);let e_=()=>null==eo?void 0:eo.categories.find(e=>e.id===Y),eE=()=>{switch(T){case"ALL":return ed;case"SEARCH":return ep;case"CATEGORY":return ex;default:return null}},eN=()=>{switch(T){case"ALL":return el;case"SEARCH":return eu;case"CATEGORY":return ey;default:return null}},eT=void 0===s.width||s.width<991,eU=eT?57:88,eO=(null==(eB=v.current)||null==(eM=eB.state)?void 0:eM.height)||64,ez=!eT&&b?eO-2:0;var eD,eG,eL,eM,eB,eY,eF,eH,eZ=(null==(eY=x.current)?void 0:eY.offsetHeight)||0;eT&&b&&(eZ+=eO);let e$=()=>{window.scrollTo({top:eZ,behavior:"smooth"})};if(!t)return(0,i.jsx)(c(),{statusCode:404});let eV=(null==F?void 0:F.largeImageUrl)||(null==F?void 0:F.imageUrl);return(0,i.jsxs)(i.Fragment,{children:[eV&&(0,i.jsx)(a(),{children:(0,i.jsx)("link",{rel:"preload",as:"image",href:eV,fetchpriority:"high"})}),F&&!d&&(0,i.jsx)(f.k,{...(0,te.L)(F)}),(0,i.jsxs)(eK,{children:[(0,i.jsxs)(eg.GI,{className:"header",style:{paddingTop:eU},children:[eT?(0,i.jsx)("div",{children:(0,i.jsx)(e5,{ref:v,enabled:b,initialMessage:o,didChangeStatus:e=>A(e)})}):(0,i.jsx)(C,{enabled:b,top:eU,children:(0,i.jsx)(e5,{ref:v,enabled:b,initialMessage:o,didChangeStatus:e=>A(e)})}),F&&(0,i.jsx)(eR,{shop:F,reference:x,scheduledNextAvailableDate:Q}),F&&(0,i.jsx)(eq,{shopUuid:F.uuid,userUuid:ev}),F&&(0,L.Jv)(_.addressCheck,F.uuid,(0,G.E3)(_.postcode))&&(0,i.jsx)(e8,{shopName:F.name,postcode:(0,G.j3)(_.postcode),cleanPostcode:(0,G.E3)(_.postcode)}),!F&&Z&&(0,i.jsx)(y.A,{error:Z}),!F&&!1]}),(null==r?void 0:r.product)&&F&&(0,i.jsx)("section",{"aria-label":"".concat(r.product.name," product details"),children:(0,i.jsx)(tp,{categories:null!=(eF=null==eo?void 0:eo.categories)?eF:[],shop:F,product:r,loading:!1,error:null})}),(0,i.jsx)(C,{enabled:!0,top:eU,children:(0,i.jsx)(eQ,{shop:F,categories:null!=(eH=null==eo?void 0:eo.categories)?eH:[],categoriesLoading:en})}),(0,i.jsx)(eg.kp,{id:"products",style:{contentVisibility:"auto",containIntrinsicSize:"1px 3000px"},children:(0,i.jsxs)(eg.GI,{className:"products",children:[(0,i.jsxs)(w,{children:[(null==eC?void 0:eC.length)>0&&"ALL"===T&&W<2&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(E.Wrapper,{children:[(0,i.jsx)(E.Title,{children:"Recently Ordered"}),(0,i.jsx)(E.Button,{onClick:e=>{P({type:"SHOW_RECENTS",payload:!0}),ei.Ay.debug("onRecentSelect","products",{count:null==eC?void 0:eC.length,state:_.search})},children:"See all"})]}),(0,i.jsx)(eh,{products:eC.slice(0,12),categories:null==eo?void 0:eo.categories,shop:F,routeOwnedProductNavigation:!!(null==r?void 0:r.product)}),(0,i.jsx)(E.Wrapper,{children:(0,i.jsx)(E.Title,{children:"Popular"})})]}),"RECENTS"===T&&(0,i.jsxs)(N,{children:[(0,i.jsx)("span",{children:"Recently Ordered"}),(0,i.jsx)("button",{type:"button",onClick:e=>{e.preventDefault(),ei.Ay.debug("onRecentDismiss","checkout",null),P({type:"SHOW_RECENTS",payload:!1})},children:(0,i.jsx)($.US,{})})]}),(0,i.jsx)(eh,{products:O,error:eE(),loading:eN(),categories:null==eo?void 0:eo.categories,shop:F,routeOwnedProductNavigation:!!(null==r?void 0:r.product)}),!eE()&&!eN()&&(0,i.jsx)(tc,{didSelectPage:e=>{el||eu||ey||(P({type:"SET_PAGE",payload:e}),z([]),e$())},totalProducts:(()=>{switch(T){case"ALL":return(null==ea?void 0:ea.response.results)||0;case"SEARCH":return B;case"CATEGORY":var e,t;return null!=(t=null==ef?void 0:ef.response.results)?t:null==(e=e_())?void 0:e.productsCount;case"RECENTS":return(null==eb?void 0:eb.products.results)||0;default:return 0}})(),productsPerPage:24,currentPage:W-1})]}),!eT&&(0,i.jsx)(j,{children:(0,i.jsxs)("div",{style:{position:"sticky",top:200+ez}
1,children:[(0,i.jsx)(tl,{className:"cart",scrollbarHeight:"60vh"}),(0,i.jsx)("div",{style:{backgroundColor:"transparent",width:1,height:30}})]})})]})}),(0,i.jsx)(td,{}),(0,i.jsx)(ts,{})]})]})},tm=tg},69742:(e,t,o)=>{"use strict";o.d(t,{A:()=>z});var i=o(37876),n=o(14232),r=o(37328),a=o(16171),d=o(50074),l=o(54431),s=o(78248),c=o(50841),p=o(59689);let u=c.Ay.div.withConfig({componentId:"sc-9bc5c72-0"})(["background-color:#fff;"]),h=c.Ay.h4.withConfig({componentId:"sc-9bc5c72-1"})(["text-align:center;padding:20px;border-bottom:1px #ebebeb solid;"]);c.Ay.div.withConfig({componentId:"sc-9bc5c72-2"})(["height:125px;margin:40px 0;img{object-fit:contain;height:100%;width:100%;}"]);let g=c.Ay.div.withConfig({componentId:"sc-9bc5c72-3"})(["padding:25px;"]),m=c.Ay.p.withConfig({componentId:"sc-9bc5c72-4"})(["color:#848686;"]),f=c.Ay.div.withConfig({componentId:"sc-9bc5c72-5"})(["width:100%;margin:10px 0 20px;input{border:1px solid #dedede !important;}input:focus{border:1px solid #ee4f4f !important;}"]),x=(0,c.Ay)(p.A).withConfig({componentId:"sc-9bc5c72-6"})(["text-align:center;margin:0 auto;width:100%;"]),y=c.Ay.button.withConfig({componentId:"sc-9bc5c72-7"})(["display:block;width:100%;margin:14px auto 0;padding:8px;background:transparent;border:none;color:#848686;font-size:14px;text-decoration:underline;cursor:pointer;&:disabled{opacity:0.5;cursor:default;}"]),v=c.Ay.button.withConfig({componentId:"sc-9bc5c72-8"})(["position:fixed;top:15px;right:15px;padding:10px 15px;z-index:1;cursor:pointer;display:block;color:rgba(0,0,0,0.5);background:transparent;border:0;outline:none;display:inline-block;svg{width:12px;height:12px;color:var(--devo-red);}@media (max-width:767px){top:5px;right:0;}"]);var b=o(35976),w=o(90565),j=o(41692),C=o(42122),A=o(50391),I=o(84626),k=o(75290),S=o(5691),_=o(89099),P=o(40405),E=o(5207),N=o(32130),R=o(27342),T=o(4060);let U=(e,t)=>(e||[]).filter(e=>e.uuid!==t),O=e=>{let{prettyId:t,onSuccess:o,rescueProduct:c,autoRescuePostcode:p}=e,O=(0,r.A)(),{setPostcode:z}=(0,j._)(),{dispatch:D}=n.useContext(k.o),{rescue:G}=(()=>{let e=(0,_.useRouter)(),t=(0,r.A)(),{items:o,setItems:i,setPostcode:a,removeCoupon:l}=(0,j._)(),{showToast:c}=(0,P.d)(),[p]=(0,s._)(A.G3,{fetchPolicy:"no-cache"}),[u]=(0,s._)(A.R_,{fetchPolicy:"no-cache"}),h=(0,n.useCallback)(t=>(0,R.Xi)(window.history.state)?e.replace(t):e.push(t),[e]),g=(0,n.useCallback)(async e=>{var o;let{best:n,rescueProduct:r,fromShop:s,fromShopId:p,upc:u,delta:g,cleanPostcode:m,district:f,replaceBasket:x}=e;await h("/shop/".concat(n.prettyId,"?postcode=").concat(m));let y=((e,t)=>{var o;let i=null==t?void 0:t.product;return{uuid:e.shopProductUuid,shopUuid:e.uuid,shopPrice:e.price,devoPrice:e.price,vatRate:e.vatRate,availability:e.availability,popularityScore:0,restrictions:i?null==t?void 0:t.restrictions:void 0,limit:null!=(o=null==t?void 0:t.limit)?o:0,quantity:1,product:{upc:e.upc,name:e.productName,prettyId:null==i?void 0:i.prettyId,units:null==i?void 0:i.units,quantityUnits:null==i?void 0:i.quantityUnits,quantityMeasure:null==i?void 0:i.quantityMeasure,category:null==i?void 0:i.category,vatRate:e.vatRate,thumbnail:null==i?void 0:i.thumbnail,image:null==i?void 0:i.image,priceMarked:null==i?void 0:i.priceMarked,legalLimit:null==i?void 0:i.legalLimit}}})(n,r);i(e=>((e,t,o)=>{let i=o.replace?[]:(e||[]).filter(e=>e.shopUuid===o.toShopUuid),n=i.findIndex(e=>{var o,i;return(null==(o=e.product)?void 0:o.upc)===(null==(i=t.product)?void 0:i.upc)});return n>-1?i.map((e,o)=>o===n?{...e,quantity:e.quantity+t.quantity}:e):[...i,t]})(e,y,{toShopUuid:n.uuid,replace:x})),a(m),x&&l(),(0,d.s7)(),null==(o=(0,E.U0)())||o.register({rescued_session:!0,rescue_from_shop:p,rescue_to_shop:n.uuid,rescue_match_type:n.matchType,rescue_price_direction:g.direction}),(0,S.n0)("product_rescue_redirected",{from_shop_id:p,from_shop_name:null==s?void 0:s.name,to_shop_id:n.uuid,to_shop_pretty_id:n.prettyId,upc:u,match_type:n.matchType,price_from:null==r?void 0:r.devoPrice,price_to:n.price,price_delta:g.delta,price_direction:g.direction,postcode:m,district:f,basket_replaced:x}),c({message:t.formatMessage({id:"rescueMovedToast",defaultMessage:"We moved you to {shopName}, which delivers to you"},{shopName:n.name}),priceDelta:{direction:g.direction,delta:g.delta}})},[t,i,a,l,h,c]);return{rescue:(0,n.useCallback)(async(e,t,i)=>{var n,r,a,l,s,c,m,f,x,y;let v,b=(0,I.j3)(e),w=(0,I.E3)(e),j=null==t||null==(n=t.product)?void 0:n.upc,C=null!=(l=null==i?void 0:i.uuid)?l:null==t?void 0:t.shopUuid,A=(0,I.mW)(e);(0,S.n0)("product_rescue_shown",{from_shop_id:C,from_shop_name:null==i?void 0:i.name,from_shop_pretty_id:null==i?void 0:i.prettyId,upc:j,product_name:null==t||null==(r=t.product)?void 0:r.name,postcode:w,district:A});try{let{data:e,error:t}=await p({variables:{postcode:b,upc:String(j),shopUuid:C}});if(t)throw t;v=null!=(s=null==e?void 0:e.shopsWithProduct)?s:[]}catch(e){return{kind:"error"}}let k=U(v,C),_=0;if(0===k.length)try{let{data:e}=await u({variables:{postcode:b}});_=null!=(m=null==e||null==(c=e.shops)?void 0:c.length)?m:0}catch(e){_=0}let P=(e=>{let t=U(e.results,e.fromShopId);if(0===t.length)return{kind:"no_match",fallback:e.inRangeShopsCount>0?"shops_list":"notify_me",inRangeShopsCount:e.inRangeShopsCount};let o=t[0],{exactCount:i,siblingCount:n}=(e=>{let t=e.filter(e=>"EXACT"===e.matchType).length;return{exactCount:t,siblingCount:e.length-t}})(t),r=(0,T.o)(e.fromPrice,o.price),a=0===e.basketItemCount,d=!!e.basketShopUuid&&o.uuid===e.basketShopUuid,l={best:o,delta:r,matchCount:t.length,exactCount:i,siblingCount:n};return a||d?{kind:"redirect",...l}:{kind:"blocked",...l}})({results:k,fromShopId:C,fromPrice:null==t?void 0:t.devoPrice,basketItemCount:null!=(f=null==o?void 0:o.length)?f:0,basketShopUuid:null==o||null==(a=o[0])?void 0:a.shopUuid,inRangeShopsCount:_});if("no_match"===P.kind)return(0,S.n0)("product_rescue_no_match",{from_shop_id:C,upc:j,postcode:w,district:A,in_range_shops_count:P.inRangeShopsCount,fallback:P.fallback}),"shops_list"===P.fallback?(await h("/shops/".concat(w)),(0,d.s7)()):((0,d.s7)(),(0,N.A)(w)),{kind:"no_match",fallback:P.fallback};let{best:E,delta:R,matchCount:O,exactCount:z,siblingCount:D}=P;return((0,S.n0)("product_rescue_matched",{from_shop_id:C,upc:j,postcode:w,district:A,match_count:O,exact_count:z,sibling_count:D,best_match_type:E.matchType,best_to_shop_id:E.uuid,best_to_shop_pretty_id:E.prettyId,price_from:null==t?void 0:t.devoPrice,price_to:E.price,price_delta:R.delta,price_delta_pct:R.deltaPct,price_direction:R.direction,basket_was_empty:(null!=(x=null==o?void 0:o.length)?x:0)===0}),"blocked"===P.kind)?((0,S.n0)("product_rescue_blocked",{from_shop_id:C,basket_shop_id:null==(y=o[0])?void 0:y.shopUuid,basket_item_count:o.length,to_shop_id:E.uuid,to_shop_pretty_id:E.prettyId,upc:j,postcode:w,district:A}),{kind:"blocked",best:E,delta:R,confirmSwitch:()=>g({best:E,rescueProduct:t,fromShop:i,fromShopId:C,upc:j,delta:R,cleanPostcode:w,district:A,replaceBasket:!0})}):(await g({best:E,rescueProduct:t,fromShop:i,fromShopId:C,upc:j,delta:R,cleanPostcode:w,district:A,replaceBasket:!1}),{kind:"redirected",shop:E})},[o,p,u,h,g])}}
1)(),[L,M]=(0,n.useState)(null!=p?p:""),[B,q]=(0,n.useState)(null),[Y,W]=(0,n.useState)(!1),[F,H]=(0,n.useState)(null),Z=(0,n.useRef)(!0);(0,n.useEffect)(()=>()=>{Z.current=!1},[]),(0,n.useEffect)(()=>{(0,S.n0)("postcode_modal_shown",{shop_id:t,auto_rescue:!!p})},[]);let{data:$,loading:V}=(0,l.IT)(A.Hp,{variables:{shopId:t},onError:q}),[J,{data:X,loading:Q,called:K,error:ee}]=(0,s._)(A.rl,{fetchPolicy:"no-cache"}),et=()=>{var e;return q(O.formatMessage({id:"rescueShopDoesNotDeliver",defaultMessage:"{shopName} does not deliver to your area."},{shopName:null==$||null==(e=$.shop)?void 0:e.name}))},eo=e=>{var t,o,i;q(null),W(!0),G(e,c,{uuid:null==$||null==(t=$.shop)?void 0:t.uuid,name:null==$||null==(o=$.shop)?void 0:o.name,prettyId:null==$||null==(i=$.shop)?void 0:i.prettyId}).then(e=>{Z.current&&("blocked"===e.kind?(W(!1),H(e)):"error"===e.kind&&(W(!1),et()))}).catch(()=>{Z.current&&(W(!1),et())})},ei=(0,n.useRef)(!1);(0,n.useEffect)(()=>{p&&c&&(null==$?void 0:$.shop)&&!ei.current&&(ei.current=!0,eo(p))},[$,p]),(0,n.useEffect)(()=>{var e,i,n;if(!Q&&K&&$)if(!ee&&(null==X||null==(e=X.shop)?void 0:e.uuid)){let e=(0,I.E3)(L);(0,S.n0)("postcode_modal_completed",{status:"success",postcode:e,shop_id:t,shop_name:null==$||null==(i=$.shop)?void 0:i.name}),D({type:"UPDATE_POSTCODE",payload:e}),z(e),(0,d.Oo)(),null==o||o()}else{if((0,S.n0)("postcode_modal_completed",{status:"failure",postcode:(0,I.E3)(L),shop_id:t,shop_name:null==$||null==(n=$.shop)?void 0:n.name}),!c)return void et();eo(L)}},[X,ee]);let en=async()=>{var e;J({variables:{shopId:null==$||null==(e=$.shop)?void 0:e.uuid,postcode:(0,I.j3)(L)}})};if(F){let{best:e,delta:o}=F,n="\xa3".concat(Number(e.price).toFixed(2)),r=(null==o?void 0:o.direction)==="down"?O.formatMessage({id:"rescuePriceCheaper",defaultMessage:" (\xa3{amount} cheaper)"},{amount:Number(o.delta).toFixed(2)}):(null==o?void 0:o.direction)==="up"?O.formatMessage({id:"rescuePriceMore",defaultMessage:" (\xa3{amount} more)"},{amount:Number(o.delta).toFixed(2)}):"";return(0,i.jsxs)(u,{children:[(0,i.jsx)(v,{onClick:()=>(0,d.Oo)(),children:(0,i.jsx)(b.US,{})}),(0,i.jsx)(h,{children:(0,i.jsx)(a.A,{id:"rescueDeliversToYou",defaultMessage:"{shopName} delivers to you",values:{shopName:e.name}})}),(0,i.jsxs)(g,{children:[(0,i.jsx)(m,{style:{marginBottom:20},children:(0,i.jsx)(a.A,{id:"rescueSwitchBody",defaultMessage:"Switch to get {productName} for {price}{priceHint}. Your current basket will be replaced.",values:{productName:e.productName,price:n,priceHint:r}})}),(0,i.jsx)(x,{title:O.formatMessage({id:"rescueSwitchButton",defaultMessage:"Switch to {shopName}"},{shopName:e.name}),iconPosition:"left",onClick:()=>{F&&(W(!0),F.confirmSwitch().catch(()=>{Z.current&&(W(!1),H(null),et())}))},disabled:Y,isLoading:Y}),(0,i.jsx)(y,{type:"button",onClick:()=>{var e;(0,S.n0)("product_rescue_switch_declined",{shop_id:t,to_shop_id:null==F||null==(e=F.best)?void 0:e.uuid}),(0,d.Oo)()},disabled:Y,children:(0,i.jsx)(a.A,{id:"rescueKeepBasket",defaultMessage:"Keep my basket"})})]})]})}return(0,i.jsxs)(u,{children:[(0,i.jsx)(v,{onClick:()=>(0,d.Oo)(),children:(0,i.jsx)(b.US,{})}),(0,i.jsx)(h,{children:"Delivery Address"}),(0,i.jsxs)(g,{children:[(0,i.jsx)(m,{children:"Enter your postcode:"}),(0,i.jsx)(f,{children:(0,i.jsx)(w.A,{type:"text",intlPlaceholderId:"enterPostcodePlaceholder",value:L,onUpdate:e=>{M(e),B&&q(null)}})}),B&&(0,i.jsx)(m,{style:{color:"red",marginBottom:20},children:(0,C.u$)(B)}),(0,i.jsx)(x,{title:"Search",iconPosition:"left",onClick:en,disabled:0===L.length||!(null==$?void 0:$.shop)||Y,isLoading:Q||V||Y})]})]})},z=(e,t,o,i)=>{(0,d.qf)({show:!0,closeOnClickOutside:!0,component:O,componentProps:{prettyId:e,onSuccess:t,rescueProduct:o,autoRescuePostcode:i},closeComponent:"div",config:{width:500,height:"auto"}})}},70930:(e,t,o)=>{"use strict";o.d(t,{A:()=>q});var i=o(37876),n=o(14232),r=o(98477),a=o(89099),d=o(54431),l=o(59689),s=o(35976),c=o(33995),p=o(33920),u=o(75290),h=o(41692),g=o(48830),m=o(99046),f=o(29356),x=o(84626),y=o(86172),v=o(27342),b=o(5737),w=o(69742),j=o(32885),C=o(13842),A=o(50841);let I=A.Ay.div.withConfig({componentId:"sc-19e48f4f-0"})(["position:fixed;inset:0;z-index:10000;background:#fff;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;width:100vw;"]),k=A.Ay.div.withConfig({componentId:"sc-19e48f4f-1"})(["position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:flex-end;padding:12px 16px;background:#fff;border-bottom:1px solid #eee;"]),S=A.Ay.button.withConfig({componentId:"sc-19e48f4f-2"})(["display:flex;align-items:center;gap:6px;background:none;border:none;padding:4px 0;font-size:15px;font-weight:600;color:var(--devo-red,#ea4335);
1cursor:pointer;font-family:inherit;svg{width:10px;height:10px;transform:rotate(90deg);}"]),_=A.Ay.div.withConfig({componentId:"sc-19e48f4f-3"})(["display:flex;align-items:center;justify-content:center;background:#fff;padding:24px;min-height:240px;img{max-height:200px;max-width:100%;object-fit:contain;}"]),P=A.Ay.div.withConfig({componentId:"sc-19e48f4f-4"})(["padding:20px 16px;"]),E=A.Ay.div.withConfig({componentId:"sc-19e48f4f-5"})(["display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:4px;"]),N=A.Ay.h2.withConfig({componentId:"sc-19e48f4f-6"})(["font-size:20px;font-weight:700;color:#0D1136;line-height:1.3;margin:0;"]),R=A.Ay.span.withConfig({componentId:"sc-19e48f4f-7"})(["font-size:20px;font-weight:700;color:var(--devo-red,#ea4335);white-space:nowrap;flex-shrink:0;"]),T=A.Ay.p.withConfig({componentId:"sc-19e48f4f-8"})(["font-size:14px;color:#77798c;margin:2px 0 0;"]),U=A.Ay.p.withConfig({componentId:"sc-19e48f4f-9"})(["font-size:13px;font-weight:600;color:",";margin:8px 0 0;"],e=>e.available?"#509129":"#ff0000"),O=A.Ay.div.withConfig({componentId:"sc-19e48f4f-10"})(["display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;"]),z=A.Ay.button.withConfig({componentId:"sc-19e48f4f-11"})(["background:#f3f3f3;border:none;border-radius:20px;padding:6px 16px;font-size:13px;font-weight:600;color:#0D1136;cursor:pointer;font-family:inherit;&:active{background:#e8e8e8;}"]),D=A.Ay.div.withConfig({componentId:"sc-19e48f4f-12"})(["margin-top:20px;.reusecore__button{width:100%;height:44px;border-radius:22px;font-size:15px;font-weight:700;color:#fff;background-color:var(--devo-red,#ea4335);border-color:var(--devo-red,#ea4335);.btn-icon{margin-right:8px;}}"]),G=A.Ay.hr.withConfig({componentId:"sc-19e48f4f-13"})(["border:none;border-top:1px solid #eee;margin:0;"]),L=A.Ay.div.withConfig({componentId:"sc-19e48f4f-14"})(["padding:16px;background:#f8f8f8;overflow:hidden;"]),M=A.Ay.h3.withConfig({componentId:"sc-19e48f4f-15"})(["font-size:16px;font-weight:700;color:#0D1136;margin:0 0 12px;"]),B=A.Ay.div.withConfig({componentId:"sc-19e48f4f-16"})(["display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;"]),q=e=>{var t;let{initialItem:o,onClose:A,onDismiss:q,routeLanding:Y=!1}=e,W=(0,a.useRouter)(),{state:F,dispatch:H}=n.useContext(u.o),{items:Z,addItem:$,removeItem:V,isInCart:J,getItem:X,clearCart:Q,removeCoupon:K}=(0,h._)(),{atCap:ee,guardAdd:et}=(0,g.P)(),[eo,ei]=(0,n.useState)(o),en=(0,n.useRef)(!1),er=e=>{let t="/shop/".concat(W.query.prettyId,"/product/").concat(e.product.prettyId);return F.postcode&&(t+="?postcode=".concat(encodeURIComponent(F.postcode))),t};(0,n.useEffect)(()=>(Y||window.location.pathname.includes("/product/")||window.history.pushState({productModal:!0},"",er(eo)),()=>{if((0,v.Np)(en.current,window.history.state)){let e=window.scrollY;window.history.back(),requestAnimationFrame(()=>window.scrollTo(0,e))}}),[]),(0,n.useEffect)(()=>{let e=()=>{en.current=!0,(q||A)()};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[A,q]);let{data:ea}=(0,d.IT)(j._Q,{skip:!eo,variables:{shopId:null==eo?void 0:eo.shopUuid,category:null==eo?void 0:eo.product.category.id.toString(),offset:0,limit:10}}),{data:ed}=(0,d.IT)(C.g,{skip:!(null==eo?void 0:eo.shopUuid),variables:{shopId:null==eo?void 0:eo.shopUuid}}),[el,es]=(0,n.useState)([]);(0,n.useEffect)(()=>{let e=null==ed?void 0:ed.categories;if(!eo||!(null==e?void 0:e.length))return;let t=e.find(e=>{var t,o;return e.id===(null==(o=eo.product)||null==(t=o.category)?void 0:t.id)});if(!t)return;let o=[t];for(;1!==o[0].id;){let t=e.find(e=>e.id===o[0].parentId);if(!t)break;o=[t,...o]}es(o)},[eo,ed]);let ec=null==ea||null==(t=ea.products)?void 0:t.filter(e=>e.product.upc!==eo.product.upc),ep=(e,t)=>{var o,i;if(null==e||e.stopPropagation(),!et(t)){if(!(null==F?void 0:F.postcode)){let e=null==(o=W.query.prettyId)?void 0:o.toString();e&&(0,w.A)(e,()=>$(t),t);return}if((0,y.x_)(F.addressCheck,null==t?void 0:t.shopUuid,(0,x.E3)(F.postcode))){let e=null==(i=W.query.prettyId)?void 0:i.toString();e&&(0,w.A)(e,()=>$(t),t,F.postcode);return}(0,x.gN)(t,Z)?$(t):(0,b.ul)(()=>{Q(),K(),$(t)})}},eu=(e,t)=>
1{null==e||e.stopPropagation(),V(t)},eh="AVAILABLE"===eo.availability,eg=J(eo);return(0,r.createPortal)((0,i.jsxs)(I,{id:"mobile-quickview","data-devo-modal-external":"",role:"dialog","aria-modal":"true","aria-label":"".concat(eo.product.name," details"),tabIndex:-1,children:[(0,i.jsx)(k,{children:(0,i.jsxs)(S,{onClick:A,children:[(0,i.jsx)("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M10 12L6 8L10 4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),"Go to shop"]})}),(0,i.jsx)(_,{children:(0,i.jsx)("img",{src:eo.product.image||eo.product.thumbnail,alt:eo.product.name})}),(0,i.jsxs)(P,{children:[(0,i.jsxs)(E,{children:[(0,i.jsx)(N,{children:eo.product.name}),(0,i.jsx)(R,{children:(0,m.$g)(eo.devoPrice)})]}),(0,i.jsx)(T,{children:(0,f.h)(eo)}),(0,i.jsx)(U,{available:eh,children:eh?"In stock":"Unavailable"}),el.length>0&&(0,i.jsx)(O,{children:el.filter(e=>1!==e.id).map(e=>(0,i.jsx)(z,{onClick:()=>{H({type:"UPDATE_CATEGORY",payload:e.id.toString()}),A()},children:e.name},e.id))}),(0,i.jsx)(D,{children:eh&&(eg?(0,i.jsx)(c.p,{value:X(eo.product.upc,eo.shopUuid).quantity,onDecrement:e=>eu(e,eo),onIncrement:e=>ep(e,eo),atMax:ee(eo)}):(0,i.jsx)(l.A,{title:"Add to cart",iconPosition:"left",icon:(0,i.jsx)(s.Kj,{}),onClick:e=>ep(e,eo)}))})]}),(null==ec?void 0:ec.length)>0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(G,{}),(0,i.jsxs)(L,{children:[(0,i.jsx)(M,{children:"Related Items"}),(0,i.jsx)(B,{children:ec.map((e,t)=>(0,i.jsx)(p.A,{upc:e.product.upc,title:e.product.name,image:e.product.image,quantityUnits:e.product.quantityUnits,quantityMeasure:e.product.quantityMeasure,price:e.devoPrice,data:e,onClick:()=>(e=>{if(Y){(q||A)(),W.replace(er(e));return}ei(e),window.history.replaceState({productModal:!0},"",er(e));let t=document.getElementById("mobile-quickview");t&&(t.scrollTop=0)})(e),addedToCart:()=>ep(null,e),removedFromCart:()=>eu(null,e),shouldAnimate:!1},t))})]})]})]}),document.body)}},86172:(e,t,o)=>{"use strict";o.d(t,{Jv:()=>n,x_:()=>r});let i=(e,t,o)=>!!e&&!!t&&!!o&&e.shopUuid===t&&e.postcode===o&&!1===e.deliverable,n=i,r=i},87156:(e,t,o)=>{e.exports=o(58123)},89602:(e,t,o)=>{"use strict";o.d(t,{Fe:()=>a,GI:()=>d,XF:()=>s,kp:()=>r,pN:()=>l,te:()=>n});var i=o(50841);let n=i.Ay.div.withConfig({componentId:"sc-6d9a490b-0"})(["width:100%;height:auto;min-height:100vh;display:flex;flex-direction:column;background-color:#f7f7f7;position:relative;padding:100px 60px 60px;justify-content:space-between;@media (max-width:768px){padding:100px 30px 60px;}@media (max-width:1199px){padding:100px 30px 60px;}"]),r=i.Ay.main.withConfig({componentId:"sc-6d9a490b-1"})(["width:100%;display:flex;flex-wrap:wrap;background-color:#f7f7f7;padding-right:0;transition:padding-right 0.35s ease-in-out;"]);i.Ay.div.withConfig({componentId:"sc-6d9a490b-2"})(["background-color:#ffffff;width:280px;@media (max-width:990px){display:none;}"]);let a=i.Ay.div.withConfig({componentId:"sc-6d9a490b-3"})(["width:85%;height:auto;min-height:100vh;padding:30px 30px 50px;padding-top:100px;@media (max-width:768px){padding:30px 7.5px 50px;}@media (max-width:1199px) and (min-width:991px){padding:100px 30px 50px;}@media (max-width:1367px) and (min-width:1200px){padding:100px 30px 50px;}@media (max-width:990px){width:100%;}@media (max-width:768px){padding-top:15px;min-height:auto;}"]),d=i.Ay.div.withConfig({componentId:"sc-6d9a490b-4"})(["width:100%;height:auto;min-height:100vh;padding-top:100px;&.header{background-color:#fff;margin:0;padding:0;min-height:0;}&.products{display:flex;flex-wrap:wrap;align-items:stretch;margin:0 auto;padding-top:30px;@media (max-width:900px){padding:25px;}@media (max-width:768px){padding:25px 10px;}}.product-cart{@media (min-width:901px){display:none;}}"]);i.Ay.h2.withConfig({componentId:"sc-6d9a490b-5"})(["font-size:24px;font-weight:800;color:var(--devo-red);padding:0px 20px 20px;margin:50px 10px 20px;border-bottom:2px solid var(--devo-red);width:auto;display:inline-block;"]);let l=i.Ay.div.withConfig({componentId:"sc-6d9a490b-6"})(["display:flex;flex-wrap:wrap;margin-top:30px;@media (max-width:768px){margin-left:-7.5px;margin-right:-7.5px;margin-top:15px;}
1"]),s=i.Ay.div.withConfig({componentId:"sc-6d9a490b-7"})(["flex:0 0 20%;max-width:20%;padding-left:15px;padding-right:15px;margin-bottom:30px;@media (max-width:1650px){flex:0 0 25%;max-width:25%;}@media (max-width:1300px){flex:0 0 33.3333333%;max-width:33.3333333%;}@media (max-width:1199px) and (min-width:900px){padding-left:10px;padding-right:10px;margin-bottom:20px;}@media (max-width:899px) and (min-width:769px){flex:0 0 50%;max-width:50%;}@media (max-width:768px){padding-left:7.5px;padding-right:7.5px;margin-bottom:15px;flex:0 0 50%;max-width:50%;}@media (max-width:490px){flex:0 0 100%;max-width:100%;}"])},92134:(e,t,o)=>{"use strict";o.d(t,{EX:()=>A,Gf:()=>p,H1:()=>x,Jb:()=>j,K5:()=>C,KJ:()=>I,NM:()=>g,OV:()=>k,Oj:()=>w,Qz:()=>h,Sb:()=>f,UL:()=>r,Yh:()=>v,dn:()=>l,e2:()=>d,kr:()=>s,m0:()=>m,me:()=>u,pj:()=>b,rr:()=>a,yr:()=>c,zB:()=>y});var i=o(50841),n=o(21651);let r=i.Ay.div.withConfig({componentId:"sc-e07f5113-0"})(["max-width:1020px;"]),a=i.Ay.div.withConfig({componentId:"sc-e07f5113-1"})(["background-color:#fff;position:relative;display:flex;flex-wrap:wrap;align-items:stretch;min-height:100%;border-radius:6px;overflow:hidden;box-sizing:border-box;*{box-sizing:border-box;}"]),d=i.Ay.div.withConfig({componentId:"sc-e07f5113-2"})(["flex:0 0 50%;max-width:50%;max-height:500px;padding:30px 60px;display:flex;align-items:center;justify-content:center;position:relative;img{object-fit:contain;}.react-multi-carousel-item img{max-height:350px;}.react-multi-carousel-dot-list img{height:70px !important;}@media (max-width:767px){flex:0 0 100%;max-width:100%;padding:30px 47px 40px 30px;order:0;}img{width:100%;@media (max-width:767px){min-width:auto !important;}}"]);i.Ay.span.withConfig({componentId:"sc-e07f5113-3"})(["font-size:12px;font-weight:800;color:#ffffff;background-color:",";padding:0 10px;line-height:24px;border-radius:12px;display:inline-block;position:absolute;top:40px;right:30px;"],(0,n.y)("colors.yellow","#FBB979")),i.Ay.span.withConfig({componentId:"sc-e07f5113-4"})(["font-size:","px;font-weight:",";color:#ffffff;line-height:24px;background-color:",";padding-left:10px;padding-right:10px;position:relative;display:inline-block;position:absolute;top:30px;right:30px;border-radius:12px;-webkit-transform:translate3d(0,0,1px);transform:translate3d(0,0,1px);"],(0,n.y)("fontSizes.1","13"),(0,n.y)("fontWeights.6","700"),(0,n.y)("colors.yellow","#FBB979"));let l=i.Ay.div.withConfig({componentId:"sc-e07f5113-5"})(["flex:0 0 50%;max-width:50%;border-left:1px solid ",";@media (max-width:767px){flex:0 0 100%;max-width:100%;padding:10px 0 30px;order:1;}"],(0,n.y)("colors.lightMediumColor","#f3f3f3")),s=i.Ay.div.withConfig({componentId:"sc-e07f5113-6"})(["padding:50px;@media (max-width:767px){padding:0px 30px 30px 30px;}"]),c=i.Ay.div.withConfig({componentId:"sc-e07f5113-7"})(["width:100%;display:flex;align-items:flex-start;justify-content:flex-start;margin-bottom:10px;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;"]),p=i.Ay.h2.withConfig({componentId:"sc-e07f5113-8"})(["font-size:","px;font-weight:",";color:",";line-height:1.5;display:flex;@media (max-width:767px){word-break:break-word;}"],(0,n.y)("fontSizes.4","21"),(0,n.y)("fontWeights.6","700"),(0,n.y)("colors.darkBold","#0D1136")),u=i.Ay.a.withConfig({componentId:"sc-e07f5113-9"})(["opacity:0;transition:all 0.1s ease-in;img{width:15px;height:15px;margin:7px 15px 0 10px;}&:hover{opacity:1;}"]),h=i.Ay.div.withConfig({componentId:"sc-e07f5113-10"})(["display:flex;align-items:center;flex-shrink:0;line-height:31px;@media (max-width:767px){margin-left:10px;}"]),g=i.Ay.div.withConfig({componentId:"sc-e07f5113-11"})(["font-size:16px;font-weight:",";color:",";"],(0,n.y)("fontWeights.6","700"),(0,n.y)("colors.primary","var(--devo-red)"));i.Ay.span.withConfig({componentId:"sc-e07f5113-12"})(["font-size:","px;font-weight:",";color:",";font-style:italic;padding:0 5px;overflow:hidden;position:relative;margin-right:10px;&:before{content:'';width:100%;height:1px;display:inline-block;background-color:",";position:absolute;top:50%;left:0;}"],(0,n.y)("fontSizes.1","13"),(0,n.y)("fontWeights.3","400"),(0,n.y)("colors.yellow","#FBB979"),(0,n.y)("colors.yellow","#FBB979"));let m=i.Ay.div.withConfig({componentId:"sc-e07f5113-13"})(["font-size:","px;font-weight:",";color:",";"],(0,n.y)("fontSizes.1","13"),(0,n.y)("fontWeights.3","400"),(0,n.y)("colors.darkRegular","#77798c"));i.Ay.p.withConfig({componentId:"sc-e07f5113-14"})(["font-size:","px;font-weight:",";color:",";line-height:2;margin-top:30px;"],(0,n.y)("fontSizes.2","15"),(0,n.y)("fontWeights.3","400"),(0,n.y)("colors.darkMedium","#424561"));let f=i.Ay.div.withConfig({componentId:"sc-e07f5113-15"})(["margin-top:30px;@media (max-width:767px){margin-top:40px;}.reusecore__button{font-size:","px;font-weight:",";color:",";height:36px;border-radius:4rem;.btn-icon{margin-right:5px;}&:hover{color:#fff;background-color:",";border-color:",";}}"],(0,n.y)("fontSizes.2","15"),(0,n.y)("fontWeights.6","700"),(0,n.y)("colors.primary","var(--devo-red)"),(0,n.y)("colors.primary","var(--devo-red)"),(0,n.y)("colors.primary","var(--devo-red)")),x=i.Ay.div.withConfig({componentId:"sc-e07f5113-16"})(["display:flex;flex-direction:column;"]),y=i.Ay.div.withConfig({componentId:"sc-e07f5113-17"})(["margin-top:30px;"]),v=i.Ay.div.withConfig({componentId:"sc-e07f5113-18"})(["display:flex;flex-wrap:wrap;align-items:center;margin-bottom:10px;&:last-child{margin-bottom:0;}button{background:none;border:none;padding:0;cursor:pointer;font-family:inherit;}"]),b=i.Ay.span.withConfig({componentId:"sc-e07f5113-19"})(["font-size:","px;font-weight:",";color:",";margin-right:10px;margin-bottom:10px;background-color:",";padding:0 15px;border-radius:6px;cursor:pointer;height:30px;display:flex;align-items:center;justify-content:center;"],(0,n.y)("fontSizes.1","13"),(0,n.y)("fontWeights.6","700"),(0,n.y)("colors.darkBold","#0D1136"),(0,n.y)("colors.lightColor","#f7f7f7")),w=i.Ay.button.withConfig({componentId:"sc-e07f5113-20"})(["position:fixed;top:20px;right:15px;padding:10px 15px;z-index:1;cursor:pointer;display:block;color:rgba(0,0,0,0.5);background:transparent;border:0;outline:none;display:inline-block;svg{width:12px;height:12px;}@media (max-width:767px){top:5px;right:0;}"]),j=i.Ay.div.withConfig({componentId:"sc-e07f5113-21"})(["background-color:#F3F3F3;border-top:1px solid ",";padding-bottom:20px;h2{background-color:#fff;padding:30px;}"],(0,n.y)("colors.lightMediumColor","#f3f3f3")),C=i.Ay.div.withConfig({componentId:"sc-e07f5113-22"})([".product-meta{margin-bottom:20px;}"]),A=i.Ay.div.withConfig({componentId:"sc-e07f5113-23"})(["display:flex;flex-flow:row wrap;margin:20px;&.product-page .product-meta{margin-bottom:0;}@media (max-width:400px){margin:5px;}& > div{margin:10px;flex:0 0 calc(25% - 20px);@media (max-width:950px){flex:0 0 calc(33.333% - 20px);}@media (max-width:767px){flex:0 0 calc(50% - 20px);}@media (max-width:400px){margin:5px;
1flex:0 0 calc(50% - 10px);}}&.product-page{& > div{margin:10px;flex:0 0 calc(20% - 20px);@media (max-width:1100px){flex:0 0 calc(25% - 20px);}@media (max-width:1000px){flex:0 0 calc(33.333% - 20px);}@media (max-width:769px){flex:0 0 calc(50% - 20px);}}@media (max-width:769px){margin:0;}}"]),I=i.Ay.p.withConfig({componentId:"sc-e07f5113-24"})(["margin-top:20px;color:#ff0000;font-weight:600;"]),k=i.Ay.p.withConfig({componentId:"sc-e07f5113-25"})(["margin-top:20px;color:#509129;font-weight:600;"])}}]);

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.