mp-front-cli 1.0.0 → 2.0.0-canary.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 (36) hide show
  1. package/dist/core/errors/error-catalog.d.ts +4 -18
  2. package/dist/core/errors/error-catalog.d.ts.map +1 -1
  3. package/dist/core/interfaces/api-response.d.ts +4 -5
  4. package/dist/core/interfaces/api-response.d.ts.map +1 -1
  5. package/dist/core/interfaces/message.d.ts +1 -1
  6. package/dist/core/interfaces/message.d.ts.map +1 -1
  7. package/dist/core/middleware/index.d.ts +1 -1
  8. package/dist/core/middleware/index.d.ts.map +1 -1
  9. package/dist/core/utils/Terminal/constants/index.d.ts +1 -1
  10. package/dist/core/utils/Terminal/index.d.ts +1 -1
  11. package/dist/core/utils/api-request/fetch-service-be.d.ts +1 -1
  12. package/dist/core/utils/api-request/fetch-service-be.d.ts.map +1 -1
  13. package/dist/core/utils/api-request/fetch-service-fe.d.ts +1 -1
  14. package/dist/core/utils/api-request/fetch-service-fe.d.ts.map +1 -1
  15. package/dist/core/utils/custom-adapter.d.ts.map +1 -1
  16. package/dist/core/utils/custom-cache.d.ts +2 -2
  17. package/dist/core/utils/custom-cache.d.ts.map +1 -1
  18. package/dist/fetch-service-fe-Bn43l_lH.js +1574 -0
  19. package/dist/loading-handler-Br21zGTA.js +46 -0
  20. package/dist/mp-front-cli-adapter.es.js +73 -84
  21. package/dist/mp-front-cli-all.es.js +11 -22
  22. package/dist/mp-front-cli-cache.es.js +33 -38
  23. package/dist/mp-front-cli-core.es.js +11 -1582
  24. package/dist/mp-front-cli-encoder.es.js +3535 -3537
  25. package/dist/mp-front-cli-encrypter.es.js +11 -14
  26. package/dist/mp-front-cli-header.es.js +13 -17
  27. package/dist/mp-front-cli-locale.es.js +1 -1
  28. package/dist/mp-front-cli-logger.es.js +3 -3
  29. package/dist/mp-front-cli-services.es.js +2 -4
  30. package/dist/mp-front-cli-utils-rxjs.es.js +3 -43
  31. package/dist/service-token-D8bum6H0.js +811 -0
  32. package/package.json +20 -16
  33. package/dist/index-a6a5a26e.js +0 -849
  34. /package/dist/{custom-redis-bee66564.js → custom-redis-BMPP_XZi.js} +0 -0
  35. /package/dist/{i18n-3dcfe704.js → i18n-CniHhItS.js} +0 -0
  36. /package/dist/{stringify-788d71a0.js → stringify-93tp0umt.js} +0 -0
