@tracktor/shared-module 2.4.0 → 2.4.2
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/main.js +294 -270
- package/dist/main.umd.cjs +8 -8
- package/dist/utils/error/handleImportModuleError.d.ts +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Ye, { createContext as gt, useMemo as
|
|
2
|
-
var
|
|
1
|
+
import Ye, { createContext as gt, useMemo as fe, useContext as D, useState as We, useRef as mt, useEffect as V, Suspense as ht, useCallback as te } from "react";
|
|
2
|
+
var le = { exports: {} }, B = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
5
|
* react-jsx-runtime.production.min.js
|
|
@@ -9,19 +9,19 @@ var ce = { exports: {} }, G = {};
|
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
|
-
var
|
|
12
|
+
var Le;
|
|
13
13
|
function yt() {
|
|
14
|
-
if (
|
|
15
|
-
|
|
16
|
-
var t = Ye, n = Symbol.for("react.element"), o = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty,
|
|
14
|
+
if (Le) return B;
|
|
15
|
+
Le = 1;
|
|
16
|
+
var t = Ye, n = Symbol.for("react.element"), o = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, a = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, f = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
17
|
function l(d, c, g) {
|
|
18
|
-
var y, w = {},
|
|
19
|
-
g !== void 0 && (
|
|
18
|
+
var y, w = {}, p = null, u = null;
|
|
19
|
+
g !== void 0 && (p = "" + g), c.key !== void 0 && (p = "" + c.key), c.ref !== void 0 && (u = c.ref);
|
|
20
20
|
for (y in c) s.call(c, y) && !f.hasOwnProperty(y) && (w[y] = c[y]);
|
|
21
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:
|
|
22
|
+
return { $$typeof: n, type: d, key: p, ref: u, props: w, _owner: a.current };
|
|
23
23
|
}
|
|
24
|
-
return
|
|
24
|
+
return B.Fragment = o, B.jsx = l, B.jsxs = l, B;
|
|
25
25
|
}
|
|
26
26
|
var Q = {};
|
|
27
27
|
/**
|
|
@@ -33,51 +33,51 @@ var Q = {};
|
|
|
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 Ne;
|
|
37
37
|
function Et() {
|
|
38
|
-
return
|
|
39
|
-
var t = Ye, n = Symbol.for("react.element"), o = Symbol.for("react.portal"), s = Symbol.for("react.fragment"),
|
|
40
|
-
function
|
|
38
|
+
return Ne || (Ne = 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"), a = 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"), p = Symbol.for("react.lazy"), u = Symbol.for("react.offscreen"), S = Symbol.iterator, T = "@@iterator";
|
|
40
|
+
function j(e) {
|
|
41
41
|
if (e === null || typeof e != "object")
|
|
42
42
|
return null;
|
|
43
|
-
var r =
|
|
43
|
+
var r = S && e[S] || 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
|
-
L("error", e,
|
|
49
|
+
for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), v = 1; v < r; v++)
|
|
50
|
+
i[v - 1] = arguments[v];
|
|
51
|
+
L("error", e, i);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
function L(e, r,
|
|
54
|
+
function L(e, r, i) {
|
|
55
55
|
{
|
|
56
56
|
var v = k.ReactDebugCurrentFrame, E = v.getStackAddendum();
|
|
57
|
-
E !== "" && (r += "%s",
|
|
58
|
-
var
|
|
57
|
+
E !== "" && (r += "%s", i = i.concat([E]));
|
|
58
|
+
var R = i.map(function(h) {
|
|
59
59
|
return String(h);
|
|
60
60
|
});
|
|
61
|
-
|
|
61
|
+
R.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, R);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
var N = !1, Y = !1, b = !1,
|
|
64
|
+
var N = !1, Y = !1, b = !1, de = !1, ve = !1, U;
|
|
65
65
|
U = Symbol.for("react.module.reference");
|
|
66
|
-
function
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e === s || e === f ||
|
|
66
|
+
function ze(e) {
|
|
67
|
+
return !!(typeof e == "string" || typeof e == "function" || e === s || e === f || ve || e === a || e === g || e === y || de || e === u || N || Y || b || typeof e == "object" && e !== null && (e.$$typeof === p || 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
71
|
e.$$typeof === U || e.getModuleId !== void 0));
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function Me(e, r, i) {
|
|
74
74
|
var v = e.displayName;
|
|
75
75
|
if (v)
|
|
76
76
|
return v;
|
|
77
77
|
var E = r.displayName || r.name || "";
|
|
78
|
-
return E !== "" ?
|
|
78
|
+
return E !== "" ? i + "(" + E + ")" : i;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function ge(e) {
|
|
81
81
|
return e.displayName || "Context";
|
|
82
82
|
}
|
|
83
83
|
function I(e) {
|
|
@@ -94,7 +94,7 @@ function Et() {
|
|
|
94
94
|
return "Portal";
|
|
95
95
|
case f:
|
|
96
96
|
return "Profiler";
|
|
97
|
-
case
|
|
97
|
+
case a:
|
|
98
98
|
return "StrictMode";
|
|
99
99
|
case g:
|
|
100
100
|
return "Suspense";
|
|
@@ -105,19 +105,19 @@ function Et() {
|
|
|
105
105
|
switch (e.$$typeof) {
|
|
106
106
|
case d:
|
|
107
107
|
var r = e;
|
|
108
|
-
return
|
|
108
|
+
return ge(r) + ".Consumer";
|
|
109
109
|
case l:
|
|
110
|
-
var
|
|
111
|
-
return
|
|
110
|
+
var i = e;
|
|
111
|
+
return ge(i._context) + ".Provider";
|
|
112
112
|
case c:
|
|
113
|
-
return
|
|
113
|
+
return Me(e, e.render, "ForwardRef");
|
|
114
114
|
case w:
|
|
115
115
|
var v = e.displayName || null;
|
|
116
116
|
return v !== null ? v : I(e.type) || "Memo";
|
|
117
|
-
case
|
|
118
|
-
var E = e,
|
|
117
|
+
case p: {
|
|
118
|
+
var E = e, R = E._payload, h = E._init;
|
|
119
119
|
try {
|
|
120
|
-
return I(h(
|
|
120
|
+
return I(h(R));
|
|
121
121
|
} catch {
|
|
122
122
|
return null;
|
|
123
123
|
}
|
|
@@ -125,18 +125,18 @@ function Et() {
|
|
|
125
125
|
}
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
128
|
-
var W = Object.assign,
|
|
129
|
-
function
|
|
128
|
+
var W = Object.assign, G = 0, me, he, ye, Ee, Re, pe, we;
|
|
129
|
+
function _e() {
|
|
130
130
|
}
|
|
131
|
-
|
|
132
|
-
function
|
|
131
|
+
_e.__reactDisabledLog = !0;
|
|
132
|
+
function Ve() {
|
|
133
133
|
{
|
|
134
|
-
if (
|
|
135
|
-
|
|
134
|
+
if (G === 0) {
|
|
135
|
+
me = console.log, he = console.info, ye = console.warn, Ee = console.error, Re = console.group, pe = console.groupCollapsed, we = console.groupEnd;
|
|
136
136
|
var e = {
|
|
137
137
|
configurable: !0,
|
|
138
138
|
enumerable: !0,
|
|
139
|
-
value:
|
|
139
|
+
value: _e,
|
|
140
140
|
writable: !0
|
|
141
141
|
};
|
|
142
142
|
Object.defineProperties(console, {
|
|
@@ -149,12 +149,12 @@ function Et() {
|
|
|
149
149
|
groupEnd: e
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
|
-
|
|
152
|
+
G++;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
function Ue() {
|
|
156
156
|
{
|
|
157
|
-
if (
|
|
157
|
+
if (G--, G === 0) {
|
|
158
158
|
var e = {
|
|
159
159
|
configurable: !0,
|
|
160
160
|
enumerable: !0,
|
|
@@ -162,64 +162,64 @@ function Et() {
|
|
|
162
162
|
};
|
|
163
163
|
Object.defineProperties(console, {
|
|
164
164
|
log: W({}, e, {
|
|
165
|
-
value:
|
|
165
|
+
value: me
|
|
166
166
|
}),
|
|
167
167
|
info: W({}, e, {
|
|
168
|
-
value:
|
|
168
|
+
value: he
|
|
169
169
|
}),
|
|
170
170
|
warn: W({}, e, {
|
|
171
|
-
value:
|
|
171
|
+
value: ye
|
|
172
172
|
}),
|
|
173
173
|
error: W({}, e, {
|
|
174
|
-
value:
|
|
174
|
+
value: Ee
|
|
175
175
|
}),
|
|
176
176
|
group: W({}, e, {
|
|
177
|
-
value:
|
|
177
|
+
value: Re
|
|
178
178
|
}),
|
|
179
179
|
groupCollapsed: W({}, e, {
|
|
180
180
|
value: pe
|
|
181
181
|
}),
|
|
182
182
|
groupEnd: W({}, e, {
|
|
183
|
-
value:
|
|
183
|
+
value: we
|
|
184
184
|
})
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
|
-
|
|
187
|
+
G < 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 re = k.ReactCurrentDispatcher, ne;
|
|
191
|
+
function J(e, r, i) {
|
|
192
192
|
{
|
|
193
|
-
if (
|
|
193
|
+
if (ne === void 0)
|
|
194
194
|
try {
|
|
195
195
|
throw Error();
|
|
196
196
|
} catch (E) {
|
|
197
197
|
var v = E.stack.trim().match(/\n( *(at )?)/);
|
|
198
|
-
|
|
198
|
+
ne = v && v[1] || "";
|
|
199
199
|
}
|
|
200
200
|
return `
|
|
201
|
-
` +
|
|
201
|
+
` + ne + e;
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
var
|
|
204
|
+
var oe = !1, K;
|
|
205
205
|
{
|
|
206
|
-
var
|
|
207
|
-
K = new
|
|
206
|
+
var Ge = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
+
K = new Ge();
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
if (!e ||
|
|
209
|
+
function Ce(e, r) {
|
|
210
|
+
if (!e || oe)
|
|
211
211
|
return "";
|
|
212
212
|
{
|
|
213
|
-
var
|
|
214
|
-
if (
|
|
215
|
-
return
|
|
213
|
+
var i = K.get(e);
|
|
214
|
+
if (i !== void 0)
|
|
215
|
+
return i;
|
|
216
216
|
}
|
|
217
217
|
var v;
|
|
218
|
-
|
|
218
|
+
oe = !0;
|
|
219
219
|
var E = Error.prepareStackTrace;
|
|
220
220
|
Error.prepareStackTrace = void 0;
|
|
221
|
-
var
|
|
222
|
-
|
|
221
|
+
var R;
|
|
222
|
+
R = re.current, re.current = null, Ve();
|
|
223
223
|
try {
|
|
224
224
|
if (r) {
|
|
225
225
|
var h = function() {
|
|
@@ -255,14 +255,14 @@ function Et() {
|
|
|
255
255
|
} catch ($) {
|
|
256
256
|
if ($ && v && typeof $.stack == "string") {
|
|
257
257
|
for (var m = $.stack.split(`
|
|
258
|
-
`),
|
|
259
|
-
`), C = m.length - 1, P =
|
|
258
|
+
`), x = v.stack.split(`
|
|
259
|
+
`), C = m.length - 1, P = x.length - 1; C >= 1 && P >= 0 && m[C] !== x[P]; )
|
|
260
260
|
P--;
|
|
261
261
|
for (; C >= 1 && P >= 0; C--, P--)
|
|
262
|
-
if (m[C] !==
|
|
262
|
+
if (m[C] !== x[P]) {
|
|
263
263
|
if (C !== 1 || P !== 1)
|
|
264
264
|
do
|
|
265
|
-
if (C--, P--, P < 0 || m[C] !==
|
|
265
|
+
if (C--, P--, P < 0 || m[C] !== x[P]) {
|
|
266
266
|
var O = `
|
|
267
267
|
` + m[C].replace(" at new ", " at ");
|
|
268
268
|
return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && K.set(e, O), O;
|
|
@@ -272,23 +272,23 @@ function Et() {
|
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
} finally {
|
|
275
|
-
|
|
275
|
+
oe = !1, re.current = R, Ue(), Error.prepareStackTrace = E;
|
|
276
276
|
}
|
|
277
|
-
var
|
|
278
|
-
return typeof e == "function" && K.set(e,
|
|
277
|
+
var M = e ? e.displayName || e.name : "", Fe = M ? J(M) : "";
|
|
278
|
+
return typeof e == "function" && K.set(e, Fe), Fe;
|
|
279
279
|
}
|
|
280
|
-
function
|
|
281
|
-
return
|
|
280
|
+
function qe(e, r, i) {
|
|
281
|
+
return Ce(e, !1);
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function Be(e) {
|
|
284
284
|
var r = e.prototype;
|
|
285
285
|
return !!(r && r.isReactComponent);
|
|
286
286
|
}
|
|
287
|
-
function X(e, r,
|
|
287
|
+
function X(e, r, i) {
|
|
288
288
|
if (e == null)
|
|
289
289
|
return "";
|
|
290
290
|
if (typeof e == "function")
|
|
291
|
-
return
|
|
291
|
+
return Ce(e, Be(e));
|
|
292
292
|
if (typeof e == "string")
|
|
293
293
|
return J(e);
|
|
294
294
|
switch (e) {
|
|
@@ -300,77 +300,77 @@ function Et() {
|
|
|
300
300
|
if (typeof e == "object")
|
|
301
301
|
switch (e.$$typeof) {
|
|
302
302
|
case c:
|
|
303
|
-
return
|
|
303
|
+
return qe(e.render);
|
|
304
304
|
case w:
|
|
305
|
-
return X(e.type, r,
|
|
306
|
-
case
|
|
307
|
-
var v = e, E = v._payload,
|
|
305
|
+
return X(e.type, r, i);
|
|
306
|
+
case p: {
|
|
307
|
+
var v = e, E = v._payload, R = v._init;
|
|
308
308
|
try {
|
|
309
|
-
return X(
|
|
309
|
+
return X(R(E), r, i);
|
|
310
310
|
} catch {
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
return "";
|
|
315
315
|
}
|
|
316
|
-
var H = Object.prototype.hasOwnProperty,
|
|
316
|
+
var H = Object.prototype.hasOwnProperty, be = {}, Pe = k.ReactDebugCurrentFrame;
|
|
317
317
|
function Z(e) {
|
|
318
318
|
if (e) {
|
|
319
|
-
var r = e._owner,
|
|
320
|
-
|
|
319
|
+
var r = e._owner, i = X(e.type, e._source, r ? r.type : null);
|
|
320
|
+
Pe.setExtraStackFrame(i);
|
|
321
321
|
} else
|
|
322
|
-
|
|
322
|
+
Pe.setExtraStackFrame(null);
|
|
323
323
|
}
|
|
324
|
-
function Qe(e, r,
|
|
324
|
+
function Qe(e, r, i, v, E) {
|
|
325
325
|
{
|
|
326
|
-
var
|
|
326
|
+
var R = Function.call.bind(H);
|
|
327
327
|
for (var h in e)
|
|
328
|
-
if (
|
|
328
|
+
if (R(e, h)) {
|
|
329
329
|
var m = void 0;
|
|
330
330
|
try {
|
|
331
331
|
if (typeof e[h] != "function") {
|
|
332
|
-
var
|
|
333
|
-
throw
|
|
332
|
+
var x = Error((v || "React class") + ": " + i + " 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 x.name = "Invariant Violation", x;
|
|
334
334
|
}
|
|
335
|
-
m = e[h](r, h, v,
|
|
335
|
+
m = e[h](r, h, v, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
336
|
} catch (C) {
|
|
337
337
|
m = C;
|
|
338
338
|
}
|
|
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",
|
|
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", i, h, typeof m), Z(null)), m instanceof Error && !(m.message in be) && (be[m.message] = !0, Z(E), _("Failed %s type: %s", i, m.message), Z(null));
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
var Je = Array.isArray;
|
|
344
|
-
function
|
|
344
|
+
function ae(e) {
|
|
345
345
|
return Je(e);
|
|
346
346
|
}
|
|
347
347
|
function Ke(e) {
|
|
348
348
|
{
|
|
349
|
-
var r = typeof Symbol == "function" && Symbol.toStringTag,
|
|
350
|
-
return
|
|
349
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, i = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
350
|
+
return i;
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
function Xe(e) {
|
|
354
354
|
try {
|
|
355
|
-
return
|
|
355
|
+
return Se(e), !1;
|
|
356
356
|
} catch {
|
|
357
357
|
return !0;
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function Se(e) {
|
|
361
361
|
return "" + e;
|
|
362
362
|
}
|
|
363
363
|
function je(e) {
|
|
364
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)),
|
|
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)), Se(e);
|
|
366
366
|
}
|
|
367
|
-
var
|
|
367
|
+
var q = k.ReactCurrentOwner, He = {
|
|
368
368
|
key: !0,
|
|
369
369
|
ref: !0,
|
|
370
370
|
__self: !0,
|
|
371
371
|
__source: !0
|
|
372
|
-
}, xe,
|
|
373
|
-
|
|
372
|
+
}, xe, Te, ie;
|
|
373
|
+
ie = {};
|
|
374
374
|
function Ze(e) {
|
|
375
375
|
if (H.call(e, "ref")) {
|
|
376
376
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
@@ -388,44 +388,44 @@ 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" && q.current && r && q.current.stateNode !== r) {
|
|
392
|
+
var i = I(q.current.type);
|
|
393
|
+
ie[i] || (_('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(q.current.type), e.ref), ie[i] = !0);
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
396
|
function rt(e, r) {
|
|
397
397
|
{
|
|
398
|
-
var
|
|
398
|
+
var i = 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
|
+
i.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
402
|
+
get: i,
|
|
403
403
|
configurable: !0
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
407
|
function nt(e, r) {
|
|
408
408
|
{
|
|
409
|
-
var
|
|
410
|
-
|
|
409
|
+
var i = function() {
|
|
410
|
+
Te || (Te = !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
|
+
i.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
413
|
+
get: i,
|
|
414
414
|
configurable: !0
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
var ot = function(e, r,
|
|
418
|
+
var ot = function(e, r, i, v, E, R, h) {
|
|
419
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:
|
|
425
|
+
ref: i,
|
|
426
426
|
props: h,
|
|
427
427
|
// Record the component responsible for creating this element.
|
|
428
|
-
_owner:
|
|
428
|
+
_owner: R
|
|
429
429
|
};
|
|
430
430
|
return m._store = {}, Object.defineProperty(m._store, "validated", {
|
|
431
431
|
configurable: !1,
|
|
@@ -444,41 +444,41 @@ function Et() {
|
|
|
444
444
|
value: E
|
|
445
445
|
}), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
|
|
446
446
|
};
|
|
447
|
-
function at(e, r,
|
|
447
|
+
function at(e, r, i, v, E) {
|
|
448
448
|
{
|
|
449
|
-
var
|
|
450
|
-
|
|
451
|
-
for (
|
|
452
|
-
H.call(r,
|
|
449
|
+
var R, h = {}, m = null, x = null;
|
|
450
|
+
i !== void 0 && (je(i), m = "" + i), et(r) && (je(r.key), m = "" + r.key), Ze(r) && (x = r.ref, tt(r, E));
|
|
451
|
+
for (R in r)
|
|
452
|
+
H.call(r, R) && !He.hasOwnProperty(R) && (h[R] = r[R]);
|
|
453
453
|
if (e && e.defaultProps) {
|
|
454
454
|
var C = e.defaultProps;
|
|
455
|
-
for (
|
|
456
|
-
h[
|
|
455
|
+
for (R in C)
|
|
456
|
+
h[R] === void 0 && (h[R] = C[R]);
|
|
457
457
|
}
|
|
458
|
-
if (m ||
|
|
458
|
+
if (m || x) {
|
|
459
459
|
var P = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
460
|
-
m && rt(h, P),
|
|
460
|
+
m && rt(h, P), x && nt(h, P);
|
|
461
461
|
}
|
|
462
|
-
return ot(e, m,
|
|
462
|
+
return ot(e, m, x, E, v, q.current, h);
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
|
-
var
|
|
466
|
-
function
|
|
465
|
+
var se = k.ReactCurrentOwner, Oe = k.ReactDebugCurrentFrame;
|
|
466
|
+
function z(e) {
|
|
467
467
|
if (e) {
|
|
468
|
-
var r = e._owner,
|
|
469
|
-
|
|
468
|
+
var r = e._owner, i = X(e.type, e._source, r ? r.type : null);
|
|
469
|
+
Oe.setExtraStackFrame(i);
|
|
470
470
|
} else
|
|
471
|
-
|
|
471
|
+
Oe.setExtraStackFrame(null);
|
|
472
472
|
}
|
|
473
|
-
var
|
|
474
|
-
|
|
475
|
-
function
|
|
473
|
+
var ue;
|
|
474
|
+
ue = !1;
|
|
475
|
+
function ce(e) {
|
|
476
476
|
return typeof e == "object" && e !== null && e.$$typeof === n;
|
|
477
477
|
}
|
|
478
|
-
function
|
|
478
|
+
function Ae() {
|
|
479
479
|
{
|
|
480
|
-
if (
|
|
481
|
-
var e = I(
|
|
480
|
+
if (se.current) {
|
|
481
|
+
var e = I(se.current.type);
|
|
482
482
|
if (e)
|
|
483
483
|
return `
|
|
484
484
|
|
|
@@ -490,48 +490,48 @@ Check the render method of \`` + e + "`.";
|
|
|
490
490
|
function it(e) {
|
|
491
491
|
return "";
|
|
492
492
|
}
|
|
493
|
-
var
|
|
493
|
+
var ke = {};
|
|
494
494
|
function st(e) {
|
|
495
495
|
{
|
|
496
|
-
var r =
|
|
496
|
+
var r = Ae();
|
|
497
497
|
if (!r) {
|
|
498
|
-
var
|
|
499
|
-
|
|
498
|
+
var i = typeof e == "string" ? e : e.displayName || e.name;
|
|
499
|
+
i && (r = `
|
|
500
500
|
|
|
501
|
-
Check the top-level render call using <` +
|
|
501
|
+
Check the top-level render call using <` + i + ">.");
|
|
502
502
|
}
|
|
503
503
|
return r;
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function De(e, r) {
|
|
507
507
|
{
|
|
508
508
|
if (!e._store || e._store.validated || e.key != null)
|
|
509
509
|
return;
|
|
510
510
|
e._store.validated = !0;
|
|
511
|
-
var
|
|
512
|
-
if (
|
|
511
|
+
var i = st(r);
|
|
512
|
+
if (ke[i])
|
|
513
513
|
return;
|
|
514
|
-
|
|
514
|
+
ke[i] = !0;
|
|
515
515
|
var v = "";
|
|
516
|
-
e && e._owner && e._owner !==
|
|
516
|
+
e && e._owner && e._owner !== se.current && (v = " It was passed a child from " + I(e._owner.type) + "."), z(e), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, v), z(null);
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function Ie(e, r) {
|
|
520
520
|
{
|
|
521
521
|
if (typeof e != "object")
|
|
522
522
|
return;
|
|
523
|
-
if (
|
|
524
|
-
for (var
|
|
525
|
-
var v = e[
|
|
526
|
-
|
|
523
|
+
if (ae(e))
|
|
524
|
+
for (var i = 0; i < e.length; i++) {
|
|
525
|
+
var v = e[i];
|
|
526
|
+
ce(v) && De(v, r);
|
|
527
527
|
}
|
|
528
|
-
else if (
|
|
528
|
+
else if (ce(e))
|
|
529
529
|
e._store && (e._store.validated = !0);
|
|
530
530
|
else if (e) {
|
|
531
|
-
var E =
|
|
531
|
+
var E = j(e);
|
|
532
532
|
if (typeof E == "function" && E !== e.entries)
|
|
533
|
-
for (var
|
|
534
|
-
|
|
533
|
+
for (var R = E.call(e), h; !(h = R.next()).done; )
|
|
534
|
+
ce(h.value) && De(h.value, r);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
}
|
|
@@ -540,20 +540,20 @@ Check the top-level render call using <` + a + ">.");
|
|
|
540
540
|
var r = e.type;
|
|
541
541
|
if (r == null || typeof r == "string")
|
|
542
542
|
return;
|
|
543
|
-
var
|
|
543
|
+
var i;
|
|
544
544
|
if (typeof r == "function")
|
|
545
|
-
|
|
545
|
+
i = 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
|
+
i = r.propTypes;
|
|
550
550
|
else
|
|
551
551
|
return;
|
|
552
|
-
if (
|
|
552
|
+
if (i) {
|
|
553
553
|
var v = I(r);
|
|
554
|
-
Qe(
|
|
555
|
-
} else if (r.PropTypes !== void 0 && !
|
|
556
|
-
|
|
554
|
+
Qe(i, e.props, "prop", v, e);
|
|
555
|
+
} else if (r.PropTypes !== void 0 && !ue) {
|
|
556
|
+
ue = !0;
|
|
557
557
|
var E = I(r);
|
|
558
558
|
_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", E || "Unknown");
|
|
559
559
|
}
|
|
@@ -562,60 +562,60 @@ Check the top-level render call using <` + a + ">.");
|
|
|
562
562
|
}
|
|
563
563
|
function ct(e) {
|
|
564
564
|
{
|
|
565
|
-
for (var r = Object.keys(e.props),
|
|
566
|
-
var v = r[
|
|
565
|
+
for (var r = Object.keys(e.props), i = 0; i < r.length; i++) {
|
|
566
|
+
var v = r[i];
|
|
567
567
|
if (v !== "children" && v !== "key") {
|
|
568
|
-
|
|
568
|
+
z(e), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), z(null);
|
|
569
569
|
break;
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
|
-
e.ref !== null && (
|
|
572
|
+
e.ref !== null && (z(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), z(null));
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function $e(e, r, i, v, E, R) {
|
|
576
576
|
{
|
|
577
|
-
var h =
|
|
577
|
+
var h = ze(e);
|
|
578
578
|
if (!h) {
|
|
579
579
|
var m = "";
|
|
580
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
|
|
582
|
-
|
|
581
|
+
var x = it();
|
|
582
|
+
x ? m += x : m += Ae();
|
|
583
583
|
var C;
|
|
584
|
-
e === null ? C = "null" :
|
|
584
|
+
e === null ? C = "null" : ae(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, i, E, R);
|
|
587
587
|
if (P == null)
|
|
588
588
|
return P;
|
|
589
589
|
if (h) {
|
|
590
590
|
var O = r.children;
|
|
591
591
|
if (O !== void 0)
|
|
592
592
|
if (v)
|
|
593
|
-
if (
|
|
594
|
-
for (var
|
|
595
|
-
|
|
593
|
+
if (ae(O)) {
|
|
594
|
+
for (var M = 0; M < O.length; M++)
|
|
595
|
+
Ie(O[M], e);
|
|
596
596
|
Object.freeze && Object.freeze(O);
|
|
597
597
|
} else
|
|
598
598
|
_("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
599
599
|
else
|
|
600
|
-
|
|
600
|
+
Ie(O, e);
|
|
601
601
|
}
|
|
602
602
|
return e === s ? ct(P) : ut(P), P;
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
|
-
function lt(e, r,
|
|
606
|
-
return
|
|
605
|
+
function lt(e, r, i) {
|
|
606
|
+
return $e(e, r, i, !0);
|
|
607
607
|
}
|
|
608
|
-
function ft(e, r,
|
|
609
|
-
return
|
|
608
|
+
function ft(e, r, i) {
|
|
609
|
+
return $e(e, r, i, !1);
|
|
610
610
|
}
|
|
611
611
|
var dt = ft, vt = lt;
|
|
612
612
|
Q.Fragment = s, Q.jsx = dt, Q.jsxs = vt;
|
|
613
613
|
}()), Q;
|
|
614
614
|
}
|
|
615
|
-
process.env.NODE_ENV === "production" ?
|
|
616
|
-
var F =
|
|
615
|
+
process.env.NODE_ENV === "production" ? le.exports = yt() : le.exports = Et();
|
|
616
|
+
var F = le.exports;
|
|
617
617
|
const A = gt({}), At = ({ children: t, apiURL: n, libraries: o }) => {
|
|
618
|
-
const s =
|
|
618
|
+
const s = fe(
|
|
619
619
|
() => ({
|
|
620
620
|
apiURL: n,
|
|
621
621
|
libraries: o
|
|
@@ -628,33 +628,33 @@ const A = gt({}), At = ({ children: t, apiURL: n, libraries: o }) => {
|
|
|
628
628
|
isLogged: n,
|
|
629
629
|
loginPath: o = "/login",
|
|
630
630
|
localStorageKey: s = "user",
|
|
631
|
-
redirect401Path:
|
|
631
|
+
redirect401Path: a = "/login",
|
|
632
632
|
...f
|
|
633
633
|
}) => {
|
|
634
634
|
var _, L, N, Y;
|
|
635
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
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 [g, y] = We(null), { useLocation: w, Navigate:
|
|
639
|
-
return
|
|
638
|
+
const [g, y] = We(null), { useLocation: w, Navigate: p, Outlet: u } = d, S = w(), T = mt(!1), j = typeof n == "function" ? n() : !!n, k = typeof j == "boolean" ? j : j == null ? void 0 : j.isLogged;
|
|
639
|
+
return V(() => {
|
|
640
640
|
T.current || (T.current = !0, c.interceptors.response.use(
|
|
641
641
|
(b) => b,
|
|
642
642
|
async (b) => {
|
|
643
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(
|
|
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(a)), Promise.reject(b);
|
|
645
645
|
}
|
|
646
646
|
));
|
|
647
|
-
}, [c.defaults.headers.common, c.interceptors.response, s,
|
|
647
|
+
}, [c.defaults.headers.common, c.interceptors.response, s, a]), k && !g ? /* @__PURE__ */ F.jsx(ht, { fallback: t, children: (L = (_ = S.state) == null ? void 0 : _.from) != null && L.state && ((Y = (N = S.state) == null ? void 0 : N.from) == null ? void 0 : Y.pathname) === o ? /* @__PURE__ */ F.jsx(p, { to: S.state.from.state.from.pathname + S.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ F.jsx(u, {}) }) : /* @__PURE__ */ F.jsx(p, { to: o + S.search, state: { from: S }, replace: !0 });
|
|
648
648
|
}, Dt = ({ data: t, ...n }) => {
|
|
649
|
-
const { libraries: o } = D(A), s = (n == null ? void 0 : n.reactRouter) || (o == null ? void 0 : o.reactRouter),
|
|
649
|
+
const { libraries: o } = D(A), s = (n == null ? void 0 : n.reactRouter) || (o == null ? void 0 : o.reactRouter), a = (n == null ? void 0 : n.gtm) || (o == null ? void 0 : o.gtm);
|
|
650
650
|
if (!s)
|
|
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 (!a)
|
|
655
655
|
throw new Error("GTM is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView.");
|
|
656
|
-
const { useGoogleTagManager: f } =
|
|
657
|
-
return
|
|
656
|
+
const { useGoogleTagManager: f } = a, { useLocation: l, Outlet: d } = s, { pathname: c } = l(), { sendEvent: g } = f();
|
|
657
|
+
return V(() => {
|
|
658
658
|
g({
|
|
659
659
|
event: "pageView",
|
|
660
660
|
pathname: c,
|
|
@@ -666,18 +666,18 @@ const A = gt({}), At = ({ children: t, apiURL: n, libraries: o }) => {
|
|
|
666
666
|
userLocalStorageKey: n = "user",
|
|
667
667
|
tokenKey: o = "accessToken",
|
|
668
668
|
postContentType: s = "application/json",
|
|
669
|
-
...
|
|
669
|
+
...a
|
|
670
670
|
}) => {
|
|
671
|
-
const { apiURL: f =
|
|
671
|
+
const { apiURL: f = a.apiURL, libraries: l } = D(A), d = (a == null ? void 0 : a.axios) || (l == null ? void 0 : l.axios);
|
|
672
672
|
if (!d)
|
|
673
673
|
throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
674
674
|
if (!(d != null && d.defaults))
|
|
675
675
|
return null;
|
|
676
|
-
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,
|
|
677
|
-
return d.defaults.baseURL = f, d.defaults.headers.post["Content-Type"] = s,
|
|
676
|
+
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, p = c ? `${y} ${w}` : null;
|
|
677
|
+
return d.defaults.baseURL = f, d.defaults.headers.post["Content-Type"] = s, p && (d.defaults.headers.common.Authorization = p), null;
|
|
678
678
|
}, $t = ({ debug: t, resources: n, ...o }) => {
|
|
679
|
-
const { libraries: s } = D(A),
|
|
680
|
-
if (!
|
|
679
|
+
const { libraries: s } = D(A), a = (o == null ? void 0 : o.i18) || (s == null ? void 0 : s.i18), { i18next: f, initReactI18next: l, languageDetector: d } = a || {};
|
|
680
|
+
if (!a)
|
|
681
681
|
throw new Error("i18 is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
682
682
|
return f != null && f.isInitialized || (f.use(d).use(l).init({
|
|
683
683
|
debug: t,
|
|
@@ -702,21 +702,21 @@ const A = gt({}), At = ({ children: t, apiURL: n, libraries: o }) => {
|
|
|
702
702
|
integrations: n,
|
|
703
703
|
tracesSampleRate: o,
|
|
704
704
|
replaysSessionSampleRate: s,
|
|
705
|
-
replaysOnErrorSampleRate:
|
|
705
|
+
replaysOnErrorSampleRate: a,
|
|
706
706
|
tracePropagationTargets: f,
|
|
707
707
|
ignoreErrors: l,
|
|
708
708
|
debug: d,
|
|
709
709
|
environment: c,
|
|
710
710
|
...g
|
|
711
711
|
}) => {
|
|
712
|
-
const { libraries: y } = D(A), w = (g == null ? void 0 : g.sentry) || (y == null ? void 0 : y.sentry),
|
|
712
|
+
const { libraries: y } = D(A), w = (g == null ? void 0 : g.sentry) || (y == null ? void 0 : y.sentry), p = (g == null ? void 0 : g.reactRouter) || (y == null ? void 0 : y.reactRouter);
|
|
713
713
|
if (!w)
|
|
714
714
|
throw new Error("Sentry is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
715
|
-
if (!
|
|
715
|
+
if (!p)
|
|
716
716
|
throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
717
717
|
if (w.isInitialized())
|
|
718
718
|
return null;
|
|
719
|
-
const { createRoutesFromChildren: u, matchRoutes:
|
|
719
|
+
const { createRoutesFromChildren: u, matchRoutes: S, useLocation: T, useNavigationType: j } = p;
|
|
720
720
|
return (d || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && w.init({
|
|
721
721
|
debug: d,
|
|
722
722
|
dsn: t,
|
|
@@ -725,22 +725,22 @@ const A = gt({}), At = ({ children: t, apiURL: n, libraries: o }) => {
|
|
|
725
725
|
integrations: [
|
|
726
726
|
w.reactRouterV6BrowserTracingIntegration({
|
|
727
727
|
createRoutesFromChildren: u,
|
|
728
|
-
matchRoutes:
|
|
729
|
-
useEffect:
|
|
728
|
+
matchRoutes: S,
|
|
729
|
+
useEffect: V,
|
|
730
730
|
useLocation: T,
|
|
731
|
-
useNavigationType:
|
|
731
|
+
useNavigationType: j
|
|
732
732
|
}),
|
|
733
733
|
...n || []
|
|
734
734
|
],
|
|
735
|
-
replaysOnErrorSampleRate:
|
|
735
|
+
replaysOnErrorSampleRate: a || 1,
|
|
736
736
|
replaysSessionSampleRate: s || 0.1,
|
|
737
737
|
tracePropagationTargets: f,
|
|
738
738
|
tracesSampleRate: o || 1
|
|
739
739
|
}), null;
|
|
740
740
|
}, Lt = ({ IMaskMixin: t, ...n }) => {
|
|
741
|
-
const o =
|
|
741
|
+
const o = fe(
|
|
742
742
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
743
|
-
() => t(({ TextField: s, ...
|
|
743
|
+
() => t(({ TextField: s, ...a }) => /* @__PURE__ */ F.jsx(s, { ...a })),
|
|
744
744
|
[t]
|
|
745
745
|
);
|
|
746
746
|
return /* @__PURE__ */ F.jsx(o, { ...n });
|
|
@@ -750,35 +750,35 @@ const A = gt({}), At = ({ children: t, apiURL: n, libraries: o }) => {
|
|
|
750
750
|
throw new Error("Mapbox is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
751
751
|
return t && (s.accessToken = t), null;
|
|
752
752
|
}, Yt = ({ language: t, ...n }) => {
|
|
753
|
-
const { libraries: o } = D(A), s = (n == null ? void 0 : n.dayjs) || (o == null ? void 0 : o.dayjs),
|
|
753
|
+
const { libraries: o } = D(A), s = (n == null ? void 0 : n.dayjs) || (o == null ? void 0 : o.dayjs), a = (n == null ? void 0 : n.plugin) || (o == null ? void 0 : o.dayjsPlugin);
|
|
754
754
|
if (!s)
|
|
755
755
|
throw new Error(
|
|
756
756
|
"Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props of InitializeDaysJSConfig."
|
|
757
757
|
);
|
|
758
|
-
return
|
|
758
|
+
return V(() => {
|
|
759
759
|
(async () => {
|
|
760
760
|
var d;
|
|
761
761
|
const l = t || ((d = navigator.language) == null ? void 0 : d.slice(0, 2)) || "en";
|
|
762
|
-
|
|
762
|
+
a && a.forEach((c) => {
|
|
763
763
|
c && s.extend(c);
|
|
764
764
|
}), await import("dayjs/locale/en"), await import("dayjs/locale/fr"), s.locale(l);
|
|
765
765
|
})().then();
|
|
766
|
-
}, [s,
|
|
767
|
-
},
|
|
766
|
+
}, [s, a, t]), null;
|
|
767
|
+
}, Rt = (t) => t && typeof t == "function", pt = (t) => t && typeof t == "function", Wt = ({
|
|
768
768
|
children: t,
|
|
769
769
|
defaultQueriesOptions: n,
|
|
770
770
|
defaultMutationsOptions: o,
|
|
771
771
|
...s
|
|
772
772
|
}) => {
|
|
773
773
|
var c, g;
|
|
774
|
-
const { libraries:
|
|
774
|
+
const { libraries: a } = D(A), f = (s == null ? void 0 : s.QueryClient) || ((c = a == null ? void 0 : a.reactQuery) == null ? void 0 : c.QueryClient), l = (s == null ? void 0 : s.QueryClientProvider) || ((g = a == null ? void 0 : a.reactQuery) == null ? void 0 : g.QueryClientProvider);
|
|
775
775
|
if (!f)
|
|
776
776
|
throw new Error("QueryClient is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
777
777
|
if (!l)
|
|
778
778
|
throw new Error("QueryClientProvider is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
779
|
-
if (!
|
|
779
|
+
if (!Rt(l))
|
|
780
780
|
throw new Error("Provided QueryClientProvider dependencies are not valid.");
|
|
781
|
-
if (!
|
|
781
|
+
if (!pt(f))
|
|
782
782
|
throw new Error("Provided QueryClient dependencies are not valid.");
|
|
783
783
|
const d = new f({
|
|
784
784
|
defaultOptions: {
|
|
@@ -786,7 +786,7 @@ const A = gt({}), At = ({ children: t, apiURL: n, libraries: o }) => {
|
|
|
786
786
|
...o
|
|
787
787
|
},
|
|
788
788
|
queries: {
|
|
789
|
-
getNextPageParam: (y, w,
|
|
789
|
+
getNextPageParam: (y, w, p) => y.length + (p || 0),
|
|
790
790
|
refetchOnWindowFocus: !1,
|
|
791
791
|
retry: 3,
|
|
792
792
|
...n
|
|
@@ -794,49 +794,49 @@ const A = gt({}), At = ({ children: t, apiURL: n, libraries: o }) => {
|
|
|
794
794
|
}
|
|
795
795
|
});
|
|
796
796
|
return /* @__PURE__ */ F.jsx(l, { client: d, children: t });
|
|
797
|
-
},
|
|
797
|
+
}, zt = (t) => {
|
|
798
798
|
var g, y, w;
|
|
799
|
-
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),
|
|
800
|
-
(
|
|
801
|
-
var
|
|
802
|
-
const { response: u } =
|
|
803
|
-
return u != null && u.reason ? String(u.reason) : (
|
|
799
|
+
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), a = ((w = o == null ? void 0 : o.i18next) == null ? void 0 : w.t) || s || ((p) => p), { unknownErrorTranslationKey: f = "error.unknownError" } = t || {}, l = a(f), d = te(
|
|
800
|
+
(p) => {
|
|
801
|
+
var S, T, j, k, _, L, N, Y, b;
|
|
802
|
+
const { response: u } = p || {};
|
|
803
|
+
return u != null && u.reason ? String(u.reason) : (S = u == null ? void 0 : u.data) != null && S.reason ? String(u.data.reason) : (T = u == null ? void 0 : u.data) != null && T.message ? String(u.data.message) : (k = (j = u == null ? void 0 : u.data) == null ? void 0 : j.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;
|
|
804
804
|
},
|
|
805
805
|
[l]
|
|
806
806
|
);
|
|
807
|
-
return { getErrorCode:
|
|
808
|
-
var
|
|
809
|
-
const { response: u } =
|
|
810
|
-
return u != null && u.error_code ? String(u == null ? void 0 : u.error_code) : (
|
|
807
|
+
return { getErrorCode: te((p) => {
|
|
808
|
+
var S, T, j;
|
|
809
|
+
const { response: u } = p || {};
|
|
810
|
+
return u != null && u.error_code ? String(u == null ? void 0 : u.error_code) : (S = u == null ? void 0 : u.data) != null && S.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) : (j = u == null ? void 0 : u.data) != null && j.error_code ? String(u.data.error_code) : "unknown_error_code";
|
|
811
811
|
}, []), printError: d };
|
|
812
|
-
},
|
|
812
|
+
}, Mt = ({
|
|
813
813
|
data: t,
|
|
814
814
|
fetchNextPage: n,
|
|
815
815
|
isFetchingNextPage: o,
|
|
816
816
|
isInitialLoading: s,
|
|
817
|
-
isLoading:
|
|
817
|
+
isLoading: a,
|
|
818
818
|
enabled: f = !0
|
|
819
819
|
}) => {
|
|
820
|
-
const l =
|
|
820
|
+
const l = te(
|
|
821
821
|
async (c) => {
|
|
822
822
|
o || !f || await n({ pageParam: (c == null ? void 0 : c.pageParam) || c.visibleRowsCount });
|
|
823
823
|
},
|
|
824
824
|
[f, n, o]
|
|
825
|
-
), d =
|
|
825
|
+
), d = fe(() => {
|
|
826
826
|
if (t)
|
|
827
827
|
return t.pages.reduce((c, g) => [...c, ...g], []);
|
|
828
828
|
}, [t]);
|
|
829
829
|
return {
|
|
830
830
|
fetchNextPageOnRowsScrollEnd: l,
|
|
831
|
-
isLoading: o ||
|
|
831
|
+
isLoading: o || a,
|
|
832
832
|
loadingVariant: s ? "skeleton" : "linear",
|
|
833
833
|
rows: d
|
|
834
834
|
};
|
|
835
|
-
},
|
|
835
|
+
}, Vt = (t) => {
|
|
836
836
|
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";
|
|
837
837
|
if (!o)
|
|
838
838
|
throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in params of useAuth.");
|
|
839
|
-
const
|
|
839
|
+
const a = te(
|
|
840
840
|
({ tokenType: l, accessToken: d }) => {
|
|
841
841
|
o.defaults.headers.common.Authorization = `${l} ${d}`;
|
|
842
842
|
},
|
|
@@ -844,12 +844,12 @@ const A = gt({}), At = ({ children: t, apiURL: n, libraries: o }) => {
|
|
|
844
844
|
), f = () => {
|
|
845
845
|
o.defaults.headers.common.Authorization = null;
|
|
846
846
|
};
|
|
847
|
-
return
|
|
847
|
+
return V(() => {
|
|
848
848
|
const l = ({ newValue: d, key: c }) => {
|
|
849
849
|
if (c === s && d)
|
|
850
850
|
try {
|
|
851
851
|
const { accessToken: g, tokenType: y } = JSON.parse(d);
|
|
852
|
-
|
|
852
|
+
a({ accessToken: g, tokenType: y });
|
|
853
853
|
} catch (g) {
|
|
854
854
|
console.error("Failed to parse newValue from localStorage:", g);
|
|
855
855
|
}
|
|
@@ -857,9 +857,9 @@ const A = gt({}), At = ({ children: t, apiURL: n, libraries: o }) => {
|
|
|
857
857
|
return window.addEventListener("storage", l), () => {
|
|
858
858
|
window.removeEventListener("storage", l);
|
|
859
859
|
};
|
|
860
|
-
}, [s,
|
|
860
|
+
}, [s, a]), {
|
|
861
861
|
clearAuthenticationToken: f,
|
|
862
|
-
setAuthenticationToken:
|
|
862
|
+
setAuthenticationToken: a
|
|
863
863
|
};
|
|
864
864
|
}, wt = ({ library: t, date: n, format: o = "ll" }) => t(n).format(o), _t = (t, n = "km") => {
|
|
865
865
|
const o = Number(t);
|
|
@@ -867,8 +867,8 @@ const A = gt({}), At = ({ children: t, apiURL: n, libraries: o }) => {
|
|
|
867
867
|
}, 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 }) => {
|
|
868
868
|
if (!t)
|
|
869
869
|
return "";
|
|
870
|
-
const s = Ct(t),
|
|
871
|
-
return typeof n == "number" && f ? `${
|
|
870
|
+
const s = Ct(t), a = `${o}${s}`, f = a.match(/\.(jpeg|jpg|png|gif|bmp|webp|svg|avif)$/) !== null;
|
|
871
|
+
return typeof n == "number" && f ? `${a.replace("/files", `/thumbs/${n}`)}` : a;
|
|
872
872
|
}, Ut = (t) => {
|
|
873
873
|
const { apiURL: n, libraries: o } = D(A), s = (t == null ? void 0 : t.dayjs) || (o == null ? void 0 : o.dayjs);
|
|
874
874
|
return {
|
|
@@ -894,24 +894,28 @@ const A = gt({}), At = ({ children: t, apiURL: n, libraries: o }) => {
|
|
|
894
894
|
});
|
|
895
895
|
}
|
|
896
896
|
};
|
|
897
|
-
},
|
|
898
|
-
const [o, s] = We(() =>
|
|
899
|
-
|
|
897
|
+
}, ee = (t, n) => n === "short" ? t.split("-")[0] : t, Gt = (t, n = "full") => {
|
|
898
|
+
const [o, s] = We(() => {
|
|
899
|
+
const a = (t == null ? void 0 : t.language) || navigator.language;
|
|
900
|
+
return t && "isInitialized" in t && t.isInitialized, ee(a, n);
|
|
901
|
+
});
|
|
902
|
+
return V(() => {
|
|
900
903
|
var f;
|
|
901
|
-
|
|
902
|
-
|
|
904
|
+
t && "isInitialized" in t && t.isInitialized && t.language && s(ee(t.language, n));
|
|
905
|
+
const a = (l) => {
|
|
906
|
+
s(ee(l, n));
|
|
903
907
|
};
|
|
904
|
-
return (f = t == null ? void 0 : t.on) == null || f.call(t, "languageChanged",
|
|
908
|
+
return (f = t == null ? void 0 : t.on) == null || f.call(t, "languageChanged", a), () => {
|
|
905
909
|
var l;
|
|
906
|
-
(l = t == null ? void 0 : t.off) == null || l.call(t, "languageChanged",
|
|
910
|
+
(l = t == null ? void 0 : t.off) == null || l.call(t, "languageChanged", a);
|
|
907
911
|
};
|
|
908
912
|
}, [t, n]), o;
|
|
909
|
-
}, Pt = (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase(),
|
|
910
|
-
const s = t.split("/").filter((
|
|
913
|
+
}, Pt = (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase(), St = (t) => {
|
|
914
|
+
const s = t.split("/").filter((a) => a.length > 0).map((a) => a.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((c) => c.charAt(0).toUpperCase() + c.slice(1)).join("")).join("");
|
|
911
915
|
return s.charAt(0).toLowerCase() + s.slice(1);
|
|
912
|
-
},
|
|
913
|
-
const s =
|
|
914
|
-
return `${s}${
|
|
916
|
+
}, jt = (t) => (t.split("/").pop() || t).replace(/\.json$/, "").replace(/^openapi\./, ""), xt = (t, n, o) => {
|
|
917
|
+
const s = St(n), a = Pt(o);
|
|
918
|
+
return `${s}${a}`;
|
|
915
919
|
}, Tt = (t) => {
|
|
916
920
|
if (t)
|
|
917
921
|
return (t == null ? void 0 : t.reduce((n, o) => (n[o] = {
|
|
@@ -921,8 +925,8 @@ const A = gt({}), At = ({ children: t, apiURL: n, libraries: o }) => {
|
|
|
921
925
|
useQuery: !0
|
|
922
926
|
}
|
|
923
927
|
}, n), {})) || {};
|
|
924
|
-
},
|
|
925
|
-
const { output:
|
|
928
|
+
}, qt = (t) => (Array.isArray(t) ? t : [t]).reduce((o, s) => {
|
|
929
|
+
const { output: a, operationsToGenerateInfiniteQueryHook: f, input: l = "./openapi.json" } = s || {}, d = jt(l);
|
|
926
930
|
return {
|
|
927
931
|
...o,
|
|
928
932
|
[d]: {
|
|
@@ -931,7 +935,7 @@ const A = gt({}), At = ({ children: t, apiURL: n, libraries: o }) => {
|
|
|
931
935
|
},
|
|
932
936
|
input: l,
|
|
933
937
|
output: {
|
|
934
|
-
baseUrl:
|
|
938
|
+
baseUrl: a == null ? void 0 : a.baseUrl,
|
|
935
939
|
client: "react-query",
|
|
936
940
|
mode: "tags-split",
|
|
937
941
|
override: {
|
|
@@ -945,20 +949,40 @@ const A = gt({}), At = ({ children: t, apiURL: n, libraries: o }) => {
|
|
|
945
949
|
name: "axiosCustomInstance",
|
|
946
950
|
path: `${__dirname}/axiosCustomInstance.ts`
|
|
947
951
|
},
|
|
948
|
-
operationName:
|
|
952
|
+
operationName: xt,
|
|
949
953
|
query: {
|
|
950
954
|
useQuery: !0
|
|
951
955
|
}
|
|
952
956
|
},
|
|
953
|
-
schemas: (
|
|
954
|
-
target: (
|
|
955
|
-
...
|
|
957
|
+
schemas: (a == null ? void 0 : a.schemas) || `src/api/${d}/model`,
|
|
958
|
+
target: (a == null ? void 0 : a.target) || `src/api/${d}/services/api.ts`,
|
|
959
|
+
...a
|
|
956
960
|
}
|
|
957
961
|
}
|
|
958
962
|
};
|
|
959
|
-
}, {}),
|
|
963
|
+
}, {}), Bt = (t) => {
|
|
960
964
|
const n = "moduleFetchError";
|
|
961
|
-
|
|
965
|
+
if ([
|
|
966
|
+
"Failed to fetch dynamically imported module",
|
|
967
|
+
"Importing a module script failed",
|
|
968
|
+
"ChunkLoadError",
|
|
969
|
+
"Loading chunk failed",
|
|
970
|
+
"Unable to preload CSS",
|
|
971
|
+
"Unable to preload"
|
|
972
|
+
].some((s) => t.message.toLowerCase().includes(s.toLowerCase()))) {
|
|
973
|
+
try {
|
|
974
|
+
if (!document.cookie.split(";").some((a) => a.trim().startsWith(`${n}=`))) {
|
|
975
|
+
const a = (/* @__PURE__ */ new Date()).getTime();
|
|
976
|
+
document.cookie = `${n}=${a}; max-age=60; path=/`, setTimeout(() => {
|
|
977
|
+
window.location.reload();
|
|
978
|
+
}, 100);
|
|
979
|
+
}
|
|
980
|
+
} catch (s) {
|
|
981
|
+
console.error("Error handling module import failure:", s);
|
|
982
|
+
}
|
|
983
|
+
return;
|
|
984
|
+
}
|
|
985
|
+
throw t;
|
|
962
986
|
};
|
|
963
987
|
export {
|
|
964
988
|
Dt as GTMSendPageView,
|
|
@@ -974,11 +998,11 @@ export {
|
|
|
974
998
|
kt as RequireAuth,
|
|
975
999
|
wt as dateAdapter,
|
|
976
1000
|
_t as distanceAdapter,
|
|
977
|
-
|
|
978
|
-
|
|
1001
|
+
qt as getOrvalConfig,
|
|
1002
|
+
Bt as handleImportModuleError,
|
|
979
1003
|
Ut as useAdapter,
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
1004
|
+
Vt as useAuth,
|
|
1005
|
+
Gt as useCurrentLanguage,
|
|
1006
|
+
Mt as useInfiniteDataGrid,
|
|
1007
|
+
zt as useResponseError
|
|
984
1008
|
};
|