@ubnt/store.core 11.11.0-beta.0 → 11.11.0-beta.1

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 (309) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/lib/assets/ai-dslr.jpg +0 -0
  3. package/lib/assets/ai-dslr2.jpg +0 -0
  4. package/lib/assets/ai-theta.jpg +0 -0
  5. package/lib/assets/ai-theta2.jpg +0 -0
  6. package/lib/assets/attention.svg +1 -1
  7. package/lib/assets/attention2.svg +1 -1
  8. package/lib/assets/bullet2.svg +1 -1
  9. package/lib/assets/bullet3.svg +1 -1
  10. package/lib/assets/compact.svg +1 -1
  11. package/lib/assets/compact2.svg +1 -1
  12. package/lib/assets/door-hub.jpg +0 -0
  13. package/lib/assets/door-hub2.jpg +0 -0
  14. package/lib/assets/floodlight.svg +1 -1
  15. package/lib/assets/floodlight2.svg +1 -1
  16. package/lib/assets/g2-reader-pro.jpg +0 -0
  17. package/lib/assets/g2-reader-pro2.jpg +0 -0
  18. package/lib/assets/g2-reader.jpg +0 -0
  19. package/lib/assets/g2-reader2.jpg +0 -0
  20. package/lib/assets/g3-reader-pro.jpg +0 -0
  21. package/lib/assets/g3-reader-pro2.jpg +0 -0
  22. package/lib/assets/g3-starter-kit.jpg +0 -0
  23. package/lib/assets/g3-starter-kit2.jpg +0 -0
  24. package/lib/assets/g4-ptz.jpg +0 -0
  25. package/lib/assets/g4-ptz2.jpg +0 -0
  26. package/lib/assets/g5-dome-ultra.jpg +0 -0
  27. package/lib/assets/g5-dome-ultra2.jpg +0 -0
  28. package/lib/assets/globe.svg +1 -1
  29. package/lib/assets/globe2.svg +1 -1
  30. package/lib/assets/intercom.jpg +0 -0
  31. package/lib/assets/intercom2.jpg +0 -0
  32. package/lib/assets/minus.svg +1 -1
  33. package/lib/assets/minus2.svg +1 -1
  34. package/lib/assets/power.svg +1 -1
  35. package/lib/assets/power2.svg +1 -1
  36. package/lib/assets/rack.svg +1 -1
  37. package/lib/assets/rack2.svg +1 -1
  38. package/lib/assets/ucgFiber.jpg +0 -0
  39. package/lib/assets/ucgFiber2.jpg +0 -0
  40. package/lib/assets/ucgMax.jpg +0 -0
  41. package/lib/assets/ucgMax2.jpg +0 -0
  42. package/lib/assets/ucgUltra.jpg +0 -0
  43. package/lib/assets/ucgUltra2.jpg +0 -0
  44. package/lib/components/Badge/Badge.styles.js +1 -1
  45. package/lib/components/Badge/Badge.styles.js.map +1 -1
  46. package/lib/components/Badge/Badge.styles.mjs +1 -1
  47. package/lib/components/Badge/Badge.styles.mjs.map +1 -1
  48. package/lib/components/ButtonGroup/ButtonGroup.d.ts +1 -1
  49. package/lib/components/ButtonGroup/ButtonGroup.js +7 -3
  50. package/lib/components/ButtonGroup/ButtonGroup.js.map +1 -1
  51. package/lib/components/ButtonGroup/ButtonGroup.mjs +7 -3
  52. package/lib/components/ButtonGroup/ButtonGroup.mjs.map +1 -1
  53. package/lib/components/ButtonGroup/ButtonGroup.styles.d.ts +3 -1
  54. package/lib/components/ButtonGroup/ButtonGroup.styles.js +3 -1
  55. package/lib/components/ButtonGroup/ButtonGroup.styles.js.map +1 -1
  56. package/lib/components/ButtonGroup/ButtonGroup.styles.mjs +3 -1
  57. package/lib/components/ButtonGroup/ButtonGroup.styles.mjs.map +1 -1
  58. package/lib/components/ButtonGroup/ButtonGroup.types.d.ts +2 -0
  59. package/lib/components/CardSection/CardSection.styles.js +2 -2
  60. package/lib/components/CardSection/CardSection.styles.js.map +1 -1
  61. package/lib/components/CardSection/CardSection.styles.mjs +2 -2
  62. package/lib/components/CardSection/CardSection.styles.mjs.map +1 -1
  63. package/lib/components/GridGallery/GridModal/GridModal.styles.js +2 -2
  64. package/lib/components/GridGallery/GridModal/GridModal.styles.js.map +1 -1
  65. package/lib/components/GridGallery/GridModal/GridModal.styles.mjs +2 -2
  66. package/lib/components/GridGallery/GridModal/GridModal.styles.mjs.map +1 -1
  67. package/lib/components/Header/AccountFrame/AccountFrame.styles.js +1 -1
  68. package/lib/components/Header/AccountFrame/AccountFrame.styles.js.map +1 -1
  69. package/lib/components/Header/AccountFrame/AccountFrame.styles.mjs +1 -1
  70. package/lib/components/Header/AccountFrame/AccountFrame.styles.mjs.map +1 -1
  71. package/lib/components/Header/CartModalV2/CartModal.styles.js +1 -1
  72. package/lib/components/Header/CartModalV2/CartModal.styles.js.map +1 -1
  73. package/lib/components/Header/CartModalV2/CartModal.styles.mjs +1 -1
  74. package/lib/components/Header/CartModalV2/CartModal.styles.mjs.map +1 -1
  75. package/lib/components/Header/CartModalV2/Item/Item.js +3 -3
  76. package/lib/components/Header/CartModalV2/Item/Item.mjs +2 -2
  77. package/lib/components/Header/Header.js +1 -1
  78. package/lib/components/Header/Header.mjs +1 -1
  79. package/lib/components/Header/Header.styles.js +1 -1
  80. package/lib/components/Header/Header.styles.js.map +1 -1
  81. package/lib/components/Header/Header.styles.mjs +1 -1
  82. package/lib/components/Header/Header.styles.mjs.map +1 -1
  83. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.js +1 -1
  84. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.js.map +1 -1
  85. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.mjs +1 -1
  86. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.mjs.map +1 -1
  87. package/lib/components/Header/Overlay/Overlay.styles.js +2 -2
  88. package/lib/components/Header/Overlay/Overlay.styles.js.map +1 -1
  89. package/lib/components/Header/Overlay/Overlay.styles.mjs +2 -2
  90. package/lib/components/Header/Overlay/Overlay.styles.mjs.map +1 -1
  91. package/lib/components/Header/ProHeader/ProHeader.js +1 -1
  92. package/lib/components/Header/ProHeader/ProHeader.mjs +1 -1
  93. package/lib/components/ImageCarousel/ImageCarousel.styles.js +1 -1
  94. package/lib/components/ImageCarousel/ImageCarousel.styles.js.map +1 -1
  95. package/lib/components/ImageCarousel/ImageCarousel.styles.mjs +1 -1
  96. package/lib/components/ImageCarousel/ImageCarousel.styles.mjs.map +1 -1
  97. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.styles.js +2 -2
  98. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.styles.js.map +1 -1
  99. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.styles.mjs +2 -2
  100. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.styles.mjs.map +1 -1
  101. package/lib/components/MicrositeBanner/MicrositeBanner.styles.js +1 -1
  102. package/lib/components/MicrositeBanner/MicrositeBanner.styles.js.map +1 -1
  103. package/lib/components/MicrositeBanner/MicrositeBanner.styles.mjs +1 -1
  104. package/lib/components/MicrositeBanner/MicrositeBanner.styles.mjs.map +1 -1
  105. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.styles.js +2 -2
  106. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.styles.js.map +1 -1
  107. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.styles.mjs +2 -2
  108. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.styles.mjs.map +1 -1
  109. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.js +1 -1
  110. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.js.map +1 -1
  111. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.mjs +1 -1
  112. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.mjs.map +1 -1
  113. package/lib/components/MicrositeHeader/components/HeaderContent/HeaderContent.js +1 -1
  114. package/lib/components/MicrositeHeader/components/HeaderContent/HeaderContent.mjs +1 -1
  115. package/lib/components/MicrositeHeader/components/VisualTopology/VisualTopology.js +3 -3
  116. package/lib/components/MicrositeHeader/components/VisualTopology/VisualTopology.mjs +2 -2
  117. package/lib/components/MobileModal/MobileModal.styles.js +2 -2
  118. package/lib/components/MobileModal/MobileModal.styles.js.map +1 -1
  119. package/lib/components/MobileModal/MobileModal.styles.mjs +2 -2
  120. package/lib/components/MobileModal/MobileModal.styles.mjs.map +1 -1
  121. package/lib/components/ModelCompareV3/ModelCompareOverflowScrollButton.js +2 -2
  122. package/lib/components/ModelCompareV3/ModelCompareOverflowScrollButton.js.map +1 -1
  123. package/lib/components/ModelCompareV3/ModelCompareOverflowScrollButton.mjs +2 -2
  124. package/lib/components/ModelCompareV3/ModelCompareOverflowScrollButton.mjs.map +1 -1
  125. package/lib/components/ModelCompareV3/ModelComparePropertyValueGridItem.js +1 -1
  126. package/lib/components/ModelCompareV3/ModelComparePropertyValueGridItem.mjs +1 -1
  127. package/lib/components/ModelCompareV3/ProductGroupsGrid.js +2 -2
  128. package/lib/components/ModelCompareV3/ProductGroupsGrid.js.map +1 -1
  129. package/lib/components/ModelCompareV3/ProductGroupsGrid.mjs +2 -2
  130. package/lib/components/ModelCompareV3/ProductGroupsGrid.mjs.map +1 -1
  131. package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/CompareTableOverflowScrollButton.js +2 -2
  132. package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/CompareTableOverflowScrollButton.js.map +1 -1
  133. package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/CompareTableOverflowScrollButton.mjs +2 -2
  134. package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/CompareTableOverflowScrollButton.mjs.map +1 -1
  135. package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/PropertyValueGridItem.js +1 -1
  136. package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/PropertyValueGridItem.mjs +1 -1
  137. package/lib/components/ModelCompareV4/ProductList/ProductList.styles.js +3 -3
  138. package/lib/components/ModelCompareV4/ProductList/ProductList.styles.js.map +1 -1
  139. package/lib/components/ModelCompareV4/ProductList/ProductList.styles.mjs +3 -3
  140. package/lib/components/ModelCompareV4/ProductList/ProductList.styles.mjs.map +1 -1
  141. package/lib/components/ModelCompareV4/ProductList/components/ScrollButton/ScrollButton.styles.js +2 -2
  142. package/lib/components/ModelCompareV4/ProductList/components/ScrollButton/ScrollButton.styles.js.map +1 -1
  143. package/lib/components/ModelCompareV4/ProductList/components/ScrollButton/ScrollButton.styles.mjs +2 -2
  144. package/lib/components/ModelCompareV4/ProductList/components/ScrollButton/ScrollButton.styles.mjs.map +1 -1
  145. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +1 -1
  146. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
  147. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.js +1 -1
  148. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.mjs +2 -2
  149. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +1 -1
  150. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs +1 -1
  151. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.js +1 -1
  152. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.mjs +2 -2
  153. package/lib/components/ScrollWrapper/ScrollWrapper.styles.js +2 -2
  154. package/lib/components/ScrollWrapper/ScrollWrapper.styles.js.map +1 -1
  155. package/lib/components/ScrollWrapper/ScrollWrapper.styles.mjs +2 -2
  156. package/lib/components/ScrollWrapper/ScrollWrapper.styles.mjs.map +1 -1
  157. package/lib/components/StaticModal/StaticModal.styles.js +5 -5
  158. package/lib/components/StaticModal/StaticModal.styles.js.map +1 -1
  159. package/lib/components/StaticModal/StaticModal.styles.mjs +5 -5
  160. package/lib/components/StaticModal/StaticModal.styles.mjs.map +1 -1
  161. package/lib/constants/icons/generic/index.js +3 -3
  162. package/lib/constants/icons/generic/index.mjs +1 -1
  163. package/lib/constants/icons/generic/minus.svg.js +5 -5
  164. package/lib/constants/icons/generic/minus.svg.mjs +2 -2
  165. package/lib/constants/icons/header/globe.svg.js +1 -1
  166. package/lib/constants/icons/header/globe.svg.mjs +2 -2
  167. package/lib/constants/icons/header/index.js +1 -1
  168. package/lib/constants/icons/header/index.mjs +1 -1
  169. package/lib/constants/icons/menu/floodlight.svg.js +5 -5
  170. package/lib/constants/icons/menu/floodlight.svg.mjs +2 -2
  171. package/lib/constants/icons/menu/index.js +9 -9
  172. package/lib/constants/icons/menu/index.mjs +3 -3
  173. package/lib/constants/icons/menu/power.svg.js +5 -5
  174. package/lib/constants/icons/menu/power.svg.mjs +2 -2
  175. package/lib/constants/icons/menu/rack.svg.js +5 -5
  176. package/lib/constants/icons/menu/rack.svg.mjs +2 -2
  177. package/lib/constants/mixin.js +10 -10
  178. package/lib/constants/mixin.js.map +1 -1
  179. package/lib/constants/mixin.mjs +10 -10
  180. package/lib/constants/mixin.mjs.map +1 -1
  181. package/lib/constants/modelCompareData/assets/Bullet/ai-dslr.jpg.js +1 -1
  182. package/lib/constants/modelCompareData/assets/Bullet/ai-dslr.jpg.mjs +2 -2
  183. package/lib/constants/modelCompareData/assets/Bullet/bullet.svg.js +1 -1
  184. package/lib/constants/modelCompareData/assets/Bullet/bullet.svg.mjs +2 -2
  185. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/ucgFiber.jpg.js +5 -5
  186. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/ucgFiber.jpg.mjs +2 -2
  187. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/ucgMax.jpg.js +5 -5
  188. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/ucgMax.jpg.mjs +2 -2
  189. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/ucgUltra.jpg.js +5 -5
  190. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/ucgUltra.jpg.mjs +2 -2
  191. package/lib/constants/modelCompareData/assets/Consoles/ucgFiber.jpg.js +1 -1
  192. package/lib/constants/modelCompareData/assets/Consoles/ucgFiber.jpg.mjs +2 -2
  193. package/lib/constants/modelCompareData/assets/Consoles/ucgMax.jpg.js +1 -1
  194. package/lib/constants/modelCompareData/assets/Consoles/ucgMax.jpg.mjs +2 -2
  195. package/lib/constants/modelCompareData/assets/Consoles/ucgUltra.jpg.js +1 -1
  196. package/lib/constants/modelCompareData/assets/Consoles/ucgUltra.jpg.mjs +2 -2
  197. package/lib/constants/modelCompareData/assets/DomeTurret/g5-dome-ultra.jpg.js +1 -1
  198. package/lib/constants/modelCompareData/assets/DomeTurret/g5-dome-ultra.jpg.mjs +2 -2
  199. package/lib/constants/modelCompareData/assets/DoorAccess/door-hub.jpg.js +1 -1
  200. package/lib/constants/modelCompareData/assets/DoorAccess/door-hub.jpg.mjs +2 -2
  201. package/lib/constants/modelCompareData/assets/DoorAccess/g2-reader-pro.jpg.js +1 -1
  202. package/lib/constants/modelCompareData/assets/DoorAccess/g2-reader-pro.jpg.mjs +2 -2
  203. package/lib/constants/modelCompareData/assets/DoorAccess/g2-reader.jpg.js +1 -1
  204. package/lib/constants/modelCompareData/assets/DoorAccess/g2-reader.jpg.mjs +2 -2
  205. package/lib/constants/modelCompareData/assets/DoorAccess/g3-reader-pro.jpg.js +1 -1
  206. package/lib/constants/modelCompareData/assets/DoorAccess/g3-reader-pro.jpg.mjs +2 -2
  207. package/lib/constants/modelCompareData/assets/DoorAccess/g3-starter-kit.jpg.js +1 -1
  208. package/lib/constants/modelCompareData/assets/DoorAccess/g3-starter-kit.jpg.mjs +2 -2
  209. package/lib/constants/modelCompareData/assets/DoorAccess/intercom.jpg.js +1 -1
  210. package/lib/constants/modelCompareData/assets/DoorAccess/intercom.jpg.mjs +2 -2
  211. package/lib/constants/modelCompareData/assets/Interior/ai-theta.jpg.js +1 -1
  212. package/lib/constants/modelCompareData/assets/Interior/ai-theta.jpg.mjs +2 -2
  213. package/lib/constants/modelCompareData/assets/PTZ/g4-ptz.jpg.js +1 -1
  214. package/lib/constants/modelCompareData/assets/PTZ/g4-ptz.jpg.mjs +2 -2
  215. package/lib/constants/modelCompareData/assets/compact.svg.js +1 -1
  216. package/lib/constants/modelCompareData/assets/compact.svg.mjs +2 -2
  217. package/lib/constants/modelCompareData/assets/floodlight.svg.js +1 -1
  218. package/lib/constants/modelCompareData/assets/floodlight.svg.mjs +2 -2
  219. package/lib/constants/modelCompareData/assets/globe.svg.js +1 -1
  220. package/lib/constants/modelCompareData/assets/globe.svg.mjs +2 -2
  221. package/lib/constants/modelCompareData/assets/minus.svg.js +1 -1
  222. package/lib/constants/modelCompareData/assets/minus.svg.mjs +2 -2
  223. package/lib/constants/modelCompareData/assets/power.svg.js +1 -1
  224. package/lib/constants/modelCompareData/assets/power.svg.mjs +2 -2
  225. package/lib/constants/modelCompareData/assets/product-list-assets/bullet.svg.js +1 -1
  226. package/lib/constants/modelCompareData/assets/product-list-assets/bullet.svg.mjs +2 -2
  227. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/ai-dslr.jpg.js +1 -1
  228. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/ai-dslr.jpg.mjs +2 -2
  229. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-dome-ultra.jpg.js +1 -1
  230. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-dome-ultra.jpg.mjs +2 -2
  231. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/door-hub.jpg.js +1 -1
  232. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/door-hub.jpg.mjs +2 -2
  233. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g2-reader-pro.jpg.js +1 -1
  234. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g2-reader-pro.jpg.mjs +2 -2
  235. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g2-reader.jpg.js +1 -1
  236. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g2-reader.jpg.mjs +2 -2
  237. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g3-reader-pro.jpg.js +1 -1
  238. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g3-reader-pro.jpg.mjs +2 -2
  239. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g3-starter-kit.jpg.js +1 -1
  240. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g3-starter-kit.jpg.mjs +2 -2
  241. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/intercom.jpg.js +1 -1
  242. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/intercom.jpg.mjs +2 -2
  243. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/interior-design/ai-theta.jpg.js +1 -1
  244. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/interior-design/ai-theta.jpg.mjs +2 -2
  245. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/ptz/g4-ptz.jpg.js +1 -1
  246. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/ptz/g4-ptz.jpg.mjs +2 -2
  247. package/lib/constants/modelCompareData/assets/product-list-assets/compact.svg.js +1 -1
  248. package/lib/constants/modelCompareData/assets/product-list-assets/compact.svg.mjs +2 -2
  249. package/lib/constants/modelCompareData/assets/rack.svg.js +1 -1
  250. package/lib/constants/modelCompareData/assets/rack.svg.mjs +2 -2
  251. package/lib/constants/modelCompareData/data/CloudGateways.js +9 -9
  252. package/lib/constants/modelCompareData/data/CloudGateways.mjs +6 -6
  253. package/lib/constants/modelCompareData/data/DreamMachineConsolev4.js +6 -6
  254. package/lib/constants/modelCompareData/data/DreamMachineConsolev4.mjs +4 -4
  255. package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Bullet.js +1 -1
  256. package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Bullet.mjs +1 -1
  257. package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Compact.js +1 -1
  258. package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Compact.mjs +1 -1
  259. package/lib/constants/modelCompareData/data/product-list-groups/bullet.js +1 -1
  260. package/lib/constants/modelCompareData/data/product-list-groups/bullet.mjs +1 -1
  261. package/lib/constants/modelCompareData/data/product-list-groups/compact.js +1 -1
  262. package/lib/constants/modelCompareData/data/product-list-groups/compact.mjs +1 -1
  263. package/lib/constants/modelCompareData/data/products/aiDslr.js +2 -2
  264. package/lib/constants/modelCompareData/data/products/aiDslr.mjs +2 -2
  265. package/lib/constants/modelCompareData/data/products/doorHub.js +2 -2
  266. package/lib/constants/modelCompareData/data/products/doorHub.mjs +2 -2
  267. package/lib/constants/modelCompareData/data/products/g2Reader.js +2 -2
  268. package/lib/constants/modelCompareData/data/products/g2Reader.mjs +2 -2
  269. package/lib/constants/modelCompareData/data/products/g2ReaderPro.js +2 -2
  270. package/lib/constants/modelCompareData/data/products/g2ReaderPro.mjs +2 -2
  271. package/lib/constants/modelCompareData/data/products/g3ReaderPro.js +2 -2
  272. package/lib/constants/modelCompareData/data/products/g3ReaderPro.mjs +2 -2
  273. package/lib/constants/modelCompareData/data/products/g3StarterKit.js +2 -2
  274. package/lib/constants/modelCompareData/data/products/g3StarterKit.mjs +2 -2
  275. package/lib/constants/modelCompareData/data/products/g4Ptz.js +2 -2
  276. package/lib/constants/modelCompareData/data/products/g4Ptz.mjs +2 -2
  277. package/lib/constants/modelCompareData/data/products/g5DomeUltra.js +2 -2
  278. package/lib/constants/modelCompareData/data/products/g5DomeUltra.mjs +2 -2
  279. package/lib/constants/modelCompareData/data/products/intercom.js +2 -2
  280. package/lib/constants/modelCompareData/data/products/intercom.mjs +2 -2
  281. package/lib/constants/modelCompareData/data/products/theta.js +2 -2
  282. package/lib/constants/modelCompareData/data/products/theta.mjs +2 -2
  283. package/lib/constants/modelCompareData/data/products/ucgFiber.js +1 -1
  284. package/lib/constants/modelCompareData/data/products/ucgFiber.mjs +1 -1
  285. package/lib/constants/modelCompareData/data/products/ucgMax.js +1 -1
  286. package/lib/constants/modelCompareData/data/products/ucgMax.mjs +1 -1
  287. package/lib/constants/modelCompareData/data/products/ucgUltra.js +1 -1
  288. package/lib/constants/modelCompareData/data/products/ucgUltra.mjs +1 -1
  289. package/lib/constants/modelCompareData/data/properties/accessPowerMethod.js +1 -1
  290. package/lib/constants/modelCompareData/data/properties/accessPowerMethod.mjs +1 -1
  291. package/lib/constants/modelCompareData/data/properties/availability.js +1 -1
  292. package/lib/constants/modelCompareData/data/properties/availability.mjs +1 -1
  293. package/lib/constants/modelCompareData/data/properties/builtInFloodlight.js +1 -1
  294. package/lib/constants/modelCompareData/data/properties/builtInFloodlight.mjs +1 -1
  295. package/lib/constants/modelCompareData/data/properties/dcPowerOutput.js +1 -1
  296. package/lib/constants/modelCompareData/data/properties/dcPowerOutput.mjs +1 -1
  297. package/lib/constants/modelCompareData/data/properties/mounting.js +1 -1
  298. package/lib/constants/modelCompareData/data/properties/mounting.mjs +1 -1
  299. package/lib/constants/modelCompareData/data/properties/webMode.js +1 -1
  300. package/lib/constants/modelCompareData/data/properties/webMode.mjs +1 -1
  301. package/lib/constants/proStoreCategories/mapping/index.js +1 -1
  302. package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
  303. package/lib/constants/proStoreCategories/mapping/index.mjs +1 -1
  304. package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
  305. package/lib/contexts/MenuContext/mapping.js +3 -3
  306. package/lib/contexts/MenuContext/mapping.mjs +2 -2
  307. package/lib/contexts/MicrositeMenuContext/mapping.js +3 -3
  308. package/lib/contexts/MicrositeMenuContext/mapping.mjs +2 -2
  309. package/package.json +1 -1
