@tracktor/shared-module 0.16.0 → 0.17.1
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/CHANGELOG.md +2 -2
- package/dist/hooks/useResponseError/useResponseError.d.ts +1 -0
- package/dist/main.js +331 -324
- package/dist/main.umd.cjs +9 -9
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Le, { createContext as vr, useMemo as
|
|
2
|
-
var ie = { exports: {} },
|
|
1
|
+
import Le, { createContext as vr, useMemo as ue, useContext as se, useState as pr, useRef as gr, useLayoutEffect as mr, Suspense as hr, useEffect as Er, useCallback as Y } from "react";
|
|
2
|
+
var ie = { exports: {} }, M = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
5
|
* react-jsx-runtime.production.min.js
|
|
@@ -12,22 +12,22 @@ var ie = { exports: {} }, W = {};
|
|
|
12
12
|
var $e;
|
|
13
13
|
function yr() {
|
|
14
14
|
if ($e)
|
|
15
|
-
return
|
|
15
|
+
return M;
|
|
16
16
|
$e = 1;
|
|
17
|
-
var
|
|
18
|
-
function
|
|
17
|
+
var a = Le, u = Symbol.for("react.element"), o = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, l = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, v = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
+
function m(t, c, E) {
|
|
19
19
|
var h, C = {}, O = null, T = null;
|
|
20
|
-
|
|
20
|
+
E !== void 0 && (O = "" + E), c.key !== void 0 && (O = "" + c.key), c.ref !== void 0 && (T = c.ref);
|
|
21
21
|
for (h in c)
|
|
22
|
-
|
|
23
|
-
if (
|
|
24
|
-
for (h in c =
|
|
22
|
+
s.call(c, h) && !v.hasOwnProperty(h) && (C[h] = c[h]);
|
|
23
|
+
if (t && t.defaultProps)
|
|
24
|
+
for (h in c = t.defaultProps, c)
|
|
25
25
|
C[h] === void 0 && (C[h] = c[h]);
|
|
26
|
-
return { $$typeof:
|
|
26
|
+
return { $$typeof: u, type: t, key: O, ref: T, props: C, _owner: l.current };
|
|
27
27
|
}
|
|
28
|
-
return
|
|
28
|
+
return M.Fragment = o, M.jsx = m, M.jsxs = m, M;
|
|
29
29
|
}
|
|
30
|
-
var
|
|
30
|
+
var V = {};
|
|
31
31
|
/**
|
|
32
32
|
* @license React
|
|
33
33
|
* react-jsx-runtime.development.js
|
|
@@ -40,46 +40,46 @@ var M = {};
|
|
|
40
40
|
var Ie;
|
|
41
41
|
function Rr() {
|
|
42
42
|
return Ie || (Ie = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
-
var
|
|
44
|
-
function
|
|
43
|
+
var a = Le, u = Symbol.for("react.element"), o = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), t = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), A = Symbol.iterator, D = "@@iterator";
|
|
44
|
+
function F(e) {
|
|
45
45
|
if (e === null || typeof e != "object")
|
|
46
46
|
return null;
|
|
47
47
|
var r = A && e[A] || e[D];
|
|
48
48
|
return typeof r == "function" ? r : null;
|
|
49
49
|
}
|
|
50
|
-
var j =
|
|
51
|
-
function
|
|
50
|
+
var j = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
|
+
function _(e) {
|
|
52
52
|
{
|
|
53
|
-
for (var r = arguments.length,
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
|
|
54
|
+
n[i - 1] = arguments[i];
|
|
55
|
+
b("error", e, n);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function b(e, r, n) {
|
|
59
59
|
{
|
|
60
60
|
var i = j.ReactDebugCurrentFrame, p = i.getStackAddendum();
|
|
61
|
-
p !== "" && (r += "%s",
|
|
62
|
-
var
|
|
61
|
+
p !== "" && (r += "%s", n = n.concat([p]));
|
|
62
|
+
var g = n.map(function(d) {
|
|
63
63
|
return String(d);
|
|
64
64
|
});
|
|
65
|
-
|
|
65
|
+
g.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, g);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
var le = !1, ce = !1,
|
|
68
|
+
var le = !1, ce = !1, q = !1, Ne = !1, We = !1, fe;
|
|
69
69
|
fe = Symbol.for("react.module.reference");
|
|
70
70
|
function Me(e) {
|
|
71
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
71
|
+
return !!(typeof e == "string" || typeof e == "function" || e === s || e === v || We || e === l || e === E || e === h || Ne || e === T || le || ce || q || typeof e == "object" && e !== null && (e.$$typeof === O || e.$$typeof === C || e.$$typeof === m || e.$$typeof === t || e.$$typeof === c || // This needs to include all possible module reference object
|
|
72
72
|
// types supported by any Flight configuration anywhere since
|
|
73
73
|
// we don't know which Flight build this will end up being used
|
|
74
74
|
// with.
|
|
75
75
|
e.$$typeof === fe || e.getModuleId !== void 0));
|
|
76
76
|
}
|
|
77
|
-
function Ve(e, r,
|
|
77
|
+
function Ve(e, r, n) {
|
|
78
78
|
var i = e.displayName;
|
|
79
79
|
if (i)
|
|
80
80
|
return i;
|
|
81
81
|
var p = r.displayName || r.name || "";
|
|
82
|
-
return p !== "" ?
|
|
82
|
+
return p !== "" ? n + "(" + p + ")" : n;
|
|
83
83
|
}
|
|
84
84
|
function de(e) {
|
|
85
85
|
return e.displayName || "Context";
|
|
@@ -87,41 +87,41 @@ function Rr() {
|
|
|
87
87
|
function P(e) {
|
|
88
88
|
if (e == null)
|
|
89
89
|
return null;
|
|
90
|
-
if (typeof e.tag == "number" &&
|
|
90
|
+
if (typeof e.tag == "number" && _("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
91
91
|
return e.displayName || e.name || null;
|
|
92
92
|
if (typeof e == "string")
|
|
93
93
|
return e;
|
|
94
94
|
switch (e) {
|
|
95
|
-
case l:
|
|
96
|
-
return "Fragment";
|
|
97
95
|
case s:
|
|
96
|
+
return "Fragment";
|
|
97
|
+
case o:
|
|
98
98
|
return "Portal";
|
|
99
99
|
case v:
|
|
100
100
|
return "Profiler";
|
|
101
|
-
case
|
|
101
|
+
case l:
|
|
102
102
|
return "StrictMode";
|
|
103
|
-
case
|
|
103
|
+
case E:
|
|
104
104
|
return "Suspense";
|
|
105
105
|
case h:
|
|
106
106
|
return "SuspenseList";
|
|
107
107
|
}
|
|
108
108
|
if (typeof e == "object")
|
|
109
109
|
switch (e.$$typeof) {
|
|
110
|
-
case
|
|
110
|
+
case t:
|
|
111
111
|
var r = e;
|
|
112
112
|
return de(r) + ".Consumer";
|
|
113
|
-
case
|
|
114
|
-
var
|
|
115
|
-
return de(
|
|
113
|
+
case m:
|
|
114
|
+
var n = e;
|
|
115
|
+
return de(n._context) + ".Provider";
|
|
116
116
|
case c:
|
|
117
117
|
return Ve(e, e.render, "ForwardRef");
|
|
118
118
|
case C:
|
|
119
119
|
var i = e.displayName || null;
|
|
120
120
|
return i !== null ? i : P(e.type) || "Memo";
|
|
121
121
|
case O: {
|
|
122
|
-
var p = e,
|
|
122
|
+
var p = e, g = p._payload, d = p._init;
|
|
123
123
|
try {
|
|
124
|
-
return P(d(
|
|
124
|
+
return P(d(g));
|
|
125
125
|
} catch {
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
@@ -129,13 +129,13 @@ function Rr() {
|
|
|
129
129
|
}
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
|
-
var
|
|
132
|
+
var $ = Object.assign, N = 0, ve, pe, ge, me, he, Ee, ye;
|
|
133
133
|
function Re() {
|
|
134
134
|
}
|
|
135
135
|
Re.__reactDisabledLog = !0;
|
|
136
136
|
function Ye() {
|
|
137
137
|
{
|
|
138
|
-
if (
|
|
138
|
+
if (N === 0) {
|
|
139
139
|
ve = console.log, pe = console.info, ge = console.warn, me = console.error, he = console.group, Ee = console.groupCollapsed, ye = console.groupEnd;
|
|
140
140
|
var e = {
|
|
141
141
|
configurable: !0,
|
|
@@ -153,46 +153,46 @@ function Rr() {
|
|
|
153
153
|
groupEnd: e
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
|
-
|
|
156
|
+
N++;
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
function qe() {
|
|
160
160
|
{
|
|
161
|
-
if (
|
|
161
|
+
if (N--, N === 0) {
|
|
162
162
|
var e = {
|
|
163
163
|
configurable: !0,
|
|
164
164
|
enumerable: !0,
|
|
165
165
|
writable: !0
|
|
166
166
|
};
|
|
167
167
|
Object.defineProperties(console, {
|
|
168
|
-
log:
|
|
168
|
+
log: $({}, e, {
|
|
169
169
|
value: ve
|
|
170
170
|
}),
|
|
171
|
-
info:
|
|
171
|
+
info: $({}, e, {
|
|
172
172
|
value: pe
|
|
173
173
|
}),
|
|
174
|
-
warn:
|
|
174
|
+
warn: $({}, e, {
|
|
175
175
|
value: ge
|
|
176
176
|
}),
|
|
177
|
-
error:
|
|
177
|
+
error: $({}, e, {
|
|
178
178
|
value: me
|
|
179
179
|
}),
|
|
180
|
-
group:
|
|
180
|
+
group: $({}, e, {
|
|
181
181
|
value: he
|
|
182
182
|
}),
|
|
183
|
-
groupCollapsed:
|
|
183
|
+
groupCollapsed: $({}, e, {
|
|
184
184
|
value: Ee
|
|
185
185
|
}),
|
|
186
|
-
groupEnd:
|
|
186
|
+
groupEnd: $({}, e, {
|
|
187
187
|
value: ye
|
|
188
188
|
})
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
-
|
|
191
|
+
N < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
var K = j.ReactCurrentDispatcher, Z;
|
|
195
|
-
function
|
|
195
|
+
function z(e, r, n) {
|
|
196
196
|
{
|
|
197
197
|
if (Z === void 0)
|
|
198
198
|
try {
|
|
@@ -205,25 +205,25 @@ function Rr() {
|
|
|
205
205
|
` + Z + e;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
var Q = !1,
|
|
208
|
+
var Q = !1, U;
|
|
209
209
|
{
|
|
210
210
|
var ze = typeof WeakMap == "function" ? WeakMap : Map;
|
|
211
|
-
|
|
211
|
+
U = new ze();
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function _e(e, r) {
|
|
214
214
|
if (!e || Q)
|
|
215
215
|
return "";
|
|
216
216
|
{
|
|
217
|
-
var
|
|
218
|
-
if (
|
|
219
|
-
return
|
|
217
|
+
var n = U.get(e);
|
|
218
|
+
if (n !== void 0)
|
|
219
|
+
return n;
|
|
220
220
|
}
|
|
221
221
|
var i;
|
|
222
222
|
Q = !0;
|
|
223
223
|
var p = Error.prepareStackTrace;
|
|
224
224
|
Error.prepareStackTrace = void 0;
|
|
225
|
-
var
|
|
226
|
-
|
|
225
|
+
var g;
|
|
226
|
+
g = K.current, K.current = null, Ye();
|
|
227
227
|
try {
|
|
228
228
|
if (r) {
|
|
229
229
|
var d = function() {
|
|
@@ -260,87 +260,87 @@ function Rr() {
|
|
|
260
260
|
if (x && i && typeof x.stack == "string") {
|
|
261
261
|
for (var f = x.stack.split(`
|
|
262
262
|
`), w = i.stack.split(`
|
|
263
|
-
`),
|
|
263
|
+
`), y = f.length - 1, R = w.length - 1; y >= 1 && R >= 0 && f[y] !== w[R]; )
|
|
264
264
|
R--;
|
|
265
|
-
for (;
|
|
266
|
-
if (f[
|
|
267
|
-
if (
|
|
265
|
+
for (; y >= 1 && R >= 0; y--, R--)
|
|
266
|
+
if (f[y] !== w[R]) {
|
|
267
|
+
if (y !== 1 || R !== 1)
|
|
268
268
|
do
|
|
269
|
-
if (
|
|
269
|
+
if (y--, R--, R < 0 || f[y] !== w[R]) {
|
|
270
270
|
var S = `
|
|
271
|
-
` + f[
|
|
272
|
-
return e.displayName && S.includes("<anonymous>") && (S = S.replace("<anonymous>", e.displayName)), typeof e == "function" &&
|
|
271
|
+
` + f[y].replace(" at new ", " at ");
|
|
272
|
+
return e.displayName && S.includes("<anonymous>") && (S = S.replace("<anonymous>", e.displayName)), typeof e == "function" && U.set(e, S), S;
|
|
273
273
|
}
|
|
274
|
-
while (
|
|
274
|
+
while (y >= 1 && R >= 0);
|
|
275
275
|
break;
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
} finally {
|
|
279
|
-
Q = !1, K.current =
|
|
279
|
+
Q = !1, K.current = g, qe(), Error.prepareStackTrace = p;
|
|
280
280
|
}
|
|
281
|
-
var
|
|
282
|
-
return typeof e == "function" &&
|
|
281
|
+
var L = e ? e.displayName || e.name : "", Fe = L ? z(L) : "";
|
|
282
|
+
return typeof e == "function" && U.set(e, Fe), Fe;
|
|
283
283
|
}
|
|
284
|
-
function Ue(e, r,
|
|
285
|
-
return
|
|
284
|
+
function Ue(e, r, n) {
|
|
285
|
+
return _e(e, !1);
|
|
286
286
|
}
|
|
287
287
|
function Be(e) {
|
|
288
288
|
var r = e.prototype;
|
|
289
289
|
return !!(r && r.isReactComponent);
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function B(e, r, n) {
|
|
292
292
|
if (e == null)
|
|
293
293
|
return "";
|
|
294
294
|
if (typeof e == "function")
|
|
295
|
-
return
|
|
295
|
+
return _e(e, Be(e));
|
|
296
296
|
if (typeof e == "string")
|
|
297
|
-
return
|
|
297
|
+
return z(e);
|
|
298
298
|
switch (e) {
|
|
299
|
-
case
|
|
300
|
-
return
|
|
299
|
+
case E:
|
|
300
|
+
return z("Suspense");
|
|
301
301
|
case h:
|
|
302
|
-
return
|
|
302
|
+
return z("SuspenseList");
|
|
303
303
|
}
|
|
304
304
|
if (typeof e == "object")
|
|
305
305
|
switch (e.$$typeof) {
|
|
306
306
|
case c:
|
|
307
307
|
return Ue(e.render);
|
|
308
308
|
case C:
|
|
309
|
-
return
|
|
309
|
+
return B(e.type, r, n);
|
|
310
310
|
case O: {
|
|
311
|
-
var i = e, p = i._payload,
|
|
311
|
+
var i = e, p = i._payload, g = i._init;
|
|
312
312
|
try {
|
|
313
|
-
return
|
|
313
|
+
return B(g(p), r, n);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
return "";
|
|
319
319
|
}
|
|
320
|
-
var
|
|
321
|
-
function
|
|
320
|
+
var G = Object.prototype.hasOwnProperty, be = {}, we = j.ReactDebugCurrentFrame;
|
|
321
|
+
function J(e) {
|
|
322
322
|
if (e) {
|
|
323
|
-
var r = e._owner,
|
|
324
|
-
we.setExtraStackFrame(
|
|
323
|
+
var r = e._owner, n = B(e.type, e._source, r ? r.type : null);
|
|
324
|
+
we.setExtraStackFrame(n);
|
|
325
325
|
} else
|
|
326
326
|
we.setExtraStackFrame(null);
|
|
327
327
|
}
|
|
328
|
-
function Ge(e, r,
|
|
328
|
+
function Ge(e, r, n, i, p) {
|
|
329
329
|
{
|
|
330
|
-
var
|
|
330
|
+
var g = Function.call.bind(G);
|
|
331
331
|
for (var d in e)
|
|
332
|
-
if (
|
|
332
|
+
if (g(e, d)) {
|
|
333
333
|
var f = void 0;
|
|
334
334
|
try {
|
|
335
335
|
if (typeof e[d] != "function") {
|
|
336
|
-
var w = Error((i || "React class") + ": " +
|
|
336
|
+
var w = Error((i || "React class") + ": " + n + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
337
337
|
throw w.name = "Invariant Violation", w;
|
|
338
338
|
}
|
|
339
|
-
f = e[d](r, d, i,
|
|
340
|
-
} catch (
|
|
341
|
-
f =
|
|
339
|
+
f = e[d](r, d, i, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
|
+
} catch (y) {
|
|
341
|
+
f = y;
|
|
342
342
|
}
|
|
343
|
-
f && !(f instanceof Error) && (
|
|
343
|
+
f && !(f instanceof Error) && (J(p), _("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", i || "React class", n, d, typeof f), J(null)), f instanceof Error && !(f.message in be) && (be[f.message] = !0, J(p), _("Failed %s type: %s", n, f.message), J(null));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
@@ -350,8 +350,8 @@ function Rr() {
|
|
|
350
350
|
}
|
|
351
351
|
function Xe(e) {
|
|
352
352
|
{
|
|
353
|
-
var r = typeof Symbol == "function" && Symbol.toStringTag,
|
|
354
|
-
return
|
|
353
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, n = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
354
|
+
return n;
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
357
|
function He(e) {
|
|
@@ -366,9 +366,9 @@ function Rr() {
|
|
|
366
366
|
}
|
|
367
367
|
function Te(e) {
|
|
368
368
|
if (He(e))
|
|
369
|
-
return
|
|
369
|
+
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Xe(e)), Ce(e);
|
|
370
370
|
}
|
|
371
|
-
var
|
|
371
|
+
var W = j.ReactCurrentOwner, Ke = {
|
|
372
372
|
key: !0,
|
|
373
373
|
ref: !0,
|
|
374
374
|
__self: !0,
|
|
@@ -376,7 +376,7 @@ function Rr() {
|
|
|
376
376
|
}, Oe, Se, re;
|
|
377
377
|
re = {};
|
|
378
378
|
function Ze(e) {
|
|
379
|
-
if (
|
|
379
|
+
if (G.call(e, "ref")) {
|
|
380
380
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
381
381
|
if (r && r.isReactWarning)
|
|
382
382
|
return !1;
|
|
@@ -384,7 +384,7 @@ function Rr() {
|
|
|
384
384
|
return e.ref !== void 0;
|
|
385
385
|
}
|
|
386
386
|
function Qe(e) {
|
|
387
|
-
if (
|
|
387
|
+
if (G.call(e, "key")) {
|
|
388
388
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
389
389
|
if (r && r.isReactWarning)
|
|
390
390
|
return !1;
|
|
@@ -392,44 +392,44 @@ function Rr() {
|
|
|
392
392
|
return e.key !== void 0;
|
|
393
393
|
}
|
|
394
394
|
function er(e, r) {
|
|
395
|
-
if (typeof e.ref == "string" &&
|
|
396
|
-
var
|
|
397
|
-
re[
|
|
395
|
+
if (typeof e.ref == "string" && W.current && r && W.current.stateNode !== r) {
|
|
396
|
+
var n = P(W.current.type);
|
|
397
|
+
re[n] || (_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', P(W.current.type), e.ref), re[n] = !0);
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
function rr(e, r) {
|
|
401
401
|
{
|
|
402
|
-
var
|
|
403
|
-
Oe || (Oe = !0,
|
|
402
|
+
var n = function() {
|
|
403
|
+
Oe || (Oe = !0, _("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
404
404
|
};
|
|
405
|
-
|
|
406
|
-
get:
|
|
405
|
+
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
406
|
+
get: n,
|
|
407
407
|
configurable: !0
|
|
408
408
|
});
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
411
|
function tr(e, r) {
|
|
412
412
|
{
|
|
413
|
-
var
|
|
414
|
-
Se || (Se = !0,
|
|
413
|
+
var n = function() {
|
|
414
|
+
Se || (Se = !0, _("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
415
415
|
};
|
|
416
|
-
|
|
417
|
-
get:
|
|
416
|
+
n.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
417
|
+
get: n,
|
|
418
418
|
configurable: !0
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
var nr = function(e, r,
|
|
422
|
+
var nr = function(e, r, n, i, p, g, d) {
|
|
423
423
|
var f = {
|
|
424
424
|
// This tag allows us to uniquely identify this as a React Element
|
|
425
|
-
$$typeof:
|
|
425
|
+
$$typeof: u,
|
|
426
426
|
// Built-in properties that belong on the element
|
|
427
427
|
type: e,
|
|
428
428
|
key: r,
|
|
429
|
-
ref:
|
|
429
|
+
ref: n,
|
|
430
430
|
props: d,
|
|
431
431
|
// Record the component responsible for creating this element.
|
|
432
|
-
_owner:
|
|
432
|
+
_owner: g
|
|
433
433
|
};
|
|
434
434
|
return f._store = {}, Object.defineProperty(f._store, "validated", {
|
|
435
435
|
configurable: !1,
|
|
@@ -448,36 +448,36 @@ function Rr() {
|
|
|
448
448
|
value: p
|
|
449
449
|
}), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
|
|
450
450
|
};
|
|
451
|
-
function ar(e, r,
|
|
451
|
+
function ar(e, r, n, i, p) {
|
|
452
452
|
{
|
|
453
|
-
var
|
|
454
|
-
|
|
455
|
-
for (
|
|
456
|
-
|
|
453
|
+
var g, d = {}, f = null, w = null;
|
|
454
|
+
n !== void 0 && (Te(n), f = "" + n), Qe(r) && (Te(r.key), f = "" + r.key), Ze(r) && (w = r.ref, er(r, p));
|
|
455
|
+
for (g in r)
|
|
456
|
+
G.call(r, g) && !Ke.hasOwnProperty(g) && (d[g] = r[g]);
|
|
457
457
|
if (e && e.defaultProps) {
|
|
458
|
-
var
|
|
459
|
-
for (
|
|
460
|
-
d[
|
|
458
|
+
var y = e.defaultProps;
|
|
459
|
+
for (g in y)
|
|
460
|
+
d[g] === void 0 && (d[g] = y[g]);
|
|
461
461
|
}
|
|
462
462
|
if (f || w) {
|
|
463
463
|
var R = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
464
464
|
f && rr(d, R), w && tr(d, R);
|
|
465
465
|
}
|
|
466
|
-
return nr(e, f, w, p, i,
|
|
466
|
+
return nr(e, f, w, p, i, W.current, d);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
469
|
var te = j.ReactCurrentOwner, je = j.ReactDebugCurrentFrame;
|
|
470
|
-
function
|
|
470
|
+
function I(e) {
|
|
471
471
|
if (e) {
|
|
472
|
-
var r = e._owner,
|
|
473
|
-
je.setExtraStackFrame(
|
|
472
|
+
var r = e._owner, n = B(e.type, e._source, r ? r.type : null);
|
|
473
|
+
je.setExtraStackFrame(n);
|
|
474
474
|
} else
|
|
475
475
|
je.setExtraStackFrame(null);
|
|
476
476
|
}
|
|
477
477
|
var ne;
|
|
478
478
|
ne = !1;
|
|
479
479
|
function ae(e) {
|
|
480
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
480
|
+
return typeof e == "object" && e !== null && e.$$typeof === u;
|
|
481
481
|
}
|
|
482
482
|
function Pe() {
|
|
483
483
|
{
|
|
@@ -494,10 +494,10 @@ Check the render method of \`` + e + "`.";
|
|
|
494
494
|
function or(e) {
|
|
495
495
|
{
|
|
496
496
|
if (e !== void 0) {
|
|
497
|
-
var r = e.fileName.replace(/^.*[\\\/]/, ""),
|
|
497
|
+
var r = e.fileName.replace(/^.*[\\\/]/, ""), n = e.lineNumber;
|
|
498
498
|
return `
|
|
499
499
|
|
|
500
|
-
Check your code at ` + r + ":" +
|
|
500
|
+
Check your code at ` + r + ":" + n + ".";
|
|
501
501
|
}
|
|
502
502
|
return "";
|
|
503
503
|
}
|
|
@@ -507,10 +507,10 @@ Check your code at ` + r + ":" + t + ".";
|
|
|
507
507
|
{
|
|
508
508
|
var r = Pe();
|
|
509
509
|
if (!r) {
|
|
510
|
-
var
|
|
511
|
-
|
|
510
|
+
var n = typeof e == "string" ? e : e.displayName || e.name;
|
|
511
|
+
n && (r = `
|
|
512
512
|
|
|
513
|
-
Check the top-level render call using <` +
|
|
513
|
+
Check the top-level render call using <` + n + ">.");
|
|
514
514
|
}
|
|
515
515
|
return r;
|
|
516
516
|
}
|
|
@@ -520,12 +520,12 @@ Check the top-level render call using <` + t + ">.");
|
|
|
520
520
|
if (!e._store || e._store.validated || e.key != null)
|
|
521
521
|
return;
|
|
522
522
|
e._store.validated = !0;
|
|
523
|
-
var
|
|
524
|
-
if (xe[
|
|
523
|
+
var n = ir(r);
|
|
524
|
+
if (xe[n])
|
|
525
525
|
return;
|
|
526
|
-
xe[
|
|
526
|
+
xe[n] = !0;
|
|
527
527
|
var i = "";
|
|
528
|
-
e && e._owner && e._owner !== te.current && (i = " It was passed a child from " + P(e._owner.type) + "."),
|
|
528
|
+
e && e._owner && e._owner !== te.current && (i = " It was passed a child from " + P(e._owner.type) + "."), I(e), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, i), I(null);
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
531
|
function Ae(e, r) {
|
|
@@ -533,58 +533,58 @@ Check the top-level render call using <` + t + ">.");
|
|
|
533
533
|
if (typeof e != "object")
|
|
534
534
|
return;
|
|
535
535
|
if (ee(e))
|
|
536
|
-
for (var
|
|
537
|
-
var i = e[
|
|
536
|
+
for (var n = 0; n < e.length; n++) {
|
|
537
|
+
var i = e[n];
|
|
538
538
|
ae(i) && ke(i, r);
|
|
539
539
|
}
|
|
540
540
|
else if (ae(e))
|
|
541
541
|
e._store && (e._store.validated = !0);
|
|
542
542
|
else if (e) {
|
|
543
|
-
var p =
|
|
543
|
+
var p = F(e);
|
|
544
544
|
if (typeof p == "function" && p !== e.entries)
|
|
545
|
-
for (var
|
|
545
|
+
for (var g = p.call(e), d; !(d = g.next()).done; )
|
|
546
546
|
ae(d.value) && ke(d.value, r);
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function ur(e) {
|
|
551
551
|
{
|
|
552
552
|
var r = e.type;
|
|
553
553
|
if (r == null || typeof r == "string")
|
|
554
554
|
return;
|
|
555
|
-
var
|
|
555
|
+
var n;
|
|
556
556
|
if (typeof r == "function")
|
|
557
|
-
|
|
557
|
+
n = r.propTypes;
|
|
558
558
|
else if (typeof r == "object" && (r.$$typeof === c || // Note: Memo only checks outer props here.
|
|
559
559
|
// Inner props are checked in the reconciler.
|
|
560
560
|
r.$$typeof === C))
|
|
561
|
-
|
|
561
|
+
n = r.propTypes;
|
|
562
562
|
else
|
|
563
563
|
return;
|
|
564
|
-
if (
|
|
564
|
+
if (n) {
|
|
565
565
|
var i = P(r);
|
|
566
|
-
Ge(
|
|
566
|
+
Ge(n, e.props, "prop", i, e);
|
|
567
567
|
} else if (r.PropTypes !== void 0 && !ne) {
|
|
568
568
|
ne = !0;
|
|
569
569
|
var p = P(r);
|
|
570
|
-
|
|
570
|
+
_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
|
|
571
571
|
}
|
|
572
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
572
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function sr(e) {
|
|
576
576
|
{
|
|
577
|
-
for (var r = Object.keys(e.props),
|
|
578
|
-
var i = r[
|
|
577
|
+
for (var r = Object.keys(e.props), n = 0; n < r.length; n++) {
|
|
578
|
+
var i = r[n];
|
|
579
579
|
if (i !== "children" && i !== "key") {
|
|
580
|
-
|
|
580
|
+
I(e), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), I(null);
|
|
581
581
|
break;
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
|
-
e.ref !== null && (
|
|
584
|
+
e.ref !== null && (I(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), I(null));
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
function De(e, r,
|
|
587
|
+
function De(e, r, n, i, p, g) {
|
|
588
588
|
{
|
|
589
589
|
var d = Me(e);
|
|
590
590
|
if (!d) {
|
|
@@ -592,10 +592,10 @@ Check the top-level render call using <` + t + ">.");
|
|
|
592
592
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (f += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
593
593
|
var w = or(p);
|
|
594
594
|
w ? f += w : f += Pe();
|
|
595
|
-
var
|
|
596
|
-
e === null ?
|
|
595
|
+
var y;
|
|
596
|
+
e === null ? y = "null" : ee(e) ? y = "array" : e !== void 0 && e.$$typeof === u ? (y = "<" + (P(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : y = typeof e, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", y, f);
|
|
597
597
|
}
|
|
598
|
-
var R = ar(e, r,
|
|
598
|
+
var R = ar(e, r, n, p, g);
|
|
599
599
|
if (R == null)
|
|
600
600
|
return R;
|
|
601
601
|
if (d) {
|
|
@@ -603,26 +603,26 @@ Check the top-level render call using <` + t + ">.");
|
|
|
603
603
|
if (S !== void 0)
|
|
604
604
|
if (i)
|
|
605
605
|
if (ee(S)) {
|
|
606
|
-
for (var
|
|
607
|
-
Ae(S[
|
|
606
|
+
for (var L = 0; L < S.length; L++)
|
|
607
|
+
Ae(S[L], e);
|
|
608
608
|
Object.freeze && Object.freeze(S);
|
|
609
609
|
} else
|
|
610
|
-
|
|
610
|
+
_("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
611
611
|
else
|
|
612
612
|
Ae(S, e);
|
|
613
613
|
}
|
|
614
|
-
return e ===
|
|
614
|
+
return e === s ? sr(R) : ur(R), R;
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
|
-
function lr(e, r,
|
|
618
|
-
return De(e, r,
|
|
617
|
+
function lr(e, r, n) {
|
|
618
|
+
return De(e, r, n, !0);
|
|
619
619
|
}
|
|
620
|
-
function cr(e, r,
|
|
621
|
-
return De(e, r,
|
|
620
|
+
function cr(e, r, n) {
|
|
621
|
+
return De(e, r, n, !1);
|
|
622
622
|
}
|
|
623
623
|
var fr = cr, dr = lr;
|
|
624
|
-
|
|
625
|
-
}()),
|
|
624
|
+
V.Fragment = s, V.jsx = fr, V.jsxs = dr;
|
|
625
|
+
}()), V;
|
|
626
626
|
}
|
|
627
627
|
process.env.NODE_ENV === "production" ? ie.exports = yr() : ie.exports = Rr();
|
|
628
628
|
var k = ie.exports;
|
|
@@ -635,97 +635,97 @@ const H = vr({
|
|
|
635
635
|
useAuth: void 0,
|
|
636
636
|
useLocation: void 0
|
|
637
637
|
}), Or = ({
|
|
638
|
-
axios:
|
|
639
|
-
children:
|
|
640
|
-
translate:
|
|
641
|
-
useAuth:
|
|
642
|
-
Outlet:
|
|
638
|
+
axios: a,
|
|
639
|
+
children: u,
|
|
640
|
+
translate: o,
|
|
641
|
+
useAuth: s,
|
|
642
|
+
Outlet: l,
|
|
643
643
|
Navigate: v,
|
|
644
|
-
useLocation:
|
|
645
|
-
useGoogleTagManager:
|
|
644
|
+
useLocation: m,
|
|
645
|
+
useGoogleTagManager: t
|
|
646
646
|
}) => {
|
|
647
|
-
const c =
|
|
647
|
+
const c = ue(
|
|
648
648
|
() => ({
|
|
649
|
-
axios:
|
|
649
|
+
axios: a,
|
|
650
650
|
Navigate: v,
|
|
651
|
-
Outlet:
|
|
652
|
-
translate:
|
|
653
|
-
useAuth:
|
|
654
|
-
useGoogleTagManager:
|
|
655
|
-
useLocation:
|
|
651
|
+
Outlet: l,
|
|
652
|
+
translate: o,
|
|
653
|
+
useAuth: s,
|
|
654
|
+
useGoogleTagManager: t,
|
|
655
|
+
useLocation: m
|
|
656
656
|
}),
|
|
657
|
-
[v, a,
|
|
657
|
+
[v, l, a, o, s, t, m]
|
|
658
658
|
);
|
|
659
|
-
return /* @__PURE__ */ k.jsx(H.Provider, { value: c, children:
|
|
660
|
-
},
|
|
661
|
-
Fallback:
|
|
662
|
-
loginPath:
|
|
663
|
-
localStorageKey:
|
|
664
|
-
redirect401Path:
|
|
665
|
-
...
|
|
659
|
+
return /* @__PURE__ */ k.jsx(H.Provider, { value: c, children: u });
|
|
660
|
+
}, X = (a) => `RequireAuth require « ${a} » dependency. You can provide with InjectDependenciesProvider or directly in props.`, Sr = ({
|
|
661
|
+
Fallback: a,
|
|
662
|
+
loginPath: u = "/login",
|
|
663
|
+
localStorageKey: o = "user",
|
|
664
|
+
redirect401Path: s = "/login",
|
|
665
|
+
...l
|
|
666
666
|
}) => {
|
|
667
|
-
var D,
|
|
667
|
+
var D, F, j, _;
|
|
668
668
|
const {
|
|
669
|
-
axios: v =
|
|
670
|
-
useLocation:
|
|
671
|
-
useAuth:
|
|
672
|
-
Outlet: c =
|
|
673
|
-
Navigate:
|
|
674
|
-
} =
|
|
675
|
-
if (
|
|
676
|
-
throw new Error(
|
|
677
|
-
if (
|
|
678
|
-
throw new Error(
|
|
669
|
+
axios: v = l.axios,
|
|
670
|
+
useLocation: m = l.useLocation,
|
|
671
|
+
useAuth: t = l.useAuth,
|
|
672
|
+
Outlet: c = l.Outlet,
|
|
673
|
+
Navigate: E = l.Navigate
|
|
674
|
+
} = se(H);
|
|
675
|
+
if (t === void 0)
|
|
676
|
+
throw new Error(X("useAuth"));
|
|
677
|
+
if (m === void 0)
|
|
678
|
+
throw new Error(X("useLocation"));
|
|
679
679
|
if (c === void 0)
|
|
680
|
-
throw new Error(
|
|
681
|
-
if (
|
|
682
|
-
throw new Error(
|
|
683
|
-
const [h, C] = pr(null), { isLogged: O } =
|
|
680
|
+
throw new Error(X("Outlet"));
|
|
681
|
+
if (E === void 0)
|
|
682
|
+
throw new Error(X("Navigate"));
|
|
683
|
+
const [h, C] = pr(null), { isLogged: O } = t(), T = m(), A = gr(!1);
|
|
684
684
|
return mr(() => {
|
|
685
685
|
A.current || (A.current = !0, v == null || v.interceptors.response.use(
|
|
686
|
-
(
|
|
687
|
-
async (
|
|
688
|
-
var
|
|
689
|
-
return typeof
|
|
686
|
+
(b) => b,
|
|
687
|
+
async (b) => {
|
|
688
|
+
var q;
|
|
689
|
+
return typeof b == "object" && b && "response" in b && b.response && typeof b.response == "object" && "status" in b.response && b.response && typeof b.response == "object" && "status" in b.response && ((q = b == null ? void 0 : b.response) == null ? void 0 : q.status) === 401 && (v.defaults.headers.common.Authorization = null, localStorage.removeItem(o), C(s)), Promise.reject(b);
|
|
690
690
|
}
|
|
691
691
|
));
|
|
692
|
-
}, [v == null ? void 0 : v.defaults.headers.common, v == null ? void 0 : v.interceptors.response,
|
|
693
|
-
}, oe = (
|
|
692
|
+
}, [v == null ? void 0 : v.defaults.headers.common, v == null ? void 0 : v.interceptors.response, o, s]), O && !h ? /* @__PURE__ */ k.jsx(hr, { fallback: a, children: (F = (D = T.state) == null ? void 0 : D.from) != null && F.state && ((_ = (j = T.state) == null ? void 0 : j.from) == null ? void 0 : _.pathname) === u ? /* @__PURE__ */ k.jsx(E, { to: T.state.from.state.from.pathname + T.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ k.jsx(c, {}) }) : /* @__PURE__ */ k.jsx(E, { to: u, state: { from: T }, replace: !0 });
|
|
693
|
+
}, oe = (a) => `GTMSendPageView require « ${a} » dependency. You can provide with InjectDependenciesProvider or directly in props.`, jr = ({ ...a }) => {
|
|
694
694
|
const {
|
|
695
|
-
useLocation:
|
|
696
|
-
Outlet:
|
|
697
|
-
useGoogleTagManager:
|
|
698
|
-
} =
|
|
699
|
-
if (
|
|
695
|
+
useLocation: u = a.useLocation,
|
|
696
|
+
Outlet: o = a.Outlet,
|
|
697
|
+
useGoogleTagManager: s = a.useGoogleTagManager
|
|
698
|
+
} = se(H);
|
|
699
|
+
if (u === void 0)
|
|
700
700
|
throw new Error(oe("useLocation"));
|
|
701
|
-
if (
|
|
701
|
+
if (o === void 0)
|
|
702
702
|
throw new Error(oe("Outlet"));
|
|
703
|
-
if (
|
|
703
|
+
if (s === void 0)
|
|
704
704
|
throw new Error(oe("useGoogleTagManager"));
|
|
705
|
-
const { pathname:
|
|
705
|
+
const { pathname: l } = u(), { sendEvent: v } = s();
|
|
706
706
|
return Er(() => {
|
|
707
|
-
v({ event: "pageView", pathname:
|
|
708
|
-
}, [
|
|
707
|
+
v({ event: "pageView", pathname: l });
|
|
708
|
+
}, [l, v]), /* @__PURE__ */ k.jsx(o, {});
|
|
709
709
|
}, Pr = ({
|
|
710
|
-
axios:
|
|
711
|
-
baseURL:
|
|
712
|
-
tokenTypeKey:
|
|
713
|
-
userLocalStorageKey:
|
|
714
|
-
tokenKey:
|
|
710
|
+
axios: a,
|
|
711
|
+
baseURL: u,
|
|
712
|
+
tokenTypeKey: o = "tokenType",
|
|
713
|
+
userLocalStorageKey: s = "user",
|
|
714
|
+
tokenKey: l = "accessToken",
|
|
715
715
|
postContentType: v = "application/json"
|
|
716
716
|
}) => {
|
|
717
|
-
if (!
|
|
717
|
+
if (!a.defaults)
|
|
718
718
|
return null;
|
|
719
|
-
const
|
|
720
|
-
return
|
|
719
|
+
const m = localStorage.getItem(s), t = m ? JSON.parse(m) : null, c = t != null && t[o] ? t[o] : null, E = t != null && t[l] ? t[l] : null, h = m ? `${c} ${E}` : null;
|
|
720
|
+
return a.defaults.baseURL = u, a.defaults.headers.post["Content-Type"] = v, h && (a.defaults.headers.common.Authorization = h), null;
|
|
721
721
|
}, xr = ({
|
|
722
|
-
i18n:
|
|
723
|
-
debug:
|
|
724
|
-
initReactI18next:
|
|
725
|
-
resources:
|
|
726
|
-
LanguageDetector:
|
|
727
|
-
}) => (
|
|
728
|
-
debug:
|
|
722
|
+
i18n: a,
|
|
723
|
+
debug: u,
|
|
724
|
+
initReactI18next: o,
|
|
725
|
+
resources: s,
|
|
726
|
+
LanguageDetector: l
|
|
727
|
+
}) => (a != null && a.isInitialized || (a.use(l).use(o).init({
|
|
728
|
+
debug: u,
|
|
729
729
|
fallbackLng: "en",
|
|
730
730
|
interpolation: {
|
|
731
731
|
escapeValue: !1
|
|
@@ -735,150 +735,157 @@ const H = vr({
|
|
|
735
735
|
bindI18n: !1,
|
|
736
736
|
useSuspense: !0
|
|
737
737
|
},
|
|
738
|
-
resources:
|
|
738
|
+
resources: s,
|
|
739
739
|
returnNull: !1
|
|
740
740
|
}).then(() => {
|
|
741
|
-
document.documentElement.lang !==
|
|
742
|
-
}),
|
|
741
|
+
document.documentElement.lang !== a.resolvedLanguage && a.resolvedLanguage && document.documentElement.setAttribute("lang", a.resolvedLanguage);
|
|
742
|
+
}), a.on("languageChanged", (v) => {
|
|
743
743
|
document.documentElement.setAttribute("lang", v);
|
|
744
744
|
})), null), kr = ({
|
|
745
|
-
dsn:
|
|
746
|
-
sentry:
|
|
747
|
-
integrations:
|
|
748
|
-
tracesSampleRate:
|
|
749
|
-
routingInstrumentationDependencies:
|
|
745
|
+
dsn: a,
|
|
746
|
+
sentry: u,
|
|
747
|
+
integrations: o,
|
|
748
|
+
tracesSampleRate: s,
|
|
749
|
+
routingInstrumentationDependencies: l,
|
|
750
750
|
replaysSessionSampleRate: v,
|
|
751
|
-
replaysOnErrorSampleRate:
|
|
752
|
-
tracePropagationTargets:
|
|
751
|
+
replaysOnErrorSampleRate: m,
|
|
752
|
+
tracePropagationTargets: t,
|
|
753
753
|
ignoreErrors: c,
|
|
754
|
-
debug:
|
|
755
|
-
}) => (
|
|
756
|
-
debug:
|
|
757
|
-
dsn:
|
|
754
|
+
debug: E
|
|
755
|
+
}) => (u.isInitialized() || (E || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && u.init({
|
|
756
|
+
debug: E,
|
|
757
|
+
dsn: a,
|
|
758
758
|
ignoreErrors: c || [/Failed to fetch dynamically imported module/],
|
|
759
759
|
integrations: [
|
|
760
|
-
new
|
|
761
|
-
routingInstrumentation:
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
760
|
+
new u.BrowserTracing({
|
|
761
|
+
routingInstrumentation: u.reactRouterV6Instrumentation(
|
|
762
|
+
l.useEffect,
|
|
763
|
+
l.useLocation,
|
|
764
|
+
l.useNavigationType,
|
|
765
|
+
l.createRoutesFromChildren,
|
|
766
|
+
l.matchRoutes
|
|
767
767
|
)
|
|
768
768
|
}),
|
|
769
|
-
|
|
770
|
-
...
|
|
769
|
+
u.replayIntegration(),
|
|
770
|
+
...o || []
|
|
771
771
|
],
|
|
772
|
-
replaysOnErrorSampleRate:
|
|
772
|
+
replaysOnErrorSampleRate: m || 1,
|
|
773
773
|
replaysSessionSampleRate: v || 0.1,
|
|
774
|
-
tracePropagationTargets:
|
|
775
|
-
tracesSampleRate:
|
|
776
|
-
}), null), Ar = ({ IMaskMixin:
|
|
777
|
-
const
|
|
774
|
+
tracePropagationTargets: t,
|
|
775
|
+
tracesSampleRate: s || 1
|
|
776
|
+
}), null), Ar = ({ IMaskMixin: a, ...u }) => {
|
|
777
|
+
const o = ue(
|
|
778
778
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
779
|
-
() =>
|
|
780
|
-
[
|
|
779
|
+
() => a(({ TextField: s, ...l }) => /* @__PURE__ */ k.jsx(s, { ...l })),
|
|
780
|
+
[a]
|
|
781
781
|
);
|
|
782
|
-
return /* @__PURE__ */ k.jsx(
|
|
783
|
-
}, Dr = ({ mapbox:
|
|
784
|
-
children:
|
|
785
|
-
defaultOptions:
|
|
786
|
-
QueryClient:
|
|
787
|
-
QueryClientProvider:
|
|
782
|
+
return /* @__PURE__ */ k.jsx(o, { ...u });
|
|
783
|
+
}, Dr = ({ mapbox: a, accessToken: u }) => (a && u && (a.accessToken = u), null), Fr = ({
|
|
784
|
+
children: a,
|
|
785
|
+
defaultOptions: u,
|
|
786
|
+
QueryClient: o,
|
|
787
|
+
QueryClientProvider: s
|
|
788
788
|
}) => {
|
|
789
|
-
const
|
|
789
|
+
const l = new o({
|
|
790
790
|
defaultOptions: {
|
|
791
791
|
queries: {
|
|
792
792
|
refetchOnWindowFocus: !1,
|
|
793
793
|
retry: 3,
|
|
794
|
-
...
|
|
794
|
+
...u
|
|
795
795
|
}
|
|
796
796
|
}
|
|
797
797
|
});
|
|
798
|
-
return /* @__PURE__ */ k.jsx(
|
|
799
|
-
}, $r = (
|
|
800
|
-
const { unknownErrorTranslationKey:
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
798
|
+
return /* @__PURE__ */ k.jsx(s, { client: l, children: a });
|
|
799
|
+
}, $r = (a) => {
|
|
800
|
+
const { unknownErrorTranslationKey: u = "error.unknownError" } = a || {}, { translate: o = a == null ? void 0 : a.translate } = se(H), s = o ? o(u) : "Unknown error", l = Y(
|
|
801
|
+
(m) => {
|
|
802
|
+
var c, E, h, C, O, T, A, D, F;
|
|
803
|
+
const { response: t } = m || {};
|
|
804
|
+
return t != null && t.reason ? String(t.reason) : (c = t == null ? void 0 : t.data) != null && c.reason ? String(t.data.reason) : (E = t == null ? void 0 : t.data) != null && E.message ? String(t.data.message) : (C = (h = t == null ? void 0 : t.data) == null ? void 0 : h.detail) != null && C.length && Array.isArray((O = t == null ? void 0 : t.data) == null ? void 0 : O.detail) && ((A = (T = t == null ? void 0 : t.data) == null ? void 0 : T.detail[0]) != null && A.msg) && typeof ((F = (D = t == null ? void 0 : t.data) == null ? void 0 : D.detail[0]) == null ? void 0 : F.msg) == "string" ? String(t.data.detail[0].msg) : s;
|
|
805
|
+
},
|
|
806
|
+
[s]
|
|
807
|
+
), v = Y(
|
|
808
|
+
(m) => {
|
|
809
|
+
var c, E, h;
|
|
810
|
+
const { response: t } = m || {};
|
|
811
|
+
return o && (t != null && t.error_code) ? o(t == null ? void 0 : t.error_code) : o && ((c = t == null ? void 0 : t.data) != null && c.error_code) ? o((E = t == null ? void 0 : t.data) == null ? void 0 : E.error_code) : t != null && t.error_code ? String(t == null ? void 0 : t.error_code) : (h = t == null ? void 0 : t.data) != null && h.error_code ? String(t.data.error_code) : s;
|
|
806
812
|
},
|
|
807
813
|
[s, o]
|
|
808
|
-
)
|
|
814
|
+
);
|
|
815
|
+
return { printError: l, printErrorCode: v };
|
|
809
816
|
}, Ir = ({
|
|
810
|
-
data:
|
|
811
|
-
fetchNextPage:
|
|
812
|
-
isFetchingNextPage:
|
|
813
|
-
isInitialLoading:
|
|
814
|
-
isLoading:
|
|
817
|
+
data: a,
|
|
818
|
+
fetchNextPage: u,
|
|
819
|
+
isFetchingNextPage: o,
|
|
820
|
+
isInitialLoading: s,
|
|
821
|
+
isLoading: l,
|
|
815
822
|
enabled: v = !0
|
|
816
823
|
}) => {
|
|
817
|
-
const
|
|
824
|
+
const m = Y(
|
|
818
825
|
async (c) => {
|
|
819
|
-
|
|
826
|
+
o || !v || await u({ pageParam: (c == null ? void 0 : c.pageParam) || c.visibleRowsCount });
|
|
820
827
|
},
|
|
821
|
-
[v,
|
|
822
|
-
),
|
|
823
|
-
if (
|
|
824
|
-
return
|
|
825
|
-
}, [
|
|
828
|
+
[v, u, o]
|
|
829
|
+
), t = ue(() => {
|
|
830
|
+
if (a)
|
|
831
|
+
return a.pages.reduce((c, E) => [...c, ...E], []);
|
|
832
|
+
}, [a]);
|
|
826
833
|
return {
|
|
827
|
-
fetchNextPageOnRowsScrollEnd:
|
|
828
|
-
isLoading:
|
|
829
|
-
loadingVariant:
|
|
830
|
-
rows:
|
|
834
|
+
fetchNextPageOnRowsScrollEnd: m,
|
|
835
|
+
isLoading: o || l,
|
|
836
|
+
loadingVariant: s ? "skeleton" : "linear",
|
|
837
|
+
rows: t
|
|
831
838
|
};
|
|
832
|
-
}, Lr = (
|
|
833
|
-
const
|
|
834
|
-
({ tokenType:
|
|
835
|
-
|
|
839
|
+
}, Lr = (a) => {
|
|
840
|
+
const u = Y(
|
|
841
|
+
({ tokenType: s, accessToken: l }) => {
|
|
842
|
+
a.defaults.headers.common.Authorization = `${s} ${l}`;
|
|
836
843
|
},
|
|
837
|
-
[
|
|
844
|
+
[a.defaults.headers.common]
|
|
838
845
|
);
|
|
839
846
|
return {
|
|
840
|
-
clearAuthenticationToken:
|
|
841
|
-
|
|
842
|
-
}, [
|
|
843
|
-
setAuthenticationToken:
|
|
847
|
+
clearAuthenticationToken: Y(() => {
|
|
848
|
+
a.defaults.headers.common.Authorization = null;
|
|
849
|
+
}, [a.defaults.headers.common]),
|
|
850
|
+
setAuthenticationToken: u
|
|
844
851
|
};
|
|
845
|
-
},
|
|
846
|
-
const
|
|
847
|
-
return
|
|
848
|
-
}, wr = (
|
|
849
|
-
const
|
|
850
|
-
return `${
|
|
851
|
-
}, Cr = (
|
|
852
|
-
if (
|
|
853
|
-
return (
|
|
852
|
+
}, _r = (a) => a.charAt(0).toUpperCase() + a.slice(1).toLowerCase(), br = (a) => {
|
|
853
|
+
const s = a.split("/").filter((l) => l.length > 0).map((l) => l.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((c) => c.charAt(0).toUpperCase() + c.slice(1)).join("")).join("");
|
|
854
|
+
return s.charAt(0).toLowerCase() + s.slice(1);
|
|
855
|
+
}, wr = (a, u, o) => {
|
|
856
|
+
const s = br(u), l = _r(o);
|
|
857
|
+
return `${s}${l}`;
|
|
858
|
+
}, Cr = (a) => {
|
|
859
|
+
if (a)
|
|
860
|
+
return (a == null ? void 0 : a.reduce((u, o) => (u[o] = {
|
|
854
861
|
query: {
|
|
855
862
|
useInfinite: !0,
|
|
856
863
|
useInfiniteQueryParam: "offset"
|
|
857
864
|
}
|
|
858
|
-
},
|
|
859
|
-
}, Nr = (
|
|
860
|
-
const { input:
|
|
865
|
+
}, u), {})) || {};
|
|
866
|
+
}, Nr = (a) => {
|
|
867
|
+
const { input: u = "./openapi.json", operationsToGenerateInfiniteQueryHook: o = void 0 } = a || {};
|
|
861
868
|
return {
|
|
862
869
|
api: {
|
|
863
870
|
hooks: {
|
|
864
871
|
afterAllFilesWrite: "prettier src/api/ --write"
|
|
865
872
|
},
|
|
866
|
-
input:
|
|
873
|
+
input: u,
|
|
867
874
|
output: {
|
|
868
875
|
client: "react-query",
|
|
869
876
|
mode: "tags-split",
|
|
870
877
|
override: {
|
|
871
|
-
header: (
|
|
878
|
+
header: (s) => [
|
|
872
879
|
"Generated by orval 🍺",
|
|
873
|
-
...
|
|
874
|
-
...
|
|
880
|
+
...s.title ? [s.title] : [],
|
|
881
|
+
...s.description ? [s.description] : []
|
|
875
882
|
],
|
|
876
883
|
mutator: {
|
|
877
884
|
name: "axiosCustomInstance",
|
|
878
885
|
path: `${__dirname}/config/orval/mutator/axiosCustomInstance.ts`
|
|
879
886
|
},
|
|
880
887
|
operationName: wr,
|
|
881
|
-
...(
|
|
888
|
+
...(o == null ? void 0 : o.length) && { operations: Cr(o) },
|
|
882
889
|
query: {
|
|
883
890
|
useQuery: !0
|
|
884
891
|
}
|