@tracktor/shared-module 2.3.2 → 2.3.4
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/hooks/useAuth/useAuth.d.ts +5 -0
- package/dist/main.js +383 -366
- package/dist/main.umd.cjs +9 -9
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
var ce = { exports: {} },
|
|
1
|
+
import Ye, { createContext as gt, useMemo as le, useContext as D, useState as We, useRef as mt, useEffect as z, Suspense as ht, useCallback as ee } from "react";
|
|
2
|
+
var ce = { exports: {} }, G = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
5
|
* react-jsx-runtime.production.min.js
|
|
@@ -11,19 +11,19 @@ var ce = { exports: {} }, B = {};
|
|
|
11
11
|
*/
|
|
12
12
|
var Fe;
|
|
13
13
|
function yt() {
|
|
14
|
-
if (Fe) return
|
|
14
|
+
if (Fe) return G;
|
|
15
15
|
Fe = 1;
|
|
16
|
-
var t =
|
|
17
|
-
function
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
for (
|
|
21
|
-
if (
|
|
22
|
-
return { $$typeof: n, type:
|
|
16
|
+
var t = Ye, n = Symbol.for("react.element"), o = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, i = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, f = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
|
+
function l(d, c, g) {
|
|
18
|
+
var y, w = {}, R = null, u = null;
|
|
19
|
+
g !== void 0 && (R = "" + g), c.key !== void 0 && (R = "" + c.key), c.ref !== void 0 && (u = c.ref);
|
|
20
|
+
for (y in c) s.call(c, y) && !f.hasOwnProperty(y) && (w[y] = c[y]);
|
|
21
|
+
if (d && d.defaultProps) for (y in c = d.defaultProps, c) w[y] === void 0 && (w[y] = c[y]);
|
|
22
|
+
return { $$typeof: n, type: d, key: R, ref: u, props: w, _owner: i.current };
|
|
23
23
|
}
|
|
24
|
-
return
|
|
24
|
+
return G.Fragment = o, G.jsx = l, G.jsxs = l, G;
|
|
25
25
|
}
|
|
26
|
-
var
|
|
26
|
+
var Q = {};
|
|
27
27
|
/**
|
|
28
28
|
* @license React
|
|
29
29
|
* react-jsx-runtime.development.js
|
|
@@ -33,49 +33,49 @@ var G = {};
|
|
|
33
33
|
* This source code is licensed under the MIT license found in the
|
|
34
34
|
* LICENSE file in the root directory of this source tree.
|
|
35
35
|
*/
|
|
36
|
-
var
|
|
36
|
+
var Le;
|
|
37
37
|
function Et() {
|
|
38
|
-
return
|
|
39
|
-
var t =
|
|
38
|
+
return Le || (Le = 1, process.env.NODE_ENV !== "production" && function() {
|
|
39
|
+
var t = Ye, n = Symbol.for("react.element"), o = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), d = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), u = Symbol.for("react.offscreen"), j = Symbol.iterator, T = "@@iterator";
|
|
40
40
|
function x(e) {
|
|
41
41
|
if (e === null || typeof e != "object")
|
|
42
42
|
return null;
|
|
43
|
-
var r = j && e[j] || e[
|
|
43
|
+
var r = j && e[j] || e[T];
|
|
44
44
|
return typeof r == "function" ? r : null;
|
|
45
45
|
}
|
|
46
46
|
var k = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47
47
|
function _(e) {
|
|
48
48
|
{
|
|
49
|
-
for (var r = arguments.length,
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), v = 1; v < r; v++)
|
|
50
|
+
a[v - 1] = arguments[v];
|
|
51
|
+
L("error", e, a);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function L(e, r, a) {
|
|
55
55
|
{
|
|
56
|
-
var
|
|
57
|
-
|
|
58
|
-
var p =
|
|
59
|
-
return String(
|
|
56
|
+
var v = k.ReactDebugCurrentFrame, E = v.getStackAddendum();
|
|
57
|
+
E !== "" && (r += "%s", a = a.concat([E]));
|
|
58
|
+
var p = a.map(function(h) {
|
|
59
|
+
return String(h);
|
|
60
60
|
});
|
|
61
61
|
p.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, p);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
var
|
|
65
|
-
|
|
64
|
+
var N = !1, Y = !1, b = !1, fe = !1, de = !1, U;
|
|
65
|
+
U = Symbol.for("react.module.reference");
|
|
66
66
|
function Me(e) {
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
67
|
+
return !!(typeof e == "string" || typeof e == "function" || e === s || e === f || de || e === i || e === g || e === y || fe || e === u || N || Y || b || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === w || e.$$typeof === l || e.$$typeof === d || e.$$typeof === c || // This needs to include all possible module reference object
|
|
68
68
|
// types supported by any Flight configuration anywhere since
|
|
69
69
|
// we don't know which Flight build this will end up being used
|
|
70
70
|
// with.
|
|
71
|
-
e.$$typeof ===
|
|
71
|
+
e.$$typeof === U || e.getModuleId !== void 0));
|
|
72
72
|
}
|
|
73
|
-
function Ve(e, r,
|
|
74
|
-
var
|
|
75
|
-
if (
|
|
76
|
-
return
|
|
77
|
-
var
|
|
78
|
-
return
|
|
73
|
+
function Ve(e, r, a) {
|
|
74
|
+
var v = e.displayName;
|
|
75
|
+
if (v)
|
|
76
|
+
return v;
|
|
77
|
+
var E = r.displayName || r.name || "";
|
|
78
|
+
return E !== "" ? a + "(" + E + ")" : a;
|
|
79
79
|
}
|
|
80
80
|
function ve(e) {
|
|
81
81
|
return e.displayName || "Context";
|
|
@@ -88,36 +88,36 @@ function Et() {
|
|
|
88
88
|
if (typeof e == "string")
|
|
89
89
|
return e;
|
|
90
90
|
switch (e) {
|
|
91
|
-
case
|
|
91
|
+
case s:
|
|
92
92
|
return "Fragment";
|
|
93
|
-
case
|
|
93
|
+
case o:
|
|
94
94
|
return "Portal";
|
|
95
|
-
case
|
|
95
|
+
case f:
|
|
96
96
|
return "Profiler";
|
|
97
97
|
case i:
|
|
98
98
|
return "StrictMode";
|
|
99
|
-
case
|
|
99
|
+
case g:
|
|
100
100
|
return "Suspense";
|
|
101
|
-
case
|
|
101
|
+
case y:
|
|
102
102
|
return "SuspenseList";
|
|
103
103
|
}
|
|
104
104
|
if (typeof e == "object")
|
|
105
105
|
switch (e.$$typeof) {
|
|
106
|
-
case
|
|
106
|
+
case d:
|
|
107
107
|
var r = e;
|
|
108
108
|
return ve(r) + ".Consumer";
|
|
109
|
-
case
|
|
110
|
-
var
|
|
111
|
-
return ve(
|
|
109
|
+
case l:
|
|
110
|
+
var a = e;
|
|
111
|
+
return ve(a._context) + ".Provider";
|
|
112
112
|
case c:
|
|
113
113
|
return Ve(e, e.render, "ForwardRef");
|
|
114
114
|
case w:
|
|
115
|
-
var
|
|
116
|
-
return
|
|
115
|
+
var v = e.displayName || null;
|
|
116
|
+
return v !== null ? v : I(e.type) || "Memo";
|
|
117
117
|
case R: {
|
|
118
|
-
var
|
|
118
|
+
var E = e, p = E._payload, h = E._init;
|
|
119
119
|
try {
|
|
120
|
-
return I(
|
|
120
|
+
return I(h(p));
|
|
121
121
|
} catch {
|
|
122
122
|
return null;
|
|
123
123
|
}
|
|
@@ -125,13 +125,13 @@ function Et() {
|
|
|
125
125
|
}
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
128
|
-
var W = Object.assign,
|
|
128
|
+
var W = Object.assign, q = 0, ge, me, he, ye, Ee, pe, Re;
|
|
129
129
|
function we() {
|
|
130
130
|
}
|
|
131
131
|
we.__reactDisabledLog = !0;
|
|
132
132
|
function ze() {
|
|
133
133
|
{
|
|
134
|
-
if (
|
|
134
|
+
if (q === 0) {
|
|
135
135
|
ge = console.log, me = console.info, he = console.warn, ye = console.error, Ee = console.group, pe = console.groupCollapsed, Re = console.groupEnd;
|
|
136
136
|
var e = {
|
|
137
137
|
configurable: !0,
|
|
@@ -149,12 +149,12 @@ function Et() {
|
|
|
149
149
|
groupEnd: e
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
|
-
|
|
152
|
+
q++;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
function Ue() {
|
|
156
156
|
{
|
|
157
|
-
if (
|
|
157
|
+
if (q--, q === 0) {
|
|
158
158
|
var e = {
|
|
159
159
|
configurable: !0,
|
|
160
160
|
enumerable: !0,
|
|
@@ -184,107 +184,107 @@ function Et() {
|
|
|
184
184
|
})
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
|
-
|
|
187
|
+
q < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
var
|
|
191
|
-
function J(e, r,
|
|
190
|
+
var te = k.ReactCurrentDispatcher, re;
|
|
191
|
+
function J(e, r, a) {
|
|
192
192
|
{
|
|
193
|
-
if (
|
|
193
|
+
if (re === void 0)
|
|
194
194
|
try {
|
|
195
195
|
throw Error();
|
|
196
|
-
} catch (
|
|
197
|
-
var
|
|
198
|
-
|
|
196
|
+
} catch (E) {
|
|
197
|
+
var v = E.stack.trim().match(/\n( *(at )?)/);
|
|
198
|
+
re = v && v[1] || "";
|
|
199
199
|
}
|
|
200
200
|
return `
|
|
201
|
-
` +
|
|
201
|
+
` + re + e;
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
var
|
|
204
|
+
var ne = !1, K;
|
|
205
205
|
{
|
|
206
206
|
var qe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
-
|
|
207
|
+
K = new qe();
|
|
208
208
|
}
|
|
209
209
|
function _e(e, r) {
|
|
210
|
-
if (!e ||
|
|
210
|
+
if (!e || ne)
|
|
211
211
|
return "";
|
|
212
212
|
{
|
|
213
|
-
var
|
|
214
|
-
if (
|
|
215
|
-
return
|
|
213
|
+
var a = K.get(e);
|
|
214
|
+
if (a !== void 0)
|
|
215
|
+
return a;
|
|
216
216
|
}
|
|
217
|
-
var
|
|
218
|
-
|
|
219
|
-
var
|
|
217
|
+
var v;
|
|
218
|
+
ne = !0;
|
|
219
|
+
var E = Error.prepareStackTrace;
|
|
220
220
|
Error.prepareStackTrace = void 0;
|
|
221
221
|
var p;
|
|
222
|
-
p =
|
|
222
|
+
p = te.current, te.current = null, ze();
|
|
223
223
|
try {
|
|
224
224
|
if (r) {
|
|
225
|
-
var
|
|
225
|
+
var h = function() {
|
|
226
226
|
throw Error();
|
|
227
227
|
};
|
|
228
|
-
if (Object.defineProperty(
|
|
228
|
+
if (Object.defineProperty(h.prototype, "props", {
|
|
229
229
|
set: function() {
|
|
230
230
|
throw Error();
|
|
231
231
|
}
|
|
232
232
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
233
233
|
try {
|
|
234
|
-
Reflect.construct(
|
|
234
|
+
Reflect.construct(h, []);
|
|
235
235
|
} catch ($) {
|
|
236
|
-
|
|
236
|
+
v = $;
|
|
237
237
|
}
|
|
238
|
-
Reflect.construct(e, [],
|
|
238
|
+
Reflect.construct(e, [], h);
|
|
239
239
|
} else {
|
|
240
240
|
try {
|
|
241
|
-
|
|
241
|
+
h.call();
|
|
242
242
|
} catch ($) {
|
|
243
|
-
|
|
243
|
+
v = $;
|
|
244
244
|
}
|
|
245
|
-
e.call(
|
|
245
|
+
e.call(h.prototype);
|
|
246
246
|
}
|
|
247
247
|
} else {
|
|
248
248
|
try {
|
|
249
249
|
throw Error();
|
|
250
250
|
} catch ($) {
|
|
251
|
-
|
|
251
|
+
v = $;
|
|
252
252
|
}
|
|
253
253
|
e();
|
|
254
254
|
}
|
|
255
255
|
} catch ($) {
|
|
256
|
-
if ($ &&
|
|
257
|
-
for (var
|
|
258
|
-
`),
|
|
259
|
-
`), C =
|
|
256
|
+
if ($ && v && typeof $.stack == "string") {
|
|
257
|
+
for (var m = $.stack.split(`
|
|
258
|
+
`), S = v.stack.split(`
|
|
259
|
+
`), C = m.length - 1, P = S.length - 1; C >= 1 && P >= 0 && m[C] !== S[P]; )
|
|
260
260
|
P--;
|
|
261
261
|
for (; C >= 1 && P >= 0; C--, P--)
|
|
262
|
-
if (
|
|
262
|
+
if (m[C] !== S[P]) {
|
|
263
263
|
if (C !== 1 || P !== 1)
|
|
264
264
|
do
|
|
265
|
-
if (C--, P--, P < 0 ||
|
|
265
|
+
if (C--, P--, P < 0 || m[C] !== S[P]) {
|
|
266
266
|
var O = `
|
|
267
|
-
` +
|
|
268
|
-
return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" &&
|
|
267
|
+
` + m[C].replace(" at new ", " at ");
|
|
268
|
+
return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && K.set(e, O), O;
|
|
269
269
|
}
|
|
270
270
|
while (C >= 1 && P >= 0);
|
|
271
271
|
break;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
} finally {
|
|
275
|
-
|
|
275
|
+
ne = !1, te.current = p, Ue(), Error.prepareStackTrace = E;
|
|
276
276
|
}
|
|
277
277
|
var V = e ? e.displayName || e.name : "", $e = V ? J(V) : "";
|
|
278
|
-
return typeof e == "function" &&
|
|
278
|
+
return typeof e == "function" && K.set(e, $e), $e;
|
|
279
279
|
}
|
|
280
|
-
function Be(e, r,
|
|
280
|
+
function Be(e, r, a) {
|
|
281
281
|
return _e(e, !1);
|
|
282
282
|
}
|
|
283
283
|
function Ge(e) {
|
|
284
284
|
var r = e.prototype;
|
|
285
285
|
return !!(r && r.isReactComponent);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function X(e, r, a) {
|
|
288
288
|
if (e == null)
|
|
289
289
|
return "";
|
|
290
290
|
if (typeof e == "function")
|
|
@@ -292,9 +292,9 @@ function Et() {
|
|
|
292
292
|
if (typeof e == "string")
|
|
293
293
|
return J(e);
|
|
294
294
|
switch (e) {
|
|
295
|
-
case
|
|
295
|
+
case g:
|
|
296
296
|
return J("Suspense");
|
|
297
|
-
case
|
|
297
|
+
case y:
|
|
298
298
|
return J("SuspenseList");
|
|
299
299
|
}
|
|
300
300
|
if (typeof e == "object")
|
|
@@ -302,55 +302,55 @@ function Et() {
|
|
|
302
302
|
case c:
|
|
303
303
|
return Be(e.render);
|
|
304
304
|
case w:
|
|
305
|
-
return
|
|
305
|
+
return X(e.type, r, a);
|
|
306
306
|
case R: {
|
|
307
|
-
var
|
|
307
|
+
var v = e, E = v._payload, p = v._init;
|
|
308
308
|
try {
|
|
309
|
-
return
|
|
309
|
+
return X(p(E), r, a);
|
|
310
310
|
} catch {
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
return "";
|
|
315
315
|
}
|
|
316
|
-
var
|
|
316
|
+
var H = Object.prototype.hasOwnProperty, Ce = {}, be = k.ReactDebugCurrentFrame;
|
|
317
317
|
function Z(e) {
|
|
318
318
|
if (e) {
|
|
319
|
-
var r = e._owner,
|
|
320
|
-
be.setExtraStackFrame(
|
|
319
|
+
var r = e._owner, a = X(e.type, e._source, r ? r.type : null);
|
|
320
|
+
be.setExtraStackFrame(a);
|
|
321
321
|
} else
|
|
322
322
|
be.setExtraStackFrame(null);
|
|
323
323
|
}
|
|
324
|
-
function Qe(e, r,
|
|
324
|
+
function Qe(e, r, a, v, E) {
|
|
325
325
|
{
|
|
326
|
-
var p = Function.call.bind(
|
|
327
|
-
for (var
|
|
328
|
-
if (p(e,
|
|
329
|
-
var
|
|
326
|
+
var p = Function.call.bind(H);
|
|
327
|
+
for (var h in e)
|
|
328
|
+
if (p(e, h)) {
|
|
329
|
+
var m = void 0;
|
|
330
330
|
try {
|
|
331
|
-
if (typeof e[
|
|
332
|
-
var
|
|
333
|
-
throw
|
|
331
|
+
if (typeof e[h] != "function") {
|
|
332
|
+
var S = Error((v || "React class") + ": " + a + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
333
|
+
throw S.name = "Invariant Violation", S;
|
|
334
334
|
}
|
|
335
|
-
|
|
335
|
+
m = e[h](r, h, v, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
336
|
} catch (C) {
|
|
337
|
-
|
|
337
|
+
m = C;
|
|
338
338
|
}
|
|
339
|
-
|
|
339
|
+
m && !(m instanceof Error) && (Z(E), _("%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).", v || "React class", a, h, typeof m), Z(null)), m instanceof Error && !(m.message in Ce) && (Ce[m.message] = !0, Z(E), _("Failed %s type: %s", a, m.message), Z(null));
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
var Je = Array.isArray;
|
|
344
|
-
function
|
|
344
|
+
function oe(e) {
|
|
345
345
|
return Je(e);
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function Ke(e) {
|
|
348
348
|
{
|
|
349
|
-
var r = typeof Symbol == "function" && Symbol.toStringTag,
|
|
350
|
-
return
|
|
349
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, a = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
350
|
+
return a;
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function Xe(e) {
|
|
354
354
|
try {
|
|
355
355
|
return Pe(e), !1;
|
|
356
356
|
} catch {
|
|
@@ -361,18 +361,18 @@ function Et() {
|
|
|
361
361
|
return "" + e;
|
|
362
362
|
}
|
|
363
363
|
function je(e) {
|
|
364
|
-
if (
|
|
365
|
-
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
364
|
+
if (Xe(e))
|
|
365
|
+
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ke(e)), Pe(e);
|
|
366
366
|
}
|
|
367
|
-
var
|
|
367
|
+
var B = k.ReactCurrentOwner, He = {
|
|
368
368
|
key: !0,
|
|
369
369
|
ref: !0,
|
|
370
370
|
__self: !0,
|
|
371
371
|
__source: !0
|
|
372
|
-
}, xe,
|
|
373
|
-
|
|
372
|
+
}, xe, Se, ae;
|
|
373
|
+
ae = {};
|
|
374
374
|
function Ze(e) {
|
|
375
|
-
if (
|
|
375
|
+
if (H.call(e, "ref")) {
|
|
376
376
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
377
377
|
if (r && r.isReactWarning)
|
|
378
378
|
return !1;
|
|
@@ -380,7 +380,7 @@ function Et() {
|
|
|
380
380
|
return e.ref !== void 0;
|
|
381
381
|
}
|
|
382
382
|
function et(e) {
|
|
383
|
-
if (
|
|
383
|
+
if (H.call(e, "key")) {
|
|
384
384
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
385
385
|
if (r && r.isReactWarning)
|
|
386
386
|
return !1;
|
|
@@ -388,97 +388,97 @@ function Et() {
|
|
|
388
388
|
return e.key !== void 0;
|
|
389
389
|
}
|
|
390
390
|
function tt(e, r) {
|
|
391
|
-
if (typeof e.ref == "string" &&
|
|
392
|
-
var
|
|
393
|
-
|
|
391
|
+
if (typeof e.ref == "string" && B.current && r && B.current.stateNode !== r) {
|
|
392
|
+
var a = I(B.current.type);
|
|
393
|
+
ae[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', I(B.current.type), e.ref), ae[a] = !0);
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
396
|
function rt(e, r) {
|
|
397
397
|
{
|
|
398
|
-
var
|
|
398
|
+
var a = function() {
|
|
399
399
|
xe || (xe = !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));
|
|
400
400
|
};
|
|
401
|
-
|
|
402
|
-
get:
|
|
401
|
+
a.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
402
|
+
get: a,
|
|
403
403
|
configurable: !0
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
407
|
function nt(e, r) {
|
|
408
408
|
{
|
|
409
|
-
var
|
|
410
|
-
|
|
409
|
+
var a = function() {
|
|
410
|
+
Se || (Se = !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));
|
|
411
411
|
};
|
|
412
|
-
|
|
413
|
-
get:
|
|
412
|
+
a.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
413
|
+
get: a,
|
|
414
414
|
configurable: !0
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
var ot = function(e, r,
|
|
419
|
-
var
|
|
418
|
+
var ot = function(e, r, a, v, E, p, h) {
|
|
419
|
+
var m = {
|
|
420
420
|
// This tag allows us to uniquely identify this as a React Element
|
|
421
421
|
$$typeof: n,
|
|
422
422
|
// Built-in properties that belong on the element
|
|
423
423
|
type: e,
|
|
424
424
|
key: r,
|
|
425
|
-
ref:
|
|
426
|
-
props:
|
|
425
|
+
ref: a,
|
|
426
|
+
props: h,
|
|
427
427
|
// Record the component responsible for creating this element.
|
|
428
428
|
_owner: p
|
|
429
429
|
};
|
|
430
|
-
return
|
|
430
|
+
return m._store = {}, Object.defineProperty(m._store, "validated", {
|
|
431
431
|
configurable: !1,
|
|
432
432
|
enumerable: !1,
|
|
433
433
|
writable: !0,
|
|
434
434
|
value: !1
|
|
435
|
-
}), Object.defineProperty(
|
|
435
|
+
}), Object.defineProperty(m, "_self", {
|
|
436
436
|
configurable: !1,
|
|
437
437
|
enumerable: !1,
|
|
438
438
|
writable: !1,
|
|
439
|
-
value:
|
|
440
|
-
}), Object.defineProperty(
|
|
439
|
+
value: v
|
|
440
|
+
}), Object.defineProperty(m, "_source", {
|
|
441
441
|
configurable: !1,
|
|
442
442
|
enumerable: !1,
|
|
443
443
|
writable: !1,
|
|
444
|
-
value:
|
|
445
|
-
}), Object.freeze && (Object.freeze(
|
|
444
|
+
value: E
|
|
445
|
+
}), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
|
|
446
446
|
};
|
|
447
|
-
function at(e, r,
|
|
447
|
+
function at(e, r, a, v, E) {
|
|
448
448
|
{
|
|
449
|
-
var p,
|
|
450
|
-
|
|
449
|
+
var p, h = {}, m = null, S = null;
|
|
450
|
+
a !== void 0 && (je(a), m = "" + a), et(r) && (je(r.key), m = "" + r.key), Ze(r) && (S = r.ref, tt(r, E));
|
|
451
451
|
for (p in r)
|
|
452
|
-
|
|
452
|
+
H.call(r, p) && !He.hasOwnProperty(p) && (h[p] = r[p]);
|
|
453
453
|
if (e && e.defaultProps) {
|
|
454
454
|
var C = e.defaultProps;
|
|
455
455
|
for (p in C)
|
|
456
|
-
|
|
456
|
+
h[p] === void 0 && (h[p] = C[p]);
|
|
457
457
|
}
|
|
458
|
-
if (
|
|
458
|
+
if (m || S) {
|
|
459
459
|
var P = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
460
|
-
|
|
460
|
+
m && rt(h, P), S && nt(h, P);
|
|
461
461
|
}
|
|
462
|
-
return ot(e,
|
|
462
|
+
return ot(e, m, S, E, v, B.current, h);
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
|
-
var
|
|
465
|
+
var ie = k.ReactCurrentOwner, Te = k.ReactDebugCurrentFrame;
|
|
466
466
|
function M(e) {
|
|
467
467
|
if (e) {
|
|
468
|
-
var r = e._owner,
|
|
469
|
-
|
|
468
|
+
var r = e._owner, a = X(e.type, e._source, r ? r.type : null);
|
|
469
|
+
Te.setExtraStackFrame(a);
|
|
470
470
|
} else
|
|
471
|
-
|
|
471
|
+
Te.setExtraStackFrame(null);
|
|
472
472
|
}
|
|
473
|
-
var
|
|
474
|
-
|
|
473
|
+
var se;
|
|
474
|
+
se = !1;
|
|
475
475
|
function ue(e) {
|
|
476
476
|
return typeof e == "object" && e !== null && e.$$typeof === n;
|
|
477
477
|
}
|
|
478
478
|
function Oe() {
|
|
479
479
|
{
|
|
480
|
-
if (
|
|
481
|
-
var e = I(
|
|
480
|
+
if (ie.current) {
|
|
481
|
+
var e = I(ie.current.type);
|
|
482
482
|
if (e)
|
|
483
483
|
return `
|
|
484
484
|
|
|
@@ -491,14 +491,14 @@ Check the render method of \`` + e + "`.";
|
|
|
491
491
|
return "";
|
|
492
492
|
}
|
|
493
493
|
var Ae = {};
|
|
494
|
-
function
|
|
494
|
+
function st(e) {
|
|
495
495
|
{
|
|
496
496
|
var r = Oe();
|
|
497
497
|
if (!r) {
|
|
498
|
-
var
|
|
499
|
-
|
|
498
|
+
var a = typeof e == "string" ? e : e.displayName || e.name;
|
|
499
|
+
a && (r = `
|
|
500
500
|
|
|
501
|
-
Check the top-level render call using <` +
|
|
501
|
+
Check the top-level render call using <` + a + ">.");
|
|
502
502
|
}
|
|
503
503
|
return r;
|
|
504
504
|
}
|
|
@@ -508,89 +508,89 @@ Check the top-level render call using <` + o + ">.");
|
|
|
508
508
|
if (!e._store || e._store.validated || e.key != null)
|
|
509
509
|
return;
|
|
510
510
|
e._store.validated = !0;
|
|
511
|
-
var
|
|
512
|
-
if (Ae[
|
|
511
|
+
var a = st(r);
|
|
512
|
+
if (Ae[a])
|
|
513
513
|
return;
|
|
514
|
-
Ae[
|
|
515
|
-
var
|
|
516
|
-
e && e._owner && e._owner !==
|
|
514
|
+
Ae[a] = !0;
|
|
515
|
+
var v = "";
|
|
516
|
+
e && e._owner && e._owner !== ie.current && (v = " It was passed a child from " + I(e._owner.type) + "."), M(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, v), M(null);
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
519
|
function De(e, r) {
|
|
520
520
|
{
|
|
521
521
|
if (typeof e != "object")
|
|
522
522
|
return;
|
|
523
|
-
if (
|
|
524
|
-
for (var
|
|
525
|
-
var
|
|
526
|
-
ue(
|
|
523
|
+
if (oe(e))
|
|
524
|
+
for (var a = 0; a < e.length; a++) {
|
|
525
|
+
var v = e[a];
|
|
526
|
+
ue(v) && ke(v, r);
|
|
527
527
|
}
|
|
528
528
|
else if (ue(e))
|
|
529
529
|
e._store && (e._store.validated = !0);
|
|
530
530
|
else if (e) {
|
|
531
|
-
var
|
|
532
|
-
if (typeof
|
|
533
|
-
for (var p =
|
|
534
|
-
ue(
|
|
531
|
+
var E = x(e);
|
|
532
|
+
if (typeof E == "function" && E !== e.entries)
|
|
533
|
+
for (var p = E.call(e), h; !(h = p.next()).done; )
|
|
534
|
+
ue(h.value) && ke(h.value, r);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function ut(e) {
|
|
539
539
|
{
|
|
540
540
|
var r = e.type;
|
|
541
541
|
if (r == null || typeof r == "string")
|
|
542
542
|
return;
|
|
543
|
-
var
|
|
543
|
+
var a;
|
|
544
544
|
if (typeof r == "function")
|
|
545
|
-
|
|
545
|
+
a = r.propTypes;
|
|
546
546
|
else if (typeof r == "object" && (r.$$typeof === c || // Note: Memo only checks outer props here.
|
|
547
547
|
// Inner props are checked in the reconciler.
|
|
548
548
|
r.$$typeof === w))
|
|
549
|
-
|
|
549
|
+
a = r.propTypes;
|
|
550
550
|
else
|
|
551
551
|
return;
|
|
552
|
-
if (
|
|
553
|
-
var
|
|
554
|
-
Qe(
|
|
555
|
-
} else if (r.PropTypes !== void 0 && !
|
|
556
|
-
|
|
557
|
-
var
|
|
558
|
-
_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
552
|
+
if (a) {
|
|
553
|
+
var v = I(r);
|
|
554
|
+
Qe(a, e.props, "prop", v, e);
|
|
555
|
+
} else if (r.PropTypes !== void 0 && !se) {
|
|
556
|
+
se = !0;
|
|
557
|
+
var E = I(r);
|
|
558
|
+
_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", E || "Unknown");
|
|
559
559
|
}
|
|
560
560
|
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
563
|
function ct(e) {
|
|
564
564
|
{
|
|
565
|
-
for (var r = Object.keys(e.props),
|
|
566
|
-
var
|
|
567
|
-
if (
|
|
568
|
-
M(e), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
|
565
|
+
for (var r = Object.keys(e.props), a = 0; a < r.length; a++) {
|
|
566
|
+
var v = r[a];
|
|
567
|
+
if (v !== "children" && v !== "key") {
|
|
568
|
+
M(e), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), M(null);
|
|
569
569
|
break;
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
572
|
e.ref !== null && (M(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), M(null));
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
|
-
function Ie(e, r,
|
|
575
|
+
function Ie(e, r, a, v, E, p) {
|
|
576
576
|
{
|
|
577
|
-
var
|
|
578
|
-
if (!
|
|
579
|
-
var
|
|
580
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
581
|
-
var
|
|
582
|
-
|
|
577
|
+
var h = Me(e);
|
|
578
|
+
if (!h) {
|
|
579
|
+
var m = "";
|
|
580
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (m += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
581
|
+
var S = it();
|
|
582
|
+
S ? m += S : m += Oe();
|
|
583
583
|
var C;
|
|
584
|
-
e === null ? C = "null" :
|
|
584
|
+
e === null ? C = "null" : oe(e) ? C = "array" : e !== void 0 && e.$$typeof === n ? (C = "<" + (I(e.type) || "Unknown") + " />", m = " Did you accidentally export a JSX literal instead of a component?") : C = 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", C, m);
|
|
585
585
|
}
|
|
586
|
-
var P = at(e, r,
|
|
586
|
+
var P = at(e, r, a, E, p);
|
|
587
587
|
if (P == null)
|
|
588
588
|
return P;
|
|
589
|
-
if (
|
|
589
|
+
if (h) {
|
|
590
590
|
var O = r.children;
|
|
591
591
|
if (O !== void 0)
|
|
592
|
-
if (
|
|
593
|
-
if (
|
|
592
|
+
if (v)
|
|
593
|
+
if (oe(O)) {
|
|
594
594
|
for (var V = 0; V < O.length; V++)
|
|
595
595
|
De(O[V], e);
|
|
596
596
|
Object.freeze && Object.freeze(O);
|
|
@@ -599,83 +599,83 @@ Check the top-level render call using <` + o + ">.");
|
|
|
599
599
|
else
|
|
600
600
|
De(O, e);
|
|
601
601
|
}
|
|
602
|
-
return e ===
|
|
602
|
+
return e === s ? ct(P) : ut(P), P;
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
|
-
function lt(e, r,
|
|
606
|
-
return Ie(e, r,
|
|
605
|
+
function lt(e, r, a) {
|
|
606
|
+
return Ie(e, r, a, !0);
|
|
607
607
|
}
|
|
608
|
-
function ft(e, r,
|
|
609
|
-
return Ie(e, r,
|
|
608
|
+
function ft(e, r, a) {
|
|
609
|
+
return Ie(e, r, a, !1);
|
|
610
610
|
}
|
|
611
611
|
var dt = ft, vt = lt;
|
|
612
|
-
|
|
613
|
-
}()),
|
|
612
|
+
Q.Fragment = s, Q.jsx = dt, Q.jsxs = vt;
|
|
613
|
+
}()), Q;
|
|
614
614
|
}
|
|
615
615
|
process.env.NODE_ENV === "production" ? ce.exports = yt() : ce.exports = Et();
|
|
616
616
|
var F = ce.exports;
|
|
617
|
-
const A = gt({}), At = ({ children: t, apiURL: n, libraries:
|
|
618
|
-
const
|
|
617
|
+
const A = gt({}), At = ({ children: t, apiURL: n, libraries: o }) => {
|
|
618
|
+
const s = le(
|
|
619
619
|
() => ({
|
|
620
620
|
apiURL: n,
|
|
621
|
-
libraries:
|
|
621
|
+
libraries: o
|
|
622
622
|
}),
|
|
623
|
-
[n,
|
|
623
|
+
[n, o]
|
|
624
624
|
);
|
|
625
|
-
return /* @__PURE__ */ F.jsx(A.Provider, { value:
|
|
625
|
+
return /* @__PURE__ */ F.jsx(A.Provider, { value: s, children: t });
|
|
626
626
|
}, kt = ({
|
|
627
627
|
Fallback: t,
|
|
628
628
|
isLogged: n,
|
|
629
|
-
loginPath:
|
|
630
|
-
localStorageKey:
|
|
629
|
+
loginPath: o = "/login",
|
|
630
|
+
localStorageKey: s = "user",
|
|
631
631
|
redirect401Path: i = "/login",
|
|
632
|
-
...
|
|
632
|
+
...f
|
|
633
633
|
}) => {
|
|
634
|
-
var _,
|
|
635
|
-
const { libraries:
|
|
636
|
-
if (!
|
|
634
|
+
var _, L, N, Y;
|
|
635
|
+
const { libraries: l } = D(A), d = (f == null ? void 0 : f.reactRouter) || (l == null ? void 0 : l.reactRouter), c = (f == null ? void 0 : f.axios) || (l == null ? void 0 : l.axios);
|
|
636
|
+
if (!d)
|
|
637
637
|
throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
638
|
-
const [
|
|
639
|
-
return
|
|
640
|
-
|
|
638
|
+
const [g, y] = We(null), { useLocation: w, Navigate: R, Outlet: u } = d, j = w(), T = mt(!1), x = typeof n == "function" ? n() : !!n, k = typeof x == "boolean" ? x : x == null ? void 0 : x.isLogged;
|
|
639
|
+
return z(() => {
|
|
640
|
+
T.current || (T.current = !0, c.interceptors.response.use(
|
|
641
641
|
(b) => b,
|
|
642
642
|
async (b) => {
|
|
643
|
-
var
|
|
644
|
-
return typeof b == "object" && b && "response" in b && b.response && typeof b.response == "object" && "status" in b.response && b.response && typeof b.response == "object" && "status" in b.response && ((
|
|
643
|
+
var U;
|
|
644
|
+
return typeof b == "object" && b && "response" in b && b.response && typeof b.response == "object" && "status" in b.response && b.response && typeof b.response == "object" && "status" in b.response && ((U = b == null ? void 0 : b.response) == null ? void 0 : U.status) === 401 && (c.defaults.headers.common.Authorization = null, localStorage.removeItem(s), y(i)), Promise.reject(b);
|
|
645
645
|
}
|
|
646
646
|
));
|
|
647
|
-
}, [c.defaults.headers.common, c.interceptors.response,
|
|
647
|
+
}, [c.defaults.headers.common, c.interceptors.response, s, i]), k && !g ? /* @__PURE__ */ F.jsx(ht, { fallback: t, children: (L = (_ = j.state) == null ? void 0 : _.from) != null && L.state && ((Y = (N = j.state) == null ? void 0 : N.from) == null ? void 0 : Y.pathname) === o ? /* @__PURE__ */ F.jsx(R, { to: j.state.from.state.from.pathname + j.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ F.jsx(u, {}) }) : /* @__PURE__ */ F.jsx(R, { to: o + j.search, state: { from: j }, replace: !0 });
|
|
648
648
|
}, Dt = ({ ...t }) => {
|
|
649
|
-
const { libraries: n } = D(A),
|
|
650
|
-
if (!
|
|
649
|
+
const { libraries: n } = D(A), o = (t == null ? void 0 : t.reactRouter) || (n == null ? void 0 : n.reactRouter), s = (t == null ? void 0 : t.gtm) || (n == null ? void 0 : n.gtm);
|
|
650
|
+
if (!o)
|
|
651
651
|
throw new Error(
|
|
652
652
|
"React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView."
|
|
653
653
|
);
|
|
654
|
-
if (!
|
|
654
|
+
if (!s)
|
|
655
655
|
throw new Error("GTM is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView.");
|
|
656
|
-
const { useGoogleTagManager: i } =
|
|
657
|
-
return
|
|
658
|
-
c({ event: "pageView", pathname:
|
|
659
|
-
}, [
|
|
656
|
+
const { useGoogleTagManager: i } = s, { useLocation: f, Outlet: l } = o, { pathname: d } = f(), { sendEvent: c } = i();
|
|
657
|
+
return z(() => {
|
|
658
|
+
c({ event: "pageView", pathname: d });
|
|
659
|
+
}, [d, c]), /* @__PURE__ */ F.jsx(l, {});
|
|
660
660
|
}, It = ({
|
|
661
661
|
tokenTypeKey: t = "tokenType",
|
|
662
662
|
userLocalStorageKey: n = "user",
|
|
663
|
-
tokenKey:
|
|
664
|
-
postContentType:
|
|
663
|
+
tokenKey: o = "accessToken",
|
|
664
|
+
postContentType: s = "application/json",
|
|
665
665
|
...i
|
|
666
666
|
}) => {
|
|
667
|
-
const { apiURL:
|
|
668
|
-
if (!
|
|
667
|
+
const { apiURL: f = i.apiURL, libraries: l } = D(A), d = (i == null ? void 0 : i.axios) || (l == null ? void 0 : l.axios);
|
|
668
|
+
if (!d)
|
|
669
669
|
throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
670
|
-
if (!(
|
|
670
|
+
if (!(d != null && d.defaults))
|
|
671
671
|
return null;
|
|
672
|
-
const c = localStorage.getItem(n),
|
|
673
|
-
return
|
|
674
|
-
}, $t = ({ debug: t, resources: n, ...
|
|
675
|
-
const { libraries:
|
|
672
|
+
const c = localStorage.getItem(n), g = c ? JSON.parse(c) : null, y = g != null && g[t] ? g[t] : null, w = g != null && g[o] ? g[o] : null, R = c ? `${y} ${w}` : null;
|
|
673
|
+
return d.defaults.baseURL = f, d.defaults.headers.post["Content-Type"] = s, R && (d.defaults.headers.common.Authorization = R), null;
|
|
674
|
+
}, $t = ({ debug: t, resources: n, ...o }) => {
|
|
675
|
+
const { libraries: s } = D(A), i = (o == null ? void 0 : o.i18) || (s == null ? void 0 : s.i18), { i18next: f, initReactI18next: l, languageDetector: d } = i || {};
|
|
676
676
|
if (!i)
|
|
677
677
|
throw new Error("i18 is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
678
|
-
return
|
|
678
|
+
return f != null && f.isInitialized || (f.use(d).use(l).init({
|
|
679
679
|
debug: t,
|
|
680
680
|
fallbackLng: "en",
|
|
681
681
|
interpolation: {
|
|
@@ -689,232 +689,249 @@ const A = gt({}), At = ({ children: t, apiURL: n, libraries: a }) => {
|
|
|
689
689
|
resources: n,
|
|
690
690
|
returnNull: !1
|
|
691
691
|
}).then(() => {
|
|
692
|
-
document.documentElement.lang !==
|
|
693
|
-
}),
|
|
692
|
+
document.documentElement.lang !== f.resolvedLanguage && f.resolvedLanguage && document.documentElement.setAttribute("lang", f.resolvedLanguage);
|
|
693
|
+
}), f.on("languageChanged", (c) => {
|
|
694
694
|
document.documentElement.setAttribute("lang", c);
|
|
695
695
|
})), null;
|
|
696
696
|
}, Ft = ({
|
|
697
697
|
dsn: t,
|
|
698
698
|
integrations: n,
|
|
699
|
-
tracesSampleRate:
|
|
700
|
-
replaysSessionSampleRate:
|
|
699
|
+
tracesSampleRate: o,
|
|
700
|
+
replaysSessionSampleRate: s,
|
|
701
701
|
replaysOnErrorSampleRate: i,
|
|
702
|
-
tracePropagationTargets:
|
|
703
|
-
ignoreErrors:
|
|
704
|
-
debug:
|
|
702
|
+
tracePropagationTargets: f,
|
|
703
|
+
ignoreErrors: l,
|
|
704
|
+
debug: d,
|
|
705
705
|
environment: c,
|
|
706
|
-
...
|
|
706
|
+
...g
|
|
707
707
|
}) => {
|
|
708
|
-
const { libraries:
|
|
708
|
+
const { libraries: y } = D(A), w = (g == null ? void 0 : g.sentry) || (y == null ? void 0 : y.sentry), R = (g == null ? void 0 : g.reactRouter) || (y == null ? void 0 : y.reactRouter);
|
|
709
709
|
if (!w)
|
|
710
710
|
throw new Error("Sentry is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
711
711
|
if (!R)
|
|
712
712
|
throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
713
713
|
if (w.isInitialized())
|
|
714
714
|
return null;
|
|
715
|
-
const { createRoutesFromChildren:
|
|
716
|
-
return (
|
|
717
|
-
debug:
|
|
715
|
+
const { createRoutesFromChildren: u, matchRoutes: j, useLocation: T, useNavigationType: x } = R;
|
|
716
|
+
return (d || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && w.init({
|
|
717
|
+
debug: d,
|
|
718
718
|
dsn: t,
|
|
719
719
|
environment: c || "production",
|
|
720
|
-
ignoreErrors: [...
|
|
720
|
+
ignoreErrors: [...l || [], /dynamically imported module/],
|
|
721
721
|
integrations: [
|
|
722
722
|
w.reactRouterV6BrowserTracingIntegration({
|
|
723
|
-
createRoutesFromChildren:
|
|
723
|
+
createRoutesFromChildren: u,
|
|
724
724
|
matchRoutes: j,
|
|
725
|
-
useEffect:
|
|
726
|
-
useLocation:
|
|
725
|
+
useEffect: z,
|
|
726
|
+
useLocation: T,
|
|
727
727
|
useNavigationType: x
|
|
728
728
|
}),
|
|
729
729
|
...n || []
|
|
730
730
|
],
|
|
731
731
|
replaysOnErrorSampleRate: i || 1,
|
|
732
|
-
replaysSessionSampleRate:
|
|
733
|
-
tracePropagationTargets:
|
|
734
|
-
tracesSampleRate:
|
|
732
|
+
replaysSessionSampleRate: s || 0.1,
|
|
733
|
+
tracePropagationTargets: f,
|
|
734
|
+
tracesSampleRate: o || 1
|
|
735
735
|
}), null;
|
|
736
|
-
},
|
|
737
|
-
const
|
|
736
|
+
}, Lt = ({ IMaskMixin: t, ...n }) => {
|
|
737
|
+
const o = le(
|
|
738
738
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
739
|
-
() => t(({ TextField:
|
|
739
|
+
() => t(({ TextField: s, ...i }) => /* @__PURE__ */ F.jsx(s, { ...i })),
|
|
740
740
|
[t]
|
|
741
741
|
);
|
|
742
|
-
return /* @__PURE__ */ F.jsx(
|
|
743
|
-
},
|
|
744
|
-
const { libraries:
|
|
745
|
-
if (!
|
|
742
|
+
return /* @__PURE__ */ F.jsx(o, { ...n });
|
|
743
|
+
}, Nt = ({ accessToken: t, ...n }) => {
|
|
744
|
+
const { libraries: o } = D(A), s = (n == null ? void 0 : n.mapbox) || (o == null ? void 0 : o.mapbox);
|
|
745
|
+
if (!s)
|
|
746
746
|
throw new Error("Mapbox is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
747
|
-
return t && (
|
|
748
|
-
},
|
|
749
|
-
const { libraries:
|
|
750
|
-
if (!
|
|
747
|
+
return t && (s.accessToken = t), null;
|
|
748
|
+
}, Yt = ({ language: t, ...n }) => {
|
|
749
|
+
const { libraries: o } = D(A), s = (n == null ? void 0 : n.dayjs) || (o == null ? void 0 : o.dayjs), i = (n == null ? void 0 : n.plugin) || (o == null ? void 0 : o.dayjsPlugin);
|
|
750
|
+
if (!s)
|
|
751
751
|
throw new Error(
|
|
752
752
|
"Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props of InitializeDaysJSConfig."
|
|
753
753
|
);
|
|
754
|
-
return
|
|
754
|
+
return z(() => {
|
|
755
755
|
(async () => {
|
|
756
|
-
var
|
|
757
|
-
const
|
|
756
|
+
var d;
|
|
757
|
+
const l = t || ((d = navigator.language) == null ? void 0 : d.slice(0, 2)) || "en";
|
|
758
758
|
i && i.forEach((c) => {
|
|
759
|
-
c &&
|
|
760
|
-
}), await import("dayjs/locale/en"), await import("dayjs/locale/fr"),
|
|
759
|
+
c && s.extend(c);
|
|
760
|
+
}), await import("dayjs/locale/en"), await import("dayjs/locale/fr"), s.locale(l);
|
|
761
761
|
})().then();
|
|
762
|
-
}, [
|
|
762
|
+
}, [s, i, t]), null;
|
|
763
763
|
}, pt = (t) => t && typeof t == "function", Rt = (t) => t && typeof t == "function", Wt = ({
|
|
764
764
|
children: t,
|
|
765
765
|
defaultQueriesOptions: n,
|
|
766
|
-
defaultMutationsOptions:
|
|
767
|
-
...
|
|
766
|
+
defaultMutationsOptions: o,
|
|
767
|
+
...s
|
|
768
768
|
}) => {
|
|
769
|
-
var c,
|
|
770
|
-
const { libraries: i } = D(A),
|
|
771
|
-
if (!l)
|
|
772
|
-
throw new Error("QueryClient is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
769
|
+
var c, g;
|
|
770
|
+
const { libraries: i } = D(A), f = (s == null ? void 0 : s.QueryClient) || ((c = i == null ? void 0 : i.reactQuery) == null ? void 0 : c.QueryClient), l = (s == null ? void 0 : s.QueryClientProvider) || ((g = i == null ? void 0 : i.reactQuery) == null ? void 0 : g.QueryClientProvider);
|
|
773
771
|
if (!f)
|
|
772
|
+
throw new Error("QueryClient is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
773
|
+
if (!l)
|
|
774
774
|
throw new Error("QueryClientProvider is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
775
|
-
if (!pt(
|
|
775
|
+
if (!pt(l))
|
|
776
776
|
throw new Error("Provided QueryClientProvider dependencies are not valid.");
|
|
777
|
-
if (!Rt(
|
|
777
|
+
if (!Rt(f))
|
|
778
778
|
throw new Error("Provided QueryClient dependencies are not valid.");
|
|
779
|
-
const
|
|
779
|
+
const d = new f({
|
|
780
780
|
defaultOptions: {
|
|
781
781
|
mutations: {
|
|
782
|
-
...
|
|
782
|
+
...o
|
|
783
783
|
},
|
|
784
784
|
queries: {
|
|
785
|
-
getNextPageParam: (
|
|
785
|
+
getNextPageParam: (y, w, R) => y.length + (R || 0),
|
|
786
786
|
refetchOnWindowFocus: !1,
|
|
787
787
|
retry: 3,
|
|
788
788
|
...n
|
|
789
789
|
}
|
|
790
790
|
}
|
|
791
791
|
});
|
|
792
|
-
return /* @__PURE__ */ F.jsx(
|
|
792
|
+
return /* @__PURE__ */ F.jsx(l, { client: d, children: t });
|
|
793
793
|
}, Mt = (t) => {
|
|
794
|
-
var
|
|
795
|
-
const { libraries: n } = D(A),
|
|
794
|
+
var g, y, w;
|
|
795
|
+
const { libraries: n } = D(A), o = (t == null ? void 0 : t.i18) || (n == null ? void 0 : n.i18), s = ((g = t == null ? void 0 : t.i18) == null ? void 0 : g.translateFunction) || ((y = n == null ? void 0 : n.i18) == null ? void 0 : y.translateFunction), i = ((w = o == null ? void 0 : o.i18next) == null ? void 0 : w.t) || s || ((R) => R), { unknownErrorTranslationKey: f = "error.unknownError" } = t || {}, l = i(f), d = ee(
|
|
796
796
|
(R) => {
|
|
797
|
-
var j,
|
|
798
|
-
const { response:
|
|
799
|
-
return
|
|
797
|
+
var j, T, x, k, _, L, N, Y, b;
|
|
798
|
+
const { response: u } = R || {};
|
|
799
|
+
return u != null && u.reason ? String(u.reason) : (j = u == null ? void 0 : u.data) != null && j.reason ? String(u.data.reason) : (T = u == null ? void 0 : u.data) != null && T.message ? String(u.data.message) : (k = (x = u == null ? void 0 : u.data) == null ? void 0 : x.detail) != null && k.length && Array.isArray((_ = u == null ? void 0 : u.data) == null ? void 0 : _.detail) && ((N = (L = u == null ? void 0 : u.data) == null ? void 0 : L.detail[0]) != null && N.msg) && typeof ((b = (Y = u == null ? void 0 : u.data) == null ? void 0 : Y.detail[0]) == null ? void 0 : b.msg) == "string" ? String(u.data.detail[0].msg) : l;
|
|
800
800
|
},
|
|
801
|
-
[
|
|
801
|
+
[l]
|
|
802
802
|
);
|
|
803
|
-
return { getErrorCode:
|
|
804
|
-
var j,
|
|
805
|
-
const { response:
|
|
806
|
-
return
|
|
807
|
-
}, []), printError:
|
|
803
|
+
return { getErrorCode: ee((R) => {
|
|
804
|
+
var j, T, x;
|
|
805
|
+
const { response: u } = R || {};
|
|
806
|
+
return u != null && u.error_code ? String(u == null ? void 0 : u.error_code) : (j = u == null ? void 0 : u.data) != null && j.error_code ? String((T = u == null ? void 0 : u.data) == null ? void 0 : T.error_code) : u != null && u.error_code ? String(u == null ? void 0 : u.error_code) : (x = u == null ? void 0 : u.data) != null && x.error_code ? String(u.data.error_code) : "unknown_error_code";
|
|
807
|
+
}, []), printError: d };
|
|
808
808
|
}, Vt = ({
|
|
809
809
|
data: t,
|
|
810
810
|
fetchNextPage: n,
|
|
811
|
-
isFetchingNextPage:
|
|
812
|
-
isInitialLoading:
|
|
811
|
+
isFetchingNextPage: o,
|
|
812
|
+
isInitialLoading: s,
|
|
813
813
|
isLoading: i,
|
|
814
|
-
enabled:
|
|
814
|
+
enabled: f = !0
|
|
815
815
|
}) => {
|
|
816
|
-
const
|
|
816
|
+
const l = ee(
|
|
817
817
|
async (c) => {
|
|
818
|
-
|
|
818
|
+
o || !f || await n({ pageParam: (c == null ? void 0 : c.pageParam) || c.visibleRowsCount });
|
|
819
819
|
},
|
|
820
|
-
[
|
|
821
|
-
),
|
|
820
|
+
[f, n, o]
|
|
821
|
+
), d = le(() => {
|
|
822
822
|
if (t)
|
|
823
|
-
return t.pages.reduce((c,
|
|
823
|
+
return t.pages.reduce((c, g) => [...c, ...g], []);
|
|
824
824
|
}, [t]);
|
|
825
825
|
return {
|
|
826
|
-
fetchNextPageOnRowsScrollEnd:
|
|
827
|
-
isLoading:
|
|
828
|
-
loadingVariant:
|
|
829
|
-
rows:
|
|
826
|
+
fetchNextPageOnRowsScrollEnd: l,
|
|
827
|
+
isLoading: o || i,
|
|
828
|
+
loadingVariant: s ? "skeleton" : "linear",
|
|
829
|
+
rows: d
|
|
830
830
|
};
|
|
831
831
|
}, zt = (t) => {
|
|
832
|
-
const { libraries: n } = D(A),
|
|
833
|
-
if (!
|
|
832
|
+
const { libraries: n } = D(A), o = (t == null ? void 0 : t.axios) || (n == null ? void 0 : n.axios), s = (t == null ? void 0 : t.localStorageKey) || "user";
|
|
833
|
+
if (!o)
|
|
834
834
|
throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in params of useAuth.");
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
835
|
+
const i = ee(
|
|
836
|
+
({ tokenType: l, accessToken: d }) => {
|
|
837
|
+
o.defaults.headers.common.Authorization = `${l} ${d}`;
|
|
838
838
|
},
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
839
|
+
[o.defaults.headers.common]
|
|
840
|
+
), f = () => {
|
|
841
|
+
o.defaults.headers.common.Authorization = null;
|
|
842
|
+
};
|
|
843
|
+
return z(() => {
|
|
844
|
+
const l = ({ newValue: d, key: c }) => {
|
|
845
|
+
if (c === s && d)
|
|
846
|
+
try {
|
|
847
|
+
const { accessToken: g, tokenType: y } = JSON.parse(d);
|
|
848
|
+
i({ accessToken: g, tokenType: y });
|
|
849
|
+
} catch (g) {
|
|
850
|
+
console.error("Failed to parse newValue from localStorage:", g);
|
|
851
|
+
}
|
|
852
|
+
};
|
|
853
|
+
return window.addEventListener("storage", l), () => {
|
|
854
|
+
window.removeEventListener("storage", l);
|
|
855
|
+
};
|
|
856
|
+
}, [s, i]), {
|
|
857
|
+
clearAuthenticationToken: f,
|
|
858
|
+
setAuthenticationToken: i
|
|
842
859
|
};
|
|
843
|
-
}, wt = ({ library: t, date: n, format:
|
|
844
|
-
const
|
|
845
|
-
return Number.isNaN(
|
|
846
|
-
}, Ct = (t) => t != null && t.startsWith("/") ? t != null && t.startsWith("/files") ? t : `/files${t}` : t != null && t.startsWith("files") ? `/${t}` : t != null && t.startsWith("files") ? `/${t}` : `/files/${t}`, bt = ({ path: t, size: n, apiURL:
|
|
860
|
+
}, wt = ({ library: t, date: n, format: o = "ll" }) => t(n).format(o), _t = (t, n = "km") => {
|
|
861
|
+
const o = Number(t);
|
|
862
|
+
return Number.isNaN(o) ? `0 ${n}` : `${o.toFixed(2)} ${n}`;
|
|
863
|
+
}, Ct = (t) => t != null && t.startsWith("/") ? t != null && t.startsWith("/files") ? t : `/files${t}` : t != null && t.startsWith("files") ? `/${t}` : t != null && t.startsWith("files") ? `/${t}` : `/files/${t}`, bt = ({ path: t, size: n, apiURL: o }) => {
|
|
847
864
|
if (!t)
|
|
848
865
|
return "";
|
|
849
|
-
const
|
|
850
|
-
return typeof n == "number" &&
|
|
866
|
+
const s = Ct(t), i = `${o}${s}`, f = i.match(/\.(jpeg|jpg|png|gif|bmp|webp|svg|avif)$/) !== null;
|
|
867
|
+
return typeof n == "number" && f ? `${i.replace("/files", `/thumbs/${n}`)}` : i;
|
|
851
868
|
}, Ut = (t) => {
|
|
852
|
-
const { apiURL: n, libraries:
|
|
869
|
+
const { apiURL: n, libraries: o } = D(A), s = (t == null ? void 0 : t.dayjs) || (o == null ? void 0 : o.dayjs);
|
|
853
870
|
return {
|
|
854
|
-
dateAdapter: (
|
|
855
|
-
if (!
|
|
871
|
+
dateAdapter: (l, d) => {
|
|
872
|
+
if (!s)
|
|
856
873
|
throw new Error("Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
857
874
|
return wt({
|
|
858
|
-
date:
|
|
859
|
-
format:
|
|
860
|
-
library:
|
|
875
|
+
date: l,
|
|
876
|
+
format: d,
|
|
877
|
+
library: s
|
|
861
878
|
});
|
|
862
879
|
},
|
|
863
880
|
distanceAdapter: _t,
|
|
864
|
-
filePathAdapter: (
|
|
881
|
+
filePathAdapter: (l, d) => {
|
|
865
882
|
if (!n)
|
|
866
883
|
throw new Error(
|
|
867
884
|
"API URL is not provided. You can provide it with InjectDependenciesProvider or directly in props to filePathAdapter."
|
|
868
885
|
);
|
|
869
886
|
return bt({
|
|
870
887
|
apiURL: n,
|
|
871
|
-
path:
|
|
872
|
-
size:
|
|
888
|
+
path: l,
|
|
889
|
+
size: d
|
|
873
890
|
});
|
|
874
891
|
}
|
|
875
892
|
};
|
|
876
|
-
},
|
|
877
|
-
const [
|
|
878
|
-
return
|
|
879
|
-
var
|
|
880
|
-
const i = (
|
|
881
|
-
|
|
893
|
+
}, Ne = (t, n) => n === "short" ? t.split("-")[0] : t, qt = (t, n = "full") => {
|
|
894
|
+
const [o, s] = We(() => Ne((t == null ? void 0 : t.language) || navigator.language, n));
|
|
895
|
+
return z(() => {
|
|
896
|
+
var f;
|
|
897
|
+
const i = (l) => {
|
|
898
|
+
s(Ne(l, n));
|
|
882
899
|
};
|
|
883
|
-
return (
|
|
884
|
-
var
|
|
885
|
-
(
|
|
900
|
+
return (f = t == null ? void 0 : t.on) == null || f.call(t, "languageChanged", i), () => {
|
|
901
|
+
var l;
|
|
902
|
+
(l = t == null ? void 0 : t.off) == null || l.call(t, "languageChanged", i);
|
|
886
903
|
};
|
|
887
|
-
}, [t, n]),
|
|
904
|
+
}, [t, n]), o;
|
|
888
905
|
}, Pt = (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase(), jt = (t) => {
|
|
889
|
-
const
|
|
890
|
-
return
|
|
891
|
-
}, xt = (t) => (t.split("/").pop() || t).replace(/\.json$/, "").replace(/^openapi\./, ""),
|
|
892
|
-
const
|
|
893
|
-
return `${
|
|
894
|
-
},
|
|
906
|
+
const s = t.split("/").filter((i) => i.length > 0).map((i) => i.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((c) => c.charAt(0).toUpperCase() + c.slice(1)).join("")).join("");
|
|
907
|
+
return s.charAt(0).toLowerCase() + s.slice(1);
|
|
908
|
+
}, xt = (t) => (t.split("/").pop() || t).replace(/\.json$/, "").replace(/^openapi\./, ""), St = (t, n, o) => {
|
|
909
|
+
const s = jt(n), i = Pt(o);
|
|
910
|
+
return `${s}${i}`;
|
|
911
|
+
}, Tt = (t) => {
|
|
895
912
|
if (t)
|
|
896
|
-
return (t == null ? void 0 : t.reduce((n,
|
|
913
|
+
return (t == null ? void 0 : t.reduce((n, o) => (n[o] = {
|
|
897
914
|
query: {
|
|
898
915
|
useInfinite: !0,
|
|
899
916
|
useInfiniteQueryParam: "offset",
|
|
900
917
|
useQuery: !0
|
|
901
918
|
}
|
|
902
919
|
}, n), {})) || {};
|
|
903
|
-
}, Bt = (t) => (Array.isArray(t) ? t : [t]).reduce((
|
|
904
|
-
const { output: i, operationsToGenerateInfiniteQueryHook:
|
|
920
|
+
}, Bt = (t) => (Array.isArray(t) ? t : [t]).reduce((o, s) => {
|
|
921
|
+
const { output: i, operationsToGenerateInfiniteQueryHook: f, input: l = "./openapi.json" } = s || {}, d = xt(l);
|
|
905
922
|
return {
|
|
906
|
-
...
|
|
907
|
-
[
|
|
923
|
+
...o,
|
|
924
|
+
[d]: {
|
|
908
925
|
hooks: {
|
|
909
926
|
afterAllFilesWrite: "prettier src/api/ --write"
|
|
910
927
|
},
|
|
911
|
-
input:
|
|
928
|
+
input: l,
|
|
912
929
|
output: {
|
|
913
930
|
baseUrl: i == null ? void 0 : i.baseUrl,
|
|
914
931
|
client: "react-query",
|
|
915
932
|
mode: "tags-split",
|
|
916
933
|
override: {
|
|
917
|
-
...(
|
|
934
|
+
...(f == null ? void 0 : f.length) && { operations: Tt(f) },
|
|
918
935
|
header: (c) => [
|
|
919
936
|
"Generated by orval 🍺",
|
|
920
937
|
...c.title ? [c.title] : [],
|
|
@@ -924,31 +941,31 @@ const A = gt({}), At = ({ children: t, apiURL: n, libraries: a }) => {
|
|
|
924
941
|
name: "axiosCustomInstance",
|
|
925
942
|
path: `${__dirname}/axiosCustomInstance.ts`
|
|
926
943
|
},
|
|
927
|
-
operationName:
|
|
944
|
+
operationName: St,
|
|
928
945
|
query: {
|
|
929
946
|
useQuery: !0
|
|
930
947
|
}
|
|
931
948
|
},
|
|
932
|
-
schemas: (i == null ? void 0 : i.schemas) || `src/api/${
|
|
933
|
-
target: (i == null ? void 0 : i.target) || `src/api/${
|
|
949
|
+
schemas: (i == null ? void 0 : i.schemas) || `src/api/${d}/model`,
|
|
950
|
+
target: (i == null ? void 0 : i.target) || `src/api/${d}/services/api.ts`,
|
|
934
951
|
...i
|
|
935
952
|
}
|
|
936
953
|
}
|
|
937
954
|
};
|
|
938
955
|
}, {}), Gt = (t) => {
|
|
939
956
|
const n = "moduleFetchError";
|
|
940
|
-
throw t.message.includes("Failed to fetch dynamically imported module") && (document.cookie.split(";").some((
|
|
957
|
+
throw t.message.includes("Failed to fetch dynamically imported module") && (document.cookie.split(";").some((s) => s.trim().startsWith(`${n}=`)) || (document.cookie = `${n}=true; max-age=60; path=/`, window.location.reload())), t;
|
|
941
958
|
};
|
|
942
959
|
export {
|
|
943
960
|
Dt as GTMSendPageView,
|
|
944
961
|
It as InitializeAxiosConfig,
|
|
945
|
-
|
|
962
|
+
Yt as InitializeDaysJSConfig,
|
|
946
963
|
$t as InitializeI18nConfig,
|
|
947
|
-
|
|
964
|
+
Nt as InitializeMapBoxConfig,
|
|
948
965
|
Ft as InitializeSentryConfig,
|
|
949
966
|
A as InjectDependenciesContext,
|
|
950
967
|
At as InjectDependenciesProvider,
|
|
951
|
-
|
|
968
|
+
Lt as MaskTextField,
|
|
952
969
|
Wt as QueryClientProviderWithConfig,
|
|
953
970
|
kt as RequireAuth,
|
|
954
971
|
wt as dateAdapter,
|