@ubnt/store.core 9.23.0-alpha.18 → 9.23.0-alpha.3

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.
Files changed (260) hide show
  1. package/CHANGELOG.md +0 -69
  2. package/lib/assets/buildingBridgeXG.jpg +0 -0
  3. package/lib/assets/logoUnifi.svg +2 -10
  4. package/lib/assets/minus4.svg +8 -8
  5. package/lib/assets/minus5.svg +8 -8
  6. package/lib/assets/plus5.svg +9 -9
  7. package/lib/assets/plus6.svg +9 -9
  8. package/lib/components/Header/Header.types.d.ts +1 -4
  9. package/lib/components/Header/Header.types.js.map +1 -1
  10. package/lib/components/Header/Header.types.mjs.map +1 -1
  11. package/lib/components/Header/LogoIcon/LogoIcon.js +1 -1
  12. package/lib/components/Header/LogoIcon/LogoIcon.js.map +1 -1
  13. package/lib/components/Header/LogoIcon/LogoIcon.mjs +1 -1
  14. package/lib/components/Header/LogoIcon/LogoIcon.mjs.map +1 -1
  15. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.d.ts +1 -1
  16. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +4 -11
  17. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
  18. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +5 -12
  19. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
  20. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +5 -5
  21. package/lib/components/Header/ProHeader/ProHeader.d.ts +1 -5
  22. package/lib/components/Header/ProHeader/ProHeader.js +42 -42
  23. package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
  24. package/lib/components/Header/ProHeader/ProHeader.mjs +43 -41
  25. package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
  26. package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +2 -7
  27. package/lib/components/Header/ProHeader/ProHeader.styles.js +1 -16
  28. package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
  29. package/lib/components/Header/ProHeader/ProHeader.styles.mjs +2 -16
  30. package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
  31. package/lib/components/MicrositeHeader/components/Navigation/Navigation.js.map +1 -1
  32. package/lib/components/MicrositeHeader/components/Navigation/Navigation.mjs.map +1 -1
  33. package/lib/components/ModelCompareV3/ModelCompareV3.js +2 -15
  34. package/lib/components/ModelCompareV3/ModelCompareV3.js.map +1 -1
  35. package/lib/components/ModelCompareV3/ModelCompareV3.mjs +2 -15
  36. package/lib/components/ModelCompareV3/ModelCompareV3.mjs.map +1 -1
  37. package/lib/components/ModelCompareV3/ModelCompareV3.types.d.ts +1 -6
  38. package/lib/components/ModelCompareV3/assets/{DoorAccess/gateHub.jpg.js → BuildingBridge/buildingBridgeXG.jpg.js} +2 -2
  39. package/lib/components/ModelCompareV3/assets/BuildingBridge/buildingBridgeXG.jpg.js.map +1 -0
  40. package/lib/components/ModelCompareV3/assets/BuildingBridge/buildingBridgeXG.jpg.mjs +3 -0
  41. package/lib/components/ModelCompareV3/assets/BuildingBridge/buildingBridgeXG.jpg.mjs.map +1 -0
  42. package/lib/components/ModelCompareV3/data/AccessHubs.js +2 -3
  43. package/lib/components/ModelCompareV3/data/AccessHubs.js.map +1 -1
  44. package/lib/components/ModelCompareV3/data/AccessHubs.mjs +2 -3
  45. package/lib/components/ModelCompareV3/data/AccessHubs.mjs.map +1 -1
  46. package/lib/components/ModelCompareV3/data/BuildingBridge.js +5 -12
  47. package/lib/components/ModelCompareV3/data/BuildingBridge.js.map +1 -1
  48. package/lib/components/ModelCompareV3/data/BuildingBridge.mjs +5 -12
  49. package/lib/components/ModelCompareV3/data/BuildingBridge.mjs.map +1 -1
  50. package/lib/components/ModelCompareV3/data/MobileRouters.js +3 -4
  51. package/lib/components/ModelCompareV3/data/MobileRouters.js.map +1 -1
  52. package/lib/components/ModelCompareV3/data/MobileRouters.mjs +3 -4
  53. package/lib/components/ModelCompareV3/data/MobileRouters.mjs.map +1 -1
  54. package/lib/components/ModelCompareV3/data/VideoRecorders.js +1 -2
  55. package/lib/components/ModelCompareV3/data/VideoRecorders.js.map +1 -1
  56. package/lib/components/ModelCompareV3/data/VideoRecorders.mjs +1 -2
  57. package/lib/components/ModelCompareV3/data/VideoRecorders.mjs.map +1 -1
  58. package/lib/components/ModelCompareV3/data/products/buildingBridge.js +7 -17
  59. package/lib/components/ModelCompareV3/data/products/buildingBridge.js.map +1 -1
  60. package/lib/components/ModelCompareV3/data/products/buildingBridge.mjs +7 -17
  61. package/lib/components/ModelCompareV3/data/products/buildingBridge.mjs.map +1 -1
  62. package/lib/components/ModelCompareV3/data/products/buildingBridgeXG.js +6 -16
  63. package/lib/components/ModelCompareV3/data/products/buildingBridgeXG.js.map +1 -1
  64. package/lib/components/ModelCompareV3/data/products/buildingBridgeXG.mjs +6 -16
  65. package/lib/components/ModelCompareV3/data/products/buildingBridgeXG.mjs.map +1 -1
  66. package/lib/components/ModelCompareV3/data/products/elevatorHub.js +1 -0
  67. package/lib/components/ModelCompareV3/data/products/elevatorHub.js.map +1 -1
  68. package/lib/components/ModelCompareV3/data/products/elevatorHub.mjs +1 -0
  69. package/lib/components/ModelCompareV3/data/products/elevatorHub.mjs.map +1 -1
  70. package/lib/components/ModelCompareV3/data/products/envr.js +0 -12
  71. package/lib/components/ModelCompareV3/data/products/envr.js.map +1 -1
  72. package/lib/components/ModelCompareV3/data/products/envr.mjs +0 -12
  73. package/lib/components/ModelCompareV3/data/products/envr.mjs.map +1 -1
  74. package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.js +0 -3
  75. package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.js.map +1 -1
  76. package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.mjs +0 -3
  77. package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.mjs.map +1 -1
  78. package/lib/components/ModelCompareV3/data/products/gatewayLite.js +0 -7
  79. package/lib/components/ModelCompareV3/data/products/gatewayLite.js.map +1 -1
  80. package/lib/components/ModelCompareV3/data/products/gatewayLite.mjs +0 -7
  81. package/lib/components/ModelCompareV3/data/products/gatewayLite.mjs.map +1 -1
  82. package/lib/components/ModelCompareV3/data/products/gatewayMax.js +0 -7
  83. package/lib/components/ModelCompareV3/data/products/gatewayMax.js.map +1 -1
  84. package/lib/components/ModelCompareV3/data/products/gatewayMax.mjs +0 -7
  85. package/lib/components/ModelCompareV3/data/products/gatewayMax.mjs.map +1 -1
  86. package/lib/components/ModelCompareV3/data/products/gatewayProfessional.js +0 -7
  87. package/lib/components/ModelCompareV3/data/products/gatewayProfessional.js.map +1 -1
  88. package/lib/components/ModelCompareV3/data/products/gatewayProfessional.mjs +0 -7
  89. package/lib/components/ModelCompareV3/data/products/gatewayProfessional.mjs.map +1 -1
  90. package/lib/components/ModelCompareV3/data/products/umrIndustrial.js +1 -0
  91. package/lib/components/ModelCompareV3/data/products/umrIndustrial.js.map +1 -1
  92. package/lib/components/ModelCompareV3/data/products/umrIndustrial.mjs +1 -0
  93. package/lib/components/ModelCompareV3/data/products/umrIndustrial.mjs.map +1 -1
  94. package/lib/components/ModelCompareV3/translations/ar.json.js +1 -26
  95. package/lib/components/ModelCompareV3/translations/ar.json.js.map +1 -1
  96. package/lib/components/ModelCompareV3/translations/ar.json.mjs +1 -26
  97. package/lib/components/ModelCompareV3/translations/ar.json.mjs.map +1 -1
  98. package/lib/components/ModelCompareV3/translations/de.json.js +1 -27
  99. package/lib/components/ModelCompareV3/translations/de.json.js.map +1 -1
  100. package/lib/components/ModelCompareV3/translations/de.json.mjs +1 -27
  101. package/lib/components/ModelCompareV3/translations/de.json.mjs.map +1 -1
  102. package/lib/components/ModelCompareV3/translations/el.json.js +1 -27
  103. package/lib/components/ModelCompareV3/translations/el.json.js.map +1 -1
  104. package/lib/components/ModelCompareV3/translations/el.json.mjs +1 -27
  105. package/lib/components/ModelCompareV3/translations/el.json.mjs.map +1 -1
  106. package/lib/components/ModelCompareV3/translations/en.json.js +1 -34
  107. package/lib/components/ModelCompareV3/translations/en.json.js.map +1 -1
  108. package/lib/components/ModelCompareV3/translations/en.json.mjs +1 -34
  109. package/lib/components/ModelCompareV3/translations/en.json.mjs.map +1 -1
  110. package/lib/components/ModelCompareV3/translations/es.json.js +1 -27
  111. package/lib/components/ModelCompareV3/translations/es.json.js.map +1 -1
  112. package/lib/components/ModelCompareV3/translations/es.json.mjs +1 -27
  113. package/lib/components/ModelCompareV3/translations/es.json.mjs.map +1 -1
  114. package/lib/components/ModelCompareV3/translations/fr.json.js +1 -27
  115. package/lib/components/ModelCompareV3/translations/fr.json.js.map +1 -1
  116. package/lib/components/ModelCompareV3/translations/fr.json.mjs +1 -27
  117. package/lib/components/ModelCompareV3/translations/fr.json.mjs.map +1 -1
  118. package/lib/components/ModelCompareV3/translations/it.json.js +1 -27
  119. package/lib/components/ModelCompareV3/translations/it.json.js.map +1 -1
  120. package/lib/components/ModelCompareV3/translations/it.json.mjs +1 -27
  121. package/lib/components/ModelCompareV3/translations/it.json.mjs.map +1 -1
  122. package/lib/components/ModelCompareV3/translations/ja.json.js +1 -27
  123. package/lib/components/ModelCompareV3/translations/ja.json.js.map +1 -1
  124. package/lib/components/ModelCompareV3/translations/ja.json.mjs +1 -27
  125. package/lib/components/ModelCompareV3/translations/ja.json.mjs.map +1 -1
  126. package/lib/components/ModelCompareV3/translations/pt-BR.json.js +1 -27
  127. package/lib/components/ModelCompareV3/translations/pt-BR.json.js.map +1 -1
  128. package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs +1 -27
  129. package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs.map +1 -1
  130. package/lib/components/ModelCompareV3/translations/useModelCompareTranslation.d.ts +2 -2
  131. package/lib/components/ModelCompareV3/translations/zh-Hans.json.js +1 -27
  132. package/lib/components/ModelCompareV3/translations/zh-Hans.json.js.map +1 -1
  133. package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs +1 -27
  134. package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs.map +1 -1
  135. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js +1 -27
  136. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js.map +1 -1
  137. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs +1 -27
  138. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs.map +1 -1
  139. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +2 -2
  140. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
  141. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
  142. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
  143. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
  144. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
  145. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +2 -2
  146. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
  147. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
  148. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
  149. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
  150. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
  151. package/lib/components/Search/Input/Input.d.ts +1 -1
  152. package/lib/components/Search/Input/Input.js +3 -3
  153. package/lib/components/Search/Input/Input.js.map +1 -1
  154. package/lib/components/Search/Input/Input.mjs +3 -3
  155. package/lib/components/Search/Input/Input.mjs.map +1 -1
  156. package/lib/components/Search/Input/Input.styles.js +1 -0
  157. package/lib/components/Search/Input/Input.styles.js.map +1 -1
  158. package/lib/components/Search/Input/Input.styles.mjs +1 -0
  159. package/lib/components/Search/Input/Input.styles.mjs.map +1 -1
  160. package/lib/components/Search/Input/Input.types.d.ts +2 -3
  161. package/lib/constants/icons/options/colors/black.svg.js +5 -5
  162. package/lib/constants/icons/options/colors/index.js +3 -3
  163. package/lib/constants/icons/options/styles/black.svg.js +5 -5
  164. package/lib/constants/icons/options/styles/index.js +3 -3
  165. package/lib/constants/optionIcons.js +6 -6
  166. package/lib/constants/optionIcons.mjs +4 -4
  167. package/lib/contexts/MenuContext/mapping.js +0 -2
  168. package/lib/contexts/MenuContext/mapping.js.map +1 -1
  169. package/lib/contexts/MenuContext/mapping.mjs +0 -2
  170. package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
  171. package/lib/types/utils.d.ts +0 -13
  172. package/package.json +14 -14
  173. package/lib/apis/smartcat.test.d.ts +0 -1
  174. package/lib/assets/building-bridge-xg.jpg +0 -0
  175. package/lib/assets/building-bridge.jpg +0 -0
  176. package/lib/assets/gateHub.jpg +0 -0
  177. package/lib/assets/udb-pro.jpg +0 -0
  178. package/lib/assets/udb.jpg +0 -0
  179. package/lib/assets/umr-ultra.jpg +0 -0
  180. package/lib/components/Explore/Explore.test.d.ts +0 -1
  181. package/lib/components/Header/LanguageFrame/utils/buildLanguageLink.test.d.ts +0 -1
  182. package/lib/components/ModelCompareV3/assets/BuildingBridge/building-bridge-xg.jpg.js +0 -27
  183. package/lib/components/ModelCompareV3/assets/BuildingBridge/building-bridge-xg.jpg.js.map +0 -1
  184. package/lib/components/ModelCompareV3/assets/BuildingBridge/building-bridge-xg.jpg.mjs +0 -3
  185. package/lib/components/ModelCompareV3/assets/BuildingBridge/building-bridge-xg.jpg.mjs.map +0 -1
  186. package/lib/components/ModelCompareV3/assets/BuildingBridge/building-bridge.jpg.js +0 -27
  187. package/lib/components/ModelCompareV3/assets/BuildingBridge/building-bridge.jpg.js.map +0 -1
  188. package/lib/components/ModelCompareV3/assets/BuildingBridge/building-bridge.jpg.mjs +0 -3
  189. package/lib/components/ModelCompareV3/assets/BuildingBridge/building-bridge.jpg.mjs.map +0 -1
  190. package/lib/components/ModelCompareV3/assets/BuildingBridge/udb-pro.jpg.js +0 -27
  191. package/lib/components/ModelCompareV3/assets/BuildingBridge/udb-pro.jpg.js.map +0 -1
  192. package/lib/components/ModelCompareV3/assets/BuildingBridge/udb-pro.jpg.mjs +0 -3
  193. package/lib/components/ModelCompareV3/assets/BuildingBridge/udb-pro.jpg.mjs.map +0 -1
  194. package/lib/components/ModelCompareV3/assets/BuildingBridge/udb.jpg.js +0 -27
  195. package/lib/components/ModelCompareV3/assets/BuildingBridge/udb.jpg.js.map +0 -1
  196. package/lib/components/ModelCompareV3/assets/BuildingBridge/udb.jpg.mjs +0 -3
  197. package/lib/components/ModelCompareV3/assets/BuildingBridge/udb.jpg.mjs.map +0 -1
  198. package/lib/components/ModelCompareV3/assets/DoorAccess/gateHub.jpg.js.map +0 -1
  199. package/lib/components/ModelCompareV3/assets/DoorAccess/gateHub.jpg.mjs +0 -3
  200. package/lib/components/ModelCompareV3/assets/DoorAccess/gateHub.jpg.mjs.map +0 -1
  201. package/lib/components/ModelCompareV3/assets/MobileRouters/umr-ultra.jpg.js +0 -27
  202. package/lib/components/ModelCompareV3/assets/MobileRouters/umr-ultra.jpg.js.map +0 -1
  203. package/lib/components/ModelCompareV3/assets/MobileRouters/umr-ultra.jpg.mjs +0 -3
  204. package/lib/components/ModelCompareV3/assets/MobileRouters/umr-ultra.jpg.mjs.map +0 -1
  205. package/lib/components/ModelCompareV3/data/products/gateHub.d.ts +0 -2
  206. package/lib/components/ModelCompareV3/data/products/gateHub.js +0 -73
  207. package/lib/components/ModelCompareV3/data/products/gateHub.js.map +0 -1
  208. package/lib/components/ModelCompareV3/data/products/gateHub.mjs +0 -65
  209. package/lib/components/ModelCompareV3/data/products/gateHub.mjs.map +0 -1
  210. package/lib/components/ModelCompareV3/data/products/udb.d.ts +0 -2
  211. package/lib/components/ModelCompareV3/data/products/udb.js +0 -86
  212. package/lib/components/ModelCompareV3/data/products/udb.js.map +0 -1
  213. package/lib/components/ModelCompareV3/data/products/udb.mjs +0 -78
  214. package/lib/components/ModelCompareV3/data/products/udb.mjs.map +0 -1
  215. package/lib/components/ModelCompareV3/data/products/udbPro.d.ts +0 -2
  216. package/lib/components/ModelCompareV3/data/products/udbPro.js +0 -88
  217. package/lib/components/ModelCompareV3/data/products/udbPro.js.map +0 -1
  218. package/lib/components/ModelCompareV3/data/products/udbPro.mjs +0 -80
  219. package/lib/components/ModelCompareV3/data/products/udbPro.mjs.map +0 -1
  220. package/lib/components/ModelCompareV3/data/products/umrUltra.d.ts +0 -2
  221. package/lib/components/ModelCompareV3/data/products/umrUltra.js +0 -113
  222. package/lib/components/ModelCompareV3/data/products/umrUltra.js.map +0 -1
  223. package/lib/components/ModelCompareV3/data/products/umrUltra.mjs +0 -105
  224. package/lib/components/ModelCompareV3/data/products/umrUltra.mjs.map +0 -1
  225. package/lib/components/ProductCompare/mapping.test.d.ts +0 -1
  226. package/lib/components/VariantSelector/Variant/BundleOffer/utils/getBundleOfferQuantity.test.d.ts +0 -1
  227. package/lib/constants/postalCode.test.d.ts +0 -1
  228. package/lib/contexts/MenuContext/mapping.test.d.ts +0 -1
  229. package/lib/contexts/MenuContext/utils.test.d.ts +0 -1
  230. package/lib/helpers/product.test.d.ts +0 -1
  231. package/lib/types/utils.test.d.ts +0 -1
  232. package/lib/utils/address.test.d.ts +0 -1
  233. package/lib/utils/array.test.d.ts +0 -1
  234. package/lib/utils/collectionSlug.test.d.ts +0 -1
  235. package/lib/utils/countriesAndZones.test.d.ts +0 -1
  236. package/lib/utils/langauge.test.d.ts +0 -1
  237. package/lib/utils/measures.test.d.ts +0 -1
  238. package/lib/utils/money/allocators/fixedAmount.test.d.ts +0 -1
  239. package/lib/utils/money/allocators/productAmount.test.d.ts +0 -1
  240. package/lib/utils/money/constants.test.d.ts +0 -1
  241. package/lib/utils/money/exchangeRate.test.d.ts +0 -1
  242. package/lib/utils/money/format.test.d.ts +0 -1
  243. package/lib/utils/money/misc.test.d.ts +0 -1
  244. package/lib/utils/money/shipping.test.d.ts +0 -1
  245. package/lib/utils/money/tax.private.test.d.ts +0 -1
  246. package/lib/utils/money/tax.test.d.ts +0 -1
  247. package/lib/utils/nextjs/createInlineScript.test.d.ts +0 -1
  248. package/lib/utils/nextjs/mergeCspDirectives.test.d.ts +0 -1
  249. package/lib/utils/nextjs/sanitizeImageDomains.test.d.ts +0 -1
  250. package/lib/utils/nextjs/stringifyForInject.test.d.ts +0 -1
  251. package/lib/utils/number.test.d.ts +0 -1
  252. package/lib/utils/storeId.test.d.ts +0 -1
  253. package/lib/utils/string.test.d.ts +0 -1
  254. package/lib/utils/tags.test.d.ts +0 -1
  255. package/lib/utils/tax/index.test.d.ts +0 -1
  256. package/lib/utils/url.test.d.ts +0 -1
  257. package/lib/utils/validations/postalCodeSuperRefinement.test.d.ts +0 -1
  258. package/lib/utils/variant.test.d.ts +0 -1
  259. package/lib/utils/wattage.test.d.ts +0 -1
  260. package/lib/utils/zod.test.d.ts +0 -1
