mp-front-cli 0.0.88 → 0.0.90
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/core/errors/error-catalog.d.ts.map +1 -1
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/interfaces/api-response.d.ts.map +1 -1
- package/dist/core/services/index.d.ts +2 -0
- package/dist/core/services/index.d.ts.map +1 -0
- package/dist/{index-f87c2b26.js → index-d4f88744.js} +8 -0
- package/dist/{custom-header-b6432556.js → index-def0b487.js} +185 -207
- package/dist/lang/common/errors/calculator/es_MX/index.d.ts +8 -0
- package/dist/lang/common/errors/calculator/es_MX/index.d.ts.map +1 -1
- package/dist/lang/common/errors/es_MX/index.d.ts +8 -0
- package/dist/lang/common/errors/es_MX/index.d.ts.map +1 -1
- package/dist/mp-front-cli-all.es.js +13 -11
- package/dist/mp-front-cli-core.es.js +52 -35
- package/dist/mp-front-cli-header.es.js +28 -4
- package/dist/mp-front-cli-locale.es.js +1 -1
- package/dist/mp-front-cli-services.es.js +6 -0
- package/package.json +5 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-catalog.d.ts","sourceRoot":"","sources":["../../../src/core/errors/error-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,CAAA;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"error-catalog.d.ts","sourceRoot":"","sources":["../../../src/core/errors/error-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,CAAA;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AA0rBrD,qBAAa,YAAa,SAAQ,YAAY;IAC5C,GAAG,CACD,KAAK,GAAE,MAAM,GAAG,KAAK,GAAG,QAAoB,EAC5C,IAAI,GAAE,MAAoB;;;;;;;;;;;CA8B7B"}
|
package/dist/core/index.d.ts
CHANGED
package/dist/core/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-response.d.ts","sourceRoot":"","sources":["../../../src/core/interfaces/api-response.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW,CAAC,CAAC,EAAE,CAAC,GAAG,EAAE;IACpC,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,CAAC,CAAA;IACb,aAAa,CAAC,EAAE,CAAC,CAAA;IACjB,KAAK,CAAC,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAA;CAC5B;AAED,MAAM,WAAW,IAAI,CAAC,CAAC,EAAE,CAAC,GAAG,EAAE;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,EAAE,CAAC,CAAA;IACb,aAAa,CAAC,EAAE,CAAC,CAAA;IACjB,KAAK,CAAC,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAA;CAC5B;AAED,KAAK,OAAO,GAAG,UAAU,CAAA;AACzB,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,SAAS,CAAA;AACrD,MAAM,MAAM,SAAS,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,OAAO,GAAG,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,CAAA;AAEnE,KAAK,GAAG,GAAG,OAAO,CAAA;AAClB,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,GAAG,CAAA;AAC9C,KAAK,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,GAAG,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;AAEjE,MAAM,WAAW,UAAU,CAAC,CAAC,EAAE,CAAC,GAAG,EAAE;IACnC,IAAI,EAAE,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;IACvB,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAA;CACpB;AAED,MAAM,WAAW,WAAW,CAAC,CAAC,EAAE,CAAC,GAAG,QAAQ,EAAE,CAAC,GAAG,EAAE;IAClD,IAAI,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;IACtB,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAA;CACpB;
|
|
1
|
+
{"version":3,"file":"api-response.d.ts","sourceRoot":"","sources":["../../../src/core/interfaces/api-response.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW,CAAC,CAAC,EAAE,CAAC,GAAG,EAAE;IACpC,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,CAAC,CAAA;IACb,aAAa,CAAC,EAAE,CAAC,CAAA;IACjB,KAAK,CAAC,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAA;CAC5B;AAED,MAAM,WAAW,IAAI,CAAC,CAAC,EAAE,CAAC,GAAG,EAAE;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,EAAE,CAAC,CAAA;IACb,aAAa,CAAC,EAAE,CAAC,CAAA;IACjB,KAAK,CAAC,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAA;CAC5B;AAED,KAAK,OAAO,GAAG,UAAU,CAAA;AACzB,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,SAAS,CAAA;AACrD,MAAM,MAAM,SAAS,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,OAAO,GAAG,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,CAAA;AAEnE,KAAK,GAAG,GAAG,OAAO,CAAA;AAClB,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,GAAG,CAAA;AAC9C,KAAK,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,GAAG,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;AAEjE,MAAM,WAAW,UAAU,CAAC,CAAC,EAAE,CAAC,GAAG,EAAE;IACnC,IAAI,EAAE,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;IACvB,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAA;CACpB;AAED,MAAM,WAAW,WAAW,CAAC,CAAC,EAAE,CAAC,GAAG,QAAQ,EAAE,CAAC,GAAG,EAAE;IAClD,IAAI,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;IACtB,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAA;CACpB;AACD,MAAM,WAAW,IAAI;IACnB,IAAI,EAAE,QAAQ,CAAA;CACf;AAED,MAAM,WAAW,QAAQ;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;CAChD;AAED,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,gBAAgB,EAAE,MAAM,CAAA;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;CAC/B;AAED,MAAM,WAAW,MAAM;IACrB,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
|
|
@@ -176,6 +176,14 @@ const e = {
|
|
|
176
176
|
title: "Error al consumir el servicio de amortización de SAP",
|
|
177
177
|
message: "Verificar el estado o las credenciales del servicio SAP"
|
|
178
178
|
},
|
|
179
|
+
"CALCULATOR-BAD-REQUEST-29": {
|
|
180
|
+
title: "Error al obtener token de seguridad en SAP",
|
|
181
|
+
message: "Solicitud para verificar credenciales o estado del servicio"
|
|
182
|
+
},
|
|
183
|
+
"CALCULATOR-BAD-REQUEST-30": {
|
|
184
|
+
title: "SAP: No se determinarán plazos para el tipo de crédito",
|
|
185
|
+
message: "Consulta el tipo de crédito"
|
|
186
|
+
},
|
|
179
187
|
//Apartadito
|
|
180
188
|
"SAVING_NOT_FOUND-01": {
|
|
181
189
|
title: "Verificar la identificación de guardado",
|
|
@@ -1,35 +1,34 @@
|
|
|
1
1
|
var J = Object.defineProperty;
|
|
2
2
|
var V = (r, t, e) => t in r ? J(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
|
|
3
|
-
var
|
|
4
|
-
import { switchMap as
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return O = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, n) {
|
|
3
|
+
var b = (r, t, e) => (V(r, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
+
import { switchMap as L, of as k, catchError as q } from "rxjs";
|
|
5
|
+
import { CustomLogger as W } from "./mp-front-cli-logger.es.js";
|
|
6
|
+
var I = function(r, t) {
|
|
7
|
+
return I = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, n) {
|
|
9
8
|
e.__proto__ = n;
|
|
10
9
|
} || function(e, n) {
|
|
11
10
|
for (var i in n)
|
|
12
11
|
Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]);
|
|
13
|
-
},
|
|
12
|
+
}, I(r, t);
|
|
14
13
|
};
|
|
15
|
-
function
|
|
14
|
+
function x(r, t) {
|
|
16
15
|
if (typeof t != "function" && t !== null)
|
|
17
16
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
18
|
-
|
|
17
|
+
I(r, t);
|
|
19
18
|
function e() {
|
|
20
19
|
this.constructor = r;
|
|
21
20
|
}
|
|
22
21
|
r.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
|
23
22
|
}
|
|
24
|
-
var
|
|
25
|
-
return
|
|
23
|
+
var w = function() {
|
|
24
|
+
return w = Object.assign || function(t) {
|
|
26
25
|
for (var e, n = 1, i = arguments.length; n < i; n++) {
|
|
27
26
|
e = arguments[n];
|
|
28
27
|
for (var o in e)
|
|
29
28
|
Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
|
|
30
29
|
}
|
|
31
30
|
return t;
|
|
32
|
-
},
|
|
31
|
+
}, w.apply(this, arguments);
|
|
33
32
|
};
|
|
34
33
|
function Q(r, t) {
|
|
35
34
|
var e = {};
|
|
@@ -47,24 +46,24 @@ function X(r, t, e, n) {
|
|
|
47
46
|
});
|
|
48
47
|
}
|
|
49
48
|
return new (e || (e = Promise))(function(o, u) {
|
|
50
|
-
function
|
|
49
|
+
function a(f) {
|
|
51
50
|
try {
|
|
52
|
-
|
|
51
|
+
c(n.next(f));
|
|
53
52
|
} catch (y) {
|
|
54
53
|
u(y);
|
|
55
54
|
}
|
|
56
55
|
}
|
|
57
56
|
function s(f) {
|
|
58
57
|
try {
|
|
59
|
-
|
|
58
|
+
c(n.throw(f));
|
|
60
59
|
} catch (y) {
|
|
61
60
|
u(y);
|
|
62
61
|
}
|
|
63
62
|
}
|
|
64
|
-
function
|
|
65
|
-
f.done ? o(f.value) : i(f.value).then(
|
|
63
|
+
function c(f) {
|
|
64
|
+
f.done ? o(f.value) : i(f.value).then(a, s);
|
|
66
65
|
}
|
|
67
|
-
|
|
66
|
+
c((n = n.apply(r, t || [])).next());
|
|
68
67
|
});
|
|
69
68
|
}
|
|
70
69
|
function F(r, t) {
|
|
@@ -73,63 +72,63 @@ function F(r, t) {
|
|
|
73
72
|
throw o[1];
|
|
74
73
|
return o[1];
|
|
75
74
|
}, trys: [], ops: [] }, n, i, o, u;
|
|
76
|
-
return u = { next:
|
|
75
|
+
return u = { next: a(0), throw: a(1), return: a(2) }, typeof Symbol == "function" && (u[Symbol.iterator] = function() {
|
|
77
76
|
return this;
|
|
78
77
|
}), u;
|
|
79
|
-
function c
|
|
78
|
+
function a(c) {
|
|
80
79
|
return function(f) {
|
|
81
|
-
return s([
|
|
80
|
+
return s([c, f]);
|
|
82
81
|
};
|
|
83
82
|
}
|
|
84
|
-
function s(
|
|
83
|
+
function s(c) {
|
|
85
84
|
if (n)
|
|
86
85
|
throw new TypeError("Generator is already executing.");
|
|
87
|
-
for (; u && (u = 0,
|
|
86
|
+
for (; u && (u = 0, c[0] && (e = 0)), e; )
|
|
88
87
|
try {
|
|
89
|
-
if (n = 1, i && (o =
|
|
88
|
+
if (n = 1, i && (o = c[0] & 2 ? i.return : c[0] ? i.throw || ((o = i.return) && o.call(i), 0) : i.next) && !(o = o.call(i, c[1])).done)
|
|
90
89
|
return o;
|
|
91
|
-
switch (i = 0, o && (
|
|
90
|
+
switch (i = 0, o && (c = [c[0] & 2, o.value]), c[0]) {
|
|
92
91
|
case 0:
|
|
93
92
|
case 1:
|
|
94
|
-
o =
|
|
93
|
+
o = c;
|
|
95
94
|
break;
|
|
96
95
|
case 4:
|
|
97
|
-
return e.label++, { value:
|
|
96
|
+
return e.label++, { value: c[1], done: !1 };
|
|
98
97
|
case 5:
|
|
99
|
-
e.label++, i =
|
|
98
|
+
e.label++, i = c[1], c = [0];
|
|
100
99
|
continue;
|
|
101
100
|
case 7:
|
|
102
|
-
|
|
101
|
+
c = e.ops.pop(), e.trys.pop();
|
|
103
102
|
continue;
|
|
104
103
|
default:
|
|
105
|
-
if (o = e.trys, !(o = o.length > 0 && o[o.length - 1]) && (
|
|
104
|
+
if (o = e.trys, !(o = o.length > 0 && o[o.length - 1]) && (c[0] === 6 || c[0] === 2)) {
|
|
106
105
|
e = 0;
|
|
107
106
|
continue;
|
|
108
107
|
}
|
|
109
|
-
if (
|
|
110
|
-
e.label =
|
|
108
|
+
if (c[0] === 3 && (!o || c[1] > o[0] && c[1] < o[3])) {
|
|
109
|
+
e.label = c[1];
|
|
111
110
|
break;
|
|
112
111
|
}
|
|
113
|
-
if (
|
|
114
|
-
e.label = o[1], o =
|
|
112
|
+
if (c[0] === 6 && e.label < o[1]) {
|
|
113
|
+
e.label = o[1], o = c;
|
|
115
114
|
break;
|
|
116
115
|
}
|
|
117
116
|
if (o && e.label < o[2]) {
|
|
118
|
-
e.label = o[2], e.ops.push(
|
|
117
|
+
e.label = o[2], e.ops.push(c);
|
|
119
118
|
break;
|
|
120
119
|
}
|
|
121
120
|
o[2] && e.ops.pop(), e.trys.pop();
|
|
122
121
|
continue;
|
|
123
122
|
}
|
|
124
|
-
|
|
123
|
+
c = t.call(r, e);
|
|
125
124
|
} catch (f) {
|
|
126
|
-
|
|
125
|
+
c = [6, f], i = 0;
|
|
127
126
|
} finally {
|
|
128
127
|
n = o = 0;
|
|
129
128
|
}
|
|
130
|
-
if (
|
|
131
|
-
throw
|
|
132
|
-
return { value:
|
|
129
|
+
if (c[0] & 5)
|
|
130
|
+
throw c[1];
|
|
131
|
+
return { value: c[0] ? c[1] : void 0, done: !0 };
|
|
133
132
|
}
|
|
134
133
|
}
|
|
135
134
|
function S(r) {
|
|
@@ -144,7 +143,7 @@ function S(r) {
|
|
|
144
143
|
};
|
|
145
144
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
146
145
|
}
|
|
147
|
-
function
|
|
146
|
+
function g(r, t) {
|
|
148
147
|
var e = typeof Symbol == "function" && r[Symbol.iterator];
|
|
149
148
|
if (!e)
|
|
150
149
|
return r;
|
|
@@ -152,8 +151,8 @@ function E(r, t) {
|
|
|
152
151
|
try {
|
|
153
152
|
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
154
153
|
o.push(i.value);
|
|
155
|
-
} catch (
|
|
156
|
-
u = { error:
|
|
154
|
+
} catch (a) {
|
|
155
|
+
u = { error: a };
|
|
157
156
|
} finally {
|
|
158
157
|
try {
|
|
159
158
|
i && !i.done && (e = n.return) && e.call(n);
|
|
@@ -164,7 +163,7 @@ function E(r, t) {
|
|
|
164
163
|
}
|
|
165
164
|
return o;
|
|
166
165
|
}
|
|
167
|
-
function
|
|
166
|
+
function T(r, t, e) {
|
|
168
167
|
if (e || arguments.length === 2)
|
|
169
168
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
170
169
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
@@ -183,11 +182,11 @@ function Z(r, t, e) {
|
|
|
183
182
|
function u(l) {
|
|
184
183
|
n[l] && (i[l] = function(d) {
|
|
185
184
|
return new Promise(function(A, p) {
|
|
186
|
-
o.push([l, d, A, p]) > 1 ||
|
|
185
|
+
o.push([l, d, A, p]) > 1 || a(l, d);
|
|
187
186
|
});
|
|
188
187
|
});
|
|
189
188
|
}
|
|
190
|
-
function
|
|
189
|
+
function a(l, d) {
|
|
191
190
|
try {
|
|
192
191
|
s(n[l](d));
|
|
193
192
|
} catch (A) {
|
|
@@ -195,19 +194,19 @@ function Z(r, t, e) {
|
|
|
195
194
|
}
|
|
196
195
|
}
|
|
197
196
|
function s(l) {
|
|
198
|
-
l.value instanceof m ? Promise.resolve(l.value.v).then(
|
|
197
|
+
l.value instanceof m ? Promise.resolve(l.value.v).then(c, f) : y(o[0][2], l);
|
|
199
198
|
}
|
|
200
|
-
function
|
|
201
|
-
|
|
199
|
+
function c(l) {
|
|
200
|
+
a("next", l);
|
|
202
201
|
}
|
|
203
202
|
function f(l) {
|
|
204
|
-
|
|
203
|
+
a("throw", l);
|
|
205
204
|
}
|
|
206
205
|
function y(l, d) {
|
|
207
|
-
l(d), o.shift(), o.length &&
|
|
206
|
+
l(d), o.shift(), o.length && a(o[0][0], o[0][1]);
|
|
208
207
|
}
|
|
209
208
|
}
|
|
210
|
-
function
|
|
209
|
+
function z(r) {
|
|
211
210
|
if (!Symbol.asyncIterator)
|
|
212
211
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
213
212
|
var t = r[Symbol.asyncIterator], e;
|
|
@@ -216,27 +215,27 @@ function N(r) {
|
|
|
216
215
|
}, e);
|
|
217
216
|
function n(o) {
|
|
218
217
|
e[o] = r[o] && function(u) {
|
|
219
|
-
return new Promise(function(
|
|
220
|
-
u = r[o](u), i(
|
|
218
|
+
return new Promise(function(a, s) {
|
|
219
|
+
u = r[o](u), i(a, s, u.done, u.value);
|
|
221
220
|
});
|
|
222
221
|
};
|
|
223
222
|
}
|
|
224
|
-
function i(o, u,
|
|
225
|
-
Promise.resolve(s).then(function(
|
|
226
|
-
o({ value:
|
|
223
|
+
function i(o, u, a, s) {
|
|
224
|
+
Promise.resolve(s).then(function(c) {
|
|
225
|
+
o({ value: c, done: a });
|
|
227
226
|
}, u);
|
|
228
227
|
}
|
|
229
228
|
}
|
|
230
229
|
function h(r) {
|
|
231
230
|
return typeof r == "function";
|
|
232
231
|
}
|
|
233
|
-
function
|
|
232
|
+
function N(r) {
|
|
234
233
|
var t = function(n) {
|
|
235
234
|
Error.call(n), n.stack = new Error().stack;
|
|
236
235
|
}, e = r(t);
|
|
237
236
|
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
|
|
238
237
|
}
|
|
239
|
-
var
|
|
238
|
+
var E = N(function(r) {
|
|
240
239
|
return function(e) {
|
|
241
240
|
r(this), this.message = e ? e.length + ` errors occurred during unsubscription:
|
|
242
241
|
` + e.map(function(n, i) {
|
|
@@ -245,7 +244,7 @@ var I = rr(function(r) {
|
|
|
245
244
|
`) : "", this.name = "UnsubscriptionError", this.errors = e;
|
|
246
245
|
};
|
|
247
246
|
});
|
|
248
|
-
function
|
|
247
|
+
function C(r, t) {
|
|
249
248
|
if (r) {
|
|
250
249
|
var e = r.indexOf(t);
|
|
251
250
|
0 <= e && r.splice(e, 1);
|
|
@@ -263,15 +262,15 @@ var R = function() {
|
|
|
263
262
|
if (u)
|
|
264
263
|
if (this._parentage = null, Array.isArray(u))
|
|
265
264
|
try {
|
|
266
|
-
for (var
|
|
267
|
-
var
|
|
268
|
-
|
|
265
|
+
for (var a = S(u), s = a.next(); !s.done; s = a.next()) {
|
|
266
|
+
var c = s.value;
|
|
267
|
+
c.remove(this);
|
|
269
268
|
}
|
|
270
269
|
} catch (p) {
|
|
271
270
|
t = { error: p };
|
|
272
271
|
} finally {
|
|
273
272
|
try {
|
|
274
|
-
s && !s.done && (e =
|
|
273
|
+
s && !s.done && (e = a.return) && e.call(a);
|
|
275
274
|
} finally {
|
|
276
275
|
if (t)
|
|
277
276
|
throw t.error;
|
|
@@ -284,7 +283,7 @@ var R = function() {
|
|
|
284
283
|
try {
|
|
285
284
|
f();
|
|
286
285
|
} catch (p) {
|
|
287
|
-
o = p instanceof
|
|
286
|
+
o = p instanceof E ? p.errors : [p];
|
|
288
287
|
}
|
|
289
288
|
var y = this._finalizers;
|
|
290
289
|
if (y) {
|
|
@@ -295,7 +294,7 @@ var R = function() {
|
|
|
295
294
|
try {
|
|
296
295
|
j(A);
|
|
297
296
|
} catch (p) {
|
|
298
|
-
o = o ?? [], p instanceof
|
|
297
|
+
o = o ?? [], p instanceof E ? o = T(T([], g(o)), g(p.errors)) : o.push(p);
|
|
299
298
|
}
|
|
300
299
|
}
|
|
301
300
|
} catch (p) {
|
|
@@ -310,7 +309,7 @@ var R = function() {
|
|
|
310
309
|
}
|
|
311
310
|
}
|
|
312
311
|
if (o)
|
|
313
|
-
throw new
|
|
312
|
+
throw new E(o);
|
|
314
313
|
}
|
|
315
314
|
}, r.prototype.add = function(t) {
|
|
316
315
|
var e;
|
|
@@ -333,10 +332,10 @@ var R = function() {
|
|
|
333
332
|
this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
|
|
334
333
|
}, r.prototype._removeParent = function(t) {
|
|
335
334
|
var e = this._parentage;
|
|
336
|
-
e === t ? this._parentage = null : Array.isArray(e) &&
|
|
335
|
+
e === t ? this._parentage = null : Array.isArray(e) && C(e, t);
|
|
337
336
|
}, r.prototype.remove = function(t) {
|
|
338
337
|
var e = this._finalizers;
|
|
339
|
-
e &&
|
|
338
|
+
e && C(e, t), t instanceof r && t._removeParent(this);
|
|
340
339
|
}, r.EMPTY = function() {
|
|
341
340
|
var t = new r();
|
|
342
341
|
return t.closed = !0, t;
|
|
@@ -355,37 +354,37 @@ var Y = {
|
|
|
355
354
|
Promise: void 0,
|
|
356
355
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
357
356
|
useDeprecatedNextContext: !1
|
|
358
|
-
},
|
|
357
|
+
}, U = {
|
|
359
358
|
setTimeout: function(r, t) {
|
|
360
359
|
for (var e = [], n = 2; n < arguments.length; n++)
|
|
361
360
|
e[n - 2] = arguments[n];
|
|
362
|
-
var i =
|
|
363
|
-
return i != null && i.setTimeout ? i.setTimeout.apply(i,
|
|
361
|
+
var i = U.delegate;
|
|
362
|
+
return i != null && i.setTimeout ? i.setTimeout.apply(i, T([r, t], g(e))) : setTimeout.apply(void 0, T([r, t], g(e)));
|
|
364
363
|
},
|
|
365
364
|
clearTimeout: function(r) {
|
|
366
|
-
var t =
|
|
365
|
+
var t = U.delegate;
|
|
367
366
|
return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(r);
|
|
368
367
|
},
|
|
369
368
|
delegate: void 0
|
|
370
369
|
};
|
|
371
370
|
function $(r) {
|
|
372
|
-
|
|
371
|
+
U.setTimeout(function() {
|
|
373
372
|
throw r;
|
|
374
373
|
});
|
|
375
374
|
}
|
|
376
375
|
function D() {
|
|
377
376
|
}
|
|
378
|
-
function
|
|
377
|
+
function rr(r) {
|
|
379
378
|
r();
|
|
380
379
|
}
|
|
381
|
-
var
|
|
382
|
-
|
|
380
|
+
var H = function(r) {
|
|
381
|
+
x(t, r);
|
|
383
382
|
function t(e) {
|
|
384
383
|
var n = r.call(this) || this;
|
|
385
|
-
return n.isStopped = !1, e ? (n.destination = e, M(e) && e.add(n)) : n.destination =
|
|
384
|
+
return n.isStopped = !1, e ? (n.destination = e, M(e) && e.add(n)) : n.destination = or, n;
|
|
386
385
|
}
|
|
387
386
|
return t.create = function(e, n, i) {
|
|
388
|
-
return new
|
|
387
|
+
return new O(e, n, i);
|
|
389
388
|
}, t.prototype.next = function(e) {
|
|
390
389
|
this.isStopped || this._next(e);
|
|
391
390
|
}, t.prototype.error = function(e) {
|
|
@@ -409,11 +408,11 @@ var k = function(r) {
|
|
|
409
408
|
this.unsubscribe();
|
|
410
409
|
}
|
|
411
410
|
}, t;
|
|
412
|
-
}(R),
|
|
413
|
-
function
|
|
414
|
-
return
|
|
411
|
+
}(R), er = Function.prototype.bind;
|
|
412
|
+
function P(r, t) {
|
|
413
|
+
return er.call(r, t);
|
|
415
414
|
}
|
|
416
|
-
var
|
|
415
|
+
var tr = function() {
|
|
417
416
|
function r(t) {
|
|
418
417
|
this.partialObserver = t;
|
|
419
418
|
}
|
|
@@ -444,8 +443,8 @@ var nr = function() {
|
|
|
444
443
|
_(e);
|
|
445
444
|
}
|
|
446
445
|
}, r;
|
|
447
|
-
}(),
|
|
448
|
-
|
|
446
|
+
}(), O = function(r) {
|
|
447
|
+
x(t, r);
|
|
449
448
|
function t(e, n, i) {
|
|
450
449
|
var o = r.call(this) || this, u;
|
|
451
450
|
if (h(e) || !e)
|
|
@@ -455,47 +454,47 @@ var nr = function() {
|
|
|
455
454
|
complete: i ?? void 0
|
|
456
455
|
};
|
|
457
456
|
else {
|
|
458
|
-
var
|
|
459
|
-
o && Y.useDeprecatedNextContext ? (
|
|
457
|
+
var a;
|
|
458
|
+
o && Y.useDeprecatedNextContext ? (a = Object.create(e), a.unsubscribe = function() {
|
|
460
459
|
return o.unsubscribe();
|
|
461
460
|
}, u = {
|
|
462
|
-
next: e.next &&
|
|
463
|
-
error: e.error &&
|
|
464
|
-
complete: e.complete &&
|
|
461
|
+
next: e.next && P(e.next, a),
|
|
462
|
+
error: e.error && P(e.error, a),
|
|
463
|
+
complete: e.complete && P(e.complete, a)
|
|
465
464
|
}) : u = e;
|
|
466
465
|
}
|
|
467
|
-
return o.destination = new
|
|
466
|
+
return o.destination = new tr(u), o;
|
|
468
467
|
}
|
|
469
468
|
return t;
|
|
470
|
-
}(
|
|
469
|
+
}(H);
|
|
471
470
|
function _(r) {
|
|
472
471
|
$(r);
|
|
473
472
|
}
|
|
474
|
-
function
|
|
473
|
+
function nr(r) {
|
|
475
474
|
throw r;
|
|
476
475
|
}
|
|
477
|
-
var
|
|
476
|
+
var or = {
|
|
478
477
|
closed: !0,
|
|
479
478
|
next: D,
|
|
480
|
-
error:
|
|
479
|
+
error: nr,
|
|
481
480
|
complete: D
|
|
482
481
|
};
|
|
483
|
-
function
|
|
484
|
-
return new
|
|
482
|
+
function ir(r, t, e, n, i) {
|
|
483
|
+
return new ur(r, t, e, n, i);
|
|
485
484
|
}
|
|
486
|
-
var
|
|
487
|
-
|
|
488
|
-
function t(e, n, i, o, u,
|
|
485
|
+
var ur = function(r) {
|
|
486
|
+
x(t, r);
|
|
487
|
+
function t(e, n, i, o, u, a) {
|
|
489
488
|
var s = r.call(this, e) || this;
|
|
490
|
-
return s.onFinalize = u, s.shouldUnsubscribe =
|
|
489
|
+
return s.onFinalize = u, s.shouldUnsubscribe = a, s._next = n ? function(c) {
|
|
491
490
|
try {
|
|
492
|
-
n(
|
|
491
|
+
n(c);
|
|
493
492
|
} catch (f) {
|
|
494
493
|
e.error(f);
|
|
495
494
|
}
|
|
496
|
-
} : r.prototype._next, s._error = o ? function(
|
|
495
|
+
} : r.prototype._next, s._error = o ? function(c) {
|
|
497
496
|
try {
|
|
498
|
-
o(
|
|
497
|
+
o(c);
|
|
499
498
|
} catch (f) {
|
|
500
499
|
e.error(f);
|
|
501
500
|
} finally {
|
|
@@ -504,8 +503,8 @@ var ar = function(r) {
|
|
|
504
503
|
} : r.prototype._error, s._complete = i ? function() {
|
|
505
504
|
try {
|
|
506
505
|
i();
|
|
507
|
-
} catch (
|
|
508
|
-
e.error(
|
|
506
|
+
} catch (c) {
|
|
507
|
+
e.error(c);
|
|
509
508
|
} finally {
|
|
510
509
|
this.unsubscribe();
|
|
511
510
|
}
|
|
@@ -518,20 +517,20 @@ var ar = function(r) {
|
|
|
518
517
|
r.prototype.unsubscribe.call(this), !n && ((e = this.onFinalize) === null || e === void 0 || e.call(this));
|
|
519
518
|
}
|
|
520
519
|
}, t;
|
|
521
|
-
}(
|
|
520
|
+
}(H), B = function() {
|
|
522
521
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
523
522
|
}();
|
|
524
523
|
function cr(r) {
|
|
525
524
|
return r;
|
|
526
525
|
}
|
|
527
|
-
function
|
|
526
|
+
function ar(r) {
|
|
528
527
|
return r.length === 0 ? cr : r.length === 1 ? r[0] : function(e) {
|
|
529
528
|
return r.reduce(function(n, i) {
|
|
530
529
|
return i(n);
|
|
531
530
|
}, e);
|
|
532
531
|
};
|
|
533
532
|
}
|
|
534
|
-
var
|
|
533
|
+
var v = function() {
|
|
535
534
|
function r(t) {
|
|
536
535
|
t && (this._subscribe = t);
|
|
537
536
|
}
|
|
@@ -539,10 +538,10 @@ var b = function() {
|
|
|
539
538
|
var e = new r();
|
|
540
539
|
return e.source = this, e.operator = t, e;
|
|
541
540
|
}, r.prototype.subscribe = function(t, e, n) {
|
|
542
|
-
var i = this, o =
|
|
543
|
-
return
|
|
544
|
-
var u = i,
|
|
545
|
-
o.add(
|
|
541
|
+
var i = this, o = lr(t) ? t : new O(t, e, n);
|
|
542
|
+
return rr(function() {
|
|
543
|
+
var u = i, a = u.operator, s = u.source;
|
|
544
|
+
o.add(a ? a.call(o, s) : s ? i._subscribe(o) : i._trySubscribe(o));
|
|
546
545
|
}), o;
|
|
547
546
|
}, r.prototype._trySubscribe = function(t) {
|
|
548
547
|
try {
|
|
@@ -553,10 +552,10 @@ var b = function() {
|
|
|
553
552
|
}, r.prototype.forEach = function(t, e) {
|
|
554
553
|
var n = this;
|
|
555
554
|
return e = K(e), new e(function(i, o) {
|
|
556
|
-
var u = new
|
|
557
|
-
next: function(
|
|
555
|
+
var u = new O({
|
|
556
|
+
next: function(a) {
|
|
558
557
|
try {
|
|
559
|
-
t(
|
|
558
|
+
t(a);
|
|
560
559
|
} catch (s) {
|
|
561
560
|
o(s), u.unsubscribe();
|
|
562
561
|
}
|
|
@@ -569,12 +568,12 @@ var b = function() {
|
|
|
569
568
|
}, r.prototype._subscribe = function(t) {
|
|
570
569
|
var e;
|
|
571
570
|
return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
|
|
572
|
-
}, r.prototype[
|
|
571
|
+
}, r.prototype[B] = function() {
|
|
573
572
|
return this;
|
|
574
573
|
}, r.prototype.pipe = function() {
|
|
575
574
|
for (var t = [], e = 0; e < arguments.length; e++)
|
|
576
575
|
t[e] = arguments[e];
|
|
577
|
-
return
|
|
576
|
+
return ar(t)(this);
|
|
578
577
|
}, r.prototype.toPromise = function(t) {
|
|
579
578
|
var e = this;
|
|
580
579
|
return t = K(t), new t(function(n, i) {
|
|
@@ -595,35 +594,35 @@ function K(r) {
|
|
|
595
594
|
var t;
|
|
596
595
|
return (t = r ?? Y.Promise) !== null && t !== void 0 ? t : Promise;
|
|
597
596
|
}
|
|
598
|
-
function
|
|
597
|
+
function sr(r) {
|
|
599
598
|
return r && h(r.next) && h(r.error) && h(r.complete);
|
|
600
599
|
}
|
|
601
|
-
function
|
|
602
|
-
return r && r instanceof
|
|
600
|
+
function lr(r) {
|
|
601
|
+
return r && r instanceof H || sr(r) && M(r);
|
|
603
602
|
}
|
|
604
|
-
var
|
|
603
|
+
var fr = function(r) {
|
|
605
604
|
return r && typeof r.length == "number" && typeof r != "function";
|
|
606
605
|
};
|
|
607
|
-
function
|
|
606
|
+
function hr(r) {
|
|
608
607
|
return h(r == null ? void 0 : r.then);
|
|
609
608
|
}
|
|
610
|
-
function
|
|
611
|
-
return h(r[
|
|
609
|
+
function pr(r) {
|
|
610
|
+
return h(r[B]);
|
|
612
611
|
}
|
|
613
|
-
function
|
|
612
|
+
function yr(r) {
|
|
614
613
|
return Symbol.asyncIterator && h(r == null ? void 0 : r[Symbol.asyncIterator]);
|
|
615
614
|
}
|
|
616
|
-
function
|
|
615
|
+
function dr(r) {
|
|
617
616
|
return new TypeError("You provided " + (r !== null && typeof r == "object" ? "an invalid object" : "'" + r + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
|
|
618
617
|
}
|
|
619
|
-
function
|
|
618
|
+
function vr() {
|
|
620
619
|
return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
|
|
621
620
|
}
|
|
622
|
-
var
|
|
623
|
-
function
|
|
624
|
-
return h(r == null ? void 0 : r[
|
|
621
|
+
var br = vr();
|
|
622
|
+
function mr(r) {
|
|
623
|
+
return h(r == null ? void 0 : r[br]);
|
|
625
624
|
}
|
|
626
|
-
function
|
|
625
|
+
function Ar(r) {
|
|
627
626
|
return Z(this, arguments, function() {
|
|
628
627
|
var e, n, i, o;
|
|
629
628
|
return F(this, function(u) {
|
|
@@ -654,45 +653,45 @@ function Sr(r) {
|
|
|
654
653
|
});
|
|
655
654
|
});
|
|
656
655
|
}
|
|
657
|
-
function
|
|
656
|
+
function Sr(r) {
|
|
658
657
|
return h(r == null ? void 0 : r.getReader);
|
|
659
658
|
}
|
|
660
|
-
function
|
|
661
|
-
if (r instanceof
|
|
659
|
+
function _r(r) {
|
|
660
|
+
if (r instanceof v)
|
|
662
661
|
return r;
|
|
663
662
|
if (r != null) {
|
|
664
|
-
if (
|
|
663
|
+
if (pr(r))
|
|
665
664
|
return wr(r);
|
|
665
|
+
if (fr(r))
|
|
666
|
+
return gr(r);
|
|
666
667
|
if (hr(r))
|
|
667
668
|
return Tr(r);
|
|
668
|
-
if (
|
|
669
|
-
return Er(r);
|
|
670
|
-
if (dr(r))
|
|
669
|
+
if (yr(r))
|
|
671
670
|
return G(r);
|
|
672
|
-
if (
|
|
671
|
+
if (mr(r))
|
|
672
|
+
return Er(r);
|
|
673
|
+
if (Sr(r))
|
|
673
674
|
return Pr(r);
|
|
674
|
-
if (_r(r))
|
|
675
|
-
return Ir(r);
|
|
676
675
|
}
|
|
677
|
-
throw
|
|
676
|
+
throw dr(r);
|
|
678
677
|
}
|
|
679
678
|
function wr(r) {
|
|
680
|
-
return new
|
|
681
|
-
var e = r[
|
|
679
|
+
return new v(function(t) {
|
|
680
|
+
var e = r[B]();
|
|
682
681
|
if (h(e.subscribe))
|
|
683
682
|
return e.subscribe(t);
|
|
684
683
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
|
685
684
|
});
|
|
686
685
|
}
|
|
687
|
-
function
|
|
688
|
-
return new
|
|
686
|
+
function gr(r) {
|
|
687
|
+
return new v(function(t) {
|
|
689
688
|
for (var e = 0; e < r.length && !t.closed; e++)
|
|
690
689
|
t.next(r[e]);
|
|
691
690
|
t.complete();
|
|
692
691
|
});
|
|
693
692
|
}
|
|
694
|
-
function
|
|
695
|
-
return new
|
|
693
|
+
function Tr(r) {
|
|
694
|
+
return new v(function(t) {
|
|
696
695
|
r.then(function(e) {
|
|
697
696
|
t.closed || (t.next(e), t.complete());
|
|
698
697
|
}, function(e) {
|
|
@@ -700,8 +699,8 @@ function Er(r) {
|
|
|
700
699
|
}).then(null, $);
|
|
701
700
|
});
|
|
702
701
|
}
|
|
703
|
-
function
|
|
704
|
-
return new
|
|
702
|
+
function Er(r) {
|
|
703
|
+
return new v(function(t) {
|
|
705
704
|
var e, n;
|
|
706
705
|
try {
|
|
707
706
|
for (var i = S(r), o = i.next(); !o.done; o = i.next()) {
|
|
@@ -709,8 +708,8 @@ function Pr(r) {
|
|
|
709
708
|
if (t.next(u), t.closed)
|
|
710
709
|
return;
|
|
711
710
|
}
|
|
712
|
-
} catch (
|
|
713
|
-
e = { error:
|
|
711
|
+
} catch (a) {
|
|
712
|
+
e = { error: a };
|
|
714
713
|
} finally {
|
|
715
714
|
try {
|
|
716
715
|
o && !o.done && (n = i.return) && n.call(i);
|
|
@@ -723,23 +722,23 @@ function Pr(r) {
|
|
|
723
722
|
});
|
|
724
723
|
}
|
|
725
724
|
function G(r) {
|
|
726
|
-
return new
|
|
727
|
-
|
|
725
|
+
return new v(function(t) {
|
|
726
|
+
Ir(r, t).catch(function(e) {
|
|
728
727
|
return t.error(e);
|
|
729
728
|
});
|
|
730
729
|
});
|
|
731
730
|
}
|
|
732
|
-
function
|
|
733
|
-
return G(
|
|
731
|
+
function Pr(r) {
|
|
732
|
+
return G(Ar(r));
|
|
734
733
|
}
|
|
735
|
-
function
|
|
734
|
+
function Ir(r, t) {
|
|
736
735
|
var e, n, i, o;
|
|
737
736
|
return X(this, void 0, void 0, function() {
|
|
738
|
-
var u,
|
|
737
|
+
var u, a;
|
|
739
738
|
return F(this, function(s) {
|
|
740
739
|
switch (s.label) {
|
|
741
740
|
case 0:
|
|
742
|
-
s.trys.push([0, 5, 6, 11]), e =
|
|
741
|
+
s.trys.push([0, 5, 6, 11]), e = z(r), s.label = 1;
|
|
743
742
|
case 1:
|
|
744
743
|
return [4, e.next()];
|
|
745
744
|
case 2:
|
|
@@ -753,7 +752,7 @@ function Ur(r, t) {
|
|
|
753
752
|
case 4:
|
|
754
753
|
return [3, 11];
|
|
755
754
|
case 5:
|
|
756
|
-
return
|
|
755
|
+
return a = s.sent(), i = { error: a }, [3, 11];
|
|
757
756
|
case 6:
|
|
758
757
|
return s.trys.push([6, , 9, 10]), n && !n.done && (o = e.return) ? [4, o.call(e)] : [3, 8];
|
|
759
758
|
case 7:
|
|
@@ -772,49 +771,49 @@ function Ur(r, t) {
|
|
|
772
771
|
});
|
|
773
772
|
});
|
|
774
773
|
}
|
|
775
|
-
function
|
|
774
|
+
function Ur(r, t) {
|
|
776
775
|
t === void 0 && (t = {});
|
|
777
776
|
var e = t.selector, n = Q(t, ["selector"]);
|
|
778
|
-
return new
|
|
779
|
-
var o = new AbortController(), u = o.signal,
|
|
777
|
+
return new v(function(i) {
|
|
778
|
+
var o = new AbortController(), u = o.signal, a = !0, s = n.signal;
|
|
780
779
|
if (s)
|
|
781
780
|
if (s.aborted)
|
|
782
781
|
o.abort();
|
|
783
782
|
else {
|
|
784
|
-
var
|
|
783
|
+
var c = function() {
|
|
785
784
|
u.aborted || o.abort();
|
|
786
785
|
};
|
|
787
|
-
s.addEventListener("abort",
|
|
788
|
-
return s.removeEventListener("abort",
|
|
786
|
+
s.addEventListener("abort", c), i.add(function() {
|
|
787
|
+
return s.removeEventListener("abort", c);
|
|
789
788
|
});
|
|
790
789
|
}
|
|
791
|
-
var f =
|
|
792
|
-
|
|
790
|
+
var f = w(w({}, n), { signal: u }), y = function(l) {
|
|
791
|
+
a = !1, i.error(l);
|
|
793
792
|
};
|
|
794
793
|
return fetch(r, f).then(function(l) {
|
|
795
|
-
e ?
|
|
796
|
-
|
|
797
|
-
}, y)) : (
|
|
794
|
+
e ? _r(e(l)).subscribe(ir(i, void 0, function() {
|
|
795
|
+
a = !1, i.complete();
|
|
796
|
+
}, y)) : (a = !1, i.next(l), i.complete());
|
|
798
797
|
}).catch(y), function() {
|
|
799
|
-
|
|
798
|
+
a && o.abort();
|
|
800
799
|
};
|
|
801
800
|
});
|
|
802
801
|
}
|
|
803
|
-
class
|
|
802
|
+
class Hr extends W {
|
|
804
803
|
constructor() {
|
|
805
804
|
super();
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
805
|
+
b(this, "API_AUTH_BACK_URL");
|
|
806
|
+
b(this, "API_AUTH_BACK_USERNAME_AUTH");
|
|
807
|
+
b(this, "API_AUTH_BACK_PASSWORD_AUTH");
|
|
808
|
+
b(this, "headers");
|
|
809
|
+
b(this, "ID", process.env.ID_FRONT ?? "NOT_AVAILABLE");
|
|
811
810
|
this.API_AUTH_BACK_URL = process.env.API_AUTH_BACK_URL, this.API_AUTH_BACK_USERNAME_AUTH = process.env.API_AUTH_BACK_USERNAME_AUTH, this.API_AUTH_BACK_PASSWORD_AUTH = process.env.API_AUTH_BACK_PASSWORD_AUTH, this.headers = {
|
|
812
811
|
Accept: "application/json",
|
|
813
812
|
"Content-Type": "application/vnd.api+json"
|
|
814
813
|
};
|
|
815
814
|
}
|
|
816
815
|
get() {
|
|
817
|
-
return this.logDebug("get ServiceToken"),
|
|
816
|
+
return this.logDebug("get ServiceToken"), Ur(this.API_AUTH_BACK_URL, {
|
|
818
817
|
method: "POST",
|
|
819
818
|
headers: this.headers,
|
|
820
819
|
body: JSON.stringify({
|
|
@@ -828,39 +827,18 @@ class xr extends z {
|
|
|
828
827
|
}
|
|
829
828
|
})
|
|
830
829
|
}).pipe(
|
|
831
|
-
|
|
832
|
-
|
|
830
|
+
L((e) => e.json()),
|
|
831
|
+
L((e) => {
|
|
833
832
|
var n;
|
|
834
833
|
return this.logDebug(
|
|
835
834
|
`ServiceToken <URL>: \x1B[33m ${this.API_AUTH_BACK_URL} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(this.headers)} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(e)} \x1B[37m`
|
|
836
|
-
),
|
|
835
|
+
), k(((n = e == null ? void 0 : e.data.attributes) == null ? void 0 : n.token) || "");
|
|
837
836
|
}),
|
|
838
|
-
q((e) => (this.logError(`ServiceToken ${e}`),
|
|
839
|
-
);
|
|
840
|
-
}
|
|
841
|
-
}
|
|
842
|
-
class Cr extends W {
|
|
843
|
-
constructor(e = {}) {
|
|
844
|
-
super();
|
|
845
|
-
v(this, "headers");
|
|
846
|
-
this.headers = {
|
|
847
|
-
Accept: "application/json",
|
|
848
|
-
"Content-Type": "application/vnd.api+json",
|
|
849
|
-
...e
|
|
850
|
-
};
|
|
851
|
-
}
|
|
852
|
-
addTokenBackend(e) {
|
|
853
|
-
return this.logDebug("addTokenBackend CustomHeader", JSON.stringify(e)), new xr().get().pipe(
|
|
854
|
-
g((n) => w({ ...e, Authorization: `Bearer ${n}` }))
|
|
855
|
-
);
|
|
856
|
-
}
|
|
857
|
-
getHeaders(e = {}) {
|
|
858
|
-
return this.logDebug("getHeaders CustomHeader"), this.addTokenBackend(e).pipe(
|
|
859
|
-
g((n) => w({ ...n, ...this.headers }))
|
|
837
|
+
q((e) => (this.logError(`ServiceToken ${e}`), k("")))
|
|
860
838
|
);
|
|
861
839
|
}
|
|
862
840
|
}
|
|
863
841
|
export {
|
|
864
|
-
|
|
865
|
-
|
|
842
|
+
Hr as S,
|
|
843
|
+
Ur as f
|
|
866
844
|
};
|
|
@@ -176,6 +176,14 @@ declare const translation: {
|
|
|
176
176
|
title: string;
|
|
177
177
|
message: string;
|
|
178
178
|
};
|
|
179
|
+
"CALCULATOR-BAD-REQUEST-29": {
|
|
180
|
+
title: string;
|
|
181
|
+
message: string;
|
|
182
|
+
};
|
|
183
|
+
"CALCULATOR-BAD-REQUEST-30": {
|
|
184
|
+
title: string;
|
|
185
|
+
message: string;
|
|
186
|
+
};
|
|
179
187
|
"SAVING_NOT_FOUND-01": {
|
|
180
188
|
title: string;
|
|
181
189
|
message: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lang/common/errors/calculator/es_MX/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lang/common/errors/calculator/es_MX/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsNhB,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -469,6 +469,14 @@ declare const translation: {
|
|
|
469
469
|
title: string;
|
|
470
470
|
message: string;
|
|
471
471
|
};
|
|
472
|
+
"CALCULATOR-BAD-REQUEST-29": {
|
|
473
|
+
title: string;
|
|
474
|
+
message: string;
|
|
475
|
+
};
|
|
476
|
+
"CALCULATOR-BAD-REQUEST-30": {
|
|
477
|
+
title: string;
|
|
478
|
+
message: string;
|
|
479
|
+
};
|
|
472
480
|
"SAVING_NOT_FOUND-01": {
|
|
473
481
|
title: string;
|
|
474
482
|
message: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lang/common/errors/es_MX/index.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lang/common/errors/es_MX/index.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0NhB,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
import { ApiMiddleware as
|
|
2
|
-
import { LoadingHandler as
|
|
1
|
+
import { ApiMiddleware as g, ErrorCatalog as l, FetchServiceBE as x, FetchServiceFE as f } from "./mp-front-cli-core.es.js";
|
|
2
|
+
import { LoadingHandler as v, MessageHandler as E, RxSubjectManager as F } from "./mp-front-cli-utils-rxjs.es.js";
|
|
3
|
+
import { S as h } from "./index-def0b487.js";
|
|
3
4
|
import "i18next";
|
|
4
|
-
import "./index-
|
|
5
|
+
import "./index-d4f88744.js";
|
|
5
6
|
import "./mp-front-cli-logger.es.js";
|
|
6
7
|
import "rxjs";
|
|
7
8
|
import "./mp-front-cli-encrypter.es.js";
|
|
8
9
|
import "node-jose";
|
|
9
10
|
import "crypto";
|
|
10
11
|
import "./mp-front-cli-encoder.es.js";
|
|
11
|
-
import "./
|
|
12
|
+
import "./mp-front-cli-header.es.js";
|
|
12
13
|
import "./stringify-788d71a0.js";
|
|
13
14
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
g as ApiMiddleware,
|
|
16
|
+
l as ErrorCatalog,
|
|
17
|
+
x as FetchServiceBE,
|
|
18
|
+
f as FetchServiceFE,
|
|
19
|
+
v as LoadingHandler,
|
|
20
|
+
E as MessageHandler,
|
|
21
|
+
F as RxSubjectManager,
|
|
22
|
+
h as ServiceToken
|
|
21
23
|
};
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
var f = Object.defineProperty;
|
|
2
2
|
var y = (E, t, e) => t in E ? f(E, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : E[t] = e;
|
|
3
3
|
var L = (E, t, e) => (y(E, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
-
import { LoadingHandler as
|
|
5
|
-
import { RxSubjectManager as
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
4
|
+
import { LoadingHandler as g, MessageHandler as B } from "./mp-front-cli-utils-rxjs.es.js";
|
|
5
|
+
import { RxSubjectManager as ce } from "./mp-front-cli-utils-rxjs.es.js";
|
|
6
|
+
import { f as S } from "./index-def0b487.js";
|
|
7
|
+
import { S as Ce } from "./index-def0b487.js";
|
|
8
|
+
import v, { t as C } from "i18next";
|
|
9
|
+
import { t as Q } from "./index-d4f88744.js";
|
|
8
10
|
import { CustomLogger as h } from "./mp-front-cli-logger.es.js";
|
|
9
|
-
import { of as N, switchMap as O, forkJoin as M, catchError as
|
|
11
|
+
import { of as N, switchMap as O, forkJoin as M, catchError as I, EMPTY as d, filter as w } from "rxjs";
|
|
10
12
|
import { CustomEncrypter as V } from "./mp-front-cli-encrypter.es.js";
|
|
11
|
-
import {
|
|
13
|
+
import { CustomHeader as x } from "./mp-front-cli-header.es.js";
|
|
12
14
|
import { CustomEncoder as F } from "./mp-front-cli-encoder.es.js";
|
|
13
15
|
import { u as Y } from "./stringify-788d71a0.js";
|
|
14
16
|
import "node-jose";
|
|
@@ -661,6 +663,20 @@ const G = {
|
|
|
661
663
|
type: "modal",
|
|
662
664
|
level: "warning"
|
|
663
665
|
},
|
|
666
|
+
"CALCULATOR-BAD-REQUEST-29": {
|
|
667
|
+
title: "errors.calculator.CALCULATOR-BAD-REQUEST-29.title",
|
|
668
|
+
message: "errors.calculator.CALCULATOR-BAD-REQUEST-29.message",
|
|
669
|
+
code: 420,
|
|
670
|
+
type: "modal",
|
|
671
|
+
level: "warning"
|
|
672
|
+
},
|
|
673
|
+
"CALCULATOR-BAD-REQUEST-30": {
|
|
674
|
+
title: "errors.calculator.CALCULATOR-BAD-REQUEST-30.title",
|
|
675
|
+
message: "errors.calculator.CALCULATOR-BAD-REQUEST-30.message",
|
|
676
|
+
code: 420,
|
|
677
|
+
type: "modal",
|
|
678
|
+
level: "warning"
|
|
679
|
+
},
|
|
664
680
|
//Apartadito
|
|
665
681
|
"SAVING_NOT_FOUND-01": {
|
|
666
682
|
title: "errors.calculator.SAVING_NOT_FOUND-01.title",
|
|
@@ -940,8 +956,8 @@ class U extends h {
|
|
|
940
956
|
if (t instanceof Error)
|
|
941
957
|
return this.logError(t.message), {
|
|
942
958
|
...m.internalError,
|
|
943
|
-
title:
|
|
944
|
-
message:
|
|
959
|
+
title: C(m.internalError.title),
|
|
960
|
+
message: C(m.internalError.message),
|
|
945
961
|
uuid: e
|
|
946
962
|
};
|
|
947
963
|
const r = typeof t == "string" ? t : t.code ?? t.errorType;
|
|
@@ -949,11 +965,11 @@ class U extends h {
|
|
|
949
965
|
const l = typeof t == "string" ? {} : { ...t };
|
|
950
966
|
return {
|
|
951
967
|
...m[r] ?? m.default,
|
|
952
|
-
title:
|
|
968
|
+
title: C(
|
|
953
969
|
((s = m[r]) == null ? void 0 : s.title) ?? m.default.title,
|
|
954
970
|
l
|
|
955
971
|
),
|
|
956
|
-
message:
|
|
972
|
+
message: C(
|
|
957
973
|
((A = m[r]) == null ? void 0 : A.message) ?? m.default.message,
|
|
958
974
|
l
|
|
959
975
|
),
|
|
@@ -961,7 +977,7 @@ class U extends h {
|
|
|
961
977
|
};
|
|
962
978
|
}
|
|
963
979
|
}
|
|
964
|
-
class
|
|
980
|
+
class Le extends V {
|
|
965
981
|
constructor() {
|
|
966
982
|
super(...arguments);
|
|
967
983
|
L(this, "uuid", "");
|
|
@@ -1002,11 +1018,11 @@ class Ne extends V {
|
|
|
1002
1018
|
O(({ params: A, response: a, headers: o }) => (this.logDebug(
|
|
1003
1019
|
`ApiMiddleware \x1B[37m <URL>: \x1B[33m ${r.url} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(o)} \x1B[37m <UUID> \x1B[33m ${r.body.uuid} \x1B[37m <PARAMS> \x1B[33m ${JSON.stringify(A)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(a)}`
|
|
1004
1020
|
), N(a))),
|
|
1005
|
-
|
|
1021
|
+
I((A) => {
|
|
1006
1022
|
var a;
|
|
1007
1023
|
return this.logError(
|
|
1008
1024
|
`ApiMiddleware <URL>: ${r == null ? void 0 : r.url} <HEADERS>: ${JSON.stringify(r == null ? void 0 : r.headers)} <UUID> ${(a = r == null ? void 0 : r.body) == null ? void 0 : a.uuid} <PARAMS> ${JSON.stringify(r == null ? void 0 : r.body)} <ERROR>: ${JSON.stringify(A)}`
|
|
1009
|
-
), this.returnError(l, A),
|
|
1025
|
+
), this.returnError(l, A), d;
|
|
1010
1026
|
})
|
|
1011
1027
|
).subscribe({
|
|
1012
1028
|
next: (A) => {
|
|
@@ -1017,7 +1033,7 @@ class Ne extends V {
|
|
|
1017
1033
|
}
|
|
1018
1034
|
}
|
|
1019
1035
|
const _ = process.env.ID_FRONT ?? "NOT_AVAILABLE";
|
|
1020
|
-
class
|
|
1036
|
+
class Oe extends x {
|
|
1021
1037
|
constructor(e, r, l = {}) {
|
|
1022
1038
|
super(l);
|
|
1023
1039
|
L(this, "apiUrl");
|
|
@@ -1040,7 +1056,7 @@ class Le extends x {
|
|
|
1040
1056
|
fetchData(e = {}, r) {
|
|
1041
1057
|
return this.getHeaders().pipe(
|
|
1042
1058
|
O(
|
|
1043
|
-
(l) =>
|
|
1059
|
+
(l) => S(
|
|
1044
1060
|
this.apiUrl,
|
|
1045
1061
|
{
|
|
1046
1062
|
method: "POST",
|
|
@@ -1049,7 +1065,7 @@ class Le extends x {
|
|
|
1049
1065
|
selector: (s) => s.json()
|
|
1050
1066
|
}
|
|
1051
1067
|
).pipe(
|
|
1052
|
-
|
|
1068
|
+
I((s) => {
|
|
1053
1069
|
throw this.logError(JSON.stringify(s)), this.logError(
|
|
1054
1070
|
`FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
|
|
1055
1071
|
l
|
|
@@ -1073,13 +1089,13 @@ class Le extends x {
|
|
|
1073
1089
|
fetchCustomData(e = {}, r) {
|
|
1074
1090
|
return this.getHeaders().pipe(
|
|
1075
1091
|
O(
|
|
1076
|
-
(l) =>
|
|
1092
|
+
(l) => S(this.apiUrl, {
|
|
1077
1093
|
method: this.method,
|
|
1078
1094
|
headers: l,
|
|
1079
1095
|
body: this.method === "GET" ? null : JSON.stringify(e),
|
|
1080
1096
|
selector: (s) => s.json()
|
|
1081
1097
|
}).pipe(
|
|
1082
|
-
|
|
1098
|
+
I((s) => {
|
|
1083
1099
|
throw this.logError(JSON.stringify(s)), this.logError(
|
|
1084
1100
|
`FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
|
|
1085
1101
|
l
|
|
@@ -1178,17 +1194,17 @@ function k(E) {
|
|
|
1178
1194
|
a[R] = s[A][R];
|
|
1179
1195
|
for (let R = 16; R < 80; ++R)
|
|
1180
1196
|
a[R] = n(a[R - 3] ^ a[R - 8] ^ a[R - 14] ^ a[R - 16], 1);
|
|
1181
|
-
let o = e[0], T = e[1], i = e[2],
|
|
1197
|
+
let o = e[0], T = e[1], i = e[2], c = e[3], D = e[4];
|
|
1182
1198
|
for (let R = 0; R < 80; ++R) {
|
|
1183
|
-
const P = Math.floor(R / 20), u = n(o, 5) + Z(P, T, i,
|
|
1184
|
-
D =
|
|
1199
|
+
const P = Math.floor(R / 20), u = n(o, 5) + Z(P, T, i, c) + D + t[P] + a[R] >>> 0;
|
|
1200
|
+
D = c, c = i, i = n(T, 30) >>> 0, T = o, o = u;
|
|
1185
1201
|
}
|
|
1186
|
-
e[0] = e[0] + o >>> 0, e[1] = e[1] + T >>> 0, e[2] = e[2] + i >>> 0, e[3] = e[3] +
|
|
1202
|
+
e[0] = e[0] + o >>> 0, e[1] = e[1] + T >>> 0, e[2] = e[2] + i >>> 0, e[3] = e[3] + c >>> 0, e[4] = e[4] + D >>> 0;
|
|
1187
1203
|
}
|
|
1188
1204
|
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];
|
|
1189
1205
|
}
|
|
1190
1206
|
const z = j("v5", 80, k), p = z;
|
|
1191
|
-
class
|
|
1207
|
+
class ie extends F {
|
|
1192
1208
|
constructor(e, r = "POST", l = {}) {
|
|
1193
1209
|
super();
|
|
1194
1210
|
L(this, "apiUrl");
|
|
@@ -1209,9 +1225,9 @@ class Oe extends F {
|
|
|
1209
1225
|
}
|
|
1210
1226
|
fetchData(e = {}) {
|
|
1211
1227
|
const r = (/* @__PURE__ */ new Date()).toISOString(), l = p(r, p.URL), s = this.encode({ ...e }, l);
|
|
1212
|
-
|
|
1228
|
+
g.getInstance().setSubject(this.isLoadingEnabled);
|
|
1213
1229
|
const a = new URLSearchParams(window.location.search).get("flow") ?? "N/A";
|
|
1214
|
-
return
|
|
1230
|
+
return S(this.apiUrl, {
|
|
1215
1231
|
method: this.method,
|
|
1216
1232
|
headers: { ...this.headers, flow: a },
|
|
1217
1233
|
body: s,
|
|
@@ -1220,24 +1236,25 @@ class Oe extends F {
|
|
|
1220
1236
|
O((o) => N(this.decode(o))),
|
|
1221
1237
|
O((o) => o.code && (o.type === "modal" || o.type === "message") ? (this.logError(
|
|
1222
1238
|
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(o)}`
|
|
1223
|
-
),
|
|
1224
|
-
O((o) => (
|
|
1239
|
+
), g.getInstance().setSubject(!1), B.getInstance().setSubject(o), this.errorResponse ? N(this.errorResponse) : d) : N(o)),
|
|
1240
|
+
O((o) => (g.getInstance().setSubject(!1), this.logDebug(
|
|
1225
1241
|
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(o)}`
|
|
1226
1242
|
), N(o))),
|
|
1227
|
-
|
|
1243
|
+
I((o) => (this.logError(
|
|
1228
1244
|
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(o)}`
|
|
1229
|
-
),
|
|
1245
|
+
), g.getInstance().setSubject(!1), B.getInstance().setSubject(
|
|
1230
1246
|
new U().get(o, l)
|
|
1231
|
-
), this.errorResponse ? N(this.errorResponse) :
|
|
1247
|
+
), this.errorResponse ? N(this.errorResponse) : d))
|
|
1232
1248
|
);
|
|
1233
1249
|
}
|
|
1234
1250
|
}
|
|
1235
1251
|
export {
|
|
1236
|
-
|
|
1252
|
+
Le as ApiMiddleware,
|
|
1237
1253
|
U as ErrorCatalog,
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1254
|
+
Oe as FetchServiceBE,
|
|
1255
|
+
ie as FetchServiceFE,
|
|
1256
|
+
g as LoadingHandler,
|
|
1241
1257
|
B as MessageHandler,
|
|
1242
|
-
|
|
1258
|
+
ce as RxSubjectManager,
|
|
1259
|
+
Ce as ServiceToken
|
|
1243
1260
|
};
|
|
@@ -1,10 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
var n = Object.defineProperty;
|
|
2
|
+
var p = (r, t, e) => t in r ? n(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
|
|
3
|
+
var i = (r, t, e) => (p(r, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
+
import { switchMap as a, of as s } from "rxjs";
|
|
5
|
+
import { CustomEncrypter as d } from "./mp-front-cli-encrypter.es.js";
|
|
6
|
+
import { S as m } from "./index-def0b487.js";
|
|
4
7
|
import "node-jose";
|
|
5
8
|
import "crypto";
|
|
6
9
|
import "./mp-front-cli-encoder.es.js";
|
|
7
10
|
import "./mp-front-cli-logger.es.js";
|
|
11
|
+
class H extends d {
|
|
12
|
+
constructor(e = {}) {
|
|
13
|
+
super();
|
|
14
|
+
i(this, "headers");
|
|
15
|
+
this.headers = {
|
|
16
|
+
Accept: "application/json",
|
|
17
|
+
"Content-Type": "application/vnd.api+json",
|
|
18
|
+
...e
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
addTokenBackend(e) {
|
|
22
|
+
return this.logDebug("addTokenBackend CustomHeader", JSON.stringify(e)), new m().get().pipe(
|
|
23
|
+
a((o) => s({ ...e, Authorization: `Bearer ${o}` }))
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
getHeaders(e = {}) {
|
|
27
|
+
return this.logDebug("getHeaders CustomHeader"), this.addTokenBackend(e).pipe(
|
|
28
|
+
a((o) => s({ ...o, ...this.headers }))
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
8
32
|
export {
|
|
9
|
-
|
|
33
|
+
H as CustomHeader
|
|
10
34
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mp-front-cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.90",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -51,6 +51,10 @@
|
|
|
51
51
|
"types": "./dist/core/utils/custom-adapter.d.ts",
|
|
52
52
|
"import": "./dist/mp-front-cli-adapter.es.js"
|
|
53
53
|
},
|
|
54
|
+
"./core/services": {
|
|
55
|
+
"types": "./dist/core/services/index.d.ts",
|
|
56
|
+
"import": "./dist/mp-front-cli-services.es.js"
|
|
57
|
+
},
|
|
54
58
|
"./locale": {
|
|
55
59
|
"types": "./dist/lang/index.d.ts",
|
|
56
60
|
"import": "./dist/mp-front-cli-locale.es.js"
|