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