@ubnt/store.core 11.9.3-alpha.19 → 11.9.3-alpha.20

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 (246) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/lib/assets/ai-360.jpg +0 -0
  3. package/lib/assets/ai-3602.jpg +0 -0
  4. package/lib/assets/ai-theta-pro.jpg +0 -0
  5. package/lib/assets/ai-theta-pro2.jpg +0 -0
  6. package/lib/assets/ai-theta.jpg +0 -0
  7. package/lib/assets/ai-theta3.jpg +0 -0
  8. package/lib/assets/attention.svg +5 -5
  9. package/lib/assets/attention2.svg +5 -5
  10. package/lib/assets/bullet2.svg +4 -2
  11. package/lib/assets/bullet3.svg +2 -4
  12. package/lib/assets/door-hub-mini.jpg +0 -0
  13. package/lib/assets/door-hub-mini2.jpg +0 -0
  14. package/lib/assets/door-hub.jpg +0 -0
  15. package/lib/assets/door-hub2.jpg +0 -0
  16. package/lib/assets/envr.png +0 -0
  17. package/lib/assets/envr2.png +0 -0
  18. package/lib/assets/express.jpg +0 -0
  19. package/lib/assets/express2.jpg +0 -0
  20. package/lib/assets/express7.jpg +0 -0
  21. package/lib/assets/express72.jpg +0 -0
  22. package/lib/assets/floodlight.svg +2 -9
  23. package/lib/assets/floodlight2.svg +9 -2
  24. package/lib/assets/g2-reader.jpg +0 -0
  25. package/lib/assets/g2-reader2.jpg +0 -0
  26. package/lib/assets/g3-reader.jpg +0 -0
  27. package/lib/assets/g3-reader2.jpg +0 -0
  28. package/lib/assets/g4-instant.jpg +0 -0
  29. package/lib/assets/g4-instant3.jpg +0 -0
  30. package/lib/assets/g4-ptz.jpg +0 -0
  31. package/lib/assets/g4-ptz2.jpg +0 -0
  32. package/lib/assets/g5-bullet.jpg +0 -0
  33. package/lib/assets/g5-bullet2.jpg +0 -0
  34. package/lib/assets/g5-dome.jpg +0 -0
  35. package/lib/assets/g5-dome2.jpg +0 -0
  36. package/lib/assets/g5-flex.jpg +0 -0
  37. package/lib/assets/g5-flex2.jpg +0 -0
  38. package/lib/assets/g5-flex3.jpg +0 -0
  39. package/lib/assets/g6-instant.jpg +0 -0
  40. package/lib/assets/g6-instant2.jpg +0 -0
  41. package/lib/assets/globe.svg +2 -9
  42. package/lib/assets/globe2.svg +9 -2
  43. package/lib/assets/power.svg +1 -4
  44. package/lib/assets/power2.svg +4 -1
  45. package/lib/assets/ptz2.svg +2 -2
  46. package/lib/assets/ptz3.svg +2 -2
  47. package/lib/assets/rack.svg +1 -4
  48. package/lib/assets/rack2.svg +4 -1
  49. package/lib/assets/udr2.jpg +0 -0
  50. package/lib/assets/udr3.jpg +0 -0
  51. package/lib/assets/udr7.jpg +0 -0
  52. package/lib/assets/udr72.jpg +0 -0
  53. package/lib/components/Header/Header.js +1 -1
  54. package/lib/components/Header/Header.mjs +1 -1
  55. package/lib/components/Header/ProHeader/ProHeader.js +1 -1
  56. package/lib/components/Header/ProHeader/ProHeader.mjs +1 -1
  57. package/lib/components/MicrositeHeader/components/HeaderContent/HeaderContent.js +1 -1
  58. package/lib/components/MicrositeHeader/components/HeaderContent/HeaderContent.mjs +1 -1
  59. package/lib/components/ModelCompareV4/CompareTable/CompareTable.styles.d.ts +4 -0
  60. package/lib/components/ModelCompareV4/CompareTable/CompareTable.styles.js +16 -0
  61. package/lib/components/ModelCompareV4/CompareTable/CompareTable.styles.js.map +1 -1
  62. package/lib/components/ModelCompareV4/CompareTable/CompareTable.styles.mjs +16 -1
  63. package/lib/components/ModelCompareV4/CompareTable/CompareTable.styles.mjs.map +1 -1
  64. package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/CompareTableMarkup.js +182 -178
  65. package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/CompareTableMarkup.js.map +1 -1
  66. package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/CompareTableMarkup.mjs +183 -179
  67. package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/CompareTableMarkup.mjs.map +1 -1
  68. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js +1 -1
  69. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs +1 -1
  70. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +1 -1
  71. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
  72. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.js +1 -1
  73. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.mjs +2 -2
  74. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +1 -1
  75. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs +1 -1
  76. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.js +1 -1
  77. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.mjs +2 -2
  78. package/lib/components/ResourceCalculatorV1/assets/consoles/envr.png.js +1 -1
  79. package/lib/components/ResourceCalculatorV1/assets/consoles/envr.png.mjs +2 -2
  80. package/lib/constants/icons/header/globe.svg.js +1 -1
  81. package/lib/constants/icons/header/globe.svg.mjs +2 -2
  82. package/lib/constants/icons/header/index.js +1 -1
  83. package/lib/constants/icons/header/index.mjs +1 -1
  84. package/lib/constants/icons/menu/floodlight.svg.js +5 -5
  85. package/lib/constants/icons/menu/floodlight.svg.mjs +2 -2
  86. package/lib/constants/icons/menu/index.js +9 -9
  87. package/lib/constants/icons/menu/index.mjs +3 -3
  88. package/lib/constants/icons/menu/power.svg.js +5 -5
  89. package/lib/constants/icons/menu/power.svg.mjs +2 -2
  90. package/lib/constants/icons/menu/rack.svg.js +5 -5
  91. package/lib/constants/icons/menu/rack.svg.mjs +2 -2
  92. package/lib/constants/modelCompareData/assets/Assets-V4/VideoRecorders/envr.png.js +1 -1
  93. package/lib/constants/modelCompareData/assets/Assets-V4/VideoRecorders/envr.png.mjs +2 -2
  94. package/lib/constants/modelCompareData/assets/Bullet/bullet.svg.js +1 -1
  95. package/lib/constants/modelCompareData/assets/Bullet/bullet.svg.mjs +2 -2
  96. package/lib/constants/modelCompareData/assets/Bullet/g5-bullet.jpg.js +1 -1
  97. package/lib/constants/modelCompareData/assets/Bullet/g5-bullet.jpg.mjs +2 -2
  98. package/lib/constants/modelCompareData/assets/CameraSecurity/ai-theta-pro.jpg.js +5 -5
  99. package/lib/constants/modelCompareData/assets/CameraSecurity/ai-theta-pro.jpg.mjs +2 -2
  100. package/lib/constants/modelCompareData/assets/CameraSecurity/ai-theta.jpg.js +5 -5
  101. package/lib/constants/modelCompareData/assets/CameraSecurity/ai-theta.jpg.mjs +2 -2
  102. package/lib/constants/modelCompareData/assets/CameraSecurity/g4-instant.jpg.js +5 -5
  103. package/lib/constants/modelCompareData/assets/CameraSecurity/g4-instant.jpg.mjs +2 -2
  104. package/lib/constants/modelCompareData/assets/CameraSecurity/g5-flex.jpg.js +5 -5
  105. package/lib/constants/modelCompareData/assets/CameraSecurity/g5-flex.jpg.mjs +2 -2
  106. package/lib/constants/modelCompareData/assets/CameraSecurity/g6-instant.jpg.js +5 -5
  107. package/lib/constants/modelCompareData/assets/CameraSecurity/g6-instant.jpg.mjs +2 -2
  108. package/lib/constants/modelCompareData/assets/Compact/g4-instant.jpg.js +1 -1
  109. package/lib/constants/modelCompareData/assets/Compact/g4-instant.jpg.mjs +2 -2
  110. package/lib/constants/modelCompareData/assets/Compact/g5-flex.jpg.js +1 -1
  111. package/lib/constants/modelCompareData/assets/Compact/g5-flex.jpg.mjs +2 -2
  112. package/lib/constants/modelCompareData/assets/Compact/g6-instant.jpg.js +1 -1
  113. package/lib/constants/modelCompareData/assets/Compact/g6-instant.jpg.mjs +2 -2
  114. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/express.jpg.js +5 -5
  115. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/express.jpg.mjs +2 -2
  116. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/express7.jpg.js +5 -5
  117. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/express7.jpg.mjs +2 -2
  118. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/udr.jpg.js +5 -5
  119. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/udr.jpg.mjs +2 -2
  120. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/udr7.jpg.js +5 -5
  121. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/udr7.jpg.mjs +2 -2
  122. package/lib/constants/modelCompareData/assets/Consoles/express.jpg.js +1 -1
  123. package/lib/constants/modelCompareData/assets/Consoles/express.jpg.mjs +2 -2
  124. package/lib/constants/modelCompareData/assets/Consoles/express7.jpg.js +1 -1
  125. package/lib/constants/modelCompareData/assets/Consoles/express7.jpg.mjs +2 -2
  126. package/lib/constants/modelCompareData/assets/Consoles/udr.jpg.js +1 -1
  127. package/lib/constants/modelCompareData/assets/Consoles/udr.jpg.mjs +2 -2
  128. package/lib/constants/modelCompareData/assets/Consoles/udr7.jpg.js +1 -1
  129. package/lib/constants/modelCompareData/assets/Consoles/udr7.jpg.mjs +2 -2
  130. package/lib/constants/modelCompareData/assets/DomeTurret/ai-360.jpg.js +1 -1
  131. package/lib/constants/modelCompareData/assets/DomeTurret/ai-360.jpg.mjs +2 -2
  132. package/lib/constants/modelCompareData/assets/DomeTurret/g5-dome.jpg.js +1 -1
  133. package/lib/constants/modelCompareData/assets/DomeTurret/g5-dome.jpg.mjs +2 -2
  134. package/lib/constants/modelCompareData/assets/DoorAccess/door-hub-mini.jpg.js +1 -1
  135. package/lib/constants/modelCompareData/assets/DoorAccess/door-hub-mini.jpg.mjs +2 -2
  136. package/lib/constants/modelCompareData/assets/DoorAccess/door-hub.jpg.js +1 -1
  137. package/lib/constants/modelCompareData/assets/DoorAccess/door-hub.jpg.mjs +2 -2
  138. package/lib/constants/modelCompareData/assets/DoorAccess/g2-reader.jpg.js +1 -1
  139. package/lib/constants/modelCompareData/assets/DoorAccess/g2-reader.jpg.mjs +2 -2
  140. package/lib/constants/modelCompareData/assets/DoorAccess/g3-reader.jpg.js +1 -1
  141. package/lib/constants/modelCompareData/assets/DoorAccess/g3-reader.jpg.mjs +2 -2
  142. package/lib/constants/modelCompareData/assets/Interior/ai-theta-pro.jpg.js +1 -1
  143. package/lib/constants/modelCompareData/assets/Interior/ai-theta-pro.jpg.mjs +2 -2
  144. package/lib/constants/modelCompareData/assets/PTZ/g4-ptz.jpg.js +1 -1
  145. package/lib/constants/modelCompareData/assets/PTZ/g4-ptz.jpg.mjs +2 -2
  146. package/lib/constants/modelCompareData/assets/floodlight.svg.js +1 -1
  147. package/lib/constants/modelCompareData/assets/floodlight.svg.mjs +2 -2
  148. package/lib/constants/modelCompareData/assets/globe.svg.js +1 -1
  149. package/lib/constants/modelCompareData/assets/globe.svg.mjs +2 -2
  150. package/lib/constants/modelCompareData/assets/power.svg.js +1 -1
  151. package/lib/constants/modelCompareData/assets/power.svg.mjs +2 -2
  152. package/lib/constants/modelCompareData/assets/product-list-assets/bullet.svg.js +1 -1
  153. package/lib/constants/modelCompareData/assets/product-list-assets/bullet.svg.mjs +2 -2
  154. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/g5-bullet.jpg.js +1 -1
  155. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/g5-bullet.jpg.mjs +2 -2
  156. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/compact/g5-flex.jpg.js +1 -1
  157. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/compact/g5-flex.jpg.mjs +2 -2
  158. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/ai-360.jpg.js +1 -1
  159. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/ai-360.jpg.mjs +2 -2
  160. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-dome.jpg.js +1 -1
  161. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-dome.jpg.mjs +2 -2
  162. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/door-hub-mini.jpg.js +1 -1
  163. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/door-hub-mini.jpg.mjs +2 -2
  164. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/door-hub.jpg.js +1 -1
  165. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/door-hub.jpg.mjs +2 -2
  166. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g2-reader.jpg.js +1 -1
  167. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g2-reader.jpg.mjs +2 -2
  168. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g3-reader.jpg.js +1 -1
  169. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g3-reader.jpg.mjs +2 -2
  170. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/interior-design/ai-theta.jpg.js +1 -1
  171. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/interior-design/ai-theta.jpg.mjs +2 -2
  172. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/ptz/g4-ptz.jpg.js +1 -1
  173. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/ptz/g4-ptz.jpg.mjs +2 -2
  174. package/lib/constants/modelCompareData/assets/product-list-assets/ptz.svg.js +1 -1
  175. package/lib/constants/modelCompareData/assets/product-list-assets/ptz.svg.mjs +2 -2
  176. package/lib/constants/modelCompareData/assets/ptz.svg.js +1 -1
  177. package/lib/constants/modelCompareData/assets/ptz.svg.mjs +2 -2
  178. package/lib/constants/modelCompareData/assets/rack.svg.js +1 -1
  179. package/lib/constants/modelCompareData/assets/rack.svg.mjs +2 -2
  180. package/lib/constants/modelCompareData/data/CameraSecurity.js +11 -11
  181. package/lib/constants/modelCompareData/data/CameraSecurity.mjs +6 -6
  182. package/lib/constants/modelCompareData/data/CloudGateways.js +6 -6
  183. package/lib/constants/modelCompareData/data/CloudGateways.mjs +4 -4
  184. package/lib/constants/modelCompareData/data/DreamMachineConsolev4.js +6 -6
  185. package/lib/constants/modelCompareData/data/DreamMachineConsolev4.mjs +4 -4
  186. package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Bullet.js +1 -1
  187. package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Bullet.mjs +1 -1
  188. package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Ptz.js +1 -1
  189. package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Ptz.mjs +1 -1
  190. package/lib/constants/modelCompareData/data/product-list-groups/bullet.js +1 -1
  191. package/lib/constants/modelCompareData/data/product-list-groups/bullet.mjs +1 -1
  192. package/lib/constants/modelCompareData/data/product-list-groups/ptz.js +1 -1
  193. package/lib/constants/modelCompareData/data/product-list-groups/ptz.mjs +1 -1
  194. package/lib/constants/modelCompareData/data/products/ai360.js +2 -2
  195. package/lib/constants/modelCompareData/data/products/ai360.mjs +2 -2
  196. package/lib/constants/modelCompareData/data/products/doorHub.js +2 -2
  197. package/lib/constants/modelCompareData/data/products/doorHub.mjs +2 -2
  198. package/lib/constants/modelCompareData/data/products/doorHubMini.js +2 -2
  199. package/lib/constants/modelCompareData/data/products/doorHubMini.mjs +2 -2
  200. package/lib/constants/modelCompareData/data/products/envrSpotlight.js +1 -1
  201. package/lib/constants/modelCompareData/data/products/envrSpotlight.mjs +1 -1
  202. package/lib/constants/modelCompareData/data/products/express.js +1 -1
  203. package/lib/constants/modelCompareData/data/products/express.mjs +1 -1
  204. package/lib/constants/modelCompareData/data/products/express7.js +1 -1
  205. package/lib/constants/modelCompareData/data/products/express7.mjs +1 -1
  206. package/lib/constants/modelCompareData/data/products/g2Reader.js +2 -2
  207. package/lib/constants/modelCompareData/data/products/g2Reader.mjs +2 -2
  208. package/lib/constants/modelCompareData/data/products/g3Reader.js +2 -2
  209. package/lib/constants/modelCompareData/data/products/g3Reader.mjs +2 -2
  210. package/lib/constants/modelCompareData/data/products/g4Instant.js +1 -1
  211. package/lib/constants/modelCompareData/data/products/g4Instant.mjs +1 -1
  212. package/lib/constants/modelCompareData/data/products/g4Ptz.js +2 -2
  213. package/lib/constants/modelCompareData/data/products/g4Ptz.mjs +2 -2
  214. package/lib/constants/modelCompareData/data/products/g5Bullet.js +2 -2
  215. package/lib/constants/modelCompareData/data/products/g5Bullet.mjs +2 -2
  216. package/lib/constants/modelCompareData/data/products/g5Dome.js +2 -2
  217. package/lib/constants/modelCompareData/data/products/g5Dome.mjs +2 -2
  218. package/lib/constants/modelCompareData/data/products/g5Flex.js +2 -2
  219. package/lib/constants/modelCompareData/data/products/g5Flex.mjs +2 -2
  220. package/lib/constants/modelCompareData/data/products/g6Instant.js +1 -1
  221. package/lib/constants/modelCompareData/data/products/g6Instant.mjs +1 -1
  222. package/lib/constants/modelCompareData/data/products/theta.js +1 -1
  223. package/lib/constants/modelCompareData/data/products/theta.mjs +1 -1
  224. package/lib/constants/modelCompareData/data/products/thetaPro.js +1 -1
  225. package/lib/constants/modelCompareData/data/products/thetaPro.mjs +1 -1
  226. package/lib/constants/modelCompareData/data/products/udr.js +1 -1
  227. package/lib/constants/modelCompareData/data/products/udr.mjs +1 -1
  228. package/lib/constants/modelCompareData/data/products/udr7.js +1 -1
  229. package/lib/constants/modelCompareData/data/products/udr7.mjs +1 -1
  230. package/lib/constants/modelCompareData/data/properties/accessPowerMethod.js +1 -1
  231. package/lib/constants/modelCompareData/data/properties/accessPowerMethod.mjs +1 -1
  232. package/lib/constants/modelCompareData/data/properties/availability.js +1 -1
  233. package/lib/constants/modelCompareData/data/properties/availability.mjs +1 -1
  234. package/lib/constants/modelCompareData/data/properties/builtInFloodlight.js +1 -1
  235. package/lib/constants/modelCompareData/data/properties/builtInFloodlight.mjs +1 -1
  236. package/lib/constants/modelCompareData/data/properties/dcPowerOutput.js +1 -1
  237. package/lib/constants/modelCompareData/data/properties/dcPowerOutput.mjs +1 -1
  238. package/lib/constants/modelCompareData/data/properties/mounting.js +1 -1
  239. package/lib/constants/modelCompareData/data/properties/mounting.mjs +1 -1
  240. package/lib/constants/modelCompareData/data/properties/webMode.js +1 -1
  241. package/lib/constants/modelCompareData/data/properties/webMode.mjs +1 -1
  242. package/lib/contexts/MenuContext/mapping.js +3 -3
  243. package/lib/contexts/MenuContext/mapping.mjs +2 -2
  244. package/lib/contexts/MicrositeMenuContext/mapping.js +3 -3
  245. package/lib/contexts/MicrositeMenuContext/mapping.mjs +2 -2
  246. package/package.json +1 -1
