1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7760],{46174:function(e,t,o){"use strict";o.d(t,{c:function(){return m}});var n=o(76608),l=o(52294),i=o(7803),r=o(16402),a=o(20252),c=o(64605),s=o(33269),d=o(98126),u=o(77934),v=o(61448),p=o(99489),h=o(43376);let m=e=>{let t,{active:o,ariaLabel:m,as:g,children:f,className:C,icon:b,link:w,onClick:S,pathKey:x,setForceClosingMenu:y,trigger:L,subMenuTrigger:N=!1,wrapper:j=!1,"data-testid":k}=e,z=(0,l.Z)(),{variant:M,mode:E,topLevel:I,depth:P,indentAmount:B,onSelect:F,collapsed:A}=(0,i.useContext)(a.p),R=(0,c.M)(),_=(0,s.A)("menuItem"),D=(0,s.A)("menuItemNavAnchor"),T=(0,s.A)("menuItemNavButton"),O=(0,d.cn)(R?"group flex flex-col data-[layout=horizontal]:flex-row content-center flex-[1_0_auto] rounded-xl flex-grow font-bold text-primary hover:bg-primary/10 focus:bg-primary/20 data-[active=true]:bg-primary":null==_?void 0:_({variant:M}),C),Z=null==D?void 0:D({variant:M}),U=null==T?void 0:T({variant:M}),H=(0,r.D)(),G=w?x:void 0,q=void 0===o?null==z?void 0:z.startsWith(null==x?void 0:x.toString()):o,W=A&&I,K=I?E:"vertical",V=!L&&W;(W||"horizontal"===K)&&(t="content-center");let $=0===B?void 0:(P+1)*B;I&&"horizontal"===E&&($=0);let J=(0,i.useCallback)(e=>{S&&S(e),F&&F(x),y&&y(!0)},[S,F,x,y]),Q=(0,i.useMemo)(()=>(0,n.jsxs)(u.k,{className:(0,d.cn)("flex-row items-center gap-1.5",t),children:[b,!W&&f]}),[f,W,b,t]),X=(0,i.useMemo)(()=>(0,n.jsx)(h.u,{content:f,placement:"right",children:Q}),[f,Q]),Y=(0,i.useMemo)(()=>G?(0,n.jsx)(v.O,{className:(0,d.cn)(Z,W?"":"px-[".concat($,"px]")),href:G,onClick:J,"data-path-key":x,"aria-label":m||void 0,"data-testid":k,removeUppercase:R&&"Pulze"===H,children:V?X:Q}):(0,n.jsx)(p.z,{className:(0,d.cn)(U,W?"":"px-[".concat($,"px]")),variant:"text",onClick:J,"data-path-key":x,"aria-label":m||void 0,"data-testid":k,removeUppercase:R&&"Pulze"===H,children:V?X:Q}),[G,q,J,x,m,k,Q]);return(0,n.jsx)(u.k,{className:O,"data-active":q,"data-layout":K,"data-submenutrigger":N,"data-toplevel":I,"data-targetid":x,as:g||L?"div":"li",children:j?f:Y})};m.displayName="MenuItem"},77760:function(e,t,o){"use strict";o.d(t,{N:function(){return V}});var n=o(76608);o(85161),o(35008);var l=o(16402),i=o(35439),r=o(4525),a=o(7803),c=o(85221),s=o(27540),d=o(33269),u=o(76677),v=o(67500),p=o(71549),h=o(56778),m=o(36937),g=o(88482),f=o(98126),C=o(74934);let b=(e,t,o)=>Object.keys(t).every(e=>!t[e][o])?e:e.filter(e=>{var n;return null===(n=e.properties)||void 0===n?void 0:n.metaInfo.some(e=>{var n;return null==t?void 0:null===(n=t[e])||void 0===n?void 0:n[o]})}),w=e=>{let t=e.split(",");if(2!==t.length)return null;let[o,n]=t.map(parseFloat);return!isNaN(o)&&!isNaN(n)&&o>=-90&&o<=90&&n>=-180&&n<=180?{lat:o,lng:n}:null};var S=o(19012),x=o(11707),y=o(12438),L=o(10635);let N=(0,a.forwardRef)((e,t)=>{var o;let{isBannerVisible:l,isLoading:r,filterSelected:a,handleChange:c,searchValue:s,numStores:v,onSearch:p,onFilter:h,onSearchByGeocode:m,shouldHideFilter:g,backgroundImageSrc:C}=e,b=null===(o=(0,d.A)("storeLocator"))||void 0===o?void 0:o.components,{commonTranslations:w}=(0,u.$)(),{flags:N}=(0,i.A)(),{headerHeight:j,showHeader:k}=(0,S.w7)();return(0,n.jsxs)("div",{className:(0,f.cn)(null==b?void 0:b.searchField,v>0&&(null==b?void 0:b.searchFieldActive)),style:{top:k?j:0,...C&&{backgroundImage:"url(".concat(C,"), linear-gradient(270.45deg, #2B58A6 0.37%, #001E61 99.61%)"),backgroundRepeat:"no-repeat, no-repeat",backgroundSize:"1024px 1024px, 100% 100%",backgroundPosition:"calc(100% + 520px) -600px, 0 0"}},children:[(0,n.jsxs)("form",{onSubmit:p,className:null==b?void 0:b.inputContainer,children:[(0,n.jsx)("input",{ref:t,className:(0,f.cn)(null==b?void 0:b.input,N.isStoreLocatorPhase2Enabled&&(null==b?void 0:b.inputWithCurrentLocation)),value:s,onChange:c,type:"text",placeholder:w("StoreLocator.InputPlaceholder")}),(0,n.jsx)("button",{type:"submit",id:"search-icon","data-testid":"search-icon","aria-label":w("StoreLocator.SearchCurrentLocationIconLabel"),children:(0,n.jsx)(x.J,{icon:"magnifying-glass",isNewPath:!0,outline:!0,"aria-hidden":!0,size:N.isStoreLocatorPhase2Enabled?"medium":"large",className:(0,f.cn)(null==b?void 0:b.icon,null==b?void 0:b.searchIcon,N.isStoreLocatorPhase2
1Enabled&&(null==b?void 0:b.searchIconWithCurrentLocation))})}),(0,n.jsx)("button",{onClick:m,className:(0,f.cn)(null==b?void 0:b.locationIconButton,N.isStoreLocatorPhase2Enabled&&(null==b?void 0:b.locationIconButtonWithCurrentLocation)),id:"location-icon","data-testid":"location-icon","aria-label":w("StoreLocator.SearchCurrentLocationIconLabel"),children:(0,n.jsx)(x.J,{icon:"crosshairs",isNewPath:!0,outline:!0,"aria-hidden":"true",size:"large",className:(0,f.cn)(null==b?void 0:b.icon,null==b?void 0:b.locationIcon)})})]}),!l&&(0,n.jsxs)(n.Fragment,{children:[!r&&v>0&&(0,n.jsxs)("div",{className:null==b?void 0:b.filterButtonContainer,children:[(0,n.jsx)("div",{className:null==b?void 0:b.sectionTitle,children:r?w("StoreLocator.ShowAll"):w("StoreLocator.StoresNearYou",{total:v})}),!g&&(0,n.jsxs)("button",{className:(0,f.cn)(null==b?void 0:b.container,null==b?void 0:b.filterButton,!v&&(null==b?void 0:b.disableFilterButton)),onClick:h,id:"product-filter","data-testid":"product-filter",children:[(0,n.jsx)("span",{className:null==b?void 0:b.sectionTitle,children:w("StoreLocator.Filter")}),(0,n.jsx)(y.E,{src:"/icons/new/outline/adjustments-vertical".concat(a?"-active":"",".svg"),alt:"Filter Icon",width:40,height:40,className:null==b?void 0:b.filterSelectedIcon})]})]}),(0,n.jsx)(L.i,{className:(0,f.cn)(null==b?void 0:b.divider,null==b?void 0:b.mobileHidden)})]})]})});N.displayName="SearchField";let j=(0,r.default)(()=>Promise.all([o.e(3866),o.e(7685)]).then(o.bind(o,37685)).then(e=>e.SearchFilter),{loadableGenerated:{webpack:()=>[37685]}}),k=(0,r.default)(()=>Promise.all([o.e(4695),o.e(6222)]).then(o.bind(o,86222)).then(e=>e.SearchList),{loadableGenerated:{webpack:()=>[86222]}}),z=e=>{var t,o;let{openFilter:l,setOpenFilter:i,isLoading:r,stores:c,isBannerVisible:u,selectedStore:v,handleSearch:p,handleRequestLocation:h,handleStoreSelected:m,handleApplyFilter:g,handleClearFilter:S,textSection:x,selectedTab:y,filterItems:L,setFilterItems:z}=e,M=(0,s.useRouter)(),E=(0,s.usePathname)(),I=(0,s.useSearchParams)(),P=null==I?void 0:I.get("q"),B=P&&!w(P)?P:"",[F,A]=(0,a.useState)(B),R=(0,a.useRef)(null),_=null===(t=(0,d.A)("storeLocator"))||void 0===t?void 0:t.components,D=!Object.keys(L).length,T=(0,a.useMemo)(()=>Object.values(L).some(e=>e.selected),[L]),O=(0,a.useMemo)(()=>b(c,L,"selected"),[c,L]),Z=(0,a.useMemo)(()=>b(c,L,"tempSelected").length,[c,L]);return(0,n.jsx)("div",{className:(0,f.cn)(l&&(null==_?void 0:_.filterEnabled),null==_?void 0:_.searchSectionContainer),children:l?(0,n.jsx)(j,{handleApplyFilter:g,handleClearFilter:S,numOfFilteredStores:Z,filterItems:L,setFilterItems:z,setOpenFilter:i}):(0,n.jsxs)("div",{className:(0,f.cn)(null==_?void 0:_.searchContainer),children:[(0,n.jsx)(N,{ref:R,isBannerVisible:u,isLoading:r,searchValue:F,handleChange:e=>{A(e.target.value)},filterSelected:T,shouldHideFilter:D,numStores:O.length,onSearch:e=>{if(e.preventDefault(),F.trim()){if(window.innerWidth<1024){var t;null===(t=R.current)||void 0===t||t.blur()}M.replace("".concat(E,"?q=").concat(F)),p(F)}},onFilter:()=>{c.length&&i(!0)},onSearchByGeocode:h,backgroundImageSrc:null==x?void 0:null===(o=x.media)||void 0===o?void 0:o.src}),u?x&&(0,n.jsx)(C.a,{...x,containerClassName:null==_?void 0:_.bannerContainer,sectionHeadingProps:{subTitleClassName:null==_?void 0:_.bannerSubtitle,titleClassName:null==_?void 0:_.bannerTitle,descClassName:null==_?void 0:_.bannerDescription}}):(0,n.jsx)("div",{className:(0,f.cn)(null==_?void 0:_.listContainer,"Map"===y&&(null==_?void 0:_.mobileHidden)),children:(0,n.jsx)(k,{isLoading:r,stores:O,selectedStore:v,handleStoreSelected:m})})]})})};var M=o(99489),E=o(46174);let I=["List","Map"],P=e=>{var t;let{selectedTab:o,handleSelectTab:l}=e,r=null===(t=(0,d.A)("storeLocator"))||void 0===t?void 0:t.components,{flags:a}=(0,i.A)(),{commonTranslations:c}=(0,u.$)();return(0,n.jsxs)("div",{className:(0,f.cn)(null==r?void 0:r.tabsContainer,(null==a?void 0:a.hasMapAsSection)&&(null==r?void 0:r.tabsContainerInMapSection)),children:[(0,n.jsx)("div",{className:null==r?void 0:r.tabs,children:I.map((e,t)=>(0,n.jsx)(E.c,{active:o===e,"aria-label":"Navigation item ".concat(t),wrapper:!0,pathKey:"",className:null==r?void 0:r.tab,children:(0,n.jsx)(M.z,{name:e,className:(0,f.cn)(null==r?void 0:r.tabButton,o===e&&(null==r?void 0:r.tabButtonSelected)),variant:"link",onClick:l,children:c("StoreLocator.Tabs.".concat(e))})},e))}),!(null==a?void 0:a.hasMapAsSection)&&(0,n.jsx)(L.i,{className:null==r?void 0:r.tabDivider})]})};var B=o(49015);let F=(e,t,o,n)=>{let l=0;e.on("click","clusters",async t=>{var o;let n=e.queryRenderedFeatures(t.point,{layers:["clusters"]}
1),l=n[0].properties.cluster_id,i=await (null===(o=e.getSource("stores"))||void 0===o?void 0:o.getClusterExpansionZoom(l));"Point"===n[0].geometry.type&&e.easeTo({center:n[0].geometry.coordinates,zoom:i})}),e.on("click","unclustered-point",n=>{var l,i,r,a;if((null===(l=n.features)||void 0===l?void 0:l[0].geometry.type)==="Point"){let l=null===(i=n.features)||void 0===i?void 0:i[0].geometry.coordinates,{id:c,properties:s}=null===(r=n.features)||void 0===r?void 0:r[0];o({map:e,coordinates:l,properties:s,id:c}),(0,h.L)(m.gB.clickLocation,{location_city:(0,B.hw)(t,null==s?void 0:s.address,null==s?void 0:s.country),location_name:null!==(a=null==s?void 0:s.name)&&void 0!==a?a:""},{clearEcommerce:!0})}}),e.on("dragend",()=>n(e.getCenter())),e.on("zoomstart",()=>{l=e.getZoom()}),e.on("zoomend",t=>{var o;let i=e.getZoom();(null===(o=t.originalEvent)||void 0===o?void 0:o.type)==="wheel"&&l<12&&i>=12&&n(e.getCenter())})},A=e=>{let{map:t,id:o,pin:n,size:l}=e,i=new Image((null==l?void 0:l.width)||36,(null==l?void 0:l.height)||37);i.onload=()=>{t.addImage(o,i)},i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(n)},R=e=>'<svg xmlns="http://www.w3.org/2000/svg" width="22" height="30" viewBox="0 0 22 60" fill="none">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M3.21579 4.22244C5.27467 2.02284 8.06712 0.787109 10.9788 0.787109C13.8905 0.787109 16.683 2.02284 18.7419 4.22244C20.8007 6.42205 21.9574 9.40535 21.9574 12.5161C21.9574 15.6268 20.8007 18.6101 18.7419 20.8097L10.9788 29.1033L3.21579 20.8097C2.19626 19.7206 1.38753 18.4276 0.83576 17.0046C0.283992 15.5816 0 14.0564 0 12.5161C0 10.9758 0.283992 9.45057 0.83576 8.02754C1.38753 6.60451 2.19626 5.31154 3.21579 4.22244ZM10.9788 15.867C11.8107 15.867 12.6085 15.514 13.1967 14.8856C13.7849 14.2571 14.1154 13.4048 14.1154 12.5161C14.1154 11.6273 13.7849 10.775 13.1967 10.1466C12.6085 9.51815 11.8107 9.16511 10.9788 9.16511C10.147 9.16511 9.34915 9.51815 8.76093 10.1466C8.17271 10.775 7.84225 11.6273 7.84225 12.5161C7.84225 13.4048 8.17271 14.2571 8.76093 14.8856C9.34915 15.514 10.147 15.867 10.9788 15.867Z" fill="'.concat(e,'"/>\n</svg>'),_=(e,t)=>{t&&Object.keys(e).forEach(o=>{var n;let l=R(null===(n=e[o])||void 0===n?void 0:n.color);A({map:t,id:"unclustered-point-".concat(o),pin:l,size:{width:44,height:60}})})},D={Blu:"#009CEB",Pulze:"#0A3753",OND:"#001E61"},T=(e,t)=>{"Blu"===t?(A({map:e,id:"unclustered-point",pin:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="37" viewB
1ox="0 0 36 37" fill="none">\n<rect x="0.5" y="1.36523" width="35" height="35" rx="17.5" fill="white"/>\n<rect x="0.5" y="1.36523" width="35" height="35" rx="17.5" stroke="#CECDCF"/>\n<path d="M19.0487 25.7534L26.2183 13.2008C26.6845 12.385 26.102 11.3652 25.1696 11.3652H10.8304C9.89806 11.3652 9.3156 12.385 9.7818 13.2008L16.9514 25.7534C17.4176 26.5692 18.5825 26.5692 19.0487 25.7534Z" fill="#009CEB"/>\n</svg>'}),A({map:e,id:"unclustered-point-selected",pin:'<svg width="36" height="37" viewBox="0 0 36 37" fill="none" xmlns="http://www.w3.org/2000/svg">\n<rect y="0.865234" width="36" height="36" rx="18" fill="#009CEB"/>\n<path d="M19.0487 25.7534L26.2183 13.2008C26.6845 12.385 26.102 11.3652 25.1696 11.3652H10.8304C9.89806 11.3652 9.3156 12.385 9.7818 13.2008L16.9514 25.7534C17.4176 26.5692 18.5825 26.5692 19.0487 25.7534Z" fill="white"/>\n</svg>\n'})):"OND"===t?A({map:e,id:"unclustered-point-noproduct",pin:'<svg width="24" height="30" viewBox="0 0 12 60" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M4.92344 5.06726C6.79516 3.10333 9.33375 2 11.9808 2C14.6278 2 17.1663 3.10333 19.0381 5.06726C20.9098 7.03119 21.9613 9.69486 21.9613 12.4723C21.9613 15.2497 20.9098 17.9134 19.0381 19.8773L11.9808 27.2823L4.92344 19.8773C3.9966 18.9049 3.26139 17.7505 2.75978 16.4799C2.25817 15.2093 2 13.8475 2 12.4723C2 11.097 2.25817 9.73523 2.75978 8.46467C3.26139 7.19411 3.9966 6.03967 4.92344 5.06726V5.06726ZM11.9808 15.4642C12.737 15.4642 13.4623 15.149 13.997 14.5879C14.5318 14.0268 14.8322 13.2658 14.8322 12.4723C14.8322 11.6788 14.5318 10.9178 13.997 10.3567C13.4623 9.79557 12.737 9.48035 11.9808 9.48035C11.2245 9.48035 10.4992 9.79557 9.96448 10.3567C9.42973 10.9178 9.12931 11.6788 9.12931 12.4723C9.12931 13.2658 9.42973 14.0268 9.96448 14.5879C10.4992 15.149 11.2245 15.4642 11.9808 15.4642Z" fill="white" stroke="#001E61" stroke-width="2.5"/>\n</svg>',size:{width:48,height:60}}):A({map:e,id:"unclustered-point-noproduct",pin:'<svg width="24" height="30" viewBox="0 0 12 60" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M4.92344 5.06726C6.79516 3.10333 9.33375 2 11.9808 2C14.6278 2 17.1663 3.10333 19.0381 5.06726C20.9098 7.03119 21.9613 9.69486 21.9613 12.4723C21.9613 15.2497 20.9098 17.9134 19.0381 19.8773L11.9808 27.2823L4.92344 19.8773C3.9966 18.9049 3.26139 17.7505 2.75978 16.4799C2.25817 15.2093 2 13.8475 2 12.4723C2 11.097 2.25817 9.73523 2.75978 8.46467C3.26139 7.19411 3.9966 6.03967 4.92344 5.06726V5.06726ZM11.9808 15.4642C12.737 15.4642 13.4623 15.149 13.997 14.5879C14.5318 14.0268 14.8322 13.2658 14.8322 12.4723C14.8322 11.6788 14.5318 10.9178 13.997 10.3567C13.4623 9.79557 12.737 9.48035 11.9808 9.48035C11.2245 9.48035 10.4992 9.79557 9.96448 10.3567C9.42973 10.9178 9.12931 11.6788 9.12931 12.4723C9.12931 13.2658 9.42973 14.0268 9.96448 14.5879C10.4992 15.149 11.2245 15.4642 11.9808 15.4642Z" fill="white" stroke="#0A3753" stroke-width="2.5"/>\n</svg>',size:{width:48,height:60}}),e.addSource("stores",{type:"geojson",data:{type:"FeatureCollection",features:[]},cluster:!0,clusterMaxZoom:14,clusterRadius:50}),e.addLayer({id:"clusters",type:"circle",source:"stores",filter:["has","point_count"],paint:{"circle-color":D[t],"circle-radius":18}}),e.addLayer({id:"cluster-count",type:"symbol",source:"stores",filter:["has","point_count"],layout:{"text-field":"{point_count_abbreviated}","text-font":["Open Sans Bold"],"text-size":16},paint:{"text-color":"#ffffff"}}),e.addLayer({id:"unclustered-point",type:"symbol",source:"stores",filter:["!",["has","point_count"]],layout:{"icon-image":["get","image"],"icon-size":1}})},O=(e,t)=>{var o;e&&(null===(o=e.getSource("stores"))||void 0===o||o.setData({type:"FeatureCollection",features:t}))};var Z=o(12687);let U=(e,t,o)=>{if("Blu"===e)return"unclustered-point";if(!(null==o?void 0:o.length)||!t.length)return"unclustered-point-noproduct";for(let e of o)if(e.filterDetailKey&&t.includes(e.filterDetailKey))return"unclustered-point-".concat(e.filterDetailKey);return"unclustered-point-noproduct"},H=(e,t,o)=>{let n=e.map((e,n)=>{let{destinationLocation:l,...i}=e,{name:r,address:a,latitude:c,longitude:s,metaInfo:d,...u}=l||{},v=d?Object.keys(d).filter(e=>{var t;return JSON.parse(null===(t=d[e])||void 0===t?void 0:t.toLowerCase())}):[];return{id:n,type:"Feature",properties:{name:(0,B.cE)(r),address:(0,B.Tg)(a),image:U(t,v,o),metaInfo:v,...u,...i},geometry:{type:"Point",coordinates:[s,c]}}}),l={};
1return null==o||o.forEach(e=>{e.filterDetailKey&&(l[e.filterDetailKey]={selected:!1,tempSelected:!1,name:e.filterDetailName||"",color:e.colorCode||void 0})}),{newFilterItems:l,formattedStores:n}};var G=(e,t)=>{let o=e.getSource("stores");null==o||o.getData().then(e=>{e.features.forEach(e=>{e.properties&&(e.properties.image=e.id===t?"unclustered-point-selected":"unclustered-point")}),null==o||o.setData(e)})};window.storeLocator={clickLocationHandler:(e,t,o,n)=>{var l;(0,h.L)(m.gB.getDirectionsLocation,{location_city:(0,B.hw)(e,decodeURI(t),o),location_name:null!==(l=decodeURI(n))&&void 0!==l?l:""},{clearEcommerce:!0}),window.open("https://maps.google.com?q=".concat(t))}};let q=e=>{var t;let o=(0,a.useRef)(),n=(0,l.D)(),i=null===(t=(0,d.A)("storeLocatorPopup"))||void 0===t?void 0:t.components,{commonTranslations:r}=(0,u.$)();return{addPopup:(0,a.useCallback)(t=>{let{coordinates:l,properties:a,map:s,id:d,isListItemClicked:u}=t;o.current&&o.current.remove();let[v,p]=l;window.innerWidth>=1024?v-=.003:u&&(v-=.001,p+=.004),s.easeTo({center:[v,p],zoom:15}),e(d),"Blu"===n&&G(s,d),o.current=new c.Popup({anchor:"bottom",className:null==i?void 0:i.mainContainer,maxWidth:"300px",offset:40,subpixelPositioning:!0,focusAfterOpen:!1}).setLngLat(l).setHTML('<div>\n <div class="'.concat(null==i?void 0:i.headerContainer,'">\n <h1 class="').concat(null==i?void 0:i.name,'">').concat(null==a?void 0:a.name,'</h1> \n <span class="').concat(null==i?void 0:i.distance,'">').concat(null==a?void 0:a.distance,'</span>\n </div>\n <div class="').concat(null==i?void 0:i.container,'">\n <p class="').concat(null==i?void 0:i.address,'">').concat(null==a?void 0:a.address,'</p>\n \n </div>\n <a \n class="').concat(null==i?void 0:i.link,'"\n onclick="window.storeLocator.clickLocationHandler(\'').concat(n,"', '").concat(encodeURI(null==a?void 0:a.address),"', '").concat(null==a?void 0:a.country,"', '").concat(encodeURI(null==a?void 0:a.name),'\')"\n href="javascript:void(0);"\n >\n ').concat(r("StoreLocator.GetDirections"),"\n </a>\n </div>")).addTo(s)},[])}},W={"bg-BG":{center:[25.4855,42.7339],zoom:6},"pt-PT":{center:[-8.501,39.5955],zoom:6},"fr-FR":{center:[1.8883,46.6034],zoom:5},"en-GB":{center:[-3.436,55.3781],zoom:5},"es-ES":{center:[-3.7492,40.4637],zoom:5},"de-DE":{center:[10.4515,51.1657],zoom:5},"el-GR":{center:[21.8243,39.0742],zoom:6},"cs-CZ":{center:[15.473,49.8175],zoom:6},"it-IT":{center:[12.5674,41.8719],zoom:5},"pl-PL":{center:[19.1451,51.9194],zoom:6},"sv-SE":{center:[18.6435,60.1282],zoom:4},"en-NZ":{center:[174.886,-40.9006],zoom:5},"sk-SK":{center:[19.699,48.669],zoom:6},"hu-HU":{center:[19.5033,47.1625],zoom:6},"es-IC":{center:[-16.6291,28.2916],zoom:7},"en-AU":{center:[133.7751,-25.2744],zoom:4}},K=(0,r.default)(()=>o.e(1272).then(o.bind(o,91272)).then(e=>e.NoWebGLSupport),{loadableGenerated:{webpack:()=>[91272]},ssr:!1}),V=e=>{var t;let{textSection:o}=e,r=(0,l.D)(),C=null===(t=(0,d.A)("storeLocator"))||void 0===t?void 0:t.components,[S,x]=(0,a.useState)([]),[y,L]=(0,a.useState)(!1),[N,j]=(0,a.useState)({}),[k,M]=(0,a.useState)(!0),[E,I]=(0,a.useState)("Map"),[A,R]=(0,a.useState)(),{data:D,revalidate:U}=(0,v.Ag)(),{getStores:G,isLoading:V}=(0,v.KX)(),{getStoresByGeoCode:$,isLoading:J}=(0,v.oL)(),{flags:Q}=(0,i.A)(),{commonTranslations:X}=(0,u.$)(),Y=(0,p.useLocale)(),ee=(0,a.useRef)(null),et=(0,a.useRef)(),eo=(0,a.useRef)(),en=(0,a.useRef)(e=>ei),el=(0,s.useRouter)(),ei=(0,s.usePathname)(),er=(0,s.useSearchParams)(),ea=null==er?void 0:er.get("q"),ec=null==er?void 0:er.get("id"),es=null==er?void 0:er.get("filter"),{addPopup:ed}=q(R),eu=(0,a.useMemo)(Z.B,[]),ev=e=>Object.entries(e).filter(e=>{let[,t]=e;return t.selected}).map(e=>{let[t]=e;return t}).join(","),ep=(0,a.useCallback)(e=>{let t=new URLSearchParams(null==er?void 0:er.toString());return t.set("q",e),"".concat(ei,"?").concat(t.toString())},[ei,er]);en.current=ep;let eh=(0,a.useCallback)(e=>{let t=new URLSearchParams(null==er?void 0:er.toString()),o=ev(e);o?t.set("filter",o):t.delete("filter"),el.replace("".concat(ei,"?").concat(t.toString()),{scroll:!1})},[ei,el,er]),em=(0,a.useCallback)((e,t)=>{var o,n,l;if(!(null===(o=e.result)||void 0===o?void 0:o.destinationLocations))return;let{newFilterItems:i,formattedStores:a}=H(e.result.destinationLocations,r,e.result.filters);(null===(n=e.result.filters)||void 0===n?void 0:n.length)&&!Object.keys(N).length&&"Pulze"===r&&_(i,et.current),es&&es.split(",").forEach(e
1=>{i[e]&&(i[e].selected=!0,i[e].tempSelected=!0)}),j(e=>({...i,...e}));let{latitude:c,longitude:s}=e.result.loqateCoOrdinate;!t&&c&&s&&(null===(l=et.current)||void 0===l||l.easeTo({center:[s,c],zoom:12})),x(a);let d=es?b(a,i,"selected"):a;if(O(et.current,d),ec){let e=a.find(e=>{var t;return(null===(t=e.properties)||void 0===t?void 0:t.id)===ec});e&&ef(e),el.replace(ep(null!=ea?ea:""))}},[ec,es,ep]),eg=async e=>{el.replace(ep(e),{scroll:!(null==Q?void 0:Q.hasMapAsSection)}),I("List"),M(!1),x([]);try{let t=await G({locationQuery:e});if((0,h.L)(m.gB.searchLocation,{search_location_value:e},{clearEcommerce:!0}),!t.success)return;em(t)}catch(e){g.cM.error("Failed to fetch stores",e)}},ef=e=>{if(et.current&&(I("Map"),"Point"===e.geometry.type)){var t,o,n,l,i;ed({map:et.current,coordinates:e.geometry.coordinates,properties:e.properties,id:e.id,isListItemClicked:!0}),(0,h.L)(m.gB.clickLocation,{location_city:null!==(l=(0,B.hw)(r,null===(t=e.properties)||void 0===t?void 0:t.address,null===(o=e.properties)||void 0===o?void 0:o.country))&&void 0!==l?l:"",location_name:null!==(i=null===(n=e.properties)||void 0===n?void 0:n.name)&&void 0!==i?i:""},{clearEcommerce:!0})}},eC=async e=>{let{lat:t,lng:o}=e;M(!1);try{let e=await $({latitude:t,longitude:o});em(e)}catch(e){g.cM.error("Failed to fetch stores by geocode",e)}},eb=()=>{if(ea){let e=w(ea);if(e){eC(e);return}eg(ea);return}"geolocation"in navigator&&Q.isStoreLocatorPhase2Enabled&&navigator.geolocation.getCurrentPosition(e=>{eC({lat:e.coords.latitude,lng:e.coords.longitude})},()=>{alert(X("StoreLocator.RequestLocationError"))})};(0,a.useEffect)(()=>{let e=setInterval(async()=>{var e,t;let o=await U(["",{}]);null===(t=et.current)||void 0===t||t.setStyle((null==o?void 0:null===(e=o.result)||void 0===e?void 0:e.vectorStyleUrl)||"")},36e5);return()=>{clearInterval(e),eo.current&&clearTimeout(eo.current)}},[]);let ew=async e=>{Q.isStoreLocatorPhase2Enabled&&(M(!1),eo.current&&clearTimeout(eo.current),eo.current=setTimeout(async()=>{x([]);let t="".concat(e.lat.toFixed(6),",").concat(e.lng.toFixed(6));el.replace(en.current(t),{scroll:!1});try{let t=await $({latitude:e.lat,longitude:e.lng});if(!t.success)return;em(t,!0)}catch(e){g.cM.error("Failed to fetch stores",e)}},500))};return(0,a.useEffect)(()=>{var e,t,o;eu&&!et.current&&ee.current&&(null==D?void 0:D.success)&&(et.current=new c.Map({container:ee.current,style:null===(e=D.result)||void 0===e?void 0:e.vectorStyleUrl,center:null===(t=W[Y])||void 0===t?void 0:t.center,zoom:null===(o=W[Y])||void 0===o?void 0:o.zoom,cooperativeGestures:null==Q?void 0:Q.hasMapAsSection}),et.current.on("load",()=>{et.current&&(T(et.current,r),F(et.current,r,ed,ew),eb())}))},[ed,Y,null==D?void 0:D.success]),(0,n.jsx)("div",{className:(0,f.cn)(null==C?void 0:C.mapContainer,(null==Q?void 0:Q.hasMapAsSection)&&(null==C?void 0:C.mapContainerInSection)),children:(0,n.jsxs)("div",{className:(0,f.cn)((null==Q?void 0:Q.hasMapAsSection)&&(null==C?void 0:C.mapContainerInSectionBanner)),children:[(0,n.jsx)(z,{selectedStore:A,openFilter:y,setOpenFilter:L,handleApplyFilter:()=>{I("List");let e={};Object.keys(N).forEach(t=>{var o;e[t]={...N[t],selected:!!(null===(o=N[t])||void 0===o?void 0:o.tempSelected)}});let t=b(S,e,"selected");O(et.current,t),j(e),L(!1),eh(e),(0,h.L)(m.gB.filterProductLocation,{filtered_products_name:Object.entries(e).filter(e=>{let[t,o]=e;return!0===o.selected}).map(e=>{let[t,o]=e;return t}).join(",")},{clearEcommerce:!0})},handleClearFilter:()=>{I("List");let e={};Object.keys(N).forEach(t=>{e[t]={...N[t],selected:!1,tempSelected:!1}});let t=b(S,e,"selected");O(et.current,t),j(e),L(!1),eh(e)},filterItems:N,setFilterItems:j,isLoading:V||J,isBannerVisible:k,stores:S,handleSearch:eg,handleRequestLocation:eb,handleStoreSelected:ef,textSection:o,selectedTab:E}),(0,n.jsx)("div",{role:"region","aria-label":"Store Locator Map",ref:ee,className:(0,f.cn)(null==C?void 0:C.map,"Map"!==E&&(null==C?void 0:C.mobileHidden),k&&(null==C?void 0:C.bannerMap),Q.hasMapAsSection&&(null==C?void 0:C.mapInSection)),children:(0,n.jsx)(K,{})}),!k&&(0,n.jsx)(P,{selectedTab:E,handleSelectTab:e=>{I(e.currentTarget.name),window.scrollTo({top:document.body.scrollHeight,behavior:"smooth"})}})]})})}},12687:function(e,t,o){"use strict";function n(){if(window.WebGLRenderingContext){let e=document.createElement("canvas");try{let t=e.getContext("webgl2")||e.getContext("webgl");
1if("function"==typeof(null==t?void 0:t.getParameter))return!0}catch(e){}}return!1}o.d(t,{B:function(){return n}})},20252:function(e,t,o){"use strict";o.d(t,{p:function(){return i},q:function(){return r}});var n=o(76608),l=o(7803);let i=(0,l.createContext)({mode:"vertical",rootNode:null,topLevel:!0,variant:"default",depth:1,onSelect:()=>{},indentAmount:1,collapsed:!1}),r=e=>{let{children:t,indentAmount:o,mode:r,rootNode:a,topLevel:c,variant:s,depth:d,collapsed:u=!1,onSelect:v=()=>{}}=e,p=(0,l.useMemo)(()=>({mode:r,rootNode:a,topLevel:c,variant:s,depth:d,collapsed:u,onSelect:v,indentAmount:"number"==typeof o?o:2}),[o,d,r,v,a,c,s,u]);return(0,n.jsx)(i.Provider,{value:p,children:t})}},35008:function(){}}]);
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.