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HjW,OAAOqW,oBAAoB,SAAUJ,EAAa,KAGnDjR,CAAiB,C","sources":["webpack:///./assets/src/components/storelocator/FindInStoreItem.tsx","webpack:///./assets/src/components/storelocator/StoreCard.tsx","webpack:///./assets/src/components/storelocator/StoreLocator.tsx","webpack:///./assets/src/components/storelocator/StoreLocatorContainer.tsx","webpack:///./assets/src/components/storelocator/StoreLocatorApp.tsx","webpack:///./assets/src/utils/storelocator.ts","webpack:///./assets/src/utils/functions.ts","webpack:///./assets/src/utils/maputils.ts","webpack:///./assets/src/components/storelocator/StoreLocatorMap.tsx","webpack:///./assets/src/components/storelocator/StoreLocatorResults.tsx","webpack:///./assets/src/components/common/Switch.tsx","webpack:///./assets/src/components/storelocator/StoreLocatorFilters.tsx","webpack:///./assets/src/components/storelocator/StoreLocatorGeo.tsx","webpack:///./assets/src/components/storelocator/StoreLocatorSearch.tsx","webpack:///./assets/src/components/storelocator/scripts/GoogleMapScript.tsx","webpack:///./assets/src/utils/arrayUtils.ts","webpack:///./assets/src/state/features/storelocator.selectors.ts","webpack:///./assets/src/ui/loading/Loading.tsx","webpack:///./assets/src/ui/modal/ModalDialog.tsx","webpack:///./assets/src/utils/useBreakpoint.ts"],"sourcesContent":["import React, { useEffect } from 'react';\nimport { withTranslation } from 'react-i18next';\nimport classnames from 'classnames';\nconst FindInStoreItem = (props) => {\n var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;\n const { t } = props;\n let listOfSizes = (_a = props.item.variationAttributes) === null || _a === void 0 ? void 0 : _a.filter((attr) => attr.id === 'size')[0].values;\n const changeSize = (e) => {\n let pid = e.target.value;\n props.handleSizeChanged(pid);\n };\n useEffect(() => {\n // let listOfSizes = props.item.variationAttributes?.filter((attr: any) => attr.id === 'size')[0].values;\n if (listOfSizes.length === 1) {\n let e = { target: { value: listOfSizes[0].pid } };\n changeSize(e);\n }\n }, []);\n return (React.createElement(\"div\", { className: \"find-in-store-item\" },\n React.createElement(\"div\", { className: classnames('bag-product-card', 'from-minicart') },\n React.createElement(\"a\", { href: ((_b = props.item) === null || _b === void 0 ? void 0 : _b.productUrl) || '', tabIndex: -1, \"aria-hidden\": \"true\" },\n React.createElement(\"img\", { alt: ((_c = props.item) === null || _c === void 0 ? void 0 : _c.productName) || '', src: ((_g = (_f = (_e = (_d = props.item) === null || _d === void 0 ? void 0 : _d.images) === null || _e === void 0 ? void 0 : _e.generic[0]) === null || _f === void 0 ? void 0 : _f.url) === null || _g === void 0 ? void 0 : _g.replace(/\\d+/, \"420\")) || '', \"data-sizes\": \"auto\", className: \"product-image\", width: \"90\", height: \"120\", onError: ({ currentTarget }) => {\n currentTarget.onerror = null;\n currentTarget.src = `${window.staticImagesRoot}/notfound.png;`;\n } })),\n React.createElement(\"div\", { className: \"product-info\" },\n React.createElement(\"a\", { href: ((_h = props.item) === null || _h === void 0 ? void 0 : _h.productUrl) || '' },\n React.createElement(\"h3\", { className: 'product-name' }, props.item.productName)),\n React.createElement(\"p\", { className: 'product-price' },\n props.item.price.list && (React.createElement(React.Fragment, null,\n React.createElement(\"span\", { className: 'price--full' }, (_j = props.item.price.list) === null || _j === void 0 ? void 0 : _j.formatted))),\n React.createElement(\"span\", { className: 'price--current' }, (_k = props.item.price.sales) === null || _k === void 0 ? void 0 : _k.formatted)),\n React.createElement(\"p\", { className: 'product-color' },\n React.createElement(\"span\", null, (_m = (_l = props.item.variationAttributes) === null || _l === void 0 ? void 0 : _l.filter((attr) => attr.id === 'color')[0]) === null || _m === void 0 ? void 0 :\n _m.displayName,\n \":\"),\n \" \", (_q = (_p = (_o = props.item.variationAttributes) === null || _o === void 0 ? void 0 : _o.filter(attr => attr.id === 'color')[0].values) === null || _p === void 0 ? void 0 : _p.filter(value => value.selected)[0]) === null || _q === void 0 ? void 0 :\n _q.displayValue))),\n React.createElement(\"div\", { className: \"field-row size-select\" },\n React.createElement(\"div\", { className: \"form-group animated-label\" },\n React.createElement(\"div\", { className: \"form-select\" },\n React.createElement(\"select\", { className: 'form-control', defaultValue: '', name: \"size\", id: \"size\", onChange: (e => changeSize(e)) },\n listOfSizes.length > 1 && (React.createElement(\"option\", { disabled: true, hidden: true, value: \"\" }, t('product.selectsize.cta'))),\n listOfSizes.map((size, i) => (React.createElement(\"option\", { key: i, value: size.pid }, size.displayValue)))))))));\n};\nexport default withTranslation()(FindInStoreItem);\n","import React, { useState } from 'react';\nimport { withTranslation } from 'react-i18next';\nimport Icon from '@components/common/Icon';\nimport useBreakpoint from '@utils/useBreakpoint';\nimport StoreLocatorMap from './StoreLocatorMap';\nconst StoreLocatorResults = (props) => {\n const { t, store, detail } = props;\n const [showMore, setShowMore] = useState(false);\n const days = [{ id: \"mon\", name: \"monday\" }, { id: \"tue\", name: \"tuesday\" }, { id: \"wed\", name: \"wednesday\" }, { id: \"thu\", name: \"thursday\" }, { id: \"fri\", name: \"friday\" }, { id: \"sat\", name: \"saturday\" }, { id: \"sun\", name: \"sunday\" }];\n const currentBreakpoint = useBreakpoint();\n let isMobile = currentBreakpoint < window.mqObj.md;\n const getDirections = (store) => {\n return `https://www.google.com/maps/dir/?api=1&destination=${store.latitude},${store.longitude}`;\n };\n const hoursTable = (days) => {\n return (React.createElement(\"div\", { className: \"store-hours\" }, days.map((day, i) => (React.createElement(\"div\", { key: i, className: \"day-row\" }, store.hours[`${day.id}Start`] && store.hours[`${day.id}End`] && (React.createElement(React.Fragment, null,\n React.createElement(\"p\", null, t(`globals.week.day.${day.name}`)),\n React.createElement(\"p\", null,\n store.hours[`${day.id}Start`],\n \" - \",\n store.hours[`${day.id}End`]))))))));\n };\n const renderStockLabel = (store) => {\n var _a;\n let quantity = (_a = store.availableVariants.find((variant) => variant.pid === window.findInStoreProductSelectedSize)) === null || _a === void 0 ? void 0 : _a.quantity;\n if (window.isUniqueSize === 'true' ? quantity < window.uniqueThreshold : quantity < window.multiThreshold) {\n return (React.createElement(\"p\", { className: 'store-stock-label limited' }, t('storelocator.label.storelocator.findinstore.product.limitedavailability')));\n }\n };\n return (React.createElement(\"div\", { className: `search-store__resultslist__menuitem ${detail ? 'no-border' : ''}` },\n React.createElement(\"div\", { className: \"store-type\" },\n React.createElement(\"img\", { src: store.storeType === 'Etro Boutique' ? `${window.staticImagesRoot}/mapmarker.svg` : `${window.staticImagesRoot}/mapmarker-outlet.svg`, alt: \"pin\" }),\n React.createElement(\"p\", { className: \"store-type__label\" }, store.storeType)),\n detail ? (React.createElement(\"h1\", { className: \"store-name\" }, store.name)) : (React.createElement(\"p\", { className: \"store-name\" }, store.name)),\n React.createElement(\"p\", { className: \"store-address\" }, store.address),\n store.phone && React.createElement(\"a\", { href: `tel:${store.phone}`, className: \"store-phone\" }, store.phone),\n store.email && React.createElement(\"a\", { href: `mailto:${store.email}`, className: \"store-email\" }, store.email),\n detail && store.communications && (React.createElement(\"p\", { className: 'store-comunications' }, store.communications)),\n window.findInStoreProductSelectedSize && renderStockLabel(store),\n detail && isMobile && (React.createElement(StoreLocatorMap, { localMap: true, stores: [store], currentStore: store })),\n React.createElement(\"div\", { className: \"cta-in-card-wrapper\" }, detail ? (React.createElement(React.Fragment, null,\n store.whatsappPhone && (React.createElement(\"a\", { href: `https://api.whatsapp.com/send?phone=${store.whatsappPhone}`, target: '_blank', className: \"cta-secondary cta-in-card\", rel: \"noreferrer\" },\n React.createElement(\"span\", null, t('storelocator.whatsapp.button')),\n React.createElement(Icon, { name: 'whatsapp' }))),\n store.calendlyCode && (\n //@ts-ignore\n React.createElement(\"button\", { type: 'button', onClick: () => { Calendly.initPopupWidget({ url: `${store.calendlyCode}?hide_gdpr_banner=1` }); }, className: \"cta-secondary cta-in-card\" },\n React.createElement(\"span\", null, t('storelocator.book.an.appointment')),\n React.createElement(Icon, { name: 'pin' }))),\n React.createElement(\"a\", { href: getDirections(store), target: '_blank', className: \"cta-primary cta-in-card\", rel: \"noreferrer\" },\n React.createElement(\"span\", null, t('storelocator.store.get.directions')),\n React.createElement(Icon, { name: 'chevron' })))) : (React.createElement(React.Fragment, null,\n React.createElement(\"a\", { href: store.fullURL, className: \"cta-primary cta-in-card\" },\n React.createElement(\"span\", null, t('storelocator.store.link')),\n React.createElement(Icon, { name: 'chevron' }))))),\n detail ? (React.createElement(React.Fragment, null,\n React.createElement(\"p\", null, t('storelocator.opening.hours')),\n hoursTable(days),\n store.categories.length > 0 && (React.createElement(\"div\", { className: \"collections-section\" },\n React.createElement(\"p\", null, t('storelocator.store.categories')),\n React.createElement(\"div\", { className: \"collections\" }, store.categories.map((category, i) => (React.createElement(\"a\", { key: i, href: category.url, className: \"collection\" }, category.label)))))))) : (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"showmore\" },\n React.createElement(\"a\", { href: getDirections(store), target: \"_blank\", className: \"cta-inline underlined\", rel: \"noreferrer\" }, t('storelocator.store.get.directions')),\n Object.keys(store.hours).length > 0 && (React.createElement(\"button\", { className: \"cta-inline showmore--toggle\", onClick: () => setShowMore(!showMore) }, showMore ? (React.createElement(React.Fragment, null,\n React.createElement(\"span\", null, t('storelocator.label.storelocator.findinstore.accordion.viewless')),\n React.createElement(Icon, { name: \"minus\" }))) : (React.createElement(React.Fragment, null,\n React.createElement(\"span\", null, t('storelocator.label.storelocator.findinstore.accordion.viewmore')),\n React.createElement(Icon, { name: \"plus\" })))))),\n showMore && hoursTable(days)))));\n};\nexport default withTranslation()(StoreLocatorResults);\n","// import StoreDetails from '@components/storelocator/StoreDetails';\nimport StoreLocatorMap from '@components/storelocator/StoreLocatorMap';\nimport StoreLocatorSearch from '@components/storelocator/StoreLocatorSearch';\nimport { StoreLocatorActionTypes } from '@state/features/common.types';\nimport { currentStoreSelector } from '@state/features/storelocator.selectors';\nimport React, { useEffect, useState } from 'react';\nimport useBreakpoint from '@utils/useBreakpoint';\nimport { withTranslation } from 'react-i18next';\nimport { useDispatch, useSelector } from 'react-redux';\nimport Icon from '@components/common/Icon';\nimport api from '@utils/api';\nimport StoreCard from './StoreCard';\nimport Loading from '@ui/loading/Loading';\nimport FindInStoreItem from './FindInStoreItem';\nimport customEventBus from '../../scripts/libs/eventBus';\n// const COLLECTIONS = ['men', 'women', 'children'];\n// const COLLECTIONSCODES = ['01', '02', '03'];\nconst StoreLocator = (props) => {\n const { t } = props;\n const dispatch = useDispatch();\n const { stores, storesInMap, filters, zoom, center, updateBounds, currentLocation, address, openClusterDetail } = useSelector((state) => state.storelocator);\n const currentStore = useSelector(currentStoreSelector);\n // const [searchedCity, setSearchedCity] = useState<string>();\n const [filteredStores, setFilteredStores] = useState(stores);\n const [storeDetailData, setStoreDetailData] = useState();\n const [findInStoreProductObj, setFindInStoreProductObj] = useState(null);\n const [findInStoreProductSelectedSize, setFindInStoreProductSelectedSize] = useState(null);\n const [searchedCountry, setSearchedCountry] = useState();\n const [showFindInStore, setShowFindInStore] = useState(false);\n customEventBus.on('modal:show', (data) => {\n if (data.modalId == 'modal-find-in-store') {\n setShowFindInStore(true);\n }\n });\n const currentBreakpoint = useBreakpoint();\n let isMobile = currentBreakpoint < window.mqObj.md; // for findinstore modal is ever mobile version\n useEffect(() => {\n if (currentStore) {\n // console.log('currentStore is', currentStore); \n }\n }, [currentStore]);\n useEffect(() => {\n if (props.currentcountrycode && props.currentcountry) {\n setSearchedCountry(props.currentcountrycode);\n }\n }, []);\n useEffect(() => {\n if (props.findinstore && props.findinstoreproduct) {\n api.getProduct(props.findinstoreproduct).then(data => {\n setFindInStoreProductObj(data);\n });\n dispatch({\n type: StoreLocatorActionTypes.FETCH_STORES_WITH_AVAILABILITY,\n payload: { pid: props.findinstoreproduct },\n });\n }\n else {\n dispatch({\n type: StoreLocatorActionTypes.FETCH_STORES,\n payload: {},\n });\n }\n }, []);\n useEffect(() => {\n if (props.isdetail && props.storeid) {\n api.searchStoreDetails(props.storeid).then((store) => {\n setStoreDetailData(store);\n });\n }\n }, []);\n useEffect(() => {\n if (storesInMap) {\n let storeFiltered = [...storesInMap];\n // logica per filtrare una country se ho cercato la specifica country\n // if (props.findinstore) {\n // if (searchedCountry) {\n // storeFiltered = storesInMap.filter((store) => store.country === searchedCountry);\n // } else {\n // setSearchedCountry(null);\n // }\n // }\n if (searchedCountry) {\n storeFiltered.sort((a, b) => Number(b.country === searchedCountry) - Number(a.country === searchedCountry));\n }\n if (window.location.search) {\n const querystring = JSON.parse('{\"' + window.location.search.replace(/&/g, '\",\"').replace(/=/g, '\":\"') + '\"}', function (key, value) { return key === '' ? value : decodeURIComponent(value).replace(/\\+/g, ' '); });\n // typeofstore FromQuery\n if (querystring.typeofstore) {\n const types = querystring.typeofstore.split(',');\n // -- OR\n let storesFilteredConcat = [];\n for (const type of types) {\n if (type != '')\n storesFilteredConcat = storesFilteredConcat.concat(storesInMap.filter((store) => store.storeType === type));\n }\n storeFiltered = storesFilteredConcat;\n // -- AND\n // let filtered = storeFiltered;\n // for (const type of types) {\n // if (type != '') filtered = filtered.filter((store) => store.storeType === type);\n // }\n // storeFiltered = filtered;\n }\n // collections FromQuery\n if (querystring.collections) {\n const collections = querystring.collections.split(',');\n // -- OR\n let storesFilteredConcat = [];\n for (const collection of collections) {\n if (collection != '')\n storesFilteredConcat = storesFilteredConcat.concat(storesInMap.filter((store) => store.categories.some(cat => cat.label === collection)));\n }\n storeFiltered = storesFilteredConcat;\n // -- AND\n // let filtered = storeFiltered;\n // for (const collection of collections) {\n // if (collection != '') filtered = filtered.filter((store) => store.categories.some(cat => cat.label === collection));\n // }\n // storeFiltered = filtered;\n }\n // services FromQuery\n if (querystring.services) {\n const services = querystring.services.split(',');\n // -- OR\n let storesFilteredConcat = [];\n for (const service of services) {\n if (service != '')\n storesFilteredConcat = storesFilteredConcat.concat(storesInMap.filter((store) => eval('store.' + service) === 'true' || eval('store.' + service) === 'yes'));\n }\n storeFiltered = storesFilteredConcat;\n // -- AND\n // let filtered = storeFiltered;\n // for (const service of services) {\n // if (service != '') filtered = filtered.filter((store) => eval('store.' + service) === 'true' || eval('store.' + service) === 'yes');\n // }\n // storeFiltered = filtered;\n }\n }\n setFilteredStores(storeFiltered);\n }\n }, [storesInMap, searchedCountry]);\n const sizeChanged = (pid) => {\n dispatch({ type: StoreLocatorActionTypes.UPDATE_FILTERED_STORES, payload: { updatePid: { pid: pid } } });\n setFindInStoreProductSelectedSize(pid);\n window.findInStoreProductSelectedSize = pid;\n };\n if (props.findinstore && !showFindInStore) {\n return (React.createElement(React.Fragment, null));\n }\n if (props.isdetail) {\n return (React.createElement(React.Fragment, null, storeDetailData && (React.createElement(\"div\", { className: \"store-locator\" },\n React.createElement(\"div\", { className: \"left-bar\" },\n React.createElement(\"div\", { className: \"title-section\" },\n React.createElement(\"a\", { className: \"back-detail\", href: `${props.storelocatorlink}?location=${storeDetailData.latitude},${storeDetailData.longitude},${12}` },\n React.createElement(Icon, { name: 'chevron', large: 'm' }),\n React.createElement(\"span\", null, t('storelocator.back.to.store.locator')))),\n React.createElement(\"div\", { className: \"body-section\" },\n React.createElement(StoreCard, { store: storeDetailData, detail: true }))),\n !isMobile && (React.createElement(\"div\", { className: \"map-section\" },\n React.createElement(StoreLocatorMap, Object.assign({}, props, { localMap: true, stores: [storeDetailData], currentStore: storeDetailData }))))))));\n }\n if (props.findinstore) {\n if (!findInStoreProductObj) {\n return (React.createElement(Loading, { lightMode: true }));\n }\n return (React.createElement(React.Fragment, null, filteredStores && (React.createElement(\"div\", { className: \"store-locator find-in-store\" },\n React.createElement(\"div\", { className: \"left-bar\" },\n findInStoreProductObj && (React.createElement(FindInStoreItem, { item: findInStoreProductObj, handleSizeChanged: (pid) => sizeChanged(pid) })),\n findInStoreProductSelectedSize && (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"title-section\" },\n React.createElement(\"h1\", { className: \"store-page-title\" }, t('storelocator.label.storelocator.findinstore.select.location'))),\n React.createElement(\"div\", { className: \"body-section\" },\n React.createElement(StoreLocatorSearch, { showMap: true, filteredStores: filteredStores, currentcountry: props.currentcountry, findinstore: true, currentCountry: { countryCode: props.currentcountrycode, countryName: props.currentcountry }, searchedCountry: (e) => {\n setSearchedCountry(e);\n } })))))))));\n }\n return (React.createElement(React.Fragment, null, filteredStores && (React.createElement(\"div\", { className: \"store-locator\" },\n React.createElement(\"div\", { className: \"left-bar\" },\n React.createElement(\"div\", { className: \"title-section\" },\n React.createElement(\"h1\", { className: \"store-page-title\" }, t('globals.storelocator.title'))),\n React.createElement(\"div\", { className: \"body-section\" }, false ? (React.createElement(Loading, { lightMode: true })) : (React.createElement(StoreLocatorSearch, { showMap: isMobile, filteredStores: filteredStores, currentcountry: props.currentcountry, searchedCountry: (e) => setSearchedCountry(e) })))),\n React.createElement(\"div\", { className: \"map-section\" },\n React.createElement(StoreLocatorMap, Object.assign({}, props, { zoom: zoom, center: center, updatedMapBounds: updateBounds, updateFromLocation: currentLocation, stores: stores, filteredStores: filteredStores, currentStore: currentStore, hideMap: isMobile, disableFunctionality: isMobile })))))));\n};\nexport default withTranslation()(StoreLocator);\n","import StoreLocator from '@components/storelocator/StoreLocator';\nimport GoogleMapScript from './scripts/GoogleMapScript';\nimport React from 'react';\nconst StoreLocatorContainer = (props) => {\n return (React.createElement(GoogleMapScript, null,\n React.createElement(StoreLocator, Object.assign({}, props))));\n};\nexport default StoreLocatorContainer;\n","import StoreLocatorContainer from '@components/storelocator/StoreLocatorContainer';\nimport { configureStoreLocatorStore } from '@state';\nimport { initQuerySync } from '@utils/storelocator';\nimport React from 'react';\nimport { Provider } from 'react-redux';\n// const store = configureStoreLocatorStore();\n// if (location.pathname.split('/').length < 6 && !props.findinstore) {\n// initQuerySync(store);\n// }\nconst StoreLocatorApp = (props) => {\n const store = configureStoreLocatorStore();\n if (location.pathname.split('/').length < 6 && !props.findinstore) {\n initQuerySync(store);\n }\n return (React.createElement(Provider, { store: store },\n React.createElement(StoreLocatorContainer, Object.assign({}, props))));\n};\nexport default StoreLocatorApp;\n","import ReduxQuerySync from 'redux-query-sync';\nexport const initQuerySync = (store) => {\n ReduxQuerySync({\n store,\n params: {\n address: {\n selector: (state) => { var _a; return (_a = state.storelocator) === null || _a === void 0 ? void 0 : _a.address; },\n action: (value) => ({ type: 'storelocator/setAddress', payload: value }),\n },\n location: {\n selector: (state) => {\n var _a, _b, _c, _d;\n if (((_a = state.storelocator) === null || _a === void 0 ? void 0 : _a.center) && ((_b = state.storelocator) === null || _b === void 0 ? void 0 : _b.zoom)) {\n return `${(_c = state.storelocator.center) === null || _c === void 0 ? void 0 : _c.lat},${(_d = state.storelocator.center) === null || _d === void 0 ? void 0 : _d.lng},${state.storelocator.zoom}`;\n }\n else {\n return '';\n }\n },\n action: (value) => ({ type: 'storelocator/updateLocationFromQuery', payload: value }),\n defaultValue: '',\n },\n storeId: {\n selector: (state) => { var _a; return (_a = state.storelocator) === null || _a === void 0 ? void 0 : _a.currentStoreId; },\n action: (value) => ({ type: 'storelocator/setCurrentStore', payload: value }),\n },\n typeofstore: {\n selector: (state) => {\n var _a, _b;\n return ((_a = state.storelocator) === null || _a === void 0 ? void 0 : _a.filters.typeofstores.length) > 0 ? (_b = state.storelocator) === null || _b === void 0 ? void 0 : _b.filters.typeofstores.reduce((result, type) => `${result},${type}`, '') : '';\n },\n action: (value) => ({ type: 'storelocator/updateTypeOfStoresFromQuery', payload: value }),\n defaultValue: '',\n },\n collections: {\n selector: (state) => {\n var _a, _b;\n return ((_a = state.storelocator) === null || _a === void 0 ? void 0 : _a.filters.collections.length) > 0 ? (_b = state.storelocator) === null || _b === void 0 ? void 0 : _b.filters.collections.reduce((result, collection) => `${result},${collection}`, '') : '';\n },\n action: (value) => ({ type: 'storelocator/updateCollectionsFromQuery', payload: value }),\n defaultValue: '',\n },\n services: {\n selector: (state) => {\n var _a, _b;\n return ((_a = state.storelocator) === null || _a === void 0 ? void 0 : _a.filters.services.length) > 0 ? (_b = state.storelocator) === null || _b === void 0 ? void 0 : _b.filters.services.reduce((result, service) => `${result},${service}`, '') : '';\n },\n action: (value) => ({ type: 'storelocator/updateServiceFromQuery', payload: value }),\n defaultValue: '',\n },\n },\n // Initially set the store's state to the current location.\n initialTruth: 'location',\n });\n};\n","export const debounce = (callback, waitFor) => {\n let timeout;\n return (...args) => {\n let result;\n clearTimeout(timeout);\n timeout = setTimeout(() => {\n result = callback(...args);\n }, waitFor);\n return result;\n };\n};\n","const maputils = {\n style: [\n {\n elementType: 'geometry',\n },\n {\n elementType: 'labels.icon',\n stylers: [\n {\n visibility: 'off',\n },\n ],\n },\n {\n elementType: 'labels.text.fill',\n },\n {\n elementType: 'labels.text.stroke',\n },\n {\n featureType: 'administrative.land_parcel',\n elementType: 'labels',\n stylers: [\n {\n visibility: 'on',\n },\n ],\n },\n {\n featureType: 'administrative.land_parcel',\n elementType: 'labels.text.fill',\n },\n {\n featureType: 'poi',\n elementType: 'geometry',\n },\n {\n featureType: 'poi',\n elementType: 'labels.text',\n stylers: [\n {\n visibility: 'off',\n },\n ],\n },\n {\n featureType: 'poi',\n elementType: 'labels.text.fill',\n },\n {\n featureType: 'poi.park',\n elementType: 'geometry',\n },\n {\n featureType: 'poi.park',\n elementType: 'labels.text.fill',\n },\n {\n featureType: 'road',\n elementType: 'geometry',\n },\n {\n featureType: 'road.arterial',\n elementType: 'labels.text.fill',\n },\n {\n featureType: 'road.highway',\n elementType: 'geometry',\n },\n {\n featureType: 'road.highway',\n elementType: 'labels.text.fill',\n },\n {\n featureType: 'road.local',\n elementType: 'labels',\n stylers: [\n {\n visibility: 'off',\n },\n ],\n },\n {\n featureType: 'road.local',\n elementType: 'labels.text.fill',\n },\n {\n featureType: 'transit.line',\n elementType: 'geometry',\n },\n {\n featureType: 'transit.station',\n elementType: 'geometry',\n },\n {\n featureType: 'water',\n elementType: 'geometry',\n },\n {\n featureType: 'water',\n elementType: 'labels.text.fill',\n },\n ],\n};\nexport default maputils;\n","import { GoogleMap, Marker, MarkerClusterer } from '@react-google-maps/api';\nimport { StoreLocatorActionTypes } from '@state/features/common.types';\nimport { setCenter, setCurrentStore, setOpenClusterDetail, setZoom } from '@state/features/storelocator.slice';\nimport { debounce } from '@utils/functions';\nimport maputils from '@utils/maputils';\nimport React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport { useDispatch } from 'react-redux';\nimport Geocode from 'react-geocode';\nconst StoreLocatorMap = (props) => {\n // TODO needs some performance improvements, too many re-renders causing map lag\n const reRendersCount = useRef(0);\n reRendersCount.current++;\n const dispatch = useDispatch();\n let clustererInstance;\n const { stores, filteredStores, currentStore, zoom, center, updatedMapBounds, updateFromLocation } = props;\n const initialZoom = useRef(zoom).current;\n const initialCenter = useRef(center).current;\n const [map, setMap] = useState();\n useEffect(() => {\n clustererInstance && clustererInstance.repaint();\n }, [filteredStores]);\n useEffect(() => {\n if (updatedMapBounds && map) {\n const currentBounds = map.getBounds();\n if (currentBounds && updatedMapBounds && !currentBounds.equals(updatedMapBounds)) {\n // console.info('mapBounds updated', updatedMapBounds);\n map.fitBounds(updatedMapBounds);\n }\n }\n }, [updatedMapBounds, map]);\n useEffect(() => {\n if (!map) {\n return;\n }\n if (updateFromLocation) {\n console.info('setting current location on map');\n map.setCenter(updateFromLocation);\n }\n else {\n fitToCountry();\n }\n //default is 12\n }, [updateFromLocation, map]);\n const fitToStores = () => {\n var _a;\n console.info('eseguo fitToStores');\n let bounds = new google.maps.LatLngBounds();\n (_a = (filteredStores ? filteredStores : stores)) === null || _a === void 0 ? void 0 : _a.forEach((store) => {\n bounds.extend({ lat: store.latitude, lng: store.longitude });\n });\n map.fitBounds(bounds);\n };\n const fitToCountry = () => {\n let currentcountry = props.currentcountry;\n console.info('eseguo fitToCountry con paese', currentcountry);\n Geocode.fromAddress(currentcountry).then((response) => {\n const { lat, lng } = response.results[0].geometry.location;\n console.log(currentcountry, 'have long lat of -> ', lat, lng);\n map.setCenter({ lat: lat, lng: lng });\n map.setZoom(5);\n });\n };\n useEffect(() => {\n // for nearbystores\n if (map && props.localMap && !currentStore) {\n fitToStores();\n }\n }, [map, props.localMap]);\n useEffect(() => {\n if (map) {\n // se non ho zoom e center sono appena atterrato, calcolo fitToStores\n if ((filteredStores === null || filteredStores === void 0 ? void 0 : filteredStores.length) && (!zoom || !center)) {\n if (props.findinstore) {\n fitToCountry();\n }\n else {\n fitToStores();\n }\n }\n }\n }, [map, filteredStores]);\n useEffect(() => {\n if (map && currentStore) {\n console.info('[StoreLocatorMap] updated currentStore', currentStore);\n map.setCenter(new google.maps.LatLng(currentStore.latitude, currentStore.longitude));\n map.setZoom(15);\n }\n }, [map, currentStore]);\n const markerStyle = useMemo(() => [\n {\n anchorText: [-3, 0],\n height: 50,\n width: 30,\n color: \"white\",\n url: `${window.staticImagesRoot}/mapcluster.svg`,\n },\n ], []);\n const delayedZoomChanged = useCallback(debounce(() => {\n if (map) {\n !props.localMap && dispatch(setZoom(map.getZoom()));\n }\n }, 500), [map]);\n const delayedCenterChanged = useCallback(debounce(() => {\n if (map) {\n !props.localMap && dispatch(setCenter(map.getCenter().toJSON()));\n }\n }, 500), [map]);\n const delayedBoundsChanged = useCallback(debounce(() => {\n if (map) {\n const bounds = map.getBounds();\n bounds && !props.localMap && dispatch({ type: StoreLocatorActionTypes.UPDATE_FILTERED_STORES, payload: { updateBound: { newBounds: bounds.toJSON() } } });\n }\n }, 500), [map]);\n const handleClusterClick = (cluster) => {\n // console.info('filteredStores: ', filteredStores);\n // console.info('cluster: ', cluster);\n if (cluster.markerClusterer.clusters.length == 1 && filteredStores.length == cluster.markerClusterer.clusters[0].markers.length) {\n // console.info('Store Locator - DepARTMENT store corners overlay');\n dispatch(setOpenClusterDetail(true));\n dispatch(setCurrentStore(undefined));\n }\n };\n return ((stores === null || stores === void 0 ? void 0 : stores.length) > 0 && (React.createElement(\"div\", { className: `store-locator__map ${props.hideMap ? 'inactive-map' : ''}` },\n React.createElement(GoogleMap, { mapContainerClassName: 'google-map', zoom: initialZoom, center: initialCenter, onLoad: (map) => {\n // console.info('map loaded', map);\n setMap(map);\n }, onZoomChanged: !props.disableFunctionality && delayedZoomChanged, onCenterChanged: !props.disableFunctionality && delayedCenterChanged, onBoundsChanged: !props.disableFunctionality && delayedBoundsChanged, options: {\n streetViewControl: false,\n fullscreenControl: false,\n mapTypeControl: false,\n minZoom: 5,\n styles: maputils.style,\n } },\n React.createElement(MarkerClusterer, { averageCenter: true, ignoreHidden: true, styles: markerStyle, onClick: handleClusterClick }, (clusterer) => {\n clustererInstance = clusterer;\n return stores\n .map((store, i) => {\n return React.createElement(Marker, { key: i, opacity: 1, clusterer: clusterer, position: { lat: store.latitude, lng: store.longitude }, visible: filteredStores === null || filteredStores === void 0 ? void 0 : filteredStores.includes(store), onClick: () => {\n dispatch(setCurrentStore(store.ID));\n }, icon: store.storeType === 'Etro Boutique' ? `${window.staticImagesRoot}/mapmarker.svg` : `${window.staticImagesRoot}/mapmarker-outlet.svg` });\n });\n })))));\n};\nexport default StoreLocatorMap;\n","import React, { useRef } from 'react';\nimport { withTranslation } from 'react-i18next';\nimport { useDispatch, useSelector } from 'react-redux';\nimport StoreCard from \"./StoreCard\";\nconst COLLECTIONS = ['men', 'women', 'children'];\nconst COLLECTIONSCODES = ['01', '02', '03'];\nconst StoreLocatorResults = (props) => {\n const { t, filteredStores } = props;\n const dispatch = useDispatch();\n const results = useRef();\n const { baseUrl, address } = useSelector((state) => state.storelocator);\n // const printCollections = (collections: string) => {\n // const list = collections.split(' ');\n // const listnames = list.map((el) => {\n // if (COLLECTIONSCODES.indexOf(el) != -1) {\n // return t(`storelocator.${COLLECTIONS[COLLECTIONSCODES.indexOf(el)]}`);\n // } else {\n // // fallback\n // return el;\n // }\n // });\n // return listnames.join(' ');\n // };\n // }\n const getDirections = (store) => {\n return `https://www.google.com/maps/dir/?api=1&destination=${store.latitude},${store.longitude}`;\n };\n return (React.createElement(\"div\", { ref: results, className: \"search-store__resultslist\", id: \"resultsOptions\" },\n React.createElement(\"ul\", null, filteredStores.map((store, i) => (React.createElement(\"li\", { key: i },\n React.createElement(StoreCard, { store: store })))))));\n};\nexport default withTranslation()(StoreLocatorResults);\n","import React, { useState } from 'react';\nconst Switch = (props) => {\n let { label, onChange, disabled } = props;\n const [status, setStatus] = useState(props.initialValue);\n const switchChange = () => {\n onChange();\n setStatus(!status);\n };\n return (React.createElement(\"div\", { className: `switch-component ${disabled ? 'disabled' : ''}` },\n React.createElement(\"button\", { className: `switch-toggle ${status ? 'active' : ''}`, onClick: () => switchChange() }),\n React.createElement(\"p\", null, label)));\n};\nexport default Switch;\n","import { toggleTypeOfStore, toggleCollection, toggleService } from '@state/features/storelocator.slice';\nimport React, { useMemo } from 'react';\nimport { withTranslation } from 'react-i18next';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { StoreLocatorActionTypes } from '@state/features/common.types';\nconst TYPEOFSTORES = ['Etro Boutique', 'Etro Outlet'];\nconst TYPEOFSTORESlabels = ['Etro Boutique', 'Etro Outlet'];\nconst COLLECTIONS = ['womencollection', 'mencollection', 'accessories', 'fragrances'];\nconst COLLECTIONSlabels = ['Women Collection', 'Men collection', 'Accessories', 'Fragrances'];\n// const COLLECTIONSCODES = ['01', '02', '03'];\n// const SERVICES = ['pickUpInStore', 'clickAndReserve', 'returnInStore', 'bookAnAppointment', 'exchangeInStore', 'clickFromStore'];\nconst SERVICES = ['hasWhatsApp', 'hasBookAnAppintment'];\nconst SERVICESlabels = ['WhatsApp', 'Book an appointment'];\nlet filterTYPEOFSTORES = [];\nlet filterCOLLECTIONS = [];\nlet filterSERVICES = [];\nlet openfilters;\nconst StoreLocatorFilters = (props) => {\n const { t, close } = props;\n const dispatch = useDispatch();\n const { filters } = useSelector((state) => state.storelocator);\n const isTypeOfStoreSelected = (typeofstoreItem) => {\n return filters.typeofstores.find((item) => item === typeofstoreItem);\n };\n const isCollectionSelected = (collectionItem) => {\n return filters.collections.find((item) => item === collectionItem);\n };\n const isServiceSelected = (serviceItem) => {\n return filters.services.find((item) => item === serviceItem);\n };\n useMemo(() => {\n openfilters = filters;\n }, []);\n return (\n // eslint-disable-next-line jsx-a11y/no-static-element-interactions\n React.createElement(\"div\", { className: \"storelocator-filters-details\", id: \"refineOptions\" },\n React.createElement(\"details\", Object.assign({ className: \"detail filter-typeofstores\" }, (openfilters.typeofstores.length > 0 && { open: true }), (openfilters.collections.length == 0 && openfilters.services.length == 0 && { open: true })),\n React.createElement(\"summary\", { className: \"detail-summary\" },\n React.createElement(\"h2\", null, t(`storelocator.filter.typeofstores`))),\n React.createElement(\"div\", { className: \"detail-content\" },\n React.createElement(\"div\", { className: \"storelocator-detail-filters\" }, TYPEOFSTORES.map((typeofstore, i) => (React.createElement(\"div\", { key: i, className: \"storelocator-detail-filter\" },\n React.createElement(\"input\", { type: \"checkbox\", \"aria-hidden\": \"true\", checked: isTypeOfStoreSelected(typeofstore) ? true : false, onChange: (e) => {\n dispatch(toggleTypeOfStore(typeofstore));\n if (!isTypeOfStoreSelected(typeofstore) && !filterTYPEOFSTORES.includes(typeofstore)) {\n filterTYPEOFSTORES = [...filterTYPEOFSTORES, typeofstore];\n }\n else {\n filterTYPEOFSTORES = filterTYPEOFSTORES.filter(item => item !== typeofstore);\n }\n dispatch({ type: StoreLocatorActionTypes.UPDATE_FILTERED_STORES, payload: { updateTypeOfStores: { type: filterTYPEOFSTORES } } });\n }, id: 'filter-typeofstore-' + i, value: typeofstore }),\n React.createElement(\"label\", { htmlFor: 'filter-typeofstore-' + i },\n React.createElement(\"span\", null, TYPEOFSTORESlabels[i])))))))),\n React.createElement(\"details\", Object.assign({ className: \"detail filter-collections\" }, (openfilters.collections.length > 0 && { open: true })),\n React.createElement(\"summary\", { className: \"detail-summary\" },\n React.createElement(\"h2\", null, t(`storelocator.filter.collections`))),\n React.createElement(\"div\", { className: \"detail-content\" },\n React.createElement(\"div\", { className: \"storelocator-detail-filters\" }, COLLECTIONS.map((collection, i) => (React.createElement(\"div\", { key: i, className: \"storelocator-detail-filter\" },\n React.createElement(\"input\", { type: \"checkbox\", \"aria-hidden\": \"true\", checked: isCollectionSelected(collection) ? true : false, onChange: () => {\n dispatch(toggleCollection(collection));\n if (!isTypeOfStoreSelected(collection) && !filterCOLLECTIONS.includes(collection)) {\n filterCOLLECTIONS = [...filterCOLLECTIONS, collection];\n }\n else {\n filterCOLLECTIONS = filterCOLLECTIONS.filter(item => item !== collection);\n }\n dispatch({ type: StoreLocatorActionTypes.UPDATE_FILTERED_STORES, payload: { updateCollections: { type: filterCOLLECTIONS } } });\n }, id: 'filter-collection-' + i, value: collection }),\n React.createElement(\"label\", { htmlFor: 'filter-collection-' + i },\n React.createElement(\"span\", null, COLLECTIONSlabels[i])))))))),\n React.createElement(\"details\", Object.assign({ className: \"detail filter-services\" }, (openfilters.services.length > 0 && { open: true })),\n React.createElement(\"summary\", { className: \"detail-summary\" },\n React.createElement(\"h2\", null, t(`storelocator.filter.services`))),\n React.createElement(\"div\", { className: \"detail-content\" },\n React.createElement(\"div\", { className: \"storelocator-detail-filters\" }, SERVICES.map((service, i) => (React.createElement(\"div\", { key: i, className: \"storelocator-detail-filter\" },\n React.createElement(\"input\", { type: \"checkbox\", \"aria-hidden\": \"true\", checked: isServiceSelected(service) ? true : false, onChange: () => {\n dispatch(toggleService(service));\n if (!isTypeOfStoreSelected(service) && !filterSERVICES.includes(service)) {\n filterSERVICES = [...filterSERVICES, service];\n }\n else {\n filterSERVICES = filterSERVICES.filter(item => item !== service);\n }\n dispatch({ type: StoreLocatorActionTypes.UPDATE_FILTERED_STORES, payload: { updateServices: { type: filterSERVICES } } });\n }, id: 'filter-service-' + i, value: service }),\n React.createElement(\"label\", { htmlFor: 'filter-service-' + i },\n React.createElement(\"span\", null, SERVICESlabels[i]))))))))));\n};\nexport default withTranslation()(StoreLocatorFilters);\n","import { StoreLocatorActionTypes } from '@state/features/common.types';\nimport React, { useEffect, useState } from 'react';\nimport { withTranslation } from 'react-i18next';\nimport { useDispatch } from 'react-redux';\nimport { setAddress } from '@state/features/storelocator.slice';\nimport Icon from '@components/common/Icon';\nimport Geocode from 'react-geocode';\nconst GeoOptions = {\n enableHighAccuracy: false,\n timeout: 8000,\n maximumAge: Infinity,\n};\nconst StoreLocatorGeo = (props) => {\n const { t } = props;\n const dispatch = useDispatch();\n const [showGeo, setShowGeo] = useState(true);\n Geocode.setApiKey(window.MAPS_KEY);\n const successLocalization = (pos) => {\n let crd = pos.coords;\n console.log('Your current position is:');\n console.log(`Latitude : ${crd.latitude}`);\n console.log(`Longitude: ${crd.longitude}`);\n console.log(`More or less ${crd.accuracy} meters.`);\n Geocode.fromLatLng(crd.latitude, crd.longitude).then((response) => {\n let currentAddress = response === null || response === void 0 ? void 0 : response.results[0].formatted_address;\n dispatch(setAddress(currentAddress));\n });\n dispatch({ type: StoreLocatorActionTypes.USE_LOCATION, payload: { lat: pos.coords.latitude, lng: pos.coords.longitude } });\n };\n const errorLocalization = (err) => {\n console.warn(`ERROR(${err.code}): ${err.message}`);\n setShowGeo(false);\n };\n useEffect(() => {\n if (props.localizeOnStart) {\n if (navigator.geolocation) {\n setShowGeo(true);\n navigator.geolocation.getCurrentPosition(successLocalization, errorLocalization, GeoOptions);\n }\n else {\n console.warn('Geolocation is not supported by this browser.');\n setShowGeo(false);\n }\n }\n }, []);\n return (React.createElement(\"button\", { type: \"button\", className: `use-location ${!showGeo && 'd-none'}`, \"aria-label\": t('storelocator.usemylocation'), onClick: (e) => {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(successLocalization, errorLocalization, GeoOptions);\n }\n else {\n console.warn('Geolocation is not supported by this browser.');\n }\n } },\n React.createElement(Icon, { name: 'gps' })));\n};\nexport default withTranslation()(StoreLocatorGeo);\n","import { StandaloneSearchBox } from '@react-google-maps/api';\nimport { StoreLocatorActionTypes } from '@state/features/common.types';\nimport { setAddress } from '@state/features/storelocator.slice';\nimport classNames from 'classnames';\nimport React, { useEffect, useRef, useState } from 'react';\nimport { withTranslation } from 'react-i18next';\nimport { useDispatch, useSelector } from 'react-redux';\nimport Icon from '@components/common/Icon';\nimport useBreakpoint from '@utils/useBreakpoint';\nimport StoreLocatorResults from './StoreLocatorResults';\nimport StoreLocatorMap from '@components/storelocator/StoreLocatorMap';\nimport { currentStoreSelector } from '@state/features/storelocator.selectors';\nimport Switch from '@components/common/Switch';\nimport StoreLocatorFilters from './StoreLocatorFilters';\nimport StoreLocatorGeo from './StoreLocatorGeo';\nimport ModalDialog from '@ui/modal/ModalDialog';\nconst StoreLocatorSearch = (props) => {\n const { t, filteredStores } = props;\n const dispatch = useDispatch();\n const reRendersCount = useRef(0);\n reRendersCount.current++;\n const { stores, filters, zoom, center, updateBounds, currentLocation, address } = useSelector((state) => state.storelocator);\n const initalSearchValue = props.initialSearch ? props.initialSearch : address;\n const currentStore = useSelector(currentStoreSelector);\n const currentBreakpoint = useBreakpoint();\n let isMobile = currentBreakpoint < window.mqObj.md;\n const inputRef = useRef(null);\n const [hideMap, setHideMap] = useState(props.findinstore);\n const [searchedCountry, setSearchedCountry] = useState(props.currentCountry || { countryName: null, countryCode: null });\n const [showFilters, toggleFilters] = useState(false);\n const onLoad = (autocomplete) => {\n inputRef.current = autocomplete;\n };\n const onPlaceChanged = () => {\n var _a;\n if (inputRef.current) {\n const selectedPlaces = inputRef.current.getPlaces();\n if (selectedPlaces.length == 0) {\n // dispatch(setAddress(undefined));\n return;\n }\n const bounds = new google.maps.LatLngBounds();\n selectedPlaces.forEach((place) => {\n if (!place.geometry || !place.geometry.location) {\n console.log('Returned place contains no geometry');\n return;\n }\n if (place.geometry.viewport) {\n // Only geocodes have viewport.\n bounds.union(place.geometry.viewport);\n }\n else {\n bounds.extend(place.geometry.location);\n }\n });\n if (!!selectedPlaces[0].formatted_address) {\n if (selectedPlaces[0].name === '') {\n dispatch(setAddress(undefined));\n }\n else {\n dispatch(setAddress(selectedPlaces[0].formatted_address));\n dispatch({ type: StoreLocatorActionTypes.UPDATE_FILTERED_STORES, payload: { updateBound: { newBounds: bounds.toJSON(), fromSearch: true } } });\n if (selectedPlaces[0].address_components) {\n // se è una country\n props.searchedCountry(undefined);\n console.log('types:', selectedPlaces[0].address_components[0]);\n if ((_a = selectedPlaces[0].address_components[0]) === null || _a === void 0 ? void 0 : _a.types.includes('country')) {\n setTimeout(() => {\n var _a, _b, _c;\n props.searchedCountry((_a = selectedPlaces[0].address_components[0]) === null || _a === void 0 ? void 0 : _a.short_name);\n setSearchedCountry({ countryName: (_b = selectedPlaces[0].address_components[0]) === null || _b === void 0 ? void 0 : _b.long_name, countryCode: (_c = selectedPlaces[0].address_components[0]) === null || _c === void 0 ? void 0 : _c.short_name });\n }, 500);\n }\n else {\n setSearchedCountry({ countryName: null, countryCode: null });\n }\n }\n }\n }\n }\n else {\n console.log('Autocomplete is not loaded yet!');\n }\n };\n const resetFilters = () => {\n const checkedFilterInputs = document.querySelectorAll('.storelocator-filters-details input:checked');\n checkedFilterInputs.forEach(function (checkedInput) {\n checkedInput.click();\n });\n };\n useEffect(() => {\n if (address && address !== '') {\n let inputEl = document.querySelector('.search-store input.pac-target-input');\n if (inputEl) {\n inputEl.value = address;\n }\n }\n }, [address]);\n return (React.createElement(\"div\", { className: \"container container--search\" },\n React.createElement(\"div\", { role: \"search\", className: \"search-store\" },\n React.createElement(\"div\", { \n // eslint-disable-next-line jsx-a11y/role-has-required-aria-props\n role: \"combobox\", \"aria-haspopup\": \"grid\", \"aria-expanded\": \"false\", className: classNames('search-store__autocomplete') },\n React.createElement(StandaloneSearchBox, { onLoad: onLoad, onPlacesChanged: onPlaceChanged },\n React.createElement(\"input\", { type: \"text\", defaultValue: initalSearchValue || props.currentcountry, placeholder: t('storelocator.input.placeholder'), \"aria-label\": t('storelocator.input.placeholder'), \n // autoFocus={!props.initialSearch}\n autoComplete: \"off\", \"aria-autocomplete\": \"list\" })),\n React.createElement(StoreLocatorGeo, { localizeOnStart: !center && false })),\n React.createElement(\"div\", { className: \"search-store__results-filters\" },\n (isMobile || props.findinstore) && (React.createElement(Switch, { initialValue: !hideMap, label: t('storelocator.label.display.map'), disabled: stores.length === 0, onChange: () => setHideMap(!hideMap) })),\n reRendersCount.current > 1 && (React.createElement(\"div\", { className: \"search-store__resultslabel\" }, filteredStores.length > 0 ? `${filteredStores.length} ${t('storelocator.store.found')}` : `${filteredStores.length} ${t('storelocator.store.found')}`)),\n React.createElement(\"button\", { className: \"refine__toggle\", type: \"button\", \"aria-expanded\": showFilters, \"aria-controls\": \"refineOptions\", onClick: () => toggleFilters(!showFilters) },\n React.createElement(Icon, { name: 'filter' }),\n t('storelocator.label.storelocator.filters'))),\n React.createElement(StoreLocatorMap, Object.assign({}, props, { zoom: zoom, center: center, updatedMapBounds: updateBounds, updateFromLocation: currentLocation, stores: stores, findinstore: props.findinstore, filteredStores: filteredStores, currentStore: currentStore, currentcountry: props.currentcountry, hideMap: hideMap || !props.showMap, disableFunctionality: !props.showMap })),\n filteredStores.length > 0 && React.createElement(StoreLocatorResults, { filteredStores: filteredStores }),\n props.findinstore && filteredStores.length === 0 && (React.createElement(\"p\", { className: 'find-in-store-no-result' }, t('storelocator.label.storelocator.findinstore.storesnotfound')))),\n React.createElement(ModalDialog, { isOpen: showFilters, className: \"modal-dialog--desktop-right modal-dialog--mobile-bottom\", title: t('storelocator.label.storelocator.filters'), headerButton: t('search.refinements.resetall.cta'), onHeaderButton: () => resetFilters(), onRequestClose: () => toggleFilters(false), submit: t('search.refinements.submit.cta', [filteredStores.length]), onSubmit: () => toggleFilters(false) },\n React.createElement(StoreLocatorFilters, { close: () => toggleFilters(false) }))));\n};\nexport default withTranslation()(StoreLocatorSearch);\n","import { useJsApiLoader } from '@react-google-maps/api';\nimport React from 'react';\nconst mapsLibraries = ['places'];\nconst GoogleMapScript = (props) => {\n const { isLoaded } = useJsApiLoader(Object.assign({ googleMapsApiKey: window.MAPS_KEY, libraries: mapsLibraries, region: window.country, language: window.language, id: 'maps-api' }, props));\n return isLoaded ? props.children : React.createElement(React.Fragment, null);\n};\nexport default GoogleMapScript;\n","const arrayUtils = {\n groupBy: (items, key) => {\n return items.reduce(function (result, item) {\n const idValue = key.split('.').reduce((acc, part) => acc && acc[part], item);\n (result[idValue] = result[idValue] || []).push(item);\n return result;\n }, {});\n },\n standardGroupBy: (xs, key) => {\n return xs.reduce((rv, x) => {\n (rv[x[key]] = rv[x[key]] || []).push(x);\n return rv;\n }, {});\n },\n};\nexport default arrayUtils;\n","import { createSelector } from '@reduxjs/toolkit';\nimport arrayUtils from '@utils/arrayUtils';\nconst getStores = (state) => state.storelocator.stores;\nconst getCurrentStoreId = (state) => state.storelocator.currentStoreId;\nexport const storesCount = createSelector([getStores], (stores) => stores === null || stores === void 0 ? void 0 : stores.length);\nexport const currentStoreSelector = createSelector([getStores, getCurrentStoreId], (stores, currentStoreId) => {\n return stores === null || stores === void 0 ? void 0 : stores.find((store) => store.ID === currentStoreId);\n});\nexport const storesCitiesSelector = createSelector([getStores], (stores) => {\n return [...new Set(stores.map((store) => store.city))];\n});\nexport const storesGroupByCountrySelector = createSelector([getStores], (stores) => {\n return arrayUtils.groupBy(stores, 'countryCode.value');\n});\n","import classNames from 'classnames';\nimport React from 'react';\nconst Loading = (props) => {\n return (React.createElement(React.Fragment, null, props.inline ? (React.createElement(\"div\", { className: classNames('loader', { light: props.lightMode, transparent: props.transparent }, 'visible') },\n React.createElement(\"span\", { className: \"loader__dot\" }),\n React.createElement(\"span\", { className: \"loader__dot\" }),\n React.createElement(\"span\", { className: \"loader__dot\" }))) : (React.createElement(\"div\", { id: \"html-spinner\", className: \"spinner full visible\" },\n React.createElement(\"span\", { className: \"spinner__dot spinner__dot--string_light\" }),\n React.createElement(\"span\", { className: \"spinner__dot spinner__dot--string_dark\" })))));\n};\nexport default Loading;\n","import classNames from 'classnames';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport Modal from 'react-modal';\nconst appElement = document.getElementById('maincontent');\nModal.setAppElement(appElement ? appElement : document.getElementsByTagName('body')[0]);\nconst ModalDialog = (props) => {\n const { t } = useTranslation();\n const closeButton = () => {\n return (React.createElement(\"button\", { \"aria-label\": t('button.close'), className: classNames('modal-close'), onClick: (e) => {\n e.stopPropagation();\n props === null || props === void 0 ? void 0 : props.onRequestClose(e);\n } }));\n };\n return (React.createElement(Modal, Object.assign({ closeTimeoutMS: 0 }, props, { overlayClassName: classNames('modal-overlay', { 'modal-overlay--mobile-bottom': props.mobileBottom }, { 'modal-overlay--minicart': props.minicart }, props.overlayClassName), className: classNames('modal-dialog', { 'modal-dialog--minicart': props.minicart }, props.className) }),\n !props.hideHeader && (React.createElement(\"header\", { className: \"modal-header\" },\n React.createElement(\"h2\", { id: \"dialog1_label\", className: classNames('modal-title', props.modalTitleClassName) }, props.title),\n props.headerButton && props.onHeaderButton && (React.createElement(\"button\", { type: \"button\", className: \"modal-header-cta cta-inline\", onClick: (e) => {\n e.stopPropagation();\n props === null || props === void 0 ? void 0 : props.onHeaderButton();\n } }, props.headerButton)),\n closeButton())),\n React.createElement(\"div\", { className: \"modal-content\" }, props.children),\n props.submit && props.onSubmit && (React.createElement(\"footer\", { className: \"modal-footer\" },\n React.createElement(\"button\", { type: \"button\", className: \"modal-cta cta-primary\", onClick: (e) => {\n e.stopPropagation();\n props === null || props === void 0 ? void 0 : props.onSubmit();\n } },\n props.submit,\n React.createElement(\"svg\", { className: \"icon--chevron icon--m\" },\n React.createElement(\"use\", { href: \"#sprite-chevron\" })))))));\n};\nexport default ModalDialog;\n","import { useEffect, useState } from 'react';\nconst getInitialBreakpointValue = () => {\n // get initial breakpoint is called before the page is fully loaded and innerWith may be 0. windows.mqObj may not be set\n const mediaQueries = window.mqObj;\n const documentWidth = window.innerWidth;\n if (documentWidth == 0 || !mediaQueries) {\n return;\n }\n const filtered = Object.keys(mediaQueries).filter((key) => mediaQueries[key] <= documentWidth);\n const initalBr = filtered.length ? mediaQueries[filtered[filtered.length - 1]] : mediaQueries['xs'];\n return initalBr;\n};\nconst mediaQueries = Object.assign({ '<xs': 0 }, window.mqObj);\nconst useBreakpoint = () => {\n const [currentBreakpoint, setCurrentBreakpoint] = useState(getInitialBreakpointValue());\n const getCurrentBreakpoint = () => {\n const documentWidth = window.innerWidth;\n if (documentWidth == 0) {\n return;\n }\n const filtered = Object.keys(mediaQueries).filter((key) => mediaQueries[key] <= documentWidth);\n return mediaQueries[filtered[filtered.length - 1]];\n };\n const handleResize = () => {\n const currentBr = getCurrentBreakpoint();\n if (currentBr && currentBr !== currentBreakpoint) {\n // console.info('%c[React - Breakpoint change] ', 'color: green;font-weight: bold;', currentBr);\n setCurrentBreakpoint(currentBr);\n }\n };\n // const debounceResize = () => {\n // handleResize();\n // };\n useEffect(() => {\n window.addEventListener('resize', handleResize);\n return () => {\n window.removeEventListener('resize', handleResize);\n };\n });\n return currentBreakpoint;\n};\nexport default useBreakpoint;\n"],"names":["props","_a","_b","_c","_d","_e","_f","_g","_h","_j","_k","_l","_m","_o","_p","_q","t","listOfSizes","item","variationAttributes","filter","attr","id","values","changeSize","e","pid","target","value","handleSizeChanged","useEffect","length","className","href","productUrl","tabIndex","alt","productName","src","images","generic","url","replace","width","height","onError","currentTarget","onerror","window","staticImagesRoot","price","list","formatted","sales","displayName","selected","displayValue","defaultValue","name","onChange","disabled","hidden","map","size","i","key","store","detail","showMore","setShowMore","useState","days","isMobile","mqObj","md","getDirections","latitude","longitude","hoursTable","day","hours","storeType","address","phone","email","communications","findInStoreProductSelectedSize","quantity","availableVariants","find","variant","isUniqueSize","uniqueThreshold","multiThreshold","renderStockLabel","localMap","stores","currentStore","whatsappPhone","rel","calendlyCode","type","onClick","Calendly","initPopupWidget","fullURL","categories","category","label","Object","keys","StoreLocator","dispatch","state","storelocator","filteredStores","setFilteredStores","storeDetailData","setStoreDetailData","findInStoreProductObj","setFindInStoreProductObj","setFindInStoreProductSelectedSize","searchedCountry","setSearchedCountry","showFindInStore","setShowFindInStore","data","modalId","currentBreakpoint","currentcountrycode","currentcountry","findinstore","findinstoreproduct","then","payload","isdetail","storeid","storesInMap","storeFiltered","sort","a","b","Number","country","location","search","querystring","JSON","parse","decodeURIComponent","typeofstore","types","split","storesFilteredConcat","concat","collections","collection","some","cat","services","service","eval","sizeChanged","updatePid","storelocatorlink","large","assign","showMap","currentCountry","countryCode","countryName","lightMode","zoom","center","updatedMapBounds","updateBounds","updateFromLocation","currentLocation","hideMap","disableFunctionality","GoogleMapScript","pathname","params","selector","action","lat","lng","storeId","currentStoreId","filters","typeofstores","reduce","result","initialTruth","initQuerySync","debounce","callback","waitFor","timeout","args","clearTimeout","setTimeout","style","elementType","stylers","visibility","featureType","useRef","current","clustererInstance","initialZoom","initialCenter","setMap","repaint","currentBounds","getBounds","equals","fitBounds","console","info","setCenter","fitToCountry","fitToStores","bounds","google","maps","LatLngBounds","forEach","extend","response","results","geometry","log","setZoom","LatLng","markerStyle","useMemo","anchorText","color","delayedZoomChanged","useCallback","getZoom","delayedCenterChanged","getCenter","toJSON","delayedBoundsChanged","updateBound","newBounds","mapContainerClassName","onLoad","onZoomChanged","onCenterChanged","onBoundsChanged","options","streetViewControl","fullscreenControl","mapTypeControl","minZoom","styles","averageCenter","ignoreHidden","cluster","markerClusterer","clusters","markers","undefined","clusterer","opacity","position","visible","includes","ID","icon","withTranslation","baseUrl","ref","StoreCard","status","setStatus","initialValue","TYPEOFSTORES","TYPEOFSTORESlabels","COLLECTIONSlabels","SERVICES","SERVICESlabels","openfilters","filterTYPEOFSTORES","filterCOLLECTIONS","filterSERVICES","close","isTypeOfStoreSelected","typeofstoreItem","open","checked","updateTypeOfStores","htmlFor","collectionItem","updateCollections","serviceItem","updateServices","GeoOptions","enableHighAccuracy","maximumAge","Infinity","showGeo","setShowGeo","MAPS_KEY","successLocalization","pos","crd","coords","accuracy","currentAddress","formatted_address","errorLocalization","err","warn","code","message","localizeOnStart","navigator","geolocation","getCurrentPosition","Icon","reRendersCount","initalSearchValue","initialSearch","useBreakpoint","inputRef","setHideMap","showFilters","toggleFilters","inputEl","document","querySelector","role","autocomplete","onPlacesChanged","selectedPlaces","getPlaces","place","viewport","union","fromSearch","address_components","short_name","long_name","placeholder","autoComplete","StoreLocatorMap","ModalDialog","isOpen","title","headerButton","onHeaderButton","querySelectorAll","checkedInput","click","onRequestClose","submit","onSubmit","mapsLibraries","isLoaded","googleMapsApiKey","libraries","region","language","children","groupBy","items","idValue","acc","part","push","standardGroupBy","xs","rv","x","getStores","currentStoreSelector","Set","city","inline","light","transparent","appElement","getElementById","getElementsByTagName","closeTimeoutMS","overlayClassName","mobileBottom","minicart","hideHeader","modalTitleClassName","stopPropagation","mediaQueries","setCurrentBreakpoint","documentWidth","innerWidth","filtered","getInitialBreakpointValue","handleResize","currentBr","getCurrentBreakpoint","addEventListener","removeEventListener"],"sourceRoot":""}