(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6416],{1328:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return U},processedTitle:function(){return G}});var n,o,a,s,c=r(8529),i=r(7328),l=r(2784),u=r(17871),p=r(88472),d=r(97729),g=r.n(d),h=r(17971),m=r(41857),x=r(28885),b=r(92210),f=r(22182),y=r(55065),S=r(57194),j=r(11006),_=r(87330),C=r(48840),v=r(81292),L=r(51339),w=r(4626),T=r(53678),k=r(90943),Z=r(33382),z=r(86283),R=r(52322),E=j.zo.p(n||(n=(0,i.Z)(["\n ",";\n"])),(0,_.xv)("xsmall","default")),A=j.zo.p(o||(o=(0,i.Z)(["\n text-transform: capitalize;\n ",";\n"])),(0,_.xv)("large1","alternate")),N=(0,j.zo)(L.zx)(a||(a=(0,i.Z)(["\n ",";\n text-transform: capitalize;\n text-decoration: none;\n &:hover,\n &:active,\n &:focus {\n ",";\n text-transform: capitalize;\n text-decoration: underline;\n }\n"])),(0,_.xv)("bodyText","default"),(0,_.xv)("bodyText","default")),P=j.zo.div(s||(s=(0,i.Z)(["\n display: grid;\n row-gap: ",";\n column-gap: ",";\n grid-template-columns: repeat(2, 1fr);\n padding-bottom: ",";\n\n "," {\n grid-template-columns: repeat(3, 1fr);\n }\n "," {\n grid-template-columns: repeat(5, 1fr);\n }\n"])),(0,C.W0)(2),(0,C.W0)(3),(0,C.W0)(10),function(e){return(0,v.mq)(e.theme.breakpointUtils.map,"sm")},function(e){return(0,v.mq)(e.theme.breakpointUtils.map,"md")}),U=!0,G=function(e){var t=e.split(" ");return t.length>1?"".concat(t[0].charAt(0).toUpperCase()+t[0].slice(1)," ").concat(t[1].charAt(0).toUpperCase()+t[1].slice(1)," ").concat(3===t.length?t[2].charAt(0).toUpperCase()+t[2].slice(1):""):e.charAt(0).toUpperCase()+e.slice(1)},O=function(e){var t=e.regionData,r=e.statusCode,n=(0,m.ND)(),o=n.enableStoreLocator,a=n.geocodeApiKeyStoreMap,s=n.storeLocatorCountry,i=(0,p.useRouter)(),d=(0,m.Dx)().originUrl,y=l.useState(!1),S=(0,c.Z)(y,2),j=S[0],_=S[1],v=i.query,L=v.country,U=v.region,O="string"==typeof L?L:"",W="string"==typeof U?U:"",K=Object.keys(t),I={countryTitle:(0,x.ag)("stores.country.page.title"),storeSearchSubtitle:(0,x.ag)("storelocator.storesearch.subtitle"),storeSearchInputLabel:(0,x.ag)("storelocator.storesearch.inputlabel"),storeSearchButtonLabel:(0,x.ag)("storelocator.storesearch.buttonlabel"),storesRegions:(0,x.ag)("breadcrumbs.all.stores"),breadCrumbsHome:(0,x.ag)("general.breadcrumbs.home.text"),storeSearch:{title:(0,x.ag)("storelocator.storsearch.title",G((0,Z.Gx)(W))),subtitle:(0,x.ag)("storelocator.storesearch.subtitle"),inputLabel:(0,x.ag)("storelocator.storesearch.inputlabel"),buttonLabel:(0,x.ag)("storelocator.storesearch.buttonlabel"),infoLabel:(0,x.ag)("storelocator.storesearch.infolabel"),infoLinkLabel:(0,x.ag)("storelocator.storesearch.infolinklabel")}};if(!o||L!==s||404===r)return(0,R.jsx)(z.default,{statusCode:404});var M=[{text:I.breadCrumbsHome,url:b.Z5.HomePage},{text:I.storesRegions,url:b.Z5.Stores.replace(":country",O)},{text:(0,Z.Gx)(W),url:b.Z5.StoresCity.replace(":country",O).replace(":region",W)}];return(0,R.jsxs)(l.Fragment,{children:[(0,R.jsxs)(g(),{children:[(0,R.jsx)("title",{children:G((0,Z.Gx)(W))}),(0,R.jsx)("link",{rel:"canonical",href:"".concat(d).concat(b.Z5.StoresRegion.replace(":country",O).replace(":region",W))},"link_canonical")]}),(0,R.jsx)(h.i,{schemaItems:M.map(function(e,t){return{"@type":"ListItem",position:t+1,name:e.text,item:d.concat(e.url)}}),breadcrumbs:M,capitalizeText:!0}),(0,R.jsxs)(f.F,{compactMargin:!0,enableMaxWidth:!1,sendPageVisit:!0,children:[(0,R.jsx)(w.P,{colSpan:12,rowStart:2,style:{paddingBottom:"".concat((0,C.W0)(4))},children:(0,R.jsx)(k.Y,{i18nText:I.storeSearch,alignment:T.K.CENTER,isSearchReady:j,onChangeRedirect:function(e){return i.push("".concat(b.Z5.StoreLocator,"?location=").concat(e))}})}),(0,R.jsxs)(w.P,{colStart:2,colSpan:10,rowStart:3,style:{gridRowGap:"".concat((0,C.W0)(2)),display:"grid"},children:[(0,R.jsx)(A,{children:(0,Z.Gx)(W)}),(0,R.jsx)(P,{children:K.map(function(e,r){var n;return(0,R.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,R.jsx)(N,{sizing:"regular",emphasis:"low",renderedAs:"a",href:b.Z5.StoresCity.replace(":country",O).replace(":region",W).replace(":town",e),children:e}),(0,R.jsx)(E,{children:"(".concat(null===(n=t[e])||void 0===n?void 0:n.length,")")})]},"".concat(e,"-").concat(r))})})]})]}),(0,R.jsx)(u.KJ,{id:"google-map",googleMapsApiKey:a||"",libraries:["places"],loadingElement:(0,R.jsx)(l.Fragment,{}),onLoad:function(){return _(!0)}})]})};t.default=O,O.Layout=S.K,O.pageType=y.G.STORE_LOCATOR},2865:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/landing/stores/[country]/[region]",function(){return r(1328)}])}},function(e){e.O(0,[2670,3232,6910,6159,3382,5170,6796,9774,2888,179],function(){return e(e.s=2865)}),_N_E=e.O()}]); //# sourceMappingURL=[region]-8197afa2bd9fba9a.js.map