@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,22 @@
|
|
|
1
|
+
"use strict";var e=require("react");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("react-dom");var n=t(e),r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};
|
|
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
|
+
***************************************************************************** */function o(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(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 i(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}function a(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,l=i.length;a<l;a++,o++)r[o]=i[a];return r}var l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(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 c(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 u=s((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 o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)&&o.length){var a=n.apply(null,o);a&&e.push(a)}else if("object"===i)for(var l in o)t.call(o,l)&&o[l]&&e.push(l)}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}));var d=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},f="object"==typeof l&&l&&l.Object===Object&&l,p="object"==typeof self&&self&&self.Object===Object&&self,h=f||p||Function("return this")(),m=function(){return h.Date.now()},v=h.Symbol,g=Object.prototype,y=g.hasOwnProperty,b=g.toString,S=v?v.toStringTag:void 0;var x=function(e){var t=y.call(e,S),n=e[S];try{e[S]=void 0;var r=!0}catch(e){}var o=b.call(e);return r&&(t?e[S]=n:delete e[S]),o},w=Object.prototype.toString;var k=function(e){return w.call(e)},O=v?v.toStringTag:void 0;var E=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":O&&O in Object(e)?x(e):k(e)};var C=function(e){return null!=e&&"object"==typeof e};var I=function(e){return"symbol"==typeof e||C(e)&&"[object Symbol]"==E(e)},T=/^\s+|\s+$/g,N=/^[-+]0x[0-9a-f]+$/i,L=/^0b[01]+$/i,_=/^0o[0-7]+$/i,A=parseInt;var R=function(e){if("number"==typeof e)return e;if(I(e))return NaN;if(d(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=d(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(T,"");var n=L.test(e);return n||_.test(e)?A(e.slice(2),n?2:8):N.test(e)?NaN:+e},j=Math.max,P=Math.min;var F=function(e,t,n){var r,o,i,a,l,s,c=0,u=!1,f=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function v(e){return c=e,l=setTimeout(y,t),u?h(e):a}function g(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-c>=i}function y(){var e=m();if(g(e))return b(e);l=setTimeout(y,function(e){var n=t-(e-s);return f?P(n,i-(e-c)):n}(e))}function b(e){return l=void 0,p&&r?h(e):(r=o=void 0,a)}function S(){var e=m(),n=g(e);if(r=arguments,o=this,s=e,n){if(void 0===l)return v(s);if(f)return clearTimeout(l),l=setTimeout(y,t),h(s)}return void 0===l&&(l=setTimeout(y,t)),a}return t=R(t)||0,d(n)&&(u=!!n.leading,i=(f="maxWait"in n)?j(R(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),S.cancel=function(){void 0!==l&&clearTimeout(l),c=0,r=s=o=l=void 0},S.flush=function(){return void 0===l?a:b(m())},S};const D={API_URL:"https://api.sunhammer.io",LIBRARY_NAME:"@partslogic/ui",STORY_BOOK_URL:"https://ui.sunhammer.io/"},M="object"==typeof window?window:{};M.partslogic=M.partslogic||{},M.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 B=D,V=function(){return M.partslogic.config};function U(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var q=function(e,t,n,r){t=t||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var i=/\+/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,f,p=e[s].replace(i,"%20"),h=p.indexOf(n);h>=0?(c=p.substr(0,h),u=p.substr(h+1)):(c=p,u=""),d=decodeURIComponent(c),f=decodeURIComponent(u),U(o,d)?Array.isArray(o[d])?o[d].push(f):o[d]=[o[d],f]:o[d]=f}return o},z=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},H=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 o=encodeURIComponent(z(r))+n;return Array.isArray(e[r])?e[r].map((function(e){return o+encodeURIComponent(z(e))})).join(t):o+encodeURIComponent(z(e[r]))})).join(t):r?encodeURIComponent(z(r))+n+encodeURIComponent(z(e)):""},W=s((function(e,t){t.decode=t.parse=q,t.encode=t.stringify=H})),Y={get:function(e,t,n){return void 0===t&&(t={}),o(this,void 0,void 0,(function(){var r,o,a,l,s,c,u,d,f;return i(this,(function(i){switch(i.label){case 0:r=V(),o=r.API_KEY,a=r.throttleRequests,o||console.error("API_KEY is not valid. Please enter a valid one."),i.label=1;case 1:return i.trys.push([1,3,,4]),l=JSON.parse(JSON.stringify(t)),s=Object.keys(l).length?"?"+W.stringify(l):"",u=a[c=""+e+s],d=u||fetch(c,{headers:{"sunhammer-api-key":o},signal:n}),a[c]=d,[4,a[c]];case 2:if(!(f=i.sent()).ok)throw new Error("Network response was not ok");return delete a[c],[2,f.clone().json()];case 3:throw i.sent();case 4:return[2]}}))}))}};var X="nativeSelect_styledSelect__2smv3",J="nativeSelect_styledSelectVertical__1UgTs",$="nativeSelect_fieldLabel__2yh3m",K="nativeSelect_hasNotSelected__2vBXX",G="nativeSelect_optionItem__14pSl",Z=0,Q=function(t){var n,o,i,a=t.className,l=void 0===a?"":a,s=t.styled,c=t.isVertical,d=t.options,f=t.value,p=t.disabled,h=void 0!==p&&p,m=t.name,v=t.onChange,g=t.optionalLabelReference,y=void 0===g?"":g,b=t.labelName,S=e.useState((function(){return Z+=1}))[0],x=""===y?"Sui-FitmentSelector--select-wrapper":"Sui-FitmentSelector--select-wrapper Sui-FitmentSelector--select-wrapper-"+y,w=b?f?((n={})[K]=!1,n["Sui-FitmentSelector--label_has_selected"]=!0,n):((o={})[K]=!0,o["Sui-FitmentSelector--label_has_not_selected"]=!0,o):{};return e.createElement("div",{className:u(""+x,{"Sui-FitmentSelector--select-wrapper-selected":f})},b&&e.createElement("label",{className:u($,"Sui-FitmentSelector--label"),htmlFor:"sui-fitment-selector-"+S},b),e.createElement("select",{id:"sui-fitment-selector-"+S,className:u(r((i={},i[X+" SuiSelect"]=s,i[J]=s&&c,i),w),l,"sui-fitment-selector-"+f),disabled:h,value:f,onChange:v,role:"listbox"},e.createElement("option",{key:0,value:"",role:"option","aria-selected":!1,className:u("Sui-FitmentSelector--initial-option")},b?"Select an option":m),e.createElement("option",{key:-1,disabled:!0,role:"option","aria-selected":!1},"---"),d.map((function(t){return e.createElement("option",{id:String(t.id),role:"option",key:t.id,value:t.id,"aria-selected":f===t.id,className:G},t.name)}))))},ee="fitmentSelector_root__2AC1X",te="fitmentSelector_vertical__2KZmh",ne="fitmentSelector_actions__2qHCc",re="fitmentSelector_actionsVertical__6M5SY",oe="fitmentSelector_styledSearchBtn__1G-X4",ie="fitmentSelector_styledSearchBtnVertical__xcipP",ae="fitmentSelector_styledClearBtn__LH10d";function le(e){var t={};return e.forEach((function(e,n){n.match(/^vq\[[a-z_]+\]$/)&&(t[n]=e)})),t}var se=function(e,t){var n,r=null==(n=e)?void 0:n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),o=null==t?void 0:t.find((function(e){return e.name.match(new RegExp("^"+r+"$","i"))}));return o?o.name:""},ce=function(t){var n=t.labels,r=t.CustomSelect,o=t.currentSelectedValues,i=t.onLabelChange,a=t.labelsData,l=t.styled,s=t.isVertical,c=t.isOptionalLabel;return n.map((function(t,u){var d,f,p=!0;return p=!c&&(u>0&&!o[n[u-1].name]||!(null===(d=a[t.name])||void 0===d?void 0:d.length)),r?e.createElement(r,{key:t.name,value:se(o[t.name],a[t.name])||"",onChange:function(e){return i(t.name,e)},options:a[t.name],label:t}):e.createElement(Q,{key:t.name,onChange:function(e){return i(t.name,e.currentTarget.value)},value:se(o[t.name],a[t.name])||"",className:"Sui-FitmentSelector--select",disabled:p,name:t.customName||t.name,options:(null===(f=a[t.name])||void 0===f?void 0:f.map((function(e){return{id:e.id,name:e.name}})))||[],styled:l,isVertical:s})}))},ue=function(t){var n=t.labels,r=t.CustomSelect,o=t.currentSelectedValues,i=t.onLabelChange,a=t.labelsData,l=t.styled,s=t.isVertical,c=t.isOptionalLabel,u=t.showFieldLabels;return n.map((function(t,d){var f,p,h=!0;return h=!c&&(d>0&&!o[n[d-1].name]||!(null===(f=a[t.name])||void 0===f?void 0:f.length)),r?e.createElement(r,{key:t.name,value:se(o[t.name],a[t.name])||"",onChange:function(e){return i(t.name,e)},options:a[t.name],label:t}):e.createElement(Q,{key:t.name,onChange:function(e){return i(t.name,e.currentTarget.value,t.real_id)},optionalLabelReference:t.real_id,value:se(o[t.name],a[t.name])||"",className:"Sui-FitmentSelector--select",disabled:h,name:t.customName||t.name,options:(null===(p=a[t.name])||void 0===p?void 0:p.map((function(e){return{id:e.id,name:e.name}})))||[],styled:l,isVertical:s,labelName:u&&t.name})}))},de=function(t){var n,l,s,c,d,f=t.autocommit,p=t.autocommitDelay,h=void 0===p?2e3:p,m=t.className,v=void 0===m?"":m,g=t.clearButtonText,y=void 0===g?"Clear":g,b=t.components,S=t.id,x=t.labels,w=t.labelsData,k=t.orientation,O=void 0===k?"horizontal":k,E=t.onChange,C=t.onSubmit,I=t.onClearCb,T=t.optionalLabels,N=void 0===T?[]:T,L=t.optionalLabelsData,_=t.onOptionalLabelsChange,A=t.optionalLabelsTitle,R=void 0===A?"Optional Fields":A,j=t.searchButtonText,P=void 0===j?"Search":j,D=t.selectedValues,M=t.styled,B=void 0!==M&&M,V=t.isLoadingOptionalLabel,U=void 0!==V&&V,q=t.showFieldLabels,z=void 0===q||q,H=function(e,t){var n;void 0===t&&(t=!1);var r=Object.keys(le(e)).length>0&&le(e),o=(null===(n=JSON.parse(localStorage.getItem("optional-qualifiers")||"{}"))||void 0===n?void 0:n[0])||{};return t?o:r||o}(new URLSearchParams(window.location.search),!0),W=(null===(d=JSON.parse(localStorage.getItem("optional-qualifiers-for-url")||"{}"))||void 0===d?void 0:d[0])||{},Y=e.useState(D),X=Y[0],J=Y[1],$=e.useState(H),K=$[0],G=$[1],Z=e.useState(W),Q=Z[0],se=Z[1],de=e.useRef(null);e.useEffect((function(){Object.keys(D||{}).length===x.length&&x.length>1&&me(fe(D,x))}),[x]),e.useEffect((function(){var e=r({},w),t=function(e,t,n){for(var o={},i=function(n){var i,a=(e||{})[n.name];return a&&t[n.name]&&t[n.name].find((function(e){return String(e.id).toLowerCase()===String(a).toLowerCase()}))?void(o=r(r({},o),((i={})[n.name]=e[n.name],i))):"break"},a=0,l=n;a<l.length&&"break"!==i(l[a]);a++);return o}(D,e,a(x));J(t)}),[D,w]),e.useEffect((function(){G(H),se(W)}),[L]),e.useEffect((function(){var e=JSON.parse(localStorage.getItem("dyn-selectedvq")||"{}")||{},t=JSON.parse(localStorage.getItem("dyn-selectedvq-realid")||"{}")||{};Object.keys(e).length?(G(e),se(t)):(G(H),se(W))}),[U]),e.useEffect((function(){N.length>0&&setTimeout((function(){var e=pe(),t=document.querySelector(".Sui-FitmentSelector--select-wrapper-"+e),n=document.querySelector(".Sui-FitmentSelector--select-wrapper-"+e+" select");t&&(t.scrollIntoView(),n.focus())}),200)}),[N]);var pe=function(){var e=JSON.parse(localStorage.getItem("nextOptLabelIdx"));return N[e].real_id},he=e.useCallback(F((function(e){return o(void 0,void 0,void 0,(function(){return i(this,(function(t){return ve(e,Q),[2]}))}))}),h),[h,x]),me=function(e,t){t?(localStorage.setItem("optional-qualifiers",JSON.stringify([K])),localStorage.setItem("optional-qualifiers-for-url",JSON.stringify([Q]))):localStorage.setItem("sui-fitment-selector-v2",JSON.stringify([e]))},ve=function(e,t){me(fe(e,x)),me("",t),localStorage.setItem("dyn-selectedvq","{}"),localStorage.setItem("dyn-selectedvq-realid","{}"),null==C||C(e,t)},ge="vertical"===O,ye=null==b?void 0:b.select,be=X||{},Se=K||{};return x.length?e.createElement("div",{id:S,ref:de,className:u(ee,(n={},n[te]=ge,n),v)},e.createElement(ce,{labels:x,CustomSelect:ye,currentSelectedValues:be,onLabelChange:function(e,t){return o(void 0,void 0,void 0,(function(){var n,o,l,s,c,u,d,p;return i(this,(function(i){for(n=a(x),o=n.findIndex((function(t){return t.name===e}))+1,l=n.slice(o),s=r(r({},X),((p={})[e]=t,p)),c=0,u=l;c<u.length;c++)d=u[c],delete s[d.name];return he.cancel(),J(s),null==E||E(e,s),f&&Object.keys(s).length===x.length&&he(s),[2]}))}))},labelsData:w,styled:B,isVertical:ge,isOptionalLabel:!1}),U&&"Loading optional fields...",Object.keys(X||{}).length>=x.length&&N.length?e.createElement(e.Fragment,null,e.createElement("p",{className:"Sui-FitmentSelector--optional-fields-label"},R),e.createElement(ue,{labels:N,CustomSelect:ye,currentSelectedValues:Se,onLabelChange:function(e,t,n){return o(void 0,void 0,void 0,(function(){var o,a,l,s,c,u,d;return i(this,(function(i){return o=r(r({},K),((u={})[e]=t,u)),a=r(r({},Q),((d={})[n]=t,d)),l=N.findIndex((function(e){return e.real_id===n})),localStorage.setItem("nextOptLabelIdx",""+(l+1)),""===t&&(delete a[n],delete o[e]),s=N.map((function(e){return e.real_id})),Object.keys(a).forEach((function(e){s.includes(e)||delete a[e]})),c=N.map((function(e){return e.name})),Object.keys(o).forEach((function(e){c.includes(e)||delete o[e]})),he.cancel(),G(o),se(a),null==_||_(e,n,o,a),f&&Object.keys(o).length===N.length&&he(o),[2]}))}))},labelsData:L,styled:B,isVertical:ge,isOptionalLabel:!0,showFieldLabels:z})):null,f?null:e.createElement("div",{className:u(ne,(l={},l[re]=B&&ge,l),"Sui-FitmentSelector--actions")},e.createElement("button",{type:"button",className:u((s={},s["SuiButton primary "+oe]=B,s[ie]=B&&ge,s),"Sui-FitmentSelector--searchBtn"),disabled:Object.keys(be).length<x.length,onClick:function(){ve(X,Q)}},P),e.createElement("button",{type:"button",className:u((c={},c["SuiButton secondary "+ae]=B,c),"Sui-FitmentSelector--clearBtn"),disabled:0===Object.keys(be).length,onClick:function(){null==E||E(null,null),null==I||I(),J(null),localStorage.removeItem("sui-fitment-selector-v2"),localStorage.removeItem("optional-qualifiers"),localStorage.removeItem("optional-qualifiers-for-url"),localStorage.removeItem("dyn-selectedvq"),localStorage.removeItem("dyn-selectedvq-realid")}},y))):null};function fe(e,t){return t.reduce((function(t,n){return e[n.name]?a(t,[e[n.name]]):t}),[]).join("|")}var pe={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}},he=s((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,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(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 o(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var i={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){i[e]=new o(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];i[r]=new o(r,1,!1,a,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){i[e]=new o(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){i[e]=new o(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){i[e]=new o(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){i[e]=new o(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){i[e]=new o(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){i[e]=new o(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){i[e]=new o(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);i[t]=new o(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);i[t]=new o(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);i[t]=new o(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){i[e]=new o(e,1,!1,e.toLowerCase(),null,!1,!1)}));i.xlinkHref=new o("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){i[e]=new o(e,1,!1,e.toLowerCase(),null,!0,!0)}));var s=pe.CAMELCASE,c=pe.SAME,u=pe.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]*$")),f=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 i.hasOwnProperty(e)?i[e]:null},t.isCustomAttribute=d,t.possibleStandardNames=f})),me=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ve=/\n/g,ge=/^\s*/,ye=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,be=/^:\s*/,Se=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,xe=/^[;\s]*/,we=/^\s+|\s+$/g;function ke(e){return e?e.replace(we,""):""}var Oe=function(e,t){var n,r=null;if(!e||"string"!=typeof e)return r;for(var o,i,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 o(e){var t=e.match(ve);t&&(n+=t.length);var o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function i(){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(o){var i=new Error(t.source+":"+n+":"+r+": "+o);if(i.reason=o,i.filename=t.source,i.line=n,i.column=r,i.source=e,!t.silent)throw i}function s(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function c(){s(ge)}function u(e){var t;for(e=e||[];t=d();)!1!==t&&e.push(t);return e}function d(){var t=i();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,o(a),e=e.slice(n),r+=2,t({type:"comment",comment:a})}}function f(){var e=i(),t=s(ye);if(t){if(d(),!s(be))return l("property missing ':'");var n=s(Se),r=e({type:"declaration",property:ke(t[0].replace(me,"")),value:n?ke(n[0].replace(me,"")):""});return s(xe),r}}return a.prototype.content=e,c(),function(){var e,t=[];for(u(t);e=f();)!1!==e&&(t.push(e),u(t));return t}()}(e),l="function"==typeof t,s=0,c=a.length;s<c;s++)o=(n=a[s]).property,i=n.value,l?t(o,i,n):i&&(r||(r={}),r[o]=i);return r},Ee=s((function(e,t){t.__esModule=!0,t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,r=/-([a-z])/g,o=/^[^-]+$/,i=/^-(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||o.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,s):e.replace(i,s)).replace(r,l))}})),Ce=s((function(e,t){var n=l&&l.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var r=n(Oe);t.default=function(e,t){var n={};return e&&"string"==typeof e?((0,r.default)(e,(function(e,r){e&&r&&(n[(0,Ee.camelCase)(e,t)]=r)})),n):n}})).default;var Ie={reactCompat:!0};var Te=n.default.version.split(".")[0]>=16,Ne=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var Le={PRESERVE_CUSTOM_ATTRIBUTES:Te,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var n,r,o="function"==typeof t,i={},a={};for(n in e)r=e[n],o&&(i=t(n,r))&&2===i.length?a[i[0]]=i[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=Ce(e,Ie)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!Ne.has(e.name)},elementsWithNoTextChildren:Ne},_e=function(e){var t,n,r,o,i,a={},l=(e=e||{}).type&&{reset:!0,submit:!0}[e.type];for(t in e)if(r=e[t],he.isCustomAttribute(t))a[t]=r;else if(o=Ae(n=t.toLowerCase()))switch(i=he.getPropertyInfo(o),"checked"!==o&&"value"!==o||l||(o=Ae("default"+n)),a[o]=r,i&&i.type){case he.BOOLEAN:a[o]=!0;break;case he.OVERLOADED_BOOLEAN:""===r&&(a[o]=!0)}else Le.PRESERVE_CUSTOM_ATTRIBUTES&&(a[t]=r);return Le.setStyleProp(e.style,a),a};function Ae(e){return he.possibleStandardNames[e]}var Re=Le.setStyleProp,je=Le.canTextBeChildOfNode;function Pe(e){return Le.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&Le.isCustomComponent(e.name,e.attribs)}var Fe=function e(t,r){for(var o,i,a,l,s,c=(r=r||{}).library||n.default,u=c.cloneElement,d=c.createElement,f=c.isValidElement,p=[],h="function"==typeof r.replace,m=r.trim,v=0,g=t.length;v<g;v++)if(o=t[v],h&&f(a=r.replace(o)))g>1&&(a=u(a,{key:a.key||v})),p.push(a);else if("text"!==o.type){switch(l=o.attribs,Pe(o)?Re(l.style,l):l&&(l=_e(l)),s=null,o.type){case"script":case"style":o.children[0]&&(l.dangerouslySetInnerHTML={__html:o.children[0].data});break;case"tag":"textarea"===o.name&&o.children[0]?l.defaultValue=o.children[0].data:o.children&&o.children.length&&(s=e(o.children,r));break;default:continue}g>1&&(l.key=v),p.push(d(o.name,l,s))}else{if((i=!o.data.trim().length)&&o.parent&&!je(o.parent))continue;if(m&&i)continue;p.push(o.data)}return 1===p.length?p[0]:p},De=/<([a-zA-Z]+[0-9]?)/,Me=/<head[^]*>/i,Be=/<body[^]*>/i,Ve=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},Ue=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};if("function"==typeof window.DOMParser){var qe=new window.DOMParser;Ve=Ue=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),qe.parseFromString(e,"text/html")}}if(document.implementation){var ze=document.implementation.createHTMLDocument();Ve=function(e,t){return t?(ze.documentElement.querySelector(t).innerHTML=e,ze):(ze.documentElement.innerHTML=e,ze)}}var He,We=document.createElement("template");We.content&&(He=function(e){return We.innerHTML=e,We.content.childNodes});var Ye,Xe=function(e){var t,n,r,o,i=e.match(De);switch(i&&i[1]&&(t=i[1].toLowerCase()),t){case"html":return n=Ue(e),Me.test(e)||(r=n.querySelector("head"))&&r.parentNode.removeChild(r),Be.test(e)||(r=n.querySelector("body"))&&r.parentNode.removeChild(r),n.querySelectorAll("html");case"head":case"body":return o=(n=Ve(e)).querySelectorAll(t),Be.test(e)&&Me.test(e)?o[0].parentNode.childNodes:o;default:return He?He(e):(r=Ve(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"}(Ye||(Ye={}));Ye.Root,Ye.Text,Ye.Directive,Ye.Comment,Ye.Script,Ye.Style,Ye.Tag,Ye.CDATA,Ye.Doctype;class Je{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return ct(this,e)}}class $e extends Je{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}}class Ke extends $e{constructor(){super(...arguments),this.type=Ye.Text}get nodeType(){return 3}}class Ge extends $e{constructor(){super(...arguments),this.type=Ye.Comment}get nodeType(){return 8}}class Ze extends $e{constructor(e,t){super(t),this.name=e,this.type=Ye.Directive}get nodeType(){return 1}}class Qe extends Je{constructor(e){super(),this.children=e}get firstChild(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}}class et extends Qe{constructor(){super(...arguments),this.type=Ye.CDATA}get nodeType(){return 4}}class tt extends Qe{constructor(){super(...arguments),this.type=Ye.Root}get nodeType(){return 9}}class nt extends Qe{constructor(e,t,n=[],r=("script"===e?Ye.Script:"style"===e?Ye.Style:Ye.Tag)){super(n),this.name=e,this.attribs=t,this.type=r}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map((e=>{var t,n;return{name:e,value:this.attribs[e],namespace:null===(t=this["x-attribsNamespace"])||void 0===t?void 0:t[e],prefix:null===(n=this["x-attribsPrefix"])||void 0===n?void 0:n[e]}}))}}function rt(e){return(t=e).type===Ye.Tag||t.type===Ye.Script||t.type===Ye.Style;var t}function ot(e){return e.type===Ye.CDATA}function it(e){return e.type===Ye.Text}function at(e){return e.type===Ye.Comment}function lt(e){return e.type===Ye.Directive}function st(e){return e.type===Ye.Root}function ct(e,t=!1){let n;if(it(e))n=new Ke(e.data);else if(at(e))n=new Ge(e.data);else if(rt(e)){const r=t?ut(e.children):[],o=new nt(e.name,{...e.attribs},r);r.forEach((e=>e.parent=o)),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]={...e["x-attribsPrefix"]}),n=o}else if(ot(e)){const r=t?ut(e.children):[],o=new et(r);r.forEach((e=>e.parent=o)),n=o}else if(st(e)){const r=t?ut(e.children):[],o=new tt(r);r.forEach((e=>e.parent=o)),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),n=o}else{if(!lt(e))throw new Error(`Not implemented yet: ${e.type}`);{const t=new Ze(e.name,e.data);null!=e["x-name"]&&(t["x-name"]=e["x-name"],t["x-publicId"]=e["x-publicId"],t["x-systemId"]=e["x-systemId"]),n=t}}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function ut(e){const t=e.map((e=>ct(e,!0)));for(let e=1;e<t.length;e++)t[e].prev=t[e-1],t[e-1].next=t[e];return t}const dt={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class ft{constructor(e,t,n){this.dom=[],this.root=new tt(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=dt),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:dt,this.elementCB=null!=n?n:null}onparserinit(e){this.parser=e}onreset(){this.dom=[],this.root=new tt(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(e){this.handleCallback(e)}onclosetag(){this.lastNode=null;const e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)}onopentag(e,t){const n=this.options.xmlMode?Ye.Tag:void 0,r=new nt(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)}ontext(e){const{lastNode:t}=this;if(t&&t.type===Ye.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{const t=new Ke(e);this.addNode(t),this.lastNode=t}}oncomment(e){if(this.lastNode&&this.lastNode.type===Ye.Comment)return void(this.lastNode.data+=e);const t=new Ge(e);this.addNode(t),this.lastNode=t}oncommentend(){this.lastNode=null}oncdatastart(){const e=new Ke(""),t=new et([e]);this.addNode(t),e.parent=t,this.lastNode=e}oncdataend(){this.lastNode=null}onprocessinginstruction(e,t){const n=new Ze(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 pt,ht=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussainBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],mt=c(Object.freeze({__proto__:null,DomHandler:ft,default:ft,Node:Je,DataNode:$e,Text:Ke,Comment:Ge,ProcessingInstruction:Ze,NodeWithChildren:Qe,CDATA:et,Document:tt,Element:nt,isTag:rt,isCDATA:ot,isText:it,isComment:at,isDirective:lt,isDocument:st,hasChildren:function(e){return Object.prototype.hasOwnProperty.call(e,"children")},cloneNode:ct})),vt=ht,gt=mt.Comment,yt=mt.Element,bt=mt.ProcessingInstruction,St=mt.Text,xt={},wt=0,kt=vt.length;wt<kt;wt++)pt=vt[wt],xt[pt.toLowerCase()]=pt;function Ot(e){for(var t,n={},r=0,o=e.length;r<o;r++)n[(t=e[r]).name]=t.value;return n}function Et(e){var t=function(e){return xt[e]}(e=e.toLowerCase());return t||e}var Ct={formatAttributes:Ot,formatDOM:function e(t,n,r){n=n||null;for(var o=[],i=0,a=t.length;i<a;i++){var l,s=t[i];switch(s.nodeType){case 1:(l=new yt(Et(s.nodeName),Ot(s.attributes))).children=e(s.childNodes,l);break;case 3:l=new St(s.nodeValue);break;case 8:l=new gt(s.nodeValue);break;default:continue}var c=o[i-1]||null;c&&(c.next=l),l.parent=n,l.prev=c,l.next=null,o.push(l)}return r&&((l=new bt(r.substring(0,r.indexOf(" ")).toLowerCase(),r)).next=o[0]||null,l.parent=n,o.unshift(l),o[1]&&(o[1].prev=o[0])),o}}.formatDOM,It=/<(![a-zA-Z\s]+)>/;var Tt=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,n=e.match(It);return n&&n[1]&&(t=n[1]),Ct(Xe(e),null,t)},Nt=c(Object.freeze({__proto__:null,default:Tt}));Nt="function"==typeof Nt.default?Nt.default:Nt;var Lt={lowerCaseAttributeNames:!1};function _t(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:Fe(Nt(e,(t=t||{}).htmlparser2||Lt),t)}_t.domToReact=Fe,_t.htmlToDOM=Nt,_t.attributesToProps=_e,_t.Element=mt.Element;var At=_t;_t.default=At;e.createContext(null);function Rt(e){var t={};return null==e||e.forEach((function(e){t[e.name]=e.values})),[null==e?void 0:e.map((function(e){return{id:e.name,name:e.name,real_id:e.id}})),t]}var jt="fitmentSelectorWrapper_error__MWhGI",Pt=function(t){var n=t.autocommit,l=t.autocommitDelay,s=void 0===l?2e3:l,c=t.className,u=void 0===c?"":c,d=t.clearButtonText,f=void 0===d?"Clear":d,p=t.components,h=t.filter,m=void 0===h?{}:h,v=t.groupId,g=t.id,y=t.orientation,b=void 0===y?"horizontal":y,S=t.onChange,x=t.onDataLoaded,w=t.onSubmit,k=t.onClearCb,O=t.searchButtonText,E=void 0===O?"Search":O,C=t.selectedValues,I=void 0===C?null:C,T=t.styled,N=void 0!==T&&T,L=t.optionalLabels,_=t.optionalLabelsData,A=t.onError,R=t.qualifiersStatus,j=void 0===R?"disabled":R,P=t.selectedFacets,D=void 0===P?{}:P,M=t.optionalLabelsTitle,V=void 0===M?"Add optional details:":M,U=t.fitmentRuleId,q=t.showFieldLabels,z=t.productId,H=t.sku,W=e.useState({message:""}),X=W[0],J=W[1],$=e.useState(!1),K=$[0],G=$[1],Z=e.useState([]),Q=Z[0],ee=Z[1],te=e.useState([]),ne=te[0],re=te[1],oe=e.useState({}),ie=oe[0],ae=oe[1],le=e.useState({}),se=le[0],ce=le[1],ue=e.useState(I),fe=ue[0],pe=ue[1],he=e.useState(""),me=he[0],ve=he[1],ge=e.useRef(!1);e.useEffect((function(){pe(I)}),[I]),e.useEffect((function(){var e;(null==L?void 0:L.length)>0&&re(L),(null===(e=Object.keys(_||{}))||void 0===e?void 0:e.length)>0&&ce(_)}),[L,_]),e.useEffect((function(){var e=!0;return function(){o(this,void 0,void 0,(function(){var t,n,r;return i(this,(function(o){switch(o.label){case 0:return[4,Ft("fitment/labels",v,m,J,z)];case 1:return t=o.sent(),e&&ee(t),n=Object.keys(I||{}).length,[4,Dt(t,n,I,v,m,J,z)];case 2:return r=o.sent(),e&&ae(r),[2]}}))}))}(),function(){e=!1}}),[]);var ye=e.useCallback(F((function(e,t,n){x(e,t,n)}),150),[]);e.useEffect((function(){x&&(Q.length||Object.keys(ie).length)&&(ye.cancel(),ye(Q,ne,ie))}),[Q,ie]),e.useEffect((function(){A&&X.message&&A(X)}),[X]);var be,Se,xe,we=function(){var e;null==S||S(null,null),pe({}),ae(((e={})[Q[0].name]=ie[Q[0].name],e)),re([])},ke=(be=function(e,t){var r=Object.keys(fe).length===Q.length+ne.length;!ge.current&&(n&&r||!n)&&(null==w||w(e,t))},Se=[ne,fe],xe=e.useRef((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];throw new Error("Cannot call an event handler while rendering.")})),e.useEffect((function(){xe.current=be}),a([be],Se)),e.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return xe.current.apply(void 0,e)}),[xe]));return v||console.error("Please send a groupId"),X.message?e.createElement("p",{className:jt},X.message):e.createElement(de,{autocommit:n,autocommitDelay:s,className:u,clearButtonText:f,id:g,orientation:b,onChange:function(e,t){return o(void 0,void 0,void 0,(function(){var n,o,l,s,c,u,d,f,p,h,g,y,b,x,w,k,O,E,C,I;return i(this,(function(i){switch(i.label){case 0:if(!t&&!e)return we(),[2];for(n=a(Q),o=n.findIndex((function(t){return t.name===e}))+1,l=o<n.length,s=r(r({},t),l?((C={})[n[o].name]=void 0,C):{}),c=n.slice(o),u=0,d=c;u<d.length;u++)f=d[u],delete s[f.name];return pe(s),p=!1,1===Object.keys(t).length&&""===Object.values(t).find((function(e){return""===e}))&&(p=!0),l?p?[3,2]:[4,Mt(n,o,m,v,t,J,U,z)]:[3,3];case 1:h=i.sent(),g=r(r({},ie),((I={})[n[o].name]=h,I)),ae(g),i.label=2;case 2:return[3,5];case 3:return"enabled"!==j?[3,5]:(G(!0),re([]),ce({}),y=Object.keys(s).reduce((function(e,t){return a(e,[s[t]])}),[]).join("|"),ve(y),b={},Object.keys(D||{}).forEach((function(e){var t;null===(t=D[e])||void 0===t||t.forEach((function(t){var n;b=r(r({},b),((n={})[""+e]=t,n))}))})),x=r(r({limit:1,page:1,fitment:y,productId:z},b),{sku:H}),[4,Y.get(B.API_URL+"/products",x)]);case 4:w=i.sent(),k=Rt(null==w?void 0:w.vehicleQualifiers),O=k[0],E=k[1],re(O),ce(E),G(!1),i.label=5;case 5:return null==S||S(e,t),[2]}}))}))},onSubmit:ke,searchButtonText:E,styled:N,onClearCb:k,components:p,labels:Q,optionalLabels:ne,optionalLabelsData:se,optionalLabelsTitle:V,labelsData:ie,selectedValues:fe,isLoadingOptionalLabel:K,onOptionalLabelsChange:function(e,t,n,a){return o(void 0,void 0,void 0,(function(){var e,t,o,l,s,c,u,d,f;return i(this,(function(i){switch(i.label){case 0:return e=(null===(d=JSON.parse(localStorage.getItem("sui-fitment-selector-v2")||"{}"))||void 0===d?void 0:d[0])||"",t={},null===(f=Object.keys(a))||void 0===f||f.forEach((function(e){t["vq["+e+"]"]=a[e]})),localStorage.setItem("dyn-selectedvq",JSON.stringify(n)),localStorage.setItem("dyn-selectedvq-realid",JSON.stringify(a)),o={},Object.keys(D||{}).forEach((function(e){var t;null===(t=D[e])||void 0===t||t.forEach((function(t){var n;o=r(r({},o),((n={})[""+e]=t,n))}))})),G(!0),re([]),ce({}),[4,Y.get(B.API_URL+"/products",r(r(r({limit:1,page:1,fitment:e||me},t),o),{sku:H}))];case 1:return l=i.sent(),s=Rt(null==l?void 0:l.vehicleQualifiers),c=s[0],u=s[1],Object.keys(n).forEach((function(e){Object.keys(u).includes(e)||(u[e]=[{id:n[e],name:n[e]}],Object.keys(n).forEach((function(t,n){e===t&&c.push({id:t,name:t,real_id:Object.keys(a)[n]})})))})),re(c),ce(u),G(!1),[2]}}))}))},showFieldLabels:q})};function Ft(e,t,n,a,l){return o(this,void 0,void 0,(function(){var o;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),o=r({groupId:t,productId:l},(s=n,Object.entries(s).reduce((function(e,t){var n;return r(r({},e),((n={})[t[0].toLowerCase()]=t[1],n))}),{}))),[4,Y.get(B.API_URL+"/"+e,o)];case 1:return[2,i.sent()];case 2:return i.sent(),a({message:"Error fetching list of labels"}),[2,[]];case 3:return[2]}var s}))}))}function Dt(e,t,n,a,l,s,c){return o(this,void 0,void 0,(function(){var o,u,d,f;return i(this,(function(i){switch(i.label){case 0:o=e.slice(0,Math.min(e.length,t+1)),u={},d=o.map((function(e,t){var i,s=t?o[t-1].name:null;t&&(u=r(r({},u),((i={})[""+s]=n[""+s],i)));var d=r(r({},l),{parents:Object.values(u||{})}),f=r({groupId:a,productId:c},d);return Y.get(B.API_URL+"/fitment/labels/"+encodeURIComponent(e.name),f)})),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,Promise.all(d)];case 2:return f=i.sent(),[2,o.reduce((function(e,t,n){var o;return r(r({},e),((o={})[t.name]=f[n].map(Bt),o))}),{})];case 3:return i.sent(),s({message:"Error fetching label data"}),[2,{}];case 4:return[2]}}))}))}function Mt(e,t,n,a,l,s,c,u){return o(this,void 0,void 0,(function(){var o;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),o=r(r({},n),{fitmentRuleId:c,groupId:a,parents:Object.values(l),productId:u}),[4,Y.get(B.API_URL+"/fitment/labels/"+encodeURIComponent(e[t].name),o)];case 1:return[2,i.sent().map(Bt)];case 2:return i.sent(),s({message:"Error fetching label data"}),[2,[]];case 3:return[2]}}))}))}function Bt(e){return{id:e.value,name:e.value,priority:e.priority}}var Vt="wsmFitmentSelectorWrapper_hide__3OAAI";module.exports=function(t){var n,o=t.autocommitDelay,i=void 0===o?2e3:o,a=t.className,l=void 0===a?"":a,s=t.clearButtonText,c=void 0===s?"Clear":s,d=t.filter,f=void 0===d?{}:d,p=t.orientation,h=void 0===p?"horizontal":p,m=t.searchButtonText,v=void 0===m?"Search":m,g=t.selectedValues,y=void 0===g?null:g,b=t.styled,S=void 0===b||b,x=t.onSubmit,w=t.onDataLoaded,k=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["autocommitDelay","className","clearButtonText","filter","orientation","searchButtonText","selectedValues","styled","onSubmit","onDataLoaded"]),O=new URLSearchParams(window.location.search),E=e.useState(null),C=E[0],I=E[1],T=e.useState([]),N=T[0],L=T[1],_=e.useState(),A=_[0],R=_[1],j=e.useState(!1),P=j[0],F=j[1];e.useEffect((function(){var e=function(e){var t;return e.get("fitment")||(null===(t=JSON.parse(localStorage.getItem("sui-fitment-selector-v2")||"{}"))||void 0===t?void 0:t[0])||""}(O);!y&&N.length&&e?I(function(e,t){if(e.length&&t){var n=t.split("|");return e.reduce((function(e,t,o){var i;return r(r({},e),((i={})[t.name]=n[o],i))}),{})}}(N,e)):y&&I(y),N.length&&F(!0)}),[N,y]);return e.createElement(Pt,r({key:JSON.stringify(C),autocommitDelay:i,className:u((n={},n[Vt]=!P,n),l),clearButtonText:c,filter:f,orientation:h,searchButtonText:v,selectedValues:C,onDataLoaded:function(e,t,n){e&&n&&(L(e),R(n)),null==w||w(e,t,n)},styled:S,onSubmit:function(e){null==x||x(function(e,t,n){for(var r,o=[],i=function(e){if(t[e.name]&&n[e.name]){var i=null===(r=n[e.name].find((function(n){return n.id===t[e.name]})))||void 0===r?void 0:r.name;o.push({key:e.name,value:i})}},a=0,l=e;a<l.length;a++){i(l[a])}return o}(N,e,A).map((function(e){return e.value})).join("|"))}},k))};
|
|
22
|
+
//# sourceMappingURL=index.js.map
|