@tracktor/shared-module 0.15.0 → 0.15.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.
- package/CHANGELOG.md +2 -2
- package/dist/components/Utils/SentryConfig.d.ts +63 -3
- package/dist/main.js +315 -277
- package/dist/main.umd.cjs +8 -8
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
var ie = { exports: {} },
|
|
1
|
+
import We, { createContext as pr, useMemo as ue, useContext as se, useState as gr, useLayoutEffect as X, Suspense as hr, useEffect as mr, useCallback as J } from "react";
|
|
2
|
+
var ie = { exports: {} }, N = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
5
|
* react-jsx-runtime.production.min.js
|
|
@@ -9,25 +9,25 @@ var ie = { exports: {} }, W = {};
|
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
|
-
var
|
|
12
|
+
var De;
|
|
13
13
|
function Er() {
|
|
14
|
-
if (
|
|
15
|
-
return
|
|
16
|
-
|
|
17
|
-
var n =
|
|
18
|
-
function s(
|
|
14
|
+
if (De)
|
|
15
|
+
return N;
|
|
16
|
+
De = 1;
|
|
17
|
+
var n = We, o = Symbol.for("react.element"), u = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, a = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, v = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
+
function s(p, c, b) {
|
|
19
19
|
var E, w = {}, T = null, C = null;
|
|
20
|
-
b !== void 0 && (T = "" + b),
|
|
21
|
-
for (E in
|
|
22
|
-
l.call(
|
|
23
|
-
if (
|
|
24
|
-
for (E in
|
|
25
|
-
w[E] === void 0 && (w[E] =
|
|
26
|
-
return { $$typeof:
|
|
20
|
+
b !== void 0 && (T = "" + b), c.key !== void 0 && (T = "" + c.key), c.ref !== void 0 && (C = c.ref);
|
|
21
|
+
for (E in c)
|
|
22
|
+
l.call(c, E) && !v.hasOwnProperty(E) && (w[E] = c[E]);
|
|
23
|
+
if (p && p.defaultProps)
|
|
24
|
+
for (E in c = p.defaultProps, c)
|
|
25
|
+
w[E] === void 0 && (w[E] = c[E]);
|
|
26
|
+
return { $$typeof: o, type: p, key: T, ref: C, props: w, _owner: a.current };
|
|
27
27
|
}
|
|
28
|
-
return
|
|
28
|
+
return N.Fragment = u, N.jsx = s, N.jsxs = s, N;
|
|
29
29
|
}
|
|
30
|
-
var
|
|
30
|
+
var I = {};
|
|
31
31
|
/**
|
|
32
32
|
* @license React
|
|
33
33
|
* react-jsx-runtime.development.js
|
|
@@ -37,49 +37,49 @@ var M = {};
|
|
|
37
37
|
* This source code is licensed under the MIT license found in the
|
|
38
38
|
* LICENSE file in the root directory of this source tree.
|
|
39
39
|
*/
|
|
40
|
-
var
|
|
41
|
-
function
|
|
42
|
-
return
|
|
43
|
-
var n =
|
|
44
|
-
function
|
|
40
|
+
var Le;
|
|
41
|
+
function Rr() {
|
|
42
|
+
return Le || (Le = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
+
var n = We, o = Symbol.for("react.element"), u = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), p = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), A = Symbol.iterator, k = "@@iterator";
|
|
44
|
+
function M(e) {
|
|
45
45
|
if (e === null || typeof e != "object")
|
|
46
46
|
return null;
|
|
47
47
|
var r = A && e[A] || e[k];
|
|
48
48
|
return typeof r == "function" ? r : null;
|
|
49
49
|
}
|
|
50
50
|
var S = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
|
-
function
|
|
51
|
+
function g(e) {
|
|
52
52
|
{
|
|
53
|
-
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0),
|
|
54
|
-
t[
|
|
53
|
+
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
|
|
54
|
+
t[i - 1] = arguments[i];
|
|
55
55
|
le("error", e, t);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
function le(e, r, t) {
|
|
59
59
|
{
|
|
60
|
-
var
|
|
61
|
-
|
|
62
|
-
var
|
|
60
|
+
var i = S.ReactDebugCurrentFrame, h = i.getStackAddendum();
|
|
61
|
+
h !== "" && (r += "%s", t = t.concat([h]));
|
|
62
|
+
var m = t.map(function(d) {
|
|
63
63
|
return String(d);
|
|
64
64
|
});
|
|
65
|
-
|
|
65
|
+
m.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, m);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
var ce = !1, Y = !1,
|
|
68
|
+
var ce = !1, Y = !1, Ne = !1, Ie = !1, Me = !1, fe;
|
|
69
69
|
fe = Symbol.for("react.module.reference");
|
|
70
70
|
function Ye(e) {
|
|
71
|
-
return !!(typeof e == "string" || typeof e == "function" || e === l || e ===
|
|
71
|
+
return !!(typeof e == "string" || typeof e == "function" || e === l || e === v || Me || e === a || e === b || e === E || Ie || e === C || ce || Y || Ne || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === w || e.$$typeof === s || e.$$typeof === p || 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
77
|
function Ve(e, r, t) {
|
|
78
|
-
var
|
|
79
|
-
if (
|
|
80
|
-
return
|
|
81
|
-
var
|
|
82
|
-
return
|
|
78
|
+
var i = e.displayName;
|
|
79
|
+
if (i)
|
|
80
|
+
return i;
|
|
81
|
+
var h = r.displayName || r.name || "";
|
|
82
|
+
return h !== "" ? t + "(" + h + ")" : t;
|
|
83
83
|
}
|
|
84
84
|
function de(e) {
|
|
85
85
|
return e.displayName || "Context";
|
|
@@ -87,18 +87,18 @@ function yr() {
|
|
|
87
87
|
function j(e) {
|
|
88
88
|
if (e == null)
|
|
89
89
|
return null;
|
|
90
|
-
if (typeof e.tag == "number" &&
|
|
90
|
+
if (typeof e.tag == "number" && g("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
95
|
case l:
|
|
96
96
|
return "Fragment";
|
|
97
|
-
case
|
|
97
|
+
case u:
|
|
98
98
|
return "Portal";
|
|
99
|
-
case
|
|
99
|
+
case v:
|
|
100
100
|
return "Profiler";
|
|
101
|
-
case
|
|
101
|
+
case a:
|
|
102
102
|
return "StrictMode";
|
|
103
103
|
case b:
|
|
104
104
|
return "Suspense";
|
|
@@ -107,21 +107,21 @@ function yr() {
|
|
|
107
107
|
}
|
|
108
108
|
if (typeof e == "object")
|
|
109
109
|
switch (e.$$typeof) {
|
|
110
|
-
case
|
|
110
|
+
case p:
|
|
111
111
|
var r = e;
|
|
112
112
|
return de(r) + ".Consumer";
|
|
113
113
|
case s:
|
|
114
114
|
var t = e;
|
|
115
115
|
return de(t._context) + ".Provider";
|
|
116
|
-
case
|
|
116
|
+
case c:
|
|
117
117
|
return Ve(e, e.render, "ForwardRef");
|
|
118
118
|
case w:
|
|
119
|
-
var
|
|
120
|
-
return
|
|
119
|
+
var i = e.displayName || null;
|
|
120
|
+
return i !== null ? i : j(e.type) || "Memo";
|
|
121
121
|
case T: {
|
|
122
|
-
var
|
|
122
|
+
var h = e, m = h._payload, d = h._init;
|
|
123
123
|
try {
|
|
124
|
-
return j(d(
|
|
124
|
+
return j(d(m));
|
|
125
125
|
} catch {
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
@@ -129,18 +129,18 @@ function yr() {
|
|
|
129
129
|
}
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
|
-
var
|
|
133
|
-
function
|
|
132
|
+
var F = Object.assign, L = 0, ve, pe, ge, he, me, Ee, Re;
|
|
133
|
+
function ye() {
|
|
134
134
|
}
|
|
135
|
-
|
|
135
|
+
ye.__reactDisabledLog = !0;
|
|
136
136
|
function qe() {
|
|
137
137
|
{
|
|
138
|
-
if (
|
|
139
|
-
ve = console.log, pe = console.info, ge = console.warn,
|
|
138
|
+
if (L === 0) {
|
|
139
|
+
ve = console.log, pe = console.info, ge = console.warn, he = console.error, me = console.group, Ee = console.groupCollapsed, Re = console.groupEnd;
|
|
140
140
|
var e = {
|
|
141
141
|
configurable: !0,
|
|
142
142
|
enumerable: !0,
|
|
143
|
-
value:
|
|
143
|
+
value: ye,
|
|
144
144
|
writable: !0
|
|
145
145
|
};
|
|
146
146
|
Object.defineProperties(console, {
|
|
@@ -153,42 +153,42 @@ function yr() {
|
|
|
153
153
|
groupEnd: e
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
|
-
|
|
156
|
+
L++;
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
function ze() {
|
|
160
160
|
{
|
|
161
|
-
if (
|
|
161
|
+
if (L--, L === 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: F({}, e, {
|
|
169
169
|
value: ve
|
|
170
170
|
}),
|
|
171
|
-
info:
|
|
171
|
+
info: F({}, e, {
|
|
172
172
|
value: pe
|
|
173
173
|
}),
|
|
174
|
-
warn:
|
|
174
|
+
warn: F({}, e, {
|
|
175
175
|
value: ge
|
|
176
176
|
}),
|
|
177
|
-
error:
|
|
178
|
-
value: me
|
|
179
|
-
}),
|
|
180
|
-
group: D({}, e, {
|
|
177
|
+
error: F({}, e, {
|
|
181
178
|
value: he
|
|
182
179
|
}),
|
|
183
|
-
|
|
180
|
+
group: F({}, e, {
|
|
181
|
+
value: me
|
|
182
|
+
}),
|
|
183
|
+
groupCollapsed: F({}, e, {
|
|
184
184
|
value: Ee
|
|
185
185
|
}),
|
|
186
|
-
groupEnd:
|
|
187
|
-
value:
|
|
186
|
+
groupEnd: F({}, e, {
|
|
187
|
+
value: Re
|
|
188
188
|
})
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
-
|
|
191
|
+
L < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
var Z = S.ReactCurrentDispatcher, K;
|
|
@@ -197,9 +197,9 @@ function yr() {
|
|
|
197
197
|
if (K === void 0)
|
|
198
198
|
try {
|
|
199
199
|
throw Error();
|
|
200
|
-
} catch (
|
|
201
|
-
var
|
|
202
|
-
K =
|
|
200
|
+
} catch (h) {
|
|
201
|
+
var i = h.stack.trim().match(/\n( *(at )?)/);
|
|
202
|
+
K = i && i[1] || "";
|
|
203
203
|
}
|
|
204
204
|
return `
|
|
205
205
|
` + K + e;
|
|
@@ -218,12 +218,12 @@ function yr() {
|
|
|
218
218
|
if (t !== void 0)
|
|
219
219
|
return t;
|
|
220
220
|
}
|
|
221
|
-
var
|
|
221
|
+
var i;
|
|
222
222
|
Q = !0;
|
|
223
|
-
var
|
|
223
|
+
var h = Error.prepareStackTrace;
|
|
224
224
|
Error.prepareStackTrace = void 0;
|
|
225
|
-
var
|
|
226
|
-
|
|
225
|
+
var m;
|
|
226
|
+
m = Z.current, Z.current = null, qe();
|
|
227
227
|
try {
|
|
228
228
|
if (r) {
|
|
229
229
|
var d = function() {
|
|
@@ -237,14 +237,14 @@ function yr() {
|
|
|
237
237
|
try {
|
|
238
238
|
Reflect.construct(d, []);
|
|
239
239
|
} catch (P) {
|
|
240
|
-
|
|
240
|
+
i = P;
|
|
241
241
|
}
|
|
242
242
|
Reflect.construct(e, [], d);
|
|
243
243
|
} else {
|
|
244
244
|
try {
|
|
245
245
|
d.call();
|
|
246
246
|
} catch (P) {
|
|
247
|
-
|
|
247
|
+
i = P;
|
|
248
248
|
}
|
|
249
249
|
e.call(d.prototype);
|
|
250
250
|
}
|
|
@@ -252,34 +252,34 @@ function yr() {
|
|
|
252
252
|
try {
|
|
253
253
|
throw Error();
|
|
254
254
|
} catch (P) {
|
|
255
|
-
|
|
255
|
+
i = P;
|
|
256
256
|
}
|
|
257
257
|
e();
|
|
258
258
|
}
|
|
259
259
|
} catch (P) {
|
|
260
|
-
if (P &&
|
|
261
|
-
for (var
|
|
262
|
-
`), _ =
|
|
263
|
-
`),
|
|
264
|
-
|
|
265
|
-
for (;
|
|
266
|
-
if (
|
|
267
|
-
if (
|
|
260
|
+
if (P && i && typeof P.stack == "string") {
|
|
261
|
+
for (var f = P.stack.split(`
|
|
262
|
+
`), _ = i.stack.split(`
|
|
263
|
+
`), R = f.length - 1, y = _.length - 1; R >= 1 && y >= 0 && f[R] !== _[y]; )
|
|
264
|
+
y--;
|
|
265
|
+
for (; R >= 1 && y >= 0; R--, y--)
|
|
266
|
+
if (f[R] !== _[y]) {
|
|
267
|
+
if (R !== 1 || y !== 1)
|
|
268
268
|
do
|
|
269
|
-
if (
|
|
269
|
+
if (R--, y--, y < 0 || f[R] !== _[y]) {
|
|
270
270
|
var O = `
|
|
271
|
-
` +
|
|
271
|
+
` + f[R].replace(" at new ", " at ");
|
|
272
272
|
return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && q.set(e, O), O;
|
|
273
273
|
}
|
|
274
|
-
while (
|
|
274
|
+
while (R >= 1 && y >= 0);
|
|
275
275
|
break;
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
} finally {
|
|
279
|
-
Q = !1, Z.current =
|
|
279
|
+
Q = !1, Z.current = m, ze(), Error.prepareStackTrace = h;
|
|
280
280
|
}
|
|
281
|
-
var
|
|
282
|
-
return typeof e == "function" && q.set(e,
|
|
281
|
+
var D = e ? e.displayName || e.name : "", $e = D ? V(D) : "";
|
|
282
|
+
return typeof e == "function" && q.set(e, $e), $e;
|
|
283
283
|
}
|
|
284
284
|
function Be(e, r, t) {
|
|
285
285
|
return be(e, !1);
|
|
@@ -303,14 +303,14 @@ function yr() {
|
|
|
303
303
|
}
|
|
304
304
|
if (typeof e == "object")
|
|
305
305
|
switch (e.$$typeof) {
|
|
306
|
-
case
|
|
306
|
+
case c:
|
|
307
307
|
return Be(e.render);
|
|
308
308
|
case w:
|
|
309
309
|
return z(e.type, r, t);
|
|
310
310
|
case T: {
|
|
311
|
-
var
|
|
311
|
+
var i = e, h = i._payload, m = i._init;
|
|
312
312
|
try {
|
|
313
|
-
return z(h
|
|
313
|
+
return z(m(h), r, t);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
@@ -325,22 +325,22 @@ function yr() {
|
|
|
325
325
|
} else
|
|
326
326
|
we.setExtraStackFrame(null);
|
|
327
327
|
}
|
|
328
|
-
function Je(e, r, t,
|
|
328
|
+
function Je(e, r, t, i, h) {
|
|
329
329
|
{
|
|
330
|
-
var
|
|
330
|
+
var m = Function.call.bind(U);
|
|
331
331
|
for (var d in e)
|
|
332
|
-
if (
|
|
333
|
-
var
|
|
332
|
+
if (m(e, d)) {
|
|
333
|
+
var f = void 0;
|
|
334
334
|
try {
|
|
335
335
|
if (typeof e[d] != "function") {
|
|
336
|
-
var _ = Error((
|
|
336
|
+
var _ = Error((i || "React class") + ": " + t + " 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 _.name = "Invariant Violation", _;
|
|
338
338
|
}
|
|
339
|
-
|
|
340
|
-
} catch (
|
|
341
|
-
|
|
339
|
+
f = e[d](r, d, i, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
|
+
} catch (R) {
|
|
341
|
+
f = R;
|
|
342
342
|
}
|
|
343
|
-
|
|
343
|
+
f && !(f instanceof Error) && (B(h), g("%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", t, d, typeof f), B(null)), f instanceof Error && !(f.message in _e) && (_e[f.message] = !0, B(h), g("Failed %s type: %s", t, f.message), B(null));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
@@ -366,9 +366,9 @@ function yr() {
|
|
|
366
366
|
}
|
|
367
367
|
function Te(e) {
|
|
368
368
|
if (Ze(e))
|
|
369
|
-
return
|
|
369
|
+
return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", He(e)), Ce(e);
|
|
370
370
|
}
|
|
371
|
-
var
|
|
371
|
+
var W = S.ReactCurrentOwner, Ke = {
|
|
372
372
|
key: !0,
|
|
373
373
|
ref: !0,
|
|
374
374
|
__self: !0,
|
|
@@ -392,15 +392,15 @@ function yr() {
|
|
|
392
392
|
return e.key !== void 0;
|
|
393
393
|
}
|
|
394
394
|
function rr(e, r) {
|
|
395
|
-
if (typeof e.ref == "string" &&
|
|
396
|
-
var t = j(
|
|
397
|
-
re[t] || (
|
|
395
|
+
if (typeof e.ref == "string" && W.current && r && W.current.stateNode !== r) {
|
|
396
|
+
var t = j(W.current.type);
|
|
397
|
+
re[t] || (g('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', j(W.current.type), e.ref), re[t] = !0);
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
function tr(e, r) {
|
|
401
401
|
{
|
|
402
402
|
var t = function() {
|
|
403
|
-
Oe || (Oe = !0,
|
|
403
|
+
Oe || (Oe = !0, g("%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
405
|
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
406
406
|
get: t,
|
|
@@ -411,7 +411,7 @@ function yr() {
|
|
|
411
411
|
function nr(e, r) {
|
|
412
412
|
{
|
|
413
413
|
var t = function() {
|
|
414
|
-
Se || (Se = !0,
|
|
414
|
+
Se || (Se = !0, g("%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
416
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
417
417
|
get: t,
|
|
@@ -419,55 +419,55 @@ function yr() {
|
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
var ar = function(e, r, t,
|
|
423
|
-
var
|
|
422
|
+
var ar = function(e, r, t, i, h, m, d) {
|
|
423
|
+
var f = {
|
|
424
424
|
// This tag allows us to uniquely identify this as a React Element
|
|
425
|
-
$$typeof:
|
|
425
|
+
$$typeof: o,
|
|
426
426
|
// Built-in properties that belong on the element
|
|
427
427
|
type: e,
|
|
428
428
|
key: r,
|
|
429
429
|
ref: t,
|
|
430
430
|
props: d,
|
|
431
431
|
// Record the component responsible for creating this element.
|
|
432
|
-
_owner:
|
|
432
|
+
_owner: m
|
|
433
433
|
};
|
|
434
|
-
return
|
|
434
|
+
return f._store = {}, Object.defineProperty(f._store, "validated", {
|
|
435
435
|
configurable: !1,
|
|
436
436
|
enumerable: !1,
|
|
437
437
|
writable: !0,
|
|
438
438
|
value: !1
|
|
439
|
-
}), Object.defineProperty(
|
|
439
|
+
}), Object.defineProperty(f, "_self", {
|
|
440
440
|
configurable: !1,
|
|
441
441
|
enumerable: !1,
|
|
442
442
|
writable: !1,
|
|
443
|
-
value:
|
|
444
|
-
}), Object.defineProperty(
|
|
443
|
+
value: i
|
|
444
|
+
}), Object.defineProperty(f, "_source", {
|
|
445
445
|
configurable: !1,
|
|
446
446
|
enumerable: !1,
|
|
447
447
|
writable: !1,
|
|
448
|
-
value:
|
|
449
|
-
}), Object.freeze && (Object.freeze(
|
|
448
|
+
value: h
|
|
449
|
+
}), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
|
|
450
450
|
};
|
|
451
|
-
function or(e, r, t,
|
|
451
|
+
function or(e, r, t, i, h) {
|
|
452
452
|
{
|
|
453
|
-
var
|
|
454
|
-
t !== void 0 && (Te(t),
|
|
455
|
-
for (
|
|
456
|
-
U.call(r,
|
|
453
|
+
var m, d = {}, f = null, _ = null;
|
|
454
|
+
t !== void 0 && (Te(t), f = "" + t), er(r) && (Te(r.key), f = "" + r.key), Qe(r) && (_ = r.ref, rr(r, h));
|
|
455
|
+
for (m in r)
|
|
456
|
+
U.call(r, m) && !Ke.hasOwnProperty(m) && (d[m] = r[m]);
|
|
457
457
|
if (e && e.defaultProps) {
|
|
458
|
-
var
|
|
459
|
-
for (
|
|
460
|
-
d[
|
|
458
|
+
var R = e.defaultProps;
|
|
459
|
+
for (m in R)
|
|
460
|
+
d[m] === void 0 && (d[m] = R[m]);
|
|
461
461
|
}
|
|
462
|
-
if (
|
|
463
|
-
var
|
|
464
|
-
|
|
462
|
+
if (f || _) {
|
|
463
|
+
var y = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
464
|
+
f && tr(d, y), _ && nr(d, y);
|
|
465
465
|
}
|
|
466
|
-
return ar(e,
|
|
466
|
+
return ar(e, f, _, h, i, W.current, d);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
469
|
var te = S.ReactCurrentOwner, je = S.ReactDebugCurrentFrame;
|
|
470
|
-
function
|
|
470
|
+
function $(e) {
|
|
471
471
|
if (e) {
|
|
472
472
|
var r = e._owner, t = z(e.type, e._source, r ? r.type : null);
|
|
473
473
|
je.setExtraStackFrame(t);
|
|
@@ -477,7 +477,7 @@ function yr() {
|
|
|
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 === o;
|
|
481
481
|
}
|
|
482
482
|
function Pe() {
|
|
483
483
|
{
|
|
@@ -524,8 +524,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
524
524
|
if (xe[t])
|
|
525
525
|
return;
|
|
526
526
|
xe[t] = !0;
|
|
527
|
-
var
|
|
528
|
-
e && e._owner && e._owner !== te.current && (
|
|
527
|
+
var i = "";
|
|
528
|
+
e && e._owner && e._owner !== te.current && (i = " It was passed a child from " + j(e._owner.type) + "."), $(e), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, i), $(null);
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
531
|
function ke(e, r) {
|
|
@@ -534,15 +534,15 @@ Check the top-level render call using <` + t + ">.");
|
|
|
534
534
|
return;
|
|
535
535
|
if (ee(e))
|
|
536
536
|
for (var t = 0; t < e.length; t++) {
|
|
537
|
-
var
|
|
538
|
-
ae(
|
|
537
|
+
var i = e[t];
|
|
538
|
+
ae(i) && Ae(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
|
|
544
|
-
if (typeof
|
|
545
|
-
for (var
|
|
543
|
+
var h = M(e);
|
|
544
|
+
if (typeof h == "function" && h !== e.entries)
|
|
545
|
+
for (var m = h.call(e), d; !(d = m.next()).done; )
|
|
546
546
|
ae(d.value) && Ae(d.value, r);
|
|
547
547
|
}
|
|
548
548
|
}
|
|
@@ -555,76 +555,76 @@ Check the top-level render call using <` + t + ">.");
|
|
|
555
555
|
var t;
|
|
556
556
|
if (typeof r == "function")
|
|
557
557
|
t = r.propTypes;
|
|
558
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
|
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 === w))
|
|
561
561
|
t = r.propTypes;
|
|
562
562
|
else
|
|
563
563
|
return;
|
|
564
564
|
if (t) {
|
|
565
|
-
var
|
|
566
|
-
Je(t, e.props, "prop",
|
|
565
|
+
var i = j(r);
|
|
566
|
+
Je(t, e.props, "prop", i, e);
|
|
567
567
|
} else if (r.PropTypes !== void 0 && !ne) {
|
|
568
568
|
ne = !0;
|
|
569
|
-
var
|
|
570
|
-
|
|
569
|
+
var h = j(r);
|
|
570
|
+
g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", h || "Unknown");
|
|
571
571
|
}
|
|
572
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
572
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
function lr(e) {
|
|
576
576
|
{
|
|
577
577
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
578
|
-
var
|
|
579
|
-
if (
|
|
580
|
-
|
|
578
|
+
var i = r[t];
|
|
579
|
+
if (i !== "children" && i !== "key") {
|
|
580
|
+
$(e), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), $(null);
|
|
581
581
|
break;
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
|
-
e.ref !== null && (
|
|
584
|
+
e.ref !== null && ($(e), g("Invalid attribute `ref` supplied to `React.Fragment`."), $(null));
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function Fe(e, r, t, i, h, m) {
|
|
588
588
|
{
|
|
589
589
|
var d = Ye(e);
|
|
590
590
|
if (!d) {
|
|
591
|
-
var
|
|
592
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
593
|
-
var _ = ir(
|
|
594
|
-
_ ?
|
|
595
|
-
var
|
|
596
|
-
e === null ?
|
|
591
|
+
var f = "";
|
|
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
|
+
var _ = ir(h);
|
|
594
|
+
_ ? f += _ : f += Pe();
|
|
595
|
+
var R;
|
|
596
|
+
e === null ? R = "null" : ee(e) ? R = "array" : e !== void 0 && e.$$typeof === o ? (R = "<" + (j(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : R = typeof e, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, f);
|
|
597
597
|
}
|
|
598
|
-
var
|
|
599
|
-
if (
|
|
600
|
-
return
|
|
598
|
+
var y = or(e, r, t, h, m);
|
|
599
|
+
if (y == null)
|
|
600
|
+
return y;
|
|
601
601
|
if (d) {
|
|
602
602
|
var O = r.children;
|
|
603
603
|
if (O !== void 0)
|
|
604
|
-
if (
|
|
604
|
+
if (i)
|
|
605
605
|
if (ee(O)) {
|
|
606
|
-
for (var
|
|
607
|
-
ke(O[
|
|
606
|
+
for (var D = 0; D < O.length; D++)
|
|
607
|
+
ke(O[D], e);
|
|
608
608
|
Object.freeze && Object.freeze(O);
|
|
609
609
|
} else
|
|
610
|
-
|
|
610
|
+
g("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
|
ke(O, e);
|
|
613
613
|
}
|
|
614
|
-
return e === l ? lr(
|
|
614
|
+
return e === l ? lr(y) : sr(y), y;
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
617
|
function cr(e, r, t) {
|
|
618
|
-
return
|
|
618
|
+
return Fe(e, r, t, !0);
|
|
619
619
|
}
|
|
620
620
|
function fr(e, r, t) {
|
|
621
|
-
return
|
|
621
|
+
return Fe(e, r, t, !1);
|
|
622
622
|
}
|
|
623
623
|
var dr = fr, vr = cr;
|
|
624
|
-
|
|
625
|
-
}()),
|
|
624
|
+
I.Fragment = l, I.jsx = dr, I.jsxs = vr;
|
|
625
|
+
}()), I;
|
|
626
626
|
}
|
|
627
|
-
process.env.NODE_ENV === "production" ? ie.exports = Er() : ie.exports =
|
|
627
|
+
process.env.NODE_ENV === "production" ? ie.exports = Er() : ie.exports = Rr();
|
|
628
628
|
var x = ie.exports;
|
|
629
629
|
const H = pr({
|
|
630
630
|
axios: void 0,
|
|
@@ -636,94 +636,94 @@ const H = pr({
|
|
|
636
636
|
useLocation: void 0
|
|
637
637
|
}), Tr = ({
|
|
638
638
|
axios: n,
|
|
639
|
-
children:
|
|
640
|
-
translate:
|
|
639
|
+
children: o,
|
|
640
|
+
translate: u,
|
|
641
641
|
useAuth: l,
|
|
642
|
-
Outlet:
|
|
643
|
-
Navigate:
|
|
642
|
+
Outlet: a,
|
|
643
|
+
Navigate: v,
|
|
644
644
|
useLocation: s,
|
|
645
|
-
useGoogleTagManager:
|
|
645
|
+
useGoogleTagManager: p
|
|
646
646
|
}) => {
|
|
647
|
-
const
|
|
647
|
+
const c = ue(
|
|
648
648
|
() => ({
|
|
649
649
|
axios: n,
|
|
650
|
-
Navigate:
|
|
651
|
-
Outlet:
|
|
652
|
-
translate:
|
|
650
|
+
Navigate: v,
|
|
651
|
+
Outlet: a,
|
|
652
|
+
translate: u,
|
|
653
653
|
useAuth: l,
|
|
654
|
-
useGoogleTagManager:
|
|
654
|
+
useGoogleTagManager: p,
|
|
655
655
|
useLocation: s
|
|
656
656
|
}),
|
|
657
|
-
[
|
|
657
|
+
[v, a, n, u, l, p, s]
|
|
658
658
|
);
|
|
659
|
-
return /* @__PURE__ */ x.jsx(H.Provider, { value:
|
|
659
|
+
return /* @__PURE__ */ x.jsx(H.Provider, { value: c, children: o });
|
|
660
660
|
}, G = (n) => `RequireAuth require « ${n} » dependency. You can provide with InjectDependenciesProvider or directly in props.`, Or = ({
|
|
661
661
|
Fallback: n,
|
|
662
|
-
loginPath:
|
|
663
|
-
localStorageKey:
|
|
662
|
+
loginPath: o = "/login",
|
|
663
|
+
localStorageKey: u = "user",
|
|
664
664
|
redirect401Path: l = "/login",
|
|
665
|
-
...
|
|
665
|
+
...a
|
|
666
666
|
}) => {
|
|
667
|
-
var A, k,
|
|
667
|
+
var A, k, M, S;
|
|
668
668
|
const {
|
|
669
|
-
axios:
|
|
670
|
-
useLocation: s =
|
|
671
|
-
useAuth:
|
|
672
|
-
Outlet:
|
|
673
|
-
Navigate: b =
|
|
669
|
+
axios: v = a.axios,
|
|
670
|
+
useLocation: s = a.useLocation,
|
|
671
|
+
useAuth: p = a.useAuth,
|
|
672
|
+
Outlet: c = a.Outlet,
|
|
673
|
+
Navigate: b = a.Navigate
|
|
674
674
|
} = se(H);
|
|
675
|
-
if (
|
|
675
|
+
if (p === void 0)
|
|
676
676
|
throw new Error(G("useAuth"));
|
|
677
677
|
if (s === void 0)
|
|
678
678
|
throw new Error(G("useLocation"));
|
|
679
|
-
if (
|
|
679
|
+
if (c === void 0)
|
|
680
680
|
throw new Error(G("Outlet"));
|
|
681
681
|
if (b === void 0)
|
|
682
682
|
throw new Error(G("Navigate"));
|
|
683
|
-
const [E, w] = gr(null), { isLogged: T } =
|
|
683
|
+
const [E, w] = gr(null), { isLogged: T } = p(), C = s();
|
|
684
684
|
return X(() => {
|
|
685
|
-
|
|
686
|
-
(
|
|
687
|
-
async (
|
|
685
|
+
v == null || v.interceptors.response.use(
|
|
686
|
+
(g) => g,
|
|
687
|
+
async (g) => {
|
|
688
688
|
var Y;
|
|
689
|
-
return typeof
|
|
689
|
+
return typeof g == "object" && g && "response" in g && g.response && typeof g.response == "object" && "status" in g.response && g.response && typeof g.response == "object" && "status" in g.response && ((Y = g == null ? void 0 : g.response) == null ? void 0 : Y.status) === 401 && (v.defaults.headers.common.Authorization = null, localStorage.removeItem(u), w(l)), Promise.reject(g);
|
|
690
690
|
}
|
|
691
691
|
);
|
|
692
|
-
}, [
|
|
692
|
+
}, [v == null ? void 0 : v.defaults, v == null ? void 0 : v.interceptors.response, u, l]), T && !E ? /* @__PURE__ */ x.jsx(hr, { fallback: n, children: (k = (A = C.state) == null ? void 0 : A.from) != null && k.state && ((S = (M = C.state) == null ? void 0 : M.from) == null ? void 0 : S.pathname) === o ? /* @__PURE__ */ x.jsx(b, { to: C.state.from.state.from.pathname + C.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ x.jsx(c, {}) }) : /* @__PURE__ */ x.jsx(b, { to: o, state: { from: C }, replace: !0 });
|
|
693
693
|
}, oe = (n) => `GTMSendPageView require « ${n} » dependency. You can provide with InjectDependenciesProvider or directly in props.`, Sr = ({ ...n }) => {
|
|
694
694
|
const {
|
|
695
|
-
useLocation:
|
|
696
|
-
Outlet:
|
|
695
|
+
useLocation: o = n.useLocation,
|
|
696
|
+
Outlet: u = n.Outlet,
|
|
697
697
|
useGoogleTagManager: l = n.useGoogleTagManager
|
|
698
698
|
} = se(H);
|
|
699
|
-
if (
|
|
699
|
+
if (o === void 0)
|
|
700
700
|
throw new Error(oe("useLocation"));
|
|
701
|
-
if (
|
|
701
|
+
if (u === void 0)
|
|
702
702
|
throw new Error(oe("Outlet"));
|
|
703
703
|
if (l === void 0)
|
|
704
704
|
throw new Error(oe("useGoogleTagManager"));
|
|
705
|
-
const { pathname:
|
|
706
|
-
return
|
|
707
|
-
|
|
708
|
-
}, [
|
|
705
|
+
const { pathname: a } = o(), { sendEvent: v } = l();
|
|
706
|
+
return mr(() => {
|
|
707
|
+
v({ event: "pageView", pathname: a });
|
|
708
|
+
}, [a, v]), /* @__PURE__ */ x.jsx(u, {});
|
|
709
709
|
}, jr = ({
|
|
710
710
|
axios: n,
|
|
711
|
-
baseURL:
|
|
712
|
-
tokenTypeKey:
|
|
711
|
+
baseURL: o,
|
|
712
|
+
tokenTypeKey: u = "tokenType",
|
|
713
713
|
userLocalStorageKey: l = "user",
|
|
714
|
-
tokenKey:
|
|
715
|
-
postContentType:
|
|
714
|
+
tokenKey: a = "accessToken",
|
|
715
|
+
postContentType: v = "application/json"
|
|
716
716
|
}) => (X(() => {
|
|
717
717
|
if (!n.defaults)
|
|
718
718
|
return;
|
|
719
|
-
const s = localStorage.getItem(l),
|
|
720
|
-
n.defaults.baseURL =
|
|
721
|
-
}, [n.defaults,
|
|
719
|
+
const s = localStorage.getItem(l), p = s ? JSON.parse(s) : null, c = p != null && p[u] ? p[u] : null, b = p != null && p[a] ? p[a] : null, E = s ? `${c} ${b}` : null;
|
|
720
|
+
n.defaults.baseURL = o, n.defaults.headers.post["Content-Type"] = v, E && (n.defaults.headers.common.Authorization = E);
|
|
721
|
+
}, [n.defaults, o, v, a, u, l]), null), Pr = ({
|
|
722
722
|
i18n: n,
|
|
723
|
-
initReactI18next:
|
|
724
|
-
resources:
|
|
723
|
+
initReactI18next: o,
|
|
724
|
+
resources: u,
|
|
725
725
|
LanguageDetector: l
|
|
726
|
-
}) => (n.use(l).use(
|
|
726
|
+
}) => (n.use(l).use(o).init({
|
|
727
727
|
debug: !1,
|
|
728
728
|
fallbackLng: "en",
|
|
729
729
|
interpolation: {
|
|
@@ -733,82 +733,120 @@ const H = pr({
|
|
|
733
733
|
react: {
|
|
734
734
|
useSuspense: !0
|
|
735
735
|
},
|
|
736
|
-
resources:
|
|
736
|
+
resources: u,
|
|
737
737
|
returnNull: !1
|
|
738
738
|
}).then(() => {
|
|
739
739
|
document.documentElement.lang !== n.resolvedLanguage && n.resolvedLanguage && document.documentElement.setAttribute("lang", n.resolvedLanguage);
|
|
740
|
-
}), n.on("languageChanged", (
|
|
741
|
-
document.documentElement.setAttribute("lang",
|
|
742
|
-
}), null), xr = ({
|
|
743
|
-
|
|
740
|
+
}), n.on("languageChanged", (a) => {
|
|
741
|
+
document.documentElement.setAttribute("lang", a);
|
|
742
|
+
}), null), xr = ({
|
|
743
|
+
dsn: n,
|
|
744
|
+
sentry: o,
|
|
745
|
+
integrations: u,
|
|
746
|
+
tracesSampleRate: l,
|
|
747
|
+
routingInstrumentationDependencies: a,
|
|
748
|
+
replaysSessionSampleRate: v,
|
|
749
|
+
replaysOnErrorSampleRate: s,
|
|
750
|
+
tracePropagationTargets: p,
|
|
751
|
+
debug: c
|
|
752
|
+
}) => (X(() => {
|
|
753
|
+
process.env.NODE_ENV === "production" && o.init({
|
|
754
|
+
debug: c,
|
|
744
755
|
dsn: n,
|
|
745
|
-
integrations:
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
756
|
+
integrations: [
|
|
757
|
+
new o.BrowserTracing({
|
|
758
|
+
routingInstrumentation: o.reactRouterV6Instrumentation(
|
|
759
|
+
a.useEffect,
|
|
760
|
+
a.useLocation,
|
|
761
|
+
a.useNavigationType,
|
|
762
|
+
a.createRoutesFromChildren,
|
|
763
|
+
a.matchRoutes
|
|
764
|
+
)
|
|
765
|
+
}),
|
|
766
|
+
new o.Replay(),
|
|
767
|
+
...u
|
|
768
|
+
],
|
|
769
|
+
replaysOnErrorSampleRate: s || 1,
|
|
770
|
+
replaysSessionSampleRate: v || 0.1,
|
|
771
|
+
tracePropagationTargets: p,
|
|
772
|
+
tracesSampleRate: l || 1
|
|
749
773
|
});
|
|
750
|
-
}, [
|
|
751
|
-
|
|
774
|
+
}, [
|
|
775
|
+
c,
|
|
776
|
+
n,
|
|
777
|
+
u,
|
|
778
|
+
s,
|
|
779
|
+
v,
|
|
780
|
+
a.createRoutesFromChildren,
|
|
781
|
+
a.matchRoutes,
|
|
782
|
+
a.useEffect,
|
|
783
|
+
a.useLocation,
|
|
784
|
+
a.useNavigationType,
|
|
785
|
+
o,
|
|
786
|
+
p,
|
|
787
|
+
l
|
|
788
|
+
]), null), Ar = ({ IMaskMixin: n, ...o }) => {
|
|
789
|
+
const u = ue(
|
|
752
790
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
753
|
-
() => n(({ TextField: l, ...
|
|
791
|
+
() => n(({ TextField: l, ...a }) => /* @__PURE__ */ x.jsx(l, { ...a })),
|
|
754
792
|
[n]
|
|
755
793
|
);
|
|
756
|
-
return /* @__PURE__ */ x.jsx(
|
|
757
|
-
}, kr = ({ mapbox: n, accessToken:
|
|
758
|
-
n &&
|
|
759
|
-
}, [
|
|
794
|
+
return /* @__PURE__ */ x.jsx(u, { ...o });
|
|
795
|
+
}, kr = ({ mapbox: n, accessToken: o }) => (X(() => {
|
|
796
|
+
n && o && (n.accessToken = o);
|
|
797
|
+
}, [o, n]), null), Fr = ({
|
|
760
798
|
children: n,
|
|
761
|
-
defaultOptions:
|
|
762
|
-
QueryClient:
|
|
799
|
+
defaultOptions: o,
|
|
800
|
+
QueryClient: u,
|
|
763
801
|
QueryClientProvider: l
|
|
764
802
|
}) => {
|
|
765
|
-
const
|
|
803
|
+
const a = new u({
|
|
766
804
|
defaultOptions: {
|
|
767
805
|
queries: {
|
|
768
806
|
refetchOnWindowFocus: !1,
|
|
769
807
|
retry: 3,
|
|
770
|
-
...
|
|
808
|
+
...o
|
|
771
809
|
}
|
|
772
810
|
}
|
|
773
811
|
});
|
|
774
|
-
return /* @__PURE__ */ x.jsx(l, { client:
|
|
775
|
-
},
|
|
776
|
-
const { unknownErrorTranslationKey:
|
|
812
|
+
return /* @__PURE__ */ x.jsx(l, { client: a, children: n });
|
|
813
|
+
}, $r = (n) => {
|
|
814
|
+
const { unknownErrorTranslationKey: o = "error.unknownError" } = n || {}, { translate: u = n == null ? void 0 : n.translate } = se(H);
|
|
777
815
|
return { printError: J(
|
|
778
|
-
(
|
|
779
|
-
var
|
|
780
|
-
const
|
|
781
|
-
return
|
|
816
|
+
(a) => {
|
|
817
|
+
var p, c, b, E, w, T, C, A, k;
|
|
818
|
+
const v = u ? u(o) : "Unknown error", { response: s } = a || {};
|
|
819
|
+
return a != null && a.reason ? String(a.reason) : (p = s == null ? void 0 : s.data) != null && p.reason ? String(s.data.reason) : (c = s == null ? void 0 : s.data) != null && c.message ? String(s.data.message) : (E = (b = s == null ? void 0 : s.data) == null ? void 0 : b.detail) != null && E.length && Array.isArray((w = s == null ? void 0 : s.data) == null ? void 0 : w.detail) && ((C = (T = s == null ? void 0 : s.data) == null ? void 0 : T.detail[0]) != null && C.msg) && typeof ((k = (A = s == null ? void 0 : s.data) == null ? void 0 : A.detail[0]) == null ? void 0 : k.msg) == "string" ? String(s.data.detail[0].msg) : v;
|
|
782
820
|
},
|
|
783
|
-
[
|
|
821
|
+
[u, o]
|
|
784
822
|
) };
|
|
785
|
-
},
|
|
823
|
+
}, Dr = ({
|
|
786
824
|
data: n,
|
|
787
|
-
fetchNextPage:
|
|
788
|
-
isFetchingNextPage:
|
|
825
|
+
fetchNextPage: o,
|
|
826
|
+
isFetchingNextPage: u,
|
|
789
827
|
isInitialLoading: l,
|
|
790
|
-
isLoading:
|
|
791
|
-
enabled:
|
|
828
|
+
isLoading: a,
|
|
829
|
+
enabled: v = !0
|
|
792
830
|
}) => {
|
|
793
831
|
const s = J(
|
|
794
|
-
async (
|
|
795
|
-
|
|
832
|
+
async (c) => {
|
|
833
|
+
u || !v || await o({ pageParam: (c == null ? void 0 : c.pageParam) || c.visibleRowsCount });
|
|
796
834
|
},
|
|
797
|
-
[
|
|
798
|
-
),
|
|
835
|
+
[v, o, u]
|
|
836
|
+
), p = ue(() => {
|
|
799
837
|
if (n)
|
|
800
|
-
return n.pages.reduce((
|
|
838
|
+
return n.pages.reduce((c, b) => [...c, ...b], []);
|
|
801
839
|
}, [n]);
|
|
802
840
|
return {
|
|
803
841
|
fetchNextPageOnRowsScrollEnd: s,
|
|
804
|
-
isLoading:
|
|
842
|
+
isLoading: u || a,
|
|
805
843
|
loadingVariant: l ? "skeleton" : "linear",
|
|
806
|
-
rows:
|
|
844
|
+
rows: p
|
|
807
845
|
};
|
|
808
|
-
},
|
|
809
|
-
const
|
|
810
|
-
({ tokenType: l, accessToken:
|
|
811
|
-
n.defaults.headers.common.Authorization = `${l} ${
|
|
846
|
+
}, Lr = (n) => {
|
|
847
|
+
const o = J(
|
|
848
|
+
({ tokenType: l, accessToken: a }) => {
|
|
849
|
+
n.defaults.headers.common.Authorization = `${l} ${a}`;
|
|
812
850
|
},
|
|
813
851
|
[n.defaults.headers.common]
|
|
814
852
|
);
|
|
@@ -816,30 +854,30 @@ const H = pr({
|
|
|
816
854
|
clearAuthenticationToken: J(() => {
|
|
817
855
|
n.defaults.headers.common.Authorization = null;
|
|
818
856
|
}, [n.defaults.headers.common]),
|
|
819
|
-
setAuthenticationToken:
|
|
857
|
+
setAuthenticationToken: o
|
|
820
858
|
};
|
|
821
|
-
},
|
|
822
|
-
const l = n.split("/").filter((
|
|
859
|
+
}, yr = (n) => n.charAt(0).toUpperCase() + n.slice(1).toLowerCase(), br = (n) => {
|
|
860
|
+
const l = n.split("/").filter((a) => a.length > 0).map((a) => a.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((c) => c.charAt(0).toUpperCase() + c.slice(1)).join("")).join("");
|
|
823
861
|
return l.charAt(0).toLowerCase() + l.slice(1);
|
|
824
|
-
}, _r = (n,
|
|
825
|
-
const l = br(
|
|
826
|
-
return `${l}${
|
|
862
|
+
}, _r = (n, o, u) => {
|
|
863
|
+
const l = br(o), a = yr(u);
|
|
864
|
+
return `${l}${a}`;
|
|
827
865
|
}, wr = (n) => {
|
|
828
866
|
if (n)
|
|
829
|
-
return (n == null ? void 0 : n.reduce((
|
|
867
|
+
return (n == null ? void 0 : n.reduce((o, u) => (o[u] = {
|
|
830
868
|
query: {
|
|
831
869
|
useInfinite: !0,
|
|
832
870
|
useInfiniteQueryParam: "offset"
|
|
833
871
|
}
|
|
834
|
-
},
|
|
835
|
-
},
|
|
836
|
-
const { input:
|
|
872
|
+
}, o), {})) || {};
|
|
873
|
+
}, Wr = (n) => {
|
|
874
|
+
const { input: o = "./openapi.json", operationsToGenerateInfiniteQueryHook: u = void 0 } = n || {};
|
|
837
875
|
return {
|
|
838
876
|
api: {
|
|
839
877
|
hooks: {
|
|
840
878
|
afterAllFilesWrite: "prettier src/api/ --write"
|
|
841
879
|
},
|
|
842
|
-
input:
|
|
880
|
+
input: o,
|
|
843
881
|
output: {
|
|
844
882
|
client: "react-query",
|
|
845
883
|
mode: "tags-split",
|
|
@@ -854,7 +892,7 @@ const H = pr({
|
|
|
854
892
|
path: `${__dirname}/config/orval/mutator/axiosCustomInstance.ts`
|
|
855
893
|
},
|
|
856
894
|
operationName: _r,
|
|
857
|
-
...(
|
|
895
|
+
...(u == null ? void 0 : u.length) && { operations: wr(u) },
|
|
858
896
|
query: {
|
|
859
897
|
useQuery: !0
|
|
860
898
|
}
|
|
@@ -873,11 +911,11 @@ export {
|
|
|
873
911
|
Tr as InjectDependenciesProvider,
|
|
874
912
|
kr as MapBoxConfig,
|
|
875
913
|
Ar as MaskTextField,
|
|
876
|
-
|
|
914
|
+
Fr as QueryClientConfigProvider,
|
|
877
915
|
Or as RequireAuth,
|
|
878
916
|
xr as SentryConfig,
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
917
|
+
Wr as getOrvalConfig,
|
|
918
|
+
Lr as useAuth,
|
|
919
|
+
Dr as useInfiniteDataGrid,
|
|
920
|
+
$r as useResponseError
|
|
883
921
|
};
|