@odus/checkout 1.6.0 → 1.7.2
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/dist/api/createApplePaySession.mutation.d.ts +9 -0
- package/dist/api/createApplePaySession.mutation.d.ts.map +1 -0
- package/dist/api/getCheckoutDetails.query.d.ts +18 -0
- package/dist/api/getCheckoutDetails.query.d.ts.map +1 -0
- package/dist/api/getSupportedPaymentMethods.query.d.ts +7 -0
- package/dist/api/getSupportedPaymentMethods.query.d.ts.map +1 -0
- package/dist/checkout.es.js +65 -65
- package/dist/components/Component.d.ts +70 -0
- package/dist/components/Component.d.ts.map +1 -0
- package/dist/components/ComponentFactory.d.ts +48 -0
- package/dist/components/ComponentFactory.d.ts.map +1 -0
- package/dist/components/checkout/card-elements/CardCvvElement.d.ts +28 -0
- package/dist/components/checkout/card-elements/CardCvvElement.d.ts.map +1 -0
- package/dist/components/checkout/card-elements/CardNumberElement.d.ts +32 -0
- package/dist/components/checkout/card-elements/CardNumberElement.d.ts.map +1 -0
- package/dist/components/checkout/card-elements/index.d.ts +3 -0
- package/dist/components/checkout/card-elements/index.d.ts.map +1 -0
- package/dist/components/checkout/form/AddressSection.d.ts +53 -0
- package/dist/components/checkout/form/AddressSection.d.ts.map +1 -0
- package/dist/components/checkout/form/CardSection.d.ts +113 -0
- package/dist/components/checkout/form/CardSection.d.ts.map +1 -0
- package/dist/components/checkout/form/CardholderSection.d.ts +42 -0
- package/dist/components/checkout/form/CardholderSection.d.ts.map +1 -0
- package/dist/components/checkout/form/EmailField.d.ts +27 -0
- package/dist/components/checkout/form/EmailField.d.ts.map +1 -0
- package/dist/components/checkout/form/Form.d.ts +88 -0
- package/dist/components/checkout/form/Form.d.ts.map +1 -0
- package/dist/components/checkout/form/FormComponentManager.d.ts +116 -0
- package/dist/components/checkout/form/FormComponentManager.d.ts.map +1 -0
- package/dist/components/checkout/form/FormEventHandler.d.ts +34 -0
- package/dist/components/checkout/form/FormEventHandler.d.ts.map +1 -0
- package/dist/components/checkout/form/FormStateCoordinator.d.ts +60 -0
- package/dist/components/checkout/form/FormStateCoordinator.d.ts.map +1 -0
- package/dist/components/checkout/form/FormUIManager.d.ts +34 -0
- package/dist/components/checkout/form/FormUIManager.d.ts.map +1 -0
- package/dist/components/checkout/form/PaymentMethods.d.ts +42 -0
- package/dist/components/checkout/form/PaymentMethods.d.ts.map +1 -0
- package/dist/components/checkout/form/PaymentSeparator.d.ts +11 -0
- package/dist/components/checkout/form/PaymentSeparator.d.ts.map +1 -0
- package/dist/components/checkout/form/PhoneCountrySelector.d.ts +25 -0
- package/dist/components/checkout/form/PhoneCountrySelector.d.ts.map +1 -0
- package/dist/components/checkout/form/PhoneNumberField.d.ts +51 -0
- package/dist/components/checkout/form/PhoneNumberField.d.ts.map +1 -0
- package/dist/components/checkout/form/SubmitButton.d.ts +16 -0
- package/dist/components/checkout/form/SubmitButton.d.ts.map +1 -0
- package/dist/components/checkout/form/index.d.ts +10 -0
- package/dist/components/checkout/form/index.d.ts.map +1 -0
- package/dist/components/checkout/index.d.ts +2 -0
- package/dist/components/checkout/index.d.ts.map +1 -0
- package/dist/components/common/Alert.d.ts +12 -0
- package/dist/components/common/Alert.d.ts.map +1 -0
- package/dist/components/common/Button.d.ts +24 -0
- package/dist/components/common/Button.d.ts.map +1 -0
- package/dist/components/common/CountryDialCodeDropdown.d.ts +45 -0
- package/dist/components/common/CountryDialCodeDropdown.d.ts.map +1 -0
- package/dist/components/common/FormSkeleton.d.ts +8 -0
- package/dist/components/common/FormSkeleton.d.ts.map +1 -0
- package/dist/components/common/HelperText.d.ts +15 -0
- package/dist/components/common/HelperText.d.ts.map +1 -0
- package/dist/components/common/Input.d.ts +37 -0
- package/dist/components/common/Input.d.ts.map +1 -0
- package/dist/components/common/InputLabel.d.ts +15 -0
- package/dist/components/common/InputLabel.d.ts.map +1 -0
- package/dist/components/common/Select.d.ts +54 -0
- package/dist/components/common/Select.d.ts.map +1 -0
- package/dist/components/common/Spinner.d.ts +11 -0
- package/dist/components/common/Spinner.d.ts.map +1 -0
- package/dist/components/common/index.d.ts +8 -0
- package/dist/components/common/index.d.ts.map +1 -0
- package/dist/components/payment-methods/applePay/ApplePayButton.d.ts +43 -0
- package/dist/components/payment-methods/applePay/ApplePayButton.d.ts.map +1 -0
- package/dist/components/payment-methods/index.d.ts +3 -0
- package/dist/components/payment-methods/index.d.ts.map +1 -0
- package/dist/components/payment-methods/paypal/PaypalButton.d.ts +21 -0
- package/dist/components/payment-methods/paypal/PaypalButton.d.ts.map +1 -0
- package/dist/core/api/CheckoutAPI.service.d.ts +36 -0
- package/dist/core/api/CheckoutAPI.service.d.ts.map +1 -0
- package/dist/core/constants/emailDomains.constant.d.ts +2 -0
- package/dist/core/constants/emailDomains.constant.d.ts.map +1 -0
- package/dist/core/index.d.ts +4 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/state/CheckoutState.service.d.ts +13 -0
- package/dist/core/state/CheckoutState.service.d.ts.map +1 -0
- package/dist/core/validation/index.d.ts +2 -0
- package/dist/core/validation/index.d.ts.map +1 -0
- package/dist/core/vgs/VGSCollectService.d.ts +102 -0
- package/dist/core/vgs/VGSCollectService.d.ts.map +1 -0
- package/dist/core/vgs/index.d.ts +4 -0
- package/dist/core/vgs/index.d.ts.map +1 -0
- package/dist/core/vgs/vgs.constants.d.ts +4 -0
- package/dist/core/vgs/vgs.constants.d.ts.map +1 -0
- package/dist/core/vgs/vgsFieldErrors.d.ts +8 -0
- package/dist/core/vgs/vgsFieldErrors.d.ts.map +1 -0
- package/dist/elements/AddressCityElement.d.ts +12 -0
- package/dist/elements/AddressCityElement.d.ts.map +1 -0
- package/dist/elements/AddressCountryElement.d.ts +14 -0
- package/dist/elements/AddressCountryElement.d.ts.map +1 -0
- package/dist/elements/AddressFirstNameElement.d.ts +12 -0
- package/dist/elements/AddressFirstNameElement.d.ts.map +1 -0
- package/dist/elements/AddressLastNameElement.d.ts +12 -0
- package/dist/elements/AddressLastNameElement.d.ts.map +1 -0
- package/dist/elements/AddressStateElement.d.ts +16 -0
- package/dist/elements/AddressStateElement.d.ts.map +1 -0
- package/dist/elements/AddressStreetElement.d.ts +12 -0
- package/dist/elements/AddressStreetElement.d.ts.map +1 -0
- package/dist/elements/AddressZipCodeElement.d.ts +12 -0
- package/dist/elements/AddressZipCodeElement.d.ts.map +1 -0
- package/dist/elements/ApplePayElement.d.ts +41 -0
- package/dist/elements/ApplePayElement.d.ts.map +1 -0
- package/dist/elements/BaseElement.d.ts +28 -0
- package/dist/elements/BaseElement.d.ts.map +1 -0
- package/dist/elements/CardElement.d.ts +32 -0
- package/dist/elements/CardElement.d.ts.map +1 -0
- package/dist/elements/CardholderElement.d.ts +12 -0
- package/dist/elements/CardholderElement.d.ts.map +1 -0
- package/dist/elements/EmailElement.d.ts +12 -0
- package/dist/elements/EmailElement.d.ts.map +1 -0
- package/dist/elements/ErrorElement.d.ts +13 -0
- package/dist/elements/ErrorElement.d.ts.map +1 -0
- package/dist/elements/OdusElements.d.ts +79 -0
- package/dist/elements/OdusElements.d.ts.map +1 -0
- package/dist/elements/PayPalElement.d.ts +17 -0
- package/dist/elements/PayPalElement.d.ts.map +1 -0
- package/dist/elements/PhoneElement.d.ts +13 -0
- package/dist/elements/PhoneElement.d.ts.map +1 -0
- package/dist/elements/card/NativeCardAdapter.d.ts +35 -0
- package/dist/elements/card/NativeCardAdapter.d.ts.map +1 -0
- package/dist/elements/card/VgsCardAdapter.d.ts +31 -0
- package/dist/elements/card/VgsCardAdapter.d.ts.map +1 -0
- package/dist/elements/cardElement.constants.d.ts +5 -0
- package/dist/elements/cardElement.constants.d.ts.map +1 -0
- package/dist/elements/index.d.ts +19 -0
- package/dist/elements/index.d.ts.map +1 -0
- package/dist/elements/theme/index.d.ts +26 -0
- package/dist/elements/theme/index.d.ts.map +1 -0
- package/dist/elements/types/CardPayload.type.d.ts +13 -0
- package/dist/elements/types/CardPayload.type.d.ts.map +1 -0
- package/dist/elements/types/index.d.ts +65 -0
- package/dist/elements/types/index.d.ts.map +1 -0
- package/dist/elements.es.js +278 -223
- package/dist/factories/createCheckoutProfile.d.ts +25 -0
- package/dist/factories/createCheckoutProfile.d.ts.map +1 -0
- package/dist/factories/createForm.d.ts +21 -0
- package/dist/factories/createForm.d.ts.map +1 -0
- package/dist/factories/createTranslation.d.ts +13 -0
- package/dist/factories/createTranslation.d.ts.map +1 -0
- package/dist/factories/index.d.ts +4 -0
- package/dist/factories/index.d.ts.map +1 -0
- package/dist/index.css +1 -1
- package/dist/locales/cs.json.d.ts +77 -0
- package/dist/locales/de.json.d.ts +77 -0
- package/dist/locales/en.json.d.ts +77 -0
- package/dist/locales/es.json.d.ts +77 -0
- package/dist/locales/fr.json.d.ts +77 -0
- package/dist/locales/it.json.d.ts +77 -0
- package/dist/locales/nl.json.d.ts +77 -0
- package/dist/locales/pl.json.d.ts +77 -0
- package/dist/locales/pt.json.d.ts +77 -0
- package/dist/locales/sk.json.d.ts +77 -0
- package/dist/locales/tr.json.d.ts +77 -0
- package/dist/package.json +2 -2
- package/dist/phone.js +588 -613
- package/dist/services/checkout/Checkout.service.d.ts +30 -0
- package/dist/services/checkout/Checkout.service.d.ts.map +1 -0
- package/dist/services/checkout/CheckoutAPI.service.d.ts +2 -0
- package/dist/services/checkout/CheckoutAPI.service.d.ts.map +1 -0
- package/dist/services/checkout/CheckoutForm.service.d.ts +53 -0
- package/dist/services/checkout/CheckoutForm.service.d.ts.map +1 -0
- package/dist/services/checkout/CheckoutState.service.d.ts +2 -0
- package/dist/services/checkout/CheckoutState.service.d.ts.map +1 -0
- package/dist/services/i18n/Translation.service.d.ts +15 -0
- package/dist/services/i18n/Translation.service.d.ts.map +1 -0
- package/dist/services/telemetry/Telemetry.service.d.ts +15 -0
- package/dist/services/telemetry/Telemetry.service.d.ts.map +1 -0
- package/dist/shared.js +28 -25
- package/dist/state/EventBus.d.ts +33 -0
- package/dist/state/EventBus.d.ts.map +1 -0
- package/dist/state/Store.d.ts +42 -0
- package/dist/state/Store.d.ts.map +1 -0
- package/dist/state/TranslationStore.d.ts +28 -0
- package/dist/state/TranslationStore.d.ts.map +1 -0
- package/dist/state/index.d.ts +4 -0
- package/dist/state/index.d.ts.map +1 -0
- package/dist/types/api/ApiError.type.d.ts +7 -0
- package/dist/types/api/ApiError.type.d.ts.map +1 -0
- package/dist/types/checkout/CheckoutCallback.type.d.ts +8 -0
- package/dist/types/checkout/CheckoutCallback.type.d.ts.map +1 -0
- package/dist/types/checkout/CheckoutConfig.type.d.ts +128 -0
- package/dist/types/checkout/CheckoutConfig.type.d.ts.map +1 -0
- package/dist/types/checkout/CheckoutInstance.type.d.ts +16 -0
- package/dist/types/checkout/CheckoutInstance.type.d.ts.map +1 -0
- package/dist/types/checkout/CheckoutProfile.type.d.ts +77 -0
- package/dist/types/checkout/CheckoutProfile.type.d.ts.map +1 -0
- package/dist/types/checkout/CheckoutState.type.d.ts +5 -0
- package/dist/types/checkout/CheckoutState.type.d.ts.map +1 -0
- package/dist/types/common/FormData.type.d.ts +42 -0
- package/dist/types/common/FormData.type.d.ts.map +1 -0
- package/dist/types/common/FormErrors.type.d.ts +9 -0
- package/dist/types/common/FormErrors.type.d.ts.map +1 -0
- package/dist/types/common/FormTouched.type.d.ts +9 -0
- package/dist/types/common/FormTouched.type.d.ts.map +1 -0
- package/dist/types/common/Locale.type.d.ts +2 -0
- package/dist/types/common/Locale.type.d.ts.map +1 -0
- package/dist/types/common/createIframeConfig.type.d.ts +2 -0
- package/dist/types/common/createIframeConfig.type.d.ts.map +1 -0
- package/dist/types/payment/CardType.type.d.ts +2 -0
- package/dist/types/payment/CardType.type.d.ts.map +1 -0
- package/dist/types/payment/Payment.type.d.ts +126 -0
- package/dist/types/payment/Payment.type.d.ts.map +1 -0
- package/dist/types/payment/PaymentMethod.type.d.ts +15 -0
- package/dist/types/payment/PaymentMethod.type.d.ts.map +1 -0
- package/dist/types/payment/PaymentResult.type.d.ts +2 -0
- package/dist/types/payment/PaymentResult.type.d.ts.map +1 -0
- package/dist/types/telemetry/TelemetryEvents.type.d.ts +62 -0
- package/dist/types/telemetry/TelemetryEvents.type.d.ts.map +1 -0
- package/dist/utils/applePay/isApplePayAvailable.util.d.ts +2 -0
- package/dist/utils/applePay/isApplePayAvailable.util.d.ts.map +1 -0
- package/dist/utils/card/detectCardBrand.d.ts +3 -0
- package/dist/utils/card/detectCardBrand.d.ts.map +1 -0
- package/dist/utils/card/luhnCheck.d.ts +7 -0
- package/dist/utils/card/luhnCheck.d.ts.map +1 -0
- package/dist/utils/country/countryNames.d.ts +36 -0
- package/dist/utils/country/countryNames.d.ts.map +1 -0
- package/dist/utils/dom/appendGoogleFont.d.ts +7 -0
- package/dist/utils/dom/appendGoogleFont.d.ts.map +1 -0
- package/dist/utils/dom/createSyntheticEvent.util.d.ts +12 -0
- package/dist/utils/dom/createSyntheticEvent.util.d.ts.map +1 -0
- package/dist/utils/dom/fetchGoogleFontFace.d.ts +2 -0
- package/dist/utils/dom/fetchGoogleFontFace.d.ts.map +1 -0
- package/dist/utils/dom/index.d.ts +5 -0
- package/dist/utils/dom/index.d.ts.map +1 -0
- package/dist/utils/dom/restoreCursorAfterFormat.util.d.ts +2 -0
- package/dist/utils/dom/restoreCursorAfterFormat.util.d.ts.map +1 -0
- package/dist/utils/focus/FocusManager.d.ts +57 -0
- package/dist/utils/focus/FocusManager.d.ts.map +1 -0
- package/dist/utils/focus/index.d.ts +2 -0
- package/dist/utils/focus/index.d.ts.map +1 -0
- package/dist/utils/formatters/formatters.d.ts +6 -0
- package/dist/utils/formatters/formatters.d.ts.map +1 -0
- package/dist/utils/helpers/checkForMissingDot.util.d.ts +2 -0
- package/dist/utils/helpers/checkForMissingDot.util.d.ts.map +1 -0
- package/dist/utils/helpers/environments/getBaseUrl.dev.d.ts +2 -0
- package/dist/utils/helpers/environments/getBaseUrl.dev.d.ts.map +1 -0
- package/dist/utils/helpers/environments/getBaseUrl.prod.d.ts +3 -0
- package/dist/utils/helpers/environments/getBaseUrl.prod.d.ts.map +1 -0
- package/dist/utils/helpers/findSimilarDomains.util.d.ts +2 -0
- package/dist/utils/helpers/findSimilarDomains.util.d.ts.map +1 -0
- package/dist/utils/helpers/getBaseUrl.util.d.ts +3 -0
- package/dist/utils/helpers/getBaseUrl.util.d.ts.map +1 -0
- package/dist/utils/helpers/getTelemetryUrl.util.d.ts +3 -0
- package/dist/utils/helpers/getTelemetryUrl.util.d.ts.map +1 -0
- package/dist/utils/helpers/hasAddressConfiguration.util.d.ts +10 -0
- package/dist/utils/helpers/hasAddressConfiguration.util.d.ts.map +1 -0
- package/dist/utils/helpers/isLocalhost.util.d.ts +2 -0
- package/dist/utils/helpers/isLocalhost.util.d.ts.map +1 -0
- package/dist/utils/helpers/levenshteinDistance.util.d.ts +2 -0
- package/dist/utils/helpers/levenshteinDistance.util.d.ts.map +1 -0
- package/dist/utils/helpers/styleUtils.d.ts +20 -0
- package/dist/utils/helpers/styleUtils.d.ts.map +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/phone/countryDialCodes.d.ts +23 -0
- package/dist/utils/phone/countryDialCodes.d.ts.map +1 -0
- package/dist/utils/phone/lazyPhoneModule.d.ts +6 -0
- package/dist/utils/phone/lazyPhoneModule.d.ts.map +1 -0
- package/dist/utils/phone/phoneBundle.d.ts +4 -0
- package/dist/utils/phone/phoneBundle.d.ts.map +1 -0
- package/dist/utils/phone/phoneFormatter.d.ts +32 -0
- package/dist/utils/phone/phoneFormatter.d.ts.map +1 -0
- package/dist/utils/state/stateNames.d.ts +20 -0
- package/dist/utils/state/stateNames.d.ts.map +1 -0
- package/dist/utils/validation/createValidationSchema.d.ts +21 -0
- package/dist/utils/validation/createValidationSchema.d.ts.map +1 -0
- package/dist/utils/validation/emailValidator.d.ts +15 -0
- package/dist/utils/validation/emailValidator.d.ts.map +1 -0
- package/dist/utils/validation/index.d.ts +3 -0
- package/dist/utils/validation/index.d.ts.map +1 -0
- package/package.json +2 -2
package/dist/phone.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as e,
|
|
1
|
+
import { _ as e, d as t, f as n, g as r, p as i, v as a, x as o } from "./shared.js";
|
|
2
2
|
//#region libs/checkout/src/utils/dom/restoreCursorAfterFormat.util.ts
|
|
3
3
|
var s = (e, t, n) => {
|
|
4
4
|
let r = 0, i = n.length;
|
|
@@ -4504,26 +4504,17 @@ var s = (e, t, n) => {
|
|
|
4504
4504
|
"00",
|
|
4505
4505
|
"(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",
|
|
4506
4506
|
[7, 9],
|
|
4507
|
-
[
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
"0$1"
|
|
4519
|
-
],
|
|
4520
|
-
[
|
|
4521
|
-
"(\\d{3})(\\d{2})(\\d{2})(\\d{2})",
|
|
4522
|
-
"$1 $2 $3 $4",
|
|
4523
|
-
["[137-9]"],
|
|
4524
|
-
"0$1"
|
|
4525
|
-
]
|
|
4526
|
-
],
|
|
4507
|
+
[[
|
|
4508
|
+
"(\\d)(\\d{3})(\\d{3})",
|
|
4509
|
+
"$1 $2 $3",
|
|
4510
|
+
["1[2-9]"],
|
|
4511
|
+
"0$1"
|
|
4512
|
+
], [
|
|
4513
|
+
"(\\d{3})(\\d{2})(\\d{2})(\\d{2})",
|
|
4514
|
+
"$1 $2 $3 $4",
|
|
4515
|
+
["[1-37-9]"],
|
|
4516
|
+
"0$1"
|
|
4517
|
+
]],
|
|
4527
4518
|
"0"
|
|
4528
4519
|
],
|
|
4529
4520
|
MX: [
|
|
@@ -5864,7 +5855,7 @@ var s = (e, t, n) => {
|
|
|
5864
5855
|
[
|
|
5865
5856
|
"(\\d{2})(\\d{3})(\\d{3})",
|
|
5866
5857
|
"$1 $2 $3",
|
|
5867
|
-
["[37][01]|4[
|
|
5858
|
+
["[37][01]|4[013]|51|6"],
|
|
5868
5859
|
"0$1"
|
|
5869
5860
|
],
|
|
5870
5861
|
[
|
|
@@ -6806,7 +6797,7 @@ var s = (e, t, n) => {
|
|
|
6806
6797
|
VN: [
|
|
6807
6798
|
"84",
|
|
6808
6799
|
"00",
|
|
6809
|
-
"[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|
|
|
6800
|
+
"[12]\\d{9}|[135-9]\\d{8}|[16]\\d{6,7}|7\\d{6}",
|
|
6810
6801
|
[
|
|
6811
6802
|
7,
|
|
6812
6803
|
8,
|
|
@@ -6814,13 +6805,6 @@ var s = (e, t, n) => {
|
|
|
6814
6805
|
10
|
|
6815
6806
|
],
|
|
6816
6807
|
[
|
|
6817
|
-
[
|
|
6818
|
-
"(\\d{2})(\\d{5})",
|
|
6819
|
-
"$1 $2",
|
|
6820
|
-
["80"],
|
|
6821
|
-
"0$1",
|
|
6822
|
-
1
|
|
6823
|
-
],
|
|
6824
6808
|
[
|
|
6825
6809
|
"(\\d{4})(\\d{4,6})",
|
|
6826
6810
|
"$1 $2",
|
|
@@ -7494,20 +7478,20 @@ function h(e) {
|
|
|
7494
7478
|
function g(e, t) {
|
|
7495
7479
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
7496
7480
|
}
|
|
7497
|
-
function
|
|
7481
|
+
function _(e, t) {
|
|
7498
7482
|
for (var n = 0; n < t.length; n++) {
|
|
7499
7483
|
var r = t[n];
|
|
7500
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
7484
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, ee(r.key), r);
|
|
7501
7485
|
}
|
|
7502
7486
|
}
|
|
7503
|
-
function
|
|
7504
|
-
return t &&
|
|
7487
|
+
function v(e, t, n) {
|
|
7488
|
+
return t && _(e.prototype, t), n && _(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
7505
7489
|
}
|
|
7506
|
-
function
|
|
7507
|
-
var t =
|
|
7490
|
+
function ee(e) {
|
|
7491
|
+
var t = te(e, "string");
|
|
7508
7492
|
return h(t) == "symbol" ? t : t + "";
|
|
7509
7493
|
}
|
|
7510
|
-
function
|
|
7494
|
+
function te(e, t) {
|
|
7511
7495
|
if (h(e) != "object" || !e) return e;
|
|
7512
7496
|
var n = e[Symbol.toPrimitive];
|
|
7513
7497
|
if (n !== void 0) {
|
|
@@ -7517,11 +7501,11 @@ function ne(e, t) {
|
|
|
7517
7501
|
}
|
|
7518
7502
|
return (t === "string" ? String : Number)(e);
|
|
7519
7503
|
}
|
|
7520
|
-
var
|
|
7504
|
+
var ne = "1.2.0", re = "1.7.35", ie = " ext. ", y = /*#__PURE__*/ function() {
|
|
7521
7505
|
function e(t) {
|
|
7522
|
-
g(this, e),
|
|
7506
|
+
g(this, e), ue(t), this.metadata = t, me.call(this, t);
|
|
7523
7507
|
}
|
|
7524
|
-
return
|
|
7508
|
+
return v(e, [
|
|
7525
7509
|
{
|
|
7526
7510
|
key: "getCountries",
|
|
7527
7511
|
value: function() {
|
|
@@ -7579,10 +7563,10 @@ var re = "1.2.0", ie = "1.7.35", ae = " ext. ", v = /*#__PURE__*/ function() {
|
|
|
7579
7563
|
if (e && (m(e) ? r = e : n = e), t && (r = t), n && n !== "001") {
|
|
7580
7564
|
var i = this.getCountryMetadata(n);
|
|
7581
7565
|
if (!i) throw Error(`Unknown country: ${n}`);
|
|
7582
|
-
this.numberingPlan = new
|
|
7566
|
+
this.numberingPlan = new ae(i, this);
|
|
7583
7567
|
} else if (r) {
|
|
7584
7568
|
if (!this.hasCallingCode(r)) throw Error(`Unknown calling code: ${r}`);
|
|
7585
|
-
this.numberingPlan = new
|
|
7569
|
+
this.numberingPlan = new ae(this.getNumberingPlanMetadata(r), this);
|
|
7586
7570
|
} else this.numberingPlan = void 0;
|
|
7587
7571
|
return this;
|
|
7588
7572
|
}
|
|
@@ -7706,11 +7690,11 @@ var re = "1.2.0", ie = "1.7.35", ae = " ext. ", v = /*#__PURE__*/ function() {
|
|
|
7706
7690
|
}
|
|
7707
7691
|
}
|
|
7708
7692
|
]);
|
|
7709
|
-
}(),
|
|
7693
|
+
}(), ae = /*#__PURE__*/ function() {
|
|
7710
7694
|
function e(t, n) {
|
|
7711
|
-
g(this, e), this.globalMetadataObject = n, this.metadata = t,
|
|
7695
|
+
g(this, e), this.globalMetadataObject = n, this.metadata = t, me.call(this, n.metadata);
|
|
7712
7696
|
}
|
|
7713
|
-
return
|
|
7697
|
+
return v(e, [
|
|
7714
7698
|
{
|
|
7715
7699
|
key: "callingCode",
|
|
7716
7700
|
value: function() {
|
|
@@ -7764,7 +7748,7 @@ var re = "1.2.0", ie = "1.7.35", ae = " ext. ", v = /*#__PURE__*/ function() {
|
|
|
7764
7748
|
value: function() {
|
|
7765
7749
|
var e = this;
|
|
7766
7750
|
return (this._getFormats(this.metadata) || this._getFormats(this._getDefaultCountryMetadataForThisCallingCode()) || []).map(function(t) {
|
|
7767
|
-
return new
|
|
7751
|
+
return new oe(t, e);
|
|
7768
7752
|
});
|
|
7769
7753
|
}
|
|
7770
7754
|
},
|
|
@@ -7837,21 +7821,21 @@ var re = "1.2.0", ie = "1.7.35", ae = " ext. ", v = /*#__PURE__*/ function() {
|
|
|
7837
7821
|
{
|
|
7838
7822
|
key: "type",
|
|
7839
7823
|
value: function(e) {
|
|
7840
|
-
if (this.hasTypes() &&
|
|
7824
|
+
if (this.hasTypes() && le(this.types(), e)) return new ce(le(this.types(), e), this);
|
|
7841
7825
|
}
|
|
7842
7826
|
},
|
|
7843
7827
|
{
|
|
7844
7828
|
key: "ext",
|
|
7845
7829
|
value: function() {
|
|
7846
|
-
return this.v1 || this.v2 ?
|
|
7830
|
+
return this.v1 || this.v2 ? ie : this.metadata[13] || ie;
|
|
7847
7831
|
}
|
|
7848
7832
|
}
|
|
7849
7833
|
]);
|
|
7850
|
-
}(),
|
|
7834
|
+
}(), oe = /*#__PURE__*/ function() {
|
|
7851
7835
|
function e(t, n) {
|
|
7852
7836
|
g(this, e), this._format = t, this.metadata = n;
|
|
7853
7837
|
}
|
|
7854
|
-
return
|
|
7838
|
+
return v(e, [
|
|
7855
7839
|
{
|
|
7856
7840
|
key: "pattern",
|
|
7857
7841
|
value: function() {
|
|
@@ -7891,7 +7875,7 @@ var re = "1.2.0", ie = "1.7.35", ae = " ext. ", v = /*#__PURE__*/ function() {
|
|
|
7891
7875
|
{
|
|
7892
7876
|
key: "usesNationalPrefix",
|
|
7893
7877
|
value: function() {
|
|
7894
|
-
return !!(this.nationalPrefixFormattingRule() && !
|
|
7878
|
+
return !!(this.nationalPrefixFormattingRule() && !se.test(this.nationalPrefixFormattingRule()));
|
|
7895
7879
|
}
|
|
7896
7880
|
},
|
|
7897
7881
|
{
|
|
@@ -7901,11 +7885,11 @@ var re = "1.2.0", ie = "1.7.35", ae = " ext. ", v = /*#__PURE__*/ function() {
|
|
|
7901
7885
|
}
|
|
7902
7886
|
}
|
|
7903
7887
|
]);
|
|
7904
|
-
}(),
|
|
7888
|
+
}(), se = /^\(?\$1\)?$/, ce = /*#__PURE__*/ function() {
|
|
7905
7889
|
function e(t, n) {
|
|
7906
7890
|
g(this, e), this.type = t, this.metadata = n;
|
|
7907
7891
|
}
|
|
7908
|
-
return
|
|
7892
|
+
return v(e, [{
|
|
7909
7893
|
key: "pattern",
|
|
7910
7894
|
value: function() {
|
|
7911
7895
|
return this.metadata.v1 ? this.type : this.type[0];
|
|
@@ -7917,7 +7901,7 @@ var re = "1.2.0", ie = "1.7.35", ae = " ext. ", v = /*#__PURE__*/ function() {
|
|
|
7917
7901
|
}
|
|
7918
7902
|
}]);
|
|
7919
7903
|
}();
|
|
7920
|
-
function
|
|
7904
|
+
function le(e, t) {
|
|
7921
7905
|
switch (t) {
|
|
7922
7906
|
case "FIXED_LINE": return e[0];
|
|
7923
7907
|
case "MOBILE": return e[1];
|
|
@@ -7931,32 +7915,32 @@ function ue(e, t) {
|
|
|
7931
7915
|
case "SHARED_COST": return e[9];
|
|
7932
7916
|
}
|
|
7933
7917
|
}
|
|
7934
|
-
function
|
|
7918
|
+
function ue(e) {
|
|
7935
7919
|
if (!e) throw Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");
|
|
7936
|
-
if (!f(e) || !f(e.countries)) throw Error(`[libphonenumber-js] \`metadata\` argument was passed but it's not a valid metadata. Must be an object having \`.countries\` child object property. Got ${f(e) ? "an object of shape: { " + Object.keys(e).join(", ") + " }" : "a " +
|
|
7920
|
+
if (!f(e) || !f(e.countries)) throw Error(`[libphonenumber-js] \`metadata\` argument was passed but it's not a valid metadata. Must be an object having \`.countries\` child object property. Got ${f(e) ? "an object of shape: { " + Object.keys(e).join(", ") + " }" : "a " + de(e) + ": " + e}.`);
|
|
7937
7921
|
}
|
|
7938
7922
|
/* istanbul ignore next */
|
|
7939
|
-
var
|
|
7923
|
+
var de = function(e) {
|
|
7940
7924
|
return h(e);
|
|
7941
7925
|
};
|
|
7942
|
-
function
|
|
7943
|
-
var n = new
|
|
7926
|
+
function fe(e, t) {
|
|
7927
|
+
var n = new y(t);
|
|
7944
7928
|
if (n.hasCountry(e)) return n.selectNumberingPlan(e).countryCallingCode();
|
|
7945
7929
|
throw Error(`Unknown country: ${e}`);
|
|
7946
7930
|
}
|
|
7947
|
-
function
|
|
7931
|
+
function pe(e, t) {
|
|
7948
7932
|
return t.countries.hasOwnProperty(e);
|
|
7949
7933
|
}
|
|
7950
|
-
function
|
|
7934
|
+
function me(e) {
|
|
7951
7935
|
var t = e.version;
|
|
7952
|
-
typeof t == "number" ? (this.v1 = t === 1, this.v2 = t === 2, this.v3 = t === 3, this.v4 = t === 4) : t ? u(t,
|
|
7936
|
+
typeof t == "number" ? (this.v1 = t === 1, this.v2 = t === 2, this.v3 = t === 3, this.v4 = t === 4) : t ? u(t, ne) === -1 ? this.v2 = !0 : u(t, re) === -1 ? this.v3 = !0 : this.v4 = !0 : this.v1 = !0;
|
|
7953
7937
|
}
|
|
7954
7938
|
//#endregion
|
|
7955
7939
|
//#region node_modules/libphonenumber-js/es6/helpers/mergeArrays.js
|
|
7956
|
-
function
|
|
7940
|
+
function he(e, t) {
|
|
7957
7941
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
7958
7942
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
7959
|
-
if (Array.isArray(e) || (n =
|
|
7943
|
+
if (Array.isArray(e) || (n = ge(e)) || t && e && typeof e.length == "number") {
|
|
7960
7944
|
n && (e = n);
|
|
7961
7945
|
var r = 0;
|
|
7962
7946
|
return function() {
|
|
@@ -7968,20 +7952,20 @@ function ge(e, t) {
|
|
|
7968
7952
|
}
|
|
7969
7953
|
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7970
7954
|
}
|
|
7971
|
-
function
|
|
7955
|
+
function ge(e, t) {
|
|
7972
7956
|
if (e) {
|
|
7973
|
-
if (typeof e == "string") return
|
|
7957
|
+
if (typeof e == "string") return _e(e, t);
|
|
7974
7958
|
var n = {}.toString.call(e).slice(8, -1);
|
|
7975
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
7959
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? _e(e, t) : void 0;
|
|
7976
7960
|
}
|
|
7977
7961
|
}
|
|
7978
|
-
function
|
|
7962
|
+
function _e(e, t) {
|
|
7979
7963
|
(t == null || t > e.length) && (t = e.length);
|
|
7980
7964
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
7981
7965
|
return r;
|
|
7982
7966
|
}
|
|
7983
|
-
function
|
|
7984
|
-
for (var n = e.slice(), r =
|
|
7967
|
+
function ve(e, t) {
|
|
7968
|
+
for (var n = e.slice(), r = he(t), i; !(i = r()).done;) {
|
|
7985
7969
|
var a = i.value;
|
|
7986
7970
|
e.indexOf(a) < 0 && n.push(a);
|
|
7987
7971
|
}
|
|
@@ -7991,28 +7975,28 @@ function ye(e, t) {
|
|
|
7991
7975
|
}
|
|
7992
7976
|
//#endregion
|
|
7993
7977
|
//#region node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js
|
|
7994
|
-
function
|
|
7995
|
-
return
|
|
7978
|
+
function b(e, t, n) {
|
|
7979
|
+
return ye(e, void 0, t, n);
|
|
7996
7980
|
}
|
|
7997
|
-
function
|
|
7998
|
-
n && (r = new
|
|
7981
|
+
function ye(e, t, n, r) {
|
|
7982
|
+
n && (r = new y(r.metadata), r.selectNumberingPlan(n));
|
|
7999
7983
|
var i = r.type(t), a = i && i.possibleLengths() || r.possibleLengths();
|
|
8000
7984
|
if (!a) return "IS_POSSIBLE";
|
|
8001
7985
|
if (t === "FIXED_LINE_OR_MOBILE") {
|
|
8002
7986
|
/* istanbul ignore next */
|
|
8003
|
-
if (!r.type("FIXED_LINE")) return
|
|
7987
|
+
if (!r.type("FIXED_LINE")) return ye(e, "MOBILE", n, r);
|
|
8004
7988
|
var o = r.type("MOBILE");
|
|
8005
|
-
o && (a =
|
|
7989
|
+
o && (a = ve(a, o.possibleLengths()));
|
|
8006
7990
|
} else if (t && !i) return "INVALID_LENGTH";
|
|
8007
7991
|
var s = e.length, c = a[0];
|
|
8008
7992
|
return c === s ? "IS_POSSIBLE" : c > s ? "TOO_SHORT" : a[a.length - 1] < s ? "TOO_LONG" : a.indexOf(s, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
|
|
8009
7993
|
}
|
|
8010
7994
|
//#endregion
|
|
8011
7995
|
//#region node_modules/libphonenumber-js/es6/isPossible.js
|
|
8012
|
-
function
|
|
7996
|
+
function be(e, t, n) {
|
|
8013
7997
|
/* istanbul ignore if */
|
|
8014
7998
|
t === void 0 && (t = {});
|
|
8015
|
-
var r = new
|
|
7999
|
+
var r = new y(n);
|
|
8016
8000
|
if (t.v2) {
|
|
8017
8001
|
if (!e.countryCallingCode) throw Error("Invalid phone number object passed");
|
|
8018
8002
|
r.selectNumberingPlan(e.country || e.countryCallingCode);
|
|
@@ -8026,27 +8010,27 @@ function xe(e, t, n) {
|
|
|
8026
8010
|
r.selectNumberingPlan(e.countryCallingCode);
|
|
8027
8011
|
}
|
|
8028
8012
|
}
|
|
8029
|
-
if (r.possibleLengths()) return
|
|
8013
|
+
if (r.possibleLengths()) return xe(e.phone || e.nationalNumber, r);
|
|
8030
8014
|
if (e.countryCallingCode && r.isNonGeographicCallingCode(e.countryCallingCode)) return !0;
|
|
8031
8015
|
throw Error("Missing \"possibleLengths\" in metadata. Perhaps the metadata has been generated before v1.0.18.");
|
|
8032
8016
|
}
|
|
8033
|
-
function
|
|
8034
|
-
switch (
|
|
8017
|
+
function xe(e, t) {
|
|
8018
|
+
switch (b(e, void 0, t)) {
|
|
8035
8019
|
case "IS_POSSIBLE": return !0;
|
|
8036
8020
|
default: return !1;
|
|
8037
8021
|
}
|
|
8038
8022
|
}
|
|
8039
8023
|
//#endregion
|
|
8040
8024
|
//#region node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js
|
|
8041
|
-
function
|
|
8025
|
+
function x(e, t) {
|
|
8042
8026
|
return e ||= "", RegExp("^(?:" + t + ")$").test(e);
|
|
8043
8027
|
}
|
|
8044
8028
|
//#endregion
|
|
8045
8029
|
//#region node_modules/libphonenumber-js/es6/helpers/getNumberType.js
|
|
8046
|
-
function
|
|
8030
|
+
function Se(e, t) {
|
|
8047
8031
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
8048
8032
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
8049
|
-
if (Array.isArray(e) || (n =
|
|
8033
|
+
if (Array.isArray(e) || (n = Ce(e)) || t && e && typeof e.length == "number") {
|
|
8050
8034
|
n && (e = n);
|
|
8051
8035
|
var r = 0;
|
|
8052
8036
|
return function() {
|
|
@@ -8058,19 +8042,19 @@ function Ce(e, t) {
|
|
|
8058
8042
|
}
|
|
8059
8043
|
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8060
8044
|
}
|
|
8061
|
-
function
|
|
8045
|
+
function Ce(e, t) {
|
|
8062
8046
|
if (e) {
|
|
8063
|
-
if (typeof e == "string") return
|
|
8047
|
+
if (typeof e == "string") return we(e, t);
|
|
8064
8048
|
var n = {}.toString.call(e).slice(8, -1);
|
|
8065
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
8049
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? we(e, t) : void 0;
|
|
8066
8050
|
}
|
|
8067
8051
|
}
|
|
8068
|
-
function
|
|
8052
|
+
function we(e, t) {
|
|
8069
8053
|
(t == null || t > e.length) && (t = e.length);
|
|
8070
8054
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
8071
8055
|
return r;
|
|
8072
8056
|
}
|
|
8073
|
-
var
|
|
8057
|
+
var Te = [
|
|
8074
8058
|
"MOBILE",
|
|
8075
8059
|
"PREMIUM_RATE",
|
|
8076
8060
|
"TOLL_FREE",
|
|
@@ -8081,77 +8065,74 @@ var Ee = [
|
|
|
8081
8065
|
"UAN",
|
|
8082
8066
|
"VOICEMAIL"
|
|
8083
8067
|
];
|
|
8084
|
-
function
|
|
8068
|
+
function S(e, t, n) {
|
|
8085
8069
|
if (t ||= {}, !(!e.country && !e.countryCallingCode)) {
|
|
8086
|
-
var r = new
|
|
8070
|
+
var r = new y(n);
|
|
8087
8071
|
r.selectNumberingPlan(e.country || e.countryCallingCode);
|
|
8088
8072
|
var i = t.v2 ? e.nationalNumber : e.phone;
|
|
8089
|
-
if (
|
|
8090
|
-
if (
|
|
8091
|
-
for (var a =
|
|
8073
|
+
if (x(i, r.nationalNumberPattern())) {
|
|
8074
|
+
if (Ee(i, "FIXED_LINE", r)) return r.type("MOBILE") && r.type("MOBILE").pattern() === "" || !r.type("MOBILE") || Ee(i, "MOBILE", r) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
|
|
8075
|
+
for (var a = Se(Te), o; !(o = a()).done;) {
|
|
8092
8076
|
var s = o.value;
|
|
8093
|
-
if (
|
|
8077
|
+
if (Ee(i, s, r)) return s;
|
|
8094
8078
|
}
|
|
8095
8079
|
}
|
|
8096
8080
|
}
|
|
8097
8081
|
}
|
|
8098
|
-
function
|
|
8082
|
+
function Ee(e, t, n) {
|
|
8099
8083
|
var r = n.type(t);
|
|
8100
|
-
return !r || !r.pattern() || r.possibleLengths() && r.possibleLengths().indexOf(e.length) < 0 ? !1 :
|
|
8084
|
+
return !r || !r.pattern() || r.possibleLengths() && r.possibleLengths().indexOf(e.length) < 0 ? !1 : x(e, r.pattern());
|
|
8101
8085
|
}
|
|
8102
8086
|
//#endregion
|
|
8103
8087
|
//#region node_modules/libphonenumber-js/es6/isValid.js
|
|
8104
|
-
function
|
|
8088
|
+
function De(e, t, n) {
|
|
8105
8089
|
t ||= {};
|
|
8106
|
-
var r = new
|
|
8107
|
-
return r.selectNumberingPlan(e.country || e.countryCallingCode), r.hasTypes() ?
|
|
8090
|
+
var r = new y(n);
|
|
8091
|
+
return r.selectNumberingPlan(e.country || e.countryCallingCode), r.hasTypes() ? S(e, t, r.metadata) !== void 0 : x(t.v2 ? e.nationalNumber : e.phone, r.nationalNumberPattern());
|
|
8108
8092
|
}
|
|
8109
8093
|
//#endregion
|
|
8110
8094
|
//#region node_modules/libphonenumber-js/es6/helpers/isCountryCode.js
|
|
8111
|
-
var
|
|
8112
|
-
function
|
|
8113
|
-
return
|
|
8095
|
+
var Oe = /^[A-Z]{2}$/;
|
|
8096
|
+
function ke(e) {
|
|
8097
|
+
return Oe.test(e);
|
|
8114
8098
|
}
|
|
8115
|
-
|
|
8116
|
-
|
|
8117
|
-
|
|
8118
|
-
function Ne(e, t) {
|
|
8119
|
-
var n, r, i = new v(t);
|
|
8120
|
-
return je(e) ? (n = e, i.selectNumberingPlan(n), r = i.countryCallingCode()) : (r = e, Me && i.isNonGeographicCallingCode(r) && (n = "001")), {
|
|
8099
|
+
function Ae(e, t) {
|
|
8100
|
+
var n, r, i = new y(t);
|
|
8101
|
+
return ke(e) ? (n = e, i.selectNumberingPlan(n), r = i.countryCallingCode()) : r = e, {
|
|
8121
8102
|
country: n,
|
|
8122
8103
|
callingCode: r
|
|
8123
8104
|
};
|
|
8124
8105
|
}
|
|
8125
8106
|
//#endregion
|
|
8126
8107
|
//#region node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js
|
|
8127
|
-
function
|
|
8128
|
-
var r = new
|
|
8108
|
+
function je(e, t, n) {
|
|
8109
|
+
var r = new y(n).getCountryCodesForCallingCode(e);
|
|
8129
8110
|
return r ? r.filter(function(e) {
|
|
8130
|
-
return
|
|
8111
|
+
return Me(t, e, n);
|
|
8131
8112
|
}) : [];
|
|
8132
8113
|
}
|
|
8133
|
-
function
|
|
8134
|
-
var r = new
|
|
8114
|
+
function Me(e, t, n) {
|
|
8115
|
+
var r = new y(n);
|
|
8135
8116
|
return r.selectNumberingPlan(t), r.numberingPlan.possibleLengths().indexOf(e.length) >= 0;
|
|
8136
8117
|
}
|
|
8137
8118
|
//#endregion
|
|
8138
8119
|
//#region node_modules/libphonenumber-js/es6/constants.js
|
|
8139
|
-
var
|
|
8140
|
-
function
|
|
8120
|
+
var C = "0-90-9٠-٩۰-۹", w = "-‐-―−ー-//.. \xA0 ()()[]\\[\\]~⁓∼~", T = "++", Ne = RegExp("([" + C + "])");
|
|
8121
|
+
function Pe(e, t, n, r) {
|
|
8141
8122
|
if (t) {
|
|
8142
|
-
var i = new
|
|
8123
|
+
var i = new y(r);
|
|
8143
8124
|
i.selectNumberingPlan(t || n);
|
|
8144
8125
|
var a = new RegExp(i.IDDPrefix());
|
|
8145
8126
|
if (e.search(a) === 0) {
|
|
8146
8127
|
e = e.slice(e.match(a)[0].length);
|
|
8147
|
-
var o = e.match(
|
|
8128
|
+
var o = e.match(Ne);
|
|
8148
8129
|
if (!(o && o[1] != null && o[1].length > 0 && o[1] === "0")) return e;
|
|
8149
8130
|
}
|
|
8150
8131
|
}
|
|
8151
8132
|
}
|
|
8152
8133
|
//#endregion
|
|
8153
8134
|
//#region node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js
|
|
8154
|
-
function
|
|
8135
|
+
function Fe(e, t) {
|
|
8155
8136
|
if (e && t.numberingPlan.nationalPrefixForParsing()) {
|
|
8156
8137
|
var n = RegExp("^(?:" + t.numberingPlan.nationalPrefixForParsing() + ")"), r = n.exec(e);
|
|
8157
8138
|
if (r) {
|
|
@@ -8177,10 +8158,10 @@ function Re(e, t) {
|
|
|
8177
8158
|
}
|
|
8178
8159
|
//#endregion
|
|
8179
8160
|
//#region node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js
|
|
8180
|
-
function
|
|
8161
|
+
function Ie(e, t) {
|
|
8181
8162
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
8182
8163
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
8183
|
-
if (Array.isArray(e) || (n =
|
|
8164
|
+
if (Array.isArray(e) || (n = Le(e)) || t && e && typeof e.length == "number") {
|
|
8184
8165
|
n && (e = n);
|
|
8185
8166
|
var r = 0;
|
|
8186
8167
|
return function() {
|
|
@@ -8192,56 +8173,50 @@ function ze(e, t) {
|
|
|
8192
8173
|
}
|
|
8193
8174
|
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8194
8175
|
}
|
|
8195
|
-
function
|
|
8176
|
+
function Le(e, t) {
|
|
8196
8177
|
if (e) {
|
|
8197
|
-
if (typeof e == "string") return
|
|
8178
|
+
if (typeof e == "string") return Re(e, t);
|
|
8198
8179
|
var n = {}.toString.call(e).slice(8, -1);
|
|
8199
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
8180
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Re(e, t) : void 0;
|
|
8200
8181
|
}
|
|
8201
8182
|
}
|
|
8202
|
-
function
|
|
8183
|
+
function Re(e, t) {
|
|
8203
8184
|
(t == null || t > e.length) && (t = e.length);
|
|
8204
8185
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
8205
8186
|
return r;
|
|
8206
8187
|
}
|
|
8207
|
-
function
|
|
8208
|
-
for (var r = new
|
|
8188
|
+
function ze(e, t, n) {
|
|
8189
|
+
for (var r = new y(n), i = Ie(t), a; !(a = i()).done;) {
|
|
8209
8190
|
var o = a.value;
|
|
8210
8191
|
if (r.selectNumberingPlan(o), r.leadingDigits()) {
|
|
8211
8192
|
if (e && e.search(r.leadingDigits()) === 0) return o;
|
|
8212
|
-
} else if (
|
|
8193
|
+
} else if (S({
|
|
8213
8194
|
phone: e,
|
|
8214
8195
|
country: o
|
|
8215
8196
|
}, void 0, r.metadata)) return o;
|
|
8216
8197
|
}
|
|
8217
8198
|
}
|
|
8218
|
-
|
|
8219
|
-
|
|
8220
|
-
|
|
8221
|
-
function We(e, t) {
|
|
8222
|
-
var n = t.nationalNumber, r = t.metadata;
|
|
8223
|
-
/* istanbul ignore if */
|
|
8224
|
-
if (Ue && r.isNonGeographicCallingCode(e)) return "001";
|
|
8225
|
-
var i = r.getCountryCodesForCallingCode(e);
|
|
8226
|
-
if (i) return i.length === 1 ? i[0] : He(n, i, r.metadata);
|
|
8199
|
+
function E(e, t) {
|
|
8200
|
+
var n = t.nationalNumber, r = t.metadata, i = r.getCountryCodesForCallingCode(e);
|
|
8201
|
+
if (i) return i.length === 1 ? i[0] : ze(n, i, r.metadata);
|
|
8227
8202
|
}
|
|
8228
8203
|
//#endregion
|
|
8229
8204
|
//#region node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js
|
|
8230
|
-
function
|
|
8231
|
-
var r =
|
|
8232
|
-
return a !== e && (!
|
|
8205
|
+
function Be(e, t, n) {
|
|
8206
|
+
var r = Fe(e, n), i = r.carrierCode, a = r.nationalNumber;
|
|
8207
|
+
return a !== e && (!Ve(e, a, n) || n.numberingPlan.possibleLengths() && (t ||= E(n.numberingPlan.callingCode(), {
|
|
8233
8208
|
nationalNumber: a,
|
|
8234
8209
|
metadata: n
|
|
8235
|
-
}), !
|
|
8210
|
+
}), !He(a, t, n))) ? { nationalNumber: e } : {
|
|
8236
8211
|
nationalNumber: a,
|
|
8237
8212
|
carrierCode: i
|
|
8238
8213
|
};
|
|
8239
8214
|
}
|
|
8240
|
-
function
|
|
8241
|
-
return !(
|
|
8215
|
+
function Ve(e, t, n) {
|
|
8216
|
+
return !(x(e, n.nationalNumberPattern()) && !x(t, n.nationalNumberPattern()));
|
|
8242
8217
|
}
|
|
8243
|
-
function
|
|
8244
|
-
switch (
|
|
8218
|
+
function He(e, t, n) {
|
|
8219
|
+
switch (b(e, t, n)) {
|
|
8245
8220
|
case "TOO_SHORT":
|
|
8246
8221
|
case "INVALID_LENGTH": return !1;
|
|
8247
8222
|
default: return !0;
|
|
@@ -8249,14 +8224,14 @@ function qe(e, t, n) {
|
|
|
8249
8224
|
}
|
|
8250
8225
|
//#endregion
|
|
8251
8226
|
//#region node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js
|
|
8252
|
-
function
|
|
8227
|
+
function Ue(e, t, n, r, i) {
|
|
8253
8228
|
if (!(t || n || r)) return { number: e };
|
|
8254
|
-
var a = t || n ?
|
|
8229
|
+
var a = t || n ? fe(t || n, i) : r;
|
|
8255
8230
|
if (e.indexOf(a) === 0) {
|
|
8256
|
-
var o = new
|
|
8231
|
+
var o = new y(i);
|
|
8257
8232
|
o.selectNumberingPlan(t || n || r);
|
|
8258
|
-
var s = e.slice(a.length), c =
|
|
8259
|
-
if (!
|
|
8233
|
+
var s = e.slice(a.length), c = Be(s, void 0, o).nationalNumber, l = Be(e, void 0, o).nationalNumber;
|
|
8234
|
+
if (!x(l, o.nationalNumberPattern()) && x(c, o.nationalNumberPattern()) || b(l, void 0, o) === "TOO_LONG") return {
|
|
8260
8235
|
countryCallingCode: a,
|
|
8261
8236
|
number: s
|
|
8262
8237
|
};
|
|
@@ -8265,15 +8240,15 @@ function Je(e, t, n, r, i) {
|
|
|
8265
8240
|
}
|
|
8266
8241
|
//#endregion
|
|
8267
8242
|
//#region node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js
|
|
8268
|
-
function
|
|
8243
|
+
function We(e, t, n, r, i) {
|
|
8269
8244
|
if (!e) return {};
|
|
8270
8245
|
var a;
|
|
8271
8246
|
if (e[0] !== "+") {
|
|
8272
|
-
var o =
|
|
8247
|
+
var o = Pe(e, t || n, r, i);
|
|
8273
8248
|
if (o && o !== e) a = !0, e = "+" + o;
|
|
8274
8249
|
else {
|
|
8275
8250
|
if (t || n || r) {
|
|
8276
|
-
var s =
|
|
8251
|
+
var s = Ue(e, t, n, r, i), c = s.countryCallingCode, l = s.number;
|
|
8277
8252
|
if (c) return {
|
|
8278
8253
|
countryCallingCodeSource: "FROM_NUMBER_WITHOUT_PLUS_SIGN",
|
|
8279
8254
|
countryCallingCode: c,
|
|
@@ -8284,7 +8259,7 @@ function w(e, t, n, r, i) {
|
|
|
8284
8259
|
}
|
|
8285
8260
|
}
|
|
8286
8261
|
if (e[1] === "0") return {};
|
|
8287
|
-
for (var u = new
|
|
8262
|
+
for (var u = new y(i), d = 2; d - 1 <= 3 && d <= e.length;) {
|
|
8288
8263
|
var f = e.slice(1, d);
|
|
8289
8264
|
if (u.hasCallingCode(f)) return u.selectNumberingPlan(f), {
|
|
8290
8265
|
countryCallingCodeSource: a ? "FROM_NUMBER_WITH_IDD" : "FROM_NUMBER_WITH_PLUS_SIGN",
|
|
@@ -8297,47 +8272,47 @@ function w(e, t, n, r, i) {
|
|
|
8297
8272
|
}
|
|
8298
8273
|
//#endregion
|
|
8299
8274
|
//#region node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js
|
|
8300
|
-
function
|
|
8301
|
-
return e.replace(RegExp(`[${
|
|
8275
|
+
function Ge(e) {
|
|
8276
|
+
return e.replace(RegExp(`[${w}]+`, "g"), " ").trim();
|
|
8302
8277
|
}
|
|
8303
8278
|
//#endregion
|
|
8304
8279
|
//#region node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js
|
|
8305
|
-
var
|
|
8306
|
-
function
|
|
8280
|
+
var Ke = /(\$\d)/;
|
|
8281
|
+
function qe(e, t, n) {
|
|
8307
8282
|
var r = n.useInternationalFormat, i = n.withNationalPrefix;
|
|
8308
8283
|
n.carrierCode, n.metadata;
|
|
8309
|
-
var a = e.replace(new RegExp(t.pattern()), r ? t.internationalFormat() : i && t.nationalPrefixFormattingRule() ? t.format().replace(
|
|
8310
|
-
return r ?
|
|
8284
|
+
var a = e.replace(new RegExp(t.pattern()), r ? t.internationalFormat() : i && t.nationalPrefixFormattingRule() ? t.format().replace(Ke, t.nationalPrefixFormattingRule()) : t.format());
|
|
8285
|
+
return r ? Ge(a) : a;
|
|
8311
8286
|
}
|
|
8312
8287
|
//#endregion
|
|
8313
8288
|
//#region node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js
|
|
8314
|
-
var
|
|
8315
|
-
function
|
|
8316
|
-
var r = new
|
|
8289
|
+
var Je = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
|
|
8290
|
+
function Ye(e, t, n) {
|
|
8291
|
+
var r = new y(n);
|
|
8317
8292
|
if (r.selectNumberingPlan(e || t), r.defaultIDDPrefix()) return r.defaultIDDPrefix();
|
|
8318
|
-
if (
|
|
8293
|
+
if (Je.test(r.IDDPrefix())) return r.IDDPrefix();
|
|
8319
8294
|
}
|
|
8320
8295
|
//#endregion
|
|
8321
8296
|
//#region node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js
|
|
8322
|
-
var
|
|
8323
|
-
return `([${
|
|
8297
|
+
var Xe = ";ext=", D = function(e) {
|
|
8298
|
+
return `([${C}]{1,${e}})`;
|
|
8324
8299
|
};
|
|
8325
|
-
function
|
|
8326
|
-
var t = "20", n = "15", r = "9", i = "6", a = "[ \xA0\\t,]*", o = "[:\\..]?[ \xA0\\t,-]*", s = "#?", c = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", l = "(?:[xx##~~]|int|int)", u = "[- ]+", d = "[ \xA0\\t]*", f = "(?:,{2}|;)", p =
|
|
8327
|
-
return p + "|" + m + "|" + h + "|" + g + "|" +
|
|
8300
|
+
function Ze(e) {
|
|
8301
|
+
var t = "20", n = "15", r = "9", i = "6", a = "[ \xA0\\t,]*", o = "[:\\..]?[ \xA0\\t,-]*", s = "#?", c = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", l = "(?:[xx##~~]|int|int)", u = "[- ]+", d = "[ \xA0\\t]*", f = "(?:,{2}|;)", p = Xe + D(t), m = a + c + o + D(t) + s, h = a + l + o + D(r) + s, g = u + D(i) + "#", _ = d + f + o + D(n) + s, v = d + "(?:,)+" + o + D(r) + s;
|
|
8302
|
+
return p + "|" + m + "|" + h + "|" + g + "|" + _ + "|" + v;
|
|
8328
8303
|
}
|
|
8329
8304
|
//#endregion
|
|
8330
8305
|
//#region node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js
|
|
8331
|
-
var
|
|
8332
|
-
function
|
|
8333
|
-
return e.length >= 2 &&
|
|
8306
|
+
var Qe = "[" + C + "]{2}", $e = "[" + T + "]{0,1}(?:[" + w + "]*[" + C + "]){3,}[" + w + C + "]*", et = RegExp("^[" + T + "]{0,1}(?:[" + w + "]*[" + C + "]){1,2}$", "i"), tt = $e + "(?:" + Ze() + ")?", nt = RegExp("^" + Qe + "$|^" + tt + "$", "i");
|
|
8307
|
+
function rt(e) {
|
|
8308
|
+
return e.length >= 2 && nt.test(e);
|
|
8334
8309
|
}
|
|
8335
|
-
function
|
|
8336
|
-
return
|
|
8310
|
+
function it(e) {
|
|
8311
|
+
return et.test(e);
|
|
8337
8312
|
}
|
|
8338
8313
|
//#endregion
|
|
8339
8314
|
//#region node_modules/libphonenumber-js/es6/helpers/RFC3966.js
|
|
8340
|
-
function
|
|
8315
|
+
function at(e) {
|
|
8341
8316
|
var t = e.number, n = e.ext;
|
|
8342
8317
|
if (!t) return "";
|
|
8343
8318
|
if (t[0] !== "+") throw Error("\"formatRFC3966()\" expects \"number\" to be in E.164 format.");
|
|
@@ -8345,12 +8320,12 @@ function lt(e) {
|
|
|
8345
8320
|
}
|
|
8346
8321
|
//#endregion
|
|
8347
8322
|
//#region node_modules/libphonenumber-js/es6/format.js
|
|
8348
|
-
var
|
|
8323
|
+
var ot = { formatExtension: function(e, t, n) {
|
|
8349
8324
|
return `${e}${n.ext()}${t}`;
|
|
8350
8325
|
} };
|
|
8351
|
-
function
|
|
8352
|
-
n = n ?
|
|
8353
|
-
var i = new
|
|
8326
|
+
function st(e, t, n, r) {
|
|
8327
|
+
n = n ? dt({}, ot, n) : ot;
|
|
8328
|
+
var i = new y(r);
|
|
8354
8329
|
if (e.country && e.country !== "001") {
|
|
8355
8330
|
if (!i.hasCountry(e.country)) throw Error(`Unknown country: ${e.country}`);
|
|
8356
8331
|
i.selectNumberingPlan(e.country);
|
|
@@ -8358,57 +8333,57 @@ function dt(e, t, n, r) {
|
|
|
8358
8333
|
else return e.phone || "";
|
|
8359
8334
|
var a = i.countryCallingCode(), o = n.v2 ? e.nationalNumber : e.phone, s;
|
|
8360
8335
|
switch (t) {
|
|
8361
|
-
case "NATIONAL": return o ? (s =
|
|
8362
|
-
case "INTERNATIONAL": return o ? (s =
|
|
8336
|
+
case "NATIONAL": return o ? (s = O(o, e.carrierCode, "NATIONAL", i, n), lt(s, e.ext, i, n.formatExtension)) : "";
|
|
8337
|
+
case "INTERNATIONAL": return o ? (s = O(o, null, "INTERNATIONAL", i, n), s = `+${a} ${s}`, lt(s, e.ext, i, n.formatExtension)) : `+${a}`;
|
|
8363
8338
|
case "E.164": return `+${a}${o}`;
|
|
8364
|
-
case "RFC3966": return
|
|
8339
|
+
case "RFC3966": return at({
|
|
8365
8340
|
number: `+${a}${o}`,
|
|
8366
8341
|
ext: e.ext
|
|
8367
8342
|
});
|
|
8368
8343
|
case "IDD":
|
|
8369
8344
|
if (!n.fromCountry) return;
|
|
8370
|
-
var c =
|
|
8371
|
-
return c ?
|
|
8345
|
+
var c = ut(o, e.carrierCode, a, n.fromCountry, i);
|
|
8346
|
+
return c ? lt(c, e.ext, i, n.formatExtension) : void 0;
|
|
8372
8347
|
default: throw Error(`Unknown "format" argument passed to "formatNumber()": "${t}"`);
|
|
8373
8348
|
}
|
|
8374
8349
|
}
|
|
8375
|
-
function
|
|
8376
|
-
var a =
|
|
8377
|
-
return a ?
|
|
8350
|
+
function O(e, t, n, r, i) {
|
|
8351
|
+
var a = ct(r.formats(), e);
|
|
8352
|
+
return a ? qe(e, a, {
|
|
8378
8353
|
useInternationalFormat: n === "INTERNATIONAL",
|
|
8379
8354
|
withNationalPrefix: !(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && i && i.nationalPrefix === !1),
|
|
8380
8355
|
carrierCode: t,
|
|
8381
8356
|
metadata: r
|
|
8382
8357
|
}) : e;
|
|
8383
8358
|
}
|
|
8384
|
-
function
|
|
8385
|
-
return
|
|
8359
|
+
function ct(e, t) {
|
|
8360
|
+
return ft(e, function(e) {
|
|
8386
8361
|
if (e.leadingDigitsPatterns().length > 0) {
|
|
8387
8362
|
var n = e.leadingDigitsPatterns()[e.leadingDigitsPatterns().length - 1];
|
|
8388
8363
|
if (t.search(n) !== 0) return !1;
|
|
8389
8364
|
}
|
|
8390
|
-
return
|
|
8365
|
+
return x(t, e.pattern());
|
|
8391
8366
|
});
|
|
8392
8367
|
}
|
|
8393
|
-
function
|
|
8368
|
+
function lt(e, t, n, r) {
|
|
8394
8369
|
return t ? r(e, t, n) : e;
|
|
8395
8370
|
}
|
|
8396
|
-
function
|
|
8397
|
-
if (
|
|
8398
|
-
var a =
|
|
8371
|
+
function ut(e, t, n, r, i) {
|
|
8372
|
+
if (fe(r, i.metadata) === n) {
|
|
8373
|
+
var a = O(e, t, "NATIONAL", i);
|
|
8399
8374
|
return n === "1" ? n + " " + a : a;
|
|
8400
8375
|
}
|
|
8401
|
-
var o =
|
|
8402
|
-
if (o) return `${o} ${n} ${
|
|
8376
|
+
var o = Ye(r, void 0, i.metadata);
|
|
8377
|
+
if (o) return `${o} ${n} ${O(e, null, "INTERNATIONAL", i)}`;
|
|
8403
8378
|
}
|
|
8404
|
-
function
|
|
8379
|
+
function dt() {
|
|
8405
8380
|
for (var e = 1, t = [...arguments]; e < t.length;) {
|
|
8406
8381
|
if (t[e]) for (var n in t[e]) t[0][n] = t[e][n];
|
|
8407
8382
|
e++;
|
|
8408
8383
|
}
|
|
8409
8384
|
return t[0];
|
|
8410
8385
|
}
|
|
8411
|
-
function
|
|
8386
|
+
function ft(e, t) {
|
|
8412
8387
|
for (var n = 0; n < e.length;) {
|
|
8413
8388
|
if (t(e[n])) return e[n];
|
|
8414
8389
|
n++;
|
|
@@ -8416,15 +8391,15 @@ function ht(e, t) {
|
|
|
8416
8391
|
}
|
|
8417
8392
|
//#endregion
|
|
8418
8393
|
//#region node_modules/libphonenumber-js/es6/PhoneNumber.js
|
|
8419
|
-
function
|
|
8394
|
+
function k(e) {
|
|
8420
8395
|
"@babel/helpers - typeof";
|
|
8421
|
-
return
|
|
8396
|
+
return k = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
8422
8397
|
return typeof e;
|
|
8423
8398
|
} : function(e) {
|
|
8424
8399
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
8425
|
-
},
|
|
8400
|
+
}, k(e);
|
|
8426
8401
|
}
|
|
8427
|
-
function
|
|
8402
|
+
function pt(e, t) {
|
|
8428
8403
|
var n = Object.keys(e);
|
|
8429
8404
|
if (Object.getOwnPropertySymbols) {
|
|
8430
8405
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -8434,72 +8409,72 @@ function gt(e, t) {
|
|
|
8434
8409
|
}
|
|
8435
8410
|
return n;
|
|
8436
8411
|
}
|
|
8437
|
-
function
|
|
8412
|
+
function mt(e) {
|
|
8438
8413
|
for (var t = 1; t < arguments.length; t++) {
|
|
8439
8414
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
8440
|
-
t % 2 ?
|
|
8441
|
-
|
|
8442
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
8415
|
+
t % 2 ? pt(Object(n), !0).forEach(function(t) {
|
|
8416
|
+
ht(e, t, n[t]);
|
|
8417
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : pt(Object(n)).forEach(function(t) {
|
|
8443
8418
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
8444
8419
|
});
|
|
8445
8420
|
}
|
|
8446
8421
|
return e;
|
|
8447
8422
|
}
|
|
8448
|
-
function
|
|
8449
|
-
return (t =
|
|
8423
|
+
function ht(e, t, n) {
|
|
8424
|
+
return (t = yt(t)) in e ? Object.defineProperty(e, t, {
|
|
8450
8425
|
value: n,
|
|
8451
8426
|
enumerable: !0,
|
|
8452
8427
|
configurable: !0,
|
|
8453
8428
|
writable: !0
|
|
8454
8429
|
}) : e[t] = n, e;
|
|
8455
8430
|
}
|
|
8456
|
-
function
|
|
8431
|
+
function gt(e, t) {
|
|
8457
8432
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
8458
8433
|
}
|
|
8459
|
-
function
|
|
8434
|
+
function _t(e, t) {
|
|
8460
8435
|
for (var n = 0; n < t.length; n++) {
|
|
8461
8436
|
var r = t[n];
|
|
8462
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
8437
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, yt(r.key), r);
|
|
8463
8438
|
}
|
|
8464
8439
|
}
|
|
8465
|
-
function
|
|
8466
|
-
return t &&
|
|
8440
|
+
function vt(e, t, n) {
|
|
8441
|
+
return t && _t(e.prototype, t), n && _t(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
8467
8442
|
}
|
|
8468
|
-
function
|
|
8469
|
-
var t =
|
|
8470
|
-
return
|
|
8443
|
+
function yt(e) {
|
|
8444
|
+
var t = bt(e, "string");
|
|
8445
|
+
return k(t) == "symbol" ? t : t + "";
|
|
8471
8446
|
}
|
|
8472
|
-
function
|
|
8473
|
-
if (
|
|
8447
|
+
function bt(e, t) {
|
|
8448
|
+
if (k(e) != "object" || !e) return e;
|
|
8474
8449
|
var n = e[Symbol.toPrimitive];
|
|
8475
8450
|
if (n !== void 0) {
|
|
8476
8451
|
var r = n.call(e, t || "default");
|
|
8477
|
-
if (
|
|
8452
|
+
if (k(r) != "object") return r;
|
|
8478
8453
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
8479
8454
|
}
|
|
8480
8455
|
return (t === "string" ? String : Number)(e);
|
|
8481
8456
|
}
|
|
8482
|
-
var
|
|
8457
|
+
var xt = /*#__PURE__*/ function() {
|
|
8483
8458
|
function e(t, n, r) {
|
|
8484
|
-
if (
|
|
8459
|
+
if (gt(this, e), !t) throw TypeError("First argument is required");
|
|
8485
8460
|
if (typeof t != "string") throw TypeError("First argument must be a string");
|
|
8486
8461
|
if (t[0] === "+" && !n) throw TypeError("`metadata` argument not passed");
|
|
8487
8462
|
if (f(n) && f(n.countries)) {
|
|
8488
8463
|
r = n;
|
|
8489
8464
|
var i = t;
|
|
8490
|
-
if (!
|
|
8491
|
-
var a =
|
|
8465
|
+
if (!St.test(i)) throw Error("Invalid `number` argument passed: must consist of a \"+\" followed by digits");
|
|
8466
|
+
var a = We(i, void 0, void 0, void 0, r), o = a.countryCallingCode;
|
|
8492
8467
|
if (n = a.number, t = o, !n) throw Error("Invalid `number` argument passed: too short");
|
|
8493
8468
|
}
|
|
8494
8469
|
if (!n) throw TypeError("`nationalNumber` argument is required");
|
|
8495
8470
|
if (typeof n != "string") throw TypeError("`nationalNumber` argument must be a string");
|
|
8496
|
-
|
|
8497
|
-
var s =
|
|
8471
|
+
ue(r);
|
|
8472
|
+
var s = Ae(t, r), c = s.country, l = s.callingCode;
|
|
8498
8473
|
this.country = c, this.countryCallingCode = l, this.nationalNumber = n, this.number = "+" + this.countryCallingCode + this.nationalNumber, this.getMetadata = function() {
|
|
8499
8474
|
return r;
|
|
8500
8475
|
};
|
|
8501
8476
|
}
|
|
8502
|
-
return
|
|
8477
|
+
return vt(e, [
|
|
8503
8478
|
{
|
|
8504
8479
|
key: "setExt",
|
|
8505
8480
|
value: function(e) {
|
|
@@ -8509,25 +8484,25 @@ var k = /*#__PURE__*/ function() {
|
|
|
8509
8484
|
{
|
|
8510
8485
|
key: "getPossibleCountries",
|
|
8511
8486
|
value: function() {
|
|
8512
|
-
return this.country ? [this.country] :
|
|
8487
|
+
return this.country ? [this.country] : je(this.countryCallingCode, this.nationalNumber, this.getMetadata());
|
|
8513
8488
|
}
|
|
8514
8489
|
},
|
|
8515
8490
|
{
|
|
8516
8491
|
key: "isPossible",
|
|
8517
8492
|
value: function() {
|
|
8518
|
-
return
|
|
8493
|
+
return be(this, { v2: !0 }, this.getMetadata());
|
|
8519
8494
|
}
|
|
8520
8495
|
},
|
|
8521
8496
|
{
|
|
8522
8497
|
key: "isValid",
|
|
8523
8498
|
value: function() {
|
|
8524
|
-
return
|
|
8499
|
+
return De(this, { v2: !0 }, this.getMetadata());
|
|
8525
8500
|
}
|
|
8526
8501
|
},
|
|
8527
8502
|
{
|
|
8528
8503
|
key: "isNonGeographic",
|
|
8529
8504
|
value: function() {
|
|
8530
|
-
return new
|
|
8505
|
+
return new y(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode);
|
|
8531
8506
|
}
|
|
8532
8507
|
},
|
|
8533
8508
|
{
|
|
@@ -8539,13 +8514,13 @@ var k = /*#__PURE__*/ function() {
|
|
|
8539
8514
|
{
|
|
8540
8515
|
key: "getType",
|
|
8541
8516
|
value: function() {
|
|
8542
|
-
return
|
|
8517
|
+
return S(this, { v2: !0 }, this.getMetadata());
|
|
8543
8518
|
}
|
|
8544
8519
|
},
|
|
8545
8520
|
{
|
|
8546
8521
|
key: "format",
|
|
8547
8522
|
value: function(e, t) {
|
|
8548
|
-
return
|
|
8523
|
+
return st(this, e, t ? mt(mt({}, t), {}, { v2: !0 }) : { v2: !0 }, this.getMetadata());
|
|
8549
8524
|
}
|
|
8550
8525
|
},
|
|
8551
8526
|
{
|
|
@@ -8567,7 +8542,7 @@ var k = /*#__PURE__*/ function() {
|
|
|
8567
8542
|
}
|
|
8568
8543
|
}
|
|
8569
8544
|
]);
|
|
8570
|
-
}(),
|
|
8545
|
+
}(), St = /^\+\d+$/;
|
|
8571
8546
|
//#endregion
|
|
8572
8547
|
//#region node_modules/libphonenumber-js/es6/ParseError.js
|
|
8573
8548
|
function A(e) {
|
|
@@ -8578,20 +8553,20 @@ function A(e) {
|
|
|
8578
8553
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
8579
8554
|
}, A(e);
|
|
8580
8555
|
}
|
|
8581
|
-
function
|
|
8556
|
+
function Ct(e, t) {
|
|
8582
8557
|
for (var n = 0; n < t.length; n++) {
|
|
8583
8558
|
var r = t[n];
|
|
8584
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
8559
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Tt(r.key), r);
|
|
8585
8560
|
}
|
|
8586
8561
|
}
|
|
8587
|
-
function
|
|
8588
|
-
return t &&
|
|
8562
|
+
function wt(e, t, n) {
|
|
8563
|
+
return t && Ct(e.prototype, t), n && Ct(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
8589
8564
|
}
|
|
8590
|
-
function
|
|
8591
|
-
var t =
|
|
8565
|
+
function Tt(e) {
|
|
8566
|
+
var t = Et(e, "string");
|
|
8592
8567
|
return A(t) == "symbol" ? t : t + "";
|
|
8593
8568
|
}
|
|
8594
|
-
function
|
|
8569
|
+
function Et(e, t) {
|
|
8595
8570
|
if (A(e) != "object" || !e) return e;
|
|
8596
8571
|
var n = e[Symbol.toPrimitive];
|
|
8597
8572
|
if (n !== void 0) {
|
|
@@ -8601,32 +8576,32 @@ function Ot(e, t) {
|
|
|
8601
8576
|
}
|
|
8602
8577
|
return (t === "string" ? String : Number)(e);
|
|
8603
8578
|
}
|
|
8604
|
-
function
|
|
8579
|
+
function Dt(e, t) {
|
|
8605
8580
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
8606
8581
|
}
|
|
8607
|
-
function
|
|
8608
|
-
return t =
|
|
8582
|
+
function Ot(e, t, n) {
|
|
8583
|
+
return t = M(t), kt(e, Pt() ? Reflect.construct(t, n || [], M(e).constructor) : t.apply(e, n));
|
|
8609
8584
|
}
|
|
8610
|
-
function
|
|
8585
|
+
function kt(e, t) {
|
|
8611
8586
|
if (t && (A(t) == "object" || typeof t == "function")) return t;
|
|
8612
8587
|
if (t !== void 0) throw TypeError("Derived constructors may only return object or undefined");
|
|
8613
|
-
return
|
|
8588
|
+
return At(e);
|
|
8614
8589
|
}
|
|
8615
|
-
function
|
|
8590
|
+
function At(e) {
|
|
8616
8591
|
if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
8617
8592
|
return e;
|
|
8618
8593
|
}
|
|
8619
|
-
function
|
|
8594
|
+
function jt(e, t) {
|
|
8620
8595
|
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function");
|
|
8621
8596
|
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
8622
8597
|
value: e,
|
|
8623
8598
|
writable: !0,
|
|
8624
8599
|
configurable: !0
|
|
8625
|
-
} }), Object.defineProperty(e, "prototype", { writable: !1 }), t &&
|
|
8600
|
+
} }), Object.defineProperty(e, "prototype", { writable: !1 }), t && j(e, t);
|
|
8626
8601
|
}
|
|
8627
|
-
function
|
|
8602
|
+
function Mt(e) {
|
|
8628
8603
|
var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
8629
|
-
return
|
|
8604
|
+
return Mt = function(e) {
|
|
8630
8605
|
if (e === null || !Ft(e)) return e;
|
|
8631
8606
|
if (typeof e != "function") throw TypeError("Super expression must either be null or a function");
|
|
8632
8607
|
if (t !== void 0) {
|
|
@@ -8634,28 +8609,28 @@ function j(e) {
|
|
|
8634
8609
|
t.set(e, n);
|
|
8635
8610
|
}
|
|
8636
8611
|
function n() {
|
|
8637
|
-
return
|
|
8612
|
+
return Nt(e, arguments, M(this).constructor);
|
|
8638
8613
|
}
|
|
8639
8614
|
return n.prototype = Object.create(e.prototype, { constructor: {
|
|
8640
8615
|
value: n,
|
|
8641
8616
|
enumerable: !1,
|
|
8642
8617
|
writable: !0,
|
|
8643
8618
|
configurable: !0
|
|
8644
|
-
} }),
|
|
8645
|
-
},
|
|
8619
|
+
} }), j(n, e);
|
|
8620
|
+
}, Mt(e);
|
|
8646
8621
|
}
|
|
8647
|
-
function
|
|
8648
|
-
if (
|
|
8622
|
+
function Nt(e, t, n) {
|
|
8623
|
+
if (Pt()) return Reflect.construct.apply(null, arguments);
|
|
8649
8624
|
var r = [null];
|
|
8650
8625
|
r.push.apply(r, t);
|
|
8651
8626
|
var i = new (e.bind.apply(e, r))();
|
|
8652
|
-
return n &&
|
|
8627
|
+
return n && j(i, n.prototype), i;
|
|
8653
8628
|
}
|
|
8654
|
-
function
|
|
8629
|
+
function Pt() {
|
|
8655
8630
|
try {
|
|
8656
8631
|
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
8657
8632
|
} catch {}
|
|
8658
|
-
return (
|
|
8633
|
+
return (Pt = function() {
|
|
8659
8634
|
return !!e;
|
|
8660
8635
|
})();
|
|
8661
8636
|
}
|
|
@@ -8666,23 +8641,23 @@ function Ft(e) {
|
|
|
8666
8641
|
return typeof e == "function";
|
|
8667
8642
|
}
|
|
8668
8643
|
}
|
|
8669
|
-
function
|
|
8670
|
-
return
|
|
8644
|
+
function j(e, t) {
|
|
8645
|
+
return j = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
8671
8646
|
return e.__proto__ = t, e;
|
|
8672
|
-
},
|
|
8647
|
+
}, j(e, t);
|
|
8673
8648
|
}
|
|
8674
|
-
function
|
|
8675
|
-
return
|
|
8649
|
+
function M(e) {
|
|
8650
|
+
return M = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
8676
8651
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
8677
|
-
},
|
|
8652
|
+
}, M(e);
|
|
8678
8653
|
}
|
|
8679
|
-
var
|
|
8654
|
+
var N = /*#__PURE__*/ function(e) {
|
|
8680
8655
|
function t(e) {
|
|
8681
8656
|
var n;
|
|
8682
|
-
return
|
|
8657
|
+
return Dt(this, t), n = Ot(this, t, [e]), Object.setPrototypeOf(n, t.prototype), n.name = n.constructor.name, n;
|
|
8683
8658
|
}
|
|
8684
|
-
return
|
|
8685
|
-
}(/*#__PURE__*/
|
|
8659
|
+
return jt(t, e), wt(t);
|
|
8660
|
+
}(/*#__PURE__*/ Mt(Error)), It = RegExp("(?:" + Ze() + ")$", "i");
|
|
8686
8661
|
function Lt(e) {
|
|
8687
8662
|
var t = e.search(It);
|
|
8688
8663
|
if (t < 0) return {};
|
|
@@ -8768,7 +8743,7 @@ var Vt = {
|
|
|
8768
8743
|
function Ht(e) {
|
|
8769
8744
|
return Vt[e];
|
|
8770
8745
|
}
|
|
8771
|
-
function
|
|
8746
|
+
function P(e) {
|
|
8772
8747
|
for (var t = "", n = Rt(e.split("")), r; !(r = n()).done;) {
|
|
8773
8748
|
var i = r.value, a = Ht(i);
|
|
8774
8749
|
a && (t += a);
|
|
@@ -8821,111 +8796,111 @@ function qt(e, t, n) {
|
|
|
8821
8796
|
}
|
|
8822
8797
|
return Ht(e);
|
|
8823
8798
|
}
|
|
8824
|
-
var Jt = "([" +
|
|
8825
|
-
function
|
|
8826
|
-
var t = e.indexOf(
|
|
8799
|
+
var Jt = "([" + C + "]|[\\-\\.\\(\\)]?)", Yt = "^\\+" + Jt + "*[" + C + "]" + Jt + "*$", Xt = new RegExp(Yt, "g"), F = C, Zt = "[" + F + "]+((\\-)*[" + F + "])*", Qt = "[a-zA-Z]+((\\-)*[" + F + "])*", $t = "^(" + Zt + "\\.)*" + Qt + "\\.?$", en = new RegExp($t, "g"), tn = "tel:", I = ";phone-context=", nn = ";isub=";
|
|
8800
|
+
function rn(e) {
|
|
8801
|
+
var t = e.indexOf(I);
|
|
8827
8802
|
if (t < 0) return null;
|
|
8828
|
-
var n = t +
|
|
8803
|
+
var n = t + I.length;
|
|
8829
8804
|
if (n >= e.length) return "";
|
|
8830
8805
|
var r = e.indexOf(";", n);
|
|
8831
8806
|
return r >= 0 ? e.substring(n, r) : e.substring(n);
|
|
8832
8807
|
}
|
|
8833
|
-
function
|
|
8834
|
-
return e === null ? !0 : e.length === 0 ? !1 : Xt.test(e) ||
|
|
8808
|
+
function an(e) {
|
|
8809
|
+
return e === null ? !0 : e.length === 0 ? !1 : Xt.test(e) || en.test(e);
|
|
8835
8810
|
}
|
|
8836
8811
|
//#endregion
|
|
8837
8812
|
//#region node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js
|
|
8838
|
-
function
|
|
8839
|
-
var n = t.extractFormattedPhoneNumber, r =
|
|
8840
|
-
if (!
|
|
8813
|
+
function on(e, t) {
|
|
8814
|
+
var n = t.extractFormattedPhoneNumber, r = rn(e);
|
|
8815
|
+
if (!an(r)) throw new N("NOT_A_NUMBER");
|
|
8841
8816
|
var i;
|
|
8842
8817
|
if (r === null) i = n(e) || "";
|
|
8843
8818
|
else {
|
|
8844
8819
|
i = "", r.charAt(0) === "+" && (i += r);
|
|
8845
|
-
var a = e.indexOf(
|
|
8820
|
+
var a = e.indexOf(tn), o = a >= 0 ? a + tn.length : 0, s = e.indexOf(I);
|
|
8846
8821
|
i += e.substring(o, s);
|
|
8847
8822
|
}
|
|
8848
|
-
var c = i.indexOf(
|
|
8823
|
+
var c = i.indexOf(nn);
|
|
8849
8824
|
if (c > 0 && (i = i.substring(0, c)), i !== "") return i;
|
|
8850
8825
|
}
|
|
8851
8826
|
//#endregion
|
|
8852
8827
|
//#region node_modules/libphonenumber-js/es6/parse.js
|
|
8853
|
-
var
|
|
8854
|
-
function
|
|
8828
|
+
var sn = 250, cn = RegExp("[" + T + C + "]"), ln = RegExp("[^" + C + "#]+$");
|
|
8829
|
+
function un(e, t, n) {
|
|
8855
8830
|
t ||= {};
|
|
8856
|
-
var r = new
|
|
8857
|
-
if (t.defaultCountry && !r.hasCountry(t.defaultCountry)) throw t.v2 ? new
|
|
8858
|
-
var i =
|
|
8831
|
+
var r = new y(n);
|
|
8832
|
+
if (t.defaultCountry && !r.hasCountry(t.defaultCountry)) throw t.v2 ? new N("INVALID_COUNTRY") : Error(`Unknown country: ${t.defaultCountry}`);
|
|
8833
|
+
var i = fn(e, t.v2, t.extract), a = i.number, o = i.ext, s = i.error;
|
|
8859
8834
|
if (!a) {
|
|
8860
|
-
if (t.v2) throw s === "TOO_SHORT" ? new
|
|
8835
|
+
if (t.v2) throw s === "TOO_SHORT" ? new N("TOO_SHORT") : new N("NOT_A_NUMBER");
|
|
8861
8836
|
return {};
|
|
8862
8837
|
}
|
|
8863
|
-
var c =
|
|
8838
|
+
var c = mn(a, t.defaultCountry, t.defaultCallingCode, r), l = c.country, u = c.nationalNumber, d = c.countryCallingCode, f = c.countryCallingCodeSource, p = c.carrierCode;
|
|
8864
8839
|
if (!r.hasSelectedNumberingPlan()) {
|
|
8865
|
-
if (t.v2) throw new
|
|
8840
|
+
if (t.v2) throw new N("INVALID_COUNTRY");
|
|
8866
8841
|
return {};
|
|
8867
8842
|
}
|
|
8868
8843
|
if (!u || u.length < 2) {
|
|
8869
8844
|
/* istanbul ignore if */
|
|
8870
|
-
if (t.v2) throw new
|
|
8845
|
+
if (t.v2) throw new N("TOO_SHORT");
|
|
8871
8846
|
return {};
|
|
8872
8847
|
}
|
|
8873
8848
|
if (u.length > 17) {
|
|
8874
|
-
if (t.v2) throw new
|
|
8849
|
+
if (t.v2) throw new N("TOO_LONG");
|
|
8875
8850
|
return {};
|
|
8876
8851
|
}
|
|
8877
8852
|
if (t.v2) {
|
|
8878
|
-
var m = new
|
|
8853
|
+
var m = new xt(d, u, r.metadata);
|
|
8879
8854
|
return l && (m.country = l), p && (m.carrierCode = p), o && (m.ext = o), m.__countryCallingCodeSource = f, m;
|
|
8880
8855
|
}
|
|
8881
|
-
var h = (t.extended ? r.hasSelectedNumberingPlan() : l) ?
|
|
8856
|
+
var h = (t.extended ? r.hasSelectedNumberingPlan() : l) ? x(u, r.nationalNumberPattern()) : !1;
|
|
8882
8857
|
return t.extended ? {
|
|
8883
8858
|
country: l,
|
|
8884
8859
|
countryCallingCode: d,
|
|
8885
8860
|
carrierCode: p,
|
|
8886
8861
|
valid: h,
|
|
8887
|
-
possible: h ? !0 : !!(t.extended === !0 && r.possibleLengths() &&
|
|
8862
|
+
possible: h ? !0 : !!(t.extended === !0 && r.possibleLengths() && xe(u, r)),
|
|
8888
8863
|
phone: u,
|
|
8889
8864
|
ext: o
|
|
8890
|
-
} : h ?
|
|
8865
|
+
} : h ? pn(l, u, o) : {};
|
|
8891
8866
|
}
|
|
8892
|
-
function
|
|
8867
|
+
function dn(e, t, n) {
|
|
8893
8868
|
if (e) {
|
|
8894
|
-
if (e.length >
|
|
8895
|
-
if (n) throw new
|
|
8869
|
+
if (e.length > sn) {
|
|
8870
|
+
if (n) throw new N("TOO_LONG");
|
|
8896
8871
|
return;
|
|
8897
8872
|
}
|
|
8898
8873
|
if (t === !1) return e;
|
|
8899
|
-
var r = e.search(
|
|
8900
|
-
if (!(r < 0)) return e.slice(r).replace(
|
|
8874
|
+
var r = e.search(cn);
|
|
8875
|
+
if (!(r < 0)) return e.slice(r).replace(ln, "");
|
|
8901
8876
|
}
|
|
8902
8877
|
}
|
|
8903
|
-
function
|
|
8904
|
-
var r =
|
|
8905
|
-
return
|
|
8878
|
+
function fn(e, t, n) {
|
|
8879
|
+
var r = on(e, { extractFormattedPhoneNumber: function(e) {
|
|
8880
|
+
return dn(e, n, t);
|
|
8906
8881
|
} });
|
|
8907
8882
|
if (!r) return {};
|
|
8908
|
-
if (!
|
|
8883
|
+
if (!rt(r)) return it(r) ? { error: "TOO_SHORT" } : {};
|
|
8909
8884
|
var i = Lt(r);
|
|
8910
8885
|
return i.ext ? i : { number: r };
|
|
8911
8886
|
}
|
|
8912
|
-
function
|
|
8887
|
+
function pn(e, t, n) {
|
|
8913
8888
|
var r = {
|
|
8914
8889
|
country: e,
|
|
8915
8890
|
phone: t
|
|
8916
8891
|
};
|
|
8917
8892
|
return n && (r.ext = n), r;
|
|
8918
8893
|
}
|
|
8919
|
-
function
|
|
8920
|
-
var i =
|
|
8894
|
+
function mn(e, t, n, r) {
|
|
8895
|
+
var i = We(Kt(e), void 0, t, n, r.metadata), a = i.countryCallingCodeSource, o = i.countryCallingCode, s = i.number, c;
|
|
8921
8896
|
if (o) r.selectNumberingPlan(o);
|
|
8922
|
-
else if (s && (t || n)) t ? (c = t, r.selectNumberingPlan(t), o = r.numberingPlan.callingCode()) : (r.selectNumberingPlan(n), o = n
|
|
8897
|
+
else if (s && (t || n)) t ? (c = t, r.selectNumberingPlan(t), o = r.numberingPlan.callingCode()) : (r.selectNumberingPlan(n), o = n);
|
|
8923
8898
|
else return {};
|
|
8924
8899
|
if (!s) return {
|
|
8925
8900
|
countryCallingCodeSource: a,
|
|
8926
8901
|
countryCallingCode: o
|
|
8927
8902
|
};
|
|
8928
|
-
var l =
|
|
8903
|
+
var l = Be(Kt(s), void 0, r), u = l.nationalNumber, d = l.carrierCode, f = E(o, {
|
|
8929
8904
|
nationalNumber: u,
|
|
8930
8905
|
metadata: r
|
|
8931
8906
|
});
|
|
@@ -8947,7 +8922,7 @@ function L(e) {
|
|
|
8947
8922
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
8948
8923
|
}, L(e);
|
|
8949
8924
|
}
|
|
8950
|
-
function
|
|
8925
|
+
function hn(e, t) {
|
|
8951
8926
|
var n = Object.keys(e);
|
|
8952
8927
|
if (Object.getOwnPropertySymbols) {
|
|
8953
8928
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -8957,30 +8932,30 @@ function vn(e, t) {
|
|
|
8957
8932
|
}
|
|
8958
8933
|
return n;
|
|
8959
8934
|
}
|
|
8960
|
-
function
|
|
8935
|
+
function gn(e) {
|
|
8961
8936
|
for (var t = 1; t < arguments.length; t++) {
|
|
8962
8937
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
8963
|
-
t % 2 ?
|
|
8964
|
-
|
|
8965
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
8938
|
+
t % 2 ? hn(Object(n), !0).forEach(function(t) {
|
|
8939
|
+
_n(e, t, n[t]);
|
|
8940
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : hn(Object(n)).forEach(function(t) {
|
|
8966
8941
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
8967
8942
|
});
|
|
8968
8943
|
}
|
|
8969
8944
|
return e;
|
|
8970
8945
|
}
|
|
8971
|
-
function
|
|
8972
|
-
return (t =
|
|
8946
|
+
function _n(e, t, n) {
|
|
8947
|
+
return (t = vn(t)) in e ? Object.defineProperty(e, t, {
|
|
8973
8948
|
value: n,
|
|
8974
8949
|
enumerable: !0,
|
|
8975
8950
|
configurable: !0,
|
|
8976
8951
|
writable: !0
|
|
8977
8952
|
}) : e[t] = n, e;
|
|
8978
8953
|
}
|
|
8979
|
-
function
|
|
8980
|
-
var t =
|
|
8954
|
+
function vn(e) {
|
|
8955
|
+
var t = yn(e, "string");
|
|
8981
8956
|
return L(t) == "symbol" ? t : t + "";
|
|
8982
8957
|
}
|
|
8983
|
-
function
|
|
8958
|
+
function yn(e, t) {
|
|
8984
8959
|
if (L(e) != "object" || !e) return e;
|
|
8985
8960
|
var n = e[Symbol.toPrimitive];
|
|
8986
8961
|
if (n !== void 0) {
|
|
@@ -8990,8 +8965,8 @@ function Sn(e, t) {
|
|
|
8990
8965
|
}
|
|
8991
8966
|
return (t === "string" ? String : Number)(e);
|
|
8992
8967
|
}
|
|
8993
|
-
function
|
|
8994
|
-
return
|
|
8968
|
+
function bn(e, t, n) {
|
|
8969
|
+
return un(e, gn(gn({}, t), {}, { v2: !0 }), n);
|
|
8995
8970
|
}
|
|
8996
8971
|
//#endregion
|
|
8997
8972
|
//#region node_modules/libphonenumber-js/es6/normalizeArguments.js
|
|
@@ -9003,7 +8978,7 @@ function R(e) {
|
|
|
9003
8978
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
9004
8979
|
}, R(e);
|
|
9005
8980
|
}
|
|
9006
|
-
function
|
|
8981
|
+
function xn(e, t) {
|
|
9007
8982
|
var n = Object.keys(e);
|
|
9008
8983
|
if (Object.getOwnPropertySymbols) {
|
|
9009
8984
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -9013,30 +8988,30 @@ function wn(e, t) {
|
|
|
9013
8988
|
}
|
|
9014
8989
|
return n;
|
|
9015
8990
|
}
|
|
9016
|
-
function
|
|
8991
|
+
function Sn(e) {
|
|
9017
8992
|
for (var t = 1; t < arguments.length; t++) {
|
|
9018
8993
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
9019
|
-
t % 2 ?
|
|
9020
|
-
|
|
9021
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
8994
|
+
t % 2 ? xn(Object(n), !0).forEach(function(t) {
|
|
8995
|
+
Cn(e, t, n[t]);
|
|
8996
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : xn(Object(n)).forEach(function(t) {
|
|
9022
8997
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
9023
8998
|
});
|
|
9024
8999
|
}
|
|
9025
9000
|
return e;
|
|
9026
9001
|
}
|
|
9027
|
-
function
|
|
9028
|
-
return (t =
|
|
9002
|
+
function Cn(e, t, n) {
|
|
9003
|
+
return (t = wn(t)) in e ? Object.defineProperty(e, t, {
|
|
9029
9004
|
value: n,
|
|
9030
9005
|
enumerable: !0,
|
|
9031
9006
|
configurable: !0,
|
|
9032
9007
|
writable: !0
|
|
9033
9008
|
}) : e[t] = n, e;
|
|
9034
9009
|
}
|
|
9035
|
-
function
|
|
9036
|
-
var t =
|
|
9010
|
+
function wn(e) {
|
|
9011
|
+
var t = Tn(e, "string");
|
|
9037
9012
|
return R(t) == "symbol" ? t : t + "";
|
|
9038
9013
|
}
|
|
9039
|
-
function
|
|
9014
|
+
function Tn(e, t) {
|
|
9040
9015
|
if (R(e) != "object" || !e) return e;
|
|
9041
9016
|
var n = e[Symbol.toPrimitive];
|
|
9042
9017
|
if (n !== void 0) {
|
|
@@ -9046,25 +9021,25 @@ function On(e, t) {
|
|
|
9046
9021
|
}
|
|
9047
9022
|
return (t === "string" ? String : Number)(e);
|
|
9048
9023
|
}
|
|
9049
|
-
function
|
|
9050
|
-
return
|
|
9024
|
+
function En(e, t) {
|
|
9025
|
+
return jn(e) || An(e, t) || On(e, t) || Dn();
|
|
9051
9026
|
}
|
|
9052
|
-
function
|
|
9027
|
+
function Dn() {
|
|
9053
9028
|
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9054
9029
|
}
|
|
9055
|
-
function
|
|
9030
|
+
function On(e, t) {
|
|
9056
9031
|
if (e) {
|
|
9057
|
-
if (typeof e == "string") return
|
|
9032
|
+
if (typeof e == "string") return kn(e, t);
|
|
9058
9033
|
var n = {}.toString.call(e).slice(8, -1);
|
|
9059
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
9034
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? kn(e, t) : void 0;
|
|
9060
9035
|
}
|
|
9061
9036
|
}
|
|
9062
|
-
function
|
|
9037
|
+
function kn(e, t) {
|
|
9063
9038
|
(t == null || t > e.length) && (t = e.length);
|
|
9064
9039
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
9065
9040
|
return r;
|
|
9066
9041
|
}
|
|
9067
|
-
function
|
|
9042
|
+
function An(e, t) {
|
|
9068
9043
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
9069
9044
|
if (n != null) {
|
|
9070
9045
|
var r, i, a, o, s = [], c = !0, l = !1;
|
|
@@ -9085,14 +9060,14 @@ function Nn(e, t) {
|
|
|
9085
9060
|
return s;
|
|
9086
9061
|
}
|
|
9087
9062
|
}
|
|
9088
|
-
function
|
|
9063
|
+
function jn(e) {
|
|
9089
9064
|
if (Array.isArray(e)) return e;
|
|
9090
9065
|
}
|
|
9091
|
-
function
|
|
9092
|
-
var t =
|
|
9066
|
+
function Mn(e) {
|
|
9067
|
+
var t = En(Array.prototype.slice.call(e), 4), n = t[0], r = t[1], i = t[2], a = t[3], o, s, c;
|
|
9093
9068
|
if (typeof n == "string") o = n;
|
|
9094
9069
|
else throw TypeError("A text for parsing must be a string.");
|
|
9095
|
-
if (!r || typeof r == "string") a ? (s = i, c = a) : (s = void 0, c = i), r && (s =
|
|
9070
|
+
if (!r || typeof r == "string") a ? (s = i, c = a) : (s = void 0, c = i), r && (s = Sn({ defaultCountry: r }, s));
|
|
9096
9071
|
else if (f(r)) i ? (s = r, c = i) : c = r;
|
|
9097
9072
|
else throw Error(`Invalid second argument: ${r}`);
|
|
9098
9073
|
return {
|
|
@@ -9111,7 +9086,7 @@ function z(e) {
|
|
|
9111
9086
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
9112
9087
|
}, z(e);
|
|
9113
9088
|
}
|
|
9114
|
-
function
|
|
9089
|
+
function Nn(e, t) {
|
|
9115
9090
|
var n = Object.keys(e);
|
|
9116
9091
|
if (Object.getOwnPropertySymbols) {
|
|
9117
9092
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -9121,30 +9096,30 @@ function In(e, t) {
|
|
|
9121
9096
|
}
|
|
9122
9097
|
return n;
|
|
9123
9098
|
}
|
|
9124
|
-
function
|
|
9099
|
+
function Pn(e) {
|
|
9125
9100
|
for (var t = 1; t < arguments.length; t++) {
|
|
9126
9101
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
9127
|
-
t % 2 ?
|
|
9128
|
-
|
|
9129
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
9102
|
+
t % 2 ? Nn(Object(n), !0).forEach(function(t) {
|
|
9103
|
+
Fn(e, t, n[t]);
|
|
9104
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Nn(Object(n)).forEach(function(t) {
|
|
9130
9105
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
9131
9106
|
});
|
|
9132
9107
|
}
|
|
9133
9108
|
return e;
|
|
9134
9109
|
}
|
|
9135
|
-
function
|
|
9136
|
-
return (t =
|
|
9110
|
+
function Fn(e, t, n) {
|
|
9111
|
+
return (t = In(t)) in e ? Object.defineProperty(e, t, {
|
|
9137
9112
|
value: n,
|
|
9138
9113
|
enumerable: !0,
|
|
9139
9114
|
configurable: !0,
|
|
9140
9115
|
writable: !0
|
|
9141
9116
|
}) : e[t] = n, e;
|
|
9142
9117
|
}
|
|
9143
|
-
function
|
|
9144
|
-
var t =
|
|
9118
|
+
function In(e) {
|
|
9119
|
+
var t = Ln(e, "string");
|
|
9145
9120
|
return z(t) == "symbol" ? t : t + "";
|
|
9146
9121
|
}
|
|
9147
|
-
function
|
|
9122
|
+
function Ln(e, t) {
|
|
9148
9123
|
if (z(e) != "object" || !e) return e;
|
|
9149
9124
|
var n = e[Symbol.toPrimitive];
|
|
9150
9125
|
if (n !== void 0) {
|
|
@@ -9154,20 +9129,20 @@ function Bn(e, t) {
|
|
|
9154
9129
|
}
|
|
9155
9130
|
return (t === "string" ? String : Number)(e);
|
|
9156
9131
|
}
|
|
9157
|
-
function
|
|
9158
|
-
t && t.defaultCountry && !
|
|
9132
|
+
function Rn(e, t, n) {
|
|
9133
|
+
t && t.defaultCountry && !pe(t.defaultCountry, n) && (t = Pn(Pn({}, t), {}, { defaultCountry: void 0 }));
|
|
9159
9134
|
try {
|
|
9160
|
-
return
|
|
9135
|
+
return bn(e, t, n);
|
|
9161
9136
|
} catch (e) {
|
|
9162
9137
|
/* istanbul ignore else */
|
|
9163
|
-
if (!(e instanceof
|
|
9138
|
+
if (!(e instanceof N)) throw e;
|
|
9164
9139
|
}
|
|
9165
9140
|
}
|
|
9166
9141
|
//#endregion
|
|
9167
9142
|
//#region node_modules/libphonenumber-js/es6/parsePhoneNumber.js
|
|
9168
|
-
function
|
|
9169
|
-
var e =
|
|
9170
|
-
return
|
|
9143
|
+
function zn() {
|
|
9144
|
+
var e = Mn(arguments), t = e.text, n = e.options, r = e.metadata;
|
|
9145
|
+
return Rn(t, n, r);
|
|
9171
9146
|
}
|
|
9172
9147
|
//#endregion
|
|
9173
9148
|
//#region node_modules/libphonenumber-js/es6/AsYouTypeState.js
|
|
@@ -9179,23 +9154,23 @@ function B(e) {
|
|
|
9179
9154
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
9180
9155
|
}, B(e);
|
|
9181
9156
|
}
|
|
9182
|
-
function
|
|
9157
|
+
function Bn(e, t) {
|
|
9183
9158
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
9184
9159
|
}
|
|
9185
|
-
function
|
|
9160
|
+
function Vn(e, t) {
|
|
9186
9161
|
for (var n = 0; n < t.length; n++) {
|
|
9187
9162
|
var r = t[n];
|
|
9188
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
9163
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Un(r.key), r);
|
|
9189
9164
|
}
|
|
9190
9165
|
}
|
|
9191
|
-
function
|
|
9192
|
-
return t &&
|
|
9166
|
+
function Hn(e, t, n) {
|
|
9167
|
+
return t && Vn(e.prototype, t), n && Vn(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
9193
9168
|
}
|
|
9194
|
-
function
|
|
9195
|
-
var t =
|
|
9169
|
+
function Un(e) {
|
|
9170
|
+
var t = Wn(e, "string");
|
|
9196
9171
|
return B(t) == "symbol" ? t : t + "";
|
|
9197
9172
|
}
|
|
9198
|
-
function
|
|
9173
|
+
function Wn(e, t) {
|
|
9199
9174
|
if (B(e) != "object" || !e) return e;
|
|
9200
9175
|
var n = e[Symbol.toPrimitive];
|
|
9201
9176
|
if (n !== void 0) {
|
|
@@ -9205,12 +9180,12 @@ function qn(e, t) {
|
|
|
9205
9180
|
}
|
|
9206
9181
|
return (t === "string" ? String : Number)(e);
|
|
9207
9182
|
}
|
|
9208
|
-
var
|
|
9183
|
+
var Gn = /*#__PURE__*/ function() {
|
|
9209
9184
|
function e(t) {
|
|
9210
9185
|
var n = t.onCountryChange, r = t.onCallingCodeChange;
|
|
9211
|
-
|
|
9186
|
+
Bn(this, e), this.onCountryChange = n, this.onCallingCodeChange = r;
|
|
9212
9187
|
}
|
|
9213
|
-
return
|
|
9188
|
+
return Hn(e, [
|
|
9214
9189
|
{
|
|
9215
9190
|
key: "reset",
|
|
9216
9191
|
value: function(e) {
|
|
@@ -9285,10 +9260,10 @@ var Jn = /*#__PURE__*/ function() {
|
|
|
9285
9260
|
}();
|
|
9286
9261
|
//#endregion
|
|
9287
9262
|
//#region node_modules/libphonenumber-js/es6/AsYouTypeFormatter.util.js
|
|
9288
|
-
function
|
|
9263
|
+
function Kn(e, t) {
|
|
9289
9264
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
9290
9265
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
9291
|
-
if (Array.isArray(e) || (n =
|
|
9266
|
+
if (Array.isArray(e) || (n = qn(e)) || t && e && typeof e.length == "number") {
|
|
9292
9267
|
n && (e = n);
|
|
9293
9268
|
var r = 0;
|
|
9294
9269
|
return function() {
|
|
@@ -9300,28 +9275,28 @@ function Yn(e, t) {
|
|
|
9300
9275
|
}
|
|
9301
9276
|
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9302
9277
|
}
|
|
9303
|
-
function
|
|
9278
|
+
function qn(e, t) {
|
|
9304
9279
|
if (e) {
|
|
9305
|
-
if (typeof e == "string") return
|
|
9280
|
+
if (typeof e == "string") return Jn(e, t);
|
|
9306
9281
|
var n = {}.toString.call(e).slice(8, -1);
|
|
9307
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
9282
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Jn(e, t) : void 0;
|
|
9308
9283
|
}
|
|
9309
9284
|
}
|
|
9310
|
-
function
|
|
9285
|
+
function Jn(e, t) {
|
|
9311
9286
|
(t == null || t > e.length) && (t = e.length);
|
|
9312
9287
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
9313
9288
|
return r;
|
|
9314
9289
|
}
|
|
9315
|
-
var
|
|
9290
|
+
var Yn = /* @__PURE__ */ RegExp("x");
|
|
9316
9291
|
function V(e, t) {
|
|
9317
9292
|
if (t < 1) return "";
|
|
9318
9293
|
for (var n = ""; t > 1;) t & 1 && (n += e), t >>= 1, e += e;
|
|
9319
9294
|
return n + e;
|
|
9320
9295
|
}
|
|
9321
|
-
function
|
|
9322
|
-
return e[t] === ")" && t++,
|
|
9296
|
+
function Xn(e, t) {
|
|
9297
|
+
return e[t] === ")" && t++, Zn(e.slice(0, t));
|
|
9323
9298
|
}
|
|
9324
|
-
function
|
|
9299
|
+
function Zn(e) {
|
|
9325
9300
|
for (var t = [], n = 0; n < e.length;) e[n] === "(" ? t.push(n) : e[n] === ")" && t.pop(), n++;
|
|
9326
9301
|
var r = 0, i = "";
|
|
9327
9302
|
t.push(e.length);
|
|
@@ -9331,54 +9306,54 @@ function er(e) {
|
|
|
9331
9306
|
}
|
|
9332
9307
|
return i;
|
|
9333
9308
|
}
|
|
9334
|
-
function
|
|
9335
|
-
for (var r =
|
|
9309
|
+
function Qn(e, t, n) {
|
|
9310
|
+
for (var r = Kn(n.split("")), i; !(i = r()).done;) {
|
|
9336
9311
|
var a = i.value;
|
|
9337
|
-
if (e.slice(t + 1).search(
|
|
9338
|
-
t = e.search(
|
|
9312
|
+
if (e.slice(t + 1).search(Yn) < 0) return;
|
|
9313
|
+
t = e.search(Yn), e = e.replace(Yn, a);
|
|
9339
9314
|
}
|
|
9340
9315
|
return [e, t];
|
|
9341
9316
|
}
|
|
9342
9317
|
//#endregion
|
|
9343
9318
|
//#region node_modules/libphonenumber-js/es6/AsYouTypeFormatter.complete.js
|
|
9344
|
-
function
|
|
9319
|
+
function $n(e, t, n) {
|
|
9345
9320
|
var r = n.metadata, i = n.shouldTryNationalPrefixFormattingRule, a = n.getSeparatorAfterNationalPrefix;
|
|
9346
|
-
if (RegExp(`^(?:${t.pattern()})\$`).test(e.nationalSignificantNumber)) return
|
|
9321
|
+
if (RegExp(`^(?:${t.pattern()})\$`).test(e.nationalSignificantNumber)) return tr(e, t, {
|
|
9347
9322
|
metadata: r,
|
|
9348
9323
|
shouldTryNationalPrefixFormattingRule: i,
|
|
9349
9324
|
getSeparatorAfterNationalPrefix: a
|
|
9350
9325
|
});
|
|
9351
9326
|
}
|
|
9352
|
-
function
|
|
9353
|
-
return
|
|
9327
|
+
function er(e, t) {
|
|
9328
|
+
return b(e, void 0, t) === "IS_POSSIBLE";
|
|
9354
9329
|
}
|
|
9355
|
-
function
|
|
9330
|
+
function tr(e, t, n) {
|
|
9356
9331
|
var r = n.metadata, i = n.shouldTryNationalPrefixFormattingRule, a = n.getSeparatorAfterNationalPrefix;
|
|
9357
9332
|
if (e.nationalSignificantNumber, e.international, e.nationalPrefix, e.carrierCode, i(t)) {
|
|
9358
|
-
var o =
|
|
9333
|
+
var o = nr(e, t, {
|
|
9359
9334
|
useNationalPrefixFormattingRule: !0,
|
|
9360
9335
|
getSeparatorAfterNationalPrefix: a,
|
|
9361
9336
|
metadata: r
|
|
9362
9337
|
});
|
|
9363
9338
|
if (o) return o;
|
|
9364
9339
|
}
|
|
9365
|
-
return
|
|
9340
|
+
return nr(e, t, {
|
|
9366
9341
|
useNationalPrefixFormattingRule: !1,
|
|
9367
9342
|
getSeparatorAfterNationalPrefix: a,
|
|
9368
9343
|
metadata: r
|
|
9369
9344
|
});
|
|
9370
9345
|
}
|
|
9371
|
-
function
|
|
9372
|
-
var r = n.metadata, i = n.useNationalPrefixFormattingRule, a = n.getSeparatorAfterNationalPrefix, o =
|
|
9346
|
+
function nr(e, t, n) {
|
|
9347
|
+
var r = n.metadata, i = n.useNationalPrefixFormattingRule, a = n.getSeparatorAfterNationalPrefix, o = qe(e.nationalSignificantNumber, t, {
|
|
9373
9348
|
carrierCode: e.carrierCode,
|
|
9374
9349
|
useInternationalFormat: e.international,
|
|
9375
9350
|
withNationalPrefix: i,
|
|
9376
9351
|
metadata: r
|
|
9377
9352
|
});
|
|
9378
|
-
if (i || (e.nationalPrefix ? o = e.nationalPrefix + a(t) + o : e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix && (o = e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix + " " + o)),
|
|
9353
|
+
if (i || (e.nationalPrefix ? o = e.nationalPrefix + a(t) + o : e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix && (o = e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix + " " + o)), rr(o, e)) return o;
|
|
9379
9354
|
}
|
|
9380
|
-
function
|
|
9381
|
-
return
|
|
9355
|
+
function rr(e, t) {
|
|
9356
|
+
return P(e) === t.getNationalDigits();
|
|
9382
9357
|
}
|
|
9383
9358
|
//#endregion
|
|
9384
9359
|
//#region node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternParser.js
|
|
@@ -9390,23 +9365,23 @@ function H(e) {
|
|
|
9390
9365
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
9391
9366
|
}, H(e);
|
|
9392
9367
|
}
|
|
9393
|
-
function
|
|
9368
|
+
function ir(e, t) {
|
|
9394
9369
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
9395
9370
|
}
|
|
9396
|
-
function
|
|
9371
|
+
function ar(e, t) {
|
|
9397
9372
|
for (var n = 0; n < t.length; n++) {
|
|
9398
9373
|
var r = t[n];
|
|
9399
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
9374
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, sr(r.key), r);
|
|
9400
9375
|
}
|
|
9401
9376
|
}
|
|
9402
|
-
function
|
|
9403
|
-
return t &&
|
|
9377
|
+
function or(e, t, n) {
|
|
9378
|
+
return t && ar(e.prototype, t), n && ar(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
9404
9379
|
}
|
|
9405
|
-
function
|
|
9406
|
-
var t =
|
|
9380
|
+
function sr(e) {
|
|
9381
|
+
var t = cr(e, "string");
|
|
9407
9382
|
return H(t) == "symbol" ? t : t + "";
|
|
9408
9383
|
}
|
|
9409
|
-
function
|
|
9384
|
+
function cr(e, t) {
|
|
9410
9385
|
if (H(e) != "object" || !e) return e;
|
|
9411
9386
|
var n = e[Symbol.toPrimitive];
|
|
9412
9387
|
if (n !== void 0) {
|
|
@@ -9416,11 +9391,11 @@ function dr(e, t) {
|
|
|
9416
9391
|
}
|
|
9417
9392
|
return (t === "string" ? String : Number)(e);
|
|
9418
9393
|
}
|
|
9419
|
-
var
|
|
9394
|
+
var lr = /*#__PURE__*/ function() {
|
|
9420
9395
|
function e() {
|
|
9421
|
-
|
|
9396
|
+
ir(this, e);
|
|
9422
9397
|
}
|
|
9423
|
-
return
|
|
9398
|
+
return or(e, [
|
|
9424
9399
|
{
|
|
9425
9400
|
key: "parse",
|
|
9426
9401
|
value: function(e) {
|
|
@@ -9431,7 +9406,7 @@ var fr = /*#__PURE__*/ function() {
|
|
|
9431
9406
|
var t = this.context[0], n = t.branches, r = t.instructions;
|
|
9432
9407
|
if (n) return {
|
|
9433
9408
|
op: "|",
|
|
9434
|
-
args: n.concat([
|
|
9409
|
+
args: n.concat([pr(r)])
|
|
9435
9410
|
};
|
|
9436
9411
|
/* istanbul ignore if */
|
|
9437
9412
|
if (r.length === 0) throw Error("Pattern is required");
|
|
@@ -9460,9 +9435,9 @@ var fr = /*#__PURE__*/ function() {
|
|
|
9460
9435
|
key: "parsePattern",
|
|
9461
9436
|
value: function(e) {
|
|
9462
9437
|
if (!e) throw Error("Pattern is required");
|
|
9463
|
-
var t = e.match(
|
|
9438
|
+
var t = e.match(fr);
|
|
9464
9439
|
if (!t) {
|
|
9465
|
-
if (
|
|
9440
|
+
if (dr.test(e)) throw Error(`Illegal characters found in a pattern: ${e}`);
|
|
9466
9441
|
this.getContext().instructions = this.getContext().instructions.concat(e.split(""));
|
|
9467
9442
|
return;
|
|
9468
9443
|
}
|
|
@@ -9479,7 +9454,7 @@ var fr = /*#__PURE__*/ function() {
|
|
|
9479
9454
|
if (!this.getContext().or) throw Error("\")\" operator must be preceded by \"(?:\" operator");
|
|
9480
9455
|
if (r && this.parsePattern(r), this.getContext().instructions.length === 0) throw Error("No instructions found after \"|\" operator in an \"or\" group");
|
|
9481
9456
|
var a = this.getContext().branches;
|
|
9482
|
-
a.push(
|
|
9457
|
+
a.push(pr(this.getContext().instructions)), this.endContext(), this.getContext().instructions.push({
|
|
9483
9458
|
op: "|",
|
|
9484
9459
|
args: a
|
|
9485
9460
|
});
|
|
@@ -9490,7 +9465,7 @@ var fr = /*#__PURE__*/ function() {
|
|
|
9490
9465
|
/* istanbul ignore else */
|
|
9491
9466
|
if (this.context.length === 1) this.getContext().branches = [];
|
|
9492
9467
|
else throw Error("\"branches\" not found in an \"or\" group context");
|
|
9493
|
-
this.getContext().branches.push(
|
|
9468
|
+
this.getContext().branches.push(pr(this.getContext().instructions)), this.getContext().instructions = [];
|
|
9494
9469
|
break;
|
|
9495
9470
|
case "[":
|
|
9496
9471
|
r && this.parsePattern(r), this.startContext({ oneOfSet: !0 });
|
|
@@ -9499,7 +9474,7 @@ var fr = /*#__PURE__*/ function() {
|
|
|
9499
9474
|
if (!this.getContext().oneOfSet) throw Error("\"]\" operator must be preceded by \"[\" operator");
|
|
9500
9475
|
this.endContext(), this.getContext().instructions.push({
|
|
9501
9476
|
op: "[]",
|
|
9502
|
-
args:
|
|
9477
|
+
args: ur(r)
|
|
9503
9478
|
});
|
|
9504
9479
|
break;
|
|
9505
9480
|
/* istanbul ignore next */
|
|
@@ -9510,7 +9485,7 @@ var fr = /*#__PURE__*/ function() {
|
|
|
9510
9485
|
}
|
|
9511
9486
|
]);
|
|
9512
9487
|
}();
|
|
9513
|
-
function
|
|
9488
|
+
function ur(e) {
|
|
9514
9489
|
for (var t = [], n = 0; n < e.length;) {
|
|
9515
9490
|
if (e[n] === "-") {
|
|
9516
9491
|
if (n === 0 || n === e.length - 1) throw Error(`Couldn't parse a one-of set pattern: ${e}`);
|
|
@@ -9520,16 +9495,16 @@ function pr(e) {
|
|
|
9520
9495
|
}
|
|
9521
9496
|
return t;
|
|
9522
9497
|
}
|
|
9523
|
-
var
|
|
9524
|
-
function
|
|
9498
|
+
var dr = /[\(\)\[\]\?\:\|]/, fr = /* @__PURE__ */ RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");
|
|
9499
|
+
function pr(e) {
|
|
9525
9500
|
return e.length === 1 ? e[0] : e;
|
|
9526
9501
|
}
|
|
9527
9502
|
//#endregion
|
|
9528
9503
|
//#region node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternMatcher.js
|
|
9529
|
-
function
|
|
9504
|
+
function mr(e, t) {
|
|
9530
9505
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
9531
9506
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
9532
|
-
if (Array.isArray(e) || (n =
|
|
9507
|
+
if (Array.isArray(e) || (n = hr(e)) || t && e && typeof e.length == "number") {
|
|
9533
9508
|
n && (e = n);
|
|
9534
9509
|
var r = 0;
|
|
9535
9510
|
return function() {
|
|
@@ -9541,14 +9516,14 @@ function _r(e, t) {
|
|
|
9541
9516
|
}
|
|
9542
9517
|
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9543
9518
|
}
|
|
9544
|
-
function
|
|
9519
|
+
function hr(e, t) {
|
|
9545
9520
|
if (e) {
|
|
9546
|
-
if (typeof e == "string") return
|
|
9521
|
+
if (typeof e == "string") return gr(e, t);
|
|
9547
9522
|
var n = {}.toString.call(e).slice(8, -1);
|
|
9548
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
9523
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? gr(e, t) : void 0;
|
|
9549
9524
|
}
|
|
9550
9525
|
}
|
|
9551
|
-
function
|
|
9526
|
+
function gr(e, t) {
|
|
9552
9527
|
(t == null || t > e.length) && (t = e.length);
|
|
9553
9528
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
9554
9529
|
return r;
|
|
@@ -9561,23 +9536,23 @@ function U(e) {
|
|
|
9561
9536
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
9562
9537
|
}, U(e);
|
|
9563
9538
|
}
|
|
9564
|
-
function
|
|
9539
|
+
function _r(e, t) {
|
|
9565
9540
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
9566
9541
|
}
|
|
9567
|
-
function
|
|
9542
|
+
function vr(e, t) {
|
|
9568
9543
|
for (var n = 0; n < t.length; n++) {
|
|
9569
9544
|
var r = t[n];
|
|
9570
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
9545
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, br(r.key), r);
|
|
9571
9546
|
}
|
|
9572
9547
|
}
|
|
9573
|
-
function
|
|
9574
|
-
return t &&
|
|
9548
|
+
function yr(e, t, n) {
|
|
9549
|
+
return t && vr(e.prototype, t), n && vr(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
9575
9550
|
}
|
|
9576
|
-
function
|
|
9577
|
-
var t =
|
|
9551
|
+
function br(e) {
|
|
9552
|
+
var t = xr(e, "string");
|
|
9578
9553
|
return U(t) == "symbol" ? t : t + "";
|
|
9579
9554
|
}
|
|
9580
|
-
function
|
|
9555
|
+
function xr(e, t) {
|
|
9581
9556
|
if (U(e) != "object" || !e) return e;
|
|
9582
9557
|
var n = e[Symbol.toPrimitive];
|
|
9583
9558
|
if (n !== void 0) {
|
|
@@ -9587,21 +9562,21 @@ function wr(e, t) {
|
|
|
9587
9562
|
}
|
|
9588
9563
|
return (t === "string" ? String : Number)(e);
|
|
9589
9564
|
}
|
|
9590
|
-
var
|
|
9565
|
+
var Sr = /*#__PURE__*/ function() {
|
|
9591
9566
|
function e(t) {
|
|
9592
|
-
|
|
9567
|
+
_r(this, e), this.matchTree = new lr().parse(t);
|
|
9593
9568
|
}
|
|
9594
|
-
return
|
|
9569
|
+
return yr(e, [{
|
|
9595
9570
|
key: "match",
|
|
9596
9571
|
value: function(e) {
|
|
9597
9572
|
var t = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}).allowOverflow;
|
|
9598
9573
|
if (!e) throw Error("String is required");
|
|
9599
|
-
var n =
|
|
9574
|
+
var n = Cr(e.split(""), this.matchTree, !0);
|
|
9600
9575
|
if (n && n.match && delete n.matchedChars, !(n && n.overflow && !t)) return n;
|
|
9601
9576
|
}
|
|
9602
9577
|
}]);
|
|
9603
9578
|
}();
|
|
9604
|
-
function
|
|
9579
|
+
function Cr(e, t, n) {
|
|
9605
9580
|
if (typeof t == "string") {
|
|
9606
9581
|
var r = e.join("");
|
|
9607
9582
|
return t.indexOf(r) === 0 ? e.length === t.length ? {
|
|
@@ -9614,7 +9589,7 @@ function Er(e, t, n) {
|
|
|
9614
9589
|
}
|
|
9615
9590
|
if (Array.isArray(t)) {
|
|
9616
9591
|
for (var i = e.slice(), a = 0; a < t.length;) {
|
|
9617
|
-
var o = t[a], s =
|
|
9592
|
+
var o = t[a], s = Cr(i, o, n && a === t.length - 1);
|
|
9618
9593
|
if (!s) return;
|
|
9619
9594
|
if (s.overflow) return s;
|
|
9620
9595
|
if (s.match) {
|
|
@@ -9634,8 +9609,8 @@ ${JSON.stringify(s, null, 2)}`);
|
|
|
9634
9609
|
}
|
|
9635
9610
|
switch (t.op) {
|
|
9636
9611
|
case "|":
|
|
9637
|
-
for (var c, l =
|
|
9638
|
-
var d = u.value, f =
|
|
9612
|
+
for (var c, l = mr(t.args), u; !(u = l()).done;) {
|
|
9613
|
+
var d = u.value, f = Cr(e, d, n);
|
|
9639
9614
|
if (f) {
|
|
9640
9615
|
if (f.overflow) return f;
|
|
9641
9616
|
if (f.match) return {
|
|
@@ -9649,7 +9624,7 @@ ${JSON.stringify(f, null, 2)}`);
|
|
|
9649
9624
|
}
|
|
9650
9625
|
return c ? { partialMatch: !0 } : void 0;
|
|
9651
9626
|
case "[]":
|
|
9652
|
-
for (var p =
|
|
9627
|
+
for (var p = mr(t.args), m; !(m = p()).done;) {
|
|
9653
9628
|
var h = m.value;
|
|
9654
9629
|
if (e[0] === h) return e.length === 1 ? {
|
|
9655
9630
|
match: !0,
|
|
@@ -9674,10 +9649,10 @@ function W(e) {
|
|
|
9674
9649
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
9675
9650
|
}, W(e);
|
|
9676
9651
|
}
|
|
9677
|
-
function
|
|
9652
|
+
function wr(e, t) {
|
|
9678
9653
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
9679
9654
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
9680
|
-
if (Array.isArray(e) || (n =
|
|
9655
|
+
if (Array.isArray(e) || (n = Tr(e)) || t && e && typeof e.length == "number") {
|
|
9681
9656
|
n && (e = n);
|
|
9682
9657
|
var r = 0;
|
|
9683
9658
|
return function() {
|
|
@@ -9689,35 +9664,35 @@ function Dr(e, t) {
|
|
|
9689
9664
|
}
|
|
9690
9665
|
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9691
9666
|
}
|
|
9692
|
-
function
|
|
9667
|
+
function Tr(e, t) {
|
|
9693
9668
|
if (e) {
|
|
9694
|
-
if (typeof e == "string") return
|
|
9669
|
+
if (typeof e == "string") return Er(e, t);
|
|
9695
9670
|
var n = {}.toString.call(e).slice(8, -1);
|
|
9696
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
9671
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Er(e, t) : void 0;
|
|
9697
9672
|
}
|
|
9698
9673
|
}
|
|
9699
|
-
function
|
|
9674
|
+
function Er(e, t) {
|
|
9700
9675
|
(t == null || t > e.length) && (t = e.length);
|
|
9701
9676
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
9702
9677
|
return r;
|
|
9703
9678
|
}
|
|
9704
|
-
function
|
|
9679
|
+
function Dr(e, t) {
|
|
9705
9680
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
9706
9681
|
}
|
|
9707
|
-
function
|
|
9682
|
+
function Or(e, t) {
|
|
9708
9683
|
for (var n = 0; n < t.length; n++) {
|
|
9709
9684
|
var r = t[n];
|
|
9710
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
9685
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Ar(r.key), r);
|
|
9711
9686
|
}
|
|
9712
9687
|
}
|
|
9713
|
-
function
|
|
9714
|
-
return t &&
|
|
9688
|
+
function kr(e, t, n) {
|
|
9689
|
+
return t && Or(e.prototype, t), n && Or(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
9715
9690
|
}
|
|
9716
|
-
function
|
|
9717
|
-
var t =
|
|
9691
|
+
function Ar(e) {
|
|
9692
|
+
var t = jr(e, "string");
|
|
9718
9693
|
return W(t) == "symbol" ? t : t + "";
|
|
9719
9694
|
}
|
|
9720
|
-
function
|
|
9695
|
+
function jr(e, t) {
|
|
9721
9696
|
if (W(e) != "object" || !e) return e;
|
|
9722
9697
|
var n = e[Symbol.toPrimitive];
|
|
9723
9698
|
if (n !== void 0) {
|
|
@@ -9727,17 +9702,17 @@ function Pr(e, t) {
|
|
|
9727
9702
|
}
|
|
9728
9703
|
return (t === "string" ? String : Number)(e);
|
|
9729
9704
|
}
|
|
9730
|
-
var
|
|
9705
|
+
var Mr = "9", Nr = V(Mr, 15), Pr = /[- ]/, G = !0, Fr = G && function() {
|
|
9731
9706
|
return /\[([^\[\]])*\]/g;
|
|
9732
|
-
},
|
|
9707
|
+
}, Ir = G && function() {
|
|
9733
9708
|
return /\d(?=[^,}][^,}])/g;
|
|
9734
|
-
},
|
|
9709
|
+
}, Lr = RegExp("[" + w + "]*\\$1[" + w + "]*(\\$\\d[" + w + "]*)*$"), Rr = 3, zr = /*#__PURE__*/ function() {
|
|
9735
9710
|
function e(t) {
|
|
9736
9711
|
t.state;
|
|
9737
9712
|
var n = t.metadata;
|
|
9738
|
-
|
|
9713
|
+
Dr(this, e), this.metadata = n, this.resetFormat();
|
|
9739
9714
|
}
|
|
9740
|
-
return
|
|
9715
|
+
return kr(e, [
|
|
9741
9716
|
{
|
|
9742
9717
|
key: "resetFormat",
|
|
9743
9718
|
value: function() {
|
|
@@ -9754,8 +9729,8 @@ var Fr = "9", Ir = V(Fr, 15), Lr = /[- ]/, G = !0, Rr = G && function() {
|
|
|
9754
9729
|
key: "format",
|
|
9755
9730
|
value: function(e, t) {
|
|
9756
9731
|
var n = this;
|
|
9757
|
-
if (
|
|
9758
|
-
var a = i.value, o =
|
|
9732
|
+
if (er(t.nationalSignificantNumber, this.metadata)) for (var r = wr(this.matchingFormats), i; !(i = r()).done;) {
|
|
9733
|
+
var a = i.value, o = $n(t, a, {
|
|
9759
9734
|
metadata: this.metadata,
|
|
9760
9735
|
shouldTryNationalPrefixFormattingRule: function(e) {
|
|
9761
9736
|
return n.shouldTryNationalPrefixFormattingRule(e, {
|
|
@@ -9782,7 +9757,7 @@ var Fr = "9", Ir = V(Fr, 15), Lr = /[- ]/, G = !0, Rr = G && function() {
|
|
|
9782
9757
|
{
|
|
9783
9758
|
key: "narrowDownMatchingFormats",
|
|
9784
9759
|
value: function(e) {
|
|
9785
|
-
var t = this, n = e.nationalSignificantNumber, r = e.nationalPrefix, i = e.international, a = n, o = a.length -
|
|
9760
|
+
var t = this, n = e.nationalSignificantNumber, r = e.nationalPrefix, i = e.international, a = n, o = a.length - Rr;
|
|
9786
9761
|
o < 0 && (o = 0), this.matchingFormats = this.matchingFormats.filter(function(e) {
|
|
9787
9762
|
return t.formatSuits(e, i, r) && t.formatMatches(e, a, o);
|
|
9788
9763
|
}), this.chosenFormat && this.matchingFormats.indexOf(this.chosenFormat) === -1 && this.resetFormat();
|
|
@@ -9801,8 +9776,8 @@ var Fr = "9", Ir = V(Fr, 15), Lr = /[- ]/, G = !0, Rr = G && function() {
|
|
|
9801
9776
|
if (r === 0) return !0;
|
|
9802
9777
|
n = Math.min(n, r - 1);
|
|
9803
9778
|
var i = e.leadingDigitsPatterns()[n];
|
|
9804
|
-
if (t.length <
|
|
9805
|
-
return new
|
|
9779
|
+
if (t.length < Rr) try {
|
|
9780
|
+
return new Sr(i).match(t, { allowOverflow: !0 }) !== void 0;
|
|
9806
9781
|
} catch (e) /* istanbul ignore next */ {
|
|
9807
9782
|
return console.error(e), !0;
|
|
9808
9783
|
}
|
|
@@ -9823,10 +9798,10 @@ var Fr = "9", Ir = V(Fr, 15), Lr = /[- ]/, G = !0, Rr = G && function() {
|
|
|
9823
9798
|
var n = a.value;
|
|
9824
9799
|
return t.chosenFormat === n ? 0 :
|
|
9825
9800
|
/* istanbul ignore if */
|
|
9826
|
-
|
|
9801
|
+
Lr.test(t.getFormatFormat(n, e.international)) ? t.createTemplateForFormat(n, e) ? (t.chosenFormat = n, 0) : (t.matchingFormats = t.matchingFormats.filter(function(e) {
|
|
9827
9802
|
return e !== n;
|
|
9828
9803
|
}), 1) : 1;
|
|
9829
|
-
}, r, i =
|
|
9804
|
+
}, r, i = wr(this.matchingFormats.slice()), a; !(a = i()).done && (r = n(), r !== 0););
|
|
9830
9805
|
return this.chosenFormat || this.resetFormat(), this.chosenFormat;
|
|
9831
9806
|
}
|
|
9832
9807
|
},
|
|
@@ -9842,7 +9817,7 @@ Br.test(t.getFormatFormat(n, e.international)) ? t.createTemplateForFormat(n, e)
|
|
|
9842
9817
|
{
|
|
9843
9818
|
key: "getSeparatorAfterNationalPrefix",
|
|
9844
9819
|
value: function(e) {
|
|
9845
|
-
return this.isNANP || e && e.nationalPrefixFormattingRule() &&
|
|
9820
|
+
return this.isNANP || e && e.nationalPrefixFormattingRule() && Pr.test(e.nationalPrefixFormattingRule()) ? " " : "";
|
|
9846
9821
|
}
|
|
9847
9822
|
},
|
|
9848
9823
|
{
|
|
@@ -9857,7 +9832,7 @@ Br.test(t.getFormatFormat(n, e.international)) ? t.createTemplateForFormat(n, e)
|
|
|
9857
9832
|
value: function(e) {
|
|
9858
9833
|
if (this.template) {
|
|
9859
9834
|
for (var t = -1, n = 0, r = e.international ? this.getInternationalPrefixBeforeCountryCallingCode(e, { spacing: !1 }) : ""; n < r.length + e.getDigitsWithoutInternationalPrefix().length;) t = this.template.indexOf("x", t + 1), n++;
|
|
9860
|
-
return
|
|
9835
|
+
return Xn(this.template, t + 1);
|
|
9861
9836
|
}
|
|
9862
9837
|
}
|
|
9863
9838
|
},
|
|
@@ -9872,34 +9847,34 @@ Br.test(t.getFormatFormat(n, e.international)) ? t.createTemplateForFormat(n, e)
|
|
|
9872
9847
|
value: function(e, t) {
|
|
9873
9848
|
var n = t.nationalSignificantNumber, r = t.international, i = t.nationalPrefix, a = t.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix, o = e.pattern();
|
|
9874
9849
|
/* istanbul ignore else */
|
|
9875
|
-
G && (o = o.replace(
|
|
9876
|
-
var s =
|
|
9850
|
+
G && (o = o.replace(Fr(), "\\d").replace(Ir(), "\\d"));
|
|
9851
|
+
var s = Nr.match(o)[0];
|
|
9877
9852
|
if (!(n.length > s.length)) {
|
|
9878
|
-
var c = RegExp("^" + o + "$"), l = n.replace(/\d/g,
|
|
9853
|
+
var c = RegExp("^" + o + "$"), l = n.replace(/\d/g, Mr);
|
|
9879
9854
|
c.test(l) && (s = l);
|
|
9880
9855
|
var u = this.getFormatFormat(e, r), d;
|
|
9881
9856
|
if (this.shouldTryNationalPrefixFormattingRule(e, {
|
|
9882
9857
|
international: r,
|
|
9883
9858
|
nationalPrefix: i
|
|
9884
9859
|
})) {
|
|
9885
|
-
var f = u.replace(
|
|
9860
|
+
var f = u.replace(Ke, e.nationalPrefixFormattingRule());
|
|
9886
9861
|
/* istanbul ignore else */
|
|
9887
|
-
if (
|
|
9862
|
+
if (P(e.nationalPrefixFormattingRule()) === (i || "") + P("$1") && (u = f, d = !0, i)) for (var p = i.length; p > 0;) u = u.replace(/\d/, "x"), p--;
|
|
9888
9863
|
}
|
|
9889
|
-
var m = s.replace(new RegExp(o), u).replace(new RegExp(
|
|
9890
|
-
return d || (a ? m = V("x", a.length) + " " + m : i && (m = V("x", i.length) + this.getSeparatorAfterNationalPrefix(e) + m)), r && (m =
|
|
9864
|
+
var m = s.replace(new RegExp(o), u).replace(new RegExp(Mr, "g"), "x");
|
|
9865
|
+
return d || (a ? m = V("x", a.length) + " " + m : i && (m = V("x", i.length) + this.getSeparatorAfterNationalPrefix(e) + m)), r && (m = Ge(m)), m;
|
|
9891
9866
|
}
|
|
9892
9867
|
}
|
|
9893
9868
|
},
|
|
9894
9869
|
{
|
|
9895
9870
|
key: "formatNextNationalNumberDigits",
|
|
9896
9871
|
value: function(e) {
|
|
9897
|
-
var t =
|
|
9872
|
+
var t = Qn(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition, e);
|
|
9898
9873
|
if (!t) {
|
|
9899
9874
|
this.resetFormat();
|
|
9900
9875
|
return;
|
|
9901
9876
|
}
|
|
9902
|
-
return this.populatedNationalNumberTemplate = t[0], this.populatedNationalNumberTemplatePosition = t[1],
|
|
9877
|
+
return this.populatedNationalNumberTemplate = t[0], this.populatedNationalNumberTemplatePosition = t[1], Xn(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition + 1);
|
|
9903
9878
|
}
|
|
9904
9879
|
},
|
|
9905
9880
|
{
|
|
@@ -9924,25 +9899,25 @@ function K(e) {
|
|
|
9924
9899
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
9925
9900
|
}, K(e);
|
|
9926
9901
|
}
|
|
9927
|
-
function
|
|
9928
|
-
return
|
|
9902
|
+
function Br(e, t) {
|
|
9903
|
+
return Gr(e) || Wr(e, t) || Hr(e, t) || Vr();
|
|
9929
9904
|
}
|
|
9930
|
-
function
|
|
9905
|
+
function Vr() {
|
|
9931
9906
|
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9932
9907
|
}
|
|
9933
|
-
function
|
|
9908
|
+
function Hr(e, t) {
|
|
9934
9909
|
if (e) {
|
|
9935
|
-
if (typeof e == "string") return
|
|
9910
|
+
if (typeof e == "string") return Ur(e, t);
|
|
9936
9911
|
var n = {}.toString.call(e).slice(8, -1);
|
|
9937
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
9912
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Ur(e, t) : void 0;
|
|
9938
9913
|
}
|
|
9939
9914
|
}
|
|
9940
|
-
function
|
|
9915
|
+
function Ur(e, t) {
|
|
9941
9916
|
(t == null || t > e.length) && (t = e.length);
|
|
9942
9917
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
9943
9918
|
return r;
|
|
9944
9919
|
}
|
|
9945
|
-
function
|
|
9920
|
+
function Wr(e, t) {
|
|
9946
9921
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
9947
9922
|
if (n != null) {
|
|
9948
9923
|
var r, i, a, o, s = [], c = !0, l = !1;
|
|
@@ -9963,26 +9938,26 @@ function qr(e, t) {
|
|
|
9963
9938
|
return s;
|
|
9964
9939
|
}
|
|
9965
9940
|
}
|
|
9966
|
-
function
|
|
9941
|
+
function Gr(e) {
|
|
9967
9942
|
if (Array.isArray(e)) return e;
|
|
9968
9943
|
}
|
|
9969
|
-
function
|
|
9944
|
+
function Kr(e, t) {
|
|
9970
9945
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
9971
9946
|
}
|
|
9972
|
-
function
|
|
9947
|
+
function qr(e, t) {
|
|
9973
9948
|
for (var n = 0; n < t.length; n++) {
|
|
9974
9949
|
var r = t[n];
|
|
9975
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
9950
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Yr(r.key), r);
|
|
9976
9951
|
}
|
|
9977
9952
|
}
|
|
9978
|
-
function
|
|
9979
|
-
return t &&
|
|
9953
|
+
function Jr(e, t, n) {
|
|
9954
|
+
return t && qr(e.prototype, t), n && qr(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
9980
9955
|
}
|
|
9981
|
-
function
|
|
9982
|
-
var t =
|
|
9956
|
+
function Yr(e) {
|
|
9957
|
+
var t = Xr(e, "string");
|
|
9983
9958
|
return K(t) == "symbol" ? t : t + "";
|
|
9984
9959
|
}
|
|
9985
|
-
function
|
|
9960
|
+
function Xr(e, t) {
|
|
9986
9961
|
if (K(e) != "object" || !e) return e;
|
|
9987
9962
|
var n = e[Symbol.toPrimitive];
|
|
9988
9963
|
if (n !== void 0) {
|
|
@@ -9992,16 +9967,16 @@ function $r(e, t) {
|
|
|
9992
9967
|
}
|
|
9993
9968
|
return (t === "string" ? String : Number)(e);
|
|
9994
9969
|
}
|
|
9995
|
-
var
|
|
9970
|
+
var Zr = "[" + w + C + "]+", Qr = RegExp("^" + Zr + "$", "i"), $r = "(?:[" + T + "][" + w + C + "]*|[" + w + C + "]+)", ei = RegExp("[^" + w + C + "]+.*$"), ti = /[^\d\[\]]/, ni = /*#__PURE__*/ function() {
|
|
9996
9971
|
function e(t) {
|
|
9997
9972
|
var n = t.defaultCountry, r = t.defaultCallingCode, i = t.metadata, a = t.onNationalSignificantNumberChange;
|
|
9998
|
-
|
|
9973
|
+
Kr(this, e), this.defaultCountry = n, this.defaultCallingCode = r, this.metadata = i, this.onNationalSignificantNumberChange = a;
|
|
9999
9974
|
}
|
|
10000
|
-
return
|
|
9975
|
+
return Jr(e, [
|
|
10001
9976
|
{
|
|
10002
9977
|
key: "input",
|
|
10003
9978
|
value: function(e, t) {
|
|
10004
|
-
var n =
|
|
9979
|
+
var n = Br(ai(e), 2), r = n[0], i = n[1], a = P(r), o;
|
|
10005
9980
|
return i && (t.digits || (t.startInternationalNumber(void 0, void 0), a || (o = !0))), a && this.inputDigits(a, t), {
|
|
10006
9981
|
digits: a,
|
|
10007
9982
|
justLeadingPlus: o
|
|
@@ -10030,7 +10005,7 @@ var ei = "[" + S + x + "]+", ti = RegExp("^" + ei + "$", "i"), ni = "(?:[" + C +
|
|
|
10030
10005
|
{
|
|
10031
10006
|
key: "extractCountryCallingCode",
|
|
10032
10007
|
value: function(e) {
|
|
10033
|
-
var t =
|
|
10008
|
+
var t = We("+" + e.getDigitsWithoutInternationalPrefix(), e.country, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), n = t.countryCallingCode, r = t.number;
|
|
10034
10009
|
if (n) return e.setCallingCode(n), e.update({ nationalSignificantNumber: r }), !0;
|
|
10035
10010
|
}
|
|
10036
10011
|
},
|
|
@@ -10040,7 +10015,7 @@ var ei = "[" + S + x + "]+", ti = RegExp("^" + ei + "$", "i"), ni = "(?:[" + C +
|
|
|
10040
10015
|
if (e) {
|
|
10041
10016
|
this.hasSelectedNumberingPlan = !0;
|
|
10042
10017
|
var t = e._nationalPrefixForParsing();
|
|
10043
|
-
this.couldPossiblyExtractAnotherNationalSignificantNumber = t &&
|
|
10018
|
+
this.couldPossiblyExtractAnotherNationalSignificantNumber = t && ti.test(t);
|
|
10044
10019
|
} else this.hasSelectedNumberingPlan = void 0, this.couldPossiblyExtractAnotherNationalSignificantNumber = void 0;
|
|
10045
10020
|
}
|
|
10046
10021
|
},
|
|
@@ -10048,7 +10023,7 @@ var ei = "[" + S + x + "]+", ti = RegExp("^" + ei + "$", "i"), ni = "(?:[" + C +
|
|
|
10048
10023
|
key: "extractNationalSignificantNumber",
|
|
10049
10024
|
value: function(e, t) {
|
|
10050
10025
|
if (this.hasSelectedNumberingPlan) {
|
|
10051
|
-
var n =
|
|
10026
|
+
var n = Fe(e, this.metadata), r = n.nationalPrefix, i = n.nationalNumber, a = n.carrierCode;
|
|
10052
10027
|
if (i !== e) return this.onExtractedNationalNumber(r, a, i, e, t), !0;
|
|
10053
10028
|
}
|
|
10054
10029
|
}
|
|
@@ -10058,7 +10033,7 @@ var ei = "[" + S + x + "]+", ti = RegExp("^" + ei + "$", "i"), ni = "(?:[" + C +
|
|
|
10058
10033
|
value: function(e, t, n) {
|
|
10059
10034
|
if (!this.hasExtractedNationalSignificantNumber) return this.extractNationalSignificantNumber(e, n);
|
|
10060
10035
|
if (this.couldPossiblyExtractAnotherNationalSignificantNumber) {
|
|
10061
|
-
var r =
|
|
10036
|
+
var r = Fe(e, this.metadata), i = r.nationalPrefix, a = r.nationalNumber, o = r.carrierCode;
|
|
10062
10037
|
if (a !== t) return this.onExtractedNationalNumber(i, o, a, e, n), !0;
|
|
10063
10038
|
}
|
|
10064
10039
|
}
|
|
@@ -10096,7 +10071,7 @@ var ei = "[" + S + x + "]+", ti = RegExp("^" + ei + "$", "i"), ni = "(?:[" + C +
|
|
|
10096
10071
|
value: function(e) {
|
|
10097
10072
|
var t = e.international, n = e.IDDPrefix, r = e.digits;
|
|
10098
10073
|
if (e.nationalSignificantNumber, !(t || n)) {
|
|
10099
|
-
var i =
|
|
10074
|
+
var i = Pe(r, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata);
|
|
10100
10075
|
if (i !== void 0 && i !== r) return e.update({ IDDPrefix: r.slice(0, r.length - i.length) }), this.startInternationalNumber(e, {
|
|
10101
10076
|
country: void 0,
|
|
10102
10077
|
callingCode: void 0
|
|
@@ -10108,7 +10083,7 @@ var ei = "[" + S + x + "]+", ti = RegExp("^" + ei + "$", "i"), ni = "(?:[" + C +
|
|
|
10108
10083
|
key: "fixMissingPlus",
|
|
10109
10084
|
value: function(e) {
|
|
10110
10085
|
if (!e.international) {
|
|
10111
|
-
var t =
|
|
10086
|
+
var t = Ue(e.digits, e.country, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata).countryCallingCode;
|
|
10112
10087
|
if (t) return e.update({ missingPlus: !0 }), this.startInternationalNumber(e, {
|
|
10113
10088
|
country: e.country,
|
|
10114
10089
|
callingCode: t
|
|
@@ -10133,21 +10108,21 @@ var ei = "[" + S + x + "]+", ti = RegExp("^" + ei + "$", "i"), ni = "(?:[" + C +
|
|
|
10133
10108
|
}
|
|
10134
10109
|
]);
|
|
10135
10110
|
}();
|
|
10136
|
-
function
|
|
10137
|
-
var t = e.search(
|
|
10111
|
+
function ri(e) {
|
|
10112
|
+
var t = e.search($r);
|
|
10138
10113
|
if (!(t < 0)) {
|
|
10139
10114
|
e = e.slice(t);
|
|
10140
10115
|
var n;
|
|
10141
|
-
return e[0] === "+" && (n = !0, e = e.slice(1)), e = e.replace(
|
|
10116
|
+
return e[0] === "+" && (n = !0, e = e.slice(1)), e = e.replace(ei, ""), n && (e = "+" + e), e;
|
|
10142
10117
|
}
|
|
10143
10118
|
}
|
|
10144
|
-
function
|
|
10145
|
-
var t =
|
|
10119
|
+
function ii(e) {
|
|
10120
|
+
var t = ri(e) || "";
|
|
10146
10121
|
return t[0] === "+" ? [t.slice(1), !0] : [t];
|
|
10147
10122
|
}
|
|
10148
|
-
function
|
|
10149
|
-
var t =
|
|
10150
|
-
return
|
|
10123
|
+
function ai(e) {
|
|
10124
|
+
var t = Br(ii(e), 2), n = t[0], r = t[1];
|
|
10125
|
+
return Qr.test(n) || (n = ""), [n, r];
|
|
10151
10126
|
}
|
|
10152
10127
|
//#endregion
|
|
10153
10128
|
//#region node_modules/libphonenumber-js/es6/AsYouType.js
|
|
@@ -10159,25 +10134,25 @@ function q(e) {
|
|
|
10159
10134
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
10160
10135
|
}, q(e);
|
|
10161
10136
|
}
|
|
10162
|
-
function
|
|
10163
|
-
return
|
|
10137
|
+
function oi(e, t) {
|
|
10138
|
+
return di(e) || ui(e, t) || ci(e, t) || si();
|
|
10164
10139
|
}
|
|
10165
|
-
function
|
|
10140
|
+
function si() {
|
|
10166
10141
|
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10167
10142
|
}
|
|
10168
|
-
function
|
|
10143
|
+
function ci(e, t) {
|
|
10169
10144
|
if (e) {
|
|
10170
|
-
if (typeof e == "string") return
|
|
10145
|
+
if (typeof e == "string") return li(e, t);
|
|
10171
10146
|
var n = {}.toString.call(e).slice(8, -1);
|
|
10172
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
10147
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? li(e, t) : void 0;
|
|
10173
10148
|
}
|
|
10174
10149
|
}
|
|
10175
|
-
function
|
|
10150
|
+
function li(e, t) {
|
|
10176
10151
|
(t == null || t > e.length) && (t = e.length);
|
|
10177
10152
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
10178
10153
|
return r;
|
|
10179
10154
|
}
|
|
10180
|
-
function
|
|
10155
|
+
function ui(e, t) {
|
|
10181
10156
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
10182
10157
|
if (n != null) {
|
|
10183
10158
|
var r, i, a, o, s = [], c = !0, l = !1;
|
|
@@ -10198,26 +10173,26 @@ function pi(e, t) {
|
|
|
10198
10173
|
return s;
|
|
10199
10174
|
}
|
|
10200
10175
|
}
|
|
10201
|
-
function
|
|
10176
|
+
function di(e) {
|
|
10202
10177
|
if (Array.isArray(e)) return e;
|
|
10203
10178
|
}
|
|
10204
|
-
function
|
|
10179
|
+
function fi(e, t) {
|
|
10205
10180
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
10206
10181
|
}
|
|
10207
|
-
function
|
|
10182
|
+
function pi(e, t) {
|
|
10208
10183
|
for (var n = 0; n < t.length; n++) {
|
|
10209
10184
|
var r = t[n];
|
|
10210
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
10185
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, hi(r.key), r);
|
|
10211
10186
|
}
|
|
10212
10187
|
}
|
|
10213
|
-
function
|
|
10214
|
-
return t &&
|
|
10188
|
+
function mi(e, t, n) {
|
|
10189
|
+
return t && pi(e.prototype, t), n && pi(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
10215
10190
|
}
|
|
10216
|
-
function
|
|
10217
|
-
var t =
|
|
10191
|
+
function hi(e) {
|
|
10192
|
+
var t = gi(e, "string");
|
|
10218
10193
|
return q(t) == "symbol" ? t : t + "";
|
|
10219
10194
|
}
|
|
10220
|
-
function
|
|
10195
|
+
function gi(e, t) {
|
|
10221
10196
|
if (q(e) != "object" || !e) return e;
|
|
10222
10197
|
var n = e[Symbol.toPrimitive];
|
|
10223
10198
|
if (n !== void 0) {
|
|
@@ -10227,18 +10202,18 @@ function yi(e, t) {
|
|
|
10227
10202
|
}
|
|
10228
10203
|
return (t === "string" ? String : Number)(e);
|
|
10229
10204
|
}
|
|
10230
|
-
var
|
|
10205
|
+
var _i = /*#__PURE__*/ function() {
|
|
10231
10206
|
function e(t, n) {
|
|
10232
|
-
|
|
10233
|
-
var r =
|
|
10207
|
+
fi(this, e), this.metadata = new y(n);
|
|
10208
|
+
var r = oi(this.getCountryAndCallingCode(t), 2), i = r[0], a = r[1];
|
|
10234
10209
|
this.defaultCountry = i, this.defaultCallingCode = a, this.reset();
|
|
10235
10210
|
}
|
|
10236
|
-
return
|
|
10211
|
+
return mi(e, [
|
|
10237
10212
|
{
|
|
10238
10213
|
key: "getCountryAndCallingCode",
|
|
10239
10214
|
value: function(e) {
|
|
10240
10215
|
var t, n;
|
|
10241
|
-
return e && (f(e) ? (t = e.defaultCountry, n = e.defaultCallingCode) : t = e), t && !this.metadata.hasCountry(t) && (t = void 0),
|
|
10216
|
+
return e && (f(e) ? (t = e.defaultCountry, n = e.defaultCallingCode) : t = e), t && !this.metadata.hasCountry(t) && (t = void 0), [t, n];
|
|
10242
10217
|
}
|
|
10243
10218
|
},
|
|
10244
10219
|
{
|
|
@@ -10263,17 +10238,17 @@ var bi = !1, xi = /*#__PURE__*/ function() {
|
|
|
10263
10238
|
key: "reset",
|
|
10264
10239
|
value: function() {
|
|
10265
10240
|
var e = this;
|
|
10266
|
-
return this.state = new
|
|
10241
|
+
return this.state = new Gn({
|
|
10267
10242
|
onCountryChange: function(t) {
|
|
10268
10243
|
e.country = t;
|
|
10269
10244
|
},
|
|
10270
10245
|
onCallingCodeChange: function(t, n) {
|
|
10271
10246
|
e.metadata.selectNumberingPlan(n || t), e.formatter.reset(e.metadata.numberingPlan, e.state), e.parser.reset(e.metadata.numberingPlan);
|
|
10272
10247
|
}
|
|
10273
|
-
}), this.formatter = new
|
|
10248
|
+
}), this.formatter = new zr({
|
|
10274
10249
|
state: this.state,
|
|
10275
10250
|
metadata: this.metadata
|
|
10276
|
-
}), this.parser = new
|
|
10251
|
+
}), this.parser = new ni({
|
|
10277
10252
|
defaultCountry: this.defaultCountry,
|
|
10278
10253
|
defaultCallingCode: this.defaultCallingCode,
|
|
10279
10254
|
metadata: this.metadata,
|
|
@@ -10314,8 +10289,7 @@ var bi = !1, xi = /*#__PURE__*/ function() {
|
|
|
10314
10289
|
{
|
|
10315
10290
|
key: "_getCountry",
|
|
10316
10291
|
value: function() {
|
|
10317
|
-
|
|
10318
|
-
if (!(bi && e === "001")) return e;
|
|
10292
|
+
return this.state.country;
|
|
10319
10293
|
}
|
|
10320
10294
|
},
|
|
10321
10295
|
{
|
|
@@ -10368,7 +10342,7 @@ var bi = !1, xi = /*#__PURE__*/ function() {
|
|
|
10368
10342
|
{
|
|
10369
10343
|
key: "determineTheCountry",
|
|
10370
10344
|
value: function() {
|
|
10371
|
-
var e =
|
|
10345
|
+
var e = E(this.isInternational() ? this.state.callingCode : this.defaultCallingCode, {
|
|
10372
10346
|
nationalNumber: this.state.nationalSignificantNumber,
|
|
10373
10347
|
metadata: this.metadata
|
|
10374
10348
|
});
|
|
@@ -10393,10 +10367,10 @@ var bi = !1, xi = /*#__PURE__*/ function() {
|
|
|
10393
10367
|
var i = this._getCountry();
|
|
10394
10368
|
if (!(!i && !r)) {
|
|
10395
10369
|
if (i && i === this.defaultCountry) {
|
|
10396
|
-
var a =
|
|
10370
|
+
var a = vi(this.metadata.numberingPlan.callingCode(), t, this.metadata);
|
|
10397
10371
|
a && (i = a);
|
|
10398
10372
|
}
|
|
10399
|
-
var o = new
|
|
10373
|
+
var o = new xt(i || r, t, this.metadata.metadata);
|
|
10400
10374
|
return n && (o.carrierCode = n), o;
|
|
10401
10375
|
}
|
|
10402
10376
|
}
|
|
@@ -10423,7 +10397,7 @@ var bi = !1, xi = /*#__PURE__*/ function() {
|
|
|
10423
10397
|
if (!t) return "NOT_A_NUMBER";
|
|
10424
10398
|
if (!this.metadata.numberingPlan) return "INVALID_COUNTRY";
|
|
10425
10399
|
if (!n) return "TOO_SHORT";
|
|
10426
|
-
var r =
|
|
10400
|
+
var r = b(n, void 0, this.metadata);
|
|
10427
10401
|
if (r !== "IS_POSSIBLE") return r;
|
|
10428
10402
|
}
|
|
10429
10403
|
},
|
|
@@ -10447,69 +10421,69 @@ var bi = !1, xi = /*#__PURE__*/ function() {
|
|
|
10447
10421
|
}
|
|
10448
10422
|
]);
|
|
10449
10423
|
}();
|
|
10450
|
-
function
|
|
10424
|
+
function vi(e, t, n) {
|
|
10451
10425
|
var r = n.getCountryCodesForCallingCode(e);
|
|
10452
|
-
if (r.length > 1) return
|
|
10426
|
+
if (r.length > 1) return ze(t, r, n.metadata);
|
|
10453
10427
|
}
|
|
10454
10428
|
//#endregion
|
|
10455
10429
|
//#region node_modules/libphonenumber-js/es6/getExampleNumber.js
|
|
10456
|
-
function
|
|
10457
|
-
if (t[e]) return new
|
|
10430
|
+
function yi(e, t, n) {
|
|
10431
|
+
if (t[e]) return new xt(e, t[e], n);
|
|
10458
10432
|
}
|
|
10459
10433
|
//#endregion
|
|
10460
10434
|
//#region node_modules/libphonenumber-js/min/exports/parsePhoneNumber.js
|
|
10461
10435
|
function J() {
|
|
10462
|
-
return l(
|
|
10436
|
+
return l(zn, arguments);
|
|
10463
10437
|
}
|
|
10464
10438
|
//#endregion
|
|
10465
10439
|
//#region node_modules/libphonenumber-js/min/exports/AsYouType.js
|
|
10466
10440
|
function Y(e) {
|
|
10467
|
-
return
|
|
10441
|
+
return _i.call(this, e, c);
|
|
10468
10442
|
}
|
|
10469
|
-
Y.prototype = Object.create(
|
|
10443
|
+
Y.prototype = Object.create(_i.prototype, {}), Y.prototype.constructor = Y;
|
|
10470
10444
|
//#endregion
|
|
10471
10445
|
//#region node_modules/libphonenumber-js/min/exports/getCountryCallingCode.js
|
|
10472
|
-
function
|
|
10473
|
-
return l(
|
|
10446
|
+
function bi() {
|
|
10447
|
+
return l(fe, arguments);
|
|
10474
10448
|
}
|
|
10475
10449
|
//#endregion
|
|
10476
10450
|
//#region node_modules/libphonenumber-js/min/exports/getExampleNumber.js
|
|
10477
|
-
function
|
|
10478
|
-
return l(
|
|
10451
|
+
function xi() {
|
|
10452
|
+
return l(yi, arguments);
|
|
10479
10453
|
}
|
|
10480
10454
|
//#endregion
|
|
10481
10455
|
//#region libs/checkout/src/utils/phone/countryDialCodes.ts
|
|
10482
10456
|
var X = (e) => {
|
|
10483
10457
|
let t = e.toUpperCase().split("").map((e) => 127397 + e.charCodeAt(0));
|
|
10484
10458
|
return String.fromCodePoint(...t);
|
|
10485
|
-
},
|
|
10486
|
-
let
|
|
10487
|
-
return (
|
|
10459
|
+
}, Si = (t, n) => {
|
|
10460
|
+
let i = Object.values(e);
|
|
10461
|
+
return (t?.length ? i.filter((e) => t.includes(e.toUpperCase())) : i).map((e) => {
|
|
10488
10462
|
try {
|
|
10489
|
-
let
|
|
10463
|
+
let t = bi(e);
|
|
10490
10464
|
return {
|
|
10491
10465
|
code: e.toUpperCase(),
|
|
10492
|
-
name:
|
|
10493
|
-
dialCode: `+${
|
|
10466
|
+
name: r(e, n),
|
|
10467
|
+
dialCode: `+${t}`,
|
|
10494
10468
|
flag: X(e)
|
|
10495
10469
|
};
|
|
10496
10470
|
} catch {
|
|
10497
10471
|
return null;
|
|
10498
10472
|
}
|
|
10499
|
-
}).filter((e) => e !== null).sort((e,
|
|
10500
|
-
},
|
|
10473
|
+
}).filter((e) => e !== null).sort((e, t) => e.name.localeCompare(t.name, n));
|
|
10474
|
+
}, Ci = (e) => {
|
|
10501
10475
|
try {
|
|
10502
|
-
let t = e.toUpperCase(), n =
|
|
10476
|
+
let t = e.toUpperCase(), n = bi(t);
|
|
10503
10477
|
return {
|
|
10504
10478
|
code: t,
|
|
10505
|
-
name:
|
|
10479
|
+
name: r(t),
|
|
10506
10480
|
dialCode: `+${n}`,
|
|
10507
10481
|
flag: X(t)
|
|
10508
10482
|
};
|
|
10509
10483
|
} catch {
|
|
10510
10484
|
return null;
|
|
10511
10485
|
}
|
|
10512
|
-
},
|
|
10486
|
+
}, wi = {
|
|
10513
10487
|
AC: "40123",
|
|
10514
10488
|
AD: "312345",
|
|
10515
10489
|
AE: "501234567",
|
|
@@ -10761,7 +10735,7 @@ var X = (e) => {
|
|
|
10761
10735
|
} catch {
|
|
10762
10736
|
return e;
|
|
10763
10737
|
}
|
|
10764
|
-
},
|
|
10738
|
+
}, Ti = (e, t) => {
|
|
10765
10739
|
try {
|
|
10766
10740
|
return J(e, t)?.number || null;
|
|
10767
10741
|
} catch {
|
|
@@ -10779,12 +10753,12 @@ var X = (e) => {
|
|
|
10779
10753
|
}
|
|
10780
10754
|
}, $ = (e) => {
|
|
10781
10755
|
try {
|
|
10782
|
-
let t =
|
|
10756
|
+
let t = xi(e, wi);
|
|
10783
10757
|
return t ? t.formatNational() : "";
|
|
10784
10758
|
} catch {
|
|
10785
10759
|
return "";
|
|
10786
10760
|
}
|
|
10787
|
-
},
|
|
10761
|
+
}, Ei = (e, t) => {
|
|
10788
10762
|
try {
|
|
10789
10763
|
if (e.startsWith("+")) {
|
|
10790
10764
|
let n = J(e);
|
|
@@ -10794,27 +10768,27 @@ var X = (e) => {
|
|
|
10794
10768
|
} catch {
|
|
10795
10769
|
return !1;
|
|
10796
10770
|
}
|
|
10797
|
-
},
|
|
10771
|
+
}, Di = (e) => {
|
|
10798
10772
|
try {
|
|
10799
|
-
let t =
|
|
10773
|
+
let t = xi(e, wi);
|
|
10800
10774
|
return t ? t.nationalNumber.length : Infinity;
|
|
10801
10775
|
} catch {
|
|
10802
10776
|
return Infinity;
|
|
10803
10777
|
}
|
|
10804
|
-
},
|
|
10778
|
+
}, Oi = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"10\" height=\"10\" viewBox=\"0 0 10 10\" fill=\"none\" aria-hidden=\"true\"><path d=\"M2 3.5L5 6.5L8 3.5\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>", ki = class extends a {
|
|
10805
10779
|
_flagDisplay;
|
|
10806
10780
|
_selectElement;
|
|
10807
10781
|
_locale;
|
|
10808
|
-
constructor(
|
|
10782
|
+
constructor(e) {
|
|
10809
10783
|
super("div", ["country-select-wrapper"]);
|
|
10810
|
-
let { countries:
|
|
10811
|
-
this._locale =
|
|
10784
|
+
let { countries: t, selectedCode: n, locale: r, styles: i, ariaLabel: o, onChange: s } = e;
|
|
10785
|
+
this._locale = r, this._flagDisplay = new a("span", ["country-flag"]), this._flagDisplay.setText(X(n)), this._selectElement = new a("select", ["country-select"]), this._selectElement.setAttribute("aria-label", o);
|
|
10812
10786
|
let c = this._selectElement.getElement();
|
|
10813
|
-
c.style.fontFamily = `"${
|
|
10787
|
+
c.style.fontFamily = `"${i.fontFamily}", sans-serif`, c.style.color = i.textColor, c.style.fontSize = `${i.fontSize}px`, this._buildOptions(t, n), this._selectElement.addEventListener("change", (e) => {
|
|
10814
10788
|
s(e.target.value);
|
|
10815
10789
|
});
|
|
10816
|
-
let l = new
|
|
10817
|
-
l.getElement().innerHTML =
|
|
10790
|
+
let l = new a("span", ["country-chevron"]);
|
|
10791
|
+
l.getElement().innerHTML = Oi, this.appendChild(this._flagDisplay), this.appendChild(l), this.appendChild(this._selectElement);
|
|
10818
10792
|
}
|
|
10819
10793
|
setCountry(e) {
|
|
10820
10794
|
return this._selectElement.getElement().value = e, this._flagDisplay.setText(X(e)), this;
|
|
@@ -10837,7 +10811,7 @@ var X = (e) => {
|
|
|
10837
10811
|
}), n.appendChild(i);
|
|
10838
10812
|
});
|
|
10839
10813
|
}
|
|
10840
|
-
},
|
|
10814
|
+
}, Ai = class extends a {
|
|
10841
10815
|
_countrySelector;
|
|
10842
10816
|
_inputElement;
|
|
10843
10817
|
_countryCodeInput;
|
|
@@ -10848,39 +10822,40 @@ var X = (e) => {
|
|
|
10848
10822
|
_onChange;
|
|
10849
10823
|
_onBlur;
|
|
10850
10824
|
_translationFunc;
|
|
10851
|
-
|
|
10825
|
+
_customPlaceholder;
|
|
10826
|
+
constructor(e) {
|
|
10852
10827
|
super("div", ["input-wrapper", "phone-number-field-wrapper"]);
|
|
10853
|
-
let { value:
|
|
10854
|
-
this._onChange =
|
|
10828
|
+
let { value: t, onChange: r, onBlur: o, onTab: s, checkoutProfile: c, translationFunc: l, defaultCountry: u, allowedCountries: d, locale: f, label: p, placeholder: m } = e;
|
|
10829
|
+
this._onChange = r, this._onBlur = o, this._translationFunc = l, this._customPlaceholder = m, this._currentCountryCode = u?.toUpperCase() || "US", this._buildLabel(c, l, p), this._containerElement = this._buildContainer(c), this._countrySelector = this._buildCountrySelector(d, f, c, l), this._containerElement.appendChild(this._countrySelector), this._countryCodeInput = i.createInput("hidden", [], {
|
|
10855
10830
|
name: "phoneCountryCode",
|
|
10856
10831
|
value: this._currentCountryCode
|
|
10857
10832
|
}), this.appendChild(this._countryCodeInput);
|
|
10858
|
-
let
|
|
10859
|
-
this._inputElement =
|
|
10860
|
-
let
|
|
10861
|
-
|
|
10862
|
-
text:
|
|
10863
|
-
visible:
|
|
10864
|
-
}), this.appendChild(this._helperText),
|
|
10865
|
-
}
|
|
10866
|
-
_buildLabel(e,
|
|
10867
|
-
let
|
|
10833
|
+
let h = this._currentCountryCode, { inputElement: g, initialValue: _ } = this._buildInput(c, t, s);
|
|
10834
|
+
this._inputElement = g, _ !== t && (this._inputElement.getElement().value = _), this._currentCountryCode !== h && this._syncCountryCodeInput(this._currentCountryCode);
|
|
10835
|
+
let v = new a("div", ["phone-input-wrapper"]);
|
|
10836
|
+
v.appendChild(this._inputElement), this._containerElement.appendChild(v), this.appendChild(this._containerElement), this._helperText = new n({
|
|
10837
|
+
text: e.errorMsg || "",
|
|
10838
|
+
visible: e.error
|
|
10839
|
+
}), this.appendChild(this._helperText), e.error && this._containerElement.addClass("error");
|
|
10840
|
+
}
|
|
10841
|
+
_buildLabel(e, n, r) {
|
|
10842
|
+
let i = new t({
|
|
10868
10843
|
styles: {
|
|
10869
10844
|
color: e.styles.textColor,
|
|
10870
10845
|
fontSize: e.styles.fontSize
|
|
10871
10846
|
},
|
|
10872
|
-
label:
|
|
10847
|
+
label: r ?? n("phoneNumber"),
|
|
10873
10848
|
id: "phoneNumber"
|
|
10874
10849
|
});
|
|
10875
|
-
this.appendChild(
|
|
10850
|
+
this.appendChild(i);
|
|
10876
10851
|
}
|
|
10877
|
-
_buildContainer(
|
|
10878
|
-
let
|
|
10879
|
-
return
|
|
10852
|
+
_buildContainer(e) {
|
|
10853
|
+
let t = new a("div", ["phone-number-field-container"]), n = t.getElement();
|
|
10854
|
+
return n.style.borderRadius = `${e.styles.borderRadius}px`, n.style.setProperty("--phone-border-radius", `${e.styles.borderRadius}px`), t;
|
|
10880
10855
|
}
|
|
10881
10856
|
_buildCountrySelector(e, t, n, r) {
|
|
10882
|
-
return new
|
|
10883
|
-
countries:
|
|
10857
|
+
return new ki({
|
|
10858
|
+
countries: Si(e, t),
|
|
10884
10859
|
selectedCode: this._currentCountryCode,
|
|
10885
10860
|
locale: t,
|
|
10886
10861
|
styles: {
|
|
@@ -10895,16 +10870,16 @@ var X = (e) => {
|
|
|
10895
10870
|
});
|
|
10896
10871
|
}
|
|
10897
10872
|
_buildInput(e, t, n) {
|
|
10898
|
-
let
|
|
10873
|
+
let r = t;
|
|
10899
10874
|
if (t && t.startsWith("+")) {
|
|
10900
10875
|
let e = Q(t);
|
|
10901
|
-
e && (this._currentCountryCode = e.countryCode, this._countrySelector.setCountry(e.countryCode),
|
|
10876
|
+
e && (this._currentCountryCode = e.countryCode, this._countrySelector.setCountry(e.countryCode), r = Z(t, e.countryCode));
|
|
10902
10877
|
}
|
|
10903
|
-
let a =
|
|
10878
|
+
let a = i.createInput("tel", ["form-input"], {
|
|
10904
10879
|
id: "phoneNumber",
|
|
10905
10880
|
name: "phoneNumber",
|
|
10906
|
-
placeholder: $(this._currentCountryCode),
|
|
10907
|
-
value:
|
|
10881
|
+
placeholder: this._customPlaceholder ?? $(this._currentCountryCode),
|
|
10882
|
+
value: r,
|
|
10908
10883
|
autocomplete: "tel",
|
|
10909
10884
|
maxlength: "30"
|
|
10910
10885
|
}), o = a.getElement();
|
|
@@ -10919,7 +10894,7 @@ var X = (e) => {
|
|
|
10919
10894
|
t.key === "Tab" && !t.shiftKey && (t.preventDefault(), n());
|
|
10920
10895
|
}), {
|
|
10921
10896
|
inputElement: a,
|
|
10922
|
-
initialValue:
|
|
10897
|
+
initialValue: r
|
|
10923
10898
|
};
|
|
10924
10899
|
}
|
|
10925
10900
|
_handleInput(e) {
|
|
@@ -10933,16 +10908,16 @@ var X = (e) => {
|
|
|
10933
10908
|
}
|
|
10934
10909
|
_handleInternationalInput(e, t) {
|
|
10935
10910
|
let n = Q(e);
|
|
10936
|
-
return !n?.countryCode || n.countryCode === this._currentCountryCode ? null : (this._currentCountryCode = n.countryCode, this._countrySelector.setCountry(n.countryCode), t.placeholder = $(n.countryCode), n.countryCode);
|
|
10911
|
+
return !n?.countryCode || n.countryCode === this._currentCountryCode ? null : (this._currentCountryCode = n.countryCode, this._countrySelector.setCountry(n.countryCode), t.placeholder = this._customPlaceholder ?? $(n.countryCode), n.countryCode);
|
|
10937
10912
|
}
|
|
10938
10913
|
_handleNationalInput(e, t, n) {
|
|
10939
10914
|
let r = this._countrySelector.getCountry();
|
|
10940
|
-
if (r && r !== this._currentCountryCode && (this._currentCountryCode = r, this._countrySelector.setCountry(r), t.placeholder = $(r)), !e) return;
|
|
10915
|
+
if (r && r !== this._currentCountryCode && (this._currentCountryCode = r, this._countrySelector.setCountry(r), t.placeholder = this._customPlaceholder ?? $(r)), !e) return;
|
|
10941
10916
|
let i = e.slice(0, n).replace(/\D/g, "").length, a = Z(e, this._currentCountryCode);
|
|
10942
10917
|
a !== e && (t.value = a, s(t, i, a));
|
|
10943
10918
|
}
|
|
10944
10919
|
_syncCountryCodeInput(e) {
|
|
10945
|
-
this._countryCodeInput.getElement().value = e, this._onChange(
|
|
10920
|
+
this._countryCodeInput.getElement().value = e, this._onChange(o({
|
|
10946
10921
|
type: "input",
|
|
10947
10922
|
target: {
|
|
10948
10923
|
name: "phoneCountryCode",
|
|
@@ -10951,19 +10926,19 @@ var X = (e) => {
|
|
|
10951
10926
|
}));
|
|
10952
10927
|
}
|
|
10953
10928
|
_handleCountryChange(e) {
|
|
10954
|
-
this._userSelectedCountry = !0, this._currentCountryCode = e, this._countrySelector.setCountry(e), this._syncCountryCodeInput(e), this._inputElement.getElement().placeholder = $(e);
|
|
10929
|
+
this._userSelectedCountry = !0, this._currentCountryCode = e, this._countrySelector.setCountry(e), this._syncCountryCodeInput(e), this._inputElement.getElement().placeholder = this._customPlaceholder ?? $(e);
|
|
10955
10930
|
}
|
|
10956
10931
|
_validateInput(e, t = !1) {
|
|
10957
10932
|
if (!e) {
|
|
10958
10933
|
this._clearValidationError();
|
|
10959
10934
|
return;
|
|
10960
10935
|
}
|
|
10961
|
-
if (
|
|
10936
|
+
if (Ei(e, this._currentCountryCode)) {
|
|
10962
10937
|
this._clearValidationError();
|
|
10963
10938
|
return;
|
|
10964
10939
|
}
|
|
10965
10940
|
if (!t) {
|
|
10966
|
-
let t =
|
|
10941
|
+
let t = Di(this._currentCountryCode), n;
|
|
10967
10942
|
if (e.startsWith("+")) {
|
|
10968
10943
|
let t = Q(e);
|
|
10969
10944
|
n = t ? t.nationalNumber.replace(/\D/g, "").length : 0;
|
|
@@ -10985,7 +10960,7 @@ var X = (e) => {
|
|
|
10985
10960
|
}
|
|
10986
10961
|
getValue() {
|
|
10987
10962
|
let e = this._inputElement.getElement().value;
|
|
10988
|
-
return e ?
|
|
10963
|
+
return e ? Ti(e, this._currentCountryCode) || e : "";
|
|
10989
10964
|
}
|
|
10990
10965
|
setValue(e) {
|
|
10991
10966
|
if (!e) return this._inputElement.getElement().value = "", this._userSelectedCountry = !1, this;
|
|
@@ -10993,13 +10968,13 @@ var X = (e) => {
|
|
|
10993
10968
|
let t = Q(e);
|
|
10994
10969
|
if (t) {
|
|
10995
10970
|
let n = Z(e, t.countryCode);
|
|
10996
|
-
return this._inputElement.getElement().value = n, this._userSelectedCountry || (this._currentCountryCode = t.countryCode, this._countrySelector.setCountry(t.countryCode)), this._inputElement.getElement().placeholder = $(this._currentCountryCode), this;
|
|
10971
|
+
return this._inputElement.getElement().value = n, this._userSelectedCountry || (this._currentCountryCode = t.countryCode, this._countrySelector.setCountry(t.countryCode)), this._inputElement.getElement().placeholder = this._customPlaceholder ?? $(this._currentCountryCode), this;
|
|
10997
10972
|
}
|
|
10998
10973
|
}
|
|
10999
10974
|
return this._inputElement.getElement().value = e, this;
|
|
11000
10975
|
}
|
|
11001
10976
|
setCountry(e) {
|
|
11002
|
-
return this._currentCountryCode = e, this._countrySelector.setCountry(e), this._inputElement.getElement().placeholder = $(e), this;
|
|
10977
|
+
return this._currentCountryCode = e, this._countrySelector.setCountry(e), this._inputElement.getElement().placeholder = this._customPlaceholder ?? $(e), this;
|
|
11003
10978
|
}
|
|
11004
10979
|
getCountry() {
|
|
11005
10980
|
return this._currentCountryCode;
|
|
@@ -11013,4 +10988,4 @@ var X = (e) => {
|
|
|
11013
10988
|
}
|
|
11014
10989
|
};
|
|
11015
10990
|
//#endregion
|
|
11016
|
-
export {
|
|
10991
|
+
export { Ai as PhoneNumberField, Z as formatPhoneAsYouType, Si as getCountriesForDialSelector, Ci as getCountryDialCodeInfo, Di as getExpectedDigitLength, X as getFlagEmoji, $ as getPlaceholder, Ei as isValidPhoneNumber, Q as parseE164, Ti as toE164 };
|