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