@tracktor/shared-module 2.14.3 → 2.14.4
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/hooks/useAdapter.d.ts +4 -4
- package/dist/hooks/useFilters.d.ts +2 -2
- package/dist/hooks/useResponseError/useResponseError.d.ts +2 -2
- package/dist/main.cjs +11 -14
- package/dist/main.js +487 -821
- package/package.json +7 -7
package/dist/main.js
CHANGED
|
@@ -1,620 +1,286 @@
|
|
|
1
|
-
import
|
|
2
|
-
var
|
|
1
|
+
import le, { createContext as de, useMemo as Q, useContext as j, useState as ne, useRef as fe, useEffect as C, Suspense as pe, useCallback as $ } from "react";
|
|
2
|
+
var L = { exports: {} }, x = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
|
-
* react-jsx-runtime.production.
|
|
5
|
+
* react-jsx-runtime.production.js
|
|
6
6
|
*
|
|
7
|
-
* Copyright (c)
|
|
7
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
if (
|
|
15
|
-
|
|
16
|
-
var
|
|
17
|
-
function
|
|
18
|
-
var c
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
12
|
+
var Z;
|
|
13
|
+
function ge() {
|
|
14
|
+
if (Z) return x;
|
|
15
|
+
Z = 1;
|
|
16
|
+
var e = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
|
|
17
|
+
function o(a, r, i) {
|
|
18
|
+
var c = null;
|
|
19
|
+
if (i !== void 0 && (c = "" + i), r.key !== void 0 && (c = "" + r.key), "key" in r) {
|
|
20
|
+
i = {};
|
|
21
|
+
for (var u in r)
|
|
22
|
+
u !== "key" && (i[u] = r[u]);
|
|
23
|
+
} else i = r;
|
|
24
|
+
return r = i.ref, {
|
|
25
|
+
$$typeof: e,
|
|
26
|
+
type: a,
|
|
27
|
+
key: c,
|
|
28
|
+
ref: r !== void 0 ? r : null,
|
|
29
|
+
props: i
|
|
30
|
+
};
|
|
23
31
|
}
|
|
24
|
-
return
|
|
32
|
+
return x.Fragment = n, x.jsx = o, x.jsxs = o, x;
|
|
25
33
|
}
|
|
26
|
-
var
|
|
34
|
+
var I = {};
|
|
27
35
|
/**
|
|
28
36
|
* @license React
|
|
29
37
|
* react-jsx-runtime.development.js
|
|
30
38
|
*
|
|
31
|
-
* Copyright (c)
|
|
39
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
32
40
|
*
|
|
33
41
|
* This source code is licensed under the MIT license found in the
|
|
34
42
|
* LICENSE file in the root directory of this source tree.
|
|
35
43
|
*/
|
|
36
|
-
var
|
|
37
|
-
function
|
|
38
|
-
return
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
if (
|
|
42
|
-
return null;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
var C = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47
|
-
function P(e) {
|
|
48
|
-
{
|
|
49
|
-
for (var t = arguments.length, i = new Array(t > 1 ? t - 1 : 0), d = 1; d < t; d++)
|
|
50
|
-
i[d - 1] = arguments[d];
|
|
51
|
-
j("error", e, i);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
function j(e, t, i) {
|
|
55
|
-
{
|
|
56
|
-
var d = C.ReactDebugCurrentFrame, m = d.getStackAddendum();
|
|
57
|
-
m !== "" && (t += "%s", i = i.concat([m]));
|
|
58
|
-
var b = i.map(function(y) {
|
|
59
|
-
return String(y);
|
|
60
|
-
});
|
|
61
|
-
b.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, b);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
var se = !1, ce = !1, We = !1, Ue = !1, Ve = !1, ue;
|
|
65
|
-
ue = Symbol.for("react.module.reference");
|
|
66
|
-
function ze(e) {
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e === a || e === l || Ve || e === s || e === v || e === c || Ue || e === w || se || ce || We || typeof e == "object" && e !== null && (e.$$typeof === h || e.$$typeof === R || e.$$typeof === f || e.$$typeof === p || e.$$typeof === u || // This needs to include all possible module reference object
|
|
68
|
-
// types supported by any Flight configuration anywhere since
|
|
69
|
-
// we don't know which Flight build this will end up being used
|
|
70
|
-
// with.
|
|
71
|
-
e.$$typeof === ue || e.getModuleId !== void 0));
|
|
72
|
-
}
|
|
73
|
-
function Me(e, t, i) {
|
|
74
|
-
var d = e.displayName;
|
|
75
|
-
if (d)
|
|
76
|
-
return d;
|
|
77
|
-
var m = t.displayName || t.name || "";
|
|
78
|
-
return m !== "" ? i + "(" + m + ")" : i;
|
|
79
|
-
}
|
|
80
|
-
function le(e) {
|
|
81
|
-
return e.displayName || "Context";
|
|
82
|
-
}
|
|
83
|
-
function L(e) {
|
|
84
|
-
if (e == null)
|
|
85
|
-
return null;
|
|
86
|
-
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")
|
|
87
|
-
return e.displayName || e.name || null;
|
|
88
|
-
if (typeof e == "string")
|
|
89
|
-
return e;
|
|
90
|
-
switch (e) {
|
|
91
|
-
case a:
|
|
44
|
+
var ee;
|
|
45
|
+
function me() {
|
|
46
|
+
return ee || (ee = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
|
+
function e(t) {
|
|
48
|
+
if (t == null) return null;
|
|
49
|
+
if (typeof t == "function")
|
|
50
|
+
return t.$$typeof === se ? null : t.displayName || t.name || null;
|
|
51
|
+
if (typeof t == "string") return t;
|
|
52
|
+
switch (t) {
|
|
53
|
+
case p:
|
|
92
54
|
return "Fragment";
|
|
93
|
-
case
|
|
94
|
-
return "Portal";
|
|
95
|
-
case l:
|
|
55
|
+
case S:
|
|
96
56
|
return "Profiler";
|
|
97
|
-
case
|
|
57
|
+
case R:
|
|
98
58
|
return "StrictMode";
|
|
99
|
-
case
|
|
59
|
+
case M:
|
|
100
60
|
return "Suspense";
|
|
101
|
-
case
|
|
61
|
+
case oe:
|
|
102
62
|
return "SuspenseList";
|
|
63
|
+
case ie:
|
|
64
|
+
return "Activity";
|
|
103
65
|
}
|
|
104
|
-
if (typeof
|
|
105
|
-
switch (
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
return
|
|
112
|
-
case
|
|
113
|
-
return
|
|
114
|
-
case
|
|
115
|
-
var
|
|
116
|
-
return
|
|
117
|
-
case
|
|
118
|
-
|
|
66
|
+
if (typeof t == "object")
|
|
67
|
+
switch (typeof t.tag == "number" && console.error(
|
|
68
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
69
|
+
), t.$$typeof) {
|
|
70
|
+
case b:
|
|
71
|
+
return "Portal";
|
|
72
|
+
case v:
|
|
73
|
+
return (t.displayName || "Context") + ".Provider";
|
|
74
|
+
case O:
|
|
75
|
+
return (t._context.displayName || "Context") + ".Consumer";
|
|
76
|
+
case V:
|
|
77
|
+
var f = t.render;
|
|
78
|
+
return t = t.displayName, t || (t = f.displayName || f.name || "", t = t !== "" ? "ForwardRef(" + t + ")" : "ForwardRef"), t;
|
|
79
|
+
case ae:
|
|
80
|
+
return f = t.displayName || null, f !== null ? f : e(t.type) || "Memo";
|
|
81
|
+
case G:
|
|
82
|
+
f = t._payload, t = t._init;
|
|
119
83
|
try {
|
|
120
|
-
return
|
|
84
|
+
return e(t(f));
|
|
121
85
|
} catch {
|
|
122
|
-
return null;
|
|
123
86
|
}
|
|
124
|
-
}
|
|
125
87
|
}
|
|
126
88
|
return null;
|
|
127
89
|
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}
|
|
131
|
-
me.__reactDisabledLog = !0;
|
|
132
|
-
function Ke() {
|
|
133
|
-
{
|
|
134
|
-
if (U === 0) {
|
|
135
|
-
fe = console.log, de = console.info, pe = console.warn, ve = console.error, ge = console.group, ye = console.groupCollapsed, he = console.groupEnd;
|
|
136
|
-
var e = {
|
|
137
|
-
configurable: !0,
|
|
138
|
-
enumerable: !0,
|
|
139
|
-
value: me,
|
|
140
|
-
writable: !0
|
|
141
|
-
};
|
|
142
|
-
Object.defineProperties(console, {
|
|
143
|
-
info: e,
|
|
144
|
-
log: e,
|
|
145
|
-
warn: e,
|
|
146
|
-
error: e,
|
|
147
|
-
group: e,
|
|
148
|
-
groupCollapsed: e,
|
|
149
|
-
groupEnd: e
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
U++;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
function Qe() {
|
|
156
|
-
{
|
|
157
|
-
if (U--, U === 0) {
|
|
158
|
-
var e = {
|
|
159
|
-
configurable: !0,
|
|
160
|
-
enumerable: !0,
|
|
161
|
-
writable: !0
|
|
162
|
-
};
|
|
163
|
-
Object.defineProperties(console, {
|
|
164
|
-
log: $({}, e, {
|
|
165
|
-
value: fe
|
|
166
|
-
}),
|
|
167
|
-
info: $({}, e, {
|
|
168
|
-
value: de
|
|
169
|
-
}),
|
|
170
|
-
warn: $({}, e, {
|
|
171
|
-
value: pe
|
|
172
|
-
}),
|
|
173
|
-
error: $({}, e, {
|
|
174
|
-
value: ve
|
|
175
|
-
}),
|
|
176
|
-
group: $({}, e, {
|
|
177
|
-
value: ge
|
|
178
|
-
}),
|
|
179
|
-
groupCollapsed: $({}, e, {
|
|
180
|
-
value: ye
|
|
181
|
-
}),
|
|
182
|
-
groupEnd: $({}, e, {
|
|
183
|
-
value: he
|
|
184
|
-
})
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
U < 0 && P("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
var Z = C.ReactCurrentDispatcher, ee;
|
|
191
|
-
function K(e, t, i) {
|
|
192
|
-
{
|
|
193
|
-
if (ee === void 0)
|
|
194
|
-
try {
|
|
195
|
-
throw Error();
|
|
196
|
-
} catch (m) {
|
|
197
|
-
var d = m.stack.trim().match(/\n( *(at )?)/);
|
|
198
|
-
ee = d && d[1] || "";
|
|
199
|
-
}
|
|
200
|
-
return `
|
|
201
|
-
` + ee + e;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
var re = !1, Q;
|
|
205
|
-
{
|
|
206
|
-
var Je = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
-
Q = new Je();
|
|
90
|
+
function n(t) {
|
|
91
|
+
return "" + t;
|
|
208
92
|
}
|
|
209
|
-
function
|
|
210
|
-
if (!e || re)
|
|
211
|
-
return "";
|
|
212
|
-
{
|
|
213
|
-
var i = Q.get(e);
|
|
214
|
-
if (i !== void 0)
|
|
215
|
-
return i;
|
|
216
|
-
}
|
|
217
|
-
var d;
|
|
218
|
-
re = !0;
|
|
219
|
-
var m = Error.prepareStackTrace;
|
|
220
|
-
Error.prepareStackTrace = void 0;
|
|
221
|
-
var b;
|
|
222
|
-
b = Z.current, Z.current = null, Ke();
|
|
93
|
+
function o(t) {
|
|
223
94
|
try {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
if (Object.defineProperty(y.prototype, "props", {
|
|
229
|
-
set: function() {
|
|
230
|
-
throw Error();
|
|
231
|
-
}
|
|
232
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
233
|
-
try {
|
|
234
|
-
Reflect.construct(y, []);
|
|
235
|
-
} catch (F) {
|
|
236
|
-
d = F;
|
|
237
|
-
}
|
|
238
|
-
Reflect.construct(e, [], y);
|
|
239
|
-
} else {
|
|
240
|
-
try {
|
|
241
|
-
y.call();
|
|
242
|
-
} catch (F) {
|
|
243
|
-
d = F;
|
|
244
|
-
}
|
|
245
|
-
e.call(y.prototype);
|
|
246
|
-
}
|
|
247
|
-
} else {
|
|
248
|
-
try {
|
|
249
|
-
throw Error();
|
|
250
|
-
} catch (F) {
|
|
251
|
-
d = F;
|
|
252
|
-
}
|
|
253
|
-
e();
|
|
254
|
-
}
|
|
255
|
-
} catch (F) {
|
|
256
|
-
if (F && d && typeof F.stack == "string") {
|
|
257
|
-
for (var g = F.stack.split(`
|
|
258
|
-
`), O = d.stack.split(`
|
|
259
|
-
`), _ = g.length - 1, S = O.length - 1; _ >= 1 && S >= 0 && g[_] !== O[S]; )
|
|
260
|
-
S--;
|
|
261
|
-
for (; _ >= 1 && S >= 0; _--, S--)
|
|
262
|
-
if (g[_] !== O[S]) {
|
|
263
|
-
if (_ !== 1 || S !== 1)
|
|
264
|
-
do
|
|
265
|
-
if (_--, S--, S < 0 || g[_] !== O[S]) {
|
|
266
|
-
var x = `
|
|
267
|
-
` + g[_].replace(" at new ", " at ");
|
|
268
|
-
return e.displayName && x.includes("<anonymous>") && (x = x.replace("<anonymous>", e.displayName)), typeof e == "function" && Q.set(e, x), x;
|
|
269
|
-
}
|
|
270
|
-
while (_ >= 1 && S >= 0);
|
|
271
|
-
break;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
} finally {
|
|
275
|
-
re = !1, Z.current = b, Qe(), Error.prepareStackTrace = m;
|
|
276
|
-
}
|
|
277
|
-
var W = e ? e.displayName || e.name : "", ke = W ? K(W) : "";
|
|
278
|
-
return typeof e == "function" && Q.set(e, ke), ke;
|
|
279
|
-
}
|
|
280
|
-
function Ge(e, t, i) {
|
|
281
|
-
return Ee(e, !1);
|
|
282
|
-
}
|
|
283
|
-
function qe(e) {
|
|
284
|
-
var t = e.prototype;
|
|
285
|
-
return !!(t && t.isReactComponent);
|
|
286
|
-
}
|
|
287
|
-
function J(e, t, i) {
|
|
288
|
-
if (e == null)
|
|
289
|
-
return "";
|
|
290
|
-
if (typeof e == "function")
|
|
291
|
-
return Ee(e, qe(e));
|
|
292
|
-
if (typeof e == "string")
|
|
293
|
-
return K(e);
|
|
294
|
-
switch (e) {
|
|
295
|
-
case v:
|
|
296
|
-
return K("Suspense");
|
|
297
|
-
case c:
|
|
298
|
-
return K("SuspenseList");
|
|
299
|
-
}
|
|
300
|
-
if (typeof e == "object")
|
|
301
|
-
switch (e.$$typeof) {
|
|
302
|
-
case u:
|
|
303
|
-
return Ge(e.render);
|
|
304
|
-
case R:
|
|
305
|
-
return J(e.type, t, i);
|
|
306
|
-
case h: {
|
|
307
|
-
var d = e, m = d._payload, b = d._init;
|
|
308
|
-
try {
|
|
309
|
-
return J(b(m), t, i);
|
|
310
|
-
} catch {
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
return "";
|
|
315
|
-
}
|
|
316
|
-
var G = Object.prototype.hasOwnProperty, be = {}, Re = C.ReactDebugCurrentFrame;
|
|
317
|
-
function q(e) {
|
|
318
|
-
if (e) {
|
|
319
|
-
var t = e._owner, i = J(e.type, e._source, t ? t.type : null);
|
|
320
|
-
Re.setExtraStackFrame(i);
|
|
321
|
-
} else
|
|
322
|
-
Re.setExtraStackFrame(null);
|
|
323
|
-
}
|
|
324
|
-
function Be(e, t, i, d, m) {
|
|
325
|
-
{
|
|
326
|
-
var b = Function.call.bind(G);
|
|
327
|
-
for (var y in e)
|
|
328
|
-
if (b(e, y)) {
|
|
329
|
-
var g = void 0;
|
|
330
|
-
try {
|
|
331
|
-
if (typeof e[y] != "function") {
|
|
332
|
-
var O = Error((d || "React class") + ": " + i + " type `" + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
333
|
-
throw O.name = "Invariant Violation", O;
|
|
334
|
-
}
|
|
335
|
-
g = e[y](t, y, d, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
|
-
} catch (_) {
|
|
337
|
-
g = _;
|
|
338
|
-
}
|
|
339
|
-
g && !(g instanceof Error) && (q(m), 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).", d || "React class", i, y, typeof g), q(null)), g instanceof Error && !(g.message in be) && (be[g.message] = !0, q(m), P("Failed %s type: %s", i, g.message), q(null));
|
|
340
|
-
}
|
|
95
|
+
n(t);
|
|
96
|
+
var f = !1;
|
|
97
|
+
} catch {
|
|
98
|
+
f = !0;
|
|
341
99
|
}
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
return i;
|
|
100
|
+
if (f) {
|
|
101
|
+
f = console;
|
|
102
|
+
var y = f.error, E = typeof Symbol == "function" && Symbol.toStringTag && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
103
|
+
return y.call(
|
|
104
|
+
f,
|
|
105
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
106
|
+
E
|
|
107
|
+
), n(t);
|
|
351
108
|
}
|
|
352
109
|
}
|
|
353
|
-
function
|
|
110
|
+
function a(t) {
|
|
111
|
+
if (t === p) return "<>";
|
|
112
|
+
if (typeof t == "object" && t !== null && t.$$typeof === G)
|
|
113
|
+
return "<...>";
|
|
354
114
|
try {
|
|
355
|
-
|
|
115
|
+
var f = e(t);
|
|
116
|
+
return f ? "<" + f + ">" : "<...>";
|
|
356
117
|
} catch {
|
|
357
|
-
return
|
|
118
|
+
return "<...>";
|
|
358
119
|
}
|
|
359
120
|
}
|
|
360
|
-
function
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
function _e(e) {
|
|
364
|
-
if (Ze(e))
|
|
365
|
-
return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Xe(e)), we(e);
|
|
121
|
+
function r() {
|
|
122
|
+
var t = D.A;
|
|
123
|
+
return t === null ? null : t.getOwner();
|
|
366
124
|
}
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
ref: !0,
|
|
370
|
-
__self: !0,
|
|
371
|
-
__source: !0
|
|
372
|
-
}, Ce, Pe;
|
|
373
|
-
function rr(e) {
|
|
374
|
-
if (G.call(e, "ref")) {
|
|
375
|
-
var t = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
376
|
-
if (t && t.isReactWarning)
|
|
377
|
-
return !1;
|
|
378
|
-
}
|
|
379
|
-
return e.ref !== void 0;
|
|
125
|
+
function i() {
|
|
126
|
+
return Error("react-stack-top-frame");
|
|
380
127
|
}
|
|
381
|
-
function
|
|
382
|
-
if (
|
|
383
|
-
var
|
|
384
|
-
if (
|
|
385
|
-
return !1;
|
|
128
|
+
function c(t) {
|
|
129
|
+
if (J.call(t, "key")) {
|
|
130
|
+
var f = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
131
|
+
if (f && f.isReactWarning) return !1;
|
|
386
132
|
}
|
|
387
|
-
return
|
|
388
|
-
}
|
|
389
|
-
function
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
Ce || (Ce = !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)", t));
|
|
396
|
-
};
|
|
397
|
-
i.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
398
|
-
get: i,
|
|
399
|
-
configurable: !0
|
|
400
|
-
});
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
function ar(e, t) {
|
|
404
|
-
{
|
|
405
|
-
var i = function() {
|
|
406
|
-
Pe || (Pe = !0, P("%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)", t));
|
|
407
|
-
};
|
|
408
|
-
i.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
409
|
-
get: i,
|
|
410
|
-
configurable: !0
|
|
411
|
-
});
|
|
133
|
+
return t.key !== void 0;
|
|
134
|
+
}
|
|
135
|
+
function u(t, f) {
|
|
136
|
+
function y() {
|
|
137
|
+
K || (K = !0, console.error(
|
|
138
|
+
"%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://react.dev/link/special-props)",
|
|
139
|
+
f
|
|
140
|
+
));
|
|
412
141
|
}
|
|
142
|
+
y.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
143
|
+
get: y,
|
|
144
|
+
configurable: !0
|
|
145
|
+
});
|
|
413
146
|
}
|
|
414
|
-
|
|
415
|
-
var
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
147
|
+
function l() {
|
|
148
|
+
var t = e(this.type);
|
|
149
|
+
return q[t] || (q[t] = !0, console.error(
|
|
150
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
151
|
+
)), t = this.props.ref, t !== void 0 ? t : null;
|
|
152
|
+
}
|
|
153
|
+
function d(t, f, y, E, T, _, z, U) {
|
|
154
|
+
return y = _.ref, t = {
|
|
155
|
+
$$typeof: m,
|
|
156
|
+
type: t,
|
|
157
|
+
key: f,
|
|
158
|
+
props: _,
|
|
159
|
+
_owner: T
|
|
160
|
+
}, (y !== void 0 ? y : null) !== null ? Object.defineProperty(t, "ref", {
|
|
161
|
+
enumerable: !1,
|
|
162
|
+
get: l
|
|
163
|
+
}) : Object.defineProperty(t, "ref", { enumerable: !1, value: null }), t._store = {}, Object.defineProperty(t._store, "validated", {
|
|
427
164
|
configurable: !1,
|
|
428
165
|
enumerable: !1,
|
|
429
166
|
writable: !0,
|
|
430
|
-
value:
|
|
431
|
-
}), Object.defineProperty(
|
|
167
|
+
value: 0
|
|
168
|
+
}), Object.defineProperty(t, "_debugInfo", {
|
|
432
169
|
configurable: !1,
|
|
433
170
|
enumerable: !1,
|
|
434
|
-
writable: !
|
|
435
|
-
value:
|
|
436
|
-
}), Object.defineProperty(
|
|
171
|
+
writable: !0,
|
|
172
|
+
value: null
|
|
173
|
+
}), Object.defineProperty(t, "_debugStack", {
|
|
437
174
|
configurable: !1,
|
|
438
175
|
enumerable: !1,
|
|
439
|
-
writable: !
|
|
440
|
-
value:
|
|
441
|
-
}), Object.
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
if (e)
|
|
479
|
-
return `
|
|
480
|
-
|
|
481
|
-
Check the render method of \`` + e + "`.";
|
|
482
|
-
}
|
|
483
|
-
return "";
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
function cr(e) {
|
|
487
|
-
return "";
|
|
488
|
-
}
|
|
489
|
-
var Oe = {};
|
|
490
|
-
function ur(e) {
|
|
491
|
-
{
|
|
492
|
-
var t = Te();
|
|
493
|
-
if (!t) {
|
|
494
|
-
var i = typeof e == "string" ? e : e.displayName || e.name;
|
|
495
|
-
i && (t = `
|
|
496
|
-
|
|
497
|
-
Check the top-level render call using <` + i + ">.");
|
|
498
|
-
}
|
|
499
|
-
return t;
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
function Ae(e, t) {
|
|
503
|
-
{
|
|
504
|
-
if (!e._store || e._store.validated || e.key != null)
|
|
505
|
-
return;
|
|
506
|
-
e._store.validated = !0;
|
|
507
|
-
var i = ur(t);
|
|
508
|
-
if (Oe[i])
|
|
509
|
-
return;
|
|
510
|
-
Oe[i] = !0;
|
|
511
|
-
var d = "";
|
|
512
|
-
e && e._owner && e._owner !== ne.current && (d = " It was passed a child from " + L(e._owner.type) + "."), Y(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.', i, d), Y(null);
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
function xe(e, t) {
|
|
516
|
-
{
|
|
517
|
-
if (typeof e != "object")
|
|
518
|
-
return;
|
|
519
|
-
if (te(e))
|
|
520
|
-
for (var i = 0; i < e.length; i++) {
|
|
521
|
-
var d = e[i];
|
|
522
|
-
ae(d) && Ae(d, t);
|
|
523
|
-
}
|
|
524
|
-
else if (ae(e))
|
|
525
|
-
e._store && (e._store.validated = !0);
|
|
526
|
-
else if (e) {
|
|
527
|
-
var m = A(e);
|
|
528
|
-
if (typeof m == "function" && m !== e.entries)
|
|
529
|
-
for (var b = m.call(e), y; !(y = b.next()).done; )
|
|
530
|
-
ae(y.value) && Ae(y.value, t);
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
function lr(e) {
|
|
535
|
-
{
|
|
536
|
-
var t = e.type;
|
|
537
|
-
if (t == null || typeof t == "string")
|
|
538
|
-
return;
|
|
539
|
-
var i;
|
|
540
|
-
if (typeof t == "function")
|
|
541
|
-
i = t.propTypes;
|
|
542
|
-
else if (typeof t == "object" && (t.$$typeof === u || // Note: Memo only checks outer props here.
|
|
543
|
-
// Inner props are checked in the reconciler.
|
|
544
|
-
t.$$typeof === R))
|
|
545
|
-
i = t.propTypes;
|
|
546
|
-
else
|
|
547
|
-
return;
|
|
548
|
-
if (i) {
|
|
549
|
-
var d = L(t);
|
|
550
|
-
Be(i, e.props, "prop", d, e);
|
|
551
|
-
} else if (t.PropTypes !== void 0 && !oe) {
|
|
552
|
-
oe = !0;
|
|
553
|
-
var m = L(t);
|
|
554
|
-
P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", m || "Unknown");
|
|
555
|
-
}
|
|
556
|
-
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
function fr(e) {
|
|
560
|
-
{
|
|
561
|
-
for (var t = Object.keys(e.props), i = 0; i < t.length; i++) {
|
|
562
|
-
var d = t[i];
|
|
563
|
-
if (d !== "children" && d !== "key") {
|
|
564
|
-
Y(e), P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", d), Y(null);
|
|
565
|
-
break;
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
e.ref !== null && (Y(e), P("Invalid attribute `ref` supplied to `React.Fragment`."), Y(null));
|
|
176
|
+
writable: !0,
|
|
177
|
+
value: z
|
|
178
|
+
}), Object.defineProperty(t, "_debugTask", {
|
|
179
|
+
configurable: !1,
|
|
180
|
+
enumerable: !1,
|
|
181
|
+
writable: !0,
|
|
182
|
+
value: U
|
|
183
|
+
}), Object.freeze && (Object.freeze(t.props), Object.freeze(t)), t;
|
|
184
|
+
}
|
|
185
|
+
function s(t, f, y, E, T, _, z, U) {
|
|
186
|
+
var w = f.children;
|
|
187
|
+
if (w !== void 0)
|
|
188
|
+
if (E)
|
|
189
|
+
if (ce(w)) {
|
|
190
|
+
for (E = 0; E < w.length; E++)
|
|
191
|
+
h(w[E]);
|
|
192
|
+
Object.freeze && Object.freeze(w);
|
|
193
|
+
} else
|
|
194
|
+
console.error(
|
|
195
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
196
|
+
);
|
|
197
|
+
else h(w);
|
|
198
|
+
if (J.call(f, "key")) {
|
|
199
|
+
w = e(t);
|
|
200
|
+
var k = Object.keys(f).filter(function(ue) {
|
|
201
|
+
return ue !== "key";
|
|
202
|
+
});
|
|
203
|
+
E = 0 < k.length ? "{key: someKey, " + k.join(": ..., ") + ": ...}" : "{key: someKey}", H[w + E] || (k = 0 < k.length ? "{" + k.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
204
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
205
|
+
let props = %s;
|
|
206
|
+
<%s {...props} />
|
|
207
|
+
React keys must be passed directly to JSX without using spread:
|
|
208
|
+
let props = %s;
|
|
209
|
+
<%s key={someKey} {...props} />`,
|
|
210
|
+
E,
|
|
211
|
+
w,
|
|
212
|
+
k,
|
|
213
|
+
w
|
|
214
|
+
), H[w + E] = !0);
|
|
569
215
|
}
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
return e === a ? fr(S) : lr(S), S;
|
|
216
|
+
if (w = null, y !== void 0 && (o(y), w = "" + y), c(f) && (o(f.key), w = "" + f.key), "key" in f) {
|
|
217
|
+
y = {};
|
|
218
|
+
for (var W in f)
|
|
219
|
+
W !== "key" && (y[W] = f[W]);
|
|
220
|
+
} else y = f;
|
|
221
|
+
return w && u(
|
|
222
|
+
y,
|
|
223
|
+
typeof t == "function" ? t.displayName || t.name || "Unknown" : t
|
|
224
|
+
), d(
|
|
225
|
+
t,
|
|
226
|
+
w,
|
|
227
|
+
_,
|
|
228
|
+
T,
|
|
229
|
+
r(),
|
|
230
|
+
y,
|
|
231
|
+
z,
|
|
232
|
+
U
|
|
233
|
+
);
|
|
234
|
+
}
|
|
235
|
+
function h(t) {
|
|
236
|
+
typeof t == "object" && t !== null && t.$$typeof === m && t._store && (t._store.validated = 1);
|
|
237
|
+
}
|
|
238
|
+
var g = le, m = Symbol.for("react.transitional.element"), b = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), R = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), O = Symbol.for("react.consumer"), v = Symbol.for("react.context"), V = Symbol.for("react.forward_ref"), M = Symbol.for("react.suspense"), oe = Symbol.for("react.suspense_list"), ae = Symbol.for("react.memo"), G = Symbol.for("react.lazy"), ie = Symbol.for("react.activity"), se = Symbol.for("react.client.reference"), D = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, J = Object.prototype.hasOwnProperty, ce = Array.isArray, Y = console.createTask ? console.createTask : function() {
|
|
239
|
+
return null;
|
|
240
|
+
};
|
|
241
|
+
g = {
|
|
242
|
+
"react-stack-bottom-frame": function(t) {
|
|
243
|
+
return t();
|
|
599
244
|
}
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
245
|
+
};
|
|
246
|
+
var K, q = {}, B = g["react-stack-bottom-frame"].bind(
|
|
247
|
+
g,
|
|
248
|
+
i
|
|
249
|
+
)(), X = Y(a(i)), H = {};
|
|
250
|
+
I.Fragment = p, I.jsx = function(t, f, y, E, T) {
|
|
251
|
+
var _ = 1e4 > D.recentlyCreatedOwnerStacks++;
|
|
252
|
+
return s(
|
|
253
|
+
t,
|
|
254
|
+
f,
|
|
255
|
+
y,
|
|
256
|
+
!1,
|
|
257
|
+
E,
|
|
258
|
+
T,
|
|
259
|
+
_ ? Error("react-stack-top-frame") : B,
|
|
260
|
+
_ ? Y(a(t)) : X
|
|
261
|
+
);
|
|
262
|
+
}, I.jsxs = function(t, f, y, E, T) {
|
|
263
|
+
var _ = 1e4 > D.recentlyCreatedOwnerStacks++;
|
|
264
|
+
return s(
|
|
265
|
+
t,
|
|
266
|
+
f,
|
|
267
|
+
y,
|
|
268
|
+
!0,
|
|
269
|
+
E,
|
|
270
|
+
T,
|
|
271
|
+
_ ? Error("react-stack-top-frame") : B,
|
|
272
|
+
_ ? Y(a(t)) : X
|
|
273
|
+
);
|
|
274
|
+
};
|
|
275
|
+
}()), I;
|
|
610
276
|
}
|
|
611
|
-
var
|
|
612
|
-
function
|
|
613
|
-
return
|
|
277
|
+
var te;
|
|
278
|
+
function ye() {
|
|
279
|
+
return te || (te = 1, process.env.NODE_ENV === "production" ? L.exports = ge() : L.exports = me()), L.exports;
|
|
614
280
|
}
|
|
615
|
-
var
|
|
616
|
-
const
|
|
617
|
-
const
|
|
281
|
+
var P = ye();
|
|
282
|
+
const A = de({}), Ne = ({ children: e, apiURL: n, libraries: o, localStorageKeys: a }) => {
|
|
283
|
+
const r = Q(
|
|
618
284
|
() => ({
|
|
619
285
|
apiURL: n,
|
|
620
286
|
libraries: o,
|
|
@@ -622,35 +288,35 @@ const I = yr({}), Yr = ({ children: r, apiURL: n, libraries: o, localStorageKeys
|
|
|
622
288
|
}),
|
|
623
289
|
[n, o, a]
|
|
624
290
|
);
|
|
625
|
-
return /* @__PURE__ */
|
|
626
|
-
},
|
|
627
|
-
const { libraries:
|
|
628
|
-
if (!
|
|
291
|
+
return /* @__PURE__ */ P.jsx(A.Provider, { value: r, children: e });
|
|
292
|
+
}, he = "user", Le = ({ Fallback: e, isLogged: n, loginPath: o = "/login", redirect401Path: a = "/login", ...r }) => {
|
|
293
|
+
const { libraries: i, localStorageKeys: c } = j(A), u = r?.reactRouter || i?.reactRouter, l = r?.axios || i?.axios, d = r?.localStorageKey || c?.user || he;
|
|
294
|
+
if (!u)
|
|
629
295
|
throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
630
|
-
const [
|
|
631
|
-
return
|
|
632
|
-
|
|
633
|
-
(
|
|
634
|
-
async (
|
|
296
|
+
const [s, h] = ne(null), { useLocation: g, Navigate: m, Outlet: b } = u, p = g(), R = fe(!1), S = typeof n == "function" ? n() : !!n, O = typeof S == "boolean" ? S : S?.isLogged;
|
|
297
|
+
return C(() => {
|
|
298
|
+
R.current || (R.current = !0, l.interceptors.response.use(
|
|
299
|
+
(v) => v,
|
|
300
|
+
async (v) => (typeof v == "object" && v && "response" in v && v.response && typeof v.response == "object" && "status" in v.response && v.response && typeof v.response == "object" && "status" in v.response && v?.response?.status === 401 && (l.defaults.headers.common.Authorization = null, typeof window < "u" && window.localStorage && localStorage.removeItem(d), h(a)), Promise.reject(v))
|
|
635
301
|
));
|
|
636
|
-
}, [
|
|
637
|
-
},
|
|
638
|
-
const { libraries: o } =
|
|
302
|
+
}, [l.defaults.headers.common, l.interceptors.response, d, a]), O && !s ? /* @__PURE__ */ P.jsx(pe, { fallback: e, children: p.state?.from?.state && p.state?.from?.pathname === o ? /* @__PURE__ */ P.jsx(m, { to: p.state.from.state.from.pathname + p.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ P.jsx(b, {}) }) : /* @__PURE__ */ P.jsx(m, { to: o + p.search, state: { from: p }, replace: !0 });
|
|
303
|
+
}, Fe = ({ data: e, ...n }) => {
|
|
304
|
+
const { libraries: o } = j(A), a = n?.reactRouter || o?.reactRouter, r = n?.gtm || o?.gtm;
|
|
639
305
|
if (!a)
|
|
640
306
|
throw new Error(
|
|
641
307
|
"React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView."
|
|
642
308
|
);
|
|
643
|
-
if (!
|
|
309
|
+
if (!r)
|
|
644
310
|
throw new Error("GTM is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView.");
|
|
645
|
-
const { useGoogleTagManager:
|
|
646
|
-
return
|
|
647
|
-
|
|
311
|
+
const { useGoogleTagManager: i } = r, { useLocation: c, Outlet: u } = a, { pathname: l } = c(), { sendEvent: d } = i();
|
|
312
|
+
return C(() => {
|
|
313
|
+
d({
|
|
648
314
|
event: "pageView",
|
|
649
|
-
pathname:
|
|
650
|
-
...
|
|
315
|
+
pathname: l,
|
|
316
|
+
...e
|
|
651
317
|
});
|
|
652
|
-
}, [
|
|
653
|
-
},
|
|
318
|
+
}, [e, l, d]), /* @__PURE__ */ P.jsx(u, {});
|
|
319
|
+
}, N = (() => {
|
|
654
320
|
try {
|
|
655
321
|
return typeof global == "object" && global !== null && ("HermesInternal" in global || // Hermes JS engine
|
|
656
322
|
"__fbBatchedBridge" in global || // RN Bridge
|
|
@@ -658,30 +324,30 @@ const I = yr({}), Yr = ({ children: r, apiURL: n, libraries: o, localStorageKeys
|
|
|
658
324
|
} catch {
|
|
659
325
|
return !1;
|
|
660
326
|
}
|
|
661
|
-
})(),
|
|
662
|
-
tokenTypeKey:
|
|
327
|
+
})(), ve = "user", $e = ({
|
|
328
|
+
tokenTypeKey: e = "tokenType",
|
|
663
329
|
tokenKey: n = "accessToken",
|
|
664
330
|
postContentType: o = "application/json",
|
|
665
331
|
...a
|
|
666
332
|
}) => {
|
|
667
|
-
const { apiURL:
|
|
668
|
-
if (!
|
|
333
|
+
const { apiURL: r = a.apiURL, libraries: i, localStorageKeys: c } = j(A), u = a?.userLocalStorageKey || c?.user || ve, l = a?.axios || i?.axios;
|
|
334
|
+
if (!l)
|
|
669
335
|
throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
670
|
-
if (!
|
|
336
|
+
if (!l?.defaults || N)
|
|
671
337
|
return null;
|
|
672
338
|
if (typeof window < "u" && window.localStorage) {
|
|
673
|
-
const
|
|
674
|
-
|
|
339
|
+
const d = localStorage.getItem(u), s = d ? JSON.parse(d) : null, h = s?.[e] ? s[e] : null, g = s?.[n] ? s[n] : null, m = d ? `${h} ${g}` : null;
|
|
340
|
+
m && (l.defaults.headers.common.Authorization = m);
|
|
675
341
|
}
|
|
676
|
-
return
|
|
677
|
-
},
|
|
678
|
-
const { libraries: a } =
|
|
679
|
-
if (
|
|
342
|
+
return l.defaults.baseURL = r, l.defaults.headers.post["Content-Type"] = o, null;
|
|
343
|
+
}, De = ({ debug: e, resources: n, ...o }) => {
|
|
344
|
+
const { libraries: a } = j(A), r = o?.i18 || a?.i18, { i18next: i, initReactI18next: c, languageDetector: u } = r || {};
|
|
345
|
+
if (N)
|
|
680
346
|
return null;
|
|
681
|
-
if (!
|
|
347
|
+
if (!r)
|
|
682
348
|
throw new Error("i18 is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
683
|
-
return
|
|
684
|
-
debug:
|
|
349
|
+
return i?.isInitialized || (i.use(u).use(c).init({
|
|
350
|
+
debug: e,
|
|
685
351
|
fallbackLng: "en",
|
|
686
352
|
interpolation: {
|
|
687
353
|
escapeValue: !1
|
|
@@ -694,37 +360,37 @@ const I = yr({}), Yr = ({ children: r, apiURL: n, libraries: o, localStorageKeys
|
|
|
694
360
|
resources: n,
|
|
695
361
|
returnNull: !1
|
|
696
362
|
}).then(() => {
|
|
697
|
-
document.documentElement.lang !==
|
|
698
|
-
}),
|
|
699
|
-
document.documentElement.setAttribute("lang",
|
|
363
|
+
document.documentElement.lang !== i.resolvedLanguage && i.resolvedLanguage && document.documentElement.setAttribute("lang", i.resolvedLanguage);
|
|
364
|
+
}), i.on("languageChanged", (l) => {
|
|
365
|
+
document.documentElement.setAttribute("lang", l);
|
|
700
366
|
})), null;
|
|
701
|
-
},
|
|
702
|
-
dsn:
|
|
367
|
+
}, Ye = ({
|
|
368
|
+
dsn: e,
|
|
703
369
|
integrations: n,
|
|
704
370
|
tracesSampleRate: o,
|
|
705
371
|
replaysSessionSampleRate: a,
|
|
706
|
-
replaysOnErrorSampleRate:
|
|
707
|
-
tracePropagationTargets:
|
|
708
|
-
ignoreErrors:
|
|
709
|
-
debug:
|
|
710
|
-
environment:
|
|
711
|
-
release:
|
|
712
|
-
...
|
|
372
|
+
replaysOnErrorSampleRate: r,
|
|
373
|
+
tracePropagationTargets: i,
|
|
374
|
+
ignoreErrors: c,
|
|
375
|
+
debug: u,
|
|
376
|
+
environment: l,
|
|
377
|
+
release: d,
|
|
378
|
+
...s
|
|
713
379
|
}) => {
|
|
714
|
-
const { libraries:
|
|
715
|
-
if (!
|
|
380
|
+
const { libraries: h } = j(A), g = s?.sentry || h?.sentry, m = s?.reactRouter || h?.reactRouter;
|
|
381
|
+
if (!g)
|
|
716
382
|
throw new Error("Sentry is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
717
|
-
if (!
|
|
383
|
+
if (!m)
|
|
718
384
|
throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
719
|
-
if (
|
|
385
|
+
if (g.isInitialized())
|
|
720
386
|
return null;
|
|
721
|
-
const { createRoutesFromChildren:
|
|
722
|
-
return (
|
|
723
|
-
debug:
|
|
724
|
-
dsn:
|
|
725
|
-
environment:
|
|
387
|
+
const { createRoutesFromChildren: b, matchRoutes: p, useLocation: R, useNavigationType: S } = m;
|
|
388
|
+
return (u || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && g.init({
|
|
389
|
+
debug: u,
|
|
390
|
+
dsn: e,
|
|
391
|
+
environment: l || "production",
|
|
726
392
|
ignoreErrors: [
|
|
727
|
-
...
|
|
393
|
+
...c || [],
|
|
728
394
|
/dynamically imported module/,
|
|
729
395
|
/Cannot read properties of undefined \(reading 'default'\)/,
|
|
730
396
|
/Loading chunk \d+ failed/,
|
|
@@ -733,214 +399,214 @@ const I = yr({}), Yr = ({ children: r, apiURL: n, libraries: o, localStorageKeys
|
|
|
733
399
|
/vite:preloadError/
|
|
734
400
|
],
|
|
735
401
|
integrations: [
|
|
736
|
-
|
|
737
|
-
createRoutesFromChildren:
|
|
738
|
-
matchRoutes:
|
|
739
|
-
useEffect:
|
|
740
|
-
useLocation:
|
|
741
|
-
useNavigationType:
|
|
402
|
+
g.reactRouterV6BrowserTracingIntegration({
|
|
403
|
+
createRoutesFromChildren: b,
|
|
404
|
+
matchRoutes: p,
|
|
405
|
+
useEffect: C,
|
|
406
|
+
useLocation: R,
|
|
407
|
+
useNavigationType: S
|
|
742
408
|
}),
|
|
743
409
|
...n || []
|
|
744
410
|
],
|
|
745
|
-
release:
|
|
746
|
-
replaysOnErrorSampleRate:
|
|
411
|
+
release: d,
|
|
412
|
+
replaysOnErrorSampleRate: r || 1,
|
|
747
413
|
replaysSessionSampleRate: a || 0.1,
|
|
748
|
-
tracePropagationTargets:
|
|
414
|
+
tracePropagationTargets: i,
|
|
749
415
|
tracesSampleRate: o || 1
|
|
750
416
|
}), null;
|
|
751
|
-
},
|
|
752
|
-
const o =
|
|
417
|
+
}, ze = ({ IMaskMixin: e, ...n }) => {
|
|
418
|
+
const o = Q(
|
|
753
419
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
754
|
-
() =>
|
|
755
|
-
[
|
|
420
|
+
() => e(({ TextField: a, ...r }) => /* @__PURE__ */ P.jsx(a, { ...r })),
|
|
421
|
+
[e]
|
|
756
422
|
);
|
|
757
|
-
return /* @__PURE__ */
|
|
758
|
-
},
|
|
759
|
-
const { libraries: o } =
|
|
423
|
+
return /* @__PURE__ */ P.jsx(o, { ...n });
|
|
424
|
+
}, Ue = ({ language: e, ...n }) => {
|
|
425
|
+
const { libraries: o } = j(A), a = n?.dayjs || o?.dayjs, r = n?.plugin || o?.dayjsPlugin;
|
|
760
426
|
if (!a)
|
|
761
427
|
throw new Error(
|
|
762
428
|
"Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props of InitializeDaysJSConfig."
|
|
763
429
|
);
|
|
764
|
-
return
|
|
430
|
+
return C(() => {
|
|
765
431
|
(async () => {
|
|
766
|
-
const
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
}), await import("dayjs/locale/en"), await import("dayjs/locale/fr"), a.locale(
|
|
432
|
+
const c = e || navigator.language?.slice(0, 2) || "en";
|
|
433
|
+
r && r.forEach((u) => {
|
|
434
|
+
u && a.extend(u);
|
|
435
|
+
}), await import("dayjs/locale/en"), await import("dayjs/locale/fr"), a.locale(c);
|
|
770
436
|
})().then();
|
|
771
|
-
}, [a,
|
|
772
|
-
},
|
|
773
|
-
if (
|
|
437
|
+
}, [a, r, e]), null;
|
|
438
|
+
}, We = () => (C(() => {
|
|
439
|
+
if (N)
|
|
774
440
|
return;
|
|
775
|
-
const
|
|
441
|
+
const e = (n) => {
|
|
776
442
|
try {
|
|
777
443
|
n.preventDefault(), n.stopPropagation(), n.stopImmediatePropagation(), window.location.reload();
|
|
778
444
|
} catch {
|
|
779
445
|
}
|
|
780
446
|
};
|
|
781
|
-
return window.addEventListener("vite:preloadError",
|
|
782
|
-
window.removeEventListener("vite:preloadError",
|
|
447
|
+
return window.addEventListener("vite:preloadError", e), () => {
|
|
448
|
+
window.removeEventListener("vite:preloadError", e);
|
|
783
449
|
};
|
|
784
|
-
}, []), null),
|
|
785
|
-
children:
|
|
450
|
+
}, []), null), Ee = (e) => e && typeof e == "function", we = (e) => e && typeof e == "function", Qe = ({
|
|
451
|
+
children: e,
|
|
786
452
|
defaultQueriesOptions: n,
|
|
787
453
|
defaultMutationsOptions: o,
|
|
788
454
|
...a
|
|
789
455
|
}) => {
|
|
790
|
-
const { libraries:
|
|
791
|
-
if (!
|
|
456
|
+
const { libraries: r } = j(A), i = a?.QueryClient || r?.reactQuery?.QueryClient, c = a?.QueryClientProvider || r?.reactQuery?.QueryClientProvider;
|
|
457
|
+
if (!i)
|
|
792
458
|
throw new Error("QueryClient is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
793
|
-
if (!
|
|
459
|
+
if (!c)
|
|
794
460
|
throw new Error("QueryClientProvider is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
795
|
-
if (!
|
|
461
|
+
if (!Ee(c))
|
|
796
462
|
throw new Error("Provided QueryClientProvider dependencies are not valid.");
|
|
797
|
-
if (!
|
|
463
|
+
if (!we(i))
|
|
798
464
|
throw new Error("Provided QueryClient dependencies are not valid.");
|
|
799
|
-
const
|
|
465
|
+
const u = new i({
|
|
800
466
|
defaultOptions: {
|
|
801
467
|
mutations: {
|
|
802
468
|
...o
|
|
803
469
|
},
|
|
804
470
|
queries: {
|
|
805
|
-
getNextPageParam: (
|
|
471
|
+
getNextPageParam: (l, d, s) => l.length + (s || 0),
|
|
806
472
|
refetchOnWindowFocus: !1,
|
|
807
473
|
retry: 3,
|
|
808
474
|
...n
|
|
809
475
|
}
|
|
810
476
|
}
|
|
811
477
|
});
|
|
812
|
-
return /* @__PURE__ */
|
|
813
|
-
},
|
|
814
|
-
const { libraries: n } =
|
|
815
|
-
(
|
|
816
|
-
if (
|
|
817
|
-
const { response:
|
|
818
|
-
if (
|
|
819
|
-
return String(
|
|
820
|
-
if (
|
|
821
|
-
return String(
|
|
822
|
-
if (
|
|
823
|
-
return String(
|
|
824
|
-
if (
|
|
825
|
-
const { detail:
|
|
826
|
-
if (Array.isArray(
|
|
827
|
-
const { msg:
|
|
828
|
-
if (typeof
|
|
829
|
-
return String(
|
|
478
|
+
return /* @__PURE__ */ P.jsx(c, { client: u, children: e });
|
|
479
|
+
}, Ve = (e) => {
|
|
480
|
+
const { libraries: n } = j(A), o = e?.i18 || n?.i18, a = e?.i18?.translateFunction || n?.i18?.translateFunction, r = o?.i18next?.t || a || ((d) => d), { unknownErrorTranslationKey: i = "error.unknownError" } = e || {}, c = r(i), u = $(
|
|
481
|
+
(d) => {
|
|
482
|
+
if (d && typeof d == "object" && "response" in d) {
|
|
483
|
+
const { response: s } = d || {};
|
|
484
|
+
if (s && typeof s == "object" && "reason" in s)
|
|
485
|
+
return String(s.reason);
|
|
486
|
+
if (s && typeof s == "object" && "data" in s && s.data && typeof s.data == "object" && "reason" in s.data)
|
|
487
|
+
return String(s.data.reason);
|
|
488
|
+
if (s && typeof s == "object" && "data" in s && s.data && typeof s.data == "object" && "message" in s.data)
|
|
489
|
+
return String(s.data.message);
|
|
490
|
+
if (s && typeof s == "object" && "data" in s && s.data && typeof s.data == "object" && "detail" in s.data) {
|
|
491
|
+
const { detail: h } = s.data;
|
|
492
|
+
if (Array.isArray(h) && h.length > 0 && typeof h[0] == "object" && h[0] !== null && "msg" in h[0]) {
|
|
493
|
+
const { msg: g } = h[0];
|
|
494
|
+
if (typeof g == "string")
|
|
495
|
+
return String(g);
|
|
830
496
|
}
|
|
831
497
|
}
|
|
832
498
|
}
|
|
833
|
-
return
|
|
499
|
+
return d instanceof Error ? d.message : c;
|
|
834
500
|
},
|
|
835
|
-
[
|
|
501
|
+
[c]
|
|
836
502
|
);
|
|
837
|
-
return { getErrorCode:
|
|
838
|
-
const { response:
|
|
839
|
-
return
|
|
840
|
-
}, []), printError:
|
|
841
|
-
},
|
|
842
|
-
data:
|
|
503
|
+
return { getErrorCode: $((d) => {
|
|
504
|
+
const { response: s } = d || {};
|
|
505
|
+
return s?.error_code ? String(s?.error_code) : s?.data?.error_code ? String(s?.data?.error_code) : s?.error_code ? String(s?.error_code) : s?.data?.error_code ? String(s.data.error_code) : "unknown_error_code";
|
|
506
|
+
}, []), printError: u };
|
|
507
|
+
}, Me = ({
|
|
508
|
+
data: e,
|
|
843
509
|
fetchNextPage: n,
|
|
844
510
|
isFetchingNextPage: o,
|
|
845
511
|
isInitialLoading: a,
|
|
846
|
-
isLoading:
|
|
847
|
-
enabled:
|
|
512
|
+
isLoading: r,
|
|
513
|
+
enabled: i = !0
|
|
848
514
|
}) => {
|
|
849
|
-
const
|
|
850
|
-
async (
|
|
851
|
-
o || !
|
|
515
|
+
const c = $(
|
|
516
|
+
async (l) => {
|
|
517
|
+
o || !i || await n({ pageParam: l?.pageParam || l.visibleRowsCount });
|
|
852
518
|
},
|
|
853
|
-
[
|
|
854
|
-
),
|
|
855
|
-
if (
|
|
856
|
-
return
|
|
857
|
-
}, [
|
|
519
|
+
[i, n, o]
|
|
520
|
+
), u = Q(() => {
|
|
521
|
+
if (e)
|
|
522
|
+
return e.pages.reduce((l, d) => [...l, ...d], []);
|
|
523
|
+
}, [e]);
|
|
858
524
|
return {
|
|
859
|
-
fetchNextPageOnRowsScrollEnd:
|
|
860
|
-
isLoading: o ||
|
|
525
|
+
fetchNextPageOnRowsScrollEnd: c,
|
|
526
|
+
isLoading: o || r,
|
|
861
527
|
loadingVariant: a ? "skeleton" : "linear",
|
|
862
|
-
rows:
|
|
528
|
+
rows: u
|
|
863
529
|
};
|
|
864
|
-
},
|
|
865
|
-
const { libraries: n } =
|
|
530
|
+
}, Ge = (e) => {
|
|
531
|
+
const { libraries: n } = j(A), o = e?.axios || n?.axios, a = e?.localStorageKey || "user";
|
|
866
532
|
if (!o)
|
|
867
533
|
throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in params of useAuth.");
|
|
868
|
-
const
|
|
869
|
-
({ tokenType:
|
|
870
|
-
o.defaults.headers.common.Authorization = `${
|
|
534
|
+
const r = $(
|
|
535
|
+
({ tokenType: c, accessToken: u }) => {
|
|
536
|
+
o.defaults.headers.common.Authorization = `${c} ${u}`;
|
|
871
537
|
},
|
|
872
538
|
[o.defaults.headers.common]
|
|
873
|
-
),
|
|
539
|
+
), i = () => {
|
|
874
540
|
o.defaults.headers.common.Authorization = null;
|
|
875
541
|
};
|
|
876
|
-
return
|
|
877
|
-
if (
|
|
542
|
+
return C(() => {
|
|
543
|
+
if (N)
|
|
878
544
|
return;
|
|
879
|
-
const
|
|
880
|
-
if (
|
|
545
|
+
const c = ({ newValue: u, key: l }) => {
|
|
546
|
+
if (l === a && u)
|
|
881
547
|
try {
|
|
882
|
-
const { accessToken:
|
|
883
|
-
|
|
884
|
-
} catch (
|
|
885
|
-
console.error("Failed to parse newValue from localStorage:",
|
|
548
|
+
const { accessToken: d, tokenType: s } = JSON.parse(u);
|
|
549
|
+
r({ accessToken: d, tokenType: s });
|
|
550
|
+
} catch (d) {
|
|
551
|
+
console.error("Failed to parse newValue from localStorage:", d);
|
|
886
552
|
}
|
|
887
553
|
};
|
|
888
|
-
return window.addEventListener("storage",
|
|
889
|
-
window.removeEventListener("storage",
|
|
554
|
+
return window.addEventListener("storage", c), () => {
|
|
555
|
+
window.removeEventListener("storage", c);
|
|
890
556
|
};
|
|
891
|
-
}, [a,
|
|
892
|
-
clearAuthenticationToken:
|
|
893
|
-
setAuthenticationToken:
|
|
557
|
+
}, [a, r]), {
|
|
558
|
+
clearAuthenticationToken: i,
|
|
559
|
+
setAuthenticationToken: r
|
|
894
560
|
};
|
|
895
|
-
},
|
|
896
|
-
const { fractionDigits: o = 0, metric: a = "km" } = n || {},
|
|
897
|
-
return Number.isNaN(
|
|
898
|
-
},
|
|
899
|
-
if (!
|
|
561
|
+
}, be = ({ library: e, date: n, format: o = "ll" }) => e(n).format(o), Re = (e, n) => {
|
|
562
|
+
const { fractionDigits: o = 0, metric: a = "km" } = n || {}, r = Number(e);
|
|
563
|
+
return Number.isNaN(r) ? `0${a}` : `${r.toFixed(o)}${a}`;
|
|
564
|
+
}, Se = (e) => !e || typeof e != "string" ? "" : e.replace(/_/g, " ").toLowerCase().split(" ").map((o) => o.length > 0 ? o.charAt(0).toUpperCase() + o.slice(1) : o).join(" "), Ae = (e) => e?.startsWith("/") ? e?.startsWith("/files") ? e : `/files${e}` : e?.startsWith("files") ? `/${e}` : `/files/${e}`, je = ({ path: e, size: n, apiURL: o }) => {
|
|
565
|
+
if (!e)
|
|
900
566
|
return "";
|
|
901
|
-
const a =
|
|
902
|
-
return typeof n == "number" &&
|
|
903
|
-
},
|
|
904
|
-
const { apiURL: n, libraries: o } =
|
|
567
|
+
const a = Ae(e), r = `${o}${a}`, i = r.match(/\.(jpeg|jpg|png|gif|bmp|webp|svg|avif)$/) !== null;
|
|
568
|
+
return typeof n == "number" && i ? `${r.replace("/files", `/thumbs/${n}`)}` : r;
|
|
569
|
+
}, Je = (e) => {
|
|
570
|
+
const { apiURL: n, libraries: o } = j(A), a = e?.dayjs || o?.dayjs;
|
|
905
571
|
return {
|
|
906
|
-
dateAdapter: (
|
|
572
|
+
dateAdapter: (c, u) => {
|
|
907
573
|
if (!a)
|
|
908
574
|
throw new Error("Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
909
|
-
return
|
|
910
|
-
date:
|
|
911
|
-
format:
|
|
575
|
+
return be({
|
|
576
|
+
date: c,
|
|
577
|
+
format: u,
|
|
912
578
|
library: a
|
|
913
579
|
});
|
|
914
580
|
},
|
|
915
|
-
distanceAdapter:
|
|
916
|
-
filePathAdapter: (
|
|
581
|
+
distanceAdapter: Re,
|
|
582
|
+
filePathAdapter: (c, u) => {
|
|
917
583
|
if (!n)
|
|
918
584
|
throw new Error(
|
|
919
585
|
"API URL is not provided. You can provide it with InjectDependenciesProvider or directly in props to filePathAdapter."
|
|
920
586
|
);
|
|
921
|
-
return
|
|
587
|
+
return je({
|
|
922
588
|
apiURL: n,
|
|
923
|
-
path:
|
|
924
|
-
size:
|
|
589
|
+
path: c,
|
|
590
|
+
size: u
|
|
925
591
|
});
|
|
926
592
|
},
|
|
927
|
-
worksiteNameAdapter:
|
|
593
|
+
worksiteNameAdapter: Se
|
|
928
594
|
};
|
|
929
|
-
},
|
|
930
|
-
const [o, a] =
|
|
931
|
-
const
|
|
932
|
-
return
|
|
595
|
+
}, F = (e, n) => n === "short" ? e.split("-")[0] : e, Ke = (e, n = "full") => {
|
|
596
|
+
const [o, a] = ne(() => {
|
|
597
|
+
const r = e?.language || navigator.language;
|
|
598
|
+
return e && "isInitialized" in e && e.isInitialized, F(r, n);
|
|
933
599
|
});
|
|
934
|
-
return
|
|
935
|
-
|
|
936
|
-
const
|
|
937
|
-
a(
|
|
600
|
+
return C(() => {
|
|
601
|
+
e && "isInitialized" in e && e.isInitialized && e.language && a(F(e.language, n));
|
|
602
|
+
const r = (i) => {
|
|
603
|
+
a(F(i, n));
|
|
938
604
|
};
|
|
939
|
-
return
|
|
940
|
-
|
|
605
|
+
return e?.on?.("languageChanged", r), () => {
|
|
606
|
+
e?.off?.("languageChanged", r);
|
|
941
607
|
};
|
|
942
|
-
}, [
|
|
943
|
-
},
|
|
608
|
+
}, [e, n]), o;
|
|
609
|
+
}, _e = "tracktor.filter", Pe = {
|
|
944
610
|
getFilter: () => {
|
|
945
611
|
},
|
|
946
612
|
getFilters: () => ({}),
|
|
@@ -948,75 +614,75 @@ const I = yr({}), Yr = ({ children: r, apiURL: n, libraries: o, localStorageKeys
|
|
|
948
614
|
},
|
|
949
615
|
setFilter: () => {
|
|
950
616
|
}
|
|
951
|
-
},
|
|
952
|
-
const { libraries: n, localStorageKeys: o } =
|
|
953
|
-
}],
|
|
954
|
-
if (
|
|
955
|
-
return
|
|
617
|
+
}, re = (e, n, o) => `${o}_${e}=>${n}`, qe = (e) => {
|
|
618
|
+
const { libraries: n, localStorageKeys: o } = j(A), a = e?.reactRouter || n?.reactRouter, { pathname: r } = a?.useLocation?.() ?? { pathname: "/" }, [i, c] = a?.useSearchParams?.() ?? [new URLSearchParams(), () => {
|
|
619
|
+
}], u = o?.filter || _e;
|
|
620
|
+
if (N)
|
|
621
|
+
return Pe;
|
|
956
622
|
if (!a)
|
|
957
623
|
throw new Error(
|
|
958
624
|
"React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView."
|
|
959
625
|
);
|
|
960
|
-
const
|
|
961
|
-
const
|
|
962
|
-
if (!
|
|
963
|
-
|
|
626
|
+
const l = (g, m, b = !0) => {
|
|
627
|
+
const p = re(g, e?.pathname || r, u);
|
|
628
|
+
if (!m || Array.isArray(m) && !m.length) {
|
|
629
|
+
i.delete(g), c(i), localStorage.removeItem(p);
|
|
964
630
|
return;
|
|
965
631
|
}
|
|
966
|
-
|
|
632
|
+
b && m && localStorage.setItem(p, JSON.stringify({ ...i, [g]: m })), m && (i.set(g, JSON.stringify(m)), c(i));
|
|
967
633
|
};
|
|
968
634
|
return {
|
|
969
|
-
getFilter: (
|
|
970
|
-
const
|
|
971
|
-
if (
|
|
635
|
+
getFilter: (g, m) => {
|
|
636
|
+
const b = i.get(g);
|
|
637
|
+
if (b)
|
|
972
638
|
try {
|
|
973
|
-
return JSON.parse(
|
|
639
|
+
return JSON.parse(b);
|
|
974
640
|
} catch {
|
|
975
|
-
return
|
|
641
|
+
return b;
|
|
976
642
|
}
|
|
977
|
-
const
|
|
978
|
-
if (
|
|
643
|
+
const p = re(g, e?.pathname || r, u), R = localStorage.getItem(p);
|
|
644
|
+
if (R)
|
|
979
645
|
try {
|
|
980
|
-
return JSON.parse(
|
|
646
|
+
return JSON.parse(R)[g];
|
|
981
647
|
} catch {
|
|
982
648
|
}
|
|
983
|
-
return
|
|
649
|
+
return m;
|
|
984
650
|
},
|
|
985
651
|
getFilters: () => {
|
|
986
|
-
const
|
|
987
|
-
(
|
|
988
|
-
).reduce((
|
|
989
|
-
const
|
|
990
|
-
if (
|
|
991
|
-
const
|
|
992
|
-
|
|
652
|
+
const g = Object.fromEntries(i.entries()), b = Object.keys(localStorage).filter(
|
|
653
|
+
(p) => p.startsWith(u) && p.endsWith(e?.pathname || r)
|
|
654
|
+
).reduce((p, R) => {
|
|
655
|
+
const S = localStorage.getItem(R);
|
|
656
|
+
if (S) {
|
|
657
|
+
const O = JSON.parse(S), v = Object.keys(O)?.[0];
|
|
658
|
+
p[v] = Object.values(O)?.[0];
|
|
993
659
|
}
|
|
994
|
-
return
|
|
660
|
+
return p;
|
|
995
661
|
}, {});
|
|
996
662
|
return {
|
|
997
|
-
...
|
|
998
|
-
...
|
|
663
|
+
...g,
|
|
664
|
+
...b
|
|
999
665
|
};
|
|
1000
666
|
},
|
|
1001
|
-
handleFilter: (
|
|
1002
|
-
if (
|
|
1003
|
-
const
|
|
1004
|
-
|
|
667
|
+
handleFilter: (g, m) => (b, p) => {
|
|
668
|
+
if (p || Array.isArray(p) && p.length === 0) {
|
|
669
|
+
const R = m || "value", S = typeof p == "object" && R in p ? p[R] : p;
|
|
670
|
+
l(g, S);
|
|
1005
671
|
return;
|
|
1006
672
|
}
|
|
1007
|
-
|
|
673
|
+
l(g, void 0);
|
|
1008
674
|
},
|
|
1009
|
-
setFilter:
|
|
675
|
+
setFilter: l
|
|
1010
676
|
};
|
|
1011
|
-
},
|
|
1012
|
-
const a =
|
|
677
|
+
}, Te = (e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase(), Ce = (e) => {
|
|
678
|
+
const a = e.split("/").filter((r) => r.length > 0).map((r) => r.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((l) => l.charAt(0).toUpperCase() + l.slice(1)).join("")).join("");
|
|
1013
679
|
return a.charAt(0).toLowerCase() + a.slice(1);
|
|
1014
|
-
},
|
|
1015
|
-
const
|
|
1016
|
-
return
|
|
1017
|
-
},
|
|
680
|
+
}, Oe = (e) => (e.split("/").pop() || e).replace(/\.json$/, "").replace(/^openapi\./, ""), ke = (e, n, o, a) => {
|
|
681
|
+
const r = Ce(n), i = Te(o), c = `${r}${i}`;
|
|
682
|
+
return e && typeof e == "object" && "operationId" in e && a?.includes(String(e.operationId)) ? `${c}AsQuery` : c;
|
|
683
|
+
}, xe = (e, n) => {
|
|
1018
684
|
const o = {};
|
|
1019
|
-
return
|
|
685
|
+
return e?.forEach((a) => {
|
|
1020
686
|
o[a] = {
|
|
1021
687
|
query: {
|
|
1022
688
|
useInfinite: !0,
|
|
@@ -1031,64 +697,64 @@ const I = yr({}), Yr = ({ children: r, apiURL: n, libraries: o, localStorageKeys
|
|
|
1031
697
|
}
|
|
1032
698
|
};
|
|
1033
699
|
}), Object.keys(o).length ? o : void 0;
|
|
1034
|
-
},
|
|
1035
|
-
const { output:
|
|
700
|
+
}, Be = (e) => (Array.isArray(e) ? e : [e]).reduce((o, a) => {
|
|
701
|
+
const { output: r, useInfiniteIds: i, useQueryIds: c, input: u = "./openapi.json" } = a || {}, l = Oe(u);
|
|
1036
702
|
return {
|
|
1037
703
|
...o,
|
|
1038
|
-
[
|
|
704
|
+
[l]: {
|
|
1039
705
|
hooks: {
|
|
1040
706
|
afterAllFilesWrite: "prettier src/api/ --write"
|
|
1041
707
|
},
|
|
1042
|
-
input:
|
|
708
|
+
input: u,
|
|
1043
709
|
output: {
|
|
1044
|
-
baseUrl:
|
|
710
|
+
baseUrl: r?.baseUrl,
|
|
1045
711
|
client: "react-query",
|
|
1046
712
|
mode: "tags-split",
|
|
1047
713
|
override: {
|
|
1048
|
-
...(
|
|
1049
|
-
operations:
|
|
714
|
+
...(i?.length || c?.length) && {
|
|
715
|
+
operations: xe(i, c)
|
|
1050
716
|
},
|
|
1051
|
-
header: (
|
|
717
|
+
header: (d) => [
|
|
1052
718
|
"Generated by orval 🍺",
|
|
1053
|
-
...
|
|
1054
|
-
...
|
|
719
|
+
...d.title ? [d.title] : [],
|
|
720
|
+
...d.description ? [d.description] : []
|
|
1055
721
|
],
|
|
1056
722
|
mutator: {
|
|
1057
723
|
name: "axiosCustomInstance",
|
|
1058
724
|
path: "./node_modules/@tracktor/shared-module/dist/axiosCustomInstance.ts"
|
|
1059
725
|
},
|
|
1060
|
-
operationName: (
|
|
726
|
+
operationName: (d, s, h) => ke(d, s, h, c),
|
|
1061
727
|
query: {
|
|
1062
728
|
useQuery: !0
|
|
1063
729
|
}
|
|
1064
730
|
},
|
|
1065
|
-
schemas:
|
|
1066
|
-
target:
|
|
1067
|
-
...
|
|
731
|
+
schemas: r?.schemas || `src/api/${l}/model`,
|
|
732
|
+
target: r?.target || `src/api/${l}/services/api.ts`,
|
|
733
|
+
...r
|
|
1068
734
|
}
|
|
1069
735
|
}
|
|
1070
736
|
};
|
|
1071
737
|
}, {});
|
|
1072
738
|
export {
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
739
|
+
Fe as GTMSendPageView,
|
|
740
|
+
$e as InitializeAxiosConfig,
|
|
741
|
+
Ue as InitializeDaysJSConfig,
|
|
742
|
+
De as InitializeI18nConfig,
|
|
743
|
+
Ye as InitializeSentryConfig,
|
|
744
|
+
A as InjectDependenciesContext,
|
|
745
|
+
Ne as InjectDependenciesProvider,
|
|
746
|
+
ze as MaskTextField,
|
|
747
|
+
We as PreloadErrorHandler,
|
|
748
|
+
Qe as QueryClientProviderWithConfig,
|
|
749
|
+
Le as RequireAuth,
|
|
750
|
+
be as dateAdapter,
|
|
751
|
+
Re as distanceAdapter,
|
|
752
|
+
Be as getOrvalConfig,
|
|
753
|
+
Je as useAdapter,
|
|
754
|
+
Ge as useAuth,
|
|
755
|
+
Ke as useCurrentLanguage,
|
|
756
|
+
qe as useFilters,
|
|
757
|
+
Me as useInfiniteDataGrid,
|
|
758
|
+
Ve as useResponseError,
|
|
759
|
+
Se as worksiteNameAdapter
|
|
1094
760
|
};
|