@ubnt/store.core 11.0.5-alpha.0 → 11.0.5-alpha.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 (175) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/lib/assets/ai-dome.jpg +0 -0
  3. package/lib/assets/ai-dome2.jpg +0 -0
  4. package/lib/assets/ai-lpr.jpg +0 -0
  5. package/lib/assets/ai-lpr2.jpg +0 -0
  6. package/lib/assets/bullet2.svg +2 -4
  7. package/lib/assets/bullet3.svg +4 -2
  8. package/lib/assets/compact.svg +2 -2
  9. package/lib/assets/compact2.svg +2 -2
  10. package/lib/assets/door-hub-mini.jpg +0 -0
  11. package/lib/assets/door-hub-mini2.jpg +0 -0
  12. package/lib/assets/door-hub.jpg +0 -0
  13. package/lib/assets/door-hub2.jpg +0 -0
  14. package/lib/assets/g2-reader-pro.jpg +0 -0
  15. package/lib/assets/g2-reader-pro2.jpg +0 -0
  16. package/lib/assets/g3-reader-pro.jpg +0 -0
  17. package/lib/assets/g3-reader-pro2.jpg +0 -0
  18. package/lib/assets/g3-starter-kit-pro.jpg +0 -0
  19. package/lib/assets/g3-starter-kit-pro2.jpg +0 -0
  20. package/lib/assets/g3-starter-kit.jpg +0 -0
  21. package/lib/assets/g3-starter-kit2.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-turret-ultra.jpg +0 -0
  25. package/lib/assets/g5-turret-ultra2.jpg +0 -0
  26. package/lib/assets/minus4.svg +8 -8
  27. package/lib/assets/minus5.svg +8 -8
  28. package/lib/assets/ptz2.svg +2 -2
  29. package/lib/assets/ptz3.svg +2 -2
  30. package/lib/assets/udmPro.jpg +0 -0
  31. package/lib/assets/udmPro2.jpg +0 -0
  32. package/lib/assets/udmProMax.jpg +0 -0
  33. package/lib/assets/udmProMax2.jpg +0 -0
  34. package/lib/assets/udmProSpecial.jpg +0 -0
  35. package/lib/assets/udmProSpecial2.jpg +0 -0
  36. package/lib/assets/udr2.jpg +0 -0
  37. package/lib/assets/udr3.jpg +0 -0
  38. package/lib/assets/udr7.jpg +0 -0
  39. package/lib/assets/udr72.jpg +0 -0
  40. package/lib/components/ModelCompareV4/CompareTable/CompareTable.styles.d.ts +1 -0
  41. package/lib/components/ModelCompareV4/CompareTable/CompareTable.styles.js +7 -0
  42. package/lib/components/ModelCompareV4/CompareTable/CompareTable.styles.js.map +1 -1
  43. package/lib/components/ModelCompareV4/CompareTable/CompareTable.styles.mjs +7 -0
  44. package/lib/components/ModelCompareV4/CompareTable/CompareTable.styles.mjs.map +1 -1
  45. package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/ProductHeader/ProductHeader.js +17 -1
  46. package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/ProductHeader/ProductHeader.js.map +1 -1
  47. package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/ProductHeader/ProductHeader.mjs +17 -1
  48. package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/ProductHeader/ProductHeader.mjs.map +1 -1
  49. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +1 -1
  50. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +1 -1
  51. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
  52. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
  53. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +1 -1
  54. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +1 -1
  55. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
  56. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
  57. package/lib/constants/modelCompareData/assets/Bullet/ai-lpr.jpg.js +1 -1
  58. package/lib/constants/modelCompareData/assets/Bullet/ai-lpr.jpg.mjs +2 -2
  59. package/lib/constants/modelCompareData/assets/Bullet/bullet.svg.js +1 -1
  60. package/lib/constants/modelCompareData/assets/Bullet/bullet.svg.mjs +2 -2
  61. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
  62. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
  63. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
  64. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
  65. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
  66. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
  67. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/udr.jpg.js +5 -5
  68. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/udr.jpg.mjs +2 -2
  69. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/udr7.jpg.js +5 -5
  70. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/udr7.jpg.mjs +2 -2
  71. package/lib/constants/modelCompareData/assets/Consoles/udmPro.jpg.js +1 -1
  72. package/lib/constants/modelCompareData/assets/Consoles/udmPro.jpg.mjs +2 -2
  73. package/lib/constants/modelCompareData/assets/Consoles/udmProMax.jpg.js +1 -1
  74. package/lib/constants/modelCompareData/assets/Consoles/udmProMax.jpg.mjs +2 -2
  75. package/lib/constants/modelCompareData/assets/Consoles/udmProSpecial.jpg.js +1 -1
  76. package/lib/constants/modelCompareData/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
  77. package/lib/constants/modelCompareData/assets/Consoles/udr.jpg.js +1 -1
  78. package/lib/constants/modelCompareData/assets/Consoles/udr.jpg.mjs +2 -2
  79. package/lib/constants/modelCompareData/assets/Consoles/udr7.jpg.js +1 -1
  80. package/lib/constants/modelCompareData/assets/Consoles/udr7.jpg.mjs +2 -2
  81. package/lib/constants/modelCompareData/assets/DomeTurret/ai-dome.jpg.js +1 -1
  82. package/lib/constants/modelCompareData/assets/DomeTurret/ai-dome.jpg.mjs +2 -2
  83. package/lib/constants/modelCompareData/assets/DomeTurret/g5-dome-ultra.jpg.js +1 -1
  84. package/lib/constants/modelCompareData/assets/DomeTurret/g5-dome-ultra.jpg.mjs +2 -2
  85. package/lib/constants/modelCompareData/assets/DomeTurret/g5-turret-ultra.jpg.js +1 -1
  86. package/lib/constants/modelCompareData/assets/DomeTurret/g5-turret-ultra.jpg.mjs +2 -2
  87. package/lib/constants/modelCompareData/assets/DoorAccess/door-hub-mini.jpg.js +1 -1
  88. package/lib/constants/modelCompareData/assets/DoorAccess/door-hub-mini.jpg.mjs +2 -2
  89. package/lib/constants/modelCompareData/assets/DoorAccess/door-hub.jpg.js +1 -1
  90. package/lib/constants/modelCompareData/assets/DoorAccess/door-hub.jpg.mjs +2 -2
  91. package/lib/constants/modelCompareData/assets/DoorAccess/g2-reader-pro.jpg.js +1 -1
  92. package/lib/constants/modelCompareData/assets/DoorAccess/g2-reader-pro.jpg.mjs +2 -2
  93. package/lib/constants/modelCompareData/assets/DoorAccess/g3-reader-pro.jpg.js +1 -1
  94. package/lib/constants/modelCompareData/assets/DoorAccess/g3-reader-pro.jpg.mjs +2 -2
  95. package/lib/constants/modelCompareData/assets/DoorAccess/g3-starter-kit-pro.jpg.js +1 -1
  96. package/lib/constants/modelCompareData/assets/DoorAccess/g3-starter-kit-pro.jpg.mjs +2 -2
  97. package/lib/constants/modelCompareData/assets/DoorAccess/g3-starter-kit.jpg.js +1 -1
  98. package/lib/constants/modelCompareData/assets/DoorAccess/g3-starter-kit.jpg.mjs +2 -2
  99. package/lib/constants/modelCompareData/assets/compact.svg.js +1 -1
  100. package/lib/constants/modelCompareData/assets/compact.svg.mjs +2 -2
  101. package/lib/constants/modelCompareData/assets/product-list-assets/bullet.svg.js +1 -1
  102. package/lib/constants/modelCompareData/assets/product-list-assets/bullet.svg.mjs +2 -2
  103. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/ai-lpr.jpg.js +1 -1
  104. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/ai-lpr.jpg.mjs +2 -2
  105. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/ai-dome.jpg.js +1 -1
  106. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/ai-dome.jpg.mjs +2 -2
  107. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-dome-ultra.jpg.js +1 -1
  108. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-dome-ultra.jpg.mjs +2 -2
  109. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-turret-ultra.jpg.js +1 -1
  110. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-turret-ultra.jpg.mjs +2 -2
  111. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/door-hub-mini.jpg.js +1 -1
  112. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/door-hub-mini.jpg.mjs +2 -2
  113. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/door-hub.jpg.js +1 -1
  114. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/door-hub.jpg.mjs +2 -2
  115. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g2-reader-pro.jpg.js +1 -1
  116. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g2-reader-pro.jpg.mjs +2 -2
  117. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g3-reader-pro.jpg.js +1 -1
  118. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g3-reader-pro.jpg.mjs +2 -2
  119. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g3-starter-kit-pro.jpg.js +1 -1
  120. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g3-starter-kit-pro.jpg.mjs +2 -2
  121. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g3-starter-kit.jpg.js +1 -1
  122. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g3-starter-kit.jpg.mjs +2 -2
  123. package/lib/constants/modelCompareData/assets/product-list-assets/compact.svg.js +1 -1
  124. package/lib/constants/modelCompareData/assets/product-list-assets/compact.svg.mjs +2 -2
  125. package/lib/constants/modelCompareData/assets/product-list-assets/ptz.svg.js +1 -1
  126. package/lib/constants/modelCompareData/assets/product-list-assets/ptz.svg.mjs +2 -2
  127. package/lib/constants/modelCompareData/assets/ptz.svg.js +1 -1
  128. package/lib/constants/modelCompareData/assets/ptz.svg.mjs +2 -2
  129. package/lib/constants/modelCompareData/data/CloudGateways.js +12 -12
  130. package/lib/constants/modelCompareData/data/CloudGateways.mjs +8 -8
  131. package/lib/constants/modelCompareData/data/DreamMachineConsolev4.js +12 -12
  132. package/lib/constants/modelCompareData/data/DreamMachineConsolev4.mjs +8 -8
  133. package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Bullet.js +1 -1
  134. package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Bullet.mjs +1 -1
  135. package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Compact.js +1 -1
  136. package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Compact.mjs +1 -1
  137. package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Ptz.js +1 -1
  138. package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Ptz.mjs +1 -1
  139. package/lib/constants/modelCompareData/data/product-list-groups/bullet.js +1 -1
  140. package/lib/constants/modelCompareData/data/product-list-groups/bullet.mjs +1 -1
  141. package/lib/constants/modelCompareData/data/product-list-groups/compact.js +1 -1
  142. package/lib/constants/modelCompareData/data/product-list-groups/compact.mjs +1 -1
  143. package/lib/constants/modelCompareData/data/product-list-groups/ptz.js +1 -1
  144. package/lib/constants/modelCompareData/data/product-list-groups/ptz.mjs +1 -1
  145. package/lib/constants/modelCompareData/data/products/aiDome.js +2 -2
  146. package/lib/constants/modelCompareData/data/products/aiDome.mjs +2 -2
  147. package/lib/constants/modelCompareData/data/products/aiLpr.js +2 -2
  148. package/lib/constants/modelCompareData/data/products/aiLpr.mjs +2 -2
  149. package/lib/constants/modelCompareData/data/products/doorHub.js +2 -2
  150. package/lib/constants/modelCompareData/data/products/doorHub.mjs +2 -2
  151. package/lib/constants/modelCompareData/data/products/doorHubMini.js +2 -2
  152. package/lib/constants/modelCompareData/data/products/doorHubMini.mjs +2 -2
  153. package/lib/constants/modelCompareData/data/products/g2ReaderPro.js +2 -2
  154. package/lib/constants/modelCompareData/data/products/g2ReaderPro.mjs +2 -2
  155. package/lib/constants/modelCompareData/data/products/g3ReaderPro.js +2 -2
  156. package/lib/constants/modelCompareData/data/products/g3ReaderPro.mjs +2 -2
  157. package/lib/constants/modelCompareData/data/products/g3StarterKit.js +2 -2
  158. package/lib/constants/modelCompareData/data/products/g3StarterKit.mjs +2 -2
  159. package/lib/constants/modelCompareData/data/products/g3StarterKitPro.js +2 -2
  160. package/lib/constants/modelCompareData/data/products/g3StarterKitPro.mjs +2 -2
  161. package/lib/constants/modelCompareData/data/products/g5DomeUltra.js +2 -2
  162. package/lib/constants/modelCompareData/data/products/g5DomeUltra.mjs +2 -2
  163. package/lib/constants/modelCompareData/data/products/g5TurretUltra.js +2 -2
  164. package/lib/constants/modelCompareData/data/products/g5TurretUltra.mjs +2 -2
  165. package/lib/constants/modelCompareData/data/products/udmPro.js +1 -1
  166. package/lib/constants/modelCompareData/data/products/udmPro.mjs +1 -1
  167. package/lib/constants/modelCompareData/data/products/udmProMax.js +1 -1
  168. package/lib/constants/modelCompareData/data/products/udmProMax.mjs +1 -1
  169. package/lib/constants/modelCompareData/data/products/udmProSpecial.js +1 -1
  170. package/lib/constants/modelCompareData/data/products/udmProSpecial.mjs +1 -1
  171. package/lib/constants/modelCompareData/data/products/udr.js +1 -1
  172. package/lib/constants/modelCompareData/data/products/udr.mjs +1 -1
  173. package/lib/constants/modelCompareData/data/products/udr7.js +1 -1
  174. package/lib/constants/modelCompareData/data/products/udr7.mjs +1 -1
  175. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"CompareTable.styles.mjs","sources":["../../../../src/components/ModelCompareV4/CompareTable/CompareTable.styles.tsx"],"sourcesContent":["import styled, { createGlobalStyle, css } from \"styled-components\";\n\nimport { BREAKPOINTS } from \"../../../constants/layout\";\nimport { theme } from \"../../../constants/theme\";\nimport type { LanguageDirectionType } from \"../../../contexts/MenuContext/utils\";\nimport { Badge as BadgeBase } from \"../../Badge\";\nimport { Button as ButtonBase } from \"../../Button\";\nimport { StyleableSvgImage } from \"../../StyleableSvgImage\";\nimport { StickyGridItem } from \"./CompareTableMarkup/components/StickyGrid\";\n\nexport const MOBILE_BREAKPOINT = 650;\n\nexport const TOOLTIP_CLASS_NAME = `model-compare-tooltip`;\nexport const PRODUCT_HEADER_TOOLTIP_CLASSNAME =\n \"model-compare-product-header-tooltip\";\n\nexport const PlaceholderGridItem = styled(StickyGridItem)`\n background: ${theme.colors.white};\n z-index: 3;\n`;\n\nexport const CenterPlaceholderGridItem = styled(StickyGridItem)``;\n\nexport const HEADER_GRID_ITEM_Y_PADDING = 16;\n\nexport const HEADER_GRID_ITEM_GAP_DESKTOP = 24;\nexport const HEADER_GRID_ITEM_GAP_MOBILE = 12;\n\nexport const ProductHeaderTooltipStyles = styled.div`\n position: relative;\n .${PRODUCT_HEADER_TOOLTIP_CLASSNAME} {\n box-shadow: 0 8px 24px 0 #00000014;\n width: 175px;\n font-size: 12px;\n line-height: 16px;\n font-weight: 700;\n padding: 10px 20px;\n margin-top: -1.5px;\n background: white;\n\n &::before {\n box-shadow: 0 8px 24px 0 #00000014;\n background: white;\n }\n }\n`;\n\n// This expands the hoverable area of the tooltip so users can move their mouse casually to the tooltip\nexport const ProductHeaderTooltipHoverArea = styled.div<{\n $width: number | undefined;\n}>`\n position: absolute;\n bottom: 0;\n right: 50%;\n transform: translateX(50%);\n width: ${({ $width }) => $width ?? 175}px;\n height: 35px;\n`;\n\nexport const ProductHeaderTooltipLink = styled.a`\n color: ${theme.colors.primaryBlue};\n\n &:hover {\n color: ${theme.colors.primaryBlue};\n }\n`;\n\nexport const HeaderGridItem = styled(StickyGridItem)`\n background: ${theme.colors.white};\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n text-align: center;\n padding: ${HEADER_GRID_ITEM_Y_PADDING}px 0;\n gap: ${HEADER_GRID_ITEM_GAP_DESKTOP}px;\n position: relative;\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n gap: ${HEADER_GRID_ITEM_GAP_MOBILE}px;\n /* Need this padding-top so sticky offset looks good on mobile */\n padding: 25px 0 0;\n }\n`;\n\nexport const EmptyHeaderGridItem = styled(HeaderGridItem)`\n align-items: center;\n justify-content: center;\n`;\n\nexport const EmptyHeaderEmptyProductDescription = styled.div<{\n $headerItemsAreSticking: boolean;\n}>`\n width: 100%;\n height: 100%;\n\n ${({ $headerItemsAreSticking }) =>\n $headerItemsAreSticking &&\n css`\n display: none;\n `}\n`;\n\nexport const HeaderGridItemContainer = styled.div<{ $isStuck: boolean }>`\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n`;\n\nexport const RemoveProductButton = styled.button<{ $isSmallScreen: boolean }>`\n position: absolute;\n top: 25px;\n right: 25px;\n background: transparent;\n border: none;\n padding: 5px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 30px;\n color: #c2c6cb;\n\n ${({ $isSmallScreen }) =>\n $isSmallScreen &&\n css`\n top: 0;\n right: 4%;\n `}\n`;\n\nexport const ProductMeta = styled.div`\n position: relative;\n display: flex;\n flex-direction: column;\n flex: 1;\n align-items: center;\n width: 100%;\n padding: 0 10px;\n\n @media (max-width: ${MOBILE_BREAKPOINT}px) {\n &::before {\n display: none;\n }\n &::after {\n display: none;\n }\n }\n`;\n\nconst productTitleStyles = css`\n font-size: 16px;\n font-weight: 700;\n line-height: normal;\n letter-spacing: -0.32px;\n`;\n\nexport const ProductTitle = styled.div`\n ${productTitleStyles}\n\n color: ${theme.colors.black};\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n font-size: 14px;\n }\n`;\n\nexport const ProductTitleLink = styled(ButtonBase)`\n ${productTitleStyles}\n color: ${theme.colors.primaryBlue};\n\n :focus,\n :hover {\n text-decoration: none;\n }\n\n :focus {\n color: ${theme.colors.primaryBlue};\n }\n`;\n\nexport const ProductDescription = styled.div<{\n $maxWidth?: number;\n $direction: LanguageDirectionType;\n}>`\n font-size: 14px;\n font-weight: 400;\n line-height: normal;\n margin-top: 6px;\n letter-spacing: -0.24px;\n color: ${theme.colors.black65};\n max-width: ${({ $maxWidth }) => ($maxWidth ? `${$maxWidth}px` : \"auto\")};\n direction: ${({ $direction }) => $direction && `${$direction}`};\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n margin: 4px auto 12px;\n font-size: 12px;\n }\n`;\n\nexport const SelectFromAboveIsStuckContainer = styled.div<{\n $isStuck: boolean;\n}>`\n display: none;\n flex-direction: column;\n height: 100%;\n justify-content: center;\n align-items: center;\n\n ${({ $isStuck }) =>\n $isStuck &&\n css`\n display: flex;\n `}\n`;\n\nexport const SelectFromAboveIsStuck = styled(ProductDescription)`\n margin: 0;\n`;\n\nexport const ProductNote = styled.div`\n color: ${theme.colors.black45};\n font-size: ${theme.font.size10};\n line-height: 16.8px;\n margin-top: 6px;\n text-align: center;\n`;\n\nexport const Badge = styled(BadgeBase)`\n margin: 10px 0 20px;\n`;\n\nexport const BadgeWrapper = styled.div`\n margin-top: auto;\n display: flex;\n gap: 10px;\n`;\n\nexport const PropertyTitleGridItem = styled(StickyGridItem)`\n display: flex;\n align-items: center;\n justify-content: flex-start;\n border-bottom: 1px solid ${theme.colors.athensGreyDark};\n background: ${theme.colors.white};\n z-index: 1;\n overflow: hidden;\n`;\n\nexport const EmptyPropertyTitleGridItem = styled(StickyGridItem)`\n background: ${theme.colors.white};\n`;\n\nexport const PropertyTitleGridItemContent = styled(StickyGridItem)`\n display: flex;\n align-items: center;\n justify-content: flex-start;\n padding: 16px 16px 16px 8px;\n width: 100%;\n gap: 8px;\n overflow: hidden;\n`;\n\nexport const PropertyTitle = styled.div`\n font-size: 14px;\n font-weight: ${theme.fontWeight.bold};\n color: ${theme.colors.black65};\n line-height: 16.8px;\n letter-spacing: -0.28px;\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n font-size: 12px;\n line-height: 14px;\n }\n`;\n\nexport const PropertyIcon = styled.div`\n width: 30px;\n height: 30px;\n color: ${theme.colors.shark};\n`;\n\nexport const SelectFromAboveIconCopyContainer = styled.div<{\n $isStuck: boolean;\n}>`\n display: flex;\n flex-direction: column;\n align-items: center;\n opacity: 1;\n\n ${({ $isStuck }) =>\n $isStuck &&\n css`\n opacity: 0;\n `}\n`;\n\nexport const ProductImage = styled.img`\n max-width: 100%;\n max-height: 100%;\n object-fit: contain;\n -webkit-user-drag: none;\n`;\n\nexport const ProductImageWrap = styled.div<{ height: number }>`\n height: ${({ height }) => `${height}px`};\n display: flex;\n`;\n\nexport const PropertyTooltip = styled.div`\n height: 20px;\n`;\n\nexport const PropertyTooltipContent = styled.div`\n color: #fafafa;\n font-size: 12px;\n\n a {\n color: ${theme.colors.primaryBlue};\n }\n`;\n\nexport const TooltipIcon = styled(StyleableSvgImage)`\n color: ${theme.colors.primaryBlue};\n`;\n\nexport const ButtonWrap = styled.div`\n padding: 16px 0;\n display: flex;\n align-items: center;\n justify-content: center;\n`;\n\nconst buttonStyles = css`\n padding: 10px 15px;\n line-height: 20px;\n font-weight: ${theme.fontWeight.bold};\n margin: auto;\n :focus,\n :hover {\n text-decoration: none;\n }\n\n > * {\n position: static;\n }\n`;\n\nexport const Button = styled(ButtonBase)<{ $removePointerEvents: boolean }>`\n ${buttonStyles};\n\n ${({ $removePointerEvents }) =>\n $removePointerEvents &&\n css`\n pointer-events: none;\n `}\n`;\n\n// TODO: remove if not used anywhere else in store.core\nexport const ComingSoon = styled(ButtonBase)`\n ${buttonStyles};\n\n cursor: default;\n color: #445178;\n\n :focus,\n :hover {\n color: #445178;\n }\n`;\n\nexport const NotesWrap = styled.div`\n padding: 16px 10px 10px;\n text-wrap: pretty;\n display: flex;\n flex-direction: column;\n align-items: center;\n`;\n\nexport const Note = styled.div`\n font-size: 10px;\n line-height: ${17 / 10};\n color: ${theme.colors.black45};\n text-align: center;\n`;\n\nexport const FootnotesWrap = styled.div`\n padding: 0 0 16px;\n display: flex;\n flex-direction: column;\n align-items: center;\n`;\n\nexport const Footnote = styled.div`\n font-size: 10px;\n line-height: ${17 / 10};\n color: ${theme.colors.black45};\n text-align: center;\n`;\n\nexport const KitIncluded = styled.div`\n font-size: 14px;\n font-weight: 400;\n letter-spacing: -0.28px;\n line-height: 16.8px;\n color: ${theme.colors.black65};\n`;\n\nexport const TooltipStyles = createGlobalStyle<{ maxWidth?: number }>`\n .${TOOLTIP_CLASS_NAME} {\n box-shadow: 0 8px 24px 0 #00000014;\n max-width: ${({ maxWidth }) => maxWidth ?? 200}px;\n font-size: 12px;\n line-height: 16px;\n font-weight: 400;\n padding: 8px 16px;\n margin-top: -1.5px;\n\n &::before {\n box-shadow: 0 8px 24px 0 #00000014;\n }\n }\n`;\n"],"names":["MOBILE_BREAKPOINT","TOOLTIP_CLASS_NAME","PRODUCT_HEADER_TOOLTIP_CLASSNAME","PlaceholderGridItem","styled","StickyGridItem","theme","colors","white","CenterPlaceholderGridItem","HEADER_GRID_ITEM_Y_PADDING","HEADER_GRID_ITEM_GAP_DESKTOP","HEADER_GRID_ITEM_GAP_MOBILE","ProductHeaderTooltipStyles","div","ProductHeaderTooltipHoverArea","$width","ProductHeaderTooltipLink","a","primaryBlue","HeaderGridItem","BREAKPOINTS","MOBILE_AND_DOWN","EmptyHeaderGridItem","EmptyHeaderEmptyProductDescription","$headerItemsAreSticking","css","HeaderGridItemContainer","RemoveProductButton","button","$isSmallScreen","ProductMeta","productTitleStyles","ProductTitle","black","ProductTitleLink","ButtonBase","ProductDescription","black65","$maxWidth","$direction","SelectFromAboveIsStuckContainer","$isStuck","SelectFromAboveIsStuck","ProductNote","black45","font","size10","Badge","BadgeBase","BadgeWrapper","PropertyTitleGridItem","athensGreyDark","EmptyPropertyTitleGridItem","PropertyTitleGridItemContent","PropertyTitle","fontWeight","bold","PropertyIcon","shark","SelectFromAboveIconCopyContainer","ProductImage","img","ProductImageWrap","height","PropertyTooltip","PropertyTooltipContent","TooltipIcon","StyleableSvgImage","ButtonWrap","buttonStyles","Button","$removePointerEvents","ComingSoon","NotesWrap","Note","FootnotesWrap","Footnote","KitIncluded","TooltipStyles","createGlobalStyle","maxWidth"],"mappings":";;;;;;;;;;;;AAUO,MAAMA,iBAAoB,GAAA,GAAA;AAE1B,MAAMC,kBAAqB,GAAA,uBAAA;AAC3B,MAAMC,gCACX,GAAA,sCAAA;AAEW,MAAAC,mBAAA,GAAsBC,OAAOC,cAAc,CAAA;AAAA,gBACxCC,KAAA,CAAMC,OAAOC,KAAK;AAAA;AAAA,CAAA;AAIrB,MAAAC,yBAAA,GAA4BL,OAAOC,cAAc,CAAA,EAAA;AAEvD,MAAMK,0BAA6B,GAAA,EAAA;AAEnC,MAAMC,4BAA+B,GAAA,EAAA;AACrC,MAAMC,2BAA8B,GAAA,EAAA;AAEpC,MAAMC,6BAA6BT,MAAO,CAAAU,GAAA;AAAA;AAAA,KAE5CZ,gCAAgC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAkB9B,MAA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AAA;AAGxB,MAAMyC,aAAgB,GAAAC,iBAAA;AAAA,KACxB/E,kBAAkB;AAAA;AAAA,iBAEN,CAAC;EAAEgF;CAAS,KAAMA,YAAY,GAAG;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;"}
