@moddi3/ngx-intl-tel-input 3.3.1

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