@tracktor/shared-module 2.12.4 → 2.13.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 We, { createContext as gt, useMemo as fe, useContext as k, useState as Ve, useRef as ht, useEffect as z, Suspense as yt, useCallback as te } from "react";
1
+ import We, { createContext as gt, useMemo as fe, useContext as F, useState as Ue, useRef as ht, useEffect as V, Suspense as yt, useCallback as te } from "react";
2
2
  var le = { exports: {} }, J = {};
3
3
  /**
4
4
  * @license React
@@ -13,17 +13,17 @@ var $e;
13
13
  function mt() {
14
14
  if ($e) return J;
15
15
  $e = 1;
16
- var t = We, 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 };
17
- function f(d, u, m) {
18
- var g, S = {}, P = null, s = null;
19
- m !== void 0 && (P = "" + m), u.key !== void 0 && (P = "" + u.key), u.ref !== void 0 && (s = u.ref);
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: n, type: d, key: P, ref: s, props: S, _owner: a.current };
16
+ var t = We, 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, f = { key: !0, ref: !0, __self: !0, __source: !0 };
17
+ function l(d, u, h) {
18
+ var g, p = {}, _ = null, s = null;
19
+ h !== void 0 && (_ = "" + h), u.key !== void 0 && (_ = "" + u.key), u.ref !== void 0 && (s = u.ref);
20
+ for (g in u) i.call(u, g) && !f.hasOwnProperty(g) && (p[g] = u[g]);
21
+ if (d && d.defaultProps) for (g in u = d.defaultProps, u) p[g] === void 0 && (p[g] = u[g]);
22
+ return { $$typeof: n, type: d, key: _, ref: s, props: p, _owner: a.current };
23
23
  }
24
- return J.Fragment = o, J.jsx = f, J.jsxs = f, J;
24
+ return J.Fragment = o, J.jsx = l, J.jsxs = l, J;
25
25
  }
26
- var K = {};
26
+ var q = {};
27
27
  /**
28
28
  * @license React
29
29
  * react-jsx-runtime.development.js
@@ -36,15 +36,15 @@ var K = {};
36
36
  var Ne;
37
37
  function Et() {
38
38
  return Ne || (Ne = 1, process.env.NODE_ENV !== "production" && function() {
39
- var t = We, 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"), S = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), s = Symbol.for("react.offscreen"), C = Symbol.iterator, R = "@@iterator";
39
+ var t = We, n = Symbol.for("react.element"), o = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), d = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), s = Symbol.for("react.offscreen"), P = Symbol.iterator, R = "@@iterator";
40
40
  function b(e) {
41
41
  if (e === null || typeof e != "object")
42
42
  return null;
43
- var r = C && e[C] || e[R];
43
+ var r = P && e[P] || e[R];
44
44
  return typeof r == "function" ? r : null;
45
45
  }
46
- var h = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
47
- function _(e) {
46
+ var y = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
47
+ function S(e) {
48
48
  {
49
49
  for (var r = arguments.length, c = new Array(r > 1 ? r - 1 : 0), v = 1; v < r; v++)
50
50
  c[v - 1] = arguments[v];
@@ -53,24 +53,24 @@ function Et() {
53
53
  }
54
54
  function x(e, r, c) {
55
55
  {
56
- var v = h.ReactDebugCurrentFrame, w = v.getStackAddendum();
56
+ var v = y.ReactDebugCurrentFrame, w = v.getStackAddendum();
57
57
  w !== "" && (r += "%s", c = c.concat([w]));
58
- var p = c.map(function(E) {
58
+ var C = 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
+ C.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, C);
62
62
  }
63
63
  }
64
- var F = !1, L = !1, $ = !1, T = !1, de = !1, re;
64
+ var L = !1, I = !1, $ = !1, O = !1, de = !1, re;
65
65
  re = Symbol.for("react.module.reference");
66
- function q(e) {
67
- return !!(typeof e == "string" || typeof e == "function" || e === i || e === l || de || e === a || e === m || e === g || T || e === s || F || L || $ || typeof e == "object" && e !== null && (e.$$typeof === P || e.$$typeof === S || e.$$typeof === f || e.$$typeof === d || e.$$typeof === u || // This needs to include all possible module reference object
66
+ function K(e) {
67
+ return !!(typeof e == "string" || typeof e == "function" || e === i || e === f || de || e === a || e === h || e === g || O || e === s || L || I || $ || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === p || e.$$typeof === l || 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 === re || e.getModuleId !== void 0));
72
72
  }
73
- function ze(e, r, c) {
73
+ function Ve(e, r, c) {
74
74
  var v = e.displayName;
75
75
  if (v)
76
76
  return v;
@@ -83,7 +83,7 @@ function Et() {
83
83
  function W(e) {
84
84
  if (e == null)
85
85
  return null;
86
- if (typeof e.tag == "number" && _("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
86
+ if (typeof e.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
87
87
  return e.displayName || e.name || null;
88
88
  if (typeof e == "string")
89
89
  return e;
@@ -92,11 +92,11 @@ function Et() {
92
92
  return "Fragment";
93
93
  case o:
94
94
  return "Portal";
95
- case l:
95
+ case f:
96
96
  return "Profiler";
97
97
  case a:
98
98
  return "StrictMode";
99
- case m:
99
+ case h:
100
100
  return "Suspense";
101
101
  case g:
102
102
  return "SuspenseList";
@@ -106,18 +106,18 @@ function Et() {
106
106
  case d:
107
107
  var r = e;
108
108
  return ve(r) + ".Consumer";
109
- case f:
109
+ case l:
110
110
  var c = e;
111
111
  return ve(c._context) + ".Provider";
112
112
  case u:
113
- return ze(e, e.render, "ForwardRef");
114
- case S:
113
+ return Ve(e, e.render, "ForwardRef");
114
+ case p:
115
115
  var v = e.displayName || null;
116
116
  return v !== null ? v : W(e.type) || "Memo";
117
- case P: {
118
- var w = e, p = w._payload, E = w._init;
117
+ case _: {
118
+ var w = e, C = w._payload, E = w._init;
119
119
  try {
120
- return W(E(p));
120
+ return W(E(C));
121
121
  } catch {
122
122
  return null;
123
123
  }
@@ -125,18 +125,18 @@ function Et() {
125
125
  }
126
126
  return null;
127
127
  }
128
- var V = Object.assign, G = 0, ge, he, ye, me, Ee, we, Re;
129
- function _e() {
128
+ var U = Object.assign, G = 0, ge, he, ye, me, Ee, we, Re;
129
+ function pe() {
130
130
  }
131
- _e.__reactDisabledLog = !0;
132
- function Ue() {
131
+ pe.__reactDisabledLog = !0;
132
+ function ze() {
133
133
  {
134
134
  if (G === 0) {
135
135
  ge = console.log, he = console.info, ye = console.warn, me = console.error, Ee = console.group, we = console.groupCollapsed, Re = console.groupEnd;
136
136
  var e = {
137
137
  configurable: !0,
138
138
  enumerable: !0,
139
- value: _e,
139
+ value: pe,
140
140
  writable: !0
141
141
  };
142
142
  Object.defineProperties(console, {
@@ -161,33 +161,33 @@ function Et() {
161
161
  writable: !0
162
162
  };
163
163
  Object.defineProperties(console, {
164
- log: V({}, e, {
164
+ log: U({}, e, {
165
165
  value: ge
166
166
  }),
167
- info: V({}, e, {
167
+ info: U({}, e, {
168
168
  value: he
169
169
  }),
170
- warn: V({}, e, {
170
+ warn: U({}, e, {
171
171
  value: ye
172
172
  }),
173
- error: V({}, e, {
173
+ error: U({}, e, {
174
174
  value: me
175
175
  }),
176
- group: V({}, e, {
176
+ group: U({}, e, {
177
177
  value: Ee
178
178
  }),
179
- groupCollapsed: V({}, e, {
179
+ groupCollapsed: U({}, e, {
180
180
  value: we
181
181
  }),
182
- groupEnd: V({}, e, {
182
+ groupEnd: U({}, e, {
183
183
  value: Re
184
184
  })
185
185
  });
186
186
  }
187
- G < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
187
+ G < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
188
188
  }
189
189
  }
190
- var ne = h.ReactCurrentDispatcher, oe;
190
+ var ne = y.ReactCurrentDispatcher, oe;
191
191
  function B(e, r, c) {
192
192
  {
193
193
  if (oe === void 0)
@@ -206,7 +206,7 @@ function Et() {
206
206
  var Ge = typeof WeakMap == "function" ? WeakMap : Map;
207
207
  Q = new Ge();
208
208
  }
209
- function pe(e, r) {
209
+ function _e(e, r) {
210
210
  if (!e || ae)
211
211
  return "";
212
212
  {
@@ -218,8 +218,8 @@ function Et() {
218
218
  ae = !0;
219
219
  var w = Error.prepareStackTrace;
220
220
  Error.prepareStackTrace = void 0;
221
- var p;
222
- p = ne.current, ne.current = null, Ue();
221
+ var C;
222
+ C = ne.current, ne.current = null, ze();
223
223
  try {
224
224
  if (r) {
225
225
  var E = function() {
@@ -254,45 +254,45 @@ function Et() {
254
254
  }
255
255
  } catch (N) {
256
256
  if (N && v && typeof N.stack == "string") {
257
- for (var y = N.stack.split(`
257
+ for (var m = N.stack.split(`
258
258
  `), A = v.stack.split(`
259
- `), j = y.length - 1, O = A.length - 1; j >= 1 && O >= 0 && y[j] !== A[O]; )
260
- O--;
261
- for (; j >= 1 && O >= 0; j--, O--)
262
- if (y[j] !== A[O]) {
263
- if (j !== 1 || O !== 1)
259
+ `), j = m.length - 1, T = A.length - 1; j >= 1 && T >= 0 && m[j] !== A[T]; )
260
+ T--;
261
+ for (; j >= 1 && T >= 0; j--, T--)
262
+ if (m[j] !== A[T]) {
263
+ if (j !== 1 || T !== 1)
264
264
  do
265
- if (j--, O--, O < 0 || y[j] !== A[O]) {
266
- var I = `
267
- ` + y[j].replace(" at new ", " at ");
268
- return e.displayName && I.includes("<anonymous>") && (I = I.replace("<anonymous>", e.displayName)), typeof e == "function" && Q.set(e, I), I;
265
+ if (j--, T--, T < 0 || m[j] !== A[T]) {
266
+ var k = `
267
+ ` + m[j].replace(" at new ", " at ");
268
+ return e.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", e.displayName)), typeof e == "function" && Q.set(e, k), k;
269
269
  }
270
- while (j >= 1 && O >= 0);
270
+ while (j >= 1 && T >= 0);
271
271
  break;
272
272
  }
273
273
  }
274
274
  } finally {
275
- ae = !1, ne.current = p, Me(), Error.prepareStackTrace = w;
275
+ ae = !1, ne.current = C, Me(), Error.prepareStackTrace = w;
276
276
  }
277
- var M = e ? e.displayName || e.name : "", Le = M ? B(M) : "";
278
- return typeof e == "function" && Q.set(e, Le), Le;
277
+ var M = e ? e.displayName || e.name : "", Ie = M ? B(M) : "";
278
+ return typeof e == "function" && Q.set(e, Ie), Ie;
279
279
  }
280
280
  function Je(e, r, c) {
281
- return pe(e, !1);
281
+ return _e(e, !1);
282
282
  }
283
- function Ke(e) {
283
+ function qe(e) {
284
284
  var r = e.prototype;
285
285
  return !!(r && r.isReactComponent);
286
286
  }
287
- function X(e, r, c) {
287
+ function H(e, r, c) {
288
288
  if (e == null)
289
289
  return "";
290
290
  if (typeof e == "function")
291
- return pe(e, Ke(e));
291
+ return _e(e, qe(e));
292
292
  if (typeof e == "string")
293
293
  return B(e);
294
294
  switch (e) {
295
- case m:
295
+ case h:
296
296
  return B("Suspense");
297
297
  case g:
298
298
  return B("SuspenseList");
@@ -301,42 +301,42 @@ function Et() {
301
301
  switch (e.$$typeof) {
302
302
  case u:
303
303
  return Je(e.render);
304
- case S:
305
- return X(e.type, r, c);
306
- case P: {
307
- var v = e, w = v._payload, p = v._init;
304
+ case p:
305
+ return H(e.type, r, c);
306
+ case _: {
307
+ var v = e, w = v._payload, C = v._init;
308
308
  try {
309
- return X(p(w), r, c);
309
+ return H(C(w), r, c);
310
310
  } catch {
311
311
  }
312
312
  }
313
313
  }
314
314
  return "";
315
315
  }
316
- var H = Object.prototype.hasOwnProperty, Ce = {}, Se = h.ReactDebugCurrentFrame;
316
+ var X = Object.prototype.hasOwnProperty, Se = {}, Ce = y.ReactDebugCurrentFrame;
317
317
  function Z(e) {
318
318
  if (e) {
319
- var r = e._owner, c = X(e.type, e._source, r ? r.type : null);
320
- Se.setExtraStackFrame(c);
319
+ var r = e._owner, c = H(e.type, e._source, r ? r.type : null);
320
+ Ce.setExtraStackFrame(c);
321
321
  } else
322
- Se.setExtraStackFrame(null);
322
+ Ce.setExtraStackFrame(null);
323
323
  }
324
- function qe(e, r, c, v, w) {
324
+ function Ke(e, r, c, v, w) {
325
325
  {
326
- var p = Function.call.bind(H);
326
+ var C = Function.call.bind(X);
327
327
  for (var E in e)
328
- if (p(e, E)) {
329
- var y = void 0;
328
+ if (C(e, E)) {
329
+ var m = void 0;
330
330
  try {
331
331
  if (typeof e[E] != "function") {
332
332
  var A = 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 A.name = "Invariant Violation", A;
334
334
  }
335
- y = e[E](r, E, v, c, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
335
+ m = e[E](r, E, v, c, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
336
336
  } catch (j) {
337
- y = j;
337
+ m = j;
338
338
  }
339
- y && !(y instanceof Error) && (Z(w), _("%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).", v || "React class", c, E, typeof y), Z(null)), y instanceof Error && !(y.message in Ce) && (Ce[y.message] = !0, Z(w), _("Failed %s type: %s", c, y.message), Z(null));
339
+ m && !(m instanceof Error) && (Z(w), S("%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).", v || "React class", c, E, typeof m), Z(null)), m instanceof Error && !(m.message in Se) && (Se[m.message] = !0, Z(w), S("Failed %s type: %s", c, m.message), Z(null));
340
340
  }
341
341
  }
342
342
  }
@@ -350,7 +350,7 @@ function Et() {
350
350
  return c;
351
351
  }
352
352
  }
353
- function Xe(e) {
353
+ function He(e) {
354
354
  try {
355
355
  return Pe(e), !1;
356
356
  } catch {
@@ -361,17 +361,17 @@ function Et() {
361
361
  return "" + e;
362
362
  }
363
363
  function be(e) {
364
- if (Xe(e))
365
- return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Qe(e)), Pe(e);
364
+ if (He(e))
365
+ return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Qe(e)), Pe(e);
366
366
  }
367
- var je = h.ReactCurrentOwner, He = {
367
+ var je = y.ReactCurrentOwner, Xe = {
368
368
  key: !0,
369
369
  ref: !0,
370
370
  __self: !0,
371
371
  __source: !0
372
- }, Oe, Te;
372
+ }, Te, Oe;
373
373
  function Ze(e) {
374
- if (H.call(e, "ref")) {
374
+ if (X.call(e, "ref")) {
375
375
  var r = Object.getOwnPropertyDescriptor(e, "ref").get;
376
376
  if (r && r.isReactWarning)
377
377
  return !1;
@@ -379,7 +379,7 @@ function Et() {
379
379
  return e.ref !== void 0;
380
380
  }
381
381
  function et(e) {
382
- if (H.call(e, "key")) {
382
+ if (X.call(e, "key")) {
383
383
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
384
384
  if (r && r.isReactWarning)
385
385
  return !1;
@@ -392,7 +392,7 @@ function Et() {
392
392
  function rt(e, r) {
393
393
  {
394
394
  var c = function() {
395
- Oe || (Oe = !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));
395
+ Te || (Te = !0, S("%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));
396
396
  };
397
397
  c.isReactWarning = !0, Object.defineProperty(e, "key", {
398
398
  get: c,
@@ -403,7 +403,7 @@ function Et() {
403
403
  function nt(e, r) {
404
404
  {
405
405
  var c = function() {
406
- Te || (Te = !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));
406
+ Oe || (Oe = !0, S("%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));
407
407
  };
408
408
  c.isReactWarning = !0, Object.defineProperty(e, "ref", {
409
409
  get: c,
@@ -411,8 +411,8 @@ function Et() {
411
411
  });
412
412
  }
413
413
  }
414
- var ot = function(e, r, c, v, w, p, E) {
415
- var y = {
414
+ var ot = function(e, r, c, v, w, C, E) {
415
+ var m = {
416
416
  // This tag allows us to uniquely identify this as a React Element
417
417
  $$typeof: n,
418
418
  // Built-in properties that belong on the element
@@ -421,47 +421,47 @@ function Et() {
421
421
  ref: c,
422
422
  props: E,
423
423
  // Record the component responsible for creating this element.
424
- _owner: p
424
+ _owner: C
425
425
  };
426
- return y._store = {}, Object.defineProperty(y._store, "validated", {
426
+ return m._store = {}, Object.defineProperty(m._store, "validated", {
427
427
  configurable: !1,
428
428
  enumerable: !1,
429
429
  writable: !0,
430
430
  value: !1
431
- }), Object.defineProperty(y, "_self", {
431
+ }), Object.defineProperty(m, "_self", {
432
432
  configurable: !1,
433
433
  enumerable: !1,
434
434
  writable: !1,
435
435
  value: v
436
- }), Object.defineProperty(y, "_source", {
436
+ }), Object.defineProperty(m, "_source", {
437
437
  configurable: !1,
438
438
  enumerable: !1,
439
439
  writable: !1,
440
440
  value: w
441
- }), Object.freeze && (Object.freeze(y.props), Object.freeze(y)), y;
441
+ }), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
442
442
  };
443
443
  function at(e, r, c, v, w) {
444
444
  {
445
- var p, E = {}, y = null, A = null;
446
- c !== void 0 && (be(c), y = "" + c), et(r) && (be(r.key), y = "" + r.key), Ze(r) && (A = r.ref, tt(r, w));
447
- for (p in r)
448
- H.call(r, p) && !He.hasOwnProperty(p) && (E[p] = r[p]);
445
+ var C, E = {}, m = null, A = null;
446
+ c !== void 0 && (be(c), m = "" + c), et(r) && (be(r.key), m = "" + r.key), Ze(r) && (A = r.ref, tt(r, w));
447
+ for (C in r)
448
+ X.call(r, C) && !Xe.hasOwnProperty(C) && (E[C] = r[C]);
449
449
  if (e && e.defaultProps) {
450
450
  var j = e.defaultProps;
451
- for (p in j)
452
- E[p] === void 0 && (E[p] = j[p]);
451
+ for (C in j)
452
+ E[C] === void 0 && (E[C] = j[C]);
453
453
  }
454
- if (y || A) {
455
- var O = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
456
- y && rt(E, O), A && nt(E, O);
454
+ if (m || A) {
455
+ var T = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
456
+ m && rt(E, T), A && nt(E, T);
457
457
  }
458
- return ot(e, y, A, w, v, je.current, E);
458
+ return ot(e, m, A, w, v, je.current, E);
459
459
  }
460
460
  }
461
- var ce = h.ReactCurrentOwner, Ae = h.ReactDebugCurrentFrame;
462
- function U(e) {
461
+ var ce = y.ReactCurrentOwner, Ae = y.ReactDebugCurrentFrame;
462
+ function z(e) {
463
463
  if (e) {
464
- var r = e._owner, c = X(e.type, e._source, r ? r.type : null);
464
+ var r = e._owner, c = H(e.type, e._source, r ? r.type : null);
465
465
  Ae.setExtraStackFrame(c);
466
466
  } else
467
467
  Ae.setExtraStackFrame(null);
@@ -486,7 +486,7 @@ Check the render method of \`` + e + "`.";
486
486
  function it(e) {
487
487
  return "";
488
488
  }
489
- var Ie = {};
489
+ var ke = {};
490
490
  function ct(e) {
491
491
  {
492
492
  var r = xe();
@@ -505,14 +505,14 @@ Check the top-level render call using <` + c + ">.");
505
505
  return;
506
506
  e._store.validated = !0;
507
507
  var c = ct(r);
508
- if (Ie[c])
508
+ if (ke[c])
509
509
  return;
510
- Ie[c] = !0;
510
+ ke[c] = !0;
511
511
  var v = "";
512
- e && e._owner && e._owner !== ce.current && (v = " It was passed a child from " + W(e._owner.type) + "."), U(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), U(null);
512
+ e && e._owner && e._owner !== ce.current && (v = " It was passed a child from " + W(e._owner.type) + "."), z(e), S('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), z(null);
513
513
  }
514
514
  }
515
- function ke(e, r) {
515
+ function Fe(e, r) {
516
516
  {
517
517
  if (typeof e != "object")
518
518
  return;
@@ -526,7 +526,7 @@ Check the top-level render call using <` + c + ">.");
526
526
  else if (e) {
527
527
  var w = b(e);
528
528
  if (typeof w == "function" && w !== e.entries)
529
- for (var p = w.call(e), E; !(E = p.next()).done; )
529
+ for (var C = w.call(e), E; !(E = C.next()).done; )
530
530
  ue(E.value) && De(E.value, r);
531
531
  }
532
532
  }
@@ -541,19 +541,19 @@ Check the top-level render call using <` + c + ">.");
541
541
  c = r.propTypes;
542
542
  else if (typeof r == "object" && (r.$$typeof === u || // Note: Memo only checks outer props here.
543
543
  // Inner props are checked in the reconciler.
544
- r.$$typeof === S))
544
+ r.$$typeof === p))
545
545
  c = r.propTypes;
546
546
  else
547
547
  return;
548
548
  if (c) {
549
549
  var v = W(r);
550
- qe(c, e.props, "prop", v, e);
550
+ Ke(c, e.props, "prop", v, e);
551
551
  } else if (r.PropTypes !== void 0 && !se) {
552
552
  se = !0;
553
553
  var w = W(r);
554
- _("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", w || "Unknown");
554
+ S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", w || "Unknown");
555
555
  }
556
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
556
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
557
557
  }
558
558
  }
559
559
  function ut(e) {
@@ -561,56 +561,56 @@ Check the top-level render call using <` + c + ">.");
561
561
  for (var r = Object.keys(e.props), c = 0; c < r.length; c++) {
562
562
  var v = r[c];
563
563
  if (v !== "children" && v !== "key") {
564
- U(e), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), U(null);
564
+ z(e), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), z(null);
565
565
  break;
566
566
  }
567
567
  }
568
- e.ref !== null && (U(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), U(null));
568
+ e.ref !== null && (z(e), S("Invalid attribute `ref` supplied to `React.Fragment`."), z(null));
569
569
  }
570
570
  }
571
- function Fe(e, r, c, v, w, p) {
571
+ function Le(e, r, c, v, w, C) {
572
572
  {
573
- var E = q(e);
573
+ var E = K(e);
574
574
  if (!E) {
575
- var y = "";
576
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (y += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
575
+ var m = "";
576
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (m += " 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
577
  var A = it();
578
- A ? y += A : y += xe();
578
+ A ? m += A : m += xe();
579
579
  var j;
580
- e === null ? j = "null" : ie(e) ? j = "array" : e !== void 0 && e.$$typeof === n ? (j = "<" + (W(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);
580
+ e === null ? j = "null" : ie(e) ? j = "array" : e !== void 0 && e.$$typeof === n ? (j = "<" + (W(e.type) || "Unknown") + " />", m = " Did you accidentally export a JSX literal instead of a component?") : j = typeof e, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", j, m);
581
581
  }
582
- var O = at(e, r, c, w, p);
583
- if (O == null)
584
- return O;
582
+ var T = at(e, r, c, w, C);
583
+ if (T == null)
584
+ return T;
585
585
  if (E) {
586
- var I = r.children;
587
- if (I !== void 0)
586
+ var k = r.children;
587
+ if (k !== void 0)
588
588
  if (v)
589
- if (ie(I)) {
590
- for (var M = 0; M < I.length; M++)
591
- ke(I[M], e);
592
- Object.freeze && Object.freeze(I);
589
+ if (ie(k)) {
590
+ for (var M = 0; M < k.length; M++)
591
+ Fe(k[M], e);
592
+ Object.freeze && Object.freeze(k);
593
593
  } else
594
- _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
594
+ S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
595
595
  else
596
- ke(I, e);
596
+ Fe(k, e);
597
597
  }
598
- return e === i ? ut(O) : st(O), O;
598
+ return e === i ? ut(T) : st(T), T;
599
599
  }
600
600
  }
601
601
  function lt(e, r, c) {
602
- return Fe(e, r, c, !0);
602
+ return Le(e, r, c, !0);
603
603
  }
604
604
  function ft(e, r, c) {
605
- return Fe(e, r, c, !1);
605
+ return Le(e, r, c, !1);
606
606
  }
607
607
  var dt = ft, vt = lt;
608
- K.Fragment = i, K.jsx = dt, K.jsxs = vt;
609
- }()), K;
608
+ q.Fragment = i, q.jsx = dt, q.jsxs = vt;
609
+ }()), q;
610
610
  }
611
611
  process.env.NODE_ENV === "production" ? le.exports = mt() : le.exports = Et();
612
612
  var Y = le.exports;
613
- const D = gt({}), Ft = ({ children: t, apiURL: n, libraries: o, localStorageKeys: i }) => {
613
+ const D = gt({}), Lt = ({ children: t, apiURL: n, libraries: o, localStorageKeys: i }) => {
614
614
  const a = fe(
615
615
  () => ({
616
616
  apiURL: n,
@@ -620,58 +620,58 @@ const D = gt({}), Ft = ({ children: t, apiURL: n, libraries: o, localStorageKeys
620
620
  [n, o, i]
621
621
  );
622
622
  return /* @__PURE__ */ Y.jsx(D.Provider, { value: a, children: t });
