intl-tel-input 24.8.2 → 25.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +17 -33
- package/build/js/intlTelInput.min.js +2 -2
- package/build/js/intlTelInputWithUtils.js +281 -292
- 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 +16 -32
- package/react/build/IntlTelInput.d.ts +6 -8
- package/react/build/IntlTelInput.js +16 -32
- package/react/build/IntlTelInputWithUtils.cjs +280 -291
- package/react/build/IntlTelInputWithUtils.js +280 -291
- package/vue/README.md +1 -1
- package/vue/build/IntlTelInput.mjs +19 -27
- package/vue/build/IntlTelInputWithUtils.mjs +603 -612
|
@@ -1623,8 +1623,8 @@ var defaults = {
|
|
|
1623
1623
|
i18n: {},
|
|
1624
1624
|
//* Initial country.
|
|
1625
1625
|
initialCountry: "",
|
|
1626
|
-
//*
|
|
1627
|
-
|
|
1626
|
+
//* A function to load the utils script.
|
|
1627
|
+
loadUtils: null,
|
|
1628
1628
|
//* National vs international formatting for numbers e.g. placeholders and displaying existing numbers.
|
|
1629
1629
|
nationalMode: true,
|
|
1630
1630
|
//* Display only these countries.
|
|
@@ -1645,10 +1645,8 @@ var defaults = {
|
|
|
1645
1645
|
navigator.userAgent
|
|
1646
1646
|
) || window.innerWidth <= 500
|
|
1647
1647
|
) : false,
|
|
1648
|
-
//* Deprecated! Use `loadUtilsOnInit` instead.
|
|
1649
|
-
utilsScript: "",
|
|
1650
1648
|
//* The number type to enforce during validation.
|
|
1651
|
-
|
|
1649
|
+
validationNumberTypes: ["MOBILE"]
|
|
1652
1650
|
};
|
|
1653
1651
|
var regionlessNanpNumbers = [
|
|
1654
1652
|
"800",
|
|
@@ -2157,15 +2155,11 @@ var Iti = class {
|
|
|
2157
2155
|
}
|
|
2158
2156
|
//* Init many requests: utils script / geo ip lookup.
|
|
2159
2157
|
_initRequests() {
|
|
2160
|
-
let {
|
|
2161
|
-
if (
|
|
2162
|
-
console.warn("intl-tel-input: The `utilsScript` option is deprecated and will be removed in a future release! Please use the `loadUtilsOnInit` option instead.");
|
|
2163
|
-
loadUtilsOnInit = utilsScript;
|
|
2164
|
-
}
|
|
2165
|
-
if (loadUtilsOnInit && !intlTelInput.utils) {
|
|
2158
|
+
let { loadUtils, initialCountry, geoIpLookup } = this.options;
|
|
2159
|
+
if (loadUtils && !intlTelInput.utils) {
|
|
2166
2160
|
this._handlePageLoad = () => {
|
|
2167
2161
|
window.removeEventListener("load", this._handlePageLoad);
|
|
2168
|
-
intlTelInput.loadUtils
|
|
2162
|
+
intlTelInput.attachUtils(loadUtils)?.catch(() => {
|
|
2169
2163
|
});
|
|
2170
2164
|
};
|
|
2171
2165
|
if (intlTelInput.documentReady()) {
|
|
@@ -2629,7 +2623,7 @@ var Iti = class {
|
|
|
2629
2623
|
}
|
|
2630
2624
|
//* Update the maximum valid number length for the currently selected country.
|
|
2631
2625
|
_updateMaxLength() {
|
|
2632
|
-
const { strictMode, placeholderNumberType,
|
|
2626
|
+
const { strictMode, placeholderNumberType, validationNumberTypes } = this.options;
|
|
2633
2627
|
const { iso2 } = this.selectedCountryData;
|
|
2634
2628
|
if (strictMode && intlTelInput.utils) {
|
|
2635
2629
|
if (iso2) {
|
|
@@ -2641,7 +2635,7 @@ var Iti = class {
|
|
|
2641
2635
|
true
|
|
2642
2636
|
);
|
|
2643
2637
|
let validNumber = exampleNumber;
|
|
2644
|
-
while (intlTelInput.utils.isPossibleNumber(exampleNumber, iso2,
|
|
2638
|
+
while (intlTelInput.utils.isPossibleNumber(exampleNumber, iso2, validationNumberTypes)) {
|
|
2645
2639
|
validNumber = exampleNumber;
|
|
2646
2640
|
exampleNumber += "0";
|
|
2647
2641
|
}
|
|
@@ -2993,7 +2987,7 @@ var Iti = class {
|
|
|
2993
2987
|
return this._utilsIsPossibleNumber(val);
|
|
2994
2988
|
}
|
|
2995
2989
|
_utilsIsPossibleNumber(val) {
|
|
2996
|
-
return intlTelInput.utils ? intlTelInput.utils.isPossibleNumber(val, this.selectedCountryData.iso2, this.options.
|
|
2990
|
+
return intlTelInput.utils ? intlTelInput.utils.isPossibleNumber(val, this.selectedCountryData.iso2, this.options.validationNumberTypes) : null;
|
|
2997
2991
|
}
|
|
2998
2992
|
//* Validate the input val (precise)
|
|
2999
2993
|
isValidNumberPrecise() {
|
|
@@ -3011,7 +3005,7 @@ var Iti = class {
|
|
|
3011
3005
|
return this._utilsIsValidNumber(val);
|
|
3012
3006
|
}
|
|
3013
3007
|
_utilsIsValidNumber(val) {
|
|
3014
|
-
return intlTelInput.utils ? intlTelInput.utils.isValidNumber(val, this.selectedCountryData.iso2) : null;
|
|
3008
|
+
return intlTelInput.utils ? intlTelInput.utils.isValidNumber(val, this.selectedCountryData.iso2, this.options.validationNumberTypes) : null;
|
|
3015
3009
|
}
|
|
3016
3010
|
//* Update the selected country, and update the input val accordingly.
|
|
3017
3011
|
setCountry(iso2) {
|
|
@@ -3047,29 +3041,23 @@ var Iti = class {
|
|
|
3047
3041
|
}
|
|
3048
3042
|
}
|
|
3049
3043
|
};
|
|
3050
|
-
var
|
|
3044
|
+
var attachUtils = (source) => {
|
|
3051
3045
|
if (!intlTelInput.utils && !intlTelInput.startedLoadingUtilsScript) {
|
|
3052
3046
|
let loadCall;
|
|
3053
|
-
if (typeof source === "
|
|
3054
|
-
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!"));
|
|
3055
|
-
} else if (typeof source === "function") {
|
|
3047
|
+
if (typeof source === "function") {
|
|
3056
3048
|
try {
|
|
3057
3049
|
loadCall = Promise.resolve(source());
|
|
3058
3050
|
} catch (error) {
|
|
3059
3051
|
return Promise.reject(error);
|
|
3060
3052
|
}
|
|
3061
3053
|
} else {
|
|
3062
|
-
return Promise.reject(new TypeError(`The argument passed to
|
|
3054
|
+
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}`));
|
|
3063
3055
|
}
|
|
3064
3056
|
intlTelInput.startedLoadingUtilsScript = true;
|
|
3065
3057
|
return loadCall.then((module) => {
|
|
3066
3058
|
const utils2 = module?.default;
|
|
3067
3059
|
if (!utils2 || typeof utils2 !== "object") {
|
|
3068
|
-
|
|
3069
|
-
throw new TypeError(`The module loaded from ${source} did not set utils as its default export.`);
|
|
3070
|
-
} else {
|
|
3071
|
-
throw new TypeError("The loader function passed to loadUtils did not resolve to a module object with utils as its default export.");
|
|
3072
|
-
}
|
|
3060
|
+
throw new TypeError("The loader function passed to attachUtils did not resolve to a module object with utils as its default export.");
|
|
3073
3061
|
}
|
|
3074
3062
|
intlTelInput.utils = utils2;
|
|
3075
3063
|
forEachInstance("handleUtils");
|
|
@@ -3102,10 +3090,10 @@ var intlTelInput = Object.assign(
|
|
|
3102
3090
|
},
|
|
3103
3091
|
//* A map from instance ID to instance object.
|
|
3104
3092
|
instances: {},
|
|
3105
|
-
|
|
3093
|
+
attachUtils,
|
|
3106
3094
|
startedLoadingUtilsScript: false,
|
|
3107
3095
|
startedLoadingAutoCountry: false,
|
|
3108
|
-
version: "
|
|
3096
|
+
version: "25.0.0"
|
|
3109
3097
|
}
|
|
3110
3098
|
);
|
|
3111
3099
|
var intl_tel_input_default = intlTelInput;
|
|
@@ -3139,7 +3127,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
3139
3127
|
return b;
|
|
3140
3128
|
}
|
|
3141
3129
|
;
|
|
3142
|
-
var
|
|
3130
|
+
var da = class {
|
|
3143
3131
|
constructor(a) {
|
|
3144
3132
|
if (ba !== ba) throw Error("SafeUrl is not meant to be built directly");
|
|
3145
3133
|
this.g = a;
|
|
@@ -3148,8 +3136,8 @@ var intl_tel_input_default = intlTelInput;
|
|
|
3148
3136
|
return this.g.toString();
|
|
3149
3137
|
}
|
|
3150
3138
|
}, ba = {};
|
|
3151
|
-
new
|
|
3152
|
-
new
|
|
3139
|
+
new da("about:invalid#zClosurez");
|
|
3140
|
+
new da("about:blank");
|
|
3153
3141
|
const ea = {};
|
|
3154
3142
|
class fa {
|
|
3155
3143
|
constructor() {
|
|
@@ -3328,91 +3316,91 @@ var intl_tel_input_default = intlTelInput;
|
|
|
3328
3316
|
return b;
|
|
3329
3317
|
};
|
|
3330
3318
|
var xa = /^-?[0-9]+$/;
|
|
3331
|
-
function
|
|
3319
|
+
function B() {
|
|
3332
3320
|
}
|
|
3333
|
-
n(
|
|
3334
|
-
|
|
3321
|
+
n(B, z);
|
|
3322
|
+
B.prototype.g = function(a, b) {
|
|
3335
3323
|
a = new a.h();
|
|
3336
3324
|
a.l = this;
|
|
3337
3325
|
a.h = b;
|
|
3338
3326
|
a.g = {};
|
|
3339
3327
|
return a;
|
|
3340
3328
|
};
|
|
3341
|
-
function
|
|
3329
|
+
function C() {
|
|
3342
3330
|
}
|
|
3343
|
-
n(
|
|
3344
|
-
|
|
3331
|
+
n(C, B);
|
|
3332
|
+
C.prototype.h = function(a, b) {
|
|
3345
3333
|
return 8 == a.h ? !!b : z.prototype.h.apply(this, arguments);
|
|
3346
3334
|
};
|
|
3347
|
-
|
|
3348
|
-
return
|
|
3335
|
+
C.prototype.g = function(a, b) {
|
|
3336
|
+
return C.ma.g.call(this, a, b);
|
|
3349
3337
|
};
|
|
3350
|
-
function
|
|
3338
|
+
function D(a, b) {
|
|
3351
3339
|
null != a && this.g.apply(this, arguments);
|
|
3352
3340
|
}
|
|
3353
|
-
|
|
3354
|
-
|
|
3341
|
+
D.prototype.h = "";
|
|
3342
|
+
D.prototype.set = function(a) {
|
|
3355
3343
|
this.h = "" + a;
|
|
3356
3344
|
};
|
|
3357
|
-
|
|
3345
|
+
D.prototype.g = function(a, b, c) {
|
|
3358
3346
|
this.h += String(a);
|
|
3359
3347
|
if (null != b) for (let d = 1; d < arguments.length; d++) this.h += arguments[d];
|
|
3360
3348
|
return this;
|
|
3361
3349
|
};
|
|
3362
|
-
function
|
|
3350
|
+
function E(a) {
|
|
3363
3351
|
a.h = "";
|
|
3364
3352
|
}
|
|
3365
|
-
|
|
3353
|
+
D.prototype.toString = function() {
|
|
3366
3354
|
return this.h;
|
|
3367
3355
|
};
|
|
3368
|
-
function E() {
|
|
3369
|
-
p.call(this);
|
|
3370
|
-
}
|
|
3371
|
-
n(E, p);
|
|
3372
|
-
var za = null;
|
|
3373
3356
|
function F() {
|
|
3374
3357
|
p.call(this);
|
|
3375
3358
|
}
|
|
3376
3359
|
n(F, p);
|
|
3377
|
-
var
|
|
3360
|
+
var ya = null;
|
|
3378
3361
|
function G() {
|
|
3379
3362
|
p.call(this);
|
|
3380
3363
|
}
|
|
3381
3364
|
n(G, p);
|
|
3382
|
-
var
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
E.m = E.prototype.m;
|
|
3365
|
+
var za = null;
|
|
3366
|
+
function H() {
|
|
3367
|
+
p.call(this);
|
|
3368
|
+
}
|
|
3369
|
+
n(H, p);
|
|
3370
|
+
var Aa = null;
|
|
3389
3371
|
F.prototype.m = function() {
|
|
3390
|
-
var a =
|
|
3391
|
-
a || (
|
|
3372
|
+
var a = ya;
|
|
3373
|
+
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 } }));
|
|
3392
3374
|
return a;
|
|
3393
3375
|
};
|
|
3394
3376
|
F.m = F.prototype.m;
|
|
3395
3377
|
G.prototype.m = function() {
|
|
3396
|
-
var a =
|
|
3397
|
-
a || (
|
|
3378
|
+
var a = za;
|
|
3379
|
+
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 } }));
|
|
3380
|
+
return a;
|
|
3381
|
+
};
|
|
3382
|
+
G.m = G.prototype.m;
|
|
3383
|
+
H.prototype.m = function() {
|
|
3384
|
+
var a = Aa;
|
|
3385
|
+
a || (Aa = a = y(H, {
|
|
3398
3386
|
0: { name: "PhoneMetadata", ia: "i18n.phonenumbers.PhoneMetadata" },
|
|
3399
|
-
1: { name: "general_desc", i: 11, type:
|
|
3400
|
-
2: { name: "fixed_line", i: 11, type:
|
|
3401
|
-
3: { name: "mobile", i: 11, type:
|
|
3402
|
-
4: { name: "toll_free", i: 11, type:
|
|
3403
|
-
5: { name: "premium_rate", i: 11, type:
|
|
3404
|
-
6: { name: "shared_cost", i: 11, type:
|
|
3405
|
-
7: { name: "personal_number", i: 11, type:
|
|
3406
|
-
8: { name: "voip", i: 11, type:
|
|
3407
|
-
21: { name: "pager", i: 11, type:
|
|
3408
|
-
25: { name: "uan", i: 11, type:
|
|
3409
|
-
27: { name: "emergency", i: 11, type:
|
|
3410
|
-
28: { name: "voicemail", i: 11, type:
|
|
3411
|
-
29: { name: "short_code", i: 11, type:
|
|
3412
|
-
30: { name: "standard_rate", i: 11, type:
|
|
3413
|
-
31: { name: "carrier_specific", i: 11, type:
|
|
3414
|
-
33: { name: "sms_services", i: 11, type:
|
|
3415
|
-
24: { name: "no_international_dialling", i: 11, type:
|
|
3387
|
+
1: { name: "general_desc", i: 11, type: G },
|
|
3388
|
+
2: { name: "fixed_line", i: 11, type: G },
|
|
3389
|
+
3: { name: "mobile", i: 11, type: G },
|
|
3390
|
+
4: { name: "toll_free", i: 11, type: G },
|
|
3391
|
+
5: { name: "premium_rate", i: 11, type: G },
|
|
3392
|
+
6: { name: "shared_cost", i: 11, type: G },
|
|
3393
|
+
7: { name: "personal_number", i: 11, type: G },
|
|
3394
|
+
8: { name: "voip", i: 11, type: G },
|
|
3395
|
+
21: { name: "pager", i: 11, type: G },
|
|
3396
|
+
25: { name: "uan", i: 11, type: G },
|
|
3397
|
+
27: { name: "emergency", i: 11, type: G },
|
|
3398
|
+
28: { name: "voicemail", i: 11, type: G },
|
|
3399
|
+
29: { name: "short_code", i: 11, type: G },
|
|
3400
|
+
30: { name: "standard_rate", i: 11, type: G },
|
|
3401
|
+
31: { name: "carrier_specific", i: 11, type: G },
|
|
3402
|
+
33: { name: "sms_services", i: 11, type: G },
|
|
3403
|
+
24: { name: "no_international_dialling", i: 11, type: G },
|
|
3416
3404
|
9: { name: "id", required: true, i: 9, type: String },
|
|
3417
3405
|
10: { name: "country_code", i: 5, type: Number },
|
|
3418
3406
|
11: { name: "international_prefix", i: 9, type: String },
|
|
@@ -3426,31 +3414,31 @@ var intl_tel_input_default = intlTelInput;
|
|
|
3426
3414
|
},
|
|
3427
3415
|
16: { name: "national_prefix_transform_rule", i: 9, type: String },
|
|
3428
3416
|
18: { name: "same_mobile_and_fixed_line_pattern", i: 8, defaultValue: false, type: Boolean },
|
|
3429
|
-
19: { name: "number_format", aa: true, i: 11, type:
|
|
3430
|
-
20: { name: "intl_number_format", aa: true, i: 11, type:
|
|
3417
|
+
19: { name: "number_format", aa: true, i: 11, type: F },
|
|
3418
|
+
20: { name: "intl_number_format", aa: true, i: 11, type: F },
|
|
3431
3419
|
22: { name: "main_country_for_code", i: 8, defaultValue: false, type: Boolean },
|
|
3432
3420
|
23: { name: "leading_digits", i: 9, type: String }
|
|
3433
3421
|
}));
|
|
3434
3422
|
return a;
|
|
3435
3423
|
};
|
|
3436
|
-
|
|
3437
|
-
function
|
|
3424
|
+
H.m = H.prototype.m;
|
|
3425
|
+
function I() {
|
|
3438
3426
|
p.call(this);
|
|
3439
3427
|
}
|
|
3440
|
-
n(
|
|
3441
|
-
var
|
|
3442
|
-
|
|
3443
|
-
var a =
|
|
3444
|
-
a || (
|
|
3428
|
+
n(I, p);
|
|
3429
|
+
var Ba = null, Ca = { ra: 0, qa: 1, pa: 5, oa: 10, na: 20 };
|
|
3430
|
+
I.prototype.m = function() {
|
|
3431
|
+
var a = Ba;
|
|
3432
|
+
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: {
|
|
3445
3433
|
name: "preferred_domestic_carrier_code",
|
|
3446
3434
|
i: 9,
|
|
3447
3435
|
type: String
|
|
3448
3436
|
} }));
|
|
3449
3437
|
return a;
|
|
3450
3438
|
};
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
var
|
|
3439
|
+
I.ctor = I;
|
|
3440
|
+
I.ctor.m = I.prototype.m;
|
|
3441
|
+
var J = {
|
|
3454
3442
|
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(" "),
|
|
3455
3443
|
7: ["RU", "KZ"],
|
|
3456
3444
|
20: ["EG"],
|
|
@@ -3666,7 +3654,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
3666
3654
|
995: ["GE"],
|
|
3667
3655
|
996: ["KG"],
|
|
3668
3656
|
998: ["UZ"]
|
|
3669
|
-
},
|
|
3657
|
+
}, Da = {
|
|
3670
3658
|
AC: [, [
|
|
3671
3659
|
,
|
|
3672
3660
|
,
|
|
@@ -8531,14 +8519,14 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8531
8519
|
], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "001", 888, , , , , , , , 1, [[, "(\\d{3})(\\d{3})(\\d{5})", "$1 $2 $3"]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , "\\d{11}", , , , "12345678901"], , , [, , , , , , , , , [-1]]],
|
|
8532
8520
|
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]]]
|
|
8533
8521
|
};
|
|
8534
|
-
function
|
|
8522
|
+
function K() {
|
|
8535
8523
|
this.g = {};
|
|
8536
8524
|
}
|
|
8537
|
-
|
|
8538
|
-
|
|
8539
|
-
return
|
|
8525
|
+
K.h = void 0;
|
|
8526
|
+
K.g = function() {
|
|
8527
|
+
return K.h ? K.h : K.h = new K();
|
|
8540
8528
|
};
|
|
8541
|
-
var
|
|
8529
|
+
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 = {
|
|
8542
8530
|
0: "0",
|
|
8543
8531
|
1: "1",
|
|
8544
8532
|
2: "2",
|
|
@@ -8552,7 +8540,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8552
8540
|
"+": "+",
|
|
8553
8541
|
"*": "*",
|
|
8554
8542
|
"#": "#"
|
|
8555
|
-
},
|
|
8543
|
+
}, Ga = {
|
|
8556
8544
|
0: "0",
|
|
8557
8545
|
1: "1",
|
|
8558
8546
|
2: "2",
|
|
@@ -8619,48 +8607,48 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8619
8607
|
X: "9",
|
|
8620
8608
|
Y: "9",
|
|
8621
8609
|
Z: "9"
|
|
8622
|
-
},
|
|
8623
|
-
function
|
|
8610
|
+
}, 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])*\\.?$");
|
|
8611
|
+
function M(a) {
|
|
8624
8612
|
return "([0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9]{1," + a + "})";
|
|
8625
8613
|
}
|
|
8626
|
-
function
|
|
8627
|
-
return ";ext=" +
|
|
8614
|
+
function Pa() {
|
|
8615
|
+
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") + "#?");
|
|
8616
|
+
}
|
|
8617
|
+
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\)?$/;
|
|
8618
|
+
function Ua(a) {
|
|
8619
|
+
return 2 > a.length ? false : N(Ra, a);
|
|
8628
8620
|
}
|
|
8629
|
-
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\)?$/;
|
|
8630
8621
|
function Va(a) {
|
|
8631
|
-
return
|
|
8622
|
+
return N(Ma, a) ? O(a, Ga) : O(a, Ea);
|
|
8632
8623
|
}
|
|
8633
8624
|
function Wa(a) {
|
|
8634
|
-
|
|
8635
|
-
|
|
8636
|
-
function Xa(a) {
|
|
8637
|
-
var b = Wa(a.toString());
|
|
8638
|
-
D(a);
|
|
8625
|
+
var b = Va(a.toString());
|
|
8626
|
+
E(a);
|
|
8639
8627
|
a.g(b);
|
|
8640
8628
|
}
|
|
8641
|
-
function
|
|
8629
|
+
function Xa(a) {
|
|
8642
8630
|
return null != a && (1 != x(a, 9) || -1 != u(a, 9)[0]);
|
|
8643
8631
|
}
|
|
8644
|
-
function
|
|
8645
|
-
for (var c = new
|
|
8632
|
+
function O(a, b) {
|
|
8633
|
+
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);
|
|
8646
8634
|
return c.toString();
|
|
8647
8635
|
}
|
|
8648
|
-
function
|
|
8649
|
-
return 0 == a.length ||
|
|
8636
|
+
function Ya(a) {
|
|
8637
|
+
return 0 == a.length || Ta.test(a);
|
|
8650
8638
|
}
|
|
8651
|
-
function
|
|
8652
|
-
return null != a && isNaN(a) && a.toUpperCase() in
|
|
8639
|
+
function P(a) {
|
|
8640
|
+
return null != a && isNaN(a) && a.toUpperCase() in Da;
|
|
8653
8641
|
}
|
|
8654
|
-
|
|
8642
|
+
K.prototype.format = function(a, b) {
|
|
8655
8643
|
if (0 == r(a, 2) && q(a, 5)) {
|
|
8656
8644
|
var c = w(a, 5);
|
|
8657
8645
|
if (0 < c.length) return c;
|
|
8658
8646
|
}
|
|
8659
8647
|
c = w(a, 1);
|
|
8660
|
-
var d =
|
|
8661
|
-
if (0 == b) return
|
|
8662
|
-
if (!(c in
|
|
8663
|
-
var e =
|
|
8648
|
+
var d = Q(a);
|
|
8649
|
+
if (0 == b) return Za(c, 0, d, "");
|
|
8650
|
+
if (!(c in J)) return d;
|
|
8651
|
+
var e = R(this, c, S(c));
|
|
8664
8652
|
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) : "";
|
|
8665
8653
|
a: {
|
|
8666
8654
|
e = 0 == u(e, 20).length || 2 == b ? u(e, 19) : u(e, 20);
|
|
@@ -8668,7 +8656,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8668
8656
|
f = e[h];
|
|
8669
8657
|
var l = x(f, 3);
|
|
8670
8658
|
if (0 == l || 0 == d.search(r(f, 3, l - 1))) {
|
|
8671
|
-
if (l = new RegExp(r(f, 1)),
|
|
8659
|
+
if (l = new RegExp(r(f, 1)), N(l, d)) {
|
|
8672
8660
|
e = f;
|
|
8673
8661
|
break a;
|
|
8674
8662
|
}
|
|
@@ -8679,18 +8667,18 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8679
8667
|
null != e && (g = e, e = w(g, 2), f = new RegExp(r(g, 1)), w(
|
|
8680
8668
|
g,
|
|
8681
8669
|
5
|
|
8682
|
-
), g = w(g, 4), d = 2 == b && null != g && 0 < g.length ? d.replace(f, e.replace(
|
|
8683
|
-
return
|
|
8670
|
+
), 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"), "-")));
|
|
8671
|
+
return Za(c, b, d, a);
|
|
8684
8672
|
};
|
|
8685
|
-
function
|
|
8686
|
-
return "001" == c ?
|
|
8673
|
+
function R(a, b, c) {
|
|
8674
|
+
return "001" == c ? T(a, "" + b) : T(a, c);
|
|
8687
8675
|
}
|
|
8688
|
-
function
|
|
8676
|
+
function Q(a) {
|
|
8689
8677
|
if (!q(a, 2)) return "";
|
|
8690
8678
|
var b = "" + r(a, 2);
|
|
8691
8679
|
return q(a, 4) && r(a, 4) && 0 < w(a, 8) ? Array(w(a, 8) + 1).join("0") + b : b;
|
|
8692
8680
|
}
|
|
8693
|
-
function
|
|
8681
|
+
function Za(a, b, c, d) {
|
|
8694
8682
|
switch (b) {
|
|
8695
8683
|
case 0:
|
|
8696
8684
|
return "+" + a + c + d;
|
|
@@ -8702,7 +8690,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8702
8690
|
return c + d;
|
|
8703
8691
|
}
|
|
8704
8692
|
}
|
|
8705
|
-
function
|
|
8693
|
+
function U(a, b) {
|
|
8706
8694
|
switch (b) {
|
|
8707
8695
|
case 4:
|
|
8708
8696
|
return r(a, 5);
|
|
@@ -8729,42 +8717,56 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8729
8717
|
return r(a, 1);
|
|
8730
8718
|
}
|
|
8731
8719
|
}
|
|
8732
|
-
function
|
|
8733
|
-
|
|
8720
|
+
function $a(a, b) {
|
|
8721
|
+
var c = ab(a, b);
|
|
8722
|
+
a = R(a, w(b, 1), c);
|
|
8723
|
+
if (null == a) return -1;
|
|
8724
|
+
b = Q(b);
|
|
8725
|
+
return bb(b, a);
|
|
8734
8726
|
}
|
|
8735
|
-
function
|
|
8727
|
+
function bb(a, b) {
|
|
8728
|
+
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;
|
|
8729
|
+
}
|
|
8730
|
+
function T(a, b) {
|
|
8736
8731
|
if (null == b) return null;
|
|
8737
8732
|
b = b.toUpperCase();
|
|
8738
8733
|
var c = a.g[b];
|
|
8739
8734
|
if (null == c) {
|
|
8740
|
-
c =
|
|
8735
|
+
c = Da[b];
|
|
8741
8736
|
if (null == c) return null;
|
|
8742
|
-
c = new
|
|
8737
|
+
c = new C().g(H.m(), c);
|
|
8743
8738
|
a.g[b] = c;
|
|
8744
8739
|
}
|
|
8745
8740
|
return c;
|
|
8746
8741
|
}
|
|
8747
|
-
function
|
|
8742
|
+
function V(a, b) {
|
|
8748
8743
|
var c = a.length;
|
|
8749
|
-
return 0 < x(b, 9) && -1 == u(b, 9).indexOf(c) ? false :
|
|
8744
|
+
return 0 < x(b, 9) && -1 == u(b, 9).indexOf(c) ? false : N(w(b, 2), a);
|
|
8750
8745
|
}
|
|
8751
|
-
function
|
|
8746
|
+
function cb(a, b) {
|
|
8747
|
+
var c = ab(a, b);
|
|
8748
|
+
var d = w(b, 1);
|
|
8749
|
+
var e = R(a, d, c);
|
|
8750
|
+
null == e || "001" != c && d != db(a, c) ? e = false : (a = Q(b), e = -1 != bb(a, e));
|
|
8751
|
+
return e;
|
|
8752
|
+
}
|
|
8753
|
+
function ab(a, b) {
|
|
8752
8754
|
if (null == b) return null;
|
|
8753
8755
|
var c = w(b, 1);
|
|
8754
|
-
c =
|
|
8756
|
+
c = J[c];
|
|
8755
8757
|
if (null == c) a = null;
|
|
8756
8758
|
else if (1 == c.length) a = c[0];
|
|
8757
8759
|
else a: {
|
|
8758
|
-
b =
|
|
8760
|
+
b = Q(b);
|
|
8759
8761
|
for (var d, e = c.length, f = 0; f < e; f++) {
|
|
8760
8762
|
d = c[f];
|
|
8761
|
-
var g =
|
|
8763
|
+
var g = T(a, d);
|
|
8762
8764
|
if (q(g, 23)) {
|
|
8763
8765
|
if (0 == b.search(r(g, 23))) {
|
|
8764
8766
|
a = d;
|
|
8765
8767
|
break a;
|
|
8766
8768
|
}
|
|
8767
|
-
} else if (-1 !=
|
|
8769
|
+
} else if (-1 != bb(b, g)) {
|
|
8768
8770
|
a = d;
|
|
8769
8771
|
break a;
|
|
8770
8772
|
}
|
|
@@ -8773,92 +8775,92 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8773
8775
|
}
|
|
8774
8776
|
return a;
|
|
8775
8777
|
}
|
|
8776
|
-
function
|
|
8777
|
-
a =
|
|
8778
|
+
function S(a) {
|
|
8779
|
+
a = J[a];
|
|
8778
8780
|
return null == a ? "ZZ" : a[0];
|
|
8779
8781
|
}
|
|
8780
|
-
function
|
|
8781
|
-
a =
|
|
8782
|
+
function db(a, b) {
|
|
8783
|
+
a = T(a, b);
|
|
8782
8784
|
if (null == a) throw Error("Invalid region code: " + b);
|
|
8783
8785
|
return w(a, 10);
|
|
8784
8786
|
}
|
|
8785
|
-
function
|
|
8786
|
-
var e =
|
|
8787
|
+
function W(a, b, c, d) {
|
|
8788
|
+
var e = U(c, d), f = 0 == x(e, 9) ? u(r(c, 1), 9) : u(e, 9);
|
|
8787
8789
|
e = u(e, 10);
|
|
8788
|
-
if (2 == d) if (
|
|
8789
|
-
else return
|
|
8790
|
+
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()));
|
|
8791
|
+
else return W(a, b, c, 1);
|
|
8790
8792
|
if (-1 == f[0]) return 5;
|
|
8791
8793
|
b = b.length;
|
|
8792
8794
|
if (-1 < e.indexOf(b)) return 4;
|
|
8793
8795
|
c = f[0];
|
|
8794
8796
|
return c == b ? 0 : c > b ? 2 : f[f.length - 1] < b ? 3 : -1 < f.indexOf(b, 1) ? 0 : 5;
|
|
8795
8797
|
}
|
|
8796
|
-
function
|
|
8797
|
-
var d =
|
|
8798
|
+
function X(a, b, c) {
|
|
8799
|
+
var d = Q(b);
|
|
8798
8800
|
b = w(b, 1);
|
|
8799
|
-
if (!(b in
|
|
8800
|
-
b =
|
|
8801
|
-
return
|
|
8801
|
+
if (!(b in J)) return 1;
|
|
8802
|
+
b = R(a, b, S(b));
|
|
8803
|
+
return W(a, d, b, c);
|
|
8802
8804
|
}
|
|
8803
|
-
function
|
|
8805
|
+
function eb(a, b) {
|
|
8804
8806
|
a = a.toString();
|
|
8805
8807
|
if (0 == a.length || "0" == a.charAt(0)) return 0;
|
|
8806
|
-
for (var c, d = a.length, e = 1; 3 >= e && e <= d; ++e) if (c = parseInt(a.substring(0, e), 10), c in
|
|
8808
|
+
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;
|
|
8807
8809
|
return 0;
|
|
8808
8810
|
}
|
|
8809
|
-
function
|
|
8811
|
+
function fb(a, b, c, d, e, f) {
|
|
8810
8812
|
if (0 == b.length) return 0;
|
|
8811
|
-
b = new
|
|
8813
|
+
b = new D(b);
|
|
8812
8814
|
var g;
|
|
8813
8815
|
null != c && (g = r(c, 11));
|
|
8814
8816
|
null == g && (g = "NonMatch");
|
|
8815
8817
|
var h = b.toString();
|
|
8816
8818
|
if (0 == h.length) g = 20;
|
|
8817
|
-
else if (
|
|
8819
|
+
else if (L.test(h)) h = h.replace(L, ""), E(b), b.g(Va(h)), g = 1;
|
|
8818
8820
|
else {
|
|
8819
8821
|
h = new RegExp(g);
|
|
8820
|
-
|
|
8822
|
+
Wa(b);
|
|
8821
8823
|
g = b.toString();
|
|
8822
8824
|
if (0 == g.search(h)) {
|
|
8823
8825
|
h = g.match(h)[0].length;
|
|
8824
|
-
var l = g.substring(h).match(
|
|
8825
|
-
l && null != l[1] && 0 < l[1].length && "0" ==
|
|
8826
|
+
var l = g.substring(h).match(Ia);
|
|
8827
|
+
l && null != l[1] && 0 < l[1].length && "0" == O(l[1], Ea) ? g = false : (E(b), b.g(g.substring(h)), g = true);
|
|
8826
8828
|
} else g = false;
|
|
8827
8829
|
g = g ? 5 : 20;
|
|
8828
8830
|
}
|
|
8829
8831
|
e && t(f, 6, g);
|
|
8830
8832
|
if (20 != g) {
|
|
8831
8833
|
if (2 >= b.h.length) throw Error("Phone number too short after IDD");
|
|
8832
|
-
a =
|
|
8834
|
+
a = eb(b, d);
|
|
8833
8835
|
if (0 != a) return t(f, 1, a), a;
|
|
8834
8836
|
throw Error("Invalid country calling code");
|
|
8835
8837
|
}
|
|
8836
|
-
if (null != c && (g = w(c, 10), h = "" + g, l = b.toString(), 0 == l.lastIndexOf(h, 0) && (h = new
|
|
8838
|
+
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;
|
|
8837
8839
|
t(f, 1, 0);
|
|
8838
8840
|
return 0;
|
|
8839
8841
|
}
|
|
8840
|
-
function
|
|
8842
|
+
function gb(a, b, c) {
|
|
8841
8843
|
var d = a.toString(), e = d.length, f = r(b, 15);
|
|
8842
8844
|
if (0 != e && null != f && 0 != f.length) {
|
|
8843
8845
|
var g = new RegExp("^(?:" + f + ")");
|
|
8844
8846
|
if (e = g.exec(d)) {
|
|
8845
8847
|
f = new RegExp(w(r(b, 1), 2));
|
|
8846
|
-
var h =
|
|
8848
|
+
var h = N(f, d), l = e.length - 1;
|
|
8847
8849
|
b = r(b, 16);
|
|
8848
8850
|
if (null == b || 0 == b.length || null == e[l] || 0 == e[l].length) {
|
|
8849
|
-
if (!h ||
|
|
8850
|
-
} else if (d = d.replace(g, b), !h ||
|
|
8851
|
+
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));
|
|
8852
|
+
} else if (d = d.replace(g, b), !h || N(f, d)) null != c && 0 < l && c.g(e[1]), a.set(d);
|
|
8851
8853
|
}
|
|
8852
8854
|
}
|
|
8853
8855
|
}
|
|
8854
|
-
function
|
|
8855
|
-
if (!
|
|
8856
|
-
return
|
|
8856
|
+
function Y(a, b, c) {
|
|
8857
|
+
if (!P(c) && 0 < b.length && "+" != b.charAt(0)) throw Error("Invalid country calling code");
|
|
8858
|
+
return hb(a, b, c, true);
|
|
8857
8859
|
}
|
|
8858
|
-
function
|
|
8860
|
+
function hb(a, b, c, d) {
|
|
8859
8861
|
if (null == b) throw Error("The string supplied did not seem to be a phone number");
|
|
8860
8862
|
if (250 < b.length) throw Error("The string supplied is too long to be a phone number");
|
|
8861
|
-
var e = new
|
|
8863
|
+
var e = new D();
|
|
8862
8864
|
var f = b.indexOf(";phone-context=");
|
|
8863
8865
|
if (-1 === f) f = null;
|
|
8864
8866
|
else if (f += 15, f >= b.length) f = "";
|
|
@@ -8867,24 +8869,24 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8867
8869
|
f = -1 !== g ? b.substring(f, g) : b.substring(f);
|
|
8868
8870
|
}
|
|
8869
8871
|
var h = f;
|
|
8870
|
-
null == h ? g = true : 0 === h.length ? g = false : (g =
|
|
8872
|
+
null == h ? g = true : 0 === h.length ? g = false : (g = Na.exec(h), h = Oa.exec(h), g = null !== g || null !== h);
|
|
8871
8873
|
if (!g) throw Error("The string supplied did not seem to be a phone number");
|
|
8872
|
-
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(
|
|
8874
|
+
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));
|
|
8873
8875
|
f = e.toString();
|
|
8874
8876
|
g = f.indexOf(";isub=");
|
|
8875
|
-
0 < g && (
|
|
8876
|
-
if (!
|
|
8877
|
+
0 < g && (E(e), e.g(f.substring(0, g)));
|
|
8878
|
+
if (!Ua(e.toString())) throw Error("The string supplied did not seem to be a phone number");
|
|
8877
8879
|
f = e.toString();
|
|
8878
|
-
if (!(
|
|
8879
|
-
f = new
|
|
8880
|
+
if (!(P(c) || null != f && 0 < f.length && L.test(f))) throw Error("Invalid country calling code");
|
|
8881
|
+
f = new I();
|
|
8880
8882
|
d && t(f, 5, b);
|
|
8881
8883
|
a: {
|
|
8882
8884
|
b = e.toString();
|
|
8883
|
-
g = b.search(
|
|
8884
|
-
if (0 <= g &&
|
|
8885
|
-
h = b.match(
|
|
8885
|
+
g = b.search(Qa);
|
|
8886
|
+
if (0 <= g && Ua(b.substring(0, g))) {
|
|
8887
|
+
h = b.match(Qa);
|
|
8886
8888
|
for (var l = h.length, A = 1; A < l; ++A) if (null != h[A] && 0 < h[A].length) {
|
|
8887
|
-
|
|
8889
|
+
E(e);
|
|
8888
8890
|
e.g(b.substring(0, g));
|
|
8889
8891
|
b = h[A];
|
|
8890
8892
|
break a;
|
|
@@ -8893,24 +8895,24 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8893
8895
|
b = "";
|
|
8894
8896
|
}
|
|
8895
8897
|
0 < b.length && t(f, 3, b);
|
|
8896
|
-
g =
|
|
8897
|
-
b = new
|
|
8898
|
+
g = T(a, c);
|
|
8899
|
+
b = new D();
|
|
8898
8900
|
h = 0;
|
|
8899
8901
|
l = e.toString();
|
|
8900
8902
|
try {
|
|
8901
|
-
h =
|
|
8902
|
-
} catch (
|
|
8903
|
-
if ("Invalid country calling code" ==
|
|
8904
|
-
if (l = l.replace(
|
|
8905
|
-
} else throw
|
|
8903
|
+
h = fb(a, l, g, b, d, f);
|
|
8904
|
+
} catch (ca) {
|
|
8905
|
+
if ("Invalid country calling code" == ca.message && L.test(l)) {
|
|
8906
|
+
if (l = l.replace(L, ""), h = fb(a, l, g, b, d, f), 0 == h) throw ca;
|
|
8907
|
+
} else throw ca;
|
|
8906
8908
|
}
|
|
8907
|
-
0 != h ? (e =
|
|
8909
|
+
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(
|
|
8908
8910
|
f,
|
|
8909
8911
|
1,
|
|
8910
8912
|
h
|
|
8911
8913
|
)) : d && (delete f.h[6], f.g && delete f.g[6]));
|
|
8912
8914
|
if (2 > b.h.length) throw Error("The string supplied is too short to be a phone number");
|
|
8913
|
-
null != g && (c = new
|
|
8915
|
+
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())));
|
|
8914
8916
|
d = b.toString();
|
|
8915
8917
|
a = d.length;
|
|
8916
8918
|
if (2 > a) throw Error("The string supplied is too short to be a phone number");
|
|
@@ -8923,70 +8925,70 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8923
8925
|
t(f, 2, parseInt(d, 10));
|
|
8924
8926
|
return f;
|
|
8925
8927
|
}
|
|
8926
|
-
function
|
|
8928
|
+
function N(a, b) {
|
|
8927
8929
|
return (a = "string" == typeof a ? b.match("^(?:" + a + ")$") : b.match(a)) && a[0].length == b.length ? true : false;
|
|
8928
8930
|
}
|
|
8929
8931
|
;
|
|
8930
|
-
function
|
|
8932
|
+
function ib(a) {
|
|
8931
8933
|
this.fa = RegExp("\u2008");
|
|
8932
8934
|
this.ja = "";
|
|
8933
|
-
this.v = new
|
|
8935
|
+
this.v = new D();
|
|
8934
8936
|
this.da = "";
|
|
8935
|
-
this.s = new
|
|
8936
|
-
this.ba = new
|
|
8937
|
+
this.s = new D();
|
|
8938
|
+
this.ba = new D();
|
|
8937
8939
|
this.u = true;
|
|
8938
8940
|
this.ea = this.ca = this.la = false;
|
|
8939
|
-
this.ga =
|
|
8941
|
+
this.ga = K.g();
|
|
8940
8942
|
this.$ = 0;
|
|
8941
|
-
this.h = new
|
|
8943
|
+
this.h = new D();
|
|
8942
8944
|
this.ha = false;
|
|
8943
8945
|
this.o = "";
|
|
8944
|
-
this.g = new
|
|
8946
|
+
this.g = new D();
|
|
8945
8947
|
this.j = [];
|
|
8946
8948
|
this.ka = a;
|
|
8947
|
-
this.l =
|
|
8949
|
+
this.l = jb(this, this.ka);
|
|
8948
8950
|
}
|
|
8949
|
-
var
|
|
8950
|
-
t(
|
|
8951
|
-
var
|
|
8952
|
-
function
|
|
8951
|
+
var kb = new H();
|
|
8952
|
+
t(kb, 11, "NA");
|
|
8953
|
+
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 = /[- ]/;
|
|
8954
|
+
function jb(a, b) {
|
|
8953
8955
|
var c = a.ga;
|
|
8954
|
-
b =
|
|
8955
|
-
a =
|
|
8956
|
-
return null != a ? a :
|
|
8956
|
+
b = P(b) ? db(c, b) : 0;
|
|
8957
|
+
a = T(a.ga, S(b));
|
|
8958
|
+
return null != a ? a : kb;
|
|
8957
8959
|
}
|
|
8958
|
-
function
|
|
8960
|
+
function nb(a) {
|
|
8959
8961
|
for (var b = a.j.length, c = 0; c < b; ++c) {
|
|
8960
8962
|
var d = a.j[c], e = w(d, 1);
|
|
8961
8963
|
if (a.da == e) return false;
|
|
8962
8964
|
var f = a;
|
|
8963
8965
|
var g = d, h = w(g, 1);
|
|
8964
|
-
|
|
8966
|
+
E(f.v);
|
|
8965
8967
|
var l = f;
|
|
8966
8968
|
g = w(g, 2);
|
|
8967
8969
|
var A = "999999999999999".match(h)[0];
|
|
8968
8970
|
A.length < l.g.h.length ? l = "" : (l = A.replace(new RegExp(h, "g"), g), l = l.replace(RegExp("9", "g"), "\u2008"));
|
|
8969
8971
|
0 < l.length ? (f.v.g(l), f = true) : f = false;
|
|
8970
|
-
if (f) return a.da = e, a.ha =
|
|
8972
|
+
if (f) return a.da = e, a.ha = mb.test(r(d, 4)), a.$ = 0, true;
|
|
8971
8973
|
}
|
|
8972
8974
|
return a.u = false;
|
|
8973
8975
|
}
|
|
8974
|
-
function
|
|
8976
|
+
function ob(a, b) {
|
|
8975
8977
|
for (var c = [], d = b.length - 3, e = a.j.length, f = 0; f < e; ++f) {
|
|
8976
8978
|
var g = a.j[f];
|
|
8977
8979
|
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]));
|
|
8978
8980
|
}
|
|
8979
8981
|
a.j = c;
|
|
8980
8982
|
}
|
|
8981
|
-
function
|
|
8983
|
+
function pb(a, b) {
|
|
8982
8984
|
a.s.g(b);
|
|
8983
8985
|
var c = b;
|
|
8984
|
-
|
|
8986
|
+
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);
|
|
8985
8987
|
if (!a.u) {
|
|
8986
8988
|
if (!a.la) {
|
|
8987
|
-
if (
|
|
8988
|
-
if (
|
|
8989
|
-
} else if (0 < a.o.length && (b = a.g.toString(),
|
|
8989
|
+
if (qb(a)) {
|
|
8990
|
+
if (rb(a)) return sb(a);
|
|
8991
|
+
} 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);
|
|
8990
8992
|
}
|
|
8991
8993
|
return a.s.toString();
|
|
8992
8994
|
}
|
|
@@ -8996,93 +8998,93 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8996
8998
|
case 2:
|
|
8997
8999
|
return a.s.toString();
|
|
8998
9000
|
case 3:
|
|
8999
|
-
if (
|
|
9000
|
-
else return a.o =
|
|
9001
|
+
if (qb(a)) a.ea = true;
|
|
9002
|
+
else return a.o = tb(a), ub(a);
|
|
9001
9003
|
default:
|
|
9002
|
-
if (a.ea) return
|
|
9004
|
+
if (a.ea) return rb(a) && (a.ea = false), a.h.toString() + a.g.toString();
|
|
9003
9005
|
if (0 < a.j.length) {
|
|
9004
|
-
b =
|
|
9005
|
-
c =
|
|
9006
|
+
b = vb(a, b);
|
|
9007
|
+
c = wb(a);
|
|
9006
9008
|
if (0 < c.length) return c;
|
|
9007
|
-
|
|
9008
|
-
return
|
|
9009
|
+
ob(a, a.g.toString());
|
|
9010
|
+
return nb(a) ? xb(a) : a.u ? Z(a, b) : a.s.toString();
|
|
9009
9011
|
}
|
|
9010
|
-
return
|
|
9012
|
+
return ub(a);
|
|
9011
9013
|
}
|
|
9012
9014
|
}
|
|
9013
|
-
function
|
|
9015
|
+
function sb(a) {
|
|
9014
9016
|
a.u = true;
|
|
9015
9017
|
a.ea = false;
|
|
9016
9018
|
a.j = [];
|
|
9017
9019
|
a.$ = 0;
|
|
9018
|
-
|
|
9020
|
+
E(a.v);
|
|
9019
9021
|
a.da = "";
|
|
9020
|
-
return
|
|
9022
|
+
return ub(a);
|
|
9021
9023
|
}
|
|
9022
|
-
function
|
|
9024
|
+
function wb(a) {
|
|
9023
9025
|
for (var b = a.g.toString(), c = a.j.length, d = 0; d < c; ++d) {
|
|
9024
9026
|
var e = a.j[d], f = w(e, 1);
|
|
9025
|
-
if (new RegExp("^(?:" + f + ")$").test(b) && (a.ha =
|
|
9027
|
+
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;
|
|
9026
9028
|
}
|
|
9027
9029
|
return "";
|
|
9028
9030
|
}
|
|
9029
|
-
function
|
|
9031
|
+
function Z(a, b) {
|
|
9030
9032
|
var c = a.h.h.length;
|
|
9031
9033
|
return a.ha && 0 < c && " " != a.h.toString().charAt(c - 1) ? a.h + " " + b : a.h + b;
|
|
9032
9034
|
}
|
|
9033
|
-
function
|
|
9035
|
+
function ub(a) {
|
|
9034
9036
|
var b = a.g.toString();
|
|
9035
9037
|
if (3 <= b.length) {
|
|
9036
9038
|
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) {
|
|
9037
9039
|
var f = c[e];
|
|
9038
|
-
0 < a.o.length &&
|
|
9040
|
+
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);
|
|
9039
9041
|
}
|
|
9040
|
-
|
|
9041
|
-
b =
|
|
9042
|
-
return 0 < b.length ? b :
|
|
9042
|
+
ob(a, b);
|
|
9043
|
+
b = wb(a);
|
|
9044
|
+
return 0 < b.length ? b : nb(a) ? xb(a) : a.s.toString();
|
|
9043
9045
|
}
|
|
9044
|
-
return
|
|
9046
|
+
return Z(a, b);
|
|
9045
9047
|
}
|
|
9046
|
-
function
|
|
9048
|
+
function xb(a) {
|
|
9047
9049
|
var b = a.g.toString(), c = b.length;
|
|
9048
9050
|
if (0 < c) {
|
|
9049
|
-
for (var d = "", e = 0; e < c; e++) d =
|
|
9050
|
-
return a.u ?
|
|
9051
|
+
for (var d = "", e = 0; e < c; e++) d = vb(a, b.charAt(e));
|
|
9052
|
+
return a.u ? Z(a, d) : a.s.toString();
|
|
9051
9053
|
}
|
|
9052
9054
|
return a.h.toString();
|
|
9053
9055
|
}
|
|
9054
|
-
function
|
|
9056
|
+
function tb(a) {
|
|
9055
9057
|
var b = a.g.toString(), c = 0;
|
|
9056
9058
|
if (1 != r(a.l, 10)) var d = false;
|
|
9057
9059
|
else d = a.g.toString(), d = "1" == d.charAt(0) && "0" != d.charAt(1) && "1" != d.charAt(1);
|
|
9058
9060
|
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))));
|
|
9059
|
-
|
|
9061
|
+
E(a.g);
|
|
9060
9062
|
a.g.g(b.substring(c));
|
|
9061
9063
|
return b.substring(0, c);
|
|
9062
9064
|
}
|
|
9063
|
-
function
|
|
9065
|
+
function qb(a) {
|
|
9064
9066
|
var b = a.ba.toString(), c = new RegExp("^(?:\\+|" + r(a.l, 11) + ")");
|
|
9065
9067
|
c = b.match(c);
|
|
9066
|
-
return null != c && null != c[0] && 0 < c[0].length ? (a.ca = true, c = c[0].length,
|
|
9068
|
+
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;
|
|
9067
9069
|
}
|
|
9068
|
-
function
|
|
9070
|
+
function rb(a) {
|
|
9069
9071
|
if (0 == a.g.h.length) return false;
|
|
9070
|
-
var b = new
|
|
9072
|
+
var b = new D(), c = eb(a.g, b);
|
|
9071
9073
|
if (0 == c) return false;
|
|
9072
|
-
|
|
9074
|
+
E(a.g);
|
|
9073
9075
|
a.g.g(b.toString());
|
|
9074
|
-
b =
|
|
9075
|
-
"001" == b ? a.l =
|
|
9076
|
+
b = S(c);
|
|
9077
|
+
"001" == b ? a.l = T(a.ga, "" + c) : b != a.ka && (a.l = jb(a, b));
|
|
9076
9078
|
a.h.g("" + c).g(" ");
|
|
9077
9079
|
a.o = "";
|
|
9078
9080
|
return true;
|
|
9079
9081
|
}
|
|
9080
|
-
function
|
|
9082
|
+
function vb(a, b) {
|
|
9081
9083
|
var c = a.v.toString();
|
|
9082
9084
|
if (0 <= c.substring(a.$).search(a.fa)) {
|
|
9083
9085
|
var d = c.search(a.fa);
|
|
9084
9086
|
b = c.replace(a.fa, b);
|
|
9085
|
-
|
|
9087
|
+
E(a.v);
|
|
9086
9088
|
a.v.g(b);
|
|
9087
9089
|
a.$ = d;
|
|
9088
9090
|
return b.substring(0, a.$ + 1);
|
|
@@ -9092,13 +9094,13 @@ var intl_tel_input_default = intlTelInput;
|
|
|
9092
9094
|
return a.s.toString();
|
|
9093
9095
|
}
|
|
9094
9096
|
;
|
|
9095
|
-
const
|
|
9097
|
+
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 };
|
|
9096
9098
|
m("intlTelInputUtilsTemp", {});
|
|
9097
9099
|
m("intlTelInputUtilsTemp.formatNumberAsYouType", (a, b) => {
|
|
9098
9100
|
try {
|
|
9099
|
-
const c = a.replace(/[^+0-9]/g, ""), d = new
|
|
9101
|
+
const c = a.replace(/[^+0-9]/g, ""), d = new ib(b);
|
|
9100
9102
|
b = "";
|
|
9101
|
-
for (let e = 0; e < c.length; e++) d.ja =
|
|
9103
|
+
for (let e = 0; e < c.length; e++) d.ja = pb(d, c.charAt(e)), b = d.ja;
|
|
9102
9104
|
return b;
|
|
9103
9105
|
} catch {
|
|
9104
9106
|
return a;
|
|
@@ -9106,8 +9108,8 @@ var intl_tel_input_default = intlTelInput;
|
|
|
9106
9108
|
});
|
|
9107
9109
|
m("intlTelInputUtilsTemp.formatNumber", (a, b, c) => {
|
|
9108
9110
|
try {
|
|
9109
|
-
const e =
|
|
9110
|
-
var d =
|
|
9111
|
+
const e = K.g(), f = Y(e, a, b);
|
|
9112
|
+
var d = X(e, f, -1);
|
|
9111
9113
|
return 0 == d || 4 == d ? e.format(f, "undefined" === typeof c ? 0 : c) : a;
|
|
9112
9114
|
} catch {
|
|
9113
9115
|
return a;
|
|
@@ -9115,15 +9117,15 @@ var intl_tel_input_default = intlTelInput;
|
|
|
9115
9117
|
});
|
|
9116
9118
|
m("intlTelInputUtilsTemp.getExampleNumber", (a, b, c, d) => {
|
|
9117
9119
|
try {
|
|
9118
|
-
const l =
|
|
9120
|
+
const l = K.g();
|
|
9119
9121
|
a: {
|
|
9120
9122
|
var e = l;
|
|
9121
|
-
if (
|
|
9122
|
-
var f = T(
|
|
9123
|
+
if (P(a)) {
|
|
9124
|
+
var f = U(T(e, a), c);
|
|
9123
9125
|
try {
|
|
9124
9126
|
if (q(f, 6)) {
|
|
9125
9127
|
var g = r(f, 6);
|
|
9126
|
-
var h =
|
|
9128
|
+
var h = hb(e, g, a, false);
|
|
9127
9129
|
break a;
|
|
9128
9130
|
}
|
|
9129
9131
|
} catch (A) {
|
|
@@ -9138,21 +9140,15 @@ var intl_tel_input_default = intlTelInput;
|
|
|
9138
9140
|
});
|
|
9139
9141
|
m("intlTelInputUtilsTemp.getExtension", (a, b) => {
|
|
9140
9142
|
try {
|
|
9141
|
-
return r(
|
|
9143
|
+
return r(Y(K.g(), a, b), 3);
|
|
9142
9144
|
} catch {
|
|
9143
9145
|
return "";
|
|
9144
9146
|
}
|
|
9145
9147
|
});
|
|
9146
9148
|
m("intlTelInputUtilsTemp.getNumberType", (a, b) => {
|
|
9147
9149
|
try {
|
|
9148
|
-
const
|
|
9149
|
-
|
|
9150
|
-
if (null == d) var e = -1;
|
|
9151
|
-
else {
|
|
9152
|
-
var f = P(h);
|
|
9153
|
-
e = ab(f, d);
|
|
9154
|
-
}
|
|
9155
|
-
return e;
|
|
9150
|
+
const c = K.g(), d = Y(c, a, b);
|
|
9151
|
+
return $a(c, d);
|
|
9156
9152
|
} catch {
|
|
9157
9153
|
return -99;
|
|
9158
9154
|
}
|
|
@@ -9160,53 +9156,46 @@ var intl_tel_input_default = intlTelInput;
|
|
|
9160
9156
|
m("intlTelInputUtilsTemp.getValidationError", (a, b) => {
|
|
9161
9157
|
if (!b) return 1;
|
|
9162
9158
|
try {
|
|
9163
|
-
const c =
|
|
9164
|
-
return
|
|
9159
|
+
const c = K.g(), d = Y(c, a, b);
|
|
9160
|
+
return X(c, d, -1);
|
|
9165
9161
|
} catch (c) {
|
|
9166
9162
|
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;
|
|
9167
9163
|
}
|
|
9168
9164
|
});
|
|
9169
|
-
m("intlTelInputUtilsTemp.isValidNumber", (a, b) => {
|
|
9165
|
+
m("intlTelInputUtilsTemp.isValidNumber", (a, b, c) => {
|
|
9170
9166
|
try {
|
|
9171
|
-
const
|
|
9172
|
-
|
|
9173
|
-
|
|
9174
|
-
|
|
9175
|
-
if (null == f || "001" != d && e != cb(a, d)) var g = false;
|
|
9176
|
-
else {
|
|
9177
|
-
var h = P(c);
|
|
9178
|
-
g = -1 != ab(h, f);
|
|
9167
|
+
const d = K.g(), e = Y(d, a, b), f = cb(d, e);
|
|
9168
|
+
if (c) {
|
|
9169
|
+
const g = c.map((h) => yb[h]);
|
|
9170
|
+
return f && g.includes($a(d, e));
|
|
9179
9171
|
}
|
|
9180
|
-
return
|
|
9172
|
+
return f;
|
|
9181
9173
|
} catch {
|
|
9182
9174
|
return false;
|
|
9183
9175
|
}
|
|
9184
9176
|
});
|
|
9185
9177
|
m("intlTelInputUtilsTemp.isPossibleNumber", (a, b, c) => {
|
|
9186
9178
|
try {
|
|
9187
|
-
const d =
|
|
9179
|
+
const d = K.g(), e = Y(d, a, b);
|
|
9188
9180
|
if (c) {
|
|
9189
|
-
|
|
9190
|
-
if (
|
|
9191
|
-
|
|
9192
|
-
return g || h || f;
|
|
9193
|
-
}
|
|
9194
|
-
return f;
|
|
9181
|
+
c.includes("FIXED_LINE_OR_MOBILE") && (c.includes("MOBILE") || c.push("MOBILE"), c.includes("FIXED_LINE") || c.push("FIXED_LINE"));
|
|
9182
|
+
for (let f of c) if (0 === X(d, e, yb[f])) return true;
|
|
9183
|
+
return false;
|
|
9195
9184
|
}
|
|
9196
|
-
return 0 ===
|
|
9185
|
+
return 0 === X(d, e, -1);
|
|
9197
9186
|
} catch {
|
|
9198
9187
|
return false;
|
|
9199
9188
|
}
|
|
9200
9189
|
});
|
|
9201
9190
|
m("intlTelInputUtilsTemp.getCoreNumber", (a, b) => {
|
|
9202
9191
|
try {
|
|
9203
|
-
return r(
|
|
9192
|
+
return r(Y(K.g(), a, b), 2).toString();
|
|
9204
9193
|
} catch {
|
|
9205
9194
|
return "";
|
|
9206
9195
|
}
|
|
9207
9196
|
});
|
|
9208
9197
|
m("intlTelInputUtilsTemp.numberFormat", { E164: 0, INTERNATIONAL: 1, NATIONAL: 2, RFC3966: 3 });
|
|
9209
|
-
m("intlTelInputUtilsTemp.numberType",
|
|
9198
|
+
m("intlTelInputUtilsTemp.numberType", yb);
|
|
9210
9199
|
m("intlTelInputUtilsTemp.validationError", { IS_POSSIBLE: 0, INVALID_COUNTRY_CODE: 1, TOO_SHORT: 2, TOO_LONG: 3, IS_POSSIBLE_LOCAL_ONLY: 4, INVALID_LENGTH: 5 });
|
|
9211
9200
|
})();
|
|
9212
9201
|
var utils = window.intlTelInputUtilsTemp;
|