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]="6477f8bf-f6af-4023-9933-6e4bfa700bbd",e._sentryDebugIdIdentifier="sentry-dbid-6477f8bf-f6af-4023-9933-6e4bfa700bbd")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"c510336801ea5aa882f9a4509b43b1a0a146ad3f"},(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4986,5264,6359],{1988:(e,t,o)=>{"use strict";o.d(t,{TQ:()=>n,p7:()=>i});let i=async e=>{var t;(null==(t=navigator)?void 0:t.geolocation)?navigator.geolocation.getCurrentPosition(async t=>{let o=await c();if(!o)return void e("GOOGLE_SCRIPT_MISSING",null);(new o.maps.Geocoder).geocode({location:{lat:t.coords.latitude,lng:t.coords.longitude}},(t,o)=>{if("OK"!=o)return void e(o,null);t.length>0?e(o,r(t[0])):e("NO_RESULTS",null)})}):e("NAVIGATOR_MISSING",null)},r=e=>{var t;if(!e)return{};let o={},i=e.formatted_address;i&&(o.description=i);let r=null==(t=e.geometry)?void 0:t.location;r&&(o.lat=r.lat().toString(),o.lng=r.lng().toString());let n=e.place_id;n&&(o.placeId=n);let a=s("postal_town",e)||s("locality",e);a&&(o.city=a);let c=s("route",e),l=s("premise",e),d=c||l;d&&(o.addressLine1=d);let h=s("postal_code",e);h&&(o.postcode=h);let u=s("administrative_area_level_1",e);u&&(o.state=u);let p=s("country",e);return p&&(o.country=p),o},n=e=>{if(!e)return{};var t={};return t=a("addressLine1",t,e),t=a("state",t,e),t=a("postcode",t,e),t=a("city",t,e),t=a("country",t,e)},a=(e,t,o)=>{let i=o[e];return i&&i.length>0&&(t[e]=i),t},s=(e,t)=>{var o,i;return null==t||null==(i=t.address_components)||null==(o=i.find(t=>t.types.includes(e)))?void 0:o.long_name},c=async()=>o.g.window&&o.g.document?(o.g.window.google||await new Promise(e=>{let t=document.createElement("script");t.src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB1UUCXh_fIHy0aZA7bPCXgANvpg42E17c&libraries=places",t.onload=e,t.async=!1,document.head.appendChild(t)}),o.g.window.google):null},5130:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>a});var i=o(53441);function r(e,t){void 0===t&&(t={});var o,i,r=(o=e)&&"j"===o[0]&&":"===o[1]?o.substr(2):o;if(void 0===(i=t.doNotParse)&&(i=!r||"{"!==r[0]&&"["!==r[0]&&'"'!==r[0]),!i)try{return JSON.parse(r)}catch(e){}return e}var n=function(){return(n=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};let a=function(){function e(e,t){var o=this;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.cookies="string"==typeof e?i.q(e,t):"object"==typeof e&&null!==e?e:{},new Promise(function(){o.HAS_DOCUMENT_COOKIE="object"==typeof document&&"string"==typeof document.cookie}).catch(function(){})}return e.prototype._updateBrowserValues=function(e){this.HAS_DOCUMENT_COOKIE&&(this.cookies=i.q(document.cookie,e))},e.prototype._emitChange=function(e){for(var t=0;t<this.changeListeners.length;++t)this.changeListeners[t](e)},e.prototype.get=function(e,t,o){return void 0===t&&(t={}),this._updateBrowserValues(o),r(this.cookies[e],t)},e.prototype.getAll=function(e,t){void 0===e&&(e={}),this._updateBrowserValues(t);var o={};for(var i in this.cookies)o[i]=r(this.cookies[i],e);return o},e.prototype.set=function(e,t,o){var r;"object"==typeof t&&(t=JSON.stringify(t)),this.cookies=n(n({},this.cookies),((r={})[e]=t,r)),this.HAS_DOCUMENT_COOKIE&&(document.cookie=i.l(e,t,o)),this._emitChange({name:e,value:t,options:o})},e.prototype.remove=function(e,t){var o=t=n(n({},t),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=n({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=i.l(e,"",o)),this._emitChange({name:e,value:void 0,options:t})},e.prototype.addChangeListener=function(e){this.changeListeners.push(e)},e.prototype.removeChangeListener=function(e){var t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1)},e}()},11468:(e,t,o)=>{"use strict";o.d(t,{TV:()=>a});var i=o(10454),r=o(33191),n=o.n(r);o(60072);let a=(e,t)=>{try{i.Ay.debug("Setting cookie...","session",{key:e,hasValue:null!=t}),n().set(e,t,{expires:365})}catch(t){i.Ay.warning("Failed to set cookie","session",{key:e})}}},32344:(e,t,o)=>{"use strict";o.r(t),o.d(t,{Index:()=>R,default:()=>P});var i=o(37876),r=o(14232),n=o(89099),a=o(11661),s=o(86973),c=o(50074),l=o(95281),d=o(43716),h=o(45
1757),u=o(94986),p=o(1177),f=o(79262),g=o(69716),m=o(68213),x=o(94782),v=o(57477),y=o(55027),w=o(42234),j=o(84626),b=o(14714),C=o(61387),_=o(77173),k=o(30877),I=o(98472),A=o(90451),S=o(54431),N=o(10454),E=o(11468),O=o(44886),D=o(5691);let T=o.p+"static/images/devo-x-canvas_color-e26d8c89.webp",M=[{id:"canvas-living_walthamstow",name:"Alliot House",postcode:"E17 6JJ"},{id:"canvas-living_wembley",name:"Barnard Point",postcode:"HA9 0UU"}],L="canvas-living",R=()=>{let e=(0,n.useRouter)();(0,r.useEffect)(()=>{(0,E.TV)(O.$K.pendingReferral,L)},[]);let{data:t}=(0,S.IT)(A.OZ,{variables:{code:L},onCompleted:e=>N.Ay.debug("GET_MOCK_REFERRAL onCompleted","partner-page",e)}),o=null==t?void 0:t.referral,a=t=>{let o=(0,j.E3)(t);(0,I.F)(o),e.push("/shops/[search]","/shops/".concat(o))};return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(c.aF,{children:[(0,i.jsx)(s.k,{title:"Same-day grocery delivery to Canvas Accommodation | Devo",description:"Order grocery same day delivery to your dorm with Devo & Canvas student accommodation. Get food, drinks, alcohol and tobacco delivered in a little as 10 minutes.",canonical:"/integrations/canvas"}),(0,i.jsxs)(d.Yw,{height:55,children:[(0,i.jsx)(l.Y9,{className:"header",children:(0,i.jsxs)(l.g7,{children:[(0,i.jsx)(d.$,{image:T,height:100}),o?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(l.hE,{children:[o.checkoutInfo.charAt(0).toUpperCase()+o.checkoutInfo.slice(1).toLowerCase()," for your first order over \xa3",o.minBasketOrder,"."]}),(0,i.jsx)(l.Pd,{children:"Grocery delivery in as little as 10 minutes."})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.hE,{children:"Grocery delivery in as little as 10 minutes."}),(0,i.jsx)(l.Pd,{children:"Thousands of items delivered straight to your door."})]}),(0,i.jsx)(u.default,{className:"searchbox",onSelectPostcode:a})]})}),(0,i.jsxs)(d.m$,{children:[(0,i.jsx)("h2",{children:"Select your accommodation"}),o?(0,i.jsxs)(l.Pd,{children:[(0,i.jsx)("b",{children:"Canvas"})," and ",(0,i.jsx)("b",{children:"Devo"})," have teamed up to bring you ",(0,i.jsx)("b",{style:{color:"#000"},children:o.checkoutInfo.toLowerCase()})," for your first order on thousands of items delivered straight to your door."]}):(0,i.jsxs)(l.Pd,{children:[(0,i.jsx)("b",{children:"Canvas"})," and ",(0,i.jsx)("b",{children:"Devo"})," have teamed up to bring you thousands of items delivered straight to your door."]}),(0,i.jsx)(d.nq,{children:M.map(t=>(0,i.jsx)(d.VT,{image:"".concat(t.imageUrl,"?anchor=center&mode=crop&quality=70&width=400&height=400"),onClick:o=>((t,o)=>{N.Ay.debug("handleAccommodationClick","partner-page",o),(0,E.TV)(O.$K.pendingReferral,o.id),(0,D.VC)({event:"canvas-click",location:o.name}),e.push("/shops/".concat((0,j.E3)(o.postcode),"?location=").concat(encodeURIComponent("Canvas ".concat(o.name))))})(0,t),children:(0,i.jsx)(d.EX,{children:(0,i.jsx)("span",{children:t.name})})},t.id))})]}),(0,i.jsxs)(l.YW,{children:[(0,i.jsx)(l.aG,{className:"top",children:"3 simple steps to order"}),(0,i.jsxs)(l.h$,{children:[(0,i.jsx)(p.A,{image:g,title:"You Order",body:"Shop from thousands of products from the best local shops."}),(0,i.jsx)(p.A,{image:m,title:"We Collect",body:"One of our trusted delivery drivers collect your order from the store."}),(0,i.jsx)(p.A,{image:x,title:"We Deliver",body:"Your order is delivered straight to your door for you to enjoy."})]}),(0,i.jsx)(f.A,{contentLeft:!0,image:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"left desktop-only",children:[(0,i.jsx)("source",{src:"/assets/videos/devo-sofa-animation.webm",type:"video/webm"}),(0,i.jsx)("source",{src:"/assets/videos/devo-sofa-animation.mp4",type:"video/mp4"})]}),(0,i.jsx)("img",{src:w,alt:"Thousands of your favourite items, on demand",className:"left mobile-only"})]}),title:(0,i.jsx)(l.aG,{children:"Thousands of your favourite items, on demand."}),body:(0,i.jsx)("p",{children:"From milk to the snacks and drinks you crave, choose from thousands of your favoruite items."})}),(0,i.jsx)(f.A,{image:(0,i.jsx)("img",{src:y,alt:"Devo iOS and Android application",className:"right"}),title:(0,i.jsx)(l.aG,{children:"Same day grocery delivery from shops near you."}),body:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{children:"Whatever you want, we get it. Order and watch in real-time as we deliver your favourite items."}),(0,i.jsxs)("div",{style:{marginTop:20},children:[(0,i.jsx)(b.Xg,{href:"".concat(k.TS,"?utm_medium=Website&utm_source=Body"),children:(0,i.jsx)("img",{src:C,alt:"Apple App Store"})}),(0,i.jsx)(b.Xg,{href:"".concat(k.Nw,"&utm_medium=Website&utm_source=Body"),children:(0,i.jsx)("img",{src:_,alt:"Google Play Store"})})]})]})})]}),(0,i.jsx)(l.Tc,{image:v,children:(0,i.jsx)(l.CB,{children:(0,i.jsxs)(l.h0,{children:[(0,i.jsx)(l.hE,{children:"Ready to order?"}),(0,i.jsx)(l.Pd,{children:"Order online with Devo to get your favourite brands delivered straight to your door."}),(0,i.jsx)(u.default,{onSelectPostcode:a})]})})})]}),(0,i.jsx)(h.default,{})]})})},P=(0,a.W)(R,void 0,{ssr:!1})},33191:(e,t,o)=>{var i,r;!function(n){void 0===(r="function"==typeof(i=n)?i.call(t,o,t,e):i)||(e.exports=r),e.exports=n()}(function(){function e(){for(var e=0,t={};e<arguments.length;e++){var o=arguments[e];for(var i in o)t[i]=o[i]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2}
1)+/g,decodeURIComponent)}return function o(i){function r(){}function n(t,o,n){if("undefined"!=typeof document){"number"==typeof(n=e({path:"/"},r.defaults,n)).expires&&(n.expires=new Date(new Date*1+864e5*n.expires)),n.expires=n.expires?n.expires.toUTCString():"";try{var a=JSON.stringify(o);/^[\{\[]/.test(a)&&(o=a)}catch(e){}o=i.write?i.write(o,t):encodeURIComponent(String(o)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var c in n)n[c]&&(s+="; "+c,!0!==n[c]&&(s+="="+n[c].split(";")[0]));return document.cookie=t+"="+o+s}}function a(e,o){if("undefined"!=typeof document){for(var r={},n=document.cookie?document.cookie.split("; "):[],a=0;a<n.length;a++){var s=n[a].split("="),c=s.slice(1).join("=");o||'"'!==c.charAt(0)||(c=c.slice(1,-1));try{var l=t(s[0]);if(c=(i.read||i)(c,l)||t(c),o)try{c=JSON.parse(c)}catch(e){}if(r[l]=c,e===l)break}catch(e){}}return e?r[e]:r}}return r.set=n,r.get=function(e){return a(e,!1)},r.getJSON=function(e){return a(e,!0)},r.remove=function(t,o){n(t,"",e(o,{expires:-1}))},r.defaults={},r.withConverter=o,r}(function(){})})},43716:(e,t,o)=>{"use strict";o.d(t,{$:()=>a,EX:()=>d,VT:()=>l,Yw:()=>n,m$:()=>s,nq:()=>c});var i=o(50841),r=o(95281);let n=(0,i.Ay)(r.ww).withConfig({componentId:"sc-a4adaa2c-0"})(["h1{margin:40px 0 20px;@media (max-width:640px){margin:20px 0;font-size:30px;}}h2{font-size:30px;margin:0 5px;}.header p{font-size:24px;@media (max-width:640px){font-size:18px;}}.searchbox{margin:40px auto 20px;}.header{max-height:","vh;@media (max-width:768px){min-height:55vh;max-height:80vh;}}"],e=>e.height),a=i.Ay.div.withConfig({componentId:"sc-a4adaa2c-1"})(["background:transparent url(",") no-repeat center;background-size:contain;width:min(95%,500px);min-height:","px;margin:0 auto;"],e=>e.image,e=>e.height);i.Ay.a.withConfig({componentId:"sc-a4adaa2c-2"})(["color:var(--devo-red);font-weight:600;&:hover{text-decoration:underline;}"]);let s=(0,i.Ay)(r.YW).withConfig({componentId:"sc-a4adaa2c-3"})(["h1,h2{font-family:Inter,Inter-fallback,Helvetica Neue,sans-serif;}margin:70px auto 0;&.shops{width:85%;& > p{width:80%;margin-left:auto;margin-right:auto;text-align:center;}}& > p{margin:10px 5px 50px;}@media (max-width:768px){width:90%;margin:40px auto;& > p{margin:10px 5px 20px;}}"]),c=i.Ay.div.withConfig({componentId:"sc-a4adaa2c-4"})(["display:flex;flex-flow:row wrap;"]),l=i.Ay.a.withConfig({componentId:"sc-a4adaa2c-5"})(["border:3px var(--devo-red) solid;height:auto;margin:10px;cursor:pointer;transition:transform 0.1s ease-in;&:before{content:'';float:left;padding-top:30%;}@media (min-width:769px){flex:0 0 calc(33.3333% - 20px);&:hover{transform:scale(1.05);}}@media (max-width:768px){flex:0 0 calc(50% - 20px);}@media (max-width:640px){margin:5px;flex:0 0 calc(100% - 10px);}"]),d=i.Ay.div.withConfig({componentId:"sc-a4adaa2c-6"})(["height:100%;width:100%;display:flex;flex-flow:column nowrap;justify-content:center;text-align:center;transition:background-color 0.2s ease-in;span{font-family:Inter,Inter-fallback,Helvetica Neue,sans-serif;font-size:24px;color:var(--devo-red);}&:hover{background-color:var(--devo-red);span{color:#fff;}}"])},44886:(e,t,o)=>{"use strict";o.d(t,{$K:()=>s,Ri:()=>c,zs:()=>d,TV:()=>l});var i=o(33191),r=o.n(i),n=o(60072),a=o.n(n);let s={pendingReferral:"pending-referral",pendingRedirect:"siwa-redirect",pendingAnonymousRecovery:"pending-anonymous-recovery"},c=(e,t)=>r().get(e),l=(e,t)=>{r().set(e,t,{expires:7})},d=e=>{r().remove(e)}},45757:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>v});var i=o(37876);o(14232);var r=o(14714),n=o(92741),a=o(61387),s=o(77173),c=o(30877),l=o(5691),d=o(15207),h=o(48230),u=o.n(h);let p=[{id:"ice-cream-delivery",name:"Ice Cream",url:d.iD},{id:"snack-delivery",name:"Snacks",url:d.uv},{id:"alcohol-delivery",name:"Alcohol",url:d.UQ},{id:"cigarette-and-tobacco-delivery",name:"Cigarettes",url:d.uC},{id:"milk-delivery",name:"Milk",url:d.nQ}],f=e=>{let{contactClicked:t}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.hE,{children:"Help"}),(0,i.jsx)(r.N_,{children:(0,i.jsx)("button",{type:"button",onClick:t,children:"Contact"})}),(0,i.jsx)(r.N_,{children:(0,i.jsx)(u(),{href:"/help",prefetch:!1,onClick:()=>(0,l.n0)("account_help_faq"),children:"FAQs"})}),(0,i.jsx)(r.N_,{children:(0,i.jsx)(u(),{href:"/about",prefetch:!1,children:"About Us"})})]})},g=()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.hE,{children:"Legal"}),(0,i.jsx)(r.N_,{children:(0,i.jsx)(u(),{href:"/legal/terms",prefetch:!1,onClick:()=>(0,l.n0)("account_nav_terms_conditions"),children:"Terms & Conditions"})}),(0,i.jsx)(r.N_,{children:(0,i.jsx)(u(),{href:"/legal/privacy",prefetch:!1,onClick:()=>(0,l.n0)("account_nav_privacy_policy"),children:"Privacy Policy"})}),(0,i.jsx)(r.N_,{children:(0,i.jsx)(u(),{href:"/legal/shipping",prefetch:!1,onClick:()=>(0,l.n0)("account_nav_shipping_policy"),children:"Shipping & Returns Policy"})}),(0,i.jsx)(r.N_,{children:(0,i.jsx)(u(),{href:"/legal/cookies",prefetch:!1,onClick:()=>(0,l.n0)("account_nav_cookies"),children:"Cookies"})})]}),m=e=>{let{categoryClicked:t}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.hE,{children:"Categories"}),p.map(e=>(0,i.jsx)(r.N_,{children:(0,i.jsxs)(u(),{href:e.url,prefetch:!1,onClick:()=>t(e.id),children:[e.name," Delivery"]})},e.id))]})},x=e=>{let{}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.hE,{children:"Partners"}),(0,i.jsx)(r.N_,{children:(0,i.jsx)(u(),{href:d.z4,prefetch:!1,children:"Point of Sale"})}),(0,i.jsx)(r.N_,{children:(0,i.jsx)(u(),{href:d.A1,prefetch:!1,children:"Become a Seller"})})]})},v=e=>{let{hideCategories:t=!1}=e,o=e=>{e.preventDefault(),(0,l.n0)("open_chat"),window.Intercom("show")};return(0,i.jsx)(r.mc,{children:(0,i.jsxs)(r.wi,{children:[(0,i.jsxs)(r.W0,{children:[(0,i.jsx)(g,{}),!t&&(0,i.jsx)(f,{contactClicked:o})]}),(0,i.jsx)(r.W0,{children:t?(0,i.jsx)(f,{contactClicked:o}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x,{}),(0,i.jsx)(m,{categoryClicked:e=>{(0,l.n0)("footer_category_landing_clicked",{id:e})}})]})}
1),(0,i.jsxs)(r.N,{children:[(0,i.jsx)(r.hE,{children:"Follow us"}),(0,i.jsx)(r.t0,{href:"https://www.instagram.com/devodelivery/",children:(0,i.jsx)("div",{className:"instagram"})}),(0,i.jsx)(r.t0,{href:"https://twitter.com/DevoDelivery",children:(0,i.jsx)("div",{className:"twitter"})}),(0,i.jsx)(r.t0,{href:"https://www.facebook.com/DevoDelivery/",children:(0,i.jsx)("div",{className:"facebook"})})]}),(0,i.jsxs)(r.$s,{children:[(0,i.jsx)(r.hE,{children:"Get the app"}),(0,i.jsx)(r.Xg,{href:"".concat(c.TS,"?utm_medium=Website&utm_source=Footer"),children:(0,i.jsx)("img",{src:a,alt:"Apple App Store",width:135,height:40})}),(0,i.jsx)(r.Xg,{href:"".concat(c.Nw,"&utm_medium=Website&utm_source=Footer"),children:(0,i.jsx)("img",{src:s,alt:"Google Play Store",width:135,height:40})})]}),(0,i.jsxs)(r.DL,{children:[(0,i.jsx)("img",{src:n,alt:"Devo",width:35,height:30}),"\xa9 ",new Date().getFullYear()," Devo Technologies Ltd"]})]})})}},53441:(e,t)=>{"use strict";t.q=function(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var i={},r=e.split(";"),n=(t||{}).decode||o,a=0;a<r.length;a++){var s=r[a],c=s.indexOf("=");if(!(c<0)){var l=s.substring(0,c).trim();if(void 0==i[l]){var d=s.substring(c+1,s.length).trim();'"'===d[0]&&(d=d.slice(1,-1)),i[l]=function(e,t){try{return t(e)}catch(t){return e}}(d,n)}}}return i},t.l=function(e,t,o){var n=o||{},a=n.encode||i;if("function"!=typeof a)throw TypeError("option encode is invalid");if(!r.test(e))throw TypeError("argument name is invalid");var s=a(t);if(s&&!r.test(s))throw TypeError("argument val is invalid");var c=e+"="+s;if(null!=n.maxAge){var l=n.maxAge-0;if(isNaN(l)||!isFinite(l))throw TypeError("option maxAge is invalid");c+="; Max-Age="+Math.floor(l)}if(n.domain){if(!r.test(n.domain))throw TypeError("option domain is invalid");c+="; Domain="+n.domain}if(n.path){if(!r.test(n.path))throw TypeError("option path is invalid");c+="; Path="+n.path}if(n.expires){if("function"!=typeof n.expires.toUTCString)throw TypeError("option expires is invali
1d");c+="; Expires="+n.expires.toUTCString()}if(n.httpOnly&&(c+="; HttpOnly"),n.secure&&(c+="; Secure"),n.sameSite)switch("string"==typeof n.sameSite?n.sameSite.toLowerCase():n.sameSite){case!0:case"strict":c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"none":c+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return c};var o=decodeURIComponent,i=encodeURIComponent,r=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/},60072:(e,t,o)=>{var i=o(5130);i=i.default||i,e.exports=function(e,t){var o=e.req&&e.req.headers&&e.req.headers.cookie;return new i(o).getAll(t)}},85784:(e,t,o)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/integrations/canvas",function(){return o(32344)}])},89203:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return r}});let i=o(14232);function r(e,t){let o=(0,i.useRef)(null),r=(0,i.useRef)(null);return(0,i.useCallback)(i=>{if(null===i){let e=o.current;e&&(o.current=null,e());let t=r.current;t&&(r.current=null,t())}else e&&(o.current=n(e,i)),t&&(r.current=n(t,i))},[e,t])}function n(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let o=e(t);return"function"==typeof o?o:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},94986:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>w});var i=o(37876),r=o(1988),n=o(14232),a=o(50841),s=o(21651),c=o(59689);let l=a.Ay.div.withConfig({componentId:"sc-4fca8f47-0"})(["position:relative;width:700px;margin:40px auto 0;box-shadow:2px 8px 15px rgba(0,0,0,0.1);&.div{border-radius:8px;}&.error{box-shadow:none;}@media (max-width:767px){width:95%;}"]),d=a.Ay.div.withConfig({componentId:"sc-4fca8f47-1"})(["width:100%;input{width:calc(100% - 55px);font-size:16px;color:#77798C;border:0;padding:0 20px;height:55px;&:focus{outline:0;}&::placeholder{font-size:16px;color:#77798C;white-space:nowrap;text-overflow:ellipsis;}&::-webkit-input-placeholder{font-size:16px;color:",";white-space:nowrap;text-overflow:ellipsis;}&:-moz-placeholder{font-size:16px;color:",";white-space:nowrap;text-overflow:ellipsis;}&::-moz-placeholder{font-size:16px;color:",";white-space:nowrap;text-overflow:ellipsis;}&:-ms-input-placeholder{font-size:16px;color:",";white-space:nowrap;text-overflow:ellipsis;}}"],(0,s.y)("colors.darkRegular","#77798C"),(0,s.y)("colors.darkRegular","#77798C"),(0,s.y)("colors.darkRegular","#77798C"),(0,s.y)("colors.darkRegular","#77798C")),h=a.Ay.div.withConfig({componentId:"sc-4fca8f47-2"})(["height:100%;flex-grow:1;display:flex;align-items:center;justify-content:center;"]),u=a.Ay.div.withConfig({componentId:"sc-4fca8f47-3"})(["width:100%;transition:all 0.3s;form{display:flex;flex-direction:row;align-items:center;width:100%;height:100%;background-color:#ffffff;overflow:hidden;white-space:nowrap;border-radius:6px 0 0 6px;}&.bordered{border:3px solid var(--devo-red) !important;height:55px;border-radius:6px 0px 0px 6px;}"]),p=a.Ay.button.withConfig({componentId:"sc-4fca8f47-4"})(["width:55px;height:55px;background-color:transparent;border:none;vertical-align:top;outline:none;img{height:25px;display:inline-block;vertical-align:top;}&:active{background-color:#f5f5f5;}"]),f=(0,a.Ay)(c.A).withConfig({componentId:"sc-4fca8f47-5"})(["height:55px;width:55px;background-color:var(--devo-red);border-radius:0 6px 6px 0;&.loading{width:75px;padding:0;}span{font-size:25px;font-weight:400;color:#ffffff;}"]),g=a.Ay.p.withConfig({componentId:"sc-4fca8f47-6"})(["color:var(--devo-red);display:block;width:100%;margin:10px 0;text-align:left;font-size:16px !important;"]),m=e=>{let{value:t,bordered:o,onSubmit:r,onChange:n,onCurrentLocationClick:a,disabled:s=!1}=e;return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(u,{className:"input-wrapper ".concat(o?"bordered":""),children:(0,i.jsx)("form",{onSubmit:r,children:(0,i.jsxs)(d,{children:[(0,i.jsx)("input",{placeholder:"Enter your postcode...",value:t,onChange:n,disabled:s}),(0,i.jsx)(p,{type:"button",onClick:a,children:(0,i.jsx)("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjI0Ij4KICAgIDxwYXRoIGQ9Ik0wIDBoMjR2MjRIMFYweiIgZmlsbD0ibm9uZSIvPgogICAgPHBhdGggZD0iTTE4Ljc1IDMuOTRMNC4wNyAxMC4wOGMtLjgzLjM1LS44MSAxLjUzLjAyIDEuODVMOS40MyAxNGMuMjYuMS40Ny4zMS41Ny41N2wyLjA2IDUuMzNjLjMyLjg0IDEuNTEuODYgMS44Ni4wM2w2LjE1LTE0LjY3Yy4zMy0uODMtLjUtMS42Ni0xLjMyLTEuMzJ6IgogICAgICAgICAgZmlsbD0icmdiKDI1NSwgODksIDg4KSIvPgo8L3N2Zz4K",alt:""})})]})})})})};var x=o(77290),v=o(84626),y=o(5691);let w=e=>{let{className:t,onSelectPostcode:o,disableInput:a=!1}
1=e,[s,c]=(0,n.useState)(""),[d,u]=(0,n.useState)(null),[p,w]=(0,n.useState)(!1),j=async e=>{if(e.preventDefault(),!p)if(0===s.length)u("Please enter your postcode and try again.");else if((0,x.M)(s)){w(!0);try{await o((0,v.j3)(s))}catch(e){u("Something went wrong - please try again.")}finally{w(!1)}}else u("We couldn't recognise that postcode â check and try again.")},b=async e=>{e.preventDefault(),u(null),w(!0),await (0,r.p7)((e,t)=>{(0,y.n0)("allow_location_access",{option:t?"granted":"denied"}),w(!1),c(null==t?void 0:t.postcode)})};return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(l,{className:"".concat(t||""," ").concat(d?"error":""),children:[(0,i.jsxs)(h,{children:[(0,i.jsx)(m,{value:s,bordered:null!=d,onSubmit:j,onChange:e=>{c(e.target.value),u(null)},onCurrentLocationClick:b,disabled:a}),(0,i.jsx)(f,{title:"â",onClick:j,className:p?"loading":"",isLoading:p})]}),d&&(0,i.jsx)(g,{children:d})]})})}}},e=>{e.O(0,[8230,5108,1583,174,6946,636,6593,8792],()=>e(e.s=85784)),_N_E=e.O()}]);
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.