mp-front-cli 0.0.131 → 0.0.133

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.
@@ -1 +1 @@
1
- {"version":3,"file":"error-catalog-enrollment.d.ts","sourceRoot":"","sources":["../../../../src/core/errors/enrollment/error-catalog-enrollment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAE9C,eAAO,MAAM,sBAAsB,EAAE;IACnC,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAA;CA8UnC,CAAA"}
1
+ {"version":3,"file":"error-catalog-enrollment.d.ts","sourceRoot":"","sources":["../../../../src/core/errors/enrollment/error-catalog-enrollment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAE9C,eAAO,MAAM,sBAAsB,EAAE;IACnC,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAA;CAqVnC,CAAA"}
@@ -1,4 +1,5 @@
1
- const e = {
1
+ import e from "i18next";
2
+ const o = {
2
3
  calculator: {
3
4
  "SCORE-CLIENTREJECTED-01": {
4
5
  title: "Cliente no aprobado",
@@ -206,7 +207,7 @@ const e = {
206
207
  message: "Error de servicio"
207
208
  }
208
209
  }
209
- }, o = {
210
+ }, a = {
210
211
  enrollment: {
211
212
  "ENROLLMENT-INVALIDCONFIGURATION-0000": {
212
213
  title: "Configuración no correspondiente",
@@ -395,9 +396,17 @@ const e = {
395
396
  "ENROLLMENT-THEREISNTIMEI-0048": {
396
397
  title: "Contacta con el equipo de soporte",
397
398
  message: "El IMEI / Núm. de serie especificado no existe."
399
+ },
400
+ "ENROLLMENT-LOANBALANCE-0062": {
401
+ title: "Contacta con el equipo de soporte",
402
+ message: "Por favor comunícate con mesa de ayuda, ID:ENROLLMENT-LOANBALANCE-0062"
403
+ },
404
+ "ENROLLMENT-USED-IMEI-0001": {
405
+ title: "Validación de IMEI",
406
+ message: "No puedes usar este IMEI nuevamente"
398
407
  }
399
408
  }
400
- }, a = {
409
+ }, r = {
401
410
  helpdesk: {
402
411
  "PF-CANCEL-APPLICATION-GENERIC-ERROR-001": {
403
412
  title: "Error",
@@ -436,7 +445,7 @@ const e = {
436
445
  message: "Favor de contactar a soporte"
437
446
  }
438
447
  }
439
- }, r = {
448
+ }, t = {
440
449
  errors: {
441
450
  default: {
442
451
  title: "No pudimos cargar alguno de los datos solicitados.",
@@ -467,9 +476,9 @@ const e = {
467
476
  message: "Es necesario asignar una clave de vendedor al usuario. Por favor comunícate con nuestra mesa de ayuda para solucionar el problema."
468
477
  },
469
478
  //Calculator & Apartadito
470
- ...e,
479
+ ...o,
471
480
  //#region helpdesk
472
- ...a,
481
+ ...r,
473
482
  //JORNADA
474
483
  "JOURNEY-INVALIDATEDATA-01": {
475
484
  title: "Por favor verifique su estructura y los valores de sus atributos.",
@@ -664,7 +673,7 @@ const e = {
664
673
  message: "Por favor ingresa otro número de teléfono"
665
674
  },
666
675
  //ENROLLMENT
667
- ...o.enrollment,
676
+ ...a.enrollment,
668
677
  //PERSONAL REFERENCES
669
678
  "PERSONALREFERENCE-ACTIVECREDITSEXCEPTION-01": {
670
679
  title: "Intentar con otra referencia",
@@ -717,7 +726,26 @@ const e = {
717
726
  message: "Por favor comunícate con mesa de ayuda"
718
727
  }
719
728
  }
729
+ }, i = {
730
+ es: {
731
+ translation: {
732
+ ...t
733
+ }
734
+ }
720
735
  };
736
+ e.init({
737
+ resources: i,
738
+ lng: "es",
739
+ // language to use, more information here: https://www.i18next.com/overview/configuration-options#languages-namespaces-resources
740
+ // you can use the i18n.changeLanguage function to change the language manually: https://www.i18next.com/overview/api#changelanguage
741
+ // if you're using a language detector, do not define the lng option
742
+ supportedLngs: ["es", "en"],
743
+ interpolation: {
744
+ escapeValue: !1
745
+ // react already safes from xss
746
+ },
747
+ debug: !1
748
+ });
721
749
  export {
722
- r as t
750
+ t
723
751
  };
@@ -188,6 +188,14 @@ declare const translation: {
188
188
  title: string;
189
189
  message: string;
190
190
  };
191
+ "ENROLLMENT-LOANBALANCE-0062": {
192
+ title: string;
193
+ message: string;
194
+ };
195
+ "ENROLLMENT-USED-IMEI-0001": {
196
+ title: string;
197
+ message: string;
198
+ };
191
199
  };
192
200
  };
193
201
  export default translation;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lang/common/errors/enrollment/es_MX/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqNhB,CAAA;AAED,eAAe,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lang/common/errors/enrollment/es_MX/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8NhB,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -236,6 +236,14 @@ declare const translation: {
236
236
  title: string;
237
237
  message: string;
238
238
  };
239
+ "ENROLLMENT-LOANBALANCE-0062": {
240
+ title: string;
241
+ message: string;
242
+ };
243
+ "ENROLLMENT-USED-IMEI-0001": {
244
+ title: string;
245
+ message: string;
246
+ };
239
247
  "JOURNEY-INVALIDATEDATA-01": {
240
248
  title: string;
241
249
  message: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lang/common/errors/es_MX/index.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4ShB,CAAA;AAED,eAAe,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lang/common/errors/es_MX/index.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4ShB,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -0,0 +1,3 @@
1
+ import i18n from "i18next";
2
+ export default i18n;
3
+ //# sourceMappingURL=i18n.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../src/lang/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,SAAS,CAAA;AAyB1B,eAAe,IAAI,CAAA"}
@@ -1,3 +1,5 @@
1
1
  export * from "./common";
2
2
  export * from "./validator";
3
+ export { default as i18n } from "../lang/i18n";
4
+ export { errorES_MX } from "./common";
3
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lang/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lang/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA"}
@@ -1,8 +1,8 @@
1
1
  import { ApiMiddleware as l, ErrorCatalog as x, FetchServiceBE as f, FetchServiceFE as s } from "./mp-front-cli-core.es.js";
2
2
  import { LoadingHandler as E, MessageHandler as F, RxSubjectManager as M } from "./mp-front-cli-utils-rxjs.es.js";
3
3
  import { S as H } from "./index-def0b487.js";
4
+ import "./i18n-fd68fbe0.js";
4
5
  import "i18next";
5
- import "./index-16adcad8.js";
6
6
  import "./mp-front-cli-logger.es.js";
7
7
  import "rxjs";
8
8
  import "./mp-front-cli-encrypter.es.js";
@@ -2,41 +2,21 @@ var u = Object.defineProperty;
2
2
  var f = (t, r, e) => r in t ? u(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e;
3
3
  var O = (t, r, e) => (f(t, typeof r != "symbol" ? r + "" : r, e), e);
4
4
  import { LoadingHandler as g, MessageHandler as M } from "./mp-front-cli-utils-rxjs.es.js";
5
- import { RxSubjectManager as De } from "./mp-front-cli-utils-rxjs.es.js";
5
+ import { RxSubjectManager as Se } from "./mp-front-cli-utils-rxjs.es.js";
6
6
  import { f as c } from "./index-def0b487.js";
7
- import { S as Pe } from "./index-def0b487.js";
8
- import F, { t as n } from "i18next";
9
- import { t as v } from "./index-16adcad8.js";
10
- import { CustomLogger as w } from "./mp-front-cli-logger.es.js";
11
- import { of as o, switchMap as L, forkJoin as p, catchError as S, EMPTY as P, filter as h } from "rxjs";
12
- import { CustomEncrypter as V } from "./mp-front-cli-encrypter.es.js";
13
- import { CustomHeader as Q } from "./mp-front-cli-header.es.js";
14
- import H from "querystring";
15
- import { CustomEncoder as x } from "./mp-front-cli-encoder.es.js";
16
- import { u as G } from "./stringify-788d71a0.js";
7
+ import { S as ne } from "./index-def0b487.js";
8
+ import "./i18n-fd68fbe0.js";
9
+ import { t as S } from "i18next";
10
+ import { CustomLogger as F } from "./mp-front-cli-logger.es.js";
11
+ import { of as o, switchMap as L, forkJoin as p, catchError as U, EMPTY as P, filter as w } from "rxjs";
12
+ import { CustomEncrypter as v } from "./mp-front-cli-encrypter.es.js";
13
+ import { CustomHeader as h } from "./mp-front-cli-header.es.js";
14
+ import V from "querystring";
15
+ import { CustomEncoder as Q } from "./mp-front-cli-encoder.es.js";
16
+ import { u as H } from "./stringify-788d71a0.js";
17
17
  import "node-jose";
18
18
  import "crypto";
19
- const Y = {
20
- es: {
21
- translation: {
22
- ...v
23
- }
24
- }
25
- };
26
- F.init({
27
- resources: Y,
28
- lng: "es",
29
- // language to use, more information here: https://www.i18next.com/overview/configuration-options#languages-namespaces-resources
30
- // you can use the i18n.changeLanguage function to change the language manually: https://www.i18next.com/overview/api#changelanguage
31
- // if you're using a language detector, do not define the lng option
32
- supportedLngs: ["es", "en"],
33
- interpolation: {
34
- escapeValue: !1
35
- // react already safes from xss
36
- },
37
- debug: !1
38
- });
39
- const K = {
19
+ const x = {
40
20
  "ENROLLMENT-INVALIDCONFIGURATION-0000": {
41
21
  code: 400,
42
22
  type: "modal",
@@ -296,6 +276,13 @@ const K = {
296
276
  title: "errors.ENROLLMENT-NOTALLOWEDBRAND-0044.title",
297
277
  level: "warning"
298
278
  },
279
+ "ENROLLMENT-LOANBALANCE-0062": {
280
+ code: 400,
281
+ type: "modal",
282
+ message: "errors.ENROLLMENT-LOANBALANCE-0062.message",
283
+ title: "errors.ENROLLMENT-LOANBALANCE-0062.title",
284
+ level: "warning"
285
+ },
299
286
  "ENROLLMENT-IMEIFOUNDINACTIVEAPPLICATION-0041": {
300
287
  code: 400,
301
288
  type: "modal",
@@ -366,7 +353,7 @@ const K = {
366
353
  title: "errors.ENROLLMENT-THEREISNTIMEI-0048.title",
367
354
  level: "warning"
368
355
  }
369
- }, X = {
356
+ }, G = {
370
357
  "SKIPFINGERPRINT-WITHOUT-PERMISSIONS-01": {
371
358
  code: 400,
372
359
  type: "modal",
@@ -423,7 +410,7 @@ const K = {
423
410
  title: "errors.helpdesk.UNEXCEPTED-ERROR.title",
424
411
  level: "error"
425
412
  }
426
- }, J = {
413
+ }, Y = {
427
414
  "PF-CANCEL-APPLICATION-GENERIC-ERROR-001": {
428
415
  code: 400,
429
416
  type: "modal",
@@ -431,9 +418,9 @@ const K = {
431
418
  title: "errors.PF-CANCEL-APPLICATION-GENERIC-ERROR-001.title",
432
419
  level: "error"
433
420
  }
434
- }, _ = {
435
- ...J,
436
- ...X
421
+ }, K = {
422
+ ...Y,
423
+ ...G
437
424
  }, i = {
438
425
  "MP-001": {
439
426
  code: 400,
@@ -919,7 +906,7 @@ const K = {
919
906
  message: "errors.calculator.CALCULATOR-BAD-REQUEST-31.message",
920
907
  code: 420,
921
908
  type: "modal",
922
- level: "info"
909
+ level: "warning"
923
910
  },
924
911
  //Apartadito
925
912
  "SAVING_NOT_FOUND-01": {
@@ -1257,17 +1244,17 @@ const K = {
1257
1244
  type: "modal",
1258
1245
  level: "warning"
1259
1246
  },
1260
- ...K,
1261
- ..._
1247
+ ...x,
1248
+ ...K
1262
1249
  };
1263
- class C extends w {
1250
+ class C extends F {
1264
1251
  get(r = "default", e = "NOT_FOUND") {
1265
1252
  var N, A;
1266
1253
  if (r instanceof Error)
1267
1254
  return this.logError(r.message), {
1268
1255
  ...i.internalError,
1269
- title: n(i.internalError.title),
1270
- message: n(i.internalError.message),
1256
+ title: S(i.internalError.title),
1257
+ message: S(i.internalError.message),
1271
1258
  uuid: e
1272
1259
  };
1273
1260
  const E = typeof r == "string" ? r : r.code ?? r.errorType;
@@ -1275,11 +1262,11 @@ class C extends w {
1275
1262
  const l = typeof r == "string" ? {} : { ...r };
1276
1263
  return {
1277
1264
  ...i[E] ?? i.default,
1278
- title: n(
1265
+ title: S(
1279
1266
  ((N = i[E]) == null ? void 0 : N.title) ?? i.default.title,
1280
1267
  l
1281
1268
  ),
1282
- message: n(
1269
+ message: S(
1283
1270
  ((A = i[E]) == null ? void 0 : A.message) ?? i.default.message,
1284
1271
  l
1285
1272
  ),
@@ -1288,7 +1275,7 @@ class C extends w {
1288
1275
  };
1289
1276
  }
1290
1277
  }
1291
- class me extends V {
1278
+ class Ie extends v {
1292
1279
  constructor() {
1293
1280
  super(...arguments);
1294
1281
  O(this, "uuid", "");
@@ -1329,7 +1316,7 @@ class me extends V {
1329
1316
  L(({ params: A, response: R, headers: s }) => (this.logDebug(
1330
1317
  `ApiMiddleware \x1B[37m <URL>: \x1B[33m ${E.url} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(s)} \x1B[37m <UUID> \x1B[33m ${E.body.uuid} \x1B[37m <PARAMS> \x1B[33m ${JSON.stringify(A)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(R)}`
1331
1318
  ), o(R))),
1332
- S((A) => {
1319
+ U((A) => {
1333
1320
  var R;
1334
1321
  return this.logError(
1335
1322
  `ApiMiddleware <URL>: ${E == null ? void 0 : E.url} <HEADERS>: ${JSON.stringify(E == null ? void 0 : E.headers)} <UUID> ${(R = E == null ? void 0 : E.body) == null ? void 0 : R.uuid} <PARAMS> ${JSON.stringify(E == null ? void 0 : E.body)} <ERROR>: ${JSON.stringify(A)}`
@@ -1343,8 +1330,8 @@ class me extends V {
1343
1330
  };
1344
1331
  }
1345
1332
  }
1346
- const $ = process.env.ID_FRONT ?? "NOT_AVAILABLE";
1347
- class ge extends Q {
1333
+ const X = process.env.ID_FRONT ?? "NOT_AVAILABLE";
1334
+ class ie extends h {
1348
1335
  constructor(e, E, l = {}) {
1349
1336
  super(l);
1350
1337
  O(this, "apiUrl");
@@ -1359,7 +1346,7 @@ class ge extends Q {
1359
1346
  formatParams(e) {
1360
1347
  return JSON.stringify({
1361
1348
  data: {
1362
- type: $,
1349
+ type: X,
1363
1350
  attributes: e
1364
1351
  }
1365
1352
  });
@@ -1376,7 +1363,7 @@ class ge extends Q {
1376
1363
  selector: (N) => N.json()
1377
1364
  }
1378
1365
  ).pipe(
1379
- S((N) => {
1366
+ U((N) => {
1380
1367
  throw this.logError(JSON.stringify(N)), this.logError(
1381
1368
  `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${E} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
1382
1369
  l
@@ -1394,13 +1381,13 @@ class ge extends Q {
1394
1381
  ), o(N)))
1395
1382
  )
1396
1383
  ),
1397
- h((l) => this.errorHandler(l, E))
1384
+ w((l) => this.errorHandler(l, E))
1398
1385
  );
1399
1386
  }
1400
1387
  fetchCustomData(e = {}, E) {
1401
1388
  const l = {
1402
1389
  "Content-Type": "application/json"
1403
- }, N = H.stringify(
1390
+ }, N = V.stringify(
1404
1391
  e
1405
1392
  ), A = `${this.apiUrl}?${N}`, R = this.method === "GET" ? A : this.apiUrl;
1406
1393
  return this.getHeaders(l).pipe(
@@ -1411,7 +1398,7 @@ class ge extends Q {
1411
1398
  body: this.method === "GET" ? null : JSON.stringify(e),
1412
1399
  selector: (T) => T.json()
1413
1400
  }).pipe(
1414
- S((T) => {
1401
+ U((T) => {
1415
1402
  throw this.logError(JSON.stringify(T)), this.logError(
1416
1403
  `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${R} \x1B[37m <UUID>: \x1B[33m ${E} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
1417
1404
  s
@@ -1432,29 +1419,29 @@ class ge extends Q {
1432
1419
  );
1433
1420
  }
1434
1421
  }
1435
- const b = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
1436
- function W(t) {
1437
- return typeof t == "string" && b.test(t);
1422
+ const J = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
1423
+ function _(t) {
1424
+ return typeof t == "string" && J.test(t);
1438
1425
  }
1439
- function k(t) {
1440
- if (!W(t))
1426
+ function $(t) {
1427
+ if (!_(t))
1441
1428
  throw TypeError("Invalid UUID");
1442
1429
  let r;
1443
1430
  const e = new Uint8Array(16);
1444
1431
  return e[0] = (r = parseInt(t.slice(0, 8), 16)) >>> 24, e[1] = r >>> 16 & 255, e[2] = r >>> 8 & 255, e[3] = r & 255, e[4] = (r = parseInt(t.slice(9, 13), 16)) >>> 8, e[5] = r & 255, e[6] = (r = parseInt(t.slice(14, 18), 16)) >>> 8, e[7] = r & 255, e[8] = (r = parseInt(t.slice(19, 23), 16)) >>> 8, e[9] = r & 255, e[10] = (r = parseInt(t.slice(24, 36), 16)) / 1099511627776 & 255, e[11] = r / 4294967296 & 255, e[12] = r >>> 24 & 255, e[13] = r >>> 16 & 255, e[14] = r >>> 8 & 255, e[15] = r & 255, e;
1445
1432
  }
1446
- function j(t) {
1433
+ function b(t) {
1447
1434
  t = unescape(encodeURIComponent(t));
1448
1435
  const r = [];
1449
1436
  for (let e = 0; e < t.length; ++e)
1450
1437
  r.push(t.charCodeAt(e));
1451
1438
  return r;
1452
1439
  }
1453
- const Z = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", z = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
1454
- function q(t, r, e) {
1440
+ const W = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", k = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
1441
+ function j(t, r, e) {
1455
1442
  function E(l, N, A, R) {
1456
1443
  var s;
1457
- if (typeof l == "string" && (l = j(l)), typeof N == "string" && (N = k(N)), ((s = N) === null || s === void 0 ? void 0 : s.length) !== 16)
1444
+ if (typeof l == "string" && (l = b(l)), typeof N == "string" && (N = $(N)), ((s = N) === null || s === void 0 ? void 0 : s.length) !== 16)
1458
1445
  throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
1459
1446
  let T = new Uint8Array(16 + l.length);
1460
1447
  if (T.set(N), T.set(l, N.length), T = e(T), T[6] = T[6] & 15 | r, T[8] = T[8] & 63 | 128, A) {
@@ -1463,15 +1450,15 @@ function q(t, r, e) {
1463
1450
  A[R + I] = T[I];
1464
1451
  return A;
1465
1452
  }
1466
- return G(T);
1453
+ return H(T);
1467
1454
  }
1468
1455
  try {
1469
1456
  E.name = t;
1470
1457
  } catch {
1471
1458
  }
1472
- return E.DNS = Z, E.URL = z, E;
1459
+ return E.DNS = W, E.URL = k, E;
1473
1460
  }
1474
- function ee(t, r, e, E) {
1461
+ function Z(t, r, e, E) {
1475
1462
  switch (t) {
1476
1463
  case 0:
1477
1464
  return r & e ^ ~r & E;
@@ -1486,7 +1473,7 @@ function ee(t, r, e, E) {
1486
1473
  function D(t, r) {
1487
1474
  return t << r | t >>> 32 - r;
1488
1475
  }
1489
- function Ee(t) {
1476
+ function z(t) {
1490
1477
  const r = [1518500249, 1859775393, 2400959708, 3395469782], e = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];
1491
1478
  if (typeof t == "string") {
1492
1479
  const A = unescape(encodeURIComponent(t));
@@ -1510,17 +1497,17 @@ function Ee(t) {
1510
1497
  R[a] = N[A][a];
1511
1498
  for (let a = 16; a < 80; ++a)
1512
1499
  R[a] = D(R[a - 3] ^ R[a - 8] ^ R[a - 14] ^ R[a - 16], 1);
1513
- let s = e[0], T = e[1], I = e[2], m = e[3], U = e[4];
1500
+ let s = e[0], T = e[1], I = e[2], m = e[3], n = e[4];
1514
1501
  for (let a = 0; a < 80; ++a) {
1515
- const d = Math.floor(a / 20), y = D(s, 5) + ee(d, T, I, m) + U + r[d] + R[a] >>> 0;
1516
- U = m, m = I, I = D(T, 30) >>> 0, T = s, s = y;
1502
+ const d = Math.floor(a / 20), y = D(s, 5) + Z(d, T, I, m) + n + r[d] + R[a] >>> 0;
1503
+ n = m, m = I, I = D(T, 30) >>> 0, T = s, s = y;
1517
1504
  }
1518
- e[0] = e[0] + s >>> 0, e[1] = e[1] + T >>> 0, e[2] = e[2] + I >>> 0, e[3] = e[3] + m >>> 0, e[4] = e[4] + U >>> 0;
1505
+ e[0] = e[0] + s >>> 0, e[1] = e[1] + T >>> 0, e[2] = e[2] + I >>> 0, e[3] = e[3] + m >>> 0, e[4] = e[4] + n >>> 0;
1519
1506
  }
1520
1507
  return [e[0] >> 24 & 255, e[0] >> 16 & 255, e[0] >> 8 & 255, e[0] & 255, e[1] >> 24 & 255, e[1] >> 16 & 255, e[1] >> 8 & 255, e[1] & 255, e[2] >> 24 & 255, e[2] >> 16 & 255, e[2] >> 8 & 255, e[2] & 255, e[3] >> 24 & 255, e[3] >> 16 & 255, e[3] >> 8 & 255, e[3] & 255, e[4] >> 24 & 255, e[4] >> 16 & 255, e[4] >> 8 & 255, e[4] & 255];
1521
1508
  }
1522
- const re = q("v5", 80, Ee), B = re;
1523
- class ne extends x {
1509
+ const q = j("v5", 80, z), B = q;
1510
+ class Ce extends Q {
1524
1511
  constructor(e, E = "POST", l = {}) {
1525
1512
  super();
1526
1513
  O(this, "apiUrl");
@@ -1556,7 +1543,7 @@ class ne extends x {
1556
1543
  L((s) => (g.getInstance().setSubject(!1), this.logDebug(
1557
1544
  `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${N} <RESPONSE>: ${JSON.stringify(s)}`
1558
1545
  ), o(s))),
1559
- S((s) => (this.logError(
1546
+ U((s) => (this.logError(
1560
1547
  `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${N} <RESPONSE>: ${JSON.stringify(s)}`
1561
1548
  ), g.getInstance().setSubject(!1), M.getInstance().setSubject(
1562
1549
  new C().get(s, l)
@@ -1565,12 +1552,12 @@ class ne extends x {
1565
1552
  }
1566
1553
  }
1567
1554
  export {
1568
- me as ApiMiddleware,
1555
+ Ie as ApiMiddleware,
1569
1556
  C as ErrorCatalog,
1570
- ge as FetchServiceBE,
1571
- ne as FetchServiceFE,
1557
+ ie as FetchServiceBE,
1558
+ Ce as FetchServiceFE,
1572
1559
  g as LoadingHandler,
1573
1560
  M as MessageHandler,
1574
- De as RxSubjectManager,
1575
- Pe as ServiceToken
1561
+ Se as RxSubjectManager,
1562
+ ne as ServiceToken
1576
1563
  };
@@ -1,4 +1,5 @@
1
- import { t } from "./index-16adcad8.js";
1
+ import { t } from "./i18n-fd68fbe0.js";
2
+ import { default as i } from "i18next";
2
3
  const e = {
3
4
  errors: {}
4
5
  }, a = {
@@ -45,6 +46,7 @@ const e = {
45
46
  export {
46
47
  e as errorEN_EN,
47
48
  t as errorES_MX,
49
+ i as i18n,
48
50
  a as validatorEN_EN,
49
51
  r as validatorES_MX
50
52
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mp-front-cli",
3
- "version": "0.0.131",
3
+ "version": "0.0.133",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {