@ubnt/store.core 9.36.0-alpha.9 → 9.36.0-beta.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 +167 -548
- package/lib/_virtual/_virtual_multi-entry.js +40 -48
- package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
- package/lib/_virtual/_virtual_multi-entry.mjs +40 -48
- package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
- package/lib/assets/clients.svg +2 -9
- package/lib/assets/clients2.svg +10 -0
- package/lib/assets/crestron.svg +3 -0
- package/lib/{components/ModelCompareV3/assets/WiFi/flagship.jpg.js → assets/icons/menu/icon-globe.svg.js} +6 -6
- package/lib/assets/icons/menu/icon-globe.svg.js.map +1 -0
- package/lib/assets/icons/menu/icon-globe.svg.mjs +3 -0
- package/lib/assets/icons/menu/icon-globe.svg.mjs.map +1 -0
- package/lib/assets/industrial.jpg +0 -0
- package/lib/assets/keyFeatures/{clients_v2.svg.js → clients.svg.js} +2 -2
- package/lib/assets/keyFeatures/clients.svg.js.map +1 -0
- package/lib/assets/keyFeatures/clients.svg.mjs +3 -0
- package/lib/assets/keyFeatures/clients.svg.mjs.map +1 -0
- package/lib/assets/keyFeatures/{phased_array_v2.svg.js → phased_array.svg.js} +1 -1
- package/lib/assets/keyFeatures/phased_array.svg.js.map +1 -0
- package/lib/assets/keyFeatures/{phased_array_v2.svg.mjs → phased_array.svg.mjs} +1 -1
- package/lib/assets/keyFeatures/phased_array.svg.mjs.map +1 -0
- package/lib/assets/logoUnifi.svg +2 -10
- package/lib/assets/ucgMax.jpg +0 -0
- package/lib/assets/ucgMax2.jpg +0 -0
- package/lib/assets/udmPro.jpg +0 -0
- package/lib/assets/udmPro2.jpg +0 -0
- package/lib/assets/udmProMax.jpg +0 -0
- package/lib/assets/udmProMax2.jpg +0 -0
- package/lib/assets/udmProSpecial.jpg +0 -0
- package/lib/assets/udmProSpecial2.jpg +0 -0
- package/lib/components/Accordion/Accordion.js +4 -4
- package/lib/components/Avatar/Avatar.js +2 -2
- package/lib/components/Button/Button.js +5 -5
- package/lib/components/Button/CartButton.js +2 -2
- package/lib/components/CardSection/Card/Card.js +6 -6
- package/lib/components/CardSection/CardSection.js +2 -2
- package/lib/components/CartIcon/CartIcon.js +2 -2
- package/lib/components/CategoryTabs/CategoryTabs.styles.d.ts +1 -1
- package/lib/components/CategoryTabs/CategoryTabs.styles.js +3 -2
- package/lib/components/CategoryTabs/CategoryTabs.styles.js.map +1 -1
- package/lib/components/CategoryTabs/CategoryTabs.styles.mjs +3 -2
- package/lib/components/CategoryTabs/CategoryTabs.styles.mjs.map +1 -1
- package/lib/components/Checkbox/Checkbox.js +4 -4
- package/lib/components/CloserLookSection/CloserLookSection.js +11 -11
- package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.js +5 -5
- package/lib/components/Compare/Compare.styles.d.ts +5 -5
- package/lib/components/Container/Container.d.ts +1 -1
- package/lib/components/Container/Container.js +4 -5
- package/lib/components/Container/Container.js.map +1 -1
- package/lib/components/Container/Container.mjs +4 -5
- package/lib/components/Container/Container.mjs.map +1 -1
- package/lib/components/CustomImage/CustomImage.js +12 -12
- package/lib/components/Explore/Explore.js +5 -5
- package/lib/components/Explore/ExploreData.js +9 -9
- package/lib/components/Explore/ExploreData.js.map +1 -1
- package/lib/components/Explore/ExploreData.mjs +9 -9
- package/lib/components/Explore/ExploreData.mjs.map +1 -1
- package/lib/components/FeaturesSection_deprecated/Features/Features.js +2 -2
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +22 -22
- package/lib/components/Footer/Footer.js +2 -2
- package/lib/components/Footer/hooks/useFooterContent.js +5 -5
- package/lib/components/Gallery/Gallery.context.js +17 -17
- package/lib/components/Gallery/Gallery.js +9 -9
- package/lib/components/Gallery/GalleryControls/GalleryControls.js +4 -4
- package/lib/components/Gallery/GalleryItem/GalleryItem.js +8 -8
- package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.js +8 -8
- package/lib/components/GridGallery/GridGallery.js +8 -8
- package/lib/components/GridGallery/GridModal/GridModal.js +6 -6
- package/lib/components/Header/AccountFrame/AccountFrame.js +11 -11
- package/lib/components/Header/AccountFrame/Mobile/Mobile.js +4 -4
- package/lib/components/Header/AccountMenu/AccountMenu.js +23 -33
- package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
- package/lib/components/Header/AccountMenu/AccountMenu.mjs +5 -15
- package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
- package/lib/components/Header/CartModal/Empty/Empty.js +3 -3
- package/lib/components/Header/CartModalV2/CartModal.js +5 -5
- package/lib/components/Header/CartModalV2/Item/Item.js +4 -4
- package/lib/components/Header/Header.js +49 -50
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/Header.mjs +12 -13
- package/lib/components/Header/Header.mjs.map +1 -1
- package/lib/components/Header/Header.styles.d.ts +12 -7
- package/lib/components/Header/Header.styles.js +32 -10
- package/lib/components/Header/Header.styles.js.map +1 -1
- package/lib/components/Header/Header.styles.mjs +31 -10
- package/lib/components/Header/Header.styles.mjs.map +1 -1
- package/lib/components/Header/Header.types.d.ts +5 -29
- package/lib/components/Header/Header.types.js +1 -2
- package/lib/components/Header/Header.types.js.map +1 -1
- package/lib/components/Header/Header.types.mjs +1 -2
- package/lib/components/Header/Header.types.mjs.map +1 -1
- package/lib/components/Header/IsolatedHeader.d.ts +0 -1
- package/lib/components/Header/IsolatedHeader.js +53 -53
- package/lib/components/Header/IsolatedHeader.js.map +1 -1
- package/lib/components/Header/IsolatedHeader.mjs +48 -49
- package/lib/components/Header/IsolatedHeader.mjs.map +1 -1
- package/lib/components/Header/LanguageFrame/LanguageFrame.js +6 -6
- package/lib/components/Header/MenuItem/MenuItem.styles.d.ts +1 -1
- package/lib/components/Header/MenuItem/MenuItem.styles.js +3 -3
- package/lib/components/Header/MenuItem/MenuItem.styles.js.map +1 -1
- package/lib/components/Header/MenuItem/MenuItem.styles.mjs +3 -3
- package/lib/components/Header/MenuItem/MenuItem.styles.mjs.map +1 -1
- package/lib/components/Header/MenuItem/MenuItem.types.d.ts +0 -1
- package/lib/components/Header/Navigation/Carousel/Carousel.js +5 -5
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.js +12 -12
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.d.ts +1 -1
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.js +5 -7
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.js.map +1 -1
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.mjs +5 -7
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.mjs.map +1 -1
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js +6 -6
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.d.ts +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.d.ts +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +109 -116
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +104 -111
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +0 -9
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js +1 -15
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs +2 -13
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +6 -12
- package/lib/components/Header/Overlay/Overlay.js +3 -3
- package/lib/components/Header/ProHeader/ProHeader.d.ts +5 -9
- package/lib/components/Header/ProHeader/ProHeader.js +194 -275
- package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.mjs +174 -254
- package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +25 -30
- package/lib/components/Header/ProHeader/ProHeader.styles.js +66 -119
- package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs +65 -112
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
- package/lib/components/Header/translations/ar.json.js +1 -4
- package/lib/components/Header/translations/ar.json.js.map +1 -1
- package/lib/components/Header/translations/ar.json.mjs +2 -4
- package/lib/components/Header/translations/ar.json.mjs.map +1 -1
- package/lib/components/Header/translations/de.json.js +1 -4
- package/lib/components/Header/translations/de.json.js.map +1 -1
- package/lib/components/Header/translations/de.json.mjs +2 -4
- package/lib/components/Header/translations/de.json.mjs.map +1 -1
- package/lib/components/Header/translations/el.json.js +1 -4
- package/lib/components/Header/translations/el.json.js.map +1 -1
- package/lib/components/Header/translations/el.json.mjs +2 -4
- package/lib/components/Header/translations/el.json.mjs.map +1 -1
- package/lib/components/Header/translations/en.json.js +1 -7
- package/lib/components/Header/translations/en.json.js.map +1 -1
- package/lib/components/Header/translations/en.json.mjs +2 -6
- package/lib/components/Header/translations/en.json.mjs.map +1 -1
- package/lib/components/Header/translations/es.json.js +1 -4
- package/lib/components/Header/translations/es.json.js.map +1 -1
- package/lib/components/Header/translations/es.json.mjs +2 -4
- package/lib/components/Header/translations/es.json.mjs.map +1 -1
- package/lib/components/Header/translations/fr.json.js +1 -4
- package/lib/components/Header/translations/fr.json.js.map +1 -1
- package/lib/components/Header/translations/fr.json.mjs +2 -4
- package/lib/components/Header/translations/fr.json.mjs.map +1 -1
- package/lib/components/Header/translations/it.json.js +1 -4
- package/lib/components/Header/translations/it.json.js.map +1 -1
- package/lib/components/Header/translations/it.json.mjs +2 -4
- package/lib/components/Header/translations/it.json.mjs.map +1 -1
- package/lib/components/Header/translations/ja.json.js +1 -4
- package/lib/components/Header/translations/ja.json.js.map +1 -1
- package/lib/components/Header/translations/ja.json.mjs +2 -4
- package/lib/components/Header/translations/ja.json.mjs.map +1 -1
- package/lib/components/Header/translations/pt-BR.json.js +1 -4
- package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
- package/lib/components/Header/translations/pt-BR.json.mjs +2 -4
- package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
- package/lib/components/Header/translations/zh-Hans.json.js +1 -4
- package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
- package/lib/components/Header/translations/zh-Hans.json.mjs +2 -4
- package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.js +1 -4
- package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.mjs +2 -4
- package/lib/components/Header/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/components/Hero/Hero.js +5 -5
- package/lib/components/Hero/Hero.styles.d.ts +2 -2
- package/lib/components/HeroFadeGallery/HeroFadeGallery.styles.d.ts +1 -1
- package/lib/components/HeroVideo/HeroVideo.js +5 -5
- package/lib/components/HowToUseSection/HowToUseSection.styles.d.ts +2 -2
- package/lib/components/ImageCarousel/ImageCarousel.js +29 -29
- package/lib/components/ImageSequence/ImageSequence.js +8 -8
- package/lib/components/LandingPage/Cards/Card/Card.js +4 -4
- package/lib/components/LandingPage/Cards/Cards.js +14 -14
- package/lib/components/LandingPage/Cards/Cards.js.map +1 -1
- package/lib/components/LandingPage/Cards/Cards.mjs +3 -3
- package/lib/components/LandingPage/Cards/Cards.mjs.map +1 -1
- package/lib/components/LandingPage/LandingPage.js +2 -2
- package/lib/components/LandingPagePro/LandingPagePro.js +13 -13
- package/lib/components/LandingPagePro/LandingPagePro.styles.d.ts +1 -1
- package/lib/components/LandingPageSearch/LandingPageSearch.js +2 -2
- package/lib/components/LandingPageSearch/Modal/Modal.js +9 -9
- package/lib/components/LandingPageSidebar/LandingPageSidebar.js +12 -12
- package/lib/components/LayoutRenderer/LayoutRenderer.js +8 -8
- package/lib/components/LayoutRenderer/LayoutRenderer.styles.d.ts +1 -1
- package/lib/components/LayoutRendererV1/LayoutRenderer.styles.d.ts +3 -3
- package/lib/components/LayoutRendererV2/LayoutRenderer.styles.d.ts +3 -3
- package/lib/components/LearnMoreLink/LearnMoreLink.js +1 -1
- package/lib/components/LearnMoreLink/LearnMoreLink.js.map +1 -1
- package/lib/components/LearnMoreLink/LearnMoreLink.mjs +1 -1
- package/lib/components/LearnMoreLink/LearnMoreLink.mjs.map +1 -1
- package/lib/components/MeetUniFiVideoPlayer/EpisodeCard/EpisodeCard.js +7 -7
- package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.js +18 -18
- package/lib/components/MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.js +2 -2
- package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.js +3 -3
- package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.js +3 -3
- package/lib/components/MicrositeHero/MicrositeHero.js +18 -18
- package/lib/components/MicrositeIntroductionBlock/MicrositeIntroductionBlock.js +4 -4
- package/lib/components/MicrositeMediaGrid/MicrositeMediaGrid.js +9 -9
- package/lib/components/MicrositeProductGrid/MicrositeProductGrid.js +8 -8
- package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlockWrap.js +2 -2
- package/lib/components/MicrositeSectionWrap/MicrositeSectionWrap.styles.d.ts +1 -1
- package/lib/components/MicrositeSubSubNavigation/MicrositeSubSubNavigation.js +3 -3
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +12 -12
- package/lib/components/Microsites/MicrositePageContext.js +2 -2
- package/lib/components/Microsites/MicrositeProductPage.js +3 -3
- package/lib/components/Microsites/context/MicrositeProductPageContext.js +3 -3
- package/lib/components/MobileModal/MobileModal.js +5 -5
- package/lib/components/MobileModal/MobileModal.js.map +1 -1
- package/lib/components/MobileModal/MobileModal.mjs +1 -1
- package/lib/components/MobileModal/MobileModal.mjs.map +1 -1
- package/lib/{assets/icons → components/MobileModal/assets}/arrowDown.svg.js +1 -1
- package/lib/components/MobileModal/assets/arrowDown.svg.mjs +3 -0
- package/lib/components/Modal/Modal.js +3 -3
- package/lib/components/ModelCompareV3/ModelCompareOverflowScrollButton.js +3 -3
- package/lib/components/ModelCompareV3/ModelComparePropertyValueGridItem.js +2 -2
- package/lib/components/ModelCompareV3/ModelCompareV3.js +14 -14
- package/lib/components/ModelCompareV3/ModelCompareV3.types.d.ts +2 -5
- package/lib/components/ModelCompareV3/ProductGroupsGrid.js +3 -3
- package/lib/components/ModelCompareV3/ScrollGroup/ScrollGroup.js +5 -5
- package/lib/components/ModelCompareV3/ScrollGroup/context.js +3 -3
- package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupItem.js +8 -8
- package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupSetScroll.js +2 -2
- package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupTo.js +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/StickyGrid.js +7 -7
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridBody.js +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridHeader.js +5 -5
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridItem.js +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/context.js +3 -3
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Switching/industrial.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Switching/industrial.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/clients.svg.js +1 -1
- package/lib/components/ModelCompareV3/assets/clients.svg.mjs +2 -2
- package/lib/components/{ResourceCalculatorV1/assets/consoles/efg.png.js → ModelCompareV3/assets/crestron.svg.js} +6 -6
- package/lib/components/ModelCompareV3/assets/crestron.svg.js.map +1 -0
- package/lib/components/ModelCompareV3/assets/crestron.svg.mjs +3 -0
- package/lib/components/ModelCompareV3/assets/crestron.svg.mjs.map +1 -0
- package/lib/components/ModelCompareV3/data/CloudGateways.js +12 -12
- package/lib/components/ModelCompareV3/data/CloudGateways.mjs +8 -8
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js +3 -2
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js.map +1 -1
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs +3 -2
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.js +10 -3
- package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.js.map +1 -1
- package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.mjs +10 -3
- package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/Switching.js +3 -2
- package/lib/components/ModelCompareV3/data/Switching.js.map +1 -1
- package/lib/components/ModelCompareV3/data/Switching.mjs +3 -2
- package/lib/components/ModelCompareV3/data/Switching.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/index.d.ts +46 -49
- package/lib/components/ModelCompareV3/data/index.js +92 -101
- package/lib/components/ModelCompareV3/data/index.js.map +1 -1
- package/lib/components/ModelCompareV3/data/index.mjs +92 -101
- package/lib/components/ModelCompareV3/data/index.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/aggregation.js +7 -0
- package/lib/components/ModelCompareV3/data/products/aggregation.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/aggregation.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/aggregation.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.js +7 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.js +7 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.js +7 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/express.js +2 -2
- package/lib/components/ModelCompareV3/data/products/express.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/express.mjs +2 -2
- package/lib/components/ModelCompareV3/data/products/express.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js +7 -0
- package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/industrial.js +1 -1
- package/lib/components/ModelCompareV3/data/products/industrial.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/missionCritical.js +7 -0
- package/lib/components/ModelCompareV3/data/products/missionCritical.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/missionCritical.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/missionCritical.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax16.js +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalMax16.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax16.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalMax16.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.js +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax24.js +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalMax24.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax24.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalMax24.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.js +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax48.js +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalMax48.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax48.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalMax48.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.js +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js +8 -0
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs +8 -0
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessional.js +7 -0
- package/lib/components/ModelCompareV3/data/products/switchesProfessional.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js +10 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs +10 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesStandard.js +7 -0
- package/lib/components/ModelCompareV3/data/products/switchesStandard.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js +2 -2
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +2 -2
- package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.js +3 -3
- package/lib/components/ModelCompareV3/data/products/udmPro.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/udmPro.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.js +3 -3
- package/lib/components/ModelCompareV3/data/products/udmProMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/udmProMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +3 -3
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udr.js +4 -40
- package/lib/components/ModelCompareV3/data/products/udr.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udr.mjs +4 -20
- package/lib/components/ModelCompareV3/data/products/udr.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udw.js +2 -3
- package/lib/components/ModelCompareV3/data/products/udw.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udw.mjs +2 -3
- package/lib/components/ModelCompareV3/data/products/udw.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/properties/clientDevices.js +1 -1
- package/lib/components/ModelCompareV3/data/properties/clientDevices.mjs +1 -1
- package/lib/components/ModelCompareV3/data/properties/connectedDevices.js +1 -1
- package/lib/components/ModelCompareV3/data/properties/connectedDevices.mjs +1 -1
- package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.d.ts +2 -0
- package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.js +18 -0
- package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.js.map +1 -0
- package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.mjs +10 -0
- package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.mjs.map +1 -0
- package/lib/components/ModelCompareV3/data/properties/index.d.ts +1 -0
- package/lib/components/ModelCompareV3/data/properties/index.js +2 -0
- package/lib/components/ModelCompareV3/data/properties/index.js.map +1 -1
- package/lib/components/ModelCompareV3/data/properties/index.mjs +1 -0
- package/lib/components/ModelCompareV3/data/properties/index.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/ar.json.js +3 -1
- package/lib/components/ModelCompareV3/translations/ar.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/ar.json.mjs +3 -1
- package/lib/components/ModelCompareV3/translations/ar.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/de.json.js +3 -1
- package/lib/components/ModelCompareV3/translations/de.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/de.json.mjs +3 -1
- package/lib/components/ModelCompareV3/translations/de.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/el.json.js +3 -1
- package/lib/components/ModelCompareV3/translations/el.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/el.json.mjs +3 -1
- package/lib/components/ModelCompareV3/translations/el.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/en.json.js +9 -62
- package/lib/components/ModelCompareV3/translations/en.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/en.json.mjs +9 -62
- package/lib/components/ModelCompareV3/translations/en.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/es.json.js +3 -1
- package/lib/components/ModelCompareV3/translations/es.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/es.json.mjs +3 -1
- package/lib/components/ModelCompareV3/translations/es.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/fr.json.js +3 -1
- package/lib/components/ModelCompareV3/translations/fr.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/fr.json.mjs +3 -1
- package/lib/components/ModelCompareV3/translations/fr.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/it.json.js +3 -1
- package/lib/components/ModelCompareV3/translations/it.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/it.json.mjs +3 -1
- package/lib/components/ModelCompareV3/translations/it.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/ja.json.js +3 -1
- package/lib/components/ModelCompareV3/translations/ja.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/ja.json.mjs +3 -1
- package/lib/components/ModelCompareV3/translations/ja.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/pt-BR.json.js +3 -1
- package/lib/components/ModelCompareV3/translations/pt-BR.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs +3 -1
- package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/useModelCompareTranslation.d.ts +2 -2
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.js +3 -1
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs +3 -1
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js +3 -1
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs +3 -1
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/components/Pagination/Pagination.js +3 -3
- package/lib/components/PriceRangeSlider/PriceRangeSlider.js +16 -16
- package/lib/components/ProductCard/ProductCard.js +8 -8
- package/lib/components/ProductCardPopup/ProductCardPopup.js +8 -8
- package/lib/components/ProductCompare/ProductCompare.js +7 -7
- package/lib/components/ProductDetails/ProductDetails.js +5 -5
- package/lib/components/ProductGrid/ProductGrid.js +10 -10
- package/lib/components/ProductKeyFeatures/ProductKeyFeatures.js +3 -3
- package/lib/components/ProductSectionNavigation/ProductSectionNavigation.styles.d.ts +1 -1
- package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.styles.d.ts +1 -1
- package/lib/components/ProductSectionTabs/ProductSectionTabs.js +2 -2
- package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.d.ts +1 -1
- package/lib/components/ProductWizard/Options/Options.js +3 -3
- package/lib/components/ProductWizard/ProductWizard.js +2 -2
- package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.js +5 -5
- package/lib/components/ProgressCircle/ProgressCircle.js +4 -4
- package/lib/components/QuantityControls/QuantityControls.js +4 -4
- package/lib/components/RelatedProducts/RelatedProducts.js +5 -5
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js +17 -313
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs +17 -311
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.js +36 -36
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.d.ts +2 -3
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js +0 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs +0 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js +39 -125
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.mjs +34 -120
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.d.ts +2 -16
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.js +12 -54
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.mjs +11 -50
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/assets/ArrowLeftPrimary.svg.js +5 -5
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/assets/ArrowRightPrimary.svg.js +5 -5
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +5 -5
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CheckboxSection.js +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +4 -4
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/SliderSection.js +3 -3
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +7 -7
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js +7 -7
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/PoeCalculator.js +9 -9
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerConfigurator.js +10 -10
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +17 -17
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.js +2 -2
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +8 -7
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.mjs +2 -1
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.mjs.map +1 -1
- package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.d.ts +1 -1
- package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.js +1 -3
- package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.js.map +1 -0
- package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.mjs +1 -3
- package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.mjs.map +1 -0
- package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.styles.d.ts +0 -1
- package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.styles.js +7 -10
- package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.js.map +1 -0
- package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.styles.mjs +7 -10
- package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.mjs.map +1 -0
- package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.types.d.ts +0 -1
- package/lib/components/ResourceCalculatorV1/components/index.d.ts +1 -0
- package/lib/components/ResourceCalculatorV1/components/index.js +5 -0
- package/lib/components/{Header/LogoIcon → ResourceCalculatorV1/components}/index.js.map +1 -1
- package/lib/components/{Header/LogoIcon → ResourceCalculatorV1/components}/index.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/translations/en.json.js +4 -6
- package/lib/components/ResourceCalculatorV1/translations/en.json.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/translations/en.json.mjs +4 -6
- package/lib/components/ResourceCalculatorV1/translations/en.json.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/translations/useResourceCalculatorTranslation.d.ts +2 -2
- package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.js +5 -5
- package/lib/components/ScrollWrapper/ScrollWrapper.js +17 -17
- package/lib/components/Search/Input/Input.d.ts +1 -1
- package/lib/components/Search/Input/Input.js +8 -8
- package/lib/components/Search/Input/Input.js.map +1 -1
- package/lib/components/Search/Input/Input.mjs +4 -4
- package/lib/components/Search/Input/Input.mjs.map +1 -1
- package/lib/components/Search/Input/Input.styles.js +1 -0
- package/lib/components/Search/Input/Input.styles.js.map +1 -1
- package/lib/components/Search/Input/Input.styles.mjs +1 -0
- package/lib/components/Search/Input/Input.styles.mjs.map +1 -1
- package/lib/components/Search/Input/Input.types.d.ts +2 -3
- package/lib/components/Search/Modal/Modal.js +3 -3
- package/lib/components/StorageSliders/Slider/Slider.js +3 -3
- package/lib/components/StorageSliders/StorageSliders.context.js +19 -19
- package/lib/components/StorageSliders/StorageSliders.js +4 -4
- package/lib/components/Tooltip/Tooltip.js +5 -5
- package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.js +7 -7
- package/lib/components/VariantSelector/Variant/Variant.js +40 -40
- package/lib/components/VariantSelector/VariantSelector.js +16 -16
- package/lib/components/VideoPlayerNew/VideoPlayer.js +19 -19
- package/lib/components/index.d.ts +0 -3
- package/lib/components/index.js +30 -36
- package/lib/components/index.js.map +1 -1
- package/lib/components/index.mjs +30 -36
- package/lib/components/index.mjs.map +1 -1
- package/lib/constants/icons/generic/carouselArrowRight.svg.js +5 -5
- package/lib/constants/icons/generic/index.js +3 -3
- package/lib/constants/icons/header/account.svg.js +5 -5
- package/lib/constants/icons/header/globe.svg.js +5 -5
- package/lib/constants/icons/header/index.js +9 -9
- package/lib/constants/icons/header/logoUnifi.svg.js +5 -5
- package/lib/constants/icons/menu/index.d.ts +0 -3
- package/lib/constants/icons/menu/index.js +0 -27
- package/lib/constants/icons/menu/index.js.map +1 -1
- package/lib/constants/icons/menu/index.mjs +0 -6
- package/lib/constants/icons/menu/index.mjs.map +1 -1
- package/lib/constants/icons/options/colors/black.svg.js +5 -5
- package/lib/constants/icons/options/colors/index.js +3 -3
- package/lib/constants/icons/options/styles/black.svg.js +5 -5
- package/lib/constants/icons/options/styles/index.js +3 -3
- package/lib/constants/keyFeatureIcons.js +2 -2
- package/lib/constants/keyFeatureIcons.js.map +1 -1
- package/lib/constants/keyFeatureIcons.mjs +2 -2
- package/lib/constants/keyFeatureIcons.mjs.map +1 -1
- package/lib/constants/optionIcons.js +6 -6
- package/lib/constants/optionIcons.mjs +4 -4
- package/lib/constants/proStoreCategories/mapping/filters.d.ts +0 -16
- package/lib/constants/proStoreCategories/mapping/filters.js +0 -16
- package/lib/constants/proStoreCategories/mapping/filters.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/filters.mjs +0 -16
- package/lib/constants/proStoreCategories/mapping/filters.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.d.ts +3 -2
- package/lib/constants/proStoreCategories/mapping/index.js +32 -30
- package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.mjs +32 -30
- package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/mapping.d.ts +0 -5
- package/lib/constants/proStoreCategories/mapping/redirects.js +1 -1
- package/lib/constants/proStoreCategories/mapping/redirects.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/redirects.mjs +1 -1
- package/lib/constants/proStoreCategories/mapping/redirects.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/uisp.d.ts +1 -0
- package/lib/constants/proStoreCategories/mapping/uisp.js +1 -0
- package/lib/constants/proStoreCategories/mapping/uisp.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/uisp.mjs +1 -0
- package/lib/constants/proStoreCategories/mapping/uisp.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.js +2 -3
- package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.mjs +2 -3
- package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.js +1 -2
- package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.mjs +1 -2
- package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.js +2 -3
- package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.mjs +2 -3
- package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.js +3 -2
- package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.mjs +3 -2
- package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.js +1 -2
- package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.mjs +1 -2
- package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js +1 -5
- package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.mjs +2 -5
- package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.js +1 -2
- package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.mjs +1 -2
- package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.js +1 -2
- package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.mjs +1 -2
- package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js +1 -2
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +1 -2
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +1 -5
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +2 -5
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +1 -5
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +2 -5
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/constants/proStoreFilters/mapping.d.ts +7 -33
- package/lib/constants/proStoreFilters/mapping.js +14 -108
- package/lib/constants/proStoreFilters/mapping.js.map +1 -1
- package/lib/constants/proStoreFilters/mapping.mjs +14 -108
- package/lib/constants/proStoreFilters/mapping.mjs.map +1 -1
- package/lib/constants/shopify/keyFeatureIcons.js +11 -11
- package/lib/constants/shopify/keyFeatureIcons.js.map +1 -1
- package/lib/constants/shopify/keyFeatureIcons.mjs +11 -11
- package/lib/constants/shopify/keyFeatureIcons.mjs.map +1 -1
- package/lib/constants/theme.js +0 -4
- package/lib/constants/theme.js.map +1 -1
- package/lib/constants/theme.mjs +0 -4
- package/lib/constants/theme.mjs.map +1 -1
- package/lib/contexts/MenuContext/context.js +51 -53
- package/lib/contexts/MenuContext/context.js.map +1 -1
- package/lib/contexts/MenuContext/context.mjs +20 -22
- package/lib/contexts/MenuContext/context.mjs.map +1 -1
- package/lib/contexts/MenuContext/mapping.js.map +1 -1
- package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
- package/lib/contexts/MenuContext/types.js.map +1 -1
- package/lib/contexts/MenuContext/types.mjs.map +1 -1
- package/lib/contexts/MenuContext/utils.d.ts +1 -6
- package/lib/contexts/MenuContext/utils.js +0 -16
- package/lib/contexts/MenuContext/utils.js.map +1 -1
- package/lib/contexts/MenuContext/utils.mjs +1 -16
- package/lib/contexts/MenuContext/utils.mjs.map +1 -1
- package/lib/contexts/index.d.ts +0 -1
- package/lib/contexts/index.js +0 -2
- package/lib/contexts/index.js.map +1 -1
- package/lib/contexts/index.mjs +0 -2
- package/lib/contexts/index.mjs.map +1 -1
- package/lib/helpers/proStoreCategories.js +2 -2
- package/lib/helpers/ux.d.ts +1 -9
- package/lib/helpers/ux.js +0 -15
- package/lib/helpers/ux.js.map +1 -1
- package/lib/helpers/ux.mjs +1 -15
- package/lib/helpers/ux.mjs.map +1 -1
- package/lib/hooks/useHasTouch.js +3 -3
- package/lib/hooks/useHddRetentionCalculator.js +5 -5
- package/lib/hooks/useHorizontalScroll.js +2 -2
- package/lib/hooks/useLockBodyScrollCustom.js +3 -3
- package/lib/hooks/useScrollToY.js +2 -2
- package/lib/hooks/useTestMediaElementVolumeSetter.js +3 -3
- package/lib/hooks/useTranslation.js +6 -6
- package/lib/types/product.js.map +1 -1
- package/lib/types/product.mjs.map +1 -1
- package/lib/utils/money/constants.d.ts +26 -4
- package/lib/utils/money/constants.js +39 -6
- package/lib/utils/money/constants.js.map +1 -1
- package/lib/utils/money/constants.mjs +38 -7
- package/lib/utils/money/constants.mjs.map +1 -1
- package/lib/utils/money/format.js +14 -5
- package/lib/utils/money/format.js.map +1 -1
- package/lib/utils/money/format.mjs +15 -6
- package/lib/utils/money/format.mjs.map +1 -1
- package/lib/utils/money/index.js +3 -1
- package/lib/utils/money/index.js.map +1 -1
- package/lib/utils/money/index.mjs +1 -1
- package/lib/utils/money/misc.js +7 -1
- package/lib/utils/money/misc.js.map +1 -1
- package/lib/utils/money/misc.mjs +7 -1
- package/lib/utils/money/misc.mjs.map +1 -1
- package/lib/utils/productSort.js.map +1 -1
- package/lib/utils/productSort.mjs.map +1 -1
- package/package.json +1 -1
- package/lib/assets/aggregation.png +0 -0
- package/lib/assets/bullet.png +0 -0
- package/lib/assets/camera-special-devices.png +0 -0
- package/lib/assets/cloud-gateway-overview.png +0 -0
- package/lib/assets/compact-switching.png +0 -0
- package/lib/assets/compact.png +0 -0
- package/lib/assets/consolidatedSpecialDevices.svg +0 -5
- package/lib/assets/digital-signage.png +0 -0
- package/lib/assets/dome-turret.png +0 -0
- package/lib/assets/door-access.png +0 -0
- package/lib/assets/doorAccess.svg +0 -5
- package/lib/assets/education.jpg +0 -0
- package/lib/assets/efg.png +0 -0
- package/lib/assets/enterprise-scale.png +0 -0
- package/lib/assets/enterprise.jpg +0 -0
- package/lib/assets/ev-charging.png +0 -0
- package/lib/assets/flagship.jpg +0 -0
- package/lib/assets/flexible-outdoor.jpg +0 -0
- package/lib/assets/gbe-1u-2.5and10.png +0 -0
- package/lib/assets/gbe-1u.png +0 -0
- package/lib/assets/hospitality.jpg +0 -0
- package/lib/assets/how-it-works.jpg +0 -0
- package/lib/assets/icon-location-pin.svg +0 -5
- package/lib/assets/icons/arrowDown.svg.mjs +0 -3
- package/lib/assets/icons/menu/icon-location-pin.svg.js +0 -27
- package/lib/assets/icons/menu/icon-location-pin.svg.js.map +0 -1
- package/lib/assets/icons/menu/icon-location-pin.svg.mjs +0 -3
- package/lib/assets/icons/menu/icon-location-pin.svg.mjs.map +0 -1
- package/lib/assets/icons/zoomOut.svg.js +0 -27
- package/lib/assets/icons/zoomOut.svg.js.map +0 -1
- package/lib/assets/icons/zoomOut.svg.mjs +0 -3
- package/lib/assets/icons/zoomOut.svg.mjs.map +0 -1
- package/lib/assets/industrial2.jpg +0 -0
- package/lib/assets/keyFeatures/clients_v2.svg +0 -3
- package/lib/assets/keyFeatures/clients_v2.svg.js.map +0 -1
- package/lib/assets/keyFeatures/clients_v2.svg.mjs +0 -3
- package/lib/assets/keyFeatures/clients_v2.svg.mjs.map +0 -1
- package/lib/assets/keyFeatures/phased_array_v2.svg.js.map +0 -1
- package/lib/assets/keyFeatures/phased_array_v2.svg.mjs.map +0 -1
- package/lib/assets/large-scale.png +0 -0
- package/lib/assets/managed-voip.png +0 -0
- package/lib/assets/mega-capacity.jpg +0 -0
- package/lib/assets/mobile-routing.png +0 -0
- package/lib/assets/nextai-camera.jpg +0 -0
- package/lib/assets/nextai-cyber.jpg +0 -0
- package/lib/assets/overview.svg +0 -3
- package/lib/assets/premium-audio.png +0 -0
- package/lib/assets/ptz.png +0 -0
- package/lib/assets/retail.jpg +0 -0
- package/lib/assets/sd-wan-sase.jpg +0 -0
- package/lib/assets/security-overview.png +0 -0
- package/lib/assets/site-manager.jpg +0 -0
- package/lib/assets/stadium.jpg +0 -0
- package/lib/assets/switching-overview.png +0 -0
- package/lib/assets/tco-calculator.jpg +0 -0
- package/lib/assets/ucg-max.png +0 -0
- package/lib/assets/unifi-drive.png +0 -0
- package/lib/assets/video-recorders.png +0 -0
- package/lib/assets/wall.jpg +0 -0
- package/lib/assets/wifi-bridging.png +0 -0
- package/lib/assets/wifi-flagship.png +0 -0
- package/lib/assets/wifi-integrated.png +0 -0
- package/lib/assets/wifi-mega-capacity.png +0 -0
- package/lib/assets/wifi-outdoor.png +0 -0
- package/lib/assets/wifi-overview.png +0 -0
- package/lib/assets/wifi-wall.png +0 -0
- package/lib/assets/zoomOut.svg +0 -3
- package/lib/components/Header/LogoIcon/LogoIcon.d.ts +0 -7
- package/lib/components/Header/LogoIcon/LogoIcon.js +0 -46
- package/lib/components/Header/LogoIcon/LogoIcon.js.map +0 -1
- package/lib/components/Header/LogoIcon/LogoIcon.mjs +0 -36
- package/lib/components/Header/LogoIcon/LogoIcon.mjs.map +0 -1
- package/lib/components/Header/LogoIcon/index.d.ts +0 -1
- package/lib/components/Header/LogoIcon/index.js +0 -6
- package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.js.map +0 -1
- package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.mjs.map +0 -1
- package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.js.map +0 -1
- package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.mjs.map +0 -1
- package/lib/components/MicrositeHeader/MicrositeHeader.d.ts +0 -2
- package/lib/components/MicrositeHeader/MicrositeHeader.js +0 -30
- package/lib/components/MicrositeHeader/MicrositeHeader.js.map +0 -1
- package/lib/components/MicrositeHeader/MicrositeHeader.mjs +0 -28
- package/lib/components/MicrositeHeader/MicrositeHeader.mjs.map +0 -1
- package/lib/components/MicrositeHeader/MicrositeHeader.styles.d.ts +0 -2
- package/lib/components/MicrositeHeader/MicrositeHeader.types.d.ts +0 -7
- package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.d.ts +0 -2
- package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.js +0 -139
- package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.js.map +0 -1
- package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.mjs +0 -130
- package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.mjs.map +0 -1
- package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.d.ts +0 -59
- package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.js +0 -424
- package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.js.map +0 -1
- package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.mjs +0 -389
- package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.mjs.map +0 -1
- package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.types.d.ts +0 -21
- package/lib/components/MicrositeHeader/components/DropdownMenu/index.d.ts +0 -1
- package/lib/components/MicrositeHeader/components/DropdownMenu/index.js +0 -6
- package/lib/components/MicrositeHeader/components/DropdownMenu/index.js.map +0 -1
- package/lib/components/MicrositeHeader/components/DropdownMenu/index.mjs +0 -3
- package/lib/components/MicrositeHeader/components/DropdownMenu/index.mjs.map +0 -1
- package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.d.ts +0 -2
- package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.d.ts +0 -22
- package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.js +0 -148
- package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.js.map +0 -1
- package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.mjs +0 -126
- package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.mjs.map +0 -1
- package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.types.d.ts +0 -12
- package/lib/components/MicrositeHeader/components/FirstLevelMenu/index.d.ts +0 -1
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.d.ts +0 -7
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.js +0 -258
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.js.map +0 -1
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.mjs +0 -247
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.mjs.map +0 -1
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.d.ts +0 -36
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.js +0 -236
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.js.map +0 -1
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.mjs +0 -214
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.mjs.map +0 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.d.ts +0 -9
- package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.js +0 -48
- package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.js.map +0 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.mjs +0 -40
- package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.mjs.map +0 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.d.ts +0 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.js +0 -6
- package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.js.map +0 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.mjs +0 -3
- package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.mjs.map +0 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.d.ts +0 -6
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.js +0 -82
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.js.map +0 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.mjs +0 -80
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.mjs.map +0 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.d.ts +0 -31
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.js +0 -211
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.js.map +0 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.mjs +0 -189
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.mjs.map +0 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.d.ts +0 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.js +0 -6
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.js.map +0 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.mjs +0 -3
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.mjs.map +0 -1
- package/lib/components/MicrositeHeader/components/Navigation/index.d.ts +0 -1
- package/lib/components/MicrositeHeader/components/Navigation/index.js +0 -7
- package/lib/components/MicrositeHeader/components/Navigation/index.js.map +0 -1
- package/lib/components/MicrositeHeader/components/Navigation/index.mjs +0 -3
- package/lib/components/MicrositeHeader/components/Navigation/index.mjs.map +0 -1
- package/lib/components/MicrositeHeader/components/SecondLevelMenu/SecondLevelMenu.d.ts +0 -2
- package/lib/components/MicrositeHeader/components/SecondLevelMenu/SecondLevelMenu.styles.d.ts +0 -13
- package/lib/components/MicrositeHeader/components/SecondLevelMenu/SecondLevelMenu.types.d.ts +0 -11
- package/lib/components/MicrositeHeader/components/SecondLevelMenu/index.d.ts +0 -1
- package/lib/components/MicrositeHeader/components/SiteMapColumns/SiteMapColumns.d.ts +0 -17
- package/lib/components/MicrositeHeader/components/SiteMapColumns/SiteMapColumns.styles.d.ts +0 -13
- package/lib/components/MicrositeHeader/components/SiteMapColumns/index.d.ts +0 -1
- package/lib/components/MicrositeHeader/index.d.ts +0 -1
- package/lib/components/MicrositeHeader/index.js +0 -6
- package/lib/components/MicrositeHeader/index.js.map +0 -1
- package/lib/components/MicrositeHeader/index.mjs +0 -3
- package/lib/components/MicrositeHeader/index.mjs.map +0 -1
- package/lib/components/ModelCompareV3/assets/WiFi/flagship.jpg.js.map +0 -1
- package/lib/components/ModelCompareV3/assets/WiFi/flagship.jpg.mjs +0 -3
- package/lib/components/ModelCompareV3/assets/WiFi/flagship.jpg.mjs.map +0 -1
- package/lib/components/ModelCompareV3/assets/WiFi/flexible-outdoor.jpg.js +0 -27
- package/lib/components/ModelCompareV3/assets/WiFi/flexible-outdoor.jpg.js.map +0 -1
- package/lib/components/ModelCompareV3/assets/WiFi/flexible-outdoor.jpg.mjs +0 -3
- package/lib/components/ModelCompareV3/assets/WiFi/flexible-outdoor.jpg.mjs.map +0 -1
- package/lib/components/ModelCompareV3/assets/WiFi/mega-capacity.jpg.js +0 -27
- package/lib/components/ModelCompareV3/assets/WiFi/mega-capacity.jpg.js.map +0 -1
- package/lib/components/ModelCompareV3/assets/WiFi/mega-capacity.jpg.mjs +0 -3
- package/lib/components/ModelCompareV3/assets/WiFi/mega-capacity.jpg.mjs.map +0 -1
- package/lib/components/ModelCompareV3/assets/WiFi/wall.jpg.js +0 -27
- package/lib/components/ModelCompareV3/assets/WiFi/wall.jpg.js.map +0 -1
- package/lib/components/ModelCompareV3/assets/WiFi/wall.jpg.mjs +0 -3
- package/lib/components/ModelCompareV3/assets/WiFi/wall.jpg.mjs.map +0 -1
- package/lib/components/ModelCompareV3/data/AggregationSwitching.d.ts +0 -2
- package/lib/components/ModelCompareV3/data/AggregationSwitching.js +0 -24
- package/lib/components/ModelCompareV3/data/AggregationSwitching.js.map +0 -1
- package/lib/components/ModelCompareV3/data/AggregationSwitching.mjs +0 -22
- package/lib/components/ModelCompareV3/data/AggregationSwitching.mjs.map +0 -1
- package/lib/components/ModelCompareV3/data/Ptz.d.ts +0 -2
- package/lib/components/ModelCompareV3/data/Ptz.js +0 -13
- package/lib/components/ModelCompareV3/data/Ptz.js.map +0 -1
- package/lib/components/ModelCompareV3/data/Ptz.mjs +0 -11
- package/lib/components/ModelCompareV3/data/Ptz.mjs.map +0 -1
- package/lib/components/ModelCompareV3/data/WiFi.d.ts +0 -2
- package/lib/components/ModelCompareV3/data/WiFi.js +0 -23
- package/lib/components/ModelCompareV3/data/WiFi.js.map +0 -1
- package/lib/components/ModelCompareV3/data/WiFi.mjs +0 -21
- package/lib/components/ModelCompareV3/data/WiFi.mjs.map +0 -1
- package/lib/components/ModelCompareV3/data/products/wifiFlagship.d.ts +0 -2
- package/lib/components/ModelCompareV3/data/products/wifiFlagship.js +0 -70
- package/lib/components/ModelCompareV3/data/products/wifiFlagship.js.map +0 -1
- package/lib/components/ModelCompareV3/data/products/wifiFlagship.mjs +0 -62
- package/lib/components/ModelCompareV3/data/products/wifiFlagship.mjs.map +0 -1
- package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.d.ts +0 -2
- package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.js +0 -73
- package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.js.map +0 -1
- package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.mjs +0 -65
- package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.mjs.map +0 -1
- package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.d.ts +0 -2
- package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.js +0 -73
- package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.js.map +0 -1
- package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.mjs +0 -65
- package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.mjs.map +0 -1
- package/lib/components/ModelCompareV3/data/products/wifiWall.d.ts +0 -2
- package/lib/components/ModelCompareV3/data/products/wifiWall.js +0 -74
- package/lib/components/ModelCompareV3/data/products/wifiWall.js.map +0 -1
- package/lib/components/ModelCompareV3/data/products/wifiWall.mjs +0 -66
- package/lib/components/ModelCompareV3/data/products/wifiWall.mjs.map +0 -1
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.d.ts +0 -2
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js +0 -79
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js.map +0 -1
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs +0 -71
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs.map +0 -1
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.d.ts +0 -11
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js +0 -80
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js.map +0 -1
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs +0 -66
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs.map +0 -1
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.types.d.ts +0 -12
- package/lib/components/ProductTechSpecsV2/index.d.ts +0 -1
- package/lib/components/ProductTechSpecsV2/index.js +0 -6
- package/lib/components/ProductTechSpecsV2/index.js.map +0 -1
- package/lib/components/ProductTechSpecsV2/index.mjs +0 -3
- package/lib/components/ProductTechSpecsV2/index.mjs.map +0 -1
- package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.js.map +0 -1
- package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.mjs +0 -3
- package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.mjs.map +0 -1
- package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.js +0 -27
- package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.js.map +0 -1
- package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.mjs +0 -3
- package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.mjs.map +0 -1
- package/lib/constants/icons/menu/consolidatedSpecialDevices.svg.js +0 -27
- package/lib/constants/icons/menu/consolidatedSpecialDevices.svg.js.map +0 -1
- package/lib/constants/icons/menu/consolidatedSpecialDevices.svg.mjs +0 -3
- package/lib/constants/icons/menu/consolidatedSpecialDevices.svg.mjs.map +0 -1
- package/lib/constants/icons/menu/doorAccess.svg.js +0 -27
- package/lib/constants/icons/menu/doorAccess.svg.js.map +0 -1
- package/lib/constants/icons/menu/doorAccess.svg.mjs +0 -3
- package/lib/constants/icons/menu/doorAccess.svg.mjs.map +0 -1
- package/lib/constants/icons/menu/overview.svg.js +0 -27
- package/lib/constants/icons/menu/overview.svg.js.map +0 -1
- package/lib/constants/icons/menu/overview.svg.mjs +0 -3
- package/lib/constants/icons/menu/overview.svg.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/aggregation.png.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/aggregation.png.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/aggregation.png.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/aggregation.png.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/bullet.png.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/bullet.png.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/bullet.png.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/bullet.png.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/camera-special-devices.png.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/camera-special-devices.png.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/camera-special-devices.png.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/camera-special-devices.png.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/cloud-gateway-overview.png.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/cloud-gateway-overview.png.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/cloud-gateway-overview.png.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/cloud-gateway-overview.png.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/compact-switching.png.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/compact-switching.png.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/compact-switching.png.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/compact-switching.png.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/compact.png.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/compact.png.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/compact.png.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/compact.png.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/digital-signage.png.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/digital-signage.png.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/digital-signage.png.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/digital-signage.png.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/dome-turret.png.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/dome-turret.png.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/dome-turret.png.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/dome-turret.png.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/door-access.png.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/door-access.png.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/door-access.png.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/door-access.png.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/education.jpg.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/education.jpg.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/education.jpg.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/education.jpg.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/enterprise-scale.png.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/enterprise-scale.png.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/enterprise-scale.png.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/enterprise-scale.png.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/enterprise.jpg.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/enterprise.jpg.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/enterprise.jpg.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/enterprise.jpg.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/ev-charging.png.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/ev-charging.png.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/ev-charging.png.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/ev-charging.png.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/gbe-1u-2.5and10.png.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/gbe-1u-2.5and10.png.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/gbe-1u-2.5and10.png.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/gbe-1u-2.5and10.png.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/gbe-1u.png.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/gbe-1u.png.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/gbe-1u.png.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/gbe-1u.png.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/hospitality.jpg.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/hospitality.jpg.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/hospitality.jpg.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/hospitality.jpg.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/how-it-works.jpg.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/how-it-works.jpg.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/how-it-works.jpg.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/how-it-works.jpg.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/index.d.ts +0 -41
- package/lib/contexts/MicrositeMenuContext/assets/index.js +0 -45
- package/lib/contexts/MicrositeMenuContext/assets/index.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/index.mjs +0 -43
- package/lib/contexts/MicrositeMenuContext/assets/index.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/industrial.jpg.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/industrial.jpg.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/industrial.jpg.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/industrial.jpg.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/large-scale.png.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/large-scale.png.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/large-scale.png.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/large-scale.png.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/managed-voip.png.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/managed-voip.png.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/managed-voip.png.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/managed-voip.png.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/mobile-routing.png.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/mobile-routing.png.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/mobile-routing.png.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/mobile-routing.png.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/nextai-camera.jpg.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/nextai-camera.jpg.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/nextai-camera.jpg.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/nextai-camera.jpg.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/nextai-cyber.jpg.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/nextai-cyber.jpg.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/nextai-cyber.jpg.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/nextai-cyber.jpg.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/premium-audio.png.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/premium-audio.png.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/premium-audio.png.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/premium-audio.png.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/ptz.png.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/ptz.png.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/ptz.png.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/ptz.png.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/retail.jpg.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/retail.jpg.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/retail.jpg.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/retail.jpg.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/sd-wan-sase.jpg.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/sd-wan-sase.jpg.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/sd-wan-sase.jpg.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/sd-wan-sase.jpg.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/security-overview.png.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/security-overview.png.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/security-overview.png.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/security-overview.png.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/site-manager.jpg.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/site-manager.jpg.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/site-manager.jpg.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/site-manager.jpg.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/stadium.jpg.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/stadium.jpg.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/stadium.jpg.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/stadium.jpg.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/switching-overview.png.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/switching-overview.png.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/switching-overview.png.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/switching-overview.png.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/tco-calculator.jpg.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/tco-calculator.jpg.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/tco-calculator.jpg.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/tco-calculator.jpg.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/unifi-drive.png.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/unifi-drive.png.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/unifi-drive.png.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/unifi-drive.png.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/video-recorders.png.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/video-recorders.png.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/video-recorders.png.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/video-recorders.png.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/wifi-bridging.png.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/wifi-bridging.png.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/wifi-bridging.png.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/wifi-bridging.png.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/wifi-flagship.png.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/wifi-flagship.png.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/wifi-flagship.png.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/wifi-flagship.png.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/wifi-integrated.png.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/wifi-integrated.png.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/wifi-integrated.png.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/wifi-integrated.png.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/wifi-mega-capacity.png.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/wifi-mega-capacity.png.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/wifi-mega-capacity.png.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/wifi-mega-capacity.png.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/wifi-outdoor.png.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/wifi-outdoor.png.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/wifi-outdoor.png.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/wifi-outdoor.png.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/wifi-overview.png.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/wifi-overview.png.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/wifi-overview.png.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/wifi-overview.png.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/wifi-wall.png.js +0 -27
- package/lib/contexts/MicrositeMenuContext/assets/wifi-wall.png.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/assets/wifi-wall.png.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/assets/wifi-wall.png.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/context.d.ts +0 -36
- package/lib/contexts/MicrositeMenuContext/context.js +0 -100
- package/lib/contexts/MicrositeMenuContext/context.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/context.mjs +0 -96
- package/lib/contexts/MicrositeMenuContext/context.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/index.d.ts +0 -1
- package/lib/contexts/MicrositeMenuContext/index.js +0 -8
- package/lib/contexts/MicrositeMenuContext/index.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/index.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/index.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/mapping.d.ts +0 -16
- package/lib/contexts/MicrositeMenuContext/mapping.js +0 -792
- package/lib/contexts/MicrositeMenuContext/mapping.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/mapping.mjs +0 -716
- package/lib/contexts/MicrositeMenuContext/mapping.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/translations/ar.json.js +0 -8
- package/lib/contexts/MicrositeMenuContext/translations/ar.json.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/translations/ar.json.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/translations/ar.json.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/translations/de.json.js +0 -8
- package/lib/contexts/MicrositeMenuContext/translations/de.json.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/translations/de.json.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/translations/de.json.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/translations/el.json.js +0 -8
- package/lib/contexts/MicrositeMenuContext/translations/el.json.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/translations/el.json.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/translations/el.json.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/translations/en.json.js +0 -128
- package/lib/contexts/MicrositeMenuContext/translations/en.json.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/translations/en.json.mjs +0 -123
- package/lib/contexts/MicrositeMenuContext/translations/en.json.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/translations/es.json.js +0 -8
- package/lib/contexts/MicrositeMenuContext/translations/es.json.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/translations/es.json.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/translations/es.json.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/translations/fr.json.js +0 -8
- package/lib/contexts/MicrositeMenuContext/translations/fr.json.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/translations/fr.json.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/translations/fr.json.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/translations/it.json.js +0 -8
- package/lib/contexts/MicrositeMenuContext/translations/it.json.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/translations/it.json.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/translations/it.json.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/translations/ja.json.js +0 -8
- package/lib/contexts/MicrositeMenuContext/translations/ja.json.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/translations/ja.json.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/translations/ja.json.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/translations/pt-BR.json.js +0 -8
- package/lib/contexts/MicrositeMenuContext/translations/pt-BR.json.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/translations/pt-BR.json.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/translations/pt-BR.json.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/translations/zh-Hans.json.js +0 -8
- package/lib/contexts/MicrositeMenuContext/translations/zh-Hans.json.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/translations/zh-Hans.json.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/translations/zh-Hans.json.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/translations/zh-Hant-TW.json.js +0 -8
- package/lib/contexts/MicrositeMenuContext/translations/zh-Hant-TW.json.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/translations/zh-Hant-TW.json.mjs +0 -3
- package/lib/contexts/MicrositeMenuContext/translations/zh-Hant-TW.json.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/translations.d.ts +0 -7
- package/lib/contexts/MicrositeMenuContext/translations.js +0 -47
- package/lib/contexts/MicrositeMenuContext/translations.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/translations.mjs +0 -25
- package/lib/contexts/MicrositeMenuContext/translations.mjs.map +0 -1
- package/lib/contexts/MicrositeMenuContext/types.d.ts +0 -102
- package/lib/contexts/MicrositeMenuContext/types.js +0 -16
- package/lib/contexts/MicrositeMenuContext/types.js.map +0 -1
- package/lib/contexts/MicrositeMenuContext/types.mjs +0 -15
- package/lib/contexts/MicrositeMenuContext/types.mjs.map +0 -1
- /package/lib/assets/{clients_v2.svg → keyFeatures/clients.svg} +0 -0
- /package/lib/assets/keyFeatures/{phased_array_v2.svg → phased_array.svg} +0 -0
- /package/lib/{assets/icons → components/MobileModal/assets}/arrowDown.svg.js.map +0 -0
- /package/lib/{assets/icons → components/MobileModal/assets}/arrowDown.svg.mjs.map +0 -0
- /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.d.ts +0 -0
- /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.js +0 -0
- /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.js.map +0 -0
- /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.mjs +0 -0
- /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.mjs.map +0 -0
- /package/lib/components/{Header/LogoIcon → ResourceCalculatorV1/components}/index.mjs.map +0 -0
package/lib/helpers/ux.d.ts
CHANGED
|
@@ -23,16 +23,8 @@ export declare const scrollIntoView: (element: Element | null, duration?: number
|
|
|
23
23
|
* whenValueIsY: css`background: blue;`,
|
|
24
24
|
* })
|
|
25
25
|
*/
|
|
26
|
-
export declare function styledSwitch
|
|
26
|
+
export declare function styledSwitch(value: string, cases: Record<string, FlattenSimpleInterpolation | string>): string | FlattenSimpleInterpolation | undefined;
|
|
27
27
|
/**
|
|
28
28
|
* Get true page offset Y summing own and all parent offsets
|
|
29
29
|
*/
|
|
30
30
|
export declare const getTrueOffsetY: (el: HTMLElement) => number;
|
|
31
|
-
/**
|
|
32
|
-
* Get true element width and height, including all margins and paddings.
|
|
33
|
-
* Uses computed styles, and supports only margins that use px.
|
|
34
|
-
*/
|
|
35
|
-
export declare const getTrueSize: (el: HTMLElement) => {
|
|
36
|
-
width: number;
|
|
37
|
-
height: number;
|
|
38
|
-
};
|
package/lib/helpers/ux.js
CHANGED
|
@@ -44,22 +44,7 @@ const getTrueOffsetY = el => {
|
|
|
44
44
|
}
|
|
45
45
|
return offset;
|
|
46
46
|
};
|
|
47
|
-
const getTrueSize = el => {
|
|
48
|
-
if (typeof window === "undefined") {
|
|
49
|
-
return {
|
|
50
|
-
width: 0,
|
|
51
|
-
height: 0
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
const style = window.getComputedStyle(el);
|
|
55
|
-
const px = value => /^[0-9]+px$/.test(value) ? parseFloat(value) : 0;
|
|
56
|
-
return {
|
|
57
|
-
width: el.offsetWidth + px(style.marginLeft) + px(style.marginRight),
|
|
58
|
-
height: el.offsetHeight + px(style.marginTop) + px(style.marginBottom)
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
47
|
exports.getTrueOffsetY = getTrueOffsetY;
|
|
62
|
-
exports.getTrueSize = getTrueSize;
|
|
63
48
|
exports.scrollIntoView = scrollIntoView;
|
|
64
49
|
exports.scrollToY = scrollToY;
|
|
65
50
|
exports.styledSwitch = styledSwitch;
|
package/lib/helpers/ux.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ux.js","sources":["../../src/helpers/ux.ts"],"sourcesContent":["import type { FlattenSimpleInterpolation } from \"styled-components\";\n\nconst SCROLL_INTO_VIEW_DEFAULT_DURATION = 600;\n\n/**\n * Same as `window.scrollTo` but allows custom duration\n *\n * ! The scroll action won't be replaced if called multiple times\n * ? Instead `useScrollToY` hook will do that if needed\n */\nexport const scrollToY = (targetY: number, duration: number) => {\n let start: number;\n let previousTimeStamp: number;\n const initY = window.scrollY;\n const limit =\n document.documentElement.scrollHeight -\n document.documentElement.clientHeight;\n\n function step(timestamp: number) {\n start === undefined && (start = timestamp);\n const elapsed = timestamp - start;\n const progress = (timestamp - start) / duration;\n\n if (previousTimeStamp !== timestamp) {\n window.scroll({\n top: ((targetY > limit ? limit : targetY) - initY) * progress + initY,\n });\n }\n\n if (elapsed < duration) {\n previousTimeStamp = timestamp;\n window.requestAnimationFrame(step);\n } else {\n window.scroll({\n top: targetY,\n });\n }\n }\n\n window.requestAnimationFrame(step);\n};\n\n/**\n * Scrolls to the element on the page\n *\n * ! This will scroll the entire page, do not use for inline scrolling\n *\n * @todo use Element.scrollIntoView() or Element.scrollIntoViewIfNeeded() when it's fully supported\n */\nexport const scrollIntoView = (\n element: Element | null,\n duration = SCROLL_INTO_VIEW_DEFAULT_DURATION,\n) => {\n if (typeof window === \"undefined\") return;\n if (!element) return;\n\n // Get scroll y target position\n const elementWindowY = element.getBoundingClientRect().top + window.scrollY;\n // Scroll to the element minus one third of the window height (so that it's at an optimal eye level)\n const y = elementWindowY - window.innerHeight * (1 / 3);\n\n // Animate\n scrollToY(y, duration);\n};\n\n/**\n * For use in styled components to reduce switch noise\n *\n * @deprecated Let's replace this with native switches - if ain't broke...\n * @example styledSwitch(variableWithMultipleCases, {\n * whenValueIsX: css`background: red;`,\n * whenValueIsY: css`background: blue;`,\n * })\n */\nexport function styledSwitch
|
|
1
|
+
{"version":3,"file":"ux.js","sources":["../../src/helpers/ux.ts"],"sourcesContent":["import type { FlattenSimpleInterpolation } from \"styled-components\";\n\nconst SCROLL_INTO_VIEW_DEFAULT_DURATION = 600;\n\n/**\n * Same as `window.scrollTo` but allows custom duration\n *\n * ! The scroll action won't be replaced if called multiple times\n * ? Instead `useScrollToY` hook will do that if needed\n */\nexport const scrollToY = (targetY: number, duration: number) => {\n let start: number;\n let previousTimeStamp: number;\n const initY = window.scrollY;\n const limit =\n document.documentElement.scrollHeight -\n document.documentElement.clientHeight;\n\n function step(timestamp: number) {\n start === undefined && (start = timestamp);\n const elapsed = timestamp - start;\n const progress = (timestamp - start) / duration;\n\n if (previousTimeStamp !== timestamp) {\n window.scroll({\n top: ((targetY > limit ? limit : targetY) - initY) * progress + initY,\n });\n }\n\n if (elapsed < duration) {\n previousTimeStamp = timestamp;\n window.requestAnimationFrame(step);\n } else {\n window.scroll({\n top: targetY,\n });\n }\n }\n\n window.requestAnimationFrame(step);\n};\n\n/**\n * Scrolls to the element on the page\n *\n * ! This will scroll the entire page, do not use for inline scrolling\n *\n * @todo use Element.scrollIntoView() or Element.scrollIntoViewIfNeeded() when it's fully supported\n */\nexport const scrollIntoView = (\n element: Element | null,\n duration = SCROLL_INTO_VIEW_DEFAULT_DURATION,\n) => {\n if (typeof window === \"undefined\") return;\n if (!element) return;\n\n // Get scroll y target position\n const elementWindowY = element.getBoundingClientRect().top + window.scrollY;\n // Scroll to the element minus one third of the window height (so that it's at an optimal eye level)\n const y = elementWindowY - window.innerHeight * (1 / 3);\n\n // Animate\n scrollToY(y, duration);\n};\n\n/**\n * For use in styled components to reduce switch noise\n *\n * @deprecated Let's replace this with native switches - if ain't broke...\n * @example styledSwitch(variableWithMultipleCases, {\n * whenValueIsX: css`background: red;`,\n * whenValueIsY: css`background: blue;`,\n * })\n */\nexport function styledSwitch(\n value: string,\n cases: Record<string, FlattenSimpleInterpolation | string>,\n) {\n return cases[value];\n}\n\n/**\n * Get true page offset Y summing own and all parent offsets\n */\nexport const getTrueOffsetY = (el: HTMLElement) => {\n let offset = el.offsetTop;\n\n if (el.parentElement) {\n offset += getTrueOffsetY(el.parentElement);\n }\n\n return offset;\n};\n"],"names":["SCROLL_INTO_VIEW_DEFAULT_DURATION","scrollToY","targetY","duration","start","previousTimeStamp","initY","window","scrollY","limit","document","documentElement","scrollHeight","clientHeight","step","timestamp","elapsed","progress","scroll","top","requestAnimationFrame","scrollIntoView","element","elementWindowY","getBoundingClientRect","y","innerHeight","styledSwitch","value","cases","getTrueOffsetY","el","offset","offsetTop","parentElement"],"mappings":";;;AAEA,MAAMA,iCAAoC,GAAA,GAAA;AAQ7B,MAAAC,SAAA,GAAYA,CAACC,OAAA,EAAiBC,QAAqB,KAAA;EAC1D,IAAAC,KAAA;EACA,IAAAC,iBAAA;EACJ,MAAMC,QAAQC,MAAO,CAAAC,OAAA;EACrB,MAAMC,KACJ,GAAAC,QAAA,CAASC,eAAgB,CAAAC,YAAA,GACzBF,SAASC,eAAgB,CAAAE,YAAA;EAE3B,SAASC,KAAKC,SAAmB,EAAA;IAC/BX,KAAA,KAAU,WAAcA,KAAQ,GAAAW,SAAA,CAAA;IAChC,MAAMC,UAAUD,SAAY,GAAAX,KAAA;IACtB,MAAAa,QAAA,GAAA,CAAYF,YAAYX,KAAS,IAAAD,QAAA;IAEvC,IAAIE,sBAAsBU,SAAW,EAAA;MACnCR,MAAA,CAAOW,MAAO,CAAA;QACZC,OAAOjB,OAAU,GAAAO,KAAA,GAAQA,KAAQ,GAAAP,OAAA,IAAWI,SAASW,QAAW,GAAAX;MAAA,CACjE,CAAA;IACH;IAEA,IAAIU,UAAUb,QAAU,EAAA;MACFE,iBAAA,GAAAU,SAAA;MACpBR,MAAA,CAAOa,sBAAsBN,IAAI,CAAA;IAAA,CAC5B,MAAA;MACLP,MAAA,CAAOW,MAAO,CAAA;QACZC,GAAK,EAAAjB;MAAA,CACN,CAAA;IACH;EACF;EAEAK,MAAA,CAAOa,sBAAsBN,IAAI,CAAA;AACnC,CAAA;AASO,MAAMO,cAAiB,GAAAA,CAC5BC,OACA,EAAAnB,QAAA,GAAWH,iCACR,KAAA;EACC,IAAA,OAAOO,WAAW,WAAa,EAAA;EACnC,IAAI,CAACe,OAAS,EAAA;EAGd,MAAMC,cAAiB,GAAAD,OAAA,CAAQE,qBAAsB,CAAA,CAAA,CAAEL,MAAMZ,MAAO,CAAAC,OAAA;EAEpE,MAAMiB,CAAI,GAAAF,cAAA,GAAiBhB,MAAO,CAAAmB,WAAA,IAAe,CAAI,GAAA,CAAA,CAAA;EAGrDzB,SAAA,CAAUwB,GAAGtB,QAAQ,CAAA;AACvB,CAAA;AAWgB,SAAAwB,YAAAA,CACdC,OACAC,KACA,EAAA;EACA,OAAOA,MAAMD,KAAK,CAAA;AACpB;AAKa,MAAAE,cAAA,GAAkBC,EAAoB,IAAA;EACjD,IAAIC,SAASD,EAAG,CAAAE,SAAA;EAEhB,IAAIF,GAAGG,aAAe,EAAA;IACVF,MAAA,IAAAF,cAAA,CAAeC,GAAGG,aAAa,CAAA;EAC3C;EAEO,OAAAF,MAAA;AACT,CAAA;;;;"}
|
package/lib/helpers/ux.mjs
CHANGED
|
@@ -43,19 +43,5 @@ const getTrueOffsetY = el => {
|
|
|
43
43
|
}
|
|
44
44
|
return offset;
|
|
45
45
|
};
|
|
46
|
-
|
|
47
|
-
if (typeof window === "undefined") {
|
|
48
|
-
return {
|
|
49
|
-
width: 0,
|
|
50
|
-
height: 0
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
const style = window.getComputedStyle(el);
|
|
54
|
-
const px = value => /^[0-9]+px$/.test(value) ? parseFloat(value) : 0;
|
|
55
|
-
return {
|
|
56
|
-
width: el.offsetWidth + px(style.marginLeft) + px(style.marginRight),
|
|
57
|
-
height: el.offsetHeight + px(style.marginTop) + px(style.marginBottom)
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
export { getTrueOffsetY, getTrueSize, scrollIntoView, scrollToY, styledSwitch };
|
|
46
|
+
export { getTrueOffsetY, scrollIntoView, scrollToY, styledSwitch };
|
|
61
47
|
//# sourceMappingURL=ux.mjs.map
|
package/lib/helpers/ux.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ux.mjs","sources":["../../src/helpers/ux.ts"],"sourcesContent":["import type { FlattenSimpleInterpolation } from \"styled-components\";\n\nconst SCROLL_INTO_VIEW_DEFAULT_DURATION = 600;\n\n/**\n * Same as `window.scrollTo` but allows custom duration\n *\n * ! The scroll action won't be replaced if called multiple times\n * ? Instead `useScrollToY` hook will do that if needed\n */\nexport const scrollToY = (targetY: number, duration: number) => {\n let start: number;\n let previousTimeStamp: number;\n const initY = window.scrollY;\n const limit =\n document.documentElement.scrollHeight -\n document.documentElement.clientHeight;\n\n function step(timestamp: number) {\n start === undefined && (start = timestamp);\n const elapsed = timestamp - start;\n const progress = (timestamp - start) / duration;\n\n if (previousTimeStamp !== timestamp) {\n window.scroll({\n top: ((targetY > limit ? limit : targetY) - initY) * progress + initY,\n });\n }\n\n if (elapsed < duration) {\n previousTimeStamp = timestamp;\n window.requestAnimationFrame(step);\n } else {\n window.scroll({\n top: targetY,\n });\n }\n }\n\n window.requestAnimationFrame(step);\n};\n\n/**\n * Scrolls to the element on the page\n *\n * ! This will scroll the entire page, do not use for inline scrolling\n *\n * @todo use Element.scrollIntoView() or Element.scrollIntoViewIfNeeded() when it's fully supported\n */\nexport const scrollIntoView = (\n element: Element | null,\n duration = SCROLL_INTO_VIEW_DEFAULT_DURATION,\n) => {\n if (typeof window === \"undefined\") return;\n if (!element) return;\n\n // Get scroll y target position\n const elementWindowY = element.getBoundingClientRect().top + window.scrollY;\n // Scroll to the element minus one third of the window height (so that it's at an optimal eye level)\n const y = elementWindowY - window.innerHeight * (1 / 3);\n\n // Animate\n scrollToY(y, duration);\n};\n\n/**\n * For use in styled components to reduce switch noise\n *\n * @deprecated Let's replace this with native switches - if ain't broke...\n * @example styledSwitch(variableWithMultipleCases, {\n * whenValueIsX: css`background: red;`,\n * whenValueIsY: css`background: blue;`,\n * })\n */\nexport function styledSwitch
|
|
1
|
+
{"version":3,"file":"ux.mjs","sources":["../../src/helpers/ux.ts"],"sourcesContent":["import type { FlattenSimpleInterpolation } from \"styled-components\";\n\nconst SCROLL_INTO_VIEW_DEFAULT_DURATION = 600;\n\n/**\n * Same as `window.scrollTo` but allows custom duration\n *\n * ! The scroll action won't be replaced if called multiple times\n * ? Instead `useScrollToY` hook will do that if needed\n */\nexport const scrollToY = (targetY: number, duration: number) => {\n let start: number;\n let previousTimeStamp: number;\n const initY = window.scrollY;\n const limit =\n document.documentElement.scrollHeight -\n document.documentElement.clientHeight;\n\n function step(timestamp: number) {\n start === undefined && (start = timestamp);\n const elapsed = timestamp - start;\n const progress = (timestamp - start) / duration;\n\n if (previousTimeStamp !== timestamp) {\n window.scroll({\n top: ((targetY > limit ? limit : targetY) - initY) * progress + initY,\n });\n }\n\n if (elapsed < duration) {\n previousTimeStamp = timestamp;\n window.requestAnimationFrame(step);\n } else {\n window.scroll({\n top: targetY,\n });\n }\n }\n\n window.requestAnimationFrame(step);\n};\n\n/**\n * Scrolls to the element on the page\n *\n * ! This will scroll the entire page, do not use for inline scrolling\n *\n * @todo use Element.scrollIntoView() or Element.scrollIntoViewIfNeeded() when it's fully supported\n */\nexport const scrollIntoView = (\n element: Element | null,\n duration = SCROLL_INTO_VIEW_DEFAULT_DURATION,\n) => {\n if (typeof window === \"undefined\") return;\n if (!element) return;\n\n // Get scroll y target position\n const elementWindowY = element.getBoundingClientRect().top + window.scrollY;\n // Scroll to the element minus one third of the window height (so that it's at an optimal eye level)\n const y = elementWindowY - window.innerHeight * (1 / 3);\n\n // Animate\n scrollToY(y, duration);\n};\n\n/**\n * For use in styled components to reduce switch noise\n *\n * @deprecated Let's replace this with native switches - if ain't broke...\n * @example styledSwitch(variableWithMultipleCases, {\n * whenValueIsX: css`background: red;`,\n * whenValueIsY: css`background: blue;`,\n * })\n */\nexport function styledSwitch(\n value: string,\n cases: Record<string, FlattenSimpleInterpolation | string>,\n) {\n return cases[value];\n}\n\n/**\n * Get true page offset Y summing own and all parent offsets\n */\nexport const getTrueOffsetY = (el: HTMLElement) => {\n let offset = el.offsetTop;\n\n if (el.parentElement) {\n offset += getTrueOffsetY(el.parentElement);\n }\n\n return offset;\n};\n"],"names":["SCROLL_INTO_VIEW_DEFAULT_DURATION","scrollToY","targetY","duration","start","previousTimeStamp","initY","window","scrollY","limit","document","documentElement","scrollHeight","clientHeight","step","timestamp","elapsed","progress","scroll","top","requestAnimationFrame","scrollIntoView","element","elementWindowY","getBoundingClientRect","y","innerHeight","styledSwitch","value","cases","getTrueOffsetY","el","offset","offsetTop","parentElement"],"mappings":";;AAEA,MAAMA,iCAAoC,GAAA,GAAA;AAQ7B,MAAAC,SAAA,GAAYA,CAACC,OAAA,EAAiBC,QAAqB,KAAA;EAC1D,IAAAC,KAAA;EACA,IAAAC,iBAAA;EACJ,MAAMC,QAAQC,MAAO,CAAAC,OAAA;EACrB,MAAMC,KACJ,GAAAC,QAAA,CAASC,eAAgB,CAAAC,YAAA,GACzBF,SAASC,eAAgB,CAAAE,YAAA;EAE3B,SAASC,KAAKC,SAAmB,EAAA;IAC/BX,KAAA,KAAU,WAAcA,KAAQ,GAAAW,SAAA,CAAA;IAChC,MAAMC,UAAUD,SAAY,GAAAX,KAAA;IACtB,MAAAa,QAAA,GAAA,CAAYF,YAAYX,KAAS,IAAAD,QAAA;IAEvC,IAAIE,sBAAsBU,SAAW,EAAA;MACnCR,MAAA,CAAOW,MAAO,CAAA;QACZC,OAAOjB,OAAU,GAAAO,KAAA,GAAQA,KAAQ,GAAAP,OAAA,IAAWI,SAASW,QAAW,GAAAX;MAAA,CACjE,CAAA;IACH;IAEA,IAAIU,UAAUb,QAAU,EAAA;MACFE,iBAAA,GAAAU,SAAA;MACpBR,MAAA,CAAOa,sBAAsBN,IAAI,CAAA;IAAA,CAC5B,MAAA;MACLP,MAAA,CAAOW,MAAO,CAAA;QACZC,GAAK,EAAAjB;MAAA,CACN,CAAA;IACH;EACF;EAEAK,MAAA,CAAOa,sBAAsBN,IAAI,CAAA;AACnC,CAAA;AASO,MAAMO,cAAiB,GAAAA,CAC5BC,OACA,EAAAnB,QAAA,GAAWH,iCACR,KAAA;EACC,IAAA,OAAOO,WAAW,WAAa,EAAA;EACnC,IAAI,CAACe,OAAS,EAAA;EAGd,MAAMC,cAAiB,GAAAD,OAAA,CAAQE,qBAAsB,CAAA,CAAA,CAAEL,MAAMZ,MAAO,CAAAC,OAAA;EAEpE,MAAMiB,CAAI,GAAAF,cAAA,GAAiBhB,MAAO,CAAAmB,WAAA,IAAe,CAAI,GAAA,CAAA,CAAA;EAGrDzB,SAAA,CAAUwB,GAAGtB,QAAQ,CAAA;AACvB,CAAA;AAWgB,SAAAwB,YAAAA,CACdC,OACAC,KACA,EAAA;EACA,OAAOA,MAAMD,KAAK,CAAA;AACpB;AAKa,MAAAE,cAAA,GAAkBC,EAAoB,IAAA;EACjD,IAAIC,SAASD,EAAG,CAAAE,SAAA;EAEhB,IAAIF,GAAGG,aAAe,EAAA;IACVF,MAAA,IAAAF,cAAA,CAAeC,GAAGG,aAAa,CAAA;EAC3C;EAEO,OAAAF,MAAA;AACT,CAAA;"}
|
package/lib/hooks/useHasTouch.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var react = require('react');
|
|
4
4
|
"use strict";
|
|
5
5
|
const useHasTouch = () => {
|
|
6
|
-
const [hasTouch, setHasTouch] =
|
|
7
|
-
|
|
6
|
+
const [hasTouch, setHasTouch] = react.useState(typeof document !== "undefined" && "ontouchstart" in document.documentElement || typeof window !== "undefined" && window.navigator.maxTouchPoints > 0);
|
|
7
|
+
react.useEffect(() => {
|
|
8
8
|
let lastTouchTime = 0;
|
|
9
9
|
function disableTouch() {
|
|
10
10
|
if (Date.now() - lastTouchTime < 500) return;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var react = require('react');
|
|
4
4
|
"use strict";
|
|
5
5
|
const calculateTotalCameraRetentionLoad = cameras => {
|
|
6
6
|
const cameraRetentionLoad = {
|
|
@@ -67,16 +67,16 @@ const getMaxRetention = inputs => {
|
|
|
67
67
|
return lastItem?.value || 0;
|
|
68
68
|
};
|
|
69
69
|
const useRetentionCalculator = config => {
|
|
70
|
-
const maxRetention =
|
|
70
|
+
const maxRetention = react.useMemo(() => {
|
|
71
71
|
return getMaxRetention(config);
|
|
72
72
|
}, [config]);
|
|
73
|
-
const retentionHddItems =
|
|
73
|
+
const retentionHddItems = react.useMemo(() => {
|
|
74
74
|
return getRetentionHddItems(config);
|
|
75
75
|
}, [config]);
|
|
76
|
-
const getRequiredHddsByRetention =
|
|
76
|
+
const getRequiredHddsByRetention = react.useCallback(retention => {
|
|
77
77
|
return getRequiredHddCountByTime(config, retention);
|
|
78
78
|
}, [config]);
|
|
79
|
-
const minRetentionStorage =
|
|
79
|
+
const minRetentionStorage = react.useMemo(() => {
|
|
80
80
|
return retentionHddItems.find((item, i) => {
|
|
81
81
|
return item.value > 0 && i + 1 >= config.parityDisks * 2;
|
|
82
82
|
})?.value || 0;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var react = require('react');
|
|
4
4
|
"use strict";
|
|
5
5
|
function useHorizontalScroll(ref, enabled = true) {
|
|
6
|
-
|
|
6
|
+
react.useEffect(() => {
|
|
7
7
|
if (!enabled) return;
|
|
8
8
|
if (!ref?.current) return;
|
|
9
9
|
const element = ref.current;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var react = require('react');
|
|
4
4
|
"use strict";
|
|
5
5
|
const LOCK_SCROLL_CLASS = "lock-scroll";
|
|
6
6
|
const updateElsClassList = (els, type) => {
|
|
@@ -11,8 +11,8 @@ const updateElsClassList = (els, type) => {
|
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
const useLockBodyScrollCustom = isLocked => {
|
|
14
|
-
const getEls =
|
|
15
|
-
|
|
14
|
+
const getEls = react.useCallback(() => [document.documentElement, document.body, document.getElementById("__next")], []);
|
|
15
|
+
react.useEffect(() => {
|
|
16
16
|
if (isLocked) {
|
|
17
17
|
updateElsClassList(getEls(), "add");
|
|
18
18
|
} else {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var react = require('react');
|
|
4
4
|
"use strict";
|
|
5
5
|
const useScrollToY = () => {
|
|
6
|
-
const rafRef =
|
|
6
|
+
const rafRef = react.useRef(0);
|
|
7
7
|
const cancelScrollToY = () => {
|
|
8
8
|
window.cancelAnimationFrame(rafRef.current);
|
|
9
9
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var react = require('react');
|
|
4
4
|
"use strict";
|
|
5
5
|
const testMediaElementVolumeSetterAsync = () => {
|
|
6
6
|
const timeoutPromise = new Promise(resolve => setTimeout(resolve, 500, false));
|
|
@@ -17,8 +17,8 @@ const testMediaElementVolumeSetterAsync = () => {
|
|
|
17
17
|
return Promise.race([promise, timeoutPromise]);
|
|
18
18
|
};
|
|
19
19
|
const useTestMediaElementVolumeSetter = () => {
|
|
20
|
-
const [isSupported, setIsSupported] =
|
|
21
|
-
|
|
20
|
+
const [isSupported, setIsSupported] = react.useState(null);
|
|
21
|
+
react.useEffect(() => {
|
|
22
22
|
testMediaElementVolumeSetterAsync().then(setIsSupported).catch(e => console.error("Cannot detect", e));
|
|
23
23
|
}, []);
|
|
24
24
|
return isSupported;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var intl = require('@formatjs/intl');
|
|
4
|
-
var
|
|
4
|
+
var react = require('react');
|
|
5
5
|
require('../contexts/MenuContext/index.js');
|
|
6
6
|
var mapping = require('../contexts/MenuContext/mapping.js');
|
|
7
7
|
var context = require('../contexts/MenuContext/context.js');
|
|
@@ -11,8 +11,8 @@ const useTranslationRaw = ({
|
|
|
11
11
|
defaultTranslation,
|
|
12
12
|
additionalTranslations
|
|
13
13
|
}) => {
|
|
14
|
-
const [activeTranslation, setActiveTranslation] =
|
|
15
|
-
|
|
14
|
+
const [activeTranslation, setActiveTranslation] = react.useState(defaultTranslation);
|
|
15
|
+
react.useEffect(() => {
|
|
16
16
|
const loadTranslations = async () => {
|
|
17
17
|
try {
|
|
18
18
|
if (language === mapping.DEFAULT_LANGUAGE) {
|
|
@@ -30,14 +30,14 @@ const useTranslationRaw = ({
|
|
|
30
30
|
};
|
|
31
31
|
loadTranslations();
|
|
32
32
|
}, [language, additionalTranslations, defaultTranslation]);
|
|
33
|
-
const intl$1 =
|
|
33
|
+
const intl$1 = react.useMemo(() => {
|
|
34
34
|
const cache = intl.createIntlCache();
|
|
35
35
|
return intl.createIntl({
|
|
36
36
|
locale: language,
|
|
37
37
|
messages: activeTranslation
|
|
38
38
|
}, cache);
|
|
39
39
|
}, [language, activeTranslation]);
|
|
40
|
-
const formatMessage =
|
|
40
|
+
const formatMessage = react.useCallback((id, values) => intl$1.formatMessage({
|
|
41
41
|
id,
|
|
42
42
|
defaultMessage: defaultTranslation[id]
|
|
43
43
|
}, values), [intl$1, defaultTranslation]);
|
|
@@ -50,7 +50,7 @@ const useTranslation = options => {
|
|
|
50
50
|
const {
|
|
51
51
|
language
|
|
52
52
|
} = context.useMenu();
|
|
53
|
-
const optionsExtended =
|
|
53
|
+
const optionsExtended = react.useMemo(() => ({
|
|
54
54
|
...options,
|
|
55
55
|
language
|
|
56
56
|
}), [options, language]);
|
package/lib/types/product.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.js","sources":["../../src/types/product.ts"],"sourcesContent":["import type { Currency } from \"../types\";\n\
|
|
1
|
+
{"version":3,"file":"product.js","sources":["../../src/types/product.ts"],"sourcesContent":["import type { Currency } from \"../types\";\n\nexport enum DisplayProductStatus {\n Available = \"Available\",\n Backorder = \"Backorder\",\n ComingSoon = \"ComingSoon\",\n RegionNotAvailable = \"RegionNotAvailable\",\n SoldOut = \"SoldOut\",\n Unavailable = \"Unavailable\",\n}\n\nexport type CollectionSection = {\n id: string;\n productTags: Array<string>;\n title: string;\n};\n\nexport interface Section extends CollectionSection {\n items: Section[];\n}\n\nexport type ProductTagFragment = { __typename?: \"ProductTag\"; name: string };\n\nexport interface MappedProductSection<T> extends Section {\n items: MappedProductSection<T>[];\n products: T[];\n /**\n * States which is conditionally calculated based on the need.\n * E.g. if it is an optical collection where collection sections\n * are rendered inside the VariantSelector items, we need to\n * know which section does not contain products that are in stock.\n * If all products in the section are out of stock, we need to\n * apply grayed out style to the section button.\n */\n isDisabled?: boolean;\n}\n\nexport interface StorefrontProduct {\n id: string;\n slug: string;\n title: string;\n shortTitle?: string | null;\n collectionSlug?: string | null;\n organizationalCollectionSlug?: string | null;\n proCollectionSlug?: string | null;\n status: DisplayProductStatus;\n options: Array<{\n __typename?: \"StorefrontOption\";\n id: string;\n title: string;\n slug: string;\n values: Array<{\n __typename?: \"StorefrontOptionValue\";\n id: string;\n title: string;\n slug: string;\n }>;\n }>;\n tags: Array<{ __typename?: \"ProductTag\"; name: string }>;\n minDisplayPrice: { __typename?: \"Money\"; amount: number; currency: Currency };\n variants: Array<{\n __typename?: \"StorefrontProductVariant\";\n id: string;\n status: DisplayProductStatus;\n availableInOtherStores: Array<{\n __typename: \"StorefrontProductVariantAlternativeStore\";\n }>;\n optionValueIds?: Array<string> | null;\n }>;\n}\n\nexport type StorefrontOptionValue = {\n __typename?: \"StorefrontOptionValue\";\n id: string;\n slug: string;\n title: string;\n};\n\nexport type StorefrontOption = {\n __typename?: \"StorefrontOption\";\n id: string;\n slug: string;\n title: string;\n values: Array<StorefrontOptionValue>;\n};\n"],"names":["DisplayProductStatus"],"mappings":";;;AAEY,IAAAA,oBAAA,GAAA,gBAAAA,qBAAL,IAAA;EACLA,sBAAA,WAAY,CAAA,GAAA,WAAA;EACZA,sBAAA,WAAY,CAAA,GAAA,WAAA;EACZA,sBAAA,YAAa,CAAA,GAAA,YAAA;EACbA,sBAAA,oBAAqB,CAAA,GAAA,oBAAA;EACrBA,sBAAA,SAAU,CAAA,GAAA,SAAA;EACVA,sBAAA,aAAc,CAAA,GAAA,aAAA;EANJA,OAAAA,qBAAAA;AAAA,CAAA,EAAAA,oBAAA,IAAA,CAAA,CAAA,CAAA;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.mjs","sources":["../../src/types/product.ts"],"sourcesContent":["import type { Currency } from \"../types\";\n\
|
|
1
|
+
{"version":3,"file":"product.mjs","sources":["../../src/types/product.ts"],"sourcesContent":["import type { Currency } from \"../types\";\n\nexport enum DisplayProductStatus {\n Available = \"Available\",\n Backorder = \"Backorder\",\n ComingSoon = \"ComingSoon\",\n RegionNotAvailable = \"RegionNotAvailable\",\n SoldOut = \"SoldOut\",\n Unavailable = \"Unavailable\",\n}\n\nexport type CollectionSection = {\n id: string;\n productTags: Array<string>;\n title: string;\n};\n\nexport interface Section extends CollectionSection {\n items: Section[];\n}\n\nexport type ProductTagFragment = { __typename?: \"ProductTag\"; name: string };\n\nexport interface MappedProductSection<T> extends Section {\n items: MappedProductSection<T>[];\n products: T[];\n /**\n * States which is conditionally calculated based on the need.\n * E.g. if it is an optical collection where collection sections\n * are rendered inside the VariantSelector items, we need to\n * know which section does not contain products that are in stock.\n * If all products in the section are out of stock, we need to\n * apply grayed out style to the section button.\n */\n isDisabled?: boolean;\n}\n\nexport interface StorefrontProduct {\n id: string;\n slug: string;\n title: string;\n shortTitle?: string | null;\n collectionSlug?: string | null;\n organizationalCollectionSlug?: string | null;\n proCollectionSlug?: string | null;\n status: DisplayProductStatus;\n options: Array<{\n __typename?: \"StorefrontOption\";\n id: string;\n title: string;\n slug: string;\n values: Array<{\n __typename?: \"StorefrontOptionValue\";\n id: string;\n title: string;\n slug: string;\n }>;\n }>;\n tags: Array<{ __typename?: \"ProductTag\"; name: string }>;\n minDisplayPrice: { __typename?: \"Money\"; amount: number; currency: Currency };\n variants: Array<{\n __typename?: \"StorefrontProductVariant\";\n id: string;\n status: DisplayProductStatus;\n availableInOtherStores: Array<{\n __typename: \"StorefrontProductVariantAlternativeStore\";\n }>;\n optionValueIds?: Array<string> | null;\n }>;\n}\n\nexport type StorefrontOptionValue = {\n __typename?: \"StorefrontOptionValue\";\n id: string;\n slug: string;\n title: string;\n};\n\nexport type StorefrontOption = {\n __typename?: \"StorefrontOption\";\n id: string;\n slug: string;\n title: string;\n values: Array<StorefrontOptionValue>;\n};\n"],"names":["DisplayProductStatus"],"mappings":";;AAEY,IAAAA,oBAAA,GAAA,gBAAAA,qBAAL,IAAA;EACLA,sBAAA,WAAY,CAAA,GAAA,WAAA;EACZA,sBAAA,WAAY,CAAA,GAAA,WAAA;EACZA,sBAAA,YAAa,CAAA,GAAA,YAAA;EACbA,sBAAA,oBAAqB,CAAA,GAAA,oBAAA;EACrBA,sBAAA,SAAU,CAAA,GAAA,SAAA;EACVA,sBAAA,aAAc,CAAA,GAAA,aAAA;EANJA,OAAAA,qBAAAA;AAAA,CAAA,EAAAA,oBAAA,IAAA,CAAA,CAAA,CAAA;"}
|
|
@@ -4,11 +4,26 @@ import type { LocalizedCurrency, RoundingFn } from "./types";
|
|
|
4
4
|
/**
|
|
5
5
|
* Custom rounding method to be used with dinero.js
|
|
6
6
|
* This rounding method will round to nearest FULL 0/5/9 (and strip cents)
|
|
7
|
-
* (moved here to mitigate ReferenceError: Cannot access 'roundToNearestFull059Fn' before initialization)
|
|
8
7
|
*
|
|
9
8
|
* @see: https://ubiquiti.atlassian.net/browse/NEP-3846
|
|
10
9
|
*/
|
|
11
|
-
export declare const
|
|
10
|
+
export declare const roundToNearestFull059: RoundingFn;
|
|
11
|
+
/**
|
|
12
|
+
* Custom rounding method to be used with dinero.js
|
|
13
|
+
* This rounding method will round to
|
|
14
|
+
* nearest decimal cent. e.g. 1.53 = 1.50 / 1.57 = 1.60
|
|
15
|
+
*
|
|
16
|
+
* @see: https://ubiquiti.atlassian.net/browse/NEP-3846
|
|
17
|
+
*/
|
|
18
|
+
export declare const roundToNearestDecimalCent: RoundingFn;
|
|
19
|
+
/**
|
|
20
|
+
* Custom rounding method to be used with dinero.js
|
|
21
|
+
* This rounding method will round to
|
|
22
|
+
* nearest .50 or .00. e.g. 11.22 = 11 / 11.55 = 11.50 / 11.90 = 12
|
|
23
|
+
*
|
|
24
|
+
* @see: https://ubiquiti.atlassian.net/browse/NEP-3846
|
|
25
|
+
*/
|
|
26
|
+
export declare const roundToNearestHalfUnitCent: RoundingFn;
|
|
12
27
|
export declare const Round: {
|
|
13
28
|
/**
|
|
14
29
|
* ⚠️ Instead of using Math.round, we HAVE to use this method to round the financial numbers everywhere where we CAN'T
|
|
@@ -16,8 +31,7 @@ export declare const Round: {
|
|
|
16
31
|
* normalise the values so we use this method.
|
|
17
32
|
*
|
|
18
33
|
* It just a re-export of the dinero.js halfEven (a.k.a bankers rounding) method which is the default rounding method.
|
|
19
|
-
* @see https://github.com/dinerojs/dinero.js/blob/
|
|
20
|
-
* @see
|
|
34
|
+
* @see https://github.com/dinerojs/dinero.js/blob/v2.0.0-alpha.8/packages/core/src/round/halfEven.ts
|
|
21
35
|
*
|
|
22
36
|
* Compared to Math.round (arithmetic rounding) it differentiates that it changes the `.5` round up or down behaviour based on if the rounded
|
|
23
37
|
* number would be an even number. So 1.5 would round to 2 while 2.5 would round to 2.
|
|
@@ -41,6 +55,14 @@ export declare const Round: {
|
|
|
41
55
|
* ! Disclaimer may not work for "weird" currencies as expected
|
|
42
56
|
*/
|
|
43
57
|
PrettifyFull059: RoundingFn;
|
|
58
|
+
/**
|
|
59
|
+
* ! Disclaimer may not work for "weird" currencies as expected
|
|
60
|
+
*/
|
|
61
|
+
PrettifyDecimalCents: RoundingFn;
|
|
62
|
+
/**
|
|
63
|
+
* ! Disclaimer may not work for "weird" currencies as expected
|
|
64
|
+
*/
|
|
65
|
+
PrettifyHalfUnitCents: RoundingFn;
|
|
44
66
|
Subunit: import("@dinero.js/core").RoundingMode;
|
|
45
67
|
};
|
|
46
68
|
/**
|
|
@@ -5,7 +5,13 @@ var dinero_js = require('dinero.js');
|
|
|
5
5
|
require('../../types/index.js');
|
|
6
6
|
var generated = require('../../types/generated.js');
|
|
7
7
|
"use strict";
|
|
8
|
-
const
|
|
8
|
+
const roundToNearestFull059 = input => {
|
|
9
|
+
if (input === 0) {
|
|
10
|
+
return 0;
|
|
11
|
+
}
|
|
12
|
+
if (input <= 3) {
|
|
13
|
+
return 5;
|
|
14
|
+
}
|
|
9
15
|
const roundedNumber = Math.round(input);
|
|
10
16
|
const remainder = roundedNumber % 10;
|
|
11
17
|
if (remainder <= 2) {
|
|
@@ -16,6 +22,24 @@ const roundToNearestFull059Fn = input => {
|
|
|
16
22
|
return roundedNumber - remainder + 9;
|
|
17
23
|
}
|
|
18
24
|
};
|
|
25
|
+
const roundToNearestDecimalCent = input => {
|
|
26
|
+
if (input === 0) {
|
|
27
|
+
return 0;
|
|
28
|
+
}
|
|
29
|
+
if (input < 0.1) {
|
|
30
|
+
return 0.1;
|
|
31
|
+
}
|
|
32
|
+
return parseFloat((Math.round(input * 10) / 10).toFixed(1));
|
|
33
|
+
};
|
|
34
|
+
const roundToNearestHalfUnitCent = input => {
|
|
35
|
+
if (input === 0) {
|
|
36
|
+
return 0;
|
|
37
|
+
}
|
|
38
|
+
if (input < 0.5) {
|
|
39
|
+
return 0.5;
|
|
40
|
+
}
|
|
41
|
+
return parseFloat((Math.round(input * 2) / 2).toFixed(2));
|
|
42
|
+
};
|
|
19
43
|
const Round = {
|
|
20
44
|
/**
|
|
21
45
|
* ⚠️ Instead of using Math.round, we HAVE to use this method to round the financial numbers everywhere where we CAN'T
|
|
@@ -23,8 +47,7 @@ const Round = {
|
|
|
23
47
|
* normalise the values so we use this method.
|
|
24
48
|
*
|
|
25
49
|
* It just a re-export of the dinero.js halfEven (a.k.a bankers rounding) method which is the default rounding method.
|
|
26
|
-
* @see https://github.com/dinerojs/dinero.js/blob/
|
|
27
|
-
* @see
|
|
50
|
+
* @see https://github.com/dinerojs/dinero.js/blob/v2.0.0-alpha.8/packages/core/src/round/halfEven.ts
|
|
28
51
|
*
|
|
29
52
|
* Compared to Math.round (arithmetic rounding) it differentiates that it changes the `.5` round up or down behaviour based on if the rounded
|
|
30
53
|
* number would be an even number. So 1.5 would round to 2 while 2.5 would round to 2.
|
|
@@ -52,10 +75,18 @@ const Round = {
|
|
|
52
75
|
/**
|
|
53
76
|
* ! Disclaimer may not work for "weird" currencies as expected
|
|
54
77
|
*/
|
|
55
|
-
PrettifyFull059:
|
|
78
|
+
PrettifyFull059: roundToNearestFull059,
|
|
79
|
+
/**
|
|
80
|
+
* ! Disclaimer may not work for "weird" currencies as expected
|
|
81
|
+
*/
|
|
82
|
+
PrettifyDecimalCents: roundToNearestDecimalCent,
|
|
83
|
+
/**
|
|
84
|
+
* ! Disclaimer may not work for "weird" currencies as expected
|
|
85
|
+
*/
|
|
86
|
+
PrettifyHalfUnitCents: roundToNearestHalfUnitCent,
|
|
56
87
|
Subunit: dinero_js.halfUp
|
|
57
88
|
};
|
|
58
|
-
const prettifyPriceLookup = /* @__PURE__ */new Map([[currencies.USD.code, 20], [currencies.
|
|
89
|
+
const prettifyPriceLookup = /* @__PURE__ */new Map([[currencies.USD.code, 20], [currencies.AED.code, 50],
|
|
59
90
|
// Approximately every price above ~1.1 usd will be rounded in ZAR
|
|
60
91
|
[currencies.ZAR.code, 20]]);
|
|
61
92
|
const smallestSubunitLookup = /* @__PURE__ */new Map([
|
|
@@ -176,7 +207,9 @@ exports.Round = Round;
|
|
|
176
207
|
exports.TAX_RATE_DINERO_CURRENCY = TAX_RATE_DINERO_CURRENCY;
|
|
177
208
|
exports.localizedCurrencyLookup = localizedCurrencyLookup;
|
|
178
209
|
exports.prettifyPriceLookup = prettifyPriceLookup;
|
|
179
|
-
exports.
|
|
210
|
+
exports.roundToNearestDecimalCent = roundToNearestDecimalCent;
|
|
211
|
+
exports.roundToNearestFull059 = roundToNearestFull059;
|
|
212
|
+
exports.roundToNearestHalfUnitCent = roundToNearestHalfUnitCent;
|
|
180
213
|
exports.smallestSubunitLookup = smallestSubunitLookup;
|
|
181
214
|
exports.storesWithPerItemTaxRate = storesWithPerItemTaxRate;
|
|
182
215
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sources":["../../../src/utils/money/constants.ts"],"sourcesContent":["import {\n AED,\n BGN,\n BRL,\n CAD,\n CHF,\n CZK,\n DKK,\n EUR,\n GBP,\n HRK,\n HUF,\n INR,\n JPY,\n MXN,\n NOK,\n PLN,\n RON,\n SEK,\n SGD,\n TWD,\n USD,\n ZAR,\n} from \"@dinero.js/currencies\";\nimport { down, halfAwayFromZero, halfUp } from \"dinero.js\";\n\nimport type { StoreId } from \"../../types\";\nimport { Currency } from \"../../types\";\nimport type {\n Cents,\n DinoCurrency,\n LocalizedCurrency,\n RoundingFn,\n} from \"./types\";\n\n// #############################################################################\n// Constants\n// #############################################################################\n\n/**\n * Custom rounding method to be used with dinero.js\n * This rounding method will round to nearest FULL 0/5/9 (and strip cents)\n * (moved here to mitigate ReferenceError: Cannot access 'roundToNearestFull059Fn' before initialization)\n *\n * @see: https://ubiquiti.atlassian.net/browse/NEP-3846\n */\nexport const roundToNearestFull059Fn: RoundingFn = (input: number) => {\n /**\n * Input comes as float, for this rounding we don't need cents, so round\n * to nearest full number\n */\n const roundedNumber = Math.round(input);\n\n // Determine nearest rounding value\n const remainder = roundedNumber % 10;\n if (remainder <= 2) {\n // Round down to nearest 0\n return roundedNumber - remainder;\n } else if (remainder <= 7) {\n // Round to nearest 5\n return roundedNumber - remainder + 5;\n } else {\n // Round up to nearest 9\n return roundedNumber - remainder + 9;\n }\n};\n\nexport const Round = {\n /**\n * ⚠️ Instead of using Math.round, we HAVE to use this method to round the financial numbers everywhere where we CAN'T\n * deal with dinero.js (Dinero.js should be the priority). But often for converting from API requests we have to\n * normalise the values so we use this method.\n *\n * It just a re-export of the dinero.js halfEven (a.k.a bankers rounding) method which is the default rounding method.\n * @see https://github.com/dinerojs/dinero.js/blob/main/packages/core/src/round/halfEven.ts\n * @see\n *\n * Compared to Math.round (arithmetic rounding) it differentiates that it changes the `.5` round up or down behaviour based on if the rounded\n * number would be an even number. So 1.5 would round to 2 while 2.5 would round to 2.\n * See the youtube link below for a brief exclamation on why it's important to use this method over regular rounding (half-up):\n * https://youtu.be/yuRdYlZvs1E\n *\n * If you really want to get knee-deep in the rounding subject, you can read the following:\n * https://en.wikipedia.org/wiki/Rounding#Round_half_toward_zero\n *\n * !!!!!!!!!!!!!!\n * ! Update 2024\n * ! We ar changing from `halfEven` (bankers rounding) to `halfAwayFromZero` (symmetric rounding) to match Avalara tax\n * @see https://knowledge.avalara.com/bundle/dqa1657870670369_dqa1657870670369/page/Change_how_AvaTax_rounds_the_tax_amount.html\n * @see https://ui.slack.com/archives/C07P7L7S3CP/p1728313196140639\n * !!!!!!!!!!!!!!\n */\n Financial: halfAwayFromZero,\n // https://ui.slack.com/archives/C07P7L7S3CP/p1728313196140639\n // TODO: maybe we should have separate rounding functions depending on the input value?\n // Reading from wiki \"Round half toward zero\" is better if the value is already \"normalized to cents\"\n // But the \"Round half to even\" seems better for when working with float like values\n // financialRound = Math.round;\n Shipping: down,\n Prettify: down,\n /**\n * ! Disclaimer may not work for \"weird\" currencies as expected\n */\n PrettifyFull059: roundToNearestFull059Fn,\n Subunit: halfUp,\n} satisfies Record<string, RoundingFn>;\n\n/**\n * Mapping of how prices should be rounded down to \"whole numbers\" after certain threshold\n */\nexport const prettifyPriceLookup = new Map([\n [USD.code, 20],\n [CAD.code, 50],\n [EUR.code, 50],\n [GBP.code, 50],\n [AED.code, 50],\n // Approximately every price above ~1.1 usd will be rounded in ZAR\n [ZAR.code, 20],\n]);\n\n/**\n * Map of dinero code to subunit digit count.\n */\nexport const smallestSubunitLookup = new Map<string, [Cents, RoundingFn]>([\n /**\n * TWD does not use subunits at all in day to day transactions.\n */\n [TWD.code, [0, Round.Subunit]],\n]);\n\n/**\n * Precompiled list for faster currency and locale lookups\n */\nexport const localizedCurrencyLookup = new Map<Currency, LocalizedCurrency>([\n [Currency.Aed, { currency: AED, locale: \"ar-AE\" }],\n [Currency.Bgn, { currency: BGN, locale: \"bg-BG\" }],\n [Currency.Cad, { currency: CAD, locale: \"en-CA\" }],\n [Currency.Chf, { currency: CHF, locale: \"it-CH\" }],\n [Currency.Czk, { currency: CZK, locale: \"cs-CZ\" }],\n [Currency.Dkk, { currency: DKK, locale: \"da-DK\" }],\n [Currency.Eur, { currency: EUR, locale: \"de-DE\" }],\n [Currency.Gbp, { currency: GBP, locale: \"en-GB\" }],\n [Currency.Hrk, { currency: HRK, locale: \"hr-HR\" }],\n [Currency.Huf, { currency: HUF, locale: \"hu-HU\" }],\n [Currency.Nok, { currency: NOK, locale: \"no-NO\" }],\n [Currency.Pln, { currency: PLN, locale: \"pl-PL\" }],\n [Currency.Ron, { currency: RON, locale: \"ro-RO\" }],\n [Currency.Sek, { currency: SEK, locale: \"sv-SE\" }],\n [Currency.Usd, { currency: USD, locale: \"en-US\" }],\n [Currency.Zar, { currency: ZAR, locale: \"en-ZA\" }],\n [Currency.Inr, { currency: INR, locale: \"en-IN\" }],\n [Currency.Sgd, { currency: SGD, locale: \"en-SG\" }],\n [Currency.Brl, { currency: BRL, locale: \"pt-BR\" }],\n // NOTE: en-JP Doesn't exist\n [Currency.Jpy, { currency: JPY, locale: \"en-JP\" }],\n // NOTE: en-TW Doesn't exist\n [Currency.Twd, { currency: TWD, locale: \"en-TW\" }],\n [Currency.Mxn, { currency: MXN, locale: \"es-MX\" }],\n]);\n\n// #############################################################################\n// Tax Rate\n// #############################################################################\n/**\n * List of stores that require calculating per single item qty and then combining them to get the total tax amount for a\n * single line. Rest of the stores inherit default behavior that tax calculated on whole line item\n *\n * ! IMPORTANT: When changing need to sync that store.backend `AVATAX_CUSTOM_COMPANY_CODES` is updated to reflect the change\n *\n * FIXME: as PR for the change as unfinished currently disabled to enable the functionality that calculates tax per single item as requires\n * specific testing both for our custom tax and Avalara stores that use custom company codes. So the groundwork for\n * different tax calculations is there just need to enable on the share side and test if it works\n */\nexport const storesWithPerItemTaxRate = new Set([\n // #############################################################################\n // Stores with custom tax rates\n // #############################################################################\n // StoreId.Br,\n // StoreId.Tw,\n // #############################################################################\n // Stores with Avalara, but will have custom company codes to handle per-item tax rate\n // #############################################################################\n // StoreId.Jp,\n // StoreId.Sg,\n] as StoreId[]);\n\n/**\n * Dinero currency option block for working with tax rates within dinero\n */\nexport const TAX_RATE_DINERO_CURRENCY = {\n base: 10,\n /**\n * We expect the tax rate to be in the range of 0..1\n * 0 --> 0%\n * 1 --> 100%\n * 0.21 --> 21%\n * 0.2169 --> 21.69%\n * 0.12345678 --> 12.345678%\n * !!! Don't change as this value is tied to store.backend DB schema !!!\n */\n exponent: 8,\n code: \"\", // Not important\n} satisfies DinoCurrency;\n\n// #############################################################################\n// Exchange Rate\n// #############################################################################\n\nexport const EXCHANGE_RATE_DINERO_CURRENCY = {\n base: 10,\n /**\n * We support having certain decimal places for exchange rates\n * !!! Don't change as this value is tied to store.backend DB schema !!!\n */\n exponent: 6,\n code: \"\", // Not important\n} satisfies DinoCurrency;\n"],"names":["roundToNearestFull059Fn","input","roundedNumber","Math","round","remainder","Round","Financial","halfAwayFromZero","Shipping","down","Prettify","PrettifyFull059","Subunit","halfUp","prettifyPriceLookup","Map","USD","code","CAD","EUR","GBP","AED","ZAR","smallestSubunitLookup","TWD","localizedCurrencyLookup","Currency","Aed","currency","locale","Bgn","BGN","Cad","Chf","CHF","Czk","CZK","Dkk","DKK","Eur","Gbp","Hrk","HRK","Huf","HUF","Nok","NOK","Pln","PLN","Ron","RON","Sek","SEK","Usd","Zar","Inr","INR","Sgd","SGD","Brl","BRL","Jpy","JPY","Twd","Mxn","MXN","storesWithPerItemTaxRate","Set","TAX_RATE_DINERO_CURRENCY","base","exponent","EXCHANGE_RATE_DINERO_CURRENCY"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"constants.js","sources":["../../../src/utils/money/constants.ts"],"sourcesContent":["import {\n AED,\n BGN,\n BRL,\n CAD,\n CHF,\n CZK,\n DKK,\n EUR,\n GBP,\n HRK,\n HUF,\n INR,\n JPY,\n MXN,\n NOK,\n PLN,\n RON,\n SEK,\n SGD,\n TWD,\n USD,\n ZAR,\n} from \"@dinero.js/currencies\";\nimport { down, halfAwayFromZero, halfUp } from \"dinero.js\";\n\nimport type { StoreId } from \"../../types\";\nimport { Currency } from \"../../types\";\nimport type {\n Cents,\n DinoCurrency,\n LocalizedCurrency,\n RoundingFn,\n} from \"./types\";\n\n// #############################################################################\n// Constants\n// #############################################################################\n\n/**\n * Custom rounding method to be used with dinero.js\n * This rounding method will round to nearest FULL 0/5/9 (and strip cents)\n *\n * @see: https://ubiquiti.atlassian.net/browse/NEP-3846\n */\nexport const roundToNearestFull059: RoundingFn = (input: number) => {\n if (input === 0) {\n return 0;\n }\n\n // Special handling of 0.01-3.00\n if (input <= 3) {\n return 5;\n }\n\n /**\n * Input comes as float, for this rounding we don't need cents, so round\n * to nearest full number\n */\n const roundedNumber = Math.round(input);\n\n // Determine nearest rounding value\n const remainder = roundedNumber % 10;\n if (remainder <= 2) {\n // Round down to nearest 0\n return roundedNumber - remainder;\n } else if (remainder <= 7) {\n // Round to nearest 5\n return roundedNumber - remainder + 5;\n } else {\n // Round up to nearest 9\n return roundedNumber - remainder + 9;\n }\n};\n\n/**\n * Custom rounding method to be used with dinero.js\n * This rounding method will round to\n * nearest decimal cent. e.g. 1.53 = 1.50 / 1.57 = 1.60\n *\n * @see: https://ubiquiti.atlassian.net/browse/NEP-3846\n */\nexport const roundToNearestDecimalCent: RoundingFn = (input: number) => {\n if (input === 0) {\n return 0;\n }\n\n // Special handling of 0.01-0.09\n if (input < 0.1) {\n return 0.1;\n }\n\n /**\n * Input comes as float, just to be on the safe side use toFixed to mitigate\n * risk of running to floating point precision issues\n */\n return parseFloat((Math.round(input * 10) / 10).toFixed(1));\n};\n\n/**\n * Custom rounding method to be used with dinero.js\n * This rounding method will round to\n * nearest .50 or .00. e.g. 11.22 = 11 / 11.55 = 11.50 / 11.90 = 12\n *\n * @see: https://ubiquiti.atlassian.net/browse/NEP-3846\n */\nexport const roundToNearestHalfUnitCent: RoundingFn = (input: number) => {\n if (input === 0) {\n return 0;\n }\n\n // Special handling of 0.01-0.5\n if (input < 0.5) {\n return 0.5;\n }\n\n /**\n * Input comes as float, just to be on the safe side use toFixed to mitigate\n * risk of running to floating point precision issues\n *\n * Multiply by 2, round to the nearest integer, then divide by 2 to get the nearest .5 or .0\n * Return with fixed precision to avoid floating-point artifacts\n */\n return parseFloat((Math.round(input * 2) / 2).toFixed(2));\n};\n\nexport const Round = {\n /**\n * ⚠️ Instead of using Math.round, we HAVE to use this method to round the financial numbers everywhere where we CAN'T\n * deal with dinero.js (Dinero.js should be the priority). But often for converting from API requests we have to\n * normalise the values so we use this method.\n *\n * It just a re-export of the dinero.js halfEven (a.k.a bankers rounding) method which is the default rounding method.\n * @see https://github.com/dinerojs/dinero.js/blob/v2.0.0-alpha.8/packages/core/src/round/halfEven.ts\n *\n * Compared to Math.round (arithmetic rounding) it differentiates that it changes the `.5` round up or down behaviour based on if the rounded\n * number would be an even number. So 1.5 would round to 2 while 2.5 would round to 2.\n * See the youtube link below for a brief exclamation on why it's important to use this method over regular rounding (half-up):\n * https://youtu.be/yuRdYlZvs1E\n *\n * If you really want to get knee-deep in the rounding subject, you can read the following:\n * https://en.wikipedia.org/wiki/Rounding#Round_half_toward_zero\n *\n * !!!!!!!!!!!!!!\n * ! Update 2024\n * ! We ar changing from `halfEven` (bankers rounding) to `halfAwayFromZero` (symmetric rounding) to match Avalara tax\n * @see https://knowledge.avalara.com/bundle/dqa1657870670369_dqa1657870670369/page/Change_how_AvaTax_rounds_the_tax_amount.html\n * @see https://ui.slack.com/archives/C07P7L7S3CP/p1728313196140639\n * !!!!!!!!!!!!!!\n */\n Financial: halfAwayFromZero,\n // https://ui.slack.com/archives/C07P7L7S3CP/p1728313196140639\n // TODO: maybe we should have separate rounding functions depending on the input value?\n // Reading from wiki \"Round half toward zero\" is better if the value is already \"normalized to cents\"\n // But the \"Round half to even\" seems better for when working with float like values\n // financialRound = Math.round;\n Shipping: down,\n Prettify: down,\n /**\n * ! Disclaimer may not work for \"weird\" currencies as expected\n */\n PrettifyFull059: roundToNearestFull059,\n /**\n * ! Disclaimer may not work for \"weird\" currencies as expected\n */\n PrettifyDecimalCents: roundToNearestDecimalCent,\n /**\n * ! Disclaimer may not work for \"weird\" currencies as expected\n */\n PrettifyHalfUnitCents: roundToNearestHalfUnitCent,\n Subunit: halfUp,\n} satisfies Record<string, RoundingFn>;\n\n/**\n * Mapping of how prices should be rounded down to \"whole numbers\" after certain threshold\n */\nexport const prettifyPriceLookup = new Map([\n [USD.code, 20],\n [AED.code, 50],\n // Approximately every price above ~1.1 usd will be rounded in ZAR\n [ZAR.code, 20],\n]);\n\n/**\n * Map of dinero code to subunit digit count.\n */\nexport const smallestSubunitLookup = new Map<string, [Cents, RoundingFn]>([\n /**\n * TWD does not use subunits at all in day to day transactions.\n */\n [TWD.code, [0, Round.Subunit]],\n]);\n\n/**\n * Precompiled list for faster currency and locale lookups\n */\nexport const localizedCurrencyLookup = new Map<Currency, LocalizedCurrency>([\n [Currency.Aed, { currency: AED, locale: \"ar-AE\" }],\n [Currency.Bgn, { currency: BGN, locale: \"bg-BG\" }],\n [Currency.Cad, { currency: CAD, locale: \"en-CA\" }],\n [Currency.Chf, { currency: CHF, locale: \"it-CH\" }],\n [Currency.Czk, { currency: CZK, locale: \"cs-CZ\" }],\n [Currency.Dkk, { currency: DKK, locale: \"da-DK\" }],\n [Currency.Eur, { currency: EUR, locale: \"de-DE\" }],\n [Currency.Gbp, { currency: GBP, locale: \"en-GB\" }],\n [Currency.Hrk, { currency: HRK, locale: \"hr-HR\" }],\n [Currency.Huf, { currency: HUF, locale: \"hu-HU\" }],\n [Currency.Nok, { currency: NOK, locale: \"no-NO\" }],\n [Currency.Pln, { currency: PLN, locale: \"pl-PL\" }],\n [Currency.Ron, { currency: RON, locale: \"ro-RO\" }],\n [Currency.Sek, { currency: SEK, locale: \"sv-SE\" }],\n [Currency.Usd, { currency: USD, locale: \"en-US\" }],\n [Currency.Zar, { currency: ZAR, locale: \"en-ZA\" }],\n [Currency.Inr, { currency: INR, locale: \"en-IN\" }],\n [Currency.Sgd, { currency: SGD, locale: \"en-SG\" }],\n [Currency.Brl, { currency: BRL, locale: \"pt-BR\" }],\n // NOTE: en-JP Doesn't exist\n [Currency.Jpy, { currency: JPY, locale: \"en-JP\" }],\n // NOTE: en-TW Doesn't exist\n [Currency.Twd, { currency: TWD, locale: \"en-TW\" }],\n [Currency.Mxn, { currency: MXN, locale: \"es-MX\" }],\n]);\n\n// #############################################################################\n// Tax Rate\n// #############################################################################\n/**\n * List of stores that require calculating per single item qty and then combining them to get the total tax amount for a\n * single line. Rest of the stores inherit default behavior that tax calculated on whole line item\n *\n * ! IMPORTANT: When changing need to sync that store.backend `AVATAX_CUSTOM_COMPANY_CODES` is updated to reflect the change\n *\n * FIXME: as PR for the change as unfinished currently disabled to enable the functionality that calculates tax per single item as requires\n * specific testing both for our custom tax and Avalara stores that use custom company codes. So the groundwork for\n * different tax calculations is there just need to enable on the share side and test if it works\n */\nexport const storesWithPerItemTaxRate = new Set([\n // #############################################################################\n // Stores with custom tax rates\n // #############################################################################\n // StoreId.Br,\n // StoreId.Tw,\n // #############################################################################\n // Stores with Avalara, but will have custom company codes to handle per-item tax rate\n // #############################################################################\n // StoreId.Jp,\n // StoreId.Sg,\n] as StoreId[]);\n\n/**\n * Dinero currency option block for working with tax rates within dinero\n */\nexport const TAX_RATE_DINERO_CURRENCY = {\n base: 10,\n /**\n * We expect the tax rate to be in the range of 0..1\n * 0 --> 0%\n * 1 --> 100%\n * 0.21 --> 21%\n * 0.2169 --> 21.69%\n * 0.12345678 --> 12.345678%\n * !!! Don't change as this value is tied to store.backend DB schema !!!\n */\n exponent: 8,\n code: \"\", // Not important\n} satisfies DinoCurrency;\n\n// #############################################################################\n// Exchange Rate\n// #############################################################################\n\nexport const EXCHANGE_RATE_DINERO_CURRENCY = {\n base: 10,\n /**\n * We support having certain decimal places for exchange rates\n * !!! Don't change as this value is tied to store.backend DB schema !!!\n */\n exponent: 6,\n code: \"\", // Not important\n} satisfies DinoCurrency;\n"],"names":["roundToNearestFull059","input","roundedNumber","Math","round","remainder","roundToNearestDecimalCent","parseFloat","toFixed","roundToNearestHalfUnitCent","Round","Financial","halfAwayFromZero","Shipping","down","Prettify","PrettifyFull059","PrettifyDecimalCents","PrettifyHalfUnitCents","Subunit","halfUp","prettifyPriceLookup","Map","USD","code","AED","ZAR","smallestSubunitLookup","TWD","localizedCurrencyLookup","Currency","Aed","currency","locale","Bgn","BGN","Cad","CAD","Chf","CHF","Czk","CZK","Dkk","DKK","Eur","EUR","Gbp","GBP","Hrk","HRK","Huf","HUF","Nok","NOK","Pln","PLN","Ron","RON","Sek","SEK","Usd","Zar","Inr","INR","Sgd","SGD","Brl","BRL","Jpy","JPY","Twd","Mxn","MXN","storesWithPerItemTaxRate","Set","TAX_RATE_DINERO_CURRENCY","base","exponent","EXCHANGE_RATE_DINERO_CURRENCY"],"mappings":"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"}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
import { USD,
|
|
1
|
+
import { USD, AED, ZAR, TWD, BGN, CAD, CHF, CZK, DKK, EUR, GBP, HRK, HUF, NOK, PLN, RON, SEK, INR, SGD, BRL, JPY, MXN } from '@dinero.js/currencies';
|
|
2
2
|
import { halfAwayFromZero, down, halfUp } from 'dinero.js';
|
|
3
3
|
import '../../types/index.mjs';
|
|
4
4
|
import { Currency } from '../../types/generated.mjs';
|
|
5
5
|
"use strict";
|
|
6
|
-
const
|
|
6
|
+
const roundToNearestFull059 = input => {
|
|
7
|
+
if (input === 0) {
|
|
8
|
+
return 0;
|
|
9
|
+
}
|
|
10
|
+
if (input <= 3) {
|
|
11
|
+
return 5;
|
|
12
|
+
}
|
|
7
13
|
const roundedNumber = Math.round(input);
|
|
8
14
|
const remainder = roundedNumber % 10;
|
|
9
15
|
if (remainder <= 2) {
|
|
@@ -14,6 +20,24 @@ const roundToNearestFull059Fn = input => {
|
|
|
14
20
|
return roundedNumber - remainder + 9;
|
|
15
21
|
}
|
|
16
22
|
};
|
|
23
|
+
const roundToNearestDecimalCent = input => {
|
|
24
|
+
if (input === 0) {
|
|
25
|
+
return 0;
|
|
26
|
+
}
|
|
27
|
+
if (input < 0.1) {
|
|
28
|
+
return 0.1;
|
|
29
|
+
}
|
|
30
|
+
return parseFloat((Math.round(input * 10) / 10).toFixed(1));
|
|
31
|
+
};
|
|
32
|
+
const roundToNearestHalfUnitCent = input => {
|
|
33
|
+
if (input === 0) {
|
|
34
|
+
return 0;
|
|
35
|
+
}
|
|
36
|
+
if (input < 0.5) {
|
|
37
|
+
return 0.5;
|
|
38
|
+
}
|
|
39
|
+
return parseFloat((Math.round(input * 2) / 2).toFixed(2));
|
|
40
|
+
};
|
|
17
41
|
const Round = {
|
|
18
42
|
/**
|
|
19
43
|
* ⚠️ Instead of using Math.round, we HAVE to use this method to round the financial numbers everywhere where we CAN'T
|
|
@@ -21,8 +45,7 @@ const Round = {
|
|
|
21
45
|
* normalise the values so we use this method.
|
|
22
46
|
*
|
|
23
47
|
* It just a re-export of the dinero.js halfEven (a.k.a bankers rounding) method which is the default rounding method.
|
|
24
|
-
* @see https://github.com/dinerojs/dinero.js/blob/
|
|
25
|
-
* @see
|
|
48
|
+
* @see https://github.com/dinerojs/dinero.js/blob/v2.0.0-alpha.8/packages/core/src/round/halfEven.ts
|
|
26
49
|
*
|
|
27
50
|
* Compared to Math.round (arithmetic rounding) it differentiates that it changes the `.5` round up or down behaviour based on if the rounded
|
|
28
51
|
* number would be an even number. So 1.5 would round to 2 while 2.5 would round to 2.
|
|
@@ -50,10 +73,18 @@ const Round = {
|
|
|
50
73
|
/**
|
|
51
74
|
* ! Disclaimer may not work for "weird" currencies as expected
|
|
52
75
|
*/
|
|
53
|
-
PrettifyFull059:
|
|
76
|
+
PrettifyFull059: roundToNearestFull059,
|
|
77
|
+
/**
|
|
78
|
+
* ! Disclaimer may not work for "weird" currencies as expected
|
|
79
|
+
*/
|
|
80
|
+
PrettifyDecimalCents: roundToNearestDecimalCent,
|
|
81
|
+
/**
|
|
82
|
+
* ! Disclaimer may not work for "weird" currencies as expected
|
|
83
|
+
*/
|
|
84
|
+
PrettifyHalfUnitCents: roundToNearestHalfUnitCent,
|
|
54
85
|
Subunit: halfUp
|
|
55
86
|
};
|
|
56
|
-
const prettifyPriceLookup = /* @__PURE__ */new Map([[USD.code, 20], [
|
|
87
|
+
const prettifyPriceLookup = /* @__PURE__ */new Map([[USD.code, 20], [AED.code, 50],
|
|
57
88
|
// Approximately every price above ~1.1 usd will be rounded in ZAR
|
|
58
89
|
[ZAR.code, 20]]);
|
|
59
90
|
const smallestSubunitLookup = /* @__PURE__ */new Map([
|
|
@@ -169,5 +200,5 @@ const EXCHANGE_RATE_DINERO_CURRENCY = {
|
|
|
169
200
|
code: ""
|
|
170
201
|
// Not important
|
|
171
202
|
};
|
|
172
|
-
export { EXCHANGE_RATE_DINERO_CURRENCY, Round, TAX_RATE_DINERO_CURRENCY, localizedCurrencyLookup, prettifyPriceLookup,
|
|
203
|
+
export { EXCHANGE_RATE_DINERO_CURRENCY, Round, TAX_RATE_DINERO_CURRENCY, localizedCurrencyLookup, prettifyPriceLookup, roundToNearestDecimalCent, roundToNearestFull059, roundToNearestHalfUnitCent, smallestSubunitLookup, storesWithPerItemTaxRate };
|
|
173
204
|
//# sourceMappingURL=constants.mjs.map
|