@tracktor/shared-module 0.9.5 → 0.10.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 +3 -2
- package/dist/config/orval/index.d.ts +2 -0
- package/dist/config/orval/mutator/axiosCustomInstance.d.ts +5 -0
- package/dist/config/orval/mutator/axiosCustomInstance.ts +21 -0
- package/dist/config/orval/orval.d.ts +44 -0
- package/dist/main.d.ts +1 -1
- package/dist/main.js +302 -273
- package/dist/main.umd.cjs +9 -9
- package/package.json +11 -10
- package/dist/config/orval.d.ts +0 -8
- /package/dist/config/{orval.test.d.ts → orval/orval.test.d.ts} +0 -0
package/dist/main.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Le, { createContext as pr, useMemo as ie, useContext as ue, useState as gr, useLayoutEffect as J, Suspense as mr, useEffect as hr, useCallback as Ie } from "react";
|
|
2
2
|
var oe = { exports: {} }, W = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
@@ -14,18 +14,18 @@ function Er() {
|
|
|
14
14
|
if (Fe)
|
|
15
15
|
return W;
|
|
16
16
|
Fe = 1;
|
|
17
|
-
var n =
|
|
18
|
-
function
|
|
19
|
-
var b, w = {},
|
|
20
|
-
R !== void 0 && (
|
|
21
|
-
for (b in
|
|
22
|
-
v.call(
|
|
23
|
-
if (
|
|
24
|
-
for (b in
|
|
25
|
-
w[b] === void 0 && (w[b] =
|
|
26
|
-
return { $$typeof:
|
|
17
|
+
var n = Le, o = Symbol.for("react.element"), f = Symbol.for("react.fragment"), v = Object.prototype.hasOwnProperty, i = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
+
function s(h, c, R) {
|
|
19
|
+
var b, w = {}, T = null, C = null;
|
|
20
|
+
R !== void 0 && (T = "" + R), c.key !== void 0 && (T = "" + c.key), c.ref !== void 0 && (C = c.ref);
|
|
21
|
+
for (b in c)
|
|
22
|
+
v.call(c, b) && !u.hasOwnProperty(b) && (w[b] = c[b]);
|
|
23
|
+
if (h && h.defaultProps)
|
|
24
|
+
for (b in c = h.defaultProps, c)
|
|
25
|
+
w[b] === void 0 && (w[b] = c[b]);
|
|
26
|
+
return { $$typeof: o, type: h, key: T, ref: C, props: w, _owner: i.current };
|
|
27
27
|
}
|
|
28
|
-
return W.Fragment =
|
|
28
|
+
return W.Fragment = f, W.jsx = s, W.jsxs = s, W;
|
|
29
29
|
}
|
|
30
30
|
var M = {};
|
|
31
31
|
/**
|
|
@@ -37,42 +37,42 @@ var M = {};
|
|
|
37
37
|
* This source code is licensed under the MIT license found in the
|
|
38
38
|
* LICENSE file in the root directory of this source tree.
|
|
39
39
|
*/
|
|
40
|
-
var
|
|
40
|
+
var $e;
|
|
41
41
|
function yr() {
|
|
42
|
-
return
|
|
43
|
-
var n =
|
|
44
|
-
function
|
|
42
|
+
return $e || ($e = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
+
var n = Le, o = Symbol.for("react.element"), f = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), h = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), x = Symbol.iterator, A = "@@iterator";
|
|
44
|
+
function N(e) {
|
|
45
45
|
if (e === null || typeof e != "object")
|
|
46
46
|
return null;
|
|
47
47
|
var r = x && e[x] || e[A];
|
|
48
48
|
return typeof r == "function" ? r : null;
|
|
49
49
|
}
|
|
50
|
-
var
|
|
50
|
+
var j = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
51
|
function p(e) {
|
|
52
52
|
{
|
|
53
53
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
|
|
54
54
|
t[a - 1] = arguments[a];
|
|
55
|
-
|
|
55
|
+
se("error", e, t);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function se(e, r, t) {
|
|
59
59
|
{
|
|
60
|
-
var a =
|
|
60
|
+
var a = j.ReactDebugCurrentFrame, g = a.getStackAddendum();
|
|
61
61
|
g !== "" && (r += "%s", t = t.concat([g]));
|
|
62
|
-
var
|
|
63
|
-
return String(
|
|
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 === v || e ===
|
|
68
|
+
var ce = !1, Y = !1, We = !1, Me = !1, Ne = !1, le;
|
|
69
|
+
le = Symbol.for("react.module.reference");
|
|
70
|
+
function Ye(e) {
|
|
71
|
+
return !!(typeof e == "string" || typeof e == "function" || e === v || e === u || Ne || e === i || e === R || e === b || Me || e === C || ce || Y || We || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === w || e.$$typeof === s || e.$$typeof === h || 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 === le || e.getModuleId !== void 0));
|
|
76
76
|
}
|
|
77
77
|
function Ve(e, r, t) {
|
|
78
78
|
var a = e.displayName;
|
|
@@ -84,7 +84,7 @@ function yr() {
|
|
|
84
84
|
function fe(e) {
|
|
85
85
|
return e.displayName || "Context";
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function S(e) {
|
|
88
88
|
if (e == null)
|
|
89
89
|
return null;
|
|
90
90
|
if (typeof e.tag == "number" && p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
@@ -94,11 +94,11 @@ function yr() {
|
|
|
94
94
|
switch (e) {
|
|
95
95
|
case v:
|
|
96
96
|
return "Fragment";
|
|
97
|
-
case
|
|
97
|
+
case f:
|
|
98
98
|
return "Portal";
|
|
99
|
-
case
|
|
99
|
+
case u:
|
|
100
100
|
return "Profiler";
|
|
101
|
-
case
|
|
101
|
+
case i:
|
|
102
102
|
return "StrictMode";
|
|
103
103
|
case R:
|
|
104
104
|
return "Suspense";
|
|
@@ -107,21 +107,21 @@ function yr() {
|
|
|
107
107
|
}
|
|
108
108
|
if (typeof e == "object")
|
|
109
109
|
switch (e.$$typeof) {
|
|
110
|
-
case
|
|
110
|
+
case h:
|
|
111
111
|
var r = e;
|
|
112
112
|
return fe(r) + ".Consumer";
|
|
113
|
-
case
|
|
113
|
+
case s:
|
|
114
114
|
var t = e;
|
|
115
115
|
return fe(t._context) + ".Provider";
|
|
116
|
-
case
|
|
116
|
+
case c:
|
|
117
117
|
return Ve(e, e.render, "ForwardRef");
|
|
118
118
|
case w:
|
|
119
119
|
var a = e.displayName || null;
|
|
120
|
-
return a !== null ? a :
|
|
121
|
-
case
|
|
122
|
-
var g = e,
|
|
120
|
+
return a !== null ? a : S(e.type) || "Memo";
|
|
121
|
+
case T: {
|
|
122
|
+
var g = e, m = g._payload, d = g._init;
|
|
123
123
|
try {
|
|
124
|
-
return
|
|
124
|
+
return S(d(m));
|
|
125
125
|
} catch {
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
@@ -129,14 +129,14 @@ function yr() {
|
|
|
129
129
|
}
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
|
-
var D = Object.assign,
|
|
132
|
+
var D = Object.assign, L = 0, de, ve, pe, ge, me, he, Ee;
|
|
133
133
|
function ye() {
|
|
134
134
|
}
|
|
135
135
|
ye.__reactDisabledLog = !0;
|
|
136
|
-
function
|
|
136
|
+
function qe() {
|
|
137
137
|
{
|
|
138
|
-
if (
|
|
139
|
-
de = console.log, ve = console.info, pe = console.warn, ge = console.error,
|
|
138
|
+
if (L === 0) {
|
|
139
|
+
de = console.log, ve = console.info, pe = console.warn, ge = console.error, me = console.group, he = console.groupCollapsed, Ee = console.groupEnd;
|
|
140
140
|
var e = {
|
|
141
141
|
configurable: !0,
|
|
142
142
|
enumerable: !0,
|
|
@@ -153,12 +153,12 @@ function yr() {
|
|
|
153
153
|
groupEnd: e
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
|
-
|
|
156
|
+
L++;
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function Be() {
|
|
160
160
|
{
|
|
161
|
-
if (
|
|
161
|
+
if (L--, L === 0) {
|
|
162
162
|
var e = {
|
|
163
163
|
configurable: !0,
|
|
164
164
|
enumerable: !0,
|
|
@@ -178,20 +178,20 @@ function yr() {
|
|
|
178
178
|
value: ge
|
|
179
179
|
}),
|
|
180
180
|
group: D({}, e, {
|
|
181
|
-
value:
|
|
181
|
+
value: me
|
|
182
182
|
}),
|
|
183
183
|
groupCollapsed: D({}, e, {
|
|
184
|
-
value:
|
|
184
|
+
value: he
|
|
185
185
|
}),
|
|
186
186
|
groupEnd: D({}, e, {
|
|
187
187
|
value: Ee
|
|
188
188
|
})
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
-
|
|
191
|
+
L < 0 && p("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
var K =
|
|
194
|
+
var K = j.ReactCurrentDispatcher, X;
|
|
195
195
|
function V(e, r, t) {
|
|
196
196
|
{
|
|
197
197
|
if (X === void 0)
|
|
@@ -205,48 +205,48 @@ function yr() {
|
|
|
205
205
|
` + X + e;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
var
|
|
208
|
+
var Z = !1, q;
|
|
209
209
|
{
|
|
210
|
-
var
|
|
211
|
-
|
|
210
|
+
var ze = typeof WeakMap == "function" ? WeakMap : Map;
|
|
211
|
+
q = new ze();
|
|
212
212
|
}
|
|
213
213
|
function be(e, r) {
|
|
214
|
-
if (!e ||
|
|
214
|
+
if (!e || Z)
|
|
215
215
|
return "";
|
|
216
216
|
{
|
|
217
|
-
var t =
|
|
217
|
+
var t = q.get(e);
|
|
218
218
|
if (t !== void 0)
|
|
219
219
|
return t;
|
|
220
220
|
}
|
|
221
221
|
var a;
|
|
222
|
-
|
|
222
|
+
Z = !0;
|
|
223
223
|
var g = Error.prepareStackTrace;
|
|
224
224
|
Error.prepareStackTrace = void 0;
|
|
225
|
-
var
|
|
226
|
-
|
|
225
|
+
var m;
|
|
226
|
+
m = K.current, K.current = null, qe();
|
|
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 (P) {
|
|
240
240
|
a = P;
|
|
241
241
|
}
|
|
242
|
-
Reflect.construct(e, [],
|
|
242
|
+
Reflect.construct(e, [], d);
|
|
243
243
|
} else {
|
|
244
244
|
try {
|
|
245
|
-
|
|
245
|
+
d.call();
|
|
246
246
|
} catch (P) {
|
|
247
247
|
a = P;
|
|
248
248
|
}
|
|
249
|
-
e.call(
|
|
249
|
+
e.call(d.prototype);
|
|
250
250
|
}
|
|
251
251
|
} else {
|
|
252
252
|
try {
|
|
@@ -258,41 +258,41 @@ function yr() {
|
|
|
258
258
|
}
|
|
259
259
|
} catch (P) {
|
|
260
260
|
if (P && a && typeof P.stack == "string") {
|
|
261
|
-
for (var
|
|
261
|
+
for (var l = P.stack.split(`
|
|
262
262
|
`), _ = a.stack.split(`
|
|
263
|
-
`), E =
|
|
263
|
+
`), E = l.length - 1, y = _.length - 1; E >= 1 && y >= 0 && l[E] !== _[y]; )
|
|
264
264
|
y--;
|
|
265
265
|
for (; E >= 1 && y >= 0; E--, y--)
|
|
266
|
-
if (
|
|
266
|
+
if (l[E] !== _[y]) {
|
|
267
267
|
if (E !== 1 || y !== 1)
|
|
268
268
|
do
|
|
269
|
-
if (E--, y--, y < 0 ||
|
|
269
|
+
if (E--, y--, y < 0 || l[E] !== _[y]) {
|
|
270
270
|
var O = `
|
|
271
|
-
` +
|
|
272
|
-
return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" &&
|
|
271
|
+
` + l[E].replace(" at new ", " at ");
|
|
272
|
+
return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && q.set(e, O), O;
|
|
273
273
|
}
|
|
274
274
|
while (E >= 1 && y >= 0);
|
|
275
275
|
break;
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
} finally {
|
|
279
|
-
|
|
279
|
+
Z = !1, K.current = m, Be(), Error.prepareStackTrace = g;
|
|
280
280
|
}
|
|
281
|
-
var
|
|
282
|
-
return typeof e == "function" &&
|
|
281
|
+
var $ = e ? e.displayName || e.name : "", De = $ ? V($) : "";
|
|
282
|
+
return typeof e == "function" && q.set(e, De), De;
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function Ge(e, r, t) {
|
|
285
285
|
return be(e, !1);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function Ue(e) {
|
|
288
288
|
var r = e.prototype;
|
|
289
289
|
return !!(r && r.isReactComponent);
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function B(e, r, t) {
|
|
292
292
|
if (e == null)
|
|
293
293
|
return "";
|
|
294
294
|
if (typeof e == "function")
|
|
295
|
-
return be(e,
|
|
295
|
+
return be(e, Ue(e));
|
|
296
296
|
if (typeof e == "string")
|
|
297
297
|
return V(e);
|
|
298
298
|
switch (e) {
|
|
@@ -303,49 +303,49 @@ function yr() {
|
|
|
303
303
|
}
|
|
304
304
|
if (typeof e == "object")
|
|
305
305
|
switch (e.$$typeof) {
|
|
306
|
-
case
|
|
307
|
-
return
|
|
306
|
+
case c:
|
|
307
|
+
return Ge(e.render);
|
|
308
308
|
case w:
|
|
309
|
-
return
|
|
310
|
-
case
|
|
311
|
-
var a = e, g = a._payload,
|
|
309
|
+
return B(e.type, r, t);
|
|
310
|
+
case T: {
|
|
311
|
+
var a = e, g = a._payload, m = a._init;
|
|
312
312
|
try {
|
|
313
|
-
return
|
|
313
|
+
return B(m(g), r, t);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
return "";
|
|
319
319
|
}
|
|
320
|
-
var
|
|
321
|
-
function
|
|
320
|
+
var z = Object.prototype.hasOwnProperty, Re = {}, _e = j.ReactDebugCurrentFrame;
|
|
321
|
+
function G(e) {
|
|
322
322
|
if (e) {
|
|
323
|
-
var r = e._owner, t =
|
|
323
|
+
var r = e._owner, t = B(e.type, e._source, r ? r.type : null);
|
|
324
324
|
_e.setExtraStackFrame(t);
|
|
325
325
|
} else
|
|
326
326
|
_e.setExtraStackFrame(null);
|
|
327
327
|
}
|
|
328
328
|
function Je(e, r, t, a, g) {
|
|
329
329
|
{
|
|
330
|
-
var
|
|
331
|
-
for (var
|
|
332
|
-
if (
|
|
333
|
-
var
|
|
330
|
+
var m = Function.call.bind(z);
|
|
331
|
+
for (var d in e)
|
|
332
|
+
if (m(e, d)) {
|
|
333
|
+
var l = void 0;
|
|
334
334
|
try {
|
|
335
|
-
if (typeof e[
|
|
336
|
-
var _ = Error((a || "React class") + ": " + t + " type `" +
|
|
335
|
+
if (typeof e[d] != "function") {
|
|
336
|
+
var _ = Error((a || "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 _.name = "Invariant Violation", _;
|
|
338
338
|
}
|
|
339
|
-
|
|
339
|
+
l = e[d](r, d, a, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
340
|
} catch (E) {
|
|
341
|
-
|
|
341
|
+
l = E;
|
|
342
342
|
}
|
|
343
|
-
|
|
343
|
+
l && !(l instanceof Error) && (G(g), p("%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, d, typeof l), G(null)), l instanceof Error && !(l.message in Re) && (Re[l.message] = !0, G(g), p("Failed %s type: %s", t, l.message), G(null));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
var He = Array.isArray;
|
|
348
|
-
function
|
|
348
|
+
function Q(e) {
|
|
349
349
|
return He(e);
|
|
350
350
|
}
|
|
351
351
|
function Ke(e) {
|
|
@@ -364,19 +364,19 @@ function yr() {
|
|
|
364
364
|
function we(e) {
|
|
365
365
|
return "" + e;
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function Ce(e) {
|
|
368
368
|
if (Xe(e))
|
|
369
369
|
return p("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);
|
|
370
370
|
}
|
|
371
|
-
var
|
|
371
|
+
var I = j.ReactCurrentOwner, Ze = {
|
|
372
372
|
key: !0,
|
|
373
373
|
ref: !0,
|
|
374
374
|
__self: !0,
|
|
375
375
|
__source: !0
|
|
376
|
-
},
|
|
376
|
+
}, Te, Oe, ee;
|
|
377
377
|
ee = {};
|
|
378
|
-
function
|
|
379
|
-
if (
|
|
378
|
+
function Qe(e) {
|
|
379
|
+
if (z.call(e, "ref")) {
|
|
380
380
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
381
381
|
if (r && r.isReactWarning)
|
|
382
382
|
return !1;
|
|
@@ -384,7 +384,7 @@ function yr() {
|
|
|
384
384
|
return e.ref !== void 0;
|
|
385
385
|
}
|
|
386
386
|
function er(e) {
|
|
387
|
-
if (
|
|
387
|
+
if (z.call(e, "key")) {
|
|
388
388
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
389
389
|
if (r && r.isReactWarning)
|
|
390
390
|
return !1;
|
|
@@ -392,15 +392,15 @@ function yr() {
|
|
|
392
392
|
return e.key !== void 0;
|
|
393
393
|
}
|
|
394
394
|
function rr(e, r) {
|
|
395
|
-
if (typeof e.ref == "string" &&
|
|
396
|
-
var t =
|
|
397
|
-
ee[t] || (p('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',
|
|
395
|
+
if (typeof e.ref == "string" && I.current && r && I.current.stateNode !== r) {
|
|
396
|
+
var t = S(I.current.type);
|
|
397
|
+
ee[t] || (p('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', S(I.current.type), e.ref), ee[t] = !0);
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
function tr(e, r) {
|
|
401
401
|
{
|
|
402
402
|
var t = function() {
|
|
403
|
-
|
|
403
|
+
Te || (Te = !0, p("%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,
|
|
@@ -419,70 +419,70 @@ function yr() {
|
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
var ar = function(e, r, t, a, g,
|
|
423
|
-
var
|
|
422
|
+
var ar = function(e, r, t, a, g, m, d) {
|
|
423
|
+
var l = {
|
|
424
424
|
// This tag allows us to uniquely identify this as a React Element
|
|
425
|
-
$$typeof:
|
|
425
|
+
$$typeof: o,
|
|
426
426
|
// Built-in properties that belong on the element
|
|
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
|
-
return
|
|
434
|
+
return l._store = {}, Object.defineProperty(l._store, "validated", {
|
|
435
435
|
configurable: !1,
|
|
436
436
|
enumerable: !1,
|
|
437
437
|
writable: !0,
|
|
438
438
|
value: !1
|
|
439
|
-
}), Object.defineProperty(
|
|
439
|
+
}), Object.defineProperty(l, "_self", {
|
|
440
440
|
configurable: !1,
|
|
441
441
|
enumerable: !1,
|
|
442
442
|
writable: !1,
|
|
443
443
|
value: a
|
|
444
|
-
}), Object.defineProperty(
|
|
444
|
+
}), Object.defineProperty(l, "_source", {
|
|
445
445
|
configurable: !1,
|
|
446
446
|
enumerable: !1,
|
|
447
447
|
writable: !1,
|
|
448
448
|
value: g
|
|
449
|
-
}), Object.freeze && (Object.freeze(
|
|
449
|
+
}), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
|
|
450
450
|
};
|
|
451
451
|
function or(e, r, t, a, g) {
|
|
452
452
|
{
|
|
453
|
-
var
|
|
454
|
-
t !== void 0 && (
|
|
455
|
-
for (
|
|
456
|
-
|
|
453
|
+
var m, d = {}, l = null, _ = null;
|
|
454
|
+
t !== void 0 && (Ce(t), l = "" + t), er(r) && (Ce(r.key), l = "" + r.key), Qe(r) && (_ = r.ref, rr(r, g));
|
|
455
|
+
for (m in r)
|
|
456
|
+
z.call(r, m) && !Ze.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
|
-
if (
|
|
462
|
+
if (l || _) {
|
|
463
463
|
var y = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
464
|
-
|
|
464
|
+
l && tr(d, y), _ && nr(d, y);
|
|
465
465
|
}
|
|
466
|
-
return ar(e,
|
|
466
|
+
return ar(e, l, _, g, a, I.current, d);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
var re =
|
|
469
|
+
var re = j.ReactCurrentOwner, je = j.ReactDebugCurrentFrame;
|
|
470
470
|
function F(e) {
|
|
471
471
|
if (e) {
|
|
472
|
-
var r = e._owner, t =
|
|
473
|
-
|
|
472
|
+
var r = e._owner, t = B(e.type, e._source, r ? r.type : null);
|
|
473
|
+
je.setExtraStackFrame(t);
|
|
474
474
|
} else
|
|
475
|
-
|
|
475
|
+
je.setExtraStackFrame(null);
|
|
476
476
|
}
|
|
477
477
|
var te;
|
|
478
478
|
te = !1;
|
|
479
479
|
function ne(e) {
|
|
480
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
480
|
+
return typeof e == "object" && e !== null && e.$$typeof === o;
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function Se() {
|
|
483
483
|
{
|
|
484
484
|
if (re.current) {
|
|
485
|
-
var e =
|
|
485
|
+
var e = S(re.current.type);
|
|
486
486
|
if (e)
|
|
487
487
|
return `
|
|
488
488
|
|
|
@@ -503,9 +503,9 @@ Check your code at ` + r + ":" + t + ".";
|
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
505
|
var Pe = {};
|
|
506
|
-
function
|
|
506
|
+
function ur(e) {
|
|
507
507
|
{
|
|
508
|
-
var r =
|
|
508
|
+
var r = Se();
|
|
509
509
|
if (!r) {
|
|
510
510
|
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
511
511
|
t && (r = `
|
|
@@ -520,19 +520,19 @@ Check the top-level render call using <` + t + ">.");
|
|
|
520
520
|
if (!e._store || e._store.validated || e.key != null)
|
|
521
521
|
return;
|
|
522
522
|
e._store.validated = !0;
|
|
523
|
-
var t =
|
|
523
|
+
var t = ur(r);
|
|
524
524
|
if (Pe[t])
|
|
525
525
|
return;
|
|
526
526
|
Pe[t] = !0;
|
|
527
527
|
var a = "";
|
|
528
|
-
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 " + S(e._owner.type) + "."), F(e), p('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);
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
531
|
function xe(e, r) {
|
|
532
532
|
{
|
|
533
533
|
if (typeof e != "object")
|
|
534
534
|
return;
|
|
535
|
-
if (
|
|
535
|
+
if (Q(e))
|
|
536
536
|
for (var t = 0; t < e.length; t++) {
|
|
537
537
|
var a = e[t];
|
|
538
538
|
ne(a) && ke(a, r);
|
|
@@ -540,14 +540,14 @@ Check the top-level render call using <` + t + ">.");
|
|
|
540
540
|
else if (ne(e))
|
|
541
541
|
e._store && (e._store.validated = !0);
|
|
542
542
|
else if (e) {
|
|
543
|
-
var g =
|
|
543
|
+
var g = N(e);
|
|
544
544
|
if (typeof g == "function" && g !== e.entries)
|
|
545
|
-
for (var
|
|
546
|
-
ne(
|
|
545
|
+
for (var m = g.call(e), d; !(d = m.next()).done; )
|
|
546
|
+
ne(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")
|
|
@@ -555,24 +555,24 @@ Check the top-level render call using <` + t + ">.");
|
|
|
555
555
|
var t;
|
|
556
556
|
if (typeof r == "function")
|
|
557
557
|
t = r.propTypes;
|
|
558
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
|
558
|
+
else if (typeof r == "object" && (r.$$typeof === c || // Note: Memo only checks outer props here.
|
|
559
559
|
// Inner props are checked in the reconciler.
|
|
560
560
|
r.$$typeof === w))
|
|
561
561
|
t = r.propTypes;
|
|
562
562
|
else
|
|
563
563
|
return;
|
|
564
564
|
if (t) {
|
|
565
|
-
var a =
|
|
565
|
+
var a = S(r);
|
|
566
566
|
Je(t, e.props, "prop", a, e);
|
|
567
567
|
} else if (r.PropTypes !== void 0 && !te) {
|
|
568
568
|
te = !0;
|
|
569
|
-
var g =
|
|
569
|
+
var g = S(r);
|
|
570
570
|
p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", g || "Unknown");
|
|
571
571
|
}
|
|
572
572
|
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function cr(e) {
|
|
576
576
|
{
|
|
577
577
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
578
578
|
var a = r[t];
|
|
@@ -584,43 +584,43 @@ Check the top-level render call using <` + t + ">.");
|
|
|
584
584
|
e.ref !== null && (F(e), p("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
function Ae(e, r, t, a, g,
|
|
587
|
+
function Ae(e, r, t, a, g, m) {
|
|
588
588
|
{
|
|
589
|
-
var
|
|
590
|
-
if (!
|
|
591
|
-
var
|
|
592
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
589
|
+
var d = Ye(e);
|
|
590
|
+
if (!d) {
|
|
591
|
+
var l = "";
|
|
592
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (l += " 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
593
|
var _ = ir(g);
|
|
594
|
-
_ ?
|
|
594
|
+
_ ? l += _ : l += Se();
|
|
595
595
|
var E;
|
|
596
|
-
e === null ? E = "null" :
|
|
596
|
+
e === null ? E = "null" : Q(e) ? E = "array" : e !== void 0 && e.$$typeof === o ? (E = "<" + (S(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : E = typeof e, p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, l);
|
|
597
597
|
}
|
|
598
|
-
var y = or(e, r, t, g,
|
|
598
|
+
var y = or(e, r, t, g, m);
|
|
599
599
|
if (y == null)
|
|
600
600
|
return y;
|
|
601
|
-
if (
|
|
601
|
+
if (d) {
|
|
602
602
|
var O = r.children;
|
|
603
603
|
if (O !== void 0)
|
|
604
604
|
if (a)
|
|
605
|
-
if (
|
|
606
|
-
for (var
|
|
607
|
-
xe(O[
|
|
605
|
+
if (Q(O)) {
|
|
606
|
+
for (var $ = 0; $ < O.length; $++)
|
|
607
|
+
xe(O[$], e);
|
|
608
608
|
Object.freeze && Object.freeze(O);
|
|
609
609
|
} else
|
|
610
610
|
p("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
|
xe(O, e);
|
|
613
613
|
}
|
|
614
|
-
return e === v ?
|
|
614
|
+
return e === v ? cr(y) : sr(y), y;
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
|
-
function
|
|
617
|
+
function lr(e, r, t) {
|
|
618
618
|
return Ae(e, r, t, !0);
|
|
619
619
|
}
|
|
620
620
|
function fr(e, r, t) {
|
|
621
621
|
return Ae(e, r, t, !1);
|
|
622
622
|
}
|
|
623
|
-
var dr = fr, vr =
|
|
623
|
+
var dr = fr, vr = lr;
|
|
624
624
|
M.Fragment = v, M.jsx = dr, M.jsxs = vr;
|
|
625
625
|
}()), M;
|
|
626
626
|
}
|
|
@@ -634,94 +634,94 @@ const H = pr({
|
|
|
634
634
|
translate: void 0,
|
|
635
635
|
useAuth: void 0,
|
|
636
636
|
useLocation: void 0
|
|
637
|
-
}),
|
|
637
|
+
}), Tr = ({
|
|
638
638
|
axios: n,
|
|
639
|
-
children:
|
|
640
|
-
translate:
|
|
639
|
+
children: o,
|
|
640
|
+
translate: f,
|
|
641
641
|
useAuth: v,
|
|
642
|
-
Outlet:
|
|
643
|
-
Navigate:
|
|
644
|
-
useLocation:
|
|
645
|
-
useGoogleTagManager:
|
|
642
|
+
Outlet: i,
|
|
643
|
+
Navigate: u,
|
|
644
|
+
useLocation: s,
|
|
645
|
+
useGoogleTagManager: h
|
|
646
646
|
}) => {
|
|
647
|
-
const
|
|
647
|
+
const c = ie(
|
|
648
648
|
() => ({
|
|
649
649
|
axios: n,
|
|
650
|
-
Navigate:
|
|
651
|
-
Outlet:
|
|
652
|
-
translate:
|
|
650
|
+
Navigate: u,
|
|
651
|
+
Outlet: i,
|
|
652
|
+
translate: f,
|
|
653
653
|
useAuth: v,
|
|
654
|
-
useGoogleTagManager:
|
|
655
|
-
useLocation:
|
|
654
|
+
useGoogleTagManager: h,
|
|
655
|
+
useLocation: s
|
|
656
656
|
}),
|
|
657
|
-
[
|
|
657
|
+
[u, i, n, f, v, h, s]
|
|
658
658
|
);
|
|
659
|
-
return /* @__PURE__ */ k.jsx(H.Provider, { value:
|
|
660
|
-
},
|
|
659
|
+
return /* @__PURE__ */ k.jsx(H.Provider, { value: c, children: o });
|
|
660
|
+
}, U = (n) => `RequireAuth require « ${n} » dependency. You can provide with InjectDependenciesProvider or directly in props.`, Or = ({
|
|
661
661
|
Fallback: n,
|
|
662
|
-
loginPath:
|
|
663
|
-
localStorageKey:
|
|
662
|
+
loginPath: o = "/login",
|
|
663
|
+
localStorageKey: f = "user",
|
|
664
664
|
redirect401Path: v = "/login",
|
|
665
|
-
...
|
|
665
|
+
...i
|
|
666
666
|
}) => {
|
|
667
|
-
var x, A,
|
|
667
|
+
var x, A, N, j;
|
|
668
668
|
const {
|
|
669
|
-
axios:
|
|
670
|
-
useLocation:
|
|
671
|
-
useAuth:
|
|
672
|
-
Outlet:
|
|
673
|
-
Navigate: R =
|
|
674
|
-
} =
|
|
675
|
-
if (
|
|
676
|
-
throw new Error(
|
|
677
|
-
if (
|
|
678
|
-
throw new Error(
|
|
679
|
-
if (
|
|
680
|
-
throw new Error(
|
|
669
|
+
axios: u = i.axios,
|
|
670
|
+
useLocation: s = i.useLocation,
|
|
671
|
+
useAuth: h = i.useAuth,
|
|
672
|
+
Outlet: c = i.Outlet,
|
|
673
|
+
Navigate: R = i.Navigate
|
|
674
|
+
} = ue(H);
|
|
675
|
+
if (h === void 0)
|
|
676
|
+
throw new Error(U("useAuth"));
|
|
677
|
+
if (s === void 0)
|
|
678
|
+
throw new Error(U("useLocation"));
|
|
679
|
+
if (c === void 0)
|
|
680
|
+
throw new Error(U("Outlet"));
|
|
681
681
|
if (R === void 0)
|
|
682
|
-
throw new Error(
|
|
683
|
-
const [b, w] = gr(null), { isLogged:
|
|
682
|
+
throw new Error(U("Navigate"));
|
|
683
|
+
const [b, w] = gr(null), { isLogged: T } = h(), C = s();
|
|
684
684
|
return J(() => {
|
|
685
|
-
|
|
685
|
+
u == null || u.interceptors.response.use(
|
|
686
686
|
(p) => p,
|
|
687
687
|
async (p) => {
|
|
688
|
-
var
|
|
689
|
-
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 && ((
|
|
688
|
+
var Y;
|
|
689
|
+
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 && ((Y = p == null ? void 0 : p.response) == null ? void 0 : Y.status) === 401 && (u.defaults.headers.common.Authorization = null, localStorage.removeItem(f), w(v)), Promise.reject(p);
|
|
690
690
|
}
|
|
691
691
|
);
|
|
692
|
-
}, [
|
|
693
|
-
}, ae = (n) => `GTMSendPageView require « ${n} » dependency. You can provide with InjectDependenciesProvider or directly in props.`,
|
|
692
|
+
}, [u == null ? void 0 : u.defaults, u == null ? void 0 : u.interceptors.response, f, v]), T && !b ? /* @__PURE__ */ k.jsx(mr, { fallback: n, children: (A = (x = C.state) == null ? void 0 : x.from) != null && A.state && ((j = (N = C.state) == null ? void 0 : N.from) == null ? void 0 : j.pathname) === o ? /* @__PURE__ */ k.jsx(R, { to: C.state.from.state.from.pathname + C.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ k.jsx(c, {}) }) : /* @__PURE__ */ k.jsx(R, { to: o, state: { from: C }, replace: !0 });
|
|
693
|
+
}, ae = (n) => `GTMSendPageView require « ${n} » dependency. You can provide with InjectDependenciesProvider or directly in props.`, jr = ({ ...n }) => {
|
|
694
694
|
const {
|
|
695
|
-
useLocation:
|
|
696
|
-
Outlet:
|
|
695
|
+
useLocation: o = n.useLocation,
|
|
696
|
+
Outlet: f = n.Outlet,
|
|
697
697
|
useGoogleTagManager: v = n.useGoogleTagManager
|
|
698
|
-
} =
|
|
699
|
-
if (
|
|
698
|
+
} = ue(H);
|
|
699
|
+
if (o === void 0)
|
|
700
700
|
throw new Error(ae("useLocation"));
|
|
701
|
-
if (
|
|
701
|
+
if (f === void 0)
|
|
702
702
|
throw new Error(ae("Outlet"));
|
|
703
703
|
if (v === void 0)
|
|
704
704
|
throw new Error(ae("useGoogleTagManager"));
|
|
705
|
-
const { pathname:
|
|
706
|
-
return
|
|
707
|
-
|
|
708
|
-
}, [
|
|
709
|
-
},
|
|
705
|
+
const { pathname: i } = o(), { sendEvent: u } = v();
|
|
706
|
+
return hr(() => {
|
|
707
|
+
u({ event: "pageView", pathname: i });
|
|
708
|
+
}, [i, u]), /* @__PURE__ */ k.jsx(f, {});
|
|
709
|
+
}, Sr = ({
|
|
710
710
|
axios: n,
|
|
711
|
-
baseURL:
|
|
712
|
-
userLocalStorageKey:
|
|
711
|
+
baseURL: o,
|
|
712
|
+
userLocalStorageKey: f = "user",
|
|
713
713
|
postContentType: v = "application/json"
|
|
714
714
|
}) => (J(() => {
|
|
715
715
|
if (!n.defaults)
|
|
716
716
|
return;
|
|
717
|
-
const
|
|
718
|
-
n.defaults.baseURL =
|
|
719
|
-
}, [n.defaults,
|
|
717
|
+
const i = localStorage.getItem(f), u = i ? JSON.parse(i) : null, s = u && typeof u == "object" && "tokenType" in u && u.tokenType ? u.tokenType : null, h = u && typeof u == "object" && "accessToken" in u && u.accessToken ? u.accessToken : null, c = i ? `${s} ${h}` : null;
|
|
718
|
+
n.defaults.baseURL = o, n.defaults.headers.post["Content-Type"] = v, c && (n.defaults.headers.common.Authorization = c);
|
|
719
|
+
}, [n.defaults, o, v, f]), null), Pr = ({
|
|
720
720
|
i18n: n,
|
|
721
|
-
initReactI18next:
|
|
722
|
-
resources:
|
|
721
|
+
initReactI18next: o,
|
|
722
|
+
resources: f,
|
|
723
723
|
LanguageDetector: v
|
|
724
|
-
}) => (n.use(v).use(
|
|
724
|
+
}) => (n.use(v).use(o).init({
|
|
725
725
|
debug: !1,
|
|
726
726
|
fallbackLng: "en",
|
|
727
727
|
interpolation: {
|
|
@@ -731,95 +731,124 @@ const H = pr({
|
|
|
731
731
|
react: {
|
|
732
732
|
useSuspense: !0
|
|
733
733
|
},
|
|
734
|
-
resources:
|
|
734
|
+
resources: f,
|
|
735
735
|
returnNull: !1
|
|
736
736
|
}).then(() => {
|
|
737
737
|
document.documentElement.lang !== n.resolvedLanguage && n.resolvedLanguage && document.documentElement.setAttribute("lang", n.resolvedLanguage);
|
|
738
|
-
}), n.on("languageChanged", (
|
|
739
|
-
document.documentElement.setAttribute("lang",
|
|
740
|
-
}), null),
|
|
741
|
-
process.env.NODE_ENV === "production" &&
|
|
738
|
+
}), n.on("languageChanged", (i) => {
|
|
739
|
+
document.documentElement.setAttribute("lang", i);
|
|
740
|
+
}), null), kr = ({ dsn: n, sentry: o }) => (J(() => {
|
|
741
|
+
process.env.NODE_ENV === "production" && o.init({
|
|
742
742
|
dsn: n,
|
|
743
|
-
integrations: [new
|
|
743
|
+
integrations: [new o.BrowserTracing()],
|
|
744
744
|
tracesSampleRate: 1
|
|
745
745
|
});
|
|
746
|
-
}, [n,
|
|
747
|
-
const
|
|
746
|
+
}, [n, o]), null), xr = ({ IMaskMixin: n, ...o }) => {
|
|
747
|
+
const f = ie(
|
|
748
748
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
749
|
-
() => n(({ TextField: v, ...
|
|
749
|
+
() => n(({ TextField: v, ...i }) => /* @__PURE__ */ k.jsx(v, { ...i })),
|
|
750
750
|
[n]
|
|
751
751
|
);
|
|
752
|
-
return /* @__PURE__ */ k.jsx(
|
|
753
|
-
},
|
|
754
|
-
n &&
|
|
755
|
-
}, [
|
|
752
|
+
return /* @__PURE__ */ k.jsx(f, { ...o });
|
|
753
|
+
}, Ar = ({ mapbox: n, accessToken: o }) => (J(() => {
|
|
754
|
+
n && o && (n.accessToken = o);
|
|
755
|
+
}, [o, n]), null), Dr = ({
|
|
756
756
|
children: n,
|
|
757
|
-
defaultOptions:
|
|
758
|
-
QueryClient:
|
|
757
|
+
defaultOptions: o,
|
|
758
|
+
QueryClient: f,
|
|
759
759
|
QueryClientProvider: v
|
|
760
760
|
}) => {
|
|
761
|
-
const
|
|
761
|
+
const i = new f({
|
|
762
762
|
defaultOptions: {
|
|
763
763
|
queries: {
|
|
764
764
|
refetchOnWindowFocus: !1,
|
|
765
765
|
retry: 3,
|
|
766
|
-
...
|
|
766
|
+
...o
|
|
767
767
|
}
|
|
768
768
|
}
|
|
769
769
|
});
|
|
770
|
-
return /* @__PURE__ */ k.jsx(v, { client:
|
|
771
|
-
},
|
|
772
|
-
const { unknownErrorTranslationKey:
|
|
773
|
-
return { printError:
|
|
774
|
-
(
|
|
775
|
-
var
|
|
776
|
-
const
|
|
777
|
-
return
|
|
770
|
+
return /* @__PURE__ */ k.jsx(v, { client: i, children: n });
|
|
771
|
+
}, Fr = (n) => {
|
|
772
|
+
const { unknownErrorTranslationKey: o = "error.unknownError" } = n || {}, { translate: f = n == null ? void 0 : n.translate } = ue(H);
|
|
773
|
+
return { printError: Ie(
|
|
774
|
+
(i) => {
|
|
775
|
+
var h, c, R, b, w, T, C, x, A;
|
|
776
|
+
const u = f ? f(o) : "Unknown error", { response: s } = i || {};
|
|
777
|
+
return i != null && i.reason ? String(i.reason) : (h = s == null ? void 0 : s.data) != null && h.reason ? String(s.data.reason) : (c = s == null ? void 0 : s.data) != null && c.message ? String(s.data.message) : (b = (R = s == null ? void 0 : s.data) == null ? void 0 : R.detail) != null && b.length && Array.isArray((w = s == null ? void 0 : s.data) == null ? void 0 : w.detail) && ((C = (T = s == null ? void 0 : s.data) == null ? void 0 : T.detail[0]) != null && C.msg) && typeof ((A = (x = s == null ? void 0 : s.data) == null ? void 0 : x.detail[0]) == null ? void 0 : A.msg) == "string" ? String(s.data.detail[0].msg) : u;
|
|
778
778
|
},
|
|
779
|
-
[
|
|
779
|
+
[f, o]
|
|
780
780
|
) };
|
|
781
|
-
},
|
|
781
|
+
}, $r = ({
|
|
782
782
|
data: n,
|
|
783
|
-
fetchNextPage:
|
|
784
|
-
isFetchingNextPage:
|
|
783
|
+
fetchNextPage: o,
|
|
784
|
+
isFetchingNextPage: f,
|
|
785
785
|
isInitialLoading: v,
|
|
786
|
-
isLoading:
|
|
787
|
-
enabled:
|
|
786
|
+
isLoading: i,
|
|
787
|
+
enabled: u = !0
|
|
788
788
|
}) => {
|
|
789
|
-
const
|
|
790
|
-
async (
|
|
791
|
-
|
|
789
|
+
const s = Ie(
|
|
790
|
+
async (c) => {
|
|
791
|
+
f || !u || await o({ pageParam: (c == null ? void 0 : c.pageParam) || c.visibleRowsCount });
|
|
792
792
|
},
|
|
793
|
-
[
|
|
794
|
-
),
|
|
793
|
+
[u, o, f]
|
|
794
|
+
), h = ie(() => {
|
|
795
795
|
if (n)
|
|
796
|
-
return n.pages.reduce((
|
|
796
|
+
return n.pages.reduce((c, R) => [...c, ...R], []);
|
|
797
797
|
}, [n]);
|
|
798
798
|
return {
|
|
799
|
-
fetchNextPageOnRowsScrollEnd:
|
|
800
|
-
isLoading:
|
|
799
|
+
fetchNextPageOnRowsScrollEnd: s,
|
|
800
|
+
isLoading: f || i,
|
|
801
801
|
loadingVariant: v ? "skeleton" : "linear",
|
|
802
|
-
rows:
|
|
802
|
+
rows: h
|
|
803
803
|
};
|
|
804
804
|
}, br = (n) => n.charAt(0).toUpperCase() + n.slice(1).toLowerCase(), Rr = (n) => {
|
|
805
|
-
const v = n.split("/").filter((
|
|
805
|
+
const v = n.split("/").filter((i) => i.length > 0).map((i) => i.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((c) => c.charAt(0).toUpperCase() + c.slice(1)).join("")).join("");
|
|
806
806
|
return v.charAt(0).toLowerCase() + v.slice(1);
|
|
807
|
-
},
|
|
808
|
-
const v = Rr(
|
|
809
|
-
return `${v}${
|
|
810
|
-
}
|
|
807
|
+
}, _r = (n, o, f) => {
|
|
808
|
+
const v = Rr(o), i = br(f);
|
|
809
|
+
return `${v}${i}`;
|
|
810
|
+
}, wr = (n) => {
|
|
811
|
+
if (n)
|
|
812
|
+
return (n == null ? void 0 : n.reduce((o, f) => (o[f] = {
|
|
813
|
+
query: {
|
|
814
|
+
useInfinite: !0,
|
|
815
|
+
useInfiniteQueryParam: "offset"
|
|
816
|
+
}
|
|
817
|
+
}, o), {})) || {};
|
|
818
|
+
}, Lr = (n) => ({
|
|
819
|
+
api: {
|
|
820
|
+
input: "./openapi.json",
|
|
821
|
+
output: {
|
|
822
|
+
client: "react-query",
|
|
823
|
+
mode: "tags-split",
|
|
824
|
+
override: {
|
|
825
|
+
mutator: {
|
|
826
|
+
name: "axiosCustomInstance",
|
|
827
|
+
path: `${__dirname}/config/orval/mutator/axiosCustomInstance.ts`
|
|
828
|
+
},
|
|
829
|
+
operationName: _r,
|
|
830
|
+
...(n == null ? void 0 : n.length) && { operations: wr(n) },
|
|
831
|
+
query: {
|
|
832
|
+
useQuery: !0
|
|
833
|
+
}
|
|
834
|
+
},
|
|
835
|
+
schemas: "src/api/model",
|
|
836
|
+
target: "src/api/services/api.ts"
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
});
|
|
811
840
|
export {
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
841
|
+
Sr as AxiosConfig,
|
|
842
|
+
jr as GTMSendPageView,
|
|
843
|
+
Pr as I18nConfig,
|
|
815
844
|
H as InjectDependenciesContext,
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
845
|
+
Tr as InjectDependenciesProvider,
|
|
846
|
+
Ar as MapBoxConfig,
|
|
847
|
+
xr as MaskTextField,
|
|
848
|
+
Dr as QueryClientConfigProvider,
|
|
849
|
+
Or as RequireAuth,
|
|
850
|
+
kr as SentryConfig,
|
|
851
|
+
Lr as getOrvalConfig,
|
|
852
|
+
$r as useInfiniteDataGrid,
|
|
853
|
+
Fr as useResponseError
|
|
825
854
|
};
|