@tracktor/shared-module 2.8.0 → 2.9.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/dist/main.js CHANGED
@@ -1,4 +1,4 @@
1
- import Ve, { createContext as ht, useMemo as ve, useContext as k, useState as ze, useRef as yt, useEffect as z, Suspense as mt, useCallback as re } from "react";
1
+ import Ve, { createContext as ht, useMemo as ve, useContext as D, useState as ze, useRef as yt, useEffect as z, Suspense as mt, useCallback as re } from "react";
2
2
  var de = { exports: {} }, K = {};
3
3
  /**
4
4
  * @license React
@@ -13,13 +13,13 @@ var Ne;
13
13
  function Et() {
14
14
  if (Ne) return K;
15
15
  Ne = 1;
16
- var t = Ve, n = Symbol.for("react.element"), o = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, a = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
16
+ var t = Ve, r = Symbol.for("react.element"), o = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, a = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
17
17
  function f(d, u, m) {
18
- var g, C = {}, b = null, s = null;
18
+ var g, S = {}, b = null, s = null;
19
19
  m !== void 0 && (b = "" + m), u.key !== void 0 && (b = "" + u.key), u.ref !== void 0 && (s = u.ref);
20
- for (g in u) i.call(u, g) && !l.hasOwnProperty(g) && (C[g] = u[g]);
21
- if (d && d.defaultProps) for (g in u = d.defaultProps, u) C[g] === void 0 && (C[g] = u[g]);
22
- return { $$typeof: n, type: d, key: b, ref: s, props: C, _owner: a.current };
20
+ for (g in u) i.call(u, g) && !l.hasOwnProperty(g) && (S[g] = u[g]);
21
+ if (d && d.defaultProps) for (g in u = d.defaultProps, u) S[g] === void 0 && (S[g] = u[g]);
22
+ return { $$typeof: r, type: d, key: b, ref: s, props: S, _owner: a.current };
23
23
  }
24
24
  return K.Fragment = o, K.jsx = f, K.jsxs = f, K;
25
25
  }
@@ -36,45 +36,45 @@ var q = {};
36
36
  var Ye;
37
37
  function wt() {
38
38
  return Ye || (Ye = 1, process.env.NODE_ENV !== "production" && function() {
39
- var t = Ve, n = Symbol.for("react.element"), o = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), d = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), s = Symbol.for("react.offscreen"), S = Symbol.iterator, R = "@@iterator";
39
+ var t = Ve, r = Symbol.for("react.element"), o = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), d = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), s = Symbol.for("react.offscreen"), C = Symbol.iterator, R = "@@iterator";
40
40
  function P(e) {
41
41
  if (e === null || typeof e != "object")
42
42
  return null;
43
- var r = S && e[S] || e[R];
44
- return typeof r == "function" ? r : null;
43
+ var n = C && e[C] || e[R];
44
+ return typeof n == "function" ? n : null;
45
45
  }
46
46
  var h = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
47
47
  function _(e) {
48
48
  {
49
- for (var r = arguments.length, c = new Array(r > 1 ? r - 1 : 0), v = 1; v < r; v++)
49
+ for (var n = arguments.length, c = new Array(n > 1 ? n - 1 : 0), v = 1; v < n; v++)
50
50
  c[v - 1] = arguments[v];
51
51
  A("error", e, c);
52
52
  }
53
53
  }
54
- function A(e, r, c) {
54
+ function A(e, n, c) {
55
55
  {
56
56
  var v = h.ReactDebugCurrentFrame, w = v.getStackAddendum();
57
- w !== "" && (r += "%s", c = c.concat([w]));
57
+ w !== "" && (n += "%s", c = c.concat([w]));
58
58
  var p = c.map(function(E) {
59
59
  return String(E);
60
60
  });
61
- p.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, p);
61
+ p.unshift("Warning: " + n), Function.prototype.apply.call(console[e], console, p);
62
62
  }
63
63
  }
64
64
  var F = !1, L = !1, $ = !1, T = !1, ge = !1, ne;
65
65
  ne = Symbol.for("react.module.reference");
66
66
  function B(e) {
67
- return !!(typeof e == "string" || typeof e == "function" || e === i || e === l || ge || e === a || e === m || e === g || T || e === s || F || L || $ || typeof e == "object" && e !== null && (e.$$typeof === b || e.$$typeof === C || e.$$typeof === f || e.$$typeof === d || e.$$typeof === u || // This needs to include all possible module reference object
67
+ return !!(typeof e == "string" || typeof e == "function" || e === i || e === l || ge || e === a || e === m || e === g || T || e === s || F || L || $ || typeof e == "object" && e !== null && (e.$$typeof === b || e.$$typeof === S || e.$$typeof === f || e.$$typeof === d || 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
71
  e.$$typeof === ne || e.getModuleId !== void 0));
72
72
  }
73
- function Me(e, r, c) {
73
+ function Me(e, n, c) {
74
74
  var v = e.displayName;
75
75
  if (v)
76
76
  return v;
77
- var w = r.displayName || r.name || "";
77
+ var w = n.displayName || n.name || "";
78
78
  return w !== "" ? c + "(" + w + ")" : c;
79
79
  }
80
80
  function he(e) {
@@ -104,14 +104,14 @@ function wt() {
104
104
  if (typeof e == "object")
105
105
  switch (e.$$typeof) {
106
106
  case d:
107
- var r = e;
108
- return he(r) + ".Consumer";
107
+ var n = e;
108
+ return he(n) + ".Consumer";
109
109
  case f:
110
110
  var c = e;
111
111
  return he(c._context) + ".Provider";
112
112
  case u:
113
113
  return Me(e, e.render, "ForwardRef");
114
- case C:
114
+ case S:
115
115
  var v = e.displayName || null;
116
116
  return v !== null ? v : N(e.type) || "Memo";
117
117
  case b: {
@@ -126,9 +126,9 @@ function wt() {
126
126
  return null;
127
127
  }
128
128
  var V = Object.assign, G = 0, ye, me, Ee, we, Re, _e, pe;
129
- function Se() {
129
+ function Ce() {
130
130
  }
131
- Se.__reactDisabledLog = !0;
131
+ Ce.__reactDisabledLog = !0;
132
132
  function Ue() {
133
133
  {
134
134
  if (G === 0) {
@@ -136,7 +136,7 @@ function wt() {
136
136
  var e = {
137
137
  configurable: !0,
138
138
  enumerable: !0,
139
- value: Se,
139
+ value: Ce,
140
140
  writable: !0
141
141
  };
142
142
  Object.defineProperties(console, {
@@ -188,7 +188,7 @@ function wt() {
188
188
  }
189
189
  }
190
190
  var oe = h.ReactCurrentDispatcher, ae;
191
- function Q(e, r, c) {
191
+ function Q(e, n, c) {
192
192
  {
193
193
  if (ae === void 0)
194
194
  try {
@@ -206,7 +206,7 @@ function wt() {
206
206
  var Je = typeof WeakMap == "function" ? WeakMap : Map;
207
207
  X = new Je();
208
208
  }
209
- function Ce(e, r) {
209
+ function Se(e, n) {
210
210
  if (!e || ie)
211
211
  return "";
212
212
  {
@@ -221,7 +221,7 @@ function wt() {
221
221
  var p;
222
222
  p = oe.current, oe.current = null, Ue();
223
223
  try {
224
- if (r) {
224
+ if (n) {
225
225
  var E = function() {
226
226
  throw Error();
227
227
  };
@@ -263,9 +263,9 @@ function wt() {
263
263
  if (j !== 1 || O !== 1)
264
264
  do
265
265
  if (j--, O--, O < 0 || y[j] !== x[O]) {
266
- var D = `
266
+ var k = `
267
267
  ` + y[j].replace(" at new ", " at ");
268
- return e.displayName && D.includes("<anonymous>") && (D = D.replace("<anonymous>", e.displayName)), typeof e == "function" && X.set(e, D), D;
268
+ return e.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", e.displayName)), typeof e == "function" && X.set(e, k), k;
269
269
  }
270
270
  while (j >= 1 && O >= 0);
271
271
  break;
@@ -277,18 +277,18 @@ function wt() {
277
277
  var U = e ? e.displayName || e.name : "", $e = U ? Q(U) : "";
278
278
  return typeof e == "function" && X.set(e, $e), $e;
279
279
  }
280
- function Ke(e, r, c) {
281
- return Ce(e, !1);
280
+ function Ke(e, n, c) {
281
+ return Se(e, !1);
282
282
  }
283
283
  function qe(e) {
284
- var r = e.prototype;
285
- return !!(r && r.isReactComponent);
284
+ var n = e.prototype;
285
+ return !!(n && n.isReactComponent);
286
286
  }
287
- function H(e, r, c) {
287
+ function H(e, n, c) {
288
288
  if (e == null)
289
289
  return "";
290
290
  if (typeof e == "function")
291
- return Ce(e, qe(e));
291
+ return Se(e, qe(e));
292
292
  if (typeof e == "string")
293
293
  return Q(e);
294
294
  switch (e) {
@@ -301,12 +301,12 @@ function wt() {
301
301
  switch (e.$$typeof) {
302
302
  case u:
303
303
  return Ke(e.render);
304
- case C:
305
- return H(e.type, r, c);
304
+ case S:
305
+ return H(e.type, n, c);
306
306
  case b: {
307
307
  var v = e, w = v._payload, p = v._init;
308
308
  try {
309
- return H(p(w), r, c);
309
+ return H(p(w), n, c);
310
310
  } catch {
311
311
  }
312
312
  }
@@ -316,12 +316,12 @@ function wt() {
316
316
  var Z = Object.prototype.hasOwnProperty, be = {}, Pe = h.ReactDebugCurrentFrame;
317
317
  function ee(e) {
318
318
  if (e) {
319
- var r = e._owner, c = H(e.type, e._source, r ? r.type : null);
319
+ var n = e._owner, c = H(e.type, e._source, n ? n.type : null);
320
320
  Pe.setExtraStackFrame(c);
321
321
  } else
322
322
  Pe.setExtraStackFrame(null);
323
323
  }
324
- function Be(e, r, c, v, w) {
324
+ function Be(e, n, c, v, w) {
325
325
  {
326
326
  var p = Function.call.bind(Z);
327
327
  for (var E in e)
@@ -332,7 +332,7 @@ function wt() {
332
332
  var x = Error((v || "React class") + ": " + c + " type `" + E + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[E] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
333
333
  throw x.name = "Invariant Violation", x;
334
334
  }
335
- y = e[E](r, E, v, c, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
335
+ y = e[E](n, E, v, c, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
336
336
  } catch (j) {
337
337
  y = j;
338
338
  }
@@ -346,7 +346,7 @@ function wt() {
346
346
  }
347
347
  function Xe(e) {
348
348
  {
349
- var r = typeof Symbol == "function" && Symbol.toStringTag, c = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
349
+ var n = typeof Symbol == "function" && Symbol.toStringTag, c = n && e[Symbol.toStringTag] || e.constructor.name || "Object";
350
350
  return c;
351
351
  }
352
352
  }
@@ -373,30 +373,30 @@ function wt() {
373
373
  se = {};
374
374
  function et(e) {
375
375
  if (Z.call(e, "ref")) {
376
- var r = Object.getOwnPropertyDescriptor(e, "ref").get;
377
- if (r && r.isReactWarning)
376
+ var n = Object.getOwnPropertyDescriptor(e, "ref").get;
377
+ if (n && n.isReactWarning)
378
378
  return !1;
379
379
  }
380
380
  return e.ref !== void 0;
381
381
  }
382
382
  function tt(e) {
383
383
  if (Z.call(e, "key")) {
384
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
385
- if (r && r.isReactWarning)
384
+ var n = Object.getOwnPropertyDescriptor(e, "key").get;
385
+ if (n && n.isReactWarning)
386
386
  return !1;
387
387
  }
388
388
  return e.key !== void 0;
389
389
  }
390
- function rt(e, r) {
391
- if (typeof e.ref == "string" && J.current && r && J.current.stateNode !== r) {
390
+ function rt(e, n) {
391
+ if (typeof e.ref == "string" && J.current && n && J.current.stateNode !== n) {
392
392
  var c = N(J.current.type);
393
393
  se[c] || (_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', N(J.current.type), e.ref), se[c] = !0);
394
394
  }
395
395
  }
396
- function nt(e, r) {
396
+ function nt(e, n) {
397
397
  {
398
398
  var c = function() {
399
- Te || (Te = !0, _("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
399
+ Te || (Te = !0, _("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", n));
400
400
  };
401
401
  c.isReactWarning = !0, Object.defineProperty(e, "key", {
402
402
  get: c,
@@ -404,10 +404,10 @@ function wt() {
404
404
  });
405
405
  }
406
406
  }
407
- function ot(e, r) {
407
+ function ot(e, n) {
408
408
  {
409
409
  var c = function() {
410
- xe || (xe = !0, _("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
410
+ xe || (xe = !0, _("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", n));
411
411
  };
412
412
  c.isReactWarning = !0, Object.defineProperty(e, "ref", {
413
413
  get: c,
@@ -415,13 +415,13 @@ function wt() {
415
415
  });
416
416
  }
417
417
  }
418
- var at = function(e, r, c, v, w, p, E) {
418
+ var at = function(e, n, c, v, w, p, E) {
419
419
  var y = {
420
420
  // This tag allows us to uniquely identify this as a React Element
421
- $$typeof: n,
421
+ $$typeof: r,
422
422
  // Built-in properties that belong on the element
423
423
  type: e,
424
- key: r,
424
+ key: n,
425
425
  ref: c,
426
426
  props: E,
427
427
  // Record the component responsible for creating this element.
@@ -444,12 +444,12 @@ function wt() {
444
444
  value: w
445
445
  }), Object.freeze && (Object.freeze(y.props), Object.freeze(y)), y;
446
446
  };
447
- function it(e, r, c, v, w) {
447
+ function it(e, n, c, v, w) {
448
448
  {
449
449
  var p, E = {}, y = null, x = null;
450
- c !== void 0 && (Oe(c), y = "" + c), tt(r) && (Oe(r.key), y = "" + r.key), et(r) && (x = r.ref, rt(r, w));
451
- for (p in r)
452
- Z.call(r, p) && !Ze.hasOwnProperty(p) && (E[p] = r[p]);
450
+ c !== void 0 && (Oe(c), y = "" + c), tt(n) && (Oe(n.key), y = "" + n.key), et(n) && (x = n.ref, rt(n, w));
451
+ for (p in n)
452
+ Z.call(n, p) && !Ze.hasOwnProperty(p) && (E[p] = n[p]);
453
453
  if (e && e.defaultProps) {
454
454
  var j = e.defaultProps;
455
455
  for (p in j)
@@ -465,7 +465,7 @@ function wt() {
465
465
  var ue = h.ReactCurrentOwner, Ae = h.ReactDebugCurrentFrame;
466
466
  function M(e) {
467
467
  if (e) {
468
- var r = e._owner, c = H(e.type, e._source, r ? r.type : null);
468
+ var n = e._owner, c = H(e.type, e._source, n ? n.type : null);
469
469
  Ae.setExtraStackFrame(c);
470
470
  } else
471
471
  Ae.setExtraStackFrame(null);
@@ -473,7 +473,7 @@ function wt() {
473
473
  var le;
474
474
  le = !1;
475
475
  function fe(e) {
476
- return typeof e == "object" && e !== null && e.$$typeof === n;
476
+ return typeof e == "object" && e !== null && e.$$typeof === r;
477
477
  }
478
478
  function Ie() {
479
479
  {
@@ -490,40 +490,40 @@ Check the render method of \`` + e + "`.";
490
490
  function ct(e) {
491
491
  return "";
492
492
  }
493
- var De = {};
493
+ var ke = {};
494
494
  function st(e) {
495
495
  {
496
- var r = Ie();
497
- if (!r) {
496
+ var n = Ie();
497
+ if (!n) {
498
498
  var c = typeof e == "string" ? e : e.displayName || e.name;
499
- c && (r = `
499
+ c && (n = `
500
500
 
501
501
  Check the top-level render call using <` + c + ">.");
502
502
  }
503
- return r;
503
+ return n;
504
504
  }
505
505
  }
506
- function ke(e, r) {
506
+ function De(e, n) {
507
507
  {
508
508
  if (!e._store || e._store.validated || e.key != null)
509
509
  return;
510
510
  e._store.validated = !0;
511
- var c = st(r);
512
- if (De[c])
511
+ var c = st(n);
512
+ if (ke[c])
513
513
  return;
514
- De[c] = !0;
514
+ ke[c] = !0;
515
515
  var v = "";
516
516
  e && e._owner && e._owner !== ue.current && (v = " It was passed a child from " + N(e._owner.type) + "."), M(e), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', c, v), M(null);
517
517
  }
518
518
  }
519
- function Fe(e, r) {
519
+ function Fe(e, n) {
520
520
  {
521
521
  if (typeof e != "object")
522
522
  return;
523
523
  if (ce(e))
524
524
  for (var c = 0; c < e.length; c++) {
525
525
  var v = e[c];
526
- fe(v) && ke(v, r);
526
+ fe(v) && De(v, n);
527
527
  }
528
528
  else if (fe(e))
529
529
  e._store && (e._store.validated = !0);
@@ -531,39 +531,39 @@ Check the top-level render call using <` + c + ">.");
531
531
  var w = P(e);
532
532
  if (typeof w == "function" && w !== e.entries)
533
533
  for (var p = w.call(e), E; !(E = p.next()).done; )
534
- fe(E.value) && ke(E.value, r);
534
+ fe(E.value) && De(E.value, n);
535
535
  }
536
536
  }
537
537
  }
538
538
  function ut(e) {
539
539
  {
540
- var r = e.type;
541
- if (r == null || typeof r == "string")
540
+ var n = e.type;
541
+ if (n == null || typeof n == "string")
542
542
  return;
543
543
  var c;
544
- if (typeof r == "function")
545
- c = r.propTypes;
546
- else if (typeof r == "object" && (r.$$typeof === u || // Note: Memo only checks outer props here.
544
+ if (typeof n == "function")
545
+ c = n.propTypes;
546
+ else if (typeof n == "object" && (n.$$typeof === u || // Note: Memo only checks outer props here.
547
547
  // Inner props are checked in the reconciler.
548
- r.$$typeof === C))
549
- c = r.propTypes;
548
+ n.$$typeof === S))
549
+ c = n.propTypes;
550
550
  else
551
551
  return;
552
552
  if (c) {
553
- var v = N(r);
553
+ var v = N(n);
554
554
  Be(c, e.props, "prop", v, e);
555
- } else if (r.PropTypes !== void 0 && !le) {
555
+ } else if (n.PropTypes !== void 0 && !le) {
556
556
  le = !0;
557
- var w = N(r);
557
+ var w = N(n);
558
558
  _("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", w || "Unknown");
559
559
  }
560
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
560
+ typeof n.getDefaultProps == "function" && !n.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
561
561
  }
562
562
  }
563
563
  function lt(e) {
564
564
  {
565
- for (var r = Object.keys(e.props), c = 0; c < r.length; c++) {
566
- var v = r[c];
565
+ for (var n = Object.keys(e.props), c = 0; c < n.length; c++) {
566
+ var v = n[c];
567
567
  if (v !== "children" && v !== "key") {
568
568
  M(e), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), M(null);
569
569
  break;
@@ -572,7 +572,7 @@ Check the top-level render call using <` + c + ">.");
572
572
  e.ref !== null && (M(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), M(null));
573
573
  }
574
574
  }
575
- function Le(e, r, c, v, w, p) {
575
+ function Le(e, n, c, v, w, p) {
576
576
  {
577
577
  var E = B(e);
578
578
  if (!E) {
@@ -581,32 +581,32 @@ Check the top-level render call using <` + c + ">.");
581
581
  var x = ct();
582
582
  x ? y += x : y += Ie();
583
583
  var j;
584
- e === null ? j = "null" : ce(e) ? j = "array" : e !== void 0 && e.$$typeof === n ? (j = "<" + (N(e.type) || "Unknown") + " />", y = " Did you accidentally export a JSX literal instead of a component?") : j = typeof e, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", j, y);
584
+ e === null ? j = "null" : ce(e) ? j = "array" : e !== void 0 && e.$$typeof === r ? (j = "<" + (N(e.type) || "Unknown") + " />", y = " Did you accidentally export a JSX literal instead of a component?") : j = typeof e, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", j, y);
585
585
  }
586
- var O = it(e, r, c, w, p);
586
+ var O = it(e, n, c, w, p);
587
587
  if (O == null)
588
588
  return O;
589
589
  if (E) {
590
- var D = r.children;
591
- if (D !== void 0)
590
+ var k = n.children;
591
+ if (k !== void 0)
592
592
  if (v)
593
- if (ce(D)) {
594
- for (var U = 0; U < D.length; U++)
595
- Fe(D[U], e);
596
- Object.freeze && Object.freeze(D);
593
+ if (ce(k)) {
594
+ for (var U = 0; U < k.length; U++)
595
+ Fe(k[U], e);
596
+ Object.freeze && Object.freeze(k);
597
597
  } else
598
598
  _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
599
599
  else
600
- Fe(D, e);
600
+ Fe(k, e);
601
601
  }
602
602
  return e === i ? lt(O) : ut(O), O;
603
603
  }
604
604
  }
605
- function ft(e, r, c) {
606
- return Le(e, r, c, !0);
605
+ function ft(e, n, c) {
606
+ return Le(e, n, c, !0);
607
607
  }
608
- function dt(e, r, c) {
609
- return Le(e, r, c, !1);
608
+ function dt(e, n, c) {
609
+ return Le(e, n, c, !1);
610
610
  }
611
611
  var vt = dt, gt = ft;
612
612
  q.Fragment = i, q.jsx = vt, q.jsxs = gt;
@@ -614,33 +614,33 @@ Check the top-level render call using <` + c + ">.");
614
614
  }
615
615
  process.env.NODE_ENV === "production" ? de.exports = Et() : de.exports = wt();
616
616
  var W = de.exports;
617
- const I = ht({}), Ft = ({ children: t, apiURL: n, libraries: o, localStorageKeys: i }) => {
617
+ const I = ht({}), Lt = ({ children: t, apiURL: r, libraries: o, localStorageKeys: i }) => {
618
618
  const a = ve(
619
619
  () => ({
620
- apiURL: n,
620
+ apiURL: r,
621
621
  libraries: o,
622
622
  localStorageKeys: i
623
623
  }),
624
- [n, o, i]
624
+ [r, o, i]
625
625
  );
626
626
  return /* @__PURE__ */ W.jsx(I.Provider, { value: a, children: t });
