@cobre-npm/library-portal-core 0.1.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.
Files changed (71) hide show
  1. package/dist/constants/accountProviders/account-providers.constants.d.ts +12 -0
  2. package/dist/constants/accountProviders/account-providers.constants.d.ts.map +1 -0
  3. package/dist/constants/accountProviders/account-providers.constants.js +11 -0
  4. package/dist/constants/accountProviders/account-providers.constants.js.map +1 -0
  5. package/dist/constants/accountTypes/account-types.constants.d.ts +14 -0
  6. package/dist/constants/accountTypes/account-types.constants.d.ts.map +1 -0
  7. package/dist/constants/accountTypes/account-types.constants.js +30 -0
  8. package/dist/constants/accountTypes/account-types.constants.js.map +1 -0
  9. package/dist/constants/accountTypes/account-types.filters.d.ts +4 -0
  10. package/dist/constants/accountTypes/account-types.filters.d.ts.map +1 -0
  11. package/dist/constants/accountTypes/account-types.filters.js +7 -0
  12. package/dist/constants/accountTypes/account-types.filters.js.map +1 -0
  13. package/dist/constants/accountTypes/account-types.labels.d.ts +9 -0
  14. package/dist/constants/accountTypes/account-types.labels.d.ts.map +1 -0
  15. package/dist/constants/accountTypes/account-types.labels.js +22 -0
  16. package/dist/constants/accountTypes/account-types.labels.js.map +1 -0
  17. package/dist/constants/accountTypes/locales/en.json +10 -0
  18. package/dist/constants/accountTypes/locales/es-mex.json +10 -0
  19. package/dist/constants/constants.test.d.ts +2 -0
  20. package/dist/constants/constants.test.d.ts.map +1 -0
  21. package/dist/constants/constants.test.js +53 -0
  22. package/dist/constants/constants.test.js.map +1 -0
  23. package/dist/constants/counterpartyTypes/counterparty-types.constants.d.ts +27 -0
  24. package/dist/constants/counterpartyTypes/counterparty-types.constants.d.ts.map +1 -0
  25. package/dist/constants/counterpartyTypes/counterparty-types.constants.js +42 -0
  26. package/dist/constants/counterpartyTypes/counterparty-types.constants.js.map +1 -0
  27. package/dist/constants/counterpartyTypes/counterparty-types.filters.d.ts +4 -0
  28. package/dist/constants/counterpartyTypes/counterparty-types.filters.d.ts.map +1 -0
  29. package/dist/constants/counterpartyTypes/counterparty-types.filters.js +7 -0
  30. package/dist/constants/counterpartyTypes/counterparty-types.filters.js.map +1 -0
  31. package/dist/constants/counterpartyTypes/counterparty-types.labels.d.ts +8 -0
  32. package/dist/constants/counterpartyTypes/counterparty-types.labels.d.ts.map +1 -0
  33. package/dist/constants/counterpartyTypes/counterparty-types.labels.js +22 -0
  34. package/dist/constants/counterpartyTypes/counterparty-types.labels.js.map +1 -0
  35. package/dist/constants/counterpartyTypes/locales/en.json +22 -0
  36. package/dist/constants/counterpartyTypes/locales/es-mex.json +22 -0
  37. package/dist/constants/countries/countries.constants.d.ts +8 -0
  38. package/dist/constants/countries/countries.constants.d.ts.map +1 -0
  39. package/dist/constants/countries/countries.constants.js +7 -0
  40. package/dist/constants/countries/countries.constants.js.map +1 -0
  41. package/dist/constants/countries/countries.data.d.ts +4 -0
  42. package/dist/constants/countries/countries.data.d.ts.map +1 -0
  43. package/dist/constants/countries/countries.data.js +8 -0
  44. package/dist/constants/countries/countries.data.js.map +1 -0
  45. package/dist/constants/countries/countries.labels.d.ts +8 -0
  46. package/dist/constants/countries/countries.labels.d.ts.map +1 -0
  47. package/dist/constants/countries/countries.labels.js +17 -0
  48. package/dist/constants/countries/countries.labels.js.map +1 -0
  49. package/dist/constants/countries/locales/en.json +8 -0
  50. package/dist/constants/countries/locales/es-mex.json +8 -0
  51. package/dist/constants/currencies/currencies.constants.d.ts +12 -0
  52. package/dist/constants/currencies/currencies.constants.d.ts.map +1 -0
  53. package/dist/constants/currencies/currencies.constants.js +11 -0
  54. package/dist/constants/currencies/currencies.constants.js.map +1 -0
  55. package/dist/constants/currencies/currencies.data.d.ts +60 -0
  56. package/dist/constants/currencies/currencies.data.d.ts.map +1 -0
  57. package/dist/constants/currencies/currencies.data.js +69 -0
  58. package/dist/constants/currencies/currencies.data.js.map +1 -0
  59. package/dist/constants/currencies/currencies.filters.d.ts +61 -0
  60. package/dist/constants/currencies/currencies.filters.d.ts.map +1 -0
  61. package/dist/constants/currencies/currencies.filters.js +10 -0
  62. package/dist/constants/currencies/currencies.filters.js.map +1 -0
  63. package/dist/constants/lang.d.ts +3 -0
  64. package/dist/constants/lang.d.ts.map +1 -0
  65. package/dist/constants/lang.js +3 -0
  66. package/dist/constants/lang.js.map +1 -0
  67. package/dist/index.d.ts +15 -0
  68. package/dist/index.d.ts.map +1 -0
  69. package/dist/index.js +15 -0
  70. package/dist/index.js.map +1 -0
  71. package/package.json +35 -0