@@ -40,11 +40,11 @@ const Overlay = styled__default["default"].div`
40
40
  width: 100%;
41
41
  height: 100%;
42
42
  z-index: -1;
43
- background: rgba(255 255 255 / 0.7);
43
+ background: rgb(255 255 255 / 0.7);
44
44
  `;
45
45
  const InnerWrap = styled__default["default"].div`
46
46
  background: ${theme.theme.colors.white};
47
- box-shadow: 0 -4px 15px rgba(0 0 0 / 0.15);
47
+ box-shadow: 0 -4px 15px rgb(0 0 0 / 0.15);
48
48
 
49
49
  position: absolute;
50
50
  left: 0;
@@ -1 +1 @@
1
- {"version":3,"file":"MobileModal.styles.js","sources":["../../../src/components/MobileModal/MobileModal.styles.ts"],"sourcesContent":["import styled, { css, keyframes } from \"styled-components\";\n\nimport { theme } from \"../../constants/theme\";\n\n// #############################################################################\n// Data\n// #############################################################################\nconst animationMs = 400;\n\n// #############################################################################\n// Mixins\n// #############################################################################\nconst animationSlideUp = keyframes`\n 0% {\n transform: translateY(100%);\n }\n 100% {\n transform: translateY(0%);\n }\n`;\n\n// #############################################################################\n// Styles\n// #############################################################################\nexport const Wrap = styled.div<{ $isOpen?: boolean }>`\n position: fixed;\n z-index: ${theme.zIndex.modal};\n width: 100%;\n height: 100%;\n opacity: 1;\n top: 0;\n left: 0;\n overflow: hidden;\n display: none;\n\n ${({ $isOpen }) =>\n $isOpen &&\n css`\n display: block;\n `}\n`;\n\nexport const Overlay = styled.div`\n position: absolute;\n width: 100%;\n height: 100%;\n z-index: -1;\n background: rgba(255 255 255 / 0.7);\n`;\n\nexport const InnerWrap = styled.div<{ $isOpen?: boolean }>`\n background: ${theme.colors.white};\n box-shadow: 0 -4px 15px rgba(0 0 0 / 0.15);\n\n position: absolute;\n left: 0;\n /* In WebView context we need to respect the bottom inset area of mobile device. */\n /* It falls back to 0px on web clients that doesn't support safe area inset */\n bottom: env(safe-area-inset-bottom);\n width: 100%;\n transform: translateY(100%);\n will-change: transform;\n\n ${({ $isOpen }) =>\n $isOpen &&\n css`\n animation: ${animationSlideUp} ${animationMs}ms ease-in-out forwards;\n animation-iteration-count: 1;\n `}\n`;\n\nexport const TopCloseWrap = styled.div`\n height: 28px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n color: ${theme.colors.waterloo};\n`;\n\nexport const BottomCloseWrap = styled.div`\n padding: 30px 15px 15px;\n`;\n\nexport const ContentWrap = styled.div`\n padding: 0 15px;\n margin: 15px auto 0;\n max-height: 60vh;\n overflow-y: auto;\n`;\n"],"names":["animationMs","animationSlideUp","keyframes","Wrap","styled","div","theme","zIndex","modal","$isOpen","css","Overlay","InnerWrap","colors","white","TopCloseWrap","waterloo","BottomCloseWrap","ContentWrap"],"mappings":";;;;;;;;;;;AAOA,MAAMA,WAAc,GAAA,GAAA;AAKpB,MAAMC,gBAAmB,GAAAC,MAAA,CAAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAYlB,MAAMC,OAAOC,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA,aAEdC,KAAA,CAAAA,KAAA,CAAMC,OAAOC,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA,IAS3B,CAAC;EAAEC;CAAQ,KACXA,OACA,IAAAC,MAAA,CAAAA,GAAA;AAAA;AAAA,KAEC;AAAA,CAAA;AAGE,MAAMC,UAAUP,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAQvB,MAAMO,YAAYR,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA,gBAChBC,KAAA,CAAAA,KAAA,CAAMO,OAAOC,KAAK;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA,IAY9B,CAAC;EAAEL;CAAQ,KACXA,OACA,IAAAC,MAAA,CAAAA,GAAA;AAAA,mBACeT,gBAAgB,IAAID,WAAW;AAAA;AAAA,KAE7C;AAAA,CAAA;AAGE,MAAMe,eAAeX,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAMxBC,KAAA,CAAAA,KAAA,CAAMO,OAAOG,QAAQ;AAAA,CAAA;AAGzB,MAAMC,kBAAkBb,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA,CAAA;AAI/B,MAAMa,cAAcd,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;;;;;"}
1
+ {"version":3,"file":"MobileModal.styles.js","sources":["../../../src/components/MobileModal/MobileModal.styles.ts"],"sourcesContent":["import styled, { css, keyframes } from \"styled-components\";\n\nimport { theme } from \"../../constants/theme\";\n\n// #############################################################################\n// Data\n// #############################################################################\nconst animationMs = 400;\n\n// #############################################################################\n// Mixins\n// #############################################################################\nconst animationSlideUp = keyframes`\n 0% {\n transform: translateY(100%);\n }\n 100% {\n transform: translateY(0%);\n }\n`;\n\n// #############################################################################\n// Styles\n// #############################################################################\nexport const Wrap = styled.div<{ $isOpen?: boolean }>`\n position: fixed;\n z-index: ${theme.zIndex.modal};\n width: 100%;\n height: 100%;\n opacity: 1;\n top: 0;\n left: 0;\n overflow: hidden;\n display: none;\n\n ${({ $isOpen }) =>\n $isOpen &&\n css`\n display: block;\n `}\n`;\n\nexport const Overlay = styled.div`\n position: absolute;\n width: 100%;\n height: 100%;\n z-index: -1;\n background: rgb(255 255 255 / 0.7);\n`;\n\nexport const InnerWrap = styled.div<{ $isOpen?: boolean }>`\n background: ${theme.colors.white};\n box-shadow: 0 -4px 15px rgb(0 0 0 / 0.15);\n\n position: absolute;\n left: 0;\n /* In WebView context we need to respect the bottom inset area of mobile device. */\n /* It falls back to 0px on web clients that doesn't support safe area inset */\n bottom: env(safe-area-inset-bottom);\n width: 100%;\n transform: translateY(100%);\n will-change: transform;\n\n ${({ $isOpen }) =>\n $isOpen &&\n css`\n animation: ${animationSlideUp} ${animationMs}ms ease-in-out forwards;\n animation-iteration-count: 1;\n `}\n`;\n\nexport const TopCloseWrap = styled.div`\n height: 28px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n color: ${theme.colors.waterloo};\n`;\n\nexport const BottomCloseWrap = styled.div`\n padding: 30px 15px 15px;\n`;\n\nexport const ContentWrap = styled.div`\n padding: 0 15px;\n margin: 15px auto 0;\n max-height: 60vh;\n overflow-y: auto;\n`;\n"],"names":["animationMs","animationSlideUp","keyframes","Wrap","styled","div","theme","zIndex","modal","$isOpen","css","Overlay","InnerWrap","colors","white","TopCloseWrap","waterloo","BottomCloseWrap","ContentWrap"],"mappings":";;;;;;;;;;;AAOA,MAAMA,WAAc,GAAA,GAAA;AAKpB,MAAMC,gBAAmB,GAAAC,MAAA,CAAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAYlB,MAAMC,OAAOC,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA,aAEdC,KAAA,CAAAA,KAAA,CAAMC,OAAOC,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA,IAS3B,CAAC;EAAEC;CAAQ,KACXA,OACA,IAAAC,MAAA,CAAAA,GAAA;AAAA;AAAA,KAEC;AAAA,CAAA;AAGE,MAAMC,UAAUP,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAQvB,MAAMO,YAAYR,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA,gBAChBC,KAAA,CAAAA,KAAA,CAAMO,OAAOC,KAAK;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA,IAY9B,CAAC;EAAEL;CAAQ,KACXA,OACA,IAAAC,MAAA,CAAAA,GAAA;AAAA,mBACeT,gBAAgB,IAAID,WAAW;AAAA;AAAA,KAE7C;AAAA,CAAA;AAGE,MAAMe,eAAeX,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAMxBC,KAAA,CAAAA,KAAA,CAAMO,OAAOG,QAAQ;AAAA,CAAA;AAGzB,MAAMC,kBAAkBb,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA,CAAA;AAI/B,MAAMa,cAAcd,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;;;;;"}
@@ -32,11 +32,11 @@ const Overlay = styled.div`
32
32
  width: 100%;
33
33
  height: 100%;
34
34
  z-index: -1;
35
- background: rgba(255 255 255 / 0.7);
35
+ background: rgb(255 255 255 / 0.7);
36
36
  `;
37
37
  const InnerWrap = styled.div`
38
38
  background: ${theme.colors.white};
39
- box-shadow: 0 -4px 15px rgba(0 0 0 / 0.15);
39
+ box-shadow: 0 -4px 15px rgb(0 0 0 / 0.15);
40
40
 
41
41
  position: absolute;
42
42
  left: 0;
@@ -1 +1 @@
1
- {"version":3,"file":"MobileModal.styles.mjs","sources":["../../../src/components/MobileModal/MobileModal.styles.ts"],"sourcesContent":["import styled, { css, keyframes } from \"styled-components\";\n\nimport { theme } from \"../../constants/theme\";\n\n// #############################################################################\n// Data\n// #############################################################################\nconst animationMs = 400;\n\n// #############################################################################\n// Mixins\n// #############################################################################\nconst animationSlideUp = keyframes`\n 0% {\n transform: translateY(100%);\n }\n 100% {\n transform: translateY(0%);\n }\n`;\n\n// #############################################################################\n// Styles\n// #############################################################################\nexport const Wrap = styled.div<{ $isOpen?: boolean }>`\n position: fixed;\n z-index: ${theme.zIndex.modal};\n width: 100%;\n height: 100%;\n opacity: 1;\n top: 0;\n left: 0;\n overflow: hidden;\n display: none;\n\n ${({ $isOpen }) =>\n $isOpen &&\n css`\n display: block;\n `}\n`;\n\nexport const Overlay = styled.div`\n position: absolute;\n width: 100%;\n height: 100%;\n z-index: -1;\n background: rgba(255 255 255 / 0.7);\n`;\n\nexport const InnerWrap = styled.div<{ $isOpen?: boolean }>`\n background: ${theme.colors.white};\n box-shadow: 0 -4px 15px rgba(0 0 0 / 0.15);\n\n position: absolute;\n left: 0;\n /* In WebView context we need to respect the bottom inset area of mobile device. */\n /* It falls back to 0px on web clients that doesn't support safe area inset */\n bottom: env(safe-area-inset-bottom);\n width: 100%;\n transform: translateY(100%);\n will-change: transform;\n\n ${({ $isOpen }) =>\n $isOpen &&\n css`\n animation: ${animationSlideUp} ${animationMs}ms ease-in-out forwards;\n animation-iteration-count: 1;\n `}\n`;\n\nexport const TopCloseWrap = styled.div`\n height: 28px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n color: ${theme.colors.waterloo};\n`;\n\nexport const BottomCloseWrap = styled.div`\n padding: 30px 15px 15px;\n`;\n\nexport const ContentWrap = styled.div`\n padding: 0 15px;\n margin: 15px auto 0;\n max-height: 60vh;\n overflow-y: auto;\n`;\n"],"names":["animationMs","animationSlideUp","keyframes","Wrap","styled","div","theme","zIndex","modal","$isOpen","css","Overlay","InnerWrap","colors","white","TopCloseWrap","waterloo","BottomCloseWrap","ContentWrap"],"mappings":";;;AAOA,MAAMA,WAAc,GAAA,GAAA;AAKpB,MAAMC,gBAAmB,GAAAC,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAYlB,MAAMC,OAAOC,MAAO,CAAAC,GAAA;AAAA;AAAA,aAEdC,KAAA,CAAMC,OAAOC,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA,IAS3B,CAAC;EAAEC;CAAQ,KACXA,OACA,IAAAC,GAAA;AAAA;AAAA,KAEC;AAAA,CAAA;AAGE,MAAMC,UAAUP,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAQvB,MAAMO,YAAYR,MAAO,CAAAC,GAAA;AAAA,gBAChBC,KAAA,CAAMO,OAAOC,KAAK;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA,IAY9B,CAAC;EAAEL;CAAQ,KACXA,OACA,IAAAC,GAAA;AAAA,mBACeT,gBAAgB,IAAID,WAAW;AAAA;AAAA,KAE7C;AAAA,CAAA;AAGE,MAAMe,eAAeX,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAMxBC,KAAA,CAAMO,OAAOG,QAAQ;AAAA,CAAA;AAGzB,MAAMC,kBAAkBb,MAAO,CAAAC,GAAA;AAAA;AAAA,CAAA;AAI/B,MAAMa,cAAcd,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;"}
1
+ {"version":3,"file":"MobileModal.styles.mjs","sources":["../../../src/components/MobileModal/MobileModal.styles.ts"],"sourcesContent":["import styled, { css, keyframes } from \"styled-components\";\n\nimport { theme } from \"../../constants/theme\";\n\n// #############################################################################\n// Data\n// #############################################################################\nconst animationMs = 400;\n\n// #############################################################################\n// Mixins\n// #############################################################################\nconst animationSlideUp = keyframes`\n 0% {\n transform: translateY(100%);\n }\n 100% {\n transform: translateY(0%);\n }\n`;\n\n// #############################################################################\n// Styles\n// #############################################################################\nexport const Wrap = styled.div<{ $isOpen?: boolean }>`\n position: fixed;\n z-index: ${theme.zIndex.modal};\n width: 100%;\n height: 100%;\n opacity: 1;\n top: 0;\n left: 0;\n overflow: hidden;\n display: none;\n\n ${({ $isOpen }) =>\n $isOpen &&\n css`\n display: block;\n `}\n`;\n\nexport const Overlay = styled.div`\n position: absolute;\n width: 100%;\n height: 100%;\n z-index: -1;\n background: rgb(255 255 255 / 0.7);\n`;\n\nexport const InnerWrap = styled.div<{ $isOpen?: boolean }>`\n background: ${theme.colors.white};\n box-shadow: 0 -4px 15px rgb(0 0 0 / 0.15);\n\n position: absolute;\n left: 0;\n /* In WebView context we need to respect the bottom inset area of mobile device. */\n /* It falls back to 0px on web clients that doesn't support safe area inset */\n bottom: env(safe-area-inset-bottom);\n width: 100%;\n transform: translateY(100%);\n will-change: transform;\n\n ${({ $isOpen }) =>\n $isOpen &&\n css`\n animation: ${animationSlideUp} ${animationMs}ms ease-in-out forwards;\n animation-iteration-count: 1;\n `}\n`;\n\nexport const TopCloseWrap = styled.div`\n height: 28px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n color: ${theme.colors.waterloo};\n`;\n\nexport const BottomCloseWrap = styled.div`\n padding: 30px 15px 15px;\n`;\n\nexport const ContentWrap = styled.div`\n padding: 0 15px;\n margin: 15px auto 0;\n max-height: 60vh;\n overflow-y: auto;\n`;\n"],"names":["animationMs","animationSlideUp","keyframes","Wrap","styled","div","theme","zIndex","modal","$isOpen","css","Overlay","InnerWrap","colors","white","TopCloseWrap","waterloo","BottomCloseWrap","ContentWrap"],"mappings":";;;AAOA,MAAMA,WAAc,GAAA,GAAA;AAKpB,MAAMC,gBAAmB,GAAAC,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAYlB,MAAMC,OAAOC,MAAO,CAAAC,GAAA;AAAA;AAAA,aAEdC,KAAA,CAAMC,OAAOC,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA,IAS3B,CAAC;EAAEC;CAAQ,KACXA,OACA,IAAAC,GAAA;AAAA;AAAA,KAEC;AAAA,CAAA;AAGE,MAAMC,UAAUP,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAQvB,MAAMO,YAAYR,MAAO,CAAAC,GAAA;AAAA,gBAChBC,KAAA,CAAMO,OAAOC,KAAK;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA,IAY9B,CAAC;EAAEL;CAAQ,KACXA,OACA,IAAAC,GAAA;AAAA,mBACeT,gBAAgB,IAAID,WAAW;AAAA;AAAA,KAE7C;AAAA,CAAA;AAGE,MAAMe,eAAeX,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAMxBC,KAAA,CAAMO,OAAOG,QAAQ;AAAA,CAAA;AAGzB,MAAMC,kBAAkBb,MAAO,CAAAC,GAAA;AAAA;AAAA,CAAA;AAI/B,MAAMa,cAAcd,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;"}
@@ -113,8 +113,8 @@ const Icon = styled__default["default"].div`
113
113
  width: 44px;
114
114
 
115
115
  border-radius: 50%;
116
- background: rgba(255 255 255 / 0.8);
117
- box-shadow: 0 0 10px 0 rgba(0 0 0 / 0.25);
116
+ background: rgb(255 255 255 / 0.8);
117
+ box-shadow: 0 0 10px 0 rgb(0 0 0 / 0.25);
118
118
  backdrop-filter: blur(2px);
119
119
  color: #808893;
120
120
  `;
