@tracktor/shared-module 2.14.3 → 2.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -1,620 +1,286 @@
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 = {};
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.min.js
5
+ * react-jsx-runtime.production.js
6
6
  *
7
- * Copyright (c) Facebook, Inc. and its affiliates.
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 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 };
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 V.Fragment = o, V.jsx = f, V.jsxs = f, V;
32
+ return x.Fragment = n, x.jsx = o, x.jsxs = o, x;
25
33
  }
26
- var z = {};
34
+ var I = {};
27
35
  /**
28
36
  * @license React
29
37
  * react-jsx-runtime.development.js
30
38
  *
31
- * Copyright (c) Facebook, Inc. and its affiliates.
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 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
- if (e === null || typeof e != "object")
42
- return null;
43
- var t = T && e[T] || e[E];
44
- return typeof t == "function" ? t : null;
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 o:
94
- return "Portal";
95
- case l:
55
+ case S:
96
56
  return "Profiler";
97
- case s:
57
+ case R:
98
58
  return "StrictMode";
99
- case v:
59
+ case M:
100
60
  return "Suspense";
101
- case c:
61
+ case oe:
102
62
  return "SuspenseList";
63
+ case ie:
64
+ return "Activity";
103
65
  }
104
- if (typeof e == "object")
105
- switch (e.$$typeof) {
106
- case p:
107
- var t = e;
108
- return le(t) + ".Consumer";
109
- case f:
110
- var i = e;
111
- return le(i._context) + ".Provider";
112
- case u:
113
- return Me(e, e.render, "ForwardRef");
114
- case R:
115
- var d = e.displayName || null;
116
- return d !== null ? d : L(e.type) || "Memo";
117
- case h: {
118
- var m = e, b = m._payload, y = m._init;
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 L(y(b));
84
+ return e(t(f));
121
85
  } catch {
122
- return null;
123
86
  }
124
- }
125
87
  }
126
88
  return null;
127
89
  }
128
- var $ = Object.assign, U = 0, fe, de, pe, ve, ge, ye, he;
129
- function me() {
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 Ee(e, t) {
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
- if (t) {
225
- var y = function() {
226
- throw Error();
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
- var He = Array.isArray;
344
- function te(e) {
345
- return He(e);
346
- }
347
- function Xe(e) {
348
- {
349
- var t = typeof Symbol == "function" && Symbol.toStringTag, i = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
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 Ze(e) {
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
- return we(e), !1;
115
+ var f = e(t);
116
+ return f ? "<" + f + ">" : "<...>";
356
117
  } catch {
357
- return !0;
118
+ return "<...>";
358
119
  }
359
120
  }
360
- function we(e) {
361
- return "" + e;
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
- var Se = C.ReactCurrentOwner, er = {
368
- key: !0,
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 tr(e) {
382
- if (G.call(e, "key")) {
383
- var t = Object.getOwnPropertyDescriptor(e, "key").get;
384
- if (t && t.isReactWarning)
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 e.key !== void 0;
388
- }
389
- function nr(e, t) {
390
- typeof e.ref == "string" && Se.current;
391
- }
392
- function or(e, t) {
393
- {
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
- };
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
- var ir = function(e, t, i, d, m, b, y) {
415
- var g = {
416
- // This tag allows us to uniquely identify this as a React Element
417
- $$typeof: n,
418
- // Built-in properties that belong on the element
419
- type: e,
420
- key: t,
421
- ref: i,
422
- props: y,
423
- // Record the component responsible for creating this element.
424
- _owner: b
425
- };
426
- return g._store = {}, Object.defineProperty(g._store, "validated", {
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: !1
431
- }), Object.defineProperty(g, "_self", {
167
+ value: 0
168
+ }), Object.defineProperty(t, "_debugInfo", {
432
169
  configurable: !1,
433
170
  enumerable: !1,
434
- writable: !1,
435
- value: d
436
- }), Object.defineProperty(g, "_source", {
171
+ writable: !0,
172
+ value: null
173
+ }), Object.defineProperty(t, "_debugStack", {
437
174
  configurable: !1,
438
175
  enumerable: !1,
439
- writable: !1,
440
- value: m
441
- }), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
442
- };
443
- function sr(e, t, i, d, m) {
444
- {
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
- if (e && e.defaultProps) {
450
- var _ = e.defaultProps;
451
- for (b in _)
452
- y[b] === void 0 && (y[b] = _[b]);
453
- }
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
- }
458
- return ir(e, g, O, m, d, Se.current, y);
459
- }
460
- }
461
- var ne = C.ReactCurrentOwner, je = C.ReactDebugCurrentFrame;
462
- function Y(e) {
463
- if (e) {
464
- var t = e._owner, i = J(e.type, e._source, t ? t.type : null);
465
- je.setExtraStackFrame(i);
466
- } else
467
- je.setExtraStackFrame(null);
468
- }
469
- var oe;
470
- oe = !1;
471
- function ae(e) {
472
- return typeof e == "object" && e !== null && e.$$typeof === n;
473
- }
474
- function Te() {
475
- {
476
- if (ne.current) {
477
- var e = L(ne.current.type);
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
- function Ie(e, t, i, d, m, b) {
572
- {
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
- }
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
- if (x !== void 0)
588
- if (d)
589
- if (te(x)) {
590
- for (var W = 0; W < x.length; W++)
591
- xe(x[W], e);
592
- Object.freeze && Object.freeze(x);
593
- } else
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
- else
596
- xe(x, e);
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
- function dr(e, t, i) {
602
- return Ie(e, t, i, !0);
603
- }
604
- function pr(e, t, i) {
605
- return Ie(e, t, i, !1);
606
- }
607
- var vr = pr, gr = dr;
608
- z.Fragment = a, z.jsx = vr, z.jsxs = gr;
609
- }()), z;
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 Le;
612
- function Rr() {
613
- return Le || (Le = 1, process.env.NODE_ENV === "production" ? B.exports = Er() : B.exports = br()), B.exports;
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 D = Rr();
616
- const I = yr({}), Yr = ({ children: r, apiURL: n, libraries: o, localStorageKeys: a }) => {
617
- const s = ie(
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__ */ 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)
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 [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))
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
- }, [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;
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 (!s)
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: l } = s, { useLocation: f, Outlet: p } = a, { pathname: u } = f(), { sendEvent: v } = l();
646
- return N(() => {
647
- v({
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: u,
650
- ...r
315
+ pathname: l,
316
+ ...e
651
317
  });
652
- }, [r, u, v]), /* @__PURE__ */ D.jsx(p, {});
653
- }, M = (() => {
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
- })(), _r = "user", Vr = ({
662
- tokenTypeKey: r = "tokenType",
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: s = a.apiURL, libraries: l, localStorageKeys: f } = k(I), p = a?.userLocalStorageKey || f?.user || _r, u = a?.axios || l?.axios;
668
- if (!u)
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 (!u?.defaults || M)
336
+ if (!l?.defaults || N)
671
337
  return null;
672
338
  if (typeof window < "u" && window.localStorage) {
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);
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 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)
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 (!s)
347
+ if (!r)
682
348
  throw new Error("i18 is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
683
- return l?.isInitialized || (l.use(p).use(f).init({
684
- debug: r,
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 !== l.resolvedLanguage && l.resolvedLanguage && document.documentElement.setAttribute("lang", l.resolvedLanguage);
698
- }), l.on("languageChanged", (u) => {
699
- document.documentElement.setAttribute("lang", u);
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
- }, Mr = ({
702
- dsn: r,
367
+ }, Ye = ({
368
+ dsn: e,
703
369
  integrations: n,
704
370
  tracesSampleRate: o,
705
371
  replaysSessionSampleRate: a,
706
- replaysOnErrorSampleRate: s,
707
- tracePropagationTargets: l,
708
- ignoreErrors: f,
709
- debug: p,
710
- environment: u,
711
- release: v,
712
- ...c
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: R } = k(I), h = c?.sentry || R?.sentry, w = c?.reactRouter || R?.reactRouter;
715
- if (!h)
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 (!w)
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 (h.isInitialized())
385
+ if (g.isInitialized())
720
386
  return null;
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",
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
- ...f || [],
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
- h.reactRouterV6BrowserTracingIntegration({
737
- createRoutesFromChildren: T,
738
- matchRoutes: E,
739
- useEffect: N,
740
- useLocation: A,
741
- useNavigationType: C
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: v,
746
- replaysOnErrorSampleRate: s || 1,
411
+ release: d,
412
+ replaysOnErrorSampleRate: r || 1,
747
413
  replaysSessionSampleRate: a || 0.1,
748
- tracePropagationTargets: l,
414
+ tracePropagationTargets: i,
749
415
  tracesSampleRate: o || 1
750
416
  }), null;
751
- }, Kr = ({ IMaskMixin: r, ...n }) => {
752
- const o = ie(
417
+ }, ze = ({ IMaskMixin: e, ...n }) => {
418
+ const o = Q(
753
419
  // eslint-disable-next-line react/jsx-props-no-spreading
754
- () => r(({ TextField: a, ...s }) => /* @__PURE__ */ D.jsx(a, { ...s })),
755
- [r]
420
+ () => e(({ TextField: a, ...r }) => /* @__PURE__ */ P.jsx(a, { ...r })),
421
+ [e]
756
422
  );
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;
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 N(() => {
430
+ return C(() => {
765
431
  (async () => {
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);
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, s, r]), null;
772
- }, Jr = () => (N(() => {
773
- if (M)
437
+ }, [a, r, e]), null;
438
+ }, We = () => (C(() => {
439
+ if (N)
774
440
  return;
775
- const r = (n) => {
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", r), () => {
782
- window.removeEventListener("vite:preloadError", r);
447
+ return window.addEventListener("vite:preloadError", e), () => {
448
+ window.removeEventListener("vite:preloadError", e);
783
449
  };
784
- }, []), null), Sr = (r) => r && typeof r == "function", Cr = (r) => r && typeof r == "function", Gr = ({
785
- children: r,
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: s } = k(I), l = a?.QueryClient || s?.reactQuery?.QueryClient, f = a?.QueryClientProvider || s?.reactQuery?.QueryClientProvider;
791
- if (!l)
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 (!f)
459
+ if (!c)
794
460
  throw new Error("QueryClientProvider is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
795
- if (!Sr(f))
461
+ if (!Ee(c))
796
462
  throw new Error("Provided QueryClientProvider dependencies are not valid.");
797
- if (!Cr(l))
463
+ if (!we(i))
798
464
  throw new Error("Provided QueryClient dependencies are not valid.");
799
- const p = new l({
465
+ const u = new i({
800
466
  defaultOptions: {
801
467
  mutations: {
802
468
  ...o
803
469
  },
804
470
  queries: {
805
- getNextPageParam: (u, v, c) => u.length + (c || 0),
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__ */ 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);
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 v instanceof Error ? v.message : f;
499
+ return d instanceof Error ? d.message : c;
834
500
  },
835
- [f]
501
+ [c]
836
502
  );
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,
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: s,
847
- enabled: l = !0
512
+ isLoading: r,
513
+ enabled: i = !0
848
514
  }) => {
849
- const f = X(
850
- async (u) => {
851
- o || !l || await n({ pageParam: u?.pageParam || u.visibleRowsCount });
515
+ const c = $(
516
+ async (l) => {
517
+ o || !i || await n({ pageParam: l?.pageParam || l.visibleRowsCount });
852
518
  },
853
- [l, n, o]
854
- ), p = ie(() => {
855
- if (r)
856
- return r.pages.reduce((u, v) => [...u, ...v], []);
857
- }, [r]);
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: f,
860
- isLoading: o || s,
861
- loadingVariant: a ? "skeleton" : "linear",
862
- rows: p
525
+ fetchNextPageOnRowsScrollEnd: c,
526
+ isLoading: o || r,
527
+ loadingVariant: a ? "skeleton" : "linear-progress",
528
+ rows: u
863
529
  };
864
- }, Hr = (r) => {
865
- const { libraries: n } = k(I), o = r?.axios || n?.axios, a = r?.localStorageKey || "user";
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 s = X(
869
- ({ tokenType: f, accessToken: p }) => {
870
- o.defaults.headers.common.Authorization = `${f} ${p}`;
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
- ), l = () => {
539
+ ), i = () => {
874
540
  o.defaults.headers.common.Authorization = null;
875
541
  };
876
- return N(() => {
877
- if (M)
542
+ return C(() => {
543
+ if (N)
878
544
  return;
879
- const f = ({ newValue: p, key: u }) => {
880
- if (u === a && p)
545
+ const c = ({ newValue: u, key: l }) => {
546
+ if (l === a && u)
881
547
  try {
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);
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", f), () => {
889
- window.removeEventListener("storage", f);
554
+ return window.addEventListener("storage", c), () => {
555
+ window.removeEventListener("storage", c);
890
556
  };
891
- }, [a, s]), {
892
- clearAuthenticationToken: l,
893
- setAuthenticationToken: s
557
+ }, [a, r]), {
558
+ clearAuthenticationToken: i,
559
+ setAuthenticationToken: r
894
560
  };
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)
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 = 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;
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: (f, p) => {
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 Pr({
910
- date: f,
911
- format: p,
575
+ return be({
576
+ date: c,
577
+ format: u,
912
578
  library: a
913
579
  });
914
580
  },
915
- distanceAdapter: jr,
916
- filePathAdapter: (f, p) => {
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 Ar({
587
+ return je({
922
588
  apiURL: n,
923
- path: f,
924
- size: p
589
+ path: c,
590
+ size: u
925
591
  });
926
592
  },
927
- worksiteNameAdapter: Tr
593
+ worksiteNameAdapter: Se
928
594
  };
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);
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 N(() => {
935
- r && "isInitialized" in r && r.isInitialized && r.language && a(H(r.language, n));
936
- const s = (l) => {
937
- a(H(l, n));
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 r?.on?.("languageChanged", s), () => {
940
- r?.off?.("languageChanged", s);
605
+ return e?.on?.("languageChanged", r), () => {
606
+ e?.off?.("languageChanged", r);
941
607
  };
942
- }, [r, n]), o;
943
- }, xr = "tracktor.filter", Ir = {
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
- }, $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;
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 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);
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
- T && w && localStorage.setItem(E, JSON.stringify({ ...l, [h]: w })), w && (l.set(h, JSON.stringify(w)), f(l));
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: (h, w) => {
970
- const T = l.get(h);
971
- if (T)
635
+ getFilter: (g, m) => {
636
+ const b = i.get(g);
637
+ if (b)
972
638
  try {
973
- return JSON.parse(T);
639
+ return JSON.parse(b);
974
640
  } catch {
975
- return T;
641
+ return b;
976
642
  }
977
- const E = $e(h, r?.pathname || s, p), A = localStorage.getItem(E);
978
- if (A)
643
+ const p = re(g, e?.pathname || r, u), R = localStorage.getItem(p);
644
+ if (R)
979
645
  try {
980
- return JSON.parse(A)[h];
646
+ return JSON.parse(R)[g];
981
647
  } catch {
982
648
  }
983
- return w;
649
+ return m;
984
650
  },
985
651
  getFilters: () => {
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];
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 E;
660
+ return p;
995
661
  }, {});
996
662
  return {
997
- ...h,
998
- ...T
663
+ ...g,
664
+ ...b
999
665
  };
1000
666
  },
1001
- handleFilter: (h, w) => (T, E) => {
1002
- if (E || Array.isArray(E) && E.length === 0) {
1003
- const A = w || "value", C = typeof E == "object" && A in E ? E[A] : E;
1004
- u(h, C);
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
- u(h, void 0);
673
+ l(g, void 0);
1008
674
  },
1009
- setFilter: u
675
+ setFilter: l
1010
676
  };
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("");
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
- }, 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) => {
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 r?.forEach((a) => {
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
- }, 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);
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
- [u]: {
704
+ [l]: {
1039
705
  hooks: {
1040
706
  afterAllFilesWrite: "prettier src/api/ --write"
1041
707
  },
1042
- input: p,
708
+ input: u,
1043
709
  output: {
1044
- baseUrl: s?.baseUrl,
710
+ baseUrl: r?.baseUrl,
1045
711
  client: "react-query",
1046
712
  mode: "tags-split",
1047
713
  override: {
1048
- ...(l?.length || f?.length) && {
1049
- operations: $r(l, f)
714
+ ...(i?.length || c?.length) && {
715
+ operations: xe(i, c)
1050
716
  },
1051
- header: (v) => [
717
+ header: (d) => [
1052
718
  "Generated by orval 🍺",
1053
- ...v.title ? [v.title] : [],
1054
- ...v.description ? [v.description] : []
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: (v, c, R) => Lr(v, c, R, f),
726
+ operationName: (d, s, h) => ke(d, s, h, c),
1061
727
  query: {
1062
728
  useQuery: !0
1063
729
  }
1064
730
  },
1065
- schemas: s?.schemas || `src/api/${u}/model`,
1066
- target: s?.target || `src/api/${u}/services/api.ts`,
1067
- ...s
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
- 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
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
  };