@ubnt/store.core 9.13.0-alpha.3 → 9.13.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 (237) hide show
  1. package/CHANGELOG.md +0 -111
  2. package/lib/_virtual/_virtual_multi-entry.js +12 -27
  3. package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
  4. package/lib/_virtual/_virtual_multi-entry.mjs +10 -14
  5. package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
  6. package/lib/assets/close2.svg +3 -2
  7. package/lib/assets/close3.svg +2 -3
  8. package/lib/assets/pause.svg +3 -3
  9. package/lib/assets/pause2.svg +3 -3
  10. package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +1 -1
  11. package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
  12. package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +1 -1
  13. package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +2 -2
  14. package/lib/components/LandingPagePro/LandingPagePro.d.ts +0 -3
  15. package/lib/components/LandingPagePro/LandingPagePro.js +3 -3
  16. package/lib/components/LandingPagePro/LandingPagePro.js.map +1 -1
  17. package/lib/components/LandingPagePro/LandingPagePro.mjs +2 -2
  18. package/lib/components/LandingPagePro/LandingPagePro.mjs.map +1 -1
  19. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +1 -1
  20. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.mjs +1 -1
  21. package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.js +1 -1
  22. package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.mjs +2 -2
  23. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js +15 -311
  24. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js.map +1 -1
  25. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs +15 -309
  26. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs.map +1 -1
  27. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.js +22 -38
  28. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.js.map +1 -1
  29. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.mjs +22 -38
  30. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.mjs.map +1 -1
  31. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.d.ts +2 -10
  32. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js +0 -2
  33. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js.map +1 -1
  34. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs +0 -2
  35. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs.map +1 -1
  36. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/HddSlots/HddSlots.d.ts +1 -1
  37. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/HddSlots/HddSlots.js +4 -5
  38. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/HddSlots/HddSlots.js.map +1 -1
  39. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/HddSlots/HddSlots.mjs +4 -5
  40. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/HddSlots/HddSlots.mjs.map +1 -1
  41. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +1 -1
  42. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js.map +1 -1
  43. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
  44. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs.map +1 -1
  45. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.js +0 -2
  46. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.js.map +1 -1
  47. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.mjs +0 -2
  48. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.mjs.map +1 -1
  49. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js +1 -1
  50. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js.map +1 -1
  51. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.mjs +1 -1
  52. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.mjs.map +1 -1
  53. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +2 -2
  54. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js.map +1 -1
  55. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
  56. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs.map +1 -1
  57. package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +2 -1
  58. package/lib/components/ResourceCalculatorV1/ResourceCalculator.js.map +1 -1
  59. package/lib/components/ResourceCalculatorV1/ResourceCalculator.mjs +2 -1
  60. package/lib/components/ResourceCalculatorV1/ResourceCalculator.mjs.map +1 -1
  61. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.d.ts +1 -1
  62. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.js +1 -3
  63. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.js.map +1 -0
  64. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.mjs +1 -3
  65. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.mjs.map +1 -0
  66. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.styles.d.ts +0 -1
  67. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.styles.js +7 -10
  68. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.js.map +1 -0
  69. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.styles.mjs +7 -10
  70. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.mjs.map +1 -0
  71. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.types.d.ts +0 -1
  72. package/lib/components/ResourceCalculatorV1/components/index.d.ts +1 -0
  73. package/lib/components/ResourceCalculatorV1/components/index.js +5 -0
  74. package/lib/{utils/money/allocators → components/ResourceCalculatorV1/components}/index.js.map +1 -1
  75. package/lib/components/ResourceCalculatorV1/components/index.mjs +3 -0
  76. package/lib/{utils/money/allocators → components/ResourceCalculatorV1/components}/index.mjs.map +1 -1
  77. package/lib/components/ResourceCalculatorV1/translations/en.json.js +1 -4
  78. package/lib/components/ResourceCalculatorV1/translations/en.json.js.map +1 -1
  79. package/lib/components/ResourceCalculatorV1/translations/en.json.mjs +1 -4
  80. package/lib/components/ResourceCalculatorV1/translations/en.json.mjs.map +1 -1
  81. package/lib/components/ResourceCalculatorV1/translations/useResourceCalculatorTranslation.d.ts +2 -2
  82. package/lib/components/VideoPlayerNew/VideoPlayer.js +2 -2
  83. package/lib/components/VideoPlayerNew/VideoPlayer.mjs +2 -2
  84. package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
  85. package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
  86. package/lib/components/VideoPlayerNew/assets/pause.svg.js +1 -1
  87. package/lib/components/VideoPlayerNew/assets/pause.svg.mjs +2 -2
  88. package/lib/components/index.d.ts +0 -1
  89. package/lib/components/index.js +0 -2
  90. package/lib/components/index.js.map +1 -1
  91. package/lib/components/index.mjs +0 -2
  92. package/lib/components/index.mjs.map +1 -1
  93. package/lib/constants/icons/options/colors/black.svg.js +5 -5
  94. package/lib/constants/icons/options/colors/index.js +3 -3
  95. package/lib/constants/icons/options/styles/black.svg.js +5 -5
  96. package/lib/constants/icons/options/styles/index.js +3 -3
  97. package/lib/constants/optionIcons.js +6 -6
  98. package/lib/constants/optionIcons.mjs +4 -4
  99. package/lib/constants/proStoreCategories/mapping/index.d.ts +0 -1
  100. package/lib/constants/proStoreCategories/mapping/index.js +10 -15
  101. package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
  102. package/lib/constants/proStoreCategories/mapping/index.mjs +10 -15
  103. package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
  104. package/lib/constants/proStoreCategories/mapping/unifi.d.ts +1 -2
  105. package/lib/constants/proStoreCategories/mapping/unifi.js +0 -1
  106. package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
  107. package/lib/constants/proStoreCategories/mapping/unifi.mjs +0 -1
  108. package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
  109. package/lib/constants/proStoreCategories/translations/en.json.js +0 -3
  110. package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
  111. package/lib/constants/proStoreCategories/translations/en.json.mjs +1 -3
  112. package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
  113. package/lib/constants/proStoreCategories/translations/fr.json.js +1 -1
  114. package/lib/constants/proStoreCategories/translations/fr.json.mjs +1 -1
  115. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +1 -1
  116. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +1 -1
  117. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +1 -1
  118. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +1 -1
  119. package/lib/helpers/index.d.ts +0 -1
  120. package/lib/helpers/index.js +0 -11
  121. package/lib/helpers/index.js.map +1 -1
  122. package/lib/helpers/index.mjs +0 -1
  123. package/lib/helpers/index.mjs.map +1 -1
  124. package/lib/types/index.d.ts +0 -1
  125. package/lib/types/index.js +0 -2
  126. package/lib/types/index.js.map +1 -1
  127. package/lib/types/index.mjs +0 -1
  128. package/lib/types/index.mjs.map +1 -1
  129. package/lib/utils/array.d.ts +0 -4
  130. package/lib/utils/array.js +0 -10
  131. package/lib/utils/array.js.map +1 -1
  132. package/lib/utils/array.mjs +1 -10
  133. package/lib/utils/array.mjs.map +1 -1
  134. package/lib/utils/money/constants.d.ts +25 -56
  135. package/lib/utils/money/constants.js +7 -72
  136. package/lib/utils/money/constants.js.map +1 -1
  137. package/lib/utils/money/constants.mjs +7 -70
  138. package/lib/utils/money/constants.mjs.map +1 -1
  139. package/lib/utils/money/format.d.ts +5 -10
  140. package/lib/utils/money/format.js +14 -22
  141. package/lib/utils/money/format.js.map +1 -1
  142. package/lib/utils/money/format.mjs +16 -23
  143. package/lib/utils/money/format.mjs.map +1 -1
  144. package/lib/utils/money/index.d.ts +1 -4
  145. package/lib/utils/money/index.js +8 -26
  146. package/lib/utils/money/index.js.map +1 -1
  147. package/lib/utils/money/index.mjs +4 -8
  148. package/lib/utils/money/index.mjs.map +1 -1
  149. package/lib/utils/money/misc.d.ts +28 -68
  150. package/lib/utils/money/misc.js +64 -35
  151. package/lib/utils/money/misc.js.map +1 -1
  152. package/lib/utils/money/misc.mjs +43 -32
  153. package/lib/utils/money/misc.mjs.map +1 -1
  154. package/lib/utils/money/tax.d.ts +2 -38
  155. package/lib/utils/money/tax.js +10 -46
  156. package/lib/utils/money/tax.js.map +1 -1
  157. package/lib/utils/money/tax.mjs +11 -42
  158. package/lib/utils/money/tax.mjs.map +1 -1
  159. package/lib/utils/money/types.d.ts +3 -78
  160. package/lib/utils/number.d.ts +1 -1
  161. package/lib/utils/number.js +1 -1
  162. package/lib/utils/number.js.map +1 -1
  163. package/lib/utils/number.mjs +1 -1
  164. package/lib/utils/number.mjs.map +1 -1
  165. package/lib/utils/validations.d.ts +15 -0
  166. package/lib/utils/validations.js +23 -0
  167. package/lib/utils/validations.js.map +1 -0
  168. package/lib/utils/validations.mjs +21 -0
  169. package/lib/utils/validations.mjs.map +1 -0
  170. package/package.json +1 -1
  171. package/lib/assets/efg.png +0 -0
  172. package/lib/assets/ucg-max.png +0 -0
  173. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.js.map +0 -1
  174. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.mjs.map +0 -1
  175. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.js.map +0 -1
  176. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.mjs.map +0 -1
  177. package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.js +0 -27
  178. package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.js.map +0 -1
  179. package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.mjs +0 -3
  180. package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.mjs.map +0 -1
  181. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.js +0 -27
  182. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.js.map +0 -1
  183. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.mjs +0 -3
  184. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.mjs.map +0 -1
  185. package/lib/helpers/product.d.ts +0 -87
  186. package/lib/helpers/product.js +0 -346
  187. package/lib/helpers/product.js.map +0 -1
  188. package/lib/helpers/product.mjs +0 -335
  189. package/lib/helpers/product.mjs.map +0 -1
  190. package/lib/types/product.d.ts +0 -87
  191. package/lib/types/product.js +0 -14
  192. package/lib/types/product.js.map +0 -1
  193. package/lib/types/product.mjs +0 -13
  194. package/lib/types/product.mjs.map +0 -1
  195. package/lib/utils/money/allocators/fixedAmount.d.ts +0 -26
  196. package/lib/utils/money/allocators/fixedAmount.js +0 -55
  197. package/lib/utils/money/allocators/fixedAmount.js.map +0 -1
  198. package/lib/utils/money/allocators/fixedAmount.mjs +0 -53
  199. package/lib/utils/money/allocators/fixedAmount.mjs.map +0 -1
  200. package/lib/utils/money/allocators/index.d.ts +0 -2
  201. package/lib/utils/money/allocators/index.js +0 -8
  202. package/lib/utils/money/allocators/index.mjs +0 -4
  203. package/lib/utils/money/allocators/productAmount.d.ts +0 -13
  204. package/lib/utils/money/allocators/productAmount.js +0 -110
  205. package/lib/utils/money/allocators/productAmount.js.map +0 -1
  206. package/lib/utils/money/allocators/productAmount.mjs +0 -108
  207. package/lib/utils/money/allocators/productAmount.mjs.map +0 -1
  208. package/lib/utils/money/exchangeRate.d.ts +0 -31
  209. package/lib/utils/money/exchangeRate.js +0 -27
  210. package/lib/utils/money/exchangeRate.js.map +0 -1
  211. package/lib/utils/money/exchangeRate.mjs +0 -23
  212. package/lib/utils/money/exchangeRate.mjs.map +0 -1
  213. package/lib/utils/money/misc.private.d.ts +0 -23
  214. package/lib/utils/money/misc.private.js +0 -46
  215. package/lib/utils/money/misc.private.js.map +0 -1
  216. package/lib/utils/money/misc.private.mjs +0 -21
  217. package/lib/utils/money/misc.private.mjs.map +0 -1
  218. package/lib/utils/money/shipping.d.ts +0 -5
  219. package/lib/utils/money/shipping.js +0 -8
  220. package/lib/utils/money/shipping.js.map +0 -1
  221. package/lib/utils/money/shipping.mjs +0 -6
  222. package/lib/utils/money/shipping.mjs.map +0 -1
  223. package/lib/utils/money/tax.private.d.ts +0 -17
  224. package/lib/utils/money/tax.private.js +0 -65
  225. package/lib/utils/money/tax.private.js.map +0 -1
  226. package/lib/utils/money/tax.private.mjs +0 -60
  227. package/lib/utils/money/tax.private.mjs.map +0 -1
  228. package/lib/utils/productSort.d.ts +0 -41
  229. package/lib/utils/productSort.js +0 -66
  230. package/lib/utils/productSort.js.map +0 -1
  231. package/lib/utils/productSort.mjs +0 -59
  232. package/lib/utils/productSort.mjs.map +0 -1
  233. /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.d.ts +0 -0
  234. /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.js +0 -0
  235. /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.js.map +0 -0
  236. /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.mjs +0 -0
  237. /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.mjs.map +0 -0
