@tracktor/shared-module 0.15.9 → 0.15.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 +2 -2
- package/dist/components/Utils/I18nConfig.d.ts +4 -1
- package/dist/components/Utils/SentryConfig.d.ts +4 -0
- package/dist/main.js +379 -403
- package/dist/main.umd.cjs +9 -9
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
var
|
|
1
|
+
import Le, { createContext as vr, useMemo as se, useContext as ue, useState as pr, useRef as gr, useLayoutEffect as mr, Suspense as hr, useEffect as Er, useCallback as X } from "react";
|
|
2
|
+
var ie = { exports: {} }, W = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
5
|
* react-jsx-runtime.production.min.js
|
|
@@ -9,23 +9,23 @@ var ue = { exports: {} }, W = {};
|
|
|
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
|
-
if (
|
|
12
|
+
var $e;
|
|
13
|
+
function yr() {
|
|
14
|
+
if ($e)
|
|
15
15
|
return W;
|
|
16
|
-
|
|
17
|
-
var n =
|
|
18
|
-
function
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
for (
|
|
22
|
-
|
|
23
|
-
if (
|
|
24
|
-
for (
|
|
25
|
-
C[
|
|
26
|
-
return { $$typeof: o, type:
|
|
16
|
+
$e = 1;
|
|
17
|
+
var n = Le, o = Symbol.for("react.element"), s = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, a = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, v = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
+
function u(g, c, b) {
|
|
19
|
+
var h, C = {}, O = null, T = null;
|
|
20
|
+
b !== void 0 && (O = "" + b), c.key !== void 0 && (O = "" + c.key), c.ref !== void 0 && (T = c.ref);
|
|
21
|
+
for (h in c)
|
|
22
|
+
l.call(c, h) && !v.hasOwnProperty(h) && (C[h] = c[h]);
|
|
23
|
+
if (g && g.defaultProps)
|
|
24
|
+
for (h in c = g.defaultProps, c)
|
|
25
|
+
C[h] === void 0 && (C[h] = c[h]);
|
|
26
|
+
return { $$typeof: o, type: g, key: O, ref: T, props: C, _owner: a.current };
|
|
27
27
|
}
|
|
28
|
-
return W.Fragment =
|
|
28
|
+
return W.Fragment = s, W.jsx = u, W.jsxs = u, W;
|
|
29
29
|
}
|
|
30
30
|
var M = {};
|
|
31
31
|
/**
|
|
@@ -38,17 +38,17 @@ var M = {};
|
|
|
38
38
|
* LICENSE file in the root directory of this source tree.
|
|
39
39
|
*/
|
|
40
40
|
var Ie;
|
|
41
|
-
function
|
|
41
|
+
function Rr() {
|
|
42
42
|
return Ie || (Ie = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
-
var n =
|
|
44
|
-
function
|
|
43
|
+
var n = Le, o = Symbol.for("react.element"), s = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), g = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), A = Symbol.iterator, D = "@@iterator";
|
|
44
|
+
function V(e) {
|
|
45
45
|
if (e === null || typeof e != "object")
|
|
46
46
|
return null;
|
|
47
|
-
var r =
|
|
47
|
+
var r = A && e[A] || e[D];
|
|
48
48
|
return typeof r == "function" ? r : null;
|
|
49
49
|
}
|
|
50
50
|
var j = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
|
-
function
|
|
51
|
+
function R(e) {
|
|
52
52
|
{
|
|
53
53
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
|
|
54
54
|
t[i - 1] = arguments[i];
|
|
@@ -57,71 +57,71 @@ function yr() {
|
|
|
57
57
|
}
|
|
58
58
|
function _(e, r, t) {
|
|
59
59
|
{
|
|
60
|
-
var i = j.ReactDebugCurrentFrame,
|
|
61
|
-
|
|
62
|
-
var
|
|
63
|
-
return String(
|
|
60
|
+
var i = j.ReactDebugCurrentFrame, p = i.getStackAddendum();
|
|
61
|
+
p !== "" && (r += "%s", t = t.concat([p]));
|
|
62
|
+
var m = t.map(function(d) {
|
|
63
|
+
return String(d);
|
|
64
64
|
});
|
|
65
|
-
|
|
65
|
+
m.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, m);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
var
|
|
69
|
-
|
|
70
|
-
function
|
|
71
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
68
|
+
var le = !1, ce = !1, Y = !1, Ne = !1, We = !1, fe;
|
|
69
|
+
fe = Symbol.for("react.module.reference");
|
|
70
|
+
function Me(e) {
|
|
71
|
+
return !!(typeof e == "string" || typeof e == "function" || e === l || e === v || We || e === a || e === b || e === h || Ne || e === T || le || ce || Y || typeof e == "object" && e !== null && (e.$$typeof === O || e.$$typeof === C || e.$$typeof === u || e.$$typeof === g || e.$$typeof === c || // This needs to include all possible module reference object
|
|
72
72
|
// types supported by any Flight configuration anywhere since
|
|
73
73
|
// we don't know which Flight build this will end up being used
|
|
74
74
|
// with.
|
|
75
|
-
e.$$typeof ===
|
|
75
|
+
e.$$typeof === fe || e.getModuleId !== void 0));
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function Ve(e, r, t) {
|
|
78
78
|
var i = e.displayName;
|
|
79
79
|
if (i)
|
|
80
80
|
return i;
|
|
81
|
-
var
|
|
82
|
-
return
|
|
81
|
+
var p = r.displayName || r.name || "";
|
|
82
|
+
return p !== "" ? t + "(" + p + ")" : t;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function de(e) {
|
|
85
85
|
return e.displayName || "Context";
|
|
86
86
|
}
|
|
87
87
|
function P(e) {
|
|
88
88
|
if (e == null)
|
|
89
89
|
return null;
|
|
90
|
-
if (typeof e.tag == "number" &&
|
|
90
|
+
if (typeof e.tag == "number" && R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
91
91
|
return e.displayName || e.name || null;
|
|
92
92
|
if (typeof e == "string")
|
|
93
93
|
return e;
|
|
94
94
|
switch (e) {
|
|
95
|
-
case
|
|
95
|
+
case l:
|
|
96
96
|
return "Fragment";
|
|
97
|
-
case
|
|
97
|
+
case s:
|
|
98
98
|
return "Portal";
|
|
99
|
-
case
|
|
99
|
+
case v:
|
|
100
100
|
return "Profiler";
|
|
101
101
|
case a:
|
|
102
102
|
return "StrictMode";
|
|
103
|
-
case
|
|
103
|
+
case b:
|
|
104
104
|
return "Suspense";
|
|
105
|
-
case
|
|
105
|
+
case h:
|
|
106
106
|
return "SuspenseList";
|
|
107
107
|
}
|
|
108
108
|
if (typeof e == "object")
|
|
109
109
|
switch (e.$$typeof) {
|
|
110
|
-
case
|
|
110
|
+
case g:
|
|
111
111
|
var r = e;
|
|
112
|
-
return
|
|
113
|
-
case
|
|
112
|
+
return de(r) + ".Consumer";
|
|
113
|
+
case u:
|
|
114
114
|
var t = e;
|
|
115
|
-
return
|
|
115
|
+
return de(t._context) + ".Provider";
|
|
116
116
|
case c:
|
|
117
|
-
return
|
|
117
|
+
return Ve(e, e.render, "ForwardRef");
|
|
118
118
|
case C:
|
|
119
119
|
var i = e.displayName || null;
|
|
120
120
|
return i !== null ? i : P(e.type) || "Memo";
|
|
121
121
|
case O: {
|
|
122
|
-
var
|
|
122
|
+
var p = e, m = p._payload, d = p._init;
|
|
123
123
|
try {
|
|
124
|
-
return P(
|
|
124
|
+
return P(d(m));
|
|
125
125
|
} catch {
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
@@ -129,18 +129,18 @@ function yr() {
|
|
|
129
129
|
}
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
|
-
var
|
|
133
|
-
function
|
|
132
|
+
var F = Object.assign, L = 0, ve, pe, ge, me, he, Ee, ye;
|
|
133
|
+
function Re() {
|
|
134
134
|
}
|
|
135
|
-
|
|
136
|
-
function
|
|
135
|
+
Re.__reactDisabledLog = !0;
|
|
136
|
+
function Ye() {
|
|
137
137
|
{
|
|
138
|
-
if (
|
|
139
|
-
|
|
138
|
+
if (L === 0) {
|
|
139
|
+
ve = console.log, pe = console.info, ge = console.warn, me = console.error, he = console.group, Ee = console.groupCollapsed, ye = console.groupEnd;
|
|
140
140
|
var e = {
|
|
141
141
|
configurable: !0,
|
|
142
142
|
enumerable: !0,
|
|
143
|
-
value:
|
|
143
|
+
value: Re,
|
|
144
144
|
writable: !0
|
|
145
145
|
};
|
|
146
146
|
Object.defineProperties(console, {
|
|
@@ -153,100 +153,100 @@ function yr() {
|
|
|
153
153
|
groupEnd: e
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
|
-
|
|
156
|
+
L++;
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function qe() {
|
|
160
160
|
{
|
|
161
|
-
if (
|
|
161
|
+
if (L--, L === 0) {
|
|
162
162
|
var e = {
|
|
163
163
|
configurable: !0,
|
|
164
164
|
enumerable: !0,
|
|
165
165
|
writable: !0
|
|
166
166
|
};
|
|
167
167
|
Object.defineProperties(console, {
|
|
168
|
-
log:
|
|
169
|
-
value:
|
|
168
|
+
log: F({}, e, {
|
|
169
|
+
value: ve
|
|
170
170
|
}),
|
|
171
|
-
info:
|
|
172
|
-
value:
|
|
171
|
+
info: F({}, e, {
|
|
172
|
+
value: pe
|
|
173
|
+
}),
|
|
174
|
+
warn: F({}, e, {
|
|
175
|
+
value: ge
|
|
173
176
|
}),
|
|
174
|
-
|
|
177
|
+
error: F({}, e, {
|
|
175
178
|
value: me
|
|
176
179
|
}),
|
|
177
|
-
|
|
178
|
-
value:
|
|
180
|
+
group: F({}, e, {
|
|
181
|
+
value: he
|
|
179
182
|
}),
|
|
180
|
-
|
|
181
|
-
value:
|
|
183
|
+
groupCollapsed: F({}, e, {
|
|
184
|
+
value: Ee
|
|
182
185
|
}),
|
|
183
|
-
|
|
186
|
+
groupEnd: F({}, e, {
|
|
184
187
|
value: ye
|
|
185
|
-
}),
|
|
186
|
-
groupEnd: $({}, e, {
|
|
187
|
-
value: be
|
|
188
188
|
})
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
-
|
|
191
|
+
L < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
var K = j.ReactCurrentDispatcher,
|
|
195
|
-
function
|
|
194
|
+
var K = j.ReactCurrentDispatcher, Z;
|
|
195
|
+
function q(e, r, t) {
|
|
196
196
|
{
|
|
197
|
-
if (
|
|
197
|
+
if (Z === void 0)
|
|
198
198
|
try {
|
|
199
199
|
throw Error();
|
|
200
|
-
} catch (
|
|
201
|
-
var i =
|
|
202
|
-
|
|
200
|
+
} catch (p) {
|
|
201
|
+
var i = p.stack.trim().match(/\n( *(at )?)/);
|
|
202
|
+
Z = i && i[1] || "";
|
|
203
203
|
}
|
|
204
204
|
return `
|
|
205
|
-
` +
|
|
205
|
+
` + Z + e;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
var
|
|
208
|
+
var Q = !1, z;
|
|
209
209
|
{
|
|
210
|
-
var
|
|
211
|
-
|
|
210
|
+
var ze = typeof WeakMap == "function" ? WeakMap : Map;
|
|
211
|
+
z = new ze();
|
|
212
212
|
}
|
|
213
|
-
function
|
|
214
|
-
if (!e ||
|
|
213
|
+
function be(e, r) {
|
|
214
|
+
if (!e || Q)
|
|
215
215
|
return "";
|
|
216
216
|
{
|
|
217
|
-
var t =
|
|
217
|
+
var t = z.get(e);
|
|
218
218
|
if (t !== void 0)
|
|
219
219
|
return t;
|
|
220
220
|
}
|
|
221
221
|
var i;
|
|
222
|
-
|
|
223
|
-
var
|
|
222
|
+
Q = !0;
|
|
223
|
+
var p = Error.prepareStackTrace;
|
|
224
224
|
Error.prepareStackTrace = void 0;
|
|
225
|
-
var
|
|
226
|
-
|
|
225
|
+
var m;
|
|
226
|
+
m = K.current, K.current = null, Ye();
|
|
227
227
|
try {
|
|
228
228
|
if (r) {
|
|
229
|
-
var
|
|
229
|
+
var d = function() {
|
|
230
230
|
throw Error();
|
|
231
231
|
};
|
|
232
|
-
if (Object.defineProperty(
|
|
232
|
+
if (Object.defineProperty(d.prototype, "props", {
|
|
233
233
|
set: function() {
|
|
234
234
|
throw Error();
|
|
235
235
|
}
|
|
236
236
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
237
237
|
try {
|
|
238
|
-
Reflect.construct(
|
|
238
|
+
Reflect.construct(d, []);
|
|
239
239
|
} catch (x) {
|
|
240
240
|
i = x;
|
|
241
241
|
}
|
|
242
|
-
Reflect.construct(e, [],
|
|
242
|
+
Reflect.construct(e, [], d);
|
|
243
243
|
} else {
|
|
244
244
|
try {
|
|
245
|
-
|
|
245
|
+
d.call();
|
|
246
246
|
} catch (x) {
|
|
247
247
|
i = x;
|
|
248
248
|
}
|
|
249
|
-
e.call(
|
|
249
|
+
e.call(d.prototype);
|
|
250
250
|
}
|
|
251
251
|
} else {
|
|
252
252
|
try {
|
|
@@ -269,138 +269,138 @@ function yr() {
|
|
|
269
269
|
if (E--, y--, y < 0 || f[E] !== w[y]) {
|
|
270
270
|
var S = `
|
|
271
271
|
` + f[E].replace(" at new ", " at ");
|
|
272
|
-
return e.displayName && S.includes("<anonymous>") && (S = S.replace("<anonymous>", e.displayName)), typeof e == "function" &&
|
|
272
|
+
return e.displayName && S.includes("<anonymous>") && (S = S.replace("<anonymous>", e.displayName)), typeof e == "function" && z.set(e, S), S;
|
|
273
273
|
}
|
|
274
274
|
while (E >= 1 && y >= 0);
|
|
275
275
|
break;
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
} finally {
|
|
279
|
-
|
|
279
|
+
Q = !1, K.current = m, qe(), Error.prepareStackTrace = p;
|
|
280
280
|
}
|
|
281
|
-
var
|
|
282
|
-
return typeof e == "function" &&
|
|
281
|
+
var I = e ? e.displayName || e.name : "", Fe = I ? q(I) : "";
|
|
282
|
+
return typeof e == "function" && z.set(e, Fe), Fe;
|
|
283
283
|
}
|
|
284
|
-
function
|
|
285
|
-
return
|
|
284
|
+
function Ue(e, r, t) {
|
|
285
|
+
return be(e, !1);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function Be(e) {
|
|
288
288
|
var r = e.prototype;
|
|
289
289
|
return !!(r && r.isReactComponent);
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function U(e, r, t) {
|
|
292
292
|
if (e == null)
|
|
293
293
|
return "";
|
|
294
294
|
if (typeof e == "function")
|
|
295
|
-
return
|
|
295
|
+
return be(e, Be(e));
|
|
296
296
|
if (typeof e == "string")
|
|
297
|
-
return
|
|
297
|
+
return q(e);
|
|
298
298
|
switch (e) {
|
|
299
|
-
case
|
|
300
|
-
return
|
|
301
|
-
case
|
|
302
|
-
return
|
|
299
|
+
case b:
|
|
300
|
+
return q("Suspense");
|
|
301
|
+
case h:
|
|
302
|
+
return q("SuspenseList");
|
|
303
303
|
}
|
|
304
304
|
if (typeof e == "object")
|
|
305
305
|
switch (e.$$typeof) {
|
|
306
306
|
case c:
|
|
307
|
-
return
|
|
307
|
+
return Ue(e.render);
|
|
308
308
|
case C:
|
|
309
|
-
return
|
|
309
|
+
return U(e.type, r, t);
|
|
310
310
|
case O: {
|
|
311
|
-
var i = e,
|
|
311
|
+
var i = e, p = i._payload, m = i._init;
|
|
312
312
|
try {
|
|
313
|
-
return
|
|
313
|
+
return U(m(p), r, t);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
return "";
|
|
319
319
|
}
|
|
320
|
-
var
|
|
321
|
-
function
|
|
320
|
+
var B = Object.prototype.hasOwnProperty, _e = {}, we = j.ReactDebugCurrentFrame;
|
|
321
|
+
function G(e) {
|
|
322
322
|
if (e) {
|
|
323
|
-
var r = e._owner, t =
|
|
324
|
-
|
|
323
|
+
var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
|
|
324
|
+
we.setExtraStackFrame(t);
|
|
325
325
|
} else
|
|
326
|
-
|
|
326
|
+
we.setExtraStackFrame(null);
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function Ge(e, r, t, i, p) {
|
|
329
329
|
{
|
|
330
|
-
var
|
|
331
|
-
for (var
|
|
332
|
-
if (
|
|
330
|
+
var m = Function.call.bind(B);
|
|
331
|
+
for (var d in e)
|
|
332
|
+
if (m(e, d)) {
|
|
333
333
|
var f = void 0;
|
|
334
334
|
try {
|
|
335
|
-
if (typeof e[
|
|
336
|
-
var w = Error((i || "React class") + ": " + t + " type `" +
|
|
335
|
+
if (typeof e[d] != "function") {
|
|
336
|
+
var w = Error((i || "React class") + ": " + t + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
337
337
|
throw w.name = "Invariant Violation", w;
|
|
338
338
|
}
|
|
339
|
-
f = e[
|
|
339
|
+
f = e[d](r, d, i, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
340
|
} catch (E) {
|
|
341
341
|
f = E;
|
|
342
342
|
}
|
|
343
|
-
f && !(f instanceof Error) && (
|
|
343
|
+
f && !(f instanceof Error) && (G(p), R("%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).", i || "React class", t, d, typeof f), G(null)), f instanceof Error && !(f.message in _e) && (_e[f.message] = !0, G(p), R("Failed %s type: %s", t, f.message), G(null));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
|
-
var
|
|
348
|
-
function
|
|
349
|
-
return
|
|
347
|
+
var Je = Array.isArray;
|
|
348
|
+
function ee(e) {
|
|
349
|
+
return Je(e);
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function Xe(e) {
|
|
352
352
|
{
|
|
353
353
|
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
354
354
|
return t;
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function He(e) {
|
|
358
358
|
try {
|
|
359
|
-
return
|
|
359
|
+
return Ce(e), !1;
|
|
360
360
|
} catch {
|
|
361
361
|
return !0;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function Ce(e) {
|
|
365
365
|
return "" + e;
|
|
366
366
|
}
|
|
367
|
-
function
|
|
368
|
-
if (
|
|
369
|
-
return
|
|
367
|
+
function Te(e) {
|
|
368
|
+
if (He(e))
|
|
369
|
+
return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Xe(e)), Ce(e);
|
|
370
370
|
}
|
|
371
|
-
var
|
|
371
|
+
var N = j.ReactCurrentOwner, Ke = {
|
|
372
372
|
key: !0,
|
|
373
373
|
ref: !0,
|
|
374
374
|
__self: !0,
|
|
375
375
|
__source: !0
|
|
376
|
-
},
|
|
377
|
-
|
|
378
|
-
function
|
|
379
|
-
if (
|
|
376
|
+
}, Oe, Se, re;
|
|
377
|
+
re = {};
|
|
378
|
+
function Ze(e) {
|
|
379
|
+
if (B.call(e, "ref")) {
|
|
380
380
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
381
381
|
if (r && r.isReactWarning)
|
|
382
382
|
return !1;
|
|
383
383
|
}
|
|
384
384
|
return e.ref !== void 0;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
if (
|
|
386
|
+
function Qe(e) {
|
|
387
|
+
if (B.call(e, "key")) {
|
|
388
388
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
389
389
|
if (r && r.isReactWarning)
|
|
390
390
|
return !1;
|
|
391
391
|
}
|
|
392
392
|
return e.key !== void 0;
|
|
393
393
|
}
|
|
394
|
-
function
|
|
395
|
-
if (typeof e.ref == "string" &&
|
|
396
|
-
var t = P(
|
|
397
|
-
|
|
394
|
+
function er(e, r) {
|
|
395
|
+
if (typeof e.ref == "string" && N.current && r && N.current.stateNode !== r) {
|
|
396
|
+
var t = P(N.current.type);
|
|
397
|
+
re[t] || (R('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', P(N.current.type), e.ref), re[t] = !0);
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function rr(e, r) {
|
|
401
401
|
{
|
|
402
402
|
var t = function() {
|
|
403
|
-
|
|
403
|
+
Oe || (Oe = !0, R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
404
404
|
};
|
|
405
405
|
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
406
406
|
get: t,
|
|
@@ -408,10 +408,10 @@ function yr() {
|
|
|
408
408
|
});
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
|
-
function
|
|
411
|
+
function tr(e, r) {
|
|
412
412
|
{
|
|
413
413
|
var t = function() {
|
|
414
|
-
|
|
414
|
+
Se || (Se = !0, R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
415
415
|
};
|
|
416
416
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
417
417
|
get: t,
|
|
@@ -419,7 +419,7 @@ function yr() {
|
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
var
|
|
422
|
+
var nr = function(e, r, t, i, p, m, d) {
|
|
423
423
|
var f = {
|
|
424
424
|
// This tag allows us to uniquely identify this as a React Element
|
|
425
425
|
$$typeof: o,
|
|
@@ -427,9 +427,9 @@ function yr() {
|
|
|
427
427
|
type: e,
|
|
428
428
|
key: r,
|
|
429
429
|
ref: t,
|
|
430
|
-
props:
|
|
430
|
+
props: d,
|
|
431
431
|
// Record the component responsible for creating this element.
|
|
432
|
-
_owner:
|
|
432
|
+
_owner: m
|
|
433
433
|
};
|
|
434
434
|
return f._store = {}, Object.defineProperty(f._store, "validated", {
|
|
435
435
|
configurable: !1,
|
|
@@ -445,44 +445,44 @@ function yr() {
|
|
|
445
445
|
configurable: !1,
|
|
446
446
|
enumerable: !1,
|
|
447
447
|
writable: !1,
|
|
448
|
-
value:
|
|
448
|
+
value: p
|
|
449
449
|
}), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
|
|
450
450
|
};
|
|
451
|
-
function
|
|
451
|
+
function ar(e, r, t, i, p) {
|
|
452
452
|
{
|
|
453
|
-
var
|
|
454
|
-
t !== void 0 && (
|
|
455
|
-
for (
|
|
456
|
-
|
|
453
|
+
var m, d = {}, f = null, w = null;
|
|
454
|
+
t !== void 0 && (Te(t), f = "" + t), Qe(r) && (Te(r.key), f = "" + r.key), Ze(r) && (w = r.ref, er(r, p));
|
|
455
|
+
for (m in r)
|
|
456
|
+
B.call(r, m) && !Ke.hasOwnProperty(m) && (d[m] = r[m]);
|
|
457
457
|
if (e && e.defaultProps) {
|
|
458
458
|
var E = e.defaultProps;
|
|
459
|
-
for (
|
|
460
|
-
|
|
459
|
+
for (m in E)
|
|
460
|
+
d[m] === void 0 && (d[m] = E[m]);
|
|
461
461
|
}
|
|
462
462
|
if (f || w) {
|
|
463
463
|
var y = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
464
|
-
f &&
|
|
464
|
+
f && rr(d, y), w && tr(d, y);
|
|
465
465
|
}
|
|
466
|
-
return
|
|
466
|
+
return nr(e, f, w, p, i, N.current, d);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
var
|
|
470
|
-
function
|
|
469
|
+
var te = j.ReactCurrentOwner, je = j.ReactDebugCurrentFrame;
|
|
470
|
+
function $(e) {
|
|
471
471
|
if (e) {
|
|
472
|
-
var r = e._owner, t =
|
|
473
|
-
|
|
472
|
+
var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
|
|
473
|
+
je.setExtraStackFrame(t);
|
|
474
474
|
} else
|
|
475
|
-
|
|
475
|
+
je.setExtraStackFrame(null);
|
|
476
476
|
}
|
|
477
|
-
var
|
|
478
|
-
|
|
479
|
-
function
|
|
477
|
+
var ne;
|
|
478
|
+
ne = !1;
|
|
479
|
+
function ae(e) {
|
|
480
480
|
return typeof e == "object" && e !== null && e.$$typeof === o;
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function Pe() {
|
|
483
483
|
{
|
|
484
|
-
if (
|
|
485
|
-
var e = P(
|
|
484
|
+
if (te.current) {
|
|
485
|
+
var e = P(te.current.type);
|
|
486
486
|
if (e)
|
|
487
487
|
return `
|
|
488
488
|
|
|
@@ -491,7 +491,7 @@ Check the render method of \`` + e + "`.";
|
|
|
491
491
|
return "";
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function or(e) {
|
|
495
495
|
{
|
|
496
496
|
if (e !== void 0) {
|
|
497
497
|
var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
|
|
@@ -502,10 +502,10 @@ Check your code at ` + r + ":" + t + ".";
|
|
|
502
502
|
return "";
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
-
var
|
|
506
|
-
function
|
|
505
|
+
var xe = {};
|
|
506
|
+
function ir(e) {
|
|
507
507
|
{
|
|
508
|
-
var r =
|
|
508
|
+
var r = Pe();
|
|
509
509
|
if (!r) {
|
|
510
510
|
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
511
511
|
t && (r = `
|
|
@@ -515,39 +515,39 @@ Check the top-level render call using <` + t + ">.");
|
|
|
515
515
|
return r;
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
|
-
function
|
|
518
|
+
function ke(e, r) {
|
|
519
519
|
{
|
|
520
520
|
if (!e._store || e._store.validated || e.key != null)
|
|
521
521
|
return;
|
|
522
522
|
e._store.validated = !0;
|
|
523
|
-
var t =
|
|
524
|
-
if (
|
|
523
|
+
var t = ir(r);
|
|
524
|
+
if (xe[t])
|
|
525
525
|
return;
|
|
526
|
-
|
|
526
|
+
xe[t] = !0;
|
|
527
527
|
var i = "";
|
|
528
|
-
e && e._owner && e._owner !==
|
|
528
|
+
e && e._owner && e._owner !== te.current && (i = " It was passed a child from " + P(e._owner.type) + "."), $(e), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, i), $(null);
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
|
-
function
|
|
531
|
+
function Ae(e, r) {
|
|
532
532
|
{
|
|
533
533
|
if (typeof e != "object")
|
|
534
534
|
return;
|
|
535
|
-
if (
|
|
535
|
+
if (ee(e))
|
|
536
536
|
for (var t = 0; t < e.length; t++) {
|
|
537
537
|
var i = e[t];
|
|
538
|
-
|
|
538
|
+
ae(i) && ke(i, r);
|
|
539
539
|
}
|
|
540
|
-
else if (
|
|
540
|
+
else if (ae(e))
|
|
541
541
|
e._store && (e._store.validated = !0);
|
|
542
542
|
else if (e) {
|
|
543
|
-
var
|
|
544
|
-
if (typeof
|
|
545
|
-
for (var
|
|
546
|
-
|
|
543
|
+
var p = V(e);
|
|
544
|
+
if (typeof p == "function" && p !== e.entries)
|
|
545
|
+
for (var m = p.call(e), d; !(d = m.next()).done; )
|
|
546
|
+
ae(d.value) && ke(d.value, r);
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function sr(e) {
|
|
551
551
|
{
|
|
552
552
|
var r = e.type;
|
|
553
553
|
if (r == null || typeof r == "string")
|
|
@@ -563,70 +563,70 @@ Check the top-level render call using <` + t + ">.");
|
|
|
563
563
|
return;
|
|
564
564
|
if (t) {
|
|
565
565
|
var i = P(r);
|
|
566
|
-
|
|
567
|
-
} else if (r.PropTypes !== void 0 && !
|
|
568
|
-
|
|
569
|
-
var
|
|
570
|
-
|
|
566
|
+
Ge(t, e.props, "prop", i, e);
|
|
567
|
+
} else if (r.PropTypes !== void 0 && !ne) {
|
|
568
|
+
ne = !0;
|
|
569
|
+
var p = P(r);
|
|
570
|
+
R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
|
|
571
571
|
}
|
|
572
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
572
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function ur(e) {
|
|
576
576
|
{
|
|
577
577
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
578
578
|
var i = r[t];
|
|
579
579
|
if (i !== "children" && i !== "key") {
|
|
580
|
-
|
|
580
|
+
$(e), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), $(null);
|
|
581
581
|
break;
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
|
-
e.ref !== null && (
|
|
584
|
+
e.ref !== null && ($(e), R("Invalid attribute `ref` supplied to `React.Fragment`."), $(null));
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
function De(e, r, t, i,
|
|
587
|
+
function De(e, r, t, i, p, m) {
|
|
588
588
|
{
|
|
589
|
-
var
|
|
590
|
-
if (!
|
|
589
|
+
var d = Me(e);
|
|
590
|
+
if (!d) {
|
|
591
591
|
var f = "";
|
|
592
592
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (f += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
593
|
-
var w =
|
|
594
|
-
w ? f += w : f +=
|
|
593
|
+
var w = or(p);
|
|
594
|
+
w ? f += w : f += Pe();
|
|
595
595
|
var E;
|
|
596
|
-
e === null ? E = "null" :
|
|
596
|
+
e === null ? E = "null" : ee(e) ? E = "array" : e !== void 0 && e.$$typeof === o ? (E = "<" + (P(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : E = typeof e, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, f);
|
|
597
597
|
}
|
|
598
|
-
var y =
|
|
598
|
+
var y = ar(e, r, t, p, m);
|
|
599
599
|
if (y == null)
|
|
600
600
|
return y;
|
|
601
|
-
if (
|
|
601
|
+
if (d) {
|
|
602
602
|
var S = r.children;
|
|
603
603
|
if (S !== void 0)
|
|
604
604
|
if (i)
|
|
605
|
-
if (
|
|
606
|
-
for (var
|
|
607
|
-
|
|
605
|
+
if (ee(S)) {
|
|
606
|
+
for (var I = 0; I < S.length; I++)
|
|
607
|
+
Ae(S[I], e);
|
|
608
608
|
Object.freeze && Object.freeze(S);
|
|
609
609
|
} else
|
|
610
|
-
|
|
610
|
+
R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
611
611
|
else
|
|
612
|
-
|
|
612
|
+
Ae(S, e);
|
|
613
613
|
}
|
|
614
|
-
return e ===
|
|
614
|
+
return e === l ? ur(y) : sr(y), y;
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
|
-
function
|
|
617
|
+
function lr(e, r, t) {
|
|
618
618
|
return De(e, r, t, !0);
|
|
619
619
|
}
|
|
620
|
-
function
|
|
620
|
+
function cr(e, r, t) {
|
|
621
621
|
return De(e, r, t, !1);
|
|
622
622
|
}
|
|
623
|
-
var
|
|
624
|
-
M.Fragment =
|
|
623
|
+
var fr = cr, dr = lr;
|
|
624
|
+
M.Fragment = l, M.jsx = fr, M.jsxs = dr;
|
|
625
625
|
}()), M;
|
|
626
626
|
}
|
|
627
|
-
process.env.NODE_ENV === "production" ?
|
|
628
|
-
var
|
|
629
|
-
const
|
|
627
|
+
process.env.NODE_ENV === "production" ? ie.exports = yr() : ie.exports = Rr();
|
|
628
|
+
var k = ie.exports;
|
|
629
|
+
const H = vr({
|
|
630
630
|
axios: void 0,
|
|
631
631
|
children: void 0,
|
|
632
632
|
Navigate: void 0,
|
|
@@ -637,178 +637,154 @@ const Z = gr({
|
|
|
637
637
|
}), Or = ({
|
|
638
638
|
axios: n,
|
|
639
639
|
children: o,
|
|
640
|
-
translate:
|
|
641
|
-
useAuth:
|
|
640
|
+
translate: s,
|
|
641
|
+
useAuth: l,
|
|
642
642
|
Outlet: a,
|
|
643
|
-
Navigate:
|
|
644
|
-
useLocation:
|
|
645
|
-
useGoogleTagManager:
|
|
643
|
+
Navigate: v,
|
|
644
|
+
useLocation: u,
|
|
645
|
+
useGoogleTagManager: g
|
|
646
646
|
}) => {
|
|
647
647
|
const c = se(
|
|
648
648
|
() => ({
|
|
649
649
|
axios: n,
|
|
650
|
-
Navigate:
|
|
650
|
+
Navigate: v,
|
|
651
651
|
Outlet: a,
|
|
652
|
-
translate:
|
|
653
|
-
useAuth:
|
|
654
|
-
useGoogleTagManager:
|
|
655
|
-
useLocation:
|
|
652
|
+
translate: s,
|
|
653
|
+
useAuth: l,
|
|
654
|
+
useGoogleTagManager: g,
|
|
655
|
+
useLocation: u
|
|
656
656
|
}),
|
|
657
|
-
[
|
|
657
|
+
[v, a, n, s, l, g, u]
|
|
658
658
|
);
|
|
659
|
-
return /* @__PURE__ */
|
|
660
|
-
},
|
|
659
|
+
return /* @__PURE__ */ k.jsx(H.Provider, { value: c, children: o });
|
|
660
|
+
}, J = (n) => `RequireAuth require « ${n} » dependency. You can provide with InjectDependenciesProvider or directly in props.`, Sr = ({
|
|
661
661
|
Fallback: n,
|
|
662
662
|
loginPath: o = "/login",
|
|
663
|
-
localStorageKey:
|
|
664
|
-
redirect401Path:
|
|
663
|
+
localStorageKey: s = "user",
|
|
664
|
+
redirect401Path: l = "/login",
|
|
665
665
|
...a
|
|
666
666
|
}) => {
|
|
667
|
-
var
|
|
667
|
+
var D, V, j, R;
|
|
668
668
|
const {
|
|
669
|
-
axios:
|
|
670
|
-
useLocation:
|
|
671
|
-
useAuth:
|
|
669
|
+
axios: v = a.axios,
|
|
670
|
+
useLocation: u = a.useLocation,
|
|
671
|
+
useAuth: g = a.useAuth,
|
|
672
672
|
Outlet: c = a.Outlet,
|
|
673
|
-
Navigate:
|
|
674
|
-
} =
|
|
675
|
-
if (
|
|
676
|
-
throw new Error(
|
|
677
|
-
if (
|
|
678
|
-
throw new Error(
|
|
673
|
+
Navigate: b = a.Navigate
|
|
674
|
+
} = ue(H);
|
|
675
|
+
if (g === void 0)
|
|
676
|
+
throw new Error(J("useAuth"));
|
|
677
|
+
if (u === void 0)
|
|
678
|
+
throw new Error(J("useLocation"));
|
|
679
679
|
if (c === void 0)
|
|
680
|
-
throw new Error(
|
|
681
|
-
if (
|
|
682
|
-
throw new Error(
|
|
683
|
-
const [
|
|
684
|
-
return
|
|
685
|
-
|
|
680
|
+
throw new Error(J("Outlet"));
|
|
681
|
+
if (b === void 0)
|
|
682
|
+
throw new Error(J("Navigate"));
|
|
683
|
+
const [h, C] = pr(null), { isLogged: O } = g(), T = u(), A = gr(!1);
|
|
684
|
+
return mr(() => {
|
|
685
|
+
A.current || (A.current = !0, v == null || v.interceptors.response.use(
|
|
686
686
|
(_) => _,
|
|
687
687
|
async (_) => {
|
|
688
|
-
var
|
|
689
|
-
return typeof _ == "object" && _ && "response" in _ && _.response && typeof _.response == "object" && "status" in _.response && _.response && typeof _.response == "object" && "status" in _.response && ((
|
|
688
|
+
var Y;
|
|
689
|
+
return typeof _ == "object" && _ && "response" in _ && _.response && typeof _.response == "object" && "status" in _.response && _.response && typeof _.response == "object" && "status" in _.response && ((Y = _ == null ? void 0 : _.response) == null ? void 0 : Y.status) === 401 && (v.defaults.headers.common.Authorization = null, localStorage.removeItem(s), C(l)), Promise.reject(_);
|
|
690
690
|
}
|
|
691
691
|
));
|
|
692
|
-
}, [
|
|
693
|
-
},
|
|
692
|
+
}, [v == null ? void 0 : v.defaults.headers.common, v == null ? void 0 : v.interceptors.response, s, l]), O && !h ? /* @__PURE__ */ k.jsx(hr, { fallback: n, children: (V = (D = T.state) == null ? void 0 : D.from) != null && V.state && ((R = (j = T.state) == null ? void 0 : j.from) == null ? void 0 : R.pathname) === o ? /* @__PURE__ */ k.jsx(b, { to: T.state.from.state.from.pathname + T.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ k.jsx(c, {}) }) : /* @__PURE__ */ k.jsx(b, { to: o, state: { from: T }, replace: !0 });
|
|
693
|
+
}, oe = (n) => `GTMSendPageView require « ${n} » dependency. You can provide with InjectDependenciesProvider or directly in props.`, jr = ({ ...n }) => {
|
|
694
694
|
const {
|
|
695
695
|
useLocation: o = n.useLocation,
|
|
696
|
-
Outlet:
|
|
697
|
-
useGoogleTagManager:
|
|
698
|
-
} =
|
|
696
|
+
Outlet: s = n.Outlet,
|
|
697
|
+
useGoogleTagManager: l = n.useGoogleTagManager
|
|
698
|
+
} = ue(H);
|
|
699
699
|
if (o === void 0)
|
|
700
|
-
throw new Error(
|
|
701
|
-
if (u === void 0)
|
|
702
|
-
throw new Error(ie("Outlet"));
|
|
700
|
+
throw new Error(oe("useLocation"));
|
|
703
701
|
if (s === void 0)
|
|
704
|
-
throw new Error(
|
|
705
|
-
|
|
702
|
+
throw new Error(oe("Outlet"));
|
|
703
|
+
if (l === void 0)
|
|
704
|
+
throw new Error(oe("useGoogleTagManager"));
|
|
705
|
+
const { pathname: a } = o(), { sendEvent: v } = l();
|
|
706
706
|
return Er(() => {
|
|
707
|
-
|
|
708
|
-
}, [a,
|
|
707
|
+
v({ event: "pageView", pathname: a });
|
|
708
|
+
}, [a, v]), /* @__PURE__ */ k.jsx(s, {});
|
|
709
709
|
}, Pr = ({
|
|
710
710
|
axios: n,
|
|
711
711
|
baseURL: o,
|
|
712
|
-
tokenTypeKey:
|
|
713
|
-
userLocalStorageKey:
|
|
712
|
+
tokenTypeKey: s = "tokenType",
|
|
713
|
+
userLocalStorageKey: l = "user",
|
|
714
714
|
tokenKey: a = "accessToken",
|
|
715
|
-
postContentType:
|
|
716
|
-
}) =>
|
|
715
|
+
postContentType: v = "application/json"
|
|
716
|
+
}) => {
|
|
717
717
|
if (!n.defaults)
|
|
718
|
-
return;
|
|
719
|
-
const
|
|
720
|
-
n.defaults.baseURL = o, n.defaults.headers.post["Content-Type"] =
|
|
721
|
-
},
|
|
718
|
+
return null;
|
|
719
|
+
const u = localStorage.getItem(l), g = u ? JSON.parse(u) : null, c = g != null && g[s] ? g[s] : null, b = g != null && g[a] ? g[a] : null, h = u ? `${c} ${b}` : null;
|
|
720
|
+
return n.defaults.baseURL = o, n.defaults.headers.post["Content-Type"] = v, h && (n.defaults.headers.common.Authorization = h), null;
|
|
721
|
+
}, xr = ({
|
|
722
722
|
i18n: n,
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
}));
|
|
746
|
-
}, [s, n, o, u]), null;
|
|
747
|
-
}, Ar = ({
|
|
723
|
+
debug: o,
|
|
724
|
+
initReactI18next: s,
|
|
725
|
+
resources: l,
|
|
726
|
+
LanguageDetector: a
|
|
727
|
+
}) => (n != null && n.isInitialized || (n.use(a).use(s).init({
|
|
728
|
+
debug: o,
|
|
729
|
+
fallbackLng: "en",
|
|
730
|
+
interpolation: {
|
|
731
|
+
escapeValue: !1
|
|
732
|
+
},
|
|
733
|
+
load: "languageOnly",
|
|
734
|
+
react: {
|
|
735
|
+
bindI18n: !1,
|
|
736
|
+
useSuspense: !0
|
|
737
|
+
},
|
|
738
|
+
resources: l,
|
|
739
|
+
returnNull: !1
|
|
740
|
+
}).then(() => {
|
|
741
|
+
document.documentElement.lang !== n.resolvedLanguage && n.resolvedLanguage && document.documentElement.setAttribute("lang", n.resolvedLanguage);
|
|
742
|
+
}), n.on("languageChanged", (v) => {
|
|
743
|
+
document.documentElement.setAttribute("lang", v);
|
|
744
|
+
})), null), kr = ({
|
|
748
745
|
dsn: n,
|
|
749
746
|
sentry: o,
|
|
750
|
-
integrations:
|
|
751
|
-
tracesSampleRate:
|
|
747
|
+
integrations: s,
|
|
748
|
+
tracesSampleRate: l,
|
|
752
749
|
routingInstrumentationDependencies: a,
|
|
753
|
-
replaysSessionSampleRate:
|
|
754
|
-
replaysOnErrorSampleRate:
|
|
755
|
-
tracePropagationTargets:
|
|
750
|
+
replaysSessionSampleRate: v,
|
|
751
|
+
replaysOnErrorSampleRate: u,
|
|
752
|
+
tracePropagationTargets: g,
|
|
756
753
|
debug: c
|
|
757
|
-
}) => {
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
tracesSampleRate: s || 1
|
|
780
|
-
}), R.current = !0);
|
|
781
|
-
}, [
|
|
782
|
-
c,
|
|
783
|
-
n,
|
|
784
|
-
u,
|
|
785
|
-
l,
|
|
786
|
-
d,
|
|
787
|
-
a.createRoutesFromChildren,
|
|
788
|
-
a.matchRoutes,
|
|
789
|
-
a.useEffect,
|
|
790
|
-
a.useLocation,
|
|
791
|
-
a.useNavigationType,
|
|
792
|
-
o,
|
|
793
|
-
p,
|
|
794
|
-
s
|
|
795
|
-
]), null;
|
|
796
|
-
}, kr = ({ IMaskMixin: n, ...o }) => {
|
|
797
|
-
const u = se(
|
|
754
|
+
}) => (o.isInitialized() || (c || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && o.init({
|
|
755
|
+
debug: c,
|
|
756
|
+
dsn: n,
|
|
757
|
+
integrations: [
|
|
758
|
+
new o.BrowserTracing({
|
|
759
|
+
routingInstrumentation: o.reactRouterV6Instrumentation(
|
|
760
|
+
a.useEffect,
|
|
761
|
+
a.useLocation,
|
|
762
|
+
a.useNavigationType,
|
|
763
|
+
a.createRoutesFromChildren,
|
|
764
|
+
a.matchRoutes
|
|
765
|
+
)
|
|
766
|
+
}),
|
|
767
|
+
o.replayIntegration(),
|
|
768
|
+
...s || []
|
|
769
|
+
],
|
|
770
|
+
replaysOnErrorSampleRate: u || 1,
|
|
771
|
+
replaysSessionSampleRate: v || 0.1,
|
|
772
|
+
tracePropagationTargets: g,
|
|
773
|
+
tracesSampleRate: l || 1
|
|
774
|
+
}), null), Ar = ({ IMaskMixin: n, ...o }) => {
|
|
775
|
+
const s = se(
|
|
798
776
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
799
|
-
() => n(({ TextField:
|
|
777
|
+
() => n(({ TextField: l, ...a }) => /* @__PURE__ */ k.jsx(l, { ...a })),
|
|
800
778
|
[n]
|
|
801
779
|
);
|
|
802
|
-
return /* @__PURE__ */
|
|
803
|
-
},
|
|
804
|
-
n && o && (n.accessToken = o);
|
|
805
|
-
}, [o, n]), null), $r = ({
|
|
780
|
+
return /* @__PURE__ */ k.jsx(s, { ...o });
|
|
781
|
+
}, Dr = ({ mapbox: n, accessToken: o }) => (n && o && (n.accessToken = o), null), Fr = ({
|
|
806
782
|
children: n,
|
|
807
783
|
defaultOptions: o,
|
|
808
|
-
QueryClient:
|
|
809
|
-
QueryClientProvider:
|
|
784
|
+
QueryClient: s,
|
|
785
|
+
QueryClientProvider: l
|
|
810
786
|
}) => {
|
|
811
|
-
const a = new
|
|
787
|
+
const a = new s({
|
|
812
788
|
defaultOptions: {
|
|
813
789
|
queries: {
|
|
814
790
|
refetchOnWindowFocus: !1,
|
|
@@ -817,69 +793,69 @@ const Z = gr({
|
|
|
817
793
|
}
|
|
818
794
|
}
|
|
819
795
|
});
|
|
820
|
-
return /* @__PURE__ */
|
|
821
|
-
},
|
|
822
|
-
const { unknownErrorTranslationKey: o = "error.unknownError" } = n || {}, { translate:
|
|
823
|
-
return { printError:
|
|
796
|
+
return /* @__PURE__ */ k.jsx(l, { client: a, children: n });
|
|
797
|
+
}, $r = (n) => {
|
|
798
|
+
const { unknownErrorTranslationKey: o = "error.unknownError" } = n || {}, { translate: s = n == null ? void 0 : n.translate } = ue(H);
|
|
799
|
+
return { printError: X(
|
|
824
800
|
(a) => {
|
|
825
|
-
var
|
|
826
|
-
const
|
|
827
|
-
return a != null && a.reason ? String(a.reason) : (
|
|
801
|
+
var g, c, b, h, C, O, T, A, D;
|
|
802
|
+
const v = s ? s(o) : "Unknown error", { response: u } = a || {};
|
|
803
|
+
return a != null && a.reason ? String(a.reason) : (g = u == null ? void 0 : u.data) != null && g.reason ? String(u.data.reason) : (c = u == null ? void 0 : u.data) != null && c.message ? String(u.data.message) : (h = (b = u == null ? void 0 : u.data) == null ? void 0 : b.detail) != null && h.length && Array.isArray((C = u == null ? void 0 : u.data) == null ? void 0 : C.detail) && ((T = (O = u == null ? void 0 : u.data) == null ? void 0 : O.detail[0]) != null && T.msg) && typeof ((D = (A = u == null ? void 0 : u.data) == null ? void 0 : A.detail[0]) == null ? void 0 : D.msg) == "string" ? String(u.data.detail[0].msg) : v;
|
|
828
804
|
},
|
|
829
|
-
[
|
|
805
|
+
[s, o]
|
|
830
806
|
) };
|
|
831
|
-
},
|
|
807
|
+
}, Ir = ({
|
|
832
808
|
data: n,
|
|
833
809
|
fetchNextPage: o,
|
|
834
|
-
isFetchingNextPage:
|
|
835
|
-
isInitialLoading:
|
|
810
|
+
isFetchingNextPage: s,
|
|
811
|
+
isInitialLoading: l,
|
|
836
812
|
isLoading: a,
|
|
837
|
-
enabled:
|
|
813
|
+
enabled: v = !0
|
|
838
814
|
}) => {
|
|
839
|
-
const
|
|
815
|
+
const u = X(
|
|
840
816
|
async (c) => {
|
|
841
|
-
|
|
817
|
+
s || !v || await o({ pageParam: (c == null ? void 0 : c.pageParam) || c.visibleRowsCount });
|
|
842
818
|
},
|
|
843
|
-
[
|
|
844
|
-
),
|
|
819
|
+
[v, o, s]
|
|
820
|
+
), g = se(() => {
|
|
845
821
|
if (n)
|
|
846
|
-
return n.pages.reduce((c,
|
|
822
|
+
return n.pages.reduce((c, b) => [...c, ...b], []);
|
|
847
823
|
}, [n]);
|
|
848
824
|
return {
|
|
849
|
-
fetchNextPageOnRowsScrollEnd:
|
|
850
|
-
isLoading:
|
|
851
|
-
loadingVariant:
|
|
852
|
-
rows:
|
|
825
|
+
fetchNextPageOnRowsScrollEnd: u,
|
|
826
|
+
isLoading: s || a,
|
|
827
|
+
loadingVariant: l ? "skeleton" : "linear",
|
|
828
|
+
rows: g
|
|
853
829
|
};
|
|
854
|
-
},
|
|
855
|
-
const o =
|
|
856
|
-
({ tokenType:
|
|
857
|
-
n.defaults.headers.common.Authorization = `${
|
|
830
|
+
}, Lr = (n) => {
|
|
831
|
+
const o = X(
|
|
832
|
+
({ tokenType: l, accessToken: a }) => {
|
|
833
|
+
n.defaults.headers.common.Authorization = `${l} ${a}`;
|
|
858
834
|
},
|
|
859
835
|
[n.defaults.headers.common]
|
|
860
836
|
);
|
|
861
837
|
return {
|
|
862
|
-
clearAuthenticationToken:
|
|
838
|
+
clearAuthenticationToken: X(() => {
|
|
863
839
|
n.defaults.headers.common.Authorization = null;
|
|
864
840
|
}, [n.defaults.headers.common]),
|
|
865
841
|
setAuthenticationToken: o
|
|
866
842
|
};
|
|
867
843
|
}, br = (n) => n.charAt(0).toUpperCase() + n.slice(1).toLowerCase(), _r = (n) => {
|
|
868
|
-
const
|
|
869
|
-
return
|
|
870
|
-
}, wr = (n, o,
|
|
871
|
-
const
|
|
872
|
-
return `${
|
|
844
|
+
const l = n.split("/").filter((a) => a.length > 0).map((a) => a.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((c) => c.charAt(0).toUpperCase() + c.slice(1)).join("")).join("");
|
|
845
|
+
return l.charAt(0).toLowerCase() + l.slice(1);
|
|
846
|
+
}, wr = (n, o, s) => {
|
|
847
|
+
const l = _r(o), a = br(s);
|
|
848
|
+
return `${l}${a}`;
|
|
873
849
|
}, Cr = (n) => {
|
|
874
850
|
if (n)
|
|
875
|
-
return (n == null ? void 0 : n.reduce((o,
|
|
851
|
+
return (n == null ? void 0 : n.reduce((o, s) => (o[s] = {
|
|
876
852
|
query: {
|
|
877
853
|
useInfinite: !0,
|
|
878
854
|
useInfiniteQueryParam: "offset"
|
|
879
855
|
}
|
|
880
856
|
}, o), {})) || {};
|
|
881
|
-
},
|
|
882
|
-
const { input: o = "./openapi.json", operationsToGenerateInfiniteQueryHook:
|
|
857
|
+
}, Nr = (n) => {
|
|
858
|
+
const { input: o = "./openapi.json", operationsToGenerateInfiniteQueryHook: s = void 0 } = n || {};
|
|
883
859
|
return {
|
|
884
860
|
api: {
|
|
885
861
|
hooks: {
|
|
@@ -890,17 +866,17 @@ const Z = gr({
|
|
|
890
866
|
client: "react-query",
|
|
891
867
|
mode: "tags-split",
|
|
892
868
|
override: {
|
|
893
|
-
header: (
|
|
869
|
+
header: (l) => [
|
|
894
870
|
"Generated by orval 🍺",
|
|
895
|
-
...
|
|
896
|
-
...
|
|
871
|
+
...l.title ? [l.title] : [],
|
|
872
|
+
...l.description ? [l.description] : []
|
|
897
873
|
],
|
|
898
874
|
mutator: {
|
|
899
875
|
name: "axiosCustomInstance",
|
|
900
876
|
path: `${__dirname}/config/orval/mutator/axiosCustomInstance.ts`
|
|
901
877
|
},
|
|
902
878
|
operationName: wr,
|
|
903
|
-
...(
|
|
879
|
+
...(s == null ? void 0 : s.length) && { operations: Cr(s) },
|
|
904
880
|
query: {
|
|
905
881
|
useQuery: !0
|
|
906
882
|
}
|
|
@@ -915,15 +891,15 @@ export {
|
|
|
915
891
|
Pr as AxiosConfig,
|
|
916
892
|
jr as GTMSendPageView,
|
|
917
893
|
xr as I18nConfig,
|
|
918
|
-
|
|
894
|
+
H as InjectDependenciesContext,
|
|
919
895
|
Or as InjectDependenciesProvider,
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
896
|
+
Dr as MapBoxConfig,
|
|
897
|
+
Ar as MaskTextField,
|
|
898
|
+
Fr as QueryClientConfigProvider,
|
|
923
899
|
Sr as RequireAuth,
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
900
|
+
kr as SentryConfig,
|
|
901
|
+
Nr as getOrvalConfig,
|
|
902
|
+
Lr as useAuth,
|
|
903
|
+
Ir as useInfiniteDataGrid,
|
|
904
|
+
$r as useResponseError
|
|
929
905
|
};
|