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