@moddi3/ngx-intl-tel-input 16.0.0 → 22.1.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/CHANGELOG.md +32 -0
- package/README.md +120 -103
- package/fesm2022/moddi3-ngx-intl-tel-input.mjs +2399 -1201
- package/fesm2022/moddi3-ngx-intl-tel-input.mjs.map +1 -1
- package/package.json +22 -21
- package/types/moddi3-ngx-intl-tel-input.d.ts +506 -0
- package/types/moddi3-ngx-intl-tel-input.d.ts.map +1 -0
- package/esm2022/lib/data/country-code.mjs +0 -325
- package/esm2022/lib/directives/native-element-injector.directive.mjs +0 -33
- package/esm2022/lib/enums/country-iso.enum.mjs +0 -247
- package/esm2022/lib/enums/phone-number-format.enum.mjs +0 -6
- package/esm2022/lib/enums/search-country-field.enum.mjs +0 -8
- package/esm2022/lib/interfaces/change-data.mjs +0 -2
- package/esm2022/lib/model/country.model.mjs +0 -2
- package/esm2022/lib/ngx-intl-tel-input.component.mjs +0 -515
- package/esm2022/lib/ngx-intl-tel-input.module.mjs +0 -23
- package/esm2022/lib/ngx-intl-tel-input.validator.mjs +0 -59
- package/esm2022/moddi3-ngx-intl-tel-input.mjs +0 -5
- package/esm2022/public_api.mjs +0 -11
- package/index.d.ts +0 -6
- package/lib/data/country-code.d.ts +0 -7
- package/lib/data/country-code.d.ts.map +0 -1
- package/lib/directives/native-element-injector.directive.d.ts +0 -12
- package/lib/directives/native-element-injector.directive.d.ts.map +0 -1
- package/lib/enums/country-iso.enum.d.ts +0 -246
- package/lib/enums/country-iso.enum.d.ts.map +0 -1
- package/lib/enums/phone-number-format.enum.d.ts +0 -5
- package/lib/enums/phone-number-format.enum.d.ts.map +0 -1
- package/lib/enums/search-country-field.enum.d.ts +0 -7
- package/lib/enums/search-country-field.enum.d.ts.map +0 -1
- package/lib/interfaces/change-data.d.ts +0 -9
- package/lib/interfaces/change-data.d.ts.map +0 -1
- package/lib/model/country.model.d.ts +0 -12
- package/lib/model/country.model.d.ts.map +0 -1
- package/lib/ngx-intl-tel-input.component.d.ts +0 -103
- package/lib/ngx-intl-tel-input.component.d.ts.map +0 -1
- package/lib/ngx-intl-tel-input.module.d.ts +0 -15
- package/lib/ngx-intl-tel-input.module.d.ts.map +0 -1
- package/lib/ngx-intl-tel-input.validator.d.ts +0 -6
- package/lib/ngx-intl-tel-input.validator.d.ts.map +0 -1
- package/moddi3-ngx-intl-tel-input-16.0.0.tgz +0 -0
- package/moddi3-ngx-intl-tel-input.d.ts.map +0 -1
- package/public_api.d.ts +0 -8
- package/public_api.d.ts.map +0 -1
|
@@ -1,1208 +1,2406 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as i0 from
|
|
3
|
-
import {
|
|
4
|
-
import * as
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import * as
|
|
9
|
-
import { BsDropdownModule } from 'ngx-bootstrap/dropdown';
|
|
10
|
-
|
|
1
|
+
import { NgClass, NgTemplateOutlet } from "@angular/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { ChangeDetectionStrategy, Component, Directive, ElementRef, EventEmitter, Injectable, Input, NgModule, Output, ViewChild, afterRenderEffect, forwardRef, inject, signal, viewChild, viewChildren } from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/forms";
|
|
5
|
+
import { FormsModule, NG_VALIDATORS, NG_VALUE_ACCESSOR, NgControl } from "@angular/forms";
|
|
6
|
+
import { Combobox, ComboboxPopup, ComboboxWidget } from "@angular/aria/combobox";
|
|
7
|
+
import { Listbox, Option } from "@angular/aria/listbox";
|
|
8
|
+
import * as lpn from "google-libphonenumber";
|
|
11
9
|
var CountryISO;
|
|
12
|
-
(function
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
10
|
+
(function(CountryISO) {
|
|
11
|
+
CountryISO["Afghanistan"] = "af";
|
|
12
|
+
CountryISO["Albania"] = "al";
|
|
13
|
+
CountryISO["Algeria"] = "dz";
|
|
14
|
+
CountryISO["AmericanSamoa"] = "as";
|
|
15
|
+
CountryISO["Andorra"] = "ad";
|
|
16
|
+
CountryISO["Angola"] = "ao";
|
|
17
|
+
CountryISO["Anguilla"] = "ai";
|
|
18
|
+
CountryISO["AntiguaAndBarbuda"] = "ag";
|
|
19
|
+
CountryISO["Argentina"] = "ar";
|
|
20
|
+
CountryISO["Armenia"] = "am";
|
|
21
|
+
CountryISO["Aruba"] = "aw";
|
|
22
|
+
CountryISO["Australia"] = "au";
|
|
23
|
+
CountryISO["Austria"] = "at";
|
|
24
|
+
CountryISO["Azerbaijan"] = "az";
|
|
25
|
+
CountryISO["Bahamas"] = "bs";
|
|
26
|
+
CountryISO["Bahrain"] = "bh";
|
|
27
|
+
CountryISO["Bangladesh"] = "bd";
|
|
28
|
+
CountryISO["Barbados"] = "bb";
|
|
29
|
+
CountryISO["Belarus"] = "by";
|
|
30
|
+
CountryISO["Belgium"] = "be";
|
|
31
|
+
CountryISO["Belize"] = "bz";
|
|
32
|
+
CountryISO["Benin"] = "bj";
|
|
33
|
+
CountryISO["Bermuda"] = "bm";
|
|
34
|
+
CountryISO["Bhutan"] = "bt";
|
|
35
|
+
CountryISO["Bolivia"] = "bo";
|
|
36
|
+
CountryISO["BosniaAndHerzegovina"] = "ba";
|
|
37
|
+
CountryISO["Botswana"] = "bw";
|
|
38
|
+
CountryISO["Brazil"] = "br";
|
|
39
|
+
CountryISO["BritishIndianOceanTerritory"] = "io";
|
|
40
|
+
CountryISO["BritishVirginIslands"] = "vg";
|
|
41
|
+
CountryISO["Brunei"] = "bn";
|
|
42
|
+
CountryISO["Bulgaria"] = "bg";
|
|
43
|
+
CountryISO["BurkinaFaso"] = "bf";
|
|
44
|
+
CountryISO["Burundi"] = "bi";
|
|
45
|
+
CountryISO["Cambodia"] = "kh";
|
|
46
|
+
CountryISO["Cameroon"] = "cm";
|
|
47
|
+
CountryISO["Canada"] = "ca";
|
|
48
|
+
CountryISO["CapeVerde"] = "cv";
|
|
49
|
+
CountryISO["CaribbeanNetherlands"] = "bq";
|
|
50
|
+
CountryISO["CaymanIslands"] = "ky";
|
|
51
|
+
CountryISO["CentralAfricanRepublic"] = "cf";
|
|
52
|
+
CountryISO["Chad"] = "td";
|
|
53
|
+
CountryISO["Chile"] = "cl";
|
|
54
|
+
CountryISO["China"] = "cn";
|
|
55
|
+
CountryISO["ChristmasIsland"] = "cx";
|
|
56
|
+
CountryISO["Cocos"] = "cc";
|
|
57
|
+
CountryISO["Colombia"] = "co";
|
|
58
|
+
CountryISO["Comoros"] = "km";
|
|
59
|
+
CountryISO["CongoDRCJamhuriYaKidemokrasiaYaKongo"] = "cd";
|
|
60
|
+
CountryISO["CongoRepublicCongoBrazzaville"] = "cg";
|
|
61
|
+
CountryISO["CookIslands"] = "ck";
|
|
62
|
+
CountryISO["CostaRica"] = "cr";
|
|
63
|
+
CountryISO["CôteDIvoire"] = "ci";
|
|
64
|
+
CountryISO["Croatia"] = "hr";
|
|
65
|
+
CountryISO["Cuba"] = "cu";
|
|
66
|
+
CountryISO["Curaçao"] = "cw";
|
|
67
|
+
CountryISO["Cyprus"] = "cy";
|
|
68
|
+
CountryISO["CzechRepublic"] = "cz";
|
|
69
|
+
CountryISO["Denmark"] = "dk";
|
|
70
|
+
CountryISO["Djibouti"] = "dj";
|
|
71
|
+
CountryISO["Dominica"] = "dm";
|
|
72
|
+
CountryISO["DominicanRepublic"] = "do";
|
|
73
|
+
CountryISO["Ecuador"] = "ec";
|
|
74
|
+
CountryISO["Egypt"] = "eg";
|
|
75
|
+
CountryISO["ElSalvador"] = "sv";
|
|
76
|
+
CountryISO["EquatorialGuinea"] = "gq";
|
|
77
|
+
CountryISO["Eritrea"] = "er";
|
|
78
|
+
CountryISO["Estonia"] = "ee";
|
|
79
|
+
CountryISO["Ethiopia"] = "et";
|
|
80
|
+
CountryISO["FalklandIslands"] = "fk";
|
|
81
|
+
CountryISO["FaroeIslands"] = "fo";
|
|
82
|
+
CountryISO["Fiji"] = "fj";
|
|
83
|
+
CountryISO["Finland"] = "fi";
|
|
84
|
+
CountryISO["France"] = "fr";
|
|
85
|
+
CountryISO["FrenchGuiana"] = "gf";
|
|
86
|
+
CountryISO["FrenchPolynesia"] = "pf";
|
|
87
|
+
CountryISO["Gabon"] = "ga";
|
|
88
|
+
CountryISO["Gambia"] = "gm";
|
|
89
|
+
CountryISO["Georgia"] = "ge";
|
|
90
|
+
CountryISO["Germany"] = "de";
|
|
91
|
+
CountryISO["Ghana"] = "gh";
|
|
92
|
+
CountryISO["Gibraltar"] = "gi";
|
|
93
|
+
CountryISO["Greece"] = "gr";
|
|
94
|
+
CountryISO["Greenland"] = "gl";
|
|
95
|
+
CountryISO["Grenada"] = "gd";
|
|
96
|
+
CountryISO["Guadeloupe"] = "gp";
|
|
97
|
+
CountryISO["Guam"] = "gu";
|
|
98
|
+
CountryISO["Guatemala"] = "gt";
|
|
99
|
+
CountryISO["Guernsey"] = "gg";
|
|
100
|
+
CountryISO["Guinea"] = "gn";
|
|
101
|
+
CountryISO["GuineaBissau"] = "gw";
|
|
102
|
+
CountryISO["Guyana"] = "gy";
|
|
103
|
+
CountryISO["Haiti"] = "ht";
|
|
104
|
+
CountryISO["Honduras"] = "hn";
|
|
105
|
+
CountryISO["HongKong"] = "hk";
|
|
106
|
+
CountryISO["Hungary"] = "hu";
|
|
107
|
+
CountryISO["Iceland"] = "is";
|
|
108
|
+
CountryISO["India"] = "in";
|
|
109
|
+
CountryISO["Indonesia"] = "id";
|
|
110
|
+
CountryISO["Iran"] = "ir";
|
|
111
|
+
CountryISO["Iraq"] = "iq";
|
|
112
|
+
CountryISO["Ireland"] = "ie";
|
|
113
|
+
CountryISO["IsleOfMan"] = "im";
|
|
114
|
+
CountryISO["Israel"] = "il";
|
|
115
|
+
CountryISO["Italy"] = "it";
|
|
116
|
+
CountryISO["Jamaica"] = "jm";
|
|
117
|
+
CountryISO["Japan"] = "jp";
|
|
118
|
+
CountryISO["Jersey"] = "je";
|
|
119
|
+
CountryISO["Jordan"] = "jo";
|
|
120
|
+
CountryISO["Kazakhstan"] = "kz";
|
|
121
|
+
CountryISO["Kenya"] = "ke";
|
|
122
|
+
CountryISO["Kiribati"] = "ki";
|
|
123
|
+
CountryISO["Kosovo"] = "xk";
|
|
124
|
+
CountryISO["Kuwait"] = "kw";
|
|
125
|
+
CountryISO["Kyrgyzstan"] = "kg";
|
|
126
|
+
CountryISO["Laos"] = "la";
|
|
127
|
+
CountryISO["Latvia"] = "lv";
|
|
128
|
+
CountryISO["Lebanon"] = "lb";
|
|
129
|
+
CountryISO["Lesotho"] = "ls";
|
|
130
|
+
CountryISO["Liberia"] = "lr";
|
|
131
|
+
CountryISO["Libya"] = "ly";
|
|
132
|
+
CountryISO["Liechtenstein"] = "li";
|
|
133
|
+
CountryISO["Lithuania"] = "lt";
|
|
134
|
+
CountryISO["Luxembourg"] = "lu";
|
|
135
|
+
CountryISO["Macau"] = "mo";
|
|
136
|
+
CountryISO["Macedonia"] = "mk";
|
|
137
|
+
CountryISO["Madagascar"] = "mg";
|
|
138
|
+
CountryISO["Malawi"] = "mw";
|
|
139
|
+
CountryISO["Malaysia"] = "my";
|
|
140
|
+
CountryISO["Maldives"] = "mv";
|
|
141
|
+
CountryISO["Mali"] = "ml";
|
|
142
|
+
CountryISO["Malta"] = "mt";
|
|
143
|
+
CountryISO["MarshallIslands"] = "mh";
|
|
144
|
+
CountryISO["Martinique"] = "mq";
|
|
145
|
+
CountryISO["Mauritania"] = "mr";
|
|
146
|
+
CountryISO["Mauritius"] = "mu";
|
|
147
|
+
CountryISO["Mayotte"] = "yt";
|
|
148
|
+
CountryISO["Mexico"] = "mx";
|
|
149
|
+
CountryISO["Micronesia"] = "fm";
|
|
150
|
+
CountryISO["Moldova"] = "md";
|
|
151
|
+
CountryISO["Monaco"] = "mc";
|
|
152
|
+
CountryISO["Mongolia"] = "mn";
|
|
153
|
+
CountryISO["Montenegro"] = "me";
|
|
154
|
+
CountryISO["Montserrat"] = "ms";
|
|
155
|
+
CountryISO["Morocco"] = "ma";
|
|
156
|
+
CountryISO["Mozambique"] = "mz";
|
|
157
|
+
CountryISO["Myanmar"] = "mm";
|
|
158
|
+
CountryISO["Namibia"] = "na";
|
|
159
|
+
CountryISO["Nauru"] = "nr";
|
|
160
|
+
CountryISO["Nepal"] = "np";
|
|
161
|
+
CountryISO["Netherlands"] = "nl";
|
|
162
|
+
CountryISO["NewCaledonia"] = "nc";
|
|
163
|
+
CountryISO["NewZealand"] = "nz";
|
|
164
|
+
CountryISO["Nicaragua"] = "ni";
|
|
165
|
+
CountryISO["Niger"] = "ne";
|
|
166
|
+
CountryISO["Nigeria"] = "ng";
|
|
167
|
+
CountryISO["Niue"] = "nu";
|
|
168
|
+
CountryISO["NorfolkIsland"] = "nf";
|
|
169
|
+
CountryISO["NorthKorea"] = "kp";
|
|
170
|
+
CountryISO["NorthernMarianaIslands"] = "mp";
|
|
171
|
+
CountryISO["Norway"] = "no";
|
|
172
|
+
CountryISO["Oman"] = "om";
|
|
173
|
+
CountryISO["Pakistan"] = "pk";
|
|
174
|
+
CountryISO["Palau"] = "pw";
|
|
175
|
+
CountryISO["Palestine"] = "ps";
|
|
176
|
+
CountryISO["Panama"] = "pa";
|
|
177
|
+
CountryISO["PapuaNewGuinea"] = "pg";
|
|
178
|
+
CountryISO["Paraguay"] = "py";
|
|
179
|
+
CountryISO["Peru"] = "pe";
|
|
180
|
+
CountryISO["Philippines"] = "ph";
|
|
181
|
+
CountryISO["Poland"] = "pl";
|
|
182
|
+
CountryISO["Portugal"] = "pt";
|
|
183
|
+
CountryISO["PuertoRico"] = "pr";
|
|
184
|
+
CountryISO["Qatar"] = "qa";
|
|
185
|
+
CountryISO["Réunion"] = "re";
|
|
186
|
+
CountryISO["Romania"] = "ro";
|
|
187
|
+
CountryISO["Russia"] = "ru";
|
|
188
|
+
CountryISO["Rwanda"] = "rw";
|
|
189
|
+
CountryISO["SaintBarthélemy"] = "bl";
|
|
190
|
+
CountryISO["SaintHelena"] = "sh";
|
|
191
|
+
CountryISO["SaintKittsAndNevis"] = "kn";
|
|
192
|
+
CountryISO["SaintLucia"] = "lc";
|
|
193
|
+
CountryISO["SaintMartin"] = "mf";
|
|
194
|
+
CountryISO["SaintPierreAndMiquelon"] = "pm";
|
|
195
|
+
CountryISO["SaintVincentAndTheGrenadines"] = "vc";
|
|
196
|
+
CountryISO["Samoa"] = "ws";
|
|
197
|
+
CountryISO["SanMarino"] = "sm";
|
|
198
|
+
CountryISO["SãoToméAndPríncipe"] = "st";
|
|
199
|
+
CountryISO["SaudiArabia"] = "sa";
|
|
200
|
+
CountryISO["Senegal"] = "sn";
|
|
201
|
+
CountryISO["Serbia"] = "rs";
|
|
202
|
+
CountryISO["Seychelles"] = "sc";
|
|
203
|
+
CountryISO["SierraLeone"] = "sl";
|
|
204
|
+
CountryISO["Singapore"] = "sg";
|
|
205
|
+
CountryISO["SintMaarten"] = "sx";
|
|
206
|
+
CountryISO["Slovakia"] = "sk";
|
|
207
|
+
CountryISO["Slovenia"] = "si";
|
|
208
|
+
CountryISO["SolomonIslands"] = "sb";
|
|
209
|
+
CountryISO["Somalia"] = "so";
|
|
210
|
+
CountryISO["SouthAfrica"] = "za";
|
|
211
|
+
CountryISO["SouthKorea"] = "kr";
|
|
212
|
+
CountryISO["SouthSudan"] = "ss";
|
|
213
|
+
CountryISO["Spain"] = "es";
|
|
214
|
+
CountryISO["SriLanka"] = "lk";
|
|
215
|
+
CountryISO["Sudan"] = "sd";
|
|
216
|
+
CountryISO["Suriname"] = "sr";
|
|
217
|
+
CountryISO["SvalbardAndJanMayen"] = "sj";
|
|
218
|
+
CountryISO["Swaziland"] = "sz";
|
|
219
|
+
CountryISO["Sweden"] = "se";
|
|
220
|
+
CountryISO["Switzerland"] = "ch";
|
|
221
|
+
CountryISO["Syria"] = "sy";
|
|
222
|
+
CountryISO["Taiwan"] = "tw";
|
|
223
|
+
CountryISO["Tajikistan"] = "tj";
|
|
224
|
+
CountryISO["Tanzania"] = "tz";
|
|
225
|
+
CountryISO["Thailand"] = "th";
|
|
226
|
+
CountryISO["TimorLeste"] = "tl";
|
|
227
|
+
CountryISO["Togo"] = "tg";
|
|
228
|
+
CountryISO["Tokelau"] = "tk";
|
|
229
|
+
CountryISO["Tonga"] = "to";
|
|
230
|
+
CountryISO["TrinidadAndTobago"] = "tt";
|
|
231
|
+
CountryISO["Tunisia"] = "tn";
|
|
232
|
+
CountryISO["Turkey"] = "tr";
|
|
233
|
+
CountryISO["Turkmenistan"] = "tm";
|
|
234
|
+
CountryISO["TurksAndCaicosIslands"] = "tc";
|
|
235
|
+
CountryISO["Tuvalu"] = "tv";
|
|
236
|
+
CountryISO["USVirginIslands"] = "vi";
|
|
237
|
+
CountryISO["Uganda"] = "ug";
|
|
238
|
+
CountryISO["Ukraine"] = "ua";
|
|
239
|
+
CountryISO["UnitedArabEmirates"] = "ae";
|
|
240
|
+
CountryISO["UnitedKingdom"] = "gb";
|
|
241
|
+
CountryISO["UnitedStates"] = "us";
|
|
242
|
+
CountryISO["Uruguay"] = "uy";
|
|
243
|
+
CountryISO["Uzbekistan"] = "uz";
|
|
244
|
+
CountryISO["Vanuatu"] = "vu";
|
|
245
|
+
CountryISO["VaticanCity"] = "va";
|
|
246
|
+
CountryISO["Venezuela"] = "ve";
|
|
247
|
+
CountryISO["Vietnam"] = "vn";
|
|
248
|
+
CountryISO["WallisAndFutuna"] = "wf";
|
|
249
|
+
CountryISO["WesternSahara"] = "eh";
|
|
250
|
+
CountryISO["Yemen"] = "ye";
|
|
251
|
+
CountryISO["Zambia"] = "zm";
|
|
252
|
+
CountryISO["Zimbabwe"] = "zw";
|
|
253
|
+
CountryISO["ÅlandIslands"] = "ax";
|
|
256
254
|
})(CountryISO || (CountryISO = {}));
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
255
|
+
var CountryCode = class CountryCode {
|
|
256
|
+
constructor() {
|
|
257
|
+
this.allCountries = [
|
|
258
|
+
[
|
|
259
|
+
"Afghanistan (افغانستان)",
|
|
260
|
+
CountryISO.Afghanistan,
|
|
261
|
+
"93"
|
|
262
|
+
],
|
|
263
|
+
[
|
|
264
|
+
"Albania (Shqipëri)",
|
|
265
|
+
CountryISO.Albania,
|
|
266
|
+
"355"
|
|
267
|
+
],
|
|
268
|
+
[
|
|
269
|
+
"Algeria (الجزائر)",
|
|
270
|
+
CountryISO.Algeria,
|
|
271
|
+
"213"
|
|
272
|
+
],
|
|
273
|
+
[
|
|
274
|
+
"American Samoa",
|
|
275
|
+
"as",
|
|
276
|
+
"1",
|
|
277
|
+
1,
|
|
278
|
+
["684"]
|
|
279
|
+
],
|
|
280
|
+
[
|
|
281
|
+
"Andorra",
|
|
282
|
+
CountryISO.Andorra,
|
|
283
|
+
"376"
|
|
284
|
+
],
|
|
285
|
+
[
|
|
286
|
+
"Angola",
|
|
287
|
+
CountryISO.Angola,
|
|
288
|
+
"244"
|
|
289
|
+
],
|
|
290
|
+
[
|
|
291
|
+
"Anguilla",
|
|
292
|
+
"ai",
|
|
293
|
+
"1",
|
|
294
|
+
1,
|
|
295
|
+
["264"]
|
|
296
|
+
],
|
|
297
|
+
[
|
|
298
|
+
"Antigua and Barbuda",
|
|
299
|
+
"ag",
|
|
300
|
+
"1",
|
|
301
|
+
1,
|
|
302
|
+
["268"]
|
|
303
|
+
],
|
|
304
|
+
[
|
|
305
|
+
"Argentina",
|
|
306
|
+
CountryISO.Argentina,
|
|
307
|
+
"54"
|
|
308
|
+
],
|
|
309
|
+
[
|
|
310
|
+
"Armenia (Հայաստան)",
|
|
311
|
+
CountryISO.Armenia,
|
|
312
|
+
"374"
|
|
313
|
+
],
|
|
314
|
+
[
|
|
315
|
+
"Aruba",
|
|
316
|
+
CountryISO.Aruba,
|
|
317
|
+
"297"
|
|
318
|
+
],
|
|
319
|
+
[
|
|
320
|
+
"Australia",
|
|
321
|
+
CountryISO.Australia,
|
|
322
|
+
"61",
|
|
323
|
+
0
|
|
324
|
+
],
|
|
325
|
+
[
|
|
326
|
+
"Austria (Österreich)",
|
|
327
|
+
CountryISO.Austria,
|
|
328
|
+
"43"
|
|
329
|
+
],
|
|
330
|
+
[
|
|
331
|
+
"Azerbaijan (Azərbaycan)",
|
|
332
|
+
CountryISO.Azerbaijan,
|
|
333
|
+
"994"
|
|
334
|
+
],
|
|
335
|
+
[
|
|
336
|
+
"Bahamas",
|
|
337
|
+
"bs",
|
|
338
|
+
"1",
|
|
339
|
+
1,
|
|
340
|
+
["242"]
|
|
341
|
+
],
|
|
342
|
+
[
|
|
343
|
+
"Bahrain (البحرين)",
|
|
344
|
+
CountryISO.Bahrain,
|
|
345
|
+
"973"
|
|
346
|
+
],
|
|
347
|
+
[
|
|
348
|
+
"Bangladesh (বাংলাদেশ)",
|
|
349
|
+
CountryISO.Bangladesh,
|
|
350
|
+
"880"
|
|
351
|
+
],
|
|
352
|
+
[
|
|
353
|
+
"Barbados",
|
|
354
|
+
"bb",
|
|
355
|
+
"1",
|
|
356
|
+
1,
|
|
357
|
+
["246"]
|
|
358
|
+
],
|
|
359
|
+
[
|
|
360
|
+
"Belarus (Беларусь)",
|
|
361
|
+
CountryISO.Belarus,
|
|
362
|
+
"375"
|
|
363
|
+
],
|
|
364
|
+
[
|
|
365
|
+
"Belgium (België)",
|
|
366
|
+
CountryISO.Belgium,
|
|
367
|
+
"32"
|
|
368
|
+
],
|
|
369
|
+
[
|
|
370
|
+
"Belize",
|
|
371
|
+
CountryISO.Belize,
|
|
372
|
+
"501"
|
|
373
|
+
],
|
|
374
|
+
[
|
|
375
|
+
"Benin (Bénin)",
|
|
376
|
+
CountryISO.Benin,
|
|
377
|
+
"229"
|
|
378
|
+
],
|
|
379
|
+
[
|
|
380
|
+
"Bermuda",
|
|
381
|
+
"bm",
|
|
382
|
+
"1",
|
|
383
|
+
1,
|
|
384
|
+
["441"]
|
|
385
|
+
],
|
|
386
|
+
[
|
|
387
|
+
"Bhutan (འབྲུག)",
|
|
388
|
+
CountryISO.Bhutan,
|
|
389
|
+
"975"
|
|
390
|
+
],
|
|
391
|
+
[
|
|
392
|
+
"Bolivia",
|
|
393
|
+
CountryISO.Bolivia,
|
|
394
|
+
"591"
|
|
395
|
+
],
|
|
396
|
+
[
|
|
397
|
+
"Bosnia and Herzegovina (Босна и Херцеговина)",
|
|
398
|
+
CountryISO.BosniaAndHerzegovina,
|
|
399
|
+
"387"
|
|
400
|
+
],
|
|
401
|
+
[
|
|
402
|
+
"Botswana",
|
|
403
|
+
CountryISO.Botswana,
|
|
404
|
+
"267"
|
|
405
|
+
],
|
|
406
|
+
[
|
|
407
|
+
"Brazil (Brasil)",
|
|
408
|
+
CountryISO.Brazil,
|
|
409
|
+
"55"
|
|
410
|
+
],
|
|
411
|
+
[
|
|
412
|
+
"British Indian Ocean Territory",
|
|
413
|
+
CountryISO.BritishIndianOceanTerritory,
|
|
414
|
+
"246"
|
|
415
|
+
],
|
|
416
|
+
[
|
|
417
|
+
"British Virgin Islands",
|
|
418
|
+
"vg",
|
|
419
|
+
"1",
|
|
420
|
+
1,
|
|
421
|
+
["284"]
|
|
422
|
+
],
|
|
423
|
+
[
|
|
424
|
+
"Brunei",
|
|
425
|
+
CountryISO.Brunei,
|
|
426
|
+
"673"
|
|
427
|
+
],
|
|
428
|
+
[
|
|
429
|
+
"Bulgaria (България)",
|
|
430
|
+
CountryISO.Bulgaria,
|
|
431
|
+
"359"
|
|
432
|
+
],
|
|
433
|
+
[
|
|
434
|
+
"Burkina Faso",
|
|
435
|
+
CountryISO.BurkinaFaso,
|
|
436
|
+
"226"
|
|
437
|
+
],
|
|
438
|
+
[
|
|
439
|
+
"Burundi (Uburundi)",
|
|
440
|
+
CountryISO.Burundi,
|
|
441
|
+
"257"
|
|
442
|
+
],
|
|
443
|
+
[
|
|
444
|
+
"Cambodia (កម្ពុជា)",
|
|
445
|
+
CountryISO.Cambodia,
|
|
446
|
+
"855"
|
|
447
|
+
],
|
|
448
|
+
[
|
|
449
|
+
"Cameroon (Cameroun)",
|
|
450
|
+
CountryISO.Cameroon,
|
|
451
|
+
"237"
|
|
452
|
+
],
|
|
453
|
+
[
|
|
454
|
+
"Canada",
|
|
455
|
+
CountryISO.Canada,
|
|
456
|
+
"1",
|
|
457
|
+
1,
|
|
458
|
+
[
|
|
459
|
+
"204",
|
|
460
|
+
"226",
|
|
461
|
+
"236",
|
|
462
|
+
"249",
|
|
463
|
+
"250",
|
|
464
|
+
"289",
|
|
465
|
+
"306",
|
|
466
|
+
"343",
|
|
467
|
+
"365",
|
|
468
|
+
"387",
|
|
469
|
+
"403",
|
|
470
|
+
"416",
|
|
471
|
+
"418",
|
|
472
|
+
"431",
|
|
473
|
+
"437",
|
|
474
|
+
"438",
|
|
475
|
+
"450",
|
|
476
|
+
"506",
|
|
477
|
+
"514",
|
|
478
|
+
"519",
|
|
479
|
+
"548",
|
|
480
|
+
"579",
|
|
481
|
+
"581",
|
|
482
|
+
"587",
|
|
483
|
+
"604",
|
|
484
|
+
"613",
|
|
485
|
+
"639",
|
|
486
|
+
"647",
|
|
487
|
+
"672",
|
|
488
|
+
"705",
|
|
489
|
+
"709",
|
|
490
|
+
"742",
|
|
491
|
+
"778",
|
|
492
|
+
"780",
|
|
493
|
+
"782",
|
|
494
|
+
"807",
|
|
495
|
+
"819",
|
|
496
|
+
"825",
|
|
497
|
+
"867",
|
|
498
|
+
"873",
|
|
499
|
+
"902",
|
|
500
|
+
"905"
|
|
501
|
+
]
|
|
502
|
+
],
|
|
503
|
+
[
|
|
504
|
+
"Cape Verde (Kabu Verdi)",
|
|
505
|
+
CountryISO.CapeVerde,
|
|
506
|
+
"238"
|
|
507
|
+
],
|
|
508
|
+
[
|
|
509
|
+
"Caribbean Netherlands",
|
|
510
|
+
CountryISO.CaribbeanNetherlands,
|
|
511
|
+
"599",
|
|
512
|
+
1
|
|
513
|
+
],
|
|
514
|
+
[
|
|
515
|
+
"Cayman Islands",
|
|
516
|
+
"ky",
|
|
517
|
+
"1",
|
|
518
|
+
1,
|
|
519
|
+
["345"]
|
|
520
|
+
],
|
|
521
|
+
[
|
|
522
|
+
"Central African Republic (République centrafricaine)",
|
|
523
|
+
CountryISO.CentralAfricanRepublic,
|
|
524
|
+
"236"
|
|
525
|
+
],
|
|
526
|
+
[
|
|
527
|
+
"Chad (Tchad)",
|
|
528
|
+
CountryISO.Chad,
|
|
529
|
+
"235"
|
|
530
|
+
],
|
|
531
|
+
[
|
|
532
|
+
"Chile",
|
|
533
|
+
CountryISO.Chile,
|
|
534
|
+
"56"
|
|
535
|
+
],
|
|
536
|
+
[
|
|
537
|
+
"China (中国)",
|
|
538
|
+
CountryISO.China,
|
|
539
|
+
"86"
|
|
540
|
+
],
|
|
541
|
+
[
|
|
542
|
+
"Christmas Island",
|
|
543
|
+
CountryISO.ChristmasIsland,
|
|
544
|
+
"61",
|
|
545
|
+
2
|
|
546
|
+
],
|
|
547
|
+
[
|
|
548
|
+
"Cocos (Keeling) Islands",
|
|
549
|
+
CountryISO.Cocos,
|
|
550
|
+
"61",
|
|
551
|
+
1
|
|
552
|
+
],
|
|
553
|
+
[
|
|
554
|
+
"Colombia",
|
|
555
|
+
CountryISO.Colombia,
|
|
556
|
+
"57"
|
|
557
|
+
],
|
|
558
|
+
[
|
|
559
|
+
"Comoros (جزر القمر)",
|
|
560
|
+
CountryISO.Comoros,
|
|
561
|
+
"269"
|
|
562
|
+
],
|
|
563
|
+
[
|
|
564
|
+
"Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)",
|
|
565
|
+
CountryISO.CongoDRCJamhuriYaKidemokrasiaYaKongo,
|
|
566
|
+
"243"
|
|
567
|
+
],
|
|
568
|
+
[
|
|
569
|
+
"Congo (Republic) (Congo-Brazzaville)",
|
|
570
|
+
CountryISO.CongoRepublicCongoBrazzaville,
|
|
571
|
+
"242"
|
|
572
|
+
],
|
|
573
|
+
[
|
|
574
|
+
"Cook Islands",
|
|
575
|
+
CountryISO.CookIslands,
|
|
576
|
+
"682"
|
|
577
|
+
],
|
|
578
|
+
[
|
|
579
|
+
"Costa Rica",
|
|
580
|
+
CountryISO.CostaRica,
|
|
581
|
+
"506"
|
|
582
|
+
],
|
|
583
|
+
[
|
|
584
|
+
"Côte d’Ivoire",
|
|
585
|
+
CountryISO.CôteDIvoire,
|
|
586
|
+
"225"
|
|
587
|
+
],
|
|
588
|
+
[
|
|
589
|
+
"Croatia (Hrvatska)",
|
|
590
|
+
CountryISO.Croatia,
|
|
591
|
+
"385"
|
|
592
|
+
],
|
|
593
|
+
[
|
|
594
|
+
"Cuba",
|
|
595
|
+
CountryISO.Cuba,
|
|
596
|
+
"53"
|
|
597
|
+
],
|
|
598
|
+
[
|
|
599
|
+
"Curaçao",
|
|
600
|
+
CountryISO.Curaçao,
|
|
601
|
+
"599",
|
|
602
|
+
0
|
|
603
|
+
],
|
|
604
|
+
[
|
|
605
|
+
"Cyprus (Κύπρος)",
|
|
606
|
+
CountryISO.Cyprus,
|
|
607
|
+
"357"
|
|
608
|
+
],
|
|
609
|
+
[
|
|
610
|
+
"Czech Republic (Česká republika)",
|
|
611
|
+
CountryISO.CzechRepublic,
|
|
612
|
+
"420"
|
|
613
|
+
],
|
|
614
|
+
[
|
|
615
|
+
"Denmark (Danmark)",
|
|
616
|
+
CountryISO.Denmark,
|
|
617
|
+
"45"
|
|
618
|
+
],
|
|
619
|
+
[
|
|
620
|
+
"Djibouti",
|
|
621
|
+
CountryISO.Djibouti,
|
|
622
|
+
"253"
|
|
623
|
+
],
|
|
624
|
+
[
|
|
625
|
+
"Dominica",
|
|
626
|
+
CountryISO.Dominica,
|
|
627
|
+
"1767"
|
|
628
|
+
],
|
|
629
|
+
[
|
|
630
|
+
"Dominican Republic (República Dominicana)",
|
|
631
|
+
CountryISO.DominicanRepublic,
|
|
632
|
+
"1",
|
|
633
|
+
2,
|
|
634
|
+
[
|
|
635
|
+
"809",
|
|
636
|
+
"829",
|
|
637
|
+
"849"
|
|
638
|
+
]
|
|
639
|
+
],
|
|
640
|
+
[
|
|
641
|
+
"Ecuador",
|
|
642
|
+
CountryISO.Ecuador,
|
|
643
|
+
"593"
|
|
644
|
+
],
|
|
645
|
+
[
|
|
646
|
+
"Egypt (مصر)",
|
|
647
|
+
CountryISO.Egypt,
|
|
648
|
+
"20"
|
|
649
|
+
],
|
|
650
|
+
[
|
|
651
|
+
"El Salvador",
|
|
652
|
+
CountryISO.ElSalvador,
|
|
653
|
+
"503"
|
|
654
|
+
],
|
|
655
|
+
[
|
|
656
|
+
"Equatorial Guinea (Guinea Ecuatorial)",
|
|
657
|
+
CountryISO.EquatorialGuinea,
|
|
658
|
+
"240"
|
|
659
|
+
],
|
|
660
|
+
[
|
|
661
|
+
"Eritrea",
|
|
662
|
+
CountryISO.Eritrea,
|
|
663
|
+
"291"
|
|
664
|
+
],
|
|
665
|
+
[
|
|
666
|
+
"Estonia (Eesti)",
|
|
667
|
+
CountryISO.Estonia,
|
|
668
|
+
"372"
|
|
669
|
+
],
|
|
670
|
+
[
|
|
671
|
+
"Ethiopia",
|
|
672
|
+
CountryISO.Ethiopia,
|
|
673
|
+
"251"
|
|
674
|
+
],
|
|
675
|
+
[
|
|
676
|
+
"Falkland Islands (Islas Malvinas)",
|
|
677
|
+
CountryISO.FalklandIslands,
|
|
678
|
+
"500"
|
|
679
|
+
],
|
|
680
|
+
[
|
|
681
|
+
"Faroe Islands (Føroyar)",
|
|
682
|
+
CountryISO.FaroeIslands,
|
|
683
|
+
"298"
|
|
684
|
+
],
|
|
685
|
+
[
|
|
686
|
+
"Fiji",
|
|
687
|
+
CountryISO.Fiji,
|
|
688
|
+
"679"
|
|
689
|
+
],
|
|
690
|
+
[
|
|
691
|
+
"Finland (Suomi)",
|
|
692
|
+
CountryISO.Finland,
|
|
693
|
+
"358",
|
|
694
|
+
0
|
|
695
|
+
],
|
|
696
|
+
[
|
|
697
|
+
"France",
|
|
698
|
+
CountryISO.France,
|
|
699
|
+
"33"
|
|
700
|
+
],
|
|
701
|
+
[
|
|
702
|
+
"French Guiana (Guyane française)",
|
|
703
|
+
CountryISO.FrenchGuiana,
|
|
704
|
+
"594"
|
|
705
|
+
],
|
|
706
|
+
[
|
|
707
|
+
"French Polynesia (Polynésie française)",
|
|
708
|
+
CountryISO.FrenchPolynesia,
|
|
709
|
+
"689"
|
|
710
|
+
],
|
|
711
|
+
[
|
|
712
|
+
"Gabon",
|
|
713
|
+
CountryISO.Gabon,
|
|
714
|
+
"241"
|
|
715
|
+
],
|
|
716
|
+
[
|
|
717
|
+
"Gambia",
|
|
718
|
+
CountryISO.Gambia,
|
|
719
|
+
"220"
|
|
720
|
+
],
|
|
721
|
+
[
|
|
722
|
+
"Georgia (საქართველო)",
|
|
723
|
+
CountryISO.Georgia,
|
|
724
|
+
"995"
|
|
725
|
+
],
|
|
726
|
+
[
|
|
727
|
+
"Germany (Deutschland)",
|
|
728
|
+
CountryISO.Germany,
|
|
729
|
+
"49"
|
|
730
|
+
],
|
|
731
|
+
[
|
|
732
|
+
"Ghana (Gaana)",
|
|
733
|
+
CountryISO.Ghana,
|
|
734
|
+
"233"
|
|
735
|
+
],
|
|
736
|
+
[
|
|
737
|
+
"Gibraltar",
|
|
738
|
+
CountryISO.Gibraltar,
|
|
739
|
+
"350"
|
|
740
|
+
],
|
|
741
|
+
[
|
|
742
|
+
"Greece (Ελλάδα)",
|
|
743
|
+
CountryISO.Greece,
|
|
744
|
+
"30"
|
|
745
|
+
],
|
|
746
|
+
[
|
|
747
|
+
"Greenland (Kalaallit Nunaat)",
|
|
748
|
+
CountryISO.Greenland,
|
|
749
|
+
"299"
|
|
750
|
+
],
|
|
751
|
+
[
|
|
752
|
+
"Grenada",
|
|
753
|
+
CountryISO.Grenada,
|
|
754
|
+
"1473"
|
|
755
|
+
],
|
|
756
|
+
[
|
|
757
|
+
"Guadeloupe",
|
|
758
|
+
CountryISO.Guadeloupe,
|
|
759
|
+
"590",
|
|
760
|
+
0
|
|
761
|
+
],
|
|
762
|
+
[
|
|
763
|
+
"Guam",
|
|
764
|
+
"gu",
|
|
765
|
+
"1",
|
|
766
|
+
1,
|
|
767
|
+
["671"]
|
|
768
|
+
],
|
|
769
|
+
[
|
|
770
|
+
"Guatemala",
|
|
771
|
+
CountryISO.Guatemala,
|
|
772
|
+
"502"
|
|
773
|
+
],
|
|
774
|
+
[
|
|
775
|
+
"Guernsey",
|
|
776
|
+
CountryISO.Guernsey,
|
|
777
|
+
"44",
|
|
778
|
+
1,
|
|
779
|
+
[1481]
|
|
780
|
+
],
|
|
781
|
+
[
|
|
782
|
+
"Guinea (Guinée)",
|
|
783
|
+
CountryISO.Guinea,
|
|
784
|
+
"224"
|
|
785
|
+
],
|
|
786
|
+
[
|
|
787
|
+
"Guinea-Bissau (Guiné Bissau)",
|
|
788
|
+
CountryISO.GuineaBissau,
|
|
789
|
+
"245"
|
|
790
|
+
],
|
|
791
|
+
[
|
|
792
|
+
"Guyana",
|
|
793
|
+
CountryISO.Guyana,
|
|
794
|
+
"592"
|
|
795
|
+
],
|
|
796
|
+
[
|
|
797
|
+
"Haiti",
|
|
798
|
+
CountryISO.Haiti,
|
|
799
|
+
"509"
|
|
800
|
+
],
|
|
801
|
+
[
|
|
802
|
+
"Honduras",
|
|
803
|
+
CountryISO.Honduras,
|
|
804
|
+
"504"
|
|
805
|
+
],
|
|
806
|
+
[
|
|
807
|
+
"Hong Kong (香港)",
|
|
808
|
+
CountryISO.HongKong,
|
|
809
|
+
"852"
|
|
810
|
+
],
|
|
811
|
+
[
|
|
812
|
+
"Hungary (Magyarország)",
|
|
813
|
+
CountryISO.Hungary,
|
|
814
|
+
"36"
|
|
815
|
+
],
|
|
816
|
+
[
|
|
817
|
+
"Iceland (Ísland)",
|
|
818
|
+
CountryISO.Iceland,
|
|
819
|
+
"354"
|
|
820
|
+
],
|
|
821
|
+
[
|
|
822
|
+
"India (भारत)",
|
|
823
|
+
CountryISO.India,
|
|
824
|
+
"91"
|
|
825
|
+
],
|
|
826
|
+
[
|
|
827
|
+
"Indonesia",
|
|
828
|
+
CountryISO.Indonesia,
|
|
829
|
+
"62"
|
|
830
|
+
],
|
|
831
|
+
[
|
|
832
|
+
"Iran (ایران)",
|
|
833
|
+
CountryISO.Iran,
|
|
834
|
+
"98"
|
|
835
|
+
],
|
|
836
|
+
[
|
|
837
|
+
"Iraq (العراق)",
|
|
838
|
+
CountryISO.Iraq,
|
|
839
|
+
"964"
|
|
840
|
+
],
|
|
841
|
+
[
|
|
842
|
+
"Ireland",
|
|
843
|
+
CountryISO.Ireland,
|
|
844
|
+
"353"
|
|
845
|
+
],
|
|
846
|
+
[
|
|
847
|
+
"Isle of Man",
|
|
848
|
+
CountryISO.IsleOfMan,
|
|
849
|
+
"44",
|
|
850
|
+
2,
|
|
851
|
+
[1624]
|
|
852
|
+
],
|
|
853
|
+
[
|
|
854
|
+
"Israel (ישראל)",
|
|
855
|
+
CountryISO.Israel,
|
|
856
|
+
"972"
|
|
857
|
+
],
|
|
858
|
+
[
|
|
859
|
+
"Italy (Italia)",
|
|
860
|
+
CountryISO.Italy,
|
|
861
|
+
"39",
|
|
862
|
+
0
|
|
863
|
+
],
|
|
864
|
+
[
|
|
865
|
+
"Jamaica",
|
|
866
|
+
"jm",
|
|
867
|
+
"1",
|
|
868
|
+
1,
|
|
869
|
+
["876"]
|
|
870
|
+
],
|
|
871
|
+
[
|
|
872
|
+
"Japan (日本)",
|
|
873
|
+
CountryISO.Japan,
|
|
874
|
+
"81"
|
|
875
|
+
],
|
|
876
|
+
[
|
|
877
|
+
"Jersey",
|
|
878
|
+
CountryISO.Jersey,
|
|
879
|
+
"44",
|
|
880
|
+
3,
|
|
881
|
+
[1534]
|
|
882
|
+
],
|
|
883
|
+
[
|
|
884
|
+
"Jordan (الأردن)",
|
|
885
|
+
CountryISO.Jordan,
|
|
886
|
+
"962"
|
|
887
|
+
],
|
|
888
|
+
[
|
|
889
|
+
"Kazakhstan (Казахстан)",
|
|
890
|
+
CountryISO.Kazakhstan,
|
|
891
|
+
"7",
|
|
892
|
+
1
|
|
893
|
+
],
|
|
894
|
+
[
|
|
895
|
+
"Kenya",
|
|
896
|
+
CountryISO.Kenya,
|
|
897
|
+
"254"
|
|
898
|
+
],
|
|
899
|
+
[
|
|
900
|
+
"Kiribati",
|
|
901
|
+
CountryISO.Kiribati,
|
|
902
|
+
"686"
|
|
903
|
+
],
|
|
904
|
+
[
|
|
905
|
+
"Kosovo",
|
|
906
|
+
CountryISO.Kosovo,
|
|
907
|
+
"383"
|
|
908
|
+
],
|
|
909
|
+
[
|
|
910
|
+
"Kuwait (الكويت)",
|
|
911
|
+
CountryISO.Kuwait,
|
|
912
|
+
"965"
|
|
913
|
+
],
|
|
914
|
+
[
|
|
915
|
+
"Kyrgyzstan (Кыргызстан)",
|
|
916
|
+
CountryISO.Kyrgyzstan,
|
|
917
|
+
"996"
|
|
918
|
+
],
|
|
919
|
+
[
|
|
920
|
+
"Laos (ລາວ)",
|
|
921
|
+
CountryISO.Laos,
|
|
922
|
+
"856"
|
|
923
|
+
],
|
|
924
|
+
[
|
|
925
|
+
"Latvia (Latvija)",
|
|
926
|
+
CountryISO.Latvia,
|
|
927
|
+
"371"
|
|
928
|
+
],
|
|
929
|
+
[
|
|
930
|
+
"Lebanon (لبنان)",
|
|
931
|
+
CountryISO.Lebanon,
|
|
932
|
+
"961"
|
|
933
|
+
],
|
|
934
|
+
[
|
|
935
|
+
"Lesotho",
|
|
936
|
+
CountryISO.Lesotho,
|
|
937
|
+
"266"
|
|
938
|
+
],
|
|
939
|
+
[
|
|
940
|
+
"Liberia",
|
|
941
|
+
CountryISO.Liberia,
|
|
942
|
+
"231"
|
|
943
|
+
],
|
|
944
|
+
[
|
|
945
|
+
"Libya (ليبيا)",
|
|
946
|
+
CountryISO.Libya,
|
|
947
|
+
"218"
|
|
948
|
+
],
|
|
949
|
+
[
|
|
950
|
+
"Liechtenstein",
|
|
951
|
+
CountryISO.Liechtenstein,
|
|
952
|
+
"423"
|
|
953
|
+
],
|
|
954
|
+
[
|
|
955
|
+
"Lithuania (Lietuva)",
|
|
956
|
+
CountryISO.Lithuania,
|
|
957
|
+
"370"
|
|
958
|
+
],
|
|
959
|
+
[
|
|
960
|
+
"Luxembourg",
|
|
961
|
+
CountryISO.Luxembourg,
|
|
962
|
+
"352"
|
|
963
|
+
],
|
|
964
|
+
[
|
|
965
|
+
"Macau (澳門)",
|
|
966
|
+
CountryISO.Macau,
|
|
967
|
+
"853"
|
|
968
|
+
],
|
|
969
|
+
[
|
|
970
|
+
"Macedonia (FYROM) (Македонија)",
|
|
971
|
+
CountryISO.Macedonia,
|
|
972
|
+
"389"
|
|
973
|
+
],
|
|
974
|
+
[
|
|
975
|
+
"Madagascar (Madagasikara)",
|
|
976
|
+
CountryISO.Madagascar,
|
|
977
|
+
"261"
|
|
978
|
+
],
|
|
979
|
+
[
|
|
980
|
+
"Malawi",
|
|
981
|
+
CountryISO.Malawi,
|
|
982
|
+
"265"
|
|
983
|
+
],
|
|
984
|
+
[
|
|
985
|
+
"Malaysia",
|
|
986
|
+
CountryISO.Malaysia,
|
|
987
|
+
"60"
|
|
988
|
+
],
|
|
989
|
+
[
|
|
990
|
+
"Maldives",
|
|
991
|
+
CountryISO.Maldives,
|
|
992
|
+
"960"
|
|
993
|
+
],
|
|
994
|
+
[
|
|
995
|
+
"Mali",
|
|
996
|
+
CountryISO.Mali,
|
|
997
|
+
"223"
|
|
998
|
+
],
|
|
999
|
+
[
|
|
1000
|
+
"Malta",
|
|
1001
|
+
CountryISO.Malta,
|
|
1002
|
+
"356"
|
|
1003
|
+
],
|
|
1004
|
+
[
|
|
1005
|
+
"Marshall Islands",
|
|
1006
|
+
CountryISO.MarshallIslands,
|
|
1007
|
+
"692"
|
|
1008
|
+
],
|
|
1009
|
+
[
|
|
1010
|
+
"Martinique",
|
|
1011
|
+
CountryISO.Martinique,
|
|
1012
|
+
"596"
|
|
1013
|
+
],
|
|
1014
|
+
[
|
|
1015
|
+
"Mauritania (موريتانيا)",
|
|
1016
|
+
CountryISO.Mauritania,
|
|
1017
|
+
"222"
|
|
1018
|
+
],
|
|
1019
|
+
[
|
|
1020
|
+
"Mauritius (Moris)",
|
|
1021
|
+
CountryISO.Mauritius,
|
|
1022
|
+
"230"
|
|
1023
|
+
],
|
|
1024
|
+
[
|
|
1025
|
+
"Mayotte",
|
|
1026
|
+
CountryISO.Mayotte,
|
|
1027
|
+
"262",
|
|
1028
|
+
1
|
|
1029
|
+
],
|
|
1030
|
+
[
|
|
1031
|
+
"Mexico (México)",
|
|
1032
|
+
CountryISO.Mexico,
|
|
1033
|
+
"52"
|
|
1034
|
+
],
|
|
1035
|
+
[
|
|
1036
|
+
"Micronesia",
|
|
1037
|
+
CountryISO.Micronesia,
|
|
1038
|
+
"691"
|
|
1039
|
+
],
|
|
1040
|
+
[
|
|
1041
|
+
"Moldova (Republica Moldova)",
|
|
1042
|
+
CountryISO.Moldova,
|
|
1043
|
+
"373"
|
|
1044
|
+
],
|
|
1045
|
+
[
|
|
1046
|
+
"Monaco",
|
|
1047
|
+
CountryISO.Monaco,
|
|
1048
|
+
"377"
|
|
1049
|
+
],
|
|
1050
|
+
[
|
|
1051
|
+
"Mongolia (Монгол)",
|
|
1052
|
+
CountryISO.Mongolia,
|
|
1053
|
+
"976"
|
|
1054
|
+
],
|
|
1055
|
+
[
|
|
1056
|
+
"Montenegro (Crna Gora)",
|
|
1057
|
+
CountryISO.Montenegro,
|
|
1058
|
+
"382"
|
|
1059
|
+
],
|
|
1060
|
+
[
|
|
1061
|
+
"Montserrat",
|
|
1062
|
+
"ms",
|
|
1063
|
+
"1",
|
|
1064
|
+
1,
|
|
1065
|
+
["664"]
|
|
1066
|
+
],
|
|
1067
|
+
[
|
|
1068
|
+
"Morocco (المغرب)",
|
|
1069
|
+
CountryISO.Morocco,
|
|
1070
|
+
"212",
|
|
1071
|
+
0
|
|
1072
|
+
],
|
|
1073
|
+
[
|
|
1074
|
+
"Mozambique (Moçambique)",
|
|
1075
|
+
CountryISO.Mozambique,
|
|
1076
|
+
"258"
|
|
1077
|
+
],
|
|
1078
|
+
[
|
|
1079
|
+
"Myanmar (Burma) (မြန်မာ)",
|
|
1080
|
+
CountryISO.Myanmar,
|
|
1081
|
+
"95"
|
|
1082
|
+
],
|
|
1083
|
+
[
|
|
1084
|
+
"Namibia (Namibië)",
|
|
1085
|
+
CountryISO.Namibia,
|
|
1086
|
+
"264"
|
|
1087
|
+
],
|
|
1088
|
+
[
|
|
1089
|
+
"Nauru",
|
|
1090
|
+
CountryISO.Nauru,
|
|
1091
|
+
"674"
|
|
1092
|
+
],
|
|
1093
|
+
[
|
|
1094
|
+
"Nepal (नेपाल)",
|
|
1095
|
+
CountryISO.Nepal,
|
|
1096
|
+
"977"
|
|
1097
|
+
],
|
|
1098
|
+
[
|
|
1099
|
+
"Netherlands (Nederland)",
|
|
1100
|
+
CountryISO.Netherlands,
|
|
1101
|
+
"31"
|
|
1102
|
+
],
|
|
1103
|
+
[
|
|
1104
|
+
"New Caledonia (Nouvelle-Calédonie)",
|
|
1105
|
+
CountryISO.NewCaledonia,
|
|
1106
|
+
"687"
|
|
1107
|
+
],
|
|
1108
|
+
[
|
|
1109
|
+
"New Zealand",
|
|
1110
|
+
CountryISO.NewZealand,
|
|
1111
|
+
"64"
|
|
1112
|
+
],
|
|
1113
|
+
[
|
|
1114
|
+
"Nicaragua",
|
|
1115
|
+
CountryISO.Nicaragua,
|
|
1116
|
+
"505"
|
|
1117
|
+
],
|
|
1118
|
+
[
|
|
1119
|
+
"Niger (Nijar)",
|
|
1120
|
+
CountryISO.Niger,
|
|
1121
|
+
"227"
|
|
1122
|
+
],
|
|
1123
|
+
[
|
|
1124
|
+
"Nigeria",
|
|
1125
|
+
CountryISO.Nigeria,
|
|
1126
|
+
"234"
|
|
1127
|
+
],
|
|
1128
|
+
[
|
|
1129
|
+
"Niue",
|
|
1130
|
+
CountryISO.Niue,
|
|
1131
|
+
"683"
|
|
1132
|
+
],
|
|
1133
|
+
[
|
|
1134
|
+
"Norfolk Island",
|
|
1135
|
+
CountryISO.NorfolkIsland,
|
|
1136
|
+
"672"
|
|
1137
|
+
],
|
|
1138
|
+
[
|
|
1139
|
+
"North Korea (조선 민주주의 인민 공화국)",
|
|
1140
|
+
CountryISO.NorthKorea,
|
|
1141
|
+
"850"
|
|
1142
|
+
],
|
|
1143
|
+
[
|
|
1144
|
+
"Northern Mariana Islands",
|
|
1145
|
+
CountryISO.NorthernMarianaIslands,
|
|
1146
|
+
"1670"
|
|
1147
|
+
],
|
|
1148
|
+
[
|
|
1149
|
+
"Norway (Norge)",
|
|
1150
|
+
CountryISO.Norway,
|
|
1151
|
+
"47",
|
|
1152
|
+
0
|
|
1153
|
+
],
|
|
1154
|
+
[
|
|
1155
|
+
"Oman (عُمان)",
|
|
1156
|
+
CountryISO.Oman,
|
|
1157
|
+
"968"
|
|
1158
|
+
],
|
|
1159
|
+
[
|
|
1160
|
+
"Pakistan (پاکستان)",
|
|
1161
|
+
CountryISO.Pakistan,
|
|
1162
|
+
"92"
|
|
1163
|
+
],
|
|
1164
|
+
[
|
|
1165
|
+
"Palau",
|
|
1166
|
+
CountryISO.Palau,
|
|
1167
|
+
"680"
|
|
1168
|
+
],
|
|
1169
|
+
[
|
|
1170
|
+
"Palestine (فلسطين)",
|
|
1171
|
+
CountryISO.Palestine,
|
|
1172
|
+
"970"
|
|
1173
|
+
],
|
|
1174
|
+
[
|
|
1175
|
+
"Panama (Panamá)",
|
|
1176
|
+
CountryISO.Panama,
|
|
1177
|
+
"507"
|
|
1178
|
+
],
|
|
1179
|
+
[
|
|
1180
|
+
"Papua New Guinea",
|
|
1181
|
+
CountryISO.PapuaNewGuinea,
|
|
1182
|
+
"675"
|
|
1183
|
+
],
|
|
1184
|
+
[
|
|
1185
|
+
"Paraguay",
|
|
1186
|
+
CountryISO.Paraguay,
|
|
1187
|
+
"595"
|
|
1188
|
+
],
|
|
1189
|
+
[
|
|
1190
|
+
"Peru (Perú)",
|
|
1191
|
+
CountryISO.Peru,
|
|
1192
|
+
"51"
|
|
1193
|
+
],
|
|
1194
|
+
[
|
|
1195
|
+
"Philippines",
|
|
1196
|
+
CountryISO.Philippines,
|
|
1197
|
+
"63"
|
|
1198
|
+
],
|
|
1199
|
+
[
|
|
1200
|
+
"Poland (Polska)",
|
|
1201
|
+
CountryISO.Poland,
|
|
1202
|
+
"48"
|
|
1203
|
+
],
|
|
1204
|
+
[
|
|
1205
|
+
"Portugal",
|
|
1206
|
+
CountryISO.Portugal,
|
|
1207
|
+
"351"
|
|
1208
|
+
],
|
|
1209
|
+
[
|
|
1210
|
+
"Puerto Rico",
|
|
1211
|
+
CountryISO.PuertoRico,
|
|
1212
|
+
"1",
|
|
1213
|
+
3,
|
|
1214
|
+
["787", "939"]
|
|
1215
|
+
],
|
|
1216
|
+
[
|
|
1217
|
+
"Qatar (قطر)",
|
|
1218
|
+
CountryISO.Qatar,
|
|
1219
|
+
"974"
|
|
1220
|
+
],
|
|
1221
|
+
[
|
|
1222
|
+
"Réunion (La Réunion)",
|
|
1223
|
+
CountryISO.Réunion,
|
|
1224
|
+
"262",
|
|
1225
|
+
0
|
|
1226
|
+
],
|
|
1227
|
+
[
|
|
1228
|
+
"Romania (România)",
|
|
1229
|
+
CountryISO.Romania,
|
|
1230
|
+
"40"
|
|
1231
|
+
],
|
|
1232
|
+
[
|
|
1233
|
+
"Russia (Россия)",
|
|
1234
|
+
CountryISO.Russia,
|
|
1235
|
+
"7",
|
|
1236
|
+
0
|
|
1237
|
+
],
|
|
1238
|
+
[
|
|
1239
|
+
"Rwanda",
|
|
1240
|
+
CountryISO.Rwanda,
|
|
1241
|
+
"250"
|
|
1242
|
+
],
|
|
1243
|
+
[
|
|
1244
|
+
"Saint Barthélemy (Saint-Barthélemy)",
|
|
1245
|
+
CountryISO.SaintBarthélemy,
|
|
1246
|
+
"590",
|
|
1247
|
+
1
|
|
1248
|
+
],
|
|
1249
|
+
[
|
|
1250
|
+
"Saint Helena",
|
|
1251
|
+
CountryISO.SaintHelena,
|
|
1252
|
+
"290"
|
|
1253
|
+
],
|
|
1254
|
+
[
|
|
1255
|
+
"Saint Kitts and Nevis",
|
|
1256
|
+
CountryISO.SaintKittsAndNevis,
|
|
1257
|
+
"1869"
|
|
1258
|
+
],
|
|
1259
|
+
[
|
|
1260
|
+
"Saint Lucia",
|
|
1261
|
+
"lc",
|
|
1262
|
+
"1",
|
|
1263
|
+
1,
|
|
1264
|
+
["758"]
|
|
1265
|
+
],
|
|
1266
|
+
[
|
|
1267
|
+
"Saint Martin (Saint-Martin (partie française))",
|
|
1268
|
+
CountryISO.SaintMartin,
|
|
1269
|
+
"590",
|
|
1270
|
+
2
|
|
1271
|
+
],
|
|
1272
|
+
[
|
|
1273
|
+
"Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)",
|
|
1274
|
+
CountryISO.SaintPierreAndMiquelon,
|
|
1275
|
+
"508"
|
|
1276
|
+
],
|
|
1277
|
+
[
|
|
1278
|
+
"Saint Vincent and the Grenadines",
|
|
1279
|
+
"vc",
|
|
1280
|
+
"1",
|
|
1281
|
+
1,
|
|
1282
|
+
["784"]
|
|
1283
|
+
],
|
|
1284
|
+
[
|
|
1285
|
+
"Samoa",
|
|
1286
|
+
CountryISO.Samoa,
|
|
1287
|
+
"685"
|
|
1288
|
+
],
|
|
1289
|
+
[
|
|
1290
|
+
"San Marino",
|
|
1291
|
+
CountryISO.SanMarino,
|
|
1292
|
+
"378"
|
|
1293
|
+
],
|
|
1294
|
+
[
|
|
1295
|
+
"São Tomé and Príncipe (São Tomé e Príncipe)",
|
|
1296
|
+
CountryISO.SãoToméAndPríncipe,
|
|
1297
|
+
"239"
|
|
1298
|
+
],
|
|
1299
|
+
[
|
|
1300
|
+
"Saudi Arabia (المملكة العربية السعودية)",
|
|
1301
|
+
CountryISO.SaudiArabia,
|
|
1302
|
+
"966"
|
|
1303
|
+
],
|
|
1304
|
+
[
|
|
1305
|
+
"Senegal (Sénégal)",
|
|
1306
|
+
CountryISO.Senegal,
|
|
1307
|
+
"221"
|
|
1308
|
+
],
|
|
1309
|
+
[
|
|
1310
|
+
"Serbia (Србија)",
|
|
1311
|
+
CountryISO.Serbia,
|
|
1312
|
+
"381"
|
|
1313
|
+
],
|
|
1314
|
+
[
|
|
1315
|
+
"Seychelles",
|
|
1316
|
+
CountryISO.Seychelles,
|
|
1317
|
+
"248"
|
|
1318
|
+
],
|
|
1319
|
+
[
|
|
1320
|
+
"Sierra Leone",
|
|
1321
|
+
CountryISO.SierraLeone,
|
|
1322
|
+
"232"
|
|
1323
|
+
],
|
|
1324
|
+
[
|
|
1325
|
+
"Singapore",
|
|
1326
|
+
CountryISO.Singapore,
|
|
1327
|
+
"65"
|
|
1328
|
+
],
|
|
1329
|
+
[
|
|
1330
|
+
"Sint Maarten",
|
|
1331
|
+
"sx",
|
|
1332
|
+
"1",
|
|
1333
|
+
1,
|
|
1334
|
+
["721"]
|
|
1335
|
+
],
|
|
1336
|
+
[
|
|
1337
|
+
"Slovakia (Slovensko)",
|
|
1338
|
+
CountryISO.Slovakia,
|
|
1339
|
+
"421"
|
|
1340
|
+
],
|
|
1341
|
+
[
|
|
1342
|
+
"Slovenia (Slovenija)",
|
|
1343
|
+
CountryISO.Slovenia,
|
|
1344
|
+
"386"
|
|
1345
|
+
],
|
|
1346
|
+
[
|
|
1347
|
+
"Solomon Islands",
|
|
1348
|
+
CountryISO.SolomonIslands,
|
|
1349
|
+
"677"
|
|
1350
|
+
],
|
|
1351
|
+
[
|
|
1352
|
+
"Somalia (Soomaaliya)",
|
|
1353
|
+
CountryISO.Somalia,
|
|
1354
|
+
"252"
|
|
1355
|
+
],
|
|
1356
|
+
[
|
|
1357
|
+
"South Africa",
|
|
1358
|
+
CountryISO.SouthAfrica,
|
|
1359
|
+
"27"
|
|
1360
|
+
],
|
|
1361
|
+
[
|
|
1362
|
+
"South Korea (대한민국)",
|
|
1363
|
+
CountryISO.SouthKorea,
|
|
1364
|
+
"82"
|
|
1365
|
+
],
|
|
1366
|
+
[
|
|
1367
|
+
"South Sudan (جنوب السودان)",
|
|
1368
|
+
CountryISO.SouthSudan,
|
|
1369
|
+
"211"
|
|
1370
|
+
],
|
|
1371
|
+
[
|
|
1372
|
+
"Spain (España)",
|
|
1373
|
+
CountryISO.Spain,
|
|
1374
|
+
"34"
|
|
1375
|
+
],
|
|
1376
|
+
[
|
|
1377
|
+
"Sri Lanka (ශ්රී ලංකාව)",
|
|
1378
|
+
CountryISO.SriLanka,
|
|
1379
|
+
"94"
|
|
1380
|
+
],
|
|
1381
|
+
[
|
|
1382
|
+
"Sudan (السودان)",
|
|
1383
|
+
CountryISO.Sudan,
|
|
1384
|
+
"249"
|
|
1385
|
+
],
|
|
1386
|
+
[
|
|
1387
|
+
"Suriname",
|
|
1388
|
+
CountryISO.Suriname,
|
|
1389
|
+
"597"
|
|
1390
|
+
],
|
|
1391
|
+
[
|
|
1392
|
+
"Svalbard and Jan Mayen",
|
|
1393
|
+
CountryISO.SvalbardAndJanMayen,
|
|
1394
|
+
"47",
|
|
1395
|
+
1
|
|
1396
|
+
],
|
|
1397
|
+
[
|
|
1398
|
+
"Swaziland",
|
|
1399
|
+
CountryISO.Swaziland,
|
|
1400
|
+
"268"
|
|
1401
|
+
],
|
|
1402
|
+
[
|
|
1403
|
+
"Sweden (Sverige)",
|
|
1404
|
+
CountryISO.Sweden,
|
|
1405
|
+
"46"
|
|
1406
|
+
],
|
|
1407
|
+
[
|
|
1408
|
+
"Switzerland (Schweiz)",
|
|
1409
|
+
CountryISO.Switzerland,
|
|
1410
|
+
"41"
|
|
1411
|
+
],
|
|
1412
|
+
[
|
|
1413
|
+
"Syria (سوريا)",
|
|
1414
|
+
CountryISO.Syria,
|
|
1415
|
+
"963"
|
|
1416
|
+
],
|
|
1417
|
+
[
|
|
1418
|
+
"Taiwan (台灣)",
|
|
1419
|
+
CountryISO.Taiwan,
|
|
1420
|
+
"886"
|
|
1421
|
+
],
|
|
1422
|
+
[
|
|
1423
|
+
"Tajikistan",
|
|
1424
|
+
CountryISO.Tajikistan,
|
|
1425
|
+
"992"
|
|
1426
|
+
],
|
|
1427
|
+
[
|
|
1428
|
+
"Tanzania",
|
|
1429
|
+
CountryISO.Tanzania,
|
|
1430
|
+
"255"
|
|
1431
|
+
],
|
|
1432
|
+
[
|
|
1433
|
+
"Thailand (ไทย)",
|
|
1434
|
+
CountryISO.Thailand,
|
|
1435
|
+
"66"
|
|
1436
|
+
],
|
|
1437
|
+
[
|
|
1438
|
+
"Timor-Leste",
|
|
1439
|
+
CountryISO.TimorLeste,
|
|
1440
|
+
"670"
|
|
1441
|
+
],
|
|
1442
|
+
[
|
|
1443
|
+
"Togo",
|
|
1444
|
+
CountryISO.Togo,
|
|
1445
|
+
"228"
|
|
1446
|
+
],
|
|
1447
|
+
[
|
|
1448
|
+
"Tokelau",
|
|
1449
|
+
CountryISO.Tokelau,
|
|
1450
|
+
"690"
|
|
1451
|
+
],
|
|
1452
|
+
[
|
|
1453
|
+
"Tonga",
|
|
1454
|
+
CountryISO.Tonga,
|
|
1455
|
+
"676"
|
|
1456
|
+
],
|
|
1457
|
+
[
|
|
1458
|
+
"Trinidad and Tobago",
|
|
1459
|
+
"tt",
|
|
1460
|
+
"1",
|
|
1461
|
+
1,
|
|
1462
|
+
["868"]
|
|
1463
|
+
],
|
|
1464
|
+
[
|
|
1465
|
+
"Tunisia (تونس)",
|
|
1466
|
+
CountryISO.Tunisia,
|
|
1467
|
+
"216"
|
|
1468
|
+
],
|
|
1469
|
+
[
|
|
1470
|
+
"Turkey (Türkiye)",
|
|
1471
|
+
CountryISO.Turkey,
|
|
1472
|
+
"90"
|
|
1473
|
+
],
|
|
1474
|
+
[
|
|
1475
|
+
"Turkmenistan",
|
|
1476
|
+
CountryISO.Turkmenistan,
|
|
1477
|
+
"993"
|
|
1478
|
+
],
|
|
1479
|
+
[
|
|
1480
|
+
"Turks and Caicos Islands",
|
|
1481
|
+
CountryISO.TurksAndCaicosIslands,
|
|
1482
|
+
"1649"
|
|
1483
|
+
],
|
|
1484
|
+
[
|
|
1485
|
+
"Tuvalu",
|
|
1486
|
+
CountryISO.Tuvalu,
|
|
1487
|
+
"688"
|
|
1488
|
+
],
|
|
1489
|
+
[
|
|
1490
|
+
"U.S. Virgin Islands",
|
|
1491
|
+
"vi",
|
|
1492
|
+
"1",
|
|
1493
|
+
1,
|
|
1494
|
+
["340"]
|
|
1495
|
+
],
|
|
1496
|
+
[
|
|
1497
|
+
"Uganda",
|
|
1498
|
+
CountryISO.Uganda,
|
|
1499
|
+
"256"
|
|
1500
|
+
],
|
|
1501
|
+
[
|
|
1502
|
+
"Ukraine (Україна)",
|
|
1503
|
+
CountryISO.Ukraine,
|
|
1504
|
+
"380"
|
|
1505
|
+
],
|
|
1506
|
+
[
|
|
1507
|
+
"United Arab Emirates (الإمارات العربية المتحدة)",
|
|
1508
|
+
CountryISO.UnitedArabEmirates,
|
|
1509
|
+
"971"
|
|
1510
|
+
],
|
|
1511
|
+
[
|
|
1512
|
+
"United Kingdom",
|
|
1513
|
+
CountryISO.UnitedKingdom,
|
|
1514
|
+
"44",
|
|
1515
|
+
0
|
|
1516
|
+
],
|
|
1517
|
+
[
|
|
1518
|
+
"United States",
|
|
1519
|
+
CountryISO.UnitedStates,
|
|
1520
|
+
"1",
|
|
1521
|
+
0
|
|
1522
|
+
],
|
|
1523
|
+
[
|
|
1524
|
+
"Uruguay",
|
|
1525
|
+
CountryISO.Uruguay,
|
|
1526
|
+
"598"
|
|
1527
|
+
],
|
|
1528
|
+
[
|
|
1529
|
+
"Uzbekistan (Oʻzbekiston)",
|
|
1530
|
+
CountryISO.Uzbekistan,
|
|
1531
|
+
"998"
|
|
1532
|
+
],
|
|
1533
|
+
[
|
|
1534
|
+
"Vanuatu",
|
|
1535
|
+
CountryISO.Vanuatu,
|
|
1536
|
+
"678"
|
|
1537
|
+
],
|
|
1538
|
+
[
|
|
1539
|
+
"Vatican City (Città del Vaticano)",
|
|
1540
|
+
CountryISO.VaticanCity,
|
|
1541
|
+
"39",
|
|
1542
|
+
1
|
|
1543
|
+
],
|
|
1544
|
+
[
|
|
1545
|
+
"Venezuela",
|
|
1546
|
+
CountryISO.Venezuela,
|
|
1547
|
+
"58"
|
|
1548
|
+
],
|
|
1549
|
+
[
|
|
1550
|
+
"Vietnam (Việt Nam)",
|
|
1551
|
+
CountryISO.Vietnam,
|
|
1552
|
+
"84"
|
|
1553
|
+
],
|
|
1554
|
+
[
|
|
1555
|
+
"Wallis and Futuna",
|
|
1556
|
+
CountryISO.WallisAndFutuna,
|
|
1557
|
+
"681"
|
|
1558
|
+
],
|
|
1559
|
+
[
|
|
1560
|
+
"Western Sahara (الصحراء الغربية)",
|
|
1561
|
+
CountryISO.WesternSahara,
|
|
1562
|
+
"212",
|
|
1563
|
+
1
|
|
1564
|
+
],
|
|
1565
|
+
[
|
|
1566
|
+
"Yemen (اليمن)",
|
|
1567
|
+
CountryISO.Yemen,
|
|
1568
|
+
"967"
|
|
1569
|
+
],
|
|
1570
|
+
[
|
|
1571
|
+
"Zambia",
|
|
1572
|
+
CountryISO.Zambia,
|
|
1573
|
+
"260"
|
|
1574
|
+
],
|
|
1575
|
+
[
|
|
1576
|
+
"Zimbabwe",
|
|
1577
|
+
CountryISO.Zimbabwe,
|
|
1578
|
+
"263"
|
|
1579
|
+
],
|
|
1580
|
+
[
|
|
1581
|
+
"Åland Islands",
|
|
1582
|
+
CountryISO.ÅlandIslands,
|
|
1583
|
+
"358",
|
|
1584
|
+
1
|
|
1585
|
+
]
|
|
1586
|
+
];
|
|
1587
|
+
}
|
|
1588
|
+
static {
|
|
1589
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
1590
|
+
minVersion: "12.0.0",
|
|
1591
|
+
version: "22.2.7",
|
|
1592
|
+
ngImport: i0,
|
|
1593
|
+
type: CountryCode,
|
|
1594
|
+
deps: [],
|
|
1595
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
1596
|
+
});
|
|
1597
|
+
}
|
|
1598
|
+
static {
|
|
1599
|
+
this.ɵprov = i0.ɵɵngDeclareInjectable({
|
|
1600
|
+
minVersion: "12.0.0",
|
|
1601
|
+
version: "22.2.7",
|
|
1602
|
+
ngImport: i0,
|
|
1603
|
+
type: CountryCode
|
|
1604
|
+
});
|
|
1605
|
+
}
|
|
1606
|
+
};
|
|
1607
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1608
|
+
minVersion: "12.0.0",
|
|
1609
|
+
version: "22.2.7",
|
|
1610
|
+
ngImport: i0,
|
|
1611
|
+
type: CountryCode,
|
|
1612
|
+
decorators: [{ type: Injectable }]
|
|
1613
|
+
});
|
|
1614
|
+
var PhoneNumberFormat;
|
|
1615
|
+
(function(PhoneNumberFormat) {
|
|
1616
|
+
PhoneNumberFormat["International"] = "INTERNATIONAL";
|
|
1617
|
+
PhoneNumberFormat["National"] = "NATIONAL";
|
|
1618
|
+
})(PhoneNumberFormat || (PhoneNumberFormat = {}));
|
|
580
1619
|
var SearchCountryField;
|
|
581
|
-
(function
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
1620
|
+
(function(SearchCountryField) {
|
|
1621
|
+
SearchCountryField["DialCode"] = "dialCode";
|
|
1622
|
+
SearchCountryField["Iso2"] = "iso2";
|
|
1623
|
+
SearchCountryField["Name"] = "name";
|
|
1624
|
+
SearchCountryField["All"] = "all";
|
|
586
1625
|
})(SearchCountryField || (SearchCountryField = {}));
|
|
587
|
-
|
|
588
|
-
/*
|
|
589
|
-
We use "control: any" instead of "control: FormControl" to silence:
|
|
590
|
-
"Property 'nativeElement' does not exist on type 'FormControl'".
|
|
591
|
-
This happens because I've expanded control with nativeElement via
|
|
592
|
-
'NativeElementInjectorDirective' to get an access to the element.
|
|
593
|
-
More about this approach and reasons for this:
|
|
594
|
-
https://github.com/angular/angular/issues/18025
|
|
595
|
-
https://stackoverflow.com/a/54075119/1617590
|
|
596
|
-
*/
|
|
597
1626
|
const phoneNumberValidator = (control) => {
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
// @ts-ignore
|
|
625
|
-
if (!number) {
|
|
626
|
-
return error;
|
|
627
|
-
}
|
|
628
|
-
else {
|
|
629
|
-
if (!lpn.PhoneNumberUtil.getInstance().isValidNumberForRegion(number, control.value.countryCode)) {
|
|
630
|
-
return error;
|
|
631
|
-
}
|
|
632
|
-
else {
|
|
633
|
-
inputBox.setCustomValidity('');
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
|
-
}
|
|
638
|
-
else if (isCheckValidation === 'false') {
|
|
639
|
-
inputBox.setCustomValidity('');
|
|
640
|
-
control.clearValidators();
|
|
641
|
-
}
|
|
642
|
-
}
|
|
643
|
-
return;
|
|
1627
|
+
if (!control.value) return;
|
|
1628
|
+
const el = control.nativeElement;
|
|
1629
|
+
const inputBox = el ? el.querySelector("input[type=\"tel\"]") : void 0;
|
|
1630
|
+
if (inputBox) {
|
|
1631
|
+
const isCheckValidation = inputBox.getAttribute("validation");
|
|
1632
|
+
if (isCheckValidation === "true") {
|
|
1633
|
+
const isRequired = control.errors && control.errors.required === true;
|
|
1634
|
+
const error = { validatePhoneNumber: { valid: false } };
|
|
1635
|
+
inputBox.setCustomValidity("Invalid field.");
|
|
1636
|
+
let number;
|
|
1637
|
+
try {
|
|
1638
|
+
number = lpn.PhoneNumberUtil.getInstance().parse(control.value.number, control.value.countryCode);
|
|
1639
|
+
} catch (e) {
|
|
1640
|
+
if (isRequired) return error;
|
|
1641
|
+
else inputBox.setCustomValidity("");
|
|
1642
|
+
}
|
|
1643
|
+
if (control.value) {
|
|
1644
|
+
if (!number) return error;
|
|
1645
|
+
else if (!lpn.PhoneNumberUtil.getInstance().isValidNumberForRegion(number, control.value.countryCode)) return error;
|
|
1646
|
+
else inputBox.setCustomValidity("");
|
|
1647
|
+
}
|
|
1648
|
+
} else if (isCheckValidation === "false") {
|
|
1649
|
+
inputBox.setCustomValidity("");
|
|
1650
|
+
control.clearValidators();
|
|
1651
|
+
}
|
|
1652
|
+
}
|
|
644
1653
|
};
|
|
1654
|
+
let nextInstanceId = 0;
|
|
1655
|
+
var NgxIntlTelInputComponent = class NgxIntlTelInputComponent {
|
|
1656
|
+
constructor() {
|
|
1657
|
+
this.value = "";
|
|
1658
|
+
this.preferredCountries = [];
|
|
1659
|
+
this.enablePlaceholder = true;
|
|
1660
|
+
this.numberFormat = PhoneNumberFormat.International;
|
|
1661
|
+
this.cssClass = "form-control";
|
|
1662
|
+
this.onlyCountries = [];
|
|
1663
|
+
this.enableAutoCountrySelect = true;
|
|
1664
|
+
this.searchCountryFlag = false;
|
|
1665
|
+
this.searchCountryField = [SearchCountryField.All];
|
|
1666
|
+
this.searchCountryPlaceholder = "Search Country";
|
|
1667
|
+
this.selectFirstCountry = true;
|
|
1668
|
+
this.phoneValidation = true;
|
|
1669
|
+
this.inputId = "phone";
|
|
1670
|
+
this.separateDialCode = false;
|
|
1671
|
+
this.excludeCountries = [];
|
|
1672
|
+
this.dropdownPlacement = "bottom";
|
|
1673
|
+
this.countryChange = new EventEmitter();
|
|
1674
|
+
this.selectedCountry = {
|
|
1675
|
+
areaCodes: void 0,
|
|
1676
|
+
dialCode: "",
|
|
1677
|
+
htmlId: "",
|
|
1678
|
+
flagClass: "",
|
|
1679
|
+
iso2: "",
|
|
1680
|
+
name: "",
|
|
1681
|
+
placeHolder: "",
|
|
1682
|
+
priority: 0
|
|
1683
|
+
};
|
|
1684
|
+
this.phoneNumber = "";
|
|
1685
|
+
this.allCountries = [];
|
|
1686
|
+
this.preferredCountriesInDropDown = [];
|
|
1687
|
+
this.phoneUtil = lpn.PhoneNumberUtil.getInstance();
|
|
1688
|
+
this.disabled = false;
|
|
1689
|
+
this.countrySearchText = "";
|
|
1690
|
+
this.isOpen = signal(false, ...ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []);
|
|
1691
|
+
this.dropdownAbove = signal(false, ...ngDevMode ? [{ debugName: "dropdownAbove" }] : /* istanbul ignore next */ []);
|
|
1692
|
+
this.dropdownId = `iti-country-dropdown-${nextInstanceId++}`;
|
|
1693
|
+
this.listboxId = `${this.dropdownId}-list`;
|
|
1694
|
+
this.countryOptions = [];
|
|
1695
|
+
this.selectedOptionIds = [];
|
|
1696
|
+
this.openedWithIds = [];
|
|
1697
|
+
this.listbox = viewChild(Listbox, ...ngDevMode ? [{ debugName: "listbox" }] : /* istanbul ignore next */ []);
|
|
1698
|
+
this.options = viewChildren(Option, ...ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []);
|
|
1699
|
+
this.toggleEl = viewChild("toggleEl", ...ngDevMode ? [{ debugName: "toggleEl" }] : /* istanbul ignore next */ []);
|
|
1700
|
+
this.flagContainerEl = viewChild.required("flagContainer", ...ngDevMode ? [{ debugName: "flagContainerEl" }] : /* istanbul ignore next */ []);
|
|
1701
|
+
this.dropdownMenuEl = viewChild("dropdownMenu", ...ngDevMode ? [{ debugName: "dropdownMenuEl" }] : /* istanbul ignore next */ []);
|
|
1702
|
+
this.countryListEl = viewChild("countryList", ...ngDevMode ? [{ debugName: "countryListEl" }] : /* istanbul ignore next */ []);
|
|
1703
|
+
this.searchInputEl = viewChild("searchInput", ...ngDevMode ? [{ debugName: "searchInputEl" }] : /* istanbul ignore next */ []);
|
|
1704
|
+
this.focusableEl = viewChild.required("focusable", ...ngDevMode ? [{ debugName: "focusableEl" }] : /* istanbul ignore next */ []);
|
|
1705
|
+
this.countryCodeData = inject(CountryCode);
|
|
1706
|
+
this.onTouched = () => {};
|
|
1707
|
+
this.propagateChange = (_) => {};
|
|
1708
|
+
afterRenderEffect(() => {
|
|
1709
|
+
if (this.isOpen()) this.searchInputEl()?.nativeElement.focus();
|
|
1710
|
+
});
|
|
1711
|
+
afterRenderEffect({
|
|
1712
|
+
earlyRead: () => {
|
|
1713
|
+
const menu = this.dropdownMenuEl()?.nativeElement;
|
|
1714
|
+
if (this.dropdownPlacement !== "top" || !menu || !this.countryListEl()) return false;
|
|
1715
|
+
const { marginTop, marginBottom } = getComputedStyle(menu);
|
|
1716
|
+
const height = menu.offsetHeight + parseFloat(marginTop) + parseFloat(marginBottom);
|
|
1717
|
+
return this.flagContainerEl().nativeElement.getBoundingClientRect().top >= height;
|
|
1718
|
+
},
|
|
1719
|
+
write: (above) => this.dropdownAbove.set(above())
|
|
1720
|
+
});
|
|
1721
|
+
afterRenderEffect(() => {
|
|
1722
|
+
const activeId = this.listbox()?.activeDescendant();
|
|
1723
|
+
const option = this.options().find((o) => o.id() === activeId);
|
|
1724
|
+
const listEl = this.countryList?.nativeElement;
|
|
1725
|
+
if (!option || !listEl) return;
|
|
1726
|
+
const top = option.element.offsetTop;
|
|
1727
|
+
const bottom = top + option.element.offsetHeight;
|
|
1728
|
+
if (top < listEl.scrollTop) listEl.scrollTop = top;
|
|
1729
|
+
else if (bottom > listEl.scrollTop + listEl.clientHeight) listEl.scrollTop = bottom - listEl.clientHeight;
|
|
1730
|
+
});
|
|
1731
|
+
}
|
|
1732
|
+
get hasSearch() {
|
|
1733
|
+
return Boolean(this.searchCountryFlag && this.searchCountryField);
|
|
1734
|
+
}
|
|
1735
|
+
get toggleAriaLabel() {
|
|
1736
|
+
if (this.selectedCountry?.name) return `${this.selectedCountry.name} (+${this.selectedCountry.dialCode})`;
|
|
1737
|
+
return "Select country";
|
|
1738
|
+
}
|
|
1739
|
+
ngOnInit() {
|
|
1740
|
+
this.init();
|
|
1741
|
+
}
|
|
1742
|
+
ngOnChanges(changes) {
|
|
1743
|
+
const selectedISO = changes["selectedCountryISO"];
|
|
1744
|
+
if (this.allCountries && selectedISO && selectedISO.currentValue !== selectedISO.previousValue) this.updateSelectedCountry();
|
|
1745
|
+
if (changes["preferredCountries"]) this.updatePreferredCountries();
|
|
1746
|
+
this.checkSeparateDialCodeStyle();
|
|
1747
|
+
}
|
|
1748
|
+
init() {
|
|
1749
|
+
this.fetchCountryData();
|
|
1750
|
+
if (this.excludeCountries.length) this.allCountries = this.allCountries.filter((c) => !this.excludeCountries.includes(c.iso2));
|
|
1751
|
+
if (this.preferredCountries.length) this.updatePreferredCountries();
|
|
1752
|
+
if (this.onlyCountries.length) this.allCountries = this.allCountries.filter((c) => this.onlyCountries.includes(c.iso2));
|
|
1753
|
+
if (this.selectFirstCountry) {
|
|
1754
|
+
if (this.preferredCountriesInDropDown.length) this.setSelectedCountry(this.preferredCountriesInDropDown[0]);
|
|
1755
|
+
else this.setSelectedCountry(this.allCountries[0]);
|
|
1756
|
+
}
|
|
1757
|
+
this.updateSelectedCountry();
|
|
1758
|
+
this.checkSeparateDialCodeStyle();
|
|
1759
|
+
}
|
|
1760
|
+
setSelectedCountry(country) {
|
|
1761
|
+
this.selectedCountry = country;
|
|
1762
|
+
this.countryChange.emit(country);
|
|
1763
|
+
}
|
|
1764
|
+
setOpen(open) {
|
|
1765
|
+
if (open === this.isOpen() || open && this.disabled) return;
|
|
1766
|
+
if (open) {
|
|
1767
|
+
this.countryOptions = [...this.preferredCountriesInDropDown.map((country) => ({
|
|
1768
|
+
id: `${country.htmlId}-preferred`,
|
|
1769
|
+
country,
|
|
1770
|
+
preferred: true
|
|
1771
|
+
})), ...this.allCountries.map((country) => ({
|
|
1772
|
+
id: country.htmlId,
|
|
1773
|
+
country,
|
|
1774
|
+
preferred: false
|
|
1775
|
+
}))];
|
|
1776
|
+
const selected = this.countryOptions.find((o) => o.country.iso2 === this.selectedCountry?.iso2);
|
|
1777
|
+
this.selectedOptionIds = this.openedWithIds = selected ? [selected.id] : [];
|
|
1778
|
+
} else this.countrySearchText = "";
|
|
1779
|
+
this.isOpen.set(open);
|
|
1780
|
+
}
|
|
1781
|
+
onToggleKeydown(event) {
|
|
1782
|
+
if ([
|
|
1783
|
+
"Enter",
|
|
1784
|
+
" ",
|
|
1785
|
+
"ArrowDown"
|
|
1786
|
+
].includes(event.key)) {
|
|
1787
|
+
event.preventDefault();
|
|
1788
|
+
this.setOpen(true);
|
|
1789
|
+
}
|
|
1790
|
+
}
|
|
1791
|
+
closeDropdown(returnFocus) {
|
|
1792
|
+
this.setOpen(false);
|
|
1793
|
+
if (returnFocus) this.toggleEl()?.nativeElement.focus();
|
|
1794
|
+
}
|
|
1795
|
+
onFlagContainerFocusOut(event) {
|
|
1796
|
+
const next = event.relatedTarget;
|
|
1797
|
+
if (this.hasSearch && !this.flagContainerEl().nativeElement.contains(next)) this.setOpen(false);
|
|
1798
|
+
}
|
|
1799
|
+
commitSelection() {
|
|
1800
|
+
if (this.selectedOptionIds === this.openedWithIds) return;
|
|
1801
|
+
const id = this.selectedOptionIds[0] ?? this.openedWithIds[0];
|
|
1802
|
+
const option = this.countryOptions.find((o) => o.id === id);
|
|
1803
|
+
this.setOpen(false);
|
|
1804
|
+
if (option) this.onCountrySelect(option.country, this.focusableEl().nativeElement);
|
|
1805
|
+
}
|
|
1806
|
+
onSearchChange(text) {
|
|
1807
|
+
this.countrySearchText = text;
|
|
1808
|
+
this.searchCountry();
|
|
1809
|
+
}
|
|
1810
|
+
searchCountry() {
|
|
1811
|
+
const listbox = this.listbox();
|
|
1812
|
+
if (!this.countrySearchText) {
|
|
1813
|
+
listbox?.gotoFirst();
|
|
1814
|
+
return;
|
|
1815
|
+
}
|
|
1816
|
+
const countrySearchTextLower = this.countrySearchText.toLowerCase();
|
|
1817
|
+
const searchAll = this.searchCountryField.includes(SearchCountryField.All);
|
|
1818
|
+
const searchIn = (field) => searchAll || this.searchCountryField.includes(field);
|
|
1819
|
+
const index = this.countryOptions.findIndex(({ country: c, preferred }) => !preferred && (searchIn(SearchCountryField.Iso2) && c.iso2.toLowerCase().startsWith(countrySearchTextLower) || searchIn(SearchCountryField.Name) && c.name.toLowerCase().startsWith(countrySearchTextLower) || searchIn(SearchCountryField.DialCode) && c.dialCode.startsWith(this.countrySearchText)));
|
|
1820
|
+
if (index > -1) listbox?.gotoIndex(index);
|
|
1821
|
+
}
|
|
1822
|
+
onPhoneNumberChange() {
|
|
1823
|
+
let countryCode;
|
|
1824
|
+
if (this.phoneNumber && typeof this.phoneNumber === "object") {
|
|
1825
|
+
const numberObj = this.phoneNumber;
|
|
1826
|
+
this.phoneNumber = numberObj.number;
|
|
1827
|
+
countryCode = numberObj.countryCode;
|
|
1828
|
+
}
|
|
1829
|
+
this.value = this.phoneNumber;
|
|
1830
|
+
countryCode = countryCode || this.selectedCountry.iso2;
|
|
1831
|
+
const number = this.getParsedNumber(this.phoneNumber, countryCode);
|
|
1832
|
+
if (this.enableAutoCountrySelect) {
|
|
1833
|
+
countryCode = number && number.getCountryCode() ? this.getCountryIsoCode(number.getCountryCode(), number) : this.selectedCountry.iso2;
|
|
1834
|
+
if (countryCode && countryCode !== this.selectedCountry.iso2) {
|
|
1835
|
+
const newCountry = this.allCountries.slice().sort((a, b) => {
|
|
1836
|
+
return a.priority - b.priority;
|
|
1837
|
+
}).find((c) => c.iso2 === countryCode);
|
|
1838
|
+
if (newCountry) this.selectedCountry = newCountry;
|
|
1839
|
+
}
|
|
1840
|
+
}
|
|
1841
|
+
countryCode = countryCode ? countryCode : this.selectedCountry.iso2;
|
|
1842
|
+
this.checkSeparateDialCodeStyle();
|
|
1843
|
+
if (!this.value) this.propagateChange(null);
|
|
1844
|
+
else {
|
|
1845
|
+
const intlNo = number ? this.phoneUtil.format(number, lpn.PhoneNumberFormat.INTERNATIONAL) : "";
|
|
1846
|
+
if (this.separateDialCode && intlNo) this.value = this.removeDialCode(intlNo);
|
|
1847
|
+
this.propagateChange({
|
|
1848
|
+
number: this.value,
|
|
1849
|
+
internationalNumber: intlNo,
|
|
1850
|
+
nationalNumber: number ? this.phoneUtil.format(number, lpn.PhoneNumberFormat.NATIONAL) : "",
|
|
1851
|
+
e164Number: number ? this.phoneUtil.format(number, lpn.PhoneNumberFormat.E164) : "",
|
|
1852
|
+
countryCode: countryCode.toUpperCase(),
|
|
1853
|
+
dialCode: "+" + this.selectedCountry.dialCode
|
|
1854
|
+
});
|
|
1855
|
+
}
|
|
1856
|
+
}
|
|
1857
|
+
onCountrySelect(country, el) {
|
|
1858
|
+
this.setSelectedCountry(country);
|
|
1859
|
+
this.checkSeparateDialCodeStyle();
|
|
1860
|
+
if (this.phoneNumber && this.phoneNumber.length > 0) {
|
|
1861
|
+
this.value = this.phoneNumber;
|
|
1862
|
+
const number = this.getParsedNumber(this.phoneNumber, this.selectedCountry.iso2);
|
|
1863
|
+
const intlNo = number ? this.phoneUtil.format(number, lpn.PhoneNumberFormat.INTERNATIONAL) : "";
|
|
1864
|
+
if (this.separateDialCode && intlNo) this.value = this.removeDialCode(intlNo);
|
|
1865
|
+
this.propagateChange({
|
|
1866
|
+
number: this.value,
|
|
1867
|
+
internationalNumber: intlNo,
|
|
1868
|
+
nationalNumber: number ? this.phoneUtil.format(number, lpn.PhoneNumberFormat.NATIONAL) : "",
|
|
1869
|
+
e164Number: number ? this.phoneUtil.format(number, lpn.PhoneNumberFormat.E164) : "",
|
|
1870
|
+
countryCode: this.selectedCountry.iso2.toUpperCase(),
|
|
1871
|
+
dialCode: "+" + this.selectedCountry.dialCode
|
|
1872
|
+
});
|
|
1873
|
+
} else this.propagateChange(null);
|
|
1874
|
+
el.focus();
|
|
1875
|
+
}
|
|
1876
|
+
onInputKeyPress(event) {
|
|
1877
|
+
if (!/[0-9\+\-\(\)\ ]/.test(event.key) && !(event.ctrlKey && /[axcv]/.test(event.key)) && ![
|
|
1878
|
+
"ArrowLeft",
|
|
1879
|
+
"ArrowUp",
|
|
1880
|
+
"ArrowRight",
|
|
1881
|
+
"ArrowDown",
|
|
1882
|
+
"Home",
|
|
1883
|
+
"End",
|
|
1884
|
+
"Insert",
|
|
1885
|
+
"Delete",
|
|
1886
|
+
"Backspace"
|
|
1887
|
+
].includes(event.key)) event.preventDefault();
|
|
1888
|
+
}
|
|
1889
|
+
registerOnChange(fn) {
|
|
1890
|
+
this.propagateChange = fn;
|
|
1891
|
+
}
|
|
1892
|
+
registerOnTouched(fn) {
|
|
1893
|
+
this.onTouched = fn;
|
|
1894
|
+
}
|
|
1895
|
+
setDisabledState(isDisabled) {
|
|
1896
|
+
this.disabled = isDisabled;
|
|
1897
|
+
if (isDisabled) this.setOpen(false);
|
|
1898
|
+
}
|
|
1899
|
+
writeValue(obj) {
|
|
1900
|
+
if (obj === void 0) this.init();
|
|
1901
|
+
this.phoneNumber = obj;
|
|
1902
|
+
setTimeout(() => {
|
|
1903
|
+
this.onPhoneNumberChange();
|
|
1904
|
+
}, 1);
|
|
1905
|
+
}
|
|
1906
|
+
resolvePlaceholder() {
|
|
1907
|
+
let placeholder = "";
|
|
1908
|
+
if (this.customPlaceholder) placeholder = this.customPlaceholder;
|
|
1909
|
+
else if (this.selectedCountry.placeHolder) {
|
|
1910
|
+
placeholder = this.selectedCountry.placeHolder;
|
|
1911
|
+
placeholder = this.stripDialCode(placeholder);
|
|
1912
|
+
}
|
|
1913
|
+
return placeholder;
|
|
1914
|
+
}
|
|
1915
|
+
getParsedNumber(phoneNumber, countryCode) {
|
|
1916
|
+
let number;
|
|
1917
|
+
try {
|
|
1918
|
+
number = this.phoneUtil.parse(phoneNumber, countryCode.toUpperCase());
|
|
1919
|
+
} catch (e) {}
|
|
1920
|
+
return number;
|
|
1921
|
+
}
|
|
1922
|
+
checkSeparateDialCodeStyle() {
|
|
1923
|
+
if (this.separateDialCode && this.selectedCountry) {
|
|
1924
|
+
const cntryCd = this.selectedCountry.dialCode;
|
|
1925
|
+
this.separateDialCodeClass = "separate-dial-code iti-sdc-" + (cntryCd.length + 1);
|
|
1926
|
+
} else this.separateDialCodeClass = "";
|
|
1927
|
+
}
|
|
1928
|
+
removeDialCode(phoneNumber) {
|
|
1929
|
+
const number = this.getParsedNumber(phoneNumber, this.selectedCountry.iso2);
|
|
1930
|
+
return this.stripDialCode(this.phoneUtil.format(number, lpn.PhoneNumberFormat[this.numberFormat]));
|
|
1931
|
+
}
|
|
1932
|
+
stripDialCode(phoneNumber) {
|
|
1933
|
+
if (phoneNumber.startsWith("+") && this.separateDialCode) return phoneNumber.substring(phoneNumber.indexOf(" ") + 1);
|
|
1934
|
+
return phoneNumber;
|
|
1935
|
+
}
|
|
1936
|
+
getCountryIsoCode(countryCode, number) {
|
|
1937
|
+
const rawNumber = number["values_"]["2"].toString();
|
|
1938
|
+
const countries = this.allCountries.filter((c) => c.dialCode === countryCode.toString());
|
|
1939
|
+
const mainCountry = countries.find((c) => c.areaCodes === void 0);
|
|
1940
|
+
const secondaryCountries = countries.filter((c) => c.areaCodes !== void 0);
|
|
1941
|
+
let matchedCountry = mainCountry ? mainCountry.iso2 : void 0;
|
|
1942
|
+
secondaryCountries.forEach((country) => {
|
|
1943
|
+
country.areaCodes.forEach((areaCode) => {
|
|
1944
|
+
if (rawNumber.startsWith(areaCode)) matchedCountry = country.iso2;
|
|
1945
|
+
});
|
|
1946
|
+
});
|
|
1947
|
+
return matchedCountry;
|
|
1948
|
+
}
|
|
1949
|
+
getPhoneNumberPlaceHolder(countryCode) {
|
|
1950
|
+
try {
|
|
1951
|
+
return this.phoneUtil.format(this.phoneUtil.getExampleNumber(countryCode), lpn.PhoneNumberFormat[this.numberFormat]);
|
|
1952
|
+
} catch (e) {
|
|
1953
|
+
return e;
|
|
1954
|
+
}
|
|
1955
|
+
}
|
|
1956
|
+
fetchCountryData() {
|
|
1957
|
+
this.allCountries = [];
|
|
1958
|
+
this.countryCodeData.allCountries.forEach((c) => {
|
|
1959
|
+
const country = {
|
|
1960
|
+
name: c[0].toString(),
|
|
1961
|
+
iso2: c[1],
|
|
1962
|
+
dialCode: c[2].toString(),
|
|
1963
|
+
priority: +c[3] || 0,
|
|
1964
|
+
areaCodes: c[4] || void 0,
|
|
1965
|
+
htmlId: `iti-0__item-${c[1].toString()}`,
|
|
1966
|
+
flagClass: `iti__${c[1].toString().toLocaleLowerCase()}`,
|
|
1967
|
+
placeHolder: ""
|
|
1968
|
+
};
|
|
1969
|
+
if (this.enablePlaceholder) {
|
|
1970
|
+
country.placeHolder = this.getPhoneNumberPlaceHolder(country.iso2.toUpperCase());
|
|
1971
|
+
if (country.iso2 === "ua") country.placeHolder = "+380 31 123 4567";
|
|
1972
|
+
}
|
|
1973
|
+
this.allCountries.push(country);
|
|
1974
|
+
});
|
|
1975
|
+
}
|
|
1976
|
+
updatePreferredCountries() {
|
|
1977
|
+
if (this.preferredCountries.length) this.preferredCountriesInDropDown = this.allCountries.filter((c) => {
|
|
1978
|
+
return this.preferredCountries.includes(c.iso2) && !this.excludeCountries.includes(c.iso2);
|
|
1979
|
+
});
|
|
1980
|
+
}
|
|
1981
|
+
updateSelectedCountry() {
|
|
1982
|
+
if (this.selectedCountryISO && !this.excludeCountries.includes(this.selectedCountryISO)) {
|
|
1983
|
+
this.selectedCountry = this.allCountries.find((c) => {
|
|
1984
|
+
return c.iso2.toLowerCase() === this.selectedCountryISO.toLowerCase();
|
|
1985
|
+
});
|
|
1986
|
+
if (this.selectedCountry) {
|
|
1987
|
+
if (this.phoneNumber) this.onPhoneNumberChange();
|
|
1988
|
+
else this.propagateChange(null);
|
|
1989
|
+
}
|
|
1990
|
+
}
|
|
1991
|
+
}
|
|
1992
|
+
static {
|
|
1993
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
1994
|
+
minVersion: "12.0.0",
|
|
1995
|
+
version: "22.2.7",
|
|
1996
|
+
ngImport: i0,
|
|
1997
|
+
type: NgxIntlTelInputComponent,
|
|
1998
|
+
deps: [],
|
|
1999
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
2000
|
+
});
|
|
2001
|
+
}
|
|
2002
|
+
static {
|
|
2003
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
2004
|
+
minVersion: "17.0.0",
|
|
2005
|
+
version: "22.2.7",
|
|
2006
|
+
type: NgxIntlTelInputComponent,
|
|
2007
|
+
isStandalone: true,
|
|
2008
|
+
selector: "ngx-intl-tel-input",
|
|
2009
|
+
inputs: {
|
|
2010
|
+
value: "value",
|
|
2011
|
+
preferredCountries: "preferredCountries",
|
|
2012
|
+
enablePlaceholder: "enablePlaceholder",
|
|
2013
|
+
customPlaceholder: "customPlaceholder",
|
|
2014
|
+
numberFormat: "numberFormat",
|
|
2015
|
+
cssClass: "cssClass",
|
|
2016
|
+
onlyCountries: "onlyCountries",
|
|
2017
|
+
enableAutoCountrySelect: "enableAutoCountrySelect",
|
|
2018
|
+
searchCountryFlag: "searchCountryFlag",
|
|
2019
|
+
searchCountryField: "searchCountryField",
|
|
2020
|
+
searchCountryPlaceholder: "searchCountryPlaceholder",
|
|
2021
|
+
maxLength: "maxLength",
|
|
2022
|
+
selectFirstCountry: "selectFirstCountry",
|
|
2023
|
+
selectedCountryISO: "selectedCountryISO",
|
|
2024
|
+
phoneValidation: "phoneValidation",
|
|
2025
|
+
inputId: "inputId",
|
|
2026
|
+
separateDialCode: "separateDialCode",
|
|
2027
|
+
excludeCountries: "excludeCountries",
|
|
2028
|
+
dropdownPlacement: "dropdownPlacement"
|
|
2029
|
+
},
|
|
2030
|
+
outputs: { countryChange: "countryChange" },
|
|
2031
|
+
providers: [
|
|
2032
|
+
CountryCode,
|
|
2033
|
+
{
|
|
2034
|
+
provide: NG_VALUE_ACCESSOR,
|
|
2035
|
+
useExisting: forwardRef(() => NgxIntlTelInputComponent),
|
|
2036
|
+
multi: true
|
|
2037
|
+
},
|
|
2038
|
+
{
|
|
2039
|
+
provide: NG_VALIDATORS,
|
|
2040
|
+
useValue: phoneNumberValidator,
|
|
2041
|
+
multi: true
|
|
2042
|
+
}
|
|
2043
|
+
],
|
|
2044
|
+
viewQueries: [
|
|
2045
|
+
{
|
|
2046
|
+
propertyName: "listbox",
|
|
2047
|
+
first: true,
|
|
2048
|
+
predicate: Listbox,
|
|
2049
|
+
descendants: true,
|
|
2050
|
+
isSignal: true
|
|
2051
|
+
},
|
|
2052
|
+
{
|
|
2053
|
+
propertyName: "options",
|
|
2054
|
+
predicate: Option,
|
|
2055
|
+
descendants: true,
|
|
2056
|
+
isSignal: true
|
|
2057
|
+
},
|
|
2058
|
+
{
|
|
2059
|
+
propertyName: "toggleEl",
|
|
2060
|
+
first: true,
|
|
2061
|
+
predicate: ["toggleEl"],
|
|
2062
|
+
descendants: true,
|
|
2063
|
+
isSignal: true
|
|
2064
|
+
},
|
|
2065
|
+
{
|
|
2066
|
+
propertyName: "flagContainerEl",
|
|
2067
|
+
first: true,
|
|
2068
|
+
predicate: ["flagContainer"],
|
|
2069
|
+
descendants: true,
|
|
2070
|
+
isSignal: true
|
|
2071
|
+
},
|
|
2072
|
+
{
|
|
2073
|
+
propertyName: "dropdownMenuEl",
|
|
2074
|
+
first: true,
|
|
2075
|
+
predicate: ["dropdownMenu"],
|
|
2076
|
+
descendants: true,
|
|
2077
|
+
isSignal: true
|
|
2078
|
+
},
|
|
2079
|
+
{
|
|
2080
|
+
propertyName: "countryListEl",
|
|
2081
|
+
first: true,
|
|
2082
|
+
predicate: ["countryList"],
|
|
2083
|
+
descendants: true,
|
|
2084
|
+
isSignal: true
|
|
2085
|
+
},
|
|
2086
|
+
{
|
|
2087
|
+
propertyName: "searchInputEl",
|
|
2088
|
+
first: true,
|
|
2089
|
+
predicate: ["searchInput"],
|
|
2090
|
+
descendants: true,
|
|
2091
|
+
isSignal: true
|
|
2092
|
+
},
|
|
2093
|
+
{
|
|
2094
|
+
propertyName: "focusableEl",
|
|
2095
|
+
first: true,
|
|
2096
|
+
predicate: ["focusable"],
|
|
2097
|
+
descendants: true,
|
|
2098
|
+
isSignal: true
|
|
2099
|
+
},
|
|
2100
|
+
{
|
|
2101
|
+
propertyName: "countryList",
|
|
2102
|
+
first: true,
|
|
2103
|
+
predicate: ["countryList"],
|
|
2104
|
+
descendants: true
|
|
2105
|
+
}
|
|
2106
|
+
],
|
|
2107
|
+
usesOnChanges: true,
|
|
2108
|
+
ngImport: i0,
|
|
2109
|
+
template: "<div class=\"iti iti--allow-dropdown\" [ngClass]=\"separateDialCodeClass\">\n <div\n #flagContainer\n class=\"iti__flag-container\"\n [class.disabled]=\"disabled\"\n [class.open]=\"isOpen()\"\n (focusout)=\"onFlagContainerFocusOut($event)\"\n >\n @if (hasSearch) {\n <!-- Search mode: a button opens a dialog whose search box is the only combobox. -->\n <div\n #toggleEl\n class=\"iti__selected-flag dropdown-toggle\"\n role=\"button\"\n aria-haspopup=\"dialog\"\n [attr.tabindex]=\"disabled ? -1 : 0\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"isOpen() ? dropdownId : null\"\n [attr.aria-disabled]=\"disabled || null\"\n [attr.aria-label]=\"toggleAriaLabel\"\n (click)=\"setOpen(!isOpen())\"\n (keydown)=\"onToggleKeydown($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"selectedFlag\" />\n </div>\n @if (isOpen()) {\n <div\n #dropdownMenu\n class=\"dropdown-menu iti__dropdown-content\"\n [class.iti__dropdown--above]=\"dropdownAbove()\"\n role=\"dialog\"\n tabindex=\"-1\"\n [id]=\"dropdownId\"\n [attr.aria-label]=\"searchCountryPlaceholder\"\n (keydown.escape)=\"closeDropdown(true)\"\n >\n <div class=\"search-container\">\n <input\n #searchInput\n #searchCombobox=\"ngCombobox\"\n id=\"country-search-box\"\n ngCombobox\n alwaysExpanded\n [value]=\"countrySearchText\"\n (valueChange)=\"onSearchChange($event)\"\n (keydown.escape)=\"closeDropdown(true)\"\n [placeholder]=\"searchCountryPlaceholder\"\n [attr.aria-label]=\"searchCountryPlaceholder\"\n />\n </div>\n <ng-container\n [ngTemplateOutlet]=\"countryPopup\"\n [ngTemplateOutletContext]=\"{ $implicit: searchCombobox }\"\n />\n </div>\n }\n } @else {\n <!-- Select-only mode: the toggle is the combobox. -->\n <div\n #toggleEl\n #toggleCombobox=\"ngCombobox\"\n class=\"iti__selected-flag dropdown-toggle\"\n ngCombobox\n [disabled]=\"disabled\"\n [softDisabled]=\"false\"\n [expanded]=\"isOpen()\"\n (expandedChange)=\"setOpen($event)\"\n [attr.aria-label]=\"toggleAriaLabel\"\n >\n <ng-container [ngTemplateOutlet]=\"selectedFlag\" />\n </div>\n <ng-container\n [ngTemplateOutlet]=\"countryPopup\"\n [ngTemplateOutletContext]=\"{ $implicit: toggleCombobox, menu: true }\"\n />\n }\n </div>\n <input\n type=\"tel\"\n [id]=\"inputId\"\n autocomplete=\"off\"\n class=\"iti__tel-input\"\n [ngClass]=\"cssClass\"\n (blur)=\"onTouched()\"\n (keypress)=\"onInputKeyPress($event)\"\n [(ngModel)]=\"phoneNumber\"\n [ngModelOptions]=\"{ standalone: true }\"\n (ngModelChange)=\"onPhoneNumberChange()\"\n [disabled]=\"disabled\"\n [placeholder]=\"resolvePlaceholder()\"\n [attr.maxLength]=\"maxLength\"\n [attr.validation]=\"phoneValidation\"\n #focusable\n />\n</div>\n\n<ng-template #selectedFlag>\n <div class=\"iti__flag\" [ngClass]=\"selectedCountry.flagClass || ''\"></div>\n @if (separateDialCode) {\n <div class=\"selected-dial-code\">+{{ selectedCountry.dialCode }}</div>\n }\n <div class=\"iti__arrow\"></div>\n</ng-template>\n\n<!--\n Aria renders the popup only while its combobox is expanded. Select-only mode wraps the list in the\n dropdown menu here; in search mode the list already sits in the dropdown menu next to the search box.\n-->\n<ng-template #countryPopup let-combobox let-menu=\"menu\">\n <ng-template ngComboboxPopup [combobox]=\"combobox\">\n <ng-template #list>\n <ul\n #countryList\n #listbox=\"ngListbox\"\n class=\"iti__country-list\"\n ngListbox\n ngComboboxWidget\n tabindex=\"-1\"\n focusMode=\"activedescendant\"\n selectionMode=\"explicit\"\n [id]=\"listboxId\"\n [(value)]=\"selectedOptionIds\"\n [activeDescendant]=\"listbox.activeDescendant()\"\n (click)=\"commitSelection()\"\n (keydown.enter)=\"commitSelection()\"\n (keydown.space)=\"commitSelection()\"\n >\n @for (option of countryOptions; track option.id; let i = $index) {\n @if (!option.preferred && i > 0 && countryOptions[i - 1].preferred) {\n <li class=\"iti__divider\" role=\"separator\" aria-hidden=\"true\"></li>\n }\n <li\n class=\"iti__country\"\n [class.iti__preferred]=\"option.preferred\"\n [class.iti__standard]=\"!option.preferred\"\n ngOption\n [value]=\"option.id\"\n [label]=\"option.country.name\"\n [id]=\"option.id\"\n >\n <div class=\"iti__flag-box\">\n <div class=\"iti__flag\" [ngClass]=\"option.country.flagClass\"></div>\n </div>\n <span class=\"iti__country-name\">{{ option.country.name }}</span>\n <span class=\"iti__dial-code\">+{{ option.country.dialCode }}</span>\n </li>\n }\n </ul>\n </ng-template>\n @if (menu) {\n <div\n #dropdownMenu\n class=\"dropdown-menu iti__dropdown-content\"\n [class.iti__dropdown--above]=\"dropdownAbove()\"\n (keydown.escape)=\"closeDropdown(true)\"\n >\n <ng-container [ngTemplateOutlet]=\"list\" />\n </div>\n } @else {\n <ng-container [ngTemplateOutlet]=\"list\" />\n }\n </ng-template>\n</ng-template>\n",
|
|
2110
|
+
styles: [".dropdown-toggle:focus:not(:focus-visible){outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;list-style:none;font-size:14px;text-align:left;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;box-shadow:0 6px 12px #0000002d;background-clip:padding-box}.open>.dropdown-menu{display:block}li.iti__country:hover,li.iti__country[data-active=true]{background-color:#0000000d}.iti__selected-flag.dropdown-toggle:after{content:none}.iti__selected-flag.dropdown-toggle:focus-visible{outline:2px solid #005fcc;outline-offset:-2px}.iti__flag-container.disabled{cursor:default!important}.iti.iti--allow-dropdown .flag-container.disabled:hover .iti__selected-flag{background:none}.iti__dropdown-content{border:1px solid #ccc;width:fit-content;padding:1px;border-collapse:collapse}.search-container{position:relative}.open>.dropdown-menu.iti__dropdown--above{top:auto;bottom:100%;margin:0 0 2px;display:flex;flex-direction:column-reverse}.iti__dropdown--above .search-container input{border-bottom:none;border-top:1px solid #ccc}.search-container input{width:100%;border:none;border-bottom:1px solid #ccc;padding-left:10px}.search-icon{position:absolute;z-index:2;width:25px;margin:1px 10px}.iti__country-list{position:relative;border:none}.iti input#country-search-box{padding-left:6px}.iti .selected-dial-code{margin-left:6px}.iti.separate-dial-code .iti__selected-flag,.iti.separate-dial-code.iti--allow-dropdown.iti-sdc-2 .iti__selected-flag,.iti.separate-dial-code.iti--allow-dropdown.iti-sdc-3 .iti__selected-flag,.iti.separate-dial-code.iti--allow-dropdown.iti-sdc-4 .iti__selected-flag{width:93px}.iti.separate-dial-code input,.iti.separate-dial-code.iti--allow-dropdown.iti-sdc-2 input,.iti.separate-dial-code.iti--allow-dropdown.iti-sdc-3 input,.iti.separate-dial-code.iti--allow-dropdown.iti-sdc-4 input{padding-left:98px}\n"],
|
|
2111
|
+
dependencies: [
|
|
2112
|
+
{
|
|
2113
|
+
kind: "directive",
|
|
2114
|
+
type: NgClass,
|
|
2115
|
+
selector: "[ngClass]",
|
|
2116
|
+
inputs: ["class", "ngClass"]
|
|
2117
|
+
},
|
|
2118
|
+
{
|
|
2119
|
+
kind: "directive",
|
|
2120
|
+
type: NgTemplateOutlet,
|
|
2121
|
+
selector: "[ngTemplateOutlet]",
|
|
2122
|
+
inputs: [
|
|
2123
|
+
"ngTemplateOutletContext",
|
|
2124
|
+
"ngTemplateOutlet",
|
|
2125
|
+
"ngTemplateOutletInjector"
|
|
2126
|
+
]
|
|
2127
|
+
},
|
|
2128
|
+
{
|
|
2129
|
+
kind: "ngmodule",
|
|
2130
|
+
type: FormsModule
|
|
2131
|
+
},
|
|
2132
|
+
{
|
|
2133
|
+
kind: "directive",
|
|
2134
|
+
type: i1.DefaultValueAccessor,
|
|
2135
|
+
selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]"
|
|
2136
|
+
},
|
|
2137
|
+
{
|
|
2138
|
+
kind: "directive",
|
|
2139
|
+
type: i1.NgControlStatus,
|
|
2140
|
+
selector: "[formControlName],[ngModel],[formControl]"
|
|
2141
|
+
},
|
|
2142
|
+
{
|
|
2143
|
+
kind: "directive",
|
|
2144
|
+
type: i1.NgModel,
|
|
2145
|
+
selector: "[ngModel]:not([formControlName]):not([formControl])",
|
|
2146
|
+
inputs: [
|
|
2147
|
+
"name",
|
|
2148
|
+
"disabled",
|
|
2149
|
+
"ngModel",
|
|
2150
|
+
"ngModelOptions"
|
|
2151
|
+
],
|
|
2152
|
+
outputs: ["ngModelChange"],
|
|
2153
|
+
exportAs: ["ngModel"]
|
|
2154
|
+
},
|
|
2155
|
+
{
|
|
2156
|
+
kind: "directive",
|
|
2157
|
+
type: Combobox,
|
|
2158
|
+
selector: "[ngCombobox]",
|
|
2159
|
+
inputs: [
|
|
2160
|
+
"disabled",
|
|
2161
|
+
"readonly",
|
|
2162
|
+
"softDisabled",
|
|
2163
|
+
"alwaysExpanded",
|
|
2164
|
+
"tabindex",
|
|
2165
|
+
"expanded",
|
|
2166
|
+
"value",
|
|
2167
|
+
"inlineSuggestion"
|
|
2168
|
+
],
|
|
2169
|
+
outputs: ["expandedChange", "valueChange"],
|
|
2170
|
+
exportAs: ["ngCombobox"]
|
|
2171
|
+
},
|
|
2172
|
+
{
|
|
2173
|
+
kind: "directive",
|
|
2174
|
+
type: ComboboxPopup,
|
|
2175
|
+
selector: "ng-template[ngComboboxPopup]",
|
|
2176
|
+
inputs: ["combobox", "popupType"],
|
|
2177
|
+
exportAs: ["ngComboboxPopup"]
|
|
2178
|
+
},
|
|
2179
|
+
{
|
|
2180
|
+
kind: "directive",
|
|
2181
|
+
type: ComboboxWidget,
|
|
2182
|
+
selector: "[ngComboboxWidget]",
|
|
2183
|
+
inputs: ["activeDescendant"],
|
|
2184
|
+
exportAs: ["ngComboboxWidget"]
|
|
2185
|
+
},
|
|
2186
|
+
{
|
|
2187
|
+
kind: "directive",
|
|
2188
|
+
type: Listbox,
|
|
2189
|
+
selector: "[ngListbox]",
|
|
2190
|
+
inputs: [
|
|
2191
|
+
"id",
|
|
2192
|
+
"orientation",
|
|
2193
|
+
"multi",
|
|
2194
|
+
"wrap",
|
|
2195
|
+
"softDisabled",
|
|
2196
|
+
"focusMode",
|
|
2197
|
+
"selectionMode",
|
|
2198
|
+
"typeaheadDelay",
|
|
2199
|
+
"disabled",
|
|
2200
|
+
"readonly",
|
|
2201
|
+
"tabindex",
|
|
2202
|
+
"value"
|
|
2203
|
+
],
|
|
2204
|
+
outputs: ["valueChange"],
|
|
2205
|
+
exportAs: ["ngListbox"]
|
|
2206
|
+
},
|
|
2207
|
+
{
|
|
2208
|
+
kind: "directive",
|
|
2209
|
+
type: Option,
|
|
2210
|
+
selector: "[ngOption]",
|
|
2211
|
+
inputs: [
|
|
2212
|
+
"id",
|
|
2213
|
+
"value",
|
|
2214
|
+
"disabled",
|
|
2215
|
+
"label"
|
|
2216
|
+
],
|
|
2217
|
+
exportAs: ["ngOption"]
|
|
2218
|
+
}
|
|
2219
|
+
],
|
|
2220
|
+
changeDetection: i0.ChangeDetectionStrategy.Eager
|
|
2221
|
+
});
|
|
2222
|
+
}
|
|
2223
|
+
};
|
|
2224
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
2225
|
+
minVersion: "12.0.0",
|
|
2226
|
+
version: "22.2.7",
|
|
2227
|
+
ngImport: i0,
|
|
2228
|
+
type: NgxIntlTelInputComponent,
|
|
2229
|
+
decorators: [{
|
|
2230
|
+
type: Component,
|
|
2231
|
+
args: [{
|
|
2232
|
+
selector: "ngx-intl-tel-input",
|
|
2233
|
+
imports: [
|
|
2234
|
+
NgClass,
|
|
2235
|
+
NgTemplateOutlet,
|
|
2236
|
+
FormsModule,
|
|
2237
|
+
Combobox,
|
|
2238
|
+
ComboboxPopup,
|
|
2239
|
+
ComboboxWidget,
|
|
2240
|
+
Listbox,
|
|
2241
|
+
Option
|
|
2242
|
+
],
|
|
2243
|
+
changeDetection: ChangeDetectionStrategy.Eager,
|
|
2244
|
+
providers: [
|
|
2245
|
+
CountryCode,
|
|
2246
|
+
{
|
|
2247
|
+
provide: NG_VALUE_ACCESSOR,
|
|
2248
|
+
useExisting: forwardRef(() => NgxIntlTelInputComponent),
|
|
2249
|
+
multi: true
|
|
2250
|
+
},
|
|
2251
|
+
{
|
|
2252
|
+
provide: NG_VALIDATORS,
|
|
2253
|
+
useValue: phoneNumberValidator,
|
|
2254
|
+
multi: true
|
|
2255
|
+
}
|
|
2256
|
+
],
|
|
2257
|
+
template: "<div class=\"iti iti--allow-dropdown\" [ngClass]=\"separateDialCodeClass\">\n <div\n #flagContainer\n class=\"iti__flag-container\"\n [class.disabled]=\"disabled\"\n [class.open]=\"isOpen()\"\n (focusout)=\"onFlagContainerFocusOut($event)\"\n >\n @if (hasSearch) {\n <!-- Search mode: a button opens a dialog whose search box is the only combobox. -->\n <div\n #toggleEl\n class=\"iti__selected-flag dropdown-toggle\"\n role=\"button\"\n aria-haspopup=\"dialog\"\n [attr.tabindex]=\"disabled ? -1 : 0\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"isOpen() ? dropdownId : null\"\n [attr.aria-disabled]=\"disabled || null\"\n [attr.aria-label]=\"toggleAriaLabel\"\n (click)=\"setOpen(!isOpen())\"\n (keydown)=\"onToggleKeydown($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"selectedFlag\" />\n </div>\n @if (isOpen()) {\n <div\n #dropdownMenu\n class=\"dropdown-menu iti__dropdown-content\"\n [class.iti__dropdown--above]=\"dropdownAbove()\"\n role=\"dialog\"\n tabindex=\"-1\"\n [id]=\"dropdownId\"\n [attr.aria-label]=\"searchCountryPlaceholder\"\n (keydown.escape)=\"closeDropdown(true)\"\n >\n <div class=\"search-container\">\n <input\n #searchInput\n #searchCombobox=\"ngCombobox\"\n id=\"country-search-box\"\n ngCombobox\n alwaysExpanded\n [value]=\"countrySearchText\"\n (valueChange)=\"onSearchChange($event)\"\n (keydown.escape)=\"closeDropdown(true)\"\n [placeholder]=\"searchCountryPlaceholder\"\n [attr.aria-label]=\"searchCountryPlaceholder\"\n />\n </div>\n <ng-container\n [ngTemplateOutlet]=\"countryPopup\"\n [ngTemplateOutletContext]=\"{ $implicit: searchCombobox }\"\n />\n </div>\n }\n } @else {\n <!-- Select-only mode: the toggle is the combobox. -->\n <div\n #toggleEl\n #toggleCombobox=\"ngCombobox\"\n class=\"iti__selected-flag dropdown-toggle\"\n ngCombobox\n [disabled]=\"disabled\"\n [softDisabled]=\"false\"\n [expanded]=\"isOpen()\"\n (expandedChange)=\"setOpen($event)\"\n [attr.aria-label]=\"toggleAriaLabel\"\n >\n <ng-container [ngTemplateOutlet]=\"selectedFlag\" />\n </div>\n <ng-container\n [ngTemplateOutlet]=\"countryPopup\"\n [ngTemplateOutletContext]=\"{ $implicit: toggleCombobox, menu: true }\"\n />\n }\n </div>\n <input\n type=\"tel\"\n [id]=\"inputId\"\n autocomplete=\"off\"\n class=\"iti__tel-input\"\n [ngClass]=\"cssClass\"\n (blur)=\"onTouched()\"\n (keypress)=\"onInputKeyPress($event)\"\n [(ngModel)]=\"phoneNumber\"\n [ngModelOptions]=\"{ standalone: true }\"\n (ngModelChange)=\"onPhoneNumberChange()\"\n [disabled]=\"disabled\"\n [placeholder]=\"resolvePlaceholder()\"\n [attr.maxLength]=\"maxLength\"\n [attr.validation]=\"phoneValidation\"\n #focusable\n />\n</div>\n\n<ng-template #selectedFlag>\n <div class=\"iti__flag\" [ngClass]=\"selectedCountry.flagClass || ''\"></div>\n @if (separateDialCode) {\n <div class=\"selected-dial-code\">+{{ selectedCountry.dialCode }}</div>\n }\n <div class=\"iti__arrow\"></div>\n</ng-template>\n\n<!--\n Aria renders the popup only while its combobox is expanded. Select-only mode wraps the list in the\n dropdown menu here; in search mode the list already sits in the dropdown menu next to the search box.\n-->\n<ng-template #countryPopup let-combobox let-menu=\"menu\">\n <ng-template ngComboboxPopup [combobox]=\"combobox\">\n <ng-template #list>\n <ul\n #countryList\n #listbox=\"ngListbox\"\n class=\"iti__country-list\"\n ngListbox\n ngComboboxWidget\n tabindex=\"-1\"\n focusMode=\"activedescendant\"\n selectionMode=\"explicit\"\n [id]=\"listboxId\"\n [(value)]=\"selectedOptionIds\"\n [activeDescendant]=\"listbox.activeDescendant()\"\n (click)=\"commitSelection()\"\n (keydown.enter)=\"commitSelection()\"\n (keydown.space)=\"commitSelection()\"\n >\n @for (option of countryOptions; track option.id; let i = $index) {\n @if (!option.preferred && i > 0 && countryOptions[i - 1].preferred) {\n <li class=\"iti__divider\" role=\"separator\" aria-hidden=\"true\"></li>\n }\n <li\n class=\"iti__country\"\n [class.iti__preferred]=\"option.preferred\"\n [class.iti__standard]=\"!option.preferred\"\n ngOption\n [value]=\"option.id\"\n [label]=\"option.country.name\"\n [id]=\"option.id\"\n >\n <div class=\"iti__flag-box\">\n <div class=\"iti__flag\" [ngClass]=\"option.country.flagClass\"></div>\n </div>\n <span class=\"iti__country-name\">{{ option.country.name }}</span>\n <span class=\"iti__dial-code\">+{{ option.country.dialCode }}</span>\n </li>\n }\n </ul>\n </ng-template>\n @if (menu) {\n <div\n #dropdownMenu\n class=\"dropdown-menu iti__dropdown-content\"\n [class.iti__dropdown--above]=\"dropdownAbove()\"\n (keydown.escape)=\"closeDropdown(true)\"\n >\n <ng-container [ngTemplateOutlet]=\"list\" />\n </div>\n } @else {\n <ng-container [ngTemplateOutlet]=\"list\" />\n }\n </ng-template>\n</ng-template>\n",
|
|
2258
|
+
styles: [".dropdown-toggle:focus:not(:focus-visible){outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;list-style:none;font-size:14px;text-align:left;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;box-shadow:0 6px 12px #0000002d;background-clip:padding-box}.open>.dropdown-menu{display:block}li.iti__country:hover,li.iti__country[data-active=true]{background-color:#0000000d}.iti__selected-flag.dropdown-toggle:after{content:none}.iti__selected-flag.dropdown-toggle:focus-visible{outline:2px solid #005fcc;outline-offset:-2px}.iti__flag-container.disabled{cursor:default!important}.iti.iti--allow-dropdown .flag-container.disabled:hover .iti__selected-flag{background:none}.iti__dropdown-content{border:1px solid #ccc;width:fit-content;padding:1px;border-collapse:collapse}.search-container{position:relative}.open>.dropdown-menu.iti__dropdown--above{top:auto;bottom:100%;margin:0 0 2px;display:flex;flex-direction:column-reverse}.iti__dropdown--above .search-container input{border-bottom:none;border-top:1px solid #ccc}.search-container input{width:100%;border:none;border-bottom:1px solid #ccc;padding-left:10px}.search-icon{position:absolute;z-index:2;width:25px;margin:1px 10px}.iti__country-list{position:relative;border:none}.iti input#country-search-box{padding-left:6px}.iti .selected-dial-code{margin-left:6px}.iti.separate-dial-code .iti__selected-flag,.iti.separate-dial-code.iti--allow-dropdown.iti-sdc-2 .iti__selected-flag,.iti.separate-dial-code.iti--allow-dropdown.iti-sdc-3 .iti__selected-flag,.iti.separate-dial-code.iti--allow-dropdown.iti-sdc-4 .iti__selected-flag{width:93px}.iti.separate-dial-code input,.iti.separate-dial-code.iti--allow-dropdown.iti-sdc-2 input,.iti.separate-dial-code.iti--allow-dropdown.iti-sdc-3 input,.iti.separate-dial-code.iti--allow-dropdown.iti-sdc-4 input{padding-left:98px}\n"]
|
|
2259
|
+
}]
|
|
2260
|
+
}],
|
|
2261
|
+
ctorParameters: () => [],
|
|
2262
|
+
propDecorators: {
|
|
2263
|
+
value: [{ type: Input }],
|
|
2264
|
+
preferredCountries: [{ type: Input }],
|
|
2265
|
+
enablePlaceholder: [{ type: Input }],
|
|
2266
|
+
customPlaceholder: [{ type: Input }],
|
|
2267
|
+
numberFormat: [{ type: Input }],
|
|
2268
|
+
cssClass: [{ type: Input }],
|
|
2269
|
+
onlyCountries: [{ type: Input }],
|
|
2270
|
+
enableAutoCountrySelect: [{ type: Input }],
|
|
2271
|
+
searchCountryFlag: [{ type: Input }],
|
|
2272
|
+
searchCountryField: [{ type: Input }],
|
|
2273
|
+
searchCountryPlaceholder: [{ type: Input }],
|
|
2274
|
+
maxLength: [{ type: Input }],
|
|
2275
|
+
selectFirstCountry: [{ type: Input }],
|
|
2276
|
+
selectedCountryISO: [{ type: Input }],
|
|
2277
|
+
phoneValidation: [{ type: Input }],
|
|
2278
|
+
inputId: [{ type: Input }],
|
|
2279
|
+
separateDialCode: [{ type: Input }],
|
|
2280
|
+
excludeCountries: [{ type: Input }],
|
|
2281
|
+
dropdownPlacement: [{ type: Input }],
|
|
2282
|
+
countryChange: [{ type: Output }],
|
|
2283
|
+
countryList: [{
|
|
2284
|
+
type: ViewChild,
|
|
2285
|
+
args: ["countryList"]
|
|
2286
|
+
}],
|
|
2287
|
+
listbox: [{
|
|
2288
|
+
type: i0.ViewChild,
|
|
2289
|
+
args: [i0.forwardRef(() => Listbox), { isSignal: true }]
|
|
2290
|
+
}],
|
|
2291
|
+
options: [{
|
|
2292
|
+
type: i0.ViewChildren,
|
|
2293
|
+
args: [i0.forwardRef(() => Option), { isSignal: true }]
|
|
2294
|
+
}],
|
|
2295
|
+
toggleEl: [{
|
|
2296
|
+
type: i0.ViewChild,
|
|
2297
|
+
args: ["toggleEl", { isSignal: true }]
|
|
2298
|
+
}],
|
|
2299
|
+
flagContainerEl: [{
|
|
2300
|
+
type: i0.ViewChild,
|
|
2301
|
+
args: ["flagContainer", { isSignal: true }]
|
|
2302
|
+
}],
|
|
2303
|
+
dropdownMenuEl: [{
|
|
2304
|
+
type: i0.ViewChild,
|
|
2305
|
+
args: ["dropdownMenu", { isSignal: true }]
|
|
2306
|
+
}],
|
|
2307
|
+
countryListEl: [{
|
|
2308
|
+
type: i0.ViewChild,
|
|
2309
|
+
args: ["countryList", { isSignal: true }]
|
|
2310
|
+
}],
|
|
2311
|
+
searchInputEl: [{
|
|
2312
|
+
type: i0.ViewChild,
|
|
2313
|
+
args: ["searchInput", { isSignal: true }]
|
|
2314
|
+
}],
|
|
2315
|
+
focusableEl: [{
|
|
2316
|
+
type: i0.ViewChild,
|
|
2317
|
+
args: ["focusable", { isSignal: true }]
|
|
2318
|
+
}]
|
|
2319
|
+
}
|
|
2320
|
+
});
|
|
2321
|
+
var NativeElementInjectorDirective = class NativeElementInjectorDirective {
|
|
2322
|
+
constructor() {
|
|
2323
|
+
this.controlDir = inject(NgControl);
|
|
2324
|
+
this.host = inject(ElementRef);
|
|
2325
|
+
}
|
|
2326
|
+
ngOnInit() {
|
|
2327
|
+
if (this.controlDir.control) this.controlDir.control["nativeElement"] = this.host.nativeElement;
|
|
2328
|
+
}
|
|
2329
|
+
static {
|
|
2330
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
2331
|
+
minVersion: "12.0.0",
|
|
2332
|
+
version: "22.2.7",
|
|
2333
|
+
ngImport: i0,
|
|
2334
|
+
type: NativeElementInjectorDirective,
|
|
2335
|
+
deps: [],
|
|
2336
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
2337
|
+
});
|
|
2338
|
+
}
|
|
2339
|
+
static {
|
|
2340
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
2341
|
+
minVersion: "14.0.0",
|
|
2342
|
+
version: "22.2.7",
|
|
2343
|
+
type: NativeElementInjectorDirective,
|
|
2344
|
+
isStandalone: true,
|
|
2345
|
+
selector: "[ngModel], [formControl], [formControlName]",
|
|
2346
|
+
ngImport: i0
|
|
2347
|
+
});
|
|
2348
|
+
}
|
|
2349
|
+
};
|
|
2350
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
2351
|
+
minVersion: "12.0.0",
|
|
2352
|
+
version: "22.2.7",
|
|
2353
|
+
ngImport: i0,
|
|
2354
|
+
type: NativeElementInjectorDirective,
|
|
2355
|
+
decorators: [{
|
|
2356
|
+
type: Directive,
|
|
2357
|
+
args: [{ selector: "[ngModel], [formControl], [formControlName]" }]
|
|
2358
|
+
}]
|
|
2359
|
+
});
|
|
2360
|
+
var NgxIntlTelInputModule = class NgxIntlTelInputModule {
|
|
2361
|
+
static {
|
|
2362
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
2363
|
+
minVersion: "12.0.0",
|
|
2364
|
+
version: "22.2.7",
|
|
2365
|
+
ngImport: i0,
|
|
2366
|
+
type: NgxIntlTelInputModule,
|
|
2367
|
+
deps: [],
|
|
2368
|
+
target: i0.ɵɵFactoryTarget.NgModule
|
|
2369
|
+
});
|
|
2370
|
+
}
|
|
2371
|
+
static {
|
|
2372
|
+
this.ɵmod = i0.ɵɵngDeclareNgModule({
|
|
2373
|
+
minVersion: "14.0.0",
|
|
2374
|
+
version: "22.2.7",
|
|
2375
|
+
ngImport: i0,
|
|
2376
|
+
type: NgxIntlTelInputModule,
|
|
2377
|
+
imports: [NgxIntlTelInputComponent, NativeElementInjectorDirective],
|
|
2378
|
+
exports: [NgxIntlTelInputComponent, NativeElementInjectorDirective]
|
|
2379
|
+
});
|
|
2380
|
+
}
|
|
2381
|
+
static {
|
|
2382
|
+
this.ɵinj = i0.ɵɵngDeclareInjector({
|
|
2383
|
+
minVersion: "12.0.0",
|
|
2384
|
+
version: "22.2.7",
|
|
2385
|
+
ngImport: i0,
|
|
2386
|
+
type: NgxIntlTelInputModule,
|
|
2387
|
+
imports: [NgxIntlTelInputComponent]
|
|
2388
|
+
});
|
|
2389
|
+
}
|
|
2390
|
+
};
|
|
2391
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
2392
|
+
minVersion: "12.0.0",
|
|
2393
|
+
version: "22.2.7",
|
|
2394
|
+
ngImport: i0,
|
|
2395
|
+
type: NgxIntlTelInputModule,
|
|
2396
|
+
decorators: [{
|
|
2397
|
+
type: NgModule,
|
|
2398
|
+
args: [{
|
|
2399
|
+
imports: [NgxIntlTelInputComponent, NativeElementInjectorDirective],
|
|
2400
|
+
exports: [NgxIntlTelInputComponent, NativeElementInjectorDirective]
|
|
2401
|
+
}]
|
|
2402
|
+
}]
|
|
2403
|
+
});
|
|
2404
|
+
export { CountryISO, NativeElementInjectorDirective, NgxIntlTelInputComponent, NgxIntlTelInputModule, PhoneNumberFormat, SearchCountryField };
|
|
645
2405
|
|
|
646
|
-
|
|
647
|
-
(function (PhoneNumberFormat) {
|
|
648
|
-
PhoneNumberFormat["International"] = "INTERNATIONAL";
|
|
649
|
-
PhoneNumberFormat["National"] = "NATIONAL";
|
|
650
|
-
})(PhoneNumberFormat || (PhoneNumberFormat = {}));
|
|
651
|
-
|
|
652
|
-
/*
|
|
653
|
-
"Property 'nativeElement' does not exist on type 'FormControl'".
|
|
654
|
-
'NativeElementInjectorDirective' injects nativeElement to each control,
|
|
655
|
-
so we can access it from inside validator for example.
|
|
656
|
-
More about this approach and reasons for this:
|
|
657
|
-
https://github.com/angular/angular/issues/18025
|
|
658
|
-
https://stackoverflow.com/a/54075119/1617590
|
|
659
|
-
*/
|
|
660
|
-
class NativeElementInjectorDirective {
|
|
661
|
-
constructor(controlDir, host) {
|
|
662
|
-
this.controlDir = controlDir;
|
|
663
|
-
this.host = host;
|
|
664
|
-
}
|
|
665
|
-
ngOnInit() {
|
|
666
|
-
if (this.controlDir.control) {
|
|
667
|
-
// @ts-ignore
|
|
668
|
-
this.controlDir.control['nativeElement'] = this.host.nativeElement;
|
|
669
|
-
}
|
|
670
|
-
}
|
|
671
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NativeElementInjectorDirective, deps: [{ token: i3.NgControl }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
672
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: NativeElementInjectorDirective, selector: "[ngModel], [formControl], [formControlName]", ngImport: i0 }); }
|
|
673
|
-
}
|
|
674
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NativeElementInjectorDirective, decorators: [{
|
|
675
|
-
type: Directive,
|
|
676
|
-
args: [{
|
|
677
|
-
// tslint:disable-next-line: directive-selector
|
|
678
|
-
selector: '[ngModel], [formControl], [formControlName]',
|
|
679
|
-
}]
|
|
680
|
-
}], ctorParameters: function () { return [{ type: i3.NgControl }, { type: i0.ElementRef }]; } });
|
|
681
|
-
|
|
682
|
-
class NgxIntlTelInputComponent {
|
|
683
|
-
constructor(countryCodeData) {
|
|
684
|
-
this.countryCodeData = countryCodeData;
|
|
685
|
-
this.value = '';
|
|
686
|
-
this.preferredCountries = [];
|
|
687
|
-
this.enablePlaceholder = true;
|
|
688
|
-
this.numberFormat = PhoneNumberFormat.International;
|
|
689
|
-
this.cssClass = 'form-control';
|
|
690
|
-
this.onlyCountries = [];
|
|
691
|
-
this.enableAutoCountrySelect = true;
|
|
692
|
-
this.searchCountryFlag = false;
|
|
693
|
-
this.searchCountryField = [SearchCountryField.All];
|
|
694
|
-
this.searchCountryPlaceholder = 'Search Country';
|
|
695
|
-
this.selectFirstCountry = true;
|
|
696
|
-
this.phoneValidation = true;
|
|
697
|
-
this.inputId = 'phone';
|
|
698
|
-
this.separateDialCode = false;
|
|
699
|
-
this.excludeCountries = [];
|
|
700
|
-
this.countryChange = new EventEmitter();
|
|
701
|
-
this.selectedCountry = {
|
|
702
|
-
areaCodes: undefined,
|
|
703
|
-
dialCode: '',
|
|
704
|
-
htmlId: '',
|
|
705
|
-
flagClass: '',
|
|
706
|
-
iso2: '',
|
|
707
|
-
name: '',
|
|
708
|
-
placeHolder: '',
|
|
709
|
-
priority: 0,
|
|
710
|
-
};
|
|
711
|
-
this.phoneNumber = '';
|
|
712
|
-
this.allCountries = [];
|
|
713
|
-
this.preferredCountriesInDropDown = [];
|
|
714
|
-
// Has to be 'any' to prevent a need to install @types/google-libphonenumber by the package user...
|
|
715
|
-
this.phoneUtil = lpn.PhoneNumberUtil.getInstance();
|
|
716
|
-
this.disabled = false;
|
|
717
|
-
this.errors = ['Phone number is required.'];
|
|
718
|
-
this.countrySearchText = '';
|
|
719
|
-
this.onTouched = () => { };
|
|
720
|
-
this.propagateChange = (_) => { };
|
|
721
|
-
// If this is not set, ngx-bootstrap will try to use the bs3 CSS (which is not what we've embedded) and will
|
|
722
|
-
// Add the wrong classes and such
|
|
723
|
-
// setTheme('bs4');
|
|
724
|
-
}
|
|
725
|
-
ngOnInit() {
|
|
726
|
-
this.init();
|
|
727
|
-
}
|
|
728
|
-
ngOnChanges(changes) {
|
|
729
|
-
const selectedISO = changes['selectedCountryISO'];
|
|
730
|
-
if (this.allCountries &&
|
|
731
|
-
selectedISO &&
|
|
732
|
-
selectedISO.currentValue !== selectedISO.previousValue) {
|
|
733
|
-
this.updateSelectedCountry();
|
|
734
|
-
}
|
|
735
|
-
if (changes['preferredCountries']) {
|
|
736
|
-
this.updatePreferredCountries();
|
|
737
|
-
}
|
|
738
|
-
this.checkSeparateDialCodeStyle();
|
|
739
|
-
}
|
|
740
|
-
/*
|
|
741
|
-
This is a wrapper method to avoid calling this.ngOnInit() in writeValue().
|
|
742
|
-
Ref: http://codelyzer.com/rules/no-life-cycle-call/
|
|
743
|
-
*/
|
|
744
|
-
init() {
|
|
745
|
-
this.fetchCountryData();
|
|
746
|
-
if (this.excludeCountries.length) {
|
|
747
|
-
this.allCountries = this.allCountries.filter((c) => !this.excludeCountries.includes(c.iso2));
|
|
748
|
-
}
|
|
749
|
-
if (this.preferredCountries.length) {
|
|
750
|
-
this.updatePreferredCountries();
|
|
751
|
-
}
|
|
752
|
-
if (this.onlyCountries.length) {
|
|
753
|
-
this.allCountries = this.allCountries.filter((c) => this.onlyCountries.includes(c.iso2));
|
|
754
|
-
}
|
|
755
|
-
if (this.selectFirstCountry) {
|
|
756
|
-
if (this.preferredCountriesInDropDown.length) {
|
|
757
|
-
this.setSelectedCountry(this.preferredCountriesInDropDown[0]);
|
|
758
|
-
}
|
|
759
|
-
else {
|
|
760
|
-
this.setSelectedCountry(this.allCountries[0]);
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
this.updateSelectedCountry();
|
|
764
|
-
this.checkSeparateDialCodeStyle();
|
|
765
|
-
}
|
|
766
|
-
setSelectedCountry(country) {
|
|
767
|
-
this.selectedCountry = country;
|
|
768
|
-
this.countryChange.emit(country);
|
|
769
|
-
}
|
|
770
|
-
/**
|
|
771
|
-
* Search country based on country name, iso2, dialCode or all of them.
|
|
772
|
-
*/
|
|
773
|
-
searchCountry() {
|
|
774
|
-
if (!this.countrySearchText) {
|
|
775
|
-
this.countryList.nativeElement.querySelector('.iti__country-list li').scrollIntoView({
|
|
776
|
-
behavior: 'smooth',
|
|
777
|
-
block: 'nearest',
|
|
778
|
-
inline: 'nearest',
|
|
779
|
-
});
|
|
780
|
-
return;
|
|
781
|
-
}
|
|
782
|
-
const countrySearchTextLower = this.countrySearchText.toLowerCase();
|
|
783
|
-
// @ts-ignore
|
|
784
|
-
const country = this.allCountries.filter(c => {
|
|
785
|
-
if (this.searchCountryField.indexOf(SearchCountryField.All) > -1) {
|
|
786
|
-
// Search in all fields
|
|
787
|
-
if (c.iso2.toLowerCase().startsWith(countrySearchTextLower)) {
|
|
788
|
-
return c;
|
|
789
|
-
}
|
|
790
|
-
if (c.name.toLowerCase().startsWith(countrySearchTextLower)) {
|
|
791
|
-
return c;
|
|
792
|
-
}
|
|
793
|
-
if (c.dialCode.startsWith(this.countrySearchText)) {
|
|
794
|
-
return c;
|
|
795
|
-
}
|
|
796
|
-
}
|
|
797
|
-
else {
|
|
798
|
-
// Or search by specific SearchCountryField(s)
|
|
799
|
-
if (this.searchCountryField.indexOf(SearchCountryField.Iso2) > -1) {
|
|
800
|
-
if (c.iso2.toLowerCase().startsWith(countrySearchTextLower)) {
|
|
801
|
-
return c;
|
|
802
|
-
}
|
|
803
|
-
}
|
|
804
|
-
if (this.searchCountryField.indexOf(SearchCountryField.Name) > -1) {
|
|
805
|
-
if (c.name.toLowerCase().startsWith(countrySearchTextLower)) {
|
|
806
|
-
return c;
|
|
807
|
-
}
|
|
808
|
-
}
|
|
809
|
-
if (this.searchCountryField.indexOf(SearchCountryField.DialCode) > -1) {
|
|
810
|
-
if (c.dialCode.startsWith(this.countrySearchText)) {
|
|
811
|
-
return c;
|
|
812
|
-
}
|
|
813
|
-
}
|
|
814
|
-
}
|
|
815
|
-
});
|
|
816
|
-
if (country.length > 0) {
|
|
817
|
-
const el = this.countryList.nativeElement.querySelector('#' + country[0].htmlId);
|
|
818
|
-
if (el) {
|
|
819
|
-
el.scrollIntoView({
|
|
820
|
-
behavior: 'smooth',
|
|
821
|
-
block: 'nearest',
|
|
822
|
-
inline: 'nearest',
|
|
823
|
-
});
|
|
824
|
-
}
|
|
825
|
-
}
|
|
826
|
-
this.checkSeparateDialCodeStyle();
|
|
827
|
-
}
|
|
828
|
-
onPhoneNumberChange() {
|
|
829
|
-
let countryCode;
|
|
830
|
-
// Handle the case where the user sets the value programatically based on a persisted ChangeData obj.
|
|
831
|
-
if (this.phoneNumber && typeof this.phoneNumber === 'object') {
|
|
832
|
-
const numberObj = this.phoneNumber;
|
|
833
|
-
this.phoneNumber = numberObj.number;
|
|
834
|
-
countryCode = numberObj.countryCode;
|
|
835
|
-
}
|
|
836
|
-
this.value = this.phoneNumber;
|
|
837
|
-
countryCode = countryCode || this.selectedCountry.iso2;
|
|
838
|
-
// @ts-ignore
|
|
839
|
-
const number = this.getParsedNumber(this.phoneNumber, countryCode);
|
|
840
|
-
// auto select country based on the extension (and areaCode if needed) (e.g select Canada if number starts with +1 416)
|
|
841
|
-
if (this.enableAutoCountrySelect) {
|
|
842
|
-
countryCode =
|
|
843
|
-
number && number.getCountryCode()
|
|
844
|
-
? // @ts-ignore
|
|
845
|
-
this.getCountryIsoCode(number.getCountryCode(), number)
|
|
846
|
-
: this.selectedCountry.iso2;
|
|
847
|
-
if (countryCode && countryCode !== this.selectedCountry.iso2) {
|
|
848
|
-
const newCountry = this.allCountries
|
|
849
|
-
.slice()
|
|
850
|
-
.sort((a, b) => {
|
|
851
|
-
return a.priority - b.priority;
|
|
852
|
-
})
|
|
853
|
-
.find(c => c.iso2 === countryCode);
|
|
854
|
-
if (newCountry) {
|
|
855
|
-
this.selectedCountry = newCountry;
|
|
856
|
-
}
|
|
857
|
-
}
|
|
858
|
-
}
|
|
859
|
-
countryCode = countryCode ? countryCode : this.selectedCountry.iso2;
|
|
860
|
-
this.checkSeparateDialCodeStyle();
|
|
861
|
-
if (!this.value) {
|
|
862
|
-
// Reason: avoid https://stackoverflow.com/a/54358133/1617590
|
|
863
|
-
// tslint:disable-next-line: no-null-keyword
|
|
864
|
-
// @ts-ignore
|
|
865
|
-
this.propagateChange(null);
|
|
866
|
-
}
|
|
867
|
-
else {
|
|
868
|
-
const intlNo = number
|
|
869
|
-
? this.phoneUtil.format(number, lpn.PhoneNumberFormat.INTERNATIONAL)
|
|
870
|
-
: '';
|
|
871
|
-
// parse phoneNumber if separate dial code is needed
|
|
872
|
-
if (this.separateDialCode && intlNo) {
|
|
873
|
-
this.value = this.removeDialCode(intlNo);
|
|
874
|
-
}
|
|
875
|
-
this.propagateChange({
|
|
876
|
-
number: this.value,
|
|
877
|
-
internationalNumber: intlNo,
|
|
878
|
-
nationalNumber: number ? this.phoneUtil.format(number, lpn.PhoneNumberFormat.NATIONAL) : '',
|
|
879
|
-
e164Number: number ? this.phoneUtil.format(number, lpn.PhoneNumberFormat.E164) : '',
|
|
880
|
-
countryCode: countryCode.toUpperCase(),
|
|
881
|
-
dialCode: '+' + this.selectedCountry.dialCode,
|
|
882
|
-
});
|
|
883
|
-
}
|
|
884
|
-
}
|
|
885
|
-
onCountrySelect(country, el) {
|
|
886
|
-
this.setSelectedCountry(country);
|
|
887
|
-
this.checkSeparateDialCodeStyle();
|
|
888
|
-
if (this.phoneNumber && this.phoneNumber.length > 0) {
|
|
889
|
-
this.value = this.phoneNumber;
|
|
890
|
-
const number = this.getParsedNumber(this.phoneNumber, this.selectedCountry.iso2);
|
|
891
|
-
const intlNo = number
|
|
892
|
-
? this.phoneUtil.format(number, lpn.PhoneNumberFormat.INTERNATIONAL)
|
|
893
|
-
: '';
|
|
894
|
-
// parse phoneNumber if separate dial code is needed
|
|
895
|
-
if (this.separateDialCode && intlNo) {
|
|
896
|
-
this.value = this.removeDialCode(intlNo);
|
|
897
|
-
}
|
|
898
|
-
this.propagateChange({
|
|
899
|
-
number: this.value,
|
|
900
|
-
internationalNumber: intlNo,
|
|
901
|
-
nationalNumber: number ? this.phoneUtil.format(number, lpn.PhoneNumberFormat.NATIONAL) : '',
|
|
902
|
-
e164Number: number ? this.phoneUtil.format(number, lpn.PhoneNumberFormat.E164) : '',
|
|
903
|
-
countryCode: this.selectedCountry.iso2.toUpperCase(),
|
|
904
|
-
dialCode: '+' + this.selectedCountry.dialCode,
|
|
905
|
-
});
|
|
906
|
-
}
|
|
907
|
-
else {
|
|
908
|
-
// Reason: avoid https://stackoverflow.com/a/54358133/1617590
|
|
909
|
-
// tslint:disable-next-line: no-null-keyword
|
|
910
|
-
// @ts-ignore
|
|
911
|
-
this.propagateChange(null);
|
|
912
|
-
}
|
|
913
|
-
el.focus();
|
|
914
|
-
}
|
|
915
|
-
onInputKeyPress(event) {
|
|
916
|
-
const allowedChars = /[0-9\+\-\(\)\ ]/;
|
|
917
|
-
const allowedCtrlChars = /[axcv]/; // Allows copy-pasting
|
|
918
|
-
const allowedOtherKeys = [
|
|
919
|
-
'ArrowLeft',
|
|
920
|
-
'ArrowUp',
|
|
921
|
-
'ArrowRight',
|
|
922
|
-
'ArrowDown',
|
|
923
|
-
'Home',
|
|
924
|
-
'End',
|
|
925
|
-
'Insert',
|
|
926
|
-
'Delete',
|
|
927
|
-
'Backspace',
|
|
928
|
-
];
|
|
929
|
-
if (!allowedChars.test(event.key) &&
|
|
930
|
-
!(event.ctrlKey && allowedCtrlChars.test(event.key)) &&
|
|
931
|
-
!allowedOtherKeys.includes(event.key)) {
|
|
932
|
-
event.preventDefault();
|
|
933
|
-
}
|
|
934
|
-
}
|
|
935
|
-
registerOnChange(fn) {
|
|
936
|
-
this.propagateChange = fn;
|
|
937
|
-
}
|
|
938
|
-
registerOnTouched(fn) {
|
|
939
|
-
this.onTouched = fn;
|
|
940
|
-
}
|
|
941
|
-
setDisabledState(isDisabled) {
|
|
942
|
-
this.disabled = isDisabled;
|
|
943
|
-
}
|
|
944
|
-
writeValue(obj) {
|
|
945
|
-
if (obj === undefined) {
|
|
946
|
-
this.init();
|
|
947
|
-
}
|
|
948
|
-
this.phoneNumber = obj;
|
|
949
|
-
setTimeout(() => {
|
|
950
|
-
this.onPhoneNumberChange();
|
|
951
|
-
}, 1);
|
|
952
|
-
}
|
|
953
|
-
resolvePlaceholder() {
|
|
954
|
-
let placeholder = '';
|
|
955
|
-
if (this.customPlaceholder) {
|
|
956
|
-
placeholder = this.customPlaceholder;
|
|
957
|
-
}
|
|
958
|
-
else if (this.selectedCountry.placeHolder) {
|
|
959
|
-
placeholder = this.selectedCountry.placeHolder;
|
|
960
|
-
if (this.separateDialCode) {
|
|
961
|
-
placeholder = this.removeDialCode(placeholder);
|
|
962
|
-
}
|
|
963
|
-
}
|
|
964
|
-
return placeholder;
|
|
965
|
-
}
|
|
966
|
-
/* --------------------------------- Helpers -------------------------------- */
|
|
967
|
-
/**
|
|
968
|
-
* Returns parse PhoneNumber object.
|
|
969
|
-
* @param phoneNumber string
|
|
970
|
-
* @param countryCode string
|
|
971
|
-
*/
|
|
972
|
-
getParsedNumber(phoneNumber, countryCode) {
|
|
973
|
-
let number;
|
|
974
|
-
try {
|
|
975
|
-
number = this.phoneUtil.parse(phoneNumber, countryCode.toUpperCase());
|
|
976
|
-
}
|
|
977
|
-
catch (e) { }
|
|
978
|
-
// @ts-ignore
|
|
979
|
-
return number;
|
|
980
|
-
}
|
|
981
|
-
/**
|
|
982
|
-
* Adjusts input alignment based on the dial code presentation style.
|
|
983
|
-
*/
|
|
984
|
-
checkSeparateDialCodeStyle() {
|
|
985
|
-
if (this.separateDialCode && this.selectedCountry) {
|
|
986
|
-
const cntryCd = this.selectedCountry.dialCode;
|
|
987
|
-
this.separateDialCodeClass = 'separate-dial-code iti-sdc-' + (cntryCd.length + 1);
|
|
988
|
-
}
|
|
989
|
-
else {
|
|
990
|
-
this.separateDialCodeClass = '';
|
|
991
|
-
}
|
|
992
|
-
}
|
|
993
|
-
/**
|
|
994
|
-
* Cleans dialcode from phone number string.
|
|
995
|
-
* @param phoneNumber string
|
|
996
|
-
*/
|
|
997
|
-
removeDialCode(phoneNumber) {
|
|
998
|
-
const number = this.getParsedNumber(phoneNumber, this.selectedCountry.iso2);
|
|
999
|
-
phoneNumber = this.phoneUtil.format(number, lpn.PhoneNumberFormat[this.numberFormat]);
|
|
1000
|
-
if (this.selectedCountry.iso2 === 'ua') {
|
|
1001
|
-
phoneNumber = '+380 31 123 4567';
|
|
1002
|
-
}
|
|
1003
|
-
if (phoneNumber.startsWith('+') && this.separateDialCode) {
|
|
1004
|
-
phoneNumber = phoneNumber.substr(phoneNumber.indexOf(' ') + 1);
|
|
1005
|
-
}
|
|
1006
|
-
return phoneNumber;
|
|
1007
|
-
}
|
|
1008
|
-
/**
|
|
1009
|
-
* Sifts through all countries and returns iso code of the primary country
|
|
1010
|
-
* based on the number provided.
|
|
1011
|
-
* @param countryCode country code in number format
|
|
1012
|
-
* @param number PhoneNumber object
|
|
1013
|
-
*/
|
|
1014
|
-
getCountryIsoCode(countryCode, number) {
|
|
1015
|
-
// Will use this to match area code from the first numbers
|
|
1016
|
-
// @ts-ignore
|
|
1017
|
-
const rawNumber = number['values_']['2'].toString();
|
|
1018
|
-
// List of all countries with countryCode (can be more than one. e.x. US, CA, DO, PR all have +1 countryCode)
|
|
1019
|
-
const countries = this.allCountries.filter(c => c.dialCode === countryCode.toString());
|
|
1020
|
-
// Main country is the country, which has no areaCodes specified in country-code.ts file.
|
|
1021
|
-
const mainCountry = countries.find(c => c.areaCodes === undefined);
|
|
1022
|
-
// Secondary countries are all countries, which have areaCodes specified in country-code.ts file.
|
|
1023
|
-
const secondaryCountries = countries.filter(c => c.areaCodes !== undefined);
|
|
1024
|
-
let matchedCountry = mainCountry ? mainCountry.iso2 : undefined;
|
|
1025
|
-
/*
|
|
1026
|
-
Iterate over each secondary country and check if nationalNumber starts with any of areaCodes available.
|
|
1027
|
-
If no matches found, fallback to the main country.
|
|
1028
|
-
*/
|
|
1029
|
-
secondaryCountries.forEach(country => {
|
|
1030
|
-
// @ts-ignore
|
|
1031
|
-
country.areaCodes.forEach(areaCode => {
|
|
1032
|
-
if (rawNumber.startsWith(areaCode)) {
|
|
1033
|
-
matchedCountry = country.iso2;
|
|
1034
|
-
}
|
|
1035
|
-
});
|
|
1036
|
-
});
|
|
1037
|
-
return matchedCountry;
|
|
1038
|
-
}
|
|
1039
|
-
/**
|
|
1040
|
-
* Gets formatted example phone number from phoneUtil.
|
|
1041
|
-
* @param countryCode string
|
|
1042
|
-
*/
|
|
1043
|
-
getPhoneNumberPlaceHolder(countryCode) {
|
|
1044
|
-
try {
|
|
1045
|
-
return this.phoneUtil.format(this.phoneUtil.getExampleNumber(countryCode), lpn.PhoneNumberFormat[this.numberFormat]);
|
|
1046
|
-
}
|
|
1047
|
-
catch (e) {
|
|
1048
|
-
// @ts-ignore
|
|
1049
|
-
return e;
|
|
1050
|
-
}
|
|
1051
|
-
}
|
|
1052
|
-
/**
|
|
1053
|
-
* Clearing the list to avoid duplicates (https://github.com/webcat12345/ngx-intl-tel-input/issues/248)
|
|
1054
|
-
*/
|
|
1055
|
-
fetchCountryData() {
|
|
1056
|
-
this.allCountries = [];
|
|
1057
|
-
this.countryCodeData.allCountries.forEach((c) => {
|
|
1058
|
-
const country = {
|
|
1059
|
-
name: c[0].toString(),
|
|
1060
|
-
iso2: c[1],
|
|
1061
|
-
dialCode: c[2].toString(),
|
|
1062
|
-
priority: +c[3] || 0,
|
|
1063
|
-
areaCodes: c[4] || undefined,
|
|
1064
|
-
htmlId: `iti-0__item-${c[1].toString()}`,
|
|
1065
|
-
flagClass: `iti__${c[1].toString().toLocaleLowerCase()}`,
|
|
1066
|
-
placeHolder: '',
|
|
1067
|
-
};
|
|
1068
|
-
if (this.enablePlaceholder) {
|
|
1069
|
-
country.placeHolder = this.getPhoneNumberPlaceHolder(country.iso2.toUpperCase());
|
|
1070
|
-
if (country.iso2 === 'ua') {
|
|
1071
|
-
country.placeHolder = '+380 31 123 4567';
|
|
1072
|
-
}
|
|
1073
|
-
}
|
|
1074
|
-
this.allCountries.push(country);
|
|
1075
|
-
});
|
|
1076
|
-
}
|
|
1077
|
-
/**
|
|
1078
|
-
* Populates preferredCountriesInDropDown with prefferred countries.
|
|
1079
|
-
*/
|
|
1080
|
-
updatePreferredCountries() {
|
|
1081
|
-
if (this.preferredCountries.length) {
|
|
1082
|
-
this.preferredCountriesInDropDown = this.allCountries.filter((c) => {
|
|
1083
|
-
return this.preferredCountries.includes(c.iso2) && !this.excludeCountries.includes(c.iso2);
|
|
1084
|
-
});
|
|
1085
|
-
}
|
|
1086
|
-
}
|
|
1087
|
-
/**
|
|
1088
|
-
* Updates selectedCountry.
|
|
1089
|
-
*/
|
|
1090
|
-
updateSelectedCountry() {
|
|
1091
|
-
if (this.selectedCountryISO && !this.excludeCountries.includes(this.selectedCountryISO)) {
|
|
1092
|
-
// @ts-ignore
|
|
1093
|
-
this.selectedCountry = this.allCountries.find((c) => {
|
|
1094
|
-
return c.iso2.toLowerCase() === this.selectedCountryISO.toLowerCase();
|
|
1095
|
-
});
|
|
1096
|
-
if (this.selectedCountry) {
|
|
1097
|
-
if (this.phoneNumber) {
|
|
1098
|
-
this.onPhoneNumberChange();
|
|
1099
|
-
}
|
|
1100
|
-
else {
|
|
1101
|
-
// Reason: avoid https://stackoverflow.com/a/54358133/1617590
|
|
1102
|
-
// tslint:disable-next-line: no-null-keyword
|
|
1103
|
-
// @ts-ignore
|
|
1104
|
-
this.propagateChange(null);
|
|
1105
|
-
}
|
|
1106
|
-
}
|
|
1107
|
-
}
|
|
1108
|
-
}
|
|
1109
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NgxIntlTelInputComponent, deps: [{ token: CountryCode }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1110
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: NgxIntlTelInputComponent, selector: "ngx-intl-tel-input", inputs: { value: "value", preferredCountries: "preferredCountries", enablePlaceholder: "enablePlaceholder", customPlaceholder: "customPlaceholder", numberFormat: "numberFormat", cssClass: "cssClass", onlyCountries: "onlyCountries", enableAutoCountrySelect: "enableAutoCountrySelect", searchCountryFlag: "searchCountryFlag", searchCountryField: "searchCountryField", searchCountryPlaceholder: "searchCountryPlaceholder", maxLength: "maxLength", selectFirstCountry: "selectFirstCountry", selectedCountryISO: "selectedCountryISO", phoneValidation: "phoneValidation", inputId: "inputId", separateDialCode: "separateDialCode", excludeCountries: "excludeCountries" }, outputs: { countryChange: "countryChange" }, providers: [
|
|
1111
|
-
CountryCode,
|
|
1112
|
-
{
|
|
1113
|
-
provide: NG_VALUE_ACCESSOR,
|
|
1114
|
-
// tslint:disable-next-line:no-forward-ref
|
|
1115
|
-
useExisting: forwardRef(() => NgxIntlTelInputComponent),
|
|
1116
|
-
multi: true,
|
|
1117
|
-
},
|
|
1118
|
-
{
|
|
1119
|
-
provide: NG_VALIDATORS,
|
|
1120
|
-
useValue: phoneNumberValidator,
|
|
1121
|
-
multi: true,
|
|
1122
|
-
},
|
|
1123
|
-
], viewQueries: [{ propertyName: "countryList", first: true, predicate: ["countryList"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"iti iti--allow-dropdown\" [ngClass]=\"separateDialCodeClass\">\n <div\n class=\"iti__flag-container\"\n dropdown\n [ngClass]=\"{ disabled: disabled }\"\n [isDisabled]=\"disabled\"\n >\n <div class=\"iti__selected-flag dropdown-toggle\" dropdownToggle>\n <div class=\"iti__flag\" [ngClass]=\"selectedCountry.flagClass || ''\"></div>\n <div *ngIf=\"separateDialCode\" class=\"selected-dial-code\">+{{ selectedCountry.dialCode }}</div>\n <div class=\"iti__arrow\"></div>\n </div>\n <div *dropdownMenu class=\"dropdown-menu iti__dropdown-content\">\n <div class=\"search-container\" *ngIf=\"searchCountryFlag && searchCountryField\">\n <input\n id=\"country-search-box\"\n [(ngModel)]=\"countrySearchText\"\n (keyup)=\"searchCountry()\"\n (click)=\"$event.stopPropagation()\"\n [placeholder]=\"searchCountryPlaceholder\"\n autofocus\n />\n </div>\n <ul class=\"iti__country-list\" #countryList>\n <li\n class=\"iti__country iti__preferred\"\n *ngFor=\"let country of preferredCountriesInDropDown\"\n (click)=\"onCountrySelect(country, focusable)\"\n [id]=\"country.htmlId + '-preferred'\"\n >\n <div class=\"iti__flag-box\">\n <div class=\"iti__flag\" [ngClass]=\"country.flagClass\"></div>\n </div>\n <span class=\"iti__country-name\">{{ country.name }}</span>\n <span class=\"iti__dial-code\">+{{ country.dialCode }}</span>\n </li>\n <li class=\"iti__divider\" *ngIf=\"preferredCountriesInDropDown?.length\"></li>\n <li\n class=\"iti__country iti__standard\"\n *ngFor=\"let country of allCountries\"\n (click)=\"onCountrySelect(country, focusable)\"\n [id]=\"country.htmlId\"\n >\n <div class=\"iti__flag-box\">\n <div class=\"iti__flag\" [ngClass]=\"country.flagClass\"></div>\n </div>\n <span class=\"iti__country-name\">{{ country.name }}</span>\n <span class=\"iti__dial-code\">+{{ country.dialCode }}</span>\n </li>\n </ul>\n </div>\n </div>\n <input\n type=\"tel\"\n [id]=\"inputId\"\n autocomplete=\"off\"\n class=\"iti__tel-input\"\n [ngClass]=\"cssClass\"\n (blur)=\"onTouched()\"\n (keypress)=\"onInputKeyPress($event)\"\n [(ngModel)]=\"phoneNumber\"\n (ngModelChange)=\"onPhoneNumberChange()\"\n [disabled]=\"disabled\"\n [placeholder]=\"resolvePlaceholder()\"\n [attr.maxLength]=\"maxLength\"\n [attr.validation]=\"phoneValidation\"\n #focusable\n />\n</div>\n", styles: [".caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px dashed;border-top:4px solid \\\t;border-right:4px solid transparent;border-left:4px solid transparent}.dropup,.dropdown{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;list-style:none;font-size:14px;text-align:left;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;box-shadow:0 6px 12px #0000002d;background-clip:padding-box}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.dropdown-menu>li>a:hover,.dropdown-menu>li>a:focus{text-decoration:none;color:#262626;background-color:#f5f5f5}.dropdown-menu>.active>a,.dropdown-menu>.active>a:hover,.dropdown-menu>.active>a:focus{color:#fff;text-decoration:none;outline:0;background-color:#337ab7}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{color:#777}.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{text-decoration:none;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);cursor:not-allowed}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{left:auto;right:0}.dropdown-menu-left{left:0;right:auto}.dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.42857143;color:#777;white-space:nowrap}.dropdown-backdrop{position:fixed;inset:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{border-top:0;border-bottom:4px dashed;border-bottom:4px solid \\\t;content:\"\"}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:2px}@media (min-width: 768px){.navbar-right .dropdown-menu{left:auto;right:0}.navbar-right .dropdown-menu-left{left:0;right:auto}}\n", "li.iti__country:hover{background-color:#0000000d}.iti__selected-flag.dropdown-toggle:after{content:none}.iti__flag-container.disabled{cursor:default!important}.iti.iti--allow-dropdown .flag-container.disabled:hover .iti__selected-flag{background:none}.iti__dropdown-content{border:1px solid #ccc;width:-moz-fit-content;width:fit-content;padding:1px;border-collapse:collapse}.search-container{position:relative}.search-container input{width:100%;border:none;border-bottom:1px solid #ccc;padding-left:10px}.search-icon{position:absolute;z-index:2;width:25px;margin:1px 10px}.iti__country-list{position:relative;border:none}.iti input#country-search-box{padding-left:6px}.iti .selected-dial-code{margin-left:6px}.iti.separate-dial-code .iti__selected-flag,.iti.separate-dial-code.iti--allow-dropdown.iti-sdc-2 .iti__selected-flag,.iti.separate-dial-code.iti--allow-dropdown.iti-sdc-3 .iti__selected-flag,.iti.separate-dial-code.iti--allow-dropdown.iti-sdc-4 .iti__selected-flag{width:93px}.iti.separate-dial-code input,.iti.separate-dial-code.iti--allow-dropdown.iti-sdc-2 input,.iti.separate-dial-code.iti--allow-dropdown.iti-sdc-3 input,.iti.separate-dial-code.iti--allow-dropdown.iti-sdc-4 input{padding-left:98px}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i4.BsDropdownMenuDirective, selector: "[bsDropdownMenu],[dropdownMenu]", exportAs: ["bs-dropdown-menu"] }, { kind: "directive", type: i4.BsDropdownToggleDirective, selector: "[bsDropdownToggle],[dropdownToggle]", exportAs: ["bs-dropdown-toggle"] }, { kind: "directive", type: i4.BsDropdownDirective, selector: "[bsDropdown], [dropdown]", inputs: ["placement", "triggers", "container", "dropup", "autoClose", "isAnimated", "insideClick", "isDisabled", "isOpen"], outputs: ["isOpenChange", "onShown", "onHidden"], exportAs: ["bs-dropdown"] }, { kind: "directive", type: NativeElementInjectorDirective, selector: "[ngModel], [formControl], [formControlName]" }] }); }
|
|
1124
|
-
}
|
|
1125
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NgxIntlTelInputComponent, decorators: [{
|
|
1126
|
-
type: Component,
|
|
1127
|
-
args: [{ selector: 'ngx-intl-tel-input', providers: [
|
|
1128
|
-
CountryCode,
|
|
1129
|
-
{
|
|
1130
|
-
provide: NG_VALUE_ACCESSOR,
|
|
1131
|
-
// tslint:disable-next-line:no-forward-ref
|
|
1132
|
-
useExisting: forwardRef(() => NgxIntlTelInputComponent),
|
|
1133
|
-
multi: true,
|
|
1134
|
-
},
|
|
1135
|
-
{
|
|
1136
|
-
provide: NG_VALIDATORS,
|
|
1137
|
-
useValue: phoneNumberValidator,
|
|
1138
|
-
multi: true,
|
|
1139
|
-
},
|
|
1140
|
-
], template: "<div class=\"iti iti--allow-dropdown\" [ngClass]=\"separateDialCodeClass\">\n <div\n class=\"iti__flag-container\"\n dropdown\n [ngClass]=\"{ disabled: disabled }\"\n [isDisabled]=\"disabled\"\n >\n <div class=\"iti__selected-flag dropdown-toggle\" dropdownToggle>\n <div class=\"iti__flag\" [ngClass]=\"selectedCountry.flagClass || ''\"></div>\n <div *ngIf=\"separateDialCode\" class=\"selected-dial-code\">+{{ selectedCountry.dialCode }}</div>\n <div class=\"iti__arrow\"></div>\n </div>\n <div *dropdownMenu class=\"dropdown-menu iti__dropdown-content\">\n <div class=\"search-container\" *ngIf=\"searchCountryFlag && searchCountryField\">\n <input\n id=\"country-search-box\"\n [(ngModel)]=\"countrySearchText\"\n (keyup)=\"searchCountry()\"\n (click)=\"$event.stopPropagation()\"\n [placeholder]=\"searchCountryPlaceholder\"\n autofocus\n />\n </div>\n <ul class=\"iti__country-list\" #countryList>\n <li\n class=\"iti__country iti__preferred\"\n *ngFor=\"let country of preferredCountriesInDropDown\"\n (click)=\"onCountrySelect(country, focusable)\"\n [id]=\"country.htmlId + '-preferred'\"\n >\n <div class=\"iti__flag-box\">\n <div class=\"iti__flag\" [ngClass]=\"country.flagClass\"></div>\n </div>\n <span class=\"iti__country-name\">{{ country.name }}</span>\n <span class=\"iti__dial-code\">+{{ country.dialCode }}</span>\n </li>\n <li class=\"iti__divider\" *ngIf=\"preferredCountriesInDropDown?.length\"></li>\n <li\n class=\"iti__country iti__standard\"\n *ngFor=\"let country of allCountries\"\n (click)=\"onCountrySelect(country, focusable)\"\n [id]=\"country.htmlId\"\n >\n <div class=\"iti__flag-box\">\n <div class=\"iti__flag\" [ngClass]=\"country.flagClass\"></div>\n </div>\n <span class=\"iti__country-name\">{{ country.name }}</span>\n <span class=\"iti__dial-code\">+{{ country.dialCode }}</span>\n </li>\n </ul>\n </div>\n </div>\n <input\n type=\"tel\"\n [id]=\"inputId\"\n autocomplete=\"off\"\n class=\"iti__tel-input\"\n [ngClass]=\"cssClass\"\n (blur)=\"onTouched()\"\n (keypress)=\"onInputKeyPress($event)\"\n [(ngModel)]=\"phoneNumber\"\n (ngModelChange)=\"onPhoneNumberChange()\"\n [disabled]=\"disabled\"\n [placeholder]=\"resolvePlaceholder()\"\n [attr.maxLength]=\"maxLength\"\n [attr.validation]=\"phoneValidation\"\n #focusable\n />\n</div>\n", styles: [".caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px dashed;border-top:4px solid \\\t;border-right:4px solid transparent;border-left:4px solid transparent}.dropup,.dropdown{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;list-style:none;font-size:14px;text-align:left;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;box-shadow:0 6px 12px #0000002d;background-clip:padding-box}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.dropdown-menu>li>a:hover,.dropdown-menu>li>a:focus{text-decoration:none;color:#262626;background-color:#f5f5f5}.dropdown-menu>.active>a,.dropdown-menu>.active>a:hover,.dropdown-menu>.active>a:focus{color:#fff;text-decoration:none;outline:0;background-color:#337ab7}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{color:#777}.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{text-decoration:none;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);cursor:not-allowed}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{left:auto;right:0}.dropdown-menu-left{left:0;right:auto}.dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.42857143;color:#777;white-space:nowrap}.dropdown-backdrop{position:fixed;inset:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{border-top:0;border-bottom:4px dashed;border-bottom:4px solid \\\t;content:\"\"}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:2px}@media (min-width: 768px){.navbar-right .dropdown-menu{left:auto;right:0}.navbar-right .dropdown-menu-left{left:0;right:auto}}\n", "li.iti__country:hover{background-color:#0000000d}.iti__selected-flag.dropdown-toggle:after{content:none}.iti__flag-container.disabled{cursor:default!important}.iti.iti--allow-dropdown .flag-container.disabled:hover .iti__selected-flag{background:none}.iti__dropdown-content{border:1px solid #ccc;width:-moz-fit-content;width:fit-content;padding:1px;border-collapse:collapse}.search-container{position:relative}.search-container input{width:100%;border:none;border-bottom:1px solid #ccc;padding-left:10px}.search-icon{position:absolute;z-index:2;width:25px;margin:1px 10px}.iti__country-list{position:relative;border:none}.iti input#country-search-box{padding-left:6px}.iti .selected-dial-code{margin-left:6px}.iti.separate-dial-code .iti__selected-flag,.iti.separate-dial-code.iti--allow-dropdown.iti-sdc-2 .iti__selected-flag,.iti.separate-dial-code.iti--allow-dropdown.iti-sdc-3 .iti__selected-flag,.iti.separate-dial-code.iti--allow-dropdown.iti-sdc-4 .iti__selected-flag{width:93px}.iti.separate-dial-code input,.iti.separate-dial-code.iti--allow-dropdown.iti-sdc-2 input,.iti.separate-dial-code.iti--allow-dropdown.iti-sdc-3 input,.iti.separate-dial-code.iti--allow-dropdown.iti-sdc-4 input{padding-left:98px}\n"] }]
|
|
1141
|
-
}], ctorParameters: function () { return [{ type: CountryCode }]; }, propDecorators: { value: [{
|
|
1142
|
-
type: Input
|
|
1143
|
-
}], preferredCountries: [{
|
|
1144
|
-
type: Input
|
|
1145
|
-
}], enablePlaceholder: [{
|
|
1146
|
-
type: Input
|
|
1147
|
-
}], customPlaceholder: [{
|
|
1148
|
-
type: Input
|
|
1149
|
-
}], numberFormat: [{
|
|
1150
|
-
type: Input
|
|
1151
|
-
}], cssClass: [{
|
|
1152
|
-
type: Input
|
|
1153
|
-
}], onlyCountries: [{
|
|
1154
|
-
type: Input
|
|
1155
|
-
}], enableAutoCountrySelect: [{
|
|
1156
|
-
type: Input
|
|
1157
|
-
}], searchCountryFlag: [{
|
|
1158
|
-
type: Input
|
|
1159
|
-
}], searchCountryField: [{
|
|
1160
|
-
type: Input
|
|
1161
|
-
}], searchCountryPlaceholder: [{
|
|
1162
|
-
type: Input
|
|
1163
|
-
}], maxLength: [{
|
|
1164
|
-
type: Input
|
|
1165
|
-
}], selectFirstCountry: [{
|
|
1166
|
-
type: Input
|
|
1167
|
-
}], selectedCountryISO: [{
|
|
1168
|
-
type: Input
|
|
1169
|
-
}], phoneValidation: [{
|
|
1170
|
-
type: Input
|
|
1171
|
-
}], inputId: [{
|
|
1172
|
-
type: Input
|
|
1173
|
-
}], separateDialCode: [{
|
|
1174
|
-
type: Input
|
|
1175
|
-
}], excludeCountries: [{
|
|
1176
|
-
type: Input
|
|
1177
|
-
}], countryChange: [{
|
|
1178
|
-
type: Output
|
|
1179
|
-
}], countryList: [{
|
|
1180
|
-
type: ViewChild,
|
|
1181
|
-
args: ['countryList']
|
|
1182
|
-
}] } });
|
|
1183
|
-
|
|
1184
|
-
const dropdownModuleForRoot = BsDropdownModule.forRoot();
|
|
1185
|
-
class NgxIntlTelInputModule {
|
|
1186
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NgxIntlTelInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1187
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: NgxIntlTelInputModule, declarations: [NgxIntlTelInputComponent, NativeElementInjectorDirective], imports: [CommonModule, FormsModule, ReactiveFormsModule, i4.BsDropdownModule], exports: [NgxIntlTelInputComponent, NativeElementInjectorDirective] }); }
|
|
1188
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NgxIntlTelInputModule, imports: [CommonModule, FormsModule, ReactiveFormsModule, dropdownModuleForRoot] }); }
|
|
1189
|
-
}
|
|
1190
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NgxIntlTelInputModule, decorators: [{
|
|
1191
|
-
type: NgModule,
|
|
1192
|
-
args: [{
|
|
1193
|
-
declarations: [NgxIntlTelInputComponent, NativeElementInjectorDirective],
|
|
1194
|
-
imports: [CommonModule, FormsModule, ReactiveFormsModule, dropdownModuleForRoot],
|
|
1195
|
-
exports: [NgxIntlTelInputComponent, NativeElementInjectorDirective],
|
|
1196
|
-
}]
|
|
1197
|
-
}] });
|
|
1198
|
-
|
|
1199
|
-
/*
|
|
1200
|
-
* Public API Surface of ngx-intl-tel-input
|
|
1201
|
-
*/
|
|
1202
|
-
|
|
1203
|
-
/**
|
|
1204
|
-
* Generated bundle index. Do not edit.
|
|
1205
|
-
*/
|
|
1206
|
-
|
|
1207
|
-
export { CountryISO, NativeElementInjectorDirective, NgxIntlTelInputComponent, NgxIntlTelInputModule, PhoneNumberFormat, SearchCountryField, dropdownModuleForRoot };
|
|
1208
|
-
//# sourceMappingURL=moddi3-ngx-intl-tel-input.mjs.map
|
|
2406
|
+
//# sourceMappingURL=moddi3-ngx-intl-tel-input.mjs.map
|