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