@verma-consulting/common-library 0.1.8 → 0.1.10
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.
- package/dist/index.d.mts +12 -2
- package/dist/index.d.ts +12 -2
- package/dist/index.js +437 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +437 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -9,7 +9,7 @@ declare const capitalizeSentence: (value: string) => string;
|
|
|
9
9
|
type Notation = "standard" | "scientific" | "engineering" | "compact";
|
|
10
10
|
declare const largeNumberLabel: (value: string | number | null | undefined) => string;
|
|
11
11
|
declare const getRandomArbitrary: (min: number, max: number) => number;
|
|
12
|
-
declare const formatPhoneNumber: (value: string) => string
|
|
12
|
+
declare const formatPhoneNumber: (value: string) => string;
|
|
13
13
|
declare const openInNewTab: (url: string) => void;
|
|
14
14
|
declare function stripHtmlTags(html: string): string;
|
|
15
15
|
declare const toCurrencyValue: (value: number | string) => number;
|
|
@@ -1712,7 +1712,17 @@ declare const constants: {
|
|
|
1712
1712
|
};
|
|
1713
1713
|
POPULAR_EMAILS: string[];
|
|
1714
1714
|
STATES: string[];
|
|
1715
|
-
COUNTRIES:
|
|
1715
|
+
COUNTRIES: ({
|
|
1716
|
+
code: string;
|
|
1717
|
+
label: string;
|
|
1718
|
+
phone: string;
|
|
1719
|
+
suggested?: undefined;
|
|
1720
|
+
} | {
|
|
1721
|
+
code: string;
|
|
1722
|
+
label: string;
|
|
1723
|
+
phone: string;
|
|
1724
|
+
suggested: boolean;
|
|
1725
|
+
})[];
|
|
1716
1726
|
CURRENCIES: {
|
|
1717
1727
|
aed: string;
|
|
1718
1728
|
afn: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ declare const capitalizeSentence: (value: string) => string;
|
|
|
9
9
|
type Notation = "standard" | "scientific" | "engineering" | "compact";
|
|
10
10
|
declare const largeNumberLabel: (value: string | number | null | undefined) => string;
|
|
11
11
|
declare const getRandomArbitrary: (min: number, max: number) => number;
|
|
12
|
-
declare const formatPhoneNumber: (value: string) => string
|
|
12
|
+
declare const formatPhoneNumber: (value: string) => string;
|
|
13
13
|
declare const openInNewTab: (url: string) => void;
|
|
14
14
|
declare function stripHtmlTags(html: string): string;
|
|
15
15
|
declare const toCurrencyValue: (value: number | string) => number;
|
|
@@ -1712,7 +1712,17 @@ declare const constants: {
|
|
|
1712
1712
|
};
|
|
1713
1713
|
POPULAR_EMAILS: string[];
|
|
1714
1714
|
STATES: string[];
|
|
1715
|
-
COUNTRIES:
|
|
1715
|
+
COUNTRIES: ({
|
|
1716
|
+
code: string;
|
|
1717
|
+
label: string;
|
|
1718
|
+
phone: string;
|
|
1719
|
+
suggested?: undefined;
|
|
1720
|
+
} | {
|
|
1721
|
+
code: string;
|
|
1722
|
+
label: string;
|
|
1723
|
+
phone: string;
|
|
1724
|
+
suggested: boolean;
|
|
1725
|
+
})[];
|
|
1716
1726
|
CURRENCIES: {
|
|
1717
1727
|
aed: string;
|
|
1718
1728
|
afn: string;
|
package/dist/index.js
CHANGED
|
@@ -143,12 +143,20 @@ var getRandomArbitrary = (min, max) => Math.floor(Math.random() * (max - min) +
|
|
|
143
143
|
var formatPhoneNumber = (value) => {
|
|
144
144
|
if (!value) return "\u2013";
|
|
145
145
|
const cleaned = value.replace(/\D/g, "");
|
|
146
|
-
const
|
|
147
|
-
if (
|
|
148
|
-
const intlCode =
|
|
149
|
-
return [intlCode, "(",
|
|
146
|
+
const usMatch = cleaned.match(/^(1|)?(\d{3})(\d{3})(\d{4})$/);
|
|
147
|
+
if (usMatch) {
|
|
148
|
+
const intlCode = usMatch[1] ? "+1 " : "";
|
|
149
|
+
return [intlCode, "(", usMatch[2], ") ", usMatch[3], "\u2013", usMatch[4]].join(
|
|
150
|
+
""
|
|
151
|
+
);
|
|
150
152
|
}
|
|
151
|
-
|
|
153
|
+
const intlMatch = value.match(/^\+(\d{1,3})(\d{4,})$/);
|
|
154
|
+
if (intlMatch) {
|
|
155
|
+
const countryCode = intlMatch[1];
|
|
156
|
+
const rest = intlMatch[2].replace(/(.{3,4})/g, "$1 ").trim();
|
|
157
|
+
return `+${countryCode} ${rest}`;
|
|
158
|
+
}
|
|
159
|
+
return value;
|
|
152
160
|
};
|
|
153
161
|
var openInNewTab = (url) => {
|
|
154
162
|
if (typeof window !== "undefined") {
|
|
@@ -903,7 +911,430 @@ var constants = {
|
|
|
903
911
|
"Wisconsin",
|
|
904
912
|
"Wyoming"
|
|
905
913
|
],
|
|
906
|
-
COUNTRIES: [
|
|
914
|
+
COUNTRIES: [
|
|
915
|
+
{ code: "AD", label: "Andorra", phone: "376" },
|
|
916
|
+
{
|
|
917
|
+
code: "AE",
|
|
918
|
+
label: "United Arab Emirates",
|
|
919
|
+
phone: "971"
|
|
920
|
+
},
|
|
921
|
+
{ code: "AF", label: "Afghanistan", phone: "93" },
|
|
922
|
+
{
|
|
923
|
+
code: "AG",
|
|
924
|
+
label: "Antigua and Barbuda",
|
|
925
|
+
phone: "1-268"
|
|
926
|
+
},
|
|
927
|
+
{ code: "AI", label: "Anguilla", phone: "1-264" },
|
|
928
|
+
{ code: "AL", label: "Albania", phone: "355" },
|
|
929
|
+
{ code: "AM", label: "Armenia", phone: "374" },
|
|
930
|
+
{ code: "AO", label: "Angola", phone: "244" },
|
|
931
|
+
{ code: "AQ", label: "Antarctica", phone: "672" },
|
|
932
|
+
{ code: "AR", label: "Argentina", phone: "54" },
|
|
933
|
+
{ code: "AS", label: "American Samoa", phone: "1-684" },
|
|
934
|
+
{ code: "AT", label: "Austria", phone: "43" },
|
|
935
|
+
{
|
|
936
|
+
code: "AU",
|
|
937
|
+
label: "Australia",
|
|
938
|
+
phone: "61",
|
|
939
|
+
suggested: true
|
|
940
|
+
},
|
|
941
|
+
{ code: "AW", label: "Aruba", phone: "297" },
|
|
942
|
+
{ code: "AX", label: "Alland Islands", phone: "358" },
|
|
943
|
+
{ code: "AZ", label: "Azerbaijan", phone: "994" },
|
|
944
|
+
{
|
|
945
|
+
code: "BA",
|
|
946
|
+
label: "Bosnia and Herzegovina",
|
|
947
|
+
phone: "387"
|
|
948
|
+
},
|
|
949
|
+
{ code: "BB", label: "Barbados", phone: "1-246" },
|
|
950
|
+
{ code: "BD", label: "Bangladesh", phone: "880" },
|
|
951
|
+
{ code: "BE", label: "Belgium", phone: "32" },
|
|
952
|
+
{ code: "BF", label: "Burkina Faso", phone: "226" },
|
|
953
|
+
{ code: "BG", label: "Bulgaria", phone: "359" },
|
|
954
|
+
{ code: "BH", label: "Bahrain", phone: "973" },
|
|
955
|
+
{ code: "BI", label: "Burundi", phone: "257" },
|
|
956
|
+
{ code: "BJ", label: "Benin", phone: "229" },
|
|
957
|
+
{ code: "BL", label: "Saint Barthelemy", phone: "590" },
|
|
958
|
+
{ code: "BM", label: "Bermuda", phone: "1-441" },
|
|
959
|
+
{ code: "BN", label: "Brunei Darussalam", phone: "673" },
|
|
960
|
+
{ code: "BO", label: "Bolivia", phone: "591" },
|
|
961
|
+
{ code: "BR", label: "Brazil", phone: "55" },
|
|
962
|
+
{ code: "BS", label: "Bahamas", phone: "1-242" },
|
|
963
|
+
{ code: "BT", label: "Bhutan", phone: "975" },
|
|
964
|
+
{ code: "BV", label: "Bouvet Island", phone: "47" },
|
|
965
|
+
{ code: "BW", label: "Botswana", phone: "267" },
|
|
966
|
+
{ code: "BY", label: "Belarus", phone: "375" },
|
|
967
|
+
{ code: "BZ", label: "Belize", phone: "501" },
|
|
968
|
+
{
|
|
969
|
+
code: "CA",
|
|
970
|
+
label: "Canada",
|
|
971
|
+
phone: "1",
|
|
972
|
+
suggested: true
|
|
973
|
+
},
|
|
974
|
+
{
|
|
975
|
+
code: "CC",
|
|
976
|
+
label: "Cocos (Keeling) Islands",
|
|
977
|
+
phone: "61"
|
|
978
|
+
},
|
|
979
|
+
{
|
|
980
|
+
code: "CD",
|
|
981
|
+
label: "Congo, Democratic Republic of the",
|
|
982
|
+
phone: "243"
|
|
983
|
+
},
|
|
984
|
+
{
|
|
985
|
+
code: "CF",
|
|
986
|
+
label: "Central African Republic",
|
|
987
|
+
phone: "236"
|
|
988
|
+
},
|
|
989
|
+
{
|
|
990
|
+
code: "CG",
|
|
991
|
+
label: "Congo, Republic of the",
|
|
992
|
+
phone: "242"
|
|
993
|
+
},
|
|
994
|
+
{ code: "CH", label: "Switzerland", phone: "41" },
|
|
995
|
+
{ code: "CI", label: "Cote d'Ivoire", phone: "225" },
|
|
996
|
+
{ code: "CK", label: "Cook Islands", phone: "682" },
|
|
997
|
+
{ code: "CL", label: "Chile", phone: "56" },
|
|
998
|
+
{ code: "CM", label: "Cameroon", phone: "237" },
|
|
999
|
+
{ code: "CN", label: "China", phone: "86" },
|
|
1000
|
+
{ code: "CO", label: "Colombia", phone: "57" },
|
|
1001
|
+
{ code: "CR", label: "Costa Rica", phone: "506" },
|
|
1002
|
+
{ code: "CU", label: "Cuba", phone: "53" },
|
|
1003
|
+
{ code: "CV", label: "Cape Verde", phone: "238" },
|
|
1004
|
+
{ code: "CW", label: "Curacao", phone: "599" },
|
|
1005
|
+
{ code: "CX", label: "Christmas Island", phone: "61" },
|
|
1006
|
+
{ code: "CY", label: "Cyprus", phone: "357" },
|
|
1007
|
+
{ code: "CZ", label: "Czech Republic", phone: "420" },
|
|
1008
|
+
{
|
|
1009
|
+
code: "DE",
|
|
1010
|
+
label: "Germany",
|
|
1011
|
+
phone: "49",
|
|
1012
|
+
suggested: true
|
|
1013
|
+
},
|
|
1014
|
+
{ code: "DJ", label: "Djibouti", phone: "253" },
|
|
1015
|
+
{ code: "DK", label: "Denmark", phone: "45" },
|
|
1016
|
+
{ code: "DM", label: "Dominica", phone: "1-767" },
|
|
1017
|
+
{
|
|
1018
|
+
code: "DO",
|
|
1019
|
+
label: "Dominican Republic",
|
|
1020
|
+
phone: "1-809"
|
|
1021
|
+
},
|
|
1022
|
+
{ code: "DZ", label: "Algeria", phone: "213" },
|
|
1023
|
+
{ code: "EC", label: "Ecuador", phone: "593" },
|
|
1024
|
+
{ code: "EE", label: "Estonia", phone: "372" },
|
|
1025
|
+
{ code: "EG", label: "Egypt", phone: "20" },
|
|
1026
|
+
{ code: "EH", label: "Western Sahara", phone: "212" },
|
|
1027
|
+
{ code: "ER", label: "Eritrea", phone: "291" },
|
|
1028
|
+
{ code: "ES", label: "Spain", phone: "34" },
|
|
1029
|
+
{ code: "ET", label: "Ethiopia", phone: "251" },
|
|
1030
|
+
{ code: "FI", label: "Finland", phone: "358" },
|
|
1031
|
+
{ code: "FJ", label: "Fiji", phone: "679" },
|
|
1032
|
+
{
|
|
1033
|
+
code: "FK",
|
|
1034
|
+
label: "Falkland Islands (Malvinas)",
|
|
1035
|
+
phone: "500"
|
|
1036
|
+
},
|
|
1037
|
+
{
|
|
1038
|
+
code: "FM",
|
|
1039
|
+
label: "Micronesia, Federated States of",
|
|
1040
|
+
phone: "691"
|
|
1041
|
+
},
|
|
1042
|
+
{ code: "FO", label: "Faroe Islands", phone: "298" },
|
|
1043
|
+
{
|
|
1044
|
+
code: "FR",
|
|
1045
|
+
label: "France",
|
|
1046
|
+
phone: "33",
|
|
1047
|
+
suggested: true
|
|
1048
|
+
},
|
|
1049
|
+
{ code: "GA", label: "Gabon", phone: "241" },
|
|
1050
|
+
{ code: "GB", label: "United Kingdom", phone: "44" },
|
|
1051
|
+
{ code: "GD", label: "Grenada", phone: "1-473" },
|
|
1052
|
+
{ code: "GE", label: "Georgia", phone: "995" },
|
|
1053
|
+
{ code: "GF", label: "French Guiana", phone: "594" },
|
|
1054
|
+
{ code: "GG", label: "Guernsey", phone: "44" },
|
|
1055
|
+
{ code: "GH", label: "Ghana", phone: "233" },
|
|
1056
|
+
{ code: "GI", label: "Gibraltar", phone: "350" },
|
|
1057
|
+
{ code: "GL", label: "Greenland", phone: "299" },
|
|
1058
|
+
{ code: "GM", label: "Gambia", phone: "220" },
|
|
1059
|
+
{ code: "GN", label: "Guinea", phone: "224" },
|
|
1060
|
+
{ code: "GP", label: "Guadeloupe", phone: "590" },
|
|
1061
|
+
{ code: "GQ", label: "Equatorial Guinea", phone: "240" },
|
|
1062
|
+
{ code: "GR", label: "Greece", phone: "30" },
|
|
1063
|
+
{
|
|
1064
|
+
code: "GS",
|
|
1065
|
+
label: "South Georgia and the South Sandwich Islands",
|
|
1066
|
+
phone: "500"
|
|
1067
|
+
},
|
|
1068
|
+
{ code: "GT", label: "Guatemala", phone: "502" },
|
|
1069
|
+
{ code: "GU", label: "Guam", phone: "1-671" },
|
|
1070
|
+
{ code: "GW", label: "Guinea-Bissau", phone: "245" },
|
|
1071
|
+
{ code: "GY", label: "Guyana", phone: "592" },
|
|
1072
|
+
{ code: "HK", label: "Hong Kong", phone: "852" },
|
|
1073
|
+
{
|
|
1074
|
+
code: "HM",
|
|
1075
|
+
label: "Heard Island and McDonald Islands",
|
|
1076
|
+
phone: "672"
|
|
1077
|
+
},
|
|
1078
|
+
{ code: "HN", label: "Honduras", phone: "504" },
|
|
1079
|
+
{ code: "HR", label: "Croatia", phone: "385" },
|
|
1080
|
+
{ code: "HT", label: "Haiti", phone: "509" },
|
|
1081
|
+
{ code: "HU", label: "Hungary", phone: "36" },
|
|
1082
|
+
{ code: "ID", label: "Indonesia", phone: "62" },
|
|
1083
|
+
{ code: "IE", label: "Ireland", phone: "353" },
|
|
1084
|
+
{ code: "IL", label: "Israel", phone: "972" },
|
|
1085
|
+
{ code: "IM", label: "Isle of Man", phone: "44" },
|
|
1086
|
+
{ code: "IN", label: "India", phone: "91" },
|
|
1087
|
+
{
|
|
1088
|
+
code: "IO",
|
|
1089
|
+
label: "British Indian Ocean Territory",
|
|
1090
|
+
phone: "246"
|
|
1091
|
+
},
|
|
1092
|
+
{ code: "IQ", label: "Iraq", phone: "964" },
|
|
1093
|
+
{
|
|
1094
|
+
code: "IR",
|
|
1095
|
+
label: "Iran, Islamic Republic of",
|
|
1096
|
+
phone: "98"
|
|
1097
|
+
},
|
|
1098
|
+
{ code: "IS", label: "Iceland", phone: "354" },
|
|
1099
|
+
{ code: "IT", label: "Italy", phone: "39" },
|
|
1100
|
+
{ code: "JE", label: "Jersey", phone: "44" },
|
|
1101
|
+
{ code: "JM", label: "Jamaica", phone: "1-876" },
|
|
1102
|
+
{ code: "JO", label: "Jordan", phone: "962" },
|
|
1103
|
+
{
|
|
1104
|
+
code: "JP",
|
|
1105
|
+
label: "Japan",
|
|
1106
|
+
phone: "81",
|
|
1107
|
+
suggested: true
|
|
1108
|
+
},
|
|
1109
|
+
{ code: "KE", label: "Kenya", phone: "254" },
|
|
1110
|
+
{ code: "KG", label: "Kyrgyzstan", phone: "996" },
|
|
1111
|
+
{ code: "KH", label: "Cambodia", phone: "855" },
|
|
1112
|
+
{ code: "KI", label: "Kiribati", phone: "686" },
|
|
1113
|
+
{ code: "KM", label: "Comoros", phone: "269" },
|
|
1114
|
+
{
|
|
1115
|
+
code: "KN",
|
|
1116
|
+
label: "Saint Kitts and Nevis",
|
|
1117
|
+
phone: "1-869"
|
|
1118
|
+
},
|
|
1119
|
+
{
|
|
1120
|
+
code: "KP",
|
|
1121
|
+
label: "Korea, Democratic People's Republic of",
|
|
1122
|
+
phone: "850"
|
|
1123
|
+
},
|
|
1124
|
+
{ code: "KR", label: "Korea, Republic of", phone: "82" },
|
|
1125
|
+
{ code: "KW", label: "Kuwait", phone: "965" },
|
|
1126
|
+
{ code: "KY", label: "Cayman Islands", phone: "1-345" },
|
|
1127
|
+
{ code: "KZ", label: "Kazakhstan", phone: "7" },
|
|
1128
|
+
{
|
|
1129
|
+
code: "LA",
|
|
1130
|
+
label: "Lao People's Democratic Republic",
|
|
1131
|
+
phone: "856"
|
|
1132
|
+
},
|
|
1133
|
+
{ code: "LB", label: "Lebanon", phone: "961" },
|
|
1134
|
+
{ code: "LC", label: "Saint Lucia", phone: "1-758" },
|
|
1135
|
+
{ code: "LI", label: "Liechtenstein", phone: "423" },
|
|
1136
|
+
{ code: "LK", label: "Sri Lanka", phone: "94" },
|
|
1137
|
+
{ code: "LR", label: "Liberia", phone: "231" },
|
|
1138
|
+
{ code: "LS", label: "Lesotho", phone: "266" },
|
|
1139
|
+
{ code: "LT", label: "Lithuania", phone: "370" },
|
|
1140
|
+
{ code: "LU", label: "Luxembourg", phone: "352" },
|
|
1141
|
+
{ code: "LV", label: "Latvia", phone: "371" },
|
|
1142
|
+
{ code: "LY", label: "Libya", phone: "218" },
|
|
1143
|
+
{ code: "MA", label: "Morocco", phone: "212" },
|
|
1144
|
+
{ code: "MC", label: "Monaco", phone: "377" },
|
|
1145
|
+
{
|
|
1146
|
+
code: "MD",
|
|
1147
|
+
label: "Moldova, Republic of",
|
|
1148
|
+
phone: "373"
|
|
1149
|
+
},
|
|
1150
|
+
{ code: "ME", label: "Montenegro", phone: "382" },
|
|
1151
|
+
{
|
|
1152
|
+
code: "MF",
|
|
1153
|
+
label: "Saint Martin (French part)",
|
|
1154
|
+
phone: "590"
|
|
1155
|
+
},
|
|
1156
|
+
{ code: "MG", label: "Madagascar", phone: "261" },
|
|
1157
|
+
{ code: "MH", label: "Marshall Islands", phone: "692" },
|
|
1158
|
+
{
|
|
1159
|
+
code: "MK",
|
|
1160
|
+
label: "Macedonia, the Former Yugoslav Republic of",
|
|
1161
|
+
phone: "389"
|
|
1162
|
+
},
|
|
1163
|
+
{ code: "ML", label: "Mali", phone: "223" },
|
|
1164
|
+
{ code: "MM", label: "Myanmar", phone: "95" },
|
|
1165
|
+
{ code: "MN", label: "Mongolia", phone: "976" },
|
|
1166
|
+
{ code: "MO", label: "Macao", phone: "853" },
|
|
1167
|
+
{
|
|
1168
|
+
code: "MP",
|
|
1169
|
+
label: "Northern Mariana Islands",
|
|
1170
|
+
phone: "1-670"
|
|
1171
|
+
},
|
|
1172
|
+
{ code: "MQ", label: "Martinique", phone: "596" },
|
|
1173
|
+
{ code: "MR", label: "Mauritania", phone: "222" },
|
|
1174
|
+
{ code: "MS", label: "Montserrat", phone: "1-664" },
|
|
1175
|
+
{ code: "MT", label: "Malta", phone: "356" },
|
|
1176
|
+
{ code: "MU", label: "Mauritius", phone: "230" },
|
|
1177
|
+
{ code: "MV", label: "Maldives", phone: "960" },
|
|
1178
|
+
{ code: "MW", label: "Malawi", phone: "265" },
|
|
1179
|
+
{ code: "MX", label: "Mexico", phone: "52" },
|
|
1180
|
+
{ code: "MY", label: "Malaysia", phone: "60" },
|
|
1181
|
+
{ code: "MZ", label: "Mozambique", phone: "258" },
|
|
1182
|
+
{ code: "NA", label: "Namibia", phone: "264" },
|
|
1183
|
+
{ code: "NC", label: "New Caledonia", phone: "687" },
|
|
1184
|
+
{ code: "NE", label: "Niger", phone: "227" },
|
|
1185
|
+
{ code: "NF", label: "Norfolk Island", phone: "672" },
|
|
1186
|
+
{ code: "NG", label: "Nigeria", phone: "234" },
|
|
1187
|
+
{ code: "NI", label: "Nicaragua", phone: "505" },
|
|
1188
|
+
{ code: "NL", label: "Netherlands", phone: "31" },
|
|
1189
|
+
{ code: "NO", label: "Norway", phone: "47" },
|
|
1190
|
+
{ code: "NP", label: "Nepal", phone: "977" },
|
|
1191
|
+
{ code: "NR", label: "Nauru", phone: "674" },
|
|
1192
|
+
{ code: "NU", label: "Niue", phone: "683" },
|
|
1193
|
+
{ code: "NZ", label: "New Zealand", phone: "64" },
|
|
1194
|
+
{ code: "OM", label: "Oman", phone: "968" },
|
|
1195
|
+
{ code: "PA", label: "Panama", phone: "507" },
|
|
1196
|
+
{ code: "PE", label: "Peru", phone: "51" },
|
|
1197
|
+
{ code: "PF", label: "French Polynesia", phone: "689" },
|
|
1198
|
+
{ code: "PG", label: "Papua New Guinea", phone: "675" },
|
|
1199
|
+
{ code: "PH", label: "Philippines", phone: "63" },
|
|
1200
|
+
{ code: "PK", label: "Pakistan", phone: "92" },
|
|
1201
|
+
{ code: "PL", label: "Poland", phone: "48" },
|
|
1202
|
+
{
|
|
1203
|
+
code: "PM",
|
|
1204
|
+
label: "Saint Pierre and Miquelon",
|
|
1205
|
+
phone: "508"
|
|
1206
|
+
},
|
|
1207
|
+
{ code: "PN", label: "Pitcairn", phone: "870" },
|
|
1208
|
+
{ code: "PR", label: "Puerto Rico", phone: "1" },
|
|
1209
|
+
{
|
|
1210
|
+
code: "PS",
|
|
1211
|
+
label: "Palestine, State of",
|
|
1212
|
+
phone: "970"
|
|
1213
|
+
},
|
|
1214
|
+
{ code: "PT", label: "Portugal", phone: "351" },
|
|
1215
|
+
{ code: "PW", label: "Palau", phone: "680" },
|
|
1216
|
+
{ code: "PY", label: "Paraguay", phone: "595" },
|
|
1217
|
+
{ code: "QA", label: "Qatar", phone: "974" },
|
|
1218
|
+
{ code: "RE", label: "Reunion", phone: "262" },
|
|
1219
|
+
{ code: "RO", label: "Romania", phone: "40" },
|
|
1220
|
+
{ code: "RS", label: "Serbia", phone: "381" },
|
|
1221
|
+
{ code: "RU", label: "Russian Federation", phone: "7" },
|
|
1222
|
+
{ code: "RW", label: "Rwanda", phone: "250" },
|
|
1223
|
+
{ code: "SA", label: "Saudi Arabia", phone: "966" },
|
|
1224
|
+
{ code: "SB", label: "Solomon Islands", phone: "677" },
|
|
1225
|
+
{ code: "SC", label: "Seychelles", phone: "248" },
|
|
1226
|
+
{ code: "SD", label: "Sudan", phone: "249" },
|
|
1227
|
+
{ code: "SE", label: "Sweden", phone: "46" },
|
|
1228
|
+
{ code: "SG", label: "Singapore", phone: "65" },
|
|
1229
|
+
{ code: "SH", label: "Saint Helena", phone: "290" },
|
|
1230
|
+
{ code: "SI", label: "Slovenia", phone: "386" },
|
|
1231
|
+
{
|
|
1232
|
+
code: "SJ",
|
|
1233
|
+
label: "Svalbard and Jan Mayen",
|
|
1234
|
+
phone: "47"
|
|
1235
|
+
},
|
|
1236
|
+
{ code: "SK", label: "Slovakia", phone: "421" },
|
|
1237
|
+
{ code: "SL", label: "Sierra Leone", phone: "232" },
|
|
1238
|
+
{ code: "SM", label: "San Marino", phone: "378" },
|
|
1239
|
+
{ code: "SN", label: "Senegal", phone: "221" },
|
|
1240
|
+
{ code: "SO", label: "Somalia", phone: "252" },
|
|
1241
|
+
{ code: "SR", label: "Suriname", phone: "597" },
|
|
1242
|
+
{ code: "SS", label: "South Sudan", phone: "211" },
|
|
1243
|
+
{
|
|
1244
|
+
code: "ST",
|
|
1245
|
+
label: "Sao Tome and Principe",
|
|
1246
|
+
phone: "239"
|
|
1247
|
+
},
|
|
1248
|
+
{ code: "SV", label: "El Salvador", phone: "503" },
|
|
1249
|
+
{
|
|
1250
|
+
code: "SX",
|
|
1251
|
+
label: "Sint Maarten (Dutch part)",
|
|
1252
|
+
phone: "1-721"
|
|
1253
|
+
},
|
|
1254
|
+
{
|
|
1255
|
+
code: "SY",
|
|
1256
|
+
label: "Syrian Arab Republic",
|
|
1257
|
+
phone: "963"
|
|
1258
|
+
},
|
|
1259
|
+
{ code: "SZ", label: "Swaziland", phone: "268" },
|
|
1260
|
+
{
|
|
1261
|
+
code: "TC",
|
|
1262
|
+
label: "Turks and Caicos Islands",
|
|
1263
|
+
phone: "1-649"
|
|
1264
|
+
},
|
|
1265
|
+
{ code: "TD", label: "Chad", phone: "235" },
|
|
1266
|
+
{
|
|
1267
|
+
code: "TF",
|
|
1268
|
+
label: "French Southern Territories",
|
|
1269
|
+
phone: "262"
|
|
1270
|
+
},
|
|
1271
|
+
{ code: "TG", label: "Togo", phone: "228" },
|
|
1272
|
+
{ code: "TH", label: "Thailand", phone: "66" },
|
|
1273
|
+
{ code: "TJ", label: "Tajikistan", phone: "992" },
|
|
1274
|
+
{ code: "TK", label: "Tokelau", phone: "690" },
|
|
1275
|
+
{ code: "TL", label: "Timor-Leste", phone: "670" },
|
|
1276
|
+
{ code: "TM", label: "Turkmenistan", phone: "993" },
|
|
1277
|
+
{ code: "TN", label: "Tunisia", phone: "216" },
|
|
1278
|
+
{ code: "TO", label: "Tonga", phone: "676" },
|
|
1279
|
+
{ code: "TR", label: "Turkey", phone: "90" },
|
|
1280
|
+
{
|
|
1281
|
+
code: "TT",
|
|
1282
|
+
label: "Trinidad and Tobago",
|
|
1283
|
+
phone: "1-868"
|
|
1284
|
+
},
|
|
1285
|
+
{ code: "TV", label: "Tuvalu", phone: "688" },
|
|
1286
|
+
{
|
|
1287
|
+
code: "TW",
|
|
1288
|
+
label: "Taiwan",
|
|
1289
|
+
phone: "886"
|
|
1290
|
+
},
|
|
1291
|
+
{
|
|
1292
|
+
code: "TZ",
|
|
1293
|
+
label: "United Republic of Tanzania",
|
|
1294
|
+
phone: "255"
|
|
1295
|
+
},
|
|
1296
|
+
{ code: "UA", label: "Ukraine", phone: "380" },
|
|
1297
|
+
{ code: "UG", label: "Uganda", phone: "256" },
|
|
1298
|
+
{
|
|
1299
|
+
code: "US",
|
|
1300
|
+
label: "United States Of America",
|
|
1301
|
+
phone: "1",
|
|
1302
|
+
suggested: true
|
|
1303
|
+
},
|
|
1304
|
+
{ code: "UY", label: "Uruguay", phone: "598" },
|
|
1305
|
+
{ code: "UZ", label: "Uzbekistan", phone: "998" },
|
|
1306
|
+
{
|
|
1307
|
+
code: "VA",
|
|
1308
|
+
label: "Holy See (Vatican City State)",
|
|
1309
|
+
phone: "379"
|
|
1310
|
+
},
|
|
1311
|
+
{
|
|
1312
|
+
code: "VC",
|
|
1313
|
+
label: "Saint Vincent and the Grenadines",
|
|
1314
|
+
phone: "1-784"
|
|
1315
|
+
},
|
|
1316
|
+
{ code: "VE", label: "Venezuela", phone: "58" },
|
|
1317
|
+
{
|
|
1318
|
+
code: "VG",
|
|
1319
|
+
label: "British Virgin Islands",
|
|
1320
|
+
phone: "1-284"
|
|
1321
|
+
},
|
|
1322
|
+
{
|
|
1323
|
+
code: "VI",
|
|
1324
|
+
label: "US Virgin Islands",
|
|
1325
|
+
phone: "1-340"
|
|
1326
|
+
},
|
|
1327
|
+
{ code: "VN", label: "Vietnam", phone: "84" },
|
|
1328
|
+
{ code: "VU", label: "Vanuatu", phone: "678" },
|
|
1329
|
+
{ code: "WF", label: "Wallis and Futuna", phone: "681" },
|
|
1330
|
+
{ code: "WS", label: "Samoa", phone: "685" },
|
|
1331
|
+
{ code: "XK", label: "Kosovo", phone: "383" },
|
|
1332
|
+
{ code: "YE", label: "Yemen", phone: "967" },
|
|
1333
|
+
{ code: "YT", label: "Mayotte", phone: "262" },
|
|
1334
|
+
{ code: "ZA", label: "South Africa", phone: "27" },
|
|
1335
|
+
{ code: "ZM", label: "Zambia", phone: "260" },
|
|
1336
|
+
{ code: "ZW", label: "Zimbabwe", phone: "263" }
|
|
1337
|
+
],
|
|
907
1338
|
CURRENCIES: {
|
|
908
1339
|
aed: "United Arab Emirates Dirham",
|
|
909
1340
|
afn: "Afghan Afghani",
|