@ubnt/store.core 9.20.0-alpha.8 → 9.20.0

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 (950) hide show
  1. package/CHANGELOG.md +3 -231
  2. package/lib/_virtual/_virtual_multi-entry.js +42 -61
  3. package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
  4. package/lib/_virtual/_virtual_multi-entry.mjs +40 -48
  5. package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
  6. package/lib/assets/attention.svg +5 -5
  7. package/lib/assets/attention2.svg +5 -5
  8. package/lib/assets/close.svg +4 -1
  9. package/lib/assets/close2.svg +1 -4
  10. package/lib/{components/ModelCompareV3/assets/WiFi/mega-capacity.jpg.js → assets/icons/menu/icon-globe.svg.js} +6 -6
  11. package/lib/assets/icons/menu/icon-globe.svg.js.map +1 -0
  12. package/lib/assets/icons/menu/icon-globe.svg.mjs +3 -0
  13. package/lib/assets/icons/menu/icon-globe.svg.mjs.map +1 -0
  14. package/lib/assets/icons/wizard/plus.svg.js +1 -1
  15. package/lib/assets/icons/wizard/plus.svg.mjs +2 -2
  16. package/lib/assets/industrial.jpg +0 -0
  17. package/lib/assets/minus4.svg +8 -8
  18. package/lib/assets/minus5.svg +8 -8
  19. package/lib/assets/plus.svg +22 -4
  20. package/lib/assets/plus2.svg +4 -22
  21. package/lib/assets/plus5.svg +9 -9
  22. package/lib/assets/plus6.svg +9 -9
  23. package/lib/assets/udmPro.jpg +0 -0
  24. package/lib/assets/udmPro2.jpg +0 -0
  25. package/lib/assets/udmProMax.jpg +0 -0
  26. package/lib/assets/udmProMax2.jpg +0 -0
  27. package/lib/assets/udmProSpecial.jpg +0 -0
  28. package/lib/assets/udmProSpecial2.jpg +0 -0
  29. package/lib/components/Button/CartButton.d.ts +1 -3
  30. package/lib/components/Button/CartButton.js +2 -4
  31. package/lib/components/Button/CartButton.js.map +1 -1
  32. package/lib/components/Button/CartButton.mjs +2 -4
  33. package/lib/components/Button/CartButton.mjs.map +1 -1
  34. package/lib/components/CategoryTabs/CategoryTabs.styles.d.ts +1 -1
  35. package/lib/components/CategoryTabs/CategoryTabs.styles.js +3 -2
  36. package/lib/components/CategoryTabs/CategoryTabs.styles.js.map +1 -1
  37. package/lib/components/CategoryTabs/CategoryTabs.styles.mjs +3 -2
  38. package/lib/components/CategoryTabs/CategoryTabs.styles.mjs.map +1 -1
  39. package/lib/components/Compare/Compare.styles.d.ts +5 -5
  40. package/lib/components/Container/Container.d.ts +1 -1
  41. package/lib/components/Container/Container.js +3 -4
  42. package/lib/components/Container/Container.js.map +1 -1
  43. package/lib/components/Container/Container.mjs +4 -5
  44. package/lib/components/Container/Container.mjs.map +1 -1
  45. package/lib/components/CustomImage/CustomImage.js +1 -1
  46. package/lib/components/CustomImage/CustomImage.mjs +1 -1
  47. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.js +1 -1
  48. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.mjs +1 -1
  49. package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +1 -1
  50. package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
  51. package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +1 -1
  52. package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +2 -2
  53. package/lib/components/FeaturesSection_deprecated/assets/plus.svg.js +1 -1
  54. package/lib/components/FeaturesSection_deprecated/assets/plus.svg.mjs +2 -2
  55. package/lib/components/GridGallery/GridModal/GridModal.js +1 -1
  56. package/lib/components/GridGallery/GridModal/GridModal.mjs +1 -1
  57. package/lib/components/Header/AccountMenu/AccountMenu.js +4 -14
  58. package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
  59. package/lib/components/Header/AccountMenu/AccountMenu.mjs +5 -15
  60. package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
  61. package/lib/components/Header/AccountMenu/AccountMenu.styles.d.ts +3 -3
  62. package/lib/components/Header/CartModalV2/CartModal.js +1 -1
  63. package/lib/components/Header/CartModalV2/CartModal.mjs +1 -1
  64. package/lib/components/Header/CartModalV2/Item/Item.styles.d.ts +1 -1
  65. package/lib/components/Header/Header.js +16 -16
  66. package/lib/components/Header/Header.js.map +1 -1
  67. package/lib/components/Header/Header.mjs +13 -13
  68. package/lib/components/Header/Header.mjs.map +1 -1
  69. package/lib/components/Header/Header.styles.d.ts +2 -2
  70. package/lib/components/Header/Header.types.d.ts +4 -12
  71. package/lib/components/Header/Header.types.js +1 -2
  72. package/lib/components/Header/Header.types.js.map +1 -1
  73. package/lib/components/Header/Header.types.mjs +1 -2
  74. package/lib/components/Header/Header.types.mjs.map +1 -1
  75. package/lib/components/Header/IsolatedHeader.js +3 -3
  76. package/lib/components/Header/IsolatedHeader.js.map +1 -1
  77. package/lib/components/Header/IsolatedHeader.mjs +2 -2
  78. package/lib/components/Header/IsolatedHeader.mjs.map +1 -1
  79. package/lib/components/Header/MenuItem/MenuItem.styles.d.ts +1 -1
  80. package/lib/components/Header/MenuItem/MenuItem.styles.js +3 -3
  81. package/lib/components/Header/MenuItem/MenuItem.styles.js.map +1 -1
  82. package/lib/components/Header/MenuItem/MenuItem.styles.mjs +3 -3
  83. package/lib/components/Header/MenuItem/MenuItem.styles.mjs.map +1 -1
  84. package/lib/components/Header/MenuItem/MenuItem.types.d.ts +0 -1
  85. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.d.ts +1 -1
  86. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.js +5 -7
  87. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.js.map +1 -1
  88. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.mjs +5 -7
  89. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.mjs.map +1 -1
  90. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.d.ts +1 -1
  91. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.d.ts +1 -1
  92. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +101 -101
  93. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
  94. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +101 -101
  95. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
  96. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +0 -9
  97. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js +1 -15
  98. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js.map +1 -1
  99. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs +2 -13
  100. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs.map +1 -1
  101. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +4 -10
  102. package/lib/components/Header/ProHeader/ProHeader.d.ts +4 -3
  103. package/lib/components/Header/ProHeader/ProHeader.js +125 -258
  104. package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
  105. package/lib/components/Header/ProHeader/ProHeader.mjs +127 -258
  106. package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
  107. package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +1 -4
  108. package/lib/components/Header/ProHeader/ProHeader.styles.js +17 -23
  109. package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
  110. package/lib/components/Header/ProHeader/ProHeader.styles.mjs +18 -21
  111. package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
  112. package/lib/components/Header/translations/ar.json.js +1 -4
  113. package/lib/components/Header/translations/ar.json.js.map +1 -1
  114. package/lib/components/Header/translations/ar.json.mjs +2 -4
  115. package/lib/components/Header/translations/ar.json.mjs.map +1 -1
  116. package/lib/components/Header/translations/de.json.js +1 -4
  117. package/lib/components/Header/translations/de.json.js.map +1 -1
  118. package/lib/components/Header/translations/de.json.mjs +2 -4
  119. package/lib/components/Header/translations/de.json.mjs.map +1 -1
  120. package/lib/components/Header/translations/el.json.js +1 -4
  121. package/lib/components/Header/translations/el.json.js.map +1 -1
  122. package/lib/components/Header/translations/el.json.mjs +2 -4
  123. package/lib/components/Header/translations/el.json.mjs.map +1 -1
  124. package/lib/components/Header/translations/en.json.js +1 -4
  125. package/lib/components/Header/translations/en.json.js.map +1 -1
  126. package/lib/components/Header/translations/en.json.mjs +2 -4
  127. package/lib/components/Header/translations/en.json.mjs.map +1 -1
  128. package/lib/components/Header/translations/es.json.js +1 -4
  129. package/lib/components/Header/translations/es.json.js.map +1 -1
  130. package/lib/components/Header/translations/es.json.mjs +2 -4
  131. package/lib/components/Header/translations/es.json.mjs.map +1 -1
  132. package/lib/components/Header/translations/fr.json.js +1 -4
  133. package/lib/components/Header/translations/fr.json.js.map +1 -1
  134. package/lib/components/Header/translations/fr.json.mjs +2 -4
  135. package/lib/components/Header/translations/fr.json.mjs.map +1 -1
  136. package/lib/components/Header/translations/it.json.js +1 -4
  137. package/lib/components/Header/translations/it.json.js.map +1 -1
  138. package/lib/components/Header/translations/it.json.mjs +2 -4
  139. package/lib/components/Header/translations/it.json.mjs.map +1 -1
  140. package/lib/components/Header/translations/ja.json.js +1 -4
  141. package/lib/components/Header/translations/ja.json.js.map +1 -1
  142. package/lib/components/Header/translations/ja.json.mjs +2 -4
  143. package/lib/components/Header/translations/ja.json.mjs.map +1 -1
  144. package/lib/components/Header/translations/pt-BR.json.js +1 -4
  145. package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
  146. package/lib/components/Header/translations/pt-BR.json.mjs +2 -4
  147. package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
  148. package/lib/components/Header/translations/zh-Hans.json.js +1 -4
  149. package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
  150. package/lib/components/Header/translations/zh-Hans.json.mjs +2 -4
  151. package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
  152. package/lib/components/Header/translations/zh-Hant-TW.json.js +1 -4
  153. package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
  154. package/lib/components/Header/translations/zh-Hant-TW.json.mjs +2 -4
  155. package/lib/components/Header/translations/zh-Hant-TW.json.mjs.map +1 -1
  156. package/lib/components/Hero/Hero.styles.d.ts +2 -2
  157. package/lib/components/HeroFadeGallery/HeroFadeGallery.styles.d.ts +1 -1
  158. package/lib/components/HowToUseSection/HowToUseSection.styles.d.ts +2 -2
  159. package/lib/components/InputSelect/InputSelect.styles.d.ts +1 -1
  160. package/lib/components/LandingPage/Cards/Cards.js +4 -4
  161. package/lib/components/LandingPage/Cards/Cards.js.map +1 -1
  162. package/lib/components/LandingPage/Cards/Cards.mjs +3 -3
  163. package/lib/components/LandingPage/Cards/Cards.mjs.map +1 -1
  164. package/lib/components/LandingPagePro/LandingPagePro.d.ts +0 -3
  165. package/lib/components/LandingPagePro/LandingPagePro.js +3 -3
  166. package/lib/components/LandingPagePro/LandingPagePro.js.map +1 -1
  167. package/lib/components/LandingPagePro/LandingPagePro.mjs +2 -2
  168. package/lib/components/LandingPagePro/LandingPagePro.mjs.map +1 -1
  169. package/lib/components/LandingPagePro/LandingPagePro.styles.d.ts +1 -1
  170. package/lib/components/LandingPageSidebar/LandingPageSidebar.js +1 -1
  171. package/lib/components/LandingPageSidebar/LandingPageSidebar.mjs +1 -1
  172. package/lib/components/LayoutRenderer/LayoutRenderer.styles.d.ts +1 -1
  173. package/lib/components/LayoutRendererV1/LayoutRenderer.styles.d.ts +3 -3
  174. package/lib/components/LayoutRendererV2/LayoutRenderer.styles.d.ts +3 -3
  175. package/lib/components/MicrositeSectionWrap/MicrositeSectionWrap.styles.d.ts +1 -1
  176. package/lib/components/MobileModal/MobileModal.js +1 -1
  177. package/lib/components/MobileModal/MobileModal.js.map +1 -1
  178. package/lib/components/MobileModal/MobileModal.mjs +1 -1
  179. package/lib/components/MobileModal/MobileModal.mjs.map +1 -1
  180. package/lib/{assets/icons → components/MobileModal/assets}/arrowDown.svg.js +1 -1
  181. package/lib/components/MobileModal/assets/arrowDown.svg.mjs +3 -0
  182. package/lib/components/ModelCompareV3/ModelCompareV3.types.d.ts +0 -4
  183. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
  184. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
  185. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
  186. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
  187. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
  188. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
  189. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.js +1 -1
  190. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.mjs +2 -2
  191. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.js +1 -1
  192. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.mjs +2 -2
  193. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
  194. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
  195. package/lib/components/ModelCompareV3/assets/Switching/industrial.jpg.js +1 -1
  196. package/lib/components/ModelCompareV3/assets/Switching/industrial.jpg.mjs +2 -2
  197. package/lib/components/ModelCompareV3/data/CloudGateways.js +9 -9
  198. package/lib/components/ModelCompareV3/data/CloudGateways.mjs +6 -6
  199. package/lib/components/ModelCompareV3/data/index.d.ts +17 -18
  200. package/lib/components/ModelCompareV3/data/index.js +34 -37
  201. package/lib/components/ModelCompareV3/data/index.js.map +1 -1
  202. package/lib/components/ModelCompareV3/data/index.mjs +34 -37
  203. package/lib/components/ModelCompareV3/data/index.mjs.map +1 -1
  204. package/lib/components/ModelCompareV3/data/products/industrial.js +1 -1
  205. package/lib/components/ModelCompareV3/data/products/industrial.mjs +1 -1
  206. package/lib/components/ModelCompareV3/data/products/udmPro.js +1 -1
  207. package/lib/components/ModelCompareV3/data/products/udmPro.mjs +1 -1
  208. package/lib/components/ModelCompareV3/data/products/udmProMax.js +1 -1
  209. package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +1 -1
  210. package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +1 -1
  211. package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +1 -1
  212. package/lib/components/ModelCompareV3/data/products/udw.js +0 -1
  213. package/lib/components/ModelCompareV3/data/products/udw.js.map +1 -1
  214. package/lib/components/ModelCompareV3/data/products/udw.mjs +0 -1
  215. package/lib/components/ModelCompareV3/data/products/udw.mjs.map +1 -1
  216. package/lib/components/ModelCompareV3/translations/en.json.js +7 -60
  217. package/lib/components/ModelCompareV3/translations/en.json.js.map +1 -1
  218. package/lib/components/ModelCompareV3/translations/en.json.mjs +7 -60
  219. package/lib/components/ModelCompareV3/translations/en.json.mjs.map +1 -1
  220. package/lib/components/ModelCompareV3/translations/useModelCompareTranslation.d.ts +2 -2
  221. package/lib/components/ProductCardPopup/ProductCardPopup.styles.d.ts +1 -1
  222. package/lib/components/ProductGrid/ProductGrid.styles.d.ts +1 -1
  223. package/lib/components/ProductRecommendedAccessories/ProductRecommendedAccessories.styles.d.ts +3 -3
  224. package/lib/components/ProductSectionNavigation/ProductSectionNavigation.styles.d.ts +1 -1
  225. package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.styles.d.ts +1 -1
  226. package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.d.ts +1 -1
  227. package/lib/components/ProductWizard/ProductWizard.js +1 -1
  228. package/lib/components/ProductWizard/ProductWizard.mjs +1 -1
  229. package/lib/components/QuantityInput/QuantityInput.js +1 -1
  230. package/lib/components/QuantityInput/QuantityInput.mjs +1 -1
  231. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js +17 -313
  232. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js.map +1 -1
  233. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs +17 -311
  234. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs.map +1 -1
  235. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.d.ts +2 -3
  236. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js +0 -2
  237. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js.map +1 -1
  238. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs +0 -2
  239. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs.map +1 -1
  240. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js +34 -120
  241. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js.map +1 -1
  242. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.mjs +34 -120
  243. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.mjs.map +1 -1
  244. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.d.ts +2 -16
  245. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.js +12 -54
  246. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.js.map +1 -1
  247. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.mjs +11 -50
  248. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.mjs.map +1 -1
  249. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/assets/ArrowLeftPrimary.svg.js +5 -5
  250. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/assets/ArrowRightPrimary.svg.js +5 -5
  251. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +2 -2
  252. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js.map +1 -1
  253. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +2 -2
  254. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs.map +1 -1
  255. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.js +0 -2
  256. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.js.map +1 -1
  257. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.mjs +0 -2
  258. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.mjs.map +1 -1
  259. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +2 -2
  260. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
  261. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.js +1 -1
  262. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.mjs +2 -2
  263. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
  264. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
  265. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
  266. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
  267. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +1 -1
  268. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs +1 -1
  269. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.js +1 -1
  270. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.mjs +2 -2
  271. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js +1 -1
  272. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js.map +1 -1
  273. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.mjs +1 -1
  274. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.mjs.map +1 -1
  275. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +4 -4
  276. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js.map +1 -1
  277. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +4 -4
  278. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs.map +1 -1
  279. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
  280. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
  281. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
  282. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
  283. package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +2 -1
  284. package/lib/components/ResourceCalculatorV1/ResourceCalculator.js.map +1 -1
  285. package/lib/components/ResourceCalculatorV1/ResourceCalculator.mjs +2 -1
  286. package/lib/components/ResourceCalculatorV1/ResourceCalculator.mjs.map +1 -1
  287. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.d.ts +1 -1
  288. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.js +1 -3
  289. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.js.map +1 -0
  290. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.mjs +1 -3
  291. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.mjs.map +1 -0
  292. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.styles.d.ts +0 -1
  293. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.styles.js +7 -10
  294. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.js.map +1 -0
  295. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.styles.mjs +7 -10
  296. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.mjs.map +1 -0
  297. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.types.d.ts +0 -1
  298. package/lib/components/ResourceCalculatorV1/components/index.d.ts +1 -0
  299. package/lib/components/ResourceCalculatorV1/components/index.js +5 -0
  300. package/lib/components/{Header/Navigation/ProMenu → ResourceCalculatorV1/components}/index.js.map +1 -1
  301. package/lib/components/{MicrositeHeader/components/Navigation → ResourceCalculatorV1/components}/index.mjs +1 -1
  302. package/lib/components/ResourceCalculatorV1/translations/en.json.js +4 -6
  303. package/lib/components/ResourceCalculatorV1/translations/en.json.js.map +1 -1
  304. package/lib/components/ResourceCalculatorV1/translations/en.json.mjs +4 -6
  305. package/lib/components/ResourceCalculatorV1/translations/en.json.mjs.map +1 -1
  306. package/lib/components/ResourceCalculatorV1/translations/useResourceCalculatorTranslation.d.ts +2 -2
  307. package/lib/components/Search/Input/Input.js +1 -1
  308. package/lib/components/Search/Input/Input.mjs +1 -1
  309. package/lib/components/Tooltip/Tooltip.styles.d.ts +5 -5
  310. package/lib/components/VariantSelectorV1/VariantSelector.styles.d.ts +3 -3
  311. package/lib/components/VariantSelectorV2/VariantSelector.styles.d.ts +3 -3
  312. package/lib/components/index.d.ts +0 -2
  313. package/lib/components/index.js +30 -34
  314. package/lib/components/index.js.map +1 -1
  315. package/lib/components/index.mjs +30 -34
  316. package/lib/components/index.mjs.map +1 -1
  317. package/lib/constants/icons/generic/carouselArrowRight.svg.js +5 -5
  318. package/lib/constants/icons/generic/close.svg.js +1 -1
  319. package/lib/constants/icons/generic/close.svg.mjs +2 -2
  320. package/lib/constants/icons/generic/index.js +4 -4
  321. package/lib/constants/icons/generic/index.mjs +1 -1
  322. package/lib/constants/icons/header/account.svg.js +5 -5
  323. package/lib/constants/icons/header/globe.svg.js +5 -5
  324. package/lib/constants/icons/header/index.js +9 -9
  325. package/lib/constants/icons/header/logoUnifi.svg.js +5 -5
  326. package/lib/constants/icons/menu/index.d.ts +0 -3
  327. package/lib/constants/icons/menu/index.js +0 -27
  328. package/lib/constants/icons/menu/index.js.map +1 -1
  329. package/lib/constants/icons/menu/index.mjs +0 -6
  330. package/lib/constants/icons/menu/index.mjs.map +1 -1
  331. package/lib/constants/icons/options/colors/black.svg.js +5 -5
  332. package/lib/constants/icons/options/colors/index.js +3 -3
  333. package/lib/constants/icons/options/styles/black.svg.js +5 -5
  334. package/lib/constants/icons/options/styles/index.js +3 -3
  335. package/lib/constants/optionIcons.js +6 -6
  336. package/lib/constants/optionIcons.mjs +4 -4
  337. package/lib/constants/proStoreCategories/mapping/index.d.ts +0 -1
  338. package/lib/constants/proStoreCategories/mapping/index.js +49 -54
  339. package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
  340. package/lib/constants/proStoreCategories/mapping/index.mjs +49 -54
  341. package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
  342. package/lib/constants/proStoreCategories/mapping/unifi.d.ts +1 -2
  343. package/lib/constants/proStoreCategories/mapping/unifi.js +0 -1
  344. package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
  345. package/lib/constants/proStoreCategories/mapping/unifi.mjs +0 -1
  346. package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
  347. package/lib/constants/proStoreCategories/translations/en.json.js +0 -3
  348. package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
  349. package/lib/constants/proStoreCategories/translations/en.json.mjs +1 -3
  350. package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
  351. package/lib/constants/proStoreCategories/translations/fr.json.js +1 -1
  352. package/lib/constants/proStoreCategories/translations/fr.json.mjs +1 -1
  353. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +1 -1
  354. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +1 -1
  355. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +1 -1
  356. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +1 -1
  357. package/lib/constants/theme.js +0 -4
  358. package/lib/constants/theme.js.map +1 -1
  359. package/lib/constants/theme.mjs +0 -4
  360. package/lib/constants/theme.mjs.map +1 -1
  361. package/lib/contexts/MenuContext/context.js +1 -1
  362. package/lib/contexts/MenuContext/context.js.map +1 -1
  363. package/lib/contexts/MenuContext/context.mjs +1 -1
  364. package/lib/contexts/MenuContext/context.mjs.map +1 -1
  365. package/lib/contexts/MenuContext/types.js.map +1 -1
  366. package/lib/contexts/MenuContext/types.mjs.map +1 -1
  367. package/lib/contexts/MenuContext/utils.d.ts +1 -6
  368. package/lib/contexts/MenuContext/utils.js +0 -16
  369. package/lib/contexts/MenuContext/utils.js.map +1 -1
  370. package/lib/contexts/MenuContext/utils.mjs +1 -16
  371. package/lib/contexts/MenuContext/utils.mjs.map +1 -1
  372. package/lib/contexts/index.d.ts +0 -1
  373. package/lib/contexts/index.js +0 -2
  374. package/lib/contexts/index.js.map +1 -1
  375. package/lib/contexts/index.mjs +0 -2
  376. package/lib/contexts/index.mjs.map +1 -1
  377. package/lib/helpers/index.d.ts +0 -1
  378. package/lib/helpers/index.js +0 -11
  379. package/lib/helpers/index.js.map +1 -1
  380. package/lib/helpers/index.mjs +0 -1
  381. package/lib/helpers/index.mjs.map +1 -1
  382. package/lib/helpers/ux.d.ts +1 -9
  383. package/lib/helpers/ux.js +0 -15
  384. package/lib/helpers/ux.js.map +1 -1
  385. package/lib/helpers/ux.mjs +1 -15
  386. package/lib/helpers/ux.mjs.map +1 -1
  387. package/lib/types/index.d.ts +0 -1
  388. package/lib/types/index.js +0 -2
  389. package/lib/types/index.js.map +1 -1
  390. package/lib/types/index.mjs +0 -1
  391. package/lib/types/index.mjs.map +1 -1
  392. package/lib/utils/array.d.ts +0 -4
  393. package/lib/utils/array.js +0 -10
  394. package/lib/utils/array.js.map +1 -1
  395. package/lib/utils/array.mjs +1 -10
  396. package/lib/utils/array.mjs.map +1 -1
  397. package/lib/utils/money/constants.d.ts +25 -56
  398. package/lib/utils/money/constants.js +7 -72
  399. package/lib/utils/money/constants.js.map +1 -1
  400. package/lib/utils/money/constants.mjs +7 -70
  401. package/lib/utils/money/constants.mjs.map +1 -1
  402. package/lib/utils/money/format.d.ts +5 -10
  403. package/lib/utils/money/format.js +14 -22
  404. package/lib/utils/money/format.js.map +1 -1
  405. package/lib/utils/money/format.mjs +16 -23
  406. package/lib/utils/money/format.mjs.map +1 -1
  407. package/lib/utils/money/index.d.ts +1 -4
  408. package/lib/utils/money/index.js +8 -26
  409. package/lib/utils/money/index.js.map +1 -1
  410. package/lib/utils/money/index.mjs +4 -8
  411. package/lib/utils/money/index.mjs.map +1 -1
  412. package/lib/utils/money/misc.d.ts +28 -68
  413. package/lib/utils/money/misc.js +64 -35
  414. package/lib/utils/money/misc.js.map +1 -1
  415. package/lib/utils/money/misc.mjs +43 -32
  416. package/lib/utils/money/misc.mjs.map +1 -1
  417. package/lib/utils/money/tax.d.ts +2 -38
  418. package/lib/utils/money/tax.js +10 -46
  419. package/lib/utils/money/tax.js.map +1 -1
  420. package/lib/utils/money/tax.mjs +11 -42
  421. package/lib/utils/money/tax.mjs.map +1 -1
  422. package/lib/utils/money/types.d.ts +3 -78
  423. package/lib/utils/number.d.ts +1 -1
  424. package/lib/utils/number.js +1 -1
  425. package/lib/utils/number.js.map +1 -1
  426. package/lib/utils/number.mjs +1 -1
  427. package/lib/utils/number.mjs.map +1 -1
  428. package/lib/utils/validations.d.ts +15 -0
  429. package/lib/utils/validations.js +23 -0
  430. package/lib/utils/validations.js.map +1 -0
  431. package/lib/utils/validations.mjs +21 -0
  432. package/lib/utils/validations.mjs.map +1 -0
  433. package/package.json +10 -10
  434. package/lib/assets/aggregation.png +0 -0
  435. package/lib/assets/bullet.png +0 -0
  436. package/lib/assets/camera-special-devices.png +0 -0
  437. package/lib/assets/cloud-gateway-overview.png +0 -0
  438. package/lib/assets/compact-switching.png +0 -0
  439. package/lib/assets/compact.png +0 -0
  440. package/lib/assets/consolidatedSpecialDevices.svg +0 -5
  441. package/lib/assets/digital-signage.png +0 -0
  442. package/lib/assets/dome-turret.png +0 -0
  443. package/lib/assets/door-access.png +0 -0
  444. package/lib/assets/doorAccess.svg +0 -5
  445. package/lib/assets/education.jpg +0 -0
  446. package/lib/assets/efg.png +0 -0
  447. package/lib/assets/enterprise-scale.png +0 -0
  448. package/lib/assets/enterprise.jpg +0 -0
  449. package/lib/assets/ev-charging.png +0 -0
  450. package/lib/assets/flagship.jpg +0 -0
  451. package/lib/assets/flexible-outdoor.jpg +0 -0
  452. package/lib/assets/gbe-1u-2.5and10.png +0 -0
  453. package/lib/assets/gbe-1u.png +0 -0
  454. package/lib/assets/hospitality.jpg +0 -0
  455. package/lib/assets/how-it-works.jpg +0 -0
  456. package/lib/assets/icon-location-pin.svg +0 -5
  457. package/lib/assets/icons/arrowDown.svg.mjs +0 -3
  458. package/lib/assets/icons/menu/icon-location-pin.svg.js +0 -27
  459. package/lib/assets/icons/menu/icon-location-pin.svg.js.map +0 -1
  460. package/lib/assets/icons/menu/icon-location-pin.svg.mjs +0 -3
  461. package/lib/assets/icons/menu/icon-location-pin.svg.mjs.map +0 -1
  462. package/lib/assets/icons/zoomOut.svg.js +0 -27
  463. package/lib/assets/icons/zoomOut.svg.js.map +0 -1
  464. package/lib/assets/icons/zoomOut.svg.mjs +0 -3
  465. package/lib/assets/icons/zoomOut.svg.mjs.map +0 -1
  466. package/lib/assets/industrial2.jpg +0 -0
  467. package/lib/assets/large-scale.png +0 -0
  468. package/lib/assets/managed-voip.png +0 -0
  469. package/lib/assets/mega-capacity.jpg +0 -0
  470. package/lib/assets/mobile-routing.png +0 -0
  471. package/lib/assets/nextai-camera.jpg +0 -0
  472. package/lib/assets/nextai-cyber.jpg +0 -0
  473. package/lib/assets/overview.svg +0 -3
  474. package/lib/assets/premium-audio.png +0 -0
  475. package/lib/assets/ptz.png +0 -0
  476. package/lib/assets/retail.jpg +0 -0
  477. package/lib/assets/sd-wan-sase.jpg +0 -0
  478. package/lib/assets/security-overview.png +0 -0
  479. package/lib/assets/site-manager.jpg +0 -0
  480. package/lib/assets/stadium.jpg +0 -0
  481. package/lib/assets/switching-overview.png +0 -0
  482. package/lib/assets/tco-calculator.jpg +0 -0
  483. package/lib/assets/ucg-max.png +0 -0
  484. package/lib/assets/unifi-drive.png +0 -0
  485. package/lib/assets/video-recorders.png +0 -0
  486. package/lib/assets/wall.jpg +0 -0
  487. package/lib/assets/wifi-bridging.png +0 -0
  488. package/lib/assets/wifi-flagship.png +0 -0
  489. package/lib/assets/wifi-integrated.png +0 -0
  490. package/lib/assets/wifi-mega-capacity.png +0 -0
  491. package/lib/assets/wifi-outdoor.png +0 -0
  492. package/lib/assets/wifi-overview.png +0 -0
  493. package/lib/assets/wifi-wall.png +0 -0
  494. package/lib/assets/zoomOut.svg +0 -3
  495. package/lib/components/Header/Navigation/ProMenu/ProMenu.d.ts +0 -2
  496. package/lib/components/Header/Navigation/ProMenu/ProMenu.js +0 -103
  497. package/lib/components/Header/Navigation/ProMenu/ProMenu.js.map +0 -1
  498. package/lib/components/Header/Navigation/ProMenu/ProMenu.mjs +0 -81
  499. package/lib/components/Header/Navigation/ProMenu/ProMenu.mjs.map +0 -1
  500. package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.d.ts +0 -23
  501. package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.js +0 -121
  502. package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.js.map +0 -1
  503. package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.mjs +0 -106
  504. package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.mjs.map +0 -1
  505. package/lib/components/Header/Navigation/ProMenu/ProMenu.types.d.ts +0 -12
  506. package/lib/components/Header/Navigation/ProMenu/index.d.ts +0 -1
  507. package/lib/components/Header/Navigation/ProMenu/index.js +0 -6
  508. package/lib/components/Header/Navigation/ProMenu/index.mjs +0 -3
  509. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.js.map +0 -1
  510. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.mjs.map +0 -1
  511. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.js.map +0 -1
  512. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.mjs.map +0 -1
  513. package/lib/components/MicrositeHeader/MicrositeHeader.d.ts +0 -2
  514. package/lib/components/MicrositeHeader/MicrositeHeader.js +0 -28
  515. package/lib/components/MicrositeHeader/MicrositeHeader.js.map +0 -1
  516. package/lib/components/MicrositeHeader/MicrositeHeader.mjs +0 -26
  517. package/lib/components/MicrositeHeader/MicrositeHeader.mjs.map +0 -1
  518. package/lib/components/MicrositeHeader/MicrositeHeader.styles.d.ts +0 -2
  519. package/lib/components/MicrositeHeader/MicrositeHeader.types.d.ts +0 -5
  520. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.d.ts +0 -2
  521. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.js +0 -139
  522. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.js.map +0 -1
  523. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.mjs +0 -130
  524. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.mjs.map +0 -1
  525. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.d.ts +0 -59
  526. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.js +0 -424
  527. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.js.map +0 -1
  528. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.mjs +0 -389
  529. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.mjs.map +0 -1
  530. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.types.d.ts +0 -21
  531. package/lib/components/MicrositeHeader/components/DropdownMenu/index.d.ts +0 -1
  532. package/lib/components/MicrositeHeader/components/DropdownMenu/index.js +0 -6
  533. package/lib/components/MicrositeHeader/components/DropdownMenu/index.js.map +0 -1
  534. package/lib/components/MicrositeHeader/components/DropdownMenu/index.mjs +0 -3
  535. package/lib/components/MicrositeHeader/components/DropdownMenu/index.mjs.map +0 -1
  536. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.d.ts +0 -2
  537. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.d.ts +0 -22
  538. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.js +0 -148
  539. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.js.map +0 -1
  540. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.mjs +0 -126
  541. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.mjs.map +0 -1
  542. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.types.d.ts +0 -10
  543. package/lib/components/MicrositeHeader/components/FirstLevelMenu/index.d.ts +0 -1
  544. package/lib/components/MicrositeHeader/components/Navigation/Navigation.d.ts +0 -3
  545. package/lib/components/MicrositeHeader/components/Navigation/Navigation.js +0 -224
  546. package/lib/components/MicrositeHeader/components/Navigation/Navigation.js.map +0 -1
  547. package/lib/components/MicrositeHeader/components/Navigation/Navigation.mjs +0 -214
  548. package/lib/components/MicrositeHeader/components/Navigation/Navigation.mjs.map +0 -1
  549. package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.d.ts +0 -36
  550. package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.js +0 -232
  551. package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.js.map +0 -1
  552. package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.mjs +0 -210
  553. package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.mjs.map +0 -1
  554. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.d.ts +0 -8
  555. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.js +0 -47
  556. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.js.map +0 -1
  557. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.mjs +0 -39
  558. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.mjs.map +0 -1
  559. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.d.ts +0 -1
  560. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.js +0 -6
  561. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.js.map +0 -1
  562. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.mjs +0 -3
  563. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.mjs.map +0 -1
  564. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.d.ts +0 -5
  565. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.js +0 -92
  566. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.js.map +0 -1
  567. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.mjs +0 -84
  568. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.mjs.map +0 -1
  569. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.d.ts +0 -32
  570. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.js +0 -230
  571. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.js.map +0 -1
  572. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.mjs +0 -206
  573. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.mjs.map +0 -1
  574. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.d.ts +0 -1
  575. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.js +0 -6
  576. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.js.map +0 -1
  577. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.mjs +0 -3
  578. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.mjs.map +0 -1
  579. package/lib/components/MicrositeHeader/components/Navigation/index.d.ts +0 -1
  580. package/lib/components/MicrositeHeader/components/Navigation/index.js +0 -6
  581. package/lib/components/MicrositeHeader/components/Navigation/index.js.map +0 -1
  582. package/lib/components/MicrositeHeader/components/Navigation/index.mjs.map +0 -1
  583. package/lib/components/MicrositeHeader/components/SecondLevelMenu/SecondLevelMenu.d.ts +0 -2
  584. package/lib/components/MicrositeHeader/components/SecondLevelMenu/SecondLevelMenu.styles.d.ts +0 -13
  585. package/lib/components/MicrositeHeader/components/SecondLevelMenu/SecondLevelMenu.types.d.ts +0 -11
  586. package/lib/components/MicrositeHeader/components/SecondLevelMenu/index.d.ts +0 -1
  587. package/lib/components/MicrositeHeader/components/SiteMapColumns/SiteMapColumns.d.ts +0 -17
  588. package/lib/components/MicrositeHeader/components/SiteMapColumns/SiteMapColumns.styles.d.ts +0 -13
  589. package/lib/components/MicrositeHeader/components/SiteMapColumns/index.d.ts +0 -1
  590. package/lib/components/MicrositeHeader/index.d.ts +0 -1
  591. package/lib/components/MicrositeHeader/index.js +0 -6
  592. package/lib/components/MicrositeHeader/index.js.map +0 -1
  593. package/lib/components/MicrositeHeader/index.mjs +0 -3
  594. package/lib/components/MicrositeHeader/index.mjs.map +0 -1
  595. package/lib/components/ModelCompareV3/assets/WiFi/flagship.jpg.js +0 -27
  596. package/lib/components/ModelCompareV3/assets/WiFi/flagship.jpg.js.map +0 -1
  597. package/lib/components/ModelCompareV3/assets/WiFi/flagship.jpg.mjs +0 -3
  598. package/lib/components/ModelCompareV3/assets/WiFi/flagship.jpg.mjs.map +0 -1
  599. package/lib/components/ModelCompareV3/assets/WiFi/flexible-outdoor.jpg.js +0 -27
  600. package/lib/components/ModelCompareV3/assets/WiFi/flexible-outdoor.jpg.js.map +0 -1
  601. package/lib/components/ModelCompareV3/assets/WiFi/flexible-outdoor.jpg.mjs +0 -3
  602. package/lib/components/ModelCompareV3/assets/WiFi/flexible-outdoor.jpg.mjs.map +0 -1
  603. package/lib/components/ModelCompareV3/assets/WiFi/mega-capacity.jpg.js.map +0 -1
  604. package/lib/components/ModelCompareV3/assets/WiFi/mega-capacity.jpg.mjs +0 -3
  605. package/lib/components/ModelCompareV3/assets/WiFi/mega-capacity.jpg.mjs.map +0 -1
  606. package/lib/components/ModelCompareV3/assets/WiFi/wall.jpg.js +0 -27
  607. package/lib/components/ModelCompareV3/assets/WiFi/wall.jpg.js.map +0 -1
  608. package/lib/components/ModelCompareV3/assets/WiFi/wall.jpg.mjs +0 -3
  609. package/lib/components/ModelCompareV3/assets/WiFi/wall.jpg.mjs.map +0 -1
  610. package/lib/components/ModelCompareV3/data/WiFi.d.ts +0 -2
  611. package/lib/components/ModelCompareV3/data/WiFi.js +0 -23
  612. package/lib/components/ModelCompareV3/data/WiFi.js.map +0 -1
  613. package/lib/components/ModelCompareV3/data/WiFi.mjs +0 -21
  614. package/lib/components/ModelCompareV3/data/WiFi.mjs.map +0 -1
  615. package/lib/components/ModelCompareV3/data/products/wifiFlagship.d.ts +0 -2
  616. package/lib/components/ModelCompareV3/data/products/wifiFlagship.js +0 -70
  617. package/lib/components/ModelCompareV3/data/products/wifiFlagship.js.map +0 -1
  618. package/lib/components/ModelCompareV3/data/products/wifiFlagship.mjs +0 -62
  619. package/lib/components/ModelCompareV3/data/products/wifiFlagship.mjs.map +0 -1
  620. package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.d.ts +0 -2
  621. package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.js +0 -73
  622. package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.js.map +0 -1
  623. package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.mjs +0 -65
  624. package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.mjs.map +0 -1
  625. package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.d.ts +0 -2
  626. package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.js +0 -73
  627. package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.js.map +0 -1
  628. package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.mjs +0 -65
  629. package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.mjs.map +0 -1
  630. package/lib/components/ModelCompareV3/data/products/wifiWall.d.ts +0 -2
  631. package/lib/components/ModelCompareV3/data/products/wifiWall.js +0 -74
  632. package/lib/components/ModelCompareV3/data/products/wifiWall.js.map +0 -1
  633. package/lib/components/ModelCompareV3/data/products/wifiWall.mjs +0 -66
  634. package/lib/components/ModelCompareV3/data/products/wifiWall.mjs.map +0 -1
  635. package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.js +0 -27
  636. package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.js.map +0 -1
  637. package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.mjs +0 -3
  638. package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.mjs.map +0 -1
  639. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.js +0 -27
  640. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.js.map +0 -1
  641. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.mjs +0 -3
  642. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.mjs.map +0 -1
  643. package/lib/constants/icons/menu/consolidatedSpecialDevices.svg.js +0 -27
  644. package/lib/constants/icons/menu/consolidatedSpecialDevices.svg.js.map +0 -1
  645. package/lib/constants/icons/menu/consolidatedSpecialDevices.svg.mjs +0 -3
  646. package/lib/constants/icons/menu/consolidatedSpecialDevices.svg.mjs.map +0 -1
  647. package/lib/constants/icons/menu/doorAccess.svg.js +0 -27
  648. package/lib/constants/icons/menu/doorAccess.svg.js.map +0 -1
  649. package/lib/constants/icons/menu/doorAccess.svg.mjs +0 -3
  650. package/lib/constants/icons/menu/doorAccess.svg.mjs.map +0 -1
  651. package/lib/constants/icons/menu/overview.svg.js +0 -27
  652. package/lib/constants/icons/menu/overview.svg.js.map +0 -1
  653. package/lib/constants/icons/menu/overview.svg.mjs +0 -3
  654. package/lib/constants/icons/menu/overview.svg.mjs.map +0 -1
  655. package/lib/contexts/MicrositeMenuContext/assets/aggregation.png.js +0 -27
  656. package/lib/contexts/MicrositeMenuContext/assets/aggregation.png.js.map +0 -1
  657. package/lib/contexts/MicrositeMenuContext/assets/aggregation.png.mjs +0 -3
  658. package/lib/contexts/MicrositeMenuContext/assets/aggregation.png.mjs.map +0 -1
  659. package/lib/contexts/MicrositeMenuContext/assets/bullet.png.js +0 -27
  660. package/lib/contexts/MicrositeMenuContext/assets/bullet.png.js.map +0 -1
  661. package/lib/contexts/MicrositeMenuContext/assets/bullet.png.mjs +0 -3
  662. package/lib/contexts/MicrositeMenuContext/assets/bullet.png.mjs.map +0 -1
  663. package/lib/contexts/MicrositeMenuContext/assets/camera-special-devices.png.js +0 -27
  664. package/lib/contexts/MicrositeMenuContext/assets/camera-special-devices.png.js.map +0 -1
  665. package/lib/contexts/MicrositeMenuContext/assets/camera-special-devices.png.mjs +0 -3
  666. package/lib/contexts/MicrositeMenuContext/assets/camera-special-devices.png.mjs.map +0 -1
  667. package/lib/contexts/MicrositeMenuContext/assets/cloud-gateway-overview.png.js +0 -27
  668. package/lib/contexts/MicrositeMenuContext/assets/cloud-gateway-overview.png.js.map +0 -1
  669. package/lib/contexts/MicrositeMenuContext/assets/cloud-gateway-overview.png.mjs +0 -3
  670. package/lib/contexts/MicrositeMenuContext/assets/cloud-gateway-overview.png.mjs.map +0 -1
  671. package/lib/contexts/MicrositeMenuContext/assets/compact-switching.png.js +0 -27
  672. package/lib/contexts/MicrositeMenuContext/assets/compact-switching.png.js.map +0 -1
  673. package/lib/contexts/MicrositeMenuContext/assets/compact-switching.png.mjs +0 -3
  674. package/lib/contexts/MicrositeMenuContext/assets/compact-switching.png.mjs.map +0 -1
  675. package/lib/contexts/MicrositeMenuContext/assets/compact.png.js +0 -27
  676. package/lib/contexts/MicrositeMenuContext/assets/compact.png.js.map +0 -1
  677. package/lib/contexts/MicrositeMenuContext/assets/compact.png.mjs +0 -3
  678. package/lib/contexts/MicrositeMenuContext/assets/compact.png.mjs.map +0 -1
  679. package/lib/contexts/MicrositeMenuContext/assets/digital-signage.png.js +0 -27
  680. package/lib/contexts/MicrositeMenuContext/assets/digital-signage.png.js.map +0 -1
  681. package/lib/contexts/MicrositeMenuContext/assets/digital-signage.png.mjs +0 -3
  682. package/lib/contexts/MicrositeMenuContext/assets/digital-signage.png.mjs.map +0 -1
  683. package/lib/contexts/MicrositeMenuContext/assets/dome-turret.png.js +0 -27
  684. package/lib/contexts/MicrositeMenuContext/assets/dome-turret.png.js.map +0 -1
  685. package/lib/contexts/MicrositeMenuContext/assets/dome-turret.png.mjs +0 -3
  686. package/lib/contexts/MicrositeMenuContext/assets/dome-turret.png.mjs.map +0 -1
  687. package/lib/contexts/MicrositeMenuContext/assets/door-access.png.js +0 -27
  688. package/lib/contexts/MicrositeMenuContext/assets/door-access.png.js.map +0 -1
  689. package/lib/contexts/MicrositeMenuContext/assets/door-access.png.mjs +0 -3
  690. package/lib/contexts/MicrositeMenuContext/assets/door-access.png.mjs.map +0 -1
  691. package/lib/contexts/MicrositeMenuContext/assets/education.jpg.js +0 -27
  692. package/lib/contexts/MicrositeMenuContext/assets/education.jpg.js.map +0 -1
  693. package/lib/contexts/MicrositeMenuContext/assets/education.jpg.mjs +0 -3
  694. package/lib/contexts/MicrositeMenuContext/assets/education.jpg.mjs.map +0 -1
  695. package/lib/contexts/MicrositeMenuContext/assets/enterprise-scale.png.js +0 -27
  696. package/lib/contexts/MicrositeMenuContext/assets/enterprise-scale.png.js.map +0 -1
  697. package/lib/contexts/MicrositeMenuContext/assets/enterprise-scale.png.mjs +0 -3
  698. package/lib/contexts/MicrositeMenuContext/assets/enterprise-scale.png.mjs.map +0 -1
  699. package/lib/contexts/MicrositeMenuContext/assets/enterprise.jpg.js +0 -27
  700. package/lib/contexts/MicrositeMenuContext/assets/enterprise.jpg.js.map +0 -1
  701. package/lib/contexts/MicrositeMenuContext/assets/enterprise.jpg.mjs +0 -3
  702. package/lib/contexts/MicrositeMenuContext/assets/enterprise.jpg.mjs.map +0 -1
  703. package/lib/contexts/MicrositeMenuContext/assets/ev-charging.png.js +0 -27
  704. package/lib/contexts/MicrositeMenuContext/assets/ev-charging.png.js.map +0 -1
  705. package/lib/contexts/MicrositeMenuContext/assets/ev-charging.png.mjs +0 -3
  706. package/lib/contexts/MicrositeMenuContext/assets/ev-charging.png.mjs.map +0 -1
  707. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u-2.5and10.png.js +0 -27
  708. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u-2.5and10.png.js.map +0 -1
  709. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u-2.5and10.png.mjs +0 -3
  710. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u-2.5and10.png.mjs.map +0 -1
  711. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u.png.js +0 -27
  712. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u.png.js.map +0 -1
  713. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u.png.mjs +0 -3
  714. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u.png.mjs.map +0 -1
  715. package/lib/contexts/MicrositeMenuContext/assets/hospitality.jpg.js +0 -27
  716. package/lib/contexts/MicrositeMenuContext/assets/hospitality.jpg.js.map +0 -1
  717. package/lib/contexts/MicrositeMenuContext/assets/hospitality.jpg.mjs +0 -3
  718. package/lib/contexts/MicrositeMenuContext/assets/hospitality.jpg.mjs.map +0 -1
  719. package/lib/contexts/MicrositeMenuContext/assets/how-it-works.jpg.js +0 -27
  720. package/lib/contexts/MicrositeMenuContext/assets/how-it-works.jpg.js.map +0 -1
  721. package/lib/contexts/MicrositeMenuContext/assets/how-it-works.jpg.mjs +0 -3
  722. package/lib/contexts/MicrositeMenuContext/assets/how-it-works.jpg.mjs.map +0 -1
  723. package/lib/contexts/MicrositeMenuContext/assets/index.d.ts +0 -41
  724. package/lib/contexts/MicrositeMenuContext/assets/index.js +0 -45
  725. package/lib/contexts/MicrositeMenuContext/assets/index.js.map +0 -1
  726. package/lib/contexts/MicrositeMenuContext/assets/index.mjs +0 -43
  727. package/lib/contexts/MicrositeMenuContext/assets/index.mjs.map +0 -1
  728. package/lib/contexts/MicrositeMenuContext/assets/industrial.jpg.js +0 -27
  729. package/lib/contexts/MicrositeMenuContext/assets/industrial.jpg.js.map +0 -1
  730. package/lib/contexts/MicrositeMenuContext/assets/industrial.jpg.mjs +0 -3
  731. package/lib/contexts/MicrositeMenuContext/assets/industrial.jpg.mjs.map +0 -1
  732. package/lib/contexts/MicrositeMenuContext/assets/large-scale.png.js +0 -27
  733. package/lib/contexts/MicrositeMenuContext/assets/large-scale.png.js.map +0 -1
  734. package/lib/contexts/MicrositeMenuContext/assets/large-scale.png.mjs +0 -3
  735. package/lib/contexts/MicrositeMenuContext/assets/large-scale.png.mjs.map +0 -1
  736. package/lib/contexts/MicrositeMenuContext/assets/managed-voip.png.js +0 -27
  737. package/lib/contexts/MicrositeMenuContext/assets/managed-voip.png.js.map +0 -1
  738. package/lib/contexts/MicrositeMenuContext/assets/managed-voip.png.mjs +0 -3
  739. package/lib/contexts/MicrositeMenuContext/assets/managed-voip.png.mjs.map +0 -1
  740. package/lib/contexts/MicrositeMenuContext/assets/mobile-routing.png.js +0 -27
  741. package/lib/contexts/MicrositeMenuContext/assets/mobile-routing.png.js.map +0 -1
  742. package/lib/contexts/MicrositeMenuContext/assets/mobile-routing.png.mjs +0 -3
  743. package/lib/contexts/MicrositeMenuContext/assets/mobile-routing.png.mjs.map +0 -1
  744. package/lib/contexts/MicrositeMenuContext/assets/nextai-camera.jpg.js +0 -27
  745. package/lib/contexts/MicrositeMenuContext/assets/nextai-camera.jpg.js.map +0 -1
  746. package/lib/contexts/MicrositeMenuContext/assets/nextai-camera.jpg.mjs +0 -3
  747. package/lib/contexts/MicrositeMenuContext/assets/nextai-camera.jpg.mjs.map +0 -1
  748. package/lib/contexts/MicrositeMenuContext/assets/nextai-cyber.jpg.js +0 -27
  749. package/lib/contexts/MicrositeMenuContext/assets/nextai-cyber.jpg.js.map +0 -1
  750. package/lib/contexts/MicrositeMenuContext/assets/nextai-cyber.jpg.mjs +0 -3
  751. package/lib/contexts/MicrositeMenuContext/assets/nextai-cyber.jpg.mjs.map +0 -1
  752. package/lib/contexts/MicrositeMenuContext/assets/premium-audio.png.js +0 -27
  753. package/lib/contexts/MicrositeMenuContext/assets/premium-audio.png.js.map +0 -1
  754. package/lib/contexts/MicrositeMenuContext/assets/premium-audio.png.mjs +0 -3
  755. package/lib/contexts/MicrositeMenuContext/assets/premium-audio.png.mjs.map +0 -1
  756. package/lib/contexts/MicrositeMenuContext/assets/ptz.png.js +0 -27
  757. package/lib/contexts/MicrositeMenuContext/assets/ptz.png.js.map +0 -1
  758. package/lib/contexts/MicrositeMenuContext/assets/ptz.png.mjs +0 -3
  759. package/lib/contexts/MicrositeMenuContext/assets/ptz.png.mjs.map +0 -1
  760. package/lib/contexts/MicrositeMenuContext/assets/retail.jpg.js +0 -27
  761. package/lib/contexts/MicrositeMenuContext/assets/retail.jpg.js.map +0 -1
  762. package/lib/contexts/MicrositeMenuContext/assets/retail.jpg.mjs +0 -3
  763. package/lib/contexts/MicrositeMenuContext/assets/retail.jpg.mjs.map +0 -1
  764. package/lib/contexts/MicrositeMenuContext/assets/sd-wan-sase.jpg.js +0 -27
  765. package/lib/contexts/MicrositeMenuContext/assets/sd-wan-sase.jpg.js.map +0 -1
  766. package/lib/contexts/MicrositeMenuContext/assets/sd-wan-sase.jpg.mjs +0 -3
  767. package/lib/contexts/MicrositeMenuContext/assets/sd-wan-sase.jpg.mjs.map +0 -1
  768. package/lib/contexts/MicrositeMenuContext/assets/security-overview.png.js +0 -27
  769. package/lib/contexts/MicrositeMenuContext/assets/security-overview.png.js.map +0 -1
  770. package/lib/contexts/MicrositeMenuContext/assets/security-overview.png.mjs +0 -3
  771. package/lib/contexts/MicrositeMenuContext/assets/security-overview.png.mjs.map +0 -1
  772. package/lib/contexts/MicrositeMenuContext/assets/site-manager.jpg.js +0 -27
  773. package/lib/contexts/MicrositeMenuContext/assets/site-manager.jpg.js.map +0 -1
  774. package/lib/contexts/MicrositeMenuContext/assets/site-manager.jpg.mjs +0 -3
  775. package/lib/contexts/MicrositeMenuContext/assets/site-manager.jpg.mjs.map +0 -1
  776. package/lib/contexts/MicrositeMenuContext/assets/stadium.jpg.js +0 -27
  777. package/lib/contexts/MicrositeMenuContext/assets/stadium.jpg.js.map +0 -1
  778. package/lib/contexts/MicrositeMenuContext/assets/stadium.jpg.mjs +0 -3
  779. package/lib/contexts/MicrositeMenuContext/assets/stadium.jpg.mjs.map +0 -1
  780. package/lib/contexts/MicrositeMenuContext/assets/switching-overview.png.js +0 -27
  781. package/lib/contexts/MicrositeMenuContext/assets/switching-overview.png.js.map +0 -1
  782. package/lib/contexts/MicrositeMenuContext/assets/switching-overview.png.mjs +0 -3
  783. package/lib/contexts/MicrositeMenuContext/assets/switching-overview.png.mjs.map +0 -1
  784. package/lib/contexts/MicrositeMenuContext/assets/tco-calculator.jpg.js +0 -27
  785. package/lib/contexts/MicrositeMenuContext/assets/tco-calculator.jpg.js.map +0 -1
  786. package/lib/contexts/MicrositeMenuContext/assets/tco-calculator.jpg.mjs +0 -3
  787. package/lib/contexts/MicrositeMenuContext/assets/tco-calculator.jpg.mjs.map +0 -1
  788. package/lib/contexts/MicrositeMenuContext/assets/unifi-drive.png.js +0 -27
  789. package/lib/contexts/MicrositeMenuContext/assets/unifi-drive.png.js.map +0 -1
  790. package/lib/contexts/MicrositeMenuContext/assets/unifi-drive.png.mjs +0 -3
  791. package/lib/contexts/MicrositeMenuContext/assets/unifi-drive.png.mjs.map +0 -1
  792. package/lib/contexts/MicrositeMenuContext/assets/video-recorders.png.js +0 -27
  793. package/lib/contexts/MicrositeMenuContext/assets/video-recorders.png.js.map +0 -1
  794. package/lib/contexts/MicrositeMenuContext/assets/video-recorders.png.mjs +0 -3
  795. package/lib/contexts/MicrositeMenuContext/assets/video-recorders.png.mjs.map +0 -1
  796. package/lib/contexts/MicrositeMenuContext/assets/wifi-bridging.png.js +0 -27
  797. package/lib/contexts/MicrositeMenuContext/assets/wifi-bridging.png.js.map +0 -1
  798. package/lib/contexts/MicrositeMenuContext/assets/wifi-bridging.png.mjs +0 -3
  799. package/lib/contexts/MicrositeMenuContext/assets/wifi-bridging.png.mjs.map +0 -1
  800. package/lib/contexts/MicrositeMenuContext/assets/wifi-flagship.png.js +0 -27
  801. package/lib/contexts/MicrositeMenuContext/assets/wifi-flagship.png.js.map +0 -1
  802. package/lib/contexts/MicrositeMenuContext/assets/wifi-flagship.png.mjs +0 -3
  803. package/lib/contexts/MicrositeMenuContext/assets/wifi-flagship.png.mjs.map +0 -1
  804. package/lib/contexts/MicrositeMenuContext/assets/wifi-integrated.png.js +0 -27
  805. package/lib/contexts/MicrositeMenuContext/assets/wifi-integrated.png.js.map +0 -1
  806. package/lib/contexts/MicrositeMenuContext/assets/wifi-integrated.png.mjs +0 -3
  807. package/lib/contexts/MicrositeMenuContext/assets/wifi-integrated.png.mjs.map +0 -1
  808. package/lib/contexts/MicrositeMenuContext/assets/wifi-mega-capacity.png.js +0 -27
  809. package/lib/contexts/MicrositeMenuContext/assets/wifi-mega-capacity.png.js.map +0 -1
  810. package/lib/contexts/MicrositeMenuContext/assets/wifi-mega-capacity.png.mjs +0 -3
  811. package/lib/contexts/MicrositeMenuContext/assets/wifi-mega-capacity.png.mjs.map +0 -1
  812. package/lib/contexts/MicrositeMenuContext/assets/wifi-outdoor.png.js +0 -27
  813. package/lib/contexts/MicrositeMenuContext/assets/wifi-outdoor.png.js.map +0 -1
  814. package/lib/contexts/MicrositeMenuContext/assets/wifi-outdoor.png.mjs +0 -3
  815. package/lib/contexts/MicrositeMenuContext/assets/wifi-outdoor.png.mjs.map +0 -1
  816. package/lib/contexts/MicrositeMenuContext/assets/wifi-overview.png.js +0 -27
  817. package/lib/contexts/MicrositeMenuContext/assets/wifi-overview.png.js.map +0 -1
  818. package/lib/contexts/MicrositeMenuContext/assets/wifi-overview.png.mjs +0 -3
  819. package/lib/contexts/MicrositeMenuContext/assets/wifi-overview.png.mjs.map +0 -1
  820. package/lib/contexts/MicrositeMenuContext/assets/wifi-wall.png.js +0 -27
  821. package/lib/contexts/MicrositeMenuContext/assets/wifi-wall.png.js.map +0 -1
  822. package/lib/contexts/MicrositeMenuContext/assets/wifi-wall.png.mjs +0 -3
  823. package/lib/contexts/MicrositeMenuContext/assets/wifi-wall.png.mjs.map +0 -1
  824. package/lib/contexts/MicrositeMenuContext/context.d.ts +0 -36
  825. package/lib/contexts/MicrositeMenuContext/context.js +0 -100
  826. package/lib/contexts/MicrositeMenuContext/context.js.map +0 -1
  827. package/lib/contexts/MicrositeMenuContext/context.mjs +0 -96
  828. package/lib/contexts/MicrositeMenuContext/context.mjs.map +0 -1
  829. package/lib/contexts/MicrositeMenuContext/index.d.ts +0 -1
  830. package/lib/contexts/MicrositeMenuContext/index.js +0 -8
  831. package/lib/contexts/MicrositeMenuContext/index.js.map +0 -1
  832. package/lib/contexts/MicrositeMenuContext/index.mjs +0 -3
  833. package/lib/contexts/MicrositeMenuContext/index.mjs.map +0 -1
  834. package/lib/contexts/MicrositeMenuContext/mapping.d.ts +0 -16
  835. package/lib/contexts/MicrositeMenuContext/mapping.js +0 -781
  836. package/lib/contexts/MicrositeMenuContext/mapping.js.map +0 -1
  837. package/lib/contexts/MicrositeMenuContext/mapping.mjs +0 -705
  838. package/lib/contexts/MicrositeMenuContext/mapping.mjs.map +0 -1
  839. package/lib/contexts/MicrositeMenuContext/translations/ar.json.js +0 -8
  840. package/lib/contexts/MicrositeMenuContext/translations/ar.json.js.map +0 -1
  841. package/lib/contexts/MicrositeMenuContext/translations/ar.json.mjs +0 -3
  842. package/lib/contexts/MicrositeMenuContext/translations/ar.json.mjs.map +0 -1
  843. package/lib/contexts/MicrositeMenuContext/translations/de.json.js +0 -8
  844. package/lib/contexts/MicrositeMenuContext/translations/de.json.js.map +0 -1
  845. package/lib/contexts/MicrositeMenuContext/translations/de.json.mjs +0 -3
  846. package/lib/contexts/MicrositeMenuContext/translations/de.json.mjs.map +0 -1
  847. package/lib/contexts/MicrositeMenuContext/translations/el.json.js +0 -8
  848. package/lib/contexts/MicrositeMenuContext/translations/el.json.js.map +0 -1
  849. package/lib/contexts/MicrositeMenuContext/translations/el.json.mjs +0 -3
  850. package/lib/contexts/MicrositeMenuContext/translations/el.json.mjs.map +0 -1
  851. package/lib/contexts/MicrositeMenuContext/translations/en.json.js +0 -128
  852. package/lib/contexts/MicrositeMenuContext/translations/en.json.js.map +0 -1
  853. package/lib/contexts/MicrositeMenuContext/translations/en.json.mjs +0 -123
  854. package/lib/contexts/MicrositeMenuContext/translations/en.json.mjs.map +0 -1
  855. package/lib/contexts/MicrositeMenuContext/translations/es.json.js +0 -8
  856. package/lib/contexts/MicrositeMenuContext/translations/es.json.js.map +0 -1
  857. package/lib/contexts/MicrositeMenuContext/translations/es.json.mjs +0 -3
  858. package/lib/contexts/MicrositeMenuContext/translations/es.json.mjs.map +0 -1
  859. package/lib/contexts/MicrositeMenuContext/translations/fr.json.js +0 -8
  860. package/lib/contexts/MicrositeMenuContext/translations/fr.json.js.map +0 -1
  861. package/lib/contexts/MicrositeMenuContext/translations/fr.json.mjs +0 -3
  862. package/lib/contexts/MicrositeMenuContext/translations/fr.json.mjs.map +0 -1
  863. package/lib/contexts/MicrositeMenuContext/translations/it.json.js +0 -8
  864. package/lib/contexts/MicrositeMenuContext/translations/it.json.js.map +0 -1
  865. package/lib/contexts/MicrositeMenuContext/translations/it.json.mjs +0 -3
  866. package/lib/contexts/MicrositeMenuContext/translations/it.json.mjs.map +0 -1
  867. package/lib/contexts/MicrositeMenuContext/translations/ja.json.js +0 -8
  868. package/lib/contexts/MicrositeMenuContext/translations/ja.json.js.map +0 -1
  869. package/lib/contexts/MicrositeMenuContext/translations/ja.json.mjs +0 -3
  870. package/lib/contexts/MicrositeMenuContext/translations/ja.json.mjs.map +0 -1
  871. package/lib/contexts/MicrositeMenuContext/translations/pt-BR.json.js +0 -8
  872. package/lib/contexts/MicrositeMenuContext/translations/pt-BR.json.js.map +0 -1
  873. package/lib/contexts/MicrositeMenuContext/translations/pt-BR.json.mjs +0 -3
  874. package/lib/contexts/MicrositeMenuContext/translations/pt-BR.json.mjs.map +0 -1
  875. package/lib/contexts/MicrositeMenuContext/translations/zh-Hans.json.js +0 -8
  876. package/lib/contexts/MicrositeMenuContext/translations/zh-Hans.json.js.map +0 -1
  877. package/lib/contexts/MicrositeMenuContext/translations/zh-Hans.json.mjs +0 -3
  878. package/lib/contexts/MicrositeMenuContext/translations/zh-Hans.json.mjs.map +0 -1
  879. package/lib/contexts/MicrositeMenuContext/translations/zh-Hant-TW.json.js +0 -8
  880. package/lib/contexts/MicrositeMenuContext/translations/zh-Hant-TW.json.js.map +0 -1
  881. package/lib/contexts/MicrositeMenuContext/translations/zh-Hant-TW.json.mjs +0 -3
  882. package/lib/contexts/MicrositeMenuContext/translations/zh-Hant-TW.json.mjs.map +0 -1
  883. package/lib/contexts/MicrositeMenuContext/translations.d.ts +0 -7
  884. package/lib/contexts/MicrositeMenuContext/translations.js +0 -47
  885. package/lib/contexts/MicrositeMenuContext/translations.js.map +0 -1
  886. package/lib/contexts/MicrositeMenuContext/translations.mjs +0 -25
  887. package/lib/contexts/MicrositeMenuContext/translations.mjs.map +0 -1
  888. package/lib/contexts/MicrositeMenuContext/types.d.ts +0 -101
  889. package/lib/contexts/MicrositeMenuContext/types.js +0 -16
  890. package/lib/contexts/MicrositeMenuContext/types.js.map +0 -1
  891. package/lib/contexts/MicrositeMenuContext/types.mjs +0 -15
  892. package/lib/contexts/MicrositeMenuContext/types.mjs.map +0 -1
  893. package/lib/helpers/product.d.ts +0 -87
  894. package/lib/helpers/product.js +0 -346
  895. package/lib/helpers/product.js.map +0 -1
  896. package/lib/helpers/product.mjs +0 -335
  897. package/lib/helpers/product.mjs.map +0 -1
  898. package/lib/types/product.d.ts +0 -87
  899. package/lib/types/product.js +0 -14
  900. package/lib/types/product.js.map +0 -1
  901. package/lib/types/product.mjs +0 -13
  902. package/lib/types/product.mjs.map +0 -1
  903. package/lib/utils/money/allocators/fixedAmount.d.ts +0 -26
  904. package/lib/utils/money/allocators/fixedAmount.js +0 -52
  905. package/lib/utils/money/allocators/fixedAmount.js.map +0 -1
  906. package/lib/utils/money/allocators/fixedAmount.mjs +0 -50
  907. package/lib/utils/money/allocators/fixedAmount.mjs.map +0 -1
  908. package/lib/utils/money/allocators/index.d.ts +0 -2
  909. package/lib/utils/money/allocators/index.js +0 -8
  910. package/lib/utils/money/allocators/index.js.map +0 -1
  911. package/lib/utils/money/allocators/index.mjs +0 -4
  912. package/lib/utils/money/allocators/index.mjs.map +0 -1
  913. package/lib/utils/money/allocators/productAmount.d.ts +0 -13
  914. package/lib/utils/money/allocators/productAmount.js +0 -98
  915. package/lib/utils/money/allocators/productAmount.js.map +0 -1
  916. package/lib/utils/money/allocators/productAmount.mjs +0 -96
  917. package/lib/utils/money/allocators/productAmount.mjs.map +0 -1
  918. package/lib/utils/money/exchangeRate.d.ts +0 -31
  919. package/lib/utils/money/exchangeRate.js +0 -27
  920. package/lib/utils/money/exchangeRate.js.map +0 -1
  921. package/lib/utils/money/exchangeRate.mjs +0 -23
  922. package/lib/utils/money/exchangeRate.mjs.map +0 -1
  923. package/lib/utils/money/misc.private.d.ts +0 -23
  924. package/lib/utils/money/misc.private.js +0 -46
  925. package/lib/utils/money/misc.private.js.map +0 -1
  926. package/lib/utils/money/misc.private.mjs +0 -21
  927. package/lib/utils/money/misc.private.mjs.map +0 -1
  928. package/lib/utils/money/shipping.d.ts +0 -5
  929. package/lib/utils/money/shipping.js +0 -8
  930. package/lib/utils/money/shipping.js.map +0 -1
  931. package/lib/utils/money/shipping.mjs +0 -6
  932. package/lib/utils/money/shipping.mjs.map +0 -1
  933. package/lib/utils/money/tax.private.d.ts +0 -17
  934. package/lib/utils/money/tax.private.js +0 -65
  935. package/lib/utils/money/tax.private.js.map +0 -1
  936. package/lib/utils/money/tax.private.mjs +0 -60
  937. package/lib/utils/money/tax.private.mjs.map +0 -1
  938. package/lib/utils/productSort.d.ts +0 -41
  939. package/lib/utils/productSort.js +0 -67
  940. package/lib/utils/productSort.js.map +0 -1
  941. package/lib/utils/productSort.mjs +0 -60
  942. package/lib/utils/productSort.mjs.map +0 -1
  943. /package/lib/{assets/icons → components/MobileModal/assets}/arrowDown.svg.js.map +0 -0
  944. /package/lib/{assets/icons → components/MobileModal/assets}/arrowDown.svg.mjs.map +0 -0
  945. /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.d.ts +0 -0
  946. /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.js +0 -0
  947. /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.js.map +0 -0
  948. /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.mjs +0 -0
  949. /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.mjs.map +0 -0
  950. /package/lib/components/{Header/Navigation/ProMenu → ResourceCalculatorV1/components}/index.mjs.map +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"Cards.js","sources":["../../../../src/components/LandingPage/Cards/Cards.tsx"],"sourcesContent":["import { useCallback, useEffect, useRef, useState } from \"react\";\nimport { useScrollbarWidth } from \"react-use\";\n\nimport * as icons from \"../../../constants/icons\";\nimport { StyleableSvgImage } from \"../../StyleableSvgImage\";\nimport { Card } from \"./Card\";\nimport { CARD_CLASS_NAME, CARDS_WRAP_CLASS } from \"./Cards.constants\";\nimport * as S from \"./Cards.styles\";\nimport type { LandingPageCardProps } from \"./Cards.types\";\n\nexport const LandingPageCards = function LandingPageCards(\n props: LandingPageCardProps,\n) {\n const wrapRef = useRef<HTMLDivElement>(null);\n const wrapInnerRef = useRef<HTMLDivElement>(null);\n const scrollbarWidth = useScrollbarWidth();\n\n const [customScrollbarWidth, setCustomScrollbarWidth] = useState(0);\n\n // styled components styles not working if we depend on scrollbarWidth\n // this hack fixes issue with styled components css\n useEffect(() => {\n setCustomScrollbarWidth(scrollbarWidth || 0);\n }, [scrollbarWidth]);\n\n // #############################################################################\n // Arrow state\n // #############################################################################\n const [showArrows, setShowArrows] = useState({\n prev: false,\n next: false,\n });\n\n // #############################################################################\n // State listeners\n // #############################################################################\n const updateArrowShowState = useCallback(\n (wrapEl: HTMLDivElement, wrapInnerEl: HTMLDivElement) => {\n // Find the first card\n const cardEl = wrapEl.querySelector(\n `.${CARD_CLASS_NAME}`,\n ) as HTMLDivElement | null;\n if (!cardEl) return;\n\n // Set arrow show status based on offsets\n setShowArrows({\n prev: wrapInnerEl.scrollLeft >= cardEl.offsetWidth / 2,\n next:\n wrapInnerEl.offsetWidth + wrapInnerEl.scrollLeft <\n wrapInnerEl.scrollWidth,\n });\n },\n [],\n );\n\n useEffect(() => {\n const wrapEl = wrapRef.current;\n const wrapInnerEl = wrapInnerRef.current;\n\n if (!wrapEl || !wrapInnerEl) return;\n\n wrapEl.addEventListener(\"mouseenter\", () =>\n updateArrowShowState(wrapEl, wrapInnerEl),\n );\n wrapInnerEl.addEventListener(\"scroll\", () =>\n updateArrowShowState(wrapEl, wrapInnerEl),\n );\n\n return () => {\n wrapEl.removeEventListener(\"mouseenter\", () =>\n updateArrowShowState(wrapEl, wrapInnerEl),\n );\n wrapInnerEl.removeEventListener(\"scroll\", () =>\n updateArrowShowState(wrapEl, wrapInnerEl),\n );\n };\n }, [updateArrowShowState]);\n\n // #############################################################################\n // Arrow actions\n // #############################################################################\n const onPrevClick = useCallback(() => {\n if (!wrapRef.current || !wrapInnerRef.current) return;\n\n // Find the first card\n const cardEl = wrapRef.current.querySelector(\n `.${CARD_CLASS_NAME}`,\n ) as HTMLDivElement | null;\n if (!cardEl) return;\n\n // Scroll to the left one card worth\n wrapInnerRef.current.scrollTo({\n left: wrapInnerRef.current.scrollLeft - cardEl.offsetWidth,\n behavior: \"smooth\",\n });\n }, []);\n\n const onNextClick = useCallback(() => {\n if (!wrapRef.current || !wrapInnerRef.current) return;\n\n // Find the first card\n const cardEl = wrapRef.current.querySelector(\n `.${CARD_CLASS_NAME}`,\n ) as HTMLDivElement | null;\n if (!cardEl) return;\n\n // Scroll to the right one card worth\n wrapInnerRef.current.scrollTo({\n left: wrapInnerRef.current.scrollLeft + cardEl.offsetWidth,\n behavior: \"smooth\",\n });\n }, []);\n\n // #############################################################################\n // Render\n // #############################################################################\n\n const PrevNextButtons = (\n <S.ActionsWrap>\n {showArrows.prev && (\n <S.ActionButton type=\"button\" onClick={onPrevClick}>\n <S.FlipHorizontal>\n <StyleableSvgImage\n src={icons.generic.carouselArrowRight}\n width={10}\n height={16}\n />\n </S.FlipHorizontal>\n </S.ActionButton>\n )}\n {showArrows.next && (\n <S.ActionButton type=\"button\" $next onClick={onNextClick}>\n <StyleableSvgImage\n src={icons.generic.carouselArrowRight}\n width={10}\n height={16}\n />\n </S.ActionButton>\n )}\n </S.ActionsWrap>\n );\n\n switch (props.type) {\n case \"custom\": {\n return (\n <S.CustomWrap\n className={`${props.className ?? \"\"} ${CARDS_WRAP_CLASS}`}\n ref={wrapRef}\n >\n {PrevNextButtons}\n\n <S.WrapInner ref={wrapInnerRef}>{props.cards}</S.WrapInner>\n </S.CustomWrap>\n );\n }\n default: {\n return (\n <S.Wrap\n className={`${props.className ?? \"\"} ${CARDS_WRAP_CLASS}`}\n type={props.type}\n ref={wrapRef}\n >\n {PrevNextButtons}\n\n <S.WrapInner ref={wrapInnerRef}>\n <S.CardsContainer>\n {props.cards.map((card, i) => (\n <Card\n key={`${card.title}-${i}`}\n translations={props.translations}\n className={CARD_CLASS_NAME}\n type={props.type}\n scrollbarWidth={customScrollbarWidth}\n {...card}\n />\n ))}\n </S.CardsContainer>\n </S.WrapInner>\n </S.Wrap>\n );\n }\n }\n};\n"],"names":["LandingPageCards","props","wrapRef","useRef","wrapInnerRef","scrollbarWidth","useScrollbarWidth","customScrollbarWidth","setCustomScrollbarWidth","useState","useEffect","showArrows","setShowArrows","prev","next","updateArrowShowState","useCallback","wrapEl","wrapInnerEl","cardEl","querySelector","CARD_CLASS_NAME","scrollLeft","offsetWidth","scrollWidth","current","addEventListener","removeEventListener","onPrevClick","scrollTo","left","behavior","onNextClick","PrevNextButtons","jsxs","S.ActionsWrap","ActionsWrap","children","jsx","S.ActionButton","type","onClick","S.FlipHorizontal","StyleableSvgImage","src","icons.generic.carouselArrowRight","width","height","$next","S.CustomWrap","CustomWrap","className","CARDS_WRAP_CLASS","ref","S.WrapInner","WrapInner","cards","S.Wrap","Wrap","S.CardsContainer","map","card","i","Card","LandingPageCard","translations","title"],"mappings":";;;;;;;;;;;;;;;;;;;;AAUa,MAAAA,gBAAA,GAAmB,SAASA,iBAAAA,CACvCC,KACA,EAAA;EACM,MAAAC,OAAA,GAAUC,aAAuB,IAAI,CAAA;EACrC,MAAAC,YAAA,GAAeD,aAAuB,IAAI,CAAA;EAChD,MAAME,iBAAiBC,QAAAA,CAAAA,iBAAkB,EAAA;EAEzC,MAAM,CAACC,oBAAA,EAAsBC,uBAAuB,CAAA,GAAIC,eAAS,CAAC,CAAA;EAIlEC,KAAAA,CAAAA,SAAA,CAAU,MAAM;IACdF,uBAAA,CAAwBH,kBAAkB,CAAC,CAAA;EAAA,CAC7C,EAAG,CAACA,cAAc,CAAC,CAAA;EAKnB,MAAM,CAACM,UAAA,EAAYC,aAAa,CAAA,GAAIH,cAAS,CAAA;IAC3CI,IAAM,EAAA,KAAA;IACNC,IAAM,EAAA;EAAA,CACP,CAAA;EAKD,MAAMC,oBAAuB,GAAAC,KAAA,CAAAA,WAAA,CAC3B,CAACC,QAAwBC,WAAgC,KAAA;IAEvD,MAAMC,SAASF,MAAO,CAAAG,aAAA,KAChBC,eAAAA,CAAAA,eAAe,EAAA,CACrB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AW,EAAA9B,eAAA,CAAAA,eAAA;gBACXmB,MAAMvC,KAAM,CAAAuC,IAAA;gBACZnC,cAAgB,EAAAE,oBAAA;gBACf,GAAGsD;cAAA,CAAA,EALI,GAAAA,IAAA,CAAKK,KAAK,IAAIJ,CAAC,EAAA,CAO1B;aACH;UACF,CAAA,CAAA;QAAA,CAAA,CACF;MAEJ;EACF;AACF,CAAA;"}