@@ -11,7 +11,7 @@ import { useModelCompareTranslation } from '../../../../constants/modelCompareDa
11
11
  import '../../../../contexts/MenuContext/index.mjs';
12
12
  import { LanguageDirectionType } from '../../../../contexts/MenuContext/utils.mjs';
13
13
  import '../../../StyleableSvgImage/index.mjs';
14
- import { MOBILE_BREAKPOINT, PlaceholderGridItem, Container, CompanyLogoWrapper, SpotlightCover, NDAABadge, Spotlight, PropertyTitleGridItem, PropertyTitleGridItemContent, PropertyIcon, PropertyTitle, PropertyTooltip, TooltipStyles, PropertyTooltipHoverArea, TooltipIcon, PropertyTooltipContent, TOOLTIP_CLASS_NAME, EmptyPropertyTitleGridItem } from '../CompareTable.styles.mjs';
14
+ import { MOBILE_BREAKPOINT, OpacityTransitionContainer, PlaceholderGridItem, Container, CompanyLogoWrapper, SpotlightCover, NDAABadge, Spotlight, PropertyTitleGridItem, PropertyTitleGridItemContent, PropertyIcon, PropertyTitle, PropertyTooltip, TooltipStyles, PropertyTooltipHoverArea, TooltipIcon, PropertyTooltipContent, TOOLTIP_CLASS_NAME, EmptyPropertyTitleGridItem } from '../CompareTable.styles.mjs';
15
15
  import { getNumberOfColumns } from '../helpers/getNumberOfColumns.mjs';
16
16
  import { useButtonRenderer } from '../helpers/RenderButton.mjs';
17
17
  import { useTrackColumnPositions } from '../helpers/useTrackColumnPositions.mjs';
