@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
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).FitmentSelectorWrapper=t(e.React)}(this,(function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}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=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function c(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 u(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 d="object"==typeof s&&s&&s.Object===Object&&s,f="object"==typeof self&&self&&self.Object===Object&&self,p=d||f||Function("return this")(),h=function(){return p.Date.now()},m=p.Symbol,g=Object.prototype,v=g.hasOwnProperty,y=g.toString,b=m?m.toStringTag:void 0;var S=function(e){var t=v.call(e,b),n=e[b];try{e[b]=void 0;var r=!0}catch(e){}var o=y.call(e);return r&&(t?e[b]=n:delete e[b]),o},x=Object.prototype.toString;var k=function(e){return x.call(e)},w=m?m.toStringTag:void 0;var E=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":w&&w in Object(e)?S(e):k(e)};var O=function(e){return null!=e&&"object"==typeof e};var C=function(e){return"symbol"==typeof e||O(e)&&"[object Symbol]"==E(e)},I=/^\s+|\s+$/g,T=/^[-+]0x[0-9a-f]+$/i,N=/^0b[01]+$/i,_=/^0o[0-7]+$/i,L=parseInt;var A=function(e){if("number"==typeof e)return e;if(C(e))return NaN;if(l(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=l(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(I,"");var n=N.test(e);return n||_.test(e)?L(e.slice(2),n?2:8):T.test(e)?NaN:+e},R=Math.max,j=Math.min;var P=function(e,t,n){var r,o,i,a,s,c,u=0,d=!1,f=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function m(t){var n=r,i=o;return r=o=void 0,u=t,a=e.apply(i,n)}function g(e){return u=e,s=setTimeout(y,t),d?m(e):a}function v(e){var n=e-c;return void 0===c||n>=t||n<0||f&&e-u>=i}function y(){var e=h();if(v(e))return b(e);s=setTimeout(y,function(e){var n=t-(e-c);return f?j(n,i-(e-u)):n}(e))}function b(e){return s=void 0,p&&r?m(e):(r=o=void 0,a)}function S(){var e=h(),n=v(e);if(r=arguments,o=this,c=e,n){if(void 0===s)return g(c);if(f)return clearTimeout(s),s=setTimeout(y,t),m(c)}return void 0===s&&(s=setTimeout(y,t)),a}return t=A(t)||0,l(n)&&(d=!!n.leading,i=(f="maxWait"in n)?R(A(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),S.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=c=o=s=void 0},S.flush=function(){return void 0===s?a:b(h())},S};const F={API_URL:"https://api.sunhammer.io",LIBRARY_NAME:"@partslogic/ui",STORY_BOOK_URL:"https://ui.sunhammer.io/"},D="object"==typeof window?window:{};D.partslogic=D.partslogic||{},D.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 M=F,B=function(){return D.partslogic.config},U="sui-fitment-selector-v2",V="optional-qualifiers",z="optional-qualifiers-for-url",q="dyn-selectedvq",H="dyn-selectedvq-realid";function W(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Y=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),W(o,d)?Array.isArray(o[d])?o[d].push(f):o[d]=[o[d],f]:o[d]=f}return o},X=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},$=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(X(r))+n;return Array.isArray(e[r])?e[r].map((function(e){return o+encodeURIComponent(X(e))})).join(t):o+encodeURIComponent(X(e[r]))})).join(t):r?encodeURIComponent(X(r))+n+encodeURIComponent(X(e)):""},J=c((function(e,t){t.decode=t.parse=Y,t.encode=t.stringify=$})),K={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=B(),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?"?"+J.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]}}))}))}},G=c((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 Z="nativeSelect_styledSelect__2smv3",Q="nativeSelect_styledSelectVertical__1UgTs",ee="nativeSelect_fieldLabel__2yh3m",te="nativeSelect_hasNotSelected__2vBXX",ne="nativeSelect_optionItem__14pSl",re=0,oe=function(t){var n,o,i,a=t.className,l=void 0===a?"":a,s=t.styled,c=t.isVertical,u=t.options,d=t.value,f=t.disabled,p=void 0!==f&&f,h=t.name,m=t.onChange,g=t.optionalLabelReference,v=void 0===g?"":g,y=t.labelName,b=e.useState((function(){return re+=1}))[0],S=""===v?"Sui-FitmentSelector--select-wrapper":"Sui-FitmentSelector--select-wrapper Sui-FitmentSelector--select-wrapper-"+v,x=y?d?((n={})[te]=!1,n["Sui-FitmentSelector--label_has_selected"]=!0,n):((o={})[te]=!0,o["Sui-FitmentSelector--label_has_not_selected"]=!0,o):{};return e.createElement("div",{className:G(""+S,{"Sui-FitmentSelector--select-wrapper-selected":d})},y&&e.createElement("label",{className:G(ee,"Sui-FitmentSelector--label"),htmlFor:"sui-fitment-selector-"+b},y),e.createElement("select",{id:"sui-fitment-selector-"+b,className:G(r((i={},i[Z+" SuiSelect"]=s,i[Q]=s&&c,i),x),l,"sui-fitment-selector-"+d),disabled:p,value:d,onChange:m,role:"listbox"},e.createElement("option",{key:0,value:"",role:"option","aria-selected":!1,className:G("Sui-FitmentSelector--initial-option")},y?"Select an option":h),e.createElement("option",{key:-1,disabled:!0,role:"option","aria-selected":!1},"---"),u.map((function(t){return e.createElement("option",{id:String(t.id),role:"option",key:t.id,value:t.id,"aria-selected":d===t.id,className:ne},t.name)}))))},ie="fitmentSelector_root__2AC1X",ae="fitmentSelector_vertical__2KZmh",le="fitmentSelector_actions__2qHCc",se="fitmentSelector_actionsVertical__6M5SY",ce="fitmentSelector_styledSearchBtn__1G-X4",ue="fitmentSelector_styledSearchBtnVertical__xcipP",de="fitmentSelector_styledClearBtn__LH10d";function fe(e){var t={};return e.forEach((function(e,n){n.match(/^vq\[[a-z_]+\]$/)&&(t[n]=e)})),t}var pe=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:""},he=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:pe(o[t.name],a[t.name])||"",onChange:function(e){return i(t.name,e)},options:a[t.name],label:t}):e.createElement(oe,{key:t.name,onChange:function(e){return i(t.name,e.currentTarget.value)},value:pe(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})}))},me=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:pe(o[t.name],a[t.name])||"",onChange:function(e){return i(t.name,e)},options:a[t.name],label:t}):e.createElement(oe,{key:t.name,onChange:function(e){return i(t.name,e.currentTarget.value,t.real_id)},optionalLabelReference:t.real_id,value:pe(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})}))},ge=function(t){var n,l,s,c,u,d=t.autocommit,f=t.autocommitDelay,p=void 0===f?2e3:f,h=t.className,m=void 0===h?"":h,g=t.clearButtonText,v=void 0===g?"Clear":g,y=t.components,b=t.id,S=t.labels,x=t.labelsData,k=t.orientation,w=void 0===k?"horizontal":k,E=t.onChange,O=t.onSubmit,C=t.onClearCb,I=t.optionalLabels,T=void 0===I?[]:I,N=t.optionalLabelsData,_=t.onOptionalLabelsChange,L=t.optionalLabelsTitle,A=void 0===L?"Optional Fields":L,R=t.searchButtonText,j=void 0===R?"Search":R,F=t.selectedValues,D=t.styled,M=void 0!==D&&D,B=t.isLoadingOptionalLabel,W=void 0!==B&&B,Y=t.showFieldLabels,X=void 0===Y||Y,$=function(e,t){var n;void 0===t&&(t=!1);var r=Object.keys(fe(e)).length>0&&fe(e),o=(null===(n=JSON.parse(localStorage.getItem(V)||"{}"))||void 0===n?void 0:n[0])||{};return t?o:r||o}(new URLSearchParams(window.location.search),!0),J=(null===(u=JSON.parse(localStorage.getItem(z)||"{}"))||void 0===u?void 0:u[0])||{},K=e.useState(F),Z=K[0],Q=K[1],ee=e.useState($),te=ee[0],ne=ee[1],re=e.useState(J),oe=re[0],pe=re[1],ge=e.useRef(null);e.useEffect((function(){Object.keys(F||{}).length===S.length&&S.length>1&&Se(ve(F,S))}),[S]),e.useEffect((function(){var e=r({},x),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}(F,e,a(S));Q(t)}),[F,x]),e.useEffect((function(){ne($),pe(J)}),[N]),e.useEffect((function(){var e=JSON.parse(localStorage.getItem(q)||"{}")||{},t=JSON.parse(localStorage.getItem(H)||"{}")||{};Object.keys(e).length?(ne(e),pe(t)):(ne($),pe(J))}),[W]),e.useEffect((function(){T.length>0&&setTimeout((function(){var e=ye(),t=document.querySelector(".Sui-FitmentSelector--select-wrapper-"+e),n=document.querySelector(".Sui-FitmentSelector--select-wrapper-"+e+" select");t&&(t.scrollIntoView(),n.focus())}),200)}),[T]);var ye=function(){var e=JSON.parse(localStorage.getItem("nextOptLabelIdx"));return T[e].real_id},be=e.useCallback(P((function(e){return o(void 0,void 0,void 0,(function(){return i(this,(function(t){return xe(e,oe),[2]}))}))}),p),[p,S]),Se=function(e,t){t?(localStorage.setItem(V,JSON.stringify([te])),localStorage.setItem(z,JSON.stringify([oe]))):localStorage.setItem(U,JSON.stringify([e]))},xe=function(e,t){Se(ve(e,S)),Se("",t),localStorage.setItem(q,"{}"),localStorage.setItem(H,"{}"),null==O||O(e,t)},ke="vertical"===w,we=null==y?void 0:y.select,Ee=Z||{},Oe=te||{};return S.length?e.createElement("div",{id:b,ref:ge,className:G(ie,(n={},n[ae]=ke,n),m)},e.createElement(he,{labels:S,CustomSelect:we,currentSelectedValues:Ee,onLabelChange:function(e,t){return o(void 0,void 0,void 0,(function(){var n,o,l,s,c,u,f,p;return i(this,(function(i){for(n=a(S),o=n.findIndex((function(t){return t.name===e}))+1,l=n.slice(o),s=r(r({},Z),((p={})[e]=t,p)),c=0,u=l;c<u.length;c++)f=u[c],delete s[f.name];return be.cancel(),Q(s),null==E||E(e,s),d&&Object.keys(s).length===S.length&&be(s),[2]}))}))},labelsData:x,styled:M,isVertical:ke,isOptionalLabel:!1}),W&&"Loading optional fields...",Object.keys(Z||{}).length>=S.length&&T.length?e.createElement(e.Fragment,null,e.createElement("p",{className:"Sui-FitmentSelector--optional-fields-label"},A),e.createElement(me,{labels:T,CustomSelect:we,currentSelectedValues:Oe,onLabelChange:function(e,t,n){return o(void 0,void 0,void 0,(function(){var o,a,l,s,c,u,f;return i(this,(function(i){return o=r(r({},te),((u={})[e]=t,u)),a=r(r({},oe),((f={})[n]=t,f)),l=T.findIndex((function(e){return e.real_id===n})),localStorage.setItem("nextOptLabelIdx",""+(l+1)),""===t&&(delete a[n],delete o[e]),s=T.map((function(e){return e.real_id})),Object.keys(a).forEach((function(e){s.includes(e)||delete a[e]})),c=T.map((function(e){return e.name})),Object.keys(o).forEach((function(e){c.includes(e)||delete o[e]})),be.cancel(),ne(o),pe(a),null==_||_(e,n,o,a),d&&Object.keys(o).length===T.length&&be(o),[2]}))}))},labelsData:N,styled:M,isVertical:ke,isOptionalLabel:!0,showFieldLabels:X})):null,d?null:e.createElement("div",{className:G(le,(l={},l[se]=M&&ke,l),"Sui-FitmentSelector--actions")},e.createElement("button",{type:"button",className:G((s={},s["SuiButton primary "+ce]=M,s[ue]=M&&ke,s),"Sui-FitmentSelector--searchBtn"),disabled:Object.keys(Ee).length<S.length,onClick:function(){xe(Z,oe)}},j),e.createElement("button",{type:"button",className:G((c={},c["SuiButton secondary "+de]=M,c),"Sui-FitmentSelector--clearBtn"),disabled:0===Object.keys(Ee).length,onClick:function(){null==E||E(null,null),null==C||C(),Q(null),localStorage.removeItem(U),localStorage.removeItem(V),localStorage.removeItem(z),localStorage.removeItem(q),localStorage.removeItem(H)}},v))):null};function ve(e,t){return t.reduce((function(t,n){return e[n.name]?a(t,[e[n.name]]):t}),[]).join("|")}var ye={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}},be=c((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=ye.CAMELCASE,c=ye.SAME,u=ye.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})),Se=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,xe=/\n/g,ke=/^\s*/,we=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Ee=/^:\s*/,Oe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ce=/^[;\s]*/,Ie=/^\s+|\s+$/g,Te="";function Ne(e){return e?e.replace(Ie,Te):Te}var _e=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(xe);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(ke)}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;Te!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,Te===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(we);if(t){if(d(),!s(Ee))return l("property missing ':'");var n=s(Oe),r=e({type:"declaration",property:Ne(t[0].replace(Se,Te)),value:n?Ne(n[0].replace(Se,Te)):Te});return s(Ce),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},Le=c((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))}})),Ae=c((function(e,t){var n=s&&s.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var r=n(_e);t.default=function(e,t){var n={};return e&&"string"==typeof e?((0,r.default)(e,(function(e,r){e&&r&&(n[(0,Le.camelCase)(e,t)]=r)})),n):n}})).default;var Re={reactCompat:!0};var je=n.default.version.split(".")[0]>=16,Pe=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var Fe={PRESERVE_CUSTOM_ATTRIBUTES:je,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=Ae(e,Re)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!Pe.has(e.name)},elementsWithNoTextChildren:Pe},De=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],be.isCustomAttribute(t))a[t]=r;else if(o=Me(n=t.toLowerCase()))switch(i=be.getPropertyInfo(o),"checked"!==o&&"value"!==o||l||(o=Me("default"+n)),a[o]=r,i&&i.type){case be.BOOLEAN:a[o]=!0;break;case be.OVERLOADED_BOOLEAN:""===r&&(a[o]=!0)}else Fe.PRESERVE_CUSTOM_ATTRIBUTES&&(a[t]=r);return Fe.setStyleProp(e.style,a),a};function Me(e){return be.possibleStandardNames[e]}var Be=Fe.setStyleProp,Ue=Fe.canTextBeChildOfNode;function Ve(e){return Fe.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&Fe.isCustomComponent(e.name,e.attribs)}var ze=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,g=0,v=t.length;g<v;g++)if(o=t[g],h&&f(a=r.replace(o)))v>1&&(a=u(a,{key:a.key||g})),p.push(a);else if("text"!==o.type){switch(l=o.attribs,Ve(o)?Be(l.style,l):l&&(l=De(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}v>1&&(l.key=g),p.push(d(o.name,l,s))}else{if((i=!o.data.trim().length)&&o.parent&&!Ue(o.parent))continue;if(m&&i)continue;p.push(o.data)}return 1===p.length?p[0]:p},qe="html",He="head",We="body",Ye=/<([a-zA-Z]+[0-9]?)/,Xe=/<head[^]*>/i,$e=/<body[^]*>/i,Je=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},Ke=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};if("function"==typeof window.DOMParser){var Ge=new window.DOMParser;Je=Ke=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),Ge.parseFromString(e,"text/html")}}if(document.implementation){var Ze=document.implementation.createHTMLDocument();Je=function(e,t){return t?(Ze.documentElement.querySelector(t).innerHTML=e,Ze):(Ze.documentElement.innerHTML=e,Ze)}}var Qe,et=document.createElement("template");et.content&&(Qe=function(e){return et.innerHTML=e,et.content.childNodes});var tt,nt=function(e){var t,n,r,o,i=e.match(Ye);switch(i&&i[1]&&(t=i[1].toLowerCase()),t){case qe:return n=Ke(e),Xe.test(e)||(r=n.querySelector(He))&&r.parentNode.removeChild(r),$e.test(e)||(r=n.querySelector(We))&&r.parentNode.removeChild(r),n.querySelectorAll(qe);case He:case We:return o=(n=Je(e)).querySelectorAll(t),$e.test(e)&&Xe.test(e)?o[0].parentNode.childNodes:o;default:return Qe?Qe(e):(r=Je(e,We).querySelector(We)).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"}(tt||(tt={}));tt.Root,tt.Text,tt.Directive,tt.Comment,tt.Script,tt.Style,tt.Tag,tt.CDATA,tt.Doctype;class rt{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 yt(this,e)}}class ot extends rt{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}}class it extends ot{constructor(){super(...arguments),this.type=tt.Text}get nodeType(){return 3}}class at extends ot{constructor(){super(...arguments),this.type=tt.Comment}get nodeType(){return 8}}class lt extends ot{constructor(e,t){super(t),this.name=e,this.type=tt.Directive}get nodeType(){return 1}}class st extends rt{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 ct extends st{constructor(){super(...arguments),this.type=tt.CDATA}get nodeType(){return 4}}class ut extends st{constructor(){super(...arguments),this.type=tt.Root}get nodeType(){return 9}}class dt extends st{constructor(e,t,n=[],r=("script"===e?tt.Script:"style"===e?tt.Style:tt.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 ft(e){return(t=e).type===tt.Tag||t.type===tt.Script||t.type===tt.Style;var t}function pt(e){return e.type===tt.CDATA}function ht(e){return e.type===tt.Text}function mt(e){return e.type===tt.Comment}function gt(e){return e.type===tt.Directive}function vt(e){return e.type===tt.Root}function yt(e,t=!1){let n;if(ht(e))n=new it(e.data);else if(mt(e))n=new at(e.data);else if(ft(e)){const r=t?bt(e.children):[],o=new dt(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(pt(e)){const r=t?bt(e.children):[],o=new ct(r);r.forEach((e=>e.parent=o)),n=o}else if(vt(e)){const r=t?bt(e.children):[],o=new ut(r);r.forEach((e=>e.parent=o)),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),n=o}else{if(!gt(e))throw new Error(`Not implemented yet: ${e.type}`);{const t=new lt(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 bt(e){const t=e.map((e=>yt(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 St={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class xt{constructor(e,t,n){this.dom=[],this.root=new ut(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=St),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:St,this.elementCB=null!=n?n:null}onparserinit(e){this.parser=e}onreset(){this.dom=[],this.root=new ut(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?tt.Tag:void 0,r=new dt(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)}ontext(e){const{lastNode:t}=this;if(t&&t.type===tt.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{const t=new it(e);this.addNode(t),this.lastNode=t}}oncomment(e){if(this.lastNode&&this.lastNode.type===tt.Comment)return void(this.lastNode.data+=e);const t=new at(e);this.addNode(t),this.lastNode=t}oncommentend(){this.lastNode=null}oncdatastart(){const e=new it(""),t=new ct([e]);this.addNode(t),e.parent=t,this.lastNode=e}oncdataend(){this.lastNode=null}onprocessinginstruction(e,t){const n=new lt(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 kt,wt=["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"],Et=u(Object.freeze({__proto__:null,DomHandler:xt,default:xt,Node:rt,DataNode:ot,Text:it,Comment:at,ProcessingInstruction:lt,NodeWithChildren:st,CDATA:ct,Document:ut,Element:dt,isTag:ft,isCDATA:pt,isText:ht,isComment:mt,isDirective:gt,isDocument:vt,hasChildren:function(e){return Object.prototype.hasOwnProperty.call(e,"children")},cloneNode:yt})),Ot=wt,Ct=Et.Comment,It=Et.Element,Tt=Et.ProcessingInstruction,Nt=Et.Text,_t={},Lt=0,At=Ot.length;Lt<At;Lt++)kt=Ot[Lt],_t[kt.toLowerCase()]=kt;function Rt(e){for(var t,n={},r=0,o=e.length;r<o;r++)n[(t=e[r]).name]=t.value;return n}function jt(e){var t=function(e){return _t[e]}(e=e.toLowerCase());return t||e}var Pt={formatAttributes:Rt,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 It(jt(s.nodeName),Rt(s.attributes))).children=e(s.childNodes,l);break;case 3:l=new Nt(s.nodeValue);break;case 8:l=new Ct(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 Tt(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,Ft=/<(![a-zA-Z\s]+)>/;var Dt=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,n=e.match(Ft);return n&&n[1]&&(t=n[1]),Pt(nt(e),null,t)},Mt=u(Object.freeze({__proto__:null,default:Dt}));Mt="function"==typeof Mt.default?Mt.default:Mt;var Bt={lowerCaseAttributeNames:!1};function Ut(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:ze(Mt(e,(t=t||{}).htmlparser2||Bt),t)}Ut.domToReact=ze,Ut.htmlToDOM=Mt,Ut.attributesToProps=De,Ut.Element=Et.Element;var Vt=Ut;Ut.default=Vt;e.createContext(null);function zt(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 qt="fitmentSelectorWrapper_error__MWhGI";function Ht(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,K.get(M.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 Wt(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 K.get(M.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(Xt),o))}),{})];case 3:return i.sent(),s({message:"Error fetching label data"}),[2,{}];case 4:return[2]}}))}))}function Yt(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,K.get(M.API_URL+"/fitment/labels/"+encodeURIComponent(e[t].name),o)];case 1:return[2,i.sent().map(Xt)];case 2:return i.sent(),s({message:"Error fetching label data"}),[2,[]];case 3:return[2]}}))}))}function Xt(e){return{id:e.value,name:e.value,priority:e.priority}}return 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,g=t.groupId,v=t.id,y=t.orientation,b=void 0===y?"horizontal":y,S=t.onChange,x=t.onDataLoaded,k=t.onSubmit,w=t.onClearCb,E=t.searchButtonText,O=void 0===E?"Search":E,C=t.selectedValues,I=void 0===C?null:C,T=t.styled,N=void 0!==T&&T,_=t.optionalLabels,L=t.optionalLabelsData,A=t.onError,R=t.qualifiersStatus,j=void 0===R?"disabled":R,F=t.selectedFacets,D=void 0===F?{}:F,B=t.optionalLabelsTitle,V=void 0===B?"Add optional details:":B,z=t.fitmentRuleId,W=t.showFieldLabels,Y=t.productId,X=t.sku,$=e.useState({message:""}),J=$[0],G=$[1],Z=e.useState(!1),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({}),de=ue[0],fe=ue[1],pe=e.useState(I),he=pe[0],me=pe[1],ve=e.useState(""),ye=ve[0],be=ve[1],Se=e.useRef(!1);e.useEffect((function(){me(I)}),[I]),e.useEffect((function(){var e;(null==_?void 0:_.length)>0&&ae(_),(null===(e=Object.keys(L||{}))||void 0===e?void 0:e.length)>0&&fe(L)}),[_,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,Ht("fitment/labels",g,m,G,Y)];case 1:return t=o.sent(),e&&re(t),n=Object.keys(I||{}).length,[4,Wt(t,n,I,g,m,G,Y)];case 2:return r=o.sent(),e&&ce(r),[2]}}))}))}(),function(){e=!1}}),[]);var xe=e.useCallback(P((function(e,t,n){x(e,t,n)}),150),[]);e.useEffect((function(){x&&(ne.length||Object.keys(se).length)&&(xe.cancel(),xe(ne,ie,se))}),[ne,se]),e.useEffect((function(){A&&J.message&&A(J)}),[J]);var ke,we,Ee,Oe=function(){var e;null==S||S(null,null),me({}),ce(((e={})[ne[0].name]=se[ne[0].name],e)),ae([])},Ce=(ke=function(e,t){var r=Object.keys(he).length===ne.length+ie.length;!Se.current&&(n&&r||!n)&&(null==k||k(e,t))},we=[ie,he],Ee=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(){Ee.current=ke}),a([ke],we)),e.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ee.current.apply(void 0,e)}),[Ee]));return g||console.error("Please send a groupId"),J.message?e.createElement("p",{className:qt},J.message):e.createElement(ge,{autocommit:n,autocommitDelay:s,className:u,clearButtonText:f,id:v,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,v,y,b,x,k,w,E,O,C,I;return i(this,(function(i){switch(i.label){case 0:if(!t&&!e)return Oe(),[2];for(n=a(ne),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 me(s),p=!1,1===Object.keys(t).length&&""===Object.values(t).find((function(e){return""===e}))&&(p=!0),l?p?[3,2]:[4,Yt(n,o,m,g,t,G,z,Y)]:[3,3];case 1:h=i.sent(),v=r(r({},se),((I={})[n[o].name]=h,I)),ce(v),i.label=2;case 2:return[3,5];case 3:return"enabled"!==j?[3,5]:(ee(!0),ae([]),fe({}),y=Object.keys(s).reduce((function(e,t){return a(e,[s[t]])}),[]).join("|"),be(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:Y},b),{sku:X}),[4,K.get(M.API_URL+"/products",x)]);case 4:k=i.sent(),w=zt(null==k?void 0:k.vehicleQualifiers),E=w[0],O=w[1],ae(E),fe(O),ee(!1),i.label=5;case 5:return null==S||S(e,t),[2]}}))}))},onSubmit:Ce,searchButtonText:O,styled:N,onClearCb:w,components:p,labels:ne,optionalLabels:ie,optionalLabelsData:de,optionalLabelsTitle:V,labelsData:se,selectedValues:he,isLoadingOptionalLabel:Q,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(U)||"{}"))||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(q,JSON.stringify(n)),localStorage.setItem(H,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))}))})),ee(!0),ae([]),fe({}),[4,K.get(M.API_URL+"/products",r(r(r({limit:1,page:1,fitment:e||ye},t),o),{sku:X}))];case 1:return l=i.sent(),s=zt(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]})})))})),ae(c),fe(u),ee(!1),[2]}}))}))},showFieldLabels:W})}}));
|
|
22
|
+
//# sourceMappingURL=index.umd.js.map
|