package/CHANGELOG.md CHANGED
@@ -6,75 +6,6 @@
6
6
 
7
7
  ## Releases
8
8
 
9
- ### 9.23.0-alpha.18
10
-
11
- - [Fix] [MIC-431](https://ubiquiti.atlassian.net/browse/MIC-431) Fix translations
12
-
13
- ### 9.23.0-alpha.17
14
-
15
- - [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) remove search input overflow
16
-
17
- ### 9.23.0-alpha.16
18
-
19
- - [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) increase header line loader z index; remove search input id; add new search props
20
-
21
- ### 9.23.0-alpha.15
22
-
23
- - [Feat] [MIC-431](https://ubiquiti.atlassian.net/browse/MIC-431) Update content
24
-
25
- ### 9.23.0-alpha.14
26
-
27
- - [Feat] [MIC-431](https://ubiquiti.atlassian.net/browse/MIC-431) Update content
28
-
29
- ### 9.23.0-alpha.13
30
-
31
- - [Feat] [MIC-431](https://ubiquiti.atlassian.net/browse/MIC-431) Update content
32
-
33
- ### 9.23.0-alpha.12
34
-
35
- - [Feat] [MIC-431](https://ubiquiti.atlassian.net/browse/MIC-431) Update translations
36
-
37
- ### 9.23.0-alpha.11
38
-
39
- - [Feat] [MIC-431](https://ubiquiti.atlassian.net/browse/MIC-431) Update `UDB` and `UDB Pro` data in Model Compare
40
-
41
- ### 9.23.0-alpha.10
42
-
43
- - [Feat] [MIC-431](https://ubiquiti.atlassian.net/browse/MIC-431) Add `UDB` and `UDB Pro` to Model Compare
44
-
45
- ### 9.23.0-alpha.9
46
-
47
- - [Feat] [MIC-429](https://ubiquiti.atlassian.net/browse/MIC-429) Add `Gate Hub` to Model Compare
48
- - [fix] Enable type-check for test files and fix issues
49
- - [chore] Update deps
50
- - [Feat] [MIC-430](https://ubiquiti.atlassian.net/browse/MIC-430) Add `UMR Ultra` to Model Compare
51
-
52
- ### 9.22.1
53
-
54
- - [Feat] [MIC-424](https://ubiquiti.atlassian.net/browse/MIC-424) Remove "Coming soon" from `ENVR` from Model compare
55
- - [Feat] Add support for dev/proto environment translations
56
-
57
- ### 9.23.0-alpha.8
58
-
59
- - [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) adjust unifi logo svg size
60
-
61
- ### 9.23.0-alpha.7
62
-
63
- - [Feat] [MIC-425](https://ubiquiti.atlassian.net/browse/MIC-424) Update "Coming Soon" message for ENVR in Model Compare
64
-
65
- ### 9.23.0-alpha.6
66
-
67
- - [Feat] [MIC-425](https://ubiquiti.atlassian.net/browse/MIC-424) Update "Coming Soon" message for UXG Enterprise in Model Compare
68
- - [Feat] [MIC-424](https://ubiquiti.atlassian.net/browse/MIC-424) Update "Coming Soon" message for ENVR in Model Compare
69
-
70
- ### 9.23.0-alpha.5
71
-
72
- - [Feat] [MIC-424](https://ubiquiti.atlassian.net/browse/MIC-424) Add "New" badge to menu and `ENVR` in compare table
73
-
74
- ### 9.23.0-alpha.4
75
-
76
- - [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) improve desktop search focus; add flag to mobile menu
77
-
78
9
  ### 9.23.0-alpha.3
79
10
 
80
11
  - [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) remove pro hover menu; add product line conditional menu
Binary file
@@ -1,12 +1,4 @@
1
- <svg width="59" height="18" viewBox="0 0 59 18" fill="none"
1
+ <svg width="46" height="14" viewBox="0 0 46 14" fill="none"
2
2
  xmlns="http://www.w3.org/2000/svg">
3
- <path d="M34.6668 2.1844C34.6668 3.36186 35.6437 4.33873 36.8513 4.33873C38.0286 4.33873 39.0055 3.39189 39.0055 2.1844C39.0055 0.976868 38.0587 0 36.8513 0C35.6437 0 34.6668 1.0069 34.6668 2.1844Z" fill="currentColor"/>
4
- <path d="M54.2476 2.1844C54.2476 3.36186 55.2244 4.33873 56.432 4.33873C57.6094 4.33873 58.5862 3.39189 58.5862 2.1844C58.5862 0.976868 57.6394 0 56.432 0C55.2244 0 54.2476 1.0069 54.2476 2.1844Z" fill="currentColor"/>
5
- <path d="M38.7133 5.85562H34.9576V17.8594H38.7133V5.85562Z" fill="currentColor"/>
6
- <path d="M52.4907 0.532516H41.8557V17.8594H45.6114V11.3138H51.3995V8.03815H45.6114V3.80814H52.4907V0.532516Z" fill="currentColor"/>
7
- <path d="M58.2957 5.85562H54.54V17.8594H58.2957V5.85562Z" fill="currentColor"/>
8
- <path d="M13.0968 8.03815V5.85191H15.2776V3.66939H17.46V5.85191H15.2794V8.03439H17.4619V8.72626C17.4619 9.52501 17.3943 10.4719 17.2368 11.2163C17.1506 11.6325 17.0175 12.045 16.8618 12.4425C16.7646 12.691 16.6582 12.9325 16.5443 13.1623L16.4958 13.259C16.4788 13.2921 16.4615 13.3249 16.4443 13.3575L16.4132 13.4156C16.4002 13.4399 16.387 13.464 16.3737 13.488C16.3553 13.5211 16.3369 13.5539 16.3182 13.5863C16.0574 14.0419 15.7557 14.4787 15.405 14.8894L15.3631 14.9384L15.3604 14.9417C15.2747 15.0419 15.1901 15.1408 15.0974 15.2382C14.9907 15.3525 14.8801 15.4613 14.7675 15.5681C13.3705 16.9125 11.5519 17.7525 9.64874 17.9457C9.42004 17.9681 8.96063 17.9925 8.72992 17.9925C8.6131 17.9925 8.43732 17.9863 8.26263 17.9772C8.0929 17.9683 7.92407 17.9567 7.81128 17.9457C5.90808 17.7525 4.08929 16.9125 2.69257 15.5681L2.65009 15.5263L2.64844 15.5246C2.55249 15.4307 2.45691 15.3373 2.36444 15.2382C2.25568 15.1238 2.15808 15.0075 2.05682 14.8894C1.70819 14.4787 1.40442 14.0419 1.14368 13.5863C1.08252 13.4789 1.02264 13.3676 0.9646 13.2531C0.914062 13.1535 0.864807 13.0514 0.817017 12.9475C0.78186 12.8713 0.74762 12.794 0.714294 12.7159C0.69873 12.6796 0.68335 12.6432 0.668152 12.6066L0.645447 12.5513L0.624939 12.5006L0.601868 12.4425C0.444397 12.045 0.31311 11.6325 0.225037 11.2163C0.0675659 10.4738 0 9.52501 0 8.72626V0.532516H4.36304V8.03815L4.3634 8.17635C4.36359 8.25618 4.36395 8.36105 4.36469 8.4646C4.36578 8.59772 4.36761 8.72864 4.37054 8.80128C4.38007 9.06001 4.3894 9.31316 4.41559 9.56438C4.48883 10.2394 4.63696 10.8769 4.9444 11.4188C5.0343 11.5763 5.12439 11.7263 5.23132 11.8706C5.88757 12.7462 6.88495 13.4025 8.1319 13.5863C8.28003 13.6069 8.57996 13.6257 8.72992 13.6257C8.88007 13.6257 9.17999 13.6088 9.32812 13.5863C10.5731 13.4025 11.5724 12.7462 12.2287 11.8706C12.2944 11.7833 12.3534 11.6933 12.4092 11.6013C12.4457 11.5412 12.4808 11.4803 12.5156 11.4188C12.8231 10.8769 12.9732 10.2394 13.0444 9.56438C13.0706 9.31316 13.08 9.06001 13.0893 8.80128C13.0928 8.71367 13.0946 8.54132 13.0957 8.38257L13.0966 8.1503L13.0968 8.03815Z" fill="currentColor"/>
9
- <path d="M15.2776 3.66939H13.6406V2.03252H15.2776V3.66939Z" fill="currentColor"/>
10
- <path d="M15.8231 0.395645H16.9144V1.48686H15.8231V0.395645Z" fill="currentColor"/>
11
- <path d="M31.8168 17.8594H28.0875V10.8018C28.0875 10.8018 28.0875 10.5544 28.0838 10.4737V10.4686C28.08 10.3598 28.0761 10.2527 28.0649 10.1456C28.0349 9.85684 27.9712 9.58122 27.8381 9.34872L27.8309 9.33618L27.8282 9.33138C27.7921 9.26999 27.7571 9.2103 27.7143 9.15372C27.4312 8.77684 27.0037 8.49564 26.4675 8.41685C26.4435 8.4126 26.4102 8.40889 26.3747 8.40591L26.3331 8.40285C26.2868 8.39983 26.2412 8.39809 26.2106 8.39809C26.1731 8.39919 26.113 8.40221 26.0568 8.40642C26.0175 8.40939 25.9799 8.41296 25.9537 8.41685C25.4174 8.49564 24.988 8.77684 24.7068 9.15372C24.6965 9.16759 24.6866 9.18146 24.6771 9.19537C24.6669 9.21039 24.657 9.22545 24.6473 9.2406C24.6248 9.27594 24.6037 9.31178 24.5832 9.34872C24.4519 9.58122 24.3862 9.85684 24.3561 10.1456C24.3431 10.2544 24.3393 10.3631 24.3356 10.4737C24.3338 10.5544 24.3338 10.8018 24.3338 10.8018V17.8462H20.6025V5.84248H24.1968V6.93375C24.1968 6.93375 25.4756 5.34 28.0294 5.45247C30.3243 5.55373 31.8168 7.31625 31.8168 9.70876V17.8594Z" fill="currentColor"/>
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M26.9757 1.69953C26.9757 2.61581 27.7357 3.3758 28.6743 3.3758V3.37487C29.5906 3.37487 30.3506 2.6372 30.3506 1.6986C30.3506 0.759998 29.6139 0 28.6743 0C27.7348 0 26.9757 0.783254 26.9757 1.69953ZM42.212 1.69953C42.212 2.61581 42.972 3.3758 43.9106 3.3758V3.37487C44.8269 3.37487 45.5868 2.6372 45.5868 1.6986C45.5868 0.759998 44.8492 0 43.9106 0C42.972 0 42.212 0.783254 42.212 1.69953ZM30.1246 4.55534H27.2018V13.8958H30.1246V4.55534ZM40.8436 0.413063H32.5683V13.8967H35.4911V8.80281H39.9943V6.25398H35.4911V2.96189H40.8436V0.413063ZM45.3608 4.55534H42.438V13.8958H45.3608V4.55534ZM10.1907 6.25398V4.55259H10.1916H11.8893V6.25119H13.5869V6.78886C13.5869 7.41118 13.5339 8.14792 13.4121 8.72746C13.3441 9.05118 13.2409 9.37304 13.12 9.68187C12.9962 9.99722 12.853 10.2995 12.6976 10.5712C12.4948 10.9247 12.2595 11.2651 11.9869 11.5842L11.9657 11.6092C11.8949 11.6928 11.8248 11.7755 11.7479 11.8558C11.6651 11.9451 11.5786 12.0288 11.4911 12.1126C10.4046 13.1591 8.98788 13.8121 7.50789 13.9628C7.33021 13.9814 6.97207 14 6.79347 14C6.61486 13.9991 6.25673 13.9805 6.07905 13.9628C4.59813 13.8121 3.18232 13.1591 2.09581 12.1126L2.09488 12.1117L2.09488 12.1117L2.09487 12.1117L2.09486 12.1117C2.00774 12.0273 1.92156 11.9439 1.83906 11.8558C1.76211 11.7755 1.69207 11.6928 1.62126 11.6093L1.62124 11.6092L1.6 11.5842C1.32744 11.2651 1.09209 10.9256 0.8893 10.5712C0.733951 10.3005 0.590696 9.99815 0.466975 9.68187C0.346046 9.37304 0.24279 9.05118 0.174883 8.72746C0.0530231 8.14792 0 7.41118 0 6.78886V0.413063H3.39441V6.25398C3.39441 6.25398 3.39441 6.70142 3.39999 6.84839L3.40102 6.8765C3.40807 7.06849 3.41494 7.25565 3.43534 7.44281C3.49115 7.96746 3.60743 8.46513 3.8465 8.8856C3.91534 9.00746 3.98604 9.1256 4.06976 9.23722C4.58045 9.91815 5.35812 10.4298 6.32742 10.5721C6.44277 10.5888 6.67626 10.6037 6.79254 10.6037C6.90975 10.6037 7.1423 10.5888 7.25765 10.5721C8.22695 10.4298 9.00463 9.91815 9.51532 9.23722C9.59904 9.12467 9.66974 9.00746 9.73858 8.8856C9.97765 8.4642 10.0939 7.96746 10.1497 7.44281C10.1701 7.25566 10.177 7.06852 10.1841 6.87653V6.87652V6.87651V6.8765V6.87649L10.1851 6.84839C10.1907 6.70142 10.1907 6.25398 10.1907 6.25398ZM11.8874 1.58144H10.6139V2.85492H11.8874V1.58144ZM12.3125 0.307027H13.1618V1.15633H12.3125V0.307027ZM13.586 4.55258H11.8883V3.80839V2.85491H13.586V4.55258ZM24.7581 13.8967H21.8548V13.8958V8.40555C21.8548 8.40555 21.8548 8.213 21.852 8.14974C21.8493 8.06323 21.8465 7.97858 21.8372 7.89393C21.813 7.66788 21.7637 7.45393 21.6604 7.27347C21.6307 7.22137 21.6009 7.17114 21.5646 7.12277C21.3451 6.82974 21.0111 6.61021 20.5944 6.54882C20.5451 6.54137 20.4446 6.53486 20.3944 6.53486C20.3441 6.53486 20.2437 6.54137 20.1944 6.54882C19.7776 6.61021 19.4437 6.82974 19.2241 7.12277C19.1879 7.17021 19.1581 7.22137 19.1283 7.27347C19.0251 7.45486 18.9758 7.66881 18.9516 7.89393C18.9432 7.97858 18.9395 8.06323 18.9367 8.14974C18.9339 8.213 18.9339 8.40555 18.9339 8.40555V13.8865H16.0307V4.54603H18.8279V5.39533C18.8279 5.39533 19.8241 4.15533 21.8111 4.24278C23.5972 4.32185 24.7581 5.69207 24.7581 7.55439V13.8967Z" fill="currentColor"/>
12
4
  </svg>
@@ -1,15 +1,15 @@
1
- <svg width="6" height="6" viewBox="0 0 6 6" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <mask id="mask0_426_15898" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="6" height="6">
3
- <g clip-path="url(#clip0_426_15898)">
4
- <path d="M5.16287 2.9397H0.697754V3.38621H5.16287V2.9397Z" fill="#838691"/>
1
+ <svg width="11" height="10" viewBox="0 0 11 10" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <mask id="mask0_658_406" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="11" height="10">
3
+ <g clip-path="url(#clip0_658_406)">
4
+ <path d="M10.2546 4.35H0.587891V5.31667H10.2546V4.35Z" fill="#838691"/>
5
5
  </g>
6
6
  </mask>
7
- <g mask="url(#mask0_426_15898)">
8
- <rect x="0.697754" y="0.930176" width="4.46512" height="4.46512" fill="#838691"/>
7
+ <g mask="url(#mask0_658_406)">
8
+ <rect x="0.587891" width="9.66667" height="9.66667" fill="#838691"/>
9
9
  </g>
10
10
  <defs>
11
- <clipPath id="clip0_426_15898">
12
- <rect width="4.46512" height="4.46512" fill="white" transform="translate(0.697754 0.930176)"/>
11
+ <clipPath id="clip0_658_406">
12
+ <rect width="9.66667" height="9.66667" fill="white" transform="translate(0.587891)"/>
13
13
  </clipPath>
14
14
  </defs>
15
15
  </svg>
@@ -1,15 +1,15 @@
1
- <svg width="11" height="10" viewBox="0 0 11 10" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <mask id="mask0_658_406" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="11" height="10">
3
- <g clip-path="url(#clip0_658_406)">
4
- <path d="M10.2546 4.35H0.587891V5.31667H10.2546V4.35Z" fill="#838691"/>
1
+ <svg width="6" height="6" viewBox="0 0 6 6" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <mask id="mask0_426_15898" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="6" height="6">
3
+ <g clip-path="url(#clip0_426_15898)">
4
+ <path d="M5.16287 2.9397H0.697754V3.38621H5.16287V2.9397Z" fill="#838691"/>
5
5
  </g>
6
6
  </mask>
7
- <g mask="url(#mask0_658_406)">
8
- <rect x="0.587891" width="9.66667" height="9.66667" fill="#838691"/>
7
+ <g mask="url(#mask0_426_15898)">
8
+ <rect x="0.697754" y="0.930176" width="4.46512" height="4.46512" fill="#838691"/>
9
9
  </g>
10
10
  <defs>
11
- <clipPath id="clip0_658_406">
12
- <rect width="9.66667" height="9.66667" fill="white" transform="translate(0.587891)"/>
11
+ <clipPath id="clip0_426_15898">
12
+ <rect width="4.46512" height="4.46512" fill="white" transform="translate(0.697754 0.930176)"/>
13
13
  </clipPath>
14
14
  </defs>
15
15
  </svg>
@@ -1,16 +1,16 @@
1
- <svg width="6" height="6" viewBox="0 0 6 6" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <mask id="mask0_426_15903" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="6" height="6">
3
- <g clip-path="url(#clip0_426_15903)">
4
- <path d="M5.30227 2.9397H0.837158V3.38621H5.30227V2.9397Z" fill="#838691"/>
5
- <path d="M2.84668 0.930147L2.84668 5.39526H3.29319L3.29319 0.930147H2.84668Z" fill="#838691"/>
1
+ <svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <mask id="mask0_658_411" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="10" height="10">
3
+ <g clip-path="url(#clip0_658_411)">
4
+ <path d="M9.86637 4.35H0.199707V5.31667H9.86637V4.35Z" fill="#838691"/>
5
+ <path d="M4.5498 -2.86102e-06L4.5498 9.66666H5.51647L5.51647 -2.86102e-06H4.5498Z" fill="#838691"/>
6
6
  </g>
7
7
  </mask>
8
- <g mask="url(#mask0_426_15903)">
9
- <rect x="0.837158" y="0.930176" width="4.46512" height="4.46512" fill="#838691"/>
8
+ <g mask="url(#mask0_658_411)">
9
+ <rect x="0.199707" width="9.66667" height="9.66667" fill="#838691"/>
10
10
  </g>
11
11
  <defs>
12
- <clipPath id="clip0_426_15903">
13
- <rect width="4.46512" height="4.46512" fill="white" transform="translate(0.837158 0.930176)"/>
12
+ <clipPath id="clip0_658_411">
13
+ <rect width="9.66667" height="9.66667" fill="white" transform="translate(0.199707)"/>
14
14
  </clipPath>
15
15
  </defs>
16
16
  </svg>
@@ -1,16 +1,16 @@
1
- <svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <mask id="mask0_658_411" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="10" height="10">
3
- <g clip-path="url(#clip0_658_411)">
4
- <path d="M9.86637 4.35H0.199707V5.31667H9.86637V4.35Z" fill="#838691"/>
5
- <path d="M4.5498 -2.86102e-06L4.5498 9.66666H5.51647L5.51647 -2.86102e-06H4.5498Z" fill="#838691"/>
1
+ <svg width="6" height="6" viewBox="0 0 6 6" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <mask id="mask0_426_15903" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="6" height="6">
3
+ <g clip-path="url(#clip0_426_15903)">
4
+ <path d="M5.30227 2.9397H0.837158V3.38621H5.30227V2.9397Z" fill="#838691"/>
5
+ <path d="M2.84668 0.930147L2.84668 5.39526H3.29319L3.29319 0.930147H2.84668Z" fill="#838691"/>
6
6
  </g>
7
7
  </mask>
8
- <g mask="url(#mask0_658_411)">
9
- <rect x="0.199707" width="9.66667" height="9.66667" fill="#838691"/>
8
+ <g mask="url(#mask0_426_15903)">
9
+ <rect x="0.837158" y="0.930176" width="4.46512" height="4.46512" fill="#838691"/>
10
10
  </g>
11
11
  <defs>
12
- <clipPath id="clip0_658_411">
13
- <rect width="9.66667" height="9.66667" fill="white" transform="translate(0.199707)"/>
12
+ <clipPath id="clip0_426_15903">
13
+ <rect width="4.46512" height="4.46512" fill="white" transform="translate(0.837158 0.930176)"/>
14
14
  </clipPath>
15
15
  </defs>
16
16
  </svg>
@@ -239,9 +239,8 @@ export type ProHeaderProps = Pick<HeaderProps, "className" | "motif" | "cart" |
239
239
  * Header customizations for embed context like WebView
240
240
  */
241
241
  embedConfig?: HeaderEmbedConfig;
242
- handleStorePickerClick?: () => void;
243
- /** @deprecated Not used in favour of `logo.currentStore.name` */
244
242
  currentCountryName?: string;
243
+ handleStorePickerClick?: () => void;
245
244
  earlyAccess?: ProHeaderEarlyAccess;
246
245
  handlePurchaseHistoryClick?: () => void;
247
246
  handleOrderHistoryClick?: () => void;
@@ -252,8 +251,6 @@ export type ProHeaderProps = Pick<HeaderProps, "className" | "motif" | "cart" |
252
251
  onLanguageChange?: (e: React.MouseEvent<HTMLElement>, link: string, language: Language) => void;
253
252
  searchValue?: string;
254
253
  onSearch?: (searchTerm: string) => void;
255
- searchInputWidth?: number;
256
- searchInputChildren?: ReactNode;
257
254
  onSearchFocus?: () => void;
258
255
  onSearchBlur?: () => void;
259
256
  onSearchClick?: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"Header.types.js","sources":["../../../src/components/Header/Header.types.tsx"],"sourcesContent":["import type { Motif } from \"@ubnt/ui-components/utils\";\nimport type { ReactNode } from \"react\";\n\nimport type { Language } from \"../../contexts/MenuContext/mapping\";\nimport type {\n ModalId,\n ParsedNavigationItem,\n ParsedNavigationSubItem,\n ParsedNavigationSubSubItem,\n} from \"../../contexts/MenuContext/types\";\nimport type { Nullish, ProductLine } from \"../../types\";\nimport type {\n CustomImageAsset,\n RenderImageFn,\n} from \"../CustomImage/CustomImage.types\";\nimport type { NavigationMicrositeMenuProps } from \"./Navigation/MicrositeMenu/MicrositeMenu.types\";\nimport type { ProMobileMenuSectionItem } from \"./Navigation/ProMobileMenu/ProMobileMenu.types\";\n\nexport const defaultHeaderTranslations = {\n new: \"New\",\n support: \"Support\",\n purchasedProductHistory: \"Purchased Product History\",\n orderHistory: \"Order History\",\n earlyAccess: \"Early Access\",\n store: \"Store\",\n links: \"Links\",\n company: \"Company\",\n social: \"Social\",\n tools: \"Tools\",\n training: \"Training\",\n continueShopping: \"Continue Shopping\",\n search: {\n placeholder: \"Search...\",\n noMatchesFound: \"Sorry, we couldn't find any matches.\",\n seeAllResults: \"See all results\",\n searchUniFiProducts: \"Search UniFi products\",\n searchUISPProducts: \"Search UISP products\",\n searchAmpliFiProducts: \"Search AmpliFi products\",\n },\n account: {\n login: \"Log In\",\n signUp: \"Sign Up\",\n signOut: \"Sign Out\",\n uiAccount: \"UI Account\",\n unifiSiteManager: \"UniFi Site Manager\",\n manageAccount: \"Manage Account\",\n orderHistory: \"Orders & Addresses\",\n },\n cart: {\n VATincluded: \"VAT Incl.\",\n includesVat: \"Includes VAT of\",\n discount: \"Discount\",\n empty: \"Your cart is empty\",\n review: \"Checkout\",\n shipping: \"Shipping\",\n subtotal: \"Subtotal\",\n total: \"Total price:\",\n itemsTitle: \"Your Cart\",\n upsellTitle: \"Usually bought together\",\n },\n language: {},\n region: \"Region\",\n};\n\nexport interface HeaderAccountCustomer {\n id: string;\n email: string;\n displayName: string;\n picture?: string | null;\n}\n\nexport interface HeaderAccount {\n loading?: boolean;\n customer?: Nullish<HeaderAccountCustomer>;\n handleLogin?: () => void;\n handleLogout?: () => void;\n handleRegister?: () => void;\n handleManageAccount?: () => void;\n handleOrderHistory?: () => void;\n renderStorePicker?: (onClose: () => void) => JSX.Element;\n}\n\nexport interface HeaderSearch {\n /** Trigger search */\n onSearch: (formattedQuerySearchTerm: string) => void;\n loading?: boolean;\n totalItemsCount: number;\n items: Array<{\n id: string;\n url: string;\n image?: CustomImageAsset | null;\n title: string;\n family?: string | null;\n }>;\n}\n\nexport interface HeaderCartItemControls {\n loading?: boolean;\n quantityMax?: number;\n onQuantityChange: (newQuantity: number) => void;\n}\n\nexport interface HeaderCartItem {\n id: string;\n url: string;\n image: Nullish<CustomImageAsset>;\n quantity: number;\n title: string;\n controls: HeaderCartItemControls;\n price: string;\n priceIncludingVAT?: string;\n}\n\nexport interface HeaderCart {\n onReview: () => void;\n loading?: boolean;\n items: HeaderCartItem[];\n upsellItems?: HeaderCartItem[];\n totals: Nullish<{\n shipping: Nullish<string>;\n discount: Nullish<string>;\n finalTax: Nullish<string>;\n total: string;\n totalIncludingVAT?: string;\n }>;\n}\n\nexport interface HeaderLogo {\n url?: string;\n hide?: boolean;\n productLine?: ProductLine;\n onClick?: (e: React.MouseEvent<HTMLElement>, href: string) => void;\n currentStore?: {\n flag: ReactNode;\n name: string;\n };\n}\n\nexport type HeaderTranslations = typeof defaultHeaderTranslations;\n\nexport type HeaderEmbedConfig = {\n /**\n * Allows to configure custom callback on home link click\n */\n homeLinkClickHandler?: () => void;\n\n /**\n * Allows to render custom extra section items in Pro Mobile Menu\n */\n mobileMenuExtraSectionItems?: Array<ProMobileMenuSectionItem>;\n\n /**\n * Moves Avatar icon to the left side of the header\n */\n moveAvatarIconToLeft?: boolean;\n\n /**\n * Allows to display avatar as image instead of icon\n */\n displayAvatarAsImage?: boolean;\n\n /**\n * Allows to configure custom callback on avatar click\n */\n avatarClickHandler?: () => void;\n\n /**\n * Allows to hide logo / site title\n */\n hideLogo?: boolean;\n\n /**\n * Allows to hide Avatar icon from the header\n */\n hideAvatarIcon?: boolean;\n\n /**\n * Hide language picker\n */\n hideLanguagePicker?: boolean;\n\n fullWidthHeader?: boolean;\n\n /**\n * Renders site title instead of UI logo\n */\n siteTitle?: string;\n\n /**\n * Blurs search input and dismissed virtual keyboard on touchmove\n */\n /** @deprecated Use blurSearchOnTouchmove */\n hideSearchOnTouchmove?: boolean;\n blurSearchOnTouchmove?: boolean;\n};\n\nexport interface HeaderProps {\n className?: string;\n motif: Motif;\n /**\n * Main header bar becomes fixed position at the top\n */\n sticky?: boolean;\n /**\n * Navigation carousel becomes fixed position at the top\n */\n stickyCarousel?: boolean;\n translations?: HeaderTranslations;\n renderImage: RenderImageFn;\n showLineLoader?: boolean;\n onModalOpen?: () => void;\n onMenuItemLinkClick?: (\n e: React.MouseEvent<HTMLElement>,\n item: ParsedNavigationItem,\n ) => void;\n onMenuSubItemLinkClick?: (\n e: React.MouseEvent<HTMLElement>,\n item: ParsedNavigationSubItem | ParsedNavigationSubSubItem,\n ) => void;\n\n onLanguageChange?: (\n e: React.MouseEvent<HTMLElement>,\n link: string,\n language: Language,\n ) => void;\n\n // Account\n account?: HeaderAccount;\n\n // Search\n onSearchResultsAction?: (searchTerm: string) => void;\n search?: HeaderSearch;\n\n // Cart\n onCartClick?: () => void;\n cart?: HeaderCart;\n\n // Set specific modal to be open initially\n initialActiveModal?: Nullish<ModalId>;\n /**\n * Triggers on active modal change\n */\n onActiveModal?: (id: ModalId | null, prevModalId: ModalId | null) => void;\n\n /**\n * Will be called before navigating to store search, the tracking request in this callback will only\n * finish if called from store side as microsites are not using next router.\n */\n trackStoreSearchClick?: () => void;\n\n transparentHeader?: boolean;\n\n /**\n * Sub-menu used for microsites\n */\n micrositeMenu?: NavigationMicrositeMenuProps;\n\n /**\n * Header customizations for embed context like WebView\n */\n embedConfig?: HeaderEmbedConfig;\n\n accountMenu?: React.ReactNode;\n}\n\nexport type IsolatedHeaderProps = {\n className?: string;\n motif: Motif;\n translations?: HeaderTranslations;\n handleContinueShopping: () => void;\n showLineLoader?: boolean;\n account?: {\n loading?: HeaderAccount[\"loading\"];\n customer?: {\n picture?: HeaderAccountCustomer[\"picture\"];\n };\n };\n\n // Logo overrides\n logo?: HeaderLogo;\n} & Pick<HeaderProps, \"embedConfig\">;\n\nexport interface ProHeaderEarlyAccess {\n loading?: boolean;\n onClick: () => void;\n}\n\nexport interface HeaderProductLineOption {\n value: ProductLine;\n label: string;\n}\n\nexport interface ProHeaderCategories {\n items: ProMobileMenuSectionItem[];\n activeIndex: number;\n}\n\nexport type ProHeaderProps = Pick<\n HeaderProps,\n | \"className\"\n | \"motif\"\n | \"cart\"\n | \"account\"\n | \"translations\"\n | \"onModalOpen\"\n | \"onCartClick\"\n | \"showLineLoader\"\n | \"accountMenu\"\n> & {\n /**\n * Header customizations for embed context like WebView\n */\n embedConfig?: HeaderEmbedConfig;\n\n // Country picker\n handleStorePickerClick?: () => void;\n /** @deprecated Not used in favour of `logo.currentStore.name` */\n currentCountryName?: string;\n\n // Early access button\n earlyAccess?: ProHeaderEarlyAccess;\n\n // Purchase History button\n handlePurchaseHistoryClick?: () => void;\n\n // Order button\n handleOrderHistoryClick?: () => void;\n\n // Product line picker\n productLineOptions?: HeaderProductLineOption[];\n productLineValue?: ProductLine;\n handleProductLineChange?: (type: ProductLine) => void;\n\n // Mobile menu aka \"hamburger\" button click\n handleMobileMenuClick?: () => void;\n\n onLanguageChange?: (\n e: React.MouseEvent<HTMLElement>,\n link: string,\n language: Language,\n ) => void;\n\n // Search\n searchValue?: string;\n onSearch?: (searchTerm: string) => void;\n searchInputWidth?: number;\n searchInputChildren?: ReactNode;\n\n onSearchFocus?: () => void;\n onSearchBlur?: () => void;\n onSearchClick?: () => void;\n\n // Categories used for menu\n categories: ProHeaderCategories;\n hideInlineCategories?: boolean;\n\n // Logo overrides\n logo?: HeaderLogo;\n};\n"],"names":["defaultHeaderTranslations","new","support","purchasedProductHistory","orderHistory","earlyAccess","store","links","company","social","tools","training","continueShopping","search","placeholder","noMatchesFound","seeAllResults","searchUniFiProducts","searchUISPProducts","searchAmpliFiProducts","account","login","signUp","signOut","uiAccount","unifiSiteManager","manageAccount","cart","VATincluded","includesVat","discount","empty","review","shipping","subtotal","total","itemsTitle","upsellTitle","language","region"],"mappings":";;;AAkBO,MAAMA,yBAA4B,GAAA;EACvCC,GAAK,EAAA,KAAA;EACLC,OAAS,EAAA,SAAA;EACTC,uBAAyB,EAAA,2BAAA;EACzBC,YAAc,EAAA,eAAA;EACdC,WAAa,EAAA,cAAA;EACbC,KAAO,EAAA,OAAA;EACPC,KAAO,EAAA,OAAA;EACPC,OAAS,EAAA,SAAA;EACTC,MAAQ,EAAA,QAAA;EACRC,KAAO,EAAA,OAAA;EACPC,QAAU,EAAA,UAAA;EACVC,gBAAkB,EAAA,mBAAA;EAClBC,MAAQ,EAAA;IACNC,WAAa,EAAA,WAAA;IACbC,cAAgB,EAAA,sCAAA;IAChBC,aAAe,EAAA,iBAAA;IACfC,mBAAqB,EAAA,uBAAA;IACrBC,kBAAoB,EAAA,sBAAA;IACpBC,qBAAuB,EAAA;EACzB,CAAA;EACAC,OAAS,EAAA;IACPC,KAAO,EAAA,QAAA;IACPC,MAAQ,EAAA,SAAA;IACRC,OAAS,EAAA,UAAA;IACTC,SAAW,EAAA,YAAA;IACXC,gBAAkB,EAAA,oBAAA;IAClBC,aAAe,EAAA,gBAAA;IACftB,YAAc,EAAA;EAChB,CAAA;EACAuB,IAAM,EAAA;IACJC,WAAa,EAAA,WAAA;IACbC,WAAa,EAAA,iBAAA;IACbC,QAAU,EAAA,UAAA;IACVC,KAAO,EAAA,oBAAA;IACPC,MAAQ,EAAA,UAAA;IACRC,QAAU,EAAA,UAAA;IACVC,QAAU,EAAA,UAAA;IACVC,KAAO,EAAA,cAAA;IACPC,UAAY,EAAA,WAAA;IACZC,WAAa,EAAA;EACf,CAAA;EACAC,UAAU,CAAC,CAAA;EACXC,MAAQ,EAAA;AACV,CAAA;"}
1
+ {"version":3,"file":"Header.types.js","sources":["../../../src/components/Header/Header.types.tsx"],"sourcesContent":["import type { Motif } from \"@ubnt/ui-components/utils\";\nimport type { ReactNode } from \"react\";\n\nimport type { Language } from \"../../contexts/MenuContext/mapping\";\nimport type {\n ModalId,\n ParsedNavigationItem,\n ParsedNavigationSubItem,\n ParsedNavigationSubSubItem,\n} from \"../../contexts/MenuContext/types\";\nimport type { Nullish, ProductLine } from \"../../types\";\nimport type {\n CustomImageAsset,\n RenderImageFn,\n} from \"../CustomImage/CustomImage.types\";\nimport type { NavigationMicrositeMenuProps } from \"./Navigation/MicrositeMenu/MicrositeMenu.types\";\nimport type { ProMobileMenuSectionItem } from \"./Navigation/ProMobileMenu/ProMobileMenu.types\";\n\nexport const defaultHeaderTranslations = {\n new: \"New\",\n support: \"Support\",\n purchasedProductHistory: \"Purchased Product History\",\n orderHistory: \"Order History\",\n earlyAccess: \"Early Access\",\n store: \"Store\",\n links: \"Links\",\n company: \"Company\",\n social: \"Social\",\n tools: \"Tools\",\n training: \"Training\",\n continueShopping: \"Continue Shopping\",\n search: {\n placeholder: \"Search...\",\n noMatchesFound: \"Sorry, we couldn't find any matches.\",\n seeAllResults: \"See all results\",\n searchUniFiProducts: \"Search UniFi products\",\n searchUISPProducts: \"Search UISP products\",\n searchAmpliFiProducts: \"Search AmpliFi products\",\n },\n account: {\n login: \"Log In\",\n signUp: \"Sign Up\",\n signOut: \"Sign Out\",\n uiAccount: \"UI Account\",\n unifiSiteManager: \"UniFi Site Manager\",\n manageAccount: \"Manage Account\",\n orderHistory: \"Orders & Addresses\",\n },\n cart: {\n VATincluded: \"VAT Incl.\",\n includesVat: \"Includes VAT of\",\n discount: \"Discount\",\n empty: \"Your cart is empty\",\n review: \"Checkout\",\n shipping: \"Shipping\",\n subtotal: \"Subtotal\",\n total: \"Total price:\",\n itemsTitle: \"Your Cart\",\n upsellTitle: \"Usually bought together\",\n },\n language: {},\n region: \"Region\",\n};\n\nexport interface HeaderAccountCustomer {\n id: string;\n email: string;\n displayName: string;\n picture?: string | null;\n}\n\nexport interface HeaderAccount {\n loading?: boolean;\n customer?: Nullish<HeaderAccountCustomer>;\n handleLogin?: () => void;\n handleLogout?: () => void;\n handleRegister?: () => void;\n handleManageAccount?: () => void;\n handleOrderHistory?: () => void;\n renderStorePicker?: (onClose: () => void) => JSX.Element;\n}\n\nexport interface HeaderSearch {\n /** Trigger search */\n onSearch: (formattedQuerySearchTerm: string) => void;\n loading?: boolean;\n totalItemsCount: number;\n items: Array<{\n id: string;\n url: string;\n image?: CustomImageAsset | null;\n title: string;\n family?: string | null;\n }>;\n}\n\nexport interface HeaderCartItemControls {\n loading?: boolean;\n quantityMax?: number;\n onQuantityChange: (newQuantity: number) => void;\n}\n\nexport interface HeaderCartItem {\n id: string;\n url: string;\n image: Nullish<CustomImageAsset>;\n quantity: number;\n title: string;\n controls: HeaderCartItemControls;\n price: string;\n priceIncludingVAT?: string;\n}\n\nexport interface HeaderCart {\n onReview: () => void;\n loading?: boolean;\n items: HeaderCartItem[];\n upsellItems?: HeaderCartItem[];\n totals: Nullish<{\n shipping: Nullish<string>;\n discount: Nullish<string>;\n finalTax: Nullish<string>;\n total: string;\n totalIncludingVAT?: string;\n }>;\n}\n\nexport interface HeaderLogo {\n url?: string;\n hide?: boolean;\n productLine?: ProductLine;\n onClick?: (e: React.MouseEvent<HTMLElement>, href: string) => void;\n currentStore?: {\n flag: ReactNode;\n name: string;\n };\n}\n\nexport type HeaderTranslations = typeof defaultHeaderTranslations;\n\nexport type HeaderEmbedConfig = {\n /**\n * Allows to configure custom callback on home link click\n */\n homeLinkClickHandler?: () => void;\n\n /**\n * Allows to render custom extra section items in Pro Mobile Menu\n */\n mobileMenuExtraSectionItems?: Array<ProMobileMenuSectionItem>;\n\n /**\n * Moves Avatar icon to the left side of the header\n */\n moveAvatarIconToLeft?: boolean;\n\n /**\n * Allows to display avatar as image instead of icon\n */\n displayAvatarAsImage?: boolean;\n\n /**\n * Allows to configure custom callback on avatar click\n */\n avatarClickHandler?: () => void;\n\n /**\n * Allows to hide logo / site title\n */\n hideLogo?: boolean;\n\n /**\n * Allows to hide Avatar icon from the header\n */\n hideAvatarIcon?: boolean;\n\n /**\n * Hide language picker\n */\n hideLanguagePicker?: boolean;\n\n fullWidthHeader?: boolean;\n\n /**\n * Renders site title instead of UI logo\n */\n siteTitle?: string;\n\n /**\n * Blurs search input and dismissed virtual keyboard on touchmove\n */\n /** @deprecated Use blurSearchOnTouchmove */\n hideSearchOnTouchmove?: boolean;\n blurSearchOnTouchmove?: boolean;\n};\n\nexport interface HeaderProps {\n className?: string;\n motif: Motif;\n /**\n * Main header bar becomes fixed position at the top\n */\n sticky?: boolean;\n /**\n * Navigation carousel becomes fixed position at the top\n */\n stickyCarousel?: boolean;\n translations?: HeaderTranslations;\n renderImage: RenderImageFn;\n showLineLoader?: boolean;\n onModalOpen?: () => void;\n onMenuItemLinkClick?: (\n e: React.MouseEvent<HTMLElement>,\n item: ParsedNavigationItem,\n ) => void;\n onMenuSubItemLinkClick?: (\n e: React.MouseEvent<HTMLElement>,\n item: ParsedNavigationSubItem | ParsedNavigationSubSubItem,\n ) => void;\n\n onLanguageChange?: (\n e: React.MouseEvent<HTMLElement>,\n link: string,\n language: Language,\n ) => void;\n\n // Account\n account?: HeaderAccount;\n\n // Search\n onSearchResultsAction?: (searchTerm: string) => void;\n search?: HeaderSearch;\n\n // Cart\n onCartClick?: () => void;\n cart?: HeaderCart;\n\n // Set specific modal to be open initially\n initialActiveModal?: Nullish<ModalId>;\n /**\n * Triggers on active modal change\n */\n onActiveModal?: (id: ModalId | null, prevModalId: ModalId | null) => void;\n\n /**\n * Will be called before navigating to store search, the tracking request in this callback will only\n * finish if called from store side as microsites are not using next router.\n */\n trackStoreSearchClick?: () => void;\n\n transparentHeader?: boolean;\n\n /**\n * Sub-menu used for microsites\n */\n micrositeMenu?: NavigationMicrositeMenuProps;\n\n /**\n * Header customizations for embed context like WebView\n */\n embedConfig?: HeaderEmbedConfig;\n\n accountMenu?: React.ReactNode;\n}\n\nexport type IsolatedHeaderProps = {\n className?: string;\n motif: Motif;\n translations?: HeaderTranslations;\n handleContinueShopping: () => void;\n showLineLoader?: boolean;\n account?: {\n loading?: HeaderAccount[\"loading\"];\n customer?: {\n picture?: HeaderAccountCustomer[\"picture\"];\n };\n };\n\n // Logo overrides\n logo?: HeaderLogo;\n} & Pick<HeaderProps, \"embedConfig\">;\n\nexport interface ProHeaderEarlyAccess {\n loading?: boolean;\n onClick: () => void;\n}\n\nexport interface HeaderProductLineOption {\n value: ProductLine;\n label: string;\n}\n\nexport interface ProHeaderCategories {\n items: ProMobileMenuSectionItem[];\n activeIndex: number;\n}\n\nexport type ProHeaderProps = Pick<\n HeaderProps,\n | \"className\"\n | \"motif\"\n | \"cart\"\n | \"account\"\n | \"translations\"\n | \"onModalOpen\"\n | \"onCartClick\"\n | \"showLineLoader\"\n | \"accountMenu\"\n> & {\n /**\n * Header customizations for embed context like WebView\n */\n embedConfig?: HeaderEmbedConfig;\n\n // Country picker\n currentCountryName?: string;\n handleStorePickerClick?: () => void;\n\n // Early access button\n earlyAccess?: ProHeaderEarlyAccess;\n\n // Purchase History button\n handlePurchaseHistoryClick?: () => void;\n\n // Order button\n handleOrderHistoryClick?: () => void;\n\n // Product line picker\n productLineOptions?: HeaderProductLineOption[];\n productLineValue?: ProductLine;\n handleProductLineChange?: (type: ProductLine) => void;\n\n // Mobile menu aka \"hamburger\" button click\n handleMobileMenuClick?: () => void;\n\n onLanguageChange?: (\n e: React.MouseEvent<HTMLElement>,\n link: string,\n language: Language,\n ) => void;\n\n // Search\n searchValue?: string;\n onSearch?: (searchTerm: string) => void;\n\n onSearchFocus?: () => void;\n onSearchBlur?: () => void;\n onSearchClick?: () => void;\n\n // Categories used for menu\n categories: ProHeaderCategories;\n hideInlineCategories?: boolean;\n\n // Logo overrides\n logo?: HeaderLogo;\n};\n"],"names":["defaultHeaderTranslations","new","support","purchasedProductHistory","orderHistory","earlyAccess","store","links","company","social","tools","training","continueShopping","search","placeholder","noMatchesFound","seeAllResults","searchUniFiProducts","searchUISPProducts","searchAmpliFiProducts","account","login","signUp","signOut","uiAccount","unifiSiteManager","manageAccount","cart","VATincluded","includesVat","discount","empty","review","shipping","subtotal","total","itemsTitle","upsellTitle","language","region"],"mappings":";;;AAkBO,MAAMA,yBAA4B,GAAA;EACvCC,GAAK,EAAA,KAAA;EACLC,OAAS,EAAA,SAAA;EACTC,uBAAyB,EAAA,2BAAA;EACzBC,YAAc,EAAA,eAAA;EACdC,WAAa,EAAA,cAAA;EACbC,KAAO,EAAA,OAAA;EACPC,KAAO,EAAA,OAAA;EACPC,OAAS,EAAA,SAAA;EACTC,MAAQ,EAAA,QAAA;EACRC,KAAO,EAAA,OAAA;EACPC,QAAU,EAAA,UAAA;EACVC,gBAAkB,EAAA,mBAAA;EAClBC,MAAQ,EAAA;IACNC,WAAa,EAAA,WAAA;IACbC,cAAgB,EAAA,sCAAA;IAChBC,aAAe,EAAA,iBAAA;IACfC,mBAAqB,EAAA,uBAAA;IACrBC,kBAAoB,EAAA,sBAAA;IACpBC,qBAAuB,EAAA;EACzB,CAAA;EACAC,OAAS,EAAA;IACPC,KAAO,EAAA,QAAA;IACPC,MAAQ,EAAA,SAAA;IACRC,OAAS,EAAA,UAAA;IACTC,SAAW,EAAA,YAAA;IACXC,gBAAkB,EAAA,oBAAA;IAClBC,aAAe,EAAA,gBAAA;IACftB,YAAc,EAAA;EAChB,CAAA;EACAuB,IAAM,EAAA;IACJC,WAAa,EAAA,WAAA;IACbC,WAAa,EAAA,iBAAA;IACbC,QAAU,EAAA,UAAA;IACVC,KAAO,EAAA,oBAAA;IACPC,MAAQ,EAAA,UAAA;IACRC,QAAU,EAAA,UAAA;IACVC,QAAU,EAAA,UAAA;IACVC,KAAO,EAAA,cAAA;IACPC,UAAY,EAAA,WAAA;IACZC,WAAa,EAAA;EACf,CAAA;EACAC,UAAU,CAAC,CAAA;EACXC,MAAQ,EAAA;AACV,CAAA;"}
@@ -1 +1 @@
1
- {"version":3,"file":"Header.types.mjs","sources":["../../../src/components/Header/Header.types.tsx"],"sourcesContent":["import type { Motif } from \"@ubnt/ui-components/utils\";\nimport type { ReactNode } from \"react\";\n\nimport type { Language } from \"../../contexts/MenuContext/mapping\";\nimport type {\n ModalId,\n ParsedNavigationItem,\n ParsedNavigationSubItem,\n ParsedNavigationSubSubItem,\n} from \"../../contexts/MenuContext/types\";\nimport type { Nullish, ProductLine } from \"../../types\";\nimport type {\n CustomImageAsset,\n RenderImageFn,\n} from \"../CustomImage/CustomImage.types\";\nimport type { NavigationMicrositeMenuProps } from \"./Navigation/MicrositeMenu/MicrositeMenu.types\";\nimport type { ProMobileMenuSectionItem } from \"./Navigation/ProMobileMenu/ProMobileMenu.types\";\n\nexport const defaultHeaderTranslations = {\n new: \"New\",\n support: \"Support\",\n purchasedProductHistory: \"Purchased Product History\",\n orderHistory: \"Order History\",\n earlyAccess: \"Early Access\",\n store: \"Store\",\n links: \"Links\",\n company: \"Company\",\n social: \"Social\",\n tools: \"Tools\",\n training: \"Training\",\n continueShopping: \"Continue Shopping\",\n search: {\n placeholder: \"Search...\",\n noMatchesFound: \"Sorry, we couldn't find any matches.\",\n seeAllResults: \"See all results\",\n searchUniFiProducts: \"Search UniFi products\",\n searchUISPProducts: \"Search UISP products\",\n searchAmpliFiProducts: \"Search AmpliFi products\",\n },\n account: {\n login: \"Log In\",\n signUp: \"Sign Up\",\n signOut: \"Sign Out\",\n uiAccount: \"UI Account\",\n unifiSiteManager: \"UniFi Site Manager\",\n manageAccount: \"Manage Account\",\n orderHistory: \"Orders & Addresses\",\n },\n cart: {\n VATincluded: \"VAT Incl.\",\n includesVat: \"Includes VAT of\",\n discount: \"Discount\",\n empty: \"Your cart is empty\",\n review: \"Checkout\",\n shipping: \"Shipping\",\n subtotal: \"Subtotal\",\n total: \"Total price:\",\n itemsTitle: \"Your Cart\",\n upsellTitle: \"Usually bought together\",\n },\n language: {},\n region: \"Region\",\n};\n\nexport interface HeaderAccountCustomer {\n id: string;\n email: string;\n displayName: string;\n picture?: string | null;\n}\n\nexport interface HeaderAccount {\n loading?: boolean;\n customer?: Nullish<HeaderAccountCustomer>;\n handleLogin?: () => void;\n handleLogout?: () => void;\n handleRegister?: () => void;\n handleManageAccount?: () => void;\n handleOrderHistory?: () => void;\n renderStorePicker?: (onClose: () => void) => JSX.Element;\n}\n\nexport interface HeaderSearch {\n /** Trigger search */\n onSearch: (formattedQuerySearchTerm: string) => void;\n loading?: boolean;\n totalItemsCount: number;\n items: Array<{\n id: string;\n url: string;\n image?: CustomImageAsset | null;\n title: string;\n family?: string | null;\n }>;\n}\n\nexport interface HeaderCartItemControls {\n loading?: boolean;\n quantityMax?: number;\n onQuantityChange: (newQuantity: number) => void;\n}\n\nexport interface HeaderCartItem {\n id: string;\n url: string;\n image: Nullish<CustomImageAsset>;\n quantity: number;\n title: string;\n controls: HeaderCartItemControls;\n price: string;\n priceIncludingVAT?: string;\n}\n\nexport interface HeaderCart {\n onReview: () => void;\n loading?: boolean;\n items: HeaderCartItem[];\n upsellItems?: HeaderCartItem[];\n totals: Nullish<{\n shipping: Nullish<string>;\n discount: Nullish<string>;\n finalTax: Nullish<string>;\n total: string;\n totalIncludingVAT?: string;\n }>;\n}\n\nexport interface HeaderLogo {\n url?: string;\n hide?: boolean;\n productLine?: ProductLine;\n onClick?: (e: React.MouseEvent<HTMLElement>, href: string) => void;\n currentStore?: {\n flag: ReactNode;\n name: string;\n };\n}\n\nexport type HeaderTranslations = typeof defaultHeaderTranslations;\n\nexport type HeaderEmbedConfig = {\n /**\n * Allows to configure custom callback on home link click\n */\n homeLinkClickHandler?: () => void;\n\n /**\n * Allows to render custom extra section items in Pro Mobile Menu\n */\n mobileMenuExtraSectionItems?: Array<ProMobileMenuSectionItem>;\n\n /**\n * Moves Avatar icon to the left side of the header\n */\n moveAvatarIconToLeft?: boolean;\n\n /**\n * Allows to display avatar as image instead of icon\n */\n displayAvatarAsImage?: boolean;\n\n /**\n * Allows to configure custom callback on avatar click\n */\n avatarClickHandler?: () => void;\n\n /**\n * Allows to hide logo / site title\n */\n hideLogo?: boolean;\n\n /**\n * Allows to hide Avatar icon from the header\n */\n hideAvatarIcon?: boolean;\n\n /**\n * Hide language picker\n */\n hideLanguagePicker?: boolean;\n\n fullWidthHeader?: boolean;\n\n /**\n * Renders site title instead of UI logo\n */\n siteTitle?: string;\n\n /**\n * Blurs search input and dismissed virtual keyboard on touchmove\n */\n /** @deprecated Use blurSearchOnTouchmove */\n hideSearchOnTouchmove?: boolean;\n blurSearchOnTouchmove?: boolean;\n};\n\nexport interface HeaderProps {\n className?: string;\n motif: Motif;\n /**\n * Main header bar becomes fixed position at the top\n */\n sticky?: boolean;\n /**\n * Navigation carousel becomes fixed position at the top\n */\n stickyCarousel?: boolean;\n translations?: HeaderTranslations;\n renderImage: RenderImageFn;\n showLineLoader?: boolean;\n onModalOpen?: () => void;\n onMenuItemLinkClick?: (\n e: React.MouseEvent<HTMLElement>,\n item: ParsedNavigationItem,\n ) => void;\n onMenuSubItemLinkClick?: (\n e: React.MouseEvent<HTMLElement>,\n item: ParsedNavigationSubItem | ParsedNavigationSubSubItem,\n ) => void;\n\n onLanguageChange?: (\n e: React.MouseEvent<HTMLElement>,\n link: string,\n language: Language,\n ) => void;\n\n // Account\n account?: HeaderAccount;\n\n // Search\n onSearchResultsAction?: (searchTerm: string) => void;\n search?: HeaderSearch;\n\n // Cart\n onCartClick?: () => void;\n cart?: HeaderCart;\n\n // Set specific modal to be open initially\n initialActiveModal?: Nullish<ModalId>;\n /**\n * Triggers on active modal change\n */\n onActiveModal?: (id: ModalId | null, prevModalId: ModalId | null) => void;\n\n /**\n * Will be called before navigating to store search, the tracking request in this callback will only\n * finish if called from store side as microsites are not using next router.\n */\n trackStoreSearchClick?: () => void;\n\n transparentHeader?: boolean;\n\n /**\n * Sub-menu used for microsites\n */\n micrositeMenu?: NavigationMicrositeMenuProps;\n\n /**\n * Header customizations for embed context like WebView\n */\n embedConfig?: HeaderEmbedConfig;\n\n accountMenu?: React.ReactNode;\n}\n\nexport type IsolatedHeaderProps = {\n className?: string;\n motif: Motif;\n translations?: HeaderTranslations;\n handleContinueShopping: () => void;\n showLineLoader?: boolean;\n account?: {\n loading?: HeaderAccount[\"loading\"];\n customer?: {\n picture?: HeaderAccountCustomer[\"picture\"];\n };\n };\n\n // Logo overrides\n logo?: HeaderLogo;\n} & Pick<HeaderProps, \"embedConfig\">;\n\nexport interface ProHeaderEarlyAccess {\n loading?: boolean;\n onClick: () => void;\n}\n\nexport interface HeaderProductLineOption {\n value: ProductLine;\n label: string;\n}\n\nexport interface ProHeaderCategories {\n items: ProMobileMenuSectionItem[];\n activeIndex: number;\n}\n\nexport type ProHeaderProps = Pick<\n HeaderProps,\n | \"className\"\n | \"motif\"\n | \"cart\"\n | \"account\"\n | \"translations\"\n | \"onModalOpen\"\n | \"onCartClick\"\n | \"showLineLoader\"\n | \"accountMenu\"\n> & {\n /**\n * Header customizations for embed context like WebView\n */\n embedConfig?: HeaderEmbedConfig;\n\n // Country picker\n handleStorePickerClick?: () => void;\n /** @deprecated Not used in favour of `logo.currentStore.name` */\n currentCountryName?: string;\n\n // Early access button\n earlyAccess?: ProHeaderEarlyAccess;\n\n // Purchase History button\n handlePurchaseHistoryClick?: () => void;\n\n // Order button\n handleOrderHistoryClick?: () => void;\n\n // Product line picker\n productLineOptions?: HeaderProductLineOption[];\n productLineValue?: ProductLine;\n handleProductLineChange?: (type: ProductLine) => void;\n\n // Mobile menu aka \"hamburger\" button click\n handleMobileMenuClick?: () => void;\n\n onLanguageChange?: (\n e: React.MouseEvent<HTMLElement>,\n link: string,\n language: Language,\n ) => void;\n\n // Search\n searchValue?: string;\n onSearch?: (searchTerm: string) => void;\n searchInputWidth?: number;\n searchInputChildren?: ReactNode;\n\n onSearchFocus?: () => void;\n onSearchBlur?: () => void;\n onSearchClick?: () => void;\n\n // Categories used for menu\n categories: ProHeaderCategories;\n hideInlineCategories?: boolean;\n\n // Logo overrides\n logo?: HeaderLogo;\n};\n"],"names":["defaultHeaderTranslations","new","support","purchasedProductHistory","orderHistory","earlyAccess","store","links","company","social","tools","training","continueShopping","search","placeholder","noMatchesFound","seeAllResults","searchUniFiProducts","searchUISPProducts","searchAmpliFiProducts","account","login","signUp","signOut","uiAccount","unifiSiteManager","manageAccount","cart","VATincluded","includesVat","discount","empty","review","shipping","subtotal","total","itemsTitle","upsellTitle","language","region"],"mappings":";;AAkBO,MAAMA,yBAA4B,GAAA;EACvCC,GAAK,EAAA,KAAA;EACLC,OAAS,EAAA,SAAA;EACTC,uBAAyB,EAAA,2BAAA;EACzBC,YAAc,EAAA,eAAA;EACdC,WAAa,EAAA,cAAA;EACbC,KAAO,EAAA,OAAA;EACPC,KAAO,EAAA,OAAA;EACPC,OAAS,EAAA,SAAA;EACTC,MAAQ,EAAA,QAAA;EACRC,KAAO,EAAA,OAAA;EACPC,QAAU,EAAA,UAAA;EACVC,gBAAkB,EAAA,mBAAA;EAClBC,MAAQ,EAAA;IACNC,WAAa,EAAA,WAAA;IACbC,cAAgB,EAAA,sCAAA;IAChBC,aAAe,EAAA,iBAAA;IACfC,mBAAqB,EAAA,uBAAA;IACrBC,kBAAoB,EAAA,sBAAA;IACpBC,qBAAuB,EAAA;EACzB,CAAA;EACAC,OAAS,EAAA;IACPC,KAAO,EAAA,QAAA;IACPC,MAAQ,EAAA,SAAA;IACRC,OAAS,EAAA,UAAA;IACTC,SAAW,EAAA,YAAA;IACXC,gBAAkB,EAAA,oBAAA;IAClBC,aAAe,EAAA,gBAAA;IACftB,YAAc,EAAA;EAChB,CAAA;EACAuB,IAAM,EAAA;IACJC,WAAa,EAAA,WAAA;IACbC,WAAa,EAAA,iBAAA;IACbC,QAAU,EAAA,UAAA;IACVC,KAAO,EAAA,oBAAA;IACPC,MAAQ,EAAA,UAAA;IACRC,QAAU,EAAA,UAAA;IACVC,QAAU,EAAA,UAAA;IACVC,KAAO,EAAA,cAAA;IACPC,UAAY,EAAA,WAAA;IACZC,WAAa,EAAA;EACf,CAAA;EACAC,UAAU,CAAC,CAAA;EACXC,MAAQ,EAAA;AACV,CAAA;"}
1
+ {"version":3,"file":"Header.types.mjs","sources":["../../../src/components/Header/Header.types.tsx"],"sourcesContent":["import type { Motif } from \"@ubnt/ui-components/utils\";\nimport type { ReactNode } from \"react\";\n\nimport type { Language } from \"../../contexts/MenuContext/mapping\";\nimport type {\n ModalId,\n ParsedNavigationItem,\n ParsedNavigationSubItem,\n ParsedNavigationSubSubItem,\n} from \"../../contexts/MenuContext/types\";\nimport type { Nullish, ProductLine } from \"../../types\";\nimport type {\n CustomImageAsset,\n RenderImageFn,\n} from \"../CustomImage/CustomImage.types\";\nimport type { NavigationMicrositeMenuProps } from \"./Navigation/MicrositeMenu/MicrositeMenu.types\";\nimport type { ProMobileMenuSectionItem } from \"./Navigation/ProMobileMenu/ProMobileMenu.types\";\n\nexport const defaultHeaderTranslations = {\n new: \"New\",\n support: \"Support\",\n purchasedProductHistory: \"Purchased Product History\",\n orderHistory: \"Order History\",\n earlyAccess: \"Early Access\",\n store: \"Store\",\n links: \"Links\",\n company: \"Company\",\n social: \"Social\",\n tools: \"Tools\",\n training: \"Training\",\n continueShopping: \"Continue Shopping\",\n search: {\n placeholder: \"Search...\",\n noMatchesFound: \"Sorry, we couldn't find any matches.\",\n seeAllResults: \"See all results\",\n searchUniFiProducts: \"Search UniFi products\",\n searchUISPProducts: \"Search UISP products\",\n searchAmpliFiProducts: \"Search AmpliFi products\",\n },\n account: {\n login: \"Log In\",\n signUp: \"Sign Up\",\n signOut: \"Sign Out\",\n uiAccount: \"UI Account\",\n unifiSiteManager: \"UniFi Site Manager\",\n manageAccount: \"Manage Account\",\n orderHistory: \"Orders & Addresses\",\n },\n cart: {\n VATincluded: \"VAT Incl.\",\n includesVat: \"Includes VAT of\",\n discount: \"Discount\",\n empty: \"Your cart is empty\",\n review: \"Checkout\",\n shipping: \"Shipping\",\n subtotal: \"Subtotal\",\n total: \"Total price:\",\n itemsTitle: \"Your Cart\",\n upsellTitle: \"Usually bought together\",\n },\n language: {},\n region: \"Region\",\n};\n\nexport interface HeaderAccountCustomer {\n id: string;\n email: string;\n displayName: string;\n picture?: string | null;\n}\n\nexport interface HeaderAccount {\n loading?: boolean;\n customer?: Nullish<HeaderAccountCustomer>;\n handleLogin?: () => void;\n handleLogout?: () => void;\n handleRegister?: () => void;\n handleManageAccount?: () => void;\n handleOrderHistory?: () => void;\n renderStorePicker?: (onClose: () => void) => JSX.Element;\n}\n\nexport interface HeaderSearch {\n /** Trigger search */\n onSearch: (formattedQuerySearchTerm: string) => void;\n loading?: boolean;\n totalItemsCount: number;\n items: Array<{\n id: string;\n url: string;\n image?: CustomImageAsset | null;\n title: string;\n family?: string | null;\n }>;\n}\n\nexport interface HeaderCartItemControls {\n loading?: boolean;\n quantityMax?: number;\n onQuantityChange: (newQuantity: number) => void;\n}\n\nexport interface HeaderCartItem {\n id: string;\n url: string;\n image: Nullish<CustomImageAsset>;\n quantity: number;\n title: string;\n controls: HeaderCartItemControls;\n price: string;\n priceIncludingVAT?: string;\n}\n\nexport interface HeaderCart {\n onReview: () => void;\n loading?: boolean;\n items: HeaderCartItem[];\n upsellItems?: HeaderCartItem[];\n totals: Nullish<{\n shipping: Nullish<string>;\n discount: Nullish<string>;\n finalTax: Nullish<string>;\n total: string;\n totalIncludingVAT?: string;\n }>;\n}\n\nexport interface HeaderLogo {\n url?: string;\n hide?: boolean;\n productLine?: ProductLine;\n onClick?: (e: React.MouseEvent<HTMLElement>, href: string) => void;\n currentStore?: {\n flag: ReactNode;\n name: string;\n };\n}\n\nexport type HeaderTranslations = typeof defaultHeaderTranslations;\n\nexport type HeaderEmbedConfig = {\n /**\n * Allows to configure custom callback on home link click\n */\n homeLinkClickHandler?: () => void;\n\n /**\n * Allows to render custom extra section items in Pro Mobile Menu\n */\n mobileMenuExtraSectionItems?: Array<ProMobileMenuSectionItem>;\n\n /**\n * Moves Avatar icon to the left side of the header\n */\n moveAvatarIconToLeft?: boolean;\n\n /**\n * Allows to display avatar as image instead of icon\n */\n displayAvatarAsImage?: boolean;\n\n /**\n * Allows to configure custom callback on avatar click\n */\n avatarClickHandler?: () => void;\n\n /**\n * Allows to hide logo / site title\n */\n hideLogo?: boolean;\n\n /**\n * Allows to hide Avatar icon from the header\n */\n hideAvatarIcon?: boolean;\n\n /**\n * Hide language picker\n */\n hideLanguagePicker?: boolean;\n\n fullWidthHeader?: boolean;\n\n /**\n * Renders site title instead of UI logo\n */\n siteTitle?: string;\n\n /**\n * Blurs search input and dismissed virtual keyboard on touchmove\n */\n /** @deprecated Use blurSearchOnTouchmove */\n hideSearchOnTouchmove?: boolean;\n blurSearchOnTouchmove?: boolean;\n};\n\nexport interface HeaderProps {\n className?: string;\n motif: Motif;\n /**\n * Main header bar becomes fixed position at the top\n */\n sticky?: boolean;\n /**\n * Navigation carousel becomes fixed position at the top\n */\n stickyCarousel?: boolean;\n translations?: HeaderTranslations;\n renderImage: RenderImageFn;\n showLineLoader?: boolean;\n onModalOpen?: () => void;\n onMenuItemLinkClick?: (\n e: React.MouseEvent<HTMLElement>,\n item: ParsedNavigationItem,\n ) => void;\n onMenuSubItemLinkClick?: (\n e: React.MouseEvent<HTMLElement>,\n item: ParsedNavigationSubItem | ParsedNavigationSubSubItem,\n ) => void;\n\n onLanguageChange?: (\n e: React.MouseEvent<HTMLElement>,\n link: string,\n language: Language,\n ) => void;\n\n // Account\n account?: HeaderAccount;\n\n // Search\n onSearchResultsAction?: (searchTerm: string) => void;\n search?: HeaderSearch;\n\n // Cart\n onCartClick?: () => void;\n cart?: HeaderCart;\n\n // Set specific modal to be open initially\n initialActiveModal?: Nullish<ModalId>;\n /**\n * Triggers on active modal change\n */\n onActiveModal?: (id: ModalId | null, prevModalId: ModalId | null) => void;\n\n /**\n * Will be called before navigating to store search, the tracking request in this callback will only\n * finish if called from store side as microsites are not using next router.\n */\n trackStoreSearchClick?: () => void;\n\n transparentHeader?: boolean;\n\n /**\n * Sub-menu used for microsites\n */\n micrositeMenu?: NavigationMicrositeMenuProps;\n\n /**\n * Header customizations for embed context like WebView\n */\n embedConfig?: HeaderEmbedConfig;\n\n accountMenu?: React.ReactNode;\n}\n\nexport type IsolatedHeaderProps = {\n className?: string;\n motif: Motif;\n translations?: HeaderTranslations;\n handleContinueShopping: () => void;\n showLineLoader?: boolean;\n account?: {\n loading?: HeaderAccount[\"loading\"];\n customer?: {\n picture?: HeaderAccountCustomer[\"picture\"];\n };\n };\n\n // Logo overrides\n logo?: HeaderLogo;\n} & Pick<HeaderProps, \"embedConfig\">;\n\nexport interface ProHeaderEarlyAccess {\n loading?: boolean;\n onClick: () => void;\n}\n\nexport interface HeaderProductLineOption {\n value: ProductLine;\n label: string;\n}\n\nexport interface ProHeaderCategories {\n items: ProMobileMenuSectionItem[];\n activeIndex: number;\n}\n\nexport type ProHeaderProps = Pick<\n HeaderProps,\n | \"className\"\n | \"motif\"\n | \"cart\"\n | \"account\"\n | \"translations\"\n | \"onModalOpen\"\n | \"onCartClick\"\n | \"showLineLoader\"\n | \"accountMenu\"\n> & {\n /**\n * Header customizations for embed context like WebView\n */\n embedConfig?: HeaderEmbedConfig;\n\n // Country picker\n currentCountryName?: string;\n handleStorePickerClick?: () => void;\n\n // Early access button\n earlyAccess?: ProHeaderEarlyAccess;\n\n // Purchase History button\n handlePurchaseHistoryClick?: () => void;\n\n // Order button\n handleOrderHistoryClick?: () => void;\n\n // Product line picker\n productLineOptions?: HeaderProductLineOption[];\n productLineValue?: ProductLine;\n handleProductLineChange?: (type: ProductLine) => void;\n\n // Mobile menu aka \"hamburger\" button click\n handleMobileMenuClick?: () => void;\n\n onLanguageChange?: (\n e: React.MouseEvent<HTMLElement>,\n link: string,\n language: Language,\n ) => void;\n\n // Search\n searchValue?: string;\n onSearch?: (searchTerm: string) => void;\n\n onSearchFocus?: () => void;\n onSearchBlur?: () => void;\n onSearchClick?: () => void;\n\n // Categories used for menu\n categories: ProHeaderCategories;\n hideInlineCategories?: boolean;\n\n // Logo overrides\n logo?: HeaderLogo;\n};\n"],"names":["defaultHeaderTranslations","new","support","purchasedProductHistory","orderHistory","earlyAccess","store","links","company","social","tools","training","continueShopping","search","placeholder","noMatchesFound","seeAllResults","searchUniFiProducts","searchUISPProducts","searchAmpliFiProducts","account","login","signUp","signOut","uiAccount","unifiSiteManager","manageAccount","cart","VATincluded","includesVat","discount","empty","review","shipping","subtotal","total","itemsTitle","upsellTitle","language","region"],"mappings":";;AAkBO,MAAMA,yBAA4B,GAAA;EACvCC,GAAK,EAAA,KAAA;EACLC,OAAS,EAAA,SAAA;EACTC,uBAAyB,EAAA,2BAAA;EACzBC,YAAc,EAAA,eAAA;EACdC,WAAa,EAAA,cAAA;EACbC,KAAO,EAAA,OAAA;EACPC,KAAO,EAAA,OAAA;EACPC,OAAS,EAAA,SAAA;EACTC,MAAQ,EAAA,QAAA;EACRC,KAAO,EAAA,OAAA;EACPC,QAAU,EAAA,UAAA;EACVC,gBAAkB,EAAA,mBAAA;EAClBC,MAAQ,EAAA;IACNC,WAAa,EAAA,WAAA;IACbC,cAAgB,EAAA,sCAAA;IAChBC,aAAe,EAAA,iBAAA;IACfC,mBAAqB,EAAA,uBAAA;IACrBC,kBAAoB,EAAA,sBAAA;IACpBC,qBAAuB,EAAA;EACzB,CAAA;EACAC,OAAS,EAAA;IACPC,KAAO,EAAA,QAAA;IACPC,MAAQ,EAAA,SAAA;IACRC,OAAS,EAAA,UAAA;IACTC,SAAW,EAAA,YAAA;IACXC,gBAAkB,EAAA,oBAAA;IAClBC,aAAe,EAAA,gBAAA;IACftB,YAAc,EAAA;EAChB,CAAA;EACAuB,IAAM,EAAA;IACJC,WAAa,EAAA,WAAA;IACbC,WAAa,EAAA,iBAAA;IACbC,QAAU,EAAA,UAAA;IACVC,KAAO,EAAA,oBAAA;IACPC,MAAQ,EAAA,UAAA;IACRC,QAAU,EAAA,UAAA;IACVC,QAAU,EAAA,UAAA;IACVC,KAAO,EAAA,cAAA;IACPC,UAAY,EAAA,WAAA;IACZC,WAAa,EAAA;EACf,CAAA;EACAC,UAAU,CAAC,CAAA;EACXC,MAAQ,EAAA;AACV,CAAA;"}
@@ -25,7 +25,7 @@ const HeaderLogoIcon = ({
25
25
  case generated.ProductLine.Unifi:
26
26
  return /* @__PURE__ */jsxRuntime.jsx(StyleableSvgImage.StyleableSvgImage, {
27
27
  src: logoUnifi__default["default"],
28
- width: 59,
28
+ width: 58.5,
29
29
  height: 18
30
30
  });
31
31
  case generated.ProductLine.Uisp:
@@ -1 +1 @@
1
- {"version":3,"file":"LogoIcon.js","sources":["../../../../src/components/Header/LogoIcon/LogoIcon.tsx"],"sourcesContent":["import * as icons from \"../../../constants/icons\";\nimport type { Nullish } from \"../../../types\";\nimport { ProductLine } from \"../../../types\";\nimport { StyleableSvgImage } from \"../../StyleableSvgImage\";\n\ninterface HeaderLogoIconProps {\n productLine: Nullish<ProductLine>;\n}\n\nexport const HeaderLogoIcon = ({ productLine }: HeaderLogoIconProps) => {\n // #############################################################################\n // Render\n // #############################################################################\n switch (productLine) {\n case ProductLine.Unifi:\n return (\n <StyleableSvgImage\n src={icons.header.logoUnifi}\n width={59}\n height={18}\n />\n );\n case ProductLine.Uisp:\n return (\n <StyleableSvgImage\n src={icons.header.logoUisp}\n width={56.5}\n height={18}\n />\n );\n default:\n return (\n <StyleableSvgImage src={icons.header.logo} width={17.86} height={18} />\n );\n }\n};\n"],"names":["HeaderLogoIcon","productLine","ProductLine","Unifi","jsx","StyleableSvgImage","src","icons.header.logoUnifi","width","height","Uisp","icons.header.logoUisp","icons.header.logo"],"mappings":";;;;;;;;;;;;;;;;;;;;AASO,MAAMA,cAAiB,GAAAA,CAAC;EAAEC;CAAuC,KAAA;EAItE,QAAQA,WAAa;IACnB,KAAKC,SAAY,CAAAA,WAAA,CAAAC,KAAA;MAEb,sBAAAC,UAAA,CAAAA,GAAA,CAACC,iBAAA,CAAAA,iBAAA,EAAA;QACCC,GAAA,EAAKC,kBAAa,CAAA,SAAA,CAAA;QAClBC,KAAO,EAAA,EAAA;QACPC,MAAQ,EAAA;MAAA,CAAA,CACV;IAEJ,KAAKP,SAAY,CAAAA,WAAA,CAAAQ,IAAA;MAEb,sBAAAN,UAAA,CAAAA,GAAA,CAACC,iBAAA,CAAAA,iBAAA,EAAA;QACCC,GAAA,EAAKK,iCAAa,CAAA,SAAA,CAAA;QAClBH,KAAO,EAAA,IAAA;QACPC,MAAQ,EAAA;MAAA,CAAA,CACV;IAEJ;MAEI,sBAAAL,UAAA,CAAAA,GAAA,CAACC;QAAkBC,GAAK,EAAAM,iCAAAA,CAAAA,SAAAA,CAAmB;QAAAJ,KAAA,EAAO,KAAO;QAAAC,MAAA,EAAQ;MAAI,CAAA,CAAA;EAE3E;AACF,CAAA;"}
1
+ {"version":3,"file":"LogoIcon.js","sources":["../../../../src/components/Header/LogoIcon/LogoIcon.tsx"],"sourcesContent":["import * as icons from \"../../../constants/icons\";\nimport type { Nullish } from \"../../../types\";\nimport { ProductLine } from \"../../../types\";\nimport { StyleableSvgImage } from \"../../StyleableSvgImage\";\n\ninterface HeaderLogoIconProps {\n productLine: Nullish<ProductLine>;\n}\n\nexport const HeaderLogoIcon = ({ productLine }: HeaderLogoIconProps) => {\n // #############################################################################\n // Render\n // #############################################################################\n switch (productLine) {\n case ProductLine.Unifi:\n return (\n <StyleableSvgImage\n src={icons.header.logoUnifi}\n width={58.5}\n height={18}\n />\n );\n case ProductLine.Uisp:\n return (\n <StyleableSvgImage\n src={icons.header.logoUisp}\n width={56.5}\n height={18}\n />\n );\n default:\n return (\n <StyleableSvgImage src={icons.header.logo} width={17.86} height={18} />\n );\n }\n};\n"],"names":["HeaderLogoIcon","productLine","ProductLine","Unifi","jsx","StyleableSvgImage","src","icons.header.logoUnifi","width","height","Uisp","icons.header.logoUisp","icons.header.logo"],"mappings":";;;;;;;;;;;;;;;;;;;;AASO,MAAMA,cAAiB,GAAAA,CAAC;EAAEC;CAAuC,KAAA;EAItE,QAAQA,WAAa;IACnB,KAAKC,SAAY,CAAAA,WAAA,CAAAC,KAAA;MAEb,sBAAAC,UAAA,CAAAA,GAAA,CAACC,iBAAA,CAAAA,iBAAA,EAAA;QACCC,GAAA,EAAKC,kBAAa,CAAA,SAAA,CAAA;QAClBC,KAAO,EAAA,IAAA;QACPC,MAAQ,EAAA;MAAA,CAAA,CACV;IAEJ,KAAKP,SAAY,CAAAA,WAAA,CAAAQ,IAAA;MAEb,sBAAAN,UAAA,CAAAA,GAAA,CAACC,iBAAA,CAAAA,iBAAA,EAAA;QACCC,GAAA,EAAKK,iCAAa,CAAA,SAAA,CAAA;QAClBH,KAAO,EAAA,IAAA;QACPC,MAAQ,EAAA;MAAA,CAAA,CACV;IAEJ;MAEI,sBAAAL,UAAA,CAAAA,GAAA,CAACC;QAAkBC,GAAK,EAAAM,iCAAAA,CAAAA,SAAAA,CAAmB;QAAAJ,KAAA,EAAO,KAAO;QAAAC,MAAA,EAAQ;MAAI,CAAA,CAAA;EAE3E;AACF,CAAA;"}
@@ -15,7 +15,7 @@ const HeaderLogoIcon = ({
15
15
  case ProductLine.Unifi:
16
16
  return /* @__PURE__ */jsx(StyleableSvgImage, {
17
17
  src: logoUnifi__default,
18
- width: 59,
18
+ width: 58.5,
19
19
  height: 18
20
20
  });
21
21
  case ProductLine.Uisp:
@@ -1 +1 @@
1
- {"version":3,"file":"LogoIcon.mjs","sources":["../../../../src/components/Header/LogoIcon/LogoIcon.tsx"],"sourcesContent":["import * as icons from \"../../../constants/icons\";\nimport type { Nullish } from \"../../../types\";\nimport { ProductLine } from \"../../../types\";\nimport { StyleableSvgImage } from \"../../StyleableSvgImage\";\n\ninterface HeaderLogoIconProps {\n productLine: Nullish<ProductLine>;\n}\n\nexport const HeaderLogoIcon = ({ productLine }: HeaderLogoIconProps) => {\n // #############################################################################\n // Render\n // #############################################################################\n switch (productLine) {\n case ProductLine.Unifi:\n return (\n <StyleableSvgImage\n src={icons.header.logoUnifi}\n width={59}\n height={18}\n />\n );\n case ProductLine.Uisp:\n return (\n <StyleableSvgImage\n src={icons.header.logoUisp}\n width={56.5}\n height={18}\n />\n );\n default:\n return (\n <StyleableSvgImage src={icons.header.logo} width={17.86} height={18} />\n );\n }\n};\n"],"names":["HeaderLogoIcon","productLine","ProductLine","Unifi","jsx","StyleableSvgImage","src","icons.header.logoUnifi","width","height","Uisp","icons.header.logoUisp","icons.header.logo"],"mappings":";;;;;;;;;;AASO,MAAMA,cAAiB,GAAAA,CAAC;EAAEC;CAAuC,KAAA;EAItE,QAAQA,WAAa;IACnB,KAAKC,WAAY,CAAAC,KAAA;MAEb,sBAAAC,GAAA,CAACC,iBAAA,EAAA;QACCC,GAAA,EAAKC,kBAAa;QAClBC,KAAO,EAAA,EAAA;QACPC,MAAQ,EAAA;MAAA,CAAA,CACV;IAEJ,KAAKP,WAAY,CAAAQ,IAAA;MAEb,sBAAAN,GAAA,CAACC,iBAAA,EAAA;QACCC,GAAA,EAAKK,iCAAa;QAClBH,KAAO,EAAA,IAAA;QACPC,MAAQ,EAAA;MAAA,CAAA,CACV;IAEJ;MAEI,sBAAAL,GAAA,CAACC;QAAkBC,GAAK,EAAAM,iCAAmB;QAAAJ,KAAA,EAAO,KAAO;QAAAC,MAAA,EAAQ;MAAI,CAAA,CAAA;EAE3E;AACF,CAAA;"}
1
+ {"version":3,"file":"LogoIcon.mjs","sources":["../../../../src/components/Header/LogoIcon/LogoIcon.tsx"],"sourcesContent":["import * as icons from \"../../../constants/icons\";\nimport type { Nullish } from \"../../../types\";\nimport { ProductLine } from \"../../../types\";\nimport { StyleableSvgImage } from \"../../StyleableSvgImage\";\n\ninterface HeaderLogoIconProps {\n productLine: Nullish<ProductLine>;\n}\n\nexport const HeaderLogoIcon = ({ productLine }: HeaderLogoIconProps) => {\n // #############################################################################\n // Render\n // #############################################################################\n switch (productLine) {\n case ProductLine.Unifi:\n return (\n <StyleableSvgImage\n src={icons.header.logoUnifi}\n width={58.5}\n height={18}\n />\n );\n case ProductLine.Uisp:\n return (\n <StyleableSvgImage\n src={icons.header.logoUisp}\n width={56.5}\n height={18}\n />\n );\n default:\n return (\n <StyleableSvgImage src={icons.header.logo} width={17.86} height={18} />\n );\n }\n};\n"],"names":["HeaderLogoIcon","productLine","ProductLine","Unifi","jsx","StyleableSvgImage","src","icons.header.logoUnifi","width","height","Uisp","icons.header.logoUisp","icons.header.logo"],"mappings":";;;;;;;;;;AASO,MAAMA,cAAiB,GAAAA,CAAC;EAAEC;CAAuC,KAAA;EAItE,QAAQA,WAAa;IACnB,KAAKC,WAAY,CAAAC,KAAA;MAEb,sBAAAC,GAAA,CAACC,iBAAA,EAAA;QACCC,GAAA,EAAKC,kBAAa;QAClBC,KAAO,EAAA,IAAA;QACPC,MAAQ,EAAA;MAAA,CAAA,CACV;IAEJ,KAAKP,WAAY,CAAAQ,IAAA;MAEb,sBAAAN,GAAA,CAACC,iBAAA,EAAA;QACCC,GAAA,EAAKK,iCAAa;QAClBH,KAAO,EAAA,IAAA;QACPC,MAAQ,EAAA;MAAA,CAAA,CACV;IAEJ;MAEI,sBAAAL,GAAA,CAACC;QAAkBC,GAAK,EAAAM,iCAAmB;QAAAJ,KAAA,EAAO,KAAO;QAAAC,MAAA,EAAQ;MAAI,CAAA,CAAA;EAE3E;AACF,CAAA;"}
@@ -1,2 +1,2 @@
1
1
  import type { NavigationProMobileMenuProps } from "./ProMobileMenu.types";
2
- export declare const NavigationProMobileMenu: ({ translations, onClose, logo, handleStorePickerClick, handleOrderHistoryClick, handlePurchaseHistoryClick, handleProductLineChange, productLineValue, productLineOptions, categories, hideExtraSection, }: NavigationProMobileMenuProps) => JSX.Element;
2
+ export declare const NavigationProMobileMenu: ({ translations, onClose, currentCountryName, handleStorePickerClick, handleOrderHistoryClick, handlePurchaseHistoryClick, handleProductLineChange, productLineValue, productLineOptions, categories, hideExtraSection, }: NavigationProMobileMenuProps) => JSX.Element;
@@ -11,7 +11,6 @@ var typeGuards = require('../../../../utils/typeGuards.js');
11
11
  var useFooterContent = require('../../../Footer/hooks/useFooterContent.js');
12
12
  require('../../../StyleableSvgImage/index.js');
13
13
  var mapping = require('../../LinksModal/mapping.js');
14
- var ProHeader_styles = require('../../ProHeader/ProHeader.styles.js');
15
14
  var MobileMenu_styles = require('../MobileMenu/MobileMenu.styles.js');
16
15
  var ProMobileMenu_styles = require('./ProMobileMenu.styles.js');
17
16
  var context = require('../../../../contexts/MenuContext/context.js');
@@ -32,7 +31,7 @@ const motif = "light";
32
31
  const NavigationProMobileMenu = function NavigationProMobileMenu2({
33
32
  translations,
34
33
  onClose,
35
- logo,
34
+ currentCountryName,
36
35
  handleStorePickerClick,
37
36
  // handleEarlyAccessClick,
38
37
  handleOrderHistoryClick,
@@ -128,18 +127,12 @@ const NavigationProMobileMenu = function NavigationProMobileMenu2({
128
127
  // Unless it has no sub-items
129
128
  url: item.subItems.length ? null : item.url
130
129
  }))
131
- }, logo?.currentStore ? {
130
+ }, currentCountryName ? {
132
131
  id: "country-selector",
133
132
  items: [{
134
133
  id: "current-country-name",
135
134
  label: translations.region,
136
- value: /* @__PURE__ */jsxRuntime.jsxs(ProHeader_styles.CurrentStoreWrap, {
137
- onClick: handleStorePickerClick,
138
- $inheritFonts: true,
139
- children: [/* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.CurrentStoreFlag, {
140
- children: logo.currentStore.flag
141
- }), logo.currentStore.name]
142
- }),
135
+ value: currentCountryName,
143
136
  icon: {
144
137
  src: asset.imageSrc(LocationPinIcon__default["default"]),
145
138
  width: 17,
@@ -153,7 +146,7 @@ const NavigationProMobileMenu = function NavigationProMobileMenu2({
153
146
  id: `extra-${item.id}`,
154
147
  items: [item]
155
148
  })) : [])].filter(typeGuards.isNonNullish);
156
- }, [translations.support, translations.social, translations.company, translations.training, translations.tools, translations.orderHistory, translations.purchasedProductHistory, translations.region, context$1, socialContent.items, handleOrderHistoryClick, handlePurchaseHistoryClick, categories.items, logo?.currentStore, handleStorePickerClick, hideExtraSection, footerContent]);
149
+ }, [translations.support, translations.social, translations.company, translations.training, translations.tools, translations.orderHistory, translations.purchasedProductHistory, translations.region, context$1, socialContent.items, handleOrderHistoryClick, handlePurchaseHistoryClick, categories.items, currentCountryName, handleStorePickerClick, hideExtraSection, footerContent]);
157
150
  const renderSectionItemIcon = react.useCallback(item => {
158
151
  return item.icon && /* @__PURE__ */jsxRuntime.jsx(ProMobileMenu_styles.SectionItemIcon, {
159
152
  children: /* @__PURE__ */jsxRuntime.jsx(StyleableSvgImage.StyleableSvgImage, {
@@ -1 +1 @@
1
- {"version":3,"file":"ProMobileMenu.js","sources":["../../../../../src/components/Header/Navigation/ProMobileMenu/ProMobileMenu.tsx"],"sourcesContent":["/* eslint-disable @next/next/no-img-element */\nimport type { Motif } from \"@ubnt/ui-components/utils\";\nimport { useCallback, useMemo, useState } from \"react\";\n\nimport HistoryIcon from \"../../../../assets/icons/menu/icon-history.svg\";\nimport LocationPinIcon from \"../../../../assets/icons/menu/icon-location-pin.svg\";\nimport * as icons from \"../../../../constants/icons\";\nimport { useMenu } from \"../../../../contexts/MenuContext\";\nimport { imageSrc } from \"../../../../utils/asset\";\nimport { isNonNullish } from \"../../../../utils/typeGuards\";\nimport { useFooterContent } from \"../../../Footer/hooks/useFooterContent\";\nimport { StyleableSvgImage } from \"../../../StyleableSvgImage\";\nimport { getSupportLinkMapping } from \"../../LinksModal/mapping\";\nimport {\n CurrentStoreFlag,\n CurrentStoreWrap,\n} from \"../../ProHeader/ProHeader.styles\";\nimport * as S from \"../MobileMenu/MobileMenu.styles\";\nimport * as S2 from \"./ProMobileMenu.styles\";\nimport type {\n NavigationProMobileMenuProps,\n ProMobileMenuSection,\n ProMobileMenuSectionItem,\n ProMobileMenuSectionSubItem,\n} from \"./ProMobileMenu.types\";\n\nconst motif: Motif = \"light\";\n\nexport const NavigationProMobileMenu = function NavigationProMobileMenu({\n translations,\n onClose,\n logo,\n handleStorePickerClick,\n // handleEarlyAccessClick,\n handleOrderHistoryClick,\n handlePurchaseHistoryClick,\n handleProductLineChange,\n productLineValue,\n productLineOptions,\n categories,\n hideExtraSection,\n}: NavigationProMobileMenuProps) {\n const { footerContent, socialContent } = useFooterContent();\n const { context } = useMenu();\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 // #############################################################################\n // Menu sections\n // #############################################################################\n const sections = useMemo((): ProMobileMenuSection[] => {\n const extraSectionItems: ProMobileMenuSectionItem[] = [\n {\n id: \"support\",\n label: translations.support,\n url: null,\n subItems: getSupportLinkMapping(context).map((item) => ({\n id: item.id,\n label: item.name,\n url: item.url,\n })),\n },\n {\n id: \"social\",\n label: translations.social,\n url: null,\n subItems: socialContent.items.map((item) => ({\n id: item.id,\n label: item.label,\n url: item.src,\n })),\n },\n ...(\n [\n { key: \"company\", label: translations.company },\n { key: \"training\", label: translations.training },\n { key: \"tools\", label: translations.tools },\n ] as const\n ).map(({ key, label }) => ({\n id: key,\n label,\n url: null,\n subItems: footerContent[key].items.map((item) => ({\n id: item.id,\n label: item.label,\n url: item.src,\n })),\n })),\n ];\n\n return [\n {\n id: \"store-link-stuff\",\n items: [\n handleOrderHistoryClick\n ? ({\n id: \"order-history\",\n label: translations.orderHistory,\n icon: {\n src: imageSrc(HistoryIcon),\n width: 16,\n height: 16,\n },\n url: null,\n onClick: handleOrderHistoryClick,\n subItems: [],\n } satisfies ProMobileMenuSectionItem)\n : null,\n handlePurchaseHistoryClick\n ? ({\n id: \"purchased-product-history\",\n label: translations.purchasedProductHistory,\n icon: {\n src: imageSrc(HistoryIcon),\n width: 16,\n height: 16,\n },\n url: null,\n onClick: handlePurchaseHistoryClick,\n subItems: [],\n } satisfies ProMobileMenuSectionItem)\n : null,\n ].filter(isNonNullish),\n },\n\n {\n id: \"categories\",\n items: categories.items.map((item) => ({\n ...item,\n // Prevent top level items to be links - the whole item acts as a dropdown\n // Unless it has no sub-items\n url: item.subItems.length ? null : item.url,\n })),\n },\n\n logo?.currentStore\n ? {\n id: \"country-selector\",\n items: [\n {\n id: \"current-country-name\",\n label: translations.region,\n value: (\n <CurrentStoreWrap\n onClick={handleStorePickerClick}\n $inheritFonts\n >\n <CurrentStoreFlag>\n {logo.currentStore.flag}\n </CurrentStoreFlag>\n {logo.currentStore.name}\n </CurrentStoreWrap>\n ),\n icon: {\n src: imageSrc(LocationPinIcon),\n width: 17,\n height: 17,\n },\n url: null,\n onClick: handleStorePickerClick,\n subItems: [],\n },\n ],\n }\n : null,\n\n ...(!hideExtraSection\n ? extraSectionItems.map((item) => ({\n id: `extra-${item.id}`,\n items: [item],\n }))\n : []),\n ].filter(isNonNullish);\n }, [\n translations.support,\n translations.social,\n translations.company,\n translations.training,\n translations.tools,\n translations.orderHistory,\n translations.purchasedProductHistory,\n translations.region,\n context,\n socialContent.items,\n handleOrderHistoryClick,\n handlePurchaseHistoryClick,\n categories.items,\n logo?.currentStore,\n handleStorePickerClick,\n hideExtraSection,\n footerContent,\n ]);\n\n // #############################################################################\n // Render helpers\n // #############################################################################\n const renderSectionItemIcon = useCallback(\n (item: ProMobileMenuSection[\"items\"][number]): React.ReactNode => {\n return (\n item.icon && (\n <S2.SectionItemIcon>\n <StyleableSvgImage\n src={item.icon.src}\n width={item.icon.width}\n height={item.icon.height}\n />\n </S2.SectionItemIcon>\n )\n );\n },\n [],\n );\n\n const renderSectionItemButton = useCallback(\n (\n item: ProMobileMenuSectionItem | ProMobileMenuSectionSubItem,\n ): React.ReactNode => {\n const IconNode = \"subItems\" in item && renderSectionItemIcon(item);\n const NewLabelNode =\n \"isNew\" in item && item.isNew ? (\n <S.NewLabel>{translations.new}</S.NewLabel>\n ) : null;\n const ValueNode = !!item.value && <div>{item.value}</div>;\n\n const target =\n \"targetBlank\" in item && item.targetBlank ? \"_blank\" : undefined;\n const url = item.url;\n\n if (!url) {\n return (\n <S2.ProSectionItemButton\n motif={motif}\n onClick={(e) => {\n if (\"subItems\" in item && item.subItems.length) {\n toggleExpandedSectionItemId(item.id);\n } else {\n // On click callback only when not as a dropdown trigger\n item.onClick?.(e, url);\n onClose();\n }\n }}\n >\n <S2.ButtonContent>\n {IconNode}\n {item.label}\n {NewLabelNode}\n </S2.ButtonContent>\n {ValueNode}\n </S2.ProSectionItemButton>\n );\n }\n\n return (\n <S.SectionItemButton\n motif={motif}\n onClick={(e) => {\n item.onClick?.(e, url);\n onClose();\n }}\n {...(typeof url === \"string\"\n ? {\n as: \"a\",\n href: url,\n target,\n }\n : {})}\n >\n <S2.ButtonContent>\n {IconNode}\n {item.label}\n {NewLabelNode}\n </S2.ButtonContent>\n {ValueNode}\n </S.SectionItemButton>\n );\n },\n [\n onClose,\n renderSectionItemIcon,\n toggleExpandedSectionItemId,\n translations.new,\n ],\n );\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S2.Wrap motif={motif}>\n <S.Container size=\"mobile\" noVerticalMargin>\n <S.InnerWrap>\n {/* Product line */}\n {!!productLineOptions?.length && (\n <S2.ButtonGroup>\n {productLineOptions.map((option) => (\n <S2.CustomButton\n full\n key={option.value}\n variant=\"gray\"\n $active={option.value === productLineValue}\n onClick={() => {\n handleProductLineChange?.(option.value);\n onClose();\n }}\n >\n {option.label}\n </S2.CustomButton>\n ))}\n </S2.ButtonGroup>\n )}\n\n {/* Sections */}\n {sections.map((section) => (\n <S.Section motif={motif} key={section.id}>\n {section.items.map((item) => (\n <S.SectionItemsGroup\n motif={motif}\n key={item.id}\n $active={item.id === expandedSectionItemId}\n >\n <S.SectionItem motif={motif}>\n {renderSectionItemButton(item)}\n\n {item.subItems.length > 0 && (\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 />\n </S.ButtonIcon>\n </S.SectionItemArrowButton>\n )}\n </S.SectionItem>\n\n {item.id === expandedSectionItemId &&\n item.subItems.length > 0 &&\n item.subItems.map((subItem) => (\n <S.SectionItem key={subItem.id} motif={motif} $secondary>\n {renderSectionItemButton(subItem)}\n </S.SectionItem>\n ))}\n </S.SectionItemsGroup>\n ))}\n </S.Section>\n ))}\n </S.InnerWrap>\n </S.Container>\n </S2.Wrap>\n );\n};\n"],"names":["motif","NavigationProMobileMenu","NavigationProMobileMenu2","translations","onClose","logo","handleStorePickerClick","handleOrderHistoryClick","handlePurchaseHistoryClick","handleProductLineChange","productLineValue","productLineOptions","categories","hideExtraSection","footerContent","socialContent","useFooterContent","context","useMenu","expandedSectionItemId","setExpandedSectionItemId","useState","toggleExpandedSectionItemId","useCallback","itemId","sections","useMemo","extraSectionItems","id","label","support","url","subItems","getSupportLinkMapping","map","item","name","social","items","src","key","company","training","tools","orderHistory","icon","imageSrc","HistoryIcon","width","height","onClick","purchasedProductHistory","filter","isNonNullish","length","currentStore","region","value","jsxs","CurrentStoreWrap","$inheritFonts","children","jsx","CurrentStoreFlag","flag","LocationPinIcon","renderSectionItemIcon","S2.SectionItemIcon","StyleableSvgImage","renderSectionItemButton","IconNode","NewLabelNode","isNew","S.NewLabel","NewLabel","new","ValueNode","target","targetBlank","S2.ProSectionItemButton","ProSectionItemButton","e","S2.ButtonContent","S.SectionItemButton","SectionItemButton","as","href","S2.Wrap","S.Container","size","noVerticalMargin","S.InnerWrap","S2.ButtonGroup","option","S2.CustomButton","CustomButton","full","variant","$active","section","S.Section","S.SectionItemsGroup","SectionItemsGroup","S.SectionItem","SectionItem","S.SectionItemArrowButton","SectionItemArrowButton","S.ButtonIcon","icons.generic.collapseArrow","subItem","$secondary"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,MAAMA,KAAe,GAAA,OAAA;AAER,MAAAC,uBAAA,GAA0B,SAASA,wBAAwBC,CAAA;EACtEC,YAAA;EACAC,OAAA;EACAC,IAAA;EACAC,sBAAA;EAAA;EAEAC,uBAAA;EACAC,0BAAA;EACAC,uBAAA;EACAC,gBAAA;EACAC,kBAAA;EACAC,UAAA;EACAC;AACF,CAAiC,EAAA;EAC/B,MAAM;IAAEC,aAAA;IAAeC;EAAc,CAAA,GAAIC,gBAAiB,CAAAA,gBAAA,CAAA,CAAA;EACpD,MAAA;IAAEC,OAAAA,EAAAA;GAAQ,GAAIC,OAAAA,CAAAA,OAAQ,EAAA;EAK5B,MAAM,CAACC,qBAAA,EAAuBC,wBAAwB,CAAA,GAAIC,eAExD,IAAI,CAAA;EAEN,MAAMC,2BAA8B,GAAAC,KAAA,CAAAA,WAAA,CACjCC,MAAmB,IAAA;IAClBJ,wBAAA,CACED,qBAAA,KAA0BK,SAAS,IAAO,GAAAA,MAAA,CAC5C;EACF,CAAA,EACA,CAACL,qBAAqB,CAAA,CACxB;EAKM,MAAAM,QAAA,GAAWC,KAAAA,CAAAA,QAAQ,MAA8B;IACrD,MAAMC,iBAAgD,GAAA,CACpD;MACEC,EAAI,EAAA,SAAA;MACJC,OAAO1B,YAAa,CAAA2B,OAAA;MACpBC,GAAK,EAAA,IAAA;MACLC,UAAUC,OAAAA,CAAAA,qBAAsB,C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AAKH,QAAS,CAAAE,GAAA,CAAK2E,OAAA,IAAA,8BAChBN,iBAAAA,CAAAA,WAAE,EAAF;cAA+BvG,KAAA;cAAc8G,UAAU,EAAA,IAAA;cACrDjD,kCAAwBgD,OAAO;YAAA,CAAA,EADdA,OAAQ,CAAAjF,EAE5B,CACD,CAAA;UAAA,CAAA,EA5BEO,IAAK,CAAAP,EAAA,CA8Bb;QAAA,CAAA,EAlC2BuE,OAAQ,CAAAvE,EAmCtC,CACD,CAAA;OACH;KACF;EACF,CAAA,CAAA;AAEJ,CAAA;"}
1
+ {"version":3,"file":"ProMobileMenu.js","sources":["../../../../../src/components/Header/Navigation/ProMobileMenu/ProMobileMenu.tsx"],"sourcesContent":["/* eslint-disable @next/next/no-img-element */\nimport type { Motif } from \"@ubnt/ui-components/utils\";\nimport { useCallback, useMemo, useState } from \"react\";\n\nimport HistoryIcon from \"../../../../assets/icons/menu/icon-history.svg\";\nimport LocationPinIcon from \"../../../../assets/icons/menu/icon-location-pin.svg\";\nimport * as icons from \"../../../../constants/icons\";\nimport { useMenu } from \"../../../../contexts/MenuContext\";\nimport { imageSrc } from \"../../../../utils/asset\";\nimport { isNonNullish } from \"../../../../utils/typeGuards\";\nimport { useFooterContent } from \"../../../Footer/hooks/useFooterContent\";\nimport { StyleableSvgImage } from \"../../../StyleableSvgImage\";\nimport { getSupportLinkMapping } from \"../../LinksModal/mapping\";\nimport * as S from \"../MobileMenu/MobileMenu.styles\";\nimport * as S2 from \"./ProMobileMenu.styles\";\nimport type {\n NavigationProMobileMenuProps,\n ProMobileMenuSection,\n ProMobileMenuSectionItem,\n ProMobileMenuSectionSubItem,\n} from \"./ProMobileMenu.types\";\n\nconst motif: Motif = \"light\";\n\nexport const NavigationProMobileMenu = function NavigationProMobileMenu({\n translations,\n onClose,\n currentCountryName,\n handleStorePickerClick,\n // handleEarlyAccessClick,\n handleOrderHistoryClick,\n handlePurchaseHistoryClick,\n handleProductLineChange,\n productLineValue,\n productLineOptions,\n categories,\n hideExtraSection,\n}: NavigationProMobileMenuProps) {\n const { footerContent, socialContent } = useFooterContent();\n const { context } = useMenu();\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 // #############################################################################\n // Menu sections\n // #############################################################################\n const sections = useMemo((): ProMobileMenuSection[] => {\n const extraSectionItems: ProMobileMenuSectionItem[] = [\n {\n id: \"support\",\n label: translations.support,\n url: null,\n subItems: getSupportLinkMapping(context).map((item) => ({\n id: item.id,\n label: item.name,\n url: item.url,\n })),\n },\n {\n id: \"social\",\n label: translations.social,\n url: null,\n subItems: socialContent.items.map((item) => ({\n id: item.id,\n label: item.label,\n url: item.src,\n })),\n },\n ...(\n [\n { key: \"company\", label: translations.company },\n { key: \"training\", label: translations.training },\n { key: \"tools\", label: translations.tools },\n ] as const\n ).map(({ key, label }) => ({\n id: key,\n label,\n url: null,\n subItems: footerContent[key].items.map((item) => ({\n id: item.id,\n label: item.label,\n url: item.src,\n })),\n })),\n ];\n\n return [\n {\n id: \"store-link-stuff\",\n items: [\n handleOrderHistoryClick\n ? ({\n id: \"order-history\",\n label: translations.orderHistory,\n icon: {\n src: imageSrc(HistoryIcon),\n width: 16,\n height: 16,\n },\n url: null,\n onClick: handleOrderHistoryClick,\n subItems: [],\n } satisfies ProMobileMenuSectionItem)\n : null,\n handlePurchaseHistoryClick\n ? ({\n id: \"purchased-product-history\",\n label: translations.purchasedProductHistory,\n icon: {\n src: imageSrc(HistoryIcon),\n width: 16,\n height: 16,\n },\n url: null,\n onClick: handlePurchaseHistoryClick,\n subItems: [],\n } satisfies ProMobileMenuSectionItem)\n : null,\n ].filter(isNonNullish),\n },\n\n {\n id: \"categories\",\n items: categories.items.map((item) => ({\n ...item,\n // Prevent top level items to be links - the whole item acts as a dropdown\n // Unless it has no sub-items\n url: item.subItems.length ? null : item.url,\n })),\n },\n\n currentCountryName\n ? {\n id: \"country-selector\",\n items: [\n {\n id: \"current-country-name\",\n label: translations.region,\n value: currentCountryName,\n icon: {\n src: imageSrc(LocationPinIcon),\n width: 17,\n height: 17,\n },\n url: null,\n onClick: handleStorePickerClick,\n subItems: [],\n },\n ],\n }\n : null,\n\n ...(!hideExtraSection\n ? extraSectionItems.map((item) => ({\n id: `extra-${item.id}`,\n items: [item],\n }))\n : []),\n ].filter(isNonNullish);\n }, [\n translations.support,\n translations.social,\n translations.company,\n translations.training,\n translations.tools,\n translations.orderHistory,\n translations.purchasedProductHistory,\n translations.region,\n context,\n socialContent.items,\n handleOrderHistoryClick,\n handlePurchaseHistoryClick,\n categories.items,\n currentCountryName,\n handleStorePickerClick,\n hideExtraSection,\n footerContent,\n ]);\n\n // #############################################################################\n // Render helpers\n // #############################################################################\n const renderSectionItemIcon = useCallback(\n (item: ProMobileMenuSection[\"items\"][number]): React.ReactNode => {\n return (\n item.icon && (\n <S2.SectionItemIcon>\n <StyleableSvgImage\n src={item.icon.src}\n width={item.icon.width}\n height={item.icon.height}\n />\n </S2.SectionItemIcon>\n )\n );\n },\n [],\n );\n\n const renderSectionItemButton = useCallback(\n (\n item: ProMobileMenuSectionItem | ProMobileMenuSectionSubItem,\n ): React.ReactNode => {\n const IconNode = \"subItems\" in item && renderSectionItemIcon(item);\n const NewLabelNode =\n \"isNew\" in item && item.isNew ? (\n <S.NewLabel>{translations.new}</S.NewLabel>\n ) : null;\n const ValueNode = !!item.value && <div>{item.value}</div>;\n\n const target =\n \"targetBlank\" in item && item.targetBlank ? \"_blank\" : undefined;\n const url = item.url;\n\n if (!url) {\n return (\n <S2.ProSectionItemButton\n motif={motif}\n onClick={(e) => {\n if (\"subItems\" in item && item.subItems.length) {\n toggleExpandedSectionItemId(item.id);\n } else {\n // On click callback only when not as a dropdown trigger\n item.onClick?.(e, url);\n onClose();\n }\n }}\n >\n <S2.ButtonContent>\n {IconNode}\n {item.label}\n {NewLabelNode}\n </S2.ButtonContent>\n {ValueNode}\n </S2.ProSectionItemButton>\n );\n }\n\n return (\n <S.SectionItemButton\n motif={motif}\n onClick={(e) => {\n item.onClick?.(e, url);\n onClose();\n }}\n {...(typeof url === \"string\"\n ? {\n as: \"a\",\n href: url,\n target,\n }\n : {})}\n >\n <S2.ButtonContent>\n {IconNode}\n {item.label}\n {NewLabelNode}\n </S2.ButtonContent>\n {ValueNode}\n </S.SectionItemButton>\n );\n },\n [\n onClose,\n renderSectionItemIcon,\n toggleExpandedSectionItemId,\n translations.new,\n ],\n );\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S2.Wrap motif={motif}>\n <S.Container size=\"mobile\" noVerticalMargin>\n <S.InnerWrap>\n {/* Product line */}\n {!!productLineOptions?.length && (\n <S2.ButtonGroup>\n {productLineOptions.map((option) => (\n <S2.CustomButton\n full\n key={option.value}\n variant=\"gray\"\n $active={option.value === productLineValue}\n onClick={() => {\n handleProductLineChange?.(option.value);\n onClose();\n }}\n >\n {option.label}\n </S2.CustomButton>\n ))}\n </S2.ButtonGroup>\n )}\n\n {/* Sections */}\n {sections.map((section) => (\n <S.Section motif={motif} key={section.id}>\n {section.items.map((item) => (\n <S.SectionItemsGroup\n motif={motif}\n key={item.id}\n $active={item.id === expandedSectionItemId}\n >\n <S.SectionItem motif={motif}>\n {renderSectionItemButton(item)}\n\n {item.subItems.length > 0 && (\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 />\n </S.ButtonIcon>\n </S.SectionItemArrowButton>\n )}\n </S.SectionItem>\n\n {item.id === expandedSectionItemId &&\n item.subItems.length > 0 &&\n item.subItems.map((subItem) => (\n <S.SectionItem key={subItem.id} motif={motif} $secondary>\n {renderSectionItemButton(subItem)}\n </S.SectionItem>\n ))}\n </S.SectionItemsGroup>\n ))}\n </S.Section>\n ))}\n </S.InnerWrap>\n </S.Container>\n </S2.Wrap>\n );\n};\n"],"names":["motif","NavigationProMobileMenu","NavigationProMobileMenu2","translations","onClose","currentCountryName","handleStorePickerClick","handleOrderHistoryClick","handlePurchaseHistoryClick","handleProductLineChange","productLineValue","productLineOptions","categories","hideExtraSection","footerContent","socialContent","useFooterContent","context","useMenu","expandedSectionItemId","setExpandedSectionItemId","useState","toggleExpandedSectionItemId","useCallback","itemId","sections","useMemo","extraSectionItems","id","label","support","url","subItems","getSupportLinkMapping","map","item","name","social","items","src","key","company","training","tools","orderHistory","icon","imageSrc","HistoryIcon","width","height","onClick","purchasedProductHistory","filter","isNonNullish","length","region","value","LocationPinIcon","renderSectionItemIcon","jsx","S2.SectionItemIcon","children","StyleableSvgImage","renderSectionItemButton","IconNode","NewLabelNode","isNew","S.NewLabel","NewLabel","new","ValueNode","target","targetBlank","jsxs","S2.ProSectionItemButton","ProSectionItemButton","e","S2.ButtonContent","S.SectionItemButton","SectionItemButton","as","href","S2.Wrap","S.Container","size","noVerticalMargin","S.InnerWrap","S2.ButtonGroup","option","S2.CustomButton","CustomButton","full","variant","$active","section","S.Section","S.SectionItemsGroup","SectionItemsGroup","S.SectionItem","SectionItem","S.SectionItemArrowButton","SectionItemArrowButton","S.ButtonIcon","icons.generic.collapseArrow","subItem","$secondary"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBA,MAAMA,KAAe,GAAA,OAAA;AAER,MAAAC,uBAAA,GAA0B,SAASA,wBAAwBC,CAAA;EACtEC,YAAA;EACAC,OAAA;EACAC,kBAAA;EACAC,sBAAA;EAAA;EAEAC,uBAAA;EACAC,0BAAA;EACAC,uBAAA;EACAC,gBAAA;EACAC,kBAAA;EACAC,UAAA;EACAC;AACF,CAAiC,EAAA;EAC/B,MAAM;IAAEC,aAAA;IAAeC;EAAc,CAAA,GAAIC,gBAAiB,CAAAA,gBAAA,CAAA,CAAA;EACpD,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