1
+ {"version":3,"file":"Cards.js","sources":["../../../../src/components/LandingPage/Cards/Cards.tsx"],"sourcesContent":["import { useCallback, useEffect, useRef, useState } from \"react\";\nimport { useScrollbarWidth } from \"react-use\";\n\nimport * as icons from \"../../../constants/icons\";\nimport { StyleableSvgImage } from \"../../StyleableSvgImage\";\nimport { Card } from \"./Card\";\nimport { CARD_CLASS_NAME, CARDS_WRAP_CLASS } from \"./Cards.constants\";\nimport * as S from \"./Cards.styles\";\nimport type { LandingPageCardProps } from \"./Cards.types\";\n\nexport const LandingPageCards = function LandingPageCards(\n props: LandingPageCardProps,\n) {\n const wrapRef = useRef<HTMLDivElement>(null);\n const wrapInnerRef = useRef<HTMLDivElement>(null);\n const scrollbarWidth = useScrollbarWidth();\n\n const [customScrollbarWidth, setCustomScrollbarWidth] = useState(0);\n\n // styled components styles not working if we depend on scrollbarWidth\n // this hack fixes issue with styled components css\n useEffect(() => {\n setCustomScrollbarWidth(scrollbarWidth || 0);\n }, [scrollbarWidth]);\n\n // #############################################################################\n // Arrow state\n // #############################################################################\n const [showArrows, setShowArrows] = useState({\n prev: false,\n next: false,\n });\n\n // #############################################################################\n // State listeners\n // #############################################################################\n const updateArrowShowState = useCallback(\n (wrapEl: HTMLDivElement, wrapInnerEl: HTMLDivElement) => {\n // Find the first card\n const cardEl = wrapEl.querySelector(\n `.${CARD_CLASS_NAME}`,\n ) as HTMLDivElement | null;\n if (!cardEl) return;\n\n // Set arrow show status based on offsets\n setShowArrows({\n prev: wrapInnerEl.scrollLeft >= cardEl.offsetWidth / 2,\n next:\n wrapInnerEl.offsetWidth + wrapInnerEl.scrollLeft <\n wrapInnerEl.scrollWidth,\n });\n },\n [],\n );\n\n useEffect(() => {\n const wrapEl = wrapRef.current;\n const wrapInnerEl = wrapInnerRef.current;\n\n if (!wrapEl || !wrapInnerEl) return;\n\n wrapEl.addEventListener(\"mouseenter\", () =>\n updateArrowShowState(wrapEl, wrapInnerEl),\n );\n wrapInnerEl.addEventListener(\"scroll\", () =>\n updateArrowShowState(wrapEl, wrapInnerEl),\n );\n\n return () => {\n wrapEl.removeEventListener(\"mouseenter\", () =>\n updateArrowShowState(wrapEl, wrapInnerEl),\n );\n wrapInnerEl.removeEventListener(\"scroll\", () =>\n updateArrowShowState(wrapEl, wrapInnerEl),\n );\n };\n }, [updateArrowShowState]);\n\n // #############################################################################\n // Arrow actions\n // #############################################################################\n const onPrevClick = useCallback(() => {\n if (!wrapRef.current || !wrapInnerRef.current) return;\n\n // Find the first card\n const cardEl = wrapRef.current.querySelector(\n `.${CARD_CLASS_NAME}`,\n ) as HTMLDivElement | null;\n if (!cardEl) return;\n\n // Scroll to the left one card worth\n wrapInnerRef.current.scrollTo({\n left: wrapInnerRef.current.scrollLeft - cardEl.offsetWidth,\n behavior: \"smooth\",\n });\n }, []);\n\n const onNextClick = useCallback(() => {\n if (!wrapRef.current || !wrapInnerRef.current) return;\n\n // Find the first card\n const cardEl = wrapRef.current.querySelector(\n `.${CARD_CLASS_NAME}`,\n ) as HTMLDivElement | null;\n if (!cardEl) return;\n\n // Scroll to the right one card worth\n wrapInnerRef.current.scrollTo({\n left: wrapInnerRef.current.scrollLeft + cardEl.offsetWidth,\n behavior: \"smooth\",\n });\n }, []);\n\n // #############################################################################\n // Render\n // #############################################################################\n\n const PrevNextButtons = (\n <S.ActionsWrap>\n {showArrows.prev && (\n <S.ActionButton type=\"button\" onClick={onPrevClick}>\n <S.FlipHorizontal>\n <StyleableSvgImage\n src={icons.generic.carouselArrowRight}\n width={10}\n height={16}\n />\n </S.FlipHorizontal>\n </S.ActionButton>\n )}\n {showArrows.next && (\n <S.ActionButton type=\"button\" $next onClick={onNextClick}>\n <StyleableSvgImage\n src={icons.generic.carouselArrowRight}\n width={10}\n height={16}\n />\n </S.ActionButton>\n )}\n </S.ActionsWrap>\n );\n\n switch (props.type) {\n case \"custom\": {\n return (\n <S.CustomWrap\n className={`${props.className ?? \"\"} ${CARDS_WRAP_CLASS}`}\n ref={wrapRef}\n >\n {PrevNextButtons}\n\n <S.WrapInner ref={wrapInnerRef}>{props.cards}</S.WrapInner>\n </S.CustomWrap>\n );\n }\n default: {\n return (\n <S.Wrap\n className={`${props.className ?? \"\"} ${CARDS_WRAP_CLASS}`}\n type={props.type}\n ref={wrapRef}\n >\n {PrevNextButtons}\n\n <S.WrapInner ref={wrapInnerRef}>\n <S.CardsContainer>\n {props.cards.map((card, i) => (\n <Card\n key={`${card.title}-${i}`}\n translations={props.translations}\n className={CARD_CLASS_NAME}\n type={props.type}\n scrollbarWidth={customScrollbarWidth}\n {...card}\n />\n ))}\n </S.CardsContainer>\n </S.WrapInner>\n </S.Wrap>\n );\n }\n }\n};\n"],"names":["LandingPageCards","props","wrapRef","useRef","wrapInnerRef","scrollbarWidth","useScrollbarWidth","customScrollbarWidth","setCustomScrollbarWidth","useState","useEffect","showArrows","setShowArrows","prev","next","updateArrowShowState","useCallback","wrapEl","wrapInnerEl","cardEl","querySelector","CARD_CLASS_NAME","scrollLeft","offsetWidth","scrollWidth","current","addEventListener","removeEventListener","onPrevClick","scrollTo","left","behavior","onNextClick","PrevNextButtons","jsxs","S.ActionsWrap","ActionsWrap","children","jsx","S.ActionButton","type","onClick","S.FlipHorizontal","StyleableSvgImage","src","icons.generic.carouselArrowRight","width","height","$next","S.CustomWrap","CustomWrap","className","CARDS_WRAP_CLASS","ref","S.WrapInner","WrapInner","cards","S.Wrap","Wrap","S.CardsContainer","map","card","i","Card","LandingPageCard","translations","title"],"mappings":";;;;;;;;;;;;;;;;;;;;AAUa,MAAAA,gBAAA,GAAmB,SAASA,iBAAAA,CACv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AAA,CAAA,CAC/C;MAEJ;IACA;MAAS;QAEL,sBAAAtB,UAAA,CAAAA,IAAA,CAACuB,YAAE,CAAAC,IAAA,EAAF;UACCP,WAAc,GAAAlD,KAAA,CAAMkD,SAAa,IAAA,MAAMC,eAAAA,CAAAA,gBAAgB,EAAA;UACvDZ,MAAMvC,KAAM,CAAAuC,IAAA;UACZa,GAAK,EAAAnD,OAAA;UAEJmC,QAAA,EAAA,CAAAJ,eAAA,EAAA,eAEAK,UAAA,CAAAA,GAAA,CAAAgB,YAAA,CAAAC,SAAA,EAAA;YAAYF,KAAKjD,YAChB;YAAAiC,QAAA,EAAAC,eAAAA,UAAAA,CAAAA,GAAA,CAACqB,YAAAA,CAAAA,cAAE,EAAF;cACEtB,QAAM,EAAApC,KAAA,CAAAuD,KAAA,CAAMI,GAAI,CAAA,CAACC,MAAMC,CACtB,oBAAAxB,UAAA,CAAAA,GAAA,CAACyB,IAAA,CAAAC,eAAA,EAAA;gBAECC,cAAchE,KAAM,CAAAgE,YAAA;gBACpBd,SAAW,EAAA9B,eAAA,CAAAA,eAAA;gBACXmB,MAAMvC,KAAM,CAAAuC,IAAA;gBACZnC,cAAgB,EAAAE,oBAAA;gBACf,GAAGsD;cAAA,CAAA,EALI,GAAAA,IAAA,CAAKK,KAAK,IAAIJ,CAAC,EAAA,CAO1B;aACH;UACF,CAAA,CAAA;QAAA,CAAA,CACF;MAEJ;EACF;AACF,CAAA;"}
@@ -7,7 +7,7 @@ import './Card/index.mjs';
7
7
  import { CARD_CLASS_NAME, CARDS_WRAP_CLASS } from './Cards.constants.mjs';
