@tracktor/shared-module 1.0.7 → 1.0.8
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-EkCf5JOJ.js} +1 -1
- package/dist/{fr-TlWvAsWw.js → fr-ADtvg3rE.js} +1 -1
- package/dist/{main-srWqMrqy.js → main-DWJHWlv8.js} +299 -307
- package/dist/main.js +1 -1
- package/dist/main.umd.cjs +9 -9
- package/package.json +1 -1
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import Ie, { useState as
|
|
2
|
-
import
|
|
3
|
-
import { useLocation as
|
|
4
|
-
import
|
|
1
|
+
import Ie, { useState as _r, useRef as Rr, useEffect as M, 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 wr, matchRoutes as Sr, useNavigationType as Or } from "react-router-dom";
|
|
4
|
+
import { useGoogleTagManager as xr } from "@tracktor/react-google-tag-manager";
|
|
5
|
+
import N, { 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";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
9
|
+
import kr from "mapbox-gl";
|
|
10
|
+
import q from "dayjs";
|
|
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: {} }, z = {};
|
|
15
17
|
/**
|
|
16
18
|
* @license React
|
|
17
19
|
* react-jsx-runtime.development.js
|
|
@@ -21,25 +23,25 @@ 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"), p = Symbol.for("react.strict_mode"),
|
|
28
|
-
function
|
|
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"), p = Symbol.for("react.strict_mode"), h = 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"), y = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), j = Symbol.iterator, S = "@@iterator";
|
|
30
|
+
function _(e) {
|
|
29
31
|
if (e === null || typeof e != "object")
|
|
30
32
|
return null;
|
|
31
33
|
var r = j && e[j] || e[S];
|
|
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;
|
|
35
|
-
function
|
|
37
|
+
function R(e) {
|
|
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
|
+
L("error", e, a);
|
|
40
42
|
}
|
|
41
43
|
}
|
|
42
|
-
function
|
|
44
|
+
function L(e, r, a) {
|
|
43
45
|
{
|
|
44
46
|
var u = D.ReactDebugCurrentFrame, v = u.getStackAddendum();
|
|
45
47
|
v !== "" && (r += "%s", a = a.concat([v]));
|
|
@@ -49,16 +51,16 @@ function $r() {
|
|
|
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 === h || Ge || e === p || e === g || e === y || 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;
|
|
@@ -68,10 +70,10 @@ function $r() {
|
|
|
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
|
-
if (typeof e.tag == "number" &&
|
|
76
|
+
if (typeof e.tag == "number" && R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
75
77
|
return e.displayName || e.name || null;
|
|
76
78
|
if (typeof e == "string")
|
|
77
79
|
return e;
|
|
@@ -80,11 +82,11 @@ function $r() {
|
|
|
80
82
|
return "Fragment";
|
|
81
83
|
case i:
|
|
82
84
|
return "Portal";
|
|
83
|
-
case
|
|
85
|
+
case h:
|
|
84
86
|
return "Profiler";
|
|
85
87
|
case p:
|
|
86
88
|
return "StrictMode";
|
|
87
|
-
case
|
|
89
|
+
case g:
|
|
88
90
|
return "Suspense";
|
|
89
91
|
case y:
|
|
90
92
|
return "SuspenseList";
|
|
@@ -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
108
|
var v = e, m = v._payload, d = v._init;
|
|
107
109
|
try {
|
|
108
|
-
return
|
|
110
|
+
return P(d(m));
|
|
109
111
|
} catch {
|
|
110
112
|
return null;
|
|
111
113
|
}
|
|
@@ -113,14 +115,14 @@ function $r() {
|
|
|
113
115
|
}
|
|
114
116
|
return null;
|
|
115
117
|
}
|
|
116
|
-
var
|
|
118
|
+
var F = Object.assign, W = 0, ve, pe, me, ge, he, ye, be;
|
|
117
119
|
function Ee() {
|
|
118
120
|
}
|
|
119
121
|
Ee.__reactDisabledLog = !0;
|
|
120
|
-
function
|
|
122
|
+
function Xe() {
|
|
121
123
|
{
|
|
122
|
-
if (
|
|
123
|
-
|
|
124
|
+
if (W === 0) {
|
|
125
|
+
ve = console.log, pe = console.info, me = console.warn, ge = console.error, he = console.group, ye = console.groupCollapsed, be = console.groupEnd;
|
|
124
126
|
var e = {
|
|
125
127
|
configurable: !0,
|
|
126
128
|
enumerable: !0,
|
|
@@ -137,65 +139,65 @@ function $r() {
|
|
|
137
139
|
groupEnd: e
|
|
138
140
|
});
|
|
139
141
|
}
|
|
140
|
-
|
|
142
|
+
W++;
|
|
141
143
|
}
|
|
142
144
|
}
|
|
143
145
|
function Ze() {
|
|
144
146
|
{
|
|
145
|
-
if (
|
|
147
|
+
if (W--, W === 0) {
|
|
146
148
|
var e = {
|
|
147
149
|
configurable: !0,
|
|
148
150
|
enumerable: !0,
|
|
149
151
|
writable: !0
|
|
150
152
|
};
|
|
151
153
|
Object.defineProperties(console, {
|
|
152
|
-
log:
|
|
153
|
-
value: pe
|
|
154
|
-
}),
|
|
155
|
-
info: L({}, e, {
|
|
154
|
+
log: F({}, e, {
|
|
156
155
|
value: ve
|
|
157
156
|
}),
|
|
158
|
-
|
|
157
|
+
info: F({}, e, {
|
|
158
|
+
value: pe
|
|
159
|
+
}),
|
|
160
|
+
warn: F({}, e, {
|
|
159
161
|
value: me
|
|
160
162
|
}),
|
|
161
|
-
error:
|
|
163
|
+
error: F({}, e, {
|
|
162
164
|
value: ge
|
|
163
165
|
}),
|
|
164
|
-
group:
|
|
166
|
+
group: F({}, e, {
|
|
165
167
|
value: he
|
|
166
168
|
}),
|
|
167
|
-
groupCollapsed:
|
|
169
|
+
groupCollapsed: F({}, e, {
|
|
168
170
|
value: ye
|
|
169
171
|
}),
|
|
170
|
-
groupEnd:
|
|
172
|
+
groupEnd: F({}, e, {
|
|
171
173
|
value: be
|
|
172
174
|
})
|
|
173
175
|
});
|
|
174
176
|
}
|
|
175
|
-
|
|
177
|
+
W < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
176
178
|
}
|
|
177
179
|
}
|
|
178
|
-
var
|
|
180
|
+
var Z = D.ReactCurrentDispatcher, Q;
|
|
179
181
|
function B(e, r, a) {
|
|
180
182
|
{
|
|
181
|
-
if (
|
|
183
|
+
if (Q === void 0)
|
|
182
184
|
try {
|
|
183
185
|
throw Error();
|
|
184
186
|
} catch (v) {
|
|
185
187
|
var u = v.stack.trim().match(/\n( *(at )?)/);
|
|
186
|
-
|
|
188
|
+
Q = u && u[1] || "";
|
|
187
189
|
}
|
|
188
190
|
return `
|
|
189
|
-
` +
|
|
191
|
+
` + Q + e;
|
|
190
192
|
}
|
|
191
193
|
}
|
|
192
|
-
var
|
|
194
|
+
var K = !1, G;
|
|
193
195
|
{
|
|
194
196
|
var Qe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
195
197
|
G = new Qe();
|
|
196
198
|
}
|
|
197
|
-
function
|
|
198
|
-
if (!e ||
|
|
199
|
+
function _e(e, r) {
|
|
200
|
+
if (!e || K)
|
|
199
201
|
return "";
|
|
200
202
|
{
|
|
201
203
|
var a = G.get(e);
|
|
@@ -203,11 +205,11 @@ function $r() {
|
|
|
203
205
|
return a;
|
|
204
206
|
}
|
|
205
207
|
var u;
|
|
206
|
-
|
|
208
|
+
K = !0;
|
|
207
209
|
var v = Error.prepareStackTrace;
|
|
208
210
|
Error.prepareStackTrace = void 0;
|
|
209
211
|
var m;
|
|
210
|
-
m =
|
|
212
|
+
m = Z.current, Z.current = null, Xe();
|
|
211
213
|
try {
|
|
212
214
|
if (r) {
|
|
213
215
|
var d = function() {
|
|
@@ -220,29 +222,29 @@ 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 =
|
|
245
|
+
} catch (A) {
|
|
246
|
+
if (A && u && typeof A.stack == "string") {
|
|
247
|
+
for (var f = A.stack.split(`
|
|
246
248
|
`), w = u.stack.split(`
|
|
247
249
|
`), b = f.length - 1, E = w.length - 1; b >= 1 && E >= 0 && f[b] !== w[E]; )
|
|
248
250
|
E--;
|
|
@@ -251,36 +253,36 @@ function $r() {
|
|
|
251
253
|
if (b !== 1 || E !== 1)
|
|
252
254
|
do
|
|
253
255
|
if (b--, E--, E < 0 || f[b] !== w[E]) {
|
|
254
|
-
var
|
|
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" && G.set(e, O), O;
|
|
257
259
|
}
|
|
258
260
|
while (b >= 1 && E >= 0);
|
|
259
261
|
break;
|
|
260
262
|
}
|
|
261
263
|
}
|
|
262
264
|
} finally {
|
|
263
|
-
|
|
265
|
+
K = !1, Z.current = m, Ze(), Error.prepareStackTrace = v;
|
|
264
266
|
}
|
|
265
|
-
var
|
|
266
|
-
return typeof e == "function" && G.set(e,
|
|
267
|
+
var I = e ? e.displayName || e.name : "", $e = I ? B(I) : "";
|
|
268
|
+
return typeof e == "function" && G.set(e, $e), $e;
|
|
267
269
|
}
|
|
268
|
-
function
|
|
269
|
-
return
|
|
270
|
+
function Ke(e, r, a) {
|
|
271
|
+
return _e(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 J(e, r, a) {
|
|
276
278
|
if (e == null)
|
|
277
279
|
return "";
|
|
278
280
|
if (typeof e == "function")
|
|
279
|
-
return
|
|
281
|
+
return _e(e, er(e));
|
|
280
282
|
if (typeof e == "string")
|
|
281
283
|
return B(e);
|
|
282
284
|
switch (e) {
|
|
283
|
-
case
|
|
285
|
+
case g:
|
|
284
286
|
return B("Suspense");
|
|
285
287
|
case y:
|
|
286
288
|
return B("SuspenseList");
|
|
@@ -288,30 +290,30 @@ function $r() {
|
|
|
288
290
|
if (typeof e == "object")
|
|
289
291
|
switch (e.$$typeof) {
|
|
290
292
|
case l:
|
|
291
|
-
return
|
|
293
|
+
return Ke(e.render);
|
|
292
294
|
case C:
|
|
293
|
-
return
|
|
295
|
+
return J(e.type, r, a);
|
|
294
296
|
case T: {
|
|
295
297
|
var u = e, v = u._payload, m = u._init;
|
|
296
298
|
try {
|
|
297
|
-
return
|
|
299
|
+
return J(m(v), r, a);
|
|
298
300
|
} catch {
|
|
299
301
|
}
|
|
300
302
|
}
|
|
301
303
|
}
|
|
302
304
|
return "";
|
|
303
305
|
}
|
|
304
|
-
var
|
|
305
|
-
function
|
|
306
|
+
var H = Object.prototype.hasOwnProperty, Re = {}, Ce = D.ReactDebugCurrentFrame;
|
|
307
|
+
function X(e) {
|
|
306
308
|
if (e) {
|
|
307
|
-
var r = e._owner, a =
|
|
309
|
+
var r = e._owner, a = J(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, v) {
|
|
313
315
|
{
|
|
314
|
-
var m = Function.call.bind(
|
|
316
|
+
var m = Function.call.bind(H);
|
|
315
317
|
for (var d in e)
|
|
316
318
|
if (m(e, d)) {
|
|
317
319
|
var f = void 0;
|
|
@@ -324,21 +326,21 @@ function $r() {
|
|
|
324
326
|
} catch (b) {
|
|
325
327
|
f = b;
|
|
326
328
|
}
|
|
327
|
-
f && !(f instanceof Error) && (
|
|
329
|
+
f && !(f instanceof Error) && (X(v), R("%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), X(null)), f instanceof Error && !(f.message in Re) && (Re[f.message] = !0, X(v), R("Failed %s type: %s", a, f.message), X(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 {
|
|
@@ -349,42 +351,42 @@ function $r() {
|
|
|
349
351
|
return "" + e;
|
|
350
352
|
}
|
|
351
353
|
function we(e) {
|
|
352
|
-
if (
|
|
353
|
-
return
|
|
354
|
+
if (ar(e))
|
|
355
|
+
return R("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
|
|
357
|
+
var V = D.ReactCurrentOwner, or = {
|
|
356
358
|
key: !0,
|
|
357
359
|
ref: !0,
|
|
358
360
|
__self: !0,
|
|
359
361
|
__source: !0
|
|
360
|
-
}, Se,
|
|
362
|
+
}, Se, Oe, re;
|
|
361
363
|
re = {};
|
|
362
|
-
function
|
|
363
|
-
if (
|
|
364
|
+
function ir(e) {
|
|
365
|
+
if (H.call(e, "ref")) {
|
|
364
366
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
365
367
|
if (r && r.isReactWarning)
|
|
366
368
|
return !1;
|
|
367
369
|
}
|
|
368
370
|
return e.ref !== void 0;
|
|
369
371
|
}
|
|
370
|
-
function
|
|
371
|
-
if (
|
|
372
|
+
function sr(e) {
|
|
373
|
+
if (H.call(e, "key")) {
|
|
372
374
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
373
375
|
if (r && r.isReactWarning)
|
|
374
376
|
return !1;
|
|
375
377
|
}
|
|
376
378
|
return e.key !== void 0;
|
|
377
379
|
}
|
|
378
|
-
function
|
|
379
|
-
if (typeof e.ref == "string" &&
|
|
380
|
-
var a =
|
|
381
|
-
re[a] || (
|
|
380
|
+
function ur(e, r) {
|
|
381
|
+
if (typeof e.ref == "string" && V.current && r && V.current.stateNode !== r) {
|
|
382
|
+
var a = P(V.current.type);
|
|
383
|
+
re[a] || (R('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(V.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
|
-
Se || (Se = !0,
|
|
389
|
+
Se || (Se = !0, R("%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, R("%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, v, m, d) {
|
|
407
409
|
var f = {
|
|
408
410
|
// This tag allows us to uniquely identify this as a React Element
|
|
409
411
|
$$typeof: n,
|
|
@@ -432,12 +434,12 @@ function $r() {
|
|
|
432
434
|
value: v
|
|
433
435
|
}), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
|
|
434
436
|
};
|
|
435
|
-
function
|
|
437
|
+
function dr(e, r, a, u, v) {
|
|
436
438
|
{
|
|
437
439
|
var m, d = {}, f = null, w = null;
|
|
438
|
-
a !== void 0 && (we(a), f = "" + a),
|
|
440
|
+
a !== void 0 && (we(a), f = "" + a), sr(r) && (we(r.key), f = "" + r.key), ir(r) && (w = r.ref, ur(r, v));
|
|
439
441
|
for (m in r)
|
|
440
|
-
|
|
442
|
+
H.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)
|
|
@@ -445,18 +447,18 @@ function $r() {
|
|
|
445
447
|
}
|
|
446
448
|
if (f || w) {
|
|
447
449
|
var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
448
|
-
f &&
|
|
450
|
+
f && lr(d, E), w && cr(d, E);
|
|
449
451
|
}
|
|
450
|
-
return
|
|
452
|
+
return fr(e, f, w, v, u, V.current, d);
|
|
451
453
|
}
|
|
452
454
|
}
|
|
453
|
-
var te = D.ReactCurrentOwner,
|
|
454
|
-
function
|
|
455
|
+
var te = D.ReactCurrentOwner, xe = D.ReactDebugCurrentFrame;
|
|
456
|
+
function Y(e) {
|
|
455
457
|
if (e) {
|
|
456
|
-
var r = e._owner, a =
|
|
457
|
-
|
|
458
|
+
var r = e._owner, a = J(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
|
|
|
@@ -487,7 +489,7 @@ Check your code at ` + r + ":" + a + ".";
|
|
|
487
489
|
}
|
|
488
490
|
}
|
|
489
491
|
var Pe = {};
|
|
490
|
-
function
|
|
492
|
+
function pr(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 = pr(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) + "."), Y(e), R('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), Y(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 v =
|
|
529
|
+
var v = _(e);
|
|
528
530
|
if (typeof v == "function" && v !== e.entries)
|
|
529
531
|
for (var m = v.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,69 +548,69 @@ 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 v =
|
|
554
|
-
|
|
555
|
+
var v = P(r);
|
|
556
|
+
R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", v || "Unknown");
|
|
555
557
|
}
|
|
556
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
558
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && R("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
|
+
Y(e), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), Y(null);
|
|
565
567
|
break;
|
|
566
568
|
}
|
|
567
569
|
}
|
|
568
|
-
e.ref !== null && (
|
|
570
|
+
e.ref !== null && (Y(e), R("Invalid attribute `ref` supplied to `React.Fragment`."), Y(null));
|
|
569
571
|
}
|
|
570
572
|
}
|
|
571
573
|
function De(e, r, a, u, v, 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
579
|
var w = vr(v);
|
|
578
580
|
w ? f += w : 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, R("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, v, 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
|
|
591
|
-
ke(
|
|
592
|
-
Object.freeze && Object.freeze(
|
|
591
|
+
if (ee(O)) {
|
|
592
|
+
for (var I = 0; I < O.length; I++)
|
|
593
|
+
ke(O[I], e);
|
|
594
|
+
Object.freeze && Object.freeze(O);
|
|
593
595
|
} else
|
|
594
|
-
|
|
596
|
+
R("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
|
-
|
|
609
|
-
}()),
|
|
609
|
+
var br = yr, Er = hr;
|
|
610
|
+
z.Fragment = s, z.jsx = br, z.jsxs = Er;
|
|
611
|
+
}()), z;
|
|
610
612
|
}
|
|
611
|
-
var
|
|
613
|
+
var U = {};
|
|
612
614
|
/**
|
|
613
615
|
* @license React
|
|
614
616
|
* react-jsx-runtime.production.min.js
|
|
@@ -618,91 +620,78 @@ 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 (
|
|
624
|
-
return
|
|
625
|
-
|
|
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,
|
|
627
|
-
function o(c, l,
|
|
628
|
-
var y, C = {}, T = null,
|
|
629
|
-
|
|
623
|
+
var Le;
|
|
624
|
+
function Yr() {
|
|
625
|
+
if (Le)
|
|
626
|
+
return U;
|
|
627
|
+
Le = 1;
|
|
628
|
+
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, h = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
629
|
+
function o(c, l, g) {
|
|
630
|
+
var y, 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);
|
|
630
632
|
for (y in l)
|
|
631
|
-
s.call(l, y) && !
|
|
633
|
+
s.call(l, y) && !h.hasOwnProperty(y) && (C[y] = l[y]);
|
|
632
634
|
if (c && c.defaultProps)
|
|
633
635
|
for (y in l = c.defaultProps, l)
|
|
634
636
|
C[y] === void 0 && (C[y] = l[y]);
|
|
635
|
-
return { $$typeof: n, type: c, key: T, ref:
|
|
637
|
+
return { $$typeof: n, type: c, key: T, ref: x, props: C, _owner: p.current };
|
|
636
638
|
}
|
|
637
|
-
return
|
|
639
|
+
return U.Fragment = i, U.jsx = o, U.jsxs = o, U;
|
|
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
648
|
isLogged: p
|
|
647
649
|
}) => {
|
|
648
|
-
var C, T,
|
|
649
|
-
const [
|
|
650
|
-
return
|
|
650
|
+
var C, T, x, j;
|
|
651
|
+
const [h, o] = _r(null), c = le(), l = Rr(!1), g = typeof p == "function" ? p() : !!p, y = typeof g == "boolean" ? g : g == null ? void 0 : g.isLogged;
|
|
652
|
+
return M(() => {
|
|
651
653
|
var S;
|
|
652
|
-
l.current || (l.current = !0, (S =
|
|
653
|
-
(
|
|
654
|
-
async (
|
|
655
|
-
var
|
|
656
|
-
return typeof
|
|
654
|
+
l.current || (l.current = !0, (S = $) == null || S.interceptors.response.use(
|
|
655
|
+
(_) => _,
|
|
656
|
+
async (_) => {
|
|
657
|
+
var L;
|
|
658
|
+
return typeof _ == "object" && _ && "response" in _ && _.response && typeof _.response == "object" && "status" in _.response && _.response && typeof _.response == "object" && "status" in _.response && ((L = _ == null ? void 0 : _.response) == null ? void 0 : L.status) === 401 && ($.defaults.headers.common.Authorization = null, localStorage.removeItem(i), o(s)), Promise.reject(_);
|
|
657
659
|
}
|
|
658
660
|
));
|
|
659
|
-
}, [i, s]), y && !
|
|
660
|
-
},
|
|
661
|
-
const { pathname:
|
|
662
|
-
return
|
|
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;
|
|
661
|
+
}, [i, s]), y && !h ? /* @__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();
|
|
664
|
+
return M(() => {
|
|
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
|
...p
|
|
697
684
|
}) => {
|
|
698
|
-
const { apiURL:
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
685
|
+
const { apiURL: h = p.apiURL } = Ne(ce);
|
|
686
|
+
return M(() => {
|
|
687
|
+
if (!$.defaults)
|
|
688
|
+
return;
|
|
689
|
+
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, y = o ? `${l} ${g}` : null;
|
|
690
|
+
$.defaults.baseURL = h, $.defaults.headers.post["Content-Type"] = s, y && ($.defaults.headers.common.Authorization = y);
|
|
691
|
+
}, [h, s, i, t, n]), null;
|
|
692
|
+
}, ut = ({ debug: t, resources: n }) => (M(() => {
|
|
704
693
|
var i;
|
|
705
|
-
|
|
694
|
+
(i = N) != null && i.isInitialized || (N.use(Pr).use(Ar).init({
|
|
706
695
|
debug: t,
|
|
707
696
|
fallbackLng: "en",
|
|
708
697
|
interpolation: {
|
|
@@ -716,149 +705,152 @@ const tt = ({
|
|
|
716
705
|
resources: n,
|
|
717
706
|
returnNull: !1
|
|
718
707
|
}).then(() => {
|
|
719
|
-
document.documentElement.lang !==
|
|
720
|
-
}),
|
|
708
|
+
document.documentElement.lang !== N.resolvedLanguage && N.resolvedLanguage && document.documentElement.setAttribute("lang", N.resolvedLanguage);
|
|
709
|
+
}), N.on("languageChanged", (s) => {
|
|
721
710
|
document.documentElement.setAttribute("lang", s);
|
|
722
|
-
}))
|
|
723
|
-
},
|
|
711
|
+
}));
|
|
712
|
+
}, [t, n]), null), lt = ({
|
|
724
713
|
dsn: t,
|
|
725
714
|
integrations: n,
|
|
726
715
|
tracesSampleRate: i,
|
|
727
716
|
replaysSessionSampleRate: s,
|
|
728
717
|
replaysOnErrorSampleRate: p,
|
|
729
|
-
tracePropagationTargets:
|
|
718
|
+
tracePropagationTargets: h,
|
|
730
719
|
ignoreErrors: o,
|
|
731
720
|
debug: c,
|
|
732
721
|
environment: l
|
|
733
|
-
}) => (
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
722
|
+
}) => (M(() => {
|
|
723
|
+
oe.isInitialized() || (c || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && oe.init({
|
|
724
|
+
debug: c,
|
|
725
|
+
dsn: t,
|
|
726
|
+
environment: l || "production",
|
|
727
|
+
ignoreErrors: [...o || [], /dynamically imported module/],
|
|
728
|
+
integrations: [
|
|
729
|
+
oe.reactRouterV6BrowserTracingIntegration({
|
|
730
|
+
createRoutesFromChildren: wr,
|
|
731
|
+
matchRoutes: Sr,
|
|
732
|
+
useEffect: M,
|
|
733
|
+
useLocation: le,
|
|
734
|
+
useNavigationType: Or
|
|
735
|
+
}),
|
|
736
|
+
...n || []
|
|
737
|
+
],
|
|
738
|
+
replaysOnErrorSampleRate: p || 1,
|
|
739
|
+
replaysSessionSampleRate: s || 0.1,
|
|
740
|
+
tracePropagationTargets: h,
|
|
741
|
+
tracesSampleRate: i || 1
|
|
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 }) => {
|
|
754
|
+
const i = ue(
|
|
754
755
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
755
|
-
() => t(({ TextField: s, ...p }) => /* @__PURE__ */
|
|
756
|
+
() => t(({ TextField: s, ...p }) => /* @__PURE__ */ k.jsx(s, { ...p })),
|
|
756
757
|
[t]
|
|
757
758
|
);
|
|
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();
|
|
759
|
+
return /* @__PURE__ */ k.jsx(i, { ...n });
|
|
760
|
+
}, ft = ({ accessToken: t }) => (M(() => {
|
|
761
|
+
t && (kr.accessToken = t);
|
|
770
762
|
}, [t]), null);
|
|
771
|
-
var
|
|
763
|
+
var Ve = { exports: {} };
|
|
772
764
|
(function(t, n) {
|
|
773
765
|
(function(i, s) {
|
|
774
766
|
t.exports = s();
|
|
775
767
|
})(Mr, function() {
|
|
776
768
|
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, p,
|
|
769
|
+
return function(s, p, h) {
|
|
778
770
|
var o = p.prototype, c = o.format;
|
|
779
|
-
|
|
771
|
+
h.en.formats = i, o.format = function(l) {
|
|
780
772
|
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
|
|
784
|
-
return j || T[S] || i[S] || T[
|
|
785
|
-
return
|
|
773
|
+
var g = this.$locale().formats, y = function(C, T) {
|
|
774
|
+
return C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(x, j, S) {
|
|
775
|
+
var _ = S && S.toUpperCase();
|
|
776
|
+
return j || T[S] || i[S] || T[_].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(D, R, L) {
|
|
777
|
+
return R || L.slice(1);
|
|
786
778
|
});
|
|
787
779
|
});
|
|
788
|
-
}(l,
|
|
780
|
+
}(l, g === void 0 ? {} : g);
|
|
789
781
|
return c.call(this, y);
|
|
790
782
|
};
|
|
791
783
|
};
|
|
792
784
|
});
|
|
793
|
-
})(
|
|
794
|
-
var Ir =
|
|
795
|
-
const Nr = /* @__PURE__ */
|
|
796
|
-
|
|
797
|
-
const
|
|
785
|
+
})(Ve);
|
|
786
|
+
var Ir = Ve.exports;
|
|
787
|
+
const Nr = /* @__PURE__ */ Fr(Ir);
|
|
788
|
+
q.extend(Nr);
|
|
789
|
+
const dt = ({ language: t }) => (M(() => {
|
|
798
790
|
var i;
|
|
799
791
|
const n = t || ((i = navigator.language) == null ? void 0 : i.slice(0, 2)) || "en";
|
|
800
792
|
if (n === "en") {
|
|
801
|
-
import("./en-
|
|
802
|
-
|
|
793
|
+
import("./en-EkCf5JOJ.js").then((s) => s.e).then(() => {
|
|
794
|
+
q.locale(n);
|
|
803
795
|
});
|
|
804
796
|
return;
|
|
805
797
|
}
|
|
806
|
-
n === "fr" && import("./fr-
|
|
807
|
-
|
|
798
|
+
n === "fr" && import("./fr-ADtvg3rE.js").then((s) => s.f).then(() => {
|
|
799
|
+
q.locale(n);
|
|
808
800
|
}).catch(() => {
|
|
809
|
-
import("./en-
|
|
810
|
-
|
|
801
|
+
import("./en-EkCf5JOJ.js").then((s) => s.e).then(() => {
|
|
802
|
+
q.locale("en");
|
|
811
803
|
});
|
|
812
804
|
});
|
|
813
|
-
}, [t]), null),
|
|
805
|
+
}, [t]), null), vt = ({
|
|
814
806
|
children: t,
|
|
815
807
|
defaultQueriesOptions: n,
|
|
816
808
|
defaultMutationsOptions: i
|
|
817
809
|
}) => {
|
|
818
|
-
const s = new
|
|
810
|
+
const s = new Dr({
|
|
819
811
|
defaultOptions: {
|
|
820
812
|
mutations: {
|
|
821
813
|
...i
|
|
822
814
|
},
|
|
823
815
|
queries: {
|
|
824
|
-
getNextPageParam: (p,
|
|
816
|
+
getNextPageParam: (p, h, o) => p.length + (o || 0),
|
|
825
817
|
refetchOnWindowFocus: !1,
|
|
826
818
|
retry: 3,
|
|
827
819
|
...n
|
|
828
820
|
}
|
|
829
821
|
}
|
|
830
822
|
});
|
|
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) : (y = (
|
|
823
|
+
return /* @__PURE__ */ k.jsx($r, { client: s, children: t });
|
|
824
|
+
}, pt = (t) => {
|
|
825
|
+
const { unknownErrorTranslationKey: n = "error.unknownError" } = t || {}, i = jr(n), s = ie(
|
|
826
|
+
(h) => {
|
|
827
|
+
var c, l, g, y, C, T, x, j, S;
|
|
828
|
+
const { response: o } = h || {};
|
|
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) : (y = (g = o == null ? void 0 : o.data) == null ? void 0 : g.detail) != null && y.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 ((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;
|
|
838
830
|
},
|
|
839
831
|
[i]
|
|
840
832
|
);
|
|
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) : (
|
|
833
|
+
return { getErrorCode: ie((h) => {
|
|
834
|
+
var c, l, g;
|
|
835
|
+
const { response: o } = h || {};
|
|
836
|
+
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
837
|
}, []), printError: s };
|
|
846
|
-
},
|
|
838
|
+
}, mt = ({
|
|
847
839
|
data: t,
|
|
848
840
|
fetchNextPage: n,
|
|
849
841
|
isFetchingNextPage: i,
|
|
850
842
|
isInitialLoading: s,
|
|
851
843
|
isLoading: p,
|
|
852
|
-
enabled:
|
|
844
|
+
enabled: h = !0
|
|
853
845
|
}) => {
|
|
854
|
-
const o =
|
|
846
|
+
const o = ie(
|
|
855
847
|
async (l) => {
|
|
856
|
-
i || !
|
|
848
|
+
i || !h || await n({ pageParam: (l == null ? void 0 : l.pageParam) || l.visibleRowsCount });
|
|
857
849
|
},
|
|
858
|
-
[
|
|
859
|
-
), c =
|
|
850
|
+
[h, n, i]
|
|
851
|
+
), c = ue(() => {
|
|
860
852
|
if (t)
|
|
861
|
-
return t.pages.reduce((l,
|
|
853
|
+
return t.pages.reduce((l, g) => [...l, ...g], []);
|
|
862
854
|
}, [t]);
|
|
863
855
|
return {
|
|
864
856
|
fetchNextPageOnRowsScrollEnd: o,
|
|
@@ -866,14 +858,14 @@ const ct = ({ language: t }) => (Ne(() => {
|
|
|
866
858
|
loadingVariant: s ? "skeleton" : "linear",
|
|
867
859
|
rows: c
|
|
868
860
|
};
|
|
869
|
-
},
|
|
861
|
+
}, gt = () => ({
|
|
870
862
|
clearAuthenticationToken: () => {
|
|
871
|
-
|
|
863
|
+
$.defaults.headers.common.Authorization = null;
|
|
872
864
|
},
|
|
873
865
|
setAuthenticationToken: ({ tokenType: i, accessToken: s }) => {
|
|
874
|
-
|
|
866
|
+
$.defaults.headers.common.Authorization = `${i} ${s}`;
|
|
875
867
|
}
|
|
876
|
-
}), Wr = (t, n = "ll") =>
|
|
868
|
+
}), Wr = (t, n = "ll") => q(t).format(n), Vr = (t, n = "km") => {
|
|
877
869
|
const i = Number(t);
|
|
878
870
|
return Number.isNaN(i) ? `0 ${n}` : `${i.toFixed(2)} ${n}`;
|
|
879
871
|
}, zr = (t) => {
|
|
@@ -884,8 +876,8 @@ const ct = ({ language: t }) => (Ne(() => {
|
|
|
884
876
|
return "";
|
|
885
877
|
const i = zr(t), s = typeof t == "object" && "pathname" in t ? `${t.origin}${i}` : t;
|
|
886
878
|
return typeof n == "number" ? `${s.replace("/files", `/thumbs/${n}`)}` : s;
|
|
887
|
-
},
|
|
888
|
-
const { apiURL: t } =
|
|
879
|
+
}, ht = () => {
|
|
880
|
+
const { apiURL: t } = Ne(ce);
|
|
889
881
|
return {
|
|
890
882
|
dateAdapter: Wr,
|
|
891
883
|
distanceAdapter: Vr,
|
|
@@ -897,13 +889,13 @@ const ct = ({ language: t }) => (Ne(() => {
|
|
|
897
889
|
s
|
|
898
890
|
)
|
|
899
891
|
};
|
|
900
|
-
}, Ur = (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase(),
|
|
892
|
+
}, Ur = (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase(), qr = (t) => {
|
|
901
893
|
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("");
|
|
902
894
|
return s.charAt(0).toLowerCase() + s.slice(1);
|
|
903
|
-
},
|
|
904
|
-
const s =
|
|
895
|
+
}, Br = (t, n, i) => {
|
|
896
|
+
const s = qr(n), p = Ur(i);
|
|
905
897
|
return `${s}${p}`;
|
|
906
|
-
},
|
|
898
|
+
}, Gr = (t) => {
|
|
907
899
|
if (t)
|
|
908
900
|
return (t == null ? void 0 : t.reduce((n, i) => (n[i] = {
|
|
909
901
|
query: {
|
|
@@ -912,7 +904,7 @@ const ct = ({ language: t }) => (Ne(() => {
|
|
|
912
904
|
useQuery: !0
|
|
913
905
|
}
|
|
914
906
|
}, n), {})) || {};
|
|
915
|
-
},
|
|
907
|
+
}, yt = (t) => {
|
|
916
908
|
const { input: n = "./openapi.json", operationsToGenerateInfiniteQueryHook: i = void 0 } = t || {};
|
|
917
909
|
return {
|
|
918
910
|
api: {
|
|
@@ -933,8 +925,8 @@ const ct = ({ language: t }) => (Ne(() => {
|
|
|
933
925
|
name: "axiosCustomInstance",
|
|
934
926
|
path: `${__dirname}/config/orval/mutator/axiosCustomInstance.ts`
|
|
935
927
|
},
|
|
936
|
-
operationName:
|
|
937
|
-
...(i == null ? void 0 : i.length) && { operations:
|
|
928
|
+
operationName: Br,
|
|
929
|
+
...(i == null ? void 0 : i.length) && { operations: Gr(i) },
|
|
938
930
|
query: {
|
|
939
931
|
useQuery: !0
|
|
940
932
|
}
|
|
@@ -946,23 +938,23 @@ const ct = ({ language: t }) => (Ne(() => {
|
|
|
946
938
|
};
|
|
947
939
|
};
|
|
948
940
|
export {
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
941
|
+
ot as G,
|
|
942
|
+
st as I,
|
|
943
|
+
ct as M,
|
|
944
|
+
vt as Q,
|
|
945
|
+
at as R,
|
|
946
|
+
ut as a,
|
|
947
|
+
lt as b,
|
|
956
948
|
Mr as c,
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
949
|
+
ft as d,
|
|
950
|
+
dt as e,
|
|
951
|
+
it as f,
|
|
952
|
+
mt as g,
|
|
953
|
+
gt as h,
|
|
954
|
+
ht as i,
|
|
955
|
+
yt as j,
|
|
964
956
|
Wr as k,
|
|
965
957
|
Vr as l,
|
|
966
958
|
ce as m,
|
|
967
|
-
|
|
959
|
+
pt as u
|
|
968
960
|
};
|