@ubnt/store.core 11.7.0-alpha.0 → 11.7.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/lib/assets/ai-dome.jpg +0 -0
- package/lib/assets/ai-dome2.jpg +0 -0
- package/lib/assets/ai-lpr.jpg +0 -0
- package/lib/assets/ai-lpr2.jpg +0 -0
- package/lib/assets/ai-lpr3.jpg +0 -0
- package/lib/assets/ai-pro.jpg +0 -0
- package/lib/assets/ai-pro2.jpg +0 -0
- package/lib/assets/ai-ptz-precision.jpg +0 -0
- package/lib/assets/ai-ptz-precision2.jpg +0 -0
- package/lib/assets/ai-theta-pro.jpg +0 -0
- package/lib/assets/ai-theta-pro2.jpg +0 -0
- package/lib/assets/ai-theta.jpg +0 -0
- package/lib/assets/ai-theta2.jpg +0 -0
- package/lib/assets/ai-theta3.jpg +0 -0
- package/lib/assets/compact.svg +2 -2
- package/lib/assets/compact2.svg +2 -2
- package/lib/assets/door-hub-mini.jpg +0 -0
- package/lib/assets/door-hub-mini2.jpg +0 -0
- package/lib/assets/floodlight.svg +2 -9
- package/lib/assets/floodlight2.svg +9 -2
- package/lib/assets/g2-reader.jpg +0 -0
- package/lib/assets/g2-reader2.jpg +0 -0
- package/lib/assets/g3-reader-flex.jpg +0 -0
- package/lib/assets/g3-reader-flex2.jpg +0 -0
- package/lib/assets/g3-starter-kit.jpg +0 -0
- package/lib/assets/g3-starter-kit2.jpg +0 -0
- package/lib/assets/g4-ptz.jpg +0 -0
- package/lib/assets/g4-ptz3.jpg +0 -0
- package/lib/assets/g5-bullet.jpg +0 -0
- package/lib/assets/g5-bullet3.jpg +0 -0
- package/lib/assets/g5-dome-ultra.jpg +0 -0
- package/lib/assets/g5-dome-ultra2.jpg +0 -0
- package/lib/assets/g5-dome-ultra3.jpg +0 -0
- package/lib/assets/g5-dome.jpg +0 -0
- package/lib/assets/g5-dome2.jpg +0 -0
- package/lib/assets/g5-flex.jpg +0 -0
- package/lib/assets/g5-flex2.jpg +0 -0
- package/lib/assets/g5-flex3.jpg +0 -0
- package/lib/assets/g5-pro.jpg +0 -0
- package/lib/assets/g5-pro2.jpg +0 -0
- package/lib/assets/g5-ptz.jpg +0 -0
- package/lib/assets/g5-ptz3.jpg +0 -0
- package/lib/assets/g5-turret-ultra.jpg +0 -0
- package/lib/assets/g5-turret-ultra2.jpg +0 -0
- package/lib/assets/g6-bullet.jpg +0 -0
- package/lib/assets/g6-bullet2.jpg +0 -0
- package/lib/assets/g6-instant.jpg +0 -0
- package/lib/assets/g6-instant2.jpg +0 -0
- package/lib/assets/g6-ptz.jpg +0 -0
- package/lib/assets/g6-ptz2.jpg +0 -0
- package/lib/assets/g6-turret.jpg +0 -0
- package/lib/assets/g6-turret2.jpg +0 -0
- package/lib/assets/globe.svg +2 -9
- package/lib/assets/globe2.svg +9 -2
- package/lib/assets/intercom.jpg +0 -0
- package/lib/assets/intercom2.jpg +0 -0
- package/lib/assets/interior-design.svg +2 -2
- package/lib/assets/interior-design2.svg +2 -2
- package/lib/assets/power.svg +1 -4
- package/lib/assets/power2.svg +4 -1
- package/lib/assets/rack.svg +1 -4
- package/lib/assets/rack2.svg +4 -1
- package/lib/assets/ucgFiber.jpg +0 -0
- package/lib/assets/ucgFiber2.jpg +0 -0
- package/lib/assets/ucgMax.jpg +0 -0
- package/lib/assets/ucgMax2.jpg +0 -0
- package/lib/assets/ucgUltra.jpg +0 -0
- package/lib/assets/ucgUltra2.jpg +0 -0
- package/lib/components/Header/Header.js +1 -1
- package/lib/components/Header/Header.mjs +1 -1
- package/lib/components/Header/ProHeader/ProHeader.js +1 -1
- package/lib/components/Header/ProHeader/ProHeader.mjs +1 -1
- package/lib/components/MicrositeHeader/components/HeaderContent/HeaderContent.js +1 -1
- package/lib/components/MicrositeHeader/components/HeaderContent/HeaderContent.mjs +1 -1
- package/lib/components/ModelCompareV4/CompareTable/CompareTable.styles.d.ts +1 -5
- package/lib/components/ModelCompareV4/CompareTable/CompareTable.styles.js +5 -3
- package/lib/components/ModelCompareV4/CompareTable/CompareTable.styles.js.map +1 -1
- package/lib/components/ModelCompareV4/CompareTable/CompareTable.styles.mjs +5 -3
- package/lib/components/ModelCompareV4/CompareTable/CompareTable.styles.mjs.map +1 -1
- package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/ProductHeader/ProductHeader.js +0 -2
- package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/ProductHeader/ProductHeader.js.map +1 -1
- package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/ProductHeader/ProductHeader.mjs +0 -2
- package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/ProductHeader/ProductHeader.mjs.map +1 -1
- package/lib/constants/icons/header/globe.svg.js +1 -1
- package/lib/constants/icons/header/globe.svg.mjs +2 -2
- package/lib/constants/icons/header/index.js +1 -1
- package/lib/constants/icons/header/index.mjs +1 -1
- package/lib/constants/icons/menu/floodlight.svg.js +5 -5
- package/lib/constants/icons/menu/floodlight.svg.mjs +2 -2
- package/lib/constants/icons/menu/index.js +9 -9
- package/lib/constants/icons/menu/index.mjs +3 -3
- package/lib/constants/icons/menu/power.svg.js +5 -5
- package/lib/constants/icons/menu/power.svg.mjs +2 -2
- package/lib/constants/icons/menu/rack.svg.js +5 -5
- package/lib/constants/icons/menu/rack.svg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Bullet/ai-lpr.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Bullet/ai-lpr.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Bullet/ai-pro.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Bullet/ai-pro.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Bullet/g5-pro.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Bullet/g5-pro.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Bullet/g6-bullet.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Bullet/g6-bullet.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/CameraSecurity/ai-lpr.jpg.js +5 -5
- package/lib/constants/modelCompareData/assets/CameraSecurity/ai-lpr.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/CameraSecurity/ai-pro.jpg.js +5 -5
- package/lib/constants/modelCompareData/assets/CameraSecurity/ai-pro.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/CameraSecurity/ai-ptz-precision.jpg.js +5 -5
- package/lib/constants/modelCompareData/assets/CameraSecurity/ai-ptz-precision.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/CameraSecurity/ai-theta-pro.jpg.js +5 -5
- package/lib/constants/modelCompareData/assets/CameraSecurity/ai-theta-pro.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/CameraSecurity/ai-theta.jpg.js +5 -5
- package/lib/constants/modelCompareData/assets/CameraSecurity/ai-theta.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/CameraSecurity/g4-ptz.jpg.js +5 -5
- package/lib/constants/modelCompareData/assets/CameraSecurity/g4-ptz.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/CameraSecurity/g5-bullet.jpg.js +5 -5
- package/lib/constants/modelCompareData/assets/CameraSecurity/g5-bullet.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/CameraSecurity/g5-dome-ultra.jpg.js +5 -5
- package/lib/constants/modelCompareData/assets/CameraSecurity/g5-dome-ultra.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/CameraSecurity/g5-flex.jpg.js +5 -5
- package/lib/constants/modelCompareData/assets/CameraSecurity/g5-flex.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/CameraSecurity/g5-pro.jpg.js +5 -5
- package/lib/constants/modelCompareData/assets/CameraSecurity/g5-pro.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/CameraSecurity/g5-ptz.jpg.js +5 -5
- package/lib/constants/modelCompareData/assets/CameraSecurity/g5-ptz.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/CameraSecurity/g6-bullet.jpg.js +5 -5
- package/lib/constants/modelCompareData/assets/CameraSecurity/g6-bullet.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/CameraSecurity/g6-instant.jpg.js +5 -5
- package/lib/constants/modelCompareData/assets/CameraSecurity/g6-instant.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/CameraSecurity/g6-ptz.jpg.js +5 -5
- package/lib/constants/modelCompareData/assets/CameraSecurity/g6-ptz.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/CameraSecurity/g6-turret.jpg.js +5 -5
- package/lib/constants/modelCompareData/assets/CameraSecurity/g6-turret.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Compact/g5-flex.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Compact/g5-flex.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Compact/g6-instant.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Compact/g6-instant.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Consoles/bigCompare/ucgFiber.jpg.js +5 -5
- package/lib/constants/modelCompareData/assets/Consoles/bigCompare/ucgFiber.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Consoles/bigCompare/ucgMax.jpg.js +5 -5
- package/lib/constants/modelCompareData/assets/Consoles/bigCompare/ucgMax.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Consoles/bigCompare/ucgUltra.jpg.js +5 -5
- package/lib/constants/modelCompareData/assets/Consoles/bigCompare/ucgUltra.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Consoles/ucgFiber.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Consoles/ucgFiber.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Consoles/ucgMax.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Consoles/ucgMax.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Consoles/ucgUltra.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Consoles/ucgUltra.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DomeTurret/ai-dome.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DomeTurret/ai-dome.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DomeTurret/g5-dome-ultra.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DomeTurret/g5-dome-ultra.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DomeTurret/g5-dome.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DomeTurret/g5-dome.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DomeTurret/g5-turret-ultra.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DomeTurret/g5-turret-ultra.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DomeTurret/g6-turret.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DomeTurret/g6-turret.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DoorAccess/door-hub-mini.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DoorAccess/door-hub-mini.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DoorAccess/g2-reader.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DoorAccess/g2-reader.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DoorAccess/g3-reader-flex.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DoorAccess/g3-reader-flex.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DoorAccess/g3-starter-kit.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DoorAccess/g3-starter-kit.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DoorAccess/intercom.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DoorAccess/intercom.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Interior/ai-theta-pro.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Interior/ai-theta-pro.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Interior/ai-theta.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Interior/ai-theta.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/PTZ/ai-ptz-precision.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/PTZ/ai-ptz-precision.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/PTZ/g4-ptz.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/PTZ/g4-ptz.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/PTZ/g5-ptz.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/PTZ/g5-ptz.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/PTZ/g6-ptz.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/PTZ/g6-ptz.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/compact.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/compact.svg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/floodlight.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/floodlight.svg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/globe.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/globe.svg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/interior-design.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/interior-design.svg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/power.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/power.svg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/ai-lpr.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/ai-lpr.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/g5-bullet.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/g5-bullet.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/compact/g5-flex.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/compact/g5-flex.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/ai-dome.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/ai-dome.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-dome-ultra.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-dome-ultra.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-dome.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-dome.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-turret-ultra.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-turret-ultra.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/door-hub-mini.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/door-hub-mini.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g2-reader.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g2-reader.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g3-reader-flex.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g3-reader-flex.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g3-starter-kit.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g3-starter-kit.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/intercom.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/intercom.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/interior-design/ai-theta.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/interior-design/ai-theta.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/compact.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/compact.svg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/interior-design.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/interior-design.svg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/rack.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/rack.svg.mjs +2 -2
- package/lib/constants/modelCompareData/data/CameraSecurity.js +31 -31
- package/lib/constants/modelCompareData/data/CameraSecurity.mjs +16 -16
- package/lib/constants/modelCompareData/data/CloudGateways.js +9 -9
- package/lib/constants/modelCompareData/data/CloudGateways.mjs +6 -6
- package/lib/constants/modelCompareData/data/DreamMachineConsolev4.js +6 -6
- package/lib/constants/modelCompareData/data/DreamMachineConsolev4.mjs +4 -4
- package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Compact.js +1 -1
- package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Compact.mjs +1 -1
- package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/InteriorDesign.js +1 -1
- package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/InteriorDesign.mjs +1 -1
- package/lib/constants/modelCompareData/data/product-list-groups/compact.js +1 -1
- package/lib/constants/modelCompareData/data/product-list-groups/compact.mjs +1 -1
- package/lib/constants/modelCompareData/data/product-list-groups/interiorDesign.js +1 -1
- package/lib/constants/modelCompareData/data/product-list-groups/interiorDesign.mjs +1 -1
- package/lib/constants/modelCompareData/data/products/aiDome.js +2 -2
- package/lib/constants/modelCompareData/data/products/aiDome.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/aiLpr.js +2 -2
- package/lib/constants/modelCompareData/data/products/aiLpr.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/aiPro.js +1 -1
- package/lib/constants/modelCompareData/data/products/aiPro.mjs +1 -1
- package/lib/constants/modelCompareData/data/products/aiPtzPrecision.js +1 -1
- package/lib/constants/modelCompareData/data/products/aiPtzPrecision.mjs +1 -1
- package/lib/constants/modelCompareData/data/products/doorHubMini.js +2 -2
- package/lib/constants/modelCompareData/data/products/doorHubMini.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g2Reader.js +2 -2
- package/lib/constants/modelCompareData/data/products/g2Reader.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g3ReaderFlex.js +2 -2
- package/lib/constants/modelCompareData/data/products/g3ReaderFlex.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g3StarterKit.js +2 -2
- package/lib/constants/modelCompareData/data/products/g3StarterKit.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g4Ptz.js +1 -1
- package/lib/constants/modelCompareData/data/products/g4Ptz.mjs +1 -1
- package/lib/constants/modelCompareData/data/products/g5Bullet.js +1 -1
- package/lib/constants/modelCompareData/data/products/g5Bullet.mjs +1 -1
- package/lib/constants/modelCompareData/data/products/g5Dome.js +2 -2
- package/lib/constants/modelCompareData/data/products/g5Dome.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g5DomeUltra.js +2 -2
- package/lib/constants/modelCompareData/data/products/g5DomeUltra.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g5Flex.js +2 -2
- package/lib/constants/modelCompareData/data/products/g5Flex.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g5Pro.js +1 -1
- package/lib/constants/modelCompareData/data/products/g5Pro.mjs +1 -1
- package/lib/constants/modelCompareData/data/products/g5Ptz.js +1 -1
- package/lib/constants/modelCompareData/data/products/g5Ptz.mjs +1 -1
- package/lib/constants/modelCompareData/data/products/g5TurretUltra.js +2 -2
- package/lib/constants/modelCompareData/data/products/g5TurretUltra.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g6Bullet.js +1 -1
- package/lib/constants/modelCompareData/data/products/g6Bullet.mjs +1 -1
- package/lib/constants/modelCompareData/data/products/g6Instant.js +1 -1
- package/lib/constants/modelCompareData/data/products/g6Instant.mjs +1 -1
- package/lib/constants/modelCompareData/data/products/g6Ptz.js +1 -1
- package/lib/constants/modelCompareData/data/products/g6Ptz.mjs +1 -1
- package/lib/constants/modelCompareData/data/products/g6Turret.js +1 -1
- package/lib/constants/modelCompareData/data/products/g6Turret.mjs +1 -1
- package/lib/constants/modelCompareData/data/products/intercom.js +2 -2
- package/lib/constants/modelCompareData/data/products/intercom.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/theta.js +2 -2
- package/lib/constants/modelCompareData/data/products/theta.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/thetaPro.js +1 -1
- package/lib/constants/modelCompareData/data/products/thetaPro.mjs +1 -1
- package/lib/constants/modelCompareData/data/products/ucgFiber.js +1 -1
- package/lib/constants/modelCompareData/data/products/ucgFiber.mjs +1 -1
- package/lib/constants/modelCompareData/data/products/ucgMax.js +1 -1
- package/lib/constants/modelCompareData/data/products/ucgMax.mjs +1 -1
- package/lib/constants/modelCompareData/data/products/ucgUltra.js +1 -1
- package/lib/constants/modelCompareData/data/products/ucgUltra.mjs +1 -1
- package/lib/constants/modelCompareData/data/properties/accessPowerMethod.js +1 -1
- package/lib/constants/modelCompareData/data/properties/accessPowerMethod.mjs +1 -1
- package/lib/constants/modelCompareData/data/properties/availability.js +1 -1
- package/lib/constants/modelCompareData/data/properties/availability.mjs +1 -1
- package/lib/constants/modelCompareData/data/properties/builtInFloodlight.js +1 -1
- package/lib/constants/modelCompareData/data/properties/builtInFloodlight.mjs +1 -1
- package/lib/constants/modelCompareData/data/properties/dcPowerOutput.js +1 -1
- package/lib/constants/modelCompareData/data/properties/dcPowerOutput.mjs +1 -1
- package/lib/constants/modelCompareData/data/properties/mounting.js +1 -1
- package/lib/constants/modelCompareData/data/properties/mounting.mjs +1 -1
- package/lib/constants/modelCompareData/data/properties/webMode.js +1 -1
- package/lib/constants/modelCompareData/data/properties/webMode.mjs +1 -1
- package/lib/contexts/MenuContext/mapping.js +3 -3
- package/lib/contexts/MenuContext/mapping.mjs +2 -2
- package/lib/contexts/MicrositeMenuContext/mapping.js +3 -3
- package/lib/contexts/MicrositeMenuContext/mapping.mjs +2 -2
- package/package.json +1 -1
package/lib/assets/rack.svg
CHANGED
|
@@ -1,4 +1 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M23 5.20898H8L8 26.209H23V5.20898ZM8 3.70898C7.17157 3.70898 6.5 4.38056 6.5 5.20898V26.209C6.5 27.0374 7.17157 27.709 8 27.709H23C23.8284 27.709 24.5 27.0374 24.5 26.209V5.20898C24.5 4.38056 23.8284 3.70898 23 3.70898H8Z" fill="#212124"/>
|
|
3
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M20.75 8.20898C20.75 7.38056 20.1624 6.70898 19.4375 6.70898H11.5625C10.8376 6.70898 10.25 7.38056 10.25 8.20898V9.70898C10.25 10.5374 10.8376 11.209 11.5625 11.209H19.4375C20.1624 11.209 20.75 10.5374 20.75 9.70898V8.20898ZM11.75 8.20898H19.25V9.70898H11.75V8.20898ZM20.75 16.834C20.75 16.2127 20.1624 15.709 19.4375 15.709H11.5625C10.8376 15.709 10.25 16.2127 10.25 16.834V19.084C10.25 19.7053 10.8376 20.209 11.5625 20.209H19.4375C20.1624 20.209 20.75 19.7053 20.75 19.084V16.834ZM11.75 17.209H19.25V18.709H11.75V17.209ZM20.75 13.459C20.75 13.0448 20.4142 12.709 20 12.709H11C10.5858 12.709 10.25 13.0448 10.25 13.459C10.25 13.8732 10.5858 14.209 11 14.209H20C20.4142 14.209 20.75 13.8732 20.75 13.459ZM20 21.709C20.4142 21.709 20.75 22.0448 20.75 22.459C20.75 22.8732 20.4142 23.209 20 23.209H11C10.5858 23.209 10.25 22.8732 10.25 22.459C10.25 22.0448 10.5858 21.709 11 21.709H20Z" fill="#212124"/>
|
|
4
|
-
</svg>
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="41" height="38" viewBox="0 0 41 38" fill="none"><path fill="#8E8E8E" fill-rule="evenodd" d="M16.232 1.33a.64.64 0 0 1 .64-.64h7.322a.64.64 0 0 1 .64.64v1.26h-8.602V1.33Zm9.29 0v1.26H40.069v.67h.142v-.225c0-.054.044-.098.099-.098h.533c.055 0 .099.044.099.098v.826a.098.098 0 0 1-.099.098h-.533a.098.098 0 0 1-.099-.098v-.225h-.142V4.425h.065V4.2c0-.029.013-.055.032-.073l.004-.003.01-.007.005-.003a.099.099 0 0 1 .048-.012h.534a.098.098 0 0 1 .098.098v.826c0 .01-.001.019-.004.027l-.005.014a.099.099 0 0 1-.09.058h-.533a.098.098 0 0 1-.099-.099v-.224h-.065v15.976a2.85 2.85 0 0 0-1.446-.715v-.688l-.015.305-1.77.044v.297h-1.415v-.262l-1.8.044.016-.246 1.246-.092v-1.446l.538-.024v-1.477l-.215.04-1.646-.093 1.323-.338v-1.23l.538-.137v-1.52l-.369.133h-1.461l1.369-.661v-1.123l.462-.21v-1.353l-.447.255h-1.4l1.324-.938V8.56l.523-.329V6.805H5.58V8.27l.462.29v.784l1.323.938h-1.4l-.385-.22v1.345l.4.183v1.123l1.37.661H5.888l-.308-.111v1.513l.477.121v1.23l1.323.34-1.646.091-.154-.028v1.468l.477.022v1.446l1.246.092.015.246-1.738-.043v1.452l.43-.07v1.491h1.37l-1.8.69v1.1l.477-.175v1.523h1.308L5.58 26.835v.06h3.12v1.445h-.548l.136.361v.008H8.7v1.538H8.29v2.31c0 .11-.089.198-.197.198h-.039v-2.486l-.002-.022h-.296l.002.038v3.923a.93.93 0 0 1-1.86 0v-3.941l.002-.02h-.296l-.001.037v2.471h-.04a.199.199 0 0 1-.088-.021v2.685c0 .109-.089.197-.197.197h-.039v-2.438a1.226 1.226 0 0 0-2.452 0v2.438h-.038a.197.197 0 0 1-.197-.197v-3.71l.405-1.462H.967v-.626H.805v.224a.099.099 0 0 1-.098.099H.173a.099.099 0 0 1-.099-.099v-.826c0-.054.045-.098.099-.098h.534a.098.098 0 0 1 .095.072l.002.009a.104.104 0 0 1 .001.017v.225h.162v-.762H.855v.225a.099.099 0 0 1-.098.098H.223a.099.099 0 0 1-.099-.098v-.826c0-.054.045-.099.099-.099h.534c.054 0 .098.045.098.099v.224h.112V4.798h-.1v.224a.098.098 0 0 1-.099.099H.234a.098.098 0 0 1-.098-.099v-.826c0-.054.044-.098.098-.098h.534c.055 0 .099.044.099.098v.225h.1V3.636H.79v.225a.098.098 0 0 1-.099.098H.158a.098.098 0 0 1-.099-.098v-.826c0-.054.044-.098.099-.098H.69c.055 0 .099.044.099.098v.225h.177v-.67h14.576V1.33c0-.735.595-1.33 1.329-1.33h7.322a1.33 1.33 0 0 1 1.329 1.33ZM4.983 30.246h.384v1.028l-.385-1.028Zm-2.6-1.538h1.784v-.369H2.382v.37Zm3.2-24.488h10.782v1.138H5.581V4.221Zm11.282 1.138V4.221h7.291v1.138h-7.291Zm7.791 0h10.767V4.221H24.655v1.138Zm12.183 1.446v.536l.853-.536h-.853Zm0 3.927V9.215l1.784-1.023v1.725l-1.784.815Zm0 3.67v-1.675l1.784-.646v1.87l-1.784.451Zm0 3.53V16.26l1.784-.325v1.918l-1.784.079Zm0-13.711v1.138h1.784V4.221h-1.784Zm-32.672 0H2.382v1.138h1.784V4.221Zm0 2.584h-.915l.915.575v-.575Zm0 2.445L2.382 8.227v1.718l1.784.815V9.25Zm0 3.5-1.784-.647v1.863l1.784.452v-1.669Zm0 3.522-1.784-.326v1.91l1.784.079v-1.663Zm0 3.453-1.784-.044v2.056l1.784-.293v-1.719Zm0 3.893H3.028l-.646-.254v2.234l1.784-.655v-1.325ZM3.11 32.954a.931.931 0 0 0-.027.224v3.891a.93.93 0 0 0 1.86 0v-3.891a.93.93 0 0 0-1.833-.224ZM9.5 14.528c0-1.166.945-2.112 2.112-2.112h18.082c1.166 0 2.112.946 2.112 2.112v5.493h-.861a2.86 2.86 0 0 0-2.86 2.86v12.933c0 .852.374 1.618.967 2.142h-17.44A2.112 2.112 0 0 1 9.5 35.844v-6.65h1.036a.632.632 0 0 0 .634-.634v-6.746a.633.633 0 0 0-.634-.634H9.5v-6.652ZM10.536 28.7H9.5v-7.028h1.036a.141.141 0 0 1 .14.142v6.746c0 .055-.03.1-.074.124a.134.134 0 0 1-.066.016Zm18.35-5.82a2.06 2.06 0 0 1 2.059-2.059h7.185a2.06 2.06 0 0 1 2.059 2.06v5.966H28.886V22.88Zm0 6.242h11.303v6.692a2.06 2.06 0 0 1-2.06 2.059h-7.184a2.06 2.06 0 0 1-2.06-2.06v-6.691Zm5.651 4.204a1.866 1.866 0 0 1-1.866-1.866h-.343a2.21 2.21 0 1 0 4.418 0h-.343c0 1.03-.835 1.866-1.866 1.866Z" clip-rule="evenodd"/></svg>
|
package/lib/assets/rack2.svg
CHANGED
|
@@ -1 +1,4 @@
|
|
|
1
|
-
<svg
|
|
1
|
+
<svg width="31" height="31" viewBox="0 0 31 31" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M23 5.20898H8L8 26.209H23V5.20898ZM8 3.70898C7.17157 3.70898 6.5 4.38056 6.5 5.20898V26.209C6.5 27.0374 7.17157 27.709 8 27.709H23C23.8284 27.709 24.5 27.0374 24.5 26.209V5.20898C24.5 4.38056 23.8284 3.70898 23 3.70898H8Z" fill="#212124"/>
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M20.75 8.20898C20.75 7.38056 20.1624 6.70898 19.4375 6.70898H11.5625C10.8376 6.70898 10.25 7.38056 10.25 8.20898V9.70898C10.25 10.5374 10.8376 11.209 11.5625 11.209H19.4375C20.1624 11.209 20.75 10.5374 20.75 9.70898V8.20898ZM11.75 8.20898H19.25V9.70898H11.75V8.20898ZM20.75 16.834C20.75 16.2127 20.1624 15.709 19.4375 15.709H11.5625C10.8376 15.709 10.25 16.2127 10.25 16.834V19.084C10.25 19.7053 10.8376 20.209 11.5625 20.209H19.4375C20.1624 20.209 20.75 19.7053 20.75 19.084V16.834ZM11.75 17.209H19.25V18.709H11.75V17.209ZM20.75 13.459C20.75 13.0448 20.4142 12.709 20 12.709H11C10.5858 12.709 10.25 13.0448 10.25 13.459C10.25 13.8732 10.5858 14.209 11 14.209H20C20.4142 14.209 20.75 13.8732 20.75 13.459ZM20 21.709C20.4142 21.709 20.75 22.0448 20.75 22.459C20.75 22.8732 20.4142 23.209 20 23.209H11C10.5858 23.209 10.25 22.8732 10.25 22.459C10.25 22.0448 10.5858 21.709 11 21.709H20Z" fill="#212124"/>
|
|
4
|
+
</svg>
|
package/lib/assets/ucgFiber.jpg
CHANGED
|
Binary file
|
package/lib/assets/ucgFiber2.jpg
CHANGED
|
Binary file
|
package/lib/assets/ucgMax.jpg
CHANGED
|
Binary file
|
package/lib/assets/ucgMax2.jpg
CHANGED
|
Binary file
|
package/lib/assets/ucgUltra.jpg
CHANGED
|
Binary file
|
package/lib/assets/ucgUltra2.jpg
CHANGED
|
Binary file
|
|
@@ -40,7 +40,7 @@ var _externalAssets_CzDCu21b = require("../../assets/hamburger.svg");
|
|
|
40
40
|
var _externalAssets_BPYvPCPi = require("../../assets/logo.svg");
|
|
41
41
|
var _externalAssets_TKrekyEi = require("../../assets/logoUisp.svg");
|
|
42
42
|
var logoUnifi = require("../../assets/logoUnifi.svg");
|
|
43
|
-
var globe = require("../../assets/
|
|
43
|
+
var globe = require("../../assets/globe.svg");
|
|
44
44
|
var Empty = require('./CartModal/Empty/Empty.js');
|
|
45
45
|
var MobileModal = require('../MobileModal/MobileModal.js');
|
|
46
46
|
var Mobile = require('./AccountFrame/Mobile/Mobile.js');
|
|
@@ -38,7 +38,7 @@ import _externalAssets_CzDCu21b__default from "../../assets/hamburger.svg";
|
|
|
38
38
|
import _externalAssets_BPYvPCPi__default from "../../assets/logo.svg";
|
|
39
39
|
import _externalAssets_TKrekyEi__default from "../../assets/logoUisp.svg";
|
|
40
40
|
import logoUnifi__default from "../../assets/logoUnifi.svg";
|
|
41
|
-
import globe__default from "../../assets/
|
|
41
|
+
import globe__default from "../../assets/globe.svg";
|
|
42
42
|
import { EmptyCartModal } from './CartModal/Empty/Empty.mjs';
|
|
43
43
|
import { MobileModal } from '../MobileModal/MobileModal.mjs';
|
|
44
44
|
import { AccountFrameMobile } from './AccountFrame/Mobile/Mobile.mjs';
|
|
@@ -46,7 +46,7 @@ var ScrollWrapper = require('../../ScrollWrapper/ScrollWrapper.js');
|
|
|
46
46
|
var MenuItem = require('../MenuItem/MenuItem.js');
|
|
47
47
|
var _externalAssets_g50k1DIN = require("../../../assets/search.svg");
|
|
48
48
|
var Tooltip = require('../../Tooltip/Tooltip.js');
|
|
49
|
-
var globe = require("../../../assets/
|
|
49
|
+
var globe = require("../../../assets/globe.svg");
|
|
50
50
|
var HistoryIcon = require("../../../assets/icon-history.svg");
|
|
51
51
|
var EAIcon = require("../../../assets/icon-ea.svg");
|
|
52
52
|
var _externalAssets_DtGmfNK5 = require("../../../assets/closeLarge.svg");
|
|
@@ -44,7 +44,7 @@ import { ScrollWrapper } from '../../ScrollWrapper/ScrollWrapper.mjs';
|
|
|
44
44
|
import { MenuItem } from '../MenuItem/MenuItem.mjs';
|
|
45
45
|
import _externalAssets_g50k1DIN__default from "../../../assets/search.svg";
|
|
46
46
|
import { Tooltip } from '../../Tooltip/Tooltip.mjs';
|
|
47
|
-
import globe__default from "../../../assets/
|
|
47
|
+
import globe__default from "../../../assets/globe.svg";
|
|
48
48
|
import HistoryIcon__default from "../../../assets/icon-history.svg";
|
|
49
49
|
import EAIcon__default from "../../../assets/icon-ea.svg";
|
|
50
50
|
import _externalAssets_DtGmfNK5__default from "../../../assets/closeLarge.svg";
|
|
@@ -39,7 +39,7 @@ var logoUnifi = require("../../../../assets/logoUnifi.svg");
|
|
|
39
39
|
var NavigationItem = require('./_components/NavigationItem/NavigationItem.js');
|
|
40
40
|
var DropdownMenu = require('../DropdownMenu/DropdownMenu.js');
|
|
41
41
|
var SubNavigation = require('./_components/SubNavigation/SubNavigation.js');
|
|
42
|
-
var globe = require("../../../../assets/
|
|
42
|
+
var globe = require("../../../../assets/globe.svg");
|
|
43
43
|
var accountLogo = require("../../../../assets/account.svg");
|
|
44
44
|
var MicrositeMobileMenu = require('../../../Header/MicrositeMobileMenu/MicrositeMobileMenu.js');
|
|
45
45
|
var MobileModal = require('../../../MobileModal/MobileModal.js');
|
|
@@ -37,7 +37,7 @@ import logoUnifi__default from "../../../../assets/logoUnifi.svg";
|
|
|
37
37
|
import { NavigationItem } from './_components/NavigationItem/NavigationItem.mjs';
|
|
38
38
|
import { DropdownMenu } from '../DropdownMenu/DropdownMenu.mjs';
|
|
39
39
|
import { SubNavigation } from './_components/SubNavigation/SubNavigation.mjs';
|
|
40
|
-
import globe__default from "../../../../assets/
|
|
40
|
+
import globe__default from "../../../../assets/globe.svg";
|
|
41
41
|
import accountLogo__default from "../../../../assets/account.svg";
|
|
42
42
|
import { MicrositeMobileMenu } from '../../../Header/MicrositeMobileMenu/MicrositeMobileMenu.mjs';
|
|
43
43
|
import { MobileModal } from '../../../MobileModal/MobileModal.mjs';
|
|
@@ -55,11 +55,7 @@ export declare const RemoveProductButton: import("styled-components/dist/types")
|
|
|
55
55
|
}>> & string;
|
|
56
56
|
export declare const ProductMeta: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
57
57
|
export declare const ProductTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
58
|
-
export declare const ProductTitleLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("
|
|
59
|
-
children?: import("react").ReactNode;
|
|
60
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("../../Button/Button.types").ButtonProps & {
|
|
61
|
-
children?: import("react").ReactNode;
|
|
62
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
58
|
+
export declare const ProductTitleLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
63
59
|
export declare const ProductDescription: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
64
60
|
$maxWidth?: number;
|
|
65
61
|
$direction: LanguageDirectionType;
|
|
@@ -8,9 +8,9 @@ require('../../Button/index.js');
|
|
|
8
8
|
require('../../StyleableSvgImage/index.js');
|
|
9
9
|
require('./CompareTableMarkup/components/StickyGrid/index.js');
|
|
10
10
|
var StickyGridItem = require('./CompareTableMarkup/components/StickyGrid/StickyGridItem.js');
|
|
11
|
-
var Button$1 = require('../../Button/Button.js');
|
|
12
11
|
var Badge$1 = require('../../Badge/Badge.js');
|
|
13
12
|
var StyleableSvgImage = require('../../StyleableSvgImage/StyleableSvgImage.js');
|
|
13
|
+
var Button$1 = require('../../Button/Button.js');
|
|
14
14
|
function _interopDefault(e) {
|
|
15
15
|
return e && e.__esModule ? e : {
|
|
16
16
|
default: e
|
|
@@ -62,7 +62,7 @@ const ProductHeaderTooltipHoverArea = styled__default["default"].div`
|
|
|
62
62
|
width: ${({
|
|
63
63
|
$width
|
|
64
64
|
}) => $width ?? 175}px;
|
|
65
|
-
height:
|
|
65
|
+
height: 40px;
|
|
66
66
|
`;
|
|
67
67
|
const ProductHeaderTooltipLink = styled__default["default"].a`
|
|
68
68
|
color: ${theme.theme.colors.primaryBlue};
|
|
@@ -162,9 +162,11 @@ const ProductTitle = styled__default["default"].div`
|
|
|
162
162
|
font-size: 14px;
|
|
163
163
|
}
|
|
164
164
|
`;
|
|
165
|
-
const ProductTitleLink = styled__default["default"]
|
|
165
|
+
const ProductTitleLink = styled__default["default"].button`
|
|
166
166
|
${productTitleStyles}
|
|
167
167
|
color: ${theme.theme.colors.primaryBlue};
|
|
168
|
+
border: none;
|
|
169
|
+
background: transparent;
|
|
168
170
|
|
|
169
171
|
:focus,
|
|
170
172
|
:hover {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompareTable.styles.js","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 = createGlobalStyle`\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 text-align: center;\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 PropertyTooltipHoverArea = styled.div`\n position: absolute;\n height: 35px;\n width: 35px;\n top: 50%;\n transform: translateY(-50%);\n`;\n\nexport const PropertyTooltip = styled.div`\n position: relative;\n height: 20px;\n`;\n\nexport const PropertyTooltipContent = styled.div`\n color: ${theme.colors.black85};\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 background: ${theme.colors.white};\n\n &::before {\n box-shadow: 0 8px 24px 0 #00000014;\n background: ${theme.colors.white};\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","createGlobalStyle","ProductHeaderTooltipHoverArea","div","$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","PropertyTooltipHoverArea","PropertyTooltip","PropertyTooltipContent","black85","TooltipIcon","StyleableSvgImage","ButtonWrap","buttonStyles","Button","$removePointerEvents","ComingSoon","NotesWrap","Note","FootnotesWrap","Footnote","KitIncluded","TooltipStyles","maxWidth"],"mappings":";;;;;;;;;;;;;;;;;;;;AAUO,MAAMA,iBAAoB,GAAA,GAAA;AAE1B,MAAMC,kBAAqB,GAAA,uBAAA;AAC3B,MAAMC,gCACX,GAAA,sCAAA;AAEW,MAAAC,mBAAA,GAAsBC,2BAAOC,6BAAc,CAAA;AAAA,g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BAAgB5E,eAAO,CAAA,SAAA,CAAA,CAAAY,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAO7B,MAAMiE,WAAW7E,eAAO,CAAA,SAAA,CAAA,CAAAY,GAAA;AAAA;AAAA,iBAEd,KAAK,EAAE;AAAA,WACbV,KAAA,CAAAA,KAAA,CAAMC,OAAOwC,OAAO;AAAA;AAAA,CAAA;AAIxB,MAAMmC,cAAc9E,eAAO,CAAA,SAAA,CAAA,CAAAY,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAKvBV,KAAA,CAAAA,KAAA,CAAMC,OAAOiC,OAAO;AAAA,CAAA;AAGxB,MAAM2C,aAAgB,GAAArE,MAAA,CAAAA,iBAAA;AAAA,KACxBb,kBAAkB;AAAA;AAAA,iBAEN,CAAC;EAAEmF;CAAS,KAAMA,YAAY,GAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAMhC9E,KAAA,CAAAA,KAAA,CAAMC,OAAOC,KAAK;;AAAA;AAAA;AAAA,oBAIhBF,KAAA,CAAAA,KAAA,CAAMC,OAAOC,KAAK;AAAA;AAAA;AAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"CompareTable.styles.js","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 = createGlobalStyle`\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 text-align: center;\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: 40px;\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.button`\n ${productTitleStyles}\n color: ${theme.colors.primaryBlue};\n border: none;\n background: transparent;\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 PropertyTooltipHoverArea = styled.div`\n position: absolute;\n height: 35px;\n width: 35px;\n top: 50%;\n transform: translateY(-50%);\n`;\n\nexport const PropertyTooltip = styled.div`\n position: relative;\n height: 20px;\n`;\n\nexport const PropertyTooltipContent = styled.div`\n color: ${theme.colors.black85};\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 background: ${theme.colors.white};\n\n &::before {\n box-shadow: 0 8px 24px 0 #00000014;\n background: ${theme.colors.white};\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","createGlobalStyle","ProductHeaderTooltipHoverArea","div","$tooltipIsPositionedTop","css","$width","ProductHeaderTooltipLink","a","primaryBlue","HeaderGridItem","BREAKPOINTS","MOBILE_AND_DOWN","EmptyHeaderGridItem","EmptyHeaderEmptyProductDescription","$headerItemsAreSticking","HeaderGridItemContainer","RemoveProductButton","button","$isSmallScreen","ProductMeta","productTitleStyles","ProductTitle","black","ProductTitleLink","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","PropertyTooltipHoverArea","PropertyTooltip","PropertyTooltipContent","black85","TooltipIcon","StyleableSvgImage","ButtonWrap","buttonStyles","Button","ButtonBase","$removePointerEvents","ComingSoon","NotesWrap","Note","FootnotesWrap","Footnote","KitIncluded","TooltipStyles","maxWidth"],"mappings":";;;;;;;;;;;;;;;;;;;;AAUO,MAAMA,iBAAoB,GAAA,GAAA;AAE1B,MAAMC,kBAAqB,GAAA,uBAAA;AAC3B,MAAMC,gCACX,GAAA,sCAAA;AAEW,MAAAC,mBAAA,GAAsBC,2BAAOC,6BAAc,CAAA;AAAA,gBACxCC,KAAA,CAAAA,KAAA,CAAMC,OAAOC,KAAK;AAAA;AAAA,CAAA;AAIrB,MAAAC,yBAAA,GAA4BL,eAAAA,CAAAA,SAAAA,EAAOC,cAAAA,CAAAA,cAAc,CAAA,EAAA;AAEvD,MAAMK,0BAA6B,GAAA,EAAA;AAEnC,MAAMC,4BAA+B,GAAA,EAAA;AACrC,MAAMC,2BAA8B,GAAA,EAAA;AAEpC,MAAMC,0BAA6B,GAAAC,MAAA,CAAAA,iBAAA;AAAA,KACrCZ,gCAAgC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAmB9B,MAAMa,gCAAgCX,eAAO,CAAA,SAAA,CAAA,CAAAY,GAAA;AAAA;AAAA,IAKhD,CAAC;EAAEC;CAAwB,KAC3BA,uBACI,GAAAC,MAAA,CAAAA,GAAA;AAAA;AAAA,SAGA,GAAAA,MAAA,CAAAA,GAAA;AAAA;AAAA,SAEC;AAAA;AAAA;AAAA;AAAA,WAIE,CAAC;EAAEC;CAAO,KAAMA,UAAU,GAAG;AAAA;AAAA,CAAA;AAIjC,MAAMC,2BAA2BhB,eAAO,CAAA,SAAA,CAAA,CAAAiB,CAAA;AAAA,WACpCf,KAAA,CAAAA,KAAA,CAAMC,OAAOe,WAAW;;AAAA;AAAA,aAGtBhB,KAA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|
|
7
7
|
import './CompareTableMarkup/components/StickyGrid/index.mjs';
|
|
8
8
|
import { StickyGridItem } from './CompareTableMarkup/components/StickyGrid/StickyGridItem.mjs';
|
|
9
|
-
import { Button as Button$1 } from '../../Button/Button.mjs';
|
|
10
9
|
import { Badge as Badge$1 } from '../../Badge/Badge.mjs';
|
|
11
10
|
import { StyleableSvgImage } from '../../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
11
|
+
import { Button as Button$1 } from '../../Button/Button.mjs';
|
|
12
12
|
"use strict";
|
|
13
13
|
const MOBILE_BREAKPOINT = 650;
|
|
14
14
|
const TOOLTIP_CLASS_NAME = `model-compare-tooltip`;
|
|
@@ -54,7 +54,7 @@ const ProductHeaderTooltipHoverArea = styled.div`
|
|
|
54
54
|
width: ${({
|
|
55
55
|
$width
|
|
56
56
|
}) => $width ?? 175}px;
|
|
57
|
-
height:
|
|
57
|
+
height: 40px;
|
|
58
58
|
`;
|
|
59
59
|
const ProductHeaderTooltipLink = styled.a`
|
|
60
60
|
color: ${theme.colors.primaryBlue};
|
|
@@ -154,9 +154,11 @@ const ProductTitle = styled.div`
|
|
|
154
154
|
font-size: 14px;
|
|
155
155
|
}
|
|
156
156
|
`;
|
|
157
|
-
const ProductTitleLink = styled
|
|
157
|
+
const ProductTitleLink = styled.button`
|
|
158
158
|
${productTitleStyles}
|
|
159
159
|
color: ${theme.colors.primaryBlue};
|
|
160
|
+
border: none;
|
|
161
|
+
background: transparent;
|
|
160
162
|
|
|
161
163
|
:focus,
|
|
162
164
|
:hover {
|
|
@@ -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 = createGlobalStyle`\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 text-align: center;\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 PropertyTooltipHoverArea = styled.div`\n position: absolute;\n height: 35px;\n width: 35px;\n top: 50%;\n transform: translateY(-50%);\n`;\n\nexport const PropertyTooltip = styled.div`\n position: relative;\n height: 20px;\n`;\n\nexport const PropertyTooltipContent = styled.div`\n color: ${theme.colors.black85};\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 background: ${theme.colors.white};\n\n &::before {\n box-shadow: 0 8px 24px 0 #00000014;\n background: ${theme.colors.white};\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","createGlobalStyle","ProductHeaderTooltipHoverArea","div","$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","PropertyTooltipHoverArea","PropertyTooltip","PropertyTooltipContent","black85","TooltipIcon","StyleableSvgImage","ButtonWrap","buttonStyles","Button","$removePointerEvents","ComingSoon","NotesWrap","Note","FootnotesWrap","Footnote","KitIncluded","TooltipStyles","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,0BAA6B,GAAAC,iBAAA;AAAA,KACrCZ,gCAAgC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAmB9B,MAAMa,gCAAgCX,MAAO,CAAAY,GAAA;AAAA;AAAA,IAKhD,CAAC;EAAEC;CAAwB,KAC3BA,uBACI,GAAAC,GAAA;AAAA;AAAA,SAGA,GAAAA,GAAA;AAAA;AAAA,SAEC;AAAA;AAAA;AAAA;AAAA,WAIE,CAAC;EAAEC;CAAO,KAAMA,UAAU,GAAG;AAAA;AAAA,CAAA;AAIjC,MAAMC,2BAA2BhB,MAAO,CAAAiB,CAAA;AAAA,WACpCf,KAA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Bb,kBAAkB;AAAA;AAAA,iBAEN,CAAC;EAAEmF;CAAS,KAAMA,YAAY,GAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAMhC9E,KAAA,CAAMC,OAAOC,KAAK;;AAAA;AAAA;AAAA,oBAIhBF,KAAA,CAAMC,OAAOC,KAAK;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 = createGlobalStyle`\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 text-align: center;\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: 40px;\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.button`\n ${productTitleStyles}\n color: ${theme.colors.primaryBlue};\n border: none;\n background: transparent;\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 PropertyTooltipHoverArea = styled.div`\n position: absolute;\n height: 35px;\n width: 35px;\n top: 50%;\n transform: translateY(-50%);\n`;\n\nexport const PropertyTooltip = styled.div`\n position: relative;\n height: 20px;\n`;\n\nexport const PropertyTooltipContent = styled.div`\n color: ${theme.colors.black85};\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 background: ${theme.colors.white};\n\n &::before {\n box-shadow: 0 8px 24px 0 #00000014;\n background: ${theme.colors.white};\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","createGlobalStyle","ProductHeaderTooltipHoverArea","div","$tooltipIsPositionedTop","css","$width","ProductHeaderTooltipLink","a","primaryBlue","HeaderGridItem","BREAKPOINTS","MOBILE_AND_DOWN","EmptyHeaderGridItem","EmptyHeaderEmptyProductDescription","$headerItemsAreSticking","HeaderGridItemContainer","RemoveProductButton","button","$isSmallScreen","ProductMeta","productTitleStyles","ProductTitle","black","ProductTitleLink","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","PropertyTooltipHoverArea","PropertyTooltip","PropertyTooltipContent","black85","TooltipIcon","StyleableSvgImage","ButtonWrap","buttonStyles","Button","ButtonBase","$removePointerEvents","ComingSoon","NotesWrap","Note","FootnotesWrap","Footnote","KitIncluded","TooltipStyles","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,M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O3E,MAAO,CAAAY,GAAA;AAAA;AAAA,iBAEV,KAAK,EAAE;AAAA,WACbV,KAAA,CAAMC,OAAOuC,OAAO;AAAA;AAAA,CAAA;AAIxB,MAAMkC,gBAAgB5E,MAAO,CAAAY,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAO7B,MAAMiE,WAAW7E,MAAO,CAAAY,GAAA;AAAA;AAAA,iBAEd,KAAK,EAAE;AAAA,WACbV,KAAA,CAAMC,OAAOuC,OAAO;AAAA;AAAA,CAAA;AAIxB,MAAMoC,cAAc9E,MAAO,CAAAY,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAKvBV,KAAA,CAAMC,OAAOgC,OAAO;AAAA,CAAA;AAGxB,MAAM4C,aAAgB,GAAArE,iBAAA;AAAA,KACxBb,kBAAkB;AAAA;AAAA,iBAEN,CAAC;EAAEmF;CAAS,KAAMA,YAAY,GAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAMhC9E,KAAA,CAAMC,OAAOC,KAAK;;AAAA;AAAA;AAAA,oBAIhBF,KAAA,CAAMC,OAAOC,KAAK;AAAA;AAAA;AAAA,CAAA;"}
|
|
@@ -118,8 +118,6 @@ const ProductHeader = ({
|
|
|
118
118
|
$width: productTitleWidth,
|
|
119
119
|
$tooltipIsPositionedTop: toolTipIsPositionedTop
|
|
120
120
|
}), /* @__PURE__ */jsxRuntime.jsx(CompareTable_styles.ProductTitleLink, {
|
|
121
|
-
variant: "link",
|
|
122
|
-
anchor: true,
|
|
123
121
|
ref: productTitleRef,
|
|
124
122
|
children: formatMessage(product.title)
|
|
125
123
|
})]
|
|
@@ -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 { 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 <>\n {/* Instantiates global styles for ProductHeader's tooltip */}\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 portal\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 </>\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","Fragment","S.ProductHeaderTooltipStyles","Tooltip","motif","position","tooltipClassName","S.PRODUCT_HEADER_TOOLTIP_CLASSNAME","PRODUCT_HEADER_TOOLTIP_CLASSNAME","portal","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,CAAA,GAAIF,KAAAA,CAAAA,SAAS,IAAI,CAAA;EAEzE,MAAMG,eAAkB,GAAAC,KAAA,CAAAA,MAAA,CACtB,IACF,CAAA;EACM,MAAAC,cAAA,GAAiBD,aAA8B,IAAI,CAAA;EAEzD,MAAME,SAAY,GAAAC,KAAA,CAAAA,OAAA,CAChB,MAAMC,YAAa,CAAAA,YAAA,CAAA;IAAE5B,OAAS;IAAAc,aAAA;IAAeE;GAAS,CAAA,EACtD,CAAChB,OAAS,EAAAc,aAAA,EAAeE,OAAO,CAClC,CAAA;EAEA,MAAMa,aAAgB,GAAAF,KAAA,CAAAA,OAAA,CACpB,MAAM3B,OAAA,CAAQ8B,aAAiB,IAAAhB,aAAA,CAAcd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AAA,EAAF;UAAejD,QAAA,EAAAzC,aAAA,CAAcZ,OAAQ,CAAAoG,WAAW;SAAE,CAAA,EAEpDpG,QAAQuF,WACP,GAAA,eAAArC,UAAA,CAAAA,GAAA,CAACqD,mBAAE,CAAAC,kBAAA,EAAF;UACCC,WAAWzG,OAAQ,CAAA0G,mBAAA;UACnBC,UAAY,EAAA5F,iBAAA;UAEXsC,QAAA,EAAAzC,aAAA,CAAcZ,QAAQuF,WAAW;QAAA,CAAA,CAElC,GAAA,IAAA,EACH7E,UAAA,kCACEkG,mBAAAA,CAAAA,YAAE,EAAF;UAAgBvD,QAAC,EAAAH,eAAAA,UAAAA,CAAAA,GAAA,CAAA2D,MAAA,CAAAA,MAAA,EAAA;YAAO7G;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<HTMLButtonElement | null>(null);\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 <>\n {/* Instantiates global styles for ProductHeader's tooltip */}\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 portal\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 ref={productTitleRef}>\n {formatMessage(product.title)}\n </S.ProductTitleLink>\n </Tooltip>\n </>\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","Fragment","S.ProductHeaderTooltipStyles","Tooltip","motif","position","tooltipClassName","S.PRODUCT_HEADER_TOOLTIP_CLASSNAME","PRODUCT_HEADER_TOOLTIP_CLASSNAME","portal","isInteractive","description","S.ProductHeaderTooltipLink","ProductHeaderTooltipLink","href","target","S.ProductHeaderTooltipHoverArea","ProductHeaderTooltipHoverArea","$width","$tooltipIsPositionedTop","S.ProductTitleLink","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;IAAE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Width,
|
|
111
111
|
$tooltipIsPositionedTop: toolTipIsPositionedTop
|
|
112
112
|
}), /* @__PURE__ */jsx(ProductTitleLink, {
|
|
113
|
-
variant: "link",
|
|
114
|
-
anchor: true,
|
|
115
113
|
ref: productTitleRef,
|
|
116
114
|
children: formatMessage(product.title)
|
|
117
115
|
})]
|
|
@@ -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 { 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 <>\n {/* Instantiates global styles for ProductHeader's tooltip */}\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 portal\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 </>\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","Fragment","S.ProductHeaderTooltipStyles","Tooltip","motif","position","tooltipClassName","S.PRODUCT_HEADER_TOOLTIP_CLASSNAME","portal","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,SAAY,GAAAC,OAA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AAY,EAAApF,iBAAA;UAEXsC,QAAA,EAAAzC,aAAA,CAAcZ,QAAQmF,WAAW;QAAA,CAAA,CAElC,GAAA,IAAA,EACHzE,UAAA,uBACE0F,YAAE,EAAF;UAAgB/C,QAAC,EAAA,eAAAH,GAAA,CAAAmD,MAAA,EAAA;YAAOrG;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<HTMLButtonElement | null>(null);\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 <>\n {/* Instantiates global styles for ProductHeader's tooltip */}\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 portal\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 ref={productTitleRef}>\n {formatMessage(product.title)}\n </S.ProductTitleLink>\n </Tooltip>\n </>\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","Fragment","S.ProductHeaderTooltipStyles","Tooltip","motif","position","tooltipClassName","S.PRODUCT_HEADER_TOOLTIP_CLASSNAME","portal","isInteractive","description","S.ProductHeaderTooltipLink","href","target","S.ProductHeaderTooltipHoverArea","$width","$tooltipIsPositionedTop","S.ProductTitleLink","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;EAEnE,MAAAG,eAAA,GAAkBC,OAAiC,IAAI,CAAA;EACvD,MAAAC,cAAA,GAAiBD,OAA8B,IAAI,CAAA;EAEzD,MAAME,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,aAAA,CAAcZ,QAAQmF,WAAW;QAAA,CAAA,CAElC,GAAA,IAAA,EACHzE,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;"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../assets/
|
|
2
|
-
export { default } from "../../../assets/
|
|
1
|
+
export * from "../../../assets/globe.svg";
|
|
2
|
+
export { default } from "../../../assets/globe.svg";
|
|
3
3
|
//# sourceMappingURL=globe.svg.mjs.map
|
|
@@ -7,7 +7,7 @@ require('./logoUnifi.svg.js');
|
|
|
7
7
|
require('./logoUisp.svg.js');
|
|
8
8
|
require('./arrow.svg.js');
|
|
9
9
|
var accountLogo = require("../../../assets/account.svg");
|
|
10
|
-
var globe = require("../../../assets/
|
|
10
|
+
var globe = require("../../../assets/globe.svg");
|
|
11
11
|
var _externalAssets_BPYvPCPi = require("../../../assets/logo.svg");
|
|
12
12
|
var logoUnifi = require("../../../assets/logoUnifi.svg");
|
|
13
13
|
var _externalAssets_TKrekyEi = require("../../../assets/logoUisp.svg");
|
|
@@ -5,7 +5,7 @@ import './logoUnifi.svg.mjs';
|
|
|
5
5
|
import './logoUisp.svg.mjs';
|
|
6
6
|
import './arrow.svg.mjs';
|
|
7
7
|
export { default as account } from "../../../assets/account.svg";
|
|
8
|
-
export { default as globe } from "../../../assets/
|
|
8
|
+
export { default as globe } from "../../../assets/globe.svg";
|
|
9
9
|
export { default as logo } from "../../../assets/logo.svg";
|
|
10
10
|
export { default as logoUnifi } from "../../../assets/logoUnifi.svg";
|
|
11
11
|
export { default as logoUisp } from "../../../assets/logoUisp.svg";
|