@ubnt/store.core 9.22.0-alpha.0 → 9.22.0-alpha.10
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 +44 -0
- package/lib/assets/attention.svg +5 -5
- package/lib/assets/attention2.svg +5 -5
- package/lib/assets/minus4.svg +8 -8
- package/lib/assets/minus5.svg +8 -8
- package/lib/assets/pause.svg +3 -3
- package/lib/assets/pause2.svg +3 -3
- package/lib/assets/plus5.svg +9 -9
- package/lib/assets/plus6.svg +9 -9
- package/lib/components/Button/CartButton.d.ts +1 -3
- package/lib/components/Button/CartButton.js +12 -8
- package/lib/components/Button/CartButton.js.map +1 -1
- package/lib/components/Button/CartButton.mjs +12 -8
- package/lib/components/Button/CartButton.mjs.map +1 -1
- package/lib/components/Explore/ExploreData.js +3 -3
- package/lib/components/Explore/ExploreData.js.map +1 -1
- package/lib/components/Explore/ExploreData.mjs +3 -3
- package/lib/components/Explore/ExploreData.mjs.map +1 -1
- package/lib/components/Header/CartModalV2/Item/Item.styles.d.ts +1 -1
- package/lib/components/Header/Header.js +4 -3
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/Header.mjs +4 -3
- package/lib/components/Header/Header.mjs.map +1 -1
- package/lib/components/Header/Header.types.d.ts +1 -1
- package/lib/components/Header/Header.types.js.map +1 -1
- package/lib/components/Header/Header.types.mjs.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.d.ts +1 -1
- package/lib/components/Header/ProHeader/ProHeader.js +18 -43
- package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.mjs +19 -44
- package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +3 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.js +6 -0
- package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs +6 -0
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
- package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.types.d.ts +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.d.ts +4 -0
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.js +27 -11
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.js.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.mjs +27 -12
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.mjs.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.d.ts +6 -6
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.js +9 -8
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.js.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.mjs +9 -8
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.mjs.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.d.ts +2 -2
- package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.js.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.mjs.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.js +3 -21
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.js.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.mjs +4 -16
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.mjs.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.d.ts +0 -2
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.js +3 -38
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.js.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.mjs +4 -37
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.mjs.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/index.js +1 -0
- package/lib/components/MicrositeHeader/components/Navigation/index.js.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/index.mjs +1 -1
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +1 -1
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.mjs +1 -1
- package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.js +1 -1
- package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.mjs +2 -2
- package/lib/components/ModelCompareV3/data/products/express.js +2 -2
- package/lib/components/ModelCompareV3/data/products/express.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/express.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/express.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js +2 -2
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.js +2 -2
- package/lib/components/ModelCompareV3/data/products/udmPro.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/udmPro.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.js +2 -2
- package/lib/components/ModelCompareV3/data/products/udmProMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/udmProMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +2 -2
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udr.js +2 -2
- package/lib/components/ModelCompareV3/data/products/udr.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udr.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/udr.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udw.js +2 -2
- package/lib/components/ModelCompareV3/data/products/udw.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udw.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/udw.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
- package/lib/components/VideoPlayerNew/VideoPlayer.js +1 -1
- package/lib/components/VideoPlayerNew/VideoPlayer.mjs +1 -1
- package/lib/components/VideoPlayerNew/assets/pause.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/pause.svg.mjs +2 -2
- package/lib/constants/proStoreCategories/mapping/index.d.ts +2 -2
- package/lib/constants/proStoreCategories/mapping/index.js +37 -62
- package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.mjs +36 -60
- package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/redirects.js +17 -2
- package/lib/constants/proStoreCategories/mapping/redirects.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/redirects.mjs +17 -2
- package/lib/constants/proStoreCategories/mapping/redirects.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.d.ts +5 -5
- package/lib/constants/proStoreCategories/mapping/unifi.js +5 -5
- package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.mjs +5 -5
- package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.js +2 -0
- package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.mjs +2 -0
- package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.js +2 -0
- package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.mjs +2 -0
- package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.js +2 -0
- package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.mjs +2 -0
- package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.js +2 -2
- package/lib/constants/proStoreCategories/translations/en.json.mjs +2 -2
- package/lib/constants/proStoreCategories/translations/es.json.js +2 -0
- package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.mjs +2 -0
- package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js +2 -0
- package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.mjs +2 -0
- package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.js +2 -0
- package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.mjs +2 -0
- package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.js +2 -0
- package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.mjs +2 -0
- package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js +2 -0
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +2 -0
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +2 -0
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +2 -0
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +2 -0
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +2 -0
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/constants/proStoreFilters/mapping.js +4 -4
- package/lib/constants/proStoreFilters/mapping.js.map +1 -1
- package/lib/constants/proStoreFilters/mapping.mjs +4 -4
- package/lib/constants/proStoreFilters/mapping.mjs.map +1 -1
- package/lib/contexts/MenuContext/mapping.js.map +1 -1
- package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
- package/lib/contexts/MicrositeMenuContext/mapping.js +8 -1
- package/lib/contexts/MicrositeMenuContext/mapping.js.map +1 -1
- package/lib/contexts/MicrositeMenuContext/mapping.mjs +8 -1
- package/lib/contexts/MicrositeMenuContext/mapping.mjs.map +1 -1
- package/lib/contexts/MicrositeMenuContext/types.d.ts +1 -0
- package/lib/contexts/MicrositeMenuContext/types.js.map +1 -1
- package/lib/contexts/MicrositeMenuContext/types.mjs.map +1 -1
- package/lib/utils/money/index.d.ts +2 -1
- package/lib/utils/money/index.js +4 -1
- package/lib/utils/money/index.js.map +1 -1
- package/lib/utils/money/index.mjs +2 -1
- package/lib/utils/money/index.mjs.map +1 -1
- package/package.json +1 -1
- package/lib/utils/money/allocators/index.d.ts +0 -2
- package/lib/utils/money/allocators/index.js +0 -8
- package/lib/utils/money/allocators/index.js.map +0 -1
- package/lib/utils/money/allocators/index.mjs +0 -4
- package/lib/utils/money/allocators/index.mjs.map +0 -1
|
@@ -1,19 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
require('../../../../../../assets/icons/zoomOut.svg.js');
|
|
5
4
|
require('../../../../../../contexts/MicrositeMenuContext/index.js');
|
|
6
5
|
var mapping = require('../../../../../../contexts/MicrositeMenuContext/mapping.js');
|
|
7
6
|
var translations = require('../../../../../../contexts/MicrositeMenuContext/translations.js');
|
|
8
7
|
var SubNavigation_styles = require('./SubNavigation.styles.js');
|
|
9
8
|
var context = require('../../../../../../contexts/MicrositeMenuContext/context.js');
|
|
10
|
-
var ZoomOutIcon = require("../../../../../../assets/zoomOut.svg");
|
|
11
|
-
function _interopDefault(e) {
|
|
12
|
-
return e && e.__esModule ? e : {
|
|
13
|
-
default: e
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
var ZoomOutIcon__default = /*#__PURE__*/_interopDefault(ZoomOutIcon);
|
|
17
9
|
"use strict";
|
|
18
10
|
const CATEGORY_WIDTH_MAP = {
|
|
19
11
|
[mapping.MenuCategoryId.CloudGateways]: 178,
|
|
@@ -42,18 +34,8 @@ const SubNavigation = ({
|
|
|
42
34
|
children: /* @__PURE__ */jsxRuntime.jsx(SubNavigation_styles.Container, {
|
|
43
35
|
size: "desktop",
|
|
44
36
|
noVerticalMargin: true,
|
|
45
|
-
children: /* @__PURE__ */jsxRuntime.
|
|
46
|
-
children:
|
|
47
|
-
children: /* @__PURE__ */jsxRuntime.jsxs(SubNavigation_styles.SitemapButton, {
|
|
48
|
-
children: [/* @__PURE__ */jsxRuntime.jsx(SubNavigation_styles.SvgImage, {
|
|
49
|
-
src: ZoomOutIcon__default["default"],
|
|
50
|
-
height: 20,
|
|
51
|
-
width: 20
|
|
52
|
-
}), /* @__PURE__ */jsxRuntime.jsx("span", {
|
|
53
|
-
children: "View Site Map & Topology"
|
|
54
|
-
})]
|
|
55
|
-
})
|
|
56
|
-
}), /* @__PURE__ */jsxRuntime.jsx(SubNavigation_styles.SubNavItemsWrapper, {
|
|
37
|
+
children: /* @__PURE__ */jsxRuntime.jsx(SubNavigation_styles.FlexColumn, {
|
|
38
|
+
children: /* @__PURE__ */jsxRuntime.jsx(SubNavigation_styles.SubNavItemsWrapper, {
|
|
57
39
|
$isVisible: show,
|
|
58
40
|
children: (menu?.items ?? []).map(navItem => /* @__PURE__ */jsxRuntime.jsxs(SubNavigation_styles.SubNavItem, {
|
|
59
41
|
href: navItem.url,
|
|
@@ -81,7 +63,7 @@ const SubNavigation = ({
|
|
|
81
63
|
children: navItem.isOverview ? "" : formatMessage("commons.menu.label.compare")
|
|
82
64
|
})]
|
|
83
65
|
}, navItem.id))
|
|
84
|
-
})
|
|
66
|
+
})
|
|
85
67
|
})
|
|
86
68
|
})
|
|
87
69
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubNavigation.js","sources":["../../../../../../../src/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.tsx"],"sourcesContent":["import type { StaticImageData } from \"next/image\";\n\nimport
|
|
1
|
+
{"version":3,"file":"SubNavigation.js","sources":["../../../../../../../src/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.tsx"],"sourcesContent":["import type { StaticImageData } from \"next/image\";\n\nimport { useMicrositeMenu } from \"../../../../../../contexts/MicrositeMenuContext\";\nimport { MenuCategoryId } from \"../../../../../../contexts/MicrositeMenuContext/mapping\";\nimport { useMicrositeMenuTranslations } from \"../../../../../../contexts/MicrositeMenuContext/translations\";\nimport type { ParsedMicrositeHeaderItem } from \"../../../../../../contexts/MicrositeMenuContext/types\";\nimport * as S from \"./SubNavigation.styles\";\n\nconst CATEGORY_WIDTH_MAP = {\n [MenuCategoryId.CloudGateways]: 178,\n [MenuCategoryId.Switching]: 158,\n [MenuCategoryId.WiFi]: 158,\n [MenuCategoryId.PhysicalSecurity]: 158,\n [MenuCategoryId.NewIntegrations]: 178,\n};\n\n// TODO: FIX TYPE CASTING\nexport const SubNavigation = ({\n menu,\n show,\n}: {\n show: boolean;\n menu: ParsedMicrositeHeaderItem | null;\n}) => {\n const { language } = useMicrositeMenu();\n const { formatMessage } = useMicrositeMenuTranslations(language);\n\n return (\n <S.Wrap motif=\"light\">\n <S.MenuWrap motif=\"light\" $slideInView={show}>\n <S.MenuInnerWrap $shouldShow={show}>\n <S.Container size=\"desktop\" noVerticalMargin>\n <S.FlexColumn>\n <S.SubNavItemsWrapper $isVisible={show}>\n {(menu?.items ?? []).map((navItem) => (\n <S.SubNavItem\n key={navItem.id}\n href={navItem.url}\n $maxWidth={CATEGORY_WIDTH_MAP?.[menu?.id as MenuCategoryId]}\n >\n {!!(navItem?.image as StaticImageData)?.src && (\n <S.StyledImg\n src={(navItem.image as StaticImageData).src}\n $width={(navItem.image as StaticImageData).width}\n $height={(navItem.image as StaticImageData).height}\n alt={navItem.label}\n />\n )}\n <S.Title>\n {formatMessage(\n navItem.label as keyof typeof formatMessage,\n )}\n\n {!!navItem?.isNew && (\n <S.Badge>\n {formatMessage(\"commons.menu.label.new\")}\n </S.Badge>\n )}\n </S.Title>\n\n {!!navItem?.description && (\n <S.Description\n dangerouslySetInnerHTML={{\n __html: formatMessage(\n navItem.description as keyof typeof formatMessage,\n ),\n }}\n />\n )}\n\n <S.CompareExploreAnchor\n href={`/`}\n onClick={(event) => {\n if (!navItem?.isOverview) {\n event.preventDefault();\n }\n }}\n >\n {navItem.isOverview\n ? \"\"\n : formatMessage(\"commons.menu.label.compare\")}\n </S.CompareExploreAnchor>\n </S.SubNavItem>\n ))}\n </S.SubNavItemsWrapper>\n </S.FlexColumn>\n </S.Container>\n </S.MenuInnerWrap>\n </S.MenuWrap>\n </S.Wrap>\n );\n};\n"],"names":["CATEGORY_WIDTH_MAP","MenuCategoryId","CloudGateways","Switching","WiFi","PhysicalSecurity","NewIntegrations","SubNavigation","menu","show","language","useMicrositeMenu","formatMessage","useMicrositeMenuTranslations","jsx","S.Wrap","Wrap","motif","children","S.MenuWrap","MenuWrap","$slideInView","S.MenuInnerWrap","$shouldShow","S.Container","size","noVerticalMargin","S.FlexColumn","FlexColumn","S.SubNavItemsWrapper","$isVisible","items","map","navItem","jsxs","S.SubNavItem","SubNavItem","href","url","$maxWidth","id","image","src","S.StyledImg","StyledImg","$width","width","$height","height","alt","label","S.Title","isNew","S.Badge","description","S.Description","Description","dangerouslySetInnerHTML","__html","S.CompareExploreAnchor","CompareExploreAnchor","onClick","event","isOverview","preventDefault"],"mappings":";;;;;;;;;AAQA,MAAMA,kBAAqB,GAAA;EACzB,CAACC,OAAAA,CAAAA,cAAe,CAAAC,aAAa,GAAG,GAAA;EAChC,CAACD,OAAAA,CAAAA,cAAe,CAAAE,SAAS,GAAG,GAAA;EAC5B,CAACF,OAAAA,CAAAA,cAAe,CAAAG,IAAI,GAAG,GAAA;EACvB,CAACH,OAAAA,CAAAA,cAAe,CAAAI,gBAAgB,GAAG,GAAA;EACnC,CAACJ,OAAAA,CAAAA,cAAe,CAAAK,eAAe,GAAG;AACpC,CAAA;AAGO,MAAMC,gBAAgBA,CAAC;EAC5BC,IAAA;EACAC;AACF,CAGM,KAAA;EACE,MAAA;IAAEC;GAAS,GAAIC,OAAAA,CAAAA,gBAAiB,EAAA;EACtC,MAAM;IAAEC;EAAA,CAAkB,GAAAC,YAAA,CAAAA,4BAAA,CAA6BH,QAAQ,CAAA;EAG7D,sBAAAI,UAAA,CAAAA,GAAA,CAACC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A,EAASmB,KACV,IAAA,eAAAtC,cAAA,CAACuC,oBAAAA,CAAAA,KAAA,EAAA;oBACEnC,QAAc,EAAAN,aAAA,CAAA,wBAAwB;mBACzC,CAAA;iBAEJ,CAAA,EAEC,CAAC,CAACqB,OAAA,EAASqB,WACV,mBAAAxC,UAAA,CAAAA,GAAA,CAACyC,oBAAE,CAAAC,WAAA,EAAF;kBACCC,uBAAyB,EAAA;oBACvBC,MAAQ,EAAA9C,aAAA,CACNqB,OAAQ,CAAAqB,WACV;kBACF;gBAAA,CACF,CAAA,EAAA,eAGFxC,UAAA,CAAAA,GAAA,CAAC6C,oBAAE,CAAAC,oBAAA,EAAF;kBACCvB,IAAM,EAAA,GAAA;kBACNwB,OAAA,EAAUC,KAAU,IAAA;oBACd,IAAA,CAAC7B,SAAS8B,UAAY,EAAA;sBACxBD,KAAA,CAAME,cAAe,CAAA,CAAA;oBACvB;kBACF,CAAA;kBAEC9C,QAAQ,EAAAe,OAAA,CAAA8B,UAAA,GACL,EACA,GAAAnD,aAAA,CAAc,4BAA4B;gBAAA,CAChD,CAAA;cAAA,CAAA,EA7CKqB,OAAQ,CAAAO,EAAA,CA+ChB;YACH,CAAA;UAAA,CACF;QACF,CAAA;MAAA,CACF;KACF;EACF,CAAA,CAAA;AAEJ,CAAA;"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import '../../../../../../assets/icons/zoomOut.svg.mjs';
|
|
3
2
|
import '../../../../../../contexts/MicrositeMenuContext/index.mjs';
|
|
4
3
|
import { MenuCategoryId } from '../../../../../../contexts/MicrositeMenuContext/mapping.mjs';
|
|
5
4
|
import { useMicrositeMenuTranslations } from '../../../../../../contexts/MicrositeMenuContext/translations.mjs';
|
|
6
|
-
import { Wrap, MenuWrap, MenuInnerWrap, Container, FlexColumn,
|
|
5
|
+
import { Wrap, MenuWrap, MenuInnerWrap, Container, FlexColumn, SubNavItemsWrapper, SubNavItem, StyledImg, Title, Badge, Description, CompareExploreAnchor } from './SubNavigation.styles.mjs';
|
|
7
6
|
import { useMicrositeMenu } from '../../../../../../contexts/MicrositeMenuContext/context.mjs';
|
|
8
|
-
import ZoomOutIcon__default from "../../../../../../assets/zoomOut.svg";
|
|
9
7
|
"use strict";
|
|
10
8
|
const CATEGORY_WIDTH_MAP = {
|
|
11
9
|
[MenuCategoryId.CloudGateways]: 178,
|
|
@@ -34,18 +32,8 @@ const SubNavigation = ({
|
|
|
34
32
|
children: /* @__PURE__ */jsx(Container, {
|
|
35
33
|
size: "desktop",
|
|
36
34
|
noVerticalMargin: true,
|
|
37
|
-
children: /* @__PURE__ */
|
|
38
|
-
children:
|
|
39
|
-
children: /* @__PURE__ */jsxs(SitemapButton, {
|
|
40
|
-
children: [/* @__PURE__ */jsx(SvgImage, {
|
|
41
|
-
src: ZoomOutIcon__default,
|
|
42
|
-
height: 20,
|
|
43
|
-
width: 20
|
|
44
|
-
}), /* @__PURE__ */jsx("span", {
|
|
45
|
-
children: "View Site Map & Topology"
|
|
46
|
-
})]
|
|
47
|
-
})
|
|
48
|
-
}), /* @__PURE__ */jsx(SubNavItemsWrapper, {
|
|
35
|
+
children: /* @__PURE__ */jsx(FlexColumn, {
|
|
36
|
+
children: /* @__PURE__ */jsx(SubNavItemsWrapper, {
|
|
49
37
|
$isVisible: show,
|
|
50
38
|
children: (menu?.items ?? []).map(navItem => /* @__PURE__ */jsxs(SubNavItem, {
|
|
51
39
|
href: navItem.url,
|
|
@@ -73,7 +61,7 @@ const SubNavigation = ({
|
|
|
73
61
|
children: navItem.isOverview ? "" : formatMessage("commons.menu.label.compare")
|
|
74
62
|
})]
|
|
75
63
|
}, navItem.id))
|
|
76
|
-
})
|
|
64
|
+
})
|
|
77
65
|
})
|
|
78
66
|
})
|
|
79
67
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubNavigation.mjs","sources":["../../../../../../../src/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.tsx"],"sourcesContent":["import type { StaticImageData } from \"next/image\";\n\nimport
|
|
1
|
+
{"version":3,"file":"SubNavigation.mjs","sources":["../../../../../../../src/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.tsx"],"sourcesContent":["import type { StaticImageData } from \"next/image\";\n\nimport { useMicrositeMenu } from \"../../../../../../contexts/MicrositeMenuContext\";\nimport { MenuCategoryId } from \"../../../../../../contexts/MicrositeMenuContext/mapping\";\nimport { useMicrositeMenuTranslations } from \"../../../../../../contexts/MicrositeMenuContext/translations\";\nimport type { ParsedMicrositeHeaderItem } from \"../../../../../../contexts/MicrositeMenuContext/types\";\nimport * as S from \"./SubNavigation.styles\";\n\nconst CATEGORY_WIDTH_MAP = {\n [MenuCategoryId.CloudGateways]: 178,\n [MenuCategoryId.Switching]: 158,\n [MenuCategoryId.WiFi]: 158,\n [MenuCategoryId.PhysicalSecurity]: 158,\n [MenuCategoryId.NewIntegrations]: 178,\n};\n\n// TODO: FIX TYPE CASTING\nexport const SubNavigation = ({\n menu,\n show,\n}: {\n show: boolean;\n menu: ParsedMicrositeHeaderItem | null;\n}) => {\n const { language } = useMicrositeMenu();\n const { formatMessage } = useMicrositeMenuTranslations(language);\n\n return (\n <S.Wrap motif=\"light\">\n <S.MenuWrap motif=\"light\" $slideInView={show}>\n <S.MenuInnerWrap $shouldShow={show}>\n <S.Container size=\"desktop\" noVerticalMargin>\n <S.FlexColumn>\n <S.SubNavItemsWrapper $isVisible={show}>\n {(menu?.items ?? []).map((navItem) => (\n <S.SubNavItem\n key={navItem.id}\n href={navItem.url}\n $maxWidth={CATEGORY_WIDTH_MAP?.[menu?.id as MenuCategoryId]}\n >\n {!!(navItem?.image as StaticImageData)?.src && (\n <S.StyledImg\n src={(navItem.image as StaticImageData).src}\n $width={(navItem.image as StaticImageData).width}\n $height={(navItem.image as StaticImageData).height}\n alt={navItem.label}\n />\n )}\n <S.Title>\n {formatMessage(\n navItem.label as keyof typeof formatMessage,\n )}\n\n {!!navItem?.isNew && (\n <S.Badge>\n {formatMessage(\"commons.menu.label.new\")}\n </S.Badge>\n )}\n </S.Title>\n\n {!!navItem?.description && (\n <S.Description\n dangerouslySetInnerHTML={{\n __html: formatMessage(\n navItem.description as keyof typeof formatMessage,\n ),\n }}\n />\n )}\n\n <S.CompareExploreAnchor\n href={`/`}\n onClick={(event) => {\n if (!navItem?.isOverview) {\n event.preventDefault();\n }\n }}\n >\n {navItem.isOverview\n ? \"\"\n : formatMessage(\"commons.menu.label.compare\")}\n </S.CompareExploreAnchor>\n </S.SubNavItem>\n ))}\n </S.SubNavItemsWrapper>\n </S.FlexColumn>\n </S.Container>\n </S.MenuInnerWrap>\n </S.MenuWrap>\n </S.Wrap>\n );\n};\n"],"names":["CATEGORY_WIDTH_MAP","MenuCategoryId","CloudGateways","Switching","WiFi","PhysicalSecurity","NewIntegrations","SubNavigation","menu","show","language","useMicrositeMenu","formatMessage","useMicrositeMenuTranslations","jsx","S.Wrap","motif","children","S.MenuWrap","$slideInView","S.MenuInnerWrap","$shouldShow","S.Container","size","noVerticalMargin","S.FlexColumn","S.SubNavItemsWrapper","$isVisible","items","map","navItem","jsxs","S.SubNavItem","href","url","$maxWidth","id","image","src","S.StyledImg","$width","width","$height","height","alt","label","S.Title","isNew","S.Badge","description","S.Description","dangerouslySetInnerHTML","__html","S.CompareExploreAnchor","onClick","event","isOverview","preventDefault"],"mappings":";;;;;;;AAQA,MAAMA,kBAAqB,GAAA;EACzB,CAACC,cAAe,CAAAC,aAAa,GAAG,GAAA;EAChC,CAACD,cAAe,CAAAE,SAAS,GAAG,GAAA;EAC5B,CAACF,cAAe,CAAAG,IAAI,GAAG,GAAA;EACvB,CAACH,cAAe,CAAAI,gBAAgB,GAAG,GAAA;EACnC,CAACJ,cAAe,CAAAK,eAAe,GAAG;AACpC,CAAA;AAGO,MAAMC,gBAAgBA,CAAC;EAC5BC,IAAA;EACAC;AACF,CAGM,KAAA;EACE,MAAA;IAAEC;GAAS,GA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aAAA,CAAA,wBAAwB;mBACzC,CAAA;iBAEJ,CAAA,EAEC,CAAC,CAACkB,OAAA,EAASmB,WACV,mBAAAnC,GAAA,CAACoC,WAAE,EAAF;kBACCC,uBAAyB,EAAA;oBACvBC,MAAQ,EAAAxC,aAAA,CACNkB,OAAQ,CAAAmB,WACV;kBACF;gBAAA,CACF,CAAA,EAAA,eAGFnC,GAAA,CAACuC,oBAAE,EAAF;kBACCpB,IAAM,EAAA,GAAA;kBACNqB,OAAA,EAAUC,KAAU,IAAA;oBACd,IAAA,CAACzB,SAAS0B,UAAY,EAAA;sBACxBD,KAAA,CAAME,cAAe,CAAA,CAAA;oBACvB;kBACF,CAAA;kBAECxC,QAAQ,EAAAa,OAAA,CAAA0B,UAAA,GACL,EACA,GAAA5C,aAAA,CAAc,4BAA4B;gBAAA,CAChD,CAAA;cAAA,CAAA,EA7CKkB,OAAQ,CAAAM,EAAA,CA+ChB;YACH,CAAA;UAAA,CACF;QACF,CAAA;MAAA,CACF;KACF;EACF,CAAA,CAAA;AAEJ,CAAA;"}
|
|
@@ -19,9 +19,7 @@ export declare const SubNavItem: import("styled-components").StyledComponent<"a"
|
|
|
19
19
|
$maxWidth: number;
|
|
20
20
|
}, never>;
|
|
21
21
|
export declare const SvgImage: import("styled-components").StyledComponent<({ src, width, height, renderedHeight, className, }: import("../../../../../StyleableSvgImage").StyleableSvgImageProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
22
|
-
export declare const SitemapButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
|
|
23
22
|
export declare const FlexColumn: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
24
|
-
export declare const SiteMapWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
25
23
|
export declare const StyledImg: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, {
|
|
26
24
|
$width: number;
|
|
27
25
|
$height: number;
|
|
@@ -42,7 +42,7 @@ const MenuWrap = styled__default["default"].nav`
|
|
|
42
42
|
$slideInView
|
|
43
43
|
}) => $slideInView && styled.css`
|
|
44
44
|
padding-top: 48px;
|
|
45
|
-
height:
|
|
45
|
+
height: 258px;
|
|
46
46
|
opacity: 1;
|
|
47
47
|
`}
|
|
48
48
|
`;
|
|
@@ -57,7 +57,7 @@ const MenuInnerWrap = styled__default["default"].div`
|
|
|
57
57
|
$shouldShow
|
|
58
58
|
}) => $shouldShow && styled.css`
|
|
59
59
|
opacity: 1;
|
|
60
|
-
padding: 16px;
|
|
60
|
+
padding: 8px 16px 16px;
|
|
61
61
|
`}
|
|
62
62
|
`;
|
|
63
63
|
const Container = styled__default["default"](Container$1.Container)`
|
|
@@ -101,24 +101,18 @@ const SubNavItem = styled__default["default"].a`
|
|
|
101
101
|
@keyframes fade-in-quick {
|
|
102
102
|
0% {
|
|
103
103
|
opacity: 0;
|
|
104
|
-
transform: translateY(-3px);
|
|
105
104
|
}
|
|
106
105
|
|
|
107
106
|
15% {
|
|
108
107
|
opacity: 0.25;
|
|
109
108
|
}
|
|
110
109
|
|
|
111
|
-
|
|
112
|
-
transform: translateY(0);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
65%% {
|
|
110
|
+
70%% {
|
|
116
111
|
opacity: 1;
|
|
117
112
|
}
|
|
118
113
|
|
|
119
114
|
100% {
|
|
120
115
|
opacity: 1;
|
|
121
|
-
transform: translateY(0);
|
|
122
116
|
}
|
|
123
117
|
}
|
|
124
118
|
`;
|
|
@@ -126,39 +120,12 @@ const SvgImage = styled__default["default"](StyleableSvgImage.StyleableSvgImage)
|
|
|
126
120
|
color: #808893;
|
|
127
121
|
transition: color 0.2s ease-in-out;
|
|
128
122
|
`;
|
|
129
|
-
const SitemapButton = styled__default["default"].button`
|
|
130
|
-
align-items: center;
|
|
131
|
-
background: transparent;
|
|
132
|
-
border: none;
|
|
133
|
-
color: #212327;
|
|
134
|
-
cursor: pointer;
|
|
135
|
-
display: flex;
|
|
136
|
-
font-size: 12px;
|
|
137
|
-
gap: 6px;
|
|
138
|
-
line-height: normal;
|
|
139
|
-
outline: none;
|
|
140
|
-
transition: color 0.2s ease-in-out;
|
|
141
|
-
|
|
142
|
-
&:hover {
|
|
143
|
-
color: ${theme.theme.colors.primaryBlue};
|
|
144
|
-
|
|
145
|
-
${SvgImage} {
|
|
146
|
-
color: ${theme.theme.colors.primaryBlue};
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
`;
|
|
150
123
|
const FlexColumn = styled__default["default"].div`
|
|
151
124
|
display: flex;
|
|
152
125
|
flex-direction: column;
|
|
153
126
|
gap: 8px;
|
|
154
127
|
width: 100%;
|
|
155
128
|
`;
|
|
156
|
-
const SiteMapWrapper = styled__default["default"].div`
|
|
157
|
-
width: 100%;
|
|
158
|
-
display: flex;
|
|
159
|
-
justify-content: flex-end;
|
|
160
|
-
align-items: center;
|
|
161
|
-
`;
|
|
162
129
|
const StyledImg = styled__default["default"].img`
|
|
163
130
|
object-fit: contain;
|
|
164
131
|
width: ${({
|
|
@@ -218,8 +185,6 @@ exports.FlexColumn = FlexColumn;
|
|
|
218
185
|
exports.HEADER_NAVIGATION_MICROSITE_MENU_HEIGHT = HEADER_NAVIGATION_MICROSITE_MENU_HEIGHT;
|
|
219
186
|
exports.MenuInnerWrap = MenuInnerWrap;
|
|
220
187
|
exports.MenuWrap = MenuWrap;
|
|
221
|
-
exports.SiteMapWrapper = SiteMapWrapper;
|
|
222
|
-
exports.SitemapButton = SitemapButton;
|
|
223
188
|
exports.StyledImg = StyledImg;
|
|
224
189
|
exports.SubNavItem = SubNavItem;
|
|
225
190
|
exports.SubNavItemsWrapper = SubNavItemsWrapper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubNavigation.styles.js","sources":["../../../../../../../src/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.tsx"],"sourcesContent":["import type { Motif } from \"@ubnt/ui-components/utils\";\nimport styled, { css } from \"styled-components\";\n\nimport { BREAKPOINTS } from \"../../../../../../constants/layout\";\nimport { theme } from \"../../../../../../constants/theme\";\nimport { Container as ContainerBase } from \"../../../../../Container\";\nimport { WrapPadding } from \"../../../../../Container/Container.styles\";\nimport { StyleableSvgImage } from \"../../../../../StyleableSvgImage\";\nimport { withCssTransition } from \"../../../DropdownMenu/DropdownMenu.styles\";\n\nconst MICROSITE_MENU_Z_INDEX = theme.zIndex.header - 1;\n\nexport const HEADER_NAVIGATION_MICROSITE_MENU_HEIGHT = 130;\nexport const TRANSITION_DURATION_MS = 250;\n\nexport const Wrap = styled.div<{\n motif: Motif;\n}>`\n position: fixed;\n left: 0;\n top: 0;\n width: 100%;\n z-index: ${MICROSITE_MENU_Z_INDEX};\n`;\n\nexport const MenuWrap = styled.nav<{ motif: Motif; $slideInView?: boolean }>`\n background: ${({ motif }) => theme.colors.menu.base[motif]};\n display: flex;\n height: 0;\n opacity: 0;\n overflow: hidden;\n position: absolute;\n width: 100%;\n ${withCssTransition([\"height\", \"opacity\"])};\n\n ${({ $slideInView }) =>\n $slideInView &&\n css`\n padding-top: 48px;\n height:
|
|
1
|
+
{"version":3,"file":"SubNavigation.styles.js","sources":["../../../../../../../src/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.tsx"],"sourcesContent":["import type { Motif } from \"@ubnt/ui-components/utils\";\nimport styled, { css } from \"styled-components\";\n\nimport { BREAKPOINTS } from \"../../../../../../constants/layout\";\nimport { theme } from \"../../../../../../constants/theme\";\nimport { Container as ContainerBase } from \"../../../../../Container\";\nimport { WrapPadding } from \"../../../../../Container/Container.styles\";\nimport { StyleableSvgImage } from \"../../../../../StyleableSvgImage\";\nimport { withCssTransition } from \"../../../DropdownMenu/DropdownMenu.styles\";\n\nconst MICROSITE_MENU_Z_INDEX = theme.zIndex.header - 1;\n\nexport const HEADER_NAVIGATION_MICROSITE_MENU_HEIGHT = 130;\nexport const TRANSITION_DURATION_MS = 250;\n\nexport const Wrap = styled.div<{\n motif: Motif;\n}>`\n position: fixed;\n left: 0;\n top: 0;\n width: 100%;\n z-index: ${MICROSITE_MENU_Z_INDEX};\n`;\n\nexport const MenuWrap = styled.nav<{ motif: Motif; $slideInView?: boolean }>`\n background: ${({ motif }) => theme.colors.menu.base[motif]};\n display: flex;\n height: 0;\n opacity: 0;\n overflow: hidden;\n position: absolute;\n width: 100%;\n ${withCssTransition([\"height\", \"opacity\"])};\n\n ${({ $slideInView }) =>\n $slideInView &&\n css`\n padding-top: 48px;\n height: 258px;\n opacity: 1;\n `}\n`;\n\nexport const MenuInnerWrap = styled.div<{ $shouldShow?: boolean }>`\n display: flex;\n justify-content: center;\n opacity: 0;\n overflow: hidden;\n width: 100%;\n\n ${({ $shouldShow }) =>\n $shouldShow &&\n css`\n opacity: 1;\n padding: 8px 16px 16px;\n `}\n`;\n\nexport const Container = styled(ContainerBase)`\n margin: 0;\n padding: 0;\n max-width: 1200px;\n overflow: hidden;\n\n ${WrapPadding} {\n flex-direction: row;\n align-items: flex-start;\n\n @media ${BREAKPOINTS.SMALL_MOBILE_AND_DOWN} {\n flex-direction: column;\n align-items: stretch;\n }\n }\n`;\n\nexport const SubNavItemsWrapper = styled.div<{\n $isVisible: boolean;\n}>`\n gap: 16px;\n display: flex;\n justify-content: center;\n`;\n\nexport const SubNavItem = styled.a<{\n $maxWidth: number;\n}>`\n align-items: center;\n animation: fade-in-quick 0.5s linear;\n display: flex;\n flex-direction: column;\n flex: 1 1 0px;\n max-width: ${({ $maxWidth }) => `${$maxWidth}px`};\n padding: 8px 8px 16px;\n border-radius: 6px;\n transition: background 0.2s ease-in-out;\n\n &:hover {\n background: #f9f9fa;\n }\n\n @keyframes fade-in-quick {\n 0% {\n opacity: 0;\n }\n\n 15% {\n opacity: 0.25;\n }\n\n 70%% {\n opacity: 1;\n }\n\n 100% {\n opacity: 1;\n }\n }\n`;\n\nexport const SvgImage = styled(StyleableSvgImage)`\n color: #808893;\n transition: color 0.2s ease-in-out;\n`;\n\nexport const FlexColumn = styled.div`\n display: flex;\n flex-direction: column;\n gap: 8px;\n width: 100%;\n`;\n\nexport const StyledImg = styled.img<{ $width: number; $height: number }>`\n object-fit: contain;\n width: ${({ $width }) => $width}px;\n height: ${({ $height }) => $height}px;\n`;\n\nexport const Title = styled.h3`\n align-items: center;\n color: #212327;\n display: flex;\n font-size: 16px;\n justify-content: center;\n margin-bottom: 0;\n margin-top: 8px;\n text-align: center;\n`;\n\nexport const Description = styled.p`\n color: #50565e;\n font-size: 12px;\n height: 100%;\n line-height: 14px;\n margin-bottom: 0;\n margin-top: 4px;\n text-align: center;\n text-wrap: pretty;\n`;\n\nexport const CompareExploreAnchor = styled.a`\n color: #006fff;\n font-size: 12px;\n line-height: 14px;\n margin-top: 8px;\n min-height: 14px;\n`;\n\nexport const Badge = styled.span`\n align-items: center;\n border-radius: 3px;\n border: 1px solid ${theme.colors.primaryBlue};\n color: ${theme.colors.primaryBlue};\n display: flex;\n font-size: 9px;\n font-style: normal;\n height: 16px;\n justify-content: center;\n letter-spacing: -0.018px;\n margin-left: 4px;\n padding: 2px 3px;\n width: fit-content;\n`;\n"],"names":["MICROSITE_MENU_Z_INDEX","theme","zIndex","header","HEADER_NAVIGATION_MICROSITE_MENU_HEIGHT","TRANSITION_DURATION_MS","Wrap","styled","div","MenuWrap","nav","motif","colors","menu","base","withCssTransition","$slideInView","css","MenuInnerWrap","$shouldShow","Container","ContainerBase","WrapPadding","BREAKPOINTS","SMALL_MOBILE_AND_DOWN","SubNavItemsWrapper","SubNavItem","a","$maxWidth","SvgImage","StyleableSvgImage","FlexColumn","StyledImg","img","$width","$height","Title","h3","Description","p","CompareExploreAnchor","Badge","span","primaryBlue"],"mappings":";;;;;;;;;;;;;;;;;;AAUA,MAAMA,sBAAA,GAAyBC,KAAM,CAAAA,KAAA,CAAAC,MAAA,CAAOC,MAAS,GAAA,CAAA;AAE9C,MAAMC,uCAA0C,GAAA,GAAA;AAChD,MAAMC,sBAAyB,GAAA,GAAA;AA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-top: 48px;
|
|
37
|
-
height:
|
|
37
|
+
height: 258px;
|
|
38
38
|
opacity: 1;
|
|
39
39
|
`}
|
|
40
40
|
`;
|
|
@@ -49,7 +49,7 @@ const MenuInnerWrap = styled.div`
|
|
|
49
49
|
$shouldShow
|
|
50
50
|
}) => $shouldShow && css`
|
|
51
51
|
opacity: 1;
|
|
52
|
-
padding: 16px;
|
|
52
|
+
padding: 8px 16px 16px;
|
|
53
53
|
`}
|
|
54
54
|
`;
|
|
55
55
|
const Container = styled(Container$1)`
|
|
@@ -93,24 +93,18 @@ const SubNavItem = styled.a`
|
|
|
93
93
|
@keyframes fade-in-quick {
|
|
94
94
|
0% {
|
|
95
95
|
opacity: 0;
|
|
96
|
-
transform: translateY(-3px);
|
|
97
96
|
}
|
|
98
97
|
|
|
99
98
|
15% {
|
|
100
99
|
opacity: 0.25;
|
|
101
100
|
}
|
|
102
101
|
|
|
103
|
-
|
|
104
|
-
transform: translateY(0);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
65%% {
|
|
102
|
+
70%% {
|
|
108
103
|
opacity: 1;
|
|
109
104
|
}
|
|
110
105
|
|
|
111
106
|
100% {
|
|
112
107
|
opacity: 1;
|
|
113
|
-
transform: translateY(0);
|
|
114
108
|
}
|
|
115
109
|
}
|
|
116
110
|
`;
|
|
@@ -118,39 +112,12 @@ const SvgImage = styled(StyleableSvgImage)`
|
|
|
118
112
|
color: #808893;
|
|
119
113
|
transition: color 0.2s ease-in-out;
|
|
120
114
|
`;
|
|
121
|
-
const SitemapButton = styled.button`
|
|
122
|
-
align-items: center;
|
|
123
|
-
background: transparent;
|
|
124
|
-
border: none;
|
|
125
|
-
color: #212327;
|
|
126
|
-
cursor: pointer;
|
|
127
|
-
display: flex;
|
|
128
|
-
font-size: 12px;
|
|
129
|
-
gap: 6px;
|
|
130
|
-
line-height: normal;
|
|
131
|
-
outline: none;
|
|
132
|
-
transition: color 0.2s ease-in-out;
|
|
133
|
-
|
|
134
|
-
&:hover {
|
|
135
|
-
color: ${theme.colors.primaryBlue};
|
|
136
|
-
|
|
137
|
-
${SvgImage} {
|
|
138
|
-
color: ${theme.colors.primaryBlue};
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
`;
|
|
142
115
|
const FlexColumn = styled.div`
|
|
143
116
|
display: flex;
|
|
144
117
|
flex-direction: column;
|
|
145
118
|
gap: 8px;
|
|
146
119
|
width: 100%;
|
|
147
120
|
`;
|
|
148
|
-
const SiteMapWrapper = styled.div`
|
|
149
|
-
width: 100%;
|
|
150
|
-
display: flex;
|
|
151
|
-
justify-content: flex-end;
|
|
152
|
-
align-items: center;
|
|
153
|
-
`;
|
|
154
121
|
const StyledImg = styled.img`
|
|
155
122
|
object-fit: contain;
|
|
156
123
|
width: ${({
|
|
@@ -202,5 +169,5 @@ const Badge = styled.span`
|
|
|
202
169
|
padding: 2px 3px;
|
|
203
170
|
width: fit-content;
|
|
204
171
|
`;
|
|
205
|
-
export { Badge, CompareExploreAnchor, Container, Description, FlexColumn, HEADER_NAVIGATION_MICROSITE_MENU_HEIGHT, MenuInnerWrap, MenuWrap,
|
|
172
|
+
export { Badge, CompareExploreAnchor, Container, Description, FlexColumn, HEADER_NAVIGATION_MICROSITE_MENU_HEIGHT, MenuInnerWrap, MenuWrap, StyledImg, SubNavItem, SubNavItemsWrapper, SvgImage, TRANSITION_DURATION_MS, Title, Wrap };
|
|
206
173
|
//# sourceMappingURL=SubNavigation.styles.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubNavigation.styles.mjs","sources":["../../../../../../../src/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.tsx"],"sourcesContent":["import type { Motif } from \"@ubnt/ui-components/utils\";\nimport styled, { css } from \"styled-components\";\n\nimport { BREAKPOINTS } from \"../../../../../../constants/layout\";\nimport { theme } from \"../../../../../../constants/theme\";\nimport { Container as ContainerBase } from \"../../../../../Container\";\nimport { WrapPadding } from \"../../../../../Container/Container.styles\";\nimport { StyleableSvgImage } from \"../../../../../StyleableSvgImage\";\nimport { withCssTransition } from \"../../../DropdownMenu/DropdownMenu.styles\";\n\nconst MICROSITE_MENU_Z_INDEX = theme.zIndex.header - 1;\n\nexport const HEADER_NAVIGATION_MICROSITE_MENU_HEIGHT = 130;\nexport const TRANSITION_DURATION_MS = 250;\n\nexport const Wrap = styled.div<{\n motif: Motif;\n}>`\n position: fixed;\n left: 0;\n top: 0;\n width: 100%;\n z-index: ${MICROSITE_MENU_Z_INDEX};\n`;\n\nexport const MenuWrap = styled.nav<{ motif: Motif; $slideInView?: boolean }>`\n background: ${({ motif }) => theme.colors.menu.base[motif]};\n display: flex;\n height: 0;\n opacity: 0;\n overflow: hidden;\n position: absolute;\n width: 100%;\n ${withCssTransition([\"height\", \"opacity\"])};\n\n ${({ $slideInView }) =>\n $slideInView &&\n css`\n padding-top: 48px;\n height:
|
|
1
|
+
{"version":3,"file":"SubNavigation.styles.mjs","sources":["../../../../../../../src/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.tsx"],"sourcesContent":["import type { Motif } from \"@ubnt/ui-components/utils\";\nimport styled, { css } from \"styled-components\";\n\nimport { BREAKPOINTS } from \"../../../../../../constants/layout\";\nimport { theme } from \"../../../../../../constants/theme\";\nimport { Container as ContainerBase } from \"../../../../../Container\";\nimport { WrapPadding } from \"../../../../../Container/Container.styles\";\nimport { StyleableSvgImage } from \"../../../../../StyleableSvgImage\";\nimport { withCssTransition } from \"../../../DropdownMenu/DropdownMenu.styles\";\n\nconst MICROSITE_MENU_Z_INDEX = theme.zIndex.header - 1;\n\nexport const HEADER_NAVIGATION_MICROSITE_MENU_HEIGHT = 130;\nexport const TRANSITION_DURATION_MS = 250;\n\nexport const Wrap = styled.div<{\n motif: Motif;\n}>`\n position: fixed;\n left: 0;\n top: 0;\n width: 100%;\n z-index: ${MICROSITE_MENU_Z_INDEX};\n`;\n\nexport const MenuWrap = styled.nav<{ motif: Motif; $slideInView?: boolean }>`\n background: ${({ motif }) => theme.colors.menu.base[motif]};\n display: flex;\n height: 0;\n opacity: 0;\n overflow: hidden;\n position: absolute;\n width: 100%;\n ${withCssTransition([\"height\", \"opacity\"])};\n\n ${({ $slideInView }) =>\n $slideInView &&\n css`\n padding-top: 48px;\n height: 258px;\n opacity: 1;\n `}\n`;\n\nexport const MenuInnerWrap = styled.div<{ $shouldShow?: boolean }>`\n display: flex;\n justify-content: center;\n opacity: 0;\n overflow: hidden;\n width: 100%;\n\n ${({ $shouldShow }) =>\n $shouldShow &&\n css`\n opacity: 1;\n padding: 8px 16px 16px;\n `}\n`;\n\nexport const Container = styled(ContainerBase)`\n margin: 0;\n padding: 0;\n max-width: 1200px;\n overflow: hidden;\n\n ${WrapPadding} {\n flex-direction: row;\n align-items: flex-start;\n\n @media ${BREAKPOINTS.SMALL_MOBILE_AND_DOWN} {\n flex-direction: column;\n align-items: stretch;\n }\n }\n`;\n\nexport const SubNavItemsWrapper = styled.div<{\n $isVisible: boolean;\n}>`\n gap: 16px;\n display: flex;\n justify-content: center;\n`;\n\nexport const SubNavItem = styled.a<{\n $maxWidth: number;\n}>`\n align-items: center;\n animation: fade-in-quick 0.5s linear;\n display: flex;\n flex-direction: column;\n flex: 1 1 0px;\n max-width: ${({ $maxWidth }) => `${$maxWidth}px`};\n padding: 8px 8px 16px;\n border-radius: 6px;\n transition: background 0.2s ease-in-out;\n\n &:hover {\n background: #f9f9fa;\n }\n\n @keyframes fade-in-quick {\n 0% {\n opacity: 0;\n }\n\n 15% {\n opacity: 0.25;\n }\n\n 70%% {\n opacity: 1;\n }\n\n 100% {\n opacity: 1;\n }\n }\n`;\n\nexport const SvgImage = styled(StyleableSvgImage)`\n color: #808893;\n transition: color 0.2s ease-in-out;\n`;\n\nexport const FlexColumn = styled.div`\n display: flex;\n flex-direction: column;\n gap: 8px;\n width: 100%;\n`;\n\nexport const StyledImg = styled.img<{ $width: number; $height: number }>`\n object-fit: contain;\n width: ${({ $width }) => $width}px;\n height: ${({ $height }) => $height}px;\n`;\n\nexport const Title = styled.h3`\n align-items: center;\n color: #212327;\n display: flex;\n font-size: 16px;\n justify-content: center;\n margin-bottom: 0;\n margin-top: 8px;\n text-align: center;\n`;\n\nexport const Description = styled.p`\n color: #50565e;\n font-size: 12px;\n height: 100%;\n line-height: 14px;\n margin-bottom: 0;\n margin-top: 4px;\n text-align: center;\n text-wrap: pretty;\n`;\n\nexport const CompareExploreAnchor = styled.a`\n color: #006fff;\n font-size: 12px;\n line-height: 14px;\n margin-top: 8px;\n min-height: 14px;\n`;\n\nexport const Badge = styled.span`\n align-items: center;\n border-radius: 3px;\n border: 1px solid ${theme.colors.primaryBlue};\n color: ${theme.colors.primaryBlue};\n display: flex;\n font-size: 9px;\n font-style: normal;\n height: 16px;\n justify-content: center;\n letter-spacing: -0.018px;\n margin-left: 4px;\n padding: 2px 3px;\n width: fit-content;\n`;\n"],"names":["MICROSITE_MENU_Z_INDEX","theme","zIndex","header","HEADER_NAVIGATION_MICROSITE_MENU_HEIGHT","TRANSITION_DURATION_MS","Wrap","styled","div","MenuWrap","nav","motif","colors","menu","base","withCssTransition","$slideInView","css","MenuInnerWrap","$shouldShow","Container","ContainerBase","WrapPadding","BREAKPOINTS","SMALL_MOBILE_AND_DOWN","SubNavItemsWrapper","SubNavItem","a","$maxWidth","SvgImage","StyleableSvgImage","FlexColumn","StyledImg","img","$width","$height","Title","h3","Description","p","CompareExploreAnchor","Badge","span","primaryBlue"],"mappings":";;;;;;;;;;AAUA,MAAMA,sBAAA,GAAyBC,KAAM,CAAAC,MAAA,CAAOC,MAAS,GAAA,CAAA;AAE9C,MAAMC,uCAA0C,GAAA,GAAA;AAChD,MAAMC,sBAAyB,GAAA,GAAA;AAE/B,MAAMC,OAAOC,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAOdR,sBAAsB;AAAA,CAAA;AAG5B,MAAMS,WAAWF,MAAO,CAAAG,GAAA;AAAA,gBACf,CAAC;EAAEC;AAA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AAEC;AAAO,CAAA,KAAMA,MAAM;AAAA,YACrB,CAAC;EAAEC;AAAQ,CAAA,KAAMA,OAAO;AAAA,CAAA;AAG7B,MAAMC,QAAQ7B,MAAO,CAAA8B,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAWrB,MAAMC,cAAc/B,MAAO,CAAAgC,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAW3B,MAAMC,uBAAuBjC,MAAO,CAAAoB,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAQpC,MAAMc,QAAQlC,MAAO,CAAAmC,IAAA;AAAA;AAAA;AAAA,sBAGNzC,KAAA,CAAMW,OAAO+B,WAAW;AAAA,WACnC1C,KAAA,CAAMW,OAAO+B,WAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -11,7 +11,7 @@ require('./assets/play.svg.js');
|
|
|
11
11
|
var MicrositeVideoSlideshow_styles = require('./MicrositeVideoSlideshow.styles.js');
|
|
12
12
|
var MicrositeSectionWrap = require('../MicrositeSectionWrap/MicrositeSectionWrap.js');
|
|
13
13
|
var PlayIcon = require("../../assets/play.svg");
|
|
14
|
-
var PauseIcon = require("../../assets/
|
|
14
|
+
var PauseIcon = require("../../assets/pause.svg");
|
|
15
15
|
var ActiveIconBox = require("../../assets/active-icon-box.svg");
|
|
16
16
|
function _interopDefault(e) {
|
|
17
17
|
return e && e.__esModule ? e : {
|
|
@@ -9,7 +9,7 @@ import './assets/play.svg.mjs';
|
|
|
9
9
|
import { VideoBlock, Video, VideoControls, VideoInnerWrap, ProgressCircle, PlayIcon, PauseIcon, SlideRow, Slide, FeatureIconWrap, FeatureIconActiveBackground, FeatureIcon, FeatureTitle, MicrositeBuyButton } from './MicrositeVideoSlideshow.styles.mjs';
|
|
10
10
|
import { MicrositeSectionWrap } from '../MicrositeSectionWrap/MicrositeSectionWrap.mjs';
|
|
11
11
|
import PlayIcon__default from "../../assets/play.svg";
|
|
12
|
-
import PauseIcon__default from "../../assets/
|
|
12
|
+
import PauseIcon__default from "../../assets/pause.svg";
|
|
13
13
|
import ActiveIconBox__default from "../../assets/active-icon-box.svg";
|
|
14
14
|
"use strict";
|
|
15
15
|
const MicrositeVideoSlideshow = ({
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../assets/
|
|
2
|
-
export { default } from "../../../assets/
|
|
1
|
+
export * from "../../../assets/pause.svg";
|
|
2
|
+
export { default } from "../../../assets/pause.svg";
|
|
3
3
|
//# sourceMappingURL=pause.svg.mjs.map
|
|
@@ -40,9 +40,9 @@ const express = {
|
|
|
40
40
|
id: "express",
|
|
41
41
|
title: "express.title",
|
|
42
42
|
description: "express.description",
|
|
43
|
-
techspecsPath: [mapping.SiteId.TechSpecs, `/unifi/${unifi.UniFiCategoryId.
|
|
43
|
+
techspecsPath: [mapping.SiteId.TechSpecs, `/unifi/${unifi.UniFiCategoryId.CloudGateways}/ux`],
|
|
44
44
|
storePathParts: {
|
|
45
|
-
category:
|
|
45
|
+
category: unifi.UniFiCategorySlug.CloudGateways,
|
|
46
46
|
productSlug: "ux"
|
|
47
47
|
},
|
|
48
48
|
image: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"express.js","sources":["../../../../../src/components/ModelCompareV3/data/products/express.tsx"],"sourcesContent":["import styled from \"styled-components\";\n\nimport {
|
|
1
|
+
{"version":3,"file":"express.js","sources":["../../../../../src/components/ModelCompareV3/data/products/express.tsx"],"sourcesContent":["import styled from \"styled-components\";\n\nimport {\n UniFiCategoryId,\n UniFiCategorySlug,\n} from \"../../../../constants/proStoreCategories\";\nimport { SiteId } from \"../../../../contexts/MenuContext/mapping\";\nimport { StyleableSvgImage as StyleableSvgImageBase } from \"../../../StyleableSvgImage\";\nimport image from \"../../assets/Consoles/bigCompare/express.jpg\";\nimport applications from \"../../assets/wifi-device.svg\";\nimport type { Product } from \"../../ModelCompareV3.types\";\nimport { nextAiInspection } from \"../properties\";\nimport { clientDevices } from \"../properties/clientDevices\";\nimport { idsIpsThroughput } from \"../properties/idsIpsThroughput\";\nimport { integratedWiFi6 } from \"../properties/integratedWiFi6\";\nimport { lanPorts } from \"../properties/lanPorts\";\nimport { mounting } from \"../properties/mounting\";\nimport { powerRedundancy } from \"../properties/powerRedundancy\";\nimport { storage } from \"../properties/storage\";\nimport { throughput } from \"../properties/throughput\";\nimport { unifiAppSuite } from \"../properties/unifiAppSuite\";\nimport { unifiDevices } from \"../properties/unifiDevices\";\nimport { wanPorts } from \"../properties/wanPorts\";\n\nconst StyleableSvgImage = styled(StyleableSvgImageBase)`\n max-width: 15.75px;\n`;\n\nexport const express: Product = {\n id: \"express\",\n title: \"express.title\",\n description: \"express.description\",\n techspecsPath: [\n SiteId.TechSpecs,\n `/unifi/${UniFiCategoryId.CloudGateways}/ux`,\n ],\n storePathParts: {\n category: UniFiCategorySlug.CloudGateways,\n productSlug: \"ux\",\n },\n image: {\n src: image,\n width: 337,\n height: 130,\n },\n notes: [\"express.notes\"],\n propertyValues: [\n {\n propertyId: unifiAppSuite.id,\n value: {\n type: \"custom\",\n value: <StyleableSvgImage src={applications} height={30} width={144} />,\n },\n },\n {\n propertyId: throughput.id,\n value: {\n type: \"translation\",\n value: \"express.throughput\",\n },\n },\n {\n propertyId: idsIpsThroughput.id,\n value: {\n type: \"boolean\",\n value: false,\n },\n },\n {\n propertyId: unifiDevices.id,\n value: {\n type: \"translation\",\n value: \"express.unifiDevices\",\n },\n },\n {\n propertyId: clientDevices.id,\n value: {\n type: \"translation\",\n value: \"express.clientDevices\",\n },\n },\n {\n propertyId: wanPorts.id,\n value: {\n type: \"translation\",\n value: \"express.wanPorts\",\n },\n },\n {\n propertyId: lanPorts.id,\n value: {\n type: \"translation\",\n value: \"express.lanPorts\",\n },\n },\n {\n propertyId: nextAiInspection.id,\n value: {\n type: \"boolean\",\n value: false,\n },\n },\n {\n propertyId: storage.id,\n value: {\n type: \"boolean\",\n value: false,\n },\n },\n // {\n // propertyId: power.id,\n // value: {\n // type: \"string\",\n // value: \"USB type C (5V DC/3A) 10W\",\n // },\n // },\n {\n propertyId: powerRedundancy.id,\n value: {\n type: \"boolean\",\n value: false,\n },\n },\n {\n propertyId: mounting.id,\n value: {\n type: \"translation\",\n value: \"express.mounting\",\n },\n },\n {\n propertyId: integratedWiFi6.id,\n value: {\n type: \"translation\",\n value: \"express.integratedWiFi6\",\n },\n },\n ],\n};\n"],"names":["StyleableSvgImage","styled","StyleableSvgImageBase","express","id","title","description","techspecsPath","SiteId","TechSpecs","UniFiCategoryId","CloudGateways","storePathParts","category","UniFiCategorySlug","productSlug","image","src","width","height","notes","propertyValues","propertyId","unifiAppSuite","value","type","applications","throughput","idsIpsThroughput","unifiDevices","clientDevices","wanPorts","lanPorts","nextAiInspection","storage","powerRedundancy","mounting","integratedWiFi6"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,MAAMA,iBAAA,GAAoBC,eAAAA,CAAAA,SAAAA,EAAOC,mBAAAA,CAAAA,iBAAqB,CAAA;AAAA;AAAA,CAAA;AAI/C,MAAMC,OAAmB,GAAA;EAC9BC,EAAI,EAAA,SAAA;EACJC,KAAO,EAAA,eAAA;EACPC,WAAa,EAAA,qBAAA;EACbC,aAAe,EAAA,CACbC,OAAAA,CAAAA,MAAO,CAAAC,SAAA,EACP,UAAUC,KAAAA,CAAAA,gBAAgBC,aAAa,KAAA,CACzC;EACAC,cAAgB,EAAA;IACdC,UAAUC,KAAkB,CAAAA,iBAAA,CAAAH,aAAA;IAC5BI,WAAa,EAAA;EACf,CAAA;EACAC,KAAO,E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ACLC,IAAM,EAAA,SAAA;MACND,KAAO,EAAA;IACT;EACF,CAAA,EACA;IACEF,YAAYY,OAAQ,CAAAA,OAAA,CAAA9B,EAAA;IACpBoB,KAAO,EAAA;MACLC,IAAM,EAAA,SAAA;MACND,KAAO,EAAA;IACT;EACF,CAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAQA;IACEF,YAAYa,eAAgB,CAAAA,eAAA,CAAA/B,EAAA;IAC5BoB,KAAO,EAAA;MACLC,IAAM,EAAA,SAAA;MACND,KAAO,EAAA;IACT;EACF,CAAA,EACA;IACEF,YAAYc,QAAS,CAAAA,QAAA,CAAAhC,EAAA;IACrBoB,KAAO,EAAA;MACLC,IAAM,EAAA,aAAA;MACND,KAAO,EAAA;IACT;EACF,CAAA,EACA;IACEF,YAAYe,eAAgB,CAAAA,eAAA,CAAAjC,EAAA;IAC5BoB,KAAO,EAAA;MACLC,IAAM,EAAA,aAAA;MACND,KAAO,EAAA;IACT;EACF,CAAA;AAEJ,CAAA;"}
|
|
@@ -18,7 +18,7 @@ import { unifiAppSuite } from '../properties/unifiAppSuite.mjs';
|
|
|
18
18
|
import { unifiDevices } from '../properties/unifiDevices.mjs';
|
|
19
19
|
import { wanPorts } from '../properties/wanPorts.mjs';
|
|
20
20
|
import { StyleableSvgImage as StyleableSvgImage$1 } from '../../../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
21
|
-
import { UniFiCategoryId } from '../../../../constants/proStoreCategories/mapping/unifi.mjs';
|
|
21
|
+
import { UniFiCategoryId, UniFiCategorySlug } from '../../../../constants/proStoreCategories/mapping/unifi.mjs';
|
|
22
22
|
import image__default from "../../../../assets/express.jpg";
|
|
23
23
|
import applications__default from "../../../../assets/wifi-device.svg";
|
|
24
24
|
import { nextAiInspection } from '../properties/nextAiInspection.mjs';
|
|
@@ -30,9 +30,9 @@ const express = {
|
|
|
30
30
|
id: "express",
|
|
31
31
|
title: "express.title",
|
|
32
32
|
description: "express.description",
|
|
33
|
-
techspecsPath: [SiteId.TechSpecs, `/unifi/${UniFiCategoryId.
|
|
33
|
+
techspecsPath: [SiteId.TechSpecs, `/unifi/${UniFiCategoryId.CloudGateways}/ux`],
|
|
34
34
|
storePathParts: {
|
|
35
|
-
category:
|
|
35
|
+
category: UniFiCategorySlug.CloudGateways,
|
|
36
36
|
productSlug: "ux"
|
|
37
37
|
},
|
|
38
38
|
image: {
|