8
8
  import { ActionsWrap, ActionButton, FlipHorizontal, Wrap, WrapInner, CardsContainer, CustomWrap } from './Cards.styles.mjs';
9
9
  import { StyleableSvgImage } from '../../StyleableSvgImage/StyleableSvgImage.mjs';
10
- import carouselArrowRight__default from "../../../assets/carouselArrowRight.svg";
10
+ import _externalAssets_B1gmoLrG__default from "../../../assets/carouselArrowRight.svg";
11
11
  import { LandingPageCard } from './Card/Card.mjs';
12
12
  "use strict";
13
13
  const LandingPageCards = function LandingPageCards2(props) {
@@ -65,7 +65,7 @@ const LandingPageCards = function LandingPageCards2(props) {
65
65
  onClick: onPrevClick,
66
66
  children: /* @__PURE__ */jsx(FlipHorizontal, {
67
67
  children: /* @__PURE__ */jsx(StyleableSvgImage, {
68
- src: carouselArrowRight__default,
68
+ src: _externalAssets_B1gmoLrG__default,
69
69
  width: 10,
70
70
  height: 16
71
71
  })
@@ -75,7 +75,7 @@ const LandingPageCards = function LandingPageCards2(props) {
75
75
  $next: true,
76
76
  onClick: onNextClick,
77
77
  children: /* @__PURE__ */jsx(StyleableSvgImage, {
78
- src: carouselArrowRight__default,
78
+ src: _externalAssets_B1gmoLrG__default,
79
79
  width: 10,
80
80
  height: 16
81
81
  })
@@ -1 +1 @@
1
- {"version":3,"file":"Cards.mjs","sources":["../../../../src/components/LandingPage/Cards/Cards.tsx"],"sourcesContent":["import { useCallback, useEffect, useRef, useState } from \"react\";\nimport { useScrollbarWidth } from \"react-use\";\n\nimport * as icons from \"../../../constants/icons\";\nimport { StyleableSvgImage } from \"../../StyleableSvgImage\";\nimport { Card } from \"./Card\";\nimport { CARD_CLASS_NAME, CARDS_WRAP_CLASS } from \"./Cards.constants\";\nimport * as S from \"./Cards.styles\";\nimport type { LandingPageCardProps } from \"./Cards.types\";\n\nexport const LandingPageCards = function LandingPageCards(\n props: LandingPageCardProps,\n) {\n const wrapRef = useRef<HTMLDivElement>(null);\n const wrapInnerRef = useRef<HTMLDivElement>(null);\n const scrollbarWidth = useScrollbarWidth();\n\n const [customScrollbarWidth, setCustomScrollbarWidth] = useState(0);\n\n // styled components styles not working if we depend on scrollbarWidth\n // this hack fixes issue with styled components css\n useEffect(() => {\n setCustomScrollbarWidth(scrollbarWidth || 0);\n }, [scrollbarWidth]);\n\n // #############################################################################\n // Arrow state\n // #############################################################################\n const [showArrows, setShowArrows] = useState({\n prev: false,\n next: false,\n });\n\n // #############################################################################\n // State listeners\n // #############################################################################\n const updateArrowShowState = useCallback(\n (wrapEl: HTMLDivElement, wrapInnerEl: HTMLDivElement) => {\n // Find the first card\n const cardEl = wrapEl.querySelector(\n `.${CARD_CLASS_NAME}`,\n ) as HTMLDivElement | null;\n if (!cardEl) return;\n\n // Set arrow show status based on offsets\n setShowArrows({\n prev: wrapInnerEl.scrollLeft >= cardEl.offsetWidth / 2,\n next:\n wrapInnerEl.offsetWidth + wrapInnerEl.scrollLeft <\n wrapInnerEl.scrollWidth,\n });\n },\n [],\n );\n\n useEffect(() => {\n const wrapEl = wrapRef.current;\n const wrapInnerEl = wrapInnerRef.current;\n\n if (!wrapEl || !wrapInnerEl) return;\n\n wrapEl.addEventListener(\"mouseenter\", () =>\n updateArrowShowState(wrapEl, wrapInnerEl),\n );\n wrapInnerEl.addEventListener(\"scroll\", () =>\n updateArrowShowState(wrapEl, wrapInnerEl),\n );\n\n return () => {\n wrapEl.removeEventListener(\"mouseenter\", () =>\n updateArrowShowState(wrapEl, wrapInnerEl),\n );\n wrapInnerEl.removeEventListener(\"scroll\", () =>\n updateArrowShowState(wrapEl, wrapInnerEl),\n );\n };\n }, [updateArrowShowState]);\n\n // #############################################################################\n // Arrow actions\n // #############################################################################\n const onPrevClick = useCallback(() => {\n if (!wrapRef.current || !wrapInnerRef.current) return;\n\n // Find the first card\n const cardEl = wrapRef.current.querySelector(\n `.${CARD_CLASS_NAME}`,\n ) as HTMLDivElement | null;\n if (!cardEl) return;\n\n // Scroll to the left one card worth\n wrapInnerRef.current.scrollTo({\n left: wrapInnerRef.current.scrollLeft - cardEl.offsetWidth,\n behavior: \"smooth\",\n });\n }, []);\n\n const onNextClick = useCallback(() => {\n if (!wrapRef.current || !wrapInnerRef.current) return;\n\n // Find the first card\n const cardEl = wrapRef.current.querySelector(\n `.${CARD_CLASS_NAME}`,\n ) as HTMLDivElement | null;\n if (!cardEl) return;\n\n // Scroll to the right one card worth\n wrapInnerRef.current.scrollTo({\n left: wrapInnerRef.current.scrollLeft + cardEl.offsetWidth,\n behavior: \"smooth\",\n });\n }, []);\n\n // #############################################################################\n // Render\n // #############################################################################\n\n const PrevNextButtons = (\n <S.ActionsWrap>\n {showArrows.prev && (\n <S.ActionButton type=\"button\" onClick={onPrevClick}>\n <S.FlipHorizontal>\n <StyleableSvgImage\n src={icons.generic.carouselArrowRight}\n width={10}\n height={16}\n />\n </S.FlipHorizontal>\n </S.ActionButton>\n )}\n {showArrows.next && (\n <S.ActionButton type=\"button\" $next onClick={onNextClick}>\n <StyleableSvgImage\n src={icons.generic.carouselArrowRight}\n width={10}\n height={16}\n />\n </S.ActionButton>\n )}\n </S.ActionsWrap>\n );\n\n switch (props.type) {\n case \"custom\": {\n return (\n <S.CustomWrap\n className={`${props.className ?? \"\"} ${CARDS_WRAP_CLASS}`}\n ref={wrapRef}\n >\n {PrevNextButtons}\n\n <S.WrapInner ref={wrapInnerRef}>{props.cards}</S.WrapInner>\n </S.CustomWrap>\n );\n }\n default: {\n return (\n <S.Wrap\n className={`${props.className ?? \"\"} ${CARDS_WRAP_CLASS}`}\n type={props.type}\n ref={wrapRef}\n >\n {PrevNextButtons}\n\n <S.WrapInner ref={wrapInnerRef}>\n <S.CardsContainer>\n {props.cards.map((card, i) => (\n <Card\n key={`${card.title}-${i}`}\n translations={props.translations}\n className={CARD_CLASS_NAME}\n type={props.type}\n scrollbarWidth={customScrollbarWidth}\n {...card}\n />\n ))}\n </S.CardsContainer>\n </S.WrapInner>\n </S.Wrap>\n );\n }\n }\n};\n"],"names":["LandingPageCards","props","wrapRef","useRef","wrapInnerRef","scrollbarWidth","useScrollbarWidth","customScrollbarWidth","setCustomScrollbarWidth","useState","useEffect","showArrows","setShowArrows","prev","next","updateArrowShowState","useCallback","wrapEl","wrapInnerEl","cardEl","querySelector","CARD_CLASS_NAME","scrollLeft","offsetWidth","scrollWidth","current","addEventListener","removeEventListener","onPrevClick","scrollTo","left","behavior","onNextClick","PrevNextButtons","jsxs","S.ActionsWrap","children","jsx","S.ActionButton","type","onClick","S.FlipHorizontal","StyleableSvgImage","src","icons.generic.carouselArrowRight","width","height","$next","S.CustomWrap","className","CARDS_WRAP_CLASS","ref","S.WrapInner","cards","S.Wrap","S.CardsContainer","map","card","i","Card","translations","title"],"mappings":";;;;;;;;;;;;AAUa,MAAAA,gBAAA,GAAmB,SAASA,iBAAAA,CACvCC,KACA,EAAA;EACM,MAAAC,OAAA,GAAUC,OAAuB,IAAI,CAAA;EACrC,MAAAC,YAAA,GAAeD,OAAuB,IAAI,CAAA;EAChD,MAAME,iBAAiBC,iBAAkB,EAAA;EAEzC,MAAM,CAACC,oBAAA,EAAsBC,uBAAuB,CAAA,GAAIC,SAAS,CAAC,CAAA;EAIlEC,SAAA,CAAU,MAAM;IACdF,uBAAA,CAAwBH,kBAAkB,CAAC,CAAA;EAAA,CAC7C,EAAG,CAACA,cAAc,CAAC,CAAA;EAKnB,MAAM,CAACM,UAAA,EAAYC,aAAa,CAAA,GAAIH,QAAS,CAAA;IAC3CI,IAAM,EAAA,KAAA;IACNC,IAAM,EAAA;EAAA,CACP,CAAA;EAKD,MAAMC,oBAAuB,GAAAC,WAAA,CAC3B,CAACC,QAAwBC,WAAgC,KAAA;IAEvD,MAAMC,SAASF,MAAO,CAAAG,aAAA,KAChBC,eAAe,EAAA,CACrB;IACA,IAAI,CAACF,MAAQ,EAAA;IAGCP,aAAA,CAAA;MACZC,IAAM,EAAAK,WAAA,CAAYI,UAAc,IAAAH,MAAA,CAAOI,WAAc,GAAA,CAAA;MACrDT,IACE,EAAAI,WAAA,CAAYK,WAAc,GAAAL,WAAA,CAAYI,aACtCJ,WAAY,CAAAM;IAAA,CACf,CAAA;EACH,CAAA,EACA,EAAC,CACH;EAEAd,SAAA,CAAU,MAAM;IACd,MAAMO,SAASf,OAAQ,CAAAuB,OAAA;IACvB,MAAMP,cAAcd,YAAa,CAAAqB,OAAA;IAE7B,IAAA,CAACR,MAAU,IAAA,CAACC,WAAa,EAAA;IAEtBD,MAAA,CAAAS,gBA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AM,CAAAsC,IAAA;UACZY,GAAK,EAAAjD,OAAA;UAEJkC,QAAA,EAAA,CAAAH,eAAA,EAAA,eAEAI,GAAA,CAAAe,SAAA,EAAA;YAAYD,KAAK/C,YAChB;YAAAgC,QAAA,EAAA,eAAAC,GAAA,CAACkB,cAAE,EAAF;cACEnB,QAAM,EAAAnC,KAAA,CAAAoD,KAAA,CAAMG,GAAI,CAAA,CAACC,MAAMC,CACtB,oBAAArB,GAAA,CAACsB,eAAA,EAAA;gBAECC,cAAc3D,KAAM,CAAA2D,YAAA;gBACpBX,SAAW,EAAA5B,eAAA;gBACXkB,MAAMtC,KAAM,CAAAsC,IAAA;gBACZlC,cAAgB,EAAAE,oBAAA;gBACf,GAAGkD;cAAA,CAAA,EALI,GAAAA,IAAA,CAAKI,KAAK,IAAIH,CAAC,EAAA,CAO1B;aACH;UACF,CAAA,CAAA;QAAA,CAAA,CACF;MAEJ;EACF;AACF,CAAA;"}
1
+ {"version":3,"file":"Cards.mjs","sources":["../../../../src/components/LandingPage/Cards/Cards.tsx"],"sourcesContent":["import { useCallback, useEffect, useRef, useState } from \"react\";\nimport { useScrollbarWidth } from \"react-use\";\n\nimport * as icons from \"../../../constants/icons\";\nimport { StyleableSvgImage } from \"../../StyleableSvgImage\";\nimport { Card } from \"./Card\";\nimport { CARD_CLASS_NAME, CARDS_WRAP_CLASS } from \"./Cards.constants\";\nimport * as S from \"./Cards.styles\";\nimport type { LandingPageCardProps } from \"./Cards.types\";\n\nexport const LandingPageCards = function LandingPageCards(\n props: LandingPageCardProps,\n) {\n const wrapRef = useRef<HTMLDivElement>(null);\n const wrapInnerRef = useRef<HTMLDivElement>(null);\n const scrollbarWidth = useScrollbarWidth();\n\n const [customScrollbarWidth, setCustomScrollbarWidth] = useState(0);\n\n // styled components styles not working if we depend on scrollbarWidth\n // this hack fixes issue with styled components css\n useEffect(() => {\n setCustomScrollbarWidth(scrollbarWidth || 0);\n }, [scrollbarWidth]);\n\n // #############################################################################\n // Arrow state\n // #############################################################################\n const [showArrows, setShowArrows] = useState({\n prev: false,\n next: false,\n });\n\n // #############################################################################\n // State listeners\n // #############################################################################\n const updateArrowShowState = useCallback(\n (wrapEl: HTMLDivElement, wrapInnerEl: HTMLDivElement) => {\n // Find the first card\n const cardEl = wrapEl.querySelector(\n `.${CARD_CLASS_NAME}`,\n ) as HTMLDivElement | null;\n if (!cardEl) return;\n\n // Set arrow show status based on offsets\n setShowArrows({\n prev: wrapInnerEl.scrollLeft >= cardEl.offsetWidth / 2,\n next:\n wrapInnerEl.offsetWidth + wrapInnerEl.scrollLeft <\n wrapInnerEl.scrollWidth,\n });\n },\n [],\n );\n\n useEffect(() => {\n const wrapEl = wrapRef.current;\n const wrapInnerEl = wrapInnerRef.current;\n\n if (!wrapEl || !wrapInnerEl) return;\n\n wrapEl.addEventListener(\"mouseenter\", () =>\n updateArrowShowState(wrapEl, wrapInnerEl),\n );\n wrapInnerEl.addEventListener(\"scroll\", () =>\n updateArrowShowState(wrapEl, wrapInnerEl),\n );\n\n return () => {\n wrapEl.removeEventListener(\"mouseenter\", () =>\n updateArrowShowState(wrapEl, wrapInnerEl),\n );\n wrapInnerEl.removeEventListener(\"scroll\", () =>\n updateArrowShowState(wrapEl, wrapInnerEl),\n );\n };\n }, [updateArrowShowState]);\n\n // #############################################################################\n // Arrow actions\n // #############################################################################\n const onPrevClick = useCallback(() => {\n if (!wrapRef.current || !wrapInnerRef.current) return;\n\n // Find the first card\n const cardEl = wrapRef.current.querySelector(\n `.${CARD_CLASS_NAME}`,\n ) as HTMLDivElement | null;\n if (!cardEl) return;\n\n // Scroll to the left one card worth\n wrapInnerRef.current.scrollTo({\n left: wrapInnerRef.current.scrollLeft - cardEl.offsetWidth,\n behavior: \"smooth\",\n });\n }, []);\n\n const onNextClick = useCallback(() => {\n if (!wrapRef.current || !wrapInnerRef.current) return;\n\n // Find the first card\n const cardEl = wrapRef.current.querySelector(\n `.${CARD_CLASS_NAME}`,\n ) as HTMLDivElement | null;\n if (!cardEl) return;\n\n // Scroll to the right one card worth\n wrapInnerRef.current.scrollTo({\n left: wrapInnerRef.current.scrollLeft + cardEl.offsetWidth,\n behavior: \"smooth\",\n });\n }, []);\n\n // #############################################################################\n // Render\n // #############################################################################\n\n const PrevNextButtons = (\n <S.ActionsWrap>\n {showArrows.prev && (\n <S.ActionButton type=\"button\" onClick={onPrevClick}>\n <S.FlipHorizontal>\n <StyleableSvgImage\n src={icons.generic.carouselArrowRight}\n width={10}\n height={16}\n />\n </S.FlipHorizontal>\n </S.ActionButton>\n )}\n {showArrows.next && (\n <S.ActionButton type=\"button\" $next onClick={onNextClick}>\n <StyleableSvgImage\n src={icons.generic.carouselArrowRight}\n width={10}\n height={16}\n />\n </S.ActionButton>\n )}\n </S.ActionsWrap>\n );\n\n switch (props.type) {\n case \"custom\": {\n return (\n <S.CustomWrap\n className={`${props.className ?? \"\"} ${CARDS_WRAP_CLASS}`}\n ref={wrapRef}\n >\n {PrevNextButtons}\n\n <S.WrapInner ref={wrapInnerRef}>{props.cards}</S.WrapInner>\n </S.CustomWrap>\n );\n }\n default: {\n return (\n <S.Wrap\n className={`${props.className ?? \"\"} ${CARDS_WRAP_CLASS}`}\n type={props.type}\n ref={wrapRef}\n >\n {PrevNextButtons}\n\n <S.WrapInner ref={wrapInnerRef}>\n <S.CardsContainer>\n {props.cards.map((card, i) => (\n <Card\n key={`${card.title}-${i}`}\n translations={props.translations}\n className={CARD_CLASS_NAME}\n type={props.type}\n scrollbarWidth={customScrollbarWidth}\n {...card}\n />\n ))}\n </S.CardsContainer>\n </S.WrapInner>\n </S.Wrap>\n );\n }\n }\n};\n"],"names":["LandingPageCards","props","wrapRef","useRef","wrapInnerRef","scrollbarWidth","useScrollbarWidth","customScrollbarWidth","setCustomScrollbarWidth","useState","useEffect","showArrows","setShowArrows","prev","next","updateArrowShowState","useCallback","wrapEl","wrapInnerEl","cardEl","querySelector","CARD_CLASS_NAME","scrollLeft","offsetWidth","scrollWidth","current","addEventListener","removeEventListener","onPrevClick","scrollTo","left","behavior","onNextClick","PrevNextButtons","jsxs","S.ActionsWrap","children","jsx","S.ActionButton","type","onClick","S.FlipHorizontal","StyleableSvgImage","src","icons.generic.carouselArrowRight","width","height","$next","S.CustomWrap","className","CARDS_WRAP_CLASS","ref","S.WrapInner","cards","S.Wrap","S.CardsContainer","map","card","i","Card","translations","title"],"mappings":";;;;;;;;;;;;AAUa,MAAAA,gBAAA,GAAmB,SAASA,iBAAAA,CACvCC,KACA,EAAA;EACM,MAAAC,OAAA,GAAUC,OAAuB,IAAI,CAAA;EACrC,MAAAC,YAAA,GAAeD,OAAuB,IAAI,CAAA;EAChD,MAAME,iBAAiBC,iBAAkB,EAAA;EAEzC,MAAM,CAACC,oBAAA,EAAsBC,uBAAuB,CAAA,GAAIC,SAAS,CAAC,CAAA;EAIlEC,SAAA,CAAU,MAAM;IACdF,uBAAA,CAAwBH,kBAAkB,CAAC,CAAA;EAAA,CAC7C,EAAG,CAACA,cAAc,CAAC,CAAA;EAKnB,MAAM,CAACM,UAAA,EAAYC,aAAa,CAAA,GAAIH,QAAS,CAAA;IAC3CI,IAAM,EAAA,KAAA;IACNC,IAAM,EAAA;EAAA,CACP,CAAA;EAKD,MAAMC,oBAAuB,GAAAC,WAAA,CAC3B,CAACC,QAAwBC,WAAgC,KAAA;IAEvD,MAAMC,SAASF,MAAO,CAAAG,aAAA,KAChBC,eAAe,EAAA,CACrB;IACA,IAAI,CAACF,MAAQ,EAAA;IAGCP,aAAA,CAAA;MACZC,IAAM,EAAAK,WAAA,CAAYI,UAAc,IAAAH,MAAA,CAAOI,WAAc,GAAA,CAAA;MACrDT,IACE,EAAAI,WAAA,CAAYK,WAAc,GAAAL,WAAA,CAAYI,aACtCJ,WAAY,CAAAM;IAAA,CACf,CAAA;EACH,CAAA,EACA,EAAC,CACH;EAEAd,SAAA,CAAU,MAAM;IACd,MAAMO,SAASf,OAAQ,CAAAuB,OAAA;IACvB,MAAMP,cAAcd,YAAa,CAAAqB,OAAA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,GAAAhD,KAAA,CAAMgD,SAAa,IAAA,MAAMC,gBAAgB,EAAA;UACvDX,MAAMtC,KAAM,CAAAsC,IAAA;UACZY,GAAK,EAAAjD,OAAA;UAEJkC,QAAA,EAAA,CAAAH,eAAA,EAAA,eAEAI,GAAA,CAAAe,SAAA,EAAA;YAAYD,KAAK/C,YAChB;YAAAgC,QAAA,EAAA,eAAAC,GAAA,CAACkB,cAAE,EAAF;cACEnB,QAAM,EAAAnC,KAAA,CAAAoD,KAAA,CAAMG,GAAI,CAAA,CAACC,MAAMC,CACtB,oBAAArB,GAAA,CAACsB,eAAA,EAAA;gBAECC,cAAc3D,KAAM,CAAA2D,YAAA;gBACpBX,SAAW,EAAA5B,eAAA;gBACXkB,MAAMtC,KAAM,CAAAsC,IAAA;gBACZlC,cAAgB,EAAAE,oBAAA;gBACf,GAAGkD;cAAA,CAAA,EALI,GAAAA,IAAA,CAAKI,KAAK,IAAIH,CAAC,EAAA,CAO1B;aACH;UACF,CAAA,CAAA;QAAA,CAAA,CACF;MAEJ;EACF;AACF,CAAA;"}
@@ -17,8 +17,5 @@ export interface LandingPageProProps {
17
17
  renderImage: RenderImageFn;
18
18
  isCartSummaryOpen?: boolean;
19
19
  }
20
- /**
21
- * @deprecated This component is deprecated and will be removed in the future.
22
- */
23
20
  export declare const LandingPagePro: ({ sidebarProps, productGridProps, searchProps, renderImage, isCartSummaryOpen, }: LandingPageProProps) => JSX.Element;
24
21
  export {};
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
- var currencies = require('@dinero.js/currencies');
5
4
  var react = require('react');
6
5
  require('../../contexts/MenuContext/index.js');
7
6
  var mapping = require('../../contexts/MenuContext/mapping.js');
8
7
  require('../../types/index.js');
8
+ require('../../utils/money/index.js');
9
9
  var url = require('../../utils/url.js');
10
10
  require('../LandingPageSearch/index.js');
11
11
  require('../LandingPageSidebar/index.js');
@@ -14,12 +14,12 @@ var ProductGrid_types = require('../ProductGrid/ProductGrid.types.js');
14
14
  var LandingPagePro_styles = require('./LandingPagePro.styles.js');
15
15
  var utils = require('./utils.js');
16
16
  var context = require('../../contexts/MenuContext/context.js');
17
+ var constants = require('../../utils/money/constants.js');
17
18
  var generated = require('../../types/generated.js');
18
19
  var LandingPageSidebar = require('../LandingPageSidebar/LandingPageSidebar.js');
19
20
  var LandingPageSearch = require('../LandingPageSearch/LandingPageSearch.js');
20
21
  var ProductGrid = require('../ProductGrid/ProductGrid.js');
21
22
  "use strict";
22
- const maximumPriceFilterLookup = /* @__PURE__ */new Map([[currencies.CAD.code, 7e4], [currencies.EUR.code, 7e4], [currencies.AED.code, 7e4]]);
23
23
  const LandingPagePro = ({
24
24
  // storeId = StoreId.Us,
25
25
  sidebarProps,
@@ -119,7 +119,7 @@ const LandingPagePro = ({
119
119
  }, [navigation.primary.items, navigation.secondary.items, productGridProps?.products, sidebarProps.productTypeBlock.activeType, sidebarProps.translations.all]);
120
120
  const maxPriceFilterAmount = react.useMemo(() => {
121
121
  return {
122
- amount: maximumPriceFilterLookup.get(sidebarProps.filtersBlock?.currency || generated.Currency.Cad) || 7e4,
122
+ amount: constants.maximumPriceFilterLookup.get(sidebarProps.filtersBlock?.currency || generated.Currency.Cad) || 7e4,
123
123
  currency: sidebarProps.filtersBlock?.currency || generated.Currency.Cad
124
124
  };
125
125
  }, [sidebarProps.filtersBlock?.currency]);
@@ -1 +1 @@
1
- {"version":3,"file":"LandingPagePro.js","sources":["../../../src/components/LandingPagePro/LandingPagePro.tsx"],"sourcesContent":["import { AED, CAD, EUR } from \"@dinero.js/currencies\";\nimport { useCallback, useMemo } from \"react\";\n\nimport { useMenu } from \"../../contexts/MenuContext\";\nimport { NavigationItemId } from \"../../contexts/MenuContext/mapping\";\nimport type { ParsedNavigationSubSubItem } from \"../../contexts/MenuContext/types\";\nimport type { StoreId } from \"../../types\";\nimport { Currency } from \"../../types\";\n// import { getCollectionSlugFromPath } from \"../../utils/collectionSlug\";\nimport { slugify } from \"../../utils/url\";\nimport type { RenderImageFn } from \"../CustomImage/CustomImage.types\";\nimport { LandingPageSearch } from \"../LandingPageSearch\";\nimport type { LandingPageSearchProps } from \"../LandingPageSearch/LandingPageSearch.types\";\nimport { LandingPageSidebar } from \"../LandingPageSidebar\";\nimport type {\n CategoriesProps,\n FiltersProps,\n LandingPageSidebarProps,\n ProductTypeProps,\n SidebarTranslations,\n} from \"../LandingPageSidebar/LandingPageSidebar.types\";\nimport { ProductGrid } from \"../ProductGrid\";\nimport { ProductGridSortOption } from \"../ProductGrid/ProductGrid.types\";\nimport type {\n GridProduct,\n ProductGridProps,\n} from \"../ProductGrid/ProductGrid.types\";\nimport * as S from \"./LandingPagePro.styles\";\nimport { compareSortWeights, productHasSomeInStock } from \"./utils\";\n\ninterface SidebarProps {\n translations: SidebarTranslations;\n categoriesBlock?: CategoriesProps;\n filtersBlock?: Omit<FiltersProps, \"minValue\" | \"maxValue\">;\n productTypeBlock: ProductTypeProps;\n}\n\nexport interface LandingPageProProps {\n storeId?: StoreId;\n sidebarProps: SidebarProps;\n productGridProps: Omit<\n ProductGridProps,\n | \"renderImage\"\n | \"clearFilters\"\n | \"hasFilters\"\n | \"isLoading\"\n | \"isDefaultCategory\"\n >;\n searchProps: Omit<LandingPageSearchProps, \"renderImage\">;\n renderImage: RenderImageFn;\n isCartSummaryOpen?: boolean;\n}\n\n/**\n * Mapping of maximum price filter\n */\nconst maximumPriceFilterLookup = new Map([\n [CAD.code, 70000],\n [EUR.code, 70000],\n [AED.code, 70000],\n]);\n\n/**\n * @deprecated This component is deprecated and will be removed in the future.\n */\nexport const LandingPagePro = ({\n // storeId = StoreId.Us,\n sidebarProps,\n productGridProps,\n searchProps,\n renderImage,\n isCartSummaryOpen,\n}: LandingPageProProps) => {\n const { navigation } = useMenu();\n\n const isSearchUsed = useMemo(\n () => !!searchProps.searchValue,\n [searchProps.searchValue],\n );\n\n const categories: LandingPageSidebarProps[\"categories\"] = useMemo(() => {\n const navItems =\n sidebarProps.productTypeBlock.activeType === \"unifi\"\n ? navigation.primary.items\n : navigation.secondary.items;\n const items = navItems\n .filter(\n (item) =>\n item.id !== NavigationItemId.UnifiIdentity &&\n item.id !== NavigationItemId.UispSoftware,\n /**\n * TODO: Hacky way to hide Amplifi from sidebar on US store\n * since we don't pass storePath in `navigation` variable from useMenu()\n */\n // !(item.id === NavigationItemId.Amplifi && storeId === StoreId.Us),\n )\n // HACK: Change the category titles\n .map((item) => {\n switch (item.id) {\n case NavigationItemId.Accessories:\n return {\n ...item,\n label: \"Accessories\",\n };\n case NavigationItemId.CameraSecurity:\n return {\n ...item,\n label: \"Camera Security\",\n };\n default:\n return item;\n }\n })\n .map((category) => {\n const innerItems: {\n label: string;\n slug: string;\n products: ProductGridProps[\"products\"];\n items: ParsedNavigationSubSubItem[];\n }[] = category.items\n // HACK: We are filtering out \"door-access\" from the 2nd level so that products are collected in 1st level \"Door Access\"\n .filter((item) => item.id !== \"door-access\")\n .map((innerItem) => {\n return {\n label: innerItem.label,\n items: innerItem.items,\n slug:\n // getCollectionSlugFromPath(innerItem.path) ||\n slugify(innerItem.id),\n products: [],\n };\n });\n\n innerItems.unshift({\n label: `${sidebarProps.translations.all} ${category.label}`,\n slug: category.id,\n products: [],\n items: [],\n });\n\n return {\n label: category.label,\n id: category.id,\n items: innerItems,\n };\n });\n\n productGridProps?.products?.forEach((product) => {\n const activeCategoryIndex = items.findIndex((category) => {\n const isIncluded = category.items.some(\n (item) =>\n item.slug === product.defaultCollectionSlug ||\n item.slug === product.organizationalCollectionSlug,\n );\n\n if (isIncluded) {\n return true;\n }\n\n return category.items.some(\n (innerItem) => innerItem?.items,\n // &&\n // innerItem.items.some(\n // (subItem) =>\n // getCollectionSlugFromPath(subItem.path) ===\n // product.defaultCollectionSlug ||\n // getCollectionSlugFromPath(subItem.path) ===\n // product.organizationalCollectionSlug,\n // ),\n );\n });\n\n // Add product to \"All ...\" category\n if (items[activeCategoryIndex]) {\n items[activeCategoryIndex]?.items[0]?.products?.push(product);\n\n const activeCategoryInnerIndex = items[\n activeCategoryIndex\n ]?.items.findIndex(\n (item) =>\n item.slug === product.defaultCollectionSlug ||\n item.slug === product.organizationalCollectionSlug,\n // ||\n // item.items.some(\n // (subItem) =>\n // getCollectionSlugFromPath(subItem.path) ===\n // product.defaultCollectionSlug ||\n // getCollectionSlugFromPath(subItem.path) ===\n // product.organizationalCollectionSlug,\n // ),\n );\n\n // Add product to the category where it belongs, except the \"All ...\" category\n if (\n typeof activeCategoryInnerIndex === \"number\" &&\n items[activeCategoryIndex]?.items[activeCategoryInnerIndex] &&\n activeCategoryInnerIndex !== 0\n ) {\n items[activeCategoryIndex]?.items[\n activeCategoryInnerIndex\n ]?.products?.push(product);\n }\n }\n });\n\n return items.map((category) => ({\n ...category,\n items: category.items.filter((item) => item?.products?.length),\n }));\n }, [\n navigation.primary.items,\n navigation.secondary.items,\n productGridProps?.products,\n sidebarProps.productTypeBlock.activeType,\n sidebarProps.translations.all,\n ]);\n\n const maxPriceFilterAmount = useMemo(() => {\n return {\n amount:\n maximumPriceFilterLookup.get(\n sidebarProps.filtersBlock?.currency || Currency.Cad,\n ) || 70000,\n currency: sidebarProps.filtersBlock?.currency || Currency.Cad,\n };\n }, [sidebarProps.filtersBlock?.currency]);\n\n const categoryProducts = useMemo(() => {\n // If category is set to \"all\" -> return all products\n if (!sidebarProps?.categoriesBlock?.activeCategory) {\n return productGridProps.products;\n }\n\n const activeCategoryIndex = categories.findIndex((category) =>\n category.items.some(\n (item) => item.slug === sidebarProps.categoriesBlock?.activeCategory,\n ),\n );\n const activeCategoryInnerIndex = categories[\n activeCategoryIndex\n ]?.items.findIndex(\n (item) => item.slug === sidebarProps.categoriesBlock?.activeCategory,\n );\n\n if (\n typeof activeCategoryInnerIndex === \"number\" &&\n categories[activeCategoryIndex]?.items[activeCategoryInnerIndex]\n ) {\n return (\n categories[activeCategoryIndex]?.items[activeCategoryInnerIndex]\n ?.products || []\n );\n }\n return [];\n }, [\n categories,\n productGridProps.products,\n sidebarProps.categoriesBlock?.activeCategory,\n ]);\n\n // #############################################################################\n // Products\n // #############################################################################\n const productsFilter = useCallback(\n (product: GridProduct): boolean => {\n // TODO: Make enum for filter values\n // Filter out non is in stock\n if (\n sidebarProps.filtersBlock?.activeFilters?.filters?.includes(\n \"inStock\",\n ) &&\n !product.variants.find((variant) => variant.isInStock)\n ) {\n return false;\n }\n // Filter out non coming soon\n if (\n sidebarProps.filtersBlock?.activeFilters?.filters?.includes(\n \"comingSoon\",\n ) &&\n // TODO: Might need to add check if one of the variants is in stock\n !product.variants.find((variant) => variant.isComingSoon)\n ) {\n return false;\n }\n // Filter out non previously purchased\n if (\n sidebarProps.filtersBlock?.activeFilters?.filters?.includes(\n \"previouslyPurchased\",\n ) &&\n !product.isPreviouslyPurchased\n ) {\n return false;\n }\n // Filter out non newest products\n if (\n sidebarProps.filtersBlock?.activeFilters?.filters?.includes(\"newest\") &&\n !product.isNew\n ) {\n return false;\n }\n // Filter out non \"early access\" products\n if (\n sidebarProps.filtersBlock?.activeFilters?.filters?.includes(\n \"earlyAccess\",\n ) &&\n !product.variants.find((variant) => variant.isEarlyAccess)\n ) {\n return false;\n }\n // Filter out non \"price from\" products\n if (\n sidebarProps.filtersBlock?.activeFilters.priceFrom?.displayPrice &&\n product.displayPrice.amount <\n sidebarProps.filtersBlock.activeFilters.priceFrom.displayPrice.amount\n ) {\n return false;\n }\n // Filter out non \"price to\" products\n // eslint-disable-next-line sonarjs/prefer-single-boolean-return\n if (sidebarProps.filtersBlock?.activeFilters.priceTo?.displayPrice) {\n // First check if range \"to\" value has max value, then we need to show products that has bigger price too\n if (\n sidebarProps.filtersBlock?.activeFilters.priceTo?.displayPrice\n ?.amount >= maxPriceFilterAmount.amount\n ) {\n return true;\n } else if (\n product.displayPrice.amount >\n sidebarProps.filtersBlock.activeFilters.priceTo.displayPrice.amount\n ) {\n return false;\n }\n }\n\n return true;\n },\n [\n maxPriceFilterAmount.amount,\n sidebarProps.filtersBlock?.activeFilters?.filters,\n sidebarProps.filtersBlock?.activeFilters?.priceFrom?.displayPrice,\n sidebarProps.filtersBlock?.activeFilters?.priceTo?.displayPrice,\n ],\n );\n\n const productsSort = useCallback(\n (currentProduct: GridProduct, nextProduct: GridProduct): number => {\n // Stock\n const currentInStock = productHasSomeInStock(currentProduct);\n const nextInStock = productHasSomeInStock(nextProduct);\n\n // Resolve custom sort weighting\n // If search is used, we set to 0\n const sortWeight = !isSearchUsed\n ? compareSortWeights({\n current: currentProduct.sortWeight,\n next: nextProduct.sortWeight,\n })\n : 0;\n\n // Resolve sort value\n // If search is used, we set to 0\n let sortValue = !isSearchUsed\n ? (Number(!!nextInStock) - Number(!!currentInStock)) * 2\n : 0;\n\n switch (productGridProps.sortValue) {\n case ProductGridSortOption.lowestPrice:\n sortValue +=\n currentProduct.displayPrice.amount -\n nextProduct.displayPrice.amount;\n break;\n case ProductGridSortOption.highestPrice:\n sortValue +=\n nextProduct.displayPrice.amount -\n currentProduct.displayPrice.amount;\n break;\n case ProductGridSortOption.newestProducts:\n sortValue +=\n Number(!!nextProduct.isNew) - Number(!!currentProduct.isNew);\n break;\n case ProductGridSortOption.oldestProducts:\n sortValue +=\n Number(!!currentProduct.isNew) - Number(!!nextProduct.isNew);\n break;\n default:\n // Sort by featured\n if (\n // Not searching\n !isSearchUsed &&\n // Has no sort weight\n !sortWeight\n ) {\n sortValue +=\n Number(!!nextProduct.isFeatured) -\n Number(!!currentProduct.isFeatured);\n }\n break;\n }\n\n // Combine resolved values\n return sortValue + sortWeight;\n },\n [isSearchUsed, productGridProps.sortValue],\n );\n\n const products = useMemo(() => {\n if (categoryProducts === null) {\n return null;\n }\n\n return categoryProducts?.filter(productsFilter).sort(productsSort);\n }, [categoryProducts, productsFilter, productsSort]);\n\n const filtersBlock = useMemo(() => {\n if (!sidebarProps.filtersBlock) {\n return undefined;\n }\n\n const minValDisplayPrice = productGridProps?.products?.length\n ? productGridProps.products.reduce((prev, curr) =>\n prev.displayPrice.amount < curr.displayPrice.amount ? prev : curr,\n ).displayPrice\n : undefined;\n\n return {\n ...sidebarProps.filtersBlock,\n minValue: {\n displayPrice: minValDisplayPrice,\n },\n maxValue: {\n displayPrice: maxPriceFilterAmount,\n },\n };\n }, [\n maxPriceFilterAmount,\n productGridProps.products,\n sidebarProps.filtersBlock,\n ]);\n\n const hasFilters = useMemo(() => {\n return (\n !!filtersBlock?.activeFilters.filters?.length ||\n filtersBlock?.activeFilters.priceFrom !== undefined ||\n filtersBlock?.activeFilters.priceTo !== undefined\n );\n }, [\n filtersBlock?.activeFilters.filters?.length,\n filtersBlock?.activeFilters.priceFrom,\n filtersBlock?.activeFilters.priceTo,\n ]);\n\n const areCategoriesLoading = useMemo(\n () =>\n !!(\n sidebarProps.categoriesBlock &&\n sidebarProps.categoriesBlock.activeCategory === undefined\n ),\n [sidebarProps.categoriesBlock],\n );\n\n const isSidebarLoading = useMemo(\n () => areCategoriesLoading || !productGridProps.isFullyLoaded,\n [areCategoriesLoading, productGridProps.isFullyLoaded],\n );\n\n const isDefaultCategory = useMemo(\n () => !sidebarProps.categoriesBlock?.activeCategory,\n [sidebarProps.categoriesBlock?.activeCategory],\n );\n\n return (\n <S.Container size=\"desktop\">\n <LandingPageSidebar\n {...sidebarProps}\n isLoading={isSidebarLoading}\n categories={categories}\n filtersBlock={filtersBlock}\n isSearchUsed={isSearchUsed}\n productCount={productGridProps?.products?.length}\n productTypeProps={sidebarProps.productTypeBlock}\n isCartSummaryOpen={isCartSummaryOpen}\n />\n <S.ProductsContainer>\n {!sidebarProps.categoriesBlock ? (\n <S.SearchLoader height={40} />\n ) : (\n <LandingPageSearch {...searchProps} renderImage={renderImage} />\n )}\n <ProductGrid\n {...productGridProps}\n products={products}\n hasFilters={hasFilters}\n renderImage={renderImage}\n clearFilters={() => {\n filtersBlock?.onChange({});\n }}\n isLoading={areCategoriesLoading}\n isDefaultCategory={isDefaultCategory}\n />\n </S.ProductsContainer>\n </S.Container>\n );\n};\n"],"names":["maximumPriceFilterLookup","Map","CAD","code","EUR","AED","LandingPagePro","sidebarProps","productGridProps","searchProps","renderImage","isCartSummaryOpen","navigation","useMenu","isSearchUsed","useMemo","searchValue","categories","navItems","productTypeBlock","activeType","primary","items","secondary","filter","item","id","NavigationItemId","UnifiIdentity","UispSoftware","map","Accessories","label","CameraSecurity","category","innerItems","innerItem","slug","slugify","products","unshift","translations","all","forEach","product","activeCategoryIndex","findIndex","isIncluded","some","defaultCollectionSlug","organizationalCollectionSlug","push","activeCategoryInnerIndex","length","maxPriceFilterAmount","amount","get","filtersBlock","currency","Currency","Cad","categoryProducts","categoriesBlock","activeCategory","productsFilter","useCallback","activeFilters","filters","includes","variants","find","variant","isInStock","isComingSoon","isPreviouslyPurchased","isNew","isEarlyAccess","priceFrom","displayPrice","priceTo","productsSort","currentProduct","nextProduct","currentInStock","productHasSomeInStock","nextInStock","sortWeight","compareSortWeights","current","next","sortValue","Number","ProductGridSortOption","lowestPrice","highestPrice","newestProducts","oldestProducts","isFeatured","sort","minValDisplayPrice","reduce","prev","curr","minValue","maxValue","hasFilters","areCategoriesLoading","isSidebarLoading","isFullyLoaded","isDefaultCategory","jsxs","S.Container","Container","size","children","jsx","LandingPageSidebar","isLoading","productCount","productTypeProps","S.ProductsContainer","S.SearchLoader","SearchLoader","height","LandingPageSearch","ProductGrid","clearFilters","onChange"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAwDA,MAAMA,wBAAA,GAAA,mBAA+BC,GAAI,CAAA,CACvC,CAACC,UAAI,CAAAA,GAAA,CAAAC,IAAA,EAAM,GAAK,CAAA,EAChB,CAACC,UAAI,CAAAA,GAAA,CAAAD,IAAA,EAAM,GAAK,CAAA,EAChB,CAACE,UAAI,CAAAA,GAAA,CAAAF,IAAA,EAAM,GAAK,CAAA,CACjB,CAAA;AAKM,MAAMG,iBAAiBA,CAAC;EAAA;EAE7BC,YAAA;EACAC,gBAAA;EACAC,WAAA;EACAC,WAAA;EACAC;AACF,CAA2B,KAAA;EACnB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;MAC1CkE,kBAAkBhH,YAAa,CAAAY,gBAAA;MAC/BR;IAAA,CACF,CAAA,EAAA,eACAmG,eAAA,CAACU,qBAAAA,CAAAA,iBAAE,EAAF;MACEN,QAAA,EAAA,CAAA,CAAC3G,YAAa,CAAAuD,eAAA,GAAA,eACZqD,UAAA,CAAAA,GAAA,CAAAM,qBAAA,CAAAC,YAAA,EAAA;QAAeC,MAAQ,EAAA;OAAI,CAE5B,GAAA,eAAAR,UAAA,CAAAA,GAAA,CAACS,iBAAmB,CAAAA,iBAAA,EAAA;QAAA,GAAGnH;QAAaC;MAA0B,CAAA,CAAA,EAAA,eAEhEyG,UAAA,CAAAA,GAAA,CAACU,WAAA,CAAAA,WAAA,EAAA;QACE,GAAGrH,gBAAA;QACJ+B,QAAA;QACAkE,UAAA;QACA/F,WAAA;QACAoH,cAAcA,CAAA,KAAM;UACJrE,YAAA,EAAAsE,QAAA,CAAS,CAAA,CAAE,CAAA;QAC3B,CAAA;QACAV,SAAW,EAAAX,oBAAA;QACXG;MAAA,CACF,CAAA;KACF,CAAA;EACF,CAAA,CAAA;AAEJ,CAAA;"}
1
+ {"version":3,"file":"LandingPagePro.js","sources":["../../../src/components/LandingPagePro/LandingPagePro.tsx"],"sourcesContent":["import { useCallback, useMemo } from \"react\";\n\nimport { useMenu } from \"../../contexts/MenuContext\";\nimport { NavigationItemId } from \"../../contexts/MenuContext/mapping\";\nimport type { ParsedNavigationSubSubItem } from \"../../contexts/MenuContext/types\";\nimport type { StoreId } from \"../../types\";\nimport { Currency } from \"../../types\";\n// import { getCollectionSlugFromPath } from \"../../utils/collectionSlug\";\nimport { maximumPriceFilterLookup } from \"../../utils/money\";\nimport { slugify } from \"../../utils/url\";\nimport type { RenderImageFn } from \"../CustomImage/CustomImage.types\";\nimport { LandingPageSearch } from \"../LandingPageSearch\";\nimport type { LandingPageSearchProps } from \"../LandingPageSearch/LandingPageSearch.types\";\nimport { LandingPageSidebar } from \"../LandingPageSidebar\";\nimport type {\n CategoriesProps,\n FiltersProps,\n LandingPageSidebarProps,\n ProductTypeProps,\n SidebarTranslations,\n} from \"../LandingPageSidebar/LandingPageSidebar.types\";\nimport { ProductGrid } from \"../ProductGrid\";\nimport { ProductGridSortOption } from \"../ProductGrid/ProductGrid.types\";\nimport type {\n GridProduct,\n ProductGridProps,\n} from \"../ProductGrid/ProductGrid.types\";\nimport * as S from \"./LandingPagePro.styles\";\nimport { compareSortWeights, productHasSomeInStock } from \"./utils\";\n\ninterface SidebarProps {\n translations: SidebarTranslations;\n categoriesBlock?: CategoriesProps;\n filtersBlock?: Omit<FiltersProps, \"minValue\" | \"maxValue\">;\n productTypeBlock: ProductTypeProps;\n}\n\nexport interface LandingPageProProps {\n storeId?: StoreId;\n sidebarProps: SidebarProps;\n productGridProps: Omit<\n ProductGridProps,\n | \"renderImage\"\n | \"clearFilters\"\n | \"hasFilters\"\n | \"isLoading\"\n | \"isDefaultCategory\"\n >;\n searchProps: Omit<LandingPageSearchProps, \"renderImage\">;\n renderImage: RenderImageFn;\n isCartSummaryOpen?: boolean;\n}\n\nexport const LandingPagePro = ({\n // storeId = StoreId.Us,\n sidebarProps,\n productGridProps,\n searchProps,\n renderImage,\n isCartSummaryOpen,\n}: LandingPageProProps) => {\n const { navigation } = useMenu();\n\n const isSearchUsed = useMemo(\n () => !!searchProps.searchValue,\n [searchProps.searchValue],\n );\n\n const categories: LandingPageSidebarProps[\"categories\"] = useMemo(() => {\n const navItems =\n sidebarProps.productTypeBlock.activeType === \"unifi\"\n ? navigation.primary.items\n : navigation.secondary.items;\n const items = navItems\n .filter(\n (item) =>\n item.id !== NavigationItemId.UnifiIdentity &&\n item.id !== NavigationItemId.UispSoftware,\n /**\n * TODO: Hacky way to hide Amplifi from sidebar on US store\n * since we don't pass storePath in `navigation` variable from useMenu()\n */\n // !(item.id === NavigationItemId.Amplifi && storeId === StoreId.Us),\n )\n // HACK: Change the category titles\n .map((item) => {\n switch (item.id) {\n case NavigationItemId.Accessories:\n return {\n ...item,\n label: \"Accessories\",\n };\n case NavigationItemId.CameraSecurity:\n return {\n ...item,\n label: \"Camera Security\",\n };\n default:\n return item;\n }\n })\n .map((category) => {\n const innerItems: {\n label: string;\n slug: string;\n products: ProductGridProps[\"products\"];\n items: ParsedNavigationSubSubItem[];\n }[] = category.items\n // HACK: We are filtering out \"door-access\" from the 2nd level so that products are collected in 1st level \"Door Access\"\n .filter((item) => item.id !== \"door-access\")\n .map((innerItem) => {\n return {\n label: innerItem.label,\n items: innerItem.items,\n slug:\n // getCollectionSlugFromPath(innerItem.path) ||\n slugify(innerItem.id),\n products: [],\n };\n });\n\n innerItems.unshift({\n label: `${sidebarProps.translations.all} ${category.label}`,\n slug: category.id,\n products: [],\n items: [],\n });\n\n return {\n label: category.label,\n id: category.id,\n items: innerItems,\n };\n });\n\n productGridProps?.products?.forEach((product) => {\n const activeCategoryIndex = items.findIndex((category) => {\n const isIncluded = category.items.some(\n (item) =>\n item.slug === product.defaultCollectionSlug ||\n item.slug === product.organizationalCollectionSlug,\n );\n\n if (isIncluded) {\n return true;\n }\n\n return category.items.some(\n (innerItem) => innerItem?.items,\n // &&\n // innerItem.items.some(\n // (subItem) =>\n // getCollectionSlugFromPath(subItem.path) ===\n // product.defaultCollectionSlug ||\n // getCollectionSlugFromPath(subItem.path) ===\n // product.organizationalCollectionSlug,\n // ),\n );\n });\n\n // Add product to \"All ...\" category\n if (items[activeCategoryIndex]) {\n items[activeCategoryIndex]?.items[0]?.products?.push(product);\n\n const activeCategoryInnerIndex = items[\n activeCategoryIndex\n ]?.items.findIndex(\n (item) =>\n item.slug === product.defaultCollectionSlug ||\n item.slug === product.organizationalCollectionSlug,\n // ||\n // item.items.some(\n // (subItem) =>\n // getCollectionSlugFromPath(subItem.path) ===\n // product.defaultCollectionSlug ||\n // getCollectionSlugFromPath(subItem.path) ===\n // product.organizationalCollectionSlug,\n // ),\n );\n\n // Add product to the category where it belongs, except the \"All ...\" category\n if (\n typeof activeCategoryInnerIndex === \"number\" &&\n items[activeCategoryIndex]?.items[activeCategoryInnerIndex] &&\n activeCategoryInnerIndex !== 0\n ) {\n items[activeCategoryIndex]?.items[\n activeCategoryInnerIndex\n ]?.products?.push(product);\n }\n }\n });\n\n return items.map((category) => ({\n ...category,\n items: category.items.filter((item) => item?.products?.length),\n }));\n }, [\n navigation.primary.items,\n navigation.secondary.items,\n productGridProps?.products,\n sidebarProps.productTypeBlock.activeType,\n sidebarProps.translations.all,\n ]);\n\n const maxPriceFilterAmount = useMemo(() => {\n return {\n amount:\n maximumPriceFilterLookup.get(\n sidebarProps.filtersBlock?.currency || Currency.Cad,\n ) || 70000,\n currency: sidebarProps.filtersBlock?.currency || Currency.Cad,\n };\n }, [sidebarProps.filtersBlock?.currency]);\n\n const categoryProducts = useMemo(() => {\n // If category is set to \"all\" -> return all products\n if (!sidebarProps?.categoriesBlock?.activeCategory) {\n return productGridProps.products;\n }\n\n const activeCategoryIndex = categories.findIndex((category) =>\n category.items.some(\n (item) => item.slug === sidebarProps.categoriesBlock?.activeCategory,\n ),\n );\n const activeCategoryInnerIndex = categories[\n activeCategoryIndex\n ]?.items.findIndex(\n (item) => item.slug === sidebarProps.categoriesBlock?.activeCategory,\n );\n\n if (\n typeof activeCategoryInnerIndex === \"number\" &&\n categories[activeCategoryIndex]?.items[activeCategoryInnerIndex]\n ) {\n return (\n categories[activeCategoryIndex]?.items[activeCategoryInnerIndex]\n ?.products || []\n );\n }\n return [];\n }, [\n categories,\n productGridProps.products,\n sidebarProps.categoriesBlock?.activeCategory,\n ]);\n\n // #############################################################################\n // Products\n // #############################################################################\n const productsFilter = useCallback(\n (product: GridProduct): boolean => {\n // TODO: Make enum for filter values\n // Filter out non is in stock\n if (\n sidebarProps.filtersBlock?.activeFilters?.filters?.includes(\n \"inStock\",\n ) &&\n !product.variants.find((variant) => variant.isInStock)\n ) {\n return false;\n }\n // Filter out non coming soon\n if (\n sidebarProps.filtersBlock?.activeFilters?.filters?.includes(\n \"comingSoon\",\n ) &&\n // TODO: Might need to add check if one of the variants is in stock\n !product.variants.find((variant) => variant.isComingSoon)\n ) {\n return false;\n }\n // Filter out non previously purchased\n if (\n sidebarProps.filtersBlock?.activeFilters?.filters?.includes(\n \"previouslyPurchased\",\n ) &&\n !product.isPreviouslyPurchased\n ) {\n return false;\n }\n // Filter out non newest products\n if (\n sidebarProps.filtersBlock?.activeFilters?.filters?.includes(\"newest\") &&\n !product.isNew\n ) {\n return false;\n }\n // Filter out non \"early access\" products\n if (\n sidebarProps.filtersBlock?.activeFilters?.filters?.includes(\n \"earlyAccess\",\n ) &&\n !product.variants.find((variant) => variant.isEarlyAccess)\n ) {\n return false;\n }\n // Filter out non \"price from\" products\n if (\n sidebarProps.filtersBlock?.activeFilters.priceFrom?.displayPrice &&\n product.displayPrice.amount <\n sidebarProps.filtersBlock.activeFilters.priceFrom.displayPrice.amount\n ) {\n return false;\n }\n // Filter out non \"price to\" products\n // eslint-disable-next-line sonarjs/prefer-single-boolean-return\n if (sidebarProps.filtersBlock?.activeFilters.priceTo?.displayPrice) {\n // First check if range \"to\" value has max value, then we need to show products that has bigger price too\n if (\n sidebarProps.filtersBlock?.activeFilters.priceTo?.displayPrice\n ?.amount >= maxPriceFilterAmount.amount\n ) {\n return true;\n } else if (\n product.displayPrice.amount >\n sidebarProps.filtersBlock.activeFilters.priceTo.displayPrice.amount\n ) {\n return false;\n }\n }\n\n return true;\n },\n [\n maxPriceFilterAmount.amount,\n sidebarProps.filtersBlock?.activeFilters?.filters,\n sidebarProps.filtersBlock?.activeFilters?.priceFrom?.displayPrice,\n sidebarProps.filtersBlock?.activeFilters?.priceTo?.displayPrice,\n ],\n );\n\n const productsSort = useCallback(\n (currentProduct: GridProduct, nextProduct: GridProduct): number => {\n // Stock\n const currentInStock = productHasSomeInStock(currentProduct);\n const nextInStock = productHasSomeInStock(nextProduct);\n\n // Resolve custom sort weighting\n // If search is used, we set to 0\n const sortWeight = !isSearchUsed\n ? compareSortWeights({\n current: currentProduct.sortWeight,\n next: nextProduct.sortWeight,\n })\n : 0;\n\n // Resolve sort value\n // If search is used, we set to 0\n let sortValue = !isSearchUsed\n ? (Number(!!nextInStock) - Number(!!currentInStock)) * 2\n : 0;\n\n switch (productGridProps.sortValue) {\n case ProductGridSortOption.lowestPrice:\n sortValue +=\n currentProduct.displayPrice.amount -\n nextProduct.displayPrice.amount;\n break;\n case ProductGridSortOption.highestPrice:\n sortValue +=\n nextProduct.displayPrice.amount -\n currentProduct.displayPrice.amount;\n break;\n case ProductGridSortOption.newestProducts:\n sortValue +=\n Number(!!nextProduct.isNew) - Number(!!currentProduct.isNew);\n break;\n case ProductGridSortOption.oldestProducts:\n sortValue +=\n Number(!!currentProduct.isNew) - Number(!!nextProduct.isNew);\n break;\n default:\n // Sort by featured\n if (\n // Not searching\n !isSearchUsed &&\n // Has no sort weight\n !sortWeight\n ) {\n sortValue +=\n Number(!!nextProduct.isFeatured) -\n Number(!!currentProduct.isFeatured);\n }\n break;\n }\n\n // Combine resolved values\n return sortValue + sortWeight;\n },\n [isSearchUsed, productGridProps.sortValue],\n );\n\n const products = useMemo(() => {\n if (categoryProducts === null) {\n return null;\n }\n\n return categoryProducts?.filter(productsFilter).sort(productsSort);\n }, [categoryProducts, productsFilter, productsSort]);\n\n const filtersBlock = useMemo(() => {\n if (!sidebarProps.filtersBlock) {\n return undefined;\n }\n\n const minValDisplayPrice = productGridProps?.products?.length\n ? productGridProps.products.reduce((prev, curr) =>\n prev.displayPrice.amount < curr.displayPrice.amount ? prev : curr,\n ).displayPrice\n : undefined;\n\n return {\n ...sidebarProps.filtersBlock,\n minValue: {\n displayPrice: minValDisplayPrice,\n },\n maxValue: {\n displayPrice: maxPriceFilterAmount,\n },\n };\n }, [\n maxPriceFilterAmount,\n productGridProps.products,\n sidebarProps.filtersBlock,\n ]);\n\n const hasFilters = useMemo(() => {\n return (\n !!filtersBlock?.activeFilters.filters?.length ||\n filtersBlock?.activeFilters.priceFrom !== undefined ||\n filtersBlock?.activeFilters.priceTo !== undefined\n );\n }, [\n filtersBlock?.activeFilters.filters?.length,\n filtersBlock?.activeFilters.priceFrom,\n filtersBlock?.activeFilters.priceTo,\n ]);\n\n const areCategoriesLoading = useMemo(\n () =>\n !!(\n sidebarProps.categoriesBlock &&\n sidebarProps.categoriesBlock.activeCategory === undefined\n ),\n [sidebarProps.categoriesBlock],\n );\n\n const isSidebarLoading = useMemo(\n () => areCategoriesLoading || !productGridProps.isFullyLoaded,\n [areCategoriesLoading, productGridProps.isFullyLoaded],\n );\n\n const isDefaultCategory = useMemo(\n () => !sidebarProps.categoriesBlock?.activeCategory,\n [sidebarProps.categoriesBlock?.activeCategory],\n );\n\n return (\n <S.Container size=\"desktop\">\n <LandingPageSidebar\n {...sidebarProps}\n isLoading={isSidebarLoading}\n categories={categories}\n filtersBlock={filtersBlock}\n isSearchUsed={isSearchUsed}\n productCount={productGridProps?.products?.length}\n productTypeProps={sidebarProps.productTypeBlock}\n isCartSummaryOpen={isCartSummaryOpen}\n />\n <S.ProductsContainer>\n {!sidebarProps.categoriesBlock ? (\n <S.SearchLoader height={40} />\n ) : (\n <LandingPageSearch {...searchProps} renderImage={renderImage} />\n )}\n <ProductGrid\n {...productGridProps}\n products={products}\n hasFilters={hasFilters}\n renderImage={renderImage}\n clearFilters={() => {\n filtersBlock?.onChange({});\n }}\n isLoading={areCategoriesLoading}\n isDefaultCategory={isDefaultCategory}\n />\n </S.ProductsContainer>\n </S.Container>\n );\n};\n"],"names":["LandingPagePro","sidebarProps","productGridProps","searchProps","renderImage","isCartSummaryOpen","navigation","useMenu","isSearchUsed","useMemo","searchValue","categories","navItems","productTypeBlock","activeType","primary","items","secondary","filter","item","id","NavigationItemId","UnifiIdentity","UispSoftware","map","Accessories","label","CameraSecurity","category","innerItems","innerItem","slug","slugify","products","unshift","translations","all","forEach","product","activeCategoryIndex","findIndex","isIncluded","some","defaultCollectionSlug","organizationalCollectionSlug","push","activeCategoryInnerIndex","length","maxPriceFilterAmount","amount","maximumPriceFilterLookup","get","filtersBlock","currency","Currency","Cad","categoryProducts","categoriesBlock","activeCategory","productsFilter","useCallback","activeFilters","filters","includes","variants","find","variant","isInStock","isComingSoon","isPreviouslyPurchased","isNew","isEarlyAccess","priceFrom","displayPrice","priceTo","productsSort","currentProduct","nextProduct","currentInStock","productHasSomeInStock","nextInStock","sortWeight","compareSortWeights","current","next","sortValue","Number","ProductGridSortOption","lowestPrice","highestPrice","newestProducts","oldestProducts","isFeatured","sort","minValDisplayPrice","reduce","prev","curr","minValue","maxValue","hasFilters","areCategoriesLoading","isSidebarLoading","isFullyLoaded","isDefaultCategory","jsxs","S.Container","Container","size","children","jsx","LandingPageSidebar","isLoading","productCount","productTypeProps","S.ProductsContainer","S.SearchLoader","SearchLoader","height","LandingPageSearch","ProductGrid","clearFilters","onChange"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAqDO,MAAMA,iBAAiBA,CAAC;EAAA;EAE7BC,YAAA;EACAC,gBAAA;EACAC,WAAA;EACAC,WAAA;EACAC;AACF,CAA2B,KAAA;EACnB,MAAA;IAAEC;GAAW,GAAIC,OAAAA,CAAAA,OAAQ,EAAA;EAE/B,MAAMC,YAAe,GAAAC,KAAA,CAAAA,OAAA,CACnB,MAAM,CAAC,CAACN,WAAY,CAAAO,WAAA,EACpB,CAACP,YAAYO,WAAW,CAAA,CAC1B;EAEM,MAAAC,UAAA,GAAoDF,KAAAA,CAAAA,QAAQ,MAAM;IAChE,MAAAG,QAAA,GACJX,aAAaY,gBAAiB,CAAAC,UAAA,KAAe,UACzCR,UAAW,CAAAS,OAAA,CAAQC,KACnB,GAAAV,UAAA,CAAWW,SAAU,CAAAD,KAAA;IAC3B,MAAMA,QAAQJ,QACX,CAAAM,MAAA,CACEC,QACCA,IAAK,CAAAC,EAAA,KAAOC,OAAAA,CAAAA,iBAAiBC,aAC7B,IAAAH,IAAA,CAAKC,OAAOC,OAAAA,CAAAA,gBAAiB,CAAAE;IAAA;AAAA;AAAA;AAAA;IAAA;IAAA,CAMjC,CAECC,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AE,CAAA;QAC3B,CAAA;QACAV,SAAW,EAAAX,oBAAA;QACXG;MAAA,CACF,CAAA;KACF,CAAA;EACF,CAAA,CAAA;AAEJ,CAAA;"}
@@ -1,9 +1,9 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
- import { CAD, EUR, AED } from '@dinero.js/currencies';
3
2
  import { useMemo, useCallback } from 'react';
4
3
  import '../../contexts/MenuContext/index.mjs';
5
4
  import { NavigationItemId } from '../../contexts/MenuContext/mapping.mjs';
6
5
  import '../../types/index.mjs';
6
+ import '../../utils/money/index.mjs';
7
7
  import { slugify } from '../../utils/url.mjs';
8
8
  import '../LandingPageSearch/index.mjs';
9
9
  import '../LandingPageSidebar/index.mjs';
@@ -12,12 +12,12 @@ import { ProductGridSortOption } from '../ProductGrid/ProductGrid.types.mjs';
12
12
  import { Container, ProductsContainer, SearchLoader } from './LandingPagePro.styles.mjs';
13
13
  import { productHasSomeInStock, compareSortWeights } from './utils.mjs';
14
14
  import { useMenu } from '../../contexts/MenuContext/context.mjs';
15
+ import { maximumPriceFilterLookup } from '../../utils/money/constants.mjs';
15
16
  import { Currency } from '../../types/generated.mjs';
16
17
  import { LandingPageSidebar } from '../LandingPageSidebar/LandingPageSidebar.mjs';
17
18
  import { LandingPageSearch } from '../LandingPageSearch/LandingPageSearch.mjs';
18
19
  import { ProductGrid } from '../ProductGrid/ProductGrid.mjs';
19
20
  "use strict";
20
- const maximumPriceFilterLookup = /* @__PURE__ */new Map([[CAD.code, 7e4], [EUR.code, 7e4], [AED.code, 7e4]]);
21
21
  const LandingPagePro = ({
22
22
  // storeId = StoreId.Us,
23
23
  sidebarProps,
@@ -1 +1 @@
1
- {"version":3,"file":"LandingPagePro.mjs","sources":["../../../src/components/LandingPagePro/LandingPagePro.tsx"],"sourcesContent":["import { AED, CAD, EUR } from \"@dinero.js/currencies\";\nimport { useCallback, useMemo } from \"react\";\n\nimport { useMenu } from \"../../contexts/MenuContext\";\nimport { NavigationItemId } from \"../../contexts/MenuContext/mapping\";\nimport type { ParsedNavigationSubSubItem } from \"../../contexts/MenuContext/types\";\nimport type { StoreId } from \"../../types\";\nimport { Currency } from \"../../types\";\n// import { getCollectionSlugFromPath } from \"../../utils/collectionSlug\";\nimport { slugify } from \"../../utils/url\";\nimport type { RenderImageFn } from \"../CustomImage/CustomImage.types\";\nimport { LandingPageSearch } from \"../LandingPageSearch\";\nimport type { LandingPageSearchProps } from \"../LandingPageSearch/LandingPageSearch.types\";\nimport { LandingPageSidebar } from \"../LandingPageSidebar\";\nimport type {\n CategoriesProps,\n FiltersProps,\n LandingPageSidebarProps,\n ProductTypeProps,\n SidebarTranslations,\n} from \"../LandingPageSidebar/LandingPageSidebar.types\";\nimport { ProductGrid } from \"../ProductGrid\";\nimport { ProductGridSortOption } from \"../ProductGrid/ProductGrid.types\";\nimport type {\n GridProduct,\n ProductGridProps,\n} from \"../ProductGrid/ProductGrid.types\";\nimport * as S from \"./LandingPagePro.styles\";\nimport { compareSortWeights, productHasSomeInStock } from \"./utils\";\n\ninterface SidebarProps {\n translations: SidebarTranslations;\n categoriesBlock?: CategoriesProps;\n filtersBlock?: Omit<FiltersProps, \"minValue\" | \"maxValue\">;\n productTypeBlock: ProductTypeProps;\n}\n\nexport interface LandingPageProProps {\n storeId?: StoreId;\n sidebarProps: SidebarProps;\n productGridProps: Omit<\n ProductGridProps,\n | \"renderImage\"\n | \"clearFilters\"\n | \"hasFilters\"\n | \"isLoading\"\n | \"isDefaultCategory\"\n >;\n searchProps: Omit<LandingPageSearchProps, \"renderImage\">;\n renderImage: RenderImageFn;\n isCartSummaryOpen?: boolean;\n}\n\n/**\n * Mapping of maximum price filter\n */\nconst maximumPriceFilterLookup = new Map([\n [CAD.code, 70000],\n [EUR.code, 70000],\n [AED.code, 70000],\n]);\n\n/**\n * @deprecated This component is deprecated and will be removed in the future.\n */\nexport const LandingPagePro = ({\n // storeId = StoreId.Us,\n sidebarProps,\n productGridProps,\n searchProps,\n renderImage,\n isCartSummaryOpen,\n}: LandingPageProProps) => {\n const { navigation } = useMenu();\n\n const isSearchUsed = useMemo(\n () => !!searchProps.searchValue,\n [searchProps.searchValue],\n );\n\n const categories: LandingPageSidebarProps[\"categories\"] = useMemo(() => {\n const navItems =\n sidebarProps.productTypeBlock.activeType === \"unifi\"\n ? navigation.primary.items\n : navigation.secondary.items;\n const items = navItems\n .filter(\n (item) =>\n item.id !== NavigationItemId.UnifiIdentity &&\n item.id !== NavigationItemId.UispSoftware,\n /**\n * TODO: Hacky way to hide Amplifi from sidebar on US store\n * since we don't pass storePath in `navigation` variable from useMenu()\n */\n // !(item.id === NavigationItemId.Amplifi && storeId === StoreId.Us),\n )\n // HACK: Change the category titles\n .map((item) => {\n switch (item.id) {\n case NavigationItemId.Accessories:\n return {\n ...item,\n label: \"Accessories\",\n };\n case NavigationItemId.CameraSecurity:\n return {\n ...item,\n label: \"Camera Security\",\n };\n default:\n return item;\n }\n })\n .map((category) => {\n const innerItems: {\n label: string;\n slug: string;\n products: ProductGridProps[\"products\"];\n items: ParsedNavigationSubSubItem[];\n }[] = category.items\n // HACK: We are filtering out \"door-access\" from the 2nd level so that products are collected in 1st level \"Door Access\"\n .filter((item) => item.id !== \"door-access\")\n .map((innerItem) => {\n return {\n label: innerItem.label,\n items: innerItem.items,\n slug:\n // getCollectionSlugFromPath(innerItem.path) ||\n slugify(innerItem.id),\n products: [],\n };\n });\n\n innerItems.unshift({\n label: `${sidebarProps.translations.all} ${category.label}`,\n slug: category.id,\n products: [],\n items: [],\n });\n\n return {\n label: category.label,\n id: category.id,\n items: innerItems,\n };\n });\n\n productGridProps?.products?.forEach((product) => {\n const activeCategoryIndex = items.findIndex((category) => {\n const isIncluded = category.items.some(\n (item) =>\n item.slug === product.defaultCollectionSlug ||\n item.slug === product.organizationalCollectionSlug,\n );\n\n if (isIncluded) {\n return true;\n }\n\n return category.items.some(\n (innerItem) => innerItem?.items,\n // &&\n // innerItem.items.some(\n // (subItem) =>\n // getCollectionSlugFromPath(subItem.path) ===\n // product.defaultCollectionSlug ||\n // getCollectionSlugFromPath(subItem.path) ===\n // product.organizationalCollectionSlug,\n // ),\n );\n });\n\n // Add product to \"All ...\" category\n if (items[activeCategoryIndex]) {\n items[activeCategoryIndex]?.items[0]?.products?.push(product);\n\n const activeCategoryInnerIndex = items[\n activeCategoryIndex\n ]?.items.findIndex(\n (item) =>\n item.slug === product.defaultCollectionSlug ||\n item.slug === product.organizationalCollectionSlug,\n // ||\n // item.items.some(\n // (subItem) =>\n // getCollectionSlugFromPath(subItem.path) ===\n // product.defaultCollectionSlug ||\n // getCollectionSlugFromPath(subItem.path) ===\n // product.organizationalCollectionSlug,\n // ),\n );\n\n // Add product to the category where it belongs, except the \"All ...\" category\n if (\n typeof activeCategoryInnerIndex === \"number\" &&\n items[activeCategoryIndex]?.items[activeCategoryInnerIndex] &&\n activeCategoryInnerIndex !== 0\n ) {\n items[activeCategoryIndex]?.items[\n activeCategoryInnerIndex\n ]?.products?.push(product);\n }\n }\n });\n\n return items.map((category) => ({\n ...category,\n items: category.items.filter((item) => item?.products?.length),\n }));\n }, [\n navigation.primary.items,\n navigation.secondary.items,\n productGridProps?.products,\n sidebarProps.productTypeBlock.activeType,\n sidebarProps.translations.all,\n ]);\n\n const maxPriceFilterAmount = useMemo(() => {\n return {\n amount:\n maximumPriceFilterLookup.get(\n sidebarProps.filtersBlock?.currency || Currency.Cad,\n ) || 70000,\n currency: sidebarProps.filtersBlock?.currency || Currency.Cad,\n };\n }, [sidebarProps.filtersBlock?.currency]);\n\n const categoryProducts = useMemo(() => {\n // If category is set to \"all\" -> return all products\n if (!sidebarProps?.categoriesBlock?.activeCategory) {\n return productGridProps.products;\n }\n\n const activeCategoryIndex = categories.findIndex((category) =>\n category.items.some(\n (item) => item.slug === sidebarProps.categoriesBlock?.activeCategory,\n ),\n );\n const activeCategoryInnerIndex = categories[\n activeCategoryIndex\n ]?.items.findIndex(\n (item) => item.slug === sidebarProps.categoriesBlock?.activeCategory,\n );\n\n if (\n typeof activeCategoryInnerIndex === \"number\" &&\n categories[activeCategoryIndex]?.items[activeCategoryInnerIndex]\n ) {\n return (\n categories[activeCategoryIndex]?.items[activeCategoryInnerIndex]\n ?.products || []\n );\n }\n return [];\n }, [\n categories,\n productGridProps.products,\n sidebarProps.categoriesBlock?.activeCategory,\n ]);\n\n // #############################################################################\n // Products\n // #############################################################################\n const productsFilter = useCallback(\n (product: GridProduct): boolean => {\n // TODO: Make enum for filter values\n // Filter out non is in stock\n if (\n sidebarProps.filtersBlock?.activeFilters?.filters?.includes(\n \"inStock\",\n ) &&\n !product.variants.find((variant) => variant.isInStock)\n ) {\n return false;\n }\n // Filter out non coming soon\n if (\n sidebarProps.filtersBlock?.activeFilters?.filters?.includes(\n \"comingSoon\",\n ) &&\n // TODO: Might need to add check if one of the variants is in stock\n !product.variants.find((variant) => variant.isComingSoon)\n ) {\n return false;\n }\n // Filter out non previously purchased\n if (\n sidebarProps.filtersBlock?.activeFilters?.filters?.includes(\n \"previouslyPurchased\",\n ) &&\n !product.isPreviouslyPurchased\n ) {\n return false;\n }\n // Filter out non newest products\n if (\n sidebarProps.filtersBlock?.activeFilters?.filters?.includes(\"newest\") &&\n !product.isNew\n ) {\n return false;\n }\n // Filter out non \"early access\" products\n if (\n sidebarProps.filtersBlock?.activeFilters?.filters?.includes(\n \"earlyAccess\",\n ) &&\n !product.variants.find((variant) => variant.isEarlyAccess)\n ) {\n return false;\n }\n // Filter out non \"price from\" products\n if (\n sidebarProps.filtersBlock?.activeFilters.priceFrom?.displayPrice &&\n product.displayPrice.amount <\n sidebarProps.filtersBlock.activeFilters.priceFrom.displayPrice.amount\n ) {\n return false;\n }\n // Filter out non \"price to\" products\n // eslint-disable-next-line sonarjs/prefer-single-boolean-return\n if (sidebarProps.filtersBlock?.activeFilters.priceTo?.displayPrice) {\n // First check if range \"to\" value has max value, then we need to show products that has bigger price too\n if (\n sidebarProps.filtersBlock?.activeFilters.priceTo?.displayPrice\n ?.amount >= maxPriceFilterAmount.amount\n ) {\n return true;\n } else if (\n product.displayPrice.amount >\n sidebarProps.filtersBlock.activeFilters.priceTo.displayPrice.amount\n ) {\n return false;\n }\n }\n\n return true;\n },\n [\n maxPriceFilterAmount.amount,\n sidebarProps.filtersBlock?.activeFilters?.filters,\n sidebarProps.filtersBlock?.activeFilters?.priceFrom?.displayPrice,\n sidebarProps.filtersBlock?.activeFilters?.priceTo?.displayPrice,\n ],\n );\n\n const productsSort = useCallback(\n (currentProduct: GridProduct, nextProduct: GridProduct): number => {\n // Stock\n const currentInStock = productHasSomeInStock(currentProduct);\n const nextInStock = productHasSomeInStock(nextProduct);\n\n // Resolve custom sort weighting\n // If search is used, we set to 0\n const sortWeight = !isSearchUsed\n ? compareSortWeights({\n current: currentProduct.sortWeight,\n next: nextProduct.sortWeight,\n })\n : 0;\n\n // Resolve sort value\n // If search is used, we set to 0\n let sortValue = !isSearchUsed\n ? (Number(!!nextInStock) - Number(!!currentInStock)) * 2\n : 0;\n\n switch (productGridProps.sortValue) {\n case ProductGridSortOption.lowestPrice:\n sortValue +=\n currentProduct.displayPrice.amount -\n nextProduct.displayPrice.amount;\n break;\n case ProductGridSortOption.highestPrice:\n sortValue +=\n nextProduct.displayPrice.amount -\n currentProduct.displayPrice.amount;\n break;\n case ProductGridSortOption.newestProducts:\n sortValue +=\n Number(!!nextProduct.isNew) - Number(!!currentProduct.isNew);\n break;\n case ProductGridSortOption.oldestProducts:\n sortValue +=\n Number(!!currentProduct.isNew) - Number(!!nextProduct.isNew);\n break;\n default:\n // Sort by featured\n if (\n // Not searching\n !isSearchUsed &&\n // Has no sort weight\n !sortWeight\n ) {\n sortValue +=\n Number(!!nextProduct.isFeatured) -\n Number(!!currentProduct.isFeatured);\n }\n break;\n }\n\n // Combine resolved values\n return sortValue + sortWeight;\n },\n [isSearchUsed, productGridProps.sortValue],\n );\n\n const products = useMemo(() => {\n if (categoryProducts === null) {\n return null;\n }\n\n return categoryProducts?.filter(productsFilter).sort(productsSort);\n }, [categoryProducts, productsFilter, productsSort]);\n\n const filtersBlock = useMemo(() => {\n if (!sidebarProps.filtersBlock) {\n return undefined;\n }\n\n const minValDisplayPrice = productGridProps?.products?.length\n ? productGridProps.products.reduce((prev, curr) =>\n prev.displayPrice.amount < curr.displayPrice.amount ? prev : curr,\n ).displayPrice\n : undefined;\n\n return {\n ...sidebarProps.filtersBlock,\n minValue: {\n displayPrice: minValDisplayPrice,\n },\n maxValue: {\n displayPrice: maxPriceFilterAmount,\n },\n };\n }, [\n maxPriceFilterAmount,\n productGridProps.products,\n sidebarProps.filtersBlock,\n ]);\n\n const hasFilters = useMemo(() => {\n return (\n !!filtersBlock?.activeFilters.filters?.length ||\n filtersBlock?.activeFilters.priceFrom !== undefined ||\n filtersBlock?.activeFilters.priceTo !== undefined\n );\n }, [\n filtersBlock?.activeFilters.filters?.length,\n filtersBlock?.activeFilters.priceFrom,\n filtersBlock?.activeFilters.priceTo,\n ]);\n\n const areCategoriesLoading = useMemo(\n () =>\n !!(\n sidebarProps.categoriesBlock &&\n sidebarProps.categoriesBlock.activeCategory === undefined\n ),\n [sidebarProps.categoriesBlock],\n );\n\n const isSidebarLoading = useMemo(\n () => areCategoriesLoading || !productGridProps.isFullyLoaded,\n [areCategoriesLoading, productGridProps.isFullyLoaded],\n );\n\n const isDefaultCategory = useMemo(\n () => !sidebarProps.categoriesBlock?.activeCategory,\n [sidebarProps.categoriesBlock?.activeCategory],\n );\n\n return (\n <S.Container size=\"desktop\">\n <LandingPageSidebar\n {...sidebarProps}\n isLoading={isSidebarLoading}\n categories={categories}\n filtersBlock={filtersBlock}\n isSearchUsed={isSearchUsed}\n productCount={productGridProps?.products?.length}\n productTypeProps={sidebarProps.productTypeBlock}\n isCartSummaryOpen={isCartSummaryOpen}\n />\n <S.ProductsContainer>\n {!sidebarProps.categoriesBlock ? (\n <S.SearchLoader height={40} />\n ) : (\n <LandingPageSearch {...searchProps} renderImage={renderImage} />\n )}\n <ProductGrid\n {...productGridProps}\n products={products}\n hasFilters={hasFilters}\n renderImage={renderImage}\n clearFilters={() => {\n filtersBlock?.onChange({});\n }}\n isLoading={areCategoriesLoading}\n isDefaultCategory={isDefaultCategory}\n />\n </S.ProductsContainer>\n </S.Container>\n );\n};\n"],"names":["maximumPriceFilterLookup","Map","CAD","code","EUR","AED","LandingPagePro","sidebarProps","productGridProps","searchProps","renderImage","isCartSummaryOpen","navigation","useMenu","isSearchUsed","useMemo","searchValue","categories","navItems","productTypeBlock","activeType","primary","items","secondary","filter","item","id","NavigationItemId","UnifiIdentity","UispSoftware","map","Accessories","label","CameraSecurity","category","innerItems","innerItem","slug","slugify","products","unshift","translations","all","forEach","product","activeCategoryIndex","findIndex","isIncluded","some","defaultCollectionSlug","organizationalCollectionSlug","push","activeCategoryInnerIndex","length","maxPriceFilterAmount","amount","get","filtersBlock","currency","Currency","Cad","categoryProducts","categoriesBlock","activeCategory","productsFilter","useCallback","activeFilters","filters","includes","variants","find","variant","isInStock","isComingSoon","isPreviouslyPurchased","isNew","isEarlyAccess","priceFrom","displayPrice","priceTo","productsSort","currentProduct","nextProduct","currentInStock","productHasSomeInStock","nextInStock","sortWeight","compareSortWeights","current","next","sortValue","Number","ProductGridSortOption","lowestPrice","highestPrice","newestProducts","oldestProducts","isFeatured","sort","minValDisplayPrice","reduce","prev","curr","minValue","maxValue","hasFilters","areCategoriesLoading","isSidebarLoading","isFullyLoaded","isDefaultCategory","jsxs","S.Container","size","children","jsx","LandingPageSidebar","isLoading","productCount","productTypeProps","S.ProductsContainer","S.SearchLoader","height","LandingPageSearch","ProductGrid","clearFilters","onChange"],"mappings":";;;;;;;;;;;;;;;;;;;AAwDA,MAAMA,wBAAA,GAAA,mBAA+BC,GAAI,CAAA,CACvC,CAACC,GAAI,CAAAC,IAAA,EAAM,GAAK,CAAA,EAChB,CAACC,GAAI,CAAAD,IAAA,EAAM,GAAK,CAAA,EAChB,CAACE,GAAI,CAAAF,IAAA,EAAM,GAAK,CAAA,CACjB,CAAA;AAKM,MAAMG,iBA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C;MAA0B,CAAA,CAAA,EAAA,eAEhEwG,GAAA,CAACS,WAAA,EAAA;QACE,GAAGnH,gBAAA;QACJ+B,QAAA;QACAkE,UAAA;QACA/F,WAAA;QACAkH,cAAcA,CAAA,KAAM;UACJnE,YAAA,EAAAoE,QAAA,CAAS,CAAA,CAAE,CAAA;QAC3B,CAAA;QACAT,SAAW,EAAAV,oBAAA;QACXG;MAAA,CACF,CAAA;KACF,CAAA;EACF,CAAA,CAAA;AAEJ,CAAA;"}
1
+ {"version":3,"file":"LandingPagePro.mjs","sources":["../../../src/components/LandingPagePro/LandingPagePro.tsx"],"sourcesContent":["import { useCallback, useMemo } from \"react\";\n\nimport { useMenu } from \"../../contexts/MenuContext\";\nimport { NavigationItemId } from \"../../contexts/MenuContext/mapping\";\nimport type { ParsedNavigationSubSubItem } from \"../../contexts/MenuContext/types\";\nimport type { StoreId } from \"../../types\";\nimport { Currency } from \"../../types\";\n// import { getCollectionSlugFromPath } from \"../../utils/collectionSlug\";\nimport { maximumPriceFilterLookup } from \"../../utils/money\";\nimport { slugify } from \"../../utils/url\";\nimport type { RenderImageFn } from \"../CustomImage/CustomImage.types\";\nimport { LandingPageSearch } from \"../LandingPageSearch\";\nimport type { LandingPageSearchProps } from \"../LandingPageSearch/LandingPageSearch.types\";\nimport { LandingPageSidebar } from \"../LandingPageSidebar\";\nimport type {\n CategoriesProps,\n FiltersProps,\n LandingPageSidebarProps,\n ProductTypeProps,\n SidebarTranslations,\n} from \"../LandingPageSidebar/LandingPageSidebar.types\";\nimport { ProductGrid } from \"../ProductGrid\";\nimport { ProductGridSortOption } from \"../ProductGrid/ProductGrid.types\";\nimport type {\n GridProduct,\n ProductGridProps,\n} from \"../ProductGrid/ProductGrid.types\";\nimport * as S from \"./LandingPagePro.styles\";\nimport { compareSortWeights, productHasSomeInStock } from \"./utils\";\n\ninterface SidebarProps {\n translations: SidebarTranslations;\n categoriesBlock?: CategoriesProps;\n filtersBlock?: Omit<FiltersProps, \"minValue\" | \"maxValue\">;\n productTypeBlock: ProductTypeProps;\n}\n\nexport interface LandingPageProProps {\n storeId?: StoreId;\n sidebarProps: SidebarProps;\n productGridProps: Omit<\n ProductGridProps,\n | \"renderImage\"\n | \"clearFilters\"\n | \"hasFilters\"\n | \"isLoading\"\n | \"isDefaultCategory\"\n >;\n searchProps: Omit<LandingPageSearchProps, \"renderImage\">;\n renderImage: RenderImageFn;\n isCartSummaryOpen?: boolean;\n}\n\nexport const LandingPagePro = ({\n // storeId = StoreId.Us,\n sidebarProps,\n productGridProps,\n searchProps,\n renderImage,\n isCartSummaryOpen,\n}: LandingPageProProps) => {\n const { navigation } = useMenu();\n\n const isSearchUsed = useMemo(\n () => !!searchProps.searchValue,\n [searchProps.searchValue],\n );\n\n const categories: LandingPageSidebarProps[\"categories\"] = useMemo(() => {\n const navItems =\n sidebarProps.productTypeBlock.activeType === \"unifi\"\n ? navigation.primary.items\n : navigation.secondary.items;\n const items = navItems\n .filter(\n (item) =>\n item.id !== NavigationItemId.UnifiIdentity &&\n item.id !== NavigationItemId.UispSoftware,\n /**\n * TODO: Hacky way to hide Amplifi from sidebar on US store\n * since we don't pass storePath in `navigation` variable from useMenu()\n */\n // !(item.id === NavigationItemId.Amplifi && storeId === StoreId.Us),\n )\n // HACK: Change the category titles\n .map((item) => {\n switch (item.id) {\n case NavigationItemId.Accessories:\n return {\n ...item,\n label: \"Accessories\",\n };\n case NavigationItemId.CameraSecurity:\n return {\n ...item,\n label: \"Camera Security\",\n };\n default:\n return item;\n }\n })\n .map((category) => {\n const innerItems: {\n label: string;\n slug: string;\n products: ProductGridProps[\"products\"];\n items: ParsedNavigationSubSubItem[];\n }[] = category.items\n // HACK: We are filtering out \"door-access\" from the 2nd level so that products are collected in 1st level \"Door Access\"\n .filter((item) => item.id !== \"door-access\")\n .map((innerItem) => {\n return {\n label: innerItem.label,\n items: innerItem.items,\n slug:\n // getCollectionSlugFromPath(innerItem.path) ||\n slugify(innerItem.id),\n products: [],\n };\n });\n\n innerItems.unshift({\n label: `${sidebarProps.translations.all} ${category.label}`,\n slug: category.id,\n products: [],\n items: [],\n });\n\n return {\n label: category.label,\n id: category.id,\n items: innerItems,\n };\n });\n\n productGridProps?.products?.forEach((product) => {\n const activeCategoryIndex = items.findIndex((category) => {\n const isIncluded = category.items.some(\n (item) =>\n item.slug === product.defaultCollectionSlug ||\n item.slug === product.organizationalCollectionSlug,\n );\n\n if (isIncluded) {\n return true;\n }\n\n return category.items.some(\n (innerItem) => innerItem?.items,\n // &&\n // innerItem.items.some(\n // (subItem) =>\n // getCollectionSlugFromPath(subItem.path) ===\n // product.defaultCollectionSlug ||\n // getCollectionSlugFromPath(subItem.path) ===\n // product.organizationalCollectionSlug,\n // ),\n );\n });\n\n // Add product to \"All ...\" category\n if (items[activeCategoryIndex]) {\n items[activeCategoryIndex]?.items[0]?.products?.push(product);\n\n const activeCategoryInnerIndex = items[\n activeCategoryIndex\n ]?.items.findIndex(\n (item) =>\n item.slug === product.defaultCollectionSlug ||\n item.slug === product.organizationalCollectionSlug,\n // ||\n // item.items.some(\n // (subItem) =>\n // getCollectionSlugFromPath(subItem.path) ===\n // product.defaultCollectionSlug ||\n // getCollectionSlugFromPath(subItem.path) ===\n // product.organizationalCollectionSlug,\n // ),\n );\n\n // Add product to the category where it belongs, except the \"All ...\" category\n if (\n typeof activeCategoryInnerIndex === \"number\" &&\n items[activeCategoryIndex]?.items[activeCategoryInnerIndex] &&\n activeCategoryInnerIndex !== 0\n ) {\n items[activeCategoryIndex]?.items[\n activeCategoryInnerIndex\n ]?.products?.push(product);\n }\n }\n });\n\n return items.map((category) => ({\n ...category,\n items: category.items.filter((item) => item?.products?.length),\n }));\n }, [\n navigation.primary.items,\n navigation.secondary.items,\n productGridProps?.products,\n sidebarProps.productTypeBlock.activeType,\n sidebarProps.translations.all,\n ]);\n\n const maxPriceFilterAmount = useMemo(() => {\n return {\n amount:\n maximumPriceFilterLookup.get(\n sidebarProps.filtersBlock?.currency || Currency.Cad,\n ) || 70000,\n currency: sidebarProps.filtersBlock?.currency || Currency.Cad,\n };\n }, [sidebarProps.filtersBlock?.currency]);\n\n const categoryProducts = useMemo(() => {\n // If category is set to \"all\" -> return all products\n if (!sidebarProps?.categoriesBlock?.activeCategory) {\n return productGridProps.products;\n }\n\n const activeCategoryIndex = categories.findIndex((category) =>\n category.items.some(\n (item) => item.slug === sidebarProps.categoriesBlock?.activeCategory,\n ),\n );\n const activeCategoryInnerIndex = categories[\n activeCategoryIndex\n ]?.items.findIndex(\n (item) => item.slug === sidebarProps.categoriesBlock?.activeCategory,\n );\n\n if (\n typeof activeCategoryInnerIndex === \"number\" &&\n categories[activeCategoryIndex]?.items[activeCategoryInnerIndex]\n ) {\n return (\n categories[activeCategoryIndex]?.items[activeCategoryInnerIndex]\n ?.products || []\n );\n }\n return [];\n }, [\n categories,\n productGridProps.products,\n sidebarProps.categoriesBlock?.activeCategory,\n ]);\n\n // #############################################################################\n // Products\n // #############################################################################\n const productsFilter = useCallback(\n (product: GridProduct): boolean => {\n // TODO: Make enum for filter values\n // Filter out non is in stock\n if (\n sidebarProps.filtersBlock?.activeFilters?.filters?.includes(\n \"inStock\",\n ) &&\n !product.variants.find((variant) => variant.isInStock)\n ) {\n return false;\n }\n // Filter out non coming soon\n if (\n sidebarProps.filtersBlock?.activeFilters?.filters?.includes(\n \"comingSoon\",\n ) &&\n // TODO: Might need to add check if one of the variants is in stock\n !product.variants.find((variant) => variant.isComingSoon)\n ) {\n return false;\n }\n // Filter out non previously purchased\n if (\n sidebarProps.filtersBlock?.activeFilters?.filters?.includes(\n \"previouslyPurchased\",\n ) &&\n !product.isPreviouslyPurchased\n ) {\n return false;\n }\n // Filter out non newest products\n if (\n sidebarProps.filtersBlock?.activeFilters?.filters?.includes(\"newest\") &&\n !product.isNew\n ) {\n return false;\n }\n // Filter out non \"early access\" products\n if (\n sidebarProps.filtersBlock?.activeFilters?.filters?.includes(\n \"earlyAccess\",\n ) &&\n !product.variants.find((variant) => variant.isEarlyAccess)\n ) {\n return false;\n }\n // Filter out non \"price from\" products\n if (\n sidebarProps.filtersBlock?.activeFilters.priceFrom?.displayPrice &&\n product.displayPrice.amount <\n sidebarProps.filtersBlock.activeFilters.priceFrom.displayPrice.amount\n ) {\n return false;\n }\n // Filter out non \"price to\" products\n // eslint-disable-next-line sonarjs/prefer-single-boolean-return\n if (sidebarProps.filtersBlock?.activeFilters.priceTo?.displayPrice) {\n // First check if range \"to\" value has max value, then we need to show products that has bigger price too\n if (\n sidebarProps.filtersBlock?.activeFilters.priceTo?.displayPrice\n ?.amount >= maxPriceFilterAmount.amount\n ) {\n return true;\n } else if (\n product.displayPrice.amount >\n sidebarProps.filtersBlock.activeFilters.priceTo.displayPrice.amount\n ) {\n return false;\n }\n }\n\n return true;\n },\n [\n maxPriceFilterAmount.amount,\n sidebarProps.filtersBlock?.activeFilters?.filters,\n sidebarProps.filtersBlock?.activeFilters?.priceFrom?.displayPrice,\n sidebarProps.filtersBlock?.activeFilters?.priceTo?.displayPrice,\n ],\n );\n\n const productsSort = useCallback(\n (currentProduct: GridProduct, nextProduct: GridProduct): number => {\n // Stock\n const currentInStock = productHasSomeInStock(currentProduct);\n const nextInStock = productHasSomeInStock(nextProduct);\n\n // Resolve custom sort weighting\n // If search is used, we set to 0\n const sortWeight = !isSearchUsed\n ? compareSortWeights({\n current: currentProduct.sortWeight,\n next: nextProduct.sortWeight,\n })\n : 0;\n\n // Resolve sort value\n // If search is used, we set to 0\n let sortValue = !isSearchUsed\n ? (Number(!!nextInStock) - Number(!!currentInStock)) * 2\n : 0;\n\n switch (productGridProps.sortValue) {\n case ProductGridSortOption.lowestPrice:\n sortValue +=\n currentProduct.displayPrice.amount -\n nextProduct.displayPrice.amount;\n break;\n case ProductGridSortOption.highestPrice:\n sortValue +=\n nextProduct.displayPrice.amount -\n currentProduct.displayPrice.amount;\n break;\n case ProductGridSortOption.newestProducts:\n sortValue +=\n Number(!!nextProduct.isNew) - Number(!!currentProduct.isNew);\n break;\n case ProductGridSortOption.oldestProducts:\n sortValue +=\n Number(!!currentProduct.isNew) - Number(!!nextProduct.isNew);\n break;\n default:\n // Sort by featured\n if (\n // Not searching\n !isSearchUsed &&\n // Has no sort weight\n !sortWeight\n ) {\n sortValue +=\n Number(!!nextProduct.isFeatured) -\n Number(!!currentProduct.isFeatured);\n }\n break;\n }\n\n // Combine resolved values\n return sortValue + sortWeight;\n },\n [isSearchUsed, productGridProps.sortValue],\n );\n\n const products = useMemo(() => {\n if (categoryProducts === null) {\n return null;\n }\n\n return categoryProducts?.filter(productsFilter).sort(productsSort);\n }, [categoryProducts, productsFilter, productsSort]);\n\n const filtersBlock = useMemo(() => {\n if (!sidebarProps.filtersBlock) {\n return undefined;\n }\n\n const minValDisplayPrice = productGridProps?.products?.length\n ? productGridProps.products.reduce((prev, curr) =>\n prev.displayPrice.amount < curr.displayPrice.amount ? prev : curr,\n ).displayPrice\n : undefined;\n\n return {\n ...sidebarProps.filtersBlock,\n minValue: {\n displayPrice: minValDisplayPrice,\n },\n maxValue: {\n displayPrice: maxPriceFilterAmount,\n },\n };\n }, [\n maxPriceFilterAmount,\n productGridProps.products,\n sidebarProps.filtersBlock,\n ]);\n\n const hasFilters = useMemo(() => {\n return (\n !!filtersBlock?.activeFilters.filters?.length ||\n filtersBlock?.activeFilters.priceFrom !== undefined ||\n filtersBlock?.activeFilters.priceTo !== undefined\n );\n }, [\n filtersBlock?.activeFilters.filters?.length,\n filtersBlock?.activeFilters.priceFrom,\n filtersBlock?.activeFilters.priceTo,\n ]);\n\n const areCategoriesLoading = useMemo(\n () =>\n !!(\n sidebarProps.categoriesBlock &&\n sidebarProps.categoriesBlock.activeCategory === undefined\n ),\n [sidebarProps.categoriesBlock],\n );\n\n const isSidebarLoading = useMemo(\n () => areCategoriesLoading || !productGridProps.isFullyLoaded,\n [areCategoriesLoading, productGridProps.isFullyLoaded],\n );\n\n const isDefaultCategory = useMemo(\n () => !sidebarProps.categoriesBlock?.activeCategory,\n [sidebarProps.categoriesBlock?.activeCategory],\n );\n\n return (\n <S.Container size=\"desktop\">\n <LandingPageSidebar\n {...sidebarProps}\n isLoading={isSidebarLoading}\n categories={categories}\n filtersBlock={filtersBlock}\n isSearchUsed={isSearchUsed}\n productCount={productGridProps?.products?.length}\n productTypeProps={sidebarProps.productTypeBlock}\n isCartSummaryOpen={isCartSummaryOpen}\n />\n <S.ProductsContainer>\n {!sidebarProps.categoriesBlock ? (\n <S.SearchLoader height={40} />\n ) : (\n <LandingPageSearch {...searchProps} renderImage={renderImage} />\n )}\n <ProductGrid\n {...productGridProps}\n products={products}\n hasFilters={hasFilters}\n renderImage={renderImage}\n clearFilters={() => {\n filtersBlock?.onChange({});\n }}\n isLoading={areCategoriesLoading}\n isDefaultCategory={isDefaultCategory}\n />\n </S.ProductsContainer>\n </S.Container>\n );\n};\n"],"names":["LandingPagePro","sidebarProps","productGridProps","searchProps","renderImage","isCartSummaryOpen","navigation","useMenu","isSearchUsed","useMemo","searchValue","categories","navItems","productTypeBlock","activeType","primary","items","secondary","filter","item","id","NavigationItemId","UnifiIdentity","UispSoftware","map","Accessories","label","CameraSecurity","category","innerItems","innerItem","slug","slugify","products","unshift","translations","all","forEach","product","activeCategoryIndex","findIndex","isIncluded","some","defaultCollectionSlug","organizationalCollectionSlug","push","activeCategoryInnerIndex","length","maxPriceFilterAmount","amount","maximumPriceFilterLookup","get","filtersBlock","currency","Currency","Cad","categoryProducts","categoriesBlock","activeCategory","productsFilter","useCallback","activeFilters","filters","includes","variants","find","variant","isInStock","isComingSoon","isPreviouslyPurchased","isNew","isEarlyAccess","priceFrom","displayPrice","priceTo","productsSort","currentProduct","nextProduct","currentInStock","productHasSomeInStock","nextInStock","sortWeight","compareSortWeights","current","next","sortValue","Number","ProductGridSortOption","lowestPrice","highestPrice","newestProducts","oldestProducts","isFeatured","sort","minValDisplayPrice","reduce","prev","curr","minValue","maxValue","hasFilters","areCategoriesLoading","isSidebarLoading","isFullyLoaded","isDefaultCategory","jsxs","S.Container","size","children","jsx","LandingPageSidebar","isLoading","productCount","productTypeProps","S.ProductsContainer","S.SearchLoader","height","LandingPageSearch","ProductGrid","clearFilters","onChange"],"mappings":";;;;;;;;;;;;;;;;;;;;AAqDO,MAAMA,iBAAiBA,CAAC;EAAA;EAE7BC,YAAA;EACAC,gBAAA;EACAC,WAAA;EACAC,WAAA;EACAC;AACF,CAA2B,KAAA;EACnB,MAAA;IAAEC;GAAW,GAAIC,OAAQ,EAAA;EAE/B,MAAMC,YAAe,GAAAC,OAAA,CACnB,MAAM,CAAC,CAACN,WAAY,CAAAO,WAAA,EACpB,CAACP,YAAYO,WAAW,CAAA,CAC1B;EAEM,MAAAC,UAAA,GAAoDF,QAAQ,MAAM;IAChE,MAAAG,QAAA,GACJX,aAAaY,gBAAiB,CAAAC,UAAA,KAAe,UACzCR,UAAW,CAAAS,OAAA,CAAQC,KACnB,GAAAV,UAAA,CAAWW,SAAU,CAAAD,KAAA;IAC3B,MAAMA,QAAQJ,QACX,CAAAM,MAAA,CACEC,QACCA,IAAK,CAAAC,EAAA,KAAOC,iBAAiBC,aAC7B,IAAAH,IAAA,CAAKC,OAAOC,gBAAiB,CAAAE;IAAA;AAAA;AAAA;AAAA;IAAA;IAAA,CAMjC,CAECC,GAAI,CAACL,IAAS,IAAA;MACb,QAAQA,KAAKC,EAAI;QACf,KAAKC,gBAAiB,CAAAI,WAAA;UACb,OAAA;YACL,GAAGN,IAAA;YACHO,KAAO,EAAA;UAAA,CACT;QACF,KAAKL,gBAAiB,CAAAM,cAAA;UACb,OAAA;YACL,GAAGR,IAAA;YACHO,KAAO,EAAA;UAAA,CACT;QACF;UACS,OAAAP,IAAA;MACX;IAAA,CACD,CAAA,CACAK,GAAI,CAACI,QAAa,IAAA;MACjB,MAAMC,UAKA,GAAAD,QAAA,CAASZ,KAEZ,CAAAE,MAAA,CAAQC,IAAA,IAASA,IAAK,CAAAC,EAAA,KAAO,aAAa,CAAA,CAC1CI,GAAI,CAACM,SAAc,IAAA;QACX,OAAA;UACL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wD,eAAA,GAAA,eACZoD,GAAA,CAAAM,YAAA,EAAA;QAAeC,MAAQ,EAAA;OAAI,CAE5B,GAAA,eAAAP,GAAA,CAACQ,iBAAmB,EAAA;QAAA,GAAGlH;QAAaC;MAA0B,CAAA,CAAA,EAAA,eAEhEyG,GAAA,CAACS,WAAA,EAAA;QACE,GAAGpH,gBAAA;QACJ+B,QAAA;QACAmE,UAAA;QACAhG,WAAA;QACAmH,cAAcA,CAAA,KAAM;UACJnE,YAAA,EAAAoE,QAAA,CAAS,CAAA,CAAE,CAAA;QAC3B,CAAA;QACAT,SAAW,EAAAV,oBAAA;QACXG;MAAA,CACF,CAAA;KACF,CAAA;EACF,CAAA,CAAA;AAEJ,CAAA;"}
@@ -1,3 +1,3 @@
1
- export declare const Container: import("styled-components").StyledComponent<import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("../Container/Container.types").ContainerProps & import("react").RefAttributes<HTMLDivElement>>>, import("styled-components").DefaultTheme, {}, never>;
1
+ export declare const Container: import("styled-components").StyledComponent<import("react").NamedExoticComponent<import("../Container/Container.types").ContainerProps>, import("styled-components").DefaultTheme, {}, never>;
2
2
  export declare const ProductsContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
3
  export declare const SearchLoader: import("styled-components").StyledComponent<({ height, maxWidth, className, }: import("../SkeletonLoader/SkeletonLinearLoader/SkeletonLinearLoader").SkeletonLinearLoaderProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
@@ -18,7 +18,7 @@ require('../StyleableSvgImage/index.js');
18
18
  var LandingPageSidebar_styles = require('./LandingPageSidebar.styles.js');
19
19
  var StyleableSvgImage = require('../StyleableSvgImage/StyleableSvgImage.js');
20
20
  var _externalAssets_CwVZcmz1 = require("../../assets/filter.svg");
21
- var CloseIcon = require("../../assets/close.svg");
21
+ var CloseIcon = require("../../assets/close2.svg");
22
22
  var Accordion = require('../Accordion/Accordion.js');
23
23
  var context = require('../../contexts/MenuContext/context.js');
24
24
  var ProductSectionTabs = require('../ProductSectionTabs/ProductSectionTabs.js');
@@ -16,7 +16,7 @@ import '../StyleableSvgImage/index.mjs';
16
16
  import { SidebarContainer, SidebarMenuButton, SidebarBox, SidebarMenuCloseButton, SidebarBottomButton, SidebarItemContent, SidebarItemBasic, SidebarItemHeader, SidebarTitle, ProductLine, SidebarFeaturesItem, SidebarHeaderButton, CheckboxText, CheckBoxIcon, SidebarLoaderContainer, SidebarLoaderItem, SidebarLoaderItemMain } from './LandingPageSidebar.styles.mjs';
17
17
  import { StyleableSvgImage } from '../StyleableSvgImage/StyleableSvgImage.mjs';
18
18
  import _externalAssets_CwVZcmz1__default from "../../assets/filter.svg";
19
- import CloseIcon__default from "../../assets/close.svg";
19
+ import CloseIcon__default from "../../assets/close2.svg";
20
20
  import { Accordion } from '../Accordion/Accordion.mjs';
21
21
  import { useMenu } from '../../contexts/MenuContext/context.mjs';
22
22
  import { ProductSectionTabs } from '../ProductSectionTabs/ProductSectionTabs.mjs';
@@ -1,4 +1,4 @@
1
- export declare const ProductLayoutContainer: import("styled-components").StyledComponent<import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("../Container/Container.types").ContainerProps & import("react").RefAttributes<HTMLDivElement>>>, import("styled-components").DefaultTheme, {}, never>;
1
+ export declare const ProductLayoutContainer: import("styled-components").StyledComponent<import("react").NamedExoticComponent<import("../Container/Container.types").ContainerProps>, import("styled-components").DefaultTheme, {}, never>;
2
2
  export declare const ProductLayoutProductSectionWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
3
  export declare const ProductLayoutLeftSide: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
4
  export declare const ProductLayoutRightSide: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -1,7 +1,7 @@
1
- export declare const Container: import("styled-components").StyledComponent<import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("../Container/Container.types").ContainerProps & import("react").RefAttributes<HTMLDivElement>>>, import("styled-components").DefaultTheme, {
1
+ export declare const Container: import("styled-components").StyledComponent<import("react").NamedExoticComponent<import("../Container/Container.types").ContainerProps>, import("styled-components").DefaultTheme, {
2
2
  imageCarouselFullScreen?: boolean;
3
3
  }, never>;
4
- export declare const UpsellContainer: import("styled-components").StyledComponent<import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("../Container/Container.types").ContainerProps & import("react").RefAttributes<HTMLDivElement>>>, import("styled-components").DefaultTheme, {
4
+ export declare const UpsellContainer: import("styled-components").StyledComponent<import("react").NamedExoticComponent<import("../Container/Container.types").ContainerProps>, import("styled-components").DefaultTheme, {
5
5
  imageCarouselFullScreen?: boolean;
6
6
  }, never>;
7
7
  export declare const ProductSection: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
@@ -44,7 +44,7 @@ export declare const DescriptionIconWrap: import("styled-components").StyledComp
44
44
  export declare const BREADCRUMBS_HEIGHT: number;
45
45
  export declare const LAYOUT_DIVIDER_HEIGHT = 1;
46
46
  export declare const ProductLayoutDivider: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
47
- export declare const ProductLayoutContainer: import("styled-components").StyledComponent<import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("../Container/Container.types").ContainerProps & import("react").RefAttributes<HTMLDivElement>>>, import("styled-components").DefaultTheme, {}, never>;
47
+ export declare const ProductLayoutContainer: import("styled-components").StyledComponent<import("react").NamedExoticComponent<import("../Container/Container.types").ContainerProps>, import("styled-components").DefaultTheme, {}, never>;
48
48
  export declare const ProductLayoutBreadcrumbs: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../Breadcrumbs/Breadcrumbs.types").BreadcrumbsProps & import("react").RefAttributes<HTMLDivElement | null>>, import("styled-components").DefaultTheme, {
49
49
  showDivider?: boolean;
50
50
  }, never>;
@@ -1,7 +1,7 @@
1
- export declare const Container: import("styled-components").StyledComponent<import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("../Container/Container.types").ContainerProps & import("react").RefAttributes<HTMLDivElement>>>, import("styled-components").DefaultTheme, {
1
+ export declare const Container: import("styled-components").StyledComponent<import("react").NamedExoticComponent<import("../Container/Container.types").ContainerProps>, import("styled-components").DefaultTheme, {
2
2
  imageCarouselFullScreen?: boolean;
3
3
  }, never>;
4
- export declare const UpsellContainer: import("styled-components").StyledComponent<import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("../Container/Container.types").ContainerProps & import("react").RefAttributes<HTMLDivElement>>>, import("styled-components").DefaultTheme, {
4
+ export declare const UpsellContainer: import("styled-components").StyledComponent<import("react").NamedExoticComponent<import("../Container/Container.types").ContainerProps>, import("styled-components").DefaultTheme, {
5
5
  imageCarouselFullScreen?: boolean;
6
6
  }, never>;
7
7
  export declare const ProductSection: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
@@ -41,7 +41,7 @@ export declare const TopologyScheme: import("styled-components").StyledComponent
41
41
  export declare const DescriptionItem: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
42
42
  export declare const DescriptionIconCircle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
43
43
  export declare const DescriptionIconWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
44
- export declare const ProductLayoutContainer: import("styled-components").StyledComponent<import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("../Container/Container.types").ContainerProps & import("react").RefAttributes<HTMLDivElement>>>, import("styled-components").DefaultTheme, {}, never>;
44
+ export declare const ProductLayoutContainer: import("styled-components").StyledComponent<import("react").NamedExoticComponent<import("../Container/Container.types").ContainerProps>, import("styled-components").DefaultTheme, {}, never>;
45
45
  export declare const ProductLayoutHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
46
46
  export declare const ProductLayoutTitle: import("styled-components").StyledComponent<"h1", import("styled-components").DefaultTheme, {}, never>;
47
47
  export declare const ProductLayoutDescription: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, {}, never>;
@@ -1,4 +1,4 @@
1
- export declare const Wrap: import("styled-components").StyledComponent<import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("../Container/Container.types").ContainerProps & import("react").RefAttributes<HTMLDivElement>>>, import("styled-components").DefaultTheme, {}, never>;
1
+ export declare const Wrap: import("styled-components").StyledComponent<import("react").NamedExoticComponent<import("../Container/Container.types").ContainerProps>, import("styled-components").DefaultTheme, {}, never>;
2
2
  export declare const HeadingWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
3
  export declare const Heading: import("styled-components").StyledComponent<"h2", import("styled-components").DefaultTheme, {}, never>;
4
4
  export declare const SubHeading: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, {}, never>;