@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
|
+
: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}.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}.listControls_root__1XiZv{display:flex;justify-content:space-between;padding:.5rem}.listControls_iconContainer__EUUvE{padding:0;border:none;background-color:transparent;margin:0 0 0 .5rem;cursor:pointer;outline:none;display:flex;align-items:center;justify-content:center}.listControls_icon__3X_9L{width:1em;height:1em;color:var(--sui-secondary-color-dark)}.listControls_icon__3X_9L.listControls_selected__1We4P{color:var(--sui-primary-color)}.listControls_itemsPerPageContainer__1Jlp9{display:flex;align-items:center}.listControls_itemsPerPageContainer__1Jlp9 p{margin:0;padding-right:.5rem}.listControls_right__2YOEf{display:flex}.listControls_left__3yT59{display:flex;align-items:center}.listControls_left__3yT59 p{margin:0;padding-right:.5rem}.listControls_rootStyled__-WTs4{background-color:var(--sui-secondary-color)}.pagination_root__364lu{display:flex;align-items:center}.pagination_angleIcon__2UTcR,.pagination_angleIconRight__ysXch{display:flex;justify-content:center;align-items:center;width:1em;height:1em;font-size:1.25rem}.pagination_angleIconRight__ysXch{transform:rotate(180deg)}.pagination_pageLink__fl_OV{color:inherit;padding:0 .5rem;text-decoration:unset;border:none;background-color:transparent;cursor:pointer}.pagination_disabled__15wHQ{opacity:.5}.pagination_active__2LHHU{text-decoration:underline;opacity:1;font-weight:700}.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}}.list_root__m2F7Y{display:grid;position:relative}.list_loadingIndicator__3R1aV{top:0}.list_listContainer__3UJa6{display:grid;grid-gap:.5rem;overflow-x:hidden}.list_listContainer__3UJa6:not(.list_listHorizontal__3sgr7){grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}.list_isBusy__3F6sL{opacity:.5}.list_listHorizontal__3sgr7{grid-template-columns:1fr}.list_pagination__1pWk4{display:flex;justify-content:center}.list_listContainerStyled__38ZCr{padding-top:.5rem}.productList_resultItemStyledInGrid__12GNR{box-shadow:none;display:flex;flex-direction:column}.productList_styledListContainer__156EZ .Sui-List--horizontal{gap:2.5rem}.productList_styledListContainer__156EZ .Sui-List--container{grid-gap:1rem .5rem}.listWrapper_noResultsText__A1Nfj{text-align:center}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import e,{useReducer as t,useRef as n,useEffect as r,createElement as i,useState as o,Fragment as a,useCallback as s}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 l=function(){return(l=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 c(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function u(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:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){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,s])}}}function d(){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,s=o.length;a<s;a++,i++)r[i]=o[a];return r}var p=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function f(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 m(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 g="object"==typeof h&&h&&h.Object===Object&&h,v="object"==typeof self&&self&&self.Object===Object&&self,y=g||v||Function("return this")(),b=function(){return y.Date.now()},k=y.Symbol,w=Object.prototype,x=w.hasOwnProperty,_=w.toString,C=k?k.toStringTag:void 0;var N=function(e){var t=x.call(e,C),n=e[C];try{e[C]=void 0;var r=!0}catch(e){}var i=_.call(e);return r&&(t?e[C]=n:delete e[C]),i},S=Object.prototype.toString;var I=function(e){return S.call(e)},P=k?k.toStringTag:void 0;var E=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":P&&P in Object(e)?N(e):I(e)};var L=function(e){return null!=e&&"object"==typeof e};var O=function(e){return"symbol"==typeof e||L(e)&&"[object Symbol]"==E(e)},T=/^\s+|\s+$/g,A=/^[-+]0x[0-9a-f]+$/i,R=/^0b[01]+$/i,F=/^0o[0-7]+$/i,M=parseInt;var D=function(e){if("number"==typeof e)return e;if(O(e))return NaN;if(p(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=p(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(T,"");var n=R.test(e);return n||F.test(e)?M(e.slice(2),n?2:8):A.test(e)?NaN:+e},z=Math.max,U=Math.min;var j=function(e,t,n){var r,i,o,a,s,l,c=0,u=!1,d=!1,h=!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 m(e){return c=e,s=setTimeout(v,t),u?f(e):a}function g(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=o}function v(){var e=b();if(g(e))return y(e);s=setTimeout(v,function(e){var n=t-(e-l);return d?U(n,o-(e-c)):n}(e))}function y(e){return s=void 0,h&&r?f(e):(r=i=void 0,a)}function k(){var e=b(),n=g(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return m(l);if(d)return clearTimeout(s),s=setTimeout(v,t),f(l)}return void 0===s&&(s=setTimeout(v,t)),a}return t=D(t)||0,p(n)&&(u=!!n.leading,o=(d="maxWait"in n)?z(D(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),k.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=i=s=void 0},k.flush=function(){return void 0===s?a:y(b())},k};function H(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var B=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 s=e.length;a>0&&s>a&&(s=a);for(var l=0;l<s;++l){var c,u,d,p,h=e[l].replace(o,"%20"),f=h.indexOf(n);f>=0?(c=h.substr(0,f),u=h.substr(f+1)):(c=h,u=""),d=decodeURIComponent(c),p=decodeURIComponent(u),H(i,d)?Array.isArray(i[d])?i[d].push(p):i[d]=[i[d],p]:i[d]=p}return i},V=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},q=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(V(r))+n;return Array.isArray(e[r])?e[r].map((function(e){return i+encodeURIComponent(V(e))})).join(t):i+encodeURIComponent(V(e[r]))})).join(t):r?encodeURIComponent(V(r))+n+encodeURIComponent(V(e)):""},Y=f((function(e,t){t.decode=t.parse=B,t.encode=t.stringify=q}));const W={API_URL:"https://api.sunhammer.io",LIBRARY_NAME:"@partslogic/ui",STORY_BOOK_URL:"https://ui.sunhammer.io/"},G="object"==typeof window?window:{};G.partslogic=G.partslogic||{},G.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 X=W,K=function(){return G.partslogic.config},Z={get:function(e,t,n){return void 0===t&&(t={}),c(this,void 0,void 0,(function(){var r,i,o,a,s,l,c,d,p;return u(this,(function(u){switch(u.label){case 0:r=K(),i=r.API_KEY,o=r.throttleRequests,i||console.error("API_KEY is not valid. Please enter a valid one."),u.label=1;case 1:return u.trys.push([1,3,,4]),a=JSON.parse(JSON.stringify(t)),s=Object.keys(a).length?"?"+Y.stringify(a):"",c=o[l=""+e+s],d=c||fetch(l,{headers:{"sunhammer-api-key":i},signal:n}),o[l]=d,[4,o[l]];case 2:if(!(p=u.sent()).ok)throw new Error("Network response was not ok");return delete o[l],[2,p.clone().json()];case 3:throw u.sent();case 4:return[2]}}))}))}};function $(e,t){switch(t.type){case"ERROR":return l(l({},e),{data:null,error:t.error,status:"REJECTED"});case"SUCCESS":return l(l({},e),{data:t.data,error:"",status:"RESOLVED"});case"LOADING":return l(l({},e),{error:"",status:"LOADING"});case"RESET":return{data:null,error:"",status:""};default:throw new Error("Unhandled action type in useFetch.")}}var J=f((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 s in i)t.call(i,s)&&i[s]&&e.push(s)}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}));function Q(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 ee=function(e){var t=e.className;return i("svg",{version:"1.1",viewBox:"0 0 600 400",enableBackground:"new 0 0 600 400",xmlSpace:"preserve",className:void 0===t?"":t},i("rect",{x:"0",fill:"#EDECEB",width:"600",height:"400"}),i("path",{fill:"#FFFFFF",d:"M234.539,148.5v103h130.922v-103H234.539z M354.908,240.33H245.707v-80.661h109.201V240.33L354.908,240.33z"}),i("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 "}),i("circle",{fill:"#FFFFFF",cx:"277.582",cy:"180.18",r:"9.83"}))},te=function(e){var t=e.className,n=e.alt,r=e.url,a=e.noImageUrl,s=o(!0),l=s[0],c=s[1];return l&&r?i("img",{className:t,src:r,alt:n,onError:function(){return c(!1)}}):a?i("img",{src:a,alt:n}):i(ee,{className:t})},ne="productListItem_root__xLXZA",re="productListItem_text__2vbTm",ie="productListItem_productImg__23A0z",oe="productListItem_imageContainer__paRx-",ae="productListItem_vertical__RuKVA",se="productListItem_styledSearchResultItem__2xWUG",le="productListItem_link__QvazJ",ce="productListItem_right__1cPgQ",ue="productListItem_optionAvailableBtnContainer__2wxwf",de="productListItem_optionsAvailableBtn__1rmDf",pe="productListItem_priceFromLabel__pMQzO",he={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}},fe=f((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,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)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,s=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,s);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,s);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,s);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 l=he.CAMELCASE,c=he.SAME,u=he.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===l?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})),me=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ge=/\n/g,ve=/^\s*/,ye=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,be=/^:\s*/,ke=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,we=/^[;\s]*/,xe=/^\s+|\s+$/g;function _e(e){return e?e.replace(xe,""):""}var Ce=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(ge);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 s(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 l(t){var n=t.exec(e);if(n){var r=n[0];return i(r),e=e.slice(r.length),n}}function c(){l(ve)}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 s("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=l(ye);if(t){if(d(),!l(be))return s("property missing ':'");var n=l(ke),r=e({type:"declaration",property:_e(t[0].replace(me,"")),value:n?_e(n[0].replace(me,"")):""});return l(we),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),s="function"==typeof t,l=0,c=a.length;l<c;l++)i=(n=a[l]).property,o=n.value,s?t(i,o,n):o&&(r||(r={}),r[i]=o);return r},Ne=f((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)-/,s=function(e,t){return t.toUpperCase()},l=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,l):e.replace(o,l)).replace(r,s))}})),Se=f((function(e,t){var n=h&&h.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var r=n(Ce);t.default=function(e,t){var n={};return e&&"string"==typeof e?((0,r.default)(e,(function(e,r){e&&r&&(n[(0,Ne.camelCase)(e,t)]=r)})),n):n}})).default;var Ie={reactCompat:!0};var Pe=e.version.split(".")[0]>=16,Ee=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var Le={PRESERVE_CUSTOM_ATTRIBUTES:Pe,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=Se(e,Ie)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!Ee.has(e.name)},elementsWithNoTextChildren:Ee},Oe=function(e){var t,n,r,i,o,a={},s=(e=e||{}).type&&{reset:!0,submit:!0}[e.type];for(t in e)if(r=e[t],fe.isCustomAttribute(t))a[t]=r;else if(i=Te(n=t.toLowerCase()))switch(o=fe.getPropertyInfo(i),"checked"!==i&&"value"!==i||s||(i=Te("default"+n)),a[i]=r,o&&o.type){case fe.BOOLEAN:a[i]=!0;break;case fe.OVERLOADED_BOOLEAN:""===r&&(a[i]=!0)}else Le.PRESERVE_CUSTOM_ATTRIBUTES&&(a[t]=r);return Le.setStyleProp(e.style,a),a};function Te(e){return fe.possibleStandardNames[e]}var Ae=Le.setStyleProp,Re=Le.canTextBeChildOfNode;function Fe(e){return Le.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&Le.isCustomComponent(e.name,e.attribs)}var Me=function t(n,r){for(var i,o,a,s,l,c=(r=r||{}).library||e,u=c.cloneElement,d=c.createElement,p=c.isValidElement,h=[],f="function"==typeof r.replace,m=r.trim,g=0,v=n.length;g<v;g++)if(i=n[g],f&&p(a=r.replace(i)))v>1&&(a=u(a,{key:a.key||g})),h.push(a);else if("text"!==i.type){switch(s=i.attribs,Fe(i)?Ae(s.style,s):s&&(s=Oe(s)),l=null,i.type){case"script":case"style":i.children[0]&&(s.dangerouslySetInnerHTML={__html:i.children[0].data});break;case"tag":"textarea"===i.name&&i.children[0]?s.defaultValue=i.children[0].data:i.children&&i.children.length&&(l=t(i.children,r));break;default:continue}v>1&&(s.key=g),h.push(d(i.name,s,l))}else{if((o=!i.data.trim().length)&&i.parent&&!Re(i.parent))continue;if(m&&o)continue;h.push(i.data)}return 1===h.length?h[0]:h},De=/<([a-zA-Z]+[0-9]?)/,ze=/<head[^]*>/i,Ue=/<body[^]*>/i,je=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},He=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};if("function"==typeof window.DOMParser){var Be=new window.DOMParser;je=He=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),Be.parseFromString(e,"text/html")}}if(document.implementation){var Ve=document.implementation.createHTMLDocument();je=function(e,t){return t?(Ve.documentElement.querySelector(t).innerHTML=e,Ve):(Ve.documentElement.innerHTML=e,Ve)}}var qe,Ye=document.createElement("template");Ye.content&&(qe=function(e){return Ye.innerHTML=e,Ye.content.childNodes});var We,Ge=function(e){var t,n,r,i,o=e.match(De);switch(o&&o[1]&&(t=o[1].toLowerCase()),t){case"html":return n=He(e),ze.test(e)||(r=n.querySelector("head"))&&r.parentNode.removeChild(r),Ue.test(e)||(r=n.querySelector("body"))&&r.parentNode.removeChild(r),n.querySelectorAll("html");case"head":case"body":return i=(n=je(e)).querySelectorAll(t),Ue.test(e)&&ze.test(e)?i[0].parentNode.childNodes:i;default:return qe?qe(e):(r=je(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"}(We||(We={}));We.Root,We.Text,We.Directive,We.Comment,We.Script,We.Style,We.Tag,We.CDATA,We.Doctype;class Xe{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 ct(this,e)}}class Ke extends Xe{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}}class Ze extends Ke{constructor(){super(...arguments),this.type=We.Text}get nodeType(){return 3}}class $e extends Ke{constructor(){super(...arguments),this.type=We.Comment}get nodeType(){return 8}}class Je extends Ke{constructor(e,t){super(t),this.name=e,this.type=We.Directive}get nodeType(){return 1}}class Qe extends Xe{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 et extends Qe{constructor(){super(...arguments),this.type=We.CDATA}get nodeType(){return 4}}class tt extends Qe{constructor(){super(...arguments),this.type=We.Root}get nodeType(){return 9}}class nt extends Qe{constructor(e,t,n=[],r=("script"===e?We.Script:"style"===e?We.Style:We.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 rt(e){return(t=e).type===We.Tag||t.type===We.Script||t.type===We.Style;var t}function it(e){return e.type===We.CDATA}function ot(e){return e.type===We.Text}function at(e){return e.type===We.Comment}function st(e){return e.type===We.Directive}function lt(e){return e.type===We.Root}function ct(e,t=!1){let n;if(ot(e))n=new Ze(e.data);else if(at(e))n=new $e(e.data);else if(rt(e)){const r=t?ut(e.children):[],i=new nt(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(it(e)){const r=t?ut(e.children):[],i=new et(r);r.forEach((e=>e.parent=i)),n=i}else if(lt(e)){const r=t?ut(e.children):[],i=new tt(r);r.forEach((e=>e.parent=i)),e["x-mode"]&&(i["x-mode"]=e["x-mode"]),n=i}else{if(!st(e))throw new Error(`Not implemented yet: ${e.type}`);{const t=new Je(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 ut(e){const t=e.map((e=>ct(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 dt={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class pt{constructor(e,t,n){this.dom=[],this.root=new tt(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=dt),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:dt,this.elementCB=null!=n?n:null}onparserinit(e){this.parser=e}onreset(){this.dom=[],this.root=new tt(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?We.Tag:void 0,r=new nt(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)}ontext(e){const{lastNode:t}=this;if(t&&t.type===We.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{const t=new Ze(e);this.addNode(t),this.lastNode=t}}oncomment(e){if(this.lastNode&&this.lastNode.type===We.Comment)return void(this.lastNode.data+=e);const t=new $e(e);this.addNode(t),this.lastNode=t}oncommentend(){this.lastNode=null}oncdatastart(){const e=new Ze(""),t=new et([e]);this.addNode(t),e.parent=t,this.lastNode=e}oncdataend(){this.lastNode=null}onprocessinginstruction(e,t){const n=new Je(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 ht,ft=["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"],mt=m(Object.freeze({__proto__:null,DomHandler:pt,default:pt,Node:Xe,DataNode:Ke,Text:Ze,Comment:$e,ProcessingInstruction:Je,NodeWithChildren:Qe,CDATA:et,Document:tt,Element:nt,isTag:rt,isCDATA:it,isText:ot,isComment:at,isDirective:st,isDocument:lt,hasChildren:function(e){return Object.prototype.hasOwnProperty.call(e,"children")},cloneNode:ct})),gt=ft,vt=mt.Comment,yt=mt.Element,bt=mt.ProcessingInstruction,kt=mt.Text,wt={},xt=0,_t=gt.length;xt<_t;xt++)ht=gt[xt],wt[ht.toLowerCase()]=ht;function Ct(e){for(var t,n={},r=0,i=e.length;r<i;r++)n[(t=e[r]).name]=t.value;return n}function Nt(e){var t=function(e){return wt[e]}(e=e.toLowerCase());return t||e}var St={formatAttributes:Ct,formatDOM:function e(t,n,r){n=n||null;for(var i=[],o=0,a=t.length;o<a;o++){var s,l=t[o];switch(l.nodeType){case 1:(s=new yt(Nt(l.nodeName),Ct(l.attributes))).children=e(l.childNodes,s);break;case 3:s=new kt(l.nodeValue);break;case 8:s=new vt(l.nodeValue);break;default:continue}var c=i[o-1]||null;c&&(c.next=s),s.parent=n,s.prev=c,s.next=null,i.push(s)}return r&&((s=new bt(r.substring(0,r.indexOf(" ")).toLowerCase(),r)).next=i[0]||null,s.parent=n,i.unshift(s),i[1]&&(i[1].prev=i[0])),i}}.formatDOM,It=/<(![a-zA-Z\s]+)>/;var Pt=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,n=e.match(It);return n&&n[1]&&(t=n[1]),St(Ge(e),null,t)},Et=m(Object.freeze({__proto__:null,default:Pt}));Et="function"==typeof Et.default?Et.default:Et;var Lt={lowerCaseAttributeNames:!1};function Ot(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:Me(Et(e,(t=t||{}).htmlparser2||Lt),t)}Ot.domToReact=Me,Ot.htmlToDOM=Et,Ot.attributesToProps=Oe,Ot.Element=mt.Element;var Tt=Ot,At=Ot;Tt.default=At;var Rt=function(e){var t=e.label,n=e.value,r=e.className;return n||t?i("p",{className:r},t?i("span",null,t):null,n):null},Ft=function(e){var t=e.item,n=e.Link,r=e.linkProps,o=e.value,a=e.onClick;switch(t.prop){case"url":return i(n,l({},r,{className:le,onClick:a}),"View to see price");case"title":return i(n,l({},r,{className:J(re,""+Mt+t.prop,t.className),onClick:a}),o);case"has_options":return o?i("div",{className:ue},i(n,l({},r,{className:J(de,""+Mt+t.prop)}),"Options available")):null;case"fitment_applicability":return o?i("span",{className:J(re,""+Mt+t.prop,"Fitment-Specific"===o?"fitmentSpecific":"universal")},o):null;case"dealerid":case"stockid":return i(n,l({},r,{onClick:a,className:J("Sui-ProductListItem--"+t.prop+"-link")}),i(Rt,{className:J(re,""+Mt+t.prop,t.className),label:t.label,value:o}));default:return i(Rt,{className:J(re,""+Mt+t.prop,t.className),label:t.label,value:o})}},Mt="Sui-ProductListItem--",Dt=[{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"}],zt=function(e){var t,n=e.data,r=e.styled,o=e.visibleFields,a=void 0===o?Dt:o,s=e.className,c=void 0===s?"":s,u=e.orientation,p=void 0===u?"horizontal":u,h=e.noImageUrl,f=e.linkEl,m=void 0===f?"a":f,g=e.onItemClick,v=n.url?m:"div",y=n.url?{href:n.url}:{},b=(Array.isArray(a)?a:Dt).reduce((function(e,t){if(void 0===n[t.prop]||null===n[t.prop])return e;switch(t.position){case"center":return l(l({},e),{center:d(e.center,[t])});case"right":return l(l({},e),{right:d(e.right,[t])});default:return e}}),{center:[],right:[]});return i("section",{className:J(ne,(t={},t[se]=r,t[ae]="vertical"===p,t),Mt+"root",c),role:"listitem"},i(v,l({className:J(oe,Mt+"image"),onClick:function(e){return null==g?void 0:g(e,n)}},y),i(te,{alt:"Search reult",className:ie,url:n.image_url,noImageUrl:h})),i("ul",null,b.center.map((function(e){return i("li",{key:e.prop,className:"Sui-ProductListItem-Container--"+e.prop,role:"listitem"},i(Ft,{item:e,Link:v,linkProps:y,value:Ut(e.prop,n[e.prop],n.has_product_series),onClick:function(e){return null==g?void 0:g(e,n)}}))}))),i("ul",{className:ce},b.right.map((function(e){return i("li",{key:e.prop,className:"Sui-ProductListItem-Container--"+e.prop,role:"listitem"},i(Ft,{item:e,Link:v,linkProps:y,value:Ut(e.prop,n[e.prop],n.has_product_series),onClick:function(e){return null==g?void 0:g(e,n)}}))}))))};function Ut(e,t,n){switch(e){case"price":if(t){var r=Q(t);return n?i(a,null,i("span",{className:J(pe,"Sui-ProductListItem-Container--"+e+"-label-from")},"From:")," ",r):r}return t;case"sale":return t?Q(t):t;case"tag":case"availability_remarks":case"remarks":return Tt(t);default:return t}}var jt=X.API_URL+"/products";var Ht=function(e){var t=e.className;return i("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"border-all",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",className:t},i("path",{fill:"currentColor",d:"M416 32H32A32 32 0 0 0 0 64v384a32 32 0 0 0 32 32h384a32 32 0 0 0 32-32V64a32 32 0 0 0-32-32zm-32 64v128H256V96zm-192 0v128H64V96zM64 416V288h128v128zm192 0V288h128v128z"}))},Bt=function(e){var t=e.className,n=e.size,r=void 0===n?20:n;return i("svg",{width:r,height:r,"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"list",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",className:t},i("path",{fill:"currentColor",d:"M80 368H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm0-320H16A16 16 0 0 0 0 64v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16V64a16 16 0 0 0-16-16zm0 160H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm416 176H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"}))},Vt="listControls_root__1XiZv",qt="listControls_iconContainer__EUUvE",Yt="listControls_icon__3X_9L",Wt="listControls_selected__1We4P",Gt="listControls_itemsPerPageContainer__1Jlp9",Xt="listControls_right__2YOEf",Kt="listControls_left__3yT59",Zt="listControls_rootStyled__-WTs4",$t=function(e){var t,n,r,o=e.orientation,a=e.onLayoutChange,s=e.onItemsPerPageChange,l=e.itemsPerPage,c=e.styled,u=e.className,d=e.itemsPerPageOptions,p=void 0===d?[5,10,20,50,100]:d,h=e.sortOptions,f=e.selectedSort,m=e.onSortChange;return i("div",{className:J(Vt,(t={},t[Zt]=c,t),"Sui-ListControls--container",u)},h?i("div",{className:Kt},i("p",null,"Sort: "),i("select",{onChange:function(e){return null==m?void 0:m(e.currentTarget.value)},role:"listbox",value:f||0,"aria-label":"sortDropDown"},h.map((function(e){return i("option",{role:"option",key:e.value,value:e.value,"aria-selected":e.value===f},e.label)})))):null,i("div",{className:Xt},i("div",{className:Gt},i("p",null,"View: "),i("select",{onChange:function(e){return s(Number(e.currentTarget.value))},role:"listbox",value:l},p.map((function(e){return i("option",{role:"option",key:e,value:e,"aria-selected":l===e},e)})))),i("button",{className:qt,onClick:function(){return a("vertical")},"aria-label":"grid layout"},i(Ht,{className:J(Yt,(n={},n[Wt]="vertical"===o,n))})),i("button",{className:qt,onClick:function(){return a("horizontal")},"aria-label":"list layout"},i(Bt,{className:J(Yt,(r={},r[Wt]="horizontal"===o,r))}))))},Jt=function(e){var t=e.className,n=void 0===t?"":t,r=e.size,o=void 0===r?20:r;return i("svg",{width:o,height:o,className:n,focusable:"false",viewBox:"0 0 24 24","aria-hidden":"true"},i("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}))},Qt="pagination_root__364lu",en="pagination_angleIcon__2UTcR",tn="pagination_angleIconRight__ysXch",nn="pagination_pageLink__fl_OV",rn="pagination_disabled__15wHQ",on="pagination_active__2LHHU",an=function(e){var t,n=e.disabled,r=e.children,o=e.onClick,a=void 0===o?function(){return null}:o,s=e.className;return i("button",{className:J(s,(t={},t[rn]=n,t)),onClick:a,disabled:n,role:"button"},r)},sn=function(e){var t=e.totalPages,n=e.currentPage,r=e.className,o=void 0===r?"":r,s=e.onChangePage,l=void 0===s?function(){return null}:s,c=t>7&&n>3.5?Math.ceil(n-1-3.5):0,u=t>7&&n<Math.ceil(t-3.5)?c+7:t;t>7&&u===t&&u-c<7&&(c=u-7);var d=(u+=1)-(c+=1),p=Array.from({length:d}).map((function(e,n){var r=n+c;return r>=2&&0===n?1:r>2&&1===n||n===d-2&&r<=t-2?-1:n===d-1?t:r}));return t<=1?null:i("div",{className:J(Qt,o),"data-testid":"pagination"},i(an,{className:J(nn,"Sui-Pagination--prev-page"),onClick:function(){return l(n-1)},disabled:1===n},i(Jt,{className:en})),p.map((function(e,t){return i(a,{key:t},e<0?i(an,{className:nn,disabled:!0},"..."):function(e){var t;return i(an,{className:J(nn,(t={},t[on]=n===e,t),"Sui-Pagination--page-number"),onClick:function(){return l(e)},disabled:n===e},e)}(e))})),i(an,{className:J(nn,"Sui-Pagination--next-page"),onClick:function(){return l(n+1)},disabled:n===t},i(Jt,{className:tn})))},ln={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"},cn=function(e){var t=e.type,n=e.className;return"linear"===t?i("div",{className:J(ln.root,void 0===n?"":n)}):i("div",{className:ln["sk-fading-circle"]},i("div",{className:J(ln["sk-circle"])}),Array.from({length:11}).map((function(e,t){return i("div",{key:t,className:J(ln["sk-circle"+(t+2)],ln["sk-circle"])})})))},un="list_root__m2F7Y",dn="list_loadingIndicator__3R1aV",pn="list_listContainer__3UJa6",hn="list_listHorizontal__3sgr7",fn="list_isBusy__3F6sL",mn="list_pagination__1pWk4",gn="list_listContainerStyled__38ZCr";function vn(e){var t,n=e.children,r=e.list,o=e.totalPages,s=void 0===o?1:o,l=e.currentPage,c=void 0===l?1:l,u=e.onPageChanged,d=void 0===u?function(){return null}:u,p=e.className,h=void 0===p?"":p,f=e.styled,m=e.orientation,g=void 0===m?"horizontal":m,v=e.onLayoutChange,y=e.showPagination,b=void 0!==y&&y,k=e.showLoadingIndicator,w=void 0!==k&&k,x=e.renderNoResults,_=e.isLoading,C=e.showControls,N=e.itemsPerPage,S=e.onItemsPerPageChange,I=e.onSortChange,P=e.sortOptions,E=e.selectedSort;return i("div",{className:J(un,h)},C?i($t,{orientation:g,onLayoutChange:v,onItemsPerPageChange:function(e){return S(e)},itemsPerPage:N,styled:f,sortOptions:P,onSortChange:I,selectedSort:E}):null,w&&f&&_?i(cn,{type:"linear",className:dn}):null,r.length?i(a,null,i("div",{className:J(pn,(t={},t[fn]=f&&_,t[hn]="horizontal"===g,t[gn]=f,t["Sui-List--horizontal"]="horizontal"===g,t),"Sui-List--container"),"data-testid":"listContainer"},n),b?i(sn,{className:mn,totalPages:s,currentPage:c,onChangePage:d}):null):_?null:x?x():i("h1",{className:"Sui-List--no-results"},"No results"))}var yn="productList_resultItemStyledInGrid__12GNR",bn="productList_styledListContainer__156EZ",kn=[{label:"Recommended",value:""},{label:"Price: Low to High",value:"price:asc"},{label:"Price: High to Low",value:"price:desc"}],wn=function(e){var t=e.renderList,n=e.data,r=e.styled,o=e.orientation,a=e.visibleFields,s=e.noImageUrl,l=e.linkEl,c=e.onItemClick,u=e.producListMetaData;return t?t(n,u):n.map((function(e){var t;return i(zt,{key:e.id,className:J((t={},t[yn]=r&&"vertical"===o,t)),data:e,styled:r,orientation:o,visibleFields:a,noImageUrl:s,linkEl:l,onItemClick:c})}))},xn=function(e){var t,n=e.list,a=e.totalPages,s=void 0===a?1:a,l=e.currentPage,c=void 0===l?1:l,u=e.onPageChanged,d=void 0===u?function(){return null}:u,p=e.className,h=void 0===p?"":p,f=e.styled,m=e.orientation,g=void 0===m?"horizontal":m,v=e.showPagination,y=void 0!==v&&v,b=e.showLoadingIndicator,k=void 0!==b&&b,w=e.visibleFields,x=e.renderList,_=e.renderNoResults,C=e.isLoading,N=e.noImageUrl,S=e.linkEl,I=e.showControls,P=e.itemsPerPage,E=e.onItemsPerPageChange,L=e.onLayoutChange,O=e.onItemClick,T=e.onSortChange,A=e.sortOptions,R=e.selectedSort,F=e.producListMetaData,M=S||"a",D=o(P),z=D[0],U=D[1],j=o(g),H=j[0],B=j[1],V=o(R),q=V[0],Y=V[1];return r((function(){B(g)}),[g]),r((function(){U(P)}),[P]),r((function(){Y(R)}),[R]),i(vn,{list:n,totalPages:s,currentPage:c,onPageChanged:d,className:J((t={},t[bn]=f,t),h),orientation:H,showPagination:y,showLoadingIndicator:k,renderNoResults:_,isLoading:C,showControls:I,itemsPerPage:z,onItemsPerPageChange:function(e){null==E||E(e),U(e)},onLayoutChange:function(e){B(e),null==L||L(e)},styled:f,sortOptions:A||kn,onSortChange:function(e){null==T||T(e),Y(e)},selectedSort:q},i(wn,{renderList:x,data:n,styled:f,orientation:H,visibleFields:w,noImageUrl:N,linkEl:M,onItemClick:O,producListMetaData:F}))},_n="listWrapper_noResultsText__A1Nfj";export default function(e){var a,d,p,h,f,m=e.className,g=void 0===m?"":m,v=e.styled,y=e.orientation,b=void 0===y?"horizontal":y,k=e.search,w=e.itemsPerPage,x=void 0===w?5:w,_=e.currentPage,C=void 0===_?1:_,N=e.showPagination,S=void 0!==N&&N,I=e.onPageChanged,P=void 0===I?function(){return null}:I,E=e.onDataReceived,L=void 0===E?function(){return null}:E,O=e.showControls,T=void 0!==O&&O,A=e.showLoadingIndicator,R=void 0!==A&&A,F=e.visibleFields,M=void 0===F?Dt:F,D=e.renderList,z=e.renderNoResults,U=e.query,H=e.linkEl,B=e.onItemsPerPageChange,V=e.onItemClick,q=e.onLayoutChange,Y=e.noImageUrl,W=e.onSortChange,G=e.sortOptions,X=e.selectedSort,K=e.productId,J=function(){var e=this,i=t($,{data:null,error:"",status:""}),o=i[0],a=i[1],s=n(!1);return r((function(){return s.current=!0,function(){return s.current=!1}}),[]),[function(t,n,r){return c(e,void 0,void 0,(function(){var e,i;return u(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),s.current&&a({type:"LOADING"}),[4,Z.get(t,n,r)];case 1:return e=o.sent(),s.current&&a({data:e,type:"SUCCESS"}),[3,3];case 2:return i=o.sent(),s.current&&a({error:i.message||"Unknown error",type:"ERROR"}),[3,3];case 3:return[2]}}))}))},o,a]}(),Q=J[0],ee=J[1],te=o(C),ne=te[0],re=te[1],ie=o(x),oe=ie[0],ae=ie[1],se=o(X),le=se[0],ce=se[1],ue=n(!1),de=s(j((function(e,t,n,r,i){Q(jt,l(l({},function(e,t,n,r,i,o){return l(l(l(l({limit:t,page:e,q:n},r?{sort:r}:{}),i?{fitment:i}:{}),o?{productId:o}:{}),o?{getSkus:!0}:{})}(e,t,n,r,K)),i))}),1),[]);r((function(){oe!==x&&ae(x)}),[x]),r((function(){X!==le&&ce(X)}),[X]),r((function(){ue.current&&(re(1),P(1),de(1,oe,k,le,U)),ue.current=!0}),[k,U,oe,le]),r((function(){re(C),de(C,oe,k,le,U)}),[C]),r((function(){"RESOLVED"===ee.status&&L(ee.data)}),[ee.data,ee.status]);var pe=(null===(a=ee.data)||void 0===a?void 0:a.list)||[],he=(null===(d=ee.data)||void 0===d?void 0:d.exactMatchInResult)||!1,fe=(null===(p=ee.data)||void 0===p?void 0:p.exactPartMatch)||!1,me=(null===(h=ee.data)||void 0===h?void 0:h.showSimilarPartNumberMatch)||!1,ge=Math.ceil(((null===(f=ee.data)||void 0===f?void 0:f.total)||0)/oe),ve="LOADING"===ee.status;return i("div",{className:g},i(xn,{styled:v,orientation:b,showPagination:S,onPageChanged:function(e){re(e),P(e),de(e,oe,k,le,U)},showLoadingIndicator:R,visibleFields:M,renderList:D,producListMetaData:{exactMatchInResult:he,exactPartMatch:fe,showSimilarPartNumberMatch:me},renderNoResults:function(){switch(ee.status){case"RESOLVED":return z?z():i("h4",{className:_n},"No results for current search");case"REJECTED":return i("h4",{className:_n},ee.error)}return null},list:pe,totalPages:ge,currentPage:ne,isLoading:ve,linkEl:H,showControls:T,itemsPerPage:oe,onItemsPerPageChange:function(e){ae(e),null==B||B(e)},onItemClick:V,onLayoutChange:q,noImageUrl:Y,onSortChange:function(e){ce(e),null==W||W(e)},sortOptions:G,selectedSort:le}))}
|
|
22
|
+
//# sourceMappingURL=index.esm.js.map
|