@ubnt/store.core 9.17.0-alpha.4 → 9.17.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 +2 -154
- package/lib/_virtual/_virtual_multi-entry.js +12 -27
- package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
- package/lib/_virtual/_virtual_multi-entry.mjs +10 -14
- package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
- package/lib/apis/smartcat.js +1 -4
- package/lib/apis/smartcat.js.map +1 -1
- package/lib/apis/smartcat.mjs +1 -4
- package/lib/apis/smartcat.mjs.map +1 -1
- package/lib/{components/ResourceCalculatorV1/assets/consoles/ucg-max.png.js → assets/icons/menu/icon-globe.svg.js} +6 -6
- package/lib/assets/icons/menu/icon-globe.svg.js.map +1 -0
- package/lib/assets/icons/menu/icon-globe.svg.mjs +3 -0
- package/lib/assets/icons/menu/icon-globe.svg.mjs.map +1 -0
- package/lib/components/CategoryTabs/CategoryTabs.styles.d.ts +1 -1
- package/lib/components/CategoryTabs/CategoryTabs.types.d.ts +1 -1
- package/lib/components/CloserLookSection/CloserLookSection.js.map +1 -1
- package/lib/components/CloserLookSection/CloserLookSection.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 +3 -4
- package/lib/components/Container/Container.js.map +1 -1
- package/lib/components/Container/Container.mjs +4 -5
- package/lib/components/Container/Container.mjs.map +1 -1
- package/lib/components/CustomImage/CustomImage.js.map +1 -1
- package/lib/components/CustomImage/CustomImage.mjs.map +1 -1
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.js.map +1 -1
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs.map +1 -1
- package/lib/components/Footer/hooks/useFooterContent.d.ts +3 -1
- package/lib/components/Footer/hooks/useFooterContent.js +8 -1
- package/lib/components/Footer/hooks/useFooterContent.js.map +1 -1
- package/lib/components/Footer/hooks/useFooterContent.mjs +8 -1
- package/lib/components/Footer/hooks/useFooterContent.mjs.map +1 -1
- package/lib/components/Footer/translations/ar.json.js +1 -1
- package/lib/components/Footer/translations/ar.json.mjs +1 -1
- package/lib/components/Footer/translations/de.json.js +1 -1
- package/lib/components/Footer/translations/de.json.mjs +1 -1
- package/lib/components/Footer/translations/el.json.js +1 -1
- package/lib/components/Footer/translations/el.json.mjs +1 -1
- package/lib/components/Footer/translations/en.json.js +1 -0
- package/lib/components/Footer/translations/en.json.js.map +1 -1
- package/lib/components/Footer/translations/en.json.mjs +1 -0
- package/lib/components/Footer/translations/en.json.mjs.map +1 -1
- package/lib/components/Footer/translations/es.json.js +1 -1
- package/lib/components/Footer/translations/es.json.mjs +1 -1
- package/lib/components/Footer/translations/fr.json.js +4 -4
- package/lib/components/Footer/translations/fr.json.mjs +4 -4
- package/lib/components/Footer/translations/it.json.js +1 -1
- package/lib/components/Footer/translations/it.json.mjs +1 -1
- package/lib/components/Footer/translations/ja.json.js +2 -2
- package/lib/components/Footer/translations/ja.json.mjs +2 -2
- package/lib/components/Footer/translations/pt-BR.json.js +1 -1
- package/lib/components/Footer/translations/pt-BR.json.mjs +1 -1
- package/lib/components/Footer/translations/zh-Hans.json.js +4 -4
- package/lib/components/Footer/translations/zh-Hans.json.mjs +4 -4
- package/lib/components/Footer/translations/zh-Hant-TW.json.js +1 -1
- package/lib/components/Footer/translations/zh-Hant-TW.json.mjs +1 -1
- package/lib/components/GridGallery/GridGallery.js.map +1 -1
- package/lib/components/GridGallery/GridGallery.mjs.map +1 -1
- package/lib/components/Header/AccountMenu/AccountMenu.js +12 -20
- package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
- package/lib/components/Header/AccountMenu/AccountMenu.mjs +14 -22
- package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
- package/lib/components/Header/AccountMenu/megaphone.http.service.js +1 -4
- package/lib/components/Header/AccountMenu/megaphone.http.service.js.map +1 -1
- package/lib/components/Header/AccountMenu/megaphone.http.service.mjs +1 -4
- package/lib/components/Header/AccountMenu/megaphone.http.service.mjs.map +1 -1
- package/lib/components/Header/CartModalV2/CartModal.js.map +1 -1
- package/lib/components/Header/CartModalV2/CartModal.mjs.map +1 -1
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/Header.mjs.map +1 -1
- package/lib/components/Header/Header.styles.d.ts +2 -2
- package/lib/components/Header/Header.types.d.ts +4 -8
- package/lib/components/Header/Header.types.js +1 -2
- package/lib/components/Header/Header.types.js.map +1 -1
- package/lib/components/Header/Header.types.mjs +1 -2
- package/lib/components/Header/Header.types.mjs.map +1 -1
- package/lib/components/Header/LanguageFrame/LanguageFrame.js.map +1 -1
- package/lib/components/Header/LanguageFrame/LanguageFrame.mjs.map +1 -1
- package/lib/components/Header/LanguageFrame/Mobile/Mobile.js.map +1 -1
- package/lib/components/Header/LanguageFrame/Mobile/Mobile.mjs.map +1 -1
- package/lib/components/Header/MenuItem/MenuItem.styles.d.ts +1 -1
- package/lib/components/Header/MenuItem/MenuItem.styles.js +1 -1
- package/lib/components/Header/MenuItem/MenuItem.styles.js.map +1 -1
- package/lib/components/Header/MenuItem/MenuItem.styles.mjs +1 -1
- package/lib/components/Header/MenuItem/MenuItem.styles.mjs.map +1 -1
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.d.ts +1 -1
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.d.ts +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.d.ts +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +63 -85
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +64 -86
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +0 -6
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js +1 -11
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs +2 -10
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +1 -5
- package/lib/components/Header/Overlay/Overlay.js.map +1 -1
- package/lib/components/Header/Overlay/Overlay.mjs.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.d.ts +4 -2
- package/lib/components/Header/ProHeader/ProHeader.js +36 -145
- package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.mjs +39 -146
- package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +1 -4
- package/lib/components/Header/ProHeader/ProHeader.styles.js +18 -20
- package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs +19 -18
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
- package/lib/components/Header/translations/en.json.js +1 -4
- package/lib/components/Header/translations/en.json.js.map +1 -1
- package/lib/components/Header/translations/en.json.mjs +2 -4
- package/lib/components/Header/translations/en.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/HowToUseSection/HowToUseSection.styles.d.ts +2 -2
- package/lib/components/ImageSequence/ImageSequence.js.map +1 -1
- package/lib/components/ImageSequence/ImageSequence.mjs.map +1 -1
- package/lib/components/LandingPage/Cards/Card/Card.js.map +1 -1
- package/lib/components/LandingPage/Cards/Card/Card.mjs.map +1 -1
- package/lib/components/LandingPage/Cards/Cards.js.map +1 -1
- package/lib/components/LandingPage/Cards/Cards.mjs.map +1 -1
- package/lib/components/LandingPagePro/LandingPagePro.d.ts +0 -3
- package/lib/components/LandingPagePro/LandingPagePro.js +3 -3
- package/lib/components/LandingPagePro/LandingPagePro.js.map +1 -1
- package/lib/components/LandingPagePro/LandingPagePro.mjs +2 -2
- package/lib/components/LandingPagePro/LandingPagePro.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/MicrositeIntroductionBlock/MicrositeIntroductionBlock.js.map +1 -1
- package/lib/components/MicrositeIntroductionBlock/MicrositeIntroductionBlock.mjs.map +1 -1
- package/lib/components/MicrositeMediaGrid/MicrositeMediaGrid.js.map +1 -1
- package/lib/components/MicrositeMediaGrid/MicrositeMediaGrid.mjs.map +1 -1
- package/lib/components/MicrositeProductGrid/MicrositeProductGrid.js.map +1 -1
- package/lib/components/MicrositeProductGrid/MicrositeProductGrid.mjs.map +1 -1
- package/lib/components/MicrositeSectionWrap/MicrositeSectionWrap.styles.d.ts +1 -1
- package/lib/components/Microsites/MicrositeProductPage.js +39 -0
- package/lib/components/Microsites/MicrositeProductPage.js.map +1 -1
- package/lib/components/Microsites/MicrositeProductPage.mjs +39 -0
- package/lib/components/Microsites/MicrositeProductPage.mjs.map +1 -1
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridHeader.js.map +1 -1
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridHeader.mjs.map +1 -1
- package/lib/components/ProductCompare/ProductCompare.js.map +1 -1
- package/lib/components/ProductCompare/ProductCompare.mjs.map +1 -1
- 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/QuantityControls/QuantityControls.js.map +1 -1
- package/lib/components/QuantityControls/QuantityControls.mjs.map +1 -1
- package/lib/components/RelatedProducts/RelatedProducts.js.map +1 -1
- package/lib/components/RelatedProducts/RelatedProducts.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js +17 -313
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs +17 -311
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.d.ts +2 -3
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js +0 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs +0 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js +34 -120
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.mjs +34 -120
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.d.ts +2 -16
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.js +12 -54
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.mjs +11 -50
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/assets/ArrowLeftPrimary.svg.js +5 -5
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/assets/ArrowRightPrimary.svg.js +5 -5
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +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 +0 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.mjs +0 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.mjs.map +1 -1
- 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 +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +2 -1
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.mjs +2 -1
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.mjs.map +1 -1
- package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.d.ts +1 -1
- package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.js +1 -3
- package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.js.map +1 -0
- package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.mjs +1 -3
- package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.mjs.map +1 -0
- package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.styles.d.ts +0 -1
- package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.styles.js +7 -10
- package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.js.map +1 -0
- package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.styles.mjs +7 -10
- package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.mjs.map +1 -0
- package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.types.d.ts +0 -1
- package/lib/components/ResourceCalculatorV1/components/index.d.ts +1 -0
- package/lib/components/ResourceCalculatorV1/components/index.js +5 -0
- package/lib/components/{Header/Navigation/ProMenu → ResourceCalculatorV1/components}/index.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/components/index.mjs +3 -0
- package/lib/components/ResourceCalculatorV1/translations/en.json.js +4 -6
- package/lib/components/ResourceCalculatorV1/translations/en.json.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/translations/en.json.mjs +4 -6
- package/lib/components/ResourceCalculatorV1/translations/en.json.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/translations/useResourceCalculatorTranslation.d.ts +2 -2
- package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.js.map +1 -1
- package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.mjs.map +1 -1
- package/lib/components/ScrollWrapper/ScrollWrapper.js.map +1 -1
- package/lib/components/ScrollWrapper/ScrollWrapper.mjs.map +1 -1
- package/lib/components/StorageSliders/Slider/Slider.js.map +1 -1
- package/lib/components/StorageSliders/Slider/Slider.mjs.map +1 -1
- package/lib/components/StorageSliders/StorageSliders.context.js.map +1 -1
- package/lib/components/StorageSliders/StorageSliders.context.mjs.map +1 -1
- package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.js.map +1 -1
- package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.mjs.map +1 -1
- package/lib/components/VariantSelector/Variant/Variant.js.map +1 -1
- package/lib/components/VariantSelector/Variant/Variant.mjs.map +1 -1
- package/lib/components/index.d.ts +0 -1
- package/lib/components/index.js +0 -2
- package/lib/components/index.js.map +1 -1
- package/lib/components/index.mjs +0 -2
- package/lib/components/index.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.d.ts +0 -1
- package/lib/constants/proStoreCategories/mapping/index.js +10 -15
- package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.mjs +10 -15
- package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.d.ts +1 -2
- package/lib/constants/proStoreCategories/mapping/unifi.js +0 -1
- package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.mjs +0 -1
- package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.js +0 -3
- package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.mjs +1 -3
- package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.mjs +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +1 -1
- package/lib/constants/url.d.ts +2 -1
- package/lib/constants/url.js +1 -0
- package/lib/constants/url.js.map +1 -1
- package/lib/constants/url.mjs +1 -0
- package/lib/constants/url.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/utils.js +1 -0
- package/lib/contexts/MenuContext/utils.js.map +1 -1
- package/lib/contexts/MenuContext/utils.mjs +1 -0
- package/lib/contexts/MenuContext/utils.mjs.map +1 -1
- package/lib/helpers/index.d.ts +0 -1
- package/lib/helpers/index.js +0 -11
- package/lib/helpers/index.js.map +1 -1
- package/lib/helpers/index.mjs +0 -1
- package/lib/helpers/index.mjs.map +1 -1
- package/lib/helpers/ux.d.ts +1 -9
- package/lib/helpers/ux.js +0 -15
- package/lib/helpers/ux.js.map +1 -1
- package/lib/helpers/ux.mjs +1 -15
- package/lib/helpers/ux.mjs.map +1 -1
- package/lib/hooks/useHasTouch.js.map +1 -1
- package/lib/hooks/useHasTouch.mjs.map +1 -1
- package/lib/hooks/useHorizontalScroll.js.map +1 -1
- package/lib/hooks/useHorizontalScroll.mjs.map +1 -1
- package/lib/types/index.d.ts +0 -1
- package/lib/types/index.js +0 -2
- package/lib/types/index.js.map +1 -1
- package/lib/types/index.mjs +0 -1
- package/lib/types/index.mjs.map +1 -1
- package/lib/utils/array.d.ts +0 -4
- package/lib/utils/array.js +0 -10
- package/lib/utils/array.js.map +1 -1
- package/lib/utils/array.mjs +1 -10
- package/lib/utils/array.mjs.map +1 -1
- package/lib/utils/money/constants.d.ts +25 -56
- package/lib/utils/money/constants.js +7 -72
- package/lib/utils/money/constants.js.map +1 -1
- package/lib/utils/money/constants.mjs +7 -70
- package/lib/utils/money/constants.mjs.map +1 -1
- package/lib/utils/money/format.d.ts +5 -10
- package/lib/utils/money/format.js +14 -22
- package/lib/utils/money/format.js.map +1 -1
- package/lib/utils/money/format.mjs +16 -23
- package/lib/utils/money/format.mjs.map +1 -1
- package/lib/utils/money/index.d.ts +1 -4
- package/lib/utils/money/index.js +8 -26
- package/lib/utils/money/index.js.map +1 -1
- package/lib/utils/money/index.mjs +4 -8
- package/lib/utils/money/index.mjs.map +1 -1
- package/lib/utils/money/misc.d.ts +28 -68
- package/lib/utils/money/misc.js +64 -35
- package/lib/utils/money/misc.js.map +1 -1
- package/lib/utils/money/misc.mjs +43 -32
- package/lib/utils/money/misc.mjs.map +1 -1
- package/lib/utils/money/tax.d.ts +2 -38
- package/lib/utils/money/tax.js +10 -46
- package/lib/utils/money/tax.js.map +1 -1
- package/lib/utils/money/tax.mjs +11 -42
- package/lib/utils/money/tax.mjs.map +1 -1
- package/lib/utils/money/types.d.ts +3 -78
- package/lib/utils/number.d.ts +1 -1
- package/lib/utils/number.js +1 -1
- package/lib/utils/number.js.map +1 -1
- package/lib/utils/number.mjs +1 -1
- package/lib/utils/number.mjs.map +1 -1
- package/lib/utils/validations/postalCodeSuperRefinement.js +3 -0
- package/lib/utils/validations/postalCodeSuperRefinement.js.map +1 -1
- package/lib/utils/validations/postalCodeSuperRefinement.mjs +3 -0
- package/lib/utils/validations/postalCodeSuperRefinement.mjs.map +1 -1
- package/lib/utils/validations/stateRegistrationNumberSuperRefinement.js +2 -0
- package/lib/utils/validations/stateRegistrationNumberSuperRefinement.js.map +1 -1
- package/lib/utils/validations/stateRegistrationNumberSuperRefinement.mjs +2 -0
- package/lib/utils/validations/stateRegistrationNumberSuperRefinement.mjs.map +1 -1
- package/lib/utils/validations/taxIdSuperRefinement.js +2 -0
- package/lib/utils/validations/taxIdSuperRefinement.js.map +1 -1
- package/lib/utils/validations/taxIdSuperRefinement.mjs +2 -0
- package/lib/utils/validations/taxIdSuperRefinement.mjs.map +1 -1
- package/lib/utils/validations.d.ts +15 -0
- package/lib/utils/validations.js +23 -0
- package/lib/utils/validations.js.map +1 -0
- package/lib/utils/validations.mjs +21 -0
- package/lib/utils/validations.mjs.map +1 -0
- package/lib/utils/variant.js.map +1 -1
- package/lib/utils/variant.mjs.map +1 -1
- package/lib/utils/wattage.js.map +1 -1
- package/lib/utils/wattage.mjs.map +1 -1
- package/package.json +1 -1
- package/lib/assets/efg.png +0 -0
- package/lib/assets/icon-location-pin.svg +0 -5
- package/lib/assets/icons/menu/icon-location-pin.svg.js +0 -27
- package/lib/assets/icons/menu/icon-location-pin.svg.js.map +0 -1
- package/lib/assets/icons/menu/icon-location-pin.svg.mjs +0 -3
- package/lib/assets/icons/menu/icon-location-pin.svg.mjs.map +0 -1
- package/lib/assets/ucg-max.png +0 -0
- package/lib/components/Header/Navigation/ProMenu/ProMenu.d.ts +0 -2
- package/lib/components/Header/Navigation/ProMenu/ProMenu.js +0 -109
- package/lib/components/Header/Navigation/ProMenu/ProMenu.js.map +0 -1
- package/lib/components/Header/Navigation/ProMenu/ProMenu.mjs +0 -87
- package/lib/components/Header/Navigation/ProMenu/ProMenu.mjs.map +0 -1
- package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.d.ts +0 -24
- package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.js +0 -154
- package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.js.map +0 -1
- package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.mjs +0 -138
- package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.mjs.map +0 -1
- package/lib/components/Header/Navigation/ProMenu/ProMenu.types.d.ts +0 -13
- package/lib/components/Header/Navigation/ProMenu/index.d.ts +0 -1
- package/lib/components/Header/Navigation/ProMenu/index.js +0 -6
- package/lib/components/Header/Navigation/ProMenu/index.mjs +0 -3
- package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.js.map +0 -1
- package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.mjs.map +0 -1
- package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.js.map +0 -1
- package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.mjs.map +0 -1
- package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.js +0 -27
- package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.js.map +0 -1
- package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.mjs +0 -3
- package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.mjs.map +0 -1
- package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.js.map +0 -1
- package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.mjs +0 -3
- package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.mjs.map +0 -1
- package/lib/helpers/product.d.ts +0 -87
- package/lib/helpers/product.js +0 -346
- package/lib/helpers/product.js.map +0 -1
- package/lib/helpers/product.mjs +0 -335
- package/lib/helpers/product.mjs.map +0 -1
- package/lib/types/product.d.ts +0 -87
- package/lib/types/product.js +0 -14
- package/lib/types/product.js.map +0 -1
- package/lib/types/product.mjs +0 -13
- package/lib/types/product.mjs.map +0 -1
- package/lib/utils/money/allocators/fixedAmount.d.ts +0 -26
- package/lib/utils/money/allocators/fixedAmount.js +0 -55
- package/lib/utils/money/allocators/fixedAmount.js.map +0 -1
- package/lib/utils/money/allocators/fixedAmount.mjs +0 -53
- package/lib/utils/money/allocators/fixedAmount.mjs.map +0 -1
- package/lib/utils/money/allocators/index.d.ts +0 -2
- package/lib/utils/money/allocators/index.js +0 -8
- package/lib/utils/money/allocators/index.js.map +0 -1
- package/lib/utils/money/allocators/index.mjs +0 -4
- package/lib/utils/money/allocators/index.mjs.map +0 -1
- package/lib/utils/money/allocators/productAmount.d.ts +0 -13
- package/lib/utils/money/allocators/productAmount.js +0 -110
- package/lib/utils/money/allocators/productAmount.js.map +0 -1
- package/lib/utils/money/allocators/productAmount.mjs +0 -108
- package/lib/utils/money/allocators/productAmount.mjs.map +0 -1
- package/lib/utils/money/exchangeRate.d.ts +0 -31
- package/lib/utils/money/exchangeRate.js +0 -27
- package/lib/utils/money/exchangeRate.js.map +0 -1
- package/lib/utils/money/exchangeRate.mjs +0 -23
- package/lib/utils/money/exchangeRate.mjs.map +0 -1
- package/lib/utils/money/misc.private.d.ts +0 -23
- package/lib/utils/money/misc.private.js +0 -46
- package/lib/utils/money/misc.private.js.map +0 -1
- package/lib/utils/money/misc.private.mjs +0 -21
- package/lib/utils/money/misc.private.mjs.map +0 -1
- package/lib/utils/money/shipping.d.ts +0 -5
- package/lib/utils/money/shipping.js +0 -8
- package/lib/utils/money/shipping.js.map +0 -1
- package/lib/utils/money/shipping.mjs +0 -6
- package/lib/utils/money/shipping.mjs.map +0 -1
- package/lib/utils/money/tax.private.d.ts +0 -17
- package/lib/utils/money/tax.private.js +0 -65
- package/lib/utils/money/tax.private.js.map +0 -1
- package/lib/utils/money/tax.private.mjs +0 -60
- package/lib/utils/money/tax.private.mjs.map +0 -1
- package/lib/utils/productSort.d.ts +0 -41
- package/lib/utils/productSort.js +0 -66
- package/lib/utils/productSort.js.map +0 -1
- package/lib/utils/productSort.mjs +0 -59
- package/lib/utils/productSort.mjs.map +0 -1
- /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.d.ts +0 -0
- /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.js +0 -0
- /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.js.map +0 -0
- /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.mjs +0 -0
- /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.mjs.map +0 -0
- /package/lib/components/{Header/Navigation/ProMenu → ResourceCalculatorV1/components}/index.mjs.map +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RelatedProducts.mjs","sources":["../../../src/components/RelatedProducts/RelatedProducts.tsx"],"sourcesContent":["import { useEffect, useMemo, useState } from \"react\";\n\nimport AddToCartIcon from \"../../assets/icons/addToCart.svg\";\nimport { formatPrice } from \"../../utils/money\";\nimport { ProductCardPopup } from \"../ProductCardPopup\";\n// import { ScrollWrapper } from \"../ScrollWrapper\";\nimport { SkeletonLinearLoader } from \"../SkeletonLoader\";\nimport * as S from \"./RelatedProducts.styles\";\nimport type { RelatedProductsProps } from \"./RelatedProducts.types\";\n\nconst AddToCartIconAsset = {\n src: typeof AddToCartIcon === \"string\" ? AddToCartIcon : AddToCartIcon.src,\n width: 21.52,\n height: 15.72,\n};\n\n/**\n * Clean up:\n * - If we don't require tabs anymore in the future, we can remove all logic\n * (currently commented out) that is related to tabination\n * - Pass just a list of products (change the data structure from categorized\n * products to just an array of products)\n * - Don't forget to clean up styles\n */\nexport const RelatedProducts = ({\n categories,\n onAddToCart,\n activePopupProduct,\n renderImage,\n translations,\n}: RelatedProductsProps) => {\n // #############################################################################\n // States\n // #############################################################################\n const isLoading = useMemo(() => categories === null, [categories]);\n\n // const [selectedCategoryId, setSelectedCategoryId] = useState<string | null>(\n // categories?.[0]?.id ?? null\n // );\n\n // const selectedCategory = useMemo(() => {\n // if (!selectedCategoryId) {\n // return categories?.[0];\n // }\n\n // return (\n // categories?.find((category) => category.id === selectedCategoryId) ??\n // categories?.[0]\n // );\n // }, [categories, selectedCategoryId]);\n\n // #############################################################################\n // Popup\n // #############################################################################\n /**\n * This state is used to prevent data loss before closing animation is complete\n * when the popup is closed.\n */\n const [popupProduct, setPopupProduct] = useState(activePopupProduct);\n\n const isPopupOpen = useMemo(() => !!activePopupProduct, [activePopupProduct]);\n\n useEffect(() => {\n if (activePopupProduct !== undefined) {\n setPopupProduct(activePopupProduct);\n }\n }, [activePopupProduct]);\n\n // #############################################################################\n // Render\n // #############################################################################\n\n // Loading state\n if (isLoading) {\n return (\n <S.Container>\n {translations?.title && <S.Title>{translations?.title}</S.Title>}\n {/* <S.CategoryWrapper>\n <SkeletonLinearLoader height={20} />\n </S.CategoryWrapper> */}\n\n <S.Grid>\n {[...Array(2)].map((_, index) => (\n <SkeletonLinearLoader\n key={`product-loader-${index}`}\n height={100}\n />\n ))}\n </S.Grid>\n </S.Container>\n );\n }\n\n // No categories\n if (!categories?.length) return null;\n\n return (\n <S.Container>\n {translations?.title && <S.Title>{translations?.title}</S.Title>}\n {/* TODO: Use TabinationButtons components */}\n {/* {categories?.length > 1 && (\n <S.CategoryWrapper>\n <ScrollWrapper\n align=\"left\"\n fillType=\"gradient\"\n direction=\"horizontal\"\n gap={4}\n items={categories.map((category) => ({\n id: category.id,\n render: function Render() {\n return (\n <S.CategoryButton\n onClick={() => setSelectedCategoryId(category.id)}\n selected={selectedCategory?.id === category.id}\n >\n {category.title}\n </S.CategoryButton>\n );\n },\n }))}\n />\n </S.CategoryWrapper>\n )} */}\n <S.Grid>\n {categories\n .flatMap((category) => category.products)\n .map((product) => (\n <S.ProductContainer key={product.id}>\n <S.Wrap>\n <S.CustomImage\n sizes=\"60px\"\n responsive\n renderImage={renderImage}\n asset={product.image}\n />\n <S.Details>\n <S.ProductTitle>{product.title}</S.ProductTitle>\n <S.ProductPrice>\n {formatPrice(product.displayPrice, {\n removeTrailingZeros: true,\n })}\n </S.ProductPrice>\n </S.Details>\n </S.Wrap>\n <S.AddToCartButton onClick={() => onAddToCart?.(product.id)}>\n <S.StyleableSvgImage {...AddToCartIconAsset} />\n </S.AddToCartButton>\n </S.ProductContainer>\n ))}\n </S.Grid>\n <ProductCardPopup\n {...popupProduct}\n isOpen={isPopupOpen}\n renderImage={renderImage}\n translations={translations.productCardPopup}\n />\n </S.Container>\n );\n};\n"],"names":["AddToCartIconAsset","src","AddToCartIcon","width","height","RelatedProducts","categories","onAddToCart","activePopupProduct","renderImage","translations","isLoading","useMemo","popupProduct","setPopupProduct","useState","isPopupOpen","useEffect","jsxs","S.Container","children","title","jsx","S.Title","S.Grid","Array","map","_","index","SkeletonLinearLoader","length","flatMap","category","products","product","S.ProductContainer","S.Wrap","S.CustomImage","sizes","responsive","asset","image","S.Details","S.ProductTitle","S.ProductPrice","formatPrice","displayPrice","removeTrailingZeros","S.AddToCartButton","onClick","id","S.StyleableSvgImage","ProductCardPopup","isOpen","productCardPopup"],"mappings":";;;;;;;;;;;;AAUA,MAAMA,kBAAqB,GAAA;EACzBC,GAAK,EAAA,OAAOC,sBAAkB,KAAA,QAAA,GAAWA,yBAAgBA,sBAAc,CAAAD,GAAA;EACvEE,KAAO,EAAA,KAAA;EACPC,MAAQ,EAAA;AACV,CAAA;AAUO,MAAMC,kBAAkBA,CAAC;EAC9BC,UAAA;EACAC,WAAA;EACAC,kBAAA;EACAC,WAAA;EACAC;AACF,CAA4B,KAAA;EAI1B,MAAMC,YAAYC,OAAQ,CAAA,MAAMN,eAAe,IAAM,EAAA,CAACA,UAAU,CAAC,CAAA;EAwBjE,MAAM,CAACO,YAAA,EAAcC,eAAe,CAAA,GAAIC,SAASP,kBAAkB,CAAA;EAE7D,MAAAQ,WAAA,GAAcJ,QAAQ,MAAM,CAAC,CAACJ,kBAAoB,EAAA,CAACA,kBAAkB,CAAC,CAAA;EAE5ES,SAAA,CAAU,MAAM;IACd,IAAIT,uBAAuB,KAAW,CAAA,EAAA;MACpCM,eAAA,CAAgBN,kBAAkB,CAAA;IACpC;EAAA,CACF,EAAG,CAACA,kBAAkB,CAAC,CAAA;EAOvB,IAAIG,SAAW,EAAA;IAEX,sBAAAO,IAAA,CAACC,SAAE,EAAF;MACEC,QAAA,EAAA,CAAAV,YAAA,EAAcW,wBAAUC,GAAA,CAAAC,KAAA,EAAA;QAASH,wBAAcC;OAAM,CAAA,EAKrD,eAAAC,GAAA,CAAAE,IAAA,EAAA;QACEJ,QAAC,EAAA,CAAA,GAAGK,KAAM,CAAA,CAAC,CAAC,CAAA,CAAEC,GAAI,CAAA,CAACC,GAAGC,KACrB,KAAA,eAAAN,GAAA,CAACO,oBAAA,EAAA;UAECzB,MAAQ,EAAA;QAAA,CAAA,oBADewB,KAAK,EAG/B,CAAA;OACH,CAAA;IACF,CAAA,CAAA;EAEJ;
|
|
1
|
+
{"version":3,"file":"RelatedProducts.mjs","sources":["../../../src/components/RelatedProducts/RelatedProducts.tsx"],"sourcesContent":["import { useEffect, useMemo, useState } from \"react\";\n\nimport AddToCartIcon from \"../../assets/icons/addToCart.svg\";\nimport { formatPrice } from \"../../utils/money\";\nimport { ProductCardPopup } from \"../ProductCardPopup\";\n// import { ScrollWrapper } from \"../ScrollWrapper\";\nimport { SkeletonLinearLoader } from \"../SkeletonLoader\";\nimport * as S from \"./RelatedProducts.styles\";\nimport type { RelatedProductsProps } from \"./RelatedProducts.types\";\n\nconst AddToCartIconAsset = {\n src: typeof AddToCartIcon === \"string\" ? AddToCartIcon : AddToCartIcon.src,\n width: 21.52,\n height: 15.72,\n};\n\n/**\n * Clean up:\n * - If we don't require tabs anymore in the future, we can remove all logic\n * (currently commented out) that is related to tabination\n * - Pass just a list of products (change the data structure from categorized\n * products to just an array of products)\n * - Don't forget to clean up styles\n */\nexport const RelatedProducts = ({\n categories,\n onAddToCart,\n activePopupProduct,\n renderImage,\n translations,\n}: RelatedProductsProps) => {\n // #############################################################################\n // States\n // #############################################################################\n const isLoading = useMemo(() => categories === null, [categories]);\n\n // const [selectedCategoryId, setSelectedCategoryId] = useState<string | null>(\n // categories?.[0]?.id ?? null\n // );\n\n // const selectedCategory = useMemo(() => {\n // if (!selectedCategoryId) {\n // return categories?.[0];\n // }\n\n // return (\n // categories?.find((category) => category.id === selectedCategoryId) ??\n // categories?.[0]\n // );\n // }, [categories, selectedCategoryId]);\n\n // #############################################################################\n // Popup\n // #############################################################################\n /**\n * This state is used to prevent data loss before closing animation is complete\n * when the popup is closed.\n */\n const [popupProduct, setPopupProduct] = useState(activePopupProduct);\n\n const isPopupOpen = useMemo(() => !!activePopupProduct, [activePopupProduct]);\n\n useEffect(() => {\n if (activePopupProduct !== undefined) {\n setPopupProduct(activePopupProduct);\n }\n }, [activePopupProduct]);\n\n // #############################################################################\n // Render\n // #############################################################################\n\n // Loading state\n if (isLoading) {\n return (\n <S.Container>\n {translations?.title && <S.Title>{translations?.title}</S.Title>}\n {/* <S.CategoryWrapper>\n <SkeletonLinearLoader height={20} />\n </S.CategoryWrapper> */}\n\n <S.Grid>\n {[...Array(2)].map((_, index) => (\n <SkeletonLinearLoader\n key={`product-loader-${index}`}\n height={100}\n />\n ))}\n </S.Grid>\n </S.Container>\n );\n }\n\n // No categories\n if (!categories?.length) return null;\n\n return (\n <S.Container>\n {translations?.title && <S.Title>{translations?.title}</S.Title>}\n {/* TODO: Use TabinationButtons components */}\n {/* {categories?.length > 1 && (\n <S.CategoryWrapper>\n <ScrollWrapper\n align=\"left\"\n fillType=\"gradient\"\n direction=\"horizontal\"\n gap={4}\n items={categories.map((category) => ({\n id: category.id,\n render: function Render() {\n return (\n <S.CategoryButton\n onClick={() => setSelectedCategoryId(category.id)}\n selected={selectedCategory?.id === category.id}\n >\n {category.title}\n </S.CategoryButton>\n );\n },\n }))}\n />\n </S.CategoryWrapper>\n )} */}\n <S.Grid>\n {categories\n .flatMap((category) => category.products)\n .map((product) => (\n <S.ProductContainer key={product.id}>\n <S.Wrap>\n <S.CustomImage\n sizes=\"60px\"\n responsive\n renderImage={renderImage}\n asset={product.image}\n />\n <S.Details>\n <S.ProductTitle>{product.title}</S.ProductTitle>\n <S.ProductPrice>\n {formatPrice(product.displayPrice, {\n removeTrailingZeros: true,\n })}\n </S.ProductPrice>\n </S.Details>\n </S.Wrap>\n <S.AddToCartButton onClick={() => onAddToCart?.(product.id)}>\n <S.StyleableSvgImage {...AddToCartIconAsset} />\n </S.AddToCartButton>\n </S.ProductContainer>\n ))}\n </S.Grid>\n <ProductCardPopup\n {...popupProduct}\n isOpen={isPopupOpen}\n renderImage={renderImage}\n translations={translations.productCardPopup}\n />\n </S.Container>\n );\n};\n"],"names":["AddToCartIconAsset","src","AddToCartIcon","width","height","RelatedProducts","categories","onAddToCart","activePopupProduct","renderImage","translations","isLoading","useMemo","popupProduct","setPopupProduct","useState","isPopupOpen","useEffect","jsxs","S.Container","children","title","jsx","S.Title","S.Grid","Array","map","_","index","SkeletonLinearLoader","length","flatMap","category","products","product","S.ProductContainer","S.Wrap","S.CustomImage","sizes","responsive","asset","image","S.Details","S.ProductTitle","S.ProductPrice","formatPrice","displayPrice","removeTrailingZeros","S.AddToCartButton","onClick","id","S.StyleableSvgImage","ProductCardPopup","isOpen","productCardPopup"],"mappings":";;;;;;;;;;;;AAUA,MAAMA,kBAAqB,GAAA;EACzBC,GAAK,EAAA,OAAOC,sBAAkB,KAAA,QAAA,GAAWA,yBAAgBA,sBAAc,CAAAD,GAAA;EACvEE,KAAO,EAAA,KAAA;EACPC,MAAQ,EAAA;AACV,CAAA;AAUO,MAAMC,kBAAkBA,CAAC;EAC9BC,UAAA;EACAC,WAAA;EACAC,kBAAA;EACAC,WAAA;EACAC;AACF,CAA4B,KAAA;EAI1B,MAAMC,YAAYC,OAAQ,CAAA,MAAMN,eAAe,IAAM,EAAA,CAACA,UAAU,CAAC,CAAA;EAwBjE,MAAM,CAACO,YAAA,EAAcC,eAAe,CAAA,GAAIC,SAASP,kBAAkB,CAAA;EAE7D,MAAAQ,WAAA,GAAcJ,QAAQ,MAAM,CAAC,CAACJ,kBAAoB,EAAA,CAACA,kBAAkB,CAAC,CAAA;EAE5ES,SAAA,CAAU,MAAM;IACd,IAAIT,uBAAuB,KAAW,CAAA,EAAA;MACpCM,eAAA,CAAgBN,kBAAkB,CAAA;IACpC;EAAA,CACF,EAAG,CAACA,kBAAkB,CAAC,CAAA;EAOvB,IAAIG,SAAW,EAAA;IAEX,sBAAAO,IAAA,CAACC,SAAE,EAAF;MACEC,QAAA,EAAA,CAAAV,YAAA,EAAcW,wBAAUC,GAAA,CAAAC,KAAA,EAAA;QAASH,wBAAcC;OAAM,CAAA,EAKrD,eAAAC,GAAA,CAAAE,IAAA,EAAA;QACEJ,QAAC,EAAA,CAAA,GAAGK,KAAM,CAAA,CAAC,CAAC,CAAA,CAAEC,GAAI,CAAA,CAACC,GAAGC,KACrB,KAAA,eAAAN,GAAA,CAACO,oBAAA,EAAA;UAECzB,MAAQ,EAAA;QAAA,CAAA,oBADewB,KAAK,EAG/B,CAAA;OACH,CAAA;IACF,CAAA,CAAA;EAEJ;EAGI,IAAA,CAACtB,UAAY,EAAAwB,MAAA,EAAe,OAAA,IAAA;EAG9B,sBAAAZ,IAAA,CAACC,SAAE,EAAF;IACEC,QAAA,EAAA,CAAAV,YAAA,EAAcW,wBAAUC,GAAA,CAAAC,KAAA,EAAA;MAASH,wBAAcC;KAAM,CAAA,EAAA,mBAyBrDG,IAAE,EAAF;MACEJ,QAAA,EAAAd,UAAA,CACEyB,QAASC,QAAA,IAAaA,QAAS,CAAAC,QAAQ,EACvCP,GAAI,CAACQ,WACH,eAAAhB,IAAA,CAAAiB,kBAAA;QACCf,QAAA,EAAA,CAAA,eAACF,IAAA,CAAAkB,MAAA;UACChB,QAAA,EAAA,CAAA,eAAAE,GAAA,CAACe,WAAE,EAAF;YACCC,KAAM,EAAA,MAAA;YACNC,UAAU,EAAA,IAAA;YACV9B,WAAA;YACA+B,OAAON,OAAQ,CAAAO;UAAA,CACjB,CAAA,EAAA,eACAvB,IAAA,CAACwB,OAAE,EAAF;YACCtB,QAAA,EAAA,CAAA,eAAAE,GAAA,CAACqB,YAAE,EAAF;cAAgBvB,QAAA,EAAAc,OAAA,CAAQb;YAAM,CAAA,CAAA,EAAA,mBAC9BuB,YAAE,EAAF;cACExB,QAAA,EAAAyB,WAAA,CAAYX,QAAQY,YAAc,EAAA;gBACjCC,mBAAqB,EAAA;cACtB,CAAA;aACH,CAAA;WACF,CAAA;SACF,CAAA,qBACCC,eAAE,EAAF;UAAkBC,OAAA,EAASA,CAAA,KAAM1C,WAAc,GAAA2B,OAAA,CAAQgB,EAAE,CAAA;UACxD9B,6BAAC+B,iBAAE,EAAF;YAAqB,GAAGnD;WAAoB;QAC/C,CAAA,CAAA;MAnBuB,CAAA,EAAAkC,OAAA,CAAQgB,EAoBjC,CACD;KACL,CAAA,EAAA,eACA5B,GAAA,CAAC8B,gBAAA,EAAA;MACE,GAAGvC,YAAA;MACJwC,MAAQ,EAAArC,WAAA;MACRP,WAAA;MACAC,cAAcA,YAAa,CAAA4C;IAAA,CAC7B,CAAA;EACF,CAAA,CAAA;AAEJ,CAAA;"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('../assets/consoles/efg.png.js');
|
|
4
|
-
require('../assets/consoles/ucg-max.png.js');
|
|
5
3
|
require('../assets/consoles/udm-pro-max.png.js');
|
|
6
4
|
require('../assets/consoles/udm-pro.png.js');
|
|
7
5
|
require('../assets/consoles/udr.png.js');
|
|
@@ -10,8 +8,6 @@ require('../assets/consoles/unifi-cloudkey-plus.png.js');
|
|
|
10
8
|
require('../assets/consoles/unvr-pro.png.js');
|
|
11
9
|
require('../assets/consoles/unvr.png.js');
|
|
12
10
|
var ComputeResourceCalculator_types = require('./ComputeResourceCalculator.types.js');
|
|
13
|
-
var efg = require("../../../assets/efg.png");
|
|
14
|
-
var ucgMax = require("../../../assets/ucg-max.png");
|
|
15
11
|
var udmProMax = require("../../../assets/udm-pro-max.png");
|
|
16
12
|
var udmPro = require("../../../assets/udm-pro.png");
|
|
17
13
|
var unvr = require("../../../assets/unvr.png");
|
|
@@ -24,8 +20,6 @@ function _interopDefault(e) {
|
|
|
24
20
|
default: e
|
|
25
21
|
};
|
|
26
22
|
}
|
|
27
|
-
var efg__default = /*#__PURE__*/_interopDefault(efg);
|
|
28
|
-
var ucgMax__default = /*#__PURE__*/_interopDefault(ucgMax);
|
|
29
23
|
var udmProMax__default = /*#__PURE__*/_interopDefault(udmProMax);
|
|
30
24
|
var udmPro__default = /*#__PURE__*/_interopDefault(udmPro);
|
|
31
25
|
var unvr__default = /*#__PURE__*/_interopDefault(unvr);
|
|
@@ -35,301 +29,6 @@ var udw__default = /*#__PURE__*/_interopDefault(udw);
|
|
|
35
29
|
var udr__default = /*#__PURE__*/_interopDefault(udr);
|
|
36
30
|
"use strict";
|
|
37
31
|
const DEVICES = [{
|
|
38
|
-
id: ComputeResourceCalculator_types.DeviceId.EFG,
|
|
39
|
-
sku: ["efg"],
|
|
40
|
-
title: "device.EFG",
|
|
41
|
-
img: {
|
|
42
|
-
src: efg__default["default"],
|
|
43
|
-
width: 68,
|
|
44
|
-
height: 68
|
|
45
|
-
},
|
|
46
|
-
settings: {
|
|
47
|
-
defaultEnabledFeatures: [ComputeResourceCalculator_types.FeatureId.Network]
|
|
48
|
-
},
|
|
49
|
-
loadData: {
|
|
50
|
-
Network: {
|
|
51
|
-
enableFeature: {
|
|
52
|
-
cpu: {
|
|
53
|
-
value: 0.015,
|
|
54
|
-
weight: 0.9
|
|
55
|
-
},
|
|
56
|
-
memory: {
|
|
57
|
-
value: 0.49,
|
|
58
|
-
weight: 0.1
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
accessPoint: {
|
|
62
|
-
max: 500,
|
|
63
|
-
data: {
|
|
64
|
-
cpu: {
|
|
65
|
-
value: 12e-4,
|
|
66
|
-
weight: 0.9
|
|
67
|
-
},
|
|
68
|
-
memory: {
|
|
69
|
-
value: 0,
|
|
70
|
-
weight: 0.1
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
vpn: {
|
|
75
|
-
cpu: {
|
|
76
|
-
value: 3e-4,
|
|
77
|
-
weight: 0.9
|
|
78
|
-
},
|
|
79
|
-
memory: {
|
|
80
|
-
value: 5e-4,
|
|
81
|
-
weight: 0.1
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
securityDetection: {
|
|
85
|
-
cpu: {
|
|
86
|
-
value: 0.0315,
|
|
87
|
-
weight: 0.9
|
|
88
|
-
},
|
|
89
|
-
memory: {
|
|
90
|
-
value: 0.044,
|
|
91
|
-
weight: 0.1
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
adBlocking: {
|
|
95
|
-
cpu: {
|
|
96
|
-
value: 9e-4,
|
|
97
|
-
weight: 0.9
|
|
98
|
-
},
|
|
99
|
-
memory: {
|
|
100
|
-
value: 35e-4,
|
|
101
|
-
weight: 0.1
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
qos: {
|
|
105
|
-
cpu: {
|
|
106
|
-
value: 14e-4,
|
|
107
|
-
weight: 0.9
|
|
108
|
-
},
|
|
109
|
-
memory: {
|
|
110
|
-
value: 0,
|
|
111
|
-
weight: 0.1
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}, {
|
|
117
|
-
id: ComputeResourceCalculator_types.DeviceId.UcgMax,
|
|
118
|
-
sku: ["ucg-max"],
|
|
119
|
-
title: "device.UCG Max",
|
|
120
|
-
img: {
|
|
121
|
-
src: ucgMax__default["default"],
|
|
122
|
-
width: 68,
|
|
123
|
-
height: 68
|
|
124
|
-
},
|
|
125
|
-
settings: {
|
|
126
|
-
forcedFeatures: [ComputeResourceCalculator_types.FeatureId.Network],
|
|
127
|
-
defaultEnabledFeatures: [ComputeResourceCalculator_types.FeatureId.Network],
|
|
128
|
-
hdd: {
|
|
129
|
-
max: 1,
|
|
130
|
-
parityDisks: 0,
|
|
131
|
-
gigabyteOptions: [512, 1e3, 2e3]
|
|
132
|
-
}
|
|
133
|
-
},
|
|
134
|
-
loadData: {
|
|
135
|
-
Network: {
|
|
136
|
-
enableFeature: {
|
|
137
|
-
cpu: {
|
|
138
|
-
value: 0.015,
|
|
139
|
-
weight: 0.9
|
|
140
|
-
},
|
|
141
|
-
memory: {
|
|
142
|
-
value: 0.49,
|
|
143
|
-
weight: 0.1
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
accessPoint: {
|
|
147
|
-
max: 30,
|
|
148
|
-
data: {
|
|
149
|
-
cpu: {
|
|
150
|
-
value: 61e-4,
|
|
151
|
-
weight: 0.9
|
|
152
|
-
},
|
|
153
|
-
memory: {
|
|
154
|
-
value: 0.016,
|
|
155
|
-
weight: 0.1
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
vpn: {
|
|
160
|
-
cpu: {
|
|
161
|
-
value: 0,
|
|
162
|
-
weight: 0.9
|
|
163
|
-
},
|
|
164
|
-
memory: {
|
|
165
|
-
value: 1e-3,
|
|
166
|
-
weight: 0.1
|
|
167
|
-
}
|
|
168
|
-
},
|
|
169
|
-
securityDetection: {
|
|
170
|
-
cpu: {
|
|
171
|
-
value: 0.4008,
|
|
172
|
-
weight: 0.9
|
|
173
|
-
},
|
|
174
|
-
memory: {
|
|
175
|
-
value: 0.1515,
|
|
176
|
-
weight: 0.1
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
|
-
adBlocking: {
|
|
180
|
-
cpu: {
|
|
181
|
-
value: 0.0132,
|
|
182
|
-
weight: 0.9
|
|
183
|
-
},
|
|
184
|
-
memory: {
|
|
185
|
-
value: 0,
|
|
186
|
-
weight: 0.1
|
|
187
|
-
}
|
|
188
|
-
},
|
|
189
|
-
qos: {
|
|
190
|
-
cpu: {
|
|
191
|
-
value: 0.0173,
|
|
192
|
-
weight: 0.9
|
|
193
|
-
},
|
|
194
|
-
memory: {
|
|
195
|
-
value: 0.0255,
|
|
196
|
-
weight: 0.1
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
},
|
|
200
|
-
Protect: {
|
|
201
|
-
enableFeature: {
|
|
202
|
-
cpu: {
|
|
203
|
-
value: 0.1,
|
|
204
|
-
weight: 0.9
|
|
205
|
-
},
|
|
206
|
-
memory: {
|
|
207
|
-
value: 0.2809,
|
|
208
|
-
weight: 0.1
|
|
209
|
-
}
|
|
210
|
-
},
|
|
211
|
-
playback: {
|
|
212
|
-
cpu: {
|
|
213
|
-
value: 0,
|
|
214
|
-
weight: 0.9
|
|
215
|
-
},
|
|
216
|
-
memory: {
|
|
217
|
-
value: 0,
|
|
218
|
-
weight: 0.1
|
|
219
|
-
}
|
|
220
|
-
},
|
|
221
|
-
liveView: {
|
|
222
|
-
cpu: {
|
|
223
|
-
value: 0,
|
|
224
|
-
weight: 0.9
|
|
225
|
-
},
|
|
226
|
-
memory: {
|
|
227
|
-
value: 0,
|
|
228
|
-
weight: 0.1
|
|
229
|
-
}
|
|
230
|
-
},
|
|
231
|
-
cameraHd: {
|
|
232
|
-
max: 15,
|
|
233
|
-
data: {
|
|
234
|
-
cpu: {
|
|
235
|
-
value: 0.0106,
|
|
236
|
-
weight: 0.9
|
|
237
|
-
},
|
|
238
|
-
memory: {
|
|
239
|
-
value: 3e-4,
|
|
240
|
-
weight: 0.1
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
},
|
|
244
|
-
camera2k: {
|
|
245
|
-
max: 8,
|
|
246
|
-
data: {
|
|
247
|
-
cpu: {
|
|
248
|
-
value: 0.0211,
|
|
249
|
-
weight: 0.9
|
|
250
|
-
},
|
|
251
|
-
memory: {
|
|
252
|
-
value: 6e-4,
|
|
253
|
-
weight: 0.1
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
},
|
|
257
|
-
camera4k: {
|
|
258
|
-
max: 5,
|
|
259
|
-
data: {
|
|
260
|
-
cpu: {
|
|
261
|
-
value: 0.03,
|
|
262
|
-
weight: 0.9
|
|
263
|
-
},
|
|
264
|
-
memory: {
|
|
265
|
-
value: 14e-4,
|
|
266
|
-
weight: 0.1
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
},
|
|
271
|
-
Access: {
|
|
272
|
-
enableFeature: {
|
|
273
|
-
cpu: {
|
|
274
|
-
value: 75e-4,
|
|
275
|
-
weight: 0.5
|
|
276
|
-
},
|
|
277
|
-
memory: {
|
|
278
|
-
value: 63e-4,
|
|
279
|
-
weight: 0.5
|
|
280
|
-
}
|
|
281
|
-
},
|
|
282
|
-
door: {
|
|
283
|
-
max: 100,
|
|
284
|
-
data: {
|
|
285
|
-
cpu: {
|
|
286
|
-
value: 5e-3,
|
|
287
|
-
weight: 0.5
|
|
288
|
-
},
|
|
289
|
-
memory: {
|
|
290
|
-
value: 0.0189,
|
|
291
|
-
weight: 0.5
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
},
|
|
296
|
-
Talk: {
|
|
297
|
-
enableFeature: {
|
|
298
|
-
cpu: {
|
|
299
|
-
value: 8e-3,
|
|
300
|
-
weight: 0.5
|
|
301
|
-
},
|
|
302
|
-
memory: {
|
|
303
|
-
value: 0.0254,
|
|
304
|
-
weight: 0.5
|
|
305
|
-
}
|
|
306
|
-
},
|
|
307
|
-
phone: {
|
|
308
|
-
max: 100,
|
|
309
|
-
data: {
|
|
310
|
-
cpu: {
|
|
311
|
-
value: 0.013,
|
|
312
|
-
weight: 0.5
|
|
313
|
-
},
|
|
314
|
-
memory: {
|
|
315
|
-
value: 6e-4,
|
|
316
|
-
weight: 0.5
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
},
|
|
320
|
-
record: {
|
|
321
|
-
cpu: {
|
|
322
|
-
value: 2e-4,
|
|
323
|
-
weight: 0.5
|
|
324
|
-
},
|
|
325
|
-
memory: {
|
|
326
|
-
value: 5e-4,
|
|
327
|
-
weight: 0.5
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
}, {
|
|
333
32
|
id: ComputeResourceCalculator_types.DeviceId.UDMProMax,
|
|
334
33
|
sku: ["udm-pro-max"],
|
|
335
34
|
title: "device.UDM Pro Max",
|
|
@@ -384,13 +83,14 @@ const DEVICES = [{
|
|
|
384
83
|
weight: 0.1
|
|
385
84
|
}
|
|
386
85
|
},
|
|
86
|
+
threatManagementLoad: 0.1375,
|
|
387
87
|
securityDetection: {
|
|
388
88
|
cpu: {
|
|
389
|
-
value:
|
|
89
|
+
value: 17e-4,
|
|
390
90
|
weight: 0.9
|
|
391
91
|
},
|
|
392
92
|
memory: {
|
|
393
|
-
value: 0
|
|
93
|
+
value: 0,
|
|
394
94
|
weight: 0.1
|
|
395
95
|
}
|
|
396
96
|
},
|
|
@@ -601,13 +301,14 @@ const DEVICES = [{
|
|
|
601
301
|
weight: 0.3
|
|
602
302
|
}
|
|
603
303
|
},
|
|
304
|
+
threatManagementLoad: 0.1161,
|
|
604
305
|
securityDetection: {
|
|
605
306
|
cpu: {
|
|
606
|
-
value:
|
|
307
|
+
value: 7e-4,
|
|
607
308
|
weight: 0.7
|
|
608
309
|
},
|
|
609
310
|
memory: {
|
|
610
|
-
value: 0
|
|
311
|
+
value: 0,
|
|
611
312
|
weight: 0.3
|
|
612
313
|
}
|
|
613
314
|
},
|
|
@@ -1007,8 +708,8 @@ const DEVICES = [{
|
|
|
1007
708
|
defaultEnabledFeatures: [ComputeResourceCalculator_types.FeatureId.Network],
|
|
1008
709
|
hdd: {
|
|
1009
710
|
max: 1,
|
|
1010
|
-
|
|
1011
|
-
|
|
711
|
+
parityDisks: 0,
|
|
712
|
+
gigabyteOptions: [1e3]
|
|
1012
713
|
},
|
|
1013
714
|
maxReducer: {
|
|
1014
715
|
enabledFeaturesTrigger: 2,
|
|
@@ -1056,13 +757,14 @@ const DEVICES = [{
|
|
|
1056
757
|
weight: 0.4
|
|
1057
758
|
}
|
|
1058
759
|
},
|
|
760
|
+
threatManagementLoad: 0.032,
|
|
1059
761
|
securityDetection: {
|
|
1060
762
|
cpu: {
|
|
1061
|
-
value:
|
|
763
|
+
value: 3e-3,
|
|
1062
764
|
weight: 0.6
|
|
1063
765
|
},
|
|
1064
766
|
memory: {
|
|
1065
|
-
value:
|
|
767
|
+
value: 0,
|
|
1066
768
|
weight: 0.4
|
|
1067
769
|
}
|
|
1068
770
|
},
|
|
@@ -1267,13 +969,14 @@ const DEVICES = [{
|
|
|
1267
969
|
weight: 0.3
|
|
1268
970
|
}
|
|
1269
971
|
},
|
|
972
|
+
threatManagementLoad: 0.1215,
|
|
1270
973
|
securityDetection: {
|
|
1271
974
|
cpu: {
|
|
1272
|
-
value:
|
|
975
|
+
value: 1e-3,
|
|
1273
976
|
weight: 0.7
|
|
1274
977
|
},
|
|
1275
978
|
memory: {
|
|
1276
|
-
value: 0
|
|
979
|
+
value: 0,
|
|
1277
980
|
weight: 0.3
|
|
1278
981
|
}
|
|
1279
982
|
},
|
|
@@ -1479,13 +1182,14 @@ const DEVICES = [{
|
|
|
1479
1182
|
weight: 0.5
|
|
1480
1183
|
}
|
|
1481
1184
|
},
|
|
1185
|
+
threatManagementLoad: 0.1682,
|
|
1482
1186
|
securityDetection: {
|
|
1483
1187
|
cpu: {
|
|
1484
|
-
value: 0.
|
|
1188
|
+
value: 0.0254,
|
|
1485
1189
|
weight: 0.5
|
|
1486
1190
|
},
|
|
1487
1191
|
memory: {
|
|
1488
|
-
value: 0
|
|
1192
|
+
value: 0,
|
|
1489
1193
|
weight: 0.5
|
|
1490
1194
|
}
|
|
1491
1195
|
},
|