@ubnt/store.core 9.34.0 → 9.35.0-beta.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 +201 -0
- package/lib/_virtual/_virtual_multi-entry.js +15 -2
- package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
- package/lib/_virtual/_virtual_multi-entry.mjs +2 -0
- 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/close.svg +3 -1
- package/lib/assets/close2.svg +1 -3
- package/lib/assets/crestron.svg +3 -0
- package/lib/assets/pause.svg +3 -3
- package/lib/assets/pause2.svg +3 -3
- package/lib/assets/plus2.svg +1 -4
- package/lib/assets/plus3.svg +4 -1
- package/lib/assets/ucgMax.jpg +0 -0
- package/lib/assets/ucgMax2.jpg +0 -0
- package/lib/assets/ucgUltra.jpg +0 -0
- package/lib/assets/ucgUltra2.jpg +0 -0
- package/lib/assets/udmPro.jpg +0 -0
- package/lib/assets/udmPro2.jpg +0 -0
- package/lib/assets/udmProMax.jpg +0 -0
- package/lib/assets/udmProMax2.jpg +0 -0
- package/lib/assets/udmProSpecial.jpg +0 -0
- package/lib/assets/udmProSpecial2.jpg +0 -0
- package/lib/components/BackInStock/BackInStock.types.d.ts +1 -0
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.d.ts +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js +16 -4
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs +17 -5
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.d.ts +5 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js +82 -17
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs +82 -17
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.types.d.ts +4 -0
- package/lib/components/CustomImage/CustomImage.js +1 -1
- package/lib/components/CustomImage/CustomImage.mjs +1 -1
- 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/assets/plus.svg.js +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/plus.svg.mjs +2 -2
- package/lib/components/GridGallery/GridModal/GridModal.js +1 -1
- package/lib/components/GridGallery/GridModal/GridModal.mjs +1 -1
- package/lib/components/Header/CartModalV2/CartModal.js +1 -1
- package/lib/components/Header/CartModalV2/CartModal.mjs +1 -1
- package/lib/components/Header/CartModalV2/Item/Item.js +3 -3
- package/lib/components/Header/CartModalV2/Item/Item.mjs +2 -2
- package/lib/components/Header/Header.js +1 -1
- package/lib/components/Header/Header.mjs +1 -1
- package/lib/components/LandingPageSidebar/LandingPageSidebar.js +1 -1
- package/lib/components/LandingPageSidebar/LandingPageSidebar.mjs +1 -1
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +1 -1
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.mjs +1 -1
- package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.js +1 -1
- package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.mjs +2 -2
- package/lib/components/ModelCompareV3/ModelCompareV3.types.d.ts +2 -1
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/crestron.svg.js +27 -0
- package/lib/components/ModelCompareV3/assets/crestron.svg.js.map +1 -0
- package/lib/components/ModelCompareV3/assets/crestron.svg.mjs +3 -0
- package/lib/components/ModelCompareV3/assets/crestron.svg.mjs.map +1 -0
- package/lib/components/ModelCompareV3/data/CloudGateways.js +15 -15
- package/lib/components/ModelCompareV3/data/CloudGateways.mjs +10 -10
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js +3 -2
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js.map +1 -1
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs +3 -2
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.js +10 -3
- package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.js.map +1 -1
- package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.mjs +10 -3
- package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/Switching.js +3 -2
- package/lib/components/ModelCompareV3/data/Switching.js.map +1 -1
- package/lib/components/ModelCompareV3/data/Switching.mjs +3 -2
- package/lib/components/ModelCompareV3/data/Switching.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/aggregation.js +7 -0
- package/lib/components/ModelCompareV3/data/products/aggregation.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/aggregation.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/aggregation.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/buildingBridge.js +1 -1
- package/lib/components/ModelCompareV3/data/products/buildingBridge.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/buildingBridge.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/buildingBridge.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/buildingBridgeXG.js +1 -1
- package/lib/components/ModelCompareV3/data/products/buildingBridgeXG.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/buildingBridgeXG.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/buildingBridgeXG.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.js +7 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.js +7 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.js +7 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js +7 -0
- package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/missionCritical.js +7 -0
- package/lib/components/ModelCompareV3/data/products/missionCritical.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/missionCritical.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/missionCritical.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax16.js +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalMax16.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax16.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalMax16.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.js +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax24.js +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalMax24.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax24.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalMax24.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.js +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax48.js +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalMax48.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax48.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalMax48.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.js +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js +8 -0
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs +8 -0
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessional.js +7 -0
- package/lib/components/ModelCompareV3/data/products/switchesProfessional.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js +10 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs +10 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesStandard.js +7 -0
- package/lib/components/ModelCompareV3/data/products/switchesStandard.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/udb.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udb.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udb.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/udb.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udbPro.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udbPro.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udbPro.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/udbPro.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +1 -1
- package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.d.ts +2 -0
- package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.js +18 -0
- package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.js.map +1 -0
- package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.mjs +10 -0
- package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.mjs.map +1 -0
- package/lib/components/ModelCompareV3/data/properties/index.d.ts +1 -0
- package/lib/components/ModelCompareV3/data/properties/index.js +2 -0
- package/lib/components/ModelCompareV3/data/properties/index.js.map +1 -1
- package/lib/components/ModelCompareV3/data/properties/index.mjs +1 -0
- package/lib/components/ModelCompareV3/data/properties/index.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/ar.json.js +2 -0
- package/lib/components/ModelCompareV3/translations/ar.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/ar.json.mjs +2 -0
- package/lib/components/ModelCompareV3/translations/ar.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/de.json.js +2 -0
- package/lib/components/ModelCompareV3/translations/de.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/de.json.mjs +2 -0
- package/lib/components/ModelCompareV3/translations/de.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/el.json.js +2 -0
- package/lib/components/ModelCompareV3/translations/el.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/el.json.mjs +2 -0
- package/lib/components/ModelCompareV3/translations/el.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/en.json.js +2 -0
- package/lib/components/ModelCompareV3/translations/en.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/en.json.mjs +2 -0
- package/lib/components/ModelCompareV3/translations/en.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/es.json.js +2 -0
- package/lib/components/ModelCompareV3/translations/es.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/es.json.mjs +2 -0
- package/lib/components/ModelCompareV3/translations/es.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/fr.json.js +2 -0
- package/lib/components/ModelCompareV3/translations/fr.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/fr.json.mjs +2 -0
- package/lib/components/ModelCompareV3/translations/fr.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/it.json.js +2 -0
- package/lib/components/ModelCompareV3/translations/it.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/it.json.mjs +2 -0
- package/lib/components/ModelCompareV3/translations/it.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/ja.json.js +2 -0
- package/lib/components/ModelCompareV3/translations/ja.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/ja.json.mjs +2 -0
- package/lib/components/ModelCompareV3/translations/ja.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/pt-BR.json.js +2 -0
- package/lib/components/ModelCompareV3/translations/pt-BR.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs +2 -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 +2 -0
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs +2 -0
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js +2 -0
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs +2 -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/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/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/Search/Input/Input.js +1 -1
- package/lib/components/Search/Input/Input.mjs +1 -1
- package/lib/components/VideoPlayerNew/VideoPlayer.js +2 -2
- package/lib/components/VideoPlayerNew/VideoPlayer.mjs +2 -2
- package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
- package/lib/components/VideoPlayerNew/assets/pause.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/pause.svg.mjs +2 -2
- package/lib/constants/icons/generic/close.svg.js +1 -1
- package/lib/constants/icons/generic/close.svg.mjs +2 -2
- package/lib/constants/icons/generic/index.js +4 -4
- package/lib/constants/icons/generic/index.mjs +2 -2
- 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 +2 -2
- package/lib/constants/proStoreCategories/mapping/index.js +7 -7
- package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.mjs +7 -7
- package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/redirects.js +8 -1
- package/lib/constants/proStoreCategories/mapping/redirects.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/redirects.mjs +8 -1
- package/lib/constants/proStoreCategories/mapping/redirects.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/uisp.d.ts +1 -0
- package/lib/constants/proStoreCategories/mapping/uisp.js +1 -0
- package/lib/constants/proStoreCategories/mapping/uisp.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/uisp.mjs +1 -0
- package/lib/constants/proStoreCategories/mapping/uisp.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.d.ts +1 -2
- package/lib/constants/proStoreCategories/mapping/unifi.js +1 -2
- package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.mjs +1 -2
- package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.js +7 -2
- package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.mjs +6 -3
- package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.js +7 -2
- package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.mjs +6 -3
- package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.js +7 -2
- package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.mjs +6 -3
- package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.js +4 -2
- package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.mjs +4 -3
- package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.js +7 -2
- package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.mjs +6 -3
- package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js +4 -2
- package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.mjs +4 -3
- package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.js +7 -2
- package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.mjs +6 -3
- package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.js +7 -2
- package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.mjs +6 -3
- package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js +7 -2
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +6 -3
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +4 -2
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +4 -3
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +4 -2
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +4 -3
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/constants/proStoreFilters/mapping.d.ts +17 -1
- package/lib/constants/proStoreFilters/mapping.js +16 -0
- package/lib/constants/proStoreFilters/mapping.js.map +1 -1
- package/lib/constants/proStoreFilters/mapping.mjs +16 -0
- package/lib/constants/proStoreFilters/mapping.mjs.map +1 -1
- package/lib/helpers/index.d.ts +1 -0
- package/lib/helpers/index.js +11 -0
- package/lib/helpers/index.js.map +1 -1
- package/lib/helpers/index.mjs +1 -0
- package/lib/helpers/index.mjs.map +1 -1
- package/lib/helpers/product.d.ts +87 -0
- package/lib/helpers/product.js +346 -0
- package/lib/helpers/product.js.map +1 -0
- package/lib/helpers/product.mjs +335 -0
- package/lib/helpers/product.mjs.map +1 -0
- package/lib/helpers/product.test.d.ts +1 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.js +2 -0
- package/lib/types/index.js.map +1 -1
- package/lib/types/index.mjs +1 -0
- package/lib/types/index.mjs.map +1 -1
- package/lib/types/product.d.ts +87 -0
- package/lib/types/product.js +14 -0
- package/lib/types/product.js.map +1 -0
- package/lib/types/product.mjs +13 -0
- package/lib/types/product.mjs.map +1 -0
- package/lib/utils/address.d.ts +278 -62
- package/lib/utils/address.js +11 -8
- package/lib/utils/address.js.map +1 -1
- package/lib/utils/address.mjs +11 -8
- package/lib/utils/address.mjs.map +1 -1
- package/lib/utils/array.d.ts +4 -0
- package/lib/utils/array.js +10 -0
- package/lib/utils/array.js.map +1 -1
- package/lib/utils/array.mjs +10 -1
- package/lib/utils/array.mjs.map +1 -1
- package/lib/utils/money/constants.d.ts +33 -4
- package/lib/utils/money/constants.js +48 -7
- package/lib/utils/money/constants.js.map +1 -1
- package/lib/utils/money/constants.mjs +48 -9
- package/lib/utils/money/constants.mjs.map +1 -1
- package/lib/utils/money/format.js +14 -5
- package/lib/utils/money/format.js.map +1 -1
- package/lib/utils/money/format.mjs +15 -6
- package/lib/utils/money/format.mjs.map +1 -1
- package/lib/utils/money/index.js +3 -1
- package/lib/utils/money/index.js.map +1 -1
- package/lib/utils/money/index.mjs +1 -1
- package/lib/utils/money/misc.js +7 -1
- package/lib/utils/money/misc.js.map +1 -1
- package/lib/utils/money/misc.mjs +7 -1
- package/lib/utils/money/misc.mjs.map +1 -1
- package/lib/utils/money/tax.private.d.ts +0 -8
- package/lib/utils/money/tax.private.js +5 -14
- package/lib/utils/money/tax.private.js.map +1 -1
- package/lib/utils/money/tax.private.mjs +8 -16
- package/lib/utils/money/tax.private.mjs.map +1 -1
- package/lib/utils/productSort.d.ts +41 -0
- package/lib/utils/productSort.js +67 -0
- package/lib/utils/productSort.js.map +1 -0
- package/lib/utils/productSort.mjs +60 -0
- package/lib/utils/productSort.mjs.map +1 -0
- package/lib/utils/validations/lastNameSuperRefinement.d.ts +11 -0
- package/lib/utils/validations/lastNameSuperRefinement.js +25 -0
- package/lib/utils/validations/lastNameSuperRefinement.js.map +1 -0
- package/lib/utils/validations/lastNameSuperRefinement.mjs +21 -0
- package/lib/utils/validations/lastNameSuperRefinement.mjs.map +1 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapping.mjs","sources":["../../../src/constants/proStoreFilters/mapping.ts"],"sourcesContent":["import { FilterId } from \"../proStoreCategories\";\n\nexport enum FilterType {\n Radio = \"radio\",\n Checkbox = \"checkbox\",\n}\n\nexport type FilterGroup = {\n id: FilterId;\n label?: string;\n type: FilterType;\n items: ProductFilter[];\n};\n\nexport enum ProductFilter {\n // Static filters\n InStock = \"in-stock\",\n UICare = \"ui-care\",\n\n // Features\n /**\n * These have matching tags starting with \"feature:\"\n *\n * @example feature:external-antenna-option\n */\n FeaturePoe = \"poe\",\n FeatureWifiIntegrated = \"wifi-integrated\",\n FeatureWifi6e6Ghz = \"wifi-6e-6-ghz\",\n FeatureWifi6 = \"wifi-6\",\n FeatureWifi7 = \"wifi-7\",\n FeatureWifi6Ghz = \"wifi-6-ghz\",\n FeatureExternalAntennaOption = \"external-antenna-option\",\n FeatureLess24Ports = \"less24-ports\",\n Feature24Ports = \"24-ports\",\n Feature48Ports = \"48-ports\",\n Feature25Gbe = \"25-gbe\",\n Feature10Gbe = \"10-gbe\",\n FeaturePoePlus = \"poe-plus\",\n FeaturePoePlusPlus = \"poe-plus-plus\",\n Feature10gSfpPlus = \"10g-sfp-plus\",\n Feature25gSfp28 = \"25g-sfp28\",\n Feature100gQsfp28 = \"100g-qsfp28\",\n FeatureOutdoor = \"outdoor\",\n FeatureHD = \"hd\",\n Feature2k = \"2k\",\n Feature4k = \"4k\",\n FeatureAiDetection = \"ai-detection\",\n FeatureEnhancedAi = \"enhanced-ai\",\n FeatureOpticalZoom = \"optical-zoom\",\n FeatureWeatherproofOutdoorExposed = \"weatherproof-outdoor-exposed\",\n FeatureWeatherresistantOutdoorCovered = \"weatherresistant-outdoor-covered\",\n FeatureCameraIntegrated = \"camera-integrated\",\n FeatureSubscriptionUnlocked = \"subscription-unlocked\",\n FeatureEthernetAndDacs = \"ethernet-and-dacs\",\n FeatureSfpModulesAndFiber = \"sfp-modules-and-fiber\",\n FeatureRackmount = \"rackmount\",\n FeatureStorage = \"storage\",\n FeatureDesktopStands = \"desktop-stands\",\n FeaturePoeAdapters = \"poe-adapters\",\n FeaturePowerAccessories = \"power-accessories\",\n FeatureMounting = \"mounting\",\n FeatureAntennas = \"antennas\",\n FeatureSkins = \"skins\",\n FeaturePower = \"power\",\n FeatureEnhancers = \"enhancers\",\n Feature60Ghz = \"60-ghz\",\n FeaturePtp = \"ptp\",\n FeaturePtmp = \"ptmp\",\n Feature5Ghz = \"5-ghz\",\n Feature2_4Ghz = \"2-4-ghz\",\n Feature3Ghz = \"3-ghz\",\n Feature11Ghz = \"11-ghz\",\n Feature24Ghz = \"24-ghz\",\n Feature802_11N = \"802-11-n\",\n Feature802_11Ac = \"802-11-ac\",\n Feature802_11Ax = \"802-11-ax\",\n FeatureLtu = \"ltu\",\n FeatureEnhancedNoiseResilience = \"enhanced-noise-resilience\",\n FeatureShielded = \"shielded\",\n FeatureFeedhorn = \"feedhorn\",\n FeatureRpSma = \"rp-sma\",\n FeatureNConnector = \"n-connector\",\n FeatureBasestation = \"basestation\",\n FeatureCpe = \"cpe\",\n FeatureHiPerformancePtp = \"hi-performance-ptp\",\n FeatureOlt = \"olt\",\n FeatureOnu = \"onu\",\n FeatureGponCompatible = \"gpon-compatible\",\n FeatureXgsPonCompatible = \"xgs-pon-compatible\",\n FeatureXgPonCompatible = \"xg-pon-compatible\",\n FeatureWifiReady = \"wifi-ready\",\n FeatureModules = \"modules\",\n FeaturePoeOut = \"poe-out\",\n Feature1gSfp = \"1g-sfp\",\n FeaturePowerRedundancy = \"power-redundancy\",\n FeaturePrecisionKits = \"precision-kits\",\n FeatureMounts = \"mounts\",\n FeaturePoeInjectors = \"poe-injectors\",\n FeaturePoeConverters = \"poe-converters\",\n FeatureSurgeProtect = \"surge-protect\",\n FeaturePoeSwitch = \"poe-switch\",\n FeaturePowerSolutions = \"power-solutions\",\n FeatureRfShielding = \"rf-shielding\",\n FeatureCabling = \"cabling\",\n FeatureMultiplexer = \"multiplexer\",\n // TODO: this seems to have a typo in tag name, left it as is right now\n FeatureBandDuplexer = \"band-dplexer\",\n FeatureRadioModules = \"radio-modules\",\n FeatureEtherLighting = \"etherlighting\",\n}\n\nexport const FILTERS_MAPPING: FilterGroup[] = [\n {\n id: FilterId.ConnectionType,\n type: FilterType.Checkbox,\n items: [ProductFilter.FeaturePoe, ProductFilter.FeatureWifiIntegrated],\n },\n {\n id: FilterId.WifiConnectionType,\n type: FilterType.Checkbox,\n items: [\n ProductFilter.FeatureWifi7,\n ProductFilter.FeatureWifi6e6Ghz,\n ProductFilter.FeatureWifi6,\n ProductFilter.FeatureWifi6Ghz,\n ProductFilter.FeatureExternalAntennaOption,\n ],\n },\n {\n id: FilterId.SupportedSpeeds,\n type: FilterType.Checkbox,\n items: [\n ProductFilter.Feature25Gbe,\n ProductFilter.Feature10Gbe,\n ProductFilter.Feature10gSfpPlus,\n ProductFilter.Feature25gSfp28,\n ProductFilter.Feature100gQsfp28,\n ],\n },\n {\n id: FilterId.PortCount,\n type: FilterType.Checkbox,\n items: [\n ProductFilter.FeatureLess24Ports,\n ProductFilter.Feature24Ports,\n ProductFilter.Feature48Ports,\n ],\n },\n {\n id: FilterId.PoeSupport,\n type: FilterType.Checkbox,\n items: [ProductFilter.FeaturePoePlus, ProductFilter.FeaturePoePlusPlus],\n },\n {\n id: FilterId.OutdoorSupport,\n type: FilterType.Checkbox,\n items: [ProductFilter.FeatureOutdoor],\n },\n {\n id: FilterId.Resolution,\n type: FilterType.Radio,\n items: [\n ProductFilter.FeatureHD,\n ProductFilter.Feature2k,\n ProductFilter.Feature4k,\n ],\n },\n {\n id: FilterId.OutdoorRating,\n type: FilterType.Checkbox,\n items: [\n ProductFilter.FeatureWeatherproofOutdoorExposed,\n ProductFilter.FeatureWeatherresistantOutdoorCovered,\n ],\n },\n {\n id: FilterId.AdditionalFeatures,\n type: FilterType.Checkbox,\n items: [\n ProductFilter.FeatureAiDetection,\n ProductFilter.FeatureEnhancedAi,\n ProductFilter.FeatureOpticalZoom,\n ProductFilter.FeatureWifiIntegrated,\n ],\n },\n {\n id: FilterId.DoorAccessFeatures,\n type: FilterType.Checkbox,\n items: [\n ProductFilter.FeatureCameraIntegrated,\n ProductFilter.FeatureOutdoor,\n ],\n },\n {\n id: FilterId.PhoneSystemFeatures,\n type: FilterType.Checkbox,\n items: [ProductFilter.FeatureSubscriptionUnlocked],\n },\n {\n id: FilterId.AccessoriesFeatures,\n type: FilterType.Radio,\n items: [\n ProductFilter.FeatureEthernetAndDacs,\n ProductFilter.FeatureSfpModulesAndFiber,\n ProductFilter.FeatureRackmount,\n ProductFilter.FeatureStorage,\n ProductFilter.FeatureDesktopStands,\n ProductFilter.FeaturePoeAdapters,\n ProductFilter.FeaturePowerAccessories,\n ProductFilter.FeaturePower,\n ProductFilter.FeatureMounting,\n ProductFilter.FeatureAntennas,\n ProductFilter.FeatureEnhancers,\n ProductFilter.FeatureSkins,\n ],\n },\n {\n id: FilterId[\"60GhWirelessFeatures\"],\n type: FilterType.Checkbox,\n items: [\n ProductFilter.Feature60Ghz,\n ProductFilter.FeaturePtp,\n ProductFilter.FeaturePtmp,\n ],\n },\n {\n id: FilterId.WirelessFeatures,\n type: FilterType.Checkbox,\n items: [\n ProductFilter.Feature5Ghz,\n ProductFilter.Feature2_4Ghz,\n ProductFilter.Feature3Ghz,\n ProductFilter.Feature11Ghz,\n ProductFilter.Feature24Ghz,\n ProductFilter.Feature802_11N,\n ProductFilter.Feature802_11Ac,\n ProductFilter.Feature802_11Ax,\n ProductFilter.FeatureLtu,\n ProductFilter.FeatureEnhancedNoiseResilience,\n ProductFilter.FeatureShielded,\n ProductFilter.FeatureFeedhorn,\n ProductFilter.FeatureAntennas,\n ProductFilter.FeatureRpSma,\n ProductFilter.FeatureNConnector,\n ProductFilter.FeatureBasestation,\n ProductFilter.FeatureCpe,\n ProductFilter.FeatureHiPerformancePtp,\n ],\n },\n {\n id: FilterId.FiberFeatures,\n type: FilterType.Checkbox,\n items: [\n ProductFilter.FeatureOlt,\n ProductFilter.FeatureOnu,\n ProductFilter.FeatureGponCompatible,\n ProductFilter.FeatureXgsPonCompatible,\n ProductFilter.FeatureXgPonCompatible,\n ProductFilter.FeatureWifiReady,\n ProductFilter.FeatureModules,\n ],\n },\n {\n id: FilterId.WiredFeatures,\n type: FilterType.Checkbox,\n items: [\n ProductFilter.FeatureLess24Ports,\n ProductFilter.Feature24Ports,\n ProductFilter.Feature48Ports,\n ProductFilter.FeaturePoeOut,\n ProductFilter.Feature1gSfp,\n ProductFilter.Feature10gSfpPlus,\n ProductFilter.FeaturePowerRedundancy,\n ProductFilter.FeatureWifiReady,\n ProductFilter.Feature10Gbe,\n ],\n },\n {\n id: FilterId.UispAccessoriesFeatures,\n type: FilterType.Checkbox,\n items: [\n ProductFilter.FeaturePrecisionKits,\n ProductFilter.FeatureMounts,\n ProductFilter.FeaturePoeInjectors,\n ProductFilter.FeaturePoeConverters,\n ProductFilter.FeatureSurgeProtect,\n ProductFilter.FeaturePoeSwitch,\n ProductFilter.FeaturePowerSolutions,\n ProductFilter.FeatureRfShielding,\n ProductFilter.FeatureCabling,\n ProductFilter.FeatureMultiplexer,\n ProductFilter.FeatureBandDuplexer,\n ProductFilter.FeatureRadioModules,\n ],\n },\n {\n id: FilterId.EtherLighting,\n type: FilterType.Checkbox,\n items: [ProductFilter.FeatureEtherLighting],\n },\n {\n id: FilterId.Other,\n type: FilterType.Checkbox,\n items: [ProductFilter.UICare, ProductFilter.InStock],\n },\n];\n\n/**\n * @deprecated Storefront now implements as of PR-1371 implements own naming lookup\n * @see https://github.com/ubiquiti/store.storefront/pull/1371/files\n */\nexport enum FilterName {\n \"10-gbe\" = \"10 GbE\",\n \"10g-sfp-plus\" = \"10G SFP+\",\n \"11-ghz\" = \"11 GHz\",\n \"1g-sfp\" = \"1G SFP\",\n \"2-4-ghz\" = \"2.4 GHz\",\n \"24-ghz\" = \"24 GHz\",\n \"24-ports\" = \"24 Ports\",\n \"25-gbe\" = \"2.5 GbE\",\n \"25g-sfp28\" = \"25G SFP28\",\n \"100g-qsfp28\" = \"100G QSFP28\",\n \"2k\" = \"2K\",\n \"3-ghz\" = \"3 GHz\",\n \"48-ports\" = \"48 Ports\",\n \"4k\" = \"4K\",\n \"5-ghz\" = \"5 GHz\",\n \"60-ghz\" = \"60 GHz\",\n \"802-11-ac\" = \"802.11ac\",\n \"802-11-ax\" = \"802.11ax\",\n \"802-11-n\" = \"802.11n\",\n \"ai-detection\" = \"AI Detections\",\n \"antennas\" = \"Antennas\",\n \"band-dplexer\" = \"Band Duplexer\",\n \"basestation\" = \"BaseStation\",\n \"cabling\" = \"Cabling\",\n \"camera-integrated\" = \"Camera Integrated\",\n \"cpe\" = \"CPE\",\n \"desktop-stands\" = \"Desktop Stands\",\n \"enhanced-ai\" = \"Enhanced AI Detection\",\n \"enhanced-noise-resilience\" = \"Enhanced Noise Resilience\",\n \"enhancers\" = \"Enhancers\",\n \"ethernet-and-dacs\" = \"Ethernet & DACs\",\n \"external-antenna-option\" = \"External Antenna Support\",\n \"feedhorn\" = \"Feedhorns\",\n \"gpon-compatible\" = \"GPON Compatible\",\n \"hd\" = \"HD\",\n \"hi-performance-ptp\" = \"Hi-Performance PtP\",\n \"in-stock\" = \"In Stock\",\n \"ui-care\" = \"UI Care\",\n \"less24-ports\" = \"<24 Ports\",\n \"ltu\" = \"LTU\",\n \"modules\" = \"Modules\",\n \"mounting\" = \"Mounting\",\n \"mounts\" = \"Mounts\",\n \"multiplexer\" = \"Multiplexer\",\n \"n-connector\" = \"N Connector\",\n \"olt\" = \"OLT\",\n \"onu\" = \"ONU\",\n \"optical-zoom\" = \"Optical Zoom\",\n \"outdoor\" = \"Outdoor\",\n \"poe\" = \"PoE\",\n \"poe-adapters\" = \"PoE Adapters\",\n \"poe-converters\" = \"PoE Converters\",\n \"poe-injectors\" = \"PoE Injectors\",\n \"poe-out\" = \"PoE Output\",\n \"poe-plus\" = \"PoE+\",\n \"poe-plus-plus\" = \"PoE++\",\n \"poe-switch\" = \"PoE Switch\",\n \"power\" = \"Power\",\n \"power-accessories\" = \"Power Accessories\",\n \"power-redundancy\" = \"Power Redundancy\",\n \"power-solutions\" = \"Power Solutions\",\n \"precision-kits\" = \"Precision Kits\",\n \"ptmp\" = \"PtMP\",\n \"ptp\" = \"PtP\",\n \"rackmount\" = \"RackMount\",\n \"radio-modules\" = \"Radio Modules\",\n \"rf-shielding\" = \"RF Shielding\",\n \"rp-sma\" = \"RP-SMA\",\n \"sfp-modules-and-fiber\" = \"SFP Modules & Fiber\",\n \"shielded\" = \"Shielded\",\n \"skins\" = \"Skins\",\n \"storage\" = \"Storage\",\n \"subscription-unlocked\" = \"Subscription Unlocked\",\n \"surge-protect\" = \"Surge Protection\",\n \"weatherproof-outdoor-exposed\" = \"Outdoor Exposed\",\n \"weatherresistant-outdoor-covered\" = \"Outdoor Covered\",\n \"wifi-6-ghz\" = \"6 GHz Radio\",\n \"wifi-7\" = \"WiFi 7\",\n \"wifi-6\" = \"WiFi 6\",\n \"wifi-6e-6-ghz\" = \"WiFi 6E (6 GHz Radio)\",\n \"wifi-integrated\" = \"WiFi Integrated\",\n \"wifi-ready\" = \"WiFi Ready\",\n \"xg-pon-compatible\" = \"XG-PON Compatible\",\n \"xgs-pon-compatible\" = \"XGS-PON Compatible\",\n \"etherlighting\" = \"Etherlighting™\",\n}\n"],"names":["FilterType","ProductFilter","FILTERS_MAPPING","id","FilterId","ConnectionType","type","items","WifiConnectionType","SupportedSpeeds","PortCount","PoeSupport","OutdoorSupport","Resolution","OutdoorRating","AdditionalFeatures","DoorAccessFeatures","PhoneSystemFeatures","AccessoriesFeatures","WirelessFeatures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YAAA,eAAkB,CAAA,GAAA,eAAA;EAClBA,YAAA,cAAiB,CAAA,GAAA,cAAA;EACjBA,YAAA,QAAW,CAAA,GAAA,QAAA;EACXA,YAAA,uBAA0B,CAAA,GAAA,qBAAA;EAC1BA,YAAA,UAAa,CAAA,GAAA,UAAA;EACbA,YAAA,OAAU,CAAA,GAAA,OAAA;EACVA,YAAA,SAAY,CAAA,GAAA,SAAA;EACZA,YAAA,uBAA0B,CAAA,GAAA,uBAAA;EAC1BA,YAAA,eAAkB,CAAA,GAAA,kBAAA;EAClBA,YAAA,8BAAiC,CAAA,GAAA,iBAAA;EACjCA,YAAA,kCAAqC,CAAA,GAAA,iBAAA;EACrCA,YAAA,YAAe,CAAA,GAAA,aAAA;EACfA,YAAA,QAAW,CAAA,GAAA,QAAA;EACXA,YAAA,QAAW,CAAA,GAAA,QAAA;EACXA,YAAA,eAAkB,CAAA,GAAA,uBAAA;EAClBA,YAAA,iBAAoB,CAAA,GAAA,iBAAA;EACpBA,YAAA,YAAe,CAAA,GAAA,YAAA;EACfA,YAAA,mBAAsB,CAAA,GAAA,mBAAA;EACtBA,YAAA,oBAAuB,CAAA,GAAA,oBAAA;EACvBA,YAAA,eAAkB,CAAA,GAAA,qBAAA;EArFRA,OAAAA,WAAAA;AAAA,CAAA,EAAAA,UAAA,IAAA,CAAA,CAAA,CAAA;"}
|
|
1
|
+
{"version":3,"file":"mapping.mjs","sources":["../../../src/constants/proStoreFilters/mapping.ts"],"sourcesContent":["import { FilterId } from \"../proStoreCategories\";\n\nexport enum FilterType {\n Radio = \"radio\",\n Checkbox = \"checkbox\",\n}\n\nexport type FilterGroup = {\n id: FilterId;\n label?: string;\n type: FilterType;\n items: ProductFilter[];\n};\n\nexport enum ProductFilter {\n // Static filters\n InStock = \"in-stock\",\n UICare = \"ui-care\",\n\n // Features\n /**\n * These have matching tags starting with \"feature:\"\n *\n * @example feature:external-antenna-option\n */\n FeaturePoe = \"poe\",\n FeatureWifiIntegrated = \"wifi-integrated\",\n FeatureWifi6e6Ghz = \"wifi-6e-6-ghz\",\n FeatureWifi6 = \"wifi-6\",\n FeatureWifi7 = \"wifi-7\",\n FeatureWifi6Ghz = \"wifi-6-ghz\",\n FeatureExternalAntennaOption = \"external-antenna-option\",\n FeatureLess24Ports = \"less24-ports\",\n Feature24Ports = \"24-ports\",\n Feature48Ports = \"48-ports\",\n Feature25Gbe = \"25-gbe\",\n Feature10Gbe = \"10-gbe\",\n FeaturePoePlus = \"poe-plus\",\n FeaturePoePlusPlus = \"poe-plus-plus\",\n Feature10gSfpPlus = \"10g-sfp-plus\",\n Feature25gSfp28 = \"25g-sfp28\",\n Feature100gQsfp28 = \"100g-qsfp28\",\n FeatureOutdoor = \"outdoor\",\n FeatureHD = \"hd\",\n Feature2k = \"2k\",\n Feature4k = \"4k\",\n FeatureAiDetection = \"ai-detection\",\n FeatureEnhancedAi = \"enhanced-ai\",\n FeatureOpticalZoom = \"optical-zoom\",\n FeatureWeatherproofOutdoorExposed = \"weatherproof-outdoor-exposed\",\n FeatureWeatherresistantOutdoorCovered = \"weatherresistant-outdoor-covered\",\n FeatureCameraIntegrated = \"camera-integrated\",\n FeatureSubscriptionUnlocked = \"subscription-unlocked\",\n FeatureEthernetAndDacs = \"ethernet-and-dacs\",\n FeatureSfpModulesAndFiber = \"sfp-modules-and-fiber\",\n FeatureRackmount = \"rackmount\",\n FeatureStorage = \"storage\",\n FeatureDesktopStands = \"desktop-stands\",\n FeaturePoeAdapters = \"poe-adapters\",\n FeaturePowerAccessories = \"power-accessories\",\n FeatureMounting = \"mounting\",\n FeatureAntennas = \"antennas\",\n FeatureSkins = \"skins\",\n FeaturePower = \"power\",\n FeatureEnhancers = \"enhancers\",\n Feature60Ghz = \"60-ghz\",\n FeaturePtp = \"ptp\",\n FeaturePtmp = \"ptmp\",\n Feature5Ghz = \"5-ghz\",\n Feature2_4Ghz = \"2-4-ghz\",\n Feature3Ghz = \"3-ghz\",\n Feature11Ghz = \"11-ghz\",\n Feature24Ghz = \"24-ghz\",\n Feature802_11N = \"802-11-n\",\n Feature802_11Ac = \"802-11-ac\",\n Feature802_11Ax = \"802-11-ax\",\n FeatureLtu = \"ltu\",\n FeatureEnhancedNoiseResilience = \"enhanced-noise-resilience\",\n FeatureShielded = \"shielded\",\n FeatureFeedhorn = \"feedhorn\",\n FeatureRpSma = \"rp-sma\",\n FeatureNConnector = \"n-connector\",\n FeatureBasestation = \"basestation\",\n FeatureCpe = \"cpe\",\n FeatureHiPerformancePtp = \"hi-performance-ptp\",\n FeatureOlt = \"olt\",\n FeatureOnu = \"onu\",\n FeatureGponCompatible = \"gpon-compatible\",\n FeatureXgsPonCompatible = \"xgs-pon-compatible\",\n FeatureXgPonCompatible = \"xg-pon-compatible\",\n FeatureWifiReady = \"wifi-ready\",\n FeatureModules = \"modules\",\n FeaturePoeOut = \"poe-out\",\n Feature1gSfp = \"1g-sfp\",\n FeaturePowerRedundancy = \"power-redundancy\",\n FeaturePrecisionKits = \"precision-kits\",\n FeatureMounts = \"mounts\",\n FeaturePoeInjectors = \"poe-injectors\",\n FeaturePoeConverters = \"poe-converters\",\n FeatureSurgeProtect = \"surge-protect\",\n FeaturePoeSwitch = \"poe-switch\",\n FeaturePowerSolutions = \"power-solutions\",\n FeatureRfShielding = \"rf-shielding\",\n FeatureCabling = \"cabling\",\n FeatureMultiplexer = \"multiplexer\",\n // TODO: this seems to have a typo in tag name, left it as is right now\n FeatureBandDuplexer = \"band-dplexer\",\n FeatureRadioModules = \"radio-modules\",\n FeatureEtherLighting = \"etherlighting\",\n}\n\nexport const FILTERS_MAPPING: FilterGroup[] = [\n {\n id: FilterId.ConnectionType,\n type: FilterType.Checkbox,\n items: [ProductFilter.FeaturePoe, ProductFilter.FeatureWifiIntegrated],\n },\n {\n id: FilterId.WifiConnectionType,\n type: FilterType.Checkbox,\n items: [\n ProductFilter.FeatureWifi7,\n ProductFilter.FeatureWifi6e6Ghz,\n ProductFilter.FeatureWifi6,\n ProductFilter.FeatureWifi6Ghz,\n ProductFilter.FeatureExternalAntennaOption,\n ],\n },\n {\n id: FilterId.SupportedSpeeds,\n type: FilterType.Checkbox,\n items: [\n ProductFilter.Feature25Gbe,\n ProductFilter.Feature10Gbe,\n ProductFilter.Feature10gSfpPlus,\n ProductFilter.Feature25gSfp28,\n ProductFilter.Feature100gQsfp28,\n ],\n },\n {\n id: FilterId.PortCount,\n type: FilterType.Checkbox,\n items: [\n ProductFilter.FeatureLess24Ports,\n ProductFilter.Feature24Ports,\n ProductFilter.Feature48Ports,\n ],\n },\n {\n id: FilterId.PoeSupport,\n type: FilterType.Checkbox,\n items: [ProductFilter.FeaturePoePlus, ProductFilter.FeaturePoePlusPlus],\n },\n {\n id: FilterId.OutdoorSupport,\n type: FilterType.Checkbox,\n items: [ProductFilter.FeatureOutdoor],\n },\n {\n id: FilterId.Resolution,\n type: FilterType.Radio,\n items: [\n ProductFilter.FeatureHD,\n ProductFilter.Feature2k,\n ProductFilter.Feature4k,\n ],\n },\n {\n id: FilterId.OutdoorRating,\n type: FilterType.Checkbox,\n items: [\n ProductFilter.FeatureWeatherproofOutdoorExposed,\n ProductFilter.FeatureWeatherresistantOutdoorCovered,\n ],\n },\n {\n id: FilterId.AdditionalFeatures,\n type: FilterType.Checkbox,\n items: [\n ProductFilter.FeatureAiDetection,\n ProductFilter.FeatureEnhancedAi,\n ProductFilter.FeatureOpticalZoom,\n ProductFilter.FeatureWifiIntegrated,\n ],\n },\n {\n id: FilterId.DoorAccessFeatures,\n type: FilterType.Checkbox,\n items: [\n ProductFilter.FeatureCameraIntegrated,\n ProductFilter.FeatureOutdoor,\n ],\n },\n {\n id: FilterId.PhoneSystemFeatures,\n type: FilterType.Checkbox,\n items: [ProductFilter.FeatureSubscriptionUnlocked],\n },\n {\n id: FilterId.AccessoriesFeatures,\n type: FilterType.Radio,\n items: [\n ProductFilter.FeatureEthernetAndDacs,\n ProductFilter.FeatureSfpModulesAndFiber,\n ProductFilter.FeatureRackmount,\n ProductFilter.FeatureStorage,\n ProductFilter.FeatureDesktopStands,\n ProductFilter.FeaturePoeAdapters,\n ProductFilter.FeaturePowerAccessories,\n ProductFilter.FeaturePower,\n ProductFilter.FeatureMounting,\n ProductFilter.FeatureAntennas,\n ProductFilter.FeatureEnhancers,\n ProductFilter.FeatureSkins,\n ],\n },\n {\n id: FilterId[\"60GhWirelessFeatures\"],\n type: FilterType.Checkbox,\n items: [\n ProductFilter.Feature60Ghz,\n ProductFilter.FeaturePtp,\n ProductFilter.FeaturePtmp,\n ],\n },\n {\n id: FilterId.WirelessFeatures,\n type: FilterType.Checkbox,\n items: [\n ProductFilter.Feature5Ghz,\n ProductFilter.Feature2_4Ghz,\n ProductFilter.Feature3Ghz,\n ProductFilter.Feature11Ghz,\n ProductFilter.Feature24Ghz,\n ProductFilter.Feature802_11N,\n ProductFilter.Feature802_11Ac,\n ProductFilter.Feature802_11Ax,\n ProductFilter.FeatureLtu,\n ProductFilter.FeatureEnhancedNoiseResilience,\n ProductFilter.FeatureShielded,\n ProductFilter.FeatureFeedhorn,\n ProductFilter.FeatureAntennas,\n ProductFilter.FeatureRpSma,\n ProductFilter.FeatureNConnector,\n ProductFilter.FeatureBasestation,\n ProductFilter.FeatureCpe,\n ProductFilter.FeatureHiPerformancePtp,\n ],\n },\n {\n id: FilterId.FiberFeatures,\n type: FilterType.Checkbox,\n items: [\n ProductFilter.FeatureOlt,\n ProductFilter.FeatureOnu,\n ProductFilter.FeatureGponCompatible,\n ProductFilter.FeatureXgsPonCompatible,\n ProductFilter.FeatureXgPonCompatible,\n ProductFilter.FeatureWifiReady,\n ProductFilter.FeatureModules,\n ],\n },\n {\n id: FilterId.WiredFeatures,\n type: FilterType.Checkbox,\n items: [\n ProductFilter.FeatureLess24Ports,\n ProductFilter.Feature24Ports,\n ProductFilter.Feature48Ports,\n ProductFilter.FeaturePoeOut,\n ProductFilter.Feature1gSfp,\n ProductFilter.Feature10gSfpPlus,\n ProductFilter.FeaturePowerRedundancy,\n ProductFilter.FeatureWifiReady,\n ProductFilter.Feature10Gbe,\n ],\n },\n {\n id: FilterId.UispAccessoriesFeatures,\n type: FilterType.Checkbox,\n items: [\n ProductFilter.FeaturePrecisionKits,\n ProductFilter.FeatureMounts,\n ProductFilter.FeaturePoeInjectors,\n ProductFilter.FeaturePoeConverters,\n ProductFilter.FeatureSurgeProtect,\n ProductFilter.FeaturePoeSwitch,\n ProductFilter.FeaturePowerSolutions,\n ProductFilter.FeatureRfShielding,\n ProductFilter.FeatureCabling,\n ProductFilter.FeatureMultiplexer,\n ProductFilter.FeatureBandDuplexer,\n ProductFilter.FeatureRadioModules,\n ],\n },\n {\n id: FilterId.EtherLighting,\n type: FilterType.Checkbox,\n items: [ProductFilter.FeatureEtherLighting],\n },\n {\n id: FilterId.Other,\n type: FilterType.Checkbox,\n items: [ProductFilter.UICare, ProductFilter.InStock],\n },\n];\n\n/**\n * @deprecated Storefront now implements as of PR-1371 implements own naming lookup\n * @see https://github.com/ubiquiti/store.storefront/pull/1371/files\n */\nexport enum FilterName {\n \"10-gbe\" = \"10 GbE\",\n \"10g-sfp-plus\" = \"10G SFP+\",\n \"11-ghz\" = \"11 GHz\",\n \"1g-sfp\" = \"1G SFP\",\n \"2-4-ghz\" = \"2.4 GHz\",\n \"24-ghz\" = \"24 GHz\",\n \"24-ports\" = \"24 Ports\",\n \"25-gbe\" = \"2.5 GbE\",\n \"25g-sfp28\" = \"25G SFP28\",\n \"100g-qsfp28\" = \"100G QSFP28\",\n \"2k\" = \"2K\",\n \"3-ghz\" = \"3 GHz\",\n \"48-ports\" = \"48 Ports\",\n \"4k\" = \"4K\",\n \"5-ghz\" = \"5 GHz\",\n \"60-ghz\" = \"60 GHz\",\n \"802-11-ac\" = \"802.11ac\",\n \"802-11-ax\" = \"802.11ax\",\n \"802-11-n\" = \"802.11n\",\n \"ai-detection\" = \"AI Detections\",\n \"antennas\" = \"Antennas\",\n \"band-dplexer\" = \"Band Duplexer\",\n \"basestation\" = \"BaseStation\",\n \"cabling\" = \"Cabling\",\n \"camera-integrated\" = \"Camera Integrated\",\n \"cpe\" = \"CPE\",\n \"desktop-stands\" = \"Desktop Stands\",\n \"enhanced-ai\" = \"Enhanced AI Detection\",\n \"enhanced-noise-resilience\" = \"Enhanced Noise Resilience\",\n \"enhancers\" = \"Enhancers\",\n \"ethernet-and-dacs\" = \"Ethernet & DACs\",\n \"external-antenna-option\" = \"External Antenna Support\",\n \"feedhorn\" = \"Feedhorns\",\n \"gpon-compatible\" = \"GPON Compatible\",\n \"hd\" = \"HD\",\n \"hi-performance-ptp\" = \"Hi-Performance PtP\",\n \"in-stock\" = \"In Stock\",\n \"ui-care\" = \"UI Care\",\n \"less24-ports\" = \"<24 Ports\",\n \"ltu\" = \"LTU\",\n \"modules\" = \"Modules\",\n \"mounting\" = \"Mounting\",\n \"mounts\" = \"Mounts\",\n \"multiplexer\" = \"Multiplexer\",\n \"n-connector\" = \"N Connector\",\n \"olt\" = \"OLT\",\n \"onu\" = \"ONU\",\n \"optical-zoom\" = \"Optical Zoom\",\n \"outdoor\" = \"Outdoor\",\n \"poe\" = \"PoE\",\n \"poe-adapters\" = \"PoE Adapters\",\n \"poe-converters\" = \"PoE Converters\",\n \"poe-injectors\" = \"PoE Injectors\",\n \"poe-out\" = \"PoE Output\",\n \"poe-plus\" = \"PoE+\",\n \"poe-plus-plus\" = \"PoE++\",\n \"poe-switch\" = \"PoE Switch\",\n \"power\" = \"Power\",\n \"power-accessories\" = \"Power Accessories\",\n \"power-redundancy\" = \"Power Redundancy\",\n \"power-solutions\" = \"Power Solutions\",\n \"precision-kits\" = \"Precision Kits\",\n \"ptmp\" = \"PtMP\",\n \"ptp\" = \"PtP\",\n \"rackmount\" = \"RackMount\",\n \"radio-modules\" = \"Radio Modules\",\n \"rf-shielding\" = \"RF Shielding\",\n \"rp-sma\" = \"RP-SMA\",\n \"sfp-modules-and-fiber\" = \"SFP Modules & Fiber\",\n \"shielded\" = \"Shielded\",\n \"skins\" = \"Skins\",\n \"storage\" = \"Storage\",\n \"subscription-unlocked\" = \"Subscription Unlocked\",\n \"surge-protect\" = \"Surge Protection\",\n \"weatherproof-outdoor-exposed\" = \"Outdoor Exposed\",\n \"weatherresistant-outdoor-covered\" = \"Outdoor Covered\",\n \"wifi-6-ghz\" = \"6 GHz Radio\",\n \"wifi-7\" = \"WiFi 7\",\n \"wifi-6\" = \"WiFi 6\",\n \"wifi-6e-6-ghz\" = \"WiFi 6E (6 GHz Radio)\",\n \"wifi-integrated\" = \"WiFi Integrated\",\n \"wifi-ready\" = \"WiFi Ready\",\n \"xg-pon-compatible\" = \"XG-PON Compatible\",\n \"xgs-pon-compatible\" = \"XGS-PON Compatible\",\n \"etherlighting\" = \"Etherlighting™\",\n \"performance-client-devices\" = \"Performance Client Devices\",\n \"throughput-rate\" = \"Throughput Rate\",\n \"unifi-devices\" = \"UniFi Devices\",\n \"coverage-degree\" = \"Coverage Degree\",\n \"integrated-storage\" = \"Integrated Storage\",\n \"redundant-power\" = \"Redundant Power\",\n \"spectral-radio\" = \"Spectral Radio\",\n \"4-stream\" = \"4 Stream\",\n \"6-stream\" = \"6 Stream\",\n \"8-stream\" = \"8 Stream\",\n \"10-stream\" = \"10 Stream\",\n \"12-stream\" = \"12 Stream\",\n \"pre-installed-storage\" = \"Pre-Installed Storage\",\n \"keypad\" = \"Keypad\",\n \"face-id\" = \"Face ID\",\n \"touchpass\" = \"TouchPass\",\n}\n"],"names":["FilterType","ProductFilter","FILTERS_MAPPING","id","FilterId","ConnectionType","type","items","WifiConnectionType","SupportedSpeeds","PortCount","PoeSupport","OutdoorSupport","Resolution","OutdoorRating","AdditionalFeatures","DoorAccessFeatures","PhoneSystemFeatures","AccessoriesFeatures","WirelessFeatures","FiberFeatures","WiredFeatures","UispAccessoriesFeatures","EtherLighting","Other","FilterName"],"mappings":";;;AAEY,IAAAA,UAAA,GAAA,gBAAAA,WAAL,IAAA;EACLA,YAAA,OAAQ,CAAA,GAAA,OAAA;EACRA,YAAA,UAAW,CAAA,GAAA,UAA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AA,EAAAA,UAAA,IAAA,CAAA,CAAA,CAAA;"}
|
package/lib/helpers/index.d.ts
CHANGED
package/lib/helpers/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var proStoreCategories = require('./proStoreCategories.js');
|
|
4
|
+
var product = require('./product.js');
|
|
4
5
|
"use strict";
|
|
5
6
|
exports.getCategoriesBySubcategory = proStoreCategories.getCategoriesBySubcategory;
|
|
6
7
|
exports.getLocalizedCategories = proStoreCategories.getLocalizedCategories;
|
|
@@ -10,4 +11,14 @@ exports.getSubCategoryIdByCollectionSlug = proStoreCategories.getSubCategoryIdBy
|
|
|
10
11
|
exports.isValidSubCategory = proStoreCategories.isValidSubCategory;
|
|
11
12
|
exports.parseCategories = proStoreCategories.parseCategories;
|
|
12
13
|
exports.useTranslatedCategories = proStoreCategories.useTranslatedCategories;
|
|
14
|
+
exports.COLLECTION_SECTION_OTHER_ID = product.COLLECTION_SECTION_OTHER_ID;
|
|
15
|
+
exports.HDDProductSlugs = product.HDDProductSlugs;
|
|
16
|
+
exports.MagicCollectionTags = product.MagicCollectionTags;
|
|
17
|
+
exports.ProductOptions = product.ProductOptions;
|
|
18
|
+
exports.createSectionHierarchy = product.createSectionHierarchy;
|
|
19
|
+
exports.getProStoreCategory = product.getProStoreCategory;
|
|
20
|
+
exports.getProductGroups = product.getProductGroups;
|
|
21
|
+
exports.getStoreProducts = product.getStoreProducts;
|
|
22
|
+
exports.isNonNullish = product.isNonNullish;
|
|
23
|
+
exports.removeExcludedProducts = product.removeExcludedProducts;
|
|
13
24
|
//# sourceMappingURL=index.js.map
|
package/lib/helpers/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/helpers/index.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { getCategoriesBySubcategory, getLocalizedCategories, getProductLineByCategory, getProductLineBySubcategory, getSubCategoryIdByCollectionSlug, isValidSubCategory, parseCategories, useTranslatedCategories } from './proStoreCategories.mjs';
|
|
2
|
+
export { COLLECTION_SECTION_OTHER_ID, HDDProductSlugs, MagicCollectionTags, ProductOptions, createSectionHierarchy, getProStoreCategory, getProductGroups, getStoreProducts, isNonNullish, removeExcludedProducts } from './product.mjs';
|
|
2
3
|
"use strict";
|
|
3
4
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type { ParsedCategoryItem } from "../constants/proStoreCategories";
|
|
2
|
+
import type { CollectionSection, MappedProductSection, Nullish, ProductTagFragment, Section, StorefrontOption, StorefrontProduct, StoreId } from "../types";
|
|
3
|
+
export declare const isNonNullish: <T>(entry: T | null | undefined) => entry is T;
|
|
4
|
+
/**
|
|
5
|
+
* Removes products that have tag starting with `EXCLUDE_PRODUCT_FROM_STORE_GRID_TAG_PREFIX`
|
|
6
|
+
* and ends with `storeId`, e.g. `"exclude-from-store-grid:us`
|
|
7
|
+
*
|
|
8
|
+
* @warning Use this function only on grid and breadcrumbs products
|
|
9
|
+
*/
|
|
10
|
+
export declare const removeExcludedProducts: <T extends {
|
|
11
|
+
tags: ProductTagFragment[];
|
|
12
|
+
}>(products: T[], storeId: StoreId) => T[];
|
|
13
|
+
export declare enum HDDProductSlugs {
|
|
14
|
+
HDD_1TB = "uacc-hdd-s-1tb",
|
|
15
|
+
HDD_8TB_Enterprise = "uacc-hdd-e-8tb",
|
|
16
|
+
HDD_16TB_Enterprise = "uacc-hdd-e-16tb"
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Recursively create section hierarchy
|
|
20
|
+
*/
|
|
21
|
+
export declare const createSectionHierarchy: (sections: CollectionSection[], level?: number) => Section[];
|
|
22
|
+
export declare enum MagicCollectionTags {
|
|
23
|
+
/**
|
|
24
|
+
* Used to determine if collection should be shown in an accessory
|
|
25
|
+
* layout style where sections are placed inside variant cards
|
|
26
|
+
*/
|
|
27
|
+
LayoutAccessories = "layout-accessories",
|
|
28
|
+
/**
|
|
29
|
+
* Used to determine if collection is pro-store specific and should
|
|
30
|
+
* be redirected to pro-store's appropriate category
|
|
31
|
+
*/
|
|
32
|
+
ProStore = "pro-store",
|
|
33
|
+
/**
|
|
34
|
+
* Used to disable length options (disable product splitting by "length")
|
|
35
|
+
*/
|
|
36
|
+
DisableLengthOptions = "disable-length-options",
|
|
37
|
+
/**
|
|
38
|
+
* Used to disable speed options (disable product splitting by "speed")
|
|
39
|
+
*/
|
|
40
|
+
DisableSpeedOptions = "disable-speed-options"
|
|
41
|
+
}
|
|
42
|
+
export declare enum ProductOptions {
|
|
43
|
+
Length = "length",
|
|
44
|
+
Speed = "speed",
|
|
45
|
+
Color = "color"
|
|
46
|
+
}
|
|
47
|
+
export declare const COLLECTION_SECTION_OTHER_ID = "other";
|
|
48
|
+
/**
|
|
49
|
+
* Create product groups
|
|
50
|
+
*/
|
|
51
|
+
export declare const getProductGroups: <T extends StorefrontProduct & {
|
|
52
|
+
options: StorefrontOption[];
|
|
53
|
+
}>(products?: T[], sectionHierarchy?: Nullish<Section[]>, tags?: Array<{
|
|
54
|
+
id: string;
|
|
55
|
+
name: string;
|
|
56
|
+
}>) => MappedProductSection<T>[] | undefined;
|
|
57
|
+
export declare const getProStoreCategory: ({ queryCategory, product, ignoreQuery, }: {
|
|
58
|
+
queryCategory?: string;
|
|
59
|
+
product: Pick<StorefrontProduct, "collectionSlug" | "organizationalCollectionSlug" | "proCollectionSlug">;
|
|
60
|
+
ignoreQuery?: boolean;
|
|
61
|
+
}) => string | null;
|
|
62
|
+
type StoreProductsData = ({
|
|
63
|
+
category: {
|
|
64
|
+
id: string;
|
|
65
|
+
label: string | null;
|
|
66
|
+
} | undefined;
|
|
67
|
+
} & {
|
|
68
|
+
products: StorefrontProduct[];
|
|
69
|
+
}) | {
|
|
70
|
+
productGroups: MappedProductSection<StorefrontProduct>[];
|
|
71
|
+
};
|
|
72
|
+
export declare const getStoreProducts: ({ storeId, queryCategory, currentProduct, collections, allCategoryItems, }: {
|
|
73
|
+
storeId: StoreId;
|
|
74
|
+
queryCategory: string | undefined;
|
|
75
|
+
currentProduct: Pick<StorefrontProduct, "id" | "slug" | "collectionSlug" | "organizationalCollectionSlug" | "proCollectionSlug">;
|
|
76
|
+
collections: Array<{
|
|
77
|
+
slug: string;
|
|
78
|
+
sections: Array<{
|
|
79
|
+
id: string;
|
|
80
|
+
title: string;
|
|
81
|
+
productTags: Array<string>;
|
|
82
|
+
}>;
|
|
83
|
+
products: Array<Pick<StorefrontProduct, "id" | "slug" | "tags" | "variants" | "options" | "title" | "status" | "minDisplayPrice">>;
|
|
84
|
+
}>;
|
|
85
|
+
allCategoryItems: ParsedCategoryItem[];
|
|
86
|
+
}) => StoreProductsData;
|
|
87
|
+
export {};
|
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var lodashEs = require('lodash-es');
|
|
4
|
+
require('../constants/proStoreCategories/index.js');
|
|
5
|
+
require('../types/index.js');
|
|
6
|
+
var array = require('../utils/array.js');
|
|
7
|
+
var productSort = require('../utils/productSort.js');
|
|
8
|
+
var proStoreCategories = require('./proStoreCategories.js');
|
|
9
|
+
var unifi = require('../constants/proStoreCategories/mapping/unifi.js');
|
|
10
|
+
var uisp = require('../constants/proStoreCategories/mapping/uisp.js');
|
|
11
|
+
var product = require('../types/product.js');
|
|
12
|
+
"use strict";
|
|
13
|
+
const isNonNullish = entry => entry !== null && entry !== void 0;
|
|
14
|
+
const EXCLUDE_PRODUCT_FROM_STORE_GRID_TAG_PREFIX = "exclude-from-store-grid:";
|
|
15
|
+
const removeExcludedProducts = (products, storeId) => {
|
|
16
|
+
const excludeTag = `${EXCLUDE_PRODUCT_FROM_STORE_GRID_TAG_PREFIX}${storeId}`.toLowerCase();
|
|
17
|
+
return products.filter(product => {
|
|
18
|
+
return !product.tags.some(tag => tag.name.toLowerCase() === excludeTag);
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
const isAccessoryCategoryItem = categoryItem => {
|
|
22
|
+
return !!categoryItem && [unifi.UniFiCategoryId.Accessories, uisp.UISPCategoryId.AccessoryTech].includes(
|
|
23
|
+
// TODO: Check why this TS error appears
|
|
24
|
+
// @ts-expect-error: Unreachable code error
|
|
25
|
+
categoryItem.id);
|
|
26
|
+
};
|
|
27
|
+
var HDDProductSlugs = /* @__PURE__ */(HDDProductSlugs2 => {
|
|
28
|
+
HDDProductSlugs2["HDD_1TB"] = "uacc-hdd-s-1tb";
|
|
29
|
+
HDDProductSlugs2["HDD_8TB_Enterprise"] = "uacc-hdd-e-8tb";
|
|
30
|
+
HDDProductSlugs2["HDD_16TB_Enterprise"] = "uacc-hdd-e-16tb";
|
|
31
|
+
return HDDProductSlugs2;
|
|
32
|
+
})(HDDProductSlugs || {});
|
|
33
|
+
const isAllowedAccessoryCategoryProduct = ({
|
|
34
|
+
slug
|
|
35
|
+
}) => {
|
|
36
|
+
const allowedAccessoryProductSlugs = ["u-lte", "u-lte-backup-pro", "uacc-hdd-s-1tb" /* HDD_1TB */, "uacc-hdd-e-8tb" /* HDD_8TB_Enterprise */, "uacc-hdd-e-16tb" /* HDD_16TB_Enterprise */];
|
|
37
|
+
return allowedAccessoryProductSlugs.includes(slug);
|
|
38
|
+
};
|
|
39
|
+
const isAccessoryCategorySubItem = (categorySubItem, allCategoryItems) => {
|
|
40
|
+
const categoryItem = allCategoryItems.find(item => item.items?.some(subItem => subItem.id === categorySubItem.id));
|
|
41
|
+
return isAccessoryCategoryItem(categoryItem);
|
|
42
|
+
};
|
|
43
|
+
const createSectionHierarchy = (sections, level = 1) => {
|
|
44
|
+
const currentLevelSections = sections.filter(section => section.productTags.length === level);
|
|
45
|
+
if (!currentLevelSections.length) {
|
|
46
|
+
return [];
|
|
47
|
+
}
|
|
48
|
+
return currentLevelSections.map(section => ({
|
|
49
|
+
...section,
|
|
50
|
+
items: createSectionHierarchy(sections.filter(nextSection => section.productTags.every(tag => nextSection.productTags.includes(tag))), level + 1)
|
|
51
|
+
}));
|
|
52
|
+
};
|
|
53
|
+
var MagicCollectionTags = /* @__PURE__ */(MagicCollectionTags2 => {
|
|
54
|
+
MagicCollectionTags2["LayoutAccessories"] = "layout-accessories";
|
|
55
|
+
MagicCollectionTags2["ProStore"] = "pro-store";
|
|
56
|
+
MagicCollectionTags2["DisableLengthOptions"] = "disable-length-options";
|
|
57
|
+
MagicCollectionTags2["DisableSpeedOptions"] = "disable-speed-options";
|
|
58
|
+
return MagicCollectionTags2;
|
|
59
|
+
})(MagicCollectionTags || {});
|
|
60
|
+
var ProductOptions = /* @__PURE__ */(ProductOptions2 => {
|
|
61
|
+
ProductOptions2["Length"] = "length";
|
|
62
|
+
ProductOptions2["Speed"] = "speed";
|
|
63
|
+
ProductOptions2["Color"] = "color";
|
|
64
|
+
return ProductOptions2;
|
|
65
|
+
})(ProductOptions || {});
|
|
66
|
+
const formatOptionValueTitleToTag = optionValueTitle => optionValueTitle.toLowerCase().replace(/[,\s]/g, "").replace(".", "-");
|
|
67
|
+
const divideProductByOption = (product, optionTitle) => {
|
|
68
|
+
const option = product.options.find(option2 => option2.slug === optionTitle);
|
|
69
|
+
if (!option) {
|
|
70
|
+
return [product];
|
|
71
|
+
}
|
|
72
|
+
return option.values.map(value => {
|
|
73
|
+
return {
|
|
74
|
+
...product,
|
|
75
|
+
options: product.options.filter(option2 => option2.slug !== optionTitle),
|
|
76
|
+
tags: [...product.tags, {
|
|
77
|
+
id: value.id,
|
|
78
|
+
name: formatOptionValueTitleToTag(value.slug)
|
|
79
|
+
}],
|
|
80
|
+
variants: product.variants.filter(variant => variant.optionValueIds?.includes(value.id))
|
|
81
|
+
};
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
const COLLECTION_SECTION_OTHER_ID = "other";
|
|
85
|
+
const UNIT_FACTORS = {
|
|
86
|
+
m: 1,
|
|
87
|
+
km: 1e3
|
|
88
|
+
};
|
|
89
|
+
const DISTANCE_REGEX = /^\s*(\d+)\s*(m|km)\s*$/;
|
|
90
|
+
const mapProductsToSections = (products, section) => {
|
|
91
|
+
const productsInThisSection = products.filter(product => {
|
|
92
|
+
return section.productTags.every(sectionTag => {
|
|
93
|
+
return product.tags.find(tag => tag.name === sectionTag);
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
if (productsInThisSection.length === 0) {
|
|
97
|
+
return void 0;
|
|
98
|
+
}
|
|
99
|
+
const items = section?.items?.map(item => mapProductsToSections(productsInThisSection, item)).filter(isNonNullish) ?? [];
|
|
100
|
+
const otherProducts = productsInThisSection.filter(product => {
|
|
101
|
+
return !items.some(item => item.products.find(p => p.id === product.id));
|
|
102
|
+
});
|
|
103
|
+
if (otherProducts.length && items.length) {
|
|
104
|
+
items.push({
|
|
105
|
+
id: `${section.id}-${COLLECTION_SECTION_OTHER_ID}`,
|
|
106
|
+
// TODO: Add translation
|
|
107
|
+
title: "Other",
|
|
108
|
+
productTags: section.productTags,
|
|
109
|
+
items: [],
|
|
110
|
+
products: otherProducts
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
return {
|
|
114
|
+
...section,
|
|
115
|
+
items,
|
|
116
|
+
products: productsInThisSection
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
const compareDistanceTitles = (a, b) => {
|
|
120
|
+
const aMatch = a.title.match(DISTANCE_REGEX);
|
|
121
|
+
const bMatch = b.title.match(DISTANCE_REGEX);
|
|
122
|
+
if (!aMatch?.[1] || !aMatch[2] || !bMatch?.[1] || !bMatch[2]) {
|
|
123
|
+
return 0;
|
|
124
|
+
}
|
|
125
|
+
const aValue = parseInt(aMatch[1]) * (UNIT_FACTORS[aMatch[2]] || 0);
|
|
126
|
+
const bValue = parseInt(bMatch[1]) * (UNIT_FACTORS[bMatch[2]] || 0);
|
|
127
|
+
return aValue - bValue;
|
|
128
|
+
};
|
|
129
|
+
const processSectionProductsWithDistanceInOptions = sections => {
|
|
130
|
+
return sections.map(section => ({
|
|
131
|
+
...section,
|
|
132
|
+
items: section.items.map(sec => {
|
|
133
|
+
const section2 = lodashEs.cloneDeep(sec);
|
|
134
|
+
const sectionWithDistanceTag = section2.items.find(section3 => section3.productTags.includes("distance"));
|
|
135
|
+
const sectionsMainProductTag = sectionWithDistanceTag?.productTags.filter(tag => tag !== "distance");
|
|
136
|
+
if (!sectionWithDistanceTag || !sectionsMainProductTag) {
|
|
137
|
+
return section2;
|
|
138
|
+
}
|
|
139
|
+
sectionWithDistanceTag.products.forEach(product => {
|
|
140
|
+
const optionValues = product?.options[0]?.values;
|
|
141
|
+
if (!optionValues?.length) {
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
const formattedOptionValues = optionValues.map(value => ({
|
|
145
|
+
...value,
|
|
146
|
+
titleInTagFormat: formatOptionValueTitleToTag(value.title)
|
|
147
|
+
}));
|
|
148
|
+
formattedOptionValues.forEach(currentValue => {
|
|
149
|
+
const newSecondLevelSectionsTags = [...sectionsMainProductTag, currentValue.titleInTagFormat];
|
|
150
|
+
const alreadyExistingSecondLevelSection = section2.items.findIndex(section3 => array.areEqualArrays(section3.productTags, newSecondLevelSectionsTags));
|
|
151
|
+
const variantToAdd = product.variants.find(variant => variant.optionValueIds?.includes(currentValue.id));
|
|
152
|
+
if (!variantToAdd) {
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
const productToAdd = {
|
|
156
|
+
...product,
|
|
157
|
+
options: product.options.filter(option => option.values.some(value => value.id === currentValue.id)).map(option => ({
|
|
158
|
+
...option,
|
|
159
|
+
values: option.values.filter(value => value.id === currentValue.id)
|
|
160
|
+
})),
|
|
161
|
+
variants: [variantToAdd]
|
|
162
|
+
};
|
|
163
|
+
if (alreadyExistingSecondLevelSection >= 0) {
|
|
164
|
+
section2.items[alreadyExistingSecondLevelSection]?.products.push(productToAdd);
|
|
165
|
+
} else {
|
|
166
|
+
const sectionToAdd = {
|
|
167
|
+
id: currentValue.id,
|
|
168
|
+
// TODO: Maybe so>me different ID would be better
|
|
169
|
+
items: [],
|
|
170
|
+
// FIXME: This is problem!
|
|
171
|
+
products: [productToAdd],
|
|
172
|
+
productTags: newSecondLevelSectionsTags,
|
|
173
|
+
title: currentValue.title
|
|
174
|
+
};
|
|
175
|
+
section2.items.push(sectionToAdd);
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
});
|
|
179
|
+
return {
|
|
180
|
+
...section2,
|
|
181
|
+
items: section2.items.sort(compareDistanceTitles).filter(section3 => !section3.productTags.includes("distance"))
|
|
182
|
+
};
|
|
183
|
+
})
|
|
184
|
+
}));
|
|
185
|
+
};
|
|
186
|
+
const processSectionsWithOutOfStockProducts = section => {
|
|
187
|
+
const isDisabled = section.products.every(product$1 => product$1.variants.every(variant => variant.status !== product.DisplayProductStatus.Available));
|
|
188
|
+
return {
|
|
189
|
+
...section,
|
|
190
|
+
isDisabled,
|
|
191
|
+
items: section.items.map(processSectionsWithOutOfStockProducts)
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
const getProductGroups = (products, sectionHierarchy, tags) => {
|
|
195
|
+
if (!products?.length || !sectionHierarchy) return void 0;
|
|
196
|
+
const processedProducts = products.flatMap(product => {
|
|
197
|
+
const disableLengthOptions = tags?.find(tag => tag.name === "disable-length-options" /* DisableLengthOptions */);
|
|
198
|
+
const lengthOptions = !disableLengthOptions && product?.options?.find(option => option.slug === "length" /* Length */);
|
|
199
|
+
if (lengthOptions && product.options !== void 0) {
|
|
200
|
+
return divideProductByOption(product, "length" /* Length */);
|
|
201
|
+
}
|
|
202
|
+
const disableSpeedOptions = tags?.find(tag => tag.name === "disable-speed-options" /* DisableSpeedOptions */);
|
|
203
|
+
const speedOptions = !disableSpeedOptions && product?.options?.find(option => {
|
|
204
|
+
return option.slug === "speed" /* Speed */;
|
|
205
|
+
});
|
|
206
|
+
if (speedOptions) {
|
|
207
|
+
return divideProductByOption(product, "speed" /* Speed */);
|
|
208
|
+
}
|
|
209
|
+
return [product];
|
|
210
|
+
});
|
|
211
|
+
const mappedProductGroups = sectionHierarchy.map(section => {
|
|
212
|
+
return mapProductsToSections(processedProducts, section);
|
|
213
|
+
}).filter(section => !!section);
|
|
214
|
+
const otherProducts = products.filter(product => {
|
|
215
|
+
return !mappedProductGroups.some(section => {
|
|
216
|
+
return section.products.find(p => p.id === product.id);
|
|
217
|
+
});
|
|
218
|
+
});
|
|
219
|
+
if (otherProducts.length) {
|
|
220
|
+
otherProducts.forEach(product => {
|
|
221
|
+
mappedProductGroups.push({
|
|
222
|
+
id: product.id,
|
|
223
|
+
products: [product],
|
|
224
|
+
title: "",
|
|
225
|
+
items: [],
|
|
226
|
+
productTags: []
|
|
227
|
+
});
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
const processedProductGroups = processSectionProductsWithDistanceInOptions(mappedProductGroups).map(processSectionsWithOutOfStockProducts);
|
|
231
|
+
return processedProductGroups.sort((a, b) => {
|
|
232
|
+
const aFirstProductId = a?.products?.[0]?.id;
|
|
233
|
+
const bFirstProductId = b?.products?.[0]?.id;
|
|
234
|
+
const aFirstProduct = products.findIndex(product => product.id === aFirstProductId);
|
|
235
|
+
const bFirstProduct = products.findIndex(product => product.id === bFirstProductId);
|
|
236
|
+
return aFirstProduct - bFirstProduct;
|
|
237
|
+
});
|
|
238
|
+
};
|
|
239
|
+
const getProStoreCategory = ({
|
|
240
|
+
queryCategory,
|
|
241
|
+
product,
|
|
242
|
+
ignoreQuery
|
|
243
|
+
}) => {
|
|
244
|
+
return (
|
|
245
|
+
/**
|
|
246
|
+
* If category specified via the url search/query parameter then use it
|
|
247
|
+
*/
|
|
248
|
+
!ignoreQuery && queryCategory ||
|
|
249
|
+
/**
|
|
250
|
+
* Attempt to find category by it's default collection or fallback to the virtual default collection
|
|
251
|
+
*/
|
|
252
|
+
proStoreCategories.getSubCategoryIdByCollectionSlug(product.collectionSlug) || proStoreCategories.getSubCategoryIdByCollectionSlug(product.organizationalCollectionSlug) ||
|
|
253
|
+
/**
|
|
254
|
+
* If all else fails fallback detecting to category from pro store collection, unlikely but wouldn't hurt to do so
|
|
255
|
+
*/
|
|
256
|
+
proStoreCategories.getSubCategoryIdByCollectionSlug(product.proCollectionSlug)
|
|
257
|
+
);
|
|
258
|
+
};
|
|
259
|
+
const getStoreProducts = ({
|
|
260
|
+
storeId,
|
|
261
|
+
queryCategory,
|
|
262
|
+
currentProduct,
|
|
263
|
+
collections,
|
|
264
|
+
allCategoryItems
|
|
265
|
+
}) => {
|
|
266
|
+
const returnObj = {
|
|
267
|
+
category: void 0,
|
|
268
|
+
products: []
|
|
269
|
+
};
|
|
270
|
+
const category = getProStoreCategory({
|
|
271
|
+
queryCategory,
|
|
272
|
+
product: currentProduct
|
|
273
|
+
});
|
|
274
|
+
const categoryItem = allCategoryItems.find(item => item.items?.some(subItem => subItem.id === category));
|
|
275
|
+
const categorySubItem = categoryItem?.items?.find(subItem => subItem.id === category);
|
|
276
|
+
const categoryId = categorySubItem?.id ?? category;
|
|
277
|
+
if (categoryId) {
|
|
278
|
+
returnObj.category = {
|
|
279
|
+
id: categoryId,
|
|
280
|
+
label: categoryItem?.label ?? null
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
const filteredCollections = collections.map(collection => ({
|
|
284
|
+
...collection,
|
|
285
|
+
products: removeExcludedProducts(collection.products, storeId)
|
|
286
|
+
}));
|
|
287
|
+
if (categoryItem?.hideSubItems) {
|
|
288
|
+
const products = filteredCollections.flatMap(collection => collection.products);
|
|
289
|
+
if (isAccessoryCategoryItem(categoryItem)) {
|
|
290
|
+
returnObj.products = isAllowedAccessoryCategoryProduct(currentProduct) ? products.filter(isAllowedAccessoryCategoryProduct) : [];
|
|
291
|
+
} else {
|
|
292
|
+
returnObj.products = products;
|
|
293
|
+
}
|
|
294
|
+
} else {
|
|
295
|
+
const collection = filteredCollections.find(collection2 => collection2.products.some(el => el.id === currentProduct.id));
|
|
296
|
+
if (!collection) {
|
|
297
|
+
throw new Error("Collection not found");
|
|
298
|
+
}
|
|
299
|
+
const subItems = (categoryItem?.items?.slice(1) ?? allCategoryItems.flatMap(el => el.items?.slice(1))).filter(Boolean);
|
|
300
|
+
const subItem = subItems.find(item => item.collectionSlugs.includes(collection.slug));
|
|
301
|
+
if (subItem && returnObj.category) {
|
|
302
|
+
returnObj.category = {
|
|
303
|
+
id: subItem.id,
|
|
304
|
+
label: subItem.label
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
const subItemCollections = filteredCollections.filter(el => subItem?.collectionSlugs.includes(el.slug));
|
|
308
|
+
const products = subItemCollections.flatMap(el => el.products);
|
|
309
|
+
if (subItem) {
|
|
310
|
+
if (isAccessoryCategorySubItem(subItem, allCategoryItems)) {
|
|
311
|
+
returnObj.products = isAllowedAccessoryCategoryProduct(currentProduct) ? products.filter(isAllowedAccessoryCategoryProduct) : [];
|
|
312
|
+
} else {
|
|
313
|
+
returnObj.products = products;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
const sections = subItemCollections.flatMap(el => el.sections);
|
|
317
|
+
const sectionHierarchy = createSectionHierarchy(sections);
|
|
318
|
+
const productGroups = getProductGroups(products, sectionHierarchy);
|
|
319
|
+
if (productGroups) {
|
|
320
|
+
return {
|
|
321
|
+
category: returnObj.category,
|
|
322
|
+
productGroups: productGroups.sort((a, b) => {
|
|
323
|
+
if (a.products[0] && b.products[0]) {
|
|
324
|
+
return productSort.sortProducts(null, storeId)(a.products[0], b.products[0]);
|
|
325
|
+
}
|
|
326
|
+
return 0;
|
|
327
|
+
})
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
return {
|
|
332
|
+
...returnObj,
|
|
333
|
+
products: returnObj.products.sort(productSort.sortProducts(null, storeId))
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
exports.COLLECTION_SECTION_OTHER_ID = COLLECTION_SECTION_OTHER_ID;
|
|
337
|
+
exports.HDDProductSlugs = HDDProductSlugs;
|
|
338
|
+
exports.MagicCollectionTags = MagicCollectionTags;
|
|
339
|
+
exports.ProductOptions = ProductOptions;
|
|
340
|
+
exports.createSectionHierarchy = createSectionHierarchy;
|
|
341
|
+
exports.getProStoreCategory = getProStoreCategory;
|
|
342
|
+
exports.getProductGroups = getProductGroups;
|
|
343
|
+
exports.getStoreProducts = getStoreProducts;
|
|
344
|
+
exports.isNonNullish = isNonNullish;
|
|
345
|
+
exports.removeExcludedProducts = removeExcludedProducts;
|
|
346
|
+
//# sourceMappingURL=product.js.map
|