@tracktor/shared-module 1.0.0-beta.6 → 1.0.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -2
- package/dist/components/Utils/DaysJSConfig.d.ts +1 -1
- package/dist/en-gK0dFos9.js +18 -0
- package/dist/fr-tYyGRO0d.js +22 -0
- package/dist/hooks/useAdapter/useAdapter.d.ts +1 -1
- package/dist/main-n8Gmn2zo.js +940 -0
- package/dist/main.js +19 -896
- package/dist/main.umd.cjs +10 -10
- package/package.json +1 -1
- package/dist/en-HVfn094c.js +0 -17
|
@@ -0,0 +1,940 @@
|
|
|
1
|
+
import Ie, { useState as Cr, useRef as Tr, useLayoutEffect as Ne, Suspense as Sr, useEffect as We, createContext as wr, useMemo as se, useContext as Ve, useCallback as oe } from "react";
|
|
2
|
+
import $ from "axios";
|
|
3
|
+
import { useLocation as ue, Navigate as $e, Outlet as Ue, createRoutesFromChildren as Or, matchRoutes as xr, useNavigationType as jr } from "react-router-dom";
|
|
4
|
+
import { useGoogleTagManager as Pr } from "@tracktor/react-google-tag-manager";
|
|
5
|
+
import I, { t as Ar } from "i18next";
|
|
6
|
+
import kr from "i18next-browser-languagedetector";
|
|
7
|
+
import { initReactI18next as Dr } from "react-i18next";
|
|
8
|
+
import * as ae from "@sentry/react";
|
|
9
|
+
import Le from "mapbox-gl";
|
|
10
|
+
import z from "dayjs";
|
|
11
|
+
import { QueryClient as $r, QueryClientProvider as Lr } 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 ie = { exports: {} }, V = {};
|
|
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 Me;
|
|
27
|
+
function Yr() {
|
|
28
|
+
return Me || (Me = 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"), v = Symbol.for("react.strict_mode"), y = 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"), h = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), j = Symbol.iterator, w = "@@iterator";
|
|
30
|
+
function R(e) {
|
|
31
|
+
if (e === null || typeof e != "object")
|
|
32
|
+
return null;
|
|
33
|
+
var r = j && e[j] || e[w];
|
|
34
|
+
return typeof r == "function" ? r : null;
|
|
35
|
+
}
|
|
36
|
+
var D = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
37
|
+
function _(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
|
+
M("error", e, a);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
function M(e, r, a) {
|
|
45
|
+
{
|
|
46
|
+
var u = D.ReactDebugCurrentFrame, p = u.getStackAddendum();
|
|
47
|
+
p !== "" && (r += "%s", a = a.concat([p]));
|
|
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 qe = !1, Be = !1, Ge = !1, Je = !1, He = !1, ce;
|
|
55
|
+
ce = Symbol.for("react.module.reference");
|
|
56
|
+
function Xe(e) {
|
|
57
|
+
return !!(typeof e == "string" || typeof e == "function" || e === s || e === y || He || e === v || e === g || e === h || Je || e === x || qe || Be || Ge || 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 === ce || e.getModuleId !== void 0));
|
|
62
|
+
}
|
|
63
|
+
function Ke(e, r, a) {
|
|
64
|
+
var u = e.displayName;
|
|
65
|
+
if (u)
|
|
66
|
+
return u;
|
|
67
|
+
var p = r.displayName || r.name || "";
|
|
68
|
+
return p !== "" ? a + "(" + p + ")" : a;
|
|
69
|
+
}
|
|
70
|
+
function fe(e) {
|
|
71
|
+
return e.displayName || "Context";
|
|
72
|
+
}
|
|
73
|
+
function P(e) {
|
|
74
|
+
if (e == null)
|
|
75
|
+
return null;
|
|
76
|
+
if (typeof e.tag == "number" && _("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
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 y:
|
|
86
|
+
return "Profiler";
|
|
87
|
+
case v:
|
|
88
|
+
return "StrictMode";
|
|
89
|
+
case g:
|
|
90
|
+
return "Suspense";
|
|
91
|
+
case h:
|
|
92
|
+
return "SuspenseList";
|
|
93
|
+
}
|
|
94
|
+
if (typeof e == "object")
|
|
95
|
+
switch (e.$$typeof) {
|
|
96
|
+
case c:
|
|
97
|
+
var r = e;
|
|
98
|
+
return fe(r) + ".Consumer";
|
|
99
|
+
case o:
|
|
100
|
+
var a = e;
|
|
101
|
+
return fe(a._context) + ".Provider";
|
|
102
|
+
case l:
|
|
103
|
+
return Ke(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 p = e, m = p._payload, d = p._init;
|
|
109
|
+
try {
|
|
110
|
+
return P(d(m));
|
|
111
|
+
} catch {
|
|
112
|
+
return null;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
return null;
|
|
117
|
+
}
|
|
118
|
+
var L = Object.assign, N = 0, de, pe, ve, me, ge, he, ye;
|
|
119
|
+
function be() {
|
|
120
|
+
}
|
|
121
|
+
be.__reactDisabledLog = !0;
|
|
122
|
+
function Ze() {
|
|
123
|
+
{
|
|
124
|
+
if (N === 0) {
|
|
125
|
+
de = console.log, pe = console.info, ve = console.warn, me = console.error, ge = console.group, he = console.groupCollapsed, ye = console.groupEnd;
|
|
126
|
+
var e = {
|
|
127
|
+
configurable: !0,
|
|
128
|
+
enumerable: !0,
|
|
129
|
+
value: be,
|
|
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
|
+
N++;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
function Qe() {
|
|
146
|
+
{
|
|
147
|
+
if (N--, N === 0) {
|
|
148
|
+
var e = {
|
|
149
|
+
configurable: !0,
|
|
150
|
+
enumerable: !0,
|
|
151
|
+
writable: !0
|
|
152
|
+
};
|
|
153
|
+
Object.defineProperties(console, {
|
|
154
|
+
log: L({}, e, {
|
|
155
|
+
value: de
|
|
156
|
+
}),
|
|
157
|
+
info: L({}, e, {
|
|
158
|
+
value: pe
|
|
159
|
+
}),
|
|
160
|
+
warn: L({}, e, {
|
|
161
|
+
value: ve
|
|
162
|
+
}),
|
|
163
|
+
error: L({}, e, {
|
|
164
|
+
value: me
|
|
165
|
+
}),
|
|
166
|
+
group: L({}, e, {
|
|
167
|
+
value: ge
|
|
168
|
+
}),
|
|
169
|
+
groupCollapsed: L({}, e, {
|
|
170
|
+
value: he
|
|
171
|
+
}),
|
|
172
|
+
groupEnd: L({}, e, {
|
|
173
|
+
value: ye
|
|
174
|
+
})
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
N < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
var X = D.ReactCurrentDispatcher, K;
|
|
181
|
+
function q(e, r, a) {
|
|
182
|
+
{
|
|
183
|
+
if (K === void 0)
|
|
184
|
+
try {
|
|
185
|
+
throw Error();
|
|
186
|
+
} catch (p) {
|
|
187
|
+
var u = p.stack.trim().match(/\n( *(at )?)/);
|
|
188
|
+
K = u && u[1] || "";
|
|
189
|
+
}
|
|
190
|
+
return `
|
|
191
|
+
` + K + e;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
var Z = !1, B;
|
|
195
|
+
{
|
|
196
|
+
var er = typeof WeakMap == "function" ? WeakMap : Map;
|
|
197
|
+
B = new er();
|
|
198
|
+
}
|
|
199
|
+
function Ee(e, r) {
|
|
200
|
+
if (!e || Z)
|
|
201
|
+
return "";
|
|
202
|
+
{
|
|
203
|
+
var a = B.get(e);
|
|
204
|
+
if (a !== void 0)
|
|
205
|
+
return a;
|
|
206
|
+
}
|
|
207
|
+
var u;
|
|
208
|
+
Z = !0;
|
|
209
|
+
var p = Error.prepareStackTrace;
|
|
210
|
+
Error.prepareStackTrace = void 0;
|
|
211
|
+
var m;
|
|
212
|
+
m = X.current, X.current = null, Ze();
|
|
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
|
+
`), S = u.stack.split(`
|
|
249
|
+
`), b = f.length - 1, E = S.length - 1; b >= 1 && E >= 0 && f[b] !== S[E]; )
|
|
250
|
+
E--;
|
|
251
|
+
for (; b >= 1 && E >= 0; b--, E--)
|
|
252
|
+
if (f[b] !== S[E]) {
|
|
253
|
+
if (b !== 1 || E !== 1)
|
|
254
|
+
do
|
|
255
|
+
if (b--, E--, E < 0 || f[b] !== S[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" && B.set(e, O), O;
|
|
259
|
+
}
|
|
260
|
+
while (b >= 1 && E >= 0);
|
|
261
|
+
break;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
} finally {
|
|
265
|
+
Z = !1, X.current = m, Qe(), Error.prepareStackTrace = p;
|
|
266
|
+
}
|
|
267
|
+
var Y = e ? e.displayName || e.name : "", De = Y ? q(Y) : "";
|
|
268
|
+
return typeof e == "function" && B.set(e, De), De;
|
|
269
|
+
}
|
|
270
|
+
function rr(e, r, a) {
|
|
271
|
+
return Ee(e, !1);
|
|
272
|
+
}
|
|
273
|
+
function tr(e) {
|
|
274
|
+
var r = e.prototype;
|
|
275
|
+
return !!(r && r.isReactComponent);
|
|
276
|
+
}
|
|
277
|
+
function G(e, r, a) {
|
|
278
|
+
if (e == null)
|
|
279
|
+
return "";
|
|
280
|
+
if (typeof e == "function")
|
|
281
|
+
return Ee(e, tr(e));
|
|
282
|
+
if (typeof e == "string")
|
|
283
|
+
return q(e);
|
|
284
|
+
switch (e) {
|
|
285
|
+
case g:
|
|
286
|
+
return q("Suspense");
|
|
287
|
+
case h:
|
|
288
|
+
return q("SuspenseList");
|
|
289
|
+
}
|
|
290
|
+
if (typeof e == "object")
|
|
291
|
+
switch (e.$$typeof) {
|
|
292
|
+
case l:
|
|
293
|
+
return rr(e.render);
|
|
294
|
+
case C:
|
|
295
|
+
return G(e.type, r, a);
|
|
296
|
+
case T: {
|
|
297
|
+
var u = e, p = u._payload, m = u._init;
|
|
298
|
+
try {
|
|
299
|
+
return G(m(p), r, a);
|
|
300
|
+
} catch {
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
return "";
|
|
305
|
+
}
|
|
306
|
+
var J = Object.prototype.hasOwnProperty, Re = {}, _e = D.ReactDebugCurrentFrame;
|
|
307
|
+
function H(e) {
|
|
308
|
+
if (e) {
|
|
309
|
+
var r = e._owner, a = G(e.type, e._source, r ? r.type : null);
|
|
310
|
+
_e.setExtraStackFrame(a);
|
|
311
|
+
} else
|
|
312
|
+
_e.setExtraStackFrame(null);
|
|
313
|
+
}
|
|
314
|
+
function nr(e, r, a, u, p) {
|
|
315
|
+
{
|
|
316
|
+
var m = Function.call.bind(J);
|
|
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 S = 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 S.name = "Invariant Violation", S;
|
|
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) && (H(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).", u || "React class", a, d, typeof f), H(null)), f instanceof Error && !(f.message in Re) && (Re[f.message] = !0, H(p), _("Failed %s type: %s", a, f.message), H(null));
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
var ar = Array.isArray;
|
|
334
|
+
function Q(e) {
|
|
335
|
+
return ar(e);
|
|
336
|
+
}
|
|
337
|
+
function or(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 ir(e) {
|
|
344
|
+
try {
|
|
345
|
+
return Ce(e), !1;
|
|
346
|
+
} catch {
|
|
347
|
+
return !0;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
function Ce(e) {
|
|
351
|
+
return "" + e;
|
|
352
|
+
}
|
|
353
|
+
function Te(e) {
|
|
354
|
+
if (ir(e))
|
|
355
|
+
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", or(e)), Ce(e);
|
|
356
|
+
}
|
|
357
|
+
var W = D.ReactCurrentOwner, sr = {
|
|
358
|
+
key: !0,
|
|
359
|
+
ref: !0,
|
|
360
|
+
__self: !0,
|
|
361
|
+
__source: !0
|
|
362
|
+
}, Se, we, ee;
|
|
363
|
+
ee = {};
|
|
364
|
+
function ur(e) {
|
|
365
|
+
if (J.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 lr(e) {
|
|
373
|
+
if (J.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 cr(e, r) {
|
|
381
|
+
if (typeof e.ref == "string" && W.current && r && W.current.stateNode !== r) {
|
|
382
|
+
var a = P(W.current.type);
|
|
383
|
+
ee[a] || (_('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(W.current.type), e.ref), ee[a] = !0);
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
function fr(e, r) {
|
|
387
|
+
{
|
|
388
|
+
var a = function() {
|
|
389
|
+
Se || (Se = !0, _("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
390
|
+
};
|
|
391
|
+
a.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
392
|
+
get: a,
|
|
393
|
+
configurable: !0
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
function dr(e, r) {
|
|
398
|
+
{
|
|
399
|
+
var a = function() {
|
|
400
|
+
we || (we = !0, _("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
401
|
+
};
|
|
402
|
+
a.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
403
|
+
get: a,
|
|
404
|
+
configurable: !0
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
var pr = function(e, r, a, u, p, 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: p
|
|
435
|
+
}), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
|
|
436
|
+
};
|
|
437
|
+
function vr(e, r, a, u, p) {
|
|
438
|
+
{
|
|
439
|
+
var m, d = {}, f = null, S = null;
|
|
440
|
+
a !== void 0 && (Te(a), f = "" + a), lr(r) && (Te(r.key), f = "" + r.key), ur(r) && (S = r.ref, cr(r, p));
|
|
441
|
+
for (m in r)
|
|
442
|
+
J.call(r, m) && !sr.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 || S) {
|
|
449
|
+
var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
450
|
+
f && fr(d, E), S && dr(d, E);
|
|
451
|
+
}
|
|
452
|
+
return pr(e, f, S, p, u, W.current, d);
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
var re = D.ReactCurrentOwner, Oe = D.ReactDebugCurrentFrame;
|
|
456
|
+
function F(e) {
|
|
457
|
+
if (e) {
|
|
458
|
+
var r = e._owner, a = G(e.type, e._source, r ? r.type : null);
|
|
459
|
+
Oe.setExtraStackFrame(a);
|
|
460
|
+
} else
|
|
461
|
+
Oe.setExtraStackFrame(null);
|
|
462
|
+
}
|
|
463
|
+
var te;
|
|
464
|
+
te = !1;
|
|
465
|
+
function ne(e) {
|
|
466
|
+
return typeof e == "object" && e !== null && e.$$typeof === n;
|
|
467
|
+
}
|
|
468
|
+
function xe() {
|
|
469
|
+
{
|
|
470
|
+
if (re.current) {
|
|
471
|
+
var e = P(re.current.type);
|
|
472
|
+
if (e)
|
|
473
|
+
return `
|
|
474
|
+
|
|
475
|
+
Check the render method of \`` + e + "`.";
|
|
476
|
+
}
|
|
477
|
+
return "";
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
function mr(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 je = {};
|
|
492
|
+
function gr(e) {
|
|
493
|
+
{
|
|
494
|
+
var r = xe();
|
|
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 Pe(e, r) {
|
|
505
|
+
{
|
|
506
|
+
if (!e._store || e._store.validated || e.key != null)
|
|
507
|
+
return;
|
|
508
|
+
e._store.validated = !0;
|
|
509
|
+
var a = gr(r);
|
|
510
|
+
if (je[a])
|
|
511
|
+
return;
|
|
512
|
+
je[a] = !0;
|
|
513
|
+
var u = "";
|
|
514
|
+
e && e._owner && e._owner !== re.current && (u = " It was passed a child from " + P(e._owner.type) + "."), F(e), _('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), F(null);
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
function Ae(e, r) {
|
|
518
|
+
{
|
|
519
|
+
if (typeof e != "object")
|
|
520
|
+
return;
|
|
521
|
+
if (Q(e))
|
|
522
|
+
for (var a = 0; a < e.length; a++) {
|
|
523
|
+
var u = e[a];
|
|
524
|
+
ne(u) && Pe(u, r);
|
|
525
|
+
}
|
|
526
|
+
else if (ne(e))
|
|
527
|
+
e._store && (e._store.validated = !0);
|
|
528
|
+
else if (e) {
|
|
529
|
+
var p = R(e);
|
|
530
|
+
if (typeof p == "function" && p !== e.entries)
|
|
531
|
+
for (var m = p.call(e), d; !(d = m.next()).done; )
|
|
532
|
+
ne(d.value) && Pe(d.value, r);
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
function hr(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
|
+
nr(a, e.props, "prop", u, e);
|
|
553
|
+
} else if (r.PropTypes !== void 0 && !te) {
|
|
554
|
+
te = !0;
|
|
555
|
+
var p = P(r);
|
|
556
|
+
_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
|
|
557
|
+
}
|
|
558
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
function yr(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
|
+
F(e), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), F(null);
|
|
567
|
+
break;
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
e.ref !== null && (F(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
function ke(e, r, a, u, p, m) {
|
|
574
|
+
{
|
|
575
|
+
var d = Xe(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 S = mr(p);
|
|
580
|
+
S ? f += S : f += xe();
|
|
581
|
+
var b;
|
|
582
|
+
e === null ? b = "null" : Q(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, _("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 = vr(e, r, a, p, 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 (Q(O)) {
|
|
592
|
+
for (var Y = 0; Y < O.length; Y++)
|
|
593
|
+
Ae(O[Y], e);
|
|
594
|
+
Object.freeze && Object.freeze(O);
|
|
595
|
+
} else
|
|
596
|
+
_("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
|
+
Ae(O, e);
|
|
599
|
+
}
|
|
600
|
+
return e === s ? yr(E) : hr(E), E;
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
function br(e, r, a) {
|
|
604
|
+
return ke(e, r, a, !0);
|
|
605
|
+
}
|
|
606
|
+
function Er(e, r, a) {
|
|
607
|
+
return ke(e, r, a, !1);
|
|
608
|
+
}
|
|
609
|
+
var Rr = Er, _r = br;
|
|
610
|
+
V.Fragment = s, V.jsx = Rr, V.jsxs = _r;
|
|
611
|
+
}()), V;
|
|
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 Fe;
|
|
624
|
+
function Ir() {
|
|
625
|
+
if (Fe)
|
|
626
|
+
return U;
|
|
627
|
+
Fe = 1;
|
|
628
|
+
var t = Ie, n = Symbol.for("react.element"), i = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, v = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
629
|
+
function o(c, l, g) {
|
|
630
|
+
var h, 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 (h in l)
|
|
633
|
+
s.call(l, h) && !y.hasOwnProperty(h) && (C[h] = l[h]);
|
|
634
|
+
if (c && c.defaultProps)
|
|
635
|
+
for (h in l = c.defaultProps, l)
|
|
636
|
+
C[h] === void 0 && (C[h] = l[h]);
|
|
637
|
+
return { $$typeof: n, type: c, key: T, ref: x, props: C, _owner: v.current };
|
|
638
|
+
}
|
|
639
|
+
return U.Fragment = i, U.jsx = o, U.jsxs = o, U;
|
|
640
|
+
}
|
|
641
|
+
process.env.NODE_ENV === "production" ? ie.exports = Ir() : ie.exports = Yr();
|
|
642
|
+
var k = ie.exports;
|
|
643
|
+
const ot = ({
|
|
644
|
+
Fallback: t,
|
|
645
|
+
loginPath: n = "/login",
|
|
646
|
+
localStorageKey: i = "user",
|
|
647
|
+
redirect401Path: s = "/login",
|
|
648
|
+
isLogged: v
|
|
649
|
+
}) => {
|
|
650
|
+
var C, T, x, j;
|
|
651
|
+
const [y, o] = Cr(null), c = ue(), l = Tr(!1), g = typeof v == "function" ? v() : !!v, h = typeof g == "boolean" ? g : g == null ? void 0 : g.isLogged;
|
|
652
|
+
return Ne(() => {
|
|
653
|
+
var w;
|
|
654
|
+
l.current || (l.current = !0, (w = $) == null || w.interceptors.response.use(
|
|
655
|
+
(R) => R,
|
|
656
|
+
async (R) => {
|
|
657
|
+
var M;
|
|
658
|
+
return typeof R == "object" && R && "response" in R && R.response && typeof R.response == "object" && "status" in R.response && R.response && typeof R.response == "object" && "status" in R.response && ((M = R == null ? void 0 : R.response) == null ? void 0 : M.status) === 401 && ($.defaults.headers.common.Authorization = null, localStorage.removeItem(i), o(s)), Promise.reject(R);
|
|
659
|
+
}
|
|
660
|
+
));
|
|
661
|
+
}, [i, s]), h && !y ? /* @__PURE__ */ k.jsx(Sr, { 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($e, { to: c.state.from.state.from.pathname + c.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ k.jsx(Ue, {}) }) : /* @__PURE__ */ k.jsx($e, { to: n, state: { from: c }, replace: !0 });
|
|
662
|
+
}, it = () => {
|
|
663
|
+
const { pathname: t } = ue(), { sendEvent: n } = Pr();
|
|
664
|
+
return We(() => {
|
|
665
|
+
n({ event: "pageView", pathname: t });
|
|
666
|
+
}, [t, n]), /* @__PURE__ */ k.jsx(Ue, {});
|
|
667
|
+
}, le = wr({
|
|
668
|
+
apiURL: void 0,
|
|
669
|
+
children: void 0
|
|
670
|
+
}), st = ({ children: t, apiURL: n }) => {
|
|
671
|
+
const i = se(
|
|
672
|
+
() => ({
|
|
673
|
+
apiURL: n
|
|
674
|
+
}),
|
|
675
|
+
[n]
|
|
676
|
+
);
|
|
677
|
+
return /* @__PURE__ */ k.jsx(le.Provider, { value: i, children: t });
|
|
678
|
+
}, ut = ({
|
|
679
|
+
tokenTypeKey: t = "tokenType",
|
|
680
|
+
userLocalStorageKey: n = "user",
|
|
681
|
+
tokenKey: i = "accessToken",
|
|
682
|
+
postContentType: s = "application/json",
|
|
683
|
+
...v
|
|
684
|
+
}) => {
|
|
685
|
+
const { apiURL: y = v.baseURL } = Ve(le);
|
|
686
|
+
if (!$.defaults)
|
|
687
|
+
return null;
|
|
688
|
+
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, h = o ? `${l} ${g}` : null;
|
|
689
|
+
return $.defaults.baseURL = y, $.defaults.headers.post["Content-Type"] = s, h && ($.defaults.headers.common.Authorization = h), null;
|
|
690
|
+
}, lt = ({ debug: t, resources: n }) => {
|
|
691
|
+
var i;
|
|
692
|
+
return (i = I) != null && i.isInitialized || (I.use(kr).use(Dr).init({
|
|
693
|
+
debug: t,
|
|
694
|
+
fallbackLng: "en",
|
|
695
|
+
interpolation: {
|
|
696
|
+
escapeValue: !1
|
|
697
|
+
},
|
|
698
|
+
load: "languageOnly",
|
|
699
|
+
react: {
|
|
700
|
+
bindI18n: !1,
|
|
701
|
+
useSuspense: !0
|
|
702
|
+
},
|
|
703
|
+
resources: n,
|
|
704
|
+
returnNull: !1
|
|
705
|
+
}).then(() => {
|
|
706
|
+
document.documentElement.lang !== I.resolvedLanguage && I.resolvedLanguage && document.documentElement.setAttribute("lang", I.resolvedLanguage);
|
|
707
|
+
}), I.on("languageChanged", (s) => {
|
|
708
|
+
document.documentElement.setAttribute("lang", s);
|
|
709
|
+
})), null;
|
|
710
|
+
}, ct = ({
|
|
711
|
+
dsn: t,
|
|
712
|
+
integrations: n,
|
|
713
|
+
tracesSampleRate: i,
|
|
714
|
+
replaysSessionSampleRate: s,
|
|
715
|
+
replaysOnErrorSampleRate: v,
|
|
716
|
+
tracePropagationTargets: y,
|
|
717
|
+
ignoreErrors: o,
|
|
718
|
+
debug: c,
|
|
719
|
+
environment: l
|
|
720
|
+
}) => (ae.isInitialized() || (c || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && ae.init({
|
|
721
|
+
debug: c,
|
|
722
|
+
dsn: t,
|
|
723
|
+
environment: l || "production",
|
|
724
|
+
ignoreErrors: [...o || [], /dynamically imported module/],
|
|
725
|
+
integrations: [
|
|
726
|
+
ae.reactRouterV6BrowserTracingIntegration({
|
|
727
|
+
createRoutesFromChildren: Or,
|
|
728
|
+
matchRoutes: xr,
|
|
729
|
+
useEffect: We,
|
|
730
|
+
useLocation: ue,
|
|
731
|
+
useNavigationType: jr
|
|
732
|
+
}),
|
|
733
|
+
...n || []
|
|
734
|
+
],
|
|
735
|
+
replaysOnErrorSampleRate: v || 1,
|
|
736
|
+
replaysSessionSampleRate: s || 0.1,
|
|
737
|
+
tracePropagationTargets: y,
|
|
738
|
+
tracesSampleRate: i || 1
|
|
739
|
+
}), null), ft = ({ IMaskMixin: t, ...n }) => {
|
|
740
|
+
const i = se(
|
|
741
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
742
|
+
() => t(({ TextField: s, ...v }) => /* @__PURE__ */ k.jsx(s, { ...v })),
|
|
743
|
+
[t]
|
|
744
|
+
);
|
|
745
|
+
return /* @__PURE__ */ k.jsx(i, { ...n });
|
|
746
|
+
}, dt = ({ accessToken: t }) => (Le && t && (Le.accessToken = t), null);
|
|
747
|
+
var ze = { exports: {} };
|
|
748
|
+
(function(t, n) {
|
|
749
|
+
(function(i, s) {
|
|
750
|
+
t.exports = s();
|
|
751
|
+
})(Mr, function() {
|
|
752
|
+
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" };
|
|
753
|
+
return function(s, v, y) {
|
|
754
|
+
var o = v.prototype, c = o.format;
|
|
755
|
+
y.en.formats = i, o.format = function(l) {
|
|
756
|
+
l === void 0 && (l = "YYYY-MM-DDTHH:mm:ssZ");
|
|
757
|
+
var g = this.$locale().formats, h = function(C, T) {
|
|
758
|
+
return C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(x, j, w) {
|
|
759
|
+
var R = w && w.toUpperCase();
|
|
760
|
+
return j || T[w] || i[w] || T[R].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(D, _, M) {
|
|
761
|
+
return _ || M.slice(1);
|
|
762
|
+
});
|
|
763
|
+
});
|
|
764
|
+
}(l, g === void 0 ? {} : g);
|
|
765
|
+
return c.call(this, h);
|
|
766
|
+
};
|
|
767
|
+
};
|
|
768
|
+
});
|
|
769
|
+
})(ze);
|
|
770
|
+
var Nr = ze.exports;
|
|
771
|
+
const Wr = /* @__PURE__ */ Fr(Nr);
|
|
772
|
+
z.extend(Wr);
|
|
773
|
+
const pt = ({ language: t }) => (Ne(() => {
|
|
774
|
+
var i;
|
|
775
|
+
const n = t || ((i = navigator.language) == null ? void 0 : i.slice(0, 2)) || "en";
|
|
776
|
+
if (n === "en") {
|
|
777
|
+
import("./en-gK0dFos9.js").then((s) => s.e).then(() => {
|
|
778
|
+
z.locale(n);
|
|
779
|
+
});
|
|
780
|
+
return;
|
|
781
|
+
}
|
|
782
|
+
n === "fr" && import("./fr-tYyGRO0d.js").then((s) => s.f).then(() => {
|
|
783
|
+
z.locale(n);
|
|
784
|
+
}).catch(() => {
|
|
785
|
+
import("./en-gK0dFos9.js").then((s) => s.e).then(() => {
|
|
786
|
+
z.locale("en");
|
|
787
|
+
});
|
|
788
|
+
});
|
|
789
|
+
}, [t]), null), vt = ({ children: t, defaultQueriesOptions: n, defaultMutationsOptions: i }) => {
|
|
790
|
+
const s = new $r({
|
|
791
|
+
defaultOptions: {
|
|
792
|
+
mutations: {
|
|
793
|
+
...i
|
|
794
|
+
},
|
|
795
|
+
queries: {
|
|
796
|
+
getNextPageParam: (v, y, o) => v.length + (o || 0),
|
|
797
|
+
refetchOnWindowFocus: !1,
|
|
798
|
+
retry: 3,
|
|
799
|
+
...n
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
});
|
|
803
|
+
return /* @__PURE__ */ k.jsx(Lr, { client: s, children: t });
|
|
804
|
+
}, mt = (t) => {
|
|
805
|
+
const { unknownErrorTranslationKey: n = "error.unknownError" } = t || {}, i = Ar(n), s = oe(
|
|
806
|
+
(y) => {
|
|
807
|
+
var c, l, g, h, C, T, x, j, w;
|
|
808
|
+
const { response: o } = y || {};
|
|
809
|
+
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) : (h = (g = o == null ? void 0 : o.data) == null ? void 0 : g.detail) != null && h.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 ((w = (j = o == null ? void 0 : o.data) == null ? void 0 : j.detail[0]) == null ? void 0 : w.msg) == "string" ? String(o.data.detail[0].msg) : i;
|
|
810
|
+
},
|
|
811
|
+
[i]
|
|
812
|
+
);
|
|
813
|
+
return { getErrorCode: oe((y) => {
|
|
814
|
+
var c, l, g;
|
|
815
|
+
const { response: o } = y || {};
|
|
816
|
+
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";
|
|
817
|
+
}, []), printError: s };
|
|
818
|
+
}, gt = ({
|
|
819
|
+
data: t,
|
|
820
|
+
fetchNextPage: n,
|
|
821
|
+
isFetchingNextPage: i,
|
|
822
|
+
isInitialLoading: s,
|
|
823
|
+
isLoading: v,
|
|
824
|
+
enabled: y = !0
|
|
825
|
+
}) => {
|
|
826
|
+
const o = oe(
|
|
827
|
+
async (l) => {
|
|
828
|
+
i || !y || await n({ pageParam: (l == null ? void 0 : l.pageParam) || l.visibleRowsCount });
|
|
829
|
+
},
|
|
830
|
+
[y, n, i]
|
|
831
|
+
), c = se(() => {
|
|
832
|
+
if (t)
|
|
833
|
+
return t.pages.reduce((l, g) => [...l, ...g], []);
|
|
834
|
+
}, [t]);
|
|
835
|
+
return {
|
|
836
|
+
fetchNextPageOnRowsScrollEnd: o,
|
|
837
|
+
isLoading: i || v,
|
|
838
|
+
loadingVariant: s ? "skeleton" : "linear",
|
|
839
|
+
rows: c
|
|
840
|
+
};
|
|
841
|
+
}, ht = () => ({
|
|
842
|
+
clearAuthenticationToken: () => {
|
|
843
|
+
$.defaults.headers.common.Authorization = null;
|
|
844
|
+
},
|
|
845
|
+
setAuthenticationToken: ({ tokenType: i, accessToken: s }) => {
|
|
846
|
+
$.defaults.headers.common.Authorization = `${i} ${s}`;
|
|
847
|
+
}
|
|
848
|
+
}), Vr = (t, n = "ll") => z(t).format(n), Ur = (t, n = "km") => {
|
|
849
|
+
const i = Number(t);
|
|
850
|
+
return Number.isNaN(i) ? `0 ${n}` : `${i.toFixed(2)} ${n}`;
|
|
851
|
+
}, zr = (t) => {
|
|
852
|
+
const n = t && typeof t == "object" && "pathname" in t && t.pathname ? t.pathname : t;
|
|
853
|
+
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;
|
|
854
|
+
}, Ye = (t, n) => {
|
|
855
|
+
if (!t)
|
|
856
|
+
return "";
|
|
857
|
+
const i = zr(t), s = typeof t == "object" && "pathname" in t ? `${t.origin}${i}` : t;
|
|
858
|
+
return typeof n == "number" ? `${s.replace("/files", `/thumbs/${n}`)}` : s;
|
|
859
|
+
}, yt = () => {
|
|
860
|
+
const { apiURL: t } = Ve(le);
|
|
861
|
+
return {
|
|
862
|
+
dateAdapter: Vr,
|
|
863
|
+
distanceAdapter: Ur,
|
|
864
|
+
filePathAdapter: (i, s) => Ye(
|
|
865
|
+
t && typeof i == "string" ? {
|
|
866
|
+
origin: t,
|
|
867
|
+
pathname: i
|
|
868
|
+
} : i,
|
|
869
|
+
s
|
|
870
|
+
)
|
|
871
|
+
};
|
|
872
|
+
}, qr = (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase(), Br = (t) => {
|
|
873
|
+
const s = t.split("/").filter((v) => v.length > 0).map((v) => v.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((l) => l.charAt(0).toUpperCase() + l.slice(1)).join("")).join("");
|
|
874
|
+
return s.charAt(0).toLowerCase() + s.slice(1);
|
|
875
|
+
}, Gr = (t, n, i) => {
|
|
876
|
+
const s = Br(n), v = qr(i);
|
|
877
|
+
return `${s}${v}`;
|
|
878
|
+
}, Jr = (t) => {
|
|
879
|
+
if (t)
|
|
880
|
+
return (t == null ? void 0 : t.reduce((n, i) => (n[i] = {
|
|
881
|
+
query: {
|
|
882
|
+
useInfinite: !0,
|
|
883
|
+
useInfiniteQueryParam: "offset",
|
|
884
|
+
useQuery: !0
|
|
885
|
+
}
|
|
886
|
+
}, n), {})) || {};
|
|
887
|
+
}, bt = (t) => {
|
|
888
|
+
const { input: n = "./openapi.json", operationsToGenerateInfiniteQueryHook: i = void 0 } = t || {};
|
|
889
|
+
return {
|
|
890
|
+
api: {
|
|
891
|
+
hooks: {
|
|
892
|
+
afterAllFilesWrite: "prettier src/api/ --write"
|
|
893
|
+
},
|
|
894
|
+
input: n,
|
|
895
|
+
output: {
|
|
896
|
+
client: "react-query",
|
|
897
|
+
mode: "tags-split",
|
|
898
|
+
override: {
|
|
899
|
+
header: (s) => [
|
|
900
|
+
"Generated by orval 🍺",
|
|
901
|
+
...s.title ? [s.title] : [],
|
|
902
|
+
...s.description ? [s.description] : []
|
|
903
|
+
],
|
|
904
|
+
mutator: {
|
|
905
|
+
name: "axiosCustomInstance",
|
|
906
|
+
path: `${__dirname}/config/orval/mutator/axiosCustomInstance.ts`
|
|
907
|
+
},
|
|
908
|
+
operationName: Gr,
|
|
909
|
+
...(i == null ? void 0 : i.length) && { operations: Jr(i) },
|
|
910
|
+
query: {
|
|
911
|
+
useQuery: !0
|
|
912
|
+
}
|
|
913
|
+
},
|
|
914
|
+
schemas: "src/api/model",
|
|
915
|
+
target: "src/api/services/api.ts"
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
};
|
|
919
|
+
};
|
|
920
|
+
export {
|
|
921
|
+
ut as A,
|
|
922
|
+
pt as D,
|
|
923
|
+
it as G,
|
|
924
|
+
lt as I,
|
|
925
|
+
ft as M,
|
|
926
|
+
vt as Q,
|
|
927
|
+
ot as R,
|
|
928
|
+
ct as S,
|
|
929
|
+
dt as a,
|
|
930
|
+
st as b,
|
|
931
|
+
Mr as c,
|
|
932
|
+
gt as d,
|
|
933
|
+
ht as e,
|
|
934
|
+
yt as f,
|
|
935
|
+
bt as g,
|
|
936
|
+
Vr as h,
|
|
937
|
+
Ur as i,
|
|
938
|
+
le as j,
|
|
939
|
+
mt as u
|
|
940
|
+
};
|