@saasquatch/mint-components 2.3.0-7 → 2.3.0-8

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 (47) hide show
  1. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +25 -25
  2. package/dist/cjs/sqm-big-stat_47.cjs.entry.js +2 -2
  3. package/dist/cjs/sqm-stencilbook.cjs.entry.js +2 -2
  4. package/dist/cjs/{sqm-user-info-form-view-42323dc5.js → sqm-user-info-form-view-374a3f01.js} +20 -980
  5. package/dist/cjs/subregions-984e30d7.js +1505 -0
  6. package/dist/cjs/{useIndirectTaxForm-d1cd23f7.js → useIndirectTaxForm-112914a0.js} +1 -1
  7. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +18 -7
  8. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +22 -19
  9. package/dist/collection/components/tax-and-cash/utils.js +55 -0
  10. package/dist/esm/sqm-banking-info-form_10.entry.js +25 -25
  11. package/dist/esm/sqm-big-stat_47.entry.js +2 -2
  12. package/dist/esm/sqm-stencilbook.entry.js +2 -2
  13. package/dist/esm/{sqm-user-info-form-view-dc473cb8.js → sqm-user-info-form-view-5322525c.js} +18 -978
  14. package/dist/esm/subregions-7c9778d0.js +1492 -0
  15. package/dist/esm/{useIndirectTaxForm-27668ad4.js → useIndirectTaxForm-a6ac7e7e.js} +1 -1
  16. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  17. package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
  18. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  19. package/dist/esm-es5/sqm-user-info-form-view-5322525c.js +1 -0
  20. package/dist/esm-es5/subregions-7c9778d0.js +1 -0
  21. package/dist/esm-es5/{useIndirectTaxForm-27668ad4.js → useIndirectTaxForm-a6ac7e7e.js} +1 -1
  22. package/dist/mint-components/mint-components.esm.js +1 -1
  23. package/dist/mint-components/p-1f387c7b.system.js +1 -1
  24. package/dist/mint-components/{p-2e462dd9.js → p-2d4132fb.js} +5 -5
  25. package/dist/mint-components/p-5623f1e0.js +1 -0
  26. package/dist/mint-components/{p-3c052d3d.entry.js → p-5bc707cf.entry.js} +1 -1
  27. package/dist/mint-components/{p-c2903e7d.entry.js → p-6eebbc59.entry.js} +2 -2
  28. package/dist/mint-components/{p-ed945efe.system.js → p-6ef373ed.system.js} +1 -1
  29. package/dist/mint-components/{p-df74f653.system.entry.js → p-7a4cf6c9.system.entry.js} +1 -1
  30. package/dist/mint-components/p-7f29622d.js +1 -0
  31. package/dist/mint-components/{p-4575f71b.system.entry.js → p-8a08cec6.system.entry.js} +1 -1
  32. package/dist/mint-components/{p-547f8243.system.entry.js → p-90200f08.system.entry.js} +1 -1
  33. package/dist/mint-components/{p-d30c8cb3.entry.js → p-91295327.entry.js} +1 -1
  34. package/dist/mint-components/p-bd03efe0.system.js +1 -0
  35. package/dist/mint-components/p-c13c20b2.system.js +1 -0
  36. package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -0
  37. package/dist/types/components/tax-and-cash/utils.d.ts +5 -0
  38. package/docs/docs.docx +0 -0
  39. package/package.json +1 -1
  40. package/dist/cjs/subregions-e7273457.js +0 -478
  41. package/dist/esm/subregions-24c1c137.js +0 -467
  42. package/dist/esm-es5/sqm-user-info-form-view-dc473cb8.js +0 -1
  43. package/dist/esm-es5/subregions-24c1c137.js +0 -1
  44. package/dist/mint-components/p-3f68e4e3.js +0 -1
  45. package/dist/mint-components/p-66cb8bec.system.js +0 -1
  46. package/dist/mint-components/p-cb58a2c6.js +0 -1
  47. package/dist/mint-components/p-ec58628f.system.js +0 -1
