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

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 (328) hide show
  1. package/CHANGELOG.md +15 -1
  2. package/lib/assets/ai-turret.jpg +0 -0
  3. package/lib/assets/ai-turret2.jpg +0 -0
  4. package/lib/assets/bullet2.svg +1 -1
  5. package/lib/assets/bullet3.svg +1 -1
  6. package/lib/assets/door-hub-mini.jpg +0 -0
  7. package/lib/assets/door-hub-mini2.jpg +0 -0
  8. package/lib/assets/door-hub.jpg +0 -0
  9. package/lib/assets/door-hub2.jpg +0 -0
  10. package/lib/assets/express.jpg +0 -0
  11. package/lib/assets/express2.jpg +0 -0
  12. package/lib/assets/floodlight.svg +1 -1
  13. package/lib/assets/floodlight2.svg +1 -1
  14. package/lib/assets/g2-reader-pro.jpg +0 -0
  15. package/lib/assets/g2-reader-pro2.jpg +0 -0
  16. package/lib/assets/g2-reader.jpg +0 -0
  17. package/lib/assets/g2-reader2.jpg +0 -0
  18. package/lib/assets/g4-instant.jpg +0 -0
  19. package/lib/assets/g4-instant2.jpg +0 -0
  20. package/lib/assets/g4-ptz.jpg +0 -0
  21. package/lib/assets/g4-ptz2.jpg +0 -0
  22. package/lib/assets/g5-dome-ultra.jpg +0 -0
  23. package/lib/assets/g5-dome-ultra2.jpg +0 -0
  24. package/lib/assets/g5-dome.jpg +0 -0
  25. package/lib/assets/g5-dome2.jpg +0 -0
  26. package/lib/assets/globe.svg +1 -1
  27. package/lib/assets/globe2.svg +1 -1
  28. package/lib/assets/intercom.jpg +0 -0
  29. package/lib/assets/intercom2.jpg +0 -0
  30. package/lib/assets/interior-design.svg +1 -1
  31. package/lib/assets/interior-design2.svg +1 -1
  32. package/lib/assets/minus4.svg +1 -1
  33. package/lib/assets/minus5.svg +1 -1
  34. package/lib/assets/pause.svg +1 -1
  35. package/lib/assets/pause2.svg +1 -1
  36. package/lib/assets/plus4.svg +1 -1
  37. package/lib/assets/plus5.svg +1 -1
  38. package/lib/assets/power.svg +1 -1
  39. package/lib/assets/power2.svg +1 -1
  40. package/lib/assets/ptz2.svg +1 -1
  41. package/lib/assets/ptz3.svg +1 -1
  42. package/lib/assets/rack.svg +1 -1
  43. package/lib/assets/rack2.svg +1 -1
  44. package/lib/assets/ucgFiber.jpg +0 -0
  45. package/lib/assets/ucgFiber2.jpg +0 -0
  46. package/lib/assets/ucgMax.jpg +0 -0
  47. package/lib/assets/ucgMax2.jpg +0 -0
  48. package/lib/assets/ucgUltra.jpg +0 -0
  49. package/lib/assets/ucgUltra2.jpg +0 -0
  50. package/lib/assets/udr2.jpg +0 -0
  51. package/lib/assets/udr3.jpg +0 -0
  52. package/lib/components/Badge/Badge.styles.js +1 -1
  53. package/lib/components/Badge/Badge.styles.js.map +1 -1
  54. package/lib/components/Badge/Badge.styles.mjs +1 -1
  55. package/lib/components/Badge/Badge.styles.mjs.map +1 -1
  56. package/lib/components/ButtonGroup/ButtonGroup.styles.js +1 -1
  57. package/lib/components/ButtonGroup/ButtonGroup.styles.js.map +1 -1
  58. package/lib/components/ButtonGroup/ButtonGroup.styles.mjs +1 -1
  59. package/lib/components/ButtonGroup/ButtonGroup.styles.mjs.map +1 -1
  60. package/lib/components/CardSection/CardSection.styles.js +2 -2
  61. package/lib/components/CardSection/CardSection.styles.js.map +1 -1
  62. package/lib/components/CardSection/CardSection.styles.mjs +2 -2
  63. package/lib/components/CardSection/CardSection.styles.mjs.map +1 -1
  64. package/lib/components/GridGallery/GridModal/GridModal.styles.js +2 -2
  65. package/lib/components/GridGallery/GridModal/GridModal.styles.js.map +1 -1
  66. package/lib/components/GridGallery/GridModal/GridModal.styles.mjs +2 -2
  67. package/lib/components/GridGallery/GridModal/GridModal.styles.mjs.map +1 -1
  68. package/lib/components/Header/AccountFrame/AccountFrame.styles.js +1 -1
  69. package/lib/components/Header/AccountFrame/AccountFrame.styles.js.map +1 -1
  70. package/lib/components/Header/AccountFrame/AccountFrame.styles.mjs +1 -1
  71. package/lib/components/Header/AccountFrame/AccountFrame.styles.mjs.map +1 -1
  72. package/lib/components/Header/CartModalV2/CartModal.styles.js +1 -1
  73. package/lib/components/Header/CartModalV2/CartModal.styles.js.map +1 -1
  74. package/lib/components/Header/CartModalV2/CartModal.styles.mjs +1 -1
  75. package/lib/components/Header/CartModalV2/CartModal.styles.mjs.map +1 -1
  76. package/lib/components/Header/Header.js +1 -1
  77. package/lib/components/Header/Header.mjs +1 -1
  78. package/lib/components/Header/Header.styles.js +1 -1
  79. package/lib/components/Header/Header.styles.js.map +1 -1
  80. package/lib/components/Header/Header.styles.mjs +1 -1
  81. package/lib/components/Header/Header.styles.mjs.map +1 -1
  82. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.js +1 -1
  83. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.js.map +1 -1
  84. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.mjs +1 -1
  85. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.mjs.map +1 -1
  86. package/lib/components/Header/Overlay/Overlay.styles.js +2 -2
  87. package/lib/components/Header/Overlay/Overlay.styles.js.map +1 -1
  88. package/lib/components/Header/Overlay/Overlay.styles.mjs +2 -2
  89. package/lib/components/Header/Overlay/Overlay.styles.mjs.map +1 -1
  90. package/lib/components/Header/ProHeader/ProHeader.js +1 -1
  91. package/lib/components/Header/ProHeader/ProHeader.mjs +1 -1
  92. package/lib/components/ImageCarousel/ImageCarousel.styles.js +1 -1
  93. package/lib/components/ImageCarousel/ImageCarousel.styles.js.map +1 -1
  94. package/lib/components/ImageCarousel/ImageCarousel.styles.mjs +1 -1
  95. package/lib/components/ImageCarousel/ImageCarousel.styles.mjs.map +1 -1
  96. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.styles.js +2 -2
  97. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.styles.js.map +1 -1
  98. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.styles.mjs +2 -2
  99. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.styles.mjs.map +1 -1
  100. package/lib/components/MicrositeBanner/MicrositeBanner.styles.js +1 -1
  101. package/lib/components/MicrositeBanner/MicrositeBanner.styles.js.map +1 -1
  102. package/lib/components/MicrositeBanner/MicrositeBanner.styles.mjs +1 -1
  103. package/lib/components/MicrositeBanner/MicrositeBanner.styles.mjs.map +1 -1
  104. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.styles.js +2 -2
  105. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.styles.js.map +1 -1
  106. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.styles.mjs +2 -2
  107. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.styles.mjs.map +1 -1
  108. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.js +1 -1
  109. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.js.map +1 -1
  110. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.mjs +1 -1
  111. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.mjs.map +1 -1
  112. package/lib/components/MicrositeHeader/components/HeaderContent/HeaderContent.js +1 -1
  113. package/lib/components/MicrositeHeader/components/HeaderContent/HeaderContent.mjs +1 -1
  114. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +1 -1
  115. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.mjs +1 -1
  116. package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.js +1 -1
  117. package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.mjs +2 -2
  118. package/lib/components/MobileModal/MobileModal.styles.js +2 -2
  119. package/lib/components/MobileModal/MobileModal.styles.js.map +1 -1
  120. package/lib/components/MobileModal/MobileModal.styles.mjs +2 -2
  121. package/lib/components/MobileModal/MobileModal.styles.mjs.map +1 -1
  122. package/lib/components/ModelCompareV3/ModelCompareOverflowScrollButton.js +2 -2
  123. package/lib/components/ModelCompareV3/ModelCompareOverflowScrollButton.js.map +1 -1
  124. package/lib/components/ModelCompareV3/ModelCompareOverflowScrollButton.mjs +2 -2
  125. package/lib/components/ModelCompareV3/ModelCompareOverflowScrollButton.mjs.map +1 -1
  126. package/lib/components/ModelCompareV3/ProductGroupsGrid.js +2 -2
  127. package/lib/components/ModelCompareV3/ProductGroupsGrid.js.map +1 -1
  128. package/lib/components/ModelCompareV3/ProductGroupsGrid.mjs +2 -2
  129. package/lib/components/ModelCompareV3/ProductGroupsGrid.mjs.map +1 -1
  130. package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/CompareTableOverflowScrollButton.js +2 -2
  131. package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/CompareTableOverflowScrollButton.js.map +1 -1
  132. package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/CompareTableOverflowScrollButton.mjs +2 -2
  133. package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/CompareTableOverflowScrollButton.mjs.map +1 -1
  134. package/lib/components/ModelCompareV4/ProductList/ProductList.styles.js +3 -3
  135. package/lib/components/ModelCompareV4/ProductList/ProductList.styles.js.map +1 -1
  136. package/lib/components/ModelCompareV4/ProductList/ProductList.styles.mjs +3 -3
  137. package/lib/components/ModelCompareV4/ProductList/ProductList.styles.mjs.map +1 -1
  138. package/lib/components/ModelCompareV4/ProductList/components/ScrollButton/ScrollButton.styles.js +2 -2
  139. package/lib/components/ModelCompareV4/ProductList/components/ScrollButton/ScrollButton.styles.js.map +1 -1
  140. package/lib/components/ModelCompareV4/ProductList/components/ScrollButton/ScrollButton.styles.mjs +2 -2
  141. package/lib/components/ModelCompareV4/ProductList/components/ScrollButton/ScrollButton.styles.mjs.map +1 -1
  142. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +2 -2
  143. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
  144. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
  145. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
  146. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
  147. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
  148. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +2 -2
  149. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
  150. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
  151. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
  152. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
  153. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
  154. package/lib/components/ScrollWrapper/ScrollWrapper.styles.js +2 -2
  155. package/lib/components/ScrollWrapper/ScrollWrapper.styles.js.map +1 -1
  156. package/lib/components/ScrollWrapper/ScrollWrapper.styles.mjs +2 -2
  157. package/lib/components/ScrollWrapper/ScrollWrapper.styles.mjs.map +1 -1
  158. package/lib/components/StaticModal/StaticModal.styles.js +5 -5
  159. package/lib/components/StaticModal/StaticModal.styles.js.map +1 -1
  160. package/lib/components/StaticModal/StaticModal.styles.mjs +5 -5
  161. package/lib/components/StaticModal/StaticModal.styles.mjs.map +1 -1
  162. package/lib/components/VideoPlayerNew/VideoPlayer.js +1 -1
  163. package/lib/components/VideoPlayerNew/VideoPlayer.mjs +1 -1
  164. package/lib/components/VideoPlayerNew/assets/pause.svg.js +1 -1
  165. package/lib/components/VideoPlayerNew/assets/pause.svg.mjs +2 -2
  166. package/lib/constants/icons/header/globe.svg.js +1 -1
  167. package/lib/constants/icons/header/globe.svg.mjs +2 -2
  168. package/lib/constants/icons/header/index.js +1 -1
  169. package/lib/constants/icons/header/index.mjs +1 -1
  170. package/lib/constants/icons/menu/floodlight.svg.js +5 -5
  171. package/lib/constants/icons/menu/floodlight.svg.mjs +2 -2
  172. package/lib/constants/icons/menu/index.js +9 -9
  173. package/lib/constants/icons/menu/index.mjs +3 -3
  174. package/lib/constants/icons/menu/power.svg.js +5 -5
  175. package/lib/constants/icons/menu/power.svg.mjs +2 -2
  176. package/lib/constants/icons/menu/rack.svg.js +5 -5
  177. package/lib/constants/icons/menu/rack.svg.mjs +2 -2
  178. package/lib/constants/mixin.js +10 -10
  179. package/lib/constants/mixin.js.map +1 -1
  180. package/lib/constants/mixin.mjs +10 -10
  181. package/lib/constants/mixin.mjs.map +1 -1
  182. package/lib/constants/modelCompareData/assets/Bullet/bullet.svg.js +1 -1
  183. package/lib/constants/modelCompareData/assets/Bullet/bullet.svg.mjs +2 -2
  184. package/lib/constants/modelCompareData/assets/Compact/g4-instant.jpg.js +1 -1
  185. package/lib/constants/modelCompareData/assets/Compact/g4-instant.jpg.mjs +2 -2
  186. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/express.jpg.js +5 -5
  187. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/express.jpg.mjs +2 -2
  188. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/ucgFiber.jpg.js +5 -5
  189. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/ucgFiber.jpg.mjs +2 -2
  190. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/ucgMax.jpg.js +5 -5
  191. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/ucgMax.jpg.mjs +2 -2
  192. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/ucgUltra.jpg.js +5 -5
  193. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/ucgUltra.jpg.mjs +2 -2
  194. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/udr.jpg.js +5 -5
  195. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/udr.jpg.mjs +2 -2
  196. package/lib/constants/modelCompareData/assets/Consoles/express.jpg.js +1 -1
  197. package/lib/constants/modelCompareData/assets/Consoles/express.jpg.mjs +2 -2
  198. package/lib/constants/modelCompareData/assets/Consoles/ucgFiber.jpg.js +1 -1
  199. package/lib/constants/modelCompareData/assets/Consoles/ucgFiber.jpg.mjs +2 -2
  200. package/lib/constants/modelCompareData/assets/Consoles/ucgMax.jpg.js +1 -1
  201. package/lib/constants/modelCompareData/assets/Consoles/ucgMax.jpg.mjs +2 -2
  202. package/lib/constants/modelCompareData/assets/Consoles/ucgUltra.jpg.js +1 -1
  203. package/lib/constants/modelCompareData/assets/Consoles/ucgUltra.jpg.mjs +2 -2
  204. package/lib/constants/modelCompareData/assets/Consoles/udr.jpg.js +1 -1
  205. package/lib/constants/modelCompareData/assets/Consoles/udr.jpg.mjs +2 -2
  206. package/lib/constants/modelCompareData/assets/DomeTurret/ai-turret.jpg.js +1 -1
  207. package/lib/constants/modelCompareData/assets/DomeTurret/ai-turret.jpg.mjs +2 -2
  208. package/lib/constants/modelCompareData/assets/DomeTurret/g5-dome-ultra.jpg.js +1 -1
  209. package/lib/constants/modelCompareData/assets/DomeTurret/g5-dome-ultra.jpg.mjs +2 -2
  210. package/lib/constants/modelCompareData/assets/DomeTurret/g5-dome.jpg.js +1 -1
  211. package/lib/constants/modelCompareData/assets/DomeTurret/g5-dome.jpg.mjs +2 -2
  212. package/lib/constants/modelCompareData/assets/DoorAccess/door-hub-mini.jpg.js +1 -1
  213. package/lib/constants/modelCompareData/assets/DoorAccess/door-hub-mini.jpg.mjs +2 -2
  214. package/lib/constants/modelCompareData/assets/DoorAccess/door-hub.jpg.js +1 -1
  215. package/lib/constants/modelCompareData/assets/DoorAccess/door-hub.jpg.mjs +2 -2
  216. package/lib/constants/modelCompareData/assets/DoorAccess/g2-reader-pro.jpg.js +1 -1
  217. package/lib/constants/modelCompareData/assets/DoorAccess/g2-reader-pro.jpg.mjs +2 -2
  218. package/lib/constants/modelCompareData/assets/DoorAccess/g2-reader.jpg.js +1 -1
  219. package/lib/constants/modelCompareData/assets/DoorAccess/g2-reader.jpg.mjs +2 -2
  220. package/lib/constants/modelCompareData/assets/DoorAccess/intercom.jpg.js +1 -1
  221. package/lib/constants/modelCompareData/assets/DoorAccess/intercom.jpg.mjs +2 -2
  222. package/lib/constants/modelCompareData/assets/PTZ/g4-ptz.jpg.js +1 -1
  223. package/lib/constants/modelCompareData/assets/PTZ/g4-ptz.jpg.mjs +2 -2
  224. package/lib/constants/modelCompareData/assets/floodlight.svg.js +1 -1
  225. package/lib/constants/modelCompareData/assets/floodlight.svg.mjs +2 -2
  226. package/lib/constants/modelCompareData/assets/globe.svg.js +1 -1
  227. package/lib/constants/modelCompareData/assets/globe.svg.mjs +2 -2
  228. package/lib/constants/modelCompareData/assets/interior-design.svg.js +1 -1
  229. package/lib/constants/modelCompareData/assets/interior-design.svg.mjs +2 -2
  230. package/lib/constants/modelCompareData/assets/power.svg.js +1 -1
  231. package/lib/constants/modelCompareData/assets/power.svg.mjs +2 -2
  232. package/lib/constants/modelCompareData/assets/product-list-assets/bullet.svg.js +1 -1
  233. package/lib/constants/modelCompareData/assets/product-list-assets/bullet.svg.mjs +2 -2
  234. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/compact/g4-instant.jpg.js +1 -1
  235. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/compact/g4-instant.jpg.mjs +2 -2
  236. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/ai-turret.jpg.js +1 -1
  237. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/ai-turret.jpg.mjs +2 -2
  238. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-dome-ultra.jpg.js +1 -1
  239. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-dome-ultra.jpg.mjs +2 -2
  240. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-dome.jpg.js +1 -1
  241. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-dome.jpg.mjs +2 -2
  242. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/door-hub-mini.jpg.js +1 -1
  243. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/door-hub-mini.jpg.mjs +2 -2
  244. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/door-hub.jpg.js +1 -1
  245. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/door-hub.jpg.mjs +2 -2
  246. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g2-reader-pro.jpg.js +1 -1
  247. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g2-reader-pro.jpg.mjs +2 -2
  248. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g2-reader.jpg.js +1 -1
  249. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g2-reader.jpg.mjs +2 -2
  250. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/intercom.jpg.js +1 -1
  251. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/intercom.jpg.mjs +2 -2
  252. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/ptz/g4-ptz.jpg.js +1 -1
  253. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/ptz/g4-ptz.jpg.mjs +2 -2
  254. package/lib/constants/modelCompareData/assets/product-list-assets/interior-design.svg.js +1 -1
  255. package/lib/constants/modelCompareData/assets/product-list-assets/interior-design.svg.mjs +2 -2
  256. package/lib/constants/modelCompareData/assets/product-list-assets/ptz.svg.js +1 -1
  257. package/lib/constants/modelCompareData/assets/product-list-assets/ptz.svg.mjs +2 -2
  258. package/lib/constants/modelCompareData/assets/ptz.svg.js +1 -1
  259. package/lib/constants/modelCompareData/assets/ptz.svg.mjs +2 -2
  260. package/lib/constants/modelCompareData/assets/rack.svg.js +1 -1
  261. package/lib/constants/modelCompareData/assets/rack.svg.mjs +2 -2
  262. package/lib/constants/modelCompareData/data/CloudGateways.js +9 -9
  263. package/lib/constants/modelCompareData/data/CloudGateways.mjs +6 -6
  264. package/lib/constants/modelCompareData/data/DreamMachineConsolev4.js +12 -12
  265. package/lib/constants/modelCompareData/data/DreamMachineConsolev4.mjs +8 -8
  266. package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Bullet.js +1 -1
  267. package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Bullet.mjs +1 -1
  268. package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/InteriorDesign.js +1 -1
  269. package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/InteriorDesign.mjs +1 -1
  270. package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Ptz.js +1 -1
  271. package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Ptz.mjs +1 -1
  272. package/lib/constants/modelCompareData/data/product-list-groups/bullet.js +1 -1
  273. package/lib/constants/modelCompareData/data/product-list-groups/bullet.mjs +1 -1
  274. package/lib/constants/modelCompareData/data/product-list-groups/interiorDesign.js +1 -1
  275. package/lib/constants/modelCompareData/data/product-list-groups/interiorDesign.mjs +1 -1
  276. package/lib/constants/modelCompareData/data/product-list-groups/ptz.js +1 -1
  277. package/lib/constants/modelCompareData/data/product-list-groups/ptz.mjs +1 -1
  278. package/lib/constants/modelCompareData/data/products/aiTurret.js +2 -2
  279. package/lib/constants/modelCompareData/data/products/aiTurret.mjs +2 -2
  280. package/lib/constants/modelCompareData/data/products/doorHub.js +2 -2
  281. package/lib/constants/modelCompareData/data/products/doorHub.mjs +2 -2
  282. package/lib/constants/modelCompareData/data/products/doorHubMini.js +2 -2
  283. package/lib/constants/modelCompareData/data/products/doorHubMini.mjs +2 -2
  284. package/lib/constants/modelCompareData/data/products/express.js +1 -1
  285. package/lib/constants/modelCompareData/data/products/express.mjs +1 -1
  286. package/lib/constants/modelCompareData/data/products/g2Reader.js +2 -2
  287. package/lib/constants/modelCompareData/data/products/g2Reader.mjs +2 -2
  288. package/lib/constants/modelCompareData/data/products/g2ReaderPro.js +2 -2
  289. package/lib/constants/modelCompareData/data/products/g2ReaderPro.mjs +2 -2
  290. package/lib/constants/modelCompareData/data/products/g4Instant.js +2 -2
  291. package/lib/constants/modelCompareData/data/products/g4Instant.mjs +2 -2
  292. package/lib/constants/modelCompareData/data/products/g4Ptz.js +2 -2
  293. package/lib/constants/modelCompareData/data/products/g4Ptz.mjs +2 -2
  294. package/lib/constants/modelCompareData/data/products/g5Dome.js +2 -2
  295. package/lib/constants/modelCompareData/data/products/g5Dome.mjs +2 -2
  296. package/lib/constants/modelCompareData/data/products/g5DomeUltra.js +2 -2
  297. package/lib/constants/modelCompareData/data/products/g5DomeUltra.mjs +2 -2
  298. package/lib/constants/modelCompareData/data/products/intercom.js +2 -2
  299. package/lib/constants/modelCompareData/data/products/intercom.mjs +2 -2
  300. package/lib/constants/modelCompareData/data/products/ucgFiber.js +1 -1
  301. package/lib/constants/modelCompareData/data/products/ucgFiber.mjs +1 -1
  302. package/lib/constants/modelCompareData/data/products/ucgMax.js +1 -1
  303. package/lib/constants/modelCompareData/data/products/ucgMax.mjs +1 -1
  304. package/lib/constants/modelCompareData/data/products/ucgUltra.js +1 -1
  305. package/lib/constants/modelCompareData/data/products/ucgUltra.mjs +1 -1
  306. package/lib/constants/modelCompareData/data/products/udr.js +1 -1
  307. package/lib/constants/modelCompareData/data/products/udr.mjs +1 -1
  308. package/lib/constants/modelCompareData/data/properties/accessPowerMethod.js +1 -1
  309. package/lib/constants/modelCompareData/data/properties/accessPowerMethod.mjs +1 -1
  310. package/lib/constants/modelCompareData/data/properties/availability.js +1 -1
  311. package/lib/constants/modelCompareData/data/properties/availability.mjs +1 -1
  312. package/lib/constants/modelCompareData/data/properties/builtInFloodlight.js +1 -1
  313. package/lib/constants/modelCompareData/data/properties/builtInFloodlight.mjs +1 -1
  314. package/lib/constants/modelCompareData/data/properties/dcPowerOutput.js +1 -1
  315. package/lib/constants/modelCompareData/data/properties/dcPowerOutput.mjs +1 -1
  316. package/lib/constants/modelCompareData/data/properties/mounting.js +1 -1
  317. package/lib/constants/modelCompareData/data/properties/mounting.mjs +1 -1
  318. package/lib/constants/modelCompareData/data/properties/webMode.js +1 -1
  319. package/lib/constants/modelCompareData/data/properties/webMode.mjs +1 -1
  320. package/lib/constants/proStoreCategories/mapping/index.js +1 -1
  321. package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
  322. package/lib/constants/proStoreCategories/mapping/index.mjs +1 -1
  323. package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
  324. package/lib/contexts/MenuContext/mapping.js +3 -3
  325. package/lib/contexts/MenuContext/mapping.mjs +2 -2
  326. package/lib/contexts/MicrositeMenuContext/mapping.js +3 -3
  327. package/lib/contexts/MicrositeMenuContext/mapping.mjs +2 -2
  328. package/package.json +1 -1
