@thisisagile/easy-domain 17.26.1 → 17.26.2
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/chunk-CF2KLUD7.mjs +6848 -0
- package/dist/chunk-CF2KLUD7.mjs.map +1 -0
- package/dist/chunk-CKW4QYDN.mjs +16 -0
- package/dist/chunk-CKW4QYDN.mjs.map +1 -0
- package/dist/chunk-DWTEWOSJ.mjs +29 -0
- package/dist/chunk-DWTEWOSJ.mjs.map +1 -0
- package/dist/chunk-H2VHSGNX.mjs +35 -0
- package/dist/chunk-H2VHSGNX.mjs.map +1 -0
- package/dist/chunk-PHJVJXA3.mjs +132 -0
- package/dist/chunk-PHJVJXA3.mjs.map +1 -0
- package/dist/chunk-RDITZTSA.mjs +41 -0
- package/dist/chunk-RDITZTSA.mjs.map +1 -0
- package/dist/chunk-WHI6D6DX.mjs +305 -0
- package/dist/chunk-WHI6D6DX.mjs.map +1 -0
- package/dist/chunk-XBORRJ6W.mjs +18 -0
- package/dist/chunk-XBORRJ6W.mjs.map +1 -0
- package/dist/enums/Country.mjs +10 -0
- package/dist/enums/Country.mjs.map +1 -0
- package/dist/enums/Currency.mjs +8 -0
- package/dist/enums/Currency.mjs.map +1 -0
- package/dist/enums/Locale.mjs +584 -0
- package/dist/enums/Locale.mjs.map +1 -0
- package/dist/enums/UnitOfMeasurement.mjs +8 -0
- package/dist/enums/UnitOfMeasurement.mjs.map +1 -0
- package/dist/enums/UnitOfWeight.mjs +8 -0
- package/dist/enums/UnitOfWeight.mjs.map +1 -0
- package/dist/index.mjs +19 -8241
- package/dist/index.mjs.map +1 -1
- package/dist/structs/Address.mjs +47 -0
- package/dist/structs/Address.mjs.map +1 -0
- package/dist/structs/Box.mjs +44 -0
- package/dist/structs/Box.mjs.map +1 -0
- package/dist/structs/Dimension.mjs +9 -0
- package/dist/structs/Dimension.mjs.map +1 -0
- package/dist/structs/Money.mjs +48 -0
- package/dist/structs/Money.mjs.map +1 -0
- package/dist/structs/Name.mjs +26 -0
- package/dist/structs/Name.mjs.map +1 -0
- package/dist/structs/Weight.mjs +43 -0
- package/dist/structs/Weight.mjs.map +1 -0
- package/dist/values/DunsNumber.mjs +26 -0
- package/dist/values/DunsNumber.mjs.map +1 -0
- package/dist/values/EAN.mjs +23 -0
- package/dist/values/EAN.mjs.map +1 -0
- package/dist/values/Email.mjs +29 -0
- package/dist/values/Email.mjs.map +1 -0
- package/dist/values/IBAN.mjs +23 -0
- package/dist/values/IBAN.mjs.map +1 -0
- package/dist/values/PostalCode.mjs +12 -0
- package/dist/values/PostalCode.mjs.map +1 -0
- package/dist/values/Slug.mjs +24 -0
- package/dist/values/Slug.mjs.map +1 -0
- package/dist/values/Url.mjs +29 -0
- package/dist/values/Url.mjs.map +1 -0
- package/dist/values/VAT.mjs +29 -0
- package/dist/values/VAT.mjs.map +1 -0
- package/package.json +4 -13
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// src/enums/UnitOfWeight.ts
|
|
2
|
+
import { Enum } from "@thisisagile/easy";
|
|
3
|
+
var UnitOfWeight = class _UnitOfWeight extends Enum {
|
|
4
|
+
constructor(name, id, gMultiplier) {
|
|
5
|
+
super(name, id);
|
|
6
|
+
this.gMultiplier = gMultiplier;
|
|
7
|
+
}
|
|
8
|
+
static MG = new _UnitOfWeight("MilliGram", "mg", 1e-3);
|
|
9
|
+
static G = new _UnitOfWeight("Gram", "g", 1);
|
|
10
|
+
static KG = new _UnitOfWeight("Kilogram", "kg", 1e3);
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export {
|
|
14
|
+
UnitOfWeight
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=chunk-CKW4QYDN.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/enums/UnitOfWeight.ts"],"sourcesContent":["import { Enum } from '@thisisagile/easy';\n\nexport class UnitOfWeight extends Enum {\n static readonly MG = new UnitOfWeight('MilliGram', 'mg', 0.001);\n static readonly G = new UnitOfWeight('Gram', 'g', 1);\n static readonly KG = new UnitOfWeight('Kilogram', 'kg', 1000);\n\n constructor(\n name: string,\n id: string,\n readonly gMultiplier: number\n ) {\n super(name, id);\n }\n}\n"],"mappings":";AAAA,SAAS,YAAY;AAEd,IAAM,eAAN,MAAM,sBAAqB,KAAK;AAAA,EAKrC,YACE,MACA,IACS,aACT;AACA,UAAM,MAAM,EAAE;AAFL;AAAA,EAGX;AAAA,EAVA,OAAgB,KAAK,IAAI,cAAa,aAAa,MAAM,IAAK;AAAA,EAC9D,OAAgB,IAAI,IAAI,cAAa,QAAQ,KAAK,CAAC;AAAA,EACnD,OAAgB,KAAK,IAAI,cAAa,YAAY,MAAM,GAAI;AAS9D;","names":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import {
|
|
2
|
+
require_validator
|
|
3
|
+
} from "./chunk-CF2KLUD7.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Country
|
|
6
|
+
} from "./chunk-WHI6D6DX.mjs";
|
|
7
|
+
import {
|
|
8
|
+
__toESM
|
|
9
|
+
} from "./chunk-RDITZTSA.mjs";
|
|
10
|
+
|
|
11
|
+
// src/values/PostalCode.ts
|
|
12
|
+
import { text, Value } from "@thisisagile/easy";
|
|
13
|
+
var import_validator = __toESM(require_validator());
|
|
14
|
+
var PostalCode = class extends Value {
|
|
15
|
+
constructor(postalCode2, country = Country.NL) {
|
|
16
|
+
super(text(postalCode2).replace(" ", "").toString());
|
|
17
|
+
this.country = country;
|
|
18
|
+
}
|
|
19
|
+
get isValid() {
|
|
20
|
+
return (0, import_validator.isPostalCode)(this.value, this.country instanceof Country ? this.country.id : text(this.country).upper);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
var postalCode = (postalCode2, country = Country.NL) => new PostalCode(postalCode2, country);
|
|
24
|
+
|
|
25
|
+
export {
|
|
26
|
+
PostalCode,
|
|
27
|
+
postalCode
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=chunk-DWTEWOSJ.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/values/PostalCode.ts"],"sourcesContent":["import { Id, text, Value } from '@thisisagile/easy';\nimport { Country } from '../enums/Country';\nimport { isPostalCode, PostalCodeLocale } from 'validator';\n\nexport class PostalCode extends Value {\n constructor(\n postalCode?: unknown,\n readonly country: Country | Id = Country.NL\n ) {\n super(text(postalCode).replace(' ', '').toString());\n }\n get isValid(): boolean {\n return isPostalCode(this.value, (this.country instanceof Country ? this.country.id : text(this.country).upper) as PostalCodeLocale);\n }\n}\n\nexport const postalCode = (postalCode?: unknown, country: Country | Id = Country.NL) => new PostalCode(postalCode, country);\n"],"mappings":";;;;;;;;;;;AAAA,SAAa,MAAM,aAAa;AAEhC,uBAA+C;AAExC,IAAM,aAAN,cAAyB,MAAM;AAAA,EACpC,YACEA,aACS,UAAwB,QAAQ,IACzC;AACA,UAAM,KAAKA,WAAU,EAAE,QAAQ,KAAK,EAAE,EAAE,SAAS,CAAC;AAFzC;AAAA,EAGX;AAAA,EACA,IAAI,UAAmB;AACrB,eAAO,+BAAa,KAAK,OAAQ,KAAK,mBAAmB,UAAU,KAAK,QAAQ,KAAK,KAAK,KAAK,OAAO,EAAE,KAA0B;AAAA,EACpI;AACF;AAEO,IAAM,aAAa,CAACA,aAAsB,UAAwB,QAAQ,OAAO,IAAI,WAAWA,aAAY,OAAO;","names":["postalCode"]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import {
|
|
2
|
+
UnitOfMeasurement
|
|
3
|
+
} from "./chunk-XBORRJ6W.mjs";
|
|
4
|
+
import {
|
|
5
|
+
__decorateClass
|
|
6
|
+
} from "./chunk-RDITZTSA.mjs";
|
|
7
|
+
|
|
8
|
+
// src/structs/Dimension.ts
|
|
9
|
+
import { Struct, required } from "@thisisagile/easy";
|
|
10
|
+
var _Dimension = class _Dimension extends Struct {
|
|
11
|
+
value = this.state.value;
|
|
12
|
+
uom = UnitOfMeasurement.byId(this.state.uom, UnitOfMeasurement.MM);
|
|
13
|
+
static with = (value, uom = UnitOfMeasurement.MM) => new _Dimension({ value, uom });
|
|
14
|
+
/**
|
|
15
|
+
@deprecated use inMilliMeters getter instead
|
|
16
|
+
*/
|
|
17
|
+
sizeInMM() {
|
|
18
|
+
return this.inMilliMeters;
|
|
19
|
+
}
|
|
20
|
+
get inMilliMeters() {
|
|
21
|
+
return this.value * this.uom.mmMultiplier;
|
|
22
|
+
}
|
|
23
|
+
gte(dim) {
|
|
24
|
+
return this.inMilliMeters >= dim.inMilliMeters;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
__decorateClass([
|
|
28
|
+
required()
|
|
29
|
+
], _Dimension.prototype, "value", 2);
|
|
30
|
+
var Dimension = _Dimension;
|
|
31
|
+
|
|
32
|
+
export {
|
|
33
|
+
Dimension
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=chunk-H2VHSGNX.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/structs/Dimension.ts"],"sourcesContent":["import { Struct, required } from '@thisisagile/easy';\nimport { UnitOfMeasurement } from '../enums/UnitOfMeasurement';\n\nexport class Dimension extends Struct {\n @required() readonly value = this.state.value as number;\n readonly uom = UnitOfMeasurement.byId<UnitOfMeasurement>(this.state.uom, UnitOfMeasurement.MM);\n\n static with = (value: number, uom: UnitOfMeasurement = UnitOfMeasurement.MM) => new Dimension({ value, uom });\n\n /**\n @deprecated use inMilliMeters getter instead\n */\n sizeInMM(): number {\n return this.inMilliMeters;\n }\n\n get inMilliMeters(): number {\n return this.value * this.uom.mmMultiplier;\n }\n\n gte(dim: Dimension): boolean {\n return this.inMilliMeters >= dim.inMilliMeters;\n }\n}\n"],"mappings":";;;;;;;;AAAA,SAAS,QAAQ,gBAAgB;AAG1B,IAAM,aAAN,MAAM,mBAAkB,OAAO;AAAA,EACf,QAAQ,KAAK,MAAM;AAAA,EAC/B,MAAM,kBAAkB,KAAwB,KAAK,MAAM,KAAK,kBAAkB,EAAE;AAAA,EAE7F,OAAO,OAAO,CAAC,OAAe,MAAyB,kBAAkB,OAAO,IAAI,WAAU,EAAE,OAAO,IAAI,CAAC;AAAA;AAAA;AAAA;AAAA,EAK5G,WAAmB;AACjB,WAAO,KAAK;AAAA,EACd;AAAA,EAEA,IAAI,gBAAwB;AAC1B,WAAO,KAAK,QAAQ,KAAK,IAAI;AAAA,EAC/B;AAAA,EAEA,IAAI,KAAyB;AAC3B,WAAO,KAAK,iBAAiB,IAAI;AAAA,EACnC;AACF;AAnBuB;AAAA,EAApB,SAAS;AAAA,GADC,WACU;AADhB,IAAM,YAAN;","names":[]}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
// src/enums/Currency.ts
|
|
2
|
+
import { Enum } from "@thisisagile/easy";
|
|
3
|
+
var Currency = class _Currency extends Enum {
|
|
4
|
+
constructor(id, name, digits, code) {
|
|
5
|
+
super(name, id, code);
|
|
6
|
+
this.digits = digits;
|
|
7
|
+
}
|
|
8
|
+
static EUR = new _Currency("EUR", "Euro", 2, "\u20AC");
|
|
9
|
+
static USD = new _Currency("USD", "US Dollar", 2, "$");
|
|
10
|
+
static AED = new _Currency("AED", "United Arab Emirates Dirham", 2, "AED");
|
|
11
|
+
static AFN = new _Currency("AFN", "Afghan Afghani", 0, "Af");
|
|
12
|
+
static ALL = new _Currency("ALL", "Albanian Lek", 0, "ALL");
|
|
13
|
+
static AMD = new _Currency("AMD", "Armenian Dram", 0, "AMD");
|
|
14
|
+
static ARS = new _Currency("ARS", "Argentine Peso", 2, "AR$");
|
|
15
|
+
static AUD = new _Currency("AUD", "Australian Dollar", 2, "AU$");
|
|
16
|
+
static AZN = new _Currency("AZN", "Azerbaijani Manat", 2, "man.");
|
|
17
|
+
static BAM = new _Currency("BAM", "Bosnia-Herzegovina Convertible Mark", 2, "KM");
|
|
18
|
+
static BDT = new _Currency("BDT", "Bangladeshi Taka", 2, "Tk");
|
|
19
|
+
static BGN = new _Currency("BGN", "Bulgarian Lev", 2, "BGN");
|
|
20
|
+
static BHD = new _Currency("BHD", "Bahraini Dinar", 3, "BD");
|
|
21
|
+
static BIF = new _Currency("BIF", "Burundian Franc", 0, "FBu");
|
|
22
|
+
static BND = new _Currency("BND", "Brunei Dollar", 2, "BN$");
|
|
23
|
+
static BOB = new _Currency("BOB", "Bolivian Boliviano", 2, "Bs");
|
|
24
|
+
static BRL = new _Currency("BRL", "Brazilian Real", 2, "R$");
|
|
25
|
+
static BWP = new _Currency("BWP", "Botswanan Pula", 2, "BWP");
|
|
26
|
+
static BYN = new _Currency("BYN", "Belarusian Ruble", 2, "Br");
|
|
27
|
+
static BZD = new _Currency("BZD", "Belize Dollar", 2, "BZ$");
|
|
28
|
+
static CAD = new _Currency("CAD", "Canadian Dollar", 2, "CA$");
|
|
29
|
+
static CDF = new _Currency("CDF", "Congolese Franc", 2, "CDF");
|
|
30
|
+
static CHF = new _Currency("CHF", "Swiss Franc", 2, "CHF");
|
|
31
|
+
static CLP = new _Currency("CLP", "Chilean Peso", 0, "CL$");
|
|
32
|
+
static CNY = new _Currency("CNY", "Chinese Yuan", 2, "CN\xA5");
|
|
33
|
+
static COP = new _Currency("COP", "Colombian Peso", 0, "CO$");
|
|
34
|
+
static CRC = new _Currency("CRC", "Costa Rican Col\xF3n", 0, "\u20A1");
|
|
35
|
+
static CVE = new _Currency("CVE", "Cape Verdean Escudo", 2, "CV$");
|
|
36
|
+
static CZK = new _Currency("CZK", "Czech Republic Koruna", 2, "K\u010D");
|
|
37
|
+
static DJF = new _Currency("DJF", "Djiboutian Franc", 0, "Fdj");
|
|
38
|
+
static DKK = new _Currency("DKK", "Danish Krone", 2, "Dkr");
|
|
39
|
+
static DOP = new _Currency("DOP", "Dominican Peso", 2, "RD$");
|
|
40
|
+
static DZD = new _Currency("DZD", "Algerian Dinar", 2, "DA");
|
|
41
|
+
static EEK = new _Currency("EEK", "Estonian Kroon", 2, "Ekr");
|
|
42
|
+
static EGP = new _Currency("EGP", "Egyptian Pound", 2, "EGP");
|
|
43
|
+
static ERN = new _Currency("ERN", "Eritrean Nakfa", 2, "Nfk");
|
|
44
|
+
static ETB = new _Currency("ETB", "Ethiopian Birr", 2, "Br");
|
|
45
|
+
static GBP = new _Currency("GBP", "British Pound Sterling", 2, "\xA3");
|
|
46
|
+
static GEL = new _Currency("GEL", "Georgian Lari", 2, "GEL");
|
|
47
|
+
static GHS = new _Currency("GHS", "Ghanaian Cedi", 2, "GH\u20B5");
|
|
48
|
+
static GNF = new _Currency("GNF", "Guinean Franc", 0, "FG");
|
|
49
|
+
static GTQ = new _Currency("GTQ", "Guatemalan Quetzal", 2, "GTQ");
|
|
50
|
+
static HKD = new _Currency("HKD", "Hong Kong Dollar", 2, "HK$");
|
|
51
|
+
static HNL = new _Currency("HNL", "Honduran Lempira", 2, "HNL");
|
|
52
|
+
static HRK = new _Currency("HRK", "Croatian Kuna", 2, "kn");
|
|
53
|
+
static HUF = new _Currency("HUF", "Hungarian Forint", 0, "Ft");
|
|
54
|
+
static IDR = new _Currency("IDR", "Indonesian Rupiah", 0, "Rp");
|
|
55
|
+
static ILS = new _Currency("ILS", "Israeli New Sheqel", 2, "\u20AA");
|
|
56
|
+
static INR = new _Currency("INR", "Indian Rupee", 2, "Rs");
|
|
57
|
+
static IQD = new _Currency("IQD", "Iraqi Dinar", 0, "IQD");
|
|
58
|
+
static IRR = new _Currency("IRR", "Iranian Rial", 0, "IRR");
|
|
59
|
+
static ISK = new _Currency("ISK", "Icelandic Kr\xF3na", 0, "Ikr");
|
|
60
|
+
static JMD = new _Currency("JMD", "Jamaican Dollar", 2, "J$");
|
|
61
|
+
static JOD = new _Currency("JOD", "Jordanian Dinar", 3, "JD");
|
|
62
|
+
static JPY = new _Currency("JPY", "Japanese Yen", 0, "\xA5");
|
|
63
|
+
static KES = new _Currency("KES", "Kenyan Shilling", 2, "Ksh");
|
|
64
|
+
static KHR = new _Currency("KHR", "Cambodian Riel", 2, "KHR");
|
|
65
|
+
static KMF = new _Currency("KMF", "Comorian Franc", 0, "CF");
|
|
66
|
+
static KRW = new _Currency("KRW", "South Korean Won", 0, "\u20A9");
|
|
67
|
+
static KWD = new _Currency("KWD", "Kuwaiti Dinar", 3, "KD");
|
|
68
|
+
static KZT = new _Currency("KZT", "Kazakhstani Tenge", 2, "KZT");
|
|
69
|
+
static LBP = new _Currency("LBP", "Lebanese Pound", 0, "L.L.");
|
|
70
|
+
static LKR = new _Currency("LKR", "Sri Lankan Rupee", 2, "SLRs");
|
|
71
|
+
static LTL = new _Currency("LTL", "Lithuanian Litas", 2, "Lt");
|
|
72
|
+
static LVL = new _Currency("LVL", "Latvian Lats", 2, "Ls");
|
|
73
|
+
static LYD = new _Currency("LYD", "Libyan Dinar", 3, "LD");
|
|
74
|
+
static MAD = new _Currency("MAD", "Moroccan Dirham", 2, "MAD");
|
|
75
|
+
static MDL = new _Currency("MDL", "Moldovan Leu", 2, "MDL");
|
|
76
|
+
static MGA = new _Currency("MGA", "Malagasy Ariary", 0, "MGA");
|
|
77
|
+
static MKD = new _Currency("MKD", "Macedonian Denar", 2, "MKD");
|
|
78
|
+
static MMK = new _Currency("MMK", "Myanma Kyat", 0, "MMK");
|
|
79
|
+
static MOP = new _Currency("MOP", "Macanese Pataca", 2, "MOP$");
|
|
80
|
+
static MUR = new _Currency("MUR", "Mauritian Rupee", 0, "MURs");
|
|
81
|
+
static MXN = new _Currency("MXN", "Mexican Peso", 2, "MX$");
|
|
82
|
+
static MYR = new _Currency("MYR", "Malaysian Ringgit", 2, "RM");
|
|
83
|
+
static MZN = new _Currency("MZN", "Mozambican Metical", 2, "MTn");
|
|
84
|
+
static NAD = new _Currency("NAD", "Namibian Dollar", 2, "N$");
|
|
85
|
+
static NGN = new _Currency("NGN", "Nigerian Naira", 2, "\u20A6");
|
|
86
|
+
static NIO = new _Currency("NIO", "Nicaraguan C\xF3rdoba", 2, "C$");
|
|
87
|
+
static NOK = new _Currency("NOK", "Norwegian Krone", 2, "Nkr");
|
|
88
|
+
static NPR = new _Currency("NPR", "Nepalese Rupee", 2, "NPRs");
|
|
89
|
+
static NZD = new _Currency("NZD", "New Zealand Dollar", 2, "NZ$");
|
|
90
|
+
static OMR = new _Currency("OMR", "Omani Rial", 3, "OMR");
|
|
91
|
+
static PAB = new _Currency("PAB", "Panamanian Balboa", 2, "B/.");
|
|
92
|
+
static PEN = new _Currency("PEN", "Peruvian Nuevo Sol", 2, "S/.");
|
|
93
|
+
static PHP = new _Currency("PHP", "Philippine Peso", 2, "\u20B1");
|
|
94
|
+
static PKR = new _Currency("PKR", "Pakistani Rupee", 0, "PKRs");
|
|
95
|
+
static PLN = new _Currency("PLN", "Polish Zloty", 2, "z\u0142");
|
|
96
|
+
static PYG = new _Currency("PYG", "Paraguayan Guarani", 0, "\u20B2");
|
|
97
|
+
static QAR = new _Currency("QAR", "Qatari Rial", 2, "QR");
|
|
98
|
+
static RON = new _Currency("RON", "Romanian Leu", 2, "RON");
|
|
99
|
+
static RSD = new _Currency("RSD", "Serbian Dinar", 0, "din.");
|
|
100
|
+
static RUB = new _Currency("RUB", "Russian Ruble", 2, "RUB");
|
|
101
|
+
static RWF = new _Currency("RWF", "Rwandan Franc", 0, "RWF");
|
|
102
|
+
static SAR = new _Currency("SAR", "Saudi Riyal", 2, "SR");
|
|
103
|
+
static SDG = new _Currency("SDG", "Sudanese Pound", 2, "SDG");
|
|
104
|
+
static SEK = new _Currency("SEK", "Swedish Krona", 2, "Skr");
|
|
105
|
+
static SGD = new _Currency("SGD", "Singapore Dollar", 2, "S$");
|
|
106
|
+
static SOS = new _Currency("SOS", "Somali Shilling", 0, "Ssh");
|
|
107
|
+
static SYP = new _Currency("SYP", "Syrian Pound", 0, "SY\xA3");
|
|
108
|
+
static THB = new _Currency("THB", "Thai Baht", 2, "\u0E3F");
|
|
109
|
+
static TND = new _Currency("TND", "Tunisian Dinar", 3, "DT");
|
|
110
|
+
static TOP = new _Currency("TOP", "Tongan Pa\u02BBanga", 2, "T$");
|
|
111
|
+
static TRY = new _Currency("TRY", "Turkish Lira", 2, "TL");
|
|
112
|
+
static TTD = new _Currency("TTD", "Trinidad and Tobago Dollar", 2, "TT$");
|
|
113
|
+
static TWD = new _Currency("TWD", "New Taiwan Dollar", 2, "NT$");
|
|
114
|
+
static TZS = new _Currency("TZS", "Tanzanian Shilling", 0, "TSh");
|
|
115
|
+
static UAH = new _Currency("UAH", "Ukrainian Hryvnia", 2, "\u20B4");
|
|
116
|
+
static UGX = new _Currency("UGX", "Ugandan Shilling", 0, "USh");
|
|
117
|
+
static UYU = new _Currency("UYU", "Uruguayan Peso", 2, "$U");
|
|
118
|
+
static UZS = new _Currency("UZS", "Uzbekistan Som", 0, "UZS");
|
|
119
|
+
static VEF = new _Currency("VEF", "Venezuelan Bol\xEDvar", 2, "Bs.F.");
|
|
120
|
+
static VND = new _Currency("VND", "Vietnamese Dong", 0, "\u20AB");
|
|
121
|
+
static XAF = new _Currency("XAF", "CFA Franc BEAC", 0, "FCFA");
|
|
122
|
+
static XOF = new _Currency("XOF", "CFA Franc BCEAO", 0, "CFA");
|
|
123
|
+
static YER = new _Currency("YER", "Yemeni Rial", 0, "YR");
|
|
124
|
+
static ZAR = new _Currency("ZAR", "South African Rand", 2, "R");
|
|
125
|
+
static ZMK = new _Currency("ZMK", "Zambian Kwacha", 0, "ZK");
|
|
126
|
+
static ZWL = new _Currency("ZWL", "Zimbabwean Dollar", 0, "ZWL$");
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
export {
|
|
130
|
+
Currency
|
|
131
|
+
};
|
|
132
|
+
//# sourceMappingURL=chunk-PHJVJXA3.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/enums/Currency.ts"],"sourcesContent":["import { Enum } from '@thisisagile/easy';\n\nexport class Currency extends Enum {\n static readonly EUR = new Currency('EUR', 'Euro', 2, '€');\n static readonly USD = new Currency('USD', 'US Dollar', 2, '$');\n static readonly AED = new Currency('AED', 'United Arab Emirates Dirham', 2, 'AED');\n static readonly AFN = new Currency('AFN', 'Afghan Afghani', 0, 'Af');\n static readonly ALL = new Currency('ALL', 'Albanian Lek', 0, 'ALL');\n static readonly AMD = new Currency('AMD', 'Armenian Dram', 0, 'AMD');\n static readonly ARS = new Currency('ARS', 'Argentine Peso', 2, 'AR$');\n static readonly AUD = new Currency('AUD', 'Australian Dollar', 2, 'AU$');\n static readonly AZN = new Currency('AZN', 'Azerbaijani Manat', 2, 'man.');\n static readonly BAM = new Currency('BAM', 'Bosnia-Herzegovina Convertible Mark', 2, 'KM');\n static readonly BDT = new Currency('BDT', 'Bangladeshi Taka', 2, 'Tk');\n static readonly BGN = new Currency('BGN', 'Bulgarian Lev', 2, 'BGN');\n static readonly BHD = new Currency('BHD', 'Bahraini Dinar', 3, 'BD');\n static readonly BIF = new Currency('BIF', 'Burundian Franc', 0, 'FBu');\n static readonly BND = new Currency('BND', 'Brunei Dollar', 2, 'BN$');\n static readonly BOB = new Currency('BOB', 'Bolivian Boliviano', 2, 'Bs');\n static readonly BRL = new Currency('BRL', 'Brazilian Real', 2, 'R$');\n static readonly BWP = new Currency('BWP', 'Botswanan Pula', 2, 'BWP');\n static readonly BYN = new Currency('BYN', 'Belarusian Ruble', 2, 'Br');\n static readonly BZD = new Currency('BZD', 'Belize Dollar', 2, 'BZ$');\n static readonly CAD = new Currency('CAD', 'Canadian Dollar', 2, 'CA$');\n static readonly CDF = new Currency('CDF', 'Congolese Franc', 2, 'CDF');\n static readonly CHF = new Currency('CHF', 'Swiss Franc', 2, 'CHF');\n static readonly CLP = new Currency('CLP', 'Chilean Peso', 0, 'CL$');\n static readonly CNY = new Currency('CNY', 'Chinese Yuan', 2, 'CN¥');\n static readonly COP = new Currency('COP', 'Colombian Peso', 0, 'CO$');\n static readonly CRC = new Currency('CRC', 'Costa Rican Colón', 0, '₡');\n static readonly CVE = new Currency('CVE', 'Cape Verdean Escudo', 2, 'CV$');\n static readonly CZK = new Currency('CZK', 'Czech Republic Koruna', 2, 'Kč');\n static readonly DJF = new Currency('DJF', 'Djiboutian Franc', 0, 'Fdj');\n static readonly DKK = new Currency('DKK', 'Danish Krone', 2, 'Dkr');\n static readonly DOP = new Currency('DOP', 'Dominican Peso', 2, 'RD$');\n static readonly DZD = new Currency('DZD', 'Algerian Dinar', 2, 'DA');\n static readonly EEK = new Currency('EEK', 'Estonian Kroon', 2, 'Ekr');\n static readonly EGP = new Currency('EGP', 'Egyptian Pound', 2, 'EGP');\n static readonly ERN = new Currency('ERN', 'Eritrean Nakfa', 2, 'Nfk');\n static readonly ETB = new Currency('ETB', 'Ethiopian Birr', 2, 'Br');\n static readonly GBP = new Currency('GBP', 'British Pound Sterling', 2, '£');\n static readonly GEL = new Currency('GEL', 'Georgian Lari', 2, 'GEL');\n static readonly GHS = new Currency('GHS', 'Ghanaian Cedi', 2, 'GH₵');\n static readonly GNF = new Currency('GNF', 'Guinean Franc', 0, 'FG');\n static readonly GTQ = new Currency('GTQ', 'Guatemalan Quetzal', 2, 'GTQ');\n static readonly HKD = new Currency('HKD', 'Hong Kong Dollar', 2, 'HK$');\n static readonly HNL = new Currency('HNL', 'Honduran Lempira', 2, 'HNL');\n static readonly HRK = new Currency('HRK', 'Croatian Kuna', 2, 'kn');\n static readonly HUF = new Currency('HUF', 'Hungarian Forint', 0, 'Ft');\n static readonly IDR = new Currency('IDR', 'Indonesian Rupiah', 0, 'Rp');\n static readonly ILS = new Currency('ILS', 'Israeli New Sheqel', 2, '₪');\n static readonly INR = new Currency('INR', 'Indian Rupee', 2, 'Rs');\n static readonly IQD = new Currency('IQD', 'Iraqi Dinar', 0, 'IQD');\n static readonly IRR = new Currency('IRR', 'Iranian Rial', 0, 'IRR');\n static readonly ISK = new Currency('ISK', 'Icelandic Króna', 0, 'Ikr');\n static readonly JMD = new Currency('JMD', 'Jamaican Dollar', 2, 'J$');\n static readonly JOD = new Currency('JOD', 'Jordanian Dinar', 3, 'JD');\n static readonly JPY = new Currency('JPY', 'Japanese Yen', 0, '¥');\n static readonly KES = new Currency('KES', 'Kenyan Shilling', 2, 'Ksh');\n static readonly KHR = new Currency('KHR', 'Cambodian Riel', 2, 'KHR');\n static readonly KMF = new Currency('KMF', 'Comorian Franc', 0, 'CF');\n static readonly KRW = new Currency('KRW', 'South Korean Won', 0, '₩');\n static readonly KWD = new Currency('KWD', 'Kuwaiti Dinar', 3, 'KD');\n static readonly KZT = new Currency('KZT', 'Kazakhstani Tenge', 2, 'KZT');\n static readonly LBP = new Currency('LBP', 'Lebanese Pound', 0, 'L.L.');\n static readonly LKR = new Currency('LKR', 'Sri Lankan Rupee', 2, 'SLRs');\n static readonly LTL = new Currency('LTL', 'Lithuanian Litas', 2, 'Lt');\n static readonly LVL = new Currency('LVL', 'Latvian Lats', 2, 'Ls');\n static readonly LYD = new Currency('LYD', 'Libyan Dinar', 3, 'LD');\n static readonly MAD = new Currency('MAD', 'Moroccan Dirham', 2, 'MAD');\n static readonly MDL = new Currency('MDL', 'Moldovan Leu', 2, 'MDL');\n static readonly MGA = new Currency('MGA', 'Malagasy Ariary', 0, 'MGA');\n static readonly MKD = new Currency('MKD', 'Macedonian Denar', 2, 'MKD');\n static readonly MMK = new Currency('MMK', 'Myanma Kyat', 0, 'MMK');\n static readonly MOP = new Currency('MOP', 'Macanese Pataca', 2, 'MOP$');\n static readonly MUR = new Currency('MUR', 'Mauritian Rupee', 0, 'MURs');\n static readonly MXN = new Currency('MXN', 'Mexican Peso', 2, 'MX$');\n static readonly MYR = new Currency('MYR', 'Malaysian Ringgit', 2, 'RM');\n static readonly MZN = new Currency('MZN', 'Mozambican Metical', 2, 'MTn');\n static readonly NAD = new Currency('NAD', 'Namibian Dollar', 2, 'N$');\n static readonly NGN = new Currency('NGN', 'Nigerian Naira', 2, '₦');\n static readonly NIO = new Currency('NIO', 'Nicaraguan Córdoba', 2, 'C$');\n static readonly NOK = new Currency('NOK', 'Norwegian Krone', 2, 'Nkr');\n static readonly NPR = new Currency('NPR', 'Nepalese Rupee', 2, 'NPRs');\n static readonly NZD = new Currency('NZD', 'New Zealand Dollar', 2, 'NZ$');\n static readonly OMR = new Currency('OMR', 'Omani Rial', 3, 'OMR');\n static readonly PAB = new Currency('PAB', 'Panamanian Balboa', 2, 'B/.');\n static readonly PEN = new Currency('PEN', 'Peruvian Nuevo Sol', 2, 'S/.');\n static readonly PHP = new Currency('PHP', 'Philippine Peso', 2, '₱');\n static readonly PKR = new Currency('PKR', 'Pakistani Rupee', 0, 'PKRs');\n static readonly PLN = new Currency('PLN', 'Polish Zloty', 2, 'zł');\n static readonly PYG = new Currency('PYG', 'Paraguayan Guarani', 0, '₲');\n static readonly QAR = new Currency('QAR', 'Qatari Rial', 2, 'QR');\n static readonly RON = new Currency('RON', 'Romanian Leu', 2, 'RON');\n static readonly RSD = new Currency('RSD', 'Serbian Dinar', 0, 'din.');\n static readonly RUB = new Currency('RUB', 'Russian Ruble', 2, 'RUB');\n static readonly RWF = new Currency('RWF', 'Rwandan Franc', 0, 'RWF');\n static readonly SAR = new Currency('SAR', 'Saudi Riyal', 2, 'SR');\n static readonly SDG = new Currency('SDG', 'Sudanese Pound', 2, 'SDG');\n static readonly SEK = new Currency('SEK', 'Swedish Krona', 2, 'Skr');\n static readonly SGD = new Currency('SGD', 'Singapore Dollar', 2, 'S$');\n static readonly SOS = new Currency('SOS', 'Somali Shilling', 0, 'Ssh');\n static readonly SYP = new Currency('SYP', 'Syrian Pound', 0, 'SY£');\n static readonly THB = new Currency('THB', 'Thai Baht', 2, '฿');\n static readonly TND = new Currency('TND', 'Tunisian Dinar', 3, 'DT');\n static readonly TOP = new Currency('TOP', 'Tongan Paʻanga', 2, 'T$');\n static readonly TRY = new Currency('TRY', 'Turkish Lira', 2, 'TL');\n static readonly TTD = new Currency('TTD', 'Trinidad and Tobago Dollar', 2, 'TT$');\n static readonly TWD = new Currency('TWD', 'New Taiwan Dollar', 2, 'NT$');\n static readonly TZS = new Currency('TZS', 'Tanzanian Shilling', 0, 'TSh');\n static readonly UAH = new Currency('UAH', 'Ukrainian Hryvnia', 2, '₴');\n static readonly UGX = new Currency('UGX', 'Ugandan Shilling', 0, 'USh');\n static readonly UYU = new Currency('UYU', 'Uruguayan Peso', 2, '$U');\n static readonly UZS = new Currency('UZS', 'Uzbekistan Som', 0, 'UZS');\n static readonly VEF = new Currency('VEF', 'Venezuelan Bolívar', 2, 'Bs.F.');\n static readonly VND = new Currency('VND', 'Vietnamese Dong', 0, '₫');\n static readonly XAF = new Currency('XAF', 'CFA Franc BEAC', 0, 'FCFA');\n static readonly XOF = new Currency('XOF', 'CFA Franc BCEAO', 0, 'CFA');\n static readonly YER = new Currency('YER', 'Yemeni Rial', 0, 'YR');\n static readonly ZAR = new Currency('ZAR', 'South African Rand', 2, 'R');\n static readonly ZMK = new Currency('ZMK', 'Zambian Kwacha', 0, 'ZK');\n static readonly ZWL = new Currency('ZWL', 'Zimbabwean Dollar', 0, 'ZWL$');\n\n constructor(\n id: string,\n name: string,\n readonly digits: number,\n code: string\n ) {\n super(name, id, code);\n }\n}\n"],"mappings":";AAAA,SAAS,YAAY;AAEd,IAAM,WAAN,MAAM,kBAAiB,KAAK;AAAA,EAyHjC,YACE,IACA,MACS,QACT,MACA;AACA,UAAM,MAAM,IAAI,IAAI;AAHX;AAAA,EAIX;AAAA,EA/HA,OAAgB,MAAM,IAAI,UAAS,OAAO,QAAQ,GAAG,QAAG;AAAA,EACxD,OAAgB,MAAM,IAAI,UAAS,OAAO,aAAa,GAAG,GAAG;AAAA,EAC7D,OAAgB,MAAM,IAAI,UAAS,OAAO,+BAA+B,GAAG,KAAK;AAAA,EACjF,OAAgB,MAAM,IAAI,UAAS,OAAO,kBAAkB,GAAG,IAAI;AAAA,EACnE,OAAgB,MAAM,IAAI,UAAS,OAAO,gBAAgB,GAAG,KAAK;AAAA,EAClE,OAAgB,MAAM,IAAI,UAAS,OAAO,iBAAiB,GAAG,KAAK;AAAA,EACnE,OAAgB,MAAM,IAAI,UAAS,OAAO,kBAAkB,GA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,gBAAgB,GAAG,IAAI;AAAA,EACjE,OAAgB,MAAM,IAAI,UAAS,OAAO,8BAA8B,GAAG,KAAK;AAAA,EAChF,OAAgB,MAAM,IAAI,UAAS,OAAO,qBAAqB,GAAG,KAAK;AAAA,EACvE,OAAgB,MAAM,IAAI,UAAS,OAAO,sBAAsB,GAAG,KAAK;AAAA,EACxE,OAAgB,MAAM,IAAI,UAAS,OAAO,qBAAqB,GAAG,QAAG;AAAA,EACrE,OAAgB,MAAM,IAAI,UAAS,OAAO,oBAAoB,GAAG,KAAK;AAAA,EACtE,OAAgB,MAAM,IAAI,UAAS,OAAO,kBAAkB,GAAG,IAAI;AAAA,EACnE,OAAgB,MAAM,IAAI,UAAS,OAAO,kBAAkB,GAAG,KAAK;AAAA,EACpE,OAAgB,MAAM,IAAI,UAAS,OAAO,yBAAsB,GAAG,OAAO;AAAA,EAC1E,OAAgB,MAAM,IAAI,UAAS,OAAO,mBAAmB,GAAG,QAAG;AAAA,EACnE,OAAgB,MAAM,IAAI,UAAS,OAAO,kBAAkB,GAAG,MAAM;AAAA,EACrE,OAAgB,MAAM,IAAI,UAAS,OAAO,mBAAmB,GAAG,KAAK;AAAA,EACrE,OAAgB,MAAM,IAAI,UAAS,OAAO,eAAe,GAAG,IAAI;AAAA,EAChE,OAAgB,MAAM,IAAI,UAAS,OAAO,sBAAsB,GAAG,GAAG;AAAA,EACtE,OAAgB,MAAM,IAAI,UAAS,OAAO,kBAAkB,GAAG,IAAI;AAAA,EACnE,OAAgB,MAAM,IAAI,UAAS,OAAO,qBAAqB,GAAG,MAAM;AAU1E;","names":[]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
8
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
19
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
20
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
21
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
22
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
23
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
24
|
+
mod
|
|
25
|
+
));
|
|
26
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
27
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
28
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
29
|
+
if (decorator = decorators[i])
|
|
30
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
31
|
+
if (kind && result)
|
|
32
|
+
__defProp(target, key, result);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export {
|
|
37
|
+
__commonJS,
|
|
38
|
+
__toESM,
|
|
39
|
+
__decorateClass
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=chunk-RDITZTSA.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
// src/enums/Country.ts
|
|
2
|
+
import { Enum, text } from "@thisisagile/easy";
|
|
3
|
+
var Country = class _Country extends Enum {
|
|
4
|
+
constructor(name, id, lower = text(id).lower.trim.toString()) {
|
|
5
|
+
super(name, id);
|
|
6
|
+
this.lower = lower;
|
|
7
|
+
}
|
|
8
|
+
static AF = new _Country("Afghanistan", "AF");
|
|
9
|
+
static AX = new _Country("\xC5land Islands", "AX");
|
|
10
|
+
static AL = new _Country("Albania", "AL");
|
|
11
|
+
static DZ = new _Country("Algeria", "DZ");
|
|
12
|
+
static AS = new _Country("American Samoa", "AS");
|
|
13
|
+
static AD = new _Country("Andorra", "AD");
|
|
14
|
+
static AO = new _Country("Angola", "AO");
|
|
15
|
+
static AI = new _Country("Anguilla", "AI");
|
|
16
|
+
static AQ = new _Country("Antarctica", "AQ");
|
|
17
|
+
static AG = new _Country("Antigua & Barbuda", "AG");
|
|
18
|
+
static AR = new _Country("Argentina", "AR");
|
|
19
|
+
static AM = new _Country("Armenia", "AM");
|
|
20
|
+
static AW = new _Country("Aruba", "AW");
|
|
21
|
+
static AU = new _Country("Australia", "AU");
|
|
22
|
+
static AT = new _Country("Austria", "AT");
|
|
23
|
+
static AZ = new _Country("Azerbaijan", "AZ");
|
|
24
|
+
static BS = new _Country("Bahamas", "BS");
|
|
25
|
+
static BH = new _Country("Bahrain", "BH");
|
|
26
|
+
static BD = new _Country("Bangladesh", "BD");
|
|
27
|
+
static BB = new _Country("Barbados", "BB");
|
|
28
|
+
static BY = new _Country("Belarus", "BY");
|
|
29
|
+
static BE = new _Country("Belgium", "BE");
|
|
30
|
+
static BZ = new _Country("Belize", "BZ");
|
|
31
|
+
static BJ = new _Country("Benin", "BJ");
|
|
32
|
+
static BM = new _Country("Bermuda", "BM");
|
|
33
|
+
static BT = new _Country("Bhutan", "BT");
|
|
34
|
+
static BO = new _Country("Bolivia", "BO");
|
|
35
|
+
static BA = new _Country("Bosnia & Herzegovina", "BA");
|
|
36
|
+
static BW = new _Country("Botswana", "BW");
|
|
37
|
+
static BV = new _Country("Bouvet Island", "BV");
|
|
38
|
+
static BR = new _Country("Brazil", "BR");
|
|
39
|
+
static IO = new _Country("British Indian Ocean Territory", "IO");
|
|
40
|
+
static VG = new _Country("British Virgin Islands", "VG");
|
|
41
|
+
static BN = new _Country("Brunei", "BN");
|
|
42
|
+
static BG = new _Country("Bulgaria", "BG");
|
|
43
|
+
static BF = new _Country("Burkina Faso", "BF");
|
|
44
|
+
static BI = new _Country("Burundi", "BI");
|
|
45
|
+
static KH = new _Country("Cambodia", "KH");
|
|
46
|
+
static CM = new _Country("Cameroon", "CM");
|
|
47
|
+
static CA = new _Country("Canada", "CA");
|
|
48
|
+
static CV = new _Country("Cape Verde", "CV");
|
|
49
|
+
static BQ = new _Country("Caribbean Netherlands", "BQ");
|
|
50
|
+
static KY = new _Country("Cayman Islands", "KY");
|
|
51
|
+
static CF = new _Country("Central African Republic", "CF");
|
|
52
|
+
static TD = new _Country("Chad", "TD");
|
|
53
|
+
static CL = new _Country("Chile", "CL");
|
|
54
|
+
static CN = new _Country("China", "CN");
|
|
55
|
+
static CX = new _Country("Christmas Island", "CX");
|
|
56
|
+
static CC = new _Country("Cocos (Keeling) Islands", "CC");
|
|
57
|
+
static CO = new _Country("Colombia", "CO");
|
|
58
|
+
static KM = new _Country("Comoros", "KM");
|
|
59
|
+
static CG = new _Country("Congo - Brazzaville", "CG");
|
|
60
|
+
static CD = new _Country("Congo - Kinshasa", "CD");
|
|
61
|
+
static CK = new _Country("Cook Islands", "CK");
|
|
62
|
+
static CR = new _Country("Costa Rica", "CR");
|
|
63
|
+
static CI = new _Country("C\xF4te d\u2019Ivoire", "CI");
|
|
64
|
+
static HR = new _Country("Croatia", "HR");
|
|
65
|
+
static CU = new _Country("Cuba", "CU");
|
|
66
|
+
static CW = new _Country("Cura\xE7ao", "CW");
|
|
67
|
+
static CY = new _Country("Cyprus", "CY");
|
|
68
|
+
static CZ = new _Country("Czechia", "CZ");
|
|
69
|
+
static DK = new _Country("Denmark", "DK");
|
|
70
|
+
static DJ = new _Country("Djibouti", "DJ");
|
|
71
|
+
static DM = new _Country("Dominica", "DM");
|
|
72
|
+
static DO = new _Country("Dominican Republic", "DO");
|
|
73
|
+
static EC = new _Country("Ecuador", "EC");
|
|
74
|
+
static EG = new _Country("Egypt", "EG");
|
|
75
|
+
static SV = new _Country("El Salvador", "SV");
|
|
76
|
+
static GQ = new _Country("Equatorial Guinea", "GQ");
|
|
77
|
+
static ER = new _Country("Eritrea", "ER");
|
|
78
|
+
static EE = new _Country("Estonia", "EE");
|
|
79
|
+
static SZ = new _Country("Eswatini", "SZ");
|
|
80
|
+
static ET = new _Country("Ethiopia", "ET");
|
|
81
|
+
static FK = new _Country("Falkland Islands", "FK");
|
|
82
|
+
static FO = new _Country("Faroe Islands", "FO");
|
|
83
|
+
static FJ = new _Country("Fiji", "FJ");
|
|
84
|
+
static FI = new _Country("Finland", "FI");
|
|
85
|
+
static FR = new _Country("France", "FR");
|
|
86
|
+
static GF = new _Country("French Guiana", "GF");
|
|
87
|
+
static PF = new _Country("French Polynesia", "PF");
|
|
88
|
+
static TF = new _Country("French Southern Territories", "TF");
|
|
89
|
+
static GA = new _Country("Gabon", "GA");
|
|
90
|
+
static GM = new _Country("Gambia", "GM");
|
|
91
|
+
static GE = new _Country("Georgia", "GE");
|
|
92
|
+
static DE = new _Country("Germany", "DE");
|
|
93
|
+
static GH = new _Country("Ghana", "GH");
|
|
94
|
+
static GI = new _Country("Gibraltar", "GI");
|
|
95
|
+
static GR = new _Country("Greece", "GR");
|
|
96
|
+
static GL = new _Country("Greenland", "GL");
|
|
97
|
+
static GD = new _Country("Grenada", "GD");
|
|
98
|
+
static GP = new _Country("Guadeloupe", "GP");
|
|
99
|
+
static GU = new _Country("Guam", "GU");
|
|
100
|
+
static GT = new _Country("Guatemala", "GT");
|
|
101
|
+
static GG = new _Country("Guernsey", "GG");
|
|
102
|
+
static GN = new _Country("Guinea", "GN");
|
|
103
|
+
static GW = new _Country("Guinea-Bissau", "GW");
|
|
104
|
+
static GY = new _Country("Guyana", "GY");
|
|
105
|
+
static HT = new _Country("Haiti", "HT");
|
|
106
|
+
static HM = new _Country("Heard & McDonald Islands", "HM");
|
|
107
|
+
static HN = new _Country("Honduras", "HN");
|
|
108
|
+
static HK = new _Country("Hong Kong SAR China", "HK");
|
|
109
|
+
static HU = new _Country("Hungary", "HU");
|
|
110
|
+
static IS = new _Country("Iceland", "IS");
|
|
111
|
+
static IN = new _Country("India", "IN");
|
|
112
|
+
static ID = new _Country("Indonesia", "ID");
|
|
113
|
+
static IR = new _Country("Iran", "IR");
|
|
114
|
+
static IQ = new _Country("Iraq", "IQ");
|
|
115
|
+
static IE = new _Country("Ireland", "IE");
|
|
116
|
+
static IM = new _Country("Isle of Man", "IM");
|
|
117
|
+
static IL = new _Country("Israel", "IL");
|
|
118
|
+
static IT = new _Country("Italy", "IT");
|
|
119
|
+
static JM = new _Country("Jamaica", "JM");
|
|
120
|
+
static JP = new _Country("Japan", "JP");
|
|
121
|
+
static JE = new _Country("Jersey", "JE");
|
|
122
|
+
static JO = new _Country("Jordan", "JO");
|
|
123
|
+
static KZ = new _Country("Kazakhstan", "KZ");
|
|
124
|
+
static KE = new _Country("Kenya", "KE");
|
|
125
|
+
static KI = new _Country("Kiribati", "KI");
|
|
126
|
+
static KW = new _Country("Kuwait", "KW");
|
|
127
|
+
static KG = new _Country("Kyrgyzstan", "KG");
|
|
128
|
+
static LA = new _Country("Laos", "LA");
|
|
129
|
+
static LV = new _Country("Latvia", "LV");
|
|
130
|
+
static LB = new _Country("Lebanon", "LB");
|
|
131
|
+
static LS = new _Country("Lesotho", "LS");
|
|
132
|
+
static LR = new _Country("Liberia", "LR");
|
|
133
|
+
static LY = new _Country("Libya", "LY");
|
|
134
|
+
static LI = new _Country("Liechtenstein", "LI");
|
|
135
|
+
static LT = new _Country("Lithuania", "LT");
|
|
136
|
+
static LU = new _Country("Luxembourg", "LU");
|
|
137
|
+
static MO = new _Country("Macao SAR China", "MO");
|
|
138
|
+
static MG = new _Country("Madagascar", "MG");
|
|
139
|
+
static MW = new _Country("Malawi", "MW");
|
|
140
|
+
static MY = new _Country("Malaysia", "MY");
|
|
141
|
+
static MV = new _Country("Maldives", "MV");
|
|
142
|
+
static ML = new _Country("Mali", "ML");
|
|
143
|
+
static MT = new _Country("Malta", "MT");
|
|
144
|
+
static MH = new _Country("Marshall Islands", "MH");
|
|
145
|
+
static MQ = new _Country("Martinique", "MQ");
|
|
146
|
+
static MR = new _Country("Mauritania", "MR");
|
|
147
|
+
static MU = new _Country("Mauritius", "MU");
|
|
148
|
+
static YT = new _Country("Mayotte", "YT");
|
|
149
|
+
static MX = new _Country("Mexico", "MX");
|
|
150
|
+
static FM = new _Country("Micronesia", "FM");
|
|
151
|
+
static MD = new _Country("Moldova", "MD");
|
|
152
|
+
static MC = new _Country("Monaco", "MC");
|
|
153
|
+
static MN = new _Country("Mongolia", "MN");
|
|
154
|
+
static ME = new _Country("Montenegro", "ME");
|
|
155
|
+
static MS = new _Country("Montserrat", "MS");
|
|
156
|
+
static MA = new _Country("Morocco", "MA");
|
|
157
|
+
static MZ = new _Country("Mozambique", "MZ");
|
|
158
|
+
static MM = new _Country("Myanmar (Burma)", "MM");
|
|
159
|
+
static NA = new _Country("Namibia", "NA");
|
|
160
|
+
static NR = new _Country("Nauru", "NR");
|
|
161
|
+
static NP = new _Country("Nepal", "NP");
|
|
162
|
+
static NL = new _Country("Netherlands", "NL");
|
|
163
|
+
static NC = new _Country("New Caledonia", "NC");
|
|
164
|
+
static NZ = new _Country("New Zealand", "NZ");
|
|
165
|
+
static NI = new _Country("Nicaragua", "NI");
|
|
166
|
+
static NE = new _Country("Niger", "NE");
|
|
167
|
+
static NG = new _Country("Nigeria", "NG");
|
|
168
|
+
static NU = new _Country("Niue", "NU");
|
|
169
|
+
static NF = new _Country("Norfolk Island", "NF");
|
|
170
|
+
static KP = new _Country("North Korea", "KP");
|
|
171
|
+
static MK = new _Country("North Macedonia", "MK");
|
|
172
|
+
static MP = new _Country("Northern Mariana Islands", "MP");
|
|
173
|
+
static NO = new _Country("Norway", "NO");
|
|
174
|
+
static OM = new _Country("Oman", "OM");
|
|
175
|
+
static PK = new _Country("Pakistan", "PK");
|
|
176
|
+
static PW = new _Country("Palau", "PW");
|
|
177
|
+
static PS = new _Country("Palestinian Territories", "PS");
|
|
178
|
+
static PA = new _Country("Panama", "PA");
|
|
179
|
+
static PG = new _Country("Papua New Guinea", "PG");
|
|
180
|
+
static PY = new _Country("Paraguay", "PY");
|
|
181
|
+
static PE = new _Country("Peru", "PE");
|
|
182
|
+
static PH = new _Country("Philippines", "PH");
|
|
183
|
+
static PN = new _Country("Pitcairn Islands", "PN");
|
|
184
|
+
static PL = new _Country("Poland", "PL");
|
|
185
|
+
static PT = new _Country("Portugal", "PT");
|
|
186
|
+
static PR = new _Country("Puerto Rico", "PR");
|
|
187
|
+
static QA = new _Country("Qatar", "QA");
|
|
188
|
+
static RE = new _Country("R\xE9union", "RE");
|
|
189
|
+
static RO = new _Country("Romania", "RO");
|
|
190
|
+
static RU = new _Country("Russia", "RU");
|
|
191
|
+
static RW = new _Country("Rwanda", "RW");
|
|
192
|
+
static WS = new _Country("Samoa", "WS");
|
|
193
|
+
static SM = new _Country("San Marino", "SM");
|
|
194
|
+
static ST = new _Country("S\xE3o Tom\xE9 & Pr\xEDncipe", "ST");
|
|
195
|
+
static SA = new _Country("Saudi Arabia", "SA");
|
|
196
|
+
static SN = new _Country("Senegal", "SN");
|
|
197
|
+
static RS = new _Country("Serbia", "RS");
|
|
198
|
+
static SC = new _Country("Seychelles", "SC");
|
|
199
|
+
static SL = new _Country("Sierra Leone", "SL");
|
|
200
|
+
static SG = new _Country("Singapore", "SG");
|
|
201
|
+
static SX = new _Country("Sint Maarten", "SX");
|
|
202
|
+
static SK = new _Country("Slovakia", "SK");
|
|
203
|
+
static SI = new _Country("Slovenia", "SI");
|
|
204
|
+
static SB = new _Country("Solomon Islands", "SB");
|
|
205
|
+
static SO = new _Country("Somalia", "SO");
|
|
206
|
+
static ZA = new _Country("South Africa", "ZA");
|
|
207
|
+
static GS = new _Country("South Georgia & South Sandwich Islands", "GS");
|
|
208
|
+
static KR = new _Country("South Korea", "KR");
|
|
209
|
+
static SS = new _Country("South Sudan", "SS");
|
|
210
|
+
static ES = new _Country("Spain", "ES");
|
|
211
|
+
static LK = new _Country("Sri Lanka", "LK");
|
|
212
|
+
static BL = new _Country("St. Barth\xE9lemy", "BL");
|
|
213
|
+
static SH = new _Country("St. Helena", "SH");
|
|
214
|
+
static KN = new _Country("St. Kitts & Nevis", "KN");
|
|
215
|
+
static LC = new _Country("St. Lucia", "LC");
|
|
216
|
+
static MF = new _Country("St. Martin", "MF");
|
|
217
|
+
static PM = new _Country("St. Pierre & Miquelon", "PM");
|
|
218
|
+
static VC = new _Country("St. Vincent & Grenadines", "VC");
|
|
219
|
+
static SD = new _Country("Sudan", "SD");
|
|
220
|
+
static SR = new _Country("Suriname", "SR");
|
|
221
|
+
static SJ = new _Country("Svalbard & Jan Mayen", "SJ");
|
|
222
|
+
static SE = new _Country("Sweden", "SE");
|
|
223
|
+
static CH = new _Country("Switzerland", "CH");
|
|
224
|
+
static SY = new _Country("Syria", "SY");
|
|
225
|
+
static TW = new _Country("Taiwan", "TW");
|
|
226
|
+
static TJ = new _Country("Tajikistan", "TJ");
|
|
227
|
+
static TZ = new _Country("Tanzania", "TZ");
|
|
228
|
+
static TH = new _Country("Thailand", "TH");
|
|
229
|
+
static TL = new _Country("Timor-Leste", "TL");
|
|
230
|
+
static TG = new _Country("Togo", "TG");
|
|
231
|
+
static TK = new _Country("Tokelau", "TK");
|
|
232
|
+
static TO = new _Country("Tonga", "TO");
|
|
233
|
+
static TT = new _Country("Trinidad & Tobago", "TT");
|
|
234
|
+
static TN = new _Country("Tunisia", "TN");
|
|
235
|
+
static TR = new _Country("Turkey", "TR");
|
|
236
|
+
static TM = new _Country("Turkmenistan", "TM");
|
|
237
|
+
static TC = new _Country("Turks & Caicos Islands", "TC");
|
|
238
|
+
static TV = new _Country("Tuvalu", "TV");
|
|
239
|
+
static UM = new _Country("U.S. Outlying Islands", "UM");
|
|
240
|
+
static VI = new _Country("U.S. Virgin Islands", "VI");
|
|
241
|
+
static UG = new _Country("Uganda", "UG");
|
|
242
|
+
static UA = new _Country("Ukraine", "UA");
|
|
243
|
+
static AE = new _Country("United Arab Emirates", "AE");
|
|
244
|
+
static GB = new _Country("United Kingdom", "GB");
|
|
245
|
+
static US = new _Country("United States", "US");
|
|
246
|
+
static UY = new _Country("Uruguay", "UY");
|
|
247
|
+
static UZ = new _Country("Uzbekistan", "UZ");
|
|
248
|
+
static VU = new _Country("Vanuatu", "VU");
|
|
249
|
+
static VA = new _Country("Vatican City", "VA");
|
|
250
|
+
static VE = new _Country("Venezuela", "VE");
|
|
251
|
+
static VN = new _Country("Vietnam", "VN");
|
|
252
|
+
static WF = new _Country("Wallis & Futuna", "WF");
|
|
253
|
+
static EH = new _Country("Western Sahara", "EH");
|
|
254
|
+
static YE = new _Country("Yemen", "YE");
|
|
255
|
+
static ZM = new _Country("Zambia", "ZM");
|
|
256
|
+
static ZW = new _Country("Zimbabwe", "ZW");
|
|
257
|
+
static lookup(other) {
|
|
258
|
+
return this.all().first((l) => l.equals(other));
|
|
259
|
+
}
|
|
260
|
+
equals(other) {
|
|
261
|
+
return text(other).lower.trim.equals(this.lower);
|
|
262
|
+
}
|
|
263
|
+
};
|
|
264
|
+
var inEurope = (c) => {
|
|
265
|
+
const country = c instanceof Country ? c : Country.lookup(c);
|
|
266
|
+
if (!country) {
|
|
267
|
+
return false;
|
|
268
|
+
}
|
|
269
|
+
const euCountries = [
|
|
270
|
+
Country.AT,
|
|
271
|
+
Country.BE,
|
|
272
|
+
Country.BG,
|
|
273
|
+
Country.HR,
|
|
274
|
+
Country.CY,
|
|
275
|
+
Country.CZ,
|
|
276
|
+
Country.DK,
|
|
277
|
+
Country.EE,
|
|
278
|
+
Country.FI,
|
|
279
|
+
Country.FR,
|
|
280
|
+
Country.DE,
|
|
281
|
+
Country.GR,
|
|
282
|
+
Country.HU,
|
|
283
|
+
Country.IE,
|
|
284
|
+
Country.IT,
|
|
285
|
+
Country.LV,
|
|
286
|
+
Country.LT,
|
|
287
|
+
Country.LU,
|
|
288
|
+
Country.MT,
|
|
289
|
+
Country.NL,
|
|
290
|
+
Country.PL,
|
|
291
|
+
Country.PT,
|
|
292
|
+
Country.RO,
|
|
293
|
+
Country.SK,
|
|
294
|
+
Country.SI,
|
|
295
|
+
Country.ES,
|
|
296
|
+
Country.SE
|
|
297
|
+
];
|
|
298
|
+
return euCountries.some((euCountry) => euCountry.equals(country));
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
export {
|
|
302
|
+
Country,
|
|
303
|
+
inEurope
|
|
304
|
+
};
|
|
305
|
+
//# sourceMappingURL=chunk-WHI6D6DX.mjs.map
|