@tracktor/shared-module 1.0.8 → 1.0.9
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
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import Ie, { useState as
|
|
1
|
+
import Ie, { useState as Rr, useRef as _r, useEffect as X, Suspense as Cr, createContext as Tr, useMemo as ue, useContext as Ne, useCallback as ie } from "react";
|
|
2
2
|
import $ from "axios";
|
|
3
|
-
import { useLocation as le, Navigate as Me, Outlet as We, createRoutesFromChildren as
|
|
3
|
+
import { useLocation as le, Navigate as Me, Outlet as We, createRoutesFromChildren as Sr, matchRoutes as wr, useNavigationType as Or } from "react-router-dom";
|
|
4
4
|
import { useGoogleTagManager as xr } from "@tracktor/react-google-tag-manager";
|
|
5
|
-
import
|
|
5
|
+
import I, { t as jr } from "i18next";
|
|
6
6
|
import Pr from "i18next-browser-languagedetector";
|
|
7
7
|
import { initReactI18next as Ar } from "react-i18next";
|
|
8
8
|
import * as oe from "@sentry/react";
|
|
9
9
|
import kr from "mapbox-gl";
|
|
10
|
-
import
|
|
10
|
+
import U from "dayjs";
|
|
11
11
|
import { QueryClient as Dr, QueryClientProvider as $r } from "@tanstack/react-query";
|
|
12
12
|
var Mr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
13
13
|
function Fr(t) {
|
|
14
14
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
15
15
|
}
|
|
16
|
-
var se = { exports: {} },
|
|
16
|
+
var se = { exports: {} }, V = {};
|
|
17
17
|
/**
|
|
18
18
|
* @license React
|
|
19
19
|
* react-jsx-runtime.development.js
|
|
@@ -26,25 +26,25 @@ var se = { exports: {} }, z = {};
|
|
|
26
26
|
var Fe;
|
|
27
27
|
function Lr() {
|
|
28
28
|
return Fe || (Fe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
29
|
-
var t = Ie, n = Symbol.for("react.element"), i = Symbol.for("react.portal"), s = Symbol.for("react.fragment"),
|
|
30
|
-
function
|
|
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"), x = Symbol.for("react.offscreen"), j = Symbol.iterator, w = "@@iterator";
|
|
30
|
+
function R(e) {
|
|
31
31
|
if (e === null || typeof e != "object")
|
|
32
32
|
return null;
|
|
33
|
-
var r = j && e[j] || e[
|
|
33
|
+
var r = j && e[j] || e[w];
|
|
34
34
|
return typeof r == "function" ? r : null;
|
|
35
35
|
}
|
|
36
36
|
var D = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
37
|
-
function
|
|
37
|
+
function _(e) {
|
|
38
38
|
{
|
|
39
39
|
for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), u = 1; u < r; u++)
|
|
40
40
|
a[u - 1] = arguments[u];
|
|
41
|
-
|
|
41
|
+
F("error", e, a);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function F(e, r, a) {
|
|
45
45
|
{
|
|
46
|
-
var u = D.ReactDebugCurrentFrame,
|
|
47
|
-
|
|
46
|
+
var u = D.ReactDebugCurrentFrame, p = u.getStackAddendum();
|
|
47
|
+
p !== "" && (r += "%s", a = a.concat([p]));
|
|
48
48
|
var m = a.map(function(d) {
|
|
49
49
|
return String(d);
|
|
50
50
|
});
|
|
@@ -54,7 +54,7 @@ function Lr() {
|
|
|
54
54
|
var ze = !1, Ue = !1, qe = !1, Be = !1, Ge = !1, fe;
|
|
55
55
|
fe = Symbol.for("react.module.reference");
|
|
56
56
|
function Je(e) {
|
|
57
|
-
return !!(typeof e == "string" || typeof e == "function" || e === s || e ===
|
|
57
|
+
return !!(typeof e == "string" || typeof e == "function" || e === s || e === y || Ge || e === v || e === g || e === h || Be || e === x || ze || Ue || 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
58
|
// types supported by any Flight configuration anywhere since
|
|
59
59
|
// we don't know which Flight build this will end up being used
|
|
60
60
|
// with.
|
|
@@ -64,8 +64,8 @@ function Lr() {
|
|
|
64
64
|
var u = e.displayName;
|
|
65
65
|
if (u)
|
|
66
66
|
return u;
|
|
67
|
-
var
|
|
68
|
-
return
|
|
67
|
+
var p = r.displayName || r.name || "";
|
|
68
|
+
return p !== "" ? a + "(" + p + ")" : a;
|
|
69
69
|
}
|
|
70
70
|
function de(e) {
|
|
71
71
|
return e.displayName || "Context";
|
|
@@ -73,7 +73,7 @@ function Lr() {
|
|
|
73
73
|
function P(e) {
|
|
74
74
|
if (e == null)
|
|
75
75
|
return null;
|
|
76
|
-
if (typeof e.tag == "number" &&
|
|
76
|
+
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")
|
|
77
77
|
return e.displayName || e.name || null;
|
|
78
78
|
if (typeof e == "string")
|
|
79
79
|
return e;
|
|
@@ -82,13 +82,13 @@ function Lr() {
|
|
|
82
82
|
return "Fragment";
|
|
83
83
|
case i:
|
|
84
84
|
return "Portal";
|
|
85
|
-
case
|
|
85
|
+
case y:
|
|
86
86
|
return "Profiler";
|
|
87
|
-
case
|
|
87
|
+
case v:
|
|
88
88
|
return "StrictMode";
|
|
89
89
|
case g:
|
|
90
90
|
return "Suspense";
|
|
91
|
-
case
|
|
91
|
+
case h:
|
|
92
92
|
return "SuspenseList";
|
|
93
93
|
}
|
|
94
94
|
if (typeof e == "object")
|
|
@@ -105,7 +105,7 @@ function Lr() {
|
|
|
105
105
|
var u = e.displayName || null;
|
|
106
106
|
return u !== null ? u : P(e.type) || "Memo";
|
|
107
107
|
case T: {
|
|
108
|
-
var
|
|
108
|
+
var p = e, m = p._payload, d = p._init;
|
|
109
109
|
try {
|
|
110
110
|
return P(d(m));
|
|
111
111
|
} catch {
|
|
@@ -115,14 +115,14 @@ function Lr() {
|
|
|
115
115
|
}
|
|
116
116
|
return null;
|
|
117
117
|
}
|
|
118
|
-
var
|
|
118
|
+
var M = Object.assign, N = 0, pe, ve, me, ge, he, ye, be;
|
|
119
119
|
function Ee() {
|
|
120
120
|
}
|
|
121
121
|
Ee.__reactDisabledLog = !0;
|
|
122
122
|
function Xe() {
|
|
123
123
|
{
|
|
124
|
-
if (
|
|
125
|
-
|
|
124
|
+
if (N === 0) {
|
|
125
|
+
pe = console.log, ve = console.info, me = console.warn, ge = console.error, he = console.group, ye = console.groupCollapsed, be = console.groupEnd;
|
|
126
126
|
var e = {
|
|
127
127
|
configurable: !0,
|
|
128
128
|
enumerable: !0,
|
|
@@ -139,77 +139,77 @@ function Lr() {
|
|
|
139
139
|
groupEnd: e
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
|
-
|
|
142
|
+
N++;
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function Ke() {
|
|
146
146
|
{
|
|
147
|
-
if (
|
|
147
|
+
if (N--, N === 0) {
|
|
148
148
|
var e = {
|
|
149
149
|
configurable: !0,
|
|
150
150
|
enumerable: !0,
|
|
151
151
|
writable: !0
|
|
152
152
|
};
|
|
153
153
|
Object.defineProperties(console, {
|
|
154
|
-
log:
|
|
155
|
-
value: ve
|
|
156
|
-
}),
|
|
157
|
-
info: F({}, e, {
|
|
154
|
+
log: M({}, e, {
|
|
158
155
|
value: pe
|
|
159
156
|
}),
|
|
160
|
-
|
|
157
|
+
info: M({}, e, {
|
|
158
|
+
value: ve
|
|
159
|
+
}),
|
|
160
|
+
warn: M({}, e, {
|
|
161
161
|
value: me
|
|
162
162
|
}),
|
|
163
|
-
error:
|
|
163
|
+
error: M({}, e, {
|
|
164
164
|
value: ge
|
|
165
165
|
}),
|
|
166
|
-
group:
|
|
166
|
+
group: M({}, e, {
|
|
167
167
|
value: he
|
|
168
168
|
}),
|
|
169
|
-
groupCollapsed:
|
|
169
|
+
groupCollapsed: M({}, e, {
|
|
170
170
|
value: ye
|
|
171
171
|
}),
|
|
172
|
-
groupEnd:
|
|
172
|
+
groupEnd: M({}, e, {
|
|
173
173
|
value: be
|
|
174
174
|
})
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
|
-
|
|
177
|
+
N < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
-
var
|
|
181
|
-
function
|
|
180
|
+
var K = D.ReactCurrentDispatcher, Z;
|
|
181
|
+
function q(e, r, a) {
|
|
182
182
|
{
|
|
183
|
-
if (
|
|
183
|
+
if (Z === void 0)
|
|
184
184
|
try {
|
|
185
185
|
throw Error();
|
|
186
|
-
} catch (
|
|
187
|
-
var u =
|
|
188
|
-
|
|
186
|
+
} catch (p) {
|
|
187
|
+
var u = p.stack.trim().match(/\n( *(at )?)/);
|
|
188
|
+
Z = u && u[1] || "";
|
|
189
189
|
}
|
|
190
190
|
return `
|
|
191
|
-
` +
|
|
191
|
+
` + Z + e;
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
var
|
|
194
|
+
var Q = !1, B;
|
|
195
195
|
{
|
|
196
|
-
var
|
|
197
|
-
|
|
196
|
+
var Ze = typeof WeakMap == "function" ? WeakMap : Map;
|
|
197
|
+
B = new Ze();
|
|
198
198
|
}
|
|
199
|
-
function
|
|
200
|
-
if (!e ||
|
|
199
|
+
function Re(e, r) {
|
|
200
|
+
if (!e || Q)
|
|
201
201
|
return "";
|
|
202
202
|
{
|
|
203
|
-
var a =
|
|
203
|
+
var a = B.get(e);
|
|
204
204
|
if (a !== void 0)
|
|
205
205
|
return a;
|
|
206
206
|
}
|
|
207
207
|
var u;
|
|
208
|
-
|
|
209
|
-
var
|
|
208
|
+
Q = !0;
|
|
209
|
+
var p = Error.prepareStackTrace;
|
|
210
210
|
Error.prepareStackTrace = void 0;
|
|
211
211
|
var m;
|
|
212
|
-
m =
|
|
212
|
+
m = K.current, K.current = null, Xe();
|
|
213
213
|
try {
|
|
214
214
|
if (r) {
|
|
215
215
|
var d = function() {
|
|
@@ -245,88 +245,88 @@ function Lr() {
|
|
|
245
245
|
} catch (A) {
|
|
246
246
|
if (A && u && typeof A.stack == "string") {
|
|
247
247
|
for (var f = A.stack.split(`
|
|
248
|
-
`),
|
|
249
|
-
`), b = f.length - 1, E =
|
|
248
|
+
`), S = u.stack.split(`
|
|
249
|
+
`), b = f.length - 1, E = S.length - 1; b >= 1 && E >= 0 && f[b] !== S[E]; )
|
|
250
250
|
E--;
|
|
251
251
|
for (; b >= 1 && E >= 0; b--, E--)
|
|
252
|
-
if (f[b] !==
|
|
252
|
+
if (f[b] !== S[E]) {
|
|
253
253
|
if (b !== 1 || E !== 1)
|
|
254
254
|
do
|
|
255
|
-
if (b--, E--, E < 0 || f[b] !==
|
|
255
|
+
if (b--, E--, E < 0 || f[b] !== S[E]) {
|
|
256
256
|
var O = `
|
|
257
257
|
` + f[b].replace(" at new ", " at ");
|
|
258
|
-
return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" &&
|
|
258
|
+
return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && B.set(e, O), O;
|
|
259
259
|
}
|
|
260
260
|
while (b >= 1 && E >= 0);
|
|
261
261
|
break;
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
264
|
} finally {
|
|
265
|
-
|
|
265
|
+
Q = !1, K.current = m, Ke(), Error.prepareStackTrace = p;
|
|
266
266
|
}
|
|
267
|
-
var
|
|
268
|
-
return typeof e == "function" &&
|
|
267
|
+
var Y = e ? e.displayName || e.name : "", $e = Y ? q(Y) : "";
|
|
268
|
+
return typeof e == "function" && B.set(e, $e), $e;
|
|
269
269
|
}
|
|
270
|
-
function
|
|
271
|
-
return
|
|
270
|
+
function Qe(e, r, a) {
|
|
271
|
+
return Re(e, !1);
|
|
272
272
|
}
|
|
273
273
|
function er(e) {
|
|
274
274
|
var r = e.prototype;
|
|
275
275
|
return !!(r && r.isReactComponent);
|
|
276
276
|
}
|
|
277
|
-
function
|
|
277
|
+
function G(e, r, a) {
|
|
278
278
|
if (e == null)
|
|
279
279
|
return "";
|
|
280
280
|
if (typeof e == "function")
|
|
281
|
-
return
|
|
281
|
+
return Re(e, er(e));
|
|
282
282
|
if (typeof e == "string")
|
|
283
|
-
return
|
|
283
|
+
return q(e);
|
|
284
284
|
switch (e) {
|
|
285
285
|
case g:
|
|
286
|
-
return
|
|
287
|
-
case
|
|
288
|
-
return
|
|
286
|
+
return q("Suspense");
|
|
287
|
+
case h:
|
|
288
|
+
return q("SuspenseList");
|
|
289
289
|
}
|
|
290
290
|
if (typeof e == "object")
|
|
291
291
|
switch (e.$$typeof) {
|
|
292
292
|
case l:
|
|
293
|
-
return
|
|
293
|
+
return Qe(e.render);
|
|
294
294
|
case C:
|
|
295
|
-
return
|
|
295
|
+
return G(e.type, r, a);
|
|
296
296
|
case T: {
|
|
297
|
-
var u = e,
|
|
297
|
+
var u = e, p = u._payload, m = u._init;
|
|
298
298
|
try {
|
|
299
|
-
return
|
|
299
|
+
return G(m(p), r, a);
|
|
300
300
|
} catch {
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
304
|
return "";
|
|
305
305
|
}
|
|
306
|
-
var
|
|
307
|
-
function
|
|
306
|
+
var J = Object.prototype.hasOwnProperty, _e = {}, Ce = D.ReactDebugCurrentFrame;
|
|
307
|
+
function H(e) {
|
|
308
308
|
if (e) {
|
|
309
|
-
var r = e._owner, a =
|
|
309
|
+
var r = e._owner, a = G(e.type, e._source, r ? r.type : null);
|
|
310
310
|
Ce.setExtraStackFrame(a);
|
|
311
311
|
} else
|
|
312
312
|
Ce.setExtraStackFrame(null);
|
|
313
313
|
}
|
|
314
|
-
function rr(e, r, a, u,
|
|
314
|
+
function rr(e, r, a, u, p) {
|
|
315
315
|
{
|
|
316
|
-
var m = Function.call.bind(
|
|
316
|
+
var m = Function.call.bind(J);
|
|
317
317
|
for (var d in e)
|
|
318
318
|
if (m(e, d)) {
|
|
319
319
|
var f = void 0;
|
|
320
320
|
try {
|
|
321
321
|
if (typeof e[d] != "function") {
|
|
322
|
-
var
|
|
323
|
-
throw
|
|
322
|
+
var S = 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`.");
|
|
323
|
+
throw S.name = "Invariant Violation", S;
|
|
324
324
|
}
|
|
325
325
|
f = e[d](r, d, u, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
326
326
|
} catch (b) {
|
|
327
327
|
f = b;
|
|
328
328
|
}
|
|
329
|
-
f && !(f instanceof Error) && (
|
|
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 _e) && (_e[f.message] = !0, H(p), _("Failed %s type: %s", a, f.message), H(null));
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
332
|
}
|
|
@@ -350,19 +350,19 @@ function Lr() {
|
|
|
350
350
|
function Te(e) {
|
|
351
351
|
return "" + e;
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function Se(e) {
|
|
354
354
|
if (ar(e))
|
|
355
|
-
return
|
|
355
|
+
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", nr(e)), Te(e);
|
|
356
356
|
}
|
|
357
|
-
var
|
|
357
|
+
var W = D.ReactCurrentOwner, or = {
|
|
358
358
|
key: !0,
|
|
359
359
|
ref: !0,
|
|
360
360
|
__self: !0,
|
|
361
361
|
__source: !0
|
|
362
|
-
},
|
|
362
|
+
}, we, Oe, re;
|
|
363
363
|
re = {};
|
|
364
364
|
function ir(e) {
|
|
365
|
-
if (
|
|
365
|
+
if (J.call(e, "ref")) {
|
|
366
366
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
367
367
|
if (r && r.isReactWarning)
|
|
368
368
|
return !1;
|
|
@@ -370,7 +370,7 @@ function Lr() {
|
|
|
370
370
|
return e.ref !== void 0;
|
|
371
371
|
}
|
|
372
372
|
function sr(e) {
|
|
373
|
-
if (
|
|
373
|
+
if (J.call(e, "key")) {
|
|
374
374
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
375
375
|
if (r && r.isReactWarning)
|
|
376
376
|
return !1;
|
|
@@ -378,15 +378,15 @@ function Lr() {
|
|
|
378
378
|
return e.key !== void 0;
|
|
379
379
|
}
|
|
380
380
|
function ur(e, r) {
|
|
381
|
-
if (typeof e.ref == "string" &&
|
|
382
|
-
var a = P(
|
|
383
|
-
re[a] || (
|
|
381
|
+
if (typeof e.ref == "string" && W.current && r && W.current.stateNode !== r) {
|
|
382
|
+
var a = P(W.current.type);
|
|
383
|
+
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
384
|
}
|
|
385
385
|
}
|
|
386
386
|
function lr(e, r) {
|
|
387
387
|
{
|
|
388
388
|
var a = function() {
|
|
389
|
-
|
|
389
|
+
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
390
|
};
|
|
391
391
|
a.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
392
392
|
get: a,
|
|
@@ -397,7 +397,7 @@ function Lr() {
|
|
|
397
397
|
function cr(e, r) {
|
|
398
398
|
{
|
|
399
399
|
var a = function() {
|
|
400
|
-
Oe || (Oe = !0,
|
|
400
|
+
Oe || (Oe = !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
401
|
};
|
|
402
402
|
a.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
403
403
|
get: a,
|
|
@@ -405,7 +405,7 @@ function Lr() {
|
|
|
405
405
|
});
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
|
-
var fr = function(e, r, a, u,
|
|
408
|
+
var fr = function(e, r, a, u, p, m, d) {
|
|
409
409
|
var f = {
|
|
410
410
|
// This tag allows us to uniquely identify this as a React Element
|
|
411
411
|
$$typeof: n,
|
|
@@ -431,31 +431,31 @@ function Lr() {
|
|
|
431
431
|
configurable: !1,
|
|
432
432
|
enumerable: !1,
|
|
433
433
|
writable: !1,
|
|
434
|
-
value:
|
|
434
|
+
value: p
|
|
435
435
|
}), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
|
|
436
436
|
};
|
|
437
|
-
function dr(e, r, a, u,
|
|
437
|
+
function dr(e, r, a, u, p) {
|
|
438
438
|
{
|
|
439
|
-
var m, d = {}, f = null,
|
|
440
|
-
a !== void 0 && (
|
|
439
|
+
var m, d = {}, f = null, S = null;
|
|
440
|
+
a !== void 0 && (Se(a), f = "" + a), sr(r) && (Se(r.key), f = "" + r.key), ir(r) && (S = r.ref, ur(r, p));
|
|
441
441
|
for (m in r)
|
|
442
|
-
|
|
442
|
+
J.call(r, m) && !or.hasOwnProperty(m) && (d[m] = r[m]);
|
|
443
443
|
if (e && e.defaultProps) {
|
|
444
444
|
var b = e.defaultProps;
|
|
445
445
|
for (m in b)
|
|
446
446
|
d[m] === void 0 && (d[m] = b[m]);
|
|
447
447
|
}
|
|
448
|
-
if (f ||
|
|
448
|
+
if (f || S) {
|
|
449
449
|
var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
450
|
-
f && lr(d, E),
|
|
450
|
+
f && lr(d, E), S && cr(d, E);
|
|
451
451
|
}
|
|
452
|
-
return fr(e, f,
|
|
452
|
+
return fr(e, f, S, p, u, W.current, d);
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
455
|
var te = D.ReactCurrentOwner, xe = D.ReactDebugCurrentFrame;
|
|
456
|
-
function
|
|
456
|
+
function L(e) {
|
|
457
457
|
if (e) {
|
|
458
|
-
var r = e._owner, a =
|
|
458
|
+
var r = e._owner, a = G(e.type, e._source, r ? r.type : null);
|
|
459
459
|
xe.setExtraStackFrame(a);
|
|
460
460
|
} else
|
|
461
461
|
xe.setExtraStackFrame(null);
|
|
@@ -477,7 +477,7 @@ Check the render method of \`` + e + "`.";
|
|
|
477
477
|
return "";
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
|
-
function
|
|
480
|
+
function pr(e) {
|
|
481
481
|
{
|
|
482
482
|
if (e !== void 0) {
|
|
483
483
|
var r = e.fileName.replace(/^.*[\\\/]/, ""), a = e.lineNumber;
|
|
@@ -489,7 +489,7 @@ Check your code at ` + r + ":" + a + ".";
|
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
491
|
var Pe = {};
|
|
492
|
-
function
|
|
492
|
+
function vr(e) {
|
|
493
493
|
{
|
|
494
494
|
var r = je();
|
|
495
495
|
if (!r) {
|
|
@@ -506,12 +506,12 @@ Check the top-level render call using <` + a + ">.");
|
|
|
506
506
|
if (!e._store || e._store.validated || e.key != null)
|
|
507
507
|
return;
|
|
508
508
|
e._store.validated = !0;
|
|
509
|
-
var a =
|
|
509
|
+
var a = vr(r);
|
|
510
510
|
if (Pe[a])
|
|
511
511
|
return;
|
|
512
512
|
Pe[a] = !0;
|
|
513
513
|
var u = "";
|
|
514
|
-
e && e._owner && e._owner !== te.current && (u = " It was passed a child from " + P(e._owner.type) + "."),
|
|
514
|
+
e && e._owner && e._owner !== te.current && (u = " It was passed a child from " + P(e._owner.type) + "."), L(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), L(null);
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
517
|
function ke(e, r) {
|
|
@@ -526,9 +526,9 @@ Check the top-level render call using <` + a + ">.");
|
|
|
526
526
|
else if (ae(e))
|
|
527
527
|
e._store && (e._store.validated = !0);
|
|
528
528
|
else if (e) {
|
|
529
|
-
var
|
|
530
|
-
if (typeof
|
|
531
|
-
for (var m =
|
|
529
|
+
var p = R(e);
|
|
530
|
+
if (typeof p == "function" && p !== e.entries)
|
|
531
|
+
for (var m = p.call(e), d; !(d = m.next()).done; )
|
|
532
532
|
ae(d.value) && Ae(d.value, r);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
@@ -552,10 +552,10 @@ Check the top-level render call using <` + a + ">.");
|
|
|
552
552
|
rr(a, e.props, "prop", u, e);
|
|
553
553
|
} else if (r.PropTypes !== void 0 && !ne) {
|
|
554
554
|
ne = !0;
|
|
555
|
-
var
|
|
556
|
-
|
|
555
|
+
var p = P(r);
|
|
556
|
+
_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
|
|
557
557
|
}
|
|
558
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
558
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
561
|
function gr(e) {
|
|
@@ -563,25 +563,25 @@ Check the top-level render call using <` + a + ">.");
|
|
|
563
563
|
for (var r = Object.keys(e.props), a = 0; a < r.length; a++) {
|
|
564
564
|
var u = r[a];
|
|
565
565
|
if (u !== "children" && u !== "key") {
|
|
566
|
-
|
|
566
|
+
L(e), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), L(null);
|
|
567
567
|
break;
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
|
-
e.ref !== null && (
|
|
570
|
+
e.ref !== null && (L(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), L(null));
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
|
-
function De(e, r, a, u,
|
|
573
|
+
function De(e, r, a, u, p, m) {
|
|
574
574
|
{
|
|
575
575
|
var d = Je(e);
|
|
576
576
|
if (!d) {
|
|
577
577
|
var f = "";
|
|
578
578
|
(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
|
-
var
|
|
580
|
-
|
|
579
|
+
var S = pr(p);
|
|
580
|
+
S ? f += S : f += je();
|
|
581
581
|
var b;
|
|
582
|
-
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,
|
|
582
|
+
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
583
|
}
|
|
584
|
-
var E = dr(e, r, a,
|
|
584
|
+
var E = dr(e, r, a, p, m);
|
|
585
585
|
if (E == null)
|
|
586
586
|
return E;
|
|
587
587
|
if (d) {
|
|
@@ -589,11 +589,11 @@ Check the top-level render call using <` + a + ">.");
|
|
|
589
589
|
if (O !== void 0)
|
|
590
590
|
if (u)
|
|
591
591
|
if (ee(O)) {
|
|
592
|
-
for (var
|
|
593
|
-
ke(O[
|
|
592
|
+
for (var Y = 0; Y < O.length; Y++)
|
|
593
|
+
ke(O[Y], e);
|
|
594
594
|
Object.freeze && Object.freeze(O);
|
|
595
595
|
} else
|
|
596
|
-
|
|
596
|
+
_("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
597
|
else
|
|
598
598
|
ke(O, e);
|
|
599
599
|
}
|
|
@@ -607,10 +607,10 @@ Check the top-level render call using <` + a + ">.");
|
|
|
607
607
|
return De(e, r, a, !1);
|
|
608
608
|
}
|
|
609
609
|
var br = yr, Er = hr;
|
|
610
|
-
|
|
611
|
-
}()),
|
|
610
|
+
V.Fragment = s, V.jsx = br, V.jsxs = Er;
|
|
611
|
+
}()), V;
|
|
612
612
|
}
|
|
613
|
-
var
|
|
613
|
+
var z = {};
|
|
614
614
|
/**
|
|
615
615
|
* @license React
|
|
616
616
|
* react-jsx-runtime.production.min.js
|
|
@@ -623,20 +623,20 @@ var U = {};
|
|
|
623
623
|
var Le;
|
|
624
624
|
function Yr() {
|
|
625
625
|
if (Le)
|
|
626
|
-
return
|
|
626
|
+
return z;
|
|
627
627
|
Le = 1;
|
|
628
|
-
var t = Ie, n = Symbol.for("react.element"), i = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty,
|
|
628
|
+
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
629
|
function o(c, l, g) {
|
|
630
|
-
var
|
|
630
|
+
var h, C = {}, T = null, x = null;
|
|
631
631
|
g !== void 0 && (T = "" + g), l.key !== void 0 && (T = "" + l.key), l.ref !== void 0 && (x = l.ref);
|
|
632
|
-
for (
|
|
633
|
-
s.call(l,
|
|
632
|
+
for (h in l)
|
|
633
|
+
s.call(l, h) && !y.hasOwnProperty(h) && (C[h] = l[h]);
|
|
634
634
|
if (c && c.defaultProps)
|
|
635
|
-
for (
|
|
636
|
-
C[
|
|
637
|
-
return { $$typeof: n, type: c, key: T, ref: x, props: C, _owner:
|
|
635
|
+
for (h in l = c.defaultProps, l)
|
|
636
|
+
C[h] === void 0 && (C[h] = l[h]);
|
|
637
|
+
return { $$typeof: n, type: c, key: T, ref: x, props: C, _owner: v.current };
|
|
638
638
|
}
|
|
639
|
-
return
|
|
639
|
+
return z.Fragment = i, z.jsx = o, z.jsxs = o, z;
|
|
640
640
|
}
|
|
641
641
|
process.env.NODE_ENV === "production" ? se.exports = Yr() : se.exports = Lr();
|
|
642
642
|
var k = se.exports;
|
|
@@ -645,23 +645,23 @@ const at = ({
|
|
|
645
645
|
loginPath: n = "/login",
|
|
646
646
|
localStorageKey: i = "user",
|
|
647
647
|
redirect401Path: s = "/login",
|
|
648
|
-
isLogged:
|
|
648
|
+
isLogged: v
|
|
649
649
|
}) => {
|
|
650
650
|
var C, T, x, j;
|
|
651
|
-
const [
|
|
652
|
-
return
|
|
653
|
-
var
|
|
654
|
-
l.current || (l.current = !0, (
|
|
655
|
-
(
|
|
656
|
-
async (
|
|
657
|
-
var
|
|
658
|
-
return typeof
|
|
651
|
+
const [y, o] = Rr(null), c = le(), l = _r(!1), g = typeof v == "function" ? v() : !!v, h = typeof g == "boolean" ? g : g == null ? void 0 : g.isLogged;
|
|
652
|
+
return X(() => {
|
|
653
|
+
var w;
|
|
654
|
+
l.current || (l.current = !0, (w = $) == null || w.interceptors.response.use(
|
|
655
|
+
(R) => R,
|
|
656
|
+
async (R) => {
|
|
657
|
+
var F;
|
|
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 && ((F = R == null ? void 0 : R.response) == null ? void 0 : F.status) === 401 && ($.defaults.headers.common.Authorization = null, localStorage.removeItem(i), o(s)), Promise.reject(R);
|
|
659
659
|
}
|
|
660
660
|
));
|
|
661
|
-
}, [i, s]),
|
|
661
|
+
}, [i, s]), h && !y ? /* @__PURE__ */ k.jsx(Cr, { fallback: t, children: (T = (C = c.state) == null ? void 0 : C.from) != null && T.state && ((j = (x = c.state) == null ? void 0 : x.from) == null ? void 0 : j.pathname) === n ? /* @__PURE__ */ k.jsx(Me, { to: c.state.from.state.from.pathname + c.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ k.jsx(We, {}) }) : /* @__PURE__ */ k.jsx(Me, { to: n, state: { from: c }, replace: !0 });
|
|
662
662
|
}, ot = () => {
|
|
663
663
|
const { pathname: t } = le(), { sendEvent: n } = xr();
|
|
664
|
-
return
|
|
664
|
+
return X(() => {
|
|
665
665
|
n({ event: "pageView", pathname: t });
|
|
666
666
|
}, [t, n]), /* @__PURE__ */ k.jsx(We, {});
|
|
667
667
|
}, ce = Tr({
|
|
@@ -680,18 +680,16 @@ const at = ({
|
|
|
680
680
|
userLocalStorageKey: n = "user",
|
|
681
681
|
tokenKey: i = "accessToken",
|
|
682
682
|
postContentType: s = "application/json",
|
|
683
|
-
...
|
|
683
|
+
...v
|
|
684
684
|
}) => {
|
|
685
|
-
const { apiURL:
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
}, [h, s, i, t, n]), null;
|
|
692
|
-
}, ut = ({ debug: t, resources: n }) => (M(() => {
|
|
685
|
+
const { apiURL: y = v.apiURL } = Ne(ce);
|
|
686
|
+
if (!$.defaults)
|
|
687
|
+
return null;
|
|
688
|
+
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 $.defaults.baseURL = y, $.defaults.headers.post["Content-Type"] = s, h && ($.defaults.headers.common.Authorization = h), null;
|
|
690
|
+
}, ut = ({ debug: t, resources: n }) => {
|
|
693
691
|
var i;
|
|
694
|
-
(i =
|
|
692
|
+
return (i = I) != null && i.isInitialized || (I.use(Pr).use(Ar).init({
|
|
695
693
|
debug: t,
|
|
696
694
|
fallbackLng: "en",
|
|
697
695
|
interpolation: {
|
|
@@ -705,104 +703,90 @@ const at = ({
|
|
|
705
703
|
resources: n,
|
|
706
704
|
returnNull: !1
|
|
707
705
|
}).then(() => {
|
|
708
|
-
document.documentElement.lang !==
|
|
709
|
-
}),
|
|
706
|
+
document.documentElement.lang !== I.resolvedLanguage && I.resolvedLanguage && document.documentElement.setAttribute("lang", I.resolvedLanguage);
|
|
707
|
+
}), I.on("languageChanged", (s) => {
|
|
710
708
|
document.documentElement.setAttribute("lang", s);
|
|
711
|
-
}));
|
|
712
|
-
},
|
|
709
|
+
})), null;
|
|
710
|
+
}, lt = ({
|
|
713
711
|
dsn: t,
|
|
714
712
|
integrations: n,
|
|
715
713
|
tracesSampleRate: i,
|
|
716
714
|
replaysSessionSampleRate: s,
|
|
717
|
-
replaysOnErrorSampleRate:
|
|
718
|
-
tracePropagationTargets:
|
|
715
|
+
replaysOnErrorSampleRate: v,
|
|
716
|
+
tracePropagationTargets: y,
|
|
719
717
|
ignoreErrors: o,
|
|
720
718
|
debug: c,
|
|
721
719
|
environment: l
|
|
722
|
-
}) => (
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
});
|
|
743
|
-
}, [
|
|
744
|
-
c,
|
|
745
|
-
t,
|
|
746
|
-
l,
|
|
747
|
-
o,
|
|
748
|
-
n,
|
|
749
|
-
p,
|
|
750
|
-
s,
|
|
751
|
-
h,
|
|
752
|
-
i
|
|
753
|
-
]), null), ct = ({ IMaskMixin: t, ...n }) => {
|
|
720
|
+
}) => (oe.isInitialized() || (c || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && oe.init({
|
|
721
|
+
debug: c,
|
|
722
|
+
dsn: t,
|
|
723
|
+
environment: l || "production",
|
|
724
|
+
ignoreErrors: [...o || [], /dynamically imported module/],
|
|
725
|
+
integrations: [
|
|
726
|
+
oe.reactRouterV6BrowserTracingIntegration({
|
|
727
|
+
createRoutesFromChildren: Sr,
|
|
728
|
+
matchRoutes: wr,
|
|
729
|
+
useEffect: X,
|
|
730
|
+
useLocation: le,
|
|
731
|
+
useNavigationType: Or
|
|
732
|
+
}),
|
|
733
|
+
...n || []
|
|
734
|
+
],
|
|
735
|
+
replaysOnErrorSampleRate: v || 1,
|
|
736
|
+
replaysSessionSampleRate: s || 0.1,
|
|
737
|
+
tracePropagationTargets: y,
|
|
738
|
+
tracesSampleRate: i || 1
|
|
739
|
+
}), null), ct = ({ IMaskMixin: t, ...n }) => {
|
|
754
740
|
const i = ue(
|
|
755
741
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
756
|
-
() => t(({ TextField: s, ...
|
|
742
|
+
() => t(({ TextField: s, ...v }) => /* @__PURE__ */ k.jsx(s, { ...v })),
|
|
757
743
|
[t]
|
|
758
744
|
);
|
|
759
745
|
return /* @__PURE__ */ k.jsx(i, { ...n });
|
|
760
|
-
}, ft = ({ accessToken: t }) => (
|
|
761
|
-
t && (kr.accessToken = t);
|
|
762
|
-
}, [t]), null);
|
|
746
|
+
}, ft = ({ accessToken: t }) => (t && (kr.accessToken = t), null);
|
|
763
747
|
var Ve = { exports: {} };
|
|
764
748
|
(function(t, n) {
|
|
765
749
|
(function(i, s) {
|
|
766
750
|
t.exports = s();
|
|
767
751
|
})(Mr, function() {
|
|
768
752
|
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" };
|
|
769
|
-
return function(s,
|
|
770
|
-
var o =
|
|
771
|
-
|
|
753
|
+
return function(s, v, y) {
|
|
754
|
+
var o = v.prototype, c = o.format;
|
|
755
|
+
y.en.formats = i, o.format = function(l) {
|
|
772
756
|
l === void 0 && (l = "YYYY-MM-DDTHH:mm:ssZ");
|
|
773
|
-
var g = this.$locale().formats,
|
|
774
|
-
return C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(x, j,
|
|
775
|
-
var
|
|
776
|
-
return j || T[
|
|
777
|
-
return
|
|
757
|
+
var g = this.$locale().formats, h = function(C, T) {
|
|
758
|
+
return C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(x, j, w) {
|
|
759
|
+
var R = w && w.toUpperCase();
|
|
760
|
+
return j || T[w] || i[w] || T[R].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(D, _, F) {
|
|
761
|
+
return _ || F.slice(1);
|
|
778
762
|
});
|
|
779
763
|
});
|
|
780
764
|
}(l, g === void 0 ? {} : g);
|
|
781
|
-
return c.call(this,
|
|
765
|
+
return c.call(this, h);
|
|
782
766
|
};
|
|
783
767
|
};
|
|
784
768
|
});
|
|
785
769
|
})(Ve);
|
|
786
770
|
var Ir = Ve.exports;
|
|
787
771
|
const Nr = /* @__PURE__ */ Fr(Ir);
|
|
788
|
-
|
|
789
|
-
const dt = ({ language: t }) => (
|
|
772
|
+
U.extend(Nr);
|
|
773
|
+
const dt = ({ language: t }) => (X(() => {
|
|
790
774
|
var i;
|
|
791
775
|
const n = t || ((i = navigator.language) == null ? void 0 : i.slice(0, 2)) || "en";
|
|
792
776
|
if (n === "en") {
|
|
793
|
-
import("./en-
|
|
794
|
-
|
|
777
|
+
import("./en-bFWwYyLH.js").then((s) => s.e).then(() => {
|
|
778
|
+
U.locale(n);
|
|
795
779
|
});
|
|
796
780
|
return;
|
|
797
781
|
}
|
|
798
|
-
n === "fr" && import("./fr-
|
|
799
|
-
|
|
782
|
+
n === "fr" && import("./fr-WPlDe-ow.js").then((s) => s.f).then(() => {
|
|
783
|
+
U.locale(n);
|
|
800
784
|
}).catch(() => {
|
|
801
|
-
import("./en-
|
|
802
|
-
|
|
785
|
+
import("./en-bFWwYyLH.js").then((s) => s.e).then(() => {
|
|
786
|
+
U.locale("en");
|
|
803
787
|
});
|
|
804
788
|
});
|
|
805
|
-
}, [t]), null),
|
|
789
|
+
}, [t]), null), pt = ({
|
|
806
790
|
children: t,
|
|
807
791
|
defaultQueriesOptions: n,
|
|
808
792
|
defaultMutationsOptions: i
|
|
@@ -813,7 +797,7 @@ const dt = ({ language: t }) => (M(() => {
|
|
|
813
797
|
...i
|
|
814
798
|
},
|
|
815
799
|
queries: {
|
|
816
|
-
getNextPageParam: (
|
|
800
|
+
getNextPageParam: (v, y, o) => v.length + (o || 0),
|
|
817
801
|
refetchOnWindowFocus: !1,
|
|
818
802
|
retry: 3,
|
|
819
803
|
...n
|
|
@@ -821,18 +805,18 @@ const dt = ({ language: t }) => (M(() => {
|
|
|
821
805
|
}
|
|
822
806
|
});
|
|
823
807
|
return /* @__PURE__ */ k.jsx($r, { client: s, children: t });
|
|
824
|
-
},
|
|
808
|
+
}, vt = (t) => {
|
|
825
809
|
const { unknownErrorTranslationKey: n = "error.unknownError" } = t || {}, i = jr(n), s = ie(
|
|
826
|
-
(
|
|
827
|
-
var c, l, g,
|
|
828
|
-
const { response: o } =
|
|
829
|
-
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) : (
|
|
810
|
+
(y) => {
|
|
811
|
+
var c, l, g, h, C, T, x, j, w;
|
|
812
|
+
const { response: o } = y || {};
|
|
813
|
+
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) && ((x = (T = o == null ? void 0 : o.data) == null ? void 0 : T.detail[0]) != null && x.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;
|
|
830
814
|
},
|
|
831
815
|
[i]
|
|
832
816
|
);
|
|
833
|
-
return { getErrorCode: ie((
|
|
817
|
+
return { getErrorCode: ie((y) => {
|
|
834
818
|
var c, l, g;
|
|
835
|
-
const { response: o } =
|
|
819
|
+
const { response: o } = y || {};
|
|
836
820
|
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";
|
|
837
821
|
}, []), printError: s };
|
|
838
822
|
}, mt = ({
|
|
@@ -840,21 +824,21 @@ const dt = ({ language: t }) => (M(() => {
|
|
|
840
824
|
fetchNextPage: n,
|
|
841
825
|
isFetchingNextPage: i,
|
|
842
826
|
isInitialLoading: s,
|
|
843
|
-
isLoading:
|
|
844
|
-
enabled:
|
|
827
|
+
isLoading: v,
|
|
828
|
+
enabled: y = !0
|
|
845
829
|
}) => {
|
|
846
830
|
const o = ie(
|
|
847
831
|
async (l) => {
|
|
848
|
-
i || !
|
|
832
|
+
i || !y || await n({ pageParam: (l == null ? void 0 : l.pageParam) || l.visibleRowsCount });
|
|
849
833
|
},
|
|
850
|
-
[
|
|
834
|
+
[y, n, i]
|
|
851
835
|
), c = ue(() => {
|
|
852
836
|
if (t)
|
|
853
837
|
return t.pages.reduce((l, g) => [...l, ...g], []);
|
|
854
838
|
}, [t]);
|
|
855
839
|
return {
|
|
856
840
|
fetchNextPageOnRowsScrollEnd: o,
|
|
857
|
-
isLoading: i ||
|
|
841
|
+
isLoading: i || v,
|
|
858
842
|
loadingVariant: s ? "skeleton" : "linear",
|
|
859
843
|
rows: c
|
|
860
844
|
};
|
|
@@ -865,7 +849,7 @@ const dt = ({ language: t }) => (M(() => {
|
|
|
865
849
|
setAuthenticationToken: ({ tokenType: i, accessToken: s }) => {
|
|
866
850
|
$.defaults.headers.common.Authorization = `${i} ${s}`;
|
|
867
851
|
}
|
|
868
|
-
}), Wr = (t, n = "ll") =>
|
|
852
|
+
}), Wr = (t, n = "ll") => U(t).format(n), Vr = (t, n = "km") => {
|
|
869
853
|
const i = Number(t);
|
|
870
854
|
return Number.isNaN(i) ? `0 ${n}` : `${i.toFixed(2)} ${n}`;
|
|
871
855
|
}, zr = (t) => {
|
|
@@ -890,11 +874,11 @@ const dt = ({ language: t }) => (M(() => {
|
|
|
890
874
|
)
|
|
891
875
|
};
|
|
892
876
|
}, Ur = (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase(), qr = (t) => {
|
|
893
|
-
const s = t.split("/").filter((
|
|
877
|
+
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("");
|
|
894
878
|
return s.charAt(0).toLowerCase() + s.slice(1);
|
|
895
879
|
}, Br = (t, n, i) => {
|
|
896
|
-
const s = qr(n),
|
|
897
|
-
return `${s}${
|
|
880
|
+
const s = qr(n), v = Ur(i);
|
|
881
|
+
return `${s}${v}`;
|
|
898
882
|
}, Gr = (t) => {
|
|
899
883
|
if (t)
|
|
900
884
|
return (t == null ? void 0 : t.reduce((n, i) => (n[i] = {
|
|
@@ -941,7 +925,7 @@ export {
|
|
|
941
925
|
ot as G,
|
|
942
926
|
st as I,
|
|
943
927
|
ct as M,
|
|
944
|
-
|
|
928
|
+
pt as Q,
|
|
945
929
|
at as R,
|
|
946
930
|
ut as a,
|
|
947
931
|
lt as b,
|
|
@@ -956,5 +940,5 @@ export {
|
|
|
956
940
|
Wr as k,
|
|
957
941
|
Vr as l,
|
|
958
942
|
ce as m,
|
|
959
|
-
|
|
943
|
+
vt as u
|
|
960
944
|
};
|
package/dist/main.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as a, I as s, e as n, a as t, d as r, b as o, m as d, f, M as g, Q as I, R as l, k as u, l as C, j as p, i as A, h as c, g as x, u as z } from "./main-
|
|
1
|
+
import { G as a, I as s, e as n, a as t, d as r, b as o, m as d, f, M as g, Q as I, R as l, k as u, l as C, j as p, i as A, h as c, g as x, u as z } from "./main-YTkqJNOe.js";
|
|
2
2
|
export {
|
|
3
3
|
a as GTMSendPageView,
|
|
4
4
|
s as InitializeAxiosConfig,
|
package/dist/main.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(d,
|
|
1
|
+
(function(d,E){typeof exports=="object"&&typeof module<"u"?E(exports,require("react"),require("axios"),require("react-router-dom"),require("@tracktor/react-google-tag-manager"),require("i18next"),require("i18next-browser-languagedetector"),require("react-i18next"),require("@sentry/react"),require("mapbox-gl"),require("dayjs"),require("@tanstack/react-query")):typeof define=="function"&&define.amd?define(["exports","react","axios","react-router-dom","@tracktor/react-google-tag-manager","i18next","i18next-browser-languagedetector","react-i18next","@sentry/react","mapbox-gl","dayjs","@tanstack/react-query"],E):(d=typeof globalThis<"u"?globalThis:d||self,E(d["@tracktor/shared-module"]={},d.React,d.axios,d.reactRouterDom,d.reactGoogleTagManager,d.i18n,d.LanguageDetector,d.reactI18next,d.Sentry,d.mapbox,d.dayjs,d.reactQuery))})(this,function(d,E,M,k,Ue,A,$e,Be,Ge,Je,N,fe){"use strict";function qe(r){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const i in r)if(i!=="default"){const u=Object.getOwnPropertyDescriptor(r,i);Object.defineProperty(n,i,u.get?u:{enumerable:!0,get:()=>r[i]})}}return n.default=r,Object.freeze(n)}const Q=qe(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:{}},V={};/**
|
|
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 Xe(){return de||(de=1,process.env.NODE_ENV!=="production"&&function(){var r=
|
|
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 Xe(){return de||(de=1,process.env.NODE_ENV!=="production"&&function(){var r=E,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),x=Symbol.iterator,h="@@iterator";function J(e){if(e===null||typeof e!="object")return null;var t=x&&e[x]||e[h];return typeof t=="function"?t:null}var I=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function C(e){{for(var t=arguments.length,o=new Array(t>1?t-1:0),s=1;s<t;s++)o[s-1]=arguments[s];re("error",e,o)}}function re(e,t,o){{var s=I.ReactDebugCurrentFrame,m=s.getStackAddendum();m!==""&&(t+="%s",o=o.concat([m]));var g=o.map(function(v){return String(v)});g.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,g)}}var Ct=!1,Tt=!1,St=!1,jt=!1,Ot=!1,ye;ye=Symbol.for("react.module.reference");function wt(e){return!!(typeof e=="string"||typeof e=="function"||e===u||e===y||Ot||e===p||e===_||e===b||jt||e===P||Ct||Tt||St||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 Pt(e,t,o){var s=e.displayName;if(s)return s;var m=t.displayName||t.name||"";return m!==""?o+"("+m+")":o}function be(e){return e.displayName||"Context"}function Y(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 i:return"Portal";case y:return"Profiler";case p:return"StrictMode";case _:return"Suspense";case b:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case l:var t=e;return be(t)+".Consumer";case a:var o=e;return be(o._context)+".Provider";case c:return Pt(e,e.render,"ForwardRef");case S:var s=e.displayName||null;return s!==null?s:Y(e.type)||"Memo";case j:{var m=e,g=m._payload,v=m._init;try{return Y(v(g))}catch{return null}}}return null}var F=Object.assign,$=0,Ee,Re,Ce,Te,Se,je,Oe;function we(){}we.__reactDisabledLog=!0;function Mt(){{if($===0){Ee=console.log,Re=console.info,Ce=console.warn,Te=console.error,Se=console.group,je=console.groupCollapsed,Oe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:we,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}$++}}function kt(){{if($--,$===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:Ee}),info:F({},e,{value:Re}),warn:F({},e,{value:Ce}),error:F({},e,{value:Te}),group:F({},e,{value:Se}),groupCollapsed:F({},e,{value:je}),groupEnd:F({},e,{value:Oe})})}$<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ne=I.ReactCurrentDispatcher,ae;function q(e,t,o){{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,H;{var xt=typeof WeakMap=="function"?WeakMap:Map;H=new xt}function Pe(e,t){if(!e||oe)return"";{var o=H.get(e);if(o!==void 0)return o}var s;oe=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var g;g=ne.current,ne.current=null,Mt();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 f=D.stack.split(`
|
|
11
|
+
`),O=s.stack.split(`
|
|
12
|
+
`),R=f.length-1,T=O.length-1;R>=1&&T>=0&&f[R]!==O[T];)T--;for(;R>=1&&T>=0;R--,T--)if(f[R]!==O[T]){if(R!==1||T!==1)do if(R--,T--,T<0||f[R]!==O[T]){var w=`
|
|
13
|
+
`+f[R].replace(" at new "," at ");return e.displayName&&w.includes("<anonymous>")&&(w=w.replace("<anonymous>",e.displayName)),typeof e=="function"&&H.set(e,w),w}while(R>=1&&T>=0);break}}}finally{oe=!1,ne.current=g,kt(),Error.prepareStackTrace=m}var z=e?e.displayName||e.name:"",Ve=z?q(z):"";return typeof e=="function"&&H.set(e,Ve),Ve}function At(e,t,o){return Pe(e,!1)}function Lt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function X(e,t,o){if(e==null)return"";if(typeof e=="function")return Pe(e,Lt(e));if(typeof e=="string")return q(e);switch(e){case _:return q("Suspense");case b:return q("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case c:return At(e.render);case S:return X(e.type,t,o);case j:{var s=e,m=s._payload,g=s._init;try{return X(g(m),t,o)}catch{}}}return""}var K=Object.prototype.hasOwnProperty,Me={},ke=I.ReactDebugCurrentFrame;function Z(e){if(e){var t=e._owner,o=X(e.type,e._source,t?t.type:null);ke.setExtraStackFrame(o)}else ke.setExtraStackFrame(null)}function Yt(e,t,o,s,m){{var g=Function.call.bind(K);for(var v in e)if(g(e,v)){var f=void 0;try{if(typeof e[v]!="function"){var O=Error((s||"React class")+": "+o+" 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 O.name="Invariant Violation",O}f=e[v](t,v,s,o,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",o,v,typeof f),Z(null)),f instanceof Error&&!(f.message in Me)&&(Me[f.message]=!0,Z(m),C("Failed %s type: %s",o,f.message),Z(null))}}}var Dt=Array.isArray;function ie(e){return Dt(e)}function It(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,o=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function Ft(e){try{return xe(e),!1}catch{return!0}}function xe(e){return""+e}function Ae(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.",It(e)),xe(e)}var B=I.ReactCurrentOwner,Nt={key:!0,ref:!0,__self:!0,__source:!0},Le,Ye,ue;ue={};function Wt(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 zt(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"&&B.current&&t&&B.current.stateNode!==t){var o=Y(B.current.type);ue[o]||(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',Y(B.current.type),e.ref),ue[o]=!0)}}function Ut(e,t){{var o=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))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function $t(e,t){{var o=function(){Ye||(Ye=!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))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var Bt=function(e,t,o,s,m,g,v){var f={$$typeof:n,type:e,key:t,ref:o,props:v,_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,o,s,m){{var g,v={},f=null,O=null;o!==void 0&&(Ae(o),f=""+o),zt(t)&&(Ae(t.key),f=""+t.key),Wt(t)&&(O=t.ref,Vt(t,m));for(g in t)K.call(t,g)&&!Nt.hasOwnProperty(g)&&(v[g]=t[g]);if(e&&e.defaultProps){var R=e.defaultProps;for(g in R)v[g]===void 0&&(v[g]=R[g])}if(f||O){var T=typeof e=="function"?e.displayName||e.name||"Unknown":e;f&&Ut(v,T),O&&$t(v,T)}return Bt(e,f,O,m,s,B.current,v)}}var se=I.ReactCurrentOwner,De=I.ReactDebugCurrentFrame;function W(e){if(e){var t=e._owner,o=X(e.type,e._source,t?t.type:null);De.setExtraStackFrame(o)}else De.setExtraStackFrame(null)}var ce;ce=!1;function le(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function Ie(){{if(se.current){var e=Y(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(/^.*[\\\/]/,""),o=e.lineNumber;return`
|
|
16
16
|
|
|
17
17
|
Check your code at `+t+":"+o+"."}return""}}var Fe={};function qt(e){{var t=Ie();if(!t){var o=typeof e=="string"?e:e.displayName||e.name;o&&(t=`
|
|
18
18
|
|
|
19
|
-
Check the top-level render call using <`+o+">.")}return t}}function Ne(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=qt(t);if(Fe[o])return;Fe[o]=!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 <`+o+">.")}return t}}function Ne(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=qt(t);if(Fe[o])return;Fe[o]=!0;var s="";e&&e._owner&&e._owner!==se.current&&(s=" It was passed a child from "+Y(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.',o,s),W(null)}}function We(e,t){{if(typeof e!="object")return;if(ie(e))for(var o=0;o<e.length;o++){var s=e[o];le(s)&&Ne(s,t)}else if(le(e))e._store&&(e._store.validated=!0);else if(e){var m=J(e);if(typeof m=="function"&&m!==e.entries)for(var g=m.call(e),v;!(v=g.next()).done;)le(v.value)&&Ne(v.value,t)}}}function Ht(e){{var t=e.type;if(t==null||typeof t=="string")return;var o;if(typeof t=="function")o=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===c||t.$$typeof===S))o=t.propTypes;else return;if(o){var s=Y(t);Yt(o,e.props,"prop",s,e)}else if(t.PropTypes!==void 0&&!ce){ce=!0;var m=Y(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 Xt(e){{for(var t=Object.keys(e.props),o=0;o<t.length;o++){var s=t[o];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 ze(e,t,o,s,m,g){{var v=wt(e);if(!v){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 O=Jt(m);O?f+=O:f+=Ie();var R;e===null?R="null":ie(e)?R="array":e!==void 0&&e.$$typeof===n?(R="<"+(Y(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,o,m,g);if(T==null)return T;if(v){var w=t.children;if(w!==void 0)if(s)if(ie(w)){for(var z=0;z<w.length;z++)We(w[z],e);Object.freeze&&Object.freeze(w)}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(w,e)}return e===u?Xt(T):Ht(T),T}}function Kt(e,t,o){return ze(e,t,o,!0)}function Zt(e,t,o){return ze(e,t,o,!1)}var Qt=Zt,er=Kt;V.Fragment=u,V.jsx=Qt,V.jsxs=er}()),V}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 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 Ze(){if(ve)return U;ve=1;var r=_,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,p=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function a(l,c,y){var E,S={},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)&&!h.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=i,U.jsx=a,U.jsxs=a,U}process.env.NODE_ENV==="production"?te.exports=Ze():te.exports=Xe();var Y=te.exports;const Qe=({Fallback:r,loginPath:n="/login",localStorageKey:i="user",redirect401Path:u="/login",isLogged:p})=>{var S,j,P,A;const[h,a]=_.useState(null),l=x.useLocation(),c=_.useRef(!1),y=typeof p=="function"?p():!!p,E=typeof y=="boolean"?y:y==null?void 0:y.isLogged;return _.useEffect(()=>{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(i),a(u)),Promise.reject(b)}))},[i,u]),E&&!h?Y.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?Y.jsx(x.Navigate,{to:l.state.from.state.from.pathname+l.state.from.state.from.search,replace:!0}):Y.jsx(x.Outlet,{})}):Y.jsx(x.Navigate,{to:n,state:{from:l},replace:!0})},Ke=()=>{const{pathname:r}=x.useLocation(),{sendEvent:n}=Ue.useGoogleTagManager();return _.useEffect(()=>{n({event:"pageView",pathname:r})},[r,n]),Y.jsx(x.Outlet,{})},J=_.createContext({apiURL:void 0,children:void 0}),et=({children:r,apiURL:n})=>{const i=_.useMemo(()=>({apiURL:n}),[n]);return Y.jsx(J.Provider,{value:i,children:r})},tt=({tokenTypeKey:r="tokenType",userLocalStorageKey:n="user",tokenKey:i="accessToken",postContentType:u="application/json",...p})=>{const{apiURL:h=p.apiURL}=_.useContext(J);return _.useEffect(()=>{if(!M.defaults)return;const a=localStorage.getItem(n),l=a?JSON.parse(a):null,c=l!=null&&l[r]?l[r]:null,y=l!=null&&l[i]?l[i]:null,E=a?`${c} ${y}`:null;M.defaults.baseURL=h,M.defaults.headers.post["Content-Type"]=u,E&&(M.defaults.headers.common.Authorization=E)},[h,u,i,r,n]),null},rt=({debug:r,resources:n})=>(_.useEffect(()=>{k!=null&&k.isInitialized||(k.use(Be).use(Ge.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",i=>{document.documentElement.setAttribute("lang",i)}))},[r,n]),null),nt=({dsn:r,integrations:n,tracesSampleRate:i,replaysSessionSampleRate:u,replaysOnErrorSampleRate:p,tracePropagationTargets:h,ignoreErrors:a,debug:l,environment:c})=>(_.useEffect(()=>{K.isInitialized()||(l||process.env.NODE_ENV==="prod"||process.env.NODE_ENV==="production")&&K.init({debug:l,dsn:r,environment:c||"production",ignoreErrors:[...a||[],/dynamically imported module/],integrations:[K.reactRouterV6BrowserTracingIntegration({createRoutesFromChildren:x.createRoutesFromChildren,matchRoutes:x.matchRoutes,useEffect:_.useEffect,useLocation:x.useLocation,useNavigationType:x.useNavigationType}),...n||[]],replaysOnErrorSampleRate:p||1,replaysSessionSampleRate:u||.1,tracePropagationTargets:h,tracesSampleRate:i||1})},[l,r,c,a,n,p,u,h,i]),null),at=({IMaskMixin:r,...n})=>{const i=_.useMemo(()=>r(({TextField:u,...p})=>Y.jsx(u,{...p})),[r]);return Y.jsx(i,{...n})},ot=({accessToken:r})=>(_.useEffect(()=>{r&&(He.accessToken=r)},[r]),null);var pe={exports:{}};(function(r,n){(function(i,u){r.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,h){var a=p.prototype,l=a.format;h.en.formats=i,a.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var y=this.$locale().formats,E=function(S,j){return S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(P,A,b){var H=b&&b.toUpperCase();return A||j[b]||i[b]||j[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(I,C,re){return C||re.slice(1)})})}(c,y===void 0?{}:y);return l.call(this,E)}}})})(pe);var it=pe.exports;const ut=$e(it);N.extend(ut);const st=({language:r})=>(_.useEffect(()=>{var i;const n=r||((i=navigator.language)==null?void 0:i.slice(0,2))||"en";if(n==="en"){Promise.resolve().then(()=>he).then(()=>{N.locale(n)});return}n==="fr"&&Promise.resolve().then(()=>Rt).then(()=>{N.locale(n)}).catch(()=>{Promise.resolve().then(()=>he).then(()=>{N.locale("en")})})},[r]),null),ct=({children:r,defaultQueriesOptions:n,defaultMutationsOptions:i})=>{const u=new fe.QueryClient({defaultOptions:{mutations:{...i},queries:{getNextPageParam:(p,h,a)=>p.length+(a||0),refetchOnWindowFocus:!1,retry:3,...n}}});return Y.jsx(fe.QueryClientProvider,{client:u,children:r})},lt=r=>{const{unknownErrorTranslationKey:n="error.unknownError"}=r||{},i=k.t(n),u=_.useCallback(h=>{var l,c,y,E,S,j,P,A,b;const{response:a}=h||{};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=(y=a==null?void 0:a.data)==null?void 0:y.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((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):i},[i]);return{getErrorCode:_.useCallback(h=>{var l,c,y;const{response:a}=h||{};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):(y=a==null?void 0:a.data)!=null&&y.error_code?String(a.data.error_code):"unknown_error_code"},[]),printError:u}},ft=({data:r,fetchNextPage:n,isFetchingNextPage:i,isInitialLoading:u,isLoading:p,enabled:h=!0})=>{const a=_.useCallback(async c=>{i||!h||await n({pageParam:(c==null?void 0:c.pageParam)||c.visibleRowsCount})},[h,n,i]),l=_.useMemo(()=>{if(r)return r.pages.reduce((c,y)=>[...c,...y],[])},[r]);return{fetchNextPageOnRowsScrollEnd:a,isLoading:i||p,loadingVariant:u?"skeleton":"linear",rows:l}},dt=()=>({clearAuthenticationToken:()=>{M.defaults.headers.common.Authorization=null},setAuthenticationToken:({tokenType:i,accessToken:u})=>{M.defaults.headers.common.Authorization=`${i} ${u}`}}),me=(r,n="ll")=>N(r).format(n),ge=(r,n="km")=>{const i=Number(r);return Number.isNaN(i)?`0 ${n}`:`${i.toFixed(2)} ${n}`},vt=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 i=vt(r),u=typeof r=="object"&&"pathname"in r?`${r.origin}${i}`:r;return typeof n=="number"?`${u.replace("/files",`/thumbs/${n}`)}`:u},pt=()=>{const{apiURL:r}=_.useContext(J);return{dateAdapter:me,distanceAdapter:ge,filePathAdapter:(i,u)=>_e(r&&typeof i=="string"?{origin:r,pathname:i}:i,u)}},mt=r=>r.charAt(0).toUpperCase()+r.slice(1).toLowerCase(),gt=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)},_t=(r,n,i)=>{const u=gt(n),p=mt(i);return`${u}${p}`},ht=r=>{if(r)return(r==null?void 0:r.reduce((n,i)=>(n[i]={query:{useInfinite:!0,useInfiniteQueryParam:"offset",useQuery:!0}},n),{}))||{}},yt=r=>{const{input:n="./openapi.json",operationsToGenerateInfiniteQueryHook:i=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:_t,...(i==null?void 0:i.length)&&{operations:ht(i)},query:{useQuery:!0}},schemas:"src/api/model",target:"src/api/services/api.ts"}}}};var bt={exports:{}};(function(r,n){(function(i,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(i){var u=["th","st","nd","rd"],p=i%100;return"["+i+(u[(p-20)%10]||u[p]||u[0])+"]"}}})})(bt);const he=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var Et={exports:{}};(function(r,n){(function(i,u){r.exports=u(N)})(ee,function(i){function u(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var p=u(i),h={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(h,null,!0),h})})(Et);const Rt=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));d.GTMSendPageView=Ke,d.InitializeAxiosConfig=tt,d.InitializeDaysJSConfig=st,d.InitializeI18nConfig=rt,d.InitializeMapBoxConfig=ot,d.InitializeSentryConfig=nt,d.InjectDependenciesContext=J,d.InjectDependenciesProvider=et,d.MaskTextField=at,d.QueryClientProviderWithConfig=ct,d.RequireAuth=Qe,d.dateAdapter=me,d.distanceAdapter=ge,d.getOrvalConfig=yt,d.useAdapter=pt,d.useAuth=dt,d.useInfiniteDataGrid=ft,d.useResponseError=lt,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});
|
|
27
|
+
*/var ve;function Ke(){if(ve)return U;ve=1;var r=E,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,p=r.__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"?te.exports=Ke():te.exports=Xe();var L=te.exports;const Ze=({Fallback:r,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.useEffect(()=>{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:r,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:r}=k.useLocation(),{sendEvent:n}=Ue.useGoogleTagManager();return E.useEffect(()=>{n({event:"pageView",pathname:r})},[r,n]),L.jsx(k.Outlet,{})},G=E.createContext({apiURL:void 0,children:void 0}),et=({children:r,apiURL:n})=>{const i=E.useMemo(()=>({apiURL:n}),[n]);return L.jsx(G.Provider,{value:i,children:r})},tt=({tokenTypeKey:r="tokenType",userLocalStorageKey:n="user",tokenKey:i="accessToken",postContentType:u="application/json",...p})=>{const{apiURL:y=p.apiURL}=E.useContext(G);if(!M.defaults)return null;const a=localStorage.getItem(n),l=a?JSON.parse(a):null,c=l!=null&&l[r]?l[r]: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},rt=({debug:r,resources:n})=>(A!=null&&A.isInitialized||(A.use($e).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!==A.resolvedLanguage&&A.resolvedLanguage&&document.documentElement.setAttribute("lang",A.resolvedLanguage)}),A.on("languageChanged",i=>{document.documentElement.setAttribute("lang",i)})),null),nt=({dsn:r,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:r,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),at=({IMaskMixin:r,...n})=>{const i=E.useMemo(()=>r(({TextField:u,...p})=>L.jsx(u,{...p})),[r]);return L.jsx(i,{...n})},ot=({accessToken:r})=>(r&&(Je.accessToken=r),null);var pe={exports:{}};(function(r,n){(function(i,u){r.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(I,C,re){return C||re.slice(1)})})}(c,_===void 0?{}:_);return l.call(this,b)}}})})(pe);var it=pe.exports;const ut=He(it);N.extend(ut);const st=({language:r})=>(E.useEffect(()=>{var i;const n=r||((i=navigator.language)==null?void 0:i.slice(0,2))||"en";if(n==="en"){Promise.resolve().then(()=>he).then(()=>{N.locale(n)});return}n==="fr"&&Promise.resolve().then(()=>Rt).then(()=>{N.locale(n)}).catch(()=>{Promise.resolve().then(()=>he).then(()=>{N.locale("en")})})},[r]),null),ct=({children:r,defaultQueriesOptions:n,defaultMutationsOptions:i})=>{const u=new fe.QueryClient({defaultOptions:{mutations:{...i},queries:{getNextPageParam:(p,y,a)=>p.length+(a||0),refetchOnWindowFocus:!1,retry:3,...n}}});return L.jsx(fe.QueryClientProvider,{client:u,children:r})},lt=r=>{const{unknownErrorTranslationKey:n="error.unknownError"}=r||{},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}},ft=({data:r,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(r)return r.pages.reduce((c,_)=>[...c,..._],[])},[r]);return{fetchNextPageOnRowsScrollEnd:a,isLoading:i||p,loadingVariant:u?"skeleton":"linear",rows:l}},dt=()=>({clearAuthenticationToken:()=>{M.defaults.headers.common.Authorization=null},setAuthenticationToken:({tokenType:i,accessToken:u})=>{M.defaults.headers.common.Authorization=`${i} ${u}`}}),me=(r,n="ll")=>N(r).format(n),ge=(r,n="km")=>{const i=Number(r);return Number.isNaN(i)?`0 ${n}`:`${i.toFixed(2)} ${n}`},vt=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 i=vt(r),u=typeof r=="object"&&"pathname"in r?`${r.origin}${i}`:r;return typeof n=="number"?`${u.replace("/files",`/thumbs/${n}`)}`:u},pt=()=>{const{apiURL:r}=E.useContext(G);return{dateAdapter:me,distanceAdapter:ge,filePathAdapter:(i,u)=>_e(r&&typeof i=="string"?{origin:r,pathname:i}:i,u)}},mt=r=>r.charAt(0).toUpperCase()+r.slice(1).toLowerCase(),gt=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)},_t=(r,n,i)=>{const u=gt(n),p=mt(i);return`${u}${p}`},ht=r=>{if(r)return(r==null?void 0:r.reduce((n,i)=>(n[i]={query:{useInfinite:!0,useInfiniteQueryParam:"offset",useQuery:!0}},n),{}))||{}},yt=r=>{const{input:n="./openapi.json",operationsToGenerateInfiniteQueryHook:i=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:_t,...(i==null?void 0:i.length)&&{operations:ht(i)},query:{useQuery:!0}},schemas:"src/api/model",target:"src/api/services/api.ts"}}}};var bt={exports:{}};(function(r,n){(function(i,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(i){var u=["th","st","nd","rd"],p=i%100;return"["+i+(u[(p-20)%10]||u[p]||u[0])+"]"}}})})(bt);const he=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var Et={exports:{}};(function(r,n){(function(i,u){r.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})})(Et);const Rt=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));d.GTMSendPageView=Qe,d.InitializeAxiosConfig=tt,d.InitializeDaysJSConfig=st,d.InitializeI18nConfig=rt,d.InitializeMapBoxConfig=ot,d.InitializeSentryConfig=nt,d.InjectDependenciesContext=G,d.InjectDependenciesProvider=et,d.MaskTextField=at,d.QueryClientProviderWithConfig=ct,d.RequireAuth=Ze,d.dateAdapter=me,d.distanceAdapter=ge,d.getOrvalConfig=yt,d.useAdapter=pt,d.useAuth=dt,d.useInfiniteDataGrid=ft,d.useResponseError=lt,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});
|