@swan-io/shared-business 1.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 (38) hide show
  1. package/HISTORY.md +3 -0
  2. package/LICENSE +21 -0
  3. package/README.md +1 -0
  4. package/package.json +46 -0
  5. package/src/components/CountryPicker.d.ts +20 -0
  6. package/src/components/CountryPicker.js +26 -0
  7. package/src/components/SkipToContent.d.ts +3 -0
  8. package/src/components/SkipToContent.js +35 -0
  9. package/src/components/SupportChat.d.ts +26 -0
  10. package/src/components/SupportChat.js +87 -0
  11. package/src/components/SupportingDocument.d.ts +33 -0
  12. package/src/components/SupportingDocument.js +166 -0
  13. package/src/components/UploadArea.d.ts +26 -0
  14. package/src/components/UploadArea.js +161 -0
  15. package/src/constants/business.d.ts +12 -0
  16. package/src/constants/business.js +36 -0
  17. package/src/constants/countries.d.ts +2002 -0
  18. package/src/constants/countries.js +2363 -0
  19. package/src/constants/legal.d.ts +3 -0
  20. package/src/constants/legal.js +9 -0
  21. package/src/constants/registrationNumbers.d.ts +14 -0
  22. package/src/constants/registrationNumbers.js +117 -0
  23. package/src/constants/termsAndConditions.d.ts +7 -0
  24. package/src/constants/termsAndConditions.js +28 -0
  25. package/src/constants/ubos.d.ts +6 -0
  26. package/src/constants/ubos.js +47 -0
  27. package/src/constants/uploads.d.ts +1 -0
  28. package/src/constants/uploads.js +2 -0
  29. package/src/third-party/Pappers.d.ts +8 -0
  30. package/src/third-party/Pappers.js +36 -0
  31. package/src/utils/date.d.ts +3 -0
  32. package/src/utils/date.js +13 -0
  33. package/src/utils/i18n.d.ts +21 -0
  34. package/src/utils/i18n.js +115 -0
  35. package/src/utils/languages.d.ts +6 -0
  36. package/src/utils/languages.js +44 -0
  37. package/src/utils/validation.d.ts +7 -0
  38. package/src/utils/validation.js +65 -0
