@tracktor/shared-module 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -2
- package/dist/components/Utils/GTMSendPageView.d.ts +1 -1
- package/dist/components/Utils/MapBoxConfig.d.ts +1 -1
- package/dist/{en-QMoq2Jc6.js → en-NkuEPb7W.js} +1 -1
- package/dist/{fr-sayL6zEF.js → fr-zJ2AMR0z.js} +1 -1
- package/dist/{main-eBEbA18Y.js → main-PeA08MpJ.js} +224 -226
- package/dist/main.js +1 -1
- package/dist/main.umd.cjs +7 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* This component send page view to Google Tag Manager
|
|
3
3
|
* @constructor
|
|
4
4
|
*/
|
|
5
|
-
declare const GTMSendPageView: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare const GTMSendPageView: () => import("react/jsx-runtime").JSX.Element | null;
|
|
6
6
|
export default GTMSendPageView;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Ie, { useState as
|
|
1
|
+
import Ie, { useState as ie, useRef as _r, useLayoutEffect as Ne, Suspense as Cr, useEffect as X, createContext as Tr, useMemo as le, useContext as We, useCallback as se } from "react";
|
|
2
2
|
import M from "axios";
|
|
3
|
-
import { useLocation as
|
|
3
|
+
import { useLocation as Ve, Navigate as Le, Outlet as wr, createRoutesFromChildren as Sr, matchRoutes as xr, useNavigationType as Or } from "react-router-dom";
|
|
4
4
|
import I, { t as jr } from "i18next";
|
|
5
5
|
import Pr from "i18next-browser-languagedetector";
|
|
6
6
|
import { initReactI18next as Ar } from "react-i18next";
|
|
@@ -8,10 +8,10 @@ import * as oe from "@sentry/react";
|
|
|
8
8
|
import z from "dayjs";
|
|
9
9
|
import { QueryClient as kr, QueryClientProvider as Dr } from "@tanstack/react-query";
|
|
10
10
|
var Mr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
11
|
-
function
|
|
11
|
+
function Lr(t) {
|
|
12
12
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
13
13
|
}
|
|
14
|
-
var
|
|
14
|
+
var ue = { exports: {} }, V = {};
|
|
15
15
|
/**
|
|
16
16
|
* @license React
|
|
17
17
|
* react-jsx-runtime.development.js
|
|
@@ -21,14 +21,14 @@ var se = { exports: {} }, V = {};
|
|
|
21
21
|
* This source code is licensed under the MIT license found in the
|
|
22
22
|
* LICENSE file in the root directory of this source tree.
|
|
23
23
|
*/
|
|
24
|
-
var
|
|
25
|
-
function
|
|
26
|
-
return
|
|
27
|
-
var t = Ie, n = Symbol.for("react.element"), i = Symbol.for("react.portal"), s = Symbol.for("react.fragment"),
|
|
24
|
+
var $e;
|
|
25
|
+
function $r() {
|
|
26
|
+
return $e || ($e = 1, process.env.NODE_ENV !== "production" && function() {
|
|
27
|
+
var t = Ie, n = Symbol.for("react.element"), i = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), O = Symbol.for("react.offscreen"), j = Symbol.iterator, S = "@@iterator";
|
|
28
28
|
function R(e) {
|
|
29
29
|
if (e === null || typeof e != "object")
|
|
30
30
|
return null;
|
|
31
|
-
var r = j && e[j] || e[
|
|
31
|
+
var r = j && e[j] || e[S];
|
|
32
32
|
return typeof r == "function" ? r : null;
|
|
33
33
|
}
|
|
34
34
|
var D = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -36,39 +36,39 @@ function Lr() {
|
|
|
36
36
|
{
|
|
37
37
|
for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), u = 1; u < r; u++)
|
|
38
38
|
a[u - 1] = arguments[u];
|
|
39
|
-
|
|
39
|
+
$("error", e, a);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function $(e, r, a) {
|
|
43
43
|
{
|
|
44
|
-
var u = D.ReactDebugCurrentFrame,
|
|
45
|
-
|
|
44
|
+
var u = D.ReactDebugCurrentFrame, v = u.getStackAddendum();
|
|
45
|
+
v !== "" && (r += "%s", a = a.concat([v]));
|
|
46
46
|
var m = a.map(function(d) {
|
|
47
47
|
return String(d);
|
|
48
48
|
});
|
|
49
49
|
m.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, m);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
var
|
|
52
|
+
var ze = !1, Be = !1, Ge = !1, qe = !1, Je = !1, fe;
|
|
53
53
|
fe = Symbol.for("react.module.reference");
|
|
54
|
-
function
|
|
55
|
-
return !!(typeof e == "string" || typeof e == "function" || e === s || e ===
|
|
54
|
+
function He(e) {
|
|
55
|
+
return !!(typeof e == "string" || typeof e == "function" || e === s || e === g || Je || e === p || e === h || e === y || qe || e === O || ze || Be || Ge || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === C || e.$$typeof === o || e.$$typeof === c || e.$$typeof === l || // This needs to include all possible module reference object
|
|
56
56
|
// types supported by any Flight configuration anywhere since
|
|
57
57
|
// we don't know which Flight build this will end up being used
|
|
58
58
|
// with.
|
|
59
59
|
e.$$typeof === fe || e.getModuleId !== void 0));
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function Xe(e, r, a) {
|
|
62
62
|
var u = e.displayName;
|
|
63
63
|
if (u)
|
|
64
64
|
return u;
|
|
65
|
-
var
|
|
66
|
-
return
|
|
65
|
+
var v = r.displayName || r.name || "";
|
|
66
|
+
return v !== "" ? a + "(" + v + ")" : a;
|
|
67
67
|
}
|
|
68
68
|
function de(e) {
|
|
69
69
|
return e.displayName || "Context";
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function A(e) {
|
|
72
72
|
if (e == null)
|
|
73
73
|
return null;
|
|
74
74
|
if (typeof e.tag == "number" && _("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
@@ -80,13 +80,13 @@ function Lr() {
|
|
|
80
80
|
return "Fragment";
|
|
81
81
|
case i:
|
|
82
82
|
return "Portal";
|
|
83
|
-
case
|
|
83
|
+
case g:
|
|
84
84
|
return "Profiler";
|
|
85
|
-
case
|
|
85
|
+
case p:
|
|
86
86
|
return "StrictMode";
|
|
87
|
-
case g:
|
|
88
|
-
return "Suspense";
|
|
89
87
|
case h:
|
|
88
|
+
return "Suspense";
|
|
89
|
+
case y:
|
|
90
90
|
return "SuspenseList";
|
|
91
91
|
}
|
|
92
92
|
if (typeof e == "object")
|
|
@@ -98,14 +98,14 @@ function Lr() {
|
|
|
98
98
|
var a = e;
|
|
99
99
|
return de(a._context) + ".Provider";
|
|
100
100
|
case l:
|
|
101
|
-
return
|
|
101
|
+
return Xe(e, e.render, "ForwardRef");
|
|
102
102
|
case C:
|
|
103
103
|
var u = e.displayName || null;
|
|
104
|
-
return u !== null ? u :
|
|
104
|
+
return u !== null ? u : A(e.type) || "Memo";
|
|
105
105
|
case T: {
|
|
106
|
-
var
|
|
106
|
+
var v = e, m = v._payload, d = v._init;
|
|
107
107
|
try {
|
|
108
|
-
return
|
|
108
|
+
return A(d(m));
|
|
109
109
|
} catch {
|
|
110
110
|
return null;
|
|
111
111
|
}
|
|
@@ -113,11 +113,11 @@ function Lr() {
|
|
|
113
113
|
}
|
|
114
114
|
return null;
|
|
115
115
|
}
|
|
116
|
-
var
|
|
116
|
+
var L = Object.assign, N = 0, pe, ve, me, ge, he, ye, be;
|
|
117
117
|
function Ee() {
|
|
118
118
|
}
|
|
119
119
|
Ee.__reactDisabledLog = !0;
|
|
120
|
-
function
|
|
120
|
+
function Ke() {
|
|
121
121
|
{
|
|
122
122
|
if (N === 0) {
|
|
123
123
|
pe = console.log, ve = console.info, me = console.warn, ge = console.error, he = console.group, ye = console.groupCollapsed, be = console.groupEnd;
|
|
@@ -140,7 +140,7 @@ function Lr() {
|
|
|
140
140
|
N++;
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function Ze() {
|
|
144
144
|
{
|
|
145
145
|
if (N--, N === 0) {
|
|
146
146
|
var e = {
|
|
@@ -149,25 +149,25 @@ function Lr() {
|
|
|
149
149
|
writable: !0
|
|
150
150
|
};
|
|
151
151
|
Object.defineProperties(console, {
|
|
152
|
-
log:
|
|
152
|
+
log: L({}, e, {
|
|
153
153
|
value: pe
|
|
154
154
|
}),
|
|
155
|
-
info:
|
|
155
|
+
info: L({}, e, {
|
|
156
156
|
value: ve
|
|
157
157
|
}),
|
|
158
|
-
warn:
|
|
158
|
+
warn: L({}, e, {
|
|
159
159
|
value: me
|
|
160
160
|
}),
|
|
161
|
-
error:
|
|
161
|
+
error: L({}, e, {
|
|
162
162
|
value: ge
|
|
163
163
|
}),
|
|
164
|
-
group:
|
|
164
|
+
group: L({}, e, {
|
|
165
165
|
value: he
|
|
166
166
|
}),
|
|
167
|
-
groupCollapsed:
|
|
167
|
+
groupCollapsed: L({}, e, {
|
|
168
168
|
value: ye
|
|
169
169
|
}),
|
|
170
|
-
groupEnd:
|
|
170
|
+
groupEnd: L({}, e, {
|
|
171
171
|
value: be
|
|
172
172
|
})
|
|
173
173
|
});
|
|
@@ -181,8 +181,8 @@ function Lr() {
|
|
|
181
181
|
if (Z === void 0)
|
|
182
182
|
try {
|
|
183
183
|
throw Error();
|
|
184
|
-
} catch (
|
|
185
|
-
var u =
|
|
184
|
+
} catch (v) {
|
|
185
|
+
var u = v.stack.trim().match(/\n( *(at )?)/);
|
|
186
186
|
Z = u && u[1] || "";
|
|
187
187
|
}
|
|
188
188
|
return `
|
|
@@ -191,8 +191,8 @@ function Lr() {
|
|
|
191
191
|
}
|
|
192
192
|
var Q = !1, G;
|
|
193
193
|
{
|
|
194
|
-
var
|
|
195
|
-
G = new
|
|
194
|
+
var Qe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
195
|
+
G = new Qe();
|
|
196
196
|
}
|
|
197
197
|
function Re(e, r) {
|
|
198
198
|
if (!e || Q)
|
|
@@ -204,10 +204,10 @@ function Lr() {
|
|
|
204
204
|
}
|
|
205
205
|
var u;
|
|
206
206
|
Q = !0;
|
|
207
|
-
var
|
|
207
|
+
var v = Error.prepareStackTrace;
|
|
208
208
|
Error.prepareStackTrace = void 0;
|
|
209
209
|
var m;
|
|
210
|
-
m = K.current, K.current = null,
|
|
210
|
+
m = K.current, K.current = null, Ke();
|
|
211
211
|
try {
|
|
212
212
|
if (r) {
|
|
213
213
|
var d = function() {
|
|
@@ -220,37 +220,37 @@ function Lr() {
|
|
|
220
220
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
221
221
|
try {
|
|
222
222
|
Reflect.construct(d, []);
|
|
223
|
-
} catch (
|
|
224
|
-
u =
|
|
223
|
+
} catch (k) {
|
|
224
|
+
u = k;
|
|
225
225
|
}
|
|
226
226
|
Reflect.construct(e, [], d);
|
|
227
227
|
} else {
|
|
228
228
|
try {
|
|
229
229
|
d.call();
|
|
230
|
-
} catch (
|
|
231
|
-
u =
|
|
230
|
+
} catch (k) {
|
|
231
|
+
u = k;
|
|
232
232
|
}
|
|
233
233
|
e.call(d.prototype);
|
|
234
234
|
}
|
|
235
235
|
} else {
|
|
236
236
|
try {
|
|
237
237
|
throw Error();
|
|
238
|
-
} catch (
|
|
239
|
-
u =
|
|
238
|
+
} catch (k) {
|
|
239
|
+
u = k;
|
|
240
240
|
}
|
|
241
241
|
e();
|
|
242
242
|
}
|
|
243
|
-
} catch (
|
|
244
|
-
if (
|
|
245
|
-
for (var f =
|
|
246
|
-
`),
|
|
247
|
-
`), b = f.length - 1, E =
|
|
243
|
+
} catch (k) {
|
|
244
|
+
if (k && u && typeof k.stack == "string") {
|
|
245
|
+
for (var f = k.stack.split(`
|
|
246
|
+
`), w = u.stack.split(`
|
|
247
|
+
`), b = f.length - 1, E = w.length - 1; b >= 1 && E >= 0 && f[b] !== w[E]; )
|
|
248
248
|
E--;
|
|
249
249
|
for (; b >= 1 && E >= 0; b--, E--)
|
|
250
|
-
if (f[b] !==
|
|
250
|
+
if (f[b] !== w[E]) {
|
|
251
251
|
if (b !== 1 || E !== 1)
|
|
252
252
|
do
|
|
253
|
-
if (b--, E--, E < 0 || f[b] !==
|
|
253
|
+
if (b--, E--, E < 0 || f[b] !== w[E]) {
|
|
254
254
|
var x = `
|
|
255
255
|
` + f[b].replace(" at new ", " at ");
|
|
256
256
|
return e.displayName && x.includes("<anonymous>") && (x = x.replace("<anonymous>", e.displayName)), typeof e == "function" && G.set(e, x), x;
|
|
@@ -260,15 +260,15 @@ function Lr() {
|
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
} finally {
|
|
263
|
-
Q = !1, K.current = m,
|
|
263
|
+
Q = !1, K.current = m, Ze(), Error.prepareStackTrace = v;
|
|
264
264
|
}
|
|
265
265
|
var Y = e ? e.displayName || e.name : "", Me = Y ? B(Y) : "";
|
|
266
266
|
return typeof e == "function" && G.set(e, Me), Me;
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function er(e, r, a) {
|
|
269
269
|
return Re(e, !1);
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function rr(e) {
|
|
272
272
|
var r = e.prototype;
|
|
273
273
|
return !!(r && r.isReactComponent);
|
|
274
274
|
}
|
|
@@ -276,25 +276,25 @@ function Lr() {
|
|
|
276
276
|
if (e == null)
|
|
277
277
|
return "";
|
|
278
278
|
if (typeof e == "function")
|
|
279
|
-
return Re(e,
|
|
279
|
+
return Re(e, rr(e));
|
|
280
280
|
if (typeof e == "string")
|
|
281
281
|
return B(e);
|
|
282
282
|
switch (e) {
|
|
283
|
-
case g:
|
|
284
|
-
return B("Suspense");
|
|
285
283
|
case h:
|
|
284
|
+
return B("Suspense");
|
|
285
|
+
case y:
|
|
286
286
|
return B("SuspenseList");
|
|
287
287
|
}
|
|
288
288
|
if (typeof e == "object")
|
|
289
289
|
switch (e.$$typeof) {
|
|
290
290
|
case l:
|
|
291
|
-
return
|
|
291
|
+
return er(e.render);
|
|
292
292
|
case C:
|
|
293
293
|
return q(e.type, r, a);
|
|
294
294
|
case T: {
|
|
295
|
-
var u = e,
|
|
295
|
+
var u = e, v = u._payload, m = u._init;
|
|
296
296
|
try {
|
|
297
|
-
return q(m(
|
|
297
|
+
return q(m(v), r, a);
|
|
298
298
|
} catch {
|
|
299
299
|
}
|
|
300
300
|
}
|
|
@@ -309,7 +309,7 @@ function Lr() {
|
|
|
309
309
|
} else
|
|
310
310
|
Ce.setExtraStackFrame(null);
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function tr(e, r, a, u, v) {
|
|
313
313
|
{
|
|
314
314
|
var m = Function.call.bind(J);
|
|
315
315
|
for (var d in e)
|
|
@@ -317,28 +317,28 @@ function Lr() {
|
|
|
317
317
|
var f = void 0;
|
|
318
318
|
try {
|
|
319
319
|
if (typeof e[d] != "function") {
|
|
320
|
-
var
|
|
321
|
-
throw
|
|
320
|
+
var w = Error((u || "React class") + ": " + a + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
321
|
+
throw w.name = "Invariant Violation", w;
|
|
322
322
|
}
|
|
323
323
|
f = e[d](r, d, u, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
324
324
|
} catch (b) {
|
|
325
325
|
f = b;
|
|
326
326
|
}
|
|
327
|
-
f && !(f instanceof Error) && (H(
|
|
327
|
+
f && !(f instanceof Error) && (H(v), _("%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).", u || "React class", a, d, typeof f), H(null)), f instanceof Error && !(f.message in _e) && (_e[f.message] = !0, H(v), _("Failed %s type: %s", a, f.message), H(null));
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
|
-
var
|
|
331
|
+
var nr = Array.isArray;
|
|
332
332
|
function ee(e) {
|
|
333
|
-
return
|
|
333
|
+
return nr(e);
|
|
334
334
|
}
|
|
335
|
-
function
|
|
335
|
+
function ar(e) {
|
|
336
336
|
{
|
|
337
337
|
var r = typeof Symbol == "function" && Symbol.toStringTag, a = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
338
338
|
return a;
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function or(e) {
|
|
342
342
|
try {
|
|
343
343
|
return Te(e), !1;
|
|
344
344
|
} catch {
|
|
@@ -348,18 +348,18 @@ function Lr() {
|
|
|
348
348
|
function Te(e) {
|
|
349
349
|
return "" + e;
|
|
350
350
|
}
|
|
351
|
-
function
|
|
352
|
-
if (
|
|
353
|
-
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
351
|
+
function we(e) {
|
|
352
|
+
if (or(e))
|
|
353
|
+
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ar(e)), Te(e);
|
|
354
354
|
}
|
|
355
|
-
var W = D.ReactCurrentOwner,
|
|
355
|
+
var W = D.ReactCurrentOwner, ir = {
|
|
356
356
|
key: !0,
|
|
357
357
|
ref: !0,
|
|
358
358
|
__self: !0,
|
|
359
359
|
__source: !0
|
|
360
|
-
},
|
|
360
|
+
}, Se, xe, re;
|
|
361
361
|
re = {};
|
|
362
|
-
function
|
|
362
|
+
function sr(e) {
|
|
363
363
|
if (J.call(e, "ref")) {
|
|
364
364
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
365
365
|
if (r && r.isReactWarning)
|
|
@@ -367,7 +367,7 @@ function Lr() {
|
|
|
367
367
|
}
|
|
368
368
|
return e.ref !== void 0;
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function ur(e) {
|
|
371
371
|
if (J.call(e, "key")) {
|
|
372
372
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
373
373
|
if (r && r.isReactWarning)
|
|
@@ -375,16 +375,16 @@ function Lr() {
|
|
|
375
375
|
}
|
|
376
376
|
return e.key !== void 0;
|
|
377
377
|
}
|
|
378
|
-
function
|
|
378
|
+
function lr(e, r) {
|
|
379
379
|
if (typeof e.ref == "string" && W.current && r && W.current.stateNode !== r) {
|
|
380
|
-
var a =
|
|
381
|
-
re[a] || (_('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',
|
|
380
|
+
var a = A(W.current.type);
|
|
381
|
+
re[a] || (_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', A(W.current.type), e.ref), re[a] = !0);
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
|
-
function
|
|
384
|
+
function cr(e, r) {
|
|
385
385
|
{
|
|
386
386
|
var a = function() {
|
|
387
|
-
|
|
387
|
+
Se || (Se = !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));
|
|
388
388
|
};
|
|
389
389
|
a.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
390
390
|
get: a,
|
|
@@ -392,7 +392,7 @@ function Lr() {
|
|
|
392
392
|
});
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function fr(e, r) {
|
|
396
396
|
{
|
|
397
397
|
var a = function() {
|
|
398
398
|
xe || (xe = !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));
|
|
@@ -403,7 +403,7 @@ function Lr() {
|
|
|
403
403
|
});
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
|
-
var
|
|
406
|
+
var dr = function(e, r, a, u, v, m, d) {
|
|
407
407
|
var f = {
|
|
408
408
|
// This tag allows us to uniquely identify this as a React Element
|
|
409
409
|
$$typeof: n,
|
|
@@ -429,25 +429,25 @@ function Lr() {
|
|
|
429
429
|
configurable: !1,
|
|
430
430
|
enumerable: !1,
|
|
431
431
|
writable: !1,
|
|
432
|
-
value:
|
|
432
|
+
value: v
|
|
433
433
|
}), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
|
|
434
434
|
};
|
|
435
|
-
function
|
|
435
|
+
function pr(e, r, a, u, v) {
|
|
436
436
|
{
|
|
437
|
-
var m, d = {}, f = null,
|
|
438
|
-
a !== void 0 && (
|
|
437
|
+
var m, d = {}, f = null, w = null;
|
|
438
|
+
a !== void 0 && (we(a), f = "" + a), ur(r) && (we(r.key), f = "" + r.key), sr(r) && (w = r.ref, lr(r, v));
|
|
439
439
|
for (m in r)
|
|
440
|
-
J.call(r, m) && !
|
|
440
|
+
J.call(r, m) && !ir.hasOwnProperty(m) && (d[m] = r[m]);
|
|
441
441
|
if (e && e.defaultProps) {
|
|
442
442
|
var b = e.defaultProps;
|
|
443
443
|
for (m in b)
|
|
444
444
|
d[m] === void 0 && (d[m] = b[m]);
|
|
445
445
|
}
|
|
446
|
-
if (f ||
|
|
446
|
+
if (f || w) {
|
|
447
447
|
var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
448
|
-
f &&
|
|
448
|
+
f && cr(d, E), w && fr(d, E);
|
|
449
449
|
}
|
|
450
|
-
return
|
|
450
|
+
return dr(e, f, w, v, u, W.current, d);
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
453
|
var te = D.ReactCurrentOwner, Oe = D.ReactDebugCurrentFrame;
|
|
@@ -466,7 +466,7 @@ function Lr() {
|
|
|
466
466
|
function je() {
|
|
467
467
|
{
|
|
468
468
|
if (te.current) {
|
|
469
|
-
var e =
|
|
469
|
+
var e = A(te.current.type);
|
|
470
470
|
if (e)
|
|
471
471
|
return `
|
|
472
472
|
|
|
@@ -475,7 +475,7 @@ Check the render method of \`` + e + "`.";
|
|
|
475
475
|
return "";
|
|
476
476
|
}
|
|
477
477
|
}
|
|
478
|
-
function
|
|
478
|
+
function vr(e) {
|
|
479
479
|
{
|
|
480
480
|
if (e !== void 0) {
|
|
481
481
|
var r = e.fileName.replace(/^.*[\\\/]/, ""), a = e.lineNumber;
|
|
@@ -487,7 +487,7 @@ Check your code at ` + r + ":" + a + ".";
|
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
489
|
var Pe = {};
|
|
490
|
-
function
|
|
490
|
+
function mr(e) {
|
|
491
491
|
{
|
|
492
492
|
var r = je();
|
|
493
493
|
if (!r) {
|
|
@@ -504,12 +504,12 @@ Check the top-level render call using <` + a + ">.");
|
|
|
504
504
|
if (!e._store || e._store.validated || e.key != null)
|
|
505
505
|
return;
|
|
506
506
|
e._store.validated = !0;
|
|
507
|
-
var a =
|
|
507
|
+
var a = mr(r);
|
|
508
508
|
if (Pe[a])
|
|
509
509
|
return;
|
|
510
510
|
Pe[a] = !0;
|
|
511
511
|
var u = "";
|
|
512
|
-
e && e._owner && e._owner !== te.current && (u = " It was passed a child from " +
|
|
512
|
+
e && e._owner && e._owner !== te.current && (u = " It was passed a child from " + A(e._owner.type) + "."), F(e), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, u), F(null);
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
515
|
function ke(e, r) {
|
|
@@ -524,14 +524,14 @@ Check the top-level render call using <` + a + ">.");
|
|
|
524
524
|
else if (ae(e))
|
|
525
525
|
e._store && (e._store.validated = !0);
|
|
526
526
|
else if (e) {
|
|
527
|
-
var
|
|
528
|
-
if (typeof
|
|
529
|
-
for (var m =
|
|
527
|
+
var v = R(e);
|
|
528
|
+
if (typeof v == "function" && v !== e.entries)
|
|
529
|
+
for (var m = v.call(e), d; !(d = m.next()).done; )
|
|
530
530
|
ae(d.value) && Ae(d.value, r);
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function gr(e) {
|
|
535
535
|
{
|
|
536
536
|
var r = e.type;
|
|
537
537
|
if (r == null || typeof r == "string")
|
|
@@ -546,17 +546,17 @@ Check the top-level render call using <` + a + ">.");
|
|
|
546
546
|
else
|
|
547
547
|
return;
|
|
548
548
|
if (a) {
|
|
549
|
-
var u =
|
|
550
|
-
|
|
549
|
+
var u = A(r);
|
|
550
|
+
tr(a, e.props, "prop", u, e);
|
|
551
551
|
} else if (r.PropTypes !== void 0 && !ne) {
|
|
552
552
|
ne = !0;
|
|
553
|
-
var
|
|
554
|
-
_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
553
|
+
var v = A(r);
|
|
554
|
+
_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", v || "Unknown");
|
|
555
555
|
}
|
|
556
556
|
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function hr(e) {
|
|
560
560
|
{
|
|
561
561
|
for (var r = Object.keys(e.props), a = 0; a < r.length; a++) {
|
|
562
562
|
var u = r[a];
|
|
@@ -568,18 +568,18 @@ Check the top-level render call using <` + a + ">.");
|
|
|
568
568
|
e.ref !== null && (F(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
function De(e, r, a, u,
|
|
571
|
+
function De(e, r, a, u, v, m) {
|
|
572
572
|
{
|
|
573
|
-
var d =
|
|
573
|
+
var d = He(e);
|
|
574
574
|
if (!d) {
|
|
575
575
|
var f = "";
|
|
576
576
|
(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.");
|
|
577
|
-
var
|
|
578
|
-
|
|
577
|
+
var w = vr(v);
|
|
578
|
+
w ? f += w : f += je();
|
|
579
579
|
var b;
|
|
580
|
-
e === null ? b = "null" : ee(e) ? b = "array" : e !== void 0 && e.$$typeof === n ? (b = "<" + (
|
|
580
|
+
e === null ? b = "null" : ee(e) ? b = "array" : e !== void 0 && e.$$typeof === n ? (b = "<" + (A(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : b = 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", b, f);
|
|
581
581
|
}
|
|
582
|
-
var E =
|
|
582
|
+
var E = pr(e, r, a, v, m);
|
|
583
583
|
if (E == null)
|
|
584
584
|
return E;
|
|
585
585
|
if (d) {
|
|
@@ -595,17 +595,17 @@ Check the top-level render call using <` + a + ">.");
|
|
|
595
595
|
else
|
|
596
596
|
ke(x, e);
|
|
597
597
|
}
|
|
598
|
-
return e === s ?
|
|
598
|
+
return e === s ? hr(E) : gr(E), E;
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
|
-
function
|
|
601
|
+
function yr(e, r, a) {
|
|
602
602
|
return De(e, r, a, !0);
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function br(e, r, a) {
|
|
605
605
|
return De(e, r, a, !1);
|
|
606
606
|
}
|
|
607
|
-
var
|
|
608
|
-
V.Fragment = s, V.jsx =
|
|
607
|
+
var Er = br, Rr = yr;
|
|
608
|
+
V.Fragment = s, V.jsx = Er, V.jsxs = Rr;
|
|
609
609
|
}()), V;
|
|
610
610
|
}
|
|
611
611
|
var U = {};
|
|
@@ -623,83 +623,83 @@ function Fr() {
|
|
|
623
623
|
if (Fe)
|
|
624
624
|
return U;
|
|
625
625
|
Fe = 1;
|
|
626
|
-
var t = Ie, n = Symbol.for("react.element"), i = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty,
|
|
627
|
-
function o(c, l,
|
|
628
|
-
var
|
|
629
|
-
|
|
630
|
-
for (
|
|
631
|
-
s.call(l,
|
|
626
|
+
var t = Ie, n = Symbol.for("react.element"), i = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, p = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
627
|
+
function o(c, l, h) {
|
|
628
|
+
var y, C = {}, T = null, O = null;
|
|
629
|
+
h !== void 0 && (T = "" + h), l.key !== void 0 && (T = "" + l.key), l.ref !== void 0 && (O = l.ref);
|
|
630
|
+
for (y in l)
|
|
631
|
+
s.call(l, y) && !g.hasOwnProperty(y) && (C[y] = l[y]);
|
|
632
632
|
if (c && c.defaultProps)
|
|
633
|
-
for (
|
|
634
|
-
C[
|
|
635
|
-
return { $$typeof: n, type: c, key: T, ref: O, props: C, _owner:
|
|
633
|
+
for (y in l = c.defaultProps, l)
|
|
634
|
+
C[y] === void 0 && (C[y] = l[y]);
|
|
635
|
+
return { $$typeof: n, type: c, key: T, ref: O, props: C, _owner: p.current };
|
|
636
636
|
}
|
|
637
637
|
return U.Fragment = i, U.jsx = o, U.jsxs = o, U;
|
|
638
638
|
}
|
|
639
|
-
process.env.NODE_ENV === "production" ?
|
|
640
|
-
var
|
|
639
|
+
process.env.NODE_ENV === "production" ? ue.exports = Fr() : ue.exports = $r();
|
|
640
|
+
var P = ue.exports;
|
|
641
641
|
const tt = ({
|
|
642
642
|
Fallback: t,
|
|
643
643
|
loginPath: n = "/login",
|
|
644
644
|
localStorageKey: i = "user",
|
|
645
645
|
redirect401Path: s = "/login",
|
|
646
|
-
isLogged:
|
|
646
|
+
isLogged: p
|
|
647
647
|
}) => {
|
|
648
648
|
var C, T, O, j;
|
|
649
|
-
const [
|
|
650
|
-
return
|
|
651
|
-
var
|
|
652
|
-
l.current || (l.current = !0, (
|
|
649
|
+
const [g, o] = ie(null), c = Ve(), l = _r(!1), h = typeof p == "function" ? p() : !!p, y = typeof h == "boolean" ? h : h == null ? void 0 : h.isLogged;
|
|
650
|
+
return Ne(() => {
|
|
651
|
+
var S;
|
|
652
|
+
l.current || (l.current = !0, (S = M) == null || S.interceptors.response.use(
|
|
653
653
|
(R) => R,
|
|
654
654
|
async (R) => {
|
|
655
|
-
var
|
|
656
|
-
return typeof R == "object" && R && "response" in R && R.response && typeof R.response == "object" && "status" in R.response && R.response && typeof R.response == "object" && "status" in R.response && ((
|
|
655
|
+
var $;
|
|
656
|
+
return typeof R == "object" && R && "response" in R && R.response && typeof R.response == "object" && "status" in R.response && R.response && typeof R.response == "object" && "status" in R.response && (($ = R == null ? void 0 : R.response) == null ? void 0 : $.status) === 401 && (M.defaults.headers.common.Authorization = null, localStorage.removeItem(i), o(s)), Promise.reject(R);
|
|
657
657
|
}
|
|
658
658
|
));
|
|
659
|
-
}, [i, s]),
|
|
660
|
-
}, Yr = () => {
|
|
661
|
-
const
|
|
659
|
+
}, [i, s]), y && !g ? /* @__PURE__ */ P.jsx(Cr, { fallback: t, children: (T = (C = c.state) == null ? void 0 : C.from) != null && T.state && ((j = (O = c.state) == null ? void 0 : O.from) == null ? void 0 : j.pathname) === n ? /* @__PURE__ */ P.jsx(Le, { to: c.state.from.state.from.pathname + c.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ P.jsx(wr, {}) }) : /* @__PURE__ */ P.jsx(Le, { to: n, state: { from: c }, replace: !0 });
|
|
660
|
+
}, Yr = ({ useLocation: t, useGoogleTagManager: n, Outlet: i }) => {
|
|
661
|
+
const { pathname: s } = t(), { sendEvent: p } = n();
|
|
662
662
|
return X(() => {
|
|
663
|
+
p({ event: "pageView", pathname: s });
|
|
664
|
+
}, [s, p]), i ? /* @__PURE__ */ P.jsx(i, {}) : null;
|
|
665
|
+
}, nt = () => {
|
|
666
|
+
const [t, n] = ie(), [i, s] = ie();
|
|
667
|
+
if (X(() => {
|
|
663
668
|
(async () => {
|
|
664
669
|
try {
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
console.error(s);
|
|
670
|
+
n(await import("@tracktor/react-google-tag-manager")), s(await import("react-router-dom"));
|
|
671
|
+
} catch (g) {
|
|
672
|
+
console.error(g);
|
|
669
673
|
}
|
|
670
674
|
})().then();
|
|
671
|
-
}, []), t
|
|
672
|
-
},
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
i({ event: "pageView", pathname: t });
|
|
678
|
-
}
|
|
679
|
-
}, [t, n]), /* @__PURE__ */ k.jsx(Ue, {});
|
|
680
|
-
}, ce = Sr({
|
|
675
|
+
}, []), t && i) {
|
|
676
|
+
const { useGoogleTagManager: p } = t, { useLocation: g, Outlet: o } = i;
|
|
677
|
+
return /* @__PURE__ */ P.jsx(Yr, { useLocation: g, Outlet: o, useGoogleTagManager: p });
|
|
678
|
+
}
|
|
679
|
+
return null;
|
|
680
|
+
}, ce = Tr({
|
|
681
681
|
apiURL: void 0,
|
|
682
682
|
children: void 0
|
|
683
683
|
}), at = ({ children: t, apiURL: n }) => {
|
|
684
|
-
const i =
|
|
684
|
+
const i = le(
|
|
685
685
|
() => ({
|
|
686
686
|
apiURL: n
|
|
687
687
|
}),
|
|
688
688
|
[n]
|
|
689
689
|
);
|
|
690
|
-
return /* @__PURE__ */
|
|
690
|
+
return /* @__PURE__ */ P.jsx(ce.Provider, { value: i, children: t });
|
|
691
691
|
}, ot = ({
|
|
692
692
|
tokenTypeKey: t = "tokenType",
|
|
693
693
|
userLocalStorageKey: n = "user",
|
|
694
694
|
tokenKey: i = "accessToken",
|
|
695
695
|
postContentType: s = "application/json",
|
|
696
|
-
...
|
|
696
|
+
...p
|
|
697
697
|
}) => {
|
|
698
|
-
const { apiURL:
|
|
698
|
+
const { apiURL: g = p.baseURL } = We(ce);
|
|
699
699
|
if (!M.defaults)
|
|
700
700
|
return null;
|
|
701
|
-
const o = localStorage.getItem(n), c = o ? JSON.parse(o) : null, l = c != null && c[t] ? c[t] : null,
|
|
702
|
-
return M.defaults.baseURL =
|
|
701
|
+
const o = localStorage.getItem(n), c = o ? JSON.parse(o) : null, l = c != null && c[t] ? c[t] : null, h = c != null && c[i] ? c[i] : null, y = o ? `${l} ${h}` : null;
|
|
702
|
+
return M.defaults.baseURL = g, M.defaults.headers.post["Content-Type"] = s, y && (M.defaults.headers.common.Authorization = y), null;
|
|
703
703
|
}, it = ({ debug: t, resources: n }) => {
|
|
704
704
|
var i;
|
|
705
705
|
return (i = I) != null && i.isInitialized || (I.use(Pr).use(Ar).init({
|
|
@@ -725,8 +725,8 @@ const tt = ({
|
|
|
725
725
|
integrations: n,
|
|
726
726
|
tracesSampleRate: i,
|
|
727
727
|
replaysSessionSampleRate: s,
|
|
728
|
-
replaysOnErrorSampleRate:
|
|
729
|
-
tracePropagationTargets:
|
|
728
|
+
replaysOnErrorSampleRate: p,
|
|
729
|
+
tracePropagationTargets: g,
|
|
730
730
|
ignoreErrors: o,
|
|
731
731
|
debug: c,
|
|
732
732
|
environment: l
|
|
@@ -737,78 +737,76 @@ const tt = ({
|
|
|
737
737
|
ignoreErrors: [...o || [], /dynamically imported module/],
|
|
738
738
|
integrations: [
|
|
739
739
|
oe.reactRouterV6BrowserTracingIntegration({
|
|
740
|
-
createRoutesFromChildren:
|
|
740
|
+
createRoutesFromChildren: Sr,
|
|
741
741
|
matchRoutes: xr,
|
|
742
742
|
useEffect: X,
|
|
743
|
-
useLocation:
|
|
743
|
+
useLocation: Ve,
|
|
744
744
|
useNavigationType: Or
|
|
745
745
|
}),
|
|
746
746
|
...n || []
|
|
747
747
|
],
|
|
748
|
-
replaysOnErrorSampleRate:
|
|
748
|
+
replaysOnErrorSampleRate: p || 1,
|
|
749
749
|
replaysSessionSampleRate: s || 0.1,
|
|
750
|
-
tracePropagationTargets:
|
|
750
|
+
tracePropagationTargets: g,
|
|
751
751
|
tracesSampleRate: i || 1
|
|
752
752
|
}), null), ut = ({ IMaskMixin: t, ...n }) => {
|
|
753
|
-
const i =
|
|
753
|
+
const i = le(
|
|
754
754
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
755
|
-
() => t(({ TextField: s, ...
|
|
755
|
+
() => t(({ TextField: s, ...p }) => /* @__PURE__ */ P.jsx(s, { ...p })),
|
|
756
756
|
[t]
|
|
757
757
|
);
|
|
758
|
-
return /* @__PURE__ */
|
|
759
|
-
}, lt = ({ accessToken: t }) => {
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
};
|
|
773
|
-
var ze = { exports: {} };
|
|
758
|
+
return /* @__PURE__ */ P.jsx(i, { ...n });
|
|
759
|
+
}, lt = ({ accessToken: t }) => (X(() => {
|
|
760
|
+
if (!t)
|
|
761
|
+
return;
|
|
762
|
+
(async () => {
|
|
763
|
+
try {
|
|
764
|
+
const i = await import("mapbox-gl");
|
|
765
|
+
i.default.accessToken = t;
|
|
766
|
+
} catch (i) {
|
|
767
|
+
console.error(i);
|
|
768
|
+
}
|
|
769
|
+
})().then();
|
|
770
|
+
}, [t]), null);
|
|
771
|
+
var Ue = { exports: {} };
|
|
774
772
|
(function(t, n) {
|
|
775
773
|
(function(i, s) {
|
|
776
774
|
t.exports = s();
|
|
777
775
|
})(Mr, function() {
|
|
778
776
|
var i = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" };
|
|
779
|
-
return function(s,
|
|
780
|
-
var o =
|
|
781
|
-
|
|
777
|
+
return function(s, p, g) {
|
|
778
|
+
var o = p.prototype, c = o.format;
|
|
779
|
+
g.en.formats = i, o.format = function(l) {
|
|
782
780
|
l === void 0 && (l = "YYYY-MM-DDTHH:mm:ssZ");
|
|
783
|
-
var
|
|
784
|
-
return C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(O, j,
|
|
785
|
-
var R =
|
|
786
|
-
return j || T[
|
|
787
|
-
return _ ||
|
|
781
|
+
var h = this.$locale().formats, y = function(C, T) {
|
|
782
|
+
return C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(O, j, S) {
|
|
783
|
+
var R = S && S.toUpperCase();
|
|
784
|
+
return j || T[S] || i[S] || T[R].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(D, _, $) {
|
|
785
|
+
return _ || $.slice(1);
|
|
788
786
|
});
|
|
789
787
|
});
|
|
790
|
-
}(l,
|
|
791
|
-
return c.call(this,
|
|
788
|
+
}(l, h === void 0 ? {} : h);
|
|
789
|
+
return c.call(this, y);
|
|
792
790
|
};
|
|
793
791
|
};
|
|
794
792
|
});
|
|
795
|
-
})(
|
|
796
|
-
var Ir =
|
|
797
|
-
const Nr = /* @__PURE__ */
|
|
793
|
+
})(Ue);
|
|
794
|
+
var Ir = Ue.exports;
|
|
795
|
+
const Nr = /* @__PURE__ */ Lr(Ir);
|
|
798
796
|
z.extend(Nr);
|
|
799
|
-
const ct = ({ language: t }) => (
|
|
797
|
+
const ct = ({ language: t }) => (Ne(() => {
|
|
800
798
|
var i;
|
|
801
799
|
const n = t || ((i = navigator.language) == null ? void 0 : i.slice(0, 2)) || "en";
|
|
802
800
|
if (n === "en") {
|
|
803
|
-
import("./en-
|
|
801
|
+
import("./en-NkuEPb7W.js").then((s) => s.e).then(() => {
|
|
804
802
|
z.locale(n);
|
|
805
803
|
});
|
|
806
804
|
return;
|
|
807
805
|
}
|
|
808
|
-
n === "fr" && import("./fr-
|
|
806
|
+
n === "fr" && import("./fr-zJ2AMR0z.js").then((s) => s.f).then(() => {
|
|
809
807
|
z.locale(n);
|
|
810
808
|
}).catch(() => {
|
|
811
|
-
import("./en-
|
|
809
|
+
import("./en-NkuEPb7W.js").then((s) => s.e).then(() => {
|
|
812
810
|
z.locale("en");
|
|
813
811
|
});
|
|
814
812
|
});
|
|
@@ -819,48 +817,48 @@ const ct = ({ language: t }) => (We(() => {
|
|
|
819
817
|
...i
|
|
820
818
|
},
|
|
821
819
|
queries: {
|
|
822
|
-
getNextPageParam: (
|
|
820
|
+
getNextPageParam: (p, g, o) => p.length + (o || 0),
|
|
823
821
|
refetchOnWindowFocus: !1,
|
|
824
822
|
retry: 3,
|
|
825
823
|
...n
|
|
826
824
|
}
|
|
827
825
|
}
|
|
828
826
|
});
|
|
829
|
-
return /* @__PURE__ */
|
|
827
|
+
return /* @__PURE__ */ P.jsx(Dr, { client: s, children: t });
|
|
830
828
|
}, dt = (t) => {
|
|
831
|
-
const { unknownErrorTranslationKey: n = "error.unknownError" } = t || {}, i = jr(n), s =
|
|
832
|
-
(
|
|
833
|
-
var c, l,
|
|
834
|
-
const { response: o } =
|
|
835
|
-
return o != null && o.reason ? String(o.reason) : (c = o == null ? void 0 : o.data) != null && c.reason ? String(o.data.reason) : (l = o == null ? void 0 : o.data) != null && l.message ? String(o.data.message) : (
|
|
829
|
+
const { unknownErrorTranslationKey: n = "error.unknownError" } = t || {}, i = jr(n), s = se(
|
|
830
|
+
(g) => {
|
|
831
|
+
var c, l, h, y, C, T, O, j, S;
|
|
832
|
+
const { response: o } = g || {};
|
|
833
|
+
return o != null && o.reason ? String(o.reason) : (c = o == null ? void 0 : o.data) != null && c.reason ? String(o.data.reason) : (l = o == null ? void 0 : o.data) != null && l.message ? String(o.data.message) : (y = (h = o == null ? void 0 : o.data) == null ? void 0 : h.detail) != null && y.length && Array.isArray((C = o == null ? void 0 : o.data) == null ? void 0 : C.detail) && ((O = (T = o == null ? void 0 : o.data) == null ? void 0 : T.detail[0]) != null && O.msg) && typeof ((S = (j = o == null ? void 0 : o.data) == null ? void 0 : j.detail[0]) == null ? void 0 : S.msg) == "string" ? String(o.data.detail[0].msg) : i;
|
|
836
834
|
},
|
|
837
835
|
[i]
|
|
838
836
|
);
|
|
839
|
-
return { getErrorCode:
|
|
840
|
-
var c, l,
|
|
841
|
-
const { response: o } =
|
|
842
|
-
return o != null && o.error_code ? String(o == null ? void 0 : o.error_code) : (c = o == null ? void 0 : o.data) != null && c.error_code ? String((l = o == null ? void 0 : o.data) == null ? void 0 : l.error_code) : o != null && o.error_code ? String(o == null ? void 0 : o.error_code) : (
|
|
837
|
+
return { getErrorCode: se((g) => {
|
|
838
|
+
var c, l, h;
|
|
839
|
+
const { response: o } = g || {};
|
|
840
|
+
return o != null && o.error_code ? String(o == null ? void 0 : o.error_code) : (c = o == null ? void 0 : o.data) != null && c.error_code ? String((l = o == null ? void 0 : o.data) == null ? void 0 : l.error_code) : o != null && o.error_code ? String(o == null ? void 0 : o.error_code) : (h = o == null ? void 0 : o.data) != null && h.error_code ? String(o.data.error_code) : "unknown_error_code";
|
|
843
841
|
}, []), printError: s };
|
|
844
842
|
}, pt = ({
|
|
845
843
|
data: t,
|
|
846
844
|
fetchNextPage: n,
|
|
847
845
|
isFetchingNextPage: i,
|
|
848
846
|
isInitialLoading: s,
|
|
849
|
-
isLoading:
|
|
850
|
-
enabled:
|
|
847
|
+
isLoading: p,
|
|
848
|
+
enabled: g = !0
|
|
851
849
|
}) => {
|
|
852
|
-
const o =
|
|
850
|
+
const o = se(
|
|
853
851
|
async (l) => {
|
|
854
|
-
i || !
|
|
852
|
+
i || !g || await n({ pageParam: (l == null ? void 0 : l.pageParam) || l.visibleRowsCount });
|
|
855
853
|
},
|
|
856
|
-
[
|
|
857
|
-
), c =
|
|
854
|
+
[g, n, i]
|
|
855
|
+
), c = le(() => {
|
|
858
856
|
if (t)
|
|
859
|
-
return t.pages.reduce((l,
|
|
857
|
+
return t.pages.reduce((l, h) => [...l, ...h], []);
|
|
860
858
|
}, [t]);
|
|
861
859
|
return {
|
|
862
860
|
fetchNextPageOnRowsScrollEnd: o,
|
|
863
|
-
isLoading: i ||
|
|
861
|
+
isLoading: i || p,
|
|
864
862
|
loadingVariant: s ? "skeleton" : "linear",
|
|
865
863
|
rows: c
|
|
866
864
|
};
|
|
@@ -883,7 +881,7 @@ const ct = ({ language: t }) => (We(() => {
|
|
|
883
881
|
const i = Ur(t), s = typeof t == "object" && "pathname" in t ? `${t.origin}${i}` : t;
|
|
884
882
|
return typeof n == "number" ? `${s.replace("/files", `/thumbs/${n}`)}` : s;
|
|
885
883
|
}, mt = () => {
|
|
886
|
-
const { apiURL: t } =
|
|
884
|
+
const { apiURL: t } = We(ce);
|
|
887
885
|
return {
|
|
888
886
|
dateAdapter: Wr,
|
|
889
887
|
distanceAdapter: Vr,
|
|
@@ -896,11 +894,11 @@ const ct = ({ language: t }) => (We(() => {
|
|
|
896
894
|
)
|
|
897
895
|
};
|
|
898
896
|
}, zr = (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase(), Br = (t) => {
|
|
899
|
-
const s = t.split("/").filter((
|
|
897
|
+
const s = t.split("/").filter((p) => p.length > 0).map((p) => p.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((l) => l.charAt(0).toUpperCase() + l.slice(1)).join("")).join("");
|
|
900
898
|
return s.charAt(0).toLowerCase() + s.slice(1);
|
|
901
899
|
}, Gr = (t, n, i) => {
|
|
902
|
-
const s = Br(n),
|
|
903
|
-
return `${s}${
|
|
900
|
+
const s = Br(n), p = zr(i);
|
|
901
|
+
return `${s}${p}`;
|
|
904
902
|
}, qr = (t) => {
|
|
905
903
|
if (t)
|
|
906
904
|
return (t == null ? void 0 : t.reduce((n, i) => (n[i] = {
|
package/dist/main.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s, D as n, G as i, I as t, j as r, b as o, a as d, M as f, Q as g, R as u, S as C, h as p, i as A, g as c, f as x, e as D, d as I, u as M } from "./main-
|
|
1
|
+
import { A as s, D as n, G as i, I as t, j as r, b as o, a as d, M as f, Q as g, R as u, S as C, h as p, i as A, g as c, f as x, e as D, d as I, u as M } from "./main-PeA08MpJ.js";
|
|
2
2
|
export {
|
|
3
3
|
s as AxiosConfig,
|
|
4
4
|
n as DaysJSConfig,
|
package/dist/main.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(p,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("react"),require("axios"),require("react-router-dom"),require("i18next"),require("i18next-browser-languagedetector"),require("react-i18next"),require("@sentry/react"),require("dayjs"),require("@tanstack/react-query")):typeof define=="function"&&define.amd?define(["exports","react","axios","react-router-dom","i18next","i18next-browser-languagedetector","react-i18next","@sentry/react","dayjs","@tanstack/react-query"],h):(p=typeof globalThis<"u"?globalThis:p||self,h(p["@tracktor/shared-module"]={},p.React,p.axios,p.reactRouterDom,p.i18n,p.LanguageDetector,p.reactI18next,p.Sentry,p.dayjs,p.reactQuery))})(this,function(p,h,M,Y,k,Ue,Be,Ge,N,fe){"use strict";function Je(r){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const o in r)if(o!=="default"){const u=Object.getOwnPropertyDescriptor(r,o);Object.defineProperty(n,o,u.get?u:{enumerable:!0,get:()=>r[o]})}}return n.default=r,Object.freeze(n)}const Q=Je(Ge);var ee=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function He(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var te={exports:{}},z={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.development.js
|
|
4
4
|
*
|
|
@@ -6,17 +6,17 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var de;function $e(){return de||(de=1,process.env.NODE_ENV!=="production"&&function(){var r=
|
|
10
|
-
`+ae+e}}var oe=!1,q;{var xt=typeof WeakMap=="function"?WeakMap:Map;q=new xt}function Pe(e,t){if(!e||oe)return"";{var i=q.get(e);if(i!==void 0)return i}var s;oe=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var
|
|
9
|
+
*/var de;function $e(){return de||(de=1,process.env.NODE_ENV!=="production"&&function(){var r=h,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),f=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),A=Symbol.iterator,b="@@iterator";function H(e){if(e===null||typeof e!="object")return null;var t=A&&e[A]||e[b];return typeof t=="function"?t:null}var F=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function C(e){{for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];re("error",e,i)}}function re(e,t,i){{var s=F.ReactDebugCurrentFrame,m=s.getStackAddendum();m!==""&&(t+="%s",i=i.concat([m]));var _=i.map(function(v){return String(v)});_.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,_)}}var Rt=!1,Ct=!1,St=!1,Tt=!1,jt=!1,ye;ye=Symbol.for("react.module.reference");function wt(e){return!!(typeof e=="string"||typeof e=="function"||e===u||e===g||jt||e===l||e===y||e===E||Tt||e===P||Rt||Ct||St||typeof e=="object"&&e!==null&&(e.$$typeof===j||e.$$typeof===T||e.$$typeof===a||e.$$typeof===f||e.$$typeof===c||e.$$typeof===ye||e.getModuleId!==void 0))}function Ot(e,t,i){var s=e.displayName;if(s)return s;var m=t.displayName||t.name||"";return m!==""?i+"("+m+")":i}function be(e){return e.displayName||"Context"}function L(e){if(e==null)return null;if(typeof e.tag=="number"&&C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case u:return"Fragment";case o:return"Portal";case g:return"Profiler";case l:return"StrictMode";case y:return"Suspense";case E:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case f:var t=e;return be(t)+".Consumer";case a:var i=e;return be(i._context)+".Provider";case c:return Ot(e,e.render,"ForwardRef");case T:var s=e.displayName||null;return s!==null?s:L(e.type)||"Memo";case j:{var m=e,_=m._payload,v=m._init;try{return L(v(_))}catch{return null}}}return null}var I=Object.assign,B=0,Ee,Re,Ce,Se,Te,je,we;function Oe(){}Oe.__reactDisabledLog=!0;function Pt(){{if(B===0){Ee=console.log,Re=console.info,Ce=console.warn,Se=console.error,Te=console.group,je=console.groupCollapsed,we=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Oe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}B++}}function Mt(){{if(B--,B===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:Ee}),info:I({},e,{value:Re}),warn:I({},e,{value:Ce}),error:I({},e,{value:Se}),group:I({},e,{value:Te}),groupCollapsed:I({},e,{value:je}),groupEnd:I({},e,{value:we})})}B<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ne=F.ReactCurrentDispatcher,ae;function $(e,t,i){{if(ae===void 0)try{throw Error()}catch(m){var s=m.stack.trim().match(/\n( *(at )?)/);ae=s&&s[1]||""}return`
|
|
10
|
+
`+ae+e}}var oe=!1,q;{var xt=typeof WeakMap=="function"?WeakMap:Map;q=new xt}function Pe(e,t){if(!e||oe)return"";{var i=q.get(e);if(i!==void 0)return i}var s;oe=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var _;_=ne.current,ne.current=null,Pt();try{if(t){var v=function(){throw Error()};if(Object.defineProperty(v.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(v,[])}catch(D){s=D}Reflect.construct(e,[],v)}else{try{v.call()}catch(D){s=D}e.call(v.prototype)}}else{try{throw Error()}catch(D){s=D}e()}}catch(D){if(D&&s&&typeof D.stack=="string"){for(var d=D.stack.split(`
|
|
11
11
|
`),w=s.stack.split(`
|
|
12
|
-
`),R=
|
|
13
|
-
`+
|
|
12
|
+
`),R=d.length-1,S=w.length-1;R>=1&&S>=0&&d[R]!==w[S];)S--;for(;R>=1&&S>=0;R--,S--)if(d[R]!==w[S]){if(R!==1||S!==1)do if(R--,S--,S<0||d[R]!==w[S]){var O=`
|
|
13
|
+
`+d[R].replace(" at new "," at ");return e.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",e.displayName)),typeof e=="function"&&q.set(e,O),O}while(R>=1&&S>=0);break}}}finally{oe=!1,ne.current=_,Mt(),Error.prepareStackTrace=m}var V=e?e.displayName||e.name:"",ze=V?$(V):"";return typeof e=="function"&&q.set(e,ze),ze}function At(e,t,i){return Pe(e,!1)}function kt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function X(e,t,i){if(e==null)return"";if(typeof e=="function")return Pe(e,kt(e));if(typeof e=="string")return $(e);switch(e){case y:return $("Suspense");case E:return $("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case c:return At(e.render);case T:return X(e.type,t,i);case j:{var s=e,m=s._payload,_=s._init;try{return X(_(m),t,i)}catch{}}}return""}var K=Object.prototype.hasOwnProperty,Me={},xe=F.ReactDebugCurrentFrame;function Z(e){if(e){var t=e._owner,i=X(e.type,e._source,t?t.type:null);xe.setExtraStackFrame(i)}else xe.setExtraStackFrame(null)}function Lt(e,t,i,s,m){{var _=Function.call.bind(K);for(var v in e)if(_(e,v)){var d=void 0;try{if(typeof e[v]!="function"){var w=Error((s||"React class")+": "+i+" 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`.");throw w.name="Invariant Violation",w}d=e[v](t,v,s,i,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(R){d=R}d&&!(d instanceof Error)&&(Z(m),C("%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).",s||"React class",i,v,typeof d),Z(null)),d instanceof Error&&!(d.message in Me)&&(Me[d.message]=!0,Z(m),C("Failed %s type: %s",i,d.message),Z(null))}}}var Dt=Array.isArray;function ie(e){return Dt(e)}function Yt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,i=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i}}function Ft(e){try{return Ae(e),!1}catch{return!0}}function Ae(e){return""+e}function ke(e){if(Ft(e))return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Yt(e)),Ae(e)}var G=F.ReactCurrentOwner,It={key:!0,ref:!0,__self:!0,__source:!0},Le,De,ue;ue={};function Nt(e){if(K.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function Wt(e){if(K.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function Vt(e,t){if(typeof e.ref=="string"&&G.current&&t&&G.current.stateNode!==t){var i=L(G.current.type);ue[i]||(C('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',L(G.current.type),e.ref),ue[i]=!0)}}function zt(e,t){{var i=function(){Le||(Le=!0,C("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};i.isReactWarning=!0,Object.defineProperty(e,"key",{get:i,configurable:!0})}}function Ut(e,t){{var i=function(){De||(De=!0,C("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};i.isReactWarning=!0,Object.defineProperty(e,"ref",{get:i,configurable:!0})}}var Bt=function(e,t,i,s,m,_,v){var d={$$typeof:n,type:e,key:t,ref:i,props:v,_owner:_};return d._store={},Object.defineProperty(d._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(d,"_self",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.defineProperty(d,"_source",{configurable:!1,enumerable:!1,writable:!1,value:m}),Object.freeze&&(Object.freeze(d.props),Object.freeze(d)),d};function Gt(e,t,i,s,m){{var _,v={},d=null,w=null;i!==void 0&&(ke(i),d=""+i),Wt(t)&&(ke(t.key),d=""+t.key),Nt(t)&&(w=t.ref,Vt(t,m));for(_ in t)K.call(t,_)&&!It.hasOwnProperty(_)&&(v[_]=t[_]);if(e&&e.defaultProps){var R=e.defaultProps;for(_ in R)v[_]===void 0&&(v[_]=R[_])}if(d||w){var S=typeof e=="function"?e.displayName||e.name||"Unknown":e;d&&zt(v,S),w&&Ut(v,S)}return Bt(e,d,w,m,s,G.current,v)}}var se=F.ReactCurrentOwner,Ye=F.ReactDebugCurrentFrame;function W(e){if(e){var t=e._owner,i=X(e.type,e._source,t?t.type:null);Ye.setExtraStackFrame(i)}else Ye.setExtraStackFrame(null)}var ce;ce=!1;function le(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function Fe(){{if(se.current){var e=L(se.current.type);if(e)return`
|
|
14
14
|
|
|
15
15
|
Check the render method of \``+e+"`."}return""}}function Jt(e){{if(e!==void 0){var t=e.fileName.replace(/^.*[\\\/]/,""),i=e.lineNumber;return`
|
|
16
16
|
|
|
17
17
|
Check your code at `+t+":"+i+"."}return""}}var Ie={};function Ht(e){{var t=Fe();if(!t){var i=typeof e=="string"?e:e.displayName||e.name;i&&(t=`
|
|
18
18
|
|
|
19
|
-
Check the top-level render call using <`+i+">.")}return t}}function Ne(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var i=Ht(t);if(Ie[i])return;Ie[i]=!0;var s="";e&&e._owner&&e._owner!==se.current&&(s=" It was passed a child from "+
|
|
19
|
+
Check the top-level render call using <`+i+">.")}return t}}function Ne(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var i=Ht(t);if(Ie[i])return;Ie[i]=!0;var s="";e&&e._owner&&e._owner!==se.current&&(s=" It was passed a child from "+L(e._owner.type)+"."),W(e),C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',i,s),W(null)}}function We(e,t){{if(typeof e!="object")return;if(ie(e))for(var i=0;i<e.length;i++){var s=e[i];le(s)&&Ne(s,t)}else if(le(e))e._store&&(e._store.validated=!0);else if(e){var m=H(e);if(typeof m=="function"&&m!==e.entries)for(var _=m.call(e),v;!(v=_.next()).done;)le(v.value)&&Ne(v.value,t)}}}function $t(e){{var t=e.type;if(t==null||typeof t=="string")return;var i;if(typeof t=="function")i=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===c||t.$$typeof===T))i=t.propTypes;else return;if(i){var s=L(t);Lt(i,e.props,"prop",s,e)}else if(t.PropTypes!==void 0&&!ce){ce=!0;var m=L(t);C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",m||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function qt(e){{for(var t=Object.keys(e.props),i=0;i<t.length;i++){var s=t[i];if(s!=="children"&&s!=="key"){W(e),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s),W(null);break}}e.ref!==null&&(W(e),C("Invalid attribute `ref` supplied to `React.Fragment`."),W(null))}}function Ve(e,t,i,s,m,_){{var v=wt(e);if(!v){var d="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(d+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var w=Jt(m);w?d+=w:d+=Fe();var R;e===null?R="null":ie(e)?R="array":e!==void 0&&e.$$typeof===n?(R="<"+(L(e.type)||"Unknown")+" />",d=" Did you accidentally export a JSX literal instead of a component?"):R=typeof e,C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",R,d)}var S=Gt(e,t,i,m,_);if(S==null)return S;if(v){var O=t.children;if(O!==void 0)if(s)if(ie(O)){for(var V=0;V<O.length;V++)We(O[V],e);Object.freeze&&Object.freeze(O)}else C("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else We(O,e)}return e===u?qt(S):$t(S),S}}function Xt(e,t,i){return Ve(e,t,i,!0)}function Kt(e,t,i){return Ve(e,t,i,!1)}var Zt=Kt,Qt=Xt;z.Fragment=u,z.jsx=Zt,z.jsxs=Qt}()),z}var U={};/**
|
|
20
20
|
* @license React
|
|
21
21
|
* react-jsx-runtime.production.min.js
|
|
22
22
|
*
|
|
@@ -24,4 +24,4 @@ Check the top-level render call using <`+i+">.")}return t}}function Ne(e,t){{if(
|
|
|
24
24
|
*
|
|
25
25
|
* This source code is licensed under the MIT license found in the
|
|
26
26
|
* LICENSE file in the root directory of this source tree.
|
|
27
|
-
*/var ve;function qe(){if(ve)return U;ve=1;var r=_,n=Symbol.for("react.element"),o=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,p=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,b={key:!0,ref:!0,__self:!0,__source:!0};function a(l,c,h){var E,S={},j=null,P=null;h!==void 0&&(j=""+h),c.key!==void 0&&(j=""+c.key),c.ref!==void 0&&(P=c.ref);for(E in c)u.call(c,E)&&!b.hasOwnProperty(E)&&(S[E]=c[E]);if(l&&l.defaultProps)for(E in c=l.defaultProps,c)S[E]===void 0&&(S[E]=c[E]);return{$$typeof:n,type:l,key:j,ref:P,props:S,_owner:p.current}}return U.Fragment=o,U.jsx=a,U.jsxs=a,U}process.env.NODE_ENV==="production"?te.exports=qe():te.exports=$e();var L=te.exports;const Xe=({Fallback:r,loginPath:n="/login",localStorageKey:o="user",redirect401Path:u="/login",isLogged:p})=>{var S,j,P,A;const[b,a]=_.useState(null),l=x.useLocation(),c=_.useRef(!1),h=typeof p=="function"?p():!!p,E=typeof h=="boolean"?h:h==null?void 0:h.isLogged;return _.useLayoutEffect(()=>{c.current||(c.current=!0,M==null||M.interceptors.response.use(y=>y,async y=>{var C;return typeof y=="object"&&y&&"response"in y&&y.response&&typeof y.response=="object"&&"status"in y.response&&y.response&&typeof y.response=="object"&&"status"in y.response&&((C=y==null?void 0:y.response)==null?void 0:C.status)===401&&(M.defaults.headers.common.Authorization=null,localStorage.removeItem(o),a(u)),Promise.reject(y)}))},[o,u]),E&&!b?L.jsx(_.Suspense,{fallback:r,children:(j=(S=l.state)==null?void 0:S.from)!=null&&j.state&&((A=(P=l.state)==null?void 0:P.from)==null?void 0:A.pathname)===n?L.jsx(x.Navigate,{to:l.state.from.state.from.pathname+l.state.from.state.from.search,replace:!0}):L.jsx(x.Outlet,{})}):L.jsx(x.Navigate,{to:n,state:{from:l},replace:!0})},Ke=()=>{const[r,n]=_.useState();return _.useEffect(()=>{(async()=>{try{const{useGoogleTagManager:u}=await import("@tracktor/react-google-tag-manager");n(u)}catch(u){console.error(u)}})().then()},[]),r},Ze=()=>{const{pathname:r}=x.useLocation(),n=Ke();return _.useEffect(()=>{if(n){const{sendEvent:o}=n();o({event:"pageView",pathname:r})}},[r,n]),L.jsx(x.Outlet,{})},J=_.createContext({apiURL:void 0,children:void 0}),Qe=({children:r,apiURL:n})=>{const o=_.useMemo(()=>({apiURL:n}),[n]);return L.jsx(J.Provider,{value:o,children:r})},et=({tokenTypeKey:r="tokenType",userLocalStorageKey:n="user",tokenKey:o="accessToken",postContentType:u="application/json",...p})=>{const{apiURL:b=p.baseURL}=_.useContext(J);if(!M.defaults)return null;const a=localStorage.getItem(n),l=a?JSON.parse(a):null,c=l!=null&&l[r]?l[r]:null,h=l!=null&&l[o]?l[o]:null,E=a?`${c} ${h}`:null;return M.defaults.baseURL=b,M.defaults.headers.post["Content-Type"]=u,E&&(M.defaults.headers.common.Authorization=E),null},tt=({debug:r,resources:n})=>(k!=null&&k.isInitialized||(k.use(Ue).use(Be.initReactI18next).init({debug:r,fallbackLng:"en",interpolation:{escapeValue:!1},load:"languageOnly",react:{bindI18n:!1,useSuspense:!0},resources:n,returnNull:!1}).then(()=>{document.documentElement.lang!==k.resolvedLanguage&&k.resolvedLanguage&&document.documentElement.setAttribute("lang",k.resolvedLanguage)}),k.on("languageChanged",o=>{document.documentElement.setAttribute("lang",o)})),null),rt=({dsn:r,integrations:n,tracesSampleRate:o,replaysSessionSampleRate:u,replaysOnErrorSampleRate:p,tracePropagationTargets:b,ignoreErrors:a,debug:l,environment:c})=>(Q.isInitialized()||(l||process.env.NODE_ENV==="prod"||process.env.NODE_ENV==="production")&&Q.init({debug:l,dsn:r,environment:c||"production",ignoreErrors:[...a||[],/dynamically imported module/],integrations:[Q.reactRouterV6BrowserTracingIntegration({createRoutesFromChildren:x.createRoutesFromChildren,matchRoutes:x.matchRoutes,useEffect:_.useEffect,useLocation:x.useLocation,useNavigationType:x.useNavigationType}),...n||[]],replaysOnErrorSampleRate:p||1,replaysSessionSampleRate:u||.1,tracePropagationTargets:b,tracesSampleRate:o||1}),null),nt=({IMaskMixin:r,...n})=>{const o=_.useMemo(()=>r(({TextField:u,...p})=>L.jsx(u,{...p})),[r]);return L.jsx(o,{...n})},at=({accessToken:r})=>{_.useEffect(()=>{if(!r)return;(async()=>{try{const o=await import("mapbox-gl");o.accessToken=r}catch(o){console.error(o)}})().then()},[r])};var pe={exports:{}};(function(r,n){(function(o,u){r.exports=u()})(ee,function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(u,p,b){var a=p.prototype,l=a.format;b.en.formats=o,a.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var h=this.$locale().formats,E=function(S,j){return S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(P,A,y){var H=y&&y.toUpperCase();return A||j[y]||o[y]||j[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(F,C,re){return C||re.slice(1)})})}(c,h===void 0?{}:h);return l.call(this,E)}}})})(pe);var ot=pe.exports;const it=He(ot);N.extend(it);const ut=({language:r})=>(_.useLayoutEffect(()=>{var o;const n=r||((o=navigator.language)==null?void 0:o.slice(0,2))||"en";if(n==="en"){Promise.resolve().then(()=>he).then(()=>{N.locale(n)});return}n==="fr"&&Promise.resolve().then(()=>Et).then(()=>{N.locale(n)}).catch(()=>{Promise.resolve().then(()=>he).then(()=>{N.locale("en")})})},[r]),null),st=({children:r,defaultQueriesOptions:n,defaultMutationsOptions:o})=>{const u=new fe.QueryClient({defaultOptions:{mutations:{...o},queries:{getNextPageParam:(p,b,a)=>p.length+(a||0),refetchOnWindowFocus:!1,retry:3,...n}}});return L.jsx(fe.QueryClientProvider,{client:u,children:r})},ct=r=>{const{unknownErrorTranslationKey:n="error.unknownError"}=r||{},o=k.t(n),u=_.useCallback(b=>{var l,c,h,E,S,j,P,A,y;const{response:a}=b||{};return a!=null&&a.reason?String(a.reason):(l=a==null?void 0:a.data)!=null&&l.reason?String(a.data.reason):(c=a==null?void 0:a.data)!=null&&c.message?String(a.data.message):(E=(h=a==null?void 0:a.data)==null?void 0:h.detail)!=null&&E.length&&Array.isArray((S=a==null?void 0:a.data)==null?void 0:S.detail)&&((P=(j=a==null?void 0:a.data)==null?void 0:j.detail[0])!=null&&P.msg)&&typeof((y=(A=a==null?void 0:a.data)==null?void 0:A.detail[0])==null?void 0:y.msg)=="string"?String(a.data.detail[0].msg):o},[o]);return{getErrorCode:_.useCallback(b=>{var l,c,h;const{response:a}=b||{};return a!=null&&a.error_code?String(a==null?void 0:a.error_code):(l=a==null?void 0:a.data)!=null&&l.error_code?String((c=a==null?void 0:a.data)==null?void 0:c.error_code):a!=null&&a.error_code?String(a==null?void 0:a.error_code):(h=a==null?void 0:a.data)!=null&&h.error_code?String(a.data.error_code):"unknown_error_code"},[]),printError:u}},lt=({data:r,fetchNextPage:n,isFetchingNextPage:o,isInitialLoading:u,isLoading:p,enabled:b=!0})=>{const a=_.useCallback(async c=>{o||!b||await n({pageParam:(c==null?void 0:c.pageParam)||c.visibleRowsCount})},[b,n,o]),l=_.useMemo(()=>{if(r)return r.pages.reduce((c,h)=>[...c,...h],[])},[r]);return{fetchNextPageOnRowsScrollEnd:a,isLoading:o||p,loadingVariant:u?"skeleton":"linear",rows:l}},ft=()=>({clearAuthenticationToken:()=>{M.defaults.headers.common.Authorization=null},setAuthenticationToken:({tokenType:o,accessToken:u})=>{M.defaults.headers.common.Authorization=`${o} ${u}`}}),me=(r,n="ll")=>N(r).format(n),ge=(r,n="km")=>{const o=Number(r);return Number.isNaN(o)?`0 ${n}`:`${o.toFixed(2)} ${n}`},dt=r=>{const n=r&&typeof r=="object"&&"pathname"in r&&r.pathname?r.pathname:r;return typeof n=="string"?n!=null&&n.startsWith("/")?n!=null&&n.startsWith("/files")?n:`/files${n}`:n!=null&&n.startsWith("files")?`/${n}`:n!=null&&n.startsWith("files")?`/${n}`:`/files/${n}`:n},_e=(r,n)=>{if(!r)return"";const o=dt(r),u=typeof r=="object"&&"pathname"in r?`${r.origin}${o}`:r;return typeof n=="number"?`${u.replace("/files",`/thumbs/${n}`)}`:u},vt=()=>{const{apiURL:r}=_.useContext(J);return{dateAdapter:me,distanceAdapter:ge,filePathAdapter:(o,u)=>_e(r&&typeof o=="string"?{origin:r,pathname:o}:o,u)}},pt=r=>r.charAt(0).toUpperCase()+r.slice(1).toLowerCase(),mt=r=>{const u=r.split("/").filter(p=>p.length>0).map(p=>p.replace(/\${([^}]*)}/g,"$1").split(/[_-]/).map(c=>c.charAt(0).toUpperCase()+c.slice(1)).join("")).join("");return u.charAt(0).toLowerCase()+u.slice(1)},gt=(r,n,o)=>{const u=mt(n),p=pt(o);return`${u}${p}`},_t=r=>{if(r)return(r==null?void 0:r.reduce((n,o)=>(n[o]={query:{useInfinite:!0,useInfiniteQueryParam:"offset",useQuery:!0}},n),{}))||{}},ht=r=>{const{input:n="./openapi.json",operationsToGenerateInfiniteQueryHook:o=void 0}=r||{};return{api:{hooks:{afterAllFilesWrite:"prettier src/api/ --write"},input:n,output:{client:"react-query",mode:"tags-split",override:{header:u=>["Generated by orval 🍺",...u.title?[u.title]:[],...u.description?[u.description]:[]],mutator:{name:"axiosCustomInstance",path:`${__dirname}/config/orval/mutator/axiosCustomInstance.ts`},operationName:gt,...(o==null?void 0:o.length)&&{operations:_t(o)},query:{useQuery:!0}},schemas:"src/api/model",target:"src/api/services/api.ts"}}}};var yt={exports:{}};(function(r,n){(function(o,u){r.exports=u()})(ee,function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(o){var u=["th","st","nd","rd"],p=o%100;return"["+o+(u[(p-20)%10]||u[p]||u[0])+"]"}}})})(yt);const he=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var bt={exports:{}};(function(r,n){(function(o,u){r.exports=u(N)})(ee,function(o){function u(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var p=u(o),b={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(a){return""+a+(a===1?"er":"")}};return p.default.locale(b,null,!0),b})})(bt);const Et=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));v.AxiosConfig=et,v.DaysJSConfig=ut,v.GTMSendPageView=Ze,v.I18nConfig=tt,v.InjectDependenciesContext=J,v.InjectDependenciesProvider=Qe,v.MapBoxConfig=at,v.MaskTextField=nt,v.QueryClientConfigProvider=st,v.RequireAuth=Xe,v.SentryConfig=rt,v.dateAdapter=me,v.distanceAdapter=ge,v.getOrvalConfig=ht,v.useAdapter=vt,v.useAuth=ft,v.useInfiniteDataGrid=lt,v.useResponseError=ct,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})});
|
|
27
|
+
*/var ve;function qe(){if(ve)return U;ve=1;var r=h,n=Symbol.for("react.element"),o=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,g={key:!0,ref:!0,__self:!0,__source:!0};function a(f,c,y){var E,T={},j=null,P=null;y!==void 0&&(j=""+y),c.key!==void 0&&(j=""+c.key),c.ref!==void 0&&(P=c.ref);for(E in c)u.call(c,E)&&!g.hasOwnProperty(E)&&(T[E]=c[E]);if(f&&f.defaultProps)for(E in c=f.defaultProps,c)T[E]===void 0&&(T[E]=c[E]);return{$$typeof:n,type:f,key:j,ref:P,props:T,_owner:l.current}}return U.Fragment=o,U.jsx=a,U.jsxs=a,U}process.env.NODE_ENV==="production"?te.exports=qe():te.exports=$e();var x=te.exports;const Xe=({Fallback:r,loginPath:n="/login",localStorageKey:o="user",redirect401Path:u="/login",isLogged:l})=>{var T,j,P,A;const[g,a]=h.useState(null),f=Y.useLocation(),c=h.useRef(!1),y=typeof l=="function"?l():!!l,E=typeof y=="boolean"?y:y==null?void 0:y.isLogged;return h.useLayoutEffect(()=>{c.current||(c.current=!0,M==null||M.interceptors.response.use(b=>b,async b=>{var C;return typeof b=="object"&&b&&"response"in b&&b.response&&typeof b.response=="object"&&"status"in b.response&&b.response&&typeof b.response=="object"&&"status"in b.response&&((C=b==null?void 0:b.response)==null?void 0:C.status)===401&&(M.defaults.headers.common.Authorization=null,localStorage.removeItem(o),a(u)),Promise.reject(b)}))},[o,u]),E&&!g?x.jsx(h.Suspense,{fallback:r,children:(j=(T=f.state)==null?void 0:T.from)!=null&&j.state&&((A=(P=f.state)==null?void 0:P.from)==null?void 0:A.pathname)===n?x.jsx(Y.Navigate,{to:f.state.from.state.from.pathname+f.state.from.state.from.search,replace:!0}):x.jsx(Y.Outlet,{})}):x.jsx(Y.Navigate,{to:n,state:{from:f},replace:!0})},Ke=({useLocation:r,useGoogleTagManager:n,Outlet:o})=>{const{pathname:u}=r(),{sendEvent:l}=n();return h.useEffect(()=>{l({event:"pageView",pathname:u})},[u,l]),o?x.jsx(o,{}):null},Ze=()=>{const[r,n]=h.useState(),[o,u]=h.useState();if(h.useEffect(()=>{(async()=>{try{n(await import("@tracktor/react-google-tag-manager")),u(await import("react-router-dom"))}catch(g){console.error(g)}})().then()},[]),r&&o){const{useGoogleTagManager:l}=r,{useLocation:g,Outlet:a}=o;return x.jsx(Ke,{useLocation:g,Outlet:a,useGoogleTagManager:l})}return null},J=h.createContext({apiURL:void 0,children:void 0}),Qe=({children:r,apiURL:n})=>{const o=h.useMemo(()=>({apiURL:n}),[n]);return x.jsx(J.Provider,{value:o,children:r})},et=({tokenTypeKey:r="tokenType",userLocalStorageKey:n="user",tokenKey:o="accessToken",postContentType:u="application/json",...l})=>{const{apiURL:g=l.baseURL}=h.useContext(J);if(!M.defaults)return null;const a=localStorage.getItem(n),f=a?JSON.parse(a):null,c=f!=null&&f[r]?f[r]:null,y=f!=null&&f[o]?f[o]:null,E=a?`${c} ${y}`:null;return M.defaults.baseURL=g,M.defaults.headers.post["Content-Type"]=u,E&&(M.defaults.headers.common.Authorization=E),null},tt=({debug:r,resources:n})=>(k!=null&&k.isInitialized||(k.use(Ue).use(Be.initReactI18next).init({debug:r,fallbackLng:"en",interpolation:{escapeValue:!1},load:"languageOnly",react:{bindI18n:!1,useSuspense:!0},resources:n,returnNull:!1}).then(()=>{document.documentElement.lang!==k.resolvedLanguage&&k.resolvedLanguage&&document.documentElement.setAttribute("lang",k.resolvedLanguage)}),k.on("languageChanged",o=>{document.documentElement.setAttribute("lang",o)})),null),rt=({dsn:r,integrations:n,tracesSampleRate:o,replaysSessionSampleRate:u,replaysOnErrorSampleRate:l,tracePropagationTargets:g,ignoreErrors:a,debug:f,environment:c})=>(Q.isInitialized()||(f||process.env.NODE_ENV==="prod"||process.env.NODE_ENV==="production")&&Q.init({debug:f,dsn:r,environment:c||"production",ignoreErrors:[...a||[],/dynamically imported module/],integrations:[Q.reactRouterV6BrowserTracingIntegration({createRoutesFromChildren:Y.createRoutesFromChildren,matchRoutes:Y.matchRoutes,useEffect:h.useEffect,useLocation:Y.useLocation,useNavigationType:Y.useNavigationType}),...n||[]],replaysOnErrorSampleRate:l||1,replaysSessionSampleRate:u||.1,tracePropagationTargets:g,tracesSampleRate:o||1}),null),nt=({IMaskMixin:r,...n})=>{const o=h.useMemo(()=>r(({TextField:u,...l})=>x.jsx(u,{...l})),[r]);return x.jsx(o,{...n})},at=({accessToken:r})=>(h.useEffect(()=>{if(!r)return;(async()=>{try{const o=await import("mapbox-gl");o.default.accessToken=r}catch(o){console.error(o)}})().then()},[r]),null);var pe={exports:{}};(function(r,n){(function(o,u){r.exports=u()})(ee,function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(u,l,g){var a=l.prototype,f=a.format;g.en.formats=o,a.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var y=this.$locale().formats,E=function(T,j){return T.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(P,A,b){var H=b&&b.toUpperCase();return A||j[b]||o[b]||j[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(F,C,re){return C||re.slice(1)})})}(c,y===void 0?{}:y);return f.call(this,E)}}})})(pe);var ot=pe.exports;const it=He(ot);N.extend(it);const ut=({language:r})=>(h.useLayoutEffect(()=>{var o;const n=r||((o=navigator.language)==null?void 0:o.slice(0,2))||"en";if(n==="en"){Promise.resolve().then(()=>he).then(()=>{N.locale(n)});return}n==="fr"&&Promise.resolve().then(()=>Et).then(()=>{N.locale(n)}).catch(()=>{Promise.resolve().then(()=>he).then(()=>{N.locale("en")})})},[r]),null),st=({children:r,defaultQueriesOptions:n,defaultMutationsOptions:o})=>{const u=new fe.QueryClient({defaultOptions:{mutations:{...o},queries:{getNextPageParam:(l,g,a)=>l.length+(a||0),refetchOnWindowFocus:!1,retry:3,...n}}});return x.jsx(fe.QueryClientProvider,{client:u,children:r})},ct=r=>{const{unknownErrorTranslationKey:n="error.unknownError"}=r||{},o=k.t(n),u=h.useCallback(g=>{var f,c,y,E,T,j,P,A,b;const{response:a}=g||{};return a!=null&&a.reason?String(a.reason):(f=a==null?void 0:a.data)!=null&&f.reason?String(a.data.reason):(c=a==null?void 0:a.data)!=null&&c.message?String(a.data.message):(E=(y=a==null?void 0:a.data)==null?void 0:y.detail)!=null&&E.length&&Array.isArray((T=a==null?void 0:a.data)==null?void 0:T.detail)&&((P=(j=a==null?void 0:a.data)==null?void 0:j.detail[0])!=null&&P.msg)&&typeof((b=(A=a==null?void 0:a.data)==null?void 0:A.detail[0])==null?void 0:b.msg)=="string"?String(a.data.detail[0].msg):o},[o]);return{getErrorCode:h.useCallback(g=>{var f,c,y;const{response:a}=g||{};return a!=null&&a.error_code?String(a==null?void 0:a.error_code):(f=a==null?void 0:a.data)!=null&&f.error_code?String((c=a==null?void 0:a.data)==null?void 0:c.error_code):a!=null&&a.error_code?String(a==null?void 0:a.error_code):(y=a==null?void 0:a.data)!=null&&y.error_code?String(a.data.error_code):"unknown_error_code"},[]),printError:u}},lt=({data:r,fetchNextPage:n,isFetchingNextPage:o,isInitialLoading:u,isLoading:l,enabled:g=!0})=>{const a=h.useCallback(async c=>{o||!g||await n({pageParam:(c==null?void 0:c.pageParam)||c.visibleRowsCount})},[g,n,o]),f=h.useMemo(()=>{if(r)return r.pages.reduce((c,y)=>[...c,...y],[])},[r]);return{fetchNextPageOnRowsScrollEnd:a,isLoading:o||l,loadingVariant:u?"skeleton":"linear",rows:f}},ft=()=>({clearAuthenticationToken:()=>{M.defaults.headers.common.Authorization=null},setAuthenticationToken:({tokenType:o,accessToken:u})=>{M.defaults.headers.common.Authorization=`${o} ${u}`}}),me=(r,n="ll")=>N(r).format(n),ge=(r,n="km")=>{const o=Number(r);return Number.isNaN(o)?`0 ${n}`:`${o.toFixed(2)} ${n}`},dt=r=>{const n=r&&typeof r=="object"&&"pathname"in r&&r.pathname?r.pathname:r;return typeof n=="string"?n!=null&&n.startsWith("/")?n!=null&&n.startsWith("/files")?n:`/files${n}`:n!=null&&n.startsWith("files")?`/${n}`:n!=null&&n.startsWith("files")?`/${n}`:`/files/${n}`:n},_e=(r,n)=>{if(!r)return"";const o=dt(r),u=typeof r=="object"&&"pathname"in r?`${r.origin}${o}`:r;return typeof n=="number"?`${u.replace("/files",`/thumbs/${n}`)}`:u},vt=()=>{const{apiURL:r}=h.useContext(J);return{dateAdapter:me,distanceAdapter:ge,filePathAdapter:(o,u)=>_e(r&&typeof o=="string"?{origin:r,pathname:o}:o,u)}},pt=r=>r.charAt(0).toUpperCase()+r.slice(1).toLowerCase(),mt=r=>{const u=r.split("/").filter(l=>l.length>0).map(l=>l.replace(/\${([^}]*)}/g,"$1").split(/[_-]/).map(c=>c.charAt(0).toUpperCase()+c.slice(1)).join("")).join("");return u.charAt(0).toLowerCase()+u.slice(1)},gt=(r,n,o)=>{const u=mt(n),l=pt(o);return`${u}${l}`},_t=r=>{if(r)return(r==null?void 0:r.reduce((n,o)=>(n[o]={query:{useInfinite:!0,useInfiniteQueryParam:"offset",useQuery:!0}},n),{}))||{}},ht=r=>{const{input:n="./openapi.json",operationsToGenerateInfiniteQueryHook:o=void 0}=r||{};return{api:{hooks:{afterAllFilesWrite:"prettier src/api/ --write"},input:n,output:{client:"react-query",mode:"tags-split",override:{header:u=>["Generated by orval 🍺",...u.title?[u.title]:[],...u.description?[u.description]:[]],mutator:{name:"axiosCustomInstance",path:`${__dirname}/config/orval/mutator/axiosCustomInstance.ts`},operationName:gt,...(o==null?void 0:o.length)&&{operations:_t(o)},query:{useQuery:!0}},schemas:"src/api/model",target:"src/api/services/api.ts"}}}};var yt={exports:{}};(function(r,n){(function(o,u){r.exports=u()})(ee,function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(o){var u=["th","st","nd","rd"],l=o%100;return"["+o+(u[(l-20)%10]||u[l]||u[0])+"]"}}})})(yt);const he=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var bt={exports:{}};(function(r,n){(function(o,u){r.exports=u(N)})(ee,function(o){function u(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var l=u(o),g={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(a){return""+a+(a===1?"er":"")}};return l.default.locale(g,null,!0),g})})(bt);const Et=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));p.AxiosConfig=et,p.DaysJSConfig=ut,p.GTMSendPageView=Ze,p.I18nConfig=tt,p.InjectDependenciesContext=J,p.InjectDependenciesProvider=Qe,p.MapBoxConfig=at,p.MaskTextField=nt,p.QueryClientConfigProvider=st,p.RequireAuth=Xe,p.SentryConfig=rt,p.dateAdapter=me,p.distanceAdapter=ge,p.getOrvalConfig=ht,p.useAdapter=vt,p.useAuth=ft,p.useInfiniteDataGrid=lt,p.useResponseError=ct,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})});
|