@@ -1 +1 @@
1
- {"version":3,"file":"ModelCompareOverflowScrollButton.js","sources":["../../../src/components/ModelCompareV3/ModelCompareOverflowScrollButton.tsx"],"sourcesContent":["import { useCallback, useMemo } from \"react\";\nimport styled from \"styled-components\";\n\nimport arrowRightIcon from \"../../constants/modelCompareData/assets/arrow-right.svg\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport { useStickyGrid } from \"./StickyGrid/context\";\n\nexport function ModelCompareOverflowScrollButton({\n isVisible,\n color,\n rotationDegrees,\n onClickColumnDiff,\n totalColumns,\n totalDeadSpace,\n isSmallScreen,\n}: {\n isVisible: boolean;\n color: string;\n rotationDegrees: number;\n onClickColumnDiff: number;\n totalDeadSpace: number;\n totalColumns: number;\n isSmallScreen: boolean;\n}) {\n const { scrollGroupItemsRef, scrollTo } = useStickyGrid();\n\n const icon =\n typeof arrowRightIcon === \"string\" ? arrowRightIcon : arrowRightIcon.src;\n\n // Scroll one column on click\n const handleClick = useCallback(() => {\n const anyScrollItem = scrollGroupItemsRef.current?.[0]?.refObject.current;\n\n if (!anyScrollItem) {\n return;\n }\n\n const totalWidth = anyScrollItem.scrollWidth;\n const currentScrollLeft = anyScrollItem.scrollLeft + 1;\n const oneColumnWidth = (totalWidth - totalDeadSpace) / totalColumns;\n const currentColumnIndex = Math.min(\n totalColumns - 1,\n Math.max(0, Math.round(currentScrollLeft / oneColumnWidth)),\n );\n\n const newColumnIndex = Math.max(\n Math.min(currentColumnIndex + onClickColumnDiff, totalColumns),\n 0,\n );\n\n const offsetLeft = newColumnIndex * oneColumnWidth;\n\n scrollTo({ left: offsetLeft, behavior: \"smooth\" });\n }, [\n onClickColumnDiff,\n scrollGroupItemsRef,\n scrollTo,\n totalColumns,\n totalDeadSpace,\n ]);\n\n const arrowOffset = useMemo(() => {\n if (isSmallScreen) {\n return rotationDegrees < 180 ? -5 : 0;\n }\n\n return -15;\n }, [isSmallScreen, rotationDegrees]);\n\n return (\n <Button\n color={color}\n rotation={rotationDegrees}\n isVisible={isVisible}\n type=\"button\"\n onClick={handleClick}\n >\n <Icon rotation={rotationDegrees} arrowOffset={arrowOffset}>\n <StyleableSvgImage width={10} height={16} src={icon} />\n </Icon>\n </Button>\n );\n}\n\nconst Button = styled.button<{\n isVisible: boolean;\n rotation: number;\n color: string;\n}>`\n color: inherit;\n outline: none;\n opacity: ${({ isVisible }) => (isVisible ? 1 : 0)};\n pointer-events: ${({ isVisible }) => (isVisible ? \"auto\" : \"none\")};\n transition: opacity 0.2s;\n height: 100%;\n width: 40px;\n background: transparent;\n border: none;\n background-image: linear-gradient(\n ${({ rotation }) => rotation - 90}deg,\n ${({ color }) => color},\n transparent 20px\n );\n border-left: ${({ color }) =>\n color !== \"white\" ? \"1px solid #eee\" : \"none\"};\n cursor: pointer;\n`;\n\nconst Icon = styled.div<{ rotation: number; arrowOffset: number }>`\n transform: rotate(${({ rotation }) => rotation}deg)\n translateX(${({ arrowOffset }) => arrowOffset ?? 0}px);\n display: flex;\n align-items: center;\n justify-content: center;\n\n padding-left: 4px;\n height: 44px;\n width: 44px;\n\n border-radius: 50%;\n background: rgba(255 255 255 / 0.8);\n box-shadow: 0 0 10px 0 rgba(0 0 0 / 0.25);\n backdrop-filter: blur(2px);\n color: #808893;\n`;\n"],"names":["ModelCompareOverflowScrollButton","isVisible","color","rotationDegrees","onClickColumnDiff","totalColumns","totalDeadSpace","isSmallScreen","scrollGroupItemsRef","scrollTo","useStickyGrid","icon","arrowRightIcon","src","handleClick","useCallback","anyScrollItem","current","refObject","totalWidth","scrollWidth","currentScrollLeft","scrollLeft","oneColumnWidth","currentColumnIndex","Math","min","max","round","newColumnIndex","offsetLeft","left","behavior","arrowOffset","useMemo","jsx","Button","rotation","type","onClick","children","Icon","StyleableSvgImage","width","height","styled","button","div"],"mappings":";;;;;;;;;;;;;;;;;;AAOO,SAASA,gCAAiCA,CAAA;EAC/CC,SAAA;EACAC,KAAA;EACAC,eAAA;EACAC,iBAAA;EACAC,YAAA;EACAC,cAAA;EACAC;AACF,CAQG,EAAA;EACD,MAAM;IAAEC,mBAAA;IAAqBC;EAAS,CAAA,GAAIC,qBAAc,CAAA,CAAA;EAExD,MAAMC,IACJ,GAAA,OAAOC,uBAAmB,CAAA,SAAA,CAAA,KAAA,QAAA,GAAWA,qCAAiBA,uBAAe,CAAA,SAAA,CAAA,CAAAC,GAAA;EAGjE,MAAAC,WAAA,GAAcC,KAAAA,CAAAA,YAAY,MAAM;IACpC,MAAMC,aAAgB,GAAAR,mBAAA,CAAoBS,OAAU,GAAA,CAAC,GAAGC,SAAU,CAAAD,OAAA;IAElE,IAAI,CAACD,aAAe,EAAA;MAClB;IAAA;IAGF,MAAMG,aAAaH,aAAc,CAAAI,WAAA;IAC3B,MAAAC,iBAAA,GAAoBL,cAAcM,UAAa,GAAA,CAAA;IAC/C,MAAAC,cAAA,GAAA,CAAkBJ,aAAab,cAAkB,IAAAD,YAAA;IACvD,MAAMmB,qBAAqBC,IAAK,CAAAC,GAAA,CAC9BrB,YAAe,GAAA,CAAA,EACfoB,KAAKE,GAAI,CAAA,CAAA,EAAGF,KAAKG,KAAM,CAAAP,iBAAA,GAAoBE,cAAc,CAAC,CAC5D,CAAA;IAEA,MAAMM,iBAAiBJ,IAAK,CAAAE,GAAA,CAC1BF,IAAK,CAAAC,GAAA,CAAIF,kBAAqB,GAAApB,iBAAA,EAAmBC,YAAY,CAAA,EAC7D,CACF,CAAA;IAEA,MAAMyB,aAAaD,cAAiB,GAAAN,cAAA;IAEpCd,QAAA,CAAS;MAAEsB,IAAA,EAAMD,UAAY;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AAA,GAAU,mBAAmB,MAAM;AAAA;AAAA,CAAA;AAIjD,MAAMuC,OAAOI,eAAO,CAAA,SAAA,CAAA,CAAAE,GAAA;AAAA,sBACE,CAAC;EAAEV;AAAS,CAAA,KAAMA,QAAQ;AAAA,iBAC/B,CAAC;EAAEJ;CAAY,KAAMA,eAAe,CAAC;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;"}
1
+ {"version":3,"file":"ModelCompareOverflowScrollButton.js","sources":["../../../src/components/ModelCompareV3/ModelCompareOverflowScrollButton.tsx"],"sourcesContent":["import { useCallback, useMemo } from \"react\";\nimport styled from \"styled-components\";\n\nimport arrowRightIcon from \"../../constants/modelCompareData/assets/arrow-right.svg\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport { useStickyGrid } from \"./StickyGrid/context\";\n\nexport function ModelCompareOverflowScrollButton({\n isVisible,\n color,\n rotationDegrees,\n onClickColumnDiff,\n totalColumns,\n totalDeadSpace,\n isSmallScreen,\n}: {\n isVisible: boolean;\n color: string;\n rotationDegrees: number;\n onClickColumnDiff: number;\n totalDeadSpace: number;\n totalColumns: number;\n isSmallScreen: boolean;\n}) {\n const { scrollGroupItemsRef, scrollTo } = useStickyGrid();\n\n const icon =\n typeof arrowRightIcon === \"string\" ? arrowRightIcon : arrowRightIcon.src;\n\n // Scroll one column on click\n const handleClick = useCallback(() => {\n const anyScrollItem = scrollGroupItemsRef.current?.[0]?.refObject.current;\n\n if (!anyScrollItem) {\n return;\n }\n\n const totalWidth = anyScrollItem.scrollWidth;\n const currentScrollLeft = anyScrollItem.scrollLeft + 1;\n const oneColumnWidth = (totalWidth - totalDeadSpace) / totalColumns;\n const currentColumnIndex = Math.min(\n totalColumns - 1,\n Math.max(0, Math.round(currentScrollLeft / oneColumnWidth)),\n );\n\n const newColumnIndex = Math.max(\n Math.min(currentColumnIndex + onClickColumnDiff, totalColumns),\n 0,\n );\n\n const offsetLeft = newColumnIndex * oneColumnWidth;\n\n scrollTo({ left: offsetLeft, behavior: \"smooth\" });\n }, [\n onClickColumnDiff,\n scrollGroupItemsRef,\n scrollTo,\n totalColumns,\n totalDeadSpace,\n ]);\n\n const arrowOffset = useMemo(() => {\n if (isSmallScreen) {\n return rotationDegrees < 180 ? -5 : 0;\n }\n\n return -15;\n }, [isSmallScreen, rotationDegrees]);\n\n return (\n <Button\n color={color}\n rotation={rotationDegrees}\n isVisible={isVisible}\n type=\"button\"\n onClick={handleClick}\n >\n <Icon rotation={rotationDegrees} arrowOffset={arrowOffset}>\n <StyleableSvgImage width={10} height={16} src={icon} />\n </Icon>\n </Button>\n );\n}\n\nconst Button = styled.button<{\n isVisible: boolean;\n rotation: number;\n color: string;\n}>`\n color: inherit;\n outline: none;\n opacity: ${({ isVisible }) => (isVisible ? 1 : 0)};\n pointer-events: ${({ isVisible }) => (isVisible ? \"auto\" : \"none\")};\n transition: opacity 0.2s;\n height: 100%;\n width: 40px;\n background: transparent;\n border: none;\n background-image: linear-gradient(\n ${({ rotation }) => rotation - 90}deg,\n ${({ color }) => color},\n transparent 20px\n );\n border-left: ${({ color }) =>\n color !== \"white\" ? \"1px solid #eee\" : \"none\"};\n cursor: pointer;\n`;\n\nconst Icon = styled.div<{ rotation: number; arrowOffset: number }>`\n transform: rotate(${({ rotation }) => rotation}deg)\n translateX(${({ arrowOffset }) => arrowOffset ?? 0}px);\n display: flex;\n align-items: center;\n justify-content: center;\n\n padding-left: 4px;\n height: 44px;\n width: 44px;\n\n border-radius: 50%;\n background: rgb(255 255 255 / 0.8);\n box-shadow: 0 0 10px 0 rgb(0 0 0 / 0.25);\n backdrop-filter: blur(2px);\n color: #808893;\n`;\n"],"names":["ModelCompareOverflowScrollButton","isVisible","color","rotationDegrees","onClickColumnDiff","totalColumns","totalDeadSpace","isSmallScreen","scrollGroupItemsRef","scrollTo","useStickyGrid","icon","arrowRightIcon","src","handleClick","useCallback","anyScrollItem","current","refObject","totalWidth","scrollWidth","currentScrollLeft","scrollLeft","oneColumnWidth","currentColumnIndex","Math","min","max","round","newColumnIndex","offsetLeft","left","behavior","arrowOffset","useMemo","jsx","Button","rotation","type","onClick","children","Icon","StyleableSvgImage","width","height","styled","button","div"],"mappings":";;;;;;;;;;;;;;;;;;AAOO,SAASA,gCAAiCA,CAAA;EAC/CC,SAAA;EACAC,KAAA;EACAC,eAAA;EACAC,iBAAA;EACAC,YAAA;EACAC,cAAA;EACAC;AACF,CAQG,EAAA;EACD,MAAM;IAAEC,mBAAA;IAAqBC;EAAS,CAAA,GAAIC,qBAAc,CAAA,CAAA;EAExD,MAAMC,IACJ,GAAA,OAAOC,uBAAmB,CAAA,SAAA,CAAA,KAAA,QAAA,GAAWA,qCAAiBA,uBAAe,CAAA,SAAA,CAAA,CAAAC,GAAA;EAGjE,MAAAC,WAAA,GAAcC,KAAAA,CAAAA,YAAY,MAAM;IACpC,MAAMC,aAAgB,GAAAR,mBAAA,CAAoBS,OAAU,GAAA,CAAC,GAAGC,SAAU,CAAAD,OAAA;IAElE,IAAI,CAACD,aAAe,EAAA;MAClB;IAAA;IAGF,MAAMG,aAAaH,aAAc,CAAAI,WAAA;IAC3B,MAAAC,iBAAA,GAAoBL,cAAcM,UAAa,GAAA,CAAA;IAC/C,MAAAC,cAAA,GAAA,CAAkBJ,aAAab,cAAkB,IAAAD,YAAA;IACvD,MAAMmB,qBAAqBC,IAAK,CAAAC,GAAA,CAC9BrB,YAAe,GAAA,CAAA,EACfoB,KAAKE,GAAI,CAAA,CAAA,EAAGF,KAAKG,KAAM,CAAAP,iBAAA,GAAoBE,cAAc,CAAC,CAC5D,CAAA;IAEA,MAAMM,iBAAiBJ,IAAK,CAAAE,GAAA,CAC1BF,IAAK,CAAAC,GAAA,CAAIF,kBAAqB,GAAApB,iBAAA,EAAmBC,YAAY,CAAA,EAC7D,CACF,CAAA;IAEA,MAAMyB,aAAaD,cAAiB,GAAAN,cAAA;IAEpCd,QAAA,CAAS;MAAEsB,IAAA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,KAAU,KAAA,OAAA,GAAU,mBAAmB,MAAM;AAAA;AAAA,CAAA;AAIjD,MAAMuC,OAAOI,eAAO,CAAA,SAAA,CAAA,CAAAE,GAAA;AAAA,sBACE,CAAC;EAAEV;AAAS,CAAA,KAAMA,QAAQ;AAAA,iBAC/B,CAAC;EAAEJ;CAAY,KAAMA,eAAe,CAAC;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;"}
@@ -104,8 +104,8 @@ const Icon = styled.div`
104
104
  width: 44px;
105
105
 
106
106
  border-radius: 50%;
107
- background: rgba(255 255 255 / 0.8);
108
- box-shadow: 0 0 10px 0 rgba(0 0 0 / 0.25);
107
+ background: rgb(255 255 255 / 0.8);
108
+ box-shadow: 0 0 10px 0 rgb(0 0 0 / 0.25);
109
109
  backdrop-filter: blur(2px);
110
110
  color: #808893;
111
111
  `;