@@ -1,1584 +1,13 @@
1
- var u = Object.defineProperty;
2
- var f = (t, r, e) => r in t ? u(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e;
3
- var L = (t, r, e) => (f(t, typeof r != "symbol" ? r + "" : r, e), e);
4
- import { LoadingHandler as g, MessageHandler as M } from "./mp-front-cli-utils-rxjs.es.js";
5
- import { RxSubjectManager as Se } from "./mp-front-cli-utils-rxjs.es.js";
6
- import { f as c } from "./index-a6a5a26e.js";
7
- import { S as ne } from "./index-a6a5a26e.js";
8
- import "./i18n-3dcfe704.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 i, forkJoin as B, 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 Q from "querystring";
15
- import { CustomEncoder as V } from "./mp-front-cli-encoder.es.js";
16
- import { u as H } from "./stringify-788d71a0.js";
17
- import "node-jose";
18
- import "crypto";
19
- const x = {
20
- "ENROLLMENT-INVALIDCONFIGURATION-0000": {
21
- code: 400,
22
- type: "modal",
23
- message: "errors.ENROLLMENT-INVALIDCONFIGURATION-0000.message",
24
- title: "errors.ENROLLMENT-INVALIDCONFIGURATION-0000.title",
25
- level: "warning"
26
- },
27
- "ENROLLMENT-INVALIDDEVICEDID-0001": {
28
- code: 400,
29
- type: "modal",
30
- message: "errors.ENROLLMENT-INVALIDDEVICEDID-0001.message",
31
- title: "errors.ENROLLMENT-INVALIDDEVICEDID-0001.title",
32
- level: "warning"
33
- },
34
- "ENROLLMENT-INVALIDIMEI-0002": {
35
- code: 400,
36
- type: "modal",
37
- message: "errors.ENROLLMENT-INVALIDIMEI-0002.message",
38
- title: "errors.ENROLLMENT-INVALIDIMEI-0002.title",
39
- level: "warning"
40
- },
41
- "ENROLLMENT-INVALIDLOCKTYPE-0003": {
42
- code: 400,
43
- type: "modal",
44
- message: "errors.ENROLLMENT-INVALIDLOCKTYPE-0003.message",
45
- title: "errors.ENROLLMENT-INVALIDLOCKTYPE-0003.title",
46
- level: "warning"
47
- },
48
- "ENROLLMENT-INVALIDTOKENSUPPLIERS-0004": {
49
- code: 400,
50
- type: "modal",
51
- message: "errors.ENROLLMENT-INVALIDTOKENSUPPLIERS-0004.message",
52
- title: "errors.ENROLLMENT-INVALIDTOKENSUPPLIERS-0004.title",
53
- level: "warning"
54
- },
55
- "ENROLLMENT-IMEIDOESNTMATCH-0005": {
56
- code: 400,
57
- type: "modal",
58
- message: "errors.ENROLLMENT-IMEIDOESNTMATCH-0005.message",
59
- title: "errors.ENROLLMENT-IMEIDOESNTMATCH-0005.title",
60
- level: "warning"
61
- },
62
- "ENROLLMENT-QRMACROLOCKNOTGENERATE-0006": {
63
- code: 400,
64
- type: "modal",
65
- message: "errors.ENROLLMENT-QRMACROLOCKNOTGENERATE-0006.message",
66
- title: "errors.ENROLLMENT-QRMACROLOCKNOTGENERATE-0006.title",
67
- level: "warning"
68
- },
69
- "ENROLLMENT-IMEINOTVALIDATED-0007": {
70
- code: 400,
71
- type: "modal",
72
- message: "errors.ENROLLMENT-IMEINOTVALIDATED-0007.message",
73
- title: "errors.ENROLLMENT-IMEINOTVALIDATED-0007.title",
74
- level: "warning"
75
- },
76
- "ENROLLMENT-DEVICESNOTFOUNDINSAPINVENTORY-0008": {
77
- code: 400,
78
- type: "modal",
79
- message: "errors.ENROLLMENT-DEVICESNOTFOUNDINSAPINVENTORY-0008.message",
80
- title: "errors.ENROLLMENT-DEVICESNOTFOUNDINSAPINVENTORY-0008.title",
81
- level: "warning"
82
- },
83
- "ENROLLMENT-JOURNEYERROR-0009": {
84
- code: 400,
85
- type: "modal",
86
- message: "errors.ENROLLMENT-JOURNEYERROR-0009.message",
87
- title: "errors.ENROLLMENT-JOURNEYERROR-0009.title",
88
- level: "warning"
89
- },
90
- "ENROLLMENT-APPLICATIONSNOTFOUND-0010": {
91
- code: 400,
92
- type: "modal",
93
- message: "errors.ENROLLMENT-APPLICATIONSNOTFOUND-0010.message",
94
- title: "errors.ENROLLMENT-APPLICATIONSNOTFOUND-0010.title",
95
- level: "warning"
96
- },
97
- "ENROLLMENT-LOCKTYPENOTFOUND-0011": {
98
- code: 400,
99
- type: "modal",
100
- message: "errors.ENROLLMENT-LOCKTYPENOTFOUND-0011.message",
101
- title: "errors.ENROLLMENT-LOCKTYPENOTFOUND-0011.title",
102
- level: "warning"
103
- },
104
- "ENROLLMENT-PREAPPLICATIONNOTFOUND-0012": {
105
- code: 400,
106
- type: "modal",
107
- message: "errors.ENROLLMENT-PREAPPLICATIONNOTFOUND-0012.message",
108
- title: "errors.ENROLLMENT-PREAPPLICATIONNOTFOUND-0012.title",
109
- level: "warning"
110
- },
111
- "ENROLLMENT-UNSUPPORTED_MEDIA_TYPE-0013": {
112
- code: 400,
113
- type: "modal",
114
- message: "errors.ENROLLMENT-UNSUPPORTED_MEDIA_TYPE-0013.message",
115
- title: "errors.ENROLLMENT-UNSUPPORTED_MEDIA_TYPE-0013.title",
116
- level: "warning"
117
- },
118
- "ENROLLMENT-NOT_ACCEPTABLE-0014": {
119
- code: 400,
120
- type: "modal",
121
- message: "errors.ENROLLMENT-NOT_ACCEPTABLE-0014.message",
122
- title: "errors.ENROLLMENT-NOT_ACCEPTABLE-0014.title",
123
- level: "warning"
124
- },
125
- "ENROLLMENT-RESOURCENOTFOUND-0015": {
126
- code: 400,
127
- type: "modal",
128
- message: "errors.ENROLLMENT-RESOURCENOTFOUND-0015.message",
129
- title: "errors.ENROLLMENT-RESOURCENOTFOUND-0015.title",
130
- level: "warning"
131
- },
132
- "ENROLLMENT-BADREQUEST-0016": {
133
- code: 400,
134
- type: "modal",
135
- message: "errors.ENROLLMENT-BADREQUEST-0016.message",
136
- title: "errors.ENROLLMENT-BADREQUEST-0016.title",
137
- level: "warning"
138
- },
139
- "ENROLLMENT-METHODNOTIMPLEMENT-0017": {
140
- code: 400,
141
- type: "modal",
142
- message: "errors.ENROLLMENT-METHODNOTIMPLEMENT-0017.message",
143
- title: "errors.ENROLLMENT-METHODNOTIMPLEMENT-0017.title",
144
- level: "warning"
145
- },
146
- "ENROLLMENT-PRODUCTNOTFOUNDINSAPINVENTORY-0018": {
147
- code: 400,
148
- type: "modal",
149
- message: "errors.ENROLLMENT-PRODUCTNOTFOUNDINSAPINVENTORY-0018.message",
150
- title: "errors.ENROLLMENT-PRODUCTNOTFOUNDINSAPINVENTORY-0018.title",
151
- level: "warning"
152
- },
153
- "ENROLLMENT-PRODUCTKEYNOTFOUND-0019": {
154
- code: 400,
155
- type: "modal",
156
- message: "errors.ENROLLMENT-PRODUCTKEYNOTFOUND-0019.message",
157
- title: "errors.ENROLLMENT-PRODUCTKEYNOTFOUND-0019.title",
158
- level: "warning"
159
- },
160
- "ENROLLMENT-FAILEDTORETRIEVEIMEI-0020": {
161
- code: 400,
162
- type: "modal",
163
- message: "errors.ENROLLMENT-FAILEDTORETRIEVEIMEI-0020.message",
164
- title: "errors.ENROLLMENT-FAILEDTORETRIEVEIMEI-0020.title",
165
- level: "warning"
166
- },
167
- "ENROLLMENT-LOCKTYPENOTFOUND-0021": {
168
- code: 400,
169
- type: "modal",
170
- message: "errors.ENROLLMENT-LOCKTYPENOTFOUND-0021.message",
171
- title: "errors.ENROLLMENT-LOCKTYPENOTFOUND-0021.title",
172
- level: "warning"
173
- },
174
- "ENROLLMENT-AUTH_HEADER_MISSING-0022": {
175
- code: 400,
176
- type: "modal",
177
- message: "errors.ENROLLMENT-AUTH_HEADER_MISSING-0022.message",
178
- title: "errors.ENROLLMENT-AUTH_HEADER_MISSING-0022.title",
179
- level: "warning"
180
- },
181
- "ENROLLMENT-AUTH_HEADER_INVALID_FORMAT-0023": {
182
- code: 400,
183
- type: "modal",
184
- message: "errors.ENROLLMENT-AUTH_HEADER_INVALID_FORMAT-0023.message",
185
- title: "errors.ENROLLMENT-AUTH_HEADER_INVALID_FORMAT-0023.title",
186
- level: "warning"
187
- },
188
- "ENROLLMENT-AUTH_TOKEN_MISSING-0024": {
189
- code: 400,
190
- type: "modal",
191
- message: "errors.ENROLLMENT-AUTH_TOKEN_MISSING-0024.message",
192
- title: "errors.ENROLLMENT-AUTH_TOKEN_MISSING-0024.title",
193
- level: "warning"
194
- },
195
- "ENROLLMENT-AUTH_TOKEN_INVALID-0025": {
196
- code: 400,
197
- type: "modal",
198
- message: "errors.ENROLLMENT-AUTH_TOKEN_INVALID-0025.message",
199
- title: "errors.ENROLLMENT-AUTH_TOKEN_INVALID-0025.title",
200
- level: "warning"
201
- },
202
- "ENROLLMENT-AUTH_UNSUPPORTED_MEDIA_TYPE-0026": {
203
- code: 400,
204
- type: "modal",
205
- message: "errors.ENROLLMENT-AUTH_UNSUPPORTED_MEDIA_TYPE-0026.message",
206
- title: "errors.ENROLLMENT-AUTH_UNSUPPORTED_MEDIA_TYPE-0026.title",
207
- level: "warning"
208
- },
209
- "ENROLLMENT-AUTH_UNKNOWN_ERROR-0027": {
210
- code: 400,
211
- type: "modal",
212
- message: "errors.ENROLLMENT-AUTH_UNKNOWN_ERROR-0027.message",
213
- title: "errors.ENROLLMENT-AUTH_UNKNOWN_ERROR-0027.title",
214
- level: "warning"
215
- },
216
- "ENROLLMENT-APISAPNOTAVAILABLE-0028": {
217
- code: 400,
218
- type: "modal",
219
- message: "errors.ENROLLMENT-APISAPNOTAVAILABLE-0028.message",
220
- title: "errors.ENROLLMENT-APISAPNOTAVAILABLE-0028.title",
221
- level: "warning"
222
- },
223
- "ENROLLMENT-APIAUTHSUPPLIERNOTAVAILABLE-0029": {
224
- code: 400,
225
- type: "modal",
226
- message: "errors.ENROLLMENT-APIAUTHSUPPLIERNOTAVAILABLE-0029.message",
227
- title: "errors.ENROLLMENT-APIAUTHSUPPLIERNOTAVAILABLE-0029.title",
228
- level: "warning"
229
- },
230
- "ENROLLMENT-APIAPISTATUSLOCKTYPEBYSUPPLIERNOTAVAILABLE-0030": {
231
- code: 400,
232
- type: "modal",
233
- message: "errors.ENROLLMENT-APIAPISTATUSLOCKTYPEBYSUPPLIERNOTAVAILABLE-0030.message",
234
- title: "errors.ENROLLMENT-APIAPISTATUSLOCKTYPEBYSUPPLIERNOTAVAILABLE-0030.title",
235
- level: "warning"
236
- },
237
- "ENROLLMENT-INVALIDTOKENTRUSTONICSUPPLIER-0031": {
238
- code: 400,
239
- type: "modal",
240
- message: "errors.ENROLLMENT-INVALIDTOKENTRUSTONICSUPPLIER-0031.message",
241
- title: "errors.ENROLLMENT-INVALIDTOKENTRUSTONICSUPPLIER-0031.title",
242
- level: "warning"
243
- },
244
- "ENROLLMENT-IMEIFOUNDINSAPINVENTORY-0035": {
245
- code: 400,
246
- type: "modal",
247
- message: "errors.ENROLLMENT-IMEIFOUNDINSAPINVENTORY-0035.message",
248
- title: "errors.ENROLLMENT-IMEIFOUNDINSAPINVENTORY-0035.title",
249
- level: "warning"
250
- },
251
- "ENROLLMENT-IMEIFOUNDINACTIVEAPPLICATION-0036": {
252
- code: 400,
253
- type: "modal",
254
- message: "errors.ENROLLMENT-IMEIFOUNDINACTIVEAPPLICATION-0036.message",
255
- title: "errors.ENROLLMENT-IMEIFOUNDINACTIVEAPPLICATION-0036.title",
256
- level: "warning"
257
- },
258
- "ENROLLMENT-MAXIMUMIMEIUSAGEREACHED-0037": {
259
- code: 400,
260
- type: "modal",
261
- message: "errors.ENROLLMENT-MAXIMUMIMEIUSAGEREACHED-0037.message",
262
- title: "errors.ENROLLMENT-MAXIMUMIMEIUSAGEREACHED-0037.title",
263
- level: "warning"
264
- },
265
- "ENROLLMENT-THEREISNOSTOCKFORTHEMATERIALINSAP-0042": {
266
- code: 400,
267
- type: "modal",
268
- message: "errors.ENROLLMENT-THEREISNOSTOCKFORTHEMATERIALINSAP-0042.message",
269
- title: "errors.ENROLLMENT-THEREISNOSTOCKFORTHEMATERIALINSAP-0042.title",
270
- level: "warning"
271
- },
272
- "ENROLLMENT-NOTALLOWEDBRAND-0044": {
273
- code: 400,
274
- type: "modal",
275
- message: "errors.ENROLLMENT-NOTALLOWEDBRAND-0044.message",
276
- title: "errors.ENROLLMENT-NOTALLOWEDBRAND-0044.title",
277
- level: "warning"
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
- },
286
- "ENROLLMENT-IMEIFOUNDINACTIVEAPPLICATION-0041": {
287
- code: 400,
288
- type: "modal",
289
- message: "errors.ENROLLMENT-IMEIFOUNDINACTIVEAPPLICATION-0041.message",
290
- title: "errors.ENROLLMENT-IMEIFOUNDINACTIVEAPPLICATION-0041.title",
291
- level: "warning"
292
- },
293
- "ENROLLMENT-THEREARENTMATERIALS-0055": {
294
- code: 400,
295
- type: "modal",
296
- message: "errors.ENROLLMENT-THEREARENTMATERIALS-0055.message",
297
- title: "errors.ENROLLMENT-THEREARENTMATERIALS-0055.title",
298
- level: "warning"
299
- },
300
- "ENROLLMENT-THEREARENTMATERIALS-0056": {
301
- code: 400,
302
- type: "modal",
303
- message: "errors.ENROLLMENT-THEREARENTMATERIALS-0056.message",
304
- title: "errors.ENROLLMENT-THEREARENTMATERIALS-0056.title",
305
- level: "warning"
306
- },
307
- "ENROLLMENT-THEREARENTMATERIALS-0049": {
308
- code: 400,
309
- type: "modal",
310
- message: "errors.ENROLLMENT-THEREARENTMATERIALS-0049.message",
311
- title: "errors.ENROLLMENT-THEREARENTMATERIALS-0049.title",
312
- level: "warning"
313
- },
314
- "ENROLLMENT-MATERIALNOTFOUND-0052": {
315
- code: 400,
316
- type: "modal",
317
- message: "errors.ENROLLMENT-MATERIALNOTFOUND-0052.message",
318
- title: "errors.ENROLLMENT-MATERIALNOTFOUND-0052.title",
319
- level: "warning"
320
- },
321
- "ENROLLMENT-THEREARENTMATERIALS-0053": {
322
- code: 400,
323
- type: "modal",
324
- message: "errors.ENROLLMENT-THEREARENTMATERIALS-0053.message",
325
- title: "errors.ENROLLMENT-THEREARENTMATERIALS-0053.title",
326
- level: "warning"
327
- },
328
- "ENROLLMENT-THEREARENTMATERIALS-0054": {
329
- code: 400,
330
- type: "modal",
331
- message: "errors.ENROLLMENT-THEREARENTMATERIALS-0054.message",
332
- title: "errors.ENROLLMENT-THEREARENTMATERIALS-0054.title",
333
- level: "warning"
334
- },
335
- "ENROLLMENT-THEREARENTMATERIALS-0058": {
336
- code: 400,
337
- type: "modal",
338
- message: "errors.ENROLLMENT-THEREARENTMATERIALS-0058.message",
339
- title: "errors.ENROLLMENT-THEREARENTMATERIALS-0058.title",
340
- level: "warning"
341
- },
342
- "ENROLLMENT-THEREARENTMATERIALS-0060": {
343
- code: 400,
344
- type: "modal",
345
- message: "errors.ENROLLMENT-THEREARENTMATERIALS-0060.message",
346
- title: "errors.ENROLLMENT-THEREARENTMATERIALS-0060.title",
347
- level: "warning"
348
- },
349
- "ENROLLMENT-THEREISNTIMEI-0048": {
350
- code: 400,
351
- type: "modal",
352
- message: "errors.ENROLLMENT-THEREISNTIMEI-0048.message",
353
- title: "errors.ENROLLMENT-THEREISNTIMEI-0048.title",
354
- level: "warning"
355
- }
356
- }, G = {
357
- "SKIPFINGERPRINT-WITHOUT-PERMISSIONS-01": {
358
- code: 400,
359
- type: "modal",
360
- message: "errors.helpdesk.SKIPFINGERPRINT-WITHOUT-PERMISSIONS-01.message",
361
- title: "errors.helpdesk.SKIPFINGERPRINT-WITHOUT-PERMISSIONS-01.title",
362
- level: "error"
363
- },
364
- "SKIPFINGERPRINT-WITHOUT-IDJOURNEY-01": {
365
- code: 400,
366
- type: "modal",
367
- message: "errors.helpdesk.SKIPFINGERPRINT-WITHOUT-IDJOURNEY-01.message",
368
- title: "errors.helpdesk.SKIPFINGERPRINT-WITHOUT-IDJOURNEY-01.title",
369
- level: "error"
370
- },
371
- "SKIPFINGERPRINT-JOURNEY-UPDATE-ERROR-01": {
372
- code: 400,
373
- type: "modal",
374
- message: "errors.helpdesk.SKIPFINGERPRINT-JOURNEY-UPDATE-ERROR-01.message",
375
- title: "errors.helpdesk.SKIPFINGERPRINT-JOURNEY-UPDATE-ERROR-01.title",
376
- level: "error"
377
- },
378
- "SKIPFINGERPRINT-UNEXCEPTED-ERROR-01": {
379
- code: 400,
380
- type: "modal",
381
- message: "errors.helpdesk.SKIPFINGERPRINT-UNEXCEPTED-ERROR-01.message",
382
- title: "errors.helpdesk.SKIPFINGERPRINT-UNEXCEPTED-ERROR-01.title",
383
- level: "error"
384
- },
385
- "SKIPFINGERPRINT-JOURNEY-DATANOTFOUND-02": {
386
- code: 400,
387
- type: "modal",
388
- message: "errors.helpdesk.SKIPFINGERPRINT-JOURNEY-DATANOTFOUND-02.message",
389
- title: "errors.helpdesk.SKIPFINGERPRINT-JOURNEY-DATANOTFOUND-02.title",
390
- level: "error"
391
- },
392
- "SKIPFINGERPRINT-CLIENT-NOT-FOUND": {
393
- code: 400,
394
- type: "modal",
395
- message: "errors.helpdesk.SKIPFINGERPRINT-CLIENT-NOT-FOUND.message",
396
- title: "errors.helpdesk.SKIPFINGERPRINT-CLIENT-NOT-FOUND.title",
397
- level: "error"
398
- },
399
- "DUPLICATE-KEY-DATABASE-POSTGRES": {
400
- code: 400,
401
- type: "modal",
402
- message: "errors.helpdesk.DUPLICATE-KEY-DATABASE-POSTGRES.message",
403
- title: "errors.helpdesk.DUPLICATE-KEY-DATABASE-POSTGRES.title",
404
- level: "error"
405
- },
406
- "UNEXCEPTED-ERROR": {
407
- code: 400,
408
- type: "modal",
409
- message: "errors.helpdesk.UNEXCEPTED-ERROR.message",
410
- title: "errors.helpdesk.UNEXCEPTED-ERROR.title",
411
- level: "error"
412
- }
413
- }, Y = {
414
- "PF-CANCEL-APPLICATION-GENERIC-ERROR-001": {
415
- code: 400,
416
- type: "modal",
417
- message: "errors.PF-CANCEL-APPLICATION-GENERIC-ERROR-001.message",
418
- title: "errors.PF-CANCEL-APPLICATION-GENERIC-ERROR-001.title",
419
- level: "error"
420
- }
421
- }, K = {
422
- ...Y,
423
- ...G
424
- }, I = {
425
- "MP-001": {
426
- code: 400,
427
- type: "modal",
428
- message: "errors.MP-001.message",
429
- title: "errors.MP-001.title",
430
- level: "info"
431
- },
432
- UNAUTHORIZED: {
433
- level: "warning",
434
- type: "modal",
435
- message: "errors.UnAuthorized.message",
436
- title: "errors.UnAuthorized.title",
437
- code: 310
438
- },
439
- "ERR-GENERAL-01": {
440
- level: "warning",
441
- type: "modal",
442
- message: "errors.ERR-GENERAL-01.message",
443
- title: "errors.ERR-GENERAL-01.title",
444
- code: 400
445
- },
446
- internalError: {
447
- level: "warning",
448
- type: "modal",
449
- message: "errors.internalError.message",
450
- title: "errors.internalError.title",
451
- code: 420
452
- },
453
- default: {
454
- code: 420,
455
- type: "modal",
456
- message: "errors.default.message",
457
- title: "errors.default.title",
458
- level: "warning"
459
- },
460
- // Biometric
461
- "PF-BIOMETRIC-001": {
462
- title: "errors.PF-BIOMETRIC-001.title",
463
- message: "errors.PF-BIOMETRIC-001.message",
464
- level: "warning",
465
- code: 420,
466
- type: "modal"
467
- },
468
- "PF-BIOMETRIC-002": {
469
- title: "errors.PF-BIOMETRIC-002.title",
470
- message: "errors.PF-BIOMETRIC-002.message",
471
- level: "warning",
472
- code: 420,
473
- type: "modal"
474
- },
475
- "PF-BIOMETRIC-003": {
476
- title: "errors.PF-BIOMETRIC-003.title",
477
- message: "errors.PF-BIOMETRIC-003.message",
478
- level: "warning",
479
- code: 420,
480
- type: "modal"
481
- },
482
- "PF-BIOMETRIC-004": {
483
- code: 421,
484
- type: "modal",
485
- message: "errors.PF-BIOMETRIC-004.message",
486
- title: "errors.PF-BIOMETRIC-004.title",
487
- level: "warning"
488
- },
489
- "PF-BIOMETRIC-007": {
490
- title: "errors.PF-BIOMETRIC-007.title",
491
- message: "errors.PF-BIOMETRIC-007.message",
492
- level: "warning",
493
- code: 420,
494
- type: "modal"
495
- },
496
- "PF-VALIDATE-CLIENTTYPE-003": {
497
- title: "errors.PF-VALIDATE-CLIENTTYPE-003.title",
498
- message: "errors.PF-VALIDATE-CLIENTTYPE-003.message",
499
- level: "warning",
500
- code: 310,
501
- type: "modal"
502
- },
503
- "PF-VALIDATE-CLIENTTYPE-006": {
504
- title: "errors.PF-VALIDATE-CLIENTTYPE-006.title",
505
- message: "errors.PF-VALIDATE-CLIENTTYPE-006.message",
506
- level: "warning",
507
- code: 310,
508
- type: "modal"
509
- },
510
- ERROR_LOCATION: {
511
- title: "errors.ERROR_LOCATION.title",
512
- message: "errors.ERROR_LOCATION.message",
513
- level: "warning",
514
- code: 310,
515
- type: "modal"
516
- },
517
- //Terms and conditions
518
- "COMMUNICATIONS-INVALIDCODEEXCEPTION-001": {
519
- title: "errors.COMMUNICATIONS-INVALIDCODEEXCEPTION-001.title",
520
- message: "errors.COMMUNICATIONS-INVALIDCODEEXCEPTION-001.message",
521
- code: 400,
522
- type: "modal",
523
- level: "warning"
524
- },
525
- "COMMUNICATIONS-PREAPPLICATIONNOTFOUNDEXCEPTION-001": {
526
- title: "errors.COMMUNICATIONS-PREAPPLICATIONNOTFOUNDEXCEPTION-001.title",
527
- message: "errors.COMMUNICATIONS-PREAPPLICATIONNOTFOUNDEXCEPTION-001.message",
528
- code: 310,
529
- type: "modal",
530
- level: "warning"
531
- },
532
- "COMMUNICATIONS-PREAPPLICATIONNOTFOUNDEXCEPTION-002": {
533
- title: "errors.COMMUNICATIONS-PREAPPLICATIONNOTFOUNDEXCEPTION-002.title",
534
- message: "errors.COMMUNICATIONS-PREAPPLICATIONNOTFOUNDEXCEPTION-002.message",
535
- code: 310,
536
- type: "modal",
537
- level: "warning"
538
- },
539
- "COMMUNICATIONS-INVALIDEXPIRATIONDATEEXCEPTION-001": {
540
- title: "errors.COMMUNICATIONS-INVALIDEXPIRATIONDATEEXCEPTION-001.title",
541
- message: "errors.COMMUNICATIONS-INVALIDEXPIRATIONDATEEXCEPTION-001.message",
542
- code: 400,
543
- type: "modal",
544
- level: "warning"
545
- },
546
- "COMMUNICATIONS-INVALIDCODEEXCEPTION-002": {
547
- title: "errors.COMMUNICATIONS-INVALIDCODEEXCEPTION-002.title",
548
- message: "errors.COMMUNICATIONS-INVALIDCODEEXCEPTION-002.message",
549
- code: 400,
550
- type: "modal",
551
- level: "warning"
552
- },
553
- "COMMUNICATIONS-BLACKLISTEXCEPTION-001": {
554
- title: "errors.COMMUNICATIONS-BLACKLISTEXCEPTION-001.title",
555
- message: "errors.COMMUNICATIONS-BLACKLISTEXCEPTION-001.message",
556
- code: 403,
557
- type: "modal",
558
- level: "warning"
559
- },
560
- "COMMUNICATIONS-INVALIDNUMBEREXCEPTION-003": {
561
- title: "errors.COMMUNICATIONS-INVALIDNUMBEREXCEPTION-003.title",
562
- message: "errors.COMMUNICATIONS-INVALIDNUMBEREXCEPTION-003.message",
563
- code: 400,
564
- type: "modal",
565
- level: "warning"
566
- },
567
- "COMMUNICATIONS-INVALIDNUMBEREXCEPTION-004": {
568
- title: "errors.COMMUNICATIONS-INVALIDNUMBEREXCEPTION-004.title",
569
- message: "errors.COMMUNICATIONS-INVALIDNUMBEREXCEPTION-004.message",
570
- code: 400,
571
- type: "modal",
572
- level: "warning"
573
- },
574
- "COMMUNICATIONS-INVALIDNUMBEREXCEPTION-005": {
575
- title: "errors.COMMUNICATIONS-INVALIDNUMBEREXCEPTION-005.title",
576
- message: "errors.COMMUNICATIONS-INVALIDNUMBEREXCEPTION-005.message",
577
- code: 400,
578
- type: "modal",
579
- level: "warning"
580
- },
581
- // Calculator
582
- "SCORE-CLIENTREJECTED-01": {
583
- title: "errors.calculator.SCORE-CLIENTREJECTED-01.title",
584
- message: "errors.calculator.SCORE-CLIENTREJECTED-01.message",
585
- code: 310,
586
- type: "modal",
587
- level: "info"
588
- },
589
- "SCORE-CLIENTREJECTED-02": {
590
- title: "errors.calculator.SCORE-CLIENTREJECTED-02.title",
591
- message: "errors.calculator.SCORE-CLIENTREJECTED-02.message",
592
- code: 310,
593
- type: "modal",
594
- level: "info"
595
- },
596
- "CALCULATOR-MAPPING-01": {
597
- title: "errors.calculator.CALCULATOR-MAPPING-01.title",
598
- message: "errors.calculator.CALCULATOR-MAPPING-01.message",
599
- code: 420,
600
- type: "modal",
601
- level: "warning"
602
- },
603
- "CALCULATOR-MAPPING-02": {
604
- title: "errors.calculator.CALCULATOR-MAPPING-02.title",
605
- message: "errors.calculator.CALCULATOR-MAPPING-02.message",
606
- code: 420,
607
- type: "modal",
608
- level: "warning"
609
- },
610
- "CALCULATOR-MAPPING-03": {
611
- title: "errors.calculator.CALCULATOR-MAPPING-03.title",
612
- message: "errors.calculator.CALCULATOR-MAPPING-03.message",
613
- code: 420,
614
- type: "modal",
615
- level: "warning"
616
- },
617
- "CALCULATOR-MAPPING-04": {
618
- title: "errors.calculator.CALCULATOR-MAPPING-04.title",
619
- message: "errors.calculator.CALCULATOR-MAPPING-04.message",
620
- code: 420,
621
- type: "modal",
622
- level: "warning"
623
- },
624
- "CALCULATOR-BAD-REQUEST-01": {
625
- title: "errors.calculator.CALCULATOR-BAD-REQUEST-01.title",
626
- message: "errors.calculator.CALCULATOR-BAD-REQUEST-01.message",
627
- code: 420,
628
- type: "modal",
629
- level: "warning"
630
- },
631
- "CALCULATOR-BAD-REQUEST-02": {
632
- title: "errors.calculator.CALCULATOR-BAD-REQUEST-02.title",
633
- message: "errors.calculator.CALCULATOR-BAD-REQUEST-02.message",
634
- code: 420,
635
- type: "modal",
636
- level: "warning"
637
- },
638
- "CALCULATOR-BAD-REQUEST-03": {
639
- title: "errors.calculator.CALCULATOR-BAD-REQUEST-03.title",
640
- message: "errors.calculator.CALCULATOR-BAD-REQUEST-03.message",
641
- code: 420,
642
- type: "modal",
643
- level: "warning"
644
- },
645
- "CALCULATOR-BAD-REQUEST-04": {
646
- title: "errors.calculator.CALCULATOR-BAD-REQUEST-04.title",
647
- message: "errors.calculator.CALCULATOR-BAD-REQUEST-04.message",
648
- code: 420,
649
- type: "modal",
650
- level: "warning"
651
- },
652
- "CALCULATOR-BAD-REQUEST-05": {
653
- title: "errors.calculator.CALCULATOR-BAD-REQUEST-05.title",
654
- message: "errors.calculator.CALCULATOR-BAD-REQUEST-05.message",
655
- code: 420,
656
- type: "modal",
657
- level: "warning"
658
- },
659
- "CALCULATOR-BAD-REQUEST-06": {
660
- title: "errors.calculator.CALCULATOR-BAD-REQUEST-06.title",
661
- message: "errors.calculator.CALCULATOR-BAD-REQUEST-06.message",
662
- code: 420,
663
- type: "modal",
664
- level: "warning"
665
- },
666
- "CALCULATOR-BAD-REQUEST-07": {
667
- title: "errors.calculator.CALCULATOR-BAD-REQUEST-07.title",
668
- message: "errors.calculator.CALCULATOR-BAD-REQUEST-07.message",
669
- code: 420,
670
- type: "modal",
671
- level: "warning"
672
- },
673
- "CALCULATOR-BAD-REQUEST-08": {
674
- title: "errors.calculator.CALCULATOR-BAD-REQUEST-08.title",
675
- message: "errors.calculator.CALCULATOR-BAD-REQUEST-08.message",
676
- code: 420,
677
- type: "modal",
678
- level: "warning"
679
- },
680
- "CALCULATOR-BAD-REQUEST-09": {
681
- title: "errors.calculator.CALCULATOR-BAD-REQUEST-09.title",
682
- message: "errors.calculator.CALCULATOR-BAD-REQUEST-09.message",
683
- code: 420,
684
- type: "modal",
685
- level: "warning"
686
- },
687
- "CALCULATOR-BAD-REQUEST-10": {
688
- title: "errors.calculator.CALCULATOR-BAD-REQUEST-10.title",
689
- message: "errors.calculator.CALCULATOR-BAD-REQUEST-10.message",
690
- code: 420,
691
- type: "modal",
692
- level: "warning"
693
- },
694
- "CALCULATOR-BAD-REQUEST-11": {
695
- title: "errors.calculator.CALCULATOR-BAD-REQUEST-11.title",
696
- message: "errors.calculator.CALCULATOR-BAD-REQUEST-11.message",
697
- code: 420,
698
- type: "modal",
699
- level: "warning"
700
- },
701
- "CALCULATOR-BAD-REQUEST-12": {
702
- title: "errors.calculator.CALCULATOR-BAD-REQUEST-12.title",
703
- message: "errors.calculator.CALCULATOR-BAD-REQUEST-12.message",
704
- code: 420,
705
- type: "modal",
706
- level: "warning"
707
- },
708
- "CALCULATOR-BAD-REQUEST-13": {
709
- title: "errors.calculator.CALCULATOR-BAD-REQUEST-13.title",
710
- message: "errors.calculator.CALCULATOR-BAD-REQUEST-13.message",
711
- code: 420,
712
- type: "modal",
713
- level: "warning"
714
- },
715
- "CALCULATOR-BAD-REQUEST-14": {
716
- title: "errors.calculator.CALCULATOR-BAD-REQUEST-14.title",
717
- message: "errors.calculator.CALCULATOR-BAD-REQUEST-14.message",
718
- code: 420,
719
- type: "modal",
720
- level: "warning"
721
- },
722
- "CALCULATOR-BAD-REQUEST-15": {
723
- title: "errors.calculator.CALCULATOR-BAD-REQUEST-15.title",
724
- message: "errors.calculator.CALCULATOR-BAD-REQUEST-15.message",
725
- code: 420,
726
- type: "modal",
727
- level: "warning"
728
- },
729
- "CALCULATOR-BAD-REQUEST-16": {
730
- title: "errors.calculator.CALCULATOR-BAD-REQUEST-16.title",
731
- message: "errors.calculator.CALCULATOR-BAD-REQUEST-16.message",
732
- code: 420,
733
- type: "modal",
734
- level: "warning"
735
- },
736
- "CALCULATOR-BAD-REQUEST-17": {
737
- title: "errors.calculator.CALCULATOR-BAD-REQUEST-17.title",
738
- message: "errors.calculator.CALCULATOR-BAD-REQUEST-17.message",
739
- code: 420,
740
- type: "modal",
741
- level: "warning"
742
- },
743
- "CALCULATOR-BAD-REQUEST-18": {
744
- title: "errors.calculator.CALCULATOR-BAD-REQUEST-18.title",
745
- message: "errors.calculator.CALCULATOR-BAD-REQUEST-18.message",
746
- code: 420,
747
- type: "modal",
748
- level: "warning"
749
- },
750
- "CALCULATOR-BAD-REQUEST-19": {
751
- title: "errors.calculator.CALCULATOR-BAD-REQUEST-19.title",
752
- message: "errors.calculator.CALCULATOR-BAD-REQUEST-19.message",
753
- code: 420,
754
- type: "modal",
755
- level: "warning"
756
- },
757
- "CALCULATOR-BAD-REQUEST-20": {
758
- title: "errors.calculator.CALCULATOR-BAD-REQUEST-20.title",
759
- message: "errors.calculator.CALCULATOR-BAD-REQUEST-20.message",
760
- code: 420,
761
- type: "modal",
762
- level: "warning"
763
- },
764
- "CALCULATOR-BAD-REQUEST-21": {
765
- code: 420,
766
- type: "modal",
767
- message: "errors.default.message",
768
- title: "errors.default.title",
769
- level: "warning"
770
- },
771
- "CALCULATOR-BAD-REQUEST-22": {
772
- title: "errors.calculator.CALCULATOR-BAD-REQUEST-22.title",
773
- message: "errors.calculator.CALCULATOR-BAD-REQUEST-22.message",
774
- code: 420,
775
- type: "modal",
776
- level: "warning"
777
- },
778
- "CALCULATOR-BAD-REQUEST-23": {
779
- title: "errors.calculator.CALCULATOR-BAD-REQUEST-23.title",
780
- message: "errors.calculator.CALCULATOR-BAD-REQUEST-23.message",
781
- code: 420,
782
- type: "modal",
783
- level: "info"
784
- },
785
- "CALCULATOR-BAD-REQUEST-24": {
786
- title: "errors.calculator.CALCULATOR-BAD-REQUEST-24.title",
787
- message: "errors.calculator.CALCULATOR-BAD-REQUEST-24.message",
788
- code: 420,
789
- type: "modal",
790
- level: "warning"
791
- },
792
- "CALCULATOR-BAD-REQUEST-25": {
793
- title: "errors.calculator.CALCULATOR-BAD-REQUEST-25.title",
794
- message: "errors.calculator.CALCULATOR-BAD-REQUEST-25.message",
795
- code: 420,
796
- type: "modal",
797
- level: "warning"
798
- },
799
- "CALCULATOR-UNAUTHORIZED-01": {
800
- title: "errors.calculator.CALCULATOR-UNAUTHORIZED-01.title",
801
- message: "errors.calculator.CALCULATOR-UNAUTHORIZED-01.message",
802
- code: 420,
803
- type: "modal",
804
- level: "warning"
805
- },
806
- "CALCULATOR-UNAUTHORIZED-02": {
807
- title: "errors.calculator.CALCULATOR-UNAUTHORIZED-02.title",
808
- message: "errors.calculator.CALCULATOR-UNAUTHORIZED-02.message",
809
- code: 420,
810
- type: "modal",
811
- level: "warning"
812
- },
813
- "CALCULATOR-SERVICE-UNAVAILABLE-01": {
814
- title: "errors.calculator.CALCULATOR-SERVICE-UNAVAILABLE-01.title",
815
- message: "errors.calculator.CALCULATOR-SERVICE-UNAVAILABLE-01.message",
816
- code: 420,
817
- type: "modal",
818
- level: "warning"
819
- },
820
- "CALCULATOR-SERVICE-UNAVAILABLE-02": {
821
- title: "errors.calculator.CALCULATOR-SERVICE-UNAVAILABLE-02.title",
822
- message: "errors.calculator.CALCULATOR-SERVICE-UNAVAILABLE-02.message",
823
- code: 420,
824
- type: "modal",
825
- level: "warning"
826
- },
827
- "CALCULATOR-NOT-FOUND-01": {
828
- title: "errors.calculator.CALCULATOR-NOT-FOUND-01.title",
829
- message: "errors.calculator.CALCULATOR-NOT-FOUND-01.message",
830
- code: 420,
831
- type: "modal",
832
- level: "warning"
833
- },
834
- "CALCULATOR-NOT-FOUND-02": {
835
- title: "errors.calculator.CALCULATOR-NOT-FOUND-02.title",
836
- message: "errors.calculator.CALCULATOR-NOT-FOUND-02.message",
837
- code: 420,
838
- type: "modal",
839
- level: "warning"
840
- },
841
- "CALCULATOR-SAP-ERROR-01": {
842
- title: "errors.calculator.CALCULATOR-SAP-ERROR-01.title",
843
- message: "errors.calculator.CALCULATOR-SAP-ERROR-01.message",
844
- code: 420,
845
- type: "modal",
846
- level: "warning"
847
- },
848
- "CALCULATOR-SAP-ERROR-02": {
849
- title: "errors.calculator.CALCULATOR-SAP-ERROR-02.title",
850
- message: "errors.calculator.CALCULATOR-SAP-ERROR-02.message",
851
- code: 420,
852
- type: "modal",
853
- level: "warning"
854
- },
855
- "CALCULATOR-SAP-ERROR-03": {
856
- title: "errors.calculator.CALCULATOR-SAP-ERROR-03.title",
857
- message: "errors.calculator.CALCULATOR-SAP-ERROR-03.message",
858
- code: 420,
859
- type: "modal",
860
- level: "warning"
861
- },
862
- "CALCULATOR-SAP-ERROR-04": {
863
- title: "errors.calculator.CALCULATOR-SAP-ERROR-04.title",
864
- message: "errors.calculator.CALCULATOR-SAP-ERROR-04.message",
865
- code: 420,
866
- type: "modal",
867
- level: "warning"
868
- },
869
- "CALCULATOR-BAD-REQUEST-26": {
870
- title: "errors.calculator.CALCULATOR-BAD-REQUEST-26.title",
871
- message: "errors.calculator.CALCULATOR-BAD-REQUEST-26.message",
872
- code: 420,
873
- type: "modal",
874
- level: "warning"
875
- },
876
- "CALCULATOR-BAD-REQUEST-27": {
877
- title: "errors.calculator.CALCULATOR-BAD-REQUEST-27.title",
878
- message: "errors.calculator.CALCULATOR-BAD-REQUEST-27.message",
879
- code: 420,
880
- type: "modal",
881
- level: "warning"
882
- },
883
- "CALCULATOR-BAD-REQUEST-28": {
884
- title: "errors.calculator.CALCULATOR-BAD-REQUEST-28.title",
885
- message: "errors.calculator.CALCULATOR-BAD-REQUEST-28.message",
886
- code: 420,
887
- type: "modal",
888
- level: "warning"
889
- },
890
- "CALCULATOR-BAD-REQUEST-29": {
891
- title: "errors.calculator.CALCULATOR-BAD-REQUEST-29.title",
892
- message: "errors.calculator.CALCULATOR-BAD-REQUEST-29.message",
893
- code: 420,
894
- type: "modal",
895
- level: "warning"
896
- },
897
- "CALCULATOR-BAD-REQUEST-30": {
898
- title: "errors.calculator.CALCULATOR-BAD-REQUEST-30.title",
899
- message: "errors.calculator.CALCULATOR-BAD-REQUEST-30.message",
900
- code: 420,
901
- type: "modal",
902
- level: "warning"
903
- },
904
- "CALCULATOR-BAD-REQUEST-31": {
905
- title: "errors.calculator.CALCULATOR-BAD-REQUEST-31.title",
906
- message: "errors.calculator.CALCULATOR-BAD-REQUEST-31.message",
907
- code: 420,
908
- type: "modal",
909
- level: "warning"
910
- },
911
- "CALCULATOR-BAD-REQUEST-34": {
912
- title: "errors.calculator.CALCULATOR-BAD-REQUEST-34.title",
913
- message: "errors.calculator.CALCULATOR-BAD-REQUEST-34.message",
914
- code: 420,
915
- type: "modal",
916
- level: "warning"
917
- },
918
- "CALCULATOR-BAD-REQUEST-35": {
919
- title: "errors.calculator.CALCULATOR-BAD-REQUEST-35.title",
920
- message: "errors.calculator.CALCULATOR-BAD-REQUEST-35.message",
921
- code: 420,
922
- type: "modal",
923
- level: "warning"
924
- },
925
- //Apartadito
926
- "SAVING_NOT_FOUND-01": {
927
- title: "errors.calculator.SAVING_NOT_FOUND-01.title",
928
- message: "errors.calculator.SAVING_NOT_FOUND-01.message",
929
- code: 420,
930
- type: "modal",
931
- level: "warning"
932
- },
933
- "SAVING-BAD-REQUEST-01": {
934
- title: "errors.calculator.SAVING-BAD-REQUEST-01.title",
935
- message: "errors.calculator.SAVING-BAD-REQUEST-01.message",
936
- code: 420,
937
- type: "modal",
938
- level: "warning"
939
- },
940
- "SAVING-BAD-REQUEST-02": {
941
- title: "errors.calculator.SAVING-BAD-REQUEST-02.title",
942
- message: "errors.calculator.SAVING-BAD-REQUEST-02.message",
943
- code: 420,
944
- type: "modal",
945
- level: "warning"
946
- },
947
- "SAVING-BAD-REQUEST-03": {
948
- title: "errors.calculator.SAVING-BAD-REQUEST-03.title",
949
- message: "errors.calculator.SAVING-BAD-REQUEST-03.message",
950
- code: 420,
951
- type: "modal",
952
- level: "warning"
953
- },
954
- "SAVING-GENERIC-01": {
955
- title: "errors.calculator.SAVING-GENERIC-01.title",
956
- message: "errors.calculator.SAVING-GENERIC-01.message",
957
- code: 420,
958
- type: "modal",
959
- level: "warning"
960
- },
961
- //JORNADA
962
- "JOURNEY-INVALIDATEDATA-01": {
963
- title: "errors.JOURNEY-INVALIDATEDATA-01.title",
964
- message: "errors.JOURNEY-INVALIDATEDATA-01.message",
965
- code: 420,
966
- type: "modal",
967
- level: "warning"
968
- },
969
- "JOURNEY-DATANOTFOUND-02": {
970
- title: "errors.JOURNEY-DATANOTFOUND-02.title",
971
- message: "errors.JOURNEY-DATANOTFOUND-02.message",
972
- code: 420,
973
- type: "modal",
974
- level: "warning"
975
- },
976
- "JOURNEY-FLOWEND-03": {
977
- title: "errors.JOURNEY-FLOWEND-03.title",
978
- message: "errors.JOURNEY-FLOWEND-03.message",
979
- code: 420,
980
- type: "modal",
981
- level: "warning"
982
- },
983
- "PF-ERROR-GENERIC": {
984
- title: "errors.PF-ERROR-GENERIC.title",
985
- message: "errors.PF-ERROR-GENERIC.message",
986
- code: 420,
987
- type: "modal",
988
- level: "warning"
989
- },
990
- "JOURNEY-IDSTATEINCORRECT-04": {
991
- title: "errors.JOURNEY-IDSTATEINCORRECT-04.title",
992
- message: "errors.JOURNEY-IDSTATEINCORRECT-04.message",
993
- code: 420,
994
- type: "modal",
995
- level: "warning"
996
- },
997
- "JOURNEY-HEADERS-05": {
998
- title: "errors.JOURNEY-HEADERS-05.title",
999
- message: "errors.JOURNEY-HEADERS-05.message",
1000
- code: 420,
1001
- type: "modal",
1002
- level: "warning"
1003
- },
1004
- //INITIAL
1005
- "INITIAL-INVALIDATEDATA-01": {
1006
- title: "errors.INITIAL-INVALIDATEDATA-01.title",
1007
- message: "errors.INITIAL-INVALIDATEDATA-01.message",
1008
- code: 420,
1009
- type: "modal",
1010
- level: "warning"
1011
- },
1012
- "INITIAL-DATANOTFOUND-02": {
1013
- title: "errors.INITIAL-DATANOTFOUND-02.title",
1014
- message: "errors.INITIAL-DATANOTFOUND-02.message",
1015
- code: 420,
1016
- type: "modal",
1017
- level: "warning"
1018
- },
1019
- "INITIAL-HEADERS-03": {
1020
- title: "errors.INITIAL-HEADERS-03.title",
1021
- message: "errors.INITIAL-HEADERS-03.message",
1022
- code: 420,
1023
- type: "modal",
1024
- level: "warning"
1025
- },
1026
- //PERSONAL DATA
1027
- "PERSONALDATA-INVALID-MEDIA-TYPE": {
1028
- title: "errors.PERSONALDATA-INVALID-MEDIA-TYPE.title",
1029
- message: "errors.PERSONALDATA-INVALID-MEDIA-TYPE.message",
1030
- code: 420,
1031
- type: "modal",
1032
- level: "warning"
1033
- },
1034
- "PERSONALDATA-INVALID-CONTENT-TYPE": {
1035
- title: "errors.PERSONALDATA-INVALID-CONTENT-TYPE.title",
1036
- message: "errors.PERSONALDATA-INVALID-CONTENT-TYPE.message",
1037
- code: 420,
1038
- type: "modal",
1039
- level: "warning"
1040
- },
1041
- "PERSONALDATA-INVALID-DATA-TYPE": {
1042
- title: "errors.PERSONALDATA-INVALID-DATA-TYPE.title",
1043
- message: "errors.PERSONALDATA-INVALID-DATA-TYPE.message",
1044
- code: 420,
1045
- type: "modal",
1046
- level: "warning"
1047
- },
1048
- "PERSONALDATA-UNKNOWN-REGISTER-01": {
1049
- title: "errors.PERSONALDATA-UNKNOWN-REGISTER-01.title",
1050
- message: "errors.PERSONALDATA-UNKNOWN-REGISTER-01.message",
1051
- code: 420,
1052
- type: "modal",
1053
- level: "warning"
1054
- },
1055
- "PERSONALDATA-UNKNOWN-REGISTER-02": {
1056
- title: "errors.PERSONALDATA-UNKNOWN-REGISTER-02.title",
1057
- message: "errors.PERSONALDATA-UNKNOWN-REGISTER-02.message",
1058
- code: 420,
1059
- type: "modal",
1060
- level: "warning"
1061
- },
1062
- "PERSONALDATA-BAD-REQUEST-01": {
1063
- title: "errors.PERSONALDATA-BAD-REQUEST-01.title",
1064
- message: "errors.PERSONALDATA-BAD-REQUEST-01.message",
1065
- code: 420,
1066
- type: "modal",
1067
- level: "warning"
1068
- },
1069
- "PERSONALDATA-BAD-REQUEST-02": {
1070
- title: "errors.PERSONALDATA-BAD-REQUEST-02.title",
1071
- message: "errors.PERSONALDATA-BAD-REQUEST-02.message",
1072
- code: 420,
1073
- type: "modal",
1074
- level: "warning"
1075
- },
1076
- "PERSONALDATA-BAD-REQUEST-03": {
1077
- title: "errors.PERSONALDATA-BAD-REQUEST-03.title",
1078
- message: "errors.PERSONALDATA-BAD-REQUEST-03.message",
1079
- code: 420,
1080
- type: "modal",
1081
- level: "warning"
1082
- },
1083
- "PERSONALDATA-BAD-REQUEST-04": {
1084
- title: "errors.PERSONALDATA-BAD-REQUEST-04.title",
1085
- message: "errors.PERSONALDATA-BAD-REQUEST-04.message",
1086
- code: 420,
1087
- type: "modal",
1088
- level: "warning"
1089
- },
1090
- "PERSONALDATA-BAD-REQUEST-05": {
1091
- title: "errors.PERSONALDATA-BAD-REQUEST-05.title",
1092
- message: "errors.PERSONALDATA-BAD-REQUEST-05.message",
1093
- code: 420,
1094
- type: "modal",
1095
- level: "warning"
1096
- },
1097
- "PERSONALDATA-BAD-REQUEST-06": {
1098
- title: "errors.PERSONALDATA-BAD-REQUEST-06.title",
1099
- message: "errors.PERSONALDATA-BAD-REQUEST-06.message",
1100
- code: 420,
1101
- type: "modal",
1102
- level: "warning"
1103
- },
1104
- "PERSONALDATA-BAD-REQUEST-07": {
1105
- title: "errors.PERSONALDATA-BAD-REQUEST-07.title",
1106
- message: "errors.PERSONALDATA-BAD-REQUEST-07.message",
1107
- code: 420,
1108
- type: "modal",
1109
- level: "warning"
1110
- },
1111
- "PERSONALDATA-BAD-REQUEST-08": {
1112
- title: "errors.PERSONALDATA-BAD-REQUEST-08.title",
1113
- message: "errors.PERSONALDATA-BAD-REQUEST-08.message",
1114
- code: 420,
1115
- type: "modal",
1116
- level: "warning"
1117
- },
1118
- "PERSONALDATA-GENERIC-ERROR": {
1119
- title: "errors.PERSONALDATA-GENERIC-ERROR.title",
1120
- message: "errors.PERSONALDATA-GENERIC-ERROR.message",
1121
- code: 420,
1122
- type: "modal",
1123
- level: "warning"
1124
- },
1125
- "PERSONALDATA-ODATA-ERROR-01": {
1126
- title: "errors.PERSONALDATA-ODATA-ERROR-01.title",
1127
- message: "errors.PERSONALDATA-ODATA-ERROR-01.message",
1128
- code: 420,
1129
- type: "modal",
1130
- level: "warning"
1131
- },
1132
- "PERSONALDATA-UNKNOWN-FG-01": {
1133
- title: "errors.PERSONALDATA-UNKNOWN-FG-01.title",
1134
- message: "errors.PERSONALDATA-UNKNOWN-FG-01.message",
1135
- code: 420,
1136
- type: "modal",
1137
- level: "warning"
1138
- },
1139
- "PERSONALDATA-CU-ERROR-01": {
1140
- title: "errors.PERSONALDATA-CU-ERROR-01.title",
1141
- message: "errors.PERSONALDATA-CU-ERROR-01.message",
1142
- code: 420,
1143
- type: "modal",
1144
- level: "warning"
1145
- },
1146
- "PERSONALDATA-INVALID-RFC-01": {
1147
- title: "errors.PERSONALDATA-INVALID-RFC-01.title",
1148
- message: "errors.PERSONALDATA-INVALID-RFC-01.message",
1149
- code: 420,
1150
- type: "modal",
1151
- level: "warning"
1152
- },
1153
- "PERSONALDATA-BAD-REQUEST-09": {
1154
- title: "errors.PERSONALDATA-BAD-REQUEST-09.title",
1155
- message: "errors.PERSONALDATA-BAD-REQUEST-09.message",
1156
- code: 420,
1157
- type: "modal",
1158
- level: "warning"
1159
- },
1160
- "PERSONALDATA-BAD-REQUEST-10": {
1161
- title: "errors.PERSONALDATA-BAD-REQUEST-10.title",
1162
- message: "errors.PERSONALDATA-BAD-REQUEST-10.message",
1163
- code: 420,
1164
- type: "modal",
1165
- level: "warning"
1166
- },
1167
- "PERSONALDATA-BAD-REQUEST-WHITE-LIST-11": {
1168
- title: "errors.PERSONALDATA-BAD-REQUEST-WHITE-LIST-11.title",
1169
- message: "errors.PERSONALDATA-BAD-REQUEST-WHITE-LIST-11.message",
1170
- code: 420,
1171
- type: "modal",
1172
- level: "warning"
1173
- },
1174
- //PERSONAL REFERENCES
1175
- "PERSONALREFERENCE-ACTIVECREDITSEXCEPTION-01": {
1176
- title: "errors.PERSONALREFERENCE-ACTIVECREDITSEXCEPTION-01.title",
1177
- message: "errors.PERSONALREFERENCE-ACTIVECREDITSEXCEPTION-01.message",
1178
- code: 422,
1179
- type: "modal",
1180
- level: "warning"
1181
- },
1182
- "PERSONALREFERENCE-REFERENCESEXCEPTION-01": {
1183
- title: "errors.PERSONALREFERENCE-REFERENCESEXCEPTION-01.title",
1184
- message: "errors.PERSONALREFERENCE-REFERENCESEXCEPTION-01.message",
1185
- code: 422,
1186
- type: "modal",
1187
- level: "warning"
1188
- },
1189
- "PERSONALREFERENCE-BLACKLISTEXCEPTION-01": {
1190
- title: "errors.PERSONALREFERENCE-BLACKLISTEXCEPTION-01.title",
1191
- message: "errors.PERSONALREFERENCE-BLACKLISTEXCEPTION-01.message",
1192
- code: 403,
1193
- type: "modal",
1194
- level: "warning"
1195
- },
1196
- "PERSONALREFERENCE-INVALIDPHONENUMBEREXCEPTION-01": {
1197
- title: "errors.PERSONALREFERENCE-INVALIDPHONENUMBEREXCEPTION-01.title",
1198
- message: "errors.PERSONALREFERENCE-INVALIDPHONENUMBEREXCEPTION-01.message",
1199
- code: 400,
1200
- type: "modal",
1201
- level: "warning"
1202
- },
1203
- "PERSONALREFERENCE-DELETEREFERENCEEXCEPTION-001": {
1204
- title: "errors.PERSONALREFERENCE-DELETEREFERENCEEXCEPTION-001.title",
1205
- message: "errors.PERSONALREFERENCE-DELETEREFERENCEEXCEPTION-001.message",
1206
- code: 400,
1207
- type: "modal",
1208
- level: "warning"
1209
- },
1210
- "PERSONALREFERENCE-INVALIDREFERENCESRELATIONSHIPSCOUNTEXCEPTION-001": {
1211
- title: "errors.PERSONALREFERENCE-INVALIDREFERENCESRELATIONSHIPSCOUNTEXCEPTION-001.title",
1212
- message: "errors.PERSONALREFERENCE-INVALIDREFERENCESRELATIONSHIPSCOUNTEXCEPTION-001.message",
1213
- code: 420,
1214
- type: "modal",
1215
- level: "warning"
1216
- },
1217
- "PERSONALREFERENCE-INVALIDREFERENCESPARENTCOUNTEXCEPTION-001": {
1218
- title: "errors.PERSONALREFERENCE-INVALIDREFERENCESPARENTCOUNTEXCEPTION-001.title",
1219
- message: "errors.PERSONALREFERENCE-INVALIDREFERENCESPARENTCOUNTEXCEPTION-001.message",
1220
- code: 422,
1221
- type: "modal",
1222
- level: "warning"
1223
- },
1224
- "PERSONALREFERENCE-SELFREFERENCEEXCEPTION-001": {
1225
- title: "errors.PERSONALREFERENCE-SELFREFERENCEEXCEPTION-001.title",
1226
- message: "errors.PERSONALREFERENCE-SELFREFERENCEEXCEPTION-001.message",
1227
- code: 422,
1228
- type: "modal",
1229
- level: "warning"
1230
- },
1231
- //PAYMENTS
1232
- "SALES-SUMMARY-GENERIC-ERROR-001": {
1233
- title: "errors.SALES-SUMMARY-GENERIC-ERROR-001.title",
1234
- message: "errors.SALES-SUMMARY-GENERIC-ERROR-001.message",
1235
- code: 420,
1236
- type: "modal",
1237
- level: "warning"
1238
- },
1239
- "PF-SALES-SUMMARY-GENERIC-ERROR-001": {
1240
- title: "errors.PF-SALES-SUMMARY-GENERIC-ERROR-001.title",
1241
- message: "errors.PF-SALES-SUMMARY-GENERIC-ERROR-001.message",
1242
- code: 420,
1243
- type: "modal",
1244
- level: "warning"
1245
- },
1246
- "SALES-SUMMARY-ERROR-005": {
1247
- title: "errors.SALES-SUMMARY-ERROR-005.title",
1248
- message: "errors.SALES-SUMMARY-ERROR-005.message",
1249
- code: 420,
1250
- type: "modal",
1251
- level: "warning"
1252
- },
1253
- //REPRINT
1254
- "PF-CANCEL-APPLICATIONS-INVALIDCATALOGUEIDEXCEPTION-001": {
1255
- title: "errors.PF-CANCEL-APPLICATIONS-INVALIDCATALOGUEIDEXCEPTION-001.title",
1256
- message: "errors.PF-CANCEL-APPLICATIONS-INVALIDCATALOGUEIDEXCEPTION-001.message",
1257
- code: 420,
1258
- type: "modal",
1259
- level: "warning"
1260
- },
1261
- "PF-CANCEL-APPLICATION-GENERIC-ERROR-001": {
1262
- title: "errors.PF-CANCEL-APPLICATION-GENERIC-ERROR-001.title",
1263
- message: "errors.PF-CANCEL-APPLICATION-GENERIC-ERROR-001.message",
1264
- code: 420,
1265
- type: "modal",
1266
- level: "warning"
1267
- },
1268
- ...x,
1269
- ...K
1270
- };
1271
- class C extends F {
1272
- get(r = "default", e = "NOT_FOUND") {
1273
- var N, A;
1274
- if (r instanceof Error)
1275
- return this.logError(r.message), {
1276
- ...I.internalError,
1277
- title: S(I.internalError.title),
1278
- message: S(I.internalError.message),
1279
- uuid: e
1280
- };
1281
- const E = typeof r == "string" ? r : r.code ?? r.errorType;
1282
- this.logDebug("statusCode", E);
1283
- const l = typeof r == "string" ? {} : { ...r };
1284
- return {
1285
- ...I[E] ?? I.default,
1286
- title: S(
1287
- ((N = I[E]) == null ? void 0 : N.title) ?? I.default.title,
1288
- l
1289
- ),
1290
- message: S(
1291
- ((A = I[E]) == null ? void 0 : A.message) ?? I.default.message,
1292
- l
1293
- ),
1294
- payload: typeof r != "string" ? { errorCode: r.code } : {},
1295
- uuid: e
1296
- };
1297
- }
1298
- }
1299
- class ie extends v {
1300
- constructor() {
1301
- super(...arguments);
1302
- L(this, "uuid", "");
1303
- L(this, "session", null);
1304
- }
1305
- setSession(e) {
1306
- this.session = e;
1307
- }
1308
- getSession() {
1309
- if (!this.session)
1310
- throw new C().get("SESSION_NOT_FOUND");
1311
- return this.session;
1312
- }
1313
- returnData(e, E, l) {
1314
- const N = this.encode(E, l);
1315
- e.status(200).json(N);
1316
- }
1317
- returnError(e, E) {
1318
- return E != null && E.uuid ? e.status(520).json(E) : e.status(520).json(new C().get(E, this.uuid));
1319
- }
1320
- get(e) {
1321
- return this.logDebug("get ApiMiddleware"), (E, l) => {
1322
- var N;
1323
- this.logDebug("return ApiMiddleware"), this.uuid = (N = E == null ? void 0 : E.body) == null ? void 0 : N.uuid, O(E).pipe(
1324
- i(
1325
- (A) => B({
1326
- params: O(this.decode(A.body)),
1327
- headers: O(A.headers)
1328
- })
1329
- ),
1330
- i(
1331
- ({ params: A, headers: R }) => B({
1332
- response: e(A, this.uuid, R),
1333
- headers: O(R),
1334
- params: O(A)
1335
- })
1336
- ),
1337
- i(({ params: A, response: R, headers: s }) => (this.logDebug(
1338
- `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)}`
1339
- ), O(R))),
1340
- U((A) => {
1341
- var R;
1342
- return this.logError(
1343
- `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)}`
1344
- ), this.returnError(l, A), P;
1345
- })
1346
- ).subscribe({
1347
- next: (A) => {
1348
- this.logDebug("ApiMiddleware subscribe next", JSON.stringify(A)), this.returnData(l, A, this.uuid);
1349
- }
1350
- });
1351
- };
1352
- }
1353
- }
1354
- const X = process.env.ID_FRONT ?? "NOT_AVAILABLE";
1355
- class Ie extends h {
1356
- constructor(e, E, l = {}) {
1357
- super(l);
1358
- L(this, "apiUrl");
1359
- L(this, "method");
1360
- this.apiUrl = e, this.method = E ?? "POST";
1361
- }
1362
- errorHandler(e, E) {
1363
- if (e != null && e.errors)
1364
- throw new C().get(e.errors[0], E);
1365
- return !(e != null && e.errors);
1366
- }
1367
- formatParams(e) {
1368
- return JSON.stringify({
1369
- data: {
1370
- type: X,
1371
- attributes: e
1372
- }
1373
- });
1374
- }
1375
- fetchData(e = {}, E) {
1376
- return this.getHeaders().pipe(
1377
- i(
1378
- (l) => c(
1379
- this.apiUrl,
1380
- {
1381
- method: "POST",
1382
- headers: l,
1383
- body: this.formatParams(e),
1384
- selector: (N) => N.json()
1385
- }
1386
- ).pipe(
1387
- U((N) => {
1388
- throw this.logError(JSON.stringify(N)), this.logError(
1389
- `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${E} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
1390
- l
1391
- )} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
1392
- this.formatParams(e)
1393
- )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(N)} \x1B[33m`
1394
- ), new C().get("default", E);
1395
- }),
1396
- i((N) => (this.logDebug(
1397
- `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${E} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
1398
- l
1399
- )} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
1400
- this.formatParams(e)
1401
- )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(N)} \x1B[33m`
1402
- ), O(N)))
1403
- )
1404
- ),
1405
- w((l) => this.errorHandler(l, E))
1406
- );
1407
- }
1408
- fetchCustomData(e = {}, E, l) {
1409
- const N = {
1410
- "Content-Type": "application/json"
1411
- }, A = Q.stringify(
1412
- e
1413
- ), R = `${this.apiUrl}?${A}`, s = this.method === "GET" ? R : this.apiUrl;
1414
- return this.getHeaders(N, l).pipe(
1415
- i(
1416
- (T) => c(s, {
1417
- method: this.method,
1418
- headers: T,
1419
- body: this.method === "GET" ? null : JSON.stringify(e),
1420
- selector: (a) => a.json()
1421
- }).pipe(
1422
- U((a) => {
1423
- throw this.logError(JSON.stringify(a)), this.logError(
1424
- `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${s} \x1B[37m <UUID>: \x1B[33m ${E} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
1425
- T
1426
- )} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
1427
- this.formatParams(e)
1428
- )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(a)} \x1B[33m`
1429
- ), new C().get("default", E);
1430
- }),
1431
- i((a) => (this.logDebug(
1432
- `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${s} \x1B[37m \x1B[37m <METHOD>: \x1B[33m ${this.method} <UUID>: \x1B[33m ${E} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
1433
- T
1434
- )} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
1435
- e
1436
- )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(a)} \x1B[33m`
1437
- ), O(a)))
1438
- )
1439
- )
1440
- );
1441
- }
1442
- }
1443
- 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;
1444
- function _(t) {
1445
- return typeof t == "string" && J.test(t);
1446
- }
1447
- function $(t) {
1448
- if (!_(t))
1449
- throw TypeError("Invalid UUID");
1450
- let r;
1451
- const e = new Uint8Array(16);
1452
- 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;
1453
- }
1454
- function b(t) {
1455
- t = unescape(encodeURIComponent(t));
1456
- const r = [];
1457
- for (let e = 0; e < t.length; ++e)
1458
- r.push(t.charCodeAt(e));
1459
- return r;
1460
- }
1461
- const W = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", k = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
1462
- function j(t, r, e) {
1463
- function E(l, N, A, R) {
1464
- var s;
1465
- if (typeof l == "string" && (l = b(l)), typeof N == "string" && (N = $(N)), ((s = N) === null || s === void 0 ? void 0 : s.length) !== 16)
1466
- throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
1467
- let T = new Uint8Array(16 + l.length);
1468
- 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) {
1469
- R = R || 0;
1470
- for (let a = 0; a < 16; ++a)
1471
- A[R + a] = T[a];
1472
- return A;
1473
- }
1474
- return H(T);
1475
- }
1476
- try {
1477
- E.name = t;
1478
- } catch {
1479
- }
1480
- return E.DNS = W, E.URL = k, E;
1481
- }
1482
- function Z(t, r, e, E) {
1483
- switch (t) {
1484
- case 0:
1485
- return r & e ^ ~r & E;
1486
- case 1:
1487
- return r ^ e ^ E;
1488
- case 2:
1489
- return r & e ^ r & E ^ e & E;
1490
- case 3:
1491
- return r ^ e ^ E;
1492
- }
1493
- }
1494
- function D(t, r) {
1495
- return t << r | t >>> 32 - r;
1496
- }
1497
- function z(t) {
1498
- const r = [1518500249, 1859775393, 2400959708, 3395469782], e = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];
1499
- if (typeof t == "string") {
1500
- const A = unescape(encodeURIComponent(t));
1501
- t = [];
1502
- for (let R = 0; R < A.length; ++R)
1503
- t.push(A.charCodeAt(R));
1504
- } else
1505
- Array.isArray(t) || (t = Array.prototype.slice.call(t));
1506
- t.push(128);
1507
- const E = t.length / 4 + 2, l = Math.ceil(E / 16), N = new Array(l);
1508
- for (let A = 0; A < l; ++A) {
1509
- const R = new Uint32Array(16);
1510
- for (let s = 0; s < 16; ++s)
1511
- R[s] = t[A * 64 + s * 4] << 24 | t[A * 64 + s * 4 + 1] << 16 | t[A * 64 + s * 4 + 2] << 8 | t[A * 64 + s * 4 + 3];
1512
- N[A] = R;
1513
- }
1514
- N[l - 1][14] = (t.length - 1) * 8 / Math.pow(2, 32), N[l - 1][14] = Math.floor(N[l - 1][14]), N[l - 1][15] = (t.length - 1) * 8 & 4294967295;
1515
- for (let A = 0; A < l; ++A) {
1516
- const R = new Uint32Array(80);
1517
- for (let o = 0; o < 16; ++o)
1518
- R[o] = N[A][o];
1519
- for (let o = 16; o < 80; ++o)
1520
- R[o] = D(R[o - 3] ^ R[o - 8] ^ R[o - 14] ^ R[o - 16], 1);
1521
- let s = e[0], T = e[1], a = e[2], m = e[3], n = e[4];
1522
- for (let o = 0; o < 80; ++o) {
1523
- const d = Math.floor(o / 20), y = D(s, 5) + Z(d, T, a, m) + n + r[d] + R[o] >>> 0;
1524
- n = m, m = a, a = D(T, 30) >>> 0, T = s, s = y;
1525
- }
1526
- e[0] = e[0] + s >>> 0, e[1] = e[1] + T >>> 0, e[2] = e[2] + a >>> 0, e[3] = e[3] + m >>> 0, e[4] = e[4] + n >>> 0;
1527
- }
1528
- 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];
1529
- }
1530
- const q = j("v5", 80, z), p = q;
1531
- class Ce extends V {
1532
- constructor(e, E = "POST", l = {}) {
1533
- super();
1534
- L(this, "apiUrl");
1535
- L(this, "method");
1536
- L(this, "headers");
1537
- L(this, "isLoadingEnabled", !0);
1538
- L(this, "errorResponse");
1539
- this.apiUrl = e, this.method = E, this.headers = {
1540
- "Content-Type": "application/json",
1541
- ...l
1542
- };
1543
- }
1544
- setIsLoadingEnabled(e) {
1545
- this.isLoadingEnabled = e;
1546
- }
1547
- setErrorResponse(e) {
1548
- this.errorResponse = e;
1549
- }
1550
- fetchData(e = {}) {
1551
- const E = (/* @__PURE__ */ new Date()).toISOString(), l = p(E, p.URL), N = this.encode({ ...e }, l);
1552
- g.getInstance().setSubject(this.isLoadingEnabled);
1553
- const R = new URLSearchParams(window.location.search).get("flow") ?? "N/A";
1554
- return c(this.apiUrl, {
1555
- method: this.method,
1556
- headers: { ...this.headers, flow: R },
1557
- body: N,
1558
- selector: (s) => s.json()
1559
- }).pipe(
1560
- i((s) => O(this.decode(s))),
1561
- i((s) => s.code && (s.type === "modal" || s.type === "message") ? (this.logError(
1562
- `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${N} <RESPONSE>: ${JSON.stringify(s)}`
1563
- ), g.getInstance().setSubject(!1), M.getInstance().setSubject(s), this.errorResponse ? O(this.errorResponse) : P) : O(s)),
1564
- i((s) => (g.getInstance().setSubject(!1), this.logDebug(
1565
- `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${N} <RESPONSE>: ${JSON.stringify(s)}`
1566
- ), O(s))),
1567
- U((s) => (this.logError(
1568
- `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${N} <RESPONSE>: ${JSON.stringify(s)}`
1569
- ), g.getInstance().setSubject(!1), M.getInstance().setSubject(
1570
- new C().get(s, l)
1571
- ), this.errorResponse ? O(this.errorResponse) : P))
1572
- );
1573
- }
1574
- }
1
+ import { A as r, E as o, F as s, a as t } from "./fetch-service-fe-Bn43l_lH.js";
2
+ import { L as i, M as d, R as n } from "./loading-handler-Br21zGTA.js";
3
+ import { S as g } from "./service-token-D8bum6H0.js";
1575
4
  export {
1576
- ie as ApiMiddleware,
1577
- C as ErrorCatalog,
1578
- Ie as FetchServiceBE,
1579
- Ce as FetchServiceFE,
1580
- g as LoadingHandler,
1581
- M as MessageHandler,
1582
- Se as RxSubjectManager,
1583
- ne as ServiceToken
5
+ r as ApiMiddleware,
6
+ o as ErrorCatalog,
7
+ s as FetchServiceBE,
8
+ t as FetchServiceFE,
9
+ i as LoadingHandler,
10
+ d as MessageHandler,
11
+ n as RxSubjectManager,
12
+ g as ServiceToken
1584
13
  };