@ubnt/store.core 9.9.0-alpha.8 → 9.9.0-konutis.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +0 -26
- package/lib/_virtual/_virtual_multi-entry.js +16 -4
- package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
- package/lib/_virtual/_virtual_multi-entry.mjs +2 -2
- package/lib/assets/minus4.svg +8 -8
- package/lib/assets/minus5.svg +8 -8
- package/lib/assets/plus5.svg +9 -9
- package/lib/assets/plus6.svg +9 -9
- package/lib/assets/socialMedia/{x.svg.js → twitter.svg.js} +6 -6
- package/lib/assets/socialMedia/twitter.svg.js.map +1 -0
- package/lib/assets/socialMedia/twitter.svg.mjs +3 -0
- package/lib/assets/socialMedia/twitter.svg.mjs.map +1 -0
- package/lib/assets/twitter.svg +3 -0
- package/lib/assets/udmPro.jpg +0 -0
- package/lib/assets/udmPro2.jpg +0 -0
- package/lib/assets/udmProMax.jpg +0 -0
- package/lib/assets/udmProMax2.jpg +0 -0
- package/lib/assets/udmProSpecial.jpg +0 -0
- package/lib/assets/udmProSpecial2.jpg +0 -0
- package/lib/components/Footer/Footer.d.ts +1 -1
- package/lib/components/Footer/Footer.js +74 -192
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/Footer.mjs +76 -174
- package/lib/components/Footer/Footer.mjs.map +1 -1
- package/lib/components/Footer/Footer.styles.d.ts +5 -17
- package/lib/components/Footer/Footer.styles.js +44 -90
- package/lib/components/Footer/Footer.styles.js.map +1 -1
- package/lib/components/Footer/Footer.styles.mjs +44 -86
- package/lib/components/Footer/Footer.styles.mjs.map +1 -1
- package/lib/components/Footer/Footer.types.d.ts +0 -40
- package/lib/components/Footer/Footer.types.js +0 -16
- package/lib/components/Footer/Footer.types.js.map +1 -1
- package/lib/components/Footer/Footer.types.mjs +0 -15
- package/lib/components/Footer/Footer.types.mjs.map +1 -1
- package/lib/components/Footer/index.js +1 -3
- package/lib/components/Footer/index.js.map +1 -1
- package/lib/components/Footer/index.mjs +1 -1
- package/lib/components/Header/AccountMenu/AccountMenu.js +3 -6
- package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
- package/lib/components/Header/AccountMenu/AccountMenu.mjs +3 -6
- package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js +6 -11
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js.map +1 -1
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.mjs +6 -11
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.mjs.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +4 -8
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +4 -8
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.js +2 -19
- package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.mjs +2 -19
- package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +0 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.js +0 -6
- package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs +0 -6
- package/lib/components/Header/ProHeader/ProHeader.styles.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/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/data/CloudGateways.js +9 -9
- package/lib/components/ModelCompareV3/data/CloudGateways.mjs +6 -6
- package/lib/components/ModelCompareV3/data/products/udmPro.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js +1 -6
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs +1 -6
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs.map +1 -1
- 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/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/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
- 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/constants/footerContent.d.ts +145 -0
- package/lib/constants/footerContent.js +313 -0
- package/lib/constants/footerContent.js.map +1 -0
- package/lib/constants/footerContent.mjs +293 -0
- package/lib/constants/footerContent.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 +0 -3
- package/lib/constants/proStoreCategories/mapping/index.js +10 -20
- package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.mjs +10 -20
- package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.d.ts +1 -3
- package/lib/constants/proStoreCategories/mapping/unifi.js +0 -2
- package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.mjs +0 -2
- package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.js +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.mjs +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.js +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.mjs +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.js +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.mjs +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.js +0 -5
- package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.mjs +1 -5
- package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.js +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.mjs +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js +2 -2
- package/lib/constants/proStoreCategories/translations/fr.json.mjs +2 -2
- package/lib/constants/proStoreCategories/translations/it.json.js +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.mjs +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.js +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.mjs +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +2 -2
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +2 -2
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +2 -2
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +2 -2
- package/lib/constants/url.d.ts +4 -4
- package/lib/constants/url.js +4 -4
- package/lib/constants/url.js.map +1 -1
- package/lib/constants/url.mjs +4 -4
- package/lib/constants/url.mjs.map +1 -1
- package/lib/contexts/MenuContext/mapping.js +0 -41
- package/lib/contexts/MenuContext/mapping.js.map +1 -1
- package/lib/contexts/MenuContext/mapping.mjs +0 -41
- package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
- package/lib/contexts/MenuContext/presets.js.map +1 -1
- package/lib/contexts/MenuContext/presets.mjs.map +1 -1
- package/lib/helpers/index.d.ts +1 -0
- package/lib/helpers/index.js +12 -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 +96 -0
- package/lib/helpers/product.js +360 -0
- package/lib/helpers/product.js.map +1 -0
- package/lib/helpers/product.mjs +348 -0
- package/lib/helpers/product.mjs.map +1 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.js +2 -0
- package/lib/types/index.js.map +1 -1
- package/lib/types/index.mjs +1 -0
- package/lib/types/index.mjs.map +1 -1
- package/lib/types/product.d.ts +87 -0
- package/lib/types/product.js +14 -0
- package/lib/types/product.js.map +1 -0
- package/lib/types/product.mjs +13 -0
- package/lib/types/product.mjs.map +1 -0
- package/lib/utils/address.d.ts +61 -61
- 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/index.d.ts +0 -1
- package/lib/utils/index.js +0 -2
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/index.mjs +0 -2
- package/lib/utils/index.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/productSort.d.ts +41 -0
- package/lib/utils/productSort.js +66 -0
- package/lib/utils/productSort.js.map +1 -0
- package/lib/utils/productSort.mjs +59 -0
- package/lib/utils/productSort.mjs.map +1 -0
- 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/package.json +1 -1
- package/lib/assets/socialMedia/x.svg.js.map +0 -1
- package/lib/assets/socialMedia/x.svg.mjs +0 -3
- package/lib/assets/socialMedia/x.svg.mjs.map +0 -1
- package/lib/assets/x.svg +0 -3
- package/lib/components/Footer/hooks/useFooterContent.d.ts +0 -94
- package/lib/components/Footer/hooks/useFooterContent.js +0 -384
- package/lib/components/Footer/hooks/useFooterContent.js.map +0 -1
- package/lib/components/Footer/hooks/useFooterContent.mjs +0 -348
- package/lib/components/Footer/hooks/useFooterContent.mjs.map +0 -1
- package/lib/components/Footer/translations/ar.json.js +0 -47
- package/lib/components/Footer/translations/ar.json.js.map +0 -1
- package/lib/components/Footer/translations/ar.json.mjs +0 -42
- package/lib/components/Footer/translations/ar.json.mjs.map +0 -1
- package/lib/components/Footer/translations/de.json.js +0 -47
- package/lib/components/Footer/translations/de.json.js.map +0 -1
- package/lib/components/Footer/translations/de.json.mjs +0 -42
- package/lib/components/Footer/translations/de.json.mjs.map +0 -1
- package/lib/components/Footer/translations/el.json.js +0 -47
- package/lib/components/Footer/translations/el.json.js.map +0 -1
- package/lib/components/Footer/translations/el.json.mjs +0 -42
- package/lib/components/Footer/translations/el.json.mjs.map +0 -1
- package/lib/components/Footer/translations/en.json.js +0 -46
- package/lib/components/Footer/translations/en.json.js.map +0 -1
- package/lib/components/Footer/translations/en.json.mjs +0 -41
- package/lib/components/Footer/translations/en.json.mjs.map +0 -1
- package/lib/components/Footer/translations/es.json.js +0 -47
- package/lib/components/Footer/translations/es.json.js.map +0 -1
- package/lib/components/Footer/translations/es.json.mjs +0 -42
- package/lib/components/Footer/translations/es.json.mjs.map +0 -1
- package/lib/components/Footer/translations/fr.json.js +0 -47
- package/lib/components/Footer/translations/fr.json.js.map +0 -1
- package/lib/components/Footer/translations/fr.json.mjs +0 -42
- package/lib/components/Footer/translations/fr.json.mjs.map +0 -1
- package/lib/components/Footer/translations/it.json.js +0 -47
- package/lib/components/Footer/translations/it.json.js.map +0 -1
- package/lib/components/Footer/translations/it.json.mjs +0 -42
- package/lib/components/Footer/translations/it.json.mjs.map +0 -1
- package/lib/components/Footer/translations/ja.json.js +0 -47
- package/lib/components/Footer/translations/ja.json.js.map +0 -1
- package/lib/components/Footer/translations/ja.json.mjs +0 -42
- package/lib/components/Footer/translations/ja.json.mjs.map +0 -1
- package/lib/components/Footer/translations/pt-BR.json.js +0 -47
- package/lib/components/Footer/translations/pt-BR.json.js.map +0 -1
- package/lib/components/Footer/translations/pt-BR.json.mjs +0 -42
- package/lib/components/Footer/translations/pt-BR.json.mjs.map +0 -1
- package/lib/components/Footer/translations/zh-Hans.json.js +0 -47
- package/lib/components/Footer/translations/zh-Hans.json.js.map +0 -1
- package/lib/components/Footer/translations/zh-Hans.json.mjs +0 -42
- package/lib/components/Footer/translations/zh-Hans.json.mjs.map +0 -1
- package/lib/components/Footer/translations/zh-Hant-TW.json.js +0 -47
- package/lib/components/Footer/translations/zh-Hant-TW.json.js.map +0 -1
- package/lib/components/Footer/translations/zh-Hant-TW.json.mjs +0 -42
- package/lib/components/Footer/translations/zh-Hant-TW.json.mjs.map +0 -1
- package/lib/components/Tooltip/Tooltip.d.ts +0 -2
- package/lib/components/Tooltip/Tooltip.js +0 -45
- package/lib/components/Tooltip/Tooltip.js.map +0 -1
- package/lib/components/Tooltip/Tooltip.mjs +0 -43
- package/lib/components/Tooltip/Tooltip.mjs.map +0 -1
- package/lib/components/Tooltip/Tooltip.styles.d.ts +0 -32
- package/lib/components/Tooltip/Tooltip.styles.js +0 -44
- package/lib/components/Tooltip/Tooltip.styles.js.map +0 -1
- package/lib/components/Tooltip/Tooltip.styles.mjs +0 -34
- package/lib/components/Tooltip/Tooltip.styles.mjs.map +0 -1
- package/lib/components/Tooltip/index.d.ts +0 -1
- package/lib/components/Tooltip/index.js +0 -6
- package/lib/components/Tooltip/index.js.map +0 -1
- package/lib/components/Tooltip/index.mjs +0 -3
- package/lib/components/Tooltip/index.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/typeGuards.d.ts +0 -1
- package/lib/utils/typeGuards.js +0 -6
- package/lib/utils/typeGuards.js.map +0 -1
- package/lib/utils/typeGuards.mjs +0 -5
- package/lib/utils/typeGuards.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,32 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
## Releases
|
|
8
8
|
|
|
9
|
-
### 9.9.0-alpha.8
|
|
10
|
-
|
|
11
|
-
- [Fix] [MIC-167](https://ubiquiti.atlassian.net/browse/MIC-167) Fix cookie button styling
|
|
12
|
-
|
|
13
|
-
### 9.9.0-alpha.7
|
|
14
|
-
|
|
15
|
-
- [Fix] [MIC-167](https://ubiquiti.atlassian.net/browse/MIC-167) Fix footer styling
|
|
16
|
-
|
|
17
|
-
### 9.9.0-alpha.6
|
|
18
|
-
|
|
19
|
-
- [Fix] [MIC-167](https://ubiquiti.atlassian.net/browse/MIC-167) Open Mailchimp screen in new tab
|
|
20
|
-
|
|
21
|
-
### 9.9.0-alpha.5
|
|
22
|
-
|
|
23
|
-
- [Feat] [MIC-167](https://ubiquiti.atlassian.net/browse/MIC-167) Revive Footer component for shared usage between projects (don't use Store BE for subscribing)
|
|
24
|
-
|
|
25
|
-
### 9.9.0-alpha.4
|
|
26
|
-
|
|
27
|
-
- [Feat] [NEP-3494](https://ubiquiti.atlassian.net/browse/NEP-3494) Split "Cables & Modules" category into two categories -> "RJ45 & Copper" and "SFP & Fiber"
|
|
28
|
-
- [Fix] [NEP-3149](https://ubiquiti.atlassian.net/browse/NEP-3149) Fix Resource Calculator overlay and remove footer note if no content
|
|
29
|
-
- [Feat] [NEP-3419](https://ubiquiti.atlassian.net/browse/NEP-3419) Update cart icon logic
|
|
30
|
-
- [Fix] [NEP-3402](https://ubiquiti.atlassian.net/browse/NEP-3402) Add forced features for consoles in resource calculator
|
|
31
|
-
- [Feat] [MIC-167](https://ubiquiti.atlassian.net/browse/MIC-167) Revive Footer component for shared usage between projects
|
|
32
|
-
- [NEP-3300](https://ubiquiti.atlassian.net/browse/NEP-3300) Add NAS category in pro store
|
|
33
|
-
- [Feat] [NEP-3353](https://ubiquiti.atlassian.net/browse/NEP-3353) Hide menu items that are not available in India
|
|
34
|
-
|
|
35
9
|
### 9.9.0
|
|
36
10
|
|
|
37
11
|
- [Feat] [MIC-315](https://ubiquiti.atlassian.net/browse/MIC-315) Updates for UISP.com:
|
|
@@ -69,6 +69,7 @@ var useTranslation = require('../hooks/useTranslation.js');
|
|
|
69
69
|
var useScrollToY = require('../hooks/useScrollToY.js');
|
|
70
70
|
var constants = require('../types/constants.js');
|
|
71
71
|
var generated = require('../types/generated.js');
|
|
72
|
+
var product = require('../types/product.js');
|
|
72
73
|
var url = require('../utils/url.js');
|
|
73
74
|
var misc = require('../utils/money/misc.js');
|
|
74
75
|
var number = require('../utils/number.js');
|
|
@@ -86,14 +87,14 @@ var measures = require('../utils/measures.js');
|
|
|
86
87
|
var errors = require('../utils/errors.js');
|
|
87
88
|
var tags = require('../utils/tags.js');
|
|
88
89
|
var wattage = require('../utils/wattage.js');
|
|
89
|
-
var product = require('../utils/product.js');
|
|
90
|
+
var product$1 = require('../utils/product.js');
|
|
90
91
|
var asset = require('../utils/asset.js');
|
|
91
92
|
var imageOptimizer = require('../utils/imageOptimizer.js');
|
|
92
93
|
var styles = require('../utils/styles.js');
|
|
93
|
-
var storeId = require('../utils/storeId.js');
|
|
94
94
|
var index$V = require('../constants/proStoreCategories/index.js');
|
|
95
95
|
var index$W = require('../constants/proStoreFilters/index.js');
|
|
96
96
|
var proStoreCategories = require('../helpers/proStoreCategories.js');
|
|
97
|
+
var product$2 = require('../helpers/product.js');
|
|
97
98
|
var smartcat = require('../apis/smartcat.js');
|
|
98
99
|
exports.Avatar = index;
|
|
99
100
|
exports.Button = index$1;
|
|
@@ -167,6 +168,7 @@ exports.Unit = generated.Unit;
|
|
|
167
168
|
exports.UnitSystem = generated.UnitSystem;
|
|
168
169
|
exports.UserAssignedCountryCode = generated.UserAssignedCountryCode;
|
|
169
170
|
exports.ValidateTaxStatus = generated.ValidateTaxStatus;
|
|
171
|
+
exports.DisplayProductStatus = product.DisplayProductStatus;
|
|
170
172
|
exports.url = url;
|
|
171
173
|
exports.money = misc;
|
|
172
174
|
exports.number = number;
|
|
@@ -184,11 +186,10 @@ exports.measures = measures;
|
|
|
184
186
|
exports.errors = errors;
|
|
185
187
|
exports.tags = tags;
|
|
186
188
|
exports.wattage = wattage;
|
|
187
|
-
exports.product = product;
|
|
189
|
+
exports.product = product$1;
|
|
188
190
|
exports.asset = asset;
|
|
189
191
|
exports.imageOptimizer = imageOptimizer;
|
|
190
192
|
exports.styles = styles;
|
|
191
|
-
exports.storeId = storeId;
|
|
192
193
|
exports.proStoreCategories = index$V;
|
|
193
194
|
exports.proStoreFilters = index$W;
|
|
194
195
|
exports.getCategoriesBySubcategory = proStoreCategories.getCategoriesBySubcategory;
|
|
@@ -199,5 +200,16 @@ exports.getSubCategoryIdByCollectionSlug = proStoreCategories.getSubCategoryIdBy
|
|
|
199
200
|
exports.isValidSubCategory = proStoreCategories.isValidSubCategory;
|
|
200
201
|
exports.parseCategories = proStoreCategories.parseCategories;
|
|
201
202
|
exports.useTranslatedCategories = proStoreCategories.useTranslatedCategories;
|
|
203
|
+
exports.COLLECTION_SECTION_OTHER_ID = product$2.COLLECTION_SECTION_OTHER_ID;
|
|
204
|
+
exports.HDDProductSlugs = product$2.HDDProductSlugs;
|
|
205
|
+
exports.MagicCollectionTags = product$2.MagicCollectionTags;
|
|
206
|
+
exports.ProductOptions = product$2.ProductOptions;
|
|
207
|
+
exports.createSectionHierarchy = product$2.createSectionHierarchy;
|
|
208
|
+
exports.getProStoreCategory = product$2.getProStoreCategory;
|
|
209
|
+
exports.getProductGroups = product$2.getProductGroups;
|
|
210
|
+
exports.getStoreProducts = product$2.getStoreProducts;
|
|
211
|
+
exports.isNonNullish = product$2.isNonNullish;
|
|
212
|
+
exports.removeExcludedProducts = product$2.removeExcludedProducts;
|
|
213
|
+
exports.sortCollections = product$2.sortCollections;
|
|
202
214
|
exports.smartcat = smartcat;
|
|
203
215
|
//# sourceMappingURL=_virtual_multi-entry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_virtual_multi-entry.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"_virtual_multi-entry.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -122,6 +122,7 @@ export { useTranslation, useTranslationRaw } from '../hooks/useTranslation.mjs';
|
|
|
122
122
|
export { useScrollToY } from '../hooks/useScrollToY.mjs';
|
|
123
123
|
export { AddressUsageType, Language } from '../types/constants.mjs';
|
|
124
124
|
export { AddressType, CountryCode, Currency, GlobalStoreId, ProductLine, StoreId, Unit, UnitSystem, UserAssignedCountryCode, ValidateTaxStatus } from '../types/generated.mjs';
|
|
125
|
+
export { DisplayProductStatus } from '../types/product.mjs';
|
|
125
126
|
import * as url from '../utils/url.mjs';
|
|
126
127
|
export { url };
|
|
127
128
|
import * as misc from '../utils/money/misc.mjs';
|
|
@@ -164,13 +165,12 @@ import * as imageOptimizer from '../utils/imageOptimizer.mjs';
|
|
|
164
165
|
export { imageOptimizer };
|
|
165
166
|
import * as styles from '../utils/styles.mjs';
|
|
166
167
|
export { styles };
|
|
167
|
-
import * as storeId from '../utils/storeId.mjs';
|
|
168
|
-
export { storeId };
|
|
169
168
|
import * as index$V from '../constants/proStoreCategories/index.mjs';
|
|
170
169
|
export { index$V as proStoreCategories };
|
|
171
170
|
import * as index$W from '../constants/proStoreFilters/index.mjs';
|
|
172
171
|
export { index$W as proStoreFilters };
|
|
173
172
|
export { getCategoriesBySubcategory, getLocalizedCategories, getProductLineByCategory, getProductLineBySubcategory, getSubCategoryIdByCollectionSlug, isValidSubCategory, parseCategories, useTranslatedCategories } from '../helpers/proStoreCategories.mjs';
|
|
173
|
+
export { COLLECTION_SECTION_OTHER_ID, HDDProductSlugs, MagicCollectionTags, ProductOptions, createSectionHierarchy, getProStoreCategory, getProductGroups, getStoreProducts, isNonNullish, removeExcludedProducts, sortCollections } from '../helpers/product.mjs';
|
|
174
174
|
import * as smartcat from '../apis/smartcat.mjs';
|
|
175
175
|
export { smartcat };
|
|
176
176
|
//# sourceMappingURL=_virtual_multi-entry.mjs.map
|
package/lib/assets/minus4.svg
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<mask id="
|
|
3
|
-
<g clip-path="url(#
|
|
4
|
-
<path d="
|
|
1
|
+
<svg width="6" height="6" viewBox="0 0 6 6" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<mask id="mask0_426_15898" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="6" height="6">
|
|
3
|
+
<g clip-path="url(#clip0_426_15898)">
|
|
4
|
+
<path d="M5.16287 2.9397H0.697754V3.38621H5.16287V2.9397Z" fill="#838691"/>
|
|
5
5
|
</g>
|
|
6
6
|
</mask>
|
|
7
|
-
<g mask="url(#
|
|
8
|
-
<rect x="0.
|
|
7
|
+
<g mask="url(#mask0_426_15898)">
|
|
8
|
+
<rect x="0.697754" y="0.930176" width="4.46512" height="4.46512" fill="#838691"/>
|
|
9
9
|
</g>
|
|
10
10
|
<defs>
|
|
11
|
-
<clipPath id="
|
|
12
|
-
<rect width="
|
|
11
|
+
<clipPath id="clip0_426_15898">
|
|
12
|
+
<rect width="4.46512" height="4.46512" fill="white" transform="translate(0.697754 0.930176)"/>
|
|
13
13
|
</clipPath>
|
|
14
14
|
</defs>
|
|
15
15
|
</svg>
|
package/lib/assets/minus5.svg
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<mask id="
|
|
3
|
-
<g clip-path="url(#
|
|
4
|
-
<path d="
|
|
1
|
+
<svg width="11" height="10" viewBox="0 0 11 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<mask id="mask0_658_406" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="11" height="10">
|
|
3
|
+
<g clip-path="url(#clip0_658_406)">
|
|
4
|
+
<path d="M10.2546 4.35H0.587891V5.31667H10.2546V4.35Z" fill="#838691"/>
|
|
5
5
|
</g>
|
|
6
6
|
</mask>
|
|
7
|
-
<g mask="url(#
|
|
8
|
-
<rect x="0.
|
|
7
|
+
<g mask="url(#mask0_658_406)">
|
|
8
|
+
<rect x="0.587891" width="9.66667" height="9.66667" fill="#838691"/>
|
|
9
9
|
</g>
|
|
10
10
|
<defs>
|
|
11
|
-
<clipPath id="
|
|
12
|
-
<rect width="
|
|
11
|
+
<clipPath id="clip0_658_406">
|
|
12
|
+
<rect width="9.66667" height="9.66667" fill="white" transform="translate(0.587891)"/>
|
|
13
13
|
</clipPath>
|
|
14
14
|
</defs>
|
|
15
15
|
</svg>
|
package/lib/assets/plus5.svg
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<mask id="
|
|
3
|
-
<g clip-path="url(#
|
|
4
|
-
<path d="
|
|
5
|
-
<path d="
|
|
1
|
+
<svg width="6" height="6" viewBox="0 0 6 6" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<mask id="mask0_426_15903" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="6" height="6">
|
|
3
|
+
<g clip-path="url(#clip0_426_15903)">
|
|
4
|
+
<path d="M5.30227 2.9397H0.837158V3.38621H5.30227V2.9397Z" fill="#838691"/>
|
|
5
|
+
<path d="M2.84668 0.930147L2.84668 5.39526H3.29319L3.29319 0.930147H2.84668Z" fill="#838691"/>
|
|
6
6
|
</g>
|
|
7
7
|
</mask>
|
|
8
|
-
<g mask="url(#
|
|
9
|
-
<rect x="0.
|
|
8
|
+
<g mask="url(#mask0_426_15903)">
|
|
9
|
+
<rect x="0.837158" y="0.930176" width="4.46512" height="4.46512" fill="#838691"/>
|
|
10
10
|
</g>
|
|
11
11
|
<defs>
|
|
12
|
-
<clipPath id="
|
|
13
|
-
<rect width="
|
|
12
|
+
<clipPath id="clip0_426_15903">
|
|
13
|
+
<rect width="4.46512" height="4.46512" fill="white" transform="translate(0.837158 0.930176)"/>
|
|
14
14
|
</clipPath>
|
|
15
15
|
</defs>
|
|
16
16
|
</svg>
|
package/lib/assets/plus6.svg
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<mask id="
|
|
3
|
-
<g clip-path="url(#
|
|
4
|
-
<path d="
|
|
5
|
-
<path d="
|
|
1
|
+
<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<mask id="mask0_658_411" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="10" height="10">
|
|
3
|
+
<g clip-path="url(#clip0_658_411)">
|
|
4
|
+
<path d="M9.86637 4.35H0.199707V5.31667H9.86637V4.35Z" fill="#838691"/>
|
|
5
|
+
<path d="M4.5498 -2.86102e-06L4.5498 9.66666H5.51647L5.51647 -2.86102e-06H4.5498Z" fill="#838691"/>
|
|
6
6
|
</g>
|
|
7
7
|
</mask>
|
|
8
|
-
<g mask="url(#
|
|
9
|
-
<rect x="0.
|
|
8
|
+
<g mask="url(#mask0_658_411)">
|
|
9
|
+
<rect x="0.199707" width="9.66667" height="9.66667" fill="#838691"/>
|
|
10
10
|
</g>
|
|
11
11
|
<defs>
|
|
12
|
-
<clipPath id="
|
|
13
|
-
<rect width="
|
|
12
|
+
<clipPath id="clip0_658_411">
|
|
13
|
+
<rect width="9.66667" height="9.66667" fill="white" transform="translate(0.199707)"/>
|
|
14
14
|
</clipPath>
|
|
15
15
|
</defs>
|
|
16
16
|
</svg>
|
|
@@ -3,25 +3,25 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var
|
|
6
|
+
var TwitterIcon = require("../twitter.svg");
|
|
7
7
|
function _interopDefault(e) {
|
|
8
8
|
return e && e.__esModule ? e : {
|
|
9
9
|
default: e
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
|
-
var
|
|
12
|
+
var TwitterIcon__default = /*#__PURE__*/_interopDefault(TwitterIcon);
|
|
13
13
|
Object.defineProperty(exports, "default", {
|
|
14
14
|
enumerable: true,
|
|
15
15
|
get: function () {
|
|
16
|
-
return
|
|
16
|
+
return TwitterIcon__default["default"];
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
Object.keys(
|
|
19
|
+
Object.keys(TwitterIcon).forEach(function (k) {
|
|
20
20
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
21
21
|
enumerable: true,
|
|
22
22
|
get: function () {
|
|
23
|
-
return
|
|
23
|
+
return TwitterIcon[k];
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
});
|
|
27
|
-
//# sourceMappingURL=
|
|
27
|
+
//# sourceMappingURL=twitter.svg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"twitter.svg.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"twitter.svg.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="18" height="14" viewBox="0 0 18 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path opacity="0.9" fill-rule="evenodd" clip-rule="evenodd" d="M17.417 1.64946C17.1818 1.99671 16.9136 2.32588 16.6123 2.63697C16.311 2.94805 15.9913 3.22657 15.6532 3.47255V3.68958V3.92832C15.6532 5.08583 15.4328 6.25782 14.9918 7.44427C14.5509 8.63073 13.9005 9.70504 13.0407 10.6672C12.1809 11.6294 11.1153 12.4144 9.84391 13.0221C8.57254 13.6297 7.11378 13.9336 5.46761 13.9336C4.46816 13.9336 3.50545 13.7961 2.57948 13.5212C1.65351 13.2463 0.793686 12.8557 0 12.3492C0.132281 12.3637 0.271911 12.3782 0.41889 12.3927C0.565869 12.4071 0.705498 12.4144 0.83778 12.4144C1.67556 12.4144 2.47292 12.2805 3.22986 12.0128C3.9868 11.7452 4.67393 11.3726 5.29124 10.8951C4.51225 10.8806 3.81778 10.6455 3.20781 10.1898C2.59785 9.73398 2.17529 9.15884 1.94012 8.46433C2.0577 8.4788 2.17161 8.49327 2.28185 8.50774C2.39208 8.52221 2.50599 8.52944 2.62357 8.52944C2.78525 8.52944 2.94325 8.51859 3.09758 8.49689C3.25191 8.47518 3.40991 8.44263 3.57159 8.39922C2.74851 8.24006 2.06138 7.83855 1.51021 7.19468C0.959038 6.55082 0.683453 5.80205 0.683453 4.94838V4.92668V4.90497C0.933316 5.03519 1.1942 5.14009 1.46611 5.21967C1.73802 5.29925 2.02096 5.33904 2.31492 5.33904C1.82989 5.02072 1.44407 4.60474 1.15746 4.09109C0.870851 3.57745 0.727545 3.01677 0.727545 2.40908C0.727545 2.09076 0.767964 1.7833 0.848803 1.48668C0.929641 1.19007 1.0509 0.911543 1.21258 0.651102C1.65351 1.17198 2.14589 1.65308 2.68971 2.09438C3.23353 2.53568 3.81778 2.91188 4.44244 3.22296C5.0671 3.53404 5.72483 3.78363 6.41563 3.97173C7.10643 4.15982 7.82662 4.27557 8.57622 4.31898C8.54682 4.18876 8.52477 4.05854 8.51007 3.92832C8.49538 3.7981 8.48803 3.66064 8.48803 3.51595C8.48803 2.54653 8.8371 1.71819 9.53525 1.03091C10.2334 0.343637 11.0749 0 12.0596 0C12.574 0 13.0554 0.0976648 13.5037 0.292996C13.952 0.488327 14.3378 0.759619 14.6611 1.10687C15.0727 1.02006 15.4695 0.907926 15.8517 0.770471C16.2338 0.633016 16.5939 0.463006 16.932 0.260441C16.7997 0.665571 16.5976 1.03453 16.3257 1.36732C16.0538 1.7001 15.7341 1.97501 15.3666 2.19204C15.7341 2.14864 16.0868 2.08353 16.4249 1.99671C16.7629 1.9099 17.0936 1.79415 17.417 1.64946Z" fill="#838691"/>
|
|
3
|
+
</svg>
|
package/lib/assets/udmPro.jpg
CHANGED
|
Binary file
|
package/lib/assets/udmPro2.jpg
CHANGED
|
Binary file
|
package/lib/assets/udmProMax.jpg
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { FooterProps } from "./Footer.types";
|
|
2
|
-
export declare const Footer: (
|
|
2
|
+
export declare const Footer: import("react").NamedExoticComponent<FooterProps>;
|
|
@@ -2,210 +2,92 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var react = require('react');
|
|
5
|
-
require('../../
|
|
6
|
-
var mapping = require('../../contexts/MenuContext/mapping.js');
|
|
7
|
-
require('../../hooks/index.js');
|
|
8
|
-
require('../../types/index.js');
|
|
9
|
-
var asset = require('../../utils/asset.js');
|
|
10
|
-
require('../Container/index.js');
|
|
5
|
+
var footerContent = require('../../constants/footerContent.js');
|
|
11
6
|
var Footer_styles = require('./Footer.styles.js');
|
|
12
|
-
var useFooterContent = require('./hooks/useFooterContent.js');
|
|
13
|
-
var en = require('./translations/en.json.js');
|
|
14
|
-
var generated = require('../../types/generated.js');
|
|
15
|
-
var context = require('../../contexts/MenuContext/context.js');
|
|
16
|
-
var useTranslation = require('../../hooks/useTranslation.js');
|
|
17
|
-
var constants = require('../../types/constants.js');
|
|
18
|
-
var Container = require('../Container/Container.js');
|
|
19
7
|
"use strict";
|
|
20
|
-
const
|
|
21
|
-
[generated.GlobalStoreId.Us]: "United States",
|
|
22
|
-
[generated.GlobalStoreId.Eu]: "Europe",
|
|
23
|
-
[generated.GlobalStoreId.Ca]: "Canada",
|
|
24
|
-
[generated.GlobalStoreId.Za]: "South Africa",
|
|
25
|
-
[generated.GlobalStoreId.Me]: "Middle East",
|
|
26
|
-
[generated.GlobalStoreId.Uk]: "United Kingdom",
|
|
27
|
-
[generated.GlobalStoreId.In]: "India",
|
|
28
|
-
[generated.GlobalStoreId.Sg]: "Singapore",
|
|
29
|
-
[generated.GlobalStoreId.Br]: "Brazil",
|
|
30
|
-
[generated.GlobalStoreId.Jp]: "Japan",
|
|
31
|
-
[generated.GlobalStoreId.Mx]: "Mexico",
|
|
32
|
-
[generated.GlobalStoreId.Ph]: "Philippines",
|
|
33
|
-
[generated.GlobalStoreId.Tw]: "Taiwan",
|
|
34
|
-
[generated.GlobalStoreId.Cn]: "China"
|
|
35
|
-
};
|
|
36
|
-
const Footer = ({
|
|
8
|
+
const Footer = react.memo(function Footer2({
|
|
37
9
|
legalOnly,
|
|
38
|
-
motif = "light"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
storePicker,
|
|
42
|
-
// storeBackendUrl,
|
|
43
|
-
storeAddress,
|
|
44
|
-
className
|
|
45
|
-
}) => {
|
|
46
|
-
const {
|
|
47
|
-
storeId,
|
|
48
|
-
context: context$1
|
|
49
|
-
} = context.useMenu();
|
|
50
|
-
const {
|
|
51
|
-
footerContent,
|
|
52
|
-
socialContent,
|
|
53
|
-
termsContent
|
|
54
|
-
} = useFooterContent.useFooterContent();
|
|
55
|
-
const {
|
|
56
|
-
formatMessage
|
|
57
|
-
} = useTranslation.useTranslation({
|
|
58
|
-
defaultTranslation: en["default"],
|
|
59
|
-
additionalTranslations: {
|
|
60
|
-
[constants.Language.Ja]: () => Promise.resolve().then(function () {
|
|
61
|
-
return require('./translations/ja.json.js');
|
|
62
|
-
}).then(res => res.default),
|
|
63
|
-
[constants.Language.Ar]: () => Promise.resolve().then(function () {
|
|
64
|
-
return require('./translations/ar.json.js');
|
|
65
|
-
}).then(res => res.default),
|
|
66
|
-
[constants.Language.De]: () => Promise.resolve().then(function () {
|
|
67
|
-
return require('./translations/de.json.js');
|
|
68
|
-
}).then(res => res.default),
|
|
69
|
-
[constants.Language.Es]: () => Promise.resolve().then(function () {
|
|
70
|
-
return require('./translations/es.json.js');
|
|
71
|
-
}).then(res => res.default),
|
|
72
|
-
[constants.Language.El]: () => Promise.resolve().then(function () {
|
|
73
|
-
return require('./translations/el.json.js');
|
|
74
|
-
}).then(res => res.default),
|
|
75
|
-
[constants.Language.It]: () => Promise.resolve().then(function () {
|
|
76
|
-
return require('./translations/it.json.js');
|
|
77
|
-
}).then(res => res.default),
|
|
78
|
-
[constants.Language.Pt]: () => Promise.resolve().then(function () {
|
|
79
|
-
return require('./translations/pt-BR.json.js');
|
|
80
|
-
}).then(res => res.default),
|
|
81
|
-
[constants.Language.Zh]: () => Promise.resolve().then(function () {
|
|
82
|
-
return require('./translations/zh-Hans.json.js');
|
|
83
|
-
}).then(res => res.default),
|
|
84
|
-
[constants.Language.Fr]: () => Promise.resolve().then(function () {
|
|
85
|
-
return require('./translations/fr.json.js');
|
|
86
|
-
}).then(res => res.default),
|
|
87
|
-
[constants.Language.Tw]: () => Promise.resolve().then(function () {
|
|
88
|
-
return require('./translations/zh-Hant-TW.json.js');
|
|
89
|
-
}).then(res => res.default)
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
const hiddenFields = react.useMemo(() => {
|
|
93
|
-
return {
|
|
94
|
-
// Merge fields are based on Mailchimp settings
|
|
95
|
-
u: "bc856e62a9254399365d0277b",
|
|
96
|
-
id: "1c1b02cb37",
|
|
97
|
-
MERGE1: customer?.firstName,
|
|
98
|
-
MERGE2: customer?.lastName,
|
|
99
|
-
// Always set the user as residential as we don't have any other type of user
|
|
100
|
-
MERGE4: "Residential (home use)",
|
|
101
|
-
// Always set the user as subscribed to all lists
|
|
102
|
-
MERGE3: "subscribed",
|
|
103
|
-
MERGE7: "subscribed",
|
|
104
|
-
MERGE8: "subscribed",
|
|
105
|
-
// Store region value expected in two fields
|
|
106
|
-
MERGE6: subscribeRegionValue[storeId],
|
|
107
|
-
MERGE9: subscribeRegionValue[storeId]
|
|
108
|
-
};
|
|
109
|
-
}, [customer?.firstName, customer?.lastName, storeId]);
|
|
10
|
+
motif = "light"
|
|
11
|
+
}) {
|
|
12
|
+
const termsContent = footerContent.contentForTerms();
|
|
110
13
|
return /* @__PURE__ */jsxRuntime.jsx(Footer_styles.ContainerWrap, {
|
|
111
14
|
condensed: legalOnly,
|
|
112
|
-
$
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
type: "
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
minLength: 6,
|
|
151
|
-
maxLength: 254,
|
|
152
|
-
required: true,
|
|
153
|
-
autoCapitalize: "off",
|
|
154
|
-
autoCorrect: "off",
|
|
155
|
-
placeholder: formatMessage("footer.newsletter.email"),
|
|
156
|
-
name: "EMAIL"
|
|
157
|
-
}), /* @__PURE__ */jsxRuntime.jsx(Footer_styles.SubmitButton, {
|
|
158
|
-
type: "submit",
|
|
159
|
-
className: motif,
|
|
160
|
-
variant: "primary",
|
|
161
|
-
children: formatMessage("footer.newsletter.subscribe")
|
|
162
|
-
})]
|
|
15
|
+
$darkMode: motif === "dark",
|
|
16
|
+
children: /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.Container, {
|
|
17
|
+
children: [!legalOnly && /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
18
|
+
children: [/* @__PURE__ */jsxRuntime.jsxs(Footer_styles.Wrap, {
|
|
19
|
+
children: [/* @__PURE__ */jsxRuntime.jsx(Footer_styles.ListsWrap, {
|
|
20
|
+
children: Object.values(footerContent.FOOTER_CONTENT).map((list, i) => /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.ListItemWrap, {
|
|
21
|
+
children: [/* @__PURE__ */jsxRuntime.jsxs(Footer_styles.Header, {
|
|
22
|
+
children: [" ", list.header.label]
|
|
23
|
+
}), /* @__PURE__ */jsxRuntime.jsx(Footer_styles.List, {
|
|
24
|
+
children: list.items.map((item, j) => /* @__PURE__ */jsxRuntime.jsx(Footer_styles.ListItem, {
|
|
25
|
+
children: /* @__PURE__ */jsxRuntime.jsx(Footer_styles.ListItemAnchor, {
|
|
26
|
+
href: item.src,
|
|
27
|
+
target: item.target,
|
|
28
|
+
children: item.label
|
|
29
|
+
})
|
|
30
|
+
}, `footer-list-${i}-item-${j}`))
|
|
31
|
+
})]
|
|
32
|
+
}, `footer-list-${i}`))
|
|
33
|
+
}), /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.InnerWrap, {
|
|
34
|
+
children: [/* @__PURE__ */jsxRuntime.jsxs(Footer_styles.Form, {
|
|
35
|
+
method: "post",
|
|
36
|
+
action: "https://ubnt.us8.list-manage.com/subscribe/post?u=bc856e62a9254399365d0277b",
|
|
37
|
+
target: "_blank",
|
|
38
|
+
children: [/* @__PURE__ */jsxRuntime.jsx(Footer_styles.Header, {
|
|
39
|
+
children: "Stay in Touch"
|
|
40
|
+
}), /* @__PURE__ */jsxRuntime.jsx("input", {
|
|
41
|
+
type: "hidden",
|
|
42
|
+
name: "id",
|
|
43
|
+
value: "1c1b02cb37"
|
|
44
|
+
}), /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.InputWrap, {
|
|
45
|
+
children: [/* @__PURE__ */jsxRuntime.jsx(Footer_styles.Input, {
|
|
46
|
+
type: "text",
|
|
47
|
+
placeholder: "Email",
|
|
48
|
+
name: "EMAIL"
|
|
49
|
+
}), /* @__PURE__ */jsxRuntime.jsx(Footer_styles.Button, {
|
|
50
|
+
type: "submit",
|
|
51
|
+
className: motif,
|
|
52
|
+
children: "Subscribe"
|
|
163
53
|
})]
|
|
164
|
-
}), /* @__PURE__ */jsxRuntime.jsx(Footer_styles.IconsWrapper, {
|
|
165
|
-
children: socialContent.items.map(socialItem => /* @__PURE__ */jsxRuntime.jsx(Footer_styles.IconWrapper, {
|
|
166
|
-
href: socialItem.src,
|
|
167
|
-
target: socialItem.target,
|
|
168
|
-
children: socialItem.icon ? /* @__PURE__ */jsxRuntime.jsx("img", {
|
|
169
|
-
src: asset.imageSrc(socialItem.icon),
|
|
170
|
-
alt: socialItem.label
|
|
171
|
-
}) : socialItem.label
|
|
172
|
-
}, `footer-social-link-${socialItem.label}`))
|
|
173
54
|
})]
|
|
55
|
+
}), /* @__PURE__ */jsxRuntime.jsx(Footer_styles.IconsWrapper, {
|
|
56
|
+
children: footerContent.SOCIAL_CONTENT.items.map(socialItem => /* @__PURE__ */jsxRuntime.jsx(Footer_styles.IconWrapper, {
|
|
57
|
+
href: socialItem.src,
|
|
58
|
+
target: socialItem.target,
|
|
59
|
+
children: /* @__PURE__ */jsxRuntime.jsx("img", {
|
|
60
|
+
src: typeof socialItem.icon === "string" ? socialItem.icon : socialItem.icon.src,
|
|
61
|
+
alt: socialItem.label
|
|
62
|
+
})
|
|
63
|
+
}, `footer-social-link-${socialItem.label}`))
|
|
174
64
|
})]
|
|
175
|
-
}), /* @__PURE__ */jsxRuntime.jsx(Footer_styles.Break, {
|
|
176
|
-
$motif: motif
|
|
177
|
-
})]
|
|
178
|
-
}), context$1 === mapping.SiteId.Store && storeAddress && /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
179
|
-
children: [/* @__PURE__ */jsxRuntime.jsx(Footer_styles.StoreAddress, {
|
|
180
|
-
children: storeAddress
|
|
181
|
-
}), /* @__PURE__ */jsxRuntime.jsx(Footer_styles.Break, {
|
|
182
|
-
$motif: motif
|
|
183
65
|
})]
|
|
184
|
-
}), /* @__PURE__ */jsxRuntime.
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
},
|
|
200
|
-
|
|
201
|
-
children: [storePicker, /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.Copyright, {
|
|
202
|
-
children: ["\xA9 ", ( /* @__PURE__ */new Date()).getFullYear(), " ", formatMessage("footer.copyright")]
|
|
66
|
+
}), /* @__PURE__ */jsxRuntime.jsx(Footer_styles.Break, {
|
|
67
|
+
$darkMode: motif === "dark"
|
|
68
|
+
})]
|
|
69
|
+
}), /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.TermsWrap, {
|
|
70
|
+
children: [/* @__PURE__ */jsxRuntime.jsx(Footer_styles.FlexWrap, {
|
|
71
|
+
children: termsContent.items.map((term, i) => term.id === footerContent.FooterLinkId.Cookie ? /* @__PURE__ */jsxRuntime.jsx(Footer_styles.CookieBtn, {
|
|
72
|
+
type: "button",
|
|
73
|
+
id: footerContent.COOKIE_POLICY_BTN_ID,
|
|
74
|
+
className: footerContent.COOKIE_POLICY_BTN_ID_CLASSNAME,
|
|
75
|
+
children: term.label
|
|
76
|
+
}, `footer-term-${term.id}`) : /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.AnchorGroup, {
|
|
77
|
+
children: [/* @__PURE__ */jsxRuntime.jsx(Footer_styles.Anchor, {
|
|
78
|
+
href: term.src,
|
|
79
|
+
target: term.target,
|
|
80
|
+
children: term.label
|
|
81
|
+
}), /* @__PURE__ */jsxRuntime.jsx(Footer_styles.AnchorDivider, {
|
|
82
|
+
children: i !== termsContent.items.length - 1 && "|"
|
|
203
83
|
})]
|
|
204
|
-
})
|
|
84
|
+
}, `footer-term-${term.id}`))
|
|
85
|
+
}), /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.Copyright, {
|
|
86
|
+
children: ["\xA9 ", ( /* @__PURE__ */new Date()).getFullYear(), " Ubiquiti, Inc. All rights reserved."]
|
|
205
87
|
})]
|
|
206
|
-
})
|
|
88
|
+
})]
|
|
207
89
|
})
|
|
208
90
|
});
|
|
209
|
-
};
|
|
91
|
+
});
|
|
210
92
|
exports.Footer = Footer;
|
|
211
93
|
//# sourceMappingURL=Footer.js.map
|