@tracktor/shared-module 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -2
- package/dist/components/Utils/MapBoxConfig.d.ts +1 -1
- package/dist/{en-gK0dFos9.js → en-QMoq2Jc6.js} +1 -1
- package/dist/{fr-tYyGRO0d.js → fr-sayL6zEF.js} +1 -1
- package/dist/{main-n8Gmn2zo.js → main-eBEbA18Y.js} +231 -205
- package/dist/main.js +1 -1
- package/dist/main.umd.cjs +10 -10
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
import Ie, { useState as
|
|
2
|
-
import
|
|
3
|
-
import { useLocation as
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import * as ae from "@sentry/react";
|
|
9
|
-
import Le from "mapbox-gl";
|
|
1
|
+
import Ie, { useState as Ne, useRef as Cr, useLayoutEffect as We, Suspense as Tr, useEffect as X, createContext as Sr, useMemo as ue, useContext as Ve, useCallback as ie } from "react";
|
|
2
|
+
import M from "axios";
|
|
3
|
+
import { useLocation as le, Navigate as $e, Outlet as Ue, createRoutesFromChildren as wr, matchRoutes as xr, useNavigationType as Or } from "react-router-dom";
|
|
4
|
+
import I, { t as jr } from "i18next";
|
|
5
|
+
import Pr from "i18next-browser-languagedetector";
|
|
6
|
+
import { initReactI18next as Ar } from "react-i18next";
|
|
7
|
+
import * as oe from "@sentry/react";
|
|
10
8
|
import z from "dayjs";
|
|
11
|
-
import { QueryClient as
|
|
9
|
+
import { QueryClient as kr, QueryClientProvider as Dr } from "@tanstack/react-query";
|
|
12
10
|
var Mr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
13
|
-
function
|
|
11
|
+
function $r(t) {
|
|
14
12
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
15
13
|
}
|
|
16
|
-
var
|
|
14
|
+
var se = { exports: {} }, V = {};
|
|
17
15
|
/**
|
|
18
16
|
* @license React
|
|
19
17
|
* react-jsx-runtime.development.js
|
|
@@ -23,10 +21,10 @@ var ie = { exports: {} }, V = {};
|
|
|
23
21
|
* This source code is licensed under the MIT license found in the
|
|
24
22
|
* LICENSE file in the root directory of this source tree.
|
|
25
23
|
*/
|
|
26
|
-
var
|
|
27
|
-
function
|
|
28
|
-
return
|
|
29
|
-
var t = Ie, n = Symbol.for("react.element"), i = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), T = Symbol.for("react.lazy"),
|
|
24
|
+
var Le;
|
|
25
|
+
function Lr() {
|
|
26
|
+
return Le || (Le = 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"), v = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), O = Symbol.for("react.offscreen"), j = Symbol.iterator, w = "@@iterator";
|
|
30
28
|
function R(e) {
|
|
31
29
|
if (e === null || typeof e != "object")
|
|
32
30
|
return null;
|
|
@@ -38,10 +36,10 @@ function Yr() {
|
|
|
38
36
|
{
|
|
39
37
|
for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), u = 1; u < r; u++)
|
|
40
38
|
a[u - 1] = arguments[u];
|
|
41
|
-
|
|
39
|
+
L("error", e, a);
|
|
42
40
|
}
|
|
43
41
|
}
|
|
44
|
-
function
|
|
42
|
+
function L(e, r, a) {
|
|
45
43
|
{
|
|
46
44
|
var u = D.ReactDebugCurrentFrame, p = u.getStackAddendum();
|
|
47
45
|
p !== "" && (r += "%s", a = a.concat([p]));
|
|
@@ -51,14 +49,14 @@ function Yr() {
|
|
|
51
49
|
m.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, m);
|
|
52
50
|
}
|
|
53
51
|
}
|
|
54
|
-
var
|
|
55
|
-
|
|
52
|
+
var Be = !1, Ge = !1, qe = !1, Je = !1, He = !1, fe;
|
|
53
|
+
fe = Symbol.for("react.module.reference");
|
|
56
54
|
function Xe(e) {
|
|
57
|
-
return !!(typeof e == "string" || typeof e == "function" || e === s || e === y || He || e === v || e === g || e === h || Je || e ===
|
|
55
|
+
return !!(typeof e == "string" || typeof e == "function" || e === s || e === y || He || e === v || e === g || e === h || Je || e === O || Be || Ge || qe || 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
|
|
58
56
|
// types supported by any Flight configuration anywhere since
|
|
59
57
|
// we don't know which Flight build this will end up being used
|
|
60
58
|
// with.
|
|
61
|
-
e.$$typeof ===
|
|
59
|
+
e.$$typeof === fe || e.getModuleId !== void 0));
|
|
62
60
|
}
|
|
63
61
|
function Ke(e, r, a) {
|
|
64
62
|
var u = e.displayName;
|
|
@@ -67,7 +65,7 @@ function Yr() {
|
|
|
67
65
|
var p = r.displayName || r.name || "";
|
|
68
66
|
return p !== "" ? a + "(" + p + ")" : a;
|
|
69
67
|
}
|
|
70
|
-
function
|
|
68
|
+
function de(e) {
|
|
71
69
|
return e.displayName || "Context";
|
|
72
70
|
}
|
|
73
71
|
function P(e) {
|
|
@@ -95,10 +93,10 @@ function Yr() {
|
|
|
95
93
|
switch (e.$$typeof) {
|
|
96
94
|
case c:
|
|
97
95
|
var r = e;
|
|
98
|
-
return
|
|
96
|
+
return de(r) + ".Consumer";
|
|
99
97
|
case o:
|
|
100
98
|
var a = e;
|
|
101
|
-
return
|
|
99
|
+
return de(a._context) + ".Provider";
|
|
102
100
|
case l:
|
|
103
101
|
return Ke(e, e.render, "ForwardRef");
|
|
104
102
|
case C:
|
|
@@ -115,18 +113,18 @@ function Yr() {
|
|
|
115
113
|
}
|
|
116
114
|
return null;
|
|
117
115
|
}
|
|
118
|
-
var
|
|
119
|
-
function
|
|
116
|
+
var $ = Object.assign, N = 0, pe, ve, me, ge, he, ye, be;
|
|
117
|
+
function Ee() {
|
|
120
118
|
}
|
|
121
|
-
|
|
119
|
+
Ee.__reactDisabledLog = !0;
|
|
122
120
|
function Ze() {
|
|
123
121
|
{
|
|
124
122
|
if (N === 0) {
|
|
125
|
-
|
|
123
|
+
pe = console.log, ve = console.info, me = console.warn, ge = console.error, he = console.group, ye = console.groupCollapsed, be = console.groupEnd;
|
|
126
124
|
var e = {
|
|
127
125
|
configurable: !0,
|
|
128
126
|
enumerable: !0,
|
|
129
|
-
value:
|
|
127
|
+
value: Ee,
|
|
130
128
|
writable: !0
|
|
131
129
|
};
|
|
132
130
|
Object.defineProperties(console, {
|
|
@@ -151,65 +149,65 @@ function Yr() {
|
|
|
151
149
|
writable: !0
|
|
152
150
|
};
|
|
153
151
|
Object.defineProperties(console, {
|
|
154
|
-
log:
|
|
155
|
-
value: de
|
|
156
|
-
}),
|
|
157
|
-
info: L({}, e, {
|
|
152
|
+
log: $({}, e, {
|
|
158
153
|
value: pe
|
|
159
154
|
}),
|
|
160
|
-
|
|
155
|
+
info: $({}, e, {
|
|
161
156
|
value: ve
|
|
162
157
|
}),
|
|
163
|
-
|
|
158
|
+
warn: $({}, e, {
|
|
164
159
|
value: me
|
|
165
160
|
}),
|
|
166
|
-
|
|
161
|
+
error: $({}, e, {
|
|
167
162
|
value: ge
|
|
168
163
|
}),
|
|
169
|
-
|
|
164
|
+
group: $({}, e, {
|
|
170
165
|
value: he
|
|
171
166
|
}),
|
|
172
|
-
|
|
167
|
+
groupCollapsed: $({}, e, {
|
|
173
168
|
value: ye
|
|
169
|
+
}),
|
|
170
|
+
groupEnd: $({}, e, {
|
|
171
|
+
value: be
|
|
174
172
|
})
|
|
175
173
|
});
|
|
176
174
|
}
|
|
177
175
|
N < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
178
176
|
}
|
|
179
177
|
}
|
|
180
|
-
var
|
|
181
|
-
function
|
|
178
|
+
var K = D.ReactCurrentDispatcher, Z;
|
|
179
|
+
function B(e, r, a) {
|
|
182
180
|
{
|
|
183
|
-
if (
|
|
181
|
+
if (Z === void 0)
|
|
184
182
|
try {
|
|
185
183
|
throw Error();
|
|
186
184
|
} catch (p) {
|
|
187
185
|
var u = p.stack.trim().match(/\n( *(at )?)/);
|
|
188
|
-
|
|
186
|
+
Z = u && u[1] || "";
|
|
189
187
|
}
|
|
190
188
|
return `
|
|
191
|
-
` +
|
|
189
|
+
` + Z + e;
|
|
192
190
|
}
|
|
193
191
|
}
|
|
194
|
-
var
|
|
192
|
+
var Q = !1, G;
|
|
195
193
|
{
|
|
196
194
|
var er = typeof WeakMap == "function" ? WeakMap : Map;
|
|
197
|
-
|
|
195
|
+
G = new er();
|
|
198
196
|
}
|
|
199
|
-
function
|
|
200
|
-
if (!e ||
|
|
197
|
+
function Re(e, r) {
|
|
198
|
+
if (!e || Q)
|
|
201
199
|
return "";
|
|
202
200
|
{
|
|
203
|
-
var a =
|
|
201
|
+
var a = G.get(e);
|
|
204
202
|
if (a !== void 0)
|
|
205
203
|
return a;
|
|
206
204
|
}
|
|
207
205
|
var u;
|
|
208
|
-
|
|
206
|
+
Q = !0;
|
|
209
207
|
var p = Error.prepareStackTrace;
|
|
210
208
|
Error.prepareStackTrace = void 0;
|
|
211
209
|
var m;
|
|
212
|
-
m =
|
|
210
|
+
m = K.current, K.current = null, Ze();
|
|
213
211
|
try {
|
|
214
212
|
if (r) {
|
|
215
213
|
var d = function() {
|
|
@@ -253,63 +251,63 @@ function Yr() {
|
|
|
253
251
|
if (b !== 1 || E !== 1)
|
|
254
252
|
do
|
|
255
253
|
if (b--, E--, E < 0 || f[b] !== S[E]) {
|
|
256
|
-
var
|
|
254
|
+
var x = `
|
|
257
255
|
` + f[b].replace(" at new ", " at ");
|
|
258
|
-
return e.displayName &&
|
|
256
|
+
return e.displayName && x.includes("<anonymous>") && (x = x.replace("<anonymous>", e.displayName)), typeof e == "function" && G.set(e, x), x;
|
|
259
257
|
}
|
|
260
258
|
while (b >= 1 && E >= 0);
|
|
261
259
|
break;
|
|
262
260
|
}
|
|
263
261
|
}
|
|
264
262
|
} finally {
|
|
265
|
-
|
|
263
|
+
Q = !1, K.current = m, Qe(), Error.prepareStackTrace = p;
|
|
266
264
|
}
|
|
267
|
-
var Y = e ? e.displayName || e.name : "",
|
|
268
|
-
return typeof e == "function" &&
|
|
265
|
+
var Y = e ? e.displayName || e.name : "", Me = Y ? B(Y) : "";
|
|
266
|
+
return typeof e == "function" && G.set(e, Me), Me;
|
|
269
267
|
}
|
|
270
268
|
function rr(e, r, a) {
|
|
271
|
-
return
|
|
269
|
+
return Re(e, !1);
|
|
272
270
|
}
|
|
273
271
|
function tr(e) {
|
|
274
272
|
var r = e.prototype;
|
|
275
273
|
return !!(r && r.isReactComponent);
|
|
276
274
|
}
|
|
277
|
-
function
|
|
275
|
+
function q(e, r, a) {
|
|
278
276
|
if (e == null)
|
|
279
277
|
return "";
|
|
280
278
|
if (typeof e == "function")
|
|
281
|
-
return
|
|
279
|
+
return Re(e, tr(e));
|
|
282
280
|
if (typeof e == "string")
|
|
283
|
-
return
|
|
281
|
+
return B(e);
|
|
284
282
|
switch (e) {
|
|
285
283
|
case g:
|
|
286
|
-
return
|
|
284
|
+
return B("Suspense");
|
|
287
285
|
case h:
|
|
288
|
-
return
|
|
286
|
+
return B("SuspenseList");
|
|
289
287
|
}
|
|
290
288
|
if (typeof e == "object")
|
|
291
289
|
switch (e.$$typeof) {
|
|
292
290
|
case l:
|
|
293
291
|
return rr(e.render);
|
|
294
292
|
case C:
|
|
295
|
-
return
|
|
293
|
+
return q(e.type, r, a);
|
|
296
294
|
case T: {
|
|
297
295
|
var u = e, p = u._payload, m = u._init;
|
|
298
296
|
try {
|
|
299
|
-
return
|
|
297
|
+
return q(m(p), r, a);
|
|
300
298
|
} catch {
|
|
301
299
|
}
|
|
302
300
|
}
|
|
303
301
|
}
|
|
304
302
|
return "";
|
|
305
303
|
}
|
|
306
|
-
var J = Object.prototype.hasOwnProperty,
|
|
304
|
+
var J = Object.prototype.hasOwnProperty, _e = {}, Ce = D.ReactDebugCurrentFrame;
|
|
307
305
|
function H(e) {
|
|
308
306
|
if (e) {
|
|
309
|
-
var r = e._owner, a =
|
|
310
|
-
|
|
307
|
+
var r = e._owner, a = q(e.type, e._source, r ? r.type : null);
|
|
308
|
+
Ce.setExtraStackFrame(a);
|
|
311
309
|
} else
|
|
312
|
-
|
|
310
|
+
Ce.setExtraStackFrame(null);
|
|
313
311
|
}
|
|
314
312
|
function nr(e, r, a, u, p) {
|
|
315
313
|
{
|
|
@@ -326,12 +324,12 @@ function Yr() {
|
|
|
326
324
|
} catch (b) {
|
|
327
325
|
f = b;
|
|
328
326
|
}
|
|
329
|
-
f && !(f instanceof Error) && (H(p), _("%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
|
|
327
|
+
f && !(f instanceof Error) && (H(p), _("%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(p), _("Failed %s type: %s", a, f.message), H(null));
|
|
330
328
|
}
|
|
331
329
|
}
|
|
332
330
|
}
|
|
333
331
|
var ar = Array.isArray;
|
|
334
|
-
function
|
|
332
|
+
function ee(e) {
|
|
335
333
|
return ar(e);
|
|
336
334
|
}
|
|
337
335
|
function or(e) {
|
|
@@ -342,25 +340,25 @@ function Yr() {
|
|
|
342
340
|
}
|
|
343
341
|
function ir(e) {
|
|
344
342
|
try {
|
|
345
|
-
return
|
|
343
|
+
return Te(e), !1;
|
|
346
344
|
} catch {
|
|
347
345
|
return !0;
|
|
348
346
|
}
|
|
349
347
|
}
|
|
350
|
-
function
|
|
348
|
+
function Te(e) {
|
|
351
349
|
return "" + e;
|
|
352
350
|
}
|
|
353
|
-
function
|
|
351
|
+
function Se(e) {
|
|
354
352
|
if (ir(e))
|
|
355
|
-
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", 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.", or(e)), Te(e);
|
|
356
354
|
}
|
|
357
355
|
var W = D.ReactCurrentOwner, sr = {
|
|
358
356
|
key: !0,
|
|
359
357
|
ref: !0,
|
|
360
358
|
__self: !0,
|
|
361
359
|
__source: !0
|
|
362
|
-
},
|
|
363
|
-
|
|
360
|
+
}, we, xe, re;
|
|
361
|
+
re = {};
|
|
364
362
|
function ur(e) {
|
|
365
363
|
if (J.call(e, "ref")) {
|
|
366
364
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
@@ -380,13 +378,13 @@ function Yr() {
|
|
|
380
378
|
function cr(e, r) {
|
|
381
379
|
if (typeof e.ref == "string" && W.current && r && W.current.stateNode !== r) {
|
|
382
380
|
var a = P(W.current.type);
|
|
383
|
-
|
|
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', P(W.current.type), e.ref), re[a] = !0);
|
|
384
382
|
}
|
|
385
383
|
}
|
|
386
384
|
function fr(e, r) {
|
|
387
385
|
{
|
|
388
386
|
var a = function() {
|
|
389
|
-
|
|
387
|
+
we || (we = !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));
|
|
390
388
|
};
|
|
391
389
|
a.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
392
390
|
get: a,
|
|
@@ -397,7 +395,7 @@ function Yr() {
|
|
|
397
395
|
function dr(e, r) {
|
|
398
396
|
{
|
|
399
397
|
var a = function() {
|
|
400
|
-
|
|
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));
|
|
401
399
|
};
|
|
402
400
|
a.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
403
401
|
get: a,
|
|
@@ -437,7 +435,7 @@ function Yr() {
|
|
|
437
435
|
function vr(e, r, a, u, p) {
|
|
438
436
|
{
|
|
439
437
|
var m, d = {}, f = null, S = null;
|
|
440
|
-
a !== void 0 && (
|
|
438
|
+
a !== void 0 && (Se(a), f = "" + a), lr(r) && (Se(r.key), f = "" + r.key), ur(r) && (S = r.ref, cr(r, p));
|
|
441
439
|
for (m in r)
|
|
442
440
|
J.call(r, m) && !sr.hasOwnProperty(m) && (d[m] = r[m]);
|
|
443
441
|
if (e && e.defaultProps) {
|
|
@@ -452,23 +450,23 @@ function Yr() {
|
|
|
452
450
|
return pr(e, f, S, p, u, W.current, d);
|
|
453
451
|
}
|
|
454
452
|
}
|
|
455
|
-
var
|
|
453
|
+
var te = D.ReactCurrentOwner, Oe = D.ReactDebugCurrentFrame;
|
|
456
454
|
function F(e) {
|
|
457
455
|
if (e) {
|
|
458
|
-
var r = e._owner, a =
|
|
456
|
+
var r = e._owner, a = q(e.type, e._source, r ? r.type : null);
|
|
459
457
|
Oe.setExtraStackFrame(a);
|
|
460
458
|
} else
|
|
461
459
|
Oe.setExtraStackFrame(null);
|
|
462
460
|
}
|
|
463
|
-
var
|
|
464
|
-
|
|
465
|
-
function
|
|
461
|
+
var ne;
|
|
462
|
+
ne = !1;
|
|
463
|
+
function ae(e) {
|
|
466
464
|
return typeof e == "object" && e !== null && e.$$typeof === n;
|
|
467
465
|
}
|
|
468
|
-
function
|
|
466
|
+
function je() {
|
|
469
467
|
{
|
|
470
|
-
if (
|
|
471
|
-
var e = P(
|
|
468
|
+
if (te.current) {
|
|
469
|
+
var e = P(te.current.type);
|
|
472
470
|
if (e)
|
|
473
471
|
return `
|
|
474
472
|
|
|
@@ -488,10 +486,10 @@ Check your code at ` + r + ":" + a + ".";
|
|
|
488
486
|
return "";
|
|
489
487
|
}
|
|
490
488
|
}
|
|
491
|
-
var
|
|
489
|
+
var Pe = {};
|
|
492
490
|
function gr(e) {
|
|
493
491
|
{
|
|
494
|
-
var r =
|
|
492
|
+
var r = je();
|
|
495
493
|
if (!r) {
|
|
496
494
|
var a = typeof e == "string" ? e : e.displayName || e.name;
|
|
497
495
|
a && (r = `
|
|
@@ -501,35 +499,35 @@ Check the top-level render call using <` + a + ">.");
|
|
|
501
499
|
return r;
|
|
502
500
|
}
|
|
503
501
|
}
|
|
504
|
-
function
|
|
502
|
+
function Ae(e, r) {
|
|
505
503
|
{
|
|
506
504
|
if (!e._store || e._store.validated || e.key != null)
|
|
507
505
|
return;
|
|
508
506
|
e._store.validated = !0;
|
|
509
507
|
var a = gr(r);
|
|
510
|
-
if (
|
|
508
|
+
if (Pe[a])
|
|
511
509
|
return;
|
|
512
|
-
|
|
510
|
+
Pe[a] = !0;
|
|
513
511
|
var u = "";
|
|
514
|
-
e && e._owner && e._owner !==
|
|
512
|
+
e && e._owner && e._owner !== te.current && (u = " It was passed a child from " + P(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);
|
|
515
513
|
}
|
|
516
514
|
}
|
|
517
|
-
function
|
|
515
|
+
function ke(e, r) {
|
|
518
516
|
{
|
|
519
517
|
if (typeof e != "object")
|
|
520
518
|
return;
|
|
521
|
-
if (
|
|
519
|
+
if (ee(e))
|
|
522
520
|
for (var a = 0; a < e.length; a++) {
|
|
523
521
|
var u = e[a];
|
|
524
|
-
|
|
522
|
+
ae(u) && Ae(u, r);
|
|
525
523
|
}
|
|
526
|
-
else if (
|
|
524
|
+
else if (ae(e))
|
|
527
525
|
e._store && (e._store.validated = !0);
|
|
528
526
|
else if (e) {
|
|
529
527
|
var p = R(e);
|
|
530
528
|
if (typeof p == "function" && p !== e.entries)
|
|
531
529
|
for (var m = p.call(e), d; !(d = m.next()).done; )
|
|
532
|
-
|
|
530
|
+
ae(d.value) && Ae(d.value, r);
|
|
533
531
|
}
|
|
534
532
|
}
|
|
535
533
|
}
|
|
@@ -550,8 +548,8 @@ Check the top-level render call using <` + a + ">.");
|
|
|
550
548
|
if (a) {
|
|
551
549
|
var u = P(r);
|
|
552
550
|
nr(a, e.props, "prop", u, e);
|
|
553
|
-
} else if (r.PropTypes !== void 0 && !
|
|
554
|
-
|
|
551
|
+
} else if (r.PropTypes !== void 0 && !ne) {
|
|
552
|
+
ne = !0;
|
|
555
553
|
var p = P(r);
|
|
556
554
|
_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
|
|
557
555
|
}
|
|
@@ -570,41 +568,41 @@ Check the top-level render call using <` + a + ">.");
|
|
|
570
568
|
e.ref !== null && (F(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
|
|
571
569
|
}
|
|
572
570
|
}
|
|
573
|
-
function
|
|
571
|
+
function De(e, r, a, u, p, m) {
|
|
574
572
|
{
|
|
575
573
|
var d = Xe(e);
|
|
576
574
|
if (!d) {
|
|
577
575
|
var f = "";
|
|
578
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.");
|
|
579
577
|
var S = mr(p);
|
|
580
|
-
S ? f += S : f +=
|
|
578
|
+
S ? f += S : f += je();
|
|
581
579
|
var b;
|
|
582
|
-
e === null ? b = "null" :
|
|
580
|
+
e === null ? b = "null" : ee(e) ? b = "array" : e !== void 0 && e.$$typeof === n ? (b = "<" + (P(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);
|
|
583
581
|
}
|
|
584
582
|
var E = vr(e, r, a, p, m);
|
|
585
583
|
if (E == null)
|
|
586
584
|
return E;
|
|
587
585
|
if (d) {
|
|
588
|
-
var
|
|
589
|
-
if (
|
|
586
|
+
var x = r.children;
|
|
587
|
+
if (x !== void 0)
|
|
590
588
|
if (u)
|
|
591
|
-
if (
|
|
592
|
-
for (var Y = 0; Y <
|
|
593
|
-
|
|
594
|
-
Object.freeze && Object.freeze(
|
|
589
|
+
if (ee(x)) {
|
|
590
|
+
for (var Y = 0; Y < x.length; Y++)
|
|
591
|
+
ke(x[Y], e);
|
|
592
|
+
Object.freeze && Object.freeze(x);
|
|
595
593
|
} else
|
|
596
594
|
_("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
597
595
|
else
|
|
598
|
-
|
|
596
|
+
ke(x, e);
|
|
599
597
|
}
|
|
600
598
|
return e === s ? yr(E) : hr(E), E;
|
|
601
599
|
}
|
|
602
600
|
}
|
|
603
601
|
function br(e, r, a) {
|
|
604
|
-
return
|
|
602
|
+
return De(e, r, a, !0);
|
|
605
603
|
}
|
|
606
604
|
function Er(e, r, a) {
|
|
607
|
-
return
|
|
605
|
+
return De(e, r, a, !1);
|
|
608
606
|
}
|
|
609
607
|
var Rr = Er, _r = br;
|
|
610
608
|
V.Fragment = s, V.jsx = Rr, V.jsxs = _r;
|
|
@@ -621,75 +619,90 @@ var U = {};
|
|
|
621
619
|
* LICENSE file in the root directory of this source tree.
|
|
622
620
|
*/
|
|
623
621
|
var Fe;
|
|
624
|
-
function
|
|
622
|
+
function Fr() {
|
|
625
623
|
if (Fe)
|
|
626
624
|
return U;
|
|
627
625
|
Fe = 1;
|
|
628
626
|
var t = Ie, n = Symbol.for("react.element"), i = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, v = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
629
627
|
function o(c, l, g) {
|
|
630
|
-
var h, C = {}, T = null,
|
|
631
|
-
g !== void 0 && (T = "" + g), l.key !== void 0 && (T = "" + l.key), l.ref !== void 0 && (
|
|
628
|
+
var h, C = {}, T = null, O = null;
|
|
629
|
+
g !== void 0 && (T = "" + g), l.key !== void 0 && (T = "" + l.key), l.ref !== void 0 && (O = l.ref);
|
|
632
630
|
for (h in l)
|
|
633
631
|
s.call(l, h) && !y.hasOwnProperty(h) && (C[h] = l[h]);
|
|
634
632
|
if (c && c.defaultProps)
|
|
635
633
|
for (h in l = c.defaultProps, l)
|
|
636
634
|
C[h] === void 0 && (C[h] = l[h]);
|
|
637
|
-
return { $$typeof: n, type: c, key: T, ref:
|
|
635
|
+
return { $$typeof: n, type: c, key: T, ref: O, props: C, _owner: v.current };
|
|
638
636
|
}
|
|
639
637
|
return U.Fragment = i, U.jsx = o, U.jsxs = o, U;
|
|
640
638
|
}
|
|
641
|
-
process.env.NODE_ENV === "production" ?
|
|
642
|
-
var k =
|
|
643
|
-
const
|
|
639
|
+
process.env.NODE_ENV === "production" ? se.exports = Fr() : se.exports = Lr();
|
|
640
|
+
var k = se.exports;
|
|
641
|
+
const tt = ({
|
|
644
642
|
Fallback: t,
|
|
645
643
|
loginPath: n = "/login",
|
|
646
644
|
localStorageKey: i = "user",
|
|
647
645
|
redirect401Path: s = "/login",
|
|
648
646
|
isLogged: v
|
|
649
647
|
}) => {
|
|
650
|
-
var C, T,
|
|
651
|
-
const [y, o] =
|
|
652
|
-
return
|
|
648
|
+
var C, T, O, j;
|
|
649
|
+
const [y, o] = Ne(null), c = le(), l = Cr(!1), g = typeof v == "function" ? v() : !!v, h = typeof g == "boolean" ? g : g == null ? void 0 : g.isLogged;
|
|
650
|
+
return We(() => {
|
|
653
651
|
var w;
|
|
654
|
-
l.current || (l.current = !0, (w =
|
|
652
|
+
l.current || (l.current = !0, (w = M) == null || w.interceptors.response.use(
|
|
655
653
|
(R) => R,
|
|
656
654
|
async (R) => {
|
|
657
|
-
var
|
|
658
|
-
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 L;
|
|
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 && ((L = R == null ? void 0 : R.response) == null ? void 0 : L.status) === 401 && (M.defaults.headers.common.Authorization = null, localStorage.removeItem(i), o(s)), Promise.reject(R);
|
|
659
657
|
}
|
|
660
658
|
));
|
|
661
|
-
}, [i, s]), h && !y ? /* @__PURE__ */ k.jsx(
|
|
662
|
-
},
|
|
663
|
-
const
|
|
664
|
-
return
|
|
665
|
-
|
|
659
|
+
}, [i, s]), h && !y ? /* @__PURE__ */ k.jsx(Tr, { 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__ */ k.jsx($e, { to: c.state.from.state.from.pathname + c.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ k.jsx(Ue, {}) }) : /* @__PURE__ */ k.jsx($e, { to: n, state: { from: c }, replace: !0 });
|
|
660
|
+
}, Yr = () => {
|
|
661
|
+
const [t, n] = Ne();
|
|
662
|
+
return X(() => {
|
|
663
|
+
(async () => {
|
|
664
|
+
try {
|
|
665
|
+
const { useGoogleTagManager: s } = await import("@tracktor/react-google-tag-manager");
|
|
666
|
+
n(s);
|
|
667
|
+
} catch (s) {
|
|
668
|
+
console.error(s);
|
|
669
|
+
}
|
|
670
|
+
})().then();
|
|
671
|
+
}, []), t;
|
|
672
|
+
}, nt = () => {
|
|
673
|
+
const { pathname: t } = le(), n = Yr();
|
|
674
|
+
return X(() => {
|
|
675
|
+
if (n) {
|
|
676
|
+
const { sendEvent: i } = n();
|
|
677
|
+
i({ event: "pageView", pathname: t });
|
|
678
|
+
}
|
|
666
679
|
}, [t, n]), /* @__PURE__ */ k.jsx(Ue, {});
|
|
667
|
-
},
|
|
680
|
+
}, ce = Sr({
|
|
668
681
|
apiURL: void 0,
|
|
669
682
|
children: void 0
|
|
670
|
-
}),
|
|
671
|
-
const i =
|
|
683
|
+
}), at = ({ children: t, apiURL: n }) => {
|
|
684
|
+
const i = ue(
|
|
672
685
|
() => ({
|
|
673
686
|
apiURL: n
|
|
674
687
|
}),
|
|
675
688
|
[n]
|
|
676
689
|
);
|
|
677
|
-
return /* @__PURE__ */ k.jsx(
|
|
678
|
-
},
|
|
690
|
+
return /* @__PURE__ */ k.jsx(ce.Provider, { value: i, children: t });
|
|
691
|
+
}, ot = ({
|
|
679
692
|
tokenTypeKey: t = "tokenType",
|
|
680
693
|
userLocalStorageKey: n = "user",
|
|
681
694
|
tokenKey: i = "accessToken",
|
|
682
695
|
postContentType: s = "application/json",
|
|
683
696
|
...v
|
|
684
697
|
}) => {
|
|
685
|
-
const { apiURL: y = v.baseURL } = Ve(
|
|
686
|
-
if (
|
|
698
|
+
const { apiURL: y = v.baseURL } = Ve(ce);
|
|
699
|
+
if (!M.defaults)
|
|
687
700
|
return null;
|
|
688
701
|
const o = localStorage.getItem(n), c = o ? JSON.parse(o) : null, l = c != null && c[t] ? c[t] : null, g = c != null && c[i] ? c[i] : null, h = o ? `${l} ${g}` : null;
|
|
689
|
-
return
|
|
690
|
-
},
|
|
702
|
+
return M.defaults.baseURL = y, M.defaults.headers.post["Content-Type"] = s, h && (M.defaults.headers.common.Authorization = h), null;
|
|
703
|
+
}, it = ({ debug: t, resources: n }) => {
|
|
691
704
|
var i;
|
|
692
|
-
return (i = I) != null && i.isInitialized || (I.use(
|
|
705
|
+
return (i = I) != null && i.isInitialized || (I.use(Pr).use(Ar).init({
|
|
693
706
|
debug: t,
|
|
694
707
|
fallbackLng: "en",
|
|
695
708
|
interpolation: {
|
|
@@ -707,7 +720,7 @@ const ot = ({
|
|
|
707
720
|
}), I.on("languageChanged", (s) => {
|
|
708
721
|
document.documentElement.setAttribute("lang", s);
|
|
709
722
|
})), null;
|
|
710
|
-
},
|
|
723
|
+
}, st = ({
|
|
711
724
|
dsn: t,
|
|
712
725
|
integrations: n,
|
|
713
726
|
tracesSampleRate: i,
|
|
@@ -717,18 +730,18 @@ const ot = ({
|
|
|
717
730
|
ignoreErrors: o,
|
|
718
731
|
debug: c,
|
|
719
732
|
environment: l
|
|
720
|
-
}) => (
|
|
733
|
+
}) => (oe.isInitialized() || (c || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && oe.init({
|
|
721
734
|
debug: c,
|
|
722
735
|
dsn: t,
|
|
723
736
|
environment: l || "production",
|
|
724
737
|
ignoreErrors: [...o || [], /dynamically imported module/],
|
|
725
738
|
integrations: [
|
|
726
|
-
|
|
727
|
-
createRoutesFromChildren:
|
|
739
|
+
oe.reactRouterV6BrowserTracingIntegration({
|
|
740
|
+
createRoutesFromChildren: wr,
|
|
728
741
|
matchRoutes: xr,
|
|
729
|
-
useEffect:
|
|
730
|
-
useLocation:
|
|
731
|
-
useNavigationType:
|
|
742
|
+
useEffect: X,
|
|
743
|
+
useLocation: le,
|
|
744
|
+
useNavigationType: Or
|
|
732
745
|
}),
|
|
733
746
|
...n || []
|
|
734
747
|
],
|
|
@@ -736,14 +749,27 @@ const ot = ({
|
|
|
736
749
|
replaysSessionSampleRate: s || 0.1,
|
|
737
750
|
tracePropagationTargets: y,
|
|
738
751
|
tracesSampleRate: i || 1
|
|
739
|
-
}), null),
|
|
740
|
-
const i =
|
|
752
|
+
}), null), ut = ({ IMaskMixin: t, ...n }) => {
|
|
753
|
+
const i = ue(
|
|
741
754
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
742
755
|
() => t(({ TextField: s, ...v }) => /* @__PURE__ */ k.jsx(s, { ...v })),
|
|
743
756
|
[t]
|
|
744
757
|
);
|
|
745
758
|
return /* @__PURE__ */ k.jsx(i, { ...n });
|
|
746
|
-
},
|
|
759
|
+
}, lt = ({ accessToken: t }) => {
|
|
760
|
+
X(() => {
|
|
761
|
+
if (!t)
|
|
762
|
+
return;
|
|
763
|
+
(async () => {
|
|
764
|
+
try {
|
|
765
|
+
const i = await import("mapbox-gl");
|
|
766
|
+
i.accessToken = t;
|
|
767
|
+
} catch (i) {
|
|
768
|
+
console.error(i);
|
|
769
|
+
}
|
|
770
|
+
})().then();
|
|
771
|
+
}, [t]);
|
|
772
|
+
};
|
|
747
773
|
var ze = { exports: {} };
|
|
748
774
|
(function(t, n) {
|
|
749
775
|
(function(i, s) {
|
|
@@ -755,10 +781,10 @@ var ze = { exports: {} };
|
|
|
755
781
|
y.en.formats = i, o.format = function(l) {
|
|
756
782
|
l === void 0 && (l = "YYYY-MM-DDTHH:mm:ssZ");
|
|
757
783
|
var g = this.$locale().formats, h = function(C, T) {
|
|
758
|
-
return C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(
|
|
784
|
+
return C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(O, j, w) {
|
|
759
785
|
var R = w && w.toUpperCase();
|
|
760
|
-
return j || T[w] || i[w] || T[R].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(D, _,
|
|
761
|
-
return _ ||
|
|
786
|
+
return j || T[w] || i[w] || T[R].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(D, _, L) {
|
|
787
|
+
return _ || L.slice(1);
|
|
762
788
|
});
|
|
763
789
|
});
|
|
764
790
|
}(l, g === void 0 ? {} : g);
|
|
@@ -767,27 +793,27 @@ var ze = { exports: {} };
|
|
|
767
793
|
};
|
|
768
794
|
});
|
|
769
795
|
})(ze);
|
|
770
|
-
var
|
|
771
|
-
const
|
|
772
|
-
z.extend(
|
|
773
|
-
const
|
|
796
|
+
var Ir = ze.exports;
|
|
797
|
+
const Nr = /* @__PURE__ */ $r(Ir);
|
|
798
|
+
z.extend(Nr);
|
|
799
|
+
const ct = ({ language: t }) => (We(() => {
|
|
774
800
|
var i;
|
|
775
801
|
const n = t || ((i = navigator.language) == null ? void 0 : i.slice(0, 2)) || "en";
|
|
776
802
|
if (n === "en") {
|
|
777
|
-
import("./en-
|
|
803
|
+
import("./en-QMoq2Jc6.js").then((s) => s.e).then(() => {
|
|
778
804
|
z.locale(n);
|
|
779
805
|
});
|
|
780
806
|
return;
|
|
781
807
|
}
|
|
782
|
-
n === "fr" && import("./fr-
|
|
808
|
+
n === "fr" && import("./fr-sayL6zEF.js").then((s) => s.f).then(() => {
|
|
783
809
|
z.locale(n);
|
|
784
810
|
}).catch(() => {
|
|
785
|
-
import("./en-
|
|
811
|
+
import("./en-QMoq2Jc6.js").then((s) => s.e).then(() => {
|
|
786
812
|
z.locale("en");
|
|
787
813
|
});
|
|
788
814
|
});
|
|
789
|
-
}, [t]), null),
|
|
790
|
-
const s = new
|
|
815
|
+
}, [t]), null), ft = ({ children: t, defaultQueriesOptions: n, defaultMutationsOptions: i }) => {
|
|
816
|
+
const s = new kr({
|
|
791
817
|
defaultOptions: {
|
|
792
818
|
mutations: {
|
|
793
819
|
...i
|
|
@@ -800,22 +826,22 @@ const pt = ({ language: t }) => (Ne(() => {
|
|
|
800
826
|
}
|
|
801
827
|
}
|
|
802
828
|
});
|
|
803
|
-
return /* @__PURE__ */ k.jsx(
|
|
804
|
-
},
|
|
805
|
-
const { unknownErrorTranslationKey: n = "error.unknownError" } = t || {}, i =
|
|
829
|
+
return /* @__PURE__ */ k.jsx(Dr, { client: s, children: t });
|
|
830
|
+
}, dt = (t) => {
|
|
831
|
+
const { unknownErrorTranslationKey: n = "error.unknownError" } = t || {}, i = jr(n), s = ie(
|
|
806
832
|
(y) => {
|
|
807
|
-
var c, l, g, h, C, T,
|
|
833
|
+
var c, l, g, h, C, T, O, j, w;
|
|
808
834
|
const { response: o } = y || {};
|
|
809
|
-
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) : (h = (g = o == null ? void 0 : o.data) == null ? void 0 : g.detail) != null && h.length && Array.isArray((C = o == null ? void 0 : o.data) == null ? void 0 : C.detail) && ((
|
|
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) : (h = (g = o == null ? void 0 : o.data) == null ? void 0 : g.detail) != null && h.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 ((w = (j = o == null ? void 0 : o.data) == null ? void 0 : j.detail[0]) == null ? void 0 : w.msg) == "string" ? String(o.data.detail[0].msg) : i;
|
|
810
836
|
},
|
|
811
837
|
[i]
|
|
812
838
|
);
|
|
813
|
-
return { getErrorCode:
|
|
839
|
+
return { getErrorCode: ie((y) => {
|
|
814
840
|
var c, l, g;
|
|
815
841
|
const { response: o } = y || {};
|
|
816
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) : (g = o == null ? void 0 : o.data) != null && g.error_code ? String(o.data.error_code) : "unknown_error_code";
|
|
817
843
|
}, []), printError: s };
|
|
818
|
-
},
|
|
844
|
+
}, pt = ({
|
|
819
845
|
data: t,
|
|
820
846
|
fetchNextPage: n,
|
|
821
847
|
isFetchingNextPage: i,
|
|
@@ -823,12 +849,12 @@ const pt = ({ language: t }) => (Ne(() => {
|
|
|
823
849
|
isLoading: v,
|
|
824
850
|
enabled: y = !0
|
|
825
851
|
}) => {
|
|
826
|
-
const o =
|
|
852
|
+
const o = ie(
|
|
827
853
|
async (l) => {
|
|
828
854
|
i || !y || await n({ pageParam: (l == null ? void 0 : l.pageParam) || l.visibleRowsCount });
|
|
829
855
|
},
|
|
830
856
|
[y, n, i]
|
|
831
|
-
), c =
|
|
857
|
+
), c = ue(() => {
|
|
832
858
|
if (t)
|
|
833
859
|
return t.pages.reduce((l, g) => [...l, ...g], []);
|
|
834
860
|
}, [t]);
|
|
@@ -838,29 +864,29 @@ const pt = ({ language: t }) => (Ne(() => {
|
|
|
838
864
|
loadingVariant: s ? "skeleton" : "linear",
|
|
839
865
|
rows: c
|
|
840
866
|
};
|
|
841
|
-
},
|
|
867
|
+
}, vt = () => ({
|
|
842
868
|
clearAuthenticationToken: () => {
|
|
843
|
-
|
|
869
|
+
M.defaults.headers.common.Authorization = null;
|
|
844
870
|
},
|
|
845
871
|
setAuthenticationToken: ({ tokenType: i, accessToken: s }) => {
|
|
846
|
-
|
|
872
|
+
M.defaults.headers.common.Authorization = `${i} ${s}`;
|
|
847
873
|
}
|
|
848
|
-
}),
|
|
874
|
+
}), Wr = (t, n = "ll") => z(t).format(n), Vr = (t, n = "km") => {
|
|
849
875
|
const i = Number(t);
|
|
850
876
|
return Number.isNaN(i) ? `0 ${n}` : `${i.toFixed(2)} ${n}`;
|
|
851
|
-
},
|
|
877
|
+
}, Ur = (t) => {
|
|
852
878
|
const n = t && typeof t == "object" && "pathname" in t && t.pathname ? t.pathname : t;
|
|
853
879
|
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;
|
|
854
880
|
}, Ye = (t, n) => {
|
|
855
881
|
if (!t)
|
|
856
882
|
return "";
|
|
857
|
-
const i =
|
|
883
|
+
const i = Ur(t), s = typeof t == "object" && "pathname" in t ? `${t.origin}${i}` : t;
|
|
858
884
|
return typeof n == "number" ? `${s.replace("/files", `/thumbs/${n}`)}` : s;
|
|
859
|
-
},
|
|
860
|
-
const { apiURL: t } = Ve(
|
|
885
|
+
}, mt = () => {
|
|
886
|
+
const { apiURL: t } = Ve(ce);
|
|
861
887
|
return {
|
|
862
|
-
dateAdapter:
|
|
863
|
-
distanceAdapter:
|
|
888
|
+
dateAdapter: Wr,
|
|
889
|
+
distanceAdapter: Vr,
|
|
864
890
|
filePathAdapter: (i, s) => Ye(
|
|
865
891
|
t && typeof i == "string" ? {
|
|
866
892
|
origin: t,
|
|
@@ -869,13 +895,13 @@ const pt = ({ language: t }) => (Ne(() => {
|
|
|
869
895
|
s
|
|
870
896
|
)
|
|
871
897
|
};
|
|
872
|
-
},
|
|
898
|
+
}, zr = (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase(), Br = (t) => {
|
|
873
899
|
const s = t.split("/").filter((v) => v.length > 0).map((v) => v.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((l) => l.charAt(0).toUpperCase() + l.slice(1)).join("")).join("");
|
|
874
900
|
return s.charAt(0).toLowerCase() + s.slice(1);
|
|
875
901
|
}, Gr = (t, n, i) => {
|
|
876
|
-
const s = Br(n), v =
|
|
902
|
+
const s = Br(n), v = zr(i);
|
|
877
903
|
return `${s}${v}`;
|
|
878
|
-
},
|
|
904
|
+
}, qr = (t) => {
|
|
879
905
|
if (t)
|
|
880
906
|
return (t == null ? void 0 : t.reduce((n, i) => (n[i] = {
|
|
881
907
|
query: {
|
|
@@ -884,7 +910,7 @@ const pt = ({ language: t }) => (Ne(() => {
|
|
|
884
910
|
useQuery: !0
|
|
885
911
|
}
|
|
886
912
|
}, n), {})) || {};
|
|
887
|
-
},
|
|
913
|
+
}, gt = (t) => {
|
|
888
914
|
const { input: n = "./openapi.json", operationsToGenerateInfiniteQueryHook: i = void 0 } = t || {};
|
|
889
915
|
return {
|
|
890
916
|
api: {
|
|
@@ -906,7 +932,7 @@ const pt = ({ language: t }) => (Ne(() => {
|
|
|
906
932
|
path: `${__dirname}/config/orval/mutator/axiosCustomInstance.ts`
|
|
907
933
|
},
|
|
908
934
|
operationName: Gr,
|
|
909
|
-
...(i == null ? void 0 : i.length) && { operations:
|
|
935
|
+
...(i == null ? void 0 : i.length) && { operations: qr(i) },
|
|
910
936
|
query: {
|
|
911
937
|
useQuery: !0
|
|
912
938
|
}
|
|
@@ -918,23 +944,23 @@ const pt = ({ language: t }) => (Ne(() => {
|
|
|
918
944
|
};
|
|
919
945
|
};
|
|
920
946
|
export {
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
947
|
+
ot as A,
|
|
948
|
+
ct as D,
|
|
949
|
+
nt as G,
|
|
950
|
+
it as I,
|
|
951
|
+
ut as M,
|
|
952
|
+
ft as Q,
|
|
953
|
+
tt as R,
|
|
954
|
+
st as S,
|
|
955
|
+
lt as a,
|
|
956
|
+
at as b,
|
|
931
957
|
Mr as c,
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
958
|
+
pt as d,
|
|
959
|
+
vt as e,
|
|
960
|
+
mt as f,
|
|
961
|
+
gt as g,
|
|
962
|
+
Wr as h,
|
|
963
|
+
Vr as i,
|
|
964
|
+
ce as j,
|
|
965
|
+
dt as u
|
|
940
966
|
};
|
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-eBEbA18Y.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(v,_){typeof exports=="object"&&typeof module<"u"?_(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"],_):(v=typeof globalThis<"u"?globalThis:v||self,_(v["@tracktor/shared-module"]={},v.React,v.axios,v.reactRouterDom,v.i18n,v.LanguageDetector,v.reactI18next,v.Sentry,v.dayjs,v.reactQuery))})(this,function(v,_,M,x,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
|
|
10
|
-
`+ae+e}}var oe=!1,
|
|
11
|
-
`),
|
|
12
|
-
`),R=f.length-1,T=
|
|
13
|
-
`+f[R].replace(" at new "," at ");return e.displayName&&
|
|
9
|
+
*/var de;function $e(){return de||(de=1,process.env.NODE_ENV!=="production"&&function(){var r=_,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),A=Symbol.iterator,y="@@iterator";function H(e){if(e===null||typeof e!="object")return null;var t=A&&e[A]||e[y];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 g=i.map(function(d){return String(d)});g.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,g)}}var Rt=!1,Ct=!1,Tt=!1,St=!1,jt=!1,ye;ye=Symbol.for("react.module.reference");function wt(e){return!!(typeof e=="string"||typeof e=="function"||e===u||e===b||jt||e===p||e===h||e===E||St||e===P||Rt||Ct||Tt||typeof e=="object"&&e!==null&&(e.$$typeof===j||e.$$typeof===S||e.$$typeof===a||e.$$typeof===l||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 D(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 b:return"Profiler";case p:return"StrictMode";case h:return"Suspense";case E:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case l: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 S:var s=e.displayName||null;return s!==null?s:D(e.type)||"Memo";case j:{var m=e,g=m._payload,d=m._init;try{return D(d(g))}catch{return null}}}return null}var I=Object.assign,B=0,Ee,Re,Ce,Te,Se,je,we;function Oe(){}Oe.__reactDisabledLog=!0;function Pt(){{if(B===0){Ee=console.log,Re=console.info,Ce=console.warn,Te=console.error,Se=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:Te}),group:I({},e,{value:Se}),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 g;g=ne.current,ne.current=null,Pt();try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(Y){s=Y}Reflect.construct(e,[],d)}else{try{d.call()}catch(Y){s=Y}e.call(d.prototype)}}else{try{throw Error()}catch(Y){s=Y}e()}}catch(Y){if(Y&&s&&typeof Y.stack=="string"){for(var f=Y.stack.split(`
|
|
11
|
+
`),w=s.stack.split(`
|
|
12
|
+
`),R=f.length-1,T=w.length-1;R>=1&&T>=0&&f[R]!==w[T];)T--;for(;R>=1&&T>=0;R--,T--)if(f[R]!==w[T]){if(R!==1||T!==1)do if(R--,T--,T<0||f[R]!==w[T]){var O=`
|
|
13
|
+
`+f[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&&T>=0);break}}}finally{oe=!1,ne.current=g,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 h:return $("Suspense");case E:return $("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case c:return At(e.render);case S:return X(e.type,t,i);case j:{var s=e,m=s._payload,g=s._init;try{return X(g(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 g=Function.call.bind(K);for(var d in e)if(g(e,d)){var f=void 0;try{if(typeof e[d]!="function"){var w=Error((s||"React class")+": "+i+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw w.name="Invariant Violation",w}f=e[d](t,d,s,i,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(R){f=R}f&&!(f 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,d,typeof f),Z(null)),f instanceof Error&&!(f.message in Me)&&(Me[f.message]=!0,Z(m),C("Failed %s type: %s",i,f.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=D(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',D(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,g,d){var f={$$typeof:n,type:e,key:t,ref:i,props:d,_owner:g};return f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(f,"_self",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.defineProperty(f,"_source",{configurable:!1,enumerable:!1,writable:!1,value:m}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f};function Gt(e,t,i,s,m){{var g,d={},f=null,w=null;i!==void 0&&(ke(i),f=""+i),Wt(t)&&(ke(t.key),f=""+t.key),Nt(t)&&(w=t.ref,Vt(t,m));for(g in t)K.call(t,g)&&!It.hasOwnProperty(g)&&(d[g]=t[g]);if(e&&e.defaultProps){var R=e.defaultProps;for(g in R)d[g]===void 0&&(d[g]=R[g])}if(f||w){var T=typeof e=="function"?e.displayName||e.name||"Unknown":e;f&&zt(d,T),w&&Ut(d,T)}return Bt(e,f,w,m,s,G.current,d)}}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=D(se.current.type);if(e)return`
|
|
14
14
|
|
|
15
|
-
Check the render method of \``+e+"`."}return""}}function
|
|
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
|
-
Check your code at `+
|
|
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 <`+
|
|
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 "+D(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 g=m.call(e),d;!(d=g.next()).done;)le(d.value)&&Ne(d.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===S))i=t.propTypes;else return;if(i){var s=D(t);Lt(i,e.props,"prop",s,e)}else if(t.PropTypes!==void 0&&!ce){ce=!0;var m=D(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,g){{var d=wt(e);if(!d){var f="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(f+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var w=Jt(m);w?f+=w:f+=Fe();var R;e===null?R="null":ie(e)?R="array":e!==void 0&&e.$$typeof===n?(R="<"+(D(e.type)||"Unknown")+" />",f=" 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,f)}var T=Gt(e,t,i,m,g);if(T==null)return T;if(d){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(T):$t(T),T}}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 <`+o+">.")}return r}}function We(e,r){{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 pe;function Ke(){if(pe)return U;pe=1;var t=E,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,p=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,y={key:!0,ref:!0,__self:!0,__source:!0};function a(l,c,_){var b,S={},j=null,P=null;_!==void 0&&(j=""+_),c.key!==void 0&&(j=""+c.key),c.ref!==void 0&&(P=c.ref);for(b in c)u.call(c,b)&&!y.hasOwnProperty(b)&&(S[b]=c[b]);if(l&&l.defaultProps)for(b in c=l.defaultProps,c)S[b]===void 0&&(S[b]=c[b]);return{$$typeof:n,type:l,key:j,ref:P,props:S,_owner:p.current}}return U.Fragment=i,U.jsx=a,U.jsxs=a,U}process.env.NODE_ENV==="production"?re.exports=Ke():re.exports=Xe();var L=re.exports;const Ze=({Fallback:t,loginPath:n="/login",localStorageKey:i="user",redirect401Path:u="/login",isLogged:p})=>{var S,j,P,x;const[y,a]=E.useState(null),l=k.useLocation(),c=E.useRef(!1),_=typeof p=="function"?p():!!p,b=typeof _=="boolean"?_:_==null?void 0:_.isLogged;return E.useLayoutEffect(()=>{c.current||(c.current=!0,M==null||M.interceptors.response.use(h=>h,async h=>{var C;return typeof h=="object"&&h&&"response"in h&&h.response&&typeof h.response=="object"&&"status"in h.response&&h.response&&typeof h.response=="object"&&"status"in h.response&&((C=h==null?void 0:h.response)==null?void 0:C.status)===401&&(M.defaults.headers.common.Authorization=null,localStorage.removeItem(i),a(u)),Promise.reject(h)}))},[i,u]),b&&!y?L.jsx(E.Suspense,{fallback:t,children:(j=(S=l.state)==null?void 0:S.from)!=null&&j.state&&((x=(P=l.state)==null?void 0:P.from)==null?void 0:x.pathname)===n?L.jsx(k.Navigate,{to:l.state.from.state.from.pathname+l.state.from.state.from.search,replace:!0}):L.jsx(k.Outlet,{})}):L.jsx(k.Navigate,{to:n,state:{from:l},replace:!0})},Qe=()=>{const{pathname:t}=k.useLocation(),{sendEvent:n}=$e.useGoogleTagManager();return E.useEffect(()=>{n({event:"pageView",pathname:t})},[t,n]),L.jsx(k.Outlet,{})},G=E.createContext({apiURL:void 0,children:void 0}),er=({children:t,apiURL:n})=>{const i=E.useMemo(()=>({apiURL:n}),[n]);return L.jsx(G.Provider,{value:i,children:t})},rr=({tokenTypeKey:t="tokenType",userLocalStorageKey:n="user",tokenKey:i="accessToken",postContentType:u="application/json",...p})=>{const{apiURL:y=p.baseURL}=E.useContext(G);if(!M.defaults)return null;const a=localStorage.getItem(n),l=a?JSON.parse(a):null,c=l!=null&&l[t]?l[t]:null,_=l!=null&&l[i]?l[i]:null,b=a?`${c} ${_}`:null;return M.defaults.baseURL=y,M.defaults.headers.post["Content-Type"]=u,b&&(M.defaults.headers.common.Authorization=b),null},tr=({debug:t,resources:n})=>(A!=null&&A.isInitialized||(A.use(Be).use(Ge.initReactI18next).init({debug:t,fallbackLng:"en",interpolation:{escapeValue:!1},load:"languageOnly",react:{bindI18n:!1,useSuspense:!0},resources:n,returnNull:!1}).then(()=>{document.documentElement.lang!==A.resolvedLanguage&&A.resolvedLanguage&&document.documentElement.setAttribute("lang",A.resolvedLanguage)}),A.on("languageChanged",i=>{document.documentElement.setAttribute("lang",i)})),null),nr=({dsn:t,integrations:n,tracesSampleRate:i,replaysSessionSampleRate:u,replaysOnErrorSampleRate:p,tracePropagationTargets:y,ignoreErrors:a,debug:l,environment:c})=>(Q.isInitialized()||(l||process.env.NODE_ENV==="prod"||process.env.NODE_ENV==="production")&&Q.init({debug:l,dsn:t,environment:c||"production",ignoreErrors:[...a||[],/dynamically imported module/],integrations:[Q.reactRouterV6BrowserTracingIntegration({createRoutesFromChildren:k.createRoutesFromChildren,matchRoutes:k.matchRoutes,useEffect:E.useEffect,useLocation:k.useLocation,useNavigationType:k.useNavigationType}),...n||[]],replaysOnErrorSampleRate:p||1,replaysSessionSampleRate:u||.1,tracePropagationTargets:y,tracesSampleRate:i||1}),null),ar=({IMaskMixin:t,...n})=>{const i=E.useMemo(()=>t(({TextField:u,...p})=>L.jsx(u,{...p})),[t]);return L.jsx(i,{...n})},or=({accessToken:t})=>(fe&&t&&(fe.accessToken=t),null);var me={exports:{}};(function(t,n){(function(i,u){t.exports=u()})(ee,function(){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"};return function(u,p,y){var a=p.prototype,l=a.format;y.en.formats=i,a.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var _=this.$locale().formats,b=function(S,j){return S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(P,x,h){var J=h&&h.toUpperCase();return x||j[h]||i[h]||j[J].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(F,C,te){return C||te.slice(1)})})}(c,_===void 0?{}:_);return l.call(this,b)}}})})(me);var ir=me.exports;const ur=He(ir);N.extend(ur);const sr=({language:t})=>(E.useLayoutEffect(()=>{var i;const n=t||((i=navigator.language)==null?void 0:i.slice(0,2))||"en";if(n==="en"){Promise.resolve().then(()=>ye).then(()=>{N.locale(n)});return}n==="fr"&&Promise.resolve().then(()=>Rr).then(()=>{N.locale(n)}).catch(()=>{Promise.resolve().then(()=>ye).then(()=>{N.locale("en")})})},[t]),null),cr=({children:t,defaultQueriesOptions:n,defaultMutationsOptions:i})=>{const u=new de.QueryClient({defaultOptions:{mutations:{...i},queries:{getNextPageParam:(p,y,a)=>p.length+(a||0),refetchOnWindowFocus:!1,retry:3,...n}}});return L.jsx(de.QueryClientProvider,{client:u,children:t})},lr=t=>{const{unknownErrorTranslationKey:n="error.unknownError"}=t||{},i=A.t(n),u=E.useCallback(y=>{var l,c,_,b,S,j,P,x,h;const{response:a}=y||{};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):(b=(_=a==null?void 0:a.data)==null?void 0:_.detail)!=null&&b.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((h=(x=a==null?void 0:a.data)==null?void 0:x.detail[0])==null?void 0:h.msg)=="string"?String(a.data.detail[0].msg):i},[i]);return{getErrorCode:E.useCallback(y=>{var l,c,_;const{response:a}=y||{};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):(_=a==null?void 0:a.data)!=null&&_.error_code?String(a.data.error_code):"unknown_error_code"},[]),printError:u}},fr=({data:t,fetchNextPage:n,isFetchingNextPage:i,isInitialLoading:u,isLoading:p,enabled:y=!0})=>{const a=E.useCallback(async c=>{i||!y||await n({pageParam:(c==null?void 0:c.pageParam)||c.visibleRowsCount})},[y,n,i]),l=E.useMemo(()=>{if(t)return t.pages.reduce((c,_)=>[...c,..._],[])},[t]);return{fetchNextPageOnRowsScrollEnd:a,isLoading:i||p,loadingVariant:u?"skeleton":"linear",rows:l}},dr=()=>({clearAuthenticationToken:()=>{M.defaults.headers.common.Authorization=null},setAuthenticationToken:({tokenType:i,accessToken:u})=>{M.defaults.headers.common.Authorization=`${i} ${u}`}}),ge=(t,n="ll")=>N(t).format(n),_e=(t,n="km")=>{const i=Number(t);return Number.isNaN(i)?`0 ${n}`:`${i.toFixed(2)} ${n}`},vr=t=>{const n=t&&typeof t=="object"&&"pathname"in t&&t.pathname?t.pathname:t;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},he=(t,n)=>{if(!t)return"";const i=vr(t),u=typeof t=="object"&&"pathname"in t?`${t.origin}${i}`:t;return typeof n=="number"?`${u.replace("/files",`/thumbs/${n}`)}`:u},pr=()=>{const{apiURL:t}=E.useContext(G);return{dateAdapter:ge,distanceAdapter:_e,filePathAdapter:(i,u)=>he(t&&typeof i=="string"?{origin:t,pathname:i}:i,u)}},mr=t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase(),gr=t=>{const u=t.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)},_r=(t,n,i)=>{const u=gr(n),p=mr(i);return`${u}${p}`},hr=t=>{if(t)return(t==null?void 0:t.reduce((n,i)=>(n[i]={query:{useInfinite:!0,useInfiniteQueryParam:"offset",useQuery:!0}},n),{}))||{}},yr=t=>{const{input:n="./openapi.json",operationsToGenerateInfiniteQueryHook:i=void 0}=t||{};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:_r,...(i==null?void 0:i.length)&&{operations:hr(i)},query:{useQuery:!0}},schemas:"src/api/model",target:"src/api/services/api.ts"}}}};var br={exports:{}};(function(t,n){(function(i,u){t.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(i){var u=["th","st","nd","rd"],p=i%100;return"["+i+(u[(p-20)%10]||u[p]||u[0])+"]"}}})})(br);const ye=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var Er={exports:{}};(function(t,n){(function(i,u){t.exports=u(N)})(ee,function(i){function u(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var p=u(i),y={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(y,null,!0),y})})(Er);const Rr=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));d.AxiosConfig=rr,d.DaysJSConfig=sr,d.GTMSendPageView=Qe,d.I18nConfig=tr,d.InjectDependenciesContext=G,d.InjectDependenciesProvider=er,d.MapBoxConfig=or,d.MaskTextField=ar,d.QueryClientConfigProvider=cr,d.RequireAuth=Ze,d.SentryConfig=nr,d.dateAdapter=ge,d.distanceAdapter=_e,d.getOrvalConfig=yr,d.useAdapter=pr,d.useAuth=dr,d.useInfiniteDataGrid=fr,d.useResponseError=lr,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});
|
|
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"})});
|