@tracktor/shared-module 0.15.1 → 0.15.3
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 +48 -1
- package/dist/main.js +174 -155
- package/dist/main.umd.cjs +6 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,10 @@ interface SentryConfigProps<T> {
|
|
|
4
4
|
*/
|
|
5
5
|
sentry: T & {
|
|
6
6
|
init: (config: {
|
|
7
|
+
/**
|
|
8
|
+
* Enable debug mode.
|
|
9
|
+
*/
|
|
10
|
+
debug?: boolean;
|
|
7
11
|
/**
|
|
8
12
|
* The Dsn used to connect to Sentry and identify the project. If omitted, the SDK will not send any data to Sentry.
|
|
9
13
|
*/
|
|
@@ -30,6 +34,10 @@ interface SentryConfigProps<T> {
|
|
|
30
34
|
* Sample rate to determine session sampling.
|
|
31
35
|
*/
|
|
32
36
|
replaysSessionSampleRate: number;
|
|
37
|
+
/**
|
|
38
|
+
* List of strings/regex controlling to which outgoing requests the SDK will attach tracing headers.
|
|
39
|
+
*/
|
|
40
|
+
tracePropagationTargets?: (string | RegExp)[];
|
|
33
41
|
}) => void;
|
|
34
42
|
BrowserTracing: any;
|
|
35
43
|
/**
|
|
@@ -55,13 +63,52 @@ interface SentryConfigProps<T> {
|
|
|
55
63
|
createRoutesFromChildren: any;
|
|
56
64
|
matchRoutes: any;
|
|
57
65
|
};
|
|
66
|
+
/**
|
|
67
|
+
* List of integrations that should be installed after SDK was initialized.
|
|
68
|
+
*/
|
|
69
|
+
integrations?: any[];
|
|
70
|
+
/**
|
|
71
|
+
* Tracing is enabled if either this or tracesSampler is defined.
|
|
72
|
+
* If both are defined, tracesSampleRate is ignored.
|
|
73
|
+
*/
|
|
74
|
+
tracesSampleRate?: number;
|
|
75
|
+
/**
|
|
76
|
+
* The sample rate for session-long replays.
|
|
77
|
+
* 1.0 will record all sessions and 0 will record none.
|
|
78
|
+
*/
|
|
79
|
+
replaysSessionSampleRate?: number;
|
|
80
|
+
/**
|
|
81
|
+
* The sample rate for sessions that has had an error occur.
|
|
82
|
+
* This is independent of sessionSampleRate. 1.0 will record all sessions and 0 will record none.
|
|
83
|
+
*/
|
|
84
|
+
replaysOnErrorSampleRate?: number;
|
|
85
|
+
/**
|
|
86
|
+
* List of strings/regex controlling to which outgoing requests the SDK will attach tracing headers.
|
|
87
|
+
* By default the SDK will attach those headers to all requests to localhost and same origin. If this option is provided, the SDK will match the request URL of outgoing requests against the items in this array, and only attach tracing headers if a match was found.
|
|
88
|
+
* Example:
|
|
89
|
+
* Sentry.init({
|
|
90
|
+
* tracePropagationTargets: ['api.site.com'],
|
|
91
|
+
* });
|
|
92
|
+
* Default: ['localhost', /^//]
|
|
93
|
+
*/
|
|
94
|
+
tracePropagationTargets?: (string | RegExp)[];
|
|
95
|
+
/**
|
|
96
|
+
* Enable debug mode.
|
|
97
|
+
*/
|
|
98
|
+
debug?: boolean;
|
|
58
99
|
}
|
|
59
100
|
/**
|
|
60
101
|
* This component is used to initialize Sentry
|
|
61
102
|
* @param dsn
|
|
62
103
|
* @param sentry
|
|
63
104
|
* @param integrations
|
|
105
|
+
* @param tracesSampleRate
|
|
106
|
+
* @param routingInstrumentationDependencies
|
|
107
|
+
* @param replaysSessionSampleRate
|
|
108
|
+
* @param replaysOnErrorSampleRate
|
|
109
|
+
* @param tracePropagationTargets
|
|
110
|
+
* @param debug
|
|
64
111
|
* @constructor
|
|
65
112
|
*/
|
|
66
|
-
declare const SentryConfig: <T extends unknown>({ dsn, sentry, routingInstrumentationDependencies }: SentryConfigProps<T>) => null;
|
|
113
|
+
declare const SentryConfig: <T extends unknown>({ dsn, sentry, integrations, tracesSampleRate, routingInstrumentationDependencies, replaysSessionSampleRate, replaysOnErrorSampleRate, tracePropagationTargets, debug, }: SentryConfigProps<T>) => null;
|
|
67
114
|
export default SentryConfig;
|
package/dist/main.js
CHANGED
|
@@ -14,18 +14,18 @@ function Er() {
|
|
|
14
14
|
if (De)
|
|
15
15
|
return N;
|
|
16
16
|
De = 1;
|
|
17
|
-
var n = We, o = Symbol.for("react.element"),
|
|
18
|
-
function s(
|
|
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: o, type:
|
|
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 N.Fragment =
|
|
28
|
+
return N.Fragment = u, N.jsx = s, N.jsxs = s, N;
|
|
29
29
|
}
|
|
30
30
|
var I = {};
|
|
31
31
|
/**
|
|
@@ -40,7 +40,7 @@ var I = {};
|
|
|
40
40
|
var Le;
|
|
41
41
|
function Rr() {
|
|
42
42
|
return Le || (Le = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
-
var n = We, o = Symbol.for("react.element"),
|
|
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
44
|
function M(e) {
|
|
45
45
|
if (e === null || typeof e != "object")
|
|
46
46
|
return null;
|
|
@@ -48,7 +48,7 @@ function Rr() {
|
|
|
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
53
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
|
|
54
54
|
t[i - 1] = arguments[i];
|
|
@@ -57,8 +57,8 @@ function Rr() {
|
|
|
57
57
|
}
|
|
58
58
|
function le(e, r, t) {
|
|
59
59
|
{
|
|
60
|
-
var i = S.ReactDebugCurrentFrame,
|
|
61
|
-
|
|
60
|
+
var i = S.ReactDebugCurrentFrame, h = i.getStackAddendum();
|
|
61
|
+
h !== "" && (r += "%s", t = t.concat([h]));
|
|
62
62
|
var m = t.map(function(d) {
|
|
63
63
|
return String(d);
|
|
64
64
|
});
|
|
@@ -68,7 +68,7 @@ function Rr() {
|
|
|
68
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.
|
|
@@ -78,8 +78,8 @@ function Rr() {
|
|
|
78
78
|
var i = e.displayName;
|
|
79
79
|
if (i)
|
|
80
80
|
return i;
|
|
81
|
-
var
|
|
82
|
-
return
|
|
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 Rr() {
|
|
|
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,19 +107,19 @@ function Rr() {
|
|
|
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
119
|
var i = e.displayName || null;
|
|
120
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
124
|
return j(d(m));
|
|
125
125
|
} catch {
|
|
@@ -188,7 +188,7 @@ function Rr() {
|
|
|
188
188
|
})
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
-
L < 0 &&
|
|
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,8 +197,8 @@ function Rr() {
|
|
|
197
197
|
if (K === void 0)
|
|
198
198
|
try {
|
|
199
199
|
throw Error();
|
|
200
|
-
} catch (
|
|
201
|
-
var i =
|
|
200
|
+
} catch (h) {
|
|
201
|
+
var i = h.stack.trim().match(/\n( *(at )?)/);
|
|
202
202
|
K = i && i[1] || "";
|
|
203
203
|
}
|
|
204
204
|
return `
|
|
@@ -220,7 +220,7 @@ function Rr() {
|
|
|
220
220
|
}
|
|
221
221
|
var i;
|
|
222
222
|
Q = !0;
|
|
223
|
-
var
|
|
223
|
+
var h = Error.prepareStackTrace;
|
|
224
224
|
Error.prepareStackTrace = void 0;
|
|
225
225
|
var m;
|
|
226
226
|
m = Z.current, Z.current = null, qe();
|
|
@@ -258,17 +258,17 @@ function Rr() {
|
|
|
258
258
|
}
|
|
259
259
|
} catch (P) {
|
|
260
260
|
if (P && i && typeof P.stack == "string") {
|
|
261
|
-
for (var
|
|
261
|
+
for (var f = P.stack.split(`
|
|
262
262
|
`), _ = i.stack.split(`
|
|
263
|
-
`), R =
|
|
263
|
+
`), R = f.length - 1, y = _.length - 1; R >= 1 && y >= 0 && f[R] !== _[y]; )
|
|
264
264
|
y--;
|
|
265
265
|
for (; R >= 1 && y >= 0; R--, y--)
|
|
266
|
-
if (
|
|
266
|
+
if (f[R] !== _[y]) {
|
|
267
267
|
if (R !== 1 || y !== 1)
|
|
268
268
|
do
|
|
269
|
-
if (R--, y--, y < 0 ||
|
|
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
274
|
while (R >= 1 && y >= 0);
|
|
@@ -276,7 +276,7 @@ function Rr() {
|
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
} finally {
|
|
279
|
-
Q = !1, Z.current = m, ze(), Error.prepareStackTrace =
|
|
279
|
+
Q = !1, Z.current = m, ze(), Error.prepareStackTrace = h;
|
|
280
280
|
}
|
|
281
281
|
var D = e ? e.displayName || e.name : "", $e = D ? V(D) : "";
|
|
282
282
|
return typeof e == "function" && q.set(e, $e), $e;
|
|
@@ -303,14 +303,14 @@ function Rr() {
|
|
|
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 i = e,
|
|
311
|
+
var i = e, h = i._payload, m = i._init;
|
|
312
312
|
try {
|
|
313
|
-
return z(m(
|
|
313
|
+
return z(m(h), r, t);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
@@ -325,22 +325,22 @@ function Rr() {
|
|
|
325
325
|
} else
|
|
326
326
|
we.setExtraStackFrame(null);
|
|
327
327
|
}
|
|
328
|
-
function Je(e, r, t, i,
|
|
328
|
+
function Je(e, r, t, i, h) {
|
|
329
329
|
{
|
|
330
330
|
var m = Function.call.bind(U);
|
|
331
331
|
for (var d in e)
|
|
332
332
|
if (m(e, d)) {
|
|
333
|
-
var
|
|
333
|
+
var f = void 0;
|
|
334
334
|
try {
|
|
335
335
|
if (typeof e[d] != "function") {
|
|
336
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
|
-
|
|
339
|
+
f = e[d](r, d, i, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
340
|
} catch (R) {
|
|
341
|
-
|
|
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,7 +366,7 @@ function Rr() {
|
|
|
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
371
|
var W = S.ReactCurrentOwner, Ke = {
|
|
372
372
|
key: !0,
|
|
@@ -394,13 +394,13 @@ function Rr() {
|
|
|
394
394
|
function rr(e, r) {
|
|
395
395
|
if (typeof e.ref == "string" && W.current && r && W.current.stateNode !== r) {
|
|
396
396
|
var t = j(W.current.type);
|
|
397
|
-
re[t] || (
|
|
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 Rr() {
|
|
|
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,8 +419,8 @@ function Rr() {
|
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
var ar = function(e, r, t, i,
|
|
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
425
|
$$typeof: o,
|
|
426
426
|
// Built-in properties that belong on the element
|
|
@@ -431,27 +431,27 @@ function Rr() {
|
|
|
431
431
|
// Record the component responsible for creating this element.
|
|
432
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
443
|
value: i
|
|
444
|
-
}), Object.defineProperty(
|
|
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, i,
|
|
451
|
+
function or(e, r, t, i, h) {
|
|
452
452
|
{
|
|
453
|
-
var m, d = {},
|
|
454
|
-
t !== void 0 && (Te(t),
|
|
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
455
|
for (m in r)
|
|
456
456
|
U.call(r, m) && !Ke.hasOwnProperty(m) && (d[m] = r[m]);
|
|
457
457
|
if (e && e.defaultProps) {
|
|
@@ -459,11 +459,11 @@ function Rr() {
|
|
|
459
459
|
for (m in R)
|
|
460
460
|
d[m] === void 0 && (d[m] = R[m]);
|
|
461
461
|
}
|
|
462
|
-
if (
|
|
462
|
+
if (f || _) {
|
|
463
463
|
var y = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
464
|
-
|
|
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;
|
|
@@ -525,7 +525,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
525
525
|
return;
|
|
526
526
|
xe[t] = !0;
|
|
527
527
|
var i = "";
|
|
528
|
-
e && e._owner && e._owner !== te.current && (i = " It was passed a child from " + j(e._owner.type) + "."), $(e),
|
|
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) {
|
|
@@ -540,9 +540,9 @@ Check the top-level render call using <` + t + ">.");
|
|
|
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 m =
|
|
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,7 +555,7 @@ 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;
|
|
@@ -566,10 +566,10 @@ Check the top-level render call using <` + t + ">.");
|
|
|
566
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) {
|
|
@@ -577,25 +577,25 @@ Check the top-level render call using <` + t + ">.");
|
|
|
577
577
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
578
578
|
var i = r[t];
|
|
579
579
|
if (i !== "children" && i !== "key") {
|
|
580
|
-
$(e),
|
|
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 && ($(e),
|
|
584
|
+
e.ref !== null && ($(e), g("Invalid attribute `ref` supplied to `React.Fragment`."), $(null));
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
function Fe(e, r, t, i,
|
|
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
|
-
_ ?
|
|
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
595
|
var R;
|
|
596
|
-
e === null ? R = "null" : ee(e) ? R = "array" : e !== void 0 && e.$$typeof === o ? (R = "<" + (j(e.type) || "Unknown") + " />",
|
|
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 y = or(e, r, t,
|
|
598
|
+
var y = or(e, r, t, h, m);
|
|
599
599
|
if (y == null)
|
|
600
600
|
return y;
|
|
601
601
|
if (d) {
|
|
@@ -607,7 +607,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
607
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
|
}
|
|
@@ -637,91 +637,91 @@ const H = pr({
|
|
|
637
637
|
}), Tr = ({
|
|
638
638
|
axios: n,
|
|
639
639
|
children: o,
|
|
640
|
-
translate:
|
|
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
662
|
loginPath: o = "/login",
|
|
663
|
-
localStorageKey:
|
|
663
|
+
localStorageKey: u = "user",
|
|
664
664
|
redirect401Path: l = "/login",
|
|
665
|
-
...
|
|
665
|
+
...a
|
|
666
666
|
}) => {
|
|
667
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
695
|
useLocation: o = n.useLocation,
|
|
696
|
-
Outlet:
|
|
696
|
+
Outlet: u = n.Outlet,
|
|
697
697
|
useGoogleTagManager: l = n.useGoogleTagManager
|
|
698
698
|
} = se(H);
|
|
699
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:
|
|
705
|
+
const { pathname: a } = o(), { sendEvent: v } = l();
|
|
706
706
|
return mr(() => {
|
|
707
|
-
|
|
708
|
-
}, [
|
|
707
|
+
v({ event: "pageView", pathname: a });
|
|
708
|
+
}, [a, v]), /* @__PURE__ */ x.jsx(u, {});
|
|
709
709
|
}, jr = ({
|
|
710
710
|
axios: n,
|
|
711
711
|
baseURL: o,
|
|
712
|
-
tokenTypeKey:
|
|
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 = o, n.defaults.headers.post["Content-Type"] =
|
|
721
|
-
}, [n.defaults, o,
|
|
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
723
|
initReactI18next: o,
|
|
724
|
-
resources:
|
|
724
|
+
resources: u,
|
|
725
725
|
LanguageDetector: l
|
|
726
726
|
}) => (n.use(l).use(o).init({
|
|
727
727
|
debug: !1,
|
|
@@ -733,14 +733,25 @@ 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 = ({
|
|
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(() => {
|
|
743
753
|
process.env.NODE_ENV === "production" && o.init({
|
|
754
|
+
debug: c,
|
|
744
755
|
dsn: n,
|
|
745
756
|
integrations: [
|
|
746
757
|
new o.BrowserTracing({
|
|
@@ -752,36 +763,44 @@ const H = pr({
|
|
|
752
763
|
a.matchRoutes
|
|
753
764
|
)
|
|
754
765
|
}),
|
|
755
|
-
new o.Replay()
|
|
766
|
+
new o.Replay(),
|
|
767
|
+
...u || []
|
|
756
768
|
],
|
|
757
|
-
replaysOnErrorSampleRate: 1,
|
|
758
|
-
replaysSessionSampleRate: 0.1,
|
|
759
|
-
|
|
769
|
+
replaysOnErrorSampleRate: s || 1,
|
|
770
|
+
replaysSessionSampleRate: v || 0.1,
|
|
771
|
+
tracePropagationTargets: p,
|
|
772
|
+
tracesSampleRate: l || 1
|
|
760
773
|
});
|
|
761
774
|
}, [
|
|
775
|
+
c,
|
|
762
776
|
n,
|
|
777
|
+
u,
|
|
778
|
+
s,
|
|
779
|
+
v,
|
|
763
780
|
a.createRoutesFromChildren,
|
|
764
781
|
a.matchRoutes,
|
|
765
782
|
a.useEffect,
|
|
766
783
|
a.useLocation,
|
|
767
784
|
a.useNavigationType,
|
|
768
|
-
o
|
|
785
|
+
o,
|
|
786
|
+
p,
|
|
787
|
+
l
|
|
769
788
|
]), null), Ar = ({ IMaskMixin: n, ...o }) => {
|
|
770
|
-
const
|
|
789
|
+
const u = ue(
|
|
771
790
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
772
|
-
() => n(({ TextField: l, ...
|
|
791
|
+
() => n(({ TextField: l, ...a }) => /* @__PURE__ */ x.jsx(l, { ...a })),
|
|
773
792
|
[n]
|
|
774
793
|
);
|
|
775
|
-
return /* @__PURE__ */ x.jsx(
|
|
794
|
+
return /* @__PURE__ */ x.jsx(u, { ...o });
|
|
776
795
|
}, kr = ({ mapbox: n, accessToken: o }) => (X(() => {
|
|
777
796
|
n && o && (n.accessToken = o);
|
|
778
797
|
}, [o, n]), null), Fr = ({
|
|
779
798
|
children: n,
|
|
780
799
|
defaultOptions: o,
|
|
781
|
-
QueryClient:
|
|
800
|
+
QueryClient: u,
|
|
782
801
|
QueryClientProvider: l
|
|
783
802
|
}) => {
|
|
784
|
-
const
|
|
803
|
+
const a = new u({
|
|
785
804
|
defaultOptions: {
|
|
786
805
|
queries: {
|
|
787
806
|
refetchOnWindowFocus: !1,
|
|
@@ -790,44 +809,44 @@ const H = pr({
|
|
|
790
809
|
}
|
|
791
810
|
}
|
|
792
811
|
});
|
|
793
|
-
return /* @__PURE__ */ x.jsx(l, { client:
|
|
812
|
+
return /* @__PURE__ */ x.jsx(l, { client: a, children: n });
|
|
794
813
|
}, $r = (n) => {
|
|
795
|
-
const { unknownErrorTranslationKey: o = "error.unknownError" } = n || {}, { translate:
|
|
814
|
+
const { unknownErrorTranslationKey: o = "error.unknownError" } = n || {}, { translate: u = n == null ? void 0 : n.translate } = se(H);
|
|
796
815
|
return { printError: J(
|
|
797
|
-
(
|
|
798
|
-
var
|
|
799
|
-
const
|
|
800
|
-
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;
|
|
801
820
|
},
|
|
802
|
-
[
|
|
821
|
+
[u, o]
|
|
803
822
|
) };
|
|
804
823
|
}, Dr = ({
|
|
805
824
|
data: n,
|
|
806
825
|
fetchNextPage: o,
|
|
807
|
-
isFetchingNextPage:
|
|
826
|
+
isFetchingNextPage: u,
|
|
808
827
|
isInitialLoading: l,
|
|
809
|
-
isLoading:
|
|
810
|
-
enabled:
|
|
828
|
+
isLoading: a,
|
|
829
|
+
enabled: v = !0
|
|
811
830
|
}) => {
|
|
812
831
|
const s = J(
|
|
813
|
-
async (
|
|
814
|
-
|
|
832
|
+
async (c) => {
|
|
833
|
+
u || !v || await o({ pageParam: (c == null ? void 0 : c.pageParam) || c.visibleRowsCount });
|
|
815
834
|
},
|
|
816
|
-
[
|
|
817
|
-
),
|
|
835
|
+
[v, o, u]
|
|
836
|
+
), p = ue(() => {
|
|
818
837
|
if (n)
|
|
819
|
-
return n.pages.reduce((
|
|
838
|
+
return n.pages.reduce((c, b) => [...c, ...b], []);
|
|
820
839
|
}, [n]);
|
|
821
840
|
return {
|
|
822
841
|
fetchNextPageOnRowsScrollEnd: s,
|
|
823
|
-
isLoading:
|
|
842
|
+
isLoading: u || a,
|
|
824
843
|
loadingVariant: l ? "skeleton" : "linear",
|
|
825
|
-
rows:
|
|
844
|
+
rows: p
|
|
826
845
|
};
|
|
827
846
|
}, Lr = (n) => {
|
|
828
847
|
const o = J(
|
|
829
|
-
({ tokenType: l, accessToken:
|
|
830
|
-
n.defaults.headers.common.Authorization = `${l} ${
|
|
848
|
+
({ tokenType: l, accessToken: a }) => {
|
|
849
|
+
n.defaults.headers.common.Authorization = `${l} ${a}`;
|
|
831
850
|
},
|
|
832
851
|
[n.defaults.headers.common]
|
|
833
852
|
);
|
|
@@ -838,21 +857,21 @@ const H = pr({
|
|
|
838
857
|
setAuthenticationToken: o
|
|
839
858
|
};
|
|
840
859
|
}, yr = (n) => n.charAt(0).toUpperCase() + n.slice(1).toLowerCase(), br = (n) => {
|
|
841
|
-
const l = n.split("/").filter((
|
|
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("");
|
|
842
861
|
return l.charAt(0).toLowerCase() + l.slice(1);
|
|
843
|
-
}, _r = (n, o,
|
|
844
|
-
const l = br(o),
|
|
845
|
-
return `${l}${
|
|
862
|
+
}, _r = (n, o, u) => {
|
|
863
|
+
const l = br(o), a = yr(u);
|
|
864
|
+
return `${l}${a}`;
|
|
846
865
|
}, wr = (n) => {
|
|
847
866
|
if (n)
|
|
848
|
-
return (n == null ? void 0 : n.reduce((o,
|
|
867
|
+
return (n == null ? void 0 : n.reduce((o, u) => (o[u] = {
|
|
849
868
|
query: {
|
|
850
869
|
useInfinite: !0,
|
|
851
870
|
useInfiniteQueryParam: "offset"
|
|
852
871
|
}
|
|
853
872
|
}, o), {})) || {};
|
|
854
873
|
}, Wr = (n) => {
|
|
855
|
-
const { input: o = "./openapi.json", operationsToGenerateInfiniteQueryHook:
|
|
874
|
+
const { input: o = "./openapi.json", operationsToGenerateInfiniteQueryHook: u = void 0 } = n || {};
|
|
856
875
|
return {
|
|
857
876
|
api: {
|
|
858
877
|
hooks: {
|
|
@@ -873,7 +892,7 @@ const H = pr({
|
|
|
873
892
|
path: `${__dirname}/config/orval/mutator/axiosCustomInstance.ts`
|
|
874
893
|
},
|
|
875
894
|
operationName: _r,
|
|
876
|
-
...(
|
|
895
|
+
...(u == null ? void 0 : u.length) && { operations: wr(u) },
|
|
877
896
|
query: {
|
|
878
897
|
useQuery: !0
|
|
879
898
|
}
|
package/dist/main.umd.cjs
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var ue;function Le(){if(ue)return W;ue=1;var n=E,o=Symbol.for("react.element"),
|
|
9
|
+
*/var ue;function Le(){if(ue)return W;ue=1;var n=E,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};function s(p,c,C){var y,T={},S=null,O=null;C!==void 0&&(S=""+C),c.key!==void 0&&(S=""+c.key),c.ref!==void 0&&(O=c.ref);for(y in c)l.call(c,y)&&!v.hasOwnProperty(y)&&(T[y]=c[y]);if(p&&p.defaultProps)for(y in c=p.defaultProps,c)T[y]===void 0&&(T[y]=c[y]);return{$$typeof:o,type:p,key:S,ref:O,props:T,_owner:a.current}}return W.Fragment=u,W.jsx=s,W.jsxs=s,W}var N={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var se;function Me(){return se||(se=1,process.env.NODE_ENV!=="production"&&function(){var n=E,o=Symbol.for("react.element"),
|
|
18
|
-
`+ee+e}}var te=!1,X;{var ut=typeof WeakMap=="function"?WeakMap:Map;X=new ut}function be(e,t){if(!e||te)return"";{var r=X.get(e);if(r!==void 0)return r}var i;te=!0;var
|
|
17
|
+
*/var se;function Me(){return se||(se=1,process.env.NODE_ENV!=="production"&&function(){var n=E,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"),C=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),O=Symbol.for("react.offscreen"),F=Symbol.iterator,D="@@iterator";function U(e){if(e===null||typeof e!="object")return null;var t=F&&e[F]||e[D];return typeof t=="function"?t:null}var k=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(e){{for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];le("error",e,r)}}function le(e,t,r){{var i=k.ReactDebugCurrentFrame,h=i.getStackAddendum();h!==""&&(t+="%s",r=r.concat([h]));var m=r.map(function(d){return String(d)});m.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,m)}}var ce=!1,G=!1,et=!1,tt=!1,rt=!1,fe;fe=Symbol.for("react.module.reference");function nt(e){return!!(typeof e=="string"||typeof e=="function"||e===l||e===v||rt||e===a||e===C||e===y||tt||e===O||ce||G||et||typeof e=="object"&&e!==null&&(e.$$typeof===S||e.$$typeof===T||e.$$typeof===s||e.$$typeof===p||e.$$typeof===c||e.$$typeof===fe||e.getModuleId!==void 0))}function at(e,t,r){var i=e.displayName;if(i)return i;var h=t.displayName||t.name||"";return h!==""?r+"("+h+")":r}function de(e){return e.displayName||"Context"}function A(e){if(e==null)return null;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")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case l:return"Fragment";case u:return"Portal";case v:return"Profiler";case a:return"StrictMode";case C:return"Suspense";case y:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case p:var t=e;return de(t)+".Consumer";case s:var r=e;return de(r._context)+".Provider";case c:return at(e,e.render,"ForwardRef");case T:var i=e.displayName||null;return i!==null?i:A(e.type)||"Memo";case S:{var h=e,m=h._payload,d=h._init;try{return A(d(m))}catch{return null}}}return null}var L=Object.assign,Y=0,ve,pe,ge,he,me,Ee,ye;function Re(){}Re.__reactDisabledLog=!0;function ot(){{if(Y===0){ve=console.log,pe=console.info,ge=console.warn,he=console.error,me=console.group,Ee=console.groupCollapsed,ye=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Re,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Y++}}function it(){{if(Y--,Y===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:L({},e,{value:ve}),info:L({},e,{value:pe}),warn:L({},e,{value:ge}),error:L({},e,{value:he}),group:L({},e,{value:me}),groupCollapsed:L({},e,{value:Ee}),groupEnd:L({},e,{value:ye})})}Y<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var $=k.ReactCurrentDispatcher,ee;function J(e,t,r){{if(ee===void 0)try{throw Error()}catch(h){var i=h.stack.trim().match(/\n( *(at )?)/);ee=i&&i[1]||""}return`
|
|
18
|
+
`+ee+e}}var te=!1,X;{var ut=typeof WeakMap=="function"?WeakMap:Map;X=new ut}function be(e,t){if(!e||te)return"";{var r=X.get(e);if(r!==void 0)return r}var i;te=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var m;m=$.current,$.current=null,ot();try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(x){i=x}Reflect.construct(e,[],d)}else{try{d.call()}catch(x){i=x}e.call(d.prototype)}}else{try{throw Error()}catch(x){i=x}e()}}catch(x){if(x&&i&&typeof x.stack=="string"){for(var f=x.stack.split(`
|
|
19
19
|
`),w=i.stack.split(`
|
|
20
|
-
`),R=
|
|
21
|
-
`+
|
|
20
|
+
`),R=f.length-1,_=w.length-1;R>=1&&_>=0&&f[R]!==w[_];)_--;for(;R>=1&&_>=0;R--,_--)if(f[R]!==w[_]){if(R!==1||_!==1)do if(R--,_--,_<0||f[R]!==w[_]){var j=`
|
|
21
|
+
`+f[R].replace(" at new "," at ");return e.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),typeof e=="function"&&X.set(e,j),j}while(R>=1&&_>=0);break}}}finally{te=!1,$.current=m,it(),Error.prepareStackTrace=h}var I=e?e.displayName||e.name:"",De=I?J(I):"";return typeof e=="function"&&X.set(e,De),De}function st(e,t,r){return be(e,!1)}function lt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function H(e,t,r){if(e==null)return"";if(typeof e=="function")return be(e,lt(e));if(typeof e=="string")return J(e);switch(e){case C:return J("Suspense");case y:return J("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case c:return st(e.render);case T:return H(e.type,t,r);case S:{var i=e,h=i._payload,m=i._init;try{return H(m(h),t,r)}catch{}}}return""}var Z=Object.prototype.hasOwnProperty,_e={},Ce=k.ReactDebugCurrentFrame;function q(e){if(e){var t=e._owner,r=H(e.type,e._source,t?t.type:null);Ce.setExtraStackFrame(r)}else Ce.setExtraStackFrame(null)}function ct(e,t,r,i,h){{var m=Function.call.bind(Z);for(var d in e)if(m(e,d)){var f=void 0;try{if(typeof e[d]!="function"){var w=Error((i||"React class")+": "+r+" 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`.");throw w.name="Invariant Violation",w}f=e[d](t,d,i,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(R){f=R}f&&!(f instanceof Error)&&(q(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",r,d,typeof f),q(null)),f instanceof Error&&!(f.message in _e)&&(_e[f.message]=!0,q(h),g("Failed %s type: %s",r,f.message),q(null))}}}var ft=Array.isArray;function re(e){return ft(e)}function dt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,r=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r}}function vt(e){try{return we(e),!1}catch{return!0}}function we(e){return""+e}function Te(e){if(vt(e))return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",dt(e)),we(e)}var z=k.ReactCurrentOwner,pt={key:!0,ref:!0,__self:!0,__source:!0},Oe,Se,ne;ne={};function gt(e){if(Z.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function ht(e){if(Z.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function mt(e,t){if(typeof e.ref=="string"&&z.current&&t&&z.current.stateNode!==t){var r=A(z.current.type);ne[r]||(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',A(z.current.type),e.ref),ne[r]=!0)}}function Et(e,t){{var r=function(){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)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}}function yt(e,t){{var r=function(){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)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}}var Rt=function(e,t,r,i,h,m,d){var f={$$typeof:o,type:e,key:t,ref:r,props:d,_owner:m};return f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(f,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(f,"_source",{configurable:!1,enumerable:!1,writable:!1,value:h}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f};function bt(e,t,r,i,h){{var m,d={},f=null,w=null;r!==void 0&&(Te(r),f=""+r),ht(t)&&(Te(t.key),f=""+t.key),gt(t)&&(w=t.ref,mt(t,h));for(m in t)Z.call(t,m)&&!pt.hasOwnProperty(m)&&(d[m]=t[m]);if(e&&e.defaultProps){var R=e.defaultProps;for(m in R)d[m]===void 0&&(d[m]=R[m])}if(f||w){var _=typeof e=="function"?e.displayName||e.name||"Unknown":e;f&&Et(d,_),w&&yt(d,_)}return Rt(e,f,w,h,i,z.current,d)}}var ae=k.ReactCurrentOwner,je=k.ReactDebugCurrentFrame;function M(e){if(e){var t=e._owner,r=H(e.type,e._source,t?t.type:null);je.setExtraStackFrame(r)}else je.setExtraStackFrame(null)}var oe;oe=!1;function ie(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function Pe(){{if(ae.current){var e=A(ae.current.type);if(e)return`
|
|
22
22
|
|
|
23
23
|
Check the render method of \``+e+"`."}return""}}function _t(e){{if(e!==void 0){var t=e.fileName.replace(/^.*[\\\/]/,""),r=e.lineNumber;return`
|
|
24
24
|
|
|
25
25
|
Check your code at `+t+":"+r+"."}return""}}var ke={};function Ct(e){{var t=Pe();if(!t){var r=typeof e=="string"?e:e.displayName||e.name;r&&(t=`
|
|
26
26
|
|
|
27
|
-
Check the top-level render call using <`+r+">.")}return t}}function Ae(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=Ct(t);if(ke[r])return;ke[r]=!0;var i="";e&&e._owner&&e._owner!==ae.current&&(i=" It was passed a child from "+A(e._owner.type)+"."),M(e),
|
|
27
|
+
Check the top-level render call using <`+r+">.")}return t}}function Ae(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=Ct(t);if(ke[r])return;ke[r]=!0;var i="";e&&e._owner&&e._owner!==ae.current&&(i=" It was passed a child from "+A(e._owner.type)+"."),M(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.',r,i),M(null)}}function xe(e,t){{if(typeof e!="object")return;if(re(e))for(var r=0;r<e.length;r++){var i=e[r];ie(i)&&Ae(i,t)}else if(ie(e))e._store&&(e._store.validated=!0);else if(e){var h=U(e);if(typeof h=="function"&&h!==e.entries)for(var m=h.call(e),d;!(d=m.next()).done;)ie(d.value)&&Ae(d.value,t)}}}function wt(e){{var t=e.type;if(t==null||typeof t=="string")return;var r;if(typeof t=="function")r=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===c||t.$$typeof===T))r=t.propTypes;else return;if(r){var i=A(t);ct(r,e.props,"prop",i,e)}else if(t.PropTypes!==void 0&&!oe){oe=!0;var h=A(t);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",h||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Tt(e){{for(var t=Object.keys(e.props),r=0;r<t.length;r++){var i=t[r];if(i!=="children"&&i!=="key"){M(e),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),M(null);break}}e.ref!==null&&(M(e),g("Invalid attribute `ref` supplied to `React.Fragment`."),M(null))}}function Fe(e,t,r,i,h,m){{var d=nt(e);if(!d){var f="";(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.");var w=_t(h);w?f+=w:f+=Pe();var R;e===null?R="null":re(e)?R="array":e!==void 0&&e.$$typeof===o?(R="<"+(A(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)}var _=bt(e,t,r,h,m);if(_==null)return _;if(d){var j=t.children;if(j!==void 0)if(i)if(re(j)){for(var I=0;I<j.length;I++)xe(j[I],e);Object.freeze&&Object.freeze(j)}else 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.");else xe(j,e)}return e===l?Tt(_):wt(_),_}}function Ot(e,t,r){return Fe(e,t,r,!0)}function St(e,t,r){return Fe(e,t,r,!1)}var jt=St,Pt=Ot;N.Fragment=l,N.jsx=jt,N.jsxs=Pt}()),N}process.env.NODE_ENV==="production"?K.exports=Le():K.exports=Me();var P=K.exports;const V=E.createContext({axios:void 0,children:void 0,Navigate:void 0,Outlet:void 0,translate:void 0,useAuth:void 0,useLocation:void 0}),Ie=({axios:n,children:o,translate:u,useAuth:l,Outlet:a,Navigate:v,useLocation:s,useGoogleTagManager:p})=>{const c=E.useMemo(()=>({axios:n,Navigate:v,Outlet:a,translate:u,useAuth:l,useGoogleTagManager:p,useLocation:s}),[v,a,n,u,l,p,s]);return P.jsx(V.Provider,{value:c,children:o})},B=n=>`RequireAuth require « ${n} » dependency. You can provide with InjectDependenciesProvider or directly in props.`,We=({Fallback:n,loginPath:o="/login",localStorageKey:u="user",redirect401Path:l="/login",...a})=>{var F,D,U,k;const{axios:v=a.axios,useLocation:s=a.useLocation,useAuth:p=a.useAuth,Outlet:c=a.Outlet,Navigate:C=a.Navigate}=E.useContext(V);if(p===void 0)throw new Error(B("useAuth"));if(s===void 0)throw new Error(B("useLocation"));if(c===void 0)throw new Error(B("Outlet"));if(C===void 0)throw new Error(B("Navigate"));const[y,T]=E.useState(null),{isLogged:S}=p(),O=s();return E.useLayoutEffect(()=>{v==null||v.interceptors.response.use(g=>g,async g=>{var G;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&&((G=g==null?void 0:g.response)==null?void 0:G.status)===401&&(v.defaults.headers.common.Authorization=null,localStorage.removeItem(u),T(l)),Promise.reject(g)})},[v==null?void 0:v.defaults,v==null?void 0:v.interceptors.response,u,l]),S&&!y?P.jsx(E.Suspense,{fallback:n,children:(D=(F=O.state)==null?void 0:F.from)!=null&&D.state&&((k=(U=O.state)==null?void 0:U.from)==null?void 0:k.pathname)===o?P.jsx(C,{to:O.state.from.state.from.pathname+O.state.from.state.from.search,replace:!0}):P.jsx(c,{})}):P.jsx(C,{to:o,state:{from:O},replace:!0})},Q=n=>`GTMSendPageView require « ${n} » dependency. You can provide with InjectDependenciesProvider or directly in props.`,Ne=({...n})=>{const{useLocation:o=n.useLocation,Outlet:u=n.Outlet,useGoogleTagManager:l=n.useGoogleTagManager}=E.useContext(V);if(o===void 0)throw new Error(Q("useLocation"));if(u===void 0)throw new Error(Q("Outlet"));if(l===void 0)throw new Error(Q("useGoogleTagManager"));const{pathname:a}=o(),{sendEvent:v}=l();return E.useEffect(()=>{v({event:"pageView",pathname:a})},[a,v]),P.jsx(u,{})},Ve=({axios:n,baseURL:o,tokenTypeKey:u="tokenType",userLocalStorageKey:l="user",tokenKey:a="accessToken",postContentType:v="application/json"})=>(E.useLayoutEffect(()=>{if(!n.defaults)return;const s=localStorage.getItem(l),p=s?JSON.parse(s):null,c=p!=null&&p[u]?p[u]:null,C=p!=null&&p[a]?p[a]:null,y=s?`${c} ${C}`:null;n.defaults.baseURL=o,n.defaults.headers.post["Content-Type"]=v,y&&(n.defaults.headers.common.Authorization=y)},[n.defaults,o,v,a,u,l]),null),Ye=({i18n:n,initReactI18next:o,resources:u,LanguageDetector:l})=>(n.use(l).use(o).init({debug:!1,fallbackLng:"en",interpolation:{escapeValue:!1},load:"languageOnly",react:{useSuspense:!0},resources:u,returnNull:!1}).then(()=>{document.documentElement.lang!==n.resolvedLanguage&&n.resolvedLanguage&&document.documentElement.setAttribute("lang",n.resolvedLanguage)}),n.on("languageChanged",a=>{document.documentElement.setAttribute("lang",a)}),null),ze=({dsn:n,sentry:o,integrations:u,tracesSampleRate:l,routingInstrumentationDependencies:a,replaysSessionSampleRate:v,replaysOnErrorSampleRate:s,tracePropagationTargets:p,debug:c})=>(E.useLayoutEffect(()=>{process.env.NODE_ENV==="production"&&o.init({debug:c,dsn:n,integrations:[new o.BrowserTracing({routingInstrumentation:o.reactRouterV6Instrumentation(a.useEffect,a.useLocation,a.useNavigationType,a.createRoutesFromChildren,a.matchRoutes)}),new o.Replay,...u||[]],replaysOnErrorSampleRate:s||1,replaysSessionSampleRate:v||.1,tracePropagationTargets:p,tracesSampleRate:l||1})},[c,n,u,s,v,a.createRoutesFromChildren,a.matchRoutes,a.useEffect,a.useLocation,a.useNavigationType,o,p,l]),null),Be=({IMaskMixin:n,...o})=>{const u=E.useMemo(()=>n(({TextField:l,...a})=>P.jsx(l,{...a})),[n]);return P.jsx(u,{...o})},Ue=({mapbox:n,accessToken:o})=>(E.useLayoutEffect(()=>{n&&o&&(n.accessToken=o)},[o,n]),null),Ge=({children:n,defaultOptions:o,QueryClient:u,QueryClientProvider:l})=>{const a=new u({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:3,...o}}});return P.jsx(l,{client:a,children:n})},Je=n=>{const{unknownErrorTranslationKey:o="error.unknownError"}=n||{},{translate:u=n==null?void 0:n.translate}=E.useContext(V);return{printError:E.useCallback(a=>{var p,c,C,y,T,S,O,F,D;const v=u?u(o):"Unknown error",{response:s}=a||{};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):(y=(C=s==null?void 0:s.data)==null?void 0:C.detail)!=null&&y.length&&Array.isArray((T=s==null?void 0:s.data)==null?void 0:T.detail)&&((O=(S=s==null?void 0:s.data)==null?void 0:S.detail[0])!=null&&O.msg)&&typeof((D=(F=s==null?void 0:s.data)==null?void 0:F.detail[0])==null?void 0:D.msg)=="string"?String(s.data.detail[0].msg):v},[u,o])}},Xe=({data:n,fetchNextPage:o,isFetchingNextPage:u,isInitialLoading:l,isLoading:a,enabled:v=!0})=>{const s=E.useCallback(async c=>{u||!v||await o({pageParam:(c==null?void 0:c.pageParam)||c.visibleRowsCount})},[v,o,u]),p=E.useMemo(()=>{if(n)return n.pages.reduce((c,C)=>[...c,...C],[])},[n]);return{fetchNextPageOnRowsScrollEnd:s,isLoading:u||a,loadingVariant:l?"skeleton":"linear",rows:p}},He=n=>{const o=E.useCallback(({tokenType:l,accessToken:a})=>{n.defaults.headers.common.Authorization=`${l} ${a}`},[n.defaults.headers.common]);return{clearAuthenticationToken:E.useCallback(()=>{n.defaults.headers.common.Authorization=null},[n.defaults.headers.common]),setAuthenticationToken:o}},Ze=n=>n.charAt(0).toUpperCase()+n.slice(1).toLowerCase(),qe=n=>{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("");return l.charAt(0).toLowerCase()+l.slice(1)},Ke=(n,o,u)=>{const l=qe(o),a=Ze(u);return`${l}${a}`},Qe=n=>{if(n)return(n==null?void 0:n.reduce((o,u)=>(o[u]={query:{useInfinite:!0,useInfiniteQueryParam:"offset"}},o),{}))||{}},$e=n=>{const{input:o="./openapi.json",operationsToGenerateInfiniteQueryHook:u=void 0}=n||{};return{api:{hooks:{afterAllFilesWrite:"prettier src/api/ --write"},input:o,output:{client:"react-query",mode:"tags-split",override:{header:l=>["Generated by orval 🍺",...l.title?[l.title]:[],...l.description?[l.description]:[]],mutator:{name:"axiosCustomInstance",path:`${__dirname}/config/orval/mutator/axiosCustomInstance.ts`},operationName:Ke,...(u==null?void 0:u.length)&&{operations:Qe(u)},query:{useQuery:!0}},schemas:"src/api/model",target:"src/api/services/api.ts"}}}};b.AxiosConfig=Ve,b.GTMSendPageView=Ne,b.I18nConfig=Ye,b.InjectDependenciesContext=V,b.InjectDependenciesProvider=Ie,b.MapBoxConfig=Ue,b.MaskTextField=Be,b.QueryClientConfigProvider=Ge,b.RequireAuth=We,b.SentryConfig=ze,b.getOrvalConfig=$e,b.useAuth=He,b.useInfiniteDataGrid=Xe,b.useResponseError=Je,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})});
|