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