@@ -1 +1 @@
1
- {"version":3,"file":"ModelCompareOverflowScrollButton.mjs","sources":["../../../src/components/ModelCompareV3/ModelCompareOverflowScrollButton.tsx"],"sourcesContent":["import { useCallback, useMemo } from \"react\";\nimport styled from \"styled-components\";\n\nimport arrowRightIcon from \"../../constants/modelCompareData/assets/arrow-right.svg\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport { useStickyGrid } from \"./StickyGrid/context\";\n\nexport function ModelCompareOverflowScrollButton({\n isVisible,\n color,\n rotationDegrees,\n onClickColumnDiff,\n totalColumns,\n totalDeadSpace,\n isSmallScreen,\n}: {\n isVisible: boolean;\n color: string;\n rotationDegrees: number;\n onClickColumnDiff: number;\n totalDeadSpace: number;\n totalColumns: number;\n isSmallScreen: boolean;\n}) {\n const { scrollGroupItemsRef, scrollTo } = useStickyGrid();\n\n const icon =\n typeof arrowRightIcon === \"string\" ? arrowRightIcon : arrowRightIcon.src;\n\n // Scroll one column on click\n const handleClick = useCallback(() => {\n const anyScrollItem = scrollGroupItemsRef.current?.[0]?.refObject.current;\n\n if (!anyScrollItem) {\n return;\n }\n\n const totalWidth = anyScrollItem.scrollWidth;\n const currentScrollLeft = anyScrollItem.scrollLeft + 1;\n const oneColumnWidth = (totalWidth - totalDeadSpace) / totalColumns;\n const currentColumnIndex = Math.min(\n totalColumns - 1,\n Math.max(0, Math.round(currentScrollLeft / oneColumnWidth)),\n );\n\n const newColumnIndex = Math.max(\n Math.min(currentColumnIndex + onClickColumnDiff, totalColumns),\n 0,\n );\n\n const offsetLeft = newColumnIndex * oneColumnWidth;\n\n scrollTo({ left: offsetLeft, behavior: \"smooth\" });\n }, [\n onClickColumnDiff,\n scrollGroupItemsRef,\n scrollTo,\n totalColumns,\n totalDeadSpace,\n ]);\n\n const arrowOffset = useMemo(() => {\n if (isSmallScreen) {\n return rotationDegrees < 180 ? -5 : 0;\n }\n\n return -15;\n }, [isSmallScreen, rotationDegrees]);\n\n return (\n <Button\n color={color}\n rotation={rotationDegrees}\n isVisible={isVisible}\n type=\"button\"\n onClick={handleClick}\n >\n <Icon rotation={rotationDegrees} arrowOffset={arrowOffset}>\n <StyleableSvgImage width={10} height={16} src={icon} />\n </Icon>\n </Button>\n );\n}\n\nconst Button = styled.button<{\n isVisible: boolean;\n rotation: number;\n color: string;\n}>`\n color: inherit;\n outline: none;\n opacity: ${({ isVisible }) => (isVisible ? 1 : 0)};\n pointer-events: ${({ isVisible }) => (isVisible ? \"auto\" : \"none\")};\n transition: opacity 0.2s;\n height: 100%;\n width: 40px;\n background: transparent;\n border: none;\n background-image: linear-gradient(\n ${({ rotation }) => rotation - 90}deg,\n ${({ color }) => color},\n transparent 20px\n );\n border-left: ${({ color }) =>\n color !== \"white\" ? \"1px solid #eee\" : \"none\"};\n cursor: pointer;\n`;\n\nconst Icon = styled.div<{ rotation: number; arrowOffset: number }>`\n transform: rotate(${({ rotation }) => rotation}deg)\n translateX(${({ arrowOffset }) => arrowOffset ?? 0}px);\n display: flex;\n align-items: center;\n justify-content: center;\n\n padding-left: 4px;\n height: 44px;\n width: 44px;\n\n border-radius: 50%;\n background: rgba(255 255 255 / 0.8);\n box-shadow: 0 0 10px 0 rgba(0 0 0 / 0.25);\n backdrop-filter: blur(2px);\n color: #808893;\n`;\n"],"names":["ModelCompareOverflowScrollButton","isVisible","color","rotationDegrees","onClickColumnDiff","totalColumns","totalDeadSpace","isSmallScreen","scrollGroupItemsRef","scrollTo","useStickyGrid","icon","arrowRightIcon","src","handleClick","useCallback","anyScrollItem","current","refObject","totalWidth","scrollWidth","currentScrollLeft","scrollLeft","oneColumnWidth","currentColumnIndex","Math","min","max","round","newColumnIndex","offsetLeft","left","behavior","arrowOffset","useMemo","jsx","Button","rotation","type","onClick","children","Icon","StyleableSvgImage","width","height","styled","button","div"],"mappings":";;;;;;;;;AAOO,SAASA,gCAAiCA,CAAA;EAC/CC,SAAA;EACAC,KAAA;EACAC,eAAA;EACAC,iBAAA;EACAC,YAAA;EACAC,cAAA;EACAC;AACF,CAQG,EAAA;EACD,MAAM;IAAEC,mBAAA;IAAqBC;EAAS,CAAA,GAAIC,aAAc,CAAA,CAAA;EAExD,MAAMC,IACJ,GAAA,OAAOC,uBAAmB,KAAA,QAAA,GAAWA,0BAAiBA,uBAAe,CAAAC,GAAA;EAGjE,MAAAC,WAAA,GAAcC,YAAY,MAAM;IACpC,MAAMC,aAAgB,GAAAR,mBAAA,CAAoBS,OAAU,GAAA,CAAC,GAAGC,SAAU,CAAAD,OAAA;IAElE,IAAI,CAACD,aAAe,EAAA;MAClB;IAAA;IAGF,MAAMG,aAAaH,aAAc,CAAAI,WAAA;IAC3B,MAAAC,iBAAA,GAAoBL,cAAcM,UAAa,GAAA,CAAA;IAC/C,MAAAC,cAAA,GAAA,CAAkBJ,aAAab,cAAkB,IAAAD,YAAA;IACvD,MAAMmB,qBAAqBC,IAAK,CAAAC,GAAA,CAC9BrB,YAAe,GAAA,CAAA,EACfoB,KAAKE,GAAI,CAAA,CAAA,EAAGF,KAAKG,KAAM,CAAAP,iBAAA,GAAoBE,cAAc,CAAC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D,CAAC;EAAEoC;CAAS,KAAMA,WAAW,EAAE;AAAA,MAC/B,CAAC;EAAEnC;AAAM,CAAA,KAAMA,KAAK;AAAA;AAAA;AAAA,iBAGT,CAAC;EAAEA;MAChBA,KAAU,KAAA,OAAA,GAAU,mBAAmB,MAAM;AAAA;AAAA,CAAA;AAIjD,MAAMuC,OAAOI,MAAO,CAAAE,GAAA;AAAA,sBACE,CAAC;EAAEV;AAAS,CAAA,KAAMA,QAAQ;AAAA,iBAC/B,CAAC;EAAEJ;CAAY,KAAMA,eAAe,CAAC;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;"}
1
+ {"version":3,"file":"ModelCompareOverflowScrollButton.mjs","sources":["../../../src/components/ModelCompareV3/ModelCompareOverflowScrollButton.tsx"],"sourcesContent":["import { useCallback, useMemo } from \"react\";\nimport styled from \"styled-components\";\n\nimport arrowRightIcon from \"../../constants/modelCompareData/assets/arrow-right.svg\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport { useStickyGrid } from \"./StickyGrid/context\";\n\nexport function ModelCompareOverflowScrollButton({\n isVisible,\n color,\n rotationDegrees,\n onClickColumnDiff,\n totalColumns,\n totalDeadSpace,\n isSmallScreen,\n}: {\n isVisible: boolean;\n color: string;\n rotationDegrees: number;\n onClickColumnDiff: number;\n totalDeadSpace: number;\n totalColumns: number;\n isSmallScreen: boolean;\n}) {\n const { scrollGroupItemsRef, scrollTo } = useStickyGrid();\n\n const icon =\n typeof arrowRightIcon === \"string\" ? arrowRightIcon : arrowRightIcon.src;\n\n // Scroll one column on click\n const handleClick = useCallback(() => {\n const anyScrollItem = scrollGroupItemsRef.current?.[0]?.refObject.current;\n\n if (!anyScrollItem) {\n return;\n }\n\n const totalWidth = anyScrollItem.scrollWidth;\n const currentScrollLeft = anyScrollItem.scrollLeft + 1;\n const oneColumnWidth = (totalWidth - totalDeadSpace) / totalColumns;\n const currentColumnIndex = Math.min(\n totalColumns - 1,\n Math.max(0, Math.round(currentScrollLeft / oneColumnWidth)),\n );\n\n const newColumnIndex = Math.max(\n Math.min(currentColumnIndex + onClickColumnDiff, totalColumns),\n 0,\n );\n\n const offsetLeft = newColumnIndex * oneColumnWidth;\n\n scrollTo({ left: offsetLeft, behavior: \"smooth\" });\n }, [\n onClickColumnDiff,\n scrollGroupItemsRef,\n scrollTo,\n totalColumns,\n totalDeadSpace,\n ]);\n\n const arrowOffset = useMemo(() => {\n if (isSmallScreen) {\n return rotationDegrees < 180 ? -5 : 0;\n }\n\n return -15;\n }, [isSmallScreen, rotationDegrees]);\n\n return (\n <Button\n color={color}\n rotation={rotationDegrees}\n isVisible={isVisible}\n type=\"button\"\n onClick={handleClick}\n >\n <Icon rotation={rotationDegrees} arrowOffset={arrowOffset}>\n <StyleableSvgImage width={10} height={16} src={icon} />\n </Icon>\n </Button>\n );\n}\n\nconst Button = styled.button<{\n isVisible: boolean;\n rotation: number;\n color: string;\n}>`\n color: inherit;\n outline: none;\n opacity: ${({ isVisible }) => (isVisible ? 1 : 0)};\n pointer-events: ${({ isVisible }) => (isVisible ? \"auto\" : \"none\")};\n transition: opacity 0.2s;\n height: 100%;\n width: 40px;\n background: transparent;\n border: none;\n background-image: linear-gradient(\n ${({ rotation }) => rotation - 90}deg,\n ${({ color }) => color},\n transparent 20px\n );\n border-left: ${({ color }) =>\n color !== \"white\" ? \"1px solid #eee\" : \"none\"};\n cursor: pointer;\n`;\n\nconst Icon = styled.div<{ rotation: number; arrowOffset: number }>`\n transform: rotate(${({ rotation }) => rotation}deg)\n translateX(${({ arrowOffset }) => arrowOffset ?? 0}px);\n display: flex;\n align-items: center;\n justify-content: center;\n\n padding-left: 4px;\n height: 44px;\n width: 44px;\n\n border-radius: 50%;\n background: rgb(255 255 255 / 0.8);\n box-shadow: 0 0 10px 0 rgb(0 0 0 / 0.25);\n backdrop-filter: blur(2px);\n color: #808893;\n`;\n"],"names":["ModelCompareOverflowScrollButton","isVisible","color","rotationDegrees","onClickColumnDiff","totalColumns","totalDeadSpace","isSmallScreen","scrollGroupItemsRef","scrollTo","useStickyGrid","icon","arrowRightIcon","src","handleClick","useCallback","anyScrollItem","current","refObject","totalWidth","scrollWidth","currentScrollLeft","scrollLeft","oneColumnWidth","currentColumnIndex","Math","min","max","round","newColumnIndex","offsetLeft","left","behavior","arrowOffset","useMemo","jsx","Button","rotation","type","onClick","children","Icon","StyleableSvgImage","width","height","styled","button","div"],"mappings":";;;;;;;;;AAOO,SAASA,gCAAiCA,CAAA;EAC/CC,SAAA;EACAC,KAAA;EACAC,eAAA;EACAC,iBAAA;EACAC,YAAA;EACAC,cAAA;EACAC;AACF,CAQG,EAAA;EACD,MAAM;IAAEC,mBAAA;IAAqBC;EAAS,CAAA,GAAIC,aAAc,CAAA,CAAA;EAExD,MAAMC,IACJ,GAAA,OAAOC,uBAAmB,KAAA,QAAA,GAAWA,0BAAiBA,uBAAe,CAAAC,GAAA;EAGjE,MAAAC,WAAA,GAAcC,YAAY,MAAM;IACpC,MAAMC,aAAgB,GAAAR,mBAAA,CAAoBS,OAAU,GAAA,CAAC,GAAGC,SAAU,CAAAD,OAAA;IAElE,IAAI,CAACD,aAAe,EAAA;MAClB;IAAA;IAGF,MAAMG,aAAaH,aAAc,CAAAI,WAAA;IAC3B,MAAAC,iBAAA,GAAoBL,cAAcM,UAAa,GAAA,CAAA;IAC/C,MAAAC,cAAA,GAAA,CAAkBJ,aAAab,cAAkB,IAAAD,YAAA;IACvD,MAAMmB,qBAAqBC,IAAK,CAAAC,GAAA,CAC9BrB,YAAe,GAAA,CAAA,EACfoB,KAAKE,GAAI,CAAA,CAAA,EAAGF,KAAKG,KAAM,CAAAP,iBAAA,GAAoBE,cAAc,CAAC,CAC5D,CAAA;IAEA,MAAMM,iBAAiBJ,IAAK,CAAAE,GAAA,CAC1BF,IAAK,CAAAC,GAAA,CAAIF,kBAAqB,GAAApB,iBAAA,EAAmBC,YAAY,CAAA,EAC7D,CACF,CAAA;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AAA,GAAU,mBAAmB,MAAM;AAAA;AAAA,CAAA;AAIjD,MAAMuC,OAAOI,MAAO,CAAAE,GAAA;AAAA,sBACE,CAAC;EAAEV;AAAS,CAAA,KAAMA,QAAQ;AAAA,iBAC/B,CAAC;EAAEJ;CAAY,KAAMA,eAAe,CAAC;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;"}
@@ -13,7 +13,7 @@ require('../StyleableSvgImage/index.js');
13
13
  var ModelCompareV3_styles = require('./ModelCompareV3.styles.js');
14
14
  require('./StickyGrid/index.js');
15
15
  var checkIconSvg = require("../../assets/check2.svg");
16
- var minusIconSvg = require("../../assets/minus.svg");
16
+ var minusIconSvg = require("../../assets/minus2.svg");
17
17
  var StyleableSvgImage = require('../StyleableSvgImage/StyleableSvgImage.js');
18
18
  var context = require('../../contexts/MenuContext/context.js');
19
19
  var StickyGridItem = require('./StickyGrid/StickyGridItem.js');
@@ -11,7 +11,7 @@ import '../StyleableSvgImage/index.mjs';
11
11
  import { textSize, MOBILE_BREAKPOINT } from './ModelCompareV3.styles.mjs';
12
12
  import './StickyGrid/index.mjs';
13
13
  import checkIconSvg__default from "../../assets/check2.svg";
14
- import minusIconSvg__default from "../../assets/minus.svg";
14
+ import minusIconSvg__default from "../../assets/minus2.svg";
15
15
  import { StyleableSvgImage } from '../StyleableSvgImage/StyleableSvgImage.mjs';
16
16
  import { useMenu } from '../../contexts/MenuContext/context.mjs';
17
17
  import { StickyGridItem } from './StickyGrid/StickyGridItem.mjs';
@@ -125,8 +125,8 @@ const TopContainer = styled__default["default"].div`
125
125
 
126
126
  background: linear-gradient(
127
127
  180deg,
128
- rgba(255 255 255 / 0) 0%,
129
- rgba(255 255 255 / 1) 100%
128
+ rgb(255 255 255 / 0) 0%,
129
+ rgb(255 255 255 / 1) 100%
130
130
  );
131
131
  }
132
132
  `;
