@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
@@ -3,7 +3,7 @@
3
3
  const index = require('./index-8277cbb3.js');
4
4
  const global = require('./global-b7b1b8fe.js');
5
5
  const JSS = require('./JSS-8503a151.js');
6
- const subregions = require('./subregions-e7273457.js');
6
+ const subregions = require('./subregions-984e30d7.js');
7
7
  const data = require('./data-89ac73dd.js');
8
8
 
9
9
  const style = {
@@ -975,977 +975,6 @@ const OtherRegionSlotView = (props) => {
975
975
  index.h("hr", { class: classes.HR }))));
976
976
  };
977
977
 
978
- const PHONE_EXTENSIONS = {
979
- AF: {
980
- name: "Afghanistan",
981
- dial_code: "+93",
982
- },
983
- AX: {
984
- name: "Aland Islands",
985
- dial_code: "+358",
986
- },
987
- AL: {
988
- name: "Albania",
989
- dial_code: "+355",
990
- },
991
- DZ: {
992
- name: "Algeria",
993
- dial_code: "+213",
994
- },
995
- AS: {
996
- name: "AmericanSamoa",
997
- dial_code: "+1684",
998
- },
999
- AD: {
1000
- name: "Andorra",
1001
- dial_code: "+376",
1002
- },
1003
- AO: {
1004
- name: "Angola",
1005
- dial_code: "+244",
1006
- },
1007
- AI: {
1008
- name: "Anguilla",
1009
- dial_code: "+1264",
1010
- },
1011
- AQ: {
1012
- name: "Antarctica",
1013
- dial_code: "+672",
1014
- },
1015
- AG: {
1016
- name: "Antigua and Barbuda",
1017
- dial_code: "+1268",
1018
- },
1019
- AR: {
1020
- name: "Argentina",
1021
- dial_code: "+54",
1022
- },
1023
- AM: {
1024
- name: "Armenia",
1025
- dial_code: "+374",
1026
- },
1027
- AW: {
1028
- name: "Aruba",
1029
- dial_code: "+297",
1030
- },
1031
- AU: {
1032
- name: "Australia",
1033
- dial_code: "+61",
1034
- },
1035
- AT: {
1036
- name: "Austria",
1037
- dial_code: "+43",
1038
- },
1039
- AZ: {
1040
- name: "Azerbaijan",
1041
- dial_code: "+994",
1042
- },
1043
- BS: {
1044
- name: "Bahamas",
1045
- dial_code: "+1242",
1046
- },
1047
- BH: {
1048
- name: "Bahrain",
1049
- dial_code: "+973",
1050
- },
1051
- BD: {
1052
- name: "Bangladesh",
1053
- dial_code: "+880",
1054
- },
1055
- BB: {
1056
- name: "Barbados",
1057
- dial_code: "+1246",
1058
- },
1059
- BY: {
1060
- name: "Belarus",
1061
- dial_code: "+375",
1062
- },
1063
- BE: {
1064
- name: "Belgium",
1065
- dial_code: "+32",
1066
- },
1067
- BZ: {
1068
- name: "Belize",
1069
- dial_code: "+501",
1070
- },
1071
- BJ: {
1072
- name: "Benin",
1073
- dial_code: "+229",
1074
- },
1075
- BM: {
1076
- name: "Bermuda",
1077
- dial_code: "+1441",
1078
- },
1079
- BT: {
1080
- name: "Bhutan",
1081
- dial_code: "+975",
1082
- },
1083
- BO: {
1084
- name: "Bolivia, Plurinational State of",
1085
- dial_code: "+591",
1086
- },
1087
- BA: {
1088
- name: "Bosnia and Herzegovina",
1089
- dial_code: "+387",
1090
- },
1091
- BW: {
1092
- name: "Botswana",
1093
- dial_code: "+267",
1094
- },
1095
- BR: {
1096
- name: "Brazil",
1097
- dial_code: "+55",
1098
- },
1099
- IO: {
1100
- name: "British Indian Ocean Territory",
1101
- dial_code: "+246",
1102
- },
1103
- BN: {
1104
- name: "Brunei Darussalam",
1105
- dial_code: "+673",
1106
- },
1107
- BG: {
1108
- name: "Bulgaria",
1109
- dial_code: "+359",
1110
- },
1111
- BF: {
1112
- name: "Burkina Faso",
1113
- dial_code: "+226",
1114
- },
1115
- BI: {
1116
- name: "Burundi",
1117
- dial_code: "+257",
1118
- },
1119
- KH: {
1120
- name: "Cambodia",
1121
- dial_code: "+855",
1122
- },
1123
- CM: {
1124
- name: "Cameroon",
1125
- dial_code: "+237",
1126
- },
1127
- CA: {
1128
- name: "Canada",
1129
- dial_code: "+1",
1130
- },
1131
- CV: {
1132
- name: "Cape Verde",
1133
- dial_code: "+238",
1134
- },
1135
- KY: {
1136
- name: "Cayman Islands",
1137
- dial_code: "+ 345",
1138
- },
1139
- CF: {
1140
- name: "Central African Republic",
1141
- dial_code: "+236",
1142
- },
1143
- TD: {
1144
- name: "Chad",
1145
- dial_code: "+235",
1146
- },
1147
- CL: {
1148
- name: "Chile",
1149
- dial_code: "+56",
1150
- },
1151
- CN: {
1152
- name: "China",
1153
- dial_code: "+86",
1154
- },
1155
- CX: {
1156
- name: "Christmas Island",
1157
- dial_code: "+61",
1158
- },
1159
- CC: {
1160
- name: "Cocos (Keeling) Islands",
1161
- dial_code: "+61",
1162
- },
1163
- CO: {
1164
- name: "Colombia",
1165
- dial_code: "+57",
1166
- },
1167
- KM: {
1168
- name: "Comoros",
1169
- dial_code: "+269",
1170
- },
1171
- CG: {
1172
- name: "Congo",
1173
- dial_code: "+242",
1174
- },
1175
- CD: {
1176
- name: "Congo, The Democratic Republic of the Congo",
1177
- dial_code: "+243",
1178
- },
1179
- CK: {
1180
- name: "Cook Islands",
1181
- dial_code: "+682",
1182
- },
1183
- CR: {
1184
- name: "Costa Rica",
1185
- dial_code: "+506",
1186
- },
1187
- CI: {
1188
- name: "Cote d'Ivoire",
1189
- dial_code: "+225",
1190
- },
1191
- HR: {
1192
- name: "Croatia",
1193
- dial_code: "+385",
1194
- },
1195
- CU: {
1196
- name: "Cuba",
1197
- dial_code: "+53",
1198
- },
1199
- CY: {
1200
- name: "Cyprus",
1201
- dial_code: "+357",
1202
- },
1203
- CZ: {
1204
- name: "Czech Republic",
1205
- dial_code: "+420",
1206
- },
1207
- DK: {
1208
- name: "Denmark",
1209
- dial_code: "+45",
1210
- },
1211
- DJ: {
1212
- name: "Djibouti",
1213
- dial_code: "+253",
1214
- },
1215
- DM: {
1216
- name: "Dominica",
1217
- dial_code: "+1767",
1218
- },
1219
- DO: {
1220
- name: "Dominican Republic",
1221
- dial_code: "+1849",
1222
- },
1223
- EC: {
1224
- name: "Ecuador",
1225
- dial_code: "+593",
1226
- },
1227
- EG: {
1228
- name: "Egypt",
1229
- dial_code: "+20",
1230
- },
1231
- SV: {
1232
- name: "El Salvador",
1233
- dial_code: "+503",
1234
- },
1235
- GQ: {
1236
- name: "Equatorial Guinea",
1237
- dial_code: "+240",
1238
- },
1239
- ER: {
1240
- name: "Eritrea",
1241
- dial_code: "+291",
1242
- },
1243
- EE: {
1244
- name: "Estonia",
1245
- dial_code: "+372",
1246
- },
1247
- ET: {
1248
- name: "Ethiopia",
1249
- dial_code: "+251",
1250
- },
1251
- FK: {
1252
- name: "Falkland Islands (Malvinas)",
1253
- dial_code: "+500",
1254
- },
1255
- FO: {
1256
- name: "Faroe Islands",
1257
- dial_code: "+298",
1258
- },
1259
- FJ: {
1260
- name: "Fiji",
1261
- dial_code: "+679",
1262
- },
1263
- FI: {
1264
- name: "Finland",
1265
- dial_code: "+358",
1266
- },
1267
- FR: {
1268
- name: "France",
1269
- dial_code: "+33",
1270
- },
1271
- GF: {
1272
- name: "French Guiana",
1273
- dial_code: "+594",
1274
- },
1275
- PF: {
1276
- name: "French Polynesia",
1277
- dial_code: "+689",
1278
- },
1279
- GA: {
1280
- name: "Gabon",
1281
- dial_code: "+241",
1282
- },
1283
- GM: {
1284
- name: "Gambia",
1285
- dial_code: "+220",
1286
- },
1287
- GE: {
1288
- name: "Georgia",
1289
- dial_code: "+995",
1290
- },
1291
- DE: {
1292
- name: "Germany",
1293
- dial_code: "+49",
1294
- },
1295
- GH: {
1296
- name: "Ghana",
1297
- dial_code: "+233",
1298
- },
1299
- GI: {
1300
- name: "Gibraltar",
1301
- dial_code: "+350",
1302
- },
1303
- GR: {
1304
- name: "Greece",
1305
- dial_code: "+30",
1306
- },
1307
- GL: {
1308
- name: "Greenland",
1309
- dial_code: "+299",
1310
- },
1311
- GD: {
1312
- name: "Grenada",
1313
- dial_code: "+1473",
1314
- },
1315
- GP: {
1316
- name: "Guadeloupe",
1317
- dial_code: "+590",
1318
- },
1319
- GU: {
1320
- name: "Guam",
1321
- dial_code: "+1671",
1322
- },
1323
- GT: {
1324
- name: "Guatemala",
1325
- dial_code: "+502",
1326
- },
1327
- GG: {
1328
- name: "Guernsey",
1329
- dial_code: "+44",
1330
- },
1331
- GN: {
1332
- name: "Guinea",
1333
- dial_code: "+224",
1334
- },
1335
- GW: {
1336
- name: "Guinea-Bissau",
1337
- dial_code: "+245",
1338
- },
1339
- GY: {
1340
- name: "Guyana",
1341
- dial_code: "+595",
1342
- },
1343
- HT: {
1344
- name: "Haiti",
1345
- dial_code: "+509",
1346
- },
1347
- VA: {
1348
- name: "Holy See (Vatican City State)",
1349
- dial_code: "+379",
1350
- },
1351
- HN: {
1352
- name: "Honduras",
1353
- dial_code: "+504",
1354
- },
1355
- HK: {
1356
- name: "Hong Kong",
1357
- dial_code: "+852",
1358
- },
1359
- HU: {
1360
- name: "Hungary",
1361
- dial_code: "+36",
1362
- },
1363
- IS: {
1364
- name: "Iceland",
1365
- dial_code: "+354",
1366
- },
1367
- IN: {
1368
- name: "India",
1369
- dial_code: "+91",
1370
- },
1371
- ID: {
1372
- name: "Indonesia",
1373
- dial_code: "+62",
1374
- },
1375
- IR: {
1376
- name: "Iran, Islamic Republic of Persian Gulf",
1377
- dial_code: "+98",
1378
- },
1379
- IQ: {
1380
- name: "Iraq",
1381
- dial_code: "+964",
1382
- },
1383
- IE: {
1384
- name: "Ireland",
1385
- dial_code: "+353",
1386
- },
1387
- IM: {
1388
- name: "Isle of Man",
1389
- dial_code: "+44",
1390
- },
1391
- IL: {
1392
- name: "Israel",
1393
- dial_code: "+972",
1394
- },
1395
- IT: {
1396
- name: "Italy",
1397
- dial_code: "+39",
1398
- },
1399
- JM: {
1400
- name: "Jamaica",
1401
- dial_code: "+1876",
1402
- },
1403
- JP: {
1404
- name: "Japan",
1405
- dial_code: "+81",
1406
- },
1407
- JE: {
1408
- name: "Jersey",
1409
- dial_code: "+44",
1410
- },
1411
- JO: {
1412
- name: "Jordan",
1413
- dial_code: "+962",
1414
- },
1415
- KZ: {
1416
- name: "Kazakhstan",
1417
- dial_code: "+77",
1418
- },
1419
- KE: {
1420
- name: "Kenya",
1421
- dial_code: "+254",
1422
- },
1423
- KI: {
1424
- name: "Kiribati",
1425
- dial_code: "+686",
1426
- },
1427
- KP: {
1428
- name: "Korea, Democratic People's Republic of Korea",
1429
- dial_code: "+850",
1430
- },
1431
- KR: {
1432
- name: "Korea, Republic of South Korea",
1433
- dial_code: "+82",
1434
- },
1435
- KW: {
1436
- name: "Kuwait",
1437
- dial_code: "+965",
1438
- },
1439
- KG: {
1440
- name: "Kyrgyzstan",
1441
- dial_code: "+996",
1442
- },
1443
- LA: {
1444
- name: "Laos",
1445
- dial_code: "+856",
1446
- },
1447
- LV: {
1448
- name: "Latvia",
1449
- dial_code: "+371",
1450
- },
1451
- LB: {
1452
- name: "Lebanon",
1453
- dial_code: "+961",
1454
- },
1455
- LS: {
1456
- name: "Lesotho",
1457
- dial_code: "+266",
1458
- },
1459
- LR: {
1460
- name: "Liberia",
1461
- dial_code: "+231",
1462
- },
1463
- LY: {
1464
- name: "Libyan Arab Jamahiriya",
1465
- dial_code: "+218",
1466
- },
1467
- LI: {
1468
- name: "Liechtenstein",
1469
- dial_code: "+423",
1470
- },
1471
- LT: {
1472
- name: "Lithuania",
1473
- dial_code: "+370",
1474
- },
1475
- LU: {
1476
- name: "Luxembourg",
1477
- dial_code: "+352",
1478
- },
1479
- MO: {
1480
- name: "Macao",
1481
- dial_code: "+853",
1482
- },
1483
- MK: {
1484
- name: "Macedonia",
1485
- dial_code: "+389",
1486
- },
1487
- MG: {
1488
- name: "Madagascar",
1489
- dial_code: "+261",
1490
- },
1491
- MW: {
1492
- name: "Malawi",
1493
- dial_code: "+265",
1494
- },
1495
- MY: {
1496
- name: "Malaysia",
1497
- dial_code: "+60",
1498
- },
1499
- MV: {
1500
- name: "Maldives",
1501
- dial_code: "+960",
1502
- },
1503
- ML: {
1504
- name: "Mali",
1505
- dial_code: "+223",
1506
- },
1507
- MT: {
1508
- name: "Malta",
1509
- dial_code: "+356",
1510
- },
1511
- MH: {
1512
- name: "Marshall Islands",
1513
- dial_code: "+692",
1514
- },
1515
- MQ: {
1516
- name: "Martinique",
1517
- dial_code: "+596",
1518
- },
1519
- MR: {
1520
- name: "Mauritania",
1521
- dial_code: "+222",
1522
- },
1523
- MU: {
1524
- name: "Mauritius",
1525
- dial_code: "+230",
1526
- },
1527
- YT: {
1528
- name: "Mayotte",
1529
- dial_code: "+262",
1530
- },
1531
- MX: {
1532
- name: "Mexico",
1533
- dial_code: "+52",
1534
- },
1535
- FM: {
1536
- name: "Micronesia, Federated States of Micronesia",
1537
- dial_code: "+691",
1538
- },
1539
- MD: {
1540
- name: "Moldova",
1541
- dial_code: "+373",
1542
- },
1543
- MC: {
1544
- name: "Monaco",
1545
- dial_code: "+377",
1546
- },
1547
- MN: {
1548
- name: "Mongolia",
1549
- dial_code: "+976",
1550
- },
1551
- ME: {
1552
- name: "Montenegro",
1553
- dial_code: "+382",
1554
- },
1555
- MS: {
1556
- name: "Montserrat",
1557
- dial_code: "+1664",
1558
- },
1559
- MA: {
1560
- name: "Morocco",
1561
- dial_code: "+212",
1562
- },
1563
- MZ: {
1564
- name: "Mozambique",
1565
- dial_code: "+258",
1566
- },
1567
- MM: {
1568
- name: "Myanmar",
1569
- dial_code: "+95",
1570
- },
1571
- NA: {
1572
- name: "Namibia",
1573
- dial_code: "+264",
1574
- },
1575
- NR: {
1576
- name: "Nauru",
1577
- dial_code: "+674",
1578
- },
1579
- NP: {
1580
- name: "Nepal",
1581
- dial_code: "+977",
1582
- },
1583
- NL: {
1584
- name: "Netherlands",
1585
- dial_code: "+31",
1586
- },
1587
- AN: {
1588
- name: "Netherlands Antilles",
1589
- dial_code: "+599",
1590
- },
1591
- NC: {
1592
- name: "New Caledonia",
1593
- dial_code: "+687",
1594
- },
1595
- NZ: {
1596
- name: "New Zealand",
1597
- dial_code: "+64",
1598
- },
1599
- NI: {
1600
- name: "Nicaragua",
1601
- dial_code: "+505",
1602
- },
1603
- NE: {
1604
- name: "Niger",
1605
- dial_code: "+227",
1606
- },
1607
- NG: {
1608
- name: "Nigeria",
1609
- dial_code: "+234",
1610
- },
1611
- NU: {
1612
- name: "Niue",
1613
- dial_code: "+683",
1614
- },
1615
- NF: {
1616
- name: "Norfolk Island",
1617
- dial_code: "+672",
1618
- },
1619
- MP: {
1620
- name: "Northern Mariana Islands",
1621
- dial_code: "+1670",
1622
- },
1623
- NO: {
1624
- name: "Norway",
1625
- dial_code: "+47",
1626
- },
1627
- OM: {
1628
- name: "Oman",
1629
- dial_code: "+968",
1630
- },
1631
- PK: {
1632
- name: "Pakistan",
1633
- dial_code: "+92",
1634
- },
1635
- PW: {
1636
- name: "Palau",
1637
- dial_code: "+680",
1638
- },
1639
- PS: {
1640
- name: "Palestinian Territory, Occupied",
1641
- dial_code: "+970",
1642
- },
1643
- PA: {
1644
- name: "Panama",
1645
- dial_code: "+507",
1646
- },
1647
- PG: {
1648
- name: "Papua New Guinea",
1649
- dial_code: "+675",
1650
- },
1651
- PY: {
1652
- name: "Paraguay",
1653
- dial_code: "+595",
1654
- },
1655
- PE: {
1656
- name: "Peru",
1657
- dial_code: "+51",
1658
- },
1659
- PH: {
1660
- name: "Philippines",
1661
- dial_code: "+63",
1662
- },
1663
- PN: {
1664
- name: "Pitcairn",
1665
- dial_code: "+872",
1666
- },
1667
- PL: {
1668
- name: "Poland",
1669
- dial_code: "+48",
1670
- },
1671
- PT: {
1672
- name: "Portugal",
1673
- dial_code: "+351",
1674
- },
1675
- PR: {
1676
- name: "Puerto Rico",
1677
- dial_code: "+1939",
1678
- },
1679
- QA: {
1680
- name: "Qatar",
1681
- dial_code: "+974",
1682
- },
1683
- RO: {
1684
- name: "Romania",
1685
- dial_code: "+40",
1686
- },
1687
- RU: {
1688
- name: "Russia",
1689
- dial_code: "+7",
1690
- },
1691
- RW: {
1692
- name: "Rwanda",
1693
- dial_code: "+250",
1694
- },
1695
- RE: {
1696
- name: "Reunion",
1697
- dial_code: "+262",
1698
- },
1699
- BL: {
1700
- name: "Saint Barthelemy",
1701
- dial_code: "+590",
1702
- },
1703
- SH: {
1704
- name: "Saint Helena, Ascension and Tristan Da Cunha",
1705
- dial_code: "+290",
1706
- },
1707
- KN: {
1708
- name: "Saint Kitts and Nevis",
1709
- dial_code: "+1869",
1710
- },
1711
- LC: {
1712
- name: "Saint Lucia",
1713
- dial_code: "+1758",
1714
- },
1715
- MF: {
1716
- name: "Saint Martin",
1717
- dial_code: "+590",
1718
- },
1719
- PM: {
1720
- name: "Saint Pierre and Miquelon",
1721
- dial_code: "+508",
1722
- },
1723
- VC: {
1724
- name: "Saint Vincent and the Grenadines",
1725
- dial_code: "+1784",
1726
- },
1727
- WS: {
1728
- name: "Samoa",
1729
- dial_code: "+685",
1730
- },
1731
- SM: {
1732
- name: "San Marino",
1733
- dial_code: "+378",
1734
- },
1735
- ST: {
1736
- name: "Sao Tome and Principe",
1737
- dial_code: "+239",
1738
- },
1739
- SA: {
1740
- name: "Saudi Arabia",
1741
- dial_code: "+966",
1742
- },
1743
- SN: {
1744
- name: "Senegal",
1745
- dial_code: "+221",
1746
- },
1747
- RS: {
1748
- name: "Serbia",
1749
- dial_code: "+381",
1750
- },
1751
- SC: {
1752
- name: "Seychelles",
1753
- dial_code: "+248",
1754
- },
1755
- SL: {
1756
- name: "Sierra Leone",
1757
- dial_code: "+232",
1758
- },
1759
- SG: {
1760
- name: "Singapore",
1761
- dial_code: "+65",
1762
- },
1763
- SK: {
1764
- name: "Slovakia",
1765
- dial_code: "+421",
1766
- },
1767
- SI: {
1768
- name: "Slovenia",
1769
- dial_code: "+386",
1770
- },
1771
- SB: {
1772
- name: "Solomon Islands",
1773
- dial_code: "+677",
1774
- },
1775
- SO: {
1776
- name: "Somalia",
1777
- dial_code: "+252",
1778
- },
1779
- ZA: {
1780
- name: "South Africa",
1781
- dial_code: "+27",
1782
- },
1783
- SS: {
1784
- name: "South Sudan",
1785
- dial_code: "+211",
1786
- },
1787
- GS: {
1788
- name: "South Georgia and the South Sandwich Islands",
1789
- dial_code: "+500",
1790
- },
1791
- ES: {
1792
- name: "Spain",
1793
- dial_code: "+34",
1794
- },
1795
- LK: {
1796
- name: "Sri Lanka",
1797
- dial_code: "+94",
1798
- },
1799
- SD: {
1800
- name: "Sudan",
1801
- dial_code: "+249",
1802
- },
1803
- SR: {
1804
- name: "Suriname",
1805
- dial_code: "+597",
1806
- },
1807
- SJ: {
1808
- name: "Svalbard and Jan Mayen",
1809
- dial_code: "+47",
1810
- },
1811
- SZ: {
1812
- name: "Swaziland",
1813
- dial_code: "+268",
1814
- },
1815
- SE: {
1816
- name: "Sweden",
1817
- dial_code: "+46",
1818
- },
1819
- CH: {
1820
- name: "Switzerland",
1821
- dial_code: "+41",
1822
- },
1823
- SY: {
1824
- name: "Syrian Arab Republic",
1825
- dial_code: "+963",
1826
- },
1827
- TW: {
1828
- name: "Taiwan",
1829
- dial_code: "+886",
1830
- },
1831
- TJ: {
1832
- name: "Tajikistan",
1833
- dial_code: "+992",
1834
- },
1835
- TZ: {
1836
- name: "Tanzania, United Republic of Tanzania",
1837
- dial_code: "+255",
1838
- },
1839
- TH: {
1840
- name: "Thailand",
1841
- dial_code: "+66",
1842
- },
1843
- TL: {
1844
- name: "Timor-Leste",
1845
- dial_code: "+670",
1846
- },
1847
- TG: {
1848
- name: "Togo",
1849
- dial_code: "+228",
1850
- },
1851
- TK: {
1852
- name: "Tokelau",
1853
- dial_code: "+690",
1854
- },
1855
- TO: {
1856
- name: "Tonga",
1857
- dial_code: "+676",
1858
- },
1859
- TT: {
1860
- name: "Trinidad and Tobago",
1861
- dial_code: "+1868",
1862
- },
1863
- TN: {
1864
- name: "Tunisia",
1865
- dial_code: "+216",
1866
- },
1867
- TR: {
1868
- name: "Turkey",
1869
- dial_code: "+90",
1870
- },
1871
- TM: {
1872
- name: "Turkmenistan",
1873
- dial_code: "+993",
1874
- },
1875
- TC: {
1876
- name: "Turks and Caicos Islands",
1877
- dial_code: "+1649",
1878
- },
1879
- TV: {
1880
- name: "Tuvalu",
1881
- dial_code: "+688",
1882
- },
1883
- UG: {
1884
- name: "Uganda",
1885
- dial_code: "+256",
1886
- },
1887
- UA: {
1888
- name: "Ukraine",
1889
- dial_code: "+380",
1890
- },
1891
- AE: {
1892
- name: "United Arab Emirates",
1893
- dial_code: "+971",
1894
- },
1895
- GB: {
1896
- name: "United Kingdom",
1897
- dial_code: "+44",
1898
- },
1899
- US: {
1900
- name: "United States",
1901
- dial_code: "+1",
1902
- },
1903
- UY: {
1904
- name: "Uruguay",
1905
- dial_code: "+598",
1906
- },
1907
- UZ: {
1908
- name: "Uzbekistan",
1909
- dial_code: "+998",
1910
- },
1911
- VU: {
1912
- name: "Vanuatu",
1913
- dial_code: "+678",
1914
- },
1915
- VE: {
1916
- name: "Venezuela, Bolivarian Republic of Venezuela",
1917
- dial_code: "+58",
1918
- },
1919
- VN: {
1920
- name: "Vietnam",
1921
- dial_code: "+84",
1922
- },
1923
- VG: {
1924
- name: "Virgin Islands, British",
1925
- dial_code: "+1284",
1926
- },
1927
- VI: {
1928
- name: "Virgin Islands, U.S.",
1929
- dial_code: "+1340",
1930
- },
1931
- WF: {
1932
- name: "Wallis and Futuna",
1933
- dial_code: "+681",
1934
- },
1935
- YE: {
1936
- name: "Yemen",
1937
- dial_code: "+967",
1938
- },
1939
- ZM: {
1940
- name: "Zambia",
1941
- dial_code: "+260",
1942
- },
1943
- ZW: {
1944
- name: "Zimbabwe",
1945
- dial_code: "+263",
1946
- },
1947
- };
1948
-
1949
978
  const style$3 = {
1950
979
  FormWrapper: {},
1951
980
  ErrorInput: {
@@ -2230,12 +1259,18 @@ const UserInfoFormView = (props) => {
2230
1259
  }
2231
1260
  // when creating an impact connection without sending phoneNumber data, the impactAPI defaults the value to "0000000" and the phoneNumberCountryCode to "DZ"
2232
1261
  function isDisabledPartnerInput(field) {
2233
- var _a, _b;
1262
+ var _a, _b, _c, _d;
2234
1263
  if (((_a = data$1.partnerData) === null || _a === void 0 ? void 0 : _a.phoneNumber) === "0000000" &&
2235
1264
  (field === "phoneNumber" || field === "phoneNumberCountryCode")) {
2236
1265
  return false;
2237
1266
  }
2238
- return states.isPartner && !!((_b = data$1.partnerData) === null || _b === void 0 ? void 0 : _b[field]);
1267
+ // if bad phone number was previously saved, unlock the field so user can correct it
1268
+ if ((field === "phoneNumber" || field === "phoneNumberCountryCode") &&
1269
+ states.isPartner &&
1270
+ !subregions.isValidI18nPhoneNumber((_b = data$1.partnerData) === null || _b === void 0 ? void 0 : _b.phoneNumberCountryCode, (_c = data$1.partnerData) === null || _c === void 0 ? void 0 : _c.phoneNumber)) {
1271
+ return false;
1272
+ }
1273
+ return states.isPartner && !!((_d = data$1.partnerData) === null || _d === void 0 ? void 0 : _d[field]);
2239
1274
  }
2240
1275
  function isDisabledUserInput(field) {
2241
1276
  var _a;
@@ -2314,19 +1349,24 @@ const UserInfoFormView = (props) => {
2314
1349
  _h.map((c) => {
2315
1350
  var _a, _b;
2316
1351
  return (index.h("sl-menu-item", { value: c.countryCode },
2317
- index.h("div", { slot: "prefix" }, `${(_a = PHONE_EXTENSIONS[c.countryCode]) === null || _a === void 0 ? void 0 : _a.name} `), (_b = PHONE_EXTENSIONS[c.countryCode]) === null || _b === void 0 ? void 0 :
1352
+ index.h("div", { slot: "prefix" }, `${(_a = subregions.PHONE_EXTENSIONS[c.countryCode]) === null || _a === void 0 ? void 0 : _a.name} `), (_b = subregions.PHONE_EXTENSIONS[c.countryCode]) === null || _b === void 0 ? void 0 :
2318
1353
  _b.dial_code));
2319
1354
  }), (_j = data$1 === null || data$1 === void 0 ? void 0 : data$1.allCountries) === null || _j === void 0 ? void 0 :
2320
1355
  _j.map((c) => {
2321
1356
  var _a, _b;
2322
1357
  return (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } },
2323
- index.h("div", { slot: "prefix" }, `${(_a = PHONE_EXTENSIONS[c.countryCode]) === null || _a === void 0 ? void 0 : _a.name} `), (_b = PHONE_EXTENSIONS[c.countryCode]) === null || _b === void 0 ? void 0 :
1358
+ index.h("div", { slot: "prefix" }, `${(_a = subregions.PHONE_EXTENSIONS[c.countryCode]) === null || _a === void 0 ? void 0 : _a.name} `), (_b = subregions.PHONE_EXTENSIONS[c.countryCode]) === null || _b === void 0 ? void 0 :
2324
1359
  _b.dial_code));
2325
1360
  })),
2326
- index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: ({ value }) => {
2327
- // Naive phone number validation
2328
- subregions.validateBillingField(/[a-zA-Z]+/, value) &&
2329
- subregions.formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError);
1361
+ index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: ({ control, value, formData }) => {
1362
+ // skip validation for values the user can't edit
1363
+ if (control === null || control === void 0 ? void 0 : control.disabled)
1364
+ return undefined;
1365
+ if (!(value === null || value === void 0 ? void 0 : value.trim()))
1366
+ return undefined;
1367
+ return subregions.isValidI18nPhoneNumber(formData.phoneNumberCountryCode, value)
1368
+ ? undefined
1369
+ : subregions.formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError);
2330
1370
  }, disabled: states.disabled || isDisabledPartnerInput("phoneNumber") }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
2331
1371
  class: classes.ErrorInput,
2332
1372
  helpText: subregions.formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),