@@ -0,0 +1,1492 @@
1
+ import { h } from './index-38ad4957.js';
2
+ import { i as intl } from './global-75e96214.js';
3
+ import { c as createStyleSheet } from './JSS-67b5cff8.js';
4
+
5
+ const PHONE_EXTENSIONS = {
6
+ AF: {
7
+ name: "Afghanistan",
8
+ dial_code: "+93",
9
+ },
10
+ AX: {
11
+ name: "Aland Islands",
12
+ dial_code: "+358",
13
+ },
14
+ AL: {
15
+ name: "Albania",
16
+ dial_code: "+355",
17
+ },
18
+ DZ: {
19
+ name: "Algeria",
20
+ dial_code: "+213",
21
+ },
22
+ AS: {
23
+ name: "AmericanSamoa",
24
+ dial_code: "+1684",
25
+ },
26
+ AD: {
27
+ name: "Andorra",
28
+ dial_code: "+376",
29
+ },
30
+ AO: {
31
+ name: "Angola",
32
+ dial_code: "+244",
33
+ },
34
+ AI: {
35
+ name: "Anguilla",
36
+ dial_code: "+1264",
37
+ },
38
+ AQ: {
39
+ name: "Antarctica",
40
+ dial_code: "+672",
41
+ },
42
+ AG: {
43
+ name: "Antigua and Barbuda",
44
+ dial_code: "+1268",
45
+ },
46
+ AR: {
47
+ name: "Argentina",
48
+ dial_code: "+54",
49
+ },
50
+ AM: {
51
+ name: "Armenia",
52
+ dial_code: "+374",
53
+ },
54
+ AW: {
55
+ name: "Aruba",
56
+ dial_code: "+297",
57
+ },
58
+ AU: {
59
+ name: "Australia",
60
+ dial_code: "+61",
61
+ },
62
+ AT: {
63
+ name: "Austria",
64
+ dial_code: "+43",
65
+ },
66
+ AZ: {
67
+ name: "Azerbaijan",
68
+ dial_code: "+994",
69
+ },
70
+ BS: {
71
+ name: "Bahamas",
72
+ dial_code: "+1242",
73
+ },
74
+ BH: {
75
+ name: "Bahrain",
76
+ dial_code: "+973",
77
+ },
78
+ BD: {
79
+ name: "Bangladesh",
80
+ dial_code: "+880",
81
+ },
82
+ BB: {
83
+ name: "Barbados",
84
+ dial_code: "+1246",
85
+ },
86
+ BY: {
87
+ name: "Belarus",
88
+ dial_code: "+375",
89
+ },
90
+ BE: {
91
+ name: "Belgium",
92
+ dial_code: "+32",
93
+ },
94
+ BZ: {
95
+ name: "Belize",
96
+ dial_code: "+501",
97
+ },
98
+ BJ: {
99
+ name: "Benin",
100
+ dial_code: "+229",
101
+ },
102
+ BM: {
103
+ name: "Bermuda",
104
+ dial_code: "+1441",
105
+ },
106
+ BT: {
107
+ name: "Bhutan",
108
+ dial_code: "+975",
109
+ },
110
+ BO: {
111
+ name: "Bolivia, Plurinational State of",
112
+ dial_code: "+591",
113
+ },
114
+ BA: {
115
+ name: "Bosnia and Herzegovina",
116
+ dial_code: "+387",
117
+ },
118
+ BW: {
119
+ name: "Botswana",
120
+ dial_code: "+267",
121
+ },
122
+ BR: {
123
+ name: "Brazil",
124
+ dial_code: "+55",
125
+ },
126
+ IO: {
127
+ name: "British Indian Ocean Territory",
128
+ dial_code: "+246",
129
+ },
130
+ BN: {
131
+ name: "Brunei Darussalam",
132
+ dial_code: "+673",
133
+ },
134
+ BG: {
135
+ name: "Bulgaria",
136
+ dial_code: "+359",
137
+ },
138
+ BF: {
139
+ name: "Burkina Faso",
140
+ dial_code: "+226",
141
+ },
142
+ BI: {
143
+ name: "Burundi",
144
+ dial_code: "+257",
145
+ },
146
+ KH: {
147
+ name: "Cambodia",
148
+ dial_code: "+855",
149
+ },
150
+ CM: {
151
+ name: "Cameroon",
152
+ dial_code: "+237",
153
+ },
154
+ CA: {
155
+ name: "Canada",
156
+ dial_code: "+1",
157
+ },
158
+ CV: {
159
+ name: "Cape Verde",
160
+ dial_code: "+238",
161
+ },
162
+ KY: {
163
+ name: "Cayman Islands",
164
+ dial_code: "+ 345",
165
+ },
166
+ CF: {
167
+ name: "Central African Republic",
168
+ dial_code: "+236",
169
+ },
170
+ TD: {
171
+ name: "Chad",
172
+ dial_code: "+235",
173
+ },
174
+ CL: {
175
+ name: "Chile",
176
+ dial_code: "+56",
177
+ },
178
+ CN: {
179
+ name: "China",
180
+ dial_code: "+86",
181
+ },
182
+ CX: {
183
+ name: "Christmas Island",
184
+ dial_code: "+61",
185
+ },
186
+ CC: {
187
+ name: "Cocos (Keeling) Islands",
188
+ dial_code: "+61",
189
+ },
190
+ CO: {
191
+ name: "Colombia",
192
+ dial_code: "+57",
193
+ },
194
+ KM: {
195
+ name: "Comoros",
196
+ dial_code: "+269",
197
+ },
198
+ CG: {
199
+ name: "Congo",
200
+ dial_code: "+242",
201
+ },
202
+ CD: {
203
+ name: "Congo, The Democratic Republic of the Congo",
204
+ dial_code: "+243",
205
+ },
206
+ CK: {
207
+ name: "Cook Islands",
208
+ dial_code: "+682",
209
+ },
210
+ CR: {
211
+ name: "Costa Rica",
212
+ dial_code: "+506",
213
+ },
214
+ CI: {
215
+ name: "Cote d'Ivoire",
216
+ dial_code: "+225",
217
+ },
218
+ HR: {
219
+ name: "Croatia",
220
+ dial_code: "+385",
221
+ },
222
+ CU: {
223
+ name: "Cuba",
224
+ dial_code: "+53",
225
+ },
226
+ CY: {
227
+ name: "Cyprus",
228
+ dial_code: "+357",
229
+ },
230
+ CZ: {
231
+ name: "Czech Republic",
232
+ dial_code: "+420",
233
+ },
234
+ DK: {
235
+ name: "Denmark",
236
+ dial_code: "+45",
237
+ },
238
+ DJ: {
239
+ name: "Djibouti",
240
+ dial_code: "+253",
241
+ },
242
+ DM: {
243
+ name: "Dominica",
244
+ dial_code: "+1767",
245
+ },
246
+ DO: {
247
+ name: "Dominican Republic",
248
+ dial_code: "+1849",
249
+ },
250
+ EC: {
251
+ name: "Ecuador",
252
+ dial_code: "+593",
253
+ },
254
+ EG: {
255
+ name: "Egypt",
256
+ dial_code: "+20",
257
+ },
258
+ SV: {
259
+ name: "El Salvador",
260
+ dial_code: "+503",
261
+ },
262
+ GQ: {
263
+ name: "Equatorial Guinea",
264
+ dial_code: "+240",
265
+ },
266
+ ER: {
267
+ name: "Eritrea",
268
+ dial_code: "+291",
269
+ },
270
+ EE: {
271
+ name: "Estonia",
272
+ dial_code: "+372",
273
+ },
274
+ ET: {
275
+ name: "Ethiopia",
276
+ dial_code: "+251",
277
+ },
278
+ FK: {
279
+ name: "Falkland Islands (Malvinas)",
280
+ dial_code: "+500",
281
+ },
282
+ FO: {
283
+ name: "Faroe Islands",
284
+ dial_code: "+298",
285
+ },
286
+ FJ: {
287
+ name: "Fiji",
288
+ dial_code: "+679",
289
+ },
290
+ FI: {
291
+ name: "Finland",
292
+ dial_code: "+358",
293
+ },
294
+ FR: {
295
+ name: "France",
296
+ dial_code: "+33",
297
+ },
298
+ GF: {
299
+ name: "French Guiana",
300
+ dial_code: "+594",
301
+ },
302
+ PF: {
303
+ name: "French Polynesia",
304
+ dial_code: "+689",
305
+ },
306
+ GA: {
307
+ name: "Gabon",
308
+ dial_code: "+241",
309
+ },
310
+ GM: {
311
+ name: "Gambia",
312
+ dial_code: "+220",
313
+ },
314
+ GE: {
315
+ name: "Georgia",
316
+ dial_code: "+995",
317
+ },
318
+ DE: {
319
+ name: "Germany",
320
+ dial_code: "+49",
321
+ },
322
+ GH: {
323
+ name: "Ghana",
324
+ dial_code: "+233",
325
+ },
326
+ GI: {
327
+ name: "Gibraltar",
328
+ dial_code: "+350",
329
+ },
330
+ GR: {
331
+ name: "Greece",
332
+ dial_code: "+30",
333
+ },
334
+ GL: {
335
+ name: "Greenland",
336
+ dial_code: "+299",
337
+ },
338
+ GD: {
339
+ name: "Grenada",
340
+ dial_code: "+1473",
341
+ },
342
+ GP: {
343
+ name: "Guadeloupe",
344
+ dial_code: "+590",
345
+ },
346
+ GU: {
347
+ name: "Guam",
348
+ dial_code: "+1671",
349
+ },
350
+ GT: {
351
+ name: "Guatemala",
352
+ dial_code: "+502",
353
+ },
354
+ GG: {
355
+ name: "Guernsey",
356
+ dial_code: "+44",
357
+ },
358
+ GN: {
359
+ name: "Guinea",
360
+ dial_code: "+224",
361
+ },
362
+ GW: {
363
+ name: "Guinea-Bissau",
364
+ dial_code: "+245",
365
+ },
366
+ GY: {
367
+ name: "Guyana",
368
+ dial_code: "+595",
369
+ },
370
+ HT: {
371
+ name: "Haiti",
372
+ dial_code: "+509",
373
+ },
374
+ VA: {
375
+ name: "Holy See (Vatican City State)",
376
+ dial_code: "+379",
377
+ },
378
+ HN: {
379
+ name: "Honduras",
380
+ dial_code: "+504",
381
+ },
382
+ HK: {
383
+ name: "Hong Kong",
384
+ dial_code: "+852",
385
+ },
386
+ HU: {
387
+ name: "Hungary",
388
+ dial_code: "+36",
389
+ },
390
+ IS: {
391
+ name: "Iceland",
392
+ dial_code: "+354",
393
+ },
394
+ IN: {
395
+ name: "India",
396
+ dial_code: "+91",
397
+ },
398
+ ID: {
399
+ name: "Indonesia",
400
+ dial_code: "+62",
401
+ },
402
+ IR: {
403
+ name: "Iran, Islamic Republic of Persian Gulf",
404
+ dial_code: "+98",
405
+ },
406
+ IQ: {
407
+ name: "Iraq",
408
+ dial_code: "+964",
409
+ },
410
+ IE: {
411
+ name: "Ireland",
412
+ dial_code: "+353",
413
+ },
414
+ IM: {
415
+ name: "Isle of Man",
416
+ dial_code: "+44",
417
+ },
418
+ IL: {
419
+ name: "Israel",
420
+ dial_code: "+972",
421
+ },
422
+ IT: {
423
+ name: "Italy",
424
+ dial_code: "+39",
425
+ },
426
+ JM: {
427
+ name: "Jamaica",
428
+ dial_code: "+1876",
429
+ },
430
+ JP: {
431
+ name: "Japan",
432
+ dial_code: "+81",
433
+ },
434
+ JE: {
435
+ name: "Jersey",
436
+ dial_code: "+44",
437
+ },
438
+ JO: {
439
+ name: "Jordan",
440
+ dial_code: "+962",
441
+ },
442
+ KZ: {
443
+ name: "Kazakhstan",
444
+ dial_code: "+77",
445
+ },
446
+ KE: {
447
+ name: "Kenya",
448
+ dial_code: "+254",
449
+ },
450
+ KI: {
451
+ name: "Kiribati",
452
+ dial_code: "+686",
453
+ },
454
+ KP: {
455
+ name: "Korea, Democratic People's Republic of Korea",
456
+ dial_code: "+850",
457
+ },
458
+ KR: {
459
+ name: "Korea, Republic of South Korea",
460
+ dial_code: "+82",
461
+ },
462
+ KW: {
463
+ name: "Kuwait",
464
+ dial_code: "+965",
465
+ },
466
+ KG: {
467
+ name: "Kyrgyzstan",
468
+ dial_code: "+996",
469
+ },
470
+ LA: {
471
+ name: "Laos",
472
+ dial_code: "+856",
473
+ },
474
+ LV: {
475
+ name: "Latvia",
476
+ dial_code: "+371",
477
+ },
478
+ LB: {
479
+ name: "Lebanon",
480
+ dial_code: "+961",
481
+ },
482
+ LS: {
483
+ name: "Lesotho",
484
+ dial_code: "+266",
485
+ },
486
+ LR: {
487
+ name: "Liberia",
488
+ dial_code: "+231",
489
+ },
490
+ LY: {
491
+ name: "Libyan Arab Jamahiriya",
492
+ dial_code: "+218",
493
+ },
494
+ LI: {
495
+ name: "Liechtenstein",
496
+ dial_code: "+423",
497
+ },
498
+ LT: {
499
+ name: "Lithuania",
500
+ dial_code: "+370",
501
+ },
502
+ LU: {
503
+ name: "Luxembourg",
504
+ dial_code: "+352",
505
+ },
506
+ MO: {
507
+ name: "Macao",
508
+ dial_code: "+853",
509
+ },
510
+ MK: {
511
+ name: "Macedonia",
512
+ dial_code: "+389",
513
+ },
514
+ MG: {
515
+ name: "Madagascar",
516
+ dial_code: "+261",
517
+ },
518
+ MW: {
519
+ name: "Malawi",
520
+ dial_code: "+265",
521
+ },
522
+ MY: {
523
+ name: "Malaysia",
524
+ dial_code: "+60",
525
+ },
526
+ MV: {
527
+ name: "Maldives",
528
+ dial_code: "+960",
529
+ },
530
+ ML: {
531
+ name: "Mali",
532
+ dial_code: "+223",
533
+ },
534
+ MT: {
535
+ name: "Malta",
536
+ dial_code: "+356",
537
+ },
538
+ MH: {
539
+ name: "Marshall Islands",
540
+ dial_code: "+692",
541
+ },
542
+ MQ: {
543
+ name: "Martinique",
544
+ dial_code: "+596",
545
+ },
546
+ MR: {
547
+ name: "Mauritania",
548
+ dial_code: "+222",
549
+ },
550
+ MU: {
551
+ name: "Mauritius",
552
+ dial_code: "+230",
553
+ },
554
+ YT: {
555
+ name: "Mayotte",
556
+ dial_code: "+262",
557
+ },
558
+ MX: {
559
+ name: "Mexico",
560
+ dial_code: "+52",
561
+ },
562
+ FM: {
563
+ name: "Micronesia, Federated States of Micronesia",
564
+ dial_code: "+691",
565
+ },
566
+ MD: {
567
+ name: "Moldova",
568
+ dial_code: "+373",
569
+ },
570
+ MC: {
571
+ name: "Monaco",
572
+ dial_code: "+377",
573
+ },
574
+ MN: {
575
+ name: "Mongolia",
576
+ dial_code: "+976",
577
+ },
578
+ ME: {
579
+ name: "Montenegro",
580
+ dial_code: "+382",
581
+ },
582
+ MS: {
583
+ name: "Montserrat",
584
+ dial_code: "+1664",
585
+ },
586
+ MA: {
587
+ name: "Morocco",
588
+ dial_code: "+212",
589
+ },
590
+ MZ: {
591
+ name: "Mozambique",
592
+ dial_code: "+258",
593
+ },
594
+ MM: {
595
+ name: "Myanmar",
596
+ dial_code: "+95",
597
+ },
598
+ NA: {
599
+ name: "Namibia",
600
+ dial_code: "+264",
601
+ },
602
+ NR: {
603
+ name: "Nauru",
604
+ dial_code: "+674",
605
+ },
606
+ NP: {
607
+ name: "Nepal",
608
+ dial_code: "+977",
609
+ },
610
+ NL: {
611
+ name: "Netherlands",
612
+ dial_code: "+31",
613
+ },
614
+ AN: {
615
+ name: "Netherlands Antilles",
616
+ dial_code: "+599",
617
+ },
618
+ NC: {
619
+ name: "New Caledonia",
620
+ dial_code: "+687",
621
+ },
622
+ NZ: {
623
+ name: "New Zealand",
624
+ dial_code: "+64",
625
+ },
626
+ NI: {
627
+ name: "Nicaragua",
628
+ dial_code: "+505",
629
+ },
630
+ NE: {
631
+ name: "Niger",
632
+ dial_code: "+227",
633
+ },
634
+ NG: {
635
+ name: "Nigeria",
636
+ dial_code: "+234",
637
+ },
638
+ NU: {
639
+ name: "Niue",
640
+ dial_code: "+683",
641
+ },
642
+ NF: {
643
+ name: "Norfolk Island",
644
+ dial_code: "+672",
645
+ },
646
+ MP: {
647
+ name: "Northern Mariana Islands",
648
+ dial_code: "+1670",
649
+ },
650
+ NO: {
651
+ name: "Norway",
652
+ dial_code: "+47",
653
+ },
654
+ OM: {
655
+ name: "Oman",
656
+ dial_code: "+968",
657
+ },
658
+ PK: {
659
+ name: "Pakistan",
660
+ dial_code: "+92",
661
+ },
662
+ PW: {
663
+ name: "Palau",
664
+ dial_code: "+680",
665
+ },
666
+ PS: {
667
+ name: "Palestinian Territory, Occupied",
668
+ dial_code: "+970",
669
+ },
670
+ PA: {
671
+ name: "Panama",
672
+ dial_code: "+507",
673
+ },
674
+ PG: {
675
+ name: "Papua New Guinea",
676
+ dial_code: "+675",
677
+ },
678
+ PY: {
679
+ name: "Paraguay",
680
+ dial_code: "+595",
681
+ },
682
+ PE: {
683
+ name: "Peru",
684
+ dial_code: "+51",
685
+ },
686
+ PH: {
687
+ name: "Philippines",
688
+ dial_code: "+63",
689
+ },
690
+ PN: {
691
+ name: "Pitcairn",
692
+ dial_code: "+872",
693
+ },
694
+ PL: {
695
+ name: "Poland",
696
+ dial_code: "+48",
697
+ },
698
+ PT: {
699
+ name: "Portugal",
700
+ dial_code: "+351",
701
+ },
702
+ PR: {
703
+ name: "Puerto Rico",
704
+ dial_code: "+1939",
705
+ },
706
+ QA: {
707
+ name: "Qatar",
708
+ dial_code: "+974",
709
+ },
710
+ RO: {
711
+ name: "Romania",
712
+ dial_code: "+40",
713
+ },
714
+ RU: {
715
+ name: "Russia",
716
+ dial_code: "+7",
717
+ },
718
+ RW: {
719
+ name: "Rwanda",
720
+ dial_code: "+250",
721
+ },
722
+ RE: {
723
+ name: "Reunion",
724
+ dial_code: "+262",
725
+ },
726
+ BL: {
727
+ name: "Saint Barthelemy",
728
+ dial_code: "+590",
729
+ },
730
+ SH: {
731
+ name: "Saint Helena, Ascension and Tristan Da Cunha",
732
+ dial_code: "+290",
733
+ },
734
+ KN: {
735
+ name: "Saint Kitts and Nevis",
736
+ dial_code: "+1869",
737
+ },
738
+ LC: {
739
+ name: "Saint Lucia",
740
+ dial_code: "+1758",
741
+ },
742
+ MF: {
743
+ name: "Saint Martin",
744
+ dial_code: "+590",
745
+ },
746
+ PM: {
747
+ name: "Saint Pierre and Miquelon",
748
+ dial_code: "+508",
749
+ },
750
+ VC: {
751
+ name: "Saint Vincent and the Grenadines",
752
+ dial_code: "+1784",
753
+ },
754
+ WS: {
755
+ name: "Samoa",
756
+ dial_code: "+685",
757
+ },
758
+ SM: {
759
+ name: "San Marino",
760
+ dial_code: "+378",
761
+ },
762
+ ST: {
763
+ name: "Sao Tome and Principe",
764
+ dial_code: "+239",
765
+ },
766
+ SA: {
767
+ name: "Saudi Arabia",
768
+ dial_code: "+966",
769
+ },
770
+ SN: {
771
+ name: "Senegal",
772
+ dial_code: "+221",
773
+ },
774
+ RS: {
775
+ name: "Serbia",
776
+ dial_code: "+381",
777
+ },
778
+ SC: {
779
+ name: "Seychelles",
780
+ dial_code: "+248",
781
+ },
782
+ SL: {
783
+ name: "Sierra Leone",
784
+ dial_code: "+232",
785
+ },
786
+ SG: {
787
+ name: "Singapore",
788
+ dial_code: "+65",
789
+ },
790
+ SK: {
791
+ name: "Slovakia",
792
+ dial_code: "+421",
793
+ },
794
+ SI: {
795
+ name: "Slovenia",
796
+ dial_code: "+386",
797
+ },
798
+ SB: {
799
+ name: "Solomon Islands",
800
+ dial_code: "+677",
801
+ },
802
+ SO: {
803
+ name: "Somalia",
804
+ dial_code: "+252",
805
+ },
806
+ ZA: {
807
+ name: "South Africa",
808
+ dial_code: "+27",
809
+ },
810
+ SS: {
811
+ name: "South Sudan",
812
+ dial_code: "+211",
813
+ },
814
+ GS: {
815
+ name: "South Georgia and the South Sandwich Islands",
816
+ dial_code: "+500",
817
+ },
818
+ ES: {
819
+ name: "Spain",
820
+ dial_code: "+34",
821
+ },
822
+ LK: {
823
+ name: "Sri Lanka",
824
+ dial_code: "+94",
825
+ },
826
+ SD: {
827
+ name: "Sudan",
828
+ dial_code: "+249",
829
+ },
830
+ SR: {
831
+ name: "Suriname",
832
+ dial_code: "+597",
833
+ },
834
+ SJ: {
835
+ name: "Svalbard and Jan Mayen",
836
+ dial_code: "+47",
837
+ },
838
+ SZ: {
839
+ name: "Swaziland",
840
+ dial_code: "+268",
841
+ },
842
+ SE: {
843
+ name: "Sweden",
844
+ dial_code: "+46",
845
+ },
846
+ CH: {
847
+ name: "Switzerland",
848
+ dial_code: "+41",
849
+ },
850
+ SY: {
851
+ name: "Syrian Arab Republic",
852
+ dial_code: "+963",
853
+ },
854
+ TW: {
855
+ name: "Taiwan",
856
+ dial_code: "+886",
857
+ },
858
+ TJ: {
859
+ name: "Tajikistan",
860
+ dial_code: "+992",
861
+ },
862
+ TZ: {
863
+ name: "Tanzania, United Republic of Tanzania",
864
+ dial_code: "+255",
865
+ },
866
+ TH: {
867
+ name: "Thailand",
868
+ dial_code: "+66",
869
+ },
870
+ TL: {
871
+ name: "Timor-Leste",
872
+ dial_code: "+670",
873
+ },
874
+ TG: {
875
+ name: "Togo",
876
+ dial_code: "+228",
877
+ },
878
+ TK: {
879
+ name: "Tokelau",
880
+ dial_code: "+690",
881
+ },
882
+ TO: {
883
+ name: "Tonga",
884
+ dial_code: "+676",
885
+ },
886
+ TT: {
887
+ name: "Trinidad and Tobago",
888
+ dial_code: "+1868",
889
+ },
890
+ TN: {
891
+ name: "Tunisia",
892
+ dial_code: "+216",
893
+ },
894
+ TR: {
895
+ name: "Turkey",
896
+ dial_code: "+90",
897
+ },
898
+ TM: {
899
+ name: "Turkmenistan",
900
+ dial_code: "+993",
901
+ },
902
+ TC: {
903
+ name: "Turks and Caicos Islands",
904
+ dial_code: "+1649",
905
+ },
906
+ TV: {
907
+ name: "Tuvalu",
908
+ dial_code: "+688",
909
+ },
910
+ UG: {
911
+ name: "Uganda",
912
+ dial_code: "+256",
913
+ },
914
+ UA: {
915
+ name: "Ukraine",
916
+ dial_code: "+380",
917
+ },
918
+ AE: {
919
+ name: "United Arab Emirates",
920
+ dial_code: "+971",
921
+ },
922
+ GB: {
923
+ name: "United Kingdom",
924
+ dial_code: "+44",
925
+ },
926
+ US: {
927
+ name: "United States",
928
+ dial_code: "+1",
929
+ },
930
+ UY: {
931
+ name: "Uruguay",
932
+ dial_code: "+598",
933
+ },
934
+ UZ: {
935
+ name: "Uzbekistan",
936
+ dial_code: "+998",
937
+ },
938
+ VU: {
939
+ name: "Vanuatu",
940
+ dial_code: "+678",
941
+ },
942
+ VE: {
943
+ name: "Venezuela, Bolivarian Republic of Venezuela",
944
+ dial_code: "+58",
945
+ },
946
+ VN: {
947
+ name: "Vietnam",
948
+ dial_code: "+84",
949
+ },
950
+ VG: {
951
+ name: "Virgin Islands, British",
952
+ dial_code: "+1284",
953
+ },
954
+ VI: {
955
+ name: "Virgin Islands, U.S.",
956
+ dial_code: "+1340",
957
+ },
958
+ WF: {
959
+ name: "Wallis and Futuna",
960
+ dial_code: "+681",
961
+ },
962
+ YE: {
963
+ name: "Yemen",
964
+ dial_code: "+967",
965
+ },
966
+ ZM: {
967
+ name: "Zambia",
968
+ dial_code: "+260",
969
+ },
970
+ ZW: {
971
+ name: "Zimbabwe",
972
+ dial_code: "+263",
973
+ },
974
+ };
975
+
976
+ function stripLeadingZero(d) {
977
+ return d.startsWith("0") ? d.slice(1) : d;
978
+ }
979
+ /**
980
+ * Mirrors Impact's I18nPhoneNumberParams validation rules per country.
981
+ * Returns true when the phone number is valid for the given the phoneNumberCountryCode country.
982
+ */
983
+ function isValidI18nPhoneNumber(phoneCountryCode, phoneNumber) {
984
+ var _a, _b;
985
+ if (!phoneCountryCode || !(phoneNumber === null || phoneNumber === void 0 ? void 0 : phoneNumber.trim()))
986
+ return false;
987
+ const country = phoneCountryCode.toUpperCase();
988
+ const digits = phoneNumber.replace(/\D/g, "");
989
+ switch (country) {
990
+ case "US":
991
+ case "CA": {
992
+ // strip a single leading "1", then exactly 10 digits
993
+ const n = digits.startsWith("1") ? digits.slice(1) : digits;
994
+ return n.length === 10;
995
+ }
996
+ case "AU":
997
+ // 9 or 10 digits
998
+ return digits.length === 9 || digits.length === 10;
999
+ case "NZ": {
1000
+ // trim "640" country prefix or leading "0" (only when >9 digits),
1001
+ // then 8–10 digits
1002
+ let n = digits;
1003
+ if (n.length > 9) {
1004
+ if (n.startsWith("640"))
1005
+ n = n.slice(3);
1006
+ else if (n.startsWith("0"))
1007
+ n = n.slice(1);
1008
+ }
1009
+ return n.length >= 8 && n.length <= 10;
1010
+ }
1011
+ case "GB":
1012
+ // >= 6 digits after stripping a single leading "0", no dialing-code check
1013
+ return stripLeadingZero(digits).length >= 6;
1014
+ default: {
1015
+ // All other countries: strip a single leading "0", then >= 6 digits
1016
+ if (stripLeadingZero(digits).length < 6)
1017
+ return false;
1018
+ // If input starts with "+", the dialing code (first whitespace-split
1019
+ // token) must match the selected country exactly. Splits on first
1020
+ // whitespace, so "+4420 7946 0958" supplies "4420" (not "44") and fails.
1021
+ if (phoneNumber.trim().startsWith("+")) {
1022
+ const supplied = phoneNumber.trim().split(/\s/)[0].slice(1);
1023
+ const expected = (_b = (_a = PHONE_EXTENSIONS[country]) === null || _a === void 0 ? void 0 : _a.dial_code) === null || _b === void 0 ? void 0 : _b.replace(/^\+/, "");
1024
+ return expected === supplied;
1025
+ }
1026
+ return true;
1027
+ }
1028
+ }
1029
+ }
1030
+ function validTaxDocument(requiredType) {
1031
+ const validTypes = ["W9", "W8BENE", "W8BEN"];
1032
+ if (validTypes.includes(requiredType))
1033
+ return true;
1034
+ return false;
1035
+ }
1036
+ const objectIsFull = (obj) => {
1037
+ return !Object.keys(obj).find((k) => obj[k] == undefined);
1038
+ };
1039
+ const taxTypeToName = (taxType) => {
1040
+ switch (taxType) {
1041
+ case "W9":
1042
+ return "W-9";
1043
+ case "W8BEN":
1044
+ case "W8BENE":
1045
+ return "W-8";
1046
+ default:
1047
+ return "";
1048
+ }
1049
+ };
1050
+ function validateBillingField(regex, value) {
1051
+ const trimmed = value.trim();
1052
+ const idx = trimmed.search(regex);
1053
+ return idx > -1;
1054
+ }
1055
+ const formatErrorMessage = (fieldName, errorMessage) => {
1056
+ return intl.formatMessage({
1057
+ id: fieldName,
1058
+ defaultMessage: errorMessage,
1059
+ }, {
1060
+ fieldName,
1061
+ });
1062
+ };
1063
+ function getCountryObj({ countryCode, locale, }) {
1064
+ // @ts-ignore DisplayNames not in Intl type
1065
+ const displayName = new Intl.DisplayNames([locale], {
1066
+ type: "region",
1067
+ }).of(countryCode);
1068
+ return {
1069
+ countryCode,
1070
+ displayName,
1071
+ };
1072
+ }
1073
+
1074
+ const style = {
1075
+ Container: {
1076
+ display: "flex",
1077
+ flexDirection: "column",
1078
+ gap: "35px",
1079
+ },
1080
+ HeaderContainer: {
1081
+ display: "flex",
1082
+ flexDirection: "column",
1083
+ gap: "10px",
1084
+ },
1085
+ };
1086
+ const sheet = createStyleSheet(style);
1087
+ const styleString = sheet.toString();
1088
+ const LoadingView = () => {
1089
+ return (h("div", { class: sheet.classes.Container },
1090
+ h("style", { type: "text/css" }, styleString),
1091
+ h("sqm-skeleton", { width: "45%", height: "40px !important" }),
1092
+ h("div", { class: sheet.classes.HeaderContainer },
1093
+ h("sqm-skeleton", { width: "15%" }),
1094
+ h("sqm-skeleton", { width: "25%", height: "30px !important" })),
1095
+ h("sqm-skeleton", { width: "75%", height: "35px" }),
1096
+ h("sqm-skeleton", { width: "75%", height: "35px" }),
1097
+ h("sqm-skeleton", { width: "75%", height: "35px" }),
1098
+ h("sqm-skeleton", { width: "75%", height: "35px" }),
1099
+ h("sqm-skeleton", { width: "75%", height: "35px" }),
1100
+ h("sqm-skeleton", { width: "75%", height: "35px" }),
1101
+ h("sqm-skeleton", { width: "75%", height: "35px" }),
1102
+ h("sqm-skeleton", { width: "75%", height: "35px" }),
1103
+ h("sqm-skeleton", { width: "75%", height: "35px" }),
1104
+ h("sqm-skeleton", { width: "75%", height: "35px" }),
1105
+ h("sqm-skeleton", { width: "75%", height: "35px" }),
1106
+ h("sqm-skeleton", { width: "15%" }),
1107
+ h("sqm-skeleton", { width: "80px", height: "30px !important" })));
1108
+ };
1109
+
1110
+ const INDIRECT_TAX_PROVINCES = [
1111
+ { regionCode: "ALBERTA", taxType: "GST", displayName: "Alberta" },
1112
+ {
1113
+ regionCode: "BRITISHCOLUMBIA",
1114
+ taxType: "HST",
1115
+ displayName: "British Columbia",
1116
+ },
1117
+ { regionCode: "MANITOBA", taxType: "HST", displayName: "Manitoba" },
1118
+ {
1119
+ regionCode: "NEWBRUNSWICK",
1120
+ taxType: "HST",
1121
+ displayName: "New Brunswick",
1122
+ },
1123
+ {
1124
+ regionCode: "NEWFOUNDLANDLABRADOR",
1125
+ taxType: "HST",
1126
+ displayName: "Newfoundland",
1127
+ },
1128
+ {
1129
+ regionCode: "NORTHWESTTERRITORIES",
1130
+ taxType: "GST",
1131
+ displayName: "North West Territories",
1132
+ },
1133
+ { regionCode: "NOVASCOTIA", taxType: "HST", displayName: "Nova Scotia" },
1134
+ { regionCode: "NUNAVUT", taxType: "HST", displayName: "Nunavut" },
1135
+ { regionCode: "ONTARIO", taxType: "HST", displayName: "Ontario" },
1136
+ {
1137
+ regionCode: "PRINCEEDWARDISLAND",
1138
+ taxType: "HST",
1139
+ displayName: "Prince Edward Island",
1140
+ },
1141
+ { regionCode: "QUEBEC", taxType: "GST", displayName: "Quebec" },
1142
+ { regionCode: "SASKATCHEWAN", taxType: "HST", displayName: "Saskatchewan" },
1143
+ { regionCode: "YUKON", taxType: "GST", displayName: "Yukon" },
1144
+ ];
1145
+ const INDIRECT_TAX_SPAIN_REGIONS = [
1146
+ { regionCode: "SPAINPROPER", taxType: "VAT", displayName: "Spain Proper" },
1147
+ {
1148
+ regionCode: "CANARYISLANDS",
1149
+ taxType: "VAT",
1150
+ displayName: "Canary Islands",
1151
+ },
1152
+ ];
1153
+ const ADDRESS_REGIONS = {
1154
+ CA: {
1155
+ labelEnum: "PROVINCE",
1156
+ regions: [
1157
+ {
1158
+ label: "Alberta",
1159
+ value: "ALBERTA",
1160
+ },
1161
+ {
1162
+ label: "British Columbia",
1163
+ value: "BRITISHCOLUMBIA",
1164
+ },
1165
+ {
1166
+ label: "Manitoba",
1167
+ value: "MANITOBA",
1168
+ },
1169
+ {
1170
+ label: "New Brunswick",
1171
+ value: "NEWBRUNSWICK",
1172
+ },
1173
+ {
1174
+ label: "Newfoundland & Labrador",
1175
+ value: "NEWFOUNDLANDANDLABRADOR",
1176
+ },
1177
+ {
1178
+ label: "Northwest Territories",
1179
+ value: "NORTHWESTTERRITORIES",
1180
+ },
1181
+ {
1182
+ label: "Nova Scotia",
1183
+ value: "NOVASCOTIA",
1184
+ },
1185
+ {
1186
+ label: "Nunavut",
1187
+ value: "NUNAVUT",
1188
+ },
1189
+ {
1190
+ label: "Ontario",
1191
+ value: "ONTARIO",
1192
+ },
1193
+ {
1194
+ label: "Prince Edward Island",
1195
+ value: "PRINCEEDWARDISLAND",
1196
+ },
1197
+ {
1198
+ label: "Quebec",
1199
+ value: "QUEBEC",
1200
+ },
1201
+ {
1202
+ label: "Saskatchewan",
1203
+ value: "SASKATCHEWAN",
1204
+ },
1205
+ {
1206
+ label: "Yukon",
1207
+ value: "YUKON",
1208
+ },
1209
+ ],
1210
+ },
1211
+ ES: {
1212
+ labelEnum: "REGION",
1213
+ regions: [
1214
+ {
1215
+ label: "Canary Islands",
1216
+ value: "CANARYISLANDS",
1217
+ },
1218
+ {
1219
+ label: "Spain Proper",
1220
+ value: "SPAINPROPER",
1221
+ },
1222
+ ],
1223
+ },
1224
+ AU: {
1225
+ labelEnum: "STATE",
1226
+ regions: [
1227
+ {
1228
+ label: "Australian Capital Territory",
1229
+ value: "CAPITALTERRITORY",
1230
+ },
1231
+ {
1232
+ label: "New South Wales",
1233
+ value: "NEWSOUTHWALES",
1234
+ },
1235
+ {
1236
+ label: "Northern Territory",
1237
+ value: "NORTHERNTERRITORY",
1238
+ },
1239
+ {
1240
+ label: "Queensland",
1241
+ value: "QUEENSLAND",
1242
+ },
1243
+ {
1244
+ label: "South Australia",
1245
+ value: "SOUTHAUSTRALIA",
1246
+ },
1247
+ {
1248
+ label: "Tasmania",
1249
+ value: "TASMANIA",
1250
+ },
1251
+ {
1252
+ label: "Victoria",
1253
+ value: "VICTORIA",
1254
+ },
1255
+ {
1256
+ label: "Western Australia",
1257
+ value: "WESTERNAUSTRALIA",
1258
+ },
1259
+ ],
1260
+ },
1261
+ US: {
1262
+ labelEnum: "STATE",
1263
+ regions: [
1264
+ {
1265
+ label: "Alabama",
1266
+ value: "ALABAMA",
1267
+ },
1268
+ {
1269
+ label: "Alaska",
1270
+ value: "ALASKA",
1271
+ },
1272
+ {
1273
+ label: "Arizona",
1274
+ value: "ARIZONA",
1275
+ },
1276
+ {
1277
+ label: "Arkansas",
1278
+ value: "ARKANSAS",
1279
+ },
1280
+ {
1281
+ label: "California",
1282
+ value: "CALIFORNIA",
1283
+ },
1284
+ {
1285
+ label: "Colorado",
1286
+ value: "COLORADO",
1287
+ },
1288
+ {
1289
+ label: "Connecticut",
1290
+ value: "CONNECTICUT",
1291
+ },
1292
+ {
1293
+ label: "Delaware",
1294
+ value: "DELAWARE",
1295
+ },
1296
+ {
1297
+ label: "District of Columbia",
1298
+ value: "DISTRICTOFCOLUMBIA",
1299
+ },
1300
+ {
1301
+ label: "Florida",
1302
+ value: "FLORIDA",
1303
+ },
1304
+ {
1305
+ label: "Georgia",
1306
+ value: "GEORGIA",
1307
+ },
1308
+ {
1309
+ label: "Hawaii",
1310
+ value: "HAWAII",
1311
+ },
1312
+ {
1313
+ label: "Idaho",
1314
+ value: "IDAHO",
1315
+ },
1316
+ {
1317
+ label: "Illinois",
1318
+ value: "ILLINOIS",
1319
+ },
1320
+ {
1321
+ label: "Indiana",
1322
+ value: "INDIANA",
1323
+ },
1324
+ {
1325
+ label: "Iowa",
1326
+ value: "IOWA",
1327
+ },
1328
+ {
1329
+ label: "Kansas",
1330
+ value: "KANSAS",
1331
+ },
1332
+ {
1333
+ label: "Kentucky",
1334
+ value: "KENTUCKY",
1335
+ },
1336
+ {
1337
+ label: "Louisiana",
1338
+ value: "LOUISIANA",
1339
+ },
1340
+ {
1341
+ label: "Maine",
1342
+ value: "MAINE",
1343
+ },
1344
+ {
1345
+ label: "Maryland",
1346
+ value: "MARYLAND",
1347
+ },
1348
+ {
1349
+ label: "Massachusetts",
1350
+ value: "MASSACHUSETTS",
1351
+ },
1352
+ {
1353
+ label: "Michigan",
1354
+ value: "MICHIGAN",
1355
+ },
1356
+ {
1357
+ label: "Minnesota",
1358
+ value: "MINNESOTA",
1359
+ },
1360
+ {
1361
+ label: "Mississippi",
1362
+ value: "MISSISSIPPI",
1363
+ },
1364
+ {
1365
+ label: "Missouri",
1366
+ value: "MISSOURI",
1367
+ },
1368
+ {
1369
+ label: "Montana",
1370
+ value: "MONTANA",
1371
+ },
1372
+ {
1373
+ label: "Nebraska",
1374
+ value: "NEBRASKA",
1375
+ },
1376
+ {
1377
+ label: "Nevada",
1378
+ value: "NEVADA",
1379
+ },
1380
+ {
1381
+ label: "New Hampshire",
1382
+ value: "NEWHAMPSHIRE",
1383
+ },
1384
+ {
1385
+ label: "New Jersey",
1386
+ value: "NEWJERSEY",
1387
+ },
1388
+ {
1389
+ label: "New Mexico",
1390
+ value: "NEWMEXICO",
1391
+ },
1392
+ {
1393
+ label: "New York",
1394
+ value: "NEWYORK",
1395
+ },
1396
+ {
1397
+ label: "North Carolina",
1398
+ value: "NORTHCAROLINA",
1399
+ },
1400
+ {
1401
+ label: "North Dakota",
1402
+ value: "NORTHDAKOTA",
1403
+ },
1404
+ {
1405
+ label: "Ohio",
1406
+ value: "OHIO",
1407
+ },
1408
+ {
1409
+ label: "Oklahoma",
1410
+ value: "OKLAHOMA",
1411
+ },
1412
+ {
1413
+ label: "Oregon",
1414
+ value: "OREGON",
1415
+ },
1416
+ {
1417
+ label: "Pennsylvania",
1418
+ value: "PENNSYLVANIA",
1419
+ },
1420
+ {
1421
+ label: "Rhode Island",
1422
+ value: "RHODEISLAND",
1423
+ },
1424
+ {
1425
+ label: "South Carolina",
1426
+ value: "SOUTHCAROLINA",
1427
+ },
1428
+ {
1429
+ label: "South Dakota",
1430
+ value: "SOUTHDAKOTA",
1431
+ },
1432
+ {
1433
+ label: "Tennessee",
1434
+ value: "TENNESSEE",
1435
+ },
1436
+ {
1437
+ label: "Texas",
1438
+ value: "TEXAS",
1439
+ },
1440
+ {
1441
+ label: "Utah",
1442
+ value: "UTAH",
1443
+ },
1444
+ {
1445
+ label: "Vermont",
1446
+ value: "VERMONT",
1447
+ },
1448
+ {
1449
+ label: "Virgin Islands",
1450
+ value: "VIRGINISLANDS",
1451
+ },
1452
+ {
1453
+ label: "Virginia",
1454
+ value: "VIRGINIA",
1455
+ },
1456
+ {
1457
+ label: "Washington",
1458
+ value: "WASHINGTON",
1459
+ },
1460
+ {
1461
+ label: "West Virginia",
1462
+ value: "WESTVIRGINIA",
1463
+ },
1464
+ {
1465
+ label: "Wisconsin",
1466
+ value: "WISCONSIN",
1467
+ },
1468
+ {
1469
+ label: "Wyoming",
1470
+ value: "WYOMING",
1471
+ },
1472
+ {
1473
+ label: "Americas Forces",
1474
+ value: "AAMILITARY",
1475
+ },
1476
+ {
1477
+ label: "Europe, Middle East, Canada, Africa and Canada Forces",
1478
+ value: "AEMILITARY",
1479
+ },
1480
+ {
1481
+ label: "Pacific Forces",
1482
+ value: "APMILITARY",
1483
+ },
1484
+ {
1485
+ label: "Other",
1486
+ value: "OTHER",
1487
+ },
1488
+ ],
1489
+ },
1490
+ };
1491
+
1492
+ export { ADDRESS_REGIONS as A, INDIRECT_TAX_SPAIN_REGIONS as I, LoadingView as L, PHONE_EXTENSIONS as P, INDIRECT_TAX_PROVINCES as a, validTaxDocument as b, formatErrorMessage as f, getCountryObj as g, isValidI18nPhoneNumber as i, objectIsFull as o, taxTypeToName as t, validateBillingField as v };