@@ -1 +1 @@
1
- {"version":3,"file":"ProductGroupsGrid.js","sources":["../../../src/components/ModelCompareV3/ProductGroupsGrid.tsx"],"sourcesContent":["import { useMemo } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport { useModelCompareTranslation } from \"../../constants/modelCompareData/translations/useModelCompareTranslation\";\nimport type {\n MutatedProduct,\n ProductGroup,\n} from \"../../constants/modelCompareData/types\";\nimport { theme } from \"../../constants/theme\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\n\nexport const ProductGroupsGrid = ({\n products,\n}: {\n products: MutatedProduct[];\n}) => {\n const { formatMessage } = useModelCompareTranslation();\n\n const allProductGroups = useMemo(() => {\n return products.map((p) => p.productGroup ?? null);\n }, [products]);\n\n const groupGroups = useMemo(() => {\n const result: { productGroup: ProductGroup | null; span: number }[] = [];\n\n let current: (typeof result)[number] = {\n productGroup: null,\n span: 0,\n };\n\n for (const productGroup of allProductGroups) {\n const productGroupId = productGroup?.id ?? null;\n if (productGroupId === (current.productGroup?.id ?? null)) {\n current.span++;\n continue;\n }\n result.push(current);\n current = { productGroup, span: 1 };\n }\n if (current.span) {\n result.push(current);\n }\n\n return result.filter((x) => !!x.span);\n }, [allProductGroups]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <ProductGroups columns={products.length}>\n {groupGroups.map(({ productGroup, span }, i) => (\n <Collection key={i} $span={span}>\n {productGroup ? (\n <TopContainer noCategoryBorder={false}>\n <GroupIconWrap>\n <GroupIcon {...productGroup.icon} />\n </GroupIconWrap>\n <GroupTitle>{formatMessage(productGroup.title)}</GroupTitle>\n </TopContainer>\n ) : (\n <div />\n )}\n </Collection>\n ))}\n </ProductGroups>\n );\n};\n\nconst ProductGroups = styled.div<{ columns: number }>`\n grid-column: 3 / -2;\n display: grid;\n gap: 20px;\n padding: 0 10px;\n grid-template-columns: repeat(${({ columns }) => columns}, minmax(0, 1fr));\n`;\n\nconst Collection = styled.div<{ $span?: number }>`\n grid-column: span ${({ $span }) => $span ?? 1};\n background-color: ${theme.colors.white};\n`;\n\nconst TopContainer = styled.div<{\n noCategoryBorder?: boolean;\n}>`\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 7px;\n padding-top: 20px;\n margin-bottom: 8px;\n height: 80px;\n position: relative;\n\n &::after {\n content: \"\";\n\n width: 100%;\n height: 50%;\n\n position: absolute;\n bottom: 0;\n right: 0;\n\n border-top-left-radius: 3px;\n border-top-right-radius: 3px;\n\n ${({ noCategoryBorder }) =>\n !noCategoryBorder &&\n css`\n border: 1.2px dashed ${theme.colors.menu.categoryIcon.dark};\n `}\n\n border-bottom: 0;\n }\n\n &::before {\n content: \"\";\n height: 30px;\n\n position: absolute;\n bottom: 0;\n right: 0;\n left: 0;\n z-index: 1;\n\n background: linear-gradient(\n 180deg,\n rgba(255 255 255 / 0) 0%,\n rgba(255 255 255 / 1) 100%\n );\n }\n`;\n\nconst GroupIconWrap = styled.div`\n z-index: 1;\n\n background-color: ${theme.colors.white};\n\n padding: 0 2px;\n`;\n\nconst GroupIcon = styled(StyleableSvgImage)`\n color: ${theme.colors.menu.categoryIcon.dark};\n`;\n\nconst GroupTitle = styled.div`\n color: #8e8e8e;\n font-size: 12px;\n letter-spacing: -0.024px;\n z-index: 2;\n`;\n"],"names":["ProductGroupsGrid","products","formatMessage","useModelCompareTranslation","allProductGroups","useMemo","map","p","productGroup","groupGroups","result","current","span","productGroupId","id","push","filter","x","jsx","ProductGroups","columns","length","children","i","Collection","$span","jsxs","TopContainer","noCategoryBorder","GroupIconWrap","GroupIcon","icon","GroupTitle","title","styled","div","theme","colors","white","css","menu","categoryIcon","dark","StyleableSvgImage"],"mappings":";;;;;;;;;;;;;;;;AAWO,MAAMA,oBAAoBA,CAAC;EAChCC;AACF,CAEM,KAAA;EACE,MAAA;IAAEC;EAAc,CAAA,GAAIC,qDAA2B,CAAA,CAAA;EAE/C,MAAAC,gBAAA,GAAmBC,KAAAA,CAAAA,QAAQ,MAAM;IACrC,OAAOJ,SAASK,GAAI,CAACC,CAAM,IAAAA,CAAA,CAAEC,gBAAgB,IAAI,C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,CAAAA,KAAA,CAAAC,MAAA,CAAOG,IAAK,CAAAC,YAAA,CAAaC,IAAI;AAAA,CAAA;AAG9C,MAAMV,aAAaE,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;"}
1
+ {"version":3,"file":"ProductGroupsGrid.js","sources":["../../../src/components/ModelCompareV3/ProductGroupsGrid.tsx"],"sourcesContent":["import { useMemo } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport { useModelCompareTranslation } from \"../../constants/modelCompareData/translations/useModelCompareTranslation\";\nimport type {\n MutatedProduct,\n ProductGroup,\n} from \"../../constants/modelCompareData/types\";\nimport { theme } from \"../../constants/theme\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\n\nexport const ProductGroupsGrid = ({\n products,\n}: {\n products: MutatedProduct[];\n}) => {\n const { formatMessage } = useModelCompareTranslation();\n\n const allProductGroups = useMemo(() => {\n return products.map((p) => p.productGroup ?? null);\n }, [products]);\n\n const groupGroups = useMemo(() => {\n const result: { productGroup: ProductGroup | null; span: number }[] = [];\n\n let current: (typeof result)[number] = {\n productGroup: null,\n span: 0,\n };\n\n for (const productGroup of allProductGroups) {\n const productGroupId = productGroup?.id ?? null;\n if (productGroupId === (current.productGroup?.id ?? null)) {\n current.span++;\n continue;\n }\n result.push(current);\n current = { productGroup, span: 1 };\n }\n if (current.span) {\n result.push(current);\n }\n\n return result.filter((x) => !!x.span);\n }, [allProductGroups]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <ProductGroups columns={products.length}>\n {groupGroups.map(({ productGroup, span }, i) => (\n <Collection key={i} $span={span}>\n {productGroup ? (\n <TopContainer noCategoryBorder={false}>\n <GroupIconWrap>\n <GroupIcon {...productGroup.icon} />\n </GroupIconWrap>\n <GroupTitle>{formatMessage(productGroup.title)}</GroupTitle>\n </TopContainer>\n ) : (\n <div />\n )}\n </Collection>\n ))}\n </ProductGroups>\n );\n};\n\nconst ProductGroups = styled.div<{ columns: number }>`\n grid-column: 3 / -2;\n display: grid;\n gap: 20px;\n padding: 0 10px;\n grid-template-columns: repeat(${({ columns }) => columns}, minmax(0, 1fr));\n`;\n\nconst Collection = styled.div<{ $span?: number }>`\n grid-column: span ${({ $span }) => $span ?? 1};\n background-color: ${theme.colors.white};\n`;\n\nconst TopContainer = styled.div<{\n noCategoryBorder?: boolean;\n}>`\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 7px;\n padding-top: 20px;\n margin-bottom: 8px;\n height: 80px;\n position: relative;\n\n &::after {\n content: \"\";\n\n width: 100%;\n height: 50%;\n\n position: absolute;\n bottom: 0;\n right: 0;\n\n border-top-left-radius: 3px;\n border-top-right-radius: 3px;\n\n ${({ noCategoryBorder }) =>\n !noCategoryBorder &&\n css`\n border: 1.2px dashed ${theme.colors.menu.categoryIcon.dark};\n `}\n\n border-bottom: 0;\n }\n\n &::before {\n content: \"\";\n height: 30px;\n\n position: absolute;\n bottom: 0;\n right: 0;\n left: 0;\n z-index: 1;\n\n background: linear-gradient(\n 180deg,\n rgb(255 255 255 / 0) 0%,\n rgb(255 255 255 / 1) 100%\n );\n }\n`;\n\nconst GroupIconWrap = styled.div`\n z-index: 1;\n\n background-color: ${theme.colors.white};\n\n padding: 0 2px;\n`;\n\nconst GroupIcon = styled(StyleableSvgImage)`\n color: ${theme.colors.menu.categoryIcon.dark};\n`;\n\nconst GroupTitle = styled.div`\n color: #8e8e8e;\n font-size: 12px;\n letter-spacing: -0.024px;\n z-index: 2;\n`;\n"],"names":["ProductGroupsGrid","products","formatMessage","useModelCompareTranslation","allProductGroups","useMemo","map","p","productGroup","groupGroups","result","current","span","productGroupId","id","push","filter","x","jsx","ProductGroups","columns","length","children","i","Collection","$span","jsxs","TopContainer","noCategoryBorder","GroupIconWrap","GroupIcon","icon","GroupTitle","title","styled","div","theme","colors","white","css","menu","categoryIcon","dark","StyleableSvgImage"],"mappings":";;;;;;;;;;;;;;;;AAWO,MAAMA,oBAAoBA,CAAC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AA;AAuBP,MAAMb,gBAAgBK,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;;AAAA,sBAGPC,KAAA,CAAAA,KAAA,CAAMC,OAAOC,KAAK;;AAAA;AAAA,CAAA;AAKxC,MAAMR,SAAA,GAAYI,2BAAOS,mCAAiB,CAAA;AAAA,WAC/BP,KAAM,CAAAA,KAAA,CAAAC,MAAA,CAAOG,IAAK,CAAAC,YAAA,CAAaC,IAAI;AAAA,CAAA;AAG9C,MAAMV,aAAaE,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;"}
@@ -117,8 +117,8 @@ const TopContainer = styled.div`
117
117
 
118
118
  background: linear-gradient(
119
119
  180deg,
120
- rgba(255 255 255 / 0) 0%,
121
- rgba(255 255 255 / 1) 100%
120
+ rgb(255 255 255 / 0) 0%,
121
+ rgb(255 255 255 / 1) 100%
122
122
  );
123
123
  }
124
124
  `;
@@ -1 +1 @@
1
- {"version":3,"file":"ProductGroupsGrid.mjs","sources":["../../../src/components/ModelCompareV3/ProductGroupsGrid.tsx"],"sourcesContent":["import { useMemo } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport { useModelCompareTranslation } from \"../../constants/modelCompareData/translations/useModelCompareTranslation\";\nimport type {\n MutatedProduct,\n ProductGroup,\n} from \"../../constants/modelCompareData/types\";\nimport { theme } from \"../../constants/theme\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\n\nexport const ProductGroupsGrid = ({\n products,\n}: {\n products: MutatedProduct[];\n}) => {\n const { formatMessage } = useModelCompareTranslation();\n\n const allProductGroups = useMemo(() => {\n return products.map((p) => p.productGroup ?? null);\n }, [products]);\n\n const groupGroups = useMemo(() => {\n const result: { productGroup: ProductGroup | null; span: number }[] = [];\n\n let current: (typeof result)[number] = {\n productGroup: null,\n span: 0,\n };\n\n for (const productGroup of allProductGroups) {\n const productGroupId = productGroup?.id ?? null;\n if (productGroupId === (current.productGroup?.id ?? null)) {\n current.span++;\n continue;\n }\n result.push(current);\n current = { productGroup, span: 1 };\n }\n if (current.span) {\n result.push(current);\n }\n\n return result.filter((x) => !!x.span);\n }, [allProductGroups]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <ProductGroups columns={products.length}>\n {groupGroups.map(({ productGroup, span }, i) => (\n <Collection key={i} $span={span}>\n {productGroup ? (\n <TopContainer noCategoryBorder={false}>\n <GroupIconWrap>\n <GroupIcon {...productGroup.icon} />\n </GroupIconWrap>\n <GroupTitle>{formatMessage(productGroup.title)}</GroupTitle>\n </TopContainer>\n ) : (\n <div />\n )}\n </Collection>\n ))}\n </ProductGroups>\n );\n};\n\nconst ProductGroups = styled.div<{ columns: number }>`\n grid-column: 3 / -2;\n display: grid;\n gap: 20px;\n padding: 0 10px;\n grid-template-columns: repeat(${({ columns }) => columns}, minmax(0, 1fr));\n`;\n\nconst Collection = styled.div<{ $span?: number }>`\n grid-column: span ${({ $span }) => $span ?? 1};\n background-color: ${theme.colors.white};\n`;\n\nconst TopContainer = styled.div<{\n noCategoryBorder?: boolean;\n}>`\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 7px;\n padding-top: 20px;\n margin-bottom: 8px;\n height: 80px;\n position: relative;\n\n &::after {\n content: \"\";\n\n width: 100%;\n height: 50%;\n\n position: absolute;\n bottom: 0;\n right: 0;\n\n border-top-left-radius: 3px;\n border-top-right-radius: 3px;\n\n ${({ noCategoryBorder }) =>\n !noCategoryBorder &&\n css`\n border: 1.2px dashed ${theme.colors.menu.categoryIcon.dark};\n `}\n\n border-bottom: 0;\n }\n\n &::before {\n content: \"\";\n height: 30px;\n\n position: absolute;\n bottom: 0;\n right: 0;\n left: 0;\n z-index: 1;\n\n background: linear-gradient(\n 180deg,\n rgba(255 255 255 / 0) 0%,\n rgba(255 255 255 / 1) 100%\n );\n }\n`;\n\nconst GroupIconWrap = styled.div`\n z-index: 1;\n\n background-color: ${theme.colors.white};\n\n padding: 0 2px;\n`;\n\nconst GroupIcon = styled(StyleableSvgImage)`\n color: ${theme.colors.menu.categoryIcon.dark};\n`;\n\nconst GroupTitle = styled.div`\n color: #8e8e8e;\n font-size: 12px;\n letter-spacing: -0.024px;\n z-index: 2;\n`;\n"],"names":["ProductGroupsGrid","products","formatMessage","useModelCompareTranslation","allProductGroups","useMemo","map","p","productGroup","groupGroups","result","current","span","productGroupId","id","push","filter","x","jsx","ProductGroups","columns","length","children","i","Collection","$span","jsxs","TopContainer","noCategoryBorder","GroupIconWrap","GroupIcon","icon","GroupTitle","title","styled","div","theme","colors","white","css","menu","categoryIcon","dark","StyleableSvgImage"],"mappings":";;;;;;;;AAWO,MAAMA,oBAAoBA,CAAC;EAChCC;AACF,CAEM,KAAA;EACE,MAAA;IAAEC;EAAc,CAAA,GAAIC,0BAA2B,CAAA,CAAA;EAE/C,MAAAC,gBAAA,GAAmBC,QAAQ,MAAM;IACrC,OAAOJ,SAASK,GAAI,CAACC,CAAM,IAAAA,CAAA,CAAEC,gBAAgB,IAAI,CAAA;EAAA,CACnD,EAAG,CAACP,QAAQ,CAAC,CAAA;EAEP,MAAAQ,WAAA,GAAcJ,QAAQ,MAAM;IAChC,MAAMK,SAAgE,EAAC;IAEvE,IAAIC,OAAmC,GAAA;MACrCH,YAAc,EAAA,IAAA;MACdI,IAAM,EAAA;IACR,CAAA;IAEA,KAAA,MAAWJ,gBAAgBJ,gBAAkB,EAAA;MACrC,MAAAS,cAAA,GAAiBL,cAAcM,EAAM,IAAA,IAAA;MAC3C,IAAID,cAAoB,MAAAF,OAAA,CAAQH,YAAc,EAAAM,EAAA,IAAM,IAAO,CAAA,EAAA;QACjDH,OAAA,CAAAC,IAAA,EAAA;QACR;MAAA;MAEFF,MAAA,CAAOK,KAAKJ,OAAO,CAAA;MACTA,OAAA,GAAA;QAAEH,YAAc;QAAAI,IAAA,EAAM;MAAE,CAAA;IAAA;IAEpC,IAAID,QAAQC,IAAM,EAAA;MAChBF,MAAA,CAAOK,KAAKJ,OAAO,CAA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AAC;EAAEP;CAAiB,KACpB,CAACA,gBACD,IAAAW,GAAA;AAAA,+BACyBH,KAAM,CAAAC,MAAA,CAAOG,IAAK,CAAAC,YAAA,CAAaC,IAAI;AAAA,OAC3D;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAuBP,MAAMb,gBAAgBK,MAAO,CAAAC,GAAA;AAAA;;AAAA,sBAGPC,KAAA,CAAMC,OAAOC,KAAK;;AAAA;AAAA,CAAA;AAKxC,MAAMR,SAAA,GAAYI,OAAOS,iBAAiB,CAAA;AAAA,WAC/BP,KAAM,CAAAC,MAAA,CAAOG,IAAK,CAAAC,YAAA,CAAaC,IAAI;AAAA,CAAA;AAG9C,MAAMV,aAAaE,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;"}
1
+ {"version":3,"file":"ProductGroupsGrid.mjs","sources":["../../../src/components/ModelCompareV3/ProductGroupsGrid.tsx"],"sourcesContent":["import { useMemo } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport { useModelCompareTranslation } from \"../../constants/modelCompareData/translations/useModelCompareTranslation\";\nimport type {\n MutatedProduct,\n ProductGroup,\n} from \"../../constants/modelCompareData/types\";\nimport { theme } from \"../../constants/theme\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\n\nexport const ProductGroupsGrid = ({\n products,\n}: {\n products: MutatedProduct[];\n}) => {\n const { formatMessage } = useModelCompareTranslation();\n\n const allProductGroups = useMemo(() => {\n return products.map((p) => p.productGroup ?? null);\n }, [products]);\n\n const groupGroups = useMemo(() => {\n const result: { productGroup: ProductGroup | null; span: number }[] = [];\n\n let current: (typeof result)[number] = {\n productGroup: null,\n span: 0,\n };\n\n for (const productGroup of allProductGroups) {\n const productGroupId = productGroup?.id ?? null;\n if (productGroupId === (current.productGroup?.id ?? null)) {\n current.span++;\n continue;\n }\n result.push(current);\n current = { productGroup, span: 1 };\n }\n if (current.span) {\n result.push(current);\n }\n\n return result.filter((x) => !!x.span);\n }, [allProductGroups]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <ProductGroups columns={products.length}>\n {groupGroups.map(({ productGroup, span }, i) => (\n <Collection key={i} $span={span}>\n {productGroup ? (\n <TopContainer noCategoryBorder={false}>\n <GroupIconWrap>\n <GroupIcon {...productGroup.icon} />\n </GroupIconWrap>\n <GroupTitle>{formatMessage(productGroup.title)}</GroupTitle>\n </TopContainer>\n ) : (\n <div />\n )}\n </Collection>\n ))}\n </ProductGroups>\n );\n};\n\nconst ProductGroups = styled.div<{ columns: number }>`\n grid-column: 3 / -2;\n display: grid;\n gap: 20px;\n padding: 0 10px;\n grid-template-columns: repeat(${({ columns }) => columns}, minmax(0, 1fr));\n`;\n\nconst Collection = styled.div<{ $span?: number }>`\n grid-column: span ${({ $span }) => $span ?? 1};\n background-color: ${theme.colors.white};\n`;\n\nconst TopContainer = styled.div<{\n noCategoryBorder?: boolean;\n}>`\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 7px;\n padding-top: 20px;\n margin-bottom: 8px;\n height: 80px;\n position: relative;\n\n &::after {\n content: \"\";\n\n width: 100%;\n height: 50%;\n\n position: absolute;\n bottom: 0;\n right: 0;\n\n border-top-left-radius: 3px;\n border-top-right-radius: 3px;\n\n ${({ noCategoryBorder }) =>\n !noCategoryBorder &&\n css`\n border: 1.2px dashed ${theme.colors.menu.categoryIcon.dark};\n `}\n\n border-bottom: 0;\n }\n\n &::before {\n content: \"\";\n height: 30px;\n\n position: absolute;\n bottom: 0;\n right: 0;\n left: 0;\n z-index: 1;\n\n background: linear-gradient(\n 180deg,\n rgb(255 255 255 / 0) 0%,\n rgb(255 255 255 / 1) 100%\n );\n }\n`;\n\nconst GroupIconWrap = styled.div`\n z-index: 1;\n\n background-color: ${theme.colors.white};\n\n padding: 0 2px;\n`;\n\nconst GroupIcon = styled(StyleableSvgImage)`\n color: ${theme.colors.menu.categoryIcon.dark};\n`;\n\nconst GroupTitle = styled.div`\n color: #8e8e8e;\n font-size: 12px;\n letter-spacing: -0.024px;\n z-index: 2;\n`;\n"],"names":["ProductGroupsGrid","products","formatMessage","useModelCompareTranslation","allProductGroups","useMemo","map","p","productGroup","groupGroups","result","current","span","productGroupId","id","push","filter","x","jsx","ProductGroups","columns","length","children","i","Collection","$span","jsxs","TopContainer","noCategoryBorder","GroupIconWrap","GroupIcon","icon","GroupTitle","title","styled","div","theme","colors","white","css","menu","categoryIcon","dark","StyleableSvgImage"],"mappings":";;;;;;;;AAWO,MAAMA,oBAAoBA,CAAC;EAChCC;AACF,CAEM,KAAA;EACE,MAAA;IAAEC;EAAc,CAAA,GAAIC,0BAA2B,CAAA,CAAA;EAE/C,MAAAC,gBAAA,GAAmBC,QAAQ,MAAM;IACrC,OAAOJ,SAASK,GAAI,CAACC,CAAM,IAAAA,CAAA,CAAEC,gBAAgB,IAAI,CAAA;EAAA,CACnD,EAAG,CAACP,QAAQ,CAAC,CAAA;EAEP,MAAAQ,WAAA,GAAcJ,QAAQ,MAAM;IAChC,MAAMK,SAAgE,EAAC;IAEvE,IAAIC,OAAmC,GAAA;MACrCH,YAAc,EAAA,IAAA;MACdI,IAAM,EAAA;IACR,CAAA;IAEA,KAAA,MAAWJ,gBAAgBJ,gBAAkB,EAAA;MACrC,MAAAS,cAAA,GAAiBL,cAAcM,EAAM,IAAA,IAAA;MAC3C,IAAID,cAAoB,MAAAF,OAAA,CAAQH,YAAc,EAAAM,EAAA,IAAM,IAAO,CAAA,EAAA;QACjDH,OAAA,CAAAC,IAAA,EAAA;QACR;MAAA;MAEFF,MAAA,CAAOK,KAAKJ,OAAO,CAAA;MACTA,OAAA,GAAA;QAAEH,YAAc;QAAAI,IAAA,EAAM;MAAE,CAAA;IAAA;IAEpC,IAAID,QAAQC,IAAM,EAAA;MAChBF,MAAA,CAAOK,KAAKJ,OAAO,CAAA;IAAA;IAGrB,OAAOD,OAAOM,MAAO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D,IAAAW,GAAA;AAAA,+BACyBH,KAAM,CAAAC,MAAA,CAAOG,IAAK,CAAAC,YAAA,CAAaC,IAAI;AAAA,OAC3D;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAuBP,MAAMb,gBAAgBK,MAAO,CAAAC,GAAA;AAAA;;AAAA,sBAGPC,KAAA,CAAMC,OAAOC,KAAK;;AAAA;AAAA,CAAA;AAKxC,MAAMR,SAAA,GAAYI,OAAOS,iBAAiB,CAAA;AAAA,WAC/BP,KAAM,CAAAC,MAAA,CAAOG,IAAK,CAAAC,YAAA,CAAaC,IAAI;AAAA,CAAA;AAG9C,MAAMV,aAAaE,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;"}
@@ -120,8 +120,8 @@ const Icon = styled__default["default"].div`
120
120
  width: 44px;
121
121
 
122
122
  border-radius: 50%;
123
- background: rgba(255 255 255 / 0.8);
124
- box-shadow: 0 0 10px 0 rgba(0 0 0 / 0.25);
123
+ background: rgb(255 255 255 / 0.8);
124
+ box-shadow: 0 0 10px 0 rgb(0 0 0 / 0.25);
125
125
  backdrop-filter: blur(2px);
126
126
  color: #808893;
127
127
  `;
