@ubnt/store.core 9.29.0-alpha.10 → 9.29.0-alpha.12
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 +9 -0
- package/lib/apis/smartcat.d.ts +16 -6
- package/lib/apis/smartcat.js +17 -29
- package/lib/apis/smartcat.js.map +1 -1
- package/lib/apis/smartcat.mjs +17 -29
- package/lib/apis/smartcat.mjs.map +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/assets/pause.svg +3 -3
- package/lib/assets/pause2.svg +3 -3
- 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/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 +7 -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/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/Switching/{enterprise48PoE.jpg.js → enterpriseCampus24.jpg.js} +2 -2
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus24.jpg.js.map +1 -0
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus24.jpg.mjs +3 -0
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus24.jpg.mjs.map +1 -0
- package/lib/components/ModelCompareV3/assets/Switching/{enterpriseXG24.jpg.js → enterpriseCampus48.jpg.js} +2 -2
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus48.jpg.js.map +1 -0
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus48.jpg.mjs +3 -0
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus48.jpg.mjs.map +1 -0
- package/lib/components/ModelCompareV3/assets/Switching/{enterprise24PoE.jpg.js → enterpriseCampusAggregation.jpg.js} +2 -2
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampusAggregation.jpg.js.map +1 -0
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampusAggregation.jpg.mjs +3 -0
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampusAggregation.jpg.mjs.map +1 -0
- package/lib/components/ModelCompareV3/data/CloudGateways.js +9 -9
- package/lib/components/ModelCompareV3/data/CloudGateways.mjs +6 -6
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js +20 -7
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js.map +1 -1
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs +20 -7
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/aggregation.js +8 -1
- package/lib/components/ModelCompareV3/data/products/aggregation.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/aggregation.mjs +8 -1
- package/lib/components/ModelCompareV3/data/products/aggregation.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/enterpriseAggregation.d.ts +2 -0
- package/lib/components/ModelCompareV3/data/products/{enterpriseXG24.js → enterpriseAggregation.js} +26 -44
- package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.js.map +1 -0
- package/lib/components/ModelCompareV3/data/products/{enterpriseXG24.mjs → enterpriseAggregation.mjs} +26 -44
- package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.mjs.map +1 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24.d.ts +6 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.d.ts +2 -0
- package/lib/components/ModelCompareV3/data/products/{enterprise24PoE.js → enterpriseCampus24PoE.js} +30 -47
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.js.map +1 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs +85 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs.map +1 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48.d.ts +6 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.d.ts +2 -0
- package/lib/components/ModelCompareV3/data/products/{enterprise48PoE.js → enterpriseCampus48PoE.js} +31 -48
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.js.map +1 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs +85 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs.map +1 -0
- package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js +8 -1
- package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs +8 -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 +8 -1
- package/lib/components/ModelCompareV3/data/products/missionCritical.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/missionCritical.mjs +8 -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 +6 -4
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs +6 -4
- 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 +4 -7
- package/lib/components/ModelCompareV3/data/products/udb.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udb.mjs +4 -7
- package/lib/components/ModelCompareV3/data/products/udb.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udbPro.js +3 -5
- package/lib/components/ModelCompareV3/data/products/udbPro.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udbPro.mjs +3 -5
- 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/translations/ar.json.js +34 -39
- package/lib/components/ModelCompareV3/translations/ar.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/ar.json.mjs +34 -39
- package/lib/components/ModelCompareV3/translations/ar.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/de.json.js +33 -38
- package/lib/components/ModelCompareV3/translations/de.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/de.json.mjs +33 -38
- package/lib/components/ModelCompareV3/translations/de.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/el.json.js +34 -39
- package/lib/components/ModelCompareV3/translations/el.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/el.json.mjs +34 -39
- package/lib/components/ModelCompareV3/translations/el.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/en.json.js +16 -36
- package/lib/components/ModelCompareV3/translations/en.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/en.json.mjs +16 -36
- package/lib/components/ModelCompareV3/translations/en.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/es.json.js +33 -38
- package/lib/components/ModelCompareV3/translations/es.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/es.json.mjs +33 -38
- package/lib/components/ModelCompareV3/translations/es.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/fr.json.js +34 -39
- package/lib/components/ModelCompareV3/translations/fr.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/fr.json.mjs +34 -39
- package/lib/components/ModelCompareV3/translations/fr.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/it.json.js +34 -39
- package/lib/components/ModelCompareV3/translations/it.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/it.json.mjs +34 -39
- package/lib/components/ModelCompareV3/translations/it.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/ja.json.js +33 -38
- package/lib/components/ModelCompareV3/translations/ja.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/ja.json.mjs +33 -38
- package/lib/components/ModelCompareV3/translations/ja.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/pt-BR.json.js +33 -38
- package/lib/components/ModelCompareV3/translations/pt-BR.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs +33 -38
- 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 +33 -38
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs +33 -38
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js +33 -38
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs +33 -38
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js +17 -22
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js.map +1 -1
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs +17 -22
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs.map +1 -1
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.d.ts +1 -2
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js +7 -9
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js.map +1 -1
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs +7 -9
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs.map +1 -1
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.types.d.ts +4 -9
- package/lib/components/VideoPlayerNew/VideoPlayer.js +1 -1
- package/lib/components/VideoPlayerNew/VideoPlayer.mjs +1 -1
- package/lib/components/VideoPlayerNew/assets/pause.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/pause.svg.mjs +2 -2
- package/lib/constants/address.d.ts +2 -2
- package/lib/constants/address.js +3 -3
- package/lib/constants/address.js.map +1 -1
- package/lib/constants/address.mjs +3 -3
- package/lib/constants/address.mjs.map +1 -1
- package/lib/constants/icons/options/colors/black.svg.js +5 -5
- package/lib/constants/icons/options/colors/index.js +3 -3
- package/lib/constants/icons/options/styles/black.svg.js +5 -5
- package/lib/constants/icons/options/styles/index.js +3 -3
- package/lib/constants/optionIcons.js +6 -6
- package/lib/constants/optionIcons.mjs +4 -4
- package/lib/constants/proStoreCategories/mapping/index.js +16 -0
- package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.mjs +16 -0
- package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/mapping.d.ts +7 -0
- package/lib/contexts/MenuContext/mapping.js +3 -2
- package/lib/contexts/MenuContext/mapping.js.map +1 -1
- package/lib/contexts/MenuContext/mapping.mjs +3 -2
- package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
- package/lib/utils/money/constants.d.ts +12 -0
- package/lib/utils/money/constants.js +17 -1
- package/lib/utils/money/constants.js.map +1 -1
- package/lib/utils/money/constants.mjs +17 -2
- package/lib/utils/money/constants.mjs.map +1 -1
- package/lib/utils/money/format.js +17 -4
- package/lib/utils/money/format.js.map +1 -1
- package/lib/utils/money/format.mjs +18 -5
- package/lib/utils/money/format.mjs.map +1 -1
- package/lib/utils/money/index.js +1 -0
- package/lib/utils/money/index.js.map +1 -1
- package/lib/utils/money/index.mjs +1 -1
- package/package.json +1 -1
- package/lib/assets/enterprise24PoE.jpg +0 -0
- package/lib/assets/enterprise48PoE.jpg +0 -0
- package/lib/assets/enterpriseXG24.jpg +0 -0
- package/lib/components/ModelCompareV3/assets/Switching/enterprise24PoE.jpg.js.map +0 -1
- package/lib/components/ModelCompareV3/assets/Switching/enterprise24PoE.jpg.mjs +0 -3
- package/lib/components/ModelCompareV3/assets/Switching/enterprise24PoE.jpg.mjs.map +0 -1
- package/lib/components/ModelCompareV3/assets/Switching/enterprise48PoE.jpg.js.map +0 -1
- package/lib/components/ModelCompareV3/assets/Switching/enterprise48PoE.jpg.mjs +0 -3
- package/lib/components/ModelCompareV3/assets/Switching/enterprise48PoE.jpg.mjs.map +0 -1
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseXG24.jpg.js.map +0 -1
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseXG24.jpg.mjs +0 -3
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseXG24.jpg.mjs.map +0 -1
- package/lib/components/ModelCompareV3/data/products/enterprise24PoE.js.map +0 -1
- package/lib/components/ModelCompareV3/data/products/enterprise24PoE.mjs +0 -102
- package/lib/components/ModelCompareV3/data/products/enterprise24PoE.mjs.map +0 -1
- package/lib/components/ModelCompareV3/data/products/enterprise48PoE.js.map +0 -1
- package/lib/components/ModelCompareV3/data/products/enterprise48PoE.mjs +0 -102
- package/lib/components/ModelCompareV3/data/products/enterprise48PoE.mjs.map +0 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseXG24.js.map +0 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseXG24.mjs.map +0 -1
|
@@ -13,48 +13,45 @@ var React__default = /*#__PURE__*/_interopDefault(React);
|
|
|
13
13
|
const ProductTechSpecs = ({
|
|
14
14
|
sections
|
|
15
15
|
}) => {
|
|
16
|
-
console.log(sections);
|
|
17
16
|
const renderFeatureValue = React.useCallback(value => {
|
|
18
17
|
const lines = value.split("\n");
|
|
19
18
|
return /* @__PURE__ */jsxRuntime.jsx(ProductTechSpecs_styles.Cell, {
|
|
20
|
-
$type: "value",
|
|
21
19
|
children: lines.map((line, i) => /* @__PURE__ */jsxRuntime.jsxs(React__default["default"].Fragment, {
|
|
22
20
|
children: [i > 0 && /* @__PURE__ */jsxRuntime.jsx("br", {}), line]
|
|
23
21
|
}, i))
|
|
24
22
|
});
|
|
25
23
|
}, []);
|
|
26
|
-
console.log("sections", sections);
|
|
27
24
|
const parsedSections = React.useMemo(() => {
|
|
28
25
|
return sections.map(section => {
|
|
29
26
|
const {
|
|
30
27
|
withParentId,
|
|
31
28
|
withoutParentId
|
|
32
|
-
} = section.features.reduce((acc,
|
|
33
|
-
if (
|
|
34
|
-
acc.withoutParentId.push(
|
|
29
|
+
} = section.features.reduce((acc, feature) => {
|
|
30
|
+
if (feature.parentId === null) {
|
|
31
|
+
acc.withoutParentId.push(feature);
|
|
35
32
|
} else {
|
|
36
|
-
acc.withParentId.push(
|
|
33
|
+
acc.withParentId.push(feature);
|
|
37
34
|
}
|
|
38
35
|
return acc;
|
|
39
36
|
}, {
|
|
40
37
|
withParentId: [],
|
|
41
38
|
withoutParentId: []
|
|
42
39
|
});
|
|
43
|
-
const features = withoutParentId.map(
|
|
44
|
-
const children = withParentId.filter(
|
|
40
|
+
const features = withoutParentId.map(parentFeature => {
|
|
41
|
+
const children = withParentId.filter(childFeature => childFeature.parentId === parentFeature.id);
|
|
45
42
|
return {
|
|
46
|
-
...
|
|
43
|
+
...parentFeature,
|
|
47
44
|
children
|
|
48
45
|
};
|
|
49
46
|
});
|
|
50
47
|
return {
|
|
51
|
-
id: section.
|
|
52
|
-
label: section.
|
|
48
|
+
id: section.id,
|
|
49
|
+
label: section.label,
|
|
53
50
|
features
|
|
54
51
|
};
|
|
55
52
|
});
|
|
56
53
|
}, [sections]);
|
|
57
|
-
console.log(
|
|
54
|
+
console.log(parsedSections);
|
|
58
55
|
return /* @__PURE__ */jsxRuntime.jsx(ProductTechSpecs_styles.Wrap, {
|
|
59
56
|
children: parsedSections.map((section, i) => /* @__PURE__ */jsxRuntime.jsxs(React__default["default"].Fragment, {
|
|
60
57
|
children: [i > 0 && /* @__PURE__ */jsxRuntime.jsx(ProductTechSpecs_styles.SectionDivider, {}), /* @__PURE__ */jsxRuntime.jsx(ProductTechSpecs_styles.Row, {
|
|
@@ -64,19 +61,17 @@ const ProductTechSpecs = ({
|
|
|
64
61
|
}), section.features.map(feature => /* @__PURE__ */jsxRuntime.jsxs(React__default["default"].Fragment, {
|
|
65
62
|
children: [/* @__PURE__ */jsxRuntime.jsxs(ProductTechSpecs_styles.Row, {
|
|
66
63
|
children: [/* @__PURE__ */jsxRuntime.jsx(ProductTechSpecs_styles.Cell, {
|
|
67
|
-
|
|
68
|
-
children: feature.feature.label
|
|
64
|
+
children: feature.label
|
|
69
65
|
}), feature.value && renderFeatureValue(feature.value)]
|
|
70
|
-
}, feature.
|
|
66
|
+
}, feature.id), feature.children.length > 0 && feature.children.map((childFeature, i2) => /* @__PURE__ */jsxRuntime.jsxs(ProductTechSpecs_styles.Row, {
|
|
71
67
|
children: [/* @__PURE__ */jsxRuntime.jsx(ProductTechSpecs_styles.Tree, {
|
|
72
68
|
$isLast: i2 === feature.children.length - 1
|
|
73
69
|
}), /* @__PURE__ */jsxRuntime.jsx(ProductTechSpecs_styles.Branch, {}), /* @__PURE__ */jsxRuntime.jsx(ProductTechSpecs_styles.Cell, {
|
|
74
|
-
$
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}, feature.feature.id))]
|
|
70
|
+
$isChildRowFirstCell: true,
|
|
71
|
+
children: childFeature.label
|
|
72
|
+
}), childFeature.value && renderFeatureValue(childFeature.value)]
|
|
73
|
+
}, childFeature.id))]
|
|
74
|
+
}, feature.id))]
|
|
80
75
|
}, section.id))
|
|
81
76
|
});
|
|
82
77
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductTechSpecs.js","sources":["../../../src/components/ProductTechSpecsV2/ProductTechSpecs.tsx"],"sourcesContent":["import React, { useCallback, useMemo } from \"react\";\n\nimport * as S from \"./ProductTechSpecs.styles\";\nimport type { ProductTechSpecsProps } from \"./ProductTechSpecs.types\";\n\nexport const ProductTechSpecs = ({\n sections,\n}: ProductTechSpecsProps): JSX.Element => {\n
|
|
1
|
+
{"version":3,"file":"ProductTechSpecs.js","sources":["../../../src/components/ProductTechSpecsV2/ProductTechSpecs.tsx"],"sourcesContent":["import React, { useCallback, useMemo } from \"react\";\n\nimport * as S from \"./ProductTechSpecs.styles\";\nimport type { ProductTechSpecsProps } from \"./ProductTechSpecs.types\";\n\nexport const ProductTechSpecs = ({\n sections,\n}: ProductTechSpecsProps): JSX.Element => {\n /**\n * Break value into lines\n */\n const renderFeatureValue = useCallback((value: string): JSX.Element => {\n const lines = value.split(\"\\n\");\n return (\n <S.Cell>\n {lines.map((line, i) => (\n <React.Fragment key={i}>\n {i > 0 && <br />}\n {line}\n </React.Fragment>\n ))}\n </S.Cell>\n );\n }, []);\n\n const parsedSections = useMemo(() => {\n return sections.map((section) => {\n const { withParentId, withoutParentId } = section.features.reduce<{\n withParentId: ProductTechSpecsProps[\"sections\"][number][\"features\"];\n withoutParentId: ProductTechSpecsProps[\"sections\"][number][\"features\"];\n }>(\n (acc, feature) => {\n if (feature.parentId === null) {\n acc.withoutParentId.push(feature);\n } else {\n acc.withParentId.push(feature);\n }\n return acc;\n },\n { withParentId: [], withoutParentId: [] },\n );\n\n const features = withoutParentId.map((parentFeature) => {\n const children = withParentId.filter(\n (childFeature) => childFeature.parentId === parentFeature.id,\n );\n return {\n ...parentFeature,\n children,\n };\n });\n\n return {\n id: section.id,\n label: section.label,\n features,\n };\n });\n }, [sections]);\n\n console.log(parsedSections);\n\n return (\n <S.Wrap>\n {parsedSections.map((section, i) => (\n <React.Fragment key={section.id}>\n {i > 0 && <S.SectionDivider />}\n {/* Section heading */}\n <S.Row>\n <S.Heading>{section.label}</S.Heading>\n </S.Row>\n\n {/* Section feature key value pairs */}\n {section.features.map((feature) => (\n <React.Fragment key={feature.id}>\n <S.Row key={feature.id}>\n <S.Cell>{feature.label}</S.Cell>\n {feature.value && renderFeatureValue(feature.value)}\n </S.Row>\n\n {/* Child features */}\n {feature.children.length > 0 &&\n feature.children.map((childFeature, i) => (\n <S.Row key={childFeature.id}>\n <S.Tree $isLast={i === feature.children.length - 1} />\n <S.Branch />\n\n <S.Cell $isChildRowFirstCell>{childFeature.label}</S.Cell>\n {childFeature.value &&\n renderFeatureValue(childFeature.value)}\n </S.Row>\n ))}\n </React.Fragment>\n ))}\n </React.Fragment>\n ))}\n </S.Wrap>\n );\n};\n"],"names":["ProductTechSpecs","sections","renderFeatureValue","useCallback","value","lines","split","jsx","S.Cell","Cell","children","map","line","i","jsxs","React","Fragment","parsedSections","useMemo","section","withParentId","withoutParentId","features","reduce","acc","feature","parentId","push","parentFeature","filter","childFeature","id","label","console","log","S.Wrap","Wrap","S.SectionDivider","S.Row","Row","S.Heading","length","S.Tree","$isLast","S.Branch","Branch","$isChildRowFirstCell"],"mappings":";;;;;;;;;;;;AAKO,MAAMA,mBAAmBA,CAAC;EAC/BC;AACF,CAA0C,KAAA;EAIlC,MAAAC,kBAAA,GAAqBC,iBAAY,CAACC,KAA+B,IAAA;IAC/D,MAAAC,KAAA,GAAQD,KAAM,CAAAE,KAA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YAAcjB,EAAAA,EAAAA,KAAAA,eACjCC,UAAA,CAAAA,IAAA,CAAAwB,6BAAA;UACC5B,QAAA,EAAA,CAAA,eAACH,cAAA,CAAAmC,uBAAAA,CAAAA,MAAA;YAAOC,OAAA,EAAS9B,OAAMY,OAAQ,CAAAf,QAAA,CAAS+B,SAAS;WAAG,CAAA,EAAA,eACpDlC,UAAA,CAAAA,GAAA,CAACqC,uBAAE,CAAAC,MAAA,EAAF,EAAS,CAAA,EAAA,8BAETrC,uBAAE,CAAAC,IAAA,EAAF;YAAOqC,oBAAoB,EAAA,IAAA;YAAEpC,uBAAasB;WAAM,CAAA,EAChDF,YAAa,CAAA1B,KAAA,IACZF,kBAAmB,CAAA4B,YAAA,CAAa1B,KAAK,CAAA;SAN7B,EAAA0B,YAAA,CAAaC,EAOzB,CACD,CAAA;OAjBgB,EAAAN,OAAA,CAAQM,EAkB7B,CACD,CAAA;IA5BkB,CAAA,EAAAZ,OAAA,CAAQY,EA6B7B,CACD;EACH,CAAA,CAAA;AAEJ,CAAA;"}
|
|
@@ -5,48 +5,45 @@ import { Cell, Wrap, SectionDivider, Row, Heading, Tree, Branch } from './Produc
|
|
|
5
5
|
const ProductTechSpecs = ({
|
|
6
6
|
sections
|
|
7
7
|
}) => {
|
|
8
|
-
console.log(sections);
|
|
9
8
|
const renderFeatureValue = useCallback(value => {
|
|
10
9
|
const lines = value.split("\n");
|
|
11
10
|
return /* @__PURE__ */jsx(Cell, {
|
|
12
|
-
$type: "value",
|
|
13
11
|
children: lines.map((line, i) => /* @__PURE__ */jsxs(React.Fragment, {
|
|
14
12
|
children: [i > 0 && /* @__PURE__ */jsx("br", {}), line]
|
|
15
13
|
}, i))
|
|
16
14
|
});
|
|
17
15
|
}, []);
|
|
18
|
-
console.log("sections", sections);
|
|
19
16
|
const parsedSections = useMemo(() => {
|
|
20
17
|
return sections.map(section => {
|
|
21
18
|
const {
|
|
22
19
|
withParentId,
|
|
23
20
|
withoutParentId
|
|
24
|
-
} = section.features.reduce((acc,
|
|
25
|
-
if (
|
|
26
|
-
acc.withoutParentId.push(
|
|
21
|
+
} = section.features.reduce((acc, feature) => {
|
|
22
|
+
if (feature.parentId === null) {
|
|
23
|
+
acc.withoutParentId.push(feature);
|
|
27
24
|
} else {
|
|
28
|
-
acc.withParentId.push(
|
|
25
|
+
acc.withParentId.push(feature);
|
|
29
26
|
}
|
|
30
27
|
return acc;
|
|
31
28
|
}, {
|
|
32
29
|
withParentId: [],
|
|
33
30
|
withoutParentId: []
|
|
34
31
|
});
|
|
35
|
-
const features = withoutParentId.map(
|
|
36
|
-
const children = withParentId.filter(
|
|
32
|
+
const features = withoutParentId.map(parentFeature => {
|
|
33
|
+
const children = withParentId.filter(childFeature => childFeature.parentId === parentFeature.id);
|
|
37
34
|
return {
|
|
38
|
-
...
|
|
35
|
+
...parentFeature,
|
|
39
36
|
children
|
|
40
37
|
};
|
|
41
38
|
});
|
|
42
39
|
return {
|
|
43
|
-
id: section.
|
|
44
|
-
label: section.
|
|
40
|
+
id: section.id,
|
|
41
|
+
label: section.label,
|
|
45
42
|
features
|
|
46
43
|
};
|
|
47
44
|
});
|
|
48
45
|
}, [sections]);
|
|
49
|
-
console.log(
|
|
46
|
+
console.log(parsedSections);
|
|
50
47
|
return /* @__PURE__ */jsx(Wrap, {
|
|
51
48
|
children: parsedSections.map((section, i) => /* @__PURE__ */jsxs(React.Fragment, {
|
|
52
49
|
children: [i > 0 && /* @__PURE__ */jsx(SectionDivider, {}), /* @__PURE__ */jsx(Row, {
|
|
@@ -56,19 +53,17 @@ const ProductTechSpecs = ({
|
|
|
56
53
|
}), section.features.map(feature => /* @__PURE__ */jsxs(React.Fragment, {
|
|
57
54
|
children: [/* @__PURE__ */jsxs(Row, {
|
|
58
55
|
children: [/* @__PURE__ */jsx(Cell, {
|
|
59
|
-
|
|
60
|
-
children: feature.feature.label
|
|
56
|
+
children: feature.label
|
|
61
57
|
}), feature.value && renderFeatureValue(feature.value)]
|
|
62
|
-
}, feature.
|
|
58
|
+
}, feature.id), feature.children.length > 0 && feature.children.map((childFeature, i2) => /* @__PURE__ */jsxs(Row, {
|
|
63
59
|
children: [/* @__PURE__ */jsx(Tree, {
|
|
64
60
|
$isLast: i2 === feature.children.length - 1
|
|
65
61
|
}), /* @__PURE__ */jsx(Branch, {}), /* @__PURE__ */jsx(Cell, {
|
|
66
|
-
$
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}, feature.feature.id))]
|
|
62
|
+
$isChildRowFirstCell: true,
|
|
63
|
+
children: childFeature.label
|
|
64
|
+
}), childFeature.value && renderFeatureValue(childFeature.value)]
|
|
65
|
+
}, childFeature.id))]
|
|
66
|
+
}, feature.id))]
|
|
72
67
|
}, section.id))
|
|
73
68
|
});
|
|
74
69
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductTechSpecs.mjs","sources":["../../../src/components/ProductTechSpecsV2/ProductTechSpecs.tsx"],"sourcesContent":["import React, { useCallback, useMemo } from \"react\";\n\nimport * as S from \"./ProductTechSpecs.styles\";\nimport type { ProductTechSpecsProps } from \"./ProductTechSpecs.types\";\n\nexport const ProductTechSpecs = ({\n sections,\n}: ProductTechSpecsProps): JSX.Element => {\n
|
|
1
|
+
{"version":3,"file":"ProductTechSpecs.mjs","sources":["../../../src/components/ProductTechSpecsV2/ProductTechSpecs.tsx"],"sourcesContent":["import React, { useCallback, useMemo } from \"react\";\n\nimport * as S from \"./ProductTechSpecs.styles\";\nimport type { ProductTechSpecsProps } from \"./ProductTechSpecs.types\";\n\nexport const ProductTechSpecs = ({\n sections,\n}: ProductTechSpecsProps): JSX.Element => {\n /**\n * Break value into lines\n */\n const renderFeatureValue = useCallback((value: string): JSX.Element => {\n const lines = value.split(\"\\n\");\n return (\n <S.Cell>\n {lines.map((line, i) => (\n <React.Fragment key={i}>\n {i > 0 && <br />}\n {line}\n </React.Fragment>\n ))}\n </S.Cell>\n );\n }, []);\n\n const parsedSections = useMemo(() => {\n return sections.map((section) => {\n const { withParentId, withoutParentId } = section.features.reduce<{\n withParentId: ProductTechSpecsProps[\"sections\"][number][\"features\"];\n withoutParentId: ProductTechSpecsProps[\"sections\"][number][\"features\"];\n }>(\n (acc, feature) => {\n if (feature.parentId === null) {\n acc.withoutParentId.push(feature);\n } else {\n acc.withParentId.push(feature);\n }\n return acc;\n },\n { withParentId: [], withoutParentId: [] },\n );\n\n const features = withoutParentId.map((parentFeature) => {\n const children = withParentId.filter(\n (childFeature) => childFeature.parentId === parentFeature.id,\n );\n return {\n ...parentFeature,\n children,\n };\n });\n\n return {\n id: section.id,\n label: section.label,\n features,\n };\n });\n }, [sections]);\n\n console.log(parsedSections);\n\n return (\n <S.Wrap>\n {parsedSections.map((section, i) => (\n <React.Fragment key={section.id}>\n {i > 0 && <S.SectionDivider />}\n {/* Section heading */}\n <S.Row>\n <S.Heading>{section.label}</S.Heading>\n </S.Row>\n\n {/* Section feature key value pairs */}\n {section.features.map((feature) => (\n <React.Fragment key={feature.id}>\n <S.Row key={feature.id}>\n <S.Cell>{feature.label}</S.Cell>\n {feature.value && renderFeatureValue(feature.value)}\n </S.Row>\n\n {/* Child features */}\n {feature.children.length > 0 &&\n feature.children.map((childFeature, i) => (\n <S.Row key={childFeature.id}>\n <S.Tree $isLast={i === feature.children.length - 1} />\n <S.Branch />\n\n <S.Cell $isChildRowFirstCell>{childFeature.label}</S.Cell>\n {childFeature.value &&\n renderFeatureValue(childFeature.value)}\n </S.Row>\n ))}\n </React.Fragment>\n ))}\n </React.Fragment>\n ))}\n </S.Wrap>\n );\n};\n"],"names":["ProductTechSpecs","sections","renderFeatureValue","useCallback","value","lines","split","jsx","S.Cell","children","map","line","i","jsxs","React","Fragment","parsedSections","useMemo","section","withParentId","withoutParentId","features","reduce","acc","feature","parentId","push","parentFeature","filter","childFeature","id","label","console","log","S.Wrap","S.SectionDivider","S.Row","S.Heading","length","S.Tree","$isLast","S.Branch","$isChildRowFirstCell"],"mappings":";;;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OAAA,EAAS5B,OAAMY,OAAQ,CAAAf,QAAA,CAAS6B,SAAS;WAAG,CAAA,EAAA,eACpD/B,GAAA,CAACkC,MAAE,EAAF,EAAS,CAAA,EAAA,mBAETjC,IAAE,EAAF;YAAOkC,oBAAoB,EAAA,IAAA;YAAEjC,uBAAasB;WAAM,CAAA,EAChDF,YAAa,CAAAzB,KAAA,IACZF,kBAAmB,CAAA2B,YAAA,CAAazB,KAAK,CAAA;SAN7B,EAAAyB,YAAA,CAAaC,EAOzB,CACD,CAAA;OAjBgB,EAAAN,OAAA,CAAQM,EAkB7B,CACD,CAAA;IA5BkB,CAAA,EAAAZ,OAAA,CAAQY,EA6B7B,CACD;EACH,CAAA,CAAA;AAEJ,CAAA;"}
|
|
@@ -3,8 +3,7 @@ export declare const Row: import("styled-components").StyledComponent<"div", imp
|
|
|
3
3
|
export declare const Heading: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
4
|
export declare const SectionDivider: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
5
5
|
export declare const Cell: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
6
|
-
$
|
|
7
|
-
$isChildCell?: boolean;
|
|
6
|
+
$isChildRowFirstCell?: boolean;
|
|
8
7
|
}, never>;
|
|
9
8
|
export declare const Tree: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
10
9
|
$isLast: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var styled = require('styled-components');
|
|
4
|
+
var layout = require('../../constants/layout.js');
|
|
4
5
|
function _interopDefault(e) {
|
|
5
6
|
return e && e.__esModule ? e : {
|
|
6
7
|
default: e
|
|
@@ -19,6 +20,10 @@ const Row = styled__default["default"].div`
|
|
|
19
20
|
background-color: #f9f9f9;
|
|
20
21
|
}
|
|
21
22
|
padding-left: ${TABLE_LEFT_MARGIN};
|
|
23
|
+
|
|
24
|
+
@media ${layout.BREAKPOINTS.MOBILE_AND_DOWN} {
|
|
25
|
+
grid-template-columns: 170px 1fr;
|
|
26
|
+
}
|
|
22
27
|
`;
|
|
23
28
|
const Heading = styled__default["default"].div`
|
|
24
29
|
font-size: 20px;
|
|
@@ -39,16 +44,9 @@ const Cell = styled__default["default"].div`
|
|
|
39
44
|
font-size: 14px;
|
|
40
45
|
line-height: 20px;
|
|
41
46
|
color: #50565e;
|
|
42
|
-
|
|
43
|
-
${({
|
|
44
|
-
$type
|
|
45
|
-
}) => $type === "key" && "width: 300px"};
|
|
46
47
|
${({
|
|
47
|
-
$
|
|
48
|
-
|
|
49
|
-
}) => $isChildCell && $type === "key" && `
|
|
50
|
-
margin-left: 24px;
|
|
51
|
-
`};
|
|
48
|
+
$isChildRowFirstCell
|
|
49
|
+
}) => $isChildRowFirstCell && "margin-left: 24px;"}
|
|
52
50
|
`;
|
|
53
51
|
const Tree = styled__default["default"].div`
|
|
54
52
|
${({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductTechSpecs.styles.js","sources":["../../../src/components/ProductTechSpecsV2/ProductTechSpecs.styles.tsx"],"sourcesContent":["import styled from \"styled-components\";\n\nconst TABLE_LEFT_MARGIN = \"0px\";\nconst TREE_LEFT_MARGIN = \"8px\";\n\nexport const Wrap = styled.div``;\n\nexport const Row = styled.div`\n display: grid;\n grid-template-columns: 300px 1fr;\n position: relative;\n &:hover: {\n background-color: #f9f9f9;\n }\n padding-left: ${TABLE_LEFT_MARGIN};\n`;\n\nexport const Heading = styled.div`\n font-size: 20px;\n line-height: 24px;\n font-weight: 700;\n color: #212427;\n margin-bottom: 16px;\n grid-column: 1 / 3;\n`;\n\nexport const SectionDivider = styled.div`\n height: 1px;\n background-color: #dbdce1;\n margin: 16px 0;\n grid-column: 1 / 3;\n`;\n\nexport const Cell = styled.div<{\n
|
|
1
|
+
{"version":3,"file":"ProductTechSpecs.styles.js","sources":["../../../src/components/ProductTechSpecsV2/ProductTechSpecs.styles.tsx"],"sourcesContent":["import styled from \"styled-components\";\n\nimport { BREAKPOINTS } from \"../../constants/layout\";\n\nconst TABLE_LEFT_MARGIN = \"0px\";\nconst TREE_LEFT_MARGIN = \"8px\";\n\nexport const Wrap = styled.div``;\n\nexport const Row = styled.div`\n display: grid;\n grid-template-columns: 300px 1fr;\n position: relative;\n &:hover: {\n background-color: #f9f9f9;\n }\n padding-left: ${TABLE_LEFT_MARGIN};\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n grid-template-columns: 170px 1fr;\n }\n`;\n\nexport const Heading = styled.div`\n font-size: 20px;\n line-height: 24px;\n font-weight: 700;\n color: #212427;\n margin-bottom: 16px;\n grid-column: 1 / 3;\n`;\n\nexport const SectionDivider = styled.div`\n height: 1px;\n background-color: #dbdce1;\n margin: 16px 0;\n grid-column: 1 / 3;\n`;\n\nexport const Cell = styled.div<{\n // Cell is a child and its the first item on the row.\n $isChildRowFirstCell?: boolean;\n}>`\n padding: 8px 28px 8px 0;\n font-size: 14px;\n line-height: 20px;\n color: #50565e;\n ${({ $isChildRowFirstCell }) => $isChildRowFirstCell && \"margin-left: 24px;\"}\n`;\n\nexport const Tree = styled.div<{\n $isLast: boolean;\n}>`\n ${({ $isLast }) => ($isLast ? \"height: 18px\" : \"height: 100%\")};\n position: absolute;\n top: 0;\n left: calc(${TABLE_LEFT_MARGIN} + ${TREE_LEFT_MARGIN});\n width: 1px;\n background-color: #c5c5c5;\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 1;\n`;\n\nexport const Branch = styled.div`\n position: absolute;\n left: calc(${TABLE_LEFT_MARGIN} + ${TREE_LEFT_MARGIN});\n top: 17px;\n width: 11px;\n height: 1px;\n background-color: #c5c5c5;\n`;\n"],"names":["TABLE_LEFT_MARGIN","TREE_LEFT_MARGIN","Wrap","styled","div","Row","BREAKPOINTS","MOBILE_AND_DOWN","Heading","SectionDivider","Cell","$isChildRowFirstCell","Tree","$isLast","Branch"],"mappings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E_LEFT_MARGIN = "8px";
|
|
@@ -11,6 +12,10 @@ const Row = styled.div`
|
|
|
11
12
|
background-color: #f9f9f9;
|
|
12
13
|
}
|
|
13
14
|
padding-left: ${TABLE_LEFT_MARGIN};
|
|
15
|
+
|
|
16
|
+
@media ${BREAKPOINTS.MOBILE_AND_DOWN} {
|
|
17
|
+
grid-template-columns: 170px 1fr;
|
|
18
|
+
}
|
|
14
19
|
`;
|
|
15
20
|
const Heading = styled.div`
|
|
16
21
|
font-size: 20px;
|
|
@@ -31,16 +36,9 @@ const Cell = styled.div`
|
|
|
31
36
|
font-size: 14px;
|
|
32
37
|
line-height: 20px;
|
|
33
38
|
color: #50565e;
|
|
34
|
-
|
|
35
|
-
${({
|
|
36
|
-
$type
|
|
37
|
-
}) => $type === "key" && "width: 300px"};
|
|
38
39
|
${({
|
|
39
|
-
$
|
|
40
|
-
|
|
41
|
-
}) => $isChildCell && $type === "key" && `
|
|
42
|
-
margin-left: 24px;
|
|
43
|
-
`};
|
|
40
|
+
$isChildRowFirstCell
|
|
41
|
+
}) => $isChildRowFirstCell && "margin-left: 24px;"}
|
|
44
42
|
`;
|
|
45
43
|
const Tree = styled.div`
|
|
46
44
|
${({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductTechSpecs.styles.mjs","sources":["../../../src/components/ProductTechSpecsV2/ProductTechSpecs.styles.tsx"],"sourcesContent":["import styled from \"styled-components\";\n\nconst TABLE_LEFT_MARGIN = \"0px\";\nconst TREE_LEFT_MARGIN = \"8px\";\n\nexport const Wrap = styled.div``;\n\nexport const Row = styled.div`\n display: grid;\n grid-template-columns: 300px 1fr;\n position: relative;\n &:hover: {\n background-color: #f9f9f9;\n }\n padding-left: ${TABLE_LEFT_MARGIN};\n`;\n\nexport const Heading = styled.div`\n font-size: 20px;\n line-height: 24px;\n font-weight: 700;\n color: #212427;\n margin-bottom: 16px;\n grid-column: 1 / 3;\n`;\n\nexport const SectionDivider = styled.div`\n height: 1px;\n background-color: #dbdce1;\n margin: 16px 0;\n grid-column: 1 / 3;\n`;\n\nexport const Cell = styled.div<{\n
|
|
1
|
+
{"version":3,"file":"ProductTechSpecs.styles.mjs","sources":["../../../src/components/ProductTechSpecsV2/ProductTechSpecs.styles.tsx"],"sourcesContent":["import styled from \"styled-components\";\n\nimport { BREAKPOINTS } from \"../../constants/layout\";\n\nconst TABLE_LEFT_MARGIN = \"0px\";\nconst TREE_LEFT_MARGIN = \"8px\";\n\nexport const Wrap = styled.div``;\n\nexport const Row = styled.div`\n display: grid;\n grid-template-columns: 300px 1fr;\n position: relative;\n &:hover: {\n background-color: #f9f9f9;\n }\n padding-left: ${TABLE_LEFT_MARGIN};\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n grid-template-columns: 170px 1fr;\n }\n`;\n\nexport const Heading = styled.div`\n font-size: 20px;\n line-height: 24px;\n font-weight: 700;\n color: #212427;\n margin-bottom: 16px;\n grid-column: 1 / 3;\n`;\n\nexport const SectionDivider = styled.div`\n height: 1px;\n background-color: #dbdce1;\n margin: 16px 0;\n grid-column: 1 / 3;\n`;\n\nexport const Cell = styled.div<{\n // Cell is a child and its the first item on the row.\n $isChildRowFirstCell?: boolean;\n}>`\n padding: 8px 28px 8px 0;\n font-size: 14px;\n line-height: 20px;\n color: #50565e;\n ${({ $isChildRowFirstCell }) => $isChildRowFirstCell && \"margin-left: 24px;\"}\n`;\n\nexport const Tree = styled.div<{\n $isLast: boolean;\n}>`\n ${({ $isLast }) => ($isLast ? \"height: 18px\" : \"height: 100%\")};\n position: absolute;\n top: 0;\n left: calc(${TABLE_LEFT_MARGIN} + ${TREE_LEFT_MARGIN});\n width: 1px;\n background-color: #c5c5c5;\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 1;\n`;\n\nexport const Branch = styled.div`\n position: absolute;\n left: calc(${TABLE_LEFT_MARGIN} + ${TREE_LEFT_MARGIN});\n top: 17px;\n width: 11px;\n height: 1px;\n background-color: #c5c5c5;\n`;\n"],"names":["TABLE_LEFT_MARGIN","TREE_LEFT_MARGIN","Wrap","styled","div","Row","BREAKPOINTS","MOBILE_AND_DOWN","Heading","SectionDivider","Cell","$isChildRowFirstCell","Tree","$isLast","Branch"],"mappings":";;;AAIA,MAAMA,iBAAoB,GAAA,KAAA;AAC1B,MAAMC,gBAAmB,GAAA,KAAA;AAElB,MAAMC,OAAOC,MAAO,CAAAC,GAAA,EAAA;AAEpB,MAAMC,MAAMF,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAORJ,iBAAiB;AAAA;AAAA,WAExBM,YAAYC,eAAe;AAAA;AAAA;AAAA,CAAA;AAK/B,MAAMC,UAAUL,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AASvB,MAAMK,iBAAiBN,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAO9B,MAAMM,OAAOP,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQvB,CAAC;EAAEO;CAAqB,KAAMA,wBAAwB,oBAAoB;AAAA,CAAA;AAGvE,MAAMC,OAAOT,MAAO,CAAAC,GAAA;AAAA,IAGvB,CAAC;EAAES;AAAA,CAAe,KAAAA,OAAA,GAAU,iBAAiB,cAAe;AAAA;AAAA;AAAA,eAGjDb,uBAAuBC,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAS/C,MAAMa,SAASX,MAAO,CAAAC,GAAA;AAAA;AAAA,eAEdJ,uBAAuBC,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;"}
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
export type ProductTechSpecsProps = {
|
|
2
2
|
sections: Array<{
|
|
3
3
|
id: string;
|
|
4
|
-
|
|
5
|
-
id: string;
|
|
6
|
-
label: string;
|
|
7
|
-
};
|
|
4
|
+
label: string;
|
|
8
5
|
features: Array<{
|
|
6
|
+
id: string;
|
|
9
7
|
value?: string;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
label: string;
|
|
13
|
-
parentId: string | null;
|
|
14
|
-
};
|
|
8
|
+
label: string;
|
|
9
|
+
parentId: string | null;
|
|
15
10
|
}>;
|
|
16
11
|
}>;
|
|
17
12
|
};
|
|
@@ -14,7 +14,7 @@ require('./assets/volume-on.svg.js');
|
|
|
14
14
|
var VideoPlayer_styles = require('./VideoPlayer.styles.js');
|
|
15
15
|
var CloseIcon = require("../../assets/close3.svg");
|
|
16
16
|
var BackIcon = require("../../assets/back.svg");
|
|
17
|
-
var PauseIcon = require("../../assets/
|
|
17
|
+
var PauseIcon = require("../../assets/pause2.svg");
|
|
18
18
|
var PlayIcon = require("../../assets/play.svg");
|
|
19
19
|
var VolumeOffIcon = require("../../assets/volume-off.svg");
|
|
20
20
|
var VolumeOnIcon = require("../../assets/volume-on.svg");
|
|
@@ -12,7 +12,7 @@ import './assets/volume-on.svg.mjs';
|
|
|
12
12
|
import { Wrap, IconWrap, Icon, Video, ControlWrap, TimelineWrap, Timeline, Controls, LeftSide, IconButton, VolumeWrap, VolumeSliderWrap, VolumeSlider, Time, Center, RightSide } from './VideoPlayer.styles.mjs';
|
|
13
13
|
import CloseIcon__default from "../../assets/close3.svg";
|
|
14
14
|
import BackIcon__default from "../../assets/back.svg";
|
|
15
|
-
import PauseIcon__default from "../../assets/
|
|
15
|
+
import PauseIcon__default from "../../assets/pause2.svg";
|
|
16
16
|
import PlayIcon__default from "../../assets/play.svg";
|
|
17
17
|
import VolumeOffIcon__default from "../../assets/volume-off.svg";
|
|
18
18
|
import VolumeOnIcon__default from "../../assets/volume-on.svg";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../assets/
|
|
2
|
-
export { default } from "../../../assets/
|
|
1
|
+
export * from "../../../assets/pause2.svg";
|
|
2
|
+
export { default } from "../../../assets/pause2.svg";
|
|
3
3
|
//# sourceMappingURL=pause.svg.mjs.map
|
|
@@ -321,8 +321,8 @@ export declare const BUSINESS_COUNTRY_CODE_MAPPING: {
|
|
|
321
321
|
};
|
|
322
322
|
/**
|
|
323
323
|
* @see https://www.fonoa.com/blog/new-mandatory-rfc-validation-method-in-mexico
|
|
324
|
-
* A businesses RFC consists of 12
|
|
325
|
-
* (x = letters, y = numbers, z = alphanumeric)
|
|
324
|
+
* A businesses RFC consists of 12 characters with the following structure: xxxyyyyyyzzz
|
|
325
|
+
* (x = letters (including Ñ and &), y = numbers, z = alphanumeric)
|
|
326
326
|
*/
|
|
327
327
|
readonly MX: {
|
|
328
328
|
readonly validation: RegExp;
|
package/lib/constants/address.js
CHANGED
|
@@ -341,11 +341,11 @@ const BUSINESS_COUNTRY_CODE_MAPPING = {
|
|
|
341
341
|
},
|
|
342
342
|
/**
|
|
343
343
|
* @see https://www.fonoa.com/blog/new-mandatory-rfc-validation-method-in-mexico
|
|
344
|
-
* A businesses RFC consists of 12
|
|
345
|
-
* (x = letters, y = numbers, z = alphanumeric)
|
|
344
|
+
* A businesses RFC consists of 12 characters with the following structure: xxxyyyyyyzzz
|
|
345
|
+
* (x = letters (including Ñ and &), y = numbers, z = alphanumeric)
|
|
346
346
|
*/
|
|
347
347
|
[generated.CountryCode.Mx]: {
|
|
348
|
-
validation: /^[A-Z]{3}
|
|
348
|
+
validation: /^[A-ZÑ&]{3}\d{6}[A-Z0-9]{3}$/i,
|
|
349
349
|
isOptional: false
|
|
350
350
|
}
|
|
351
351
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address.js","sources":["../../src/constants/address.ts"],"sourcesContent":["import { CountryCode, UserAssignedCountryCode } from \"../types\";\nimport { isCnpjValid, isCpfValid } from \"../utils/tax/brazil\";\n\n/**\n * Canada post code validation, we changed the regex from the url taken on by forcing a space in the middle (it's\n * optional there)\n * @see https://www.oreilly.com/library/view/regular-expressions-cookbook/9781449327453/ch04s15.html#:~:text=Aside%20from%20those%20two%20exceptions,for%20Canada%20Post's%20Ottawa%20headquarters.\n *\n * @deprecated with version 5.38.0 Use COUNTRY_CODE_POSTAL_CODE_REGEX\n */\nexport const CA_POSTAL_CODE_REGEX =\n /^(?!.*[DFIOQU])[A-VXY][0-9][A-Z] [0-9][A-Z][0-9]$/;\n\n/**\n * South Africa uses a simple 4-digit ZIP code pattern.\n * Unfortunately there doesn't seem have be pattern that some specific digits present a specific state/city that is\n * easily regex'able\n *\n * @deprecated with version 5.38.0 Use COUNTRY_CODE_POSTAL_CODE_REGEX\n */\nexport const ZA_POSTAL_CODE_REGEX = /^[0-9]{4}$/;\n\n/**\n * Mapping for postal code first letter to state province code.\n * Used for stricter postal code validation so zip code matches right state\n * Data taken from https://www12.statcan.gc.ca/census-recensement/2021/ref/dict/tab/index-eng.cfm?ID=t1_9\n * Related task: https://ubiquiti.atlassian.net/browse/NEP-1184?focusedCommentId=292248\n *\n * @deprecated use from packages/store.core/src/constants/postalCode.ts\n */\nexport const CA_POSTAL_CODE_PROVINCE_FIRST_CHARACTER = {\n A: [\"NL\"], // Newfoundland and Labrador\n B: [\"NS\"], // Nova Scotia\n C: [\"PE\"], // Prince Edward Island\n E: [\"NB\"], // New Brunswick\n G: [\"QC\"], // Eastern Quebec\n H: [\"QC\"], // Metropolitan Montréal\n J: [\"QC\"], // Western Quebec\n K: [\"ON\"], // Eastern Ontario\n L: [\"ON\"], // Central Ontario\n M: [\"ON\"], // Metropolitan Toronto\n N: [\"ON\"], // Southwestern Ontario\n P: [\"ON\"], // Northern Ontario\n R: [\"MB\"], // Manitoba\n S: [\"SK\"], // Saskatchewan\n T: [\"AB\"], // Alberta\n V: [\"BC\"], // British Columbia\n X: [\"NU\", \"NT\"], // Northwest Territories and Nunavut\n Y: [\"YT\"], // Yukon\n};\n\n/**\n * Static regex patterns to validate TAX number possibility\n * ! It does not guarantee that it's a registered TAX nubmer in the country it belongs in !\n */\nexport const BUSINESS_COUNTRY_CODE_MAPPING = {\n // #############################################################################\n // Europe VIES country patterns\n //\n // Links:\n // - Main source for pattens (see Question #11) - https://ec.europa.eu/taxation_customs/vies/#/faq\n // - Alternative source for patterns -\n // https://www.avalara.com/vatlive/en/eu-vat-rules/eu-vat-number-registration/eu-vat-number-formats.html\n // - General info about VAT numbers - https://en.wikipedia.org/wiki/VAT_identification_number\n //\n // HACK: For user convenience:\n // - Make the vat number country prefix optional (\"DE\" in \"DE999999999\") as we will normalise it inside of the VIES\n // service!\n // - Match result case-insensitive, we can easily uppercase it in the service\n // #############################################################################\n /**\n * Austria - 1 block of 9 characters and The 1st position following the prefix is always \"U\"\n */\n [CountryCode.At]: {\n validation: /^(AT)?U[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Belgium - 1 block of 10 digits - First digit after prefix is either 0 or 1\n */\n [CountryCode.Be]: {\n validation: /^(BE)?[0,1]{1}[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Bulgaria - 1 block of 9 digits or 1 block of 10 digits\n */\n [CountryCode.Bg]: {\n validation: /^(BG)?[0-9]{9,10}$/i,\n isOptional: false,\n },\n /**\n * Cyprus - 1 block of 8 digits and trailing letter\n */\n [CountryCode.Cy]: {\n validation: /^(CY)?[0-9]{8}[A-Z]$/i,\n isOptional: false,\n },\n /**\n * Czech Republic - 1 block of either 8, 9 or 10 digits\n */\n [CountryCode.Cz]: {\n validation: /^(CZ)?[0-9]{8,10}$/i,\n isOptional: false,\n },\n /**\n * Germany - 9 digits\n */\n [CountryCode.De]: {\n validation: /^(DE)?[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Denmark - 8 digits\n */\n [CountryCode.Dk]: {\n validation: /^(DK)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Estonia - 9 digits\n */\n [CountryCode.Ee]: {\n validation: /^(EE)?[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Greece - 9 digits\n * Note: We are using \"EL\" instead of its country code \"GR\" for prefix as per European Commission requirements, this\n * only affects how we validate it against VIES\n * @see https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Imperfect_implementations\n */\n [UserAssignedCountryCode.El]: {\n validation: /^(EL)?[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Spain - 9 characters Includes 1 or 2 alphabetical characters (first or last or first and last)\n * Note: We can reduce the pattern 2 regex or-pattern where:\n * 1. Handles scenario with leading letter and optional trailing letter\n * 2. Handles scenario with just trailing letter\n */\n [CountryCode.Es]: {\n validation: /^(ES)?(([A-Z][0-9]{7}[0-9A-Z])|([0-9]{8}[A-Z]))$/i,\n isOptional: false,\n },\n /**\n * Finland - 1 block of 8 digits\n */\n [CountryCode.Fi]: {\n validation: /^(FI)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * France & Monaco - 11 characters May include alphabetical characters (any except O or I) as first or second or first and\n * second characters\n *\n * TODO: Maybe add stricter validation for the invalid \"O\" and \"I\" characters (need to find a source that validates it)\n *\n * Fun-fact: France has actual math behind how they calculate the first 2 digits as they are a validation key, but we\n * don't require such a strict pattern as we would just end up doing actual checking up against Europe VIES\n * @see https://stackoverflow.com/a/33627030\n * @see https://en.wikipedia.org/wiki/VAT_identification_number\n */\n [UserAssignedCountryCode.Fr]: {\n validation: /^(FR)?[0-9A-Z]{2}[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Croatia - 1 block of 11 digits\n */\n [CountryCode.Hr]: {\n validation: /^(HR)?[0-9]{11}$/i,\n isOptional: false,\n },\n /**\n * Hungary - 1 block of 8 digits\n */\n [CountryCode.Hu]: {\n validation: /^(HU)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Ireland - 8 or 9 characters. Includes one or two alphabetical characters (last, or second and last, or last 2)\n *\n * It kinda has 3 styles:\n * - IE9S99999L (legacy, afaik WIKI told it's being phased out)\n * - IE9999999L\n * - IE9999999WI\n * @see https://en.wikipedia.org/wiki/VAT_identification_number\n */\n [CountryCode.Ie]: {\n validation: /^(IE)?[0-9][0-9A-Z][0-9]{5}[A-Z]{1,2}$/i,\n isOptional: false,\n },\n /**\n * Italy - 1 block of 11 digits\n */\n [CountryCode.It]: {\n validation: /^(IT)?[0-9]{11}$/i,\n isOptional: false,\n },\n /**\n * Lithuania - 1 block of 9 digits, or 1 block of 12 digits\n */\n [CountryCode.Lt]: {\n validation: /^(LT)?([0-9]{9}|[0-9]{12})$/i,\n isOptional: false,\n },\n /**\n * Luxembourg - 1 block of 8 digits\n */\n [CountryCode.Lu]: {\n validation: /^(LU)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Latvia - 1 block of 11 digits\n */\n [CountryCode.Lv]: {\n validation: /^(LV)?[0-9]{11}$/i,\n isOptional: false,\n },\n /**\n * Malta - 1 block of 8 digits\n */\n [CountryCode.Mt]: {\n validation: /^(MT)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Netherlands - 9 digits, the letter \"B\" and 2 \"check\" digits\n * @see https://business.gov.nl/regulation/using-checking-vat-numbers/\n *\n * Fun-fact: Avatax VAT reference link has a mistake of using \"BO2\" instead of \"B02\" for VAT group companies e.g https://eriks.com/en/contact/thank-you/\n */\n [CountryCode.Nl]: {\n validation: /^(NL)?[0-9]{9}B[0-9]{2}$/i,\n isOptional: false,\n },\n /**\n * Poland - 1 block of 10 digits\n */\n [CountryCode.Pl]: {\n validation: /^(PL)?[0-9]{10}$/i,\n isOptional: false,\n },\n /**\n * Portugal - 1 block of 9 digits\n */\n [CountryCode.Pt]: {\n validation: /^(PT)?[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Romania - 1 block of minimum 2 digits and maximum 10 digits\n *\n * Note: Wasn't able to find an official Romanian doc that validates this pattern as internet had mixed info about it,\n * but sticking with EU VIES recommended 2-10 digits\n */\n [CountryCode.Ro]: {\n validation: /^(RO)?[0-9]{2,10}$/i,\n isOptional: false,\n },\n /**\n * Sweden - 1 block of 12 digits\n */\n [CountryCode.Se]: {\n validation: /^(SE)?[0-9]{12}$/i,\n isOptional: false,\n },\n /**\n * Slovenia - 1 block of 8 digits\n */\n [CountryCode.Si]: {\n validation: /^(SI)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Slovakia - 1 block of 10 digits\n */\n [CountryCode.Sk]: {\n validation: /^(SK)?[0-9]{10}$/i,\n isOptional: false,\n },\n /**\n * Northern Ireland - 1 block of 3 digits, 1 block of 4 digits and 1 block of 2 digits; or the above followed by a block of 3 digits; or 1 block of 5 characters\n */\n [UserAssignedCountryCode.Xi]: {\n validation: /^(XI)?([0-9]{9}([0-9]{3})?|[A-Z]{2}[0-9]{3})$/i,\n isOptional: false,\n },\n // #############################################################################\n // Eurozone\n // #############################################################################\n /**\n * United Kingdom except (Northern Ireland a.k.a Xi)\n * @see https://www.gov.uk/register-for-vat/selling-or-moving-goods-between-northern-ireland-and-the-eu\n */\n [CountryCode.Gb]: {\n validation: /^(GB)?([0-9]{9}([0-9]{3})?|[A-Z]{2}[0-9]{3})$/i,\n isOptional: false,\n },\n /**\n * Norway - \"NO\" optional prefix, 9 digits, \"MVA\" optional suffix\n * @see https://www.avalara.com/vatlive/en/eu-vat-rules/eu-vat-number-registration/eu-vat-number-formats.html\n * @see https://vatstack.com/articles/norway-vat-number-validation\n * @see https://en.wikipedia.org/wiki/VAT_identification_number#:~:text=e.g.%20MK4032013544513-,Norway,-Organisasjonsnummer%0AOrganization%20number\n */\n [CountryCode.No]: {\n validation: /^(NO)?[0-9]{9}(MVA)?$/i,\n isOptional: false,\n },\n // TODO: should we add Switzerland? see https://www.avalara.com/vatlive/en/eu-vat-rules/eu-vat-number-registration/eu-vat-number-formats.html\n // Switzerland\n // [CountryCode.Ch]: ...\n // #############################################################################\n // Other (one-of's)\n // #############################################################################\n /**\n * United Arab Emirates - 1 block of 15 digits\n *\n * Note: no source for this found, using format based on UI AE TRN\n * Note: AE TRN does not use a country prefix\n */\n [CountryCode.Ae]: {\n validation: /^[0-9]{15}$/i,\n isOptional: false,\n },\n /**\n * South Africa - as per links below, should accept input that starts with 4 and following 9 digits.\n * @see https://secure.sarsefiling.co.za/vatvendorsearch.aspx\n * @see https://secure.sarsefiling.co.za/VATVendorSearch/application/help.html\n */\n [CountryCode.Za]: {\n validation: /^4[0-9]{9}$/i,\n isOptional: false,\n },\n\n [CountryCode.Br]: {\n validation: isCnpjValid,\n isOptional: false,\n },\n\n [CountryCode.In]: {\n validation: /^[0-9A-Z]{15}$/,\n isOptional: false,\n },\n\n [CountryCode.Tw]: {\n validation: /^[0-9A-Z]{8}$/,\n isOptional: false,\n },\n\n /**\n * @see https://www.fonoa.com/blog/new-mandatory-rfc-validation-method-in-mexico\n * A businesses RFC consists of 12 digits with the following structure: xxxyyyyyyzzz\n * (x = letters, y = numbers, z = alphanumeric)\n */\n [CountryCode.Mx]: {\n validation: /^[A-Z]{3}[0-9]{6}[0-9A-Z]{3}$/i,\n isOptional: false,\n },\n} as const;\n// FIXME: once we upgrade to Next 13 which supports typescript satisfies we can use this to make th pattern stricter\n// FIXME: \"isOptional: false\" could be safely removed once we use the \"satisfies\" as we only care about cases when \"isOptional: true\". It was added just to make TS happy.\n// } satisfies CountryTaxValidationMapping;\n\nexport const RESIDENTIAL_COUNTRY_CODE_MAPPING = {\n // #############################################################################\n // Other (one-of's)\n // #############################################################################\n [CountryCode.Br]: {\n validation: isCpfValid,\n isOptional: false,\n },\n\n [CountryCode.In]: {\n validation: /^[0-9A-Z]{15}$/,\n isOptional: true,\n },\n} as const;\n// FIXME: once we upgrade to Next 13 which supports typescript satisfies we can use this to make th pattern stricter\n// FIXME: \"isOptional: false\" could be safely removed once we use the \"satisfies\" as we only care about cases when \"isOptional: true\". It was added just to make TS happy.\n// } satisfies CountryTaxValidationMapping;\n\n/**\n * Set of type-safe rules that we use in `getUserAssignedCountryCode` to determine UserAssignedCountryCode\n */\nexport const USER_ASSIGNED_COUNTRY_MAPPING_RULES = {\n [UserAssignedCountryCode.Xi]: [\n [CountryCode.Gb, \"NIR\"], // Northern Ireland\n ],\n [UserAssignedCountryCode.El]: [\n [CountryCode.Gr], // Greece\n ],\n [UserAssignedCountryCode.Fr]: [\n [CountryCode.Fr], // France\n [CountryCode.Mc], // Monaco\n ],\n // FIXME: once we upgrade to Next 13 which supports typescript satisfies we can use this to make th pattern stricter\n} as {\n [key in UserAssignedCountryCode]: [\n countryCode: CountryCode,\n province?: string,\n ][];\n};\n\n/**\n * List of found alternative province names that results\n * from Google Places API. This is used to map the alternative\n * province name to the correct province code for auto-fill.\n */\nexport const ALTERNATIVE_PROVINCE_NAMES: {\n [key in CountryCode]?: Record<string, string>;\n} = {\n // United Arab Emirates\n [CountryCode.Ae]: {\n \"Ras al Khaimah\": \"RK\",\n \"Umm Al Quawain\": \"UQ\",\n },\n // Ireland\n [CountryCode.Ie]: {\n \"County Kildare\": \"KE\",\n \"County Kilkenny\": \"KK\",\n },\n};\n"],"names":["CA_POSTAL_CODE_REGEX","ZA_POSTAL_CODE_REGEX","CA_POSTAL_CODE_PROVINCE_FIRST_CHARACTER","A","B","C","E","G","H","J","K","L","M","N","P","R","S","T","V","X","Y","BUSINESS_COUNTRY_CODE_MAPPING","CountryCode","At","validation","isOptional","Be","Bg","Cy","Cz","De","Dk","Ee","UserAssignedCountryCode","El","Es","Fi","Fr","Hr","Hu","Ie","It","Lt","Lu","Lv","Mt","Nl","Pl","Pt","Ro","Se","Si","Sk","Xi","Gb","No","Ae","Za","Br","isCnpjValid","In","Tw","Mx","RESIDENTIAL_COUNTRY_CODE_MAPPING","isCpfValid","USER_ASSIGNED_COUNTRY_MAPPING_RULES","Gr","Mc","ALTERNATIVE_PROVINCE_NAMES"],"mappings":";;;;;;AAUO,MAAMA,oBACX,GAAA,mDAAA;AASK,MAAMC,oBAAuB,GAAA,YAAA;AAU7B,MAAMC,uCAA0C,GAAA;EACrDC,CAAA,EAAG,CAAC,IAAI,CAAA;EAAA;EACRC,CAAA,EAAG,CAAC,IAAI,CAAA;EAAA;EACRC,CAAA,EAAG,CAAC,IAAI,CAAA;EAAA;EACRC,CAAA,EAAG,CAAC,IAAI,CAAA;EAAA;EACRC,CAAA,EAAG,CAAC,IAAI,C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AAYe,EAAE,CAAA;EAAA;EACf,CAACf,SAAAA,CAAAA,YAAY6C,EAAE;EAAA;EAAA;EACjB;AAEF,CAAA;AAYO,MAAMC,0BAET,GAAA;EAAA;EAEF,CAAC9C,SAAAA,CAAAA,WAAY,CAAAkC,EAAE,GAAG;IAChB,gBAAkB,EAAA,IAAA;IAClB,gBAAkB,EAAA;EACpB,CAAA;EAAA;EAEA,CAAClC,SAAAA,CAAAA,WAAY,CAAAkB,EAAE,GAAG;IAChB,gBAAkB,EAAA,IAAA;IAClB,iBAAmB,EAAA;EACrB;AACF,CAAA;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"address.js","sources":["../../src/constants/address.ts"],"sourcesContent":["import { CountryCode, UserAssignedCountryCode } from \"../types\";\nimport { isCnpjValid, isCpfValid } from \"../utils/tax/brazil\";\n\n/**\n * Canada post code validation, we changed the regex from the url taken on by forcing a space in the middle (it's\n * optional there)\n * @see https://www.oreilly.com/library/view/regular-expressions-cookbook/9781449327453/ch04s15.html#:~:text=Aside%20from%20those%20two%20exceptions,for%20Canada%20Post's%20Ottawa%20headquarters.\n *\n * @deprecated with version 5.38.0 Use COUNTRY_CODE_POSTAL_CODE_REGEX\n */\nexport const CA_POSTAL_CODE_REGEX =\n /^(?!.*[DFIOQU])[A-VXY][0-9][A-Z] [0-9][A-Z][0-9]$/;\n\n/**\n * South Africa uses a simple 4-digit ZIP code pattern.\n * Unfortunately there doesn't seem have be pattern that some specific digits present a specific state/city that is\n * easily regex'able\n *\n * @deprecated with version 5.38.0 Use COUNTRY_CODE_POSTAL_CODE_REGEX\n */\nexport const ZA_POSTAL_CODE_REGEX = /^[0-9]{4}$/;\n\n/**\n * Mapping for postal code first letter to state province code.\n * Used for stricter postal code validation so zip code matches right state\n * Data taken from https://www12.statcan.gc.ca/census-recensement/2021/ref/dict/tab/index-eng.cfm?ID=t1_9\n * Related task: https://ubiquiti.atlassian.net/browse/NEP-1184?focusedCommentId=292248\n *\n * @deprecated use from packages/store.core/src/constants/postalCode.ts\n */\nexport const CA_POSTAL_CODE_PROVINCE_FIRST_CHARACTER = {\n A: [\"NL\"], // Newfoundland and Labrador\n B: [\"NS\"], // Nova Scotia\n C: [\"PE\"], // Prince Edward Island\n E: [\"NB\"], // New Brunswick\n G: [\"QC\"], // Eastern Quebec\n H: [\"QC\"], // Metropolitan Montréal\n J: [\"QC\"], // Western Quebec\n K: [\"ON\"], // Eastern Ontario\n L: [\"ON\"], // Central Ontario\n M: [\"ON\"], // Metropolitan Toronto\n N: [\"ON\"], // Southwestern Ontario\n P: [\"ON\"], // Northern Ontario\n R: [\"MB\"], // Manitoba\n S: [\"SK\"], // Saskatchewan\n T: [\"AB\"], // Alberta\n V: [\"BC\"], // British Columbia\n X: [\"NU\", \"NT\"], // Northwest Territories and Nunavut\n Y: [\"YT\"], // Yukon\n};\n\n/**\n * Static regex patterns to validate TAX number possibility\n * ! It does not guarantee that it's a registered TAX nubmer in the country it belongs in !\n */\nexport const BUSINESS_COUNTRY_CODE_MAPPING = {\n // #############################################################################\n // Europe VIES country patterns\n //\n // Links:\n // - Main source for pattens (see Question #11) - https://ec.europa.eu/taxation_customs/vies/#/faq\n // - Alternative source for patterns -\n // https://www.avalara.com/vatlive/en/eu-vat-rules/eu-vat-number-registration/eu-vat-number-formats.html\n // - General info about VAT numbers - https://en.wikipedia.org/wiki/VAT_identification_number\n //\n // HACK: For user convenience:\n // - Make the vat number country prefix optional (\"DE\" in \"DE999999999\") as we will normalise it inside of the VIES\n // service!\n // - Match result case-insensitive, we can easily uppercase it in the service\n // #############################################################################\n /**\n * Austria - 1 block of 9 characters and The 1st position following the prefix is always \"U\"\n */\n [CountryCode.At]: {\n validation: /^(AT)?U[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Belgium - 1 block of 10 digits - First digit after prefix is either 0 or 1\n */\n [CountryCode.Be]: {\n validation: /^(BE)?[0,1]{1}[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Bulgaria - 1 block of 9 digits or 1 block of 10 digits\n */\n [CountryCode.Bg]: {\n validation: /^(BG)?[0-9]{9,10}$/i,\n isOptional: false,\n },\n /**\n * Cyprus - 1 block of 8 digits and trailing letter\n */\n [CountryCode.Cy]: {\n validation: /^(CY)?[0-9]{8}[A-Z]$/i,\n isOptional: false,\n },\n /**\n * Czech Republic - 1 block of either 8, 9 or 10 digits\n */\n [CountryCode.Cz]: {\n validation: /^(CZ)?[0-9]{8,10}$/i,\n isOptional: false,\n },\n /**\n * Germany - 9 digits\n */\n [CountryCode.De]: {\n validation: /^(DE)?[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Denmark - 8 digits\n */\n [CountryCode.Dk]: {\n validation: /^(DK)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Estonia - 9 digits\n */\n [CountryCode.Ee]: {\n validation: /^(EE)?[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Greece - 9 digits\n * Note: We are using \"EL\" instead of its country code \"GR\" for prefix as per European Commission requirements, this\n * only affects how we validate it against VIES\n * @see https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Imperfect_implementations\n */\n [UserAssignedCountryCode.El]: {\n validation: /^(EL)?[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Spain - 9 characters Includes 1 or 2 alphabetical characters (first or last or first and last)\n * Note: We can reduce the pattern 2 regex or-pattern where:\n * 1. Handles scenario with leading letter and optional trailing letter\n * 2. Handles scenario with just trailing letter\n */\n [CountryCode.Es]: {\n validation: /^(ES)?(([A-Z][0-9]{7}[0-9A-Z])|([0-9]{8}[A-Z]))$/i,\n isOptional: false,\n },\n /**\n * Finland - 1 block of 8 digits\n */\n [CountryCode.Fi]: {\n validation: /^(FI)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * France & Monaco - 11 characters May include alphabetical characters (any except O or I) as first or second or first and\n * second characters\n *\n * TODO: Maybe add stricter validation for the invalid \"O\" and \"I\" characters (need to find a source that validates it)\n *\n * Fun-fact: France has actual math behind how they calculate the first 2 digits as they are a validation key, but we\n * don't require such a strict pattern as we would just end up doing actual checking up against Europe VIES\n * @see https://stackoverflow.com/a/33627030\n * @see https://en.wikipedia.org/wiki/VAT_identification_number\n */\n [UserAssignedCountryCode.Fr]: {\n validation: /^(FR)?[0-9A-Z]{2}[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Croatia - 1 block of 11 digits\n */\n [CountryCode.Hr]: {\n validation: /^(HR)?[0-9]{11}$/i,\n isOptional: false,\n },\n /**\n * Hungary - 1 block of 8 digits\n */\n [CountryCode.Hu]: {\n validation: /^(HU)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Ireland - 8 or 9 characters. Includes one or two alphabetical characters (last, or second and last, or last 2)\n *\n * It kinda has 3 styles:\n * - IE9S99999L (legacy, afaik WIKI told it's being phased out)\n * - IE9999999L\n * - IE9999999WI\n * @see https://en.wikipedia.org/wiki/VAT_identification_number\n */\n [CountryCode.Ie]: {\n validation: /^(IE)?[0-9][0-9A-Z][0-9]{5}[A-Z]{1,2}$/i,\n isOptional: false,\n },\n /**\n * Italy - 1 block of 11 digits\n */\n [CountryCode.It]: {\n validation: /^(IT)?[0-9]{11}$/i,\n isOptional: false,\n },\n /**\n * Lithuania - 1 block of 9 digits, or 1 block of 12 digits\n */\n [CountryCode.Lt]: {\n validation: /^(LT)?([0-9]{9}|[0-9]{12})$/i,\n isOptional: false,\n },\n /**\n * Luxembourg - 1 block of 8 digits\n */\n [CountryCode.Lu]: {\n validation: /^(LU)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Latvia - 1 block of 11 digits\n */\n [CountryCode.Lv]: {\n validation: /^(LV)?[0-9]{11}$/i,\n isOptional: false,\n },\n /**\n * Malta - 1 block of 8 digits\n */\n [CountryCode.Mt]: {\n validation: /^(MT)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Netherlands - 9 digits, the letter \"B\" and 2 \"check\" digits\n * @see https://business.gov.nl/regulation/using-checking-vat-numbers/\n *\n * Fun-fact: Avatax VAT reference link has a mistake of using \"BO2\" instead of \"B02\" for VAT group companies e.g https://eriks.com/en/contact/thank-you/\n */\n [CountryCode.Nl]: {\n validation: /^(NL)?[0-9]{9}B[0-9]{2}$/i,\n isOptional: false,\n },\n /**\n * Poland - 1 block of 10 digits\n */\n [CountryCode.Pl]: {\n validation: /^(PL)?[0-9]{10}$/i,\n isOptional: false,\n },\n /**\n * Portugal - 1 block of 9 digits\n */\n [CountryCode.Pt]: {\n validation: /^(PT)?[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Romania - 1 block of minimum 2 digits and maximum 10 digits\n *\n * Note: Wasn't able to find an official Romanian doc that validates this pattern as internet had mixed info about it,\n * but sticking with EU VIES recommended 2-10 digits\n */\n [CountryCode.Ro]: {\n validation: /^(RO)?[0-9]{2,10}$/i,\n isOptional: false,\n },\n /**\n * Sweden - 1 block of 12 digits\n */\n [CountryCode.Se]: {\n validation: /^(SE)?[0-9]{12}$/i,\n isOptional: false,\n },\n /**\n * Slovenia - 1 block of 8 digits\n */\n [CountryCode.Si]: {\n validation: /^(SI)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Slovakia - 1 block of 10 digits\n */\n [CountryCode.Sk]: {\n validation: /^(SK)?[0-9]{10}$/i,\n isOptional: false,\n },\n /**\n * Northern Ireland - 1 block of 3 digits, 1 block of 4 digits and 1 block of 2 digits; or the above followed by a block of 3 digits; or 1 block of 5 characters\n */\n [UserAssignedCountryCode.Xi]: {\n validation: /^(XI)?([0-9]{9}([0-9]{3})?|[A-Z]{2}[0-9]{3})$/i,\n isOptional: false,\n },\n // #############################################################################\n // Eurozone\n // #############################################################################\n /**\n * United Kingdom except (Northern Ireland a.k.a Xi)\n * @see https://www.gov.uk/register-for-vat/selling-or-moving-goods-between-northern-ireland-and-the-eu\n */\n [CountryCode.Gb]: {\n validation: /^(GB)?([0-9]{9}([0-9]{3})?|[A-Z]{2}[0-9]{3})$/i,\n isOptional: false,\n },\n /**\n * Norway - \"NO\" optional prefix, 9 digits, \"MVA\" optional suffix\n * @see https://www.avalara.com/vatlive/en/eu-vat-rules/eu-vat-number-registration/eu-vat-number-formats.html\n * @see https://vatstack.com/articles/norway-vat-number-validation\n * @see https://en.wikipedia.org/wiki/VAT_identification_number#:~:text=e.g.%20MK4032013544513-,Norway,-Organisasjonsnummer%0AOrganization%20number\n */\n [CountryCode.No]: {\n validation: /^(NO)?[0-9]{9}(MVA)?$/i,\n isOptional: false,\n },\n // TODO: should we add Switzerland? see https://www.avalara.com/vatlive/en/eu-vat-rules/eu-vat-number-registration/eu-vat-number-formats.html\n // Switzerland\n // [CountryCode.Ch]: ...\n // #############################################################################\n // Other (one-of's)\n // #############################################################################\n /**\n * United Arab Emirates - 1 block of 15 digits\n *\n * Note: no source for this found, using format based on UI AE TRN\n * Note: AE TRN does not use a country prefix\n */\n [CountryCode.Ae]: {\n validation: /^[0-9]{15}$/i,\n isOptional: false,\n },\n /**\n * South Africa - as per links below, should accept input that starts with 4 and following 9 digits.\n * @see https://secure.sarsefiling.co.za/vatvendorsearch.aspx\n * @see https://secure.sarsefiling.co.za/VATVendorSearch/application/help.html\n */\n [CountryCode.Za]: {\n validation: /^4[0-9]{9}$/i,\n isOptional: false,\n },\n\n [CountryCode.Br]: {\n validation: isCnpjValid,\n isOptional: false,\n },\n\n [CountryCode.In]: {\n validation: /^[0-9A-Z]{15}$/,\n isOptional: false,\n },\n\n [CountryCode.Tw]: {\n validation: /^[0-9A-Z]{8}$/,\n isOptional: false,\n },\n\n /**\n * @see https://www.fonoa.com/blog/new-mandatory-rfc-validation-method-in-mexico\n * A businesses RFC consists of 12 characters with the following structure: xxxyyyyyyzzz\n * (x = letters (including Ñ and &), y = numbers, z = alphanumeric)\n */\n [CountryCode.Mx]: {\n validation: /^[A-ZÑ&]{3}\\d{6}[A-Z0-9]{3}$/i,\n isOptional: false,\n },\n} as const;\n// FIXME: once we upgrade to Next 13 which supports typescript satisfies we can use this to make th pattern stricter\n// FIXME: \"isOptional: false\" could be safely removed once we use the \"satisfies\" as we only care about cases when \"isOptional: true\". It was added just to make TS happy.\n// } satisfies CountryTaxValidationMapping;\n\nexport const RESIDENTIAL_COUNTRY_CODE_MAPPING = {\n // #############################################################################\n // Other (one-of's)\n // #############################################################################\n [CountryCode.Br]: {\n validation: isCpfValid,\n isOptional: false,\n },\n\n [CountryCode.In]: {\n validation: /^[0-9A-Z]{15}$/,\n isOptional: true,\n },\n} as const;\n// FIXME: once we upgrade to Next 13 which supports typescript satisfies we can use this to make th pattern stricter\n// FIXME: \"isOptional: false\" could be safely removed once we use the \"satisfies\" as we only care about cases when \"isOptional: true\". It was added just to make TS happy.\n// } satisfies CountryTaxValidationMapping;\n\n/**\n * Set of type-safe rules that we use in `getUserAssignedCountryCode` to determine UserAssignedCountryCode\n */\nexport const USER_ASSIGNED_COUNTRY_MAPPING_RULES = {\n [UserAssignedCountryCode.Xi]: [\n [CountryCode.Gb, \"NIR\"], // Northern Ireland\n ],\n [UserAssignedCountryCode.El]: [\n [CountryCode.Gr], // Greece\n ],\n [UserAssignedCountryCode.Fr]: [\n [CountryCode.Fr], // France\n [CountryCode.Mc], // Monaco\n ],\n // FIXME: once we upgrade to Next 13 which supports typescript satisfies we can use this to make th pattern stricter\n} as {\n [key in UserAssignedCountryCode]: [\n countryCode: CountryCode,\n province?: string,\n ][];\n};\n\n/**\n * List of found alternative province names that results\n * from Google Places API. This is used to map the alternative\n * province name to the correct province code for auto-fill.\n */\nexport const ALTERNATIVE_PROVINCE_NAMES: {\n [key in CountryCode]?: Record<string, string>;\n} = {\n // United Arab Emirates\n [CountryCode.Ae]: {\n \"Ras al Khaimah\": \"RK\",\n \"Umm Al Quawain\": \"UQ\",\n },\n // Ireland\n [CountryCode.Ie]: {\n \"County Kildare\": \"KE\",\n \"County Kilkenny\": \"KK\",\n },\n};\n"],"names":["CA_POSTAL_CODE_REGEX","ZA_POSTAL_CODE_REGEX","CA_POSTAL_CODE_PROVINCE_FIRST_CHARACTER","A","B","C","E","G","H","J","K","L","M","N","P","R","S","T","V","X","Y","BUSINESS_COUNTRY_CODE_MAPPING","CountryCode","At","validation","isOptional","Be","Bg","Cy","Cz","De","Dk","Ee","UserAssignedCountryCode","El","Es","Fi","Fr","Hr","Hu","Ie","It","Lt","Lu","Lv","Mt","Nl","Pl","Pt","Ro","Se","Si","Sk","Xi","Gb","No","Ae","Za","Br","isCnpjValid","In","Tw","Mx","RESIDENTIAL_COUNTRY_CODE_MAPPING","isCpfValid","USER_ASSIGNED_COUNTRY_MAPPING_RULES","Gr","Mc","ALTERNATIVE_PROVINCE_NAMES"],"mappings":";;;;;;AAUO,MAAMA,oBACX,GAAA,mDAAA;AASK,MAAMC,oBAAuB,GAAA,YAAA;AAU7B,MAAMC,uCAA0C,GAAA;EACrDC,CAAA,EAAG,CAAC,IAAI,CAAA;EAAA;EACRC,CAAA,EAAG,CAAC,IAAI,CAAA;EAAA;EACRC,CAAA,EAAG,CAAC,IAAI,CAAA;EAAA;EACRC,CAAA,EAAG,CAAC,IAAI,CAAA;EAAA;EACRC,CAAA,EAAG,CAAC,IAAI,CAAA;EAAA;EACRC,CAAA,EAAG,CAAC,IAAI,CAAA;EAAA;EACRC,CAAA,EAAG,CAAC,IAAI,CAAA;EAAA;EACRC,CAAA,EAAG,CAAC,IAAI,CAAA;EAAA;EACRC,CAAA,EAAG,CAAC,IAAI,CAAA;EAAA;EACRC,CAAA,EAAG,CAAC,IAAI,CAAA;EAAA;EACRC,CAAA,EAAG,CAAC,IAAI,CAAA;EAAA;EACRC,CAAA,EAAG,CAAC,IAAI,CAAA;EAAA;EACRC,CAAA,EAAG,CAAC,IAAI,CAAA;EAAA;EACRC,CAAA,EAAG,CAAC,IAAI,CAAA;EAAA;EACRC,CAAA,EAAG,CAAC,IAAI,CAAA;EAAA;EACRC,CAAA,EAAG,CAAC,IAAI,CAAA;EAAA;EACRC,CAAA,EAAG,CAAC,IAAA,EAAM,IAAI,CAAA;EAAA;EACdC,CAAA,EAAG,CAAC,IAAI;E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AAA;EACd;AACF,CAAA;AAKO,MAAMsC,gCAAmC,GAAA;EAAA;EAAA;EAAA;EAI9C,CAACzC,SAAAA,CAAAA,WAAY,CAAAoC,EAAE,GAAG;IAChBlC,UAAY,EAAAwC,MAAA,CAAAA,UAAA;IACZvC,UAAY,EAAA;EACd,CAAA;EAEA,CAACH,SAAAA,CAAAA,WAAY,CAAAsC,EAAE,GAAG;IAChBpC,UAAY,EAAA,gBAAA;IACZC,UAAY,EAAA;EACd;AACF,CAAA;AAQO,MAAMwC,mCAAsC,GAAA;EACjD,CAAChC,SAAAA,CAAAA,uBAAwB,CAAAoB,EAAE,GAAG,CAC5B,CAAC/B,SAAY,CAAAA,WAAA,CAAAgC,EAAA,EAAI,KAAK;EAAA;EAAA,CACxB;EACA,CAACrB,SAAAA,CAAAA,uBAAwB,CAAAC,EAAE,GAAG,CAC5B,CAACZ,SAAAA,CAAAA,YAAY4C,EAAE;EAAA;EAAA,CACjB;EACA,CAACjC,SAAAA,CAAAA,uBAAwB,CAAAI,EAAE,GAAG,CAC5B,CAACf,SAAAA,CAAAA,YAAYe,EAAE,CAAA;EAAA;EACf,CAACf,SAAAA,CAAAA,YAAY6C,EAAE;EAAA;EAAA;EACjB;AAEF,CAAA;AAYO,MAAMC,0BAET,GAAA;EAAA;EAEF,CAAC9C,SAAAA,CAAAA,WAAY,CAAAkC,EAAE,GAAG;IAChB,gBAAkB,EAAA,IAAA;IAClB,gBAAkB,EAAA;EACpB,CAAA;EAAA;EAEA,CAAClC,SAAAA,CAAAA,WAAY,CAAAkB,EAAE,GAAG;IAChB,gBAAkB,EAAA,IAAA;IAClB,iBAAmB,EAAA;EACrB;AACF,CAAA;;;;;;;"}
|
|
@@ -339,11 +339,11 @@ const BUSINESS_COUNTRY_CODE_MAPPING = {
|
|
|
339
339
|
},
|
|
340
340
|
/**
|
|
341
341
|
* @see https://www.fonoa.com/blog/new-mandatory-rfc-validation-method-in-mexico
|
|
342
|
-
* A businesses RFC consists of 12
|
|
343
|
-
* (x = letters, y = numbers, z = alphanumeric)
|
|
342
|
+
* A businesses RFC consists of 12 characters with the following structure: xxxyyyyyyzzz
|
|
343
|
+
* (x = letters (including Ñ and &), y = numbers, z = alphanumeric)
|
|
344
344
|
*/
|
|
345
345
|
[CountryCode.Mx]: {
|
|
346
|
-
validation: /^[A-Z]{3}
|
|
346
|
+
validation: /^[A-ZÑ&]{3}\d{6}[A-Z0-9]{3}$/i,
|
|
347
347
|
isOptional: false
|
|
348
348
|
}
|
|
349
349
|
};
|