@@ -153,192 +153,196 @@ const CompareTableMarkup = ({
153
153
  /* @__PURE__ */
154
154
  jsx("section", {
155
155
  dir: LanguageDirectionType.ltr,
156
- children: /* @__PURE__ */jsxs(StickyGrid, {
157
- templateColumns,
158
- children: [/* @__PURE__ */jsxs(StickyGridHeader, {
159
- removePositionSticky: isMigrationTable,
160
- stickOffset,
161
- onStickyStateChange: setHeaderItemsAreSticking,
162
- nonScrollChildren: ({
163
- grid: {
164
- isAtMinX
165
- },
166
- isStuck
167
- }) => {
168
- if (!isMigrationTable) return /* @__PURE__ */jsx(HeaderShadow, {
169
- leftColumnWidth,
170
- shadowLeftColumn: isAtMinX,
171
- show: isStuck
172
- });
173
- return null;
174
- },
175
- children: [/* @__PURE__ */jsx(PlaceholderGridItem, {
176
- stickX: !isMigrationTable
177
- }), products.map((product, index) => {
178
- const headerElement = productHeaderRefs.current[index];
179
- const gridBodyElement = gridBodyRef.current;
180
- const headerRect = headerElement?.getBoundingClientRect();
181
- const gridBodyRect = gridBodyElement?.getBoundingClientRect();
182
- const greatestProductHeaderHeight = Math.max(...productHeaderRefs.current.map(header => header?.getBoundingClientRect().height).filter(height => typeof height === "number"));
183
- const sharedSpotlightValues = {
184
- $isSmallScreen: isMigrationTableMobileVersion,
185
- $coverWidth: (document.documentElement.clientWidth - (headerRect?.width ?? 0)) / 2,
186
- $columnCoordinates: {
187
- x: columnPositions[index]?.left ?? 0,
188
- y: columnPositions[index]?.top ?? 0
156
+ children: /* @__PURE__ */jsx(OpacityTransitionContainer, {
157
+ $hasBeenObserved: hasBeenObserved,
158
+ $isStaticTable: isStaticTable,
159
+ children: /* @__PURE__ */jsxs(StickyGrid, {
160
+ templateColumns,
161
+ children: [/* @__PURE__ */jsxs(StickyGridHeader, {
162
+ removePositionSticky: isMigrationTable,
163
+ stickOffset,
164
+ onStickyStateChange: setHeaderItemsAreSticking,
165
+ nonScrollChildren: ({
166
+ grid: {
167
+ isAtMinX
189
168
  },
190
- $spotlightDimensions: {
191
- width: headerRect?.width ?? 0,
192
- height: greatestProductHeaderHeight + (gridBodyRect?.height ?? 0)
193
- }
194
- };
195
- return product.propertyValues.length ? /* @__PURE__ */jsxs(Container, {
196
- $isMigrationTable: isMigrationTable,
197
- children: [isMigrationTable && /* @__PURE__ */jsx(CompanyLogoWrapper, {
198
- children: /* @__PURE__ */jsx(CompanyLogo, {
199
- company: product.competitorCompany
200
- })
201
- }), isMigrationTable && createPortal(headerElement && gridBodyElement && product.isSpotlit ? /* @__PURE__ */jsxs(Fragment, {
202
- children: [/* @__PURE__ */jsx(SpotlightCover, {
203
- ...sharedSpotlightValues
204
- }), /* @__PURE__ */jsx(SpotlightCover, {
205
- $isRightCover: true,
206
- ...sharedSpotlightValues
207
- }), /* @__PURE__ */jsx(NDAABadge, {
208
- src: ndaaBadge__default,
209
- alt: `The ${formatMessage(product.title)} is NDAA Compliant`,
210
- $columnCoordinates: sharedSpotlightValues.$columnCoordinates,
211
- $spotlightWidth: sharedSpotlightValues.$spotlightDimensions.width
212
- }), /* @__PURE__ */jsx(Spotlight, {
213
- $spotlightDimensions: sharedSpotlightValues.$spotlightDimensions,
214
- $columnCoordinates: sharedSpotlightValues.$columnCoordinates
215
- })]
216
- }) : null, document.body), /* @__PURE__ */jsx(ProductHeader, {
217
- ref: el => productHeaderRefs.current[index] = el,
218
- isStaticProduct: isStaticTable || !isOverviewPage && index === 0,
169
+ isStuck
170
+ }) => {
171
+ if (!isMigrationTable) return /* @__PURE__ */jsx(HeaderShadow, {
172
+ leftColumnWidth,
173
+ shadowLeftColumn: isAtMinX,
174
+ show: isStuck
175
+ });
176
+ return null;
177
+ },
178
+ children: [/* @__PURE__ */jsx(PlaceholderGridItem, {
179
+ stickX: !isMigrationTable
180
+ }), products.map((product, index) => {
181
+ const headerElement = productHeaderRefs.current[index];
182
+ const gridBodyElement = gridBodyRef.current;
183
+ const headerRect = headerElement?.getBoundingClientRect();
184
+ const gridBodyRect = gridBodyElement?.getBoundingClientRect();
185
+ const greatestProductHeaderHeight = Math.max(...productHeaderRefs.current.map(header => header?.getBoundingClientRect().height).filter(height => typeof height === "number"));
186
+ const sharedSpotlightValues = {
187
+ $isSmallScreen: isMigrationTableMobileVersion,
188
+ $coverWidth: (document.documentElement.clientWidth - (headerRect?.width ?? 0)) / 2,
189
+ $columnCoordinates: {
190
+ x: columnPositions[index]?.left ?? 0,
191
+ y: columnPositions[index]?.top ?? 0
192
+ },
193
+ $spotlightDimensions: {
194
+ width: headerRect?.width ?? 0,
195
+ height: greatestProductHeaderHeight + (gridBodyRect?.height ?? 0)
196
+ }
197
+ };
198
+ return product.propertyValues.length ? /* @__PURE__ */jsxs(Container, {
199
+ $isMigrationTable: isMigrationTable,
200
+ children: [isMigrationTable && /* @__PURE__ */jsx(CompanyLogoWrapper, {
201
+ children: /* @__PURE__ */jsx(CompanyLogo, {
202
+ company: product.competitorCompany
203
+ })
204
+ }), isMigrationTable && createPortal(headerElement && gridBodyElement && product.isSpotlit ? /* @__PURE__ */jsxs(Fragment, {
205
+ children: [/* @__PURE__ */jsx(SpotlightCover, {
206
+ ...sharedSpotlightValues
207
+ }), /* @__PURE__ */jsx(SpotlightCover, {
208
+ $isRightCover: true,
209
+ ...sharedSpotlightValues
210
+ }), /* @__PURE__ */jsx(NDAABadge, {
211
+ src: ndaaBadge__default,
212
+ alt: `The ${formatMessage(product.title)} is NDAA Compliant`,
213
+ $columnCoordinates: sharedSpotlightValues.$columnCoordinates,
214
+ $spotlightWidth: sharedSpotlightValues.$spotlightDimensions.width
215
+ }), /* @__PURE__ */jsx(Spotlight, {
216
+ $spotlightDimensions: sharedSpotlightValues.$spotlightDimensions,
217
+ $columnCoordinates: sharedSpotlightValues.$columnCoordinates
218
+ })]
219
+ }) : null, document.body), /* @__PURE__ */jsx(ProductHeader, {
220
+ ref: el => productHeaderRefs.current[index] = el,
221
+ isStaticProduct: isStaticTable || !isOverviewPage && index === 0,
222
+ product,
223
+ setSelectedProducts,
224
+ index,
225
+ setExternalState,
226
+ selectedProducts,
227
+ linkToStoreTitleClick,
228
+ hasBeenObserved,
229
+ isLessThanOrEqualToFiveProducts,
230
+ hasMultipleProductsSelected,
231
+ isSmallScreen: isSmallScreen || isMigrationTableMobileVersion,
232
+ onLinkClick,
233
+ showBadges,
234
+ isMigrationTable
235
+ }, `${product.id}-${index}`)]
236
+ }, `${product.id}-${index}`) : /* @__PURE__ */jsx(EmptyColumnHeader, {
219
237
  product,
220
- setSelectedProducts,
221
238
  index,
222
- setExternalState,
223
- selectedProducts,
224
- linkToStoreTitleClick,
225
239
  hasBeenObserved,
226
- isLessThanOrEqualToFiveProducts,
227
- hasMultipleProductsSelected,
228
- isSmallScreen: isSmallScreen || isMigrationTableMobileVersion,
229
- onLinkClick,
230
- showBadges,
231
- isMigrationTable
232
- }, `${product.id}-${index}`)]
233
- }, `${product.id}-${index}`) : /* @__PURE__ */jsx(EmptyColumnHeader, {
234
- product,
235
- index,
236
- hasBeenObserved,
237
- maxImageHeight,
238
- headerItemsAreSticking
239
- }, `${product.id}-${index}`);
240
- })]
241
- }), /* @__PURE__ */jsxs(StickyGridBody, {
242
- ref: gridBodyRef,
243
- children: [properties.map(property => /* @__PURE__ */jsxs(Fragment$1, {
244
- children: [/* @__PURE__ */jsx(PropertyTitleGridItem, {
245
- stickX: !isMigrationTable,
246
- children: !!leftColumnWidth && /* @__PURE__ */jsxs(PropertyTitleGridItemContent, {
247
- children: [/* @__PURE__ */jsx(PropertyIcon, {
248
- children: /* @__PURE__ */jsx(StyleableSvgImage, {
249
- width: 30,
250
- height: 30,
251
- src: property.icon
252
- })
253
- }), /* @__PURE__ */jsx(PropertyTitle, {
254
- children: property.title.split("\n").map((part, i, arr) => /* @__PURE__ */jsxs(Fragment$1, {
255
- children: [part, i < arr.length - 1 && /* @__PURE__ */jsx("br", {})]
256
- }, i))
257
- }), property.tooltip && /* @__PURE__ */jsxs(PropertyTooltip, {
258
- children: [/* @__PURE__ */jsx(TooltipStyles, {
259
- maxWidth: property.tooltipWidth
260
- }), /* @__PURE__ */jsxs(Tooltip, {
261
- tooltipClassName: TOOLTIP_CLASS_NAME,
262
- description: /* @__PURE__ */jsx(PropertyTooltipContent, {
263
- dangerouslySetInnerHTML: {
264
- __html: property.tooltip
265
- }
266
- }),
267
- portal: true,
268
- motif: "dark",
269
- isInteractive: true,
270
- position: "right",
271
- width: property.tooltipWidth,
272
- children: [/* @__PURE__ */jsx(PropertyTooltipHoverArea, {}), /* @__PURE__ */jsx(TooltipIcon, {
273
- width: 20,
274
- height: 20,
275
- src: tooltipIcon__default
240
+ maxImageHeight,
241
+ headerItemsAreSticking
242
+ }, `${product.id}-${index}`);
243
+ })]
244
+ }), /* @__PURE__ */jsxs(StickyGridBody, {
245
+ ref: gridBodyRef,
246
+ children: [properties.map(property => /* @__PURE__ */jsxs(Fragment$1, {
247
+ children: [/* @__PURE__ */jsx(PropertyTitleGridItem, {
248
+ stickX: !isMigrationTable,
249
+ children: !!leftColumnWidth && /* @__PURE__ */jsxs(PropertyTitleGridItemContent, {
250
+ children: [/* @__PURE__ */jsx(PropertyIcon, {
251
+ children: /* @__PURE__ */jsx(StyleableSvgImage, {
252
+ width: 30,
253
+ height: 30,
254
+ src: property.icon
255
+ })
256
+ }), /* @__PURE__ */jsx(PropertyTitle, {
257
+ children: property.title.split("\n").map((part, i, arr) => /* @__PURE__ */jsxs(Fragment$1, {
258
+ children: [part, i < arr.length - 1 && /* @__PURE__ */jsx("br", {})]
259
+ }, i))
260
+ }), property.tooltip && /* @__PURE__ */jsxs(PropertyTooltip, {
261
+ children: [/* @__PURE__ */jsx(TooltipStyles, {
262
+ maxWidth: property.tooltipWidth
263
+ }), /* @__PURE__ */jsxs(Tooltip, {
264
+ tooltipClassName: TOOLTIP_CLASS_NAME,
265
+ description: /* @__PURE__ */jsx(PropertyTooltipContent, {
266
+ dangerouslySetInnerHTML: {
267
+ __html: property.tooltip
268
+ }
269
+ }),
270
+ portal: true,
271
+ motif: "dark",
272
+ isInteractive: true,
273
+ position: "right",
274
+ width: property.tooltipWidth,
275
+ children: [/* @__PURE__ */jsx(PropertyTooltipHoverArea, {}), /* @__PURE__ */jsx(TooltipIcon, {
276
+ width: 20,
277
+ height: 20,
278
+ src: tooltipIcon__default
279
+ })]
276
280
  })]
277
281
  })]
278
- })]
279
- })
280
- }), products.map((product, index) => {
281
- const isLastProduct = index === products.length - 1;
282
- const productProperty = product.propertyValues?.find(product2 => product2.propertyId === property.id);
283
- return /* @__PURE__ */jsx(PropertyValueGridItem, {
284
- isLastProduct,
285
- productProperty,
286
- property,
287
- includeProperty: isSmallScreen || isMigrationTableMobileVersion,
288
- index,
289
- isMigrationTable,
290
- isSpotlightProduct: !!product.isSpotlit
291
- }, `${product.id}-${index}`);
282
+ })
283
+ }), products.map((product, index) => {
284
+ const isLastProduct = index === products.length - 1;
285
+ const productProperty = product.propertyValues?.find(product2 => product2.propertyId === property.id);
286
+ return /* @__PURE__ */jsx(PropertyValueGridItem, {
287
+ isLastProduct,
288
+ productProperty,
289
+ property,
290
+ includeProperty: isSmallScreen || isMigrationTableMobileVersion,
291
+ index,
292
+ isMigrationTable,
293
+ isSpotlightProduct: !!product.isSpotlit
294
+ }, `${product.id}-${index}`);
295
+ })]
296
+ }, property.id)), hasNotes && /* @__PURE__ */jsx(Notes, {
297
+ products
298
+ }), /* @__PURE__ */jsx(EmptyPropertyTitleGridItem, {
299
+ stickX: true
300
+ }), products.map((product, index) => renderButton({
301
+ product,
302
+ index,
303
+ getComingSoonButtonText,
304
+ showBuyButton,
305
+ onLinkClick
306
+ })), hasFootnotes && /* @__PURE__ */jsx(FootNotes, {
307
+ products
292
308
  })]
293
- }, property.id)), hasNotes && /* @__PURE__ */jsx(Notes, {
294
- products
295
- }), /* @__PURE__ */jsx(EmptyPropertyTitleGridItem, {
296
- stickX: true
297
- }), products.map((product, index) => renderButton({
298
- product,
299
- index,
300
- getComingSoonButtonText,
301
- showBuyButton,
302
- onLinkClick
303
- })), hasFootnotes && /* @__PURE__ */jsx(FootNotes, {
304
- products
309
+ }), /* @__PURE__ */jsx(StickyGridOverlay, {
310
+ style: {
311
+ left: `${leftColumnWidth}px`
312
+ },
313
+ topOffset: overlayTopOffset,
314
+ children: ({
315
+ isAtMinX
316
+ }) => /* @__PURE__ */jsx(ModelCompareOverflowScrollButton, {
317
+ isVisible: !isAtMinX,
318
+ color: leftColumnWidth > 0 ? "rgb(23 49 73 / 0.1)" : "white",
319
+ rotationDegrees: 180,
320
+ onClickColumnDiff: -1,
321
+ totalColumns: products.length,
322
+ totalDeadSpace: leftColumnWidth,
323
+ isSmallScreen: isSmallScreen || isMigrationTableMobileVersion,
324
+ isMigrationTable
325
+ })
326
+ }), /* @__PURE__ */jsx(StickyGridOverlay, {
327
+ style: {
328
+ right: 0
329
+ },
330
+ topOffset: overlayTopOffset,
331
+ children: ({
332
+ isAtMaxX
333
+ }) => /* @__PURE__ */jsx(ModelCompareOverflowScrollButton, {
334
+ isLeftButton: false,
335
+ isVisible: !isAtMaxX,
336
+ color: "white",
337
+ rotationDegrees: 0,
338
+ onClickColumnDiff: 1,
339
+ totalColumns: products.length,
340
+ totalDeadSpace: leftColumnWidth,
341
+ isSmallScreen: isSmallScreen || isMigrationTable,
342
+ isMigrationTable
343
+ })
305
344
  })]
306
- }), /* @__PURE__ */jsx(StickyGridOverlay, {
307
- style: {
308
- left: `${leftColumnWidth}px`
309
- },
310
- topOffset: overlayTopOffset,
311
- children: ({
312
- isAtMinX
313
- }) => /* @__PURE__ */jsx(ModelCompareOverflowScrollButton, {
314
- isVisible: !isAtMinX,
315
- color: leftColumnWidth > 0 ? "rgb(23 49 73 / 0.1)" : "white",
316
- rotationDegrees: 180,
317
- onClickColumnDiff: -1,
318
- totalColumns: products.length,
319
- totalDeadSpace: leftColumnWidth,
320
- isSmallScreen: isSmallScreen || isMigrationTableMobileVersion,
321
- isMigrationTable
322
- })
323
- }), /* @__PURE__ */jsx(StickyGridOverlay, {
324
- style: {
325
- right: 0
326
- },
327
- topOffset: overlayTopOffset,
328
- children: ({
329
- isAtMaxX
330
- }) => /* @__PURE__ */jsx(ModelCompareOverflowScrollButton, {
331
- isLeftButton: false,
332
- isVisible: !isAtMaxX,
333
- color: "white",
334
- rotationDegrees: 0,
335
- onClickColumnDiff: 1,
336
- totalColumns: products.length,
337
- totalDeadSpace: leftColumnWidth,
338
- isSmallScreen: isSmallScreen || isMigrationTable,
339
- isMigrationTable
340
- })
341
- })]
345
+ })
342
346
  })
343
347
  })
344
348
  );
@@ -1 +1 @@
1
- {"version":3,"file":"CompareTableMarkup.mjs","sources":["../../../../../src/components/ModelCompareV4/CompareTable/CompareTableMarkup/CompareTableMarkup.tsx"],"sourcesContent":["import { Tooltip } from \"@ubnt/ui-components/Tooltip\";\nimport {\n Fragment,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from \"react\";\nimport { createPortal } from \"react-dom\";\nimport { useWindowSize } from \"react-use\";\n\nimport { CONTAINER_WIDTH } from \"../../../../constants/layout\";\nimport ndaaBadge from \"../../../../constants/modelCompareData/assets/ndaa-compliant.png\";\nimport tooltipIcon from \"../../../../constants/modelCompareData/assets/tooltip-info.svg\";\nimport { emptyColumn } from \"../../../../constants/modelCompareData/data/products/emptyColumn\";\nimport { useModelCompareTranslation } from \"../../../../constants/modelCompareData/translations/useModelCompareTranslation\";\nimport type { MutatedProduct } from \"../../../../constants/modelCompareData/types\";\nimport { useMenu } from \"../../../../contexts/MenuContext\";\nimport { LanguageDirectionType } from \"../../../../contexts/MenuContext/utils\";\nimport { StyleableSvgImage } from \"../../../StyleableSvgImage\";\nimport * as S from \"../CompareTable.styles\";\nimport { TOOLTIP_CLASS_NAME } from \"../CompareTable.styles\";\nimport { getNumberOfColumns } from \"../helpers/getNumberOfColumns\";\nimport { useButtonRenderer } from \"../helpers/RenderButton\";\nimport type { Position } from \"../helpers/useTrackColumnPositions\";\nimport { useTrackColumnPositions } from \"../helpers/useTrackColumnPositions\";\nimport type { CompareTableMarkupProps } from \"./CompareTableMarkup.types\";\nimport { CompanyLogo } from \"./components/CompanyLogo/CompanyLogo\";\nimport { ModelCompareOverflowScrollButton } from \"./components/CompareTableOverflowScrollButton\";\nimport { EmptyColumnHeader } from \"./components/EmptyColumnHeader/EmptyColumnHeader\";\nimport { FootNotes } from \"./components/FootNotes/FootNotes\";\nimport { HeaderShadow } from \"./components/HeaderShadow\";\nimport { Notes } from \"./components/Notes/Notes\";\nimport { ProductHeader } from \"./components/ProductHeader/ProductHeader\";\nimport { PropertyValueGridItem } from \"./components/PropertyValueGridItem\";\nimport {\n StickyGrid,\n StickyGridBody,\n StickyGridHeader,\n StickyGridOverlay,\n} from \"./components/StickyGrid\";\n\nconst SMOOTH_SIZE_REDUCTION = 4;\nexport const MIGRATION_TABLE_BREAKPOINT = 800;\n\nexport const CompareTableMarkup = ({\n products,\n properties,\n columnWidth = 338,\n propertyColumnWidth = 230,\n headerStickOffset,\n overlayTopOffset,\n showBuyButton,\n onLinkClick,\n linkToStoreTitleClick,\n showBadges,\n setSelectedProducts,\n hasBeenObserved,\n selectedProductsLimit,\n setExternalState,\n selectedProducts,\n currAvailableProducts,\n isOverviewPage,\n isStaticTable,\n isMigrationTable,\n}: CompareTableMarkupProps) => {\n const { storeId } = useMenu();\n const { formatMessage } = useModelCompareTranslation();\n const renderButton = useButtonRenderer();\n const { width: screenWidth } = useWindowSize();\n const isLessThanOrEqualToFiveProducts = currAvailableProducts.length <= 5;\n const [headerItemsAreSticking, setHeaderItemsAreSticking] = useState(false);\n const [columnPositions, setColumnPositions] = useState<Position[]>([]);\n const [, triggerRender] = useState(0);\n\n const gridBodyRef = useRef<HTMLDivElement | null>(null);\n const productHeaderRefs = useRef<(HTMLDivElement | null)[]>([]);\n\n // #############################################################################\n // Grid calculations\n // #############################################################################\n const isSmallScreen = useMemo(\n () => screenWidth < S.MOBILE_BREAKPOINT,\n [screenWidth],\n );\n\n const isMigrationTableMobileVersion = useMemo(\n () => screenWidth < MIGRATION_TABLE_BREAKPOINT && isMigrationTable,\n [screenWidth, isMigrationTable],\n );\n\n const isGreaterThanDesktopWidth = useMemo(\n () => screenWidth > CONTAINER_WIDTH.DESKTOP,\n [screenWidth],\n );\n\n const leftColumnWidth = useMemo(\n () =>\n isSmallScreen || isMigrationTableMobileVersion\n ? 0\n : Math.min(screenWidth / SMOOTH_SIZE_REDUCTION, propertyColumnWidth),\n [\n isSmallScreen,\n propertyColumnWidth,\n screenWidth,\n isMigrationTableMobileVersion,\n ],\n );\n\n const maxImageHeight = useMemo(\n () => Math.max(...products.map(({ image }) => image.height)),\n [products],\n );\n\n const stickOffset = useMemo(\n () => (headerStickOffset ? headerStickOffset({ maxImageHeight }) : 0),\n [headerStickOffset, maxImageHeight],\n );\n\n const numberOfColumns = useMemo(\n () =>\n isStaticTable\n ? products.length\n : getNumberOfColumns({\n selectedProducts,\n selectedProductsLimit,\n products,\n }),\n [selectedProducts, selectedProductsLimit, products, isStaticTable],\n );\n\n const templateColumnWidth = useMemo(() => {\n const isMigrationDesktop =\n isMigrationTable && !isMigrationTableMobileVersion;\n\n if (isMigrationDesktop) return \"1fr\";\n if (isMigrationTableMobileVersion || isSmallScreen) return \"100%\";\n if (isGreaterThanDesktopWidth) return \"1fr\";\n\n return `${columnWidth}px`;\n }, [\n isSmallScreen,\n columnWidth,\n isGreaterThanDesktopWidth,\n isMigrationTable,\n isMigrationTableMobileVersion,\n ]);\n\n /**\n * 1 sticky left column\n * N non-sticky product columns\n */\n const templateColumns = useMemo(\n () =>\n `${leftColumnWidth}px repeat(${numberOfColumns}, ${templateColumnWidth})`,\n [leftColumnWidth, numberOfColumns, templateColumnWidth],\n );\n\n const hasNotes = useMemo(() => {\n return products.some(({ notes }) => !!notes?.length);\n }, [products]);\n\n const hasFootnotes = useMemo(() => {\n return products.some(({ footnotes }) => footnotes?.length);\n }, [products]);\n\n // #############################################################################\n // Column button\n // #############################################################################\n const getComingSoonButtonText = useCallback(\n (product: MutatedProduct) => {\n const buttonText = product.comingSoonButtonText;\n\n if (typeof buttonText === \"string\") {\n return formatMessage(buttonText);\n }\n\n if (typeof buttonText === \"function\" && !!buttonText(storeId)) {\n const foundKey = buttonText(storeId);\n\n if (foundKey) {\n return formatMessage(foundKey);\n }\n }\n\n return formatMessage(\"Coming Soon\");\n },\n [formatMessage, storeId],\n );\n\n const hasMultipleProductsSelected = useMemo(\n () => products.filter(({ id }) => id !== emptyColumn.id).length > 1,\n [products],\n );\n\n // #############################################################################\n // Sets position of columns for spotlight\n // #############################################################################\n\n useTrackColumnPositions(\n productHeaderRefs,\n useCallback((positions) => {\n setColumnPositions(positions);\n }, []),\n isMigrationTable,\n );\n\n useEffect(() => {\n if (!isMigrationTable) return;\n\n const handleResize = () => {\n triggerRender((n) => n + 1);\n };\n\n window.addEventListener(\"resize\", handleResize);\n return () => window.removeEventListener(\"resize\", handleResize);\n }, [isMigrationTable]);\n\n // #############################################################################\n // Removes overflowX of `body` so spotlights don't cause horizontal scrolling\n // #############################################################################\n\n const originalOverflowXRef = useRef<string | null>(null);\n\n useEffect(() => {\n if (isMigrationTableMobileVersion) {\n if (originalOverflowXRef.current === null) {\n originalOverflowXRef.current = document.body.style.overflowX;\n }\n\n document.body.style.overflowX = \"hidden\";\n\n return () => {\n if (originalOverflowXRef.current !== null) {\n document.body.style.overflowX = originalOverflowXRef.current;\n originalOverflowXRef.current = null;\n }\n };\n }\n\n return () => {};\n }, [isMigrationTable, isSmallScreen, isMigrationTableMobileVersion]);\n\n return (\n // APPLY left to right override in all cases rather than redo the model compare for Arabic\n <section dir={LanguageDirectionType.ltr}>\n <StickyGrid templateColumns={templateColumns}>\n <StickyGridHeader\n removePositionSticky={isMigrationTable}\n stickOffset={stickOffset}\n onStickyStateChange={setHeaderItemsAreSticking}\n nonScrollChildren={({ grid: { isAtMinX }, isStuck }) => {\n if (!isMigrationTable)\n return (\n <HeaderShadow\n leftColumnWidth={leftColumnWidth}\n shadowLeftColumn={isAtMinX}\n show={isStuck}\n />\n );\n return null;\n }}\n >\n <S.PlaceholderGridItem stickX={!isMigrationTable} />\n {products.map((product, index) => {\n const headerElement = productHeaderRefs.current[index];\n const gridBodyElement = gridBodyRef.current;\n const headerRect = headerElement?.getBoundingClientRect();\n const gridBodyRect = gridBodyElement?.getBoundingClientRect();\n const greatestProductHeaderHeight = Math.max(\n ...productHeaderRefs.current\n .map((header) => header?.getBoundingClientRect().height)\n .filter(\n (height): height is number => typeof height === \"number\",\n ),\n );\n\n const sharedSpotlightValues = {\n $isSmallScreen: isMigrationTableMobileVersion,\n $coverWidth:\n (document.documentElement.clientWidth -\n (headerRect?.width ?? 0)) /\n 2,\n $columnCoordinates: {\n x: columnPositions[index]?.left ?? 0,\n y: columnPositions[index]?.top ?? 0,\n },\n $spotlightDimensions: {\n width: headerRect?.width ?? 0,\n height:\n greatestProductHeaderHeight + (gridBodyRect?.height ?? 0),\n },\n };\n\n return product.propertyValues.length ? (\n <S.Container\n key={`${product.id}-${index}`}\n $isMigrationTable={isMigrationTable}\n >\n {isMigrationTable && (\n <S.CompanyLogoWrapper>\n <CompanyLogo company={product.competitorCompany} />\n </S.CompanyLogoWrapper>\n )}\n {isMigrationTable &&\n createPortal(\n headerElement && gridBodyElement && product.isSpotlit ? (\n <>\n <S.SpotlightCover {...sharedSpotlightValues} />\n <S.SpotlightCover\n $isRightCover\n {...sharedSpotlightValues}\n />\n\n <S.NDAABadge\n src={ndaaBadge as string}\n alt={`The ${formatMessage(product.title)} is NDAA Compliant`}\n $columnCoordinates={\n sharedSpotlightValues.$columnCoordinates\n }\n $spotlightWidth={\n sharedSpotlightValues.$spotlightDimensions.width\n }\n />\n <S.Spotlight\n $spotlightDimensions={\n sharedSpotlightValues.$spotlightDimensions\n }\n $columnCoordinates={\n sharedSpotlightValues.$columnCoordinates\n }\n />\n </>\n ) : null,\n document.body,\n )}\n\n <ProductHeader\n ref={(el) => (productHeaderRefs.current[index] = el)}\n key={`${product.id}-${index}`}\n isStaticProduct={\n isStaticTable || (!isOverviewPage && index === 0)\n }\n product={product}\n setSelectedProducts={setSelectedProducts}\n index={index}\n setExternalState={setExternalState}\n selectedProducts={selectedProducts}\n linkToStoreTitleClick={linkToStoreTitleClick}\n hasBeenObserved={hasBeenObserved}\n isLessThanOrEqualToFiveProducts={\n isLessThanOrEqualToFiveProducts\n }\n hasMultipleProductsSelected={hasMultipleProductsSelected}\n isSmallScreen={isSmallScreen || isMigrationTableMobileVersion}\n onLinkClick={onLinkClick}\n showBadges={showBadges}\n isMigrationTable={isMigrationTable}\n />\n </S.Container>\n ) : (\n <EmptyColumnHeader\n key={`${product.id}-${index}`}\n product={product}\n index={index}\n hasBeenObserved={hasBeenObserved}\n maxImageHeight={maxImageHeight}\n headerItemsAreSticking={headerItemsAreSticking}\n />\n );\n })}\n </StickyGridHeader>\n\n <StickyGridBody ref={gridBodyRef}>\n {properties.map((property) => (\n <Fragment key={property.id}>\n <S.PropertyTitleGridItem stickX={!isMigrationTable}>\n {!!leftColumnWidth && (\n <S.PropertyTitleGridItemContent>\n <S.PropertyIcon>\n <StyleableSvgImage\n width={30}\n height={30}\n src={property.icon}\n />\n </S.PropertyIcon>\n <S.PropertyTitle>\n {property.title.split(\"\\n\").map((part, i, arr) => (\n <Fragment key={i}>\n {part}\n {i < arr.length - 1 && <br />}\n </Fragment>\n ))}\n </S.PropertyTitle>\n {property.tooltip && (\n <S.PropertyTooltip>\n <S.TooltipStyles maxWidth={property.tooltipWidth} />\n <Tooltip\n tooltipClassName={TOOLTIP_CLASS_NAME}\n description={\n <S.PropertyTooltipContent\n dangerouslySetInnerHTML={{\n __html: property.tooltip,\n }}\n />\n }\n portal\n motif=\"dark\"\n isInteractive\n position=\"right\"\n width={property.tooltipWidth}\n >\n <S.PropertyTooltipHoverArea />\n <S.TooltipIcon\n width={20}\n height={20}\n src={tooltipIcon}\n />\n </Tooltip>\n </S.PropertyTooltip>\n )}\n </S.PropertyTitleGridItemContent>\n )}\n </S.PropertyTitleGridItem>\n\n {products.map((product, index) => {\n const isLastProduct = index === products.length - 1;\n const productProperty = product.propertyValues?.find(\n (product) => product.propertyId === property.id,\n );\n\n return (\n <PropertyValueGridItem\n isLastProduct={isLastProduct}\n key={`${product.id}-${index}`}\n productProperty={productProperty}\n property={property}\n includeProperty={\n isSmallScreen || isMigrationTableMobileVersion\n }\n index={index}\n isMigrationTable={isMigrationTable}\n isSpotlightProduct={!!product.isSpotlit}\n />\n );\n })}\n </Fragment>\n ))}\n\n {/**\n * Notes\n */}\n {hasNotes && <Notes products={products} />}\n\n {/**\n * Buy button\n */}\n <S.EmptyPropertyTitleGridItem stickX />\n {products.map((product, index) =>\n renderButton({\n product,\n index,\n getComingSoonButtonText,\n showBuyButton,\n onLinkClick,\n }),\n )}\n\n {/**\n * Footnotes\n */}\n {hasFootnotes && <FootNotes products={products} />}\n </StickyGridBody>\n\n <StickyGridOverlay\n style={{ left: `${leftColumnWidth}px` }}\n topOffset={overlayTopOffset}\n >\n {({ isAtMinX }) => (\n <ModelCompareOverflowScrollButton\n isVisible={!isAtMinX}\n color={leftColumnWidth > 0 ? \"rgb(23 49 73 / 0.1)\" : \"white\"}\n rotationDegrees={180}\n onClickColumnDiff={-1}\n totalColumns={products.length}\n totalDeadSpace={leftColumnWidth}\n isSmallScreen={isSmallScreen || isMigrationTableMobileVersion}\n isMigrationTable={isMigrationTable}\n />\n )}\n </StickyGridOverlay>\n\n <StickyGridOverlay style={{ right: 0 }} topOffset={overlayTopOffset}>\n {({ isAtMaxX }) => (\n <ModelCompareOverflowScrollButton\n isLeftButton={false}\n isVisible={!isAtMaxX}\n color=\"white\"\n rotationDegrees={0}\n onClickColumnDiff={1}\n totalColumns={products.length}\n totalDeadSpace={leftColumnWidth}\n isSmallScreen={isSmallScreen || isMigrationTable}\n isMigrationTable={isMigrationTable}\n />\n )}\n </StickyGridOverlay>\n </StickyGrid>\n </section>\n );\n};\n"],"names":["SMOOTH_SIZE_REDUCTION","MIGRATION_TABLE_BREAKPOINT","CompareTableMarkup","products","properties","columnWidth","propertyColumnWidth","headerStickOffset","overlayTopOffset","showBuyButton","onLinkClick","linkToStoreTitleClick","showBadges","setSelectedProducts","hasBeenObserved","selectedProductsLimit","setExternalState","selectedProducts","currAvailableProducts","isOverviewPage","isStaticTable","isMigrationTable","storeId","useMenu","formatMessage","useModelCompareTranslation","renderButton","useButtonRenderer","width","screenWidth","useWindowSize","isLessThanOrEqualToFiveProducts","length","headerItemsAreSticking","setHeaderItemsAreSticking","useState","columnPositions","setColumnPositions","triggerRender","gridBodyRef","useRef","productHeaderRefs","isSmallScreen","useMemo","S.MOBILE_BREAKPOINT","isMigrationTableMobileVersion","isGreaterThanDesktopWidth","CONTAINER_WIDTH","DESKTOP","leftColumnWidth","Math","min","maxImageHeight","max","map","image","height","stickOffset","numberOfColumns","getNumberOfColumns","templateColumnWidth","isMigrationDesktop","templateColumns","hasNotes","some","notes","hasFootnotes","footnotes","getComingSoonButtonText","useCallback","product","buttonText","comingSoonButtonText","foundKey","hasMultipleProductsSelected","filter","id","emptyColumn","useTrackColumnPositions","positions","useEffect","handleResize","n","window","addEventListener","removeEventListener","originalOverflowXRef","current","document","body","style","overflowX","dir","LanguageDirectionType","ltr","children","jsxs","StickyGrid","StickyGridHeader","removePositionSticky","onStickyStateChange","nonScrollChildren","grid","isAtMinX","isStuck","jsx","HeaderShadow","shadowLeftColumn","show","S.PlaceholderGridItem","stickX","index","headerElement","gridBodyElement","headerRect","getBoundingClientRect","gridBodyRect","greatestProductHeaderHeight","header","sharedSpotlightValues","$isSmallScreen","$coverWidth","documentElement","clientWidth","$columnCoordinates","x","left","y","top","$spotlightDimensions","propertyValues","S.Container","$isMigrationTable","S.CompanyLogoWrapper","CompanyLogo","company","competitorCompany","createPortal","isSpotlit","Fragment","S.SpotlightCover","$isRightCover","S.NDAABadge","src","ndaaBadge","alt","title","$spotlightWidth","S.Spotlight","ProductHeader","ref","el","isStaticProduct","EmptyColumnHeader","StickyGridBody","property","S.PropertyTitleGridItem","S.PropertyTitleGridItemContent","S.PropertyIcon","StyleableSvgImage","icon","S.PropertyTitle","split","part","i","arr","tooltip","S.PropertyTooltip","S.TooltipStyles","maxWidth","tooltipWidth","Tooltip","tooltipClassName","TOOLTIP_CLASS_NAME","description","S.PropertyTooltipContent","dangerouslySetInnerHTML","__html","portal","motif","isInteractive","position","S.PropertyTooltipHoverArea","S.TooltipIcon","tooltipIcon","isLastProduct","productProperty","find","propertyId","PropertyValueGridItem","includeProperty","isSpotlightProduct","Notes","S.EmptyPropertyTitleGridItem","FootNotes","StickyGridOverlay","topOffset","ModelCompareOverflowScrollButton","isVisible","color","rotationDegrees","onClickColumnDiff","totalColumns","totalDeadSpace","right","isAtMaxX","isLeftButton"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CA,MAAMA,qBAAwB,GAAA,CAAA;AACvB,MAAMC,0BAA6B,GAAA,GAAA;AAEnC,MAAMC,qBAAqBA,CAAC;EACjCC,QAAA;EACAC,UAAA;EACAC,WAAc,GAAA,GAAA;EACdC,mBAAsB,GAAA,GAAA;EACtBC,iBAAA;EACAC,gBAAA;EACAC,aAAA;EACAC,WAAA;EACAC,qBAAA;EACAC,UAAA;EACAC,mBAAA;EACAC,eAAA;EACAC,qBAAA;EACAC,gBAAA;EACAC,gBAAA;EACAC,qBAAA;EACAC,cAAA;EACAC,aAAA;EACAC;AACF,CAA+B,KAAA;EACvB,MAAA;IAAEC;EAAQ,CAAA,GAAIC,OAAQ,CAAA,CAAA;EACtB,MAAA;IAAEC;EAAc,CAAA,GAAIC,0BAA2B,CAAA,CAAA;EACrD,MAAMC,eAAeC,iBAAkB,CAAA,CAAA;EACvC,MAAM;IAAEC,KAAA,EAAOC;EAAY,CAAA,GAAIC,aAAc,CAAA,CAAA;EACvC,MAAAC,+BAAA,GAAkCb,sBAAsBc,MAAU,IAAA,CAAA;EACxE,MAAM,CAACC,sBAAA,EAAwBC,yBAAyB,CAAA,GAAIC,SAAS,KAAK,CAAA;EAC1E,MAAM,CAACC,eAAiB,EAAAC,kBAAkB,CAAI,GAAA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B,EAAA1J,eAAA;YAChBP,eAAeA,aAAiB,IAAArB,gBAAA;YAChCA;UAAA,CAAA;QAGN,CAAA,CAAA;MAAA,CACF;IACF,CAAA;EAAA;AAEJ,CAAA;"}
1
+ {"version":3,"file":"CompareTableMarkup.mjs","sources":["../../../../../src/components/ModelCompareV4/CompareTable/CompareTableMarkup/CompareTableMarkup.tsx"],"sourcesContent":["import { Tooltip } from \"@ubnt/ui-components/Tooltip\";\nimport {\n Fragment,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from \"react\";\nimport { createPortal } from \"react-dom\";\nimport { useWindowSize } from \"react-use\";\n\nimport { CONTAINER_WIDTH } from \"../../../../constants/layout\";\nimport ndaaBadge from \"../../../../constants/modelCompareData/assets/ndaa-compliant.png\";\nimport tooltipIcon from \"../../../../constants/modelCompareData/assets/tooltip-info.svg\";\nimport { emptyColumn } from \"../../../../constants/modelCompareData/data/products/emptyColumn\";\nimport { useModelCompareTranslation } from \"../../../../constants/modelCompareData/translations/useModelCompareTranslation\";\nimport type { MutatedProduct } from \"../../../../constants/modelCompareData/types\";\nimport { useMenu } from \"../../../../contexts/MenuContext\";\nimport { LanguageDirectionType } from \"../../../../contexts/MenuContext/utils\";\nimport { StyleableSvgImage } from \"../../../StyleableSvgImage\";\nimport * as S from \"../CompareTable.styles\";\nimport {\n OpacityTransitionContainer,\n TOOLTIP_CLASS_NAME,\n} from \"../CompareTable.styles\";\nimport { getNumberOfColumns } from \"../helpers/getNumberOfColumns\";\nimport { useButtonRenderer } from \"../helpers/RenderButton\";\nimport type { Position } from \"../helpers/useTrackColumnPositions\";\nimport { useTrackColumnPositions } from \"../helpers/useTrackColumnPositions\";\nimport type { CompareTableMarkupProps } from \"./CompareTableMarkup.types\";\nimport { CompanyLogo } from \"./components/CompanyLogo/CompanyLogo\";\nimport { ModelCompareOverflowScrollButton } from \"./components/CompareTableOverflowScrollButton\";\nimport { EmptyColumnHeader } from \"./components/EmptyColumnHeader/EmptyColumnHeader\";\nimport { FootNotes } from \"./components/FootNotes/FootNotes\";\nimport { HeaderShadow } from \"./components/HeaderShadow\";\nimport { Notes } from \"./components/Notes/Notes\";\nimport { ProductHeader } from \"./components/ProductHeader/ProductHeader\";\nimport { PropertyValueGridItem } from \"./components/PropertyValueGridItem\";\nimport {\n StickyGrid,\n StickyGridBody,\n StickyGridHeader,\n StickyGridOverlay,\n} from \"./components/StickyGrid\";\n\nconst SMOOTH_SIZE_REDUCTION = 4;\nexport const MIGRATION_TABLE_BREAKPOINT = 800;\n\nexport const CompareTableMarkup = ({\n products,\n properties,\n columnWidth = 338,\n propertyColumnWidth = 230,\n headerStickOffset,\n overlayTopOffset,\n showBuyButton,\n onLinkClick,\n linkToStoreTitleClick,\n showBadges,\n setSelectedProducts,\n hasBeenObserved,\n selectedProductsLimit,\n setExternalState,\n selectedProducts,\n currAvailableProducts,\n isOverviewPage,\n isStaticTable,\n isMigrationTable,\n}: CompareTableMarkupProps) => {\n const { storeId } = useMenu();\n const { formatMessage } = useModelCompareTranslation();\n const renderButton = useButtonRenderer();\n const { width: screenWidth } = useWindowSize();\n const isLessThanOrEqualToFiveProducts = currAvailableProducts.length <= 5;\n const [headerItemsAreSticking, setHeaderItemsAreSticking] = useState(false);\n const [columnPositions, setColumnPositions] = useState<Position[]>([]);\n const [, triggerRender] = useState(0);\n\n const gridBodyRef = useRef<HTMLDivElement | null>(null);\n const productHeaderRefs = useRef<(HTMLDivElement | null)[]>([]);\n\n // #############################################################################\n // Grid calculations\n // #############################################################################\n const isSmallScreen = useMemo(\n () => screenWidth < S.MOBILE_BREAKPOINT,\n [screenWidth],\n );\n\n const isMigrationTableMobileVersion = useMemo(\n () => screenWidth < MIGRATION_TABLE_BREAKPOINT && isMigrationTable,\n [screenWidth, isMigrationTable],\n );\n\n const isGreaterThanDesktopWidth = useMemo(\n () => screenWidth > CONTAINER_WIDTH.DESKTOP,\n [screenWidth],\n );\n\n const leftColumnWidth = useMemo(\n () =>\n isSmallScreen || isMigrationTableMobileVersion\n ? 0\n : Math.min(screenWidth / SMOOTH_SIZE_REDUCTION, propertyColumnWidth),\n [\n isSmallScreen,\n propertyColumnWidth,\n screenWidth,\n isMigrationTableMobileVersion,\n ],\n );\n\n const maxImageHeight = useMemo(\n () => Math.max(...products.map(({ image }) => image.height)),\n [products],\n );\n\n const stickOffset = useMemo(\n () => (headerStickOffset ? headerStickOffset({ maxImageHeight }) : 0),\n [headerStickOffset, maxImageHeight],\n );\n\n const numberOfColumns = useMemo(\n () =>\n isStaticTable\n ? products.length\n : getNumberOfColumns({\n selectedProducts,\n selectedProductsLimit,\n products,\n }),\n [selectedProducts, selectedProductsLimit, products, isStaticTable],\n );\n\n const templateColumnWidth = useMemo(() => {\n const isMigrationDesktop =\n isMigrationTable && !isMigrationTableMobileVersion;\n\n if (isMigrationDesktop) return \"1fr\";\n if (isMigrationTableMobileVersion || isSmallScreen) return \"100%\";\n if (isGreaterThanDesktopWidth) return \"1fr\";\n\n return `${columnWidth}px`;\n }, [\n isSmallScreen,\n columnWidth,\n isGreaterThanDesktopWidth,\n isMigrationTable,\n isMigrationTableMobileVersion,\n ]);\n\n /**\n * 1 sticky left column\n * N non-sticky product columns\n */\n const templateColumns = useMemo(\n () =>\n `${leftColumnWidth}px repeat(${numberOfColumns}, ${templateColumnWidth})`,\n [leftColumnWidth, numberOfColumns, templateColumnWidth],\n );\n\n const hasNotes = useMemo(() => {\n return products.some(({ notes }) => !!notes?.length);\n }, [products]);\n\n const hasFootnotes = useMemo(() => {\n return products.some(({ footnotes }) => footnotes?.length);\n }, [products]);\n\n // #############################################################################\n // Column button\n // #############################################################################\n const getComingSoonButtonText = useCallback(\n (product: MutatedProduct) => {\n const buttonText = product.comingSoonButtonText;\n\n if (typeof buttonText === \"string\") {\n return formatMessage(buttonText);\n }\n\n if (typeof buttonText === \"function\" && !!buttonText(storeId)) {\n const foundKey = buttonText(storeId);\n\n if (foundKey) {\n return formatMessage(foundKey);\n }\n }\n\n return formatMessage(\"Coming Soon\");\n },\n [formatMessage, storeId],\n );\n\n const hasMultipleProductsSelected = useMemo(\n () => products.filter(({ id }) => id !== emptyColumn.id).length > 1,\n [products],\n );\n\n // #############################################################################\n // Sets position of columns for spotlight\n // #############################################################################\n\n useTrackColumnPositions(\n productHeaderRefs,\n useCallback((positions) => {\n setColumnPositions(positions);\n }, []),\n isMigrationTable,\n );\n\n useEffect(() => {\n if (!isMigrationTable) return;\n\n const handleResize = () => {\n triggerRender((n) => n + 1);\n };\n\n window.addEventListener(\"resize\", handleResize);\n return () => window.removeEventListener(\"resize\", handleResize);\n }, [isMigrationTable]);\n\n // #############################################################################\n // Removes overflowX of `body` so spotlights don't cause horizontal scrolling\n // #############################################################################\n\n const originalOverflowXRef = useRef<string | null>(null);\n\n useEffect(() => {\n if (isMigrationTableMobileVersion) {\n if (originalOverflowXRef.current === null) {\n originalOverflowXRef.current = document.body.style.overflowX;\n }\n\n document.body.style.overflowX = \"hidden\";\n\n return () => {\n if (originalOverflowXRef.current !== null) {\n document.body.style.overflowX = originalOverflowXRef.current;\n originalOverflowXRef.current = null;\n }\n };\n }\n\n return () => {};\n }, [isMigrationTable, isSmallScreen, isMigrationTableMobileVersion]);\n\n return (\n // APPLY left to right override in all cases rather than redo the model compare for Arabic\n <section dir={LanguageDirectionType.ltr}>\n <OpacityTransitionContainer\n $hasBeenObserved={hasBeenObserved}\n $isStaticTable={isStaticTable}\n >\n <StickyGrid templateColumns={templateColumns}>\n <StickyGridHeader\n removePositionSticky={isMigrationTable}\n stickOffset={stickOffset}\n onStickyStateChange={setHeaderItemsAreSticking}\n nonScrollChildren={({ grid: { isAtMinX }, isStuck }) => {\n if (!isMigrationTable)\n return (\n <HeaderShadow\n leftColumnWidth={leftColumnWidth}\n shadowLeftColumn={isAtMinX}\n show={isStuck}\n />\n );\n return null;\n }}\n >\n <S.PlaceholderGridItem stickX={!isMigrationTable} />\n {products.map((product, index) => {\n const headerElement = productHeaderRefs.current[index];\n const gridBodyElement = gridBodyRef.current;\n const headerRect = headerElement?.getBoundingClientRect();\n const gridBodyRect = gridBodyElement?.getBoundingClientRect();\n const greatestProductHeaderHeight = Math.max(\n ...productHeaderRefs.current\n .map((header) => header?.getBoundingClientRect().height)\n .filter(\n (height): height is number => typeof height === \"number\",\n ),\n );\n\n const sharedSpotlightValues = {\n $isSmallScreen: isMigrationTableMobileVersion,\n $coverWidth:\n (document.documentElement.clientWidth -\n (headerRect?.width ?? 0)) /\n 2,\n $columnCoordinates: {\n x: columnPositions[index]?.left ?? 0,\n y: columnPositions[index]?.top ?? 0,\n },\n $spotlightDimensions: {\n width: headerRect?.width ?? 0,\n height:\n greatestProductHeaderHeight + (gridBodyRect?.height ?? 0),\n },\n };\n\n return product.propertyValues.length ? (\n <S.Container\n key={`${product.id}-${index}`}\n $isMigrationTable={isMigrationTable}\n >\n {isMigrationTable && (\n <S.CompanyLogoWrapper>\n <CompanyLogo company={product.competitorCompany} />\n </S.CompanyLogoWrapper>\n )}\n {isMigrationTable &&\n createPortal(\n headerElement && gridBodyElement && product.isSpotlit ? (\n <>\n <S.SpotlightCover {...sharedSpotlightValues} />\n <S.SpotlightCover\n $isRightCover\n {...sharedSpotlightValues}\n />\n\n <S.NDAABadge\n src={ndaaBadge as string}\n alt={`The ${formatMessage(product.title)} is NDAA Compliant`}\n $columnCoordinates={\n sharedSpotlightValues.$columnCoordinates\n }\n $spotlightWidth={\n sharedSpotlightValues.$spotlightDimensions.width\n }\n />\n <S.Spotlight\n $spotlightDimensions={\n sharedSpotlightValues.$spotlightDimensions\n }\n $columnCoordinates={\n sharedSpotlightValues.$columnCoordinates\n }\n />\n </>\n ) : null,\n document.body,\n )}\n\n <ProductHeader\n ref={(el) => (productHeaderRefs.current[index] = el)}\n key={`${product.id}-${index}`}\n isStaticProduct={\n isStaticTable || (!isOverviewPage && index === 0)\n }\n product={product}\n setSelectedProducts={setSelectedProducts}\n index={index}\n setExternalState={setExternalState}\n selectedProducts={selectedProducts}\n linkToStoreTitleClick={linkToStoreTitleClick}\n hasBeenObserved={hasBeenObserved}\n isLessThanOrEqualToFiveProducts={\n isLessThanOrEqualToFiveProducts\n }\n hasMultipleProductsSelected={hasMultipleProductsSelected}\n isSmallScreen={\n isSmallScreen || isMigrationTableMobileVersion\n }\n onLinkClick={onLinkClick}\n showBadges={showBadges}\n isMigrationTable={isMigrationTable}\n />\n </S.Container>\n ) : (\n <EmptyColumnHeader\n key={`${product.id}-${index}`}\n product={product}\n index={index}\n hasBeenObserved={hasBeenObserved}\n maxImageHeight={maxImageHeight}\n headerItemsAreSticking={headerItemsAreSticking}\n />\n );\n })}\n </StickyGridHeader>\n\n <StickyGridBody ref={gridBodyRef}>\n {properties.map((property) => (\n <Fragment key={property.id}>\n <S.PropertyTitleGridItem stickX={!isMigrationTable}>\n {!!leftColumnWidth && (\n <S.PropertyTitleGridItemContent>\n <S.PropertyIcon>\n <StyleableSvgImage\n width={30}\n height={30}\n src={property.icon}\n />\n </S.PropertyIcon>\n <S.PropertyTitle>\n {property.title.split(\"\\n\").map((part, i, arr) => (\n <Fragment key={i}>\n {part}\n {i < arr.length - 1 && <br />}\n </Fragment>\n ))}\n </S.PropertyTitle>\n {property.tooltip && (\n <S.PropertyTooltip>\n <S.TooltipStyles maxWidth={property.tooltipWidth} />\n <Tooltip\n tooltipClassName={TOOLTIP_CLASS_NAME}\n description={\n <S.PropertyTooltipContent\n dangerouslySetInnerHTML={{\n __html: property.tooltip,\n }}\n />\n }\n portal\n motif=\"dark\"\n isInteractive\n position=\"right\"\n width={property.tooltipWidth}\n >\n <S.PropertyTooltipHoverArea />\n <S.TooltipIcon\n width={20}\n height={20}\n src={tooltipIcon}\n />\n </Tooltip>\n </S.PropertyTooltip>\n )}\n </S.PropertyTitleGridItemContent>\n )}\n </S.PropertyTitleGridItem>\n\n {products.map((product, index) => {\n const isLastProduct = index === products.length - 1;\n const productProperty = product.propertyValues?.find(\n (product) => product.propertyId === property.id,\n );\n\n return (\n <PropertyValueGridItem\n isLastProduct={isLastProduct}\n key={`${product.id}-${index}`}\n productProperty={productProperty}\n property={property}\n includeProperty={\n isSmallScreen || isMigrationTableMobileVersion\n }\n index={index}\n isMigrationTable={isMigrationTable}\n isSpotlightProduct={!!product.isSpotlit}\n />\n );\n })}\n </Fragment>\n ))}\n\n {/**\n * Notes\n */}\n {hasNotes && <Notes products={products} />}\n\n {/**\n * Buy button\n */}\n <S.EmptyPropertyTitleGridItem stickX />\n {products.map((product, index) =>\n renderButton({\n product,\n index,\n getComingSoonButtonText,\n showBuyButton,\n onLinkClick,\n }),\n )}\n\n {/**\n * Footnotes\n */}\n {hasFootnotes && <FootNotes products={products} />}\n </StickyGridBody>\n\n <StickyGridOverlay\n style={{ left: `${leftColumnWidth}px` }}\n topOffset={overlayTopOffset}\n >\n {({ isAtMinX }) => (\n <ModelCompareOverflowScrollButton\n isVisible={!isAtMinX}\n color={leftColumnWidth > 0 ? \"rgb(23 49 73 / 0.1)\" : \"white\"}\n rotationDegrees={180}\n onClickColumnDiff={-1}\n totalColumns={products.length}\n totalDeadSpace={leftColumnWidth}\n isSmallScreen={isSmallScreen || isMigrationTableMobileVersion}\n isMigrationTable={isMigrationTable}\n />\n )}\n </StickyGridOverlay>\n\n <StickyGridOverlay style={{ right: 0 }} topOffset={overlayTopOffset}>\n {({ isAtMaxX }) => (\n <ModelCompareOverflowScrollButton\n isLeftButton={false}\n isVisible={!isAtMaxX}\n color=\"white\"\n rotationDegrees={0}\n onClickColumnDiff={1}\n totalColumns={products.length}\n totalDeadSpace={leftColumnWidth}\n isSmallScreen={isSmallScreen || isMigrationTable}\n isMigrationTable={isMigrationTable}\n />\n )}\n </StickyGridOverlay>\n </StickyGrid>\n </OpacityTransitionContainer>\n </section>\n );\n};\n"],"names":["SMOOTH_SIZE_REDUCTION","MIGRATION_TABLE_BREAKPOINT","CompareTableMarkup","products","properties","columnWidth","propertyColumnWidth","headerStickOffset","overlayTopOffset","showBuyButton","onLinkClick","linkToStoreTitleClick","showBadges","setSelectedProducts","hasBeenObserved","selectedProductsLimit","setExternalState","selectedProducts","currAvailableProducts","isOverviewPage","isStaticTable","isMigrationTable","storeId","useMenu","formatMessage","useModelCompareTranslation","renderButton","useButtonRenderer","width","screenWidth","useWindowSize","isLessThanOrEqualToFiveProducts","length","headerItemsAreSticking","setHeaderItemsAreSticking","useState","columnPositions","setColumnPositions","triggerRender","gridBodyRef","useRef","productHeaderRefs","isSmallScreen","useMemo","S.MOBILE_BREAKPOINT","isMigrationTableMobileVersion","isGreaterThanDesktopWidth","CONTAINER_WIDTH","DESKTOP","leftColumnWidth","Math","min","maxImageHeight","max","map","image","height","stickOffset","numberOfColumns","getNumberOfColumns","templateColumnWidth","isMigrationDesktop","templateColumns","hasNotes","some","notes","hasFootnotes","footnotes","getComingSoonButtonText","useCallback","product","buttonText","comingSoonButtonText","foundKey","hasMultipleProductsSelected","filter","id","emptyColumn","useTrackColumnPositions","positions","useEffect","handleResize","n","window","addEventListener","removeEventListener","originalOverflowXRef","current","document","body","style","overflowX","jsx","dir","LanguageDirectionType","ltr","children","OpacityTransitionContainer","$hasBeenObserved","$isStaticTable","jsxs","StickyGrid","StickyGridHeader","removePositionSticky","onStickyStateChange","nonScrollChildren","grid","isAtMinX","isStuck","HeaderShadow","shadowLeftColumn","show","S.PlaceholderGridItem","stickX","index","headerElement","gridBodyElement","headerRect","getBoundingClientRect","gridBodyRect","greatestProductHeaderHeight","header","sharedSpotlightValues","$isSmallScreen","$coverWidth","documentElement","clientWidth","$columnCoordinates","x","left","y","top","$spotlightDimensions","propertyValues","S.Container","$isMigrationTable","S.CompanyLogoWrapper","CompanyLogo","company","competitorCompany","createPortal","isSpotlit","Fragment","S.SpotlightCover","$isRightCover","S.NDAABadge","src","ndaaBadge","alt","title","$spotlightWidth","S.Spotlight","ProductHeader","ref","el","isStaticProduct","EmptyColumnHeader","StickyGridBody","property","S.PropertyTitleGridItem","S.PropertyTitleGridItemContent","S.PropertyIcon","StyleableSvgImage","icon","S.PropertyTitle","split","part","i","arr","tooltip","S.PropertyTooltip","S.TooltipStyles","maxWidth","tooltipWidth","Tooltip","tooltipClassName","TOOLTIP_CLASS_NAME","description","S.PropertyTooltipContent","dangerouslySetInnerHTML","__html","portal","motif","isInteractive","position","S.PropertyTooltipHoverArea","S.TooltipIcon","tooltipIcon","isLastProduct","productProperty","find","propertyId","PropertyValueGridItem","includeProperty","isSpotlightProduct","Notes","S.EmptyPropertyTitleGridItem","FootNotes","StickyGridOverlay","topOffset","ModelCompareOverflowScrollButton","isVisible","color","rotationDegrees","onClickColumnDiff","totalColumns","totalDeadSpace","right","isAtMaxX","isLeftButton"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CA,MAAMA,qBAAwB,GAAA,CAAA;AACvB,MAAMC,0BAA6B,GAAA,GAAA;AAEnC,MAAMC,qBAAqBA,CAAC;EACjCC,QAAA;EACAC,UAAA;EACAC,WAAc,GAAA,GAAA;EACdC,mBAAsB,GAAA,GAAA;EACtBC,iBAAA;EACAC,gBAAA;EACAC,aAAA;EACAC,WAAA;EACAC,qBAAA;EACAC,UAAA;EACAC,mBAAA;EACAC,eAAA;EACAC,qBAAA;EACAC,gBAAA;EACAC,gBAAA;EACAC,qBAAA;EACAC,cAAA;EACAC,aAAA;EACAC;AACF,CAA+B,KAAA;EACvB,MAAA;IAAEC;EAAQ,CAAA,GAAIC,OAAQ,CAAA,CAAA;EACtB,MAAA;IAAEC;EAAc,CAAA,GAAIC,0BAA2B,CAAA,CAAA;EACrD,MAAMC,eAAeC,iBAAkB,CAAA,CAAA;EACvC,MAAM;IAAEC,KAAA,EAAOC;EAAY,CAAA,GAAIC,aAAc,CAAA,CAAA;EACvC,MAAAC,+BAAA,GAAkCb,sBAAsBc,MAAU,IAAA,CAAA;EACxE,MAAM,CAACC,sBAAA,EAAwBC,yBAAyB,CAAA,GAAIC,SAAS,KAAK,CAAA;EAC1E,MAAM,CAACC,eAAiB,EAAAC,kBAAkB,CAAI,GAAAF,QAAA,CAAqB,EAAE,CAA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AA;cACdR,WAAW,CAACO,QAAA;cACZN,KAAM,EAAA,OAAA;cACNC,eAAiB,EAAA,CAAA;cACjBC,iBAAmB,EAAA,CAAA;cACnBC,cAAc1M,QAAS,CAAA6B,MAAA;cACvB8K,cAAgB,EAAA7J,eAAA;cAChBP,eAAeA,aAAiB,IAAArB,gBAAA;cAChCA;YAAA,CAAA;UAGN,CAAA,CAAA;QACF,CAAA;MAAA,CAAA;IAEJ,CAAA;EAAA;AAEJ,CAAA;"}
@@ -13,7 +13,7 @@ var ComputeResourceCalculator_types = require('./ComputeResourceCalculator.types
13
13
  var udmProMax = require("../../../assets/udm-pro-max.png");
14
14
  var udmPro = require("../../../assets/udm-pro.png");
15
15
  var ucgMax = require("../../../assets/ucg-max.png");
16
- var envr = require("../../../assets/envr2.png");
16
+ var envr = require("../../../assets/envr.png");
17
17
  var unvrPro = require("../../../assets/unvr-pro.png");
18
18
  var unvr = require("../../../assets/unvr.png");
19
19
  var ckg2 = require("../../../assets/unifi-cloudkey-plus.png");
@@ -11,7 +11,7 @@ import { FeatureId, DeviceId } from './ComputeResourceCalculator.types.mjs';
11
11
  import udmProMax__default from "../../../assets/udm-pro-max.png";
12
12
  import udmPro__default from "../../../assets/udm-pro.png";
13
13
  import ucgMax__default from "../../../assets/ucg-max.png";
14
- import envr__default from "../../../assets/envr2.png";
14
+ import envr__default from "../../../assets/envr.png";
15
15
  import unvrPro__default from "../../../assets/unvr-pro.png";
16
16
  import unvr__default from "../../../assets/unvr.png";
17
17
  import ckg2__default from "../../../assets/unifi-cloudkey-plus.png";
@@ -12,7 +12,7 @@ require('./assets/attention.svg.js');
12
12
  var InputCard_styles = require('./InputCard.styles.js');
13
13
  require('./InputSections/index.js');
14
14
  var CustomImage = require('../../../../CustomImage/CustomImage.js');
15
- var attentionIcon = require("../../../../../assets/attention.svg");
15
+ var attentionIcon = require("../../../../../assets/attention2.svg");
16
16
  var OptionSelectSection = require('./InputSections/OptionSelectSection.js');
17
17
  var SliderSection = require('./InputSections/SliderSection.js');
18
18
  var CounterSection = require('./InputSections/CounterSection.js');
@@ -10,7 +10,7 @@ import './assets/attention.svg.mjs';
10
10
  import { Card, Header, HeaderHeadingSection, HeadingIcon, HeadingTitle, HeaderActionSection, SubduedInfo, OverlayFilter, NotAvailableNoteWrap, NotAvailableNoteIcon, InputBody, InputSectionSpacing, Footer, FooterContent, FooterNote } from './InputCard.styles.mjs';
11
11
  import './InputSections/index.mjs';
12
12
  import { CustomImage } from '../../../../CustomImage/CustomImage.mjs';
13
- import attentionIcon__default from "../../../../../assets/attention.svg";
13
+ import attentionIcon__default from "../../../../../assets/attention2.svg";
14
14
  import { OptionSelectSection } from './InputSections/OptionSelectSection.mjs';
15
15
  import { SliderSection } from './InputSections/SliderSection.mjs';
16
16
  import { CounterSection } from './InputSections/CounterSection.mjs';
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var attentionIcon = require("../../../../../../assets/attention.svg");
6
+ var attentionIcon = require("../../../../../../assets/attention2.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/attention.svg";
2
- export { default } from "../../../../../../assets/attention.svg";
1
+ export * from "../../../../../../assets/attention2.svg";
2
+ export { default } from "../../../../../../assets/attention2.svg";
3
3
  //# sourceMappingURL=attention.svg.mjs.map