@@ -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;I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A,EAAO,EAAI;QAAAC,MAAA,EAAQ,EAAI;QAAA/B,GAAA,EAAKF;OAAM;IACvD,CAAA;EAAA,CACF,CAAA;AAEJ;AAEA,MAAMyB,SAASS,eAAO,CAAA,SAAA,CAAA,CAAAC,MAAA;AAAA;AAAA;AAAA,aAOT,CAAC;EAAE7C;AAAA,CAAiB,KAAAA,SAAA,GAAY,IAAI,CAAE;AAAA,oBAC/B,CAAC;EAAEA;AAAA,CAAiB,KAAAA,SAAA,GAAY,SAAS,MAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAO9D,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,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,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AA;QAAAC,KAAA,EAAO,EAAI;QAAAC,MAAA,EAAQ,EAAI;QAAA/B,GAAA,EAAKF;OAAM;IACvD,CAAA;EAAA,CACF,CAAA;AAEJ;AAEA,MAAMyB,SAASS,eAAO,CAAA,SAAA,CAAA,CAAAC,MAAA;AAAA;AAAA;AAAA,aAOT,CAAC;EAAE7C;AAAA,CAAiB,KAAAA,SAAA,GAAY,IAAI,CAAE;AAAA,oBAC/B,CAAC;EAAEA;AAAA,CAAiB,KAAAA,SAAA,GAAY,SAAS,MAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAO9D,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,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,GAA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AzB,WAAA;IAET0B,QAAC,EAAA,eAAAL,GAAA,CAAAM,IAAA,EAAA;MAAKJ,QAAU,EAAAlC,eAAA;MAAiB8B,WAC/B;MAAAO,QAAA,EAAA,eAAAL,GAAA,CAACO,iBAAkB,EAAA;QAAAC,KAAA,EAAO,EAAI;QAAAC,MAAA,EAAQ,EAAI;QAAA/B,GAAA,EAAKF;OAAM;IACvD,CAAA;EAAA,CACF,CAAA;AAEJ;AAEA,MAAMyB,SAASS,MAAO,CAAAC,MAAA;AAAA;AAAA;AAAA,aAOT,CAAC;EAAE7C;AAAA,CAAiB,KAAAA,SAAA,GAAY,IAAI,CAAE;AAAA,oBAC/B,CAAC;EAAEA;AAAA,CAAiB,KAAAA,SAAA,GAAY,SAAS,MAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAO9D,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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,EAAA;QAAAC,KAAA,EAAO,EAAI;QAAAC,MAAA,EAAQ,EAAI;QAAA/B,GAAA,EAAKF;OAAM;IACvD,CAAA;EAAA,CACF,CAAA;AAEJ;AAEA,MAAMyB,SAASS,MAAO,CAAAC,MAAA;AAAA;AAAA;AAAA,aAOT,CAAC;EAAE7C;AAAA,CAAiB,KAAAA,SAAA,GAAY,IAAI,CAAE;AAAA,oBAC/B,CAAC;EAAEA;AAAA,CAAiB,KAAAA,SAAA,GAAY,SAAS,MAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAO9D,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;"}
@@ -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,CAAA;EAAA,CACnD,EAAG,CAACP,QAAQ,CAAC,CAAA;EAEP,MAAAQ,WAAA,GAAcJ,KAAAA,CAAAA,QAAQ,MAAM;IAChC,MAAMK,SAAgE,EAAC;IAEvE,IAAIC,OAAmC,GAAA;MACrCH,YAAc,EAAA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
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;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,CAA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AOS,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,CAAA;IAAA;IAGrB,OAAOD,OAAOM,MAAO,CAACC,KAAM,CAAC,CAACA,EAAEL,IAAI,CAAA;EAAA,CACtC,EAAG,CAACR,gBAAgB,CAAC,CAAA;EAMnB,OAAA,eAAAc,GAAA,CAACC;IAAcC,OAAS,EAAAnB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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,CAACC,KAAM,CAAC,CAACA,EAAEL,IAAI,CAAA;EAAA,CACtC,EAAG,CAACR,gBAAgB,CAAC,CAAA;EAMnB,OAAA,eAAAc,GAAA,CAACC;IAAcC,OAAS,EAAAnB,QAAA,CAASoB;IAC9BC,QAAY,EAAAb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A;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;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;IACp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C,UAAY,EAAAtC,SAAA;IACZuC,IAAK,EAAA,QAAA;IACLC,OAAS,EAAA3B,WAAA;IAET4B,QAAC,EAAA,eAAAP,UAAA,CAAAA,GAAA,CAAAQ,IAAA,EAAA;MAAKL,SAAW,EAAAnC,eAAA;MAAiByC,cAAcX,WAC9C;MAAAS,QAAA,EAAA,eAAAP,UAAA,CAAAA,GAAA,CAACU,mCAAkB,EAAA;QAAAC,KAAA,EAAO,EAAI;QAAAC,MAAA,EAAQ,EAAI;QAAAC,GAAA,EAAKnD;OAAM;IACvD,CAAA;EAAA,CACF,CAAA;AAEJ;AAEA,MAAMuC,SAASa,eAAO,CAAA,SAAA,CAAA,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,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;"}
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","sty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;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;EAG/C,MAAAC,WAAA,GAAcC,YAAY,MAAM;IACpC,MAAMC,aAAgB,GAAAP,mBAAA,CAAoBQ,OAAU,GAAA,CAAC,GAAGC,SAAU,CAAAD,OAAA;IAElE,IAAI,CAACD,aAAe,EAAA;MAClB;IAAA;IAGF,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C,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,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,EAA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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,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,CAAAC,GAAA;AAAA;AAAA;AAAA,CAAA;AAKvB,MAAMC,YAAYF,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA,qBAQX,CAAC;EAAEE;AAAA,CAAmB,KAAAA,WAAA,GAAc,UAAU,QAAS;;AAAA,IAExE,CAAC;EAAEC;CAAwB,KAC3B,CAACA,uBACD,IAAAC,MAAA,CAAAA,GAAA;AAAA;AAAA,KAEC;;AAAA,WAEMC,MAAAA,CAAAA,YAAYC,eAAe;AA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AAA,CAAA,CAAAuC,MAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAiBhBnD,8BAA8B;;AAAA;AAAA;AAAA;;AAAA,IAMvC,CAAC;EAAEiD;CAAY,KACfA,WACA,IAAAhC,MAAA,CAAAA,GAAA;AAAA,oBACgBX,KAAA,CAAAA,KAAA,CAAMC,OAAOC,WAAW;AAAA,0BAClBF,KAAA,CAAAA,KAAA,CAAMC,OAAOC,WAAW;AAAA,eACnCF,KAAA,CAAAA,KAAA,CAAMC,OAAO+B,KAAK;;AAAA;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;AA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;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;;;;;;;;;;;;;;;;;;;;;;"}
@@ -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
  `}
@@ -1 +1 @@
1
- {"version":3,"file":"ProductList.styles.mjs","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,GAAAC,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAW7B,MAAMC,yBAA4B,GAAAD,SAAA;AAAA;AAAA,sBAEZE,KAAA,CAAMC,OAAOC,WAAW;AAAA;AAAA;;AAAA;AAAA,oBAK1BF,KAAA,CAAMC,OAAOC,WAAW;AAAA;AAAA;;AAAA;AAAA,oBAKxBF,KAAA,CAAMC,OAAOC,WAAW;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA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8BAA8B;;AAAA;AAAA;AAAA;;AAAA,IAMvC,CAAC;EAAEiD;CAAY,KACfA,WACA,IAAAhC,GAAA;AAAA,oBACgBX,KAAA,CAAMC,OAAOC,WAAW;AAAA,0BAClBF,KAAA,CAAMC,OAAOC,WAAW;AAAA,eACnCF,KAAA,CAAMC,OAAO+B,KAAK;;AAAA;AAAA,sBAGXhC,KAAA,CAAMC,OAAO6C,UAAU;AAAA;AAAA,KAExC;;AAAA,IAED,CAAC;EAAEC;CAAU,KACbA,SACA,IAAApC,GAAA;AAAA;;AAAA,eAGWC,YAAYoC,eAAe;AAAA;AAAA;AAAA,iBAGzBhD,KAAA,CAAMC,OAAO+B,KAAK;;AAAA;AAAA;AAAA;AAAA;AAAA,KAM9B;;AAAA,MAEC,CAAC;EAAEiB;CAAiB,KACtBA,gBACA,IAAAtC,GAAA;AAAA;AAAA;AAAA,KAGC;AAAA,CAAA;AAGE,MAAMuC,iBAAiB5C,MAAO,CAAAe,IAAA;AAAA;AAAA;AAAA,CAAA;AAK9B,MAAM8B,aAAa7C,MAAO,CAAAe,IAAA;AAAA;AAAA;AAAA,CAAA;"}
1
+ {"version":3,"file":"ProductList.styles.mjs","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,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAW7B,MAAMC,yBAA4B,GAAAD,SAAA;AAAA;AAAA,sBAEZE,KAAA,CAAMC,OAAOC,WAAW;AAAA;AAAA;;AAAA;AAAA,oBAK1BF,KAAA,CAAMC,OAAOC,WAAW;AAAA;AAAA;;AAAA;AAAA,oBAKxBF,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,MAAO,CAAAC,GA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W;AAAA,0BAClBF,KAAA,CAAMC,OAAOC,WAAW;AAAA,eACnCF,KAAA,CAAMC,OAAO+B,KAAK;;AAAA;AAAA,sBAGXhC,KAAA,CAAMC,OAAO6C,UAAU;AAAA;AAAA,KAExC;;AAAA,IAED,CAAC;EAAEC;CAAU,KACbA,SACA,IAAApC,GAAA;AAAA;;AAAA,eAGWC,YAAYoC,eAAe;AAAA;AAAA;AAAA,iBAGzBhD,KAAA,CAAMC,OAAO+B,KAAK;;AAAA;AAAA;AAAA;AAAA;AAAA,KAM9B;;AAAA,MAEC,CAAC;EAAEiB;CAAiB,KACtBA,gBACA,IAAAtC,GAAA;AAAA;AAAA;AAAA,KAGC;AAAA,CAAA;AAGE,MAAMuC,iBAAiB5C,MAAO,CAAAe,IAAA;AAAA;AAAA;AAAA,CAAA;AAK9B,MAAM8B,aAAa7C,MAAO,CAAAe,IAAA;AAAA;AAAA;AAAA,CAAA;"}
@@ -67,8 +67,8 @@ const Icon = styled__default["default"].div`
67
67
  width: 44px;
