@ubnt/store.core 9.30.0-techspecs.0 → 9.30.0-techspecs.2
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 +542 -6
- package/lib/_virtual/_virtual_multi-entry.js +63 -42
- package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
- package/lib/_virtual/_virtual_multi-entry.mjs +50 -40
- package/lib/_virtual/_virtual_multi-entry.mjs.map +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/clients.svg +9 -2
- package/lib/assets/close2.svg +3 -2
- package/lib/assets/close3.svg +2 -3
- 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 +5 -0
- 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 +5 -0
- 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 +5 -0
- package/lib/{components/MobileModal/assets → assets/icons}/arrowDown.svg.js +1 -1
- package/lib/assets/icons/arrowDown.svg.mjs +3 -0
- package/lib/assets/icons/menu/icon-location-pin.svg.js +27 -0
- package/lib/assets/icons/menu/icon-location-pin.svg.js.map +1 -0
- package/lib/assets/icons/menu/icon-location-pin.svg.mjs +3 -0
- package/lib/assets/icons/menu/icon-location-pin.svg.mjs.map +1 -0
- package/lib/assets/icons/zoomOut.svg.js +27 -0
- package/lib/assets/icons/zoomOut.svg.js.map +1 -0
- package/lib/assets/icons/zoomOut.svg.mjs +3 -0
- package/lib/assets/icons/zoomOut.svg.mjs.map +1 -0
- package/lib/assets/industrial.jpg +0 -0
- package/lib/assets/industrial2.jpg +0 -0
- package/lib/assets/keyFeatures/clients_v2.svg +3 -0
- package/lib/assets/keyFeatures/{clients.svg.js → clients_v2.svg.js} +2 -2
- package/lib/assets/keyFeatures/clients_v2.svg.js.map +1 -0
- package/lib/assets/keyFeatures/clients_v2.svg.mjs +3 -0
- package/lib/assets/keyFeatures/clients_v2.svg.mjs.map +1 -0
- package/lib/assets/keyFeatures/{phased_array.svg.js → phased_array_v2.svg.js} +1 -1
- package/lib/assets/keyFeatures/phased_array_v2.svg.js.map +1 -0
- package/lib/assets/keyFeatures/{phased_array.svg.mjs → phased_array_v2.svg.mjs} +1 -1
- package/lib/assets/keyFeatures/phased_array_v2.svg.mjs.map +1 -0
- package/lib/assets/large-scale.png +0 -0
- package/lib/assets/logoUnifi.svg +10 -2
- 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 +3 -0
- package/lib/assets/plus2.svg +1 -4
- package/lib/assets/plus3.svg +4 -1
- 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/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/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 +3 -0
- package/lib/components/Accordion/Accordion.js +4 -4
- package/lib/components/Avatar/Avatar.js +2 -2
- package/lib/components/BackInStock/BackInStock.types.d.ts +1 -0
- package/lib/components/Button/Button.js +5 -5
- package/lib/components/Button/CartButton.js +2 -2
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.d.ts +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js +16 -4
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs +17 -5
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.d.ts +5 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js +82 -17
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs +82 -17
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.types.d.ts +4 -0
- 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 +2 -3
- package/lib/components/CategoryTabs/CategoryTabs.styles.js.map +1 -1
- package/lib/components/CategoryTabs/CategoryTabs.styles.mjs +2 -3
- 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 +5 -4
- package/lib/components/Container/Container.js.map +1 -1
- package/lib/components/Container/Container.mjs +5 -4
- 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 +3 -3
- package/lib/components/Explore/ExploreData.js.map +1 -1
- package/lib/components/Explore/ExploreData.mjs +3 -3
- package/lib/components/Explore/ExploreData.mjs.map +1 -1
- package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.js +1 -1
- package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.mjs +1 -1
- package/lib/components/FeaturesSection_deprecated/Features/Features.js +2 -2
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +23 -23
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +2 -2
- package/lib/components/FeaturesSection_deprecated/assets/plus.svg.js +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/plus.svg.mjs +2 -2
- 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 +33 -23
- package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
- package/lib/components/Header/AccountMenu/AccountMenu.mjs +15 -5
- 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 +7 -7
- package/lib/components/Header/CartModalV2/Item/Item.mjs +2 -2
- package/lib/components/Header/Header.js +53 -52
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/Header.mjs +16 -15
- package/lib/components/Header/Header.mjs.map +1 -1
- package/lib/components/Header/Header.styles.d.ts +7 -12
- package/lib/components/Header/Header.styles.js +10 -32
- package/lib/components/Header/Header.styles.js.map +1 -1
- package/lib/components/Header/Header.styles.mjs +10 -31
- package/lib/components/Header/Header.styles.mjs.map +1 -1
- package/lib/components/Header/Header.types.d.ts +29 -5
- package/lib/components/Header/Header.types.js +2 -1
- package/lib/components/Header/Header.types.js.map +1 -1
- package/lib/components/Header/Header.types.mjs +2 -1
- package/lib/components/Header/Header.types.mjs.map +1 -1
- package/lib/components/Header/IsolatedHeader.d.ts +1 -0
- package/lib/components/Header/IsolatedHeader.js +53 -53
- package/lib/components/Header/IsolatedHeader.js.map +1 -1
- package/lib/components/Header/IsolatedHeader.mjs +49 -48
- package/lib/components/Header/IsolatedHeader.mjs.map +1 -1
- package/lib/components/Header/LanguageFrame/LanguageFrame.js +6 -6
- package/lib/components/Header/LogoIcon/LogoIcon.d.ts +7 -0
- package/lib/components/Header/LogoIcon/LogoIcon.js +46 -0
- package/lib/components/Header/LogoIcon/LogoIcon.js.map +1 -0
- package/lib/components/Header/LogoIcon/LogoIcon.mjs +36 -0
- package/lib/components/Header/LogoIcon/LogoIcon.mjs.map +1 -0
- package/lib/components/Header/LogoIcon/index.d.ts +1 -0
- package/lib/components/Header/LogoIcon/index.js +6 -0
- package/lib/components/{ResourceCalculatorV1/components → Header/LogoIcon}/index.js.map +1 -1
- package/lib/components/{ResourceCalculatorV1/components → Header/LogoIcon}/index.mjs +1 -1
- 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 +1 -0
- 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 +7 -5
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.js.map +1 -1
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.mjs +7 -5
- 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 +116 -109
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +111 -104
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +9 -0
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js +15 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs +13 -2
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +12 -6
- package/lib/components/Header/Overlay/Overlay.js +3 -3
- package/lib/components/Header/ProHeader/ProHeader.d.ts +9 -5
- package/lib/components/Header/ProHeader/ProHeader.js +275 -194
- package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.mjs +254 -174
- package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +30 -25
- package/lib/components/Header/ProHeader/ProHeader.styles.js +119 -66
- package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs +112 -65
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
- package/lib/components/Header/translations/ar.json.js +4 -1
- package/lib/components/Header/translations/ar.json.js.map +1 -1
- package/lib/components/Header/translations/ar.json.mjs +4 -2
- package/lib/components/Header/translations/ar.json.mjs.map +1 -1
- package/lib/components/Header/translations/de.json.js +4 -1
- package/lib/components/Header/translations/de.json.js.map +1 -1
- package/lib/components/Header/translations/de.json.mjs +4 -2
- package/lib/components/Header/translations/de.json.mjs.map +1 -1
- package/lib/components/Header/translations/el.json.js +4 -1
- package/lib/components/Header/translations/el.json.js.map +1 -1
- package/lib/components/Header/translations/el.json.mjs +4 -2
- package/lib/components/Header/translations/el.json.mjs.map +1 -1
- package/lib/components/Header/translations/en.json.js +7 -1
- package/lib/components/Header/translations/en.json.js.map +1 -1
- package/lib/components/Header/translations/en.json.mjs +6 -2
- package/lib/components/Header/translations/en.json.mjs.map +1 -1
- package/lib/components/Header/translations/es.json.js +4 -1
- package/lib/components/Header/translations/es.json.js.map +1 -1
- package/lib/components/Header/translations/es.json.mjs +4 -2
- package/lib/components/Header/translations/es.json.mjs.map +1 -1
- package/lib/components/Header/translations/fr.json.js +4 -1
- package/lib/components/Header/translations/fr.json.js.map +1 -1
- package/lib/components/Header/translations/fr.json.mjs +4 -2
- package/lib/components/Header/translations/fr.json.mjs.map +1 -1
- package/lib/components/Header/translations/it.json.js +4 -1
- package/lib/components/Header/translations/it.json.js.map +1 -1
- package/lib/components/Header/translations/it.json.mjs +4 -2
- package/lib/components/Header/translations/it.json.mjs.map +1 -1
- package/lib/components/Header/translations/ja.json.js +4 -1
- package/lib/components/Header/translations/ja.json.js.map +1 -1
- package/lib/components/Header/translations/ja.json.mjs +4 -2
- package/lib/components/Header/translations/ja.json.mjs.map +1 -1
- package/lib/components/Header/translations/pt-BR.json.js +4 -1
- package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
- package/lib/components/Header/translations/pt-BR.json.mjs +4 -2
- package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
- package/lib/components/Header/translations/zh-Hans.json.js +4 -1
- package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
- package/lib/components/Header/translations/zh-Hans.json.mjs +4 -2
- package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.js +4 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.mjs +4 -2
- 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/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.d.ts +1 -1
- package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.js +3 -1
- package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.js.map +1 -0
- package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.mjs +3 -1
- package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.mjs.map +1 -0
- package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.styles.d.ts +1 -0
- package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.styles.js +10 -7
- package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.js.map +1 -0
- package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.styles.mjs +10 -7
- package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.mjs.map +1 -0
- package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.types.d.ts +1 -0
- 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/MicrositeHeader/MicrositeHeader.d.ts +2 -0
- package/lib/components/MicrositeHeader/MicrositeHeader.js +30 -0
- package/lib/components/MicrositeHeader/MicrositeHeader.js.map +1 -0
- package/lib/components/MicrositeHeader/MicrositeHeader.mjs +28 -0
- package/lib/components/MicrositeHeader/MicrositeHeader.mjs.map +1 -0
- package/lib/components/MicrositeHeader/MicrositeHeader.styles.d.ts +2 -0
- package/lib/components/MicrositeHeader/MicrositeHeader.types.d.ts +7 -0
- package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.d.ts +2 -0
- package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.js +139 -0
- package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.js.map +1 -0
- package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.mjs +130 -0
- package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.mjs.map +1 -0
- package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.d.ts +59 -0
- package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.js +424 -0
- package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.js.map +1 -0
- package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.mjs +389 -0
- package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.mjs.map +1 -0
- package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.types.d.ts +21 -0
- package/lib/components/MicrositeHeader/components/DropdownMenu/index.d.ts +1 -0
- package/lib/components/MicrositeHeader/components/DropdownMenu/index.js +6 -0
- package/lib/components/MicrositeHeader/components/DropdownMenu/index.js.map +1 -0
- package/lib/components/MicrositeHeader/components/DropdownMenu/index.mjs +3 -0
- package/lib/components/MicrositeHeader/components/DropdownMenu/index.mjs.map +1 -0
- package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.d.ts +2 -0
- package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.d.ts +22 -0
- package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.js +148 -0
- package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.js.map +1 -0
- package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.mjs +126 -0
- package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.mjs.map +1 -0
- package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.types.d.ts +12 -0
- package/lib/components/MicrositeHeader/components/FirstLevelMenu/index.d.ts +1 -0
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.d.ts +7 -0
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.js +244 -0
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.js.map +1 -0
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.mjs +233 -0
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.mjs.map +1 -0
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.d.ts +36 -0
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.js +233 -0
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.js.map +1 -0
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.mjs +211 -0
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.mjs.map +1 -0
- package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.d.ts +8 -0
- package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.js +47 -0
- package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.js.map +1 -0
- package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.mjs +39 -0
- package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.mjs.map +1 -0
- package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.d.ts +1 -0
- package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.js +6 -0
- package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.js.map +1 -0
- package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.mjs +3 -0
- package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.mjs.map +1 -0
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.d.ts +5 -0
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.js +74 -0
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.js.map +1 -0
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.mjs +72 -0
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.mjs.map +1 -0
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.d.ts +30 -0
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.js +201 -0
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.js.map +1 -0
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.mjs +179 -0
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.mjs.map +1 -0
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.d.ts +1 -0
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.js +6 -0
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.js.map +1 -0
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.mjs +3 -0
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.mjs.map +1 -0
- package/lib/components/MicrositeHeader/components/Navigation/index.d.ts +1 -0
- package/lib/components/MicrositeHeader/components/Navigation/index.js +7 -0
- package/lib/components/MicrositeHeader/components/Navigation/index.js.map +1 -0
- package/lib/components/MicrositeHeader/components/Navigation/index.mjs +3 -0
- package/lib/components/MicrositeHeader/components/Navigation/index.mjs.map +1 -0
- package/lib/components/MicrositeHeader/components/SecondLevelMenu/SecondLevelMenu.d.ts +2 -0
- package/lib/components/MicrositeHeader/components/SecondLevelMenu/SecondLevelMenu.styles.d.ts +13 -0
- package/lib/components/MicrositeHeader/components/SecondLevelMenu/SecondLevelMenu.types.d.ts +11 -0
- package/lib/components/MicrositeHeader/components/SecondLevelMenu/index.d.ts +1 -0
- package/lib/components/MicrositeHeader/components/SiteMapColumns/SiteMapColumns.d.ts +17 -0
- package/lib/components/MicrositeHeader/components/SiteMapColumns/SiteMapColumns.styles.d.ts +13 -0
- package/lib/components/MicrositeHeader/components/SiteMapColumns/index.d.ts +1 -0
- package/lib/components/MicrositeHeader/index.d.ts +1 -0
- package/lib/components/MicrositeHeader/index.js +6 -0
- package/lib/components/MicrositeHeader/index.js.map +1 -0
- package/lib/components/MicrositeHeader/index.mjs +3 -0
- package/lib/components/MicrositeHeader/index.mjs.map +1 -0
- 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/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 +4 -0
- 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/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/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/{assets/icons/menu/icon-globe.svg.js → components/ModelCompareV3/assets/WiFi/flagship.jpg.js} +6 -6
- package/lib/components/ModelCompareV3/assets/WiFi/flagship.jpg.js.map +1 -0
- package/lib/components/ModelCompareV3/assets/WiFi/flagship.jpg.mjs +3 -0
- package/lib/components/ModelCompareV3/assets/WiFi/flagship.jpg.mjs.map +1 -0
- package/lib/components/ModelCompareV3/assets/WiFi/flexible-outdoor.jpg.js +27 -0
- package/lib/components/ModelCompareV3/assets/WiFi/flexible-outdoor.jpg.js.map +1 -0
- package/lib/components/ModelCompareV3/assets/WiFi/flexible-outdoor.jpg.mjs +3 -0
- package/lib/components/ModelCompareV3/assets/WiFi/flexible-outdoor.jpg.mjs.map +1 -0
- package/lib/components/ModelCompareV3/assets/WiFi/mega-capacity.jpg.js +27 -0
- package/lib/components/ModelCompareV3/assets/WiFi/mega-capacity.jpg.js.map +1 -0
- package/lib/components/ModelCompareV3/assets/WiFi/mega-capacity.jpg.mjs +3 -0
- package/lib/components/ModelCompareV3/assets/WiFi/mega-capacity.jpg.mjs.map +1 -0
- package/lib/components/ModelCompareV3/assets/WiFi/wall.jpg.js +27 -0
- package/lib/components/ModelCompareV3/assets/WiFi/wall.jpg.js.map +1 -0
- package/lib/components/ModelCompareV3/assets/WiFi/wall.jpg.mjs +3 -0
- package/lib/components/ModelCompareV3/assets/WiFi/wall.jpg.mjs.map +1 -0
- package/lib/components/ModelCompareV3/assets/clients.svg.js +1 -1
- package/lib/components/ModelCompareV3/assets/clients.svg.mjs +2 -2
- package/lib/components/ModelCompareV3/data/CloudGateways.js +9 -9
- package/lib/components/ModelCompareV3/data/CloudGateways.mjs +6 -6
- package/lib/components/ModelCompareV3/data/WiFi.d.ts +2 -0
- package/lib/components/ModelCompareV3/data/WiFi.js +23 -0
- package/lib/components/ModelCompareV3/data/WiFi.js.map +1 -0
- package/lib/components/ModelCompareV3/data/WiFi.mjs +21 -0
- package/lib/components/ModelCompareV3/data/WiFi.mjs.map +1 -0
- package/lib/components/ModelCompareV3/data/index.d.ts +20 -19
- package/lib/components/ModelCompareV3/data/index.js +41 -38
- package/lib/components/ModelCompareV3/data/index.js.map +1 -1
- package/lib/components/ModelCompareV3/data/index.mjs +41 -38
- package/lib/components/ModelCompareV3/data/index.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.js +2 -2
- package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.mjs +2 -2
- package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.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 +3 -3
- package/lib/components/ModelCompareV3/data/products/express.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/ucgMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs.map +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 +3 -3
- 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 +4 -4
- 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 +4 -4
- 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 +4 -4
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udr.js +2 -2
- package/lib/components/ModelCompareV3/data/products/udr.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udr.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/udr.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udw.js +3 -2
- package/lib/components/ModelCompareV3/data/products/udw.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udw.mjs +4 -3
- package/lib/components/ModelCompareV3/data/products/udw.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/wifiFlagship.d.ts +2 -0
- package/lib/components/ModelCompareV3/data/products/wifiFlagship.js +70 -0
- package/lib/components/ModelCompareV3/data/products/wifiFlagship.js.map +1 -0
- package/lib/components/ModelCompareV3/data/products/wifiFlagship.mjs +62 -0
- package/lib/components/ModelCompareV3/data/products/wifiFlagship.mjs.map +1 -0
- package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.d.ts +2 -0
- package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.js +73 -0
- package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.js.map +1 -0
- package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.mjs +65 -0
- package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.mjs.map +1 -0
- package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.d.ts +2 -0
- package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.js +73 -0
- package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.js.map +1 -0
- package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.mjs +65 -0
- package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.mjs.map +1 -0
- package/lib/components/ModelCompareV3/data/products/wifiWall.d.ts +2 -0
- package/lib/components/ModelCompareV3/data/products/wifiWall.js +74 -0
- package/lib/components/ModelCompareV3/data/products/wifiWall.js.map +1 -0
- package/lib/components/ModelCompareV3/data/products/wifiWall.mjs +66 -0
- package/lib/components/ModelCompareV3/data/products/wifiWall.mjs.map +1 -0
- 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/translations/en.json.js +59 -6
- package/lib/components/ModelCompareV3/translations/en.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/en.json.mjs +59 -6
- package/lib/components/ModelCompareV3/translations/en.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/useModelCompareTranslation.d.ts +2 -2
- 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/ProductTechSpecsV2/ProductTechSpecs.d.ts +2 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js +45 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js.map +1 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs +37 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs.map +1 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.d.ts +9 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js +54 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js.map +1 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs +42 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs.map +1 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.types.d.ts +14 -0
- package/lib/components/ProductTechSpecsV2/index.d.ts +1 -0
- package/lib/components/ProductTechSpecsV2/index.js +6 -0
- package/lib/components/ProductTechSpecsV2/index.js.map +1 -0
- package/lib/components/ProductTechSpecsV2/index.mjs +3 -0
- package/lib/components/ProductTechSpecsV2/index.mjs.map +1 -0
- 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 +313 -17
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs +311 -17
- 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 +3 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js +2 -0
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs +2 -0
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js +125 -39
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.mjs +120 -34
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.d.ts +16 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.js +54 -12
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.mjs +50 -11
- 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 +7 -8
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.mjs +1 -2
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.js +27 -0
- package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.js.map +1 -0
- package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.mjs +3 -0
- package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.mjs.map +1 -0
- package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.js +27 -0
- package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.js.map +1 -0
- package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.mjs +3 -0
- package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.mjs.map +1 -0
- package/lib/components/ResourceCalculatorV1/translations/en.json.js +6 -4
- package/lib/components/ResourceCalculatorV1/translations/en.json.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/translations/en.json.mjs +6 -4
- 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 +0 -1
- package/lib/components/Search/Input/Input.styles.js.map +1 -1
- package/lib/components/Search/Input/Input.styles.mjs +0 -1
- package/lib/components/Search/Input/Input.styles.mjs.map +1 -1
- package/lib/components/Search/Input/Input.types.d.ts +3 -2
- 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 +20 -20
- package/lib/components/VideoPlayerNew/VideoPlayer.mjs +1 -1
- package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
- package/lib/components/index.d.ts +3 -0
- package/lib/components/index.js +36 -30
- package/lib/components/index.js.map +1 -1
- package/lib/components/index.mjs +36 -30
- 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 +6 -6
- package/lib/constants/icons/generic/index.mjs +1 -1
- package/lib/constants/icons/generic/plus.svg.js +5 -5
- package/lib/constants/icons/generic/plus.svg.mjs +2 -2
- 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/consolidatedSpecialDevices.svg.js +27 -0
- package/lib/constants/icons/menu/consolidatedSpecialDevices.svg.js.map +1 -0
- package/lib/constants/icons/menu/consolidatedSpecialDevices.svg.mjs +3 -0
- package/lib/constants/icons/menu/consolidatedSpecialDevices.svg.mjs.map +1 -0
- package/lib/constants/icons/menu/doorAccess.svg.js +27 -0
- package/lib/constants/icons/menu/doorAccess.svg.js.map +1 -0
- package/lib/constants/icons/menu/doorAccess.svg.mjs +3 -0
- package/lib/constants/icons/menu/doorAccess.svg.mjs.map +1 -0
- package/lib/constants/icons/menu/index.d.ts +3 -0
- package/lib/constants/icons/menu/index.js +27 -0
- package/lib/constants/icons/menu/index.js.map +1 -1
- package/lib/constants/icons/menu/index.mjs +6 -0
- package/lib/constants/icons/menu/index.mjs.map +1 -1
- package/lib/constants/icons/menu/overview.svg.js +27 -0
- package/lib/constants/icons/menu/overview.svg.js.map +1 -0
- package/lib/constants/icons/menu/overview.svg.mjs +3 -0
- package/lib/constants/icons/menu/overview.svg.mjs.map +1 -0
- 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/proStoreCategories/mapping/filters.d.ts +15 -0
- package/lib/constants/proStoreCategories/mapping/filters.js +15 -0
- package/lib/constants/proStoreCategories/mapping/filters.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/filters.mjs +15 -0
- package/lib/constants/proStoreCategories/mapping/filters.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.d.ts +2 -2
- package/lib/constants/proStoreCategories/mapping/index.js +62 -89
- package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.mjs +61 -87
- package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/mapping.d.ts +4 -0
- package/lib/constants/proStoreCategories/mapping/redirects.js +25 -2
- package/lib/constants/proStoreCategories/mapping/redirects.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/redirects.mjs +25 -2
- package/lib/constants/proStoreCategories/mapping/redirects.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.d.ts +6 -8
- package/lib/constants/proStoreCategories/mapping/unifi.js +6 -8
- package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.mjs +6 -8
- package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.js +8 -3
- package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.mjs +8 -4
- package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.js +8 -3
- package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.mjs +8 -4
- package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.js +8 -3
- package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.mjs +8 -4
- package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.js +2 -2
- package/lib/constants/proStoreCategories/translations/en.json.mjs +2 -2
- package/lib/constants/proStoreCategories/translations/es.json.js +8 -3
- package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.mjs +8 -4
- package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js +8 -3
- package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.mjs +8 -4
- package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.js +8 -3
- package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.mjs +8 -4
- package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.js +8 -3
- package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.mjs +8 -4
- package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js +8 -3
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +8 -4
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +8 -3
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +8 -4
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +8 -3
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +8 -4
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/constants/proStoreFilters/mapping.d.ts +39 -3
- package/lib/constants/proStoreFilters/mapping.js +105 -7
- package/lib/constants/proStoreFilters/mapping.js.map +1 -1
- package/lib/constants/proStoreFilters/mapping.mjs +105 -7
- 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 +4 -0
- package/lib/constants/theme.js.map +1 -1
- package/lib/constants/theme.mjs +4 -0
- package/lib/constants/theme.mjs.map +1 -1
- package/lib/contexts/MenuContext/context.js +33 -33
- package/lib/contexts/MenuContext/context.js.map +1 -1
- package/lib/contexts/MenuContext/context.mjs +1 -1
- 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 +6 -1
- package/lib/contexts/MenuContext/utils.js +16 -0
- package/lib/contexts/MenuContext/utils.js.map +1 -1
- package/lib/contexts/MenuContext/utils.mjs +16 -1
- package/lib/contexts/MenuContext/utils.mjs.map +1 -1
- package/lib/contexts/MicrositeMenuContext/assets/aggregation.png.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/aggregation.png.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/aggregation.png.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/aggregation.png.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/bullet.png.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/bullet.png.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/bullet.png.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/bullet.png.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/camera-special-devices.png.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/camera-special-devices.png.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/camera-special-devices.png.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/camera-special-devices.png.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/cloud-gateway-overview.png.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/cloud-gateway-overview.png.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/cloud-gateway-overview.png.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/cloud-gateway-overview.png.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/compact-switching.png.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/compact-switching.png.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/compact-switching.png.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/compact-switching.png.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/compact.png.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/compact.png.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/compact.png.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/compact.png.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/digital-signage.png.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/digital-signage.png.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/digital-signage.png.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/digital-signage.png.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/dome-turret.png.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/dome-turret.png.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/dome-turret.png.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/dome-turret.png.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/door-access.png.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/door-access.png.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/door-access.png.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/door-access.png.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/education.jpg.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/education.jpg.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/education.jpg.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/education.jpg.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/enterprise-scale.png.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/enterprise-scale.png.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/enterprise-scale.png.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/enterprise-scale.png.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/enterprise.jpg.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/enterprise.jpg.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/enterprise.jpg.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/enterprise.jpg.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/ev-charging.png.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/ev-charging.png.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/ev-charging.png.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/ev-charging.png.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/gbe-1u-2.5and10.png.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/gbe-1u-2.5and10.png.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/gbe-1u-2.5and10.png.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/gbe-1u-2.5and10.png.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/gbe-1u.png.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/gbe-1u.png.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/gbe-1u.png.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/gbe-1u.png.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/hospitality.jpg.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/hospitality.jpg.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/hospitality.jpg.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/hospitality.jpg.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/how-it-works.jpg.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/how-it-works.jpg.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/how-it-works.jpg.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/how-it-works.jpg.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/index.d.ts +41 -0
- package/lib/contexts/MicrositeMenuContext/assets/index.js +45 -0
- package/lib/contexts/MicrositeMenuContext/assets/index.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/index.mjs +43 -0
- package/lib/contexts/MicrositeMenuContext/assets/index.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/industrial.jpg.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/industrial.jpg.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/industrial.jpg.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/industrial.jpg.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/large-scale.png.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/large-scale.png.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/large-scale.png.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/large-scale.png.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/managed-voip.png.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/managed-voip.png.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/managed-voip.png.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/managed-voip.png.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/mobile-routing.png.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/mobile-routing.png.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/mobile-routing.png.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/mobile-routing.png.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/nextai-camera.jpg.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/nextai-camera.jpg.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/nextai-camera.jpg.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/nextai-camera.jpg.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/nextai-cyber.jpg.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/nextai-cyber.jpg.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/nextai-cyber.jpg.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/nextai-cyber.jpg.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/premium-audio.png.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/premium-audio.png.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/premium-audio.png.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/premium-audio.png.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/ptz.png.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/ptz.png.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/ptz.png.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/ptz.png.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/retail.jpg.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/retail.jpg.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/retail.jpg.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/retail.jpg.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/sd-wan-sase.jpg.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/sd-wan-sase.jpg.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/sd-wan-sase.jpg.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/sd-wan-sase.jpg.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/security-overview.png.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/security-overview.png.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/security-overview.png.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/security-overview.png.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/site-manager.jpg.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/site-manager.jpg.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/site-manager.jpg.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/site-manager.jpg.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/stadium.jpg.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/stadium.jpg.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/stadium.jpg.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/stadium.jpg.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/switching-overview.png.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/switching-overview.png.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/switching-overview.png.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/switching-overview.png.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/tco-calculator.jpg.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/tco-calculator.jpg.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/tco-calculator.jpg.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/tco-calculator.jpg.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/unifi-drive.png.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/unifi-drive.png.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/unifi-drive.png.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/unifi-drive.png.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/video-recorders.png.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/video-recorders.png.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/video-recorders.png.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/video-recorders.png.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/wifi-bridging.png.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/wifi-bridging.png.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/wifi-bridging.png.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/wifi-bridging.png.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/wifi-flagship.png.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/wifi-flagship.png.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/wifi-flagship.png.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/wifi-flagship.png.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/wifi-integrated.png.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/wifi-integrated.png.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/wifi-integrated.png.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/wifi-integrated.png.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/wifi-mega-capacity.png.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/wifi-mega-capacity.png.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/wifi-mega-capacity.png.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/wifi-mega-capacity.png.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/wifi-outdoor.png.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/wifi-outdoor.png.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/wifi-outdoor.png.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/wifi-outdoor.png.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/wifi-overview.png.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/wifi-overview.png.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/wifi-overview.png.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/wifi-overview.png.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/wifi-wall.png.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/wifi-wall.png.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/wifi-wall.png.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/wifi-wall.png.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/context.d.ts +36 -0
- package/lib/contexts/MicrositeMenuContext/context.js +100 -0
- package/lib/contexts/MicrositeMenuContext/context.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/context.mjs +96 -0
- package/lib/contexts/MicrositeMenuContext/context.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/index.d.ts +1 -0
- package/lib/contexts/MicrositeMenuContext/index.js +8 -0
- package/lib/contexts/MicrositeMenuContext/index.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/index.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/index.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/mapping.d.ts +16 -0
- package/lib/contexts/MicrositeMenuContext/mapping.js +789 -0
- package/lib/contexts/MicrositeMenuContext/mapping.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/mapping.mjs +713 -0
- package/lib/contexts/MicrositeMenuContext/mapping.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/ar.json.js +8 -0
- package/lib/contexts/MicrositeMenuContext/translations/ar.json.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/ar.json.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/translations/ar.json.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/de.json.js +8 -0
- package/lib/contexts/MicrositeMenuContext/translations/de.json.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/de.json.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/translations/de.json.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/el.json.js +8 -0
- package/lib/contexts/MicrositeMenuContext/translations/el.json.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/el.json.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/translations/el.json.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/en.json.js +128 -0
- package/lib/contexts/MicrositeMenuContext/translations/en.json.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/en.json.mjs +123 -0
- package/lib/contexts/MicrositeMenuContext/translations/en.json.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/es.json.js +8 -0
- package/lib/contexts/MicrositeMenuContext/translations/es.json.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/es.json.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/translations/es.json.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/fr.json.js +8 -0
- package/lib/contexts/MicrositeMenuContext/translations/fr.json.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/fr.json.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/translations/fr.json.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/it.json.js +8 -0
- package/lib/contexts/MicrositeMenuContext/translations/it.json.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/it.json.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/translations/it.json.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/ja.json.js +8 -0
- package/lib/contexts/MicrositeMenuContext/translations/ja.json.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/ja.json.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/translations/ja.json.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/pt-BR.json.js +8 -0
- package/lib/contexts/MicrositeMenuContext/translations/pt-BR.json.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/pt-BR.json.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/translations/pt-BR.json.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/zh-Hans.json.js +8 -0
- package/lib/contexts/MicrositeMenuContext/translations/zh-Hans.json.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/zh-Hans.json.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/translations/zh-Hans.json.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/zh-Hant-TW.json.js +8 -0
- package/lib/contexts/MicrositeMenuContext/translations/zh-Hant-TW.json.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/zh-Hant-TW.json.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/translations/zh-Hant-TW.json.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations.d.ts +7 -0
- package/lib/contexts/MicrositeMenuContext/translations.js +47 -0
- package/lib/contexts/MicrositeMenuContext/translations.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations.mjs +25 -0
- package/lib/contexts/MicrositeMenuContext/translations.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/types.d.ts +102 -0
- package/lib/contexts/MicrositeMenuContext/types.js +16 -0
- package/lib/contexts/MicrositeMenuContext/types.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/types.mjs +15 -0
- package/lib/contexts/MicrositeMenuContext/types.mjs.map +1 -0
- package/lib/contexts/index.d.ts +1 -0
- package/lib/contexts/index.js +2 -0
- package/lib/contexts/index.js.map +1 -1
- package/lib/contexts/index.mjs +2 -0
- package/lib/contexts/index.mjs.map +1 -1
- package/lib/helpers/index.d.ts +1 -0
- package/lib/helpers/index.js +11 -0
- package/lib/helpers/index.js.map +1 -1
- package/lib/helpers/index.mjs +1 -0
- package/lib/helpers/index.mjs.map +1 -1
- package/lib/helpers/proStoreCategories.js +2 -2
- package/lib/helpers/product.d.ts +87 -0
- package/lib/helpers/product.js +346 -0
- package/lib/helpers/product.js.map +1 -0
- package/lib/helpers/product.mjs +335 -0
- package/lib/helpers/product.mjs.map +1 -0
- package/lib/helpers/product.test.d.ts +1 -0
- package/lib/helpers/ux.d.ts +9 -1
- package/lib/helpers/ux.js +15 -0
- package/lib/helpers/ux.js.map +1 -1
- package/lib/helpers/ux.mjs +15 -1
- 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/index.d.ts +1 -0
- package/lib/types/index.js +2 -0
- package/lib/types/index.js.map +1 -1
- package/lib/types/index.mjs +1 -0
- package/lib/types/index.mjs.map +1 -1
- package/lib/types/product.d.ts +87 -0
- package/lib/types/product.js +14 -0
- package/lib/types/product.js.map +1 -0
- package/lib/types/product.mjs +13 -0
- package/lib/types/product.mjs.map +1 -0
- package/lib/utils/address.d.ts +278 -62
- package/lib/utils/address.js +11 -8
- package/lib/utils/address.js.map +1 -1
- package/lib/utils/address.mjs +11 -8
- package/lib/utils/address.mjs.map +1 -1
- package/lib/utils/array.d.ts +4 -0
- package/lib/utils/array.js +10 -0
- package/lib/utils/array.js.map +1 -1
- package/lib/utils/array.mjs +10 -1
- package/lib/utils/array.mjs.map +1 -1
- package/lib/utils/money/constants.d.ts +7 -0
- package/lib/utils/money/constants.js +9 -1
- package/lib/utils/money/constants.js.map +1 -1
- package/lib/utils/money/constants.mjs +10 -2
- package/lib/utils/money/constants.mjs.map +1 -1
- package/lib/utils/money/tax.private.d.ts +0 -8
- package/lib/utils/money/tax.private.js +5 -14
- package/lib/utils/money/tax.private.js.map +1 -1
- package/lib/utils/money/tax.private.mjs +8 -16
- package/lib/utils/money/tax.private.mjs.map +1 -1
- package/lib/utils/productSort.d.ts +41 -0
- package/lib/utils/productSort.js +67 -0
- package/lib/utils/productSort.js.map +1 -0
- package/lib/utils/productSort.mjs +60 -0
- package/lib/utils/productSort.mjs.map +1 -0
- package/lib/utils/validations/lastNameSuperRefinement.d.ts +11 -0
- package/lib/utils/validations/lastNameSuperRefinement.js +25 -0
- package/lib/utils/validations/lastNameSuperRefinement.js.map +1 -0
- package/lib/utils/validations/lastNameSuperRefinement.mjs +21 -0
- package/lib/utils/validations/lastNameSuperRefinement.mjs.map +1 -0
- package/package.json +1 -1
- package/lib/assets/clients2.svg +0 -10
- package/lib/assets/icons/menu/icon-globe.svg.js.map +0 -1
- package/lib/assets/icons/menu/icon-globe.svg.mjs +0 -3
- package/lib/assets/icons/menu/icon-globe.svg.mjs.map +0 -1
- package/lib/assets/keyFeatures/clients.svg.js.map +0 -1
- package/lib/assets/keyFeatures/clients.svg.mjs +0 -3
- package/lib/assets/keyFeatures/clients.svg.mjs.map +0 -1
- package/lib/assets/keyFeatures/phased_array.svg.js.map +0 -1
- package/lib/assets/keyFeatures/phased_array.svg.mjs.map +0 -1
- package/lib/components/MobileModal/assets/arrowDown.svg.mjs +0 -3
- package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.js.map +0 -1
- package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.mjs.map +0 -1
- package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.js.map +0 -1
- package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.mjs.map +0 -1
- package/lib/components/ResourceCalculatorV1/components/index.d.ts +0 -1
- package/lib/components/ResourceCalculatorV1/components/index.js +0 -5
- /package/lib/assets/{keyFeatures/clients.svg → clients_v2.svg} +0 -0
- /package/lib/{components/MobileModal/assets → assets/icons}/arrowDown.svg.js.map +0 -0
- /package/lib/{components/MobileModal/assets → assets/icons}/arrowDown.svg.mjs.map +0 -0
- /package/lib/assets/keyFeatures/{phased_array.svg → phased_array_v2.svg} +0 -0
- /package/lib/components/{ResourceCalculatorV1/components → Header/LogoIcon}/index.mjs.map +0 -0
- /package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/index.d.ts +0 -0
- /package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/index.js +0 -0
- /package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/index.js.map +0 -0
- /package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/index.mjs +0 -0
- /package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/index.mjs.map +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tax.private.js","sources":["../../../src/utils/money/tax.private.ts"],"sourcesContent":["// #############################################################################\n// Internal helper functions not for consumption outside of store.core!\n// Wrote as separate files so that they can be easily unit tested without exposing them\n// #############################################################################\nimport type { Dinero } from \"dinero.js\";\nimport { add,
|
|
1
|
+
{"version":3,"file":"tax.private.js","sources":["../../../src/utils/money/tax.private.ts"],"sourcesContent":["// #############################################################################\n// Internal helper functions not for consumption outside of store.core!\n// Wrote as separate files so that they can be easily unit tested without exposing them\n// #############################################################################\nimport type { Dinero } from \"dinero.js\";\nimport { add, dinero, subtract } from \"dinero.js\";\n\nimport { FixedAmountAllocator } from \"./allocators/fixedAmount\";\nimport { Round } from \"./constants\";\nimport { amount, getDinero, getDineroCurrency } from \"./misc\";\nimport type {\n Cents,\n LineItemSummary,\n SingleLineItemSummary,\n TaxRate,\n} from \"./types\";\n\n/**\n * Reverse engineer the taxable amount from \"whole item\" taxable amount into \"per item\" taxable amount for custom tax\n * rate calculations\n */\nexport const allocatePerItemTaxableAmount = (\n itemSummary: LineItemSummary,\n): SingleLineItemSummary[] => {\n /**\n * If the item quantity is 1, we can just return the item summary as is\n */\n if (itemSummary.quantity === 1) {\n return [itemSummary as SingleLineItemSummary];\n }\n\n // Reverse engineer price before discount\n const preDiscountAmount = add(\n getDinero(itemSummary.taxableAmount, itemSummary.currency),\n getDinero(itemSummary.discountAmount, itemSummary.currency),\n );\n\n const allocator = new FixedAmountAllocator({\n initialAllocateAmount: itemSummary.discountAmount,\n initialTotalAmount: amount(preDiscountAmount),\n currency: itemSummary.currency,\n });\n\n // Iterate over the amount of qty to reverse engineer the discount price\n return Array.from({ length: itemSummary.quantity }, () => {\n const discountAllocatedAmount = allocator.allocate(\n itemSummary.itemPrice,\n itemSummary.currency,\n );\n\n const taxableAmount = subtract(\n getDinero(itemSummary.itemPrice, itemSummary.currency),\n discountAllocatedAmount,\n );\n\n return {\n itemPrice: itemSummary.itemPrice,\n taxableAmount: amount(taxableAmount),\n discountAmount: amount(discountAllocatedAmount),\n currency: itemSummary.currency,\n quantity: 1,\n } as SingleLineItemSummary;\n });\n};\n\nexport const calculateWholeQtyLineItemTax = (\n itemSummary: LineItemSummary,\n taxRate: TaxRate,\n): Dinero<Cents> => {\n // Nothing to calculate\n if (taxRate === 0) {\n return getDinero(0, itemSummary.currency);\n }\n\n /**\n * Historically we calculate the tax by using dinero allocation, but we did not have control over how we round things.\n * So instead as we are already working with currency in cents we can multiply and round it ourselves.\n */\n return dinero({\n amount: Round.Financial(itemSummary.taxableAmount * taxRate),\n currency: getDineroCurrency(itemSummary.currency),\n });\n};\n\nexport const calculatePerQtyLineItemTax = (\n itemSummary: LineItemSummary,\n taxRate: TaxRate,\n): Dinero<Cents> => {\n // Nothing to calculate\n if (taxRate === 0) {\n return getDinero(0, itemSummary.currency);\n }\n\n // Split the item summary into per individual item qty summaries\n const singleItemSummaries = allocatePerItemTaxableAmount(itemSummary);\n\n // Calculate individual item qty tax and sum them up\n let totalTaxAmount = getDinero(0, itemSummary.currency);\n\n singleItemSummaries.forEach((itemSummary) => {\n // Probably a bit confusing at first, but calling the whole qty tax calculation function here as we can safely use\n // it as item summary is always a single item summary here\n const taxAmount = calculateWholeQtyLineItemTax(itemSummary, taxRate);\n totalTaxAmount = add(totalTaxAmount, taxAmount);\n });\n\n return totalTaxAmount;\n};\n"],"names":["allocatePerItemTaxableAmount","itemSummary","quantity","preDiscountAmount","add","getDinero","taxableAmount","currency","discountAmount","allocator","FixedAmountAllocator","initialAllocateAmount","initialTotalAmount","amount","Array","from","length","discountAllocatedAmount","allocate","itemPrice","subtract","calculateWholeQtyLineItemTax","taxRate","dinero","Round","Financial","getDineroCurrency","calculatePerQtyLineItemTax","singleItemSummaries","totalTaxAmount","forEach","taxAmount"],"mappings":";;;;;;;AAqBa,MAAAA,4BAAA,GACXC,WAC4B,IAAA;EAIxB,IAAAA,WAAA,CAAYC,aAAa,CAAG,EAAA;IAC9B,OAAO,CAACD,WAAoC,CAAA;EAC9C;EAGA,MAAME,iBAAoB,GAAAC,SAAA,CAAAA,GAAA,CACxBC,IAAAA,CAAAA,SAAU,CAAAJ,WAAA,CAAYK,aAAe,EAAAL,WAAA,CAAYM,QAAQ,CAAA,EACzDF,IAAAA,CAAAA,SAAU,CAAAJ,WAAA,CAAYO,cAAgB,EAAAP,WAAA,CAAYM,QAAQ,CAAA,CAC5D;EAEM,MAAAE,SAAA,GAAY,IAAIC,gCAAqB,CAAA;IACzCC,uBAAuBV,WAAY,CAAAO,cAAA;IACnCI,kBAAA,EAAoBC,YAAOV,iBAAiB,CAAA;IAC5CI,UAAUN,WAAY,CAAAM;EAAA,CACvB,CAAA;EAGD,OAAOO,MAAMC,IAAK,CAAA;IAAEC,QAAQf,WAAY,CAAAC;EAAA,GAAY,MAAM;IACxD,MAAMe,0BAA0BR,SAAU,CAAAS,QAAA,CACxCjB,WAAY,CAAAkB,SAAA,EACZlB,WAAY,CAAAM,QAAA,CACd;IAEA,MAAMD,aAAgB,GAAAc,SAAA,CAAAA,QAAA,CACpBf,IAAAA,CAAAA,SAAU,CAAAJ,WAAA,CAAYkB,SAAW,EAAAlB,WAAA,CAAYM,QAAQ,CAAA,EACrDU,uBAAA,CACF;IAEO,OAAA;MACLE,WAAWlB,WAAY,CAAAkB,SAAA;MACvBb,aAAA,EAAeO,YAAOP,aAAa,CAAA;MACnCE,cAAA,EAAgBK,YAAOI,uBAAuB,CAAA;MAC9CV,UAAUN,WAAY,CAAAM,QAAA;MACtBL,QAAU,EAAA;IAAA,CACZ;EAAA,CACD,CAAA;AACH,CAAA;AAEa,MAAAmB,4BAAA,GAA+BA,CAC1CpB,WAAA,EACAqB,OACkB,KAAA;EAElB,IAAIA,YAAY,CAAG,EAAA;IACV,OAAAjB,cAAA,CAAU,CAAG,EAAAJ,WAAA,CAAYM,QAAQ,CAAA;EAC1C;EAMA,OAAOgB,gBAAO,CAAA;IACZV,MAAQ,EAAAW,SAAAA,CAAAA,KAAA,CAAMC,SAAU,CAAAxB,WAAA,CAAYK,gBAAgBgB,OAAO,CAAA;IAC3Df,QAAA,EAAUmB,IAAAA,CAAAA,iBAAkB,CAAAzB,WAAA,CAAYM,QAAQ;EAAA,CACjD,CAAA;AACH,CAAA;AAEa,MAAAoB,0BAAA,GAA6BA,CACxC1B,WAAA,EACAqB,OACkB,KAAA;EAElB,IAAIA,YAAY,CAAG,EAAA;IACV,OAAAjB,cAAA,CAAU,CAAG,EAAAJ,WAAA,CAAYM,QAAQ,CAAA;EAC1C;EAGM,MAAAqB,mBAAA,GAAsB5B,6BAA6BC,WAAW,CAAA;EAGpE,IAAI4B,cAAiB,GAAAxB,IAAA,CAAAA,SAAA,CAAU,CAAG,EAAAJ,WAAA,CAAYM,QAAQ,CAAA;EAElCqB,mBAAA,CAAAE,OAAA,CAAS7B,YAAgB,IAAA;IAGrC,MAAA8B,SAAA,GAAYV,4BAA6BpB,CAAAA,YAAAA,EAAaqB,OAAO,CAAA;IAClDO,cAAA,GAAAzB,SAAA,CAAAA,GAAA,CAAIyB,gBAAgBE,SAAS,CAAA;EAAA,CAC/C,CAAA;EAEM,OAAAF,cAAA;AACT,CAAA;;;"}
|
|
@@ -1,17 +1,8 @@
|
|
|
1
|
-
import { add, subtract,
|
|
2
|
-
import { assert } from '../errors.mjs';
|
|
1
|
+
import { add, subtract, dinero } from 'dinero.js';
|
|
3
2
|
import { FixedAmountAllocator } from './allocators/fixedAmount.mjs';
|
|
4
|
-
import {
|
|
3
|
+
import { Round } from './constants.mjs';
|
|
4
|
+
import { getDinero, amount, getDineroCurrency } from './misc.mjs';
|
|
5
5
|
"use strict";
|
|
6
|
-
const taxRateToDineroAllocation = taxRate => {
|
|
7
|
-
if (taxRate <= 0 || taxRate >= 1) {
|
|
8
|
-
throw new RangeError("Unsupported rate, expected in range of 0>rate<1");
|
|
9
|
-
}
|
|
10
|
-
const rateScale = String(taxRate).split(".")[1]?.length;
|
|
11
|
-
assert(rateScale !== void 0, "rateScale is undefined");
|
|
12
|
-
const rateInt = Math.round(taxRate * Math.pow(10, rateScale));
|
|
13
|
-
return [rateInt, Math.pow(10, rateScale) - rateInt];
|
|
14
|
-
};
|
|
15
6
|
const allocatePerItemTaxableAmount = itemSummary => {
|
|
16
7
|
if (itemSummary.quantity === 1) {
|
|
17
8
|
return [itemSummary];
|
|
@@ -40,9 +31,10 @@ const calculateWholeQtyLineItemTax = (itemSummary, taxRate) => {
|
|
|
40
31
|
if (taxRate === 0) {
|
|
41
32
|
return getDinero(0, itemSummary.currency);
|
|
42
33
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
34
|
+
return dinero({
|
|
35
|
+
amount: Round.Financial(itemSummary.taxableAmount * taxRate),
|
|
36
|
+
currency: getDineroCurrency(itemSummary.currency)
|
|
37
|
+
});
|
|
46
38
|
};
|
|
47
39
|
const calculatePerQtyLineItemTax = (itemSummary, taxRate) => {
|
|
48
40
|
if (taxRate === 0) {
|
|
@@ -56,5 +48,5 @@ const calculatePerQtyLineItemTax = (itemSummary, taxRate) => {
|
|
|
56
48
|
});
|
|
57
49
|
return totalTaxAmount;
|
|
58
50
|
};
|
|
59
|
-
export { allocatePerItemTaxableAmount, calculatePerQtyLineItemTax, calculateWholeQtyLineItemTax
|
|
51
|
+
export { allocatePerItemTaxableAmount, calculatePerQtyLineItemTax, calculateWholeQtyLineItemTax };
|
|
60
52
|
//# sourceMappingURL=tax.private.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tax.private.mjs","sources":["../../../src/utils/money/tax.private.ts"],"sourcesContent":["// #############################################################################\n// Internal helper functions not for consumption outside of store.core!\n// Wrote as separate files so that they can be easily unit tested without exposing them\n// #############################################################################\nimport type { Dinero } from \"dinero.js\";\nimport { add,
|
|
1
|
+
{"version":3,"file":"tax.private.mjs","sources":["../../../src/utils/money/tax.private.ts"],"sourcesContent":["// #############################################################################\n// Internal helper functions not for consumption outside of store.core!\n// Wrote as separate files so that they can be easily unit tested without exposing them\n// #############################################################################\nimport type { Dinero } from \"dinero.js\";\nimport { add, dinero, subtract } from \"dinero.js\";\n\nimport { FixedAmountAllocator } from \"./allocators/fixedAmount\";\nimport { Round } from \"./constants\";\nimport { amount, getDinero, getDineroCurrency } from \"./misc\";\nimport type {\n Cents,\n LineItemSummary,\n SingleLineItemSummary,\n TaxRate,\n} from \"./types\";\n\n/**\n * Reverse engineer the taxable amount from \"whole item\" taxable amount into \"per item\" taxable amount for custom tax\n * rate calculations\n */\nexport const allocatePerItemTaxableAmount = (\n itemSummary: LineItemSummary,\n): SingleLineItemSummary[] => {\n /**\n * If the item quantity is 1, we can just return the item summary as is\n */\n if (itemSummary.quantity === 1) {\n return [itemSummary as SingleLineItemSummary];\n }\n\n // Reverse engineer price before discount\n const preDiscountAmount = add(\n getDinero(itemSummary.taxableAmount, itemSummary.currency),\n getDinero(itemSummary.discountAmount, itemSummary.currency),\n );\n\n const allocator = new FixedAmountAllocator({\n initialAllocateAmount: itemSummary.discountAmount,\n initialTotalAmount: amount(preDiscountAmount),\n currency: itemSummary.currency,\n });\n\n // Iterate over the amount of qty to reverse engineer the discount price\n return Array.from({ length: itemSummary.quantity }, () => {\n const discountAllocatedAmount = allocator.allocate(\n itemSummary.itemPrice,\n itemSummary.currency,\n );\n\n const taxableAmount = subtract(\n getDinero(itemSummary.itemPrice, itemSummary.currency),\n discountAllocatedAmount,\n );\n\n return {\n itemPrice: itemSummary.itemPrice,\n taxableAmount: amount(taxableAmount),\n discountAmount: amount(discountAllocatedAmount),\n currency: itemSummary.currency,\n quantity: 1,\n } as SingleLineItemSummary;\n });\n};\n\nexport const calculateWholeQtyLineItemTax = (\n itemSummary: LineItemSummary,\n taxRate: TaxRate,\n): Dinero<Cents> => {\n // Nothing to calculate\n if (taxRate === 0) {\n return getDinero(0, itemSummary.currency);\n }\n\n /**\n * Historically we calculate the tax by using dinero allocation, but we did not have control over how we round things.\n * So instead as we are already working with currency in cents we can multiply and round it ourselves.\n */\n return dinero({\n amount: Round.Financial(itemSummary.taxableAmount * taxRate),\n currency: getDineroCurrency(itemSummary.currency),\n });\n};\n\nexport const calculatePerQtyLineItemTax = (\n itemSummary: LineItemSummary,\n taxRate: TaxRate,\n): Dinero<Cents> => {\n // Nothing to calculate\n if (taxRate === 0) {\n return getDinero(0, itemSummary.currency);\n }\n\n // Split the item summary into per individual item qty summaries\n const singleItemSummaries = allocatePerItemTaxableAmount(itemSummary);\n\n // Calculate individual item qty tax and sum them up\n let totalTaxAmount = getDinero(0, itemSummary.currency);\n\n singleItemSummaries.forEach((itemSummary) => {\n // Probably a bit confusing at first, but calling the whole qty tax calculation function here as we can safely use\n // it as item summary is always a single item summary here\n const taxAmount = calculateWholeQtyLineItemTax(itemSummary, taxRate);\n totalTaxAmount = add(totalTaxAmount, taxAmount);\n });\n\n return totalTaxAmount;\n};\n"],"names":["allocatePerItemTaxableAmount","itemSummary","quantity","preDiscountAmount","add","getDinero","taxableAmount","currency","discountAmount","allocator","FixedAmountAllocator","initialAllocateAmount","initialTotalAmount","amount","Array","from","length","discountAllocatedAmount","allocate","itemPrice","subtract","calculateWholeQtyLineItemTax","taxRate","dinero","Round","Financial","getDineroCurrency","calculatePerQtyLineItemTax","singleItemSummaries","totalTaxAmount","forEach","taxAmount"],"mappings":";;;;;AAqBa,MAAAA,4BAAA,GACXC,WAC4B,IAAA;EAIxB,IAAAA,WAAA,CAAYC,aAAa,CAAG,EAAA;IAC9B,OAAO,CAACD,WAAoC,CAAA;EAC9C;EAGA,MAAME,iBAAoB,GAAAC,GAAA,CACxBC,SAAU,CAAAJ,WAAA,CAAYK,aAAe,EAAAL,WAAA,CAAYM,QAAQ,CAAA,EACzDF,SAAU,CAAAJ,WAAA,CAAYO,cAAgB,EAAAP,WAAA,CAAYM,QAAQ,CAAA,CAC5D;EAEM,MAAAE,SAAA,GAAY,IAAIC,oBAAqB,CAAA;IACzCC,uBAAuBV,WAAY,CAAAO,cAAA;IACnCI,kBAAA,EAAoBC,OAAOV,iBAAiB,CAAA;IAC5CI,UAAUN,WAAY,CAAAM;EAAA,CACvB,CAAA;EAGD,OAAOO,MAAMC,IAAK,CAAA;IAAEC,QAAQf,WAAY,CAAAC;EAAA,GAAY,MAAM;IACxD,MAAMe,0BAA0BR,SAAU,CAAAS,QAAA,CACxCjB,WAAY,CAAAkB,SAAA,EACZlB,WAAY,CAAAM,QAAA,CACd;IAEA,MAAMD,aAAgB,GAAAc,QAAA,CACpBf,SAAU,CAAAJ,WAAA,CAAYkB,SAAW,EAAAlB,WAAA,CAAYM,QAAQ,CAAA,EACrDU,uBAAA,CACF;IAEO,OAAA;MACLE,WAAWlB,WAAY,CAAAkB,SAAA;MACvBb,aAAA,EAAeO,OAAOP,aAAa,CAAA;MACnCE,cAAA,EAAgBK,OAAOI,uBAAuB,CAAA;MAC9CV,UAAUN,WAAY,CAAAM,QAAA;MACtBL,QAAU,EAAA;IAAA,CACZ;EAAA,CACD,CAAA;AACH,CAAA;AAEa,MAAAmB,4BAAA,GAA+BA,CAC1CpB,WAAA,EACAqB,OACkB,KAAA;EAElB,IAAIA,YAAY,CAAG,EAAA;IACV,OAAAjB,SAAA,CAAU,CAAG,EAAAJ,WAAA,CAAYM,QAAQ,CAAA;EAC1C;EAMA,OAAOgB,MAAO,CAAA;IACZV,MAAQ,EAAAW,KAAA,CAAMC,SAAU,CAAAxB,WAAA,CAAYK,gBAAgBgB,OAAO,CAAA;IAC3Df,QAAA,EAAUmB,iBAAkB,CAAAzB,WAAA,CAAYM,QAAQ;EAAA,CACjD,CAAA;AACH,CAAA;AAEa,MAAAoB,0BAAA,GAA6BA,CACxC1B,WAAA,EACAqB,OACkB,KAAA;EAElB,IAAIA,YAAY,CAAG,EAAA;IACV,OAAAjB,SAAA,CAAU,CAAG,EAAAJ,WAAA,CAAYM,QAAQ,CAAA;EAC1C;EAGM,MAAAqB,mBAAA,GAAsB5B,6BAA6BC,WAAW,CAAA;EAGpE,IAAI4B,cAAiB,GAAAxB,SAAA,CAAU,CAAG,EAAAJ,WAAA,CAAYM,QAAQ,CAAA;EAElCqB,mBAAA,CAAAE,OAAA,CAAS7B,YAAgB,IAAA;IAGrC,MAAA8B,SAAA,GAAYV,4BAA6BpB,CAAAA,YAAAA,EAAaqB,OAAO,CAAA;IAClDO,cAAA,GAAAzB,GAAA,CAAIyB,gBAAgBE,SAAS,CAAA;EAAA,CAC/C,CAAA;EAEM,OAAAF,cAAA;AACT,CAAA;"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { Nullish, StorefrontProduct, StoreId, UnionToAllPossibleTuples } from "../types";
|
|
2
|
+
import { DisplayProductStatus } from "../types";
|
|
3
|
+
/**
|
|
4
|
+
* Narrow MinimalProProductFragment type even more to the union of fields that are needed to sort product
|
|
5
|
+
*/
|
|
6
|
+
type ProductMinFieldsForSorting = Pick<StorefrontProduct, "status" | "tags" | "minDisplayPrice"> & {
|
|
7
|
+
variants: {
|
|
8
|
+
availableInOtherStores: Array<{
|
|
9
|
+
__typename: string;
|
|
10
|
+
}>;
|
|
11
|
+
}[];
|
|
12
|
+
linkedProducts?: {
|
|
13
|
+
status: StorefrontProduct["status"];
|
|
14
|
+
}[];
|
|
15
|
+
};
|
|
16
|
+
export declare enum Sort {
|
|
17
|
+
HighestPrice = "highest-price",
|
|
18
|
+
LowestPrice = "lowest-price",
|
|
19
|
+
Availability = "availability"
|
|
20
|
+
}
|
|
21
|
+
export declare enum SortOrder {
|
|
22
|
+
Asc = "Asc",
|
|
23
|
+
Desc = "Desc"
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Variants statuses sorted in ascending order from least preferable to most, so if some new status comes in, then the
|
|
27
|
+
* lookup for `.indexOf()` would return `-1`, thus being "worse" then DisplayProductStatus.SoldOut and moved to the very
|
|
28
|
+
* back of list
|
|
29
|
+
*/
|
|
30
|
+
export declare const sortedStatusesByPriorityAsc: UnionToAllPossibleTuples<DisplayProductStatus>;
|
|
31
|
+
export declare const sortByAvailabilityDesc: (current: ProductMinFieldsForSorting, next: ProductMinFieldsForSorting) => number;
|
|
32
|
+
export declare const sortByPrice: (order: SortOrder) => (current: ProductMinFieldsForSorting, next: ProductMinFieldsForSorting) => number;
|
|
33
|
+
/**
|
|
34
|
+
* Sorts products based on the given sort type.
|
|
35
|
+
* @param currentSort - sort type
|
|
36
|
+
* @param sortByWeightTag - if false, then sort by weight tag is
|
|
37
|
+
* ignored (e.g. for `Related Add-ons` where
|
|
38
|
+
* we don't want to sort by weight tag)
|
|
39
|
+
*/
|
|
40
|
+
export declare const sortProducts: (currentSort: Nullish<string | Sort>, storeId?: StoreId, sortByWeightTag?: boolean) => (current: ProductMinFieldsForSorting, next: ProductMinFieldsForSorting) => number;
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
require('../types/index.js');
|
|
4
|
+
var array = require('./array.js');
|
|
5
|
+
var product$1 = require('./product.js');
|
|
6
|
+
var product = require('../types/product.js');
|
|
7
|
+
"use strict";
|
|
8
|
+
var Sort = /* @__PURE__ */(Sort2 => {
|
|
9
|
+
Sort2["HighestPrice"] = "highest-price";
|
|
10
|
+
Sort2["LowestPrice"] = "lowest-price";
|
|
11
|
+
Sort2["Availability"] = "availability";
|
|
12
|
+
return Sort2;
|
|
13
|
+
})(Sort || {});
|
|
14
|
+
var SortOrder = /* @__PURE__ */(SortOrder2 => {
|
|
15
|
+
SortOrder2["Asc"] = "Asc";
|
|
16
|
+
SortOrder2["Desc"] = "Desc";
|
|
17
|
+
return SortOrder2;
|
|
18
|
+
})(SortOrder || {});
|
|
19
|
+
const sortedStatusesByPriorityAsc = [product.DisplayProductStatus.Unavailable, product.DisplayProductStatus.ComingSoon, product.DisplayProductStatus.SoldOut, product.DisplayProductStatus.RegionNotAvailable, product.DisplayProductStatus.Backorder, product.DisplayProductStatus.Available];
|
|
20
|
+
const getProductStatusPriority = product$1 => {
|
|
21
|
+
let sortStatus = product$1.status;
|
|
22
|
+
if (product$1.variants.some(variant => variant.availableInOtherStores.length) || product$1.linkedProducts && product$1.linkedProducts.some(linkedProduct => linkedProduct.status === product.DisplayProductStatus.Available)) {
|
|
23
|
+
sortStatus = product.DisplayProductStatus.Available;
|
|
24
|
+
}
|
|
25
|
+
return sortedStatusesByPriorityAsc.indexOf(sortStatus);
|
|
26
|
+
};
|
|
27
|
+
const sortByAvailabilityDesc = (current, next) => {
|
|
28
|
+
return array.normalizeSortResult(getProductStatusPriority(next) - getProductStatusPriority(current));
|
|
29
|
+
};
|
|
30
|
+
const sortByPrice = order => (current, next) => {
|
|
31
|
+
const currentProductPrice = current.minDisplayPrice.amount;
|
|
32
|
+
const nextProductPrice = next.minDisplayPrice.amount;
|
|
33
|
+
if (order === "Desc" /* Desc */) {
|
|
34
|
+
return nextProductPrice - currentProductPrice;
|
|
35
|
+
} else {
|
|
36
|
+
return currentProductPrice - nextProductPrice;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
const sortProducts = (currentSort, storeId, sortByWeightTag = true) => (current, next) => {
|
|
40
|
+
switch (currentSort) {
|
|
41
|
+
// Sort by price
|
|
42
|
+
case "highest-price" /* HighestPrice */:
|
|
43
|
+
case "lowest-price" /* LowestPrice */:
|
|
44
|
+
{
|
|
45
|
+
return sortByPrice(currentSort === "highest-price" /* HighestPrice */ ? "Desc" /* Desc */ : "Asc" /* Asc */)(current, next);
|
|
46
|
+
}
|
|
47
|
+
case "availability" /* Availability */:
|
|
48
|
+
{
|
|
49
|
+
return sortByAvailabilityDesc(current, next);
|
|
50
|
+
}
|
|
51
|
+
default:
|
|
52
|
+
{
|
|
53
|
+
const sorts = [sortByAvailabilityDesc];
|
|
54
|
+
if (sortByWeightTag) {
|
|
55
|
+
sorts.push(product$1.sortByTagWeight(product$1.SortSiteId.Store, storeId));
|
|
56
|
+
}
|
|
57
|
+
return array.combineSorts(sorts)(current, next);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
exports.Sort = Sort;
|
|
62
|
+
exports.SortOrder = SortOrder;
|
|
63
|
+
exports.sortByAvailabilityDesc = sortByAvailabilityDesc;
|
|
64
|
+
exports.sortByPrice = sortByPrice;
|
|
65
|
+
exports.sortProducts = sortProducts;
|
|
66
|
+
exports.sortedStatusesByPriorityAsc = sortedStatusesByPriorityAsc;
|
|
67
|
+
//# sourceMappingURL=productSort.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"productSort.js","sources":["../../src/utils/productSort.ts"],"sourcesContent":["import type { Nullish, StorefrontProduct, StoreId, UnionToAllPossibleTuples } from \"../types\";\nimport { DisplayProductStatus } from \"../types\";\nimport { combineSorts, normalizeSortResult } from \"./array\";\nimport { sortByTagWeight, SortSiteId } from \"./product\";\n\n/**\n * Narrow MinimalProProductFragment type even more to the union of fields that are needed to sort product\n */\ntype ProductMinFieldsForSorting = Pick<\n StorefrontProduct,\n \"status\" | \"tags\" | \"minDisplayPrice\"\n> & {\n variants: {\n // We only need bare minimum from array to compare array length\n // FIXME: move it to backend as a boolean field so we don't need to fetch entire array to reduce it to a boolean ourselves\n availableInOtherStores: Array<{ __typename: string }>;\n }[];\n linkedProducts?: {\n status: StorefrontProduct[\"status\"];\n }[];\n};\n\nexport enum Sort {\n HighestPrice = \"highest-price\",\n LowestPrice = \"lowest-price\",\n Availability = \"availability\",\n}\n\nexport enum SortOrder {\n Asc = \"Asc\",\n Desc = \"Desc\",\n}\n\n/**\n * Variants statuses sorted in ascending order from least preferable to most, so if some new status comes in, then the\n * lookup for `.indexOf()` would return `-1`, thus being \"worse\" then DisplayProductStatus.SoldOut and moved to the very\n * back of list\n */\nexport const sortedStatusesByPriorityAsc: UnionToAllPossibleTuples<DisplayProductStatus> =\n [\n DisplayProductStatus.Unavailable,\n DisplayProductStatus.ComingSoon,\n DisplayProductStatus.SoldOut,\n DisplayProductStatus.RegionNotAvailable,\n DisplayProductStatus.Backorder,\n DisplayProductStatus.Available,\n ];\n/**\n * Due to currently variant status being nullable for historical reasons we need to have a fallback state\n * TODO: remove once display status is StorefrontProductVariant.status is non-nullable\n */\nconst getProductStatusPriority = (\n product: ProductMinFieldsForSorting,\n): number => {\n let sortStatus = product.status;\n\n // Virtually set sort status as available if it has alternative stores\n if (\n product.variants.some((variant) => variant.availableInOtherStores.length) ||\n (product.linkedProducts &&\n product.linkedProducts.some(\n (linkedProduct) =>\n linkedProduct.status === DisplayProductStatus.Available,\n ))\n ) {\n sortStatus = DisplayProductStatus.Available;\n }\n\n return sortedStatusesByPriorityAsc.indexOf(sortStatus);\n};\n\nexport const sortByAvailabilityDesc = (\n current: ProductMinFieldsForSorting,\n next: ProductMinFieldsForSorting,\n): number => {\n return normalizeSortResult(\n getProductStatusPriority(next) - getProductStatusPriority(current),\n );\n};\n\nexport const sortByPrice =\n (order: SortOrder) => (\n current: ProductMinFieldsForSorting,\n next: ProductMinFieldsForSorting,\n ): number => {\n const currentProductPrice = current.minDisplayPrice.amount;\n\n const nextProductPrice = next.minDisplayPrice.amount;\n\n if (order === SortOrder.Desc) {\n return nextProductPrice - currentProductPrice;\n } else {\n return currentProductPrice - nextProductPrice;\n }\n };\n\n\n/**\n * Sorts products based on the given sort type.\n * @param currentSort - sort type\n * @param sortByWeightTag - if false, then sort by weight tag is\n * ignored (e.g. for `Related Add-ons` where\n * we don't want to sort by weight tag)\n */\nexport const sortProducts = (\n currentSort: Nullish<string | Sort>,\n storeId?: StoreId,\n sortByWeightTag = true,\n ) =>\n (current: ProductMinFieldsForSorting, next: ProductMinFieldsForSorting) => {\n switch (currentSort) {\n // Sort by price\n case Sort.HighestPrice:\n case Sort.LowestPrice: {\n return sortByPrice(\n currentSort === Sort.HighestPrice ? SortOrder.Desc : SortOrder.Asc,\n )(current, next);\n }\n\n case Sort.Availability: {\n return sortByAvailabilityDesc(current, next);\n }\n\n default: {\n const sorts = [sortByAvailabilityDesc];\n\n // Add sorting by tag weight\n if (sortByWeightTag) {\n sorts.push(sortByTagWeight(SortSiteId.Store, storeId));\n }\n\n // Do additional sorting by tag weight only after initial sorting resulting in \"same group\"\n return combineSorts(sorts)(current, next);\n }\n }\n };"],"names":["Sort","SortOrder","sortedStatusesByPriorityAsc","DisplayProductStatus","Unavailable","ComingSoon","SoldOut","RegionNotAvailable","Backorder","Available","getProductStatusPriority","product","sortStatus","status","variants","some","variant","availableInOtherStores","length","linkedProducts","linkedProduct","indexOf","sortByAvailabilityDesc","current","next","normalizeSortResult","sortByPrice","order","currentProductPrice","minDisplayPrice","amount","nextProductPrice","sortProducts","currentSort","storeId","sortByWeightTag","sorts","push","sortByTagWeight","SortSiteId","Store","combineSorts"],"mappings":";;;;;;;AAsBY,IAAAA,IAAA,GAAA,gBAAAA,KAAL,IAAA;EACLA,MAAA,cAAe,CAAA,GAAA,eAAA;EACfA,MAAA,aAAc,CAAA,GAAA,cAAA;EACdA,MAAA,cAAe,CAAA,GAAA,cAAA;EAHLA,OAAAA,KAAAA;AAAA,CAAA,EAAAA,IAAA,IAAA,CAAA,CAAA,CAAA;AAMA,IAAAC,SAAA,GAAA,gBAAAA,UAAL,IAAA;EACLA,WAAA,KAAM,CAAA,GAAA,KAAA;EACNA,WAAA,MAAO,CAAA,GAAA,MAAA;EAFGA,OAAAA,UAAAA;AAAA,CAAA,EAAAA,SAAA,IAAA,CAAA,CAAA,CAAA;AAUL,MAAMC,2BACX,GAAA,CACEC,OAAAA,CAAAA,oBAAqB,CAAAC,WAAA,EACrBD,OAAAA,CAAAA,oBAAqB,CAAAE,UAAA,EACrBF,OAAAA,CAAAA,oBAAqB,CAAAG,OAAA,EACrBH,OAAAA,CAAAA,oBAAqB,CAAAI,kBAAA,EACrBJ,OAAAA,CAAAA,oBAAqB,CAAAK,SAAA,EACrBL,OAAAA,CAAAA,oBAAqB,CAAAM,SAAA,CACvB;AAKF,MAAMC,wBAAA,GACJC,SACW,IAAA;EACX,IAAIC,aAAaD,SAAQ,CAAAE,MAAA;EAGzB,IACEF,SAAQ,CAAAG,QAAA,CAASC,IAAK,CAACC,OAAY,IAAAA,OAAA,CAAQC,sBAAuB,CAAAC,MAAM,CACvE,IAAAP,SAAA,CAAQQ,cACP,IAAAR,SAAA,CAAQQ,cAAe,CAAAJ,IAAA,CACpBK,aAAA,IACCA,aAAc,CAAAP,MAAA,KAAWV,OAAqB,CAAAA,oBAAA,CAAAM,SAAA,CAEpD,EAAA;IACAG,UAAA,GAAaT,OAAqB,CAAAA,oBAAA,CAAAM,SAAA;EACpC;EAEO,OAAAP,2BAAA,CAA4BmB,QAAQT,UAAU,CAAA;AACvD,CAAA;AAEa,MAAAU,sBAAA,GAAyBA,CACpCC,OAAA,EACAC,IACW,KAAA;EACJ,OAAAC,KAAA,CAAAA,mBAAA,CACLf,wBAAyB,CAAAc,IAAI,CAAI,GAAAd,wBAAA,CAAyBa,OAAO,CAAA,CACnE;AACF,CAAA;AAEO,MAAMG,WACX,GAACC,KAAqB,IAAA,CACpBJ,SACAC,IACW,KAAA;EACL,MAAAI,mBAAA,GAAsBL,QAAQM,eAAgB,CAAAC,MAAA;EAE9C,MAAAC,gBAAA,GAAmBP,KAAKK,eAAgB,CAAAC,MAAA;EAE9C,IAAIH,UAAU,MAAgB,CAAA,YAAA;IAC5B,OAAOI,gBAAmB,GAAAH,mBAAA;EAAA,CACrB,MAAA;IACL,OAAOA,mBAAsB,GAAAG,gBAAA;EAC/B;AACF,CAAA;AAUW,MAAAC,YAAA,GAAeA,CACxBC,WACA,EAAAC,OAAA,EACAC,kBAAkB,IAEpB,KAAA,CAACZ,SAAqCC,IAAqC,KAAA;EACzE,QAAQS,WAAa;IAAA;IAEnB,KAAK,eAAA,CAAA;IACL,KAAK,cAAkB,CAAA;MAAA;QACd,OAAAP,WAAA,CACLO,WAAA,KAAgB,gBAAoB,qBAAA,MAAiB,cAAA,KAAA,CAAA,SAAA,CACvD,CAAEV,SAASC,IAAI,CAAA;MACjB;IAEA,KAAK,cAAmB,CAAA;MAAA;QACf,OAAAF,sBAAA,CAAuBC,SAASC,IAAI,CAAA;MAC7C;IAEA;MAAS;QACD,MAAAY,KAAA,GAAQ,CAACd,sBAAsB,CAAA;QAGrC,IAAIa,eAAiB,EAAA;UACnBC,KAAA,CAAMC,IAAK,CAAAC,SAAA,CAAAA,eAAA,CAAgBC,SAAW,CAAAA,UAAA,CAAAC,KAAA,EAAON,OAAO,CAAC,CAAA;QACvD;QAGA,OAAOO,KAAa,CAAAA,YAAA,CAAAL,KAAK,CAAE,CAAAb,OAAA,EAASC,IAAI,CAAA;MAC1C;EACF;AACF,CAAA;;;;;;"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import '../types/index.mjs';
|
|
2
|
+
import { normalizeSortResult, combineSorts } from './array.mjs';
|
|
3
|
+
import { sortByTagWeight, SortSiteId } from './product.mjs';
|
|
4
|
+
import { DisplayProductStatus } from '../types/product.mjs';
|
|
5
|
+
"use strict";
|
|
6
|
+
var Sort = /* @__PURE__ */(Sort2 => {
|
|
7
|
+
Sort2["HighestPrice"] = "highest-price";
|
|
8
|
+
Sort2["LowestPrice"] = "lowest-price";
|
|
9
|
+
Sort2["Availability"] = "availability";
|
|
10
|
+
return Sort2;
|
|
11
|
+
})(Sort || {});
|
|
12
|
+
var SortOrder = /* @__PURE__ */(SortOrder2 => {
|
|
13
|
+
SortOrder2["Asc"] = "Asc";
|
|
14
|
+
SortOrder2["Desc"] = "Desc";
|
|
15
|
+
return SortOrder2;
|
|
16
|
+
})(SortOrder || {});
|
|
17
|
+
const sortedStatusesByPriorityAsc = [DisplayProductStatus.Unavailable, DisplayProductStatus.ComingSoon, DisplayProductStatus.SoldOut, DisplayProductStatus.RegionNotAvailable, DisplayProductStatus.Backorder, DisplayProductStatus.Available];
|
|
18
|
+
const getProductStatusPriority = product => {
|
|
19
|
+
let sortStatus = product.status;
|
|
20
|
+
if (product.variants.some(variant => variant.availableInOtherStores.length) || product.linkedProducts && product.linkedProducts.some(linkedProduct => linkedProduct.status === DisplayProductStatus.Available)) {
|
|
21
|
+
sortStatus = DisplayProductStatus.Available;
|
|
22
|
+
}
|
|
23
|
+
return sortedStatusesByPriorityAsc.indexOf(sortStatus);
|
|
24
|
+
};
|
|
25
|
+
const sortByAvailabilityDesc = (current, next) => {
|
|
26
|
+
return normalizeSortResult(getProductStatusPriority(next) - getProductStatusPriority(current));
|
|
27
|
+
};
|
|
28
|
+
const sortByPrice = order => (current, next) => {
|
|
29
|
+
const currentProductPrice = current.minDisplayPrice.amount;
|
|
30
|
+
const nextProductPrice = next.minDisplayPrice.amount;
|
|
31
|
+
if (order === "Desc" /* Desc */) {
|
|
32
|
+
return nextProductPrice - currentProductPrice;
|
|
33
|
+
} else {
|
|
34
|
+
return currentProductPrice - nextProductPrice;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
const sortProducts = (currentSort, storeId, sortByWeightTag = true) => (current, next) => {
|
|
38
|
+
switch (currentSort) {
|
|
39
|
+
// Sort by price
|
|
40
|
+
case "highest-price" /* HighestPrice */:
|
|
41
|
+
case "lowest-price" /* LowestPrice */:
|
|
42
|
+
{
|
|
43
|
+
return sortByPrice(currentSort === "highest-price" /* HighestPrice */ ? "Desc" /* Desc */ : "Asc" /* Asc */)(current, next);
|
|
44
|
+
}
|
|
45
|
+
case "availability" /* Availability */:
|
|
46
|
+
{
|
|
47
|
+
return sortByAvailabilityDesc(current, next);
|
|
48
|
+
}
|
|
49
|
+
default:
|
|
50
|
+
{
|
|
51
|
+
const sorts = [sortByAvailabilityDesc];
|
|
52
|
+
if (sortByWeightTag) {
|
|
53
|
+
sorts.push(sortByTagWeight(SortSiteId.Store, storeId));
|
|
54
|
+
}
|
|
55
|
+
return combineSorts(sorts)(current, next);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
export { Sort, SortOrder, sortByAvailabilityDesc, sortByPrice, sortProducts, sortedStatusesByPriorityAsc };
|
|
60
|
+
//# sourceMappingURL=productSort.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"productSort.mjs","sources":["../../src/utils/productSort.ts"],"sourcesContent":["import type { Nullish, StorefrontProduct, StoreId, UnionToAllPossibleTuples } from \"../types\";\nimport { DisplayProductStatus } from \"../types\";\nimport { combineSorts, normalizeSortResult } from \"./array\";\nimport { sortByTagWeight, SortSiteId } from \"./product\";\n\n/**\n * Narrow MinimalProProductFragment type even more to the union of fields that are needed to sort product\n */\ntype ProductMinFieldsForSorting = Pick<\n StorefrontProduct,\n \"status\" | \"tags\" | \"minDisplayPrice\"\n> & {\n variants: {\n // We only need bare minimum from array to compare array length\n // FIXME: move it to backend as a boolean field so we don't need to fetch entire array to reduce it to a boolean ourselves\n availableInOtherStores: Array<{ __typename: string }>;\n }[];\n linkedProducts?: {\n status: StorefrontProduct[\"status\"];\n }[];\n};\n\nexport enum Sort {\n HighestPrice = \"highest-price\",\n LowestPrice = \"lowest-price\",\n Availability = \"availability\",\n}\n\nexport enum SortOrder {\n Asc = \"Asc\",\n Desc = \"Desc\",\n}\n\n/**\n * Variants statuses sorted in ascending order from least preferable to most, so if some new status comes in, then the\n * lookup for `.indexOf()` would return `-1`, thus being \"worse\" then DisplayProductStatus.SoldOut and moved to the very\n * back of list\n */\nexport const sortedStatusesByPriorityAsc: UnionToAllPossibleTuples<DisplayProductStatus> =\n [\n DisplayProductStatus.Unavailable,\n DisplayProductStatus.ComingSoon,\n DisplayProductStatus.SoldOut,\n DisplayProductStatus.RegionNotAvailable,\n DisplayProductStatus.Backorder,\n DisplayProductStatus.Available,\n ];\n/**\n * Due to currently variant status being nullable for historical reasons we need to have a fallback state\n * TODO: remove once display status is StorefrontProductVariant.status is non-nullable\n */\nconst getProductStatusPriority = (\n product: ProductMinFieldsForSorting,\n): number => {\n let sortStatus = product.status;\n\n // Virtually set sort status as available if it has alternative stores\n if (\n product.variants.some((variant) => variant.availableInOtherStores.length) ||\n (product.linkedProducts &&\n product.linkedProducts.some(\n (linkedProduct) =>\n linkedProduct.status === DisplayProductStatus.Available,\n ))\n ) {\n sortStatus = DisplayProductStatus.Available;\n }\n\n return sortedStatusesByPriorityAsc.indexOf(sortStatus);\n};\n\nexport const sortByAvailabilityDesc = (\n current: ProductMinFieldsForSorting,\n next: ProductMinFieldsForSorting,\n): number => {\n return normalizeSortResult(\n getProductStatusPriority(next) - getProductStatusPriority(current),\n );\n};\n\nexport const sortByPrice =\n (order: SortOrder) => (\n current: ProductMinFieldsForSorting,\n next: ProductMinFieldsForSorting,\n ): number => {\n const currentProductPrice = current.minDisplayPrice.amount;\n\n const nextProductPrice = next.minDisplayPrice.amount;\n\n if (order === SortOrder.Desc) {\n return nextProductPrice - currentProductPrice;\n } else {\n return currentProductPrice - nextProductPrice;\n }\n };\n\n\n/**\n * Sorts products based on the given sort type.\n * @param currentSort - sort type\n * @param sortByWeightTag - if false, then sort by weight tag is\n * ignored (e.g. for `Related Add-ons` where\n * we don't want to sort by weight tag)\n */\nexport const sortProducts = (\n currentSort: Nullish<string | Sort>,\n storeId?: StoreId,\n sortByWeightTag = true,\n ) =>\n (current: ProductMinFieldsForSorting, next: ProductMinFieldsForSorting) => {\n switch (currentSort) {\n // Sort by price\n case Sort.HighestPrice:\n case Sort.LowestPrice: {\n return sortByPrice(\n currentSort === Sort.HighestPrice ? SortOrder.Desc : SortOrder.Asc,\n )(current, next);\n }\n\n case Sort.Availability: {\n return sortByAvailabilityDesc(current, next);\n }\n\n default: {\n const sorts = [sortByAvailabilityDesc];\n\n // Add sorting by tag weight\n if (sortByWeightTag) {\n sorts.push(sortByTagWeight(SortSiteId.Store, storeId));\n }\n\n // Do additional sorting by tag weight only after initial sorting resulting in \"same group\"\n return combineSorts(sorts)(current, next);\n }\n }\n };"],"names":["Sort","SortOrder","sortedStatusesByPriorityAsc","DisplayProductStatus","Unavailable","ComingSoon","SoldOut","RegionNotAvailable","Backorder","Available","getProductStatusPriority","product","sortStatus","status","variants","some","variant","availableInOtherStores","length","linkedProducts","linkedProduct","indexOf","sortByAvailabilityDesc","current","next","normalizeSortResult","sortByPrice","order","currentProductPrice","minDisplayPrice","amount","nextProductPrice","sortProducts","currentSort","storeId","sortByWeightTag","sorts","push","sortByTagWeight","SortSiteId","Store","combineSorts"],"mappings":";;;;;AAsBY,IAAAA,IAAA,GAAA,gBAAAA,KAAL,IAAA;EACLA,MAAA,cAAe,CAAA,GAAA,eAAA;EACfA,MAAA,aAAc,CAAA,GAAA,cAAA;EACdA,MAAA,cAAe,CAAA,GAAA,cAAA;EAHLA,OAAAA,KAAAA;AAAA,CAAA,EAAAA,IAAA,IAAA,CAAA,CAAA,CAAA;AAMA,IAAAC,SAAA,GAAA,gBAAAA,UAAL,IAAA;EACLA,WAAA,KAAM,CAAA,GAAA,KAAA;EACNA,WAAA,MAAO,CAAA,GAAA,MAAA;EAFGA,OAAAA,UAAAA;AAAA,CAAA,EAAAA,SAAA,IAAA,CAAA,CAAA,CAAA;AAUL,MAAMC,2BACX,GAAA,CACEC,oBAAqB,CAAAC,WAAA,EACrBD,oBAAqB,CAAAE,UAAA,EACrBF,oBAAqB,CAAAG,OAAA,EACrBH,oBAAqB,CAAAI,kBAAA,EACrBJ,oBAAqB,CAAAK,SAAA,EACrBL,oBAAqB,CAAAM,SAAA,CACvB;AAKF,MAAMC,wBAAA,GACJC,OACW,IAAA;EACX,IAAIC,aAAaD,OAAQ,CAAAE,MAAA;EAGzB,IACEF,OAAQ,CAAAG,QAAA,CAASC,IAAK,CAACC,OAAY,IAAAA,OAAA,CAAQC,sBAAuB,CAAAC,MAAM,CACvE,IAAAP,OAAA,CAAQQ,cACP,IAAAR,OAAA,CAAQQ,cAAe,CAAAJ,IAAA,CACpBK,aAAA,IACCA,aAAc,CAAAP,MAAA,KAAWV,oBAAqB,CAAAM,SAAA,CAEpD,EAAA;IACAG,UAAA,GAAaT,oBAAqB,CAAAM,SAAA;EACpC;EAEO,OAAAP,2BAAA,CAA4BmB,QAAQT,UAAU,CAAA;AACvD,CAAA;AAEa,MAAAU,sBAAA,GAAyBA,CACpCC,OAAA,EACAC,IACW,KAAA;EACJ,OAAAC,mBAAA,CACLf,wBAAyB,CAAAc,IAAI,CAAI,GAAAd,wBAAA,CAAyBa,OAAO,CAAA,CACnE;AACF,CAAA;AAEO,MAAMG,WACX,GAACC,KAAqB,IAAA,CACpBJ,SACAC,IACW,KAAA;EACL,MAAAI,mBAAA,GAAsBL,QAAQM,eAAgB,CAAAC,MAAA;EAE9C,MAAAC,gBAAA,GAAmBP,KAAKK,eAAgB,CAAAC,MAAA;EAE9C,IAAIH,UAAU,MAAgB,CAAA,YAAA;IAC5B,OAAOI,gBAAmB,GAAAH,mBAAA;EAAA,CACrB,MAAA;IACL,OAAOA,mBAAsB,GAAAG,gBAAA;EAC/B;AACF,CAAA;AAUW,MAAAC,YAAA,GAAeA,CACxBC,WACA,EAAAC,OAAA,EACAC,kBAAkB,IAEpB,KAAA,CAACZ,SAAqCC,IAAqC,KAAA;EACzE,QAAQS,WAAa;IAAA;IAEnB,KAAK,eAAA,CAAA;IACL,KAAK,cAAkB,CAAA;MAAA;QACd,OAAAP,WAAA,CACLO,WAAA,KAAgB,gBAAoB,qBAAA,MAAiB,cAAA,KAAA,CAAA,SAAA,CACvD,CAAEV,SAASC,IAAI,CAAA;MACjB;IAEA,KAAK,cAAmB,CAAA;MAAA;QACf,OAAAF,sBAAA,CAAuBC,SAASC,IAAI,CAAA;MAC7C;IAEA;MAAS;QACD,MAAAY,KAAA,GAAQ,CAACd,sBAAsB,CAAA;QAGrC,IAAIa,eAAiB,EAAA;UACnBC,KAAA,CAAMC,IAAK,CAAAC,eAAA,CAAgBC,UAAW,CAAAC,KAAA,EAAON,OAAO,CAAC,CAAA;QACvD;QAGA,OAAOO,YAAa,CAAAL,KAAK,CAAE,CAAAb,OAAA,EAASC,IAAI,CAAA;MAC1C;EACF;AACF,CAAA;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type SuperRefinement } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Actually it is 35, but because we need to add extra space between
|
|
4
|
+
* first_name and last_name, reduce by 1 character
|
|
5
|
+
*/
|
|
6
|
+
export declare const UPS_SHIPPING_LABEL_MAX_FULL_NAME = 34;
|
|
7
|
+
export declare const FIRST_NAME_MAX_LENGTH = 17;
|
|
8
|
+
export declare const createLastNameSuperRefinement: SuperRefinement<{
|
|
9
|
+
firstName: string;
|
|
10
|
+
lastName: string;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var zod = require('zod');
|
|
4
|
+
"use strict";
|
|
5
|
+
const UPS_SHIPPING_LABEL_MAX_FULL_NAME = 34;
|
|
6
|
+
const FIRST_NAME_MAX_LENGTH = 17;
|
|
7
|
+
const createLastNameSuperRefinement = ({
|
|
8
|
+
firstName,
|
|
9
|
+
lastName
|
|
10
|
+
}, ctx) => {
|
|
11
|
+
const returnMaxLastNameLength = Math.max(Math.max(UPS_SHIPPING_LABEL_MAX_FULL_NAME - firstName.length, 0), FIRST_NAME_MAX_LENGTH);
|
|
12
|
+
if (lastName.length > returnMaxLastNameLength) {
|
|
13
|
+
return ctx.addIssue({
|
|
14
|
+
path: ["lastName"],
|
|
15
|
+
code: zod.ZodIssueCode.too_big,
|
|
16
|
+
type: "string",
|
|
17
|
+
maximum: returnMaxLastNameLength,
|
|
18
|
+
inclusive: true
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
exports.FIRST_NAME_MAX_LENGTH = FIRST_NAME_MAX_LENGTH;
|
|
23
|
+
exports.UPS_SHIPPING_LABEL_MAX_FULL_NAME = UPS_SHIPPING_LABEL_MAX_FULL_NAME;
|
|
24
|
+
exports.createLastNameSuperRefinement = createLastNameSuperRefinement;
|
|
25
|
+
//# sourceMappingURL=lastNameSuperRefinement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lastNameSuperRefinement.js","sources":["../../../src/utils/validations/lastNameSuperRefinement.ts"],"sourcesContent":["import { type SuperRefinement, ZodIssueCode } from \"zod\";\n\n/**\n * Actually it is 35, but because we need to add extra space between\n * first_name and last_name, reduce by 1 character\n */\nexport const UPS_SHIPPING_LABEL_MAX_FULL_NAME = 34;\nexport const FIRST_NAME_MAX_LENGTH = 17;\n\nexport const createLastNameSuperRefinement: SuperRefinement<{\n firstName: string;\n lastName: string;\n}> = ({ firstName, lastName }, ctx) => {\n const returnMaxLastNameLength = Math.max(\n Math.max(UPS_SHIPPING_LABEL_MAX_FULL_NAME - firstName.length, 0),\n FIRST_NAME_MAX_LENGTH,\n );\n\n if (lastName.length > returnMaxLastNameLength) {\n return ctx.addIssue({\n path: [\"lastName\"],\n code: ZodIssueCode.too_big,\n type: \"string\",\n maximum: returnMaxLastNameLength,\n inclusive: true,\n });\n }\n};\n"],"names":["UPS_SHIPPING_LABEL_MAX_FULL_NAME","FIRST_NAME_MAX_LENGTH","createLastNameSuperRefinement","firstName","lastName","ctx","returnMaxLastNameLength","Math","max","length","addIssue","path","code","ZodIssueCode","too_big","type","maximum","inclusive"],"mappings":";;;;AAMO,MAAMA,gCAAmC,GAAA,EAAA;AACzC,MAAMC,qBAAwB,GAAA,EAAA;AAE9B,MAAMC,gCAGRA,CAAC;EAAEC,SAAW;EAAAC;AAAA,GAAYC,GAAQ,KAAA;EACrC,MAAMC,0BAA0BC,IAAK,CAAAC,GAAA,CACnCD,IAAK,CAAAC,GAAA,CAAIR,gCAAmC,GAAAG,SAAA,CAAUM,QAAQ,CAAC,CAAA,EAC/DR,qBAAA,CACF;EAEI,IAAAG,QAAA,CAASK,SAASH,uBAAyB,EAAA;IAC7C,OAAOD,IAAIK,QAAS,CAAA;MAClBC,IAAA,EAAM,CAAC,UAAU,CAAA;MACjBC,MAAMC,GAAa,CAAAA,YAAA,CAAAC,OAAA;MACnBC,IAAM,EAAA,QAAA;MACNC,OAAS,EAAAV,uBAAA;MACTW,SAAW,EAAA;IAAA,CACZ,CAAA;EACH;AACF,CAAA;;;"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ZodIssueCode } from 'zod';
|
|
2
|
+
"use strict";
|
|
3
|
+
const UPS_SHIPPING_LABEL_MAX_FULL_NAME = 34;
|
|
4
|
+
const FIRST_NAME_MAX_LENGTH = 17;
|
|
5
|
+
const createLastNameSuperRefinement = ({
|
|
6
|
+
firstName,
|
|
7
|
+
lastName
|
|
8
|
+
}, ctx) => {
|
|
9
|
+
const returnMaxLastNameLength = Math.max(Math.max(UPS_SHIPPING_LABEL_MAX_FULL_NAME - firstName.length, 0), FIRST_NAME_MAX_LENGTH);
|
|
10
|
+
if (lastName.length > returnMaxLastNameLength) {
|
|
11
|
+
return ctx.addIssue({
|
|
12
|
+
path: ["lastName"],
|
|
13
|
+
code: ZodIssueCode.too_big,
|
|
14
|
+
type: "string",
|
|
15
|
+
maximum: returnMaxLastNameLength,
|
|
16
|
+
inclusive: true
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
export { FIRST_NAME_MAX_LENGTH, UPS_SHIPPING_LABEL_MAX_FULL_NAME, createLastNameSuperRefinement };
|
|
21
|
+
//# sourceMappingURL=lastNameSuperRefinement.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lastNameSuperRefinement.mjs","sources":["../../../src/utils/validations/lastNameSuperRefinement.ts"],"sourcesContent":["import { type SuperRefinement, ZodIssueCode } from \"zod\";\n\n/**\n * Actually it is 35, but because we need to add extra space between\n * first_name and last_name, reduce by 1 character\n */\nexport const UPS_SHIPPING_LABEL_MAX_FULL_NAME = 34;\nexport const FIRST_NAME_MAX_LENGTH = 17;\n\nexport const createLastNameSuperRefinement: SuperRefinement<{\n firstName: string;\n lastName: string;\n}> = ({ firstName, lastName }, ctx) => {\n const returnMaxLastNameLength = Math.max(\n Math.max(UPS_SHIPPING_LABEL_MAX_FULL_NAME - firstName.length, 0),\n FIRST_NAME_MAX_LENGTH,\n );\n\n if (lastName.length > returnMaxLastNameLength) {\n return ctx.addIssue({\n path: [\"lastName\"],\n code: ZodIssueCode.too_big,\n type: \"string\",\n maximum: returnMaxLastNameLength,\n inclusive: true,\n });\n }\n};\n"],"names":["UPS_SHIPPING_LABEL_MAX_FULL_NAME","FIRST_NAME_MAX_LENGTH","createLastNameSuperRefinement","firstName","lastName","ctx","returnMaxLastNameLength","Math","max","length","addIssue","path","code","ZodIssueCode","too_big","type","maximum","inclusive"],"mappings":";;AAMO,MAAMA,gCAAmC,GAAA,EAAA;AACzC,MAAMC,qBAAwB,GAAA,EAAA;AAE9B,MAAMC,gCAGRA,CAAC;EAAEC,SAAW;EAAAC;AAAA,GAAYC,GAAQ,KAAA;EACrC,MAAMC,0BAA0BC,IAAK,CAAAC,GAAA,CACnCD,IAAK,CAAAC,GAAA,CAAIR,gCAAmC,GAAAG,SAAA,CAAUM,QAAQ,CAAC,CAAA,EAC/DR,qBAAA,CACF;EAEI,IAAAG,QAAA,CAASK,SAASH,uBAAyB,EAAA;IAC7C,OAAOD,IAAIK,QAAS,CAAA;MAClBC,IAAA,EAAM,CAAC,UAAU,CAAA;MACjBC,MAAMC,YAAa,CAAAC,OAAA;MACnBC,IAAM,EAAA,QAAA;MACNC,OAAS,EAAAV,uBAAA;MACTW,SAAW,EAAA;IAAA,CACZ,CAAA;EACH;AACF,CAAA;"}
|
package/package.json
CHANGED
package/lib/assets/clients2.svg
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<g clip-path="url(#clip0_5903_35033)">
|
|
3
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M26.5508 6.7501C26.5508 5.83883 25.812 5.1001 24.9008 5.1001H5.10078C4.18951 5.1001 3.45078 5.83883 3.45078 6.7501V18.3001H5.10078V6.7501H24.9008V8.4001H26.5508V6.7501ZM28.2008 11.7001C28.2008 10.7888 27.462 10.0501 26.5508 10.0501H19.9508C19.0395 10.0501 18.3008 10.7888 18.3008 11.7001V13.3501H19.9508V11.7001H26.5508V23.2501H24.9008V24.9001H26.5508C27.462 24.9001 28.2008 24.1614 28.2008 23.2501V11.7001ZM16.6508 23.2501H21.6008V16.6501H16.6508V23.2501ZM21.6008 15.0001C22.5121 15.0001 23.2508 15.7388 23.2508 16.6501V23.2501C23.2508 24.1614 22.5121 24.9001 21.6008 24.9001H16.6508C15.7395 24.9001 15.0008 24.1614 15.0008 23.2501V16.6501C15.0008 15.7388 15.7395 15.0001 16.6508 15.0001H21.6008ZM3.03828 19.9501H13.3508V21.6001H3.45078C3.45078 22.5114 4.18951 23.2501 5.10078 23.2501H13.3508V24.9001H5.51328C3.46292 24.9001 1.80078 23.238 1.80078 21.1876C1.80078 20.5041 2.35483 19.9501 3.03828 19.9501Z" fill="#212124"/>
|
|
4
|
-
</g>
|
|
5
|
-
<defs>
|
|
6
|
-
<clipPath id="clip0_5903_35033">
|
|
7
|
-
<rect width="30" height="30" fill="white"/>
|
|
8
|
-
</clipPath>
|
|
9
|
-
</defs>
|
|
10
|
-
</svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"icon-globe.svg.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"icon-globe.svg.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"clients.svg.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"clients.svg.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"phased_array.svg.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"phased_array.svg.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HorizontalOptionSelect.js","sources":["../../../../../src/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.tsx"],"sourcesContent":["import * as S from \"./HorizontalOptionSelect.styles\";\nimport type { HorizontalOptionSelectProps } from \"./HorizontalOptionSelect.types\";\n\nexport const HorizontalOptionSelect = ({\n items,\n activeId,\n className,\n}: HorizontalOptionSelectProps) => {\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.HorizontalOptionSelectWrap className={className}>\n {items.map((item) => (\n <S.Button\n key={item.id}\n onClick={item.onSelect}\n $active={activeId === item.id}\n >\n {item.label}\n </S.Button>\n ))}\n </S.HorizontalOptionSelectWrap>\n );\n};\n"],"names":["HorizontalOptionSelect","items","activeId","className","jsx","S.HorizontalOptionSelectWrap","HorizontalOptionSelectWrap","children","map","item","S.Button","Button","onClick","onSelect","$active","id","label"],"mappings":";;;;;AAGO,MAAMA,yBAAyBA,CAAC;EACrCC,KAAA;EACAC,QAAA;EACAC;AACF,CAAmC,KAAA;EAK/B,sBAAAC,UAAA,CAAAA,GAAA,CAACC,6BAAA,CAAAC,0BAAA,EAAA;IAA6BH;IAC3BI,QAAM,EAAAN,KAAA,CAAAO,GAAA,CAAKC,IACV,mBAAAL,UAAA,CAAAA,GAAA,CAACM,6BAAE,CAAAC,MAAA,EAAF;MAECC,SAASH,IAAK,CAAAI,QAAA;MACdC,OAAA,EAASZ,aAAaO,IAAK,CAAAM,EAAA;MAE1BR,QAAK,EAAAE,IAAA,CAAAO;IAAA,CAAA,EAJDP,IAAK,CAAAM,EAMb,CAAA;EACH,CAAA,CAAA;AAEJ,CAAA;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HorizontalOptionSelect.mjs","sources":["../../../../../src/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.tsx"],"sourcesContent":["import * as S from \"./HorizontalOptionSelect.styles\";\nimport type { HorizontalOptionSelectProps } from \"./HorizontalOptionSelect.types\";\n\nexport const HorizontalOptionSelect = ({\n items,\n activeId,\n className,\n}: HorizontalOptionSelectProps) => {\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.HorizontalOptionSelectWrap className={className}>\n {items.map((item) => (\n <S.Button\n key={item.id}\n onClick={item.onSelect}\n $active={activeId === item.id}\n >\n {item.label}\n </S.Button>\n ))}\n </S.HorizontalOptionSelectWrap>\n );\n};\n"],"names":["HorizontalOptionSelect","items","activeId","className","jsx","S.HorizontalOptionSelectWrap","children","map","item","S.Button","onClick","onSelect","$active","id","label"],"mappings":";;;AAGO,MAAMA,yBAAyBA,CAAC;EACrCC,KAAA;EACAC,QAAA;EACAC;AACF,CAAmC,KAAA;EAK/B,sBAAAC,GAAA,CAACC,0BAAA,EAAA;IAA6BF;IAC3BG,QAAM,EAAAL,KAAA,CAAAM,GAAA,CAAKC,IACV,mBAAAJ,GAAA,CAACK,MAAE,EAAF;MAECC,SAASF,IAAK,CAAAG,QAAA;MACdC,OAAA,EAASV,aAAaM,IAAK,CAAAK,EAAA;MAE1BP,QAAK,EAAAE,IAAA,CAAAM;IAAA,CAAA,EAJDN,IAAK,CAAAK,EAMb,CAAA;EACH,CAAA,CAAA;AAEJ,CAAA;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HorizontalOptionSelect.styles.js","sources":["../../../../../src/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.ts"],"sourcesContent":["import styled from \"styled-components\";\n\nexport const HorizontalOptionSelectWrap = styled.div`\n border-radius: 80px;\n background-color: #f6f6f8;\n display: flex;\n padding: 4px;\n overflow-x: auto;\n\n &::-webkit-slider-thumb,\n &::-webkit-scrollbar {\n display: none;\n }\n`;\n\nexport const Button = styled.button<{\n $active: boolean;\n}>`\n font-size: 14px;\n line-height: 16.9px;\n font-weight: 400;\n\n border: none;\n outline: none;\n box-shadow: none;\n\n padding: 7px 12px;\n border-radius: 20px;\n\n background-color: ${({ $active }) => ($active ? \"#FFFFFF\" : \"transparent\")};\n color: ${({ $active }) => ($active ? \"#2D6EF6\" : \"#565657\")};\n\n flex-grow: 1;\n white-space: nowrap;\n cursor: pointer;\n`;\n"],"names":["HorizontalOptionSelectWrap","styled","div","Button","button","$active"],"mappings":";;;;;;;;;;AAEO,MAAMA,6BAA6BC,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAa1C,MAAMC,SAASF,eAAO,CAAA,SAAA,CAAA,CAAAG,MAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAcP,CAAC;EAAEC;AAAA,CAAe,KAAAA,OAAA,GAAU,YAAY,aAAc;AAAA,WACjE,CAAC;EAAEA;AAAA,CAAe,KAAAA,OAAA,GAAU,YAAY,SAAU;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HorizontalOptionSelect.styles.mjs","sources":["../../../../../src/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.ts"],"sourcesContent":["import styled from \"styled-components\";\n\nexport const HorizontalOptionSelectWrap = styled.div`\n border-radius: 80px;\n background-color: #f6f6f8;\n display: flex;\n padding: 4px;\n overflow-x: auto;\n\n &::-webkit-slider-thumb,\n &::-webkit-scrollbar {\n display: none;\n }\n`;\n\nexport const Button = styled.button<{\n $active: boolean;\n}>`\n font-size: 14px;\n line-height: 16.9px;\n font-weight: 400;\n\n border: none;\n outline: none;\n box-shadow: none;\n\n padding: 7px 12px;\n border-radius: 20px;\n\n background-color: ${({ $active }) => ($active ? \"#FFFFFF\" : \"transparent\")};\n color: ${({ $active }) => ($active ? \"#2D6EF6\" : \"#565657\")};\n\n flex-grow: 1;\n white-space: nowrap;\n cursor: pointer;\n`;\n"],"names":["HorizontalOptionSelectWrap","styled","div","Button","button","$active"],"mappings":";;AAEO,MAAMA,6BAA6BC,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAa1C,MAAMC,SAASF,MAAO,CAAAG,MAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAcP,CAAC;EAAEC;AAAA,CAAe,KAAAA,OAAA,GAAU,YAAY,aAAc;AAAA,WACjE,CAAC;EAAEA;AAAA,CAAe,KAAAA,OAAA,GAAU,YAAY,SAAU;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./HorizontalOptionSelect";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|