1
+ {"version":3,"file":"CompareTable.styles.mjs","sources":["../../../../src/components/ModelCompareV4/CompareTable/CompareTable.styles.tsx"],"sourcesContent":["import styled, { createGlobalStyle, css } from \"styled-components\";\n\nimport { BREAKPOINTS } from \"../../../constants/layout\";\nimport { theme } from \"../../../constants/theme\";\nimport type { LanguageDirectionType } from \"../../../contexts/MenuContext/utils\";\nimport { Badge as BadgeBase } from \"../../Badge\";\nimport { Button as ButtonBase } from \"../../Button\";\nimport { StyleableSvgImage } from \"../../StyleableSvgImage\";\nimport { StickyGridItem } from \"./CompareTableMarkup/components/StickyGrid\";\n\nexport const MOBILE_BREAKPOINT = 650;\n\nexport const TOOLTIP_CLASS_NAME = `model-compare-tooltip`;\nexport const PRODUCT_HEADER_TOOLTIP_CLASSNAME =\n \"model-compare-product-header-tooltip\";\n\nexport const PlaceholderGridItem = styled(StickyGridItem)`\n background: ${theme.colors.white};\n z-index: 3;\n`;\n\nexport const CenterPlaceholderGridItem = styled(StickyGridItem)``;\n\nexport const HEADER_GRID_ITEM_Y_PADDING = 16;\n\nexport const HEADER_GRID_ITEM_GAP_DESKTOP = 24;\nexport const HEADER_GRID_ITEM_GAP_MOBILE = 12;\n\nexport const ProductHeaderTooltipStyles = styled.div`\n position: relative;\n .${PRODUCT_HEADER_TOOLTIP_CLASSNAME} {\n box-shadow: 0 8px 24px 0 #00000014;\n width: 175px;\n font-size: 12px;\n line-height: 16px;\n font-weight: 700;\n padding: 10px 20px;\n margin-top: -1.5px;\n background: white;\n\n &::before {\n box-shadow: 0 8px 24px 0 #00000014;\n background: white;\n }\n }\n`;\n\n// This expands the hoverable area of the tooltip so users can move their mouse casually to the tooltip\nexport const ProductHeaderTooltipHoverArea = styled.div<{\n $width: number | undefined;\n $tooltipIsPositionedTop: boolean;\n}>`\n position: absolute;\n ${({ $tooltipIsPositionedTop }) =>\n $tooltipIsPositionedTop\n ? css`\n bottom: 0;\n `\n : css`\n top: 0;\n `}\n bottom: 0;\n right: 50%;\n transform: translateX(50%);\n width: ${({ $width }) => $width ?? 175}px;\n height: 35px;\n`;\n\nexport const ProductHeaderTooltipLink = styled.a`\n color: ${theme.colors.primaryBlue};\n\n &:hover {\n color: ${theme.colors.primaryBlue};\n }\n`;\n\nexport const HeaderGridItem = styled(StickyGridItem)`\n background: ${theme.colors.white};\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n text-align: center;\n padding: ${HEADER_GRID_ITEM_Y_PADDING}px 0;\n gap: ${HEADER_GRID_ITEM_GAP_DESKTOP}px;\n position: relative;\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n gap: ${HEADER_GRID_ITEM_GAP_MOBILE}px;\n /* Need this padding-top so sticky offset looks good on mobile */\n padding: 25px 0 0;\n }\n`;\n\nexport const EmptyHeaderGridItem = styled(HeaderGridItem)`\n align-items: center;\n justify-content: center;\n`;\n\nexport const EmptyHeaderEmptyProductDescription = styled.div<{\n $headerItemsAreSticking: boolean;\n}>`\n width: 100%;\n height: 100%;\n\n ${({ $headerItemsAreSticking }) =>\n $headerItemsAreSticking &&\n css`\n display: none;\n `}\n`;\n\nexport const HeaderGridItemContainer = styled.div<{ $isStuck: boolean }>`\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n`;\n\nexport const RemoveProductButton = styled.button<{ $isSmallScreen: boolean }>`\n position: absolute;\n top: 25px;\n right: 25px;\n background: transparent;\n border: none;\n padding: 5px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 30px;\n color: #c2c6cb;\n\n ${({ $isSmallScreen }) =>\n $isSmallScreen &&\n css`\n top: 0;\n right: 4%;\n `}\n`;\n\nexport const ProductMeta = styled.div`\n position: relative;\n display: flex;\n flex-direction: column;\n flex: 1;\n align-items: center;\n width: 100%;\n padding: 0 10px;\n\n @media (max-width: ${MOBILE_BREAKPOINT}px) {\n &::before {\n display: none;\n }\n &::after {\n display: none;\n }\n }\n`;\n\nconst productTitleStyles = css`\n font-size: 16px;\n font-weight: 700;\n line-height: normal;\n letter-spacing: -0.32px;\n`;\n\nexport const ProductTitle = styled.div`\n ${productTitleStyles}\n\n color: ${theme.colors.black};\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n font-size: 14px;\n }\n`;\n\nexport const ProductTitleLink = styled(ButtonBase)`\n ${productTitleStyles}\n color: ${theme.colors.primaryBlue};\n\n :focus,\n :hover {\n text-decoration: none;\n }\n\n :focus {\n color: ${theme.colors.primaryBlue};\n }\n`;\n\nexport const ProductDescription = styled.div<{\n $maxWidth?: number;\n $direction: LanguageDirectionType;\n}>`\n font-size: 14px;\n font-weight: 400;\n line-height: normal;\n margin-top: 6px;\n letter-spacing: -0.24px;\n color: ${theme.colors.black65};\n max-width: ${({ $maxWidth }) => ($maxWidth ? `${$maxWidth}px` : \"auto\")};\n direction: ${({ $direction }) => $direction && `${$direction}`};\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n margin: 4px auto 12px;\n font-size: 12px;\n }\n`;\n\nexport const SelectFromAboveIsStuckContainer = styled.div<{\n $isStuck: boolean;\n}>`\n display: none;\n flex-direction: column;\n height: 100%;\n justify-content: center;\n align-items: center;\n\n ${({ $isStuck }) =>\n $isStuck &&\n css`\n display: flex;\n `}\n`;\n\nexport const SelectFromAboveIsStuck = styled(ProductDescription)`\n margin: 0;\n`;\n\nexport const ProductNote = styled.div`\n color: ${theme.colors.black45};\n font-size: ${theme.font.size10};\n line-height: 16.8px;\n margin-top: 6px;\n text-align: center;\n`;\n\nexport const Badge = styled(BadgeBase)`\n margin: 10px 0 20px;\n`;\n\nexport const BadgeWrapper = styled.div`\n margin-top: auto;\n display: flex;\n gap: 10px;\n`;\n\nexport const PropertyTitleGridItem = styled(StickyGridItem)`\n display: flex;\n align-items: center;\n justify-content: flex-start;\n border-bottom: 1px solid ${theme.colors.athensGreyDark};\n background: ${theme.colors.white};\n z-index: 1;\n overflow: hidden;\n`;\n\nexport const EmptyPropertyTitleGridItem = styled(StickyGridItem)`\n background: ${theme.colors.white};\n`;\n\nexport const PropertyTitleGridItemContent = styled(StickyGridItem)`\n display: flex;\n align-items: center;\n justify-content: flex-start;\n padding: 16px 16px 16px 8px;\n width: 100%;\n gap: 8px;\n overflow: hidden;\n`;\n\nexport const PropertyTitle = styled.div`\n font-size: 14px;\n font-weight: ${theme.fontWeight.bold};\n color: ${theme.colors.black65};\n line-height: 16.8px;\n letter-spacing: -0.28px;\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n font-size: 12px;\n line-height: 14px;\n }\n`;\n\nexport const PropertyIcon = styled.div`\n width: 30px;\n height: 30px;\n color: ${theme.colors.shark};\n`;\n\nexport const SelectFromAboveIconCopyContainer = styled.div<{\n $isStuck: boolean;\n}>`\n display: flex;\n flex-direction: column;\n align-items: center;\n opacity: 1;\n\n ${({ $isStuck }) =>\n $isStuck &&\n css`\n opacity: 0;\n `}\n`;\n\nexport const ProductImage = styled.img`\n max-width: 100%;\n max-height: 100%;\n object-fit: contain;\n -webkit-user-drag: none;\n`;\n\nexport const ProductImageWrap = styled.div<{ height: number }>`\n height: ${({ height }) => `${height}px`};\n display: flex;\n`;\n\nexport const PropertyTooltip = styled.div`\n height: 20px;\n`;\n\nexport const PropertyTooltipContent = styled.div`\n color: #fafafa;\n font-size: 12px;\n\n a {\n color: ${theme.colors.primaryBlue};\n }\n`;\n\nexport const TooltipIcon = styled(StyleableSvgImage)`\n color: ${theme.colors.primaryBlue};\n`;\n\nexport const ButtonWrap = styled.div`\n padding: 16px 0;\n display: flex;\n align-items: center;\n justify-content: center;\n`;\n\nconst buttonStyles = css`\n padding: 10px 15px;\n line-height: 20px;\n font-weight: ${theme.fontWeight.bold};\n margin: auto;\n :focus,\n :hover {\n text-decoration: none;\n }\n\n > * {\n position: static;\n }\n`;\n\nexport const Button = styled(ButtonBase)<{ $removePointerEvents: boolean }>`\n ${buttonStyles};\n\n ${({ $removePointerEvents }) =>\n $removePointerEvents &&\n css`\n pointer-events: none;\n `}\n`;\n\n// TODO: remove if not used anywhere else in store.core\nexport const ComingSoon = styled(ButtonBase)`\n ${buttonStyles};\n\n cursor: default;\n color: #445178;\n\n :focus,\n :hover {\n color: #445178;\n }\n`;\n\nexport const NotesWrap = styled.div`\n padding: 16px 10px 10px;\n text-wrap: pretty;\n display: flex;\n flex-direction: column;\n align-items: center;\n`;\n\nexport const Note = styled.div`\n font-size: 10px;\n line-height: ${17 / 10};\n color: ${theme.colors.black45};\n text-align: center;\n`;\n\nexport const FootnotesWrap = styled.div`\n padding: 0 0 16px;\n display: flex;\n flex-direction: column;\n align-items: center;\n`;\n\nexport const Footnote = styled.div`\n font-size: 10px;\n line-height: ${17 / 10};\n color: ${theme.colors.black45};\n text-align: center;\n`;\n\nexport const KitIncluded = styled.div`\n font-size: 14px;\n font-weight: 400;\n letter-spacing: -0.28px;\n line-height: 16.8px;\n color: ${theme.colors.black65};\n`;\n\nexport const TooltipStyles = createGlobalStyle<{ maxWidth?: number }>`\n .${TOOLTIP_CLASS_NAME} {\n box-shadow: 0 8px 24px 0 #00000014;\n max-width: ${({ maxWidth }) => maxWidth ?? 200}px;\n font-size: 12px;\n line-height: 16px;\n font-weight: 400;\n padding: 8px 16px;\n margin-top: -1.5px;\n\n &::before {\n box-shadow: 0 8px 24px 0 #00000014;\n }\n }\n`;\n"],"names":["MOBILE_BREAKPOINT","TOOLTIP_CLASS_NAME","PRODUCT_HEADER_TOOLTIP_CLASSNAME","PlaceholderGridItem","styled","StickyGridItem","theme","colors","white","CenterPlaceholderGridItem","HEADER_GRID_ITEM_Y_PADDING","HEADER_GRID_ITEM_GAP_DESKTOP","HEADER_GRID_ITEM_GAP_MOBILE","ProductHeaderTooltipStyles","div","ProductHeaderTooltipHoverArea","$tooltipIsPositionedTop","css","$width","ProductHeaderTooltipLink","a","primaryBlue","HeaderGridItem","BREAKPOINTS","MOBILE_AND_DOWN","EmptyHeaderGridItem","EmptyHeaderEmptyProductDescription","$headerItemsAreSticking","HeaderGridItemContainer","RemoveProductButton","button","$isSmallScreen","ProductMeta","productTitleStyles","ProductTitle","black","ProductTitleLink","ButtonBase","ProductDescription","black65","$maxWidth","$direction","SelectFromAboveIsStuckContainer","$isStuck","SelectFromAboveIsStuck","ProductNote","black45","font","size10","Badge","BadgeBase","BadgeWrapper","PropertyTitleGridItem","athensGreyDark","EmptyPropertyTitleGridItem","PropertyTitleGridItemContent","PropertyTitle","fontWeight","bold","PropertyIcon","shark","SelectFromAboveIconCopyContainer","ProductImage","img","ProductImageWrap","height","PropertyTooltip","PropertyTooltipContent","TooltipIcon","StyleableSvgImage","ButtonWrap","buttonStyles","Button","$removePointerEvents","ComingSoon","NotesWrap","Note","FootnotesWrap","Footnote","KitIncluded","TooltipStyles","createGlobalStyle","maxWidth"],"mappings":";;;;;;;;;;;;AAUO,MAAMA,iBAAoB,GAAA,GAAA;AAE1B,MAAMC,kBAAqB,GAAA,uBAAA;AAC3B,MAAMC,gCACX,GAAA,sCAAA;AAEW,MAAAC,mBAAA,GAAsBC,OAAOC,cAAc,CAAA;AAAA,gBACxCC,KAAA,CAAMC,OAAOC,KAAK;AAAA;AAAA,CAAA;AAIrB,MAAAC,yBAAA,GAA4BL,OAAOC,cAAc,CAAA,EAAA;AAEvD,MAAMK,0BAA6B,GAAA,EAAA;AAEnC,MAAMC,4BAA+B,GAAA,EAAA;AACrC,MAAMC,2BAA8B,GAAA,EAAA;AAEpC,MAAMC,6BAA6BT,MAAO,CAAAU,GAAA;AAAA;AAAA,KAE5CZ,gCAAgC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAkB9B,MAAMa,gCAAgC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AAc3E,MAAO,CAAAU,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAKvBR,KAAA,CAAMC,OAAOgC,OAAO;AAAA,CAAA;AAGxB,MAAMyC,aAAgB,GAAAC,iBAAA;AAAA,KACxBhF,kBAAkB;AAAA;AAAA,iBAEN,CAAC;EAAEiF;CAAS,KAAMA,YAAY,GAAG;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;"}
@@ -7,6 +7,7 @@ require('../../../../../../constants/modelCompareData/assets/close.svg.js');
7
7
  var useModelCompareTranslation = require('../../../../../../constants/modelCompareData/translations/useModelCompareTranslation.js');