@@ -1 +1 @@
1
- {"version":3,"file":"CompareTableOverflowScrollButton.js","sources":["../../../../../../src/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/CompareTableOverflowScrollButton.tsx"],"sourcesContent":["import { useCallback, useMemo } from \"react\";\nimport styled from \"styled-components\";\n\nimport arrowRightIcon from \"../../../../../constants/modelCompareData/assets/arrow-right.svg\";\nimport { useModelCompareTranslation } from \"../../../../../constants/modelCompareData/translations/useModelCompareTranslation\";\nimport { imageSrc } from \"../../../../../utils/asset\";\nimport { StyleableSvgImage } from \"../../../../StyleableSvgImage\";\nimport { useStickyGrid } from \"./StickyGrid/context\";\n\nconst icon = imageSrc(arrowRightIcon);\n\nexport function ModelCompareOverflowScrollButton({\n isVisible,\n color,\n rotationDegrees,\n onClickColumnDiff,\n totalColumns,\n totalDeadSpace,\n isSmallScreen,\n isLeftButton = true,\n}: {\n isVisible: boolean;\n color: string;\n rotationDegrees: number;\n onClickColumnDiff: number;\n totalDeadSpace: number;\n totalColumns: number;\n isSmallScreen: boolean;\n isLeftButton?: boolean;\n}) {\n const { scrollGroupItemsRef, scrollTo } = useStickyGrid();\n\n const { formatMessage } = useModelCompareTranslation();\n\n // Scroll one column on click\n const handleClick = useCallback(() => {\n const anyScrollItem = scrollGroupItemsRef.current?.[0]?.refObject.current;\n\n if (!anyScrollItem) {\n return;\n }\n\n const totalWidth = anyScrollItem.scrollWidth;\n const currentScrollLeft = anyScrollItem.scrollLeft + 1;\n const oneColumnWidth = (totalWidth - totalDeadSpace) / totalColumns;\n const currentColumnIndex = Math.min(\n totalColumns - 1,\n Math.max(0, Math.round(currentScrollLeft / oneColumnWidth)),\n );\n\n const newColumnIndex = Math.max(\n Math.min(currentColumnIndex + onClickColumnDiff, totalColumns),\n 0,\n );\n\n const offsetLeft = newColumnIndex * oneColumnWidth;\n\n scrollTo({ left: offsetLeft, behavior: \"smooth\" });\n }, [\n onClickColumnDiff,\n scrollGroupItemsRef,\n scrollTo,\n totalColumns,\n totalDeadSpace,\n ]);\n\n const arrowOffset = useMemo(() => {\n if (isSmallScreen) {\n return rotationDegrees < 180 ? -5 : 0;\n }\n\n return -15;\n }, [isSmallScreen, rotationDegrees]);\n\n return (\n <Button\n aria-label={\n isLeftButton\n ? formatMessage(\"commons.scrollButton.left\")\n : formatMessage(\"commons.scrollButton.right\")\n }\n $color={color}\n $rotation={rotationDegrees}\n $isVisible={isVisible}\n type=\"button\"\n onClick={handleClick}\n >\n <Icon $rotation={rotationDegrees} $arrowOffset={arrowOffset}>\n <StyleableSvgImage width={10} height={16} src={icon} />\n </Icon>\n </Button>\n );\n}\n\nconst Button = styled.button<{\n $isVisible: boolean;\n $rotation: number;\n $color: string;\n}>`\n color: inherit;\n outline: none;\n opacity: ${({ $isVisible }) => ($isVisible ? 1 : 0)};\n pointer-events: ${({ $isVisible }) => ($isVisible ? \"auto\" : \"none\")};\n transition: opacity 0.2s;\n height: 100%;\n width: 40px;\n background: transparent;\n border: none;\n background-image: linear-gradient(\n ${({ $rotation }) => $rotation - 90}deg,\n ${({ $color }) => $color},\n transparent 20px\n );\n border-left: ${({ $color }) =>\n $color !== \"white\" ? \"1px solid #eee\" : \"none\"};\n cursor: pointer;\n`;\n\nconst Icon = styled.div<{ $rotation: number; $arrowOffset: number }>`\n transform: rotate(${({ $rotation }) => $rotation}deg)\n translateX(${({ $arrowOffset }) => $arrowOffset ?? 0}px);\n display: flex;\n align-items: center;\n justify-content: center;\n\n padding-left: 4px;\n height: 44px;\n width: 44px;\n\n border-radius: 50%;\n background: rgba(255 255 255 / 0.8);\n box-shadow: 0 0 10px 0 rgba(0 0 0 / 0.25);\n backdrop-filter: blur(2px);\n color: #808893;\n`;\n"],"names":["icon","imageSrc","arrowRightIcon","ModelCompareOverflowScrollButton","isVisible","color","rotationDegrees","onClickColumnDiff","totalColumns","totalDeadSpace","isSmallScreen","isLeftButton","scrollGroupItemsRef","scrollTo","useStickyGrid","formatMessage","useModelCompareTranslation","handleClick","useCallback","anyScrollItem","current","refObject","totalWidth","scrollWidth","currentScrollLeft","scrollLeft","oneColumnWidth","currentColumnIndex","Math","min","max","round","newColumnIndex","offsetLeft","left","behavior","arrowOffset","useMemo","jsx","Button","$color","$rotation","$isVisible","type","onClick","children","Icon","$arrowOffset","StyleableSvgImage","width","height","src","styled","button","div"],"mappings":";;;;;;;;;;;;;;;;;;;;AASA,MAAMA,IAAA,GAAOC,eAASC,kCAAc,CAAA;AAE7B,SAASC,gCAAiCA,CAAA;EAC/CC,SAAA;EACAC,KAAA;EACAC,eAAA;EACAC,iBAAA;EACAC,YAAA;EACAC,cAAA;EACAC,aAAA;EACAC,YAAe,GAAA;AACjB,CASG,EAAA;EACD,MAAM;I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AAA,CAAA;"}
1
+ {"version":3,"file":"CompareTableOverflowScrollButton.js","sources":["../../../../../../src/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/CompareTableOverflowScrollButton.tsx"],"sourcesContent":["import { useCallback, useMemo } from \"react\";\nimport styled from \"styled-components\";\n\nimport arrowRightIcon from \"../../../../../constants/modelCompareData/assets/arrow-right.svg\";\nimport { useModelCompareTranslation } from \"../../../../../constants/modelCompareData/translations/useModelCompareTranslation\";\nimport { imageSrc } from \"../../../../../utils/asset\";\nimport { StyleableSvgImage } from \"../../../../StyleableSvgImage\";\nimport { useStickyGrid } from \"./StickyGrid/context\";\n\nconst icon = imageSrc(arrowRightIcon);\n\nexport function ModelCompareOverflowScrollButton({\n isVisible,\n color,\n rotationDegrees,\n onClickColumnDiff,\n totalColumns,\n totalDeadSpace,\n isSmallScreen,\n isLeftButton = true,\n}: {\n isVisible: boolean;\n color: string;\n rotationDegrees: number;\n onClickColumnDiff: number;\n totalDeadSpace: number;\n totalColumns: number;\n isSmallScreen: boolean;\n isLeftButton?: boolean;\n}) {\n const { scrollGroupItemsRef, scrollTo } = useStickyGrid();\n\n const { formatMessage } = useModelCompareTranslation();\n\n // Scroll one column on click\n const handleClick = useCallback(() => {\n const anyScrollItem = scrollGroupItemsRef.current?.[0]?.refObject.current;\n\n if (!anyScrollItem) {\n return;\n }\n\n const totalWidth = anyScrollItem.scrollWidth;\n const currentScrollLeft = anyScrollItem.scrollLeft + 1;\n const oneColumnWidth = (totalWidth - totalDeadSpace) / totalColumns;\n const currentColumnIndex = Math.min(\n totalColumns - 1,\n Math.max(0, Math.round(currentScrollLeft / oneColumnWidth)),\n );\n\n const newColumnIndex = Math.max(\n Math.min(currentColumnIndex + onClickColumnDiff, totalColumns),\n 0,\n );\n\n const offsetLeft = newColumnIndex * oneColumnWidth;\n\n scrollTo({ left: offsetLeft, behavior: \"smooth\" });\n }, [\n onClickColumnDiff,\n scrollGroupItemsRef,\n scrollTo,\n totalColumns,\n totalDeadSpace,\n ]);\n\n const arrowOffset = useMemo(() => {\n if (isSmallScreen) {\n return rotationDegrees < 180 ? -5 : 0;\n }\n\n return -15;\n }, [isSmallScreen, rotationDegrees]);\n\n return (\n <Button\n aria-label={\n isLeftButton\n ? formatMessage(\"commons.scrollButton.left\")\n : formatMessage(\"commons.scrollButton.right\")\n }\n $color={color}\n $rotation={rotationDegrees}\n $isVisible={isVisible}\n type=\"button\"\n onClick={handleClick}\n >\n <Icon $rotation={rotationDegrees} $arrowOffset={arrowOffset}>\n <StyleableSvgImage width={10} height={16} src={icon} />\n </Icon>\n </Button>\n );\n}\n\nconst Button = styled.button<{\n $isVisible: boolean;\n $rotation: number;\n $color: string;\n}>`\n color: inherit;\n outline: none;\n opacity: ${({ $isVisible }) => ($isVisible ? 1 : 0)};\n pointer-events: ${({ $isVisible }) => ($isVisible ? \"auto\" : \"none\")};\n transition: opacity 0.2s;\n height: 100%;\n width: 40px;\n background: transparent;\n border: none;\n background-image: linear-gradient(\n ${({ $rotation }) => $rotation - 90}deg,\n ${({ $color }) => $color},\n transparent 20px\n );\n border-left: ${({ $color }) =>\n $color !== \"white\" ? \"1px solid #eee\" : \"none\"};\n cursor: pointer;\n`;\n\nconst Icon = styled.div<{ $rotation: number; $arrowOffset: number }>`\n transform: rotate(${({ $rotation }) => $rotation}deg)\n translateX(${({ $arrowOffset }) => $arrowOffset ?? 0}px);\n display: flex;\n align-items: center;\n justify-content: center;\n\n padding-left: 4px;\n height: 44px;\n width: 44px;\n\n border-radius: 50%;\n background: rgb(255 255 255 / 0.8);\n box-shadow: 0 0 10px 0 rgb(0 0 0 / 0.25);\n backdrop-filter: blur(2px);\n color: #808893;\n`;\n"],"names":["icon","imageSrc","arrowRightIcon","ModelCompareOverflowScrollButton","isVisible","color","rotationDegrees","onClickColumnDiff","totalColumns","totalDeadSpace","isSmallScreen","isLeftButton","scrollGroupItemsRef","scrollTo","useStickyGrid","formatMessage","useModelCompareTranslation","handleClick","useCallback","anyScrollItem","current","refObject","totalWidth","scrollWidth","currentScrollLeft","scrollLeft","oneColumnWidth","currentColumnIndex","Math","min","max","round","newColumnIndex","offsetLeft","left","behavior","arrowOffset","useMemo","jsx","Button","$color","$rotation","$isVisible","type","onClick","children","Icon","$arrowOffset","StyleableSvgImage","width","height","src","styled","button","div"],"mappings":";;;;;;;;;;;;;;;;;;;;AASA,MAAMA,IAAA,GAAOC,eAASC,kCAAc,CAAA;AAE7B,SAASC,gCAAiCA,CAAA;EAC/CC,SAAA;EACAC,KAAA;EACAC,eAAA;EACAC,iBAAA;EACAC,YAAA;EACAC,cAAA;EACAC,aAAA;EACAC,YAAe,GAAA;AACjB,CASG,EAAA;EACD,MAAM;IAAEC,mBAAA;IAAqBC;EAAS,CAAA,GAAIC,qBAAc,CAAA,CAAA;EAElD,MAAA;IAAEC;EAAc,CAAA,GAAIC,qDAA2B,CAAA,CAAA;EAG/C,MAAAC,WAAA,GAAcC,KAAAA,CAAAA,YAAY,MAAM;IACpC,MAAMC,aAAgB,GAAAP,mBAAA,CAAoBQ,OAAU,GAAA,CAAC,GAAGC,SAAU,CAAAD,OAAA;IAElE,IAAI,CAACD,aAAe,EAAA;MAClB;IAAA;IAGF,MAAMG,aAAaH,aAAc,CAAAI,WAAA;IAC3B,MAAAC,iBAAA,GAAoBL,cAAcM,UAAa,GAAA,CAAA;IAC/C,MAAAC,cAAA,GAAA,CAAkBJ,aAAab,cAAkB,IAAAD,YAAA;IACvD,MAAMmB,qBAAqBC,IAAK,CAAAC,GAAA,CAC9BrB,YAAe,GAAA,CAAA,EACfoB,KAAKE,GAAI,CAAA,CAAA,EAAGF,KAAKG,KAAM,CAAAP,iBAAA,GAAoBE,cAAc,CAAC,CAC5D,CAAA;IAEA,MAAMM,iBAAiBJ,IAAK,CAAAE,GAAA,CAC1BF,IAAK,CAAAC,GAAA,CAAIF,kBAAqB,GAAApB,iBAAA,EAAmBC,YAAY,CAAA,EAC7D,CACF,CAAA;IAEA,MAAMyB,aAAaD,cAAiB,GAAAN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,CAAC;EAAED;CAAU,KAAMA,YAAY,EAAE;AAAA,MACjC,CAAC;EAAED;AAAO,CAAA,KAAMA,MAAM;AAAA;AAAA;AAAA,iBAGX,CAAC;EAAEA;MAChBA,MAAW,KAAA,OAAA,GAAU,mBAAmB,MAAM;AAAA;AAAA,CAAA;AAIlD,MAAMM,OAAOM,eAAO,CAAA,SAAA,CAAA,CAAAE,GAAA;AAAA,sBACE,CAAC;EAAEb;AAAU,CAAA,KAAMA,SAAS;AAAA,iBACjC,CAAC;EAAEM;CAAa,KAAMA,gBAAgB,CAAC;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;"}
@@ -111,8 +111,8 @@ const Icon = styled.div`
111
111
  width: 44px;
112
112
 
113
113
  border-radius: 50%;
114
- background: rgba(255 255 255 / 0.8);
115
- box-shadow: 0 0 10px 0 rgba(0 0 0 / 0.25);
114
+ background: rgb(255 255 255 / 0.8);
115
+ box-shadow: 0 0 10px 0 rgb(0 0 0 / 0.25);
116
116
  backdrop-filter: blur(2px);
117
117
  color: #808893;
118
118
  `;
