@ubnt/store.core 9.9.0 → 9.10.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 +9 -0
- package/lib/_virtual/_virtual_multi-entry.js +18 -2
- package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
- package/lib/_virtual/_virtual_multi-entry.mjs +4 -0
- package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
- package/lib/assets/clock.svg +4 -0
- package/lib/assets/close2.svg +3 -2
- package/lib/assets/close3.svg +2 -3
- package/lib/assets/packets.svg +3 -0
- package/lib/assets/pause.svg +3 -3
- package/lib/assets/pause2.svg +3 -3
- package/lib/assets/socialMedia/{twitter.svg.js → x.svg.js} +6 -6
- package/lib/assets/socialMedia/x.svg.js.map +1 -0
- package/lib/assets/socialMedia/x.svg.mjs +3 -0
- package/lib/assets/socialMedia/x.svg.mjs.map +1 -0
- package/lib/assets/ucgMax.jpg +0 -0
- package/lib/assets/ucgMax2.jpg +0 -0
- package/lib/assets/ucgUltra.jpg +0 -0
- package/lib/assets/ucgUltra2.jpg +0 -0
- package/lib/assets/udmPro.jpg +0 -0
- package/lib/assets/udmPro2.jpg +0 -0
- package/lib/assets/udmProMax.jpg +0 -0
- package/lib/assets/udmProMax2.jpg +0 -0
- package/lib/assets/udmProSpecial.jpg +0 -0
- package/lib/assets/udmProSpecial2.jpg +0 -0
- package/lib/assets/x.svg +3 -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 +192 -74
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/Footer.mjs +174 -76
- package/lib/components/Footer/Footer.mjs.map +1 -1
- package/lib/components/Footer/Footer.styles.d.ts +17 -5
- package/lib/components/Footer/Footer.styles.js +99 -48
- package/lib/components/Footer/Footer.styles.js.map +1 -1
- package/lib/components/Footer/Footer.styles.mjs +95 -48
- package/lib/components/Footer/Footer.styles.mjs.map +1 -1
- package/lib/components/Footer/Footer.types.d.ts +40 -0
- package/lib/components/Footer/Footer.types.js +16 -0
- package/lib/components/Footer/Footer.types.js.map +1 -1
- package/lib/components/Footer/Footer.types.mjs +15 -0
- package/lib/components/Footer/Footer.types.mjs.map +1 -1
- package/lib/components/Footer/hooks/useFooterContent.d.ts +94 -0
- package/lib/components/Footer/hooks/useFooterContent.js +384 -0
- package/lib/components/Footer/hooks/useFooterContent.js.map +1 -0
- package/lib/components/Footer/hooks/useFooterContent.mjs +348 -0
- package/lib/components/Footer/hooks/useFooterContent.mjs.map +1 -0
- package/lib/components/Footer/index.js +3 -1
- package/lib/components/Footer/index.js.map +1 -1
- package/lib/components/Footer/index.mjs +1 -1
- package/lib/components/Footer/translations/ar.json.js +47 -0
- package/lib/components/Footer/translations/ar.json.js.map +1 -0
- package/lib/components/Footer/translations/ar.json.mjs +42 -0
- package/lib/components/Footer/translations/ar.json.mjs.map +1 -0
- package/lib/components/Footer/translations/de.json.js +47 -0
- package/lib/components/Footer/translations/de.json.js.map +1 -0
- package/lib/components/Footer/translations/de.json.mjs +42 -0
- package/lib/components/Footer/translations/de.json.mjs.map +1 -0
- package/lib/components/Footer/translations/el.json.js +47 -0
- package/lib/components/Footer/translations/el.json.js.map +1 -0
- package/lib/components/Footer/translations/el.json.mjs +42 -0
- package/lib/components/Footer/translations/el.json.mjs.map +1 -0
- package/lib/components/Footer/translations/en.json.js +46 -0
- package/lib/components/Footer/translations/en.json.js.map +1 -0
- package/lib/components/Footer/translations/en.json.mjs +41 -0
- package/lib/components/Footer/translations/en.json.mjs.map +1 -0
- package/lib/components/Footer/translations/es.json.js +47 -0
- package/lib/components/Footer/translations/es.json.js.map +1 -0
- package/lib/components/Footer/translations/es.json.mjs +42 -0
- package/lib/components/Footer/translations/es.json.mjs.map +1 -0
- package/lib/components/Footer/translations/fr.json.js +47 -0
- package/lib/components/Footer/translations/fr.json.js.map +1 -0
- package/lib/components/Footer/translations/fr.json.mjs +42 -0
- package/lib/components/Footer/translations/fr.json.mjs.map +1 -0
- package/lib/components/Footer/translations/it.json.js +47 -0
- package/lib/components/Footer/translations/it.json.js.map +1 -0
- package/lib/components/Footer/translations/it.json.mjs +42 -0
- package/lib/components/Footer/translations/it.json.mjs.map +1 -0
- package/lib/components/Footer/translations/ja.json.js +47 -0
- package/lib/components/Footer/translations/ja.json.js.map +1 -0
- package/lib/components/Footer/translations/ja.json.mjs +42 -0
- package/lib/components/Footer/translations/ja.json.mjs.map +1 -0
- package/lib/components/Footer/translations/pt-BR.json.js +47 -0
- package/lib/components/Footer/translations/pt-BR.json.js.map +1 -0
- package/lib/components/Footer/translations/pt-BR.json.mjs +42 -0
- package/lib/components/Footer/translations/pt-BR.json.mjs.map +1 -0
- package/lib/components/Footer/translations/zh-Hans.json.js +47 -0
- package/lib/components/Footer/translations/zh-Hans.json.js.map +1 -0
- package/lib/components/Footer/translations/zh-Hans.json.mjs +42 -0
- package/lib/components/Footer/translations/zh-Hans.json.mjs.map +1 -0
- package/lib/components/Footer/translations/zh-Hant-TW.json.js +47 -0
- package/lib/components/Footer/translations/zh-Hant-TW.json.js.map +1 -0
- package/lib/components/Footer/translations/zh-Hant-TW.json.mjs +42 -0
- package/lib/components/Footer/translations/zh-Hant-TW.json.mjs.map +1 -0
- package/lib/components/Header/AccountMenu/AccountMenu.js +6 -3
- package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
- package/lib/components/Header/AccountMenu/AccountMenu.mjs +6 -3
- package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.d.ts +1 -1
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.js +19 -11
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.js.map +1 -1
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.mjs +19 -11
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.mjs.map +1 -1
- package/lib/components/Header/Navigation/MicrositeMenu/mapping.js +4 -0
- package/lib/components/Header/Navigation/MicrositeMenu/mapping.js.map +1 -1
- package/lib/components/Header/Navigation/MicrositeMenu/mapping.mjs +4 -0
- package/lib/components/Header/Navigation/MicrositeMenu/mapping.mjs.map +1 -1
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js +11 -6
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js.map +1 -1
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.mjs +11 -6
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.mjs.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +8 -4
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +8 -4
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
- package/lib/components/Header/translations/ar.json.js +37 -34
- package/lib/components/Header/translations/ar.json.js.map +1 -1
- package/lib/components/Header/translations/ar.json.mjs +37 -35
- package/lib/components/Header/translations/ar.json.mjs.map +1 -1
- package/lib/components/Header/translations/de.json.js +37 -34
- package/lib/components/Header/translations/de.json.js.map +1 -1
- package/lib/components/Header/translations/de.json.mjs +37 -35
- package/lib/components/Header/translations/de.json.mjs.map +1 -1
- package/lib/components/Header/translations/el.json.js +37 -34
- package/lib/components/Header/translations/el.json.js.map +1 -1
- package/lib/components/Header/translations/el.json.mjs +37 -35
- package/lib/components/Header/translations/el.json.mjs.map +1 -1
- package/lib/components/Header/translations/en.json.js +36 -33
- package/lib/components/Header/translations/en.json.js.map +1 -1
- package/lib/components/Header/translations/en.json.mjs +36 -34
- package/lib/components/Header/translations/en.json.mjs.map +1 -1
- package/lib/components/Header/translations/es.json.js +37 -34
- package/lib/components/Header/translations/es.json.js.map +1 -1
- package/lib/components/Header/translations/es.json.mjs +37 -35
- package/lib/components/Header/translations/es.json.mjs.map +1 -1
- package/lib/components/Header/translations/fr.json.js +37 -34
- package/lib/components/Header/translations/fr.json.js.map +1 -1
- package/lib/components/Header/translations/fr.json.mjs +37 -35
- package/lib/components/Header/translations/fr.json.mjs.map +1 -1
- package/lib/components/Header/translations/it.json.js +37 -34
- package/lib/components/Header/translations/it.json.js.map +1 -1
- package/lib/components/Header/translations/it.json.mjs +37 -35
- package/lib/components/Header/translations/it.json.mjs.map +1 -1
- package/lib/components/Header/translations/ja.json.js +37 -34
- package/lib/components/Header/translations/ja.json.js.map +1 -1
- package/lib/components/Header/translations/ja.json.mjs +37 -35
- package/lib/components/Header/translations/ja.json.mjs.map +1 -1
- package/lib/components/Header/translations/pt-BR.json.js +37 -34
- package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
- package/lib/components/Header/translations/pt-BR.json.mjs +37 -35
- package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
- package/lib/components/Header/translations/zh-Hans.json.js +37 -34
- package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
- package/lib/components/Header/translations/zh-Hans.json.mjs +37 -35
- package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.js +37 -34
- package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.mjs +37 -35
- package/lib/components/Header/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +1 -1
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.mjs +1 -1
- package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.js +1 -1
- package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/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/ucgMax.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/clock.svg.js +27 -0
- package/lib/components/ModelCompareV3/assets/clock.svg.js.map +1 -0
- package/lib/components/ModelCompareV3/assets/clock.svg.mjs +3 -0
- package/lib/components/ModelCompareV3/assets/clock.svg.mjs.map +1 -0
- package/lib/components/ModelCompareV3/assets/packets.svg.js +27 -0
- package/lib/components/ModelCompareV3/assets/packets.svg.js.map +1 -0
- package/lib/components/ModelCompareV3/assets/packets.svg.mjs +3 -0
- package/lib/components/ModelCompareV3/assets/packets.svg.mjs.map +1 -0
- package/lib/components/ModelCompareV3/data/CloudGateways.js +15 -15
- package/lib/components/ModelCompareV3/data/CloudGateways.mjs +10 -10
- package/lib/components/ModelCompareV3/data/products/ucgMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +1 -1
- 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/ModelCompareV3/data/products/waveApMicro.js +2 -2
- package/lib/components/ModelCompareV3/data/products/waveApMicro.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveApMicro.mjs +2 -2
- package/lib/components/ModelCompareV3/data/products/waveApMicro.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/wavePro.js +2 -2
- package/lib/components/ModelCompareV3/data/products/wavePro.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/wavePro.mjs +2 -2
- package/lib/components/ModelCompareV3/data/products/wavePro.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/properties/swivelLatency.js +2 -2
- package/lib/components/ModelCompareV3/data/properties/swivelLatency.js.map +1 -1
- package/lib/components/ModelCompareV3/data/properties/swivelLatency.mjs +2 -2
- package/lib/components/ModelCompareV3/data/properties/swivelLatency.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/properties/swivelPackets.js +2 -2
- package/lib/components/ModelCompareV3/data/properties/swivelPackets.js.map +1 -1
- package/lib/components/ModelCompareV3/data/properties/swivelPackets.mjs +2 -2
- package/lib/components/ModelCompareV3/data/properties/swivelPackets.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/properties/swivelSpectralEfficiency.js +2 -2
- package/lib/components/ModelCompareV3/data/properties/swivelSpectralEfficiency.js.map +1 -1
- package/lib/components/ModelCompareV3/data/properties/swivelSpectralEfficiency.mjs +2 -2
- package/lib/components/ModelCompareV3/data/properties/swivelSpectralEfficiency.mjs.map +1 -1
- package/lib/components/VideoPlayerNew/VideoPlayer.js +2 -2
- package/lib/components/VideoPlayerNew/VideoPlayer.mjs +2 -2
- package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
- package/lib/components/VideoPlayerNew/assets/pause.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/pause.svg.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 +41 -0
- package/lib/contexts/MenuContext/mapping.js.map +1 -1
- package/lib/contexts/MenuContext/mapping.mjs +41 -0
- 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 +1 -0
- package/lib/utils/index.js +2 -0
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/index.mjs +2 -0
- package/lib/utils/index.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/typeGuards.d.ts +1 -0
- package/lib/utils/typeGuards.js +6 -0
- package/lib/utils/typeGuards.js.map +1 -0
- package/lib/utils/typeGuards.mjs +5 -0
- package/lib/utils/typeGuards.mjs.map +1 -0
- package/package.json +1 -1
- package/lib/assets/socialMedia/twitter.svg.js.map +0 -1
- package/lib/assets/socialMedia/twitter.svg.mjs +0 -3
- package/lib/assets/socialMedia/twitter.svg.mjs.map +0 -1
- package/lib/assets/twitter.svg +0 -3
- package/lib/constants/footerContent.d.ts +0 -145
- package/lib/constants/footerContent.js +0 -313
- package/lib/constants/footerContent.js.map +0 -1
- package/lib/constants/footerContent.mjs +0 -293
- package/lib/constants/footerContent.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,15 @@
|
|
|
6
6
|
|
|
7
7
|
## Releases
|
|
8
8
|
|
|
9
|
+
### 9.10.0
|
|
10
|
+
|
|
11
|
+
- [Feat] [MIC-167](https://ubiquiti.atlassian.net/browse/MIC-167) Revive Footer component for shared usage between projects
|
|
12
|
+
|
|
13
|
+
### 9.9.1
|
|
14
|
+
|
|
15
|
+
- [Fix] [MIC-315](https://ubiquiti.atlassian.net/browse/MIC-315) Fix product links for UISP compare tables and update property icons
|
|
16
|
+
- [Fix] [NEP-3353](https://ubiquiti.atlassian.net/browse/NEP-3353) Hide menu items that are not available in India
|
|
17
|
+
|
|
9
18
|
### 9.9.0
|
|
10
19
|
|
|
11
20
|
- [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,13 +87,15 @@ 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');
|
|
94
|
+
var storeId = require('../utils/storeId.js');
|
|
93
95
|
var index$V = require('../constants/proStoreCategories/index.js');
|
|
94
96
|
var index$W = require('../constants/proStoreFilters/index.js');
|
|
95
97
|
var proStoreCategories = require('../helpers/proStoreCategories.js');
|
|
98
|
+
var product$2 = require('../helpers/product.js');
|
|
96
99
|
var smartcat = require('../apis/smartcat.js');
|
|
97
100
|
exports.Avatar = index;
|
|
98
101
|
exports.Button = index$1;
|
|
@@ -166,6 +169,7 @@ exports.Unit = generated.Unit;
|
|
|
166
169
|
exports.UnitSystem = generated.UnitSystem;
|
|
167
170
|
exports.UserAssignedCountryCode = generated.UserAssignedCountryCode;
|
|
168
171
|
exports.ValidateTaxStatus = generated.ValidateTaxStatus;
|
|
172
|
+
exports.DisplayProductStatus = product.DisplayProductStatus;
|
|
169
173
|
exports.url = url;
|
|
170
174
|
exports.money = misc;
|
|
171
175
|
exports.number = number;
|
|
@@ -183,10 +187,11 @@ exports.measures = measures;
|
|
|
183
187
|
exports.errors = errors;
|
|
184
188
|
exports.tags = tags;
|
|
185
189
|
exports.wattage = wattage;
|
|
186
|
-
exports.product = product;
|
|
190
|
+
exports.product = product$1;
|
|
187
191
|
exports.asset = asset;
|
|
188
192
|
exports.imageOptimizer = imageOptimizer;
|
|
189
193
|
exports.styles = styles;
|
|
194
|
+
exports.storeId = storeId;
|
|
190
195
|
exports.proStoreCategories = index$V;
|
|
191
196
|
exports.proStoreFilters = index$W;
|
|
192
197
|
exports.getCategoriesBySubcategory = proStoreCategories.getCategoriesBySubcategory;
|
|
@@ -197,5 +202,16 @@ exports.getSubCategoryIdByCollectionSlug = proStoreCategories.getSubCategoryIdBy
|
|
|
197
202
|
exports.isValidSubCategory = proStoreCategories.isValidSubCategory;
|
|
198
203
|
exports.parseCategories = proStoreCategories.parseCategories;
|
|
199
204
|
exports.useTranslatedCategories = proStoreCategories.useTranslatedCategories;
|
|
205
|
+
exports.COLLECTION_SECTION_OTHER_ID = product$2.COLLECTION_SECTION_OTHER_ID;
|
|
206
|
+
exports.HDDProductSlugs = product$2.HDDProductSlugs;
|
|
207
|
+
exports.MagicCollectionTags = product$2.MagicCollectionTags;
|
|
208
|
+
exports.ProductOptions = product$2.ProductOptions;
|
|
209
|
+
exports.createSectionHierarchy = product$2.createSectionHierarchy;
|
|
210
|
+
exports.getProStoreCategory = product$2.getProStoreCategory;
|
|
211
|
+
exports.getProductGroups = product$2.getProductGroups;
|
|
212
|
+
exports.getStoreProducts = product$2.getStoreProducts;
|
|
213
|
+
exports.isNonNullish = product$2.isNonNullish;
|
|
214
|
+
exports.removeExcludedProducts = product$2.removeExcludedProducts;
|
|
215
|
+
exports.sortCollections = product$2.sortCollections;
|
|
200
216
|
exports.smartcat = smartcat;
|
|
201
217
|
//# 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,11 +165,14 @@ import * as imageOptimizer from '../utils/imageOptimizer.mjs';
|
|
|
164
165
|
export { imageOptimizer };
|
|
165
166
|
import * as styles from '../utils/styles.mjs';
|
|
166
167
|
export { styles };
|
|
168
|
+
import * as storeId from '../utils/storeId.mjs';
|
|
169
|
+
export { storeId };
|
|
167
170
|
import * as index$V from '../constants/proStoreCategories/index.mjs';
|
|
168
171
|
export { index$V as proStoreCategories };
|
|
169
172
|
import * as index$W from '../constants/proStoreFilters/index.mjs';
|
|
170
173
|
export { index$W as proStoreFilters };
|
|
171
174
|
export { getCategoriesBySubcategory, getLocalizedCategories, getProductLineByCategory, getProductLineBySubcategory, getSubCategoryIdByCollectionSlug, isValidSubCategory, parseCategories, useTranslatedCategories } from '../helpers/proStoreCategories.mjs';
|
|
175
|
+
export { COLLECTION_SECTION_OTHER_ID, HDDProductSlugs, MagicCollectionTags, ProductOptions, createSectionHierarchy, getProStoreCategory, getProductGroups, getStoreProducts, isNonNullish, removeExcludedProducts, sortCollections } from '../helpers/product.mjs';
|
|
172
176
|
import * as smartcat from '../apis/smartcat.mjs';
|
|
173
177
|
export { smartcat };
|
|
174
178
|
//# sourceMappingURL=_virtual_multi-entry.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_virtual_multi-entry.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"_virtual_multi-entry.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M17.5089 19.8045C17.8014 20.0985 18.2739 20.0985 18.5664 19.8045C18.8604 19.512 18.8604 19.038 18.5679 18.744L15.7089 15.8775V8.25C15.7089 8.043 15.6249 7.8555 15.4899 7.719C15.3534 7.584 15.1674 7.5 14.9604 7.5C14.5464 7.5 14.2119 7.836 14.2119 8.25V16.4985L17.5089 19.8045Z" fill="#212124"/>
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M3 15C3 8.373 8.373 3 15 3C21.627 3 27 8.373 27 15C27 21.627 21.627 27 15 27C8.373 27 3 21.627 3 15ZM25.5 15C25.5 9.21 20.79 4.5 15 4.5C9.21 4.5 4.5 9.21 4.5 15C4.5 20.79 9.21 25.5 15 25.5C20.79 25.5 25.5 20.79 25.5 15Z" fill="#212124"/>
|
|
4
|
+
</svg>
|
package/lib/assets/close2.svg
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none"
|
|
2
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.2175 18.6475C4.9275 18.9375 4.9275 19.4175 5.2175 19.7075C5.5075 19.9975 5.9875 19.9975 6.2775 19.7075L12.4675 13.5175L18.6575 19.7075C18.9475 19.9975 19.4275 19.9975 19.7175 19.7075C20.0075 19.4175 20.0075 18.9375 19.7175 18.6475L13.5275 12.4675L19.7175 6.2775C20.0075 5.9875 20.0075 5.5075 19.7175 5.2175C19.4275 4.9275 18.9475 4.9275 18.6575 5.2175L12.4675 11.4075L6.2775 5.2175C5.9875 4.9275 5.5075 4.9275 5.2175 5.2175C4.9275 5.5075 4.9275 5.9875 5.2175 6.2775L11.4075 12.4675L5.2175 18.6475Z" fill="currentColor"/>
|
|
3
4
|
</svg>
|
package/lib/assets/close3.svg
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
|
|
3
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.2175 18.6475C4.9275 18.9375 4.9275 19.4175 5.2175 19.7075C5.5075 19.9975 5.9875 19.9975 6.2775 19.7075L12.4675 13.5175L18.6575 19.7075C18.9475 19.9975 19.4275 19.9975 19.7175 19.7075C20.0075 19.4175 20.0075 18.9375 19.7175 18.6475L13.5275 12.4675L19.7175 6.2775C20.0075 5.9875 20.0075 5.5075 19.7175 5.2175C19.4275 4.9275 18.9475 4.9275 18.6575 5.2175L12.4675 11.4075L6.2775 5.2175C5.9875 4.9275 5.5075 4.9275 5.2175 5.2175C4.9275 5.5075 4.9275 5.9875 5.2175 6.2775L11.4075 12.4675L5.2175 18.6475Z" fill="currentColor"/>
|
|
1
|
+
<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.7175 18.6475C5.4275 18.9375 5.4275 19.4175 5.7175 19.7075C6.0075 19.9975 6.4875 19.9975 6.7775 19.7075L12.9675 13.5175L19.1575 19.7075C19.4475 19.9975 19.9275 19.9975 20.2175 19.7075C20.5075 19.4175 20.5075 18.9375 20.2175 18.6475L14.0275 12.4675L20.2175 6.2775C20.5075 5.9875 20.5075 5.5075 20.2175 5.2175C19.9275 4.9275 19.4475 4.9275 19.1575 5.2175L12.9675 11.4075L6.7775 5.2175C6.4875 4.9275 6.0075 4.9275 5.7175 5.2175C5.4275 5.5075 5.4275 5.9875 5.7175 6.2775L11.9075 12.4675L5.7175 18.6475Z" fill="#36373C"/>
|
|
4
3
|
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M20.2501 6H2.99999L2.99999 12.545H4.87498V11.9759C4.87498 11.0094 5.6305 10.226 6.56248 10.226H20.2501V6ZM21.75 10.226V6C21.75 5.17157 21.0785 4.5 20.2501 4.5H2.99999C2.17157 4.5 1.5 5.17157 1.5 6V12.545C1.5 13.3734 2.17157 14.045 2.99999 14.045H4.87498V18.0211C4.87498 18.9875 5.6305 19.771 6.56248 19.771H8.24996V23.7501C8.24996 24.7165 9.00548 25.5 9.93746 25.5H26.8125C27.7445 25.5 28.5 24.7165 28.5 23.7501V17.7049C28.5 16.7385 27.7445 15.955 26.8125 15.955H25.125V11.9759C25.125 11.0094 24.3695 10.226 23.4375 10.226H21.75ZM23.4375 11.9759V15.955H9.93746C9.00548 15.955 8.24996 16.7385 8.24996 17.7049V18.0211H6.56248L6.56248 11.9759H23.4375ZM9.93746 17.7049H26.8125V23.7501H9.93746V17.7049Z" fill="#212124"/>
|
|
3
|
+
</svg>
|
package/lib/assets/pause.svg
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<rect x="
|
|
3
|
-
<rect x="
|
|
1
|
+
<svg width="13" height="17" viewBox="0 0 13 17" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect x="0.232422" width="4" height="17" rx="2" fill="#393A3F"/>
|
|
3
|
+
<rect x="8.23242" width="4" height="17" rx="2" fill="#393A3F"/>
|
|
4
4
|
</svg>
|
package/lib/assets/pause2.svg
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<rect x="
|
|
3
|
-
<rect x="
|
|
1
|
+
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect x="6" y="3" width="3" height="16" rx="1.5" fill="#393A3F"/>
|
|
3
|
+
<rect x="12" y="3" width="3" height="16" rx="1.5" fill="#393A3F"/>
|
|
4
4
|
</svg>
|
|
@@ -3,25 +3,25 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var
|
|
6
|
+
var XIcon = require("../x.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 XIcon__default = /*#__PURE__*/_interopDefault(XIcon);
|
|
13
13
|
Object.defineProperty(exports, "default", {
|
|
14
14
|
enumerable: true,
|
|
15
15
|
get: function () {
|
|
16
|
-
return
|
|
16
|
+
return XIcon__default["default"];
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
Object.keys(
|
|
19
|
+
Object.keys(XIcon).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 XIcon[k];
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
});
|
|
27
|
-
//# sourceMappingURL=
|
|
27
|
+
//# sourceMappingURL=x.svg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"x.svg.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"x.svg.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/lib/assets/ucgMax.jpg
CHANGED
|
Binary file
|
package/lib/assets/ucgMax2.jpg
CHANGED
|
Binary file
|
package/lib/assets/ucgUltra.jpg
CHANGED
|
Binary file
|
package/lib/assets/ucgUltra2.jpg
CHANGED
|
Binary file
|
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
|
package/lib/assets/x.svg
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path opacity="0.9" d="M8.32633 5.92873L13.5347 0H12.3009L7.77659 5.14678L4.16573 0H0L5.46152 7.78358L0 14H1.23377L6.00846 8.56366L9.82261 14H13.9883M1.67907 0.911107H3.57449L12.3 13.1337H10.4041" fill="black" fill-opacity="0.45"/>
|
|
3
|
+
</svg>
|
|
@@ -14,7 +14,7 @@ var FeaturesSection_styles = require('./FeaturesSection.styles.js');
|
|
|
14
14
|
var useLockBodyScrollCustom = require('../../hooks/useLockBodyScrollCustom.js');
|
|
15
15
|
var Container = require('../Container/Container.js');
|
|
16
16
|
var StyleableSvgImage = require('../StyleableSvgImage/StyleableSvgImage.js');
|
|
17
|
-
var CloseSvg = require("../../assets/
|
|
17
|
+
var CloseSvg = require("../../assets/close2.svg");
|
|
18
18
|
function _interopDefault(e) {
|
|
19
19
|
return e && e.__esModule ? e : {
|
|
20
20
|
default: e
|
|
@@ -12,7 +12,7 @@ import { WrapOuter, OverlayWrap, OverlayClose, Wrap, MetaWrap, SubHeading, Headi
|
|
|
12
12
|
import { useLockBodyScrollCustom } from '../../hooks/useLockBodyScrollCustom.mjs';
|
|
13
13
|
import { Container } from '../Container/Container.mjs';
|
|
14
14
|
import { StyleableSvgImage } from '../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
15
|
-
import CloseSvg__default from "../../assets/
|
|
15
|
+
import CloseSvg__default from "../../assets/close2.svg";
|
|
16
16
|
"use strict";
|
|
17
17
|
const FEATURES_DEFAULT_PLAYBACK = 500;
|
|
18
18
|
const parseTime = time => parseFloat(time.toFixed(3));
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../assets/
|
|
2
|
-
export { default } from "../../../assets/
|
|
1
|
+
export * from "../../../assets/close2.svg";
|
|
2
|
+
export { default } from "../../../assets/close2.svg";
|
|
3
3
|
//# sourceMappingURL=close.svg.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { FooterProps } from "./Footer.types";
|
|
2
|
-
export declare const Footer:
|
|
2
|
+
export declare const Footer: ({ legalOnly, motif, id, customer, storePicker, storeAddress, className, }: FooterProps) => JSX.Element;
|
|
@@ -2,92 +2,210 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var react = require('react');
|
|
5
|
-
|
|
5
|
+
require('../../contexts/MenuContext/index.js');
|
|
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');
|
|
6
11
|
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');
|
|
7
19
|
"use strict";
|
|
8
|
-
const
|
|
20
|
+
const subscribeRegionValue = {
|
|
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 = ({
|
|
9
37
|
legalOnly,
|
|
10
|
-
motif = "light"
|
|
11
|
-
|
|
12
|
-
|
|
38
|
+
motif = "light",
|
|
39
|
+
id,
|
|
40
|
+
customer,
|
|
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]);
|
|
13
110
|
return /* @__PURE__ */jsxRuntime.jsx(Footer_styles.ContainerWrap, {
|
|
14
111
|
condensed: legalOnly,
|
|
15
|
-
$
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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"
|
|
112
|
+
$motif: motif,
|
|
113
|
+
id,
|
|
114
|
+
className,
|
|
115
|
+
children: /* @__PURE__ */jsxRuntime.jsx(Container.Container, {
|
|
116
|
+
size: "desktop",
|
|
117
|
+
noVerticalMargin: true,
|
|
118
|
+
children: /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.InnerContainer, {
|
|
119
|
+
children: [!legalOnly && /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
120
|
+
children: [/* @__PURE__ */jsxRuntime.jsxs(Footer_styles.Wrap, {
|
|
121
|
+
children: [/* @__PURE__ */jsxRuntime.jsx(Footer_styles.ListsWrap, {
|
|
122
|
+
children: Object.values(footerContent).map((list, i) => /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.ListItemWrap, {
|
|
123
|
+
children: [/* @__PURE__ */jsxRuntime.jsxs(Footer_styles.Header, {
|
|
124
|
+
children: [" ", list.header.label]
|
|
125
|
+
}), /* @__PURE__ */jsxRuntime.jsx(Footer_styles.List, {
|
|
126
|
+
children: list.items.map((item, j) => /* @__PURE__ */jsxRuntime.jsx(Footer_styles.ListItem, {
|
|
127
|
+
children: /* @__PURE__ */jsxRuntime.jsx(Footer_styles.ListItemAnchor, {
|
|
128
|
+
href: item.src,
|
|
129
|
+
target: item.target,
|
|
130
|
+
children: item.label
|
|
131
|
+
})
|
|
132
|
+
}, `footer-list-${i}-item-${j}`))
|
|
53
133
|
})]
|
|
134
|
+
}, `footer-list-${i}`))
|
|
135
|
+
}), /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.InnerWrap, {
|
|
136
|
+
children: [/* @__PURE__ */jsxRuntime.jsxs(Footer_styles.Form, {
|
|
137
|
+
method: "get",
|
|
138
|
+
action: "https://ui.us8.list-manage.com/subscribe",
|
|
139
|
+
target: "_blank",
|
|
140
|
+
children: [/* @__PURE__ */jsxRuntime.jsx(Footer_styles.Header, {
|
|
141
|
+
children: formatMessage("footer.newsletter.touch")
|
|
142
|
+
}), Object.entries(hiddenFields).map(([key, value]) => /* @__PURE__ */jsxRuntime.jsx("input", {
|
|
143
|
+
type: "hidden",
|
|
144
|
+
name: key,
|
|
145
|
+
value
|
|
146
|
+
}, key)), /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.InputWrap, {
|
|
147
|
+
children: [/* @__PURE__ */jsxRuntime.jsx(Footer_styles.Input, {
|
|
148
|
+
type: "text",
|
|
149
|
+
pattern: "[^@\\s]+@[^@\\s]+\\.[^@\\s]+",
|
|
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
|
+
})]
|
|
163
|
+
})]
|
|
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}`))
|
|
54
173
|
})]
|
|
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}`))
|
|
64
174
|
})]
|
|
175
|
+
}), /* @__PURE__ */jsxRuntime.jsx(Footer_styles.Break, {
|
|
176
|
+
$motif: motif
|
|
65
177
|
})]
|
|
66
|
-
}), /* @__PURE__ */jsxRuntime.
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
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
|
+
})]
|
|
184
|
+
}), /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.TermsWrap, {
|
|
185
|
+
children: [/* @__PURE__ */jsxRuntime.jsx(Footer_styles.FlexWrap, {
|
|
186
|
+
children: termsContent.items.map((term, i) => /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.AnchorGroup, {
|
|
187
|
+
children: [term.id === useFooterContent.FooterLinkId.Cookie ? /* @__PURE__ */jsxRuntime.jsx(Footer_styles.CookieBtn, {
|
|
188
|
+
type: "button",
|
|
189
|
+
id: useFooterContent.COOKIE_POLICY_BTN_ID,
|
|
190
|
+
className: useFooterContent.COOKIE_POLICY_BTN_ID_CLASSNAME,
|
|
191
|
+
children: term.label
|
|
192
|
+
}, `footer-term-${term.id}`) : /* @__PURE__ */jsxRuntime.jsx(Footer_styles.Anchor, {
|
|
193
|
+
href: term.src,
|
|
194
|
+
target: term.target,
|
|
195
|
+
children: term.label
|
|
196
|
+
}), /* @__PURE__ */jsxRuntime.jsx(Footer_styles.AnchorDivider, {
|
|
197
|
+
children: i !== termsContent.items.length - 1 && "|"
|
|
198
|
+
})]
|
|
199
|
+
}, `footer-term-${term.id}`))
|
|
200
|
+
}), /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.FlexWrapResponsive, {
|
|
201
|
+
children: [storePicker, /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.Copyright, {
|
|
202
|
+
children: ["\xA9 ", ( /* @__PURE__ */new Date()).getFullYear(), " ", formatMessage("footer.copyright")]
|
|
83
203
|
})]
|
|
84
|
-
}
|
|
85
|
-
}), /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.Copyright, {
|
|
86
|
-
children: ["\xA9 ", ( /* @__PURE__ */new Date()).getFullYear(), " Ubiquiti, Inc. All rights reserved."]
|
|
204
|
+
})]
|
|
87
205
|
})]
|
|
88
|
-
})
|
|
206
|
+
})
|
|
89
207
|
})
|
|
90
208
|
});
|
|
91
|
-
}
|
|
209
|
+
};
|
|
92
210
|
exports.Footer = Footer;
|
|
93
211
|
//# sourceMappingURL=Footer.js.map
|