68
68
 
69
69
  border-radius: 50%;
70
- background: rgba(255 255 255 / 0.8);
71
- box-shadow: 0 0 10px 0 rgba(0 0 0 / 0.25);
70
+ background: rgb(255 255 255 / 0.8);
71
+ box-shadow: 0 0 10px 0 rgb(0 0 0 / 0.25);
72
72
  backdrop-filter: blur(2px);
73
73
  color: #808893;
74
74
  `;
@@ -1 +1 @@
1
- {"version":3,"file":"ScrollButton.styles.js","sources":["../../../../../../src/components/ModelCompareV4/ProductList/components/ScrollButton/ScrollButton.styles.tsx"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nconst BUTTON_X_OFFSET = 100;\n\nexport const Button = styled.button<{\n $isVisible: boolean;\n $rotation: number;\n $color: string;\n $isRightButton: boolean;\n $placeButtonsOverCards: boolean;\n}>`\n position: absolute;\n left: -${({ $placeButtonsOverCards }) =>\n $placeButtonsOverCards ? 0 : BUTTON_X_OFFSET}px;\n top: 0;\n z-index: 3;\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 ${({ $isRightButton, $placeButtonsOverCards }) =>\n $isRightButton &&\n css`\n left: unset;\n right: -${$placeButtonsOverCards ? 0 : BUTTON_X_OFFSET}px;\n `}\n`;\n\nexport const 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":["BUTTON_X_OFFSET","Button","styled","button","$placeButtonsOverCards","$isVisible","$rotation","$color","$isRightButton","css","Icon","div","rotation","arrowOffset"],"mappings":";;;;;;;;;;AAEA,MAAMA,eAAkB,GAAA,GAAA;AAEjB,MAAMC,SAASC,eAAO,CAAA,SAAA,CAAA,CAAAC,MAAA;AAAA;AAAA,WAQlB,CAAC;EAAEC;AAAA,CACR,KAAAA,sBAAA,GAAyB,IAAIJ,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA,aAKrC,CAAC;EAAEK;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;EAAEC;CAAU,KAAMA,YAAY,EAAE;AAAA,MACjC,CAAC;EAAEC;AAAO,CAAA,KAAMA,MAAM;AAAA;AAAA;AAAA,iBAGX,CAAC;EAAEA;MAChBA,MAAW,KAAA,OAAA,GAAU,mBAAmB,MAAM;AAAA;;AAAA,IAG9C,CAAC;EAAEC,cAAgB;EAAAJ;MACnBI,cACA,IAAAC,MAAA,CAAAA,GAAA;AAAA;AAAA,gBAEYL,sBAAA,GAAyB,IAAIJ,eAAe;AAAA,KACvD;AAAA,CAAA;AAGE,MAAMU,OAAOR,eAAO,CAAA,SAAA,CAAA,CAAAS,GAAA;AAAA,sBACL,CAAC;EAAEC;AAAS,CAAA,KAAMA,QAAQ;AAAA,iBAC/B,CAAC;EAAEC;CAAY,KAAMA,eAAe,CAAC;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;"}
1
+ {"version":3,"file":"ScrollButton.styles.js","sources":["../../../../../../src/components/ModelCompareV4/ProductList/components/ScrollButton/ScrollButton.styles.tsx"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nconst BUTTON_X_OFFSET = 100;\n\nexport const Button = styled.button<{\n $isVisible: boolean;\n $rotation: number;\n $color: string;\n $isRightButton: boolean;\n $placeButtonsOverCards: boolean;\n}>`\n position: absolute;\n left: -${({ $placeButtonsOverCards }) =>\n $placeButtonsOverCards ? 0 : BUTTON_X_OFFSET}px;\n top: 0;\n z-index: 3;\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 ${({ $isRightButton, $placeButtonsOverCards }) =>\n $isRightButton &&\n css`\n left: unset;\n right: -${$placeButtonsOverCards ? 0 : BUTTON_X_OFFSET}px;\n `}\n`;\n\nexport const 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":["BUTTON_X_OFFSET","Button","styled","button","$placeButtonsOverCards","$isVisible","$rotation","$color","$isRightButton","css","Icon","div","rotation","arrowOffset"],"mappings":";;;;;;;;;;AAEA,MAAMA,eAAkB,GAAA,GAAA;AAEjB,MAAMC,SAASC,eAAO,CAAA,SAAA,CAAA,CAAAC,MAAA;AAAA;AAAA,WAQlB,CAAC;EAAEC;AAAA,CACR,KAAAA,sBAAA,GAAyB,IAAIJ,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA,aAKrC,CAAC;EAAEK;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;EAAEC;CAAU,KAAMA,YAAY,EAAE;AAAA,MACjC,CAAC;EAAEC;AAAO,CAAA,KAAMA,MAAM;AAAA;AAAA;AAAA,iBAGX,CAAC;EAAEA;MAChBA,MAAW,KAAA,OAAA,GAAU,mBAAmB,MAAM;AAAA;;AAAA,IAG9C,CAAC;EAAEC,cAAgB;EAAAJ;MACnBI,cACA,IAAAC,MAAA,CAAAA,GAAA;AAAA;AAAA,gBAEYL,sBAAA,GAAyB,IAAIJ,eAAe;AAAA,KACvD;AAAA,CAAA;AAGE,MAAMU,OAAOR,eAAO,CAAA,SAAA,CAAA,CAAAS,GAAA;AAAA,sBACL,CAAC;EAAEC;AAAS,CAAA,KAAMA,QAAQ;AAAA,iBAC/B,CAAC;EAAEC;CAAY,KAAMA,eAAe,CAAC;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;"}
@@ -59,8 +59,8 @@ const Icon = styled.div`
59
59
  width: 44px;