@@ -1 +1 @@
1
- {"version":3,"file":"CompareTableOverflowScrollButton.mjs","sources":["../../../../../../src/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/CompareTableOverflowScrollButton.tsx"],"sourcesContent":["import { useCallback, useMemo } from \"react\";\nimport styled from \"styled-components\";\n\nimport arrowRightIcon from \"../../../../../constants/modelCompareData/assets/arrow-right.svg\";\nimport { useModelCompareTranslation } from \"../../../../../constants/modelCompareData/translations/useModelCompareTranslation\";\nimport { imageSrc } from \"../../../../../utils/asset\";\nimport { StyleableSvgImage } from \"../../../../StyleableSvgImage\";\nimport { useStickyGrid } from \"./StickyGrid/context\";\n\nconst icon = imageSrc(arrowRightIcon);\n\nexport function ModelCompareOverflowScrollButton({\n isVisible,\n color,\n rotationDegrees,\n onClickColumnDiff,\n totalColumns,\n totalDeadSpace,\n isSmallScreen,\n isLeftButton = true,\n}: {\n isVisible: boolean;\n color: string;\n rotationDegrees: number;\n onClickColumnDiff: number;\n totalDeadSpace: number;\n totalColumns: number;\n isSmallScreen: boolean;\n isLeftButton?: boolean;\n}) {\n const { scrollGroupItemsRef, scrollTo } = useStickyGrid();\n\n const { formatMessage } = useModelCompareTranslation();\n\n // Scroll one column on click\n const handleClick = useCallback(() => {\n const anyScrollItem = scrollGroupItemsRef.current?.[0]?.refObject.current;\n\n if (!anyScrollItem) {\n return;\n }\n\n const totalWidth = anyScrollItem.scrollWidth;\n const currentScrollLeft = anyScrollItem.scrollLeft + 1;\n const oneColumnWidth = (totalWidth - totalDeadSpace) / totalColumns;\n const currentColumnIndex = Math.min(\n totalColumns - 1,\n Math.max(0, Math.round(currentScrollLeft / oneColumnWidth)),\n );\n\n const newColumnIndex = Math.max(\n Math.min(currentColumnIndex + onClickColumnDiff, totalColumns),\n 0,\n );\n\n const offsetLeft = newColumnIndex * oneColumnWidth;\n\n scrollTo({ left: offsetLeft, behavior: \"smooth\" });\n }, [\n onClickColumnDiff,\n scrollGroupItemsRef,\n scrollTo,\n totalColumns,\n totalDeadSpace,\n ]);\n\n const arrowOffset = useMemo(() => {\n if (isSmallScreen) {\n return rotationDegrees < 180 ? -5 : 0;\n }\n\n return -15;\n }, [isSmallScreen, rotationDegrees]);\n\n return (\n <Button\n aria-label={\n isLeftButton\n ? formatMessage(\"commons.scrollButton.left\")\n : formatMessage(\"commons.scrollButton.right\")\n }\n $color={color}\n $rotation={rotationDegrees}\n $isVisible={isVisible}\n type=\"button\"\n onClick={handleClick}\n >\n <Icon $rotation={rotationDegrees} $arrowOffset={arrowOffset}>\n <StyleableSvgImage width={10} height={16} src={icon} />\n </Icon>\n </Button>\n );\n}\n\nconst Button = styled.button<{\n $isVisible: boolean;\n $rotation: number;\n $color: string;\n}>`\n color: inherit;\n outline: none;\n opacity: ${({ $isVisible }) => ($isVisible ? 1 : 0)};\n pointer-events: ${({ $isVisible }) => ($isVisible ? \"auto\" : \"none\")};\n transition: opacity 0.2s;\n height: 100%;\n width: 40px;\n background: transparent;\n border: none;\n background-image: linear-gradient(\n ${({ $rotation }) => $rotation - 90}deg,\n ${({ $color }) => $color},\n transparent 20px\n );\n border-left: ${({ $color }) =>\n $color !== \"white\" ? \"1px solid #eee\" : \"none\"};\n cursor: pointer;\n`;\n\nconst Icon = styled.div<{ $rotation: number; $arrowOffset: number }>`\n transform: rotate(${({ $rotation }) => $rotation}deg)\n translateX(${({ $arrowOffset }) => $arrowOffset ?? 0}px);\n display: flex;\n align-items: center;\n justify-content: center;\n\n padding-left: 4px;\n height: 44px;\n width: 44px;\n\n border-radius: 50%;\n background: rgba(255 255 255 / 0.8);\n box-shadow: 0 0 10px 0 rgba(0 0 0 / 0.25);\n backdrop-filter: blur(2px);\n color: #808893;\n`;\n"],"names":["icon","imageSrc","arrowRightIcon","ModelCompareOverflowScrollButton","isVisible","color","rotationDegrees","onClickColumnDiff","totalColumns","totalDeadSpace","isSmallScreen","isLeftButton","scrollGroupItemsRef","scrollTo","useStickyGrid","formatMessage","useModelCompareTranslation","handleClick","useCallback","anyScrollItem","current","refObject","totalWidth","scrollWidth","currentScrollLeft","scrollLeft","oneColumnWidth","currentColumnIndex","Math","min","max","round","newColumnIndex","offsetLeft","left","behavior","arrowOffset","useMemo","jsx","Button","$color","$rotation","$isVisible","type","onClick","children","Icon","$arrowOffset","StyleableSvgImage","width","height","src","styled","button","div"],"mappings":";;;;;;;;;;;AASA,MAAMA,IAAA,GAAOC,SAASC,uBAAc,CAAA;AAE7B,SAASC,gCAAiCA,CAAA;EAC/CC,SAAA;EACAC,KAAA;EACAC,eAAA;EACAC,iBAAA;EACAC,YAAA;EACAC,cAAA;EACAC,aAAA;EACAC,YAAe,GAAA;AACjB,CASG,EAAA;EACD,MAAM;IAAEC,mBAAA;IAAqBC;EAAS,CAAA,GAAIC,aAAc,CAAA,CAAA;EAElD,MAAA;IAAEC;EAAc,CAAA,GAAIC,0BAA2B,CAAA,CAAA;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AnC,eAAA;IACXoC,UAAY,EAAAtC,SAAA;IACZuC,IAAK,EAAA,QAAA;IACLC,OAAS,EAAA3B,WAAA;IAET4B,QAAC,EAAA,eAAAP,GAAA,CAAAQ,IAAA,EAAA;MAAKL,SAAW,EAAAnC,eAAA;MAAiByC,cAAcX,WAC9C;MAAAS,QAAA,EAAA,eAAAP,GAAA,CAACU,iBAAkB,EAAA;QAAAC,KAAA,EAAO,EAAI;QAAAC,MAAA,EAAQ,EAAI;QAAAC,GAAA,EAAKnD;OAAM;IACvD,CAAA;EAAA,CACF,CAAA;AAEJ;AAEA,MAAMuC,SAASa,MAAO,CAAAC,MAAA;AAAA;AAAA;AAAA,aAOT,CAAC;EAAEX;AAAA,CAAkB,KAAAA,UAAA,GAAa,IAAI,CAAE;AAAA,oBACjC,CAAC;EAAEA;AAAA,CAAkB,KAAAA,UAAA,GAAa,SAAS,MAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAOhE,CAAC;EAAED;CAAU,KAAMA,YAAY,EAAE;AAAA,MACjC,CAAC;EAAED;AAAO,CAAA,KAAMA,MAAM;AAAA;AAAA;AAAA,iBAGX,CAAC;EAAEA;MAChBA,MAAW,KAAA,OAAA,GAAU,mBAAmB,MAAM;AAAA;AAAA,CAAA;AAIlD,MAAMM,OAAOM,MAAO,CAAAE,GAAA;AAAA,sBACE,CAAC;EAAEb;AAAU,CAAA,KAAMA,SAAS;AAAA,iBACjC,CAAC;EAAEM;CAAa,KAAMA,gBAAgB,CAAC;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;"}
1
+ {"version":3,"file":"CompareTableOverflowScrollButton.mjs","sources":["../../../../../../src/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/CompareTableOverflowScrollButton.tsx"],"sourcesContent":["import { useCallback, useMemo } from \"react\";\nimport styled from \"styled-components\";\n\nimport arrowRightIcon from \"../../../../../constants/modelCompareData/assets/arrow-right.svg\";\nimport { useModelCompareTranslation } from \"../../../../../constants/modelCompareData/translations/useModelCompareTranslation\";\nimport { imageSrc } from \"../../../../../utils/asset\";\nimport { StyleableSvgImage } from \"../../../../StyleableSvgImage\";\nimport { useStickyGrid } from \"./StickyGrid/context\";\n\nconst icon = imageSrc(arrowRightIcon);\n\nexport function ModelCompareOverflowScrollButton({\n isVisible,\n color,\n rotationDegrees,\n onClickColumnDiff,\n totalColumns,\n totalDeadSpace,\n isSmallScreen,\n isLeftButton = true,\n}: {\n isVisible: boolean;\n color: string;\n rotationDegrees: number;\n onClickColumnDiff: number;\n totalDeadSpace: number;\n totalColumns: number;\n isSmallScreen: boolean;\n isLeftButton?: boolean;\n}) {\n const { scrollGroupItemsRef, scrollTo } = useStickyGrid();\n\n const { formatMessage } = useModelCompareTranslation();\n\n // Scroll one column on click\n const handleClick = useCallback(() => {\n const anyScrollItem = scrollGroupItemsRef.current?.[0]?.refObject.current;\n\n if (!anyScrollItem) {\n return;\n }\n\n const totalWidth = anyScrollItem.scrollWidth;\n const currentScrollLeft = anyScrollItem.scrollLeft + 1;\n const oneColumnWidth = (totalWidth - totalDeadSpace) / totalColumns;\n const currentColumnIndex = Math.min(\n totalColumns - 1,\n Math.max(0, Math.round(currentScrollLeft / oneColumnWidth)),\n );\n\n const newColumnIndex = Math.max(\n Math.min(currentColumnIndex + onClickColumnDiff, totalColumns),\n 0,\n );\n\n const offsetLeft = newColumnIndex * oneColumnWidth;\n\n scrollTo({ left: offsetLeft, behavior: \"smooth\" });\n }, [\n onClickColumnDiff,\n scrollGroupItemsRef,\n scrollTo,\n totalColumns,\n totalDeadSpace,\n ]);\n\n const arrowOffset = useMemo(() => {\n if (isSmallScreen) {\n return rotationDegrees < 180 ? -5 : 0;\n }\n\n return -15;\n }, [isSmallScreen, rotationDegrees]);\n\n return (\n <Button\n aria-label={\n isLeftButton\n ? formatMessage(\"commons.scrollButton.left\")\n : formatMessage(\"commons.scrollButton.right\")\n }\n $color={color}\n $rotation={rotationDegrees}\n $isVisible={isVisible}\n type=\"button\"\n onClick={handleClick}\n >\n <Icon $rotation={rotationDegrees} $arrowOffset={arrowOffset}>\n <StyleableSvgImage width={10} height={16} src={icon} />\n </Icon>\n </Button>\n );\n}\n\nconst Button = styled.button<{\n $isVisible: boolean;\n $rotation: number;\n $color: string;\n}>`\n color: inherit;\n outline: none;\n opacity: ${({ $isVisible }) => ($isVisible ? 1 : 0)};\n pointer-events: ${({ $isVisible }) => ($isVisible ? \"auto\" : \"none\")};\n transition: opacity 0.2s;\n height: 100%;\n width: 40px;\n background: transparent;\n border: none;\n background-image: linear-gradient(\n ${({ $rotation }) => $rotation - 90}deg,\n ${({ $color }) => $color},\n transparent 20px\n );\n border-left: ${({ $color }) =>\n $color !== \"white\" ? \"1px solid #eee\" : \"none\"};\n cursor: pointer;\n`;\n\nconst Icon = styled.div<{ $rotation: number; $arrowOffset: number }>`\n transform: rotate(${({ $rotation }) => $rotation}deg)\n translateX(${({ $arrowOffset }) => $arrowOffset ?? 0}px);\n display: flex;\n align-items: center;\n justify-content: center;\n\n padding-left: 4px;\n height: 44px;\n width: 44px;\n\n border-radius: 50%;\n background: rgb(255 255 255 / 0.8);\n box-shadow: 0 0 10px 0 rgb(0 0 0 / 0.25);\n backdrop-filter: blur(2px);\n color: #808893;\n`;\n"],"names":["icon","imageSrc","arrowRightIcon","ModelCompareOverflowScrollButton","isVisible","color","rotationDegrees","onClickColumnDiff","totalColumns","totalDeadSpace","isSmallScreen","isLeftButton","scrollGroupItemsRef","scrollTo","useStickyGrid","formatMessage","useModelCompareTranslation","handleClick","useCallback","anyScrollItem","current","refObject","totalWidth","scrollWidth","currentScrollLeft","scrollLeft","oneColumnWidth","currentColumnIndex","Math","min","max","round","newColumnIndex","offsetLeft","left","behavior","arrowOffset","useMemo","jsx","Button","$color","$rotation","$isVisible","type","onClick","children","Icon","$arrowOffset","StyleableSvgImage","width","height","src","styled","button","div"],"mappings":";;;;;;;;;;;AASA,MAAMA,IAAA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,gBAAgB,CAAC;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;"}
@@ -18,7 +18,7 @@ var StyleableSvgImage = require('../../../../StyleableSvgImage/StyleableSvgImage
18
18
  var Reveal = require('../../../../Reveal/Reveal.js');
19
19
  var context = require('../../../../../contexts/MenuContext/context.js');
20
20
  var checkIconSvg = require("../../../../../assets/check2.svg");
21
- var minusIconSvg = require("../../../../../assets/minus.svg");
21
+ var minusIconSvg = require("../../../../../assets/minus2.svg");
22
22
  var StickyGridItem = require('./StickyGrid/StickyGridItem.js');
23
23
  function _interopDefault(e) {
24
24
  return e && e.__esModule ? e : {
@@ -16,7 +16,7 @@ import { StyleableSvgImage } from '../../../../StyleableSvgImage/StyleableSvgIma
16
16
  import { Reveal } from '../../../../Reveal/Reveal.mjs';
17
17
  import { useMenu } from '../../../../../contexts/MenuContext/context.mjs';
18
18
  import checkIconSvg__default from "../../../../../assets/check2.svg";
19
- import minusIconSvg__default from "../../../../../assets/minus.svg";
19
+ import minusIconSvg__default from "../../../../../assets/minus2.svg";
20
20
  import { StickyGridItem } from './StickyGrid/StickyGridItem.mjs';
21
21
  "use strict";
22
22
  function PropertyValueGridItem({
@@ -339,12 +339,12 @@ const Button = styled__default["default"].button`
339
339
  cursor: not-allowed !important;
340
340
 
341
341
  @media ${layout.BREAKPOINTS.TABLET_AND_DOWN} {
342
- border: 1px solid rgba(73 73 73 / 0.6);
343
- background: rgba(73 73 73 / 0.6);
342
+ border: 1px solid rgb(73 73 73 / 0.6);
343
+ background: rgb(73 73 73 / 0.6);
344
344
  color: ${theme.theme.colors.white};
345
345
 
346
346
  &:hover {
347
- background: rgba(73 73 73 / 0.6);
347
+ background: rgb(73 73 73 / 0.6);
348
348
  }
349
349
  }
350
350
  `}
@@ -1 +1 @@
1
- {"version":3,"file":"ProductList.styles.js","sources":["../../../../src/components/ModelCompareV4/ProductList/ProductList.styles.tsx"],"sourcesContent":["import styled, { css, keyframes } from \"styled-components\";\n\nimport { BREAKPOINTS } from \"../../../constants/layout\";\nimport { theme } from \"../../../constants/theme\";\nimport { StyleableSvgImage } from \"../../StyleableSvgImage\";\n\nconst scrollBarHeight = 16;\nconst PRODUCT_CLICKABLE_AREA_Z_INDEX = 1;\nexport const PRODUCT_CARD_WIDTH = 205;\nexport const PRODUCT_LIST_GRID_GAP = 10;\n\nconst productCardAnimation = keyframes`\n50% {\n transform: scale(1.025);\n}\n 100% {\n box-shadow: 0 0 13px -1px rgb(33 35 39 / 0.174);\n /* we can't return to scale(1) because this creates a bug where the contents of the product card slightly shift on hover */\n transform: scale(0.999);\n }\n`;\n\nconst productGroupLineAnimation = keyframes`\n 25% {\n background: ${theme.colors.primaryBlue};\n transform: scaleY(1);\n }\n\n 50% {\n background: ${theme.colors.primaryBlue};\n transform: scaleY(1.5);\n }\n\n 70% {\n background: ${theme.colors.primaryBlue};\n transform: scaleY(1.5);\n width: 100%;\n }\n\n 100% {\n background: rgba(0, 111, 255, 0.00);\n transform: scaleY(1);\n width: 100%;\n }\n`;\n\n// seconds\nconst productGroupAnimationDuration = 0.125;\n\n// seconds\nconst productCardAnimationDuration = 0.25;\n\nexport const Wrapper = styled.div`\n position: relative;\n margin-bottom: 20px;\n`;\n\nexport const Container = styled.div<{\n $isHovering: boolean;\n $moreThanOneGroupExists: boolean;\n $isDragging: boolean;\n}>`\n overflow-x: auto;\n padding-bottom: 30px;\n scroll-behavior: smooth;\n scroll-behavior: ${({ $isDragging }) => ($isDragging ? \"unset\" : \"smooth\")};\n\n ${({ $moreThanOneGroupExists }) =>\n !$moreThanOneGroupExists &&\n css`\n padding-top: 7px;\n `}\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n /* We need the x-padding so the shadows of the cards aren't clipped */\n padding: 0 5px 24px;\n }\n\n /**\n * We cannot define padding on some of these scroll bar\n * elements. Because of this, we're defining scroll bar colors\n * with linear-gradient so users don't have to be very\n * accurate when clicking the scroll bar while keeping the\n * styles of the scroll bar slim.\n */\n\n &::-webkit-scrollbar {\n height: ${scrollBarHeight}px;\n /* at the top of this componnent's definition is a note on why we're defining colors this way */\n background-image: linear-gradient(\n to bottom,\n transparent 6px,\n #eeeff1 6px,\n #eeeff1 8px,\n transparent 8px\n );\n }\n\n &::-webkit-scrollbar-thumb {\n /* at the top of this componnent's definition is a note on why we're defining colors this way */\n background-image: linear-gradient(\n to bottom,\n transparent 6px,\n ${theme.colors.primaryBlue} 6px,\n ${theme.colors.primaryBlue} 8px,\n transparent 8px\n );\n\n ${({ $isHovering }) =>\n $isHovering &&\n css`\n /* at the top of this componnent's definition is a note on why we're defining colors this way */\n background-image: linear-gradient(\n to bottom,\n transparent 5px,\n ${theme.colors.primaryBlue} 5px,\n ${theme.colors.primaryBlue} 9px,\n transparent 9px\n );\n `}\n }\n`;\n\nexport const ProductGroupProductListContainer = styled.div`\n display: grid;\n grid-template-columns: 1fr;\n`;\n\nexport const ProductGroups = styled.div<{ $columns: number }>`\n min-width: 100%;\n display: grid;\n gap: 0 10px;\n grid-template-columns: repeat(\n ${({ $columns }) => $columns},\n ${PRODUCT_CARD_WIDTH}px\n );\n padding: 0 0 10px 10px;\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n padding-left: 0;\n }\n`;\n\nexport const ProductGroupLabelContainer = styled.div<{ $span: number }>`\n display: flex;\n grid-column: span ${({ $span }) => $span ?? 1};\n gap: 0 20px;\n`;\n\nexport const ProductGroupLabel = styled.span<{\n $isActive: boolean;\n $productGroupsSelectorExists: boolean;\n}>`\n color: #808893;\n font-size: 18px;\n font-weight: 700;\n scroll-margin-left: 10px;\n white-space: nowrap;\n\n ${({ $isActive, $productGroupsSelectorExists }) =>\n ($isActive || !$productGroupsSelectorExists) &&\n css`\n color: ${theme.colors.primaryBlue};\n `}\n`;\n\nexport const ProductGroupLabelLineContainer = styled.div`\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n`;\n\nexport const ProductGroupLabelGrayLine = styled.div`\n width: 100%;\n height: 1px;\n background: #eeeff1;\n`;\n\nexport const ProductGroupLabelLine = styled.div<{\n $isActive: boolean;\n $playAnimation: boolean;\n $productGroupsSelectorExists: boolean;\n}>`\n width: 0;\n height: 1px;\n background: #eeeff1;\n\n ${({ $isActive, $playAnimation, $productGroupsSelectorExists }) =>\n !$productGroupsSelectorExists\n ? css`\n animation: ${productGroupLineAnimation} ease-in-out 1 forwards;\n `\n : $isActive &&\n $playAnimation &&\n css`\n animation: ${productGroupLineAnimation}\n ${productGroupAnimationDuration + productCardAnimationDuration}s\n ease-in-out 1 forwards;\n `}\n`;\n\nexport const ProductList = styled.div<{\n $columns: number;\n $isDragging: boolean;\n $overflowExists: boolean;\n $moreThanOneGroupExists: boolean;\n}>`\n display: grid;\n grid-template-columns: repeat(\n ${({ $columns }) => $columns},\n ${PRODUCT_CARD_WIDTH}px\n );\n align-items: flex-end;\n gap: 0 ${PRODUCT_LIST_GRID_GAP}px;\n padding: 0 10px;\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n padding-left: 6px;\n }\n\n ${({ $overflowExists }) =>\n $overflowExists &&\n css`\n cursor: grab;\n `}\n\n ${({ $isDragging, $overflowExists }) =>\n $overflowExists &&\n $isDragging &&\n css`\n cursor: grabbing;\n `}\n\n ${({ $moreThanOneGroupExists }) =>\n !$moreThanOneGroupExists &&\n css`\n margin-top: 5px;\n `}\n`;\n\nexport const ProductCardOnClickArea = styled.div`\n position: absolute;\n z-index: ${PRODUCT_CLICKABLE_AREA_Z_INDEX};\n width: 100%;\n height: 100%;\n`;\n\nexport const Product = styled.div<{\n $isActive: boolean;\n $groupIndex: number;\n $playAnimation: boolean;\n $groupLength: number;\n $canPlayAniimation: boolean;\n $productGroupsSelectorExists: boolean;\n}>`\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-end;\n background: ${theme.colors.white};\n padding: 20px 10px;\n border-radius: 6px;\n height: 100%;\n min-height: 100%;\n -webkit-user-drag: none;\n user-select: none;\n /* can't use scale(1) because the content slightly shifts on hover */\n transform: scale(0.999);\n\n ${({\n $isActive,\n $groupIndex,\n $playAnimation,\n $groupLength,\n $canPlayAniimation,\n $productGroupsSelectorExists,\n }) =>\n !$productGroupsSelectorExists\n ? css`\n animation: ${productCardAnimation} ease-in-out 1 forwards;\n `\n : $canPlayAniimation &&\n $isActive &&\n $playAnimation &&\n css`\n animation: ${productCardAnimation} ${productCardAnimationDuration}s\n ease-in-out\n ${(productGroupAnimationDuration / $groupLength) * $groupIndex}s 1\n forwards;\n `}\n`;\n\nexport const Image = styled.img`\n -webkit-user-drag: none;\n user-select: none;\n`;\n\nexport const DescriptionButtonContainer = styled.div`\n display: flex;\n flex-direction: column;\n user-select: none;\n\n justify-content: space-between;\n flex-grow: 1;\n`;\n\nexport const Name = styled.div`\n color: #212427;\n text-align: center;\n font-size: 16px;\n font-weight: 700;\n letter-spacing: -0.32px;\n line-height: normal;\n\n display: flex;\n justify-content: center;\n`;\n\nexport const Description = styled.div`\n text-align: center;\n font-size: 14px;\n font-weight: 400;\n line-height: normal;\n letter-spacing: -0.28px;\n color: rgb(0 0 0 / 0.65);\n display: flex;\n justify-content: center;\n margin-top: 6px;\n`;\n\nexport const ButtonIcon = styled(StyleableSvgImage)<{ $isSelected: boolean }>`\n transition: transform 0.125s ease-in-out;\n ${({ $isSelected }) =>\n $isSelected &&\n css`\n transform: rotate(45deg);\n `}\n`;\n\nexport const Button = styled.button<{\n $isStaticProduct: boolean;\n $isSelected: boolean;\n $disabled: boolean;\n}>`\n align-items: center;\n background: transparent;\n border-radius: 4px;\n border: 1px solid #808893;\n color: #808893;\n cursor: pointer;\n display: flex;\n gap: 4px;\n margin: 12px auto 0;\n min-width: 110px;\n padding: 10px 15px;\n transition: 0.3s;\n z-index: ${PRODUCT_CLICKABLE_AREA_Z_INDEX};\n\n &:hover {\n background: #80889310;\n }\n\n ${({ $isSelected }) =>\n $isSelected &&\n css`\n background: ${theme.colors.primaryBlue};\n border: 1px solid ${theme.colors.primaryBlue};\n color: ${theme.colors.white};\n\n &:hover {\n background: ${theme.colors.dodgerblue};\n }\n `}\n\n ${({ $disabled }) =>\n $disabled &&\n css`\n cursor: not-allowed !important;\n\n @media ${BREAKPOINTS.TABLET_AND_DOWN} {\n border: 1px solid rgba(73 73 73 / 0.6);\n background: rgba(73 73 73 / 0.6);\n color: ${theme.colors.white};\n\n &:hover {\n background: rgba(73 73 73 / 0.6);\n }\n }\n `}\n\n ${({ $isStaticProduct }) =>\n $isStaticProduct &&\n css`\n visibility: hidden;\n pointer-events: none;\n `}\n`;\n\nexport const CopyWhiteSpace = styled.span`\n display: inline-block;\n width: 5px;\n`;\n\nexport const ButtonCopy = styled.span`\n font-size: 14px;\n font-weight: 700;\n`;\n"],"names":["scrollBarHeight","PRODUCT_CLICKABLE_AREA_Z_INDEX","PRODUCT_CARD_WIDTH","PRODUCT_LIST_GRID_GAP","productCardAnimation","keyframes","productGroupLineAnimation","theme","colors","primaryBlue","productGroupAnimationDuration","productCardAnimationDuration","Wrapper","styled","div","Container","$isDragging","$moreThanOneGroupExists","css","BREAKPOINTS","MOBILE_AND_DOWN","$isHovering","ProductGroupProductListContainer","ProductGroups","$columns","ProductGroupLabelContainer","$span","ProductGroupLabel","span","$isActive","$productGroupsSelectorExists","ProductGroupLabelLineContainer","ProductGroupLabelGrayLine","ProductGroupLabelLine","$playAnimation","ProductList","$overflowExists","ProductCardOnClickArea","Product","white","$groupIndex","$groupLength","$canPlayAniimation","Image","img","DescriptionButtonContainer","Name","Description","ButtonIcon","StyleableSvgImage","$isSelected","Button","button","dodgerblue","$disabled","TABLET_AND_DOWN","$isStaticProduct","CopyWhiteSpace","ButtonCopy"],"mappings":";;;;;;;;;;;;;;AAMA,MAAMA,eAAkB,GAAA,EAAA;AACxB,MAAMC,8BAAiC,GAAA,CAAA;AAChC,MAAMC,kBAAqB,GAAA,GAAA;AAC3B,MAAMC,qBAAwB,GAAA,EAAA;AAErC,MAAMC,oBAAuB,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A;AAAA,sBAGXhC,KAAA,CAAAA,KAAA,CAAMC,OAAO6C,UAAU;AAAA;AAAA,KAExC;;AAAA,IAED,CAAC;EAAEC;CAAU,KACbA,SACA,IAAApC,MAAA,CAAAA,GAAA;AAAA;;AAAA,eAGWC,MAAAA,CAAAA,YAAYoC,eAAe;AAAA;AAAA;AAAA,iBAGzBhD,KAAA,CAAAA,KAAA,CAAMC,OAAO+B,KAAK;;AAAA;AAAA;AAAA;AAAA;AAAA,KAM9B;;AAAA,MAEC,CAAC;EAAEiB;CAAiB,KACtBA,gBACA,IAAAtC,MAAA,CAAAA,GAAA;AAAA;AAAA;AAAA,KAGC;AAAA,CAAA;AAGE,MAAMuC,iBAAiB5C,eAAO,CAAA,SAAA,CAAA,CAAAe,IAAA;AAAA;AAAA;AAAA,CAAA;AAK9B,MAAM8B,aAAa7C,eAAO,CAAA,SAAA,CAAA,CAAAe,IAAA;AAAA;AAAA;AAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ProductList.styles.js","sources":["../../../../src/components/ModelCompareV4/ProductList/ProductList.styles.tsx"],"sourcesContent":["import styled, { css, keyframes } from \"styled-components\";\n\nimport { BREAKPOINTS } from \"../../../constants/layout\";\nimport { theme } from \"../../../constants/theme\";\nimport { StyleableSvgImage } from \"../../StyleableSvgImage\";\n\nconst scrollBarHeight = 16;\nconst PRODUCT_CLICKABLE_AREA_Z_INDEX = 1;\nexport const PRODUCT_CARD_WIDTH = 205;\nexport const PRODUCT_LIST_GRID_GAP = 10;\n\nconst productCardAnimation = keyframes`\n50% {\n transform: scale(1.025);\n}\n 100% {\n box-shadow: 0 0 13px -1px rgb(33 35 39 / 0.174);\n /* we can't return to scale(1) because this creates a bug where the contents of the product card slightly shift on hover */\n transform: scale(0.999);\n }\n`;\n\nconst productGroupLineAnimation = keyframes`\n 25% {\n background: ${theme.colors.primaryBlue};\n transform: scaleY(1);\n }\n\n 50% {\n background: ${theme.colors.primaryBlue};\n transform: scaleY(1.5);\n }\n\n 70% {\n background: ${theme.colors.primaryBlue};\n transform: scaleY(1.5);\n width: 100%;\n }\n\n 100% {\n background: rgba(0, 111, 255, 0.00);\n transform: scaleY(1);\n width: 100%;\n }\n`;\n\n// seconds\nconst productGroupAnimationDuration = 0.125;\n\n// seconds\nconst productCardAnimationDuration = 0.25;\n\nexport const Wrapper = styled.div`\n position: relative;\n margin-bottom: 20px;\n`;\n\nexport const Container = styled.div<{\n $isHovering: boolean;\n $moreThanOneGroupExists: boolean;\n $isDragging: boolean;\n}>`\n overflow-x: auto;\n padding-bottom: 30px;\n scroll-behavior: smooth;\n scroll-behavior: ${({ $isDragging }) => ($isDragging ? \"unset\" : \"smooth\")};\n\n ${({ $moreThanOneGroupExists }) =>\n !$moreThanOneGroupExists &&\n css`\n padding-top: 7px;\n `}\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n /* We need the x-padding so the shadows of the cards aren't clipped */\n padding: 0 5px 24px;\n }\n\n /**\n * We cannot define padding on some of these scroll bar\n * elements. Because of this, we're defining scroll bar colors\n * with linear-gradient so users don't have to be very\n * accurate when clicking the scroll bar while keeping the\n * styles of the scroll bar slim.\n */\n\n &::-webkit-scrollbar {\n height: ${scrollBarHeight}px;\n /* at the top of this componnent's definition is a note on why we're defining colors this way */\n background-image: linear-gradient(\n to bottom,\n transparent 6px,\n #eeeff1 6px,\n #eeeff1 8px,\n transparent 8px\n );\n }\n\n &::-webkit-scrollbar-thumb {\n /* at the top of this componnent's definition is a note on why we're defining colors this way */\n background-image: linear-gradient(\n to bottom,\n transparent 6px,\n ${theme.colors.primaryBlue} 6px,\n ${theme.colors.primaryBlue} 8px,\n transparent 8px\n );\n\n ${({ $isHovering }) =>\n $isHovering &&\n css`\n /* at the top of this componnent's definition is a note on why we're defining colors this way */\n background-image: linear-gradient(\n to bottom,\n transparent 5px,\n ${theme.colors.primaryBlue} 5px,\n ${theme.colors.primaryBlue} 9px,\n transparent 9px\n );\n `}\n }\n`;\n\nexport const ProductGroupProductListContainer = styled.div`\n display: grid;\n grid-template-columns: 1fr;\n`;\n\nexport const ProductGroups = styled.div<{ $columns: number }>`\n min-width: 100%;\n display: grid;\n gap: 0 10px;\n grid-template-columns: repeat(\n ${({ $columns }) => $columns},\n ${PRODUCT_CARD_WIDTH}px\n );\n padding: 0 0 10px 10px;\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n padding-left: 0;\n }\n`;\n\nexport const ProductGroupLabelContainer = styled.div<{ $span: number }>`\n display: flex;\n grid-column: span ${({ $span }) => $span ?? 1};\n gap: 0 20px;\n`;\n\nexport const ProductGroupLabel = styled.span<{\n $isActive: boolean;\n $productGroupsSelectorExists: boolean;\n}>`\n color: #808893;\n font-size: 18px;\n font-weight: 700;\n scroll-margin-left: 10px;\n white-space: nowrap;\n\n ${({ $isActive, $productGroupsSelectorExists }) =>\n ($isActive || !$productGroupsSelectorExists) &&\n css`\n color: ${theme.colors.primaryBlue};\n `}\n`;\n\nexport const ProductGroupLabelLineContainer = styled.div`\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n`;\n\nexport const ProductGroupLabelGrayLine = styled.div`\n width: 100%;\n height: 1px;\n background: #eeeff1;\n`;\n\nexport const ProductGroupLabelLine = styled.div<{\n $isActive: boolean;\n $playAnimation: boolean;\n $productGroupsSelectorExists: boolean;\n}>`\n width: 0;\n height: 1px;\n background: #eeeff1;\n\n ${({ $isActive, $playAnimation, $productGroupsSelectorExists }) =>\n !$productGroupsSelectorExists\n ? css`\n animation: ${productGroupLineAnimation} ease-in-out 1 forwards;\n `\n : $isActive &&\n $playAnimation &&\n css`\n animation: ${productGroupLineAnimation}\n ${productGroupAnimationDuration + productCardAnimationDuration}s\n ease-in-out 1 forwards;\n `}\n`;\n\nexport const ProductList = styled.div<{\n $columns: number;\n $isDragging: boolean;\n $overflowExists: boolean;\n $moreThanOneGroupExists: boolean;\n}>`\n display: grid;\n grid-template-columns: repeat(\n ${({ $columns }) => $columns},\n ${PRODUCT_CARD_WIDTH}px\n );\n align-items: flex-end;\n gap: 0 ${PRODUCT_LIST_GRID_GAP}px;\n padding: 0 10px;\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n padding-left: 6px;\n }\n\n ${({ $overflowExists }) =>\n $overflowExists &&\n css`\n cursor: grab;\n `}\n\n ${({ $isDragging, $overflowExists }) =>\n $overflowExists &&\n $isDragging &&\n css`\n cursor: grabbing;\n `}\n\n ${({ $moreThanOneGroupExists }) =>\n !$moreThanOneGroupExists &&\n css`\n margin-top: 5px;\n `}\n`;\n\nexport const ProductCardOnClickArea = styled.div`\n position: absolute;\n z-index: ${PRODUCT_CLICKABLE_AREA_Z_INDEX};\n width: 100%;\n height: 100%;\n`;\n\nexport const Product = styled.div<{\n $isActive: boolean;\n $groupIndex: number;\n $playAnimation: boolean;\n $groupLength: number;\n $canPlayAniimation: boolean;\n $productGroupsSelectorExists: boolean;\n}>`\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-end;\n background: ${theme.colors.white};\n padding: 20px 10px;\n border-radius: 6px;\n height: 100%;\n min-height: 100%;\n -webkit-user-drag: none;\n user-select: none;\n /* can't use scale(1) because the content slightly shifts on hover */\n transform: scale(0.999);\n\n ${({\n $isActive,\n $groupIndex,\n $playAnimation,\n $groupLength,\n $canPlayAniimation,\n $productGroupsSelectorExists,\n }) =>\n !$productGroupsSelectorExists\n ? css`\n animation: ${productCardAnimation} ease-in-out 1 forwards;\n `\n : $canPlayAniimation &&\n $isActive &&\n $playAnimation &&\n css`\n animation: ${productCardAnimation} ${productCardAnimationDuration}s\n ease-in-out\n ${(productGroupAnimationDuration / $groupLength) * $groupIndex}s 1\n forwards;\n `}\n`;\n\nexport const Image = styled.img`\n -webkit-user-drag: none;\n user-select: none;\n`;\n\nexport const DescriptionButtonContainer = styled.div`\n display: flex;\n flex-direction: column;\n user-select: none;\n\n justify-content: space-between;\n flex-grow: 1;\n`;\n\nexport const Name = styled.div`\n color: #212427;\n text-align: center;\n font-size: 16px;\n font-weight: 700;\n letter-spacing: -0.32px;\n line-height: normal;\n\n display: flex;\n justify-content: center;\n`;\n\nexport const Description = styled.div`\n text-align: center;\n font-size: 14px;\n font-weight: 400;\n line-height: normal;\n letter-spacing: -0.28px;\n color: rgb(0 0 0 / 0.65);\n display: flex;\n justify-content: center;\n margin-top: 6px;\n`;\n\nexport const ButtonIcon = styled(StyleableSvgImage)<{ $isSelected: boolean }>`\n transition: transform 0.125s ease-in-out;\n ${({ $isSelected }) =>\n $isSelected &&\n css`\n transform: rotate(45deg);\n `}\n`;\n\nexport const Button = styled.button<{\n $isStaticProduct: boolean;\n $isSelected: boolean;\n $disabled: boolean;\n}>`\n align-items: center;\n background: transparent;\n border-radius: 4px;\n border: 1px solid #808893;\n color: #808893;\n cursor: pointer;\n display: flex;\n gap: 4px;\n margin: 12px auto 0;\n min-width: 110px;\n padding: 10px 15px;\n transition: 0.3s;\n z-index: ${PRODUCT_CLICKABLE_AREA_Z_INDEX};\n\n &:hover {\n background: #80889310;\n }\n\n ${({ $isSelected }) =>\n $isSelected &&\n css`\n background: ${theme.colors.primaryBlue};\n border: 1px solid ${theme.colors.primaryBlue};\n color: ${theme.colors.white};\n\n &:hover {\n background: ${theme.colors.dodgerblue};\n }\n `}\n\n ${({ $disabled }) =>\n $disabled &&\n css`\n cursor: not-allowed !important;\n\n @media ${BREAKPOINTS.TABLET_AND_DOWN} {\n border: 1px solid rgb(73 73 73 / 0.6);\n background: rgb(73 73 73 / 0.6);\n color: ${theme.colors.white};\n\n &:hover {\n background: rgb(73 73 73 / 0.6);\n }\n }\n `}\n\n ${({ $isStaticProduct }) =>\n $isStaticProduct &&\n css`\n visibility: hidden;\n pointer-events: none;\n `}\n`;\n\nexport const CopyWhiteSpace = styled.span`\n display: inline-block;\n width: 5px;\n`;\n\nexport const ButtonCopy = styled.span`\n font-size: 14px;\n font-weight: 700;\n`;\n"],"names":["scrollBarHeight","PRODUCT_CLICKABLE_AREA_Z_INDEX","PRODUCT_CARD_WIDTH","PRODUCT_LIST_GRID_GAP","productCardAnimation","keyframes","productGroupLineAnimation","theme","colors","primaryBlue","productGroupAnimationDuration","productCardAnimationDuration","Wrapper","styled","div","Container","$isDragging","$moreThanOneGroupExists","css","BREAKPOINTS","MOBILE_AND_DOWN","$isHovering","ProductGroupProductListContainer","ProductGroups","$columns","ProductGroupLabelContainer","$span","ProductGroupLabel","span","$isActive","$productGroupsSelectorExists","ProductGroupLabelLineContainer","ProductGroupLabelGrayLine","ProductGroupLabelLine","$playAnimation","ProductList","$overflowExists","ProductCardOnClickArea","Product","white","$groupIndex","$groupLength","$canPlayAniimation","Image","img","DescriptionButtonContainer","Name","Description","ButtonIcon","StyleableSvgImage","$isSelected","Button","button","dodgerblue","$disabled","TABLET_AND_DOWN","$isStaticProduct","CopyWhiteSpace","ButtonCopy"],"mappings":";;;;;;;;;;;;;;AAMA,MAAMA,eAAkB,GAAA,EAAA;AACxB,MAAMC,8BAAiC,GAAA,CAAA;AAChC,MAAMC,kBAAqB,GAAA,GAAA;AAC3B,MAAMC,qBAAwB,GAAA,EAAA;AAErC,MAAMC,oBAAuB,GAAAC,MAAA,CAAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAW7B,MAAMC,yBAA4B,GAAAD,MAAA,CAAAA,SAAA;AAAA;AAAA,sBAEZE,KAAA,CAAAA,KAAA,CAAMC,OAAOC,WAAW;AAAA;AAAA;;AAAA;AAAA,oBAK1BF,KAAA,CAAAA,KAAA,CAAMC,OAAOC,WAAW;AAAA;AAAA;;AAAA;AAAA,oBAKxBF,KAAA,CAAAA,KAAA,CAAMC,OAAOC,WAAW;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAa5C,MAAMC,6BAAgC,GAAA,KAAA;AAGtC,MAAMC,4BAA+B,GAAA,IAAA;AAE9B,MAAMC,UAAUC,eAAO,CAAA,SAAA,CAAA,CAAA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AAO,CAAA,SAAA,CAAA,CAAAe,IAAA;AAAA;AAAA;AAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;"}
@@ -331,12 +331,12 @@ const Button = styled.button`
331
331
  cursor: not-allowed !important;
332
332
 
333
333
  @media ${BREAKPOINTS.TABLET_AND_DOWN} {
334
- border: 1px solid rgba(73 73 73 / 0.6);
335
- background: rgba(73 73 73 / 0.6);
334
+ border: 1px solid rgb(73 73 73 / 0.6);
335
+ background: rgb(73 73 73 / 0.6);
336
336
  color: ${theme.colors.white};
337
337
 
338
338
  &:hover {
339
- background: rgba(73 73 73 / 0.6);
339
+ background: rgb(73 73 73 / 0.6);
340
340
  }
341
341
  }
342
342
  `}