@@ -0,0 +1,2363 @@
1
+ import { isNotNullish } from "@swan-io/lake/src/utils/nullish";
2
+ import { t } from "../utils/i18n";
3
+ export const france = {
4
+ name: "France",
5
+ deburr: "france",
6
+ cca2: "FR",
7
+ cca3: "FRA",
8
+ idd: "33",
9
+ uid: "FR-33",
10
+ flag: "🇫🇷",
11
+ };
12
+ const readonlyCountries = [
13
+ {
14
+ name: "Åland",
15
+ deburr: "aland",
16
+ cca2: "AX",
17
+ cca3: "ALA",
18
+ idd: "358",
19
+ uid: "AX-358",
20
+ flag: "🇦🇽",
21
+ },
22
+ {
23
+ name: "American Samoa",
24
+ deburr: "american samoa",
25
+ cca2: "AS",
26
+ cca3: "ASM",
27
+ idd: "1684",
28
+ uid: "AS-1684",
29
+ flag: "🇦🇸",
30
+ },
31
+ {
32
+ name: "Andorra",
33
+ deburr: "andorra",
34
+ cca2: "AD",
35
+ cca3: "AND",
36
+ idd: "376",
37
+ uid: "AD-376",
38
+ flag: "🇦🇩",
39
+ },
40
+ {
41
+ name: "Angola",
42
+ deburr: "angola",
43
+ cca2: "AO",
44
+ cca3: "AGO",
45
+ idd: "244",
46
+ uid: "AO-244",
47
+ flag: "🇦🇴",
48
+ },
49
+ {
50
+ name: "Anguilla",
51
+ deburr: "anguilla",
52
+ cca2: "AI",
53
+ cca3: "AIA",
54
+ idd: "1264",
55
+ uid: "AI-1264",
56
+ flag: "🇦🇮",
57
+ },
58
+ {
59
+ name: "Antarctica",
60
+ deburr: "antarctica",
61
+ cca2: "AQ",
62
+ cca3: "ATA",
63
+ idd: "672",
64
+ uid: "AQ-672",
65
+ flag: "🇦🇶",
66
+ },
67
+ {
68
+ name: "Antigua and Barbuda",
69
+ deburr: "antigua and barbuda",
70
+ cca2: "AG",
71
+ cca3: "ATG",
72
+ idd: "1268",
73
+ uid: "AG-1268",
74
+ flag: "🇦🇬",
75
+ },
76
+ {
77
+ name: "Argentina",
78
+ deburr: "argentina",
79
+ cca2: "AR",
80
+ cca3: "ARG",
81
+ idd: "54",
82
+ uid: "AR-54",
83
+ flag: "🇦🇷",
84
+ },
85
+ {
86
+ name: "Aruba",
87
+ deburr: "aruba",
88
+ cca2: "AW",
89
+ cca3: "ABW",
90
+ idd: "297",
91
+ uid: "AW-297",
92
+ flag: "🇦🇼",
93
+ },
94
+ {
95
+ name: "Australia",
96
+ deburr: "australia",
97
+ cca2: "AU",
98
+ cca3: "AUS",
99
+ idd: "61",
100
+ uid: "AU-61",
101
+ flag: "🇦🇺",
102
+ },
103
+ {
104
+ name: "Azərbaycan",
105
+ deburr: "azərbaycan",
106
+ cca2: "AZ",
107
+ cca3: "AZE",
108
+ idd: "994",
109
+ uid: "AZ-994",
110
+ flag: "🇦🇿",
111
+ },
112
+ {
113
+ name: "Bahamas",
114
+ deburr: "bahamas",
115
+ cca2: "BS",
116
+ cca3: "BHS",
117
+ idd: "1242",
118
+ uid: "BS-1242",
119
+ flag: "🇧🇸",
120
+ },
121
+ {
122
+ name: "Bangladesh",
123
+ deburr: "bangladesh",
124
+ cca2: "BD",
125
+ cca3: "BGD",
126
+ idd: "880",
127
+ uid: "BD-880",
128
+ flag: "🇧🇩",
129
+ },
130
+ {
131
+ name: "Barbados",
132
+ deburr: "barbados",
133
+ cca2: "BB",
134
+ cca3: "BRB",
135
+ idd: "1246",
136
+ uid: "BB-1246",
137
+ flag: "🇧🇧",
138
+ },
139
+ {
140
+ name: "België",
141
+ deburr: "belgie",
142
+ cca2: "BE",
143
+ cca3: "BEL",
144
+ idd: "32",
145
+ uid: "BE-32",
146
+ flag: "🇧🇪",
147
+ },
148
+ {
149
+ name: "Belize",
150
+ deburr: "belize",
151
+ cca2: "BZ",
152
+ cca3: "BLZ",
153
+ idd: "501",
154
+ uid: "BZ-501",
155
+ flag: "🇧🇿",
156
+ },
157
+ {
158
+ name: "Bénin",
159
+ deburr: "benin",
160
+ cca2: "BJ",
161
+ cca3: "BEN",
162
+ idd: "229",
163
+ uid: "BJ-229",
164
+ flag: "🇧🇯",
165
+ },
166
+ {
167
+ name: "Bermuda",
168
+ deburr: "bermuda",
169
+ cca2: "BM",
170
+ cca3: "BMU",
171
+ idd: "1441",
172
+ uid: "BM-1441",
173
+ flag: "🇧🇲",
174
+ },
175
+ {
176
+ name: "Bolivia",
177
+ deburr: "bolivia",
178
+ cca2: "BO",
179
+ cca3: "BOL",
180
+ idd: "591",
181
+ uid: "BO-591",
182
+ flag: "🇧🇴",
183
+ },
184
+ {
185
+ name: "Bonaire",
186
+ deburr: "bonaire",
187
+ cca2: "BQ",
188
+ cca3: "BES",
189
+ idd: "5997",
190
+ uid: "BQ-5997",
191
+ flag: "🇧🇶",
192
+ },
193
+ {
194
+ name: "Bosna i Hercegovina",
195
+ deburr: "bosna i hercegovina",
196
+ cca2: "BA",
197
+ cca3: "BIH",
198
+ idd: "387",
199
+ uid: "BA-387",
200
+ flag: "🇧🇦",
201
+ },
202
+ {
203
+ name: "Botswana",
204
+ deburr: "botswana",
205
+ cca2: "BW",
206
+ cca3: "BWA",
207
+ idd: "267",
208
+ uid: "BW-267",
209
+ flag: "🇧🇼",
210
+ },
211
+ {
212
+ name: "Bouvetøya",
213
+ deburr: "bouvetoya",
214
+ cca2: "BV",
215
+ cca3: "BVT",
216
+ idd: "47",
217
+ uid: "BV-47",
218
+ flag: "🇧🇻",
219
+ },
220
+ {
221
+ name: "Brasil",
222
+ deburr: "brasil",
223
+ cca2: "BR",
224
+ cca3: "BRA",
225
+ idd: "55",
226
+ uid: "BR-55",
227
+ flag: "🇧🇷",
228
+ },
229
+ {
230
+ name: "British Virgin Islands",
231
+ deburr: "british virgin islands",
232
+ cca2: "VG",
233
+ cca3: "VGB",
234
+ idd: "1284",
235
+ uid: "VG-1284",
236
+ flag: "🇻🇬",
237
+ },
238
+ {
239
+ name: "Burkina Faso",
240
+ deburr: "burkina faso",
241
+ cca2: "BF",
242
+ cca3: "BFA",
243
+ idd: "226",
244
+ uid: "BF-226",
245
+ flag: "🇧🇫",
246
+ },
247
+ {
248
+ name: "Burundi",
249
+ deburr: "burundi",
250
+ cca2: "BI",
251
+ cca3: "BDI",
252
+ idd: "257",
253
+ uid: "BI-257",
254
+ flag: "🇧🇮",
255
+ },
256
+ {
257
+ name: "Cabo Verde",
258
+ deburr: "cabo verde",
259
+ cca2: "CV",
260
+ cca3: "CPV",
261
+ idd: "238",
262
+ uid: "CV-238",
263
+ flag: "🇨🇻",
264
+ },
265
+ {
266
+ name: "Cameroon",
267
+ deburr: "cameroon",
268
+ cca2: "CM",
269
+ cca3: "CMR",
270
+ idd: "237",
271
+ uid: "CM-237",
272
+ flag: "🇨🇲",
273
+ },
274
+ {
275
+ name: "Canada",
276
+ deburr: "canada",
277
+ cca2: "CA",
278
+ cca3: "CAN",
279
+ idd: "1",
280
+ uid: "CA-1",
281
+ flag: "🇨🇦",
282
+ },
283
+ {
284
+ name: "Cayman Islands",
285
+ deburr: "cayman islands",
286
+ cca2: "KY",
287
+ cca3: "CYM",
288
+ idd: "1345",
289
+ uid: "KY-1345",
290
+ flag: "🇰🇾",
291
+ },
292
+ {
293
+ name: "Česká republika",
294
+ deburr: "ceska republika",
295
+ cca2: "CZ",
296
+ cca3: "CZE",
297
+ idd: "420",
298
+ uid: "CZ-420",
299
+ flag: "🇨🇿",
300
+ },
301
+ {
302
+ name: "Chile",
303
+ deburr: "chile",
304
+ cca2: "CL",
305
+ cca3: "CHL",
306
+ idd: "56",
307
+ uid: "CL-56",
308
+ flag: "🇨🇱",
309
+ },
310
+ {
311
+ name: "Christmas Island",
312
+ deburr: "christmas island",
313
+ cca2: "CX",
314
+ cca3: "CXR",
315
+ idd: "61",
316
+ uid: "CX-61",
317
+ flag: "🇨🇽",
318
+ },
319
+ {
320
+ name: "Cocos (Keeling) Islands",
321
+ deburr: "cocos (keeling) islands",
322
+ cca2: "CC",
323
+ cca3: "CCK",
324
+ idd: "61",
325
+ uid: "CC-61",
326
+ flag: "🇨🇨",
327
+ },
328
+ {
329
+ name: "Colombia",
330
+ deburr: "colombia",
331
+ cca2: "CO",
332
+ cca3: "COL",
333
+ idd: "57",
334
+ uid: "CO-57",
335
+ flag: "🇨🇴",
336
+ },
337
+ {
338
+ name: "Cook Islands",
339
+ deburr: "cook islands",
340
+ cca2: "CK",
341
+ cca3: "COK",
342
+ idd: "682",
343
+ uid: "CK-682",
344
+ flag: "🇨🇰",
345
+ },
346
+ {
347
+ name: "Costa Rica",
348
+ deburr: "costa rica",
349
+ cca2: "CR",
350
+ cca3: "CRI",
351
+ idd: "506",
352
+ uid: "CR-506",
353
+ flag: "🇨🇷",
354
+ },
355
+ {
356
+ name: "Côte d'Ivoire",
357
+ deburr: "cote d'ivoire",
358
+ cca2: "CI",
359
+ cca3: "CIV",
360
+ idd: "225",
361
+ uid: "CI-225",
362
+ flag: "🇨🇮",
363
+ },
364
+ {
365
+ name: "Cuba",
366
+ deburr: "cuba",
367
+ cca2: "CU",
368
+ cca3: "CUB",
369
+ idd: "53",
370
+ uid: "CU-53",
371
+ flag: "🇨🇺",
372
+ },
373
+ {
374
+ name: "Curaçao",
375
+ deburr: "curacao",
376
+ cca2: "CW",
377
+ cca3: "CUW",
378
+ idd: "5999",
379
+ uid: "CW-5999",
380
+ flag: "🇨🇼",
381
+ },
382
+ {
383
+ name: "Danmark",
384
+ deburr: "danmark",
385
+ cca2: "DK",
386
+ cca3: "DNK",
387
+ idd: "45",
388
+ uid: "DK-45",
389
+ flag: "🇩🇰",
390
+ },
391
+ {
392
+ name: "Deutschland",
393
+ deburr: "deutschland",
394
+ cca2: "DE",
395
+ cca3: "DEU",
396
+ idd: "49",
397
+ uid: "DE-49",
398
+ flag: "🇩🇪",
399
+ },
400
+ {
401
+ name: "Djibouti",
402
+ deburr: "djibouti",
403
+ cca2: "DJ",
404
+ cca3: "DJI",
405
+ idd: "253",
406
+ uid: "DJ-253",
407
+ flag: "🇩🇯",
408
+ },
409
+ {
410
+ name: "Dominica",
411
+ deburr: "dominica",
412
+ cca2: "DM",
413
+ cca3: "DMA",
414
+ idd: "1767",
415
+ uid: "DM-1767",
416
+ flag: "🇩🇲",
417
+ },
418
+ {
419
+ name: "Ecuador",
420
+ deburr: "ecuador",
421
+ cca2: "EC",
422
+ cca3: "ECU",
423
+ idd: "593",
424
+ uid: "EC-593",
425
+ flag: "🇪🇨",
426
+ },
427
+ {
428
+ name: "Eesti",
429
+ deburr: "eesti",
430
+ cca2: "EE",
431
+ cca3: "EST",
432
+ idd: "372",
433
+ uid: "EE-372",
434
+ flag: "🇪🇪",
435
+ },
436
+ {
437
+ name: "Éire",
438
+ deburr: "eire",
439
+ cca2: "IE",
440
+ cca3: "IRL",
441
+ idd: "353",
442
+ uid: "IE-353",
443
+ flag: "🇮🇪",
444
+ },
445
+ {
446
+ name: "El Salvador",
447
+ deburr: "el salvador",
448
+ cca2: "SV",
449
+ cca3: "SLV",
450
+ idd: "503",
451
+ uid: "SV-503",
452
+ flag: "🇸🇻",
453
+ },
454
+ {
455
+ name: "España",
456
+ deburr: "espana",
457
+ cca2: "ES",
458
+ cca3: "ESP",
459
+ idd: "34",
460
+ uid: "ES-34",
461
+ flag: "🇪🇸",
462
+ },
463
+ {
464
+ name: "Falkland Islands",
465
+ deburr: "falkland islands",
466
+ cca2: "FK",
467
+ cca3: "FLK",
468
+ idd: "500",
469
+ uid: "FK-500",
470
+ flag: "🇫🇰",
471
+ },
472
+ {
473
+ name: "Fiji",
474
+ deburr: "fiji",
475
+ cca2: "FJ",
476
+ cca3: "FJI",
477
+ idd: "679",
478
+ uid: "FJ-679",
479
+ flag: "🇫🇯",
480
+ },
481
+ {
482
+ name: "Føroyar",
483
+ deburr: "foroyar",
484
+ cca2: "FO",
485
+ cca3: "FRO",
486
+ idd: "298",
487
+ uid: "FO-298",
488
+ flag: "🇫🇴",
489
+ },
490
+ france,
491
+ {
492
+ name: "Gabon",
493
+ deburr: "gabon",
494
+ cca2: "GA",
495
+ cca3: "GAB",
496
+ idd: "241",
497
+ uid: "GA-241",
498
+ flag: "🇬🇦",
499
+ },
500
+ {
501
+ name: "Gambia",
502
+ deburr: "gambia",
503
+ cca2: "GM",
504
+ cca3: "GMB",
505
+ idd: "220",
506
+ uid: "GM-220",
507
+ flag: "🇬🇲",
508
+ },
509
+ {
510
+ name: "Ghana",
511
+ deburr: "ghana",
512
+ cca2: "GH",
513
+ cca3: "GHA",
514
+ idd: "233",
515
+ uid: "GH-233",
516
+ flag: "🇬🇭",
517
+ },
518
+ {
519
+ name: "Gibraltar",
520
+ deburr: "gibraltar",
521
+ cca2: "GI",
522
+ cca3: "GIB",
523
+ idd: "350",
524
+ uid: "GI-350",
525
+ flag: "🇬🇮",
526
+ },
527
+ {
528
+ name: "Grenada",
529
+ deburr: "grenada",
530
+ cca2: "GD",
531
+ cca3: "GRD",
532
+ idd: "1473",
533
+ uid: "GD-1473",
534
+ flag: "🇬🇩",
535
+ },
536
+ {
537
+ name: "Guadeloupe",
538
+ deburr: "guadeloupe",
539
+ cca2: "GP",
540
+ cca3: "GLP",
541
+ idd: "590",
542
+ uid: "GP-590",
543
+ flag: "🇬🇵",
544
+ },
545
+ {
546
+ name: "Guam",
547
+ deburr: "guam",
548
+ cca2: "GU",
549
+ cca3: "GUM",
550
+ idd: "1671",
551
+ uid: "GU-1671",
552
+ flag: "🇬🇺",
553
+ },
554
+ {
555
+ name: "Guatemala",
556
+ deburr: "guatemala",
557
+ cca2: "GT",
558
+ cca3: "GTM",
559
+ idd: "502",
560
+ uid: "GT-502",
561
+ flag: "🇬🇹",
562
+ },
563
+ {
564
+ name: "Guernsey",
565
+ deburr: "guernsey",
566
+ cca2: "GG",
567
+ cca3: "GGY",
568
+ idd: "44",
569
+ uid: "GG-44",
570
+ flag: "🇬🇬",
571
+ },
572
+ {
573
+ name: "Guiné-Bissau",
574
+ deburr: "guine-bissau",
575
+ cca2: "GW",
576
+ cca3: "GNB",
577
+ idd: "245",
578
+ uid: "GW-245",
579
+ flag: "🇬🇼",
580
+ },
581
+ {
582
+ name: "Guinea Ecuatorial",
583
+ deburr: "guinea ecuatorial",
584
+ cca2: "GQ",
585
+ cca3: "GNQ",
586
+ idd: "240",
587
+ uid: "GQ-240",
588
+ flag: "🇬🇶",
589
+ },
590
+ {
591
+ name: "Guinée",
592
+ deburr: "guinee",
593
+ cca2: "GN",
594
+ cca3: "GIN",
595
+ idd: "224",
596
+ uid: "GN-224",
597
+ flag: "🇬🇳",
598
+ },
599
+ {
600
+ name: "Guyana",
601
+ deburr: "guyana",
602
+ cca2: "GY",
603
+ cca3: "GUY",
604
+ idd: "592",
605
+ uid: "GY-592",
606
+ flag: "🇬🇾",
607
+ },
608
+ {
609
+ name: "Guyane française",
610
+ deburr: "guyane francaise",
611
+ cca2: "GF",
612
+ cca3: "GUF",
613
+ idd: "594",
614
+ uid: "GF-594",
615
+ flag: "🇬🇫",
616
+ },
617
+ {
618
+ name: "Haïti",
619
+ deburr: "haiti",
620
+ cca2: "HT",
621
+ cca3: "HTI",
622
+ idd: "509",
623
+ uid: "HT-509",
624
+ flag: "🇭🇹",
625
+ },
626
+ {
627
+ name: "Heard Island and McDonald Islands",
628
+ deburr: "heard island and mcdonald islands",
629
+ cca2: "HM",
630
+ cca3: "HMD",
631
+ idd: "61",
632
+ uid: "HM-61",
633
+ flag: "🇭🇲",
634
+ },
635
+ {
636
+ name: "Honduras",
637
+ deburr: "honduras",
638
+ cca2: "HN",
639
+ cca3: "HND",
640
+ idd: "504",
641
+ uid: "HN-504",
642
+ flag: "🇭🇳",
643
+ },
644
+ {
645
+ name: "Hrvatska",
646
+ deburr: "hrvatska",
647
+ cca2: "HR",
648
+ cca3: "HRV",
649
+ idd: "385",
650
+ uid: "HR-385",
651
+ flag: "🇭🇷",
652
+ },
653
+ {
654
+ name: "Indonesia",
655
+ deburr: "indonesia",
656
+ cca2: "ID",
657
+ cca3: "IDN",
658
+ idd: "62",
659
+ uid: "ID-62",
660
+ flag: "🇮🇩",
661
+ },
662
+ {
663
+ name: "Ísland",
664
+ deburr: "island",
665
+ cca2: "IS",
666
+ cca3: "ISL",
667
+ idd: "354",
668
+ uid: "IS-354",
669
+ flag: "🇮🇸",
670
+ },
671
+ {
672
+ name: "Isle of Man",
673
+ deburr: "isle of man",
674
+ cca2: "IM",
675
+ cca3: "IMN",
676
+ idd: "44",
677
+ uid: "IM-44",
678
+ flag: "🇮🇲",
679
+ },
680
+ {
681
+ name: "Italia",
682
+ deburr: "italia",
683
+ cca2: "IT",
684
+ cca3: "ITA",
685
+ idd: "39",
686
+ uid: "IT-39",
687
+ flag: "🇮🇹",
688
+ },
689
+ {
690
+ name: "Jamaica",
691
+ deburr: "jamaica",
692
+ cca2: "JM",
693
+ cca3: "JAM",
694
+ idd: "1876",
695
+ uid: "JM-1876",
696
+ flag: "🇯🇲",
697
+ },
698
+ {
699
+ name: "Jersey",
700
+ deburr: "jersey",
701
+ cca2: "JE",
702
+ cca3: "JEY",
703
+ idd: "44",
704
+ uid: "JE-44",
705
+ flag: "🇯🇪",
706
+ },
707
+ {
708
+ name: "Kalaallit Nunaat",
709
+ deburr: "kalaallit nunaat",
710
+ cca2: "GL",
711
+ cca3: "GRL",
712
+ idd: "299",
713
+ uid: "GL-299",
714
+ flag: "🇬🇱",
715
+ },
716
+ {
717
+ name: "Kâmpŭchéa",
718
+ deburr: "kampuchea",
719
+ cca2: "KH",
720
+ cca3: "KHM",
721
+ idd: "855",
722
+ uid: "KH-855",
723
+ flag: "🇰🇭",
724
+ },
725
+ {
726
+ name: "Kazakhstan",
727
+ deburr: "kazakhstan",
728
+ cca2: "KZ",
729
+ cca3: "KAZ",
730
+ idd: "7",
731
+ uid: "KZ-7",
732
+ flag: "🇰🇿",
733
+ },
734
+ {
735
+ name: "Kenya",
736
+ deburr: "kenya",
737
+ cca2: "KE",
738
+ cca3: "KEN",
739
+ idd: "254",
740
+ uid: "KE-254",
741
+ flag: "🇰🇪",
742
+ },
743
+ {
744
+ name: "Kiribati",
745
+ deburr: "kiribati",
746
+ cca2: "KI",
747
+ cca3: "KIR",
748
+ idd: "686",
749
+ uid: "KI-686",
750
+ flag: "🇰🇮",
751
+ },
752
+ {
753
+ name: "Ködörösêse tî Bêafrîka",
754
+ deburr: "kodorosese ti beafrika",
755
+ cca2: "CF",
756
+ cca3: "CAF",
757
+ idd: "236",
758
+ uid: "CF-236",
759
+ flag: "🇨🇫",
760
+ },
761
+ {
762
+ name: "Komori",
763
+ deburr: "komori",
764
+ cca2: "KM",
765
+ cca3: "COM",
766
+ idd: "269",
767
+ uid: "KM-269",
768
+ flag: "🇰🇲",
769
+ },
770
+ {
771
+ name: "La Réunion",
772
+ deburr: "la reunion",
773
+ cca2: "RE",
774
+ cca3: "REU",
775
+ idd: "262",
776
+ uid: "RE-262",
777
+ flag: "🇷🇪",
778
+ },
779
+ {
780
+ name: "Latvija",
781
+ deburr: "latvija",
782
+ cca2: "LV",
783
+ cca3: "LVA",
784
+ idd: "371",
785
+ uid: "LV-371",
786
+ flag: "🇱🇻",
787
+ },
788
+ {
789
+ name: "Lesotho",
790
+ deburr: "lesotho",
791
+ cca2: "LS",
792
+ cca3: "LSO",
793
+ idd: "266",
794
+ uid: "LS-266",
795
+ flag: "🇱🇸",
796
+ },
797
+ {
798
+ name: "Liberia",
799
+ deburr: "liberia",
800
+ cca2: "LR",
801
+ cca3: "LBR",
802
+ idd: "231",
803
+ uid: "LR-231",
804
+ flag: "🇱🇷",
805
+ },
806
+ {
807
+ name: "Liechtenstein",
808
+ deburr: "liechtenstein",
809
+ cca2: "LI",
810
+ cca3: "LIE",
811
+ idd: "423",
812
+ uid: "LI-423",
813
+ flag: "🇱🇮",
814
+ },
815
+ {
816
+ name: "Lietuva",
817
+ deburr: "lietuva",
818
+ cca2: "LT",
819
+ cca3: "LTU",
820
+ idd: "370",
821
+ uid: "LT-370",
822
+ flag: "🇱🇹",
823
+ },
824
+ {
825
+ name: "Luxembourg",
826
+ deburr: "luxembourg",
827
+ cca2: "LU",
828
+ cca3: "LUX",
829
+ idd: "352",
830
+ uid: "LU-352",
831
+ flag: "🇱🇺",
832
+ },
833
+ {
834
+ name: "Madagasikara",
835
+ deburr: "madagasikara",
836
+ cca2: "MG",
837
+ cca3: "MDG",
838
+ idd: "261",
839
+ uid: "MG-261",
840
+ flag: "🇲🇬",
841
+ },
842
+ {
843
+ name: "Magyarország",
844
+ deburr: "magyarorszag",
845
+ cca2: "HU",
846
+ cca3: "HUN",
847
+ idd: "36",
848
+ uid: "HU-36",
849
+ flag: "🇭🇺",
850
+ },
851
+ {
852
+ name: "M̧ajeļ",
853
+ deburr: "majel",
854
+ cca2: "MH",
855
+ cca3: "MHL",
856
+ idd: "692",
857
+ uid: "MH-692",
858
+ flag: "🇲🇭",
859
+ },
860
+ {
861
+ name: "Malawi",
862
+ deburr: "malawi",
863
+ cca2: "MW",
864
+ cca3: "MWI",
865
+ idd: "265",
866
+ uid: "MW-265",
867
+ flag: "🇲🇼",
868
+ },
869
+ {
870
+ name: "Malaysia",
871
+ deburr: "malaysia",
872
+ cca2: "MY",
873
+ cca3: "MYS",
874
+ idd: "60",
875
+ uid: "MY-60",
876
+ flag: "🇲🇾",
877
+ },
878
+ {
879
+ name: "Maldives",
880
+ deburr: "maldives",
881
+ cca2: "MV",
882
+ cca3: "MDV",
883
+ idd: "960",
884
+ uid: "MV-960",
885
+ flag: "🇲🇻",
886
+ },
887
+ {
888
+ name: "Mali",
889
+ deburr: "mali",
890
+ cca2: "ML",
891
+ cca3: "MLI",
892
+ idd: "223",
893
+ uid: "ML-223",
894
+ flag: "🇲🇱",
895
+ },
896
+ {
897
+ name: "Malta",
898
+ deburr: "malta",
899
+ cca2: "MT",
900
+ cca3: "MLT",
901
+ idd: "356",
902
+ uid: "MT-356",
903
+ flag: "🇲🇹",
904
+ },
905
+ {
906
+ name: "Martinique",
907
+ deburr: "martinique",
908
+ cca2: "MQ",
909
+ cca3: "MTQ",
910
+ idd: "596",
911
+ uid: "MQ-596",
912
+ flag: "🇲🇶",
913
+ },
914
+ {
915
+ name: "Maurice",
916
+ deburr: "maurice",
917
+ cca2: "MU",
918
+ cca3: "MUS",
919
+ idd: "230",
920
+ uid: "MU-230",
921
+ flag: "🇲🇺",
922
+ },
923
+ {
924
+ name: "Mayotte",
925
+ deburr: "mayotte",
926
+ cca2: "YT",
927
+ cca3: "MYT",
928
+ idd: "262",
929
+ uid: "YT-262",
930
+ flag: "🇾🇹",
931
+ },
932
+ {
933
+ name: "México",
934
+ deburr: "mexico",
935
+ cca2: "MX",
936
+ cca3: "MEX",
937
+ idd: "52",
938
+ uid: "MX-52",
939
+ flag: "🇲🇽",
940
+ },
941
+ {
942
+ name: "Micronesia",
943
+ deburr: "micronesia",
944
+ cca2: "FM",
945
+ cca3: "FSM",
946
+ idd: "691",
947
+ uid: "FM-691",
948
+ flag: "🇫🇲",
949
+ },
950
+ {
951
+ name: "Moçambique",
952
+ deburr: "mocambique",
953
+ cca2: "MZ",
954
+ cca3: "MOZ",
955
+ idd: "258",
956
+ uid: "MZ-258",
957
+ flag: "🇲🇿",
958
+ },
959
+ {
960
+ name: "Moldova",
961
+ deburr: "moldova",
962
+ cca2: "MD",
963
+ cca3: "MDA",
964
+ idd: "373",
965
+ uid: "MD-373",
966
+ flag: "🇲🇩",
967
+ },
968
+ {
969
+ name: "Monaco",
970
+ deburr: "monaco",
971
+ cca2: "MC",
972
+ cca3: "MCO",
973
+ idd: "377",
974
+ uid: "MC-377",
975
+ flag: "🇲🇨",
976
+ },
977
+ {
978
+ name: "Montserrat",
979
+ deburr: "montserrat",
980
+ cca2: "MS",
981
+ cca3: "MSR",
982
+ idd: "1664",
983
+ uid: "MS-1664",
984
+ flag: "🇲🇸",
985
+ },
986
+ {
987
+ name: "Namibia",
988
+ deburr: "namibia",
989
+ cca2: "NA",
990
+ cca3: "NAM",
991
+ idd: "264",
992
+ uid: "NA-264",
993
+ flag: "🇳🇦",
994
+ },
995
+ {
996
+ name: "Nederland",
997
+ deburr: "nederland",
998
+ cca2: "NL",
999
+ cca3: "NLD",
1000
+ idd: "31",
1001
+ uid: "NL-31",
1002
+ flag: "🇳🇱",
1003
+ },
1004
+ {
1005
+ name: "Negara Brunei Darussalam",
1006
+ deburr: "negara brunei darussalam",
1007
+ cca2: "BN",
1008
+ cca3: "BRN",
1009
+ idd: "673",
1010
+ uid: "BN-673",
1011
+ flag: "🇧🇳",
1012
+ },
1013
+ {
1014
+ name: "New Zealand",
1015
+ deburr: "new zealand",
1016
+ cca2: "NZ",
1017
+ cca3: "NZL",
1018
+ idd: "64",
1019
+ uid: "NZ-64",
1020
+ flag: "🇳🇿",
1021
+ },
1022
+ {
1023
+ name: "Nicaragua",
1024
+ deburr: "nicaragua",
1025
+ cca2: "NI",
1026
+ cca3: "NIC",
1027
+ idd: "505",
1028
+ uid: "NI-505",
1029
+ flag: "🇳🇮",
1030
+ },
1031
+ {
1032
+ name: "Niger",
1033
+ deburr: "niger",
1034
+ cca2: "NE",
1035
+ cca3: "NER",
1036
+ idd: "227",
1037
+ uid: "NE-227",
1038
+ flag: "🇳🇪",
1039
+ },
1040
+ {
1041
+ name: "Nigeria",
1042
+ deburr: "nigeria",
1043
+ cca2: "NG",
1044
+ cca3: "NGA",
1045
+ idd: "234",
1046
+ uid: "NG-234",
1047
+ flag: "🇳🇬",
1048
+ },
1049
+ {
1050
+ name: "Niuē",
1051
+ deburr: "niue",
1052
+ cca2: "NU",
1053
+ cca3: "NIU",
1054
+ idd: "683",
1055
+ uid: "NU-683",
1056
+ flag: "🇳🇺",
1057
+ },
1058
+ {
1059
+ name: "Norfolk Island",
1060
+ deburr: "norfolk island",
1061
+ cca2: "NF",
1062
+ cca3: "NFK",
1063
+ idd: "672",
1064
+ uid: "NF-672",
1065
+ flag: "🇳🇫",
1066
+ },
1067
+ {
1068
+ name: "Norge",
1069
+ deburr: "norge",
1070
+ cca2: "NO",
1071
+ cca3: "NOR",
1072
+ idd: "47",
1073
+ uid: "NO-47",
1074
+ flag: "🇳🇴",
1075
+ },
1076
+ {
1077
+ name: "Northern Mariana Islands",
1078
+ deburr: "northern mariana islands",
1079
+ cca2: "MP",
1080
+ cca3: "MNP",
1081
+ idd: "1670",
1082
+ uid: "MP-1670",
1083
+ flag: "🇲🇵",
1084
+ },
1085
+ {
1086
+ name: "Nouvelle-Calédonie",
1087
+ deburr: "nouvelle-caledonie",
1088
+ cca2: "NC",
1089
+ cca3: "NCL",
1090
+ idd: "687",
1091
+ uid: "NC-687",
1092
+ flag: "🇳🇨",
1093
+ },
1094
+ {
1095
+ name: "Österreich",
1096
+ deburr: "osterreich",
1097
+ cca2: "AT",
1098
+ cca3: "AUT",
1099
+ idd: "43",
1100
+ uid: "AT-43",
1101
+ flag: "🇦🇹",
1102
+ },
1103
+ {
1104
+ name: "O‘zbekiston",
1105
+ deburr: "o‘zbekiston",
1106
+ cca2: "UZ",
1107
+ cca3: "UZB",
1108
+ idd: "998",
1109
+ uid: "UZ-998",
1110
+ flag: "🇺🇿",
1111
+ },
1112
+ {
1113
+ name: "Pakistan",
1114
+ deburr: "pakistan",
1115
+ cca2: "PK",
1116
+ cca3: "PAK",
1117
+ idd: "92",
1118
+ uid: "PK-92",
1119
+ flag: "🇵🇰",
1120
+ },
1121
+ {
1122
+ name: "Palau",
1123
+ deburr: "palau",
1124
+ cca2: "PW",
1125
+ cca3: "PLW",
1126
+ idd: "680",
1127
+ uid: "PW-680",
1128
+ flag: "🇵🇼",
1129
+ },
1130
+ {
1131
+ name: "Panamá",
1132
+ deburr: "panama",
1133
+ cca2: "PA",
1134
+ cca3: "PAN",
1135
+ idd: "507",
1136
+ uid: "PA-507",
1137
+ flag: "🇵🇦",
1138
+ },
1139
+ {
1140
+ name: "Papua Niugini",
1141
+ deburr: "papua niugini",
1142
+ cca2: "PG",
1143
+ cca3: "PNG",
1144
+ idd: "675",
1145
+ uid: "PG-675",
1146
+ flag: "🇵🇬",
1147
+ },
1148
+ {
1149
+ name: "Paraguay",
1150
+ deburr: "paraguay",
1151
+ cca2: "PY",
1152
+ cca3: "PRY",
1153
+ idd: "595",
1154
+ uid: "PY-595",
1155
+ flag: "🇵🇾",
1156
+ },
1157
+ {
1158
+ name: "Perú",
1159
+ deburr: "peru",
1160
+ cca2: "PE",
1161
+ cca3: "PER",
1162
+ idd: "51",
1163
+ uid: "PE-51",
1164
+ flag: "🇵🇪",
1165
+ },
1166
+ {
1167
+ name: "Pilipinas",
1168
+ deburr: "pilipinas",
1169
+ cca2: "PH",
1170
+ cca3: "PHL",
1171
+ idd: "63",
1172
+ uid: "PH-63",
1173
+ flag: "🇵🇭",
1174
+ },
1175
+ {
1176
+ name: "Pitcairn Islands",
1177
+ deburr: "pitcairn islands",
1178
+ cca2: "PN",
1179
+ cca3: "PCN",
1180
+ idd: "64",
1181
+ uid: "PN-64",
1182
+ flag: "🇵🇳",
1183
+ },
1184
+ {
1185
+ name: "Polska",
1186
+ deburr: "polska",
1187
+ cca2: "PL",
1188
+ cca3: "POL",
1189
+ idd: "48",
1190
+ uid: "PL-48",
1191
+ flag: "🇵🇱",
1192
+ },
1193
+ {
1194
+ name: "Polynésie française",
1195
+ deburr: "polynesie francaise",
1196
+ cca2: "PF",
1197
+ cca3: "PYF",
1198
+ idd: "689",
1199
+ uid: "PF-689",
1200
+ flag: "🇵🇫",
1201
+ },
1202
+ {
1203
+ name: "Portugal",
1204
+ deburr: "portugal",
1205
+ cca2: "PT",
1206
+ cca3: "PRT",
1207
+ idd: "351",
1208
+ uid: "PT-351",
1209
+ flag: "🇵🇹",
1210
+ },
1211
+ {
1212
+ name: "Puerto Rico",
1213
+ deburr: "puerto rico",
1214
+ cca2: "PR",
1215
+ cca3: "PRI",
1216
+ idd: "1787",
1217
+ uid: "PR-1787",
1218
+ flag: "🇵🇷",
1219
+ },
1220
+ {
1221
+ name: "República Dominicana",
1222
+ deburr: "republica dominicana",
1223
+ cca2: "DO",
1224
+ cca3: "DOM",
1225
+ idd: "1829",
1226
+ uid: "DO-1829",
1227
+ flag: "🇩🇴",
1228
+ },
1229
+ {
1230
+ name: "República Dominicana",
1231
+ deburr: "republica dominicana",
1232
+ cca2: "DO",
1233
+ cca3: "DOM",
1234
+ idd: "1849",
1235
+ uid: "DO-1849",
1236
+ flag: "🇩🇴",
1237
+ },
1238
+ {
1239
+ name: "República Dominicana",
1240
+ deburr: "republica dominicana",
1241
+ cca2: "DO",
1242
+ cca3: "DOM",
1243
+ idd: "1809",
1244
+ uid: "DO-1809",
1245
+ flag: "🇩🇴",
1246
+ },
1247
+ {
1248
+ name: "Republika e Kosovës",
1249
+ deburr: "republika e kosoves",
1250
+ cca2: "XK",
1251
+ cca3: "UNK",
1252
+ idd: "383",
1253
+ uid: "XK-383",
1254
+ flag: "🇽🇰",
1255
+ },
1256
+ {
1257
+ name: "République démocratique du Congo",
1258
+ deburr: "republique democratique du congo",
1259
+ cca2: "CD",
1260
+ cca3: "COD",
1261
+ idd: "243",
1262
+ uid: "CD-243",
1263
+ flag: "🇨🇩",
1264
+ },
1265
+ {
1266
+ name: "République du Congo",
1267
+ deburr: "republique du congo",
1268
+ cca2: "CG",
1269
+ cca3: "COG",
1270
+ idd: "242",
1271
+ uid: "CG-242",
1272
+ flag: "🇨🇬",
1273
+ },
1274
+ {
1275
+ name: "România",
1276
+ deburr: "romania",
1277
+ cca2: "RO",
1278
+ cca3: "ROU",
1279
+ idd: "40",
1280
+ uid: "RO-40",
1281
+ flag: "🇷🇴",
1282
+ },
1283
+ {
1284
+ name: "Rwanda",
1285
+ deburr: "rwanda",
1286
+ cca2: "RW",
1287
+ cca3: "RWA",
1288
+ idd: "250",
1289
+ uid: "RW-250",
1290
+ flag: "🇷🇼",
1291
+ },
1292
+ {
1293
+ name: "Saint Kitts and Nevis",
1294
+ deburr: "saint kitts and nevis",
1295
+ cca2: "KN",
1296
+ cca3: "KNA",
1297
+ idd: "1869",
1298
+ uid: "KN-1869",
1299
+ flag: "🇰🇳",
1300
+ },
1301
+ {
1302
+ name: "Saint Lucia",
1303
+ deburr: "saint lucia",
1304
+ cca2: "LC",
1305
+ cca3: "LCA",
1306
+ idd: "1758",
1307
+ uid: "LC-1758",
1308
+ flag: "🇱🇨",
1309
+ },
1310
+ {
1311
+ name: "Saint Vincent and the Grenadines",
1312
+ deburr: "saint vincent and the grenadines",
1313
+ cca2: "VC",
1314
+ cca3: "VCT",
1315
+ idd: "1784",
1316
+ uid: "VC-1784",
1317
+ flag: "🇻🇨",
1318
+ },
1319
+ {
1320
+ name: "Saint-Barthélemy",
1321
+ deburr: "saint-barthelemy",
1322
+ cca2: "BL",
1323
+ cca3: "BLM",
1324
+ idd: "590",
1325
+ uid: "BL-590",
1326
+ flag: "🇧🇱",
1327
+ },
1328
+ {
1329
+ name: "Saint-Martin",
1330
+ deburr: "saint-martin",
1331
+ cca2: "MF",
1332
+ cca3: "MAF",
1333
+ idd: "590",
1334
+ uid: "MF-590",
1335
+ flag: "🇲🇫",
1336
+ },
1337
+ {
1338
+ name: "Saint-Pierre-et-Miquelon",
1339
+ deburr: "saint-pierre-et-miquelon",
1340
+ cca2: "PM",
1341
+ cca3: "SPM",
1342
+ idd: "508",
1343
+ uid: "PM-508",
1344
+ flag: "🇵🇲",
1345
+ },
1346
+ {
1347
+ name: "Samoa",
1348
+ deburr: "samoa",
1349
+ cca2: "WS",
1350
+ cca3: "WSM",
1351
+ idd: "685",
1352
+ uid: "WS-685",
1353
+ flag: "🇼🇸",
1354
+ },
1355
+ {
1356
+ name: "San Marino",
1357
+ deburr: "san marino",
1358
+ cca2: "SM",
1359
+ cca3: "SMR",
1360
+ idd: "378",
1361
+ uid: "SM-378",
1362
+ flag: "🇸🇲",
1363
+ },
1364
+ {
1365
+ name: "São Tomé e Príncipe",
1366
+ deburr: "sao tome e principe",
1367
+ cca2: "ST",
1368
+ cca3: "STP",
1369
+ idd: "239",
1370
+ uid: "ST-239",
1371
+ flag: "🇸🇹",
1372
+ },
1373
+ {
1374
+ name: "Schweiz",
1375
+ deburr: "schweiz",
1376
+ cca2: "CH",
1377
+ cca3: "CHE",
1378
+ idd: "41",
1379
+ uid: "CH-41",
1380
+ flag: "🇨🇭",
1381
+ },
1382
+ {
1383
+ name: "Sénégal",
1384
+ deburr: "senegal",
1385
+ cca2: "SN",
1386
+ cca3: "SEN",
1387
+ idd: "221",
1388
+ uid: "SN-221",
1389
+ flag: "🇸🇳",
1390
+ },
1391
+ {
1392
+ name: "Seychelles",
1393
+ deburr: "seychelles",
1394
+ cca2: "SC",
1395
+ cca3: "SYC",
1396
+ idd: "248",
1397
+ uid: "SC-248",
1398
+ flag: "🇸🇨",
1399
+ },
1400
+ {
1401
+ name: "Shqipëria",
1402
+ deburr: "shqiperia",
1403
+ cca2: "AL",
1404
+ cca3: "ALB",
1405
+ idd: "355",
1406
+ uid: "AL-355",
1407
+ flag: "🇦🇱",
1408
+ },
1409
+ {
1410
+ name: "Sierra Leone",
1411
+ deburr: "sierra leone",
1412
+ cca2: "SL",
1413
+ cca3: "SLE",
1414
+ idd: "232",
1415
+ uid: "SL-232",
1416
+ flag: "🇸🇱",
1417
+ },
1418
+ {
1419
+ name: "Singapore",
1420
+ deburr: "singapore",
1421
+ cca2: "SG",
1422
+ cca3: "SGP",
1423
+ idd: "65",
1424
+ uid: "SG-65",
1425
+ flag: "🇸🇬",
1426
+ },
1427
+ {
1428
+ name: "Slovenija",
1429
+ deburr: "slovenija",
1430
+ cca2: "SI",
1431
+ cca3: "SVN",
1432
+ idd: "386",
1433
+ uid: "SI-386",
1434
+ flag: "🇸🇮",
1435
+ },
1436
+ {
1437
+ name: "Slovensko",
1438
+ deburr: "slovensko",
1439
+ cca2: "SK",
1440
+ cca3: "SVK",
1441
+ idd: "421",
1442
+ uid: "SK-421",
1443
+ flag: "🇸🇰",
1444
+ },
1445
+ {
1446
+ name: "Solomon Islands",
1447
+ deburr: "solomon islands",
1448
+ cca2: "SB",
1449
+ cca3: "SLB",
1450
+ idd: "677",
1451
+ uid: "SB-677",
1452
+ flag: "🇸🇧",
1453
+ },
1454
+ {
1455
+ name: "Soomaaliya",
1456
+ deburr: "soomaaliya",
1457
+ cca2: "SO",
1458
+ cca3: "SOM",
1459
+ idd: "252",
1460
+ uid: "SO-252",
1461
+ flag: "🇸🇴",
1462
+ },
1463
+ {
1464
+ name: "South Africa",
1465
+ deburr: "south africa",
1466
+ cca2: "ZA",
1467
+ cca3: "ZAF",
1468
+ idd: "27",
1469
+ uid: "ZA-27",
1470
+ flag: "🇿🇦",
1471
+ },
1472
+ {
1473
+ name: "South Georgia",
1474
+ deburr: "south georgia",
1475
+ cca2: "GS",
1476
+ cca3: "SGS",
1477
+ idd: "500",
1478
+ uid: "GS-500",
1479
+ flag: "🇬🇸",
1480
+ },
1481
+ {
1482
+ name: "South Sudan",
1483
+ deburr: "south sudan",
1484
+ cca2: "SS",
1485
+ cca3: "SSD",
1486
+ idd: "211",
1487
+ uid: "SS-211",
1488
+ flag: "🇸🇸",
1489
+ },
1490
+ {
1491
+ name: "śrī laṃkāva",
1492
+ deburr: "sri laṃkava",
1493
+ cca2: "LK",
1494
+ cca3: "LKA",
1495
+ idd: "94",
1496
+ uid: "LK-94",
1497
+ flag: "🇱🇰",
1498
+ },
1499
+ {
1500
+ name: "Suomi",
1501
+ deburr: "suomi",
1502
+ cca2: "FI",
1503
+ cca3: "FIN",
1504
+ idd: "358",
1505
+ uid: "FI-358",
1506
+ flag: "🇫🇮",
1507
+ },
1508
+ {
1509
+ name: "Suriname",
1510
+ deburr: "suriname",
1511
+ cca2: "SR",
1512
+ cca3: "SUR",
1513
+ idd: "597",
1514
+ uid: "SR-597",
1515
+ flag: "🇸🇷",
1516
+ },
1517
+ {
1518
+ name: "Sverige",
1519
+ deburr: "sverige",
1520
+ cca2: "SE",
1521
+ cca3: "SWE",
1522
+ idd: "46",
1523
+ uid: "SE-46",
1524
+ flag: "🇸🇪",
1525
+ },
1526
+ {
1527
+ name: "Swaziland",
1528
+ deburr: "swaziland",
1529
+ cca2: "SZ",
1530
+ cca3: "SWZ",
1531
+ idd: "268",
1532
+ uid: "SZ-268",
1533
+ flag: "🇸🇿",
1534
+ },
1535
+ {
1536
+ name: "Tanzania",
1537
+ deburr: "tanzania",
1538
+ cca2: "TZ",
1539
+ cca3: "TZA",
1540
+ idd: "255",
1541
+ uid: "TZ-255",
1542
+ flag: "🇹🇿",
1543
+ },
1544
+ {
1545
+ name: "Tchad",
1546
+ deburr: "tchad",
1547
+ cca2: "TD",
1548
+ cca3: "TCD",
1549
+ idd: "235",
1550
+ uid: "TD-235",
1551
+ flag: "🇹🇩",
1552
+ },
1553
+ {
1554
+ name: "Terres antarctiques françaises",
1555
+ deburr: "terres antarctiques francaises",
1556
+ cca2: "TF",
1557
+ cca3: "ATF",
1558
+ idd: "262",
1559
+ uid: "TF-262",
1560
+ flag: "🇹🇫",
1561
+ },
1562
+ {
1563
+ name: "Timor-Leste",
1564
+ deburr: "timor-leste",
1565
+ cca2: "TL",
1566
+ cca3: "TLS",
1567
+ idd: "670",
1568
+ uid: "TL-670",
1569
+ flag: "🇹🇱",
1570
+ },
1571
+ {
1572
+ name: "Togo",
1573
+ deburr: "togo",
1574
+ cca2: "TG",
1575
+ cca3: "TGO",
1576
+ idd: "228",
1577
+ uid: "TG-228",
1578
+ flag: "🇹🇬",
1579
+ },
1580
+ {
1581
+ name: "Tonga",
1582
+ deburr: "tonga",
1583
+ cca2: "TO",
1584
+ cca3: "TON",
1585
+ idd: "676",
1586
+ uid: "TO-676",
1587
+ flag: "🇹🇴",
1588
+ },
1589
+ {
1590
+ name: "Trinidad and Tobago",
1591
+ deburr: "trinidad and tobago",
1592
+ cca2: "TT",
1593
+ cca3: "TTO",
1594
+ idd: "1868",
1595
+ uid: "TT-1868",
1596
+ flag: "🇹🇹",
1597
+ },
1598
+ {
1599
+ name: "Türkiye",
1600
+ deburr: "turkiye",
1601
+ cca2: "TR",
1602
+ cca3: "TUR",
1603
+ idd: "90",
1604
+ uid: "TR-90",
1605
+ flag: "🇹🇷",
1606
+ },
1607
+ {
1608
+ name: "Türkmenistan",
1609
+ deburr: "turkmenistan",
1610
+ cca2: "TM",
1611
+ cca3: "TKM",
1612
+ idd: "993",
1613
+ uid: "TM-993",
1614
+ flag: "🇹🇲",
1615
+ },
1616
+ {
1617
+ name: "Turks and Caicos Islands",
1618
+ deburr: "turks and caicos islands",
1619
+ cca2: "TC",
1620
+ cca3: "TCA",
1621
+ idd: "1649",
1622
+ uid: "TC-1649",
1623
+ flag: "🇹🇨",
1624
+ },
1625
+ {
1626
+ name: "Tuvalu",
1627
+ deburr: "tuvalu",
1628
+ cca2: "TV",
1629
+ cca3: "TUV",
1630
+ idd: "688",
1631
+ uid: "TV-688",
1632
+ flag: "🇹🇻",
1633
+ },
1634
+ {
1635
+ name: "Uganda",
1636
+ deburr: "uganda",
1637
+ cca2: "UG",
1638
+ cca3: "UGA",
1639
+ idd: "256",
1640
+ uid: "UG-256",
1641
+ flag: "🇺🇬",
1642
+ },
1643
+ {
1644
+ name: "United Kingdom",
1645
+ deburr: "united kingdom",
1646
+ cca2: "GB",
1647
+ cca3: "GBR",
1648
+ idd: "44",
1649
+ uid: "GB-44",
1650
+ flag: "🇬🇧",
1651
+ },
1652
+ {
1653
+ name: "United States",
1654
+ deburr: "united states",
1655
+ cca2: "US",
1656
+ cca3: "USA",
1657
+ idd: "1",
1658
+ uid: "US-1",
1659
+ flag: "🇺🇸",
1660
+ },
1661
+ {
1662
+ name: "United States Minor Outlying Islands",
1663
+ deburr: "united states minor outlying islands",
1664
+ cca2: "UM",
1665
+ cca3: "UMI",
1666
+ idd: "1",
1667
+ uid: "UM-1",
1668
+ flag: "🇺🇲",
1669
+ },
1670
+ {
1671
+ name: "United States Virgin Islands",
1672
+ deburr: "united states virgin islands",
1673
+ cca2: "VI",
1674
+ cca3: "VIR",
1675
+ idd: "1340",
1676
+ uid: "VI-1340",
1677
+ flag: "🇻🇮",
1678
+ },
1679
+ {
1680
+ name: "Uruguay",
1681
+ deburr: "uruguay",
1682
+ cca2: "UY",
1683
+ cca3: "URY",
1684
+ idd: "598",
1685
+ uid: "UY-598",
1686
+ flag: "🇺🇾",
1687
+ },
1688
+ {
1689
+ name: "Vanuatu",
1690
+ deburr: "vanuatu",
1691
+ cca2: "VU",
1692
+ cca3: "VUT",
1693
+ idd: "678",
1694
+ uid: "VU-678",
1695
+ flag: "🇻🇺",
1696
+ },
1697
+ {
1698
+ name: "Vaticano",
1699
+ deburr: "vaticano",
1700
+ cca2: "VA",
1701
+ cca3: "VAT",
1702
+ idd: "379",
1703
+ uid: "VA-379",
1704
+ flag: "🇻🇦",
1705
+ },
1706
+ {
1707
+ name: "Venezuela",
1708
+ deburr: "venezuela",
1709
+ cca2: "VE",
1710
+ cca3: "VEN",
1711
+ idd: "58",
1712
+ uid: "VE-58",
1713
+ flag: "🇻🇪",
1714
+ },
1715
+ {
1716
+ name: "Việt Nam",
1717
+ deburr: "viet nam",
1718
+ cca2: "VN",
1719
+ cca3: "VNM",
1720
+ idd: "84",
1721
+ uid: "VN-84",
1722
+ flag: "🇻🇳",
1723
+ },
1724
+ {
1725
+ name: "Wallis et Futuna",
1726
+ deburr: "wallis et futuna",
1727
+ cca2: "WF",
1728
+ cca3: "WLF",
1729
+ idd: "681",
1730
+ uid: "WF-681",
1731
+ flag: "🇼🇫",
1732
+ },
1733
+ {
1734
+ name: "Zambia",
1735
+ deburr: "zambia",
1736
+ cca2: "ZM",
1737
+ cca3: "ZMB",
1738
+ idd: "260",
1739
+ uid: "ZM-260",
1740
+ flag: "🇿🇲",
1741
+ },
1742
+ {
1743
+ name: "Zimbabwe",
1744
+ deburr: "zimbabwe",
1745
+ cca2: "ZW",
1746
+ cca3: "ZWE",
1747
+ idd: "263",
1748
+ uid: "ZW-263",
1749
+ flag: "🇿🇼",
1750
+ },
1751
+ {
1752
+ name: "ʼbrug-yul",
1753
+ deburr: "ʼbrug-yul",
1754
+ cca2: "BT",
1755
+ cca3: "BTN",
1756
+ idd: "975",
1757
+ uid: "BT-975",
1758
+ flag: "🇧🇹",
1759
+ },
1760
+ {
1761
+ name: "Ελλάδα",
1762
+ deburr: "ελλάδα",
1763
+ cca2: "GR",
1764
+ cca3: "GRC",
1765
+ idd: "30",
1766
+ uid: "GR-30",
1767
+ flag: "🇬🇷",
1768
+ },
1769
+ {
1770
+ name: "Κύπρος",
1771
+ deburr: "κύπρος",
1772
+ cca2: "CY",
1773
+ cca3: "CYP",
1774
+ idd: "357",
1775
+ uid: "CY-357",
1776
+ flag: "🇨🇾",
1777
+ },
1778
+ {
1779
+ name: "Белару́сь",
1780
+ deburr: "беларусь",
1781
+ cca2: "BY",
1782
+ cca3: "BLR",
1783
+ idd: "375",
1784
+ uid: "BY-375",
1785
+ flag: "🇧🇾",
1786
+ },
1787
+ {
1788
+ name: "България",
1789
+ deburr: "българия",
1790
+ cca2: "BG",
1791
+ cca3: "BGR",
1792
+ idd: "359",
1793
+ uid: "BG-359",
1794
+ flag: "🇧🇬",
1795
+ },
1796
+ {
1797
+ name: "Кыргызстан",
1798
+ deburr: "кыргызстан",
1799
+ cca2: "KG",
1800
+ cca3: "KGZ",
1801
+ idd: "996",
1802
+ uid: "KG-996",
1803
+ flag: "🇰🇬",
1804
+ },
1805
+ {
1806
+ name: "Македонија",
1807
+ deburr: "македонија",
1808
+ cca2: "MK",
1809
+ cca3: "MKD",
1810
+ idd: "389",
1811
+ uid: "MK-389",
1812
+ flag: "🇲🇰",
1813
+ },
1814
+ {
1815
+ name: "Монгол улс",
1816
+ deburr: "монгол улс",
1817
+ cca2: "MN",
1818
+ cca3: "MNG",
1819
+ idd: "976",
1820
+ uid: "MN-976",
1821
+ flag: "🇲🇳",
1822
+ },
1823
+ {
1824
+ name: "Россия",
1825
+ deburr: "россия",
1826
+ cca2: "RU",
1827
+ cca3: "RUS",
1828
+ idd: "7",
1829
+ uid: "RU-7",
1830
+ flag: "🇷🇺",
1831
+ },
1832
+ {
1833
+ name: "Србија",
1834
+ deburr: "србија",
1835
+ cca2: "RS",
1836
+ cca3: "SRB",
1837
+ idd: "381",
1838
+ uid: "RS-381",
1839
+ flag: "🇷🇸",
1840
+ },
1841
+ {
1842
+ name: "Тоҷикистон",
1843
+ deburr: "тоҷикистон",
1844
+ cca2: "TJ",
1845
+ cca3: "TJK",
1846
+ idd: "992",
1847
+ uid: "TJ-992",
1848
+ flag: "🇹🇯",
1849
+ },
1850
+ {
1851
+ name: "Україна",
1852
+ deburr: "україна",
1853
+ cca2: "UA",
1854
+ cca3: "UKR",
1855
+ idd: "380",
1856
+ uid: "UA-380",
1857
+ flag: "🇺🇦",
1858
+ },
1859
+ {
1860
+ name: "Црна Гора",
1861
+ deburr: "црна гора",
1862
+ cca2: "ME",
1863
+ cca3: "MNE",
1864
+ idd: "382",
1865
+ uid: "ME-382",
1866
+ flag: "🇲🇪",
1867
+ },
1868
+ {
1869
+ name: "Հայաստան",
1870
+ deburr: "հայաստան",
1871
+ cca2: "AM",
1872
+ cca3: "ARM",
1873
+ idd: "374",
1874
+ uid: "AM-374",
1875
+ flag: "🇦🇲",
1876
+ },
1877
+ {
1878
+ name: "יִשְׂרָאֵל",
1879
+ deburr: "יִשְׂרָאֵל",
1880
+ cca2: "IL",
1881
+ cca3: "ISR",
1882
+ idd: "972",
1883
+ uid: "IL-972",
1884
+ flag: "🇮🇱",
1885
+ },
1886
+ {
1887
+ name: "افغانستان",
1888
+ deburr: "افغانستان",
1889
+ cca2: "AF",
1890
+ cca3: "AFG",
1891
+ idd: "93",
1892
+ uid: "AF-93",
1893
+ flag: "🇦🇫",
1894
+ },
1895
+ {
1896
+ name: "الأردن",
1897
+ deburr: "الأردن",
1898
+ cca2: "JO",
1899
+ cca3: "JOR",
1900
+ idd: "962",
1901
+ uid: "JO-962",
1902
+ flag: "🇯🇴",
1903
+ },
1904
+ {
1905
+ name: "الجزائر",
1906
+ deburr: "الجزائر",
1907
+ cca2: "DZ",
1908
+ cca3: "DZA",
1909
+ idd: "213",
1910
+ uid: "DZ-213",
1911
+ flag: "🇩🇿",
1912
+ },
1913
+ {
1914
+ name: "السودان",
1915
+ deburr: "السودان",
1916
+ cca2: "SD",
1917
+ cca3: "SDN",
1918
+ idd: "249",
1919
+ uid: "SD-249",
1920
+ flag: "🇸🇩",
1921
+ },
1922
+ {
1923
+ name: "الصحراء الغربية",
1924
+ deburr: "الصحراء الغربية",
1925
+ cca2: "EH",
1926
+ cca3: "ESH",
1927
+ idd: "212",
1928
+ uid: "EH-212",
1929
+ flag: "🇪🇭",
1930
+ },
1931
+ {
1932
+ name: "العراق",
1933
+ deburr: "العراق",
1934
+ cca2: "IQ",
1935
+ cca3: "IRQ",
1936
+ idd: "964",
1937
+ uid: "IQ-964",
1938
+ flag: "🇮🇶",
1939
+ },
1940
+ {
1941
+ name: "العربية السعودية",
1942
+ deburr: "العربية السعودية",
1943
+ cca2: "SA",
1944
+ cca3: "SAU",
1945
+ idd: "966",
1946
+ uid: "SA-966",
1947
+ flag: "🇸🇦",
1948
+ },
1949
+ {
1950
+ name: "الكويت",
1951
+ deburr: "الكويت",
1952
+ cca2: "KW",
1953
+ cca3: "KWT",
1954
+ idd: "965",
1955
+ uid: "KW-965",
1956
+ flag: "🇰🇼",
1957
+ },
1958
+ {
1959
+ name: "المغرب",
1960
+ deburr: "المغرب",
1961
+ cca2: "MA",
1962
+ cca3: "MAR",
1963
+ idd: "212",
1964
+ uid: "MA-212",
1965
+ flag: "🇲🇦",
1966
+ },
1967
+ {
1968
+ name: "اليَمَن",
1969
+ deburr: "اليَمَن",
1970
+ cca2: "YE",
1971
+ cca3: "YEM",
1972
+ idd: "967",
1973
+ uid: "YE-967",
1974
+ flag: "🇾🇪",
1975
+ },
1976
+ {
1977
+ name: "ایران",
1978
+ deburr: "ایران",
1979
+ cca2: "IR",
1980
+ cca3: "IRN",
1981
+ idd: "98",
1982
+ uid: "IR-98",
1983
+ flag: "🇮🇷",
1984
+ },
1985
+ {
1986
+ name: "تونس",
1987
+ deburr: "تونس",
1988
+ cca2: "TN",
1989
+ cca3: "TUN",
1990
+ idd: "216",
1991
+ uid: "TN-216",
1992
+ flag: "🇹🇳",
1993
+ },
1994
+ {
1995
+ name: "دولة الإمارات العربية المتحدة",
1996
+ deburr: "دولة الإمارات العربية المتحدة",
1997
+ cca2: "AE",
1998
+ cca3: "ARE",
1999
+ idd: "971",
2000
+ uid: "AE-971",
2001
+ flag: "🇦🇪",
2002
+ },
2003
+ {
2004
+ name: "سوريا",
2005
+ deburr: "سوريا",
2006
+ cca2: "SY",
2007
+ cca3: "SYR",
2008
+ idd: "963",
2009
+ uid: "SY-963",
2010
+ flag: "🇸🇾",
2011
+ },
2012
+ {
2013
+ name: "عمان",
2014
+ deburr: "عمان",
2015
+ cca2: "OM",
2016
+ cca3: "OMN",
2017
+ idd: "968",
2018
+ uid: "OM-968",
2019
+ flag: "🇴🇲",
2020
+ },
2021
+ {
2022
+ name: "فلسطين",
2023
+ deburr: "فلسطين",
2024
+ cca2: "PS",
2025
+ cca3: "PSE",
2026
+ idd: "970",
2027
+ uid: "PS-970",
2028
+ flag: "🇵🇸",
2029
+ },
2030
+ {
2031
+ name: "قطر",
2032
+ deburr: "قطر",
2033
+ cca2: "QA",
2034
+ cca3: "QAT",
2035
+ idd: "974",
2036
+ uid: "QA-974",
2037
+ flag: "🇶🇦",
2038
+ },
2039
+ {
2040
+ name: "لبنان",
2041
+ deburr: "لبنان",
2042
+ cca2: "LB",
2043
+ cca3: "LBN",
2044
+ idd: "961",
2045
+ uid: "LB-961",
2046
+ flag: "🇱🇧",
2047
+ },
2048
+ {
2049
+ name: "مصر‎",
2050
+ deburr: "مصر‎",
2051
+ cca2: "EG",
2052
+ cca3: "EGY",
2053
+ idd: "20",
2054
+ uid: "EG-20",
2055
+ flag: "🇪🇬",
2056
+ },
2057
+ {
2058
+ name: "موريتانيا",
2059
+ deburr: "موريتانيا",
2060
+ cca2: "MR",
2061
+ cca3: "MRT",
2062
+ idd: "222",
2063
+ uid: "MR-222",
2064
+ flag: "🇲🇷",
2065
+ },
2066
+ {
2067
+ name: "नपल",
2068
+ deburr: "नपल",
2069
+ cca2: "NP",
2070
+ cca3: "NPL",
2071
+ idd: "977",
2072
+ uid: "NP-977",
2073
+ flag: "🇳🇵",
2074
+ },
2075
+ {
2076
+ name: "भारत",
2077
+ deburr: "भारत",
2078
+ cca2: "IN",
2079
+ cca3: "IND",
2080
+ idd: "91",
2081
+ uid: "IN-91",
2082
+ flag: "🇮🇳",
2083
+ },
2084
+ {
2085
+ name: "ประเทศไทย",
2086
+ deburr: "ประเทศไทย",
2087
+ cca2: "TH",
2088
+ cca3: "THA",
2089
+ idd: "66",
2090
+ uid: "TH-66",
2091
+ flag: "🇹🇭",
2092
+ },
2093
+ {
2094
+ name: "ສປປລາວ",
2095
+ deburr: "ສປປລາວ",
2096
+ cca2: "LA",
2097
+ cca3: "LAO",
2098
+ idd: "856",
2099
+ uid: "LA-856",
2100
+ flag: "🇱🇦",
2101
+ },
2102
+ {
2103
+ name: "မြန်မာ",
2104
+ deburr: "မြန်မာ",
2105
+ cca2: "MM",
2106
+ cca3: "MMR",
2107
+ idd: "95",
2108
+ uid: "MM-95",
2109
+ flag: "🇲🇲",
2110
+ },
2111
+ {
2112
+ name: "საქართველო",
2113
+ deburr: "საქართველო",
2114
+ cca2: "GE",
2115
+ cca3: "GEO",
2116
+ idd: "995",
2117
+ uid: "GE-995",
2118
+ flag: "🇬🇪",
2119
+ },
2120
+ {
2121
+ name: "ኢትዮጵያ",
2122
+ deburr: "ኢትዮጵያ",
2123
+ cca2: "ET",
2124
+ cca3: "ETH",
2125
+ idd: "251",
2126
+ uid: "ET-251",
2127
+ flag: "🇪🇹",
2128
+ },
2129
+ {
2130
+ name: "ኤርትራ",
2131
+ deburr: "ኤርትራ",
2132
+ cca2: "ER",
2133
+ cca3: "ERI",
2134
+ idd: "291",
2135
+ uid: "ER-291",
2136
+ flag: "🇪🇷",
2137
+ },
2138
+ {
2139
+ name: "‏البحرين",
2140
+ deburr: "‏البحرين",
2141
+ cca2: "BH",
2142
+ cca3: "BHR",
2143
+ idd: "973",
2144
+ uid: "BH-973",
2145
+ flag: "🇧🇭",
2146
+ },
2147
+ {
2148
+ name: "‏ليبيا",
2149
+ deburr: "‏ليبيا",
2150
+ cca2: "LY",
2151
+ cca3: "LBY",
2152
+ idd: "218",
2153
+ uid: "LY-218",
2154
+ flag: "🇱🇾",
2155
+ },
2156
+ {
2157
+ name: "中国",
2158
+ deburr: "中国",
2159
+ cca2: "CN",
2160
+ cca3: "CHN",
2161
+ idd: "86",
2162
+ uid: "CN-86",
2163
+ flag: "🇨🇳",
2164
+ },
2165
+ {
2166
+ name: "日本",
2167
+ deburr: "日本",
2168
+ cca2: "JP",
2169
+ cca3: "JPN",
2170
+ idd: "81",
2171
+ uid: "JP-81",
2172
+ flag: "🇯🇵",
2173
+ },
2174
+ {
2175
+ name: "澳門",
2176
+ deburr: "澳門",
2177
+ cca2: "MO",
2178
+ cca3: "MAC",
2179
+ idd: "853",
2180
+ uid: "MO-853",
2181
+ flag: "🇲🇴",
2182
+ },
2183
+ {
2184
+ name: "臺灣",
2185
+ deburr: "臺灣",
2186
+ cca2: "TW",
2187
+ cca3: "TWN",
2188
+ idd: "886",
2189
+ uid: "TW-886",
2190
+ flag: "🇹🇼",
2191
+ },
2192
+ {
2193
+ name: "香港",
2194
+ deburr: "香港",
2195
+ cca2: "HK",
2196
+ cca3: "HKG",
2197
+ idd: "852",
2198
+ uid: "HK-852",
2199
+ flag: "🇭🇰",
2200
+ },
2201
+ {
2202
+ name: "대한민국",
2203
+ deburr: "대한민국",
2204
+ cca2: "KR",
2205
+ cca3: "KOR",
2206
+ idd: "82",
2207
+ uid: "KR-82",
2208
+ flag: "🇰🇷",
2209
+ },
2210
+ {
2211
+ name: "북한",
2212
+ deburr: "북한",
2213
+ cca2: "KP",
2214
+ cca3: "PRK",
2215
+ idd: "850",
2216
+ uid: "KP-850",
2217
+ flag: "🇰🇵",
2218
+ },
2219
+ ];
2220
+ export const countries = readonlyCountries.concat([]);
2221
+ export const getCCA2forCCA3 = (cca3) => countries.find(country => country.cca3 === cca3)?.cca2;
2222
+ export const getCCA3forCCA2 = (cca2) => countries.find(country => country.cca2 === cca2)?.cca3;
2223
+ export const getCountryNameByCCA3 = (cca3) => {
2224
+ if (isTranslatedCountry(cca3)) {
2225
+ return names[cca3];
2226
+ }
2227
+ return countries.find(country => country.cca3 === cca3)?.name ?? cca3;
2228
+ };
2229
+ export const companyWithUboCountries = ["BEL", "DEU", "FRA", "ITA", "LTU", "LUX", "NLD"];
2230
+ const names = {
2231
+ AUT: t("country.AUT"),
2232
+ BEL: t("country.BEL"),
2233
+ BGR: t("country.BGR"),
2234
+ CYP: t("country.CYP"),
2235
+ CZE: t("country.CZE"),
2236
+ DEU: t("country.DEU"),
2237
+ DNK: t("country.DNK"),
2238
+ ESP: t("country.ESP"),
2239
+ EST: t("country.EST"),
2240
+ FIN: t("country.FIN"),
2241
+ FRA: t("country.FRA"),
2242
+ GRC: t("country.GRC"),
2243
+ HRV: t("country.HRV"),
2244
+ HUN: t("country.HUN"),
2245
+ IRL: t("country.IRL"),
2246
+ ISL: t("country.ISL"),
2247
+ ITA: t("country.ITA"),
2248
+ LIE: t("country.LIE"),
2249
+ LTU: t("country.LTU"),
2250
+ LUX: t("country.LUX"),
2251
+ LVA: t("country.LVA"),
2252
+ MLT: t("country.MLT"),
2253
+ NLD: t("country.NLD"),
2254
+ NOR: t("country.NOR"),
2255
+ POL: t("country.POL"),
2256
+ PRT: t("country.PRT"),
2257
+ ROU: t("country.ROU"),
2258
+ SVK: t("country.SVK"),
2259
+ SVN: t("country.SVN"),
2260
+ SWE: t("country.SWE"),
2261
+ };
2262
+ const individualCountries = [
2263
+ "AUT",
2264
+ "BEL",
2265
+ "CYP",
2266
+ "DEU",
2267
+ "ESP",
2268
+ "EST",
2269
+ "FIN",
2270
+ "FRA",
2271
+ "GRC",
2272
+ "IRL",
2273
+ "ISL",
2274
+ "ITA",
2275
+ "LTU",
2276
+ "LUX",
2277
+ "LVA",
2278
+ "MLT",
2279
+ "NLD",
2280
+ "PRT",
2281
+ "SVK",
2282
+ "SVN",
2283
+ "HRV",
2284
+ "CZE",
2285
+ "DNK",
2286
+ "HUN",
2287
+ "LIE",
2288
+ "POL",
2289
+ "NOR",
2290
+ "ROU",
2291
+ "SWE",
2292
+ "BGR",
2293
+ ];
2294
+ export const individualCountriesItems = individualCountries
2295
+ .map(cca3 => ({
2296
+ name: names[cca3],
2297
+ cca3,
2298
+ cca2: getCCA2forCCA3(cca3),
2299
+ }))
2300
+ .sort((a, b) => a.name.localeCompare(b.name));
2301
+ const companyCountries = [
2302
+ "BEL",
2303
+ "DEU",
2304
+ "FRA",
2305
+ "ITA",
2306
+ "LTU",
2307
+ "LUX",
2308
+ "NLD",
2309
+ "FIN",
2310
+ "AUT",
2311
+ "ESP",
2312
+ "HRV",
2313
+ "CZE",
2314
+ "DNK",
2315
+ "HUN",
2316
+ "LIE",
2317
+ "POL",
2318
+ "ROU",
2319
+ "SWE",
2320
+ "EST",
2321
+ "GRC",
2322
+ "IRL",
2323
+ "ISL",
2324
+ "LVA",
2325
+ "MLT",
2326
+ "PRT",
2327
+ "SVK",
2328
+ "SVN",
2329
+ "BGR",
2330
+ ];
2331
+ export const companyCountriesItems = companyCountries
2332
+ .map(cca3 => ({
2333
+ name: names[cca3],
2334
+ cca3,
2335
+ cca2: getCCA2forCCA3(cca3),
2336
+ }))
2337
+ .sort((a, b) => a.name.localeCompare(b.name));
2338
+ // Google API accepts only 5 country codes
2339
+ export const countriesWithMultipleCCA3 = {
2340
+ FRA: ["FRA", "GUF", "REU", "MTQ", "GLP"], // France, French Guiana, Réunion, Martinique, Guadeloupe
2341
+ };
2342
+ export const isCountryCCA3 = (value) => countries.some(({ cca3 }) => cca3 === value);
2343
+ export const isCountryCCA2 = (value) => countries.some(({ cca2 }) => cca2 === value);
2344
+ export const isIndividualCountryCCA3 = (value) => individualCountries.includes(value);
2345
+ export const isCompanyCountryCCA3 = (value) => companyCountries.includes(value);
2346
+ export const isCompanyWithUboCountryCCA3 = (value) => companyWithUboCountries.includes(value);
2347
+ const isTranslatedCountry = (value) => Object.keys(names).includes(value);
2348
+ const getBestNavigatorCountryIndividual = () => {
2349
+ const navigatorCountries = navigator.languages
2350
+ .map(lang => lang.split("-")[1])
2351
+ .filter(isNotNullish);
2352
+ const cca2 = navigatorCountries.find(isCountryCCA2) ?? "FR";
2353
+ const country = individualCountriesItems.find(country => country.cca2 === cca2);
2354
+ return country ? country.cca3 : "FRA";
2355
+ };
2356
+ const getBestNavigatorCountryCompany = () => {
2357
+ const navigatorCountries = navigator.languages.map(lang => lang.split("-")[1]);
2358
+ const cca2 = navigatorCountries.find(isCountryCCA2) ?? "FR";
2359
+ const country = companyCountriesItems.find(country => country.cca2 === cca2);
2360
+ return country ? country.cca3 : "FRA";
2361
+ };
2362
+ export const individualFallbackCountry = getBestNavigatorCountryIndividual();
2363
+ export const companyFallbackCountry = getBestNavigatorCountryCompany();