@ubnt/store.core 11.26.0-beta.0 → 11.26.0-beta.10
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 +45 -0
- package/lib/assets/ai-360.jpg +0 -0
- package/lib/assets/ai-3602.jpg +0 -0
- package/lib/assets/ai-lpr.jpg +0 -0
- package/lib/assets/ai-lpr2.jpg +0 -0
- package/lib/assets/ai-theta-pro.jpg +0 -0
- package/lib/assets/ai-theta-pro2.jpg +0 -0
- package/lib/assets/ai-theta.jpg +0 -0
- package/lib/assets/ai-theta2.jpg +0 -0
- package/lib/assets/ai-theta3.jpg +0 -0
- package/lib/assets/g2-reader-pro.jpg +0 -0
- package/lib/assets/g2-reader-pro2.jpg +0 -0
- package/lib/assets/g2-reader.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-starter-kit-pro.jpg +0 -0
- package/lib/assets/g3-starter-kit-pro2.jpg +0 -0
- package/lib/assets/g4-instant.jpg +0 -0
- package/lib/assets/g4-instant2.jpg +0 -0
- package/lib/assets/g4-ptz.jpg +0 -0
- package/lib/assets/g4-ptz2.jpg +0 -0
- package/lib/assets/g5-flex.jpg +0 -0
- package/lib/assets/g5-flex2.jpg +0 -0
- package/lib/assets/intercom.jpg +0 -0
- package/lib/assets/intercom2.jpg +0 -0
- package/lib/assets/outlet.svg +1 -0
- package/lib/assets/retrofit-hub.jpg +0 -0
- package/lib/assets/retrofit-reader.jpg +0 -0
- package/lib/assets/ups-2u.png +0 -0
- package/lib/assets/ups-tower.png +0 -0
- package/lib/assets/ups.png +0 -0
- package/lib/components/Header/Header.js +2 -2
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/Header.mjs +2 -2
- package/lib/components/Header/Header.mjs.map +1 -1
- package/lib/constants/modelCompareData/assets/Bullet/ai-lpr.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Bullet/ai-lpr.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/CameraSecurity/ai-theta-pro.jpg.js +5 -5
- package/lib/constants/modelCompareData/assets/CameraSecurity/ai-theta-pro.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/CameraSecurity/ai-theta.jpg.js +5 -5
- package/lib/constants/modelCompareData/assets/CameraSecurity/ai-theta.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Compact/g4-instant.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Compact/g4-instant.jpg.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/DomeTurret/ai-360.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DomeTurret/ai-360.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-starter-kit-pro.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DoorAccess/g3-starter-kit-pro.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DoorAccess/intercom.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DoorAccess/intercom.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Interior/ai-theta-pro.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Interior/ai-theta-pro.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/g4-ptz.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/PTZ/g4-ptz.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/UPS/ups-2u.png.js +27 -0
- package/lib/constants/modelCompareData/assets/UPS/ups-2u.png.js.map +1 -0
- package/lib/constants/modelCompareData/assets/UPS/ups-2u.png.mjs +3 -0
- package/lib/constants/modelCompareData/assets/UPS/ups-2u.png.mjs.map +1 -0
- package/lib/constants/modelCompareData/assets/UPS/ups-tower.png.js +27 -0
- package/lib/constants/modelCompareData/assets/UPS/ups-tower.png.js.map +1 -0
- package/lib/constants/modelCompareData/assets/UPS/ups-tower.png.mjs +3 -0
- package/lib/constants/modelCompareData/assets/UPS/ups-tower.png.mjs.map +1 -0
- package/lib/constants/modelCompareData/assets/outlet.svg.js +27 -0
- package/lib/constants/modelCompareData/assets/outlet.svg.js.map +1 -0
- package/lib/constants/modelCompareData/assets/outlet.svg.mjs +3 -0
- package/lib/constants/modelCompareData/assets/outlet.svg.mjs.map +1 -0
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/ai-lpr.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/ai-lpr.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/compact/g4-instant.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/compact/g4-instant.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/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-starter-kit-pro.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g3-starter-kit-pro.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/intercom.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/intercom.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/retrofit-hub.jpg.js +27 -0
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/retrofit-hub.jpg.js.map +1 -0
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/retrofit-hub.jpg.mjs +3 -0
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/retrofit-hub.jpg.mjs.map +1 -0
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/retrofit-reader.jpg.js +27 -0
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/retrofit-reader.jpg.js.map +1 -0
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/retrofit-reader.jpg.mjs +3 -0
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/retrofit-reader.jpg.mjs.map +1 -0
- 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/g4-ptz.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/ptz/g4-ptz.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/data/AccessHubs.js +2 -1
- package/lib/constants/modelCompareData/data/AccessHubs.js.map +1 -1
- package/lib/constants/modelCompareData/data/AccessHubs.mjs +2 -1
- package/lib/constants/modelCompareData/data/AccessHubs.mjs.map +1 -1
- package/lib/constants/modelCompareData/data/CameraSecurity.js +5 -5
- package/lib/constants/modelCompareData/data/CameraSecurity.mjs +3 -3
- package/lib/constants/modelCompareData/data/Readers.js +2 -1
- package/lib/constants/modelCompareData/data/Readers.js.map +1 -1
- package/lib/constants/modelCompareData/data/Readers.mjs +2 -1
- package/lib/constants/modelCompareData/data/Readers.mjs.map +1 -1
- package/lib/constants/modelCompareData/data/UPS.d.ts +2 -0
- package/lib/constants/modelCompareData/data/UPS.js +22 -0
- package/lib/constants/modelCompareData/data/UPS.js.map +1 -0
- package/lib/constants/modelCompareData/data/UPS.mjs +20 -0
- package/lib/constants/modelCompareData/data/UPS.mjs.map +1 -0
- package/lib/constants/modelCompareData/data/index.d.ts +1 -0
- package/lib/constants/modelCompareData/data/index.js +2 -0
- package/lib/constants/modelCompareData/data/index.js.map +1 -1
- package/lib/constants/modelCompareData/data/index.mjs +1 -0
- package/lib/constants/modelCompareData/data/index.mjs.map +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/aiLpr.js +2 -2
- package/lib/constants/modelCompareData/data/products/aiLpr.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/g3ReaderPro.js +2 -2
- package/lib/constants/modelCompareData/data/products/g3ReaderPro.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g3StarterKitPro.js +2 -2
- package/lib/constants/modelCompareData/data/products/g3StarterKitPro.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g4Instant.js +2 -2
- package/lib/constants/modelCompareData/data/products/g4Instant.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g4Ptz.js +2 -2
- package/lib/constants/modelCompareData/data/products/g4Ptz.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/intercom.js +2 -2
- package/lib/constants/modelCompareData/data/products/intercom.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/retrofitHub.d.ts +2 -0
- package/lib/constants/modelCompareData/data/products/retrofitHub.js +82 -0
- package/lib/constants/modelCompareData/data/products/retrofitHub.js.map +1 -0
- package/lib/constants/modelCompareData/data/products/retrofitHub.mjs +74 -0
- package/lib/constants/modelCompareData/data/products/retrofitHub.mjs.map +1 -0
- package/lib/constants/modelCompareData/data/products/retrofitReader.d.ts +2 -0
- package/lib/constants/modelCompareData/data/products/retrofitReader.js +118 -0
- package/lib/constants/modelCompareData/data/products/retrofitReader.js.map +1 -0
- package/lib/constants/modelCompareData/data/products/retrofitReader.mjs +110 -0
- package/lib/constants/modelCompareData/data/products/retrofitReader.mjs.map +1 -0
- 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/thetaPro.js +1 -1
- package/lib/constants/modelCompareData/data/products/thetaPro.mjs +1 -1
- package/lib/constants/modelCompareData/data/products/ups2u.d.ts +2 -0
- package/lib/constants/modelCompareData/data/products/ups2u.js +88 -0
- package/lib/constants/modelCompareData/data/products/ups2u.js.map +1 -0
- package/lib/constants/modelCompareData/data/products/ups2u.mjs +80 -0
- package/lib/constants/modelCompareData/data/products/ups2u.mjs.map +1 -0
- package/lib/constants/modelCompareData/data/products/upsTower.d.ts +2 -0
- package/lib/constants/modelCompareData/data/products/upsTower.js +86 -0
- package/lib/constants/modelCompareData/data/products/upsTower.js.map +1 -0
- package/lib/constants/modelCompareData/data/products/upsTower.mjs +78 -0
- package/lib/constants/modelCompareData/data/products/upsTower.mjs.map +1 -0
- package/lib/constants/modelCompareData/data/properties/capacity.d.ts +2 -0
- package/lib/constants/modelCompareData/data/properties/capacity.js +18 -0
- package/lib/constants/modelCompareData/data/properties/capacity.js.map +1 -0
- package/lib/constants/modelCompareData/data/properties/capacity.mjs +10 -0
- package/lib/constants/modelCompareData/data/properties/capacity.mjs.map +1 -0
- package/lib/constants/modelCompareData/data/properties/fieldReplaceableBattery.d.ts +2 -0
- package/lib/constants/modelCompareData/data/properties/fieldReplaceableBattery.js +18 -0
- package/lib/constants/modelCompareData/data/properties/fieldReplaceableBattery.js.map +1 -0
- package/lib/constants/modelCompareData/data/properties/fieldReplaceableBattery.mjs +10 -0
- package/lib/constants/modelCompareData/data/properties/fieldReplaceableBattery.mjs.map +1 -0
- package/lib/constants/modelCompareData/data/properties/hotSwappableBattery.d.ts +2 -0
- package/lib/constants/modelCompareData/data/properties/hotSwappableBattery.js +18 -0
- package/lib/constants/modelCompareData/data/properties/hotSwappableBattery.js.map +1 -0
- package/lib/constants/modelCompareData/data/properties/hotSwappableBattery.mjs +10 -0
- package/lib/constants/modelCompareData/data/properties/hotSwappableBattery.mjs.map +1 -0
- package/lib/constants/modelCompareData/data/properties/index.d.ts +5 -0
- package/lib/constants/modelCompareData/data/properties/index.js +10 -0
- package/lib/constants/modelCompareData/data/properties/index.js.map +1 -1
- package/lib/constants/modelCompareData/data/properties/index.mjs +5 -0
- package/lib/constants/modelCompareData/data/properties/index.mjs.map +1 -1
- package/lib/constants/modelCompareData/data/properties/nutSupport.d.ts +2 -0
- package/lib/constants/modelCompareData/data/properties/nutSupport.js +18 -0
- package/lib/constants/modelCompareData/data/properties/nutSupport.js.map +1 -0
- package/lib/constants/modelCompareData/data/properties/nutSupport.mjs +10 -0
- package/lib/constants/modelCompareData/data/properties/nutSupport.mjs.map +1 -0
- package/lib/constants/modelCompareData/data/properties/power.d.ts +2 -0
- package/lib/constants/modelCompareData/data/properties/power.js +18 -0
- package/lib/constants/modelCompareData/data/properties/power.js.map +1 -0
- package/lib/constants/modelCompareData/data/properties/power.mjs +10 -0
- package/lib/constants/modelCompareData/data/properties/power.mjs.map +1 -0
- package/lib/constants/modelCompareData/translations/ar.json.js +11 -3
- package/lib/constants/modelCompareData/translations/ar.json.js.map +1 -1
- package/lib/constants/modelCompareData/translations/ar.json.mjs +11 -3
- package/lib/constants/modelCompareData/translations/ar.json.mjs.map +1 -1
- package/lib/constants/modelCompareData/translations/ca.json.js +10 -2
- package/lib/constants/modelCompareData/translations/ca.json.js.map +1 -1
- package/lib/constants/modelCompareData/translations/ca.json.mjs +10 -2
- package/lib/constants/modelCompareData/translations/ca.json.mjs.map +1 -1
- package/lib/constants/modelCompareData/translations/cs.json.js +10 -2
- package/lib/constants/modelCompareData/translations/cs.json.js.map +1 -1
- package/lib/constants/modelCompareData/translations/cs.json.mjs +10 -2
- package/lib/constants/modelCompareData/translations/cs.json.mjs.map +1 -1
- package/lib/constants/modelCompareData/translations/da.json.js +10 -2
- package/lib/constants/modelCompareData/translations/da.json.js.map +1 -1
- package/lib/constants/modelCompareData/translations/da.json.mjs +10 -2
- package/lib/constants/modelCompareData/translations/da.json.mjs.map +1 -1
- package/lib/constants/modelCompareData/translations/de.json.js +10 -2
- package/lib/constants/modelCompareData/translations/de.json.js.map +1 -1
- package/lib/constants/modelCompareData/translations/de.json.mjs +10 -2
- package/lib/constants/modelCompareData/translations/de.json.mjs.map +1 -1
- package/lib/constants/modelCompareData/translations/el.json.js +10 -2
- package/lib/constants/modelCompareData/translations/el.json.js.map +1 -1
- package/lib/constants/modelCompareData/translations/el.json.mjs +10 -2
- package/lib/constants/modelCompareData/translations/el.json.mjs.map +1 -1
- package/lib/constants/modelCompareData/translations/en.json.js +22 -2
- package/lib/constants/modelCompareData/translations/en.json.js.map +1 -1
- package/lib/constants/modelCompareData/translations/en.json.mjs +22 -2
- package/lib/constants/modelCompareData/translations/en.json.mjs.map +1 -1
- package/lib/constants/modelCompareData/translations/es-ES.json.js +10 -2
- package/lib/constants/modelCompareData/translations/es-ES.json.js.map +1 -1
- package/lib/constants/modelCompareData/translations/es-ES.json.mjs +10 -2
- package/lib/constants/modelCompareData/translations/es-ES.json.mjs.map +1 -1
- package/lib/constants/modelCompareData/translations/es-MX.json.js +10 -2
- package/lib/constants/modelCompareData/translations/es-MX.json.js.map +1 -1
- package/lib/constants/modelCompareData/translations/es-MX.json.mjs +10 -2
- package/lib/constants/modelCompareData/translations/es-MX.json.mjs.map +1 -1
- package/lib/constants/modelCompareData/translations/fr.json.js +10 -2
- package/lib/constants/modelCompareData/translations/fr.json.js.map +1 -1
- package/lib/constants/modelCompareData/translations/fr.json.mjs +10 -2
- package/lib/constants/modelCompareData/translations/fr.json.mjs.map +1 -1
- package/lib/constants/modelCompareData/translations/it.json.js +10 -2
- package/lib/constants/modelCompareData/translations/it.json.js.map +1 -1
- package/lib/constants/modelCompareData/translations/it.json.mjs +10 -2
- package/lib/constants/modelCompareData/translations/it.json.mjs.map +1 -1
- package/lib/constants/modelCompareData/translations/ja.json.js +10 -2
- package/lib/constants/modelCompareData/translations/ja.json.js.map +1 -1
- package/lib/constants/modelCompareData/translations/ja.json.mjs +10 -2
- package/lib/constants/modelCompareData/translations/ja.json.mjs.map +1 -1
- package/lib/constants/modelCompareData/translations/ko.json.js +10 -2
- package/lib/constants/modelCompareData/translations/ko.json.js.map +1 -1
- package/lib/constants/modelCompareData/translations/ko.json.mjs +10 -2
- package/lib/constants/modelCompareData/translations/ko.json.mjs.map +1 -1
- package/lib/constants/modelCompareData/translations/nl.json.js +10 -2
- package/lib/constants/modelCompareData/translations/nl.json.js.map +1 -1
- package/lib/constants/modelCompareData/translations/nl.json.mjs +10 -2
- package/lib/constants/modelCompareData/translations/nl.json.mjs.map +1 -1
- package/lib/constants/modelCompareData/translations/no.json.js +10 -2
- package/lib/constants/modelCompareData/translations/no.json.js.map +1 -1
- package/lib/constants/modelCompareData/translations/no.json.mjs +10 -2
- package/lib/constants/modelCompareData/translations/no.json.mjs.map +1 -1
- package/lib/constants/modelCompareData/translations/pl.json.js +10 -2
- package/lib/constants/modelCompareData/translations/pl.json.js.map +1 -1
- package/lib/constants/modelCompareData/translations/pl.json.mjs +10 -2
- package/lib/constants/modelCompareData/translations/pl.json.mjs.map +1 -1
- package/lib/constants/modelCompareData/translations/pt-BR.json.js +10 -2
- package/lib/constants/modelCompareData/translations/pt-BR.json.js.map +1 -1
- package/lib/constants/modelCompareData/translations/pt-BR.json.mjs +10 -2
- package/lib/constants/modelCompareData/translations/pt-BR.json.mjs.map +1 -1
- package/lib/constants/modelCompareData/translations/pt-PT.json.js +10 -2
- package/lib/constants/modelCompareData/translations/pt-PT.json.js.map +1 -1
- package/lib/constants/modelCompareData/translations/pt-PT.json.mjs +10 -2
- package/lib/constants/modelCompareData/translations/pt-PT.json.mjs.map +1 -1
- package/lib/constants/modelCompareData/translations/ru.json.js +10 -2
- package/lib/constants/modelCompareData/translations/ru.json.js.map +1 -1
- package/lib/constants/modelCompareData/translations/ru.json.mjs +10 -2
- package/lib/constants/modelCompareData/translations/ru.json.mjs.map +1 -1
- package/lib/constants/modelCompareData/translations/sv.json.js +10 -2
- package/lib/constants/modelCompareData/translations/sv.json.js.map +1 -1
- package/lib/constants/modelCompareData/translations/sv.json.mjs +10 -2
- package/lib/constants/modelCompareData/translations/sv.json.mjs.map +1 -1
- package/lib/constants/modelCompareData/translations/tr.json.js +10 -2
- package/lib/constants/modelCompareData/translations/tr.json.js.map +1 -1
- package/lib/constants/modelCompareData/translations/tr.json.mjs +10 -2
- package/lib/constants/modelCompareData/translations/tr.json.mjs.map +1 -1
- package/lib/constants/modelCompareData/translations/useModelCompareTranslation.d.ts +2 -2
- package/lib/constants/modelCompareData/translations/zh-Hans.json.js +10 -2
- package/lib/constants/modelCompareData/translations/zh-Hans.json.js.map +1 -1
- package/lib/constants/modelCompareData/translations/zh-Hans.json.mjs +10 -2
- package/lib/constants/modelCompareData/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/constants/modelCompareData/translations/zh-Hant-TW.json.js +10 -2
- package/lib/constants/modelCompareData/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/constants/modelCompareData/translations/zh-Hant-TW.json.mjs +10 -2
- package/lib/constants/modelCompareData/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/constants/modelCompareData/types.d.ts +11 -2
- package/lib/constants/modelCompareData/types.js +9 -0
- package/lib/constants/modelCompareData/types.js.map +1 -1
- package/lib/constants/modelCompareData/types.mjs +9 -0
- package/lib/constants/modelCompareData/types.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.d.ts +2 -1
- package/lib/constants/proStoreCategories/mapping/index.js +9 -14
- package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.mjs +9 -14
- package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.d.ts +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.js +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.mjs +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ca.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/ca.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ca.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/ca.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/cs.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/cs.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/cs.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/cs.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/da.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/da.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/da.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/da.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/es-ES.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/es-ES.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/es-ES.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/es-ES.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/es-MX.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/es-MX.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/es-MX.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/es-MX.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ko.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/ko.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ko.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/ko.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/nl.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/nl.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/nl.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/nl.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/no.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/no.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/no.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/no.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/pl.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/pl.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/pl.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/pl.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-PT.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/pt-PT.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-PT.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/pt-PT.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ru.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/ru.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ru.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/ru.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/sv.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/sv.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/sv.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/sv.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/tr.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/tr.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/tr.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/tr.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/contexts/MenuContext/context.js +1 -0
- package/lib/contexts/MenuContext/context.js.map +1 -1
- package/lib/contexts/MenuContext/context.mjs +1 -0
- package/lib/contexts/MenuContext/context.mjs.map +1 -1
- package/lib/contexts/MenuContext/mapping.d.ts +2 -0
- package/lib/contexts/MenuContext/mapping.js +1 -0
- package/lib/contexts/MenuContext/mapping.js.map +1 -1
- package/lib/contexts/MenuContext/mapping.mjs +1 -0
- package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
- package/lib/contexts/MenuContext/presets.d.ts +4 -0
- package/lib/contexts/MenuContext/presets.js +4 -0
- package/lib/contexts/MenuContext/presets.js.map +1 -1
- package/lib/contexts/MenuContext/presets.mjs +4 -0
- package/lib/contexts/MenuContext/presets.mjs.map +1 -1
- package/lib/contexts/MenuContext/types.d.ts +1 -0
- package/lib/contexts/MenuContext/types.js.map +1 -1
- package/lib/contexts/MenuContext/types.mjs.map +1 -1
- package/lib/contexts/MenuContext/utils.js +1 -0
- package/lib/contexts/MenuContext/utils.js.map +1 -1
- package/lib/contexts/MenuContext/utils.mjs +1 -0
- package/lib/contexts/MenuContext/utils.mjs.map +1 -1
- package/lib/contexts/MicrositeMenuContext/assets/index.d.ts +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/index.js +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/index.js.map +1 -1
- package/lib/contexts/MicrositeMenuContext/assets/index.mjs +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/index.mjs.map +1 -1
- package/lib/contexts/MicrositeMenuContext/assets/ups.png.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/ups.png.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/ups.png.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/ups.png.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/mapping.js +18 -0
- package/lib/contexts/MicrositeMenuContext/mapping.js.map +1 -1
- package/lib/contexts/MicrositeMenuContext/mapping.mjs +17 -0
- package/lib/contexts/MicrositeMenuContext/mapping.mjs.map +1 -1
- package/lib/contexts/MicrositeMenuContext/translations/en.json.js +2 -0
- package/lib/contexts/MicrositeMenuContext/translations/en.json.js.map +1 -1
- package/lib/contexts/MicrositeMenuContext/translations/en.json.mjs +2 -0
- package/lib/contexts/MicrositeMenuContext/translations/en.json.mjs.map +1 -1
- package/lib/contexts/MicrositeMenuContext/translations.d.ts +2 -2
- package/lib/utils/nextjs/navigationPresets.d.ts +13 -0
- package/lib/utils/nextjs/navigationPresets.js +26 -0
- package/lib/utils/nextjs/navigationPresets.js.map +1 -1
- package/lib/utils/nextjs/navigationPresets.mjs +26 -0
- package/lib/utils/nextjs/navigationPresets.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -90,6 +90,8 @@ var EN_TRANSLATION = {
|
|
|
90
90
|
"menu.label.newIntegrations.professionalAV": "Professional A/V",
|
|
91
91
|
"menu.label.newIntegrations.unifiDrive": "NAS",
|
|
92
92
|
"menu.label.newIntegrations.unifiDrive.description": "Lighting-fast private<br> storage.",
|
|
93
|
+
"menu.label.newIntegrations.upsSolutions": "UPS",
|
|
94
|
+
"menu.label.newIntegrations.upsSolutions.description": "Uninterruptible<br/> Power",
|
|
93
95
|
"menu.label.physicalSecurity": "Physical Security",
|
|
94
96
|
"menu.label.physicalSecurity.bullet": "Bullet",
|
|
95
97
|
"menu.label.physicalSecurity.domeTurret": "Dome & Turret",
|
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
import { Language } from "../../types";
|
|
2
2
|
export declare const useMicrositeMenuTranslations: (language: Language) => {
|
|
3
|
-
intl: import("@formatjs/intl").IntlShape<"menu.label.introduction" | "commons.whatsNew" | "menu.label.startHere.designCenter" | "menu.label.startHere.knowledgeCenter.largeProjectAssistance" | "menu.label.startHere.knowledgeCenter.professionalSupport" | "menu.label.startHere.knowledgeCenter.uispCarrierPlatform" | "commons.close" | "commons.company" | "commons.expand" | "commons.internet" | "commons.learnMore" | "commons.links" | "commons.menu.label.compare" | "commons.menu.label.compareAll" | "commons.menu.label.explore" | "commons.menu.label.new" | "commons.menu.label.overview" | "commons.social" | "commons.store" | "commons.support" | "commons.tools" | "commons.training" | "commons.viewAll" | "menu.action.label.calculateNow" | "menu.description.cloudGateways" | "menu.description.integrations" | "menu.description.physicalSecurity" | "menu.description.startHere.caseStudies.celticDoyle" | "menu.description.startHere.caseStudies.fedexForum" | "menu.description.startHere.caseStudies.fiveGuys" | "menu.description.startHere.caseStudies.tinyDino" | "menu.description.startHere.caseStudies.unifiCaseStudies" | "menu.description.startHere.designCenter.nextAiCamera" | "menu.description.startHere.designCenter.nextAiCyber" | "menu.description.startHere.designCenter.sdWanSase" | "menu.description.startHere.designCenter.siteManager" | "menu.description.startHere.resources.blog" | "menu.description.startHere.resources.enterpriseProgram" | "menu.description.startHere.resources.eventsPrograms" | "menu.description.startHere.resources.techSpecs" | "menu.description.startHere.resources.training" | "menu.description.startHere.whyUniFi.howItWorks" | "menu.description.startHere.whyUniFi.tcoCalculator" | "menu.description.switching" | "menu.description.wifi" | "menu.label.cloudGateways" | "menu.label.cloudGateways.compact" | "menu.label.cloudGateways.compact.description" | "menu.label.cloudGateways.enterpriseScale" | "menu.label.cloudGateways.enterpriseScale.description" | "menu.label.cloudGateways.identity" | "menu.label.cloudGateways.identity.description" | "menu.label.cloudGateways.largeScale" | "menu.label.cloudGateways.largeScale.description" | "menu.label.cloudGateways.overview" | "menu.label.cloudGateways.overview.description" | "menu.label.cloudGateways.wifiIntegrated" | "menu.label.cloudGateways.wifiIntegrated.description" | "menu.label.cloudGateways.wifiIntegrated.dreamRouter" | "menu.label.cloudGateways.wifiIntegrated.dreamWall" | "menu.label.cloudGateways.wifiIntegrated.express" | "menu.label.moreFromUi" | "menu.label.newIntegrations" | "menu.label.newIntegrations.accessoryTech" | "menu.label.newIntegrations.accessoryTech.accessories" | "menu.label.newIntegrations.accessoryTech.cables" | "menu.label.newIntegrations.accessoryTech.description" | "menu.label.newIntegrations.accessoryTech.installations" | "menu.label.newIntegrations.accessoryTech.rackDesigns" | "menu.label.newIntegrations.accessoryTech.storage" | "menu.label.newIntegrations.digitalSignage" | "menu.label.newIntegrations.digitalSignage.description" | "menu.label.newIntegrations.evCharging" | "menu.label.newIntegrations.evCharging.description" | "menu.label.newIntegrations.hosting" | "menu.label.newIntegrations.hosting.controlPlaneOptions" | "menu.label.newIntegrations.hosting.description" | "menu.label.newIntegrations.hosting.independentGateways" | "menu.label.newIntegrations.internetSolutions" | "menu.label.newIntegrations.internetSolutions.cableInternet" | "menu.label.newIntegrations.internetSolutions.description" | "menu.label.newIntegrations.internetSolutions.lteBackup" | "menu.label.newIntegrations.managedVoip" | "menu.label.newIntegrations.managedVoip.description" | "menu.label.newIntegrations.mobileRouting" | "menu.label.newIntegrations.mobileRouting.description" | "menu.label.newIntegrations.overview" | "menu.label.newIntegrations.overview.description" | "menu.label.newIntegrations.premiumAudio" | "menu.label.newIntegrations.premiumAudio.description" | "menu.label.newIntegrations.premiumIoT" | "menu.label.newIntegrations.premiumIoT.description" | "menu.label.newIntegrations.professionalAV" | "menu.label.newIntegrations.unifiDrive" | "menu.label.newIntegrations.unifiDrive.description" | "menu.label.physicalSecurity" | "menu.label.physicalSecurity.bullet" | "menu.label.physicalSecurity.domeTurret" | "menu.label.physicalSecurity.doorAccess" | "menu.label.physicalSecurity.overview" | "menu.label.physicalSecurity.ptz" | "menu.label.physicalSecurity.specialDevices" | "menu.label.security.bullet" | "menu.label.security.bullet.description" | "menu.label.security.domeAndTurret" | "menu.label.security.domeAndTurret.description" | "menu.label.security.doorAccess" | "menu.label.security.doorAccess.description.1" | "menu.label.security.overview.description" | "menu.label.security.ptz" | "menu.label.security.ptz.description" | "menu.label.security.specialDevices" | "menu.label.security.specialDevices.aiEnhancements" | "menu.label.security.specialDevices.compactCameras" | "menu.label.security.specialDevices.description" | "menu.label.security.specialDevices.doorbells" | "menu.label.security.specialDevices.floodlight" | "menu.label.security.specialDevices.superLink" | "menu.label.security.videoRecorders" | "menu.label.security.videoRecorders.description" | "menu.label.siteManager" | "menu.label.startHere" | "menu.label.startHere.caseStudies" | "menu.label.startHere.caseStudies.featured.celticDoyle" | "menu.label.startHere.caseStudies.featured.fedexForum" | "menu.label.startHere.caseStudies.featured.fiveGuys" | "menu.label.startHere.caseStudies.featured.shopifySummit" | "menu.label.startHere.caseStudies.featured.tinyDino" | "menu.label.startHere.caseStudies.unifiCaseStudies" | "menu.label.startHere.designCenter.description" | "menu.label.startHere.designCenter.nextAiCamera" | "menu.label.startHere.designCenter.nextAiCyber" | "menu.label.startHere.designCenter.sdWanSase" | "menu.label.startHere.designCenter.siteManager" | "menu.label.startHere.knowledgeCenter" | "menu.label.startHere.partnerHub" | "menu.label.startHere.resources" | "menu.label.startHere.resources.blog" | "menu.label.startHere.resources.eventsPrograms" | "menu.label.startHere.resources.proSupport" | "menu.label.startHere.resources.techSpecs" | "menu.label.startHere.resources.training" | "menu.label.startHere.siteMap" | "menu.label.startHere.whyUniFi" | "menu.label.startHere.whyUniFi.designCenter" | "menu.label.startHere.whyUniFi.howItWorks.large" | "menu.label.startHere.whyUniFi.howItWorks.massiveScale" | "menu.label.startHere.whyUniFi.howItWorks.multiSite" | "menu.label.startHere.whyUniFi.howItWorks.simple" | "menu.label.startHere.whyUniFi.migrationAssistance" | "menu.label.storybook.first" | "menu.label.storybook.second" | "menu.label.storybook.third" | "menu.label.switching" | "menu.label.switching.compact" | "menu.label.switching.compact.description" | "menu.label.switching.coreAggregation" | "menu.label.switching.edge" | "menu.label.switching.enterprise" | "menu.label.switching.enterprise.description" | "menu.label.switching.overview" | "menu.label.switching.overview.description" | "menu.label.switching.professional" | "menu.label.switching.professional.description" | "menu.label.switching.value" | "menu.label.switching.value.description" | "menu.label.switching.wan" | "menu.label.switching.wan.description" | "menu.label.unifi" | "menu.label.viewSiteMapTopology" | "menu.label.wifi" | "menu.label.wifi.bridging" | "menu.label.wifi.bridging.buildingBridge" | "menu.label.wifi.bridging.description" | "menu.label.wifi.bridging.deviceBridge" | "menu.label.wifi.enterprise" | "menu.label.wifi.enterprise.description" | "menu.label.wifi.flagship" | "menu.label.wifi.flagship.description" | "menu.label.wifi.megaCapacity" | "menu.label.wifi.megaCapacity.description" | "menu.label.wifi.outdoor" | "menu.label.wifi.outdoor.description" | "menu.label.wifi.overview" | "menu.label.wifi.overview.description" | "menu.label.wifi.wall" | "menu.label.wifi.wall.description" | "menu.old.cloudGateways" | "menu.siteMap.closeSiteMap" | "menu.siteMap.title" | "menu.topology.title">;
|
|
4
|
-
formatMessage: (id: "menu.label.introduction" | "commons.whatsNew" | "menu.label.startHere.designCenter" | "menu.label.startHere.knowledgeCenter.largeProjectAssistance" | "menu.label.startHere.knowledgeCenter.professionalSupport" | "menu.label.startHere.knowledgeCenter.uispCarrierPlatform" | "commons.close" | "commons.company" | "commons.expand" | "commons.internet" | "commons.learnMore" | "commons.links" | "commons.menu.label.compare" | "commons.menu.label.compareAll" | "commons.menu.label.explore" | "commons.menu.label.new" | "commons.menu.label.overview" | "commons.social" | "commons.store" | "commons.support" | "commons.tools" | "commons.training" | "commons.viewAll" | "menu.action.label.calculateNow" | "menu.description.cloudGateways" | "menu.description.integrations" | "menu.description.physicalSecurity" | "menu.description.startHere.caseStudies.celticDoyle" | "menu.description.startHere.caseStudies.fedexForum" | "menu.description.startHere.caseStudies.fiveGuys" | "menu.description.startHere.caseStudies.tinyDino" | "menu.description.startHere.caseStudies.unifiCaseStudies" | "menu.description.startHere.designCenter.nextAiCamera" | "menu.description.startHere.designCenter.nextAiCyber" | "menu.description.startHere.designCenter.sdWanSase" | "menu.description.startHere.designCenter.siteManager" | "menu.description.startHere.resources.blog" | "menu.description.startHere.resources.enterpriseProgram" | "menu.description.startHere.resources.eventsPrograms" | "menu.description.startHere.resources.techSpecs" | "menu.description.startHere.resources.training" | "menu.description.startHere.whyUniFi.howItWorks" | "menu.description.startHere.whyUniFi.tcoCalculator" | "menu.description.switching" | "menu.description.wifi" | "menu.label.cloudGateways" | "menu.label.cloudGateways.compact" | "menu.label.cloudGateways.compact.description" | "menu.label.cloudGateways.enterpriseScale" | "menu.label.cloudGateways.enterpriseScale.description" | "menu.label.cloudGateways.identity" | "menu.label.cloudGateways.identity.description" | "menu.label.cloudGateways.largeScale" | "menu.label.cloudGateways.largeScale.description" | "menu.label.cloudGateways.overview" | "menu.label.cloudGateways.overview.description" | "menu.label.cloudGateways.wifiIntegrated" | "menu.label.cloudGateways.wifiIntegrated.description" | "menu.label.cloudGateways.wifiIntegrated.dreamRouter" | "menu.label.cloudGateways.wifiIntegrated.dreamWall" | "menu.label.cloudGateways.wifiIntegrated.express" | "menu.label.moreFromUi" | "menu.label.newIntegrations" | "menu.label.newIntegrations.accessoryTech" | "menu.label.newIntegrations.accessoryTech.accessories" | "menu.label.newIntegrations.accessoryTech.cables" | "menu.label.newIntegrations.accessoryTech.description" | "menu.label.newIntegrations.accessoryTech.installations" | "menu.label.newIntegrations.accessoryTech.rackDesigns" | "menu.label.newIntegrations.accessoryTech.storage" | "menu.label.newIntegrations.digitalSignage" | "menu.label.newIntegrations.digitalSignage.description" | "menu.label.newIntegrations.evCharging" | "menu.label.newIntegrations.evCharging.description" | "menu.label.newIntegrations.hosting" | "menu.label.newIntegrations.hosting.controlPlaneOptions" | "menu.label.newIntegrations.hosting.description" | "menu.label.newIntegrations.hosting.independentGateways" | "menu.label.newIntegrations.internetSolutions" | "menu.label.newIntegrations.internetSolutions.cableInternet" | "menu.label.newIntegrations.internetSolutions.description" | "menu.label.newIntegrations.internetSolutions.lteBackup" | "menu.label.newIntegrations.managedVoip" | "menu.label.newIntegrations.managedVoip.description" | "menu.label.newIntegrations.mobileRouting" | "menu.label.newIntegrations.mobileRouting.description" | "menu.label.newIntegrations.overview" | "menu.label.newIntegrations.overview.description" | "menu.label.newIntegrations.premiumAudio" | "menu.label.newIntegrations.premiumAudio.description" | "menu.label.newIntegrations.premiumIoT" | "menu.label.newIntegrations.premiumIoT.description" | "menu.label.newIntegrations.professionalAV" | "menu.label.newIntegrations.unifiDrive" | "menu.label.newIntegrations.unifiDrive.description" | "menu.label.physicalSecurity" | "menu.label.physicalSecurity.bullet" | "menu.label.physicalSecurity.domeTurret" | "menu.label.physicalSecurity.doorAccess" | "menu.label.physicalSecurity.overview" | "menu.label.physicalSecurity.ptz" | "menu.label.physicalSecurity.specialDevices" | "menu.label.security.bullet" | "menu.label.security.bullet.description" | "menu.label.security.domeAndTurret" | "menu.label.security.domeAndTurret.description" | "menu.label.security.doorAccess" | "menu.label.security.doorAccess.description.1" | "menu.label.security.overview.description" | "menu.label.security.ptz" | "menu.label.security.ptz.description" | "menu.label.security.specialDevices" | "menu.label.security.specialDevices.aiEnhancements" | "menu.label.security.specialDevices.compactCameras" | "menu.label.security.specialDevices.description" | "menu.label.security.specialDevices.doorbells" | "menu.label.security.specialDevices.floodlight" | "menu.label.security.specialDevices.superLink" | "menu.label.security.videoRecorders" | "menu.label.security.videoRecorders.description" | "menu.label.siteManager" | "menu.label.startHere" | "menu.label.startHere.caseStudies" | "menu.label.startHere.caseStudies.featured.celticDoyle" | "menu.label.startHere.caseStudies.featured.fedexForum" | "menu.label.startHere.caseStudies.featured.fiveGuys" | "menu.label.startHere.caseStudies.featured.shopifySummit" | "menu.label.startHere.caseStudies.featured.tinyDino" | "menu.label.startHere.caseStudies.unifiCaseStudies" | "menu.label.startHere.designCenter.description" | "menu.label.startHere.designCenter.nextAiCamera" | "menu.label.startHere.designCenter.nextAiCyber" | "menu.label.startHere.designCenter.sdWanSase" | "menu.label.startHere.designCenter.siteManager" | "menu.label.startHere.knowledgeCenter" | "menu.label.startHere.partnerHub" | "menu.label.startHere.resources" | "menu.label.startHere.resources.blog" | "menu.label.startHere.resources.eventsPrograms" | "menu.label.startHere.resources.proSupport" | "menu.label.startHere.resources.techSpecs" | "menu.label.startHere.resources.training" | "menu.label.startHere.siteMap" | "menu.label.startHere.whyUniFi" | "menu.label.startHere.whyUniFi.designCenter" | "menu.label.startHere.whyUniFi.howItWorks.large" | "menu.label.startHere.whyUniFi.howItWorks.massiveScale" | "menu.label.startHere.whyUniFi.howItWorks.multiSite" | "menu.label.startHere.whyUniFi.howItWorks.simple" | "menu.label.startHere.whyUniFi.migrationAssistance" | "menu.label.storybook.first" | "menu.label.storybook.second" | "menu.label.storybook.third" | "menu.label.switching" | "menu.label.switching.compact" | "menu.label.switching.compact.description" | "menu.label.switching.coreAggregation" | "menu.label.switching.edge" | "menu.label.switching.enterprise" | "menu.label.switching.enterprise.description" | "menu.label.switching.overview" | "menu.label.switching.overview.description" | "menu.label.switching.professional" | "menu.label.switching.professional.description" | "menu.label.switching.value" | "menu.label.switching.value.description" | "menu.label.switching.wan" | "menu.label.switching.wan.description" | "menu.label.unifi" | "menu.label.viewSiteMapTopology" | "menu.label.wifi" | "menu.label.wifi.bridging" | "menu.label.wifi.bridging.buildingBridge" | "menu.label.wifi.bridging.description" | "menu.label.wifi.bridging.deviceBridge" | "menu.label.wifi.enterprise" | "menu.label.wifi.enterprise.description" | "menu.label.wifi.flagship" | "menu.label.wifi.flagship.description" | "menu.label.wifi.megaCapacity" | "menu.label.wifi.megaCapacity.description" | "menu.label.wifi.outdoor" | "menu.label.wifi.outdoor.description" | "menu.label.wifi.overview" | "menu.label.wifi.overview.description" | "menu.label.wifi.wall" | "menu.label.wifi.wall.description" | "menu.old.cloudGateways" | "menu.siteMap.closeSiteMap" | "menu.siteMap.title" | "menu.topology.title", values?: {
|
|
3
|
+
intl: import("@formatjs/intl").IntlShape<"menu.label.introduction" | "commons.whatsNew" | "menu.label.startHere.designCenter" | "menu.label.startHere.knowledgeCenter.largeProjectAssistance" | "menu.label.startHere.knowledgeCenter.professionalSupport" | "menu.label.startHere.knowledgeCenter.uispCarrierPlatform" | "commons.close" | "commons.company" | "commons.expand" | "commons.internet" | "commons.learnMore" | "commons.links" | "commons.menu.label.compare" | "commons.menu.label.compareAll" | "commons.menu.label.explore" | "commons.menu.label.new" | "commons.menu.label.overview" | "commons.social" | "commons.store" | "commons.support" | "commons.tools" | "commons.training" | "commons.viewAll" | "menu.action.label.calculateNow" | "menu.description.cloudGateways" | "menu.description.integrations" | "menu.description.physicalSecurity" | "menu.description.startHere.caseStudies.celticDoyle" | "menu.description.startHere.caseStudies.fedexForum" | "menu.description.startHere.caseStudies.fiveGuys" | "menu.description.startHere.caseStudies.tinyDino" | "menu.description.startHere.caseStudies.unifiCaseStudies" | "menu.description.startHere.designCenter.nextAiCamera" | "menu.description.startHere.designCenter.nextAiCyber" | "menu.description.startHere.designCenter.sdWanSase" | "menu.description.startHere.designCenter.siteManager" | "menu.description.startHere.resources.blog" | "menu.description.startHere.resources.enterpriseProgram" | "menu.description.startHere.resources.eventsPrograms" | "menu.description.startHere.resources.techSpecs" | "menu.description.startHere.resources.training" | "menu.description.startHere.whyUniFi.howItWorks" | "menu.description.startHere.whyUniFi.tcoCalculator" | "menu.description.switching" | "menu.description.wifi" | "menu.label.cloudGateways" | "menu.label.cloudGateways.compact" | "menu.label.cloudGateways.compact.description" | "menu.label.cloudGateways.enterpriseScale" | "menu.label.cloudGateways.enterpriseScale.description" | "menu.label.cloudGateways.identity" | "menu.label.cloudGateways.identity.description" | "menu.label.cloudGateways.largeScale" | "menu.label.cloudGateways.largeScale.description" | "menu.label.cloudGateways.overview" | "menu.label.cloudGateways.overview.description" | "menu.label.cloudGateways.wifiIntegrated" | "menu.label.cloudGateways.wifiIntegrated.description" | "menu.label.cloudGateways.wifiIntegrated.dreamRouter" | "menu.label.cloudGateways.wifiIntegrated.dreamWall" | "menu.label.cloudGateways.wifiIntegrated.express" | "menu.label.moreFromUi" | "menu.label.newIntegrations" | "menu.label.newIntegrations.accessoryTech" | "menu.label.newIntegrations.accessoryTech.accessories" | "menu.label.newIntegrations.accessoryTech.cables" | "menu.label.newIntegrations.accessoryTech.description" | "menu.label.newIntegrations.accessoryTech.installations" | "menu.label.newIntegrations.accessoryTech.rackDesigns" | "menu.label.newIntegrations.accessoryTech.storage" | "menu.label.newIntegrations.digitalSignage" | "menu.label.newIntegrations.digitalSignage.description" | "menu.label.newIntegrations.evCharging" | "menu.label.newIntegrations.evCharging.description" | "menu.label.newIntegrations.hosting" | "menu.label.newIntegrations.hosting.controlPlaneOptions" | "menu.label.newIntegrations.hosting.description" | "menu.label.newIntegrations.hosting.independentGateways" | "menu.label.newIntegrations.internetSolutions" | "menu.label.newIntegrations.internetSolutions.cableInternet" | "menu.label.newIntegrations.internetSolutions.description" | "menu.label.newIntegrations.internetSolutions.lteBackup" | "menu.label.newIntegrations.managedVoip" | "menu.label.newIntegrations.managedVoip.description" | "menu.label.newIntegrations.mobileRouting" | "menu.label.newIntegrations.mobileRouting.description" | "menu.label.newIntegrations.overview" | "menu.label.newIntegrations.overview.description" | "menu.label.newIntegrations.premiumAudio" | "menu.label.newIntegrations.premiumAudio.description" | "menu.label.newIntegrations.premiumIoT" | "menu.label.newIntegrations.premiumIoT.description" | "menu.label.newIntegrations.professionalAV" | "menu.label.newIntegrations.unifiDrive" | "menu.label.newIntegrations.unifiDrive.description" | "menu.label.newIntegrations.upsSolutions" | "menu.label.newIntegrations.upsSolutions.description" | "menu.label.physicalSecurity" | "menu.label.physicalSecurity.bullet" | "menu.label.physicalSecurity.domeTurret" | "menu.label.physicalSecurity.doorAccess" | "menu.label.physicalSecurity.overview" | "menu.label.physicalSecurity.ptz" | "menu.label.physicalSecurity.specialDevices" | "menu.label.security.bullet" | "menu.label.security.bullet.description" | "menu.label.security.domeAndTurret" | "menu.label.security.domeAndTurret.description" | "menu.label.security.doorAccess" | "menu.label.security.doorAccess.description.1" | "menu.label.security.overview.description" | "menu.label.security.ptz" | "menu.label.security.ptz.description" | "menu.label.security.specialDevices" | "menu.label.security.specialDevices.aiEnhancements" | "menu.label.security.specialDevices.compactCameras" | "menu.label.security.specialDevices.description" | "menu.label.security.specialDevices.doorbells" | "menu.label.security.specialDevices.floodlight" | "menu.label.security.specialDevices.superLink" | "menu.label.security.videoRecorders" | "menu.label.security.videoRecorders.description" | "menu.label.siteManager" | "menu.label.startHere" | "menu.label.startHere.caseStudies" | "menu.label.startHere.caseStudies.featured.celticDoyle" | "menu.label.startHere.caseStudies.featured.fedexForum" | "menu.label.startHere.caseStudies.featured.fiveGuys" | "menu.label.startHere.caseStudies.featured.shopifySummit" | "menu.label.startHere.caseStudies.featured.tinyDino" | "menu.label.startHere.caseStudies.unifiCaseStudies" | "menu.label.startHere.designCenter.description" | "menu.label.startHere.designCenter.nextAiCamera" | "menu.label.startHere.designCenter.nextAiCyber" | "menu.label.startHere.designCenter.sdWanSase" | "menu.label.startHere.designCenter.siteManager" | "menu.label.startHere.knowledgeCenter" | "menu.label.startHere.partnerHub" | "menu.label.startHere.resources" | "menu.label.startHere.resources.blog" | "menu.label.startHere.resources.eventsPrograms" | "menu.label.startHere.resources.proSupport" | "menu.label.startHere.resources.techSpecs" | "menu.label.startHere.resources.training" | "menu.label.startHere.siteMap" | "menu.label.startHere.whyUniFi" | "menu.label.startHere.whyUniFi.designCenter" | "menu.label.startHere.whyUniFi.howItWorks.large" | "menu.label.startHere.whyUniFi.howItWorks.massiveScale" | "menu.label.startHere.whyUniFi.howItWorks.multiSite" | "menu.label.startHere.whyUniFi.howItWorks.simple" | "menu.label.startHere.whyUniFi.migrationAssistance" | "menu.label.storybook.first" | "menu.label.storybook.second" | "menu.label.storybook.third" | "menu.label.switching" | "menu.label.switching.compact" | "menu.label.switching.compact.description" | "menu.label.switching.coreAggregation" | "menu.label.switching.edge" | "menu.label.switching.enterprise" | "menu.label.switching.enterprise.description" | "menu.label.switching.overview" | "menu.label.switching.overview.description" | "menu.label.switching.professional" | "menu.label.switching.professional.description" | "menu.label.switching.value" | "menu.label.switching.value.description" | "menu.label.switching.wan" | "menu.label.switching.wan.description" | "menu.label.unifi" | "menu.label.viewSiteMapTopology" | "menu.label.wifi" | "menu.label.wifi.bridging" | "menu.label.wifi.bridging.buildingBridge" | "menu.label.wifi.bridging.description" | "menu.label.wifi.bridging.deviceBridge" | "menu.label.wifi.enterprise" | "menu.label.wifi.enterprise.description" | "menu.label.wifi.flagship" | "menu.label.wifi.flagship.description" | "menu.label.wifi.megaCapacity" | "menu.label.wifi.megaCapacity.description" | "menu.label.wifi.outdoor" | "menu.label.wifi.outdoor.description" | "menu.label.wifi.overview" | "menu.label.wifi.overview.description" | "menu.label.wifi.wall" | "menu.label.wifi.wall.description" | "menu.old.cloudGateways" | "menu.siteMap.closeSiteMap" | "menu.siteMap.title" | "menu.topology.title">;
|
|
4
|
+
formatMessage: (id: "menu.label.introduction" | "commons.whatsNew" | "menu.label.startHere.designCenter" | "menu.label.startHere.knowledgeCenter.largeProjectAssistance" | "menu.label.startHere.knowledgeCenter.professionalSupport" | "menu.label.startHere.knowledgeCenter.uispCarrierPlatform" | "commons.close" | "commons.company" | "commons.expand" | "commons.internet" | "commons.learnMore" | "commons.links" | "commons.menu.label.compare" | "commons.menu.label.compareAll" | "commons.menu.label.explore" | "commons.menu.label.new" | "commons.menu.label.overview" | "commons.social" | "commons.store" | "commons.support" | "commons.tools" | "commons.training" | "commons.viewAll" | "menu.action.label.calculateNow" | "menu.description.cloudGateways" | "menu.description.integrations" | "menu.description.physicalSecurity" | "menu.description.startHere.caseStudies.celticDoyle" | "menu.description.startHere.caseStudies.fedexForum" | "menu.description.startHere.caseStudies.fiveGuys" | "menu.description.startHere.caseStudies.tinyDino" | "menu.description.startHere.caseStudies.unifiCaseStudies" | "menu.description.startHere.designCenter.nextAiCamera" | "menu.description.startHere.designCenter.nextAiCyber" | "menu.description.startHere.designCenter.sdWanSase" | "menu.description.startHere.designCenter.siteManager" | "menu.description.startHere.resources.blog" | "menu.description.startHere.resources.enterpriseProgram" | "menu.description.startHere.resources.eventsPrograms" | "menu.description.startHere.resources.techSpecs" | "menu.description.startHere.resources.training" | "menu.description.startHere.whyUniFi.howItWorks" | "menu.description.startHere.whyUniFi.tcoCalculator" | "menu.description.switching" | "menu.description.wifi" | "menu.label.cloudGateways" | "menu.label.cloudGateways.compact" | "menu.label.cloudGateways.compact.description" | "menu.label.cloudGateways.enterpriseScale" | "menu.label.cloudGateways.enterpriseScale.description" | "menu.label.cloudGateways.identity" | "menu.label.cloudGateways.identity.description" | "menu.label.cloudGateways.largeScale" | "menu.label.cloudGateways.largeScale.description" | "menu.label.cloudGateways.overview" | "menu.label.cloudGateways.overview.description" | "menu.label.cloudGateways.wifiIntegrated" | "menu.label.cloudGateways.wifiIntegrated.description" | "menu.label.cloudGateways.wifiIntegrated.dreamRouter" | "menu.label.cloudGateways.wifiIntegrated.dreamWall" | "menu.label.cloudGateways.wifiIntegrated.express" | "menu.label.moreFromUi" | "menu.label.newIntegrations" | "menu.label.newIntegrations.accessoryTech" | "menu.label.newIntegrations.accessoryTech.accessories" | "menu.label.newIntegrations.accessoryTech.cables" | "menu.label.newIntegrations.accessoryTech.description" | "menu.label.newIntegrations.accessoryTech.installations" | "menu.label.newIntegrations.accessoryTech.rackDesigns" | "menu.label.newIntegrations.accessoryTech.storage" | "menu.label.newIntegrations.digitalSignage" | "menu.label.newIntegrations.digitalSignage.description" | "menu.label.newIntegrations.evCharging" | "menu.label.newIntegrations.evCharging.description" | "menu.label.newIntegrations.hosting" | "menu.label.newIntegrations.hosting.controlPlaneOptions" | "menu.label.newIntegrations.hosting.description" | "menu.label.newIntegrations.hosting.independentGateways" | "menu.label.newIntegrations.internetSolutions" | "menu.label.newIntegrations.internetSolutions.cableInternet" | "menu.label.newIntegrations.internetSolutions.description" | "menu.label.newIntegrations.internetSolutions.lteBackup" | "menu.label.newIntegrations.managedVoip" | "menu.label.newIntegrations.managedVoip.description" | "menu.label.newIntegrations.mobileRouting" | "menu.label.newIntegrations.mobileRouting.description" | "menu.label.newIntegrations.overview" | "menu.label.newIntegrations.overview.description" | "menu.label.newIntegrations.premiumAudio" | "menu.label.newIntegrations.premiumAudio.description" | "menu.label.newIntegrations.premiumIoT" | "menu.label.newIntegrations.premiumIoT.description" | "menu.label.newIntegrations.professionalAV" | "menu.label.newIntegrations.unifiDrive" | "menu.label.newIntegrations.unifiDrive.description" | "menu.label.newIntegrations.upsSolutions" | "menu.label.newIntegrations.upsSolutions.description" | "menu.label.physicalSecurity" | "menu.label.physicalSecurity.bullet" | "menu.label.physicalSecurity.domeTurret" | "menu.label.physicalSecurity.doorAccess" | "menu.label.physicalSecurity.overview" | "menu.label.physicalSecurity.ptz" | "menu.label.physicalSecurity.specialDevices" | "menu.label.security.bullet" | "menu.label.security.bullet.description" | "menu.label.security.domeAndTurret" | "menu.label.security.domeAndTurret.description" | "menu.label.security.doorAccess" | "menu.label.security.doorAccess.description.1" | "menu.label.security.overview.description" | "menu.label.security.ptz" | "menu.label.security.ptz.description" | "menu.label.security.specialDevices" | "menu.label.security.specialDevices.aiEnhancements" | "menu.label.security.specialDevices.compactCameras" | "menu.label.security.specialDevices.description" | "menu.label.security.specialDevices.doorbells" | "menu.label.security.specialDevices.floodlight" | "menu.label.security.specialDevices.superLink" | "menu.label.security.videoRecorders" | "menu.label.security.videoRecorders.description" | "menu.label.siteManager" | "menu.label.startHere" | "menu.label.startHere.caseStudies" | "menu.label.startHere.caseStudies.featured.celticDoyle" | "menu.label.startHere.caseStudies.featured.fedexForum" | "menu.label.startHere.caseStudies.featured.fiveGuys" | "menu.label.startHere.caseStudies.featured.shopifySummit" | "menu.label.startHere.caseStudies.featured.tinyDino" | "menu.label.startHere.caseStudies.unifiCaseStudies" | "menu.label.startHere.designCenter.description" | "menu.label.startHere.designCenter.nextAiCamera" | "menu.label.startHere.designCenter.nextAiCyber" | "menu.label.startHere.designCenter.sdWanSase" | "menu.label.startHere.designCenter.siteManager" | "menu.label.startHere.knowledgeCenter" | "menu.label.startHere.partnerHub" | "menu.label.startHere.resources" | "menu.label.startHere.resources.blog" | "menu.label.startHere.resources.eventsPrograms" | "menu.label.startHere.resources.proSupport" | "menu.label.startHere.resources.techSpecs" | "menu.label.startHere.resources.training" | "menu.label.startHere.siteMap" | "menu.label.startHere.whyUniFi" | "menu.label.startHere.whyUniFi.designCenter" | "menu.label.startHere.whyUniFi.howItWorks.large" | "menu.label.startHere.whyUniFi.howItWorks.massiveScale" | "menu.label.startHere.whyUniFi.howItWorks.multiSite" | "menu.label.startHere.whyUniFi.howItWorks.simple" | "menu.label.startHere.whyUniFi.migrationAssistance" | "menu.label.storybook.first" | "menu.label.storybook.second" | "menu.label.storybook.third" | "menu.label.switching" | "menu.label.switching.compact" | "menu.label.switching.compact.description" | "menu.label.switching.coreAggregation" | "menu.label.switching.edge" | "menu.label.switching.enterprise" | "menu.label.switching.enterprise.description" | "menu.label.switching.overview" | "menu.label.switching.overview.description" | "menu.label.switching.professional" | "menu.label.switching.professional.description" | "menu.label.switching.value" | "menu.label.switching.value.description" | "menu.label.switching.wan" | "menu.label.switching.wan.description" | "menu.label.unifi" | "menu.label.viewSiteMapTopology" | "menu.label.wifi" | "menu.label.wifi.bridging" | "menu.label.wifi.bridging.buildingBridge" | "menu.label.wifi.bridging.description" | "menu.label.wifi.bridging.deviceBridge" | "menu.label.wifi.enterprise" | "menu.label.wifi.enterprise.description" | "menu.label.wifi.flagship" | "menu.label.wifi.flagship.description" | "menu.label.wifi.megaCapacity" | "menu.label.wifi.megaCapacity.description" | "menu.label.wifi.outdoor" | "menu.label.wifi.outdoor.description" | "menu.label.wifi.overview" | "menu.label.wifi.overview.description" | "menu.label.wifi.wall" | "menu.label.wifi.wall.description" | "menu.old.cloudGateways" | "menu.siteMap.closeSiteMap" | "menu.siteMap.title" | "menu.topology.title", values?: {
|
|
5
5
|
[x: string]: import("intl-messageformat").PrimitiveType | import("intl-messageformat").FormatXMLElementFn<string, string>;
|
|
6
6
|
}) => string;
|
|
7
7
|
};
|
|
@@ -117,6 +117,19 @@ export declare const getGlobalSiteConfigByEnv: (buildEnv: BuildEnv) => {
|
|
|
117
117
|
type: SiteConfigType.Basic;
|
|
118
118
|
baseUrl: string;
|
|
119
119
|
};
|
|
120
|
+
/**
|
|
121
|
+
* "installations.ui.com" site config
|
|
122
|
+
*/
|
|
123
|
+
installations: {
|
|
124
|
+
type: SiteConfigType.Regional;
|
|
125
|
+
defaultRegion: {
|
|
126
|
+
languages?: DeployedLanguages | undefined;
|
|
127
|
+
defaultLanguage?: Language | undefined;
|
|
128
|
+
type: SiteConfigType.Basic;
|
|
129
|
+
baseUrl: string;
|
|
130
|
+
};
|
|
131
|
+
regions: Record<StoreId, BasicSiteConfig | null>;
|
|
132
|
+
};
|
|
120
133
|
/**
|
|
121
134
|
* "creators.ui.com" site config
|
|
122
135
|
*/
|
|
@@ -75,6 +75,7 @@ const getDeployedLanguagesBySiteByEnv = buildEnv => {
|
|
|
75
75
|
return {
|
|
76
76
|
store: presets.STORE_DEPLOYED_LANGUAGES_LOCAL,
|
|
77
77
|
ui: presets.UI_COM_DEPLOYED_LANGUAGES_LOCAL,
|
|
78
|
+
installer: presets.UI_COM_DEPLOYED_LANGUAGES_LOCAL,
|
|
78
79
|
uwc: presets.UWC_UI_COM_DEPLOYED_LANGUAGES_LOCAL
|
|
79
80
|
// caseStudies: CASESTUDIES_UI_COM_DEPLOYED_LANGUAGES_LOCAL,
|
|
80
81
|
};
|
|
@@ -84,6 +85,7 @@ const getDeployedLanguagesBySiteByEnv = buildEnv => {
|
|
|
84
85
|
return {
|
|
85
86
|
store: presets.STORE_DEPLOYED_LANGUAGES_PROTO,
|
|
86
87
|
ui: presets.UI_COM_DEPLOYED_LANGUAGES_PROTO,
|
|
88
|
+
installer: presets.UI_COM_DEPLOYED_LANGUAGES_PROTO,
|
|
87
89
|
uwc: presets.UWC_UI_COM_DEPLOYED_LANGUAGES_PROTO
|
|
88
90
|
// caseStudies: CASESTUDIES_UI_COM_DEPLOYED_LANGUAGES_PROTO,
|
|
89
91
|
};
|
|
@@ -93,6 +95,7 @@ const getDeployedLanguagesBySiteByEnv = buildEnv => {
|
|
|
93
95
|
return {
|
|
94
96
|
store: presets.STORE_DEPLOYED_LANGUAGES_QA,
|
|
95
97
|
ui: presets.UI_COM_DEPLOYED_LANGUAGES_QA,
|
|
98
|
+
installer: presets.UI_COM_DEPLOYED_LANGUAGES_QA,
|
|
96
99
|
uwc: presets.UWC_UI_COM_DEPLOYED_LANGUAGES_QA
|
|
97
100
|
// caseStudies: CASESTUDIES_UI_COM_DEPLOYED_LANGUAGES_QA,
|
|
98
101
|
};
|
|
@@ -104,6 +107,7 @@ const getDeployedLanguagesBySiteByEnv = buildEnv => {
|
|
|
104
107
|
return {
|
|
105
108
|
store: presets.STORE_DEPLOYED_LANGUAGES_PROD,
|
|
106
109
|
ui: presets.UI_COM_DEPLOYED_LANGUAGES_PROD,
|
|
110
|
+
installer: presets.UI_COM_DEPLOYED_LANGUAGES_PROD,
|
|
107
111
|
uwc: presets.UWC_UI_COM_DEPLOYED_LANGUAGES_PROD
|
|
108
112
|
// caseStudies: CASESTUDIES_UI_COM_DEPLOYED_LANGUAGES_PROD,
|
|
109
113
|
};
|
|
@@ -114,6 +118,7 @@ const getDeployedLanguagesBySiteByEnv = buildEnv => {
|
|
|
114
118
|
return {
|
|
115
119
|
store: presets.STORE_DEPLOYED_LANGUAGES_PROD,
|
|
116
120
|
ui: presets.UI_COM_DEPLOYED_LANGUAGES_PROD,
|
|
121
|
+
installer: presets.UI_COM_DEPLOYED_LANGUAGES_PROD,
|
|
117
122
|
uwc: presets.UWC_UI_COM_DEPLOYED_LANGUAGES_PROD
|
|
118
123
|
// caseStudies: CASESTUDIES_UI_COM_DEPLOYED_LANGUAGES_PROD,
|
|
119
124
|
};
|
|
@@ -273,6 +278,27 @@ const getGlobalSiteConfigByEnv = buildEnv => {
|
|
|
273
278
|
type: types.SiteConfigType.Basic,
|
|
274
279
|
baseUrl: micrositeRootUrls.caseStudies
|
|
275
280
|
},
|
|
281
|
+
/**
|
|
282
|
+
* "installations.ui.com" site config
|
|
283
|
+
*/
|
|
284
|
+
installations: {
|
|
285
|
+
type: types.SiteConfigType.Regional,
|
|
286
|
+
defaultRegion: {
|
|
287
|
+
type: types.SiteConfigType.Basic,
|
|
288
|
+
baseUrl: micrositeRootUrls.ui,
|
|
289
|
+
...getLanguageConfig("ui", generated.StoreId.Us)
|
|
290
|
+
},
|
|
291
|
+
regions: (() => Object.values(generated.StoreId).reduce((acc, storeId) => {
|
|
292
|
+
acc[storeId] = {
|
|
293
|
+
type: types.SiteConfigType.Basic,
|
|
294
|
+
baseUrl: micrositeRootUrls.ui,
|
|
295
|
+
...getLanguageConfig("ui", storeId)
|
|
296
|
+
};
|
|
297
|
+
return acc;
|
|
298
|
+
}, {
|
|
299
|
+
...REGION_PRESET
|
|
300
|
+
}))()
|
|
301
|
+
},
|
|
276
302
|
/**
|
|
277
303
|
* "creators.ui.com" site config
|
|
278
304
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigationPresets.js","sources":["../../../src/utils/nextjs/navigationPresets.ts"],"sourcesContent":["import type {\n DeployedLanguages,\n DeployedLanguagesMapping,\n} from \"../../contexts/MenuContext/mapping\";\nimport {\n MICROSITE_ROOT_URLS_LOCAL,\n MICROSITE_ROOT_URLS_PROD,\n MICROSITE_ROOT_URLS_PROTO,\n MICROSITE_ROOT_URLS_QA,\n STORE_DEPLOYED_LANGUAGES_LOCAL,\n STORE_DEPLOYED_LANGUAGES_PROD,\n STORE_DEPLOYED_LANGUAGES_PROTO,\n STORE_DEPLOYED_LANGUAGES_QA,\n STORE_ROOT_URLS_HONEYPOT,\n STORE_ROOT_URLS_LOCAL,\n STORE_ROOT_URLS_PROD,\n STORE_ROOT_URLS_PROTO,\n STORE_ROOT_URLS_QA,\n UI_COM_DEPLOYED_LANGUAGES_LOCAL,\n UI_COM_DEPLOYED_LANGUAGES_PROD,\n UI_COM_DEPLOYED_LANGUAGES_PROTO,\n UI_COM_DEPLOYED_LANGUAGES_QA,\n UWC_UI_COM_DEPLOYED_LANGUAGES_LOCAL,\n UWC_UI_COM_DEPLOYED_LANGUAGES_PROD,\n UWC_UI_COM_DEPLOYED_LANGUAGES_PROTO,\n UWC_UI_COM_DEPLOYED_LANGUAGES_QA,\n} from \"../../contexts/MenuContext/presets\";\nimport type {\n BasicSiteConfig,\n RegionalSite,\n StaticGlobalSiteConfig,\n} from \"../../contexts/MenuContext/types\";\nimport { SiteConfigType } from \"../../contexts/MenuContext/types\";\nimport { Language, StoreId } from \"../../types\";\nimport { checkUnreachable } from \"../errors\";\nimport { isStoreId } from \"../storeId\";\n\n/**\n * Values that indicate what kind of target build environment it is\n */\nexport type BuildEnv = \"local\" | \"e2e\" | \"proto\" | \"qa\" | \"prod\" | \"honeypot\";\n\n/**\n * Get the root URLs for each store by build environment\n * @param buildEnv The build environment\n * @returns The root URLs for each store\n */\nexport const getStoreRootUrlsByEnv = (buildEnv: BuildEnv) => {\n switch (buildEnv) {\n case \"e2e\":\n case \"local\": {\n return STORE_ROOT_URLS_LOCAL;\n }\n case \"proto\": {\n return STORE_ROOT_URLS_PROTO;\n }\n case \"honeypot\": {\n return STORE_ROOT_URLS_HONEYPOT;\n }\n case \"qa\": {\n return STORE_ROOT_URLS_QA;\n }\n case undefined:\n case \"prod\": {\n return STORE_ROOT_URLS_PROD;\n }\n default: {\n checkUnreachable(buildEnv);\n return STORE_ROOT_URLS_PROD;\n }\n }\n};\n\n/**\n * Get the root URLs for each microsite by build environment\n * @param buildEnv The build environment\n * @returns The root URLs for each microsite\n */\nconst getMicrositeRootUrlsByEnv = (buildEnv: BuildEnv) => {\n switch (buildEnv) {\n case \"e2e\":\n case \"local\": {\n return MICROSITE_ROOT_URLS_LOCAL;\n }\n case \"proto\": {\n return MICROSITE_ROOT_URLS_PROTO;\n }\n case \"qa\": {\n return MICROSITE_ROOT_URLS_QA;\n }\n case undefined:\n case \"honeypot\":\n case \"prod\": {\n return MICROSITE_ROOT_URLS_PROD;\n }\n default: {\n checkUnreachable(buildEnv);\n return MICROSITE_ROOT_URLS_PROD;\n }\n }\n};\n\n/**\n * Get the deployed languages for each site by build environment\n * @param buildEnv The build environment\n * @returns The deployed languages for each site\n */\nconst getDeployedLanguagesBySiteByEnv = (\n buildEnv: BuildEnv,\n): {\n store: DeployedLanguagesMapping;\n ui: DeployedLanguagesMapping;\n uwc: DeployedLanguages;\n // NOTE: Disabling for now as it is planned to have multiple languages\n // caseStudies: DeployedLanguages;\n} => {\n switch (buildEnv) {\n case \"e2e\":\n case \"local\": {\n return {\n store: STORE_DEPLOYED_LANGUAGES_LOCAL,\n ui: UI_COM_DEPLOYED_LANGUAGES_LOCAL,\n uwc: UWC_UI_COM_DEPLOYED_LANGUAGES_LOCAL,\n // caseStudies: CASESTUDIES_UI_COM_DEPLOYED_LANGUAGES_LOCAL,\n };\n }\n case \"proto\": {\n return {\n store: STORE_DEPLOYED_LANGUAGES_PROTO,\n ui: UI_COM_DEPLOYED_LANGUAGES_PROTO,\n uwc: UWC_UI_COM_DEPLOYED_LANGUAGES_PROTO,\n // caseStudies: CASESTUDIES_UI_COM_DEPLOYED_LANGUAGES_PROTO,\n };\n }\n case \"qa\": {\n return {\n store: STORE_DEPLOYED_LANGUAGES_QA,\n ui: UI_COM_DEPLOYED_LANGUAGES_QA,\n uwc: UWC_UI_COM_DEPLOYED_LANGUAGES_QA,\n // caseStudies: CASESTUDIES_UI_COM_DEPLOYED_LANGUAGES_QA,\n };\n }\n case undefined:\n case \"honeypot\":\n case \"prod\": {\n return {\n store: STORE_DEPLOYED_LANGUAGES_PROD,\n ui: UI_COM_DEPLOYED_LANGUAGES_PROD,\n uwc: UWC_UI_COM_DEPLOYED_LANGUAGES_PROD,\n // caseStudies: CASESTUDIES_UI_COM_DEPLOYED_LANGUAGES_PROD,\n };\n }\n default: {\n checkUnreachable(buildEnv);\n return {\n store: STORE_DEPLOYED_LANGUAGES_PROD,\n ui: UI_COM_DEPLOYED_LANGUAGES_PROD,\n uwc: UWC_UI_COM_DEPLOYED_LANGUAGES_PROD,\n // caseStudies: CASESTUDIES_UI_COM_DEPLOYED_LANGUAGES_PROD,\n };\n }\n }\n};\n\n// #############################################################################\n// Global site config - ✨ the NEW way to handle global site config\n// #############################################################################\nexport const getGlobalSiteConfigByEnv = (buildEnv: BuildEnv) => {\n const storeRootUrls = getStoreRootUrlsByEnv(buildEnv);\n const micrositeRootUrls = getMicrositeRootUrlsByEnv(buildEnv);\n const deployedLanguages = getDeployedLanguagesBySiteByEnv(buildEnv);\n\n const REGION_PRESET = {\n [StoreId.Us]: null,\n [StoreId.Ca]: null,\n [StoreId.Eu]: null,\n [StoreId.Uk]: null,\n [StoreId.Jp]: null,\n [StoreId.Br]: null,\n [StoreId.In]: null,\n [StoreId.Me]: null,\n [StoreId.Za]: null,\n [StoreId.Tw]: null,\n [StoreId.Sg]: null,\n [StoreId.Cn]: null,\n [StoreId.Mx]: null,\n [StoreId.Ph]: null,\n } satisfies Record<StoreId, null>;\n\n const getLanguageConfig = (\n siteId: \"store\" | \"ui\",\n storeId: StoreId,\n ): Pick<BasicSiteConfig, \"defaultLanguage\" | \"languages\"> => {\n if (!isStoreId(storeId)) {\n return {\n defaultLanguage: undefined,\n languages: undefined,\n };\n }\n\n const languages = deployedLanguages[siteId][storeId];\n\n // If region does not have languages, return undefined\n if (!languages?.length) {\n return {\n defaultLanguage: undefined,\n languages: undefined,\n };\n }\n\n return {\n defaultLanguage: languages[0],\n languages: languages,\n };\n };\n\n return {\n /**\n * \"store.ui.com\" site config\n */\n store: {\n type: SiteConfigType.Regional,\n defaultRegion: {\n type: SiteConfigType.Basic,\n baseUrl: storeRootUrls[StoreId.Us],\n ...getLanguageConfig(\"store\", StoreId.Us),\n } satisfies BasicSiteConfig,\n regions: (() =>\n Object.values(StoreId).reduce<Record<StoreId, BasicSiteConfig | null>>(\n (acc, storeId) => {\n acc[storeId] = {\n type: SiteConfigType.Basic,\n baseUrl: storeRootUrls[storeId],\n ...getLanguageConfig(\"store\", storeId),\n };\n return acc;\n },\n { ...REGION_PRESET },\n ))(),\n } satisfies RegionalSite,\n\n /**\n * \"ui.com\" site config\n */\n ui: {\n type: SiteConfigType.Regional,\n defaultRegion: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.ui,\n ...getLanguageConfig(\"ui\", StoreId.Us),\n } satisfies BasicSiteConfig,\n regions: (() =>\n Object.values(StoreId).reduce<Record<StoreId, BasicSiteConfig | null>>(\n (acc, storeId) => {\n acc[storeId] = {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.ui,\n ...getLanguageConfig(\"ui\", storeId),\n };\n return acc;\n },\n { ...REGION_PRESET },\n ))(),\n } satisfies RegionalSite,\n\n /**\n * \"uisp.com\" site config\n */\n uisp: {\n type: SiteConfigType.Regional,\n defaultRegion: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.uisp,\n } satisfies BasicSiteConfig,\n regions: (() =>\n Object.values(StoreId).reduce<Record<StoreId, BasicSiteConfig | null>>(\n (acc, storeId) => {\n acc[storeId] = {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.uisp,\n };\n return acc;\n },\n { ...REGION_PRESET },\n ))(),\n } satisfies RegionalSite,\n\n /**\n * \"amplifi.com\" site config\n */\n amplifi: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.amplifi,\n } satisfies BasicSiteConfig,\n\n /**\n * \"techspecs.ui.com\" site config\n */\n techSpecs: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.techSpecs,\n } satisfies BasicSiteConfig,\n\n /**\n * \"experts.ui.com\" site config\n * NOTE: will be deprecated\n */\n uwc: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.uwc,\n defaultLanguage: Language.En,\n languages: deployedLanguages.uwc,\n } satisfies BasicSiteConfig,\n\n /**\n * \"experts.uisp.com\" site config\n */\n expertsUisp: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.expertsUisp,\n } satisfies BasicSiteConfig,\n\n /**\n * \"experts.ui.com\" site config\n */\n expertsUi: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.expertsUi,\n } satisfies BasicSiteConfig,\n\n /**\n * \"blog.ui.com\" site config\n */\n blog: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.blog,\n } satisfies BasicSiteConfig,\n\n /**\n * \"casestudies.ui.com\" site config\n */\n caseStudies: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.caseStudies,\n } satisfies BasicSiteConfig,\n\n /**\n * \"creators.ui.com\" site config\n */\n creators: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.creators,\n } satisfies BasicSiteConfig,\n } satisfies StaticGlobalSiteConfig;\n};\n"],"names":["getStoreRootUrlsByEnv","buildEnv","STORE_ROOT_URLS_LOCAL","STORE_ROOT_URLS_PROTO","STORE_ROOT_URLS_HONEYPOT","STORE_ROOT_URLS_QA","STORE_ROOT_URLS_PROD","checkUnreachable","getMicrositeRootUrlsByEnv","MICROSITE_ROOT_URLS_LOCAL","MICROSITE_ROOT_URLS_PROTO","MICROSITE_ROOT_URLS_QA","MICROSITE_ROOT_URLS_PROD","getDeployedLanguagesBySiteByEnv","store","STORE_DEPLOYED_LANGUAGES_LOCAL","ui","UI_COM_DEPLOYED_LANGUAGES_LOCAL","uwc","UWC_UI_COM_DEPLOYED_LANGUAGES_LOCAL","STORE_DEPLOYED_LANGUAGES_PROTO","UI_COM_DEPLOYED_LANGUAGES_PROTO","UWC_UI_COM_DEPLOYED_LANGUAGES_PROTO","STORE_DEPLOYED_LANGUAGES_QA","UI_COM_DEPLOYED_LANGUAGES_QA","UWC_UI_COM_DEPLOYED_LANGUAGES_QA","STORE_DEPLOYED_LANGUAGES_PROD","UI_COM_DEPLOYED_LANGUAGES_PROD","UWC_UI_COM_DEPLOYED_LANGUAGES_PROD","getGlobalSiteConfigByEnv","storeRootUrls","micrositeRootUrls","deployedLanguages","REGION_PRESET","StoreId","Us","Ca","Eu","Uk","Jp","Br","In","Me","Za","Tw","Sg","Cn","Mx","Ph","getLanguageConfig","siteId","storeId","isStoreId","defaultLanguage","languages","length","type","SiteConfigType","Regional","defaultRegion","Basic","baseUrl","regions","Object","values","reduce","acc","uisp","am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AA,CAAeG,KAAA;MACrBC,SAAS9B,iBAAA,CAAkByC;IAAA,CAC7B;IAAA;AAAA;AAAA;IAKAC,SAAA,EAAW;MACTjB,MAAMC,KAAAA,CAAAA,cAAA,CAAeG,KAAA;MACrBC,SAAS9B,iBAAA,CAAkB0C;IAAA,CAC7B;IAAA;AAAA;AAAA;IAKAC,IAAA,EAAM;MACJlB,MAAMC,KAAAA,CAAAA,cAAA,CAAeG,KAAA;MACrBC,SAAS9B,iBAAA,CAAkB2C;IAAA,CAC7B;IAAA;AAAA;AAAA;IAKAC,WAAA,EAAa;MACXnB,MAAMC,KAAAA,CAAAA,cAAA,CAAeG,KAAA;MACrBC,SAAS9B,iBAAA,CAAkB4C;IAAA,CAC7B;IAAA;AAAA;AAAA;IAKAC,QAAA,EAAU;MACRpB,MAAMC,KAAAA,CAAAA,cAAA,CAAeG,KAAA;MACrBC,SAAS9B,iBAAA,CAAkB6C;IAAA;EAC7B,CACF;AACF,CAAA;;"}
|
|
1
|
+
{"version":3,"file":"navigationPresets.js","sources":["../../../src/utils/nextjs/navigationPresets.ts"],"sourcesContent":["import type {\n DeployedLanguages,\n DeployedLanguagesMapping,\n} from \"../../contexts/MenuContext/mapping\";\nimport {\n MICROSITE_ROOT_URLS_LOCAL,\n MICROSITE_ROOT_URLS_PROD,\n MICROSITE_ROOT_URLS_PROTO,\n MICROSITE_ROOT_URLS_QA,\n STORE_DEPLOYED_LANGUAGES_LOCAL,\n STORE_DEPLOYED_LANGUAGES_PROD,\n STORE_DEPLOYED_LANGUAGES_PROTO,\n STORE_DEPLOYED_LANGUAGES_QA,\n STORE_ROOT_URLS_HONEYPOT,\n STORE_ROOT_URLS_LOCAL,\n STORE_ROOT_URLS_PROD,\n STORE_ROOT_URLS_PROTO,\n STORE_ROOT_URLS_QA,\n UI_COM_DEPLOYED_LANGUAGES_LOCAL,\n UI_COM_DEPLOYED_LANGUAGES_PROD,\n UI_COM_DEPLOYED_LANGUAGES_PROTO,\n UI_COM_DEPLOYED_LANGUAGES_QA,\n UWC_UI_COM_DEPLOYED_LANGUAGES_LOCAL,\n UWC_UI_COM_DEPLOYED_LANGUAGES_PROD,\n UWC_UI_COM_DEPLOYED_LANGUAGES_PROTO,\n UWC_UI_COM_DEPLOYED_LANGUAGES_QA,\n} from \"../../contexts/MenuContext/presets\";\nimport type {\n BasicSiteConfig,\n RegionalSite,\n StaticGlobalSiteConfig,\n} from \"../../contexts/MenuContext/types\";\nimport { SiteConfigType } from \"../../contexts/MenuContext/types\";\nimport { Language, StoreId } from \"../../types\";\nimport { checkUnreachable } from \"../errors\";\nimport { isStoreId } from \"../storeId\";\n\n/**\n * Values that indicate what kind of target build environment it is\n */\nexport type BuildEnv = \"local\" | \"e2e\" | \"proto\" | \"qa\" | \"prod\" | \"honeypot\";\n\n/**\n * Get the root URLs for each store by build environment\n * @param buildEnv The build environment\n * @returns The root URLs for each store\n */\nexport const getStoreRootUrlsByEnv = (buildEnv: BuildEnv) => {\n switch (buildEnv) {\n case \"e2e\":\n case \"local\": {\n return STORE_ROOT_URLS_LOCAL;\n }\n case \"proto\": {\n return STORE_ROOT_URLS_PROTO;\n }\n case \"honeypot\": {\n return STORE_ROOT_URLS_HONEYPOT;\n }\n case \"qa\": {\n return STORE_ROOT_URLS_QA;\n }\n case undefined:\n case \"prod\": {\n return STORE_ROOT_URLS_PROD;\n }\n default: {\n checkUnreachable(buildEnv);\n return STORE_ROOT_URLS_PROD;\n }\n }\n};\n\n/**\n * Get the root URLs for each microsite by build environment\n * @param buildEnv The build environment\n * @returns The root URLs for each microsite\n */\nconst getMicrositeRootUrlsByEnv = (buildEnv: BuildEnv) => {\n switch (buildEnv) {\n case \"e2e\":\n case \"local\": {\n return MICROSITE_ROOT_URLS_LOCAL;\n }\n case \"proto\": {\n return MICROSITE_ROOT_URLS_PROTO;\n }\n case \"qa\": {\n return MICROSITE_ROOT_URLS_QA;\n }\n case undefined:\n case \"honeypot\":\n case \"prod\": {\n return MICROSITE_ROOT_URLS_PROD;\n }\n default: {\n checkUnreachable(buildEnv);\n return MICROSITE_ROOT_URLS_PROD;\n }\n }\n};\n\n/**\n * Get the deployed languages for each site by build environment\n * @param buildEnv The build environment\n * @returns The deployed languages for each site\n */\nconst getDeployedLanguagesBySiteByEnv = (\n buildEnv: BuildEnv,\n): {\n store: DeployedLanguagesMapping;\n ui: DeployedLanguagesMapping;\n installer: DeployedLanguagesMapping;\n uwc: DeployedLanguages;\n // NOTE: Disabling for now as it is planned to have multiple languages\n // caseStudies: DeployedLanguages;\n} => {\n switch (buildEnv) {\n case \"e2e\":\n case \"local\": {\n return {\n store: STORE_DEPLOYED_LANGUAGES_LOCAL,\n ui: UI_COM_DEPLOYED_LANGUAGES_LOCAL,\n installer: UI_COM_DEPLOYED_LANGUAGES_LOCAL,\n uwc: UWC_UI_COM_DEPLOYED_LANGUAGES_LOCAL,\n // caseStudies: CASESTUDIES_UI_COM_DEPLOYED_LANGUAGES_LOCAL,\n };\n }\n case \"proto\": {\n return {\n store: STORE_DEPLOYED_LANGUAGES_PROTO,\n ui: UI_COM_DEPLOYED_LANGUAGES_PROTO,\n installer: UI_COM_DEPLOYED_LANGUAGES_PROTO,\n uwc: UWC_UI_COM_DEPLOYED_LANGUAGES_PROTO,\n // caseStudies: CASESTUDIES_UI_COM_DEPLOYED_LANGUAGES_PROTO,\n };\n }\n case \"qa\": {\n return {\n store: STORE_DEPLOYED_LANGUAGES_QA,\n ui: UI_COM_DEPLOYED_LANGUAGES_QA,\n installer: UI_COM_DEPLOYED_LANGUAGES_QA,\n uwc: UWC_UI_COM_DEPLOYED_LANGUAGES_QA,\n // caseStudies: CASESTUDIES_UI_COM_DEPLOYED_LANGUAGES_QA,\n };\n }\n case undefined:\n case \"honeypot\":\n case \"prod\": {\n return {\n store: STORE_DEPLOYED_LANGUAGES_PROD,\n ui: UI_COM_DEPLOYED_LANGUAGES_PROD,\n installer: UI_COM_DEPLOYED_LANGUAGES_PROD,\n uwc: UWC_UI_COM_DEPLOYED_LANGUAGES_PROD,\n // caseStudies: CASESTUDIES_UI_COM_DEPLOYED_LANGUAGES_PROD,\n };\n }\n default: {\n checkUnreachable(buildEnv);\n return {\n store: STORE_DEPLOYED_LANGUAGES_PROD,\n ui: UI_COM_DEPLOYED_LANGUAGES_PROD,\n installer: UI_COM_DEPLOYED_LANGUAGES_PROD,\n uwc: UWC_UI_COM_DEPLOYED_LANGUAGES_PROD,\n // caseStudies: CASESTUDIES_UI_COM_DEPLOYED_LANGUAGES_PROD,\n };\n }\n }\n};\n\n// #############################################################################\n// Global site config - ✨ the NEW way to handle global site config\n// #############################################################################\nexport const getGlobalSiteConfigByEnv = (buildEnv: BuildEnv) => {\n const storeRootUrls = getStoreRootUrlsByEnv(buildEnv);\n const micrositeRootUrls = getMicrositeRootUrlsByEnv(buildEnv);\n const deployedLanguages = getDeployedLanguagesBySiteByEnv(buildEnv);\n\n const REGION_PRESET = {\n [StoreId.Us]: null,\n [StoreId.Ca]: null,\n [StoreId.Eu]: null,\n [StoreId.Uk]: null,\n [StoreId.Jp]: null,\n [StoreId.Br]: null,\n [StoreId.In]: null,\n [StoreId.Me]: null,\n [StoreId.Za]: null,\n [StoreId.Tw]: null,\n [StoreId.Sg]: null,\n [StoreId.Cn]: null,\n [StoreId.Mx]: null,\n [StoreId.Ph]: null,\n } satisfies Record<StoreId, null>;\n\n const getLanguageConfig = (\n siteId: \"store\" | \"ui\",\n storeId: StoreId,\n ): Pick<BasicSiteConfig, \"defaultLanguage\" | \"languages\"> => {\n if (!isStoreId(storeId)) {\n return {\n defaultLanguage: undefined,\n languages: undefined,\n };\n }\n\n const languages = deployedLanguages[siteId][storeId];\n\n // If region does not have languages, return undefined\n if (!languages?.length) {\n return {\n defaultLanguage: undefined,\n languages: undefined,\n };\n }\n\n return {\n defaultLanguage: languages[0],\n languages: languages,\n };\n };\n\n return {\n /**\n * \"store.ui.com\" site config\n */\n store: {\n type: SiteConfigType.Regional,\n defaultRegion: {\n type: SiteConfigType.Basic,\n baseUrl: storeRootUrls[StoreId.Us],\n ...getLanguageConfig(\"store\", StoreId.Us),\n } satisfies BasicSiteConfig,\n regions: (() =>\n Object.values(StoreId).reduce<Record<StoreId, BasicSiteConfig | null>>(\n (acc, storeId) => {\n acc[storeId] = {\n type: SiteConfigType.Basic,\n baseUrl: storeRootUrls[storeId],\n ...getLanguageConfig(\"store\", storeId),\n };\n return acc;\n },\n { ...REGION_PRESET },\n ))(),\n } satisfies RegionalSite,\n\n /**\n * \"ui.com\" site config\n */\n ui: {\n type: SiteConfigType.Regional,\n defaultRegion: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.ui,\n ...getLanguageConfig(\"ui\", StoreId.Us),\n } satisfies BasicSiteConfig,\n regions: (() =>\n Object.values(StoreId).reduce<Record<StoreId, BasicSiteConfig | null>>(\n (acc, storeId) => {\n acc[storeId] = {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.ui,\n ...getLanguageConfig(\"ui\", storeId),\n };\n return acc;\n },\n { ...REGION_PRESET },\n ))(),\n } satisfies RegionalSite,\n\n /**\n * \"uisp.com\" site config\n */\n uisp: {\n type: SiteConfigType.Regional,\n defaultRegion: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.uisp,\n } satisfies BasicSiteConfig,\n regions: (() =>\n Object.values(StoreId).reduce<Record<StoreId, BasicSiteConfig | null>>(\n (acc, storeId) => {\n acc[storeId] = {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.uisp,\n };\n return acc;\n },\n { ...REGION_PRESET },\n ))(),\n } satisfies RegionalSite,\n\n /**\n * \"amplifi.com\" site config\n */\n amplifi: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.amplifi,\n } satisfies BasicSiteConfig,\n\n /**\n * \"techspecs.ui.com\" site config\n */\n techSpecs: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.techSpecs,\n } satisfies BasicSiteConfig,\n\n /**\n * \"experts.ui.com\" site config\n * NOTE: will be deprecated\n */\n uwc: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.uwc,\n defaultLanguage: Language.En,\n languages: deployedLanguages.uwc,\n } satisfies BasicSiteConfig,\n\n /**\n * \"experts.uisp.com\" site config\n */\n expertsUisp: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.expertsUisp,\n } satisfies BasicSiteConfig,\n\n /**\n * \"experts.ui.com\" site config\n */\n expertsUi: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.expertsUi,\n } satisfies BasicSiteConfig,\n\n /**\n * \"blog.ui.com\" site config\n */\n blog: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.blog,\n } satisfies BasicSiteConfig,\n\n /**\n * \"casestudies.ui.com\" site config\n */\n caseStudies: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.caseStudies,\n } satisfies BasicSiteConfig,\n /**\n * \"installations.ui.com\" site config\n */\n installations: {\n type: SiteConfigType.Regional,\n defaultRegion: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.ui,\n ...getLanguageConfig(\"ui\", StoreId.Us),\n } satisfies BasicSiteConfig,\n regions: (() =>\n Object.values(StoreId).reduce<Record<StoreId, BasicSiteConfig | null>>(\n (acc, storeId) => {\n acc[storeId] = {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.ui,\n ...getLanguageConfig(\"ui\", storeId),\n };\n return acc;\n },\n { ...REGION_PRESET },\n ))(),\n } satisfies RegionalSite,\n\n /**\n * \"creators.ui.com\" site config\n */\n creators: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.creators,\n } satisfies BasicSiteConfig,\n } satisfies StaticGlobalSiteConfig;\n};\n"],"names":["getStoreRootUrlsByEnv","buildEnv","STORE_ROOT_URLS_LOCAL","STORE_ROOT_URLS_PROTO","STORE_ROOT_URLS_HONEYPOT","STORE_ROOT_URLS_QA","STORE_ROOT_URLS_PROD","checkUnreachable","getMicrositeRootUrlsByEnv","MICROSITE_ROOT_URLS_LOCAL","MICROSITE_ROOT_URLS_PROTO","MICROSITE_ROOT_URLS_QA","MICROSITE_ROOT_URLS_PROD","getDeployedLanguagesBySiteByEnv","store","STORE_DEPLOYED_LANGUAGES_LOCAL","ui","UI_COM_DEPLOYED_LANGUAGES_LOCAL","installer","uwc","UWC_UI_COM_DEPLOYED_LANGUAGES_LOCAL","STORE_DEPLOYED_LANGUAGES_PROTO","UI_COM_DEPLOYED_LANGUAGES_PROTO","UWC_UI_COM_DEPLOYED_LANGUAGES_PROTO","STORE_DEPLOYED_LANGUAGES_QA","UI_COM_DEPLOYED_LANGUAGES_QA","UWC_UI_COM_DEPLOYED_LANGUAGES_QA","STORE_DEPLOYED_LANGUAGES_PROD","UI_COM_DEPLOYED_LANGUAGES_PROD","UWC_UI_COM_DEPLOYED_LANGUAGES_PROD","getGlobalSiteConfigByEnv","storeRootUrls","micrositeRootUrls","deployedLanguages","REGION_PRESET","StoreId","Us","Ca","Eu","Uk","Jp","Br","In","Me","Za","Tw","Sg","Cn","Mx","Ph","getLanguageConfig","siteId","storeId","isStoreId","defaultLanguage","languages","length","type","SiteConfigType","Regional","defaultRegion","Basic","baseUrl","regions","Object","values","reduce","acc","uisp","amplifi","techSpecs","Language","En","expertsUisp","expertsUi","blog","caseStudies","installations","creators"],"mappings":";;;;;;;;;;AA+CO,MAAMA,qBAAA,GAAyBC,QAAA,IAAuB;EAC3D,QAAQA,QAAA;IACN,KAAK,KAAA;IACL,KAAK,OAAA;MAAS;QACZ,OAAOC,OAAAA,CAAAA,qBAAA;MACT;IACA,KAAK,OAAA;MAAS;QACZ,OAAOC,OAAAA,CAAAA,qBAAA;MACT;IACA,KAAK,UAAA;MAAY;QACf,OAAOC,OAAAA,CAAAA,wBAAA;MACT;IACA,KAAK,IAAA;MAAM;QACT,OAAOC,OAAAA,CAAAA,kBAAA;MACT;IACA,KAAK,KAAA,CAAA;IACL,KAAK,MAAA;MAAQ;QACX,OAAOC,OAAAA,CAA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LANGUAGES_LOCAL,
|
|
76
77
|
uwc: UWC_UI_COM_DEPLOYED_LANGUAGES_LOCAL
|
|
77
78
|
// caseStudies: CASESTUDIES_UI_COM_DEPLOYED_LANGUAGES_LOCAL,
|
|
78
79
|
};
|
|
@@ -82,6 +83,7 @@ const getDeployedLanguagesBySiteByEnv = buildEnv => {
|
|
|
82
83
|
return {
|
|
83
84
|
store: STORE_DEPLOYED_LANGUAGES_PROTO,
|
|
84
85
|
ui: UI_COM_DEPLOYED_LANGUAGES_PROTO,
|
|
86
|
+
installer: UI_COM_DEPLOYED_LANGUAGES_PROTO,
|
|
85
87
|
uwc: UWC_UI_COM_DEPLOYED_LANGUAGES_PROTO
|
|
86
88
|
// caseStudies: CASESTUDIES_UI_COM_DEPLOYED_LANGUAGES_PROTO,
|
|
87
89
|
};
|
|
@@ -91,6 +93,7 @@ const getDeployedLanguagesBySiteByEnv = buildEnv => {
|
|
|
91
93
|
return {
|
|
92
94
|
store: STORE_DEPLOYED_LANGUAGES_QA,
|
|
93
95
|
ui: UI_COM_DEPLOYED_LANGUAGES_QA,
|
|
96
|
+
installer: UI_COM_DEPLOYED_LANGUAGES_QA,
|
|
94
97
|
uwc: UWC_UI_COM_DEPLOYED_LANGUAGES_QA
|
|
95
98
|
// caseStudies: CASESTUDIES_UI_COM_DEPLOYED_LANGUAGES_QA,
|
|
96
99
|
};
|
|
@@ -102,6 +105,7 @@ const getDeployedLanguagesBySiteByEnv = buildEnv => {
|
|
|
102
105
|
return {
|
|
103
106
|
store: STORE_DEPLOYED_LANGUAGES_PROD,
|
|
104
107
|
ui: UI_COM_DEPLOYED_LANGUAGES_PROD,
|
|
108
|
+
installer: UI_COM_DEPLOYED_LANGUAGES_PROD,
|
|
105
109
|
uwc: UWC_UI_COM_DEPLOYED_LANGUAGES_PROD
|
|
106
110
|
// caseStudies: CASESTUDIES_UI_COM_DEPLOYED_LANGUAGES_PROD,
|
|
107
111
|
};
|
|
@@ -112,6 +116,7 @@ const getDeployedLanguagesBySiteByEnv = buildEnv => {
|
|
|
112
116
|
return {
|
|
113
117
|
store: STORE_DEPLOYED_LANGUAGES_PROD,
|
|
114
118
|
ui: UI_COM_DEPLOYED_LANGUAGES_PROD,
|
|
119
|
+
installer: UI_COM_DEPLOYED_LANGUAGES_PROD,
|
|
115
120
|
uwc: UWC_UI_COM_DEPLOYED_LANGUAGES_PROD
|
|
116
121
|
// caseStudies: CASESTUDIES_UI_COM_DEPLOYED_LANGUAGES_PROD,
|
|
117
122
|
};
|
|
@@ -271,6 +276,27 @@ const getGlobalSiteConfigByEnv = buildEnv => {
|
|
|
271
276
|
type: SiteConfigType.Basic,
|
|
272
277
|
baseUrl: micrositeRootUrls.caseStudies
|
|
273
278
|
},
|
|
279
|
+
/**
|
|
280
|
+
* "installations.ui.com" site config
|
|
281
|
+
*/
|
|
282
|
+
installations: {
|
|
283
|
+
type: SiteConfigType.Regional,
|
|
284
|
+
defaultRegion: {
|
|
285
|
+
type: SiteConfigType.Basic,
|
|
286
|
+
baseUrl: micrositeRootUrls.ui,
|
|
287
|
+
...getLanguageConfig("ui", StoreId.Us)
|
|
288
|
+
},
|
|
289
|
+
regions: (() => Object.values(StoreId).reduce((acc, storeId) => {
|
|
290
|
+
acc[storeId] = {
|
|
291
|
+
type: SiteConfigType.Basic,
|
|
292
|
+
baseUrl: micrositeRootUrls.ui,
|
|
293
|
+
...getLanguageConfig("ui", storeId)
|
|
294
|
+
};
|
|
295
|
+
return acc;
|
|
296
|
+
}, {
|
|
297
|
+
...REGION_PRESET
|
|
298
|
+
}))()
|
|
299
|
+
},
|
|
274
300
|
/**
|
|
275
301
|
* "creators.ui.com" site config
|
|
276
302
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigationPresets.mjs","sources":["../../../src/utils/nextjs/navigationPresets.ts"],"sourcesContent":["import type {\n DeployedLanguages,\n DeployedLanguagesMapping,\n} from \"../../contexts/MenuContext/mapping\";\nimport {\n MICROSITE_ROOT_URLS_LOCAL,\n MICROSITE_ROOT_URLS_PROD,\n MICROSITE_ROOT_URLS_PROTO,\n MICROSITE_ROOT_URLS_QA,\n STORE_DEPLOYED_LANGUAGES_LOCAL,\n STORE_DEPLOYED_LANGUAGES_PROD,\n STORE_DEPLOYED_LANGUAGES_PROTO,\n STORE_DEPLOYED_LANGUAGES_QA,\n STORE_ROOT_URLS_HONEYPOT,\n STORE_ROOT_URLS_LOCAL,\n STORE_ROOT_URLS_PROD,\n STORE_ROOT_URLS_PROTO,\n STORE_ROOT_URLS_QA,\n UI_COM_DEPLOYED_LANGUAGES_LOCAL,\n UI_COM_DEPLOYED_LANGUAGES_PROD,\n UI_COM_DEPLOYED_LANGUAGES_PROTO,\n UI_COM_DEPLOYED_LANGUAGES_QA,\n UWC_UI_COM_DEPLOYED_LANGUAGES_LOCAL,\n UWC_UI_COM_DEPLOYED_LANGUAGES_PROD,\n UWC_UI_COM_DEPLOYED_LANGUAGES_PROTO,\n UWC_UI_COM_DEPLOYED_LANGUAGES_QA,\n} from \"../../contexts/MenuContext/presets\";\nimport type {\n BasicSiteConfig,\n RegionalSite,\n StaticGlobalSiteConfig,\n} from \"../../contexts/MenuContext/types\";\nimport { SiteConfigType } from \"../../contexts/MenuContext/types\";\nimport { Language, StoreId } from \"../../types\";\nimport { checkUnreachable } from \"../errors\";\nimport { isStoreId } from \"../storeId\";\n\n/**\n * Values that indicate what kind of target build environment it is\n */\nexport type BuildEnv = \"local\" | \"e2e\" | \"proto\" | \"qa\" | \"prod\" | \"honeypot\";\n\n/**\n * Get the root URLs for each store by build environment\n * @param buildEnv The build environment\n * @returns The root URLs for each store\n */\nexport const getStoreRootUrlsByEnv = (buildEnv: BuildEnv) => {\n switch (buildEnv) {\n case \"e2e\":\n case \"local\": {\n return STORE_ROOT_URLS_LOCAL;\n }\n case \"proto\": {\n return STORE_ROOT_URLS_PROTO;\n }\n case \"honeypot\": {\n return STORE_ROOT_URLS_HONEYPOT;\n }\n case \"qa\": {\n return STORE_ROOT_URLS_QA;\n }\n case undefined:\n case \"prod\": {\n return STORE_ROOT_URLS_PROD;\n }\n default: {\n checkUnreachable(buildEnv);\n return STORE_ROOT_URLS_PROD;\n }\n }\n};\n\n/**\n * Get the root URLs for each microsite by build environment\n * @param buildEnv The build environment\n * @returns The root URLs for each microsite\n */\nconst getMicrositeRootUrlsByEnv = (buildEnv: BuildEnv) => {\n switch (buildEnv) {\n case \"e2e\":\n case \"local\": {\n return MICROSITE_ROOT_URLS_LOCAL;\n }\n case \"proto\": {\n return MICROSITE_ROOT_URLS_PROTO;\n }\n case \"qa\": {\n return MICROSITE_ROOT_URLS_QA;\n }\n case undefined:\n case \"honeypot\":\n case \"prod\": {\n return MICROSITE_ROOT_URLS_PROD;\n }\n default: {\n checkUnreachable(buildEnv);\n return MICROSITE_ROOT_URLS_PROD;\n }\n }\n};\n\n/**\n * Get the deployed languages for each site by build environment\n * @param buildEnv The build environment\n * @returns The deployed languages for each site\n */\nconst getDeployedLanguagesBySiteByEnv = (\n buildEnv: BuildEnv,\n): {\n store: DeployedLanguagesMapping;\n ui: DeployedLanguagesMapping;\n uwc: DeployedLanguages;\n // NOTE: Disabling for now as it is planned to have multiple languages\n // caseStudies: DeployedLanguages;\n} => {\n switch (buildEnv) {\n case \"e2e\":\n case \"local\": {\n return {\n store: STORE_DEPLOYED_LANGUAGES_LOCAL,\n ui: UI_COM_DEPLOYED_LANGUAGES_LOCAL,\n uwc: UWC_UI_COM_DEPLOYED_LANGUAGES_LOCAL,\n // caseStudies: CASESTUDIES_UI_COM_DEPLOYED_LANGUAGES_LOCAL,\n };\n }\n case \"proto\": {\n return {\n store: STORE_DEPLOYED_LANGUAGES_PROTO,\n ui: UI_COM_DEPLOYED_LANGUAGES_PROTO,\n uwc: UWC_UI_COM_DEPLOYED_LANGUAGES_PROTO,\n // caseStudies: CASESTUDIES_UI_COM_DEPLOYED_LANGUAGES_PROTO,\n };\n }\n case \"qa\": {\n return {\n store: STORE_DEPLOYED_LANGUAGES_QA,\n ui: UI_COM_DEPLOYED_LANGUAGES_QA,\n uwc: UWC_UI_COM_DEPLOYED_LANGUAGES_QA,\n // caseStudies: CASESTUDIES_UI_COM_DEPLOYED_LANGUAGES_QA,\n };\n }\n case undefined:\n case \"honeypot\":\n case \"prod\": {\n return {\n store: STORE_DEPLOYED_LANGUAGES_PROD,\n ui: UI_COM_DEPLOYED_LANGUAGES_PROD,\n uwc: UWC_UI_COM_DEPLOYED_LANGUAGES_PROD,\n // caseStudies: CASESTUDIES_UI_COM_DEPLOYED_LANGUAGES_PROD,\n };\n }\n default: {\n checkUnreachable(buildEnv);\n return {\n store: STORE_DEPLOYED_LANGUAGES_PROD,\n ui: UI_COM_DEPLOYED_LANGUAGES_PROD,\n uwc: UWC_UI_COM_DEPLOYED_LANGUAGES_PROD,\n // caseStudies: CASESTUDIES_UI_COM_DEPLOYED_LANGUAGES_PROD,\n };\n }\n }\n};\n\n// #############################################################################\n// Global site config - ✨ the NEW way to handle global site config\n// #############################################################################\nexport const getGlobalSiteConfigByEnv = (buildEnv: BuildEnv) => {\n const storeRootUrls = getStoreRootUrlsByEnv(buildEnv);\n const micrositeRootUrls = getMicrositeRootUrlsByEnv(buildEnv);\n const deployedLanguages = getDeployedLanguagesBySiteByEnv(buildEnv);\n\n const REGION_PRESET = {\n [StoreId.Us]: null,\n [StoreId.Ca]: null,\n [StoreId.Eu]: null,\n [StoreId.Uk]: null,\n [StoreId.Jp]: null,\n [StoreId.Br]: null,\n [StoreId.In]: null,\n [StoreId.Me]: null,\n [StoreId.Za]: null,\n [StoreId.Tw]: null,\n [StoreId.Sg]: null,\n [StoreId.Cn]: null,\n [StoreId.Mx]: null,\n [StoreId.Ph]: null,\n } satisfies Record<StoreId, null>;\n\n const getLanguageConfig = (\n siteId: \"store\" | \"ui\",\n storeId: StoreId,\n ): Pick<BasicSiteConfig, \"defaultLanguage\" | \"languages\"> => {\n if (!isStoreId(storeId)) {\n return {\n defaultLanguage: undefined,\n languages: undefined,\n };\n }\n\n const languages = deployedLanguages[siteId][storeId];\n\n // If region does not have languages, return undefined\n if (!languages?.length) {\n return {\n defaultLanguage: undefined,\n languages: undefined,\n };\n }\n\n return {\n defaultLanguage: languages[0],\n languages: languages,\n };\n };\n\n return {\n /**\n * \"store.ui.com\" site config\n */\n store: {\n type: SiteConfigType.Regional,\n defaultRegion: {\n type: SiteConfigType.Basic,\n baseUrl: storeRootUrls[StoreId.Us],\n ...getLanguageConfig(\"store\", StoreId.Us),\n } satisfies BasicSiteConfig,\n regions: (() =>\n Object.values(StoreId).reduce<Record<StoreId, BasicSiteConfig | null>>(\n (acc, storeId) => {\n acc[storeId] = {\n type: SiteConfigType.Basic,\n baseUrl: storeRootUrls[storeId],\n ...getLanguageConfig(\"store\", storeId),\n };\n return acc;\n },\n { ...REGION_PRESET },\n ))(),\n } satisfies RegionalSite,\n\n /**\n * \"ui.com\" site config\n */\n ui: {\n type: SiteConfigType.Regional,\n defaultRegion: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.ui,\n ...getLanguageConfig(\"ui\", StoreId.Us),\n } satisfies BasicSiteConfig,\n regions: (() =>\n Object.values(StoreId).reduce<Record<StoreId, BasicSiteConfig | null>>(\n (acc, storeId) => {\n acc[storeId] = {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.ui,\n ...getLanguageConfig(\"ui\", storeId),\n };\n return acc;\n },\n { ...REGION_PRESET },\n ))(),\n } satisfies RegionalSite,\n\n /**\n * \"uisp.com\" site config\n */\n uisp: {\n type: SiteConfigType.Regional,\n defaultRegion: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.uisp,\n } satisfies BasicSiteConfig,\n regions: (() =>\n Object.values(StoreId).reduce<Record<StoreId, BasicSiteConfig | null>>(\n (acc, storeId) => {\n acc[storeId] = {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.uisp,\n };\n return acc;\n },\n { ...REGION_PRESET },\n ))(),\n } satisfies RegionalSite,\n\n /**\n * \"amplifi.com\" site config\n */\n amplifi: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.amplifi,\n } satisfies BasicSiteConfig,\n\n /**\n * \"techspecs.ui.com\" site config\n */\n techSpecs: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.techSpecs,\n } satisfies BasicSiteConfig,\n\n /**\n * \"experts.ui.com\" site config\n * NOTE: will be deprecated\n */\n uwc: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.uwc,\n defaultLanguage: Language.En,\n languages: deployedLanguages.uwc,\n } satisfies BasicSiteConfig,\n\n /**\n * \"experts.uisp.com\" site config\n */\n expertsUisp: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.expertsUisp,\n } satisfies BasicSiteConfig,\n\n /**\n * \"experts.ui.com\" site config\n */\n expertsUi: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.expertsUi,\n } satisfies BasicSiteConfig,\n\n /**\n * \"blog.ui.com\" site config\n */\n blog: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.blog,\n } satisfies BasicSiteConfig,\n\n /**\n * \"casestudies.ui.com\" site config\n */\n caseStudies: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.caseStudies,\n } satisfies BasicSiteConfig,\n\n /**\n * \"creators.ui.com\" site config\n */\n creators: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.creators,\n } satisfies BasicSiteConfig,\n } satisfies StaticGlobalSiteConfig;\n};\n"],"names":["getStoreRootUrlsByEnv","buildEnv","STORE_ROOT_URLS_LOCAL","STORE_ROOT_URLS_PROTO","STORE_ROOT_URLS_HONEYPOT","STORE_ROOT_URLS_QA","STORE_ROOT_URLS_PROD","checkUnreachable","getMicrositeRootUrlsByEnv","MICROSITE_ROOT_URLS_LOCAL","MICROSITE_ROOT_URLS_PROTO","MICROSITE_ROOT_URLS_QA","MICROSITE_ROOT_URLS_PROD","getDeployedLanguagesBySiteByEnv","store","STORE_DEPLOYED_LANGUAGES_LOCAL","ui","UI_COM_DEPLOYED_LANGUAGES_LOCAL","uwc","UWC_UI_COM_DEPLOYED_LANGUAGES_LOCAL","STORE_DEPLOYED_LANGUAGES_PROTO","UI_COM_DEPLOYED_LANGUAGES_PROTO","UWC_UI_COM_DEPLOYED_LANGUAGES_PROTO","STORE_DEPLOYED_LANGUAGES_QA","UI_COM_DEPLOYED_LANGUAGES_QA","UWC_UI_COM_DEPLOYED_LANGUAGES_QA","STORE_DEPLOYED_LANGUAGES_PROD","UI_COM_DEPLOYED_LANGUAGES_PROD","UWC_UI_COM_DEPLOYED_LANGUAGES_PROD","getGlobalSiteConfigByEnv","storeRootUrls","micrositeRootUrls","deployedLanguages","REGION_PRESET","StoreId","Us","Ca","Eu","Uk","Jp","Br","In","Me","Za","Tw","Sg","Cn","Mx","Ph","getLanguageConfig","siteId","storeId","isStoreId","defaultLanguage","languages","length","type","SiteConfigType","Regional","defaultRegion","Basic","baseUrl","regions","Object","values","reduce","acc","uisp","amplifi","techSpecs","Language","En","expertsUisp","expertsUi","blog","caseStudies","creators"],"mappings":";;;;;;;;AA+CO,MAAMA,qBAAA,GAAyBC,QAAA,IAAuB;EAC3D,QAAQA,QAAA;IACN,KAAK,KAAA;IACL,KAAK,OAAA;MAAS;QACZ,OAAOC,qBAAA;MACT;IACA,KAAK,OAAA;MAAS;QACZ,OAAOC,qBAAA;MACT;IACA,KAAK,UAAA;MAAY;QACf,OAAOC,wBAAA;MACT;IACA,KAAK,IAAA;MAAM;QACT,OAAOC,kBAAA;MACT;IACA,KAAK,KAAA,CAAA;IACL,KAAK,MAAA;MAAQ;QACX,OAAOC,oBAAA;MACT;IACA;MAAS;QACPC,gBAAA,CAAiBN,QAAQ,CAAA;QACzB,OAAOK,oBAAA;MACT;EAAA;AAEJ,CAAA;AAOA,MAAME,yBAAA,GAA6BP,QAAA,IAAuB;EACxD,QAAQA,QAAA;IACN,KAAK,KAAA;IACL,KAAK,OAAA;MAAS;QACZ,O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A;AAAA;AAAA;IAKAC,WAAA,EAAa;MACXnB,MAAMC,cAAA,CAAeG,KAAA;MACrBC,SAAS9B,iBAAA,CAAkB4C;IAAA,CAC7B;IAAA;AAAA;AAAA;IAKAC,QAAA,EAAU;MACRpB,MAAMC,cAAA,CAAeG,KAAA;MACrBC,SAAS9B,iBAAA,CAAkB6C;IAAA;EAC7B,CACF;AACF,CAAA;"}
|
|
1
|
+
{"version":3,"file":"navigationPresets.mjs","sources":["../../../src/utils/nextjs/navigationPresets.ts"],"sourcesContent":["import type {\n DeployedLanguages,\n DeployedLanguagesMapping,\n} from \"../../contexts/MenuContext/mapping\";\nimport {\n MICROSITE_ROOT_URLS_LOCAL,\n MICROSITE_ROOT_URLS_PROD,\n MICROSITE_ROOT_URLS_PROTO,\n MICROSITE_ROOT_URLS_QA,\n STORE_DEPLOYED_LANGUAGES_LOCAL,\n STORE_DEPLOYED_LANGUAGES_PROD,\n STORE_DEPLOYED_LANGUAGES_PROTO,\n STORE_DEPLOYED_LANGUAGES_QA,\n STORE_ROOT_URLS_HONEYPOT,\n STORE_ROOT_URLS_LOCAL,\n STORE_ROOT_URLS_PROD,\n STORE_ROOT_URLS_PROTO,\n STORE_ROOT_URLS_QA,\n UI_COM_DEPLOYED_LANGUAGES_LOCAL,\n UI_COM_DEPLOYED_LANGUAGES_PROD,\n UI_COM_DEPLOYED_LANGUAGES_PROTO,\n UI_COM_DEPLOYED_LANGUAGES_QA,\n UWC_UI_COM_DEPLOYED_LANGUAGES_LOCAL,\n UWC_UI_COM_DEPLOYED_LANGUAGES_PROD,\n UWC_UI_COM_DEPLOYED_LANGUAGES_PROTO,\n UWC_UI_COM_DEPLOYED_LANGUAGES_QA,\n} from \"../../contexts/MenuContext/presets\";\nimport type {\n BasicSiteConfig,\n RegionalSite,\n StaticGlobalSiteConfig,\n} from \"../../contexts/MenuContext/types\";\nimport { SiteConfigType } from \"../../contexts/MenuContext/types\";\nimport { Language, StoreId } from \"../../types\";\nimport { checkUnreachable } from \"../errors\";\nimport { isStoreId } from \"../storeId\";\n\n/**\n * Values that indicate what kind of target build environment it is\n */\nexport type BuildEnv = \"local\" | \"e2e\" | \"proto\" | \"qa\" | \"prod\" | \"honeypot\";\n\n/**\n * Get the root URLs for each store by build environment\n * @param buildEnv The build environment\n * @returns The root URLs for each store\n */\nexport const getStoreRootUrlsByEnv = (buildEnv: BuildEnv) => {\n switch (buildEnv) {\n case \"e2e\":\n case \"local\": {\n return STORE_ROOT_URLS_LOCAL;\n }\n case \"proto\": {\n return STORE_ROOT_URLS_PROTO;\n }\n case \"honeypot\": {\n return STORE_ROOT_URLS_HONEYPOT;\n }\n case \"qa\": {\n return STORE_ROOT_URLS_QA;\n }\n case undefined:\n case \"prod\": {\n return STORE_ROOT_URLS_PROD;\n }\n default: {\n checkUnreachable(buildEnv);\n return STORE_ROOT_URLS_PROD;\n }\n }\n};\n\n/**\n * Get the root URLs for each microsite by build environment\n * @param buildEnv The build environment\n * @returns The root URLs for each microsite\n */\nconst getMicrositeRootUrlsByEnv = (buildEnv: BuildEnv) => {\n switch (buildEnv) {\n case \"e2e\":\n case \"local\": {\n return MICROSITE_ROOT_URLS_LOCAL;\n }\n case \"proto\": {\n return MICROSITE_ROOT_URLS_PROTO;\n }\n case \"qa\": {\n return MICROSITE_ROOT_URLS_QA;\n }\n case undefined:\n case \"honeypot\":\n case \"prod\": {\n return MICROSITE_ROOT_URLS_PROD;\n }\n default: {\n checkUnreachable(buildEnv);\n return MICROSITE_ROOT_URLS_PROD;\n }\n }\n};\n\n/**\n * Get the deployed languages for each site by build environment\n * @param buildEnv The build environment\n * @returns The deployed languages for each site\n */\nconst getDeployedLanguagesBySiteByEnv = (\n buildEnv: BuildEnv,\n): {\n store: DeployedLanguagesMapping;\n ui: DeployedLanguagesMapping;\n installer: DeployedLanguagesMapping;\n uwc: DeployedLanguages;\n // NOTE: Disabling for now as it is planned to have multiple languages\n // caseStudies: DeployedLanguages;\n} => {\n switch (buildEnv) {\n case \"e2e\":\n case \"local\": {\n return {\n store: STORE_DEPLOYED_LANGUAGES_LOCAL,\n ui: UI_COM_DEPLOYED_LANGUAGES_LOCAL,\n installer: UI_COM_DEPLOYED_LANGUAGES_LOCAL,\n uwc: UWC_UI_COM_DEPLOYED_LANGUAGES_LOCAL,\n // caseStudies: CASESTUDIES_UI_COM_DEPLOYED_LANGUAGES_LOCAL,\n };\n }\n case \"proto\": {\n return {\n store: STORE_DEPLOYED_LANGUAGES_PROTO,\n ui: UI_COM_DEPLOYED_LANGUAGES_PROTO,\n installer: UI_COM_DEPLOYED_LANGUAGES_PROTO,\n uwc: UWC_UI_COM_DEPLOYED_LANGUAGES_PROTO,\n // caseStudies: CASESTUDIES_UI_COM_DEPLOYED_LANGUAGES_PROTO,\n };\n }\n case \"qa\": {\n return {\n store: STORE_DEPLOYED_LANGUAGES_QA,\n ui: UI_COM_DEPLOYED_LANGUAGES_QA,\n installer: UI_COM_DEPLOYED_LANGUAGES_QA,\n uwc: UWC_UI_COM_DEPLOYED_LANGUAGES_QA,\n // caseStudies: CASESTUDIES_UI_COM_DEPLOYED_LANGUAGES_QA,\n };\n }\n case undefined:\n case \"honeypot\":\n case \"prod\": {\n return {\n store: STORE_DEPLOYED_LANGUAGES_PROD,\n ui: UI_COM_DEPLOYED_LANGUAGES_PROD,\n installer: UI_COM_DEPLOYED_LANGUAGES_PROD,\n uwc: UWC_UI_COM_DEPLOYED_LANGUAGES_PROD,\n // caseStudies: CASESTUDIES_UI_COM_DEPLOYED_LANGUAGES_PROD,\n };\n }\n default: {\n checkUnreachable(buildEnv);\n return {\n store: STORE_DEPLOYED_LANGUAGES_PROD,\n ui: UI_COM_DEPLOYED_LANGUAGES_PROD,\n installer: UI_COM_DEPLOYED_LANGUAGES_PROD,\n uwc: UWC_UI_COM_DEPLOYED_LANGUAGES_PROD,\n // caseStudies: CASESTUDIES_UI_COM_DEPLOYED_LANGUAGES_PROD,\n };\n }\n }\n};\n\n// #############################################################################\n// Global site config - ✨ the NEW way to handle global site config\n// #############################################################################\nexport const getGlobalSiteConfigByEnv = (buildEnv: BuildEnv) => {\n const storeRootUrls = getStoreRootUrlsByEnv(buildEnv);\n const micrositeRootUrls = getMicrositeRootUrlsByEnv(buildEnv);\n const deployedLanguages = getDeployedLanguagesBySiteByEnv(buildEnv);\n\n const REGION_PRESET = {\n [StoreId.Us]: null,\n [StoreId.Ca]: null,\n [StoreId.Eu]: null,\n [StoreId.Uk]: null,\n [StoreId.Jp]: null,\n [StoreId.Br]: null,\n [StoreId.In]: null,\n [StoreId.Me]: null,\n [StoreId.Za]: null,\n [StoreId.Tw]: null,\n [StoreId.Sg]: null,\n [StoreId.Cn]: null,\n [StoreId.Mx]: null,\n [StoreId.Ph]: null,\n } satisfies Record<StoreId, null>;\n\n const getLanguageConfig = (\n siteId: \"store\" | \"ui\",\n storeId: StoreId,\n ): Pick<BasicSiteConfig, \"defaultLanguage\" | \"languages\"> => {\n if (!isStoreId(storeId)) {\n return {\n defaultLanguage: undefined,\n languages: undefined,\n };\n }\n\n const languages = deployedLanguages[siteId][storeId];\n\n // If region does not have languages, return undefined\n if (!languages?.length) {\n return {\n defaultLanguage: undefined,\n languages: undefined,\n };\n }\n\n return {\n defaultLanguage: languages[0],\n languages: languages,\n };\n };\n\n return {\n /**\n * \"store.ui.com\" site config\n */\n store: {\n type: SiteConfigType.Regional,\n defaultRegion: {\n type: SiteConfigType.Basic,\n baseUrl: storeRootUrls[StoreId.Us],\n ...getLanguageConfig(\"store\", StoreId.Us),\n } satisfies BasicSiteConfig,\n regions: (() =>\n Object.values(StoreId).reduce<Record<StoreId, BasicSiteConfig | null>>(\n (acc, storeId) => {\n acc[storeId] = {\n type: SiteConfigType.Basic,\n baseUrl: storeRootUrls[storeId],\n ...getLanguageConfig(\"store\", storeId),\n };\n return acc;\n },\n { ...REGION_PRESET },\n ))(),\n } satisfies RegionalSite,\n\n /**\n * \"ui.com\" site config\n */\n ui: {\n type: SiteConfigType.Regional,\n defaultRegion: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.ui,\n ...getLanguageConfig(\"ui\", StoreId.Us),\n } satisfies BasicSiteConfig,\n regions: (() =>\n Object.values(StoreId).reduce<Record<StoreId, BasicSiteConfig | null>>(\n (acc, storeId) => {\n acc[storeId] = {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.ui,\n ...getLanguageConfig(\"ui\", storeId),\n };\n return acc;\n },\n { ...REGION_PRESET },\n ))(),\n } satisfies RegionalSite,\n\n /**\n * \"uisp.com\" site config\n */\n uisp: {\n type: SiteConfigType.Regional,\n defaultRegion: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.uisp,\n } satisfies BasicSiteConfig,\n regions: (() =>\n Object.values(StoreId).reduce<Record<StoreId, BasicSiteConfig | null>>(\n (acc, storeId) => {\n acc[storeId] = {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.uisp,\n };\n return acc;\n },\n { ...REGION_PRESET },\n ))(),\n } satisfies RegionalSite,\n\n /**\n * \"amplifi.com\" site config\n */\n amplifi: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.amplifi,\n } satisfies BasicSiteConfig,\n\n /**\n * \"techspecs.ui.com\" site config\n */\n techSpecs: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.techSpecs,\n } satisfies BasicSiteConfig,\n\n /**\n * \"experts.ui.com\" site config\n * NOTE: will be deprecated\n */\n uwc: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.uwc,\n defaultLanguage: Language.En,\n languages: deployedLanguages.uwc,\n } satisfies BasicSiteConfig,\n\n /**\n * \"experts.uisp.com\" site config\n */\n expertsUisp: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.expertsUisp,\n } satisfies BasicSiteConfig,\n\n /**\n * \"experts.ui.com\" site config\n */\n expertsUi: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.expertsUi,\n } satisfies BasicSiteConfig,\n\n /**\n * \"blog.ui.com\" site config\n */\n blog: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.blog,\n } satisfies BasicSiteConfig,\n\n /**\n * \"casestudies.ui.com\" site config\n */\n caseStudies: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.caseStudies,\n } satisfies BasicSiteConfig,\n /**\n * \"installations.ui.com\" site config\n */\n installations: {\n type: SiteConfigType.Regional,\n defaultRegion: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.ui,\n ...getLanguageConfig(\"ui\", StoreId.Us),\n } satisfies BasicSiteConfig,\n regions: (() =>\n Object.values(StoreId).reduce<Record<StoreId, BasicSiteConfig | null>>(\n (acc, storeId) => {\n acc[storeId] = {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.ui,\n ...getLanguageConfig(\"ui\", storeId),\n };\n return acc;\n },\n { ...REGION_PRESET },\n ))(),\n } satisfies RegionalSite,\n\n /**\n * \"creators.ui.com\" site config\n */\n creators: {\n type: SiteConfigType.Basic,\n baseUrl: micrositeRootUrls.creators,\n } satisfies BasicSiteConfig,\n } satisfies StaticGlobalSiteConfig;\n};\n"],"names":["getStoreRootUrlsByEnv","buildEnv","STORE_ROOT_URLS_LOCAL","STORE_ROOT_URLS_PROTO","STORE_ROOT_URLS_HONEYPOT","STORE_ROOT_URLS_QA","STORE_ROOT_URLS_PROD","checkUnreachable","getMicrositeRootUrlsByEnv","MICROSITE_ROOT_URLS_LOCAL","MICROSITE_ROOT_URLS_PROTO","MICROSITE_ROOT_URLS_QA","MICROSITE_ROOT_URLS_PROD","getDeployedLanguagesBySiteByEnv","store","STORE_DEPLOYED_LANGUAGES_LOCAL","ui","UI_COM_DEPLOYED_LANGUAGES_LOCAL","installer","uwc","UWC_UI_COM_DEPLOYED_LANGUAGES_LOCAL","STORE_DEPLOYED_LANGUAGES_PROTO","UI_COM_DEPLOYED_LANGUAGES_PROTO","UWC_UI_COM_DEPLOYED_LANGUAGES_PROTO","STORE_DEPLOYED_LANGUAGES_QA","UI_COM_DEPLOYED_LANGUAGES_QA","UWC_UI_COM_DEPLOYED_LANGUAGES_QA","STORE_DEPLOYED_LANGUAGES_PROD","UI_COM_DEPLOYED_LANGUAGES_PROD","UWC_UI_COM_DEPLOYED_LANGUAGES_PROD","getGlobalSiteConfigByEnv","storeRootUrls","micrositeRootUrls","deployedLanguages","REGION_PRESET","StoreId","Us","Ca","Eu","Uk","Jp","Br","In","Me","Za","Tw","Sg","Cn","Mx","Ph","getLanguageConfig","siteId","storeId","isStoreId","defaultLanguage","languages","length","type","SiteConfigType","Regional","defaultRegion","Basic","baseUrl","regions","Object","values","reduce","acc","uisp","amplifi","techSpecs","Language","En","expertsUisp","expertsUi","blog","caseStudies","installations","creators"],"mappings":";;;;;;;;AA+CO,MAAMA,qBAAA,GAAyBC,QAAA,IAAuB;EAC3D,QAAQA,QAAA;IACN,KAAK,KAAA;IACL,KAAK,OAAA;MAAS;QACZ,OAAOC,qBAAA;MACT;IACA,KAAK,OAAA;MAAS;QACZ,OAAOC,qBAAA;MACT;IACA,KAAK,UAAA;MAAY;QACf,OAAOC,wBAAA;MACT;IACA,KAAK,IAAA;MAAM;QACT,OAAOC,kBAAA;MACT;IACA,KAAK,KAAA,CAAA;IACL,KAAK,MAAA;MAAQ;QACX,OAAOC,oBAAA;MACT;IACA;MAAS;QACPC,gBAAA,CAAiBN,QAAQ,CAAA;QACzB,OAAOK,oBAAA;MACT;EAAA;AAEJ,CAAA;AAOA,MAAME,yBAAA,GAA6BP,QAAA,IAAuB;EACxD,QAAQA,QAAA;IACN,KAAK,KAAA;IACL,KAAK,OAAA;MAAS;QACZ,OAAOQ,yBAAA;MACT;IACA,KAAK,OAAA;MAAS;QACZ,OAAOC,yBAAA;MACT;IACA,KAAK,IAAA;MAAM;QACT,OAAOC,sBAAA;MACT;IACA,KAAK,KAAA,CAAA;IACL,KAAK,UAAA;IACL,KAAK,MAAA;MAAQ;QACX,OAAOC,wBAAA;MACT;IACA;MAAS;QACP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