intl-tel-input 23.5.0 → 23.6.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 +5 -5
- package/build/js/data.js +1 -1
- package/build/js/data.min.js +1 -1
- package/build/js/i18n/ca/countries.js +252 -0
- package/build/js/i18n/ca/index.js +6 -0
- package/build/js/i18n/ca/interface.js +14 -0
- package/build/js/i18n/cs/countries.js +252 -0
- package/build/js/i18n/cs/index.js +6 -0
- package/build/js/i18n/cs/interface.js +14 -0
- package/build/js/i18n/index.js +4 -0
- package/build/js/i18n/it/countries.js +252 -0
- package/build/js/i18n/it/index.js +6 -0
- package/build/js/i18n/it/interface.js +14 -0
- package/build/js/i18n/sk/countries.js +252 -0
- package/build/js/i18n/sk/index.js +6 -0
- package/build/js/i18n/sk/interface.js +14 -0
- package/build/js/intlTelInput.js +3 -5
- package/build/js/intlTelInput.min.js +2 -2
- package/build/js/intlTelInputWithUtils.js +260 -254
- package/build/js/intlTelInputWithUtils.min.js +2 -2
- package/build/js/utils.js +52 -52
- package/package.json +1 -1
- package/react/README.md +1 -1
- package/react/build/IntlTelInput.cjs +2 -4
- package/react/build/IntlTelInput.js +2 -4
- package/react/build/IntlTelInputWithUtils.cjs +259 -253
- package/react/build/IntlTelInputWithUtils.js +259 -253
|
@@ -1720,9 +1720,7 @@ var Iti = class {
|
|
|
1720
1720
|
this.countryContainer
|
|
1721
1721
|
);
|
|
1722
1722
|
if (this.telInput.disabled) {
|
|
1723
|
-
this.selectedCountry.setAttribute("
|
|
1724
|
-
} else {
|
|
1725
|
-
this.selectedCountry.setAttribute("tabindex", "0");
|
|
1723
|
+
this.selectedCountry.setAttribute("disabled", "true");
|
|
1726
1724
|
}
|
|
1727
1725
|
} else {
|
|
1728
1726
|
this.selectedCountry = createEl(
|
|
@@ -2819,7 +2817,7 @@ var intlTelInput = Object.assign(
|
|
|
2819
2817
|
//* A map from instance ID to instance object.
|
|
2820
2818
|
instances: {},
|
|
2821
2819
|
loadUtils,
|
|
2822
|
-
version: "23.
|
|
2820
|
+
version: "23.6.0"
|
|
2823
2821
|
}
|
|
2824
2822
|
);
|
|
2825
2823
|
var intl_tel_input_default = intlTelInput;
|
|
@@ -2853,7 +2851,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
2853
2851
|
return b;
|
|
2854
2852
|
}
|
|
2855
2853
|
;
|
|
2856
|
-
var
|
|
2854
|
+
var ca = class {
|
|
2857
2855
|
constructor(a) {
|
|
2858
2856
|
if (ba !== ba) throw Error("SafeUrl is not meant to be built directly");
|
|
2859
2857
|
this.g = a;
|
|
@@ -2862,8 +2860,8 @@ var intl_tel_input_default = intlTelInput;
|
|
|
2862
2860
|
return this.g.toString();
|
|
2863
2861
|
}
|
|
2864
2862
|
}, ba = {};
|
|
2865
|
-
new
|
|
2866
|
-
new
|
|
2863
|
+
new ca("about:invalid#zClosurez");
|
|
2864
|
+
new ca("about:blank");
|
|
2867
2865
|
const ea = {};
|
|
2868
2866
|
class fa {
|
|
2869
2867
|
constructor() {
|
|
@@ -3042,91 +3040,91 @@ var intl_tel_input_default = intlTelInput;
|
|
|
3042
3040
|
return b;
|
|
3043
3041
|
};
|
|
3044
3042
|
var xa = /^-?[0-9]+$/;
|
|
3045
|
-
function
|
|
3043
|
+
function ya() {
|
|
3046
3044
|
}
|
|
3047
|
-
n(
|
|
3048
|
-
|
|
3045
|
+
n(ya, z);
|
|
3046
|
+
ya.prototype.g = function(a, b) {
|
|
3049
3047
|
a = new a.h();
|
|
3050
3048
|
a.l = this;
|
|
3051
3049
|
a.h = b;
|
|
3052
3050
|
a.g = {};
|
|
3053
3051
|
return a;
|
|
3054
3052
|
};
|
|
3055
|
-
function
|
|
3053
|
+
function B() {
|
|
3056
3054
|
}
|
|
3057
|
-
n(
|
|
3058
|
-
|
|
3055
|
+
n(B, ya);
|
|
3056
|
+
B.prototype.h = function(a, b) {
|
|
3059
3057
|
return 8 == a.h ? !!b : z.prototype.h.apply(this, arguments);
|
|
3060
3058
|
};
|
|
3061
|
-
|
|
3062
|
-
return
|
|
3059
|
+
B.prototype.g = function(a, b) {
|
|
3060
|
+
return B.ma.g.call(this, a, b);
|
|
3063
3061
|
};
|
|
3064
|
-
function
|
|
3062
|
+
function C(a, b) {
|
|
3065
3063
|
null != a && this.g.apply(this, arguments);
|
|
3066
3064
|
}
|
|
3067
|
-
|
|
3068
|
-
|
|
3065
|
+
C.prototype.h = "";
|
|
3066
|
+
C.prototype.set = function(a) {
|
|
3069
3067
|
this.h = "" + a;
|
|
3070
3068
|
};
|
|
3071
|
-
|
|
3069
|
+
C.prototype.g = function(a, b, c) {
|
|
3072
3070
|
this.h += String(a);
|
|
3073
3071
|
if (null != b) for (let d = 1; d < arguments.length; d++) this.h += arguments[d];
|
|
3074
3072
|
return this;
|
|
3075
3073
|
};
|
|
3076
|
-
function
|
|
3074
|
+
function D(a) {
|
|
3077
3075
|
a.h = "";
|
|
3078
3076
|
}
|
|
3079
|
-
|
|
3077
|
+
C.prototype.toString = function() {
|
|
3080
3078
|
return this.h;
|
|
3081
3079
|
};
|
|
3080
|
+
function E() {
|
|
3081
|
+
p.call(this);
|
|
3082
|
+
}
|
|
3083
|
+
n(E, p);
|
|
3084
|
+
var za = null;
|
|
3082
3085
|
function F() {
|
|
3083
3086
|
p.call(this);
|
|
3084
3087
|
}
|
|
3085
3088
|
n(F, p);
|
|
3086
|
-
var
|
|
3089
|
+
var Aa = null;
|
|
3087
3090
|
function G() {
|
|
3088
3091
|
p.call(this);
|
|
3089
3092
|
}
|
|
3090
3093
|
n(G, p);
|
|
3091
|
-
var
|
|
3092
|
-
function
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3094
|
+
var Ba = null;
|
|
3095
|
+
E.prototype.m = function() {
|
|
3096
|
+
var a = za;
|
|
3097
|
+
a || (za = a = y(E, { 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 } }));
|
|
3098
|
+
return a;
|
|
3099
|
+
};
|
|
3100
|
+
E.m = E.prototype.m;
|
|
3097
3101
|
F.prototype.m = function() {
|
|
3098
|
-
var a =
|
|
3099
|
-
a || (
|
|
3102
|
+
var a = Aa;
|
|
3103
|
+
a || (Aa = a = y(F, { 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 } }));
|
|
3100
3104
|
return a;
|
|
3101
3105
|
};
|
|
3102
3106
|
F.m = F.prototype.m;
|
|
3103
3107
|
G.prototype.m = function() {
|
|
3104
|
-
var a =
|
|
3105
|
-
a || (
|
|
3106
|
-
return a;
|
|
3107
|
-
};
|
|
3108
|
-
G.m = G.prototype.m;
|
|
3109
|
-
H.prototype.m = function() {
|
|
3110
|
-
var a = Aa;
|
|
3111
|
-
a || (Aa = a = y(H, {
|
|
3108
|
+
var a = Ba;
|
|
3109
|
+
a || (Ba = a = y(G, {
|
|
3112
3110
|
0: { name: "PhoneMetadata", ia: "i18n.phonenumbers.PhoneMetadata" },
|
|
3113
|
-
1: { name: "general_desc", i: 11, type:
|
|
3114
|
-
2: { name: "fixed_line", i: 11, type:
|
|
3115
|
-
3: { name: "mobile", i: 11, type:
|
|
3116
|
-
4: { name: "toll_free", i: 11, type:
|
|
3117
|
-
5: { name: "premium_rate", i: 11, type:
|
|
3118
|
-
6: { name: "shared_cost", i: 11, type:
|
|
3119
|
-
7: { name: "personal_number", i: 11, type:
|
|
3120
|
-
8: { name: "voip", i: 11, type:
|
|
3121
|
-
21: { name: "pager", i: 11, type:
|
|
3122
|
-
25: { name: "uan", i: 11, type:
|
|
3123
|
-
27: { name: "emergency", i: 11, type:
|
|
3124
|
-
28: { name: "voicemail", i: 11, type:
|
|
3125
|
-
29: { name: "short_code", i: 11, type:
|
|
3126
|
-
30: { name: "standard_rate", i: 11, type:
|
|
3127
|
-
31: { name: "carrier_specific", i: 11, type:
|
|
3128
|
-
33: { name: "sms_services", i: 11, type:
|
|
3129
|
-
24: { name: "no_international_dialling", i: 11, type:
|
|
3111
|
+
1: { name: "general_desc", i: 11, type: F },
|
|
3112
|
+
2: { name: "fixed_line", i: 11, type: F },
|
|
3113
|
+
3: { name: "mobile", i: 11, type: F },
|
|
3114
|
+
4: { name: "toll_free", i: 11, type: F },
|
|
3115
|
+
5: { name: "premium_rate", i: 11, type: F },
|
|
3116
|
+
6: { name: "shared_cost", i: 11, type: F },
|
|
3117
|
+
7: { name: "personal_number", i: 11, type: F },
|
|
3118
|
+
8: { name: "voip", i: 11, type: F },
|
|
3119
|
+
21: { name: "pager", i: 11, type: F },
|
|
3120
|
+
25: { name: "uan", i: 11, type: F },
|
|
3121
|
+
27: { name: "emergency", i: 11, type: F },
|
|
3122
|
+
28: { name: "voicemail", i: 11, type: F },
|
|
3123
|
+
29: { name: "short_code", i: 11, type: F },
|
|
3124
|
+
30: { name: "standard_rate", i: 11, type: F },
|
|
3125
|
+
31: { name: "carrier_specific", i: 11, type: F },
|
|
3126
|
+
33: { name: "sms_services", i: 11, type: F },
|
|
3127
|
+
24: { name: "no_international_dialling", i: 11, type: F },
|
|
3130
3128
|
9: { name: "id", required: true, i: 9, type: String },
|
|
3131
3129
|
10: { name: "country_code", i: 5, type: Number },
|
|
3132
3130
|
11: { name: "international_prefix", i: 9, type: String },
|
|
@@ -3140,31 +3138,31 @@ var intl_tel_input_default = intlTelInput;
|
|
|
3140
3138
|
},
|
|
3141
3139
|
16: { name: "national_prefix_transform_rule", i: 9, type: String },
|
|
3142
3140
|
18: { name: "same_mobile_and_fixed_line_pattern", i: 8, defaultValue: false, type: Boolean },
|
|
3143
|
-
19: { name: "number_format", aa: true, i: 11, type:
|
|
3144
|
-
20: { name: "intl_number_format", aa: true, i: 11, type:
|
|
3141
|
+
19: { name: "number_format", aa: true, i: 11, type: E },
|
|
3142
|
+
20: { name: "intl_number_format", aa: true, i: 11, type: E },
|
|
3145
3143
|
22: { name: "main_country_for_code", i: 8, defaultValue: false, type: Boolean },
|
|
3146
3144
|
23: { name: "leading_digits", i: 9, type: String }
|
|
3147
3145
|
}));
|
|
3148
3146
|
return a;
|
|
3149
3147
|
};
|
|
3150
|
-
|
|
3151
|
-
function
|
|
3148
|
+
G.m = G.prototype.m;
|
|
3149
|
+
function H() {
|
|
3152
3150
|
p.call(this);
|
|
3153
3151
|
}
|
|
3154
|
-
n(
|
|
3155
|
-
var
|
|
3156
|
-
|
|
3157
|
-
var a =
|
|
3158
|
-
a || (
|
|
3152
|
+
n(H, p);
|
|
3153
|
+
var Ca = null, Da = { ra: 0, qa: 1, pa: 5, oa: 10, na: 20 };
|
|
3154
|
+
H.prototype.m = function() {
|
|
3155
|
+
var a = Ca;
|
|
3156
|
+
a || (Ca = a = y(H, { 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: Da }, 7: {
|
|
3159
3157
|
name: "preferred_domestic_carrier_code",
|
|
3160
3158
|
i: 9,
|
|
3161
3159
|
type: String
|
|
3162
3160
|
} }));
|
|
3163
3161
|
return a;
|
|
3164
3162
|
};
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
var
|
|
3163
|
+
H.ctor = H;
|
|
3164
|
+
H.ctor.m = H.prototype.m;
|
|
3165
|
+
var I = {
|
|
3168
3166
|
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(" "),
|
|
3169
3167
|
7: ["RU", "KZ"],
|
|
3170
3168
|
20: ["EG"],
|
|
@@ -3380,7 +3378,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
3380
3378
|
995: ["GE"],
|
|
3381
3379
|
996: ["KG"],
|
|
3382
3380
|
998: ["UZ"]
|
|
3383
|
-
},
|
|
3381
|
+
}, Ea = {
|
|
3384
3382
|
AC: [, [
|
|
3385
3383
|
,
|
|
3386
3384
|
,
|
|
@@ -8399,14 +8397,14 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8399
8397
|
], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "001", 888, , , , , , , , 1, [[, "(\\d{3})(\\d{3})(\\d{5})", "$1 $2 $3"]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , "\\d{11}", , , , "12345678901"], , , [, , , , , , , , , [-1]]],
|
|
8400
8398
|
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]]]
|
|
8401
8399
|
};
|
|
8402
|
-
function
|
|
8400
|
+
function J() {
|
|
8403
8401
|
this.g = {};
|
|
8404
8402
|
}
|
|
8405
|
-
|
|
8406
|
-
|
|
8407
|
-
return
|
|
8403
|
+
J.h = void 0;
|
|
8404
|
+
J.g = function() {
|
|
8405
|
+
return J.h ? J.h : J.h = new J();
|
|
8408
8406
|
};
|
|
8409
|
-
var
|
|
8407
|
+
var Fa = { 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" }, Ga = {
|
|
8410
8408
|
0: "0",
|
|
8411
8409
|
1: "1",
|
|
8412
8410
|
2: "2",
|
|
@@ -8420,7 +8418,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8420
8418
|
"+": "+",
|
|
8421
8419
|
"*": "*",
|
|
8422
8420
|
"#": "#"
|
|
8423
|
-
},
|
|
8421
|
+
}, Ha = {
|
|
8424
8422
|
0: "0",
|
|
8425
8423
|
1: "1",
|
|
8426
8424
|
2: "2",
|
|
@@ -8487,48 +8485,48 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8487
8485
|
X: "9",
|
|
8488
8486
|
Y: "9",
|
|
8489
8487
|
Z: "9"
|
|
8490
|
-
},
|
|
8491
|
-
function
|
|
8488
|
+
}, Ia = RegExp("[+\uFF0B]+"), K = RegExp("^[+\uFF0B]+"), Ja = RegExp("([0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9])"), Ka = RegExp("[+\uFF0B0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9]"), La = /[\\\/] *x/, Ma = RegExp("[^0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9A-Za-z#]+$"), Na = /(?:.*?[A-Za-z]){3}.*/, Oa = 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]|[\\-\\.\\(\\)]?)*$"), Pa = 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])*\\.?$");
|
|
8489
|
+
function L(a) {
|
|
8492
8490
|
return "([0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9]{1," + a + "})";
|
|
8493
8491
|
}
|
|
8494
|
-
function
|
|
8495
|
-
return ";ext=" +
|
|
8496
|
-
}
|
|
8497
|
-
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\)?$/;
|
|
8498
|
-
function Ua(a) {
|
|
8499
|
-
return 2 > a.length ? false : N(Ra, a);
|
|
8492
|
+
function Qa() {
|
|
8493
|
+
return ";ext=" + L("20") + "|[ \xA0\\t,]*(?:e?xt(?:ensi(?:o\u0301?|\xF3))?n?|\uFF45?\uFF58\uFF54\uFF4E?|\u0434\u043E\u0431|anexo)[:\\.\uFF0E]?[ \xA0\\t,-]*" + (L("20") + "#?|[ \xA0\\t,]*(?:[x\uFF58#\uFF03~\uFF5E]|int|\uFF49\uFF4E\uFF54)[:\\.\uFF0E]?[ \xA0\\t,-]*") + (L("9") + "#?|[- ]+") + (L("6") + "#|[ \xA0\\t]*(?:,{2}|;)[:\\.\uFF0E]?[ \xA0\\t,-]*") + (L("15") + "#?|[ \xA0\\t]*(?:,)+[:\\.\uFF0E]?[ \xA0\\t,-]*") + (L("9") + "#?");
|
|
8500
8494
|
}
|
|
8495
|
+
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\)?$/;
|
|
8501
8496
|
function Va(a) {
|
|
8502
|
-
return
|
|
8497
|
+
return 2 > a.length ? false : M(Sa, a);
|
|
8503
8498
|
}
|
|
8504
8499
|
function Wa(a) {
|
|
8505
|
-
|
|
8506
|
-
E(a);
|
|
8507
|
-
a.g(b);
|
|
8500
|
+
return M(Na, a) ? N(a, Ha) : N(a, Fa);
|
|
8508
8501
|
}
|
|
8509
8502
|
function Xa(a) {
|
|
8503
|
+
var b = Wa(a.toString());
|
|
8504
|
+
D(a);
|
|
8505
|
+
a.g(b);
|
|
8506
|
+
}
|
|
8507
|
+
function Ya(a) {
|
|
8510
8508
|
return null != a && (1 != x(a, 9) || -1 != u(a, 9)[0]);
|
|
8511
8509
|
}
|
|
8512
|
-
function
|
|
8513
|
-
for (var c = new
|
|
8510
|
+
function N(a, b) {
|
|
8511
|
+
for (var c = new C(), d, e = a.length, f = 0; f < e; ++f) d = a.charAt(f), d = b[d.toUpperCase()], null != d && c.g(d);
|
|
8514
8512
|
return c.toString();
|
|
8515
8513
|
}
|
|
8516
|
-
function
|
|
8517
|
-
return 0 == a.length ||
|
|
8514
|
+
function Za(a) {
|
|
8515
|
+
return 0 == a.length || Ua.test(a);
|
|
8518
8516
|
}
|
|
8519
|
-
function
|
|
8520
|
-
return null != a && isNaN(a) && a.toUpperCase() in
|
|
8517
|
+
function O(a) {
|
|
8518
|
+
return null != a && isNaN(a) && a.toUpperCase() in Ea;
|
|
8521
8519
|
}
|
|
8522
|
-
|
|
8520
|
+
J.prototype.format = function(a, b) {
|
|
8523
8521
|
if (0 == r(a, 2) && q(a, 5)) {
|
|
8524
8522
|
var c = w(a, 5);
|
|
8525
8523
|
if (0 < c.length) return c;
|
|
8526
8524
|
}
|
|
8527
8525
|
c = w(a, 1);
|
|
8528
|
-
var d =
|
|
8529
|
-
if (0 == b) return
|
|
8530
|
-
if (!(c in
|
|
8531
|
-
var e =
|
|
8526
|
+
var d = P(a);
|
|
8527
|
+
if (0 == b) return $a(c, 0, d, "");
|
|
8528
|
+
if (!(c in I)) return d;
|
|
8529
|
+
var e = Q(this, c, R(c));
|
|
8532
8530
|
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) : "";
|
|
8533
8531
|
a: {
|
|
8534
8532
|
e = 0 == u(e, 20).length || 2 == b ? u(e, 19) : u(e, 20);
|
|
@@ -8536,7 +8534,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8536
8534
|
f = e[h];
|
|
8537
8535
|
var l = x(f, 3);
|
|
8538
8536
|
if (0 == l || 0 == d.search(r(f, 3, l - 1))) {
|
|
8539
|
-
if (l = new RegExp(r(f, 1)),
|
|
8537
|
+
if (l = new RegExp(r(f, 1)), M(l, d)) {
|
|
8540
8538
|
e = f;
|
|
8541
8539
|
break a;
|
|
8542
8540
|
}
|
|
@@ -8547,18 +8545,18 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8547
8545
|
null != e && (g = e, e = w(g, 2), f = new RegExp(r(g, 1)), w(
|
|
8548
8546
|
g,
|
|
8549
8547
|
5
|
|
8550
|
-
), g = w(g, 4), d = 2 == b && null != g && 0 < g.length ? d.replace(f, e.replace(
|
|
8551
|
-
return
|
|
8548
|
+
), g = w(g, 4), d = 2 == b && null != g && 0 < g.length ? d.replace(f, e.replace(Ta, 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"), "-")));
|
|
8549
|
+
return $a(c, b, d, a);
|
|
8552
8550
|
};
|
|
8553
|
-
function
|
|
8554
|
-
return "001" == c ?
|
|
8551
|
+
function Q(a, b, c) {
|
|
8552
|
+
return "001" == c ? S(a, "" + b) : S(a, c);
|
|
8555
8553
|
}
|
|
8556
|
-
function
|
|
8554
|
+
function P(a) {
|
|
8557
8555
|
if (!q(a, 2)) return "";
|
|
8558
8556
|
var b = "" + r(a, 2);
|
|
8559
8557
|
return q(a, 4) && r(a, 4) && 0 < w(a, 8) ? Array(w(a, 8) + 1).join("0") + b : b;
|
|
8560
8558
|
}
|
|
8561
|
-
function
|
|
8559
|
+
function $a(a, b, c, d) {
|
|
8562
8560
|
switch (b) {
|
|
8563
8561
|
case 0:
|
|
8564
8562
|
return "+" + a + c + d;
|
|
@@ -8570,7 +8568,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8570
8568
|
return c + d;
|
|
8571
8569
|
}
|
|
8572
8570
|
}
|
|
8573
|
-
function
|
|
8571
|
+
function T(a, b) {
|
|
8574
8572
|
switch (b) {
|
|
8575
8573
|
case 4:
|
|
8576
8574
|
return r(a, 5);
|
|
@@ -8597,42 +8595,42 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8597
8595
|
return r(a, 1);
|
|
8598
8596
|
}
|
|
8599
8597
|
}
|
|
8600
|
-
function
|
|
8601
|
-
return
|
|
8598
|
+
function ab(a, b) {
|
|
8599
|
+
return U(a, r(b, 1)) ? U(a, r(b, 5)) ? 4 : U(a, r(b, 4)) ? 3 : U(a, r(b, 6)) ? 5 : U(a, r(b, 8)) ? 6 : U(a, r(b, 7)) ? 7 : U(a, r(b, 21)) ? 8 : U(a, r(b, 25)) ? 9 : U(a, r(b, 28)) ? 10 : U(a, r(b, 2)) ? r(b, 18) || U(a, r(b, 3)) ? 2 : 0 : !r(b, 18) && U(a, r(b, 3)) ? 1 : -1 : -1;
|
|
8602
8600
|
}
|
|
8603
|
-
function
|
|
8601
|
+
function S(a, b) {
|
|
8604
8602
|
if (null == b) return null;
|
|
8605
8603
|
b = b.toUpperCase();
|
|
8606
8604
|
var c = a.g[b];
|
|
8607
8605
|
if (null == c) {
|
|
8608
|
-
c =
|
|
8606
|
+
c = Ea[b];
|
|
8609
8607
|
if (null == c) return null;
|
|
8610
|
-
c = new
|
|
8608
|
+
c = new B().g(G.m(), c);
|
|
8611
8609
|
a.g[b] = c;
|
|
8612
8610
|
}
|
|
8613
8611
|
return c;
|
|
8614
8612
|
}
|
|
8615
|
-
function
|
|
8613
|
+
function U(a, b) {
|
|
8616
8614
|
var c = a.length;
|
|
8617
|
-
return 0 < x(b, 9) && -1 == u(b, 9).indexOf(c) ? false :
|
|
8615
|
+
return 0 < x(b, 9) && -1 == u(b, 9).indexOf(c) ? false : M(w(b, 2), a);
|
|
8618
8616
|
}
|
|
8619
|
-
function
|
|
8617
|
+
function bb(a, b) {
|
|
8620
8618
|
if (null == b) return null;
|
|
8621
8619
|
var c = w(b, 1);
|
|
8622
|
-
c =
|
|
8620
|
+
c = I[c];
|
|
8623
8621
|
if (null == c) a = null;
|
|
8624
8622
|
else if (1 == c.length) a = c[0];
|
|
8625
8623
|
else a: {
|
|
8626
|
-
b =
|
|
8624
|
+
b = P(b);
|
|
8627
8625
|
for (var d, e = c.length, f = 0; f < e; f++) {
|
|
8628
8626
|
d = c[f];
|
|
8629
|
-
var g =
|
|
8627
|
+
var g = S(a, d);
|
|
8630
8628
|
if (q(g, 23)) {
|
|
8631
8629
|
if (0 == b.search(r(g, 23))) {
|
|
8632
8630
|
a = d;
|
|
8633
8631
|
break a;
|
|
8634
8632
|
}
|
|
8635
|
-
} else if (-1 !=
|
|
8633
|
+
} else if (-1 != ab(b, g)) {
|
|
8636
8634
|
a = d;
|
|
8637
8635
|
break a;
|
|
8638
8636
|
}
|
|
@@ -8641,92 +8639,92 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8641
8639
|
}
|
|
8642
8640
|
return a;
|
|
8643
8641
|
}
|
|
8644
|
-
function
|
|
8645
|
-
a =
|
|
8642
|
+
function R(a) {
|
|
8643
|
+
a = I[a];
|
|
8646
8644
|
return null == a ? "ZZ" : a[0];
|
|
8647
8645
|
}
|
|
8648
|
-
function
|
|
8649
|
-
a =
|
|
8646
|
+
function cb(a, b) {
|
|
8647
|
+
a = S(a, b);
|
|
8650
8648
|
if (null == a) throw Error("Invalid region code: " + b);
|
|
8651
8649
|
return w(a, 10);
|
|
8652
8650
|
}
|
|
8653
|
-
function
|
|
8654
|
-
var e =
|
|
8651
|
+
function V(a, b, c, d) {
|
|
8652
|
+
var e = T(c, d), f = 0 == x(e, 9) ? u(r(c, 1), 9) : u(e, 9);
|
|
8655
8653
|
e = u(e, 10);
|
|
8656
|
-
if (2 == d) if (
|
|
8657
|
-
else return
|
|
8654
|
+
if (2 == d) if (Ya(T(c, 0))) a = T(c, 1), Ya(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()));
|
|
8655
|
+
else return V(a, b, c, 1);
|
|
8658
8656
|
if (-1 == f[0]) return 5;
|
|
8659
8657
|
b = b.length;
|
|
8660
8658
|
if (-1 < e.indexOf(b)) return 4;
|
|
8661
8659
|
c = f[0];
|
|
8662
8660
|
return c == b ? 0 : c > b ? 2 : f[f.length - 1] < b ? 3 : -1 < f.indexOf(b, 1) ? 0 : 5;
|
|
8663
8661
|
}
|
|
8664
|
-
function
|
|
8665
|
-
var d =
|
|
8662
|
+
function W(a, b, c) {
|
|
8663
|
+
var d = P(b);
|
|
8666
8664
|
b = w(b, 1);
|
|
8667
|
-
if (!(b in
|
|
8668
|
-
b =
|
|
8669
|
-
return
|
|
8665
|
+
if (!(b in I)) return 1;
|
|
8666
|
+
b = Q(a, b, R(b));
|
|
8667
|
+
return V(a, d, b, c);
|
|
8670
8668
|
}
|
|
8671
|
-
function
|
|
8669
|
+
function db(a, b) {
|
|
8672
8670
|
a = a.toString();
|
|
8673
8671
|
if (0 == a.length || "0" == a.charAt(0)) return 0;
|
|
8674
|
-
for (var c, d = a.length, e = 1; 3 >= e && e <= d; ++e) if (c = parseInt(a.substring(0, e), 10), c in
|
|
8672
|
+
for (var c, d = a.length, e = 1; 3 >= e && e <= d; ++e) if (c = parseInt(a.substring(0, e), 10), c in I) return b.g(a.substring(e)), c;
|
|
8675
8673
|
return 0;
|
|
8676
8674
|
}
|
|
8677
|
-
function
|
|
8675
|
+
function eb(a, b, c, d, e, f) {
|
|
8678
8676
|
if (0 == b.length) return 0;
|
|
8679
|
-
b = new
|
|
8677
|
+
b = new C(b);
|
|
8680
8678
|
var g;
|
|
8681
8679
|
null != c && (g = r(c, 11));
|
|
8682
8680
|
null == g && (g = "NonMatch");
|
|
8683
8681
|
var h = b.toString();
|
|
8684
8682
|
if (0 == h.length) g = 20;
|
|
8685
|
-
else if (
|
|
8683
|
+
else if (K.test(h)) h = h.replace(K, ""), D(b), b.g(Wa(h)), g = 1;
|
|
8686
8684
|
else {
|
|
8687
8685
|
h = new RegExp(g);
|
|
8688
|
-
|
|
8686
|
+
Xa(b);
|
|
8689
8687
|
g = b.toString();
|
|
8690
8688
|
if (0 == g.search(h)) {
|
|
8691
8689
|
h = g.match(h)[0].length;
|
|
8692
|
-
var l = g.substring(h).match(
|
|
8693
|
-
l && null != l[1] && 0 < l[1].length && "0" ==
|
|
8690
|
+
var l = g.substring(h).match(Ja);
|
|
8691
|
+
l && null != l[1] && 0 < l[1].length && "0" == N(l[1], Fa) ? g = false : (D(b), b.g(g.substring(h)), g = true);
|
|
8694
8692
|
} else g = false;
|
|
8695
8693
|
g = g ? 5 : 20;
|
|
8696
8694
|
}
|
|
8697
8695
|
e && t(f, 6, g);
|
|
8698
8696
|
if (20 != g) {
|
|
8699
8697
|
if (2 >= b.h.length) throw Error("Phone number too short after IDD");
|
|
8700
|
-
a =
|
|
8698
|
+
a = db(b, d);
|
|
8701
8699
|
if (0 != a) return t(f, 1, a), a;
|
|
8702
8700
|
throw Error("Invalid country calling code");
|
|
8703
8701
|
}
|
|
8704
|
-
if (null != c && (g = w(c, 10), h = "" + g, l = b.toString(), 0 == l.lastIndexOf(h, 0) && (h = new
|
|
8702
|
+
if (null != c && (g = w(c, 10), h = "" + g, l = b.toString(), 0 == l.lastIndexOf(h, 0) && (h = new C(l.substring(h.length)), l = r(c, 1), l = new RegExp(w(l, 2)), fb(h, c, null), h = h.toString(), !M(l, b.toString()) && M(l, h) || 3 == V(a, b.toString(), c, -1)))) return d.g(h), e && t(f, 6, 10), t(f, 1, g), g;
|
|
8705
8703
|
t(f, 1, 0);
|
|
8706
8704
|
return 0;
|
|
8707
8705
|
}
|
|
8708
|
-
function
|
|
8706
|
+
function fb(a, b, c) {
|
|
8709
8707
|
var d = a.toString(), e = d.length, f = r(b, 15);
|
|
8710
8708
|
if (0 != e && null != f && 0 != f.length) {
|
|
8711
8709
|
var g = new RegExp("^(?:" + f + ")");
|
|
8712
8710
|
if (e = g.exec(d)) {
|
|
8713
8711
|
f = new RegExp(w(r(b, 1), 2));
|
|
8714
|
-
var h =
|
|
8712
|
+
var h = M(f, d), l = e.length - 1;
|
|
8715
8713
|
b = r(b, 16);
|
|
8716
8714
|
if (null == b || 0 == b.length || null == e[l] || 0 == e[l].length) {
|
|
8717
|
-
if (!h ||
|
|
8718
|
-
} else if (d = d.replace(g, b), !h ||
|
|
8715
|
+
if (!h || M(f, d.substring(e[0].length))) null != c && 0 < l && null != e[l] && c.g(e[1]), a.set(d.substring(e[0].length));
|
|
8716
|
+
} else if (d = d.replace(g, b), !h || M(f, d)) null != c && 0 < l && c.g(e[1]), a.set(d);
|
|
8719
8717
|
}
|
|
8720
8718
|
}
|
|
8721
8719
|
}
|
|
8722
|
-
function
|
|
8723
|
-
if (!
|
|
8724
|
-
return
|
|
8720
|
+
function X(a, b, c) {
|
|
8721
|
+
if (!O(c) && 0 < b.length && "+" != b.charAt(0)) throw Error("Invalid country calling code");
|
|
8722
|
+
return gb(a, b, c, true);
|
|
8725
8723
|
}
|
|
8726
|
-
function
|
|
8724
|
+
function gb(a, b, c, d) {
|
|
8727
8725
|
if (null == b) throw Error("The string supplied did not seem to be a phone number");
|
|
8728
8726
|
if (250 < b.length) throw Error("The string supplied is too long to be a phone number");
|
|
8729
|
-
var e = new
|
|
8727
|
+
var e = new C();
|
|
8730
8728
|
var f = b.indexOf(";phone-context=");
|
|
8731
8729
|
if (-1 === f) f = null;
|
|
8732
8730
|
else if (f += 15, f >= b.length) f = "";
|
|
@@ -8735,24 +8733,24 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8735
8733
|
f = -1 !== g ? b.substring(f, g) : b.substring(f);
|
|
8736
8734
|
}
|
|
8737
8735
|
var h = f;
|
|
8738
|
-
null == h ? g = true : 0 === h.length ? g = false : (g =
|
|
8736
|
+
null == h ? g = true : 0 === h.length ? g = false : (g = Oa.exec(h), h = Pa.exec(h), g = null !== g || null !== h);
|
|
8739
8737
|
if (!g) throw Error("The string supplied did not seem to be a phone number");
|
|
8740
|
-
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(
|
|
8738
|
+
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(Ka), 0 <= h ? (g = g.substring(h), g = g.replace(Ma, ""), h = g.search(La), 0 <= h && (g = g.substring(0, h))) : g = "", f.call(e, g));
|
|
8741
8739
|
f = e.toString();
|
|
8742
8740
|
g = f.indexOf(";isub=");
|
|
8743
|
-
0 < g && (
|
|
8744
|
-
if (!
|
|
8741
|
+
0 < g && (D(e), e.g(f.substring(0, g)));
|
|
8742
|
+
if (!Va(e.toString())) throw Error("The string supplied did not seem to be a phone number");
|
|
8745
8743
|
f = e.toString();
|
|
8746
|
-
if (!(
|
|
8747
|
-
f = new
|
|
8744
|
+
if (!(O(c) || null != f && 0 < f.length && K.test(f))) throw Error("Invalid country calling code");
|
|
8745
|
+
f = new H();
|
|
8748
8746
|
d && t(f, 5, b);
|
|
8749
8747
|
a: {
|
|
8750
8748
|
b = e.toString();
|
|
8751
|
-
g = b.search(
|
|
8752
|
-
if (0 <= g &&
|
|
8753
|
-
h = b.match(
|
|
8749
|
+
g = b.search(Ra);
|
|
8750
|
+
if (0 <= g && Va(b.substring(0, g))) {
|
|
8751
|
+
h = b.match(Ra);
|
|
8754
8752
|
for (var l = h.length, A = 1; A < l; ++A) if (null != h[A] && 0 < h[A].length) {
|
|
8755
|
-
|
|
8753
|
+
D(e);
|
|
8756
8754
|
e.g(b.substring(0, g));
|
|
8757
8755
|
b = h[A];
|
|
8758
8756
|
break a;
|
|
@@ -8761,24 +8759,24 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8761
8759
|
b = "";
|
|
8762
8760
|
}
|
|
8763
8761
|
0 < b.length && t(f, 3, b);
|
|
8764
|
-
g =
|
|
8765
|
-
b = new
|
|
8762
|
+
g = S(a, c);
|
|
8763
|
+
b = new C();
|
|
8766
8764
|
h = 0;
|
|
8767
8765
|
l = e.toString();
|
|
8768
8766
|
try {
|
|
8769
|
-
h =
|
|
8770
|
-
} catch (
|
|
8771
|
-
if ("Invalid country calling code" ==
|
|
8772
|
-
if (l = l.replace(
|
|
8773
|
-
} else throw
|
|
8767
|
+
h = eb(a, l, g, b, d, f);
|
|
8768
|
+
} catch (da) {
|
|
8769
|
+
if ("Invalid country calling code" == da.message && K.test(l)) {
|
|
8770
|
+
if (l = l.replace(K, ""), h = eb(a, l, g, b, d, f), 0 == h) throw da;
|
|
8771
|
+
} else throw da;
|
|
8774
8772
|
}
|
|
8775
|
-
0 != h ? (e =
|
|
8773
|
+
0 != h ? (e = R(h), e != c && (g = Q(a, h, e))) : (Xa(e), b.g(e.toString()), null != c ? (h = w(g, 10), t(
|
|
8776
8774
|
f,
|
|
8777
8775
|
1,
|
|
8778
8776
|
h
|
|
8779
8777
|
)) : d && (delete f.h[6], f.g && delete f.g[6]));
|
|
8780
8778
|
if (2 > b.h.length) throw Error("The string supplied is too short to be a phone number");
|
|
8781
|
-
null != g && (c = new
|
|
8779
|
+
null != g && (c = new C(), e = new C(b.toString()), fb(e, g, c), a = V(a, e.toString(), g, -1), 2 != a && 4 != a && 5 != a && (b = e, d && 0 < c.toString().length && t(f, 7, c.toString())));
|
|
8782
8780
|
d = b.toString();
|
|
8783
8781
|
a = d.length;
|
|
8784
8782
|
if (2 > a) throw Error("The string supplied is too short to be a phone number");
|
|
@@ -8791,70 +8789,70 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8791
8789
|
t(f, 2, parseInt(d, 10));
|
|
8792
8790
|
return f;
|
|
8793
8791
|
}
|
|
8794
|
-
function
|
|
8792
|
+
function M(a, b) {
|
|
8795
8793
|
return (a = "string" == typeof a ? b.match("^(?:" + a + ")$") : b.match(a)) && a[0].length == b.length ? true : false;
|
|
8796
8794
|
}
|
|
8797
8795
|
;
|
|
8798
|
-
function
|
|
8796
|
+
function hb(a) {
|
|
8799
8797
|
this.fa = RegExp("\u2008");
|
|
8800
8798
|
this.ja = "";
|
|
8801
|
-
this.v = new
|
|
8799
|
+
this.v = new C();
|
|
8802
8800
|
this.da = "";
|
|
8803
|
-
this.s = new
|
|
8804
|
-
this.ba = new
|
|
8801
|
+
this.s = new C();
|
|
8802
|
+
this.ba = new C();
|
|
8805
8803
|
this.u = true;
|
|
8806
8804
|
this.ea = this.ca = this.la = false;
|
|
8807
|
-
this.ga =
|
|
8805
|
+
this.ga = J.g();
|
|
8808
8806
|
this.$ = 0;
|
|
8809
|
-
this.h = new
|
|
8807
|
+
this.h = new C();
|
|
8810
8808
|
this.ha = false;
|
|
8811
8809
|
this.o = "";
|
|
8812
|
-
this.g = new
|
|
8810
|
+
this.g = new C();
|
|
8813
8811
|
this.j = [];
|
|
8814
8812
|
this.ka = a;
|
|
8815
|
-
this.l =
|
|
8813
|
+
this.l = ib(this, this.ka);
|
|
8816
8814
|
}
|
|
8817
|
-
var
|
|
8818
|
-
t(
|
|
8819
|
-
var
|
|
8820
|
-
function
|
|
8815
|
+
var jb = new G();
|
|
8816
|
+
t(jb, 11, "NA");
|
|
8817
|
+
var kb = 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]*)*$"), lb = /[- ]/;
|
|
8818
|
+
function ib(a, b) {
|
|
8821
8819
|
var c = a.ga;
|
|
8822
|
-
b =
|
|
8823
|
-
a =
|
|
8824
|
-
return null != a ? a :
|
|
8820
|
+
b = O(b) ? cb(c, b) : 0;
|
|
8821
|
+
a = S(a.ga, R(b));
|
|
8822
|
+
return null != a ? a : jb;
|
|
8825
8823
|
}
|
|
8826
|
-
function
|
|
8824
|
+
function mb(a) {
|
|
8827
8825
|
for (var b = a.j.length, c = 0; c < b; ++c) {
|
|
8828
8826
|
var d = a.j[c], e = w(d, 1);
|
|
8829
8827
|
if (a.da == e) return false;
|
|
8830
8828
|
var f = a;
|
|
8831
8829
|
var g = d, h = w(g, 1);
|
|
8832
|
-
|
|
8830
|
+
D(f.v);
|
|
8833
8831
|
var l = f;
|
|
8834
8832
|
g = w(g, 2);
|
|
8835
8833
|
var A = "999999999999999".match(h)[0];
|
|
8836
8834
|
A.length < l.g.h.length ? l = "" : (l = A.replace(new RegExp(h, "g"), g), l = l.replace(RegExp("9", "g"), "\u2008"));
|
|
8837
8835
|
0 < l.length ? (f.v.g(l), f = true) : f = false;
|
|
8838
|
-
if (f) return a.da = e, a.ha =
|
|
8836
|
+
if (f) return a.da = e, a.ha = lb.test(r(d, 4)), a.$ = 0, true;
|
|
8839
8837
|
}
|
|
8840
8838
|
return a.u = false;
|
|
8841
8839
|
}
|
|
8842
|
-
function
|
|
8840
|
+
function nb(a, b) {
|
|
8843
8841
|
for (var c = [], d = b.length - 3, e = a.j.length, f = 0; f < e; ++f) {
|
|
8844
8842
|
var g = a.j[f];
|
|
8845
8843
|
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]));
|
|
8846
8844
|
}
|
|
8847
8845
|
a.j = c;
|
|
8848
8846
|
}
|
|
8849
|
-
function
|
|
8847
|
+
function ob(a, b) {
|
|
8850
8848
|
a.s.g(b);
|
|
8851
8849
|
var c = b;
|
|
8852
|
-
|
|
8850
|
+
Ja.test(c) || 1 == a.s.h.length && Ia.test(c) ? ("+" == b ? (c = b, a.ba.g(b)) : (c = Fa[b], a.ba.g(c), a.g.g(c)), b = c) : (a.u = false, a.la = true);
|
|
8853
8851
|
if (!a.u) {
|
|
8854
8852
|
if (!a.la) {
|
|
8855
|
-
if (
|
|
8856
|
-
if (
|
|
8857
|
-
} else if (0 < a.o.length && (b = a.g.toString(),
|
|
8853
|
+
if (pb(a)) {
|
|
8854
|
+
if (qb(a)) return rb(a);
|
|
8855
|
+
} else if (0 < a.o.length && (b = a.g.toString(), D(a.g), a.g.g(a.o), a.g.g(b), b = a.h.toString(), c = b.lastIndexOf(a.o), D(a.h), a.h.g(b.substring(0, c))), a.o != sb(a)) return a.h.g(" "), rb(a);
|
|
8858
8856
|
}
|
|
8859
8857
|
return a.s.toString();
|
|
8860
8858
|
}
|
|
@@ -8864,93 +8862,93 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8864
8862
|
case 2:
|
|
8865
8863
|
return a.s.toString();
|
|
8866
8864
|
case 3:
|
|
8867
|
-
if (
|
|
8868
|
-
else return a.o =
|
|
8865
|
+
if (pb(a)) a.ea = true;
|
|
8866
|
+
else return a.o = sb(a), tb(a);
|
|
8869
8867
|
default:
|
|
8870
|
-
if (a.ea) return
|
|
8868
|
+
if (a.ea) return qb(a) && (a.ea = false), a.h.toString() + a.g.toString();
|
|
8871
8869
|
if (0 < a.j.length) {
|
|
8872
|
-
b =
|
|
8873
|
-
c =
|
|
8870
|
+
b = ub(a, b);
|
|
8871
|
+
c = vb(a);
|
|
8874
8872
|
if (0 < c.length) return c;
|
|
8875
|
-
|
|
8876
|
-
return
|
|
8873
|
+
nb(a, a.g.toString());
|
|
8874
|
+
return mb(a) ? wb(a) : a.u ? Y(a, b) : a.s.toString();
|
|
8877
8875
|
}
|
|
8878
|
-
return
|
|
8876
|
+
return tb(a);
|
|
8879
8877
|
}
|
|
8880
8878
|
}
|
|
8881
|
-
function
|
|
8879
|
+
function rb(a) {
|
|
8882
8880
|
a.u = true;
|
|
8883
8881
|
a.ea = false;
|
|
8884
8882
|
a.j = [];
|
|
8885
8883
|
a.$ = 0;
|
|
8886
|
-
|
|
8884
|
+
D(a.v);
|
|
8887
8885
|
a.da = "";
|
|
8888
|
-
return
|
|
8886
|
+
return tb(a);
|
|
8889
8887
|
}
|
|
8890
|
-
function
|
|
8888
|
+
function vb(a) {
|
|
8891
8889
|
for (var b = a.g.toString(), c = a.j.length, d = 0; d < c; ++d) {
|
|
8892
8890
|
var e = a.j[d], f = w(e, 1);
|
|
8893
|
-
if (new RegExp("^(?:" + f + ")$").test(b) && (a.ha =
|
|
8891
|
+
if (new RegExp("^(?:" + f + ")$").test(b) && (a.ha = lb.test(r(e, 4)), e = b.replace(new RegExp(f, "g"), r(e, 2)), e = Y(a, e), N(e, Ga) == a.ba)) return e;
|
|
8894
8892
|
}
|
|
8895
8893
|
return "";
|
|
8896
8894
|
}
|
|
8897
|
-
function
|
|
8895
|
+
function Y(a, b) {
|
|
8898
8896
|
var c = a.h.h.length;
|
|
8899
8897
|
return a.ha && 0 < c && " " != a.h.toString().charAt(c - 1) ? a.h + " " + b : a.h + b;
|
|
8900
8898
|
}
|
|
8901
|
-
function
|
|
8899
|
+
function tb(a) {
|
|
8902
8900
|
var b = a.g.toString();
|
|
8903
8901
|
if (3 <= b.length) {
|
|
8904
8902
|
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) {
|
|
8905
8903
|
var f = c[e];
|
|
8906
|
-
0 < a.o.length &&
|
|
8904
|
+
0 < a.o.length && Za(w(f, 4)) && !r(f, 6) && !q(f, 5) || (0 != a.o.length || a.ca || Za(w(f, 4)) || r(f, 6)) && kb.test(w(f, 2)) && a.j.push(f);
|
|
8907
8905
|
}
|
|
8908
|
-
|
|
8909
|
-
b =
|
|
8910
|
-
return 0 < b.length ? b :
|
|
8906
|
+
nb(a, b);
|
|
8907
|
+
b = vb(a);
|
|
8908
|
+
return 0 < b.length ? b : mb(a) ? wb(a) : a.s.toString();
|
|
8911
8909
|
}
|
|
8912
|
-
return
|
|
8910
|
+
return Y(a, b);
|
|
8913
8911
|
}
|
|
8914
|
-
function
|
|
8912
|
+
function wb(a) {
|
|
8915
8913
|
var b = a.g.toString(), c = b.length;
|
|
8916
8914
|
if (0 < c) {
|
|
8917
|
-
for (var d = "", e = 0; e < c; e++) d =
|
|
8918
|
-
return a.u ?
|
|
8915
|
+
for (var d = "", e = 0; e < c; e++) d = ub(a, b.charAt(e));
|
|
8916
|
+
return a.u ? Y(a, d) : a.s.toString();
|
|
8919
8917
|
}
|
|
8920
8918
|
return a.h.toString();
|
|
8921
8919
|
}
|
|
8922
|
-
function
|
|
8920
|
+
function sb(a) {
|
|
8923
8921
|
var b = a.g.toString(), c = 0;
|
|
8924
8922
|
if (1 != r(a.l, 10)) var d = false;
|
|
8925
8923
|
else d = a.g.toString(), d = "1" == d.charAt(0) && "0" != d.charAt(1) && "1" != d.charAt(1);
|
|
8926
8924
|
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))));
|
|
8927
|
-
|
|
8925
|
+
D(a.g);
|
|
8928
8926
|
a.g.g(b.substring(c));
|
|
8929
8927
|
return b.substring(0, c);
|
|
8930
8928
|
}
|
|
8931
|
-
function
|
|
8929
|
+
function pb(a) {
|
|
8932
8930
|
var b = a.ba.toString(), c = new RegExp("^(?:\\+|" + r(a.l, 11) + ")");
|
|
8933
8931
|
c = b.match(c);
|
|
8934
|
-
return null != c && null != c[0] && 0 < c[0].length ? (a.ca = true, c = c[0].length,
|
|
8932
|
+
return null != c && null != c[0] && 0 < c[0].length ? (a.ca = true, c = c[0].length, D(a.g), a.g.g(b.substring(c)), D(a.h), a.h.g(b.substring(0, c)), "+" != b.charAt(0) && a.h.g(" "), true) : false;
|
|
8935
8933
|
}
|
|
8936
|
-
function
|
|
8934
|
+
function qb(a) {
|
|
8937
8935
|
if (0 == a.g.h.length) return false;
|
|
8938
|
-
var b = new
|
|
8936
|
+
var b = new C(), c = db(a.g, b);
|
|
8939
8937
|
if (0 == c) return false;
|
|
8940
|
-
|
|
8938
|
+
D(a.g);
|
|
8941
8939
|
a.g.g(b.toString());
|
|
8942
|
-
b =
|
|
8943
|
-
"001" == b ? a.l =
|
|
8940
|
+
b = R(c);
|
|
8941
|
+
"001" == b ? a.l = S(a.ga, "" + c) : b != a.ka && (a.l = ib(a, b));
|
|
8944
8942
|
a.h.g("" + c).g(" ");
|
|
8945
8943
|
a.o = "";
|
|
8946
8944
|
return true;
|
|
8947
8945
|
}
|
|
8948
|
-
function
|
|
8946
|
+
function ub(a, b) {
|
|
8949
8947
|
var c = a.v.toString();
|
|
8950
8948
|
if (0 <= c.substring(a.$).search(a.fa)) {
|
|
8951
8949
|
var d = c.search(a.fa);
|
|
8952
8950
|
b = c.replace(a.fa, b);
|
|
8953
|
-
|
|
8951
|
+
D(a.v);
|
|
8954
8952
|
a.v.g(b);
|
|
8955
8953
|
a.$ = d;
|
|
8956
8954
|
return b.substring(0, a.$ + 1);
|
|
@@ -8960,13 +8958,13 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8960
8958
|
return a.s.toString();
|
|
8961
8959
|
}
|
|
8962
8960
|
;
|
|
8963
|
-
const
|
|
8961
|
+
const Z = { 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 };
|
|
8964
8962
|
m("intlTelInputUtilsTemp", {});
|
|
8965
8963
|
m("intlTelInputUtilsTemp.formatNumberAsYouType", (a, b) => {
|
|
8966
8964
|
try {
|
|
8967
|
-
const c = a.replace(/[^+0-9]/g, ""), d = new
|
|
8965
|
+
const c = a.replace(/[^+0-9]/g, ""), d = new hb(b);
|
|
8968
8966
|
b = "";
|
|
8969
|
-
for (let e = 0; e < c.length; e++) d.ja =
|
|
8967
|
+
for (let e = 0; e < c.length; e++) d.ja = ob(d, c.charAt(e)), b = d.ja;
|
|
8970
8968
|
return b;
|
|
8971
8969
|
} catch (c) {
|
|
8972
8970
|
return a;
|
|
@@ -8974,8 +8972,8 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8974
8972
|
});
|
|
8975
8973
|
m("intlTelInputUtilsTemp.formatNumber", (a, b, c) => {
|
|
8976
8974
|
try {
|
|
8977
|
-
const e =
|
|
8978
|
-
var d =
|
|
8975
|
+
const e = J.g(), f = X(e, a, b);
|
|
8976
|
+
var d = W(e, f, -1);
|
|
8979
8977
|
return 0 == d || 4 == d ? e.format(f, "undefined" === typeof c ? 0 : c) : a;
|
|
8980
8978
|
} catch (e) {
|
|
8981
8979
|
return a;
|
|
@@ -8983,15 +8981,15 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8983
8981
|
});
|
|
8984
8982
|
m("intlTelInputUtilsTemp.getExampleNumber", (a, b, c, d) => {
|
|
8985
8983
|
try {
|
|
8986
|
-
const l =
|
|
8984
|
+
const l = J.g();
|
|
8987
8985
|
a: {
|
|
8988
8986
|
var e = l;
|
|
8989
|
-
if (
|
|
8990
|
-
var f =
|
|
8987
|
+
if (O(a)) {
|
|
8988
|
+
var f = T(S(e, a), c);
|
|
8991
8989
|
try {
|
|
8992
8990
|
if (q(f, 6)) {
|
|
8993
8991
|
var g = r(f, 6);
|
|
8994
|
-
var h =
|
|
8992
|
+
var h = gb(e, g, a, false);
|
|
8995
8993
|
break a;
|
|
8996
8994
|
}
|
|
8997
8995
|
} catch (A) {
|
|
@@ -9006,19 +9004,19 @@ var intl_tel_input_default = intlTelInput;
|
|
|
9006
9004
|
});
|
|
9007
9005
|
m("intlTelInputUtilsTemp.getExtension", (a, b) => {
|
|
9008
9006
|
try {
|
|
9009
|
-
return r(
|
|
9007
|
+
return r(X(J.g(), a, b), 3);
|
|
9010
9008
|
} catch (c) {
|
|
9011
9009
|
return "";
|
|
9012
9010
|
}
|
|
9013
9011
|
});
|
|
9014
9012
|
m("intlTelInputUtilsTemp.getNumberType", (a, b) => {
|
|
9015
9013
|
try {
|
|
9016
|
-
const g =
|
|
9017
|
-
var c =
|
|
9014
|
+
const g = J.g(), h = X(g, a, b);
|
|
9015
|
+
var c = bb(g, h), d = Q(g, w(h, 1), c);
|
|
9018
9016
|
if (null == d) var e = -1;
|
|
9019
9017
|
else {
|
|
9020
|
-
var f =
|
|
9021
|
-
e =
|
|
9018
|
+
var f = P(h);
|
|
9019
|
+
e = ab(f, d);
|
|
9022
9020
|
}
|
|
9023
9021
|
return e;
|
|
9024
9022
|
} catch (g) {
|
|
@@ -9027,22 +9025,22 @@ var intl_tel_input_default = intlTelInput;
|
|
|
9027
9025
|
});
|
|
9028
9026
|
m("intlTelInputUtilsTemp.getValidationError", (a, b) => {
|
|
9029
9027
|
try {
|
|
9030
|
-
const c =
|
|
9031
|
-
return
|
|
9028
|
+
const c = J.g(), d = X(c, a, b);
|
|
9029
|
+
return W(c, d, -1);
|
|
9032
9030
|
} catch (c) {
|
|
9033
9031
|
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;
|
|
9034
9032
|
}
|
|
9035
9033
|
});
|
|
9036
9034
|
m("intlTelInputUtilsTemp.isValidNumber", (a, b) => {
|
|
9037
9035
|
try {
|
|
9038
|
-
const l =
|
|
9039
|
-
var c =
|
|
9036
|
+
const l = J.g();
|
|
9037
|
+
var c = X(l, a, b), d = bb(l, c);
|
|
9040
9038
|
a = l;
|
|
9041
|
-
var e = w(c, 1), f =
|
|
9042
|
-
if (null == f || "001" != d && e !=
|
|
9039
|
+
var e = w(c, 1), f = Q(a, e, d);
|
|
9040
|
+
if (null == f || "001" != d && e != cb(a, d)) var g = false;
|
|
9043
9041
|
else {
|
|
9044
|
-
var h =
|
|
9045
|
-
g = -1 !=
|
|
9042
|
+
var h = P(c);
|
|
9043
|
+
g = -1 != ab(h, f);
|
|
9046
9044
|
}
|
|
9047
9045
|
return g;
|
|
9048
9046
|
} catch (l) {
|
|
@@ -9051,21 +9049,29 @@ var intl_tel_input_default = intlTelInput;
|
|
|
9051
9049
|
});
|
|
9052
9050
|
m("intlTelInputUtilsTemp.isPossibleNumber", (a, b, c) => {
|
|
9053
9051
|
try {
|
|
9054
|
-
const d =
|
|
9055
|
-
|
|
9052
|
+
const d = J.g(), e = X(d, a, b);
|
|
9053
|
+
if (c) {
|
|
9054
|
+
const f = 0 === W(d, e, Z[c]);
|
|
9055
|
+
if ("FIXED_LINE_OR_MOBILE" === c) {
|
|
9056
|
+
const g = 0 === W(d, e, Z.MOBILE), h = 0 === W(d, e, Z.FIXED_LINE);
|
|
9057
|
+
return g || h || f;
|
|
9058
|
+
}
|
|
9059
|
+
return f;
|
|
9060
|
+
}
|
|
9061
|
+
return 0 === W(d, e, -1);
|
|
9056
9062
|
} catch (d) {
|
|
9057
9063
|
return false;
|
|
9058
9064
|
}
|
|
9059
9065
|
});
|
|
9060
9066
|
m("intlTelInputUtilsTemp.getCoreNumber", (a, b) => {
|
|
9061
9067
|
try {
|
|
9062
|
-
return r(
|
|
9068
|
+
return r(X(J.g(), a, b), 2).toString();
|
|
9063
9069
|
} catch (c) {
|
|
9064
9070
|
return "";
|
|
9065
9071
|
}
|
|
9066
9072
|
});
|
|
9067
9073
|
m("intlTelInputUtilsTemp.numberFormat", { E164: 0, INTERNATIONAL: 1, NATIONAL: 2, RFC3966: 3 });
|
|
9068
|
-
m("intlTelInputUtilsTemp.numberType",
|
|
9074
|
+
m("intlTelInputUtilsTemp.numberType", Z);
|
|
9069
9075
|
m("intlTelInputUtilsTemp.validationError", { IS_POSSIBLE: 0, INVALID_COUNTRY_CODE: 1, TOO_SHORT: 2, TOO_LONG: 3, IS_POSSIBLE_LOCAL_ONLY: 4, INVALID_LENGTH: 5 });
|
|
9070
9076
|
})();
|
|
9071
9077
|
var utils = window.intlTelInputUtilsTemp;
|