@ubnt/store.core 11.9.3-alpha.4 → 11.9.3-alpha.5
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 +11 -0
- package/lib/apis/smartcat.js +15 -1
- package/lib/apis/smartcat.js.map +1 -1
- package/lib/apis/smartcat.mjs +15 -1
- package/lib/apis/smartcat.mjs.map +1 -1
- package/lib/assets/ai-360.jpg +0 -0
- package/lib/assets/ai-3602.jpg +0 -0
- package/lib/assets/ai-dome.jpg +0 -0
- package/lib/assets/ai-dome2.jpg +0 -0
- package/lib/assets/ai-dslr.jpg +0 -0
- package/lib/assets/ai-dslr2.jpg +0 -0
- package/lib/assets/ai-theta.jpg +0 -0
- package/lib/assets/ai-theta2.jpg +0 -0
- package/lib/assets/bullet2.svg +2 -4
- package/lib/assets/bullet3.svg +4 -2
- package/lib/assets/compact.svg +2 -2
- package/lib/assets/compact2.svg +2 -2
- package/lib/assets/door-hub-mini.jpg +0 -0
- package/lib/assets/door-hub-mini2.jpg +0 -0
- package/lib/assets/door-hub.jpg +0 -0
- package/lib/assets/door-hub2.jpg +0 -0
- package/lib/assets/floodlight.svg +2 -9
- package/lib/assets/floodlight2.svg +9 -2
- package/lib/assets/g2-reader-pro.jpg +0 -0
- package/lib/assets/g2-reader-pro2.jpg +0 -0
- package/lib/assets/g3-reader-pro.jpg +0 -0
- package/lib/assets/g3-reader-pro2.jpg +0 -0
- package/lib/assets/g3-reader.jpg +0 -0
- package/lib/assets/g3-reader2.jpg +0 -0
- package/lib/assets/g5-flex.jpg +0 -0
- package/lib/assets/g5-flex2.jpg +0 -0
- package/lib/assets/g5-ptz.jpg +0 -0
- package/lib/assets/g5-ptz2.jpg +0 -0
- package/lib/assets/globe.svg +2 -9
- package/lib/assets/globe2.svg +9 -2
- package/lib/assets/power.svg +1 -4
- package/lib/assets/power2.svg +4 -1
- package/lib/assets/ptz2.svg +2 -2
- package/lib/assets/ptz3.svg +2 -2
- package/lib/assets/rack.svg +1 -4
- package/lib/assets/rack2.svg +4 -1
- package/lib/assets/udr2.jpg +0 -0
- package/lib/assets/udr3.jpg +0 -0
- package/lib/components/Button/CartButton.d.ts +2 -19
- package/lib/components/Button/CartButton.js +12 -67
- package/lib/components/Button/CartButton.js.map +1 -1
- package/lib/components/Button/CartButton.mjs +8 -62
- package/lib/components/Button/CartButton.mjs.map +1 -1
- package/lib/components/Button/CartButton.styles.d.ts +16 -0
- package/lib/components/Button/CartButton.styles.js +79 -0
- package/lib/components/Button/CartButton.styles.js.map +1 -0
- package/lib/components/Button/CartButton.styles.mjs +66 -0
- package/lib/components/Button/CartButton.styles.mjs.map +1 -0
- package/lib/components/Button/CartButton.types.d.ts +23 -0
- package/lib/components/CardSection/Card/Card.js +42 -9
- package/lib/components/CardSection/Card/Card.js.map +1 -1
- package/lib/components/CardSection/Card/Card.mjs +14 -3
- package/lib/components/CardSection/Card/Card.mjs.map +1 -1
- package/lib/components/CardSection/Card/translations/ca.json.js +21 -0
- package/lib/components/CardSection/Card/translations/ca.json.js.map +1 -0
- package/lib/components/CardSection/Card/translations/ca.json.mjs +13 -0
- package/lib/components/CardSection/Card/translations/ca.json.mjs.map +1 -0
- package/lib/components/CardSection/Card/translations/cs.json.js +21 -0
- package/lib/components/CardSection/Card/translations/cs.json.js.map +1 -0
- package/lib/components/CardSection/Card/translations/cs.json.mjs +13 -0
- package/lib/components/CardSection/Card/translations/cs.json.mjs.map +1 -0
- package/lib/components/CardSection/Card/translations/da.json.js +21 -0
- package/lib/components/CardSection/Card/translations/da.json.js.map +1 -0
- package/lib/components/CardSection/Card/translations/da.json.mjs +13 -0
- package/lib/components/CardSection/Card/translations/da.json.mjs.map +1 -0
- package/lib/components/CardSection/Card/translations/es-MX.json.js +21 -0
- package/lib/components/CardSection/Card/translations/es-MX.json.js.map +1 -0
- package/lib/components/CardSection/Card/translations/es-MX.json.mjs +13 -0
- package/lib/components/CardSection/Card/translations/es-MX.json.mjs.map +1 -0
- package/lib/components/CardSection/Card/translations/index.d.ts +10 -0
- package/lib/components/CardSection/Card/translations/index.js +20 -0
- package/lib/components/CardSection/Card/translations/index.js.map +1 -1
- package/lib/components/CardSection/Card/translations/index.mjs +10 -0
- package/lib/components/CardSection/Card/translations/index.mjs.map +1 -1
- package/lib/components/CardSection/Card/translations/ko.json.js +21 -0
- package/lib/components/CardSection/Card/translations/ko.json.js.map +1 -0
- package/lib/components/CardSection/Card/translations/ko.json.mjs +13 -0
- package/lib/components/CardSection/Card/translations/ko.json.mjs.map +1 -0
- package/lib/components/CardSection/Card/translations/nl.json.js +21 -0
- package/lib/components/CardSection/Card/translations/nl.json.js.map +1 -0
- package/lib/components/CardSection/Card/translations/nl.json.mjs +13 -0
- package/lib/components/CardSection/Card/translations/nl.json.mjs.map +1 -0
- package/lib/components/CardSection/Card/translations/no.json.js +21 -0
- package/lib/components/CardSection/Card/translations/no.json.js.map +1 -0
- package/lib/components/CardSection/Card/translations/no.json.mjs +13 -0
- package/lib/components/CardSection/Card/translations/no.json.mjs.map +1 -0
- package/lib/components/CardSection/Card/translations/pl.json.js +21 -0
- package/lib/components/CardSection/Card/translations/pl.json.js.map +1 -0
- package/lib/components/CardSection/Card/translations/pl.json.mjs +13 -0
- package/lib/components/CardSection/Card/translations/pl.json.mjs.map +1 -0
- package/lib/components/CardSection/Card/translations/pt-PT.json.js +21 -0
- package/lib/components/CardSection/Card/translations/pt-PT.json.js.map +1 -0
- package/lib/components/CardSection/Card/translations/pt-PT.json.mjs +13 -0
- package/lib/components/CardSection/Card/translations/pt-PT.json.mjs.map +1 -0
- package/lib/components/CardSection/Card/translations/ru.json.js +21 -0
- package/lib/components/CardSection/Card/translations/ru.json.js.map +1 -0
- package/lib/components/CardSection/Card/translations/ru.json.mjs +13 -0
- package/lib/components/CardSection/Card/translations/ru.json.mjs.map +1 -0
- package/lib/components/CardSection/Card/translations/sv.json.js +21 -0
- package/lib/components/CardSection/Card/translations/sv.json.js.map +1 -0
- package/lib/components/CardSection/Card/translations/sv.json.mjs +13 -0
- package/lib/components/CardSection/Card/translations/sv.json.mjs.map +1 -0
- package/lib/components/CardSection/Card/translations/tr.json.js +21 -0
- package/lib/components/CardSection/Card/translations/tr.json.js.map +1 -0
- package/lib/components/CardSection/Card/translations/tr.json.mjs +13 -0
- package/lib/components/CardSection/Card/translations/tr.json.mjs.map +1 -0
- package/lib/components/Explore/Explore.js +42 -9
- package/lib/components/Explore/Explore.js.map +1 -1
- package/lib/components/Explore/Explore.mjs +14 -3
- package/lib/components/Explore/Explore.mjs.map +1 -1
- package/lib/components/Explore/translations/ar.json.js +87 -86
- package/lib/components/Explore/translations/ar.json.js.map +1 -1
- package/lib/components/Explore/translations/ar.json.mjs +87 -86
- package/lib/components/Explore/translations/ar.json.mjs.map +1 -1
- package/lib/components/Explore/translations/ca.json.js +135 -0
- package/lib/components/Explore/translations/ca.json.js.map +1 -0
- package/lib/components/Explore/translations/ca.json.mjs +128 -0
- package/lib/components/Explore/translations/ca.json.mjs.map +1 -0
- package/lib/components/Explore/translations/cs.json.js +135 -0
- package/lib/components/Explore/translations/cs.json.js.map +1 -0
- package/lib/components/Explore/translations/cs.json.mjs +128 -0
- package/lib/components/Explore/translations/cs.json.mjs.map +1 -0
- package/lib/components/Explore/translations/da.json.js +135 -0
- package/lib/components/Explore/translations/da.json.js.map +1 -0
- package/lib/components/Explore/translations/da.json.mjs +128 -0
- package/lib/components/Explore/translations/da.json.mjs.map +1 -0
- package/lib/components/Explore/translations/de.json.js +89 -88
- package/lib/components/Explore/translations/de.json.js.map +1 -1
- package/lib/components/Explore/translations/de.json.mjs +89 -88
- package/lib/components/Explore/translations/de.json.mjs.map +1 -1
- package/lib/components/Explore/translations/el.json.js +87 -86
- package/lib/components/Explore/translations/el.json.js.map +1 -1
- package/lib/components/Explore/translations/el.json.mjs +87 -86
- package/lib/components/Explore/translations/el.json.mjs.map +1 -1
- package/lib/components/Explore/translations/es-MX.json.js +135 -0
- package/lib/components/Explore/translations/es-MX.json.js.map +1 -0
- package/lib/components/Explore/translations/es-MX.json.mjs +128 -0
- package/lib/components/Explore/translations/es-MX.json.mjs.map +1 -0
- package/lib/components/Explore/translations/es.json.js +87 -86
- package/lib/components/Explore/translations/es.json.js.map +1 -1
- package/lib/components/Explore/translations/es.json.mjs +87 -86
- package/lib/components/Explore/translations/es.json.mjs.map +1 -1
- package/lib/components/Explore/translations/fr.json.js +87 -86
- package/lib/components/Explore/translations/fr.json.js.map +1 -1
- package/lib/components/Explore/translations/fr.json.mjs +87 -86
- package/lib/components/Explore/translations/fr.json.mjs.map +1 -1
- package/lib/components/Explore/translations/index.d.ts +10 -0
- package/lib/components/Explore/translations/index.js +20 -0
- package/lib/components/Explore/translations/index.js.map +1 -1
- package/lib/components/Explore/translations/index.mjs +10 -0
- package/lib/components/Explore/translations/index.mjs.map +1 -1
- package/lib/components/Explore/translations/it.json.js +87 -86
- package/lib/components/Explore/translations/it.json.js.map +1 -1
- package/lib/components/Explore/translations/it.json.mjs +87 -86
- package/lib/components/Explore/translations/it.json.mjs.map +1 -1
- package/lib/components/Explore/translations/ja.json.js +87 -86
- package/lib/components/Explore/translations/ja.json.js.map +1 -1
- package/lib/components/Explore/translations/ja.json.mjs +87 -86
- package/lib/components/Explore/translations/ja.json.mjs.map +1 -1
- package/lib/components/Explore/translations/ko.json.js +135 -0
- package/lib/components/Explore/translations/ko.json.js.map +1 -0
- package/lib/components/Explore/translations/ko.json.mjs +128 -0
- package/lib/components/Explore/translations/ko.json.mjs.map +1 -0
- package/lib/components/Explore/translations/nl.json.js +135 -0
- package/lib/components/Explore/translations/nl.json.js.map +1 -0
- package/lib/components/Explore/translations/nl.json.mjs +128 -0
- package/lib/components/Explore/translations/nl.json.mjs.map +1 -0
- package/lib/components/Explore/translations/no.json.js +135 -0
- package/lib/components/Explore/translations/no.json.js.map +1 -0
- package/lib/components/Explore/translations/no.json.mjs +128 -0
- package/lib/components/Explore/translations/no.json.mjs.map +1 -0
- package/lib/components/Explore/translations/pl.json.js +135 -0
- package/lib/components/Explore/translations/pl.json.js.map +1 -0
- package/lib/components/Explore/translations/pl.json.mjs +128 -0
- package/lib/components/Explore/translations/pl.json.mjs.map +1 -0
- package/lib/components/Explore/translations/pt-BR.json.js +87 -86
- package/lib/components/Explore/translations/pt-BR.json.js.map +1 -1
- package/lib/components/Explore/translations/pt-BR.json.mjs +87 -86
- package/lib/components/Explore/translations/pt-BR.json.mjs.map +1 -1
- package/lib/components/Explore/translations/pt-PT.json.js +135 -0
- package/lib/components/Explore/translations/pt-PT.json.js.map +1 -0
- package/lib/components/Explore/translations/pt-PT.json.mjs +128 -0
- package/lib/components/Explore/translations/pt-PT.json.mjs.map +1 -0
- package/lib/components/Explore/translations/ru.json.js +135 -0
- package/lib/components/Explore/translations/ru.json.js.map +1 -0
- package/lib/components/Explore/translations/ru.json.mjs +128 -0
- package/lib/components/Explore/translations/ru.json.mjs.map +1 -0
- package/lib/components/Explore/translations/sv.json.js +135 -0
- package/lib/components/Explore/translations/sv.json.js.map +1 -0
- package/lib/components/Explore/translations/sv.json.mjs +128 -0
- package/lib/components/Explore/translations/sv.json.mjs.map +1 -0
- package/lib/components/Explore/translations/tr.json.js +135 -0
- package/lib/components/Explore/translations/tr.json.js.map +1 -0
- package/lib/components/Explore/translations/tr.json.mjs +128 -0
- package/lib/components/Explore/translations/tr.json.mjs.map +1 -0
- package/lib/components/Explore/translations/zh-Hans.json.js +87 -86
- package/lib/components/Explore/translations/zh-Hans.json.js.map +1 -1
- package/lib/components/Explore/translations/zh-Hans.json.mjs +87 -86
- package/lib/components/Explore/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/components/Explore/translations/zh-Hant-TW.json.js +87 -86
- package/lib/components/Explore/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/components/Explore/translations/zh-Hant-TW.json.mjs +87 -86
- package/lib/components/Explore/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/components/Footer/Footer.js +42 -9
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/Footer.mjs +14 -3
- package/lib/components/Footer/Footer.mjs.map +1 -1
- package/lib/components/Footer/hooks/useFooterContent.js +42 -9
- package/lib/components/Footer/hooks/useFooterContent.js.map +1 -1
- package/lib/components/Footer/hooks/useFooterContent.mjs +14 -3
- package/lib/components/Footer/hooks/useFooterContent.mjs.map +1 -1
- package/lib/components/Footer/translations/ca.json.js +52 -0
- package/lib/components/Footer/translations/ca.json.js.map +1 -0
- package/lib/components/Footer/translations/ca.json.mjs +47 -0
- package/lib/components/Footer/translations/ca.json.mjs.map +1 -0
- package/lib/components/Footer/translations/cs.json.js +52 -0
- package/lib/components/Footer/translations/cs.json.js.map +1 -0
- package/lib/components/Footer/translations/cs.json.mjs +47 -0
- package/lib/components/Footer/translations/cs.json.mjs.map +1 -0
- package/lib/components/Footer/translations/da.json.js +52 -0
- package/lib/components/Footer/translations/da.json.js.map +1 -0
- package/lib/components/Footer/translations/da.json.mjs +47 -0
- package/lib/components/Footer/translations/da.json.mjs.map +1 -0
- package/lib/components/Footer/translations/es-MX.json.js +52 -0
- package/lib/components/Footer/translations/es-MX.json.js.map +1 -0
- package/lib/components/Footer/translations/es-MX.json.mjs +47 -0
- package/lib/components/Footer/translations/es-MX.json.mjs.map +1 -0
- package/lib/components/Footer/translations/fr.json.js +2 -2
- package/lib/components/Footer/translations/fr.json.mjs +2 -2
- package/lib/components/Footer/translations/ko.json.js +52 -0
- package/lib/components/Footer/translations/ko.json.js.map +1 -0
- package/lib/components/Footer/translations/ko.json.mjs +47 -0
- package/lib/components/Footer/translations/ko.json.mjs.map +1 -0
- package/lib/components/Footer/translations/nl.json.js +52 -0
- package/lib/components/Footer/translations/nl.json.js.map +1 -0
- package/lib/components/Footer/translations/nl.json.mjs +47 -0
- package/lib/components/Footer/translations/nl.json.mjs.map +1 -0
- package/lib/components/Footer/translations/no.json.js +52 -0
- package/lib/components/Footer/translations/no.json.js.map +1 -0
- package/lib/components/Footer/translations/no.json.mjs +47 -0
- package/lib/components/Footer/translations/no.json.mjs.map +1 -0
- package/lib/components/Footer/translations/pl.json.js +52 -0
- package/lib/components/Footer/translations/pl.json.js.map +1 -0
- package/lib/components/Footer/translations/pl.json.mjs +47 -0
- package/lib/components/Footer/translations/pl.json.mjs.map +1 -0
- package/lib/components/Footer/translations/pt-BR.json.js +1 -1
- package/lib/components/Footer/translations/pt-BR.json.mjs +1 -1
- package/lib/components/Footer/translations/pt-PT.json.js +52 -0
- package/lib/components/Footer/translations/pt-PT.json.js.map +1 -0
- package/lib/components/Footer/translations/pt-PT.json.mjs +47 -0
- package/lib/components/Footer/translations/pt-PT.json.mjs.map +1 -0
- package/lib/components/Footer/translations/sv.json.js +52 -0
- package/lib/components/Footer/translations/sv.json.js.map +1 -0
- package/lib/components/Footer/translations/sv.json.mjs +47 -0
- package/lib/components/Footer/translations/sv.json.mjs.map +1 -0
- package/lib/components/Footer/translations/tr.json.js +52 -0
- package/lib/components/Footer/translations/tr.json.js.map +1 -0
- package/lib/components/Footer/translations/tr.json.mjs +47 -0
- package/lib/components/Footer/translations/tr.json.mjs.map +1 -0
- package/lib/components/Header/AccountFrame/AccountFrame.js +42 -9
- package/lib/components/Header/AccountFrame/AccountFrame.js.map +1 -1
- package/lib/components/Header/AccountFrame/AccountFrame.mjs +14 -3
- package/lib/components/Header/AccountFrame/AccountFrame.mjs.map +1 -1
- package/lib/components/Header/AccountFrame/Mobile/Mobile.js +42 -9
- package/lib/components/Header/AccountFrame/Mobile/Mobile.js.map +1 -1
- package/lib/components/Header/AccountFrame/Mobile/Mobile.mjs +14 -3
- package/lib/components/Header/AccountFrame/Mobile/Mobile.mjs.map +1 -1
- package/lib/components/Header/AccountFrame/translations/ca.json.js +25 -0
- package/lib/components/Header/AccountFrame/translations/ca.json.js.map +1 -0
- package/lib/components/Header/AccountFrame/translations/ca.json.mjs +18 -0
- package/lib/components/Header/AccountFrame/translations/ca.json.mjs.map +1 -0
- package/lib/components/Header/AccountFrame/translations/cs.json.js +25 -0
- package/lib/components/Header/AccountFrame/translations/cs.json.js.map +1 -0
- package/lib/components/Header/AccountFrame/translations/cs.json.mjs +18 -0
- package/lib/components/Header/AccountFrame/translations/cs.json.mjs.map +1 -0
- package/lib/components/Header/AccountFrame/translations/da.json.js +25 -0
- package/lib/components/Header/AccountFrame/translations/da.json.js.map +1 -0
- package/lib/components/Header/AccountFrame/translations/da.json.mjs +18 -0
- package/lib/components/Header/AccountFrame/translations/da.json.mjs.map +1 -0
- package/lib/components/Header/AccountFrame/translations/es-MX.json.js +25 -0
- package/lib/components/Header/AccountFrame/translations/es-MX.json.js.map +1 -0
- package/lib/components/Header/AccountFrame/translations/es-MX.json.mjs +18 -0
- package/lib/components/Header/AccountFrame/translations/es-MX.json.mjs.map +1 -0
- package/lib/components/Header/AccountFrame/translations/index.d.ts +10 -0
- package/lib/components/Header/AccountFrame/translations/index.js +20 -0
- package/lib/components/Header/AccountFrame/translations/index.js.map +1 -1
- package/lib/components/Header/AccountFrame/translations/index.mjs +10 -0
- package/lib/components/Header/AccountFrame/translations/index.mjs.map +1 -1
- package/lib/components/Header/AccountFrame/translations/ko.json.js +25 -0
- package/lib/components/Header/AccountFrame/translations/ko.json.js.map +1 -0
- package/lib/components/Header/AccountFrame/translations/ko.json.mjs +18 -0
- package/lib/components/Header/AccountFrame/translations/ko.json.mjs.map +1 -0
- package/lib/components/Header/AccountFrame/translations/nl.json.js +25 -0
- package/lib/components/Header/AccountFrame/translations/nl.json.js.map +1 -0
- package/lib/components/Header/AccountFrame/translations/nl.json.mjs +18 -0
- package/lib/components/Header/AccountFrame/translations/nl.json.mjs.map +1 -0
- package/lib/components/Header/AccountFrame/translations/no.json.js +25 -0
- package/lib/components/Header/AccountFrame/translations/no.json.js.map +1 -0
- package/lib/components/Header/AccountFrame/translations/no.json.mjs +18 -0
- package/lib/components/Header/AccountFrame/translations/no.json.mjs.map +1 -0
- package/lib/components/Header/AccountFrame/translations/pl.json.js +25 -0
- package/lib/components/Header/AccountFrame/translations/pl.json.js.map +1 -0
- package/lib/components/Header/AccountFrame/translations/pl.json.mjs +18 -0
- package/lib/components/Header/AccountFrame/translations/pl.json.mjs.map +1 -0
- package/lib/components/Header/AccountFrame/translations/pt-PT.json.js +25 -0
- package/lib/components/Header/AccountFrame/translations/pt-PT.json.js.map +1 -0
- package/lib/components/Header/AccountFrame/translations/pt-PT.json.mjs +18 -0
- package/lib/components/Header/AccountFrame/translations/pt-PT.json.mjs.map +1 -0
- package/lib/components/Header/AccountFrame/translations/ru.json.js +25 -0
- package/lib/components/Header/AccountFrame/translations/ru.json.js.map +1 -0
- package/lib/components/Header/AccountFrame/translations/ru.json.mjs +18 -0
- package/lib/components/Header/AccountFrame/translations/ru.json.mjs.map +1 -0
- package/lib/components/Header/AccountFrame/translations/sv.json.js +25 -0
- package/lib/components/Header/AccountFrame/translations/sv.json.js.map +1 -0
- package/lib/components/Header/AccountFrame/translations/sv.json.mjs +18 -0
- package/lib/components/Header/AccountFrame/translations/sv.json.mjs.map +1 -0
- package/lib/components/Header/AccountFrame/translations/tr.json.js +25 -0
- package/lib/components/Header/AccountFrame/translations/tr.json.js.map +1 -0
- package/lib/components/Header/AccountFrame/translations/tr.json.mjs +18 -0
- package/lib/components/Header/AccountFrame/translations/tr.json.mjs.map +1 -0
- package/lib/components/Header/AccountMenu/AccountMenu.js +51 -16
- package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
- package/lib/components/Header/AccountMenu/AccountMenu.mjs +21 -10
- package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
- package/lib/components/Header/CartModalV2/Item/Item.styles.d.ts +1 -1
- package/lib/components/Header/Header.js +43 -10
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/Header.mjs +15 -4
- package/lib/components/Header/Header.mjs.map +1 -1
- package/lib/components/Header/LanguageFrame/LanguageFrame.d.ts +0 -8
- package/lib/components/Header/LanguageFrame/LanguageFrame.js +29 -36
- package/lib/components/Header/LanguageFrame/LanguageFrame.js.map +1 -1
- package/lib/components/Header/LanguageFrame/LanguageFrame.mjs +25 -37
- package/lib/components/Header/LanguageFrame/LanguageFrame.mjs.map +1 -1
- package/lib/components/Header/LanguageFrame/LanguageFrame.styles.d.ts +4 -1
- package/lib/components/Header/LanguageFrame/LanguageFrame.styles.js +36 -15
- package/lib/components/Header/LanguageFrame/LanguageFrame.styles.js.map +1 -1
- package/lib/components/Header/LanguageFrame/LanguageFrame.styles.mjs +33 -15
- package/lib/components/Header/LanguageFrame/LanguageFrame.styles.mjs.map +1 -1
- package/lib/components/Header/LanguageFrame/Mobile/Mobile.js +3 -5
- package/lib/components/Header/LanguageFrame/Mobile/Mobile.js.map +1 -1
- package/lib/components/Header/LanguageFrame/Mobile/Mobile.mjs +5 -7
- package/lib/components/Header/LanguageFrame/Mobile/Mobile.mjs.map +1 -1
- package/lib/components/Header/LanguageFrame/translations/en.json.js +43 -15
- package/lib/components/Header/LanguageFrame/translations/en.json.js.map +1 -1
- package/lib/components/Header/LanguageFrame/translations/en.json.mjs +35 -15
- package/lib/components/Header/LanguageFrame/translations/en.json.mjs.map +1 -1
- package/lib/components/Header/LanguageFrame/utils/buildLanguageLink.js +1 -0
- package/lib/components/Header/LanguageFrame/utils/buildLanguageLink.js.map +1 -1
- package/lib/components/Header/LanguageFrame/utils/buildLanguageLink.mjs +1 -0
- package/lib/components/Header/LanguageFrame/utils/buildLanguageLink.mjs.map +1 -1
- package/lib/components/Header/Navigation/Carousel/Carousel.js +42 -9
- package/lib/components/Header/Navigation/Carousel/Carousel.js.map +1 -1
- package/lib/components/Header/Navigation/Carousel/Carousel.mjs +14 -3
- package/lib/components/Header/Navigation/Carousel/Carousel.mjs.map +1 -1
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.js +42 -9
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.js.map +1 -1
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.mjs +14 -3
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.mjs.map +1 -1
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js +42 -9
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js.map +1 -1
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.mjs +14 -3
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.mjs.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.js +43 -10
- package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.mjs +15 -4
- package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
- package/lib/components/Header/translations/ar.json.js +43 -43
- package/lib/components/Header/translations/ar.json.mjs +43 -43
- package/lib/components/Header/translations/ca.json.js +82 -0
- package/lib/components/Header/translations/ca.json.js.map +1 -0
- package/lib/components/Header/translations/ca.json.mjs +59 -0
- package/lib/components/Header/translations/ca.json.mjs.map +1 -0
- package/lib/components/Header/translations/cs.json.js +82 -0
- package/lib/components/Header/translations/cs.json.js.map +1 -0
- package/lib/components/Header/translations/cs.json.mjs +59 -0
- package/lib/components/Header/translations/cs.json.mjs.map +1 -0
- package/lib/components/Header/translations/da.json.js +82 -0
- package/lib/components/Header/translations/da.json.js.map +1 -0
- package/lib/components/Header/translations/da.json.mjs +59 -0
- package/lib/components/Header/translations/da.json.mjs.map +1 -0
- package/lib/components/Header/translations/de.json.js +43 -43
- package/lib/components/Header/translations/de.json.mjs +43 -43
- package/lib/components/Header/translations/el.json.js +43 -43
- package/lib/components/Header/translations/el.json.mjs +43 -43
- package/lib/components/Header/translations/es-MX.json.js +82 -0
- package/lib/components/Header/translations/es-MX.json.js.map +1 -0
- package/lib/components/Header/translations/es-MX.json.mjs +59 -0
- package/lib/components/Header/translations/es-MX.json.mjs.map +1 -0
- package/lib/components/Header/translations/es.json.js +43 -43
- package/lib/components/Header/translations/es.json.mjs +43 -43
- package/lib/components/Header/translations/fr.json.js +43 -43
- package/lib/components/Header/translations/fr.json.mjs +43 -43
- package/lib/components/Header/translations/index.d.ts +10 -0
- package/lib/components/Header/translations/index.js +20 -0
- package/lib/components/Header/translations/index.js.map +1 -1
- package/lib/components/Header/translations/index.mjs +10 -0
- package/lib/components/Header/translations/index.mjs.map +1 -1
- package/lib/components/Header/translations/it.json.js +43 -43
- package/lib/components/Header/translations/it.json.mjs +43 -43
- package/lib/components/Header/translations/ja.json.js +43 -43
- package/lib/components/Header/translations/ja.json.mjs +43 -43
- package/lib/components/Header/translations/ko.json.js +82 -0
- package/lib/components/Header/translations/ko.json.js.map +1 -0
- package/lib/components/Header/translations/ko.json.mjs +59 -0
- package/lib/components/Header/translations/ko.json.mjs.map +1 -0
- package/lib/components/Header/translations/nl.json.js +82 -0
- package/lib/components/Header/translations/nl.json.js.map +1 -0
- package/lib/components/Header/translations/nl.json.mjs +59 -0
- package/lib/components/Header/translations/nl.json.mjs.map +1 -0
- package/lib/components/Header/translations/no.json.js +82 -0
- package/lib/components/Header/translations/no.json.js.map +1 -0
- package/lib/components/Header/translations/no.json.mjs +59 -0
- package/lib/components/Header/translations/no.json.mjs.map +1 -0
- package/lib/components/Header/translations/pl.json.js +82 -0
- package/lib/components/Header/translations/pl.json.js.map +1 -0
- package/lib/components/Header/translations/pl.json.mjs +59 -0
- package/lib/components/Header/translations/pl.json.mjs.map +1 -0
- package/lib/components/Header/translations/pt-BR.json.js +43 -43
- package/lib/components/Header/translations/pt-BR.json.mjs +43 -43
- package/lib/components/Header/translations/pt-PT.json.js +82 -0
- package/lib/components/Header/translations/pt-PT.json.js.map +1 -0
- package/lib/components/Header/translations/pt-PT.json.mjs +59 -0
- package/lib/components/Header/translations/pt-PT.json.mjs.map +1 -0
- package/lib/components/Header/translations/ru.json.js +82 -0
- package/lib/components/Header/translations/ru.json.js.map +1 -0
- package/lib/components/Header/translations/ru.json.mjs +59 -0
- package/lib/components/Header/translations/ru.json.mjs.map +1 -0
- package/lib/components/Header/translations/sv.json.js +82 -0
- package/lib/components/Header/translations/sv.json.js.map +1 -0
- package/lib/components/Header/translations/sv.json.mjs +59 -0
- package/lib/components/Header/translations/sv.json.mjs.map +1 -0
- package/lib/components/Header/translations/tr.json.js +82 -0
- package/lib/components/Header/translations/tr.json.js.map +1 -0
- package/lib/components/Header/translations/tr.json.mjs +59 -0
- package/lib/components/Header/translations/tr.json.mjs.map +1 -0
- package/lib/components/Header/translations/zh-Hans.json.js +43 -43
- package/lib/components/Header/translations/zh-Hans.json.mjs +43 -43
- package/lib/components/Header/translations/zh-Hant-TW.json.js +43 -43
- package/lib/components/Header/translations/zh-Hant-TW.json.mjs +43 -43
- package/lib/components/LearnMoreLink/LearnMoreLink.js +42 -9
- package/lib/components/LearnMoreLink/LearnMoreLink.js.map +1 -1
- package/lib/components/LearnMoreLink/LearnMoreLink.mjs +14 -3
- package/lib/components/LearnMoreLink/LearnMoreLink.mjs.map +1 -1
- package/lib/components/LearnMoreLink/translations/ar.json.js +0 -6
- package/lib/components/LearnMoreLink/translations/ar.json.js.map +1 -1
- package/lib/components/LearnMoreLink/translations/ar.json.mjs +1 -5
- package/lib/components/LearnMoreLink/translations/ar.json.mjs.map +1 -1
- package/lib/components/LearnMoreLink/translations/ca.json.js +10 -0
- package/lib/components/LearnMoreLink/translations/ca.json.js.map +1 -0
- package/lib/components/LearnMoreLink/translations/ca.json.mjs +5 -0
- package/lib/components/LearnMoreLink/translations/ca.json.mjs.map +1 -0
- package/lib/components/LearnMoreLink/translations/cs.json.js +10 -0
- package/lib/components/LearnMoreLink/translations/cs.json.js.map +1 -0
- package/lib/components/LearnMoreLink/translations/cs.json.mjs +5 -0
- package/lib/components/LearnMoreLink/translations/cs.json.mjs.map +1 -0
- package/lib/components/LearnMoreLink/translations/da.json.js +10 -0
- package/lib/components/LearnMoreLink/translations/da.json.js.map +1 -0
- package/lib/components/LearnMoreLink/translations/da.json.mjs +5 -0
- package/lib/components/LearnMoreLink/translations/da.json.mjs.map +1 -0
- package/lib/components/LearnMoreLink/translations/de.json.js +0 -6
- package/lib/components/LearnMoreLink/translations/de.json.js.map +1 -1
- package/lib/components/LearnMoreLink/translations/de.json.mjs +1 -5
- package/lib/components/LearnMoreLink/translations/de.json.mjs.map +1 -1
- package/lib/components/LearnMoreLink/translations/el.json.js +0 -6
- package/lib/components/LearnMoreLink/translations/el.json.js.map +1 -1
- package/lib/components/LearnMoreLink/translations/el.json.mjs +1 -5
- package/lib/components/LearnMoreLink/translations/el.json.mjs.map +1 -1
- package/lib/components/LearnMoreLink/translations/es-MX.json.js +10 -0
- package/lib/components/LearnMoreLink/translations/es-MX.json.js.map +1 -0
- package/lib/components/LearnMoreLink/translations/es-MX.json.mjs +5 -0
- package/lib/components/LearnMoreLink/translations/es-MX.json.mjs.map +1 -0
- package/lib/components/LearnMoreLink/translations/es.json.js +0 -6
- package/lib/components/LearnMoreLink/translations/es.json.js.map +1 -1
- package/lib/components/LearnMoreLink/translations/es.json.mjs +1 -5
- package/lib/components/LearnMoreLink/translations/es.json.mjs.map +1 -1
- package/lib/components/LearnMoreLink/translations/fr.json.js +0 -6
- package/lib/components/LearnMoreLink/translations/fr.json.js.map +1 -1
- package/lib/components/LearnMoreLink/translations/fr.json.mjs +1 -5
- package/lib/components/LearnMoreLink/translations/fr.json.mjs.map +1 -1
- package/lib/components/LearnMoreLink/translations/index.d.ts +10 -0
- package/lib/components/LearnMoreLink/translations/index.js +20 -0
- package/lib/components/LearnMoreLink/translations/index.js.map +1 -1
- package/lib/components/LearnMoreLink/translations/index.mjs +10 -0
- package/lib/components/LearnMoreLink/translations/index.mjs.map +1 -1
- package/lib/components/LearnMoreLink/translations/it.json.js +0 -6
- package/lib/components/LearnMoreLink/translations/it.json.js.map +1 -1
- package/lib/components/LearnMoreLink/translations/it.json.mjs +1 -5
- package/lib/components/LearnMoreLink/translations/it.json.mjs.map +1 -1
- package/lib/components/LearnMoreLink/translations/ja.json.js +0 -6
- package/lib/components/LearnMoreLink/translations/ja.json.js.map +1 -1
- package/lib/components/LearnMoreLink/translations/ja.json.mjs +1 -5
- package/lib/components/LearnMoreLink/translations/ja.json.mjs.map +1 -1
- package/lib/components/LearnMoreLink/translations/ko.json.js +10 -0
- package/lib/components/LearnMoreLink/translations/ko.json.js.map +1 -0
- package/lib/components/LearnMoreLink/translations/ko.json.mjs +5 -0
- package/lib/components/LearnMoreLink/translations/ko.json.mjs.map +1 -0
- package/lib/components/LearnMoreLink/translations/nl.json.js +10 -0
- package/lib/components/LearnMoreLink/translations/nl.json.js.map +1 -0
- package/lib/components/LearnMoreLink/translations/nl.json.mjs +5 -0
- package/lib/components/LearnMoreLink/translations/nl.json.mjs.map +1 -0
- package/lib/components/LearnMoreLink/translations/no.json.js +10 -0
- package/lib/components/LearnMoreLink/translations/no.json.js.map +1 -0
- package/lib/components/LearnMoreLink/translations/no.json.mjs +5 -0
- package/lib/components/LearnMoreLink/translations/no.json.mjs.map +1 -0
- package/lib/components/LearnMoreLink/translations/pl.json.js +10 -0
- package/lib/components/LearnMoreLink/translations/pl.json.js.map +1 -0
- package/lib/components/LearnMoreLink/translations/pl.json.mjs +5 -0
- package/lib/components/LearnMoreLink/translations/pl.json.mjs.map +1 -0
- package/lib/components/LearnMoreLink/translations/pt-BR.json.js +0 -6
- package/lib/components/LearnMoreLink/translations/pt-BR.json.js.map +1 -1
- package/lib/components/LearnMoreLink/translations/pt-BR.json.mjs +1 -5
- package/lib/components/LearnMoreLink/translations/pt-BR.json.mjs.map +1 -1
- package/lib/components/LearnMoreLink/translations/pt-PT.json.js +10 -0
- package/lib/components/LearnMoreLink/translations/pt-PT.json.js.map +1 -0
- package/lib/components/LearnMoreLink/translations/pt-PT.json.mjs +5 -0
- package/lib/components/LearnMoreLink/translations/pt-PT.json.mjs.map +1 -0
- package/lib/components/LearnMoreLink/translations/ru.json.js +10 -0
- package/lib/components/LearnMoreLink/translations/ru.json.js.map +1 -0
- package/lib/components/LearnMoreLink/translations/ru.json.mjs +5 -0
- package/lib/components/LearnMoreLink/translations/ru.json.mjs.map +1 -0
- package/lib/components/LearnMoreLink/translations/sv.json.js +10 -0
- package/lib/components/LearnMoreLink/translations/sv.json.js.map +1 -0
- package/lib/components/LearnMoreLink/translations/sv.json.mjs +5 -0
- package/lib/components/LearnMoreLink/translations/sv.json.mjs.map +1 -0
- package/lib/components/LearnMoreLink/translations/tr.json.js +10 -0
- package/lib/components/LearnMoreLink/translations/tr.json.js.map +1 -0
- package/lib/components/LearnMoreLink/translations/tr.json.mjs +5 -0
- package/lib/components/LearnMoreLink/translations/tr.json.mjs.map +1 -0
- package/lib/components/LearnMoreLink/translations/zh-Hans.json.js +0 -6
- package/lib/components/LearnMoreLink/translations/zh-Hans.json.js.map +1 -1
- package/lib/components/LearnMoreLink/translations/zh-Hans.json.mjs +1 -5
- package/lib/components/LearnMoreLink/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/components/LearnMoreLink/translations/zh-Hant-TW.json.js +0 -6
- package/lib/components/LearnMoreLink/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/components/LearnMoreLink/translations/zh-Hant-TW.json.mjs +1 -5
- package/lib/components/LearnMoreLink/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.js +42 -9
- package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.js.map +1 -1
- package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.mjs +14 -3
- package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.mjs.map +1 -1
- package/lib/components/MeetUniFiVideoPlayer/translations/ca.json.js +10 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/ca.json.js.map +1 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/ca.json.mjs +5 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/ca.json.mjs.map +1 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/cs.json.js +10 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/cs.json.js.map +1 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/cs.json.mjs +5 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/cs.json.mjs.map +1 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/da.json.js +10 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/da.json.js.map +1 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/da.json.mjs +5 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/da.json.mjs.map +1 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/es-MX.json.js +10 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/es-MX.json.js.map +1 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/es-MX.json.mjs +5 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/es-MX.json.mjs.map +1 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/index.d.ts +10 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/index.js +20 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/index.js.map +1 -1
- package/lib/components/MeetUniFiVideoPlayer/translations/index.mjs +10 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/index.mjs.map +1 -1
- package/lib/components/MeetUniFiVideoPlayer/translations/ko.json.js +10 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/ko.json.js.map +1 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/ko.json.mjs +5 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/ko.json.mjs.map +1 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/nl.json.js +10 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/nl.json.js.map +1 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/nl.json.mjs +5 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/nl.json.mjs.map +1 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/no.json.js +10 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/no.json.js.map +1 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/no.json.mjs +5 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/no.json.mjs.map +1 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/pl.json.js +10 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/pl.json.js.map +1 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/pl.json.mjs +5 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/pl.json.mjs.map +1 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/pt-PT.json.js +10 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/pt-PT.json.js.map +1 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/pt-PT.json.mjs +5 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/pt-PT.json.mjs.map +1 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/ru.json.js +10 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/ru.json.js.map +1 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/ru.json.mjs +5 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/ru.json.mjs.map +1 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/sv.json.js +10 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/sv.json.js.map +1 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/sv.json.mjs +5 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/sv.json.mjs.map +1 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/tr.json.js +10 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/tr.json.js.map +1 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/tr.json.mjs +5 -0
- package/lib/components/MeetUniFiVideoPlayer/translations/tr.json.mjs.map +1 -0
- package/lib/components/MicrositeBuyButton/MicrositeBuyButton.js +42 -9
- package/lib/components/MicrositeBuyButton/MicrositeBuyButton.js.map +1 -1
- package/lib/components/MicrositeBuyButton/MicrositeBuyButton.mjs +14 -3
- package/lib/components/MicrositeBuyButton/MicrositeBuyButton.mjs.map +1 -1
- package/lib/components/MicrositeBuyButton/translations/ca.json.js +12 -0
- package/lib/components/MicrositeBuyButton/translations/ca.json.js.map +1 -0
- package/lib/components/MicrositeBuyButton/translations/ca.json.mjs +6 -0
- package/lib/components/MicrositeBuyButton/translations/ca.json.mjs.map +1 -0
- package/lib/components/MicrositeBuyButton/translations/cs.json.js +12 -0
- package/lib/components/MicrositeBuyButton/translations/cs.json.js.map +1 -0
- package/lib/components/MicrositeBuyButton/translations/cs.json.mjs +6 -0
- package/lib/components/MicrositeBuyButton/translations/cs.json.mjs.map +1 -0
- package/lib/components/MicrositeBuyButton/translations/da.json.js +12 -0
- package/lib/components/MicrositeBuyButton/translations/da.json.js.map +1 -0
- package/lib/components/MicrositeBuyButton/translations/da.json.mjs +6 -0
- package/lib/components/MicrositeBuyButton/translations/da.json.mjs.map +1 -0
- package/lib/components/MicrositeBuyButton/translations/es-MX.json.js +12 -0
- package/lib/components/MicrositeBuyButton/translations/es-MX.json.js.map +1 -0
- package/lib/components/MicrositeBuyButton/translations/es-MX.json.mjs +6 -0
- package/lib/components/MicrositeBuyButton/translations/es-MX.json.mjs.map +1 -0
- package/lib/components/MicrositeBuyButton/translations/index.d.ts +10 -0
- package/lib/components/MicrositeBuyButton/translations/index.js +20 -0
- package/lib/components/MicrositeBuyButton/translations/index.js.map +1 -1
- package/lib/components/MicrositeBuyButton/translations/index.mjs +10 -0
- package/lib/components/MicrositeBuyButton/translations/index.mjs.map +1 -1
- package/lib/components/MicrositeBuyButton/translations/ko.json.js +12 -0
- package/lib/components/MicrositeBuyButton/translations/ko.json.js.map +1 -0
- package/lib/components/MicrositeBuyButton/translations/ko.json.mjs +6 -0
- package/lib/components/MicrositeBuyButton/translations/ko.json.mjs.map +1 -0
- package/lib/components/MicrositeBuyButton/translations/nl.json.js +12 -0
- package/lib/components/MicrositeBuyButton/translations/nl.json.js.map +1 -0
- package/lib/components/MicrositeBuyButton/translations/nl.json.mjs +6 -0
- package/lib/components/MicrositeBuyButton/translations/nl.json.mjs.map +1 -0
- package/lib/components/MicrositeBuyButton/translations/no.json.js +12 -0
- package/lib/components/MicrositeBuyButton/translations/no.json.js.map +1 -0
- package/lib/components/MicrositeBuyButton/translations/no.json.mjs +6 -0
- package/lib/components/MicrositeBuyButton/translations/no.json.mjs.map +1 -0
- package/lib/components/MicrositeBuyButton/translations/pl.json.js +12 -0
- package/lib/components/MicrositeBuyButton/translations/pl.json.js.map +1 -0
- package/lib/components/MicrositeBuyButton/translations/pl.json.mjs +6 -0
- package/lib/components/MicrositeBuyButton/translations/pl.json.mjs.map +1 -0
- package/lib/components/MicrositeBuyButton/translations/pt-PT.json.js +12 -0
- package/lib/components/MicrositeBuyButton/translations/pt-PT.json.js.map +1 -0
- package/lib/components/MicrositeBuyButton/translations/pt-PT.json.mjs +6 -0
- package/lib/components/MicrositeBuyButton/translations/pt-PT.json.mjs.map +1 -0
- package/lib/components/MicrositeBuyButton/translations/ru.json.js +12 -0
- package/lib/components/MicrositeBuyButton/translations/ru.json.js.map +1 -0
- package/lib/components/MicrositeBuyButton/translations/ru.json.mjs +6 -0
- package/lib/components/MicrositeBuyButton/translations/ru.json.mjs.map +1 -0
- package/lib/components/MicrositeBuyButton/translations/sv.json.js +12 -0
- package/lib/components/MicrositeBuyButton/translations/sv.json.js.map +1 -0
- package/lib/components/MicrositeBuyButton/translations/sv.json.mjs +6 -0
- package/lib/components/MicrositeBuyButton/translations/sv.json.mjs.map +1 -0
- package/lib/components/MicrositeBuyButton/translations/tr.json.js +12 -0
- package/lib/components/MicrositeBuyButton/translations/tr.json.js.map +1 -0
- package/lib/components/MicrositeBuyButton/translations/tr.json.mjs +6 -0
- package/lib/components/MicrositeBuyButton/translations/tr.json.mjs.map +1 -0
- package/lib/components/MicrositeHeader/MicrositeHeader.js +1 -0
- package/lib/components/MicrositeHeader/MicrositeHeader.js.map +1 -1
- package/lib/components/MicrositeHeader/MicrositeHeader.mjs +1 -0
- package/lib/components/MicrositeHeader/MicrositeHeader.mjs.map +1 -1
- package/lib/components/MicrositeHeader/components/HeaderContent/HeaderContent.js +2 -2
- package/lib/components/MicrositeHeader/components/HeaderContent/HeaderContent.js.map +1 -1
- package/lib/components/MicrositeHeader/components/HeaderContent/HeaderContent.mjs +2 -2
- package/lib/components/MicrositeHeader/components/HeaderContent/HeaderContent.mjs.map +1 -1
- package/lib/components/MicrositeHeader/components/HeaderContent/HeaderContent.styles.js +17 -0
- package/lib/components/MicrositeHeader/components/HeaderContent/HeaderContent.styles.js.map +1 -1
- package/lib/components/MicrositeHeader/components/HeaderContent/HeaderContent.styles.mjs +17 -0
- package/lib/components/MicrositeHeader/components/HeaderContent/HeaderContent.styles.mjs.map +1 -1
- package/lib/components/QuantityControls/QuantityControls.types.d.ts +1 -1
- package/lib/components/ResourceCalculatorV1/translations/ar.json.js +123 -123
- package/lib/components/ResourceCalculatorV1/translations/ar.json.mjs +123 -123
- package/lib/components/ResourceCalculatorV1/translations/ca.json.js +194 -0
- package/lib/{contexts/MicrositeMenuContext/translations/pt.json.js.map → components/ResourceCalculatorV1/translations/ca.json.js.map} +1 -1
- package/lib/components/ResourceCalculatorV1/translations/ca.json.mjs +164 -0
- package/lib/components/ResourceCalculatorV1/translations/ca.json.mjs.map +1 -0
- package/lib/components/ResourceCalculatorV1/translations/cs.json.js +194 -0
- package/lib/components/ResourceCalculatorV1/translations/cs.json.js.map +1 -0
- package/lib/components/ResourceCalculatorV1/translations/cs.json.mjs +164 -0
- package/lib/components/ResourceCalculatorV1/translations/cs.json.mjs.map +1 -0
- package/lib/components/ResourceCalculatorV1/translations/da.json.js +194 -0
- package/lib/components/ResourceCalculatorV1/translations/da.json.js.map +1 -0
- package/lib/components/ResourceCalculatorV1/translations/da.json.mjs +164 -0
- package/lib/components/ResourceCalculatorV1/translations/da.json.mjs.map +1 -0
- package/lib/components/ResourceCalculatorV1/translations/de.json.js +123 -123
- package/lib/components/ResourceCalculatorV1/translations/de.json.mjs +123 -123
- package/lib/components/ResourceCalculatorV1/translations/el.json.js +123 -123
- package/lib/components/ResourceCalculatorV1/translations/el.json.mjs +123 -123
- package/lib/components/ResourceCalculatorV1/translations/es-MX.json.js +194 -0
- package/lib/components/ResourceCalculatorV1/translations/es-MX.json.js.map +1 -0
- package/lib/components/ResourceCalculatorV1/translations/es-MX.json.mjs +164 -0
- package/lib/components/ResourceCalculatorV1/translations/es-MX.json.mjs.map +1 -0
- package/lib/components/ResourceCalculatorV1/translations/es.json.js +123 -123
- package/lib/components/ResourceCalculatorV1/translations/es.json.mjs +123 -123
- package/lib/components/ResourceCalculatorV1/translations/fr.json.js +123 -123
- package/lib/components/ResourceCalculatorV1/translations/fr.json.mjs +123 -123
- package/lib/components/ResourceCalculatorV1/translations/index.d.ts +10 -0
- package/lib/components/ResourceCalculatorV1/translations/index.js +20 -0
- package/lib/components/ResourceCalculatorV1/translations/index.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/translations/index.mjs +10 -0
- package/lib/components/ResourceCalculatorV1/translations/index.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/translations/it.json.js +123 -123
- package/lib/components/ResourceCalculatorV1/translations/it.json.mjs +123 -123
- package/lib/components/ResourceCalculatorV1/translations/ja.json.js +123 -123
- package/lib/components/ResourceCalculatorV1/translations/ja.json.mjs +123 -123
- package/lib/components/ResourceCalculatorV1/translations/ko.json.js +194 -0
- package/lib/components/ResourceCalculatorV1/translations/ko.json.js.map +1 -0
- package/lib/components/ResourceCalculatorV1/translations/ko.json.mjs +164 -0
- package/lib/components/ResourceCalculatorV1/translations/ko.json.mjs.map +1 -0
- package/lib/components/ResourceCalculatorV1/translations/nl.json.js +194 -0
- package/lib/components/ResourceCalculatorV1/translations/nl.json.js.map +1 -0
- package/lib/components/ResourceCalculatorV1/translations/nl.json.mjs +164 -0
- package/lib/components/ResourceCalculatorV1/translations/nl.json.mjs.map +1 -0
- package/lib/components/ResourceCalculatorV1/translations/no.json.js +194 -0
- package/lib/components/ResourceCalculatorV1/translations/no.json.js.map +1 -0
- package/lib/components/ResourceCalculatorV1/translations/no.json.mjs +164 -0
- package/lib/components/ResourceCalculatorV1/translations/no.json.mjs.map +1 -0
- package/lib/components/ResourceCalculatorV1/translations/pl.json.js +194 -0
- package/lib/components/ResourceCalculatorV1/translations/pl.json.js.map +1 -0
- package/lib/components/ResourceCalculatorV1/translations/pl.json.mjs +164 -0
- package/lib/components/ResourceCalculatorV1/translations/pl.json.mjs.map +1 -0
- package/lib/components/ResourceCalculatorV1/translations/pt-BR.json.js +123 -123
- package/lib/components/ResourceCalculatorV1/translations/pt-BR.json.mjs +123 -123
- package/lib/components/ResourceCalculatorV1/translations/pt-PT.json.js +194 -0
- package/lib/components/ResourceCalculatorV1/translations/pt-PT.json.js.map +1 -0
- package/lib/components/ResourceCalculatorV1/translations/pt-PT.json.mjs +164 -0
- package/lib/components/ResourceCalculatorV1/translations/pt-PT.json.mjs.map +1 -0
- package/lib/components/ResourceCalculatorV1/translations/ru.json.js +194 -0
- package/lib/components/ResourceCalculatorV1/translations/ru.json.js.map +1 -0
- package/lib/components/ResourceCalculatorV1/translations/ru.json.mjs +164 -0
- package/lib/components/ResourceCalculatorV1/translations/ru.json.mjs.map +1 -0
- package/lib/components/ResourceCalculatorV1/translations/sv.json.js +194 -0
- package/lib/components/ResourceCalculatorV1/translations/sv.json.js.map +1 -0
- package/lib/components/ResourceCalculatorV1/translations/sv.json.mjs +164 -0
- package/lib/components/ResourceCalculatorV1/translations/sv.json.mjs.map +1 -0
- package/lib/components/ResourceCalculatorV1/translations/tr.json.js +194 -0
- package/lib/components/ResourceCalculatorV1/translations/tr.json.js.map +1 -0
- package/lib/components/ResourceCalculatorV1/translations/tr.json.mjs +164 -0
- package/lib/components/ResourceCalculatorV1/translations/tr.json.mjs.map +1 -0
- package/lib/components/ResourceCalculatorV1/translations/useResourceCalculatorTranslation.js +56 -13
- package/lib/components/ResourceCalculatorV1/translations/useResourceCalculatorTranslation.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/translations/useResourceCalculatorTranslation.mjs +19 -12
- package/lib/components/ResourceCalculatorV1/translations/useResourceCalculatorTranslation.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/translations/zh-Hans.json.js +123 -123
- package/lib/components/ResourceCalculatorV1/translations/zh-Hans.json.mjs +123 -123
- package/lib/components/ResourceCalculatorV1/translations/zh-Hant-TW.json.js +123 -123
- package/lib/components/ResourceCalculatorV1/translations/zh-Hant-TW.json.mjs +123 -123
- package/lib/constants/icons/header/globe.svg.js +1 -1
- package/lib/constants/icons/header/globe.svg.mjs +2 -2
- package/lib/constants/icons/header/index.js +1 -1
- package/lib/constants/icons/header/index.mjs +1 -1
- package/lib/constants/icons/menu/floodlight.svg.js +5 -5
- package/lib/constants/icons/menu/floodlight.svg.mjs +2 -2
- package/lib/constants/icons/menu/index.js +9 -9
- package/lib/constants/icons/menu/index.mjs +3 -3
- package/lib/constants/icons/menu/power.svg.js +5 -5
- package/lib/constants/icons/menu/power.svg.mjs +2 -2
- package/lib/constants/icons/menu/rack.svg.js +5 -5
- package/lib/constants/icons/menu/rack.svg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Bullet/ai-dslr.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Bullet/ai-dslr.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Bullet/bullet.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/Bullet/bullet.svg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Compact/g5-flex.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Compact/g5-flex.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Consoles/bigCompare/udr.jpg.js +5 -5
- package/lib/constants/modelCompareData/assets/Consoles/bigCompare/udr.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Consoles/udr.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Consoles/udr.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DomeTurret/ai-360.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DomeTurret/ai-360.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DomeTurret/ai-dome.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DomeTurret/ai-dome.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DoorAccess/door-hub-mini.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DoorAccess/door-hub-mini.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DoorAccess/door-hub.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DoorAccess/door-hub.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DoorAccess/g2-reader-pro.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DoorAccess/g2-reader-pro.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DoorAccess/g3-reader-pro.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DoorAccess/g3-reader-pro.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DoorAccess/g3-reader.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DoorAccess/g3-reader.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Interior/ai-theta.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Interior/ai-theta.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/PTZ/g5-ptz.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/PTZ/g5-ptz.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/compact.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/compact.svg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/floodlight.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/floodlight.svg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/globe.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/globe.svg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/power.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/power.svg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/bullet.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/bullet.svg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/ai-dslr.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/ai-dslr.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/compact/g5-flex.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/compact/g5-flex.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/ai-360.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/ai-360.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/ai-dome.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/ai-dome.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/door-hub-mini.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/door-hub-mini.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/door-hub.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/door-hub.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g2-reader-pro.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g2-reader-pro.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g3-reader-pro.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g3-reader-pro.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g3-reader.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g3-reader.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/interior-design/ai-theta.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/interior-design/ai-theta.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/ptz/g5-ptz.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/ptz/g5-ptz.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/compact.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/compact.svg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/ptz.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/ptz.svg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/ptz.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/ptz.svg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/rack.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/rack.svg.mjs +2 -2
- package/lib/constants/modelCompareData/data/DreamMachineConsolev4.js +3 -3
- package/lib/constants/modelCompareData/data/DreamMachineConsolev4.mjs +2 -2
- package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Bullet.js +1 -1
- package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Bullet.mjs +1 -1
- package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Compact.js +1 -1
- package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Compact.mjs +1 -1
- package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Ptz.js +1 -1
- package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Ptz.mjs +1 -1
- package/lib/constants/modelCompareData/data/product-list-groups/bullet.js +1 -1
- package/lib/constants/modelCompareData/data/product-list-groups/bullet.mjs +1 -1
- package/lib/constants/modelCompareData/data/product-list-groups/compact.js +1 -1
- package/lib/constants/modelCompareData/data/product-list-groups/compact.mjs +1 -1
- package/lib/constants/modelCompareData/data/product-list-groups/ptz.js +1 -1
- package/lib/constants/modelCompareData/data/product-list-groups/ptz.mjs +1 -1
- package/lib/constants/modelCompareData/data/products/ai360.js +2 -2
- package/lib/constants/modelCompareData/data/products/ai360.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/aiDome.js +2 -2
- package/lib/constants/modelCompareData/data/products/aiDome.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/aiDslr.js +2 -2
- package/lib/constants/modelCompareData/data/products/aiDslr.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/doorHub.js +2 -2
- package/lib/constants/modelCompareData/data/products/doorHub.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/doorHubMini.js +2 -2
- package/lib/constants/modelCompareData/data/products/doorHubMini.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g2ReaderPro.js +2 -2
- package/lib/constants/modelCompareData/data/products/g2ReaderPro.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g3Reader.js +2 -2
- package/lib/constants/modelCompareData/data/products/g3Reader.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g3ReaderPro.js +2 -2
- package/lib/constants/modelCompareData/data/products/g3ReaderPro.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g5Flex.js +2 -2
- package/lib/constants/modelCompareData/data/products/g5Flex.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g5Ptz.js +2 -2
- package/lib/constants/modelCompareData/data/products/g5Ptz.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/theta.js +2 -2
- package/lib/constants/modelCompareData/data/products/theta.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/udr.js +1 -1
- package/lib/constants/modelCompareData/data/products/udr.mjs +1 -1
- package/lib/constants/modelCompareData/data/properties/accessPowerMethod.js +1 -1
- package/lib/constants/modelCompareData/data/properties/accessPowerMethod.mjs +1 -1
- package/lib/constants/modelCompareData/data/properties/availability.js +1 -1
- package/lib/constants/modelCompareData/data/properties/availability.mjs +1 -1
- package/lib/constants/modelCompareData/data/properties/builtInFloodlight.js +1 -1
- package/lib/constants/modelCompareData/data/properties/builtInFloodlight.mjs +1 -1
- package/lib/constants/modelCompareData/data/properties/dcPowerOutput.js +1 -1
- package/lib/constants/modelCompareData/data/properties/dcPowerOutput.mjs +1 -1
- package/lib/constants/modelCompareData/data/properties/mounting.js +1 -1
- package/lib/constants/modelCompareData/data/properties/mounting.mjs +1 -1
- package/lib/constants/modelCompareData/data/properties/webMode.js +1 -1
- package/lib/constants/modelCompareData/data/properties/webMode.mjs +1 -1
- package/lib/constants/modelCompareData/translations/ca.json.js +1664 -0
- package/lib/constants/modelCompareData/translations/ca.json.js.map +1 -0
- package/lib/constants/modelCompareData/translations/ca.json.mjs +1658 -0
- package/lib/constants/modelCompareData/translations/ca.json.mjs.map +1 -0
- package/lib/constants/modelCompareData/translations/cs.json.js +1664 -0
- package/lib/constants/modelCompareData/translations/cs.json.js.map +1 -0
- package/lib/constants/modelCompareData/translations/cs.json.mjs +1658 -0
- package/lib/constants/modelCompareData/translations/cs.json.mjs.map +1 -0
- package/lib/constants/modelCompareData/translations/da.json.js +1664 -0
- package/lib/constants/modelCompareData/translations/da.json.js.map +1 -0
- package/lib/constants/modelCompareData/translations/da.json.mjs +1658 -0
- package/lib/constants/modelCompareData/translations/da.json.mjs.map +1 -0
- package/lib/constants/modelCompareData/translations/es-MX.json.js +1664 -0
- package/lib/constants/modelCompareData/translations/es-MX.json.js.map +1 -0
- package/lib/constants/modelCompareData/translations/es-MX.json.mjs +1658 -0
- package/lib/constants/modelCompareData/translations/es-MX.json.mjs.map +1 -0
- package/lib/constants/modelCompareData/translations/index.d.ts +10 -0
- package/lib/constants/modelCompareData/translations/ko.json.js +1664 -0
- package/lib/constants/modelCompareData/translations/ko.json.js.map +1 -0
- package/lib/constants/modelCompareData/translations/ko.json.mjs +1658 -0
- package/lib/constants/modelCompareData/translations/ko.json.mjs.map +1 -0
- package/lib/constants/modelCompareData/translations/nl.json.js +1664 -0
- package/lib/constants/modelCompareData/translations/nl.json.js.map +1 -0
- package/lib/constants/modelCompareData/translations/nl.json.mjs +1658 -0
- package/lib/constants/modelCompareData/translations/nl.json.mjs.map +1 -0
- package/lib/constants/modelCompareData/translations/no.json.js +1664 -0
- package/lib/constants/modelCompareData/translations/no.json.js.map +1 -0
- package/lib/constants/modelCompareData/translations/no.json.mjs +1658 -0
- package/lib/constants/modelCompareData/translations/no.json.mjs.map +1 -0
- package/lib/constants/modelCompareData/translations/pl.json.js +1664 -0
- package/lib/constants/modelCompareData/translations/pl.json.js.map +1 -0
- package/lib/constants/modelCompareData/translations/pl.json.mjs +1658 -0
- package/lib/constants/modelCompareData/translations/pl.json.mjs.map +1 -0
- package/lib/constants/modelCompareData/translations/pt-PT.json.js +1664 -0
- package/lib/constants/modelCompareData/translations/pt-PT.json.js.map +1 -0
- package/lib/constants/modelCompareData/translations/pt-PT.json.mjs +1658 -0
- package/lib/constants/modelCompareData/translations/pt-PT.json.mjs.map +1 -0
- package/lib/constants/modelCompareData/translations/sv.json.js +1664 -0
- package/lib/constants/modelCompareData/translations/sv.json.js.map +1 -0
- package/lib/constants/modelCompareData/translations/sv.json.mjs +1658 -0
- package/lib/constants/modelCompareData/translations/sv.json.mjs.map +1 -0
- package/lib/constants/modelCompareData/translations/tr.json.js +1664 -0
- package/lib/constants/modelCompareData/translations/tr.json.js.map +1 -0
- package/lib/constants/modelCompareData/translations/tr.json.mjs +1658 -0
- package/lib/constants/modelCompareData/translations/tr.json.mjs.map +1 -0
- package/lib/constants/modelCompareData/translations/useModelCompareTranslation.js +42 -9
- package/lib/constants/modelCompareData/translations/useModelCompareTranslation.js.map +1 -1
- package/lib/constants/modelCompareData/translations/useModelCompareTranslation.mjs +14 -3
- package/lib/constants/modelCompareData/translations/useModelCompareTranslation.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/filters.d.ts +1 -1
- package/lib/constants/proStoreCategories/mapping/filters.js +1 -1
- package/lib/constants/proStoreCategories/mapping/filters.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/filters.mjs +1 -1
- package/lib/constants/proStoreCategories/mapping/filters.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.js +1 -1
- package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.mjs +1 -1
- package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.js +45 -45
- package/lib/constants/proStoreCategories/translations/ar.json.mjs +45 -45
- package/lib/constants/proStoreCategories/translations/ca.json.js +198 -0
- package/lib/constants/proStoreCategories/translations/ca.json.js.map +1 -0
- package/lib/constants/proStoreCategories/translations/ca.json.mjs +152 -0
- package/lib/constants/proStoreCategories/translations/ca.json.mjs.map +1 -0
- package/lib/constants/proStoreCategories/translations/cs.json.js +198 -0
- package/lib/constants/proStoreCategories/translations/cs.json.js.map +1 -0
- package/lib/constants/proStoreCategories/translations/cs.json.mjs +152 -0
- package/lib/constants/proStoreCategories/translations/cs.json.mjs.map +1 -0
- package/lib/constants/proStoreCategories/translations/da.json.js +198 -0
- package/lib/constants/proStoreCategories/translations/da.json.js.map +1 -0
- package/lib/constants/proStoreCategories/translations/da.json.mjs +152 -0
- package/lib/constants/proStoreCategories/translations/da.json.mjs.map +1 -0
- package/lib/constants/proStoreCategories/translations/de.json.js +21 -21
- package/lib/constants/proStoreCategories/translations/de.json.mjs +21 -21
- package/lib/constants/proStoreCategories/translations/el.json.js +31 -31
- package/lib/constants/proStoreCategories/translations/el.json.mjs +31 -31
- package/lib/constants/proStoreCategories/translations/es-ES.json.js +198 -0
- package/lib/constants/proStoreCategories/translations/es-ES.json.js.map +1 -0
- package/lib/constants/proStoreCategories/translations/es-ES.json.mjs +152 -0
- package/lib/constants/proStoreCategories/translations/es-ES.json.mjs.map +1 -0
- package/lib/constants/proStoreCategories/translations/es-MX.json.js +198 -0
- package/lib/constants/proStoreCategories/translations/es-MX.json.js.map +1 -0
- package/lib/constants/proStoreCategories/translations/es-MX.json.mjs +152 -0
- package/lib/constants/proStoreCategories/translations/es-MX.json.mjs.map +1 -0
- package/lib/constants/proStoreCategories/translations/es.json.js +27 -27
- package/lib/constants/proStoreCategories/translations/es.json.mjs +27 -27
- package/lib/constants/proStoreCategories/translations/fr.json.js +26 -26
- package/lib/constants/proStoreCategories/translations/fr.json.mjs +26 -26
- package/lib/constants/proStoreCategories/translations/index.d.ts +13 -0
- package/lib/constants/proStoreCategories/translations/index.js +26 -0
- package/lib/constants/proStoreCategories/translations/index.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/index.mjs +13 -0
- package/lib/constants/proStoreCategories/translations/index.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.js +41 -41
- package/lib/constants/proStoreCategories/translations/it.json.mjs +41 -41
- package/lib/constants/proStoreCategories/translations/ja.json.js +33 -33
- package/lib/constants/proStoreCategories/translations/ja.json.mjs +33 -33
- package/lib/constants/proStoreCategories/translations/ko.json.js +198 -0
- package/lib/constants/proStoreCategories/translations/ko.json.js.map +1 -0
- package/lib/constants/proStoreCategories/translations/ko.json.mjs +152 -0
- package/lib/constants/proStoreCategories/translations/ko.json.mjs.map +1 -0
- package/lib/constants/proStoreCategories/translations/nl.json.js +198 -0
- package/lib/constants/proStoreCategories/translations/nl.json.js.map +1 -0
- package/lib/constants/proStoreCategories/translations/nl.json.mjs +152 -0
- package/lib/constants/proStoreCategories/translations/nl.json.mjs.map +1 -0
- package/lib/constants/proStoreCategories/translations/no.json.js +198 -0
- package/lib/constants/proStoreCategories/translations/no.json.js.map +1 -0
- package/lib/constants/proStoreCategories/translations/no.json.mjs +152 -0
- package/lib/constants/proStoreCategories/translations/no.json.mjs.map +1 -0
- package/lib/constants/proStoreCategories/translations/pl.json.js +198 -0
- package/lib/constants/proStoreCategories/translations/pl.json.js.map +1 -0
- package/lib/constants/proStoreCategories/translations/pl.json.mjs +152 -0
- package/lib/constants/proStoreCategories/translations/pl.json.mjs.map +1 -0
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js +25 -25
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +25 -25
- package/lib/constants/proStoreCategories/translations/pt-PT.json.js +198 -0
- package/lib/constants/proStoreCategories/translations/pt-PT.json.js.map +1 -0
- package/lib/constants/proStoreCategories/translations/pt-PT.json.mjs +152 -0
- package/lib/constants/proStoreCategories/translations/pt-PT.json.mjs.map +1 -0
- package/lib/constants/proStoreCategories/translations/ru.json.js +198 -0
- package/lib/constants/proStoreCategories/translations/ru.json.js.map +1 -0
- package/lib/constants/proStoreCategories/translations/ru.json.mjs +152 -0
- package/lib/constants/proStoreCategories/translations/ru.json.mjs.map +1 -0
- package/lib/constants/proStoreCategories/translations/sv.json.js +198 -0
- package/lib/constants/proStoreCategories/translations/sv.json.js.map +1 -0
- package/lib/constants/proStoreCategories/translations/sv.json.mjs +152 -0
- package/lib/constants/proStoreCategories/translations/sv.json.mjs.map +1 -0
- package/lib/constants/proStoreCategories/translations/tr.json.js +198 -0
- package/lib/constants/proStoreCategories/translations/tr.json.js.map +1 -0
- package/lib/constants/proStoreCategories/translations/tr.json.mjs +152 -0
- package/lib/constants/proStoreCategories/translations/tr.json.mjs.map +1 -0
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +21 -21
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +21 -21
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +75 -75
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +75 -75
- package/lib/constants/proStoreFilters/mapping.d.ts +0 -2
- package/lib/constants/proStoreFilters/mapping.js +6 -7
- package/lib/constants/proStoreFilters/mapping.js.map +1 -1
- package/lib/constants/proStoreFilters/mapping.mjs +6 -7
- package/lib/constants/proStoreFilters/mapping.mjs.map +1 -1
- package/lib/contexts/MenuContext/context.js +8 -0
- package/lib/contexts/MenuContext/context.js.map +1 -1
- package/lib/contexts/MenuContext/context.mjs +8 -0
- package/lib/contexts/MenuContext/context.mjs.map +1 -1
- package/lib/contexts/MenuContext/mapping.d.ts +2 -2
- package/lib/contexts/MenuContext/mapping.js +21 -9
- package/lib/contexts/MenuContext/mapping.js.map +1 -1
- package/lib/contexts/MenuContext/mapping.mjs +20 -8
- package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
- package/lib/contexts/MenuContext/presets.d.ts +1 -1
- package/lib/contexts/MenuContext/presets.js +3 -2
- package/lib/contexts/MenuContext/presets.js.map +1 -1
- package/lib/contexts/MenuContext/presets.mjs +3 -2
- package/lib/contexts/MenuContext/presets.mjs.map +1 -1
- package/lib/contexts/MicrositeMenuContext/mapping.js +3 -3
- package/lib/contexts/MicrositeMenuContext/mapping.mjs +2 -2
- package/lib/contexts/MicrositeMenuContext/translations/ar.json.js +43 -43
- package/lib/contexts/MicrositeMenuContext/translations/ar.json.mjs +43 -43
- package/lib/contexts/MicrositeMenuContext/translations/ca.json.js +217 -0
- package/lib/contexts/MicrositeMenuContext/translations/ca.json.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/ca.json.mjs +212 -0
- package/lib/contexts/MicrositeMenuContext/translations/{pt.json.mjs.map → ca.json.mjs.map} +1 -1
- package/lib/contexts/MicrositeMenuContext/translations/cs.json.js +217 -0
- package/lib/contexts/MicrositeMenuContext/translations/cs.json.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/cs.json.mjs +212 -0
- package/lib/contexts/MicrositeMenuContext/translations/cs.json.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/da.json.js +217 -0
- package/lib/contexts/MicrositeMenuContext/translations/da.json.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/da.json.mjs +212 -0
- package/lib/contexts/MicrositeMenuContext/translations/da.json.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/de.json.js +42 -42
- package/lib/contexts/MicrositeMenuContext/translations/de.json.mjs +42 -42
- package/lib/contexts/MicrositeMenuContext/translations/el.json.js +44 -44
- package/lib/contexts/MicrositeMenuContext/translations/el.json.mjs +44 -44
- package/lib/contexts/MicrositeMenuContext/translations/es-MX.json.js +217 -0
- package/lib/contexts/MicrositeMenuContext/translations/es-MX.json.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/es-MX.json.mjs +212 -0
- package/lib/contexts/MicrositeMenuContext/translations/es-MX.json.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/es.json.js +45 -45
- package/lib/contexts/MicrositeMenuContext/translations/es.json.mjs +45 -45
- package/lib/contexts/MicrositeMenuContext/translations/fr.json.js +36 -36
- package/lib/contexts/MicrositeMenuContext/translations/fr.json.mjs +36 -36
- package/lib/contexts/MicrositeMenuContext/translations/it.json.js +45 -45
- package/lib/contexts/MicrositeMenuContext/translations/it.json.mjs +45 -45
- package/lib/contexts/MicrositeMenuContext/translations/ja.json.js +41 -41
- package/lib/contexts/MicrositeMenuContext/translations/ja.json.mjs +41 -41
- package/lib/contexts/MicrositeMenuContext/translations/ko.json.js +217 -0
- package/lib/contexts/MicrositeMenuContext/translations/ko.json.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/ko.json.mjs +212 -0
- package/lib/contexts/MicrositeMenuContext/translations/ko.json.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/nl.json.js +217 -0
- package/lib/contexts/MicrositeMenuContext/translations/nl.json.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/nl.json.mjs +212 -0
- package/lib/contexts/MicrositeMenuContext/translations/nl.json.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/no.json.js +217 -0
- package/lib/contexts/MicrositeMenuContext/translations/no.json.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/no.json.mjs +212 -0
- package/lib/contexts/MicrositeMenuContext/translations/no.json.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/pl.json.js +217 -0
- package/lib/contexts/MicrositeMenuContext/translations/pl.json.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/pl.json.mjs +212 -0
- package/lib/contexts/MicrositeMenuContext/translations/pl.json.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/{pt.json.js → pt-BR.json.js} +44 -43
- package/lib/contexts/MicrositeMenuContext/translations/pt-BR.json.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/{pt.json.mjs → pt-BR.json.mjs} +44 -43
- package/lib/contexts/MicrositeMenuContext/translations/pt-BR.json.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/pt-PT.json.js +217 -0
- package/lib/contexts/MicrositeMenuContext/translations/pt-PT.json.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/pt-PT.json.mjs +212 -0
- package/lib/contexts/MicrositeMenuContext/translations/pt-PT.json.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/sv.json.js +217 -0
- package/lib/contexts/MicrositeMenuContext/translations/sv.json.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/sv.json.mjs +212 -0
- package/lib/contexts/MicrositeMenuContext/translations/sv.json.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/tr.json.js +217 -0
- package/lib/contexts/MicrositeMenuContext/translations/tr.json.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/tr.json.mjs +212 -0
- package/lib/contexts/MicrositeMenuContext/translations/tr.json.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/translations/zh-Hant-TW.json.js +210 -1
- package/lib/contexts/MicrositeMenuContext/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/contexts/MicrositeMenuContext/translations/zh-Hant-TW.json.mjs +210 -1
- package/lib/contexts/MicrositeMenuContext/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/contexts/MicrositeMenuContext/translations.js +43 -10
- package/lib/contexts/MicrositeMenuContext/translations.js.map +1 -1
- package/lib/contexts/MicrositeMenuContext/translations.mjs +15 -4
- package/lib/contexts/MicrositeMenuContext/translations.mjs.map +1 -1
- package/lib/helpers/proStoreCategories.d.ts +1 -6
- package/lib/helpers/proStoreCategories.js +8 -52
- package/lib/helpers/proStoreCategories.js.map +1 -1
- package/lib/helpers/proStoreCategories.mjs +8 -52
- package/lib/helpers/proStoreCategories.mjs.map +1 -1
- package/lib/hooks/useTranslation.d.ts +2 -2
- package/lib/hooks/useTranslation.js +3 -1
- package/lib/hooks/useTranslation.js.map +1 -1
- package/lib/hooks/useTranslation.mjs +3 -1
- package/lib/hooks/useTranslation.mjs.map +1 -1
- package/lib/types/constants.d.ts +57 -1
- package/lib/types/constants.js +14 -0
- package/lib/types/constants.js.map +1 -1
- package/lib/types/constants.mjs +14 -0
- package/lib/types/constants.mjs.map +1 -1
- package/lib/utils/nextjs/navigationPresets.js +1 -1
- package/lib/utils/nextjs/navigationPresets.js.map +1 -1
- package/lib/utils/nextjs/navigationPresets.mjs +2 -2
- package/lib/utils/nextjs/navigationPresets.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Mobile.mjs","sources":["../../../../../src/components/Header/LanguageFrame/Mobile/Mobile.tsx"],"sourcesContent":["import { useMenu } from \"../../../../contexts/MenuContext\";\nimport { AvailableLanguages } from \"../../../../contexts/MenuContext/mapping\";\nimport * as S from \"../LanguageFrame.styles\";\nimport type { LanguageFrameProps } from \"../LanguageFrame.types\";\nimport { en as EN_TRANSLATION } from \"../translations\";\nimport { buildLanguageLink } from \"../utils/buildLanguageLink\";\nimport * as S2 from \"./Mobile.styles\";\n\ninterface LanguageFrameMobileProps extends Omit<LanguageFrameProps, \"onClose\"> {\n onClose?: () => void;\n}\n\nexport const LanguageFrameMobile = ({\n onLanguageChange,\n onClose,\n}: LanguageFrameMobileProps) => {\n const { deployedLanguages, language, storeId, setActiveModal } = useMenu();\n\n // #############################################################################\n // Render\n // #############################################################################\n\n return (\n <S2.Wrap>\n {Object.entries(AvailableLanguages).map(([key, val]) => {\n if (deployedLanguages.includes(key)) {\n const href = buildLanguageLink(storeId, key);\n if (!href) return null;\n\n return (\n <S.CustomButton\n anchor\n $active={key === language}\n key={val}\n variant=\"gray\"\n href={href}\n onClick={(e) => {\n onLanguageChange?.(e, href, key);\n setActiveModal(null);\n onClose?.();\n }}\n >\n <S.
|
|
1
|
+
{"version":3,"file":"Mobile.mjs","sources":["../../../../../src/components/Header/LanguageFrame/Mobile/Mobile.tsx"],"sourcesContent":["import { useMenu } from \"../../../../contexts/MenuContext\";\nimport { AvailableLanguages } from \"../../../../contexts/MenuContext/mapping\";\nimport * as S from \"../LanguageFrame.styles\";\nimport type { LanguageFrameProps } from \"../LanguageFrame.types\";\nimport { en as EN_TRANSLATION } from \"../translations\";\nimport { buildLanguageLink } from \"../utils/buildLanguageLink\";\nimport * as S2 from \"./Mobile.styles\";\n\ninterface LanguageFrameMobileProps extends Omit<LanguageFrameProps, \"onClose\"> {\n onClose?: () => void;\n}\n\nexport const LanguageFrameMobile = ({\n onLanguageChange,\n onClose,\n}: LanguageFrameMobileProps) => {\n const { deployedLanguages, language, storeId, setActiveModal } = useMenu();\n\n // #############################################################################\n // Render\n // #############################################################################\n\n return (\n <S2.Wrap>\n {Object.entries(AvailableLanguages).map(([key, val]) => {\n if (deployedLanguages.includes(key)) {\n const href = buildLanguageLink(storeId, key);\n if (!href) return null;\n\n return (\n <S.CustomButton\n anchor\n $active={key === language}\n key={val}\n variant=\"gray\"\n href={href}\n onClick={(e) => {\n onLanguageChange?.(e, href, key);\n setActiveModal(null);\n onClose?.();\n }}\n >\n <S.LanguageValue>\n {EN_TRANSLATION[val as keyof typeof EN_TRANSLATION]}\n </S.LanguageValue>\n </S.CustomButton>\n );\n } else {\n return null;\n }\n })}\n </S2.Wrap>\n );\n};\n"],"names":["LanguageFrameMobile","onLanguageChange","onClose","deployedLanguages","language","storeId","setActiveModal","useMenu","jsx","S2.Wrap","children","Object","entries","AvailableLanguages","map","key","val","includes","href","buildLanguageLink","S.CustomButton","anchor","$active","variant","onClick","e","S.LanguageValue","EN_TRANSLATION"],"mappings":";;;;;;;;;;AAYO,MAAMA,sBAAsBA,CAAC;EAClCC,gBAAA;EACAC;AACF,CAAgC,KAAA;EAC9B,MAAM;IAAEC,iBAAmB;IAAAC,QAAA;IAAUC,OAAS;IAAAC;EAAA,IAAmBC,OAAQ,CAAA,CAAA;EAMzE,OAAA,eACGC,GAAA,CAAAC,IAAA,EAAA;IACEC,QAAO,EAAAC,MAAA,CAAAC,OAAA,CAAQC,kBAAkB,CAAA,CAAEC,GAAI,CAAA,CAAC,CAACC,GAAA,EAAKC,GAAG,CAAM,KAAA;MAClD,IAAAb,iBAAA,CAAkBc,QAAS,CAAAF,GAAG,CAAG,EAAA;QAC7B,MAAAG,IAAA,GAAOC,iBAAkB,CAAAd,OAAA,EAASU,GAAG,CAAA;QACvC,IAAA,CAACG,MAAa,OAAA,IAAA;QAGhB,sBAAAV,GAAA,CAACY,YAAE,EAAF;UACCC,MAAM,EAAA,IAAA;UACNC,SAASP,GAAQ,KAAAX,QAAA;UAEjBmB,OAAQ,EAAA,MAAA;UACRL,IAAA;UACAM,OAAA,EAAUC,CAAM,IAAA;YACKxB,gBAAA,GAAAwB,CAAA,EAAGP,MAAMH,GAAG,CAAA;YAC/BT,cAAA,CAAe,IAAI,CAAA;YACTJ,OAAA,GAAA,CAAA;UACZ,CAAA;UAEAQ,6BAACgB,aAAE,EAAF;YACEhB,QAAA,EAAAiB,cAAA,CAAeX,GAAkC;UACpD,CAAA;QAAA,CAAA,EAXKA,GAYP,CAAA;MAAA,CAEG,MAAA;QACE,OAAA,IAAA;MAAA;IAEV,CAAA;GACH,CAAA;AAEJ,CAAA;"}
|
|
@@ -3,43 +3,71 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var Arabic = "(عربي)
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
var
|
|
6
|
+
var Arabic = "Arabic (عربي)";
|
|
7
|
+
var Catalan = "Catalan (Català)";
|
|
8
|
+
var Chinese = "Simplified Chinese (中文)";
|
|
9
|
+
var Czech = "Czech (Čeština)";
|
|
10
|
+
var Danish = "Danish (Dansk)";
|
|
11
|
+
var Dutch = "Dutch (Nederlands)";
|
|
12
|
+
var English = "English (US)";
|
|
13
|
+
var French = "French (Français)";
|
|
14
|
+
var German = "German (Deutsch)";
|
|
15
|
+
var Greek = "Greek (Ελληνικά)";
|
|
16
|
+
var Italian = "Italian (Italiano)";
|
|
17
|
+
var Japanese = "Japanese (日本語)";
|
|
18
|
+
var Korean = "Korean (한국어)";
|
|
19
|
+
var Norwegian = "Norwegian (Norsk)";
|
|
20
|
+
var Polish = "Polish (Polski)";
|
|
21
|
+
var Russian = "Russian (Pусский)";
|
|
22
|
+
var Spanish = "Spanish (Español)";
|
|
23
|
+
var Swedish = "Swedish (Svenska)";
|
|
24
|
+
var Taiwanese = "Traditional Chinese (正體中文)";
|
|
25
|
+
var Turkish = "Turkish (Türkçe)";
|
|
18
26
|
var EN_TRANSLATION = {
|
|
19
27
|
Arabic: Arabic,
|
|
28
|
+
Catalan: Catalan,
|
|
20
29
|
Chinese: Chinese,
|
|
30
|
+
Czech: Czech,
|
|
31
|
+
Danish: Danish,
|
|
32
|
+
Dutch: Dutch,
|
|
21
33
|
English: English,
|
|
22
34
|
French: French,
|
|
23
35
|
German: German,
|
|
24
36
|
Greek: Greek,
|
|
25
37
|
Italian: Italian,
|
|
26
38
|
Japanese: Japanese,
|
|
27
|
-
|
|
39
|
+
Korean: Korean,
|
|
40
|
+
Norwegian: Norwegian,
|
|
41
|
+
Polish: Polish,
|
|
42
|
+
"Portuguese (BR)": "Portuguese (Português - Brasil)",
|
|
43
|
+
"Portuguese (PT)": "Portuguese (Português - Portugal)",
|
|
28
44
|
Russian: Russian,
|
|
29
45
|
Spanish: Spanish,
|
|
30
|
-
|
|
46
|
+
"Spanish (ES)": "Spanish (España)",
|
|
47
|
+
"Spanish (MX)": "Spanish (México)",
|
|
48
|
+
Swedish: Swedish,
|
|
49
|
+
Taiwanese: Taiwanese,
|
|
50
|
+
Turkish: Turkish
|
|
31
51
|
};
|
|
32
52
|
exports.Arabic = Arabic;
|
|
53
|
+
exports.Catalan = Catalan;
|
|
33
54
|
exports.Chinese = Chinese;
|
|
55
|
+
exports.Czech = Czech;
|
|
56
|
+
exports.Danish = Danish;
|
|
57
|
+
exports.Dutch = Dutch;
|
|
34
58
|
exports.English = English;
|
|
35
59
|
exports.French = French;
|
|
36
60
|
exports.German = German;
|
|
37
61
|
exports.Greek = Greek;
|
|
38
62
|
exports.Italian = Italian;
|
|
39
63
|
exports.Japanese = Japanese;
|
|
40
|
-
exports.
|
|
64
|
+
exports.Korean = Korean;
|
|
65
|
+
exports.Norwegian = Norwegian;
|
|
66
|
+
exports.Polish = Polish;
|
|
41
67
|
exports.Russian = Russian;
|
|
42
68
|
exports.Spanish = Spanish;
|
|
69
|
+
exports.Swedish = Swedish;
|
|
43
70
|
exports.Taiwanese = Taiwanese;
|
|
71
|
+
exports.Turkish = Turkish;
|
|
44
72
|
exports["default"] = EN_TRANSLATION;
|
|
45
73
|
//# sourceMappingURL=en.json.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"en.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,28 +1,48 @@
|
|
|
1
|
-
var Arabic = "(عربي)
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
1
|
+
var Arabic = "Arabic (عربي)";
|
|
2
|
+
var Catalan = "Catalan (Català)";
|
|
3
|
+
var Chinese = "Simplified Chinese (中文)";
|
|
4
|
+
var Czech = "Czech (Čeština)";
|
|
5
|
+
var Danish = "Danish (Dansk)";
|
|
6
|
+
var Dutch = "Dutch (Nederlands)";
|
|
7
|
+
var English = "English (US)";
|
|
8
|
+
var French = "French (Français)";
|
|
9
|
+
var German = "German (Deutsch)";
|
|
10
|
+
var Greek = "Greek (Ελληνικά)";
|
|
11
|
+
var Italian = "Italian (Italiano)";
|
|
12
|
+
var Japanese = "Japanese (日本語)";
|
|
13
|
+
var Korean = "Korean (한국어)";
|
|
14
|
+
var Norwegian = "Norwegian (Norsk)";
|
|
15
|
+
var Polish = "Polish (Polski)";
|
|
16
|
+
var Russian = "Russian (Pусский)";
|
|
17
|
+
var Spanish = "Spanish (Español)";
|
|
18
|
+
var Swedish = "Swedish (Svenska)";
|
|
19
|
+
var Taiwanese = "Traditional Chinese (正體中文)";
|
|
20
|
+
var Turkish = "Turkish (Türkçe)";
|
|
13
21
|
var EN_TRANSLATION = {
|
|
14
22
|
Arabic: Arabic,
|
|
23
|
+
Catalan: Catalan,
|
|
15
24
|
Chinese: Chinese,
|
|
25
|
+
Czech: Czech,
|
|
26
|
+
Danish: Danish,
|
|
27
|
+
Dutch: Dutch,
|
|
16
28
|
English: English,
|
|
17
29
|
French: French,
|
|
18
30
|
German: German,
|
|
19
31
|
Greek: Greek,
|
|
20
32
|
Italian: Italian,
|
|
21
33
|
Japanese: Japanese,
|
|
22
|
-
|
|
34
|
+
Korean: Korean,
|
|
35
|
+
Norwegian: Norwegian,
|
|
36
|
+
Polish: Polish,
|
|
37
|
+
"Portuguese (BR)": "Portuguese (Português - Brasil)",
|
|
38
|
+
"Portuguese (PT)": "Portuguese (Português - Portugal)",
|
|
23
39
|
Russian: Russian,
|
|
24
40
|
Spanish: Spanish,
|
|
25
|
-
|
|
41
|
+
"Spanish (ES)": "Spanish (España)",
|
|
42
|
+
"Spanish (MX)": "Spanish (México)",
|
|
43
|
+
Swedish: Swedish,
|
|
44
|
+
Taiwanese: Taiwanese,
|
|
45
|
+
Turkish: Turkish
|
|
26
46
|
};
|
|
27
|
-
export { Arabic, Chinese, English, French, German, Greek, Italian, Japanese,
|
|
47
|
+
export { Arabic, Catalan, Chinese, Czech, Danish, Dutch, English, French, German, Greek, Italian, Japanese, Korean, Norwegian, Polish, Russian, Spanish, Swedish, Taiwanese, Turkish, EN_TRANSLATION as default };
|
|
28
48
|
//# sourceMappingURL=en.json.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"en.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildLanguageLink.js","sources":["../../../../../src/components/Header/LanguageFrame/utils/buildLanguageLink.ts"],"sourcesContent":["import type { Language, StoreId } from \"../../../../types\";\nimport { isLanguage } from \"../../../../utils/language\";\nimport { isStoreId } from \"../../../../utils/storeId\";\nimport { partsToPathname, pathnameToParts } from \"../../../../utils/url\";\n\nexport const buildLanguageLink = (\n contextStoreId: StoreId,\n languageKey: Language,\n href?: string,\n) => {\n try {\n // URL constructor throws Type error if URL is invalid\n const currentURL = new URL(href || window.location.href);\n\n // Get array with parts of pathname\n const pathParts = pathnameToParts(currentURL.pathname);\n\n /**\n * Check if store id and language are in the path /:storeId/:language/\n * remove from path array if so\n */\n const partsToRemove =\n (isStoreId(pathParts[0]) ? 1 : 0) + (isLanguage(pathParts[1]) ? 1 : 0);\n\n // Get the rest of the path\n const restOfPath = pathParts.slice(partsToRemove);\n\n // Build the new path array\n const newPathParts = [\n contextStoreId, // Use the storeId from the context\n languageKey,\n ...restOfPath,\n ];\n\n currentURL.pathname = partsToPathname(newPathParts);\n\n // Add language to the search params to trigger the language cookie update in all sites\n currentURL.searchParams.set(\"l\", languageKey);\n\n // Reconstruct the path and build the new URL\n return currentURL.toString().replace(currentURL.origin, \"\");\n } catch {\n // Fail silently\n return undefined;\n }\n};\n"],"names":["buildLanguageLink","contextStoreId","languageKey","href","currentURL","URL","window","location","pathParts","pathnameToParts","pathname","partsToRemove","isStoreId","isLanguage","restOfPath","slice","newPathParts","partsToPathname","searchParams","set","toString","replace","origin"],"mappings":";;;;;;AAKO,MAAMA,iBAAoB,GAAAA,CAC/BC,cACA,EAAAC,WAAA,EACAC,IACG,KAAA;EACC,IAAA;IAEF,MAAMC,aAAa,IAAIC,GAAA,CAAIF,IAAQ,IAAAG,MAAA,CAAOC,SAASJ,IAAI,CAAA;IAGjD,MAAAK,SAAA,GAAYC,GAAAA,CAAAA,eAAgB,CAAAL,UAAA,CAAWM,QAAQ,CAAA;IAMrD,MAAMC,aACH,GAAA,CAAAC,OAAAA,CAAAA,SAAA,CAAUJ,SAAU,CAAA,CAAC,CAAC,CAAA,GAAI,CAAI,GAAA,CAAA,KAAMK,QAAAA,CAAAA,UAAW,CAAAL,SAAA,CAAU,CAAC,CAAC,IAAI,CAAI,GAAA,CAAA,CAAA;IAGhE,MAAAM,UAAA,GAAaN,SAAU,CAAAO,KAAA,CAAMJ,aAAa,CAAA;IAGhD,MAAMK,YAAe,GAAA,CACnBf,cAAA;IAAA;IACAC,WAAA,EACA,GAAGY,UAAA,CACL;IAEWV,UAAA,CAAAM,QAAA,GAAWO,oBAAgBD,YAAY,CAAA;IAGvCZ,UAAA,CAAAc,YAAA,CAAaC,GAAI,CAAA,GAAA,EAAKjB,WAAW,CAAA;IAG5C,OAAOE,WAAWgB,QAAS,CAAA,CAAA,CAAEC,OAAQ,CAAAjB,UAAA,CAAWkB,QAAQ,EAAE,CAAA;EAAA,CACpD,CAAA,MAAA;
|
|
1
|
+
{"version":3,"file":"buildLanguageLink.js","sources":["../../../../../src/components/Header/LanguageFrame/utils/buildLanguageLink.ts"],"sourcesContent":["import type { Language, StoreId } from \"../../../../types\";\nimport { isLanguage } from \"../../../../utils/language\";\nimport { isStoreId } from \"../../../../utils/storeId\";\nimport { partsToPathname, pathnameToParts } from \"../../../../utils/url\";\n\nexport const buildLanguageLink = (\n contextStoreId: StoreId,\n languageKey: Language,\n href?: string,\n) => {\n try {\n // URL constructor throws Type error if URL is invalid\n const currentURL = new URL(href || window.location.href);\n\n // Get array with parts of pathname\n const pathParts = pathnameToParts(currentURL.pathname);\n\n /**\n * Check if store id and language are in the path /:storeId/:language/\n * remove from path array if so\n */\n const partsToRemove =\n (isStoreId(pathParts[0]) ? 1 : 0) + (isLanguage(pathParts[1]) ? 1 : 0);\n\n // Get the rest of the path\n const restOfPath = pathParts.slice(partsToRemove);\n\n // Build the new path array\n const newPathParts = [\n contextStoreId, // Use the storeId from the context\n languageKey,\n ...restOfPath,\n ];\n\n currentURL.pathname = partsToPathname(newPathParts);\n\n // Add language to the search params to trigger the language cookie update in all sites\n currentURL.searchParams.set(\"l\", languageKey);\n\n // Reconstruct the path and build the new URL\n return currentURL.toString().replace(currentURL.origin, \"\");\n } catch {\n console.log(\"I FALIED\");\n // Fail silently\n return undefined;\n }\n};\n"],"names":["buildLanguageLink","contextStoreId","languageKey","href","currentURL","URL","window","location","pathParts","pathnameToParts","pathname","partsToRemove","isStoreId","isLanguage","restOfPath","slice","newPathParts","partsToPathname","searchParams","set","toString","replace","origin","console","log"],"mappings":";;;;;;AAKO,MAAMA,iBAAoB,GAAAA,CAC/BC,cACA,EAAAC,WAAA,EACAC,IACG,KAAA;EACC,IAAA;IAEF,MAAMC,aAAa,IAAIC,GAAA,CAAIF,IAAQ,IAAAG,MAAA,CAAOC,SAASJ,IAAI,CAAA;IAGjD,MAAAK,SAAA,GAAYC,GAAAA,CAAAA,eAAgB,CAAAL,UAAA,CAAWM,QAAQ,CAAA;IAMrD,MAAMC,aACH,GAAA,CAAAC,OAAAA,CAAAA,SAAA,CAAUJ,SAAU,CAAA,CAAC,CAAC,CAAA,GAAI,CAAI,GAAA,CAAA,KAAMK,QAAAA,CAAAA,UAAW,CAAAL,SAAA,CAAU,CAAC,CAAC,IAAI,CAAI,GAAA,CAAA,CAAA;IAGhE,MAAAM,UAAA,GAAaN,SAAU,CAAAO,KAAA,CAAMJ,aAAa,CAAA;IAGhD,MAAMK,YAAe,GAAA,CACnBf,cAAA;IAAA;IACAC,WAAA,EACA,GAAGY,UAAA,CACL;IAEWV,UAAA,CAAAM,QAAA,GAAWO,oBAAgBD,YAAY,CAAA;IAGvCZ,UAAA,CAAAc,YAAA,CAAaC,GAAI,CAAA,GAAA,EAAKjB,WAAW,CAAA;IAG5C,OAAOE,WAAWgB,QAAS,CAAA,CAAA,CAAEC,OAAQ,CAAAjB,UAAA,CAAWkB,QAAQ,EAAE,CAAA;EAAA,CACpD,CAAA,MAAA;IACNC,OAAA,CAAQC,IAAI,UAAU,CAAA;IAEf,OAAA,KAAA,CAAA;EAAA;AAEX,CAAA;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildLanguageLink.mjs","sources":["../../../../../src/components/Header/LanguageFrame/utils/buildLanguageLink.ts"],"sourcesContent":["import type { Language, StoreId } from \"../../../../types\";\nimport { isLanguage } from \"../../../../utils/language\";\nimport { isStoreId } from \"../../../../utils/storeId\";\nimport { partsToPathname, pathnameToParts } from \"../../../../utils/url\";\n\nexport const buildLanguageLink = (\n contextStoreId: StoreId,\n languageKey: Language,\n href?: string,\n) => {\n try {\n // URL constructor throws Type error if URL is invalid\n const currentURL = new URL(href || window.location.href);\n\n // Get array with parts of pathname\n const pathParts = pathnameToParts(currentURL.pathname);\n\n /**\n * Check if store id and language are in the path /:storeId/:language/\n * remove from path array if so\n */\n const partsToRemove =\n (isStoreId(pathParts[0]) ? 1 : 0) + (isLanguage(pathParts[1]) ? 1 : 0);\n\n // Get the rest of the path\n const restOfPath = pathParts.slice(partsToRemove);\n\n // Build the new path array\n const newPathParts = [\n contextStoreId, // Use the storeId from the context\n languageKey,\n ...restOfPath,\n ];\n\n currentURL.pathname = partsToPathname(newPathParts);\n\n // Add language to the search params to trigger the language cookie update in all sites\n currentURL.searchParams.set(\"l\", languageKey);\n\n // Reconstruct the path and build the new URL\n return currentURL.toString().replace(currentURL.origin, \"\");\n } catch {\n // Fail silently\n return undefined;\n }\n};\n"],"names":["buildLanguageLink","contextStoreId","languageKey","href","currentURL","URL","window","location","pathParts","pathnameToParts","pathname","partsToRemove","isStoreId","isLanguage","restOfPath","slice","newPathParts","partsToPathname","searchParams","set","toString","replace","origin"],"mappings":";;;;AAKO,MAAMA,iBAAoB,GAAAA,CAC/BC,cACA,EAAAC,WAAA,EACAC,IACG,KAAA;EACC,IAAA;IAEF,MAAMC,aAAa,IAAIC,GAAA,CAAIF,IAAQ,IAAAG,MAAA,CAAOC,SAASJ,IAAI,CAAA;IAGjD,MAAAK,SAAA,GAAYC,eAAgB,CAAAL,UAAA,CAAWM,QAAQ,CAAA;IAMrD,MAAMC,aACH,GAAA,CAAAC,SAAA,CAAUJ,SAAU,CAAA,CAAC,CAAC,CAAA,GAAI,CAAI,GAAA,CAAA,KAAMK,UAAW,CAAAL,SAAA,CAAU,CAAC,CAAC,IAAI,CAAI,GAAA,CAAA,CAAA;IAGhE,MAAAM,UAAA,GAAaN,SAAU,CAAAO,KAAA,CAAMJ,aAAa,CAAA;IAGhD,MAAMK,YAAe,GAAA,CACnBf,cAAA;IAAA;IACAC,WAAA,EACA,GAAGY,UAAA,CACL;IAEWV,UAAA,CAAAM,QAAA,GAAWO,gBAAgBD,YAAY,CAAA;IAGvCZ,UAAA,CAAAc,YAAA,CAAaC,GAAI,CAAA,GAAA,EAAKjB,WAAW,CAAA;IAG5C,OAAOE,WAAWgB,QAAS,CAAA,CAAA,CAAEC,OAAQ,CAAAjB,UAAA,CAAWkB,QAAQ,EAAE,CAAA;EAAA,CACpD,CAAA,MAAA;
|
|
1
|
+
{"version":3,"file":"buildLanguageLink.mjs","sources":["../../../../../src/components/Header/LanguageFrame/utils/buildLanguageLink.ts"],"sourcesContent":["import type { Language, StoreId } from \"../../../../types\";\nimport { isLanguage } from \"../../../../utils/language\";\nimport { isStoreId } from \"../../../../utils/storeId\";\nimport { partsToPathname, pathnameToParts } from \"../../../../utils/url\";\n\nexport const buildLanguageLink = (\n contextStoreId: StoreId,\n languageKey: Language,\n href?: string,\n) => {\n try {\n // URL constructor throws Type error if URL is invalid\n const currentURL = new URL(href || window.location.href);\n\n // Get array with parts of pathname\n const pathParts = pathnameToParts(currentURL.pathname);\n\n /**\n * Check if store id and language are in the path /:storeId/:language/\n * remove from path array if so\n */\n const partsToRemove =\n (isStoreId(pathParts[0]) ? 1 : 0) + (isLanguage(pathParts[1]) ? 1 : 0);\n\n // Get the rest of the path\n const restOfPath = pathParts.slice(partsToRemove);\n\n // Build the new path array\n const newPathParts = [\n contextStoreId, // Use the storeId from the context\n languageKey,\n ...restOfPath,\n ];\n\n currentURL.pathname = partsToPathname(newPathParts);\n\n // Add language to the search params to trigger the language cookie update in all sites\n currentURL.searchParams.set(\"l\", languageKey);\n\n // Reconstruct the path and build the new URL\n return currentURL.toString().replace(currentURL.origin, \"\");\n } catch {\n console.log(\"I FALIED\");\n // Fail silently\n return undefined;\n }\n};\n"],"names":["buildLanguageLink","contextStoreId","languageKey","href","currentURL","URL","window","location","pathParts","pathnameToParts","pathname","partsToRemove","isStoreId","isLanguage","restOfPath","slice","newPathParts","partsToPathname","searchParams","set","toString","replace","origin","console","log"],"mappings":";;;;AAKO,MAAMA,iBAAoB,GAAAA,CAC/BC,cACA,EAAAC,WAAA,EACAC,IACG,KAAA;EACC,IAAA;IAEF,MAAMC,aAAa,IAAIC,GAAA,CAAIF,IAAQ,IAAAG,MAAA,CAAOC,SAASJ,IAAI,CAAA;IAGjD,MAAAK,SAAA,GAAYC,eAAgB,CAAAL,UAAA,CAAWM,QAAQ,CAAA;IAMrD,MAAMC,aACH,GAAA,CAAAC,SAAA,CAAUJ,SAAU,CAAA,CAAC,CAAC,CAAA,GAAI,CAAI,GAAA,CAAA,KAAMK,UAAW,CAAAL,SAAA,CAAU,CAAC,CAAC,IAAI,CAAI,GAAA,CAAA,CAAA;IAGhE,MAAAM,UAAA,GAAaN,SAAU,CAAAO,KAAA,CAAMJ,aAAa,CAAA;IAGhD,MAAMK,YAAe,GAAA,CACnBf,cAAA;IAAA;IACAC,WAAA,EACA,GAAGY,UAAA,CACL;IAEWV,UAAA,CAAAM,QAAA,GAAWO,gBAAgBD,YAAY,CAAA;IAGvCZ,UAAA,CAAAc,YAAA,CAAaC,GAAI,CAAA,GAAA,EAAKjB,WAAW,CAAA;IAG5C,OAAOE,WAAWgB,QAAS,CAAA,CAAA,CAAEC,OAAQ,CAAAjB,UAAA,CAAWkB,QAAQ,EAAE,CAAA;EAAA,CACpD,CAAA,MAAA;IACNC,OAAA,CAAQC,IAAI,UAAU,CAAA;IAEf,OAAA,KAAA,CAAA;EAAA;AAEX,CAAA;"}
|
|
@@ -42,33 +42,66 @@ const NavigationCarousel = function NavigationCarousel2({
|
|
|
42
42
|
} = useTranslation.useTranslation({
|
|
43
43
|
defaultTranslation: en["default"],
|
|
44
44
|
additionalTranslations: {
|
|
45
|
-
[constants.Language.Ja]: () => Promise.resolve().then(function () {
|
|
46
|
-
return require('../../translations/ja.json.js');
|
|
47
|
-
}).then(res => res.default),
|
|
48
45
|
[constants.Language.Ar]: () => Promise.resolve().then(function () {
|
|
49
46
|
return require('../../translations/ar.json.js');
|
|
50
47
|
}).then(res => res.default),
|
|
48
|
+
[constants.Language.Ca]: () => Promise.resolve().then(function () {
|
|
49
|
+
return require('../../translations/ca.json.js');
|
|
50
|
+
}).then(res => res.default),
|
|
51
|
+
[constants.Language.Cs]: () => Promise.resolve().then(function () {
|
|
52
|
+
return require('../../translations/cs.json.js');
|
|
53
|
+
}).then(res => res.default),
|
|
54
|
+
[constants.Language.Da]: () => Promise.resolve().then(function () {
|
|
55
|
+
return require('../../translations/da.json.js');
|
|
56
|
+
}).then(res => res.default),
|
|
57
|
+
[constants.Language.Nl]: () => Promise.resolve().then(function () {
|
|
58
|
+
return require('../../translations/nl.json.js');
|
|
59
|
+
}).then(res => res.default),
|
|
60
|
+
[constants.Language.Fr]: () => Promise.resolve().then(function () {
|
|
61
|
+
return require('../../translations/fr.json.js');
|
|
62
|
+
}).then(res => res.default),
|
|
51
63
|
[constants.Language.De]: () => Promise.resolve().then(function () {
|
|
52
64
|
return require('../../translations/de.json.js');
|
|
53
65
|
}).then(res => res.default),
|
|
54
|
-
[constants.Language.Es]: () => Promise.resolve().then(function () {
|
|
55
|
-
return require('../../translations/es.json.js');
|
|
56
|
-
}).then(res => res.default),
|
|
57
66
|
[constants.Language.El]: () => Promise.resolve().then(function () {
|
|
58
67
|
return require('../../translations/el.json.js');
|
|
59
68
|
}).then(res => res.default),
|
|
60
69
|
[constants.Language.It]: () => Promise.resolve().then(function () {
|
|
61
70
|
return require('../../translations/it.json.js');
|
|
62
71
|
}).then(res => res.default),
|
|
72
|
+
[constants.Language.Ja]: () => Promise.resolve().then(function () {
|
|
73
|
+
return require('../../translations/ja.json.js');
|
|
74
|
+
}).then(res => res.default),
|
|
75
|
+
[constants.Language.Ko]: () => Promise.resolve().then(function () {
|
|
76
|
+
return require('../../translations/ko.json.js');
|
|
77
|
+
}).then(res => res.default),
|
|
78
|
+
[constants.Language.No]: () => Promise.resolve().then(function () {
|
|
79
|
+
return require('../../translations/no.json.js');
|
|
80
|
+
}).then(res => res.default),
|
|
81
|
+
[constants.Language.Pl]: () => Promise.resolve().then(function () {
|
|
82
|
+
return require('../../translations/pl.json.js');
|
|
83
|
+
}).then(res => res.default),
|
|
63
84
|
[constants.Language.Pt]: () => Promise.resolve().then(function () {
|
|
64
85
|
return require('../../translations/pt-BR.json.js');
|
|
65
86
|
}).then(res => res.default),
|
|
87
|
+
[constants.Language.PtPt]: () => Promise.resolve().then(function () {
|
|
88
|
+
return require('../../translations/pt-PT.json.js');
|
|
89
|
+
}).then(res => res.default),
|
|
90
|
+
[constants.Language.Es]: () => Promise.resolve().then(function () {
|
|
91
|
+
return require('../../translations/es.json.js');
|
|
92
|
+
}).then(res => res.default),
|
|
93
|
+
[constants.Language.EsMx]: () => Promise.resolve().then(function () {
|
|
94
|
+
return require('../../translations/es-MX.json.js');
|
|
95
|
+
}).then(res => res.default),
|
|
96
|
+
[constants.Language.Sv]: () => Promise.resolve().then(function () {
|
|
97
|
+
return require('../../translations/sv.json.js');
|
|
98
|
+
}).then(res => res.default),
|
|
99
|
+
[constants.Language.Tr]: () => Promise.resolve().then(function () {
|
|
100
|
+
return require('../../translations/tr.json.js');
|
|
101
|
+
}).then(res => res.default),
|
|
66
102
|
[constants.Language.Zh]: () => Promise.resolve().then(function () {
|
|
67
103
|
return require('../../translations/zh-Hans.json.js');
|
|
68
104
|
}).then(res => res.default),
|
|
69
|
-
[constants.Language.Fr]: () => Promise.resolve().then(function () {
|
|
70
|
-
return require('../../translations/fr.json.js');
|
|
71
|
-
}).then(res => res.default),
|
|
72
105
|
[constants.Language.Tw]: () => Promise.resolve().then(function () {
|
|
73
106
|
return require('../../translations/zh-Hant-TW.json.js');
|
|
74
107
|
}).then(res => res.default)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Carousel.js","sources":["../../../../../src/components/Header/Navigation/Carousel/Carousel.tsx"],"sourcesContent":["import { useMemo } from \"react\";\nimport { useWindowScroll } from \"react-use\";\n\nimport { theme } from \"../../../../constants/theme\";\nimport { useMenu } from \"../../../../contexts/MenuContext\";\nimport { Language } from \"../../../../contexts/MenuContext/mapping\";\nimport type {\n ParsedNavigationSubItem,\n ParsedNavigationSubSubItem,\n} from \"../../../../contexts/MenuContext/types\";\nimport { filterOutUnrenderableItems } from \"../../../../contexts/MenuContext/utils\";\nimport { useTranslation } from \"../../../../hooks\";\nimport { ScrollWrapper } from \"../../../ScrollWrapper\";\nimport { StyleableSvgImage } from \"../../../StyleableSvgImage\";\nimport { HEADER_HEIGHT } from \"../../Header.styles\";\nimport { en as EN_TRANSLATION } from \"../../translations\";\nimport * as S from \"./Carousel.styles\";\nimport type { NavigationCarouselProps } from \"./Carousel.types\";\n\nexport const NavigationCarousel = function NavigationCarousel({\n onMenuSubItemLinkClick,\n stickyHeader,\n sticky: stickyInitial,\n headerWrapScrollTop,\n activeMenuItemId,\n useThirdLevelItems,\n showUnderline,\n motif: overrideMotif,\n className,\n}: NavigationCarouselProps) {\n const { activeNavigationSection, navigation, motif: menuMotif } = useMenu();\n\n const motif = useMemo(\n () => overrideMotif || menuMotif,\n [menuMotif, overrideMotif],\n );\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 // Active item\n // #############################################################################\n const menuItem = useMemo(() => {\n // For storybook purposes find active submenu\n if (activeMenuItemId) {\n return [...navigation.primary.items, ...navigation.secondary.items].find(\n (el) => el.id === activeMenuItemId,\n );\n }\n\n // If multiple are active for any reason, only the first found counts\n const secondLevelItems = activeNavigationSection.items.find(\n (item) => item.active,\n );\n\n if (useThirdLevelItems) {\n return secondLevelItems?.items.find((item) => item.active);\n }\n\n // If multiple are active for any reason, only the first found counts\n return secondLevelItems;\n }, [\n activeMenuItemId,\n activeNavigationSection.items,\n navigation.primary.items,\n navigation.secondary.items,\n useThirdLevelItems,\n ]);\n\n // #############################################################################\n // Sticky top offset\n // #############################################################################\n const { y: scrollY } = useWindowScroll();\n\n const sticky = useMemo((): boolean => {\n if (!stickyInitial || headerWrapScrollTop == null) {\n return false;\n }\n\n if (stickyHeader) {\n return (scrollY ?? 0) >= HEADER_HEIGHT - 8;\n }\n\n // Sticky only when past the header\n return (\n headerWrapScrollTop <=\n -(HEADER_HEIGHT + S.HEADER_NAVIGATION_CAROUSEL_STICKY_TRANSITION_OFFSET)\n );\n }, [headerWrapScrollTop, scrollY, stickyHeader, stickyInitial]);\n\n // #############################################################################\n // Items to render\n // #############################################################################\n const items = useMemo(():\n | ParsedNavigationSubItem[]\n | ParsedNavigationSubSubItem[] => {\n if (!menuItem) {\n return [];\n }\n\n return filterOutUnrenderableItems(menuItem.items);\n }, [menuItem]);\n\n // #############################################################################\n // Render\n // #############################################################################\n if (!menuItem || !items.length) {\n return null;\n }\n\n return (\n <S.Wrap $motif={motif} $sticky={sticky} className={className}>\n <S.ItemsWrap\n $sticky={sticky}\n $stickyHeader={stickyHeader}\n $showUnderline={showUnderline}\n >\n <S.ItemsInnerWrap>\n <ScrollWrapper\n fillType=\"solid\"\n fillColor={theme.colors.menu.base[motif]}\n accentColor={theme.colors.menu.baseAccent[motif]}\n arrowColor={theme.colors.menu.text[motif]}\n activeIndex={items.findIndex((item) => item.active)}\n align=\"center\"\n direction=\"horizontal\"\n items={items.map((item) => ({\n id: `${menuItem.id}-${item.id}`,\n render: function Render() {\n // We sometimes need to override the icon for then the icon is super small\n const icon = item.mobileIcon ?? item.icon;\n\n // In some cases we don't want to upscale the icon, so if it's smaller use it's raw height\n const ICON_MAX_HEIGHT = 10;\n const iconHeight = icon?.useRawHeight\n ? Math.min(icon.height, ICON_MAX_HEIGHT)\n : ICON_MAX_HEIGHT;\n\n return (\n <S.ItemAnchor\n $active={item.active}\n $motif={motif}\n href={item.url}\n onClick={(e) => onMenuSubItemLinkClick?.(e, item)}\n $showUnderline={showUnderline && item.active}\n >\n {item.icon && (\n <S.ImageWrap>\n <StyleableSvgImage {...item.icon} />\n </S.ImageWrap>\n )}\n\n <S.IconLabelWrap $sticky={sticky}>\n {icon && (\n <S.SmallIconWrap $sticky={sticky} $height={iconHeight}>\n <StyleableSvgImage\n {...icon}\n renderedHeight={iconHeight}\n />\n </S.SmallIconWrap>\n )}\n <S.Label\n $sticky={sticky}\n $horizontalPlacement={\n // Allow to customise mode, even for isNew\n \"subLabelCollapseMode\" in item\n ? item.subLabelCollapseMode\n ? item.subLabelCollapseMode === \"horizontal\"\n : // Fallback to isNew behavior\n item.isNew\n : false\n }\n >\n {item.label}\n {\"subLabel\" in item && item.subLabel && (\n <S.SubLabel\n $motif={motif}\n $blue={item.subLabelTheme === \"blue\"}\n >\n {formatMessage(\n item.subLabel as keyof typeof EN_TRANSLATION,\n )}\n </S.SubLabel>\n )}\n {((\"subLabel\" in item && !item.subLabel) ||\n !(\"subLabel\" in item)) &&\n \"isNew\" in item &&\n item.isNew && (\n <S.SubLabel $motif={motif} $blue>\n {formatMessage(\"New\")}\n </S.SubLabel>\n )}\n </S.Label>\n </S.IconLabelWrap>\n </S.ItemAnchor>\n );\n },\n }))}\n />\n </S.ItemsInnerWrap>\n </S.ItemsWrap>\n </S.Wrap>\n );\n};\n"],"names":["NavigationCarousel","NavigationCarousel2","onMenuSubItemLinkClick","stickyHeader","sticky","stickyInitial","headerWrapScrollTop","activeMenuItemId","useThirdLevelItems","showUnderline","motif","overrideMotif","className","activeNavigationSection","navigation","menuMotif","useMenu","useMemo","formatMessage","useTranslation","defaultTranslation","EN_TRANSLATION","additionalTranslations","Language","Ja","Promise","then","res","default","Ar","De","Es","El","It","Pt","Zh","Fr","Tw","resolve","require","menuItem","primary","items","secondary","find","el","id","secondLevelItems","item","active","y","scrollY","useWindowScroll","HEADER_HEIGHT","S.HEADER_NAVIGATION_CAROUSEL_STICKY_TRANSITION_OFFSET","filterOutUnrenderableItems","length","jsx","S.Wrap","$motif","$sticky","children","S.ItemsWrap","ItemsWrap","$stickyHeader","$showUnderline","S.ItemsInnerWrap","ScrollWrapper","fillType","fillColor","theme","colors","menu","base","accentColor","baseAccent","arrowColor","text","activeIndex","findIndex","align","direction","map","render","Render","icon","mobileIcon","ICON_MAX_HEIGHT","iconHeight","useRawHeight","Math","min","height","jsxs","S.ItemAnchor","ItemAnchor","$active","href","url","onClick","e","S.ImageWrap","StyleableSvgImage","S.IconLabelWrap","S.SmallIconWrap","$height","renderedHeight","S.Label","Label","$horizontalPlacement","subLabelCollapseMode","isNew","label","subLabel","S.SubLabel","SubLabel","$blue","subLabelTheme"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAmBa,MAAAA,kBAAA,GAAqB,SAASA,mBAAmBC,CAAA;EAC5DC,sBAAA;EACAC,YAAA;EACAC,MAAQ,EAAAC,aAAA;EACRC,mBAAA;EACAC,gBAAA;EACAC,kBAAA;EACAC,aAAA;EACAC,KAAO,EAAAC,aAAA;EACPC;AACF,CAA4B,EAAA;EAC1B,MAAM;IAAEC,uBAAyB;IAAAC,UAAA;IAAYJ,KAAO,EAAAK;EAAA,IAAcC,OAAAA,CAAAA,OAAQ,CAAA,CAAA;EAE1E,MAAMN,KAAQ,GAAAO,KAAA,CAAAA,OAAA,CACZ,MAAMN,aAAiB,IAAAI,SAAA,EACvB,CAACA,WAAWJ,aAAa,CAC3B,CAAA;EAEM,MAAA;IAAEO;EAAc,CAAA,GAAIC,6BAAe,CAAA;IACvCC,kBAAoB,EAAAC,EAAA,CAAA,SAAA,CAAA;IACpBC,sBAAwB,EAAA;MACtB,CAACC,SAAA,CAAAA,QAAA,CAASC,EAAE,GAAG,MACbC;uBAAO,+BAA4B,CAAA;MAAA,CAAA,CAAA,CAAEC,IAAK,CAACC,GAAQ,IAAAA,GAAA,CAAIC,OAAO,CAAA;MAChE,CAACL,SAAA,CAAAA,QAAA,CAASM,EAAE,GAAG,MACbJ;uBAAO,+BAA4B,CAAA;MAAA,CAAA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B;oBAAA,CAAA;mBAEpB,CAAA,EAAA,eAEFK,UAAA,CAAAA,IAAA,CAACc,eAAE,CAAAC,KAAA,EAAF;oBACChD,OAAS,EAAAxD,MAAA;oBACTyG,oBAAA;oBAAA;oBAEE,sBAA0B,IAAA7D,IAAA,GACtBA,IAAK,CAAA8D,oBAAA,GACH9D,KAAK8D,oBAAyB,KAAA,YAAA;oBAAA;oBAE9B9D,IAAK,CAAA+D,KACP,GAAA,KAAA;oBAGLlD,QAAA,EAAA,CAAKb,IAAA,CAAAgE,KAAA,EACL,UAAA,IAAchE,IAAQ,IAAAA,IAAA,CAAKiE,QAC1B,mBAAAxD,UAAA,CAAAA,GAAA,CAACyD,eAAE,CAAAC,QAAA,EAAF;sBACCxD,MAAQ,EAAAjD,KAAA;sBACR0G,KAAA,EAAOpE,KAAKqE,aAAkB,KAAA,MAAA;sBAE7BxD,QAAA,EAAA3C,aAAA,CACC8B,IAAK,CAAAiE,QAAA;oBACP,CACF,CAAA,EAEC,CAAA,UAAA,IAAcjE,QAAQ,CAACA,IAAA,CAAKiE,YAC7B,EAAE,UAAA,IAAcjE,IAChB,CAAA,KAAA,OAAA,IAAWA,IACX,IAAAA,IAAA,CAAK+D,wBACFtD,cAAA,CAAAyD,eAAAA,CAAAA,UAAA;sBAAWvD,MAAA,EAAQjD;sBAAO0G,KAAK,EAAA,IAAA;sBAC7BvD,QAAc,EAAA3C,aAAA,CAAA,KAAK;oBACtB,CAAA,CAAA;kBAAA,CAAA,CAAA;gBAGR,CAAA,CAAA;cAAA,CACF,CAAA;YAAA;UAEJ,CACA,CAAA;QAAA,CAAA;MAEN,CAAA;IAAA,CAAA;GAEJ,CAAA;AAEJ,CAAA;"}
|
|
1
|
+
{"version":3,"file":"Carousel.js","sources":["../../../../../src/components/Header/Navigation/Carousel/Carousel.tsx"],"sourcesContent":["import { useMemo } from \"react\";\nimport { useWindowScroll } from \"react-use\";\n\nimport { theme } from \"../../../../constants/theme\";\nimport { useMenu } from \"../../../../contexts/MenuContext\";\nimport { Language } from \"../../../../contexts/MenuContext/mapping\";\nimport type {\n ParsedNavigationSubItem,\n ParsedNavigationSubSubItem,\n} from \"../../../../contexts/MenuContext/types\";\nimport { filterOutUnrenderableItems } from \"../../../../contexts/MenuContext/utils\";\nimport { useTranslation } from \"../../../../hooks\";\nimport { ScrollWrapper } from \"../../../ScrollWrapper\";\nimport { StyleableSvgImage } from \"../../../StyleableSvgImage\";\nimport { HEADER_HEIGHT } from \"../../Header.styles\";\nimport { en as EN_TRANSLATION } from \"../../translations\";\nimport * as S from \"./Carousel.styles\";\nimport type { NavigationCarouselProps } from \"./Carousel.types\";\n\nexport const NavigationCarousel = function NavigationCarousel({\n onMenuSubItemLinkClick,\n stickyHeader,\n sticky: stickyInitial,\n headerWrapScrollTop,\n activeMenuItemId,\n useThirdLevelItems,\n showUnderline,\n motif: overrideMotif,\n className,\n}: NavigationCarouselProps) {\n const { activeNavigationSection, navigation, motif: menuMotif } = useMenu();\n\n const motif = useMemo(\n () => overrideMotif || menuMotif,\n [menuMotif, overrideMotif],\n );\n\n const { formatMessage } = useTranslation({\n defaultTranslation: EN_TRANSLATION,\n additionalTranslations: {\n [Language.Ar]: () =>\n import(\"../../translations/ar.json\").then((res) => res.default),\n [Language.Ca]: () =>\n import(\"../../translations/ca.json\").then((res) => res.default),\n [Language.Cs]: () =>\n import(\"../../translations/cs.json\").then((res) => res.default),\n [Language.Da]: () =>\n import(\"../../translations/da.json\").then((res) => res.default),\n [Language.Nl]: () =>\n import(\"../../translations/nl.json\").then((res) => res.default),\n [Language.Fr]: () =>\n import(\"../../translations/fr.json\").then((res) => res.default),\n [Language.De]: () =>\n import(\"../../translations/de.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.Ja]: () =>\n import(\"../../translations/ja.json\").then((res) => res.default),\n [Language.Ko]: () =>\n import(\"../../translations/ko.json\").then((res) => res.default),\n [Language.No]: () =>\n import(\"../../translations/no.json\").then((res) => res.default),\n [Language.Pl]: () =>\n import(\"../../translations/pl.json\").then((res) => res.default),\n [Language.Pt]: () =>\n import(\"../../translations/pt-BR.json\").then((res) => res.default),\n [Language.PtPt]: () =>\n import(\"../../translations/pt-PT.json\").then((res) => res.default),\n [Language.Es]: () =>\n import(\"../../translations/es.json\").then((res) => res.default),\n [Language.EsMx]: () =>\n import(\"../../translations/es-MX.json\").then((res) => res.default),\n [Language.Sv]: () =>\n import(\"../../translations/sv.json\").then((res) => res.default),\n [Language.Tr]: () =>\n import(\"../../translations/tr.json\").then((res) => res.default),\n [Language.Zh]: () =>\n import(\"../../translations/zh-Hans.json\").then((res) => res.default),\n [Language.Tw]: () =>\n import(\"../../translations/zh-Hant-TW.json\").then((res) => res.default),\n },\n });\n\n // #############################################################################\n // Active item\n // #############################################################################\n const menuItem = useMemo(() => {\n // For storybook purposes find active submenu\n if (activeMenuItemId) {\n return [...navigation.primary.items, ...navigation.secondary.items].find(\n (el) => el.id === activeMenuItemId,\n );\n }\n\n // If multiple are active for any reason, only the first found counts\n const secondLevelItems = activeNavigationSection.items.find(\n (item) => item.active,\n );\n\n if (useThirdLevelItems) {\n return secondLevelItems?.items.find((item) => item.active);\n }\n\n // If multiple are active for any reason, only the first found counts\n return secondLevelItems;\n }, [\n activeMenuItemId,\n activeNavigationSection.items,\n navigation.primary.items,\n navigation.secondary.items,\n useThirdLevelItems,\n ]);\n\n // #############################################################################\n // Sticky top offset\n // #############################################################################\n const { y: scrollY } = useWindowScroll();\n\n const sticky = useMemo((): boolean => {\n if (!stickyInitial || headerWrapScrollTop == null) {\n return false;\n }\n\n if (stickyHeader) {\n return (scrollY ?? 0) >= HEADER_HEIGHT - 8;\n }\n\n // Sticky only when past the header\n return (\n headerWrapScrollTop <=\n -(HEADER_HEIGHT + S.HEADER_NAVIGATION_CAROUSEL_STICKY_TRANSITION_OFFSET)\n );\n }, [headerWrapScrollTop, scrollY, stickyHeader, stickyInitial]);\n\n // #############################################################################\n // Items to render\n // #############################################################################\n const items = useMemo(():\n | ParsedNavigationSubItem[]\n | ParsedNavigationSubSubItem[] => {\n if (!menuItem) {\n return [];\n }\n\n return filterOutUnrenderableItems(menuItem.items);\n }, [menuItem]);\n\n // #############################################################################\n // Render\n // #############################################################################\n if (!menuItem || !items.length) {\n return null;\n }\n\n return (\n <S.Wrap $motif={motif} $sticky={sticky} className={className}>\n <S.ItemsWrap\n $sticky={sticky}\n $stickyHeader={stickyHeader}\n $showUnderline={showUnderline}\n >\n <S.ItemsInnerWrap>\n <ScrollWrapper\n fillType=\"solid\"\n fillColor={theme.colors.menu.base[motif]}\n accentColor={theme.colors.menu.baseAccent[motif]}\n arrowColor={theme.colors.menu.text[motif]}\n activeIndex={items.findIndex((item) => item.active)}\n align=\"center\"\n direction=\"horizontal\"\n items={items.map((item) => ({\n id: `${menuItem.id}-${item.id}`,\n render: function Render() {\n // We sometimes need to override the icon for then the icon is super small\n const icon = item.mobileIcon ?? item.icon;\n\n // In some cases we don't want to upscale the icon, so if it's smaller use it's raw height\n const ICON_MAX_HEIGHT = 10;\n const iconHeight = icon?.useRawHeight\n ? Math.min(icon.height, ICON_MAX_HEIGHT)\n : ICON_MAX_HEIGHT;\n\n return (\n <S.ItemAnchor\n $active={item.active}\n $motif={motif}\n href={item.url}\n onClick={(e) => onMenuSubItemLinkClick?.(e, item)}\n $showUnderline={showUnderline && item.active}\n >\n {item.icon && (\n <S.ImageWrap>\n <StyleableSvgImage {...item.icon} />\n </S.ImageWrap>\n )}\n\n <S.IconLabelWrap $sticky={sticky}>\n {icon && (\n <S.SmallIconWrap $sticky={sticky} $height={iconHeight}>\n <StyleableSvgImage\n {...icon}\n renderedHeight={iconHeight}\n />\n </S.SmallIconWrap>\n )}\n <S.Label\n $sticky={sticky}\n $horizontalPlacement={\n // Allow to customise mode, even for isNew\n \"subLabelCollapseMode\" in item\n ? item.subLabelCollapseMode\n ? item.subLabelCollapseMode === \"horizontal\"\n : // Fallback to isNew behavior\n item.isNew\n : false\n }\n >\n {item.label}\n {\"subLabel\" in item && item.subLabel && (\n <S.SubLabel\n $motif={motif}\n $blue={item.subLabelTheme === \"blue\"}\n >\n {formatMessage(\n item.subLabel as keyof typeof EN_TRANSLATION,\n )}\n </S.SubLabel>\n )}\n {((\"subLabel\" in item && !item.subLabel) ||\n !(\"subLabel\" in item)) &&\n \"isNew\" in item &&\n item.isNew && (\n <S.SubLabel $motif={motif} $blue>\n {formatMessage(\"New\")}\n </S.SubLabel>\n )}\n </S.Label>\n </S.IconLabelWrap>\n </S.ItemAnchor>\n );\n },\n }))}\n />\n </S.ItemsInnerWrap>\n </S.ItemsWrap>\n </S.Wrap>\n );\n};\n"],"names":["NavigationCarousel","NavigationCarousel2","onMenuSubItemLinkClick","stickyHeader","sticky","stickyInitial","headerWrapScrollTop","activeMenuItemId","useThirdLevelItems","showUnderline","motif","overrideMotif","className","activeNavigationSection","navigation","menuMotif","useMenu","useMemo","formatMessage","useTranslation","defaultTranslation","EN_TRANSLATION","additionalTranslations","Language","Ar","Promise","then","res","default","Ca","Cs","Da","Nl","Fr","De","El","It","Ja","Ko","No","Pl","Pt","PtPt","Es","EsMx","Sv","Tr","Zh","Tw","resolve","require","menuItem","primary","items","secondary","find","el","id","secondLevelItems","item","active","y","scrollY","useWindowScroll","HEADER_HEIGHT","S.HEADER_NAVIGATION_CAROUSEL_STICKY_TRANSITION_OFFSET","filterOutUnrenderableItems","length","jsx","S.Wrap","$motif","$sticky","children","S.ItemsWrap","ItemsWrap","$stickyHeader","$showUnderline","S.ItemsInnerWrap","ScrollWrapper","fillType","fillColor","theme","colors","menu","base","accentColor","baseAccent","arrowColor","text","activeIndex","findIndex","align","direction","map","render","Render","icon","mobileIcon","ICON_MAX_HEIGHT","iconHeight","useRawHeight","Math","min","height","jsxs","S.ItemAnchor","ItemAnchor","$active","href","url","onClick","e","S.ImageWrap","StyleableSvgImage","S.IconLabelWrap","S.SmallIconWrap","$height","renderedHeight","S.Label","Label","$horizontalPlacement","subLabelCollapseMode","isNew","label","subLabel","S.SubLabel","SubLabel","$blue","subLabelTheme"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAmBa,MAAAA,kBAAA,GAAqB,SAASA,mBAAmBC,CAAA;EAC5DC,sBAAA;EACAC,YAAA;EACAC,MAAQ,EAAAC,aAAA;EACRC,mBAAA;EACAC,gBAAA;EACAC,kBAAA;EACAC,aAAA;EACAC,KAAO,EAAAC,aAAA;EACPC;AACF,CAA4B,EAAA;EAC1B,MAAM;IAAEC,uBAAyB;IAAAC,UAAA;IAAYJ,KAAO,EAAAK;EAAA,IAAcC,OAAAA,CAAAA,OAAQ,CAAA,CAAA;EAE1E,MAAMN,KAAQ,GAAAO,KAAA,CAAAA,OAAA,CACZ,MAAMN,aAAiB,IAAAI,SAAA,EACvB,CAACA,WAAWJ,aAAa,CAC3B,CAAA;EAEM,MAAA;IAAEO;EAAc,CAAA,GAAIC,6BAAe,CAAA;IACvCC,kBAAoB,EAAAC,EAAA,CAAA,SAAA,CAAA;IACpBC,sBAAwB,EAAA;MACtB,CAACC,SAAA,CAAAA,QAAA,CAASC,EAAE,GAAG,MACbC;uBAAO,+BAA4B,CAAA;MAAA,CAAA,CAAA,CAAEC,IAAK,CAACC,GAAQ,IAAAA,GAAA,CAAIC,OAAO,CAAA;MAChE,CAACL,SAAA,CAAAA,QAAA,CAASM,EAAE,GAAG,MACbJ;uBAAO,+BAA4B,CAAA;MAAA,CAAA,CAAA,CAAEC,IAAK,CAACC,GAAQ,IAAAA,GAAA,CAAIC,OAAO,CAAA;MAChE,CAACL,SAAA,CAAAA,QAAA,CAASO,EAAE,GAAG,MACbL;uBAAO,+BAA4B,CAAA;MAAA,CAAA,CAAA,CAAEC,IAAK,CAACC,GAAQ,IAAAA,GAAA,CAAIC,OAAO,CAAA;MAChE,CAACL,SAAA,CAAAA,QAAA,CAASQ,EAAE,GAAG,MACbN;uBAAO,+BAA4B,CAAA;MAAA,CAAA,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
|
@@ -40,15 +40,26 @@ const NavigationCarousel = function NavigationCarousel2({
|
|
|
40
40
|
} = useTranslation({
|
|
41
41
|
defaultTranslation: EN_TRANSLATION,
|
|
42
42
|
additionalTranslations: {
|
|
43
|
-
[Language.Ja]: () => import('../../translations/ja.json.mjs').then(res => res.default),
|
|
44
43
|
[Language.Ar]: () => import('../../translations/ar.json.mjs').then(res => res.default),
|
|
44
|
+
[Language.Ca]: () => import('../../translations/ca.json.mjs').then(res => res.default),
|
|
45
|
+
[Language.Cs]: () => import('../../translations/cs.json.mjs').then(res => res.default),
|
|
46
|
+
[Language.Da]: () => import('../../translations/da.json.mjs').then(res => res.default),
|
|
47
|
+
[Language.Nl]: () => import('../../translations/nl.json.mjs').then(res => res.default),
|
|
48
|
+
[Language.Fr]: () => import('../../translations/fr.json.mjs').then(res => res.default),
|
|
45
49
|
[Language.De]: () => import('../../translations/de.json.mjs').then(res => res.default),
|
|
46
|
-
[Language.Es]: () => import('../../translations/es.json.mjs').then(res => res.default),
|
|
47
50
|
[Language.El]: () => import('../../translations/el.json.mjs').then(res => res.default),
|
|
48
51
|
[Language.It]: () => import('../../translations/it.json.mjs').then(res => res.default),
|
|
52
|
+
[Language.Ja]: () => import('../../translations/ja.json.mjs').then(res => res.default),
|
|
53
|
+
[Language.Ko]: () => import('../../translations/ko.json.mjs').then(res => res.default),
|
|
54
|
+
[Language.No]: () => import('../../translations/no.json.mjs').then(res => res.default),
|
|
55
|
+
[Language.Pl]: () => import('../../translations/pl.json.mjs').then(res => res.default),
|
|
49
56
|
[Language.Pt]: () => import('../../translations/pt-BR.json.mjs').then(res => res.default),
|
|
57
|
+
[Language.PtPt]: () => import('../../translations/pt-PT.json.mjs').then(res => res.default),
|
|
58
|
+
[Language.Es]: () => import('../../translations/es.json.mjs').then(res => res.default),
|
|
59
|
+
[Language.EsMx]: () => import('../../translations/es-MX.json.mjs').then(res => res.default),
|
|
60
|
+
[Language.Sv]: () => import('../../translations/sv.json.mjs').then(res => res.default),
|
|
61
|
+
[Language.Tr]: () => import('../../translations/tr.json.mjs').then(res => res.default),
|
|
50
62
|
[Language.Zh]: () => import('../../translations/zh-Hans.json.mjs').then(res => res.default),
|
|
51
|
-
[Language.Fr]: () => import('../../translations/fr.json.mjs').then(res => res.default),
|
|
52
63
|
[Language.Tw]: () => import('../../translations/zh-Hant-TW.json.mjs').then(res => res.default)
|
|
53
64
|
}
|
|
54
65
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Carousel.mjs","sources":["../../../../../src/components/Header/Navigation/Carousel/Carousel.tsx"],"sourcesContent":["import { useMemo } from \"react\";\nimport { useWindowScroll } from \"react-use\";\n\nimport { theme } from \"../../../../constants/theme\";\nimport { useMenu } from \"../../../../contexts/MenuContext\";\nimport { Language } from \"../../../../contexts/MenuContext/mapping\";\nimport type {\n ParsedNavigationSubItem,\n ParsedNavigationSubSubItem,\n} from \"../../../../contexts/MenuContext/types\";\nimport { filterOutUnrenderableItems } from \"../../../../contexts/MenuContext/utils\";\nimport { useTranslation } from \"../../../../hooks\";\nimport { ScrollWrapper } from \"../../../ScrollWrapper\";\nimport { StyleableSvgImage } from \"../../../StyleableSvgImage\";\nimport { HEADER_HEIGHT } from \"../../Header.styles\";\nimport { en as EN_TRANSLATION } from \"../../translations\";\nimport * as S from \"./Carousel.styles\";\nimport type { NavigationCarouselProps } from \"./Carousel.types\";\n\nexport const NavigationCarousel = function NavigationCarousel({\n onMenuSubItemLinkClick,\n stickyHeader,\n sticky: stickyInitial,\n headerWrapScrollTop,\n activeMenuItemId,\n useThirdLevelItems,\n showUnderline,\n motif: overrideMotif,\n className,\n}: NavigationCarouselProps) {\n const { activeNavigationSection, navigation, motif: menuMotif } = useMenu();\n\n const motif = useMemo(\n () => overrideMotif || menuMotif,\n [menuMotif, overrideMotif],\n );\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 // Active item\n // #############################################################################\n const menuItem = useMemo(() => {\n // For storybook purposes find active submenu\n if (activeMenuItemId) {\n return [...navigation.primary.items, ...navigation.secondary.items].find(\n (el) => el.id === activeMenuItemId,\n );\n }\n\n // If multiple are active for any reason, only the first found counts\n const secondLevelItems = activeNavigationSection.items.find(\n (item) => item.active,\n );\n\n if (useThirdLevelItems) {\n return secondLevelItems?.items.find((item) => item.active);\n }\n\n // If multiple are active for any reason, only the first found counts\n return secondLevelItems;\n }, [\n activeMenuItemId,\n activeNavigationSection.items,\n navigation.primary.items,\n navigation.secondary.items,\n useThirdLevelItems,\n ]);\n\n // #############################################################################\n // Sticky top offset\n // #############################################################################\n const { y: scrollY } = useWindowScroll();\n\n const sticky = useMemo((): boolean => {\n if (!stickyInitial || headerWrapScrollTop == null) {\n return false;\n }\n\n if (stickyHeader) {\n return (scrollY ?? 0) >= HEADER_HEIGHT - 8;\n }\n\n // Sticky only when past the header\n return (\n headerWrapScrollTop <=\n -(HEADER_HEIGHT + S.HEADER_NAVIGATION_CAROUSEL_STICKY_TRANSITION_OFFSET)\n );\n }, [headerWrapScrollTop, scrollY, stickyHeader, stickyInitial]);\n\n // #############################################################################\n // Items to render\n // #############################################################################\n const items = useMemo(():\n | ParsedNavigationSubItem[]\n | ParsedNavigationSubSubItem[] => {\n if (!menuItem) {\n return [];\n }\n\n return filterOutUnrenderableItems(menuItem.items);\n }, [menuItem]);\n\n // #############################################################################\n // Render\n // #############################################################################\n if (!menuItem || !items.length) {\n return null;\n }\n\n return (\n <S.Wrap $motif={motif} $sticky={sticky} className={className}>\n <S.ItemsWrap\n $sticky={sticky}\n $stickyHeader={stickyHeader}\n $showUnderline={showUnderline}\n >\n <S.ItemsInnerWrap>\n <ScrollWrapper\n fillType=\"solid\"\n fillColor={theme.colors.menu.base[motif]}\n accentColor={theme.colors.menu.baseAccent[motif]}\n arrowColor={theme.colors.menu.text[motif]}\n activeIndex={items.findIndex((item) => item.active)}\n align=\"center\"\n direction=\"horizontal\"\n items={items.map((item) => ({\n id: `${menuItem.id}-${item.id}`,\n render: function Render() {\n // We sometimes need to override the icon for then the icon is super small\n const icon = item.mobileIcon ?? item.icon;\n\n // In some cases we don't want to upscale the icon, so if it's smaller use it's raw height\n const ICON_MAX_HEIGHT = 10;\n const iconHeight = icon?.useRawHeight\n ? Math.min(icon.height, ICON_MAX_HEIGHT)\n : ICON_MAX_HEIGHT;\n\n return (\n <S.ItemAnchor\n $active={item.active}\n $motif={motif}\n href={item.url}\n onClick={(e) => onMenuSubItemLinkClick?.(e, item)}\n $showUnderline={showUnderline && item.active}\n >\n {item.icon && (\n <S.ImageWrap>\n <StyleableSvgImage {...item.icon} />\n </S.ImageWrap>\n )}\n\n <S.IconLabelWrap $sticky={sticky}>\n {icon && (\n <S.SmallIconWrap $sticky={sticky} $height={iconHeight}>\n <StyleableSvgImage\n {...icon}\n renderedHeight={iconHeight}\n />\n </S.SmallIconWrap>\n )}\n <S.Label\n $sticky={sticky}\n $horizontalPlacement={\n // Allow to customise mode, even for isNew\n \"subLabelCollapseMode\" in item\n ? item.subLabelCollapseMode\n ? item.subLabelCollapseMode === \"horizontal\"\n : // Fallback to isNew behavior\n item.isNew\n : false\n }\n >\n {item.label}\n {\"subLabel\" in item && item.subLabel && (\n <S.SubLabel\n $motif={motif}\n $blue={item.subLabelTheme === \"blue\"}\n >\n {formatMessage(\n item.subLabel as keyof typeof EN_TRANSLATION,\n )}\n </S.SubLabel>\n )}\n {((\"subLabel\" in item && !item.subLabel) ||\n !(\"subLabel\" in item)) &&\n \"isNew\" in item &&\n item.isNew && (\n <S.SubLabel $motif={motif} $blue>\n {formatMessage(\"New\")}\n </S.SubLabel>\n )}\n </S.Label>\n </S.IconLabelWrap>\n </S.ItemAnchor>\n );\n },\n }))}\n />\n </S.ItemsInnerWrap>\n </S.ItemsWrap>\n </S.Wrap>\n );\n};\n"],"names":["NavigationCarousel","NavigationCarousel2","onMenuSubItemLinkClick","stickyHeader","sticky","stickyInitial","headerWrapScrollTop","activeMenuItemId","useThirdLevelItems","showUnderline","motif","overrideMotif","className","activeNavigationSection","navigation","menuMotif","useMenu","useMemo","formatMessage","useTranslation","defaultTranslation","EN_TRANSLATION","additionalTranslations","Language","Ja","then","res","default","Ar","De","Es","El","It","Pt","Zh","Fr","Tw","menuItem","primary","items","secondary","find","el","id","secondLevelItems","item","active","y","scrollY","useWindowScroll","HEADER_HEIGHT","S.HEADER_NAVIGATION_CAROUSEL_STICKY_TRANSITION_OFFSET","filterOutUnrenderableItems","length","jsx","S.Wrap","$motif","$sticky","children","S.ItemsWrap","$stickyHeader","$showUnderline","S.ItemsInnerWrap","ScrollWrapper","fillType","fillColor","theme","colors","menu","base","accentColor","baseAccent","arrowColor","text","activeIndex","findIndex","align","direction","map","render","Render","icon","mobileIcon","ICON_MAX_HEIGHT","iconHeight","useRawHeight","Math","min","height","jsxs","S.ItemAnchor","$active","href","url","onClick","e","S.ImageWrap","StyleableSvgImage","S.IconLabelWrap","S.SmallIconWrap","$height","renderedHeight","S.Label","$horizontalPlacement","subLabelCollapseMode","isNew","label","subLabel","S.SubLabel","$blue","subLabelTheme"],"mappings":";;;;;;;;;;;;;;;;;;;;AAmBa,MAAAA,kBAAA,GAAqB,SAASA,mBAAm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,CAAA,EAAA,eAEFK,IAAA,CAACa,KAAE,EAAF;oBACC7C,OAAS,EAAArD,MAAA;oBACTmG,oBAAA;oBAAA;oBAEE,sBAA0B,IAAA1D,IAAA,GACtBA,IAAK,CAAA2D,oBAAA,GACH3D,KAAK2D,oBAAyB,KAAA,YAAA;oBAAA;oBAE9B3D,IAAK,CAAA4D,KACP,GAAA,KAAA;oBAGL/C,QAAA,EAAA,CAAKb,IAAA,CAAA6D,KAAA,EACL,UAAA,IAAc7D,IAAQ,IAAAA,IAAA,CAAK8D,QAC1B,mBAAArD,GAAA,CAACsD,QAAE,EAAF;sBACCpD,MAAQ,EAAA9C,KAAA;sBACRmG,KAAA,EAAOhE,KAAKiE,aAAkB,KAAA,MAAA;sBAE7BpD,QAAA,EAAAxC,aAAA,CACC2B,IAAK,CAAA8D,QAAA;oBACP,CACF,CAAA,EAEC,CAAA,UAAA,IAAc9D,QAAQ,CAACA,IAAA,CAAK8D,YAC7B,EAAE,UAAA,IAAc9D,IAChB,CAAA,KAAA,OAAA,IAAWA,IACX,IAAAA,IAAA,CAAK4D,wBACFnD,GAAA,CAAAsD,UAAA;sBAAWpD,MAAA,EAAQ9C;sBAAOmG,KAAK,EAAA,IAAA;sBAC7BnD,QAAc,EAAAxC,aAAA,CAAA,KAAK;oBACtB,CAAA,CAAA;kBAAA,CAAA,CAAA;gBAGR,CAAA,CAAA;cAAA,CACF,CAAA;YAAA;UAEJ,CACA,CAAA;QAAA,CAAA;MAEN,CAAA;IAAA,CAAA;GAEJ,CAAA;AAEJ,CAAA;"}
|
|
1
|
+
{"version":3,"file":"Carousel.mjs","sources":["../../../../../src/components/Header/Navigation/Carousel/Carousel.tsx"],"sourcesContent":["import { useMemo } from \"react\";\nimport { useWindowScroll } from \"react-use\";\n\nimport { theme } from \"../../../../constants/theme\";\nimport { useMenu } from \"../../../../contexts/MenuContext\";\nimport { Language } from \"../../../../contexts/MenuContext/mapping\";\nimport type {\n ParsedNavigationSubItem,\n ParsedNavigationSubSubItem,\n} from \"../../../../contexts/MenuContext/types\";\nimport { filterOutUnrenderableItems } from \"../../../../contexts/MenuContext/utils\";\nimport { useTranslation } from \"../../../../hooks\";\nimport { ScrollWrapper } from \"../../../ScrollWrapper\";\nimport { StyleableSvgImage } from \"../../../StyleableSvgImage\";\nimport { HEADER_HEIGHT } from \"../../Header.styles\";\nimport { en as EN_TRANSLATION } from \"../../translations\";\nimport * as S from \"./Carousel.styles\";\nimport type { NavigationCarouselProps } from \"./Carousel.types\";\n\nexport const NavigationCarousel = function NavigationCarousel({\n onMenuSubItemLinkClick,\n stickyHeader,\n sticky: stickyInitial,\n headerWrapScrollTop,\n activeMenuItemId,\n useThirdLevelItems,\n showUnderline,\n motif: overrideMotif,\n className,\n}: NavigationCarouselProps) {\n const { activeNavigationSection, navigation, motif: menuMotif } = useMenu();\n\n const motif = useMemo(\n () => overrideMotif || menuMotif,\n [menuMotif, overrideMotif],\n );\n\n const { formatMessage } = useTranslation({\n defaultTranslation: EN_TRANSLATION,\n additionalTranslations: {\n [Language.Ar]: () =>\n import(\"../../translations/ar.json\").then((res) => res.default),\n [Language.Ca]: () =>\n import(\"../../translations/ca.json\").then((res) => res.default),\n [Language.Cs]: () =>\n import(\"../../translations/cs.json\").then((res) => res.default),\n [Language.Da]: () =>\n import(\"../../translations/da.json\").then((res) => res.default),\n [Language.Nl]: () =>\n import(\"../../translations/nl.json\").then((res) => res.default),\n [Language.Fr]: () =>\n import(\"../../translations/fr.json\").then((res) => res.default),\n [Language.De]: () =>\n import(\"../../translations/de.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.Ja]: () =>\n import(\"../../translations/ja.json\").then((res) => res.default),\n [Language.Ko]: () =>\n import(\"../../translations/ko.json\").then((res) => res.default),\n [Language.No]: () =>\n import(\"../../translations/no.json\").then((res) => res.default),\n [Language.Pl]: () =>\n import(\"../../translations/pl.json\").then((res) => res.default),\n [Language.Pt]: () =>\n import(\"../../translations/pt-BR.json\").then((res) => res.default),\n [Language.PtPt]: () =>\n import(\"../../translations/pt-PT.json\").then((res) => res.default),\n [Language.Es]: () =>\n import(\"../../translations/es.json\").then((res) => res.default),\n [Language.EsMx]: () =>\n import(\"../../translations/es-MX.json\").then((res) => res.default),\n [Language.Sv]: () =>\n import(\"../../translations/sv.json\").then((res) => res.default),\n [Language.Tr]: () =>\n import(\"../../translations/tr.json\").then((res) => res.default),\n [Language.Zh]: () =>\n import(\"../../translations/zh-Hans.json\").then((res) => res.default),\n [Language.Tw]: () =>\n import(\"../../translations/zh-Hant-TW.json\").then((res) => res.default),\n },\n });\n\n // #############################################################################\n // Active item\n // #############################################################################\n const menuItem = useMemo(() => {\n // For storybook purposes find active submenu\n if (activeMenuItemId) {\n return [...navigation.primary.items, ...navigation.secondary.items].find(\n (el) => el.id === activeMenuItemId,\n );\n }\n\n // If multiple are active for any reason, only the first found counts\n const secondLevelItems = activeNavigationSection.items.find(\n (item) => item.active,\n );\n\n if (useThirdLevelItems) {\n return secondLevelItems?.items.find((item) => item.active);\n }\n\n // If multiple are active for any reason, only the first found counts\n return secondLevelItems;\n }, [\n activeMenuItemId,\n activeNavigationSection.items,\n navigation.primary.items,\n navigation.secondary.items,\n useThirdLevelItems,\n ]);\n\n // #############################################################################\n // Sticky top offset\n // #############################################################################\n const { y: scrollY } = useWindowScroll();\n\n const sticky = useMemo((): boolean => {\n if (!stickyInitial || headerWrapScrollTop == null) {\n return false;\n }\n\n if (stickyHeader) {\n return (scrollY ?? 0) >= HEADER_HEIGHT - 8;\n }\n\n // Sticky only when past the header\n return (\n headerWrapScrollTop <=\n -(HEADER_HEIGHT + S.HEADER_NAVIGATION_CAROUSEL_STICKY_TRANSITION_OFFSET)\n );\n }, [headerWrapScrollTop, scrollY, stickyHeader, stickyInitial]);\n\n // #############################################################################\n // Items to render\n // #############################################################################\n const items = useMemo(():\n | ParsedNavigationSubItem[]\n | ParsedNavigationSubSubItem[] => {\n if (!menuItem) {\n return [];\n }\n\n return filterOutUnrenderableItems(menuItem.items);\n }, [menuItem]);\n\n // #############################################################################\n // Render\n // #############################################################################\n if (!menuItem || !items.length) {\n return null;\n }\n\n return (\n <S.Wrap $motif={motif} $sticky={sticky} className={className}>\n <S.ItemsWrap\n $sticky={sticky}\n $stickyHeader={stickyHeader}\n $showUnderline={showUnderline}\n >\n <S.ItemsInnerWrap>\n <ScrollWrapper\n fillType=\"solid\"\n fillColor={theme.colors.menu.base[motif]}\n accentColor={theme.colors.menu.baseAccent[motif]}\n arrowColor={theme.colors.menu.text[motif]}\n activeIndex={items.findIndex((item) => item.active)}\n align=\"center\"\n direction=\"horizontal\"\n items={items.map((item) => ({\n id: `${menuItem.id}-${item.id}`,\n render: function Render() {\n // We sometimes need to override the icon for then the icon is super small\n const icon = item.mobileIcon ?? item.icon;\n\n // In some cases we don't want to upscale the icon, so if it's smaller use it's raw height\n const ICON_MAX_HEIGHT = 10;\n const iconHeight = icon?.useRawHeight\n ? Math.min(icon.height, ICON_MAX_HEIGHT)\n : ICON_MAX_HEIGHT;\n\n return (\n <S.ItemAnchor\n $active={item.active}\n $motif={motif}\n href={item.url}\n onClick={(e) => onMenuSubItemLinkClick?.(e, item)}\n $showUnderline={showUnderline && item.active}\n >\n {item.icon && (\n <S.ImageWrap>\n <StyleableSvgImage {...item.icon} />\n </S.ImageWrap>\n )}\n\n <S.IconLabelWrap $sticky={sticky}>\n {icon && (\n <S.SmallIconWrap $sticky={sticky} $height={iconHeight}>\n <StyleableSvgImage\n {...icon}\n renderedHeight={iconHeight}\n />\n </S.SmallIconWrap>\n )}\n <S.Label\n $sticky={sticky}\n $horizontalPlacement={\n // Allow to customise mode, even for isNew\n \"subLabelCollapseMode\" in item\n ? item.subLabelCollapseMode\n ? item.subLabelCollapseMode === \"horizontal\"\n : // Fallback to isNew behavior\n item.isNew\n : false\n }\n >\n {item.label}\n {\"subLabel\" in item && item.subLabel && (\n <S.SubLabel\n $motif={motif}\n $blue={item.subLabelTheme === \"blue\"}\n >\n {formatMessage(\n item.subLabel as keyof typeof EN_TRANSLATION,\n )}\n </S.SubLabel>\n )}\n {((\"subLabel\" in item && !item.subLabel) ||\n !(\"subLabel\" in item)) &&\n \"isNew\" in item &&\n item.isNew && (\n <S.SubLabel $motif={motif} $blue>\n {formatMessage(\"New\")}\n </S.SubLabel>\n )}\n </S.Label>\n </S.IconLabelWrap>\n </S.ItemAnchor>\n );\n },\n }))}\n />\n </S.ItemsInnerWrap>\n </S.ItemsWrap>\n </S.Wrap>\n );\n};\n"],"names":["NavigationCarousel","NavigationCarousel2","onMenuSubItemLinkClick","stickyHeader","sticky","stickyInitial","headerWrapScrollTop","activeMenuItemId","useThirdLevelItems","showUnderline","motif","overrideMotif","className","activeNavigationSection","navigation","menuMotif","useMenu","useMemo","formatMessage","useTranslation","defaultTranslation","EN_TRANSLATION","additionalTranslations","Language","Ar","then","res","default","Ca","Cs","Da","Nl","Fr","De","El","It","Ja","Ko","No","Pl","Pt","PtPt","Es","EsMx","Sv","Tr","Zh","Tw","menuItem","primary","items","secondary","find","el","id","secondLevelItems","item","active","y","scrollY","useWindowScroll","HEADER_HEIGHT","S.HEADER_NAVIGATION_CAROUSEL_STICKY_TRANSITION_OFFSET","filterOutUnrenderableItems","length","jsx","S.Wrap","$motif","$sticky","children","S.ItemsWrap","$stickyHeader","$showUnderline","S.ItemsInnerWrap","ScrollWrapper","fillType","fillColor","theme","colors","menu","base","accentColor","baseAccent","arrowColor","text","activeIndex","findIndex","align","direction","map","render","Render","icon","mobileIcon","ICON_MAX_HEIGHT","iconHeight","useRawHeight","Math","min","height","jsxs","S.ItemAnchor","$active","href","url","onClick","e","S.ImageWrap","StyleableSvgImage","S.IconLabelWrap","S.SmallIconWrap","$height","renderedHeight","S.Label","$horizontalPlacement","subLabelCollapseMode","isNew","label","subLabel","S.SubLabel","$blue","subLabelTheme"],"mappings":";;;;;;;;;;;;;;;;;;;;AAmBa,MAA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
36
36
|
additionalTranslations: {
|
|
37
|
-
[constants.Language.Ja]: () => Promise.resolve().then(function () {
|
|
38
|
-
return require('../../translations/ja.json.js');
|
|
39
|
-
}).then(res => res.default),
|
|
40
37
|
[constants.Language.Ar]: () => Promise.resolve().then(function () {
|
|
41
38
|
return require('../../translations/ar.json.js');
|
|
42
39
|
}).then(res => res.default),
|
|
40
|
+
[constants.Language.Ca]: () => Promise.resolve().then(function () {
|
|
41
|
+
return require('../../translations/ca.json.js');
|
|
42
|
+
}).then(res => res.default),
|
|
43
|
+
[constants.Language.Cs]: () => Promise.resolve().then(function () {
|
|
44
|
+
return require('../../translations/cs.json.js');
|
|
45
|
+
}).then(res => res.default),
|
|
46
|
+
[constants.Language.Da]: () => Promise.resolve().then(function () {
|
|
47
|
+
return require('../../translations/da.json.js');
|
|
48
|
+
}).then(res => res.default),
|
|
49
|
+
[constants.Language.Nl]: () => Promise.resolve().then(function () {
|
|
50
|
+
return require('../../translations/nl.json.js');
|
|
51
|
+
}).then(res => res.default),
|
|
52
|
+
[constants.Language.Fr]: () => Promise.resolve().then(function () {
|
|
53
|
+
return require('../../translations/fr.json.js');
|
|
54
|
+
}).then(res => res.default),
|
|
43
55
|
[constants.Language.De]: () => Promise.resolve().then(function () {
|
|
44
56
|
return require('../../translations/de.json.js');
|
|
45
57
|
}).then(res => res.default),
|
|
46
|
-
[constants.Language.Es]: () => Promise.resolve().then(function () {
|
|
47
|
-
return require('../../translations/es.json.js');
|
|
48
|
-
}).then(res => res.default),
|
|
49
58
|
[constants.Language.El]: () => Promise.resolve().then(function () {
|
|
50
59
|
return require('../../translations/el.json.js');
|
|
51
60
|
}).then(res => res.default),
|
|
52
61
|
[constants.Language.It]: () => Promise.resolve().then(function () {
|
|
53
62
|
return require('../../translations/it.json.js');
|
|
54
63
|
}).then(res => res.default),
|
|
64
|
+
[constants.Language.Ja]: () => Promise.resolve().then(function () {
|
|
65
|
+
return require('../../translations/ja.json.js');
|
|
66
|
+
}).then(res => res.default),
|
|
67
|
+
[constants.Language.Ko]: () => Promise.resolve().then(function () {
|
|
68
|
+
return require('../../translations/ko.json.js');
|
|
69
|
+
}).then(res => res.default),
|
|
70
|
+
[constants.Language.No]: () => Promise.resolve().then(function () {
|
|
71
|
+
return require('../../translations/no.json.js');
|
|
72
|
+
}).then(res => res.default),
|
|
73
|
+
[constants.Language.Pl]: () => Promise.resolve().then(function () {
|
|
74
|
+
return require('../../translations/pl.json.js');
|
|
75
|
+
}).then(res => res.default),
|
|
55
76
|
[constants.Language.Pt]: () => Promise.resolve().then(function () {
|
|
56
77
|
return require('../../translations/pt-BR.json.js');
|
|
57
78
|
}).then(res => res.default),
|
|
79
|
+
[constants.Language.PtPt]: () => Promise.resolve().then(function () {
|
|
80
|
+
return require('../../translations/pt-PT.json.js');
|
|
81
|
+
}).then(res => res.default),
|
|
82
|
+
[constants.Language.Es]: () => Promise.resolve().then(function () {
|
|
83
|
+
return require('../../translations/es.json.js');
|
|
84
|
+
}).then(res => res.default),
|
|
85
|
+
[constants.Language.EsMx]: () => Promise.resolve().then(function () {
|
|
86
|
+
return require('../../translations/es-MX.json.js');
|
|
87
|
+
}).then(res => res.default),
|
|
88
|
+
[constants.Language.Sv]: () => Promise.resolve().then(function () {
|
|
89
|
+
return require('../../translations/sv.json.js');
|
|
90
|
+
}).then(res => res.default),
|
|
91
|
+
[constants.Language.Tr]: () => Promise.resolve().then(function () {
|
|
92
|
+
return require('../../translations/tr.json.js');
|
|
93
|
+
}).then(res => res.default),
|
|
58
94
|
[constants.Language.Zh]: () => Promise.resolve().then(function () {
|
|
59
95
|
return require('../../translations/zh-Hans.json.js');
|
|
60
96
|
}).then(res => res.default),
|
|
61
|
-
[constants.Language.Fr]: () => Promise.resolve().then(function () {
|
|
62
|
-
return require('../../translations/fr.json.js');
|
|
63
|
-
}).then(res => res.default),
|
|
64
97
|
[constants.Language.Tw]: () => Promise.resolve().then(function () {
|
|
65
98
|
return require('../../translations/zh-Hant-TW.json.js');
|
|
66
99
|
}).then(res => res.default)
|