@moddi3/ngx-intl-tel-input 3.3.7 → 16.0.0

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