623
- }, wt = "user", Lt = ({ Fallback: t, isLogged: n, loginPath: o = "/login", redirect401Path: i = "/login", ...a }) => {
624
- var x, F, L, $;
625
- const { libraries: l, localStorageKeys: f } = k(D), 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) || wt;
623
+ }, wt = "user", It = ({ Fallback: t, isLogged: n, loginPath: o = "/login", redirect401Path: i = "/login", ...a }) => {
624
+ var x, L, I, $;
625
+ const { libraries: f, localStorageKeys: l } = F(D), d = (a == null ? void 0 : a.reactRouter) || (f == null ? void 0 : f.reactRouter), u = (a == null ? void 0 : a.axios) || (f == null ? void 0 : f.axios), h = (a == null ? void 0 : a.localStorageKey) || (l == null ? void 0 : l.user) || wt;
626
626
  if (!d)
627
627
  throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
628
- const [g, S] = Ve(null), { useLocation: P, Navigate: s, Outlet: C } = d, R = P(), b = ht(!1), h = typeof n == "function" ? n() : !!n, _ = typeof h == "boolean" ? h : h == null ? void 0 : h.isLogged;
629
- return z(() => {
628
+ const [g, p] = Ue(null), { useLocation: _, Navigate: s, Outlet: P } = d, R = _(), b = ht(!1), y = typeof n == "function" ? n() : !!n, S = typeof y == "boolean" ? y : y == null ? void 0 : y.isLogged;
629
+ return V(() => {
630
630
  b.current || (b.current = !0, u.interceptors.response.use(
631
- (T) => T,
632
- async (T) => {
633
- var q;
634
- return typeof T == "object" && T && "response" in T && T.response && typeof T.response == "object" && "status" in T.response && T.response && typeof T.response == "object" && "status" in T.response && ((q = T == null ? void 0 : T.response) == null ? void 0 : q.status) === 401 && (u.defaults.headers.common.Authorization = null, typeof window < "u" && window.localStorage && localStorage.removeItem(m), S(i)), Promise.reject(T);
631
+ (O) => O,
632
+ async (O) => {
633
+ var K;
634
+ return typeof O == "object" && O && "response" in O && O.response && typeof O.response == "object" && "status" in O.response && O.response && typeof O.response == "object" && "status" in O.response && ((K = O == null ? void 0 : O.response) == null ? void 0 : K.status) === 401 && (u.defaults.headers.common.Authorization = null, typeof window < "u" && window.localStorage && localStorage.removeItem(h), p(i)), Promise.reject(O);
635
635
  }
636
636
  ));
637
- }, [u.defaults.headers.common, u.interceptors.response, m, i]), _ && !g ? /* @__PURE__ */ Y.jsx(yt, { fallback: t, children: (F = (x = R.state) == null ? void 0 : x.from) != null && F.state && (($ = (L = R.state) == null ? void 0 : L.from) == null ? void 0 : $.pathname) === o ? /* @__PURE__ */ Y.jsx(s, { to: R.state.from.state.from.pathname + R.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ Y.jsx(C, {}) }) : /* @__PURE__ */ Y.jsx(s, { to: o + R.search, state: { from: R }, replace: !0 });
637
+ }, [u.defaults.headers.common, u.interceptors.response, h, i]), S && !g ? /* @__PURE__ */ Y.jsx(yt, { fallback: t, children: (L = (x = R.state) == null ? void 0 : x.from) != null && L.state && (($ = (I = R.state) == null ? void 0 : I.from) == null ? void 0 : $.pathname) === o ? /* @__PURE__ */ Y.jsx(s, { to: R.state.from.state.from.pathname + R.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ Y.jsx(P, {}) }) : /* @__PURE__ */ Y.jsx(s, { to: o + R.search, state: { from: R }, replace: !0 });
638
638
  }, $t = ({ data: t, ...n }) => {
639
- const { libraries: o } = k(D), 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);
639
+ const { libraries: o } = F(D), 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);
640
640
  if (!i)
641
641
  throw new Error(
642
642
  "React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView."
643
643
  );
644
644
  if (!a)
645
645
  throw new Error("GTM is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView.");
646
- const { useGoogleTagManager: l } = a, { useLocation: f, Outlet: d } = i, { pathname: u } = f(), { sendEvent: m } = l();
647
- return z(() => {
648
- m({
646
+ const { useGoogleTagManager: f } = a, { useLocation: l, Outlet: d } = i, { pathname: u } = l(), { sendEvent: h } = f();
647
+ return V(() => {
648
+ h({
649
649
  event: "pageView",
650
650
  pathname: u,
651
651
  ...t
652
652
  });
653
- }, [t, u, m]), /* @__PURE__ */ Y.jsx(d, {});
653
+ }, [t, u, h]), /* @__PURE__ */ Y.jsx(d, {});
654
654
  }, Rt = "user", Nt = ({
655
655
  tokenTypeKey: t = "tokenType",
656
656
  tokenKey: n = "accessToken",
657
657
  postContentType: o = "application/json",
658
658
  ...i
659
659
  }) => {
660
- const { apiURL: a = i.apiURL, libraries: l, localStorageKeys: f } = k(D), d = (i == null ? void 0 : i.userLocalStorageKey) || (f == null ? void 0 : f.user) || Rt, u = (i == null ? void 0 : i.axios) || (l == null ? void 0 : l.axios);
660
+ const { apiURL: a = i.apiURL, libraries: f, localStorageKeys: l } = F(D), d = (i == null ? void 0 : i.userLocalStorageKey) || (l == null ? void 0 : l.user) || Rt, u = (i == null ? void 0 : i.axios) || (f == null ? void 0 : f.axios);
661
661
  if (!u)
662
662
  throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
663
663
  if (!(u != null && u.defaults))
664
664
  return null;
665
665
  if (typeof window < "u" && window.localStorage) {
666
- const m = localStorage.getItem(d), g = m ? JSON.parse(m) : null, S = g != null && g[t] ? g[t] : null, P = g != null && g[n] ? g[n] : null, s = m ? `${S} ${P}` : null;
666
+ const h = localStorage.getItem(d), g = h ? JSON.parse(h) : null, p = g != null && g[t] ? g[t] : null, _ = g != null && g[n] ? g[n] : null, s = h ? `${p} ${_}` : null;
667
667
  s && (u.defaults.headers.common.Authorization = s);
668
668
  }
669
669
  return u.defaults.baseURL = a, u.defaults.headers.post["Content-Type"] = o, null;
670
670
  }, Yt = ({ debug: t, resources: n, ...o }) => {
671
- const { libraries: i } = k(D), a = (o == null ? void 0 : o.i18) || (i == null ? void 0 : i.i18), { i18next: l, initReactI18next: f, languageDetector: d } = a || {};
671
+ const { libraries: i } = F(D), a = (o == null ? void 0 : o.i18) || (i == null ? void 0 : i.i18), { i18next: f, initReactI18next: l, languageDetector: d } = a || {};
672
672
  if (!a)
673
673
  throw new Error("i18 is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
674
- return l != null && l.isInitialized || (l.use(d).use(f).init({
674
+ return f != null && f.isInitialized || (f.use(d).use(l).init({
675
675
  debug: t,
676
676
  fallbackLng: "en",
677
677
  interpolation: {
@@ -685,8 +685,8 @@ const D = gt({}), Ft = ({ children: t, apiURL: n, libraries: o, localStorageKeys
685
685
  resources: n,
686
686
  returnNull: !1
687
687
  }).then(() => {
688
- document.documentElement.lang !== l.resolvedLanguage && l.resolvedLanguage && document.documentElement.setAttribute("lang", l.resolvedLanguage);
689
- }), l.on("languageChanged", (u) => {
688
+ document.documentElement.lang !== f.resolvedLanguage && f.resolvedLanguage && document.documentElement.setAttribute("lang", f.resolvedLanguage);
689
+ }), f.on("languageChanged", (u) => {
690
690
  document.documentElement.setAttribute("lang", u);
691
691
  })), null;
692
692
  }, Wt = ({
@@ -695,27 +695,27 @@ const D = gt({}), Ft = ({ children: t, apiURL: n, libraries: o, localStorageKeys
695
695
  tracesSampleRate: o,
696
696
  replaysSessionSampleRate: i,
697
697
  replaysOnErrorSampleRate: a,
698
- tracePropagationTargets: l,
699
- ignoreErrors: f,
698
+ tracePropagationTargets: f,
699
+ ignoreErrors: l,
700
700
  debug: d,
701
701
  environment: u,
702
- release: m,
702
+ release: h,
703
703
  ...g
704
704
  }) => {
705
- const { libraries: S } = k(D), P = (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);
706
- if (!P)
705
+ const { libraries: p } = F(D), _ = (g == null ? void 0 : g.sentry) || (p == null ? void 0 : p.sentry), s = (g == null ? void 0 : g.reactRouter) || (p == null ? void 0 : p.reactRouter);
706
+ if (!_)
707
707
  throw new Error("Sentry is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
708
708
  if (!s)
709
709
  throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
710
- if (P.isInitialized())
710
+ if (_.isInitialized())
711
711
  return null;
712
- const { createRoutesFromChildren: C, matchRoutes: R, useLocation: b, useNavigationType: h } = s;
713
- return (d || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && P.init({
712
+ const { createRoutesFromChildren: P, matchRoutes: R, useLocation: b, useNavigationType: y } = s;
713
+ return (d || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && _.init({
714
714
  debug: d,
715
715
  dsn: t,
716
716
  environment: u || "production",
717
717
  ignoreErrors: [
718
- ...f || [],
718
+ ...l || [],
719
719
  /dynamically imported module/,
720
720
  /Cannot read properties of undefined \(reading 'default'\)/,
721
721
  /Loading chunk \d+ failed/,
@@ -724,44 +724,44 @@ const D = gt({}), Ft = ({ children: t, apiURL: n, libraries: o, localStorageKeys
724
724
  /vite:preloadError/
725
725
  ],
726
726
  integrations: [
727
- P.reactRouterV6BrowserTracingIntegration({
728
- createRoutesFromChildren: C,
727
+ _.reactRouterV6BrowserTracingIntegration({
728
+ createRoutesFromChildren: P,
729
729
  matchRoutes: R,
730
- useEffect: z,
730
+ useEffect: V,
731
731
  useLocation: b,
732
- useNavigationType: h
732
+ useNavigationType: y
733
733
  }),
734
734
  ...n || []
735
735
  ],
736
- release: m,
736
+ release: h,
737
737
  replaysOnErrorSampleRate: a || 1,
738
738
  replaysSessionSampleRate: i || 0.1,
739
- tracePropagationTargets: l,
739
+ tracePropagationTargets: f,
740
740
  tracesSampleRate: o || 1
741
741
  }), null;
742
- }, Vt = ({ IMaskMixin: t, ...n }) => {
742
+ }, Ut = ({ IMaskMixin: t, ...n }) => {
743
743
  const o = fe(
744
744
  // eslint-disable-next-line react/jsx-props-no-spreading
745
745
  () => t(({ TextField: i, ...a }) => /* @__PURE__ */ Y.jsx(i, { ...a })),
746
746
  [t]
747
747
  );
748
748
  return /* @__PURE__ */ Y.jsx(o, { ...n });
749
- }, zt = ({ language: t, ...n }) => {
750
- const { libraries: o } = k(D), 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);
749
+ }, Vt = ({ language: t, ...n }) => {
750
+ const { libraries: o } = F(D), 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);
751
751
  if (!i)
752
752
  throw new Error(
753
753
  "Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props of InitializeDaysJSConfig."
754
754
  );
755
- return z(() => {
755
+ return V(() => {
756
756
  (async () => {
757
757
  var d;
758
- const f = t || ((d = navigator.language) == null ? void 0 : d.slice(0, 2)) || "en";
758
+ const l = t || ((d = navigator.language) == null ? void 0 : d.slice(0, 2)) || "en";
759
759
  a && a.forEach((u) => {
760
760
  u && i.extend(u);
761
- }), await import("dayjs/locale/en"), await import("dayjs/locale/fr"), i.locale(f);
761
+ }), await import("dayjs/locale/en"), await import("dayjs/locale/fr"), i.locale(l);
762
762
  })().then();
763
763
  }, [i, a, t]), null;
764
- }, Ut = () => (z(() => {
764
+ }, zt = () => (V(() => {
765
765
  const t = (n) => {
766
766
  try {
767
767
  n.preventDefault(), n.stopPropagation(), n.stopImmediatePropagation(), window.location.reload();
@@ -771,50 +771,52 @@ const D = gt({}), Ft = ({ children: t, apiURL: n, libraries: o, localStorageKeys
771
771
  return window.addEventListener("vite:preloadError", t), () => {
772
772
  window.removeEventListener("vite:preloadError", t);
773
773
  };
774
- }, []), null), _t = (t) => t && typeof t == "function", pt = (t) => t && typeof t == "function", Mt = ({
774
+ }, []), null), pt = (t) => t && typeof t == "function", _t = (t) => t && typeof t == "function", Mt = ({
775
775
  children: t,
776
776
  defaultQueriesOptions: n,
777
777
  defaultMutationsOptions: o,
778
778
  ...i
779
779
  }) => {
780
- var u, m;
781
- const { libraries: a } = k(D), 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);
782
- if (!l)
783
- throw new Error("QueryClient is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
780
+ var u, h;
781
+ const { libraries: a } = F(D), f = (i == null ? void 0 : i.QueryClient) || ((u = a == null ? void 0 : a.reactQuery) == null ? void 0 : u.QueryClient), l = (i == null ? void 0 : i.QueryClientProvider) || ((h = a == null ? void 0 : a.reactQuery) == null ? void 0 : h.QueryClientProvider);
784
782
  if (!f)
783
+ throw new Error("QueryClient is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
784
+ if (!l)
785
785
  throw new Error("QueryClientProvider is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
786
- if (!_t(f))
787
- throw new Error("Provided QueryClientProvider dependencies are not valid.");
788
786
  if (!pt(l))
787
+ throw new Error("Provided QueryClientProvider dependencies are not valid.");
788
+ if (!_t(f))
789
789
  throw new Error("Provided QueryClient dependencies are not valid.");
790
- const d = new l({
790
+ const d = new f({
791
791
  defaultOptions: {
792
792
  mutations: {
793
793
  ...o
794
794
  },
795
795
  queries: {
796
- getNextPageParam: (g, S, P) => g.length + (P || 0),
796
+ getNextPageParam: (g, p, _) => g.length + (_ || 0),
797
797
  refetchOnWindowFocus: !1,
798
798
  retry: 3,
799
799
  ...n
800
800
  }
801
801
  }
802
802
  });
803
- return /* @__PURE__ */ Y.jsx(f, { client: d, children: t });
803
+ return /* @__PURE__ */ Y.jsx(l, { client: d, children: t });
804
804
  }, Gt = (t) => {
805
- var m, g, S;
806
- const { libraries: n } = k(D), 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 = ((S = o == null ? void 0 : o.i18next) == null ? void 0 : S.t) || i || ((P) => P), { unknownErrorTranslationKey: l = "error.unknownError" } = t || {}, f = a(l), d = te(
807
- (P) => {
808
- var C, R, b, h, _, x, F, L, $;
809
- const { response: s } = P || {};
810
- 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 = (b = s == null ? void 0 : s.data) == null ? void 0 : b.detail) != null && h.length && Array.isArray((_ = s == null ? void 0 : s.data) == null ? void 0 : _.detail) && ((F = (x = s == null ? void 0 : s.data) == null ? void 0 : x.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;
805
+ var h, g, p;
806
+ const { libraries: n } = F(D), o = (t == null ? void 0 : t.i18) || (n == null ? void 0 : n.i18), i = ((h = t == null ? void 0 : t.i18) == null ? void 0 : h.translateFunction) || ((g = n == null ? void 0 : n.i18) == null ? void 0 : g.translateFunction), a = ((p = o == null ? void 0 : o.i18next) == null ? void 0 : p.t) || i || ((_) => _), { unknownErrorTranslationKey: f = "error.unknownError" } = t || {}, l = a(f), d = te(
807
+ (_) => {
808
+ var P, R, b, y, S, x, L, I, $;
809
+ if (_ instanceof Error)
810
+ return _.message;
811
+ const { response: s } = _ || {};
812
+ return s != null && s.reason ? String(s.reason) : (P = s == null ? void 0 : s.data) != null && P.reason ? String(s.data.reason) : (R = s == null ? void 0 : s.data) != null && R.message ? String(s.data.message) : (y = (b = s == null ? void 0 : s.data) == null ? void 0 : b.detail) != null && y.length && Array.isArray((S = s == null ? void 0 : s.data) == null ? void 0 : S.detail) && ((L = (x = s == null ? void 0 : s.data) == null ? void 0 : x.detail[0]) != null && L.msg) && typeof (($ = (I = s == null ? void 0 : s.data) == null ? void 0 : I.detail[0]) == null ? void 0 : $.msg) == "string" ? String(s.data.detail[0].msg) : l;
811
813
  },
812
- [f]
814
+ [l]
813
815
  );
814
- return { getErrorCode: te((P) => {
815
- var C, R, b;
816
- const { response: s } = P || {};
817
- 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) : (b = s == null ? void 0 : s.data) != null && b.error_code ? String(s.data.error_code) : "unknown_error_code";
816
+ return { getErrorCode: te((_) => {
817
+ var P, R, b;
818
+ const { response: s } = _ || {};
819
+ return 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((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) : (b = s == null ? void 0 : s.data) != null && b.error_code ? String(s.data.error_code) : "unknown_error_code";
818
820
  }, []), printError: d };
819
821
  }, Jt = ({
820
822
  data: t,
@@ -822,206 +824,216 @@ const D = gt({}), Ft = ({ children: t, apiURL: n, libraries: o, localStorageKeys
822
824
  isFetchingNextPage: o,
823
825
  isInitialLoading: i,
824
826
  isLoading: a,
825
- enabled: l = !0
827
+ enabled: f = !0
826
828
  }) => {
827
- const f = te(
829
+ const l = te(
828
830
  async (u) => {
829
- o || !l || await n({ pageParam: (u == null ? void 0 : u.pageParam) || u.visibleRowsCount });
831
+ o || !f || await n({ pageParam: (u == null ? void 0 : u.pageParam) || u.visibleRowsCount });
830
832
  },
831
- [l, n, o]
833
+ [f, n, o]
832
834
  ), d = fe(() => {
833
835
  if (t)
834
- return t.pages.reduce((u, m) => [...u, ...m], []);
836
+ return t.pages.reduce((u, h) => [...u, ...h], []);
835
837
  }, [t]);
836
838
  return {
837
- fetchNextPageOnRowsScrollEnd: f,
839
+ fetchNextPageOnRowsScrollEnd: l,
838
840
  isLoading: o || a,
839
841
  loadingVariant: i ? "skeleton" : "linear",
840
842
  rows: d
841
843
  };
842
- }, Kt = (t) => {
843
- const { libraries: n } = k(D), o = (t == null ? void 0 : t.axios) || (n == null ? void 0 : n.axios), i = (t == null ? void 0 : t.localStorageKey) || "user";
844
+ }, qt = (t) => {
845
+ const { libraries: n } = F(D), o = (t == null ? void 0 : t.axios) || (n == null ? void 0 : n.axios), i = (t == null ? void 0 : t.localStorageKey) || "user";
844
846
  if (!o)
845
847
  throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in params of useAuth.");
846
848
  const a = te(
847
- ({ tokenType: f, accessToken: d }) => {
848
- o.defaults.headers.common.Authorization = `${f} ${d}`;
849
+ ({ tokenType: l, accessToken: d }) => {
850
+ o.defaults.headers.common.Authorization = `${l} ${d}`;
849
851
  },
850
852
  [o.defaults.headers.common]
851
- ), l = () => {
853
+ ), f = () => {
852
854
  o.defaults.headers.common.Authorization = null;
853
855
  };
854
- return z(() => {
855
- const f = ({ newValue: d, key: u }) => {
856
+ return V(() => {
857
+ const l = ({ newValue: d, key: u }) => {
856
858
  if (u === i && d)
857
859
  try {
858
- const { accessToken: m, tokenType: g } = JSON.parse(d);
859
- a({ accessToken: m, tokenType: g });
860
- } catch (m) {
861
- console.error("Failed to parse newValue from localStorage:", m);
860
+ const { accessToken: h, tokenType: g } = JSON.parse(d);
861
+ a({ accessToken: h, tokenType: g });
862
+ } catch (h) {
863
+ console.error("Failed to parse newValue from localStorage:", h);
862
864
  }
863
865
  };
864
- return window.addEventListener("storage", f), () => {
865
- window.removeEventListener("storage", f);
866
+ return window.addEventListener("storage", l), () => {
867
+ window.removeEventListener("storage", l);
866
868
  };
867
869
  }, [i, a]), {
868
- clearAuthenticationToken: l,
870
+ clearAuthenticationToken: f,
869
871
  setAuthenticationToken: a
870
872
  };
871
- }, Ct = ({ library: t, date: n, format: o = "ll" }) => t(n).format(o), St = (t, n) => {
873
+ }, St = ({ library: t, date: n, format: o = "ll" }) => t(n).format(o), Ct = (t, n) => {
872
874
  const { fractionDigits: o = 0, metric: i = "km" } = n || {}, a = Number(t);
873
875
  return Number.isNaN(a) ? `0${i}` : `${a.toFixed(o)}${i}`;
874
876
  }, Pt = (t) => !t || typeof t != "string" ? "" : t.replace(/_/g, " ").toLowerCase().split(" ").map((o) => o.length > 0 ? o.charAt(0).toUpperCase() + o.slice(1) : o).join(" "), bt = (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 }) => {
875
877
  if (!t)
876
878
  return "";
877
- const i = bt(t), a = `${o}${i}`, l = a.match(/\.(jpeg|jpg|png|gif|bmp|webp|svg|avif)$/) !== null;
878
- return typeof n == "number" && l ? `${a.replace("/files", `/thumbs/${n}`)}` : a;
879
- }, qt = (t) => {
880
- const { apiURL: n, libraries: o } = k(D), i = (t == null ? void 0 : t.dayjs) || (o == null ? void 0 : o.dayjs);
879
+ const i = bt(t), a = `${o}${i}`, f = a.match(/\.(jpeg|jpg|png|gif|bmp|webp|svg|avif)$/) !== null;
880
+ return typeof n == "number" && f ? `${a.replace("/files", `/thumbs/${n}`)}` : a;
881
+ }, Kt = (t) => {
882
+ const { apiURL: n, libraries: o } = F(D), i = (t == null ? void 0 : t.dayjs) || (o == null ? void 0 : o.dayjs);
881
883
  return {
882
- dateAdapter: (f, d) => {
884
+ dateAdapter: (l, d) => {
883
885
  if (!i)
884
886
  throw new Error("Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
885
- return Ct({
886
- date: f,
887
+ return St({
888
+ date: l,
887
889
  format: d,
888
890
  library: i
889
891
  });
890
892
  },
891
- distanceAdapter: St,
892
- filePathAdapter: (f, d) => {
893
+ distanceAdapter: Ct,
894
+ filePathAdapter: (l, d) => {
893
895
  if (!n)
894
896
  throw new Error(
895
897
  "API URL is not provided. You can provide it with InjectDependenciesProvider or directly in props to filePathAdapter."
896
898
  );
897
899
  return jt({
898
900
  apiURL: n,
899
- path: f,
901
+ path: l,
900
902
  size: d
901
903
  });
902
904
  },
903
905
  worksiteNameAdapter: Pt
904
906
  };
905
907
  }, ee = (t, n) => n === "short" ? t.split("-")[0] : t, Bt = (t, n = "full") => {
906
- const [o, i] = Ve(() => {
908
+ const [o, i] = Ue(() => {
907
909
  const a = (t == null ? void 0 : t.language) || navigator.language;
908
910
  return t && "isInitialized" in t && t.isInitialized, ee(a, n);
909
911
  });
910
- return z(() => {
911
- var l;
912
+ return V(() => {
913
+ var f;
912
914
  t && "isInitialized" in t && t.isInitialized && t.language && i(ee(t.language, n));
913
- const a = (f) => {
914
- i(ee(f, n));
915
+ const a = (l) => {
916
+ i(ee(l, n));
915
917
  };
916
- return (l = t == null ? void 0 : t.on) == null || l.call(t, "languageChanged", a), () => {
917
- var f;
918
- (f = t == null ? void 0 : t.off) == null || f.call(t, "languageChanged", a);
918
+ return (f = t == null ? void 0 : t.on) == null || f.call(t, "languageChanged", a), () => {
919
+ var l;
920
+ (l = t == null ? void 0 : t.off) == null || l.call(t, "languageChanged", a);
919
921
  };
920
922
  }, [t, n]), o;
921
- }, Ot = "tracktor.filter", Ye = (t, n, o) => `${o}_${t}=>${n}`, Qt = (t) => {
922
- const { libraries: n, localStorageKeys: o } = k(D), 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;
923
+ }, Tt = "tracktor.filter", Ye = (t, n, o) => `${o}_${t}=>${n}`, Qt = (t) => {
924
+ const { libraries: n, localStorageKeys: o } = F(D), i = (t == null ? void 0 : t.reactRouter) || (n == null ? void 0 : n.reactRouter), { useLocation: a, useSearchParams: f } = i, { pathname: l } = a(), [d, u] = f(), h = (o == null ? void 0 : o.filter) || Tt;
923
925
  if (!i)
924
926
  throw new Error(
925
927
  "React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView."
926
928
  );
927
- const g = (C, R, b = !0) => {
928
- const h = Ye(C, (t == null ? void 0 : t.pathname) || f, m);
929
+ const g = (P, R, b = !0) => {
930
+ const y = Ye(P, (t == null ? void 0 : t.pathname) || l, h);
929
931
  if (!R || Array.isArray(R) && !R.length) {
930
- d.delete(C), u(d), localStorage.removeItem(h);
932
+ d.delete(P), u(d), localStorage.removeItem(y);
931
933
  return;
932
934
  }
933
- b && R && localStorage.setItem(h, JSON.stringify({ ...d, [C]: R })), R && (d.set(C, JSON.stringify(R)), u(d));
935
+ b && R && localStorage.setItem(y, JSON.stringify({ ...d, [P]: R })), R && (d.set(P, JSON.stringify(R)), u(d));
934
936
  };
935
937
  return {
936
- getFilter: (C, R) => {
937
- const b = d.get(C);
938
+ getFilter: (P, R) => {
939
+ const b = d.get(P);
938
940
  if (b)
939
941
  try {
940
942
  return JSON.parse(b);
941
943
  } catch {
942
944
  return b;
943
945
  }
944
- const h = Ye(C, (t == null ? void 0 : t.pathname) || f, m), _ = localStorage.getItem(h);
945
- if (_)
946
+ const y = Ye(P, (t == null ? void 0 : t.pathname) || l, h), S = localStorage.getItem(y);
947
+ if (S)
946
948
  try {
947
- return JSON.parse(_)[C];
949
+ return JSON.parse(S)[P];
948
950
  } catch {
949
951
  }
950
952
  return R;
951
953
  },
952
954
  getFilters: () => {
953
- const C = Object.fromEntries(d.entries()), b = Object.keys(localStorage).filter(
954
- (h) => h.startsWith(m) && h.endsWith((t == null ? void 0 : t.pathname) || f)
955
- ).reduce((h, _) => {
956
- var F, L;
957
- const x = localStorage.getItem(_);
955
+ const P = Object.fromEntries(d.entries()), b = Object.keys(localStorage).filter(
956
+ (y) => y.startsWith(h) && y.endsWith((t == null ? void 0 : t.pathname) || l)
957
+ ).reduce((y, S) => {
958
+ var L, I;
959
+ const x = localStorage.getItem(S);
958
960
  if (x) {
959
- const $ = JSON.parse(x), T = (F = Object.keys($)) == null ? void 0 : F[0];
960
- h[T] = (L = Object.values($)) == null ? void 0 : L[0];
961
+ const $ = JSON.parse(x), O = (L = Object.keys($)) == null ? void 0 : L[0];
962
+ y[O] = (I = Object.values($)) == null ? void 0 : I[0];
961
963
  }
962
- return h;
964
+ return y;
963
965
  }, {});
964
966
  return {
965
- ...C,
967
+ ...P,
966
968
  ...b
967
969
  };
968
970
  },
969
- handleFilter: (C, R) => (b, h) => {
970
- if (h || Array.isArray(h) && h.length === 0) {
971
- const _ = R || "value", x = typeof h == "object" && _ in h ? h[_] : h;
972
- g(C, x);
971
+ handleFilter: (P, R) => (b, y) => {
972
+ if (y || Array.isArray(y) && y.length === 0) {
973
+ const S = R || "value", x = typeof y == "object" && S in y ? y[S] : y;
974
+ g(P, x);
973
975
  return;
974
976
  }
975
- g(C, void 0);
977
+ g(P, void 0);
976
978
  },
977
979
  setFilter: g
978
980
  };
979
- }, Tt = (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase(), At = (t) => {
981
+ }, Ot = (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase(), At = (t) => {
980
982
  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("");
981
983
  return i.charAt(0).toLowerCase() + i.slice(1);
982
- }, xt = (t) => (t.split("/").pop() || t).replace(/\.json$/, "").replace(/^openapi\./, ""), It = (t, n, o) => {
983
- const i = At(n), a = Tt(o);
984
- return `${i}${a}`;
985
- }, Dt = (t) => {
986
- if (t)
987
- return (t == null ? void 0 : t.reduce((n, o) => (n[o] = {
984
+ }, xt = (t) => (t.split("/").pop() || t).replace(/\.json$/, "").replace(/^openapi\./, ""), kt = (t, n, o, i) => {
985
+ const a = At(n), f = Ot(o), l = `${a}${f}`;
986
+ return t && typeof t == "object" && "operationId" in t && (i != null && i.includes(String(t.operationId))) ? `${l}AsQuery` : l;
987
+ }, Dt = (t, n) => {
988
+ const o = {};
989
+ return t == null || t.forEach((i) => {
990
+ o[i] = {
988
991
  query: {
989
992
  useInfinite: !0,
990
993
  useInfiniteQueryParam: "offset",
991
994
  useQuery: !0
992
995
  }
993
- }, n), {})) || {};
994
- }, Xt = (t) => (Array.isArray(t) ? t : [t]).reduce((o, i) => {
995
- const { output: a, operationsToGenerateInfiniteQueryHook: l, input: f = "./openapi.json" } = i || {}, d = xt(f);
996
+ };
997
+ }), n == null || n.filter((i) => !o[i]).forEach((i) => {
998
+ o[i] = {
999
+ query: {
1000
+ useQuery: !0
1001
+ }
1002
+ };
1003
+ }), Object.keys(o).length ? o : void 0;
1004
+ }, Ht = (t) => (Array.isArray(t) ? t : [t]).reduce((o, i) => {
1005
+ const { output: a, useInfiniteIds: f, useQueryIds: l, input: d = "./openapi.json" } = i || {}, u = xt(d);
996
1006
  return {
997
1007
  ...o,
998
- [d]: {
1008
+ [u]: {
999
1009
  hooks: {
1000
1010
  afterAllFilesWrite: "prettier src/api/ --write"
1001
1011
  },
1002
- input: f,
1012
+ input: d,
1003
1013
  output: {
1004
1014
  baseUrl: a == null ? void 0 : a.baseUrl,
1005
1015
  client: "react-query",
1006
1016
  mode: "tags-split",
1007
1017
  override: {
1008
- ...(l == null ? void 0 : l.length) && { operations: Dt(l) },
1009
- header: (u) => [
1018
+ ...((f == null ? void 0 : f.length) || (l == null ? void 0 : l.length)) && {
1019
+ operations: Dt(f, l)
1020
+ },
1021
+ header: (h) => [
1010
1022
  "Generated by orval 🍺",
1011
- ...u.title ? [u.title] : [],
1012
- ...u.description ? [u.description] : []
1023
+ ...h.title ? [h.title] : [],
1024
+ ...h.description ? [h.description] : []
1013
1025
  ],
1014
1026
  mutator: {
1015
1027
  name: "axiosCustomInstance",
1016
1028
  path: "./node_modules/@tracktor/shared-module/dist/axiosCustomInstance.ts"
1017
1029
  },
1018
- operationName: It,
1030
+ operationName: (h, g, p) => kt(h, g, p, l),
1019
1031
  query: {
1020
1032
  useQuery: !0
1021
1033
  }
1022
1034
  },
1023
- schemas: (a == null ? void 0 : a.schemas) || `src/api/${d}/model`,
1024
- target: (a == null ? void 0 : a.target) || `src/api/${d}/services/api.ts`,
1035
+ schemas: (a == null ? void 0 : a.schemas) || `src/api/${u}/model`,
1036
+ target: (a == null ? void 0 : a.target) || `src/api/${u}/services/api.ts`,
1025
1037
  ...a
1026
1038
  }
1027
1039
  }
@@ -1030,20 +1042,20 @@ const D = gt({}), Ft = ({ children: t, apiURL: n, libraries: o, localStorageKeys
1030
1042
  export {
1031
1043
  $t as GTMSendPageView,
1032
1044
  Nt as InitializeAxiosConfig,
1033
- zt as InitializeDaysJSConfig,
1045
+ Vt as InitializeDaysJSConfig,
1034
1046
  Yt as InitializeI18nConfig,
1035
1047
  Wt as InitializeSentryConfig,
1036
1048
  D as InjectDependenciesContext,
1037
- Ft as InjectDependenciesProvider,
1038
- Vt as MaskTextField,
1039
- Ut as PreloadErrorHandler,
1049
+ Lt as InjectDependenciesProvider,
1050
+ Ut as MaskTextField,
1051
+ zt as PreloadErrorHandler,
1040
1052
  Mt as QueryClientProviderWithConfig,
1041
- Lt as RequireAuth,
1042
- Ct as dateAdapter,
1043
- St as distanceAdapter,
1044
- Xt as getOrvalConfig,
1045
- qt as useAdapter,
1046
- Kt as useAuth,
1053
+ It as RequireAuth,
1054
+ St as dateAdapter,
1055
+ Ct as distanceAdapter,
1056
+ Ht as getOrvalConfig,
1057
+ Kt as useAdapter,
1058
+ qt as useAuth,
1047
1059
  Bt as useCurrentLanguage,
1048
1060
  Qt as useFilters,
1049
1061
  Jt as useInfiniteDataGrid,