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