intl-tel-input 24.8.2 → 25.0.1
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/README.md +56 -47
- package/build/js/data.js +1 -1
- package/build/js/data.min.js +1 -1
- package/build/js/intlTelInput.d.ts +6 -8
- package/build/js/intlTelInput.js +37 -43
- package/build/js/intlTelInput.min.js +2 -2
- package/build/js/intlTelInputWithUtils.js +301 -302
- package/build/js/intlTelInputWithUtils.min.js +2 -2
- package/build/js/utils.js +51 -52
- package/package.json +1 -1
- package/react/README.md +1 -1
- package/react/build/IntlTelInput.cjs +36 -42
- package/react/build/IntlTelInput.d.ts +6 -8
- package/react/build/IntlTelInput.js +36 -42
- package/react/build/IntlTelInputWithUtils.cjs +300 -301
- package/react/build/IntlTelInputWithUtils.js +300 -301
- package/vue/README.md +1 -1
- package/vue/build/IntlTelInput.mjs +64 -65
- package/vue/build/IntlTelInputWithUtils.mjs +669 -671
|
@@ -1659,8 +1659,8 @@ var defaults = {
|
|
|
1659
1659
|
i18n: {},
|
|
1660
1660
|
//* Initial country.
|
|
1661
1661
|
initialCountry: "",
|
|
1662
|
-
//*
|
|
1663
|
-
|
|
1662
|
+
//* A function to load the utils script.
|
|
1663
|
+
loadUtils: null,
|
|
1664
1664
|
//* National vs international formatting for numbers e.g. placeholders and displaying existing numbers.
|
|
1665
1665
|
nationalMode: true,
|
|
1666
1666
|
//* Display only these countries.
|
|
@@ -1681,10 +1681,8 @@ var defaults = {
|
|
|
1681
1681
|
navigator.userAgent
|
|
1682
1682
|
) || window.innerWidth <= 500
|
|
1683
1683
|
) : false,
|
|
1684
|
-
//* Deprecated! Use `loadUtilsOnInit` instead.
|
|
1685
|
-
utilsScript: "",
|
|
1686
1684
|
//* The number type to enforce during validation.
|
|
1687
|
-
|
|
1685
|
+
validationNumberTypes: ["MOBILE"]
|
|
1688
1686
|
};
|
|
1689
1687
|
var regionlessNanpNumbers = [
|
|
1690
1688
|
"800",
|
|
@@ -2057,18 +2055,28 @@ var Iti = class {
|
|
|
2057
2055
|
const telInputName = this.telInput.getAttribute("name") || "";
|
|
2058
2056
|
const names = hiddenInput(telInputName);
|
|
2059
2057
|
if (names.phone) {
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
}
|
|
2064
|
-
|
|
2058
|
+
const existingInput = this.telInput.form?.querySelector(`input[name="${names.phone}"]`);
|
|
2059
|
+
if (existingInput) {
|
|
2060
|
+
this.hiddenInput = existingInput;
|
|
2061
|
+
} else {
|
|
2062
|
+
this.hiddenInput = createEl("input", {
|
|
2063
|
+
type: "hidden",
|
|
2064
|
+
name: names.phone
|
|
2065
|
+
});
|
|
2066
|
+
wrapper.appendChild(this.hiddenInput);
|
|
2067
|
+
}
|
|
2065
2068
|
}
|
|
2066
2069
|
if (names.country) {
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
}
|
|
2071
|
-
|
|
2070
|
+
const existingInput = this.telInput.form?.querySelector(`input[name="${names.country}"]`);
|
|
2071
|
+
if (existingInput) {
|
|
2072
|
+
this.hiddenInputCountry = existingInput;
|
|
2073
|
+
} else {
|
|
2074
|
+
this.hiddenInputCountry = createEl("input", {
|
|
2075
|
+
type: "hidden",
|
|
2076
|
+
name: names.country
|
|
2077
|
+
});
|
|
2078
|
+
wrapper.appendChild(this.hiddenInputCountry);
|
|
2079
|
+
}
|
|
2072
2080
|
}
|
|
2073
2081
|
}
|
|
2074
2082
|
}
|
|
@@ -2193,15 +2201,11 @@ var Iti = class {
|
|
|
2193
2201
|
}
|
|
2194
2202
|
//* Init many requests: utils script / geo ip lookup.
|
|
2195
2203
|
_initRequests() {
|
|
2196
|
-
let {
|
|
2197
|
-
if (
|
|
2198
|
-
console.warn("intl-tel-input: The `utilsScript` option is deprecated and will be removed in a future release! Please use the `loadUtilsOnInit` option instead.");
|
|
2199
|
-
loadUtilsOnInit = utilsScript;
|
|
2200
|
-
}
|
|
2201
|
-
if (loadUtilsOnInit && !intlTelInput.utils) {
|
|
2204
|
+
let { loadUtils, initialCountry, geoIpLookup } = this.options;
|
|
2205
|
+
if (loadUtils && !intlTelInput.utils) {
|
|
2202
2206
|
this._handlePageLoad = () => {
|
|
2203
2207
|
window.removeEventListener("load", this._handlePageLoad);
|
|
2204
|
-
intlTelInput.loadUtils
|
|
2208
|
+
intlTelInput.attachUtils(loadUtils)?.catch(() => {
|
|
2205
2209
|
});
|
|
2206
2210
|
};
|
|
2207
2211
|
if (intlTelInput.documentReady()) {
|
|
@@ -2665,7 +2669,7 @@ var Iti = class {
|
|
|
2665
2669
|
}
|
|
2666
2670
|
//* Update the maximum valid number length for the currently selected country.
|
|
2667
2671
|
_updateMaxLength() {
|
|
2668
|
-
const { strictMode, placeholderNumberType,
|
|
2672
|
+
const { strictMode, placeholderNumberType, validationNumberTypes } = this.options;
|
|
2669
2673
|
const { iso2 } = this.selectedCountryData;
|
|
2670
2674
|
if (strictMode && intlTelInput.utils) {
|
|
2671
2675
|
if (iso2) {
|
|
@@ -2677,7 +2681,7 @@ var Iti = class {
|
|
|
2677
2681
|
true
|
|
2678
2682
|
);
|
|
2679
2683
|
let validNumber = exampleNumber;
|
|
2680
|
-
while (intlTelInput.utils.isPossibleNumber(exampleNumber, iso2,
|
|
2684
|
+
while (intlTelInput.utils.isPossibleNumber(exampleNumber, iso2, validationNumberTypes)) {
|
|
2681
2685
|
validNumber = exampleNumber;
|
|
2682
2686
|
exampleNumber += "0";
|
|
2683
2687
|
}
|
|
@@ -3029,7 +3033,7 @@ var Iti = class {
|
|
|
3029
3033
|
return this._utilsIsPossibleNumber(val);
|
|
3030
3034
|
}
|
|
3031
3035
|
_utilsIsPossibleNumber(val) {
|
|
3032
|
-
return intlTelInput.utils ? intlTelInput.utils.isPossibleNumber(val, this.selectedCountryData.iso2, this.options.
|
|
3036
|
+
return intlTelInput.utils ? intlTelInput.utils.isPossibleNumber(val, this.selectedCountryData.iso2, this.options.validationNumberTypes) : null;
|
|
3033
3037
|
}
|
|
3034
3038
|
//* Validate the input val (precise)
|
|
3035
3039
|
isValidNumberPrecise() {
|
|
@@ -3047,7 +3051,7 @@ var Iti = class {
|
|
|
3047
3051
|
return this._utilsIsValidNumber(val);
|
|
3048
3052
|
}
|
|
3049
3053
|
_utilsIsValidNumber(val) {
|
|
3050
|
-
return intlTelInput.utils ? intlTelInput.utils.isValidNumber(val, this.selectedCountryData.iso2) : null;
|
|
3054
|
+
return intlTelInput.utils ? intlTelInput.utils.isValidNumber(val, this.selectedCountryData.iso2, this.options.validationNumberTypes) : null;
|
|
3051
3055
|
}
|
|
3052
3056
|
//* Update the selected country, and update the input val accordingly.
|
|
3053
3057
|
setCountry(iso2) {
|
|
@@ -3083,29 +3087,23 @@ var Iti = class {
|
|
|
3083
3087
|
}
|
|
3084
3088
|
}
|
|
3085
3089
|
};
|
|
3086
|
-
var
|
|
3090
|
+
var attachUtils = (source) => {
|
|
3087
3091
|
if (!intlTelInput.utils && !intlTelInput.startedLoadingUtilsScript) {
|
|
3088
3092
|
let loadCall;
|
|
3089
|
-
if (typeof source === "
|
|
3090
|
-
loadCall = Promise.reject(new Error("INTENTIONALLY BROKEN: this build of intl-tel-input includes the utilities module inline, but it has incorrectly attempted to load the utilities separately. If you are seeing this message, something is broken!"));
|
|
3091
|
-
} else if (typeof source === "function") {
|
|
3093
|
+
if (typeof source === "function") {
|
|
3092
3094
|
try {
|
|
3093
3095
|
loadCall = Promise.resolve(source());
|
|
3094
3096
|
} catch (error) {
|
|
3095
3097
|
return Promise.reject(error);
|
|
3096
3098
|
}
|
|
3097
3099
|
} else {
|
|
3098
|
-
return Promise.reject(new TypeError(`The argument passed to
|
|
3100
|
+
return Promise.reject(new TypeError(`The argument passed to attachUtils must be a function that returns a promise for the utilities module, not ${typeof source}`));
|
|
3099
3101
|
}
|
|
3100
3102
|
intlTelInput.startedLoadingUtilsScript = true;
|
|
3101
3103
|
return loadCall.then((module2) => {
|
|
3102
3104
|
const utils2 = module2?.default;
|
|
3103
3105
|
if (!utils2 || typeof utils2 !== "object") {
|
|
3104
|
-
|
|
3105
|
-
throw new TypeError(`The module loaded from ${source} did not set utils as its default export.`);
|
|
3106
|
-
} else {
|
|
3107
|
-
throw new TypeError("The loader function passed to loadUtils did not resolve to a module object with utils as its default export.");
|
|
3108
|
-
}
|
|
3106
|
+
throw new TypeError("The loader function passed to attachUtils did not resolve to a module object with utils as its default export.");
|
|
3109
3107
|
}
|
|
3110
3108
|
intlTelInput.utils = utils2;
|
|
3111
3109
|
forEachInstance("handleUtils");
|
|
@@ -3138,10 +3136,10 @@ var intlTelInput = Object.assign(
|
|
|
3138
3136
|
},
|
|
3139
3137
|
//* A map from instance ID to instance object.
|
|
3140
3138
|
instances: {},
|
|
3141
|
-
|
|
3139
|
+
attachUtils,
|
|
3142
3140
|
startedLoadingUtilsScript: false,
|
|
3143
3141
|
startedLoadingAutoCountry: false,
|
|
3144
|
-
version: "
|
|
3142
|
+
version: "25.0.1"
|
|
3145
3143
|
}
|
|
3146
3144
|
);
|
|
3147
3145
|
var intl_tel_input_default = intlTelInput;
|
|
@@ -3175,7 +3173,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
3175
3173
|
return b;
|
|
3176
3174
|
}
|
|
3177
3175
|
;
|
|
3178
|
-
var
|
|
3176
|
+
var da = class {
|
|
3179
3177
|
constructor(a) {
|
|
3180
3178
|
if (ba !== ba) throw Error("SafeUrl is not meant to be built directly");
|
|
3181
3179
|
this.g = a;
|
|
@@ -3184,8 +3182,8 @@ var intl_tel_input_default = intlTelInput;
|
|
|
3184
3182
|
return this.g.toString();
|
|
3185
3183
|
}
|
|
3186
3184
|
}, ba = {};
|
|
3187
|
-
new
|
|
3188
|
-
new
|
|
3185
|
+
new da("about:invalid#zClosurez");
|
|
3186
|
+
new da("about:blank");
|
|
3189
3187
|
const ea = {};
|
|
3190
3188
|
class fa {
|
|
3191
3189
|
constructor() {
|
|
@@ -3364,91 +3362,91 @@ var intl_tel_input_default = intlTelInput;
|
|
|
3364
3362
|
return b;
|
|
3365
3363
|
};
|
|
3366
3364
|
var xa = /^-?[0-9]+$/;
|
|
3367
|
-
function
|
|
3365
|
+
function B() {
|
|
3368
3366
|
}
|
|
3369
|
-
n(
|
|
3370
|
-
|
|
3367
|
+
n(B, z);
|
|
3368
|
+
B.prototype.g = function(a, b) {
|
|
3371
3369
|
a = new a.h();
|
|
3372
3370
|
a.l = this;
|
|
3373
3371
|
a.h = b;
|
|
3374
3372
|
a.g = {};
|
|
3375
3373
|
return a;
|
|
3376
3374
|
};
|
|
3377
|
-
function
|
|
3375
|
+
function C() {
|
|
3378
3376
|
}
|
|
3379
|
-
n(
|
|
3380
|
-
|
|
3377
|
+
n(C, B);
|
|
3378
|
+
C.prototype.h = function(a, b) {
|
|
3381
3379
|
return 8 == a.h ? !!b : z.prototype.h.apply(this, arguments);
|
|
3382
3380
|
};
|
|
3383
|
-
|
|
3384
|
-
return
|
|
3381
|
+
C.prototype.g = function(a, b) {
|
|
3382
|
+
return C.ma.g.call(this, a, b);
|
|
3385
3383
|
};
|
|
3386
|
-
function
|
|
3384
|
+
function D(a, b) {
|
|
3387
3385
|
null != a && this.g.apply(this, arguments);
|
|
3388
3386
|
}
|
|
3389
|
-
|
|
3390
|
-
|
|
3387
|
+
D.prototype.h = "";
|
|
3388
|
+
D.prototype.set = function(a) {
|
|
3391
3389
|
this.h = "" + a;
|
|
3392
3390
|
};
|
|
3393
|
-
|
|
3391
|
+
D.prototype.g = function(a, b, c) {
|
|
3394
3392
|
this.h += String(a);
|
|
3395
3393
|
if (null != b) for (let d = 1; d < arguments.length; d++) this.h += arguments[d];
|
|
3396
3394
|
return this;
|
|
3397
3395
|
};
|
|
3398
|
-
function
|
|
3396
|
+
function E(a) {
|
|
3399
3397
|
a.h = "";
|
|
3400
3398
|
}
|
|
3401
|
-
|
|
3399
|
+
D.prototype.toString = function() {
|
|
3402
3400
|
return this.h;
|
|
3403
3401
|
};
|
|
3404
|
-
function E() {
|
|
3405
|
-
p.call(this);
|
|
3406
|
-
}
|
|
3407
|
-
n(E, p);
|
|
3408
|
-
var za = null;
|
|
3409
3402
|
function F() {
|
|
3410
3403
|
p.call(this);
|
|
3411
3404
|
}
|
|
3412
3405
|
n(F, p);
|
|
3413
|
-
var
|
|
3406
|
+
var ya = null;
|
|
3414
3407
|
function G() {
|
|
3415
3408
|
p.call(this);
|
|
3416
3409
|
}
|
|
3417
3410
|
n(G, p);
|
|
3418
|
-
var
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
E.m = E.prototype.m;
|
|
3411
|
+
var za = null;
|
|
3412
|
+
function H() {
|
|
3413
|
+
p.call(this);
|
|
3414
|
+
}
|
|
3415
|
+
n(H, p);
|
|
3416
|
+
var Aa = null;
|
|
3425
3417
|
F.prototype.m = function() {
|
|
3426
|
-
var a =
|
|
3427
|
-
a || (
|
|
3418
|
+
var a = ya;
|
|
3419
|
+
a || (ya = a = y(F, { 0: { name: "NumberFormat", ia: "i18n.phonenumbers.NumberFormat" }, 1: { name: "pattern", required: true, i: 9, type: String }, 2: { name: "format", required: true, i: 9, type: String }, 3: { name: "leading_digits_pattern", aa: true, i: 9, type: String }, 4: { name: "national_prefix_formatting_rule", i: 9, type: String }, 6: { name: "national_prefix_optional_when_formatting", i: 8, defaultValue: false, type: Boolean }, 5: { name: "domestic_carrier_code_formatting_rule", i: 9, type: String } }));
|
|
3428
3420
|
return a;
|
|
3429
3421
|
};
|
|
3430
3422
|
F.m = F.prototype.m;
|
|
3431
3423
|
G.prototype.m = function() {
|
|
3432
|
-
var a =
|
|
3433
|
-
a || (
|
|
3424
|
+
var a = za;
|
|
3425
|
+
a || (za = a = y(G, { 0: { name: "PhoneNumberDesc", ia: "i18n.phonenumbers.PhoneNumberDesc" }, 2: { name: "national_number_pattern", i: 9, type: String }, 9: { name: "possible_length", aa: true, i: 5, type: Number }, 10: { name: "possible_length_local_only", aa: true, i: 5, type: Number }, 6: { name: "example_number", i: 9, type: String } }));
|
|
3426
|
+
return a;
|
|
3427
|
+
};
|
|
3428
|
+
G.m = G.prototype.m;
|
|
3429
|
+
H.prototype.m = function() {
|
|
3430
|
+
var a = Aa;
|
|
3431
|
+
a || (Aa = a = y(H, {
|
|
3434
3432
|
0: { name: "PhoneMetadata", ia: "i18n.phonenumbers.PhoneMetadata" },
|
|
3435
|
-
1: { name: "general_desc", i: 11, type:
|
|
3436
|
-
2: { name: "fixed_line", i: 11, type:
|
|
3437
|
-
3: { name: "mobile", i: 11, type:
|
|
3438
|
-
4: { name: "toll_free", i: 11, type:
|
|
3439
|
-
5: { name: "premium_rate", i: 11, type:
|
|
3440
|
-
6: { name: "shared_cost", i: 11, type:
|
|
3441
|
-
7: { name: "personal_number", i: 11, type:
|
|
3442
|
-
8: { name: "voip", i: 11, type:
|
|
3443
|
-
21: { name: "pager", i: 11, type:
|
|
3444
|
-
25: { name: "uan", i: 11, type:
|
|
3445
|
-
27: { name: "emergency", i: 11, type:
|
|
3446
|
-
28: { name: "voicemail", i: 11, type:
|
|
3447
|
-
29: { name: "short_code", i: 11, type:
|
|
3448
|
-
30: { name: "standard_rate", i: 11, type:
|
|
3449
|
-
31: { name: "carrier_specific", i: 11, type:
|
|
3450
|
-
33: { name: "sms_services", i: 11, type:
|
|
3451
|
-
24: { name: "no_international_dialling", i: 11, type:
|
|
3433
|
+
1: { name: "general_desc", i: 11, type: G },
|
|
3434
|
+
2: { name: "fixed_line", i: 11, type: G },
|
|
3435
|
+
3: { name: "mobile", i: 11, type: G },
|
|
3436
|
+
4: { name: "toll_free", i: 11, type: G },
|
|
3437
|
+
5: { name: "premium_rate", i: 11, type: G },
|
|
3438
|
+
6: { name: "shared_cost", i: 11, type: G },
|
|
3439
|
+
7: { name: "personal_number", i: 11, type: G },
|
|
3440
|
+
8: { name: "voip", i: 11, type: G },
|
|
3441
|
+
21: { name: "pager", i: 11, type: G },
|
|
3442
|
+
25: { name: "uan", i: 11, type: G },
|
|
3443
|
+
27: { name: "emergency", i: 11, type: G },
|
|
3444
|
+
28: { name: "voicemail", i: 11, type: G },
|
|
3445
|
+
29: { name: "short_code", i: 11, type: G },
|
|
3446
|
+
30: { name: "standard_rate", i: 11, type: G },
|
|
3447
|
+
31: { name: "carrier_specific", i: 11, type: G },
|
|
3448
|
+
33: { name: "sms_services", i: 11, type: G },
|
|
3449
|
+
24: { name: "no_international_dialling", i: 11, type: G },
|
|
3452
3450
|
9: { name: "id", required: true, i: 9, type: String },
|
|
3453
3451
|
10: { name: "country_code", i: 5, type: Number },
|
|
3454
3452
|
11: { name: "international_prefix", i: 9, type: String },
|
|
@@ -3462,31 +3460,31 @@ var intl_tel_input_default = intlTelInput;
|
|
|
3462
3460
|
},
|
|
3463
3461
|
16: { name: "national_prefix_transform_rule", i: 9, type: String },
|
|
3464
3462
|
18: { name: "same_mobile_and_fixed_line_pattern", i: 8, defaultValue: false, type: Boolean },
|
|
3465
|
-
19: { name: "number_format", aa: true, i: 11, type:
|
|
3466
|
-
20: { name: "intl_number_format", aa: true, i: 11, type:
|
|
3463
|
+
19: { name: "number_format", aa: true, i: 11, type: F },
|
|
3464
|
+
20: { name: "intl_number_format", aa: true, i: 11, type: F },
|
|
3467
3465
|
22: { name: "main_country_for_code", i: 8, defaultValue: false, type: Boolean },
|
|
3468
3466
|
23: { name: "leading_digits", i: 9, type: String }
|
|
3469
3467
|
}));
|
|
3470
3468
|
return a;
|
|
3471
3469
|
};
|
|
3472
|
-
|
|
3473
|
-
function
|
|
3470
|
+
H.m = H.prototype.m;
|
|
3471
|
+
function I() {
|
|
3474
3472
|
p.call(this);
|
|
3475
3473
|
}
|
|
3476
|
-
n(
|
|
3477
|
-
var
|
|
3478
|
-
|
|
3479
|
-
var a =
|
|
3480
|
-
a || (
|
|
3474
|
+
n(I, p);
|
|
3475
|
+
var Ba = null, Ca = { ra: 0, qa: 1, pa: 5, oa: 10, na: 20 };
|
|
3476
|
+
I.prototype.m = function() {
|
|
3477
|
+
var a = Ba;
|
|
3478
|
+
a || (Ba = a = y(I, { 0: { name: "PhoneNumber", ia: "i18n.phonenumbers.PhoneNumber" }, 1: { name: "country_code", required: true, i: 5, type: Number }, 2: { name: "national_number", required: true, i: 4, type: Number }, 3: { name: "extension", i: 9, type: String }, 4: { name: "italian_leading_zero", i: 8, type: Boolean }, 8: { name: "number_of_leading_zeros", i: 5, defaultValue: 1, type: Number }, 5: { name: "raw_input", i: 9, type: String }, 6: { name: "country_code_source", i: 14, defaultValue: 0, type: Ca }, 7: {
|
|
3481
3479
|
name: "preferred_domestic_carrier_code",
|
|
3482
3480
|
i: 9,
|
|
3483
3481
|
type: String
|
|
3484
3482
|
} }));
|
|
3485
3483
|
return a;
|
|
3486
3484
|
};
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
var
|
|
3485
|
+
I.ctor = I;
|
|
3486
|
+
I.ctor.m = I.prototype.m;
|
|
3487
|
+
var J = {
|
|
3490
3488
|
1: "US AG AI AS BB BM BS CA DM DO GD GU JM KN KY LC MP MS PR SX TC TT VC VG VI".split(" "),
|
|
3491
3489
|
7: ["RU", "KZ"],
|
|
3492
3490
|
20: ["EG"],
|
|
@@ -3702,7 +3700,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
3702
3700
|
995: ["GE"],
|
|
3703
3701
|
996: ["KG"],
|
|
3704
3702
|
998: ["UZ"]
|
|
3705
|
-
},
|
|
3703
|
+
}, Da = {
|
|
3706
3704
|
AC: [, [
|
|
3707
3705
|
,
|
|
3708
3706
|
,
|
|
@@ -8567,14 +8565,14 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8567
8565
|
], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "001", 888, , , , , , , , 1, [[, "(\\d{3})(\\d{3})(\\d{5})", "$1 $2 $3"]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , "\\d{11}", , , , "12345678901"], , , [, , , , , , , , , [-1]]],
|
|
8568
8566
|
979: [, [, , "[1359]\\d{8}", , , , , , , [9], [8]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "[1359]\\d{8}", , , , "123456789", , , , [8]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "001", 979, , , , , , , , 1, [[, "(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[1359]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]]
|
|
8569
8567
|
};
|
|
8570
|
-
function
|
|
8568
|
+
function K() {
|
|
8571
8569
|
this.g = {};
|
|
8572
8570
|
}
|
|
8573
|
-
|
|
8574
|
-
|
|
8575
|
-
return
|
|
8571
|
+
K.h = void 0;
|
|
8572
|
+
K.g = function() {
|
|
8573
|
+
return K.h ? K.h : K.h = new K();
|
|
8576
8574
|
};
|
|
8577
|
-
var
|
|
8575
|
+
var Ea = { 0: "0", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7", 8: "8", 9: "9", "\uFF10": "0", "\uFF11": "1", "\uFF12": "2", "\uFF13": "3", "\uFF14": "4", "\uFF15": "5", "\uFF16": "6", "\uFF17": "7", "\uFF18": "8", "\uFF19": "9", "\u0660": "0", "\u0661": "1", "\u0662": "2", "\u0663": "3", "\u0664": "4", "\u0665": "5", "\u0666": "6", "\u0667": "7", "\u0668": "8", "\u0669": "9", "\u06F0": "0", "\u06F1": "1", "\u06F2": "2", "\u06F3": "3", "\u06F4": "4", "\u06F5": "5", "\u06F6": "6", "\u06F7": "7", "\u06F8": "8", "\u06F9": "9" }, Fa = {
|
|
8578
8576
|
0: "0",
|
|
8579
8577
|
1: "1",
|
|
8580
8578
|
2: "2",
|
|
@@ -8588,7 +8586,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8588
8586
|
"+": "+",
|
|
8589
8587
|
"*": "*",
|
|
8590
8588
|
"#": "#"
|
|
8591
|
-
},
|
|
8589
|
+
}, Ga = {
|
|
8592
8590
|
0: "0",
|
|
8593
8591
|
1: "1",
|
|
8594
8592
|
2: "2",
|
|
@@ -8655,48 +8653,48 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8655
8653
|
X: "9",
|
|
8656
8654
|
Y: "9",
|
|
8657
8655
|
Z: "9"
|
|
8658
|
-
},
|
|
8659
|
-
function
|
|
8656
|
+
}, Ha = RegExp("[+\uFF0B]+"), L = RegExp("^[+\uFF0B]+"), Ia = RegExp("([0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9])"), Ja = RegExp("[+\uFF0B0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9]"), Ka = /[\\\/] *x/, La = RegExp("[^0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9A-Za-z#]+$"), Ma = /(?:.*?[A-Za-z]){3}.*/, Na = RegExp("^\\+([0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9]|[\\-\\.\\(\\)]?)*[0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9]([0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9]|[\\-\\.\\(\\)]?)*$"), Oa = RegExp("^([A-Za-z0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9]+((\\-)*[A-Za-z0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9])*\\.)*[A-Za-z]+((\\-)*[A-Za-z0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9])*\\.?$");
|
|
8657
|
+
function M(a) {
|
|
8660
8658
|
return "([0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9]{1," + a + "})";
|
|
8661
8659
|
}
|
|
8662
|
-
function
|
|
8663
|
-
return ";ext=" +
|
|
8660
|
+
function Pa() {
|
|
8661
|
+
return ";ext=" + M("20") + "|[ \xA0\\t,]*(?:e?xt(?:ensi(?:o\u0301?|\xF3))?n?|\uFF45?\uFF58\uFF54\uFF4E?|\u0434\u043E\u0431|anexo)[:\\.\uFF0E]?[ \xA0\\t,-]*" + (M("20") + "#?|[ \xA0\\t,]*(?:[x\uFF58#\uFF03~\uFF5E]|int|\uFF49\uFF4E\uFF54)[:\\.\uFF0E]?[ \xA0\\t,-]*") + (M("9") + "#?|[- ]+") + (M("6") + "#|[ \xA0\\t]*(?:,{2}|;)[:\\.\uFF0E]?[ \xA0\\t,-]*") + (M("15") + "#?|[ \xA0\\t]*(?:,)+[:\\.\uFF0E]?[ \xA0\\t,-]*") + (M("9") + "#?");
|
|
8662
|
+
}
|
|
8663
|
+
var Qa = new RegExp("(?:" + Pa() + ")$", "i"), Ra = new RegExp("^[0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9]{2}$|^[+\uFF0B]*(?:[-x\u2010-\u2015\u2212\u30FC\uFF0D-\uFF0F \xA0\xAD\u200B\u2060\u3000()\uFF08\uFF09\uFF3B\uFF3D.\\[\\]/~\u2053\u223C\uFF5E*]*[0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9]){3,}[-x\u2010-\u2015\u2212\u30FC\uFF0D-\uFF0F \xA0\xAD\u200B\u2060\u3000()\uFF08\uFF09\uFF3B\uFF3D.\\[\\]/~\u2053\u223C\uFF5E*A-Za-z0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9]*(?:" + Pa() + ")?$", "i"), Sa = /(\$\d)/, Ta = /^\(?\$1\)?$/;
|
|
8664
|
+
function Ua(a) {
|
|
8665
|
+
return 2 > a.length ? false : N(Ra, a);
|
|
8664
8666
|
}
|
|
8665
|
-
var Ra = new RegExp("(?:" + Qa() + ")$", "i"), Sa = new RegExp("^[0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9]{2}$|^[+\uFF0B]*(?:[-x\u2010-\u2015\u2212\u30FC\uFF0D-\uFF0F \xA0\xAD\u200B\u2060\u3000()\uFF08\uFF09\uFF3B\uFF3D.\\[\\]/~\u2053\u223C\uFF5E*]*[0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9]){3,}[-x\u2010-\u2015\u2212\u30FC\uFF0D-\uFF0F \xA0\xAD\u200B\u2060\u3000()\uFF08\uFF09\uFF3B\uFF3D.\\[\\]/~\u2053\u223C\uFF5E*A-Za-z0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9]*(?:" + Qa() + ")?$", "i"), Ta = /(\$\d)/, Ua = /^\(?\$1\)?$/;
|
|
8666
8667
|
function Va(a) {
|
|
8667
|
-
return
|
|
8668
|
+
return N(Ma, a) ? O(a, Ga) : O(a, Ea);
|
|
8668
8669
|
}
|
|
8669
8670
|
function Wa(a) {
|
|
8670
|
-
|
|
8671
|
-
|
|
8672
|
-
function Xa(a) {
|
|
8673
|
-
var b = Wa(a.toString());
|
|
8674
|
-
D(a);
|
|
8671
|
+
var b = Va(a.toString());
|
|
8672
|
+
E(a);
|
|
8675
8673
|
a.g(b);
|
|
8676
8674
|
}
|
|
8677
|
-
function
|
|
8675
|
+
function Xa(a) {
|
|
8678
8676
|
return null != a && (1 != x(a, 9) || -1 != u(a, 9)[0]);
|
|
8679
8677
|
}
|
|
8680
|
-
function
|
|
8681
|
-
for (var c = new
|
|
8678
|
+
function O(a, b) {
|
|
8679
|
+
for (var c = new D(), d, e = a.length, f = 0; f < e; ++f) d = a.charAt(f), d = b[d.toUpperCase()], null != d && c.g(d);
|
|
8682
8680
|
return c.toString();
|
|
8683
8681
|
}
|
|
8684
|
-
function
|
|
8685
|
-
return 0 == a.length ||
|
|
8682
|
+
function Ya(a) {
|
|
8683
|
+
return 0 == a.length || Ta.test(a);
|
|
8686
8684
|
}
|
|
8687
|
-
function
|
|
8688
|
-
return null != a && isNaN(a) && a.toUpperCase() in
|
|
8685
|
+
function P(a) {
|
|
8686
|
+
return null != a && isNaN(a) && a.toUpperCase() in Da;
|
|
8689
8687
|
}
|
|
8690
|
-
|
|
8688
|
+
K.prototype.format = function(a, b) {
|
|
8691
8689
|
if (0 == r(a, 2) && q(a, 5)) {
|
|
8692
8690
|
var c = w(a, 5);
|
|
8693
8691
|
if (0 < c.length) return c;
|
|
8694
8692
|
}
|
|
8695
8693
|
c = w(a, 1);
|
|
8696
|
-
var d =
|
|
8697
|
-
if (0 == b) return
|
|
8698
|
-
if (!(c in
|
|
8699
|
-
var e =
|
|
8694
|
+
var d = Q(a);
|
|
8695
|
+
if (0 == b) return Za(c, 0, d, "");
|
|
8696
|
+
if (!(c in J)) return d;
|
|
8697
|
+
var e = R(this, c, S(c));
|
|
8700
8698
|
a = q(a, 3) && 0 != r(a, 3).length ? 3 == b ? ";ext=" + r(a, 3) : q(e, 13) ? r(e, 13) + w(a, 3) : " ext. " + w(a, 3) : "";
|
|
8701
8699
|
a: {
|
|
8702
8700
|
e = 0 == u(e, 20).length || 2 == b ? u(e, 19) : u(e, 20);
|
|
@@ -8704,7 +8702,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8704
8702
|
f = e[h];
|
|
8705
8703
|
var l = x(f, 3);
|
|
8706
8704
|
if (0 == l || 0 == d.search(r(f, 3, l - 1))) {
|
|
8707
|
-
if (l = new RegExp(r(f, 1)),
|
|
8705
|
+
if (l = new RegExp(r(f, 1)), N(l, d)) {
|
|
8708
8706
|
e = f;
|
|
8709
8707
|
break a;
|
|
8710
8708
|
}
|
|
@@ -8715,18 +8713,18 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8715
8713
|
null != e && (g = e, e = w(g, 2), f = new RegExp(r(g, 1)), w(
|
|
8716
8714
|
g,
|
|
8717
8715
|
5
|
|
8718
|
-
), g = w(g, 4), d = 2 == b && null != g && 0 < g.length ? d.replace(f, e.replace(
|
|
8719
|
-
return
|
|
8716
|
+
), g = w(g, 4), d = 2 == b && null != g && 0 < g.length ? d.replace(f, e.replace(Sa, g)) : d.replace(f, e), 3 == b && (d = d.replace(RegExp("^[-x\u2010-\u2015\u2212\u30FC\uFF0D-\uFF0F \xA0\xAD\u200B\u2060\u3000()\uFF08\uFF09\uFF3B\uFF3D.\\[\\]/~\u2053\u223C\uFF5E]+"), ""), d = d.replace(RegExp("[-x\u2010-\u2015\u2212\u30FC\uFF0D-\uFF0F \xA0\xAD\u200B\u2060\u3000()\uFF08\uFF09\uFF3B\uFF3D.\\[\\]/~\u2053\u223C\uFF5E]+", "g"), "-")));
|
|
8717
|
+
return Za(c, b, d, a);
|
|
8720
8718
|
};
|
|
8721
|
-
function
|
|
8722
|
-
return "001" == c ?
|
|
8719
|
+
function R(a, b, c) {
|
|
8720
|
+
return "001" == c ? T(a, "" + b) : T(a, c);
|
|
8723
8721
|
}
|
|
8724
|
-
function
|
|
8722
|
+
function Q(a) {
|
|
8725
8723
|
if (!q(a, 2)) return "";
|
|
8726
8724
|
var b = "" + r(a, 2);
|
|
8727
8725
|
return q(a, 4) && r(a, 4) && 0 < w(a, 8) ? Array(w(a, 8) + 1).join("0") + b : b;
|
|
8728
8726
|
}
|
|
8729
|
-
function
|
|
8727
|
+
function Za(a, b, c, d) {
|
|
8730
8728
|
switch (b) {
|
|
8731
8729
|
case 0:
|
|
8732
8730
|
return "+" + a + c + d;
|
|
@@ -8738,7 +8736,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8738
8736
|
return c + d;
|
|
8739
8737
|
}
|
|
8740
8738
|
}
|
|
8741
|
-
function
|
|
8739
|
+
function U(a, b) {
|
|
8742
8740
|
switch (b) {
|
|
8743
8741
|
case 4:
|
|
8744
8742
|
return r(a, 5);
|
|
@@ -8765,42 +8763,56 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8765
8763
|
return r(a, 1);
|
|
8766
8764
|
}
|
|
8767
8765
|
}
|
|
8768
|
-
function
|
|
8769
|
-
|
|
8766
|
+
function $a(a, b) {
|
|
8767
|
+
var c = ab(a, b);
|
|
8768
|
+
a = R(a, w(b, 1), c);
|
|
8769
|
+
if (null == a) return -1;
|
|
8770
|
+
b = Q(b);
|
|
8771
|
+
return bb(b, a);
|
|
8770
8772
|
}
|
|
8771
|
-
function
|
|
8773
|
+
function bb(a, b) {
|
|
8774
|
+
return V(a, r(b, 1)) ? V(a, r(b, 5)) ? 4 : V(a, r(b, 4)) ? 3 : V(a, r(b, 6)) ? 5 : V(a, r(b, 8)) ? 6 : V(a, r(b, 7)) ? 7 : V(a, r(b, 21)) ? 8 : V(a, r(b, 25)) ? 9 : V(a, r(b, 28)) ? 10 : V(a, r(b, 2)) ? r(b, 18) || V(a, r(b, 3)) ? 2 : 0 : !r(b, 18) && V(a, r(b, 3)) ? 1 : -1 : -1;
|
|
8775
|
+
}
|
|
8776
|
+
function T(a, b) {
|
|
8772
8777
|
if (null == b) return null;
|
|
8773
8778
|
b = b.toUpperCase();
|
|
8774
8779
|
var c = a.g[b];
|
|
8775
8780
|
if (null == c) {
|
|
8776
|
-
c =
|
|
8781
|
+
c = Da[b];
|
|
8777
8782
|
if (null == c) return null;
|
|
8778
|
-
c = new
|
|
8783
|
+
c = new C().g(H.m(), c);
|
|
8779
8784
|
a.g[b] = c;
|
|
8780
8785
|
}
|
|
8781
8786
|
return c;
|
|
8782
8787
|
}
|
|
8783
|
-
function
|
|
8788
|
+
function V(a, b) {
|
|
8784
8789
|
var c = a.length;
|
|
8785
|
-
return 0 < x(b, 9) && -1 == u(b, 9).indexOf(c) ? false :
|
|
8790
|
+
return 0 < x(b, 9) && -1 == u(b, 9).indexOf(c) ? false : N(w(b, 2), a);
|
|
8786
8791
|
}
|
|
8787
|
-
function
|
|
8792
|
+
function cb(a, b) {
|
|
8793
|
+
var c = ab(a, b);
|
|
8794
|
+
var d = w(b, 1);
|
|
8795
|
+
var e = R(a, d, c);
|
|
8796
|
+
null == e || "001" != c && d != db(a, c) ? e = false : (a = Q(b), e = -1 != bb(a, e));
|
|
8797
|
+
return e;
|
|
8798
|
+
}
|
|
8799
|
+
function ab(a, b) {
|
|
8788
8800
|
if (null == b) return null;
|
|
8789
8801
|
var c = w(b, 1);
|
|
8790
|
-
c =
|
|
8802
|
+
c = J[c];
|
|
8791
8803
|
if (null == c) a = null;
|
|
8792
8804
|
else if (1 == c.length) a = c[0];
|
|
8793
8805
|
else a: {
|
|
8794
|
-
b =
|
|
8806
|
+
b = Q(b);
|
|
8795
8807
|
for (var d, e = c.length, f = 0; f < e; f++) {
|
|
8796
8808
|
d = c[f];
|
|
8797
|
-
var g =
|
|
8809
|
+
var g = T(a, d);
|
|
8798
8810
|
if (q(g, 23)) {
|
|
8799
8811
|
if (0 == b.search(r(g, 23))) {
|
|
8800
8812
|
a = d;
|
|
8801
8813
|
break a;
|
|
8802
8814
|
}
|
|
8803
|
-
} else if (-1 !=
|
|
8815
|
+
} else if (-1 != bb(b, g)) {
|
|
8804
8816
|
a = d;
|
|
8805
8817
|
break a;
|
|
8806
8818
|
}
|
|
@@ -8809,92 +8821,92 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8809
8821
|
}
|
|
8810
8822
|
return a;
|
|
8811
8823
|
}
|
|
8812
|
-
function
|
|
8813
|
-
a =
|
|
8824
|
+
function S(a) {
|
|
8825
|
+
a = J[a];
|
|
8814
8826
|
return null == a ? "ZZ" : a[0];
|
|
8815
8827
|
}
|
|
8816
|
-
function
|
|
8817
|
-
a =
|
|
8828
|
+
function db(a, b) {
|
|
8829
|
+
a = T(a, b);
|
|
8818
8830
|
if (null == a) throw Error("Invalid region code: " + b);
|
|
8819
8831
|
return w(a, 10);
|
|
8820
8832
|
}
|
|
8821
|
-
function
|
|
8822
|
-
var e =
|
|
8833
|
+
function W(a, b, c, d) {
|
|
8834
|
+
var e = U(c, d), f = 0 == x(e, 9) ? u(r(c, 1), 9) : u(e, 9);
|
|
8823
8835
|
e = u(e, 10);
|
|
8824
|
-
if (2 == d) if (
|
|
8825
|
-
else return
|
|
8836
|
+
if (2 == d) if (Xa(U(c, 0))) a = U(c, 1), Xa(a) && (f = f.concat(0 == x(a, 9) ? u(r(c, 1), 9) : u(a, 9)), f.sort(), 0 == e.length ? e = u(a, 10) : (e = e.concat(u(a, 10)), e.sort()));
|
|
8837
|
+
else return W(a, b, c, 1);
|
|
8826
8838
|
if (-1 == f[0]) return 5;
|
|
8827
8839
|
b = b.length;
|
|
8828
8840
|
if (-1 < e.indexOf(b)) return 4;
|
|
8829
8841
|
c = f[0];
|
|
8830
8842
|
return c == b ? 0 : c > b ? 2 : f[f.length - 1] < b ? 3 : -1 < f.indexOf(b, 1) ? 0 : 5;
|
|
8831
8843
|
}
|
|
8832
|
-
function
|
|
8833
|
-
var d =
|
|
8844
|
+
function X(a, b, c) {
|
|
8845
|
+
var d = Q(b);
|
|
8834
8846
|
b = w(b, 1);
|
|
8835
|
-
if (!(b in
|
|
8836
|
-
b =
|
|
8837
|
-
return
|
|
8847
|
+
if (!(b in J)) return 1;
|
|
8848
|
+
b = R(a, b, S(b));
|
|
8849
|
+
return W(a, d, b, c);
|
|
8838
8850
|
}
|
|
8839
|
-
function
|
|
8851
|
+
function eb(a, b) {
|
|
8840
8852
|
a = a.toString();
|
|
8841
8853
|
if (0 == a.length || "0" == a.charAt(0)) return 0;
|
|
8842
|
-
for (var c, d = a.length, e = 1; 3 >= e && e <= d; ++e) if (c = parseInt(a.substring(0, e), 10), c in
|
|
8854
|
+
for (var c, d = a.length, e = 1; 3 >= e && e <= d; ++e) if (c = parseInt(a.substring(0, e), 10), c in J) return b.g(a.substring(e)), c;
|
|
8843
8855
|
return 0;
|
|
8844
8856
|
}
|
|
8845
|
-
function
|
|
8857
|
+
function fb(a, b, c, d, e, f) {
|
|
8846
8858
|
if (0 == b.length) return 0;
|
|
8847
|
-
b = new
|
|
8859
|
+
b = new D(b);
|
|
8848
8860
|
var g;
|
|
8849
8861
|
null != c && (g = r(c, 11));
|
|
8850
8862
|
null == g && (g = "NonMatch");
|
|
8851
8863
|
var h = b.toString();
|
|
8852
8864
|
if (0 == h.length) g = 20;
|
|
8853
|
-
else if (
|
|
8865
|
+
else if (L.test(h)) h = h.replace(L, ""), E(b), b.g(Va(h)), g = 1;
|
|
8854
8866
|
else {
|
|
8855
8867
|
h = new RegExp(g);
|
|
8856
|
-
|
|
8868
|
+
Wa(b);
|
|
8857
8869
|
g = b.toString();
|
|
8858
8870
|
if (0 == g.search(h)) {
|
|
8859
8871
|
h = g.match(h)[0].length;
|
|
8860
|
-
var l = g.substring(h).match(
|
|
8861
|
-
l && null != l[1] && 0 < l[1].length && "0" ==
|
|
8872
|
+
var l = g.substring(h).match(Ia);
|
|
8873
|
+
l && null != l[1] && 0 < l[1].length && "0" == O(l[1], Ea) ? g = false : (E(b), b.g(g.substring(h)), g = true);
|
|
8862
8874
|
} else g = false;
|
|
8863
8875
|
g = g ? 5 : 20;
|
|
8864
8876
|
}
|
|
8865
8877
|
e && t(f, 6, g);
|
|
8866
8878
|
if (20 != g) {
|
|
8867
8879
|
if (2 >= b.h.length) throw Error("Phone number too short after IDD");
|
|
8868
|
-
a =
|
|
8880
|
+
a = eb(b, d);
|
|
8869
8881
|
if (0 != a) return t(f, 1, a), a;
|
|
8870
8882
|
throw Error("Invalid country calling code");
|
|
8871
8883
|
}
|
|
8872
|
-
if (null != c && (g = w(c, 10), h = "" + g, l = b.toString(), 0 == l.lastIndexOf(h, 0) && (h = new
|
|
8884
|
+
if (null != c && (g = w(c, 10), h = "" + g, l = b.toString(), 0 == l.lastIndexOf(h, 0) && (h = new D(l.substring(h.length)), l = r(c, 1), l = new RegExp(w(l, 2)), gb(h, c, null), h = h.toString(), !N(l, b.toString()) && N(l, h) || 3 == W(a, b.toString(), c, -1)))) return d.g(h), e && t(f, 6, 10), t(f, 1, g), g;
|
|
8873
8885
|
t(f, 1, 0);
|
|
8874
8886
|
return 0;
|
|
8875
8887
|
}
|
|
8876
|
-
function
|
|
8888
|
+
function gb(a, b, c) {
|
|
8877
8889
|
var d = a.toString(), e = d.length, f = r(b, 15);
|
|
8878
8890
|
if (0 != e && null != f && 0 != f.length) {
|
|
8879
8891
|
var g = new RegExp("^(?:" + f + ")");
|
|
8880
8892
|
if (e = g.exec(d)) {
|
|
8881
8893
|
f = new RegExp(w(r(b, 1), 2));
|
|
8882
|
-
var h =
|
|
8894
|
+
var h = N(f, d), l = e.length - 1;
|
|
8883
8895
|
b = r(b, 16);
|
|
8884
8896
|
if (null == b || 0 == b.length || null == e[l] || 0 == e[l].length) {
|
|
8885
|
-
if (!h ||
|
|
8886
|
-
} else if (d = d.replace(g, b), !h ||
|
|
8897
|
+
if (!h || N(f, d.substring(e[0].length))) null != c && 0 < l && null != e[l] && c.g(e[1]), a.set(d.substring(e[0].length));
|
|
8898
|
+
} else if (d = d.replace(g, b), !h || N(f, d)) null != c && 0 < l && c.g(e[1]), a.set(d);
|
|
8887
8899
|
}
|
|
8888
8900
|
}
|
|
8889
8901
|
}
|
|
8890
|
-
function
|
|
8891
|
-
if (!
|
|
8892
|
-
return
|
|
8902
|
+
function Y(a, b, c) {
|
|
8903
|
+
if (!P(c) && 0 < b.length && "+" != b.charAt(0)) throw Error("Invalid country calling code");
|
|
8904
|
+
return hb(a, b, c, true);
|
|
8893
8905
|
}
|
|
8894
|
-
function
|
|
8906
|
+
function hb(a, b, c, d) {
|
|
8895
8907
|
if (null == b) throw Error("The string supplied did not seem to be a phone number");
|
|
8896
8908
|
if (250 < b.length) throw Error("The string supplied is too long to be a phone number");
|
|
8897
|
-
var e = new
|
|
8909
|
+
var e = new D();
|
|
8898
8910
|
var f = b.indexOf(";phone-context=");
|
|
8899
8911
|
if (-1 === f) f = null;
|
|
8900
8912
|
else if (f += 15, f >= b.length) f = "";
|
|
@@ -8903,24 +8915,24 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8903
8915
|
f = -1 !== g ? b.substring(f, g) : b.substring(f);
|
|
8904
8916
|
}
|
|
8905
8917
|
var h = f;
|
|
8906
|
-
null == h ? g = true : 0 === h.length ? g = false : (g =
|
|
8918
|
+
null == h ? g = true : 0 === h.length ? g = false : (g = Na.exec(h), h = Oa.exec(h), g = null !== g || null !== h);
|
|
8907
8919
|
if (!g) throw Error("The string supplied did not seem to be a phone number");
|
|
8908
|
-
null != f ? ("+" === f.charAt(0) && e.g(f), f = b.indexOf("tel:"), e.g(b.substring(0 <= f ? f + 4 : 0, b.indexOf(";phone-context=")))) : (f = e.g, g = b ?? "", h = g.search(
|
|
8920
|
+
null != f ? ("+" === f.charAt(0) && e.g(f), f = b.indexOf("tel:"), e.g(b.substring(0 <= f ? f + 4 : 0, b.indexOf(";phone-context=")))) : (f = e.g, g = b ?? "", h = g.search(Ja), 0 <= h ? (g = g.substring(h), g = g.replace(La, ""), h = g.search(Ka), 0 <= h && (g = g.substring(0, h))) : g = "", f.call(e, g));
|
|
8909
8921
|
f = e.toString();
|
|
8910
8922
|
g = f.indexOf(";isub=");
|
|
8911
|
-
0 < g && (
|
|
8912
|
-
if (!
|
|
8923
|
+
0 < g && (E(e), e.g(f.substring(0, g)));
|
|
8924
|
+
if (!Ua(e.toString())) throw Error("The string supplied did not seem to be a phone number");
|
|
8913
8925
|
f = e.toString();
|
|
8914
|
-
if (!(
|
|
8915
|
-
f = new
|
|
8926
|
+
if (!(P(c) || null != f && 0 < f.length && L.test(f))) throw Error("Invalid country calling code");
|
|
8927
|
+
f = new I();
|
|
8916
8928
|
d && t(f, 5, b);
|
|
8917
8929
|
a: {
|
|
8918
8930
|
b = e.toString();
|
|
8919
|
-
g = b.search(
|
|
8920
|
-
if (0 <= g &&
|
|
8921
|
-
h = b.match(
|
|
8931
|
+
g = b.search(Qa);
|
|
8932
|
+
if (0 <= g && Ua(b.substring(0, g))) {
|
|
8933
|
+
h = b.match(Qa);
|
|
8922
8934
|
for (var l = h.length, A = 1; A < l; ++A) if (null != h[A] && 0 < h[A].length) {
|
|
8923
|
-
|
|
8935
|
+
E(e);
|
|
8924
8936
|
e.g(b.substring(0, g));
|
|
8925
8937
|
b = h[A];
|
|
8926
8938
|
break a;
|
|
@@ -8929,24 +8941,24 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8929
8941
|
b = "";
|
|
8930
8942
|
}
|
|
8931
8943
|
0 < b.length && t(f, 3, b);
|
|
8932
|
-
g =
|
|
8933
|
-
b = new
|
|
8944
|
+
g = T(a, c);
|
|
8945
|
+
b = new D();
|
|
8934
8946
|
h = 0;
|
|
8935
8947
|
l = e.toString();
|
|
8936
8948
|
try {
|
|
8937
|
-
h =
|
|
8938
|
-
} catch (
|
|
8939
|
-
if ("Invalid country calling code" ==
|
|
8940
|
-
if (l = l.replace(
|
|
8941
|
-
} else throw
|
|
8949
|
+
h = fb(a, l, g, b, d, f);
|
|
8950
|
+
} catch (ca) {
|
|
8951
|
+
if ("Invalid country calling code" == ca.message && L.test(l)) {
|
|
8952
|
+
if (l = l.replace(L, ""), h = fb(a, l, g, b, d, f), 0 == h) throw ca;
|
|
8953
|
+
} else throw ca;
|
|
8942
8954
|
}
|
|
8943
|
-
0 != h ? (e =
|
|
8955
|
+
0 != h ? (e = S(h), e != c && (g = R(a, h, e))) : (Wa(e), b.g(e.toString()), null != c ? (h = w(g, 10), t(
|
|
8944
8956
|
f,
|
|
8945
8957
|
1,
|
|
8946
8958
|
h
|
|
8947
8959
|
)) : d && (delete f.h[6], f.g && delete f.g[6]));
|
|
8948
8960
|
if (2 > b.h.length) throw Error("The string supplied is too short to be a phone number");
|
|
8949
|
-
null != g && (c = new
|
|
8961
|
+
null != g && (c = new D(), e = new D(b.toString()), gb(e, g, c), a = W(a, e.toString(), g, -1), 2 != a && 4 != a && 5 != a && (b = e, d && 0 < c.toString().length && t(f, 7, c.toString())));
|
|
8950
8962
|
d = b.toString();
|
|
8951
8963
|
a = d.length;
|
|
8952
8964
|
if (2 > a) throw Error("The string supplied is too short to be a phone number");
|
|
@@ -8959,70 +8971,70 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8959
8971
|
t(f, 2, parseInt(d, 10));
|
|
8960
8972
|
return f;
|
|
8961
8973
|
}
|
|
8962
|
-
function
|
|
8974
|
+
function N(a, b) {
|
|
8963
8975
|
return (a = "string" == typeof a ? b.match("^(?:" + a + ")$") : b.match(a)) && a[0].length == b.length ? true : false;
|
|
8964
8976
|
}
|
|
8965
8977
|
;
|
|
8966
|
-
function
|
|
8978
|
+
function ib(a) {
|
|
8967
8979
|
this.fa = RegExp("\u2008");
|
|
8968
8980
|
this.ja = "";
|
|
8969
|
-
this.v = new
|
|
8981
|
+
this.v = new D();
|
|
8970
8982
|
this.da = "";
|
|
8971
|
-
this.s = new
|
|
8972
|
-
this.ba = new
|
|
8983
|
+
this.s = new D();
|
|
8984
|
+
this.ba = new D();
|
|
8973
8985
|
this.u = true;
|
|
8974
8986
|
this.ea = this.ca = this.la = false;
|
|
8975
|
-
this.ga =
|
|
8987
|
+
this.ga = K.g();
|
|
8976
8988
|
this.$ = 0;
|
|
8977
|
-
this.h = new
|
|
8989
|
+
this.h = new D();
|
|
8978
8990
|
this.ha = false;
|
|
8979
8991
|
this.o = "";
|
|
8980
|
-
this.g = new
|
|
8992
|
+
this.g = new D();
|
|
8981
8993
|
this.j = [];
|
|
8982
8994
|
this.ka = a;
|
|
8983
|
-
this.l =
|
|
8995
|
+
this.l = jb(this, this.ka);
|
|
8984
8996
|
}
|
|
8985
|
-
var
|
|
8986
|
-
t(
|
|
8987
|
-
var
|
|
8988
|
-
function
|
|
8997
|
+
var kb = new H();
|
|
8998
|
+
t(kb, 11, "NA");
|
|
8999
|
+
var lb = RegExp("^[-x\u2010-\u2015\u2212\u30FC\uFF0D-\uFF0F \xA0\xAD\u200B\u2060\u3000()\uFF08\uFF09\uFF3B\uFF3D.\\[\\]/~\u2053\u223C\uFF5E]*\\$1[-x\u2010-\u2015\u2212\u30FC\uFF0D-\uFF0F \xA0\xAD\u200B\u2060\u3000()\uFF08\uFF09\uFF3B\uFF3D.\\[\\]/~\u2053\u223C\uFF5E]*(\\$\\d[-x\u2010-\u2015\u2212\u30FC\uFF0D-\uFF0F \xA0\xAD\u200B\u2060\u3000()\uFF08\uFF09\uFF3B\uFF3D.\\[\\]/~\u2053\u223C\uFF5E]*)*$"), mb = /[- ]/;
|
|
9000
|
+
function jb(a, b) {
|
|
8989
9001
|
var c = a.ga;
|
|
8990
|
-
b =
|
|
8991
|
-
a =
|
|
8992
|
-
return null != a ? a :
|
|
9002
|
+
b = P(b) ? db(c, b) : 0;
|
|
9003
|
+
a = T(a.ga, S(b));
|
|
9004
|
+
return null != a ? a : kb;
|
|
8993
9005
|
}
|
|
8994
|
-
function
|
|
9006
|
+
function nb(a) {
|
|
8995
9007
|
for (var b = a.j.length, c = 0; c < b; ++c) {
|
|
8996
9008
|
var d = a.j[c], e = w(d, 1);
|
|
8997
9009
|
if (a.da == e) return false;
|
|
8998
9010
|
var f = a;
|
|
8999
9011
|
var g = d, h = w(g, 1);
|
|
9000
|
-
|
|
9012
|
+
E(f.v);
|
|
9001
9013
|
var l = f;
|
|
9002
9014
|
g = w(g, 2);
|
|
9003
9015
|
var A = "999999999999999".match(h)[0];
|
|
9004
9016
|
A.length < l.g.h.length ? l = "" : (l = A.replace(new RegExp(h, "g"), g), l = l.replace(RegExp("9", "g"), "\u2008"));
|
|
9005
9017
|
0 < l.length ? (f.v.g(l), f = true) : f = false;
|
|
9006
|
-
if (f) return a.da = e, a.ha =
|
|
9018
|
+
if (f) return a.da = e, a.ha = mb.test(r(d, 4)), a.$ = 0, true;
|
|
9007
9019
|
}
|
|
9008
9020
|
return a.u = false;
|
|
9009
9021
|
}
|
|
9010
|
-
function
|
|
9022
|
+
function ob(a, b) {
|
|
9011
9023
|
for (var c = [], d = b.length - 3, e = a.j.length, f = 0; f < e; ++f) {
|
|
9012
9024
|
var g = a.j[f];
|
|
9013
9025
|
0 == x(g, 3) ? c.push(a.j[f]) : (g = r(g, 3, Math.min(d, x(g, 3) - 1)), 0 == b.search(g) && c.push(a.j[f]));
|
|
9014
9026
|
}
|
|
9015
9027
|
a.j = c;
|
|
9016
9028
|
}
|
|
9017
|
-
function
|
|
9029
|
+
function pb(a, b) {
|
|
9018
9030
|
a.s.g(b);
|
|
9019
9031
|
var c = b;
|
|
9020
|
-
|
|
9032
|
+
Ia.test(c) || 1 == a.s.h.length && Ha.test(c) ? ("+" == b ? (c = b, a.ba.g(b)) : (c = Ea[b], a.ba.g(c), a.g.g(c)), b = c) : (a.u = false, a.la = true);
|
|
9021
9033
|
if (!a.u) {
|
|
9022
9034
|
if (!a.la) {
|
|
9023
|
-
if (
|
|
9024
|
-
if (
|
|
9025
|
-
} else if (0 < a.o.length && (b = a.g.toString(),
|
|
9035
|
+
if (qb(a)) {
|
|
9036
|
+
if (rb(a)) return sb(a);
|
|
9037
|
+
} else if (0 < a.o.length && (b = a.g.toString(), E(a.g), a.g.g(a.o), a.g.g(b), b = a.h.toString(), c = b.lastIndexOf(a.o), E(a.h), a.h.g(b.substring(0, c))), a.o != tb(a)) return a.h.g(" "), sb(a);
|
|
9026
9038
|
}
|
|
9027
9039
|
return a.s.toString();
|
|
9028
9040
|
}
|
|
@@ -9032,93 +9044,93 @@ var intl_tel_input_default = intlTelInput;
|
|
|
9032
9044
|
case 2:
|
|
9033
9045
|
return a.s.toString();
|
|
9034
9046
|
case 3:
|
|
9035
|
-
if (
|
|
9036
|
-
else return a.o =
|
|
9047
|
+
if (qb(a)) a.ea = true;
|
|
9048
|
+
else return a.o = tb(a), ub(a);
|
|
9037
9049
|
default:
|
|
9038
|
-
if (a.ea) return
|
|
9050
|
+
if (a.ea) return rb(a) && (a.ea = false), a.h.toString() + a.g.toString();
|
|
9039
9051
|
if (0 < a.j.length) {
|
|
9040
|
-
b =
|
|
9041
|
-
c =
|
|
9052
|
+
b = vb(a, b);
|
|
9053
|
+
c = wb(a);
|
|
9042
9054
|
if (0 < c.length) return c;
|
|
9043
|
-
|
|
9044
|
-
return
|
|
9055
|
+
ob(a, a.g.toString());
|
|
9056
|
+
return nb(a) ? xb(a) : a.u ? Z(a, b) : a.s.toString();
|
|
9045
9057
|
}
|
|
9046
|
-
return
|
|
9058
|
+
return ub(a);
|
|
9047
9059
|
}
|
|
9048
9060
|
}
|
|
9049
|
-
function
|
|
9061
|
+
function sb(a) {
|
|
9050
9062
|
a.u = true;
|
|
9051
9063
|
a.ea = false;
|
|
9052
9064
|
a.j = [];
|
|
9053
9065
|
a.$ = 0;
|
|
9054
|
-
|
|
9066
|
+
E(a.v);
|
|
9055
9067
|
a.da = "";
|
|
9056
|
-
return
|
|
9068
|
+
return ub(a);
|
|
9057
9069
|
}
|
|
9058
|
-
function
|
|
9070
|
+
function wb(a) {
|
|
9059
9071
|
for (var b = a.g.toString(), c = a.j.length, d = 0; d < c; ++d) {
|
|
9060
9072
|
var e = a.j[d], f = w(e, 1);
|
|
9061
|
-
if (new RegExp("^(?:" + f + ")$").test(b) && (a.ha =
|
|
9073
|
+
if (new RegExp("^(?:" + f + ")$").test(b) && (a.ha = mb.test(r(e, 4)), e = b.replace(new RegExp(f, "g"), r(e, 2)), e = Z(a, e), O(e, Fa) == a.ba)) return e;
|
|
9062
9074
|
}
|
|
9063
9075
|
return "";
|
|
9064
9076
|
}
|
|
9065
|
-
function
|
|
9077
|
+
function Z(a, b) {
|
|
9066
9078
|
var c = a.h.h.length;
|
|
9067
9079
|
return a.ha && 0 < c && " " != a.h.toString().charAt(c - 1) ? a.h + " " + b : a.h + b;
|
|
9068
9080
|
}
|
|
9069
|
-
function
|
|
9081
|
+
function ub(a) {
|
|
9070
9082
|
var b = a.g.toString();
|
|
9071
9083
|
if (3 <= b.length) {
|
|
9072
9084
|
for (var c = a.ca && 0 == a.o.length && 0 < x(a.l, 20) ? u(a.l, 20) : u(a.l, 19), d = c.length, e = 0; e < d; ++e) {
|
|
9073
9085
|
var f = c[e];
|
|
9074
|
-
0 < a.o.length &&
|
|
9086
|
+
0 < a.o.length && Ya(w(f, 4)) && !r(f, 6) && !q(f, 5) || (0 != a.o.length || a.ca || Ya(w(f, 4)) || r(f, 6)) && lb.test(w(f, 2)) && a.j.push(f);
|
|
9075
9087
|
}
|
|
9076
|
-
|
|
9077
|
-
b =
|
|
9078
|
-
return 0 < b.length ? b :
|
|
9088
|
+
ob(a, b);
|
|
9089
|
+
b = wb(a);
|
|
9090
|
+
return 0 < b.length ? b : nb(a) ? xb(a) : a.s.toString();
|
|
9079
9091
|
}
|
|
9080
|
-
return
|
|
9092
|
+
return Z(a, b);
|
|
9081
9093
|
}
|
|
9082
|
-
function
|
|
9094
|
+
function xb(a) {
|
|
9083
9095
|
var b = a.g.toString(), c = b.length;
|
|
9084
9096
|
if (0 < c) {
|
|
9085
|
-
for (var d = "", e = 0; e < c; e++) d =
|
|
9086
|
-
return a.u ?
|
|
9097
|
+
for (var d = "", e = 0; e < c; e++) d = vb(a, b.charAt(e));
|
|
9098
|
+
return a.u ? Z(a, d) : a.s.toString();
|
|
9087
9099
|
}
|
|
9088
9100
|
return a.h.toString();
|
|
9089
9101
|
}
|
|
9090
|
-
function
|
|
9102
|
+
function tb(a) {
|
|
9091
9103
|
var b = a.g.toString(), c = 0;
|
|
9092
9104
|
if (1 != r(a.l, 10)) var d = false;
|
|
9093
9105
|
else d = a.g.toString(), d = "1" == d.charAt(0) && "0" != d.charAt(1) && "1" != d.charAt(1);
|
|
9094
9106
|
d ? (c = 1, a.h.g("1").g(" "), a.ca = true) : q(a.l, 15) && (d = new RegExp("^(?:" + r(a.l, 15) + ")"), d = b.match(d), null != d && null != d[0] && 0 < d[0].length && (a.ca = true, c = d[0].length, a.h.g(b.substring(0, c))));
|
|
9095
|
-
|
|
9107
|
+
E(a.g);
|
|
9096
9108
|
a.g.g(b.substring(c));
|
|
9097
9109
|
return b.substring(0, c);
|
|
9098
9110
|
}
|
|
9099
|
-
function
|
|
9111
|
+
function qb(a) {
|
|
9100
9112
|
var b = a.ba.toString(), c = new RegExp("^(?:\\+|" + r(a.l, 11) + ")");
|
|
9101
9113
|
c = b.match(c);
|
|
9102
|
-
return null != c && null != c[0] && 0 < c[0].length ? (a.ca = true, c = c[0].length,
|
|
9114
|
+
return null != c && null != c[0] && 0 < c[0].length ? (a.ca = true, c = c[0].length, E(a.g), a.g.g(b.substring(c)), E(a.h), a.h.g(b.substring(0, c)), "+" != b.charAt(0) && a.h.g(" "), true) : false;
|
|
9103
9115
|
}
|
|
9104
|
-
function
|
|
9116
|
+
function rb(a) {
|
|
9105
9117
|
if (0 == a.g.h.length) return false;
|
|
9106
|
-
var b = new
|
|
9118
|
+
var b = new D(), c = eb(a.g, b);
|
|
9107
9119
|
if (0 == c) return false;
|
|
9108
|
-
|
|
9120
|
+
E(a.g);
|
|
9109
9121
|
a.g.g(b.toString());
|
|
9110
|
-
b =
|
|
9111
|
-
"001" == b ? a.l =
|
|
9122
|
+
b = S(c);
|
|
9123
|
+
"001" == b ? a.l = T(a.ga, "" + c) : b != a.ka && (a.l = jb(a, b));
|
|
9112
9124
|
a.h.g("" + c).g(" ");
|
|
9113
9125
|
a.o = "";
|
|
9114
9126
|
return true;
|
|
9115
9127
|
}
|
|
9116
|
-
function
|
|
9128
|
+
function vb(a, b) {
|
|
9117
9129
|
var c = a.v.toString();
|
|
9118
9130
|
if (0 <= c.substring(a.$).search(a.fa)) {
|
|
9119
9131
|
var d = c.search(a.fa);
|
|
9120
9132
|
b = c.replace(a.fa, b);
|
|
9121
|
-
|
|
9133
|
+
E(a.v);
|
|
9122
9134
|
a.v.g(b);
|
|
9123
9135
|
a.$ = d;
|
|
9124
9136
|
return b.substring(0, a.$ + 1);
|
|
@@ -9128,13 +9140,13 @@ var intl_tel_input_default = intlTelInput;
|
|
|
9128
9140
|
return a.s.toString();
|
|
9129
9141
|
}
|
|
9130
9142
|
;
|
|
9131
|
-
const
|
|
9143
|
+
const yb = { FIXED_LINE: 0, MOBILE: 1, FIXED_LINE_OR_MOBILE: 2, TOLL_FREE: 3, PREMIUM_RATE: 4, SHARED_COST: 5, VOIP: 6, PERSONAL_NUMBER: 7, PAGER: 8, UAN: 9, VOICEMAIL: 10, UNKNOWN: -1 };
|
|
9132
9144
|
m("intlTelInputUtilsTemp", {});
|
|
9133
9145
|
m("intlTelInputUtilsTemp.formatNumberAsYouType", (a, b) => {
|
|
9134
9146
|
try {
|
|
9135
|
-
const c = a.replace(/[^+0-9]/g, ""), d = new
|
|
9147
|
+
const c = a.replace(/[^+0-9]/g, ""), d = new ib(b);
|
|
9136
9148
|
b = "";
|
|
9137
|
-
for (let e = 0; e < c.length; e++) d.ja =
|
|
9149
|
+
for (let e = 0; e < c.length; e++) d.ja = pb(d, c.charAt(e)), b = d.ja;
|
|
9138
9150
|
return b;
|
|
9139
9151
|
} catch {
|
|
9140
9152
|
return a;
|
|
@@ -9142,8 +9154,8 @@ var intl_tel_input_default = intlTelInput;
|
|
|
9142
9154
|
});
|
|
9143
9155
|
m("intlTelInputUtilsTemp.formatNumber", (a, b, c) => {
|
|
9144
9156
|
try {
|
|
9145
|
-
const e =
|
|
9146
|
-
var d =
|
|
9157
|
+
const e = K.g(), f = Y(e, a, b);
|
|
9158
|
+
var d = X(e, f, -1);
|
|
9147
9159
|
return 0 == d || 4 == d ? e.format(f, "undefined" === typeof c ? 0 : c) : a;
|
|
9148
9160
|
} catch {
|
|
9149
9161
|
return a;
|
|
@@ -9151,15 +9163,15 @@ var intl_tel_input_default = intlTelInput;
|
|
|
9151
9163
|
});
|
|
9152
9164
|
m("intlTelInputUtilsTemp.getExampleNumber", (a, b, c, d) => {
|
|
9153
9165
|
try {
|
|
9154
|
-
const l =
|
|
9166
|
+
const l = K.g();
|
|
9155
9167
|
a: {
|
|
9156
9168
|
var e = l;
|
|
9157
|
-
if (
|
|
9158
|
-
var f = T(
|
|
9169
|
+
if (P(a)) {
|
|
9170
|
+
var f = U(T(e, a), c);
|
|
9159
9171
|
try {
|
|
9160
9172
|
if (q(f, 6)) {
|
|
9161
9173
|
var g = r(f, 6);
|
|
9162
|
-
var h =
|
|
9174
|
+
var h = hb(e, g, a, false);
|
|
9163
9175
|
break a;
|
|
9164
9176
|
}
|
|
9165
9177
|
} catch (A) {
|
|
@@ -9174,21 +9186,15 @@ var intl_tel_input_default = intlTelInput;
|
|
|
9174
9186
|
});
|
|
9175
9187
|
m("intlTelInputUtilsTemp.getExtension", (a, b) => {
|
|
9176
9188
|
try {
|
|
9177
|
-
return r(
|
|
9189
|
+
return r(Y(K.g(), a, b), 3);
|
|
9178
9190
|
} catch {
|
|
9179
9191
|
return "";
|
|
9180
9192
|
}
|
|
9181
9193
|
});
|
|
9182
9194
|
m("intlTelInputUtilsTemp.getNumberType", (a, b) => {
|
|
9183
9195
|
try {
|
|
9184
|
-
const
|
|
9185
|
-
|
|
9186
|
-
if (null == d) var e = -1;
|
|
9187
|
-
else {
|
|
9188
|
-
var f = P(h);
|
|
9189
|
-
e = ab(f, d);
|
|
9190
|
-
}
|
|
9191
|
-
return e;
|
|
9196
|
+
const c = K.g(), d = Y(c, a, b);
|
|
9197
|
+
return $a(c, d);
|
|
9192
9198
|
} catch {
|
|
9193
9199
|
return -99;
|
|
9194
9200
|
}
|
|
@@ -9196,53 +9202,46 @@ var intl_tel_input_default = intlTelInput;
|
|
|
9196
9202
|
m("intlTelInputUtilsTemp.getValidationError", (a, b) => {
|
|
9197
9203
|
if (!b) return 1;
|
|
9198
9204
|
try {
|
|
9199
|
-
const c =
|
|
9200
|
-
return
|
|
9205
|
+
const c = K.g(), d = Y(c, a, b);
|
|
9206
|
+
return X(c, d, -1);
|
|
9201
9207
|
} catch (c) {
|
|
9202
9208
|
return "Invalid country calling code" === c.message ? 1 : 3 >= a.length || "Phone number too short after IDD" === c.message || "The string supplied is too short to be a phone number" === c.message ? 2 : "The string supplied is too long to be a phone number" === c.message ? 3 : -99;
|
|
9203
9209
|
}
|
|
9204
9210
|
});
|
|
9205
|
-
m("intlTelInputUtilsTemp.isValidNumber", (a, b) => {
|
|
9211
|
+
m("intlTelInputUtilsTemp.isValidNumber", (a, b, c) => {
|
|
9206
9212
|
try {
|
|
9207
|
-
const
|
|
9208
|
-
|
|
9209
|
-
|
|
9210
|
-
|
|
9211
|
-
if (null == f || "001" != d && e != cb(a, d)) var g = false;
|
|
9212
|
-
else {
|
|
9213
|
-
var h = P(c);
|
|
9214
|
-
g = -1 != ab(h, f);
|
|
9213
|
+
const d = K.g(), e = Y(d, a, b), f = cb(d, e);
|
|
9214
|
+
if (c) {
|
|
9215
|
+
const g = c.map((h) => yb[h]);
|
|
9216
|
+
return f && g.includes($a(d, e));
|
|
9215
9217
|
}
|
|
9216
|
-
return
|
|
9218
|
+
return f;
|
|
9217
9219
|
} catch {
|
|
9218
9220
|
return false;
|
|
9219
9221
|
}
|
|
9220
9222
|
});
|
|
9221
9223
|
m("intlTelInputUtilsTemp.isPossibleNumber", (a, b, c) => {
|
|
9222
9224
|
try {
|
|
9223
|
-
const d =
|
|
9225
|
+
const d = K.g(), e = Y(d, a, b);
|
|
9224
9226
|
if (c) {
|
|
9225
|
-
|
|
9226
|
-
if (
|
|
9227
|
-
|
|
9228
|
-
return g || h || f;
|
|
9229
|
-
}
|
|
9230
|
-
return f;
|
|
9227
|
+
c.includes("FIXED_LINE_OR_MOBILE") && (c.includes("MOBILE") || c.push("MOBILE"), c.includes("FIXED_LINE") || c.push("FIXED_LINE"));
|
|
9228
|
+
for (let f of c) if (0 === X(d, e, yb[f])) return true;
|
|
9229
|
+
return false;
|
|
9231
9230
|
}
|
|
9232
|
-
return 0 ===
|
|
9231
|
+
return 0 === X(d, e, -1);
|
|
9233
9232
|
} catch {
|
|
9234
9233
|
return false;
|
|
9235
9234
|
}
|
|
9236
9235
|
});
|
|
9237
9236
|
m("intlTelInputUtilsTemp.getCoreNumber", (a, b) => {
|
|
9238
9237
|
try {
|
|
9239
|
-
return r(
|
|
9238
|
+
return r(Y(K.g(), a, b), 2).toString();
|
|
9240
9239
|
} catch {
|
|
9241
9240
|
return "";
|
|
9242
9241
|
}
|
|
9243
9242
|
});
|
|
9244
9243
|
m("intlTelInputUtilsTemp.numberFormat", { E164: 0, INTERNATIONAL: 1, NATIONAL: 2, RFC3966: 3 });
|
|
9245
|
-
m("intlTelInputUtilsTemp.numberType",
|
|
9244
|
+
m("intlTelInputUtilsTemp.numberType", yb);
|
|
9246
9245
|
m("intlTelInputUtilsTemp.validationError", { IS_POSSIBLE: 0, INVALID_COUNTRY_CODE: 1, TOO_SHORT: 2, TOO_LONG: 3, IS_POSSIBLE_LOCAL_ONLY: 4, INVALID_LENGTH: 5 });
|
|
9247
9246
|
})();
|
|
9248
9247
|
var utils = window.intlTelInputUtilsTemp;
|