1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[790],{329:(e,l,t)=>{"use strict";t.d(l,{L5:()=>a,SQ:()=>n,Yq:()=>d,fU:()=>c,iV:()=>r,po:()=>s});let a=e=>0===e?6:e-1,n=(e,l)=>{let[t,a,n]=(e=>{let[l,t,a]=e.split(":");return[l,t,a]})(e),r=null!=l?l:new Date;return r.setHours(+t),r.setMinutes(+a),r.setSeconds(+n),r},r=(e,l)=>{let t=(e=>6===e?0:e+1)(e),a=new Date;var n=a.getDay();return a.setDate(a.getDate()+(t-n)),a.toLocaleDateString(l,{weekday:"long"})},s=(e,l)=>{var t;switch(l){case"en":default:t="en-US";break;case"sv":t="sv-SE";break;case"no":t="no-no";break;case"fi":t="fi-FI";break;case"da":t="da-DK";break;case"de":t="de-DE"}return new Date(e).toLocaleDateString(t,{month:"long",day:"numeric",year:"numeric"}).toUpperCase()},i={sv:"sv-SE",en:"en-GB",fi:"fi-FI",no:"nb-NO",da:"da-DK",de:"de-DE",fr:"fr-FR"},o=e=>{var l;return null!=(l=i[null!=e?e:""])?l:"en-GB"},c=(e,l)=>e?new Intl.DateTimeFormat(o(l),{hour:"2-digit",minute:"2-digit",hourCycle:"h23"}).format(e):void 0,d=(e,l)=>e?new Intl.DateTimeFormat(o(l),{year:"numeric",month:"numeric",day:"numeric"}).format(e):void 0},2171:(e,l,t)=>{"use strict";t.d(l,{A:()=>o});var a=t(7876),n=t(9995),r=t(5062),s=t(6795),i=t.n(s);function o(e){let{className:l,linkEls:t,currentPage:s,style:o}=e;return(0,a.jsx)("nav",{className:(0,n.A)(l,"text-h4"),style:o,"aria-label":"Breadcrumb",children:(0,a.jsxs)("ol",{className:i().breadcrumb,children:[t.map((e,l)=>(0,a.jsx)("li",{className:"flex items-center capitalize",children:e},l)),(0,a.jsx)("li",{"aria-current":"page",className:"ease max-w-[200px] cursor-pointer truncate border-b-2 border-b-white capitalize transition duration-150 hover:border-b-ehouse-dark-green lg:max-w-[400px]",children:s||(0,a.jsx)(r.A,{width:"150px"})})]})})}},3362:(e,l,t)=>{"use strict";t.r(l),t.d(l,{__N_SSG:()=>G,default:()=>R});var a,n,r,s,i=t(7876),o=t(7693),c=t(9209),d=t(2171),u=t(8230),h=t.n(u),m=t(8827),x=t.n(m),p=t(6927);function g(e){let{coffeeShop:l}=e;return l?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x(),{width:458,height:458,quality:100,className:"bg-ehouse-beige",src:"https://api.mapbox.com/styles/v1/espressohouse/cl0idrcxi002o14qbhh70b3m6/static/".concat(null==l?void 0:l.longitude,",").concat(null==l?void 0:l.latitude,",15.5/458x458@2x?access_token=").concat("pk.eyJ1IjoiZXNwcmVzc29ob3VzZSIsImEiOiJjbDBpZHB1bjUwMWtzM2xwNnM2czY0NDVnIn0.BKc3_DDA4UQ8-4Cr2TCqUA","&logo=false")}),(0,i.jsx)("div",{className:"absolute left-1/2 top-1/2",children:(0,i.jsx)(p.A,{className:"absolute -bottom-1 -left-[30.5px]",style:{fontSize:61}})})]}):(0,i.jsx)("img",{style:{background:"#efefef"},width:458,height:458,"aria-hidden":"true",src:"data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20version=%271.1%27%20width=%27458%27%20height=%27458%27/%3e",alt:""})}var f=t(329),v=t(7653),b=t(572),j=t(4232),w=t(893),N=t(5062),y=t(1958),k=t(5383),A=t(4938);function S(){return(S=Object.assign?Object.assign.bind():function(e){for(var l=1;l<arguments.length;l++){var t=arguments[l];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e}).apply(null,arguments)}let D=function(e){return j.createElement("svg",S({width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a||(a=j.createElement("g",{clipPath:"url(#express-checkout_svg__a)"},j.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.75 4.456a1.68 1.68 0 0 1 1.56-1.057h12.303a1.68 1.68 0 0 1 1.56 1.057l1.469 3.672a.84.84 0 0 1-.78 1.152h-.103l-2.247 17.106a2.52 2.52 0 0 1-2.501 2.215h-7.1a2.52 2.52 0 0 1-2.501-2.215L13.164 9.28h-.103a.84.84 0 0 1-.78-1.152l1.469-3.672Zm1.108 4.824.662 5.04h2.58a4.194 4.194 0 0 1 3.361-1.68c1.374 0 2.594.66 3.36 1.68h2.581l.662-5.04H14.858ZM28.621 7.6H14.3l1.009-2.52h12.303L28.62 7.6ZM27.18 16h-1.604a4.22 4.22 0 0 1 0 1.68h1.384l.22-1.68Zm-.44 3.36h-1.92a4.194 4.194 0 0 1-3.36 1.68 4.194 4.194 0 0 1-3.36-1.68h-1.92l.896 6.82a.84.84 0 0 0 .834.74h7.1a.84.84 0 0 0 .834-.74l.001-.008.895-6.812Zm-10.78-1.68h1.384a4.22 4.22 0 0 1 0-1.68h-1.604l.22 1.68Zm5.5-3.36a2.52 2.52 0 1 0 0 5.04 2.52 2.52 0 0 0 0-5.04Z",fill:"currentColor"}),j.createElement("path",{d:"M10.487 12.435H2.783M10.487 22.06h-8.15M9.68 17.283H.843",stroke:"currentColor",strokeWidth:2,strokeLinecap:"square",strokeLinejoin:"bevel"}))),n||(n=j.createElement("defs",null,j.createElement("clipPath",{id:"express-checkout_svg__a"},j.createElement("path",{fill:"#fff",d:"M0 0h32v32H0z"})))))};function O(){return(O=Object.assign?Object.assign.bind():function(e){for(var l=1;l<arguments.length;l++){var t=arguments[l];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e}).apply(null,arguments)}let E=function(e){return j.createElement("svg",O({width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=j.createElement("rect",{x:8.5,y:4,width:15,height:24,rx:2,stroke:"currentColor",strokeWidth:2})),s||(s=j.createElement("circle",{cx:16,cy:23.5,r:1.5,fill:"currentColor"})))};var F=t(3601);let _=e=>(0,i.jsxs)("li",{className:"flex pb-6",children:[(e=>{switch(e){case"childFriendly":return(0,i.jsxs)("div",{className:"mr-5 flex items-center text-[30px]",children:[(0,i.jsx)(k.A,{className:"m-auto"})," "]});case"wifi":return(0,i.jsx)("div",{className:"mr-5 flex items-center text-[30px]",children:(0,i.jsx)(y.A,{className:"m-auto"})});case"takeAwayOnly":return(0,i.jsx)("div",{className:"mr-5 flex items-center text-[30px]",children:(0,i.jsx)(A.A,{className:"m-auto"})});case"handicapFriendly":return(0,i.jsx)("div",{className:"mr-5 flex items-center text-[30px]",children:(0,i.jsx)(F.A,{className:"m-auto"})});case"expressCheckout":return(0,i.jsx)("div",{className:"mr-5 flex items-center text-[30px]",children:(0,i.jsx)(D,{className:"m-auto"})});case"preorderOnline":return(0,i.jsx)("div",{className:"mr-5 flex items-center text-[30px]",children:(0,i.jsx)(E,{className:"m-auto"})});default:return}})(e.facilityKey)," ",e.displayText]},e.facilityKey);var C=t(9995),H=t(5538),L=t(2850),P=t(6840),M=t(6001);let T=["childFriendly","expressCheckout","handicapFriendly","preorderOnline","takeAwayOnly","wifi"];function B(e){var l,t,a,n,r,s,u;let{page:m,footer:x,navbar:p}
1=e,[y,k]=(0,j.useState)(),[A,S]=(0,j.useState)(!1),{locale:D}=(0,M.A)(),{findUsRouteSlug:O}=(0,P.rw)(),[E,F]=(0,j.useState)(),B=null==m?void 0:m.facilities,{coffeeShop:I}=(0,P.rw)(),{geolocation:Z}=(0,j.useContext)(b.K),U=(0,H.L6)(),G=e=>{let l=null==B?void 0:B.find(l=>{if(l._type===e)return l.facilityText});return null==l?void 0:l.facilityText},R=I?T.filter(e=>I[e]):[];(0,j.useEffect)(()=>{I&&Z&&F((0,c.qb)([Z.coords.longitude,Z.coords.latitude],[I.longitude,I.latitude])),I&&null===Z&&(navigator.geolocation.getCurrentPosition(e=>{k(e),S(!1)},e=>{S(!0)},{enableHighAccuracy:!0,timeout:5e3,maximumAge:0}),y&&!A&&F((0,c.qb)([y.coords.longitude,y.coords.latitude],[I.longitude,I.latitude])))},[I,Z,y]);let q=(Z||y)&&E;return(0,i.jsxs)("div",{className:"bg-ehouse-green-dark flex min-h-screen flex-col overflow-hidden text-b1",children:[(0,i.jsx)("header",{className:"w-full",children:(0,i.jsx)(o.Ay,{sanityNavbar:p})}),(0,i.jsxs)("main",{children:[(0,i.jsx)(d.A,{className:"eh-auto-margin mt-6 lg:mt-10",linkEls:[(0,i.jsx)(h(),{href:"/".concat(O),children:null!=(a=null==m?void 0:m.breadcrumb)?a:(0,i.jsx)(N.A,{className:"inline-block w-[100px]"})},"find-us")],currentPage:null==I?void 0:I.coffeeShopName}),(0,i.jsxs)("div",{className:"eh-auto-margin mt-8 flex-col pb-6 lg:mt-[72px] lg:flex lg:flex-row lg:pb-10",children:[(0,i.jsxs)("div",{className:"lg:grow",children:[(0,i.jsx)("h1",{className:(0,C.A)(q?"mb-4":"mb-6"," text-h2 lg:mb-6 lg:max-w-[559px]"),children:I?I.coffeeShopName:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(N.A,{}),(0,i.jsx)(N.A,{width:"70%"})]})}),q&&(0,i.jsx)("p",{className:"mb-6 text-h4 lg:mb-12",children:null==m?void 0:m.distanceFromYou.replace("{{distance}}","".concat(E.toFixed(1)," km"))}),(0,i.jsx)("div",{className:"relative mb-6 lg:hidden",style:{maxWidth:458,maxHeight:458},children:(0,i.jsx)(g,{coffeeShop:I})}),(0,i.jsxs)("section",{className:"mb-6 text-ehouse-black lg:mb-12",children:[(0,i.jsx)("h2",{className:"text-h4",children:null!=(n=null==m?void 0:m.telephoneHeading)?n:(0,i.jsx)(N.A,{width:"175px"})}),(0,i.jsx)("p",{className:"mb-4 text-b1 lg:mb-6",children:I?I.phoneNumber:(0,i.jsx)(N.A,{width:"175px"})}),(0,i.jsx)(v.A,{title:null!=(r=null==m?void 0:m.callButtonLabel)?r:(0,i.jsx)(N.A,{width:"100px",className:"bg-[rgba(255,255,255,0.5)]"}),component:"a",href:"tel:".concat(null==I?void 0:I.phoneNumber)})]}),(0,i.jsxs)("section",{className:"mb-6 text-ehouse-black lg:mb-12",children:[(0,i.jsx)("h2",{className:"text-h4",children:null!=(s=null==m?void 0:m.addressHeading)?s:(0,i.jsx)(N.A,{width:"175px"})}),(0,i.jsx)("p",{className:"mb-4 text-b1 lg:mb-6",children:I?(0,i.jsxs)(i.Fragment,{children:["".concat(I.address1," ").concat(I.address2?I.address2:""),(0,i.jsx)("br",{}),"".concat(null==(l=I.postalCode)?void 0:l.trim()," ").concat(I.city)]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(N.A,{width:"275px"}),(0,i.jsx)(N.A,{width:"200px"})]})}),(0,i.jsx)(v.A,{title:null!=(u=null==m?void 0:m.viewDirectionsButtonLabel)?u:(0,i.jsx)(N.A,{width:"100px",className:"bg-[rgba(255,255,255,0.5)]"}),onClick:()=>{-1!=navigator.platform.indexOf("iPhone")||-1!=navigator.platform.indexOf("iPad")||-1!=navigator.platform.indexOf("iPod")?window.open("maps://maps.google.com/maps?daddr=".concat(null==I?void 0:I.latitude,",").concat(null==I?void 0:I.longitude,"&ll=")):window.open("https://maps.google.com/maps?daddr=".concat(null==I?void 0:I.latitude,",").concat(null==I?void 0:I.longitude,"&ll="))}})]})]}),(0,i.jsx)("div",{className:"relative ml-8 hidden shrink-0 lg:block",style:{width:458,height:458},children:(0,i.jsx)(g,{coffeeShop:I})})]}),(0,i.jsx)("div",{className:"gap-12 bg-ehouse-beige py-12 lg:min-h-[420px]",children:(0,i.jsxs)("div",{className:"eh-auto-margin grid lg:grid-cols-2 lg:gap-y-16 lg:py-16",children:[(0,i.jsxs)("section",{className:"mb-10 lg:mb-0",children:[(0,i.jsx)("h2",{className:"mb-6 text-h3",children:null==m?void 0:m.openingHoursHeading}),(0,i.jsxs)("ul",{className:"text-ehouse-black lg:max-w-md",children:[!I&&(0,i.jsx)(i.Fragment,{children:[...Array(7)].map((e,l)=>(0,i.jsx)(N.A,{width:"100%"},l))}),(null==I?void 0:I.openingHours)&&(null==I?void 0:I.openingHours.sort((e,l)=>e.sortOrder-l.sortOrder).map(e=>{var l,t;let a=(0,f.SQ)(e.openFrom,new Date),n=(0,f.SQ)(e.openTo,new Date),r="00:00:00"===e.openFrom&&"00:00:00"===e.openTo;return(0,i.jsxs)("li",{className:"flex justify-between",children:[(0,i.jsx)("div",{className:"capitalize",children:(0,f.iV)(e.sortOrder,D)}),(0,i.jsx)("div",{className:"text-right",children:r?null==U?void 0:U.textClosed:(0,i.jsxs)(i.Fragment,{children:[null!=(l=(0,f.fU)(a,D))?l:"[n/a]","-",null!=(t=(0,f.fU)(n,D))?t:"[n/a]"]})})]},e.weekDay)}))]})]}),(null==I||null==(t=I.irregularOpeningHours)?void 0:t.length)?(0,i.jsxs)("section",{className:"mb-10 lg:order-3 lg:mb-0",children:[(0,i.jsx)("h2",{className:"mb-6 text-h3",children:null==m?void 0:m.irregularOpeningHoursHeading}),(0,i.jsx)("ul",{className:"text-ehouse-black lg:max-w-md",children:(null==I?void 0:I.irregularOpeningHours)&&(null==I?void 0:I.irregularOpeningHours.sort((e,l)=>Date.parse(e.irregularDay)-Date.parse(l.irregularDay)).map(e=>{var l,t;let a=(0,f.SQ)(e.openFrom,new Date(e.irregularDay)),n=(0,f.SQ)(e.openTo,new Date(e.irregularDay)),r
1="00:00:00"===e.openFrom&&"00:00:00"===e.openTo;return(0,i.jsxs)("li",{className:"flex justify-between",children:[(0,i.jsxs)("div",{className:"capitalize",children:[(0,f.Yq)(a,D),"\xa0-\xa0",e.irregularReason]}),(0,i.jsx)("div",{className:"shrink-0 text-right",children:r?null==U?void 0:U.textClosed:(0,i.jsxs)(i.Fragment,{children:[null!=(l=(0,f.fU)(a,D))?l:"[n/a]","-",null!=(t=(0,f.fU)(n,D))?t:"[n/a]"]})})]},e.irregularDay)}))})]}):null,(0,i.jsxs)("section",{children:[(0,i.jsx)("h2",{className:"mb-6 text-h3",children:null==m?void 0:m.facilitiesHeading}),(0,i.jsxs)("ul",{className:"mb-5 text-ehouse-black",children:[I&&T.filter(e=>I[e]).map(e=>(G(e),(0,i.jsx)(_,{facilityKey:e,displayText:G(e)},e))),I&&0===R.length&&(0,i.jsx)("li",{children:null==m?void 0:m.facilitiesEmptyMessage})]}),(null==I?void 0:I.country)==="Denmark"&&(0,i.jsx)(i.Fragment,{children:(null==m?void 0:m.smileyRapporterLink)&&m.smileyReportHeading&&(0,i.jsx)(h(),{href:m.smileyRapporterLink,className:"text-smiley-report",children:m.smileyReportHeading})})]})]})}),(0,i.jsx)("div",{children:(0,i.jsx)(L.A,{blockList:null==m?void 0:m.pageBlocks})})]}),(0,i.jsx)(w.A,{sanityFooter:x})]})}var I=t(9099),Z=t(4135),U=t(2867),G=!0;function R(e){var l,t;let{data:a}=e;if((0,I.useRouter)().isFallback)return(0,i.jsx)("div",{className:"text-h1",children:"LOADING..."});let n=null==a?void 0:a.sanity,r=(null==a?void 0:a.coffeeShop)?n.page.title.replace("{{shopName}}",a.coffeeShop.coffeeShopName):void 0,s=n.page.description;return(0,i.jsx)(P.nl,{coffeeShop:null==a?void 0:a.coffeeShop,children:(0,i.jsxs)(H.vs,{value:null==n?void 0:n.globals,children:[(0,i.jsx)(U.bV,{title:r,description:s,openGraph:r?{images:(0,Z.Z)(null!=(t=n.page.openGraphImage)?t:null==(l=n.globals)?void 0:l.defaultOpenGraphImage,r)}:void 0,noindex:!1,nofollow:!1}),(0,i.jsx)(B,{navbar:null==n?void 0:n.navbar,footer:null==n?void 0:n.footer,page:null==n?void 0:n.page})]})})}},4135:(e,l,t)=>{"use strict";t.d(l,{A:()=>s,Z:()=>r});var a=t(7876),n=t(2867);function r(e,l){return e?[{url:"https://cdn.sanity.io/".concat(e.asset.path,"?w=1200&q=75&auto=format&h=630&fit=min&crop=center"),width:1200,height:630,alt:l}]:[]}function s(e){var l;let t=e.page,s=e.globals,i=(null==t?void 0:t.title)||"",o=null==t?void 0:t.description,c=r(null!=(l=null==t?void 0:t.openGraphImage)?l:null==s?void 0:s.defaultOpenGraphImage,i);return(0,a.jsx)(n.bV,{title:i,description:o,openGraph:{images:c},noindex:!1,nofollow:!1})}},6795:e=>{e.exports={breadcrumb:"Breadcrumb_breadcrumb__WeqTb"}},6840:(e,l,t)=>{"use strict";t.d(l,{iA:()=>d,nl:()=>h,rw:()=>u});var a=t(7876),n=t(4232),r=t(9099),s=t(8149),i=t(9209),o=t(6001);let c=n.createContext(null),d=()=>{let{locale:e}=(0,o.A)(),l=(0,s.Ay)("https://myespressohouse.com/beproud/api/CoffeeShop/v2",(l,t)=>(0,i.GO)(l,{...t,headers:{"Accept-Language":e}}),{revalidateOnFocus:!1,revalidateOnReconnect:!1});return(0,n.useMemo)(()=>{var e,t;let a=[];null==(e=l.data)||e.coffeeShops.forEach((e,t)=>{var n;let r=null==(n=l.data)?void 0:n.coffeeShops.find((l,a)=>e.coffeeShopName===l.coffeeShopName&&t!==a);r&&a.push(r.coffeeShopName)});let n=(null==l?void 0:l.data)?{coffeeShops:null==l||null==(t=l.data)?void 0:t.coffeeShops.filter(e=>!(null==a?void 0:a.some(l=>e.coffeeShopName===l)))}:void 0;return{...l,data:n}},[l])},u=()=>{let e=n.useContext(c);if(null===e)throw Error("useFindUsPageContext must be used within a FindUsPageContextProvider");return e},h=e=>{var l;let{children:t,coffeeShopsResponse:n,coffeeShop:s}=e,i=(0,r.useRouter)(),o=null==i||null==(l=i.asPath)?void 0:l.split("/")[1];return(0,a.jsx)(c.Provider,{value:{findUsRouteSlug:o,coffeeShopsResponse:n,coffeeShop:s},children:t})}},6927:(e,l,t)=>{"use strict";t.d(l,{A:()=>i});var a,n,r=t(4232);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var l=1;l<arguments.length;l++){var t=arguments[l];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e}).apply(null,arguments)}let i=function(e){return r.createElement("svg",s({"data-name":"Lager 1",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 61 61"},e),a||(a=r.createElement("path",{d:"M8.3 25.584c0-14.617 10.938-24.003 23-24.003s23 9.386 23 24.003c0 4.594-1.742 9.682-5.345 15.289Q43.55 49.279 32.646 59.08a2.014 2.014 0 0 1-2.66 0Q19.043 49.277 13.65 40.872C10.043 35.266 8.3 30.178 8.3 25.584Z",fill:"#d2a860",stroke:"#fff",strokeWidth:2})),n||(n=r.createElement("path",{d:"M23.586 19.286h-.857L24.442 15h13.714l1.714 4.286h-.857m-15.428 0h15.428m-15.428 0S25.729 39 26.786 39h9.228c.857 0 3-19.714 3-19.714",fill:"none",stroke:"#fff",strokeLinejoin:"round",strokeWidth:2})))}},8659:(e,l,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/find-us/[location]",function(){return t(3362)}])}},e=>
1{e.O(0,[167,371,903,210,661,899,9,620,636,593,792],()=>e(e.s=8659)),_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.