@ubnt/store.core 10.10.0-beta.2 → 10.10.0-beta.4
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 +10 -0
- package/lib/assets/ai-dslr.jpg +0 -0
- package/lib/assets/ai-dslr2.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/bullet.svg +1 -3
- package/lib/assets/bullet2.svg +3 -1
- package/lib/assets/door-hub-mini.jpg +0 -0
- package/lib/assets/door-hub-mini2.jpg +0 -0
- package/lib/assets/door-hub.jpg +0 -0
- package/lib/assets/door-hub2.jpg +0 -0
- package/lib/assets/e7-audience.jpg +0 -0
- package/lib/assets/e7-audience2.jpg +0 -0
- package/lib/assets/e7.jpg +0 -0
- package/lib/assets/e72.jpg +0 -0
- package/lib/assets/flex.jpg +0 -0
- package/lib/assets/flex2.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-reader-pro.jpg +0 -0
- package/lib/assets/g3-reader-pro2.jpg +0 -0
- package/lib/assets/g3-reader.jpg +0 -0
- package/lib/assets/g3-reader2.jpg +0 -0
- package/lib/assets/g3-starter-kit-pro.jpg +0 -0
- package/lib/assets/g3-starter-kit-pro2.jpg +0 -0
- package/lib/assets/g4-ptz2.jpg +0 -0
- package/lib/assets/g4-ptz3.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-flex.jpg +0 -0
- package/lib/assets/g5-flex2.jpg +0 -0
- package/lib/assets/g5-ptz2.jpg +0 -0
- package/lib/assets/g5-ptz3.jpg +0 -0
- package/lib/assets/globe.svg +2 -9
- package/lib/assets/globe2.svg +9 -2
- package/lib/assets/interior-design.svg +2 -2
- package/lib/assets/interior-design2.svg +2 -2
- package/lib/assets/minus.svg +1 -3
- package/lib/assets/minus2.svg +3 -1
- package/lib/assets/power.svg +1 -4
- package/lib/assets/power2.svg +4 -1
- package/lib/assets/ptz.svg +2 -2
- package/lib/assets/ptz2.svg +2 -2
- package/lib/assets/rack.svg +1 -4
- package/lib/assets/rack2.svg +4 -1
- package/lib/assets/u6-extender.jpg +0 -0
- package/lib/assets/u6-extender2.jpg +0 -0
- package/lib/assets/u6-in-wall.jpg +0 -0
- package/lib/assets/u6-in-wall2.jpg +0 -0
- package/lib/assets/u7-pro-max.jpg +0 -0
- package/lib/assets/u7-pro-max2.jpg +0 -0
- package/lib/components/Header/CartModalV2/Item/Item.js +3 -3
- package/lib/components/Header/CartModalV2/Item/Item.mjs +2 -2
- package/lib/components/Header/Header.js +3 -3
- package/lib/components/Header/Header.mjs +2 -2
- package/lib/components/Header/ProHeader/ProHeader.js +3 -3
- package/lib/components/Header/ProHeader/ProHeader.mjs +2 -2
- package/lib/components/Microsites/MicrositeProductPage.js +1 -1
- package/lib/components/Microsites/MicrositeProductPage.js.map +1 -1
- package/lib/components/Microsites/MicrositeProductPage.mjs +1 -1
- package/lib/components/Microsites/MicrositeProductPage.mjs.map +1 -1
- package/lib/components/Microsites/Microsites.types.d.ts +5 -2
- package/lib/components/Microsites/Microsites.types.js.map +1 -1
- package/lib/components/Microsites/Microsites.types.mjs.map +1 -1
- package/lib/components/ModelCompareV3/ModelComparePropertyValueGridItem.js +1 -1
- package/lib/components/ModelCompareV3/ModelComparePropertyValueGridItem.mjs +1 -1
- package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/PropertyValueGridItem.js +1 -1
- package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/PropertyValueGridItem.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js +1 -5
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.mjs +2 -6
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.mjs.map +1 -1
- package/lib/constants/icons/generic/index.js +3 -3
- package/lib/constants/icons/generic/index.mjs +1 -1
- package/lib/constants/icons/generic/minus.svg.js +5 -5
- package/lib/constants/icons/generic/minus.svg.mjs +2 -2
- package/lib/constants/icons/header/globe.svg.js +5 -5
- package/lib/constants/icons/header/globe.svg.mjs +2 -2
- package/lib/constants/icons/header/index.js +3 -3
- package/lib/constants/icons/header/index.mjs +1 -1
- package/lib/constants/icons/menu/bullet.svg.js +5 -5
- package/lib/constants/icons/menu/bullet.svg.mjs +2 -2
- package/lib/constants/icons/menu/index.js +12 -12
- package/lib/constants/icons/menu/index.mjs +4 -4
- 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/ptz.svg.js +5 -5
- package/lib/constants/icons/menu/ptz.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-dslr.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Bullet/ai-dslr.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/Compact/g5-flex.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Compact/g5-flex.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/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/door-hub.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DoorAccess/door-hub.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-reader-pro.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DoorAccess/g3-reader-pro.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DoorAccess/g3-reader.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DoorAccess/g3-reader.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DoorAccess/g3-starter-kit-pro.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DoorAccess/g3-starter-kit-pro.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Flagship/u7-pro-max.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Flagship/u7-pro-max.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/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/Switching/flex.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Switching/flex.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Wall/u6-extender.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Wall/u6-extender.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Wall/u6-in-wall.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Wall/u6-in-wall.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/WiFi/e7-audience.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/WiFi/e7-audience.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/WiFi/e7.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/WiFi/e7.jpg.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/minus.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/minus.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/bullet.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/bullet.svg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/ai-dslr.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/ai-dslr.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/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/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/door-hub.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/door-hub.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-reader-pro.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g3-reader-pro.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g3-reader.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g3-reader.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g3-starter-kit-pro.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g3-starter-kit-pro.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/cameras/ptz/g4-ptz.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/ptz/g4-ptz.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/ptz/g5-ptz.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/ptz/g5-ptz.jpg.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/product-list-assets/ptz.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/ptz.svg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/switches/utility/flex.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/switches/utility/flex.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/wifi/e7-series/e7.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/wifi/e7-series/e7.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/wifi/flagship/u7-pro-max.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/wifi/flagship/u7-pro-max.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/wifi/mega-capacity/e7-audience.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/wifi/mega-capacity/e7-audience.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/wifi/wall/u6-extender.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/wifi/wall/u6-extender.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/wifi/wall/u6-in-wall.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/wifi/wall/u6-in-wall.jpg.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 +3 -3
- package/lib/constants/modelCompareData/data/CameraSecurity.mjs +2 -2
- 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/bullet.js +1 -1
- package/lib/constants/modelCompareData/data/product-list-groups/bullet.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/product-list-groups/ptz.js +1 -1
- package/lib/constants/modelCompareData/data/product-list-groups/ptz.mjs +1 -1
- package/lib/constants/modelCompareData/data/products/aiDslr.js +2 -2
- package/lib/constants/modelCompareData/data/products/aiDslr.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/doorHub.js +2 -2
- package/lib/constants/modelCompareData/data/products/doorHub.mjs +2 -2
- 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/e7.js +2 -2
- package/lib/constants/modelCompareData/data/products/e7.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/e7Campus.js +1 -1
- package/lib/constants/modelCompareData/data/products/e7Campus.mjs +1 -1
- package/lib/constants/modelCompareData/data/products/flex.js +2 -2
- package/lib/constants/modelCompareData/data/products/flex.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g3Reader.js +2 -2
- package/lib/constants/modelCompareData/data/products/g3Reader.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/g3ReaderPro.js +2 -2
- package/lib/constants/modelCompareData/data/products/g3ReaderPro.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g3StarterKitPro.js +2 -2
- package/lib/constants/modelCompareData/data/products/g3StarterKitPro.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g4Ptz.js +2 -2
- package/lib/constants/modelCompareData/data/products/g4Ptz.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/g5Ptz.js +2 -2
- package/lib/constants/modelCompareData/data/products/g5Ptz.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/shared-product-data/e7Audience.js +2 -2
- package/lib/constants/modelCompareData/data/products/shared-product-data/e7Audience.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/u6Extender.js +2 -2
- package/lib/constants/modelCompareData/data/products/u6Extender.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/u6InWall.js +2 -2
- package/lib/constants/modelCompareData/data/products/u6InWall.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/u7proMax.js +2 -2
- package/lib/constants/modelCompareData/data/products/u7proMax.mjs +2 -2
- 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/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 +9 -9
- package/lib/contexts/MenuContext/mapping.mjs +6 -6
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
@@ -8,14 +8,14 @@ require('../../../StyleableSvgImage/index.js');
|
|
|
8
8
|
var Item_styles = require('./Item.styles.js');
|
|
9
9
|
var CustomImage = require('../../../CustomImage/CustomImage.js');
|
|
10
10
|
var StyleableSvgImage = require('../../../StyleableSvgImage/StyleableSvgImage.js');
|
|
11
|
-
var
|
|
11
|
+
var _externalAssets_BclepowY = require("../../../../assets/minus.svg");
|
|
12
12
|
var _externalAssets_DD$$IqcQ = require("../../../../assets/plus.svg");
|
|
13
13
|
function _interopDefault(e) {
|
|
14
14
|
return e && e.__esModule ? e : {
|
|
15
15
|
default: e
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
-
var
|
|
18
|
+
var _externalAssets_BclepowY__default = /*#__PURE__*/_interopDefault(_externalAssets_BclepowY);
|
|
19
19
|
var _externalAssets_DD$$IqcQ__default = /*#__PURE__*/_interopDefault(_externalAssets_DD$$IqcQ);
|
|
20
20
|
"use strict";
|
|
21
21
|
const CartModalItem = function CartModalItem2({
|
|
@@ -61,7 +61,7 @@ const CartModalItem = function CartModalItem2({
|
|
|
61
61
|
disabled: item.controls.loading,
|
|
62
62
|
children: /* @__PURE__ */jsxRuntime.jsx(Item_styles.ControlsIcon, {
|
|
63
63
|
children: /* @__PURE__ */jsxRuntime.jsx(StyleableSvgImage.StyleableSvgImage, {
|
|
64
|
-
src:
|
|
64
|
+
src: _externalAssets_BclepowY__default["default"],
|
|
65
65
|
width: 9,
|
|
66
66
|
height: 9
|
|
67
67
|
})
|
|
@@ -6,7 +6,7 @@ import '../../../StyleableSvgImage/index.mjs';
|
|
|
6
6
|
import { Wrap, ProductAnchor, ProductImageWrap, ProductMeta, ProductTitle, ProductPrice, ProductPriceSmall, ControlsWrap, ControlsButton, ControlsIcon, QuantityInput, CartButton } from './Item.styles.mjs';
|
|
7
7
|
import { CustomImage } from '../../../CustomImage/CustomImage.mjs';
|
|
8
8
|
import { StyleableSvgImage } from '../../../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
9
|
-
import
|
|
9
|
+
import _externalAssets_BclepowY__default from "../../../../assets/minus.svg";
|
|
10
10
|
import _externalAssets_DD$$IqcQ__default from "../../../../assets/plus.svg";
|
|
11
11
|
"use strict";
|
|
12
12
|
const CartModalItem = function CartModalItem2({
|
|
@@ -52,7 +52,7 @@ const CartModalItem = function CartModalItem2({
|
|
|
52
52
|
disabled: item.controls.loading,
|
|
53
53
|
children: /* @__PURE__ */jsx(ControlsIcon, {
|
|
54
54
|
children: /* @__PURE__ */jsx(StyleableSvgImage, {
|
|
55
|
-
src:
|
|
55
|
+
src: _externalAssets_BclepowY__default,
|
|
56
56
|
width: 9,
|
|
57
57
|
height: 9
|
|
58
58
|
})
|
|
@@ -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 _externalAssets_BH7iT_0Q = require("../../assets/logoUnifi.svg");
|
|
43
|
-
var
|
|
43
|
+
var _externalAssets_DJH57LL8 = 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');
|
|
@@ -63,7 +63,7 @@ var _externalAssets_CzDCu21b__default = /*#__PURE__*/_interopDefault(_externalAs
|
|
|
63
63
|
var _externalAssets_BPYvPCPi__default = /*#__PURE__*/_interopDefault(_externalAssets_BPYvPCPi);
|
|
64
64
|
var _externalAssets_TKrekyEi__default = /*#__PURE__*/_interopDefault(_externalAssets_TKrekyEi);
|
|
65
65
|
var _externalAssets_BH7iT_0Q__default = /*#__PURE__*/_interopDefault(_externalAssets_BH7iT_0Q);
|
|
66
|
-
var
|
|
66
|
+
var _externalAssets_DJH57LL8__default = /*#__PURE__*/_interopDefault(_externalAssets_DJH57LL8);
|
|
67
67
|
"use strict";
|
|
68
68
|
const GlobalHeader = React.memo(function GlobalHeader2({
|
|
69
69
|
className,
|
|
@@ -469,7 +469,7 @@ const GlobalHeader = React.memo(function GlobalHeader2({
|
|
|
469
469
|
"data-test-id": "language",
|
|
470
470
|
onClick: e => handleModalOpen(e, types.ModalId.Language),
|
|
471
471
|
children: /* @__PURE__ */jsxRuntime.jsx(Header_styles.SvgIcon, {
|
|
472
|
-
src:
|
|
472
|
+
src: _externalAssets_DJH57LL8__default["default"],
|
|
473
473
|
width: Header_styles.HEADER_ICON_SIZE,
|
|
474
474
|
height: Header_styles.HEADER_ICON_SIZE
|
|
475
475
|
})
|
|
@@ -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 _externalAssets_BH7iT_0Q__default from "../../assets/logoUnifi.svg";
|
|
41
|
-
import
|
|
41
|
+
import _externalAssets_DJH57LL8__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';
|
|
@@ -434,7 +434,7 @@ const GlobalHeader = memo(function GlobalHeader2({
|
|
|
434
434
|
"data-test-id": "language",
|
|
435
435
|
onClick: e => handleModalOpen(e, ModalId.Language),
|
|
436
436
|
children: /* @__PURE__ */jsx(SvgIcon, {
|
|
437
|
-
src:
|
|
437
|
+
src: _externalAssets_DJH57LL8__default,
|
|
438
438
|
width: HEADER_ICON_SIZE,
|
|
439
439
|
height: HEADER_ICON_SIZE
|
|
440
440
|
})
|
|
@@ -48,7 +48,7 @@ var _externalAssets_D0npbJ7x = require("../../../assets/arrow2.svg");
|
|
|
48
48
|
var ScrollWrapper = require('../../ScrollWrapper/ScrollWrapper.js');
|
|
49
49
|
var MenuItem = require('../MenuItem/MenuItem.js');
|
|
50
50
|
var _externalAssets_g50k1DIN = require("../../../assets/search.svg");
|
|
51
|
-
var
|
|
51
|
+
var _externalAssets_DJH57LL8 = require("../../../assets/globe.svg");
|
|
52
52
|
var HistoryIcon = require("../../../assets/icon-history.svg");
|
|
53
53
|
var EAIcon = require("../../../assets/icon-ea.svg");
|
|
54
54
|
var _externalAssets_DtGmfNK5 = require("../../../assets/closeLarge.svg");
|
|
@@ -69,7 +69,7 @@ var NoUserAvatar__default = /*#__PURE__*/_interopDefault(NoUserAvatar);
|
|
|
69
69
|
var _externalAssets_CtJIOg_A__default = /*#__PURE__*/_interopDefault(_externalAssets_CtJIOg_A);
|
|
70
70
|
var _externalAssets_D0npbJ7x__default = /*#__PURE__*/_interopDefault(_externalAssets_D0npbJ7x);
|
|
71
71
|
var _externalAssets_g50k1DIN__default = /*#__PURE__*/_interopDefault(_externalAssets_g50k1DIN);
|
|
72
|
-
var
|
|
72
|
+
var _externalAssets_DJH57LL8__default = /*#__PURE__*/_interopDefault(_externalAssets_DJH57LL8);
|
|
73
73
|
var HistoryIcon__default = /*#__PURE__*/_interopDefault(HistoryIcon);
|
|
74
74
|
var EAIcon__default = /*#__PURE__*/_interopDefault(EAIcon);
|
|
75
75
|
var _externalAssets_DtGmfNK5__default = /*#__PURE__*/_interopDefault(_externalAssets_DtGmfNK5);
|
|
@@ -585,7 +585,7 @@ const ProHeader = React.memo(function ProHeader2({
|
|
|
585
585
|
"data-test-id": "language-picker-btn",
|
|
586
586
|
onClick: e => handleModalOpen(e, types.ModalId.Language),
|
|
587
587
|
children: /* @__PURE__ */jsxRuntime.jsx(Header_styles.SvgIcon, {
|
|
588
|
-
src:
|
|
588
|
+
src: _externalAssets_DJH57LL8__default["default"],
|
|
589
589
|
width: Header_styles.HEADER_ICON_SIZE,
|
|
590
590
|
height: Header_styles.HEADER_ICON_SIZE
|
|
591
591
|
})
|
|
@@ -46,7 +46,7 @@ import _externalAssets_D0npbJ7x__default from "../../../assets/arrow2.svg";
|
|
|
46
46
|
import { ScrollWrapper } from '../../ScrollWrapper/ScrollWrapper.mjs';
|
|
47
47
|
import { MenuItem } from '../MenuItem/MenuItem.mjs';
|
|
48
48
|
import _externalAssets_g50k1DIN__default from "../../../assets/search.svg";
|
|
49
|
-
import
|
|
49
|
+
import _externalAssets_DJH57LL8__default from "../../../assets/globe.svg";
|
|
50
50
|
import HistoryIcon__default from "../../../assets/icon-history.svg";
|
|
51
51
|
import EAIcon__default from "../../../assets/icon-ea.svg";
|
|
52
52
|
import _externalAssets_DtGmfNK5__default from "../../../assets/closeLarge.svg";
|
|
@@ -548,7 +548,7 @@ const ProHeader = memo(function ProHeader2({
|
|
|
548
548
|
"data-test-id": "language-picker-btn",
|
|
549
549
|
onClick: e => handleModalOpen(e, ModalId.Language),
|
|
550
550
|
children: /* @__PURE__ */jsx(SvgIcon, {
|
|
551
|
-
src:
|
|
551
|
+
src: _externalAssets_DJH57LL8__default,
|
|
552
552
|
width: HEADER_ICON_SIZE,
|
|
553
553
|
height: HEADER_ICON_SIZE
|
|
554
554
|
})
|
|
@@ -170,7 +170,7 @@ const MicrositeProductPage = ({
|
|
|
170
170
|
className: block.wrapClassName,
|
|
171
171
|
id: block.wrapId,
|
|
172
172
|
children: /* @__PURE__ */jsxRuntime.jsx(ModelCompareV3.ModelCompareV3, {
|
|
173
|
-
|
|
173
|
+
...block.data,
|
|
174
174
|
headerStickOffset: ({
|
|
175
175
|
maxImageHeight
|
|
176
176
|
}) => maxImageHeight + 16 + 8 - 96,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MicrositeProductPage.js","sources":["../../../src/components/Microsites/MicrositeProductPage.tsx"],"sourcesContent":["import { useMemo, useState } from \"react\";\n\nimport { ExploreProduct } from \"../Explore\";\nimport { EXPLORE_DATA } from \"../Explore/ExploreData\";\nimport { MicrositeColumnFeatureProgressBar } from \"../MicrositeColumnFeatureProgressBar\";\nimport { MicrositeFeatureChecklist } from \"../MicrositeFeatureChecklist\";\nimport { MicrositeFeatureIcons } from \"../MicrositeFeatureIcons\";\nimport { MicrositeFeatureList } from \"../MicrositeFeatureList\";\nimport { MicrositeHero } from \"../MicrositeHero\";\nimport { MicrositeIntroductionBlock } from \"../MicrositeIntroductionBlock\";\nimport { MicrositeMediaGrid } from \"../MicrositeMediaGrid\";\nimport { MicrositeSectionWrap } from \"../MicrositeSectionWrap\";\nimport { MicrositeVideoSlideshow } from \"../MicrositeVideoSlideshow\";\nimport { ModelCompareV3 } from \"../ModelCompareV3\";\nimport { useMicrositeProductPage } from \"./context/MicrositeProductPageContext\";\nimport { MicrositePageContext } from \"./MicrositePageContext\";\nimport * as S from \"./MicrositeProductPage.styles\";\nimport type {\n MicrositePageBlocks,\n MicrositesPageContextValue,\n MicrositesPageProps,\n} from \"./Microsites.types\";\nimport { MicrositeBlockType } from \"./Microsites.types\";\n\nconst getBlockKey = (blockType: MicrositeBlockType, i: number) =>\n `block-${blockType}-${i}`;\n\nexport const MicrositeProductPage = ({\n blocks,\n storeId,\n className,\n}: MicrositesPageProps) => {\n const [activeFullscreenType, setActiveFullscreenType] =\n useState<MicrositesPageContextValue[\"activeFullscreenType\"]>(null);\n\n const context = useMicrositeProductPage();\n\n const showBuyButton = useMemo(() => {\n return context?.showBuyButton ?? false;\n }, [context?.showBuyButton]);\n\n if (!Array.isArray(blocks) || blocks.length === 0) {\n return null;\n }\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <MicrositePageContext.Provider\n value={{\n activeFullscreenType,\n setActiveFullscreenType,\n }}\n >\n <S.Wrap className={className}>\n {blocks.map((block: MicrositePageBlocks, i) => {\n switch (block.type) {\n // #############################################################################\n // Hero Section\n // #############################################################################\n case MicrositeBlockType.Hero:\n return (\n <MicrositeHero\n key={getBlockKey(block.type, i)}\n {...block.data}\n buyButton={showBuyButton ? block.data.buyButton : undefined}\n />\n );\n\n // #############################################################################\n // Sub Sub Navigation\n // #############################################################################\n case MicrositeBlockType.SubSubNavigation:\n return (\n <S.MicrositeSubSubNavigation\n key={getBlockKey(block.type, i)}\n {...block.data}\n />\n );\n\n // #############################################################################\n // Introduction Section\n // #############################################################################\n case MicrositeBlockType.Introduction:\n return (\n <MicrositeSectionWrap\n key={getBlockKey(block.type, i)}\n heading={block.data.title}\n subHeading={block.data.subTitle}\n action={block.data.action}\n afterAction={block.data.afterAction}\n className={block.wrapClassName}\n id={block.wrapId}\n >\n <MicrositeIntroductionBlock {...block.data} />\n </MicrositeSectionWrap>\n );\n\n // #############################################################################\n // Feature icons row/section\n // #############################################################################\n case MicrositeBlockType.FeatureIcons:\n return (\n <S.FeatureIconsSectionWrap\n key={getBlockKey(block.type, i)}\n className={block.wrapClassName}\n heading={block.data.title}\n subHeading={block.data.subTitle}\n action={block.data.action}\n id={block.wrapId}\n >\n <MicrositeFeatureIcons {...block.data} />\n </S.FeatureIconsSectionWrap>\n );\n\n // #############################################################################\n // Column Feature Progress Bar section\n // #############################################################################\n case MicrositeBlockType.ColumnFeatures:\n return (\n <S.ColumnFeatureProgressBarsSectionWrap\n key={getBlockKey(block.type, i)}\n className={block.wrapClassName}\n id={block.wrapId}\n >\n <MicrositeColumnFeatureProgressBar {...block.data} />\n </S.ColumnFeatureProgressBarsSectionWrap>\n );\n\n // #############################################################################\n // Media Grid Section\n // #############################################################################\n case MicrositeBlockType.MediaGrid: {\n return (\n <MicrositeSectionWrap\n key={getBlockKey(block.type, i)}\n heading={block.data.title}\n subHeading={block.data.subTitle}\n action={block.data.action}\n afterAction={block.data.afterAction}\n className={block.wrapClassName}\n id={block.wrapId}\n >\n <MicrositeMediaGrid\n {...block.data}\n buyButton={showBuyButton ? block.data.buyButton : undefined}\n />\n </MicrositeSectionWrap>\n );\n }\n\n // #############################################################################\n // Video Slideshow Section\n // #############################################################################\n case MicrositeBlockType.VideoSlideshow:\n return (\n <MicrositeVideoSlideshow\n key={getBlockKey(block.type, i)}\n {...block.data}\n />\n );\n\n // #############################################################################\n // Deployment Section\n // #############################################################################\n case MicrositeBlockType.Deployment:\n return (\n <MicrositeSectionWrap\n key={getBlockKey(block.type, i)}\n subHeading={block.data.subTitle}\n heading={block.data.title}\n action={block.data.action}\n afterAction={block.data.afterAction}\n className={block.wrapClassName}\n id={block.wrapId}\n >\n <S.DeploymentImage\n asset={block.data.image}\n sizes=\"100%\"\n responsive\n canFullscreen\n $fullWidth={block.data.fullWidth}\n onFullscreenChange={(isFullscreen) => {\n if (isFullscreen) {\n setActiveFullscreenType(MicrositeBlockType.Deployment);\n }\n }}\n />\n </MicrositeSectionWrap>\n );\n\n // #############################################################################\n // Compare Section (v3)\n // #############################################################################\n case MicrositeBlockType.CompareV3: {\n return (\n <S.CompareV3SectionWrap\n key={getBlockKey(block.type, i)}\n heading={block.data.title}\n subHeading={block.data.subTitle}\n action={block.data.action}\n afterAction={block.data.afterAction}\n className={block.wrapClassName}\n id={block.wrapId}\n >\n <ModelCompareV3\n id={block.data.id}\n headerStickOffset={({ maxImageHeight }) =>\n maxImageHeight + 16 + 8 - 96\n } // 96 is the size of the header on ui.com. 16 + 8 is the padding + gap on the grid header.\n overlayTopOffset={96}\n showBuyButton={showBuyButton}\n />\n </S.CompareV3SectionWrap>\n );\n }\n\n // #############################################################################\n // Explore Section\n // #############################################################################\n case MicrositeBlockType.Explore: {\n const exploreSection =\n EXPLORE_DATA.sections.find(\n (el) => el.id === block.data.exploreSectionId,\n ) ?? undefined;\n\n return (\n exploreSection && (\n <S.ExploreSectionWrap\n key={getBlockKey(block.type, i)}\n heading={block.data.title ?? \"Product Specs\"}\n subHeading={block.data.subTitle}\n action={block.data.action}\n afterAction={block.data.afterAction}\n className={block.wrapClassName}\n id={block.wrapId}\n >\n <ExploreProduct\n section={exploreSection}\n storeId={storeId}\n showBuyButton={showBuyButton}\n flipped={block.data.flipped}\n />\n </S.ExploreSectionWrap>\n )\n );\n }\n\n // #############################################################################\n // Feature list row/section\n // #############################################################################\n case MicrositeBlockType.FeatureList: {\n return (\n <MicrositeSectionWrap\n key={getBlockKey(block.type, i)}\n subHeading={block.data.subTitle}\n heading={block.data.title}\n action={block.data.action}\n className={block.wrapClassName}\n id={block.wrapId}\n >\n <MicrositeFeatureList {...block.data} />\n </MicrositeSectionWrap>\n );\n }\n\n // #############################################################################\n // Feature checklist section\n // #############################################################################\n case MicrositeBlockType.FeatureChecklist: {\n return (\n <MicrositeSectionWrap\n key={getBlockKey(block.type, i)}\n id={block.wrapId}\n subHeading={block.data.subTitle}\n heading={block.data.title}\n action={block.data.action}\n afterAction={block.data.afterAction}\n className={block.wrapClassName}\n >\n <MicrositeFeatureChecklist {...block.data} />\n </MicrositeSectionWrap>\n );\n }\n\n // #############################################################################\n // Custom Content section\n // #############################################################################\n case MicrositeBlockType.CustomContent: {\n return (\n <MicrositeSectionWrap\n key={getBlockKey(block.type, i)}\n id={block.wrapId}\n heading={block.data.title}\n subHeading={block.data.subTitle}\n action={block.data.action}\n afterAction={block.data.afterAction}\n className={block.wrapClassName}\n >\n {block.data.content}\n </MicrositeSectionWrap>\n );\n }\n\n default:\n return null;\n }\n })}\n </S.Wrap>\n </MicrositePageContext.Provider>\n );\n};\n"],"names":["getBlockKey","blockType","i","MicrositeProductPage","blocks","storeId","className","activeFullscreenType","setActiveFullscreenType","useState","context","useMicrositeProductPage","showBuyButton","useMemo","Array","isArray","length","jsx","MicrositePageContext","Provider","value","children","S.Wrap","Wrap","map","block","type","MicrositeBlockType","Hero","MicrositeHero","data","buyButton","SubSubNavigation","S.MicrositeSubSubNavigation","MicrositeSubSubNavigation","Introduction","MicrositeSectionWrap","heading","title","subHeading","subTitle","action","afterAction","wrapClassName","id","wrapId","MicrositeIntroductionBlock","FeatureIcons","S.FeatureIconsSectionWrap","FeatureIconsSectionWrap","MicrositeFeatureIcons","ColumnFeatures","S.ColumnFeatureProgressBarsSectionWrap","ColumnFeatureProgressBarsSectionWrap","MicrositeColumnFeatureProgressBar","MediaGrid","MicrositeMediaGrid","VideoSlideshow","MicrositeVideoSlideshow","Deployment","S.DeploymentImage","DeploymentImage","asset","image","sizes","responsive","canFullscreen","$fullWidth","fullWidth","onFullscreenChange","isFullscreen","CompareV3","S.CompareV3SectionWrap","CompareV3SectionWrap","ModelCompareV3","headerStickOffset","maxImageHeight","overlayTopOffset","Explore","exploreSection","EXPLORE_DATA","sections","find","el","exploreSectionId","S.ExploreSectionWrap","ExploreSectionWrap","ExploreProduct","section","flipped","FeatureList","MicrositeFeatureList","FeatureChecklist","MicrositeFeatureChecklist","CustomContent","content"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,MAAMA,cAAcA,CAACC,SAAA,EAA+BC,MAClD,SAASD,SAAS,IAAIC,CAAC,EAAA;AAElB,MAAMC,uBAAuBA,CAAC;EACnCC,MAAA;EACAC,OAAA;EACAC;AACF,CAA2B,KAAA;EACzB,MAAM,CAACC,oBAAA,EAAsBC,uBAAuB,CAAA,GAClDC,KAAAA,CAAAA,SAA6D,IAAI,CAAA;EAEnE,MAAMC,UAAUC,2BAAAA,CAAAA,uBAAwB,CAAA,CAAA;EAElC,MAAAC,aAAA,GAAgBC,KAAAA,CAAAA,QAAQ,MAAM;IAClC,OAAOH,SAASE,aAAiB,IAAA,KAAA;EAAA,CAChC,EAAA,CAACF,OAAS,EAAAE,aAAa,CAAC,CAAA;EAE3B,IAAI,CAACE,KAAM,CAAAC,OAAA,CAAQX,MAAM,CAAK,IAAAA,MAAA,CAAOY,WAAW,CAAG,EAAA;IAC1C,OAAA,IAAA;EAAA;EAOP,sBAAAC,UAAA,CAAAA,GAAA,CAACC,oBAAAA,CAAAA,oBAAqB,CAAAC,QAAA,EAArB;IACCC,KAAO,EAAA;MACLb,oBAAA;MACAC;IACF,CAAA;IAEAa,QAAA,EAAAJ,eAAAA,UAAAA,CAAAA,GAAA,CAACK,2BAAA,CAAAC,IAAA,EAAA;MAAOjB;MACLe,QAAO,EAAAjB,MAAA,CAAAoB,GAAA,CAAI,CAACC,KAAA,EAA4BvB,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AA,CAAYyB,KAAM,CAAAC,IAAA,EAAMxB,CAAC,CAShC,CAAA;YAAA;UAIJ;YACS,OAAA,IAAA;QAAA;MACX,CACD;IACH,CAAA;EAAA,CACF,CAAA;AAEJ,CAAA;"}
|
|
1
|
+
{"version":3,"file":"MicrositeProductPage.js","sources":["../../../src/components/Microsites/MicrositeProductPage.tsx"],"sourcesContent":["import { useMemo, useState } from \"react\";\n\nimport { ExploreProduct } from \"../Explore\";\nimport { EXPLORE_DATA } from \"../Explore/ExploreData\";\nimport { MicrositeColumnFeatureProgressBar } from \"../MicrositeColumnFeatureProgressBar\";\nimport { MicrositeFeatureChecklist } from \"../MicrositeFeatureChecklist\";\nimport { MicrositeFeatureIcons } from \"../MicrositeFeatureIcons\";\nimport { MicrositeFeatureList } from \"../MicrositeFeatureList\";\nimport { MicrositeHero } from \"../MicrositeHero\";\nimport { MicrositeIntroductionBlock } from \"../MicrositeIntroductionBlock\";\nimport { MicrositeMediaGrid } from \"../MicrositeMediaGrid\";\nimport { MicrositeSectionWrap } from \"../MicrositeSectionWrap\";\nimport { MicrositeVideoSlideshow } from \"../MicrositeVideoSlideshow\";\nimport { ModelCompareV3 } from \"../ModelCompareV3\";\nimport { useMicrositeProductPage } from \"./context/MicrositeProductPageContext\";\nimport { MicrositePageContext } from \"./MicrositePageContext\";\nimport * as S from \"./MicrositeProductPage.styles\";\nimport type {\n MicrositePageBlocks,\n MicrositesPageContextValue,\n MicrositesPageProps,\n} from \"./Microsites.types\";\nimport { MicrositeBlockType } from \"./Microsites.types\";\n\nconst getBlockKey = (blockType: MicrositeBlockType, i: number) =>\n `block-${blockType}-${i}`;\n\nexport const MicrositeProductPage = ({\n blocks,\n storeId,\n className,\n}: MicrositesPageProps) => {\n const [activeFullscreenType, setActiveFullscreenType] =\n useState<MicrositesPageContextValue[\"activeFullscreenType\"]>(null);\n\n const context = useMicrositeProductPage();\n\n const showBuyButton = useMemo(() => {\n return context?.showBuyButton ?? false;\n }, [context?.showBuyButton]);\n\n if (!Array.isArray(blocks) || blocks.length === 0) {\n return null;\n }\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <MicrositePageContext.Provider\n value={{\n activeFullscreenType,\n setActiveFullscreenType,\n }}\n >\n <S.Wrap className={className}>\n {blocks.map((block: MicrositePageBlocks, i) => {\n switch (block.type) {\n // #############################################################################\n // Hero Section\n // #############################################################################\n case MicrositeBlockType.Hero:\n return (\n <MicrositeHero\n key={getBlockKey(block.type, i)}\n {...block.data}\n buyButton={showBuyButton ? block.data.buyButton : undefined}\n />\n );\n\n // #############################################################################\n // Sub Sub Navigation\n // #############################################################################\n case MicrositeBlockType.SubSubNavigation:\n return (\n <S.MicrositeSubSubNavigation\n key={getBlockKey(block.type, i)}\n {...block.data}\n />\n );\n\n // #############################################################################\n // Introduction Section\n // #############################################################################\n case MicrositeBlockType.Introduction:\n return (\n <MicrositeSectionWrap\n key={getBlockKey(block.type, i)}\n heading={block.data.title}\n subHeading={block.data.subTitle}\n action={block.data.action}\n afterAction={block.data.afterAction}\n className={block.wrapClassName}\n id={block.wrapId}\n >\n <MicrositeIntroductionBlock {...block.data} />\n </MicrositeSectionWrap>\n );\n\n // #############################################################################\n // Feature icons row/section\n // #############################################################################\n case MicrositeBlockType.FeatureIcons:\n return (\n <S.FeatureIconsSectionWrap\n key={getBlockKey(block.type, i)}\n className={block.wrapClassName}\n heading={block.data.title}\n subHeading={block.data.subTitle}\n action={block.data.action}\n id={block.wrapId}\n >\n <MicrositeFeatureIcons {...block.data} />\n </S.FeatureIconsSectionWrap>\n );\n\n // #############################################################################\n // Column Feature Progress Bar section\n // #############################################################################\n case MicrositeBlockType.ColumnFeatures:\n return (\n <S.ColumnFeatureProgressBarsSectionWrap\n key={getBlockKey(block.type, i)}\n className={block.wrapClassName}\n id={block.wrapId}\n >\n <MicrositeColumnFeatureProgressBar {...block.data} />\n </S.ColumnFeatureProgressBarsSectionWrap>\n );\n\n // #############################################################################\n // Media Grid Section\n // #############################################################################\n case MicrositeBlockType.MediaGrid: {\n return (\n <MicrositeSectionWrap\n key={getBlockKey(block.type, i)}\n heading={block.data.title}\n subHeading={block.data.subTitle}\n action={block.data.action}\n afterAction={block.data.afterAction}\n className={block.wrapClassName}\n id={block.wrapId}\n >\n <MicrositeMediaGrid\n {...block.data}\n buyButton={showBuyButton ? block.data.buyButton : undefined}\n />\n </MicrositeSectionWrap>\n );\n }\n\n // #############################################################################\n // Video Slideshow Section\n // #############################################################################\n case MicrositeBlockType.VideoSlideshow:\n return (\n <MicrositeVideoSlideshow\n key={getBlockKey(block.type, i)}\n {...block.data}\n />\n );\n\n // #############################################################################\n // Deployment Section\n // #############################################################################\n case MicrositeBlockType.Deployment:\n return (\n <MicrositeSectionWrap\n key={getBlockKey(block.type, i)}\n subHeading={block.data.subTitle}\n heading={block.data.title}\n action={block.data.action}\n afterAction={block.data.afterAction}\n className={block.wrapClassName}\n id={block.wrapId}\n >\n <S.DeploymentImage\n asset={block.data.image}\n sizes=\"100%\"\n responsive\n canFullscreen\n $fullWidth={block.data.fullWidth}\n onFullscreenChange={(isFullscreen) => {\n if (isFullscreen) {\n setActiveFullscreenType(MicrositeBlockType.Deployment);\n }\n }}\n />\n </MicrositeSectionWrap>\n );\n\n // #############################################################################\n // Compare Section (v3)\n // #############################################################################\n case MicrositeBlockType.CompareV3: {\n return (\n <S.CompareV3SectionWrap\n key={getBlockKey(block.type, i)}\n heading={block.data.title}\n subHeading={block.data.subTitle}\n action={block.data.action}\n afterAction={block.data.afterAction}\n className={block.wrapClassName}\n id={block.wrapId}\n >\n <ModelCompareV3\n {...block.data}\n headerStickOffset={({ maxImageHeight }) =>\n maxImageHeight + 16 + 8 - 96\n } // 96 is the size of the header on ui.com. 16 + 8 is the padding + gap on the grid header.\n overlayTopOffset={96}\n showBuyButton={showBuyButton}\n />\n </S.CompareV3SectionWrap>\n );\n }\n\n // #############################################################################\n // Explore Section\n // #############################################################################\n case MicrositeBlockType.Explore: {\n const exploreSection =\n EXPLORE_DATA.sections.find(\n (el) => el.id === block.data.exploreSectionId,\n ) ?? undefined;\n\n return (\n exploreSection && (\n <S.ExploreSectionWrap\n key={getBlockKey(block.type, i)}\n heading={block.data.title ?? \"Product Specs\"}\n subHeading={block.data.subTitle}\n action={block.data.action}\n afterAction={block.data.afterAction}\n className={block.wrapClassName}\n id={block.wrapId}\n >\n <ExploreProduct\n section={exploreSection}\n storeId={storeId}\n showBuyButton={showBuyButton}\n flipped={block.data.flipped}\n />\n </S.ExploreSectionWrap>\n )\n );\n }\n\n // #############################################################################\n // Feature list row/section\n // #############################################################################\n case MicrositeBlockType.FeatureList: {\n return (\n <MicrositeSectionWrap\n key={getBlockKey(block.type, i)}\n subHeading={block.data.subTitle}\n heading={block.data.title}\n action={block.data.action}\n className={block.wrapClassName}\n id={block.wrapId}\n >\n <MicrositeFeatureList {...block.data} />\n </MicrositeSectionWrap>\n );\n }\n\n // #############################################################################\n // Feature checklist section\n // #############################################################################\n case MicrositeBlockType.FeatureChecklist: {\n return (\n <MicrositeSectionWrap\n key={getBlockKey(block.type, i)}\n id={block.wrapId}\n subHeading={block.data.subTitle}\n heading={block.data.title}\n action={block.data.action}\n afterAction={block.data.afterAction}\n className={block.wrapClassName}\n >\n <MicrositeFeatureChecklist {...block.data} />\n </MicrositeSectionWrap>\n );\n }\n\n // #############################################################################\n // Custom Content section\n // #############################################################################\n case MicrositeBlockType.CustomContent: {\n return (\n <MicrositeSectionWrap\n key={getBlockKey(block.type, i)}\n id={block.wrapId}\n heading={block.data.title}\n subHeading={block.data.subTitle}\n action={block.data.action}\n afterAction={block.data.afterAction}\n className={block.wrapClassName}\n >\n {block.data.content}\n </MicrositeSectionWrap>\n );\n }\n\n default:\n return null;\n }\n })}\n </S.Wrap>\n </MicrositePageContext.Provider>\n );\n};\n"],"names":["getBlockKey","blockType","i","MicrositeProductPage","blocks","storeId","className","activeFullscreenType","setActiveFullscreenType","useState","context","useMicrositeProductPage","showBuyButton","useMemo","Array","isArray","length","jsx","MicrositePageContext","Provider","value","children","S.Wrap","Wrap","map","block","type","MicrositeBlockType","Hero","MicrositeHero","data","buyButton","SubSubNavigation","S.MicrositeSubSubNavigation","MicrositeSubSubNavigation","Introduction","MicrositeSectionWrap","heading","title","subHeading","subTitle","action","afterAction","wrapClassName","id","wrapId","MicrositeIntroductionBlock","FeatureIcons","S.FeatureIconsSectionWrap","FeatureIconsSectionWrap","MicrositeFeatureIcons","ColumnFeatures","S.ColumnFeatureProgressBarsSectionWrap","ColumnFeatureProgressBarsSectionWrap","MicrositeColumnFeatureProgressBar","MediaGrid","MicrositeMediaGrid","VideoSlideshow","MicrositeVideoSlideshow","Deployment","S.DeploymentImage","DeploymentImage","asset","image","sizes","responsive","canFullscreen","$fullWidth","fullWidth","onFullscreenChange","isFullscreen","CompareV3","S.CompareV3SectionWrap","CompareV3SectionWrap","ModelCompareV3","headerStickOffset","maxImageHeight","overlayTopOffset","Explore","exploreSection","EXPLORE_DATA","sections","find","el","exploreSectionId","S.ExploreSectionWrap","ExploreSectionWrap","ExploreProduct","section","flipped","FeatureList","MicrositeFeatureList","FeatureChecklist","MicrositeFeatureChecklist","CustomContent","content"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,MAAMA,cAAcA,CAACC,SAAA,EAA+BC,MAClD,SAASD,SAAS,IAAIC,CAAC,EAAA;AAElB,MAAMC,uBAAuBA,CAAC;EACnCC,MAAA;EACAC,OAAA;EACAC;AACF,CAA2B,KAAA;EACzB,MAAM,CAACC,oBAAA,EAAsBC,uBAAuB,CAAA,GAClDC,KAAAA,CAAAA,SAA6D,IAAI,CAAA;EAEnE,MAAMC,UAAUC,2BAAAA,CAAAA,uBAAwB,CAAA,CAAA;EAElC,MAAAC,aAAA,GAAgBC,KAAAA,CAAAA,QAAQ,MAAM;IAClC,OAAOH,SAASE,aAAiB,IAAA,KAAA;EAAA,CAChC,EAAA,CAACF,OAAS,EAAAE,aAAa,CAAC,CAAA;EAE3B,IAAI,CAACE,KAAM,CAAAC,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GAAA,CAACmB,oBAAA,CAAAA,oBAAA,EAAA;gBAECQ,IAAInB,KAAM,CAAAoB,MAAA;gBACVR,OAAA,EAASZ,MAAMK,IAAK,CAAAQ,KAAA;gBACpBC,UAAA,EAAYd,MAAMK,IAAK,CAAAU,QAAA;gBACvBC,MAAA,EAAQhB,MAAMK,IAAK,CAAAW,MAAA;gBACnBC,WAAA,EAAajB,MAAMK,IAAK,CAAAY,WAAA;gBACxBpC,WAAWmB,KAAM,CAAAkB,aAAA;gBAEhBtB,gBAAMS,IAAK,CAAAiE;cAAA,CAAA,EARP/F,WAAA,CAAYyB,KAAM,CAAAC,IAAA,EAAMxB,CAAC,CAShC,CAAA;YAAA;UAIJ;YACS,OAAA,IAAA;QAAA;MACX,CACD;IACH,CAAA;EAAA,CACF,CAAA;AAEJ,CAAA;"}
|
|
@@ -168,7 +168,7 @@ const MicrositeProductPage = ({
|
|
|
168
168
|
className: block.wrapClassName,
|
|
169
169
|
id: block.wrapId,
|
|
170
170
|
children: /* @__PURE__ */jsx(ModelCompareV3, {
|
|
171
|
-
|
|
171
|
+
...block.data,
|
|
172
172
|
headerStickOffset: ({
|
|
173
173
|
maxImageHeight
|
|
174
174
|
}) => maxImageHeight + 16 + 8 - 96,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MicrositeProductPage.mjs","sources":["../../../src/components/Microsites/MicrositeProductPage.tsx"],"sourcesContent":["import { useMemo, useState } from \"react\";\n\nimport { ExploreProduct } from \"../Explore\";\nimport { EXPLORE_DATA } from \"../Explore/ExploreData\";\nimport { MicrositeColumnFeatureProgressBar } from \"../MicrositeColumnFeatureProgressBar\";\nimport { MicrositeFeatureChecklist } from \"../MicrositeFeatureChecklist\";\nimport { MicrositeFeatureIcons } from \"../MicrositeFeatureIcons\";\nimport { MicrositeFeatureList } from \"../MicrositeFeatureList\";\nimport { MicrositeHero } from \"../MicrositeHero\";\nimport { MicrositeIntroductionBlock } from \"../MicrositeIntroductionBlock\";\nimport { MicrositeMediaGrid } from \"../MicrositeMediaGrid\";\nimport { MicrositeSectionWrap } from \"../MicrositeSectionWrap\";\nimport { MicrositeVideoSlideshow } from \"../MicrositeVideoSlideshow\";\nimport { ModelCompareV3 } from \"../ModelCompareV3\";\nimport { useMicrositeProductPage } from \"./context/MicrositeProductPageContext\";\nimport { MicrositePageContext } from \"./MicrositePageContext\";\nimport * as S from \"./MicrositeProductPage.styles\";\nimport type {\n MicrositePageBlocks,\n MicrositesPageContextValue,\n MicrositesPageProps,\n} from \"./Microsites.types\";\nimport { MicrositeBlockType } from \"./Microsites.types\";\n\nconst getBlockKey = (blockType: MicrositeBlockType, i: number) =>\n `block-${blockType}-${i}`;\n\nexport const MicrositeProductPage = ({\n blocks,\n storeId,\n className,\n}: MicrositesPageProps) => {\n const [activeFullscreenType, setActiveFullscreenType] =\n useState<MicrositesPageContextValue[\"activeFullscreenType\"]>(null);\n\n const context = useMicrositeProductPage();\n\n const showBuyButton = useMemo(() => {\n return context?.showBuyButton ?? false;\n }, [context?.showBuyButton]);\n\n if (!Array.isArray(blocks) || blocks.length === 0) {\n return null;\n }\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <MicrositePageContext.Provider\n value={{\n activeFullscreenType,\n setActiveFullscreenType,\n }}\n >\n <S.Wrap className={className}>\n {blocks.map((block: MicrositePageBlocks, i) => {\n switch (block.type) {\n // #############################################################################\n // Hero Section\n // #############################################################################\n case MicrositeBlockType.Hero:\n return (\n <MicrositeHero\n key={getBlockKey(block.type, i)}\n {...block.data}\n buyButton={showBuyButton ? block.data.buyButton : undefined}\n />\n );\n\n // #############################################################################\n // Sub Sub Navigation\n // #############################################################################\n case MicrositeBlockType.SubSubNavigation:\n return (\n <S.MicrositeSubSubNavigation\n key={getBlockKey(block.type, i)}\n {...block.data}\n />\n );\n\n // #############################################################################\n // Introduction Section\n // #############################################################################\n case MicrositeBlockType.Introduction:\n return (\n <MicrositeSectionWrap\n key={getBlockKey(block.type, i)}\n heading={block.data.title}\n subHeading={block.data.subTitle}\n action={block.data.action}\n afterAction={block.data.afterAction}\n className={block.wrapClassName}\n id={block.wrapId}\n >\n <MicrositeIntroductionBlock {...block.data} />\n </MicrositeSectionWrap>\n );\n\n // #############################################################################\n // Feature icons row/section\n // #############################################################################\n case MicrositeBlockType.FeatureIcons:\n return (\n <S.FeatureIconsSectionWrap\n key={getBlockKey(block.type, i)}\n className={block.wrapClassName}\n heading={block.data.title}\n subHeading={block.data.subTitle}\n action={block.data.action}\n id={block.wrapId}\n >\n <MicrositeFeatureIcons {...block.data} />\n </S.FeatureIconsSectionWrap>\n );\n\n // #############################################################################\n // Column Feature Progress Bar section\n // #############################################################################\n case MicrositeBlockType.ColumnFeatures:\n return (\n <S.ColumnFeatureProgressBarsSectionWrap\n key={getBlockKey(block.type, i)}\n className={block.wrapClassName}\n id={block.wrapId}\n >\n <MicrositeColumnFeatureProgressBar {...block.data} />\n </S.ColumnFeatureProgressBarsSectionWrap>\n );\n\n // #############################################################################\n // Media Grid Section\n // #############################################################################\n case MicrositeBlockType.MediaGrid: {\n return (\n <MicrositeSectionWrap\n key={getBlockKey(block.type, i)}\n heading={block.data.title}\n subHeading={block.data.subTitle}\n action={block.data.action}\n afterAction={block.data.afterAction}\n className={block.wrapClassName}\n id={block.wrapId}\n >\n <MicrositeMediaGrid\n {...block.data}\n buyButton={showBuyButton ? block.data.buyButton : undefined}\n />\n </MicrositeSectionWrap>\n );\n }\n\n // #############################################################################\n // Video Slideshow Section\n // #############################################################################\n case MicrositeBlockType.VideoSlideshow:\n return (\n <MicrositeVideoSlideshow\n key={getBlockKey(block.type, i)}\n {...block.data}\n />\n );\n\n // #############################################################################\n // Deployment Section\n // #############################################################################\n case MicrositeBlockType.Deployment:\n return (\n <MicrositeSectionWrap\n key={getBlockKey(block.type, i)}\n subHeading={block.data.subTitle}\n heading={block.data.title}\n action={block.data.action}\n afterAction={block.data.afterAction}\n className={block.wrapClassName}\n id={block.wrapId}\n >\n <S.DeploymentImage\n asset={block.data.image}\n sizes=\"100%\"\n responsive\n canFullscreen\n $fullWidth={block.data.fullWidth}\n onFullscreenChange={(isFullscreen) => {\n if (isFullscreen) {\n setActiveFullscreenType(MicrositeBlockType.Deployment);\n }\n }}\n />\n </MicrositeSectionWrap>\n );\n\n // #############################################################################\n // Compare Section (v3)\n // #############################################################################\n case MicrositeBlockType.CompareV3: {\n return (\n <S.CompareV3SectionWrap\n key={getBlockKey(block.type, i)}\n heading={block.data.title}\n subHeading={block.data.subTitle}\n action={block.data.action}\n afterAction={block.data.afterAction}\n className={block.wrapClassName}\n id={block.wrapId}\n >\n <ModelCompareV3\n id={block.data.id}\n headerStickOffset={({ maxImageHeight }) =>\n maxImageHeight + 16 + 8 - 96\n } // 96 is the size of the header on ui.com. 16 + 8 is the padding + gap on the grid header.\n overlayTopOffset={96}\n showBuyButton={showBuyButton}\n />\n </S.CompareV3SectionWrap>\n );\n }\n\n // #############################################################################\n // Explore Section\n // #############################################################################\n case MicrositeBlockType.Explore: {\n const exploreSection =\n EXPLORE_DATA.sections.find(\n (el) => el.id === block.data.exploreSectionId,\n ) ?? undefined;\n\n return (\n exploreSection && (\n <S.ExploreSectionWrap\n key={getBlockKey(block.type, i)}\n heading={block.data.title ?? \"Product Specs\"}\n subHeading={block.data.subTitle}\n action={block.data.action}\n afterAction={block.data.afterAction}\n className={block.wrapClassName}\n id={block.wrapId}\n >\n <ExploreProduct\n section={exploreSection}\n storeId={storeId}\n showBuyButton={showBuyButton}\n flipped={block.data.flipped}\n />\n </S.ExploreSectionWrap>\n )\n );\n }\n\n // #############################################################################\n // Feature list row/section\n // #############################################################################\n case MicrositeBlockType.FeatureList: {\n return (\n <MicrositeSectionWrap\n key={getBlockKey(block.type, i)}\n subHeading={block.data.subTitle}\n heading={block.data.title}\n action={block.data.action}\n className={block.wrapClassName}\n id={block.wrapId}\n >\n <MicrositeFeatureList {...block.data} />\n </MicrositeSectionWrap>\n );\n }\n\n // #############################################################################\n // Feature checklist section\n // #############################################################################\n case MicrositeBlockType.FeatureChecklist: {\n return (\n <MicrositeSectionWrap\n key={getBlockKey(block.type, i)}\n id={block.wrapId}\n subHeading={block.data.subTitle}\n heading={block.data.title}\n action={block.data.action}\n afterAction={block.data.afterAction}\n className={block.wrapClassName}\n >\n <MicrositeFeatureChecklist {...block.data} />\n </MicrositeSectionWrap>\n );\n }\n\n // #############################################################################\n // Custom Content section\n // #############################################################################\n case MicrositeBlockType.CustomContent: {\n return (\n <MicrositeSectionWrap\n key={getBlockKey(block.type, i)}\n id={block.wrapId}\n heading={block.data.title}\n subHeading={block.data.subTitle}\n action={block.data.action}\n afterAction={block.data.afterAction}\n className={block.wrapClassName}\n >\n {block.data.content}\n </MicrositeSectionWrap>\n );\n }\n\n default:\n return null;\n }\n })}\n </S.Wrap>\n </MicrositePageContext.Provider>\n );\n};\n"],"names":["getBlockKey","blockType","i","MicrositeProductPage","blocks","storeId","className","activeFullscreenType","setActiveFullscreenType","useState","context","useMicrositeProductPage","showBuyButton","useMemo","Array","isArray","length","jsx","MicrositePageContext","Provider","value","children","S.Wrap","map","block","type","MicrositeBlockType","Hero","MicrositeHero","data","buyButton","SubSubNavigation","S.MicrositeSubSubNavigation","Introduction","MicrositeSectionWrap","heading","title","subHeading","subTitle","action","afterAction","wrapClassName","id","wrapId","MicrositeIntroductionBlock","FeatureIcons","S.FeatureIconsSectionWrap","MicrositeFeatureIcons","ColumnFeatures","S.ColumnFeatureProgressBarsSectionWrap","MicrositeColumnFeatureProgressBar","MediaGrid","MicrositeMediaGrid","VideoSlideshow","MicrositeVideoSlideshow","Deployment","S.DeploymentImage","asset","image","sizes","responsive","canFullscreen","$fullWidth","fullWidth","onFullscreenChange","isFullscreen","CompareV3","S.CompareV3SectionWrap","ModelCompareV3","headerStickOffset","maxImageHeight","overlayTopOffset","Explore","exploreSection","EXPLORE_DATA","sections","find","el","exploreSectionId","S.ExploreSectionWrap","ExploreProduct","section","flipped","FeatureList","MicrositeFeatureList","FeatureChecklist","MicrositeFeatureChec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,IAAA,EAAMvB,CAAC,CAShC,CAAA;YAAA;UAIJ;YACS,OAAA,IAAA;QAAA;MACX,CACD;IACH,CAAA;EAAA,CACF,CAAA;AAEJ,CAAA;"}
|
|
1
|
+
{"version":3,"file":"MicrositeProductPage.mjs","sources":["../../../src/components/Microsites/MicrositeProductPage.tsx"],"sourcesContent":["import { useMemo, useState } from \"react\";\n\nimport { ExploreProduct } from \"../Explore\";\nimport { EXPLORE_DATA } from \"../Explore/ExploreData\";\nimport { MicrositeColumnFeatureProgressBar } from \"../MicrositeColumnFeatureProgressBar\";\nimport { MicrositeFeatureChecklist } from \"../MicrositeFeatureChecklist\";\nimport { MicrositeFeatureIcons } from \"../MicrositeFeatureIcons\";\nimport { MicrositeFeatureList } from \"../MicrositeFeatureList\";\nimport { MicrositeHero } from \"../MicrositeHero\";\nimport { MicrositeIntroductionBlock } from \"../MicrositeIntroductionBlock\";\nimport { MicrositeMediaGrid } from \"../MicrositeMediaGrid\";\nimport { MicrositeSectionWrap } from \"../MicrositeSectionWrap\";\nimport { MicrositeVideoSlideshow } from \"../MicrositeVideoSlideshow\";\nimport { ModelCompareV3 } from \"../ModelCompareV3\";\nimport { useMicrositeProductPage } from \"./context/MicrositeProductPageContext\";\nimport { MicrositePageContext } from \"./MicrositePageContext\";\nimport * as S from \"./MicrositeProductPage.styles\";\nimport type {\n MicrositePageBlocks,\n MicrositesPageContextValue,\n MicrositesPageProps,\n} from \"./Microsites.types\";\nimport { MicrositeBlockType } from \"./Microsites.types\";\n\nconst getBlockKey = (blockType: MicrositeBlockType, i: number) =>\n `block-${blockType}-${i}`;\n\nexport const MicrositeProductPage = ({\n blocks,\n storeId,\n className,\n}: MicrositesPageProps) => {\n const [activeFullscreenType, setActiveFullscreenType] =\n useState<MicrositesPageContextValue[\"activeFullscreenType\"]>(null);\n\n const context = useMicrositeProductPage();\n\n const showBuyButton = useMemo(() => {\n return context?.showBuyButton ?? false;\n }, [context?.showBuyButton]);\n\n if (!Array.isArray(blocks) || blocks.length === 0) {\n return null;\n }\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <MicrositePageContext.Provider\n value={{\n activeFullscreenType,\n setActiveFullscreenType,\n }}\n >\n <S.Wrap className={className}>\n {blocks.map((block: MicrositePageBlocks, i) => {\n switch (block.type) {\n // #############################################################################\n // Hero Section\n // #############################################################################\n case MicrositeBlockType.Hero:\n return (\n <MicrositeHero\n key={getBlockKey(block.type, i)}\n {...block.data}\n buyButton={showBuyButton ? block.data.buyButton : undefined}\n />\n );\n\n // #############################################################################\n // Sub Sub Navigation\n // #############################################################################\n case MicrositeBlockType.SubSubNavigation:\n return (\n <S.MicrositeSubSubNavigation\n key={getBlockKey(block.type, i)}\n {...block.data}\n />\n );\n\n // #############################################################################\n // Introduction Section\n // #############################################################################\n case MicrositeBlockType.Introduction:\n return (\n <MicrositeSectionWrap\n key={getBlockKey(block.type, i)}\n heading={block.data.title}\n subHeading={block.data.subTitle}\n action={block.data.action}\n afterAction={block.data.afterAction}\n className={block.wrapClassName}\n id={block.wrapId}\n >\n <MicrositeIntroductionBlock {...block.data} />\n </MicrositeSectionWrap>\n );\n\n // #############################################################################\n // Feature icons row/section\n // #############################################################################\n case MicrositeBlockType.FeatureIcons:\n return (\n <S.FeatureIconsSectionWrap\n key={getBlockKey(block.type, i)}\n className={block.wrapClassName}\n heading={block.data.title}\n subHeading={block.data.subTitle}\n action={block.data.action}\n id={block.wrapId}\n >\n <MicrositeFeatureIcons {...block.data} />\n </S.FeatureIconsSectionWrap>\n );\n\n // #############################################################################\n // Column Feature Progress Bar section\n // #############################################################################\n case MicrositeBlockType.ColumnFeatures:\n return (\n <S.ColumnFeatureProgressBarsSectionWrap\n key={getBlockKey(block.type, i)}\n className={block.wrapClassName}\n id={block.wrapId}\n >\n <MicrositeColumnFeatureProgressBar {...block.data} />\n </S.ColumnFeatureProgressBarsSectionWrap>\n );\n\n // #############################################################################\n // Media Grid Section\n // #############################################################################\n case MicrositeBlockType.MediaGrid: {\n return (\n <MicrositeSectionWrap\n key={getBlockKey(block.type, i)}\n heading={block.data.title}\n subHeading={block.data.subTitle}\n action={block.data.action}\n afterAction={block.data.afterAction}\n className={block.wrapClassName}\n id={block.wrapId}\n >\n <MicrositeMediaGrid\n {...block.data}\n buyButton={showBuyButton ? block.data.buyButton : undefined}\n />\n </MicrositeSectionWrap>\n );\n }\n\n // #############################################################################\n // Video Slideshow Section\n // #############################################################################\n case MicrositeBlockType.VideoSlideshow:\n return (\n <MicrositeVideoSlideshow\n key={getBlockKey(block.type, i)}\n {...block.data}\n />\n );\n\n // #############################################################################\n // Deployment Section\n // #############################################################################\n case MicrositeBlockType.Deployment:\n return (\n <MicrositeSectionWrap\n key={getBlockKey(block.type, i)}\n subHeading={block.data.subTitle}\n heading={block.data.title}\n action={block.data.action}\n afterAction={block.data.afterAction}\n className={block.wrapClassName}\n id={block.wrapId}\n >\n <S.DeploymentImage\n asset={block.data.image}\n sizes=\"100%\"\n responsive\n canFullscreen\n $fullWidth={block.data.fullWidth}\n onFullscreenChange={(isFullscreen) => {\n if (isFullscreen) {\n setActiveFullscreenType(MicrositeBlockType.Deployment);\n }\n }}\n />\n </MicrositeSectionWrap>\n );\n\n // #############################################################################\n // Compare Section (v3)\n // #############################################################################\n case MicrositeBlockType.CompareV3: {\n return (\n <S.CompareV3SectionWrap\n key={getBlockKey(block.type, i)}\n heading={block.data.title}\n subHeading={block.data.subTitle}\n action={block.data.action}\n afterAction={block.data.afterAction}\n className={block.wrapClassName}\n id={block.wrapId}\n >\n <ModelCompareV3\n {...block.data}\n headerStickOffset={({ maxImageHeight }) =>\n maxImageHeight + 16 + 8 - 96\n } // 96 is the size of the header on ui.com. 16 + 8 is the padding + gap on the grid header.\n overlayTopOffset={96}\n showBuyButton={showBuyButton}\n />\n </S.CompareV3SectionWrap>\n );\n }\n\n // #############################################################################\n // Explore Section\n // #############################################################################\n case MicrositeBlockType.Explore: {\n const exploreSection =\n EXPLORE_DATA.sections.find(\n (el) => el.id === block.data.exploreSectionId,\n ) ?? undefined;\n\n return (\n exploreSection && (\n <S.ExploreSectionWrap\n key={getBlockKey(block.type, i)}\n heading={block.data.title ?? \"Product Specs\"}\n subHeading={block.data.subTitle}\n action={block.data.action}\n afterAction={block.data.afterAction}\n className={block.wrapClassName}\n id={block.wrapId}\n >\n <ExploreProduct\n section={exploreSection}\n storeId={storeId}\n showBuyButton={showBuyButton}\n flipped={block.data.flipped}\n />\n </S.ExploreSectionWrap>\n )\n );\n }\n\n // #############################################################################\n // Feature list row/section\n // #############################################################################\n case MicrositeBlockType.FeatureList: {\n return (\n <MicrositeSectionWrap\n key={getBlockKey(block.type, i)}\n subHeading={block.data.subTitle}\n heading={block.data.title}\n action={block.data.action}\n className={block.wrapClassName}\n id={block.wrapId}\n >\n <MicrositeFeatureList {...block.data} />\n </MicrositeSectionWrap>\n );\n }\n\n // #############################################################################\n // Feature checklist section\n // #############################################################################\n case MicrositeBlockType.FeatureChecklist: {\n return (\n <MicrositeSectionWrap\n key={getBlockKey(block.type, i)}\n id={block.wrapId}\n subHeading={block.data.subTitle}\n heading={block.data.title}\n action={block.data.action}\n afterAction={block.data.afterAction}\n className={block.wrapClassName}\n >\n <MicrositeFeatureChecklist {...block.data} />\n </MicrositeSectionWrap>\n );\n }\n\n // #############################################################################\n // Custom Content section\n // #############################################################################\n case MicrositeBlockType.CustomContent: {\n return (\n <MicrositeSectionWrap\n key={getBlockKey(block.type, i)}\n id={block.wrapId}\n heading={block.data.title}\n subHeading={block.data.subTitle}\n action={block.data.action}\n afterAction={block.data.afterAction}\n className={block.wrapClassName}\n >\n {block.data.content}\n </MicrositeSectionWrap>\n );\n }\n\n default:\n return null;\n }\n })}\n </S.Wrap>\n </MicrositePageContext.Provider>\n );\n};\n"],"names":["getBlockKey","blockType","i","MicrositeProductPage","blocks","storeId","className","activeFullscreenType","setActiveFullscreenType","useState","context","useMicrositeProductPage","showBuyButton","useMemo","Array","isArray","length","jsx","MicrositePageContext","Provider","value","children","S.Wrap","map","block","type","MicrositeBlockType","Hero","MicrositeHero","data","buyButton","SubSubNavigation","S.MicrositeSubSubNavigation","Introduction","MicrositeSectionWrap","heading","title","subHeading","subTitle","action","afterAction","wrapClassName","id","wrapId","MicrositeIntroductionBlock","FeatureIcons","S.FeatureIconsSectionWrap","MicrositeFeatureIcons","ColumnFeatures","S.ColumnFeatureProgressBarsSectionWrap","MicrositeColumnFeatureProgressBar","MediaGrid","MicrositeMediaGrid","VideoSlideshow","MicrositeVideoSlideshow","Deployment","S.DeploymentImage","asset","image","sizes","responsive","canFullscreen","$fullWidth","fullWidth","onFullscreenChange","isFullscreen","CompareV3","S.CompareV3SectionWrap","ModelCompareV3","headerStickOffset","maxImageHeight","overlayTopOffset","Explore","exploreSection","EXPLORE_DATA","sections","find","el","exploreSectionId","S.ExploreSectionWrap","ExploreProduct","section","flipped","FeatureList","MicrositeFeatureList","FeatureChecklist","MicrositeFeatureChecklist","CustomContent","content"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,MAAMA,cAAcA,CAACC,SAAA,EAA+BC,MAClD,SAASD,SAAS,IAAIC,CAAC,EAAA;AAElB,MAAMC,uBAAuBA,CAAC;EACnCC,MAAA;EACAC,OAAA;EACAC;AACF,CAA2B,KAAA;EACzB,MAAM,CAACC,oBAAA,EAAsBC,uBAAuB,CAAA,GAClDC,SAA6D,IAAI,CAAA;EAEnE,MAAMC,UAAUC,uBAAwB,CAAA,CAAA;EAElC,MAAAC,aAAA,GAAgBC,QAAQ,MAAM;IAClC,OAAOH,SAASE,aAAiB,IAAA,KAAA;EAAA,CAChC,EAAA,CAACF,OAAS,EAAAE,aAAa,CAAC,CAAA;EAE3B,IAAI,CAACE,KAAM,CAAAC,OAAA,CAAQX,MAAM,CAAK,IAAAA,MAAA,CAAOY,WAAW,CAAG,EAAA;IAC1C,OAAA,IAAA;EAAA;EAOP,sBAAAC,GAAA,CAACC,oBAAqB,CAAAC,QAAA,EAArB;IACCC,KAAO,EAAA;MACLb,oBA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;gBAAM,CAAA;cAAA,CAAA,EARtC7B,WAAA,CAAYwB,KAAM,CAAAC,IAAA,EAAMvB,CAAC,CAShC,CAAA;YAAA;UAEJ;UAAA;UAAA;UAKA,KAAKwB,mBAAmB6D,aAAe;YAAA;cAEnC,sBAAAtE,GAAA,CAACiB,oBAAA,EAAA;gBAECQ,IAAIlB,KAAM,CAAAmB,MAAA;gBACVR,OAAA,EAASX,MAAMK,IAAK,CAAAO,KAAA;gBACpBC,UAAA,EAAYb,MAAMK,IAAK,CAAAS,QAAA;gBACvBC,MAAA,EAAQf,MAAMK,IAAK,CAAAU,MAAA;gBACnBC,WAAA,EAAahB,MAAMK,IAAK,CAAAW,WAAA;gBACxBlC,WAAWkB,KAAM,CAAAiB,aAAA;gBAEhBpB,gBAAMQ,IAAK,CAAA2D;cAAA,CAAA,EARPxF,WAAA,CAAYwB,KAAM,CAAAC,IAAA,EAAMvB,CAAC,CAShC,CAAA;YAAA;UAIJ;YACS,OAAA,IAAA;QAAA;MACX,CACD;IACH,CAAA;EAAA,CACF,CAAA;AAEJ,CAAA;"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
|
+
import type { Section } from "../../constants/modelCompareData/types";
|
|
2
3
|
import type { StoreId } from "../../types";
|
|
3
4
|
import type { ExploreProductProps, ExploreSectionId } from "../Explore/ExploreData";
|
|
4
5
|
import type { MicrositeColumnFeatureProgressBarProps } from "../MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.types";
|
|
@@ -72,9 +73,11 @@ export interface DeploymentSectionProps {
|
|
|
72
73
|
}
|
|
73
74
|
export interface CompareSectionV3Props {
|
|
74
75
|
type: MicrositeBlockType.CompareV3;
|
|
75
|
-
data: SectionWrapProps & {
|
|
76
|
+
data: SectionWrapProps & ({
|
|
76
77
|
id: ModelCompareV3SectionId;
|
|
77
|
-
}
|
|
78
|
+
} | {
|
|
79
|
+
section: Section;
|
|
80
|
+
});
|
|
78
81
|
}
|
|
79
82
|
export interface ExploreSectionProps {
|
|
80
83
|
type: MicrositeBlockType.Explore;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Microsites.types.js","sources":["../../../src/components/Microsites/Microsites.types.ts"],"sourcesContent":["import type { ReactNode } from \"react\";\n\nimport type { StoreId } from \"../../types\";\nimport type {\n ExploreProductProps,\n ExploreSectionId,\n} from \"../Explore/ExploreData\";\nimport type { MicrositeColumnFeatureProgressBarProps } from \"../MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.types\";\nimport type { MicrositeFeatureChecklistProps } from \"../MicrositeFeatureChecklist\";\nimport type { MicrositeFeatureIconProps } from \"../MicrositeFeatureIcons/MicrositeFeatureIcons.types\";\nimport type { MicrositeFeatureListProps } from \"../MicrositeFeatureList/MicrositeFeatureList.types\";\nimport type { MicrositeHeroProps } from \"../MicrositeHero/MicrositeHero.types\";\nimport type { MicrositeIntroductionBlockProps } from \"../MicrositeIntroductionBlock/MicrositeIntroductionBlock.types\";\nimport type { MicrositeMediaGridProps } from \"../MicrositeMediaGrid/MicrositeMediaGrid.types\";\nimport type { MicrositeSubSubNavigationProps } from \"../MicrositeSubSubNavigation/MicrositeSubSubNavigation.types\";\nimport type { MicrositeVideoSlideshowProps } from \"../MicrositeVideoSlideshow/MicrositeVideoSlideshow.types\";\nimport type { ModelCompareV3SectionId } from \"../ModelCompareV3\";\n\nexport enum MicrositeBlockType {\n Hero = \"hero\",\n SubSubNavigation = \"sub-sub-navigation\",\n Introduction = \"introduction\",\n FeatureIcons = \"feature-icons\",\n MediaGrid = \"media-grid\",\n ColumnFeatures = \"column-features\",\n VideoSlideshow = \"video-slideshow\",\n Deployment = \"deployment\",\n Compare = \"compare\",\n CompareV3 = \"compare-v3\",\n Explore = \"explore\",\n FeatureList = \"feature-list\",\n FeatureChecklist = \"feature-checklist\",\n CustomContent = \"custom-content\",\n}\n\nexport interface HeroBlockProps {\n type: MicrositeBlockType.Hero;\n data: MicrositeHeroProps;\n wrapId?: string;\n}\n\ntype SectionWrapProps = {\n title?: ReactNode;\n subTitle?: string;\n action?: ReactNode;\n afterAction?: ReactNode;\n};\n\nexport interface IntroductionBlockProps {\n type: MicrositeBlockType.Introduction;\n data: SectionWrapProps & MicrositeIntroductionBlockProps;\n}\n\nexport interface FeatureIconsProps {\n type: MicrositeBlockType.FeatureIcons;\n data: MicrositeFeatureIconProps;\n}\n\nexport interface ColumnFeaturesProps {\n type: MicrositeBlockType.ColumnFeatures;\n data: MicrositeColumnFeatureProgressBarProps;\n}\n\nexport interface MediaGridBlockProps {\n type: MicrositeBlockType.MediaGrid;\n data: SectionWrapProps & MicrositeMediaGridProps;\n}\n\nexport interface VideoSlideshowProps {\n type: MicrositeBlockType.VideoSlideshow;\n data: MicrositeVideoSlideshowProps;\n}\n\nexport interface DeploymentSectionProps {\n type: MicrositeBlockType.Deployment;\n data: SectionWrapProps & {\n image: {\n src: string;\n width: number;\n height: number;\n };\n /** Removes max-width constrain */\n fullWidth?: boolean;\n };\n}\n\n// TODO: Remove V3 when V2 and V1 is deprecated\nexport interface CompareSectionV3Props {\n type: MicrositeBlockType.CompareV3;\n data: SectionWrapProps
|
|
1
|
+
{"version":3,"file":"Microsites.types.js","sources":["../../../src/components/Microsites/Microsites.types.ts"],"sourcesContent":["import type { ReactNode } from \"react\";\n\nimport type { Section } from \"../../constants/modelCompareData/types\";\nimport type { StoreId } from \"../../types\";\nimport type {\n ExploreProductProps,\n ExploreSectionId,\n} from \"../Explore/ExploreData\";\nimport type { MicrositeColumnFeatureProgressBarProps } from \"../MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.types\";\nimport type { MicrositeFeatureChecklistProps } from \"../MicrositeFeatureChecklist\";\nimport type { MicrositeFeatureIconProps } from \"../MicrositeFeatureIcons/MicrositeFeatureIcons.types\";\nimport type { MicrositeFeatureListProps } from \"../MicrositeFeatureList/MicrositeFeatureList.types\";\nimport type { MicrositeHeroProps } from \"../MicrositeHero/MicrositeHero.types\";\nimport type { MicrositeIntroductionBlockProps } from \"../MicrositeIntroductionBlock/MicrositeIntroductionBlock.types\";\nimport type { MicrositeMediaGridProps } from \"../MicrositeMediaGrid/MicrositeMediaGrid.types\";\nimport type { MicrositeSubSubNavigationProps } from \"../MicrositeSubSubNavigation/MicrositeSubSubNavigation.types\";\nimport type { MicrositeVideoSlideshowProps } from \"../MicrositeVideoSlideshow/MicrositeVideoSlideshow.types\";\nimport type { ModelCompareV3SectionId } from \"../ModelCompareV3\";\n\nexport enum MicrositeBlockType {\n Hero = \"hero\",\n SubSubNavigation = \"sub-sub-navigation\",\n Introduction = \"introduction\",\n FeatureIcons = \"feature-icons\",\n MediaGrid = \"media-grid\",\n ColumnFeatures = \"column-features\",\n VideoSlideshow = \"video-slideshow\",\n Deployment = \"deployment\",\n Compare = \"compare\",\n CompareV3 = \"compare-v3\",\n Explore = \"explore\",\n FeatureList = \"feature-list\",\n FeatureChecklist = \"feature-checklist\",\n CustomContent = \"custom-content\",\n}\n\nexport interface HeroBlockProps {\n type: MicrositeBlockType.Hero;\n data: MicrositeHeroProps;\n wrapId?: string;\n}\n\ntype SectionWrapProps = {\n title?: ReactNode;\n subTitle?: string;\n action?: ReactNode;\n afterAction?: ReactNode;\n};\n\nexport interface IntroductionBlockProps {\n type: MicrositeBlockType.Introduction;\n data: SectionWrapProps & MicrositeIntroductionBlockProps;\n}\n\nexport interface FeatureIconsProps {\n type: MicrositeBlockType.FeatureIcons;\n data: MicrositeFeatureIconProps;\n}\n\nexport interface ColumnFeaturesProps {\n type: MicrositeBlockType.ColumnFeatures;\n data: MicrositeColumnFeatureProgressBarProps;\n}\n\nexport interface MediaGridBlockProps {\n type: MicrositeBlockType.MediaGrid;\n data: SectionWrapProps & MicrositeMediaGridProps;\n}\n\nexport interface VideoSlideshowProps {\n type: MicrositeBlockType.VideoSlideshow;\n data: MicrositeVideoSlideshowProps;\n}\n\nexport interface DeploymentSectionProps {\n type: MicrositeBlockType.Deployment;\n data: SectionWrapProps & {\n image: {\n src: string;\n width: number;\n height: number;\n };\n /** Removes max-width constrain */\n fullWidth?: boolean;\n };\n}\n\n// TODO: Remove V3 when V2 and V1 is deprecated\nexport interface CompareSectionV3Props {\n type: MicrositeBlockType.CompareV3;\n data: SectionWrapProps &\n (\n | {\n id: ModelCompareV3SectionId;\n }\n | {\n section: Section;\n }\n );\n}\n\nexport interface ExploreSectionProps {\n type: MicrositeBlockType.Explore;\n data: SectionWrapProps &\n Pick<ExploreProductProps, \"flipped\"> & {\n exploreSectionId: ExploreSectionId;\n };\n}\n\nexport interface FeatureListProps {\n type: MicrositeBlockType.FeatureList;\n data: MicrositeFeatureListProps;\n}\n\nexport interface FeatureChecklistProps {\n type: MicrositeBlockType.FeatureChecklist;\n data: SectionWrapProps & MicrositeFeatureChecklistProps;\n}\n\nexport interface CustomContent {\n type: MicrositeBlockType.CustomContent;\n data: SectionWrapProps & { content: ReactNode };\n}\n\nexport interface MicrositeSubSubNavigation {\n type: MicrositeBlockType.SubSubNavigation;\n data: MicrositeSubSubNavigationProps;\n}\n\nexport type MicrositePageBlocks =\n | HeroBlockProps\n | ((\n | IntroductionBlockProps\n | MicrositeSubSubNavigation\n | FeatureIconsProps\n | ColumnFeaturesProps\n | FeatureListProps\n | MediaGridBlockProps\n | DeploymentSectionProps\n | CompareSectionV3Props\n | ExploreSectionProps\n | VideoSlideshowProps\n | FeatureChecklistProps\n | CustomContent\n ) & {\n /**\n * Custom class name for the blocks that uses wrap\n */\n wrapClassName?: string;\n /**\n * Custom html ID for the blocks that uses wrap.\n */\n wrapId?: string;\n });\n\n/**\n * General microsite page props interface\n * Extend on each page if modification is needed\n */\nexport interface MicrositesPageProps {\n blocks: MicrositePageBlocks[];\n storeId?: StoreId;\n className?: string;\n}\n\nexport type MicrositesPageContextValue = {\n activeFullscreenType: MicrositeBlockType | null;\n setActiveFullscreenType: (type: MicrositeBlockType | null) => void;\n};\n"],"names":["MicrositeBlockType"],"mappings":";;;AAmBY,IAAAA,kBAAA,GAAA,gBAAAA,mBAAL,IAAA;EACLA,oBAAA,MAAO,CAAA,GAAA,MAAA;EACPA,oBAAA,kBAAmB,CAAA,GAAA,oBAAA;EACnBA,oBAAA,cAAe,CAAA,GAAA,cAAA;EACfA,oBAAA,cAAe,CAAA,GAAA,eAAA;EACfA,oBAAA,WAAY,CAAA,GAAA,YAAA;EACZA,oBAAA,gBAAiB,CAAA,GAAA,iBAAA;EACjBA,oBAAA,gBAAiB,CAAA,GAAA,iBAAA;EACjBA,oBAAA,YAAa,CAAA,GAAA,YAAA;EACbA,oBAAA,SAAU,CAAA,GAAA,SAAA;EACVA,oBAAA,WAAY,CAAA,GAAA,YAAA;EACZA,oBAAA,SAAU,CAAA,GAAA,SAAA;EACVA,oBAAA,aAAc,CAAA,GAAA,cAAA;EACdA,oBAAA,kBAAmB,CAAA,GAAA,mBAAA;EACnBA,oBAAA,eAAgB,CAAA,GAAA,gBAAA;EAdNA,OAAAA,mBAAAA;AAAA,CAAA,EAAAA,kBAAA,IAAA,CAAA,CAAA,CAAA;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Microsites.types.mjs","sources":["../../../src/components/Microsites/Microsites.types.ts"],"sourcesContent":["import type { ReactNode } from \"react\";\n\nimport type { StoreId } from \"../../types\";\nimport type {\n ExploreProductProps,\n ExploreSectionId,\n} from \"../Explore/ExploreData\";\nimport type { MicrositeColumnFeatureProgressBarProps } from \"../MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.types\";\nimport type { MicrositeFeatureChecklistProps } from \"../MicrositeFeatureChecklist\";\nimport type { MicrositeFeatureIconProps } from \"../MicrositeFeatureIcons/MicrositeFeatureIcons.types\";\nimport type { MicrositeFeatureListProps } from \"../MicrositeFeatureList/MicrositeFeatureList.types\";\nimport type { MicrositeHeroProps } from \"../MicrositeHero/MicrositeHero.types\";\nimport type { MicrositeIntroductionBlockProps } from \"../MicrositeIntroductionBlock/MicrositeIntroductionBlock.types\";\nimport type { MicrositeMediaGridProps } from \"../MicrositeMediaGrid/MicrositeMediaGrid.types\";\nimport type { MicrositeSubSubNavigationProps } from \"../MicrositeSubSubNavigation/MicrositeSubSubNavigation.types\";\nimport type { MicrositeVideoSlideshowProps } from \"../MicrositeVideoSlideshow/MicrositeVideoSlideshow.types\";\nimport type { ModelCompareV3SectionId } from \"../ModelCompareV3\";\n\nexport enum MicrositeBlockType {\n Hero = \"hero\",\n SubSubNavigation = \"sub-sub-navigation\",\n Introduction = \"introduction\",\n FeatureIcons = \"feature-icons\",\n MediaGrid = \"media-grid\",\n ColumnFeatures = \"column-features\",\n VideoSlideshow = \"video-slideshow\",\n Deployment = \"deployment\",\n Compare = \"compare\",\n CompareV3 = \"compare-v3\",\n Explore = \"explore\",\n FeatureList = \"feature-list\",\n FeatureChecklist = \"feature-checklist\",\n CustomContent = \"custom-content\",\n}\n\nexport interface HeroBlockProps {\n type: MicrositeBlockType.Hero;\n data: MicrositeHeroProps;\n wrapId?: string;\n}\n\ntype SectionWrapProps = {\n title?: ReactNode;\n subTitle?: string;\n action?: ReactNode;\n afterAction?: ReactNode;\n};\n\nexport interface IntroductionBlockProps {\n type: MicrositeBlockType.Introduction;\n data: SectionWrapProps & MicrositeIntroductionBlockProps;\n}\n\nexport interface FeatureIconsProps {\n type: MicrositeBlockType.FeatureIcons;\n data: MicrositeFeatureIconProps;\n}\n\nexport interface ColumnFeaturesProps {\n type: MicrositeBlockType.ColumnFeatures;\n data: MicrositeColumnFeatureProgressBarProps;\n}\n\nexport interface MediaGridBlockProps {\n type: MicrositeBlockType.MediaGrid;\n data: SectionWrapProps & MicrositeMediaGridProps;\n}\n\nexport interface VideoSlideshowProps {\n type: MicrositeBlockType.VideoSlideshow;\n data: MicrositeVideoSlideshowProps;\n}\n\nexport interface DeploymentSectionProps {\n type: MicrositeBlockType.Deployment;\n data: SectionWrapProps & {\n image: {\n src: string;\n width: number;\n height: number;\n };\n /** Removes max-width constrain */\n fullWidth?: boolean;\n };\n}\n\n// TODO: Remove V3 when V2 and V1 is deprecated\nexport interface CompareSectionV3Props {\n type: MicrositeBlockType.CompareV3;\n data: SectionWrapProps
|
|
1
|
+
{"version":3,"file":"Microsites.types.mjs","sources":["../../../src/components/Microsites/Microsites.types.ts"],"sourcesContent":["import type { ReactNode } from \"react\";\n\nimport type { Section } from \"../../constants/modelCompareData/types\";\nimport type { StoreId } from \"../../types\";\nimport type {\n ExploreProductProps,\n ExploreSectionId,\n} from \"../Explore/ExploreData\";\nimport type { MicrositeColumnFeatureProgressBarProps } from \"../MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.types\";\nimport type { MicrositeFeatureChecklistProps } from \"../MicrositeFeatureChecklist\";\nimport type { MicrositeFeatureIconProps } from \"../MicrositeFeatureIcons/MicrositeFeatureIcons.types\";\nimport type { MicrositeFeatureListProps } from \"../MicrositeFeatureList/MicrositeFeatureList.types\";\nimport type { MicrositeHeroProps } from \"../MicrositeHero/MicrositeHero.types\";\nimport type { MicrositeIntroductionBlockProps } from \"../MicrositeIntroductionBlock/MicrositeIntroductionBlock.types\";\nimport type { MicrositeMediaGridProps } from \"../MicrositeMediaGrid/MicrositeMediaGrid.types\";\nimport type { MicrositeSubSubNavigationProps } from \"../MicrositeSubSubNavigation/MicrositeSubSubNavigation.types\";\nimport type { MicrositeVideoSlideshowProps } from \"../MicrositeVideoSlideshow/MicrositeVideoSlideshow.types\";\nimport type { ModelCompareV3SectionId } from \"../ModelCompareV3\";\n\nexport enum MicrositeBlockType {\n Hero = \"hero\",\n SubSubNavigation = \"sub-sub-navigation\",\n Introduction = \"introduction\",\n FeatureIcons = \"feature-icons\",\n MediaGrid = \"media-grid\",\n ColumnFeatures = \"column-features\",\n VideoSlideshow = \"video-slideshow\",\n Deployment = \"deployment\",\n Compare = \"compare\",\n CompareV3 = \"compare-v3\",\n Explore = \"explore\",\n FeatureList = \"feature-list\",\n FeatureChecklist = \"feature-checklist\",\n CustomContent = \"custom-content\",\n}\n\nexport interface HeroBlockProps {\n type: MicrositeBlockType.Hero;\n data: MicrositeHeroProps;\n wrapId?: string;\n}\n\ntype SectionWrapProps = {\n title?: ReactNode;\n subTitle?: string;\n action?: ReactNode;\n afterAction?: ReactNode;\n};\n\nexport interface IntroductionBlockProps {\n type: MicrositeBlockType.Introduction;\n data: SectionWrapProps & MicrositeIntroductionBlockProps;\n}\n\nexport interface FeatureIconsProps {\n type: MicrositeBlockType.FeatureIcons;\n data: MicrositeFeatureIconProps;\n}\n\nexport interface ColumnFeaturesProps {\n type: MicrositeBlockType.ColumnFeatures;\n data: MicrositeColumnFeatureProgressBarProps;\n}\n\nexport interface MediaGridBlockProps {\n type: MicrositeBlockType.MediaGrid;\n data: SectionWrapProps & MicrositeMediaGridProps;\n}\n\nexport interface VideoSlideshowProps {\n type: MicrositeBlockType.VideoSlideshow;\n data: MicrositeVideoSlideshowProps;\n}\n\nexport interface DeploymentSectionProps {\n type: MicrositeBlockType.Deployment;\n data: SectionWrapProps & {\n image: {\n src: string;\n width: number;\n height: number;\n };\n /** Removes max-width constrain */\n fullWidth?: boolean;\n };\n}\n\n// TODO: Remove V3 when V2 and V1 is deprecated\nexport interface CompareSectionV3Props {\n type: MicrositeBlockType.CompareV3;\n data: SectionWrapProps &\n (\n | {\n id: ModelCompareV3SectionId;\n }\n | {\n section: Section;\n }\n );\n}\n\nexport interface ExploreSectionProps {\n type: MicrositeBlockType.Explore;\n data: SectionWrapProps &\n Pick<ExploreProductProps, \"flipped\"> & {\n exploreSectionId: ExploreSectionId;\n };\n}\n\nexport interface FeatureListProps {\n type: MicrositeBlockType.FeatureList;\n data: MicrositeFeatureListProps;\n}\n\nexport interface FeatureChecklistProps {\n type: MicrositeBlockType.FeatureChecklist;\n data: SectionWrapProps & MicrositeFeatureChecklistProps;\n}\n\nexport interface CustomContent {\n type: MicrositeBlockType.CustomContent;\n data: SectionWrapProps & { content: ReactNode };\n}\n\nexport interface MicrositeSubSubNavigation {\n type: MicrositeBlockType.SubSubNavigation;\n data: MicrositeSubSubNavigationProps;\n}\n\nexport type MicrositePageBlocks =\n | HeroBlockProps\n | ((\n | IntroductionBlockProps\n | MicrositeSubSubNavigation\n | FeatureIconsProps\n | ColumnFeaturesProps\n | FeatureListProps\n | MediaGridBlockProps\n | DeploymentSectionProps\n | CompareSectionV3Props\n | ExploreSectionProps\n | VideoSlideshowProps\n | FeatureChecklistProps\n | CustomContent\n ) & {\n /**\n * Custom class name for the blocks that uses wrap\n */\n wrapClassName?: string;\n /**\n * Custom html ID for the blocks that uses wrap.\n */\n wrapId?: string;\n });\n\n/**\n * General microsite page props interface\n * Extend on each page if modification is needed\n */\nexport interface MicrositesPageProps {\n blocks: MicrositePageBlocks[];\n storeId?: StoreId;\n className?: string;\n}\n\nexport type MicrositesPageContextValue = {\n activeFullscreenType: MicrositeBlockType | null;\n setActiveFullscreenType: (type: MicrositeBlockType | null) => void;\n};\n"],"names":["MicrositeBlockType"],"mappings":";;AAmBY,IAAAA,kBAAA,GAAA,gBAAAA,mBAAL,IAAA;EACLA,oBAAA,MAAO,CAAA,GAAA,MAAA;EACPA,oBAAA,kBAAmB,CAAA,GAAA,oBAAA;EACnBA,oBAAA,cAAe,CAAA,GAAA,cAAA;EACfA,oBAAA,cAAe,CAAA,GAAA,eAAA;EACfA,oBAAA,WAAY,CAAA,GAAA,YAAA;EACZA,oBAAA,gBAAiB,CAAA,GAAA,iBAAA;EACjBA,oBAAA,gBAAiB,CAAA,GAAA,iBAAA;EACjBA,oBAAA,YAAa,CAAA,GAAA,YAAA;EACbA,oBAAA,SAAU,CAAA,GAAA,SAAA;EACVA,oBAAA,WAAY,CAAA,GAAA,YAAA;EACZA,oBAAA,SAAU,CAAA,GAAA,SAAA;EACVA,oBAAA,aAAc,CAAA,GAAA,cAAA;EACdA,oBAAA,kBAAmB,CAAA,GAAA,mBAAA;EACnBA,oBAAA,eAAgB,CAAA,GAAA,gBAAA;EAdNA,OAAAA,mBAAAA;AAAA,CAAA,EAAAA,kBAAA,IAAA,CAAA,CAAA,CAAA;"}
|
|
@@ -13,7 +13,7 @@ require('../StyleableSvgImage/index.js');
|
|
|
13
13
|
var ModelCompareV3_styles = require('./ModelCompareV3.styles.js');
|
|
14
14
|
require('./StickyGrid/index.js');
|
|
15
15
|
var checkIconSvg = require("../../assets/check2.svg");
|
|
16
|
-
var minusIconSvg = require("../../assets/
|
|
16
|
+
var minusIconSvg = require("../../assets/minus2.svg");
|
|
17
17
|
var StyleableSvgImage = require('../StyleableSvgImage/StyleableSvgImage.js');
|
|
18
18
|
var context = require('../../contexts/MenuContext/context.js');
|
|
19
19
|
var StickyGridItem = require('./StickyGrid/StickyGridItem.js');
|
|
@@ -11,7 +11,7 @@ import '../StyleableSvgImage/index.mjs';
|
|
|
11
11
|
import { textSize, MOBILE_BREAKPOINT } from './ModelCompareV3.styles.mjs';
|
|
12
12
|
import './StickyGrid/index.mjs';
|
|
13
13
|
import checkIconSvg__default from "../../assets/check2.svg";
|
|
14
|
-
import minusIconSvg__default from "../../assets/
|
|
14
|
+
import minusIconSvg__default from "../../assets/minus2.svg";
|
|
15
15
|
import { StyleableSvgImage } from '../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
16
16
|
import { useMenu } from '../../contexts/MenuContext/context.mjs';
|
|
17
17
|
import { StickyGridItem } from './StickyGrid/StickyGridItem.mjs';
|
|
@@ -15,7 +15,7 @@ require('./StickyGrid/index.js');
|
|
|
15
15
|
var StyleableSvgImage = require('../../../../StyleableSvgImage/StyleableSvgImage.js');
|
|
16
16
|
var context = require('../../../../../contexts/MenuContext/context.js');
|
|
17
17
|
var checkIconSvg = require("../../../../../assets/check2.svg");
|
|
18
|
-
var minusIconSvg = require("../../../../../assets/
|
|
18
|
+
var minusIconSvg = require("../../../../../assets/minus2.svg");
|
|
19
19
|
var Reveal$1 = require('../../../../Reveal/Reveal.js');
|
|
20
20
|
var StickyGridItem = require('./StickyGrid/StickyGridItem.js');
|
|
21
21
|
function _interopDefault(e) {
|
|
@@ -13,7 +13,7 @@ import './StickyGrid/index.mjs';
|
|
|
13
13
|
import { StyleableSvgImage } from '../../../../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
14
14
|
import { useMenu } from '../../../../../contexts/MenuContext/context.mjs';
|
|
15
15
|
import checkIconSvg__default from "../../../../../assets/check2.svg";
|
|
16
|
-
import minusIconSvg__default from "../../../../../assets/
|
|
16
|
+
import minusIconSvg__default from "../../../../../assets/minus2.svg";
|
|
17
17
|
import { Reveal as Reveal$1 } from '../../../../Reveal/Reveal.mjs';
|
|
18
18
|
import { StickyGridItem } from './StickyGrid/StickyGridItem.mjs';
|
|
19
19
|
"use strict";
|