@jetshop/template-trend 6.2.3 → 6.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.linaria-cache/packages/template-trend/src/components/Auth/LogInPage.linaria.css +4 -0
- package/.linaria-cache/packages/template-trend/src/components/Auth/Signup/Address.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Auth/Signup/CustomerType.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Auth/Signup/LoginFields.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Auth/Signup/SignUpPage.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/Auth/UI/Form.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/Cart/CartButton.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/Cart/CartFlyout.linaria.css +7 -0
- package/.linaria-cache/packages/template-trend/src/components/Cart/CartItem.linaria.css +8 -0
- package/.linaria-cache/packages/template-trend/src/components/Cart/FreeShipping.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/CategoryHeader.linaria.css +8 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/Filters/ActiveFilters.linaria.css +6 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/Filters/Filter.linaria.css +4 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/Filters/FilterDrawer.linaria.css +4 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/Filters/FilterDropdownMenu.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/Filters/Mobile/ActiveCarot.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/Filters/Mobile/FilterButton.linaria.css +5 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/Filters/Mobile/ListAccordion.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/Filters/Mobile/shared/styles.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/Filters/RangeFilters.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/ProductCard.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/ProductGrid.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/ProductGridWindow.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/StandardCategoryPage.linaria.css +3 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/WindowedCategoryPage.linaria.css +4 -0
- package/.linaria-cache/packages/template-trend/src/components/ContentPage/ContentPage.linaria.css +5 -0
- package/.linaria-cache/packages/template-trend/src/components/ContentPage/SubPageNavigation.linaria.css +4 -0
- package/.linaria-cache/packages/template-trend/src/components/CookieConsent.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Forms/GlobalError.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Forms/Input.linaria.css +4 -0
- package/.linaria-cache/packages/template-trend/src/components/Forms/InputStatus.linaria.css +3 -0
- package/.linaria-cache/packages/template-trend/src/components/Forms/Success.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Container.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Content/index.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Footer/Footer.linaria.css +4 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Footer/SocialLinks.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/Categories/MobileCategories.linaria.css +6 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/CategoryMenu/CategoryMenu.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/CategoryMenu/CategoryMenuContainer.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/CategoryMenu/SubMenuSection.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/CategoryMenu/SubMenuWrapper.linaria.css +5 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/ChannelSelector/ChannelSelector.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/ChannelSelector/ChannelSelectorModal.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/ChannelSelector/Selector.linaria.css +5 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/Header.linaria.css +7 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/Logo.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/LogoSearchBar.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/MobileMenu.linaria.css +6 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/RecommendedChannel/ChannelBanner.linaria.css +5 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/RecommendedChannel/RecommendedChannelSelector.linaria.css +9 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/SearchBar.linaria.css +3 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/SearchButton.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/TopNav.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/MaxWidth.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Notifications.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/LoadingPage.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/MyPages/CustomerNameHeader.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/MyPages/DeleteAccount.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/MyPages/MyPages.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/MyPages/MyPagesSidebar.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/MyPages/MyPagesStartPage.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/MyPages/Orders/ListOrder.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/MyPages/Orders/OrderDetail/ListDetail.linaria.css +4 -0
- package/.linaria-cache/packages/template-trend/src/components/MyPages/Orders/OrderDetail/OrderTotals.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/MyPages/Orders/OrderDetail/ShippingPayment.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/MyPages/Orders/OrderListPage.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/MyPages/ProfileDeliveryAddresses.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/MyPages/ProfilePage.linaria.css +4 -0
- package/.linaria-cache/packages/template-trend/src/components/NavigationTree/NavTree.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/Newsletter/NewsletterField.linaria.css +3 -0
- package/.linaria-cache/packages/template-trend/src/components/NotFoundPage.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Pagination/Pagination.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductList/AddToCart.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductList/Favourite.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductList/Favourites.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductList/Product.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/AddToCart/AddToCartForm.linaria.css +3 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/AddToCart/ProductToast.linaria.css +9 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/Campaigns.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/ConfigurationSelector.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/Images/ImageContainer.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/PackageProduct/IncludedInPackages.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/PackageProduct/PackageProduct.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/PackageProduct/PackageProductItem.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/PriceHistory.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/ProductInfo.linaria.css +3 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/ProductInfoAccordion.linaria.css +3 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/ProductPage.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/ProductPageLoadingState.linaria.css +3 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/RelatedProducts.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/StockStatus/NotifyWhenBack.linaria.css +5 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/StockStatus/StockOrb.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/StockStatus/StockStatusIndicator.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/StockStatus/WarehouseStock.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/VariantSelector.linaria.css +3 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/styledComponents.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/SearchPage/CategoryList.linaria.css +7 -0
- package/.linaria-cache/packages/template-trend/src/components/SearchPage/SearchMeta.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/SearchPage/SearchPage.linaria.css +3 -0
- package/.linaria-cache/packages/template-trend/src/components/SearchPage/SearchResults.linaria.css +4 -0
- package/.linaria-cache/packages/template-trend/src/components/SearchPage/SearchTerm.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/SearchPage/WindowedSearchResults.linaria.css +5 -0
- package/.linaria-cache/packages/template-trend/src/components/StartPage/Content/Row.linaria.css +3 -0
- package/.linaria-cache/packages/template-trend/src/components/StartPage/Content/StartPageCampaign.linaria.css +7 -0
- package/.linaria-cache/packages/template-trend/src/components/StartPage/Content/StartPageCategories.linaria.css +3 -0
- package/.linaria-cache/packages/template-trend/src/components/StartPage/Content/StartPageHTMLContent.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/StartPage/Content/StartPageHero.linaria.css +6 -0
- package/.linaria-cache/packages/template-trend/src/components/StartPage/Content/StartPageProductGrid.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/StartPage/StartPage.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Store/Store.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/StoreLocator/StoreList.linaria.css +5 -0
- package/.linaria-cache/packages/template-trend/src/components/StoreLocator/StoreLocator.linaria.css +5 -0
- package/.linaria-cache/packages/template-trend/src/components/StoreLocator/StoreMap.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/StoreLocator/StoreMarker.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/StoreLocator/StoreSearch.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/StoreLocator/UserLocation.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ui/Badge.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ui/Button.linaria.css +4 -0
- package/.linaria-cache/packages/template-trend/src/components/ui/CloseButton.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ui/Headings.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/ui/Spinner.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/fonts/loadFontCss.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/globalStyles.linaria.css +1 -0
- package/.linaria-cache/packages/ui/Breadcrumbs/Breadcrumbs.linaria.css +2 -0
- package/.linaria-cache/packages/ui/Button/Button.linaria.css +2 -0
- package/.linaria-cache/packages/ui/Button/SecondaryButton.linaria.css +1 -0
- package/.linaria-cache/packages/ui/Button/TrendButton.linaria.css +1 -0
- package/.linaria-cache/packages/ui/ChannelSelector/ChannelSelector.linaria.css +3 -0
- package/.linaria-cache/packages/ui/ChannelSelector/ChannelSelectorButtons.linaria.css +2 -0
- package/.linaria-cache/packages/ui/ChannelSelector/LargeSelector.linaria.css +1 -0
- package/.linaria-cache/packages/ui/ChannelSelector/MiniSelector.linaria.css +1 -0
- package/.linaria-cache/packages/ui/Checkbox/Checkbox.linaria.css +4 -0
- package/.linaria-cache/packages/ui/Checkbox/CheckboxGroup.linaria.css +3 -0
- package/.linaria-cache/packages/ui/DropdownMenu/DropdownMenu.linaria.css +2 -0
- package/.linaria-cache/packages/ui/ErrorBoundary/Generic.linaria.css +1 -0
- package/.linaria-cache/packages/ui/Gallery/Gallery.linaria.css +2 -0
- package/.linaria-cache/packages/ui/JetshopText.linaria.css +1 -0
- package/.linaria-cache/packages/ui/Loading/LoadingBar.linaria.css +2 -0
- package/.linaria-cache/packages/ui/Modal/Drawer/Drawer.linaria.css +1 -0
- package/.linaria-cache/packages/ui/Modal/ModalProvider.linaria.css +1 -0
- package/.linaria-cache/packages/ui/Modal/ModalRoot.linaria.css +1 -0
- package/.linaria-cache/packages/ui/Pagination/Pagination.linaria.css +1 -0
- package/.linaria-cache/packages/ui/Pagination/usePagination.linaria.css +1 -0
- package/.linaria-cache/packages/ui/PreOrderDateSelector/PreOrderDateSelector.linaria.css +1 -0
- package/.linaria-cache/packages/ui/Price/Price.linaria.css +4 -0
- package/.linaria-cache/packages/ui/ProductList/Badges.linaria.css +7 -0
- package/.linaria-cache/packages/ui/ProductSpecifications/ProductSpecifications.linaria.css +1 -0
- package/.linaria-cache/packages/ui/Search/SearchField.linaria.css +5 -0
- package/.linaria-cache/packages/ui/Search/SearchPage/SearchMeta.linaria.css +1 -0
- package/.linaria-cache/packages/ui/Select/Components.linaria.css +10 -0
- package/.linaria-cache/packages/ui/Theme/sanitizeCss.linaria.css +1 -0
- package/package.json +5 -5
- package/schema.graphql +5 -0
- package/dist/src/client.js +0 -6
- package/dist/src/client.js.map +0 -1
- package/dist/src/components/Auth/ForgotPassword.js +0 -30
- package/dist/src/components/Auth/ForgotPassword.js.map +0 -1
- package/dist/src/components/Auth/ForgotPassword.loadable.js +0 -7
- package/dist/src/components/Auth/ForgotPassword.loadable.js.map +0 -1
- package/dist/src/components/Auth/LogInPage.js +0 -69
- package/dist/src/components/Auth/LogInPage.js.map +0 -1
- package/dist/src/components/Auth/LogInPage.loadable.js +0 -7
- package/dist/src/components/Auth/LogInPage.loadable.js.map +0 -1
- package/dist/src/components/Auth/ResetPassword.js +0 -30
- package/dist/src/components/Auth/ResetPassword.js.map +0 -1
- package/dist/src/components/Auth/ResetPassword.loadable.js +0 -7
- package/dist/src/components/Auth/ResetPassword.loadable.js.map +0 -1
- package/dist/src/components/Auth/Signup/Address.js +0 -34
- package/dist/src/components/Auth/Signup/Address.js.map +0 -1
- package/dist/src/components/Auth/Signup/CustomerType.js +0 -30
- package/dist/src/components/Auth/Signup/CustomerType.js.map +0 -1
- package/dist/src/components/Auth/Signup/LoginFields.js +0 -31
- package/dist/src/components/Auth/Signup/LoginFields.js.map +0 -1
- package/dist/src/components/Auth/Signup/PID.js +0 -11
- package/dist/src/components/Auth/Signup/PID.js.map +0 -1
- package/dist/src/components/Auth/Signup/SSN.js +0 -29
- package/dist/src/components/Auth/Signup/SSN.js.map +0 -1
- package/dist/src/components/Auth/Signup/SignUpPage.js +0 -78
- package/dist/src/components/Auth/Signup/SignUpPage.js.map +0 -1
- package/dist/src/components/Auth/Signup/SignUpPage.loadable.js +0 -7
- package/dist/src/components/Auth/Signup/SignUpPage.loadable.js.map +0 -1
- package/dist/src/components/Auth/Signup/useSignupValidation.js +0 -29
- package/dist/src/components/Auth/Signup/useSignupValidation.js.map +0 -1
- package/dist/src/components/Auth/UI/Form.js +0 -33
- package/dist/src/components/Auth/UI/Form.js.map +0 -1
- package/dist/src/components/Cart/CartButton.js +0 -46
- package/dist/src/components/Cart/CartButton.js.map +0 -1
- package/dist/src/components/Cart/CartFlyout.js +0 -190
- package/dist/src/components/Cart/CartFlyout.js.map +0 -1
- package/dist/src/components/Cart/CartItem.js +0 -155
- package/dist/src/components/Cart/CartItem.js.map +0 -1
- package/dist/src/components/Cart/FreeShipping.js +0 -51
- package/dist/src/components/Cart/FreeShipping.js.map +0 -1
- package/dist/src/components/CategoryPage/CategoryHeader.js +0 -104
- package/dist/src/components/CategoryPage/CategoryHeader.js.map +0 -1
- package/dist/src/components/CategoryPage/CategoryHeaderLoadingState.js +0 -13
- package/dist/src/components/CategoryPage/CategoryHeaderLoadingState.js.map +0 -1
- package/dist/src/components/CategoryPage/CategoryPage.js +0 -26
- package/dist/src/components/CategoryPage/CategoryPage.js.map +0 -1
- package/dist/src/components/CategoryPage/CategoryPage.loadable.js +0 -7
- package/dist/src/components/CategoryPage/CategoryPage.loadable.js.map +0 -1
- package/dist/src/components/CategoryPage/Filters/ActiveFilters.js +0 -79
- package/dist/src/components/CategoryPage/Filters/ActiveFilters.js.map +0 -1
- package/dist/src/components/CategoryPage/Filters/BooleanFilters.js +0 -18
- package/dist/src/components/CategoryPage/Filters/BooleanFilters.js.map +0 -1
- package/dist/src/components/CategoryPage/Filters/Filter.js +0 -97
- package/dist/src/components/CategoryPage/Filters/Filter.js.map +0 -1
- package/dist/src/components/CategoryPage/Filters/FilterDrawer.js +0 -91
- package/dist/src/components/CategoryPage/Filters/FilterDrawer.js.map +0 -1
- package/dist/src/components/CategoryPage/Filters/FilterDropdownMenu.js +0 -77
- package/dist/src/components/CategoryPage/Filters/FilterDropdownMenu.js.map +0 -1
- package/dist/src/components/CategoryPage/Filters/ListFilters.js +0 -38
- package/dist/src/components/CategoryPage/Filters/ListFilters.js.map +0 -1
- package/dist/src/components/CategoryPage/Filters/Mobile/ActiveCarot.js +0 -15
- package/dist/src/components/CategoryPage/Filters/Mobile/ActiveCarot.js.map +0 -1
- package/dist/src/components/CategoryPage/Filters/Mobile/FilterButton.js +0 -107
- package/dist/src/components/CategoryPage/Filters/Mobile/FilterButton.js.map +0 -1
- package/dist/src/components/CategoryPage/Filters/Mobile/ListAccordion.js +0 -44
- package/dist/src/components/CategoryPage/Filters/Mobile/ListAccordion.js.map +0 -1
- package/dist/src/components/CategoryPage/Filters/Mobile/RangeAccordion.js +0 -21
- package/dist/src/components/CategoryPage/Filters/Mobile/RangeAccordion.js.map +0 -1
- package/dist/src/components/CategoryPage/Filters/Mobile/SortOrderAccordion.js +0 -30
- package/dist/src/components/CategoryPage/Filters/Mobile/SortOrderAccordion.js.map +0 -1
- package/dist/src/components/CategoryPage/Filters/Mobile/shared/styles.js +0 -12
- package/dist/src/components/CategoryPage/Filters/Mobile/shared/styles.js.map +0 -1
- package/dist/src/components/CategoryPage/Filters/MultiListFilters.js +0 -37
- package/dist/src/components/CategoryPage/Filters/MultiListFilters.js.map +0 -1
- package/dist/src/components/CategoryPage/Filters/RangeFilters.js +0 -122
- package/dist/src/components/CategoryPage/Filters/RangeFilters.js.map +0 -1
- package/dist/src/components/CategoryPage/Filters/SortOrders.js +0 -29
- package/dist/src/components/CategoryPage/Filters/SortOrders.js.map +0 -1
- package/dist/src/components/CategoryPage/Filters/index.js +0 -2
- package/dist/src/components/CategoryPage/Filters/index.js.map +0 -1
- package/dist/src/components/CategoryPage/ProductCard.js +0 -98
- package/dist/src/components/CategoryPage/ProductCard.js.map +0 -1
- package/dist/src/components/CategoryPage/ProductGrid.js +0 -89
- package/dist/src/components/CategoryPage/ProductGrid.js.map +0 -1
- package/dist/src/components/CategoryPage/ProductGridWindow.js +0 -48
- package/dist/src/components/CategoryPage/ProductGridWindow.js.map +0 -1
- package/dist/src/components/CategoryPage/StandardCategoryPage.js +0 -51
- package/dist/src/components/CategoryPage/StandardCategoryPage.js.map +0 -1
- package/dist/src/components/CategoryPage/WindowedCategoryPage.js +0 -87
- package/dist/src/components/CategoryPage/WindowedCategoryPage.js.map +0 -1
- package/dist/src/components/CategoryPage/index.js +0 -2
- package/dist/src/components/CategoryPage/index.js.map +0 -1
- package/dist/src/components/ContentPage/ContentPage.js +0 -64
- package/dist/src/components/ContentPage/ContentPage.js.map +0 -1
- package/dist/src/components/ContentPage/ContentPage.loadable.js +0 -7
- package/dist/src/components/ContentPage/ContentPage.loadable.js.map +0 -1
- package/dist/src/components/ContentPage/SubPageNavigation.js +0 -164
- package/dist/src/components/ContentPage/SubPageNavigation.js.map +0 -1
- package/dist/src/components/ContentPage/index.js +0 -2
- package/dist/src/components/ContentPage/index.js.map +0 -1
- package/dist/src/components/CookieConsent.js +0 -84
- package/dist/src/components/CookieConsent.js.map +0 -1
- package/dist/src/components/Forms/GlobalError.js +0 -28
- package/dist/src/components/Forms/GlobalError.js.map +0 -1
- package/dist/src/components/Forms/Input.js +0 -79
- package/dist/src/components/Forms/Input.js.map +0 -1
- package/dist/src/components/Forms/InputStatus.js +0 -42
- package/dist/src/components/Forms/InputStatus.js.map +0 -1
- package/dist/src/components/Forms/Success.js +0 -25
- package/dist/src/components/Forms/Success.js.map +0 -1
- package/dist/src/components/Layout/Container.js +0 -19
- package/dist/src/components/Layout/Container.js.map +0 -1
- package/dist/src/components/Layout/Content/index.js +0 -7
- package/dist/src/components/Layout/Content/index.js.map +0 -1
- package/dist/src/components/Layout/Footer/Footer.js +0 -106
- package/dist/src/components/Layout/Footer/Footer.js.map +0 -1
- package/dist/src/components/Layout/Footer/FooterLinks.js +0 -24
- package/dist/src/components/Layout/Footer/FooterLinks.js.map +0 -1
- package/dist/src/components/Layout/Footer/SocialLinks.js +0 -62
- package/dist/src/components/Layout/Footer/SocialLinks.js.map +0 -1
- package/dist/src/components/Layout/Header/Categories/Categories.js +0 -10
- package/dist/src/components/Layout/Header/Categories/Categories.js.map +0 -1
- package/dist/src/components/Layout/Header/Categories/MobileCategories.js +0 -128
- package/dist/src/components/Layout/Header/Categories/MobileCategories.js.map +0 -1
- package/dist/src/components/Layout/Header/Categories/__util__/getCategoriesByLevel.js +0 -4
- package/dist/src/components/Layout/Header/Categories/__util__/getCategoriesByLevel.js.map +0 -1
- package/dist/src/components/Layout/Header/Categories/__util__/getCategoriesUnderParent.js +0 -4
- package/dist/src/components/Layout/Header/Categories/__util__/getCategoriesUnderParent.js.map +0 -1
- package/dist/src/components/Layout/Header/Categories/__util__/hasChildCategories.js +0 -4
- package/dist/src/components/Layout/Header/Categories/__util__/hasChildCategories.js.map +0 -1
- package/dist/src/components/Layout/Header/CategoryMenu/CategoryMenu.js +0 -21
- package/dist/src/components/Layout/Header/CategoryMenu/CategoryMenu.js.map +0 -1
- package/dist/src/components/Layout/Header/CategoryMenu/CategoryMenuContainer.js +0 -55
- package/dist/src/components/Layout/Header/CategoryMenu/CategoryMenuContainer.js.map +0 -1
- package/dist/src/components/Layout/Header/CategoryMenu/SubMenuSection.js +0 -60
- package/dist/src/components/Layout/Header/CategoryMenu/SubMenuSection.js.map +0 -1
- package/dist/src/components/Layout/Header/CategoryMenu/SubMenuWrapper.js +0 -78
- package/dist/src/components/Layout/Header/CategoryMenu/SubMenuWrapper.js.map +0 -1
- package/dist/src/components/Layout/Header/ChannelSelector/ChannelSelector.js +0 -26
- package/dist/src/components/Layout/Header/ChannelSelector/ChannelSelector.js.map +0 -1
- package/dist/src/components/Layout/Header/ChannelSelector/ChannelSelectorModal.js +0 -36
- package/dist/src/components/Layout/Header/ChannelSelector/ChannelSelectorModal.js.map +0 -1
- package/dist/src/components/Layout/Header/ChannelSelector/LanguageSelector.js +0 -12
- package/dist/src/components/Layout/Header/ChannelSelector/LanguageSelector.js.map +0 -1
- package/dist/src/components/Layout/Header/ChannelSelector/Selector.js +0 -120
- package/dist/src/components/Layout/Header/ChannelSelector/Selector.js.map +0 -1
- package/dist/src/components/Layout/Header/ChannelSelector/flattenCountries.js +0 -15
- package/dist/src/components/Layout/Header/ChannelSelector/flattenCountries.js.map +0 -1
- package/dist/src/components/Layout/Header/Header.js +0 -189
- package/dist/src/components/Layout/Header/Header.js.map +0 -1
- package/dist/src/components/Layout/Header/Logo.js +0 -40
- package/dist/src/components/Layout/Header/Logo.js.map +0 -1
- package/dist/src/components/Layout/Header/LogoSearchBar.js +0 -15
- package/dist/src/components/Layout/Header/LogoSearchBar.js.map +0 -1
- package/dist/src/components/Layout/Header/MobileMenu.js +0 -76
- package/dist/src/components/Layout/Header/MobileMenu.js.map +0 -1
- package/dist/src/components/Layout/Header/RecommendedChannel/ChannelBanner.js +0 -218
- package/dist/src/components/Layout/Header/RecommendedChannel/ChannelBanner.js.map +0 -1
- package/dist/src/components/Layout/Header/RecommendedChannel/RecommendedChannelSelector.js +0 -123
- package/dist/src/components/Layout/Header/RecommendedChannel/RecommendedChannelSelector.js.map +0 -1
- package/dist/src/components/Layout/Header/SearchBar.js +0 -79
- package/dist/src/components/Layout/Header/SearchBar.js.map +0 -1
- package/dist/src/components/Layout/Header/SearchButton.js +0 -50
- package/dist/src/components/Layout/Header/SearchButton.js.map +0 -1
- package/dist/src/components/Layout/Header/SubCategoryNav.js +0 -71
- package/dist/src/components/Layout/Header/SubCategoryNav.js.map +0 -1
- package/dist/src/components/Layout/Header/TopNav.js +0 -63
- package/dist/src/components/Layout/Header/TopNav.js.map +0 -1
- package/dist/src/components/Layout/MaxWidth.js +0 -19
- package/dist/src/components/Layout/MaxWidth.js.map +0 -1
- package/dist/src/components/Layout/Notifications.js +0 -70
- package/dist/src/components/Layout/Notifications.js.map +0 -1
- package/dist/src/components/LoadingPage.js +0 -19
- package/dist/src/components/LoadingPage.js.map +0 -1
- package/dist/src/components/LogOut.loadable.js +0 -7
- package/dist/src/components/LogOut.loadable.js.map +0 -1
- package/dist/src/components/MyPages/ChangePasswordPage.js +0 -26
- package/dist/src/components/MyPages/ChangePasswordPage.js.map +0 -1
- package/dist/src/components/MyPages/CustomerNameHeader.js +0 -28
- package/dist/src/components/MyPages/CustomerNameHeader.js.map +0 -1
- package/dist/src/components/MyPages/DeleteAccount.js +0 -47
- package/dist/src/components/MyPages/DeleteAccount.js.map +0 -1
- package/dist/src/components/MyPages/MyPages.js +0 -152
- package/dist/src/components/MyPages/MyPages.js.map +0 -1
- package/dist/src/components/MyPages/MyPages.loadable.js +0 -7
- package/dist/src/components/MyPages/MyPages.loadable.js.map +0 -1
- package/dist/src/components/MyPages/MyPagesBreadcrumbs.js +0 -18
- package/dist/src/components/MyPages/MyPagesBreadcrumbs.js.map +0 -1
- package/dist/src/components/MyPages/MyPagesSidebar.js +0 -81
- package/dist/src/components/MyPages/MyPagesSidebar.js.map +0 -1
- package/dist/src/components/MyPages/MyPagesStartPage.js +0 -99
- package/dist/src/components/MyPages/MyPagesStartPage.js.map +0 -1
- package/dist/src/components/MyPages/Newsletter.js +0 -33
- package/dist/src/components/MyPages/Newsletter.js.map +0 -1
- package/dist/src/components/MyPages/Orders/ListOrder.js +0 -159
- package/dist/src/components/MyPages/Orders/ListOrder.js.map +0 -1
- package/dist/src/components/MyPages/Orders/OrderDetail/Contact.js +0 -38
- package/dist/src/components/MyPages/Orders/OrderDetail/Contact.js.map +0 -1
- package/dist/src/components/MyPages/Orders/OrderDetail/ListDetail.js +0 -196
- package/dist/src/components/MyPages/Orders/OrderDetail/ListDetail.js.map +0 -1
- package/dist/src/components/MyPages/Orders/OrderDetail/OrderTotals.js +0 -81
- package/dist/src/components/MyPages/Orders/OrderDetail/OrderTotals.js.map +0 -1
- package/dist/src/components/MyPages/Orders/OrderDetail/ShippingPayment.js +0 -37
- package/dist/src/components/MyPages/Orders/OrderDetail/ShippingPayment.js.map +0 -1
- package/dist/src/components/MyPages/Orders/OrderListPage.js +0 -56
- package/dist/src/components/MyPages/Orders/OrderListPage.js.map +0 -1
- package/dist/src/components/MyPages/ProfileDeliveryAddresses.js +0 -93
- package/dist/src/components/MyPages/ProfileDeliveryAddresses.js.map +0 -1
- package/dist/src/components/MyPages/ProfilePage.js +0 -109
- package/dist/src/components/MyPages/ProfilePage.js.map +0 -1
- package/dist/src/components/MyPages/ProfileView.js +0 -42
- package/dist/src/components/MyPages/ProfileView.js.map +0 -1
- package/dist/src/components/NavigationTree/NavTree.js +0 -53
- package/dist/src/components/NavigationTree/NavTree.js.map +0 -1
- package/dist/src/components/NavigationTree/NavTreePage.js +0 -7
- package/dist/src/components/NavigationTree/NavTreePage.js.map +0 -1
- package/dist/src/components/NavigationTree/NavTreePage.loadable.js +0 -7
- package/dist/src/components/NavigationTree/NavTreePage.loadable.js.map +0 -1
- package/dist/src/components/Newsletter/NewsletterField.js +0 -93
- package/dist/src/components/Newsletter/NewsletterField.js.map +0 -1
- package/dist/src/components/NotFoundPage.js +0 -59
- package/dist/src/components/NotFoundPage.js.map +0 -1
- package/dist/src/components/NotFoundPage.loadable.js +0 -7
- package/dist/src/components/NotFoundPage.loadable.js.map +0 -1
- package/dist/src/components/Pages/About.js +0 -7
- package/dist/src/components/Pages/About.js.map +0 -1
- package/dist/src/components/Pagination/Pagination.js +0 -29
- package/dist/src/components/Pagination/Pagination.js.map +0 -1
- package/dist/src/components/Pagination/PaginationWrapper.js +0 -16
- package/dist/src/components/Pagination/PaginationWrapper.js.map +0 -1
- package/dist/src/components/PreviewRoute.loadable.js +0 -7
- package/dist/src/components/PreviewRoute.loadable.js.map +0 -1
- package/dist/src/components/ProductList/AddToCart.js +0 -46
- package/dist/src/components/ProductList/AddToCart.js.map +0 -1
- package/dist/src/components/ProductList/Favourite.js +0 -46
- package/dist/src/components/ProductList/Favourite.js.map +0 -1
- package/dist/src/components/ProductList/FavouriteCount.js +0 -15
- package/dist/src/components/ProductList/FavouriteCount.js.map +0 -1
- package/dist/src/components/ProductList/Favourites.js +0 -187
- package/dist/src/components/ProductList/Favourites.js.map +0 -1
- package/dist/src/components/ProductList/Lister.js +0 -22
- package/dist/src/components/ProductList/Lister.js.map +0 -1
- package/dist/src/components/ProductList/Product.js +0 -62
- package/dist/src/components/ProductList/Product.js.map +0 -1
- package/dist/src/components/ProductList/SelectVariant.js +0 -47
- package/dist/src/components/ProductList/SelectVariant.js.map +0 -1
- package/dist/src/components/ProductList/productListQueries.js +0 -15
- package/dist/src/components/ProductList/productListQueries.js.map +0 -1
- package/dist/src/components/ProductPage/AddToCart/AddToCartForm.js +0 -110
- package/dist/src/components/ProductPage/AddToCart/AddToCartForm.js.map +0 -1
- package/dist/src/components/ProductPage/AddToCart/ProductToast.js +0 -118
- package/dist/src/components/ProductPage/AddToCart/ProductToast.js.map +0 -1
- package/dist/src/components/ProductPage/AddToCart/useProductToast.js +0 -21
- package/dist/src/components/ProductPage/AddToCart/useProductToast.js.map +0 -1
- package/dist/src/components/ProductPage/Campaigns.js +0 -43
- package/dist/src/components/ProductPage/Campaigns.js.map +0 -1
- package/dist/src/components/ProductPage/ConfigurationSelector.js +0 -62
- package/dist/src/components/ProductPage/ConfigurationSelector.js.map +0 -1
- package/dist/src/components/ProductPage/Images/ImageContainer.js +0 -45
- package/dist/src/components/ProductPage/Images/ImageContainer.js.map +0 -1
- package/dist/src/components/ProductPage/Images/Thumbnails.js +0 -32
- package/dist/src/components/ProductPage/Images/Thumbnails.js.map +0 -1
- package/dist/src/components/ProductPage/PackageProduct/IncludedInPackages.js +0 -32
- package/dist/src/components/ProductPage/PackageProduct/IncludedInPackages.js.map +0 -1
- package/dist/src/components/ProductPage/PackageProduct/PackageProduct.js +0 -170
- package/dist/src/components/ProductPage/PackageProduct/PackageProduct.js.map +0 -1
- package/dist/src/components/ProductPage/PackageProduct/PackageProductItem.js +0 -92
- package/dist/src/components/ProductPage/PackageProduct/PackageProductItem.js.map +0 -1
- package/dist/src/components/ProductPage/PriceHistory.js +0 -99
- package/dist/src/components/ProductPage/PriceHistory.js.map +0 -1
- package/dist/src/components/ProductPage/ProductInfo.js +0 -55
- package/dist/src/components/ProductPage/ProductInfo.js.map +0 -1
- package/dist/src/components/ProductPage/ProductInfoAccordion.js +0 -46
- package/dist/src/components/ProductPage/ProductInfoAccordion.js.map +0 -1
- package/dist/src/components/ProductPage/ProductPage.js +0 -174
- package/dist/src/components/ProductPage/ProductPage.js.map +0 -1
- package/dist/src/components/ProductPage/ProductPage.loadable.js +0 -7
- package/dist/src/components/ProductPage/ProductPage.loadable.js.map +0 -1
- package/dist/src/components/ProductPage/ProductPageLoadingState.js +0 -55
- package/dist/src/components/ProductPage/ProductPageLoadingState.js.map +0 -1
- package/dist/src/components/ProductPage/QuantityContainer.js +0 -21
- package/dist/src/components/ProductPage/QuantityContainer.js.map +0 -1
- package/dist/src/components/ProductPage/RelatedProducts.js +0 -45
- package/dist/src/components/ProductPage/RelatedProducts.js.map +0 -1
- package/dist/src/components/ProductPage/SizePicker.js +0 -37
- package/dist/src/components/ProductPage/SizePicker.js.map +0 -1
- package/dist/src/components/ProductPage/StockStatus/NotifyWhenBack.js +0 -93
- package/dist/src/components/ProductPage/StockStatus/NotifyWhenBack.js.map +0 -1
- package/dist/src/components/ProductPage/StockStatus/StockOrb.js +0 -31
- package/dist/src/components/ProductPage/StockStatus/StockOrb.js.map +0 -1
- package/dist/src/components/ProductPage/StockStatus/StockStatusIndicator.js +0 -33
- package/dist/src/components/ProductPage/StockStatus/StockStatusIndicator.js.map +0 -1
- package/dist/src/components/ProductPage/StockStatus/WarehouseStock.js +0 -255
- package/dist/src/components/ProductPage/StockStatus/WarehouseStock.js.map +0 -1
- package/dist/src/components/ProductPage/VariantSelector.js +0 -138
- package/dist/src/components/ProductPage/VariantSelector.js.map +0 -1
- package/dist/src/components/ProductPage/styledComponents.js +0 -11
- package/dist/src/components/ProductPage/styledComponents.js.map +0 -1
- package/dist/src/components/ProductPage/useProductValidationMessage.js +0 -24
- package/dist/src/components/ProductPage/useProductValidationMessage.js.map +0 -1
- package/dist/src/components/SearchPage/CategoryList.js +0 -129
- package/dist/src/components/SearchPage/CategoryList.js.map +0 -1
- package/dist/src/components/SearchPage/EmptySearchResults.js +0 -23
- package/dist/src/components/SearchPage/EmptySearchResults.js.map +0 -1
- package/dist/src/components/SearchPage/SearchMeta.js +0 -27
- package/dist/src/components/SearchPage/SearchMeta.js.map +0 -1
- package/dist/src/components/SearchPage/SearchPage.js +0 -52
- package/dist/src/components/SearchPage/SearchPage.js.map +0 -1
- package/dist/src/components/SearchPage/SearchPage.loadable.js +0 -7
- package/dist/src/components/SearchPage/SearchPage.loadable.js.map +0 -1
- package/dist/src/components/SearchPage/SearchResults.js +0 -60
- package/dist/src/components/SearchPage/SearchResults.js.map +0 -1
- package/dist/src/components/SearchPage/SearchTerm.js +0 -11
- package/dist/src/components/SearchPage/SearchTerm.js.map +0 -1
- package/dist/src/components/SearchPage/WindowedSearchResults.js +0 -80
- package/dist/src/components/SearchPage/WindowedSearchResults.js.map +0 -1
- package/dist/src/components/SearchPage/index.js +0 -3
- package/dist/src/components/SearchPage/index.js.map +0 -1
- package/dist/src/components/Shop.js +0 -82
- package/dist/src/components/Shop.js.map +0 -1
- package/dist/src/components/StartPage/Content/Row.js +0 -40
- package/dist/src/components/StartPage/Content/Row.js.map +0 -1
- package/dist/src/components/StartPage/Content/StartPageCampaign.js +0 -112
- package/dist/src/components/StartPage/Content/StartPageCampaign.js.map +0 -1
- package/dist/src/components/StartPage/Content/StartPageCategories.js +0 -80
- package/dist/src/components/StartPage/Content/StartPageCategories.js.map +0 -1
- package/dist/src/components/StartPage/Content/StartPageHTMLContent.js +0 -74
- package/dist/src/components/StartPage/Content/StartPageHTMLContent.js.map +0 -1
- package/dist/src/components/StartPage/Content/StartPageHero.js +0 -73
- package/dist/src/components/StartPage/Content/StartPageHero.js.map +0 -1
- package/dist/src/components/StartPage/Content/StartPageProductGrid.js +0 -69
- package/dist/src/components/StartPage/Content/StartPageProductGrid.js.map +0 -1
- package/dist/src/components/StartPage/StartPage.js +0 -37
- package/dist/src/components/StartPage/StartPage.js.map +0 -1
- package/dist/src/components/StartPage/StartPage.loadable.js +0 -7
- package/dist/src/components/StartPage/StartPage.loadable.js.map +0 -1
- package/dist/src/components/StartPage/index.js +0 -3
- package/dist/src/components/StartPage/index.js.map +0 -1
- package/dist/src/components/Store/Store.js +0 -26
- package/dist/src/components/Store/Store.js.map +0 -1
- package/dist/src/components/Store/Store.loadable.js +0 -7
- package/dist/src/components/Store/Store.loadable.js.map +0 -1
- package/dist/src/components/Store/StoreDetail.js +0 -13
- package/dist/src/components/Store/StoreDetail.js.map +0 -1
- package/dist/src/components/StoreLocator/StoreList.js +0 -160
- package/dist/src/components/StoreLocator/StoreList.js.map +0 -1
- package/dist/src/components/StoreLocator/StoreLocator.js +0 -133
- package/dist/src/components/StoreLocator/StoreLocator.js.map +0 -1
- package/dist/src/components/StoreLocator/StoreLocator.loadable.js +0 -7
- package/dist/src/components/StoreLocator/StoreLocator.loadable.js.map +0 -1
- package/dist/src/components/StoreLocator/StoreMap.js +0 -116
- package/dist/src/components/StoreLocator/StoreMap.js.map +0 -1
- package/dist/src/components/StoreLocator/StoreMarker.js +0 -63
- package/dist/src/components/StoreLocator/StoreMarker.js.map +0 -1
- package/dist/src/components/StoreLocator/StoreSearch.js +0 -47
- package/dist/src/components/StoreLocator/StoreSearch.js.map +0 -1
- package/dist/src/components/StoreLocator/UserLocation.js +0 -76
- package/dist/src/components/StoreLocator/UserLocation.js.map +0 -1
- package/dist/src/components/StoreLocator/useLocationState.js +0 -14
- package/dist/src/components/StoreLocator/useLocationState.js.map +0 -1
- package/dist/src/components/StoreLocator/useMapState.js +0 -16
- package/dist/src/components/StoreLocator/useMapState.js.map +0 -1
- package/dist/src/components/Theme.js +0 -6
- package/dist/src/components/Theme.js.map +0 -1
- package/dist/src/components/ui/Badge.js +0 -33
- package/dist/src/components/ui/Badge.js.map +0 -1
- package/dist/src/components/ui/Button.js +0 -93
- package/dist/src/components/ui/Button.js.map +0 -1
- package/dist/src/components/ui/CloseButton.js +0 -18
- package/dist/src/components/ui/CloseButton.js.map +0 -1
- package/dist/src/components/ui/Divider.js +0 -11
- package/dist/src/components/ui/Divider.js.map +0 -1
- package/dist/src/components/ui/Headings.js +0 -19
- package/dist/src/components/ui/Headings.js.map +0 -1
- package/dist/src/components/ui/RadioGroupWithLabels.js +0 -16
- package/dist/src/components/ui/RadioGroupWithLabels.js.map +0 -1
- package/dist/src/components/ui/Spinner.js +0 -39
- package/dist/src/components/ui/Spinner.js.map +0 -1
- package/dist/src/fonts/loadFontCss.js +0 -51
- package/dist/src/fonts/loadFontCss.js.map +0 -1
- package/dist/src/globalStyles.js +0 -83
- package/dist/src/globalStyles.js.map +0 -1
- package/dist/src/server.js +0 -12
- package/dist/src/server.js.map +0 -1
- package/dist/src/shop.config.js +0 -68
- package/dist/src/shop.config.js.map +0 -1
- package/dist/src/theme-variables.js +0 -65
- package/dist/src/theme-variables.js.map +0 -1
- package/dist/translations/cs.json +0 -788
- package/dist/translations/da.json +0 -791
- package/dist/translations/de.json +0 -788
- package/dist/translations/en.json +0 -794
- package/dist/translations/es.json +0 -788
- package/dist/translations/et.json +0 -788
- package/dist/translations/fi.json +0 -794
- package/dist/translations/fr.json +0 -788
- package/dist/translations/index.js +0 -18
- package/dist/translations/index.js.map +0 -1
- package/dist/translations/it.json +0 -788
- package/dist/translations/lv.json +0 -788
- package/dist/translations/nb.json +0 -791
- package/dist/translations/nl.json +0 -788
- package/dist/translations/pl.json +0 -788
- package/dist/translations/ru.json +0 -788
- package/dist/translations/sk.json +0 -788
- package/dist/translations/sr.json +0 -464
- package/dist/translations/sv.json +0 -794
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { useQuery } from '@apollo/client';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { styled } from 'linaria/react';
|
|
4
|
-
import MaxWidth from '../Layout/MaxWidth';
|
|
5
|
-
import StoreDetail from './StoreDetail';
|
|
6
|
-
import StoreQuery from './StoreQuery.gql';
|
|
7
|
-
import { useParams } from 'react-router';
|
|
8
|
-
const Wrapper = styled(MaxWidth) `
|
|
9
|
-
margin: 2rem;
|
|
10
|
-
`;
|
|
11
|
-
function Store() {
|
|
12
|
-
const { id } = useParams();
|
|
13
|
-
const { data, loading, error } = useQuery(StoreQuery, { variables: { id } });
|
|
14
|
-
if (loading) {
|
|
15
|
-
return React.createElement(Wrapper, null, "Loading\u2026");
|
|
16
|
-
}
|
|
17
|
-
else if (error) {
|
|
18
|
-
return 'Something went wrong';
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
const { store } = data;
|
|
22
|
-
return (React.createElement(Wrapper, null, !store ? 'No store found!' : React.createElement(StoreDetail, { store: store })));
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
export default Store;
|
|
26
|
-
//# sourceMappingURL=Store.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Store.js","sourceRoot":"","sources":["../../../../src/components/Store/Store.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,QAAQ,MAAM,oBAAoB,CAAC;AAC1C,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,OAAO,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAA;;CAE/B,CAAC;AAEF,SAAS,KAAK;IACZ,MAAM,EAAE,EAAE,EAAE,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,QAAQ,CAAC,UAAU,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAE7E,IAAI,OAAO,EAAE;QACX,OAAO,oBAAC,OAAO,wBAAmB,CAAC;KACpC;SAAM,IAAI,KAAK,EAAE;QAChB,OAAO,sBAAsB,CAAC;KAC/B;SAAM;QACL,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;QAEvB,OAAO,CACL,oBAAC,OAAO,QACL,CAAC,KAAK,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,oBAAC,WAAW,IAAC,KAAK,EAAE,KAAK,GAAI,CACnD,CACX,CAAC;KACH;AACH,CAAC;AAED,eAAe,KAAK,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import loadable from '@loadable/component';
|
|
3
|
-
import LoadingPage from '../LoadingPage';
|
|
4
|
-
export default loadable(() => import('./Store'), {
|
|
5
|
-
fallback: React.createElement(LoadingPage, null)
|
|
6
|
-
});
|
|
7
|
-
//# sourceMappingURL=Store.loadable.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Store.loadable.js","sourceRoot":"","sources":["../../../../src/components/Store/Store.loadable.js"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAC3C,OAAO,WAAW,MAAM,gBAAgB,CAAC;AAEzC,eAAe,QAAQ,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE;IAC/C,QAAQ,EAAE,oBAAC,WAAW,OAAG;CAC1B,CAAC,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React, { PureComponent } from 'react';
|
|
2
|
-
export default class StoreDetail extends PureComponent {
|
|
3
|
-
render() {
|
|
4
|
-
const { store } = this.props;
|
|
5
|
-
return (React.createElement("div", null,
|
|
6
|
-
React.createElement("h1", null, store.name),
|
|
7
|
-
store.address1 && (React.createElement("addr", null,
|
|
8
|
-
React.createElement("div", { dangerouslySetInnerHTML: { __html: store.address1 } }),
|
|
9
|
-
store.address2 && (React.createElement("div", { dangerouslySetInnerHTML: { __html: store.address2 } })),
|
|
10
|
-
store.city && React.createElement("div", null, store.city)))));
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=StoreDetail.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StoreDetail.js","sourceRoot":"","sources":["../../../../src/components/Store/StoreDetail.js"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE7C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,aAAa;IACpD,MAAM;QACJ,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAE7B,OAAO,CACL;YACE,gCAAK,KAAK,CAAC,IAAI,CAAM;YACpB,KAAK,CAAC,QAAQ,IAAI,CACjB;gBACE,6BAAK,uBAAuB,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,QAAQ,EAAE,GAAI;gBAC3D,KAAK,CAAC,QAAQ,IAAI,CACjB,6BAAK,uBAAuB,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,QAAQ,EAAE,GAAI,CAC7D;gBACA,KAAK,CAAC,IAAI,IAAI,iCAAM,KAAK,CAAC,IAAI,CAAO,CACjC,CACR,CACG,CACP,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
import t from '@jetshop/intl';
|
|
2
|
-
import React, { useContext } from 'react';
|
|
3
|
-
import { styled } from 'linaria/react';
|
|
4
|
-
import { cx, css } from 'linaria';
|
|
5
|
-
import { StoreMarker } from './StoreMarker';
|
|
6
|
-
import { ReactComponent as CarrotSvg } from '@jetshop/ui/svg/Carrot.svg';
|
|
7
|
-
import { ReactComponent as DirectionsSvg } from '../../svg/Directions.svg';
|
|
8
|
-
import { LocationStateContext } from './StoreLocator';
|
|
9
|
-
import UserLocation from './UserLocation';
|
|
10
|
-
import { theme } from '../Theme';
|
|
11
|
-
const StoreListContainer = styled('ul') `
|
|
12
|
-
height: calc(100% - 94px);
|
|
13
|
-
overflow-y: auto;
|
|
14
|
-
|
|
15
|
-
.highlight {
|
|
16
|
-
background: yellow;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
img {
|
|
20
|
-
max-width: 100%;
|
|
21
|
-
height: auto;
|
|
22
|
-
}
|
|
23
|
-
`;
|
|
24
|
-
const StoreContainer = styled('li') `
|
|
25
|
-
width: 100%;
|
|
26
|
-
background: ${theme.colors.white};
|
|
27
|
-
padding: 24px;
|
|
28
|
-
margin: 8px 0;
|
|
29
|
-
|
|
30
|
-
font-size: 14px;
|
|
31
|
-
line-height: 1.4;
|
|
32
|
-
|
|
33
|
-
cursor: pointer;
|
|
34
|
-
|
|
35
|
-
&:first-child {
|
|
36
|
-
margin-top: 0;
|
|
37
|
-
}
|
|
38
|
-
&:last-child {
|
|
39
|
-
margin-bottom: 0;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
> div {
|
|
43
|
-
display: flex;
|
|
44
|
-
|
|
45
|
-
&.expanded-content {
|
|
46
|
-
padding: 24px 24px 0 36px;
|
|
47
|
-
max-height: 0;
|
|
48
|
-
overflow: hidden;
|
|
49
|
-
transition-property: max-height;
|
|
50
|
-
transition-duration: 0.2s;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&.expanded {
|
|
55
|
-
> div.expanded-content {
|
|
56
|
-
max-height: 600px;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
svg.carrot {
|
|
60
|
-
transform: rotate(0deg);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
:focus {
|
|
65
|
-
outline: 1px solid ${theme.colors.blue};
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
svg.carrot {
|
|
69
|
-
transition-property: transform;
|
|
70
|
-
transition-duration: 0.2s;
|
|
71
|
-
}
|
|
72
|
-
`;
|
|
73
|
-
const StoreColumn = styled('div') `
|
|
74
|
-
flex: 1;
|
|
75
|
-
margin-top: -4px;
|
|
76
|
-
position: relative;
|
|
77
|
-
|
|
78
|
-
padding: 0 16px 0 0;
|
|
79
|
-
|
|
80
|
-
.contact-icon {
|
|
81
|
-
position: absolute;
|
|
82
|
-
left: -6px;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
a {
|
|
86
|
-
color: #000;
|
|
87
|
-
padding: 4px 0 8px;
|
|
88
|
-
}
|
|
89
|
-
`;
|
|
90
|
-
const secondStoreColumn = css `
|
|
91
|
-
padding: 0 8px 0 16px;
|
|
92
|
-
`;
|
|
93
|
-
const CarrotContainer = styled('div') `
|
|
94
|
-
flex: 0 0 24px;
|
|
95
|
-
background: ${theme.colors.background};
|
|
96
|
-
width: 24px;
|
|
97
|
-
height: 24px;
|
|
98
|
-
border-radius: 50%;
|
|
99
|
-
align-self: center;
|
|
100
|
-
|
|
101
|
-
svg {
|
|
102
|
-
width: 12px;
|
|
103
|
-
height: 12px;
|
|
104
|
-
margin: 6px;
|
|
105
|
-
|
|
106
|
-
transform: rotate(-90deg);
|
|
107
|
-
}
|
|
108
|
-
`;
|
|
109
|
-
const humanDistance = distance => distance > 10
|
|
110
|
-
? t('{km} km', { km: Math.round(distance) })
|
|
111
|
-
: distance > 1
|
|
112
|
-
? t('{km} km', { km: distance.toFixed(1) })
|
|
113
|
-
: t('{m} m', { m: Math.round(distance * 1000) });
|
|
114
|
-
const contactParser = html => {
|
|
115
|
-
var _a;
|
|
116
|
-
return (_a = html === null || html === void 0 ? void 0 : html.replace('Tel: ', '<span class="contact-icon">📞</span>')) === null || _a === void 0 ? void 0 : _a.replace('Email: ', '<span class="contact-icon">🖂</span>');
|
|
117
|
-
};
|
|
118
|
-
const Carrot = () => (React.createElement(CarrotContainer, null,
|
|
119
|
-
React.createElement(CarrotSvg, { className: "carrot" })));
|
|
120
|
-
const Store = ({ storeNr, distances, store: { id, name, address1, openHours, description, coordinates, contact } }) => {
|
|
121
|
-
const locationState = useContext(LocationStateContext);
|
|
122
|
-
const active = id === locationState.activeLocation;
|
|
123
|
-
const expanded = id === locationState.expandedLocation;
|
|
124
|
-
return (React.createElement(StoreContainer, { onMouseEnter: () => locationState.setHighlightedLocation(id), onMouseLeave: () => locationState.setHighlightedLocation(null), onClick: () => locationState.toggleExpandedLocation(id), onKeyPress: e => {
|
|
125
|
-
if ((e.keyCode || e.which) === 13)
|
|
126
|
-
locationState.toggleExpandedLocation(id);
|
|
127
|
-
}, tabIndex: 0, className: cx(expanded ? 'expanded' : null) },
|
|
128
|
-
React.createElement("div", null,
|
|
129
|
-
React.createElement(StoreMarker, { nr: storeNr, active: active }),
|
|
130
|
-
React.createElement(StoreColumn, null,
|
|
131
|
-
React.createElement("p", null,
|
|
132
|
-
React.createElement("strong", { dangerouslySetInnerHTML: { __html: name } })),
|
|
133
|
-
React.createElement("div", { dangerouslySetInnerHTML: { __html: address1 } })),
|
|
134
|
-
React.createElement(StoreColumn, { className: secondStoreColumn },
|
|
135
|
-
React.createElement("p", null,
|
|
136
|
-
React.createElement("strong", null, t('Opening hours'))),
|
|
137
|
-
React.createElement("div", { dangerouslySetInnerHTML: { __html: openHours } }),
|
|
138
|
-
!expanded && distances[id] && (React.createElement("p", { style: { color: '#8a8a8a' } },
|
|
139
|
-
t('Distance'),
|
|
140
|
-
": ",
|
|
141
|
-
humanDistance(distances[id])))),
|
|
142
|
-
React.createElement(Carrot, null)),
|
|
143
|
-
React.createElement("div", { className: "expanded-content" },
|
|
144
|
-
React.createElement(StoreColumn, { dangerouslySetInnerHTML: { __html: description } }),
|
|
145
|
-
React.createElement(StoreColumn, { className: secondStoreColumn },
|
|
146
|
-
React.createElement("p", null,
|
|
147
|
-
React.createElement("strong", null, t('Contact'))),
|
|
148
|
-
React.createElement("div", { dangerouslySetInnerHTML: { __html: contactParser(contact) }, style: { marginBottom: '24px' } }),
|
|
149
|
-
coordinates && (React.createElement(React.Fragment, null,
|
|
150
|
-
React.createElement("p", null,
|
|
151
|
-
React.createElement(DirectionsSvg, { className: "contact-icon" }),
|
|
152
|
-
React.createElement("a", { target: "_blank", rel: "noopener noreferrer", href: `https://www.google.com/maps/dir/${coordinates.latitude},${coordinates.longitude}` }, t('Directions'))),
|
|
153
|
-
distances[id] && React.createElement("p", null, humanDistance(distances[id]))))))));
|
|
154
|
-
};
|
|
155
|
-
const StoreList = ({ stores, userLocation, setUserLocation, distances }) => (React.createElement(StoreListContainer, null,
|
|
156
|
-
React.createElement(UserLocation, { setUserLocation: setUserLocation }),
|
|
157
|
-
stores &&
|
|
158
|
-
stores.map((store, index) => (React.createElement(Store, { key: index, storeNr: index + 1, store: store, distances: distances })))));
|
|
159
|
-
export default StoreList;
|
|
160
|
-
//# sourceMappingURL=StoreList.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StoreList.js","sourceRoot":"","sources":["../../../../src/components/StoreLocator/StoreList.js"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,eAAe,CAAC;AAC9B,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,SAAS,CAAC;AAElC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,cAAc,IAAI,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,cAAc,IAAI,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAE1C,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,MAAM,kBAAkB,GAAG,MAAM,CAAC,IAAI,CAAC,CAAA;;;;;;;;;;;;CAYtC,CAAC;AAEF,MAAM,cAAc,GAAG,MAAM,CAAC,IAAI,CAAC,CAAA;;gBAEnB,KAAK,CAAC,MAAM,CAAC,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAuCT,KAAK,CAAC,MAAM,CAAC,IAAI;;;;;;;CAOzC,CAAC;AAEF,MAAM,WAAW,GAAG,MAAM,CAAC,KAA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AE,SAAS,GACpB,CACH,CAAC,CACe,CACtB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { Query } from '@apollo/client/react/components';
|
|
2
|
-
import t from '@jetshop/intl';
|
|
3
|
-
import React, { useState } from 'react';
|
|
4
|
-
import { styled } from 'linaria/react';
|
|
5
|
-
import { fuzzySearch } from '@jetshop/ui/fuzzySearch';
|
|
6
|
-
import { Above } from '@jetshop/ui/Breakpoints';
|
|
7
|
-
import { distance } from '@jetshop/core/helpers/distance';
|
|
8
|
-
import MaxWidth from '../Layout/MaxWidth';
|
|
9
|
-
import LoadingPage from '../LoadingPage';
|
|
10
|
-
import storeLocatorQuery from './StoreLocator.gql';
|
|
11
|
-
import StoreSearch from './StoreSearch';
|
|
12
|
-
import StoreList from './StoreList';
|
|
13
|
-
import StoreMap from './StoreMap';
|
|
14
|
-
import { useLocationState } from './useLocationState';
|
|
15
|
-
import Head from '@jetshop/core/components/Head';
|
|
16
|
-
import { Intl } from '@jetshop/intl';
|
|
17
|
-
import { theme } from '../Theme';
|
|
18
|
-
const Flex = styled('div') `
|
|
19
|
-
display: flex;
|
|
20
|
-
|
|
21
|
-
h1 {
|
|
22
|
-
margin-bottom: 0.5em;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
> div {
|
|
26
|
-
flex: 1;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
${theme.below.lg} {
|
|
30
|
-
flex-direction: column;
|
|
31
|
-
}
|
|
32
|
-
`;
|
|
33
|
-
const Header = styled(Flex) `
|
|
34
|
-
padding: 3rem 0;
|
|
35
|
-
background: #fff;
|
|
36
|
-
`;
|
|
37
|
-
const StoreLocatorWrapper = styled(MaxWidth) `
|
|
38
|
-
${theme.below.lg} {
|
|
39
|
-
padding: 0;
|
|
40
|
-
}
|
|
41
|
-
`;
|
|
42
|
-
const StoreLocatorContent = styled(Flex) `
|
|
43
|
-
height: 60vh;
|
|
44
|
-
|
|
45
|
-
${theme.below.lg} {
|
|
46
|
-
height: unset;
|
|
47
|
-
}
|
|
48
|
-
`;
|
|
49
|
-
const SearchAndListContainer = styled('div') `
|
|
50
|
-
flex: 0 0 40% !important;
|
|
51
|
-
height: 100%;
|
|
52
|
-
`;
|
|
53
|
-
export const LocationStateContext = React.createContext(null);
|
|
54
|
-
const StoreLocator = () => {
|
|
55
|
-
const locationState = useLocationState();
|
|
56
|
-
const [search, setSearch] = useState('');
|
|
57
|
-
const [userLocation, setUserLocation] = useState({
|
|
58
|
-
latitude: null,
|
|
59
|
-
longitude: null
|
|
60
|
-
});
|
|
61
|
-
const [closestStore, setClosestStore] = useState(null);
|
|
62
|
-
const [distances, setDistances] = useState({});
|
|
63
|
-
const genDistances = stores => {
|
|
64
|
-
if (userLocation.latitude == null)
|
|
65
|
-
return;
|
|
66
|
-
let distances = {};
|
|
67
|
-
let closestStore = {};
|
|
68
|
-
stores
|
|
69
|
-
.filter(store => store.coordinates)
|
|
70
|
-
.forEach(store => {
|
|
71
|
-
const thisDistance = distance(userLocation, store.coordinates);
|
|
72
|
-
distances[store.id] = thisDistance;
|
|
73
|
-
// If we haven't got a store in the closestStore obj yet, set it to this one
|
|
74
|
-
if (!closestStore.distance) {
|
|
75
|
-
closestStore = Object.assign(Object.assign({}, store), { distance: thisDistance });
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
// If this store is closer than the one currently stored in closestStore,
|
|
79
|
-
// override it
|
|
80
|
-
if (thisDistance < closestStore.distance) {
|
|
81
|
-
closestStore = Object.assign(Object.assign({}, store), { distance: thisDistance });
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
setDistances(distances);
|
|
85
|
-
setClosestStore(closestStore);
|
|
86
|
-
};
|
|
87
|
-
return (React.createElement(React.Fragment, null,
|
|
88
|
-
React.createElement(Intl, null, t => React.createElement(Head, { data: { title: t('Find store') } })),
|
|
89
|
-
React.createElement(Header, null,
|
|
90
|
-
React.createElement(MaxWidth, null,
|
|
91
|
-
React.createElement("div", null,
|
|
92
|
-
React.createElement("h1", null, t('Find store')),
|
|
93
|
-
React.createElement("p", null, t('This is where you find our stores. Get informed about the stock status in your local store here. Find and select the store that is closest to you.'))))),
|
|
94
|
-
React.createElement(StoreLocatorWrapper, null,
|
|
95
|
-
React.createElement(StoreLocatorContent, null,
|
|
96
|
-
React.createElement(Query, { query: storeLocatorQuery }, ({ data, loading }) => {
|
|
97
|
-
if (loading)
|
|
98
|
-
return React.createElement(LoadingPage, null);
|
|
99
|
-
if (userLocation.latitude && !closestStore)
|
|
100
|
-
genDistances(data.stores);
|
|
101
|
-
const stores = search.length === 0
|
|
102
|
-
? data.stores
|
|
103
|
-
: fuzzySearch({
|
|
104
|
-
data: data.stores,
|
|
105
|
-
keys: ['name', 'address1'],
|
|
106
|
-
searchTerm: search
|
|
107
|
-
});
|
|
108
|
-
const storeSearchProps = { search, setSearch };
|
|
109
|
-
const storeListProps = {
|
|
110
|
-
stores,
|
|
111
|
-
userLocation,
|
|
112
|
-
setUserLocation,
|
|
113
|
-
distances
|
|
114
|
-
};
|
|
115
|
-
const storeMapProps = {
|
|
116
|
-
stores,
|
|
117
|
-
userLocation,
|
|
118
|
-
closestStore,
|
|
119
|
-
distances
|
|
120
|
-
};
|
|
121
|
-
return (React.createElement(LocationStateContext.Provider, { value: locationState },
|
|
122
|
-
React.createElement(Above, { breakpoint: "lg" }, matches => matches ? (React.createElement(React.Fragment, null,
|
|
123
|
-
React.createElement(SearchAndListContainer, null,
|
|
124
|
-
React.createElement(StoreSearch, Object.assign({}, storeSearchProps)),
|
|
125
|
-
React.createElement(StoreList, Object.assign({}, storeListProps))),
|
|
126
|
-
React.createElement(StoreMap, Object.assign({}, storeMapProps)))) : (React.createElement(React.Fragment, null,
|
|
127
|
-
React.createElement(StoreSearch, Object.assign({}, storeSearchProps)),
|
|
128
|
-
React.createElement(StoreMap, Object.assign({}, storeMapProps)),
|
|
129
|
-
React.createElement(StoreList, Object.assign({}, storeListProps)))))));
|
|
130
|
-
})))));
|
|
131
|
-
};
|
|
132
|
-
export default StoreLocator;
|
|
133
|
-
//# sourceMappingURL=StoreLocator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StoreLocator.js","sourceRoot":"","sources":["../../../../src/components/StoreLocator/StoreLocator.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAExD,OAAO,CAAC,MAAM,eAAe,CAAC;AAC9B,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAE1D,OAAO,QAAQ,MAAM,oBAAoB,CAAC;AAC1C,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,iBAAiB,MAAM,oBAAoB,CAAC;AACnD,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,IAAI,MAAM,+BAA+B,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;;;;;;;;;;;IAWtB,KAAK,CAAC,KAAK,CAAC,EAAE;;;CAGjB,CAAC;AAEF,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,CAAA;;;CAG1B,CAAC;AAEF,MAAM,mBAAmB,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAA;IAC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BAAgB,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;oBAC/C,MAAM,cAAc,GAAG;wBACrB,MAAM;wBACN,YAAY;wBACZ,eAAe;wBACf,SAAS;qBACV,CAAC;oBACF,MAAM,aAAa,GAAG;wBACpB,MAAM;wBACN,YAAY;wBACZ,YAAY;wBACZ,SAAS;qBACV,CAAC;oBAEF,OAAO,CACL,oBAAC,oBAAoB,CAAC,QAAQ,IAAC,KAAK,EAAE,aAAa;wBACjD,oBAAC,KAAK,IAAC,UAAU,EAAC,IAAI,IACnB,OAAO,CAAC,EAAE,CACT,OAAO,CAAC,CAAC,CAAC,CACR;4BACE,oBAAC,sBAAsB;gCACrB,oBAAC,WAAW,oBAAK,gBAAgB,EAAI;gCACrC,oBAAC,SAAS,oBAAK,cAAc,EAAI,CACV;4BACzB,oBAAC,QAAQ,oBAAK,aAAa,EAAI,CAC9B,CACJ,CAAC,CAAC,CAAC,CACF;4BACE,oBAAC,WAAW,oBAAK,gBAAgB,EAAI;4BACrC,oBAAC,QAAQ,oBAAK,aAAa,EAAI;4BAC/B,oBAAC,SAAS,oBAAK,cAAc,EAAI,CAChC,CACJ,CAEG,CACsB,CACjC,CAAC;gBACJ,CAAC,CACK,CACY,CACF,CACrB,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import loadable from '@loadable/component';
|
|
3
|
-
import LoadingPage from '../LoadingPage';
|
|
4
|
-
export default loadable(() => import('./StoreLocator'), {
|
|
5
|
-
fallback: React.createElement(LoadingPage, null)
|
|
6
|
-
});
|
|
7
|
-
//# sourceMappingURL=StoreLocator.loadable.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StoreLocator.loadable.js","sourceRoot":"","sources":["../../../../src/components/StoreLocator/StoreLocator.loadable.js"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAC3C,OAAO,WAAW,MAAM,gBAAgB,CAAC;AAEzC,eAAe,QAAQ,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE;IACtD,QAAQ,EAAE,oBAAC,WAAW,OAAG;CAC1B,CAAC,CAAC"}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { GoogleMap, InfoWindow, LoadScript, Marker } from '@react-google-maps/api';
|
|
2
|
-
import React, { useContext, useEffect, useRef, useState } from 'react';
|
|
3
|
-
import { styled } from 'linaria/react';
|
|
4
|
-
import { LocationStateContext } from './StoreLocator';
|
|
5
|
-
import { useMapState } from './useMapState';
|
|
6
|
-
import { useShopConfig } from '@jetshop/core/hooks/useShopConfig';
|
|
7
|
-
import throwErrorInDev from '@jetshop/core/helpers/throwErrorInDev';
|
|
8
|
-
import { theme } from '../Theme';
|
|
9
|
-
const Wrapper = styled('div') `
|
|
10
|
-
flex: 0 0 60%;
|
|
11
|
-
|
|
12
|
-
.map-container {
|
|
13
|
-
min-height: 100%;
|
|
14
|
-
|
|
15
|
-
${theme.below.lg} {
|
|
16
|
-
height: 50vh;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
`;
|
|
20
|
-
const LoadingElement = () => React.createElement("div", { style: { height: '100%' } });
|
|
21
|
-
const StoreMap = ({ stores, userLocation, closestStore }) => {
|
|
22
|
-
const ref = useRef();
|
|
23
|
-
const locationState = useContext(LocationStateContext);
|
|
24
|
-
const { isOpen, infoId, showInfo } = useMapState();
|
|
25
|
-
const [mapsLoaded, setMapsLoaded] = useState(false);
|
|
26
|
-
const { googleMapsApiKey } = useShopConfig();
|
|
27
|
-
throwErrorInDev(typeof googleMapsApiKey === 'undefined', 'Make sure googleMapsApiKey is defined in your shop.config.js. See https://developers.google.com/maps/documentation/javascript/get-api-key');
|
|
28
|
-
useEffect(() => {
|
|
29
|
-
if (stores && mapsLoaded) {
|
|
30
|
-
// Stores are loaded, fit bounds
|
|
31
|
-
const bounds = new window.google.maps.LatLngBounds();
|
|
32
|
-
stores
|
|
33
|
-
.filter(store => store.coordinates)
|
|
34
|
-
.map(store => {
|
|
35
|
-
var _a, _b;
|
|
36
|
-
return bounds.extend(new window.google.maps.LatLng((_a = store === null || store === void 0 ? void 0 : store.coordinates) === null || _a === void 0 ? void 0 : _a.latitude, (_b = store === null || store === void 0 ? void 0 : store.coordinates) === null || _b === void 0 ? void 0 : _b.longitude));
|
|
37
|
-
});
|
|
38
|
-
// Don't zoom in too far on only one marker
|
|
39
|
-
if (bounds.getNorthEast().equals(bounds.getSouthWest())) {
|
|
40
|
-
const extendPoint1 = new window.google.maps.LatLng(bounds.getNorthEast().lat() + 0.01, bounds.getNorthEast().lng() + 0.01);
|
|
41
|
-
const extendPoint2 = new window.google.maps.LatLng(bounds.getNorthEast().lat() - 0.01, bounds.getNorthEast().lng() - 0.01);
|
|
42
|
-
bounds.extend(extendPoint1);
|
|
43
|
-
bounds.extend(extendPoint2);
|
|
44
|
-
}
|
|
45
|
-
ref.current.fitBounds(bounds);
|
|
46
|
-
}
|
|
47
|
-
}, [mapsLoaded, stores]);
|
|
48
|
-
useEffect(() => {
|
|
49
|
-
var _a, _b;
|
|
50
|
-
if (closestStore && mapsLoaded) {
|
|
51
|
-
// User has shared its location and the closest store has been calculated
|
|
52
|
-
const bounds = new window.google.maps.LatLngBounds();
|
|
53
|
-
bounds.extend(new window.google.maps.LatLng(userLocation.latitude, userLocation.longitude));
|
|
54
|
-
bounds.extend(new window.google.maps.LatLng((_a = closestStore === null || closestStore === void 0 ? void 0 : closestStore.coordinates) === null || _a === void 0 ? void 0 : _a.latitude, (_b = closestStore === null || closestStore === void 0 ? void 0 : closestStore.coordinates) === null || _b === void 0 ? void 0 : _b.longitude));
|
|
55
|
-
ref.current.fitBounds(bounds);
|
|
56
|
-
}
|
|
57
|
-
}, [userLocation, closestStore, mapsLoaded]);
|
|
58
|
-
return (React.createElement(Wrapper, null,
|
|
59
|
-
React.createElement(React.Fragment, null,
|
|
60
|
-
React.createElement(LoadScript, { loadingElement: React.createElement(LoadingElement, null), preventGoogleFontsLoading: true, googleMapsApiKey: googleMapsApiKey },
|
|
61
|
-
React.createElement(GoogleMap, { defaultZoom: 6, mapContainerClassName: "map-container", defaultCenter: { lat: 59.247948, lng: 14.755806 }, onLoad: map => {
|
|
62
|
-
ref.current = map;
|
|
63
|
-
setMapsLoaded(true);
|
|
64
|
-
} },
|
|
65
|
-
React.createElement(React.Fragment, null,
|
|
66
|
-
userLocation.latitude && userLocation.longitude && (React.createElement(Marker, { position: {
|
|
67
|
-
lat: userLocation.latitude,
|
|
68
|
-
lng: userLocation.longitude
|
|
69
|
-
} })),
|
|
70
|
-
mapsLoaded &&
|
|
71
|
-
stores
|
|
72
|
-
.filter(store => store.coordinates)
|
|
73
|
-
.map((store, index) => {
|
|
74
|
-
var _a, _b, _c, _d;
|
|
75
|
-
const isActive = store.id === locationState.activeLocation;
|
|
76
|
-
return (React.createElement(React.Fragment, { key: store.id },
|
|
77
|
-
React.createElement(Marker, { icon: {
|
|
78
|
-
path: 'M23.011 12.068C23.011 20.7463 11.8531 28.1849 11.8531 28.1849C11.8531 28.1849 0.695312 20.7463 0.695312 12.068C0.695313 9.10875 1.87087 6.27071 3.96337 4.17821C6.05587 2.08571 8.89391 0.910156 11.8531 0.910156C14.8124 0.910156 17.6504 2.08571 19.7429 4.17821C21.8354 6.27071 23.011 9.10875 23.011 12.068Z',
|
|
79
|
-
fillColor: isActive ? theme.colors.blue : 'white',
|
|
80
|
-
fillOpacity: 1,
|
|
81
|
-
strokeColor: theme.colors.blue,
|
|
82
|
-
anchor: new window.google.maps.Point(12, 32),
|
|
83
|
-
scale: isActive ? 1.25 : 1.2,
|
|
84
|
-
labelOrigin: new window.google.maps.Point(12, 14)
|
|
85
|
-
}, zIndex: index, position: {
|
|
86
|
-
lat: (_a = store === null || store === void 0 ? void 0 : store.coordinates) === null || _a === void 0 ? void 0 : _a.latitude,
|
|
87
|
-
lng: (_b = store === null || store === void 0 ? void 0 : store.coordinates) === null || _b === void 0 ? void 0 : _b.longitude
|
|
88
|
-
}, label: {
|
|
89
|
-
text: `${index + 1}`,
|
|
90
|
-
color: isActive ? 'white' : theme.colors.blue,
|
|
91
|
-
fontSize: '16px'
|
|
92
|
-
}, onMouseOver: () => {
|
|
93
|
-
locationState.setHighlightedLocation(store.id);
|
|
94
|
-
}, onMouseOut: () => locationState.setHighlightedLocation(null), onClick: () => showInfo(store.id) }),
|
|
95
|
-
isOpen && infoId === store.id && (React.createElement(InfoWindow, { key: `infowindow-${store.id}`, onCloseClick: showInfo, position: {
|
|
96
|
-
lat: (_c = store === null || store === void 0 ? void 0 : store.coordinates) === null || _c === void 0 ? void 0 : _c.latitude,
|
|
97
|
-
lng: (_d = store === null || store === void 0 ? void 0 : store.coordinates) === null || _d === void 0 ? void 0 : _d.longitude
|
|
98
|
-
}, options: {
|
|
99
|
-
pixelOffset: new window.google.maps.Size(50, 0)
|
|
100
|
-
} },
|
|
101
|
-
React.createElement("div", { style: {
|
|
102
|
-
background: 'white',
|
|
103
|
-
padding: '1em',
|
|
104
|
-
minWidth: '200px',
|
|
105
|
-
fontSize: '14px',
|
|
106
|
-
lineHeight: 1.5
|
|
107
|
-
} },
|
|
108
|
-
React.createElement("p", null,
|
|
109
|
-
React.createElement("strong", null, store.name)),
|
|
110
|
-
React.createElement("div", { dangerouslySetInnerHTML: {
|
|
111
|
-
__html: store.address1
|
|
112
|
-
} }))))));
|
|
113
|
-
})))))));
|
|
114
|
-
};
|
|
115
|
-
export default StoreMap;
|
|
116
|
-
//# sourceMappingURL=StoreMap.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StoreMap.js","sourceRoot":"","sources":["../../../../src/components/StoreLocator/StoreMap.js"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,UAAU,EACV,UAAU,EACV,MAAM,EACP,MAAM,wBAAwB,C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perty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import React from 'react';
|
|
13
|
-
import { styled } from 'linaria/react';
|
|
14
|
-
import { cx } from 'linaria';
|
|
15
|
-
import { ReactComponent as MapPinSvg } from '../../svg/MapPin.svg';
|
|
16
|
-
import { theme } from '../Theme';
|
|
17
|
-
const MarkerContainer = styled('div') `
|
|
18
|
-
position: relative;
|
|
19
|
-
width: 24px;
|
|
20
|
-
height: 29px;
|
|
21
|
-
margin-right: 12px;
|
|
22
|
-
|
|
23
|
-
svg {
|
|
24
|
-
fill: ${theme.colors.white};
|
|
25
|
-
|
|
26
|
-
width: 100%;
|
|
27
|
-
height: 100%;
|
|
28
|
-
}
|
|
29
|
-
&.active {
|
|
30
|
-
svg {
|
|
31
|
-
fill: ${theme.colors.blue};
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
span {
|
|
35
|
-
color: ${theme.colors.white};
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
span {
|
|
40
|
-
position: absolute;
|
|
41
|
-
top: 0;
|
|
42
|
-
left: 0;
|
|
43
|
-
bottom: 3px;
|
|
44
|
-
right: 0;
|
|
45
|
-
|
|
46
|
-
display: flex;
|
|
47
|
-
justify-content: center;
|
|
48
|
-
align-items: center;
|
|
49
|
-
|
|
50
|
-
font-family: 'Source Sans Pro', sans-serif;
|
|
51
|
-
font-size: 16px;
|
|
52
|
-
line-height: 1;
|
|
53
|
-
|
|
54
|
-
color: ${theme.colors.blue};
|
|
55
|
-
}
|
|
56
|
-
`;
|
|
57
|
-
export const StoreMarker = (_a) => {
|
|
58
|
-
var { nr, active, large } = _a, rest = __rest(_a, ["nr", "active", "large"]);
|
|
59
|
-
return (React.createElement(MarkerContainer, Object.assign({ className: cx(active ? 'active' : null) }, rest),
|
|
60
|
-
React.createElement(MapPinSvg, null),
|
|
61
|
-
React.createElement("span", null, nr)));
|
|
62
|
-
};
|
|
63
|
-
//# sourceMappingURL=StoreMarker.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StoreMarker.js","sourceRoot":"","sources":["../../../../src/components/StoreLocator/StoreMarker.js"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAC7B,OAAO,EAAE,cAAc,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEnE,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,MAAM,eAAe,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;;;;;;;YAOzB,KAAK,CAAC,MAAM,CAAC,KAAK;;;;;;;cAOhB,KAAK,CAAC,MAAM,CAAC,IAAI;;;;eAIhB,KAAK,CAAC,MAAM,CAAC,KAAK;;;;;;;;;;;;;;;;;;;aAmBpB,KAAK,CAAC,MAAM,CAAC,IAAI;;CAE7B,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAA8B,EAAE,EAAE;QAAlC,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,OAAW,EAAN,IAAI,cAA5B,yBAA8B,CAAF;IAAO,OAAA,CAC7D,oBAAC,eAAe,kBAAC,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,IAAM,IAAI;QAChE,oBAAC,SAAS,OAAG;QACb,kCAAO,EAAE,CAAQ,CACD,CACnB,CAAA;CAAA,CAAC"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { styled } from 'linaria/react';
|
|
3
|
-
import { Intl } from '@jetshop/intl';
|
|
4
|
-
import { ReactComponent as SearchSvg } from '../../svg/Search.svg';
|
|
5
|
-
const SearchContainer = styled('div') `
|
|
6
|
-
position: relative;
|
|
7
|
-
width: 100%;
|
|
8
|
-
padding: 24px;
|
|
9
|
-
|
|
10
|
-
label {
|
|
11
|
-
padding-left: 25px;
|
|
12
|
-
margin-bottom: 0.25rem;
|
|
13
|
-
display: block;
|
|
14
|
-
font-size: 0.875rem;
|
|
15
|
-
color: #707070;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
input {
|
|
19
|
-
width: 100%;
|
|
20
|
-
height: 46px;
|
|
21
|
-
padding: 0 48px 0 24px;
|
|
22
|
-
|
|
23
|
-
font-size: 16px;
|
|
24
|
-
border-radius: 27px;
|
|
25
|
-
border: 1px solid #e0e0e0;
|
|
26
|
-
outline: none;
|
|
27
|
-
|
|
28
|
-
font-family: 'Source Sans Pro', sans-serif;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
svg {
|
|
32
|
-
position: absolute;
|
|
33
|
-
top: 56px;
|
|
34
|
-
right: 48px;
|
|
35
|
-
width: 1em;
|
|
36
|
-
height: 1.2em;
|
|
37
|
-
}
|
|
38
|
-
`;
|
|
39
|
-
const StoreSearch = ({ search, setSearch }) => (React.createElement(SearchContainer, null,
|
|
40
|
-
React.createElement(Intl, null, t => (React.createElement(React.Fragment, null,
|
|
41
|
-
React.createElement("label", { htmlFor: "search-field" }, t('Search')),
|
|
42
|
-
React.createElement("input", { id: "search-field", value: search, onChange: e => {
|
|
43
|
-
setSearch(e.target.value);
|
|
44
|
-
}, placeholder: t('Type your search here') })))),
|
|
45
|
-
React.createElement(SearchSvg, null)));
|
|
46
|
-
export default StoreSearch;
|
|
47
|
-
//# sourceMappingURL=StoreSearch.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StoreSearch.js","sourceRoot":"","sources":["../../../../src/components/StoreLocator/StoreSearch.js"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,cAAc,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEnE,MAAM,eAAe,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCpC,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAC7C,oBAAC,eAAe;IACd,oBAAC,IAAI,QACF,CAAC,CAAC,EAAE,CAAC,CACJ;QACE,+BAAO,OAAO,EAAC,cAAc,IAAE,CAAC,CAAC,QAAQ,CAAC,CAAS;QACnD,+BACE,EAAE,EAAC,cAAc,EACjB,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,CAAC,CAAC,EAAE;gBACZ,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YAC5B,CAAC,EACD,WAAW,EAAE,CAAC,CAAC,uBAAuB,CAAC,GACvC,CACD,CACJ,CACI;IACP,oBAAC,SAAS,OAAG,CACG,CACnB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|