627
- }, Rt = "user", Lt = ({ Fallback: t, isLogged: n, loginPath: o = "/login", redirect401Path: i = "/login", ...a }) => {
627
+ }, Rt = "user", $t = ({ Fallback: t, isLogged: r, loginPath: o = "/login", redirect401Path: i = "/login", ...a }) => {
628
628
  var A, F, L, $;
629
- const { libraries: l, localStorageKeys: f } = k(I), d = (a == null ? void 0 : a.reactRouter) || (l == null ? void 0 : l.reactRouter), u = (a == null ? void 0 : a.axios) || (l == null ? void 0 : l.axios), m = (a == null ? void 0 : a.localStorageKey) || (f == null ? void 0 : f.user) || Rt;
629
+ const { libraries: l, localStorageKeys: f } = D(I), d = (a == null ? void 0 : a.reactRouter) || (l == null ? void 0 : l.reactRouter), u = (a == null ? void 0 : a.axios) || (l == null ? void 0 : l.axios), m = (a == null ? void 0 : a.localStorageKey) || (f == null ? void 0 : f.user) || Rt;
630
630
  if (!d)
631
631
  throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
632
- const [g, C] = ze(null), { useLocation: b, Navigate: s, Outlet: S } = d, R = b(), P = yt(!1), h = typeof n == "function" ? n() : !!n, _ = typeof h == "boolean" ? h : h == null ? void 0 : h.isLogged;
632
+ const [g, S] = ze(null), { useLocation: b, Navigate: s, Outlet: C } = d, R = b(), P = yt(!1), h = typeof r == "function" ? r() : !!r, _ = typeof h == "boolean" ? h : h == null ? void 0 : h.isLogged;
633
633
  return z(() => {
634
634
  P.current || (P.current = !0, u.interceptors.response.use(
635
635
  (T) => T,
636
636
  async (T) => {
637
637
  var B;
638
- 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 && ((B = T == null ? void 0 : T.response) == null ? void 0 : B.status) === 401 && (u.defaults.headers.common.Authorization = null, typeof window < "u" && window.localStorage && localStorage.removeItem(m), C(i)), Promise.reject(T);
638
+ 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 && ((B = T == null ? void 0 : T.response) == null ? void 0 : B.status) === 401 && (u.defaults.headers.common.Authorization = null, typeof window < "u" && window.localStorage && localStorage.removeItem(m), S(i)), Promise.reject(T);
639
639
  }
640
640
  ));
641
- }, [u.defaults.headers.common, u.interceptors.response, m, i]), _ && !g ? /* @__PURE__ */ W.jsx(mt, { fallback: t, children: (F = (A = R.state) == null ? void 0 : A.from) != null && F.state && (($ = (L = R.state) == null ? void 0 : L.from) == null ? void 0 : $.pathname) === o ? /* @__PURE__ */ W.jsx(s, { to: R.state.from.state.from.pathname + R.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ W.jsx(S, {}) }) : /* @__PURE__ */ W.jsx(s, { to: o + R.search, state: { from: R }, replace: !0 });
642
- }, $t = ({ data: t, ...n }) => {
643
- const { libraries: o } = k(I), i = (n == null ? void 0 : n.reactRouter) || (o == null ? void 0 : o.reactRouter), a = (n == null ? void 0 : n.gtm) || (o == null ? void 0 : o.gtm);
641
+ }, [u.defaults.headers.common, u.interceptors.response, m, i]), _ && !g ? /* @__PURE__ */ W.jsx(mt, { fallback: t, children: (F = (A = R.state) == null ? void 0 : A.from) != null && F.state && (($ = (L = R.state) == null ? void 0 : L.from) == null ? void 0 : $.pathname) === o ? /* @__PURE__ */ W.jsx(s, { to: R.state.from.state.from.pathname + R.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ W.jsx(C, {}) }) : /* @__PURE__ */ W.jsx(s, { to: o + R.search, state: { from: R }, replace: !0 });
642
+ }, Nt = ({ data: t, ...r }) => {
643
+ const { libraries: o } = D(I), i = (r == null ? void 0 : r.reactRouter) || (o == null ? void 0 : o.reactRouter), a = (r == null ? void 0 : r.gtm) || (o == null ? void 0 : o.gtm);
644
644
  if (!i)
645
645
  throw new Error(
646
646
  "React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView."
@@ -655,24 +655,24 @@ const I = ht({}), Ft = ({ children: t, apiURL: n, libraries: o, localStorageKeys
655
655
  ...t
656
656
  });
657
657
  }, [t, u, m]), /* @__PURE__ */ W.jsx(d, {});
658
- }, _t = "user", Nt = ({
658
+ }, _t = "user", Yt = ({
659
659
  tokenTypeKey: t = "tokenType",
660
- tokenKey: n = "accessToken",
660
+ tokenKey: r = "accessToken",
661
661
  postContentType: o = "application/json",
662
662
  ...i
663
663
  }) => {
664
- const { apiURL: a = i.apiURL, libraries: l, localStorageKeys: f } = k(I), d = (i == null ? void 0 : i.userLocalStorageKey) || (f == null ? void 0 : f.user) || _t, u = (i == null ? void 0 : i.axios) || (l == null ? void 0 : l.axios);
664
+ const { apiURL: a = i.apiURL, libraries: l, localStorageKeys: f } = D(I), d = (i == null ? void 0 : i.userLocalStorageKey) || (f == null ? void 0 : f.user) || _t, u = (i == null ? void 0 : i.axios) || (l == null ? void 0 : l.axios);
665
665
  if (!u)
666
666
  throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
667
667
  if (!(u != null && u.defaults))
668
668
  return null;
669
669
  if (typeof window < "u" && window.localStorage) {
670
- const m = localStorage.getItem(d), g = m ? JSON.parse(m) : null, C = g != null && g[t] ? g[t] : null, b = g != null && g[n] ? g[n] : null, s = m ? `${C} ${b}` : null;
670
+ const m = localStorage.getItem(d), g = m ? JSON.parse(m) : null, S = g != null && g[t] ? g[t] : null, b = g != null && g[r] ? g[r] : null, s = m ? `${S} ${b}` : null;
671
671
  s && (u.defaults.headers.common.Authorization = s);
672
672
  }
673
673
  return u.defaults.baseURL = a, u.defaults.headers.post["Content-Type"] = o, null;
674
- }, Yt = ({ debug: t, resources: n, ...o }) => {
675
- const { libraries: i } = k(I), a = (o == null ? void 0 : o.i18) || (i == null ? void 0 : i.i18), { i18next: l, initReactI18next: f, languageDetector: d } = a || {};
674
+ }, Wt = ({ debug: t, resources: r, ...o }) => {
675
+ const { libraries: i } = D(I), a = (o == null ? void 0 : o.i18) || (i == null ? void 0 : i.i18), { i18next: l, initReactI18next: f, languageDetector: d } = a || {};
676
676
  if (!a)
677
677
  throw new Error("i18 is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
678
678
  return l != null && l.isInitialized || (l.use(d).use(f).init({
@@ -686,16 +686,16 @@ const I = ht({}), Ft = ({ children: t, apiURL: n, libraries: o, localStorageKeys
686
686
  bindI18n: "languageChanged loaded",
687
687
  useSuspense: !0
688
688
  },
689
- resources: n,
689
+ resources: r,
690
690
  returnNull: !1
691
691
  }).then(() => {
692
692
  document.documentElement.lang !== l.resolvedLanguage && l.resolvedLanguage && document.documentElement.setAttribute("lang", l.resolvedLanguage);
693
693
  }), l.on("languageChanged", (u) => {
694
694
  document.documentElement.setAttribute("lang", u);
695
695
  })), null;
696
- }, Wt = ({
696
+ }, Vt = ({
697
697
  dsn: t,
698
- integrations: n,
698
+ integrations: r,
699
699
  tracesSampleRate: o,
700
700
  replaysSessionSampleRate: i,
701
701
  replaysOnErrorSampleRate: a,
@@ -706,14 +706,14 @@ const I = ht({}), Ft = ({ children: t, apiURL: n, libraries: o, localStorageKeys
706
706
  release: m,
707
707
  ...g
708
708
  }) => {
709
- const { libraries: C } = k(I), b = (g == null ? void 0 : g.sentry) || (C == null ? void 0 : C.sentry), s = (g == null ? void 0 : g.reactRouter) || (C == null ? void 0 : C.reactRouter);
709
+ const { libraries: S } = D(I), b = (g == null ? void 0 : g.sentry) || (S == null ? void 0 : S.sentry), s = (g == null ? void 0 : g.reactRouter) || (S == null ? void 0 : S.reactRouter);
710
710
  if (!b)
711
711
  throw new Error("Sentry is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
712
712
  if (!s)
713
713
  throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
714
714
  if (b.isInitialized())
715
715
  return null;
716
- const { createRoutesFromChildren: S, matchRoutes: R, useLocation: P, useNavigationType: h } = s;
716
+ const { createRoutesFromChildren: C, matchRoutes: R, useLocation: P, useNavigationType: h } = s;
717
717
  return (d || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && b.init({
718
718
  debug: d,
719
719
  dsn: t,
@@ -729,13 +729,13 @@ const I = ht({}), Ft = ({ children: t, apiURL: n, libraries: o, localStorageKeys
729
729
  ],
730
730
  integrations: [
731
731
  b.reactRouterV6BrowserTracingIntegration({
732
- createRoutesFromChildren: S,
732
+ createRoutesFromChildren: C,
733
733
  matchRoutes: R,
734
734
  useEffect: z,
735
735
  useLocation: P,
736
736
  useNavigationType: h
737
737
  }),
738
- ...n || []
738
+ ...r || []
739
739
  ],
740
740
  release: m,
741
741
  replaysOnErrorSampleRate: a || 1,
@@ -743,20 +743,20 @@ const I = ht({}), Ft = ({ children: t, apiURL: n, libraries: o, localStorageKeys
743
743
  tracePropagationTargets: l,
744
744
  tracesSampleRate: o || 1
745
745
  }), null;
746
- }, Vt = ({ IMaskMixin: t, ...n }) => {
746
+ }, zt = ({ IMaskMixin: t, ...r }) => {
747
747
  const o = ve(
748
748
  // eslint-disable-next-line react/jsx-props-no-spreading
749
749
  () => t(({ TextField: i, ...a }) => /* @__PURE__ */ W.jsx(i, { ...a })),
750
750
  [t]
751
751
  );
752
- return /* @__PURE__ */ W.jsx(o, { ...n });
753
- }, zt = ({ accessToken: t, ...n }) => {
754
- const { libraries: o } = k(I), i = (n == null ? void 0 : n.mapbox) || (o == null ? void 0 : o.mapbox);
752
+ return /* @__PURE__ */ W.jsx(o, { ...r });
753
+ }, Mt = ({ accessToken: t, ...r }) => {
754
+ const { libraries: o } = D(I), i = (r == null ? void 0 : r.mapbox) || (o == null ? void 0 : o.mapbox);
755
755
  if (!i)
756
756
  throw new Error("Mapbox is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
757
757
  return t && (i.accessToken = t), null;
758
- }, Mt = ({ language: t, ...n }) => {
759
- const { libraries: o } = k(I), i = (n == null ? void 0 : n.dayjs) || (o == null ? void 0 : o.dayjs), a = (n == null ? void 0 : n.plugin) || (o == null ? void 0 : o.dayjsPlugin);
758
+ }, Ut = ({ language: t, ...r }) => {
759
+ const { libraries: o } = D(I), i = (r == null ? void 0 : r.dayjs) || (o == null ? void 0 : o.dayjs), a = (r == null ? void 0 : r.plugin) || (o == null ? void 0 : o.dayjsPlugin);
760
760
  if (!i)
761
761
  throw new Error(
762
762
  "Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props of InitializeDaysJSConfig."
@@ -770,31 +770,31 @@ const I = ht({}), Ft = ({ children: t, apiURL: n, libraries: o, localStorageKeys
770
770
  }), await import("dayjs/locale/en"), await import("dayjs/locale/fr"), i.locale(f);
771
771
  })().then();
772
772
  }, [i, a, t]), null;
773
- }, Ut = () => (z(() => {
774
- const t = (n) => {
773
+ }, Gt = () => (z(() => {
774
+ const t = (r) => {
775
775
  try {
776
- n.preventDefault(), n.stopPropagation(), n.stopImmediatePropagation(), window.location.reload();
776
+ r.preventDefault(), r.stopPropagation(), r.stopImmediatePropagation(), window.location.reload();
777
777
  } catch {
778
778
  }
779
779
  };
780
780
  return window.addEventListener("vite:preloadError", t), () => {
781
781
  window.removeEventListener("vite:preloadError", t);
782
782
  };
783
- }, []), null), pt = (t) => t && typeof t == "function", St = (t) => t && typeof t == "function", Gt = ({
783
+ }, []), null), pt = (t) => t && typeof t == "function", Ct = (t) => t && typeof t == "function", Jt = ({
784
784
  children: t,
785
- defaultQueriesOptions: n,
785
+ defaultQueriesOptions: r,
786
786
  defaultMutationsOptions: o,
787
787
  ...i
788
788
  }) => {
789
789
  var u, m;
790
- const { libraries: a } = k(I), l = (i == null ? void 0 : i.QueryClient) || ((u = a == null ? void 0 : a.reactQuery) == null ? void 0 : u.QueryClient), f = (i == null ? void 0 : i.QueryClientProvider) || ((m = a == null ? void 0 : a.reactQuery) == null ? void 0 : m.QueryClientProvider);
790
+ const { libraries: a } = D(I), l = (i == null ? void 0 : i.QueryClient) || ((u = a == null ? void 0 : a.reactQuery) == null ? void 0 : u.QueryClient), f = (i == null ? void 0 : i.QueryClientProvider) || ((m = a == null ? void 0 : a.reactQuery) == null ? void 0 : m.QueryClientProvider);
791
791
  if (!l)
792
792
  throw new Error("QueryClient is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
793
793
  if (!f)
794
794
  throw new Error("QueryClientProvider is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
795
795
  if (!pt(f))
796
796
  throw new Error("Provided QueryClientProvider dependencies are not valid.");
797
- if (!St(l))
797
+ if (!Ct(l))
798
798
  throw new Error("Provided QueryClient dependencies are not valid.");
799
799
  const d = new l({
800
800
  defaultOptions: {
@@ -802,32 +802,32 @@ const I = ht({}), Ft = ({ children: t, apiURL: n, libraries: o, localStorageKeys
802
802
  ...o
803
803
  },
804
804
  queries: {
805
- getNextPageParam: (g, C, b) => g.length + (b || 0),
805
+ getNextPageParam: (g, S, b) => g.length + (b || 0),
806
806
  refetchOnWindowFocus: !1,
807
807
  retry: 3,
808
- ...n
808
+ ...r
809
809
  }
810
810
  }
811
811
  });
812
812
  return /* @__PURE__ */ W.jsx(f, { client: d, children: t });
813
- }, Jt = (t) => {
814
- var m, g, C;
815
- const { libraries: n } = k(I), o = (t == null ? void 0 : t.i18) || (n == null ? void 0 : n.i18), i = ((m = t == null ? void 0 : t.i18) == null ? void 0 : m.translateFunction) || ((g = n == null ? void 0 : n.i18) == null ? void 0 : g.translateFunction), a = ((C = o == null ? void 0 : o.i18next) == null ? void 0 : C.t) || i || ((b) => b), { unknownErrorTranslationKey: l = "error.unknownError" } = t || {}, f = a(l), d = re(
813
+ }, Kt = (t) => {
814
+ var m, g, S;
815
+ const { libraries: r } = D(I), o = (t == null ? void 0 : t.i18) || (r == null ? void 0 : r.i18), i = ((m = t == null ? void 0 : t.i18) == null ? void 0 : m.translateFunction) || ((g = r == null ? void 0 : r.i18) == null ? void 0 : g.translateFunction), a = ((S = o == null ? void 0 : o.i18next) == null ? void 0 : S.t) || i || ((b) => b), { unknownErrorTranslationKey: l = "error.unknownError" } = t || {}, f = a(l), d = re(
816
816
  (b) => {
817
- var S, R, P, h, _, A, F, L, $;
817
+ var C, R, P, h, _, A, F, L, $;
818
818
  const { response: s } = b || {};
819
- return s != null && s.reason ? String(s.reason) : (S = s == null ? void 0 : s.data) != null && S.reason ? String(s.data.reason) : (R = s == null ? void 0 : s.data) != null && R.message ? String(s.data.message) : (h = (P = s == null ? void 0 : s.data) == null ? void 0 : P.detail) != null && h.length && Array.isArray((_ = s == null ? void 0 : s.data) == null ? void 0 : _.detail) && ((F = (A = s == null ? void 0 : s.data) == null ? void 0 : A.detail[0]) != null && F.msg) && typeof (($ = (L = s == null ? void 0 : s.data) == null ? void 0 : L.detail[0]) == null ? void 0 : $.msg) == "string" ? String(s.data.detail[0].msg) : f;
819
+ return s != null && s.reason ? String(s.reason) : (C = s == null ? void 0 : s.data) != null && C.reason ? String(s.data.reason) : (R = s == null ? void 0 : s.data) != null && R.message ? String(s.data.message) : (h = (P = s == null ? void 0 : s.data) == null ? void 0 : P.detail) != null && h.length && Array.isArray((_ = s == null ? void 0 : s.data) == null ? void 0 : _.detail) && ((F = (A = s == null ? void 0 : s.data) == null ? void 0 : A.detail[0]) != null && F.msg) && typeof (($ = (L = s == null ? void 0 : s.data) == null ? void 0 : L.detail[0]) == null ? void 0 : $.msg) == "string" ? String(s.data.detail[0].msg) : f;
820
820
  },
821
821
  [f]
822
822
  );
823
823
  return { getErrorCode: re((b) => {
824
- var S, R, P;
824
+ var C, R, P;
825
825
  const { response: s } = b || {};
826
- return s != null && s.error_code ? String(s == null ? void 0 : s.error_code) : (S = s == null ? void 0 : s.data) != null && S.error_code ? String((R = s == null ? void 0 : s.data) == null ? void 0 : R.error_code) : s != null && s.error_code ? String(s == null ? void 0 : s.error_code) : (P = s == null ? void 0 : s.data) != null && P.error_code ? String(s.data.error_code) : "unknown_error_code";
826
+ return s != null && s.error_code ? String(s == null ? void 0 : s.error_code) : (C = s == null ? void 0 : s.data) != null && C.error_code ? String((R = s == null ? void 0 : s.data) == null ? void 0 : R.error_code) : s != null && s.error_code ? String(s == null ? void 0 : s.error_code) : (P = s == null ? void 0 : s.data) != null && P.error_code ? String(s.data.error_code) : "unknown_error_code";
827
827
  }, []), printError: d };
828
- }, Kt = ({
828
+ }, qt = ({
829
829
  data: t,
830
- fetchNextPage: n,
830
+ fetchNextPage: r,
831
831
  isFetchingNextPage: o,
832
832
  isInitialLoading: i,
833
833
  isLoading: a,
@@ -835,9 +835,9 @@ const I = ht({}), Ft = ({ children: t, apiURL: n, libraries: o, localStorageKeys
835
835
  }) => {
836
836
  const f = re(
837
837
  async (u) => {
838
- o || !l || await n({ pageParam: (u == null ? void 0 : u.pageParam) || u.visibleRowsCount });
838
+ o || !l || await r({ pageParam: (u == null ? void 0 : u.pageParam) || u.visibleRowsCount });
839
839
  },
840
- [l, n, o]
840
+ [l, r, o]
841
841
  ), d = ve(() => {
842
842
  if (t)
843
843
  return t.pages.reduce((u, m) => [...u, ...m], []);
@@ -848,8 +848,8 @@ const I = ht({}), Ft = ({ children: t, apiURL: n, libraries: o, localStorageKeys
848
848
  loadingVariant: i ? "skeleton" : "linear",
849
849
  rows: d
850
850
  };
851
- }, qt = (t) => {
852
- const { libraries: n } = k(I), o = (t == null ? void 0 : t.axios) || (n == null ? void 0 : n.axios), i = (t == null ? void 0 : t.localStorageKey) || "user";
851
+ }, Bt = (t) => {
852
+ const { libraries: r } = D(I), o = (t == null ? void 0 : t.axios) || (r == null ? void 0 : r.axios), i = (t == null ? void 0 : t.localStorageKey) || "user";
853
853
  if (!o)
854
854
  throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in params of useAuth.");
855
855
  const a = re(
@@ -877,21 +877,21 @@ const I = ht({}), Ft = ({ children: t, apiURL: n, libraries: o, localStorageKeys
877
877
  clearAuthenticationToken: l,
878
878
  setAuthenticationToken: a
879
879
  };
880
- }, Ct = ({ library: t, date: n, format: o = "ll" }) => t(n).format(o), bt = (t, n = "km") => {
880
+ }, St = ({ library: t, date: r, format: o = "ll" }) => t(r).format(o), bt = (t, r = "km") => {
881
881
  const o = Number(t);
882
- return Number.isNaN(o) ? `0 ${n}` : `${o.toFixed(2)} ${n}`;
883
- }, Pt = (t) => t != null && t.startsWith("/") ? t != null && t.startsWith("/files") ? t : `/files${t}` : t != null && t.startsWith("files") ? `/${t}` : `/files/${t}`, jt = ({ path: t, size: n, apiURL: o }) => {
882
+ return Number.isNaN(o) ? `0 ${r}` : `${o.toFixed(2)} ${r}`;
883
+ }, Pt = (t) => !t || typeof t != "string" ? "" : t.toLowerCase().replace(/_/g, " ").split(" ").map((r) => r.charAt(0).toUpperCase() + r.slice(1)).join(" "), jt = (t) => t != null && t.startsWith("/") ? t != null && t.startsWith("/files") ? t : `/files${t}` : t != null && t.startsWith("files") ? `/${t}` : `/files/${t}`, Ot = ({ path: t, size: r, apiURL: o }) => {
884
884
  if (!t)
885
885
  return "";
886
- const i = Pt(t), a = `${o}${i}`, l = a.match(/\.(jpeg|jpg|png|gif|bmp|webp|svg|avif)$/) !== null;
887
- return typeof n == "number" && l ? `${a.replace("/files", `/thumbs/${n}`)}` : a;
888
- }, Bt = (t) => {
889
- const { apiURL: n, libraries: o } = k(I), i = (t == null ? void 0 : t.dayjs) || (o == null ? void 0 : o.dayjs);
886
+ const i = jt(t), a = `${o}${i}`, l = a.match(/\.(jpeg|jpg|png|gif|bmp|webp|svg|avif)$/) !== null;
887
+ return typeof r == "number" && l ? `${a.replace("/files", `/thumbs/${r}`)}` : a;
888
+ }, Qt = (t) => {
889
+ const { apiURL: r, libraries: o } = D(I), i = (t == null ? void 0 : t.dayjs) || (o == null ? void 0 : o.dayjs);
890
890
  return {
891
891
  dateAdapter: (f, d) => {
892
892
  if (!i)
893
893
  throw new Error("Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
894
- return Ct({
894
+ return St({
895
895
  date: f,
896
896
  format: d,
897
897
  library: i
@@ -899,66 +899,67 @@ const I = ht({}), Ft = ({ children: t, apiURL: n, libraries: o, localStorageKeys
899
899
  },
900
900
  distanceAdapter: bt,
901
901
  filePathAdapter: (f, d) => {
902
- if (!n)
902
+ if (!r)
903
903
  throw new Error(
904
904
  "API URL is not provided. You can provide it with InjectDependenciesProvider or directly in props to filePathAdapter."
905
905
  );
906
- return jt({
907
- apiURL: n,
906
+ return Ot({
907
+ apiURL: r,
908
908
  path: f,
909
909
  size: d
910
910
  });
911
- }
911
+ },
912
+ worksiteNameAdapter: Pt
912
913
  };
913
- }, te = (t, n) => n === "short" ? t.split("-")[0] : t, Qt = (t, n = "full") => {
914
+ }, te = (t, r) => r === "short" ? t.split("-")[0] : t, Xt = (t, r = "full") => {
914
915
  const [o, i] = ze(() => {
915
916
  const a = (t == null ? void 0 : t.language) || navigator.language;
916
- return t && "isInitialized" in t && t.isInitialized, te(a, n);
917
+ return t && "isInitialized" in t && t.isInitialized, te(a, r);
917
918
  });
918
919
  return z(() => {
919
920
  var l;
920
- t && "isInitialized" in t && t.isInitialized && t.language && i(te(t.language, n));
921
+ t && "isInitialized" in t && t.isInitialized && t.language && i(te(t.language, r));
921
922
  const a = (f) => {
922
- i(te(f, n));
923
+ i(te(f, r));
923
924
  };
924
925
  return (l = t == null ? void 0 : t.on) == null || l.call(t, "languageChanged", a), () => {
925
926
  var f;
926
927
  (f = t == null ? void 0 : t.off) == null || f.call(t, "languageChanged", a);
927
928
  };
928
- }, [t, n]), o;
929
- }, Ot = "tracktor.filter", We = (t, n, o) => `${o}_${t}=>${n}`, Xt = (t) => {
930
- const { libraries: n, localStorageKeys: o } = k(I), i = (t == null ? void 0 : t.reactRouter) || (n == null ? void 0 : n.reactRouter), { useLocation: a, useSearchParams: l } = i, { pathname: f } = a(), [d, u] = l(), m = (o == null ? void 0 : o.filter) || Ot;
929
+ }, [t, r]), o;
930
+ }, Tt = "tracktor.filter", We = (t, r, o) => `${o}_${t}=>${r}`, Ht = (t) => {
931
+ const { libraries: r, localStorageKeys: o } = D(I), i = (t == null ? void 0 : t.reactRouter) || (r == null ? void 0 : r.reactRouter), { useLocation: a, useSearchParams: l } = i, { pathname: f } = a(), [d, u] = l(), m = (o == null ? void 0 : o.filter) || Tt;
931
932
  if (!i)
932
933
  throw new Error(
933
934
  "React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView."
934
935
  );
935
- const g = (S, R, P = !0) => {
936
- const h = We(S, (t == null ? void 0 : t.pathname) || f, m);
936
+ const g = (C, R, P = !0) => {
937
+ const h = We(C, (t == null ? void 0 : t.pathname) || f, m);
937
938
  if (!R || Array.isArray(R) && !R.length) {
938
- d.delete(S), u(d), localStorage.removeItem(h);
939
+ d.delete(C), u(d), localStorage.removeItem(h);
939
940
  return;
940
941
  }
941
- P && R && localStorage.setItem(h, JSON.stringify({ ...d, [S]: R })), R && (d.set(S, JSON.stringify(R)), u(d));
942
+ P && R && localStorage.setItem(h, JSON.stringify({ ...d, [C]: R })), R && (d.set(C, JSON.stringify(R)), u(d));
942
943
  };
943
944
  return {
944
- getFilter: (S, R) => {
945
- const P = d.get(S);
945
+ getFilter: (C, R) => {
946
+ const P = d.get(C);
946
947
  if (P)
947
948
  try {
948
949
  return JSON.parse(P);
949
950
  } catch {
950
951
  return P;
951
952
  }
952
- const h = We(S, (t == null ? void 0 : t.pathname) || f, m), _ = localStorage.getItem(h);
953
+ const h = We(C, (t == null ? void 0 : t.pathname) || f, m), _ = localStorage.getItem(h);
953
954
  if (_)
954
955
  try {
955
- return JSON.parse(_)[S];
956
+ return JSON.parse(_)[C];
956
957
  } catch {
957
958
  }
958
959
  return R;
959
960
  },
960
961
  getFilters: () => {
961
- const S = Object.fromEntries(d.entries()), P = Object.keys(localStorage).filter(
962
+ const C = Object.fromEntries(d.entries()), P = Object.keys(localStorage).filter(
962
963
  (h) => h.startsWith(m) && h.endsWith((t == null ? void 0 : t.pathname) || f)
963
964
  ).reduce((h, _) => {
964
965
  var F, L;
@@ -970,37 +971,37 @@ const I = ht({}), Ft = ({ children: t, apiURL: n, libraries: o, localStorageKeys
970
971
  return h;
971
972
  }, {});
972
973
  return {
973
- ...S,
974
+ ...C,
974
975
  ...P
975
976
  };
976
977
  },
977
- handleFilter: (S, R) => (P, h) => {
978
+ handleFilter: (C, R) => (P, h) => {
978
979
  if (h || Array.isArray(h) && h.length === 0) {
979
980
  const _ = R || "value", A = typeof h == "object" && _ in h ? h[_ || "value"] : h;
980
- g(S, A);
981
+ g(C, A);
981
982
  return;
982
983
  }
983
- g(S, void 0);
984
+ g(C, void 0);
984
985
  },
985
986
  setFilter: g
986
987
  };
987
- }, Tt = (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase(), xt = (t) => {
988
+ }, xt = (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase(), At = (t) => {
988
989
  const i = t.split("/").filter((a) => a.length > 0).map((a) => a.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((u) => u.charAt(0).toUpperCase() + u.slice(1)).join("")).join("");
989
990
  return i.charAt(0).toLowerCase() + i.slice(1);
990
- }, At = (t) => (t.split("/").pop() || t).replace(/\.json$/, "").replace(/^openapi\./, ""), It = (t, n, o) => {
991
- const i = xt(n), a = Tt(o);
991
+ }, It = (t) => (t.split("/").pop() || t).replace(/\.json$/, "").replace(/^openapi\./, ""), kt = (t, r, o) => {
992
+ const i = At(r), a = xt(o);
992
993
  return `${i}${a}`;
993
994
  }, Dt = (t) => {
994
995
  if (t)
995
- return (t == null ? void 0 : t.reduce((n, o) => (n[o] = {
996
+ return (t == null ? void 0 : t.reduce((r, o) => (r[o] = {
996
997
  query: {
997
998
  useInfinite: !0,
998
999
  useInfiniteQueryParam: "offset",
999
1000
  useQuery: !0
1000
1001
  }
1001
- }, n), {})) || {};
1002
- }, Ht = (t) => (Array.isArray(t) ? t : [t]).reduce((o, i) => {
1003
- const { output: a, operationsToGenerateInfiniteQueryHook: l, input: f = "./openapi.json" } = i || {}, d = At(f);
1002
+ }, r), {})) || {};
1003
+ }, Zt = (t) => (Array.isArray(t) ? t : [t]).reduce((o, i) => {
1004
+ const { output: a, operationsToGenerateInfiniteQueryHook: l, input: f = "./openapi.json" } = i || {}, d = It(f);
1004
1005
  return {
1005
1006
  ...o,
1006
1007
  [d]: {
@@ -1023,7 +1024,7 @@ const I = ht({}), Ft = ({ children: t, apiURL: n, libraries: o, localStorageKeys
1023
1024
  name: "axiosCustomInstance",
1024
1025
  path: `${__dirname}/axiosCustomInstance.ts`
1025
1026
  },
1026
- operationName: It,
1027
+ operationName: kt,
1027
1028
  query: {
1028
1029
  useQuery: !0
1029
1030
  }
@@ -1036,25 +1037,26 @@ const I = ht({}), Ft = ({ children: t, apiURL: n, libraries: o, localStorageKeys
1036
1037
  };
1037
1038
  }, {});
1038
1039
  export {
1039
- $t as GTMSendPageView,
1040
- Nt as InitializeAxiosConfig,
1041
- Mt as InitializeDaysJSConfig,
1042
- Yt as InitializeI18nConfig,
1043
- zt as InitializeMapBoxConfig,
1044
- Wt as InitializeSentryConfig,
1040
+ Nt as GTMSendPageView,
1041
+ Yt as InitializeAxiosConfig,
1042
+ Ut as InitializeDaysJSConfig,
1043
+ Wt as InitializeI18nConfig,
1044
+ Mt as InitializeMapBoxConfig,
1045
+ Vt as InitializeSentryConfig,
1045
1046
  I as InjectDependenciesContext,
1046
- Ft as InjectDependenciesProvider,
1047
- Vt as MaskTextField,
1048
- Ut as PreloadErrorHandler,
1049
- Gt as QueryClientProviderWithConfig,
1050
- Lt as RequireAuth,
1051
- Ct as dateAdapter,
1047
+ Lt as InjectDependenciesProvider,
1048
+ zt as MaskTextField,
1049
+ Gt as PreloadErrorHandler,
1050
+ Jt as QueryClientProviderWithConfig,
1051
+ $t as RequireAuth,
1052
+ St as dateAdapter,
1052
1053
  bt as distanceAdapter,
1053
- Ht as getOrvalConfig,
1054
- Bt as useAdapter,
1055
- qt as useAuth,
1056
- Qt as useCurrentLanguage,
1057
- Xt as useFilters,
1058
- Kt as useInfiniteDataGrid,
1059
- Jt as useResponseError
1054
+ Zt as getOrvalConfig,
1055
+ Qt as useAdapter,
1056
+ Bt as useAuth,
1057
+ Xt as useCurrentLanguage,
1058
+ Ht as useFilters,
1059
+ qt as useInfiniteDataGrid,
1060
+ Kt as useResponseError,
1061
+ Pt as worksiteNameAdapter
1060
1062
  };