@@ -0,0 +1,12 @@
1
+ export declare const AccountProviders: {
2
+ readonly COBRE_COL: "pr_col_cobre";
3
+ readonly COBRE_MEX: "pr_mex_cobre";
4
+ readonly COBRE_MEX2: "pr_mex_cobre2";
5
+ readonly COBRE_MEX3: "pr_mex_cobre3";
6
+ readonly COBRE_GLOBAL: "pr_global_cobre";
7
+ readonly COBRE_STABLE: "pr_stable_omnibus_cobre";
8
+ readonly COBRE_STABLE_PRIME: "pr_stable_prime_cobre";
9
+ readonly COBRE_USD: "pr_usa_cobre";
10
+ };
11
+ export type AccountProvider = typeof AccountProviders[keyof typeof AccountProviders];
12
+ //# sourceMappingURL=account-providers.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-providers.constants.d.ts","sourceRoot":"","sources":["../../../src/constants/accountProviders/account-providers.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;CASnB,CAAA;AAEV,MAAM,MAAM,eAAe,GAAG,OAAO,gBAAgB,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAA"}
@@ -0,0 +1,11 @@
1
+ export const AccountProviders = {
2
+ COBRE_COL: "pr_col_cobre",
3
+ COBRE_MEX: "pr_mex_cobre",
4
+ COBRE_MEX2: "pr_mex_cobre2",
5
+ COBRE_MEX3: "pr_mex_cobre3",
6
+ COBRE_GLOBAL: "pr_global_cobre",
7
+ COBRE_STABLE: "pr_stable_omnibus_cobre",
8
+ COBRE_STABLE_PRIME: "pr_stable_prime_cobre",
9
+ COBRE_USD: "pr_usa_cobre",
10
+ };
11
+ //# sourceMappingURL=account-providers.constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-providers.constants.js","sourceRoot":"","sources":["../../../src/constants/accountProviders/account-providers.constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,SAAS,EAAK,cAAc;IAC5B,SAAS,EAAK,cAAc;IAC5B,UAAU,EAAI,eAAe;IAC7B,UAAU,EAAI,eAAe;IAC7B,YAAY,EAAE,iBAAiB;IAC/B,YAAY,EAAE,yBAAyB;IACvC,kBAAkB,EAAE,uBAAuB;IAC3C,SAAS,EAAE,cAAc;CACjB,CAAA"}
@@ -0,0 +1,14 @@
1
+ import type { Country } from "../countries/countries.constants";
2
+ export declare const AccountTypes: {
3
+ readonly Savings: "ch";
4
+ readonly Checking: "cc";
5
+ readonly Clabe: "clabe";
6
+ readonly CobreBalance: "cobre_balance";
7
+ readonly CobreBalanceStable: "cobre_balance_stable";
8
+ readonly SPEICard: "spei_card";
9
+ };
10
+ export type AccountType = typeof AccountTypes[keyof typeof AccountTypes];
11
+ export declare const AccountTypesByGeo: Record<AccountType, {
12
+ geo: Country[];
13
+ }>;
14
+ //# sourceMappingURL=account-types.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-types.constants.d.ts","sourceRoot":"","sources":["../../../src/constants/accountTypes/account-types.constants.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAA;AAE/D,eAAO,MAAM,YAAY;;;;;;;CAOf,CAAA;AAEV,MAAM,MAAM,WAAW,GAAG,OAAO,YAAY,CAAC,MAAM,OAAO,YAAY,CAAC,CAAA;AAExE,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,WAAW,EAAE;IAAE,GAAG,EAAE,OAAO,EAAE,CAAA;CAAE,CAmBrE,CAAA"}
@@ -0,0 +1,30 @@
1
+ import { Countries } from "../countries/countries.constants";
2
+ export const AccountTypes = {
3
+ Savings: "ch",
4
+ Checking: "cc",
5
+ Clabe: "clabe",
6
+ CobreBalance: "cobre_balance",
7
+ CobreBalanceStable: "cobre_balance_stable",
8
+ SPEICard: "spei_card",
9
+ };
10
+ export const AccountTypesByGeo = {
11
+ [AccountTypes.Savings]: {
12
+ geo: [Countries.COL]
13
+ },
14
+ [AccountTypes.Checking]: {
15
+ geo: [Countries.COL]
16
+ },
17
+ [AccountTypes.Clabe]: {
18
+ geo: [Countries.MEX]
19
+ },
20
+ [AccountTypes.CobreBalance]: {
21
+ geo: [Countries.COL, Countries.MEX]
22
+ },
23
+ [AccountTypes.CobreBalanceStable]: {
24
+ geo: [Countries.COL]
25
+ },
26
+ [AccountTypes.SPEICard]: {
27
+ geo: [Countries.MEX]
28
+ },
29
+ };
30
+ //# sourceMappingURL=account-types.constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-types.constants.js","sourceRoot":"","sources":["../../../src/constants/accountTypes/account-types.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAA;AAG5D,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE,OAAO;IACd,YAAY,EAAE,eAAe;IAC7B,kBAAkB,EAAE,sBAAsB;IAC1C,QAAQ,EAAE,WAAW;CACb,CAAA;AAIV,MAAM,CAAC,MAAM,iBAAiB,GAA4C;IACxE,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE;QACtB,GAAG,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC;KACrB;IACD,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE;QACvB,GAAG,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC;KACrB;IACD,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE;QACpB,GAAG,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC;KACrB;IACD,CAAC,YAAY,CAAC,YAAY,CAAC,EAAE;QAC3B,GAAG,EAAE,CAAC,SAAS,CAAC,GAAG,EAAE,SAAS,CAAC,GAAG,CAAC;KACpC;IACD,CAAC,YAAY,CAAC,kBAAkB,CAAC,EAAE;QACjC,GAAG,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC;KACrB;IACD,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE;QACvB,GAAG,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC;KACrB;CACF,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { AccountType } from "./account-types.constants";
2
+ import type { Country } from "../countries/countries.constants";
3
+ export declare const getAccountTypesByGeo: (geo: Country) => AccountType[];
4
+ //# sourceMappingURL=account-types.filters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-types.filters.d.ts","sourceRoot":"","sources":["../../../src/constants/accountTypes/account-types.filters.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAA;AAE/D,eAAO,MAAM,oBAAoB,GAAI,KAAK,OAAO,KAAG,WAAW,EAM9D,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { AccountTypesByGeo } from "./account-types.constants";
2
+ export const getAccountTypesByGeo = (geo) => {
3
+ const objToEntries = Object.entries(AccountTypesByGeo);
4
+ const filteredEntries = objToEntries.filter(([, item]) => item.geo.includes(geo));
5
+ return filteredEntries.map(([type]) => type);
6
+ };
7
+ //# sourceMappingURL=account-types.filters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-types.filters.js","sourceRoot":"","sources":["../../../src/constants/accountTypes/account-types.filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAI7D,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,GAAY,EAAiB,EAAE;IAClE,MAAM,YAAY,GAAG,MAAM,CAAC,OAAO,CAAC,iBAAiB,CAAwC,CAAA;IAE7F,MAAM,eAAe,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAA;IAEjF,OAAO,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAA;AAC9C,CAAC,CAAA"}
@@ -0,0 +1,9 @@
1
+ import type { AccountType } from "./account-types.constants";
2
+ import type { Country } from "../countries/countries.constants";
3
+ export declare const getAccountTypeLabel: (key: AccountType | null | undefined, lang: string) => string | undefined;
4
+ export declare const getAccountTypesWithLabels: (lang: string, geo?: Country) => {
5
+ id: number;
6
+ label: string;
7
+ value: AccountType;
8
+ }[];
9
+ //# sourceMappingURL=account-types.labels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-types.labels.d.ts","sourceRoot":"","sources":["../../../src/constants/accountTypes/account-types.labels.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAE5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAA;AAO/D,eAAO,MAAM,mBAAmB,GAAI,KAAK,WAAW,GAAG,IAAI,GAAG,SAAS,EAAE,MAAM,MAAM,KAAG,MAAM,GAAG,SAMhG,CAAA;AAED,eAAO,MAAM,yBAAyB,GAAI,MAAM,MAAM,EAAE,MAAM,OAAO;;;;GASpE,CAAA"}
@@ -0,0 +1,22 @@
1
+ import { AccountTypes } from "./account-types.constants";
2
+ import { getAccountTypesByGeo } from "./account-types.filters";
3
+ import enLocale from "./locales/en.json";
4
+ import esMexLocale from "./locales/es-mex.json";
5
+ import { DEFAULT_ES_LOCALE } from "../lang";
6
+ const locales = { en: enLocale, "es-mex": esMexLocale };
7
+ export const getAccountTypeLabel = (key, lang) => {
8
+ if (!key)
9
+ return undefined;
10
+ const locale = locales[lang] ?? locales[DEFAULT_ES_LOCALE];
11
+ return locale.accountTypes[key];
12
+ };
13
+ export const getAccountTypesWithLabels = (lang, geo) => {
14
+ const keys = geo ? getAccountTypesByGeo(geo) : Object.values(AccountTypes);
15
+ const locale = locales[lang] ?? locales[DEFAULT_ES_LOCALE];
16
+ return keys.map((key, index) => ({
17
+ id: index + 1,
18
+ label: locale.accountTypes[key],
19
+ value: key,
20
+ }));
21
+ };
22
+ //# sourceMappingURL=account-types.labels.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-types.labels.js","sourceRoot":"","sources":["../../../src/constants/accountTypes/account-types.labels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAExD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAE9D,OAAO,QAAQ,MAAM,mBAAmB,CAAA;AACxC,OAAO,WAAW,MAAM,uBAAuB,CAAA;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAE3C,MAAM,OAAO,GAAuC,EAAE,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAA;AAE3F,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,GAAmC,EAAE,IAAY,EAAsB,EAAE;IAC3G,IAAI,CAAC,GAAG;QAAE,OAAO,SAAS,CAAA;IAE1B,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,OAAO,CAAC,iBAAiB,CAAE,CAAA;IAE3D,OAAO,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,CAAA;AACjC,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,IAAY,EAAE,GAAa,EAAE,EAAE;IACvE,MAAM,IAAI,GAAG,GAAG,CAAC,CAAC,CAAC,oBAAoB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAA;IAC1E,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,OAAO,CAAC,iBAAiB,CAAE,CAAA;IAE3D,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;QAC/B,EAAE,EAAE,KAAK,GAAG,CAAC;QACb,KAAK,EAAE,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC;QAC/B,KAAK,EAAE,GAAG;KACX,CAAC,CAAC,CAAA;AACL,CAAC,CAAA"}
@@ -0,0 +1,10 @@
1
+ {
2
+ "accountTypes": {
3
+ "ch": "Savings",
4
+ "cc": "Checkings",
5
+ "clabe": "CLABE",
6
+ "spei_card": "SPEI Card",
7
+ "cobre_balance": "Cobre Balance",
8
+ "cobre_balance_stable": "Cobre Balance Stable"
9
+ }
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "accountTypes": {
3
+ "ch": "Ahorros",
4
+ "cc": "Corriente",
5
+ "clabe": "CLABE",
6
+ "spei_card": "SPEI Card",
7
+ "cobre_balance": "Cobre Balance",
8
+ "cobre_balance_stable": "Cobre Balance Stable"
9
+ }
10
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=constants.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.test.d.ts","sourceRoot":"","sources":["../../src/constants/constants.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,53 @@
1
+ import { describe, it, expect } from "vitest";
2
+ import { AccountProviders } from "./accountProviders/account-providers.constants";
3
+ import { AccountTypes, AccountTypesByGeo } from "./accountTypes/account-types.constants";
4
+ import { CounterpartyTypes } from "./counterpartyTypes/counterparty-types.constants";
5
+ import { Countries } from "./countries/countries.constants";
6
+ import { Currencies } from "./currencies/currencies.constants";
7
+ import { DEFAULT_ES_LOCALE, DEFAULT_EN_LOCALE } from "./lang";
8
+ describe("AccountProviders", () => {
9
+ it("exports expected provider keys", () => {
10
+ expect(AccountProviders.COBRE_COL).toBe("pr_col_cobre");
11
+ expect(AccountProviders.COBRE_MEX).toBe("pr_mex_cobre");
12
+ });
13
+ });
14
+ describe("AccountTypes", () => {
15
+ it("exports expected account types", () => {
16
+ expect(AccountTypes.Savings).toBe("ch");
17
+ expect(AccountTypes.Clabe).toBe("clabe");
18
+ expect(AccountTypes.CobreBalance).toBe("cobre_balance");
19
+ });
20
+ it("maps account types to geos", () => {
21
+ expect(AccountTypesByGeo[AccountTypes.Savings].geo).toContain(Countries.COL);
22
+ expect(AccountTypesByGeo[AccountTypes.Clabe].geo).toContain(Countries.MEX);
23
+ });
24
+ });
25
+ describe("CounterpartyTypes", () => {
26
+ it("exports expected counterparty types", () => {
27
+ expect(CounterpartyTypes.Savings).toBe("ch");
28
+ expect(CounterpartyTypes.Clabe).toBe("clabe");
29
+ expect(CounterpartyTypes.USAIndividual).toBe("individual");
30
+ });
31
+ });
32
+ describe("Countries", () => {
33
+ it("exports expected country codes", () => {
34
+ expect(Countries.COL).toBe("col");
35
+ expect(Countries.MEX).toBe("mex");
36
+ expect(Countries.USA).toBe("usa");
37
+ expect(Countries.GLOBAL).toBe("global");
38
+ });
39
+ });
40
+ describe("Currencies", () => {
41
+ it("exports expected currency codes", () => {
42
+ expect(Currencies.COP).toBe("cop");
43
+ expect(Currencies.MXN).toBe("mxn");
44
+ expect(Currencies.USD).toBe("usd");
45
+ });
46
+ });
47
+ describe("lang", () => {
48
+ it("exports default locale constants", () => {
49
+ expect(DEFAULT_ES_LOCALE).toBe("es-mex");
50
+ expect(DEFAULT_EN_LOCALE).toBe("en");
51
+ });
52
+ });
53
+ //# sourceMappingURL=constants.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.test.js","sourceRoot":"","sources":["../../src/constants/constants.test.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,27 @@
1
+ import type { Country } from "../countries/countries.constants";
2
+ export declare const CounterpartyTypes: {
3
+ readonly Savings: "ch";
4
+ readonly Checking: "cc";
5
+ readonly R2P: "r2p";
6
+ readonly CobreBalance: "cobre_balance";
7
+ readonly DP: "dp";
8
+ readonly BreB: "breb_key";
9
+ readonly R2PBreB: "r2p_breb";
10
+ readonly BreBQR: "breb_qr";
11
+ readonly Clabe: "clabe";
12
+ readonly SPEICard: "spei_card";
13
+ readonly R2PSpei: "r2p_spei";
14
+ readonly USAIndividual: "individual";
15
+ readonly USABusiness: "business";
16
+ readonly GlobalDepositNP: "global_deposit_np";
17
+ readonly GlobalDepositLE: "global_deposit_le";
18
+ readonly NaturalPerson: "np";
19
+ readonly LegalEntity: "le";
20
+ readonly SPEIReturn: "mm_return";
21
+ };
22
+ export type CounterpartyType = typeof CounterpartyTypes[keyof typeof CounterpartyTypes];
23
+ export type CounterpartyTypeGeo = Country;
24
+ export declare const CounterpartyTypesByGeo: Record<CounterpartyType, {
25
+ geo: Country[];
26
+ }>;
27
+ //# sourceMappingURL=counterparty-types.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"counterparty-types.constants.d.ts","sourceRoot":"","sources":["../../../src/constants/counterpartyTypes/counterparty-types.constants.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAA;AAE/D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;CAmBpB,CAAA;AAEV,MAAM,MAAM,gBAAgB,GAAG,OAAO,iBAAiB,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAA;AAEvF,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAA;AAEzC,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,gBAAgB,EAAE;IAAE,GAAG,EAAE,OAAO,EAAE,CAAA;CAAE,CAmB/E,CAAA"}
@@ -0,0 +1,42 @@
1
+ import { Countries } from "../countries/countries.constants";
2
+ export const CounterpartyTypes = {
3
+ Savings: "ch",
4
+ Checking: "cc",
5
+ R2P: "r2p",
6
+ CobreBalance: "cobre_balance",
7
+ DP: "dp",
8
+ BreB: "breb_key",
9
+ R2PBreB: "r2p_breb",
10
+ BreBQR: "breb_qr",
11
+ Clabe: "clabe",
12
+ SPEICard: "spei_card",
13
+ R2PSpei: "r2p_spei",
14
+ USAIndividual: "individual",
15
+ USABusiness: "business",
16
+ GlobalDepositNP: "global_deposit_np",
17
+ GlobalDepositLE: "global_deposit_le",
18
+ NaturalPerson: "np",
19
+ LegalEntity: "le",
20
+ SPEIReturn: "mm_return",
21
+ };
22
+ export const CounterpartyTypesByGeo = {
23
+ [CounterpartyTypes.Savings]: { geo: [Countries.COL] },
24
+ [CounterpartyTypes.Checking]: { geo: [Countries.COL] },
25
+ [CounterpartyTypes.R2P]: { geo: [Countries.COL] },
26
+ [CounterpartyTypes.CobreBalance]: { geo: [Countries.COL] },
27
+ [CounterpartyTypes.DP]: { geo: [Countries.COL] },
28
+ [CounterpartyTypes.BreB]: { geo: [Countries.COL] },
29
+ [CounterpartyTypes.R2PBreB]: { geo: [Countries.COL] },
30
+ [CounterpartyTypes.BreBQR]: { geo: [Countries.COL] },
31
+ [CounterpartyTypes.Clabe]: { geo: [Countries.MEX] },
32
+ [CounterpartyTypes.SPEICard]: { geo: [Countries.MEX] },
33
+ [CounterpartyTypes.R2PSpei]: { geo: [Countries.MEX] },
34
+ [CounterpartyTypes.USAIndividual]: { geo: [Countries.USA] },
35
+ [CounterpartyTypes.USABusiness]: { geo: [Countries.USA] },
36
+ [CounterpartyTypes.GlobalDepositNP]: { geo: [Countries.GLOBAL] },
37
+ [CounterpartyTypes.GlobalDepositLE]: { geo: [Countries.GLOBAL] },
38
+ [CounterpartyTypes.NaturalPerson]: { geo: [] },
39
+ [CounterpartyTypes.LegalEntity]: { geo: [] },
40
+ [CounterpartyTypes.SPEIReturn]: { geo: [] },
41
+ };
42
+ //# sourceMappingURL=counterparty-types.constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"counterparty-types.constants.js","sourceRoot":"","sources":["../../../src/constants/counterpartyTypes/counterparty-types.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAA;AAG5D,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,IAAI;IACd,GAAG,EAAE,KAAK;IACV,YAAY,EAAE,eAAe;IAC7B,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,UAAU;IACnB,MAAM,EAAE,SAAS;IACjB,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,WAAW;IACrB,OAAO,EAAE,UAAU;IACnB,aAAa,EAAE,YAAY;IAC3B,WAAW,EAAE,UAAU;IACvB,eAAe,EAAE,mBAAmB;IACpC,eAAe,EAAE,mBAAmB;IACpC,aAAa,EAAE,IAAI;IACnB,WAAW,EAAE,IAAI;IACjB,UAAU,EAAE,WAAW;CACf,CAAA;AAMV,MAAM,CAAC,MAAM,sBAAsB,GAAiD;IAClF,CAAC,iBAAiB,CAAC,OAAO,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE;IACrD,CAAC,iBAAiB,CAAC,QAAQ,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE;IACtD,CAAC,iBAAiB,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE;IACjD,CAAC,iBAAiB,CAAC,YAAY,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE;IAC1D,CAAC,iBAAiB,CAAC,EAAE,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE;IAChD,CAAC,iBAAiB,CAAC,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE;IAClD,CAAC,iBAAiB,CAAC,OAAO,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE;IACrD,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE;IACpD,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE;IACnD,CAAC,iBAAiB,CAAC,QAAQ,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE;IACtD,CAAC,iBAAiB,CAAC,OAAO,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE;IACrD,CAAC,iBAAiB,CAAC,aAAa,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE;IAC3D,CAAC,iBAAiB,CAAC,WAAW,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE;IACzD,CAAC,iBAAiB,CAAC,eAAe,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE;IAChE,CAAC,iBAAiB,CAAC,eAAe,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE;IAChE,CAAC,iBAAiB,CAAC,aAAa,CAAC,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE;IAC9C,CAAC,iBAAiB,CAAC,WAAW,CAAC,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE;IAC5C,CAAC,iBAAiB,CAAC,UAAU,CAAC,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE;CAC5C,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { CounterpartyType } from "./counterparty-types.constants";
2
+ import type { Country } from "../countries/countries.constants";
3
+ export declare const getCounterpartyTypesByGeo: (geo: Country) => CounterpartyType[];
4
+ //# sourceMappingURL=counterparty-types.filters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"counterparty-types.filters.d.ts","sourceRoot":"","sources":["../../../src/constants/counterpartyTypes/counterparty-types.filters.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AACtE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAA;AAE/D,eAAO,MAAM,yBAAyB,GAAI,KAAK,OAAO,KAAG,gBAAgB,EAMxE,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { CounterpartyTypesByGeo } from "./counterparty-types.constants";
2
+ export const getCounterpartyTypesByGeo = (geo) => {
3
+ const objToEntries = Object.entries(CounterpartyTypesByGeo);
4
+ const filteredEntries = objToEntries.filter(([, item]) => item.geo.includes(geo));
5
+ return filteredEntries.map(([type]) => type);
6
+ };
7
+ //# sourceMappingURL=counterparty-types.filters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"counterparty-types.filters.js","sourceRoot":"","sources":["../../../src/constants/counterpartyTypes/counterparty-types.filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAA;AAIvE,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,GAAY,EAAsB,EAAE;IAC5E,MAAM,YAAY,GAAG,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAA6C,CAAA;IAEvG,MAAM,eAAe,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAA;IAEjF,OAAO,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAA;AAC9C,CAAC,CAAA"}
@@ -0,0 +1,8 @@
1
+ import type { CounterpartyType, CounterpartyTypeGeo } from "./counterparty-types.constants";
2
+ export declare const getCounterpartyTypeLabel: (key: CounterpartyType | null | undefined, lang: string) => string | undefined;
3
+ export declare const getCounterpartyTypesWithLabels: (lang: string, geo?: CounterpartyTypeGeo) => {
4
+ id: number;
5
+ label: string;
6
+ value: CounterpartyType;
7
+ }[];
8
+ //# sourceMappingURL=counterparty-types.labels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"counterparty-types.labels.d.ts","sourceRoot":"","sources":["../../../src/constants/counterpartyTypes/counterparty-types.labels.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAA;AAQ3F,eAAO,MAAM,wBAAwB,GACnC,KAAK,gBAAgB,GAAG,IAAI,GAAG,SAAS,EACxC,MAAM,MAAM,KACX,MAAM,GAAG,SAMX,CAAA;AAED,eAAO,MAAM,8BAA8B,GAAI,MAAM,MAAM,EAAE,MAAM,mBAAmB;;;;GASrF,CAAA"}
@@ -0,0 +1,22 @@
1
+ import { CounterpartyTypes } from "./counterparty-types.constants";
2
+ import { getCounterpartyTypesByGeo } from "./counterparty-types.filters";
3
+ import enLocale from "./locales/en.json";
4
+ import esMexLocale from "./locales/es-mex.json";
5
+ import { DEFAULT_ES_LOCALE } from "../lang";
6
+ const locales = { en: enLocale, "es-mex": esMexLocale };
7
+ export const getCounterpartyTypeLabel = (key, lang) => {
8
+ if (!key)
9
+ return undefined;
10
+ const locale = locales[lang] ?? locales[DEFAULT_ES_LOCALE];
11
+ return locale.counterpartyTypes[key];
12
+ };
13
+ export const getCounterpartyTypesWithLabels = (lang, geo) => {
14
+ const keys = geo ? getCounterpartyTypesByGeo(geo) : Object.values(CounterpartyTypes);
15
+ const locale = locales[lang] ?? locales[DEFAULT_ES_LOCALE];
16
+ return keys.map((key, index) => ({
17
+ id: index + 1,
18
+ label: locale.counterpartyTypes[key],
19
+ value: key,
20
+ }));
21
+ };
22
+ //# sourceMappingURL=counterparty-types.labels.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"counterparty-types.labels.js","sourceRoot":"","sources":["../../../src/constants/counterpartyTypes/counterparty-types.labels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAElE,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAA;AACxE,OAAO,QAAQ,MAAM,mBAAmB,CAAA;AACxC,OAAO,WAAW,MAAM,uBAAuB,CAAA;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAE3C,MAAM,OAAO,GAAuC,EAAE,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAA;AAE3F,MAAM,CAAC,MAAM,wBAAwB,GAAG,CACtC,GAAwC,EACxC,IAAY,EACQ,EAAE;IACtB,IAAI,CAAC,GAAG;QAAE,OAAO,SAAS,CAAA;IAE1B,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,OAAO,CAAC,iBAAiB,CAAE,CAAA;IAE3D,OAAO,MAAM,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAA;AACtC,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,IAAY,EAAE,GAAyB,EAAE,EAAE;IACxF,MAAM,IAAI,GAAG,GAAG,CAAC,CAAC,CAAC,yBAAyB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAA;IACpF,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,OAAO,CAAC,iBAAiB,CAAE,CAAA;IAE3D,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;QAC/B,EAAE,EAAE,KAAK,GAAG,CAAC;QACb,KAAK,EAAE,MAAM,CAAC,iBAAiB,CAAC,GAAG,CAAC;QACpC,KAAK,EAAE,GAAG;KACX,CAAC,CAAC,CAAA;AACL,CAAC,CAAA"}
@@ -0,0 +1,22 @@
1
+ {
2
+ "counterpartyTypes": {
3
+ "ch": "Savings",
4
+ "cc": "Checkings",
5
+ "r2p": "R2P",
6
+ "cobre_balance": "Cobre Balance",
7
+ "dp": "Electronic Deposit",
8
+ "breb_key": "Bre-B Key",
9
+ "r2p_breb": "R2P Bre-B",
10
+ "breb_qr": "Bre-B QR",
11
+ "clabe": "CLABE",
12
+ "spei_card": "SPEI Card",
13
+ "r2p_spei": "R2P SPEI",
14
+ "individual": "USA Banking - Individual",
15
+ "business": "USA Banking - Business",
16
+ "global_deposit_np": "Global Deposit - Natural person",
17
+ "global_deposit_le": "Global Deposit - Legal entity",
18
+ "np": "Natural person",
19
+ "le": "Legal entity",
20
+ "mm_return": "SPEI return"
21
+ }
22
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "counterpartyTypes": {
3
+ "ch": "Ahorros",
4
+ "cc": "Corriente",
5
+ "r2p": "R2P",
6
+ "cobre_balance": "Cobre Balance",
7
+ "dp": "Deposito Electrónico",
8
+ "breb_key": "Llave Bre-B",
9
+ "r2p_breb": "Recaudo Bre-B",
10
+ "breb_qr": "Bre-B QR",
11
+ "clabe": "CLABE",
12
+ "spei_card": "SPEI Card",
13
+ "r2p_spei": "Recaudo SPEI",
14
+ "individual": "Bancaria USA - Individual",
15
+ "business": "Bancaria USA - Empresa",
16
+ "global_deposit_np": "Deposito Global - Persona natural",
17
+ "global_deposit_le": "Deposito Global - Persona jurídica",
18
+ "np": "Persona natural",
19
+ "le": "Persona jurídica",
20
+ "mm_return": "Retorno SPEI"
21
+ }
22
+ }
@@ -0,0 +1,8 @@
1
+ export declare const Countries: {
2
+ readonly COL: "col";
3
+ readonly MEX: "mex";
4
+ readonly USA: "usa";
5
+ readonly GLOBAL: "global";
6
+ };
7
+ export type Country = typeof Countries[keyof typeof Countries];
8
+ //# sourceMappingURL=countries.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"countries.constants.d.ts","sourceRoot":"","sources":["../../../src/constants/countries/countries.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS;;;;;CAKZ,CAAA;AAEV,MAAM,MAAM,OAAO,GAAG,OAAO,SAAS,CAAC,MAAM,OAAO,SAAS,CAAC,CAAA"}
@@ -0,0 +1,7 @@
1
+ export const Countries = {
2
+ COL: "col",
3
+ MEX: "mex",
4
+ USA: "usa",
5
+ GLOBAL: "global",
6
+ };
7
+ //# sourceMappingURL=countries.constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"countries.constants.js","sourceRoot":"","sources":["../../../src/constants/countries/countries.constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,MAAM,EAAE,QAAQ;CACR,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { Country } from "./countries.constants";
2
+ export type CountryMetadata = Record<string, unknown>;
3
+ export declare const CountriesData: Record<Country, CountryMetadata>;
4
+ //# sourceMappingURL=countries.data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"countries.data.d.ts","sourceRoot":"","sources":["../../../src/constants/countries/countries.data.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAEpD,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAErD,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,OAAO,EAAE,eAAe,CAK1D,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { Countries } from "./countries.constants";
2
+ export const CountriesData = {
3
+ [Countries.COL]: {},
4
+ [Countries.MEX]: {},
5
+ [Countries.GLOBAL]: {},
6
+ [Countries.USA]: {},
7
+ };
8
+ //# sourceMappingURL=countries.data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"countries.data.js","sourceRoot":"","sources":["../../../src/constants/countries/countries.data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAKjD,MAAM,CAAC,MAAM,aAAa,GAAqC;IAC7D,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,EAAE;IACnB,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,EAAE;IACnB,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,EAAE;IACtB,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,EAAE;CACpB,CAAA"}
@@ -0,0 +1,8 @@
1
+ import type { Country } from "./countries.constants";
2
+ export interface CountryRecord {
3
+ code: Country;
4
+ name: string;
5
+ }
6
+ export declare const getCountryLabel: (code: Country, lang: string) => string;
7
+ export declare const getCountriesWithLabels: (lang: string) => CountryRecord[];
8
+ //# sourceMappingURL=countries.labels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"countries.labels.d.ts","sourceRoot":"","sources":["../../../src/constants/countries/countries.labels.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAOpD,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,OAAO,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;CACb;AAED,eAAO,MAAM,eAAe,GAAI,MAAM,OAAO,EAAE,MAAM,MAAM,KAAG,MAI7D,CAAA;AAED,eAAO,MAAM,sBAAsB,GAAI,MAAM,MAAM,KAAG,aAAa,EAOlE,CAAA"}
@@ -0,0 +1,17 @@
1
+ import { Countries } from "./countries.constants";
2
+ import enLocale from "./locales/en.json";
3
+ import esMexLocale from "./locales/es-mex.json";
4
+ import { DEFAULT_ES_LOCALE } from "../lang";
5
+ const locales = { en: enLocale, "es-mex": esMexLocale };
6
+ export const getCountryLabel = (code, lang) => {
7
+ const locale = locales[lang] ?? locales[DEFAULT_ES_LOCALE];
8
+ return locale.countries[code];
9
+ };
10
+ export const getCountriesWithLabels = (lang) => {
11
+ const locale = locales[lang] ?? locales[DEFAULT_ES_LOCALE];
12
+ return Object.values(Countries).map(code => ({
13
+ code,
14
+ name: locale.countries[code],
15
+ }));
16
+ };
17
+ //# sourceMappingURL=countries.labels.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"countries.labels.js","sourceRoot":"","sources":["../../../src/constants/countries/countries.labels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,OAAO,QAAQ,MAAM,mBAAmB,CAAA;AACxC,OAAO,WAAW,MAAM,uBAAuB,CAAA;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAE3C,MAAM,OAAO,GAAuC,EAAE,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAA;AAO3F,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,IAAa,EAAE,IAAY,EAAU,EAAE;IACrE,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,OAAO,CAAC,iBAAiB,CAAE,CAAA;IAE3D,OAAO,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA;AAC/B,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,IAAY,EAAmB,EAAE;IACtE,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,OAAO,CAAC,iBAAiB,CAAE,CAAA;IAE3D,OAAO,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAC3C,IAAI;QACJ,IAAI,EAAE,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC;KAC7B,CAAC,CAAC,CAAA;AACL,CAAC,CAAA"}
@@ -0,0 +1,8 @@
1
+ {
2
+ "countries": {
3
+ "col": "Colombia",
4
+ "mex": "Mexico",
5
+ "global": "Global",
6
+ "usa": "United States"
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "countries": {
3
+ "col": "Colombia",
4
+ "mex": "México",
5
+ "global": "Global",
6
+ "usa": "Estados Unidos"
7
+ }
8
+ }
@@ -0,0 +1,12 @@
1
+ export declare const Currencies: {
2
+ readonly COP: "cop";
3
+ readonly MXN: "mxn";
4
+ readonly USD: "usd";
5
+ readonly COPStable: "cop_stable";
6
+ readonly USDStable: "usd_stable";
7
+ readonly COPCO: "copco";
8
+ readonly USDT: "usdt";
9
+ readonly USDC: "usdc";
10
+ };
11
+ export type Currency = typeof Currencies[keyof typeof Currencies];
12
+ //# sourceMappingURL=currencies.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"currencies.constants.d.ts","sourceRoot":"","sources":["../../../src/constants/currencies/currencies.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;CASb,CAAA;AAEV,MAAM,MAAM,QAAQ,GAAG,OAAO,UAAU,CAAC,MAAM,OAAO,UAAU,CAAC,CAAA"}
@@ -0,0 +1,11 @@
1
+ export const Currencies = {
2
+ COP: "cop",
3
+ MXN: "mxn",
4
+ USD: "usd",
5
+ COPStable: "cop_stable",
6
+ USDStable: "usd_stable",
7
+ COPCO: "copco",
8
+ USDT: "usdt",
9
+ USDC: "usdc",
10
+ };
11
+ //# sourceMappingURL=currencies.constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"currencies.constants.js","sourceRoot":"","sources":["../../../src/constants/currencies/currencies.constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,SAAS,EAAE,YAAY;IACvB,SAAS,EAAE,YAAY;IACvB,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;CACJ,CAAA"}
@@ -0,0 +1,60 @@
1
+ export declare const CurrencyData: readonly [{
2
+ readonly id: 1;
3
+ readonly label: "COP";
4
+ readonly code: "cop";
5
+ readonly geo: "col";
6
+ readonly minAmount: 1;
7
+ readonly type: "fiat";
8
+ }, {
9
+ readonly id: 2;
10
+ readonly label: "MXN";
11
+ readonly code: "mxn";
12
+ readonly geo: "mex";
13
+ readonly minAmount: 0.01;
14
+ readonly type: "fiat";
15
+ }, {
16
+ readonly id: 3;
17
+ readonly label: "USD";
18
+ readonly code: "usd";
19
+ readonly geo: "usa";
20
+ readonly minAmount: 100;
21
+ readonly type: "fiat";
22
+ }, {
23
+ readonly id: 4;
24
+ readonly label: "COP Stable";
25
+ readonly code: "cop_stable";
26
+ readonly geo: "col";
27
+ readonly minAmount: 1;
28
+ readonly type: "stable";
29
+ }, {
30
+ readonly id: 5;
31
+ readonly label: "USD Stable";
32
+ readonly code: "usd_stable";
33
+ readonly geo: "global";
34
+ readonly minAmount: 1;
35
+ readonly type: "stable";
36
+ }, {
37
+ readonly id: 6;
38
+ readonly label: "USD (USDT)";
39
+ readonly code: "usdt";
40
+ readonly geo: "usa";
41
+ readonly minAmount: 1;
42
+ readonly type: "stablecoin";
43
+ }, {
44
+ readonly id: 7;
45
+ readonly label: "USD (USDC)";
46
+ readonly code: "usdc";
47
+ readonly geo: "usa";
48
+ readonly minAmount: 1;
49
+ readonly type: "stablecoin";
50
+ }, {
51
+ readonly id: 8;
52
+ readonly label: "COP (COPCO)";
53
+ readonly code: "copco";
54
+ readonly geo: "col";
55
+ readonly minAmount: 1;
56
+ readonly type: "stablecoin";
57
+ }];
58
+ export type CurrencyType = (typeof CurrencyData)[number]["type"];
59
+ export type CurrencyRecord = (typeof CurrencyData)[number];
60
+ //# sourceMappingURL=currencies.data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"currencies.data.d.ts","sourceRoot":"","sources":["../../../src/constants/currencies/currencies.data.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiEf,CAAA;AAEV,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAA;AAChE,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAA"}
@@ -0,0 +1,69 @@
1
+ import { Countries } from "../countries/countries.constants";
2
+ import { Currencies } from "./currencies.constants";
3
+ export const CurrencyData = [
4
+ {
5
+ id: 1,
6
+ label: "COP",
7
+ code: Currencies.COP,
8
+ geo: Countries.COL,
9
+ minAmount: 1,
10
+ type: "fiat",
11
+ },
12
+ {
13
+ id: 2,
14
+ label: "MXN",
15
+ code: Currencies.MXN,
16
+ geo: Countries.MEX,
17
+ minAmount: 0.01,
18
+ type: "fiat",
19
+ },
20
+ {
21
+ id: 3,
22
+ label: "USD",
23
+ code: Currencies.USD,
24
+ geo: Countries.USA,
25
+ minAmount: 100,
26
+ type: "fiat",
27
+ },
28
+ {
29
+ id: 4,
30
+ label: "COP Stable",
31
+ code: Currencies.COPStable,
32
+ geo: Countries.COL,
33
+ minAmount: 1,
34
+ type: "stable",
35
+ },
36
+ {
37
+ id: 5,
38
+ label: "USD Stable",
39
+ code: Currencies.USDStable,
40
+ geo: Countries.GLOBAL,
41
+ minAmount: 1,
42
+ type: "stable",
43
+ },
44
+ {
45
+ id: 6,
46
+ label: "USD (USDT)",
47
+ code: Currencies.USDT,
48
+ geo: Countries.USA,
49
+ minAmount: 1,
50
+ type: "stablecoin",
51
+ },
52
+ {
53
+ id: 7,
54
+ label: "USD (USDC)",
55
+ code: Currencies.USDC,
56
+ geo: Countries.USA,
57
+ minAmount: 1,
58
+ type: "stablecoin",
59
+ },
60
+ {
61
+ id: 8,
62
+ label: "COP (COPCO)",
63
+ code: Currencies.COPCO,
64
+ geo: Countries.COL,
65
+ minAmount: 1,
66
+ type: "stablecoin",
67
+ },
68
+ ];
69
+ //# sourceMappingURL=currencies.data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"currencies.data.js","sourceRoot":"","sources":["../../../src/constants/currencies/currencies.data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAA;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAEnD,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B;QACE,EAAE,EAAE,CAAC;QACL,KAAK,EAAE,KAAK;QACZ,IAAI,EAAE,UAAU,CAAC,GAAG;QACpB,GAAG,EAAE,SAAS,CAAC,GAAG;QAClB,SAAS,EAAE,CAAC;QACZ,IAAI,EAAE,MAAM;KACb;IACD;QACE,EAAE,EAAE,CAAC;QACL,KAAK,EAAE,KAAK;QACZ,IAAI,EAAE,UAAU,CAAC,GAAG;QACpB,GAAG,EAAE,SAAS,CAAC,GAAG;QAClB,SAAS,EAAE,IAAI;QACf,IAAI,EAAE,MAAM;KACb;IACD;QACE,EAAE,EAAE,CAAC;QACL,KAAK,EAAE,KAAK;QACZ,IAAI,EAAE,UAAU,CAAC,GAAG;QACpB,GAAG,EAAE,SAAS,CAAC,GAAG;QAClB,SAAS,EAAE,GAAG;QACd,IAAI,EAAE,MAAM;KACb;IACD;QACE,EAAE,EAAE,CAAC;QACL,KAAK,EAAE,YAAY;QACnB,IAAI,EAAE,UAAU,CAAC,SAAS;QAC1B,GAAG,EAAE,SAAS,CAAC,GAAG;QAClB,SAAS,EAAE,CAAC;QACZ,IAAI,EAAE,QAAQ;KACf;IACD;QACE,EAAE,EAAE,CAAC;QACL,KAAK,EAAE,YAAY;QACnB,IAAI,EAAE,UAAU,CAAC,SAAS;QAC1B,GAAG,EAAE,SAAS,CAAC,MAAM;QACrB,SAAS,EAAE,CAAC;QACZ,IAAI,EAAE,QAAQ;KACf;IACD;QACE,EAAE,EAAE,CAAC;QACL,KAAK,EAAE,YAAY;QACnB,IAAI,EAAE,UAAU,CAAC,IAAI;QACrB,GAAG,EAAE,SAAS,CAAC,GAAG;QAClB,SAAS,EAAE,CAAC;QACZ,IAAI,EAAE,YAAY;KACnB;IACD;QACE,EAAE,EAAE,CAAC;QACL,KAAK,EAAE,YAAY;QACnB,IAAI,EAAE,UAAU,CAAC,IAAI;QACrB,GAAG,EAAE,SAAS,CAAC,GAAG;QAClB,SAAS,EAAE,CAAC;QACZ,IAAI,EAAE,YAAY;KACnB;IACD;QACE,EAAE,EAAE,CAAC;QACL,KAAK,EAAE,aAAa;QACpB,IAAI,EAAE,UAAU,CAAC,KAAK;QACtB,GAAG,EAAE,SAAS,CAAC,GAAG;QAClB,SAAS,EAAE,CAAC;QACZ,IAAI,EAAE,YAAY;KACnB;CACO,CAAA"}
@@ -0,0 +1,61 @@
1
+ import { type CurrencyType, type CurrencyRecord } from "./currencies.data";
2
+ import { Currency } from "./currencies.constants";
3
+ export declare const getCurrenciesByType: (...types: CurrencyType[]) => ({
4
+ readonly id: 1;
5
+ readonly label: "COP";
6
+ readonly code: "cop";
7
+ readonly geo: "col";
8
+ readonly minAmount: 1;
9
+ readonly type: "fiat";
10
+ } | {
11
+ readonly id: 2;
12
+ readonly label: "MXN";
13
+ readonly code: "mxn";
14
+ readonly geo: "mex";
15
+ readonly minAmount: 0.01;
16
+ readonly type: "fiat";
17
+ } | {
18
+ readonly id: 3;
19
+ readonly label: "USD";
20
+ readonly code: "usd";
21
+ readonly geo: "usa";
22
+ readonly minAmount: 100;
23
+ readonly type: "fiat";
24
+ } | {
25
+ readonly id: 4;
26
+ readonly label: "COP Stable";
27
+ readonly code: "cop_stable";
28
+ readonly geo: "col";
29
+ readonly minAmount: 1;
30
+ readonly type: "stable";
31
+ } | {
32
+ readonly id: 5;
33
+ readonly label: "USD Stable";
34
+ readonly code: "usd_stable";
35
+ readonly geo: "global";
36
+ readonly minAmount: 1;
37
+ readonly type: "stable";
38
+ } | {
39
+ readonly id: 6;
40
+ readonly label: "USD (USDT)";
41
+ readonly code: "usdt";
42
+ readonly geo: "usa";
43
+ readonly minAmount: 1;
44
+ readonly type: "stablecoin";
45
+ } | {
46
+ readonly id: 7;
47
+ readonly label: "USD (USDC)";
48
+ readonly code: "usdc";
49
+ readonly geo: "usa";
50
+ readonly minAmount: 1;
51
+ readonly type: "stablecoin";
52
+ } | {
53
+ readonly id: 8;
54
+ readonly label: "COP (COPCO)";
55
+ readonly code: "copco";
56
+ readonly geo: "col";
57
+ readonly minAmount: 1;
58
+ readonly type: "stablecoin";
59
+ })[];
60
+ export declare const getCurrencyByCode: (code: Currency) => CurrencyRecord | undefined;
61
+ //# sourceMappingURL=currencies.filters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"currencies.filters.d.ts","sourceRoot":"","sources":["../../../src/constants/currencies/currencies.filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACxF,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AAEjD,eAAO,MAAM,mBAAmB,GAAI,GAAG,OAAO,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAI3D,CAAA;AAED,eAAO,MAAM,iBAAiB,GAAI,MAAM,QAAQ,KACM,cAAc,GAAG,SACtE,CAAA"}
@@ -0,0 +1,10 @@
1
+ import { CurrencyData } from "./currencies.data";
2
+ export const getCurrenciesByType = (...types) => {
3
+ if (types.length === 0)
4
+ return [...CurrencyData];
5
+ return CurrencyData.filter((c) => types.includes(c.type));
6
+ };
7
+ export const getCurrencyByCode = (code) => {
8
+ return CurrencyData.find((c) => c.code === code);
9
+ };
10
+ //# sourceMappingURL=currencies.filters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"currencies.filters.js","sourceRoot":"","sources":["../../../src/constants/currencies/currencies.filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAA0C,MAAM,mBAAmB,CAAA;AAGxF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,GAAG,KAAqB,EAAE,EAAE;IAC9D,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,CAAC,GAAG,YAAY,CAAC,CAAA;IAEhD,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAqB,CAAA;AAC/E,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,IAAc,EAAE,EAAE;IAClD,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAA+B,CAAA;AAChF,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare const DEFAULT_ES_LOCALE = "es-mex";
2
+ export declare const DEFAULT_EN_LOCALE = "en";
3
+ //# sourceMappingURL=lang.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lang.d.ts","sourceRoot":"","sources":["../../src/constants/lang.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,WAAW,CAAA;AAEzC,eAAO,MAAM,iBAAiB,OAAO,CAAA"}
@@ -0,0 +1,3 @@
1
+ export const DEFAULT_ES_LOCALE = "es-mex";
2
+ export const DEFAULT_EN_LOCALE = "en";
3
+ //# sourceMappingURL=lang.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lang.js","sourceRoot":"","sources":["../../src/constants/lang.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iBAAiB,GAAG,QAAQ,CAAA;AAEzC,MAAM,CAAC,MAAM,iBAAiB,GAAG,IAAI,CAAA"}
@@ -0,0 +1,15 @@
1
+ export * from "./constants/accountProviders/account-providers.constants";
2
+ export * from "./constants/accountTypes/account-types.constants";
3
+ export * from "./constants/accountTypes/account-types.filters";
4
+ export * from "./constants/accountTypes/account-types.labels";
5
+ export * from "./constants/counterpartyTypes/counterparty-types.constants";
6
+ export * from "./constants/counterpartyTypes/counterparty-types.filters";
7
+ export * from "./constants/counterpartyTypes/counterparty-types.labels";
8
+ export * from "./constants/countries/countries.constants";
9
+ export * from "./constants/countries/countries.data";
10
+ export * from "./constants/countries/countries.labels";
11
+ export * from "./constants/currencies/currencies.constants";
12
+ export * from "./constants/currencies/currencies.data";
13
+ export * from "./constants/currencies/currencies.filters";
14
+ export * from "./constants/lang";
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0DAA0D,CAAA;AACxE,cAAc,kDAAkD,CAAA;AAChE,cAAc,gDAAgD,CAAA;AAC9D,cAAc,+CAA+C,CAAA;AAC7D,cAAc,4DAA4D,CAAA;AAC1E,cAAc,0DAA0D,CAAA;AACxE,cAAc,yDAAyD,CAAA;AACvE,cAAc,2CAA2C,CAAA;AACzD,cAAc,sCAAsC,CAAA;AACpD,cAAc,wCAAwC,CAAA;AACtD,cAAc,6CAA6C,CAAA;AAC3D,cAAc,wCAAwC,CAAA;AACtD,cAAc,2CAA2C,CAAA;AACzD,cAAc,kBAAkB,CAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,15 @@
1
+ export * from "./constants/accountProviders/account-providers.constants";
2
+ export * from "./constants/accountTypes/account-types.constants";
3
+ export * from "./constants/accountTypes/account-types.filters";
4
+ export * from "./constants/accountTypes/account-types.labels";
5
+ export * from "./constants/counterpartyTypes/counterparty-types.constants";
6
+ export * from "./constants/counterpartyTypes/counterparty-types.filters";
7
+ export * from "./constants/counterpartyTypes/counterparty-types.labels";
8
+ export * from "./constants/countries/countries.constants";
9
+ export * from "./constants/countries/countries.data";
10
+ export * from "./constants/countries/countries.labels";
11
+ export * from "./constants/currencies/currencies.constants";
12
+ export * from "./constants/currencies/currencies.data";
13
+ export * from "./constants/currencies/currencies.filters";
14
+ export * from "./constants/lang";
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0DAA0D,CAAA;AACxE,cAAc,kDAAkD,CAAA;AAChE,cAAc,gDAAgD,CAAA;AAC9D,cAAc,+CAA+C,CAAA;AAC7D,cAAc,4DAA4D,CAAA;AAC1E,cAAc,0DAA0D,CAAA;AACxE,cAAc,yDAAyD,CAAA;AACvE,cAAc,2CAA2C,CAAA;AACzD,cAAc,sCAAsC,CAAA;AACpD,cAAc,wCAAwC,CAAA;AACtD,cAAc,6CAA6C,CAAA;AAC3D,cAAc,wCAAwC,CAAA;AACtD,cAAc,2CAA2C,CAAA;AACzD,cAAc,kBAAkB,CAAA"}
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "@cobre-npm/library-portal-core",
3
+ "version": "0.1.2",
4
+ "description": "Shared configurations and resources for Portal MFEs",
5
+ "main": "./dist/index.js",
6
+ "types": "./dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "default": "./dist/index.js"
11
+ }
12
+ },
13
+ "files": [
14
+ "dist"
15
+ ],
16
+ "scripts": {
17
+ "build": "tsc",
18
+ "lint": "eslint . --fix",
19
+ "test": "vitest run",
20
+ "publish:prod": "npm publish"
21
+ },
22
+ "type": "module",
23
+ "license": "ISC",
24
+ "packageManager": "pnpm@10.27.0",
25
+ "devDependencies": {
26
+ "@eslint/js": "^9.0.0",
27
+ "@typescript-eslint/eslint-plugin": "^8.0.0",
28
+ "@typescript-eslint/parser": "^8.0.0",
29
+ "eslint": "^9.0.0",
30
+ "eslint-plugin-vue": "^9.0.0",
31
+ "typescript": "^5.7.0",
32
+ "vitest": "^4.1.5",
33
+ "vue-eslint-parser": "^9.0.0"
34
+ }
35
+ }