@saasquatch/mint-components 2.3.0-10 → 2.3.0-12

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