8
8
  var context = require('../../../../../../contexts/MenuContext/context.js');
9
9
  var asset = require('../../../../../../utils/asset.js');
10
+ var Header_styles = require('../../../../../Header/Header.styles.js');
10
11
  var Reveal = require('../../../../../Reveal/Reveal.js');
11
12
  require('../../../../../StyleableSvgImage/index.js');
12
13
  var CompareTable_styles = require('../../../CompareTable.styles.js');
@@ -44,7 +45,9 @@ const ProductHeader = ({
44
45
  storeId
45
46
  } = context.useMenu();
46
47
  const [productTitleWidth, setProductTitleWidth] = React.useState(void 0);
48
+ const [toolTipIsPositionedTop, setToolTipIsPositionedTop] = React.useState(true);
47
49
  const productTitleRef = React.useRef(null);
50
+ const productMetaRef = React.useRef(null);
48
51
  const storeHref = React.useMemo(() => getStoreHref.getStoreHref({
49
52
  product,
50
53
  createSiteUrl,
@@ -65,6 +68,16 @@ const ProductHeader = ({
65
68
  if (!productTitleRef.current) return;
66
69
  setProductTitleWidth(productTitleRef.current.getBoundingClientRect().width);
67
70
  }, [productTitleRef]);
71
+ React.useEffect(() => {
72
+ const scrollHandler = () => {
73
+ const APPROXIMATE_TOOLTIP_HEIGHT = 45;
74
+ if (productMetaRef.current) setToolTipIsPositionedTop(productMetaRef.current.getBoundingClientRect().top > Header_styles.HEADER_HEIGHT + APPROXIMATE_TOOLTIP_HEIGHT);
75
+ };
76
+ document.addEventListener("scroll", scrollHandler);
77
+ return () => {
78
+ document.removeEventListener("scroll", scrollHandler);
79
+ };
80
+ }, []);
68
81
  return /* @__PURE__ */jsxRuntime.jsx(Reveal.Reveal, {
69
82
  index,
70
83
  playAnimation: hasBeenObserved,
@@ -88,9 +101,11 @@ const ProductHeader = ({
88
101
  alt: formatMessage(product.title)
89
102
  })
90
103
  }), /* @__PURE__ */jsxRuntime.jsxs(CompareTable_styles.ProductMeta, {
104
+ ref: productMetaRef,
91
105
  children: [linkToStoreTitleClick && storeHref || !linkToStoreTitleClick && techspecsHref ? /* @__PURE__ */jsxRuntime.jsx(CompareTable_styles.ProductHeaderTooltipStyles, {
92
106
  children: /* @__PURE__ */jsxRuntime.jsxs(Tooltip.Tooltip, {
93
107
  motif: "light",
108
+ position: toolTipIsPositionedTop ? "top" : "bottom",
94
109
  tooltipClassName: CompareTable_styles.PRODUCT_HEADER_TOOLTIP_CLASSNAME,
95
110
  isInteractive: true,
96
111
  description: /* @__PURE__ */jsxRuntime.jsxs(CompareTable_styles.ProductHeaderTooltipLink, {
@@ -99,7 +114,8 @@ const ProductHeader = ({
99
114
  children: [formatMessage("modelCompare.reviewIn.tooltip"), " Tech Specs"]
100
115
  }),
101
116
  children: [/* @__PURE__ */jsxRuntime.jsx(CompareTable_styles.ProductHeaderTooltipHoverArea, {
102
- $width: productTitleWidth
117
+ $width: productTitleWidth,
118
+ $tooltipIsPositionedTop: toolTipIsPositionedTop
103
119
  }), /* @__PURE__ */jsxRuntime.jsx(CompareTable_styles.ProductTitleLink, {
104
120
  variant: "link",
105
121
  anchor: true,
@@ -1 +1 @@
1
- {"version":3,"file":"ProductHeader.js","sources":["../../../../../../../src/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/ProductHeader/ProductHeader.tsx"],"sourcesContent":["import { Tooltip } from \"@ubnt/ui-components/Tooltip\";\nimport { useCallback, useEffect, useMemo, useRef, useState } from \"react\";\n\nimport closeIcon from \"../../../../../../constants/modelCompareData/assets/close.svg\";\nimport { useModelCompareTranslation } from \"../../../../../../constants/modelCompareData/translations/useModelCompareTranslation\";\nimport { useMenu } from \"../../../../../../contexts/MenuContext/context\";\nimport { imageSrc } from \"../../../../../../utils/asset\";\nimport { Reveal } from \"../../../../../Reveal/Reveal\";\nimport { StyleableSvgImage } from \"../../../../../StyleableSvgImage\";\nimport * as S from \"../../../CompareTable.styles\";\nimport { getStoreHref } from \"../../../helpers/getStoreHref\";\nimport { Badges } from \"../Badges/Badges\";\nimport type { ProductHeaderProps } from \"./ProductHeader.types\";\n\nexport const ProductHeader = ({\n product,\n setSelectedProducts,\n index,\n setExternalState,\n selectedProducts,\n linkToStoreTitleClick,\n hasBeenObserved,\n isLessThanOrEqualToFiveProducts,\n hasMultipleProductsSelected,\n isSmallScreen,\n showBadges,\n isStaticProduct,\n}: ProductHeaderProps) => {\n const { formatMessage } = useModelCompareTranslation();\n const { createSiteUrl, languageDirection, storeId } = useMenu();\n const [productTitleWidth, setProductTitleWidth] = useState<\n number | undefined\n >(undefined);\n\n const productTitleRef = useRef<HTMLAnchorElement | HTMLButtonElement | null>(\n null,\n );\n\n const storeHref = useMemo(\n () => getStoreHref({ product, createSiteUrl, storeId }),\n [product, createSiteUrl, storeId],\n );\n\n const techspecsHref = useMemo(\n () => product.techspecsPath && createSiteUrl(product.techspecsPath),\n [createSiteUrl, product.techspecsPath],\n );\n\n const productTitleHref = useMemo(\n () => (linkToStoreTitleClick ? storeHref : techspecsHref),\n [linkToStoreTitleClick, storeHref, techspecsHref],\n );\n\n const removeHandler = useCallback(() => {\n const updatedProducts =\n selectedProducts &&\n selectedProducts.filter(\n (selectedProduct) => selectedProduct.productId !== product.id,\n );\n\n if (setExternalState && updatedProducts) {\n setExternalState(updatedProducts);\n }\n\n if (updatedProducts && setSelectedProducts) {\n setSelectedProducts(updatedProducts);\n }\n }, [product.id, selectedProducts, setExternalState, setSelectedProducts]);\n\n useEffect(() => {\n if (!productTitleRef.current) return;\n\n setProductTitleWidth(productTitleRef.current.getBoundingClientRect().width);\n }, [productTitleRef]);\n\n return (\n <Reveal index={index} playAnimation={hasBeenObserved}>\n <S.HeaderGridItem>\n {!isLessThanOrEqualToFiveProducts &&\n hasMultipleProductsSelected &&\n !isStaticProduct && (\n <S.RemoveProductButton\n type=\"button\"\n $isSmallScreen={isSmallScreen}\n onClick={removeHandler}\n >\n <StyleableSvgImage src={closeIcon} width={16} height={16} />\n </S.RemoveProductButton>\n )}\n <S.ProductImageWrap height={product.image.height}>\n <S.ProductImage\n loading=\"lazy\"\n decoding=\"async\"\n src={imageSrc(product.image.src)}\n width={product.image.width}\n alt={formatMessage(product.title)}\n />\n </S.ProductImageWrap>\n <S.ProductMeta>\n {(linkToStoreTitleClick && storeHref) ||\n (!linkToStoreTitleClick && techspecsHref) ? (\n <S.ProductHeaderTooltipStyles>\n <Tooltip\n key={`tooltip-${product.id}`}\n motif=\"light\"\n tooltipClassName={S.PRODUCT_HEADER_TOOLTIP_CLASSNAME}\n isInteractive\n description={\n <S.ProductHeaderTooltipLink\n href={productTitleHref}\n target=\"__blank\"\n >\n {formatMessage(\"modelCompare.reviewIn.tooltip\")} Tech Specs\n </S.ProductHeaderTooltipLink>\n }\n >\n <S.ProductHeaderTooltipHoverArea $width={productTitleWidth} />\n <S.ProductTitleLink variant=\"link\" anchor ref={productTitleRef}>\n {formatMessage(product.title)}\n </S.ProductTitleLink>\n </Tooltip>\n </S.ProductHeaderTooltipStyles>\n ) : (\n <S.ProductTitle>{formatMessage(product.title)}</S.ProductTitle>\n )}\n {!!product?.productNote && (\n <S.ProductNote>{formatMessage(product.productNote)}</S.ProductNote>\n )}\n {product.description ? (\n <S.ProductDescription\n $maxWidth={product.descriptionMaxWidth}\n $direction={languageDirection}\n >\n {formatMessage(product.description)}\n </S.ProductDescription>\n ) : null}\n {showBadges && (\n <S.BadgeWrapper>{<Badges product={product} />}</S.BadgeWrapper>\n )}\n </S.ProductMeta>\n </S.HeaderGridItem>\n </Reveal>\n );\n};\n"],"names":["ProductHeader","product","setSelectedProducts","index","setExternalState","selectedProducts","linkToStoreTitleClick","hasBeenObserved","isLessThanOrEqualToFiveProducts","hasMultipleProductsSelected","isSmallScreen","showBadges","isStaticProduct","formatMessage","useModelCompareTranslation","createSiteUrl","languageDirection","storeId","useMenu","productTitleWidth","setProductTitleWidth","useState","productTitleRef","useRef","storeHref","useMemo","getStoreHref","techspecsHref","techspecsPath","productTitleHref","removeHandler","useCallback","updatedProducts","filter","selectedProduct","productId","id","useEffect","current","getBoundingClientRect","width","jsx","Reveal","playAnimation","children","jsxs","S.HeaderGridItem","S.RemoveProductButton","RemoveProductButton","type","$isSmallScreen","onClick","StyleableSvgImage","src","closeIcon","height","S.ProductImageWrap","ProductImageWrap","image","S.ProductImage","ProductImage","loading","decoding","imageSrc","alt","title","S.ProductMeta","S.ProductHeaderTooltipStyles","Tooltip","motif","tooltipClassName","S.PRODUCT_HEADER_TOOLTIP_CLASSNAME","PRODUCT_HEADER_TOOLTIP_CLASSNAME","isInteractive","description","S.ProductHeaderTooltipLink","ProductHeaderTooltipLink","href","target","S.ProductHeaderTooltipHoverArea","ProductHeaderTooltipHoverArea","$width","S.ProductTitleLink","variant","anchor","ref","S.ProductTitle","productNote","S.ProductNote","ProductNote","S.ProductDescription","ProductDescription","$maxWidth","descriptionMaxWidth","$direction","S.BadgeWrapper","Badges"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAcO,MAAMA,gBAAgBA,CAAC;EAC5BC,OAAA;EACAC,mBAAA;EACAC,KAAA;EACAC,gBAAA;EACAC,gBAAA;EACAC,qBAAA;EACAC,eAAA;EACAC,+BAAA;EACAC,2BAAA;EACAC,aAAA;EACAC,UAAA;EACAC;AACF,CAA0B,KAAA;EAClB,MAAA;IAAEC;EAAc,CAAA,GAAIC,qDAA2B,CAAA,CAAA;EACrD,MAAM;IAAEC,aAAA;IAAeC,iBAAmB;IAAAC;EAAA,IAAYC,OAAAA,CAAAA,OAAQ,CAAA,CAAA;EAC9D,MAAM,CAACC,iBAA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AA,CAAcZ,QAAQyE,WAAW;QAAA,CAAA,CAElC,GAAA,IAAA,EACH/D,UAAA,kCACEoF,mBAAAA,CAAAA,YAAE,EAAF;UAAgBnD,QAAC,EAAAH,eAAAA,UAAAA,CAAAA,GAAA,CAAAuD,MAAA,CAAAA,MAAA,EAAA;YAAO/F;WAAkB;QAAG,CAAA,CAAA;MAElD,CAAA,CAAA;IAAA,CACF;EACF,CAAA,CAAA;AAEJ,CAAA;"}
1
+ {"version":3,"file":"ProductHeader.js","sources":["../../../../../../../src/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/ProductHeader/ProductHeader.tsx"],"sourcesContent":["import { Tooltip } from \"@ubnt/ui-components/Tooltip\";\nimport { useCallback, useEffect, useMemo, useRef, useState } from \"react\";\n\nimport closeIcon from \"../../../../../../constants/modelCompareData/assets/close.svg\";\nimport { useModelCompareTranslation } from \"../../../../../../constants/modelCompareData/translations/useModelCompareTranslation\";\nimport { useMenu } from \"../../../../../../contexts/MenuContext/context\";\nimport { imageSrc } from \"../../../../../../utils/asset\";\nimport { HEADER_HEIGHT } from \"../../../../../Header/Header.styles\";\nimport { Reveal } from \"../../../../../Reveal/Reveal\";\nimport { StyleableSvgImage } from \"../../../../../StyleableSvgImage\";\nimport * as S from \"../../../CompareTable.styles\";\nimport { getStoreHref } from \"../../../helpers/getStoreHref\";\nimport { Badges } from \"../Badges/Badges\";\nimport type { ProductHeaderProps } from \"./ProductHeader.types\";\n\nexport const ProductHeader = ({\n product,\n setSelectedProducts,\n index,\n setExternalState,\n selectedProducts,\n linkToStoreTitleClick,\n hasBeenObserved,\n isLessThanOrEqualToFiveProducts,\n hasMultipleProductsSelected,\n isSmallScreen,\n showBadges,\n isStaticProduct,\n}: ProductHeaderProps) => {\n const { formatMessage } = useModelCompareTranslation();\n const { createSiteUrl, languageDirection, storeId } = useMenu();\n const [productTitleWidth, setProductTitleWidth] = useState<\n number | undefined\n >(undefined);\n const [toolTipIsPositionedTop, setToolTipIsPositionedTop] = useState(true);\n\n const productTitleRef = useRef<HTMLAnchorElement | HTMLButtonElement | null>(\n null,\n );\n const productMetaRef = useRef<HTMLDivElement | null>(null);\n\n const storeHref = useMemo(\n () => getStoreHref({ product, createSiteUrl, storeId }),\n [product, createSiteUrl, storeId],\n );\n\n const techspecsHref = useMemo(\n () => product.techspecsPath && createSiteUrl(product.techspecsPath),\n [createSiteUrl, product.techspecsPath],\n );\n\n const productTitleHref = useMemo(\n () => (linkToStoreTitleClick ? storeHref : techspecsHref),\n [linkToStoreTitleClick, storeHref, techspecsHref],\n );\n\n const removeHandler = useCallback(() => {\n const updatedProducts =\n selectedProducts &&\n selectedProducts.filter(\n (selectedProduct) => selectedProduct.productId !== product.id,\n );\n\n if (setExternalState && updatedProducts) {\n setExternalState(updatedProducts);\n }\n\n if (updatedProducts && setSelectedProducts) {\n setSelectedProducts(updatedProducts);\n }\n }, [product.id, selectedProducts, setExternalState, setSelectedProducts]);\n\n useEffect(() => {\n if (!productTitleRef.current) return;\n\n setProductTitleWidth(productTitleRef.current.getBoundingClientRect().width);\n }, [productTitleRef]);\n\n useEffect(() => {\n const scrollHandler = () => {\n const APPROXIMATE_TOOLTIP_HEIGHT = 45;\n if (productMetaRef.current)\n setToolTipIsPositionedTop(\n productMetaRef.current.getBoundingClientRect().top >\n HEADER_HEIGHT + APPROXIMATE_TOOLTIP_HEIGHT,\n );\n };\n\n document.addEventListener(\"scroll\", scrollHandler);\n\n return () => {\n document.removeEventListener(\"scroll\", scrollHandler);\n };\n }, []);\n\n return (\n <Reveal index={index} playAnimation={hasBeenObserved}>\n <S.HeaderGridItem>\n {!isLessThanOrEqualToFiveProducts &&\n hasMultipleProductsSelected &&\n !isStaticProduct && (\n <S.RemoveProductButton\n type=\"button\"\n $isSmallScreen={isSmallScreen}\n onClick={removeHandler}\n >\n <StyleableSvgImage src={closeIcon} width={16} height={16} />\n </S.RemoveProductButton>\n )}\n <S.ProductImageWrap height={product.image.height}>\n <S.ProductImage\n loading=\"lazy\"\n decoding=\"async\"\n src={imageSrc(product.image.src)}\n width={product.image.width}\n alt={formatMessage(product.title)}\n />\n </S.ProductImageWrap>\n <S.ProductMeta ref={productMetaRef}>\n {(linkToStoreTitleClick && storeHref) ||\n (!linkToStoreTitleClick && techspecsHref) ? (\n <S.ProductHeaderTooltipStyles>\n <Tooltip\n key={`tooltip-${product.id}`}\n motif=\"light\"\n position={toolTipIsPositionedTop ? \"top\" : \"bottom\"}\n tooltipClassName={S.PRODUCT_HEADER_TOOLTIP_CLASSNAME}\n isInteractive\n description={\n <S.ProductHeaderTooltipLink\n href={productTitleHref}\n target=\"__blank\"\n >\n {formatMessage(\"modelCompare.reviewIn.tooltip\")} Tech Specs\n </S.ProductHeaderTooltipLink>\n }\n >\n <S.ProductHeaderTooltipHoverArea\n $width={productTitleWidth}\n $tooltipIsPositionedTop={toolTipIsPositionedTop}\n />\n <S.ProductTitleLink variant=\"link\" anchor ref={productTitleRef}>\n {formatMessage(product.title)}\n </S.ProductTitleLink>\n </Tooltip>\n </S.ProductHeaderTooltipStyles>\n ) : (\n <S.ProductTitle>{formatMessage(product.title)}</S.ProductTitle>\n )}\n {!!product?.productNote && (\n <S.ProductNote>{formatMessage(product.productNote)}</S.ProductNote>\n )}\n {product.description ? (\n <S.ProductDescription\n $maxWidth={product.descriptionMaxWidth}\n $direction={languageDirection}\n >\n {formatMessage(product.description)}\n </S.ProductDescription>\n ) : null}\n {showBadges && (\n <S.BadgeWrapper>{<Badges product={product} />}</S.BadgeWrapper>\n )}\n </S.ProductMeta>\n </S.HeaderGridItem>\n </Reveal>\n );\n};\n"],"names":["ProductHeader","product","setSelectedProducts","index","setExternalState","selectedProducts","linkToStoreTitleClick","hasBeenObserved","isLessThanOrEqualToFiveProducts","hasMultipleProductsSelected","isSmallScreen","showBadges","isStaticProduct","formatMessage","useModelCompareTranslation","createSiteUrl","languageDirection","storeId","useMenu","productTitleWidth","setProductTitleWidth","useState","toolTipIsPositionedTop","setToolTipIsPositionedTop","productTitleRef","useRef","productMetaRef","storeHref","useMemo","getStoreHref","techspecsHref","techspecsPath","productTitleHref","removeHandler","useCallback","updatedProducts","filter","selectedProduct","productId","id","useEffect","current","getBoundingClientRect","width","scrollHandler","APPROXIMATE_TOOLTIP_HEIGHT","top","HEADER_HEIGHT","document","addEventListener","removeEventListener","jsx","Reveal","playAnimation","children","jsxs","S.HeaderGridItem","S.RemoveProductButton","RemoveProductButton","type","$isSmallScreen","onClick","StyleableSvgImage","src","closeIcon","height","S.ProductImageWrap","ProductImageWrap","image","S.ProductImage","ProductImage","loading","decoding","imageSrc","alt","title","S.ProductMeta","ref","S.ProductHeaderTooltipStyles","Tooltip","motif","position","tooltipClassName","S.PRODUCT_HEADER_TOOLTIP_CLASSNAME","PRODUCT_HEADER_TOOLTIP_CLASSNAME","isInteractive","description","S.ProductHeaderTooltipLink","ProductHeaderTooltipLink","href","target","S.ProductHeaderTooltipHoverArea","ProductHeaderTooltipHoverArea","$width","$tooltipIsPositionedTop","S.ProductTitleLink","variant","anchor","S.ProductTitle","productNote","S.ProductNote","ProductNote","S.ProductDescription","ProductDescription","$maxWidth","descriptionMaxWidth","$direction","S.BadgeWrapper","Badges"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAeO,MAAMA,gBAAgBA,CAAC;EAC5BC,OAAA;EACAC,mBAAA;EACAC,KAAA;EACAC,gBAAA;EACAC,gBAAA;EACAC,qBAAA;EACAC,eAAA;EACAC,+BAAA;EACAC,2BAAA;EACAC,aAAA;EACAC,UAAA;EACAC;AACF,CAA0B,KAAA;EAClB,MAAA;IAAEC;EAAc,CAAA,GAAIC,qDAA2B,CAAA,CAAA;EACrD,MAAM;IAAEC,aAAA;IAAeC,iBAAmB;IAAAC;EAAA,IAAYC,OAAAA,CAAAA,OAAQ,CAAA,CAAA;EAC9D,MAAM,CAACC,iBAAA,EAAmBC,oBAAoB,CAAA,GAAIC,eAEhD,KAAS,CAAA,CAAA;EACX,MAAM,CAACC,sBAAA,EAAwBC,yBAAyB,C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Ac,EAAAzC,aAAA,CAAAZ,OAAA,CAAQ0E,KAAK;YAC9B,CAAA,CAAA;UAAA,CAAA,EApBK,WAAW1E,QAAQsC,EAAE,EAAA;SAsB9B,mBAECY,UAAA,CAAAA,GAAA,CAAA+C,kCAAA;UAAgB5C,QAAA,EAAAzC,aAAA,CAAcZ,OAAQ,CAAA0E,KAAK;SAAE,CAAA,EAE/C,CAAC,CAAC1E,OAAA,EAASkG,WACV,IAAAhD,eAAAA,UAAAA,CAAAA,GAAA,CAACiD,mBAAE,CAAAC,WAAA,EAAF;UAAe/C,QAAA,EAAAzC,aAAA,CAAcZ,OAAQ,CAAAkG,WAAW;SAAE,CAAA,EAEpDlG,QAAQqF,WACP,GAAA,eAAAnC,UAAA,CAAAA,GAAA,CAACmD,mBAAE,CAAAC,kBAAA,EAAF;UACCC,WAAWvG,OAAQ,CAAAwG,mBAAA;UACnBC,UAAY,EAAA1F,iBAAA;UAEXsC,QAAA,EAAAzC,aAAA,CAAcZ,QAAQqF,WAAW;QAAA,CAAA,CAElC,GAAA,IAAA,EACH3E,UAAA,kCACEgG,mBAAAA,CAAAA,YAAE,EAAF;UAAgBrD,QAAC,EAAAH,eAAAA,UAAAA,CAAAA,GAAA,CAAAyD,MAAA,CAAAA,MAAA,EAAA;YAAO3G;WAAkB;QAAG,CAAA,CAAA;MAElD,CAAA,CAAA;IAAA,CACF;EACF,CAAA,CAAA;AAEJ,CAAA;"}
@@ -5,6 +5,7 @@ import '../../../../../../constants/modelCompareData/assets/close.svg.mjs';
5
5
  import { useModelCompareTranslation } from '../../../../../../constants/modelCompareData/translations/useModelCompareTranslation.mjs';
6
6
  import { useMenu } from '../../../../../../contexts/MenuContext/context.mjs';
7
7
  import { imageSrc } from '../../../../../../utils/asset.mjs';
8
+ import { HEADER_HEIGHT } from '../../../../../Header/Header.styles.mjs';
8
9
  import { Reveal } from '../../../../../Reveal/Reveal.mjs';
9
10
  import '../../../../../StyleableSvgImage/index.mjs';
10
11
  import { HeaderGridItem, RemoveProductButton, ProductImageWrap, ProductImage, ProductMeta, ProductHeaderTooltipStyles, ProductHeaderTooltipHoverArea, ProductTitleLink, ProductHeaderTooltipLink, PRODUCT_HEADER_TOOLTIP_CLASSNAME, ProductTitle, ProductNote, ProductDescription, BadgeWrapper } from '../../../CompareTable.styles.mjs';
@@ -36,7 +37,9 @@ const ProductHeader = ({
36
37
  storeId
37
38
  } = useMenu();
38
39
  const [productTitleWidth, setProductTitleWidth] = useState(void 0);
40
+ const [toolTipIsPositionedTop, setToolTipIsPositionedTop] = useState(true);
39
41
  const productTitleRef = useRef(null);
42
+ const productMetaRef = useRef(null);
40
43
  const storeHref = useMemo(() => getStoreHref({
41
44
  product,
42
45
  createSiteUrl,
@@ -57,6 +60,16 @@ const ProductHeader = ({
57
60
  if (!productTitleRef.current) return;
58
61
  setProductTitleWidth(productTitleRef.current.getBoundingClientRect().width);
59
62
  }, [productTitleRef]);
63
+ useEffect(() => {
64
+ const scrollHandler = () => {
65
+ const APPROXIMATE_TOOLTIP_HEIGHT = 45;
66
+ if (productMetaRef.current) setToolTipIsPositionedTop(productMetaRef.current.getBoundingClientRect().top > HEADER_HEIGHT + APPROXIMATE_TOOLTIP_HEIGHT);
67
+ };
68
+ document.addEventListener("scroll", scrollHandler);
69
+ return () => {
70
+ document.removeEventListener("scroll", scrollHandler);
71
+ };
72
+ }, []);
60
73
  return /* @__PURE__ */jsx(Reveal, {
61
74
  index,
62
75
  playAnimation: hasBeenObserved,
@@ -80,9 +93,11 @@ const ProductHeader = ({
80
93
  alt: formatMessage(product.title)
81
94
  })
82
95
  }), /* @__PURE__ */jsxs(ProductMeta, {
96
+ ref: productMetaRef,
83
97
  children: [linkToStoreTitleClick && storeHref || !linkToStoreTitleClick && techspecsHref ? /* @__PURE__ */jsx(ProductHeaderTooltipStyles, {
84
98
  children: /* @__PURE__ */jsxs(Tooltip, {
85
99
  motif: "light",
100
+ position: toolTipIsPositionedTop ? "top" : "bottom",
86
101
  tooltipClassName: PRODUCT_HEADER_TOOLTIP_CLASSNAME,
87
102
  isInteractive: true,
88
103
  description: /* @__PURE__ */jsxs(ProductHeaderTooltipLink, {
@@ -91,7 +106,8 @@ const ProductHeader = ({
91
106
  children: [formatMessage("modelCompare.reviewIn.tooltip"), " Tech Specs"]
92
107
  }),
93
108
  children: [/* @__PURE__ */jsx(ProductHeaderTooltipHoverArea, {
94
- $width: productTitleWidth
109
+ $width: productTitleWidth,
110
+ $tooltipIsPositionedTop: toolTipIsPositionedTop
95
111
  }), /* @__PURE__ */jsx(ProductTitleLink, {
96
112
  variant: "link",
97
113
  anchor: true,
@@ -1 +1 @@
1
- {"version":3,"file":"ProductHeader.mjs","sources":["../../../../../../../src/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/ProductHeader/ProductHeader.tsx"],"sourcesContent":["import { Tooltip } from \"@ubnt/ui-components/Tooltip\";\nimport { useCallback, useEffect, useMemo, useRef, useState } from \"react\";\n\nimport closeIcon from \"../../../../../../constants/modelCompareData/assets/close.svg\";\nimport { useModelCompareTranslation } from \"../../../../../../constants/modelCompareData/translations/useModelCompareTranslation\";\nimport { useMenu } from \"../../../../../../contexts/MenuContext/context\";\nimport { imageSrc } from \"../../../../../../utils/asset\";\nimport { Reveal } from \"../../../../../Reveal/Reveal\";\nimport { StyleableSvgImage } from \"../../../../../StyleableSvgImage\";\nimport * as S from \"../../../CompareTable.styles\";\nimport { getStoreHref } from \"../../../helpers/getStoreHref\";\nimport { Badges } from \"../Badges/Badges\";\nimport type { ProductHeaderProps } from \"./ProductHeader.types\";\n\nexport const ProductHeader = ({\n product,\n setSelectedProducts,\n index,\n setExternalState,\n selectedProducts,\n linkToStoreTitleClick,\n hasBeenObserved,\n isLessThanOrEqualToFiveProducts,\n hasMultipleProductsSelected,\n isSmallScreen,\n showBadges,\n isStaticProduct,\n}: ProductHeaderProps) => {\n const { formatMessage } = useModelCompareTranslation();\n const { createSiteUrl, languageDirection, storeId } = useMenu();\n const [productTitleWidth, setProductTitleWidth] = useState<\n number | undefined\n >(undefined);\n\n const productTitleRef = useRef<HTMLAnchorElement | HTMLButtonElement | null>(\n null,\n );\n\n const storeHref = useMemo(\n () => getStoreHref({ product, createSiteUrl, storeId }),\n [product, createSiteUrl, storeId],\n );\n\n const techspecsHref = useMemo(\n () => product.techspecsPath && createSiteUrl(product.techspecsPath),\n [createSiteUrl, product.techspecsPath],\n );\n\n const productTitleHref = useMemo(\n () => (linkToStoreTitleClick ? storeHref : techspecsHref),\n [linkToStoreTitleClick, storeHref, techspecsHref],\n );\n\n const removeHandler = useCallback(() => {\n const updatedProducts =\n selectedProducts &&\n selectedProducts.filter(\n (selectedProduct) => selectedProduct.productId !== product.id,\n );\n\n if (setExternalState && updatedProducts) {\n setExternalState(updatedProducts);\n }\n\n if (updatedProducts && setSelectedProducts) {\n setSelectedProducts(updatedProducts);\n }\n }, [product.id, selectedProducts, setExternalState, setSelectedProducts]);\n\n useEffect(() => {\n if (!productTitleRef.current) return;\n\n setProductTitleWidth(productTitleRef.current.getBoundingClientRect().width);\n }, [productTitleRef]);\n\n return (\n <Reveal index={index} playAnimation={hasBeenObserved}>\n <S.HeaderGridItem>\n {!isLessThanOrEqualToFiveProducts &&\n hasMultipleProductsSelected &&\n !isStaticProduct && (\n <S.RemoveProductButton\n type=\"button\"\n $isSmallScreen={isSmallScreen}\n onClick={removeHandler}\n >\n <StyleableSvgImage src={closeIcon} width={16} height={16} />\n </S.RemoveProductButton>\n )}\n <S.ProductImageWrap height={product.image.height}>\n <S.ProductImage\n loading=\"lazy\"\n decoding=\"async\"\n src={imageSrc(product.image.src)}\n width={product.image.width}\n alt={formatMessage(product.title)}\n />\n </S.ProductImageWrap>\n <S.ProductMeta>\n {(linkToStoreTitleClick && storeHref) ||\n (!linkToStoreTitleClick && techspecsHref) ? (\n <S.ProductHeaderTooltipStyles>\n <Tooltip\n key={`tooltip-${product.id}`}\n motif=\"light\"\n tooltipClassName={S.PRODUCT_HEADER_TOOLTIP_CLASSNAME}\n isInteractive\n description={\n <S.ProductHeaderTooltipLink\n href={productTitleHref}\n target=\"__blank\"\n >\n {formatMessage(\"modelCompare.reviewIn.tooltip\")} Tech Specs\n </S.ProductHeaderTooltipLink>\n }\n >\n <S.ProductHeaderTooltipHoverArea $width={productTitleWidth} />\n <S.ProductTitleLink variant=\"link\" anchor ref={productTitleRef}>\n {formatMessage(product.title)}\n </S.ProductTitleLink>\n </Tooltip>\n </S.ProductHeaderTooltipStyles>\n ) : (\n <S.ProductTitle>{formatMessage(product.title)}</S.ProductTitle>\n )}\n {!!product?.productNote && (\n <S.ProductNote>{formatMessage(product.productNote)}</S.ProductNote>\n )}\n {product.description ? (\n <S.ProductDescription\n $maxWidth={product.descriptionMaxWidth}\n $direction={languageDirection}\n >\n {formatMessage(product.description)}\n </S.ProductDescription>\n ) : null}\n {showBadges && (\n <S.BadgeWrapper>{<Badges product={product} />}</S.BadgeWrapper>\n )}\n </S.ProductMeta>\n </S.HeaderGridItem>\n </Reveal>\n );\n};\n"],"names":["ProductHeader","product","setSelectedProducts","index","setExternalState","selectedProducts","linkToStoreTitleClick","hasBeenObserved","isLessThanOrEqualToFiveProducts","hasMultipleProductsSelected","isSmallScreen","showBadges","isStaticProduct","formatMessage","useModelCompareTranslation","createSiteUrl","languageDirection","storeId","useMenu","productTitleWidth","setProductTitleWidth","useState","productTitleRef","useRef","storeHref","useMemo","getStoreHref","techspecsHref","techspecsPath","productTitleHref","removeHandler","useCallback","updatedProducts","filter","selectedProduct","productId","id","useEffect","current","getBoundingClientRect","width","jsx","Reveal","playAnimation","children","jsxs","S.HeaderGridItem","S.RemoveProductButton","type","$isSmallScreen","onClick","StyleableSvgImage","src","closeIcon","height","S.ProductImageWrap","image","S.ProductImage","loading","decoding","imageSrc","alt","title","S.ProductMeta","S.ProductHeaderTooltipStyles","Tooltip","motif","tooltipClassName","S.PRODUCT_HEADER_TOOLTIP_CLASSNAME","isInteractive","description","S.ProductHeaderTooltipLink","href","target","S.ProductHeaderTooltipHoverArea","$width","S.ProductTitleLink","variant","anchor","ref","S.ProductTitle","productNote","S.ProductNote","S.ProductDescription","$maxWidth","descriptionMaxWidth","$direction","S.BadgeWrapper","Badges"],"mappings":";;;;;;;;;;;;;;;AAcO,MAAMA,gBAAgBA,CAAC;EAC5BC,OAAA;EACAC,mBAAA;EACAC,KAAA;EACAC,gBAAA;EACAC,gBAAA;EACAC,qBAAA;EACAC,eAAA;EACAC,+BAAA;EACAC,2BAAA;EACAC,aAAA;EACAC,UAAA;EACAC;AACF,CAA0B,KAAA;EAClB,MAAA;IAAEC;EAAc,CAAA,GAAIC,0BAA2B,CAAA,CAAA;EACrD,MAAM;IAAEC,aAAA;IAAeC,iBAAmB;IAAAC;EAAA,IAAYC,OAAQ,CAAA,CAAA;EAC9D,MAAM,CAACC,iBAAA,EAAmBC,oBAAoB,CAAA,GAAIC,SAEhD,KAAS,CAAA,CAAA;EAEX,MAAMC,eAAkB,GAAAC,MAAA,CACtB,IACF,CAAA;EAEA,MAAMC,SAAY,GAAAC,OAAA,CAChB,MAAMC,YAAa,CAAA;IAAEzB,OAAS;IAAAc,aAAA;IAAeE;GAAS,CAAA,EACtD,CAAChB,OAAS,EAAAc,aAAA,EAAeE,OAAO,CAClC,CAAA;EAEA,MAAMU,aAAgB,GAAAF,OAAA,CACpB,MAAMxB,OAAA,CAAQ2B,aAAiB,IAAAb,aAAA,CAAcd,QAAQ2B,aAAa,CAAA,EAClE,CAACb,aAAe,EAAAd,OAAA,CAAQ2B,aAAa,CACvC,CAAA;EAEA,MAAMC,gBAAmB,GAAAJ,OAAA,CACvB,MAAOnB,wBAAwBkB,SAAY,GAAAG,aAAA,EAC3C,CAACrB,qBAAuB,EAAAkB,SAAA,EAAWG,aAAa,CAClD,CAAA;EAEM,MAAAG,aAAA,GAAgBC,YAAY,MAAM;IAChC,MAAAC,eAAA,GACJ3B,oBACAA,gBAAiB,CAAA4B,MAAA,CACdC,eAAA,IAAoBA,eAAgB,CAAAC,SAAA,KAAclC,OAAQ,CAA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,EAAAtE,iBAAA;UAEX4B,QAAA,EAAA/B,aAAA,CAAcZ,QAAQqE,WAAW;QAAA,CAAA,CAElC,GAAA,IAAA,EACH3D,UAAA,uBACE4E,YAAE,EAAF;UAAgB3C,QAAC,EAAA,eAAAH,GAAA,CAAA+C,MAAA,EAAA;YAAOvF;WAAkB;QAAG,CAAA,CAAA;MAElD,CAAA,CAAA;IAAA,CACF;EACF,CAAA,CAAA;AAEJ,CAAA;"}
1
+ {"version":3,"file":"ProductHeader.mjs","sources":["../../../../../../../src/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/ProductHeader/ProductHeader.tsx"],"sourcesContent":["import { Tooltip } from \"@ubnt/ui-components/Tooltip\";\nimport { useCallback, useEffect, useMemo, useRef, useState } from \"react\";\n\nimport closeIcon from \"../../../../../../constants/modelCompareData/assets/close.svg\";\nimport { useModelCompareTranslation } from \"../../../../../../constants/modelCompareData/translations/useModelCompareTranslation\";\nimport { useMenu } from \"../../../../../../contexts/MenuContext/context\";\nimport { imageSrc } from \"../../../../../../utils/asset\";\nimport { HEADER_HEIGHT } from \"../../../../../Header/Header.styles\";\nimport { Reveal } from \"../../../../../Reveal/Reveal\";\nimport { StyleableSvgImage } from \"../../../../../StyleableSvgImage\";\nimport * as S from \"../../../CompareTable.styles\";\nimport { getStoreHref } from \"../../../helpers/getStoreHref\";\nimport { Badges } from \"../Badges/Badges\";\nimport type { ProductHeaderProps } from \"./ProductHeader.types\";\n\nexport const ProductHeader = ({\n product,\n setSelectedProducts,\n index,\n setExternalState,\n selectedProducts,\n linkToStoreTitleClick,\n hasBeenObserved,\n isLessThanOrEqualToFiveProducts,\n hasMultipleProductsSelected,\n isSmallScreen,\n showBadges,\n isStaticProduct,\n}: ProductHeaderProps) => {\n const { formatMessage } = useModelCompareTranslation();\n const { createSiteUrl, languageDirection, storeId } = useMenu();\n const [productTitleWidth, setProductTitleWidth] = useState<\n number | undefined\n >(undefined);\n const [toolTipIsPositionedTop, setToolTipIsPositionedTop] = useState(true);\n\n const productTitleRef = useRef<HTMLAnchorElement | HTMLButtonElement | null>(\n null,\n );\n const productMetaRef = useRef<HTMLDivElement | null>(null);\n\n const storeHref = useMemo(\n () => getStoreHref({ product, createSiteUrl, storeId }),\n [product, createSiteUrl, storeId],\n );\n\n const techspecsHref = useMemo(\n () => product.techspecsPath && createSiteUrl(product.techspecsPath),\n [createSiteUrl, product.techspecsPath],\n );\n\n const productTitleHref = useMemo(\n () => (linkToStoreTitleClick ? storeHref : techspecsHref),\n [linkToStoreTitleClick, storeHref, techspecsHref],\n );\n\n const removeHandler = useCallback(() => {\n const updatedProducts =\n selectedProducts &&\n selectedProducts.filter(\n (selectedProduct) => selectedProduct.productId !== product.id,\n );\n\n if (setExternalState && updatedProducts) {\n setExternalState(updatedProducts);\n }\n\n if (updatedProducts && setSelectedProducts) {\n setSelectedProducts(updatedProducts);\n }\n }, [product.id, selectedProducts, setExternalState, setSelectedProducts]);\n\n useEffect(() => {\n if (!productTitleRef.current) return;\n\n setProductTitleWidth(productTitleRef.current.getBoundingClientRect().width);\n }, [productTitleRef]);\n\n useEffect(() => {\n const scrollHandler = () => {\n const APPROXIMATE_TOOLTIP_HEIGHT = 45;\n if (productMetaRef.current)\n setToolTipIsPositionedTop(\n productMetaRef.current.getBoundingClientRect().top >\n HEADER_HEIGHT + APPROXIMATE_TOOLTIP_HEIGHT,\n );\n };\n\n document.addEventListener(\"scroll\", scrollHandler);\n\n return () => {\n document.removeEventListener(\"scroll\", scrollHandler);\n };\n }, []);\n\n return (\n <Reveal index={index} playAnimation={hasBeenObserved}>\n <S.HeaderGridItem>\n {!isLessThanOrEqualToFiveProducts &&\n hasMultipleProductsSelected &&\n !isStaticProduct && (\n <S.RemoveProductButton\n type=\"button\"\n $isSmallScreen={isSmallScreen}\n onClick={removeHandler}\n >\n <StyleableSvgImage src={closeIcon} width={16} height={16} />\n </S.RemoveProductButton>\n )}\n <S.ProductImageWrap height={product.image.height}>\n <S.ProductImage\n loading=\"lazy\"\n decoding=\"async\"\n src={imageSrc(product.image.src)}\n width={product.image.width}\n alt={formatMessage(product.title)}\n />\n </S.ProductImageWrap>\n <S.ProductMeta ref={productMetaRef}>\n {(linkToStoreTitleClick && storeHref) ||\n (!linkToStoreTitleClick && techspecsHref) ? (\n <S.ProductHeaderTooltipStyles>\n <Tooltip\n key={`tooltip-${product.id}`}\n motif=\"light\"\n position={toolTipIsPositionedTop ? \"top\" : \"bottom\"}\n tooltipClassName={S.PRODUCT_HEADER_TOOLTIP_CLASSNAME}\n isInteractive\n description={\n <S.ProductHeaderTooltipLink\n href={productTitleHref}\n target=\"__blank\"\n >\n {formatMessage(\"modelCompare.reviewIn.tooltip\")} Tech Specs\n </S.ProductHeaderTooltipLink>\n }\n >\n <S.ProductHeaderTooltipHoverArea\n $width={productTitleWidth}\n $tooltipIsPositionedTop={toolTipIsPositionedTop}\n />\n <S.ProductTitleLink variant=\"link\" anchor ref={productTitleRef}>\n {formatMessage(product.title)}\n </S.ProductTitleLink>\n </Tooltip>\n </S.ProductHeaderTooltipStyles>\n ) : (\n <S.ProductTitle>{formatMessage(product.title)}</S.ProductTitle>\n )}\n {!!product?.productNote && (\n <S.ProductNote>{formatMessage(product.productNote)}</S.ProductNote>\n )}\n {product.description ? (\n <S.ProductDescription\n $maxWidth={product.descriptionMaxWidth}\n $direction={languageDirection}\n >\n {formatMessage(product.description)}\n </S.ProductDescription>\n ) : null}\n {showBadges && (\n <S.BadgeWrapper>{<Badges product={product} />}</S.BadgeWrapper>\n )}\n </S.ProductMeta>\n </S.HeaderGridItem>\n </Reveal>\n );\n};\n"],"names":["ProductHeader","product","setSelectedProducts","index","setExternalState","selectedProducts","linkToStoreTitleClick","hasBeenObserved","isLessThanOrEqualToFiveProducts","hasMultipleProductsSelected","isSmallScreen","showBadges","isStaticProduct","formatMessage","useModelCompareTranslation","createSiteUrl","languageDirection","storeId","useMenu","productTitleWidth","setProductTitleWidth","useState","toolTipIsPositionedTop","setToolTipIsPositionedTop","productTitleRef","useRef","productMetaRef","storeHref","useMemo","getStoreHref","techspecsHref","techspecsPath","productTitleHref","removeHandler","useCallback","updatedProducts","filter","selectedProduct","productId","id","useEffect","current","getBoundingClientRect","width","scrollHandler","APPROXIMATE_TOOLTIP_HEIGHT","top","HEADER_HEIGHT","document","addEventListener","removeEventListener","jsx","Reveal","playAnimation","children","jsxs","S.HeaderGridItem","S.RemoveProductButton","type","$isSmallScreen","onClick","StyleableSvgImage","src","closeIcon","height","S.ProductImageWrap","image","S.ProductImage","loading","decoding","imageSrc","alt","title","S.ProductMeta","ref","S.ProductHeaderTooltipStyles","Tooltip","motif","position","tooltipClassName","S.PRODUCT_HEADER_TOOLTIP_CLASSNAME","isInteractive","description","S.ProductHeaderTooltipLink","href","target","S.ProductHeaderTooltipHoverArea","$width","$tooltipIsPositionedTop","S.ProductTitleLink","variant","anchor","S.ProductTitle","productNote","S.ProductNote","S.ProductDescription","$maxWidth","descriptionMaxWidth","$direction","S.BadgeWrapper","Badges"],"mappings":";;;;;;;;;;;;;;;;AAeO,MAAMA,gBAAgBA,CAAC;EAC5BC,OAAA;EACAC,mBAAA;EACAC,KAAA;EACAC,gBAAA;EACAC,gBAAA;EACAC,qBAAA;EACAC,eAAA;EACAC,+BAAA;EACAC,2BAAA;EACAC,aAAA;EACAC,UAAA;EACAC;AACF,CAA0B,KAAA;EAClB,MAAA;IAAEC;EAAc,CAAA,GAAIC,0BAA2B,CAAA,CAAA;EACrD,MAAM;IAAEC,aAAA;IAAeC,iBAAmB;IAAAC;EAAA,IAAYC,OAAQ,CAAA,CAAA;EAC9D,MAAM,CAACC,iBAAA,EAAmBC,oBAAoB,CAAA,GAAIC,SAEhD,KAAS,CAAA,CAAA;EACX,MAAM,CAACC,sBAAA,EAAwBC,yBAAyB,CAAA,GAAIF,SAAS,IAAI,CAAA;EAEzE,MAAMG,eAAkB,GAAAC,MAAA,CACtB,IACF,CAAA;EACM,MAAAC,cAAA,GAAiBD,OAA8B,IAAI,CAAA;EAEzD,MAAME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AA,IAAA,EACHvE,UAAA,uBACEwF,YAAE,EAAF;UAAgB7C,QAAC,EAAA,eAAAH,GAAA,CAAAiD,MAAA,EAAA;YAAOnG;WAAkB;QAAG,CAAA,CAAA;MAElD,CAAA,CAAA;IAAA,CACF;EACF,CAAA,CAAA;AAEJ,CAAA;"}
@@ -11,7 +11,7 @@ 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");
14
+ var MinusIcon = require("../../../../../../assets/minus4.svg");
15
15
  var PlusIcon = require("../../../../../../assets/plus5.svg");
16
16
  function _interopDefault(e) {
17
17
  return e && e.__esModule ? e : {
@@ -9,7 +9,7 @@ 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";
12
+ import MinusIcon__default from "../../../../../../assets/minus4.svg";
13
13
  import PlusIcon__default from "../../../../../../assets/plus5.svg";
14
14
  "use strict";
15
15
  const CounterSection = ({
@@ -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
@@ -19,7 +19,7 @@ var ComputeResourceCalculator_types = require('../../../../ComputeResourceCalcul
19
19
  var CustomImage = require('../../../../../CustomImage/CustomImage.js');
20
20
  var SearchIcon = require("../../../../../../assets/search2.svg");
21
21
  var StyleableSvgImage = require('../../../../../StyleableSvgImage/StyleableSvgImage.js');
22
- var MinusIcon = require("../../../../../../assets/minus4.svg");
22
+ var MinusIcon = require("../../../../../../assets/minus5.svg");
23
23
  var PlusIcon = require("../../../../../../assets/plus4.svg");
24
24
  function _interopDefault(e) {
25
25
  return e && e.__esModule ? e : {
@@ -17,7 +17,7 @@ import { isMessageFormatted } from '../../../../ComputeResourceCalculator/Comput
17
17
  import { CustomImage } from '../../../../../CustomImage/CustomImage.mjs';
18
18
  import SearchIcon__default from "../../../../../../assets/search2.svg";
19
19
  import { StyleableSvgImage } from '../../../../../StyleableSvgImage/StyleableSvgImage.mjs';
20
- import MinusIcon__default from "../../../../../../assets/minus4.svg";
20
+ import MinusIcon__default from "../../../../../../assets/minus5.svg";
21
21
  import PlusIcon__default from "../../../../../../assets/plus4.svg";
22
22
  "use strict";
23
23
  const NoopPlaceholder = () => /* @__PURE__ */jsx(Fragment, {});
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var MinusIcon = require("../../../../../../assets/minus4.svg");
6
+ var MinusIcon = require("../../../../../../assets/minus5.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/minus4.svg";
2
- export { default } from "../../../../../../assets/minus4.svg";
1
+ export * from "../../../../../../assets/minus5.svg";
2
+ export { default } from "../../../../../../assets/minus5.svg";
3
3
  //# sourceMappingURL=minus.svg.mjs.map
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var v3Image = require("../../../../assets/ai-lpr.jpg");
6
+ var v3Image = require("../../../../assets/ai-lpr2.jpg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
@@ -1,3 +1,3 @@
1
- export * from "../../../../assets/ai-lpr.jpg";
2
- export { default } from "../../../../assets/ai-lpr.jpg";
1
+ export * from "../../../../assets/ai-lpr2.jpg";
2
+ export { default } from "../../../../assets/ai-lpr2.jpg";
3
3
  //# sourceMappingURL=ai-lpr.jpg.mjs.map
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var BulletIcon = require("../../../../assets/bullet2.svg");
6
+ var BulletIcon = require("../../../../assets/bullet3.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/bullet2.svg";
2
- export { default } from "../../../../assets/bullet2.svg";
1
+ export * from "../../../../assets/bullet3.svg";
2
+ export { default } from "../../../../assets/bullet3.svg";
3
3
  //# sourceMappingURL=bullet.svg.mjs.map
@@ -3,24 +3,24 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var _externalAssets_CCo8CEpV = require("../../../../../assets/udmPro2.jpg");
6
+ var _externalAssets_pESvYnSE = require("../../../../../assets/udmPro.jpg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
10
10
  };
11
11
  }
12
- var _externalAssets_CCo8CEpV__default = /*#__PURE__*/_interopDefault(_externalAssets_CCo8CEpV);
12
+ var _externalAssets_pESvYnSE__default = /*#__PURE__*/_interopDefault(_externalAssets_pESvYnSE);
13
13
  Object.defineProperty(exports, "default", {
14
14
  enumerable: true,
15
15
  get: function () {
16
- return _externalAssets_CCo8CEpV__default["default"];
16
+ return _externalAssets_pESvYnSE__default["default"];
17
17
  }
18
18
  });
19
- Object.keys(_externalAssets_CCo8CEpV).forEach(function (k) {
19
+ Object.keys(_externalAssets_pESvYnSE).forEach(function (k) {
20
20
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
21
21
  enumerable: true,
22
22
  get: function () {
23
- return _externalAssets_CCo8CEpV[k];
23
+ return _externalAssets_pESvYnSE[k];
24
24
  }
25
25
  });
26
26
  });
@@ -1,3 +1,3 @@
1
- export * from "../../../../../assets/udmPro2.jpg";
2
- export { default } from "../../../../../assets/udmPro2.jpg";
1
+ export * from "../../../../../assets/udmPro.jpg";
2
+ export { default } from "../../../../../assets/udmPro.jpg";
3
3
  //# sourceMappingURL=udmPro.jpg.mjs.map
@@ -3,24 +3,24 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var _externalAssets_CMbJW0VT = require("../../../../../assets/udmProMax2.jpg");
6
+ var _externalAssets_CmLfPohF = require("../../../../../assets/udmProMax.jpg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
10
10
  };
11
11
  }
12
- var _externalAssets_CMbJW0VT__default = /*#__PURE__*/_interopDefault(_externalAssets_CMbJW0VT);
12
+ var _externalAssets_CmLfPohF__default = /*#__PURE__*/_interopDefault(_externalAssets_CmLfPohF);
13
13
  Object.defineProperty(exports, "default", {
14
14
  enumerable: true,
15
15
  get: function () {
16
- return _externalAssets_CMbJW0VT__default["default"];
16
+ return _externalAssets_CmLfPohF__default["default"];
17
17
  }
18
18
  });
19
- Object.keys(_externalAssets_CMbJW0VT).forEach(function (k) {
19
+ Object.keys(_externalAssets_CmLfPohF).forEach(function (k) {
20
20
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
21
21
  enumerable: true,
22
22
  get: function () {
23
- return _externalAssets_CMbJW0VT[k];
23
+ return _externalAssets_CmLfPohF[k];
24
24
  }
25
25
  });
26
26
  });
@@ -1,3 +1,3 @@
1
- export * from "../../../../../assets/udmProMax2.jpg";
2
- export { default } from "../../../../../assets/udmProMax2.jpg";
1
+ export * from "../../../../../assets/udmProMax.jpg";
2
+ export { default } from "../../../../../assets/udmProMax.jpg";
3
3
  //# sourceMappingURL=udmProMax.jpg.mjs.map
@@ -3,24 +3,24 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var _externalAssets_CBGnWxM$ = require("../../../../../assets/udmProSpecial2.jpg");
6
+ var _externalAssets_BUotdZNw = require("../../../../../assets/udmProSpecial.jpg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
10
10
  };
11
11
  }
12
- var _externalAssets_CBGnWxM$__default = /*#__PURE__*/_interopDefault(_externalAssets_CBGnWxM$);
12
+ var _externalAssets_BUotdZNw__default = /*#__PURE__*/_interopDefault(_externalAssets_BUotdZNw);
13
13
  Object.defineProperty(exports, "default", {
14
14
  enumerable: true,
15
15
  get: function () {
16
- return _externalAssets_CBGnWxM$__default["default"];
16
+ return _externalAssets_BUotdZNw__default["default"];
17
17
  }
18
18
  });
19
- Object.keys(_externalAssets_CBGnWxM$).forEach(function (k) {
19
+ Object.keys(_externalAssets_BUotdZNw).forEach(function (k) {
20
20
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
21
21
  enumerable: true,
22
22
  get: function () {
23
- return _externalAssets_CBGnWxM$[k];
23
+ return _externalAssets_BUotdZNw[k];
24
24
  }
25
25
  });
26
26
  });
@@ -1,3 +1,3 @@
1
- export * from "../../../../../assets/udmProSpecial2.jpg";
2
- export { default } from "../../../../../assets/udmProSpecial2.jpg";
1
+ export * from "../../../../../assets/udmProSpecial.jpg";
2
+ export { default } from "../../../../../assets/udmProSpecial.jpg";
3
3
  //# sourceMappingURL=udmProSpecial.jpg.mjs.map
@@ -3,24 +3,24 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var _externalAssets_BEqylA9h = require("../../../../../assets/udr3.jpg");
6
+ var _externalAssets_B2f62Ikg = require("../../../../../assets/udr2.jpg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
10
10
  };
11
11
  }
12
- var _externalAssets_BEqylA9h__default = /*#__PURE__*/_interopDefault(_externalAssets_BEqylA9h);
12
+ var _externalAssets_B2f62Ikg__default = /*#__PURE__*/_interopDefault(_externalAssets_B2f62Ikg);
13
13
  Object.defineProperty(exports, "default", {
14
14
  enumerable: true,
15
15
  get: function () {
16
- return _externalAssets_BEqylA9h__default["default"];
16
+ return _externalAssets_B2f62Ikg__default["default"];
17
17
  }
18
18
  });
19
- Object.keys(_externalAssets_BEqylA9h).forEach(function (k) {
19
+ Object.keys(_externalAssets_B2f62Ikg).forEach(function (k) {
20
20
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
21
21
  enumerable: true,
22
22
  get: function () {
23
- return _externalAssets_BEqylA9h[k];
23
+ return _externalAssets_B2f62Ikg[k];
24
24
  }
25
25
  });
26
26
  });
@@ -1,3 +1,3 @@
1
- export * from "../../../../../assets/udr3.jpg";
2
- export { default } from "../../../../../assets/udr3.jpg";
1
+ export * from "../../../../../assets/udr2.jpg";
2
+ export { default } from "../../../../../assets/udr2.jpg";
3
3
  //# sourceMappingURL=udr.jpg.mjs.map