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