@webshopmanager/partslogic-ui 1.3.1-al176.1
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/CHANGELOG.md +3 -0
- package/README.md +262 -0
- package/build/Alert/index.css +1 -0
- package/build/Alert/index.esm.js +8 -0
- package/build/Alert/index.esm.js.map +1 -0
- package/build/Alert/index.js +8 -0
- package/build/Alert/index.js.map +1 -0
- package/build/Alert/index.umd.js +8 -0
- package/build/Alert/index.umd.js.map +1 -0
- package/build/Alert/package.json +6 -0
- package/build/BreadCrumb/index.css +1 -0
- package/build/BreadCrumb/index.esm.js +22 -0
- package/build/BreadCrumb/index.esm.js.map +1 -0
- package/build/BreadCrumb/index.js +22 -0
- package/build/BreadCrumb/index.js.map +1 -0
- package/build/BreadCrumb/index.umd.js +22 -0
- package/build/BreadCrumb/index.umd.js.map +1 -0
- package/build/BreadCrumb/package.json +6 -0
- package/build/CategoryCarousel/index.css +1 -0
- package/build/CategoryCarousel/index.esm.js +22 -0
- package/build/CategoryCarousel/index.esm.js.map +1 -0
- package/build/CategoryCarousel/index.js +22 -0
- package/build/CategoryCarousel/index.js.map +1 -0
- package/build/CategoryCarousel/index.umd.js +22 -0
- package/build/CategoryCarousel/index.umd.js.map +1 -0
- package/build/CategoryCarousel/package.json +6 -0
- package/build/CategoryCarouselWrapper/index.css +1 -0
- package/build/CategoryCarouselWrapper/index.esm.js +22 -0
- package/build/CategoryCarouselWrapper/index.esm.js.map +1 -0
- package/build/CategoryCarouselWrapper/index.js +22 -0
- package/build/CategoryCarouselWrapper/index.js.map +1 -0
- package/build/CategoryCarouselWrapper/index.umd.js +22 -0
- package/build/CategoryCarouselWrapper/index.umd.js.map +1 -0
- package/build/CategoryCarouselWrapper/package.json +6 -0
- package/build/CategoryList/index.css +1 -0
- package/build/CategoryList/index.esm.js +22 -0
- package/build/CategoryList/index.esm.js.map +1 -0
- package/build/CategoryList/index.js +22 -0
- package/build/CategoryList/index.js.map +1 -0
- package/build/CategoryList/index.umd.js +22 -0
- package/build/CategoryList/index.umd.js.map +1 -0
- package/build/CategoryList/package.json +6 -0
- package/build/CategoryListWrapper/index.css +1 -0
- package/build/CategoryListWrapper/index.esm.js +22 -0
- package/build/CategoryListWrapper/index.esm.js.map +1 -0
- package/build/CategoryListWrapper/index.js +22 -0
- package/build/CategoryListWrapper/index.js.map +1 -0
- package/build/CategoryListWrapper/index.umd.js +22 -0
- package/build/CategoryListWrapper/index.umd.js.map +1 -0
- package/build/CategoryListWrapper/package.json +6 -0
- package/build/FacetFilter/index.css +1 -0
- package/build/FacetFilter/index.esm.js +22 -0
- package/build/FacetFilter/index.esm.js.map +1 -0
- package/build/FacetFilter/index.js +22 -0
- package/build/FacetFilter/index.js.map +1 -0
- package/build/FacetFilter/index.umd.js +22 -0
- package/build/FacetFilter/index.umd.js.map +1 -0
- package/build/FacetFilter/package.json +6 -0
- package/build/FitmentSelector/index.css +1 -0
- package/build/FitmentSelector/index.esm.js +22 -0
- package/build/FitmentSelector/index.esm.js.map +1 -0
- package/build/FitmentSelector/index.js +22 -0
- package/build/FitmentSelector/index.js.map +1 -0
- package/build/FitmentSelector/index.umd.js +22 -0
- package/build/FitmentSelector/index.umd.js.map +1 -0
- package/build/FitmentSelector/package.json +6 -0
- package/build/FitmentSelectorVerifier/index.css +1 -0
- package/build/FitmentSelectorVerifier/index.esm.js +22 -0
- package/build/FitmentSelectorVerifier/index.esm.js.map +1 -0
- package/build/FitmentSelectorVerifier/index.js +22 -0
- package/build/FitmentSelectorVerifier/index.js.map +1 -0
- package/build/FitmentSelectorVerifier/index.umd.js +22 -0
- package/build/FitmentSelectorVerifier/index.umd.js.map +1 -0
- package/build/FitmentSelectorVerifier/package.json +6 -0
- package/build/FitmentSelectorWrapper/index.css +1 -0
- package/build/FitmentSelectorWrapper/index.esm.js +22 -0
- package/build/FitmentSelectorWrapper/index.esm.js.map +1 -0
- package/build/FitmentSelectorWrapper/index.js +22 -0
- package/build/FitmentSelectorWrapper/index.js.map +1 -0
- package/build/FitmentSelectorWrapper/index.umd.js +22 -0
- package/build/FitmentSelectorWrapper/index.umd.js.map +1 -0
- package/build/FitmentSelectorWrapper/package.json +6 -0
- package/build/FitmentStoreWrapper/index.css +1 -0
- package/build/FitmentStoreWrapper/index.esm.js +8 -0
- package/build/FitmentStoreWrapper/index.esm.js.map +1 -0
- package/build/FitmentStoreWrapper/index.js +8 -0
- package/build/FitmentStoreWrapper/index.js.map +1 -0
- package/build/FitmentStoreWrapper/index.umd.js +8 -0
- package/build/FitmentStoreWrapper/index.umd.js.map +1 -0
- package/build/FitmentStoreWrapper/package.json +6 -0
- package/build/ListControls/index.css +1 -0
- package/build/ListControls/index.esm.js +8 -0
- package/build/ListControls/index.esm.js.map +1 -0
- package/build/ListControls/index.js +8 -0
- package/build/ListControls/index.js.map +1 -0
- package/build/ListControls/index.umd.js +8 -0
- package/build/ListControls/index.umd.js.map +1 -0
- package/build/ListControls/package.json +6 -0
- package/build/LoadingIndicator/index.css +1 -0
- package/build/LoadingIndicator/index.esm.js +8 -0
- package/build/LoadingIndicator/index.esm.js.map +1 -0
- package/build/LoadingIndicator/index.js +8 -0
- package/build/LoadingIndicator/index.js.map +1 -0
- package/build/LoadingIndicator/index.umd.js +8 -0
- package/build/LoadingIndicator/index.umd.js.map +1 -0
- package/build/LoadingIndicator/package.json +6 -0
- package/build/Pagination/index.css +1 -0
- package/build/Pagination/index.esm.js +8 -0
- package/build/Pagination/index.esm.js.map +1 -0
- package/build/Pagination/index.js +8 -0
- package/build/Pagination/index.js.map +1 -0
- package/build/Pagination/index.umd.js +8 -0
- package/build/Pagination/index.umd.js.map +1 -0
- package/build/Pagination/package.json +6 -0
- package/build/PaginationWithRangeInfo/index.css +1 -0
- package/build/PaginationWithRangeInfo/index.esm.js +8 -0
- package/build/PaginationWithRangeInfo/index.esm.js.map +1 -0
- package/build/PaginationWithRangeInfo/index.js +8 -0
- package/build/PaginationWithRangeInfo/index.js.map +1 -0
- package/build/PaginationWithRangeInfo/index.umd.js +8 -0
- package/build/PaginationWithRangeInfo/index.umd.js.map +1 -0
- package/build/PaginationWithRangeInfo/package.json +6 -0
- package/build/ProductList/index.css +1 -0
- package/build/ProductList/index.esm.js +22 -0
- package/build/ProductList/index.esm.js.map +1 -0
- package/build/ProductList/index.js +22 -0
- package/build/ProductList/index.js.map +1 -0
- package/build/ProductList/index.umd.js +22 -0
- package/build/ProductList/index.umd.js.map +1 -0
- package/build/ProductList/package.json +6 -0
- package/build/ProductListWrapper/index.css +1 -0
- package/build/ProductListWrapper/index.esm.js +22 -0
- package/build/ProductListWrapper/index.esm.js.map +1 -0
- package/build/ProductListWrapper/index.js +22 -0
- package/build/ProductListWrapper/index.js.map +1 -0
- package/build/ProductListWrapper/index.umd.js +22 -0
- package/build/ProductListWrapper/index.umd.js.map +1 -0
- package/build/ProductListWrapper/package.json +6 -0
- package/build/ProductSelectorVerifier/index.css +1 -0
- package/build/ProductSelectorVerifier/index.esm.js +22 -0
- package/build/ProductSelectorVerifier/index.esm.js.map +1 -0
- package/build/ProductSelectorVerifier/index.js +22 -0
- package/build/ProductSelectorVerifier/index.js.map +1 -0
- package/build/ProductSelectorVerifier/index.umd.js +22 -0
- package/build/ProductSelectorVerifier/index.umd.js.map +1 -0
- package/build/ProductSelectorVerifier/package.json +6 -0
- package/build/SearchBar/index.css +1 -0
- package/build/SearchBar/index.esm.js +22 -0
- package/build/SearchBar/index.esm.js.map +1 -0
- package/build/SearchBar/index.js +22 -0
- package/build/SearchBar/index.js.map +1 -0
- package/build/SearchBar/index.umd.js +22 -0
- package/build/SearchBar/index.umd.js.map +1 -0
- package/build/SearchBar/package.json +6 -0
- package/build/SearchBarWrapper/index.css +1 -0
- package/build/SearchBarWrapper/index.esm.js +22 -0
- package/build/SearchBarWrapper/index.esm.js.map +1 -0
- package/build/SearchBarWrapper/index.js +22 -0
- package/build/SearchBarWrapper/index.js.map +1 -0
- package/build/SearchBarWrapper/index.umd.js +22 -0
- package/build/SearchBarWrapper/index.umd.js.map +1 -0
- package/build/SearchBarWrapper/package.json +6 -0
- package/build/SearchBarWrapperModal/index.css +1 -0
- package/build/SearchBarWrapperModal/index.esm.js +22 -0
- package/build/SearchBarWrapperModal/index.esm.js.map +1 -0
- package/build/SearchBarWrapperModal/index.js +22 -0
- package/build/SearchBarWrapperModal/index.js.map +1 -0
- package/build/SearchBarWrapperModal/index.umd.js +22 -0
- package/build/SearchBarWrapperModal/index.umd.js.map +1 -0
- package/build/SearchBarWrapperModal/package.json +6 -0
- package/build/SkuListWrapper/index.css +1 -0
- package/build/SkuListWrapper/index.esm.js +22 -0
- package/build/SkuListWrapper/index.esm.js.map +1 -0
- package/build/SkuListWrapper/index.js +22 -0
- package/build/SkuListWrapper/index.js.map +1 -0
- package/build/SkuListWrapper/index.umd.js +22 -0
- package/build/SkuListWrapper/index.umd.js.map +1 -0
- package/build/SkuListWrapper/package.json +6 -0
- package/build/SpecificationSearch/index.css +1 -0
- package/build/SpecificationSearch/index.esm.js +8 -0
- package/build/SpecificationSearch/index.esm.js.map +1 -0
- package/build/SpecificationSearch/index.js +8 -0
- package/build/SpecificationSearch/index.js.map +1 -0
- package/build/SpecificationSearch/index.umd.js +8 -0
- package/build/SpecificationSearch/index.umd.js.map +1 -0
- package/build/SpecificationSearch/package.json +6 -0
- package/build/WsmFitmentSelectorWrapper/index.css +1 -0
- package/build/WsmFitmentSelectorWrapper/index.esm.js +22 -0
- package/build/WsmFitmentSelectorWrapper/index.esm.js.map +1 -0
- package/build/WsmFitmentSelectorWrapper/index.js +22 -0
- package/build/WsmFitmentSelectorWrapper/index.js.map +1 -0
- package/build/WsmFitmentSelectorWrapper/index.umd.js +22 -0
- package/build/WsmFitmentSelectorWrapper/index.umd.js.map +1 -0
- package/build/WsmFitmentSelectorWrapper/package.json +6 -0
- package/build/WsmProductListWrapper/index.css +1 -0
- package/build/WsmProductListWrapper/index.esm.js +22 -0
- package/build/WsmProductListWrapper/index.esm.js.map +1 -0
- package/build/WsmProductListWrapper/index.js +22 -0
- package/build/WsmProductListWrapper/index.js.map +1 -0
- package/build/WsmProductListWrapper/index.umd.js +22 -0
- package/build/WsmProductListWrapper/index.umd.js.map +1 -0
- package/build/WsmProductListWrapper/package.json +6 -0
- package/build/WsmSearchBarWithWrapperModal/index.css +1 -0
- package/build/WsmSearchBarWithWrapperModal/index.esm.js +8 -0
- package/build/WsmSearchBarWithWrapperModal/index.esm.js.map +1 -0
- package/build/WsmSearchBarWithWrapperModal/index.js +8 -0
- package/build/WsmSearchBarWithWrapperModal/index.js.map +1 -0
- package/build/WsmSearchBarWithWrapperModal/index.umd.js +8 -0
- package/build/WsmSearchBarWithWrapperModal/index.umd.js.map +1 -0
- package/build/WsmSearchBarWithWrapperModal/package.json +6 -0
- package/build/WsmSearchBarWrapper/index.css +1 -0
- package/build/WsmSearchBarWrapper/index.esm.js +22 -0
- package/build/WsmSearchBarWrapper/index.esm.js.map +1 -0
- package/build/WsmSearchBarWrapper/index.js +22 -0
- package/build/WsmSearchBarWrapper/index.js.map +1 -0
- package/build/WsmSearchBarWrapper/index.umd.js +22 -0
- package/build/WsmSearchBarWrapper/index.umd.js.map +1 -0
- package/build/WsmSearchBarWrapper/package.json +6 -0
- package/build/WsmSearchBarWrapperModal/index.css +1 -0
- package/build/WsmSearchBarWrapperModal/index.esm.js +22 -0
- package/build/WsmSearchBarWrapperModal/index.esm.js.map +1 -0
- package/build/WsmSearchBarWrapperModal/index.js +22 -0
- package/build/WsmSearchBarWrapperModal/index.js.map +1 -0
- package/build/WsmSearchBarWrapperModal/index.umd.js +22 -0
- package/build/WsmSearchBarWrapperModal/index.umd.js.map +1 -0
- package/build/WsmSearchBarWrapperModal/package.json +6 -0
- package/build/WsmSearchPage/index.css +1 -0
- package/build/WsmSearchPage/index.esm.js +22 -0
- package/build/WsmSearchPage/index.esm.js.map +1 -0
- package/build/WsmSearchPage/index.js +22 -0
- package/build/WsmSearchPage/index.js.map +1 -0
- package/build/WsmSearchPage/index.umd.js +22 -0
- package/build/WsmSearchPage/index.umd.js.map +1 -0
- package/build/WsmSearchPage/package.json +6 -0
- package/build/index.css +1 -0
- package/build/index.esm.js +8 -0
- package/build/index.esm.js.map +1 -0
- package/build/index.js +8 -0
- package/build/index.js.map +1 -0
- package/build/index.umd.js +8 -0
- package/build/index.umd.js.map +1 -0
- package/build/typings/common/CategoryItem/CategoryItem.d.ts +7 -0
- package/build/typings/common/CurrencyInput/CurrencyInput.d.ts +8 -0
- package/build/typings/common/FitmentSelectorWrapperModal/FitmentSelectorWrapperModal.d.ts +9 -0
- package/build/typings/common/Image/Image.d.ts +9 -0
- package/build/typings/common/List/List.d.ts +62 -0
- package/build/typings/common/Modal/Modal.d.ts +12 -0
- package/build/typings/common/ProductListItem/ProductListItem.d.ts +5 -0
- package/build/typings/common/ProductListItem/models.d.ts +13 -0
- package/build/typings/common/Rating/Rating.d.ts +7 -0
- package/build/typings/common/customHooks/useEventCallback.d.ts +9 -0
- package/build/typings/common/customHooks/useFetch.d.ts +36 -0
- package/build/typings/components/Alert/Alert.d.ts +4 -0
- package/build/typings/components/Alert/index.d.ts +1 -0
- package/build/typings/components/Alert/models.d.ts +76 -0
- package/build/typings/components/BreadCrumb/BreadCrumb.d.ts +4 -0
- package/build/typings/components/BreadCrumb/PathItem.d.ts +4 -0
- package/build/typings/components/BreadCrumb/index.d.ts +1 -0
- package/build/typings/components/BreadCrumb/models.d.ts +80 -0
- package/build/typings/components/CategoryCarousel/CategoryCarousel.d.ts +4 -0
- package/build/typings/components/CategoryCarousel/index.d.ts +1 -0
- package/build/typings/components/CategoryCarousel/models.d.ts +49 -0
- package/build/typings/components/CategoryCarouselWrapper/CategoryCarouselWrapper.d.ts +4 -0
- package/build/typings/components/CategoryCarouselWrapper/index.d.ts +1 -0
- package/build/typings/components/CategoryCarouselWrapper/models.d.ts +5 -0
- package/build/typings/components/CategoryList/CategoryList.d.ts +4 -0
- package/build/typings/components/CategoryList/index.d.ts +1 -0
- package/build/typings/components/CategoryList/models.d.ts +17 -0
- package/build/typings/components/CategoryListWrapper/CategoryListWrapper.d.ts +4 -0
- package/build/typings/components/CategoryListWrapper/index.d.ts +1 -0
- package/build/typings/components/CategoryListWrapper/models.d.ts +8 -0
- package/build/typings/components/FacetFilter/FacetFilter.d.ts +4 -0
- package/build/typings/components/FacetFilter/FacetSection.d.ts +4 -0
- package/build/typings/components/FacetFilter/index.d.ts +1 -0
- package/build/typings/components/FacetFilter/models.d.ts +90 -0
- package/build/typings/components/FitmentSelector/FitmentSelector.d.ts +15 -0
- package/build/typings/components/FitmentSelector/NativeSelect.d.ts +4 -0
- package/build/typings/components/FitmentSelector/index.d.ts +1 -0
- package/build/typings/components/FitmentSelector/models.d.ts +69 -0
- package/build/typings/components/FitmentSelector/utils.d.ts +4 -0
- package/build/typings/components/FitmentSelectorVerifier/FitmentSelectorVerifier.d.ts +5 -0
- package/build/typings/components/FitmentSelectorVerifier/index.d.ts +1 -0
- package/build/typings/components/FitmentSelectorVerifier/models.d.ts +105 -0
- package/build/typings/components/FitmentSelectorWrapper/FitmentSelectorWrapper.d.ts +11 -0
- package/build/typings/components/FitmentSelectorWrapper/index.d.ts +1 -0
- package/build/typings/components/FitmentSelectorWrapper/models.d.ts +142 -0
- package/build/typings/components/FitmentStoreWrapper/FitmentStorePopover.d.ts +6 -0
- package/build/typings/components/FitmentStoreWrapper/FitmentStoreWrapper.d.ts +4 -0
- package/build/typings/components/FitmentStoreWrapper/index.d.ts +1 -0
- package/build/typings/components/FitmentStoreWrapper/models.d.ts +59 -0
- package/build/typings/components/ListControls/ListControls.d.ts +4 -0
- package/build/typings/components/ListControls/index.d.ts +1 -0
- package/build/typings/components/ListControls/models.d.ts +47 -0
- package/build/typings/components/LoadingIndicator/LoadingIndicator.d.ts +7 -0
- package/build/typings/components/LoadingIndicator/index.d.ts +1 -0
- package/build/typings/components/Pagination/Pagination.d.ts +4 -0
- package/build/typings/components/Pagination/index.d.ts +1 -0
- package/build/typings/components/Pagination/models.d.ts +13 -0
- package/build/typings/components/PaginationWithRangeInfo/PaginationWithRangeInfo.d.ts +4 -0
- package/build/typings/components/PaginationWithRangeInfo/index.d.ts +1 -0
- package/build/typings/components/PaginationWithRangeInfo/models.d.ts +7 -0
- package/build/typings/components/ProductList/ProductList.d.ts +8 -0
- package/build/typings/components/ProductList/index.d.ts +1 -0
- package/build/typings/components/ProductList/models.d.ts +46 -0
- package/build/typings/components/ProductListWrapper/ProductListWrapper.d.ts +4 -0
- package/build/typings/components/ProductListWrapper/index.d.ts +1 -0
- package/build/typings/components/ProductListWrapper/models.d.ts +25 -0
- package/build/typings/components/ProductSelectorVerifier/ProductSelectorVerifier.d.ts +14 -0
- package/build/typings/components/ProductSelectorVerifier/index.d.ts +1 -0
- package/build/typings/components/SearchBar/SearchBar.d.ts +6 -0
- package/build/typings/components/SearchBar/SearchBarSuggestions.d.ts +4 -0
- package/build/typings/components/SearchBar/index.d.ts +1 -0
- package/build/typings/components/SearchBar/models.d.ts +172 -0
- package/build/typings/components/SearchBarWrapper/SearchBarWrapper.d.ts +6 -0
- package/build/typings/components/SearchBarWrapper/index.d.ts +1 -0
- package/build/typings/components/SearchBarWrapper/models.d.ts +22 -0
- package/build/typings/components/SearchBarWrapperModal/SearchBarWrapperModal.d.ts +4 -0
- package/build/typings/components/SearchBarWrapperModal/index.d.ts +1 -0
- package/build/typings/components/SearchBarWrapperModal/models.d.ts +5 -0
- package/build/typings/components/SkuListWrapper/SkuListWrapper.d.ts +4 -0
- package/build/typings/components/SkuListWrapper/index.d.ts +1 -0
- package/build/typings/components/SpecificationSearch/SpecificationSearch.d.ts +4 -0
- package/build/typings/components/SpecificationSearch/index.d.ts +1 -0
- package/build/typings/components/SpecificationSearch/models.d.ts +30 -0
- package/build/typings/components/WsmFitmentSelectorWrapper/WsmFitmentSelectorWrapper.d.ts +8 -0
- package/build/typings/components/WsmFitmentSelectorWrapper/index.d.ts +1 -0
- package/build/typings/components/WsmProductListWrapper/WsmProductListWrapper.d.ts +4 -0
- package/build/typings/components/WsmProductListWrapper/index.d.ts +1 -0
- package/build/typings/components/WsmSearchBarWithWrapperModal/WsmSearchBarWithWrapperModal.d.ts +8 -0
- package/build/typings/components/WsmSearchBarWithWrapperModal/index.d.ts +1 -0
- package/build/typings/components/WsmSearchBarWrapper/WsmSearchBarWrapper.d.ts +4 -0
- package/build/typings/components/WsmSearchBarWrapper/index.d.ts +1 -0
- package/build/typings/components/WsmSearchBarWrapper/models.d.ts +12 -0
- package/build/typings/components/WsmSearchBarWrapperModal/WsmSearchBarWrapperModal.d.ts +4 -0
- package/build/typings/components/WsmSearchBarWrapperModal/index.d.ts +1 -0
- package/build/typings/components/WsmSearchBarWrapperModal/models.d.ts +5 -0
- package/build/typings/components/WsmSearchPage/FacetFilterModal.d.ts +18 -0
- package/build/typings/components/WsmSearchPage/FitmentSelectorModal.d.ts +22 -0
- package/build/typings/components/WsmSearchPage/SearchPageProvider.d.ts +32 -0
- package/build/typings/components/WsmSearchPage/index.d.ts +29 -0
- package/build/typings/components/WsmSearchPage/utils.d.ts +25 -0
- package/build/typings/icons/Angle.d.ts +7 -0
- package/build/typings/icons/BanIcon.d.ts +7 -0
- package/build/typings/icons/CheckIcon.d.ts +3 -0
- package/build/typings/icons/CrossIcon.d.ts +7 -0
- package/build/typings/icons/Grid.d.ts +5 -0
- package/build/typings/icons/ImagePlaceHolder.d.ts +5 -0
- package/build/typings/icons/List.d.ts +6 -0
- package/build/typings/icons/MinusIcon.d.ts +6 -0
- package/build/typings/icons/PlusIcon.d.ts +6 -0
- package/build/typings/icons/SearchIcon.d.ts +7 -0
- package/build/typings/icons/SearchIconLight.d.ts +7 -0
- package/build/typings/icons/StarIcon.d.ts +6 -0
- package/build/typings/icons/TrashIcon.d.ts +7 -0
- package/build/typings/icons/WarningIcon.d.ts +3 -0
- package/build/typings/index.d.ts +60 -0
- package/build/typings/models/generic.d.ts +8 -0
- package/build/typings/models/search.d.ts +93 -0
- package/build/typings/static/icons/CrossIcon.d.ts +7 -0
- package/build/typings/static/icons/FunnelIcon.d.ts +3 -0
- package/build/typings/static/icons/VerifiedIcon.d.ts +3 -0
- package/build/typings/utils/constants.d.ts +7 -0
- package/build/typings/utils/fitmentUtils.d.ts +4 -0
- package/build/typings/utils/format.d.ts +3 -0
- package/build/typings/utils/queryUtils.d.ts +12 -0
- package/build/typings/utils/restFactory.d.ts +6 -0
- package/build/typings/utils/searchHistory.d.ts +3 -0
- package/build/typings/utils/wsmVisibleFieldsBuilder.d.ts +31 -0
- package/package.json +133 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.productListItem_root__xLXZA{display:grid;grid-template-columns:fit-content(20%) 3fr minmax(155px,1fr);gap:15px;padding:.5rem}.productListItem_root__xLXZA ul{list-style:none;margin:0;padding:0}.productListItem_text__2vbTm{margin:0;font-size:.8rem}a.productListItem_text__2vbTm{color:inherit;text-decoration:none}.productListItem_productImg__23A0z{max-width:75px;max-height:75px}.productListItem_imageContainer__paRx-{width:150px;text-align:center;display:flex;align-items:center;justify-content:center;height:auto}.productListItem_imageContainer__paRx- svg{width:100%}.productListItem_productImg__23A0z{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain}.productListItem_vertical__RuKVA{grid-template-columns:1fr;justify-items:left;border-radius:5px;border:1px solid var(--sui-secondary-color);padding-bottom:.5rem}.productListItem_vertical__RuKVA .productListItem_imageContainer__paRx-{max-width:unset;width:100%;height:160px;display:flex;align-items:center;justify-content:center}.productListItem_vertical__RuKVA .productListItem_productImg__23A0z{max-width:unset;max-height:100%;object-fit:contain;width:100%}.productListItem_styledSearchResultItem__2xWUG{border-bottom:1px solid var(--sui-secondary-color)}.productListItem_styledSearchResultItem__2xWUG .productListItem_text__2vbTm{font-size:1.3rem}.productListItem_styledSearchResultItem__2xWUG .Sui-ProductListItem--title{font-size:1.6rem;font-weight:700;margin-top:0}.productListItem_styledSearchResultItem__2xWUG .Sui-ProductListItem--availability{text-align:right;font-size:1rem;color:var(--sui-danger-color-dark);font-weight:700}.productListItem_styledSearchResultItem__2xWUG .Sui-ProductListItem--brand_name,.productListItem_styledSearchResultItem__2xWUG .Sui-ProductListItem--tag{font-size:.8rem;font-weight:700;margin-top:0}.productListItem_styledSearchResultItem__2xWUG .Sui-ProductListItem--availability_remarks,.productListItem_styledSearchResultItem__2xWUG .Sui-ProductListItem--remarks{color:var(--sui-success-color);font-size:.8rem;margin:.5rem 0;font-weight:600;text-align:right}.productListItem_styledSearchResultItem__2xWUG .Sui-ProductListItem--price,.productListItem_styledSearchResultItem__2xWUG .Sui-ProductListItem--sale{font-size:1.6rem;font-weight:700;text-align:right}.productListItem_styledSearchResultItem__2xWUG .Sui-ProductListItem--fitment_applicability{font-size:12px;padding:.5em 1em;border-radius:1em;border:none;outline:none}.productListItem_styledSearchResultItem__2xWUG .fitmentSpecific{background:var(--sui-primary-color-light)}.productListItem_styledSearchResultItem__2xWUG .universal{background:var(--sui-secondary-color-dark)}.productListItem_styledSearchResultItem__2xWUG .Sui-ProductListItem-Container--fitment_applicability{margin-top:10px;margin-bottom:10px}.productListItem_styledSearchResultItem__2xWUG .red{color:var(--sui-danger-color-dark)}.productListItem_styledSearchResultItem__2xWUG .old-price{color:var(--sui-muted-color);text-decoration:line-through;font-weight:400;font-size:1.4rem}.productListItem_styledSearchResultItem__2xWUG .bold{font-weight:700}.productListItem_styledSearchResultItem__2xWUG .productListItem_link__QvazJ{font-weight:700;color:var(--sui-link-color);text-decoration:none;font-size:1.2rem;text-align:right;display:block}.productListItem_styledSearchResultItem__2xWUG .productListItem_right__1cPgQ{padding-top:19px;padding-right:1rem}.productListItem_styledSearchResultItem__2xWUG .mb-1{margin-bottom:1px}.productListItem_styledSearchResultItem__2xWUG .mb-2{margin-bottom:2px}.productListItem_styledSearchResultItem__2xWUG .mb-3{margin-bottom:3px}.productListItem_styledSearchResultItem__2xWUG .mb-4{margin-bottom:4px}.productListItem_styledSearchResultItem__2xWUG .mb-5{margin-bottom:5px}.productListItem_styledSearchResultItem__2xWUG .mb-6{margin-bottom:6px}.productListItem_styledSearchResultItem__2xWUG .mb-7{margin-bottom:7px}.productListItem_styledSearchResultItem__2xWUG .mb-8{margin-bottom:8px}.productListItem_styledSearchResultItem__2xWUG .mb-9{margin-bottom:9px}.productListItem_styledSearchResultItem__2xWUG .mb-10{margin-bottom:10px}.productListItem_styledSearchResultItem__2xWUG.productListItem_vertical__RuKVA .productListItem_text__2vbTm{font-size:1.3rem}.productListItem_styledSearchResultItem__2xWUG.productListItem_vertical__RuKVA .productListItem_link__QvazJ{text-align:right}.productListItem_styledSearchResultItem__2xWUG.productListItem_vertical__RuKVA .Sui-ProductListItem--title{font-size:1.6rem}.productListItem_styledSearchResultItem__2xWUG.productListItem_vertical__RuKVA .Sui-ProductListItem--dealerid{margin-bottom:8px}.productListItem_styledSearchResultItem__2xWUG.productListItem_vertical__RuKVA .Sui-ProductListItem--price,.productListItem_styledSearchResultItem__2xWUG.productListItem_vertical__RuKVA .Sui-ProductListItem--sale{font-size:1.6rem;text-align:right}.productListItem_styledSearchResultItem__2xWUG.productListItem_vertical__RuKVA .old-price{font-size:1.4rem}.productListItem_styledSearchResultItem__2xWUG.productListItem_vertical__RuKVA .Sui-ProductListItem--availability{font-size:1rem;text-align:right}.productListItem_styledSearchResultItem__2xWUG.productListItem_vertical__RuKVA .Sui-ProductListItem--availability_remarks,.productListItem_styledSearchResultItem__2xWUG.productListItem_vertical__RuKVA .Sui-ProductListItem--remarks{text-align:right}.productListItem_styledSearchResultItem__2xWUG.productListItem_vertical__RuKVA .productListItem_right__1cPgQ{padding-top:0;width:100%}.productListItem_styledSearchResultItem__2xWUG.productListItem_vertical__RuKVA.productListItem_root__xLXZA{gap:0}@media (max-width:500px){.productListItem_root__xLXZA{grid-template-columns:1fr;justify-items:left;border-radius:5px;border:1px solid var(--sui-secondary-color);padding-bottom:.5rem}.productListItem_root__xLXZA .productListItem_imageContainer__paRx-{max-width:unset;width:100%;height:160px;display:flex;align-items:center;justify-content:center}.productListItem_root__xLXZA .productListItem_productImg__23A0z{max-width:unset;max-height:100%;object-fit:contain;width:100%}.productListItem_root__xLXZA.productListItem_styledSearchResultItem__2xWUG .productListItem_text__2vbTm{font-size:1.3rem}.productListItem_root__xLXZA.productListItem_styledSearchResultItem__2xWUG .productListItem_link__QvazJ{text-align:right}.productListItem_root__xLXZA.productListItem_styledSearchResultItem__2xWUG .Sui-ProductListItem--title{font-size:1.6rem}.productListItem_root__xLXZA.productListItem_styledSearchResultItem__2xWUG .Sui-ProductListItem--dealerid{margin-bottom:8px}.productListItem_root__xLXZA.productListItem_styledSearchResultItem__2xWUG .Sui-ProductListItem--price,.productListItem_root__xLXZA.productListItem_styledSearchResultItem__2xWUG .Sui-ProductListItem--sale{font-size:1.6rem;text-align:right}.productListItem_root__xLXZA.productListItem_styledSearchResultItem__2xWUG .old-price{font-size:1.4rem}.productListItem_root__xLXZA.productListItem_styledSearchResultItem__2xWUG .Sui-ProductListItem--availability{font-size:1rem;text-align:right}.productListItem_root__xLXZA.productListItem_styledSearchResultItem__2xWUG .Sui-ProductListItem--availability_remarks,.productListItem_root__xLXZA.productListItem_styledSearchResultItem__2xWUG .Sui-ProductListItem--remarks{text-align:right}.productListItem_root__xLXZA.productListItem_styledSearchResultItem__2xWUG .productListItem_right__1cPgQ{padding-top:0;width:100%}.productListItem_root__xLXZA.productListItem_styledSearchResultItem__2xWUG.productListItem_root__xLXZA{gap:0}}.productListItem_optionAvailableBtnContainer__2wxwf{text-align:right}.productListItem_optionsAvailableBtn__1rmDf{background:#efefef;padding:5px 10px;text-decoration:none;color:#343434;text-transform:capitalize}.productListItem_priceFromLabel__pMQzO{font-weight:400}.searchBarSuggestions_suggestionContainer__1m96a{overflow-y:auto;position:absolute;z-index:999;width:100%;background-color:#fff}.searchBarSuggestions_suggestionContainer__1m96a .Sui-SearchBar--section-product{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));grid-gap:.5rem}.searchBarSuggestions_link__1rcDs{color:inherit;text-decoration:unset;outline:none}.searchBarSuggestions_listContainer__2O5EM:not(.Sui-SearchBar--section-product){display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,auto));text-align:center;grid-gap:15px}.searchBarSuggestions_listContainer__2O5EM.Sui-SearchBar--section-history{display:flex;flex-direction:column;margin:10px 0}.searchBarSuggestions_basicItemLink__2hEMG .searchBarSuggestions_imageContainer__2H3z6{height:80px;display:flex;justify-content:center;align-items:center}.searchBarSuggestions_basicItemLink__2hEMG .searchBarSuggestions_imageContainer__2H3z6 img,.searchBarSuggestions_basicItemLink__2hEMG .searchBarSuggestions_imageContainer__2H3z6 svg{width:auto;max-height:100%;max-width:100%;object-fit:cover}.searchBarSuggestions_basicItemLink__2hEMG h1{margin-top:0;font-size:100%;text-align:center}.searchBarSuggestions_basicItemTitle__3MJeQ{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.searchBarSuggestions_viewMoreContainer__2gobp{margin-top:1rem;text-align:center}.searchBarSuggestions_searchTermHistoryItem__3xi7Q{display:flex;align-items:center;justify-content:flex-start;margin:0;padding:0;height:20px;width:auto;background-color:transparent;border:none;cursor:pointer}.searchBarSuggestions_searchTermHistoryItem__3xi7Q .searchBarSuggestions_searchTermHistoryItemIcon__sZmTm{margin-right:5px}.searchBarSuggestions_searchTermHistoryItem__3xi7Q p{margin:0}.searchBarSuggestions_styledResultItem__3mBB5{background-color:#fff}.searchBarSuggestions_styledResultItem__3mBB5:hover,.searchBarSuggestions_styledSuggestionContainer__H33XA{background-color:var(--sui-secondary-color-light)}.searchBarSuggestions_styledSuggestionContainer__H33XA .Sui-CategoryList--title{text-align:left;font-size:1.4rem;font-weight:700;overflow:initial;white-space:normal;text-overflow:clip}.searchBarSuggestions_styledList__MKl23{padding:.25rem 1rem 1rem}.searchBarSuggestions_styledListTitle__2VK-S{border-bottom:1px solid grey;margin:2rem 0;padding-bottom:.25rem;text-transform:uppercase}.searchBarSuggestions_styledViewMoreBtn__3nh1Y{padding:0 1rem}.searchBarSuggestions_clearHistoryBtn__39npD{background-color:transparent;border:none;cursor:pointer;color:var(--sui-primary-color);padding:0;outline:none;display:flex;align-items:center}.searchBarSuggestions_clearHistoryBtn__39npD:hover{text-decoration:underline}.loadingIndicator_root__npeKe{height:3px;width:100%;margin:0;background-color:var(--sui-primary-color-light);display:flex;position:absolute;top:-3px}.loadingIndicator_root__npeKe:before{background-color:var(--sui-primary-color);height:3px;width:100%;margin:0;content:"";-webkit-animation:loadingIndicator_running-progress__1LY3F 2s cubic-bezier(.4,0,.2,1) infinite;animation:loadingIndicator_running-progress__1LY3F 2s cubic-bezier(.4,0,.2,1) infinite}@keyframes loadingIndicator_running-progress__1LY3F{0%{margin-left:0;margin-right:100%}50%{margin-left:25%;margin-right:0}to{margin-left:100%;margin-right:0}}.loadingIndicator_sk-fading-circle__1TTJV{margin:auto;width:40px;height:40px;position:relative}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle__CwR68{width:100%;height:100%;position:absolute;left:0;top:0}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle__CwR68:before{content:"";display:block;margin:0 auto;width:15%;height:15%;background-color:#333;border-radius:100%;-webkit-animation:loadingIndicator_sk-circleFadeDelay__3VwzZ 1.2s ease-in-out infinite both;animation:loadingIndicator_sk-circleFadeDelay__3VwzZ 1.2s ease-in-out infinite both}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle2__1gpYo{-webkit-transform:rotate(30deg);-ms-transform:rotate(30deg);transform:rotate(30deg)}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle3__2GoQv{-webkit-transform:rotate(60deg);-ms-transform:rotate(60deg);transform:rotate(60deg)}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle4__1F1d-{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle5__1I-LA{-webkit-transform:rotate(120deg);-ms-transform:rotate(120deg);transform:rotate(120deg)}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle6__26mL6{-webkit-transform:rotate(150deg);-ms-transform:rotate(150deg);transform:rotate(150deg)}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle7__3BF0d{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle8__2ITYw{-webkit-transform:rotate(210deg);-ms-transform:rotate(210deg);transform:rotate(210deg)}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle9__2pFiT{-webkit-transform:rotate(240deg);-ms-transform:rotate(240deg);transform:rotate(240deg)}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle10__2Gk5Q{-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle11__34lxl{-webkit-transform:rotate(300deg);-ms-transform:rotate(300deg);transform:rotate(300deg)}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle12__34fj1{-webkit-transform:rotate(330deg);-ms-transform:rotate(330deg);transform:rotate(330deg)}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle2__1gpYo:before{-webkit-animation-delay:-1.1s;animation-delay:-1.1s}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle3__2GoQv:before{-webkit-animation-delay:-1s;animation-delay:-1s}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle4__1F1d-:before{-webkit-animation-delay:-.9s;animation-delay:-.9s}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle5__1I-LA:before{-webkit-animation-delay:-.8s;animation-delay:-.8s}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle6__26mL6:before{-webkit-animation-delay:-.7s;animation-delay:-.7s}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle7__3BF0d:before{-webkit-animation-delay:-.6s;animation-delay:-.6s}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle8__2ITYw:before{-webkit-animation-delay:-.5s;animation-delay:-.5s}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle9__2pFiT:before{-webkit-animation-delay:-.4s;animation-delay:-.4s}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle10__2Gk5Q:before{-webkit-animation-delay:-.3s;animation-delay:-.3s}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle11__34lxl:before{-webkit-animation-delay:-.2s;animation-delay:-.2s}.loadingIndicator_sk-fading-circle__1TTJV .loadingIndicator_sk-circle12__34fj1:before{-webkit-animation-delay:-.1s;animation-delay:-.1s}@-webkit-keyframes loadingIndicator_sk-circleFadeDelay__3VwzZ{0%,39%,to{opacity:0}40%{opacity:1}}@keyframes loadingIndicator_sk-circleFadeDelay__3VwzZ{0%,39%,to{opacity:0}40%{opacity:1}}.SuiInput{border:1px solid var(--sui-border-input);height:var(--sui-input-height);padding-left:.6em;color:#444;box-shadow:0 1px 0 1px rgba(0,0,0,.04);border-radius:0;font-size:.9rem;border-radius:3px}.SuiInput:focus,.SuiInput:hover{border-color:var(--sui-border-input-hover)}.SuiInput:focus{outline:none}:root{--sui-primary-color:#0071bc;--sui-primary-color-light:#8bcbf5;--sui-secondary-color:#efefef;--sui-secondary-color-light:#f8f9fa;--sui-secondary-color-dark:#afafaf;--sui-secondary-color-dark2:#6c757d;--sui-danger-color:#ff5353;--sui-danger-color-dark:#cb0201;--sui-muted-color:#6c757d;--sui-border-input:#aaa;--sui-border-input-hover:#888;--sui-success-color:#3baf7e;--sui-warning-color:#ffb90f;--sui-grey-light:#e6e6e6;--sui-link-color:#2d9bf0;--sui-input-height:2rem}.SuiButton{cursor:pointer;border:none;height:var(--sui-input-height);border-radius:3px}.SuiButton.primary{background-color:var(--sui-primary-color);color:#fff}.SuiButton.secondary{background-color:var(--sui-secondary-color)}.SuiButton:disabled{opacity:.5}.searchBar_searchBarRoot__31Xa5{outline:none}.searchBar_searchBarContainer__3alwO{position:relative}.searchBar_searchBarInputContainer__AYpAJ{display:flex}.searchBar_inputContainer__3LGWJ{display:flex;align-items:center;position:relative;width:100%;box-sizing:border-box}.searchBar_inputContainer__3LGWJ.searchBar_inputContainerWithFitment__1ZYz6{display:grid;grid-template-columns:auto 1fr;background:#fff}.searchBar_input__PXdEA{width:100%;box-sizing:border-box;padding-right:30px}.searchBar_clearIcon__2yjvH{position:absolute;right:0;background-color:transparent;border:none;font-size:1.25rem;cursor:pointer;height:100%;display:flex;justify-content:center;align-items:center}.searchBar_searchIcon__3y9ws{display:none}.searchBar_fitmentContainer__3IZsv{display:flex;align-items:center;height:28px;margin:0 8px;width:fit-content}.searchBar_clearFitmentBtn__14jdY{display:flex;background-color:transparent;border:none;margin:0;padding:0;cursor:pointer}.searchBar_searchBarStyled__luh3_ .Sui-ProductListItem--root{box-shadow:none;border-bottom:1px solid var(--sui-secondary-color)}.searchBar_searchBarStyled__luh3_ .Sui-ProductListItem--image{display:flex;align-items:end}.searchBar_searchBarStyled__luh3_ .Sui-ProductListItem--image img{max-height:fit-content;height:unset}.searchBar_searchBarStyled__luh3_ .Sui-ProductListItem--title{display:block}.searchBar_styledButton__gW4GL{width:25%;height:45px;font-size:16px}input.searchBar_inputStyled__XoO4F{height:42px;font-size:16px;border:none;box-shadow:none}.searchBar_styledFitmentContainer__1Y9am{background:#007bff;border-radius:25px!important}.searchBar_styledFitmentContainer__1Y9am .searchBar_fitmentText__1M4XP{font-weight:700;padding-left:8px;color:#fff;margin:0}.searchBar_styledFitmentContainer__1Y9am .searchBar_clearFitmentBtn__14jdY{border-radius:50%;background:transparent;color:#fff;margin:0 8px}.searchBar_inputContainerStyled__26B1I{border:1px solid var(--sui-border-input);box-shadow:0 1px 0 1px rgba(0,0,0,.04)}@media (max-width:576px){.searchBar_styledButton__gW4GL{width:unset;min-width:45px;display:flex;align-items:center;justify-content:center}.searchBar_styledButton__gW4GL span{display:none}.searchBar_styledButton__gW4GL .searchBar_searchIcon__3y9ws{display:block}.searchBar_styledFitmentContainer__1Y9am .searchBar_fitmentText__1M4XP{width:70px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.searchBar_styledFitmentContainer__1Y9am .searchBar_clearFitmentBtn__14jdY{margin-left:0}}.styles_styledNoResults__2In0o{margin:0;background-color:var(--sui-primary-color-light);color:#fff;padding:.25rem .5rem;background-color:var(--sui-danger-color);position:absolute;width:100%;box-sizing:border-box;z-index:1}.wsmSearchBarWrapperStyles_root__3hHgT .Sui-SearchBar--section-product{grid-template-columns:1fr}.wsmSearchBarWrapperStyles_root__3hHgT .Sui-ProductListItem--root{display:grid;grid-template-columns:fit-content(20%) 1fr;grid-template-rows:repeat(2,auto);grid-column-gap:0;grid-row-gap:0}.wsmSearchBarWrapperStyles_root__3hHgT .Sui-ProductListItem--root a,.wsmSearchBarWrapperStyles_root__3hHgT .Sui-ProductListItem--root p{text-align:left}.wsmSearchBarWrapperStyles_root__3hHgT .Sui-ProductListItem--root .Sui-ProductListItem-Container--price,.wsmSearchBarWrapperStyles_root__3hHgT .Sui-ProductListItem--root .Sui-ProductListItem-Container--sale{display:inline-block}.wsmSearchBarWrapperStyles_root__3hHgT .Sui-ProductListItem--root .old-price{padding-left:.5rem}.wsmSearchBarWrapperStyles_root__3hHgT .Sui-ProductListItem--image{grid-area:1/1/3/2}.wsmSearchBarWrapperStyles_root__3hHgT .Sui-ProductListItem--image+ul{padding-left:1rem;grid-area:1/2/2/3}.wsmSearchBarWrapperStyles_root__3hHgT .Sui-ProductListItem--image+ul+ul{padding-left:1rem;grid-area:2/2/3/3;padding-top:0}.wsmSearchBarWrapperStyles_root__3hHgT .Sui-ProductListItem--image+ul+ul .old-price{font-size:1.4rem}.wsmSearchBarWrapperStyles_root__3hHgT .Sui-ProductListItem-Container--has_options div{text-align:left;margin:8px 0}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import e,{createElement as t,useState as n,Fragment as r,useReducer as i,useRef as o,useEffect as a,useCallback as l,forwardRef as s,useImperativeHandle as c}from"react";
|
|
2
|
+
/*! *****************************************************************************
|
|
3
|
+
Copyright (c) Microsoft Corporation.
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
purpose with or without fee is hereby granted.
|
|
7
|
+
|
|
8
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
10
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
11
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
+
***************************************************************************** */var u=function(){return(u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function d(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{s(r.next(e))}catch(e){o(e)}}function l(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))}function p(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}function f(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,l=o.length;a<l;a++,i++)r[i]=o[a];return r}var h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function m(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}function g(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})})),t}var v=m((function(e){
|
|
16
|
+
/*!
|
|
17
|
+
Copyright (c) 2017 Jed Watson.
|
|
18
|
+
Licensed under the MIT License (MIT), see
|
|
19
|
+
http://jedwatson.github.io/classnames
|
|
20
|
+
*/
|
|
21
|
+
!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var i=arguments[r];if(i){var o=typeof i;if("string"===o||"number"===o)e.push(i);else if(Array.isArray(i)&&i.length){var a=n.apply(null,i);a&&e.push(a)}else if("object"===o)for(var l in i)t.call(i,l)&&i[l]&&e.push(l)}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}));function y(e,t,n){return void 0===t&&(t="en-US"),void 0===n&&(n="USD"),Number.isNaN(e)?"":new Intl.NumberFormat(t,{currency:n,style:"currency"}).format(e)}var b=function(e){var n=e.className;return t("svg",{version:"1.1",viewBox:"0 0 600 400",enableBackground:"new 0 0 600 400",xmlSpace:"preserve",className:void 0===n?"":n},t("rect",{x:"0",fill:"#EDECEB",width:"600",height:"400"}),t("path",{fill:"#FFFFFF",d:"M234.539,148.5v103h130.922v-103H234.539z M354.908,240.33H245.707v-80.661h109.201V240.33L354.908,240.33z"}),t("polygon",{fill:"#FFFFFF",points:"251.58,231.643 274.088,207.984 282.521,211.633 309.13,183.308 319.604,195.836 324.329,192.982 349.898,231.643 "}),t("circle",{fill:"#FFFFFF",cx:"277.582",cy:"180.18",r:"9.83"}))},k=function(e){var r=e.className,i=e.alt,o=e.url,a=e.noImageUrl,l=n(!0),s=l[0],c=l[1];return s&&o?t("img",{className:r,src:o,alt:i,onError:function(){return c(!1)}}):a?t("img",{src:a,alt:i}):t(b,{className:r})},_="productListItem_root__xLXZA",w="productListItem_text__2vbTm",x="productListItem_productImg__23A0z",S="productListItem_imageContainer__paRx-",C="productListItem_vertical__RuKVA",N="productListItem_styledSearchResultItem__2xWUG",I="productListItem_link__QvazJ",E="productListItem_right__1cPgQ",T="productListItem_optionAvailableBtnContainer__2wxwf",O="productListItem_optionsAvailableBtn__1rmDf",A="productListItem_priceFromLabel__pMQzO",L={SAME:0,CAMELCASE:1,possibleStandardNames:{accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},R=m((function(e,t){function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){l=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0});function i(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var o={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){o[e]=new i(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=n(e,2),r=t[0],a=t[1];o[r]=new i(r,1,!1,a,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){o[e]=new i(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){o[e]=new i(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((function(e){o[e]=new i(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){o[e]=new i(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){o[e]=new i(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){o[e]=new i(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){o[e]=new i(e,5,!1,e.toLowerCase(),null,!1,!1)}));var a=/[\-\:]([a-z])/g,l=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((function(e){var t=e.replace(a,l);o[t]=new i(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((function(e){var t=e.replace(a,l);o[t]=new i(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(a,l);o[t]=new i(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){o[e]=new i(e,1,!1,e.toLowerCase(),null,!1,!1)}));o.xlinkHref=new i("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){o[e]=new i(e,1,!1,e.toLowerCase(),null,!0,!0)}));var s=L.CAMELCASE,c=L.SAME,u=L.possibleStandardNames,d=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),p=Object.keys(u).reduce((function(e,t){var n=u[t];return n===c?e[t]=t:n===s?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return o.hasOwnProperty(e)?o[e]:null},t.isCustomAttribute=d,t.possibleStandardNames=p})),B=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,F=/\n/g,P=/^\s*/,M=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,D=/^:\s*/,j=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,z=/^[;\s]*/,H=/^\s+|\s+$/g;function U(e){return e?e.replace(H,""):""}var V=function(e,t){var n,r=null;if(!e||"string"!=typeof e)return r;for(var i,o,a=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(e){var t=e.match(F);t&&(n+=t.length);var i=e.lastIndexOf("\n");r=~i?e.length-i:r+e.length}function o(){var e={line:n,column:r};return function(t){return t.position=new a(e),c(),t}}function a(e){this.start=e,this.end={line:n,column:r},this.source=t.source}function l(i){var o=new Error(t.source+":"+n+":"+r+": "+i);if(o.reason=i,o.filename=t.source,o.line=n,o.column=r,o.source=e,!t.silent)throw o}function s(t){var n=t.exec(e);if(n){var r=n[0];return i(r),e=e.slice(r.length),n}}function c(){s(P)}function u(e){var t;for(e=e||[];t=d();)!1!==t&&e.push(t);return e}function d(){var t=o();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return l("End of comment missing");var a=e.slice(2,n-2);return r+=2,i(a),e=e.slice(n),r+=2,t({type:"comment",comment:a})}}function p(){var e=o(),t=s(M);if(t){if(d(),!s(D))return l("property missing ':'");var n=s(j),r=e({type:"declaration",property:U(t[0].replace(B,"")),value:n?U(n[0].replace(B,"")):""});return s(z),r}}return a.prototype.content=e,c(),function(){var e,t=[];for(u(t);e=p();)!1!==e&&(t.push(e),u(t));return t}()}(e),l="function"==typeof t,s=0,c=a.length;s<c;s++)i=(n=a[s]).property,o=n.value,l?t(i,o,n):o&&(r||(r={}),r[i]=o);return r},q=m((function(e,t){t.__esModule=!0,t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,l=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||i.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,s):e.replace(o,s)).replace(r,l))}})),Y=m((function(e,t){var n=h&&h.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var r=n(V);t.default=function(e,t){var n={};return e&&"string"==typeof e?((0,r.default)(e,(function(e,r){e&&r&&(n[(0,q.camelCase)(e,t)]=r)})),n):n}})).default;var G={reactCompat:!0};var W=e.version.split(".")[0]>=16,X=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var K={PRESERVE_CUSTOM_ATTRIBUTES:W,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var n,r,i="function"==typeof t,o={},a={};for(n in e)r=e[n],i&&(o=t(n,r))&&2===o.length?a[o[0]]=o[1]:"string"==typeof r&&(a[r]=n);return a},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=Y(e,G)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!X.has(e.name)},elementsWithNoTextChildren:X},J=function(e){var t,n,r,i,o,a={},l=(e=e||{}).type&&{reset:!0,submit:!0}[e.type];for(t in e)if(r=e[t],R.isCustomAttribute(t))a[t]=r;else if(i=Q(n=t.toLowerCase()))switch(o=R.getPropertyInfo(i),"checked"!==i&&"value"!==i||l||(i=Q("default"+n)),a[i]=r,o&&o.type){case R.BOOLEAN:a[i]=!0;break;case R.OVERLOADED_BOOLEAN:""===r&&(a[i]=!0)}else K.PRESERVE_CUSTOM_ATTRIBUTES&&(a[t]=r);return K.setStyleProp(e.style,a),a};function Q(e){return R.possibleStandardNames[e]}var Z=K.setStyleProp,$=K.canTextBeChildOfNode;function ee(e){return K.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&K.isCustomComponent(e.name,e.attribs)}var te=function t(n,r){for(var i,o,a,l,s,c=(r=r||{}).library||e,u=c.cloneElement,d=c.createElement,p=c.isValidElement,f=[],h="function"==typeof r.replace,m=r.trim,g=0,v=n.length;g<v;g++)if(i=n[g],h&&p(a=r.replace(i)))v>1&&(a=u(a,{key:a.key||g})),f.push(a);else if("text"!==i.type){switch(l=i.attribs,ee(i)?Z(l.style,l):l&&(l=J(l)),s=null,i.type){case"script":case"style":i.children[0]&&(l.dangerouslySetInnerHTML={__html:i.children[0].data});break;case"tag":"textarea"===i.name&&i.children[0]?l.defaultValue=i.children[0].data:i.children&&i.children.length&&(s=t(i.children,r));break;default:continue}v>1&&(l.key=g),f.push(d(i.name,l,s))}else{if((o=!i.data.trim().length)&&i.parent&&!$(i.parent))continue;if(m&&o)continue;f.push(i.data)}return 1===f.length?f[0]:f},ne=/<([a-zA-Z]+[0-9]?)/,re=/<head[^]*>/i,ie=/<body[^]*>/i,oe=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},ae=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};if("function"==typeof window.DOMParser){var le=new window.DOMParser;oe=ae=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),le.parseFromString(e,"text/html")}}if(document.implementation){var se=document.implementation.createHTMLDocument();oe=function(e,t){return t?(se.documentElement.querySelector(t).innerHTML=e,se):(se.documentElement.innerHTML=e,se)}}var ce,ue=document.createElement("template");ue.content&&(ce=function(e){return ue.innerHTML=e,ue.content.childNodes});var de,pe=function(e){var t,n,r,i,o=e.match(ne);switch(o&&o[1]&&(t=o[1].toLowerCase()),t){case"html":return n=ae(e),re.test(e)||(r=n.querySelector("head"))&&r.parentNode.removeChild(r),ie.test(e)||(r=n.querySelector("body"))&&r.parentNode.removeChild(r),n.querySelectorAll("html");case"head":case"body":return i=(n=oe(e)).querySelectorAll(t),ie.test(e)&&re.test(e)?i[0].parentNode.childNodes:i;default:return ce?ce(e):(r=oe(e,"body").querySelector("body")).childNodes}};!function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(de||(de={}));de.Root,de.Text,de.Directive,de.Comment,de.Script,de.Style,de.Tag,de.CDATA,de.Doctype;class fe{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return Ee(this,e)}}class he extends fe{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}}class me extends he{constructor(){super(...arguments),this.type=de.Text}get nodeType(){return 3}}class ge extends he{constructor(){super(...arguments),this.type=de.Comment}get nodeType(){return 8}}class ve extends he{constructor(e,t){super(t),this.name=e,this.type=de.Directive}get nodeType(){return 1}}class ye extends fe{constructor(e){super(),this.children=e}get firstChild(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}}class be extends ye{constructor(){super(...arguments),this.type=de.CDATA}get nodeType(){return 4}}class ke extends ye{constructor(){super(...arguments),this.type=de.Root}get nodeType(){return 9}}class _e extends ye{constructor(e,t,n=[],r=("script"===e?de.Script:"style"===e?de.Style:de.Tag)){super(n),this.name=e,this.attribs=t,this.type=r}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map((e=>{var t,n;return{name:e,value:this.attribs[e],namespace:null===(t=this["x-attribsNamespace"])||void 0===t?void 0:t[e],prefix:null===(n=this["x-attribsPrefix"])||void 0===n?void 0:n[e]}}))}}function we(e){return(t=e).type===de.Tag||t.type===de.Script||t.type===de.Style;var t}function xe(e){return e.type===de.CDATA}function Se(e){return e.type===de.Text}function Ce(e){return e.type===de.Comment}function Ne(e){return e.type===de.Directive}function Ie(e){return e.type===de.Root}function Ee(e,t=!1){let n;if(Se(e))n=new me(e.data);else if(Ce(e))n=new ge(e.data);else if(we(e)){const r=t?Te(e.children):[],i=new _e(e.name,{...e.attribs},r);r.forEach((e=>e.parent=i)),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]={...e["x-attribsPrefix"]}),n=i}else if(xe(e)){const r=t?Te(e.children):[],i=new be(r);r.forEach((e=>e.parent=i)),n=i}else if(Ie(e)){const r=t?Te(e.children):[],i=new ke(r);r.forEach((e=>e.parent=i)),e["x-mode"]&&(i["x-mode"]=e["x-mode"]),n=i}else{if(!Ne(e))throw new Error(`Not implemented yet: ${e.type}`);{const t=new ve(e.name,e.data);null!=e["x-name"]&&(t["x-name"]=e["x-name"],t["x-publicId"]=e["x-publicId"],t["x-systemId"]=e["x-systemId"]),n=t}}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function Te(e){const t=e.map((e=>Ee(e,!0)));for(let e=1;e<t.length;e++)t[e].prev=t[e-1],t[e-1].next=t[e];return t}const Oe={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class Ae{constructor(e,t,n){this.dom=[],this.root=new ke(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=Oe),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:Oe,this.elementCB=null!=n?n:null}onparserinit(e){this.parser=e}onreset(){this.dom=[],this.root=new ke(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(e){this.handleCallback(e)}onclosetag(){this.lastNode=null;const e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)}onopentag(e,t){const n=this.options.xmlMode?de.Tag:void 0,r=new _e(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)}ontext(e){const{lastNode:t}=this;if(t&&t.type===de.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{const t=new me(e);this.addNode(t),this.lastNode=t}}oncomment(e){if(this.lastNode&&this.lastNode.type===de.Comment)return void(this.lastNode.data+=e);const t=new ge(e);this.addNode(t),this.lastNode=t}oncommentend(){this.lastNode=null}oncdatastart(){const e=new me(""),t=new be([e]);this.addNode(t),e.parent=t,this.lastNode=e}oncdataend(){this.lastNode=null}onprocessinginstruction(e,t){const n=new ve(e,t);this.addNode(n)}handleCallback(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e}addNode(e){const t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null}}for(var Le,Re=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussainBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],Be=g(Object.freeze({__proto__:null,DomHandler:Ae,default:Ae,Node:fe,DataNode:he,Text:me,Comment:ge,ProcessingInstruction:ve,NodeWithChildren:ye,CDATA:be,Document:ke,Element:_e,isTag:we,isCDATA:xe,isText:Se,isComment:Ce,isDirective:Ne,isDocument:Ie,hasChildren:function(e){return Object.prototype.hasOwnProperty.call(e,"children")},cloneNode:Ee})),Fe=Re,Pe=Be.Comment,Me=Be.Element,De=Be.ProcessingInstruction,je=Be.Text,ze={},He=0,Ue=Fe.length;He<Ue;He++)Le=Fe[He],ze[Le.toLowerCase()]=Le;function Ve(e){for(var t,n={},r=0,i=e.length;r<i;r++)n[(t=e[r]).name]=t.value;return n}function qe(e){var t=function(e){return ze[e]}(e=e.toLowerCase());return t||e}var Ye={formatAttributes:Ve,formatDOM:function e(t,n,r){n=n||null;for(var i=[],o=0,a=t.length;o<a;o++){var l,s=t[o];switch(s.nodeType){case 1:(l=new Me(qe(s.nodeName),Ve(s.attributes))).children=e(s.childNodes,l);break;case 3:l=new je(s.nodeValue);break;case 8:l=new Pe(s.nodeValue);break;default:continue}var c=i[o-1]||null;c&&(c.next=l),l.parent=n,l.prev=c,l.next=null,i.push(l)}return r&&((l=new De(r.substring(0,r.indexOf(" ")).toLowerCase(),r)).next=i[0]||null,l.parent=n,i.unshift(l),i[1]&&(i[1].prev=i[0])),i}}.formatDOM,Ge=/<(![a-zA-Z\s]+)>/;var We=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,n=e.match(Ge);return n&&n[1]&&(t=n[1]),Ye(pe(e),null,t)},Xe=g(Object.freeze({__proto__:null,default:We}));Xe="function"==typeof Xe.default?Xe.default:Xe;var Ke={lowerCaseAttributeNames:!1};function Je(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:te(Xe(e,(t=t||{}).htmlparser2||Ke),t)}Je.domToReact=te,Je.htmlToDOM=Xe,Je.attributesToProps=J,Je.Element=Be.Element;var Qe=Je,Ze=Je;Qe.default=Ze;var $e=function(e){var n=e.label,r=e.value,i=e.className;return r||n?t("p",{className:i},n?t("span",null,n):null,r):null},et=function(e){var n=e.item,r=e.Link,i=e.linkProps,o=e.value,a=e.onClick;switch(n.prop){case"url":return t(r,u({},i,{className:I,onClick:a}),"View to see price");case"title":return t(r,u({},i,{className:v(w,""+tt+n.prop,n.className),onClick:a}),o);case"has_options":return o?t("div",{className:T},t(r,u({},i,{className:v(O,""+tt+n.prop)}),"Options available")):null;case"fitment_applicability":return o?t("span",{className:v(w,""+tt+n.prop,"Fitment-Specific"===o?"fitmentSpecific":"universal")},o):null;case"dealerid":case"stockid":return t(r,u({},i,{onClick:a,className:v("Sui-ProductListItem--"+n.prop+"-link")}),t($e,{className:v(w,""+tt+n.prop,n.className),label:n.label,value:o}));default:return t($e,{className:v(w,""+tt+n.prop,n.className),label:n.label,value:o})}},tt="Sui-ProductListItem--",nt=[{position:"center",prop:"brand_name"},{position:"center",prop:"title"},{position:"center",prop:"tag"},{label:"SKU: ",position:"center",prop:"stockid"},{label:"PART #: ",position:"center",prop:"dealerid"},{position:"right",prop:"availability"},{position:"right",prop:"sale"},{position:"right",prop:"price"},{position:"right",prop:"remarks"},{position:"right",prop:"availability_remarks"}],rt=function(e){var n,r=e.data,i=e.styled,o=e.visibleFields,a=void 0===o?nt:o,l=e.className,s=void 0===l?"":l,c=e.orientation,d=void 0===c?"horizontal":c,p=e.noImageUrl,h=e.linkEl,m=void 0===h?"a":h,g=e.onItemClick,y=r.url?m:"div",b=r.url?{href:r.url}:{},w=(Array.isArray(a)?a:nt).reduce((function(e,t){if(void 0===r[t.prop]||null===r[t.prop])return e;switch(t.position){case"center":return u(u({},e),{center:f(e.center,[t])});case"right":return u(u({},e),{right:f(e.right,[t])});default:return e}}),{center:[],right:[]});return t("section",{className:v(_,(n={},n[N]=i,n[C]="vertical"===d,n),tt+"root",s),role:"listitem"},t(y,u({className:v(S,tt+"image"),onClick:function(e){return null==g?void 0:g(e,r)}},b),t(k,{alt:"Search reult",className:x,url:r.image_url,noImageUrl:p})),t("ul",null,w.center.map((function(e){return t("li",{key:e.prop,className:"Sui-ProductListItem-Container--"+e.prop,role:"listitem"},t(et,{item:e,Link:y,linkProps:b,value:it(e.prop,r[e.prop],r.has_product_series),onClick:function(e){return null==g?void 0:g(e,r)}}))}))),t("ul",{className:E},w.right.map((function(e){return t("li",{key:e.prop,className:"Sui-ProductListItem-Container--"+e.prop,role:"listitem"},t(et,{item:e,Link:y,linkProps:b,value:it(e.prop,r[e.prop],r.has_product_series),onClick:function(e){return null==g?void 0:g(e,r)}}))}))))};function it(e,n,i){switch(e){case"price":if(n){var o=y(n);return i?t(r,null,t("span",{className:v(A,"Sui-ProductListItem-Container--"+e+"-label-from")},"From:")," ",o):o}return n;case"sale":return n?y(n):n;case"tag":case"availability_remarks":case"remarks":return Qe(n);default:return n}}function ot(e){if(e){var t=JSON.parse(localStorage.getItem("pl-recent-search-terms"))||[];localStorage.setItem("pl-recent-search-terms",JSON.stringify(Array.from(new Set(f([e],t))).slice(0,10)))}}var at=[{position:"center",prop:"brand_name"},{position:"center",prop:"title"},{position:"center",prop:"tag",className:"mb-7"},{position:"center",prop:"fitment_applicability"},{label:"SKU: ",position:"center",prop:"stockid",className:"mb-7"},{label:"PART #: ",position:"center",prop:"dealerid"}];function lt(e){for(var t={},n=[],r=0,i=e;r<i.length;r++){var o=i[r];t[o.prop]||(n=f(n,[o])),t[o.prop]=!0}return n}var st=function(e){var n=e.size,r=void 0===n?20:n,i=e.style;return t("svg",{height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",style:i},t("path",{fill:"currentColor",d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},ct=function(e){var n=e.size,r=void 0===n?20:n,i=e.className;return t("svg",{className:i,height:r,width:r,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",version:"1.1",id:"Layer_1",x:"0px",y:"0px",viewBox:"0 0 100 100",xmlSpace:"preserve"},t("path",{d:"M94.4,91.6L67.8,65c5.7-6.4,9.2-14.8,9.2-24C77,21.1,60.9,5,41,5S5,21.1,5,41s16.1,36,36,36c9.2,0,17.6-3.5,24-9.2 l26.6,26.6C92,94.8,92.5,95,93,95s1-0.2,1.4-0.6C95.2,93.6,95.2,92.4,94.4,91.6z M41,73C23.4,73,9,58.6,9,41C9,23.4,23.4,9,41,9 s32,14.4,32,32C73,58.6,58.6,73,41,73z"}))},ut="searchBarSuggestions_suggestionContainer__1m96a",dt="searchBarSuggestions_link__1rcDs",pt="searchBarSuggestions_listContainer__2O5EM",ft="searchBarSuggestions_basicItemLink__2hEMG",ht="searchBarSuggestions_imageContainer__2H3z6",mt="searchBarSuggestions_basicItemTitle__3MJeQ",gt="searchBarSuggestions_viewMoreContainer__2gobp",vt="searchBarSuggestions_searchTermHistoryItem__3xi7Q",yt="searchBarSuggestions_searchTermHistoryItemIcon__sZmTm",bt="searchBarSuggestions_styledResultItem__3mBB5",kt="searchBarSuggestions_styledSuggestionContainer__H33XA",_t="searchBarSuggestions_styledList__MKl23",wt="searchBarSuggestions_styledListTitle__2VK-S",xt="searchBarSuggestions_styledViewMoreBtn__3nh1Y",St="searchBarSuggestions_clearHistoryBtn__39npD",Ct=function(e){var n,r=e.linkEl,i=e.suggestion,o=e.styled,a=e.visibleFields,l=e.onItemClick;return t(rt,{className:v((n={},n[bt]=o,n),"Sui-SearchBar--result-item"),data:i,visibleFields:a,styled:o,orientation:"vertical",linkEl:r,onItemClick:function(e,t){return l(t)}})},Nt=function(e){var n=e.linkEl,r=e.suggestion,i=e.onItemClick,o=r.url?n:"div",a=r.url?{href:r.url}:{};return t(o,u({key:r.id,className:v(dt,ft,"Sui-SearchBar--result-item"),onClick:i},a,{role:"listitem"}),t("div",{className:ht},t(k,{url:r.image_url,alt:"categoryImage"})),t("h1",{className:v(mt,"Sui-CategoryList--title")},r.name))},It=function(e){var n=e.suggestion,r=e.onClick;return t("button",{type:"button",className:vt,onClick:function(){return r(n.name)}},t(ct,{className:yt,size:15}),t("p",null,n.name))},Et=function(e){var n,r,i=e.sections,o=e.styled,a=e.linkEl,l=e.onItemClick,s=e.renderProduct,c=e.onClearHistory,d=e.onHistoryItemClick,p=!i.some((function(e){var t;return"history"!==e.type&&(null===(t=e.data)||void 0===t?void 0:t.total)>0}))?i:i.filter((function(e){return"history"!==e.type}));return t("div",{className:v(ut,(n={},n[kt]=o,n),"Sui-SearchBar--suggestions-container")},t("div",{className:v((r={},r[_t]=o,r))},p.map((function(e){var n,r,i,p=e.title,f=(null===(r=e.data)||void 0===r?void 0:r.list)||[],h=null===(i=e.data)||void 0===i?void 0:i.total,m=e.visibleFields,g=e.type;return f.length?t("div",{key:e.type,className:"Sui-SearchBar--section-container-"+g},p?t("h3",{className:v((n={},n[wt]=o,n),"Sui-SearchBar--list-title")},p):null,t("div",{className:v(pt,"Sui-SearchBar--section-"+g)},f.map((function(e){switch(g){case"product":return(null==s?void 0:s(e))||t(Ct,{key:e.id,linkEl:a,suggestion:e,styled:o,visibleFields:m,onItemClick:function(){return null==l?void 0:l(e)}});case"history":return t(It,{key:e.id,suggestion:e,onClick:function(e){return null==d?void 0:d(e)}});default:return t(Nt,{key:e.id,linkEl:a,suggestion:e,onItemClick:function(){return null==l?void 0:l(e)}})}}))),"history"===e.type?t("button",{type:"button",className:St,onClick:function(){localStorage.removeItem("pl-recent-search-terms"),null==c||c()}},t(st,{size:15}),"Clear History"):null,"history"!==e.type&&e.onViewMoreClick&&h>f.length?t("div",{className:v(gt,"Sui-SearchBar--section-view-more-button")},t("button",{type:"button",onClick:function(){var t=u({},e);delete t.onViewMoreClick,e.onViewMoreClick(t)},className:o?"SuiButton primary "+xt:""},e.viewMoreButtonText||"View more")):null):null}))))};var Tt=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Ot="object"==typeof h&&h&&h.Object===Object&&h,At="object"==typeof self&&self&&self.Object===Object&&self,Lt=Ot||At||Function("return this")(),Rt=function(){return Lt.Date.now()},Bt=Lt.Symbol,Ft=Object.prototype,Pt=Ft.hasOwnProperty,Mt=Ft.toString,Dt=Bt?Bt.toStringTag:void 0;var jt=function(e){var t=Pt.call(e,Dt),n=e[Dt];try{e[Dt]=void 0;var r=!0}catch(e){}var i=Mt.call(e);return r&&(t?e[Dt]=n:delete e[Dt]),i},zt=Object.prototype.toString;var Ht=function(e){return zt.call(e)},Ut=Bt?Bt.toStringTag:void 0;var Vt=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ut&&Ut in Object(e)?jt(e):Ht(e)};var qt=function(e){return null!=e&&"object"==typeof e};var Yt=function(e){return"symbol"==typeof e||qt(e)&&"[object Symbol]"==Vt(e)},Gt=/^\s+|\s+$/g,Wt=/^[-+]0x[0-9a-f]+$/i,Xt=/^0b[01]+$/i,Kt=/^0o[0-7]+$/i,Jt=parseInt;var Qt=function(e){if("number"==typeof e)return e;if(Yt(e))return NaN;if(Tt(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Tt(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Gt,"");var n=Xt.test(e);return n||Kt.test(e)?Jt(e.slice(2),n?2:8):Wt.test(e)?NaN:+e},Zt=Math.max,$t=Math.min;var en=function(e,t,n){var r,i,o,a,l,s,c=0,u=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=r,o=i;return r=i=void 0,c=t,a=e.apply(o,n)}function h(e){return c=e,l=setTimeout(g,t),u?f(e):a}function m(e){var n=e-s;return void 0===s||n>=t||n<0||d&&e-c>=o}function g(){var e=Rt();if(m(e))return v(e);l=setTimeout(g,function(e){var n=t-(e-s);return d?$t(n,o-(e-c)):n}(e))}function v(e){return l=void 0,p&&r?f(e):(r=i=void 0,a)}function y(){var e=Rt(),n=m(e);if(r=arguments,i=this,s=e,n){if(void 0===l)return h(s);if(d)return clearTimeout(l),l=setTimeout(g,t),f(s)}return void 0===l&&(l=setTimeout(g,t)),a}return t=Qt(t)||0,Tt(n)&&(u=!!n.leading,o=(d="maxWait"in n)?Zt(Qt(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p),y.cancel=function(){void 0!==l&&clearTimeout(l),c=0,r=s=i=l=void 0},y.flush=function(){return void 0===l?a:v(Rt())},y};function tn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var nn=function(e,t,n,r){t=t||"&",n=n||"=";var i={};if("string"!=typeof e||0===e.length)return i;var o=/\+/g;e=e.split(t);var a=1e3;r&&"number"==typeof r.maxKeys&&(a=r.maxKeys);var l=e.length;a>0&&l>a&&(l=a);for(var s=0;s<l;++s){var c,u,d,p,f=e[s].replace(o,"%20"),h=f.indexOf(n);h>=0?(c=f.substr(0,h),u=f.substr(h+1)):(c=f,u=""),d=decodeURIComponent(c),p=decodeURIComponent(u),tn(i,d)?Array.isArray(i[d])?i[d].push(p):i[d]=[i[d],p]:i[d]=p}return i},rn=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},on=function(e,t,n,r){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(r){var i=encodeURIComponent(rn(r))+n;return Array.isArray(e[r])?e[r].map((function(e){return i+encodeURIComponent(rn(e))})).join(t):i+encodeURIComponent(rn(e[r]))})).join(t):r?encodeURIComponent(rn(r))+n+encodeURIComponent(rn(e)):""},an=m((function(e,t){t.decode=t.parse=nn,t.encode=t.stringify=on}));const ln={API_URL:"https://api.sunhammer.io",LIBRARY_NAME:"@partslogic/ui",STORY_BOOK_URL:"https://ui.sunhammer.io/"},sn="object"==typeof window?window:{};sn.partslogic=sn.partslogic||{},sn.partslogic.config={API_KEY:{API_URL:"https://api.sunhammer.io",LIBRARY_NAME:"@partslogic/ui",NODE_ENV:"production",STORY_BOOK_URL:"https://ui.sunhammer.io/"}.STORYBOOK_API_KEY,throttleRequests:{}};var cn=ln,un=function(){return sn.partslogic.config},dn={get:function(e,t,n){return void 0===t&&(t={}),d(this,void 0,void 0,(function(){var r,i,o,a,l,s,c,u,d;return p(this,(function(p){switch(p.label){case 0:r=un(),i=r.API_KEY,o=r.throttleRequests,i||console.error("API_KEY is not valid. Please enter a valid one."),p.label=1;case 1:return p.trys.push([1,3,,4]),a=JSON.parse(JSON.stringify(t)),l=Object.keys(a).length?"?"+an.stringify(a):"",c=o[s=""+e+l],u=c||fetch(s,{headers:{"sunhammer-api-key":i},signal:n}),o[s]=u,[4,o[s]];case 2:if(!(d=p.sent()).ok)throw new Error("Network response was not ok");return delete o[s],[2,d.clone().json()];case 3:throw p.sent();case 4:return[2]}}))}))}};function pn(e,t){switch(t.type){case"ERROR":return u(u({},e),{data:null,error:t.error,status:"REJECTED"});case"SUCCESS":return u(u({},e),{data:t.data,error:"",status:"RESOLVED"});case"LOADING":return u(u({},e),{error:"",status:"LOADING"});case"RESET":return{data:null,error:"",status:""};default:throw new Error("Unhandled action type in useFetch.")}}function fn(e,t,n,r,i,o){return u(u(u(u({limit:t,page:e,q:n},r?{sort:r}:{}),i?{fitment:i}:{}),o?{productId:o}:{}),o?{getSkus:!0}:{})}var hn=function(e){var n=e.size,r=void 0===n?20:n,i=e.className;return t("svg",{className:i,height:r,width:r,"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"search",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},t("path",{fill:"currentColor",d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"}))},mn={root:"loadingIndicator_root__npeKe","running-progress":"loadingIndicator_running-progress__1LY3F","sk-fading-circle":"loadingIndicator_sk-fading-circle__1TTJV","sk-circle":"loadingIndicator_sk-circle__CwR68","sk-circleFadeDelay":"loadingIndicator_sk-circleFadeDelay__3VwzZ","sk-circle2":"loadingIndicator_sk-circle2__1gpYo","sk-circle3":"loadingIndicator_sk-circle3__2GoQv","sk-circle4":"loadingIndicator_sk-circle4__1F1d-","sk-circle5":"loadingIndicator_sk-circle5__1I-LA","sk-circle6":"loadingIndicator_sk-circle6__26mL6","sk-circle7":"loadingIndicator_sk-circle7__3BF0d","sk-circle8":"loadingIndicator_sk-circle8__2ITYw","sk-circle9":"loadingIndicator_sk-circle9__2pFiT","sk-circle10":"loadingIndicator_sk-circle10__2Gk5Q","sk-circle11":"loadingIndicator_sk-circle11__34lxl","sk-circle12":"loadingIndicator_sk-circle12__34fj1"},gn=function(e){var n=e.type,r=e.className;return"linear"===n?t("div",{className:v(mn.root,void 0===r?"":r)}):t("div",{className:mn["sk-fading-circle"]},t("div",{className:v(mn["sk-circle"])}),Array.from({length:11}).map((function(e,n){return t("div",{key:n,className:v(mn["sk-circle"+(n+2)],mn["sk-circle"])})})))},vn="searchBar_searchBarRoot__31Xa5",yn="searchBar_searchBarContainer__3alwO",bn="searchBar_searchBarInputContainer__AYpAJ",kn="searchBar_inputContainer__3LGWJ",_n="searchBar_inputContainerWithFitment__1ZYz6",wn="searchBar_input__PXdEA",xn="searchBar_clearIcon__2yjvH",Sn="searchBar_searchIcon__3y9ws",Cn="searchBar_fitmentContainer__3IZsv",Nn="searchBar_clearFitmentBtn__14jdY",In="searchBar_searchBarStyled__luh3_",En="searchBar_styledButton__gW4GL",Tn="searchBar_inputStyled__XoO4F",On="searchBar_styledFitmentContainer__1Y9am",An="searchBar_fitmentText__1M4XP",Ln="searchBar_inputContainerStyled__26B1I",Rn=function(e){var r,i,s,c,d=e.className,p=e.linkEl,f=void 0===p?"a":p,h=e.noResultsText,m=e.placeholder,g=void 0===m?"Enter keyword":m,y=e.searchButtonText,b=void 0===y?"Search":y,k=e.showCloseIcon,_=e.styled,w=e.onSubmit,x=e.showNoResultsMsg,S=void 0===x||x,C=e.searchValue,N=void 0===C?"":C,I=e.isLoading,E=e.onChange,T=e.onClear,O=e.renderNoResults,A=e.sections,L=e.renderList,R=e.onItemClick,B=e.fitment,F=e.onClearFitment,P=e.onClearHistory,M=e.retainFitmentOnSubmit,D=void 0!==M&&M,j=n(N),z=j[0],H=j[1],U=n(!1),V=U[0],q=U[1],Y=n(null),G=Y[0],W=Y[1],X=[],K=o(null),J=o(null),Q=l((function(e){"Escape"===e.key&&q(!1)}),[]),Z=l((function(e){var t;(null===(t=K.current)||void 0===t?void 0:t.contains(e.target))||q(!1)}),[K.current]);a((function(){return document.addEventListener("click",Z),document.addEventListener("keyup",Q),function(){document.removeEventListener("click",Z),document.removeEventListener("keyup",Q)}}),[]),a((function(){V||W(null)}),[V]),a((function(){H(N)}),[N]);var $=function(){z&&q(!0)},ee=function(){setTimeout((function(){null==F||F()}))};return t("div",{className:v(vn,(r={},r[In]=_,r),d),role:"button",tabIndex:0,onKeyDown:function(e){switch(e.key){case"ArrowDown":$(),e.preventDefault()}}},t("form",{ref:K,className:v(yn),onSubmit:function(e){e.preventDefault(),X[G]||(B||D||localStorage.removeItem("sui-fitment-selector-v2"),null==w||w(z),ot(z))}},I&&_?t(gn,{type:"linear",className:"Sui-SearchBar--loading-indicator"}):null,t("div",{className:bn},t("div",{className:v(kn,(i={},i[Ln]=_,i[_n]=!!B,i))},function(){var e;return B?t("div",{className:v(Cn,(e={},e[On]=_,e))},t("p",{className:An},function(e){var t=/\|/g;return e.replace(t," ")}(B)),t("button",{type:"reset","aria-label":"clearFitment",className:Nn,onClick:ee},t(st,null))):null}(),t("input",{className:v((s={},s["SuiInput "+Tn]=_,s),wn,"Sui-SearchBar--search-input"),ref:J,id:"sui-search-bar-input",name:"sui-search-bar-input",autoComplete:"off",placeholder:g||"","aria-label":"search-input",value:z,onChange:function(e){var t=e.currentTarget.value;H(t),q(!0),null==E||E(t)},onFocus:function(){setTimeout((function(){var e,t,n;W(-1),(z||(null===(n=null===(t=null===(e=A.find((function(e){return"history"===e.type})))||void 0===e?void 0:e.data)||void 0===t?void 0:t.list)||void 0===n?void 0:n.length))&&q(!0)}))}}),k&&z&&t("button",{type:"reset","aria-label":"clear",className:xn,onClick:function(){H(""),null==T||T(),J.current.focus()}},t(st,null))),t("button",{className:v((c={},c["SuiButton primary "+En]=_,c),"Sui-SearchBar--search-button"),type:"submit"},t("span",null,b),t(hn,{className:Sn}))),S&&(O?O():h?t("p",null,h):null),function(){var e,t,n=null===(t=null===(e=A.find((function(e){return"history"===e.type})))||void 0===e?void 0:e.data)||void 0===t?void 0:t.list.length,r=A.filter((function(e){return"history"!==e.type})),i=r.some((function(e){var t,n;return void 0!==(null===(n=null===(t=e.data)||void 0===t?void 0:t.list)||void 0===n?void 0:n.length)})),o=r.reduce((function(e,t){var n,r;return e+((null===(r=null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.list)||void 0===r?void 0:r.length)||0)}),0);return(!i&&n||i&&o)&&V}()?L?L(A.reduce((function(e,t){var n;return u(u({},e),((n={})[t.type]={data:null==t?void 0:t.data,title:t.title},n))}),{}),z):t(Et,{styled:_,sections:A,linkEl:f,onItemClick:R,onClearHistory:P,onHistoryItemClick:function(e){H(e),null==E||E(e)}}):null))};var Bn="styles_styledNoResults__2In0o",Fn=new AbortController,Pn=Fn.signal,Mn=[{maxResults:5,title:"Categories",type:"category"},{maxResults:5,title:"Brands",type:"brand"},{maxResults:5,title:"Products",type:"product"}],Dn={brand:cn.API_URL+"/brands",category:cn.API_URL+"/categories",product:cn.API_URL+"/products"},jn=s((function(e,s){var f,h=e.className,m=e.linkEl,g=void 0===m?"a":m,y=e.noResultsText,b=e.placeholder,k=void 0===b?"Enter keyword":b,_=e.searchButtonText,w=void 0===_?"Search":_,x=e.showCloseIcon,S=e.styled,C=e.onSubmit,N=e.showNoResultsMsg,I=void 0===N||N,E=e.searchValue,T=void 0===E?"":E,O=e.sections,A=void 0===O?Mn:O,L=e.renderList,R=e.onItemClick,B=e.fitment,F=e.onClearFitment,P=e.defaultQueryParams,M=void 0===P?{}:P,D=Array.isArray(A)&&0!==A.length?A:Mn,j=D.filter((function(e){return"history"===e.type})).length,z=function(){var e=this,t=i(pn,{data:null,error:"",status:""}),n=t[0],r=t[1],l=o(!1);return a((function(){return l.current=!0,function(){return l.current=!1}}),[]),[function(t){return d(e,void 0,void 0,(function(){var e,n;return p(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),l.current&&r({type:"LOADING"}),[4,Promise.all(t.map((function(e){return dn.get(e.url,e.query,e.signal)})))];case 1:return e=i.sent(),l.current&&r({data:e,type:"SUCCESS"}),[3,3];case 2:return n=i.sent(),l.current&&r({error:n.message||"Unknown error",type:"ERROR"}),[3,3];case 3:return[2]}}))}))},n,r]}(),H=z[0],U=z[1],V=z[2],q="LOADING"===U.status,Y=null===(f=null==U?void 0:U.data)||void 0===f?void 0:f.reduce((function(e,t){var n;return e+((null===(n=t.list)||void 0===n?void 0:n.length)||0)}),0),G=n(""),W=G[0],X=G[1],K=n(T),J=K[0],Q=K[1],Z=n(B),$=Z[0],ee=Z[1],te=n({})[1];a((function(){ie()}),[A]),a((function(){ee(B)}),[B]),a((function(){Q(T)}),[T]),c(s,(function(){return{loadData:function(e,t){ne(e,t)}}}));var ne=l(en((function(e,t){return d(void 0,void 0,void 0,(function(){var n;return p(this,(function(r){switch(r.label){case 0:return e.length>=1?(n=D.filter((function(e){return"history"!==e.type})).map((function(n){return{query:u(u({},fn(1,n.maxResults||5,e,null,t)),M),signal:Pn,url:Dn[n.type]}})),[4,H(n)]):[3,2];case 1:return r.sent(),X(e),[3,3];case 2:ie(),r.label=3;case 3:return[2]}}))}))}),400),[A,1]),re=function(e){var n;return t("p",{className:v((n={},n[Bn]=S,n),"Sui-SearchBar--no-results")},e)},ie=function(){V({type:"RESET"}),X("")};return t(r,null,t(Rn,{className:h,linkEl:g,noResultsText:y,placeholder:k,searchButtonText:w,showCloseIcon:x,styled:S,onSubmit:C,showNoResultsMsg:I,searchValue:J,renderNoResults:function(){return"REJECTED"===U.status&&J===W?re(U.error+"."):!q&&J===W&&J.length>=1&&!Y?re(y||"No results for: "+W):null},onClear:function(){Q(""),ie()},onChange:function(e){Q(e),"LOADING"===U.status&&(Fn.abort(),Fn=new AbortController,Pn=Fn.signal),ne(e,$)},isLoading:q,onClearHistory:function(){te({})},sections:D.map((function(e,t){var n,r,i,o,a,l;if("history"===e.type){var s=JSON.parse(localStorage.getItem("pl-recent-search-terms")||"[]");return u(u({},e),s.length?{data:{list:s.map((function(e,t){return{id:t,name:e}})),total:s.length}}:{})}var c=t-(j?1:0);return u(u({},e),void 0!==(null===(r=null===(n=U.data)||void 0===n?void 0:n[c])||void 0===r?void 0:r.total)?{data:{list:(null===(o=null===(i=U.data)||void 0===i?void 0:i[c])||void 0===o?void 0:o.list)||[],total:(null===(l=null===(a=U.data)||void 0===a?void 0:a[c])||void 0===l?void 0:l.total)||0}}:{})})),renderList:L,onItemClick:R,fitment:$,onClearFitment:function(){ee(""),null==F||F(),localStorage.setItem("sui-fitment-selector-v2","[]"),ne(J,"")}}))})),zn="wsmSearchBarWrapperStyles_root__3hHgT",Hn={maxResults:5,title:"",type:"history"},Un=f(Mn);export default function(e){var r=e.showRecentTerms,i=void 0===r||r,a=e.sections,l=void 0===a?Un:a,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["showRecentTerms","sections"]),c=n({})[1],d=i?f([Hn],l):l,p=n(s.searchValue),h=p[0],m=p[1],g=o(null);return t(jn,u({},s,{ref:g,className:v(zn,s.className),sections:d,defaultQueryParams:s.defaultQueryParams,searchValue:h,renderList:function(e,n){return t(Et,{styled:s.styled,sections:(d||Un).map((function(t){return u(u({},t),{data:e[t.type].data})})),linkEl:s.linkEl||"a",onItemClick:function(e){var t;ot(n),null===(t=s.onItemClick)||void 0===t||t.call(s,e)},onClearHistory:function(){return c({})},onHistoryItemClick:function(e){m(e),g.current.loadData(e,s.fitment)},renderProduct:function(e){var r=function(e){var t=f(at),n=u({},e);return"Please Call"===e.availability?(t=f(t,[{position:"right",prop:"availability",className:"red bold"}]),n.sale=null,n.price=null):("Out of Stock"===e.availability||"Inventory"===e.availability&&0===e.inventory)&&(n.availability="Out of Stock",t=f(t,[{position:"right",prop:"availability",className:"red bold"}])),1===e.sale_hidden?(n.price=null,t=f(t,[{position:"right",prop:"url"}])):e.sale>0&&e.sale<e.price?t=f(t,[{position:"right",prop:"sale",className:"red bold"},{position:"right",prop:"price",className:"old-price"}]):0===e.sale&&e.price>=0?t=f(t,[{position:"right",prop:"price",className:"bold"}]):e.sale&&e.price&&e.sale===e.price&&(t=f(t,[{position:"right",prop:"price"}])),t=f(t,[{position:"right",prop:"remarks"},{position:"right",prop:"availability_remarks"}]),e.has_options&&("Available"===e.availability||"Inventory"===e.availability&&e.inventory>0)&&(t=f(t,[{position:"right",prop:"has_options"}])),{visibleFields:lt(t),product:n}}(e),i=r.product,o=r.visibleFields;return i.remarks=null,i.availability_remarks=null,t(rt,{key:e.id,data:i,styled:s.styled,orientation:"horizontal",visibleFields:o,linkEl:s.linkEl||"a",onItemClick:function(e,t){var r;ot(n),null===(r=s.onItemClick)||void 0===r||r.call(s,t)}})}})}}))}
|
|
22
|
+
//# sourceMappingURL=index.esm.js.map
|