@ubnt/store.core 9.30.0-beta.9 → 9.30.0-techspecs.0
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 +1 -154
- package/lib/_virtual/_virtual_multi-entry.js +2 -15
- package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
- package/lib/_virtual/_virtual_multi-entry.mjs +0 -2
- package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
- package/lib/assets/attention.svg +5 -5
- package/lib/assets/attention2.svg +5 -5
- package/lib/assets/close2.svg +2 -3
- package/lib/assets/close3.svg +3 -2
- package/lib/assets/minus4.svg +8 -8
- package/lib/assets/minus5.svg +8 -8
- package/lib/assets/plus2.svg +4 -1
- package/lib/assets/plus3.svg +1 -4
- package/lib/assets/plus5.svg +9 -9
- package/lib/assets/plus6.svg +9 -9
- package/lib/components/BackInStock/BackInStock.types.d.ts +0 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.d.ts +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js +4 -16
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs +5 -17
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.d.ts +1 -5
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js +17 -82
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs +17 -82
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.types.d.ts +0 -4
- package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.js +1 -1
- package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.mjs +1 -1
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +1 -1
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +2 -2
- package/lib/components/FeaturesSection_deprecated/assets/plus.svg.js +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/plus.svg.mjs +2 -2
- package/lib/components/Header/CartModalV2/Item/Item.js +3 -3
- package/lib/components/Header/CartModalV2/Item/Item.mjs +2 -2
- package/lib/components/ModelCompareV3/ModelCompareV3.types.d.ts +2 -7
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js +4 -18
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js.map +1 -1
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs +4 -18
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/aggregation.js +1 -1
- package/lib/components/ModelCompareV3/data/products/aggregation.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/aggregation.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/aggregation.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterprise24PoE.js +1 -1
- package/lib/components/ModelCompareV3/data/products/enterprise24PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterprise24PoE.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/enterprise24PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterprise48PoE.js +1 -1
- package/lib/components/ModelCompareV3/data/products/enterprise48PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterprise48PoE.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/enterprise48PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterprise8PoE.js +1 -1
- package/lib/components/ModelCompareV3/data/products/enterprise8PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterprise8PoE.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/enterprise8PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseAccessHub.js +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseAccessHub.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseAccessHub.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseAccessHub.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseXG24.js +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseXG24.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseXG24.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseXG24.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js +1 -1
- package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/industrial.js +1 -1
- package/lib/components/ModelCompareV3/data/products/industrial.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/industrial.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/industrial.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/lite16PoE.js +1 -1
- package/lib/components/ModelCompareV3/data/products/lite16PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/lite16PoE.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/lite16PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/lite8PoE.js +1 -1
- package/lib/components/ModelCompareV3/data/products/lite8PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/lite8PoE.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/lite8PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/missionCritical.js +1 -1
- package/lib/components/ModelCompareV3/data/products/missionCritical.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/missionCritical.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/missionCritical.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professional24.js +1 -1
- package/lib/components/ModelCompareV3/data/products/professional24.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professional24.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/professional24.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professional24PoE.js +1 -1
- package/lib/components/ModelCompareV3/data/products/professional24PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professional24PoE.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/professional24PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professional48.js +1 -1
- package/lib/components/ModelCompareV3/data/products/professional48.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professional48.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/professional48.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professional48PoE.js +1 -1
- package/lib/components/ModelCompareV3/data/products/professional48PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professional48PoE.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/professional48PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professional8PoE.js +1 -1
- package/lib/components/ModelCompareV3/data/products/professional8PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professional8PoE.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/professional8PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/standard16PoE.js +1 -1
- package/lib/components/ModelCompareV3/data/products/standard16PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/standard16PoE.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/standard16PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/standard24.js +1 -1
- package/lib/components/ModelCompareV3/data/products/standard24.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/standard24.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/standard24.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/standard24PoE.js +1 -1
- package/lib/components/ModelCompareV3/data/products/standard24PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/standard24PoE.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/standard24PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/standard48.js +1 -1
- package/lib/components/ModelCompareV3/data/products/standard48.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/standard48.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/standard48.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/standard48PoE.js +1 -1
- package/lib/components/ModelCompareV3/data/products/standard48PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/standard48PoE.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/standard48PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessional.js +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessional.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesStandard.js +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesStandard.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udb.js +7 -2
- package/lib/components/ModelCompareV3/data/products/udb.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udb.mjs +7 -2
- package/lib/components/ModelCompareV3/data/products/udb.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udbPro.js +5 -1
- package/lib/components/ModelCompareV3/data/products/udbPro.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udbPro.mjs +5 -1
- package/lib/components/ModelCompareV3/data/products/udbPro.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/ar.json.js +1 -0
- package/lib/components/ModelCompareV3/translations/ar.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/ar.json.mjs +1 -0
- package/lib/components/ModelCompareV3/translations/ar.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/de.json.js +1 -0
- package/lib/components/ModelCompareV3/translations/de.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/de.json.mjs +1 -0
- package/lib/components/ModelCompareV3/translations/de.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/el.json.js +1 -0
- package/lib/components/ModelCompareV3/translations/el.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/el.json.mjs +1 -0
- package/lib/components/ModelCompareV3/translations/el.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/en.json.js +33 -16
- package/lib/components/ModelCompareV3/translations/en.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/en.json.mjs +33 -16
- package/lib/components/ModelCompareV3/translations/en.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/es.json.js +1 -0
- package/lib/components/ModelCompareV3/translations/es.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/es.json.mjs +1 -0
- package/lib/components/ModelCompareV3/translations/es.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/fr.json.js +1 -0
- package/lib/components/ModelCompareV3/translations/fr.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/fr.json.mjs +1 -0
- package/lib/components/ModelCompareV3/translations/fr.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/it.json.js +1 -0
- package/lib/components/ModelCompareV3/translations/it.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/it.json.mjs +1 -0
- package/lib/components/ModelCompareV3/translations/it.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/ja.json.js +1 -0
- package/lib/components/ModelCompareV3/translations/ja.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/ja.json.mjs +1 -0
- package/lib/components/ModelCompareV3/translations/ja.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/pt-BR.json.js +1 -0
- package/lib/components/ModelCompareV3/translations/pt-BR.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs +1 -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 +1 -0
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs +1 -0
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js +1 -0
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs +1 -0
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.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/close.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
- package/lib/constants/icons/generic/index.js +3 -3
- package/lib/constants/icons/generic/index.mjs +1 -1
- package/lib/constants/icons/generic/plus.svg.js +5 -5
- package/lib/constants/icons/generic/plus.svg.mjs +2 -2
- package/lib/constants/proStoreCategories/mapping/index.d.ts +0 -1
- package/lib/constants/proStoreCategories/mapping/index.js +46 -35
- package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.mjs +46 -35
- package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/redirects.js +1 -9
- package/lib/constants/proStoreCategories/mapping/redirects.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/redirects.mjs +1 -9
- package/lib/constants/proStoreCategories/mapping/redirects.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/uisp.d.ts +0 -1
- package/lib/constants/proStoreCategories/mapping/uisp.js +0 -1
- package/lib/constants/proStoreCategories/mapping/uisp.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/uisp.mjs +0 -1
- package/lib/constants/proStoreCategories/mapping/uisp.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.d.ts +3 -1
- package/lib/constants/proStoreCategories/mapping/unifi.js +3 -1
- package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.mjs +3 -1
- package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.js +0 -4
- package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.mjs +1 -4
- package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.js +0 -4
- package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.mjs +1 -4
- package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.js +0 -4
- package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.mjs +1 -4
- package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.js +0 -1
- package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.mjs +0 -1
- package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.js +0 -4
- package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.mjs +1 -4
- package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js +0 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.mjs +0 -1
- package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.js +0 -4
- package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.mjs +1 -4
- package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.js +0 -4
- package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.mjs +1 -4
- package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js +0 -4
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +1 -4
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +0 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +0 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +0 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +0 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/constants/proStoreFilters/mapping.d.ts +1 -18
- package/lib/constants/proStoreFilters/mapping.js +0 -17
- package/lib/constants/proStoreFilters/mapping.js.map +1 -1
- package/lib/constants/proStoreFilters/mapping.mjs +0 -17
- package/lib/constants/proStoreFilters/mapping.mjs.map +1 -1
- package/lib/helpers/index.d.ts +0 -1
- package/lib/helpers/index.js +0 -11
- package/lib/helpers/index.js.map +1 -1
- package/lib/helpers/index.mjs +0 -1
- package/lib/helpers/index.mjs.map +1 -1
- package/lib/types/index.d.ts +0 -1
- package/lib/types/index.js +0 -2
- package/lib/types/index.js.map +1 -1
- package/lib/types/index.mjs +0 -1
- package/lib/types/index.mjs.map +1 -1
- package/lib/utils/address.d.ts +62 -278
- package/lib/utils/address.js +8 -11
- package/lib/utils/address.js.map +1 -1
- package/lib/utils/address.mjs +8 -11
- package/lib/utils/address.mjs.map +1 -1
- package/lib/utils/array.d.ts +0 -4
- package/lib/utils/array.js +0 -10
- package/lib/utils/array.js.map +1 -1
- package/lib/utils/array.mjs +1 -10
- package/lib/utils/array.mjs.map +1 -1
- package/lib/utils/money/constants.d.ts +0 -7
- package/lib/utils/money/constants.js +1 -9
- package/lib/utils/money/constants.js.map +1 -1
- package/lib/utils/money/constants.mjs +2 -10
- package/lib/utils/money/constants.mjs.map +1 -1
- package/lib/utils/money/tax.private.d.ts +8 -0
- package/lib/utils/money/tax.private.js +14 -5
- package/lib/utils/money/tax.private.js.map +1 -1
- package/lib/utils/money/tax.private.mjs +16 -8
- package/lib/utils/money/tax.private.mjs.map +1 -1
- package/package.json +1 -1
- package/lib/assets/enterpriseCampus24.jpg +0 -0
- package/lib/assets/enterpriseCampus48.jpg +0 -0
- package/lib/assets/enterpriseCampusAggregation.jpg +0 -0
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus24.jpg.js +0 -27
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus24.jpg.js.map +0 -1
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus24.jpg.mjs +0 -3
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus24.jpg.mjs.map +0 -1
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus48.jpg.js +0 -27
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus48.jpg.js.map +0 -1
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus48.jpg.mjs +0 -3
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus48.jpg.mjs.map +0 -1
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampusAggregation.jpg.js +0 -27
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampusAggregation.jpg.js.map +0 -1
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampusAggregation.jpg.mjs +0 -3
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampusAggregation.jpg.mjs.map +0 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.d.ts +0 -2
- package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.js +0 -91
- package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.js.map +0 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.mjs +0 -83
- package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.mjs.map +0 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24.d.ts +0 -2
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24.js +0 -91
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24.js.map +0 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24.mjs +0 -83
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24.mjs.map +0 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.d.ts +0 -2
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.js +0 -91
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.js.map +0 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs +0 -83
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs.map +0 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48.d.ts +0 -2
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48.js +0 -91
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48.js.map +0 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48.mjs +0 -83
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48.mjs.map +0 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.d.ts +0 -2
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.js +0 -91
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.js.map +0 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs +0 -83
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs.map +0 -1
- package/lib/helpers/product.d.ts +0 -87
- package/lib/helpers/product.js +0 -346
- package/lib/helpers/product.js.map +0 -1
- package/lib/helpers/product.mjs +0 -335
- package/lib/helpers/product.mjs.map +0 -1
- package/lib/helpers/product.test.d.ts +0 -1
- package/lib/types/product.d.ts +0 -87
- package/lib/types/product.js +0 -14
- package/lib/types/product.js.map +0 -1
- package/lib/types/product.mjs +0 -13
- package/lib/types/product.mjs.map +0 -1
- package/lib/utils/productSort.d.ts +0 -41
- package/lib/utils/productSort.js +0 -67
- package/lib/utils/productSort.js.map +0 -1
- package/lib/utils/productSort.mjs +0 -60
- package/lib/utils/productSort.mjs.map +0 -1
- package/lib/utils/validations/lastNameSuperRefinement.d.ts +0 -11
- package/lib/utils/validations/lastNameSuperRefinement.js +0 -25
- package/lib/utils/validations/lastNameSuperRefinement.js.map +0 -1
- package/lib/utils/validations/lastNameSuperRefinement.mjs +0 -21
- package/lib/utils/validations/lastNameSuperRefinement.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tax.private.js","sources":["../../../src/utils/money/tax.private.ts"],"sourcesContent":["// #############################################################################\n// Internal helper functions not for consumption outside of store.core!\n// Wrote as separate files so that they can be easily unit tested without exposing them\n// #############################################################################\nimport type { Dinero } from \"dinero.js\";\nimport { add,
|
|
1
|
+
{"version":3,"file":"tax.private.js","sources":["../../../src/utils/money/tax.private.ts"],"sourcesContent":["// #############################################################################\n// Internal helper functions not for consumption outside of store.core!\n// Wrote as separate files so that they can be easily unit tested without exposing them\n// #############################################################################\nimport type { Dinero } from \"dinero.js\";\nimport { add, allocate, subtract } from \"dinero.js\";\n\nimport { assert } from \"../errors\";\nimport { FixedAmountAllocator } from \"./allocators/fixedAmount\";\nimport { amount, getDinero } from \"./misc\";\nimport type {\n Cents,\n LineItemSummary,\n SingleLineItemSummary,\n TaxRate,\n} from \"./types\";\n\n/**\n * Private helper to convert a floating number to a dinero friendly allocation integer pair\n * @see https://v2.dinerojs.com/docs/api/mutations/allocate\n * @example\n * taxRateToDineroAllocation(0.1) // [1, 9]\n * taxRateToDineroAllocation(0.5) // [5, 5]\n */\nexport const taxRateToDineroAllocation = (\n taxRate: TaxRate,\n): [number, number] => {\n if (taxRate <= 0 || taxRate >= 1) {\n throw new RangeError(\"Unsupported rate, expected in range of 0>rate<1\");\n }\n\n // Get the scale of the rate\n const rateScale = String(taxRate).split(\".\")[1]?.length;\n assert(rateScale !== undefined, \"rateScale is undefined\");\n\n // Convert to integers\n const rateInt = Math.round(taxRate * Math.pow(10, rateScale));\n return [rateInt, Math.pow(10, rateScale) - rateInt];\n};\n\n/**\n * Reverse engineer the taxable amount from \"whole item\" taxable amount into \"per item\" taxable amount for custom tax\n * rate calculations\n */\nexport const allocatePerItemTaxableAmount = (\n itemSummary: LineItemSummary,\n): SingleLineItemSummary[] => {\n /**\n * If the item quantity is 1, we can just return the item summary as is\n */\n if (itemSummary.quantity === 1) {\n return [itemSummary as SingleLineItemSummary];\n }\n\n // Reverse engineer price before discount\n const preDiscountAmount = add(\n getDinero(itemSummary.taxableAmount, itemSummary.currency),\n getDinero(itemSummary.discountAmount, itemSummary.currency),\n );\n\n const allocator = new FixedAmountAllocator({\n initialAllocateAmount: itemSummary.discountAmount,\n initialTotalAmount: amount(preDiscountAmount),\n currency: itemSummary.currency,\n });\n\n // Iterate over the amount of qty to reverse engineer the discount price\n return Array.from({ length: itemSummary.quantity }, () => {\n const discountAllocatedAmount = allocator.allocate(\n itemSummary.itemPrice,\n itemSummary.currency,\n );\n\n const taxableAmount = subtract(\n getDinero(itemSummary.itemPrice, itemSummary.currency),\n discountAllocatedAmount,\n );\n\n return {\n itemPrice: itemSummary.itemPrice,\n taxableAmount: amount(taxableAmount),\n discountAmount: amount(discountAllocatedAmount),\n currency: itemSummary.currency,\n quantity: 1,\n } as SingleLineItemSummary;\n });\n};\n\nexport const calculateWholeQtyLineItemTax = (\n itemSummary: LineItemSummary,\n taxRate: TaxRate,\n): Dinero<Cents> => {\n // Nothing to calculate\n if (taxRate === 0) {\n return getDinero(0, itemSummary.currency);\n }\n\n /**\n * FIXME: look into approach with multiply and different scale for control over rounding, currently we just inherit\n * what dinero gives us which cause unexpected rounding issue\n */\n const [taxAmount] = allocate(\n getDinero(itemSummary.taxableAmount, itemSummary.currency),\n taxRateToDineroAllocation(taxRate),\n );\n\n assert(taxAmount !== undefined, \"taxAmount is undefined\");\n return taxAmount;\n};\n\nexport const calculatePerQtyLineItemTax = (\n itemSummary: LineItemSummary,\n taxRate: TaxRate,\n): Dinero<Cents> => {\n // Nothing to calculate\n if (taxRate === 0) {\n return getDinero(0, itemSummary.currency);\n }\n\n // Split the item summary into per individual item qty summaries\n const singleItemSummaries = allocatePerItemTaxableAmount(itemSummary);\n\n // Calculate individual item qty tax and sum them up\n let totalTaxAmount = getDinero(0, itemSummary.currency);\n\n singleItemSummaries.forEach((itemSummary) => {\n // Probably a bit confusing at first, but calling the whole qty tax calculation function here as we can safely use\n // it as item summary is always a single item summary here\n const taxAmount = calculateWholeQtyLineItemTax(itemSummary, taxRate);\n totalTaxAmount = add(totalTaxAmount, taxAmount);\n });\n\n return totalTaxAmount;\n};\n"],"names":["taxRateToDineroAllocation","taxRate","RangeError","rateScale","String","split","length","assert","rateInt","Math","round","pow","allocatePerItemTaxableAmount","itemSummary","quantity","preDiscountAmount","add","getDinero","taxableAmount","currency","discountAmount","allocator","FixedAmountAllocator","initialAllocateAmount","initialTotalAmount","amount","Array","from","discountAllocatedAmount","allocate","itemPrice","subtract","calculateWholeQtyLineItemTax","taxAmount","calculatePerQtyLineItemTax","singleItemSummaries","totalTaxAmount","forEach"],"mappings":"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"}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
import { add, subtract,
|
|
1
|
+
import { add, subtract, allocate } from 'dinero.js';
|
|
2
|
+
import { assert } from '../errors.mjs';
|
|
2
3
|
import { FixedAmountAllocator } from './allocators/fixedAmount.mjs';
|
|
3
|
-
import {
|
|
4
|
-
import { getDinero, amount, getDineroCurrency } from './misc.mjs';
|
|
4
|
+
import { getDinero, amount } from './misc.mjs';
|
|
5
5
|
"use strict";
|
|
6
|
+
const taxRateToDineroAllocation = taxRate => {
|
|
7
|
+
if (taxRate <= 0 || taxRate >= 1) {
|
|
8
|
+
throw new RangeError("Unsupported rate, expected in range of 0>rate<1");
|
|
9
|
+
}
|
|
10
|
+
const rateScale = String(taxRate).split(".")[1]?.length;
|
|
11
|
+
assert(rateScale !== void 0, "rateScale is undefined");
|
|
12
|
+
const rateInt = Math.round(taxRate * Math.pow(10, rateScale));
|
|
13
|
+
return [rateInt, Math.pow(10, rateScale) - rateInt];
|
|
14
|
+
};
|
|
6
15
|
const allocatePerItemTaxableAmount = itemSummary => {
|
|
7
16
|
if (itemSummary.quantity === 1) {
|
|
8
17
|
return [itemSummary];
|
|
@@ -31,10 +40,9 @@ const calculateWholeQtyLineItemTax = (itemSummary, taxRate) => {
|
|
|
31
40
|
if (taxRate === 0) {
|
|
32
41
|
return getDinero(0, itemSummary.currency);
|
|
33
42
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
});
|
|
43
|
+
const [taxAmount] = allocate(getDinero(itemSummary.taxableAmount, itemSummary.currency), taxRateToDineroAllocation(taxRate));
|
|
44
|
+
assert(taxAmount !== void 0, "taxAmount is undefined");
|
|
45
|
+
return taxAmount;
|
|
38
46
|
};
|
|
39
47
|
const calculatePerQtyLineItemTax = (itemSummary, taxRate) => {
|
|
40
48
|
if (taxRate === 0) {
|
|
@@ -48,5 +56,5 @@ const calculatePerQtyLineItemTax = (itemSummary, taxRate) => {
|
|
|
48
56
|
});
|
|
49
57
|
return totalTaxAmount;
|
|
50
58
|
};
|
|
51
|
-
export { allocatePerItemTaxableAmount, calculatePerQtyLineItemTax, calculateWholeQtyLineItemTax };
|
|
59
|
+
export { allocatePerItemTaxableAmount, calculatePerQtyLineItemTax, calculateWholeQtyLineItemTax, taxRateToDineroAllocation };
|
|
52
60
|
//# sourceMappingURL=tax.private.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tax.private.mjs","sources":["../../../src/utils/money/tax.private.ts"],"sourcesContent":["// #############################################################################\n// Internal helper functions not for consumption outside of store.core!\n// Wrote as separate files so that they can be easily unit tested without exposing them\n// #############################################################################\nimport type { Dinero } from \"dinero.js\";\nimport { add,
|
|
1
|
+
{"version":3,"file":"tax.private.mjs","sources":["../../../src/utils/money/tax.private.ts"],"sourcesContent":["// #############################################################################\n// Internal helper functions not for consumption outside of store.core!\n// Wrote as separate files so that they can be easily unit tested without exposing them\n// #############################################################################\nimport type { Dinero } from \"dinero.js\";\nimport { add, allocate, subtract } from \"dinero.js\";\n\nimport { assert } from \"../errors\";\nimport { FixedAmountAllocator } from \"./allocators/fixedAmount\";\nimport { amount, getDinero } from \"./misc\";\nimport type {\n Cents,\n LineItemSummary,\n SingleLineItemSummary,\n TaxRate,\n} from \"./types\";\n\n/**\n * Private helper to convert a floating number to a dinero friendly allocation integer pair\n * @see https://v2.dinerojs.com/docs/api/mutations/allocate\n * @example\n * taxRateToDineroAllocation(0.1) // [1, 9]\n * taxRateToDineroAllocation(0.5) // [5, 5]\n */\nexport const taxRateToDineroAllocation = (\n taxRate: TaxRate,\n): [number, number] => {\n if (taxRate <= 0 || taxRate >= 1) {\n throw new RangeError(\"Unsupported rate, expected in range of 0>rate<1\");\n }\n\n // Get the scale of the rate\n const rateScale = String(taxRate).split(\".\")[1]?.length;\n assert(rateScale !== undefined, \"rateScale is undefined\");\n\n // Convert to integers\n const rateInt = Math.round(taxRate * Math.pow(10, rateScale));\n return [rateInt, Math.pow(10, rateScale) - rateInt];\n};\n\n/**\n * Reverse engineer the taxable amount from \"whole item\" taxable amount into \"per item\" taxable amount for custom tax\n * rate calculations\n */\nexport const allocatePerItemTaxableAmount = (\n itemSummary: LineItemSummary,\n): SingleLineItemSummary[] => {\n /**\n * If the item quantity is 1, we can just return the item summary as is\n */\n if (itemSummary.quantity === 1) {\n return [itemSummary as SingleLineItemSummary];\n }\n\n // Reverse engineer price before discount\n const preDiscountAmount = add(\n getDinero(itemSummary.taxableAmount, itemSummary.currency),\n getDinero(itemSummary.discountAmount, itemSummary.currency),\n );\n\n const allocator = new FixedAmountAllocator({\n initialAllocateAmount: itemSummary.discountAmount,\n initialTotalAmount: amount(preDiscountAmount),\n currency: itemSummary.currency,\n });\n\n // Iterate over the amount of qty to reverse engineer the discount price\n return Array.from({ length: itemSummary.quantity }, () => {\n const discountAllocatedAmount = allocator.allocate(\n itemSummary.itemPrice,\n itemSummary.currency,\n );\n\n const taxableAmount = subtract(\n getDinero(itemSummary.itemPrice, itemSummary.currency),\n discountAllocatedAmount,\n );\n\n return {\n itemPrice: itemSummary.itemPrice,\n taxableAmount: amount(taxableAmount),\n discountAmount: amount(discountAllocatedAmount),\n currency: itemSummary.currency,\n quantity: 1,\n } as SingleLineItemSummary;\n });\n};\n\nexport const calculateWholeQtyLineItemTax = (\n itemSummary: LineItemSummary,\n taxRate: TaxRate,\n): Dinero<Cents> => {\n // Nothing to calculate\n if (taxRate === 0) {\n return getDinero(0, itemSummary.currency);\n }\n\n /**\n * FIXME: look into approach with multiply and different scale for control over rounding, currently we just inherit\n * what dinero gives us which cause unexpected rounding issue\n */\n const [taxAmount] = allocate(\n getDinero(itemSummary.taxableAmount, itemSummary.currency),\n taxRateToDineroAllocation(taxRate),\n );\n\n assert(taxAmount !== undefined, \"taxAmount is undefined\");\n return taxAmount;\n};\n\nexport const calculatePerQtyLineItemTax = (\n itemSummary: LineItemSummary,\n taxRate: TaxRate,\n): Dinero<Cents> => {\n // Nothing to calculate\n if (taxRate === 0) {\n return getDinero(0, itemSummary.currency);\n }\n\n // Split the item summary into per individual item qty summaries\n const singleItemSummaries = allocatePerItemTaxableAmount(itemSummary);\n\n // Calculate individual item qty tax and sum them up\n let totalTaxAmount = getDinero(0, itemSummary.currency);\n\n singleItemSummaries.forEach((itemSummary) => {\n // Probably a bit confusing at first, but calling the whole qty tax calculation function here as we can safely use\n // it as item summary is always a single item summary here\n const taxAmount = calculateWholeQtyLineItemTax(itemSummary, taxRate);\n totalTaxAmount = add(totalTaxAmount, taxAmount);\n });\n\n return totalTaxAmount;\n};\n"],"names":["taxRateToDineroAllocation","taxRate","RangeError","rateScale","String","split","length","assert","rateInt","Math","round","pow","allocatePerItemTaxableAmount","itemSummary","quantity","preDiscountAmount","add","getDinero","taxableAmount","currency","discountAmount","allocator","FixedAmountAllocator","initialAllocateAmount","initialTotalAmount","amount","Array","from","discountAllocatedAmount","allocate","itemPrice","subtract","calculateWholeQtyLineItemTax","taxAmount","calculatePerQtyLineItemTax","singleItemSummaries","totalTaxAmount","forEach"],"mappings":"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"}
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var image = require("../../../../assets/enterpriseCampus24.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=enterpriseCampus24.jpg.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enterpriseCampus24.jpg.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enterpriseCampus24.jpg.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var image = require("../../../../assets/enterpriseCampus48.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=enterpriseCampus48.jpg.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enterpriseCampus48.jpg.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enterpriseCampus48.jpg.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var image = require("../../../../assets/enterpriseCampusAggregation.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=enterpriseCampusAggregation.jpg.js.map
|
package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampusAggregation.jpg.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enterpriseCampusAggregation.jpg.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampusAggregation.jpg.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enterpriseCampusAggregation.jpg.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
require('../../../../constants/proStoreCategories/index.js');
|
|
4
|
-
var unifi = require('../../../../constants/proStoreCategories/mapping/unifi.js');
|
|
5
|
-
var mapping = require('../../../../contexts/MenuContext/mapping.js');
|
|
6
|
-
require('../../assets/Switching/enterpriseCampusAggregation.jpg.js');
|
|
7
|
-
require('../properties/index.js');
|
|
8
|
-
var image = require("../../../../assets/enterpriseCampusAggregation.jpg");
|
|
9
|
-
var portCount = require('../properties/portCount.js');
|
|
10
|
-
var downlinkSpeed = require('../properties/downlinkSpeed.js');
|
|
11
|
-
var uplinkSpeed = require('../properties/uplinkSpeed.js');
|
|
12
|
-
var poeOutput = require('../properties/poeOutput.js');
|
|
13
|
-
var poeAvailability = require('../properties/poeAvailability.js');
|
|
14
|
-
var etherlighting = require('../properties/etherlighting.js');
|
|
15
|
-
var proAvSupport = require('../properties/proAvSupport.js');
|
|
16
|
-
var powerRedundancy = require('../properties/powerRedundancy.js');
|
|
17
|
-
function _interopDefault(e) {
|
|
18
|
-
return e && e.__esModule ? e : {
|
|
19
|
-
default: e
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
var image__default = /*#__PURE__*/_interopDefault(image);
|
|
23
|
-
"use strict";
|
|
24
|
-
const enterpriseAggregation = {
|
|
25
|
-
id: "enterpriseAggregation",
|
|
26
|
-
title: "enterpriseAggregation.title",
|
|
27
|
-
techspecsPath: [mapping.SiteId.TechSpecs, `/unifi/${unifi.UniFiCategoryId.Switching}/ecs-aggregation`],
|
|
28
|
-
storePathParts: {
|
|
29
|
-
productSlug: "ecs-aggregation",
|
|
30
|
-
category: unifi.UniFiChildCategorySlug.SwitchingAggregation
|
|
31
|
-
},
|
|
32
|
-
sku: "ECS-Aggregation",
|
|
33
|
-
description: "enterpriseAggregation.description",
|
|
34
|
-
image: {
|
|
35
|
-
src: image__default["default"],
|
|
36
|
-
width: 230,
|
|
37
|
-
height: 120
|
|
38
|
-
},
|
|
39
|
-
isNew: true,
|
|
40
|
-
propertyValues: [{
|
|
41
|
-
propertyId: portCount.portCount.id,
|
|
42
|
-
value: {
|
|
43
|
-
type: "string",
|
|
44
|
-
value: "48"
|
|
45
|
-
}
|
|
46
|
-
}, {
|
|
47
|
-
propertyId: downlinkSpeed.downlinkSpeed.id,
|
|
48
|
-
value: {
|
|
49
|
-
type: "string",
|
|
50
|
-
value: "25 Gbps"
|
|
51
|
-
}
|
|
52
|
-
}, {
|
|
53
|
-
propertyId: uplinkSpeed.uplinkSpeed.id,
|
|
54
|
-
value: {
|
|
55
|
-
type: "string",
|
|
56
|
-
value: "100 Gbps"
|
|
57
|
-
}
|
|
58
|
-
}, {
|
|
59
|
-
propertyId: poeOutput.poeOutput.id,
|
|
60
|
-
value: {
|
|
61
|
-
type: "boolean",
|
|
62
|
-
value: false
|
|
63
|
-
}
|
|
64
|
-
}, {
|
|
65
|
-
propertyId: poeAvailability.poeAvailability.id,
|
|
66
|
-
value: {
|
|
67
|
-
type: "boolean",
|
|
68
|
-
value: false
|
|
69
|
-
}
|
|
70
|
-
}, {
|
|
71
|
-
propertyId: etherlighting.etherlighting.id,
|
|
72
|
-
value: {
|
|
73
|
-
type: "boolean",
|
|
74
|
-
value: true
|
|
75
|
-
}
|
|
76
|
-
}, {
|
|
77
|
-
propertyId: proAvSupport.proAvSupport.id,
|
|
78
|
-
value: {
|
|
79
|
-
type: "boolean",
|
|
80
|
-
value: true
|
|
81
|
-
}
|
|
82
|
-
}, {
|
|
83
|
-
propertyId: powerRedundancy.powerRedundancy.id,
|
|
84
|
-
value: {
|
|
85
|
-
type: "translation",
|
|
86
|
-
value: "commons.powerRedundancy.dualHotSwappablePsus"
|
|
87
|
-
}
|
|
88
|
-
}]
|
|
89
|
-
};
|
|
90
|
-
exports.enterpriseAggregation = enterpriseAggregation;
|
|
91
|
-
//# sourceMappingURL=enterpriseAggregation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enterpriseAggregation.js","sources":["../../../../../src/components/ModelCompareV3/data/products/enterpriseAggregation.tsx"],"sourcesContent":["import { UniFiCategoryId } from \"../../../../constants/proStoreCategories\";\nimport { UniFiChildCategorySlug } from \"../../../../constants/proStoreCategories/mapping/unifi\";\nimport { SiteId } from \"../../../../contexts/MenuContext/mapping\";\nimport image from \"../../assets/Switching/enterpriseCampusAggregation.jpg\";\nimport type { Product } from \"../../ModelCompareV3.types\";\nimport {\n downlinkSpeed,\n etherlighting,\n poeAvailability,\n poeOutput,\n portCount,\n powerRedundancy,\n proAvSupport,\n uplinkSpeed,\n} from \"../properties\";\n\nexport const enterpriseAggregation: Product = {\n id: \"enterpriseAggregation\",\n title: \"enterpriseAggregation.title\",\n techspecsPath: [\n SiteId.TechSpecs,\n `/unifi/${UniFiCategoryId.Switching}/ecs-aggregation`,\n ],\n storePathParts: {\n productSlug: \"ecs-aggregation\",\n category: UniFiChildCategorySlug.SwitchingAggregation,\n },\n sku: \"ECS-Aggregation\",\n description: \"enterpriseAggregation.description\",\n image: {\n src: image,\n width: 230,\n height: 120,\n },\n isNew: true,\n propertyValues: [\n {\n propertyId: portCount.id,\n value: { type: \"string\", value: \"48\" },\n },\n {\n propertyId: downlinkSpeed.id,\n value: { type: \"string\", value: \"25 Gbps\" },\n },\n {\n propertyId: uplinkSpeed.id,\n value: { type: \"string\", value: \"100 Gbps\" },\n },\n {\n propertyId: poeOutput.id,\n value: { type: \"boolean\", value: false },\n },\n {\n propertyId: poeAvailability.id,\n value: { type: \"boolean\", value: false },\n },\n {\n propertyId: etherlighting.id,\n value: { type: \"boolean\", value: true },\n },\n {\n propertyId: proAvSupport.id,\n value: { type: \"boolean\", value: true },\n },\n {\n propertyId: powerRedundancy.id,\n value: {\n type: \"translation\",\n value: \"commons.powerRedundancy.dualHotSwappablePsus\",\n },\n },\n ],\n};\n"],"names":["enterpriseAggregation","id","title","techspecsPath","SiteId","TechSpecs","UniFiCategoryId","Switching","storePathParts","productSlug","category","UniFiChildCategorySlug","SwitchingAggregation","sku","description","image","src","width","height","isNew","propertyValues","propertyId","portCount","value","type","downlinkSpeed","uplinkSpeed","poeOutput","poeAvailability","etherlighting","proAvSupport","powerRedundancy"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAgBO,MAAMA,qBAAiC,GAAA;EAC5CC,EAAI,EAAA,uBAAA;EACJC,KAAO,EAAA,6BAAA;EACPC,aAAe,EAAA,CACbC,OAAAA,CAAAA,MAAO,CAAAC,SAAA,EACP,UAAUC,KAAAA,CAAAA,gBAAgBC,SAAS,kBAAA,CACrC;EACAC,cAAgB,EAAA;IACdC,WAAa,EAAA,iBAAA;IACbC,UAAUC,KAAuB,CAAAA,sBAAA,CAAAC;EACnC,CAAA;EACAC,GAAK,EAAA,iBAAA;EACLC,WAAa,EAAA,mCAAA;EACbC,KAAO,EAAA;IACLC,GAAK,EAAAD,cAAA,CAAA,SAAA,CAAA;IACLE,KAAO,EAAA,GAAA;IACPC,MAAQ,EAAA;EACV,CAAA;EACAC,KAAO,EAAA,IAAA;EACPC,cAAgB,EAAA,CACd;IACEC,YAAYC,SAAU,CAAAA,SAAA,CAAArB,EAAA;IACtBsB,KAAO,EAAA;MAAEC,IAAM,EAAA,QAAA;MAAUD,OAAO;IAAK;EACvC,CAAA,EACA;IACEF,YAAYI,aAAc,CAAAA,aAAA,CAAAxB,EAAA;IAC1BsB,KAAO,EAAA;MAAEC,IAAM,EAAA,QAAA;MAAUD,OAAO;IAAU;EAC5C,CAAA,EACA;IACEF,YAAYK,WAAY,CAAAA,WAAA,CAAAzB,EAAA;IACxBsB,KAAO,EAAA;MAAEC,IAAM,EAAA,QAAA;MAAUD,OAAO;IAAW;EAC7C,CAAA,EACA;IACEF,YAAYM,SAAU,CAAAA,SAAA,CAAA1B,EAAA;IACtBsB,KAAO,EAAA;MAAEC,IAAM,EAAA,SAAA;MAAWD,OAAO;IAAM;EACzC,CAAA,EACA;IACEF,YAAYO,eAAgB,CAAAA,eAAA,CAAA3B,EAAA;IAC5BsB,KAAO,EAAA;MAAEC,IAAM,EAAA,SAAA;MAAWD,OAAO;IAAM;EACzC,CAAA,EACA;IACEF,YAAYQ,aAAc,CAAAA,aAAA,CAAA5B,EAAA;IAC1BsB,KAAO,EAAA;MAAEC,IAAM,EAAA,SAAA;MAAWD,OAAO;IAAK;EACxC,CAAA,EACA;IACEF,YAAYS,YAAa,CAAAA,YAAA,CAAA7B,EAAA;IACzBsB,KAAO,EAAA;MAAEC,IAAM,EAAA,SAAA;MAAWD,OAAO;IAAK;EACxC,CAAA,EACA;IACEF,YAAYU,eAAgB,CAAAA,eAAA,CAAA9B,EAAA;IAC5BsB,KAAO,EAAA;MACLC,IAAM,EAAA,aAAA;MACND,KAAO,EAAA;IACT;EACF,CAAA;AAEJ,CAAA;"}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import '../../../../constants/proStoreCategories/index.mjs';
|
|
2
|
-
import { UniFiCategoryId, UniFiChildCategorySlug } from '../../../../constants/proStoreCategories/mapping/unifi.mjs';
|
|
3
|
-
import { SiteId } from '../../../../contexts/MenuContext/mapping.mjs';
|
|
4
|
-
import '../../assets/Switching/enterpriseCampusAggregation.jpg.mjs';
|
|
5
|
-
import '../properties/index.mjs';
|
|
6
|
-
import image__default from "../../../../assets/enterpriseCampusAggregation.jpg";
|
|
7
|
-
import { portCount } from '../properties/portCount.mjs';
|
|
8
|
-
import { downlinkSpeed } from '../properties/downlinkSpeed.mjs';
|
|
9
|
-
import { uplinkSpeed } from '../properties/uplinkSpeed.mjs';
|
|
10
|
-
import { poeOutput } from '../properties/poeOutput.mjs';
|
|
11
|
-
import { poeAvailability } from '../properties/poeAvailability.mjs';
|
|
12
|
-
import { etherlighting } from '../properties/etherlighting.mjs';
|
|
13
|
-
import { proAvSupport } from '../properties/proAvSupport.mjs';
|
|
14
|
-
import { powerRedundancy } from '../properties/powerRedundancy.mjs';
|
|
15
|
-
"use strict";
|
|
16
|
-
const enterpriseAggregation = {
|
|
17
|
-
id: "enterpriseAggregation",
|
|
18
|
-
title: "enterpriseAggregation.title",
|
|
19
|
-
techspecsPath: [SiteId.TechSpecs, `/unifi/${UniFiCategoryId.Switching}/ecs-aggregation`],
|
|
20
|
-
storePathParts: {
|
|
21
|
-
productSlug: "ecs-aggregation",
|
|
22
|
-
category: UniFiChildCategorySlug.SwitchingAggregation
|
|
23
|
-
},
|
|
24
|
-
sku: "ECS-Aggregation",
|
|
25
|
-
description: "enterpriseAggregation.description",
|
|
26
|
-
image: {
|
|
27
|
-
src: image__default,
|
|
28
|
-
width: 230,
|
|
29
|
-
height: 120
|
|
30
|
-
},
|
|
31
|
-
isNew: true,
|
|
32
|
-
propertyValues: [{
|
|
33
|
-
propertyId: portCount.id,
|
|
34
|
-
value: {
|
|
35
|
-
type: "string",
|
|
36
|
-
value: "48"
|
|
37
|
-
}
|
|
38
|
-
}, {
|
|
39
|
-
propertyId: downlinkSpeed.id,
|
|
40
|
-
value: {
|
|
41
|
-
type: "string",
|
|
42
|
-
value: "25 Gbps"
|
|
43
|
-
}
|
|
44
|
-
}, {
|
|
45
|
-
propertyId: uplinkSpeed.id,
|
|
46
|
-
value: {
|
|
47
|
-
type: "string",
|
|
48
|
-
value: "100 Gbps"
|
|
49
|
-
}
|
|
50
|
-
}, {
|
|
51
|
-
propertyId: poeOutput.id,
|
|
52
|
-
value: {
|
|
53
|
-
type: "boolean",
|
|
54
|
-
value: false
|
|
55
|
-
}
|
|
56
|
-
}, {
|
|
57
|
-
propertyId: poeAvailability.id,
|
|
58
|
-
value: {
|
|
59
|
-
type: "boolean",
|
|
60
|
-
value: false
|
|
61
|
-
}
|
|
62
|
-
}, {
|
|
63
|
-
propertyId: etherlighting.id,
|
|
64
|
-
value: {
|
|
65
|
-
type: "boolean",
|
|
66
|
-
value: true
|
|
67
|
-
}
|
|
68
|
-
}, {
|
|
69
|
-
propertyId: proAvSupport.id,
|
|
70
|
-
value: {
|
|
71
|
-
type: "boolean",
|
|
72
|
-
value: true
|
|
73
|
-
}
|
|
74
|
-
}, {
|
|
75
|
-
propertyId: powerRedundancy.id,
|
|
76
|
-
value: {
|
|
77
|
-
type: "translation",
|
|
78
|
-
value: "commons.powerRedundancy.dualHotSwappablePsus"
|
|
79
|
-
}
|
|
80
|
-
}]
|
|
81
|
-
};
|
|
82
|
-
export { enterpriseAggregation };
|
|
83
|
-
//# sourceMappingURL=enterpriseAggregation.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enterpriseAggregation.mjs","sources":["../../../../../src/components/ModelCompareV3/data/products/enterpriseAggregation.tsx"],"sourcesContent":["import { UniFiCategoryId } from \"../../../../constants/proStoreCategories\";\nimport { UniFiChildCategorySlug } from \"../../../../constants/proStoreCategories/mapping/unifi\";\nimport { SiteId } from \"../../../../contexts/MenuContext/mapping\";\nimport image from \"../../assets/Switching/enterpriseCampusAggregation.jpg\";\nimport type { Product } from \"../../ModelCompareV3.types\";\nimport {\n downlinkSpeed,\n etherlighting,\n poeAvailability,\n poeOutput,\n portCount,\n powerRedundancy,\n proAvSupport,\n uplinkSpeed,\n} from \"../properties\";\n\nexport const enterpriseAggregation: Product = {\n id: \"enterpriseAggregation\",\n title: \"enterpriseAggregation.title\",\n techspecsPath: [\n SiteId.TechSpecs,\n `/unifi/${UniFiCategoryId.Switching}/ecs-aggregation`,\n ],\n storePathParts: {\n productSlug: \"ecs-aggregation\",\n category: UniFiChildCategorySlug.SwitchingAggregation,\n },\n sku: \"ECS-Aggregation\",\n description: \"enterpriseAggregation.description\",\n image: {\n src: image,\n width: 230,\n height: 120,\n },\n isNew: true,\n propertyValues: [\n {\n propertyId: portCount.id,\n value: { type: \"string\", value: \"48\" },\n },\n {\n propertyId: downlinkSpeed.id,\n value: { type: \"string\", value: \"25 Gbps\" },\n },\n {\n propertyId: uplinkSpeed.id,\n value: { type: \"string\", value: \"100 Gbps\" },\n },\n {\n propertyId: poeOutput.id,\n value: { type: \"boolean\", value: false },\n },\n {\n propertyId: poeAvailability.id,\n value: { type: \"boolean\", value: false },\n },\n {\n propertyId: etherlighting.id,\n value: { type: \"boolean\", value: true },\n },\n {\n propertyId: proAvSupport.id,\n value: { type: \"boolean\", value: true },\n },\n {\n propertyId: powerRedundancy.id,\n value: {\n type: \"translation\",\n value: \"commons.powerRedundancy.dualHotSwappablePsus\",\n },\n },\n ],\n};\n"],"names":["enterpriseAggregation","id","title","techspecsPath","SiteId","TechSpecs","UniFiCategoryId","Switching","storePathParts","productSlug","category","UniFiChildCategorySlug","SwitchingAggregation","sku","description","image","src","width","height","isNew","propertyValues","propertyId","portCount","value","type","downlinkSpeed","uplinkSpeed","poeOutput","poeAvailability","etherlighting","proAvSupport","powerRedundancy"],"mappings":";;;;;;;;;;;;;;;AAgBO,MAAMA,qBAAiC,GAAA;EAC5CC,EAAI,EAAA,uBAAA;EACJC,KAAO,EAAA,6BAAA;EACPC,aAAe,EAAA,CACbC,MAAO,CAAAC,SAAA,EACP,UAAUC,gBAAgBC,SAAS,kBAAA,CACrC;EACAC,cAAgB,EAAA;IACdC,WAAa,EAAA,iBAAA;IACbC,UAAUC,sBAAuB,CAAAC;EACnC,CAAA;EACAC,GAAK,EAAA,iBAAA;EACLC,WAAa,EAAA,mCAAA;EACbC,KAAO,EAAA;IACLC,GAAK,EAAAD,cAAA;IACLE,KAAO,EAAA,GAAA;IACPC,MAAQ,EAAA;EACV,CAAA;EACAC,KAAO,EAAA,IAAA;EACPC,cAAgB,EAAA,CACd;IACEC,YAAYC,SAAU,CAAArB,EAAA;IACtBsB,KAAO,EAAA;MAAEC,IAAM,EAAA,QAAA;MAAUD,OAAO;IAAK;EACvC,CAAA,EACA;IACEF,YAAYI,aAAc,CAAAxB,EAAA;IAC1BsB,KAAO,EAAA;MAAEC,IAAM,EAAA,QAAA;MAAUD,OAAO;IAAU;EAC5C,CAAA,EACA;IACEF,YAAYK,WAAY,CAAAzB,EAAA;IACxBsB,KAAO,EAAA;MAAEC,IAAM,EAAA,QAAA;MAAUD,OAAO;IAAW;EAC7C,CAAA,EACA;IACEF,YAAYM,SAAU,CAAA1B,EAAA;IACtBsB,KAAO,EAAA;MAAEC,IAAM,EAAA,SAAA;MAAWD,OAAO;IAAM;EACzC,CAAA,EACA;IACEF,YAAYO,eAAgB,CAAA3B,EAAA;IAC5BsB,KAAO,EAAA;MAAEC,IAAM,EAAA,SAAA;MAAWD,OAAO;IAAM;EACzC,CAAA,EACA;IACEF,YAAYQ,aAAc,CAAA5B,EAAA;IAC1BsB,KAAO,EAAA;MAAEC,IAAM,EAAA,SAAA;MAAWD,OAAO;IAAK;EACxC,CAAA,EACA;IACEF,YAAYS,YAAa,CAAA7B,EAAA;IACzBsB,KAAO,EAAA;MAAEC,IAAM,EAAA,SAAA;MAAWD,OAAO;IAAK;EACxC,CAAA,EACA;IACEF,YAAYU,eAAgB,CAAA9B,EAAA;IAC5BsB,KAAO,EAAA;MACLC,IAAM,EAAA,aAAA;MACND,KAAO,EAAA;IACT;EACF,CAAA;AAEJ,CAAA;"}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
require('../../../../constants/proStoreCategories/index.js');
|
|
4
|
-
var unifi = require('../../../../constants/proStoreCategories/mapping/unifi.js');
|
|
5
|
-
var mapping = require('../../../../contexts/MenuContext/mapping.js');
|
|
6
|
-
require('../../assets/Switching/enterpriseCampus24.jpg.js');
|
|
7
|
-
require('../properties/index.js');
|
|
8
|
-
var image = require("../../../../assets/enterpriseCampus24.jpg");
|
|
9
|
-
var portCount = require('../properties/portCount.js');
|
|
10
|
-
var downlinkSpeed = require('../properties/downlinkSpeed.js');
|
|
11
|
-
var uplinkSpeed = require('../properties/uplinkSpeed.js');
|
|
12
|
-
var poeOutput = require('../properties/poeOutput.js');
|
|
13
|
-
var poeAvailability = require('../properties/poeAvailability.js');
|
|
14
|
-
var etherlighting = require('../properties/etherlighting.js');
|
|
15
|
-
var proAvSupport = require('../properties/proAvSupport.js');
|
|
16
|
-
var powerRedundancy = require('../properties/powerRedundancy.js');
|
|
17
|
-
function _interopDefault(e) {
|
|
18
|
-
return e && e.__esModule ? e : {
|
|
19
|
-
default: e
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
var image__default = /*#__PURE__*/_interopDefault(image);
|
|
23
|
-
"use strict";
|
|
24
|
-
const enterpriseCampus24 = {
|
|
25
|
-
id: "enterpriseCampus24",
|
|
26
|
-
title: "enterpriseCampus24.title",
|
|
27
|
-
techspecsPath: [mapping.SiteId.TechSpecs, `/unifi/${unifi.UniFiCategoryId.Switching}/ecs-24`],
|
|
28
|
-
storePathParts: {
|
|
29
|
-
productSlug: "ecs-24",
|
|
30
|
-
category: unifi.UniFiChildCategorySlug.SwitchingEnterprise
|
|
31
|
-
},
|
|
32
|
-
sku: "ECS-24",
|
|
33
|
-
description: "enterpriseCampus24.description",
|
|
34
|
-
image: {
|
|
35
|
-
src: image__default["default"],
|
|
36
|
-
width: 230,
|
|
37
|
-
height: 120
|
|
38
|
-
},
|
|
39
|
-
isNew: true,
|
|
40
|
-
propertyValues: [{
|
|
41
|
-
propertyId: portCount.portCount.id,
|
|
42
|
-
value: {
|
|
43
|
-
type: "string",
|
|
44
|
-
value: "24"
|
|
45
|
-
}
|
|
46
|
-
}, {
|
|
47
|
-
propertyId: downlinkSpeed.downlinkSpeed.id,
|
|
48
|
-
value: {
|
|
49
|
-
type: "translation",
|
|
50
|
-
value: "enterpriseCampus24.downlinkSpeed"
|
|
51
|
-
}
|
|
52
|
-
}, {
|
|
53
|
-
propertyId: uplinkSpeed.uplinkSpeed.id,
|
|
54
|
-
value: {
|
|
55
|
-
type: "string",
|
|
56
|
-
value: "25 Gbps"
|
|
57
|
-
}
|
|
58
|
-
}, {
|
|
59
|
-
propertyId: poeOutput.poeOutput.id,
|
|
60
|
-
value: {
|
|
61
|
-
type: "boolean",
|
|
62
|
-
value: false
|
|
63
|
-
}
|
|
64
|
-
}, {
|
|
65
|
-
propertyId: poeAvailability.poeAvailability.id,
|
|
66
|
-
value: {
|
|
67
|
-
type: "boolean",
|
|
68
|
-
value: false
|
|
69
|
-
}
|
|
70
|
-
}, {
|
|
71
|
-
propertyId: etherlighting.etherlighting.id,
|
|
72
|
-
value: {
|
|
73
|
-
type: "boolean",
|
|
74
|
-
value: true
|
|
75
|
-
}
|
|
76
|
-
}, {
|
|
77
|
-
propertyId: proAvSupport.proAvSupport.id,
|
|
78
|
-
value: {
|
|
79
|
-
type: "boolean",
|
|
80
|
-
value: true
|
|
81
|
-
}
|
|
82
|
-
}, {
|
|
83
|
-
propertyId: powerRedundancy.powerRedundancy.id,
|
|
84
|
-
value: {
|
|
85
|
-
type: "translation",
|
|
86
|
-
value: "commons.powerRedundancy.dualHotSwappablePsus"
|
|
87
|
-
}
|
|
88
|
-
}]
|
|
89
|
-
};
|
|
90
|
-
exports.enterpriseCampus24 = enterpriseCampus24;
|
|
91
|
-
//# sourceMappingURL=enterpriseCampus24.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enterpriseCampus24.js","sources":["../../../../../src/components/ModelCompareV3/data/products/enterpriseCampus24.tsx"],"sourcesContent":["import { UniFiCategoryId } from \"../../../../constants/proStoreCategories\";\nimport { UniFiChildCategorySlug } from \"../../../../constants/proStoreCategories/mapping/unifi\";\nimport { SiteId } from \"../../../../contexts/MenuContext/mapping\";\nimport image from \"../../assets/Switching/enterpriseCampus24.jpg\";\nimport type { Product } from \"../../ModelCompareV3.types\";\nimport {\n downlinkSpeed,\n etherlighting,\n poeAvailability,\n poeOutput,\n portCount,\n powerRedundancy,\n proAvSupport,\n uplinkSpeed,\n} from \"../properties\";\n\nexport const enterpriseCampus24: Product = {\n id: \"enterpriseCampus24\",\n title: \"enterpriseCampus24.title\",\n techspecsPath: [\n SiteId.TechSpecs,\n `/unifi/${UniFiCategoryId.Switching}/ecs-24`,\n ],\n storePathParts: {\n productSlug: \"ecs-24\",\n category: UniFiChildCategorySlug.SwitchingEnterprise,\n },\n sku: \"ECS-24\",\n description: \"enterpriseCampus24.description\",\n image: {\n src: image,\n width: 230,\n height: 120,\n },\n isNew: true,\n propertyValues: [\n {\n propertyId: portCount.id,\n value: { type: \"string\", value: \"24\" },\n },\n {\n propertyId: downlinkSpeed.id,\n value: { type: \"translation\", value: \"enterpriseCampus24.downlinkSpeed\" },\n },\n {\n propertyId: uplinkSpeed.id,\n value: { type: \"string\", value: \"25 Gbps\" },\n },\n {\n propertyId: poeOutput.id,\n value: { type: \"boolean\", value: false },\n },\n {\n propertyId: poeAvailability.id,\n value: { type: \"boolean\", value: false },\n },\n {\n propertyId: etherlighting.id,\n value: { type: \"boolean\", value: true },\n },\n {\n propertyId: proAvSupport.id,\n value: { type: \"boolean\", value: true },\n },\n {\n propertyId: powerRedundancy.id,\n value: {\n type: \"translation\",\n value: \"commons.powerRedundancy.dualHotSwappablePsus\",\n },\n },\n ],\n};\n"],"names":["enterpriseCampus24","id","title","techspecsPath","SiteId","TechSpecs","UniFiCategoryId","Switching","storePathParts","productSlug","category","UniFiChildCategorySlug","SwitchingEnterprise","sku","description","image","src","width","height","isNew","propertyValues","propertyId","portCount","value","type","downlinkSpeed","uplinkSpeed","poeOutput","poeAvailability","etherlighting","proAvSupport","powerRedundancy"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAgBO,MAAMA,kBAA8B,GAAA;EACzCC,EAAI,EAAA,oBAAA;EACJC,KAAO,EAAA,0BAAA;EACPC,aAAe,EAAA,CACbC,OAAAA,CAAAA,MAAO,CAAAC,SAAA,EACP,UAAUC,KAAAA,CAAAA,gBAAgBC,SAAS,SAAA,CACrC;EACAC,cAAgB,EAAA;IACdC,WAAa,EAAA,QAAA;IACbC,UAAUC,KAAuB,CAAAA,sBAAA,CAAAC;EACnC,CAAA;EACAC,GAAK,EAAA,QAAA;EACLC,WAAa,EAAA,gCAAA;EACbC,KAAO,EAAA;IACLC,GAAK,EAAAD,cAAA,CAAA,SAAA,CAAA;IACLE,KAAO,EAAA,GAAA;IACPC,MAAQ,EAAA;EACV,CAAA;EACAC,KAAO,EAAA,IAAA;EACPC,cAAgB,EAAA,CACd;IACEC,YAAYC,SAAU,CAAAA,SAAA,CAAArB,EAAA;IACtBsB,KAAO,EAAA;MAAEC,IAAM,EAAA,QAAA;MAAUD,OAAO;IAAK;EACvC,CAAA,EACA;IACEF,YAAYI,aAAc,CAAAA,aAAA,CAAAxB,EAAA;IAC1BsB,KAAO,EAAA;MAAEC,IAAM,EAAA,aAAA;MAAeD,OAAO;IAAmC;EAC1E,CAAA,EACA;IACEF,YAAYK,WAAY,CAAAA,WAAA,CAAAzB,EAAA;IACxBsB,KAAO,EAAA;MAAEC,IAAM,EAAA,QAAA;MAAUD,OAAO;IAAU;EAC5C,CAAA,EACA;IACEF,YAAYM,SAAU,CAAAA,SAAA,CAAA1B,EAAA;IACtBsB,KAAO,EAAA;MAAEC,IAAM,EAAA,SAAA;MAAWD,OAAO;IAAM;EACzC,CAAA,EACA;IACEF,YAAYO,eAAgB,CAAAA,eAAA,CAAA3B,EAAA;IAC5BsB,KAAO,EAAA;MAAEC,IAAM,EAAA,SAAA;MAAWD,OAAO;IAAM;EACzC,CAAA,EACA;IACEF,YAAYQ,aAAc,CAAAA,aAAA,CAAA5B,EAAA;IAC1BsB,KAAO,EAAA;MAAEC,IAAM,EAAA,SAAA;MAAWD,OAAO;IAAK;EACxC,CAAA,EACA;IACEF,YAAYS,YAAa,CAAAA,YAAA,CAAA7B,EAAA;IACzBsB,KAAO,EAAA;MAAEC,IAAM,EAAA,SAAA;MAAWD,OAAO;IAAK;EACxC,CAAA,EACA;IACEF,YAAYU,eAAgB,CAAAA,eAAA,CAAA9B,EAAA;IAC5BsB,KAAO,EAAA;MACLC,IAAM,EAAA,aAAA;MACND,KAAO,EAAA;IACT;EACF,CAAA;AAEJ,CAAA;"}
|