@tracktor/shared-module 2.9.4 → 2.10.0
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/InitializeSentryConfig.d.ts +1 -1
- package/dist/context/InjectDependenciesProvider.d.ts +0 -1
- package/dist/main.d.ts +0 -2
- package/dist/main.js +233 -239
- package/dist/main.umd.cjs +7 -7
- package/package.json +1 -1
- package/dist/components/Utils/InitializeMapBoxConfig.d.ts +0 -19
package/dist/main.js
CHANGED
|
@@ -13,13 +13,13 @@ var Ne;
|
|
|
13
13
|
function Et() {
|
|
14
14
|
if (Ne) return K;
|
|
15
15
|
Ne = 1;
|
|
16
|
-
var t = Ve, n = Symbol.for("react.element"), o = Symbol.for("react.fragment"),
|
|
16
|
+
var t = Ve, n = Symbol.for("react.element"), o = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, a = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
17
|
function f(d, u, m) {
|
|
18
|
-
var g,
|
|
18
|
+
var g, C = {}, b = null, s = null;
|
|
19
19
|
m !== void 0 && (b = "" + m), u.key !== void 0 && (b = "" + u.key), u.ref !== void 0 && (s = u.ref);
|
|
20
|
-
for (g in u)
|
|
21
|
-
if (d && d.defaultProps) for (g in u = d.defaultProps, u)
|
|
22
|
-
return { $$typeof: n, type: d, key: b, ref: s, props:
|
|
20
|
+
for (g in u) c.call(u, g) && !l.hasOwnProperty(g) && (C[g] = u[g]);
|
|
21
|
+
if (d && d.defaultProps) for (g in u = d.defaultProps, u) C[g] === void 0 && (C[g] = u[g]);
|
|
22
|
+
return { $$typeof: n, type: d, key: b, ref: s, props: C, _owner: a.current };
|
|
23
23
|
}
|
|
24
24
|
return K.Fragment = o, K.jsx = f, K.jsxs = f, K;
|
|
25
25
|
}
|
|
@@ -34,28 +34,28 @@ var q = {};
|
|
|
34
34
|
* LICENSE file in the root directory of this source tree.
|
|
35
35
|
*/
|
|
36
36
|
var Ye;
|
|
37
|
-
function
|
|
37
|
+
function Rt() {
|
|
38
38
|
return Ye || (Ye = 1, process.env.NODE_ENV !== "production" && function() {
|
|
39
|
-
var t = Ve, n = Symbol.for("react.element"), o = Symbol.for("react.portal"),
|
|
39
|
+
var t = Ve, n = Symbol.for("react.element"), o = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), d = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), s = Symbol.for("react.offscreen"), S = Symbol.iterator, w = "@@iterator";
|
|
40
40
|
function P(e) {
|
|
41
41
|
if (e === null || typeof e != "object")
|
|
42
42
|
return null;
|
|
43
|
-
var r =
|
|
43
|
+
var r = S && e[S] || e[w];
|
|
44
44
|
return typeof r == "function" ? r : null;
|
|
45
45
|
}
|
|
46
46
|
var h = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47
47
|
function _(e) {
|
|
48
48
|
{
|
|
49
|
-
for (var r = arguments.length,
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), v = 1; v < r; v++)
|
|
50
|
+
i[v - 1] = arguments[v];
|
|
51
|
+
x("error", e, i);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function x(e, r, i) {
|
|
55
55
|
{
|
|
56
|
-
var v = h.ReactDebugCurrentFrame,
|
|
57
|
-
|
|
58
|
-
var p =
|
|
56
|
+
var v = h.ReactDebugCurrentFrame, R = v.getStackAddendum();
|
|
57
|
+
R !== "" && (r += "%s", i = i.concat([R]));
|
|
58
|
+
var p = i.map(function(E) {
|
|
59
59
|
return String(E);
|
|
60
60
|
});
|
|
61
61
|
p.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, p);
|
|
@@ -64,18 +64,18 @@ function wt() {
|
|
|
64
64
|
var F = !1, L = !1, $ = !1, T = !1, ge = !1, ne;
|
|
65
65
|
ne = Symbol.for("react.module.reference");
|
|
66
66
|
function B(e) {
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
67
|
+
return !!(typeof e == "string" || typeof e == "function" || e === c || e === l || ge || e === a || e === m || e === g || T || e === s || F || L || $ || typeof e == "object" && e !== null && (e.$$typeof === b || e.$$typeof === C || e.$$typeof === f || e.$$typeof === d || e.$$typeof === u || // This needs to include all possible module reference object
|
|
68
68
|
// types supported by any Flight configuration anywhere since
|
|
69
69
|
// we don't know which Flight build this will end up being used
|
|
70
70
|
// with.
|
|
71
71
|
e.$$typeof === ne || e.getModuleId !== void 0));
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function Ue(e, r, i) {
|
|
74
74
|
var v = e.displayName;
|
|
75
75
|
if (v)
|
|
76
76
|
return v;
|
|
77
|
-
var
|
|
78
|
-
return
|
|
77
|
+
var R = r.displayName || r.name || "";
|
|
78
|
+
return R !== "" ? i + "(" + R + ")" : i;
|
|
79
79
|
}
|
|
80
80
|
function he(e) {
|
|
81
81
|
return e.displayName || "Context";
|
|
@@ -88,7 +88,7 @@ function wt() {
|
|
|
88
88
|
if (typeof e == "string")
|
|
89
89
|
return e;
|
|
90
90
|
switch (e) {
|
|
91
|
-
case
|
|
91
|
+
case c:
|
|
92
92
|
return "Fragment";
|
|
93
93
|
case o:
|
|
94
94
|
return "Portal";
|
|
@@ -107,15 +107,15 @@ function wt() {
|
|
|
107
107
|
var r = e;
|
|
108
108
|
return he(r) + ".Consumer";
|
|
109
109
|
case f:
|
|
110
|
-
var
|
|
111
|
-
return he(
|
|
110
|
+
var i = e;
|
|
111
|
+
return he(i._context) + ".Provider";
|
|
112
112
|
case u:
|
|
113
|
-
return
|
|
114
|
-
case
|
|
113
|
+
return Ue(e, e.render, "ForwardRef");
|
|
114
|
+
case C:
|
|
115
115
|
var v = e.displayName || null;
|
|
116
116
|
return v !== null ? v : N(e.type) || "Memo";
|
|
117
117
|
case b: {
|
|
118
|
-
var
|
|
118
|
+
var R = e, p = R._payload, E = R._init;
|
|
119
119
|
try {
|
|
120
120
|
return N(E(p));
|
|
121
121
|
} catch {
|
|
@@ -125,18 +125,18 @@ function wt() {
|
|
|
125
125
|
}
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
128
|
-
var V = Object.assign, G = 0, ye, me, Ee,
|
|
129
|
-
function
|
|
128
|
+
var V = Object.assign, G = 0, ye, me, Ee, Re, we, _e, pe;
|
|
129
|
+
function Se() {
|
|
130
130
|
}
|
|
131
|
-
|
|
132
|
-
function
|
|
131
|
+
Se.__reactDisabledLog = !0;
|
|
132
|
+
function Me() {
|
|
133
133
|
{
|
|
134
134
|
if (G === 0) {
|
|
135
|
-
ye = console.log, me = console.info, Ee = console.warn,
|
|
135
|
+
ye = console.log, me = console.info, Ee = console.warn, Re = console.error, we = console.group, _e = console.groupCollapsed, pe = console.groupEnd;
|
|
136
136
|
var e = {
|
|
137
137
|
configurable: !0,
|
|
138
138
|
enumerable: !0,
|
|
139
|
-
value:
|
|
139
|
+
value: Se,
|
|
140
140
|
writable: !0
|
|
141
141
|
};
|
|
142
142
|
Object.defineProperties(console, {
|
|
@@ -171,10 +171,10 @@ function wt() {
|
|
|
171
171
|
value: Ee
|
|
172
172
|
}),
|
|
173
173
|
error: V({}, e, {
|
|
174
|
-
value:
|
|
174
|
+
value: Re
|
|
175
175
|
}),
|
|
176
176
|
group: V({}, e, {
|
|
177
|
-
value:
|
|
177
|
+
value: we
|
|
178
178
|
}),
|
|
179
179
|
groupCollapsed: V({}, e, {
|
|
180
180
|
value: _e
|
|
@@ -188,13 +188,13 @@ function wt() {
|
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
var oe = h.ReactCurrentDispatcher, ae;
|
|
191
|
-
function Q(e, r,
|
|
191
|
+
function Q(e, r, i) {
|
|
192
192
|
{
|
|
193
193
|
if (ae === void 0)
|
|
194
194
|
try {
|
|
195
195
|
throw Error();
|
|
196
|
-
} catch (
|
|
197
|
-
var v =
|
|
196
|
+
} catch (R) {
|
|
197
|
+
var v = R.stack.trim().match(/\n( *(at )?)/);
|
|
198
198
|
ae = v && v[1] || "";
|
|
199
199
|
}
|
|
200
200
|
return `
|
|
@@ -206,20 +206,20 @@ function wt() {
|
|
|
206
206
|
var Je = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
207
|
X = new Je();
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function Ce(e, r) {
|
|
210
210
|
if (!e || ie)
|
|
211
211
|
return "";
|
|
212
212
|
{
|
|
213
|
-
var
|
|
214
|
-
if (
|
|
215
|
-
return
|
|
213
|
+
var i = X.get(e);
|
|
214
|
+
if (i !== void 0)
|
|
215
|
+
return i;
|
|
216
216
|
}
|
|
217
217
|
var v;
|
|
218
218
|
ie = !0;
|
|
219
|
-
var
|
|
219
|
+
var R = Error.prepareStackTrace;
|
|
220
220
|
Error.prepareStackTrace = void 0;
|
|
221
221
|
var p;
|
|
222
|
-
p = oe.current, oe.current = null,
|
|
222
|
+
p = oe.current, oe.current = null, Me();
|
|
223
223
|
try {
|
|
224
224
|
if (r) {
|
|
225
225
|
var E = function() {
|
|
@@ -255,40 +255,40 @@ function wt() {
|
|
|
255
255
|
} catch (Y) {
|
|
256
256
|
if (Y && v && typeof Y.stack == "string") {
|
|
257
257
|
for (var y = Y.stack.split(`
|
|
258
|
-
`),
|
|
259
|
-
`), j = y.length - 1, O =
|
|
258
|
+
`), A = v.stack.split(`
|
|
259
|
+
`), j = y.length - 1, O = A.length - 1; j >= 1 && O >= 0 && y[j] !== A[O]; )
|
|
260
260
|
O--;
|
|
261
261
|
for (; j >= 1 && O >= 0; j--, O--)
|
|
262
|
-
if (y[j] !==
|
|
262
|
+
if (y[j] !== A[O]) {
|
|
263
263
|
if (j !== 1 || O !== 1)
|
|
264
264
|
do
|
|
265
|
-
if (j--, O--, O < 0 || y[j] !==
|
|
266
|
-
var
|
|
265
|
+
if (j--, O--, O < 0 || y[j] !== A[O]) {
|
|
266
|
+
var I = `
|
|
267
267
|
` + y[j].replace(" at new ", " at ");
|
|
268
|
-
return e.displayName &&
|
|
268
|
+
return e.displayName && I.includes("<anonymous>") && (I = I.replace("<anonymous>", e.displayName)), typeof e == "function" && X.set(e, I), I;
|
|
269
269
|
}
|
|
270
270
|
while (j >= 1 && O >= 0);
|
|
271
271
|
break;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
} finally {
|
|
275
|
-
ie = !1, oe.current = p, Ge(), Error.prepareStackTrace =
|
|
275
|
+
ie = !1, oe.current = p, Ge(), Error.prepareStackTrace = R;
|
|
276
276
|
}
|
|
277
|
-
var
|
|
277
|
+
var M = e ? e.displayName || e.name : "", $e = M ? Q(M) : "";
|
|
278
278
|
return typeof e == "function" && X.set(e, $e), $e;
|
|
279
279
|
}
|
|
280
|
-
function Ke(e, r,
|
|
281
|
-
return
|
|
280
|
+
function Ke(e, r, i) {
|
|
281
|
+
return Ce(e, !1);
|
|
282
282
|
}
|
|
283
283
|
function qe(e) {
|
|
284
284
|
var r = e.prototype;
|
|
285
285
|
return !!(r && r.isReactComponent);
|
|
286
286
|
}
|
|
287
|
-
function H(e, r,
|
|
287
|
+
function H(e, r, i) {
|
|
288
288
|
if (e == null)
|
|
289
289
|
return "";
|
|
290
290
|
if (typeof e == "function")
|
|
291
|
-
return
|
|
291
|
+
return Ce(e, qe(e));
|
|
292
292
|
if (typeof e == "string")
|
|
293
293
|
return Q(e);
|
|
294
294
|
switch (e) {
|
|
@@ -301,12 +301,12 @@ function wt() {
|
|
|
301
301
|
switch (e.$$typeof) {
|
|
302
302
|
case u:
|
|
303
303
|
return Ke(e.render);
|
|
304
|
-
case
|
|
305
|
-
return H(e.type, r,
|
|
304
|
+
case C:
|
|
305
|
+
return H(e.type, r, i);
|
|
306
306
|
case b: {
|
|
307
|
-
var v = e,
|
|
307
|
+
var v = e, R = v._payload, p = v._init;
|
|
308
308
|
try {
|
|
309
|
-
return H(p(
|
|
309
|
+
return H(p(R), r, i);
|
|
310
310
|
} catch {
|
|
311
311
|
}
|
|
312
312
|
}
|
|
@@ -316,12 +316,12 @@ function wt() {
|
|
|
316
316
|
var Z = Object.prototype.hasOwnProperty, be = {}, Pe = h.ReactDebugCurrentFrame;
|
|
317
317
|
function ee(e) {
|
|
318
318
|
if (e) {
|
|
319
|
-
var r = e._owner,
|
|
320
|
-
Pe.setExtraStackFrame(
|
|
319
|
+
var r = e._owner, i = H(e.type, e._source, r ? r.type : null);
|
|
320
|
+
Pe.setExtraStackFrame(i);
|
|
321
321
|
} else
|
|
322
322
|
Pe.setExtraStackFrame(null);
|
|
323
323
|
}
|
|
324
|
-
function Be(e, r,
|
|
324
|
+
function Be(e, r, i, v, R) {
|
|
325
325
|
{
|
|
326
326
|
var p = Function.call.bind(Z);
|
|
327
327
|
for (var E in e)
|
|
@@ -329,14 +329,14 @@ function wt() {
|
|
|
329
329
|
var y = void 0;
|
|
330
330
|
try {
|
|
331
331
|
if (typeof e[E] != "function") {
|
|
332
|
-
var
|
|
333
|
-
throw
|
|
332
|
+
var A = Error((v || "React class") + ": " + i + " type `" + E + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[E] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
333
|
+
throw A.name = "Invariant Violation", A;
|
|
334
334
|
}
|
|
335
|
-
y = e[E](r, E, v,
|
|
335
|
+
y = e[E](r, E, v, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
336
|
} catch (j) {
|
|
337
337
|
y = j;
|
|
338
338
|
}
|
|
339
|
-
y && !(y instanceof Error) && (ee(
|
|
339
|
+
y && !(y instanceof Error) && (ee(R), _("%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).", v || "React class", i, E, typeof y), ee(null)), y instanceof Error && !(y.message in be) && (be[y.message] = !0, ee(R), _("Failed %s type: %s", i, y.message), ee(null));
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
@@ -346,8 +346,8 @@ function wt() {
|
|
|
346
346
|
}
|
|
347
347
|
function Xe(e) {
|
|
348
348
|
{
|
|
349
|
-
var r = typeof Symbol == "function" && Symbol.toStringTag,
|
|
350
|
-
return
|
|
349
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, i = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
350
|
+
return i;
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
function He(e) {
|
|
@@ -369,7 +369,7 @@ function wt() {
|
|
|
369
369
|
ref: !0,
|
|
370
370
|
__self: !0,
|
|
371
371
|
__source: !0
|
|
372
|
-
}, Te,
|
|
372
|
+
}, Te, Ae, se;
|
|
373
373
|
se = {};
|
|
374
374
|
function et(e) {
|
|
375
375
|
if (Z.call(e, "ref")) {
|
|
@@ -389,40 +389,40 @@ function wt() {
|
|
|
389
389
|
}
|
|
390
390
|
function rt(e, r) {
|
|
391
391
|
if (typeof e.ref == "string" && J.current && r && J.current.stateNode !== r) {
|
|
392
|
-
var
|
|
393
|
-
se[
|
|
392
|
+
var i = N(J.current.type);
|
|
393
|
+
se[i] || (_('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', N(J.current.type), e.ref), se[i] = !0);
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
396
|
function nt(e, r) {
|
|
397
397
|
{
|
|
398
|
-
var
|
|
398
|
+
var i = function() {
|
|
399
399
|
Te || (Te = !0, _("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
400
400
|
};
|
|
401
|
-
|
|
402
|
-
get:
|
|
401
|
+
i.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
402
|
+
get: i,
|
|
403
403
|
configurable: !0
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
407
|
function ot(e, r) {
|
|
408
408
|
{
|
|
409
|
-
var
|
|
410
|
-
|
|
409
|
+
var i = function() {
|
|
410
|
+
Ae || (Ae = !0, _("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
411
411
|
};
|
|
412
|
-
|
|
413
|
-
get:
|
|
412
|
+
i.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
413
|
+
get: i,
|
|
414
414
|
configurable: !0
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
var at = function(e, r,
|
|
418
|
+
var at = function(e, r, i, v, R, p, E) {
|
|
419
419
|
var y = {
|
|
420
420
|
// This tag allows us to uniquely identify this as a React Element
|
|
421
421
|
$$typeof: n,
|
|
422
422
|
// Built-in properties that belong on the element
|
|
423
423
|
type: e,
|
|
424
424
|
key: r,
|
|
425
|
-
ref:
|
|
425
|
+
ref: i,
|
|
426
426
|
props: E,
|
|
427
427
|
// Record the component responsible for creating this element.
|
|
428
428
|
_owner: p
|
|
@@ -441,13 +441,13 @@ function wt() {
|
|
|
441
441
|
configurable: !1,
|
|
442
442
|
enumerable: !1,
|
|
443
443
|
writable: !1,
|
|
444
|
-
value:
|
|
444
|
+
value: R
|
|
445
445
|
}), Object.freeze && (Object.freeze(y.props), Object.freeze(y)), y;
|
|
446
446
|
};
|
|
447
|
-
function it(e, r,
|
|
447
|
+
function it(e, r, i, v, R) {
|
|
448
448
|
{
|
|
449
|
-
var p, E = {}, y = null,
|
|
450
|
-
|
|
449
|
+
var p, E = {}, y = null, A = null;
|
|
450
|
+
i !== void 0 && (Oe(i), y = "" + i), tt(r) && (Oe(r.key), y = "" + r.key), et(r) && (A = r.ref, rt(r, R));
|
|
451
451
|
for (p in r)
|
|
452
452
|
Z.call(r, p) && !Ze.hasOwnProperty(p) && (E[p] = r[p]);
|
|
453
453
|
if (e && e.defaultProps) {
|
|
@@ -455,20 +455,20 @@ function wt() {
|
|
|
455
455
|
for (p in j)
|
|
456
456
|
E[p] === void 0 && (E[p] = j[p]);
|
|
457
457
|
}
|
|
458
|
-
if (y ||
|
|
458
|
+
if (y || A) {
|
|
459
459
|
var O = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
460
|
-
y && nt(E, O),
|
|
460
|
+
y && nt(E, O), A && ot(E, O);
|
|
461
461
|
}
|
|
462
|
-
return at(e, y,
|
|
462
|
+
return at(e, y, A, R, v, J.current, E);
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
|
-
var ue = h.ReactCurrentOwner,
|
|
466
|
-
function
|
|
465
|
+
var ue = h.ReactCurrentOwner, xe = h.ReactDebugCurrentFrame;
|
|
466
|
+
function U(e) {
|
|
467
467
|
if (e) {
|
|
468
|
-
var r = e._owner,
|
|
469
|
-
|
|
468
|
+
var r = e._owner, i = H(e.type, e._source, r ? r.type : null);
|
|
469
|
+
xe.setExtraStackFrame(i);
|
|
470
470
|
} else
|
|
471
|
-
|
|
471
|
+
xe.setExtraStackFrame(null);
|
|
472
472
|
}
|
|
473
473
|
var le;
|
|
474
474
|
le = !1;
|
|
@@ -495,10 +495,10 @@ Check the render method of \`` + e + "`.";
|
|
|
495
495
|
{
|
|
496
496
|
var r = Ie();
|
|
497
497
|
if (!r) {
|
|
498
|
-
var
|
|
499
|
-
|
|
498
|
+
var i = typeof e == "string" ? e : e.displayName || e.name;
|
|
499
|
+
i && (r = `
|
|
500
500
|
|
|
501
|
-
Check the top-level render call using <` +
|
|
501
|
+
Check the top-level render call using <` + i + ">.");
|
|
502
502
|
}
|
|
503
503
|
return r;
|
|
504
504
|
}
|
|
@@ -508,12 +508,12 @@ Check the top-level render call using <` + c + ">.");
|
|
|
508
508
|
if (!e._store || e._store.validated || e.key != null)
|
|
509
509
|
return;
|
|
510
510
|
e._store.validated = !0;
|
|
511
|
-
var
|
|
512
|
-
if (ke[
|
|
511
|
+
var i = st(r);
|
|
512
|
+
if (ke[i])
|
|
513
513
|
return;
|
|
514
|
-
ke[
|
|
514
|
+
ke[i] = !0;
|
|
515
515
|
var v = "";
|
|
516
|
-
e && e._owner && e._owner !== ue.current && (v = " It was passed a child from " + N(e._owner.type) + "."),
|
|
516
|
+
e && e._owner && e._owner !== ue.current && (v = " It was passed a child from " + N(e._owner.type) + "."), U(e), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, v), U(null);
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
519
|
function Fe(e, r) {
|
|
@@ -521,16 +521,16 @@ Check the top-level render call using <` + c + ">.");
|
|
|
521
521
|
if (typeof e != "object")
|
|
522
522
|
return;
|
|
523
523
|
if (ce(e))
|
|
524
|
-
for (var
|
|
525
|
-
var v = e[
|
|
524
|
+
for (var i = 0; i < e.length; i++) {
|
|
525
|
+
var v = e[i];
|
|
526
526
|
fe(v) && De(v, r);
|
|
527
527
|
}
|
|
528
528
|
else if (fe(e))
|
|
529
529
|
e._store && (e._store.validated = !0);
|
|
530
530
|
else if (e) {
|
|
531
|
-
var
|
|
532
|
-
if (typeof
|
|
533
|
-
for (var p =
|
|
531
|
+
var R = P(e);
|
|
532
|
+
if (typeof R == "function" && R !== e.entries)
|
|
533
|
+
for (var p = R.call(e), E; !(E = p.next()).done; )
|
|
534
534
|
fe(E.value) && De(E.value, r);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
@@ -540,114 +540,114 @@ Check the top-level render call using <` + c + ">.");
|
|
|
540
540
|
var r = e.type;
|
|
541
541
|
if (r == null || typeof r == "string")
|
|
542
542
|
return;
|
|
543
|
-
var
|
|
543
|
+
var i;
|
|
544
544
|
if (typeof r == "function")
|
|
545
|
-
|
|
545
|
+
i = r.propTypes;
|
|
546
546
|
else if (typeof r == "object" && (r.$$typeof === u || // Note: Memo only checks outer props here.
|
|
547
547
|
// Inner props are checked in the reconciler.
|
|
548
|
-
r.$$typeof ===
|
|
549
|
-
|
|
548
|
+
r.$$typeof === C))
|
|
549
|
+
i = r.propTypes;
|
|
550
550
|
else
|
|
551
551
|
return;
|
|
552
|
-
if (
|
|
552
|
+
if (i) {
|
|
553
553
|
var v = N(r);
|
|
554
|
-
Be(
|
|
554
|
+
Be(i, e.props, "prop", v, e);
|
|
555
555
|
} else if (r.PropTypes !== void 0 && !le) {
|
|
556
556
|
le = !0;
|
|
557
|
-
var
|
|
558
|
-
_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
557
|
+
var R = N(r);
|
|
558
|
+
_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", R || "Unknown");
|
|
559
559
|
}
|
|
560
560
|
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
563
|
function lt(e) {
|
|
564
564
|
{
|
|
565
|
-
for (var r = Object.keys(e.props),
|
|
566
|
-
var v = r[
|
|
565
|
+
for (var r = Object.keys(e.props), i = 0; i < r.length; i++) {
|
|
566
|
+
var v = r[i];
|
|
567
567
|
if (v !== "children" && v !== "key") {
|
|
568
|
-
|
|
568
|
+
U(e), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), U(null);
|
|
569
569
|
break;
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
|
-
e.ref !== null && (
|
|
572
|
+
e.ref !== null && (U(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), U(null));
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
|
-
function Le(e, r,
|
|
575
|
+
function Le(e, r, i, v, R, p) {
|
|
576
576
|
{
|
|
577
577
|
var E = B(e);
|
|
578
578
|
if (!E) {
|
|
579
579
|
var y = "";
|
|
580
580
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (y += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
581
|
-
var
|
|
582
|
-
|
|
581
|
+
var A = ct();
|
|
582
|
+
A ? y += A : y += Ie();
|
|
583
583
|
var j;
|
|
584
584
|
e === null ? j = "null" : ce(e) ? j = "array" : e !== void 0 && e.$$typeof === n ? (j = "<" + (N(e.type) || "Unknown") + " />", y = " Did you accidentally export a JSX literal instead of a component?") : j = typeof e, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", j, y);
|
|
585
585
|
}
|
|
586
|
-
var O = it(e, r,
|
|
586
|
+
var O = it(e, r, i, R, p);
|
|
587
587
|
if (O == null)
|
|
588
588
|
return O;
|
|
589
589
|
if (E) {
|
|
590
|
-
var
|
|
591
|
-
if (
|
|
590
|
+
var I = r.children;
|
|
591
|
+
if (I !== void 0)
|
|
592
592
|
if (v)
|
|
593
|
-
if (ce(
|
|
594
|
-
for (var
|
|
595
|
-
Fe(
|
|
596
|
-
Object.freeze && Object.freeze(
|
|
593
|
+
if (ce(I)) {
|
|
594
|
+
for (var M = 0; M < I.length; M++)
|
|
595
|
+
Fe(I[M], e);
|
|
596
|
+
Object.freeze && Object.freeze(I);
|
|
597
597
|
} else
|
|
598
598
|
_("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
599
599
|
else
|
|
600
|
-
Fe(
|
|
600
|
+
Fe(I, e);
|
|
601
601
|
}
|
|
602
|
-
return e ===
|
|
602
|
+
return e === c ? lt(O) : ut(O), O;
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
|
-
function ft(e, r,
|
|
606
|
-
return Le(e, r,
|
|
605
|
+
function ft(e, r, i) {
|
|
606
|
+
return Le(e, r, i, !0);
|
|
607
607
|
}
|
|
608
|
-
function dt(e, r,
|
|
609
|
-
return Le(e, r,
|
|
608
|
+
function dt(e, r, i) {
|
|
609
|
+
return Le(e, r, i, !1);
|
|
610
610
|
}
|
|
611
611
|
var vt = dt, gt = ft;
|
|
612
|
-
q.Fragment =
|
|
612
|
+
q.Fragment = c, q.jsx = vt, q.jsxs = gt;
|
|
613
613
|
}()), q;
|
|
614
614
|
}
|
|
615
|
-
process.env.NODE_ENV === "production" ? de.exports = Et() : de.exports =
|
|
615
|
+
process.env.NODE_ENV === "production" ? de.exports = Et() : de.exports = Rt();
|
|
616
616
|
var W = de.exports;
|
|
617
|
-
const
|
|
617
|
+
const k = ht({}), Lt = ({ children: t, apiURL: n, libraries: o, localStorageKeys: c }) => {
|
|
618
618
|
const a = ve(
|
|
619
619
|
() => ({
|
|
620
620
|
apiURL: n,
|
|
621
621
|
libraries: o,
|
|
622
|
-
localStorageKeys:
|
|
622
|
+
localStorageKeys: c
|
|
623
623
|
}),
|
|
624
|
-
[n, o,
|
|
624
|
+
[n, o, c]
|
|
625
625
|
);
|
|
626
|
-
return /* @__PURE__ */ W.jsx(
|
|
627
|
-
},
|
|
628
|
-
var
|
|
629
|
-
const { libraries: l, localStorageKeys: f } = D(
|
|
626
|
+
return /* @__PURE__ */ W.jsx(k.Provider, { value: a, children: t });
|
|
627
|
+
}, wt = "user", $t = ({ Fallback: t, isLogged: n, loginPath: o = "/login", redirect401Path: c = "/login", ...a }) => {
|
|
628
|
+
var x, F, L, $;
|
|
629
|
+
const { libraries: l, localStorageKeys: f } = D(k), d = (a == null ? void 0 : a.reactRouter) || (l == null ? void 0 : l.reactRouter), u = (a == null ? void 0 : a.axios) || (l == null ? void 0 : l.axios), m = (a == null ? void 0 : a.localStorageKey) || (f == null ? void 0 : f.user) || wt;
|
|
630
630
|
if (!d)
|
|
631
631
|
throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
632
|
-
const [g,
|
|
632
|
+
const [g, C] = ze(null), { useLocation: b, Navigate: s, Outlet: S } = d, w = b(), P = yt(!1), h = typeof n == "function" ? n() : !!n, _ = typeof h == "boolean" ? h : h == null ? void 0 : h.isLogged;
|
|
633
633
|
return z(() => {
|
|
634
634
|
P.current || (P.current = !0, u.interceptors.response.use(
|
|
635
635
|
(T) => T,
|
|
636
636
|
async (T) => {
|
|
637
637
|
var B;
|
|
638
|
-
return typeof T == "object" && T && "response" in T && T.response && typeof T.response == "object" && "status" in T.response && T.response && typeof T.response == "object" && "status" in T.response && ((B = T == null ? void 0 : T.response) == null ? void 0 : B.status) === 401 && (u.defaults.headers.common.Authorization = null, typeof window < "u" && window.localStorage && localStorage.removeItem(m),
|
|
638
|
+
return typeof T == "object" && T && "response" in T && T.response && typeof T.response == "object" && "status" in T.response && T.response && typeof T.response == "object" && "status" in T.response && ((B = T == null ? void 0 : T.response) == null ? void 0 : B.status) === 401 && (u.defaults.headers.common.Authorization = null, typeof window < "u" && window.localStorage && localStorage.removeItem(m), C(c)), Promise.reject(T);
|
|
639
639
|
}
|
|
640
640
|
));
|
|
641
|
-
}, [u.defaults.headers.common, u.interceptors.response, m,
|
|
641
|
+
}, [u.defaults.headers.common, u.interceptors.response, m, c]), _ && !g ? /* @__PURE__ */ W.jsx(mt, { fallback: t, children: (F = (x = w.state) == null ? void 0 : x.from) != null && F.state && (($ = (L = w.state) == null ? void 0 : L.from) == null ? void 0 : $.pathname) === o ? /* @__PURE__ */ W.jsx(s, { to: w.state.from.state.from.pathname + w.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ W.jsx(S, {}) }) : /* @__PURE__ */ W.jsx(s, { to: o + w.search, state: { from: w }, replace: !0 });
|
|
642
642
|
}, Nt = ({ data: t, ...n }) => {
|
|
643
|
-
const { libraries: o } = D(
|
|
644
|
-
if (!
|
|
643
|
+
const { libraries: o } = D(k), c = (n == null ? void 0 : n.reactRouter) || (o == null ? void 0 : o.reactRouter), a = (n == null ? void 0 : n.gtm) || (o == null ? void 0 : o.gtm);
|
|
644
|
+
if (!c)
|
|
645
645
|
throw new Error(
|
|
646
646
|
"React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView."
|
|
647
647
|
);
|
|
648
648
|
if (!a)
|
|
649
649
|
throw new Error("GTM is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView.");
|
|
650
|
-
const { useGoogleTagManager: l } = a, { useLocation: f, Outlet: d } =
|
|
650
|
+
const { useGoogleTagManager: l } = a, { useLocation: f, Outlet: d } = c, { pathname: u } = f(), { sendEvent: m } = l();
|
|
651
651
|
return z(() => {
|
|
652
652
|
m({
|
|
653
653
|
event: "pageView",
|
|
@@ -659,20 +659,20 @@ const I = ht({}), Lt = ({ children: t, apiURL: n, libraries: o, localStorageKeys
|
|
|
659
659
|
tokenTypeKey: t = "tokenType",
|
|
660
660
|
tokenKey: n = "accessToken",
|
|
661
661
|
postContentType: o = "application/json",
|
|
662
|
-
...
|
|
662
|
+
...c
|
|
663
663
|
}) => {
|
|
664
|
-
const { apiURL: a =
|
|
664
|
+
const { apiURL: a = c.apiURL, libraries: l, localStorageKeys: f } = D(k), d = (c == null ? void 0 : c.userLocalStorageKey) || (f == null ? void 0 : f.user) || _t, u = (c == null ? void 0 : c.axios) || (l == null ? void 0 : l.axios);
|
|
665
665
|
if (!u)
|
|
666
666
|
throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
667
667
|
if (!(u != null && u.defaults))
|
|
668
668
|
return null;
|
|
669
669
|
if (typeof window < "u" && window.localStorage) {
|
|
670
|
-
const m = localStorage.getItem(d), g = m ? JSON.parse(m) : null,
|
|
670
|
+
const m = localStorage.getItem(d), g = m ? JSON.parse(m) : null, C = g != null && g[t] ? g[t] : null, b = g != null && g[n] ? g[n] : null, s = m ? `${C} ${b}` : null;
|
|
671
671
|
s && (u.defaults.headers.common.Authorization = s);
|
|
672
672
|
}
|
|
673
673
|
return u.defaults.baseURL = a, u.defaults.headers.post["Content-Type"] = o, null;
|
|
674
674
|
}, Wt = ({ debug: t, resources: n, ...o }) => {
|
|
675
|
-
const { libraries:
|
|
675
|
+
const { libraries: c } = D(k), a = (o == null ? void 0 : o.i18) || (c == null ? void 0 : c.i18), { i18next: l, initReactI18next: f, languageDetector: d } = a || {};
|
|
676
676
|
if (!a)
|
|
677
677
|
throw new Error("i18 is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
678
678
|
return l != null && l.isInitialized || (l.use(d).use(f).init({
|
|
@@ -697,7 +697,7 @@ const I = ht({}), Lt = ({ children: t, apiURL: n, libraries: o, localStorageKeys
|
|
|
697
697
|
dsn: t,
|
|
698
698
|
integrations: n,
|
|
699
699
|
tracesSampleRate: o,
|
|
700
|
-
replaysSessionSampleRate:
|
|
700
|
+
replaysSessionSampleRate: c,
|
|
701
701
|
replaysOnErrorSampleRate: a,
|
|
702
702
|
tracePropagationTargets: l,
|
|
703
703
|
ignoreErrors: f,
|
|
@@ -706,14 +706,14 @@ const I = ht({}), Lt = ({ children: t, apiURL: n, libraries: o, localStorageKeys
|
|
|
706
706
|
release: m,
|
|
707
707
|
...g
|
|
708
708
|
}) => {
|
|
709
|
-
const { libraries:
|
|
709
|
+
const { libraries: C } = D(k), b = (g == null ? void 0 : g.sentry) || (C == null ? void 0 : C.sentry), s = (g == null ? void 0 : g.reactRouter) || (C == null ? void 0 : C.reactRouter);
|
|
710
710
|
if (!b)
|
|
711
711
|
throw new Error("Sentry is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
712
712
|
if (!s)
|
|
713
713
|
throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
714
714
|
if (b.isInitialized())
|
|
715
715
|
return null;
|
|
716
|
-
const { createRoutesFromChildren:
|
|
716
|
+
const { createRoutesFromChildren: S, matchRoutes: w, useLocation: P, useNavigationType: h } = s;
|
|
717
717
|
return (d || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && b.init({
|
|
718
718
|
debug: d,
|
|
719
719
|
dsn: t,
|
|
@@ -729,8 +729,8 @@ const I = ht({}), Lt = ({ children: t, apiURL: n, libraries: o, localStorageKeys
|
|
|
729
729
|
],
|
|
730
730
|
integrations: [
|
|
731
731
|
b.reactRouterV6BrowserTracingIntegration({
|
|
732
|
-
createRoutesFromChildren:
|
|
733
|
-
matchRoutes:
|
|
732
|
+
createRoutesFromChildren: S,
|
|
733
|
+
matchRoutes: w,
|
|
734
734
|
useEffect: z,
|
|
735
735
|
useLocation: P,
|
|
736
736
|
useNavigationType: h
|
|
@@ -739,25 +739,20 @@ const I = ht({}), Lt = ({ children: t, apiURL: n, libraries: o, localStorageKeys
|
|
|
739
739
|
],
|
|
740
740
|
release: m,
|
|
741
741
|
replaysOnErrorSampleRate: a || 1,
|
|
742
|
-
replaysSessionSampleRate:
|
|
742
|
+
replaysSessionSampleRate: c || 0.1,
|
|
743
743
|
tracePropagationTargets: l,
|
|
744
744
|
tracesSampleRate: o || 1
|
|
745
745
|
}), null;
|
|
746
746
|
}, zt = ({ IMaskMixin: t, ...n }) => {
|
|
747
747
|
const o = ve(
|
|
748
748
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
749
|
-
() => t(({ TextField:
|
|
749
|
+
() => t(({ TextField: c, ...a }) => /* @__PURE__ */ W.jsx(c, { ...a })),
|
|
750
750
|
[t]
|
|
751
751
|
);
|
|
752
752
|
return /* @__PURE__ */ W.jsx(o, { ...n });
|
|
753
|
-
}, Mt = ({ accessToken: t, ...n }) => {
|
|
754
|
-
const { libraries: o } = D(I), i = (n == null ? void 0 : n.mapbox) || (o == null ? void 0 : o.mapbox);
|
|
755
|
-
if (!i)
|
|
756
|
-
throw new Error("Mapbox is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
757
|
-
return t && (i.accessToken = t), null;
|
|
758
753
|
}, Ut = ({ language: t, ...n }) => {
|
|
759
|
-
const { libraries: o } = D(
|
|
760
|
-
if (!
|
|
754
|
+
const { libraries: o } = D(k), c = (n == null ? void 0 : n.dayjs) || (o == null ? void 0 : o.dayjs), a = (n == null ? void 0 : n.plugin) || (o == null ? void 0 : o.dayjsPlugin);
|
|
755
|
+
if (!c)
|
|
761
756
|
throw new Error(
|
|
762
757
|
"Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props of InitializeDaysJSConfig."
|
|
763
758
|
);
|
|
@@ -766,11 +761,11 @@ const I = ht({}), Lt = ({ children: t, apiURL: n, libraries: o, localStorageKeys
|
|
|
766
761
|
var d;
|
|
767
762
|
const f = t || ((d = navigator.language) == null ? void 0 : d.slice(0, 2)) || "en";
|
|
768
763
|
a && a.forEach((u) => {
|
|
769
|
-
u &&
|
|
770
|
-
}), await import("dayjs/locale/en"), await import("dayjs/locale/fr"),
|
|
764
|
+
u && c.extend(u);
|
|
765
|
+
}), await import("dayjs/locale/en"), await import("dayjs/locale/fr"), c.locale(f);
|
|
771
766
|
})().then();
|
|
772
|
-
}, [
|
|
773
|
-
},
|
|
767
|
+
}, [c, a, t]), null;
|
|
768
|
+
}, Mt = () => (z(() => {
|
|
774
769
|
const t = (n) => {
|
|
775
770
|
try {
|
|
776
771
|
n.preventDefault(), n.stopPropagation(), n.stopImmediatePropagation(), window.location.reload();
|
|
@@ -780,21 +775,21 @@ const I = ht({}), Lt = ({ children: t, apiURL: n, libraries: o, localStorageKeys
|
|
|
780
775
|
return window.addEventListener("vite:preloadError", t), () => {
|
|
781
776
|
window.removeEventListener("vite:preloadError", t);
|
|
782
777
|
};
|
|
783
|
-
}, []), null), pt = (t) => t && typeof t == "function",
|
|
778
|
+
}, []), null), pt = (t) => t && typeof t == "function", St = (t) => t && typeof t == "function", Gt = ({
|
|
784
779
|
children: t,
|
|
785
780
|
defaultQueriesOptions: n,
|
|
786
781
|
defaultMutationsOptions: o,
|
|
787
|
-
...
|
|
782
|
+
...c
|
|
788
783
|
}) => {
|
|
789
784
|
var u, m;
|
|
790
|
-
const { libraries: a } = D(
|
|
785
|
+
const { libraries: a } = D(k), l = (c == null ? void 0 : c.QueryClient) || ((u = a == null ? void 0 : a.reactQuery) == null ? void 0 : u.QueryClient), f = (c == null ? void 0 : c.QueryClientProvider) || ((m = a == null ? void 0 : a.reactQuery) == null ? void 0 : m.QueryClientProvider);
|
|
791
786
|
if (!l)
|
|
792
787
|
throw new Error("QueryClient is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
793
788
|
if (!f)
|
|
794
789
|
throw new Error("QueryClientProvider is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
795
790
|
if (!pt(f))
|
|
796
791
|
throw new Error("Provided QueryClientProvider dependencies are not valid.");
|
|
797
|
-
if (!
|
|
792
|
+
if (!St(l))
|
|
798
793
|
throw new Error("Provided QueryClient dependencies are not valid.");
|
|
799
794
|
const d = new l({
|
|
800
795
|
defaultOptions: {
|
|
@@ -802,7 +797,7 @@ const I = ht({}), Lt = ({ children: t, apiURL: n, libraries: o, localStorageKeys
|
|
|
802
797
|
...o
|
|
803
798
|
},
|
|
804
799
|
queries: {
|
|
805
|
-
getNextPageParam: (g,
|
|
800
|
+
getNextPageParam: (g, C, b) => g.length + (b || 0),
|
|
806
801
|
refetchOnWindowFocus: !1,
|
|
807
802
|
retry: 3,
|
|
808
803
|
...n
|
|
@@ -810,26 +805,26 @@ const I = ht({}), Lt = ({ children: t, apiURL: n, libraries: o, localStorageKeys
|
|
|
810
805
|
}
|
|
811
806
|
});
|
|
812
807
|
return /* @__PURE__ */ W.jsx(f, { client: d, children: t });
|
|
813
|
-
},
|
|
814
|
-
var m, g,
|
|
815
|
-
const { libraries: n } = D(
|
|
808
|
+
}, Jt = (t) => {
|
|
809
|
+
var m, g, C;
|
|
810
|
+
const { libraries: n } = D(k), o = (t == null ? void 0 : t.i18) || (n == null ? void 0 : n.i18), c = ((m = t == null ? void 0 : t.i18) == null ? void 0 : m.translateFunction) || ((g = n == null ? void 0 : n.i18) == null ? void 0 : g.translateFunction), a = ((C = o == null ? void 0 : o.i18next) == null ? void 0 : C.t) || c || ((b) => b), { unknownErrorTranslationKey: l = "error.unknownError" } = t || {}, f = a(l), d = re(
|
|
816
811
|
(b) => {
|
|
817
|
-
var
|
|
812
|
+
var S, w, P, h, _, x, F, L, $;
|
|
818
813
|
const { response: s } = b || {};
|
|
819
|
-
return s != null && s.reason ? String(s.reason) : (
|
|
814
|
+
return s != null && s.reason ? String(s.reason) : (S = s == null ? void 0 : s.data) != null && S.reason ? String(s.data.reason) : (w = s == null ? void 0 : s.data) != null && w.message ? String(s.data.message) : (h = (P = s == null ? void 0 : s.data) == null ? void 0 : P.detail) != null && h.length && Array.isArray((_ = s == null ? void 0 : s.data) == null ? void 0 : _.detail) && ((F = (x = s == null ? void 0 : s.data) == null ? void 0 : x.detail[0]) != null && F.msg) && typeof (($ = (L = s == null ? void 0 : s.data) == null ? void 0 : L.detail[0]) == null ? void 0 : $.msg) == "string" ? String(s.data.detail[0].msg) : f;
|
|
820
815
|
},
|
|
821
816
|
[f]
|
|
822
817
|
);
|
|
823
818
|
return { getErrorCode: re((b) => {
|
|
824
|
-
var
|
|
819
|
+
var S, w, P;
|
|
825
820
|
const { response: s } = b || {};
|
|
826
|
-
return s != null && s.error_code ? String(s == null ? void 0 : s.error_code) : (
|
|
821
|
+
return s != null && s.error_code ? String(s == null ? void 0 : s.error_code) : (S = s == null ? void 0 : s.data) != null && S.error_code ? String((w = s == null ? void 0 : s.data) == null ? void 0 : w.error_code) : s != null && s.error_code ? String(s == null ? void 0 : s.error_code) : (P = s == null ? void 0 : s.data) != null && P.error_code ? String(s.data.error_code) : "unknown_error_code";
|
|
827
822
|
}, []), printError: d };
|
|
828
|
-
},
|
|
823
|
+
}, Kt = ({
|
|
829
824
|
data: t,
|
|
830
825
|
fetchNextPage: n,
|
|
831
826
|
isFetchingNextPage: o,
|
|
832
|
-
isInitialLoading:
|
|
827
|
+
isInitialLoading: c,
|
|
833
828
|
isLoading: a,
|
|
834
829
|
enabled: l = !0
|
|
835
830
|
}) => {
|
|
@@ -845,11 +840,11 @@ const I = ht({}), Lt = ({ children: t, apiURL: n, libraries: o, localStorageKeys
|
|
|
845
840
|
return {
|
|
846
841
|
fetchNextPageOnRowsScrollEnd: f,
|
|
847
842
|
isLoading: o || a,
|
|
848
|
-
loadingVariant:
|
|
843
|
+
loadingVariant: c ? "skeleton" : "linear",
|
|
849
844
|
rows: d
|
|
850
845
|
};
|
|
851
|
-
},
|
|
852
|
-
const { libraries: n } = D(
|
|
846
|
+
}, qt = (t) => {
|
|
847
|
+
const { libraries: n } = D(k), o = (t == null ? void 0 : t.axios) || (n == null ? void 0 : n.axios), c = (t == null ? void 0 : t.localStorageKey) || "user";
|
|
853
848
|
if (!o)
|
|
854
849
|
throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in params of useAuth.");
|
|
855
850
|
const a = re(
|
|
@@ -862,7 +857,7 @@ const I = ht({}), Lt = ({ children: t, apiURL: n, libraries: o, localStorageKeys
|
|
|
862
857
|
};
|
|
863
858
|
return z(() => {
|
|
864
859
|
const f = ({ newValue: d, key: u }) => {
|
|
865
|
-
if (u ===
|
|
860
|
+
if (u === c && d)
|
|
866
861
|
try {
|
|
867
862
|
const { accessToken: m, tokenType: g } = JSON.parse(d);
|
|
868
863
|
a({ accessToken: m, tokenType: g });
|
|
@@ -873,28 +868,28 @@ const I = ht({}), Lt = ({ children: t, apiURL: n, libraries: o, localStorageKeys
|
|
|
873
868
|
return window.addEventListener("storage", f), () => {
|
|
874
869
|
window.removeEventListener("storage", f);
|
|
875
870
|
};
|
|
876
|
-
}, [
|
|
871
|
+
}, [c, a]), {
|
|
877
872
|
clearAuthenticationToken: l,
|
|
878
873
|
setAuthenticationToken: a
|
|
879
874
|
};
|
|
880
|
-
},
|
|
875
|
+
}, Ct = ({ library: t, date: n, format: o = "ll" }) => t(n).format(o), bt = (t, n = "km") => {
|
|
881
876
|
const o = Number(t);
|
|
882
877
|
return Number.isNaN(o) ? `0 ${n}` : `${o.toFixed(2)} ${n}`;
|
|
883
878
|
}, Pt = (t) => !t || typeof t != "string" ? "" : t.replace(/_/g, " ").toLowerCase().split(" ").map((o) => o.length > 0 ? o.charAt(0).toUpperCase() + o.slice(1) : o).join(" "), jt = (t) => t != null && t.startsWith("/") ? t != null && t.startsWith("/files") ? t : `/files${t}` : t != null && t.startsWith("files") ? `/${t}` : `/files/${t}`, Ot = ({ path: t, size: n, apiURL: o }) => {
|
|
884
879
|
if (!t)
|
|
885
880
|
return "";
|
|
886
|
-
const
|
|
881
|
+
const c = jt(t), a = `${o}${c}`, l = a.match(/\.(jpeg|jpg|png|gif|bmp|webp|svg|avif)$/) !== null;
|
|
887
882
|
return typeof n == "number" && l ? `${a.replace("/files", `/thumbs/${n}`)}` : a;
|
|
888
|
-
},
|
|
889
|
-
const { apiURL: n, libraries: o } = D(
|
|
883
|
+
}, Bt = (t) => {
|
|
884
|
+
const { apiURL: n, libraries: o } = D(k), c = (t == null ? void 0 : t.dayjs) || (o == null ? void 0 : o.dayjs);
|
|
890
885
|
return {
|
|
891
886
|
dateAdapter: (f, d) => {
|
|
892
|
-
if (!
|
|
887
|
+
if (!c)
|
|
893
888
|
throw new Error("Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
894
|
-
return
|
|
889
|
+
return Ct({
|
|
895
890
|
date: f,
|
|
896
891
|
format: d,
|
|
897
|
-
library:
|
|
892
|
+
library: c
|
|
898
893
|
});
|
|
899
894
|
},
|
|
900
895
|
distanceAdapter: bt,
|
|
@@ -911,86 +906,86 @@ const I = ht({}), Lt = ({ children: t, apiURL: n, libraries: o, localStorageKeys
|
|
|
911
906
|
},
|
|
912
907
|
worksiteNameAdapter: Pt
|
|
913
908
|
};
|
|
914
|
-
}, te = (t, n) => n === "short" ? t.split("-")[0] : t,
|
|
915
|
-
const [o,
|
|
909
|
+
}, te = (t, n) => n === "short" ? t.split("-")[0] : t, Qt = (t, n = "full") => {
|
|
910
|
+
const [o, c] = ze(() => {
|
|
916
911
|
const a = (t == null ? void 0 : t.language) || navigator.language;
|
|
917
912
|
return t && "isInitialized" in t && t.isInitialized, te(a, n);
|
|
918
913
|
});
|
|
919
914
|
return z(() => {
|
|
920
915
|
var l;
|
|
921
|
-
t && "isInitialized" in t && t.isInitialized && t.language &&
|
|
916
|
+
t && "isInitialized" in t && t.isInitialized && t.language && c(te(t.language, n));
|
|
922
917
|
const a = (f) => {
|
|
923
|
-
|
|
918
|
+
c(te(f, n));
|
|
924
919
|
};
|
|
925
920
|
return (l = t == null ? void 0 : t.on) == null || l.call(t, "languageChanged", a), () => {
|
|
926
921
|
var f;
|
|
927
922
|
(f = t == null ? void 0 : t.off) == null || f.call(t, "languageChanged", a);
|
|
928
923
|
};
|
|
929
924
|
}, [t, n]), o;
|
|
930
|
-
}, Tt = "tracktor.filter", We = (t, n, o) => `${o}_${t}=>${n}`,
|
|
931
|
-
const { libraries: n, localStorageKeys: o } = D(
|
|
932
|
-
if (!
|
|
925
|
+
}, Tt = "tracktor.filter", We = (t, n, o) => `${o}_${t}=>${n}`, Xt = (t) => {
|
|
926
|
+
const { libraries: n, localStorageKeys: o } = D(k), c = (t == null ? void 0 : t.reactRouter) || (n == null ? void 0 : n.reactRouter), { useLocation: a, useSearchParams: l } = c, { pathname: f } = a(), [d, u] = l(), m = (o == null ? void 0 : o.filter) || Tt;
|
|
927
|
+
if (!c)
|
|
933
928
|
throw new Error(
|
|
934
929
|
"React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView."
|
|
935
930
|
);
|
|
936
|
-
const g = (
|
|
937
|
-
const h = We(
|
|
938
|
-
if (!
|
|
939
|
-
d.delete(
|
|
931
|
+
const g = (S, w, P = !0) => {
|
|
932
|
+
const h = We(S, (t == null ? void 0 : t.pathname) || f, m);
|
|
933
|
+
if (!w || Array.isArray(w) && !w.length) {
|
|
934
|
+
d.delete(S), u(d), localStorage.removeItem(h);
|
|
940
935
|
return;
|
|
941
936
|
}
|
|
942
|
-
P &&
|
|
937
|
+
P && w && localStorage.setItem(h, JSON.stringify({ ...d, [S]: w })), w && (d.set(S, JSON.stringify(w)), u(d));
|
|
943
938
|
};
|
|
944
939
|
return {
|
|
945
|
-
getFilter: (
|
|
946
|
-
const P = d.get(
|
|
940
|
+
getFilter: (S, w) => {
|
|
941
|
+
const P = d.get(S);
|
|
947
942
|
if (P)
|
|
948
943
|
try {
|
|
949
944
|
return JSON.parse(P);
|
|
950
945
|
} catch {
|
|
951
946
|
return P;
|
|
952
947
|
}
|
|
953
|
-
const h = We(
|
|
948
|
+
const h = We(S, (t == null ? void 0 : t.pathname) || f, m), _ = localStorage.getItem(h);
|
|
954
949
|
if (_)
|
|
955
950
|
try {
|
|
956
|
-
return JSON.parse(_)[
|
|
951
|
+
return JSON.parse(_)[S];
|
|
957
952
|
} catch {
|
|
958
953
|
}
|
|
959
|
-
return
|
|
954
|
+
return w;
|
|
960
955
|
},
|
|
961
956
|
getFilters: () => {
|
|
962
|
-
const
|
|
957
|
+
const S = Object.fromEntries(d.entries()), P = Object.keys(localStorage).filter(
|
|
963
958
|
(h) => h.startsWith(m) && h.endsWith((t == null ? void 0 : t.pathname) || f)
|
|
964
959
|
).reduce((h, _) => {
|
|
965
960
|
var F, L;
|
|
966
|
-
const
|
|
967
|
-
if (
|
|
968
|
-
const $ = JSON.parse(
|
|
961
|
+
const x = localStorage.getItem(_);
|
|
962
|
+
if (x) {
|
|
963
|
+
const $ = JSON.parse(x), T = (F = Object.keys($)) == null ? void 0 : F[0];
|
|
969
964
|
h[T] = (L = Object.values($)) == null ? void 0 : L[0];
|
|
970
965
|
}
|
|
971
966
|
return h;
|
|
972
967
|
}, {});
|
|
973
968
|
return {
|
|
974
|
-
...
|
|
969
|
+
...S,
|
|
975
970
|
...P
|
|
976
971
|
};
|
|
977
972
|
},
|
|
978
|
-
handleFilter: (
|
|
973
|
+
handleFilter: (S, w) => (P, h) => {
|
|
979
974
|
if (h || Array.isArray(h) && h.length === 0) {
|
|
980
|
-
const _ =
|
|
981
|
-
g(
|
|
975
|
+
const _ = w || "value", x = typeof h == "object" && _ in h ? h[_ || "value"] : h;
|
|
976
|
+
g(S, x);
|
|
982
977
|
return;
|
|
983
978
|
}
|
|
984
|
-
g(
|
|
979
|
+
g(S, void 0);
|
|
985
980
|
},
|
|
986
981
|
setFilter: g
|
|
987
982
|
};
|
|
988
|
-
},
|
|
989
|
-
const
|
|
990
|
-
return
|
|
983
|
+
}, At = (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase(), xt = (t) => {
|
|
984
|
+
const c = t.split("/").filter((a) => a.length > 0).map((a) => a.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((u) => u.charAt(0).toUpperCase() + u.slice(1)).join("")).join("");
|
|
985
|
+
return c.charAt(0).toLowerCase() + c.slice(1);
|
|
991
986
|
}, It = (t) => (t.split("/").pop() || t).replace(/\.json$/, "").replace(/^openapi\./, ""), kt = (t, n, o) => {
|
|
992
|
-
const
|
|
993
|
-
return `${
|
|
987
|
+
const c = xt(n), a = At(o);
|
|
988
|
+
return `${c}${a}`;
|
|
994
989
|
}, Dt = (t) => {
|
|
995
990
|
if (t)
|
|
996
991
|
return (t == null ? void 0 : t.reduce((n, o) => (n[o] = {
|
|
@@ -1000,8 +995,8 @@ const I = ht({}), Lt = ({ children: t, apiURL: n, libraries: o, localStorageKeys
|
|
|
1000
995
|
useQuery: !0
|
|
1001
996
|
}
|
|
1002
997
|
}, n), {})) || {};
|
|
1003
|
-
},
|
|
1004
|
-
const { output: a, operationsToGenerateInfiniteQueryHook: l, input: f = "./openapi.json" } =
|
|
998
|
+
}, Ht = (t) => (Array.isArray(t) ? t : [t]).reduce((o, c) => {
|
|
999
|
+
const { output: a, operationsToGenerateInfiniteQueryHook: l, input: f = "./openapi.json" } = c || {}, d = It(f);
|
|
1005
1000
|
return {
|
|
1006
1001
|
...o,
|
|
1007
1002
|
[d]: {
|
|
@@ -1041,22 +1036,21 @@ export {
|
|
|
1041
1036
|
Yt as InitializeAxiosConfig,
|
|
1042
1037
|
Ut as InitializeDaysJSConfig,
|
|
1043
1038
|
Wt as InitializeI18nConfig,
|
|
1044
|
-
Mt as InitializeMapBoxConfig,
|
|
1045
1039
|
Vt as InitializeSentryConfig,
|
|
1046
|
-
|
|
1040
|
+
k as InjectDependenciesContext,
|
|
1047
1041
|
Lt as InjectDependenciesProvider,
|
|
1048
1042
|
zt as MaskTextField,
|
|
1049
|
-
|
|
1050
|
-
|
|
1043
|
+
Mt as PreloadErrorHandler,
|
|
1044
|
+
Gt as QueryClientProviderWithConfig,
|
|
1051
1045
|
$t as RequireAuth,
|
|
1052
|
-
|
|
1046
|
+
Ct as dateAdapter,
|
|
1053
1047
|
bt as distanceAdapter,
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1048
|
+
Ht as getOrvalConfig,
|
|
1049
|
+
Bt as useAdapter,
|
|
1050
|
+
qt as useAuth,
|
|
1051
|
+
Qt as useCurrentLanguage,
|
|
1052
|
+
Xt as useFilters,
|
|
1053
|
+
Kt as useInfiniteDataGrid,
|
|
1054
|
+
Jt as useResponseError,
|
|
1061
1055
|
Pt as worksiteNameAdapter
|
|
1062
1056
|
};
|