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,IAAKE,OAAO,EAAA3B,EAAA,GAAoB,4BAmB1C,EAhBuC,WACrC,IAAM6B,GAAS,IAAAC,UAAQ,WAAM,OFsDvBC,GAAgB,EAAAC,EAAA,GAAoBC,OAAOC,SAAST,MACpDU,GAAmB,EAAAC,EAAA,GAAU,iBAC/BC,EAAgBN,EAWhBA,IAAsC,QAArB,EAAAA,aAAa,EAAbA,EAAeX,cAAM,eAAEkB,SAAS,QACnDD,GAAgB,EAAAE,EAAA,GAAYJ,QAAAA,EAAoB,SAEhDJ,KACsB,QAArB,EAAAA,aAAa,EAAbA,EAAeX,cAAM,eAAEkB,SAAS,YACV,QAArB,EAAAP,aAAa,EAAbA,EAAeX,cAAM,eAAEkB,SAAS,YACX,QAArB,EAAAP,aAAa,EAAbA,EAAeX,cAAM,eAAEkB,SAAS,aAElCD,GAAgB,EAAAE,EAAA,GAjB8B,CAC9CC,SAAU,QACVC,SAAU,QACVC,SAAU,QACVC,SAAU,QACVC,SAAU,QACVC,SAAU,SAW+Bd,EAAcX,UAGlDiB,EAzBgB,I,QACjBN,EACAI,EACFE,CExDyB,GAAqB,IAE5CS,EDd4B,WCaXjB,aAAM,EAANA,EAAQT,QACQD,EAAuBU,EAE9D,OACE,wBAAMkB,GAAG,eAAeC,KAAK,QAC3B,gBAACC,EAAA,EAAW,CACVC,MAAO1B,EACP2B,uBAAuB,EAAAC,EAAA,GAAc,IAAYC,SAEnD,gBAACC,EAAA,EAAU,CAACC,OAAQxD,EAAmBqB,OAAQ0B,EAAa1B,SAGlE,ECdA,EAV+B,WAAM,OACnC,gBAAC,KAAM,KACL,gBAAC,KAAK,CACJoC,OAAK,EACLC,KAAM,KAAqBC,qBAAqBD,KAChDE,UAAW,IALoB,C","sources":["webpack://@hm/react/./src/features/storeLocator/store-locator-overview/helper.ts","webpack://@hm/react/./src/features/storeLocator/store-locator-overview/constants.ts","webpack://@hm/react/./src/features/storeLocator/store-locator-overview/StoreLocatorOverview.tsx","webpack://@hm/react/./src/features/storeLocator/index.tsx"],"sourcesContent":["import type { LocaleInfo } from '@hm-group/utils'\nimport {\n getCookie,\n getLabelFromStorage,\n parseLocale,\n parseLocaleFromPath,\n trackEvent,\n} from '@hm-group/utils'\n\nexport const trackMarketSelectoreClick = (): void => {\n trackEvent({\n event_category: 'Navigation',\n event_id: 'select market',\n event_type: 'CLICK_SELECT_MARKET',\n page_id: 'store locator',\n })\n}\n\nexport const trackFilterSort = (label?: string): void => {\n trackEvent({\n page_id: 'store locator',\n event_label: label !== '' ? label : 'All',\n event_category: 'Navigation',\n event_id: 'click filter sort',\n event_type: 'CLICK_FILTER_SORT',\n })\n}\n\nexport const trackClickOnStoreFindInStore = (storeId?: string | number, eventId?: string): void => {\n trackEvent({\n page_id: 'store locator',\n event_label: storeId,\n event_category: 'Navigation',\n event_id: eventId ?? 'click radio button',\n event_type: 'STORE_LOCATORE',\n })\n}\n\nexport const trackClickOnStoreExpand = (storeId?: string | number): void => {\n trackEvent({\n page_id: 'store locator',\n event_label: storeId,\n event_category: 'Navigation',\n event_id: 'click expand button',\n event_type: 'STORE_LOCATORE',\n })\n}\n\nexport const trackStoreInformationFindInStore = (): void => {\n trackEvent({\n page_id: 'store locator',\n event_category: 'Navigation',\n event_id: 'click store information',\n })\n}\n\nexport const trackStoreInformationDirection = (): void => {\n trackEvent({\n page_id: 'store locator',\n event_category: 'Navigation',\n event_id: 'click directions',\n })\n}\n\nexport const trackSearchLocationFindInStore = (searchedLocation?: string): void => {\n trackEvent({\n event_label: searchedLocation,\n event_category: 'Navigation',\n page_id: 'store locator',\n })\n}\n\nexport const getLocale = (): LocaleInfo | null => {\n const localeFromURL = parseLocaleFromPath(window.location.href)\n const localeFromCookie = getCookie('HMCORP_locale')\n let updatedLocale = localeFromURL\n\n const mappedLocale: { [key: string]: string } = {\n en_asia3: 'en_tw',\n zh_asia3: 'zh_tw',\n en_asia5: 'en_ph',\n zh_asia5: 'zh_ph',\n en_asia1: 'en_mo',\n zh_asia1: 'zh_mo',\n }\n\n if (localeFromURL && localeFromURL?.locale?.includes('eur')) {\n updatedLocale = parseLocale(localeFromCookie ?? 'hr_HR')\n } else if (\n localeFromURL &&\n (localeFromURL?.locale?.includes('asia5') ||\n localeFromURL?.locale?.includes('asia3') ||\n localeFromURL?.locale?.includes('asia1'))\n ) {\n updatedLocale = parseLocale(mappedLocale[localeFromURL.locale])\n }\n\n return updatedLocale\n}\n\nexport const storeDetailLabels = {\n closeLabel: getLabelFromStorage('text.button.close'),\n openingHoursTitle: getLabelFromStorage('store.locator.opening.hours.headline'),\n openingHourExceptionsTitle: getLabelFromStorage(\n 'store.locator.opening.hours.exceptions.headline',\n ),\n singleStoreCustomerServiceText: getLabelFromStorage('store.locator.customer.service.trigger'),\n singleStoreCustomerServiceAriaLabel: getLabelFromStorage(\n 'store.locator.customer.service.trigger.arialabel',\n ),\n singleStoreDirectionAriaLabel: getLabelFromStorage('store.locator.directions.trigger.arialabel'),\n singleStoreDirectionText: getLabelFromStorage('store.locator.directions.trigger'),\n singleStoreTabOneHeading: getLabelFromStorage('store.locator.trigger.store.information'),\n singleStoreTabTwoHeading: getLabelFromStorage('store.locator.trigger.map'),\n}\n\nexport const storeSearchLabels = {\n heading: getLabelFromStorage('store.locator.headline'),\n closeLabel: getLabelFromStorage('text.button.close'),\n autocompleteLabel: getLabelFromStorage('store.locator.search.placeholder'),\n autocompletePlaceholder: getLabelFromStorage('store.locator.search.placeholder'),\n statusMessageText: getLabelFromStorage('store.locator.status.message'),\n actionButtonTextStore: getLabelFromStorage('store.locator.trigger.store.information'),\n actionButtonTextMap: getLabelFromStorage('store.locator.directions.trigger'),\n openingHourExceptionsTitle: getLabelFromStorage(\n 'store.locator.opening.hours.exceptions.headline',\n ),\n openingHoursTitle: getLabelFromStorage('store.locator.opening.hours.headline'),\n storesWithin: getLabelFromStorage('store.locator.results.area'),\n tabTitleMap: getLabelFromStorage('store.locator.tab.trigger.map'),\n tabTitleResults: getLabelFromStorage('store.locator.tab.trigger.list'),\n filterText: getLabelFromStorage('store.locator.filter.trigger'),\n filterDoneText: getLabelFromStorage('store.locator.filter.done'),\n filterClearText: getLabelFromStorage('store.locator.filter.clear'),\n filterSelectAllText: getLabelFromStorage('store.locator.filter.all'),\n selectMarketText: getLabelFromStorage('store.locator.market.headline'),\n selectMarketDoneText: getLabelFromStorage('store.locator.market.done'),\n}\n","export const MAX_NUMBER_OF_STORES = 100\nexport const INITIAL_MAP_CENTER = { lat: 0, lng: 0 }\nexport const INITIAL_MAP_ZOOM = 6\nexport const MAP_ZOOM_WITH_STORES = 12\nexport const INITIAL_RADIUS_IN_METERS = 10000\nexport const DEFAULT_NETWORK_TIMEOUT = 4000\nexport const AUTOCOMPLETE_TIMEOUT = 250\nexport const ISRAEL_LOCALE_STRING = 'hw_il'\nexport const ISRAEL_LOCALE_OBJECT = {\n locale: 'he_il',\n country: 'IL',\n lang: 'he',\n separator: '_',\n}\n","import React, { useMemo } from 'react'\nimport { Breadcrumbs } from '@hm-group/components'\nimport type { LocaleInfo } from '@hm-group/utils'\nimport { Breakpoints, getLabelFromStorage, getLocale, useMediaQuery } from '@hm-group/utils'\nimport { getLocale as internalGetLocale, storeSearchLabels } from './helper'\nimport { EXTERNAL_ROUTES } from 'App/constants'\nimport { FindAStore } from '@hm-group/sdl-ui'\nimport { ISRAEL_LOCALE_OBJECT, ISRAEL_LOCALE_STRING } from './constants'\n\nconst breadcrumbsLinks = [\n { href: `/${getLocale()}`, label: getLabelFromStorage('breadcrumb.home') },\n {\n href: EXTERNAL_ROUTES.customerService,\n label: getLabelFromStorage('checkout.orderdetails.customer.service'),\n },\n { href: '#', label: getLabelFromStorage('store.locator.headline') },\n]\n\nconst StoreLocatorOverview: React.FC = () => {\n const market = useMemo(() => internalGetLocale(), [])\n const isIsraelMarket = market?.locale === ISRAEL_LOCALE_STRING\n const localeObject = (isIsraelMarket ? ISRAEL_LOCALE_OBJECT : market) as LocaleInfo\n\n return (\n
\n \n \n
\n )\n}\n\nexport default StoreLocatorOverview\n","import React from 'react'\n\nimport { Switch, Route } from 'react-router-dom'\n\nimport { STORE_LOCATOR_ROUTES } from 'App/constants'\n\nimport StoreLocatorOverview from './store-locator-overview'\n\nconst StoreLocator: React.FC = () => (\n \n \n \n)\n\nexport default StoreLocator\n"],"names":["storeSearchLabels","getLabelFromStorage","heading","closeLabel","autocompleteLabel","autocompletePlaceholder","statusMessageText","actionButtonTextStore","actionButtonTextMap","openingHourExceptionsTitle","openingHoursTitle","storesWithin","tabTitleMap","tabTitleResults","filterText","filterDoneText","filterClearText","filterSelectAllText","selectMarketText","selectMarketDoneText","ISRAEL_LOCALE_OBJECT","locale","country","lang","separator","breadcrumbsLinks","href","getLocale","label","customerService","market","useMemo","localeFromURL","parseLocaleFromPath","window","location","localeFromCookie","getCookie","updatedLocale","includes","parseLocale","en_asia3","zh_asia3","en_asia5","zh_asia5","en_asia1","zh_asia1","localeObject","id","role","Breadcrumbs","links","shouldHideBreadcrumbs","useMediaQuery","LARGE","FindAStore","labels","exact","path","StoreLocatorOverview","component"],"sourceRoot":""}