@ubnt/store.core 10.16.1-alpha.12 → 10.16.1-alpha.14
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 +20 -0
- package/lib/assets/ai-dome.jpg +0 -0
- package/lib/assets/ai-dome2.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-theta3.jpg +0 -0
- package/lib/assets/attention.svg +5 -5
- package/lib/assets/attention2.svg +5 -5
- package/lib/assets/compact.svg +2 -2
- package/lib/assets/compact2.svg +2 -2
- package/lib/assets/express.jpg +0 -0
- package/lib/assets/express2.jpg +0 -0
- package/lib/assets/g2-reader.jpg +0 -0
- package/lib/assets/g2-reader2.jpg +0 -0
- package/lib/assets/g3-reader-flex.jpg +0 -0
- package/lib/assets/g3-reader-flex2.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-instant3.jpg +0 -0
- package/lib/assets/g5-dome-ultra.jpg +0 -0
- package/lib/assets/g5-dome-ultra2.jpg +0 -0
- package/lib/assets/g5-dome.jpg +0 -0
- package/lib/assets/g5-dome2.jpg +0 -0
- package/lib/assets/g5-flex.jpg +0 -0
- package/lib/assets/g5-flex2.jpg +0 -0
- package/lib/assets/g5-flex3.jpg +0 -0
- package/lib/assets/g5-ptz.jpg +0 -0
- package/lib/assets/g5-ptz2.jpg +0 -0
- package/lib/assets/g5-turret-ultra.jpg +0 -0
- package/lib/assets/g5-turret-ultra2.jpg +0 -0
- package/lib/assets/g6-instant.jpg +0 -0
- package/lib/assets/g6-instant2.jpg +0 -0
- package/lib/assets/globe.svg +2 -9
- package/lib/assets/globe2.svg +9 -2
- package/lib/assets/intercom.jpg +0 -0
- package/lib/assets/intercom2.jpg +0 -0
- package/lib/assets/interior-design.svg +2 -2
- package/lib/assets/interior-design2.svg +2 -2
- package/lib/assets/power.svg +1 -4
- package/lib/assets/power2.svg +4 -1
- package/lib/assets/rack.svg +1 -4
- package/lib/assets/rack2.svg +4 -1
- package/lib/assets/udr2.jpg +0 -0
- package/lib/assets/udr3.jpg +0 -0
- package/lib/components/Header/Header.js +1 -1
- package/lib/components/Header/Header.mjs +1 -1
- package/lib/components/Header/MobileLinksModal/MobileMenu.js +4 -0
- package/lib/components/Header/MobileLinksModal/MobileMenu.js.map +1 -1
- package/lib/components/Header/MobileLinksModal/MobileMenu.mjs +4 -0
- package/lib/components/Header/MobileLinksModal/MobileMenu.mjs.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.js +1 -1
- package/lib/components/Header/ProHeader/ProHeader.mjs +1 -1
- package/lib/components/Header/translations/ar.json.js +43 -38
- package/lib/components/Header/translations/ar.json.js.map +1 -1
- package/lib/components/Header/translations/ar.json.mjs +43 -39
- package/lib/components/Header/translations/ar.json.mjs.map +1 -1
- package/lib/components/Header/translations/de.json.js +43 -38
- package/lib/components/Header/translations/de.json.js.map +1 -1
- package/lib/components/Header/translations/de.json.mjs +43 -39
- package/lib/components/Header/translations/de.json.mjs.map +1 -1
- package/lib/components/Header/translations/el.json.js +43 -38
- package/lib/components/Header/translations/el.json.js.map +1 -1
- package/lib/components/Header/translations/el.json.mjs +43 -39
- package/lib/components/Header/translations/el.json.mjs.map +1 -1
- package/lib/components/Header/translations/es.json.js +43 -38
- package/lib/components/Header/translations/es.json.js.map +1 -1
- package/lib/components/Header/translations/es.json.mjs +43 -39
- package/lib/components/Header/translations/es.json.mjs.map +1 -1
- package/lib/components/Header/translations/fr.json.js +43 -38
- package/lib/components/Header/translations/fr.json.js.map +1 -1
- package/lib/components/Header/translations/fr.json.mjs +43 -39
- package/lib/components/Header/translations/fr.json.mjs.map +1 -1
- package/lib/components/Header/translations/it.json.js +44 -39
- package/lib/components/Header/translations/it.json.js.map +1 -1
- package/lib/components/Header/translations/it.json.mjs +44 -40
- package/lib/components/Header/translations/it.json.mjs.map +1 -1
- package/lib/components/Header/translations/ja.json.js +43 -38
- package/lib/components/Header/translations/ja.json.js.map +1 -1
- package/lib/components/Header/translations/ja.json.mjs +43 -39
- package/lib/components/Header/translations/ja.json.mjs.map +1 -1
- package/lib/components/Header/translations/pt-BR.json.js +43 -38
- package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
- package/lib/components/Header/translations/pt-BR.json.mjs +43 -39
- package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
- package/lib/components/Header/translations/zh-Hans.json.js +44 -39
- package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
- package/lib/components/Header/translations/zh-Hans.json.mjs +44 -40
- package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.js +44 -39
- package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.mjs +44 -40
- package/lib/components/Header/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/components/MicrositeHeader/components/HeaderContent/HeaderContent.js +1 -1
- package/lib/components/MicrositeHeader/components/HeaderContent/HeaderContent.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.mjs +2 -2
- package/lib/constants/icons/header/globe.svg.js +1 -1
- package/lib/constants/icons/header/globe.svg.mjs +2 -2
- package/lib/constants/icons/header/index.js +1 -1
- package/lib/constants/icons/header/index.mjs +1 -1
- package/lib/constants/icons/menu/index.js +6 -6
- package/lib/constants/icons/menu/index.mjs +2 -2
- package/lib/constants/icons/menu/power.svg.js +5 -5
- package/lib/constants/icons/menu/power.svg.mjs +2 -2
- package/lib/constants/icons/menu/rack.svg.js +5 -5
- package/lib/constants/icons/menu/rack.svg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Bullet/ai-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/CameraSecurity/g4-instant.jpg.js +5 -5
- package/lib/constants/modelCompareData/assets/CameraSecurity/g4-instant.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/CameraSecurity/g5-flex.jpg.js +5 -5
- package/lib/constants/modelCompareData/assets/CameraSecurity/g5-flex.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/CameraSecurity/g6-instant.jpg.js +5 -5
- package/lib/constants/modelCompareData/assets/CameraSecurity/g6-instant.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/Compact/g6-instant.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Compact/g6-instant.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Consoles/bigCompare/express.jpg.js +5 -5
- package/lib/constants/modelCompareData/assets/Consoles/bigCompare/express.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Consoles/bigCompare/udr.jpg.js +5 -5
- package/lib/constants/modelCompareData/assets/Consoles/bigCompare/udr.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Consoles/express.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Consoles/express.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Consoles/udr.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Consoles/udr.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DomeTurret/ai-dome.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DomeTurret/ai-dome.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DomeTurret/g5-dome-ultra.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DomeTurret/g5-dome-ultra.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DomeTurret/g5-dome.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DomeTurret/g5-dome.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DomeTurret/g5-turret-ultra.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DomeTurret/g5-turret-ultra.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DoorAccess/g2-reader.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DoorAccess/g2-reader.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DoorAccess/g3-reader-flex.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DoorAccess/g3-reader-flex.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/PTZ/g5-ptz.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/PTZ/g5-ptz.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/compact.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/compact.svg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/globe.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/globe.svg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/interior-design.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/interior-design.svg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/power.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/power.svg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/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-dome.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/ai-dome.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-dome-ultra.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-dome-ultra.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-dome.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-dome.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-turret-ultra.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-turret-ultra.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g2-reader.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g2-reader.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g3-reader-flex.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g3-reader-flex.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/interior-design/ai-theta.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/interior-design/ai-theta.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/ptz/g5-ptz.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/ptz/g5-ptz.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/compact.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/compact.svg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/interior-design.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/interior-design.svg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/rack.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/rack.svg.mjs +2 -2
- package/lib/constants/modelCompareData/data/CameraSecurity.js +11 -11
- package/lib/constants/modelCompareData/data/CameraSecurity.mjs +6 -6
- package/lib/constants/modelCompareData/data/DreamMachineConsolev4.js +6 -6
- package/lib/constants/modelCompareData/data/DreamMachineConsolev4.mjs +4 -4
- package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Compact.js +1 -1
- package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Compact.mjs +1 -1
- package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/InteriorDesign.js +1 -1
- package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/InteriorDesign.mjs +1 -1
- package/lib/constants/modelCompareData/data/product-list-groups/compact.js +1 -1
- package/lib/constants/modelCompareData/data/product-list-groups/compact.mjs +1 -1
- package/lib/constants/modelCompareData/data/product-list-groups/interiorDesign.js +1 -1
- package/lib/constants/modelCompareData/data/product-list-groups/interiorDesign.mjs +1 -1
- package/lib/constants/modelCompareData/data/products/aiDome.js +2 -2
- package/lib/constants/modelCompareData/data/products/aiDome.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/aiLpr.js +2 -2
- package/lib/constants/modelCompareData/data/products/aiLpr.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/express.js +1 -1
- package/lib/constants/modelCompareData/data/products/express.mjs +1 -1
- package/lib/constants/modelCompareData/data/products/g2Reader.js +2 -2
- package/lib/constants/modelCompareData/data/products/g2Reader.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g3ReaderFlex.js +2 -2
- package/lib/constants/modelCompareData/data/products/g3ReaderFlex.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/g5Dome.js +2 -2
- package/lib/constants/modelCompareData/data/products/g5Dome.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g5DomeUltra.js +2 -2
- package/lib/constants/modelCompareData/data/products/g5DomeUltra.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g5Flex.js +2 -2
- package/lib/constants/modelCompareData/data/products/g5Flex.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g5Ptz.js +2 -2
- package/lib/constants/modelCompareData/data/products/g5Ptz.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g5TurretUltra.js +2 -2
- package/lib/constants/modelCompareData/data/products/g5TurretUltra.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g6Instant.js +1 -1
- package/lib/constants/modelCompareData/data/products/g6Instant.mjs +1 -1
- 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/theta.js +1 -1
- package/lib/constants/modelCompareData/data/products/theta.mjs +1 -1
- 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/udr.js +1 -1
- package/lib/constants/modelCompareData/data/products/udr.mjs +1 -1
- package/lib/constants/modelCompareData/data/properties/accessPowerMethod.js +1 -1
- package/lib/constants/modelCompareData/data/properties/accessPowerMethod.mjs +1 -1
- package/lib/constants/modelCompareData/data/properties/availability.js +1 -1
- package/lib/constants/modelCompareData/data/properties/availability.mjs +1 -1
- package/lib/constants/modelCompareData/data/properties/dcPowerOutput.js +1 -1
- package/lib/constants/modelCompareData/data/properties/dcPowerOutput.mjs +1 -1
- package/lib/constants/modelCompareData/data/properties/mounting.js +1 -1
- package/lib/constants/modelCompareData/data/properties/mounting.mjs +1 -1
- package/lib/constants/modelCompareData/data/properties/webMode.js +1 -1
- package/lib/constants/modelCompareData/data/properties/webMode.mjs +1 -1
- package/lib/contexts/MenuContext/mapping.js +3 -3
- package/lib/contexts/MenuContext/mapping.mjs +2 -2
- package/package.json +1 -1
package/lib/assets/rack2.svg
CHANGED
|
@@ -1 +1,4 @@
|
|
|
1
|
-
<svg
|
|
1
|
+
<svg width="31" height="31" viewBox="0 0 31 31" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M23 5.20898H8L8 26.209H23V5.20898ZM8 3.70898C7.17157 3.70898 6.5 4.38056 6.5 5.20898V26.209C6.5 27.0374 7.17157 27.709 8 27.709H23C23.8284 27.709 24.5 27.0374 24.5 26.209V5.20898C24.5 4.38056 23.8284 3.70898 23 3.70898H8Z" fill="#212124"/>
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M20.75 8.20898C20.75 7.38056 20.1624 6.70898 19.4375 6.70898H11.5625C10.8376 6.70898 10.25 7.38056 10.25 8.20898V9.70898C10.25 10.5374 10.8376 11.209 11.5625 11.209H19.4375C20.1624 11.209 20.75 10.5374 20.75 9.70898V8.20898ZM11.75 8.20898H19.25V9.70898H11.75V8.20898ZM20.75 16.834C20.75 16.2127 20.1624 15.709 19.4375 15.709H11.5625C10.8376 15.709 10.25 16.2127 10.25 16.834V19.084C10.25 19.7053 10.8376 20.209 11.5625 20.209H19.4375C20.1624 20.209 20.75 19.7053 20.75 19.084V16.834ZM11.75 17.209H19.25V18.709H11.75V17.209ZM20.75 13.459C20.75 13.0448 20.4142 12.709 20 12.709H11C10.5858 12.709 10.25 13.0448 10.25 13.459C10.25 13.8732 10.5858 14.209 11 14.209H20C20.4142 14.209 20.75 13.8732 20.75 13.459ZM20 21.709C20.4142 21.709 20.75 22.0448 20.75 22.459C20.75 22.8732 20.4142 23.209 20 23.209H11C10.5858 23.209 10.25 22.8732 10.25 22.459C10.25 22.0448 10.5858 21.709 11 21.709H20Z" fill="#212124"/>
|
|
4
|
+
</svg>
|
package/lib/assets/udr2.jpg
CHANGED
|
Binary file
|
package/lib/assets/udr3.jpg
CHANGED
|
Binary file
|
|
@@ -40,7 +40,7 @@ var _externalAssets_CzDCu21b = require("../../assets/hamburger.svg");
|
|
|
40
40
|
var _externalAssets_BPYvPCPi = require("../../assets/logo.svg");
|
|
41
41
|
var _externalAssets_TKrekyEi = require("../../assets/logoUisp.svg");
|
|
42
42
|
var logoUnifi = require("../../assets/logoUnifi.svg");
|
|
43
|
-
var globe = require("../../assets/
|
|
43
|
+
var globe = require("../../assets/globe.svg");
|
|
44
44
|
var Empty = require('./CartModal/Empty/Empty.js');
|
|
45
45
|
var MobileModal = require('../MobileModal/MobileModal.js');
|
|
46
46
|
var Mobile = require('./AccountFrame/Mobile/Mobile.js');
|
|
@@ -38,7 +38,7 @@ import _externalAssets_CzDCu21b__default from "../../assets/hamburger.svg";
|
|
|
38
38
|
import _externalAssets_BPYvPCPi__default from "../../assets/logo.svg";
|
|
39
39
|
import _externalAssets_TKrekyEi__default from "../../assets/logoUisp.svg";
|
|
40
40
|
import logoUnifi__default from "../../assets/logoUnifi.svg";
|
|
41
|
-
import globe__default from "../../assets/
|
|
41
|
+
import globe__default from "../../assets/globe.svg";
|
|
42
42
|
import { EmptyCartModal } from './CartModal/Empty/Empty.mjs';
|
|
43
43
|
import { MobileModal } from '../MobileModal/MobileModal.mjs';
|
|
44
44
|
import { AccountFrameMobile } from './AccountFrame/Mobile/Mobile.mjs';
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var React = require('react');
|
|
5
|
+
var reactUse = require('react-use');
|
|
5
6
|
require('../../../constants/icons/index.js');
|
|
6
7
|
require('../../../contexts/MicrositeMenuContext/index.js');
|
|
7
8
|
var mapping = require('../../../contexts/MicrositeMenuContext/mapping.js');
|
|
@@ -37,6 +38,9 @@ const MobileLinksModal = ({
|
|
|
37
38
|
miscLinks
|
|
38
39
|
} = useFooterContent.useFooterContent();
|
|
39
40
|
const motif = LIGHT_KEY;
|
|
41
|
+
reactUse.useEffectOnce(() => {
|
|
42
|
+
window.scrollTo(0, 1);
|
|
43
|
+
});
|
|
40
44
|
const [expandedSectionItemId, setExpandedSectionItemId] = React.useState(null);
|
|
41
45
|
const toggleExpandedSectionItemId = React.useCallback(itemId => {
|
|
42
46
|
setExpandedSectionItemId(expandedSectionItemId === itemId ? null : itemId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobileMenu.js","sources":["../../../../src/components/Header/MobileLinksModal/MobileMenu.tsx"],"sourcesContent":["import type { Motif } from \"@ubnt/ui-components/utils\";\nimport { useCallback, useMemo, useState } from \"react\";\n\nimport * as icons from \"../../../constants/icons\";\nimport { useMicrositeMenu } from \"../../../contexts/MicrositeMenuContext\";\nimport { START_HERE_ID } from \"../../../contexts/MicrositeMenuContext/mapping\";\nimport { useMicrositeMenuTranslations } from \"../../../contexts/MicrositeMenuContext/translations\";\nimport type { ParsedMicrositeHeaderItem } from \"../../../contexts/MicrositeMenuContext/types\";\nimport type { FooterLinkId } from \"../../Footer/hooks/useFooterContent\";\nimport { useFooterContent } from \"../../Footer/hooks/useFooterContent\";\nimport { StyleableSvgImage } from \"../../StyleableSvgImage\";\nimport * as S from \"./MobileMenu.styles\";\nconst LIGHT_KEY = \"light\";\n\nexport interface MobileLinksProps {\n menu: Pick<ParsedMicrositeHeaderItem, \"label\" | \"url\" | \"items\">;\n onMenuItemClick: (e: React.MouseEvent<HTMLElement>, url: string) => void;\n onModalClose: () => void;\n}\n\nexport const MobileLinksModal = ({\n menu,\n onMenuItemClick,\n onModalClose,\n}: MobileLinksProps) => {\n const { language } = useMicrositeMenu();\n const { formatMessage } = useMicrositeMenuTranslations(language);\n const { footerContent, socialContent, miscLinks } = useFooterContent();\n\n const motif: Motif = LIGHT_KEY;\n\n // #############################################################################\n // Section toggling\n // #############################################################################\n const [expandedSectionItemId, setExpandedSectionItemId] = useState<\n string | null\n >(null);\n\n const toggleExpandedSectionItemId = useCallback(\n (itemId: string) => {\n setExpandedSectionItemId(\n expandedSectionItemId === itemId ? null : itemId,\n );\n },\n [expandedSectionItemId],\n );\n\n const getPreparedMenu = useMemo(() => {\n return (menu?.items ?? []).flatMap((item) => {\n // @TODO Filter out SiteMap?\n\n // Flatten Start Here one level\n if (item.id === START_HERE_ID && Array.isArray(item.items)) {\n return item.items;\n }\n return item;\n });\n }, [menu]);\n\n // #############################################################################\n // Render\n // #############################################################################\n\n const handleItemClick = (\n event: React.MouseEvent<HTMLButtonElement, MouseEvent>,\n item?: ParsedMicrositeHeaderItem,\n ) => {\n if (item?.items?.length) {\n event.stopPropagation();\n toggleExpandedSectionItemId(item.id);\n } else if (item?.url) {\n onMenuItemClick(event, item.url);\n onModalClose();\n }\n };\n\n type FooterItem = {\n id: FooterLinkId;\n label: string;\n src: string;\n target?: string;\n isSectionEnd?: boolean;\n };\n\n type FooterSection = {\n header: {\n id: string;\n label: string;\n };\n items: FooterItem[];\n };\n\n type FooterSections = {\n company: FooterSection;\n training: FooterSection;\n buy: FooterSection;\n tools: FooterSection;\n social: FooterSection;\n };\n\n function normalizeFooterSections(sections: FooterSections) {\n return Object.values(sections).map((section, i) => ({\n id: section.header.id,\n label: section.header.label,\n isSectionEnd: i === Object.keys(sections).length - 1,\n items: section.items,\n }));\n }\n\n const normalizedFooterContent = normalizeFooterSections({\n ...footerContent,\n social: socialContent,\n });\n\n return (\n <S.Wrap>\n <S.Container size=\"mobile\" noVerticalMargin fullHeight>\n <S.InnerWrap>\n <S.Section>\n {getPreparedMenu.map((item) => (\n <S.SectionItemsGroup\n motif={motif}\n key={item.id}\n $active={item.id === expandedSectionItemId}\n // @NOTE to separate sections and styling until there's a better way\n $isSectionEnd={item?.isSectionEnd}\n $isSectionBegin={item?.isSectionBegin}\n >\n <S.SectionItem\n motif={motif}\n onClick={(event) => handleItemClick(event, item)}\n >\n <S.SectionItemLabel\n $active={item.id === expandedSectionItemId}\n motif={motif}\n >\n {formatMessage(item.label)}\n </S.SectionItemLabel>\n\n {item?.items && (\n <S.SectionItemArrowButton motif={motif}>\n <S.ButtonIcon>\n <S.Chevron\n src={icons.generic.collapseArrow}\n width={13}\n height={8}\n $active={item.id === expandedSectionItemId}\n />\n </S.ButtonIcon>\n </S.SectionItemArrowButton>\n )}\n </S.SectionItem>\n\n {item.id === expandedSectionItemId &&\n item?.items?.map((subItem) => (\n <S.SectionItem\n key={subItem.id}\n motif=\"dark\"\n $secondary\n onClick={(event) => handleItemClick(event, subItem)}\n >\n <S.SectionItemLabel motif={motif}>\n {formatMessage(subItem.label)}\n {subItem.isNew && (\n <S.Badge>\n {formatMessage(\"commons.menu.label.new\")}\n </S.Badge>\n )}\n </S.SectionItemLabel>\n </S.SectionItem>\n ))}\n </S.SectionItemsGroup>\n ))}\n\n {/* Header Links that don't exist in Desktop Footer */}\n {[...miscLinks].map((item, i) => (\n <S.SectionItemsGroup\n motif={motif}\n key={item.id}\n $active={item.id === expandedSectionItemId}\n $isSectionBegin={i === 0}\n >\n <S.SectionItemLink\n motif={motif}\n href={item.src}\n target={item?.target ?? \"self\"}\n as=\"a\"\n >\n <S.SectionItemLabel\n $active={item.id === expandedSectionItemId}\n motif={motif}\n >\n {item.label}\n </S.SectionItemLabel>\n </S.SectionItemLink>\n </S.SectionItemsGroup>\n ))}\n\n {/* Footer Links to be included in Mobile Nav Modal */}\n {normalizedFooterContent.map((item) => (\n <S.SectionItemsGroup\n motif={motif}\n key={item.id}\n $active={item.id === expandedSectionItemId}\n $isSectionEnd={item?.isSectionEnd}\n >\n <S.SectionItem\n motif={motif}\n onClick={() =>\n item?.items && toggleExpandedSectionItemId(item.id)\n }\n >\n <S.SectionItemLabel\n $active={item.id === expandedSectionItemId}\n motif={motif}\n >\n {item.label}\n </S.SectionItemLabel>\n\n {item?.items && (\n <S.SectionItemArrowButton\n motif={motif}\n onClick={() => toggleExpandedSectionItemId(item.id)}\n >\n <S.ButtonIcon>\n <StyleableSvgImage\n src={icons.generic.collapseArrow}\n width={13}\n height={8}\n $active={item.id === expandedSectionItemId}\n />\n </S.ButtonIcon>\n </S.SectionItemArrowButton>\n )}\n </S.SectionItem>\n\n {item.id === expandedSectionItemId &&\n item?.items?.map((subItem) => (\n <S.SectionItemLink\n key={subItem.id}\n motif=\"dark\"\n $secondary\n href={subItem.src}\n as=\"a\"\n >\n <S.SectionItemLabel motif={motif}>\n {subItem.label}\n </S.SectionItemLabel>\n </S.SectionItemLink>\n ))}\n </S.SectionItemsGroup>\n ))}\n </S.Section>\n </S.InnerWrap>\n </S.Container>\n </S.Wrap>\n );\n};\n"],"names":["LIGHT_KEY","MobileLinksModal","menu","onMenuItemClick","onModalClose","language","useMicrositeMenu","formatMessage","useMicrositeMenuTranslations","footerContent","socialContent","miscLinks","useFooterContent","motif","expandedSectionItemId","setExpandedSectionItemId","useState","toggleExpandedSectionItemId","useCallback","itemId","getPreparedMenu","useMemo","items","flatMap","item","id","START_HERE_ID","Array","isArray","handleItemClick","event","length","stopPropagation","url","normalizeFooterSections","sections","Object","values","map","section","i","header","label","isSectionEnd","keys","normalizedFooterContent","social","jsx","S.Wrap","children","S.Container","size","noVerticalMargin","fullHeight","S.InnerWrap","jsxs","S.Section","S.SectionItemsGroup","SectionItemsGroup","$active","$isSectionEnd","$isSectionBegin","isSectionBegin","S.SectionItem","SectionItem","onClick","S.SectionItemLabel","SectionItemLabel","S.SectionItemArrowButton","S.ButtonIcon","S.Chevron","Chevron","src","icons.generic.collapseArrow","width","height","subItem","$secondary","isNew","S.Badge","S.SectionItemLink","SectionItemLink","href","target","as","SectionItemArrowButton","StyleableSvgImage"],"mapp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AA;GACF,CAAA;AAEJ,CAAA;"}
|
|
1
|
+
{"version":3,"file":"MobileMenu.js","sources":["../../../../src/components/Header/MobileLinksModal/MobileMenu.tsx"],"sourcesContent":["import type { Motif } from \"@ubnt/ui-components/utils\";\nimport { useCallback, useMemo, useState } from \"react\";\nimport { useEffectOnce } from \"react-use\";\n\nimport * as icons from \"../../../constants/icons\";\nimport { useMicrositeMenu } from \"../../../contexts/MicrositeMenuContext\";\nimport { START_HERE_ID } from \"../../../contexts/MicrositeMenuContext/mapping\";\nimport { useMicrositeMenuTranslations } from \"../../../contexts/MicrositeMenuContext/translations\";\nimport type { ParsedMicrositeHeaderItem } from \"../../../contexts/MicrositeMenuContext/types\";\nimport type { FooterLinkId } from \"../../Footer/hooks/useFooterContent\";\nimport { useFooterContent } from \"../../Footer/hooks/useFooterContent\";\nimport { StyleableSvgImage } from \"../../StyleableSvgImage\";\nimport * as S from \"./MobileMenu.styles\";\nconst LIGHT_KEY = \"light\";\n\nexport interface MobileLinksProps {\n menu: Pick<ParsedMicrositeHeaderItem, \"label\" | \"url\" | \"items\">;\n onMenuItemClick: (e: React.MouseEvent<HTMLElement>, url: string) => void;\n onModalClose: () => void;\n}\n\nexport const MobileLinksModal = ({\n menu,\n onMenuItemClick,\n onModalClose,\n}: MobileLinksProps) => {\n const { language } = useMicrositeMenu();\n const { formatMessage } = useMicrositeMenuTranslations(language);\n const { footerContent, socialContent, miscLinks } = useFooterContent();\n\n const motif: Motif = LIGHT_KEY;\n\n useEffectOnce(() => {\n window.scrollTo(0, 1);\n });\n\n // #############################################################################\n // Section toggling\n // #############################################################################\n const [expandedSectionItemId, setExpandedSectionItemId] = useState<\n string | null\n >(null);\n\n const toggleExpandedSectionItemId = useCallback(\n (itemId: string) => {\n setExpandedSectionItemId(\n expandedSectionItemId === itemId ? null : itemId,\n );\n },\n [expandedSectionItemId],\n );\n\n const getPreparedMenu = useMemo(() => {\n return (menu?.items ?? []).flatMap((item) => {\n // @TODO Filter out SiteMap?\n\n // Flatten Start Here one level\n if (item.id === START_HERE_ID && Array.isArray(item.items)) {\n return item.items;\n }\n return item;\n });\n }, [menu]);\n\n // #############################################################################\n // Render\n // #############################################################################\n\n const handleItemClick = (\n event: React.MouseEvent<HTMLButtonElement, MouseEvent>,\n item?: ParsedMicrositeHeaderItem,\n ) => {\n if (item?.items?.length) {\n event.stopPropagation();\n toggleExpandedSectionItemId(item.id);\n } else if (item?.url) {\n onMenuItemClick(event, item.url);\n onModalClose();\n }\n };\n\n type FooterItem = {\n id: FooterLinkId;\n label: string;\n src: string;\n target?: string;\n isSectionEnd?: boolean;\n };\n\n type FooterSection = {\n header: {\n id: string;\n label: string;\n };\n items: FooterItem[];\n };\n\n type FooterSections = {\n company: FooterSection;\n training: FooterSection;\n buy: FooterSection;\n tools: FooterSection;\n social: FooterSection;\n };\n\n function normalizeFooterSections(sections: FooterSections) {\n return Object.values(sections).map((section, i) => ({\n id: section.header.id,\n label: section.header.label,\n isSectionEnd: i === Object.keys(sections).length - 1,\n items: section.items,\n }));\n }\n\n const normalizedFooterContent = normalizeFooterSections({\n ...footerContent,\n social: socialContent,\n });\n\n return (\n <S.Wrap>\n <S.Container size=\"mobile\" noVerticalMargin fullHeight>\n <S.InnerWrap>\n <S.Section>\n {getPreparedMenu.map((item) => (\n <S.SectionItemsGroup\n motif={motif}\n key={item.id}\n $active={item.id === expandedSectionItemId}\n // @NOTE to separate sections and styling until there's a better way\n $isSectionEnd={item?.isSectionEnd}\n $isSectionBegin={item?.isSectionBegin}\n >\n <S.SectionItem\n motif={motif}\n onClick={(event) => handleItemClick(event, item)}\n >\n <S.SectionItemLabel\n $active={item.id === expandedSectionItemId}\n motif={motif}\n >\n {formatMessage(item.label)}\n </S.SectionItemLabel>\n\n {item?.items && (\n <S.SectionItemArrowButton motif={motif}>\n <S.ButtonIcon>\n <S.Chevron\n src={icons.generic.collapseArrow}\n width={13}\n height={8}\n $active={item.id === expandedSectionItemId}\n />\n </S.ButtonIcon>\n </S.SectionItemArrowButton>\n )}\n </S.SectionItem>\n\n {item.id === expandedSectionItemId &&\n item?.items?.map((subItem) => (\n <S.SectionItem\n key={subItem.id}\n motif=\"dark\"\n $secondary\n onClick={(event) => handleItemClick(event, subItem)}\n >\n <S.SectionItemLabel motif={motif}>\n {formatMessage(subItem.label)}\n {subItem.isNew && (\n <S.Badge>\n {formatMessage(\"commons.menu.label.new\")}\n </S.Badge>\n )}\n </S.SectionItemLabel>\n </S.SectionItem>\n ))}\n </S.SectionItemsGroup>\n ))}\n\n {/* Header Links that don't exist in Desktop Footer */}\n {[...miscLinks].map((item, i) => (\n <S.SectionItemsGroup\n motif={motif}\n key={item.id}\n $active={item.id === expandedSectionItemId}\n $isSectionBegin={i === 0}\n >\n <S.SectionItemLink\n motif={motif}\n href={item.src}\n target={item?.target ?? \"self\"}\n as=\"a\"\n >\n <S.SectionItemLabel\n $active={item.id === expandedSectionItemId}\n motif={motif}\n >\n {item.label}\n </S.SectionItemLabel>\n </S.SectionItemLink>\n </S.SectionItemsGroup>\n ))}\n\n {/* Footer Links to be included in Mobile Nav Modal */}\n {normalizedFooterContent.map((item) => (\n <S.SectionItemsGroup\n motif={motif}\n key={item.id}\n $active={item.id === expandedSectionItemId}\n $isSectionEnd={item?.isSectionEnd}\n >\n <S.SectionItem\n motif={motif}\n onClick={() =>\n item?.items && toggleExpandedSectionItemId(item.id)\n }\n >\n <S.SectionItemLabel\n $active={item.id === expandedSectionItemId}\n motif={motif}\n >\n {item.label}\n </S.SectionItemLabel>\n\n {item?.items && (\n <S.SectionItemArrowButton\n motif={motif}\n onClick={() => toggleExpandedSectionItemId(item.id)}\n >\n <S.ButtonIcon>\n <StyleableSvgImage\n src={icons.generic.collapseArrow}\n width={13}\n height={8}\n $active={item.id === expandedSectionItemId}\n />\n </S.ButtonIcon>\n </S.SectionItemArrowButton>\n )}\n </S.SectionItem>\n\n {item.id === expandedSectionItemId &&\n item?.items?.map((subItem) => (\n <S.SectionItemLink\n key={subItem.id}\n motif=\"dark\"\n $secondary\n href={subItem.src}\n as=\"a\"\n >\n <S.SectionItemLabel motif={motif}>\n {subItem.label}\n </S.SectionItemLabel>\n </S.SectionItemLink>\n ))}\n </S.SectionItemsGroup>\n ))}\n </S.Section>\n </S.InnerWrap>\n </S.Container>\n </S.Wrap>\n );\n};\n"],"names":["LIGHT_KEY","MobileLinksModal","menu","onMenuItemClick","onModalClose","language","useMicrositeMenu","formatMessage","useMicrositeMenuTranslations","footerContent","socialContent","miscLinks","useFooterContent","motif","useEffectOnce","window","scrollTo","expandedSectionItemId","setExpandedSectionItemId","useState","toggleExpandedSectionItemId","useCallback","itemId","getPreparedMenu","useMemo","items","flatMap","item","id","START_HERE_ID","Array","isArray","handleItemClick","event","length","stopPropagation","url","normalizeFooterSections","sections","Object","values","map","section","i","header","label","isSectionEnd","keys","normalizedFooterContent","social","jsx","S.Wrap","children","S.Container","size","noVerticalMargin","fullHeight","S.InnerWrap","jsxs","S.Section","S.SectionItemsGroup","SectionItemsGroup","$active","$isSectionEnd","$isSectionBegin","isSectionBegin","S.SectionItem","SectionItem","onClick","S.SectionItemLabel","SectionItemLabel","S.SectionItemArrowButton","S.ButtonIcon","S.Chevron","Chevron","src","icons.generic.collapseArrow","width","height","subItem","$secondary","isNew","S.Badge","S.SectionItemLink","SectionItemLink","href","target","as","SectionItemArrowButton","StyleableSvgImage"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAaA,MAAMA,SAAY,GAAA,OAAA;AAQX,MAAMC,mBAAmBA,CAAC;EAC/BC,IAAA;EACAC,eAAA;EACAC;AACF,CAAwB,KAAA;EAChB,MAAA;IAAEC;EAAS,CAAA,GAAIC,wBAAiB,CAAA,CAAA;EACtC,MAAM;IAAEC;EAAA,CAAkB,GAAAC,YAAA,CAAAA,4BAAA,CAA6BH,QAAQ,CAAA;EAC/D,MAAM;IAAEI,aAAA;IAAeC,aAAe;IAAAC;EAAA,IAAcC,gBAAAA,CAAAA,gBAAiB,CAAA,CAAA;EAErE,MAAMC,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,CAAAA,GAAA,CAACqB,iBAAE,CAAAiB,sBAAA,EAAF;gBACC3E,KAAA;gBACAuD,OAAS,EAAAA,CAAA,KAAMhD,2BAA4B,CAAAO,IAAA,CAAKC,EAAE,CAAA;gBAElDwB,QAAA,iBAAAF,UAAA,CAAAA,GAAA,CAACsB,4BAAE,EAAF;kBACCpB,QAAA,EAAA,eAAAF,UAAA,CAAAA,GAAA,CAACuC,iBAAA,CAAAA,iBAAA,EAAA;oBACCd,GAAA,EAAKC,iCAAc,CAAA,SAAA,CAAA;oBACnBC,KAAO,EAAA,EAAA;oBACPC,MAAQ,EAAA,CAAA;oBACRhB,OAAA,EAASnC,KAAKC,EAAO,KAAAX;kBAAA,CAAA;gBAEzB,CAAA;cAAA,CAAA,CAAA;YACF,CAEJ,CAAA,EAECU,KAAKC,EAAO,KAAAX,qBAAA,IACXU,MAAMF,KAAO,EAAAgB,GAAA,CAAKsC,OAChB,mBAAA7B,UAAA,CAAAA,GAAA,CAACiC,iBAAE,CAAAC,eAAA,EAAF;cAECvE,KAAM,EAAA,MAAA;cACNmE,UAAU,EAAA,IAAA;cACVK,MAAMN,OAAQ,CAAAJ,GAAA;cACdY,EAAG,EAAA,GAAA;cAEHnC,wCAACiB,kCAAE,EAAF;gBAAmBxD,KAAA;gBACjBuC,kBAAQP;cACX,CAAA;YAAA,CAAA,EARKkC,OAAQ,CAAAnD,EAUhB,CAAA,CAAA;UAAA,CAAA,EA/CED,IAAK,CAAAC,EAiDb,CAAA,CAAA;SACH;MAAA,CACF;IACF,CAAA;GACF,CAAA;AAEJ,CAAA;"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { useState, useCallback, useMemo } from 'react';
|
|
3
|
+
import { useEffectOnce } from 'react-use';
|
|
3
4
|
import '../../../constants/icons/index.mjs';
|
|
4
5
|
import '../../../contexts/MicrositeMenuContext/index.mjs';
|
|
5
6
|
import { START_HERE_ID } from '../../../contexts/MicrositeMenuContext/mapping.mjs';
|
|
@@ -29,6 +30,9 @@ const MobileLinksModal = ({
|
|
|
29
30
|
miscLinks
|
|
30
31
|
} = useFooterContent();
|
|
31
32
|
const motif = LIGHT_KEY;
|
|
33
|
+
useEffectOnce(() => {
|
|
34
|
+
window.scrollTo(0, 1);
|
|
35
|
+
});
|
|
32
36
|
const [expandedSectionItemId, setExpandedSectionItemId] = useState(null);
|
|
33
37
|
const toggleExpandedSectionItemId = useCallback(itemId => {
|
|
34
38
|
setExpandedSectionItemId(expandedSectionItemId === itemId ? null : itemId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobileMenu.mjs","sources":["../../../../src/components/Header/MobileLinksModal/MobileMenu.tsx"],"sourcesContent":["import type { Motif } from \"@ubnt/ui-components/utils\";\nimport { useCallback, useMemo, useState } from \"react\";\n\nimport * as icons from \"../../../constants/icons\";\nimport { useMicrositeMenu } from \"../../../contexts/MicrositeMenuContext\";\nimport { START_HERE_ID } from \"../../../contexts/MicrositeMenuContext/mapping\";\nimport { useMicrositeMenuTranslations } from \"../../../contexts/MicrositeMenuContext/translations\";\nimport type { ParsedMicrositeHeaderItem } from \"../../../contexts/MicrositeMenuContext/types\";\nimport type { FooterLinkId } from \"../../Footer/hooks/useFooterContent\";\nimport { useFooterContent } from \"../../Footer/hooks/useFooterContent\";\nimport { StyleableSvgImage } from \"../../StyleableSvgImage\";\nimport * as S from \"./MobileMenu.styles\";\nconst LIGHT_KEY = \"light\";\n\nexport interface MobileLinksProps {\n menu: Pick<ParsedMicrositeHeaderItem, \"label\" | \"url\" | \"items\">;\n onMenuItemClick: (e: React.MouseEvent<HTMLElement>, url: string) => void;\n onModalClose: () => void;\n}\n\nexport const MobileLinksModal = ({\n menu,\n onMenuItemClick,\n onModalClose,\n}: MobileLinksProps) => {\n const { language } = useMicrositeMenu();\n const { formatMessage } = useMicrositeMenuTranslations(language);\n const { footerContent, socialContent, miscLinks } = useFooterContent();\n\n const motif: Motif = LIGHT_KEY;\n\n // #############################################################################\n // Section toggling\n // #############################################################################\n const [expandedSectionItemId, setExpandedSectionItemId] = useState<\n string | null\n >(null);\n\n const toggleExpandedSectionItemId = useCallback(\n (itemId: string) => {\n setExpandedSectionItemId(\n expandedSectionItemId === itemId ? null : itemId,\n );\n },\n [expandedSectionItemId],\n );\n\n const getPreparedMenu = useMemo(() => {\n return (menu?.items ?? []).flatMap((item) => {\n // @TODO Filter out SiteMap?\n\n // Flatten Start Here one level\n if (item.id === START_HERE_ID && Array.isArray(item.items)) {\n return item.items;\n }\n return item;\n });\n }, [menu]);\n\n // #############################################################################\n // Render\n // #############################################################################\n\n const handleItemClick = (\n event: React.MouseEvent<HTMLButtonElement, MouseEvent>,\n item?: ParsedMicrositeHeaderItem,\n ) => {\n if (item?.items?.length) {\n event.stopPropagation();\n toggleExpandedSectionItemId(item.id);\n } else if (item?.url) {\n onMenuItemClick(event, item.url);\n onModalClose();\n }\n };\n\n type FooterItem = {\n id: FooterLinkId;\n label: string;\n src: string;\n target?: string;\n isSectionEnd?: boolean;\n };\n\n type FooterSection = {\n header: {\n id: string;\n label: string;\n };\n items: FooterItem[];\n };\n\n type FooterSections = {\n company: FooterSection;\n training: FooterSection;\n buy: FooterSection;\n tools: FooterSection;\n social: FooterSection;\n };\n\n function normalizeFooterSections(sections: FooterSections) {\n return Object.values(sections).map((section, i) => ({\n id: section.header.id,\n label: section.header.label,\n isSectionEnd: i === Object.keys(sections).length - 1,\n items: section.items,\n }));\n }\n\n const normalizedFooterContent = normalizeFooterSections({\n ...footerContent,\n social: socialContent,\n });\n\n return (\n <S.Wrap>\n <S.Container size=\"mobile\" noVerticalMargin fullHeight>\n <S.InnerWrap>\n <S.Section>\n {getPreparedMenu.map((item) => (\n <S.SectionItemsGroup\n motif={motif}\n key={item.id}\n $active={item.id === expandedSectionItemId}\n // @NOTE to separate sections and styling until there's a better way\n $isSectionEnd={item?.isSectionEnd}\n $isSectionBegin={item?.isSectionBegin}\n >\n <S.SectionItem\n motif={motif}\n onClick={(event) => handleItemClick(event, item)}\n >\n <S.SectionItemLabel\n $active={item.id === expandedSectionItemId}\n motif={motif}\n >\n {formatMessage(item.label)}\n </S.SectionItemLabel>\n\n {item?.items && (\n <S.SectionItemArrowButton motif={motif}>\n <S.ButtonIcon>\n <S.Chevron\n src={icons.generic.collapseArrow}\n width={13}\n height={8}\n $active={item.id === expandedSectionItemId}\n />\n </S.ButtonIcon>\n </S.SectionItemArrowButton>\n )}\n </S.SectionItem>\n\n {item.id === expandedSectionItemId &&\n item?.items?.map((subItem) => (\n <S.SectionItem\n key={subItem.id}\n motif=\"dark\"\n $secondary\n onClick={(event) => handleItemClick(event, subItem)}\n >\n <S.SectionItemLabel motif={motif}>\n {formatMessage(subItem.label)}\n {subItem.isNew && (\n <S.Badge>\n {formatMessage(\"commons.menu.label.new\")}\n </S.Badge>\n )}\n </S.SectionItemLabel>\n </S.SectionItem>\n ))}\n </S.SectionItemsGroup>\n ))}\n\n {/* Header Links that don't exist in Desktop Footer */}\n {[...miscLinks].map((item, i) => (\n <S.SectionItemsGroup\n motif={motif}\n key={item.id}\n $active={item.id === expandedSectionItemId}\n $isSectionBegin={i === 0}\n >\n <S.SectionItemLink\n motif={motif}\n href={item.src}\n target={item?.target ?? \"self\"}\n as=\"a\"\n >\n <S.SectionItemLabel\n $active={item.id === expandedSectionItemId}\n motif={motif}\n >\n {item.label}\n </S.SectionItemLabel>\n </S.SectionItemLink>\n </S.SectionItemsGroup>\n ))}\n\n {/* Footer Links to be included in Mobile Nav Modal */}\n {normalizedFooterContent.map((item) => (\n <S.SectionItemsGroup\n motif={motif}\n key={item.id}\n $active={item.id === expandedSectionItemId}\n $isSectionEnd={item?.isSectionEnd}\n >\n <S.SectionItem\n motif={motif}\n onClick={() =>\n item?.items && toggleExpandedSectionItemId(item.id)\n }\n >\n <S.SectionItemLabel\n $active={item.id === expandedSectionItemId}\n motif={motif}\n >\n {item.label}\n </S.SectionItemLabel>\n\n {item?.items && (\n <S.SectionItemArrowButton\n motif={motif}\n onClick={() => toggleExpandedSectionItemId(item.id)}\n >\n <S.ButtonIcon>\n <StyleableSvgImage\n src={icons.generic.collapseArrow}\n width={13}\n height={8}\n $active={item.id === expandedSectionItemId}\n />\n </S.ButtonIcon>\n </S.SectionItemArrowButton>\n )}\n </S.SectionItem>\n\n {item.id === expandedSectionItemId &&\n item?.items?.map((subItem) => (\n <S.SectionItemLink\n key={subItem.id}\n motif=\"dark\"\n $secondary\n href={subItem.src}\n as=\"a\"\n >\n <S.SectionItemLabel motif={motif}>\n {subItem.label}\n </S.SectionItemLabel>\n </S.SectionItemLink>\n ))}\n </S.SectionItemsGroup>\n ))}\n </S.Section>\n </S.InnerWrap>\n </S.Container>\n </S.Wrap>\n );\n};\n"],"names":["LIGHT_KEY","MobileLinksModal","menu","onMenuItemClick","onModalClose","language","useMicrositeMenu","formatMessage","useMicrositeMenuTranslations","footerContent","socialContent","miscLinks","useFooterContent","motif","expandedSectionItemId","setExpandedSectionItemId","useState","toggleExpandedSectionItemId","useCallback","itemId","getPreparedMenu","useMemo","items","flatMap","item","id","START_HERE_ID","Array","isArray","handleItemClick","event","length","stopPropagation","url","normalizeFooterSections","sections","Object","values","map","section","i","header","label","isSectionEnd","keys","normalizedFooterContent","social","jsx","S.Wrap","children","S.Container","size","noVerticalMargin","fullHeight","S.InnerWrap","jsxs","S.Section","S.SectionItemsGroup","$active","$isSectionEnd","$isSectionBegin","isSectionBegin","S.SectionItem","onClick","S.SectionItemLabel","S.SectionItemArrowButton","S.ButtonIcon","S.Chevron","src","icons.generic.collapseArrow","width","height","subItem","$secondary","isNew","S.Badge","S.SectionItemLink","href","target","as","StyleableSvgImage"],"mappings":";;;;;;;;;;;;;AAYA,MAAMA,SAAY,GAAA,OAAA;AAQX,MAAMC,mBAAmBA,CAAC;EAC/BC,IAAA;EACAC,eAAA;EACAC;AACF,CAAwB,KAAA;EAChB,MAAA;IAAEC;EAAS,CAAA,GAAIC,gBAAiB,CAAA,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gB,GAAA,CAAKkC,OAChB,mBAAAzB,GAAA,CAAC6B,eAAE,EAAF;cAEC/D,KAAM,EAAA,MAAA;cACN4D,UAAU,EAAA,IAAA;cACVI,MAAML,OAAQ,CAAAJ,GAAA;cACdW,EAAG,EAAA,GAAA;cAEH9B,6BAACe,gBAAE,EAAF;gBAAmBnD,KAAA;gBACjBoC,kBAAQP;cACX,CAAA;YAAA,CAAA,EARK8B,OAAQ,CAAA/C,EAUhB,CAAA,CAAA;UAAA,CAAA,EA/CED,IAAK,CAAAC,EAiDb,CAAA,CAAA;SACH;MAAA,CACF;IACF,CAAA;GACF,CAAA;AAEJ,CAAA;"}
|
|
1
|
+
{"version":3,"file":"MobileMenu.mjs","sources":["../../../../src/components/Header/MobileLinksModal/MobileMenu.tsx"],"sourcesContent":["import type { Motif } from \"@ubnt/ui-components/utils\";\nimport { useCallback, useMemo, useState } from \"react\";\nimport { useEffectOnce } from \"react-use\";\n\nimport * as icons from \"../../../constants/icons\";\nimport { useMicrositeMenu } from \"../../../contexts/MicrositeMenuContext\";\nimport { START_HERE_ID } from \"../../../contexts/MicrositeMenuContext/mapping\";\nimport { useMicrositeMenuTranslations } from \"../../../contexts/MicrositeMenuContext/translations\";\nimport type { ParsedMicrositeHeaderItem } from \"../../../contexts/MicrositeMenuContext/types\";\nimport type { FooterLinkId } from \"../../Footer/hooks/useFooterContent\";\nimport { useFooterContent } from \"../../Footer/hooks/useFooterContent\";\nimport { StyleableSvgImage } from \"../../StyleableSvgImage\";\nimport * as S from \"./MobileMenu.styles\";\nconst LIGHT_KEY = \"light\";\n\nexport interface MobileLinksProps {\n menu: Pick<ParsedMicrositeHeaderItem, \"label\" | \"url\" | \"items\">;\n onMenuItemClick: (e: React.MouseEvent<HTMLElement>, url: string) => void;\n onModalClose: () => void;\n}\n\nexport const MobileLinksModal = ({\n menu,\n onMenuItemClick,\n onModalClose,\n}: MobileLinksProps) => {\n const { language } = useMicrositeMenu();\n const { formatMessage } = useMicrositeMenuTranslations(language);\n const { footerContent, socialContent, miscLinks } = useFooterContent();\n\n const motif: Motif = LIGHT_KEY;\n\n useEffectOnce(() => {\n window.scrollTo(0, 1);\n });\n\n // #############################################################################\n // Section toggling\n // #############################################################################\n const [expandedSectionItemId, setExpandedSectionItemId] = useState<\n string | null\n >(null);\n\n const toggleExpandedSectionItemId = useCallback(\n (itemId: string) => {\n setExpandedSectionItemId(\n expandedSectionItemId === itemId ? null : itemId,\n );\n },\n [expandedSectionItemId],\n );\n\n const getPreparedMenu = useMemo(() => {\n return (menu?.items ?? []).flatMap((item) => {\n // @TODO Filter out SiteMap?\n\n // Flatten Start Here one level\n if (item.id === START_HERE_ID && Array.isArray(item.items)) {\n return item.items;\n }\n return item;\n });\n }, [menu]);\n\n // #############################################################################\n // Render\n // #############################################################################\n\n const handleItemClick = (\n event: React.MouseEvent<HTMLButtonElement, MouseEvent>,\n item?: ParsedMicrositeHeaderItem,\n ) => {\n if (item?.items?.length) {\n event.stopPropagation();\n toggleExpandedSectionItemId(item.id);\n } else if (item?.url) {\n onMenuItemClick(event, item.url);\n onModalClose();\n }\n };\n\n type FooterItem = {\n id: FooterLinkId;\n label: string;\n src: string;\n target?: string;\n isSectionEnd?: boolean;\n };\n\n type FooterSection = {\n header: {\n id: string;\n label: string;\n };\n items: FooterItem[];\n };\n\n type FooterSections = {\n company: FooterSection;\n training: FooterSection;\n buy: FooterSection;\n tools: FooterSection;\n social: FooterSection;\n };\n\n function normalizeFooterSections(sections: FooterSections) {\n return Object.values(sections).map((section, i) => ({\n id: section.header.id,\n label: section.header.label,\n isSectionEnd: i === Object.keys(sections).length - 1,\n items: section.items,\n }));\n }\n\n const normalizedFooterContent = normalizeFooterSections({\n ...footerContent,\n social: socialContent,\n });\n\n return (\n <S.Wrap>\n <S.Container size=\"mobile\" noVerticalMargin fullHeight>\n <S.InnerWrap>\n <S.Section>\n {getPreparedMenu.map((item) => (\n <S.SectionItemsGroup\n motif={motif}\n key={item.id}\n $active={item.id === expandedSectionItemId}\n // @NOTE to separate sections and styling until there's a better way\n $isSectionEnd={item?.isSectionEnd}\n $isSectionBegin={item?.isSectionBegin}\n >\n <S.SectionItem\n motif={motif}\n onClick={(event) => handleItemClick(event, item)}\n >\n <S.SectionItemLabel\n $active={item.id === expandedSectionItemId}\n motif={motif}\n >\n {formatMessage(item.label)}\n </S.SectionItemLabel>\n\n {item?.items && (\n <S.SectionItemArrowButton motif={motif}>\n <S.ButtonIcon>\n <S.Chevron\n src={icons.generic.collapseArrow}\n width={13}\n height={8}\n $active={item.id === expandedSectionItemId}\n />\n </S.ButtonIcon>\n </S.SectionItemArrowButton>\n )}\n </S.SectionItem>\n\n {item.id === expandedSectionItemId &&\n item?.items?.map((subItem) => (\n <S.SectionItem\n key={subItem.id}\n motif=\"dark\"\n $secondary\n onClick={(event) => handleItemClick(event, subItem)}\n >\n <S.SectionItemLabel motif={motif}>\n {formatMessage(subItem.label)}\n {subItem.isNew && (\n <S.Badge>\n {formatMessage(\"commons.menu.label.new\")}\n </S.Badge>\n )}\n </S.SectionItemLabel>\n </S.SectionItem>\n ))}\n </S.SectionItemsGroup>\n ))}\n\n {/* Header Links that don't exist in Desktop Footer */}\n {[...miscLinks].map((item, i) => (\n <S.SectionItemsGroup\n motif={motif}\n key={item.id}\n $active={item.id === expandedSectionItemId}\n $isSectionBegin={i === 0}\n >\n <S.SectionItemLink\n motif={motif}\n href={item.src}\n target={item?.target ?? \"self\"}\n as=\"a\"\n >\n <S.SectionItemLabel\n $active={item.id === expandedSectionItemId}\n motif={motif}\n >\n {item.label}\n </S.SectionItemLabel>\n </S.SectionItemLink>\n </S.SectionItemsGroup>\n ))}\n\n {/* Footer Links to be included in Mobile Nav Modal */}\n {normalizedFooterContent.map((item) => (\n <S.SectionItemsGroup\n motif={motif}\n key={item.id}\n $active={item.id === expandedSectionItemId}\n $isSectionEnd={item?.isSectionEnd}\n >\n <S.SectionItem\n motif={motif}\n onClick={() =>\n item?.items && toggleExpandedSectionItemId(item.id)\n }\n >\n <S.SectionItemLabel\n $active={item.id === expandedSectionItemId}\n motif={motif}\n >\n {item.label}\n </S.SectionItemLabel>\n\n {item?.items && (\n <S.SectionItemArrowButton\n motif={motif}\n onClick={() => toggleExpandedSectionItemId(item.id)}\n >\n <S.ButtonIcon>\n <StyleableSvgImage\n src={icons.generic.collapseArrow}\n width={13}\n height={8}\n $active={item.id === expandedSectionItemId}\n />\n </S.ButtonIcon>\n </S.SectionItemArrowButton>\n )}\n </S.SectionItem>\n\n {item.id === expandedSectionItemId &&\n item?.items?.map((subItem) => (\n <S.SectionItemLink\n key={subItem.id}\n motif=\"dark\"\n $secondary\n href={subItem.src}\n as=\"a\"\n >\n <S.SectionItemLabel motif={motif}>\n {subItem.label}\n </S.SectionItemLabel>\n </S.SectionItemLink>\n ))}\n </S.SectionItemsGroup>\n ))}\n </S.Section>\n </S.InnerWrap>\n </S.Container>\n </S.Wrap>\n );\n};\n"],"names":["LIGHT_KEY","MobileLinksModal","menu","onMenuItemClick","onModalClose","language","useMicrositeMenu","formatMessage","useMicrositeMenuTranslations","footerContent","socialContent","miscLinks","useFooterContent","motif","useEffectOnce","window","scrollTo","expandedSectionItemId","setExpandedSectionItemId","useState","toggleExpandedSectionItemId","useCallback","itemId","getPreparedMenu","useMemo","items","flatMap","item","id","START_HERE_ID","Array","isArray","handleItemClick","event","length","stopPropagation","url","normalizeFooterSections","sections","Object","values","map","section","i","header","label","isSectionEnd","keys","normalizedFooterContent","social","jsx","S.Wrap","children","S.Container","size","noVerticalMargin","fullHeight","S.InnerWrap","jsxs","S.Section","S.SectionItemsGroup","$active","$isSectionEnd","$isSectionBegin","isSectionBegin","S.SectionItem","onClick","S.SectionItemLabel","S.SectionItemArrowButton","S.ButtonIcon","S.Chevron","src","icons.generic.collapseArrow","width","height","subItem","$secondary","isNew","S.Badge","S.SectionItemLink","href","target","as","StyleableSvgImage"],"mappings":";;;;;;;;;;;;;;AAaA,MAAMA,SAAY,GAAA,OAAA;AAQX,MAAMC,mBAAmBA,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AAO,EAAA,EAAA;oBACPC,MAAQ,EAAA,CAAA;oBACRb,OAAA,EAASlC,KAAKC,EAAO,KAAAX;kBAAA,CAAA;gBAEzB,CAAA;cAAA,CAAA,CAAA;YACF,CAEJ,CAAA,EAECU,KAAKC,EAAO,KAAAX,qBAAA,IACXU,MAAMF,KAAO,EAAAgB,GAAA,CAAKkC,OAChB,mBAAAzB,GAAA,CAAC6B,eAAE,EAAF;cAEClE,KAAM,EAAA,MAAA;cACN+D,UAAU,EAAA,IAAA;cACVI,MAAML,OAAQ,CAAAJ,GAAA;cACdW,EAAG,EAAA,GAAA;cAEH9B,6BAACe,gBAAE,EAAF;gBAAmBtD,KAAA;gBACjBuC,kBAAQP;cACX,CAAA;YAAA,CAAA,EARK8B,OAAQ,CAAA/C,EAUhB,CAAA,CAAA;UAAA,CAAA,EA/CED,IAAK,CAAAC,EAiDb,CAAA,CAAA;SACH;MAAA,CACF;IACF,CAAA;GACF,CAAA;AAEJ,CAAA;"}
|
|
@@ -46,7 +46,7 @@ var ScrollWrapper = require('../../ScrollWrapper/ScrollWrapper.js');
|
|
|
46
46
|
var MenuItem = require('../MenuItem/MenuItem.js');
|
|
47
47
|
var _externalAssets_g50k1DIN = require("../../../assets/search.svg");
|
|
48
48
|
var Tooltip = require('../../Tooltip/Tooltip.js');
|
|
49
|
-
var globe = require("../../../assets/
|
|
49
|
+
var globe = require("../../../assets/globe.svg");
|
|
50
50
|
var HistoryIcon = require("../../../assets/icon-history.svg");
|
|
51
51
|
var EAIcon = require("../../../assets/icon-ea.svg");
|
|
52
52
|
var _externalAssets_DtGmfNK5 = require("../../../assets/closeLarge.svg");
|
|
@@ -44,7 +44,7 @@ import { ScrollWrapper } from '../../ScrollWrapper/ScrollWrapper.mjs';
|
|
|
44
44
|
import { MenuItem } from '../MenuItem/MenuItem.mjs';
|
|
45
45
|
import _externalAssets_g50k1DIN__default from "../../../assets/search.svg";
|
|
46
46
|
import { Tooltip } from '../../Tooltip/Tooltip.mjs';
|
|
47
|
-
import globe__default from "../../../assets/
|
|
47
|
+
import globe__default from "../../../assets/globe.svg";
|
|
48
48
|
import HistoryIcon__default from "../../../assets/icon-history.svg";
|
|
49
49
|
import EAIcon__default from "../../../assets/icon-ea.svg";
|
|
50
50
|
import _externalAssets_DtGmfNK5__default from "../../../assets/closeLarge.svg";
|
|
@@ -3,59 +3,64 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var Close = "أغلق";
|
|
7
|
-
var Compact = "مدمج";
|
|
8
|
-
var Downloads = "تنزيلات";
|
|
9
6
|
var Introduction = "مقدمة";
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var Store = "متجر";
|
|
13
|
-
var Support = "الدعم";
|
|
7
|
+
var wifi = "واي فاي";
|
|
8
|
+
var switching = "Switching";
|
|
14
9
|
var accessories = "تكنولوجيا الاكسسوارات";
|
|
15
10
|
var amplifi = "AmpliFi";
|
|
11
|
+
var wireless = "لاسلكي";
|
|
16
12
|
var fiber = "ألياف";
|
|
17
|
-
var integrations = "التكاملات";
|
|
18
|
-
var switching = "Switching";
|
|
19
|
-
var wifi = "واي فاي";
|
|
20
13
|
var wired = "متصل بالأسلاك";
|
|
21
|
-
var
|
|
14
|
+
var Support = "الدعم";
|
|
15
|
+
var Store = "متجر";
|
|
16
|
+
var Close = "أغلق";
|
|
17
|
+
var New = "جديد";
|
|
18
|
+
var Links = "روابط";
|
|
19
|
+
var Compact = "مدمج";
|
|
20
|
+
var Downloads = "تنزيلات";
|
|
21
|
+
var integrations = "التكاملات";
|
|
22
|
+
var Cancel = "إلغاء";
|
|
22
23
|
var Change = "تغيير";
|
|
23
24
|
var ar = {
|
|
24
|
-
"60ghz-wireless": "اللاسلكي بتردد 60 غيغاهرتز",
|
|
25
|
-
Close: Close,
|
|
26
|
-
Compact: Compact,
|
|
27
|
-
"Design Center": "مركز التصميم",
|
|
28
|
-
Downloads: Downloads,
|
|
29
|
-
"How it Works": "كيف يعمل",
|
|
30
25
|
Introduction: Introduction,
|
|
31
|
-
"
|
|
32
|
-
"Large Scale": "على نطاق واسع",
|
|
33
|
-
Links: Links,
|
|
34
|
-
New: New,
|
|
35
|
-
"New 6 GHz": "6 جيجاهرتز جديد",
|
|
36
|
-
"Professional Support": "الدعم المهني",
|
|
37
|
-
Store: Store,
|
|
38
|
-
Support: Support,
|
|
39
|
-
"UISP Carrier Platform": "منصة الناقل UISP",
|
|
26
|
+
"How it Works": "كيف يعمل",
|
|
40
27
|
"What's New": "ما الجديد",
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"
|
|
28
|
+
"Design Center": "مركز التصميم",
|
|
29
|
+
"UISP Carrier Platform": "منصة الناقل UISP",
|
|
30
|
+
"Professional Support": "الدعم المهني",
|
|
31
|
+
"Large Project Assistance": "مساعدة في المشاريع الكبيرة",
|
|
45
32
|
"cloud-gateways": "Cloud Gateways",
|
|
33
|
+
wifi: wifi,
|
|
34
|
+
switching: switching,
|
|
35
|
+
"camera-security": "كاميرا الأمن",
|
|
46
36
|
"door-access": "Door Access",
|
|
37
|
+
accessories: accessories,
|
|
38
|
+
"unifi-identity": "Identity",
|
|
39
|
+
amplifi: amplifi,
|
|
40
|
+
"60ghz-wireless": "اللاسلكي بتردد 60 غيغاهرتز",
|
|
41
|
+
wireless: wireless,
|
|
47
42
|
fiber: fiber,
|
|
48
|
-
|
|
49
|
-
"large-deployment-assistance": "مساعدة في الانتشار الكبير",
|
|
50
|
-
switching: switching,
|
|
43
|
+
wired: wired,
|
|
51
44
|
"uisp-accessory-tech": "تكنولوجيا الاكسسوارات",
|
|
52
45
|
"uisp-software": "نظرة عامة على UISP",
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
46
|
+
Support: Support,
|
|
47
|
+
Store: Store,
|
|
48
|
+
Close: Close,
|
|
49
|
+
New: New,
|
|
50
|
+
Links: Links,
|
|
51
|
+
"New 6 GHz": "6 جيجاهرتز جديد",
|
|
52
|
+
"large-deployment-assistance": "مساعدة في الانتشار الكبير",
|
|
53
|
+
"Large Scale": "على نطاق واسع",
|
|
54
|
+
Compact: Compact,
|
|
55
|
+
"WiFi Integrated": "مدمج الواي فاي",
|
|
56
|
+
Downloads: Downloads,
|
|
57
|
+
integrations: integrations,
|
|
58
|
+
Cancel: Cancel,
|
|
59
|
+
Change: Change,
|
|
60
|
+
"header.screenreader.read.terms": "اقرأ شروط الخدمة الخاصة بـ Ubiquiti",
|
|
61
|
+
"header.screenreader.terms": "الشروط"
|
|
58
62
|
};
|
|
63
|
+
exports.Cancel = Cancel;
|
|
59
64
|
exports.Change = Change;
|
|
60
65
|
exports.Close = Close;
|
|
61
66
|
exports.Compact = Compact;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ar.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ar.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,55 +1,59 @@
|
|
|
1
|
-
var Close = "أغلق";
|
|
2
|
-
var Compact = "مدمج";
|
|
3
|
-
var Downloads = "تنزيلات";
|
|
4
1
|
var Introduction = "مقدمة";
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var Store = "متجر";
|
|
8
|
-
var Support = "الدعم";
|
|
2
|
+
var wifi = "واي فاي";
|
|
3
|
+
var switching = "Switching";
|
|
9
4
|
var accessories = "تكنولوجيا الاكسسوارات";
|
|
10
5
|
var amplifi = "AmpliFi";
|
|
6
|
+
var wireless = "لاسلكي";
|
|
11
7
|
var fiber = "ألياف";
|
|
12
|
-
var integrations = "التكاملات";
|
|
13
|
-
var switching = "Switching";
|
|
14
|
-
var wifi = "واي فاي";
|
|
15
8
|
var wired = "متصل بالأسلاك";
|
|
16
|
-
var
|
|
9
|
+
var Support = "الدعم";
|
|
10
|
+
var Store = "متجر";
|
|
11
|
+
var Close = "أغلق";
|
|
12
|
+
var New = "جديد";
|
|
13
|
+
var Links = "روابط";
|
|
14
|
+
var Compact = "مدمج";
|
|
15
|
+
var Downloads = "تنزيلات";
|
|
16
|
+
var integrations = "التكاملات";
|
|
17
|
+
var Cancel = "إلغاء";
|
|
17
18
|
var Change = "تغيير";
|
|
18
19
|
var ar = {
|
|
19
|
-
"60ghz-wireless": "اللاسلكي بتردد 60 غيغاهرتز",
|
|
20
|
-
Close: Close,
|
|
21
|
-
Compact: Compact,
|
|
22
|
-
"Design Center": "مركز التصميم",
|
|
23
|
-
Downloads: Downloads,
|
|
24
|
-
"How it Works": "كيف يعمل",
|
|
25
20
|
Introduction: Introduction,
|
|
26
|
-
"
|
|
27
|
-
"Large Scale": "على نطاق واسع",
|
|
28
|
-
Links: Links,
|
|
29
|
-
New: New,
|
|
30
|
-
"New 6 GHz": "6 جيجاهرتز جديد",
|
|
31
|
-
"Professional Support": "الدعم المهني",
|
|
32
|
-
Store: Store,
|
|
33
|
-
Support: Support,
|
|
34
|
-
"UISP Carrier Platform": "منصة الناقل UISP",
|
|
21
|
+
"How it Works": "كيف يعمل",
|
|
35
22
|
"What's New": "ما الجديد",
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"
|
|
23
|
+
"Design Center": "مركز التصميم",
|
|
24
|
+
"UISP Carrier Platform": "منصة الناقل UISP",
|
|
25
|
+
"Professional Support": "الدعم المهني",
|
|
26
|
+
"Large Project Assistance": "مساعدة في المشاريع الكبيرة",
|
|
40
27
|
"cloud-gateways": "Cloud Gateways",
|
|
28
|
+
wifi: wifi,
|
|
29
|
+
switching: switching,
|
|
30
|
+
"camera-security": "كاميرا الأمن",
|
|
41
31
|
"door-access": "Door Access",
|
|
32
|
+
accessories: accessories,
|
|
33
|
+
"unifi-identity": "Identity",
|
|
34
|
+
amplifi: amplifi,
|
|
35
|
+
"60ghz-wireless": "اللاسلكي بتردد 60 غيغاهرتز",
|
|
36
|
+
wireless: wireless,
|
|
42
37
|
fiber: fiber,
|
|
43
|
-
|
|
44
|
-
"large-deployment-assistance": "مساعدة في الانتشار الكبير",
|
|
45
|
-
switching: switching,
|
|
38
|
+
wired: wired,
|
|
46
39
|
"uisp-accessory-tech": "تكنولوجيا الاكسسوارات",
|
|
47
40
|
"uisp-software": "نظرة عامة على UISP",
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
41
|
+
Support: Support,
|
|
42
|
+
Store: Store,
|
|
43
|
+
Close: Close,
|
|
44
|
+
New: New,
|
|
45
|
+
Links: Links,
|
|
46
|
+
"New 6 GHz": "6 جيجاهرتز جديد",
|
|
47
|
+
"large-deployment-assistance": "مساعدة في الانتشار الكبير",
|
|
48
|
+
"Large Scale": "على نطاق واسع",
|
|
49
|
+
Compact: Compact,
|
|
50
|
+
"WiFi Integrated": "مدمج الواي فاي",
|
|
51
|
+
Downloads: Downloads,
|
|
52
|
+
integrations: integrations,
|
|
53
|
+
Cancel: Cancel,
|
|
54
|
+
Change: Change,
|
|
55
|
+
"header.screenreader.read.terms": "اقرأ شروط الخدمة الخاصة بـ Ubiquiti",
|
|
56
|
+
"header.screenreader.terms": "الشروط"
|
|
53
57
|
};
|
|
54
|
-
export { Change, Close, Compact, Downloads, Introduction, Links, New, Store, Support, accessories, amplifi, ar as default, fiber, integrations, switching, wifi, wired, wireless };
|
|
58
|
+
export { Cancel, Change, Close, Compact, Downloads, Introduction, Links, New, Store, Support, accessories, amplifi, ar as default, fiber, integrations, switching, wifi, wired, wireless };
|
|
55
59
|
//# sourceMappingURL=ar.json.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ar.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ar.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -3,59 +3,64 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var Close = "Schließen";
|
|
7
|
-
var Compact = "Compact";
|
|
8
|
-
var Downloads = "Downloads";
|
|
9
6
|
var Introduction = "Einführung";
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var Store = "Geschäft";
|
|
13
|
-
var Support = "Support";
|
|
7
|
+
var wifi = "WLAN";
|
|
8
|
+
var switching = "Switching";
|
|
14
9
|
var accessories = "Zubehörtechnik";
|
|
15
10
|
var amplifi = "AmpliFi";
|
|
11
|
+
var wireless = "Drahtlos";
|
|
16
12
|
var fiber = "Faser";
|
|
17
|
-
var integrations = "Integrationen";
|
|
18
|
-
var switching = "Switching";
|
|
19
|
-
var wifi = "WLAN";
|
|
20
13
|
var wired = "Verdrahtet";
|
|
21
|
-
var
|
|
14
|
+
var Support = "Support";
|
|
15
|
+
var Store = "Geschäft";
|
|
16
|
+
var Close = "Schließen";
|
|
17
|
+
var New = "Neu";
|
|
18
|
+
var Links = "Links";
|
|
19
|
+
var Compact = "Compact";
|
|
20
|
+
var Downloads = "Downloads";
|
|
21
|
+
var integrations = "Integrationen";
|
|
22
|
+
var Cancel = "Abbrechen";
|
|
22
23
|
var Change = "Änderung";
|
|
23
24
|
var de = {
|
|
24
|
-
"60ghz-wireless": "60 GHz Drahtlos",
|
|
25
|
-
Close: Close,
|
|
26
|
-
Compact: Compact,
|
|
27
|
-
"Design Center": "Design Center",
|
|
28
|
-
Downloads: Downloads,
|
|
29
|
-
"How it Works": "Wie es funktioniert",
|
|
30
25
|
Introduction: Introduction,
|
|
31
|
-
"
|
|
32
|
-
"Large Scale": "Großmaßstab",
|
|
33
|
-
Links: Links,
|
|
34
|
-
New: New,
|
|
35
|
-
"New 6 GHz": "Neue 6 GHz",
|
|
36
|
-
"Professional Support": "Professioneller Support",
|
|
37
|
-
Store: Store,
|
|
38
|
-
Support: Support,
|
|
39
|
-
"UISP Carrier Platform": "UISP Carrier-Plattform",
|
|
26
|
+
"How it Works": "Wie es funktioniert",
|
|
40
27
|
"What's New": "Neuigkeiten",
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"
|
|
28
|
+
"Design Center": "Design Center",
|
|
29
|
+
"UISP Carrier Platform": "UISP Carrier-Plattform",
|
|
30
|
+
"Professional Support": "Professioneller Support",
|
|
31
|
+
"Large Project Assistance": "Große Projektunterstützung",
|
|
45
32
|
"cloud-gateways": "Cloud Gateways",
|
|
33
|
+
wifi: wifi,
|
|
34
|
+
switching: switching,
|
|
35
|
+
"camera-security": "Kamerasicherheit",
|
|
46
36
|
"door-access": "Türzugang",
|
|
37
|
+
accessories: accessories,
|
|
38
|
+
"unifi-identity": "Identity",
|
|
39
|
+
amplifi: amplifi,
|
|
40
|
+
"60ghz-wireless": "60 GHz Drahtlos",
|
|
41
|
+
wireless: wireless,
|
|
47
42
|
fiber: fiber,
|
|
48
|
-
|
|
49
|
-
"large-deployment-assistance": "Hilfe bei großen Einsätzen",
|
|
50
|
-
switching: switching,
|
|
43
|
+
wired: wired,
|
|
51
44
|
"uisp-accessory-tech": "Zubehörtechnik",
|
|
52
45
|
"uisp-software": "Übersicht über UISP",
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
46
|
+
Support: Support,
|
|
47
|
+
Store: Store,
|
|
48
|
+
Close: Close,
|
|
49
|
+
New: New,
|
|
50
|
+
Links: Links,
|
|
51
|
+
"New 6 GHz": "Neue 6 GHz",
|
|
52
|
+
"large-deployment-assistance": "Hilfe bei großen Einsätzen",
|
|
53
|
+
"Large Scale": "Großmaßstab",
|
|
54
|
+
Compact: Compact,
|
|
55
|
+
"WiFi Integrated": "WLAN Integriert",
|
|
56
|
+
Downloads: Downloads,
|
|
57
|
+
integrations: integrations,
|
|
58
|
+
Cancel: Cancel,
|
|
59
|
+
Change: Change,
|
|
60
|
+
"header.screenreader.read.terms": "Lesen Sie die Nutzungsbedingungen von Ubiquiti.",
|
|
61
|
+
"header.screenreader.terms": "Bedingungen"
|
|
58
62
|
};
|
|
63
|
+
exports.Cancel = Cancel;
|
|
59
64
|
exports.Change = Change;
|
|
60
65
|
exports.Close = Close;
|
|
61
66
|
exports.Compact = Compact;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"de.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"de.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|