60
60
 
61
61
  border-radius: 50%;
62
- background: rgba(255 255 255 / 0.8);
63
- box-shadow: 0 0 10px 0 rgba(0 0 0 / 0.25);
62
+ background: rgb(255 255 255 / 0.8);
63
+ box-shadow: 0 0 10px 0 rgb(0 0 0 / 0.25);
64
64
  backdrop-filter: blur(2px);
65
65
  color: #808893;
66
66
  `;
@@ -1 +1 @@
1
- {"version":3,"file":"ScrollButton.styles.mjs","sources":["../../../../../../src/components/ModelCompareV4/ProductList/components/ScrollButton/ScrollButton.styles.tsx"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nconst BUTTON_X_OFFSET = 100;\n\nexport const Button = styled.button<{\n $isVisible: boolean;\n $rotation: number;\n $color: string;\n $isRightButton: boolean;\n $placeButtonsOverCards: boolean;\n}>`\n position: absolute;\n left: -${({ $placeButtonsOverCards }) =>\n $placeButtonsOverCards ? 0 : BUTTON_X_OFFSET}px;\n top: 0;\n z-index: 3;\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 ${({ $isRightButton, $placeButtonsOverCards }) =>\n $isRightButton &&\n css`\n left: unset;\n right: -${$placeButtonsOverCards ? 0 : BUTTON_X_OFFSET}px;\n `}\n`;\n\nexport const 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":["BUTTON_X_OFFSET","Button","styled","button","$placeButtonsOverCards","$isVisible","$rotation","$color","$isRightButton","css","Icon","div","rotation","arrowOffset"],"mappings":";;AAEA,MAAMA,eAAkB,GAAA,GAAA;AAEjB,MAAMC,SAASC,MAAO,CAAAC,MAAA;AAAA;AAAA,WAQlB,CAAC;EAAEC;AAAA,CACR,KAAAA,sBAAA,GAAyB,IAAIJ,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA,aAKrC,CAAC;EAAEK;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;EAAEC;CAAU,KAAMA,YAAY,EAAE;AAAA,MACjC,CAAC;EAAEC;AAAO,CAAA,KAAMA,MAAM;AAAA;AAAA;AAAA,iBAGX,CAAC;EAAEA;MAChBA,MAAW,KAAA,OAAA,GAAU,mBAAmB,MAAM;AAAA;;AAAA,IAG9C,CAAC;EAAEC,cAAgB;EAAAJ;MACnBI,cACA,IAAAC,GAAA;AAAA;AAAA,gBAEYL,sBAAA,GAAyB,IAAIJ,eAAe;AAAA,KACvD;AAAA,CAAA;AAGE,MAAMU,OAAOR,MAAO,CAAAS,GAAA;AAAA,sBACL,CAAC;EAAEC;AAAS,CAAA,KAAMA,QAAQ;AAAA,iBAC/B,CAAC;EAAEC;CAAY,KAAMA,eAAe,CAAC;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;"}
1
+ {"version":3,"file":"ScrollButton.styles.mjs","sources":["../../../../../../src/components/ModelCompareV4/ProductList/components/ScrollButton/ScrollButton.styles.tsx"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nconst BUTTON_X_OFFSET = 100;\n\nexport const Button = styled.button<{\n $isVisible: boolean;\n $rotation: number;\n $color: string;\n $isRightButton: boolean;\n $placeButtonsOverCards: boolean;\n}>`\n position: absolute;\n left: -${({ $placeButtonsOverCards }) =>\n $placeButtonsOverCards ? 0 : BUTTON_X_OFFSET}px;\n top: 0;\n z-index: 3;\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 ${({ $isRightButton, $placeButtonsOverCards }) =>\n $isRightButton &&\n css`\n left: unset;\n right: -${$placeButtonsOverCards ? 0 : BUTTON_X_OFFSET}px;\n `}\n`;\n\nexport const 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":["BUTTON_X_OFFSET","Button","styled","button","$placeButtonsOverCards","$isVisible","$rotation","$color","$isRightButton","css","Icon","div","rotation","arrowOffset"],"mappings":";;AAEA,MAAMA,eAAkB,GAAA,GAAA;AAEjB,MAAMC,SAASC,MAAO,CAAAC,MAAA;AAAA;AAAA,WAQlB,CAAC;EAAEC;AAAA,CACR,KAAAA,sBAAA,GAAyB,IAAIJ,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA,aAKrC,CAAC;EAAEK;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;EAAEC;CAAU,KAAMA,YAAY,EAAE;AAAA,MACjC,CAAC;EAAEC;AAAO,CAAA,KAAMA,MAAM;AAAA;AAAA;AAAA,iBAGX,CAAC;EAAEA;MAChBA,MAAW,KAAA,OAAA,GAAU,mBAAmB,MAAM;AAAA;;AAAA,IAG9C,CAAC;EAAEC,cAAgB;EAAAJ;MACnBI,cACA,IAAAC,GAAA;AAAA;AAAA,gBAEYL,sBAAA,GAAyB,IAAIJ,eAAe;AAAA,KACvD;AAAA,CAAA;AAGE,MAAMU,OAAOR,MAAO,CAAAS,GAAA;AAAA,sBACL,CAAC;EAAEC;AAAS,CAAA,KAAMA,QAAQ;AAAA,iBAC/B,CAAC;EAAEC;CAAY,KAAMA,eAAe,CAAC;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;"}
@@ -11,8 +11,8 @@ require('../assets/plus.svg.js');
11
11
  var Layout_styles = require('./Layout.styles.js');
12
12
  var CustomImage = require('../../../../../CustomImage/CustomImage.js');
13
13
  var StyleableSvgImage = require('../../../../../StyleableSvgImage/StyleableSvgImage.js');
14
- var MinusIcon = require("../../../../../../assets/minus5.svg");
15
- var PlusIcon = require("../../../../../../assets/plus5.svg");
14
+ var MinusIcon = require("../../../../../../assets/minus4.svg");
15
+ var PlusIcon = require("../../../../../../assets/plus4.svg");
16
16
  function _interopDefault(e) {
17
17
  return e && e.__esModule ? e : {
18
18
  default: e
@@ -9,8 +9,8 @@ import '../assets/plus.svg.mjs';
9
9
  import { InputWrapper, Label, InputFlexWrapper } from './Layout.styles.mjs';
10
10
  import { CustomImage } from '../../../../../CustomImage/CustomImage.mjs';
11
11
  import { StyleableSvgImage } from '../../../../../StyleableSvgImage/StyleableSvgImage.mjs';
12
- import MinusIcon__default from "../../../../../../assets/minus5.svg";
13
- import PlusIcon__default from "../../../../../../assets/plus5.svg";
12
+ import MinusIcon__default from "../../../../../../assets/minus4.svg";
13
+ import PlusIcon__default from "../../../../../../assets/plus4.svg";
14
14
  "use strict";
15
15
  const CounterSection = ({
16
16
  value,
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var MinusIcon = require("../../../../../../assets/minus5.svg");
6
+ var MinusIcon = require("../../../../../../assets/minus4.svg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
@@ -1,3 +1,3 @@
1
- export * from "../../../../../../assets/minus5.svg";
2
- export { default } from "../../../../../../assets/minus5.svg";
1
+ export * from "../../../../../../assets/minus4.svg";
2
+ export { default } from "../../../../../../assets/minus4.svg";
3
3
  //# sourceMappingURL=minus.svg.mjs.map