package/CHANGELOG.md CHANGED
@@ -6,22 +6,6 @@
6
6
 
7
7
  ## Releases
8
8
 
9
- ### 9.13.0-alpha.3
10
-
11
- - [Feat] [NEP-3478](https://ubiquiti.atlassian.net/browse/NEP-3478) Add HorizontalOptionSelect
12
-
13
- ### 9.13.0-alpha.2
14
-
15
- - [Fix] [NEP-3623](https://ubiquiti.atlassian.net/browse/NEP-3623) Disable "RJ45 & Copper" category in BR store
16
-
17
- ### 9.13.0-alpha.1
18
-
19
- - [Feat] [MIC-383](https://ubiquiti.atlassian.net/browse/MIC-383) Add coming soon message to PowerAmp
20
-
21
- ### 9.13.0-alpha.0
22
-
23
- - Upstream master
24
-
25
9
  ### 9.13.0
26
10
 
27
11
  - [Feat] [MIC-383](https://ubiquiti.atlassian.net/browse/MIC-383) `PowerAmp` release changes:
@@ -40,64 +24,15 @@
40
24
  - [Fix] [NEP-3402](https://ubiquiti.atlassian.net/browse/NEP-3402) Add forced features for consoles in resource calculator
41
25
  - [Feat] [NEP-3419](https://ubiquiti.atlassian.net/browse/NEP-3419) Update cart icon logic
42
26
 
43
- ### 9.12.0.alpha.9
44
-
45
- - [Feat] [MIC-383](https://ubiquiti.atlassian.net/browse/MIC-383) Add translations, update content
46
-
47
- ### 9.12.0.alpha.8
48
-
49
- - [Feat] [MIC-383](https://ubiquiti.atlassian.net/browse/MIC-383) Update pro store mapping with the new "Premium Audio" category and rename "Professional A/V" to "Digital Signage"
50
-
51
- ### 9.12.0.alpha.7
52
-
53
- - [Feat] [MIC-383](https://ubiquiti.atlassian.net/browse/MIC-383) Update Power Amp stuff
54
-
55
- ### 9.12.0.alpha.6
56
-
57
- - [Feat] [MIC-383](https://ubiquiti.atlassian.net/browse/MIC-383) Add "Pro A/V Support" property to switching Compare tables
58
-
59
- ### 9.12.0.alpha.5
60
-
61
- - [Feat] Add global site config for uwc.ui.com, remove SiteId.Experts as it is deprecated
62
-
63
- ### 9.12.0.alpha.4
64
-
65
- - Upstream master branch
66
-
67
27
  ### 9.11.1
68
28
 
69
29
  - [Bug] [NEP-3606](https://ubiquiti.atlassian.net/browse/NEP-3606) Disable "Max" menu items in unavailable stores
70
30
 
71
- ### 9.12.0-alpha.3
72
-
73
- - [Feat] [NEP-3479](https://ubiquiti.atlassian.net/browse/NEP-3479) Enable EFG and update its data values
74
-
75
- ### 9.12.0-alpha.2
76
-
77
- - [Feat] [NEP-3479](https://ubiquiti.atlassian.net/browse/NEP-3479)
78
- - Add UCG Max to the Resource Calculator
79
- - Add options for device specific storage drive sizes.
80
-
81
- ### 9.12.0-alpha.1
82
-
83
- - [Feat] [MIC-378](https://ubiquiti.atlassian.net/browse/MIC-378) Move product helpers from SF to SH
84
-
85
- ### 9.12.0-alpha.0
86
-
87
- - [Feat] [MIC-383](https://ubiquiti.atlassian.net/browse/MIC-383) `PowerAmp` release changes:
88
- - Update menu mapping
89
- - Add `PowerAmp` to ExploreProduct component
90
- - Remove unused stuff from ExploreProduct and do a small refactor
91
-
92
31
  ### 9.11.0
93
32
 
94
33
  - [Feat] [NEP-3494](https://ubiquiti.atlassian.net/browse/NEP-3494) Split "Cables & Modules" category into two categories -> "RJ45 & Copper" and "SFP & Fiber"
95
34
  - [Feat] [NEP-3353](https://ubiquiti.atlassian.net/browse/NEP-3353) Hide menu items that are not available in India
96
35
 
97
- ### 9.11.0-alpha.0
98
-
99
- - Upstream master branch
100
-
101
36
  ### 9.10.1
102
37
 
103
38
  - [Fix] [MIC-167](https://ubiquiti.atlassian.net/browse/MIC-167) Fix X icon and "Cookie Settings" color in dark motif
@@ -106,57 +41,11 @@
106
41
 
107
42
  - [Feat] [MIC-167](https://ubiquiti.atlassian.net/browse/MIC-167) Revive Footer component for shared usage between projects
108
43
 
109
- ### 9.9.0-alpha.13
110
-
111
- - [Feat] [MIC-167](https://ubiquiti.atlassian.net/browse/MIC-167) Fix layouting issues on different projects, add Downloads link at the top
112
-
113
- ### 9.9.0-alpha.12
114
-
115
- - [Feat] [NEP-3494](https://ubiquiti.atlassian.net/browse/NEP-3494) Update cables item order
116
-
117
- ### 9.9.0-alpha.11
118
-
119
- - [Fix] [MIC-167](https://ubiquiti.atlassian.net/browse/MIC-167) Fix font-size and line-height issues on microsites
120
-
121
- ### 9.9.0-alpha.10
122
-
123
- - [Feat] [MIC-315](https://ubiquiti.atlassian.net/browse/MIC-315) Fix links
124
-
125
- ### 9.9.0-alpha.9
126
-
127
- - [Fix] [MIC-167](https://ubiquiti.atlassian.net/browse/MIC-167) Fix font-family for email placeholder
128
-
129
- ### 9.9.0-alpha.8
130
-
131
- - [Fix] [MIC-167](https://ubiquiti.atlassian.net/browse/MIC-167) Fix cookie button styling
132
-
133
- ### 9.9.0-alpha.7
134
-
135
- - [Fix] [MIC-167](https://ubiquiti.atlassian.net/browse/MIC-167) Fix footer styling
136
-
137
- ### 9.9.0-alpha.6
138
-
139
- - [Fix] [MIC-167](https://ubiquiti.atlassian.net/browse/MIC-167) Open Mailchimp screen in new tab
140
-
141
- ### 9.9.0-alpha.5
142
-
143
- - [Feat] [MIC-167](https://ubiquiti.atlassian.net/browse/MIC-167) Revive Footer component for shared usage between projects (don't use Store BE for subscribing)
144
-
145
44
  ### 9.9.1
146
45
 
147
46
  - [Fix] [MIC-315](https://ubiquiti.atlassian.net/browse/MIC-315) Fix product links for UISP compare tables and update property icons
148
47
  - [Fix] [NEP-3353](https://ubiquiti.atlassian.net/browse/NEP-3353) Hide menu items that are not available in India
149
48
 
150
- ### 9.9.0-alpha.4
151
-
152
- - [Feat] [NEP-3494](https://ubiquiti.atlassian.net/browse/NEP-3494) Split "Cables & Modules" category into two categories -> "RJ45 & Copper" and "SFP & Fiber"
153
- - [Fix] [NEP-3149](https://ubiquiti.atlassian.net/browse/NEP-3149) Fix Resource Calculator overlay and remove footer note if no content
154
- - [Feat] [NEP-3419](https://ubiquiti.atlassian.net/browse/NEP-3419) Update cart icon logic
155
- - [Fix] [NEP-3402](https://ubiquiti.atlassian.net/browse/NEP-3402) Add forced features for consoles in resource calculator
156
- - [Feat] [MIC-167](https://ubiquiti.atlassian.net/browse/MIC-167) Revive Footer component for shared usage between projects
157
- - [NEP-3300](https://ubiquiti.atlassian.net/browse/NEP-3300) Add NAS category in pro store
158
- - [Feat] [NEP-3353](https://ubiquiti.atlassian.net/browse/NEP-3353) Hide menu items that are not available in India
159
-
160
49
  ### 9.9.0
161
50
 
162
51
  - [Feat] [MIC-315](https://ubiquiti.atlassian.net/browse/MIC-315) Updates for UISP.com:
@@ -62,25 +62,23 @@ var index$O = require('../components/VideoPlayerNew/index.js');
62
62
  var index$P = require('../components/ResourceCalculatorV1/index.js');
63
63
  var index$Q = require('../components/CartIcon/index.js');
64
64
  var index$R = require('../components/Header/AccountMenu/index.js');
65
- var index$S = require('../components/QuantityInput/index.js');
66
- var index$T = require('../contexts/MenuContext/index.js');
65
+ var index$S = require('../contexts/MenuContext/index.js');
67
66
  var useLockBodyScrollCustom = require('../hooks/useLockBodyScrollCustom.js');
68
67
  var useTestMediaElementVolumeSetter = require('../hooks/useTestMediaElementVolumeSetter.js');
69
68
  var useTranslation = require('../hooks/useTranslation.js');
70
69
  var useScrollToY = require('../hooks/useScrollToY.js');
71
70
  var constants = require('../types/constants.js');
72
71
  var generated = require('../types/generated.js');
73
- var product = require('../types/product.js');
74
72
  var url = require('../utils/url.js');
75
73
  var misc = require('../utils/money/misc.js');
76
74
  var number = require('../utils/number.js');
77
75
  var string = require('../utils/string.js');
78
76
  var array = require('../utils/array.js');
79
- var index$U = require('../utils/nextjs/index.js');
77
+ var index$T = require('../utils/nextjs/index.js');
80
78
  var country = require('../utils/country.js');
81
79
  var countriesAndZones = require('../utils/countriesAndZones.js');
82
80
  var address = require('../utils/address.js');
83
- var index$V = require('../utils/tax/index.js');
81
+ var index$U = require('../utils/tax/index.js');
84
82
  var zod = require('../utils/zod.js');
85
83
  var collectionSlug = require('../utils/collectionSlug.js');
86
84
  var shipping = require('../utils/shipping.js');
@@ -88,15 +86,14 @@ var measures = require('../utils/measures.js');
88
86
  var errors = require('../utils/errors.js');
89
87
  var tags = require('../utils/tags.js');
90
88
  var wattage = require('../utils/wattage.js');
91
- var product$1 = require('../utils/product.js');
89
+ var product = require('../utils/product.js');
92
90
  var asset = require('../utils/asset.js');
93
91
  var imageOptimizer = require('../utils/imageOptimizer.js');
94
92
  var styles = require('../utils/styles.js');
95
93
  var storeId = require('../utils/storeId.js');
96
- var index$W = require('../constants/proStoreCategories/index.js');
97
- var index$X = require('../constants/proStoreFilters/index.js');
94
+ var index$V = require('../constants/proStoreCategories/index.js');
95
+ var index$W = require('../constants/proStoreFilters/index.js');
98
96
  var proStoreCategories = require('../helpers/proStoreCategories.js');
99
- var product$2 = require('../helpers/product.js');
100
97
  var smartcat = require('../apis/smartcat.js');
101
98
  exports.Avatar = index;
102
99
  exports.Button = index$1;
@@ -152,8 +149,7 @@ exports.VideoPlayer = index$O;
152
149
  exports.ResourceCalculatorV1 = index$P;
153
150
  exports.CartIcon = index$Q;
154
151
  exports.AccountMenu = index$R;
155
- exports.QuantityInput = index$S;
156
- exports.MenuContext = index$T;
152
+ exports.MenuContext = index$S;
157
153
  exports.useLockBodyScrollCustom = useLockBodyScrollCustom.useLockBodyScrollCustom;
158
154
  exports.useTestMediaElementVolumeSetter = useTestMediaElementVolumeSetter.useTestMediaElementVolumeSetter;
159
155
  exports.useTranslation = useTranslation.useTranslation;
@@ -171,17 +167,16 @@ exports.Unit = generated.Unit;
171
167
  exports.UnitSystem = generated.UnitSystem;
172
168
  exports.UserAssignedCountryCode = generated.UserAssignedCountryCode;
173
169
  exports.ValidateTaxStatus = generated.ValidateTaxStatus;
174
- exports.DisplayProductStatus = product.DisplayProductStatus;
175
170
  exports.url = url;
176
171
  exports.money = misc;
177
172
  exports.number = number;
178
173
  exports.string = string;
179
174
  exports.array = array;
180
- exports.nextjs = index$U;
175
+ exports.nextjs = index$T;
181
176
  exports.country = country;
182
177
  exports.countryAndZones = countriesAndZones;
183
178
  exports.address = address;
184
- exports.tax = index$V;
179
+ exports.tax = index$U;
185
180
  exports.zod = zod;
186
181
  exports.collectionSlug = collectionSlug;
187
182
  exports.shipping = shipping;
@@ -189,13 +184,13 @@ exports.measures = measures;
189
184
  exports.errors = errors;
190
185
  exports.tags = tags;
191
186
  exports.wattage = wattage;
192
- exports.product = product$1;
187
+ exports.product = product;
193
188
  exports.asset = asset;
194
189
  exports.imageOptimizer = imageOptimizer;
195
190
  exports.styles = styles;
196
191
  exports.storeId = storeId;
197
- exports.proStoreCategories = index$W;
198
- exports.proStoreFilters = index$X;
192
+ exports.proStoreCategories = index$V;
193
+ exports.proStoreFilters = index$W;
199
194
  exports.getCategoriesBySubcategory = proStoreCategories.getCategoriesBySubcategory;
200
195
  exports.getLocalizedCategories = proStoreCategories.getLocalizedCategories;
201
196
  exports.getProductLineByCategory = proStoreCategories.getProductLineByCategory;
@@ -204,15 +199,5 @@ exports.getSubCategoryIdByCollectionSlug = proStoreCategories.getSubCategoryIdBy
204
199
  exports.isValidSubCategory = proStoreCategories.isValidSubCategory;
205
200
  exports.parseCategories = proStoreCategories.parseCategories;
206
201
  exports.useTranslatedCategories = proStoreCategories.useTranslatedCategories;
207
- exports.COLLECTION_SECTION_OTHER_ID = product$2.COLLECTION_SECTION_OTHER_ID;
208
- exports.HDDProductSlugs = product$2.HDDProductSlugs;
209
- exports.MagicCollectionTags = product$2.MagicCollectionTags;
210
- exports.ProductOptions = product$2.ProductOptions;
211
- exports.createSectionHierarchy = product$2.createSectionHierarchy;
212
- exports.getProStoreCategory = product$2.getProStoreCategory;
213
- exports.getProductGroups = product$2.getProductGroups;
214
- exports.getStoreProducts = product$2.getStoreProducts;
215
- exports.isNonNullish = product$2.isNonNullish;
216
- exports.removeExcludedProducts = product$2.removeExcludedProducts;
217
202
  exports.smartcat = smartcat;
218
203
  //# sourceMappingURL=_virtual_multi-entry.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"_virtual_multi-entry.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"_virtual_multi-entry.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -114,17 +114,14 @@ import * as index$Q from '../components/CartIcon/index.mjs';
114
114
  export { index$Q as CartIcon };
115
115
  import * as index$R from '../components/Header/AccountMenu/index.mjs';
116
116
  export { index$R as AccountMenu };
117
- import * as index$S from '../components/QuantityInput/index.mjs';
118
- export { index$S as QuantityInput };
119
- import * as index$T from '../contexts/MenuContext/index.mjs';
120
- export { index$T as MenuContext };
117
+ import * as index$S from '../contexts/MenuContext/index.mjs';
118
+ export { index$S as MenuContext };
121
119
  export { useLockBodyScrollCustom } from '../hooks/useLockBodyScrollCustom.mjs';
122
120
  export { useTestMediaElementVolumeSetter } from '../hooks/useTestMediaElementVolumeSetter.mjs';
123
121
  export { useTranslation, useTranslationRaw } from '../hooks/useTranslation.mjs';
124
122
  export { useScrollToY } from '../hooks/useScrollToY.mjs';
125
123
  export { AddressUsageType, Language } from '../types/constants.mjs';
126
124
  export { AddressType, CountryCode, Currency, GlobalStoreId, ProductLine, StoreId, Unit, UnitSystem, UserAssignedCountryCode, ValidateTaxStatus } from '../types/generated.mjs';
127
- export { DisplayProductStatus } from '../types/product.mjs';
128
125
  import * as url from '../utils/url.mjs';
129
126
  export { url };
130
127
  import * as misc from '../utils/money/misc.mjs';
@@ -135,16 +132,16 @@ import * as string from '../utils/string.mjs';
135
132
  export { string };
136
133
  import * as array from '../utils/array.mjs';
137
134
  export { array };
138
- import * as index$U from '../utils/nextjs/index.mjs';
139
- export { index$U as nextjs };
135
+ import * as index$T from '../utils/nextjs/index.mjs';
136
+ export { index$T as nextjs };
140
137
  import * as country from '../utils/country.mjs';
141
138
  export { country };
142
139
  import * as countriesAndZones from '../utils/countriesAndZones.mjs';
143
140
  export { countriesAndZones as countryAndZones };
144
141
  import * as address from '../utils/address.mjs';
145
142
  export { address };
146
- import * as index$V from '../utils/tax/index.mjs';
147
- export { index$V as tax };
143
+ import * as index$U from '../utils/tax/index.mjs';
144
+ export { index$U as tax };
148
145
  import * as zod from '../utils/zod.mjs';
149
146
  export { zod };
150
147
  import * as collectionSlug from '../utils/collectionSlug.mjs';
@@ -169,12 +166,11 @@ import * as styles from '../utils/styles.mjs';
169
166
  export { styles };
170
167
  import * as storeId from '../utils/storeId.mjs';
171
168
  export { storeId };
172
- import * as index$W from '../constants/proStoreCategories/index.mjs';
173
- export { index$W as proStoreCategories };
174
- import * as index$X from '../constants/proStoreFilters/index.mjs';
175
- export { index$X as proStoreFilters };
169
+ import * as index$V from '../constants/proStoreCategories/index.mjs';
170
+ export { index$V as proStoreCategories };
171
+ import * as index$W from '../constants/proStoreFilters/index.mjs';
172
+ export { index$W as proStoreFilters };
176
173
  export { getCategoriesBySubcategory, getLocalizedCategories, getProductLineByCategory, getProductLineBySubcategory, getSubCategoryIdByCollectionSlug, isValidSubCategory, parseCategories, useTranslatedCategories } from '../helpers/proStoreCategories.mjs';
177
- export { COLLECTION_SECTION_OTHER_ID, HDDProductSlugs, MagicCollectionTags, ProductOptions, createSectionHierarchy, getProStoreCategory, getProductGroups, getStoreProducts, isNonNullish, removeExcludedProducts } from '../helpers/product.mjs';
178
174
  import * as smartcat from '../apis/smartcat.mjs';
179
175
  export { smartcat };
180
176
  //# sourceMappingURL=_virtual_multi-entry.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"_virtual_multi-entry.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"_virtual_multi-entry.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,3 +1,4 @@
1
- <svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path fill-rule="evenodd" clip-rule="evenodd" d="M5.7175 18.6475C5.4275 18.9375 5.4275 19.4175 5.7175 19.7075C6.0075 19.9975 6.4875 19.9975 6.7775 19.7075L12.9675 13.5175L19.1575 19.7075C19.4475 19.9975 19.9275 19.9975 20.2175 19.7075C20.5075 19.4175 20.5075 18.9375 20.2175 18.6475L14.0275 12.4675L20.2175 6.2775C20.5075 5.9875 20.5075 5.5075 20.2175 5.2175C19.9275 4.9275 19.4475 4.9275 19.1575 5.2175L12.9675 11.4075L6.7775 5.2175C6.4875 4.9275 6.0075 4.9275 5.7175 5.2175C5.4275 5.5075 5.4275 5.9875 5.7175 6.2775L11.9075 12.4675L5.7175 18.6475Z" fill="#36373C"/>
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none"
2
+ xmlns="http://www.w3.org/2000/svg">
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M5.2175 18.6475C4.9275 18.9375 4.9275 19.4175 5.2175 19.7075C5.5075 19.9975 5.9875 19.9975 6.2775 19.7075L12.4675 13.5175L18.6575 19.7075C18.9475 19.9975 19.4275 19.9975 19.7175 19.7075C20.0075 19.4175 20.0075 18.9375 19.7175 18.6475L13.5275 12.4675L19.7175 6.2775C20.0075 5.9875 20.0075 5.5075 19.7175 5.2175C19.4275 4.9275 18.9475 4.9275 18.6575 5.2175L12.4675 11.4075L6.2775 5.2175C5.9875 4.9275 5.5075 4.9275 5.2175 5.2175C4.9275 5.5075 4.9275 5.9875 5.2175 6.2775L11.4075 12.4675L5.2175 18.6475Z" fill="currentColor"/>
3
4
  </svg>
@@ -1,4 +1,3 @@
1
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none"
2
- xmlns="http://www.w3.org/2000/svg">
3
- <path fill-rule="evenodd" clip-rule="evenodd" d="M5.2175 18.6475C4.9275 18.9375 4.9275 19.4175 5.2175 19.7075C5.5075 19.9975 5.9875 19.9975 6.2775 19.7075L12.4675 13.5175L18.6575 19.7075C18.9475 19.9975 19.4275 19.9975 19.7175 19.7075C20.0075 19.4175 20.0075 18.9375 19.7175 18.6475L13.5275 12.4675L19.7175 6.2775C20.0075 5.9875 20.0075 5.5075 19.7175 5.2175C19.4275 4.9275 18.9475 4.9275 18.6575 5.2175L12.4675 11.4075L6.2775 5.2175C5.9875 4.9275 5.5075 4.9275 5.2175 5.2175C4.9275 5.5075 4.9275 5.9875 5.2175 6.2775L11.4075 12.4675L5.2175 18.6475Z" fill="currentColor"/>
1
+ <svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M5.7175 18.6475C5.4275 18.9375 5.4275 19.4175 5.7175 19.7075C6.0075 19.9975 6.4875 19.9975 6.7775 19.7075L12.9675 13.5175L19.1575 19.7075C19.4475 19.9975 19.9275 19.9975 20.2175 19.7075C20.5075 19.4175 20.5075 18.9375 20.2175 18.6475L14.0275 12.4675L20.2175 6.2775C20.5075 5.9875 20.5075 5.5075 20.2175 5.2175C19.9275 4.9275 19.4475 4.9275 19.1575 5.2175L12.9675 11.4075L6.7775 5.2175C6.4875 4.9275 6.0075 4.9275 5.7175 5.2175C5.4275 5.5075 5.4275 5.9875 5.7175 6.2775L11.9075 12.4675L5.7175 18.6475Z" fill="#36373C"/>
4
3
  </svg>
@@ -1,4 +1,4 @@
1
- <svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <rect x="6" y="3" width="3" height="16" rx="1.5" fill="#393A3F"/>
3
- <rect x="12" y="3" width="3" height="16" rx="1.5" fill="#393A3F"/>
1
+ <svg width="13" height="17" viewBox="0 0 13 17" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect x="0.232422" width="4" height="17" rx="2" fill="#393A3F"/>
3
+ <rect x="8.23242" width="4" height="17" rx="2" fill="#393A3F"/>
4
4
  </svg>
@@ -1,4 +1,4 @@
1
- <svg width="13" height="17" viewBox="0 0 13 17" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <rect x="0.232422" width="4" height="17" rx="2" fill="#393A3F"/>
3
- <rect x="8.23242" width="4" height="17" rx="2" fill="#393A3F"/>
1
+ <svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect x="6" y="3" width="3" height="16" rx="1.5" fill="#393A3F"/>
3
+ <rect x="12" y="3" width="3" height="16" rx="1.5" fill="#393A3F"/>
4
4
  </svg>
@@ -14,7 +14,7 @@ var FeaturesSection_styles = require('./FeaturesSection.styles.js');
14
14
  var useLockBodyScrollCustom = require('../../hooks/useLockBodyScrollCustom.js');
15
15
  var Container = require('../Container/Container.js');
16
16
  var StyleableSvgImage = require('../StyleableSvgImage/StyleableSvgImage.js');
17
- var CloseSvg = require("../../assets/close3.svg");
17
+ var CloseSvg = require("../../assets/close2.svg");
18
18
  function _interopDefault(e) {
19
19
  return e && e.__esModule ? e : {
20
20
  default: e
@@ -12,7 +12,7 @@ import { WrapOuter, OverlayWrap, OverlayClose, Wrap, MetaWrap, SubHeading, Headi
12
12
  import { useLockBodyScrollCustom } from '../../hooks/useLockBodyScrollCustom.mjs';
13
13
  import { Container } from '../Container/Container.mjs';
14
14
  import { StyleableSvgImage } from '../StyleableSvgImage/StyleableSvgImage.mjs';
15
- import CloseSvg__default from "../../assets/close3.svg";
15
+ import CloseSvg__default from "../../assets/close2.svg";
16
16
  "use strict";
17
17
  const FEATURES_DEFAULT_PLAYBACK = 500;
18
18
  const parseTime = time => parseFloat(time.toFixed(3));
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var CloseSvg = require("../../../assets/close3.svg");
6
+ var CloseSvg = require("../../../assets/close2.svg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
@@ -1,3 +1,3 @@
1
- export * from "../../../assets/close3.svg";
2
- export { default } from "../../../assets/close3.svg";
1
+ export * from "../../../assets/close2.svg";
2
+ export { default } from "../../../assets/close2.svg";
3
3
  //# sourceMappingURL=close.svg.mjs.map
@@ -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: ({ storeId, sidebarProps, productGridProps, searchProps, renderImage, isCartSummaryOpen, }: LandingPageProProps) => JSX.Element;
24
21
  export {};
@@ -1,12 +1,12 @@
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');
9
8
  var collectionSlug = require('../../utils/collectionSlug.js');
9
+ require('../../utils/money/index.js');
10
10
  var url = require('../../utils/url.js');
11
11
  require('../LandingPageSearch/index.js');
12
12
  require('../LandingPageSidebar/index.js');
@@ -16,11 +16,11 @@ var LandingPagePro_styles = require('./LandingPagePro.styles.js');
16
16
  var utils = require('./utils.js');
17
17
  var context = require('../../contexts/MenuContext/context.js');
18
18
  var generated = require('../../types/generated.js');
19
+ var constants = require('../../utils/money/constants.js');
19
20
  var LandingPageSidebar = require('../LandingPageSidebar/LandingPageSidebar.js');
20
21
  var LandingPageSearch = require('../LandingPageSearch/LandingPageSearch.js');
21
22
  var ProductGrid = require('../ProductGrid/ProductGrid.js');
22
23
  "use strict";
23
- const maximumPriceFilterLookup = /* @__PURE__ */new Map([[currencies.CAD.code, 7e4], [currencies.EUR.code, 7e4], [currencies.AED.code, 7e4]]);
24
24
  const LandingPagePro = ({
25
25
  storeId = generated.StoreId.Us,
26
26
  sidebarProps,
@@ -99,7 +99,7 @@ const LandingPagePro = ({
99
99
  }, [navigation.primary.items, navigation.secondary.items, productGridProps?.products, sidebarProps.productTypeBlock.activeType, sidebarProps.translations.all, storeId]);
100
100
  const maxPriceFilterAmount = react.useMemo(() => {
101
101
  return {
102
- amount: maximumPriceFilterLookup.get(sidebarProps.filtersBlock?.currency || generated.Currency.Cad) || 7e4,
102
+ amount: constants.maximumPriceFilterLookup.get(sidebarProps.filtersBlock?.currency || generated.Currency.Cad) || 7e4,
103
103
  currency: sidebarProps.filtersBlock?.currency || generated.Currency.Cad
104
104
  };
105
105
  }, [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 { Currency, StoreId } from \"../../types\";\nimport { 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) =>\n innerItem?.items &&\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 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 storeId,\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","storeId","StoreId","Us","sidebarProps","productGridProps","searchProps","renderImage","isCartSummaryOpen","navigation","useMenu","isSearchUsed","useMemo","searchValue","categories","navItems","productTypeBlock","activeType","primary","items","secondary","filter","item","id","NavigationItemId","UnifiIdentity","UispSoftware","Amplifi","map","Accessories","label","CameraSecurity","category","innerItems","innerItem","slug","getCollectionSlugFromPath","path","slugify","products","unshift","translations","all","forEach","product","activeCategoryIndex","findIndex","isIncluded","some","defaultCollectionSlug","organizationalCollectionSlug","subItem","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":";;;;;;;;;;;;;;;;;;;;;;AAuDA,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;EAC7BC,UAAUC,SAAQ,CAAAA,OAAA,CAAAC,EAAA;EAClBC,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,U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A,EAAA;IAAYC,MAAK,SAChB;IAAAC,QAAA,EAAA,CAAA,eAAAC,UAAA,CAAAA,GAAA,CAACC,kBAAA,CAAAA,kBAAA,EAAA;MACE,GAAGjH,YAAA;MACJkH,SAAW,EAAAV,gBAAA;MACX9F,UAAA;MACA4C,YAAA;MACA/C,YAAA;MACA4G,YAAA,EAAclH,kBAAkBkC,QAAU,EAAAe,MAAA;MAC1CkE,kBAAkBpH,YAAa,CAAAY,gBAAA;MAC/BR;IAAA,CACF,CAAA,EAAA,eACAuG,eAAA,CAACU,qBAAAA,CAAAA,iBAAE,EAAF;MACEN,QAAA,EAAA,CAAA,CAAC/G,YAAa,CAAA2D,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,GAAGvH;QAAaC;MAA0B,CAAA,CAAA,EAAA,eAEhE6G,UAAA,CAAAA,GAAA,CAACU,WAAA,CAAAA,WAAA,EAAA;QACE,GAAGzH,gBAAA;QACJkC,QAAA;QACAmE,UAAA;QACAnG,WAAA;QACAwH,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 { Currency, StoreId } from \"../../types\";\nimport { 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) =>\n innerItem?.items &&\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 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 storeId,\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","storeId","StoreId","Us","sidebarProps","productGridProps","searchProps","renderImage","isCartSummaryOpen","navigation","useMenu","isSearchUsed","useMemo","searchValue","categories","navItems","productTypeBlock","activeType","primary","items","secondary","filter","item","id","NavigationItemId","UnifiIdentity","UispSoftware","Amplifi","map","Accessories","label","CameraSecurity","category","innerItems","innerItem","slug","getCollectionSlugFromPath","path","slugify","products","unshift","translations","all","forEach","product","activeCategoryIndex","findIndex","isIncluded","some","defaultCollectionSlug","organizationalCollectionSlug","subItem","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":";;;;;;;;;;;;;;;;;;;;;;;AAoDO,MAAMA,iBAAiBA,CAAC;EAC7BC,UAAUC,SAAQ,CAAAA,OAAA,CAAAC,EAAA;EAClBC,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,KA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A,CAC/C;EAEA,OAAA,eACG+C,UAAA,CAAAA,IAAA,CAAAC,qBAAA,CAAAC,SAAA,EAAA;IAAYC,MAAK,SAChB;IAAAC,QAAA,EAAA,CAAA,eAAAC,UAAA,CAAAA,GAAA,CAACC,kBAAA,CAAAA,kBAAA,EAAA;MACE,GAAGlH,YAAA;MACJmH,SAAW,EAAAV,gBAAA;MACX/F,UAAA;MACA6C,YAAA;MACAhD,YAAA;MACA6G,YAAA,EAAcnH,kBAAkBkC,QAAU,EAAAe,MAAA;MAC1CmE,kBAAkBrH,YAAa,CAAAY,gBAAA;MAC/BR;IAAA,CACF,CAAA,EAAA,eACAwG,eAAA,CAACU,qBAAAA,CAAAA,iBAAE,EAAF;MACEN,QAAA,EAAA,CAAA,CAAChH,YAAa,CAAA4D,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,GAAGxH;QAAaC;MAA0B,CAAA,CAAA,EAAA,eAEhE8G,UAAA,CAAAA,GAAA,CAACU,WAAA,CAAAA,WAAA,EAAA;QACE,GAAG1H,gBAAA;QACJkC,QAAA;QACAoE,UAAA;QACApG,WAAA;QACAyH,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,10 +1,10 @@
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';
7
6
  import { getCollectionSlugFromPath } from '../../utils/collectionSlug.mjs';
7
+ import '../../utils/money/index.mjs';
8
8
  import { slugify } from '../../utils/url.mjs';
9
9
  import '../LandingPageSearch/index.mjs';
10
10
  import '../LandingPageSidebar/index.mjs';
@@ -14,11 +14,11 @@ import { Container, ProductsContainer, SearchLoader } from './LandingPagePro.sty
14
14
  import { productHasSomeInStock, compareSortWeights } from './utils.mjs';
15
15
  import { useMenu } from '../../contexts/MenuContext/context.mjs';
16
16
  import { StoreId, Currency } from '../../types/generated.mjs';
17
+ import { maximumPriceFilterLookup } from '../../utils/money/constants.mjs';
17
18
  import { LandingPageSidebar } from '../LandingPageSidebar/LandingPageSidebar.mjs';
18
19
  import { LandingPageSearch } from '../LandingPageSearch/LandingPageSearch.mjs';
19
20
  import { ProductGrid } from '../ProductGrid/ProductGrid.mjs';
20
21
  "use strict";
21
- const maximumPriceFilterLookup = /* @__PURE__ */new Map([[CAD.code, 7e4], [EUR.code, 7e4], [AED.code, 7e4]]);
22
22
  const LandingPagePro = ({
23
23
  storeId = StoreId.Us,
24
24
  sidebarProps,