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