@ubnt/store.core 9.22.0 → 9.23.0-alpha.0
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 +315 -3
- package/lib/_virtual/_virtual_multi-entry.js +61 -42
- package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
- package/lib/_virtual/_virtual_multi-entry.mjs +48 -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/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/large-scale.png +0 -0
- package/lib/assets/managed-voip.png +0 -0
- package/lib/assets/mega-capacity.jpg +0 -0
- package/lib/assets/minus4.svg +8 -8
- package/lib/assets/minus5.svg +8 -8
- 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/pause.svg +3 -3
- package/lib/assets/pause2.svg +3 -3
- package/lib/assets/plus5.svg +9 -9
- package/lib/assets/plus6.svg +9 -9
- 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/ucgMax.jpg +0 -0
- package/lib/assets/ucgMax2.jpg +0 -0
- package/lib/assets/ucgUltra.jpg +0 -0
- package/lib/assets/ucgUltra2.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/Button/CartButton.js +13 -7
- package/lib/components/Button/CartButton.js.map +1 -1
- package/lib/components/Button/CartButton.mjs +13 -7
- package/lib/components/Button/CartButton.mjs.map +1 -1
- 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/Compare/Compare.styles.d.ts +5 -5
- package/lib/components/Container/Container.d.ts +1 -1
- package/lib/components/Container/Container.js +4 -3
- 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/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/Header/AccountMenu/AccountMenu.js +14 -4
- 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/AccountMenu/AccountMenu.styles.d.ts +3 -3
- package/lib/components/Header/Header.js +19 -18
- 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 +20 -4
- 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 +47 -47
- 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/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/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.styles.d.ts +1 -1
- package/lib/components/Header/Navigation/ProMenu/ProMenu.d.ts +2 -0
- package/lib/components/Header/Navigation/ProMenu/ProMenu.js +103 -0
- package/lib/components/Header/Navigation/ProMenu/ProMenu.js.map +1 -0
- package/lib/components/Header/Navigation/ProMenu/ProMenu.mjs +81 -0
- package/lib/components/Header/Navigation/ProMenu/ProMenu.mjs.map +1 -0
- package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.d.ts +23 -0
- package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.js +121 -0
- package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.js.map +1 -0
- package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.mjs +106 -0
- package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.mjs.map +1 -0
- package/lib/components/Header/Navigation/ProMenu/ProMenu.types.d.ts +12 -0
- package/lib/components/Header/Navigation/ProMenu/index.d.ts +1 -0
- package/lib/components/Header/Navigation/ProMenu/index.js +6 -0
- package/lib/components/Header/Navigation/ProMenu/index.js.map +1 -0
- package/lib/components/Header/Navigation/ProMenu/index.mjs +3 -0
- package/lib/components/Header/Navigation/ProMenu/index.mjs.map +1 -0
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.d.ts +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +101 -101
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +101 -101
- 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 +10 -4
- package/lib/components/Header/ProHeader/ProHeader.d.ts +4 -4
- package/lib/components/Header/ProHeader/ProHeader.js +219 -131
- package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.mjs +221 -132
- package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +7 -4
- package/lib/components/Header/ProHeader/ProHeader.styles.js +32 -20
- package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs +30 -21
- 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 +4 -1
- package/lib/components/Header/translations/en.json.js.map +1 -1
- package/lib/components/Header/translations/en.json.mjs +4 -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.styles.d.ts +2 -2
- package/lib/components/HeroFadeGallery/HeroFadeGallery.styles.d.ts +1 -1
- 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/InputSelect/InputSelect.styles.d.ts +1 -1
- package/lib/components/LandingPage/Cards/Cards.js +4 -4
- 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/LandingPagePro/LandingPagePro.styles.d.ts +1 -1
- 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/MicrositeHeader/MicrositeHeader.d.ts +2 -0
- package/lib/components/MicrositeHeader/MicrositeHeader.js +28 -0
- package/lib/components/MicrositeHeader/MicrositeHeader.js.map +1 -0
- package/lib/components/MicrositeHeader/MicrositeHeader.mjs +26 -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 +5 -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 +10 -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 +240 -0
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.js.map +1 -0
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.mjs +229 -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 +195 -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 +173 -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/MicrositeSectionWrap/MicrositeSectionWrap.styles.d.ts +1 -1
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +1 -1
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.mjs +1 -1
- package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.js +1 -1
- package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.mjs +2 -2
- package/lib/components/MobileModal/MobileModal.js +1 -1
- 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/ModelCompareV3/ModelCompareV3.types.d.ts +4 -0
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.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/data/CloudGateways.js +6 -6
- package/lib/components/ModelCompareV3/data/CloudGateways.mjs +4 -4
- 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 +18 -17
- package/lib/components/ModelCompareV3/data/index.js +37 -34
- package/lib/components/ModelCompareV3/data/index.js.map +1 -1
- package/lib/components/ModelCompareV3/data/index.mjs +37 -34
- package/lib/components/ModelCompareV3/data/index.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 +2 -2
- package/lib/components/ModelCompareV3/data/products/ucgMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +2 -2
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js +3 -3
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +4 -4
- package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.js +2 -2
- package/lib/components/ModelCompareV3/data/products/udmPro.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/udmPro.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.js +2 -2
- package/lib/components/ModelCompareV3/data/products/udmProMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/udmProMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +2 -2
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udr.js +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/translations/en.json.js +60 -7
- package/lib/components/ModelCompareV3/translations/en.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/en.json.mjs +60 -7
- package/lib/components/ModelCompareV3/translations/en.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/useModelCompareTranslation.d.ts +2 -2
- package/lib/components/ProductCardPopup/ProductCardPopup.styles.d.ts +1 -1
- package/lib/components/ProductGrid/ProductGrid.styles.d.ts +1 -1
- package/lib/components/ProductRecommendedAccessories/ProductRecommendedAccessories.styles.d.ts +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/ProductTechSpecs/ProductTechSpecs.styles.d.ts +1 -1
- 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.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 +120 -34
- 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 +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.js +2 -0
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.mjs +2 -0
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js +1 -1
- 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/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +4 -4
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +4 -4
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +1 -2
- 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/Tooltip/Tooltip.styles.d.ts +5 -5
- package/lib/components/VariantSelectorV1/VariantSelector.styles.d.ts +3 -3
- package/lib/components/VariantSelectorV2/VariantSelector.styles.d.ts +3 -3
- package/lib/components/VideoPlayerNew/VideoPlayer.js +1 -1
- package/lib/components/VideoPlayerNew/VideoPlayer.mjs +1 -1
- package/lib/components/VideoPlayerNew/assets/pause.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/pause.svg.mjs +2 -2
- package/lib/components/index.d.ts +2 -0
- package/lib/components/index.js +34 -30
- package/lib/components/index.js.map +1 -1
- package/lib/components/index.mjs +34 -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 +3 -3
- package/lib/constants/icons/header/account.svg.js +5 -5
- package/lib/constants/icons/header/globe.svg.js +5 -5
- package/lib/constants/icons/header/index.js +9 -9
- package/lib/constants/icons/header/logoUnifi.svg.js +5 -5
- package/lib/constants/icons/menu/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/icons/options/colors/black.svg.js +5 -5
- package/lib/constants/icons/options/colors/index.js +3 -3
- package/lib/constants/icons/options/styles/black.svg.js +5 -5
- package/lib/constants/icons/options/styles/index.js +3 -3
- package/lib/constants/optionIcons.js +6 -6
- package/lib/constants/optionIcons.mjs +4 -4
- package/lib/constants/proStoreCategories/mapping/index.d.ts +4 -2
- package/lib/constants/proStoreCategories/mapping/index.js +74 -89
- package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.mjs +73 -87
- package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/redirects.js +17 -2
- package/lib/constants/proStoreCategories/mapping/redirects.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/redirects.mjs +17 -2
- package/lib/constants/proStoreCategories/mapping/redirects.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.d.ts +8 -6
- package/lib/constants/proStoreCategories/mapping/unifi.js +7 -5
- package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.mjs +7 -5
- package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.js +3 -0
- package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.mjs +3 -0
- package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.js +3 -0
- package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.mjs +3 -0
- package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.js +3 -0
- package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.mjs +3 -0
- package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.js +6 -2
- package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.mjs +6 -3
- package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.js +3 -0
- package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.mjs +3 -0
- package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js +4 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.mjs +4 -1
- package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.js +3 -0
- package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.mjs +3 -0
- package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.js +3 -0
- package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.mjs +3 -0
- package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js +3 -0
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +3 -0
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +4 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +4 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +4 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +4 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/constants/proStoreFilters/mapping.js +4 -4
- package/lib/constants/proStoreFilters/mapping.js.map +1 -1
- package/lib/constants/proStoreFilters/mapping.mjs +4 -4
- package/lib/constants/proStoreFilters/mapping.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 +1 -1
- 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 +788 -0
- package/lib/contexts/MicrositeMenuContext/mapping.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/mapping.mjs +712 -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/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/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/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/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/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/package.json +10 -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/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/{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/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
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type { Currency } from "../types";
|
|
2
|
+
export declare enum DisplayProductStatus {
|
|
3
|
+
Available = "Available",
|
|
4
|
+
Backorder = "Backorder",
|
|
5
|
+
ComingSoon = "ComingSoon",
|
|
6
|
+
RegionNotAvailable = "RegionNotAvailable",
|
|
7
|
+
SoldOut = "SoldOut",
|
|
8
|
+
Unavailable = "Unavailable"
|
|
9
|
+
}
|
|
10
|
+
export type CollectionSection = {
|
|
11
|
+
id: string;
|
|
12
|
+
productTags: Array<string>;
|
|
13
|
+
title: string;
|
|
14
|
+
};
|
|
15
|
+
export interface Section extends CollectionSection {
|
|
16
|
+
items: Section[];
|
|
17
|
+
}
|
|
18
|
+
export type ProductTagFragment = {
|
|
19
|
+
__typename?: "ProductTag";
|
|
20
|
+
name: string;
|
|
21
|
+
};
|
|
22
|
+
export interface MappedProductSection<T> extends Section {
|
|
23
|
+
items: MappedProductSection<T>[];
|
|
24
|
+
products: T[];
|
|
25
|
+
/**
|
|
26
|
+
* States which is conditionally calculated based on the need.
|
|
27
|
+
* E.g. if it is an optical collection where collection sections
|
|
28
|
+
* are rendered inside the VariantSelector items, we need to
|
|
29
|
+
* know which section does not contain products that are in stock.
|
|
30
|
+
* If all products in the section are out of stock, we need to
|
|
31
|
+
* apply grayed out style to the section button.
|
|
32
|
+
*/
|
|
33
|
+
isDisabled?: boolean;
|
|
34
|
+
}
|
|
35
|
+
export interface StorefrontProduct {
|
|
36
|
+
id: string;
|
|
37
|
+
slug: string;
|
|
38
|
+
title: string;
|
|
39
|
+
shortTitle?: string | null;
|
|
40
|
+
collectionSlug?: string | null;
|
|
41
|
+
organizationalCollectionSlug?: string | null;
|
|
42
|
+
proCollectionSlug?: string | null;
|
|
43
|
+
status: DisplayProductStatus;
|
|
44
|
+
options: Array<{
|
|
45
|
+
__typename?: "StorefrontOption";
|
|
46
|
+
id: string;
|
|
47
|
+
title: string;
|
|
48
|
+
slug: string;
|
|
49
|
+
values: Array<{
|
|
50
|
+
__typename?: "StorefrontOptionValue";
|
|
51
|
+
id: string;
|
|
52
|
+
title: string;
|
|
53
|
+
slug: string;
|
|
54
|
+
}>;
|
|
55
|
+
}>;
|
|
56
|
+
tags: Array<{
|
|
57
|
+
__typename?: "ProductTag";
|
|
58
|
+
name: string;
|
|
59
|
+
}>;
|
|
60
|
+
minDisplayPrice: {
|
|
61
|
+
__typename?: "Money";
|
|
62
|
+
amount: number;
|
|
63
|
+
currency: Currency;
|
|
64
|
+
};
|
|
65
|
+
variants: Array<{
|
|
66
|
+
__typename?: "StorefrontProductVariant";
|
|
67
|
+
id: string;
|
|
68
|
+
status: DisplayProductStatus;
|
|
69
|
+
availableInOtherStores: Array<{
|
|
70
|
+
__typename: "StorefrontProductVariantAlternativeStore";
|
|
71
|
+
}>;
|
|
72
|
+
optionValueIds?: Array<string> | null;
|
|
73
|
+
}>;
|
|
74
|
+
}
|
|
75
|
+
export type StorefrontOptionValue = {
|
|
76
|
+
__typename?: "StorefrontOptionValue";
|
|
77
|
+
id: string;
|
|
78
|
+
slug: string;
|
|
79
|
+
title: string;
|
|
80
|
+
};
|
|
81
|
+
export type StorefrontOption = {
|
|
82
|
+
__typename?: "StorefrontOption";
|
|
83
|
+
id: string;
|
|
84
|
+
slug: string;
|
|
85
|
+
title: string;
|
|
86
|
+
values: Array<StorefrontOptionValue>;
|
|
87
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var DisplayProductStatus = /* @__PURE__ */(DisplayProductStatus2 => {
|
|
5
|
+
DisplayProductStatus2["Available"] = "Available";
|
|
6
|
+
DisplayProductStatus2["Backorder"] = "Backorder";
|
|
7
|
+
DisplayProductStatus2["ComingSoon"] = "ComingSoon";
|
|
8
|
+
DisplayProductStatus2["RegionNotAvailable"] = "RegionNotAvailable";
|
|
9
|
+
DisplayProductStatus2["SoldOut"] = "SoldOut";
|
|
10
|
+
DisplayProductStatus2["Unavailable"] = "Unavailable";
|
|
11
|
+
return DisplayProductStatus2;
|
|
12
|
+
})(DisplayProductStatus || {});
|
|
13
|
+
exports.DisplayProductStatus = DisplayProductStatus;
|
|
14
|
+
//# sourceMappingURL=product.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.js","sources":["../../src/types/product.ts"],"sourcesContent":["import type { Currency } from \"../types\";\n\n\nexport enum DisplayProductStatus {\n Available = \"Available\",\n Backorder = \"Backorder\",\n ComingSoon = \"ComingSoon\",\n RegionNotAvailable = \"RegionNotAvailable\",\n SoldOut = \"SoldOut\",\n Unavailable = \"Unavailable\",\n}\n\nexport type CollectionSection = {\n id: string;\n productTags: Array<string>;\n title: string;\n};\n\nexport interface Section extends CollectionSection {\n items: Section[];\n}\n\nexport type ProductTagFragment = { __typename?: \"ProductTag\"; name: string };\n\nexport interface MappedProductSection<T> extends Section {\n items: MappedProductSection<T>[];\n products: T[];\n /**\n * States which is conditionally calculated based on the need.\n * E.g. if it is an optical collection where collection sections\n * are rendered inside the VariantSelector items, we need to\n * know which section does not contain products that are in stock.\n * If all products in the section are out of stock, we need to\n * apply grayed out style to the section button.\n */\n isDisabled?: boolean;\n}\n\nexport interface StorefrontProduct {\n id: string;\n slug: string;\n title: string;\n shortTitle?: string | null;\n collectionSlug?: string | null;\n organizationalCollectionSlug?: string | null;\n proCollectionSlug?: string | null;\n status: DisplayProductStatus;\n options: Array<{\n __typename?: \"StorefrontOption\";\n id: string;\n title: string;\n slug: string;\n values: Array<{\n __typename?: \"StorefrontOptionValue\";\n id: string;\n title: string;\n slug: string;\n }>;\n }>;\n tags: Array<{ __typename?: \"ProductTag\"; name: string }>;\n minDisplayPrice: { __typename?: \"Money\"; amount: number; currency: Currency };\n variants: Array<{\n __typename?: \"StorefrontProductVariant\";\n id: string;\n status: DisplayProductStatus;\n availableInOtherStores: Array<{\n __typename: \"StorefrontProductVariantAlternativeStore\";\n }>;\n optionValueIds?: Array<string> | null;\n }>;\n}\n\nexport type StorefrontOptionValue = {\n __typename?: \"StorefrontOptionValue\";\n id: string;\n slug: string;\n title: string;\n};\n\nexport type StorefrontOption = {\n __typename?: \"StorefrontOption\";\n id: string;\n slug: string;\n title: string;\n values: Array<StorefrontOptionValue>;\n};\n"],"names":["DisplayProductStatus"],"mappings":";;;AAGY,IAAAA,oBAAA,GAAA,gBAAAA,qBAAL,IAAA;EACLA,sBAAA,WAAY,CAAA,GAAA,WAAA;EACZA,sBAAA,WAAY,CAAA,GAAA,WAAA;EACZA,sBAAA,YAAa,CAAA,GAAA,YAAA;EACbA,sBAAA,oBAAqB,CAAA,GAAA,oBAAA;EACrBA,sBAAA,SAAU,CAAA,GAAA,SAAA;EACVA,sBAAA,aAAc,CAAA,GAAA,aAAA;EANJA,OAAAA,qBAAAA;AAAA,CAAA,EAAAA,oBAAA,IAAA,CAAA,CAAA,CAAA;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var DisplayProductStatus = /* @__PURE__ */(DisplayProductStatus2 => {
|
|
4
|
+
DisplayProductStatus2["Available"] = "Available";
|
|
5
|
+
DisplayProductStatus2["Backorder"] = "Backorder";
|
|
6
|
+
DisplayProductStatus2["ComingSoon"] = "ComingSoon";
|
|
7
|
+
DisplayProductStatus2["RegionNotAvailable"] = "RegionNotAvailable";
|
|
8
|
+
DisplayProductStatus2["SoldOut"] = "SoldOut";
|
|
9
|
+
DisplayProductStatus2["Unavailable"] = "Unavailable";
|
|
10
|
+
return DisplayProductStatus2;
|
|
11
|
+
})(DisplayProductStatus || {});
|
|
12
|
+
export { DisplayProductStatus };
|
|
13
|
+
//# sourceMappingURL=product.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.mjs","sources":["../../src/types/product.ts"],"sourcesContent":["import type { Currency } from \"../types\";\n\n\nexport enum DisplayProductStatus {\n Available = \"Available\",\n Backorder = \"Backorder\",\n ComingSoon = \"ComingSoon\",\n RegionNotAvailable = \"RegionNotAvailable\",\n SoldOut = \"SoldOut\",\n Unavailable = \"Unavailable\",\n}\n\nexport type CollectionSection = {\n id: string;\n productTags: Array<string>;\n title: string;\n};\n\nexport interface Section extends CollectionSection {\n items: Section[];\n}\n\nexport type ProductTagFragment = { __typename?: \"ProductTag\"; name: string };\n\nexport interface MappedProductSection<T> extends Section {\n items: MappedProductSection<T>[];\n products: T[];\n /**\n * States which is conditionally calculated based on the need.\n * E.g. if it is an optical collection where collection sections\n * are rendered inside the VariantSelector items, we need to\n * know which section does not contain products that are in stock.\n * If all products in the section are out of stock, we need to\n * apply grayed out style to the section button.\n */\n isDisabled?: boolean;\n}\n\nexport interface StorefrontProduct {\n id: string;\n slug: string;\n title: string;\n shortTitle?: string | null;\n collectionSlug?: string | null;\n organizationalCollectionSlug?: string | null;\n proCollectionSlug?: string | null;\n status: DisplayProductStatus;\n options: Array<{\n __typename?: \"StorefrontOption\";\n id: string;\n title: string;\n slug: string;\n values: Array<{\n __typename?: \"StorefrontOptionValue\";\n id: string;\n title: string;\n slug: string;\n }>;\n }>;\n tags: Array<{ __typename?: \"ProductTag\"; name: string }>;\n minDisplayPrice: { __typename?: \"Money\"; amount: number; currency: Currency };\n variants: Array<{\n __typename?: \"StorefrontProductVariant\";\n id: string;\n status: DisplayProductStatus;\n availableInOtherStores: Array<{\n __typename: \"StorefrontProductVariantAlternativeStore\";\n }>;\n optionValueIds?: Array<string> | null;\n }>;\n}\n\nexport type StorefrontOptionValue = {\n __typename?: \"StorefrontOptionValue\";\n id: string;\n slug: string;\n title: string;\n};\n\nexport type StorefrontOption = {\n __typename?: \"StorefrontOption\";\n id: string;\n slug: string;\n title: string;\n values: Array<StorefrontOptionValue>;\n};\n"],"names":["DisplayProductStatus"],"mappings":";;AAGY,IAAAA,oBAAA,GAAA,gBAAAA,qBAAL,IAAA;EACLA,sBAAA,WAAY,CAAA,GAAA,WAAA;EACZA,sBAAA,WAAY,CAAA,GAAA,WAAA;EACZA,sBAAA,YAAa,CAAA,GAAA,YAAA;EACbA,sBAAA,oBAAqB,CAAA,GAAA,oBAAA;EACrBA,sBAAA,SAAU,CAAA,GAAA,SAAA;EACVA,sBAAA,aAAc,CAAA,GAAA,aAAA;EANJA,OAAAA,qBAAAA;AAAA,CAAA,EAAAA,oBAAA,IAAA,CAAA,CAAA,CAAA;"}
|
package/lib/utils/array.d.ts
CHANGED
|
@@ -28,3 +28,7 @@ export declare const arraySafeIndexFind: <T>(array: T[], index: number) => T | u
|
|
|
28
28
|
* Normalise sort result to be in range of -1 to 1 so that we can easily combine multiple sorts
|
|
29
29
|
*/
|
|
30
30
|
export declare const normalizeSortResult: (sortResult: number) => number;
|
|
31
|
+
/**
|
|
32
|
+
* Combine multiple sort functions into one
|
|
33
|
+
*/
|
|
34
|
+
export declare const combineSorts: <T>(sorts: ((a: T, b: T) => number)[]) => ((a: T, b: T) => number);
|
package/lib/utils/array.js
CHANGED
|
@@ -24,9 +24,19 @@ const arraySafeIndexFind = (array, index) => {
|
|
|
24
24
|
return array[safeIndex];
|
|
25
25
|
};
|
|
26
26
|
const normalizeSortResult = sortResult => number.clamp(sortResult, -1, 1);
|
|
27
|
+
const combineSorts = sorts => (a, b) => {
|
|
28
|
+
for (const sort of sorts) {
|
|
29
|
+
const result = sort(a, b);
|
|
30
|
+
if (result !== 0) {
|
|
31
|
+
return result;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return 0;
|
|
35
|
+
};
|
|
27
36
|
exports.areEqualArrays = areEqualArrays;
|
|
28
37
|
exports.arraySafeIndex = arraySafeIndex;
|
|
29
38
|
exports.arraySafeIndexFind = arraySafeIndexFind;
|
|
39
|
+
exports.combineSorts = combineSorts;
|
|
30
40
|
exports.dedupe = dedupe;
|
|
31
41
|
exports.ensureArray = ensureArray;
|
|
32
42
|
exports.normalizeSortResult = normalizeSortResult;
|
package/lib/utils/array.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"array.js","sources":["../../src/utils/array.ts"],"sourcesContent":["import { clamp } from \"./number\";\n\n/**\n * Make sure the element is an array\n * If it's not, make it an array of one element\n */\nexport function ensureArray<T>(value: T | T[]): T[] {\n return Array.isArray(value) ? value : [value];\n}\n\n/**\n * Utility to quickly remove duplicates from an array.\n *\n * Similar to lodash's `uniq`, but doesn't require lodash as dependency.\n */\nexport const dedupe = <T>(arr: T[]) => [...new Set(arr)];\n\n/**\n * Utility function check if given arrays contain same elements (regardless the order)\n *\n * @example\n * areArraysEqual([1, 2, 3], [3, 2, 1]) // true\n * areArraysEqual([1, 2, 3], [3, 2, 1, 4]) // false\n */\nexport const areEqualArrays = (a: string[], b: string[]): boolean => {\n if (a.length !== b.length) {\n return false;\n }\n if (!a.every((el) => b.includes(el))) {\n return false;\n }\n return !b.every((el) => a.includes(el)) ? false : true;\n};\n\n/**\n * Function to get array index by positive and negative wrap-around offsets\n *\n * @see https://dirask.com/posts/JavaScript-positive-and-negative-around-index-wrapping-overlapping-to-address-items-in-array-pVyrnD\n */\nexport const arraySafeIndex = <T>(array: T[], index: number): number => {\n const indexSize = array.length;\n\n return ((index % indexSize) + indexSize) % indexSize;\n};\n\nexport const arraySafeIndexFind = <T>(\n array: T[],\n index: number,\n): T | undefined => {\n const safeIndex = arraySafeIndex(array, index);\n\n return array[safeIndex];\n};\n\n/**\n * Normalise sort result to be in range of -1 to 1 so that we can easily combine multiple sorts\n */\nexport const normalizeSortResult = (sortResult: number): number =>\n clamp(sortResult, -1, 1);\n"],"names":["ensureArray","value","Array","isArray","dedupe","arr","Set","areEqualArrays","a","b","length","every","el","includes","arraySafeIndex","array","index","indexSize","arraySafeIndexFind","safeIndex","normalizeSortResult","sortResult","clamp"],"mappings":";;;;AAMO,SAASA,YAAeC,KAAqB,EAAA;EAClD,OAAOC,MAAMC,OAAQ,CAAAF,KAAK,CAAI,GAAAA,KAAA,GAAQ,CAACA,KAAK,CAAA;AAC9C;AAOa,MAAAG,MAAA,GAAaC,GAAa,IAAA,CAAC,GAAG,IAAIC,GAAA,CAAID,GAAG,CAAC,CAAA;AAS1C,MAAAE,cAAA,GAAiBA,CAACC,CAAA,EAAaC,CAAyB,KAAA;EAC/D,IAAAD,CAAA,CAAEE,MAAW,KAAAD,CAAA,CAAEC,MAAQ,EAAA;IAClB,OAAA,KAAA;EACT;EACI,IAAA,CAACF,EAAEG,KAAM,CAACC,MAAOH,CAAE,CAAAI,QAAA,CAASD,EAAE,CAAC,CAAG,EAAA;IAC7B,OAAA,KAAA;EACT;EACO,OAAA,CAACH,CAAE,CAAAE,KAAA,CAAOC,EAAA,IAAOJ,EAAEK,QAAS,CAAAD,EAAE,CAAC,CAAA,GAAI,KAAQ,GAAA,IAAA;AACpD,CAAA;AAOa,MAAAE,cAAA,GAAiBA,CAAIC,KAAA,EAAYC,KAA0B,KAAA;EACtE,MAAMC,YAAYF,KAAM,CAAAL,MAAA;EAEf,OAAA,CAAAM,KAAA,GAAQC,YAAaA,SAAa,IAAAA,SAAA;AAC7C,CAAA;AAEa,MAAAC,kBAAA,GAAqBA,CAChCH,KAAA,EACAC,KACkB,KAAA;EACZ,MAAAG,SAAA,GAAYL,cAAe,CAAAC,KAAA,EAAOC,KAAK,CAAA;EAE7C,OAAOD,MAAMI,SAAS,CAAA;AACxB,CAAA;AAKO,MAAMC,sBAAuBC,UAAA,IAClCC,MAAAA,CAAAA,KAAM,CAAAD,UAAA,EAAY,IAAI,CAAC,CAAA
|
|
1
|
+
{"version":3,"file":"array.js","sources":["../../src/utils/array.ts"],"sourcesContent":["import { clamp } from \"./number\";\n\n/**\n * Make sure the element is an array\n * If it's not, make it an array of one element\n */\nexport function ensureArray<T>(value: T | T[]): T[] {\n return Array.isArray(value) ? value : [value];\n}\n\n/**\n * Utility to quickly remove duplicates from an array.\n *\n * Similar to lodash's `uniq`, but doesn't require lodash as dependency.\n */\nexport const dedupe = <T>(arr: T[]) => [...new Set(arr)];\n\n/**\n * Utility function check if given arrays contain same elements (regardless the order)\n *\n * @example\n * areArraysEqual([1, 2, 3], [3, 2, 1]) // true\n * areArraysEqual([1, 2, 3], [3, 2, 1, 4]) // false\n */\nexport const areEqualArrays = (a: string[], b: string[]): boolean => {\n if (a.length !== b.length) {\n return false;\n }\n if (!a.every((el) => b.includes(el))) {\n return false;\n }\n return !b.every((el) => a.includes(el)) ? false : true;\n};\n\n/**\n * Function to get array index by positive and negative wrap-around offsets\n *\n * @see https://dirask.com/posts/JavaScript-positive-and-negative-around-index-wrapping-overlapping-to-address-items-in-array-pVyrnD\n */\nexport const arraySafeIndex = <T>(array: T[], index: number): number => {\n const indexSize = array.length;\n\n return ((index % indexSize) + indexSize) % indexSize;\n};\n\nexport const arraySafeIndexFind = <T>(\n array: T[],\n index: number,\n): T | undefined => {\n const safeIndex = arraySafeIndex(array, index);\n\n return array[safeIndex];\n};\n\n/**\n * Normalise sort result to be in range of -1 to 1 so that we can easily combine multiple sorts\n */\nexport const normalizeSortResult = (sortResult: number): number =>\n clamp(sortResult, -1, 1);\n\n/**\n * Combine multiple sort functions into one\n */\nexport const combineSorts =\n <T>(sorts: ((a: T, b: T) => number)[]): ((a: T, b: T) => number) =>\n (a, b) => {\n for (const sort of sorts) {\n const result = sort(a, b);\n\n if (result !== 0) {\n return result;\n }\n }\n\n return 0;\n };\n"],"names":["ensureArray","value","Array","isArray","dedupe","arr","Set","areEqualArrays","a","b","length","every","el","includes","arraySafeIndex","array","index","indexSize","arraySafeIndexFind","safeIndex","normalizeSortResult","sortResult","clamp","combineSorts","sorts","sort","result"],"mappings":";;;;AAMO,SAASA,YAAeC,KAAqB,EAAA;EAClD,OAAOC,MAAMC,OAAQ,CAAAF,KAAK,CAAI,GAAAA,KAAA,GAAQ,CAACA,KAAK,CAAA;AAC9C;AAOa,MAAAG,MAAA,GAAaC,GAAa,IAAA,CAAC,GAAG,IAAIC,GAAA,CAAID,GAAG,CAAC,CAAA;AAS1C,MAAAE,cAAA,GAAiBA,CAACC,CAAA,EAAaC,CAAyB,KAAA;EAC/D,IAAAD,CAAA,CAAEE,MAAW,KAAAD,CAAA,CAAEC,MAAQ,EAAA;IAClB,OAAA,KAAA;EACT;EACI,IAAA,CAACF,EAAEG,KAAM,CAACC,MAAOH,CAAE,CAAAI,QAAA,CAASD,EAAE,CAAC,CAAG,EAAA;IAC7B,OAAA,KAAA;EACT;EACO,OAAA,CAACH,CAAE,CAAAE,KAAA,CAAOC,EAAA,IAAOJ,EAAEK,QAAS,CAAAD,EAAE,CAAC,CAAA,GAAI,KAAQ,GAAA,IAAA;AACpD,CAAA;AAOa,MAAAE,cAAA,GAAiBA,CAAIC,KAAA,EAAYC,KAA0B,KAAA;EACtE,MAAMC,YAAYF,KAAM,CAAAL,MAAA;EAEf,OAAA,CAAAM,KAAA,GAAQC,YAAaA,SAAa,IAAAA,SAAA;AAC7C,CAAA;AAEa,MAAAC,kBAAA,GAAqBA,CAChCH,KAAA,EACAC,KACkB,KAAA;EACZ,MAAAG,SAAA,GAAYL,cAAe,CAAAC,KAAA,EAAOC,KAAK,CAAA;EAE7C,OAAOD,MAAMI,SAAS,CAAA;AACxB,CAAA;AAKO,MAAMC,sBAAuBC,UAAA,IAClCC,MAAAA,CAAAA,KAAM,CAAAD,UAAA,EAAY,IAAI,CAAC,CAAA;AAKlB,MAAME,YACX,GAAIC,KACJ,IAAA,CAAChB,GAAGC,CAAM,KAAA;EACR,KAAA,MAAWgB,QAAQD,KAAO,EAAA;IAClB,MAAAE,MAAA,GAASD,IAAK,CAAAjB,CAAA,EAAGC,CAAC,CAAA;IAExB,IAAIiB,WAAW,CAAG,EAAA;MACT,OAAAA,MAAA;IACT;EACF;EAEO,OAAA,CAAA;AACT,CAAA;;;;;;;"}
|
package/lib/utils/array.mjs
CHANGED
|
@@ -22,5 +22,14 @@ const arraySafeIndexFind = (array, index) => {
|
|
|
22
22
|
return array[safeIndex];
|
|
23
23
|
};
|
|
24
24
|
const normalizeSortResult = sortResult => clamp(sortResult, -1, 1);
|
|
25
|
-
|
|
25
|
+
const combineSorts = sorts => (a, b) => {
|
|
26
|
+
for (const sort of sorts) {
|
|
27
|
+
const result = sort(a, b);
|
|
28
|
+
if (result !== 0) {
|
|
29
|
+
return result;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return 0;
|
|
33
|
+
};
|
|
34
|
+
export { areEqualArrays, arraySafeIndex, arraySafeIndexFind, combineSorts, dedupe, ensureArray, normalizeSortResult };
|
|
26
35
|
//# sourceMappingURL=array.mjs.map
|
package/lib/utils/array.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"array.mjs","sources":["../../src/utils/array.ts"],"sourcesContent":["import { clamp } from \"./number\";\n\n/**\n * Make sure the element is an array\n * If it's not, make it an array of one element\n */\nexport function ensureArray<T>(value: T | T[]): T[] {\n return Array.isArray(value) ? value : [value];\n}\n\n/**\n * Utility to quickly remove duplicates from an array.\n *\n * Similar to lodash's `uniq`, but doesn't require lodash as dependency.\n */\nexport const dedupe = <T>(arr: T[]) => [...new Set(arr)];\n\n/**\n * Utility function check if given arrays contain same elements (regardless the order)\n *\n * @example\n * areArraysEqual([1, 2, 3], [3, 2, 1]) // true\n * areArraysEqual([1, 2, 3], [3, 2, 1, 4]) // false\n */\nexport const areEqualArrays = (a: string[], b: string[]): boolean => {\n if (a.length !== b.length) {\n return false;\n }\n if (!a.every((el) => b.includes(el))) {\n return false;\n }\n return !b.every((el) => a.includes(el)) ? false : true;\n};\n\n/**\n * Function to get array index by positive and negative wrap-around offsets\n *\n * @see https://dirask.com/posts/JavaScript-positive-and-negative-around-index-wrapping-overlapping-to-address-items-in-array-pVyrnD\n */\nexport const arraySafeIndex = <T>(array: T[], index: number): number => {\n const indexSize = array.length;\n\n return ((index % indexSize) + indexSize) % indexSize;\n};\n\nexport const arraySafeIndexFind = <T>(\n array: T[],\n index: number,\n): T | undefined => {\n const safeIndex = arraySafeIndex(array, index);\n\n return array[safeIndex];\n};\n\n/**\n * Normalise sort result to be in range of -1 to 1 so that we can easily combine multiple sorts\n */\nexport const normalizeSortResult = (sortResult: number): number =>\n clamp(sortResult, -1, 1);\n"],"names":["ensureArray","value","Array","isArray","dedupe","arr","Set","areEqualArrays","a","b","length","every","el","includes","arraySafeIndex","array","index","indexSize","arraySafeIndexFind","safeIndex","normalizeSortResult","sortResult","clamp"],"mappings":";;AAMO,SAASA,YAAeC,KAAqB,EAAA;EAClD,OAAOC,MAAMC,OAAQ,CAAAF,KAAK,CAAI,GAAAA,KAAA,GAAQ,CAACA,KAAK,CAAA;AAC9C;AAOa,MAAAG,MAAA,GAAaC,GAAa,IAAA,CAAC,GAAG,IAAIC,GAAA,CAAID,GAAG,CAAC,CAAA;AAS1C,MAAAE,cAAA,GAAiBA,CAACC,CAAA,EAAaC,CAAyB,KAAA;EAC/D,IAAAD,CAAA,CAAEE,MAAW,KAAAD,CAAA,CAAEC,MAAQ,EAAA;IAClB,OAAA,KAAA;EACT;EACI,IAAA,CAACF,EAAEG,KAAM,CAACC,MAAOH,CAAE,CAAAI,QAAA,CAASD,EAAE,CAAC,CAAG,EAAA;IAC7B,OAAA,KAAA;EACT;EACO,OAAA,CAACH,CAAE,CAAAE,KAAA,CAAOC,EAAA,IAAOJ,EAAEK,QAAS,CAAAD,EAAE,CAAC,CAAA,GAAI,KAAQ,GAAA,IAAA;AACpD,CAAA;AAOa,MAAAE,cAAA,GAAiBA,CAAIC,KAAA,EAAYC,KAA0B,KAAA;EACtE,MAAMC,YAAYF,KAAM,CAAAL,MAAA;EAEf,OAAA,CAAAM,KAAA,GAAQC,YAAaA,SAAa,IAAAA,SAAA;AAC7C,CAAA;AAEa,MAAAC,kBAAA,GAAqBA,CAChCH,KAAA,EACAC,KACkB,KAAA;EACZ,MAAAG,SAAA,GAAYL,cAAe,CAAAC,KAAA,EAAOC,KAAK,CAAA;EAE7C,OAAOD,MAAMI,SAAS,CAAA;AACxB,CAAA;AAKO,MAAMC,sBAAuBC,UAAA,IAClCC,KAAM,CAAAD,UAAA,EAAY,IAAI,CAAC,CAAA;"}
|
|
1
|
+
{"version":3,"file":"array.mjs","sources":["../../src/utils/array.ts"],"sourcesContent":["import { clamp } from \"./number\";\n\n/**\n * Make sure the element is an array\n * If it's not, make it an array of one element\n */\nexport function ensureArray<T>(value: T | T[]): T[] {\n return Array.isArray(value) ? value : [value];\n}\n\n/**\n * Utility to quickly remove duplicates from an array.\n *\n * Similar to lodash's `uniq`, but doesn't require lodash as dependency.\n */\nexport const dedupe = <T>(arr: T[]) => [...new Set(arr)];\n\n/**\n * Utility function check if given arrays contain same elements (regardless the order)\n *\n * @example\n * areArraysEqual([1, 2, 3], [3, 2, 1]) // true\n * areArraysEqual([1, 2, 3], [3, 2, 1, 4]) // false\n */\nexport const areEqualArrays = (a: string[], b: string[]): boolean => {\n if (a.length !== b.length) {\n return false;\n }\n if (!a.every((el) => b.includes(el))) {\n return false;\n }\n return !b.every((el) => a.includes(el)) ? false : true;\n};\n\n/**\n * Function to get array index by positive and negative wrap-around offsets\n *\n * @see https://dirask.com/posts/JavaScript-positive-and-negative-around-index-wrapping-overlapping-to-address-items-in-array-pVyrnD\n */\nexport const arraySafeIndex = <T>(array: T[], index: number): number => {\n const indexSize = array.length;\n\n return ((index % indexSize) + indexSize) % indexSize;\n};\n\nexport const arraySafeIndexFind = <T>(\n array: T[],\n index: number,\n): T | undefined => {\n const safeIndex = arraySafeIndex(array, index);\n\n return array[safeIndex];\n};\n\n/**\n * Normalise sort result to be in range of -1 to 1 so that we can easily combine multiple sorts\n */\nexport const normalizeSortResult = (sortResult: number): number =>\n clamp(sortResult, -1, 1);\n\n/**\n * Combine multiple sort functions into one\n */\nexport const combineSorts =\n <T>(sorts: ((a: T, b: T) => number)[]): ((a: T, b: T) => number) =>\n (a, b) => {\n for (const sort of sorts) {\n const result = sort(a, b);\n\n if (result !== 0) {\n return result;\n }\n }\n\n return 0;\n };\n"],"names":["ensureArray","value","Array","isArray","dedupe","arr","Set","areEqualArrays","a","b","length","every","el","includes","arraySafeIndex","array","index","indexSize","arraySafeIndexFind","safeIndex","normalizeSortResult","sortResult","clamp","combineSorts","sorts","sort","result"],"mappings":";;AAMO,SAASA,YAAeC,KAAqB,EAAA;EAClD,OAAOC,MAAMC,OAAQ,CAAAF,KAAK,CAAI,GAAAA,KAAA,GAAQ,CAACA,KAAK,CAAA;AAC9C;AAOa,MAAAG,MAAA,GAAaC,GAAa,IAAA,CAAC,GAAG,IAAIC,GAAA,CAAID,GAAG,CAAC,CAAA;AAS1C,MAAAE,cAAA,GAAiBA,CAACC,CAAA,EAAaC,CAAyB,KAAA;EAC/D,IAAAD,CAAA,CAAEE,MAAW,KAAAD,CAAA,CAAEC,MAAQ,EAAA;IAClB,OAAA,KAAA;EACT;EACI,IAAA,CAACF,EAAEG,KAAM,CAACC,MAAOH,CAAE,CAAAI,QAAA,CAASD,EAAE,CAAC,CAAG,EAAA;IAC7B,OAAA,KAAA;EACT;EACO,OAAA,CAACH,CAAE,CAAAE,KAAA,CAAOC,EAAA,IAAOJ,EAAEK,QAAS,CAAAD,EAAE,CAAC,CAAA,GAAI,KAAQ,GAAA,IAAA;AACpD,CAAA;AAOa,MAAAE,cAAA,GAAiBA,CAAIC,KAAA,EAAYC,KAA0B,KAAA;EACtE,MAAMC,YAAYF,KAAM,CAAAL,MAAA;EAEf,OAAA,CAAAM,KAAA,GAAQC,YAAaA,SAAa,IAAAA,SAAA;AAC7C,CAAA;AAEa,MAAAC,kBAAA,GAAqBA,CAChCH,KAAA,EACAC,KACkB,KAAA;EACZ,MAAAG,SAAA,GAAYL,cAAe,CAAAC,KAAA,EAAOC,KAAK,CAAA;EAE7C,OAAOD,MAAMI,SAAS,CAAA;AACxB,CAAA;AAKO,MAAMC,sBAAuBC,UAAA,IAClCC,KAAM,CAAAD,UAAA,EAAY,IAAI,CAAC,CAAA;AAKlB,MAAME,YACX,GAAIC,KACJ,IAAA,CAAChB,GAAGC,CAAM,KAAA;EACR,KAAA,MAAWgB,QAAQD,KAAO,EAAA;IAClB,MAAAE,MAAA,GAASD,IAAK,CAAAjB,CAAA,EAAGC,CAAC,CAAA;IAExB,IAAIiB,WAAW,CAAG,EAAA;MACT,OAAAA,MAAA;IACT;EACF;EAEO,OAAA,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;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ubnt/store.core",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.23.0-alpha.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"scripts": {
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"CHANGELOG.md"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"adm-zip": "0.5.
|
|
22
|
-
"axios": "1.7.
|
|
21
|
+
"adm-zip": "0.5.15",
|
|
22
|
+
"axios": "1.7.4",
|
|
23
23
|
"json-stable-stringify": "1.1.1",
|
|
24
|
-
"terser": "5.
|
|
25
|
-
"tldts": "6.1.
|
|
24
|
+
"terser": "5.31.6",
|
|
25
|
+
"tldts": "6.1.40"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@dinero.js/currencies": "2.0.0-alpha.8",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"countup.js": "^2.6.2",
|
|
36
36
|
"dinero.js": "2.0.0-alpha.8",
|
|
37
37
|
"intl-messageformat": "^10.5.14",
|
|
38
|
-
"libphonenumber-js": "^1.11.
|
|
38
|
+
"libphonenumber-js": "^1.11.7",
|
|
39
39
|
"lodash-es": "^4.17.21",
|
|
40
|
-
"next": "^14.2.
|
|
40
|
+
"next": "^14.2.5",
|
|
41
41
|
"react": "^17.0.0 || ^18.3.1",
|
|
42
42
|
"react-countup": "6.5.3",
|
|
43
43
|
"react-dom": "^17.0.0 || ^18.3.1",
|
|
@@ -93,13 +93,13 @@
|
|
|
93
93
|
"css-loader": "7.1.2",
|
|
94
94
|
"nodemon": "2.0.22",
|
|
95
95
|
"react-hook-form": "7.52.2",
|
|
96
|
-
"rollup": "4.21.
|
|
96
|
+
"rollup": "4.21.0",
|
|
97
97
|
"rollup-plugin-copy": "3.5.0",
|
|
98
|
-
"rollup-plugin-delete": "2.
|
|
98
|
+
"rollup-plugin-delete": "2.0.0",
|
|
99
99
|
"rollup-plugin-esbuild": "6.1.1",
|
|
100
100
|
"rollup-plugin-external-assets": "4.1.1",
|
|
101
101
|
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
102
|
-
"sass": "1.
|
|
102
|
+
"sass": "1.77.8",
|
|
103
103
|
"sass-loader": "14.2.1",
|
|
104
104
|
"style-loader": "4.0.0"
|
|
105
105
|
}
|
|
@@ -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":"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
|