@tracktor/shared-module 2.12.4 → 2.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -1,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 = {}, P = null, s = null;
19
+ h !== void 0 && (P = "" + h), u.key !== void 0 && (P = "" + 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: P, 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,14 +36,14 @@ 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"), P = Symbol.for("react.lazy"), s = Symbol.for("react.offscreen"), C = Symbol.iterator, R = "@@iterator";
40
40
  function b(e) {
41
41
  if (e === null || typeof e != "object")
42
42
  return null;
43
43
  var r = C && e[C] || 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;
46
+ var y = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
47
47
  function _(e) {
48
48
  {
49
49
  for (var r = arguments.length, c = new Array(r > 1 ? r - 1 : 0), v = 1; v < r; 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 S = 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
+ S.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, S);
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 === P || 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;
@@ -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
117
  case P: {
118
- var w = e, p = w._payload, E = w._init;
118
+ var w = e, S = w._payload, E = w._init;
119
119
  try {
120
- return W(E(p));
120
+ return W(E(S));
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,25 +161,25 @@ 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
  });
@@ -187,7 +187,7 @@ function Et() {
187
187
  G < 0 && _("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 S;
222
+ S = 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 = S, 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);
304
+ case p:
305
+ return H(e.type, r, c);
306
306
  case P: {
307
- var v = e, w = v._payload, p = v._init;
307
+ var v = e, w = v._payload, S = v._init;
308
308
  try {
309
- return X(p(w), r, c);
309
+ return H(S(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 S = Function.call.bind(X);
327
327
  for (var E in e)
328
- if (p(e, E)) {
329
- var y = void 0;
328
+ if (S(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: 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), _("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))
364
+ if (He(e))
365
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);
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: `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: `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, S, 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: S
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 S, 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 (S in r)
448
+ X.call(r, S) && !Xe.hasOwnProperty(S) && (E[S] = r[S]);
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 (S in j)
452
+ E[S] === void 0 && (E[S] = j[S]);
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), _('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 S = w.call(e), E; !(E = S.next()).done; )
530
530
  ue(E.value) && De(E.value, r);
531
531
  }
532
532
  }
@@ -541,13 +541,13 @@ 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);
@@ -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), _("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), _("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, S) {
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, _("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, S);
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
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.");
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: P, Navigate: s, Outlet: C } = d, R = P(), b = ht(!1), y = typeof n == "function" ? n() : !!n, _ = 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]), _ && !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(C, {}) }) : /* @__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, P = g != null && g[n] ? g[n] : null, s = h ? `${p} ${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);
705
+ const { libraries: p } = F(D), P = (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
706
  if (!P)
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
710
  if (P.isInitialized())
711
711
  return null;
712
- const { createRoutesFromChildren: C, matchRoutes: R, useLocation: b, useNavigationType: h } = s;
712
+ const { createRoutesFromChildren: C, matchRoutes: R, useLocation: b, useNavigationType: y } = s;
713
713
  return (d || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && P.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/,
@@ -727,41 +727,41 @@ const D = gt({}), Ft = ({ children: t, apiURL: n, libraries: o, localStorageKeys
727
727
  P.reactRouterV6BrowserTracingIntegration({
728
728
  createRoutesFromChildren: C,
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,45 +771,45 @@ 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, P) => g.length + (P || 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(
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 || ((P) => P), { unknownErrorTranslationKey: f = "error.unknownError" } = t || {}, l = a(f), d = te(
807
807
  (P) => {
808
- var C, R, b, h, _, x, F, L, $;
808
+ var C, R, b, y, _, x, L, I, $;
809
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;
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) : (y = (b = s == null ? void 0 : s.data) == null ? void 0 : b.detail) != null && y.length && Array.isArray((_ = s == null ? void 0 : s.data) == null ? void 0 : _.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
811
  },
812
- [f]
812
+ [l]
813
813
  );
814
814
  return { getErrorCode: te((P) => {
815
815
  var C, R, b;
@@ -822,115 +822,115 @@ const D = gt({}), Ft = ({ children: t, apiURL: n, libraries: o, localStorageKeys
822
822
  isFetchingNextPage: o,
823
823
  isInitialLoading: i,
824
824
  isLoading: a,
825
- enabled: l = !0
825
+ enabled: f = !0
826
826
  }) => {
827
- const f = te(
827
+ const l = te(
828
828
  async (u) => {
829
- o || !l || await n({ pageParam: (u == null ? void 0 : u.pageParam) || u.visibleRowsCount });
829
+ o || !f || await n({ pageParam: (u == null ? void 0 : u.pageParam) || u.visibleRowsCount });
830
830
  },
831
- [l, n, o]
831
+ [f, n, o]
832
832
  ), d = fe(() => {
833
833
  if (t)
834
- return t.pages.reduce((u, m) => [...u, ...m], []);
834
+ return t.pages.reduce((u, h) => [...u, ...h], []);
835
835
  }, [t]);
836
836
  return {
837
- fetchNextPageOnRowsScrollEnd: f,
837
+ fetchNextPageOnRowsScrollEnd: l,
838
838
  isLoading: o || a,
839
839
  loadingVariant: i ? "skeleton" : "linear",
840
840
  rows: d
841
841
  };
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";
842
+ }, qt = (t) => {
843
+ 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
844
  if (!o)
845
845
  throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in params of useAuth.");
846
846
  const a = te(
847
- ({ tokenType: f, accessToken: d }) => {
848
- o.defaults.headers.common.Authorization = `${f} ${d}`;
847
+ ({ tokenType: l, accessToken: d }) => {
848
+ o.defaults.headers.common.Authorization = `${l} ${d}`;
849
849
  },
850
850
  [o.defaults.headers.common]
851
- ), l = () => {
851
+ ), f = () => {
852
852
  o.defaults.headers.common.Authorization = null;
853
853
  };
854
- return z(() => {
855
- const f = ({ newValue: d, key: u }) => {
854
+ return V(() => {
855
+ const l = ({ newValue: d, key: u }) => {
856
856
  if (u === i && d)
857
857
  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);
858
+ const { accessToken: h, tokenType: g } = JSON.parse(d);
859
+ a({ accessToken: h, tokenType: g });
860
+ } catch (h) {
861
+ console.error("Failed to parse newValue from localStorage:", h);
862
862
  }
863
863
  };
864
- return window.addEventListener("storage", f), () => {
865
- window.removeEventListener("storage", f);
864
+ return window.addEventListener("storage", l), () => {
865
+ window.removeEventListener("storage", l);
866
866
  };
867
867
  }, [i, a]), {
868
- clearAuthenticationToken: l,
868
+ clearAuthenticationToken: f,
869
869
  setAuthenticationToken: a
870
870
  };
871
- }, Ct = ({ library: t, date: n, format: o = "ll" }) => t(n).format(o), St = (t, n) => {
871
+ }, St = ({ library: t, date: n, format: o = "ll" }) => t(n).format(o), Ct = (t, n) => {
872
872
  const { fractionDigits: o = 0, metric: i = "km" } = n || {}, a = Number(t);
873
873
  return Number.isNaN(a) ? `0${i}` : `${a.toFixed(o)}${i}`;
874
874
  }, 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
875
  if (!t)
876
876
  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);
877
+ const i = bt(t), a = `${o}${i}`, f = a.match(/\.(jpeg|jpg|png|gif|bmp|webp|svg|avif)$/) !== null;
878
+ return typeof n == "number" && f ? `${a.replace("/files", `/thumbs/${n}`)}` : a;
879
+ }, Kt = (t) => {
880
+ const { apiURL: n, libraries: o } = F(D), i = (t == null ? void 0 : t.dayjs) || (o == null ? void 0 : o.dayjs);
881
881
  return {
882
- dateAdapter: (f, d) => {
882
+ dateAdapter: (l, d) => {
883
883
  if (!i)
884
884
  throw new Error("Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
885
- return Ct({
886
- date: f,
885
+ return St({
886
+ date: l,
887
887
  format: d,
888
888
  library: i
889
889
  });
890
890
  },
891
- distanceAdapter: St,
892
- filePathAdapter: (f, d) => {
891
+ distanceAdapter: Ct,
892
+ filePathAdapter: (l, d) => {
893
893
  if (!n)
894
894
  throw new Error(
895
895
  "API URL is not provided. You can provide it with InjectDependenciesProvider or directly in props to filePathAdapter."
896
896
  );
897
897
  return jt({
898
898
  apiURL: n,
899
- path: f,
899
+ path: l,
900
900
  size: d
901
901
  });
902
902
  },
903
903
  worksiteNameAdapter: Pt
904
904
  };
905
905
  }, ee = (t, n) => n === "short" ? t.split("-")[0] : t, Bt = (t, n = "full") => {
906
- const [o, i] = Ve(() => {
906
+ const [o, i] = Ue(() => {
907
907
  const a = (t == null ? void 0 : t.language) || navigator.language;
908
908
  return t && "isInitialized" in t && t.isInitialized, ee(a, n);
909
909
  });
910
- return z(() => {
911
- var l;
910
+ return V(() => {
911
+ var f;
912
912
  t && "isInitialized" in t && t.isInitialized && t.language && i(ee(t.language, n));
913
- const a = (f) => {
914
- i(ee(f, n));
913
+ const a = (l) => {
914
+ i(ee(l, n));
915
915
  };
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);
916
+ return (f = t == null ? void 0 : t.on) == null || f.call(t, "languageChanged", a), () => {
917
+ var l;
918
+ (l = t == null ? void 0 : t.off) == null || l.call(t, "languageChanged", a);
919
919
  };
920
920
  }, [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;
921
+ }, Tt = "tracktor.filter", Ye = (t, n, o) => `${o}_${t}=>${n}`, Qt = (t) => {
922
+ 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
923
  if (!i)
924
924
  throw new Error(
925
925
  "React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView."
926
926
  );
927
927
  const g = (C, R, b = !0) => {
928
- const h = Ye(C, (t == null ? void 0 : t.pathname) || f, m);
928
+ const y = Ye(C, (t == null ? void 0 : t.pathname) || l, h);
929
929
  if (!R || Array.isArray(R) && !R.length) {
930
- d.delete(C), u(d), localStorage.removeItem(h);
930
+ d.delete(C), u(d), localStorage.removeItem(y);
931
931
  return;
932
932
  }
933
- b && R && localStorage.setItem(h, JSON.stringify({ ...d, [C]: R })), R && (d.set(C, JSON.stringify(R)), u(d));
933
+ b && R && localStorage.setItem(y, JSON.stringify({ ...d, [C]: R })), R && (d.set(C, JSON.stringify(R)), u(d));
934
934
  };
935
935
  return {
936
936
  getFilter: (C, R) => {
@@ -941,7 +941,7 @@ const D = gt({}), Ft = ({ children: t, apiURL: n, libraries: o, localStorageKeys
941
941
  } catch {
942
942
  return b;
943
943
  }
944
- const h = Ye(C, (t == null ? void 0 : t.pathname) || f, m), _ = localStorage.getItem(h);
944
+ const y = Ye(C, (t == null ? void 0 : t.pathname) || l, h), _ = localStorage.getItem(y);
945
945
  if (_)
946
946
  try {
947
947
  return JSON.parse(_)[C];
@@ -951,24 +951,24 @@ const D = gt({}), Ft = ({ children: t, apiURL: n, libraries: o, localStorageKeys
951
951
  },
952
952
  getFilters: () => {
953
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;
954
+ (y) => y.startsWith(h) && y.endsWith((t == null ? void 0 : t.pathname) || l)
955
+ ).reduce((y, _) => {
956
+ var L, I;
957
957
  const x = localStorage.getItem(_);
958
958
  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];
959
+ const $ = JSON.parse(x), O = (L = Object.keys($)) == null ? void 0 : L[0];
960
+ y[O] = (I = Object.values($)) == null ? void 0 : I[0];
961
961
  }
962
- return h;
962
+ return y;
963
963
  }, {});
964
964
  return {
965
965
  ...C,
966
966
  ...b
967
967
  };
968
968
  },
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;
969
+ handleFilter: (C, R) => (b, y) => {
970
+ if (y || Array.isArray(y) && y.length === 0) {
971
+ const _ = R || "value", x = typeof y == "object" && _ in y ? y[_] : y;
972
972
  g(C, x);
973
973
  return;
974
974
  }
@@ -976,52 +976,62 @@ const D = gt({}), Ft = ({ children: t, apiURL: n, libraries: o, localStorageKeys
976
976
  },
977
977
  setFilter: g
978
978
  };
979
- }, Tt = (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase(), At = (t) => {
979
+ }, Ot = (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase(), At = (t) => {
980
980
  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
981
  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] = {
982
+ }, xt = (t) => (t.split("/").pop() || t).replace(/\.json$/, "").replace(/^openapi\./, ""), kt = (t, n, o, i) => {
983
+ const a = At(n), f = Ot(o), l = `${a}${f}`;
984
+ return t && typeof t == "object" && "operationId" in t && (i != null && i.includes(String(t.operationId))) ? `${l}AsQuery` : l;
985
+ }, Dt = (t, n) => {
986
+ const o = {};
987
+ return t == null || t.forEach((i) => {
988
+ o[i] = {
988
989
  query: {
989
990
  useInfinite: !0,
990
991
  useInfiniteQueryParam: "offset",
991
992
  useQuery: !0
992
993
  }
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);
994
+ };
995
+ }), n == null || n.filter((i) => !o[i]).forEach((i) => {
996
+ o[i] = {
997
+ query: {
998
+ useQuery: !0
999
+ }
1000
+ };
1001
+ }), Object.keys(o).length ? o : void 0;
1002
+ }, Ht = (t) => (Array.isArray(t) ? t : [t]).reduce((o, i) => {
1003
+ const { output: a, useInfiniteIds: f, useQueryIds: l, input: d = "./openapi.json" } = i || {}, u = xt(d);
996
1004
  return {
997
1005
  ...o,
998
- [d]: {
1006
+ [u]: {
999
1007
  hooks: {
1000
1008
  afterAllFilesWrite: "prettier src/api/ --write"
1001
1009
  },
1002
- input: f,
1010
+ input: d,
1003
1011
  output: {
1004
1012
  baseUrl: a == null ? void 0 : a.baseUrl,
1005
1013
  client: "react-query",
1006
1014
  mode: "tags-split",
1007
1015
  override: {
1008
- ...(l == null ? void 0 : l.length) && { operations: Dt(l) },
1009
- header: (u) => [
1016
+ ...((f == null ? void 0 : f.length) || (l == null ? void 0 : l.length)) && {
1017
+ operations: Dt(f, l)
1018
+ },
1019
+ header: (h) => [
1010
1020
  "Generated by orval 🍺",
1011
- ...u.title ? [u.title] : [],
1012
- ...u.description ? [u.description] : []
1021
+ ...h.title ? [h.title] : [],
1022
+ ...h.description ? [h.description] : []
1013
1023
  ],
1014
1024
  mutator: {
1015
1025
  name: "axiosCustomInstance",
1016
1026
  path: "./node_modules/@tracktor/shared-module/dist/axiosCustomInstance.ts"
1017
1027
  },
1018
- operationName: It,
1028
+ operationName: (h, g, p) => kt(h, g, p, l),
1019
1029
  query: {
1020
1030
  useQuery: !0
1021
1031
  }
1022
1032
  },
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`,
1033
+ schemas: (a == null ? void 0 : a.schemas) || `src/api/${u}/model`,
1034
+ target: (a == null ? void 0 : a.target) || `src/api/${u}/services/api.ts`,
1025
1035
  ...a
1026
1036
  }
1027
1037
  }
@@ -1030,20 +1040,20 @@ const D = gt({}), Ft = ({ children: t, apiURL: n, libraries: o, localStorageKeys
1030
1040
  export {
1031
1041
  $t as GTMSendPageView,
1032
1042
  Nt as InitializeAxiosConfig,
1033
- zt as InitializeDaysJSConfig,
1043
+ Vt as InitializeDaysJSConfig,
1034
1044
  Yt as InitializeI18nConfig,
1035
1045
  Wt as InitializeSentryConfig,
1036
1046
  D as InjectDependenciesContext,
1037
- Ft as InjectDependenciesProvider,
1038
- Vt as MaskTextField,
1039
- Ut as PreloadErrorHandler,
1047
+ Lt as InjectDependenciesProvider,
1048
+ Ut as MaskTextField,
1049
+ zt as PreloadErrorHandler,
1040
1050
  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,
1051
+ It as RequireAuth,
1052
+ St as dateAdapter,
1053
+ Ct as distanceAdapter,
1054
+ Ht as getOrvalConfig,
1055
+ Kt as useAdapter,
1056
+ qt as useAuth,
1047
1057
  Bt as useCurrentLanguage,
1048
1058
  Qt as useFilters,
1049
1059
  Jt as useInfiniteDataGrid,