@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
|
+
.modal_root__ZRh58{display:block;overflow-x:hidden;overflow-y:auto;position:fixed;top:0;left:0;width:100%;height:100%;z-index:30}.modal_root__ZRh58 div:first-child{border-radius:5px}.modal_hidden__1VaBK{display:none}.modal_modalDialog__3oRJl{margin:auto;width:fit-content;max-width:85%;z-index:1050;background-color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}@media (max-width:992px){.modal_modalDialog__3oRJl{max-width:99%}}.modal_backdrop__1ieRs{opacity:.5;position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh}.modal_closeBtn__1N3cr{z-index:1;position:absolute;right:-30px;top:-19px;background-color:transparent;border:none;cursor:pointer}.modal_closeBtn__1N3cr:hover svg{fill:var(--sui-secondary-color-dark)}@media (max-width:500px){.modal_closeBtn__1N3cr{right:-9px;top:-28px}}.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}}.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}.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}.style_searchBarModal__1QMVt>div:first-child{background-color:transparent;width:100%;top:10%}.style_searchBarModal__1QMVt .Sui-Modal--content{width:100%}.style_searchBarModal__1QMVt .Sui-SearchBar--suggestions-container{overflow-y:auto;position:absolute;max-height:calc(100vh - 120px)}.style_searchBarModal__1QMVt .Sui-SearchBar--suggestions-container>div:first-child{width:calc(100% - 32px)}.style_searchBarModal__1QMVt .Sui-Modal--close-icon{color:var(--sui-grey-light)}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import e,{createElement as t,useRef as n,useState as r,useEffect as i,Fragment as o,useReducer as a,useCallback as l,forwardRef as s,useImperativeHandle as c}from"react";import{createPortal as u}from"react-dom";
|
|
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 d=function(){return(d=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 p(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 f(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 h(){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 m="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function g(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 v(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 y=g((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}()})),k=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"}))},b="modal_root__ZRh58",_="modal_hidden__1VaBK",w="modal_modalDialog__3oRJl",x="modal_backdrop__1ieRs",S="modal_closeBtn__1N3cr",C=function(e){var a,l=e.className,s=e.onClose,c=e.children,d=e.isOpen,p=e.backdropColor,f=void 0===p?"#000":p,h=e.showCloseButton,m=void 0===h||h,g=e.focus,v=void 0===g||g,C=n(null),N=n(null),I=r({})[1];i((function(){var e=document.createElement("div");return e.className="Sui-modal",C.current=document.body.appendChild(e),I({}),function(){document.body.removeChild(e)}}),[]),i((function(){C.current&&N.current&&d&&v&&N.current.focus()}),[C.current,N.current,d,v]);return C.current?u(t(o,null,t("div",{ref:N,tabIndex:-1,role:"presentation",className:y(b,(a={},a[_]=!d,a),l,"Sui-Modal--root"),onKeyDown:function(e){27===e.keyCode&&s()},onClick:function(){return null}},t("div",{className:w},m?t("button",{role:"button","aria-label":"close",className:y(S,"Sui-Modal--close-icon"),onClick:s},t(k,{size:30})):null,t("div",{className:y("Sui-Modal--content")},c)),t("div",{role:"presentation",tabIndex:-1,className:y(x,"Sui-Modal--backdrop"),style:{backgroundColor:f},onClick:s,onKeyDown:function(){return null}}))),C.current):null};var N=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},I="object"==typeof m&&m&&m.Object===Object&&m,E="object"==typeof self&&self&&self.Object===Object&&self,T=I||E||Function("return this")(),O=function(){return T.Date.now()},A=T.Symbol,L=Object.prototype,R=L.hasOwnProperty,B=L.toString,F=A?A.toStringTag:void 0;var M=function(e){var t=R.call(e,F),n=e[F];try{e[F]=void 0;var r=!0}catch(e){}var i=B.call(e);return r&&(t?e[F]=n:delete e[F]),i},P=Object.prototype.toString;var D=function(e){return P.call(e)},j=A?A.toStringTag:void 0;var z=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":j&&j in Object(e)?M(e):D(e)};var U=function(e){return null!=e&&"object"==typeof e};var H=function(e){return"symbol"==typeof e||U(e)&&"[object Symbol]"==z(e)},V=/^\s+|\s+$/g,q=/^[-+]0x[0-9a-f]+$/i,Y=/^0b[01]+$/i,G=/^0o[0-7]+$/i,K=parseInt;var X=function(e){if("number"==typeof e)return e;if(H(e))return NaN;if(N(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=N(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(V,"");var n=Y.test(e);return n||G.test(e)?K(e.slice(2),n?2:8):q.test(e)?NaN:+e},W=Math.max,J=Math.min;var Z=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=O();if(m(e))return v(e);l=setTimeout(g,function(e){var n=t-(e-s);return d?J(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=O(),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=X(t)||0,N(n)&&(u=!!n.leading,o=(d="maxWait"in n)?W(X(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(O())},y};function $(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Q=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),$(i,d)?Array.isArray(i[d])?i[d].push(p):i[d]=[i[d],p]:i[d]=p}return i},ee=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},te=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(ee(r))+n;return Array.isArray(e[r])?e[r].map((function(e){return i+encodeURIComponent(ee(e))})).join(t):i+encodeURIComponent(ee(e[r]))})).join(t):r?encodeURIComponent(ee(r))+n+encodeURIComponent(ee(e)):""},ne=g((function(e,t){t.decode=t.parse=Q,t.encode=t.stringify=te}));const re={API_URL:"https://api.sunhammer.io",LIBRARY_NAME:"@partslogic/ui",STORY_BOOK_URL:"https://ui.sunhammer.io/"},ie="object"==typeof window?window:{};ie.partslogic=ie.partslogic||{},ie.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 oe=re,ae=function(){return ie.partslogic.config},le={get:function(e,t,n){return void 0===t&&(t={}),p(this,void 0,void 0,(function(){var r,i,o,a,l,s,c,u,d;return f(this,(function(p){switch(p.label){case 0:r=ae(),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?"?"+ne.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 se(e,t){switch(t.type){case"ERROR":return d(d({},e),{data:null,error:t.error,status:"REJECTED"});case"SUCCESS":return d(d({},e),{data:t.data,error:"",status:"RESOLVED"});case"LOADING":return d(d({},e),{error:"",status:"LOADING"});case"RESET":return{data:null,error:"",status:""};default:throw new Error("Unhandled action type in useFetch.")}}function ce(e,t,n,r,i,o){return d(d(d(d({limit:t,page:e,q:n},r?{sort:r}:{}),i?{fitment:i}:{}),o?{productId:o}:{}),o?{getSkus:!0}:{})}var ue=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"}))},de={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"},pe=function(e){var n=e.type,r=e.className;return"linear"===n?t("div",{className:y(de.root,void 0===r?"":r)}):t("div",{className:de["sk-fading-circle"]},t("div",{className:y(de["sk-circle"])}),Array.from({length:11}).map((function(e,n){return t("div",{key:n,className:y(de["sk-circle"+(n+2)],de["sk-circle"])})})))},fe=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"}))},he=function(e){var n=e.className,i=e.alt,o=e.url,a=e.noImageUrl,l=r(!0),s=l[0],c=l[1];return s&&o?t("img",{className:n,src:o,alt:i,onError:function(){return c(!1)}}):a?t("img",{src:a,alt:i}):t(fe,{className:n})};function me(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 ge="productListItem_root__xLXZA",ve="productListItem_text__2vbTm",ye="productListItem_productImg__23A0z",ke="productListItem_imageContainer__paRx-",be="productListItem_vertical__RuKVA",_e="productListItem_styledSearchResultItem__2xWUG",we="productListItem_link__QvazJ",xe="productListItem_right__1cPgQ",Se="productListItem_optionAvailableBtnContainer__2wxwf",Ce="productListItem_optionsAvailableBtn__1rmDf",Ne="productListItem_priceFromLabel__pMQzO",Ie={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}},Ee=g((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=Ie.CAMELCASE,c=Ie.SAME,u=Ie.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})),Te=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Oe=/\n/g,Ae=/^\s*/,Le=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Re=/^:\s*/,Be=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Fe=/^[;\s]*/,Me=/^\s+|\s+$/g;function Pe(e){return e?e.replace(Me,""):""}var De=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(Oe);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(Ae)}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(Le);if(t){if(d(),!s(Re))return l("property missing ':'");var n=s(Be),r=e({type:"declaration",property:Pe(t[0].replace(Te,"")),value:n?Pe(n[0].replace(Te,"")):""});return s(Fe),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},je=g((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))}})),ze=g((function(e,t){var n=m&&m.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var r=n(De);t.default=function(e,t){var n={};return e&&"string"==typeof e?((0,r.default)(e,(function(e,r){e&&r&&(n[(0,je.camelCase)(e,t)]=r)})),n):n}})).default;var Ue={reactCompat:!0};var He=e.version.split(".")[0]>=16,Ve=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var qe={PRESERVE_CUSTOM_ATTRIBUTES:He,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=ze(e,Ue)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!Ve.has(e.name)},elementsWithNoTextChildren:Ve},Ye=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],Ee.isCustomAttribute(t))a[t]=r;else if(i=Ge(n=t.toLowerCase()))switch(o=Ee.getPropertyInfo(i),"checked"!==i&&"value"!==i||l||(i=Ge("default"+n)),a[i]=r,o&&o.type){case Ee.BOOLEAN:a[i]=!0;break;case Ee.OVERLOADED_BOOLEAN:""===r&&(a[i]=!0)}else qe.PRESERVE_CUSTOM_ATTRIBUTES&&(a[t]=r);return qe.setStyleProp(e.style,a),a};function Ge(e){return Ee.possibleStandardNames[e]}var Ke=qe.setStyleProp,Xe=qe.canTextBeChildOfNode;function We(e){return qe.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&qe.isCustomComponent(e.name,e.attribs)}var Je=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,We(i)?Ke(l.style,l):l&&(l=Ye(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&&!Xe(i.parent))continue;if(m&&o)continue;f.push(i.data)}return 1===f.length?f[0]:f},Ze=/<([a-zA-Z]+[0-9]?)/,$e=/<head[^]*>/i,Qe=/<body[^]*>/i,et=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},tt=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};if("function"==typeof window.DOMParser){var nt=new window.DOMParser;et=tt=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),nt.parseFromString(e,"text/html")}}if(document.implementation){var rt=document.implementation.createHTMLDocument();et=function(e,t){return t?(rt.documentElement.querySelector(t).innerHTML=e,rt):(rt.documentElement.innerHTML=e,rt)}}var it,ot=document.createElement("template");ot.content&&(it=function(e){return ot.innerHTML=e,ot.content.childNodes});var at,lt=function(e){var t,n,r,i,o=e.match(Ze);switch(o&&o[1]&&(t=o[1].toLowerCase()),t){case"html":return n=tt(e),$e.test(e)||(r=n.querySelector("head"))&&r.parentNode.removeChild(r),Qe.test(e)||(r=n.querySelector("body"))&&r.parentNode.removeChild(r),n.querySelectorAll("html");case"head":case"body":return i=(n=et(e)).querySelectorAll(t),Qe.test(e)&&$e.test(e)?i[0].parentNode.childNodes:i;default:return it?it(e):(r=et(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"}(at||(at={}));at.Root,at.Text,at.Directive,at.Comment,at.Script,at.Style,at.Tag,at.CDATA,at.Doctype;class st{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 xt(this,e)}}class ct extends st{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}}class ut extends ct{constructor(){super(...arguments),this.type=at.Text}get nodeType(){return 3}}class dt extends ct{constructor(){super(...arguments),this.type=at.Comment}get nodeType(){return 8}}class pt extends ct{constructor(e,t){super(t),this.name=e,this.type=at.Directive}get nodeType(){return 1}}class ft extends st{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 ht extends ft{constructor(){super(...arguments),this.type=at.CDATA}get nodeType(){return 4}}class mt extends ft{constructor(){super(...arguments),this.type=at.Root}get nodeType(){return 9}}class gt extends ft{constructor(e,t,n=[],r=("script"===e?at.Script:"style"===e?at.Style:at.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 vt(e){return(t=e).type===at.Tag||t.type===at.Script||t.type===at.Style;var t}function yt(e){return e.type===at.CDATA}function kt(e){return e.type===at.Text}function bt(e){return e.type===at.Comment}function _t(e){return e.type===at.Directive}function wt(e){return e.type===at.Root}function xt(e,t=!1){let n;if(kt(e))n=new ut(e.data);else if(bt(e))n=new dt(e.data);else if(vt(e)){const r=t?St(e.children):[],i=new gt(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(yt(e)){const r=t?St(e.children):[],i=new ht(r);r.forEach((e=>e.parent=i)),n=i}else if(wt(e)){const r=t?St(e.children):[],i=new mt(r);r.forEach((e=>e.parent=i)),e["x-mode"]&&(i["x-mode"]=e["x-mode"]),n=i}else{if(!_t(e))throw new Error(`Not implemented yet: ${e.type}`);{const t=new pt(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 St(e){const t=e.map((e=>xt(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 Ct={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class Nt{constructor(e,t,n){this.dom=[],this.root=new mt(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=Ct),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:Ct,this.elementCB=null!=n?n:null}onparserinit(e){this.parser=e}onreset(){this.dom=[],this.root=new mt(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?at.Tag:void 0,r=new gt(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)}ontext(e){const{lastNode:t}=this;if(t&&t.type===at.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{const t=new ut(e);this.addNode(t),this.lastNode=t}}oncomment(e){if(this.lastNode&&this.lastNode.type===at.Comment)return void(this.lastNode.data+=e);const t=new dt(e);this.addNode(t),this.lastNode=t}oncommentend(){this.lastNode=null}oncdatastart(){const e=new ut(""),t=new ht([e]);this.addNode(t),e.parent=t,this.lastNode=e}oncdataend(){this.lastNode=null}onprocessinginstruction(e,t){const n=new pt(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 It,Et=["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"],Tt=v(Object.freeze({__proto__:null,DomHandler:Nt,default:Nt,Node:st,DataNode:ct,Text:ut,Comment:dt,ProcessingInstruction:pt,NodeWithChildren:ft,CDATA:ht,Document:mt,Element:gt,isTag:vt,isCDATA:yt,isText:kt,isComment:bt,isDirective:_t,isDocument:wt,hasChildren:function(e){return Object.prototype.hasOwnProperty.call(e,"children")},cloneNode:xt})),Ot=Et,At=Tt.Comment,Lt=Tt.Element,Rt=Tt.ProcessingInstruction,Bt=Tt.Text,Ft={},Mt=0,Pt=Ot.length;Mt<Pt;Mt++)It=Ot[Mt],Ft[It.toLowerCase()]=It;function Dt(e){for(var t,n={},r=0,i=e.length;r<i;r++)n[(t=e[r]).name]=t.value;return n}function jt(e){var t=function(e){return Ft[e]}(e=e.toLowerCase());return t||e}var zt={formatAttributes:Dt,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 Lt(jt(s.nodeName),Dt(s.attributes))).children=e(s.childNodes,l);break;case 3:l=new Bt(s.nodeValue);break;case 8:l=new At(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 Rt(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,Ut=/<(![a-zA-Z\s]+)>/;var Ht=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,n=e.match(Ut);return n&&n[1]&&(t=n[1]),zt(lt(e),null,t)},Vt=v(Object.freeze({__proto__:null,default:Ht}));Vt="function"==typeof Vt.default?Vt.default:Vt;var qt={lowerCaseAttributeNames:!1};function Yt(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:Je(Vt(e,(t=t||{}).htmlparser2||qt),t)}Yt.domToReact=Je,Yt.htmlToDOM=Vt,Yt.attributesToProps=Ye,Yt.Element=Tt.Element;var Gt=Yt,Kt=Yt;Gt.default=Kt;var Xt=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},Wt=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,d({},i,{className:we,onClick:a}),"View to see price");case"title":return t(r,d({},i,{className:y(ve,""+Jt+n.prop,n.className),onClick:a}),o);case"has_options":return o?t("div",{className:Se},t(r,d({},i,{className:y(Ce,""+Jt+n.prop)}),"Options available")):null;case"fitment_applicability":return o?t("span",{className:y(ve,""+Jt+n.prop,"Fitment-Specific"===o?"fitmentSpecific":"universal")},o):null;case"dealerid":case"stockid":return t(r,d({},i,{onClick:a,className:y("Sui-ProductListItem--"+n.prop+"-link")}),t(Xt,{className:y(ve,""+Jt+n.prop,n.className),label:n.label,value:o}));default:return t(Xt,{className:y(ve,""+Jt+n.prop,n.className),label:n.label,value:o})}},Jt="Sui-ProductListItem--",Zt=[{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"}],$t=function(e){var n,r=e.data,i=e.styled,o=e.visibleFields,a=void 0===o?Zt:o,l=e.className,s=void 0===l?"":l,c=e.orientation,u=void 0===c?"horizontal":c,p=e.noImageUrl,f=e.linkEl,m=void 0===f?"a":f,g=e.onItemClick,v=r.url?m:"div",k=r.url?{href:r.url}:{},b=(Array.isArray(a)?a:Zt).reduce((function(e,t){if(void 0===r[t.prop]||null===r[t.prop])return e;switch(t.position){case"center":return d(d({},e),{center:h(e.center,[t])});case"right":return d(d({},e),{right:h(e.right,[t])});default:return e}}),{center:[],right:[]});return t("section",{className:y(ge,(n={},n[_e]=i,n[be]="vertical"===u,n),Jt+"root",s),role:"listitem"},t(v,d({className:y(ke,Jt+"image"),onClick:function(e){return null==g?void 0:g(e,r)}},k),t(he,{alt:"Search reult",className:ye,url:r.image_url,noImageUrl:p})),t("ul",null,b.center.map((function(e){return t("li",{key:e.prop,className:"Sui-ProductListItem-Container--"+e.prop,role:"listitem"},t(Wt,{item:e,Link:v,linkProps:k,value:Qt(e.prop,r[e.prop],r.has_product_series),onClick:function(e){return null==g?void 0:g(e,r)}}))}))),t("ul",{className:xe},b.right.map((function(e){return t("li",{key:e.prop,className:"Sui-ProductListItem-Container--"+e.prop,role:"listitem"},t(Wt,{item:e,Link:v,linkProps:k,value:Qt(e.prop,r[e.prop],r.has_product_series),onClick:function(e){return null==g?void 0:g(e,r)}}))}))))};function Qt(e,n,r){switch(e){case"price":if(n){var i=me(n);return r?t(o,null,t("span",{className:y(Ne,"Sui-ProductListItem-Container--"+e+"-label-from")},"From:")," ",i):i}return n;case"sale":return n?me(n):n;case"tag":case"availability_remarks":case"remarks":return Gt(n);default:return n}}var en=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"}))},tn="searchBarSuggestions_suggestionContainer__1m96a",nn="searchBarSuggestions_link__1rcDs",rn="searchBarSuggestions_listContainer__2O5EM",on="searchBarSuggestions_basicItemLink__2hEMG",an="searchBarSuggestions_imageContainer__2H3z6",ln="searchBarSuggestions_basicItemTitle__3MJeQ",sn="searchBarSuggestions_viewMoreContainer__2gobp",cn="searchBarSuggestions_searchTermHistoryItem__3xi7Q",un="searchBarSuggestions_searchTermHistoryItemIcon__sZmTm",dn="searchBarSuggestions_styledResultItem__3mBB5",pn="searchBarSuggestions_styledSuggestionContainer__H33XA",fn="searchBarSuggestions_styledList__MKl23",hn="searchBarSuggestions_styledListTitle__2VK-S",mn="searchBarSuggestions_styledViewMoreBtn__3nh1Y",gn="searchBarSuggestions_clearHistoryBtn__39npD",vn=function(e){var n,r=e.linkEl,i=e.suggestion,o=e.styled,a=e.visibleFields,l=e.onItemClick;return t($t,{className:y((n={},n[dn]=o,n),"Sui-SearchBar--result-item"),data:i,visibleFields:a,styled:o,orientation:"vertical",linkEl:r,onItemClick:function(e,t){return l(t)}})},yn=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,d({key:r.id,className:y(nn,on,"Sui-SearchBar--result-item"),onClick:i},a,{role:"listitem"}),t("div",{className:an},t(he,{url:r.image_url,alt:"categoryImage"})),t("h1",{className:y(ln,"Sui-CategoryList--title")},r.name))},kn=function(e){var n=e.suggestion,r=e.onClick;return t("button",{type:"button",className:cn,onClick:function(){return r(n.name)}},t(en,{className:un,size:15}),t("p",null,n.name))},bn=function(e){var n,r,i=e.sections,o=e.styled,a=e.linkEl,l=e.onItemClick,s=e.renderProduct,c=e.onClearHistory,u=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:y(tn,(n={},n[pn]=o,n),"Sui-SearchBar--suggestions-container")},t("div",{className:y((r={},r[fn]=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:y((n={},n[hn]=o,n),"Sui-SearchBar--list-title")},p):null,t("div",{className:y(rn,"Sui-SearchBar--section-"+g)},f.map((function(e){switch(g){case"product":return(null==s?void 0:s(e))||t(vn,{key:e.id,linkEl:a,suggestion:e,styled:o,visibleFields:m,onItemClick:function(){return null==l?void 0:l(e)}});case"history":return t(kn,{key:e.id,suggestion:e,onClick:function(e){return null==u?void 0:u(e)}});default:return t(yn,{key:e.id,linkEl:a,suggestion:e,onItemClick:function(){return null==l?void 0:l(e)}})}}))),"history"===e.type?t("button",{type:"button",className:gn,onClick:function(){localStorage.removeItem("pl-recent-search-terms"),null==c||c()}},t(k,{size:15}),"Clear History"):null,"history"!==e.type&&e.onViewMoreClick&&h>f.length?t("div",{className:y(sn,"Sui-SearchBar--section-view-more-button")},t("button",{type:"button",onClick:function(){var t=d({},e);delete t.onViewMoreClick,e.onViewMoreClick(t)},className:o?"SuiButton primary "+mn:""},e.viewMoreButtonText||"View more")):null):null}))))},_n="searchBar_searchBarRoot__31Xa5",wn="searchBar_searchBarContainer__3alwO",xn="searchBar_searchBarInputContainer__AYpAJ",Sn="searchBar_inputContainer__3LGWJ",Cn="searchBar_inputContainerWithFitment__1ZYz6",Nn="searchBar_input__PXdEA",In="searchBar_clearIcon__2yjvH",En="searchBar_searchIcon__3y9ws",Tn="searchBar_fitmentContainer__3IZsv",On="searchBar_clearFitmentBtn__14jdY",An="searchBar_searchBarStyled__luh3_",Ln="searchBar_styledButton__gW4GL",Rn="searchBar_inputStyled__XoO4F",Bn="searchBar_styledFitmentContainer__1Y9am",Fn="searchBar_fitmentText__1M4XP",Mn="searchBar_inputContainerStyled__26B1I",Pn=function(e){var o,a,s,c,u=e.className,p=e.linkEl,f=void 0===p?"a":p,m=e.noResultsText,g=e.placeholder,v=void 0===g?"Enter keyword":g,b=e.searchButtonText,_=void 0===b?"Search":b,w=e.showCloseIcon,x=e.styled,S=e.onSubmit,C=e.showNoResultsMsg,N=void 0===C||C,I=e.searchValue,E=void 0===I?"":I,T=e.isLoading,O=e.onChange,A=e.onClear,L=e.renderNoResults,R=e.sections,B=e.renderList,F=e.onItemClick,M=e.fitment,P=e.onClearFitment,D=e.onClearHistory,j=e.retainFitmentOnSubmit,z=void 0!==j&&j,U=r(E),H=U[0],V=U[1],q=r(!1),Y=q[0],G=q[1],K=r(null),X=K[0],W=K[1],J=[],Z=n(null),$=n(null),Q=l((function(e){"Escape"===e.key&&G(!1)}),[]),ee=l((function(e){var t;(null===(t=Z.current)||void 0===t?void 0:t.contains(e.target))||G(!1)}),[Z.current]);i((function(){return document.addEventListener("click",ee),document.addEventListener("keyup",Q),function(){document.removeEventListener("click",ee),document.removeEventListener("keyup",Q)}}),[]),i((function(){Y||W(null)}),[Y]),i((function(){V(E)}),[E]);var te=function(){H&&G(!0)},ne=function(){setTimeout((function(){null==P||P()}))};return t("div",{className:y(_n,(o={},o[An]=x,o),u),role:"button",tabIndex:0,onKeyDown:function(e){switch(e.key){case"ArrowDown":te(),e.preventDefault()}}},t("form",{ref:Z,className:y(wn),onSubmit:function(e){e.preventDefault(),J[X]||(M||z||localStorage.removeItem("sui-fitment-selector-v2"),null==S||S(H),function(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(h([e],t))).slice(0,10)))}}(H))}},T&&x?t(pe,{type:"linear",className:"Sui-SearchBar--loading-indicator"}):null,t("div",{className:xn},t("div",{className:y(Sn,(a={},a[Mn]=x,a[Cn]=!!M,a))},function(){var e;return M?t("div",{className:y(Tn,(e={},e[Bn]=x,e))},t("p",{className:Fn},function(e){var t=/\|/g;return e.replace(t," ")}(M)),t("button",{type:"reset","aria-label":"clearFitment",className:On,onClick:ne},t(k,null))):null}(),t("input",{className:y((s={},s["SuiInput "+Rn]=x,s),Nn,"Sui-SearchBar--search-input"),ref:$,id:"sui-search-bar-input",name:"sui-search-bar-input",autoComplete:"off",placeholder:v||"","aria-label":"search-input",value:H,onChange:function(e){var t=e.currentTarget.value;V(t),G(!0),null==O||O(t)},onFocus:function(){setTimeout((function(){var e,t,n;W(-1),(H||(null===(n=null===(t=null===(e=R.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))&&G(!0)}))}}),w&&H&&t("button",{type:"reset","aria-label":"clear",className:In,onClick:function(){V(""),null==A||A(),$.current.focus()}},t(k,null))),t("button",{className:y((c={},c["SuiButton primary "+Ln]=x,c),"Sui-SearchBar--search-button"),type:"submit"},t("span",null,_),t(ue,{className:En}))),N&&(L?L():m?t("p",null,m):null),function(){var e,t,n=null===(t=null===(e=R.find((function(e){return"history"===e.type})))||void 0===e?void 0:e.data)||void 0===t?void 0:t.list.length,r=R.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)&&Y}()?B?B(R.reduce((function(e,t){var n;return d(d({},e),((n={})[t.type]={data:null==t?void 0:t.data,title:t.title},n))}),{}),H):t(bn,{styled:x,sections:R,linkEl:f,onItemClick:F,onClearHistory:D,onHistoryItemClick:function(e){V(e),null==O||O(e)}}):null))};var Dn="styles_styledNoResults__2In0o",jn=new AbortController,zn=jn.signal,Un=[{maxResults:5,title:"Categories",type:"category"},{maxResults:5,title:"Brands",type:"brand"},{maxResults:5,title:"Products",type:"product"}],Hn={brand:oe.API_URL+"/brands",category:oe.API_URL+"/categories",product:oe.API_URL+"/products"},Vn=s((function(e,s){var u,h=e.className,m=e.linkEl,g=void 0===m?"a":m,v=e.noResultsText,k=e.placeholder,b=void 0===k?"Enter keyword":k,_=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?Un:O,L=e.renderList,R=e.onItemClick,B=e.fitment,F=e.onClearFitment,M=e.defaultQueryParams,P=void 0===M?{}:M,D=Array.isArray(A)&&0!==A.length?A:Un,j=D.filter((function(e){return"history"===e.type})).length,z=function(){var e=this,t=a(se,{data:null,error:"",status:""}),r=t[0],o=t[1],l=n(!1);return i((function(){return l.current=!0,function(){return l.current=!1}}),[]),[function(t){return p(e,void 0,void 0,(function(){var e,n;return f(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),l.current&&o({type:"LOADING"}),[4,Promise.all(t.map((function(e){return le.get(e.url,e.query,e.signal)})))];case 1:return e=r.sent(),l.current&&o({data:e,type:"SUCCESS"}),[3,3];case 2:return n=r.sent(),l.current&&o({error:n.message||"Unknown error",type:"ERROR"}),[3,3];case 3:return[2]}}))}))},r,o]}(),U=z[0],H=z[1],V=z[2],q="LOADING"===H.status,Y=null===(u=null==H?void 0:H.data)||void 0===u?void 0:u.reduce((function(e,t){var n;return e+((null===(n=t.list)||void 0===n?void 0:n.length)||0)}),0),G=r(""),K=G[0],X=G[1],W=r(T),J=W[0],$=W[1],Q=r(B),ee=Q[0],te=Q[1],ne=r({})[1];i((function(){oe()}),[A]),i((function(){te(B)}),[B]),i((function(){$(T)}),[T]),c(s,(function(){return{loadData:function(e,t){re(e,t)}}}));var re=l(Z((function(e,t){return p(void 0,void 0,void 0,(function(){var n;return f(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:d(d({},ce(1,n.maxResults||5,e,null,t)),P),signal:zn,url:Hn[n.type]}})),[4,U(n)]):[3,2];case 1:return r.sent(),X(e),[3,3];case 2:oe(),r.label=3;case 3:return[2]}}))}))}),400),[A,1]),ie=function(e){var n;return t("p",{className:y((n={},n[Dn]=S,n),"Sui-SearchBar--no-results")},e)},oe=function(){V({type:"RESET"}),X("")};return t(o,null,t(Pn,{className:h,linkEl:g,noResultsText:v,placeholder:b,searchButtonText:w,showCloseIcon:x,styled:S,onSubmit:C,showNoResultsMsg:I,searchValue:J,renderNoResults:function(){return"REJECTED"===H.status&&J===K?ie(H.error+"."):!q&&J===K&&J.length>=1&&!Y?ie(v||"No results for: "+K):null},onClear:function(){$(""),oe()},onChange:function(e){$(e),"LOADING"===H.status&&(jn.abort(),jn=new AbortController,zn=jn.signal),re(e,ee)},isLoading:q,onClearHistory:function(){ne({})},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 d(d({},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 d(d({},e),void 0!==(null===(r=null===(n=H.data)||void 0===n?void 0:n[c])||void 0===r?void 0:r.total)?{data:{list:(null===(o=null===(i=H.data)||void 0===i?void 0:i[c])||void 0===o?void 0:o.list)||[],total:(null===(l=null===(a=H.data)||void 0===a?void 0:a[c])||void 0===l?void 0:l.total)||0}}:{})})),renderList:L,onItemClick:R,fitment:ee,onClearFitment:function(){te(""),null==F||F(),localStorage.setItem("sui-fitment-selector-v2","[]"),re(J,"")}}))})),qn="style_searchBarModal__1QMVt";export default function(e){var n=e.show,r=e.onClose,i=e.className,o=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,["show","onClose","className"]);return t(C,{key:String(n),isOpen:n,onClose:r,className:y(qn,i)},t(Vn,d({},o)))}
|
|
22
|
+
//# sourceMappingURL=index.esm.js.map
|