@ubnt/store.core 9.9.0-alpha.9 → 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 -30
- 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/attention.svg +5 -5
- package/lib/assets/attention2.svg +5 -5
- package/lib/assets/close2.svg +3 -2
- package/lib/assets/close3.svg +2 -3
- 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/ucgUltra.jpg +0 -0
- package/lib/assets/ucgUltra2.jpg +0 -0
- package/lib/assets/udmPro.jpg +0 -0
- package/lib/assets/udmPro2.jpg +0 -0
- package/lib/assets/udmProMax.jpg +0 -0
- package/lib/assets/udmProMax2.jpg +0 -0
- package/lib/assets/udmProSpecial.jpg +0 -0
- package/lib/assets/udmProSpecial2.jpg +0 -0
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +1 -1
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +2 -2
- package/lib/components/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 -91
- package/lib/components/Footer/Footer.styles.js.map +1 -1
- package/lib/components/Footer/Footer.styles.mjs +44 -87
- 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/ucgUltra.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.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 +12 -12
- package/lib/components/ModelCompareV3/data/CloudGateways.mjs +8 -8
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +1 -1
- 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 +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +2 -2
- 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/attention.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.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/components/VideoPlayerNew/VideoPlayer.js +1 -1
- package/lib/components/VideoPlayerNew/VideoPlayer.mjs +1 -1
- package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
- package/lib/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
|
@@ -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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Footer.js","sources":["../../../src/components/Footer/Footer.tsx"],"sourcesContent":["import { useMemo } from \"react\";\n\nimport { useMenu } from \"../../contexts/MenuContext\";\nimport { Language, SiteId } from \"../../contexts/MenuContext/mapping\";\nimport { useTranslation } from \"../../hooks\";\nimport { GlobalStoreId } from \"../../types\";\nimport { imageSrc } from \"../../utils/asset\";\nimport { Container } from \"../Container\";\nimport {\n Anchor,\n AnchorDivider,\n AnchorGroup,\n Break,\n ContainerWrap,\n CookieBtn,\n Copyright,\n FlexWrap,\n FlexWrapResponsive,\n Form,\n Header,\n IconsWrapper,\n IconWrapper,\n InnerContainer,\n InnerWrap,\n Input,\n InputWrap,\n List,\n ListItem,\n ListItemAnchor,\n ListItemWrap,\n ListsWrap,\n StoreAddress,\n SubmitButton,\n TermsWrap,\n Wrap,\n} from \"./Footer.styles\";\nimport type { FooterProps } from \"./Footer.types\";\nimport {\n COOKIE_POLICY_BTN_ID,\n COOKIE_POLICY_BTN_ID_CLASSNAME,\n FooterLinkId,\n useFooterContent,\n} from \"./hooks/useFooterContent\";\nimport EN_TRANSLATION from \"./translations/en.json\";\n\n/**\n * NOTE: All commented out code is here because the BE is not implemented yet.\n * BE needs a lot of work to be done but the FE is ready to use the old way\n * of subscribing to the newsletter.\n */\n// const translationKeys = {\n// footerNewsletterError: \"footer.newsletter.error\",\n// } as const;\n\n// const getNewsletterSubscribeErrorCodeTranslationKey = (\n// errorCode?: NewsletterSubscribeErrorCode,\n// ): FooterTranslationKey => {\n// switch (errorCode) {\n// case NewsletterSubscribeErrorCode.MissingEmail:\n// return \"footer.newsletter.error.missingEmail\";\n// case NewsletterSubscribeErrorCode.InvalidEmail:\n// return \"footer.newsletter.error.invalidEmail\";\n// case NewsletterSubscribeErrorCode.TooManyRequests:\n// return \"footer.newsletter.error.tooManyRequests\";\n// // Don't want to show error message about Store ID being invalid because it is added in the background\n// case NewsletterSubscribeErrorCode.InvalidStoreId:\n// case NewsletterSubscribeErrorCode.Generic:\n// return translationKeys.footerNewsletterError;\n// default:\n// return translationKeys.footerNewsletterError;\n// }\n// };\n\n/**\n * Map store ID to Mailchimp region value\n */\nconst subscribeRegionValue = {\n [GlobalStoreId.Us]: \"United States\",\n [GlobalStoreId.Eu]: \"Europe\",\n [GlobalStoreId.Ca]: \"Canada\",\n [GlobalStoreId.Za]: \"South Africa\",\n [GlobalStoreId.Me]: \"Middle East\",\n [GlobalStoreId.Uk]: \"United Kingdom\",\n [GlobalStoreId.In]: \"India\",\n [GlobalStoreId.Sg]: \"Singapore\",\n [GlobalStoreId.Br]: \"Brazil\",\n [GlobalStoreId.Jp]: \"Japan\",\n [GlobalStoreId.Mx]: \"Mexico\",\n [GlobalStoreId.Ph]: \"Philippines\",\n [GlobalStoreId.Tw]: \"Taiwan\",\n [GlobalStoreId.Cn]: \"China\",\n} satisfies Record<GlobalStoreId, string>;\n\nexport const Footer = ({\n legalOnly,\n motif = \"light\",\n id,\n customer,\n storePicker,\n // storeBackendUrl,\n storeAddress,\n className,\n}: FooterProps) => {\n // const formRef = useRef<HTMLFormElement>(null);\n const { storeId, context } = useMenu();\n\n // const [formStatus, setFormStatus] = useState<\n // | {\n // status: FormStatus;\n // message: string;\n // }\n // | undefined\n // >(undefined);\n\n // const [loading, setLoading] = useState<boolean>(false);\n // const [emailValue, setEmailValue] = useState<string>(\"\");\n\n // #############################################################################\n // Content\n // #############################################################################\n const { footerContent, socialContent, termsContent } = useFooterContent();\n\n // #############################################################################\n // Translations\n // #############################################################################\n const { formatMessage } = useTranslation({\n defaultTranslation: EN_TRANSLATION,\n additionalTranslations: {\n [Language.Ja]: () =>\n import(\"./translations/ja.json\").then((res) => res.default),\n [Language.Ar]: () =>\n import(\"./translations/ar.json\").then((res) => res.default),\n [Language.De]: () =>\n import(\"./translations/de.json\").then((res) => res.default),\n [Language.Es]: () =>\n import(\"./translations/es.json\").then((res) => res.default),\n [Language.El]: () =>\n import(\"./translations/el.json\").then((res) => res.default),\n [Language.It]: () =>\n import(\"./translations/it.json\").then((res) => res.default),\n [Language.Pt]: () =>\n import(\"./translations/pt-BR.json\").then((res) => res.default),\n [Language.Zh]: () =>\n import(\"./translations/zh-Hans.json\").then((res) => res.default),\n [Language.Fr]: () =>\n import(\"./translations/fr.json\").then((res) => res.default),\n [Language.Tw]: () =>\n import(\"./translations/zh-Hant-TW.json\").then((res) => res.default),\n },\n });\n\n // #############################################################################\n // Hidden fields\n // #############################################################################\n // const hiddenFields = useMemo(() => {\n // const fields = {\n // ...customer,\n // storeId,\n // };\n\n // return (\n // Object.entries(fields)\n // // Remove empty values\n // .reduce(\n // (acc, [key, value]) => {\n // if (value) {\n // acc[key] = value;\n // }\n\n // return acc;\n // },\n // {} as Record<string, string>,\n // )\n // );\n // }, [customer, storeId]);\n\n const hiddenFields = useMemo(() => {\n return {\n // Merge fields are based on Mailchimp settings\n u: \"bc856e62a9254399365d0277b\",\n id: \"1c1b02cb37\",\n MERGE1: customer?.firstName,\n MERGE2: customer?.lastName,\n // Always set the user as residential as we don't have any other type of user\n MERGE4: \"Residential (home use)\",\n // Always set the user as subscribed to all lists\n MERGE3: \"subscribed\",\n MERGE7: \"subscribed\",\n MERGE8: \"subscribed\",\n // Store region value expected in two fields\n MERGE6: subscribeRegionValue[storeId],\n MERGE9: subscribeRegionValue[storeId],\n };\n }, [customer?.firstName, customer?.lastName, storeId]);\n\n // #############################################################################\n // Newsletter form\n // #############################################################################\n // const handleNewsletterSubmit = useCallback(\n // async (e) => {\n // setLoading(true);\n // setFormStatus(undefined);\n\n // e.preventDefault();\n\n // const data = {\n // email: emailValue,\n // ...hiddenFields,\n // };\n\n // const url = new URL(storeBackendUrl);\n // url.pathname = \"/newsletter/subscribe\";\n\n // try {\n // const response = await fetch(url, {\n // method: \"POST\",\n // body: JSON.stringify(data),\n // headers: {\n // \"Content-Type\": \"application/json\",\n // },\n // });\n\n // const json = (await response.json()) as NewsletterSubscribeResult;\n\n // if (!response.ok) {\n // const errorCode =\n // json?.result === \"error\" ? json?.[\"code\"] : undefined;\n\n // setFormStatus({\n // status: FormStatus.Error,\n // message: formatMessage(\n // getNewsletterSubscribeErrorCodeTranslationKey(errorCode),\n // ),\n // });\n // } else {\n // if (json.result === \"success\") {\n // setFormStatus({\n // status: FormStatus.Success,\n // message: formatMessage(\"footer.newsletter.success\"),\n // });\n\n // formRef.current?.reset();\n // } else {\n // setFormStatus({\n // status: FormStatus.Error,\n // message: getNewsletterSubscribeErrorCodeTranslationKey(\n // json?.[\"code\"],\n // ),\n // });\n // }\n // }\n // } catch (error) {\n // console.error(error);\n // setFormStatus({\n // status: FormStatus.Error,\n // message: formatMessage(translationKeys.footerNewsletterError),\n // });\n // }\n\n // // Reset loading state\n // setLoading(false);\n // },\n // [emailValue, formatMessage, hiddenFields, storeBackendUrl],\n // );\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <ContainerWrap\n condensed={legalOnly}\n $motif={motif}\n // This id is important for injecting sidekick mobile embed styles\n id={id}\n className={className}\n >\n <Container size=\"desktop\" noVerticalMargin>\n <InnerContainer>\n {!legalOnly && (\n <>\n <Wrap>\n <ListsWrap>\n {Object.values(footerContent).map((list, i) => (\n <ListItemWrap key={`footer-list-${i}`}>\n <Header> {list.header.label}</Header>\n <List>\n {list.items.map((item, j) => (\n <ListItem key={`footer-list-${i}-item-${j}`}>\n <ListItemAnchor\n href={item.src}\n target={item.target}\n >\n {item.label}\n </ListItemAnchor>\n </ListItem>\n ))}\n </List>\n </ListItemWrap>\n ))}\n </ListsWrap>\n <InnerWrap>\n <Form\n method=\"get\"\n action=\"https://ui.us8.list-manage.com/subscribe\"\n target=\"_blank\"\n >\n <Header>{formatMessage(\"footer.newsletter.touch\")}</Header>\n\n {/* Hidden fields */}\n {Object.entries(hiddenFields).map(([key, value]) => (\n <input key={key} type=\"hidden\" name={key} value={value} />\n ))}\n\n <InputWrap>\n <Input\n /**\n * According to StackOverflow, using type=\"text\" together\n * with pattern attribute is a better way to validate email\n * addresses than using the `type=\"email\"`.\n * Code below is partly taken old ui.com Footer component.\n * @see https://stackoverflow.com/a/36379040\n */\n type=\"text\"\n pattern=\"[^@\\s]+@[^@\\s]+\\.[^@\\s]+\"\n minLength={6}\n maxLength={254}\n required\n autoCapitalize=\"off\"\n autoCorrect=\"off\"\n placeholder={formatMessage(\"footer.newsletter.email\")}\n name=\"EMAIL\"\n // value={emailValue}\n // onChange={(e) => setEmailValue(e.target.value)}\n // disabled={loading}\n />\n\n <SubmitButton\n type=\"submit\"\n className={motif}\n variant=\"primary\"\n // loading={loading}\n >\n {formatMessage(\"footer.newsletter.subscribe\")}\n </SubmitButton>\n </InputWrap>\n\n {/* {formStatus && (\n <FormMessage $status={formStatus.status}>\n {formStatus.message}\n </FormMessage>\n )} */}\n </Form>\n <IconsWrapper>\n {socialContent.items.map((socialItem) => (\n <IconWrapper\n href={socialItem.src}\n key={`footer-social-link-${socialItem.label}`}\n target={socialItem.target}\n >\n {socialItem.icon ? (\n <img\n src={imageSrc(socialItem.icon)}\n alt={socialItem.label}\n />\n ) : (\n socialItem.label\n )}\n </IconWrapper>\n ))}\n </IconsWrapper>\n </InnerWrap>\n </Wrap>\n <Break $motif={motif} />\n </>\n )}\n {/**\n * Some stores have an extra row with a non-translated hardcoded address\n */}\n {context === SiteId.Store && storeAddress && (\n <>\n <StoreAddress>{storeAddress}</StoreAddress>\n <Break $motif={motif} />\n </>\n )}\n\n <TermsWrap>\n <FlexWrap>\n {termsContent.items.map((term, i) => (\n <AnchorGroup key={`footer-term-${term.id}`}>\n {term.id === FooterLinkId.Cookie ? (\n <CookieBtn\n type=\"button\"\n id={COOKIE_POLICY_BTN_ID}\n className={COOKIE_POLICY_BTN_ID_CLASSNAME}\n key={`footer-term-${term.id}`}\n >\n {term.label}\n </CookieBtn>\n ) : (\n <Anchor href={term.src} target={term.target}>\n {term.label}\n </Anchor>\n )}\n <AnchorDivider>\n {i !== termsContent.items.length - 1 && \"|\"}\n </AnchorDivider>\n </AnchorGroup>\n ))}\n </FlexWrap>\n\n <FlexWrapResponsive>\n {/**\n * Renders store picker component if provided (needed only in SF)\n */}\n {storePicker}\n\n <Copyright>\n © {new Date().getFullYear()}{\" \"}\n {formatMessage(\"footer.copyright\")}\n </Copyright>\n </FlexWrapResponsive>\n </TermsWrap>\n </InnerContainer>\n </Container>\n </ContainerWrap>\n );\n};\n"],"names":["subscribeRegionValue","GlobalStoreId","Us","Eu","Ca","Za","Me","Uk","In","Sg","Br","Jp","Mx","Ph","Tw","Cn","Footer","legalOnly","motif","id","customer","storePicker","storeAddress","className","storeId","context","useMenu","footerContent","socialContent","termsContent","useFooterContent","formatMessage","useTranslation","defaultTranslation","EN_TRANSLATION","additionalTranslations","Language","Ja","Promise","then","res","default","Ar","De","Es","El","It","Pt","Zh","Fr","hiddenFields","useMemo","u","MERGE1","firstName","MERGE2","lastName","MERGE4","MERGE3","MERGE7","MERGE8","MERGE6","MERGE9","jsx","ContainerWrap","condensed","$motif","children","Container","size","noVerticalMargin","InnerContainer","jsxs","Fragment","Wrap","ListsWrap","Object","values","map","list","i","ListItemWrap","Header","header","label","List","items","item","j","ListItem","ListItemAnchor","href","src","target","InnerWrap","Form","method","action","entries","key","value","type","name","InputWrap","Input","pattern","minLength","maxLength","required","autoCapitalize","autoCorrect","placeholder","SubmitButton","variant","IconsWrapper","socialItem","IconWrapper","icon","imageSrc","alt","Break","SiteId","Store","StoreAddress","TermsWrap","FlexWrap","term","AnchorGroup","FooterLinkId","Cookie","CookieBtn","COOKIE_POLICY_BTN_ID","COOKIE_POLICY_BTN_ID_CLASSNAME","Anchor","AnchorDivider","length","Flex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EAAA;gBACC7B,IAAK,EAAA,QAAA;gBACLlF,EAAI,EAAAgH,gBAAA,CAAAA,oBAAA;gBACJ5G,SAAW,EAAA6G,gBAAA,CAAAA,8BAAA;gBAGVjE,QAAK,EAAA2D,IAAA,CAAA1C;cAAA,CAAA,EAFD,eAAe0C,KAAK3G,EAAE,EAG7B,CAAA,GAAA,eAEC4C,UAAA,CAAAA,GAAA,CAAAsE,aAAA,CAAAA,MAAA,EAAA;gBAAO1C,IAAM,EAAAmC,IAAA,CAAKlC;gBAAKC,MAAQ,EAAAiC,IAAA,CAAKjC,MAClC;gBAAA1B,QAAA,EAAA2D,IAAA,CAAK1C;cACR,CAAA,CAAA,EAAA,8BAEDkD,aAAAA,CAAAA,aACE,EAAA;gBAAAnE,QAAA,EAAAa,CAAA,KAAMnD,aAAayD,KAAM,CAAAiD,MAAA,GAAS,KAAK;eAC1C,CAAA;YAAA,CAAA,EAjB+B,eAAAT,IAAA,CAAK3G,EAAE,EAkBxC,CACD;WACH,CAAA,EAAA,+BAECqH,aAAAA,CAAAA,kBAIE,EAAA;YAAArE,QAAA,EAAA,CAAA9C,WAAA,EAAA,+BAEAoH,aAAAA,CAAAA,SAAU,EAAA;cAAAtE,QAAA,EAAA,CAAA,OAAA,EACN,iBAAA,IAAIuE,IAAK,CAAA,CAAA,EAAEC,WAAY,CAAA,CAAA,EAAG,GAAA,EAC5B5G,cAAc,kBAAkB,CAAA;aACnC,CAAA;WACF,CAAA;SACF,CAAA;MAAA,CACF;IACF,CAAA;EAAA,CAAA,CACF;AAEJ,CAAA;"}
|
|
1
|
+
{"version":3,"file":"Footer.js","sources":["../../../src/components/Footer/Footer.tsx"],"sourcesContent":["import { memo } from \"react\";\n\nimport {\n contentForTerms,\n COOKIE_POLICY_BTN_ID,\n COOKIE_POLICY_BTN_ID_CLASSNAME,\n FOOTER_CONTENT,\n FooterLinkId,\n SOCIAL_CONTENT,\n} from \"../../constants/footerContent\";\nimport {\n Anchor,\n AnchorDivider,\n AnchorGroup,\n Break,\n Button,\n Container,\n ContainerWrap,\n CookieBtn,\n Copyright,\n FlexWrap,\n Form,\n Header,\n IconsWrapper,\n IconWrapper,\n InnerWrap,\n Input,\n InputWrap,\n List,\n ListItem,\n ListItemAnchor,\n ListItemWrap,\n ListsWrap,\n TermsWrap,\n Wrap,\n} from \"./Footer.styles\";\nimport type { FooterProps } from \"./Footer.types\";\n\nexport const Footer = memo(function Footer({\n legalOnly,\n motif = \"light\",\n}: FooterProps) {\n const termsContent = contentForTerms();\n\n return (\n <ContainerWrap condensed={legalOnly} $darkMode={motif === \"dark\"}>\n <Container>\n {!legalOnly && (\n <>\n <Wrap>\n <ListsWrap>\n {Object.values(FOOTER_CONTENT).map((list, i) => (\n <ListItemWrap key={`footer-list-${i}`}>\n <Header> {list.header.label}</Header>\n <List>\n {list.items.map((item, j) => (\n <ListItem key={`footer-list-${i}-item-${j}`}>\n <ListItemAnchor href={item.src} target={item.target}>\n {item.label}\n </ListItemAnchor>\n </ListItem>\n ))}\n </List>\n </ListItemWrap>\n ))}\n </ListsWrap>\n <InnerWrap>\n <Form\n method=\"post\"\n action=\"https://ubnt.us8.list-manage.com/subscribe/post?u=bc856e62a9254399365d0277b\"\n target=\"_blank\"\n >\n <Header>Stay in Touch</Header>\n {/* Hidden field for Audience ID */}\n <input type=\"hidden\" name=\"id\" value=\"1c1b02cb37\" />\n\n <InputWrap>\n <Input type=\"text\" placeholder={\"Email\"} name=\"EMAIL\" />\n <Button type=\"submit\" className={motif}>\n Subscribe\n </Button>\n </InputWrap>\n </Form>\n <IconsWrapper>\n {SOCIAL_CONTENT.items.map((socialItem) => (\n <IconWrapper\n href={socialItem.src}\n key={`footer-social-link-${socialItem.label}`}\n target={socialItem.target}\n >\n {/* eslint-disable-next-line @next/next/no-img-element */}\n <img\n src={\n typeof socialItem.icon === \"string\"\n ? socialItem.icon\n : socialItem.icon.src\n }\n alt={socialItem.label}\n />\n </IconWrapper>\n ))}\n </IconsWrapper>\n </InnerWrap>\n </Wrap>\n <Break $darkMode={motif === \"dark\"} />\n </>\n )}\n\n <TermsWrap>\n <FlexWrap>\n {termsContent.items.map((term, i) =>\n term.id === FooterLinkId.Cookie ? (\n <CookieBtn\n type=\"button\"\n id={COOKIE_POLICY_BTN_ID}\n className={COOKIE_POLICY_BTN_ID_CLASSNAME}\n key={`footer-term-${term.id}`}\n >\n {term.label}\n </CookieBtn>\n ) : (\n <AnchorGroup key={`footer-term-${term.id}`}>\n <Anchor href={term.src} target={term.target}>\n {term.label}\n </Anchor>\n <AnchorDivider>\n {i !== termsContent.items.length - 1 && \"|\"}\n </AnchorDivider>\n </AnchorGroup>\n ),\n )}\n </FlexWrap>\n\n <Copyright>\n © {new Date().getFullYear()} Ubiquiti, Inc. All rights reserved.\n </Copyright>\n </TermsWrap>\n </Container>\n </ContainerWrap>\n );\n});\n"],"names":["Footer","memo","Footer2","legalOnly","motif","termsContent","contentForTerms","jsx","ContainerWrap","condensed","$darkMode","children","Container","jsxs","Fragment","Wrap","ListsWrap","Object","values","FOOTER_CONTENT","map","list","i","ListItemWrap","Header","header","label","List","items","item","j","ListItem","ListItemAnchor","href","src","target","InnerWrap","Form","method","action","type","name","value","InputWrap","Input","placeholder","Button","className","IconsWrapper","SOCIAL_CONTENT","socialItem","IconWrapper","icon","alt","Break","TermsWrap","FlexWrap","term","id","FooterLinkId","Cookie","CookieBtn","COOKIE_POLICY_BTN_ID","COOKIE_POLICY_BTN_ID_CLASSNAME","AnchorGroup","Anchor","AnchorDivider","length","Copyright","Date","getFullYear"],"mappings":";;;;;;;AAsCa,MAAAA,MAAA,GAASC,KAAAA,CAAAA,IAAK,CAAA,SAASD,OAAOE,CAAA;EACzCC,SAAA;EACAC,KAAQ,GAAA;AACV,CAAgB,EAAA;EACd,MAAMC,eAAeC,aAAAA,CAAAA,eAAgB,EAAA;EAGnC,OAAA,eAAAC,UAAA,CAAAA,GAAA,CAACC;IAAcC,SAAW,EAAAN,SAAA;IAAWO,WAAWN,KAAU,KAAA,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