@ubnt/store.core 9.23.0-alpha.8 → 9.23.0-alpha.9
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 +12 -0
- package/lib/apis/smartcat.test.d.ts +1 -0
- package/lib/assets/gateHub.jpg +0 -0
- package/lib/assets/umr-ultra.jpg +0 -0
- package/lib/components/Explore/Explore.test.d.ts +1 -0
- package/lib/components/Header/LanguageFrame/utils/buildLanguageLink.test.d.ts +1 -0
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.js.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.mjs.map +1 -1
- package/lib/components/ModelCompareV3/ModelCompareV3.types.d.ts +3 -1
- package/lib/components/ModelCompareV3/assets/DoorAccess/gateHub.jpg.js +27 -0
- package/lib/components/ModelCompareV3/assets/DoorAccess/gateHub.jpg.js.map +1 -0
- package/lib/components/ModelCompareV3/assets/DoorAccess/gateHub.jpg.mjs +3 -0
- package/lib/components/ModelCompareV3/assets/DoorAccess/gateHub.jpg.mjs.map +1 -0
- package/lib/components/ModelCompareV3/assets/MobileRouters/umr-ultra.jpg.js +27 -0
- package/lib/components/ModelCompareV3/assets/MobileRouters/umr-ultra.jpg.js.map +1 -0
- package/lib/components/ModelCompareV3/assets/MobileRouters/umr-ultra.jpg.mjs +3 -0
- package/lib/components/ModelCompareV3/assets/MobileRouters/umr-ultra.jpg.mjs.map +1 -0
- package/lib/components/ModelCompareV3/data/AccessHubs.js +3 -2
- package/lib/components/ModelCompareV3/data/AccessHubs.js.map +1 -1
- package/lib/components/ModelCompareV3/data/AccessHubs.mjs +3 -2
- package/lib/components/ModelCompareV3/data/AccessHubs.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/MobileRouters.js +4 -3
- package/lib/components/ModelCompareV3/data/MobileRouters.js.map +1 -1
- package/lib/components/ModelCompareV3/data/MobileRouters.mjs +4 -3
- package/lib/components/ModelCompareV3/data/MobileRouters.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/elevatorHub.js +0 -1
- package/lib/components/ModelCompareV3/data/products/elevatorHub.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/elevatorHub.mjs +0 -1
- package/lib/components/ModelCompareV3/data/products/elevatorHub.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gateHub.d.ts +2 -0
- package/lib/components/ModelCompareV3/data/products/gateHub.js +73 -0
- package/lib/components/ModelCompareV3/data/products/gateHub.js.map +1 -0
- package/lib/components/ModelCompareV3/data/products/gateHub.mjs +65 -0
- package/lib/components/ModelCompareV3/data/products/gateHub.mjs.map +1 -0
- package/lib/components/ModelCompareV3/data/products/umrIndustrial.js +0 -1
- package/lib/components/ModelCompareV3/data/products/umrIndustrial.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/umrIndustrial.mjs +0 -1
- package/lib/components/ModelCompareV3/data/products/umrIndustrial.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/umrUltra.d.ts +2 -0
- package/lib/components/ModelCompareV3/data/products/umrUltra.js +113 -0
- package/lib/components/ModelCompareV3/data/products/umrUltra.js.map +1 -0
- package/lib/components/ModelCompareV3/data/products/umrUltra.mjs +105 -0
- package/lib/components/ModelCompareV3/data/products/umrUltra.mjs.map +1 -0
- package/lib/components/ModelCompareV3/translations/ar.json.js +6 -0
- package/lib/components/ModelCompareV3/translations/ar.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/ar.json.mjs +6 -0
- package/lib/components/ModelCompareV3/translations/ar.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/de.json.js +6 -0
- package/lib/components/ModelCompareV3/translations/de.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/de.json.mjs +6 -0
- package/lib/components/ModelCompareV3/translations/de.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/el.json.js +6 -0
- package/lib/components/ModelCompareV3/translations/el.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/el.json.mjs +6 -0
- package/lib/components/ModelCompareV3/translations/el.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/en.json.js +13 -0
- package/lib/components/ModelCompareV3/translations/en.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/en.json.mjs +13 -0
- package/lib/components/ModelCompareV3/translations/en.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/es.json.js +6 -0
- package/lib/components/ModelCompareV3/translations/es.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/es.json.mjs +6 -0
- package/lib/components/ModelCompareV3/translations/es.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/fr.json.js +6 -0
- package/lib/components/ModelCompareV3/translations/fr.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/fr.json.mjs +6 -0
- package/lib/components/ModelCompareV3/translations/fr.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/it.json.js +6 -0
- package/lib/components/ModelCompareV3/translations/it.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/it.json.mjs +6 -0
- package/lib/components/ModelCompareV3/translations/it.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/ja.json.js +6 -0
- package/lib/components/ModelCompareV3/translations/ja.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/ja.json.mjs +6 -0
- package/lib/components/ModelCompareV3/translations/ja.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/pt-BR.json.js +6 -0
- package/lib/components/ModelCompareV3/translations/pt-BR.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs +6 -0
- package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/useModelCompareTranslation.d.ts +2 -2
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.js +6 -0
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs +6 -0
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js +6 -0
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs +6 -0
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/components/ProductCompare/mapping.test.d.ts +1 -0
- package/lib/components/VariantSelector/Variant/BundleOffer/utils/getBundleOfferQuantity.test.d.ts +1 -0
- package/lib/constants/postalCode.test.d.ts +1 -0
- package/lib/contexts/MenuContext/mapping.test.d.ts +1 -0
- package/lib/contexts/MenuContext/utils.test.d.ts +1 -0
- package/lib/helpers/product.test.d.ts +1 -0
- package/lib/utils/address.test.d.ts +1 -0
- package/lib/utils/array.test.d.ts +1 -0
- package/lib/utils/collectionSlug.test.d.ts +1 -0
- package/lib/utils/countriesAndZones.test.d.ts +1 -0
- package/lib/utils/langauge.test.d.ts +1 -0
- package/lib/utils/measures.test.d.ts +1 -0
- package/lib/utils/money/allocators/fixedAmount.test.d.ts +1 -0
- package/lib/utils/money/allocators/productAmount.test.d.ts +1 -0
- package/lib/utils/money/constants.test.d.ts +1 -0
- package/lib/utils/money/exchangeRate.test.d.ts +1 -0
- package/lib/utils/money/format.test.d.ts +1 -0
- package/lib/utils/money/misc.test.d.ts +1 -0
- package/lib/utils/money/shipping.test.d.ts +1 -0
- package/lib/utils/money/tax.private.test.d.ts +1 -0
- package/lib/utils/money/tax.test.d.ts +1 -0
- package/lib/utils/nextjs/createInlineScript.test.d.ts +1 -0
- package/lib/utils/nextjs/mergeCspDirectives.test.d.ts +1 -0
- package/lib/utils/nextjs/sanitizeImageDomains.test.d.ts +1 -0
- package/lib/utils/nextjs/stringifyForInject.test.d.ts +1 -0
- package/lib/utils/number.test.d.ts +1 -0
- package/lib/utils/storeId.test.d.ts +1 -0
- package/lib/utils/string.test.d.ts +1 -0
- package/lib/utils/tags.test.d.ts +1 -0
- package/lib/utils/tax/index.test.d.ts +1 -0
- package/lib/utils/url.test.d.ts +1 -0
- package/lib/utils/validations/postalCodeSuperRefinement.test.d.ts +1 -0
- package/lib/utils/variant.test.d.ts +1 -0
- package/lib/utils/wattage.test.d.ts +1 -0
- package/lib/utils/zod.test.d.ts +1 -0
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,18 @@
|
|
|
6
6
|
|
|
7
7
|
## Releases
|
|
8
8
|
|
|
9
|
+
### 9.23.0-alpha.9
|
|
10
|
+
|
|
11
|
+
- [Feat] [MIC-429](https://ubiquiti.atlassian.net/browse/MIC-429) Add `Gate Hub` to Model Compare
|
|
12
|
+
- [fix] Enable type-check for test files and fix issues
|
|
13
|
+
- [chore] Update deps
|
|
14
|
+
- [Feat] [MIC-430](https://ubiquiti.atlassian.net/browse/MIC-430) Add `UMR Ultra` to Model Compare
|
|
15
|
+
|
|
16
|
+
### 9.22.1
|
|
17
|
+
|
|
18
|
+
- [Feat] [MIC-424](https://ubiquiti.atlassian.net/browse/MIC-424) Remove "Coming soon" from `ENVR` from Model compare
|
|
19
|
+
- [Feat] Add support for dev/proto environment translations
|
|
20
|
+
|
|
9
21
|
### 9.23.0-alpha.8
|
|
10
22
|
|
|
11
23
|
- [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) adjust unifi logo svg size
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Navigation.js","sources":["../../../../../src/components/MicrositeHeader/components/Navigation/Navigation.tsx"],"sourcesContent":["import type React from \"react\";\nimport { useCallback, useEffect, useMemo, useRef, useState } from \"react\";\nimport { useMedia } from \"react-use\";\n\nimport {\n account as accountLogo,\n globe,\n logoUnifi,\n} from \"../../../../../src/constants/icons/header\";\nimport { BREAKPOINTS } from \"../../../../constants/layout\";\nimport { ExternalUrl } from \"../../../../constants/url\";\nimport { useMenu } from \"../../../../contexts/MenuContext\";\nimport { SiteId } from \"../../../../contexts/MenuContext/mapping\";\nimport { useMicrositeMenu } from \"../../../../contexts/MicrositeMenuContext\";\nimport {\n ModalId,\n type ParsedMicrositeHeaderItem,\n} from \"../../../../contexts/MicrositeMenuContext/types\";\nimport { AccountFrame } from \"../../../Header/AccountFrame\";\nimport { AccountFrameMobile } from \"../../../Header/AccountFrame/Mobile\";\nimport { SkeletonCircleLoader } from \"../../../Header/Header.styles\";\nimport { LanguageFrame } from \"../../../Header/LanguageFrame\";\nimport { LanguageFrameMobile } from \"../../../Header/LanguageFrame/Mobile\";\nimport { MenuButton } from \"../../../Header/MenuItem/MenuItem\";\nimport { MobileModal } from \"../../../MobileModal\";\nimport { StyleableSvgImage } from \"../../../StyleableSvgImage\";\nimport { DropdownMenu } from \"../DropdownMenu\";\nimport type { FirstLevelMenuProps } from \"../FirstLevelMenu/FirstLevelMenu.types\";\nimport { NavigationItem } from \"./_components/NavigationItem\";\nimport { SubNavigation } from \"./_components/SubNavigation\";\nimport * as S from \"./Navigation.styles\";\n\nexport enum HeaderMotif {\n DarkText = \"DarkText\",\n LightText = \"LightText\",\n}\n\nconst DROPDOWN_KEY = \"dropdown\";\n\nexport const Navigation: React.FC<FirstLevelMenuProps> = ({\n menu,\n onModalOpen,\n onLanguageChange,\n onMenuItemClick,\n // className,\n account,\n // isLastMenu,\n}) => {\n const isMobile = useMedia(BREAKPOINTS.MOBILE_AND_DOWN, false);\n const wrapperRef = useRef<HTMLDivElement | null>(null);\n\n const [hasWhiteBackground, setHasWhiteBackground] = useState(false);\n const { activeModal, setActiveModal } = useMicrositeMenu();\n const { createSiteUrl } = useMenu();\n\n const [selectedMenu, setSelectedMenu] =\n useState<ParsedMicrositeHeaderItem | null>(null);\n\n const hasDarkText = useMemo(() => {\n const activeParentElement = menu?.items?.find(({ active }) => !!active);\n\n if (!activeParentElement) {\n return false;\n }\n\n const activeChildElement = activeParentElement.items?.find(\n ({ active }) => !!active,\n );\n\n return activeChildElement?.hasDarkText ?? false;\n }, [menu]);\n\n const motif = useMemo<HeaderMotif>(() => {\n if (hasDarkText) {\n return HeaderMotif.DarkText;\n }\n\n return hasWhiteBackground || !!selectedMenu\n ? HeaderMotif.DarkText\n : HeaderMotif.LightText;\n }, [hasWhiteBackground, selectedMenu, hasDarkText]);\n\n useEffect(() => {\n //always set to null on re-render\n setSelectedMenu(null);\n\n if (!wrapperRef?.current) {\n return;\n }\n\n const observer = new IntersectionObserver(\n ([entry]) => setHasWhiteBackground(!entry?.isIntersecting ?? true),\n { rootMargin: \"-48px 0px 0px\" },\n );\n\n observer.observe(wrapperRef.current);\n\n return () => {\n observer.disconnect();\n };\n }, []);\n\n const handleModalClose = useCallback(() => {\n setActiveModal(null);\n }, [setActiveModal]);\n\n const handleModalOpen = useCallback(\n (e: React.MouseEvent<HTMLElement>, id: ModalId) => {\n e.stopPropagation();\n\n // Callback to for example remove all toasts on modal open\n if (activeModal !== id) {\n onModalOpen?.();\n }\n\n setActiveModal(activeModal === id ? null : id);\n },\n [activeModal, setActiveModal, onModalOpen],\n );\n\n return (\n <S.StyledContainer ref={wrapperRef}>\n <S.Wrap\n $isLastMenu\n $hasWhiteBackground={hasWhiteBackground}\n $transitionFade={!!selectedMenu}\n >\n <S.InnerWrap>\n <S.LeftWrap>\n <S.LogoAnchor\n $motif={motif}\n href={menu?.url ?? \"\"}\n onClick={(e) => onMenuItemClick?.(e, menu?.url ?? \"\")}\n >\n <StyleableSvgImage src={logoUnifi} width={46} height={14} />\n </S.LogoAnchor>\n\n <S.ItemsWrap onMouseLeave={() => setSelectedMenu(null)}>\n {(menu?.items ?? []).map((item, index) => (\n <NavigationItem\n key={`${item.id}-${item.label}-${index}`}\n item={item}\n motif={motif}\n isActive={item.id === selectedMenu?.id}\n onMouseEnter={() => setSelectedMenu(item ?? null)}\n />\n ))}\n\n <DropdownMenu\n items={selectedMenu?.items ?? []}\n show={\n !!selectedMenu?.id && selectedMenu?.variant === DROPDOWN_KEY\n }\n onMenuItemClick={onMenuItemClick}\n onMouseLeave={() => setSelectedMenu(null)}\n />\n\n <SubNavigation\n menu={selectedMenu}\n show={\n !!selectedMenu?.id && selectedMenu?.variant !== DROPDOWN_KEY\n }\n />\n </S.ItemsWrap>\n </S.LeftWrap>\n <S.RightWrap>\n <S.RightItem href={ExternalUrl.SUPPORT} $motif={motif}>\n Support\n </S.RightItem>\n <MenuButton\n href={createSiteUrl([SiteId.Store, \"/\"])}\n hideOnMobile\n motif=\"light\"\n dataTestId=\"support-btn\"\n // Special request by Sam to open the link in new tab - only on ui.com/uisp.com microsites\n openInNewTab={true}\n >\n {/* TODO: Translate */}\n Store\n </MenuButton>\n <S.ActionIcon\n aria-hidden=\"true\"\n $motif={motif}\n onClick={(e) => handleModalOpen(e, ModalId.Language)}\n >\n <StyleableSvgImage\n src={globe}\n width={20}\n height={19}\n renderedHeight={18}\n />\n </S.ActionIcon>\n {account?.loading ? (\n <SkeletonCircleLoader diameter={18} />\n ) : (\n <S.ActionIcon\n aria-hidden=\"true\"\n $motif={motif}\n onClick={(e) => handleModalOpen(e, ModalId.Account)}\n >\n <StyleableSvgImage src={accountLogo} width={18} height={19} />\n </S.ActionIcon>\n )}\n </S.RightWrap>\n </S.InnerWrap>\n\n {\n // TODO: Check if needed\n // !isSsr &&\n activeModal === ModalId.Language &&\n (isMobile ? (\n <MobileModal\n isOpen={activeModal === ModalId.Language}\n handleClose={handleModalClose}\n lockScroll\n closeButtonProps={{\n value: \"Close! \" /* formatMessage(\"Close\") */, // TODO Translate\n variant: \"cancel\",\n }}\n >\n <LanguageFrameMobile onLanguageChange={onLanguageChange} />\n </MobileModal>\n ) : (\n <S.ModalWrap size=\"desktop\">\n <S.ModalInnerWrap $modal={ModalId.Account}>\n <LanguageFrame\n /**\n * HACK: Disabled custom rendering as the account.stg.ui.com hasn't been whitelisted by our image\n * optimisation CDN\n * @see https://ubiquiti.atlassian.net/browse/NEP-1689\n */\n open\n onClose={handleModalClose}\n onLanguageChange={onLanguageChange}\n />\n </S.ModalInnerWrap>\n </S.ModalWrap>\n ))\n }\n {\n // !isSsr &&\n activeModal === ModalId.Account &&\n (isMobile ? (\n <MobileModal\n isOpen={activeModal === ModalId.Account}\n handleClose={handleModalClose}\n lockScroll\n closeButtonProps={{\n value: \"Close\", // formatMessage(\"Close\"),\n variant: \"cancel\",\n }}\n >\n <AccountFrameMobile\n /**\n * HACK: Disabled custom rendering as the account.stg.ui.com hasn't been whitelisted by our image\n * optimisation CDN\n * @see https://ubiquiti.atlassian.net/browse/NEP-1689\n */\n // renderImage={renderImage}\n onClose={handleModalClose}\n account={account}\n />\n </MobileModal>\n ) : (\n <S.ModalWrap size=\"desktop\">\n <S.ModalInnerWrap $modal={ModalId.Account}>\n <AccountFrame\n /**\n * HACK: Disabled custom rendering as the account.stg.ui.com hasn't been whitelisted by our image\n * optimisation CDN\n * @see https://ubiquiti.atlassian.net/browse/NEP-1689\n */\n // renderImage={renderImage}\n open\n onClose={handleModalClose}\n account={account}\n />\n </S.ModalInnerWrap>\n </S.ModalWrap>\n ))\n }\n </S.Wrap>\n </S.StyledContainer>\n );\n};\n"],"names":["HeaderMotif","DROPDOWN_KEY","Navigation","menu","onModalOpen","onLanguageChange","onMenuItemClick","account","isMobile","useMedia","BREAKPOINTS","MOBILE_AND_DOWN","wrapperRef","useRef","hasWhiteBackground","setHasWhiteBackground","useState","activeModal","setActiveModal","useMicrositeMenu","createSiteUrl","useMenu","selectedMenu","setSelectedMenu","hasDarkText","useMemo","activeParentElement","items","find","active","activeChildElement","motif","useEffect","current","observer","IntersectionObserver","entry","isIntersecting","rootMargin","observe","disconnect","handleModalClose","useCallback","handleModalOpen","e","id","stopPropagation","jsx","S.StyledContainer","ref","children","jsxs","S.Wrap","Wrap","$isLastMenu","$hasWhiteBackground","$transitionFade","S.InnerWrap","S.LeftWrap","S.LogoAnchor","LogoAnchor","$motif","href","url","onClick","StyleableSvgImage","src","logoUnifi","width","height","S.ItemsWrap","ItemsWrap","onMouseLeave","map","item","index","NavigationItem","isActive","onMouseEnter","label","DropdownMenu","show","variant","SubNavigation","S.RightWrap","S.RightItem","ExternalUrl","SUPPORT","MenuButton","SiteId","Store","hideOnMobile","dataTestId","openInNewTab","S.ActionIcon","ActionIcon","ModalId","Language","globe","renderedHeight","loading","SkeletonCircleLoader","diameter","Account","accountLogo","MobileModal","isOpen","handleClose","lockScroll","closeButtonProps","value","LanguageFrameMobile","S.ModalWrap","ModalWrap","size","S.ModalInnerWrap","$modal","LanguageFrame","open","onClose","AccountFrameMobile","AccountFrame"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCY,IAAAA,WAAA,GAAA,gBAAAA,YAAL,IAAA;EACLA,aAAA,UAAW,CAAA,GAAA,UAAA;EACXA,aAAA,WAAY,CAAA,GAAA,WAAA;EAFFA,OAAAA,YAAAA;AAAA,CAAA,EAAAA,WAAA,IAAA,CAAA,CAAA,CAAA;AAKZ,MAAMC,YAAe,GAAA,UAAA;AAEd,MAAMC,aAA4CA,CAAC;EACxDC,IAAA;EACAC,WAAA;EACAC,gBAAA;EACAC,eAAA;EAAA;EAEAC;EAAA;AAEF,CAAM,KAAA;EACJ,MAAMC,QAAW,GAAAC,QAAA,CAAAA,QAAA,CAASC,MAAY,CAAAA,WAAA,CAAAC,eAAA,EAAiB,KAAK,CAAA;EACtD,MAAAC,UAAA,GAAaC,aAA8B,IAAI,CAAA;EAErD,MAAM,CAACC,kBAAA,EAAoBC,qBAAqB,CAAA,GAAIC,eAAS,KAAK,CAAA;EAClE,MAAM;IAAEC,WAAA;IAAaC;EAAe,CAAA,GAAIC,OAAiB,CAAAA,gBAAA,CAAA,CAAA;EACnD,MAAA;IAAEC;GAAc,GAAIC,SAAAA,CAAAA,OAAQ,EAAA;EAElC,MAAM,CAACC,YAAA,EA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ACF;MAAA,CAGF,CAAA,GAAA,eAAAwC,UAAA,CAAAA,GAAA,CAACiE,iBAAE,CAAAC,SAAA,EAAF;QAAYC,IAAA,EAAK,SAChB;QAAAhE,QAAA,EAAA,eAAAH,cAAA,CAACoE,iBAAAA,CAAAA,cAAE,EAAF;UAAiBC,MAAA,EAAQpB,cAAQO,OAChC;UAAArD,QAAA,EAAA,eAAAH,UAAA,CAAAA,GAAA,CAAC0E,YAAA,CAAAA,YAAA,EAAA;YAOCH,IAAI,EAAA,IAAA;YACJC,OAAS,EAAA9E,gBAAA;YACTlC;UAAA,CAAA;QAEJ,CAAA;MACF,CAAA,CAAA,CAAA;IAAA,CAIV;EAAA,CAAA,CAAA;AAEJ,CAAA;;"}
|
|
1
|
+
{"version":3,"file":"Navigation.js","sources":["../../../../../src/components/MicrositeHeader/components/Navigation/Navigation.tsx"],"sourcesContent":["import type React from \"react\";\nimport { useCallback, useEffect, useMemo, useRef, useState } from \"react\";\nimport { useMedia } from \"react-use\";\n\nimport {\n account as accountLogo,\n globe,\n logoUnifi,\n} from \"../../../../../src/constants/icons/header\";\nimport { BREAKPOINTS } from \"../../../../constants/layout\";\nimport { ExternalUrl } from \"../../../../constants/url\";\nimport { useMenu } from \"../../../../contexts/MenuContext\";\nimport { SiteId } from \"../../../../contexts/MenuContext/mapping\";\nimport { useMicrositeMenu } from \"../../../../contexts/MicrositeMenuContext\";\nimport {\n ModalId,\n type ParsedMicrositeHeaderItem,\n} from \"../../../../contexts/MicrositeMenuContext/types\";\nimport { AccountFrame } from \"../../../Header/AccountFrame\";\nimport { AccountFrameMobile } from \"../../../Header/AccountFrame/Mobile\";\nimport { SkeletonCircleLoader } from \"../../../Header/Header.styles\";\nimport { LanguageFrame } from \"../../../Header/LanguageFrame\";\nimport { LanguageFrameMobile } from \"../../../Header/LanguageFrame/Mobile\";\nimport { MenuButton } from \"../../../Header/MenuItem/MenuItem\";\nimport { MobileModal } from \"../../../MobileModal\";\nimport { StyleableSvgImage } from \"../../../StyleableSvgImage\";\nimport { DropdownMenu } from \"../DropdownMenu\";\nimport type { FirstLevelMenuProps } from \"../FirstLevelMenu/FirstLevelMenu.types\";\nimport { NavigationItem } from \"./_components/NavigationItem\";\nimport { SubNavigation } from \"./_components/SubNavigation\";\nimport * as S from \"./Navigation.styles\";\n\nexport enum HeaderMotif {\n DarkText = \"DarkText\",\n LightText = \"LightText\",\n}\n\nconst DROPDOWN_KEY = \"dropdown\";\n\nexport const Navigation: React.FC<FirstLevelMenuProps> = ({\n menu,\n onModalOpen,\n onLanguageChange,\n onMenuItemClick,\n // className,\n account,\n // isLastMenu,\n}) => {\n const isMobile = useMedia(BREAKPOINTS.MOBILE_AND_DOWN, false);\n const wrapperRef = useRef<HTMLDivElement | null>(null);\n\n const [hasWhiteBackground, setHasWhiteBackground] = useState(false);\n const { activeModal, setActiveModal } = useMicrositeMenu();\n const { createSiteUrl } = useMenu();\n\n const [selectedMenu, setSelectedMenu] =\n useState<ParsedMicrositeHeaderItem | null>(null);\n\n const hasDarkText = useMemo(() => {\n const activeParentElement = menu?.items?.find(({ active }) => !!active);\n\n if (!activeParentElement) {\n return false;\n }\n\n const activeChildElement = activeParentElement.items?.find(\n ({ active }) => !!active,\n );\n\n return activeChildElement?.hasDarkText ?? false;\n }, [menu]);\n\n const motif = useMemo<HeaderMotif>(() => {\n if (hasDarkText) {\n return HeaderMotif.DarkText;\n }\n\n return hasWhiteBackground || !!selectedMenu\n ? HeaderMotif.DarkText\n : HeaderMotif.LightText;\n }, [hasWhiteBackground, selectedMenu, hasDarkText]);\n\n useEffect(() => {\n //always set to null on re-render\n setSelectedMenu(null);\n\n if (!wrapperRef?.current) {\n return;\n }\n\n const observer = new IntersectionObserver(\n ([entry]) => setHasWhiteBackground(!entry?.isIntersecting),\n { rootMargin: \"-48px 0px 0px\" },\n );\n\n observer.observe(wrapperRef.current);\n\n return () => {\n observer.disconnect();\n };\n }, []);\n\n const handleModalClose = useCallback(() => {\n setActiveModal(null);\n }, [setActiveModal]);\n\n const handleModalOpen = useCallback(\n (e: React.MouseEvent<HTMLElement>, id: ModalId) => {\n e.stopPropagation();\n\n // Callback to for example remove all toasts on modal open\n if (activeModal !== id) {\n onModalOpen?.();\n }\n\n setActiveModal(activeModal === id ? null : id);\n },\n [activeModal, setActiveModal, onModalOpen],\n );\n\n return (\n <S.StyledContainer ref={wrapperRef}>\n <S.Wrap\n $isLastMenu\n $hasWhiteBackground={hasWhiteBackground}\n $transitionFade={!!selectedMenu}\n >\n <S.InnerWrap>\n <S.LeftWrap>\n <S.LogoAnchor\n $motif={motif}\n href={menu?.url ?? \"\"}\n onClick={(e) => onMenuItemClick?.(e, menu?.url ?? \"\")}\n >\n <StyleableSvgImage src={logoUnifi} width={46} height={14} />\n </S.LogoAnchor>\n\n <S.ItemsWrap onMouseLeave={() => setSelectedMenu(null)}>\n {(menu?.items ?? []).map((item, index) => (\n <NavigationItem\n key={`${item.id}-${item.label}-${index}`}\n item={item}\n motif={motif}\n isActive={item.id === selectedMenu?.id}\n onMouseEnter={() => setSelectedMenu(item ?? null)}\n />\n ))}\n\n <DropdownMenu\n items={selectedMenu?.items ?? []}\n show={\n !!selectedMenu?.id && selectedMenu?.variant === DROPDOWN_KEY\n }\n onMenuItemClick={onMenuItemClick}\n onMouseLeave={() => setSelectedMenu(null)}\n />\n\n <SubNavigation\n menu={selectedMenu}\n show={\n !!selectedMenu?.id && selectedMenu?.variant !== DROPDOWN_KEY\n }\n />\n </S.ItemsWrap>\n </S.LeftWrap>\n <S.RightWrap>\n <S.RightItem href={ExternalUrl.SUPPORT} $motif={motif}>\n Support\n </S.RightItem>\n <MenuButton\n href={createSiteUrl([SiteId.Store, \"/\"])}\n hideOnMobile\n motif=\"light\"\n dataTestId=\"support-btn\"\n // Special request by Sam to open the link in new tab - only on ui.com/uisp.com microsites\n openInNewTab={true}\n >\n {/* TODO: Translate */}\n Store\n </MenuButton>\n <S.ActionIcon\n aria-hidden=\"true\"\n $motif={motif}\n onClick={(e) => handleModalOpen(e, ModalId.Language)}\n >\n <StyleableSvgImage\n src={globe}\n width={20}\n height={19}\n renderedHeight={18}\n />\n </S.ActionIcon>\n {account?.loading ? (\n <SkeletonCircleLoader diameter={18} />\n ) : (\n <S.ActionIcon\n aria-hidden=\"true\"\n $motif={motif}\n onClick={(e) => handleModalOpen(e, ModalId.Account)}\n >\n <StyleableSvgImage src={accountLogo} width={18} height={19} />\n </S.ActionIcon>\n )}\n </S.RightWrap>\n </S.InnerWrap>\n\n {\n // TODO: Check if needed\n // !isSsr &&\n activeModal === ModalId.Language &&\n (isMobile ? (\n <MobileModal\n isOpen={activeModal === ModalId.Language}\n handleClose={handleModalClose}\n lockScroll\n closeButtonProps={{\n value: \"Close! \" /* formatMessage(\"Close\") */, // TODO Translate\n variant: \"cancel\",\n }}\n >\n <LanguageFrameMobile onLanguageChange={onLanguageChange} />\n </MobileModal>\n ) : (\n <S.ModalWrap size=\"desktop\">\n <S.ModalInnerWrap $modal={ModalId.Account}>\n <LanguageFrame\n /**\n * HACK: Disabled custom rendering as the account.stg.ui.com hasn't been whitelisted by our image\n * optimisation CDN\n * @see https://ubiquiti.atlassian.net/browse/NEP-1689\n */\n open\n onClose={handleModalClose}\n onLanguageChange={onLanguageChange}\n />\n </S.ModalInnerWrap>\n </S.ModalWrap>\n ))\n }\n {\n // !isSsr &&\n activeModal === ModalId.Account &&\n (isMobile ? (\n <MobileModal\n isOpen={activeModal === ModalId.Account}\n handleClose={handleModalClose}\n lockScroll\n closeButtonProps={{\n value: \"Close\", // formatMessage(\"Close\"),\n variant: \"cancel\",\n }}\n >\n <AccountFrameMobile\n /**\n * HACK: Disabled custom rendering as the account.stg.ui.com hasn't been whitelisted by our image\n * optimisation CDN\n * @see https://ubiquiti.atlassian.net/browse/NEP-1689\n */\n // renderImage={renderImage}\n onClose={handleModalClose}\n account={account}\n />\n </MobileModal>\n ) : (\n <S.ModalWrap size=\"desktop\">\n <S.ModalInnerWrap $modal={ModalId.Account}>\n <AccountFrame\n /**\n * HACK: Disabled custom rendering as the account.stg.ui.com hasn't been whitelisted by our image\n * optimisation CDN\n * @see https://ubiquiti.atlassian.net/browse/NEP-1689\n */\n // renderImage={renderImage}\n open\n onClose={handleModalClose}\n account={account}\n />\n </S.ModalInnerWrap>\n </S.ModalWrap>\n ))\n }\n </S.Wrap>\n </S.StyledContainer>\n );\n};\n"],"names":["HeaderMotif","DROPDOWN_KEY","Navigation","menu","onModalOpen","onLanguageChange","onMenuItemClick","account","isMobile","useMedia","BREAKPOINTS","MOBILE_AND_DOWN","wrapperRef","useRef","hasWhiteBackground","setHasWhiteBackground","useState","activeModal","setActiveModal","useMicrositeMenu","createSiteUrl","useMenu","selectedMenu","setSelectedMenu","hasDarkText","useMemo","activeParentElement","items","find","active","activeChildElement","motif","useEffect","current","observer","IntersectionObserver","entry","isIntersecting","rootMargin","observe","disconnect","handleModalClose","useCallback","handleModalOpen","e","id","stopPropagation","jsx","S.StyledContainer","ref","children","jsxs","S.Wrap","Wrap","$isLastMenu","$hasWhiteBackground","$transitionFade","S.InnerWrap","S.LeftWrap","S.LogoAnchor","LogoAnchor","$motif","href","url","onClick","StyleableSvgImage","src","logoUnifi","width","height","S.ItemsWrap","ItemsWrap","onMouseLeave","map","item","index","NavigationItem","isActive","onMouseEnter","label","DropdownMenu","show","variant","SubNavigation","S.RightWrap","S.RightItem","ExternalUrl","SUPPORT","MenuButton","SiteId","Store","hideOnMobile","dataTestId","openInNewTab","S.ActionIcon","ActionIcon","ModalId","Language","globe","renderedHeight","loading","SkeletonCircleLoader","diameter","Account","accountLogo","MobileModal","isOpen","handleClose","lockScroll","closeButtonProps","value","LanguageFrameMobile","S.ModalWrap","ModalWrap","size","S.ModalInnerWrap","$modal","LanguageFrame","open","onClose","AccountFrameMobile","AccountFrame"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCY,IAAAA,WAAA,GAAA,gBAAAA,YAAL,IAAA;EACLA,aAAA,UAAW,CAA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pB,cAAQO,OAChC;UAAArD,QAAA,EAAA,eAAAH,UAAA,CAAAA,GAAA,CAACsE,aAAA,CAAAA,aAAA,EAAA;YAMCC,IAAI,EAAA,IAAA;YACJC,OAAS,EAAA9E,gBAAA;YACTpC;UAAA,CAAA;QAEJ,CAAA;MACF,CAAA,CAAA,CAAA;MAAA;MAKJY,WAAA,KAAgB+E,KAAQ,CAAAA,OAAA,CAAAO,OAAA,KACrB/F,QACC,kBAAAuC,UAAA,CAAAA,GAAA,CAAC0D,WAAA,CAAAA,WAAA,EAAA;QACCC,MAAA,EAAQzF,gBAAgB+E,KAAAA,CAAAA,OAAQ,CAAAO,OAAA;QAChCI,WAAa,EAAAlE,gBAAA;QACbmE,UAAU,EAAA,IAAA;QACVC,gBAAkB,EAAA;UAChBC,KAAO,EAAA,OAAA;UAAA;UACP5B,OAAS,EAAA;QACX,CAAA;QAEAhC,QAAA,iBAAAH,UAAA,CAAAA,GAAA,CAACyE,QAAA,CAAAA,kBAAA,EAAA;UAOCD,OAAS,EAAA9E,gBAAA;UACTlC;QAAA,CACF;MAAA,CAGF,CAAA,GAAA,eAAAwC,UAAA,CAAAA,GAAA,CAACiE,iBAAE,CAAAC,SAAA,EAAF;QAAYC,IAAA,EAAK,SAChB;QAAAhE,QAAA,EAAA,eAAAH,cAAA,CAACoE,iBAAAA,CAAAA,cAAE,EAAF;UAAiBC,MAAA,EAAQpB,cAAQO,OAChC;UAAArD,QAAA,EAAA,eAAAH,UAAA,CAAAA,GAAA,CAAC0E,YAAA,CAAAA,YAAA,EAAA;YAOCH,IAAI,EAAA,IAAA;YACJC,OAAS,EAAA9E,gBAAA;YACTlC;UAAA,CAAA;QAEJ,CAAA;MACF,CAAA,CAAA,CAAA;IAAA,CAIV;EAAA,CAAA,CAAA;AAEJ,CAAA;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Navigation.mjs","sources":["../../../../../src/components/MicrositeHeader/components/Navigation/Navigation.tsx"],"sourcesContent":["import type React from \"react\";\nimport { useCallback, useEffect, useMemo, useRef, useState } from \"react\";\nimport { useMedia } from \"react-use\";\n\nimport {\n account as accountLogo,\n globe,\n logoUnifi,\n} from \"../../../../../src/constants/icons/header\";\nimport { BREAKPOINTS } from \"../../../../constants/layout\";\nimport { ExternalUrl } from \"../../../../constants/url\";\nimport { useMenu } from \"../../../../contexts/MenuContext\";\nimport { SiteId } from \"../../../../contexts/MenuContext/mapping\";\nimport { useMicrositeMenu } from \"../../../../contexts/MicrositeMenuContext\";\nimport {\n ModalId,\n type ParsedMicrositeHeaderItem,\n} from \"../../../../contexts/MicrositeMenuContext/types\";\nimport { AccountFrame } from \"../../../Header/AccountFrame\";\nimport { AccountFrameMobile } from \"../../../Header/AccountFrame/Mobile\";\nimport { SkeletonCircleLoader } from \"../../../Header/Header.styles\";\nimport { LanguageFrame } from \"../../../Header/LanguageFrame\";\nimport { LanguageFrameMobile } from \"../../../Header/LanguageFrame/Mobile\";\nimport { MenuButton } from \"../../../Header/MenuItem/MenuItem\";\nimport { MobileModal } from \"../../../MobileModal\";\nimport { StyleableSvgImage } from \"../../../StyleableSvgImage\";\nimport { DropdownMenu } from \"../DropdownMenu\";\nimport type { FirstLevelMenuProps } from \"../FirstLevelMenu/FirstLevelMenu.types\";\nimport { NavigationItem } from \"./_components/NavigationItem\";\nimport { SubNavigation } from \"./_components/SubNavigation\";\nimport * as S from \"./Navigation.styles\";\n\nexport enum HeaderMotif {\n DarkText = \"DarkText\",\n LightText = \"LightText\",\n}\n\nconst DROPDOWN_KEY = \"dropdown\";\n\nexport const Navigation: React.FC<FirstLevelMenuProps> = ({\n menu,\n onModalOpen,\n onLanguageChange,\n onMenuItemClick,\n // className,\n account,\n // isLastMenu,\n}) => {\n const isMobile = useMedia(BREAKPOINTS.MOBILE_AND_DOWN, false);\n const wrapperRef = useRef<HTMLDivElement | null>(null);\n\n const [hasWhiteBackground, setHasWhiteBackground] = useState(false);\n const { activeModal, setActiveModal } = useMicrositeMenu();\n const { createSiteUrl } = useMenu();\n\n const [selectedMenu, setSelectedMenu] =\n useState<ParsedMicrositeHeaderItem | null>(null);\n\n const hasDarkText = useMemo(() => {\n const activeParentElement = menu?.items?.find(({ active }) => !!active);\n\n if (!activeParentElement) {\n return false;\n }\n\n const activeChildElement = activeParentElement.items?.find(\n ({ active }) => !!active,\n );\n\n return activeChildElement?.hasDarkText ?? false;\n }, [menu]);\n\n const motif = useMemo<HeaderMotif>(() => {\n if (hasDarkText) {\n return HeaderMotif.DarkText;\n }\n\n return hasWhiteBackground || !!selectedMenu\n ? HeaderMotif.DarkText\n : HeaderMotif.LightText;\n }, [hasWhiteBackground, selectedMenu, hasDarkText]);\n\n useEffect(() => {\n //always set to null on re-render\n setSelectedMenu(null);\n\n if (!wrapperRef?.current) {\n return;\n }\n\n const observer = new IntersectionObserver(\n ([entry]) => setHasWhiteBackground(!entry?.isIntersecting ?? true),\n { rootMargin: \"-48px 0px 0px\" },\n );\n\n observer.observe(wrapperRef.current);\n\n return () => {\n observer.disconnect();\n };\n }, []);\n\n const handleModalClose = useCallback(() => {\n setActiveModal(null);\n }, [setActiveModal]);\n\n const handleModalOpen = useCallback(\n (e: React.MouseEvent<HTMLElement>, id: ModalId) => {\n e.stopPropagation();\n\n // Callback to for example remove all toasts on modal open\n if (activeModal !== id) {\n onModalOpen?.();\n }\n\n setActiveModal(activeModal === id ? null : id);\n },\n [activeModal, setActiveModal, onModalOpen],\n );\n\n return (\n <S.StyledContainer ref={wrapperRef}>\n <S.Wrap\n $isLastMenu\n $hasWhiteBackground={hasWhiteBackground}\n $transitionFade={!!selectedMenu}\n >\n <S.InnerWrap>\n <S.LeftWrap>\n <S.LogoAnchor\n $motif={motif}\n href={menu?.url ?? \"\"}\n onClick={(e) => onMenuItemClick?.(e, menu?.url ?? \"\")}\n >\n <StyleableSvgImage src={logoUnifi} width={46} height={14} />\n </S.LogoAnchor>\n\n <S.ItemsWrap onMouseLeave={() => setSelectedMenu(null)}>\n {(menu?.items ?? []).map((item, index) => (\n <NavigationItem\n key={`${item.id}-${item.label}-${index}`}\n item={item}\n motif={motif}\n isActive={item.id === selectedMenu?.id}\n onMouseEnter={() => setSelectedMenu(item ?? null)}\n />\n ))}\n\n <DropdownMenu\n items={selectedMenu?.items ?? []}\n show={\n !!selectedMenu?.id && selectedMenu?.variant === DROPDOWN_KEY\n }\n onMenuItemClick={onMenuItemClick}\n onMouseLeave={() => setSelectedMenu(null)}\n />\n\n <SubNavigation\n menu={selectedMenu}\n show={\n !!selectedMenu?.id && selectedMenu?.variant !== DROPDOWN_KEY\n }\n />\n </S.ItemsWrap>\n </S.LeftWrap>\n <S.RightWrap>\n <S.RightItem href={ExternalUrl.SUPPORT} $motif={motif}>\n Support\n </S.RightItem>\n <MenuButton\n href={createSiteUrl([SiteId.Store, \"/\"])}\n hideOnMobile\n motif=\"light\"\n dataTestId=\"support-btn\"\n // Special request by Sam to open the link in new tab - only on ui.com/uisp.com microsites\n openInNewTab={true}\n >\n {/* TODO: Translate */}\n Store\n </MenuButton>\n <S.ActionIcon\n aria-hidden=\"true\"\n $motif={motif}\n onClick={(e) => handleModalOpen(e, ModalId.Language)}\n >\n <StyleableSvgImage\n src={globe}\n width={20}\n height={19}\n renderedHeight={18}\n />\n </S.ActionIcon>\n {account?.loading ? (\n <SkeletonCircleLoader diameter={18} />\n ) : (\n <S.ActionIcon\n aria-hidden=\"true\"\n $motif={motif}\n onClick={(e) => handleModalOpen(e, ModalId.Account)}\n >\n <StyleableSvgImage src={accountLogo} width={18} height={19} />\n </S.ActionIcon>\n )}\n </S.RightWrap>\n </S.InnerWrap>\n\n {\n // TODO: Check if needed\n // !isSsr &&\n activeModal === ModalId.Language &&\n (isMobile ? (\n <MobileModal\n isOpen={activeModal === ModalId.Language}\n handleClose={handleModalClose}\n lockScroll\n closeButtonProps={{\n value: \"Close! \" /* formatMessage(\"Close\") */, // TODO Translate\n variant: \"cancel\",\n }}\n >\n <LanguageFrameMobile onLanguageChange={onLanguageChange} />\n </MobileModal>\n ) : (\n <S.ModalWrap size=\"desktop\">\n <S.ModalInnerWrap $modal={ModalId.Account}>\n <LanguageFrame\n /**\n * HACK: Disabled custom rendering as the account.stg.ui.com hasn't been whitelisted by our image\n * optimisation CDN\n * @see https://ubiquiti.atlassian.net/browse/NEP-1689\n */\n open\n onClose={handleModalClose}\n onLanguageChange={onLanguageChange}\n />\n </S.ModalInnerWrap>\n </S.ModalWrap>\n ))\n }\n {\n // !isSsr &&\n activeModal === ModalId.Account &&\n (isMobile ? (\n <MobileModal\n isOpen={activeModal === ModalId.Account}\n handleClose={handleModalClose}\n lockScroll\n closeButtonProps={{\n value: \"Close\", // formatMessage(\"Close\"),\n variant: \"cancel\",\n }}\n >\n <AccountFrameMobile\n /**\n * HACK: Disabled custom rendering as the account.stg.ui.com hasn't been whitelisted by our image\n * optimisation CDN\n * @see https://ubiquiti.atlassian.net/browse/NEP-1689\n */\n // renderImage={renderImage}\n onClose={handleModalClose}\n account={account}\n />\n </MobileModal>\n ) : (\n <S.ModalWrap size=\"desktop\">\n <S.ModalInnerWrap $modal={ModalId.Account}>\n <AccountFrame\n /**\n * HACK: Disabled custom rendering as the account.stg.ui.com hasn't been whitelisted by our image\n * optimisation CDN\n * @see https://ubiquiti.atlassian.net/browse/NEP-1689\n */\n // renderImage={renderImage}\n open\n onClose={handleModalClose}\n account={account}\n />\n </S.ModalInnerWrap>\n </S.ModalWrap>\n ))\n }\n </S.Wrap>\n </S.StyledContainer>\n );\n};\n"],"names":["HeaderMotif","DROPDOWN_KEY","Navigation","menu","onModalOpen","onLanguageChange","onMenuItemClick","account","isMobile","useMedia","BREAKPOINTS","MOBILE_AND_DOWN","wrapperRef","useRef","hasWhiteBackground","setHasWhiteBackground","useState","activeModal","setActiveModal","useMicrositeMenu","createSiteUrl","useMenu","selectedMenu","setSelectedMenu","hasDarkText","useMemo","activeParentElement","items","find","active","activeChildElement","motif","useEffect","current","observer","IntersectionObserver","entry","isIntersecting","rootMargin","observe","disconnect","handleModalClose","useCallback","handleModalOpen","e","id","stopPropagation","jsx","S.StyledContainer","ref","children","jsxs","S.Wrap","$isLastMenu","$hasWhiteBackground","$transitionFade","S.InnerWrap","S.LeftWrap","S.LogoAnchor","$motif","href","url","onClick","StyleableSvgImage","src","logoUnifi","width","height","S.ItemsWrap","onMouseLeave","map","item","index","NavigationItem","isActive","onMouseEnter","label","DropdownMenu","show","variant","SubNavigation","S.RightWrap","S.RightItem","ExternalUrl","SUPPORT","MenuButton","SiteId","Store","hideOnMobile","dataTestId","openInNewTab","S.ActionIcon","ModalId","Language","globe","renderedHeight","loading","SkeletonCircleLoader","diameter","Account","accountLogo","MobileModal","isOpen","handleClose","lockScroll","closeButtonProps","value","LanguageFrameMobile","S.ModalWrap","size","S.ModalInnerWrap","$modal","LanguageFrame","open","onClose","AccountFrameMobile","AccountFrame"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCY,IAAAA,WAAA,GAAA,gBAAAA,YAAL,IAAA;EACLA,aAAA,UAAW,CAAA,GAAA,UAAA;EACXA,aAAA,WAAY,CAAA,GAAA,WAAA;EAFFA,OAAAA,YAAAA;AAAA,CAAA,EAAAA,WAAA,IAAA,CAAA,CAAA,CAAA;AAKZ,MAAMC,YAAe,GAAA,UAAA;AAEd,MAAMC,aAA4CA,CAAC;EACxDC,IAAA;EACAC,WAAA;EACAC,gBAAA;EACAC,eAAA;EAAA;EAEAC;EAAA;AAEF,CAAM,KAAA;EACJ,MAAMC,QAAW,GAAAC,QAAA,CAASC,WAAY,CAAAC,eAAA,EAAiB,KAAK,CAAA;EACtD,MAAAC,UAAA,GAAaC,OAA8B,IAAI,CAAA;EAErD,MAAM,CAACC,kBAAA,EAAoBC,qBAAqB,CAAA,GAAIC,SAAS,KAAK,CAAA;EAClE,MAAM;IAAEC,WAAA;IAAaC;EAAe,CAAA,GAAIC,gBAAiB,CAAA,CAAA;EACnD,MAAA;IAAEC;GAAc,GAAIC,OAAQ,EAAA;EAElC,MAAM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AA;YAMCC,IAAI,EAAA,IAAA;YACJC,OAAS,EAAAzE,gBAAA;YACTpC;UAAA,CAAA;QAEJ,CAAA;MACF,CAAA,CAAA,CAAA;MAAA;MAKJY,WAAA,KAAgB2E,OAAQ,CAAAO,OAAA,KACrB3F,QACC,kBAAAuC,GAAA,CAACsD,WAAA,EAAA;QACCC,MAAA,EAAQrF,gBAAgB2E,OAAQ,CAAAO,OAAA;QAChCI,WAAa,EAAA9D,gBAAA;QACb+D,UAAU,EAAA,IAAA;QACVC,gBAAkB,EAAA;UAChBC,KAAO,EAAA,OAAA;UAAA;UACP3B,OAAS,EAAA;QACX,CAAA;QAEA7B,QAAA,iBAAAH,GAAA,CAACoE,kBAAA,EAAA;UAOCD,OAAS,EAAAzE,gBAAA;UACTlC;QAAA,CACF;MAAA,CAGF,CAAA,GAAA,eAAAwC,GAAA,CAAC6D,SAAE,EAAF;QAAYC,IAAA,EAAK,SAChB;QAAA3D,QAAA,EAAA,eAAAH,GAAA,CAAC+D,cAAE,EAAF;UAAiBC,MAAA,EAAQnB,QAAQO,OAChC;UAAAjD,QAAA,EAAA,eAAAH,GAAA,CAACqE,YAAA,EAAA;YAOCH,IAAI,EAAA,IAAA;YACJC,OAAS,EAAAzE,gBAAA;YACTlC;UAAA,CAAA;QAEJ,CAAA;MACF,CAAA,CAAA,CAAA;IAAA,CAIV;EAAA,CAAA,CAAA;AAEJ,CAAA;"}
|
|
1
|
+
{"version":3,"file":"Navigation.mjs","sources":["../../../../../src/components/MicrositeHeader/components/Navigation/Navigation.tsx"],"sourcesContent":["import type React from \"react\";\nimport { useCallback, useEffect, useMemo, useRef, useState } from \"react\";\nimport { useMedia } from \"react-use\";\n\nimport {\n account as accountLogo,\n globe,\n logoUnifi,\n} from \"../../../../../src/constants/icons/header\";\nimport { BREAKPOINTS } from \"../../../../constants/layout\";\nimport { ExternalUrl } from \"../../../../constants/url\";\nimport { useMenu } from \"../../../../contexts/MenuContext\";\nimport { SiteId } from \"../../../../contexts/MenuContext/mapping\";\nimport { useMicrositeMenu } from \"../../../../contexts/MicrositeMenuContext\";\nimport {\n ModalId,\n type ParsedMicrositeHeaderItem,\n} from \"../../../../contexts/MicrositeMenuContext/types\";\nimport { AccountFrame } from \"../../../Header/AccountFrame\";\nimport { AccountFrameMobile } from \"../../../Header/AccountFrame/Mobile\";\nimport { SkeletonCircleLoader } from \"../../../Header/Header.styles\";\nimport { LanguageFrame } from \"../../../Header/LanguageFrame\";\nimport { LanguageFrameMobile } from \"../../../Header/LanguageFrame/Mobile\";\nimport { MenuButton } from \"../../../Header/MenuItem/MenuItem\";\nimport { MobileModal } from \"../../../MobileModal\";\nimport { StyleableSvgImage } from \"../../../StyleableSvgImage\";\nimport { DropdownMenu } from \"../DropdownMenu\";\nimport type { FirstLevelMenuProps } from \"../FirstLevelMenu/FirstLevelMenu.types\";\nimport { NavigationItem } from \"./_components/NavigationItem\";\nimport { SubNavigation } from \"./_components/SubNavigation\";\nimport * as S from \"./Navigation.styles\";\n\nexport enum HeaderMotif {\n DarkText = \"DarkText\",\n LightText = \"LightText\",\n}\n\nconst DROPDOWN_KEY = \"dropdown\";\n\nexport const Navigation: React.FC<FirstLevelMenuProps> = ({\n menu,\n onModalOpen,\n onLanguageChange,\n onMenuItemClick,\n // className,\n account,\n // isLastMenu,\n}) => {\n const isMobile = useMedia(BREAKPOINTS.MOBILE_AND_DOWN, false);\n const wrapperRef = useRef<HTMLDivElement | null>(null);\n\n const [hasWhiteBackground, setHasWhiteBackground] = useState(false);\n const { activeModal, setActiveModal } = useMicrositeMenu();\n const { createSiteUrl } = useMenu();\n\n const [selectedMenu, setSelectedMenu] =\n useState<ParsedMicrositeHeaderItem | null>(null);\n\n const hasDarkText = useMemo(() => {\n const activeParentElement = menu?.items?.find(({ active }) => !!active);\n\n if (!activeParentElement) {\n return false;\n }\n\n const activeChildElement = activeParentElement.items?.find(\n ({ active }) => !!active,\n );\n\n return activeChildElement?.hasDarkText ?? false;\n }, [menu]);\n\n const motif = useMemo<HeaderMotif>(() => {\n if (hasDarkText) {\n return HeaderMotif.DarkText;\n }\n\n return hasWhiteBackground || !!selectedMenu\n ? HeaderMotif.DarkText\n : HeaderMotif.LightText;\n }, [hasWhiteBackground, selectedMenu, hasDarkText]);\n\n useEffect(() => {\n //always set to null on re-render\n setSelectedMenu(null);\n\n if (!wrapperRef?.current) {\n return;\n }\n\n const observer = new IntersectionObserver(\n ([entry]) => setHasWhiteBackground(!entry?.isIntersecting),\n { rootMargin: \"-48px 0px 0px\" },\n );\n\n observer.observe(wrapperRef.current);\n\n return () => {\n observer.disconnect();\n };\n }, []);\n\n const handleModalClose = useCallback(() => {\n setActiveModal(null);\n }, [setActiveModal]);\n\n const handleModalOpen = useCallback(\n (e: React.MouseEvent<HTMLElement>, id: ModalId) => {\n e.stopPropagation();\n\n // Callback to for example remove all toasts on modal open\n if (activeModal !== id) {\n onModalOpen?.();\n }\n\n setActiveModal(activeModal === id ? null : id);\n },\n [activeModal, setActiveModal, onModalOpen],\n );\n\n return (\n <S.StyledContainer ref={wrapperRef}>\n <S.Wrap\n $isLastMenu\n $hasWhiteBackground={hasWhiteBackground}\n $transitionFade={!!selectedMenu}\n >\n <S.InnerWrap>\n <S.LeftWrap>\n <S.LogoAnchor\n $motif={motif}\n href={menu?.url ?? \"\"}\n onClick={(e) => onMenuItemClick?.(e, menu?.url ?? \"\")}\n >\n <StyleableSvgImage src={logoUnifi} width={46} height={14} />\n </S.LogoAnchor>\n\n <S.ItemsWrap onMouseLeave={() => setSelectedMenu(null)}>\n {(menu?.items ?? []).map((item, index) => (\n <NavigationItem\n key={`${item.id}-${item.label}-${index}`}\n item={item}\n motif={motif}\n isActive={item.id === selectedMenu?.id}\n onMouseEnter={() => setSelectedMenu(item ?? null)}\n />\n ))}\n\n <DropdownMenu\n items={selectedMenu?.items ?? []}\n show={\n !!selectedMenu?.id && selectedMenu?.variant === DROPDOWN_KEY\n }\n onMenuItemClick={onMenuItemClick}\n onMouseLeave={() => setSelectedMenu(null)}\n />\n\n <SubNavigation\n menu={selectedMenu}\n show={\n !!selectedMenu?.id && selectedMenu?.variant !== DROPDOWN_KEY\n }\n />\n </S.ItemsWrap>\n </S.LeftWrap>\n <S.RightWrap>\n <S.RightItem href={ExternalUrl.SUPPORT} $motif={motif}>\n Support\n </S.RightItem>\n <MenuButton\n href={createSiteUrl([SiteId.Store, \"/\"])}\n hideOnMobile\n motif=\"light\"\n dataTestId=\"support-btn\"\n // Special request by Sam to open the link in new tab - only on ui.com/uisp.com microsites\n openInNewTab={true}\n >\n {/* TODO: Translate */}\n Store\n </MenuButton>\n <S.ActionIcon\n aria-hidden=\"true\"\n $motif={motif}\n onClick={(e) => handleModalOpen(e, ModalId.Language)}\n >\n <StyleableSvgImage\n src={globe}\n width={20}\n height={19}\n renderedHeight={18}\n />\n </S.ActionIcon>\n {account?.loading ? (\n <SkeletonCircleLoader diameter={18} />\n ) : (\n <S.ActionIcon\n aria-hidden=\"true\"\n $motif={motif}\n onClick={(e) => handleModalOpen(e, ModalId.Account)}\n >\n <StyleableSvgImage src={accountLogo} width={18} height={19} />\n </S.ActionIcon>\n )}\n </S.RightWrap>\n </S.InnerWrap>\n\n {\n // TODO: Check if needed\n // !isSsr &&\n activeModal === ModalId.Language &&\n (isMobile ? (\n <MobileModal\n isOpen={activeModal === ModalId.Language}\n handleClose={handleModalClose}\n lockScroll\n closeButtonProps={{\n value: \"Close! \" /* formatMessage(\"Close\") */, // TODO Translate\n variant: \"cancel\",\n }}\n >\n <LanguageFrameMobile onLanguageChange={onLanguageChange} />\n </MobileModal>\n ) : (\n <S.ModalWrap size=\"desktop\">\n <S.ModalInnerWrap $modal={ModalId.Account}>\n <LanguageFrame\n /**\n * HACK: Disabled custom rendering as the account.stg.ui.com hasn't been whitelisted by our image\n * optimisation CDN\n * @see https://ubiquiti.atlassian.net/browse/NEP-1689\n */\n open\n onClose={handleModalClose}\n onLanguageChange={onLanguageChange}\n />\n </S.ModalInnerWrap>\n </S.ModalWrap>\n ))\n }\n {\n // !isSsr &&\n activeModal === ModalId.Account &&\n (isMobile ? (\n <MobileModal\n isOpen={activeModal === ModalId.Account}\n handleClose={handleModalClose}\n lockScroll\n closeButtonProps={{\n value: \"Close\", // formatMessage(\"Close\"),\n variant: \"cancel\",\n }}\n >\n <AccountFrameMobile\n /**\n * HACK: Disabled custom rendering as the account.stg.ui.com hasn't been whitelisted by our image\n * optimisation CDN\n * @see https://ubiquiti.atlassian.net/browse/NEP-1689\n */\n // renderImage={renderImage}\n onClose={handleModalClose}\n account={account}\n />\n </MobileModal>\n ) : (\n <S.ModalWrap size=\"desktop\">\n <S.ModalInnerWrap $modal={ModalId.Account}>\n <AccountFrame\n /**\n * HACK: Disabled custom rendering as the account.stg.ui.com hasn't been whitelisted by our image\n * optimisation CDN\n * @see https://ubiquiti.atlassian.net/browse/NEP-1689\n */\n // renderImage={renderImage}\n open\n onClose={handleModalClose}\n account={account}\n />\n </S.ModalInnerWrap>\n </S.ModalWrap>\n ))\n }\n </S.Wrap>\n </S.StyledContainer>\n );\n};\n"],"names":["HeaderMotif","DROPDOWN_KEY","Navigation","menu","onModalOpen","onLanguageChange","onMenuItemClick","account","isMobile","useMedia","BREAKPOINTS","MOBILE_AND_DOWN","wrapperRef","useRef","hasWhiteBackground","setHasWhiteBackground","useState","activeModal","setActiveModal","useMicrositeMenu","createSiteUrl","useMenu","selectedMenu","setSelectedMenu","hasDarkText","useMemo","activeParentElement","items","find","active","activeChildElement","motif","useEffect","current","observer","IntersectionObserver","entry","isIntersecting","rootMargin","observe","disconnect","handleModalClose","useCallback","handleModalOpen","e","id","stopPropagation","jsx","S.StyledContainer","ref","children","jsxs","S.Wrap","$isLastMenu","$hasWhiteBackground","$transitionFade","S.InnerWrap","S.LeftWrap","S.LogoAnchor","$motif","href","url","onClick","StyleableSvgImage","src","logoUnifi","width","height","S.ItemsWrap","onMouseLeave","map","item","index","NavigationItem","isActive","onMouseEnter","label","DropdownMenu","show","variant","SubNavigation","S.RightWrap","S.RightItem","ExternalUrl","SUPPORT","MenuButton","SiteId","Store","hideOnMobile","dataTestId","openInNewTab","S.ActionIcon","ModalId","Language","globe","renderedHeight","loading","SkeletonCircleLoader","diameter","Account","accountLogo","MobileModal","isOpen","handleClose","lockScroll","closeButtonProps","value","LanguageFrameMobile","S.ModalWrap","size","S.ModalInnerWrap","$modal","LanguageFrame","open","onClose","AccountFrameMobile","AccountFrame"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCY,IAAAA,WAAA,GAAA,gBAAAA,YAAL,IAAA;EACLA,aAAA,UAAW,CAAA,GAAA,UAAA;EACXA,aAAA,WAAY,CAAA,GAAA,WAAA;EAFFA,OAAAA,YAAAA;AAAA,CAAA,EAAAA,WAAA,IAAA,CAAA,CAAA,CAAA;AAKZ,MAAMC,YAAe,GAAA,UAAA;AAEd,MAAMC,aAA4CA,CAAC;EACxDC,IAAA;EACAC,WAAA;EACAC,gBAAA;EACAC,eAAA;EAAA;EAEAC;EAAA;AAEF,CAAM,KAAA;EACJ,MAAMC,QAAW,GAAAC,QAAA,CAASC,WAAY,CAAAC,eAAA,EAAiB,KAAK,CAAA;EACtD,MAAAC,UAAA,GAAaC,OAA8B,IAAI,CAAA;EAErD,MAAM,CAACC,kBAAA,EAAoBC,qBAAqB,CAAA,GAAIC,SAAS,KAAK,CAAA;EAClE,MAAM;IAAEC,WAAA;IAAaC;EAAe,CAAA,GAAIC,gBAAiB,CAAA,CAAA;EACnD,MAAA;IAAEC;GAAc,GAAIC,OAAQ,EAAA;EAElC,MAAM,CAACC,YAAA,EAAcC,eAAe,CAAA,GAClCP,SAA2C,IAAI,CAAA;EAE3C,MAAAQ,WAAA,GAAcC,QAAQ,MAAM;IAC1B,MAAAC,mBAAA,GAAsBvB,IAAM,EAAAwB,KAAA,EAAOC,IAAK,CAAA,CAAC;MAAEC;IAAO,CAAA,KAAM,CAAC,CAACA,MAAM,CAAA;IAEtE,IAAI,CAACH,mBAAqB,EAAA;MACjB,O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AAa,EAAA9D,gBAAA;QACb+D,UAAU,EAAA,IAAA;QACVC,gBAAkB,EAAA;UAChBC,KAAO,EAAA,OAAA;UAAA;UACP3B,OAAS,EAAA;QACX,CAAA;QAEA7B,QAAA,iBAAAH,GAAA,CAACoE,kBAAA,EAAA;UAOCD,OAAS,EAAAzE,gBAAA;UACTlC;QAAA,CACF;MAAA,CAGF,CAAA,GAAA,eAAAwC,GAAA,CAAC6D,SAAE,EAAF;QAAYC,IAAA,EAAK,SAChB;QAAA3D,QAAA,EAAA,eAAAH,GAAA,CAAC+D,cAAE,EAAF;UAAiBC,MAAA,EAAQnB,QAAQO,OAChC;UAAAjD,QAAA,EAAA,eAAAH,GAAA,CAACqE,YAAA,EAAA;YAOCH,IAAI,EAAA,IAAA;YACJC,OAAS,EAAAzE,gBAAA;YACTlC;UAAA,CAAA;QAEJ,CAAA;MACF,CAAA,CAAA,CAAA;IAAA,CAIV;EAAA,CAAA,CAAA;AAEJ,CAAA;"}
|
|
@@ -121,6 +121,7 @@ export declare enum ProductId {
|
|
|
121
121
|
UdmProSpecial = "udmProSpecial",
|
|
122
122
|
Umr = "umr",
|
|
123
123
|
UmrIndustrial = "umrIndustrial",
|
|
124
|
+
UmrUltra = "umrUltra",
|
|
124
125
|
Xg6PoEGen1 = "xg6PoEGen1",
|
|
125
126
|
SwissArmyKnifeUltra = "swissArmyKnifeUltra",
|
|
126
127
|
DreamWall = "udw",
|
|
@@ -251,7 +252,8 @@ export declare enum ProductId {
|
|
|
251
252
|
EdgeSwitch18x = "edgeSwitch18x",
|
|
252
253
|
EdgeSwitch24lite = "edgeSwitch24lite",
|
|
253
254
|
EdgeSwitch12f = "edgeSwitch12f",
|
|
254
|
-
GateAccessStarterKit = "gateAccessStarterKit"
|
|
255
|
+
GateAccessStarterKit = "gateAccessStarterKit",
|
|
256
|
+
GateHub = "gateHub"
|
|
255
257
|
}
|
|
256
258
|
export declare enum PropertyId {
|
|
257
259
|
CameraReader = "cameraReader",
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var image = require("../../../../assets/gateHub.jpg");
|
|
7
|
+
function _interopDefault(e) {
|
|
8
|
+
return e && e.__esModule ? e : {
|
|
9
|
+
default: e
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
var image__default = /*#__PURE__*/_interopDefault(image);
|
|
13
|
+
Object.defineProperty(exports, "default", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () {
|
|
16
|
+
return image__default["default"];
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
Object.keys(image).forEach(function (k) {
|
|
20
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () {
|
|
23
|
+
return image[k];
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=gateHub.jpg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gateHub.jpg.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gateHub.jpg.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var image = require("../../../../assets/umr-ultra.jpg");
|
|
7
|
+
function _interopDefault(e) {
|
|
8
|
+
return e && e.__esModule ? e : {
|
|
9
|
+
default: e
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
var image__default = /*#__PURE__*/_interopDefault(image);
|
|
13
|
+
Object.defineProperty(exports, "default", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () {
|
|
16
|
+
return image__default["default"];
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
Object.keys(image).forEach(function (k) {
|
|
20
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () {
|
|
23
|
+
return image[k];
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=umr-ultra.jpg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"umr-ultra.jpg.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"umr-ultra.jpg.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
var accessHub = require('./products/accessHub.js');
|
|
4
4
|
var elevatorHub = require('./products/elevatorHub.js');
|
|
5
5
|
var enterpriseAccessHub = require('./products/enterpriseAccessHub.js');
|
|
6
|
+
var gateHub = require('./products/gateHub.js');
|
|
6
7
|
var uaUltra = require('./products/uaUltra.js');
|
|
7
8
|
var accessPowerMethod = require('./properties/accessPowerMethod.js');
|
|
8
9
|
var inputTerminals = require('./properties/inputTerminals.js');
|
|
@@ -12,8 +13,8 @@ var powerRedundancy = require('./properties/powerRedundancy.js');
|
|
|
12
13
|
"use strict";
|
|
13
14
|
const AccessHubs = {
|
|
14
15
|
properties: [outputRelays.outputRelays, inputTerminals.inputTerminals, poePorts.poePorts, accessPowerMethod.accessPowerMethod, powerRedundancy.powerRedundancy],
|
|
15
|
-
products: [enterpriseAccessHub.enterpriseAccessHub, accessHub.accessHub, elevatorHub.elevatorHub, uaUltra.uaUltra],
|
|
16
|
-
columnWidth:
|
|
16
|
+
products: [enterpriseAccessHub.enterpriseAccessHub, accessHub.accessHub, gateHub.gateHub, elevatorHub.elevatorHub, uaUltra.uaUltra],
|
|
17
|
+
columnWidth: 250,
|
|
17
18
|
propertyColumnWidth: 189,
|
|
18
19
|
showBadges: true
|
|
19
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccessHubs.js","sources":["../../../../src/components/ModelCompareV3/data/AccessHubs.tsx"],"sourcesContent":["import type { Section } from \"../ModelCompareV3.types\";\nimport { accessHub } from \"./products/accessHub\";\nimport { elevatorHub } from \"./products/elevatorHub\";\nimport { enterpriseAccessHub } from \"./products/enterpriseAccessHub\";\nimport { uaUltra } from \"./products/uaUltra\";\nimport { accessPowerMethod } from \"./properties/accessPowerMethod\";\nimport { inputTerminals } from \"./properties/inputTerminals\";\nimport { outputRelays } from \"./properties/outputRelays\";\nimport { poePorts } from \"./properties/poePorts\";\nimport { powerRedundancy } from \"./properties/powerRedundancy\";\n\nexport const AccessHubs: Section = {\n properties: [\n outputRelays,\n inputTerminals,\n poePorts,\n accessPowerMethod,\n powerRedundancy,\n ],\n products: [enterpriseAccessHub, accessHub, elevatorHub, uaUltra],\n columnWidth:
|
|
1
|
+
{"version":3,"file":"AccessHubs.js","sources":["../../../../src/components/ModelCompareV3/data/AccessHubs.tsx"],"sourcesContent":["import type { Section } from \"../ModelCompareV3.types\";\nimport { accessHub } from \"./products/accessHub\";\nimport { elevatorHub } from \"./products/elevatorHub\";\nimport { enterpriseAccessHub } from \"./products/enterpriseAccessHub\";\nimport { gateHub } from \"./products/gateHub\";\nimport { uaUltra } from \"./products/uaUltra\";\nimport { accessPowerMethod } from \"./properties/accessPowerMethod\";\nimport { inputTerminals } from \"./properties/inputTerminals\";\nimport { outputRelays } from \"./properties/outputRelays\";\nimport { poePorts } from \"./properties/poePorts\";\nimport { powerRedundancy } from \"./properties/powerRedundancy\";\n\nexport const AccessHubs: Section = {\n properties: [\n outputRelays,\n inputTerminals,\n poePorts,\n accessPowerMethod,\n powerRedundancy,\n ],\n products: [enterpriseAccessHub, accessHub, gateHub, elevatorHub, uaUltra],\n columnWidth: 250,\n propertyColumnWidth: 189,\n showBadges: true,\n};\n"],"names":["AccessHubs","properties","outputRelays","inputTerminals","poePorts","accessPowerMethod","powerRedundancy","products","enterpriseAccessHub","accessHub","gateHub","elevatorHub","uaUltra","columnWidth","propertyColumnWidth","showBadges"],"mappings":";;;;;;;;;;;;;AAYO,MAAMA,UAAsB,GAAA;EACjCC,UAAY,EAAA,CACVC,YAAA,CAAAA,YAAA,EACAC,cAAA,CAAAA,cAAA,EACAC,QAAA,CAAAA,QAAA,EACAC,iBAAA,CAAAA,iBAAA,EACAC,eAAA,CAAAA,eAAA,CACF;EACAC,UAAU,CAACC,mBAAAA,CAAAA,mBAAA,EAAqBC,SAAAA,CAAAA,SAAW,EAAAC,OAAAA,CAAAA,OAAA,EAASC,WAAAA,CAAAA,aAAaC,OAAAA,CAAAA,OAAO,CAAA;EACxEC,WAAa,EAAA,GAAA;EACbC,mBAAqB,EAAA,GAAA;EACrBC,UAAY,EAAA;AACd,CAAA;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { accessHub } from './products/accessHub.mjs';
|
|
2
2
|
import { elevatorHub } from './products/elevatorHub.mjs';
|
|
3
3
|
import { enterpriseAccessHub } from './products/enterpriseAccessHub.mjs';
|
|
4
|
+
import { gateHub } from './products/gateHub.mjs';
|
|
4
5
|
import { uaUltra } from './products/uaUltra.mjs';
|
|
5
6
|
import { accessPowerMethod } from './properties/accessPowerMethod.mjs';
|
|
6
7
|
import { inputTerminals } from './properties/inputTerminals.mjs';
|
|
@@ -10,8 +11,8 @@ import { powerRedundancy } from './properties/powerRedundancy.mjs';
|
|
|
10
11
|
"use strict";
|
|
11
12
|
const AccessHubs = {
|
|
12
13
|
properties: [outputRelays, inputTerminals, poePorts, accessPowerMethod, powerRedundancy],
|
|
13
|
-
products: [enterpriseAccessHub, accessHub, elevatorHub, uaUltra],
|
|
14
|
-
columnWidth:
|
|
14
|
+
products: [enterpriseAccessHub, accessHub, gateHub, elevatorHub, uaUltra],
|
|
15
|
+
columnWidth: 250,
|
|
15
16
|
propertyColumnWidth: 189,
|
|
16
17
|
showBadges: true
|
|
17
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccessHubs.mjs","sources":["../../../../src/components/ModelCompareV3/data/AccessHubs.tsx"],"sourcesContent":["import type { Section } from \"../ModelCompareV3.types\";\nimport { accessHub } from \"./products/accessHub\";\nimport { elevatorHub } from \"./products/elevatorHub\";\nimport { enterpriseAccessHub } from \"./products/enterpriseAccessHub\";\nimport { uaUltra } from \"./products/uaUltra\";\nimport { accessPowerMethod } from \"./properties/accessPowerMethod\";\nimport { inputTerminals } from \"./properties/inputTerminals\";\nimport { outputRelays } from \"./properties/outputRelays\";\nimport { poePorts } from \"./properties/poePorts\";\nimport { powerRedundancy } from \"./properties/powerRedundancy\";\n\nexport const AccessHubs: Section = {\n properties: [\n outputRelays,\n inputTerminals,\n poePorts,\n accessPowerMethod,\n powerRedundancy,\n ],\n products: [enterpriseAccessHub, accessHub, elevatorHub, uaUltra],\n columnWidth:
|
|
1
|
+
{"version":3,"file":"AccessHubs.mjs","sources":["../../../../src/components/ModelCompareV3/data/AccessHubs.tsx"],"sourcesContent":["import type { Section } from \"../ModelCompareV3.types\";\nimport { accessHub } from \"./products/accessHub\";\nimport { elevatorHub } from \"./products/elevatorHub\";\nimport { enterpriseAccessHub } from \"./products/enterpriseAccessHub\";\nimport { gateHub } from \"./products/gateHub\";\nimport { uaUltra } from \"./products/uaUltra\";\nimport { accessPowerMethod } from \"./properties/accessPowerMethod\";\nimport { inputTerminals } from \"./properties/inputTerminals\";\nimport { outputRelays } from \"./properties/outputRelays\";\nimport { poePorts } from \"./properties/poePorts\";\nimport { powerRedundancy } from \"./properties/powerRedundancy\";\n\nexport const AccessHubs: Section = {\n properties: [\n outputRelays,\n inputTerminals,\n poePorts,\n accessPowerMethod,\n powerRedundancy,\n ],\n products: [enterpriseAccessHub, accessHub, gateHub, elevatorHub, uaUltra],\n columnWidth: 250,\n propertyColumnWidth: 189,\n showBadges: true,\n};\n"],"names":["AccessHubs","properties","outputRelays","inputTerminals","poePorts","accessPowerMethod","powerRedundancy","products","enterpriseAccessHub","accessHub","gateHub","elevatorHub","uaUltra","columnWidth","propertyColumnWidth","showBadges"],"mappings":";;;;;;;;;;;AAYO,MAAMA,UAAsB,GAAA;EACjCC,UAAY,EAAA,CACVC,YAAA,EACAC,cAAA,EACAC,QAAA,EACAC,iBAAA,EACAC,eAAA,CACF;EACAC,UAAU,CAACC,mBAAA,EAAqBC,SAAW,EAAAC,OAAA,EAASC,aAAaC,OAAO,CAAA;EACxEC,WAAa,EAAA,GAAA;EACbC,mBAAqB,EAAA,GAAA;EACrBC,UAAY,EAAA;AACd,CAAA;"}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
require('../assets/mounting.svg.js');
|
|
4
4
|
var umr = require('./products/umr.js');
|
|
5
5
|
var umrIndustrial = require('./products/umrIndustrial.js');
|
|
6
|
+
var umrUltra = require('./products/umrUltra.js');
|
|
6
7
|
require('./properties/index.js');
|
|
7
8
|
var mounting$1 = require('./properties/mounting.js');
|
|
8
9
|
var icon = require("../../../assets/mounting2.svg");
|
|
@@ -26,9 +27,9 @@ const mounting = {
|
|
|
26
27
|
};
|
|
27
28
|
const MobileRouters = {
|
|
28
29
|
properties: [cellular.cellular, carrierSupport.carrierSupport, wifi.wifi, networkingInterface.networkingInterface, powerMethod.powerMethod, gpsLocationTracking.gpsLocationTracking, outdoorReady.outdoorReady, mounting],
|
|
29
|
-
products: [umrIndustrial.umrIndustrial, umr.umr],
|
|
30
|
-
columnWidth:
|
|
31
|
-
propertyColumnWidth:
|
|
30
|
+
products: [umrIndustrial.umrIndustrial, umrUltra.umrUltra, umr.umr],
|
|
31
|
+
columnWidth: 320,
|
|
32
|
+
propertyColumnWidth: 237,
|
|
32
33
|
showBadges: true
|
|
33
34
|
};
|
|
34
35
|
exports.MobileRouters = MobileRouters;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobileRouters.js","sources":["../../../../src/components/ModelCompareV3/data/MobileRouters.tsx"],"sourcesContent":["import icon from \"../assets/mounting.svg\";\nimport type { Section } from \"../ModelCompareV3.types\";\nimport { umr } from \"./products/umr\";\nimport { umrIndustrial } from \"./products/umrIndustrial\";\nimport {\n carrierSupport,\n cellular,\n gpsLocationTracking,\n mounting as mountingBase,\n networkingInterface,\n outdoorReady,\n powerMethod,\n wifi,\n} from \"./properties\";\n\nconst mounting = {\n ...mountingBase,\n icon,\n};\n\nexport const MobileRouters: Section = {\n properties: [\n cellular,\n carrierSupport,\n wifi,\n networkingInterface,\n powerMethod,\n gpsLocationTracking,\n outdoorReady,\n mounting,\n ],\n products: [umrIndustrial, umr],\n columnWidth:
|
|
1
|
+
{"version":3,"file":"MobileRouters.js","sources":["../../../../src/components/ModelCompareV3/data/MobileRouters.tsx"],"sourcesContent":["import icon from \"../assets/mounting.svg\";\nimport type { Section } from \"../ModelCompareV3.types\";\nimport { umr } from \"./products/umr\";\nimport { umrIndustrial } from \"./products/umrIndustrial\";\nimport { umrUltra } from \"./products/umrUltra\";\nimport {\n carrierSupport,\n cellular,\n gpsLocationTracking,\n mounting as mountingBase,\n networkingInterface,\n outdoorReady,\n powerMethod,\n wifi,\n} from \"./properties\";\n\nconst mounting = {\n ...mountingBase,\n icon,\n};\n\nexport const MobileRouters: Section = {\n properties: [\n cellular,\n carrierSupport,\n wifi,\n networkingInterface,\n powerMethod,\n gpsLocationTracking,\n outdoorReady,\n mounting,\n ],\n products: [umrIndustrial, umrUltra, umr],\n columnWidth: 320,\n propertyColumnWidth: 237,\n showBadges: true,\n};\n"],"names":["mounting","mountingBase","icon","MobileRouters","properties","cellular","carrierSupport","wifi","networkingInterface","powerMethod","gpsLocationTracking","outdoorReady","products","umrIndustrial","umrUltra","umr","columnWidth","propertyColumnWidth","showBadges"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAgBA,MAAMA,QAAW,GAAA;EACf,GAAGC,UAAA,CAAAD,QAAA;EAAAE,IAAA,EACHA,aAAA,CAAA,SAAA;AACF,CAAA;AAEO,MAAMC,aAAyB,GAAA;EACpCC,UAAY,EAAA,CACVC,QAAA,CAAAA,QAAA,EACAC,cAAA,CAAAA,cAAA,EACAC,IAAA,CAAAA,IAAA,EACAC,mBAAA,CAAAA,mBAAA,EACAC,WAAA,CAAAA,WAAA,EACAC,mBAAA,CAAAA,mBAAA,EACAC,YAAA,CAAAA,YAAA,EACAX,QAAA,CACF;EACAY,QAAU,EAAA,CAACC,aAAAA,CAAAA,aAAe,EAAAC,QAAA,CAAAA,QAAA,EAAUC,OAAG,CAAA;EACvCC,WAAa,EAAA,GAAA;EACbC,mBAAqB,EAAA,GAAA;EACrBC,UAAY,EAAA;AACd,CAAA;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import '../assets/mounting.svg.mjs';
|
|
2
2
|
import { umr } from './products/umr.mjs';
|
|
3
3
|
import { umrIndustrial } from './products/umrIndustrial.mjs';
|
|
4
|
+
import { umrUltra } from './products/umrUltra.mjs';
|
|
4
5
|
import './properties/index.mjs';
|
|
5
6
|
import { mounting as mounting$1 } from './properties/mounting.mjs';
|
|
6
7
|
import icon__default from "../../../assets/mounting2.svg";
|
|
@@ -18,9 +19,9 @@ const mounting = {
|
|
|
18
19
|
};
|
|
19
20
|
const MobileRouters = {
|
|
20
21
|
properties: [cellular, carrierSupport, wifi, networkingInterface, powerMethod, gpsLocationTracking, outdoorReady, mounting],
|
|
21
|
-
products: [umrIndustrial, umr],
|
|
22
|
-
columnWidth:
|
|
23
|
-
propertyColumnWidth:
|
|
22
|
+
products: [umrIndustrial, umrUltra, umr],
|
|
23
|
+
columnWidth: 320,
|
|
24
|
+
propertyColumnWidth: 237,
|
|
24
25
|
showBadges: true
|
|
25
26
|
};
|
|
26
27
|
export { MobileRouters };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobileRouters.mjs","sources":["../../../../src/components/ModelCompareV3/data/MobileRouters.tsx"],"sourcesContent":["import icon from \"../assets/mounting.svg\";\nimport type { Section } from \"../ModelCompareV3.types\";\nimport { umr } from \"./products/umr\";\nimport { umrIndustrial } from \"./products/umrIndustrial\";\nimport {\n carrierSupport,\n cellular,\n gpsLocationTracking,\n mounting as mountingBase,\n networkingInterface,\n outdoorReady,\n powerMethod,\n wifi,\n} from \"./properties\";\n\nconst mounting = {\n ...mountingBase,\n icon,\n};\n\nexport const MobileRouters: Section = {\n properties: [\n cellular,\n carrierSupport,\n wifi,\n networkingInterface,\n powerMethod,\n gpsLocationTracking,\n outdoorReady,\n mounting,\n ],\n products: [umrIndustrial, umr],\n columnWidth:
|
|
1
|
+
{"version":3,"file":"MobileRouters.mjs","sources":["../../../../src/components/ModelCompareV3/data/MobileRouters.tsx"],"sourcesContent":["import icon from \"../assets/mounting.svg\";\nimport type { Section } from \"../ModelCompareV3.types\";\nimport { umr } from \"./products/umr\";\nimport { umrIndustrial } from \"./products/umrIndustrial\";\nimport { umrUltra } from \"./products/umrUltra\";\nimport {\n carrierSupport,\n cellular,\n gpsLocationTracking,\n mounting as mountingBase,\n networkingInterface,\n outdoorReady,\n powerMethod,\n wifi,\n} from \"./properties\";\n\nconst mounting = {\n ...mountingBase,\n icon,\n};\n\nexport const MobileRouters: Section = {\n properties: [\n cellular,\n carrierSupport,\n wifi,\n networkingInterface,\n powerMethod,\n gpsLocationTracking,\n outdoorReady,\n mounting,\n ],\n products: [umrIndustrial, umrUltra, umr],\n columnWidth: 320,\n propertyColumnWidth: 237,\n showBadges: true,\n};\n"],"names":["mounting","mountingBase","icon","MobileRouters","properties","cellular","carrierSupport","wifi","networkingInterface","powerMethod","gpsLocationTracking","outdoorReady","products","umrIndustrial","umrUltra","umr","columnWidth","propertyColumnWidth","showBadges"],"mappings":";;;;;;;;;;;;;;;AAgBA,MAAMA,QAAW,GAAA;EACf,GAAGC,UAAA;EAAAC,IAAA,EACHA;AACF,CAAA;AAEO,MAAMC,aAAyB,GAAA;EACpCC,UAAY,EAAA,CACVC,QAAA,EACAC,cAAA,EACAC,IAAA,EACAC,mBAAA,EACAC,WAAA,EACAC,mBAAA,EACAC,YAAA,EACAX,QAAA,CACF;EACAY,QAAU,EAAA,CAACC,aAAe,EAAAC,QAAA,EAAUC,GAAG,CAAA;EACvCC,WAAa,EAAA,GAAA;EACbC,mBAAqB,EAAA,GAAA;EACrBC,UAAY,EAAA;AACd,CAAA;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elevatorHub.js","sources":["../../../../../src/components/ModelCompareV3/data/products/elevatorHub.tsx"],"sourcesContent":["import { SiteId } from \"../../../../contexts/MenuContext/mapping\";\nimport { BadgeVariants } from \"../../../Badge/Badge.types\";\nimport image from \"../../assets/DoorAccess/ElevatorHub.jpg\";\nimport type { Product } from \"../../ModelCompareV3.types\";\nimport { accessPowerMethod } from \"../properties/accessPowerMethod\";\nimport { inputTerminals } from \"../properties/inputTerminals\";\nimport { outputRelays } from \"../properties/outputRelays\";\nimport { poePorts } from \"../properties/poePorts\";\nimport { powerRedundancy } from \"../properties/powerRedundancy\";\n\nexport const elevatorHub: Product = {\n id: \"elevatorHub\",\n title: \"elevatorHub.title\",\n description: \"elevatorHub.description\",\n techspecsPath: [SiteId.TechSpecs, \"/unifi/door-access/ua-sk-elevator\"],\n storePathParts: {\n category: \"door-access-hub\",\n productSlug: \"ua-sk-elevator\",\n },\n
|
|
1
|
+
{"version":3,"file":"elevatorHub.js","sources":["../../../../../src/components/ModelCompareV3/data/products/elevatorHub.tsx"],"sourcesContent":["import { SiteId } from \"../../../../contexts/MenuContext/mapping\";\nimport { BadgeVariants } from \"../../../Badge/Badge.types\";\nimport image from \"../../assets/DoorAccess/ElevatorHub.jpg\";\nimport type { Product } from \"../../ModelCompareV3.types\";\nimport { accessPowerMethod } from \"../properties/accessPowerMethod\";\nimport { inputTerminals } from \"../properties/inputTerminals\";\nimport { outputRelays } from \"../properties/outputRelays\";\nimport { poePorts } from \"../properties/poePorts\";\nimport { powerRedundancy } from \"../properties/powerRedundancy\";\n\nexport const elevatorHub: Product = {\n id: \"elevatorHub\",\n title: \"elevatorHub.title\",\n description: \"elevatorHub.description\",\n techspecsPath: [SiteId.TechSpecs, \"/unifi/door-access/ua-sk-elevator\"],\n storePathParts: {\n category: \"door-access-hub\",\n productSlug: \"ua-sk-elevator\",\n },\n customBadges: [\n {\n value: { type: \"translation\", value: \"commons.badge.kitIncluded\" },\n variant: BadgeVariants.lightGrey,\n },\n ],\n image: {\n src: image,\n width: 257,\n height: 182,\n },\n propertyValues: [\n {\n propertyId: outputRelays.id,\n value: {\n type: \"translation\",\n value: \"elevatorHub.outputRelays\",\n },\n },\n {\n propertyId: inputTerminals.id,\n value: {\n type: \"translation\",\n value: \"elevatorHub.inputTerminals\",\n },\n },\n {\n propertyId: poePorts.id,\n value: {\n type: \"translation\",\n value: \"elevatorHub.poePorts\",\n },\n },\n {\n propertyId: accessPowerMethod.id,\n value: {\n type: \"translation\",\n value: \"elevatorHub.accessPowerMethod\",\n },\n },\n {\n propertyId: powerRedundancy.id,\n value: {\n type: \"boolean\",\n value: false,\n },\n },\n ],\n};\n"],"names":["elevatorHub","id","title","description","techspecsPath","SiteId","TechSpecs","storePathParts","category","productSlug","customBadges","value","type","variant","BadgeVariants","lightGrey","image","src","width","height","propertyValues","propertyId","outputRelays","inputTerminals","poePorts","accessPowerMethod","powerRedundancy"],"mappings":";;;;;;;;;;;;;;;;;;AAUO,MAAMA,WAAuB,GAAA;EAClCC,EAAI,EAAA,aAAA;EACJC,KAAO,EAAA,mBAAA;EACPC,WAAa,EAAA,yBAAA;EACbC,aAAe,EAAA,CAACC,OAAAA,CAAAA,MAAO,CAAAC,SAAA,EAAW,mCAAmC,CAAA;EACrEC,cAAgB,EAAA;IACdC,QAAU,EAAA,iBAAA;IACVC,WAAa,EAAA;EACf,CAAA;EACAC,YAAc,EAAA,CACZ;IACEC,KAAO,EAAA;MAAEC,IAAM,EAAA,aAAA;MAAeD,OAAO;IAA4B,CAAA;IACjEE,SAASC,WAAc,CAAAA,aAAA,CAAAC;EACzB,CAAA,CACF;EACAC,KAAO,EAAA;IACLC,GAAK,EAAAD,cAAA,CAAA,SAAA,CAAA;IACLE,KAAO,EAAA,GAAA;IACPC,MAAQ,EAAA;EACV,CAAA;EACAC,cAAgB,EAAA,CACd;IACEC,YAAYC,YAAa,CAAAA,YAAA,CAAArB,EAAA;IACzBU,KAAO,EAAA;MACLC,IAAM,EAAA,aAAA;MACND,KAAO,EAAA;IACT;EACF,CAAA,EACA;IACEU,YAAYE,cAAe,CAAAA,cAAA,CAAAtB,EAAA;IAC3BU,KAAO,EAAA;MACLC,IAAM,EAAA,aAAA;MACND,KAAO,EAAA;IACT;EACF,CAAA,EACA;IACEU,YAAYG,QAAS,CAAAA,QAAA,CAAAvB,EAAA;IACrBU,KAAO,EAAA;MACLC,IAAM,EAAA,aAAA;MACND,KAAO,EAAA;IACT;EACF,CAAA,EACA;IACEU,YAAYI,iBAAkB,CAAAA,iBAAA,CAAAxB,EAAA;IAC9BU,KAAO,EAAA;MACLC,IAAM,EAAA,aAAA;MACND,KAAO,EAAA;IACT;EACF,CAAA,EACA;IACEU,YAAYK,eAAgB,CAAAA,eAAA,CAAAzB,EAAA;IAC5BU,KAAO,EAAA;MACLC,IAAM,EAAA,SAAA;MACND,KAAO,EAAA;IACT;EACF,CAAA;AAEJ,CAAA;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elevatorHub.mjs","sources":["../../../../../src/components/ModelCompareV3/data/products/elevatorHub.tsx"],"sourcesContent":["import { SiteId } from \"../../../../contexts/MenuContext/mapping\";\nimport { BadgeVariants } from \"../../../Badge/Badge.types\";\nimport image from \"../../assets/DoorAccess/ElevatorHub.jpg\";\nimport type { Product } from \"../../ModelCompareV3.types\";\nimport { accessPowerMethod } from \"../properties/accessPowerMethod\";\nimport { inputTerminals } from \"../properties/inputTerminals\";\nimport { outputRelays } from \"../properties/outputRelays\";\nimport { poePorts } from \"../properties/poePorts\";\nimport { powerRedundancy } from \"../properties/powerRedundancy\";\n\nexport const elevatorHub: Product = {\n id: \"elevatorHub\",\n title: \"elevatorHub.title\",\n description: \"elevatorHub.description\",\n techspecsPath: [SiteId.TechSpecs, \"/unifi/door-access/ua-sk-elevator\"],\n storePathParts: {\n category: \"door-access-hub\",\n productSlug: \"ua-sk-elevator\",\n },\n
|
|
1
|
+
{"version":3,"file":"elevatorHub.mjs","sources":["../../../../../src/components/ModelCompareV3/data/products/elevatorHub.tsx"],"sourcesContent":["import { SiteId } from \"../../../../contexts/MenuContext/mapping\";\nimport { BadgeVariants } from \"../../../Badge/Badge.types\";\nimport image from \"../../assets/DoorAccess/ElevatorHub.jpg\";\nimport type { Product } from \"../../ModelCompareV3.types\";\nimport { accessPowerMethod } from \"../properties/accessPowerMethod\";\nimport { inputTerminals } from \"../properties/inputTerminals\";\nimport { outputRelays } from \"../properties/outputRelays\";\nimport { poePorts } from \"../properties/poePorts\";\nimport { powerRedundancy } from \"../properties/powerRedundancy\";\n\nexport const elevatorHub: Product = {\n id: \"elevatorHub\",\n title: \"elevatorHub.title\",\n description: \"elevatorHub.description\",\n techspecsPath: [SiteId.TechSpecs, \"/unifi/door-access/ua-sk-elevator\"],\n storePathParts: {\n category: \"door-access-hub\",\n productSlug: \"ua-sk-elevator\",\n },\n customBadges: [\n {\n value: { type: \"translation\", value: \"commons.badge.kitIncluded\" },\n variant: BadgeVariants.lightGrey,\n },\n ],\n image: {\n src: image,\n width: 257,\n height: 182,\n },\n propertyValues: [\n {\n propertyId: outputRelays.id,\n value: {\n type: \"translation\",\n value: \"elevatorHub.outputRelays\",\n },\n },\n {\n propertyId: inputTerminals.id,\n value: {\n type: \"translation\",\n value: \"elevatorHub.inputTerminals\",\n },\n },\n {\n propertyId: poePorts.id,\n value: {\n type: \"translation\",\n value: \"elevatorHub.poePorts\",\n },\n },\n {\n propertyId: accessPowerMethod.id,\n value: {\n type: \"translation\",\n value: \"elevatorHub.accessPowerMethod\",\n },\n },\n {\n propertyId: powerRedundancy.id,\n value: {\n type: \"boolean\",\n value: false,\n },\n },\n ],\n};\n"],"names":["elevatorHub","id","title","description","techspecsPath","SiteId","TechSpecs","storePathParts","category","productSlug","customBadges","value","type","variant","BadgeVariants","lightGrey","image","src","width","height","propertyValues","propertyId","outputRelays","inputTerminals","poePorts","accessPowerMethod","powerRedundancy"],"mappings":";;;;;;;;;;AAUO,MAAMA,WAAuB,GAAA;EAClCC,EAAI,EAAA,aAAA;EACJC,KAAO,EAAA,mBAAA;EACPC,WAAa,EAAA,yBAAA;EACbC,aAAe,EAAA,CAACC,MAAO,CAAAC,SAAA,EAAW,mCAAmC,CAAA;EACrEC,cAAgB,EAAA;IACdC,QAAU,EAAA,iBAAA;IACVC,WAAa,EAAA;EACf,CAAA;EACAC,YAAc,EAAA,CACZ;IACEC,KAAO,EAAA;MAAEC,IAAM,EAAA,aAAA;MAAeD,OAAO;IAA4B,CAAA;IACjEE,SAASC,aAAc,CAAAC;EACzB,CAAA,CACF;EACAC,KAAO,EAAA;IACLC,GAAK,EAAAD,cAAA;IACLE,KAAO,EAAA,GAAA;IACPC,MAAQ,EAAA;EACV,CAAA;EACAC,cAAgB,EAAA,CACd;IACEC,YAAYC,YAAa,CAAArB,EAAA;IACzBU,KAAO,EAAA;MACLC,IAAM,EAAA,aAAA;MACND,KAAO,EAAA;IACT;EACF,CAAA,EACA;IACEU,YAAYE,cAAe,CAAAtB,EAAA;IAC3BU,KAAO,EAAA;MACLC,IAAM,EAAA,aAAA;MACND,KAAO,EAAA;IACT;EACF,CAAA,EACA;IACEU,YAAYG,QAAS,CAAAvB,EAAA;IACrBU,KAAO,EAAA;MACLC,IAAM,EAAA,aAAA;MACND,KAAO,EAAA;IACT;EACF,CAAA,EACA;IACEU,YAAYI,iBAAkB,CAAAxB,EAAA;IAC9BU,KAAO,EAAA;MACLC,IAAM,EAAA,aAAA;MACND,KAAO,EAAA;IACT;EACF,CAAA,EACA;IACEU,YAAYK,eAAgB,CAAAzB,EAAA;IAC5BU,KAAO,EAAA;MACLC,IAAM,EAAA,SAAA;MACND,KAAO,EAAA;IACT;EACF,CAAA;AAEJ,CAAA;"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var mapping = require('../../../../contexts/MenuContext/mapping.js');
|
|
4
|
+
require('../../assets/DoorAccess/gateHub.jpg.js');
|
|
5
|
+
require('../properties/index.js');
|
|
6
|
+
var image = require("../../../../assets/gateHub.jpg");
|
|
7
|
+
var outputRelays = require('../properties/outputRelays.js');
|
|
8
|
+
var inputTerminals = require('../properties/inputTerminals.js');
|
|
9
|
+
var poePorts = require('../properties/poePorts.js');
|
|
10
|
+
var accessPowerMethod = require('../properties/accessPowerMethod.js');
|
|
11
|
+
var powerRedundancy = require('../properties/powerRedundancy.js');
|
|
12
|
+
function _interopDefault(e) {
|
|
13
|
+
return e && e.__esModule ? e : {
|
|
14
|
+
default: e
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
var image__default = /*#__PURE__*/_interopDefault(image);
|
|
18
|
+
"use strict";
|
|
19
|
+
const gateHub = {
|
|
20
|
+
id: "gateHub",
|
|
21
|
+
title: "gateHub.title",
|
|
22
|
+
techspecsPath: [mapping.SiteId.TechSpecs, "/unifi/door-access/ua-sk-gate"],
|
|
23
|
+
storePathParts: {
|
|
24
|
+
category: "door-access-starter-kit",
|
|
25
|
+
productSlug: "ua-sk-gate"
|
|
26
|
+
},
|
|
27
|
+
description: "gateHub.description",
|
|
28
|
+
customBadges: [{
|
|
29
|
+
variant: "lightGrey",
|
|
30
|
+
value: {
|
|
31
|
+
type: "translation",
|
|
32
|
+
value: "commons.badge.kitIncluded"
|
|
33
|
+
}
|
|
34
|
+
}],
|
|
35
|
+
image: {
|
|
36
|
+
src: image__default["default"],
|
|
37
|
+
width: 250,
|
|
38
|
+
height: 182
|
|
39
|
+
},
|
|
40
|
+
propertyValues: [{
|
|
41
|
+
propertyId: outputRelays.outputRelays.id,
|
|
42
|
+
value: {
|
|
43
|
+
type: "translation",
|
|
44
|
+
value: "gateHub.outputRelays"
|
|
45
|
+
}
|
|
46
|
+
}, {
|
|
47
|
+
propertyId: inputTerminals.inputTerminals.id,
|
|
48
|
+
value: {
|
|
49
|
+
type: "translation",
|
|
50
|
+
value: "gateHub.inputTerminals"
|
|
51
|
+
}
|
|
52
|
+
}, {
|
|
53
|
+
propertyId: poePorts.poePorts.id,
|
|
54
|
+
value: {
|
|
55
|
+
type: "translation",
|
|
56
|
+
value: "gateHub.poePorts"
|
|
57
|
+
}
|
|
58
|
+
}, {
|
|
59
|
+
propertyId: accessPowerMethod.accessPowerMethod.id,
|
|
60
|
+
value: {
|
|
61
|
+
type: "translation",
|
|
62
|
+
value: "gateHub.accessPowerMethod"
|
|
63
|
+
}
|
|
64
|
+
}, {
|
|
65
|
+
propertyId: powerRedundancy.powerRedundancy.id,
|
|
66
|
+
value: {
|
|
67
|
+
type: "boolean",
|
|
68
|
+
value: false
|
|
69
|
+
}
|
|
70
|
+
}]
|
|
71
|
+
};
|
|
72
|
+
exports.gateHub = gateHub;
|
|
73
|
+
//# sourceMappingURL=gateHub.js.map
|