@tracktor/shared-module 1.0.7 → 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 +2 -2
- package/README.md +3 -4
- package/dist/components/Utils/GTMSendPageView.d.ts +1 -1
- package/dist/components/Utils/InitializeMapBoxConfig.d.ts +0 -1
- package/dist/context/InjectDependenciesProvider.d.ts +1 -1
- package/dist/context/QueryClientProviderWithConfig.d.ts +3 -0
- package/dist/{en-QSkYj0iy.js → en-bFWwYyLH.js} +1 -1
- package/dist/{fr-TlWvAsWw.js → fr-WPlDe-ow.js} +1 -1
- package/dist/{main-srWqMrqy.js → main-YTkqJNOe.js} +273 -297
- package/dist/main.js +1 -1
- package/dist/main.umd.cjs +10 -10
- package/package.json +1 -1
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import Ie, { useState as
|
|
2
|
-
import
|
|
3
|
-
import { useLocation 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
|
+
import $ from "axios";
|
|
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
|
+
import { useGoogleTagManager as xr } from "@tracktor/react-google-tag-manager";
|
|
4
5
|
import I, { t as jr } from "i18next";
|
|
5
6
|
import Pr from "i18next-browser-languagedetector";
|
|
6
7
|
import { initReactI18next as Ar } from "react-i18next";
|
|
7
8
|
import * as oe from "@sentry/react";
|
|
9
|
+
import kr from "mapbox-gl";
|
|
8
10
|
import U from "dayjs";
|
|
9
|
-
import { QueryClient as
|
|
11
|
+
import { QueryClient as Dr, QueryClientProvider as $r } from "@tanstack/react-query";
|
|
10
12
|
var Mr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
11
|
-
function
|
|
13
|
+
function Fr(t) {
|
|
12
14
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
13
15
|
}
|
|
14
|
-
var
|
|
16
|
+
var se = { exports: {} }, V = {};
|
|
15
17
|
/**
|
|
16
18
|
* @license React
|
|
17
19
|
* react-jsx-runtime.development.js
|
|
@@ -21,14 +23,14 @@ var ue = { exports: {} }, V = {};
|
|
|
21
23
|
* This source code is licensed under the MIT license found in the
|
|
22
24
|
* LICENSE file in the root directory of this source tree.
|
|
23
25
|
*/
|
|
24
|
-
var
|
|
25
|
-
function
|
|
26
|
-
return
|
|
27
|
-
var t = Ie, n = Symbol.for("react.element"), i = Symbol.for("react.portal"), s = Symbol.for("react.fragment"),
|
|
26
|
+
var Fe;
|
|
27
|
+
function Lr() {
|
|
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"), 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";
|
|
28
30
|
function R(e) {
|
|
29
31
|
if (e === null || typeof e != "object")
|
|
30
32
|
return null;
|
|
31
|
-
var r = j && e[j] || e[
|
|
33
|
+
var r = j && e[j] || e[w];
|
|
32
34
|
return typeof r == "function" ? r : null;
|
|
33
35
|
}
|
|
34
36
|
var D = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -36,39 +38,39 @@ function $r() {
|
|
|
36
38
|
{
|
|
37
39
|
for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), u = 1; u < r; u++)
|
|
38
40
|
a[u - 1] = arguments[u];
|
|
39
|
-
|
|
41
|
+
F("error", e, a);
|
|
40
42
|
}
|
|
41
43
|
}
|
|
42
|
-
function
|
|
44
|
+
function F(e, r, a) {
|
|
43
45
|
{
|
|
44
|
-
var u = D.ReactDebugCurrentFrame,
|
|
45
|
-
|
|
46
|
+
var u = D.ReactDebugCurrentFrame, p = u.getStackAddendum();
|
|
47
|
+
p !== "" && (r += "%s", a = a.concat([p]));
|
|
46
48
|
var m = a.map(function(d) {
|
|
47
49
|
return String(d);
|
|
48
50
|
});
|
|
49
51
|
m.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, m);
|
|
50
52
|
}
|
|
51
53
|
}
|
|
52
|
-
var
|
|
54
|
+
var ze = !1, Ue = !1, qe = !1, Be = !1, Ge = !1, fe;
|
|
53
55
|
fe = Symbol.for("react.module.reference");
|
|
54
|
-
function
|
|
55
|
-
return !!(typeof e == "string" || typeof e == "function" || e === s || e ===
|
|
56
|
+
function Je(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
|
|
56
58
|
// types supported by any Flight configuration anywhere since
|
|
57
59
|
// we don't know which Flight build this will end up being used
|
|
58
60
|
// with.
|
|
59
61
|
e.$$typeof === fe || e.getModuleId !== void 0));
|
|
60
62
|
}
|
|
61
|
-
function
|
|
63
|
+
function He(e, r, a) {
|
|
62
64
|
var u = e.displayName;
|
|
63
65
|
if (u)
|
|
64
66
|
return u;
|
|
65
|
-
var
|
|
66
|
-
return
|
|
67
|
+
var p = r.displayName || r.name || "";
|
|
68
|
+
return p !== "" ? a + "(" + p + ")" : a;
|
|
67
69
|
}
|
|
68
70
|
function de(e) {
|
|
69
71
|
return e.displayName || "Context";
|
|
70
72
|
}
|
|
71
|
-
function
|
|
73
|
+
function P(e) {
|
|
72
74
|
if (e == null)
|
|
73
75
|
return null;
|
|
74
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")
|
|
@@ -80,13 +82,13 @@ function $r() {
|
|
|
80
82
|
return "Fragment";
|
|
81
83
|
case i:
|
|
82
84
|
return "Portal";
|
|
83
|
-
case
|
|
85
|
+
case y:
|
|
84
86
|
return "Profiler";
|
|
85
|
-
case
|
|
87
|
+
case v:
|
|
86
88
|
return "StrictMode";
|
|
87
|
-
case
|
|
89
|
+
case g:
|
|
88
90
|
return "Suspense";
|
|
89
|
-
case
|
|
91
|
+
case h:
|
|
90
92
|
return "SuspenseList";
|
|
91
93
|
}
|
|
92
94
|
if (typeof e == "object")
|
|
@@ -98,14 +100,14 @@ function $r() {
|
|
|
98
100
|
var a = e;
|
|
99
101
|
return de(a._context) + ".Provider";
|
|
100
102
|
case l:
|
|
101
|
-
return
|
|
103
|
+
return He(e, e.render, "ForwardRef");
|
|
102
104
|
case C:
|
|
103
105
|
var u = e.displayName || null;
|
|
104
|
-
return u !== null ? u :
|
|
106
|
+
return u !== null ? u : P(e.type) || "Memo";
|
|
105
107
|
case T: {
|
|
106
|
-
var
|
|
108
|
+
var p = e, m = p._payload, d = p._init;
|
|
107
109
|
try {
|
|
108
|
-
return
|
|
110
|
+
return P(d(m));
|
|
109
111
|
} catch {
|
|
110
112
|
return null;
|
|
111
113
|
}
|
|
@@ -113,11 +115,11 @@ function $r() {
|
|
|
113
115
|
}
|
|
114
116
|
return null;
|
|
115
117
|
}
|
|
116
|
-
var
|
|
118
|
+
var M = Object.assign, N = 0, pe, ve, me, ge, he, ye, be;
|
|
117
119
|
function Ee() {
|
|
118
120
|
}
|
|
119
121
|
Ee.__reactDisabledLog = !0;
|
|
120
|
-
function
|
|
122
|
+
function Xe() {
|
|
121
123
|
{
|
|
122
124
|
if (N === 0) {
|
|
123
125
|
pe = console.log, ve = console.info, me = console.warn, ge = console.error, he = console.group, ye = console.groupCollapsed, be = console.groupEnd;
|
|
@@ -140,7 +142,7 @@ function $r() {
|
|
|
140
142
|
N++;
|
|
141
143
|
}
|
|
142
144
|
}
|
|
143
|
-
function
|
|
145
|
+
function Ke() {
|
|
144
146
|
{
|
|
145
147
|
if (N--, N === 0) {
|
|
146
148
|
var e = {
|
|
@@ -149,25 +151,25 @@ function $r() {
|
|
|
149
151
|
writable: !0
|
|
150
152
|
};
|
|
151
153
|
Object.defineProperties(console, {
|
|
152
|
-
log:
|
|
154
|
+
log: M({}, e, {
|
|
153
155
|
value: pe
|
|
154
156
|
}),
|
|
155
|
-
info:
|
|
157
|
+
info: M({}, e, {
|
|
156
158
|
value: ve
|
|
157
159
|
}),
|
|
158
|
-
warn:
|
|
160
|
+
warn: M({}, e, {
|
|
159
161
|
value: me
|
|
160
162
|
}),
|
|
161
|
-
error:
|
|
163
|
+
error: M({}, e, {
|
|
162
164
|
value: ge
|
|
163
165
|
}),
|
|
164
|
-
group:
|
|
166
|
+
group: M({}, e, {
|
|
165
167
|
value: he
|
|
166
168
|
}),
|
|
167
|
-
groupCollapsed:
|
|
169
|
+
groupCollapsed: M({}, e, {
|
|
168
170
|
value: ye
|
|
169
171
|
}),
|
|
170
|
-
groupEnd:
|
|
172
|
+
groupEnd: M({}, e, {
|
|
171
173
|
value: be
|
|
172
174
|
})
|
|
173
175
|
});
|
|
@@ -176,38 +178,38 @@ function $r() {
|
|
|
176
178
|
}
|
|
177
179
|
}
|
|
178
180
|
var K = D.ReactCurrentDispatcher, Z;
|
|
179
|
-
function
|
|
181
|
+
function q(e, r, a) {
|
|
180
182
|
{
|
|
181
183
|
if (Z === void 0)
|
|
182
184
|
try {
|
|
183
185
|
throw Error();
|
|
184
|
-
} catch (
|
|
185
|
-
var u =
|
|
186
|
+
} catch (p) {
|
|
187
|
+
var u = p.stack.trim().match(/\n( *(at )?)/);
|
|
186
188
|
Z = u && u[1] || "";
|
|
187
189
|
}
|
|
188
190
|
return `
|
|
189
191
|
` + Z + e;
|
|
190
192
|
}
|
|
191
193
|
}
|
|
192
|
-
var Q = !1,
|
|
194
|
+
var Q = !1, B;
|
|
193
195
|
{
|
|
194
|
-
var
|
|
195
|
-
|
|
196
|
+
var Ze = typeof WeakMap == "function" ? WeakMap : Map;
|
|
197
|
+
B = new Ze();
|
|
196
198
|
}
|
|
197
199
|
function Re(e, r) {
|
|
198
200
|
if (!e || Q)
|
|
199
201
|
return "";
|
|
200
202
|
{
|
|
201
|
-
var a =
|
|
203
|
+
var a = B.get(e);
|
|
202
204
|
if (a !== void 0)
|
|
203
205
|
return a;
|
|
204
206
|
}
|
|
205
207
|
var u;
|
|
206
208
|
Q = !0;
|
|
207
|
-
var
|
|
209
|
+
var p = Error.prepareStackTrace;
|
|
208
210
|
Error.prepareStackTrace = void 0;
|
|
209
211
|
var m;
|
|
210
|
-
m = K.current, K.current = null,
|
|
212
|
+
m = K.current, K.current = null, Xe();
|
|
211
213
|
try {
|
|
212
214
|
if (r) {
|
|
213
215
|
var d = function() {
|
|
@@ -220,81 +222,81 @@ function $r() {
|
|
|
220
222
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
221
223
|
try {
|
|
222
224
|
Reflect.construct(d, []);
|
|
223
|
-
} catch (
|
|
224
|
-
u =
|
|
225
|
+
} catch (A) {
|
|
226
|
+
u = A;
|
|
225
227
|
}
|
|
226
228
|
Reflect.construct(e, [], d);
|
|
227
229
|
} else {
|
|
228
230
|
try {
|
|
229
231
|
d.call();
|
|
230
|
-
} catch (
|
|
231
|
-
u =
|
|
232
|
+
} catch (A) {
|
|
233
|
+
u = A;
|
|
232
234
|
}
|
|
233
235
|
e.call(d.prototype);
|
|
234
236
|
}
|
|
235
237
|
} else {
|
|
236
238
|
try {
|
|
237
239
|
throw Error();
|
|
238
|
-
} catch (
|
|
239
|
-
u =
|
|
240
|
+
} catch (A) {
|
|
241
|
+
u = A;
|
|
240
242
|
}
|
|
241
243
|
e();
|
|
242
244
|
}
|
|
243
|
-
} catch (
|
|
244
|
-
if (
|
|
245
|
-
for (var f =
|
|
246
|
-
`),
|
|
247
|
-
`), b = f.length - 1, E =
|
|
245
|
+
} catch (A) {
|
|
246
|
+
if (A && u && typeof A.stack == "string") {
|
|
247
|
+
for (var f = A.stack.split(`
|
|
248
|
+
`), S = u.stack.split(`
|
|
249
|
+
`), b = f.length - 1, E = S.length - 1; b >= 1 && E >= 0 && f[b] !== S[E]; )
|
|
248
250
|
E--;
|
|
249
251
|
for (; b >= 1 && E >= 0; b--, E--)
|
|
250
|
-
if (f[b] !==
|
|
252
|
+
if (f[b] !== S[E]) {
|
|
251
253
|
if (b !== 1 || E !== 1)
|
|
252
254
|
do
|
|
253
|
-
if (b--, E--, E < 0 || f[b] !==
|
|
254
|
-
var
|
|
255
|
+
if (b--, E--, E < 0 || f[b] !== S[E]) {
|
|
256
|
+
var O = `
|
|
255
257
|
` + f[b].replace(" at new ", " at ");
|
|
256
|
-
return e.displayName &&
|
|
258
|
+
return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && B.set(e, O), O;
|
|
257
259
|
}
|
|
258
260
|
while (b >= 1 && E >= 0);
|
|
259
261
|
break;
|
|
260
262
|
}
|
|
261
263
|
}
|
|
262
264
|
} finally {
|
|
263
|
-
Q = !1, K.current = m,
|
|
265
|
+
Q = !1, K.current = m, Ke(), Error.prepareStackTrace = p;
|
|
264
266
|
}
|
|
265
|
-
var Y = e ? e.displayName || e.name : "",
|
|
266
|
-
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;
|
|
267
269
|
}
|
|
268
|
-
function
|
|
270
|
+
function Qe(e, r, a) {
|
|
269
271
|
return Re(e, !1);
|
|
270
272
|
}
|
|
271
|
-
function
|
|
273
|
+
function er(e) {
|
|
272
274
|
var r = e.prototype;
|
|
273
275
|
return !!(r && r.isReactComponent);
|
|
274
276
|
}
|
|
275
|
-
function
|
|
277
|
+
function G(e, r, a) {
|
|
276
278
|
if (e == null)
|
|
277
279
|
return "";
|
|
278
280
|
if (typeof e == "function")
|
|
279
|
-
return Re(e,
|
|
281
|
+
return Re(e, er(e));
|
|
280
282
|
if (typeof e == "string")
|
|
281
|
-
return
|
|
283
|
+
return q(e);
|
|
282
284
|
switch (e) {
|
|
285
|
+
case g:
|
|
286
|
+
return q("Suspense");
|
|
283
287
|
case h:
|
|
284
|
-
return
|
|
285
|
-
case y:
|
|
286
|
-
return B("SuspenseList");
|
|
288
|
+
return q("SuspenseList");
|
|
287
289
|
}
|
|
288
290
|
if (typeof e == "object")
|
|
289
291
|
switch (e.$$typeof) {
|
|
290
292
|
case l:
|
|
291
|
-
return
|
|
293
|
+
return Qe(e.render);
|
|
292
294
|
case C:
|
|
293
|
-
return
|
|
295
|
+
return G(e.type, r, a);
|
|
294
296
|
case T: {
|
|
295
|
-
var u = e,
|
|
297
|
+
var u = e, p = u._payload, m = u._init;
|
|
296
298
|
try {
|
|
297
|
-
return
|
|
299
|
+
return G(m(p), r, a);
|
|
298
300
|
} catch {
|
|
299
301
|
}
|
|
300
302
|
}
|
|
@@ -304,12 +306,12 @@ function $r() {
|
|
|
304
306
|
var J = Object.prototype.hasOwnProperty, _e = {}, Ce = D.ReactDebugCurrentFrame;
|
|
305
307
|
function H(e) {
|
|
306
308
|
if (e) {
|
|
307
|
-
var r = e._owner, a =
|
|
309
|
+
var r = e._owner, a = G(e.type, e._source, r ? r.type : null);
|
|
308
310
|
Ce.setExtraStackFrame(a);
|
|
309
311
|
} else
|
|
310
312
|
Ce.setExtraStackFrame(null);
|
|
311
313
|
}
|
|
312
|
-
function
|
|
314
|
+
function rr(e, r, a, u, p) {
|
|
313
315
|
{
|
|
314
316
|
var m = Function.call.bind(J);
|
|
315
317
|
for (var d in e)
|
|
@@ -317,28 +319,28 @@ function $r() {
|
|
|
317
319
|
var f = void 0;
|
|
318
320
|
try {
|
|
319
321
|
if (typeof e[d] != "function") {
|
|
320
|
-
var
|
|
321
|
-
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;
|
|
322
324
|
}
|
|
323
325
|
f = e[d](r, d, u, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
324
326
|
} catch (b) {
|
|
325
327
|
f = b;
|
|
326
328
|
}
|
|
327
|
-
f && !(f instanceof Error) && (H(
|
|
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));
|
|
328
330
|
}
|
|
329
331
|
}
|
|
330
332
|
}
|
|
331
|
-
var
|
|
333
|
+
var tr = Array.isArray;
|
|
332
334
|
function ee(e) {
|
|
333
|
-
return
|
|
335
|
+
return tr(e);
|
|
334
336
|
}
|
|
335
|
-
function
|
|
337
|
+
function nr(e) {
|
|
336
338
|
{
|
|
337
339
|
var r = typeof Symbol == "function" && Symbol.toStringTag, a = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
338
340
|
return a;
|
|
339
341
|
}
|
|
340
342
|
}
|
|
341
|
-
function
|
|
343
|
+
function ar(e) {
|
|
342
344
|
try {
|
|
343
345
|
return Te(e), !1;
|
|
344
346
|
} catch {
|
|
@@ -348,18 +350,18 @@ function $r() {
|
|
|
348
350
|
function Te(e) {
|
|
349
351
|
return "" + e;
|
|
350
352
|
}
|
|
351
|
-
function
|
|
352
|
-
if (
|
|
353
|
-
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
353
|
+
function Se(e) {
|
|
354
|
+
if (ar(e))
|
|
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);
|
|
354
356
|
}
|
|
355
|
-
var W = D.ReactCurrentOwner,
|
|
357
|
+
var W = D.ReactCurrentOwner, or = {
|
|
356
358
|
key: !0,
|
|
357
359
|
ref: !0,
|
|
358
360
|
__self: !0,
|
|
359
361
|
__source: !0
|
|
360
|
-
},
|
|
362
|
+
}, we, Oe, re;
|
|
361
363
|
re = {};
|
|
362
|
-
function
|
|
364
|
+
function ir(e) {
|
|
363
365
|
if (J.call(e, "ref")) {
|
|
364
366
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
365
367
|
if (r && r.isReactWarning)
|
|
@@ -367,7 +369,7 @@ function $r() {
|
|
|
367
369
|
}
|
|
368
370
|
return e.ref !== void 0;
|
|
369
371
|
}
|
|
370
|
-
function
|
|
372
|
+
function sr(e) {
|
|
371
373
|
if (J.call(e, "key")) {
|
|
372
374
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
373
375
|
if (r && r.isReactWarning)
|
|
@@ -375,16 +377,16 @@ function $r() {
|
|
|
375
377
|
}
|
|
376
378
|
return e.key !== void 0;
|
|
377
379
|
}
|
|
378
|
-
function
|
|
380
|
+
function ur(e, r) {
|
|
379
381
|
if (typeof e.ref == "string" && W.current && r && W.current.stateNode !== r) {
|
|
380
|
-
var a =
|
|
381
|
-
re[a] || (_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',
|
|
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);
|
|
382
384
|
}
|
|
383
385
|
}
|
|
384
|
-
function
|
|
386
|
+
function lr(e, r) {
|
|
385
387
|
{
|
|
386
388
|
var a = function() {
|
|
387
|
-
|
|
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));
|
|
388
390
|
};
|
|
389
391
|
a.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
390
392
|
get: a,
|
|
@@ -392,10 +394,10 @@ function $r() {
|
|
|
392
394
|
});
|
|
393
395
|
}
|
|
394
396
|
}
|
|
395
|
-
function
|
|
397
|
+
function cr(e, r) {
|
|
396
398
|
{
|
|
397
399
|
var a = function() {
|
|
398
|
-
|
|
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));
|
|
399
401
|
};
|
|
400
402
|
a.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
401
403
|
get: a,
|
|
@@ -403,7 +405,7 @@ function $r() {
|
|
|
403
405
|
});
|
|
404
406
|
}
|
|
405
407
|
}
|
|
406
|
-
var
|
|
408
|
+
var fr = function(e, r, a, u, p, m, d) {
|
|
407
409
|
var f = {
|
|
408
410
|
// This tag allows us to uniquely identify this as a React Element
|
|
409
411
|
$$typeof: n,
|
|
@@ -429,34 +431,34 @@ function $r() {
|
|
|
429
431
|
configurable: !1,
|
|
430
432
|
enumerable: !1,
|
|
431
433
|
writable: !1,
|
|
432
|
-
value:
|
|
434
|
+
value: p
|
|
433
435
|
}), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
|
|
434
436
|
};
|
|
435
|
-
function
|
|
437
|
+
function dr(e, r, a, u, p) {
|
|
436
438
|
{
|
|
437
|
-
var m, d = {}, f = null,
|
|
438
|
-
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));
|
|
439
441
|
for (m in r)
|
|
440
|
-
J.call(r, m) && !
|
|
442
|
+
J.call(r, m) && !or.hasOwnProperty(m) && (d[m] = r[m]);
|
|
441
443
|
if (e && e.defaultProps) {
|
|
442
444
|
var b = e.defaultProps;
|
|
443
445
|
for (m in b)
|
|
444
446
|
d[m] === void 0 && (d[m] = b[m]);
|
|
445
447
|
}
|
|
446
|
-
if (f ||
|
|
448
|
+
if (f || S) {
|
|
447
449
|
var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
448
|
-
f &&
|
|
450
|
+
f && lr(d, E), S && cr(d, E);
|
|
449
451
|
}
|
|
450
|
-
return
|
|
452
|
+
return fr(e, f, S, p, u, W.current, d);
|
|
451
453
|
}
|
|
452
454
|
}
|
|
453
|
-
var te = D.ReactCurrentOwner,
|
|
454
|
-
function
|
|
455
|
+
var te = D.ReactCurrentOwner, xe = D.ReactDebugCurrentFrame;
|
|
456
|
+
function L(e) {
|
|
455
457
|
if (e) {
|
|
456
|
-
var r = e._owner, a =
|
|
457
|
-
|
|
458
|
+
var r = e._owner, a = G(e.type, e._source, r ? r.type : null);
|
|
459
|
+
xe.setExtraStackFrame(a);
|
|
458
460
|
} else
|
|
459
|
-
|
|
461
|
+
xe.setExtraStackFrame(null);
|
|
460
462
|
}
|
|
461
463
|
var ne;
|
|
462
464
|
ne = !1;
|
|
@@ -466,7 +468,7 @@ function $r() {
|
|
|
466
468
|
function je() {
|
|
467
469
|
{
|
|
468
470
|
if (te.current) {
|
|
469
|
-
var e =
|
|
471
|
+
var e = P(te.current.type);
|
|
470
472
|
if (e)
|
|
471
473
|
return `
|
|
472
474
|
|
|
@@ -475,7 +477,7 @@ Check the render method of \`` + e + "`.";
|
|
|
475
477
|
return "";
|
|
476
478
|
}
|
|
477
479
|
}
|
|
478
|
-
function
|
|
480
|
+
function pr(e) {
|
|
479
481
|
{
|
|
480
482
|
if (e !== void 0) {
|
|
481
483
|
var r = e.fileName.replace(/^.*[\\\/]/, ""), a = e.lineNumber;
|
|
@@ -487,7 +489,7 @@ Check your code at ` + r + ":" + a + ".";
|
|
|
487
489
|
}
|
|
488
490
|
}
|
|
489
491
|
var Pe = {};
|
|
490
|
-
function
|
|
492
|
+
function vr(e) {
|
|
491
493
|
{
|
|
492
494
|
var r = je();
|
|
493
495
|
if (!r) {
|
|
@@ -504,12 +506,12 @@ Check the top-level render call using <` + a + ">.");
|
|
|
504
506
|
if (!e._store || e._store.validated || e.key != null)
|
|
505
507
|
return;
|
|
506
508
|
e._store.validated = !0;
|
|
507
|
-
var a =
|
|
509
|
+
var a = vr(r);
|
|
508
510
|
if (Pe[a])
|
|
509
511
|
return;
|
|
510
512
|
Pe[a] = !0;
|
|
511
513
|
var u = "";
|
|
512
|
-
e && e._owner && e._owner !== te.current && (u = " It was passed a child from " +
|
|
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);
|
|
513
515
|
}
|
|
514
516
|
}
|
|
515
517
|
function ke(e, r) {
|
|
@@ -524,14 +526,14 @@ Check the top-level render call using <` + a + ">.");
|
|
|
524
526
|
else if (ae(e))
|
|
525
527
|
e._store && (e._store.validated = !0);
|
|
526
528
|
else if (e) {
|
|
527
|
-
var
|
|
528
|
-
if (typeof
|
|
529
|
-
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; )
|
|
530
532
|
ae(d.value) && Ae(d.value, r);
|
|
531
533
|
}
|
|
532
534
|
}
|
|
533
535
|
}
|
|
534
|
-
function
|
|
536
|
+
function mr(e) {
|
|
535
537
|
{
|
|
536
538
|
var r = e.type;
|
|
537
539
|
if (r == null || typeof r == "string")
|
|
@@ -546,66 +548,66 @@ Check the top-level render call using <` + a + ">.");
|
|
|
546
548
|
else
|
|
547
549
|
return;
|
|
548
550
|
if (a) {
|
|
549
|
-
var u =
|
|
550
|
-
|
|
551
|
+
var u = P(r);
|
|
552
|
+
rr(a, e.props, "prop", u, e);
|
|
551
553
|
} else if (r.PropTypes !== void 0 && !ne) {
|
|
552
554
|
ne = !0;
|
|
553
|
-
var
|
|
554
|
-
_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
555
|
+
var p = P(r);
|
|
556
|
+
_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
|
|
555
557
|
}
|
|
556
558
|
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
557
559
|
}
|
|
558
560
|
}
|
|
559
|
-
function
|
|
561
|
+
function gr(e) {
|
|
560
562
|
{
|
|
561
563
|
for (var r = Object.keys(e.props), a = 0; a < r.length; a++) {
|
|
562
564
|
var u = r[a];
|
|
563
565
|
if (u !== "children" && u !== "key") {
|
|
564
|
-
|
|
566
|
+
L(e), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), L(null);
|
|
565
567
|
break;
|
|
566
568
|
}
|
|
567
569
|
}
|
|
568
|
-
e.ref !== null && (
|
|
570
|
+
e.ref !== null && (L(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), L(null));
|
|
569
571
|
}
|
|
570
572
|
}
|
|
571
|
-
function De(e, r, a, u,
|
|
573
|
+
function De(e, r, a, u, p, m) {
|
|
572
574
|
{
|
|
573
|
-
var d =
|
|
575
|
+
var d = Je(e);
|
|
574
576
|
if (!d) {
|
|
575
577
|
var f = "";
|
|
576
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.");
|
|
577
|
-
var
|
|
578
|
-
|
|
579
|
+
var S = pr(p);
|
|
580
|
+
S ? f += S : f += je();
|
|
579
581
|
var b;
|
|
580
|
-
e === null ? b = "null" : ee(e) ? b = "array" : e !== void 0 && e.$$typeof === n ? (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, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", b, f);
|
|
581
583
|
}
|
|
582
|
-
var E =
|
|
584
|
+
var E = dr(e, r, a, p, m);
|
|
583
585
|
if (E == null)
|
|
584
586
|
return E;
|
|
585
587
|
if (d) {
|
|
586
|
-
var
|
|
587
|
-
if (
|
|
588
|
+
var O = r.children;
|
|
589
|
+
if (O !== void 0)
|
|
588
590
|
if (u)
|
|
589
|
-
if (ee(
|
|
590
|
-
for (var Y = 0; Y <
|
|
591
|
-
ke(
|
|
592
|
-
Object.freeze && Object.freeze(
|
|
591
|
+
if (ee(O)) {
|
|
592
|
+
for (var Y = 0; Y < O.length; Y++)
|
|
593
|
+
ke(O[Y], e);
|
|
594
|
+
Object.freeze && Object.freeze(O);
|
|
593
595
|
} else
|
|
594
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.");
|
|
595
597
|
else
|
|
596
|
-
ke(
|
|
598
|
+
ke(O, e);
|
|
597
599
|
}
|
|
598
|
-
return e === s ?
|
|
600
|
+
return e === s ? gr(E) : mr(E), E;
|
|
599
601
|
}
|
|
600
602
|
}
|
|
601
|
-
function
|
|
603
|
+
function hr(e, r, a) {
|
|
602
604
|
return De(e, r, a, !0);
|
|
603
605
|
}
|
|
604
|
-
function
|
|
606
|
+
function yr(e, r, a) {
|
|
605
607
|
return De(e, r, a, !1);
|
|
606
608
|
}
|
|
607
|
-
var
|
|
608
|
-
V.Fragment = s, V.jsx =
|
|
609
|
+
var br = yr, Er = hr;
|
|
610
|
+
V.Fragment = s, V.jsx = br, V.jsxs = Er;
|
|
609
611
|
}()), V;
|
|
610
612
|
}
|
|
611
613
|
var z = {};
|
|
@@ -618,89 +620,74 @@ var z = {};
|
|
|
618
620
|
* This source code is licensed under the MIT license found in the
|
|
619
621
|
* LICENSE file in the root directory of this source tree.
|
|
620
622
|
*/
|
|
621
|
-
var
|
|
622
|
-
function
|
|
623
|
-
if (
|
|
623
|
+
var Le;
|
|
624
|
+
function Yr() {
|
|
625
|
+
if (Le)
|
|
624
626
|
return z;
|
|
625
|
-
|
|
626
|
-
var t = Ie, n = Symbol.for("react.element"), i = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty,
|
|
627
|
-
function o(c, l,
|
|
628
|
-
var
|
|
629
|
-
|
|
630
|
-
for (
|
|
631
|
-
s.call(l,
|
|
627
|
+
Le = 1;
|
|
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
|
+
function o(c, l, g) {
|
|
630
|
+
var h, C = {}, T = null, x = null;
|
|
631
|
+
g !== void 0 && (T = "" + g), l.key !== void 0 && (T = "" + l.key), l.ref !== void 0 && (x = l.ref);
|
|
632
|
+
for (h in l)
|
|
633
|
+
s.call(l, h) && !y.hasOwnProperty(h) && (C[h] = l[h]);
|
|
632
634
|
if (c && c.defaultProps)
|
|
633
|
-
for (
|
|
634
|
-
C[
|
|
635
|
-
return { $$typeof: n, type: c, key: T, ref:
|
|
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 };
|
|
636
638
|
}
|
|
637
639
|
return z.Fragment = i, z.jsx = o, z.jsxs = o, z;
|
|
638
640
|
}
|
|
639
|
-
process.env.NODE_ENV === "production" ?
|
|
640
|
-
var
|
|
641
|
-
const
|
|
641
|
+
process.env.NODE_ENV === "production" ? se.exports = Yr() : se.exports = Lr();
|
|
642
|
+
var k = se.exports;
|
|
643
|
+
const at = ({
|
|
642
644
|
Fallback: t,
|
|
643
645
|
loginPath: n = "/login",
|
|
644
646
|
localStorageKey: i = "user",
|
|
645
647
|
redirect401Path: s = "/login",
|
|
646
|
-
isLogged:
|
|
648
|
+
isLogged: v
|
|
647
649
|
}) => {
|
|
648
|
-
var C, T,
|
|
649
|
-
const [
|
|
650
|
-
return
|
|
651
|
-
var
|
|
652
|
-
l.current || (l.current = !0, (
|
|
650
|
+
var C, T, x, j;
|
|
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(
|
|
653
655
|
(R) => R,
|
|
654
656
|
async (R) => {
|
|
655
|
-
var
|
|
656
|
-
return typeof R == "object" && R && "response" in R && R.response && typeof R.response == "object" && "status" in R.response && R.response && typeof R.response == "object" && "status" in R.response && ((
|
|
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);
|
|
657
659
|
}
|
|
658
660
|
));
|
|
659
|
-
}, [i, s]),
|
|
660
|
-
},
|
|
661
|
-
const { pathname:
|
|
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
|
+
}, ot = () => {
|
|
663
|
+
const { pathname: t } = le(), { sendEvent: n } = xr();
|
|
662
664
|
return X(() => {
|
|
663
|
-
|
|
664
|
-
}, [
|
|
665
|
-
}, nt = () => {
|
|
666
|
-
const [t, n] = ie(), [i, s] = ie();
|
|
667
|
-
if (X(() => {
|
|
668
|
-
(async () => {
|
|
669
|
-
try {
|
|
670
|
-
n(await import("@tracktor/react-google-tag-manager")), s(await import("react-router-dom"));
|
|
671
|
-
} catch (g) {
|
|
672
|
-
console.error(g);
|
|
673
|
-
}
|
|
674
|
-
})().then();
|
|
675
|
-
}, []), t && i) {
|
|
676
|
-
const { useGoogleTagManager: p } = t, { useLocation: g, Outlet: o } = i;
|
|
677
|
-
return /* @__PURE__ */ P.jsx(Yr, { useLocation: g, Outlet: o, useGoogleTagManager: p });
|
|
678
|
-
}
|
|
679
|
-
return null;
|
|
665
|
+
n({ event: "pageView", pathname: t });
|
|
666
|
+
}, [t, n]), /* @__PURE__ */ k.jsx(We, {});
|
|
680
667
|
}, ce = Tr({
|
|
681
668
|
apiURL: void 0,
|
|
682
669
|
children: void 0
|
|
683
|
-
}),
|
|
684
|
-
const i =
|
|
670
|
+
}), it = ({ children: t, apiURL: n }) => {
|
|
671
|
+
const i = ue(
|
|
685
672
|
() => ({
|
|
686
673
|
apiURL: n
|
|
687
674
|
}),
|
|
688
675
|
[n]
|
|
689
676
|
);
|
|
690
|
-
return /* @__PURE__ */
|
|
691
|
-
},
|
|
677
|
+
return /* @__PURE__ */ k.jsx(ce.Provider, { value: i, children: t });
|
|
678
|
+
}, st = ({
|
|
692
679
|
tokenTypeKey: t = "tokenType",
|
|
693
680
|
userLocalStorageKey: n = "user",
|
|
694
681
|
tokenKey: i = "accessToken",
|
|
695
682
|
postContentType: s = "application/json",
|
|
696
|
-
...
|
|
683
|
+
...v
|
|
697
684
|
}) => {
|
|
698
|
-
const { apiURL:
|
|
699
|
-
if (
|
|
685
|
+
const { apiURL: y = v.apiURL } = Ne(ce);
|
|
686
|
+
if (!$.defaults)
|
|
700
687
|
return null;
|
|
701
|
-
const o = localStorage.getItem(n), c = o ? JSON.parse(o) : null, l = c != null && c[t] ? c[t] : null,
|
|
702
|
-
return
|
|
703
|
-
},
|
|
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 }) => {
|
|
704
691
|
var i;
|
|
705
692
|
return (i = I) != null && i.isInitialized || (I.use(Pr).use(Ar).init({
|
|
706
693
|
debug: t,
|
|
@@ -720,13 +707,13 @@ const tt = ({
|
|
|
720
707
|
}), I.on("languageChanged", (s) => {
|
|
721
708
|
document.documentElement.setAttribute("lang", s);
|
|
722
709
|
})), null;
|
|
723
|
-
},
|
|
710
|
+
}, lt = ({
|
|
724
711
|
dsn: t,
|
|
725
712
|
integrations: n,
|
|
726
713
|
tracesSampleRate: i,
|
|
727
714
|
replaysSessionSampleRate: s,
|
|
728
|
-
replaysOnErrorSampleRate:
|
|
729
|
-
tracePropagationTargets:
|
|
715
|
+
replaysOnErrorSampleRate: v,
|
|
716
|
+
tracePropagationTargets: y,
|
|
730
717
|
ignoreErrors: o,
|
|
731
718
|
debug: c,
|
|
732
719
|
environment: l
|
|
@@ -738,140 +725,129 @@ const tt = ({
|
|
|
738
725
|
integrations: [
|
|
739
726
|
oe.reactRouterV6BrowserTracingIntegration({
|
|
740
727
|
createRoutesFromChildren: Sr,
|
|
741
|
-
matchRoutes:
|
|
728
|
+
matchRoutes: wr,
|
|
742
729
|
useEffect: X,
|
|
743
|
-
useLocation:
|
|
730
|
+
useLocation: le,
|
|
744
731
|
useNavigationType: Or
|
|
745
732
|
}),
|
|
746
733
|
...n || []
|
|
747
734
|
],
|
|
748
|
-
replaysOnErrorSampleRate:
|
|
735
|
+
replaysOnErrorSampleRate: v || 1,
|
|
749
736
|
replaysSessionSampleRate: s || 0.1,
|
|
750
|
-
tracePropagationTargets:
|
|
737
|
+
tracePropagationTargets: y,
|
|
751
738
|
tracesSampleRate: i || 1
|
|
752
|
-
}), null),
|
|
753
|
-
const i =
|
|
739
|
+
}), null), ct = ({ IMaskMixin: t, ...n }) => {
|
|
740
|
+
const i = ue(
|
|
754
741
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
755
|
-
() => t(({ TextField: s, ...
|
|
742
|
+
() => t(({ TextField: s, ...v }) => /* @__PURE__ */ k.jsx(s, { ...v })),
|
|
756
743
|
[t]
|
|
757
744
|
);
|
|
758
|
-
return /* @__PURE__ */
|
|
759
|
-
},
|
|
760
|
-
|
|
761
|
-
return;
|
|
762
|
-
(async () => {
|
|
763
|
-
try {
|
|
764
|
-
const i = await import("mapbox-gl");
|
|
765
|
-
i.default.accessToken = t;
|
|
766
|
-
} catch (i) {
|
|
767
|
-
console.error(i);
|
|
768
|
-
}
|
|
769
|
-
})().then();
|
|
770
|
-
}, [t]), null);
|
|
771
|
-
var ze = { exports: {} };
|
|
745
|
+
return /* @__PURE__ */ k.jsx(i, { ...n });
|
|
746
|
+
}, ft = ({ accessToken: t }) => (t && (kr.accessToken = t), null);
|
|
747
|
+
var Ve = { exports: {} };
|
|
772
748
|
(function(t, n) {
|
|
773
749
|
(function(i, s) {
|
|
774
750
|
t.exports = s();
|
|
775
751
|
})(Mr, function() {
|
|
776
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" };
|
|
777
|
-
return function(s,
|
|
778
|
-
var o =
|
|
779
|
-
|
|
753
|
+
return function(s, v, y) {
|
|
754
|
+
var o = v.prototype, c = o.format;
|
|
755
|
+
y.en.formats = i, o.format = function(l) {
|
|
780
756
|
l === void 0 && (l = "YYYY-MM-DDTHH:mm:ssZ");
|
|
781
|
-
var
|
|
782
|
-
return C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(
|
|
783
|
-
var R =
|
|
784
|
-
return j || T[
|
|
785
|
-
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);
|
|
786
762
|
});
|
|
787
763
|
});
|
|
788
|
-
}(l,
|
|
789
|
-
return c.call(this,
|
|
764
|
+
}(l, g === void 0 ? {} : g);
|
|
765
|
+
return c.call(this, h);
|
|
790
766
|
};
|
|
791
767
|
};
|
|
792
768
|
});
|
|
793
|
-
})(
|
|
794
|
-
var Ir =
|
|
795
|
-
const Nr = /* @__PURE__ */
|
|
769
|
+
})(Ve);
|
|
770
|
+
var Ir = Ve.exports;
|
|
771
|
+
const Nr = /* @__PURE__ */ Fr(Ir);
|
|
796
772
|
U.extend(Nr);
|
|
797
|
-
const
|
|
773
|
+
const dt = ({ language: t }) => (X(() => {
|
|
798
774
|
var i;
|
|
799
775
|
const n = t || ((i = navigator.language) == null ? void 0 : i.slice(0, 2)) || "en";
|
|
800
776
|
if (n === "en") {
|
|
801
|
-
import("./en-
|
|
777
|
+
import("./en-bFWwYyLH.js").then((s) => s.e).then(() => {
|
|
802
778
|
U.locale(n);
|
|
803
779
|
});
|
|
804
780
|
return;
|
|
805
781
|
}
|
|
806
|
-
n === "fr" && import("./fr-
|
|
782
|
+
n === "fr" && import("./fr-WPlDe-ow.js").then((s) => s.f).then(() => {
|
|
807
783
|
U.locale(n);
|
|
808
784
|
}).catch(() => {
|
|
809
|
-
import("./en-
|
|
785
|
+
import("./en-bFWwYyLH.js").then((s) => s.e).then(() => {
|
|
810
786
|
U.locale("en");
|
|
811
787
|
});
|
|
812
788
|
});
|
|
813
|
-
}, [t]), null),
|
|
789
|
+
}, [t]), null), pt = ({
|
|
814
790
|
children: t,
|
|
815
791
|
defaultQueriesOptions: n,
|
|
816
792
|
defaultMutationsOptions: i
|
|
817
793
|
}) => {
|
|
818
|
-
const s = new
|
|
794
|
+
const s = new Dr({
|
|
819
795
|
defaultOptions: {
|
|
820
796
|
mutations: {
|
|
821
797
|
...i
|
|
822
798
|
},
|
|
823
799
|
queries: {
|
|
824
|
-
getNextPageParam: (
|
|
800
|
+
getNextPageParam: (v, y, o) => v.length + (o || 0),
|
|
825
801
|
refetchOnWindowFocus: !1,
|
|
826
802
|
retry: 3,
|
|
827
803
|
...n
|
|
828
804
|
}
|
|
829
805
|
}
|
|
830
806
|
});
|
|
831
|
-
return /* @__PURE__ */
|
|
832
|
-
},
|
|
833
|
-
const { unknownErrorTranslationKey: n = "error.unknownError" } = t || {}, i = jr(n), s =
|
|
834
|
-
(
|
|
835
|
-
var c, l,
|
|
836
|
-
const { response: o } =
|
|
837
|
-
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) : (
|
|
807
|
+
return /* @__PURE__ */ k.jsx($r, { client: s, children: t });
|
|
808
|
+
}, vt = (t) => {
|
|
809
|
+
const { unknownErrorTranslationKey: n = "error.unknownError" } = t || {}, i = jr(n), s = ie(
|
|
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;
|
|
838
814
|
},
|
|
839
815
|
[i]
|
|
840
816
|
);
|
|
841
|
-
return { getErrorCode:
|
|
842
|
-
var c, l,
|
|
843
|
-
const { response: o } =
|
|
844
|
-
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) : (
|
|
817
|
+
return { getErrorCode: ie((y) => {
|
|
818
|
+
var c, l, g;
|
|
819
|
+
const { response: o } = y || {};
|
|
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";
|
|
845
821
|
}, []), printError: s };
|
|
846
|
-
},
|
|
822
|
+
}, mt = ({
|
|
847
823
|
data: t,
|
|
848
824
|
fetchNextPage: n,
|
|
849
825
|
isFetchingNextPage: i,
|
|
850
826
|
isInitialLoading: s,
|
|
851
|
-
isLoading:
|
|
852
|
-
enabled:
|
|
827
|
+
isLoading: v,
|
|
828
|
+
enabled: y = !0
|
|
853
829
|
}) => {
|
|
854
|
-
const o =
|
|
830
|
+
const o = ie(
|
|
855
831
|
async (l) => {
|
|
856
|
-
i || !
|
|
832
|
+
i || !y || await n({ pageParam: (l == null ? void 0 : l.pageParam) || l.visibleRowsCount });
|
|
857
833
|
},
|
|
858
|
-
[
|
|
859
|
-
), c =
|
|
834
|
+
[y, n, i]
|
|
835
|
+
), c = ue(() => {
|
|
860
836
|
if (t)
|
|
861
|
-
return t.pages.reduce((l,
|
|
837
|
+
return t.pages.reduce((l, g) => [...l, ...g], []);
|
|
862
838
|
}, [t]);
|
|
863
839
|
return {
|
|
864
840
|
fetchNextPageOnRowsScrollEnd: o,
|
|
865
|
-
isLoading: i ||
|
|
841
|
+
isLoading: i || v,
|
|
866
842
|
loadingVariant: s ? "skeleton" : "linear",
|
|
867
843
|
rows: c
|
|
868
844
|
};
|
|
869
|
-
},
|
|
845
|
+
}, gt = () => ({
|
|
870
846
|
clearAuthenticationToken: () => {
|
|
871
|
-
|
|
847
|
+
$.defaults.headers.common.Authorization = null;
|
|
872
848
|
},
|
|
873
849
|
setAuthenticationToken: ({ tokenType: i, accessToken: s }) => {
|
|
874
|
-
|
|
850
|
+
$.defaults.headers.common.Authorization = `${i} ${s}`;
|
|
875
851
|
}
|
|
876
852
|
}), Wr = (t, n = "ll") => U(t).format(n), Vr = (t, n = "km") => {
|
|
877
853
|
const i = Number(t);
|
|
@@ -884,8 +860,8 @@ const ct = ({ language: t }) => (Ne(() => {
|
|
|
884
860
|
return "";
|
|
885
861
|
const i = zr(t), s = typeof t == "object" && "pathname" in t ? `${t.origin}${i}` : t;
|
|
886
862
|
return typeof n == "number" ? `${s.replace("/files", `/thumbs/${n}`)}` : s;
|
|
887
|
-
},
|
|
888
|
-
const { apiURL: t } =
|
|
863
|
+
}, ht = () => {
|
|
864
|
+
const { apiURL: t } = Ne(ce);
|
|
889
865
|
return {
|
|
890
866
|
dateAdapter: Wr,
|
|
891
867
|
distanceAdapter: Vr,
|
|
@@ -897,13 +873,13 @@ const ct = ({ language: t }) => (Ne(() => {
|
|
|
897
873
|
s
|
|
898
874
|
)
|
|
899
875
|
};
|
|
900
|
-
}, Ur = (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase(),
|
|
901
|
-
const s = t.split("/").filter((
|
|
876
|
+
}, Ur = (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase(), qr = (t) => {
|
|
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("");
|
|
902
878
|
return s.charAt(0).toLowerCase() + s.slice(1);
|
|
903
|
-
},
|
|
904
|
-
const s =
|
|
905
|
-
return `${s}${
|
|
906
|
-
},
|
|
879
|
+
}, Br = (t, n, i) => {
|
|
880
|
+
const s = qr(n), v = Ur(i);
|
|
881
|
+
return `${s}${v}`;
|
|
882
|
+
}, Gr = (t) => {
|
|
907
883
|
if (t)
|
|
908
884
|
return (t == null ? void 0 : t.reduce((n, i) => (n[i] = {
|
|
909
885
|
query: {
|
|
@@ -912,7 +888,7 @@ const ct = ({ language: t }) => (Ne(() => {
|
|
|
912
888
|
useQuery: !0
|
|
913
889
|
}
|
|
914
890
|
}, n), {})) || {};
|
|
915
|
-
},
|
|
891
|
+
}, yt = (t) => {
|
|
916
892
|
const { input: n = "./openapi.json", operationsToGenerateInfiniteQueryHook: i = void 0 } = t || {};
|
|
917
893
|
return {
|
|
918
894
|
api: {
|
|
@@ -933,8 +909,8 @@ const ct = ({ language: t }) => (Ne(() => {
|
|
|
933
909
|
name: "axiosCustomInstance",
|
|
934
910
|
path: `${__dirname}/config/orval/mutator/axiosCustomInstance.ts`
|
|
935
911
|
},
|
|
936
|
-
operationName:
|
|
937
|
-
...(i == null ? void 0 : i.length) && { operations:
|
|
912
|
+
operationName: Br,
|
|
913
|
+
...(i == null ? void 0 : i.length) && { operations: Gr(i) },
|
|
938
914
|
query: {
|
|
939
915
|
useQuery: !0
|
|
940
916
|
}
|
|
@@ -946,23 +922,23 @@ const ct = ({ language: t }) => (Ne(() => {
|
|
|
946
922
|
};
|
|
947
923
|
};
|
|
948
924
|
export {
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
925
|
+
ot as G,
|
|
926
|
+
st as I,
|
|
927
|
+
ct as M,
|
|
928
|
+
pt as Q,
|
|
929
|
+
at as R,
|
|
930
|
+
ut as a,
|
|
931
|
+
lt as b,
|
|
956
932
|
Mr as c,
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
933
|
+
ft as d,
|
|
934
|
+
dt as e,
|
|
935
|
+
it as f,
|
|
936
|
+
mt as g,
|
|
937
|
+
gt as h,
|
|
938
|
+
ht as i,
|
|
939
|
+
yt as j,
|
|
964
940
|
Wr as k,
|
|
965
941
|
Vr as l,
|
|
966
942
|
ce as m,
|
|
967
|
-
|
|
943
|
+
vt as u
|
|
968
944
|
};
|