@tracktor/shared-module 1.0.8 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
1
  # [Versions](https://github.com/Tracktor/shared-module/releases)
2
2
 
3
- ## v1.0.8
3
+ ## v1.0.9
4
4
  - **[fix]** : fix and improvement
@@ -1,4 +1,4 @@
1
- import { c as o } from "./main-DWJHWlv8.js";
1
+ import { c as o } from "./main-YTkqJNOe.js";
2
2
  var a = { exports: {} };
3
3
  (function(t, _) {
4
4
  (function(r, e) {
@@ -1,4 +1,4 @@
1
- import { c as m } from "./main-DWJHWlv8.js";
1
+ import { c as m } from "./main-YTkqJNOe.js";
2
2
  import o from "dayjs";
3
3
  var i = { exports: {} };
4
4
  (function(n, s) {
@@ -1,19 +1,19 @@
1
- import Ie, { useState as _r, useRef as Rr, useEffect as M, Suspense as Cr, createContext as Tr, useMemo as ue, useContext as Ne, useCallback as ie } from "react";
1
+ import Ie, { useState as Rr, useRef as _r, useEffect as X, Suspense as Cr, createContext as Tr, useMemo as ue, useContext as Ne, useCallback as ie } from "react";
2
2
  import $ from "axios";
3
- import { useLocation as le, Navigate as Me, Outlet as We, createRoutesFromChildren as wr, matchRoutes as Sr, useNavigationType as Or } from "react-router-dom";
3
+ import { useLocation as le, Navigate as Me, Outlet as We, createRoutesFromChildren as Sr, matchRoutes as wr, useNavigationType as Or } from "react-router-dom";
4
4
  import { useGoogleTagManager as xr } from "@tracktor/react-google-tag-manager";
5
- import N, { t as jr } from "i18next";
5
+ import I, { t as jr } from "i18next";
6
6
  import Pr from "i18next-browser-languagedetector";
7
7
  import { initReactI18next as Ar } from "react-i18next";
8
8
  import * as oe from "@sentry/react";
9
9
  import kr from "mapbox-gl";
10
- import q from "dayjs";
10
+ import U from "dayjs";
11
11
  import { QueryClient as Dr, QueryClientProvider as $r } from "@tanstack/react-query";
12
12
  var Mr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
13
13
  function Fr(t) {
14
14
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
15
15
  }
16
- var se = { exports: {} }, z = {};
16
+ var se = { exports: {} }, V = {};
17
17
  /**
18
18
  * @license React
19
19
  * react-jsx-runtime.development.js
@@ -26,25 +26,25 @@ var se = { exports: {} }, z = {};
26
26
  var Fe;
27
27
  function Lr() {
28
28
  return Fe || (Fe = 1, process.env.NODE_ENV !== "production" && function() {
29
- var t = Ie, n = Symbol.for("react.element"), i = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), h = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), j = Symbol.iterator, S = "@@iterator";
30
- function _(e) {
29
+ var t = Ie, n = Symbol.for("react.element"), i = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), j = Symbol.iterator, w = "@@iterator";
30
+ function R(e) {
31
31
  if (e === null || typeof e != "object")
32
32
  return null;
33
- var r = j && e[j] || e[S];
33
+ var r = j && e[j] || e[w];
34
34
  return typeof r == "function" ? r : null;
35
35
  }
36
36
  var D = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
37
- function R(e) {
37
+ function _(e) {
38
38
  {
39
39
  for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), u = 1; u < r; u++)
40
40
  a[u - 1] = arguments[u];
41
- L("error", e, a);
41
+ F("error", e, a);
42
42
  }
43
43
  }
44
- function L(e, r, a) {
44
+ function F(e, r, a) {
45
45
  {
46
- var u = D.ReactDebugCurrentFrame, v = u.getStackAddendum();
47
- v !== "" && (r += "%s", a = a.concat([v]));
46
+ var u = D.ReactDebugCurrentFrame, p = u.getStackAddendum();
47
+ p !== "" && (r += "%s", a = a.concat([p]));
48
48
  var m = a.map(function(d) {
49
49
  return String(d);
50
50
  });
@@ -54,7 +54,7 @@ function Lr() {
54
54
  var ze = !1, Ue = !1, qe = !1, Be = !1, Ge = !1, fe;
55
55
  fe = Symbol.for("react.module.reference");
56
56
  function Je(e) {
57
- return !!(typeof e == "string" || typeof e == "function" || e === s || e === h || Ge || e === p || e === g || e === y || Be || e === x || ze || Ue || qe || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === C || e.$$typeof === o || e.$$typeof === c || e.$$typeof === l || // This needs to include all possible module reference object
57
+ return !!(typeof e == "string" || typeof e == "function" || e === s || e === y || Ge || e === v || e === g || e === h || Be || e === x || ze || Ue || qe || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === C || e.$$typeof === o || e.$$typeof === c || e.$$typeof === l || // This needs to include all possible module reference object
58
58
  // types supported by any Flight configuration anywhere since
59
59
  // we don't know which Flight build this will end up being used
60
60
  // with.
@@ -64,8 +64,8 @@ function Lr() {
64
64
  var u = e.displayName;
65
65
  if (u)
66
66
  return u;
67
- var v = r.displayName || r.name || "";
68
- return v !== "" ? a + "(" + v + ")" : a;
67
+ var p = r.displayName || r.name || "";
68
+ return p !== "" ? a + "(" + p + ")" : a;
69
69
  }
70
70
  function de(e) {
71
71
  return e.displayName || "Context";
@@ -73,7 +73,7 @@ function Lr() {
73
73
  function P(e) {
74
74
  if (e == null)
75
75
  return null;
76
- if (typeof e.tag == "number" && R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
76
+ 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")
77
77
  return e.displayName || e.name || null;
78
78
  if (typeof e == "string")
79
79
  return e;
@@ -82,13 +82,13 @@ function Lr() {
82
82
  return "Fragment";
83
83
  case i:
84
84
  return "Portal";
85
- case h:
85
+ case y:
86
86
  return "Profiler";
87
- case p:
87
+ case v:
88
88
  return "StrictMode";
89
89
  case g:
90
90
  return "Suspense";
91
- case y:
91
+ case h:
92
92
  return "SuspenseList";
93
93
  }
94
94
  if (typeof e == "object")
@@ -105,7 +105,7 @@ function Lr() {
105
105
  var u = e.displayName || null;
106
106
  return u !== null ? u : P(e.type) || "Memo";
107
107
  case T: {
108
- var v = e, m = v._payload, d = v._init;
108
+ var p = e, m = p._payload, d = p._init;
109
109
  try {
110
110
  return P(d(m));
111
111
  } catch {
@@ -115,14 +115,14 @@ function Lr() {
115
115
  }
116
116
  return null;
117
117
  }
118
- var F = Object.assign, W = 0, ve, pe, me, ge, he, ye, be;
118
+ var M = Object.assign, N = 0, pe, ve, me, ge, he, ye, be;
119
119
  function Ee() {
120
120
  }
121
121
  Ee.__reactDisabledLog = !0;
122
122
  function Xe() {
123
123
  {
124
- if (W === 0) {
125
- ve = console.log, pe = console.info, me = console.warn, ge = console.error, he = console.group, ye = console.groupCollapsed, be = console.groupEnd;
124
+ if (N === 0) {
125
+ pe = console.log, ve = console.info, me = console.warn, ge = console.error, he = console.group, ye = console.groupCollapsed, be = console.groupEnd;
126
126
  var e = {
127
127
  configurable: !0,
128
128
  enumerable: !0,
@@ -139,77 +139,77 @@ function Lr() {
139
139
  groupEnd: e
140
140
  });
141
141
  }
142
- W++;
142
+ N++;
143
143
  }
144
144
  }
145
- function Ze() {
145
+ function Ke() {
146
146
  {
147
- if (W--, W === 0) {
147
+ if (N--, N === 0) {
148
148
  var e = {
149
149
  configurable: !0,
150
150
  enumerable: !0,
151
151
  writable: !0
152
152
  };
153
153
  Object.defineProperties(console, {
154
- log: F({}, e, {
155
- value: ve
156
- }),
157
- info: F({}, e, {
154
+ log: M({}, e, {
158
155
  value: pe
159
156
  }),
160
- warn: F({}, e, {
157
+ info: M({}, e, {
158
+ value: ve
159
+ }),
160
+ warn: M({}, e, {
161
161
  value: me
162
162
  }),
163
- error: F({}, e, {
163
+ error: M({}, e, {
164
164
  value: ge
165
165
  }),
166
- group: F({}, e, {
166
+ group: M({}, e, {
167
167
  value: he
168
168
  }),
169
- groupCollapsed: F({}, e, {
169
+ groupCollapsed: M({}, e, {
170
170
  value: ye
171
171
  }),
172
- groupEnd: F({}, e, {
172
+ groupEnd: M({}, e, {
173
173
  value: be
174
174
  })
175
175
  });
176
176
  }
177
- W < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
177
+ N < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
178
178
  }
179
179
  }
180
- var Z = D.ReactCurrentDispatcher, Q;
181
- function B(e, r, a) {
180
+ var K = D.ReactCurrentDispatcher, Z;
181
+ function q(e, r, a) {
182
182
  {
183
- if (Q === void 0)
183
+ if (Z === void 0)
184
184
  try {
185
185
  throw Error();
186
- } catch (v) {
187
- var u = v.stack.trim().match(/\n( *(at )?)/);
188
- Q = u && u[1] || "";
186
+ } catch (p) {
187
+ var u = p.stack.trim().match(/\n( *(at )?)/);
188
+ Z = u && u[1] || "";
189
189
  }
190
190
  return `
191
- ` + Q + e;
191
+ ` + Z + e;
192
192
  }
193
193
  }
194
- var K = !1, G;
194
+ var Q = !1, B;
195
195
  {
196
- var Qe = typeof WeakMap == "function" ? WeakMap : Map;
197
- G = new Qe();
196
+ var Ze = typeof WeakMap == "function" ? WeakMap : Map;
197
+ B = new Ze();
198
198
  }
199
- function _e(e, r) {
200
- if (!e || K)
199
+ function Re(e, r) {
200
+ if (!e || Q)
201
201
  return "";
202
202
  {
203
- var a = G.get(e);
203
+ var a = B.get(e);
204
204
  if (a !== void 0)
205
205
  return a;
206
206
  }
207
207
  var u;
208
- K = !0;
209
- var v = Error.prepareStackTrace;
208
+ Q = !0;
209
+ var p = Error.prepareStackTrace;
210
210
  Error.prepareStackTrace = void 0;
211
211
  var m;
212
- m = Z.current, Z.current = null, Xe();
212
+ m = K.current, K.current = null, Xe();
213
213
  try {
214
214
  if (r) {
215
215
  var d = function() {
@@ -245,88 +245,88 @@ function Lr() {
245
245
  } catch (A) {
246
246
  if (A && u && typeof A.stack == "string") {
247
247
  for (var f = A.stack.split(`
248
- `), w = u.stack.split(`
249
- `), b = f.length - 1, E = w.length - 1; b >= 1 && E >= 0 && f[b] !== w[E]; )
248
+ `), S = u.stack.split(`
249
+ `), b = f.length - 1, E = S.length - 1; b >= 1 && E >= 0 && f[b] !== S[E]; )
250
250
  E--;
251
251
  for (; b >= 1 && E >= 0; b--, E--)
252
- if (f[b] !== w[E]) {
252
+ if (f[b] !== S[E]) {
253
253
  if (b !== 1 || E !== 1)
254
254
  do
255
- if (b--, E--, E < 0 || f[b] !== w[E]) {
255
+ if (b--, E--, E < 0 || f[b] !== S[E]) {
256
256
  var O = `
257
257
  ` + f[b].replace(" at new ", " at ");
258
- return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && G.set(e, O), O;
258
+ return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && B.set(e, O), O;
259
259
  }
260
260
  while (b >= 1 && E >= 0);
261
261
  break;
262
262
  }
263
263
  }
264
264
  } finally {
265
- K = !1, Z.current = m, Ze(), Error.prepareStackTrace = v;
265
+ Q = !1, K.current = m, Ke(), Error.prepareStackTrace = p;
266
266
  }
267
- var I = e ? e.displayName || e.name : "", $e = I ? B(I) : "";
268
- return typeof e == "function" && G.set(e, $e), $e;
267
+ var Y = e ? e.displayName || e.name : "", $e = Y ? q(Y) : "";
268
+ return typeof e == "function" && B.set(e, $e), $e;
269
269
  }
270
- function Ke(e, r, a) {
271
- return _e(e, !1);
270
+ function Qe(e, r, a) {
271
+ return Re(e, !1);
272
272
  }
273
273
  function er(e) {
274
274
  var r = e.prototype;
275
275
  return !!(r && r.isReactComponent);
276
276
  }
277
- function J(e, r, a) {
277
+ function G(e, r, a) {
278
278
  if (e == null)
279
279
  return "";
280
280
  if (typeof e == "function")
281
- return _e(e, er(e));
281
+ return Re(e, er(e));
282
282
  if (typeof e == "string")
283
- return B(e);
283
+ return q(e);
284
284
  switch (e) {
285
285
  case g:
286
- return B("Suspense");
287
- case y:
288
- return B("SuspenseList");
286
+ return q("Suspense");
287
+ case h:
288
+ return q("SuspenseList");
289
289
  }
290
290
  if (typeof e == "object")
291
291
  switch (e.$$typeof) {
292
292
  case l:
293
- return Ke(e.render);
293
+ return Qe(e.render);
294
294
  case C:
295
- return J(e.type, r, a);
295
+ return G(e.type, r, a);
296
296
  case T: {
297
- var u = e, v = u._payload, m = u._init;
297
+ var u = e, p = u._payload, m = u._init;
298
298
  try {
299
- return J(m(v), r, a);
299
+ return G(m(p), r, a);
300
300
  } catch {
301
301
  }
302
302
  }
303
303
  }
304
304
  return "";
305
305
  }
306
- var H = Object.prototype.hasOwnProperty, Re = {}, Ce = D.ReactDebugCurrentFrame;
307
- function X(e) {
306
+ var J = Object.prototype.hasOwnProperty, _e = {}, Ce = D.ReactDebugCurrentFrame;
307
+ function H(e) {
308
308
  if (e) {
309
- var r = e._owner, a = J(e.type, e._source, r ? r.type : null);
309
+ var r = e._owner, a = G(e.type, e._source, r ? r.type : null);
310
310
  Ce.setExtraStackFrame(a);
311
311
  } else
312
312
  Ce.setExtraStackFrame(null);
313
313
  }
314
- function rr(e, r, a, u, v) {
314
+ function rr(e, r, a, u, p) {
315
315
  {
316
- var m = Function.call.bind(H);
316
+ var m = Function.call.bind(J);
317
317
  for (var d in e)
318
318
  if (m(e, d)) {
319
319
  var f = void 0;
320
320
  try {
321
321
  if (typeof e[d] != "function") {
322
- var w = Error((u || "React class") + ": " + a + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
323
- throw w.name = "Invariant Violation", w;
322
+ var S = Error((u || "React class") + ": " + a + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
323
+ throw S.name = "Invariant Violation", S;
324
324
  }
325
325
  f = e[d](r, d, u, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
326
326
  } catch (b) {
327
327
  f = b;
328
328
  }
329
- f && !(f instanceof Error) && (X(v), R("%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).", u || "React class", a, d, typeof f), X(null)), f instanceof Error && !(f.message in Re) && (Re[f.message] = !0, X(v), R("Failed %s type: %s", a, f.message), X(null));
329
+ f && !(f instanceof Error) && (H(p), _("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", u || "React class", a, d, typeof f), H(null)), f instanceof Error && !(f.message in _e) && (_e[f.message] = !0, H(p), _("Failed %s type: %s", a, f.message), H(null));
330
330
  }
331
331
  }
332
332
  }
@@ -350,19 +350,19 @@ function Lr() {
350
350
  function Te(e) {
351
351
  return "" + e;
352
352
  }
353
- function we(e) {
353
+ function Se(e) {
354
354
  if (ar(e))
355
- return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", nr(e)), Te(e);
355
+ return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", nr(e)), Te(e);
356
356
  }
357
- var V = D.ReactCurrentOwner, or = {
357
+ var W = D.ReactCurrentOwner, or = {
358
358
  key: !0,
359
359
  ref: !0,
360
360
  __self: !0,
361
361
  __source: !0
362
- }, Se, Oe, re;
362
+ }, we, Oe, re;
363
363
  re = {};
364
364
  function ir(e) {
365
- if (H.call(e, "ref")) {
365
+ if (J.call(e, "ref")) {
366
366
  var r = Object.getOwnPropertyDescriptor(e, "ref").get;
367
367
  if (r && r.isReactWarning)
368
368
  return !1;
@@ -370,7 +370,7 @@ function Lr() {
370
370
  return e.ref !== void 0;
371
371
  }
372
372
  function sr(e) {
373
- if (H.call(e, "key")) {
373
+ if (J.call(e, "key")) {
374
374
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
375
375
  if (r && r.isReactWarning)
376
376
  return !1;
@@ -378,15 +378,15 @@ function Lr() {
378
378
  return e.key !== void 0;
379
379
  }
380
380
  function ur(e, r) {
381
- if (typeof e.ref == "string" && V.current && r && V.current.stateNode !== r) {
382
- var a = P(V.current.type);
383
- re[a] || (R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', P(V.current.type), e.ref), re[a] = !0);
381
+ if (typeof e.ref == "string" && W.current && r && W.current.stateNode !== r) {
382
+ var a = P(W.current.type);
383
+ re[a] || (_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', P(W.current.type), e.ref), re[a] = !0);
384
384
  }
385
385
  }
386
386
  function lr(e, r) {
387
387
  {
388
388
  var a = function() {
389
- Se || (Se = !0, R("%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));
389
+ we || (we = !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));
390
390
  };
391
391
  a.isReactWarning = !0, Object.defineProperty(e, "key", {
392
392
  get: a,
@@ -397,7 +397,7 @@ function Lr() {
397
397
  function cr(e, r) {
398
398
  {
399
399
  var a = function() {
400
- Oe || (Oe = !0, R("%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));
400
+ 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));
401
401
  };
402
402
  a.isReactWarning = !0, Object.defineProperty(e, "ref", {
403
403
  get: a,
@@ -405,7 +405,7 @@ function Lr() {
405
405
  });
406
406
  }
407
407
  }
408
- var fr = function(e, r, a, u, v, m, d) {
408
+ var fr = function(e, r, a, u, p, m, d) {
409
409
  var f = {
410
410
  // This tag allows us to uniquely identify this as a React Element
411
411
  $$typeof: n,
@@ -431,31 +431,31 @@ function Lr() {
431
431
  configurable: !1,
432
432
  enumerable: !1,
433
433
  writable: !1,
434
- value: v
434
+ value: p
435
435
  }), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
436
436
  };
437
- function dr(e, r, a, u, v) {
437
+ function dr(e, r, a, u, p) {
438
438
  {
439
- var m, d = {}, f = null, w = null;
440
- a !== void 0 && (we(a), f = "" + a), sr(r) && (we(r.key), f = "" + r.key), ir(r) && (w = r.ref, ur(r, v));
439
+ var m, d = {}, f = null, S = null;
440
+ a !== void 0 && (Se(a), f = "" + a), sr(r) && (Se(r.key), f = "" + r.key), ir(r) && (S = r.ref, ur(r, p));
441
441
  for (m in r)
442
- H.call(r, m) && !or.hasOwnProperty(m) && (d[m] = r[m]);
442
+ J.call(r, m) && !or.hasOwnProperty(m) && (d[m] = r[m]);
443
443
  if (e && e.defaultProps) {
444
444
  var b = e.defaultProps;
445
445
  for (m in b)
446
446
  d[m] === void 0 && (d[m] = b[m]);
447
447
  }
448
- if (f || w) {
448
+ if (f || S) {
449
449
  var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
450
- f && lr(d, E), w && cr(d, E);
450
+ f && lr(d, E), S && cr(d, E);
451
451
  }
452
- return fr(e, f, w, v, u, V.current, d);
452
+ return fr(e, f, S, p, u, W.current, d);
453
453
  }
454
454
  }
455
455
  var te = D.ReactCurrentOwner, xe = D.ReactDebugCurrentFrame;
456
- function Y(e) {
456
+ function L(e) {
457
457
  if (e) {
458
- var r = e._owner, a = J(e.type, e._source, r ? r.type : null);
458
+ var r = e._owner, a = G(e.type, e._source, r ? r.type : null);
459
459
  xe.setExtraStackFrame(a);
460
460
  } else
461
461
  xe.setExtraStackFrame(null);
@@ -477,7 +477,7 @@ Check the render method of \`` + e + "`.";
477
477
  return "";
478
478
  }
479
479
  }
480
- function vr(e) {
480
+ function pr(e) {
481
481
  {
482
482
  if (e !== void 0) {
483
483
  var r = e.fileName.replace(/^.*[\\\/]/, ""), a = e.lineNumber;
@@ -489,7 +489,7 @@ Check your code at ` + r + ":" + a + ".";
489
489
  }
490
490
  }
491
491
  var Pe = {};
492
- function pr(e) {
492
+ function vr(e) {
493
493
  {
494
494
  var r = je();
495
495
  if (!r) {
@@ -506,12 +506,12 @@ Check the top-level render call using <` + a + ">.");
506
506
  if (!e._store || e._store.validated || e.key != null)
507
507
  return;
508
508
  e._store.validated = !0;
509
- var a = pr(r);
509
+ var a = vr(r);
510
510
  if (Pe[a])
511
511
  return;
512
512
  Pe[a] = !0;
513
513
  var u = "";
514
- e && e._owner && e._owner !== te.current && (u = " It was passed a child from " + P(e._owner.type) + "."), Y(e), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, u), Y(null);
514
+ e && e._owner && e._owner !== te.current && (u = " It was passed a child from " + P(e._owner.type) + "."), L(e), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, u), L(null);
515
515
  }
516
516
  }
517
517
  function ke(e, r) {
@@ -526,9 +526,9 @@ Check the top-level render call using <` + a + ">.");
526
526
  else if (ae(e))
527
527
  e._store && (e._store.validated = !0);
528
528
  else if (e) {
529
- var v = _(e);
530
- if (typeof v == "function" && v !== e.entries)
531
- for (var m = v.call(e), d; !(d = m.next()).done; )
529
+ var p = R(e);
530
+ if (typeof p == "function" && p !== e.entries)
531
+ for (var m = p.call(e), d; !(d = m.next()).done; )
532
532
  ae(d.value) && Ae(d.value, r);
533
533
  }
534
534
  }
@@ -552,10 +552,10 @@ Check the top-level render call using <` + a + ">.");
552
552
  rr(a, e.props, "prop", u, e);
553
553
  } else if (r.PropTypes !== void 0 && !ne) {
554
554
  ne = !0;
555
- var v = P(r);
556
- R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", v || "Unknown");
555
+ var p = P(r);
556
+ _("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
557
557
  }
558
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
558
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
559
559
  }
560
560
  }
561
561
  function gr(e) {
@@ -563,25 +563,25 @@ Check the top-level render call using <` + a + ">.");
563
563
  for (var r = Object.keys(e.props), a = 0; a < r.length; a++) {
564
564
  var u = r[a];
565
565
  if (u !== "children" && u !== "key") {
566
- Y(e), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), Y(null);
566
+ L(e), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), L(null);
567
567
  break;
568
568
  }
569
569
  }
570
- e.ref !== null && (Y(e), R("Invalid attribute `ref` supplied to `React.Fragment`."), Y(null));
570
+ e.ref !== null && (L(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), L(null));
571
571
  }
572
572
  }
573
- function De(e, r, a, u, v, m) {
573
+ function De(e, r, a, u, p, m) {
574
574
  {
575
575
  var d = Je(e);
576
576
  if (!d) {
577
577
  var f = "";
578
578
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (f += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
579
- var w = vr(v);
580
- w ? f += w : f += je();
579
+ var S = pr(p);
580
+ S ? f += S : f += je();
581
581
  var b;
582
- e === null ? b = "null" : ee(e) ? b = "array" : e !== void 0 && e.$$typeof === n ? (b = "<" + (P(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : b = typeof e, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", b, f);
582
+ e === null ? b = "null" : ee(e) ? b = "array" : e !== void 0 && e.$$typeof === n ? (b = "<" + (P(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : b = 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", b, f);
583
583
  }
584
- var E = dr(e, r, a, v, m);
584
+ var E = dr(e, r, a, p, m);
585
585
  if (E == null)
586
586
  return E;
587
587
  if (d) {
@@ -589,11 +589,11 @@ Check the top-level render call using <` + a + ">.");
589
589
  if (O !== void 0)
590
590
  if (u)
591
591
  if (ee(O)) {
592
- for (var I = 0; I < O.length; I++)
593
- ke(O[I], e);
592
+ for (var Y = 0; Y < O.length; Y++)
593
+ ke(O[Y], e);
594
594
  Object.freeze && Object.freeze(O);
595
595
  } else
596
- R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
596
+ _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
597
597
  else
598
598
  ke(O, e);
599
599
  }
@@ -607,10 +607,10 @@ Check the top-level render call using <` + a + ">.");
607
607
  return De(e, r, a, !1);
608
608
  }
609
609
  var br = yr, Er = hr;
610
- z.Fragment = s, z.jsx = br, z.jsxs = Er;
611
- }()), z;
610
+ V.Fragment = s, V.jsx = br, V.jsxs = Er;
611
+ }()), V;
612
612
  }
613
- var U = {};
613
+ var z = {};
614
614
  /**
615
615
  * @license React
616
616
  * react-jsx-runtime.production.min.js
@@ -623,20 +623,20 @@ var U = {};
623
623
  var Le;
624
624
  function Yr() {
625
625
  if (Le)
626
- return U;
626
+ return z;
627
627
  Le = 1;
628
- var t = Ie, n = Symbol.for("react.element"), i = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, p = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, h = { key: !0, ref: !0, __self: !0, __source: !0 };
628
+ var t = Ie, n = Symbol.for("react.element"), i = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, v = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
629
629
  function o(c, l, g) {
630
- var y, C = {}, T = null, x = null;
630
+ var h, C = {}, T = null, x = null;
631
631
  g !== void 0 && (T = "" + g), l.key !== void 0 && (T = "" + l.key), l.ref !== void 0 && (x = l.ref);
632
- for (y in l)
633
- s.call(l, y) && !h.hasOwnProperty(y) && (C[y] = l[y]);
632
+ for (h in l)
633
+ s.call(l, h) && !y.hasOwnProperty(h) && (C[h] = l[h]);
634
634
  if (c && c.defaultProps)
635
- for (y in l = c.defaultProps, l)
636
- C[y] === void 0 && (C[y] = l[y]);
637
- return { $$typeof: n, type: c, key: T, ref: x, props: C, _owner: p.current };
635
+ for (h in l = c.defaultProps, l)
636
+ C[h] === void 0 && (C[h] = l[h]);
637
+ return { $$typeof: n, type: c, key: T, ref: x, props: C, _owner: v.current };
638
638
  }
639
- return U.Fragment = i, U.jsx = o, U.jsxs = o, U;
639
+ return z.Fragment = i, z.jsx = o, z.jsxs = o, z;
640
640
  }
641
641
  process.env.NODE_ENV === "production" ? se.exports = Yr() : se.exports = Lr();
642
642
  var k = se.exports;
@@ -645,23 +645,23 @@ const at = ({
645
645
  loginPath: n = "/login",
646
646
  localStorageKey: i = "user",
647
647
  redirect401Path: s = "/login",
648
- isLogged: p
648
+ isLogged: v
649
649
  }) => {
650
650
  var C, T, x, j;
651
- const [h, o] = _r(null), c = le(), l = Rr(!1), g = typeof p == "function" ? p() : !!p, y = typeof g == "boolean" ? g : g == null ? void 0 : g.isLogged;
652
- return M(() => {
653
- var S;
654
- l.current || (l.current = !0, (S = $) == null || S.interceptors.response.use(
655
- (_) => _,
656
- async (_) => {
657
- var L;
658
- return typeof _ == "object" && _ && "response" in _ && _.response && typeof _.response == "object" && "status" in _.response && _.response && typeof _.response == "object" && "status" in _.response && ((L = _ == null ? void 0 : _.response) == null ? void 0 : L.status) === 401 && ($.defaults.headers.common.Authorization = null, localStorage.removeItem(i), o(s)), Promise.reject(_);
651
+ const [y, o] = Rr(null), c = le(), l = _r(!1), g = typeof v == "function" ? v() : !!v, h = typeof g == "boolean" ? g : g == null ? void 0 : g.isLogged;
652
+ return X(() => {
653
+ var w;
654
+ l.current || (l.current = !0, (w = $) == null || w.interceptors.response.use(
655
+ (R) => R,
656
+ async (R) => {
657
+ var F;
658
+ return typeof R == "object" && R && "response" in R && R.response && typeof R.response == "object" && "status" in R.response && R.response && typeof R.response == "object" && "status" in R.response && ((F = R == null ? void 0 : R.response) == null ? void 0 : F.status) === 401 && ($.defaults.headers.common.Authorization = null, localStorage.removeItem(i), o(s)), Promise.reject(R);
659
659
  }
660
660
  ));
661
- }, [i, s]), y && !h ? /* @__PURE__ */ k.jsx(Cr, { fallback: t, children: (T = (C = c.state) == null ? void 0 : C.from) != null && T.state && ((j = (x = c.state) == null ? void 0 : x.from) == null ? void 0 : j.pathname) === n ? /* @__PURE__ */ k.jsx(Me, { to: c.state.from.state.from.pathname + c.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ k.jsx(We, {}) }) : /* @__PURE__ */ k.jsx(Me, { to: n, state: { from: c }, replace: !0 });
661
+ }, [i, s]), h && !y ? /* @__PURE__ */ k.jsx(Cr, { fallback: t, children: (T = (C = c.state) == null ? void 0 : C.from) != null && T.state && ((j = (x = c.state) == null ? void 0 : x.from) == null ? void 0 : j.pathname) === n ? /* @__PURE__ */ k.jsx(Me, { to: c.state.from.state.from.pathname + c.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ k.jsx(We, {}) }) : /* @__PURE__ */ k.jsx(Me, { to: n, state: { from: c }, replace: !0 });
662
662
  }, ot = () => {
663
663
  const { pathname: t } = le(), { sendEvent: n } = xr();
664
- return M(() => {
664
+ return X(() => {
665
665
  n({ event: "pageView", pathname: t });
666
666
  }, [t, n]), /* @__PURE__ */ k.jsx(We, {});
667
667
  }, ce = Tr({
@@ -680,18 +680,16 @@ const at = ({
680
680
  userLocalStorageKey: n = "user",
681
681
  tokenKey: i = "accessToken",
682
682
  postContentType: s = "application/json",
683
- ...p
683
+ ...v
684
684
  }) => {
685
- const { apiURL: h = p.apiURL } = Ne(ce);
686
- return M(() => {
687
- if (!$.defaults)
688
- return;
689
- const o = localStorage.getItem(n), c = o ? JSON.parse(o) : null, l = c != null && c[t] ? c[t] : null, g = c != null && c[i] ? c[i] : null, y = o ? `${l} ${g}` : null;
690
- $.defaults.baseURL = h, $.defaults.headers.post["Content-Type"] = s, y && ($.defaults.headers.common.Authorization = y);
691
- }, [h, s, i, t, n]), null;
692
- }, ut = ({ debug: t, resources: n }) => (M(() => {
685
+ const { apiURL: y = v.apiURL } = Ne(ce);
686
+ if (!$.defaults)
687
+ return null;
688
+ const o = localStorage.getItem(n), c = o ? JSON.parse(o) : null, l = c != null && c[t] ? c[t] : null, g = c != null && c[i] ? c[i] : null, h = o ? `${l} ${g}` : null;
689
+ return $.defaults.baseURL = y, $.defaults.headers.post["Content-Type"] = s, h && ($.defaults.headers.common.Authorization = h), null;
690
+ }, ut = ({ debug: t, resources: n }) => {
693
691
  var i;
694
- (i = N) != null && i.isInitialized || (N.use(Pr).use(Ar).init({
692
+ return (i = I) != null && i.isInitialized || (I.use(Pr).use(Ar).init({
695
693
  debug: t,
696
694
  fallbackLng: "en",
697
695
  interpolation: {
@@ -705,104 +703,90 @@ const at = ({
705
703
  resources: n,
706
704
  returnNull: !1
707
705
  }).then(() => {
708
- document.documentElement.lang !== N.resolvedLanguage && N.resolvedLanguage && document.documentElement.setAttribute("lang", N.resolvedLanguage);
709
- }), N.on("languageChanged", (s) => {
706
+ document.documentElement.lang !== I.resolvedLanguage && I.resolvedLanguage && document.documentElement.setAttribute("lang", I.resolvedLanguage);
707
+ }), I.on("languageChanged", (s) => {
710
708
  document.documentElement.setAttribute("lang", s);
711
- }));
712
- }, [t, n]), null), lt = ({
709
+ })), null;
710
+ }, lt = ({
713
711
  dsn: t,
714
712
  integrations: n,
715
713
  tracesSampleRate: i,
716
714
  replaysSessionSampleRate: s,
717
- replaysOnErrorSampleRate: p,
718
- tracePropagationTargets: h,
715
+ replaysOnErrorSampleRate: v,
716
+ tracePropagationTargets: y,
719
717
  ignoreErrors: o,
720
718
  debug: c,
721
719
  environment: l
722
- }) => (M(() => {
723
- oe.isInitialized() || (c || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && oe.init({
724
- debug: c,
725
- dsn: t,
726
- environment: l || "production",
727
- ignoreErrors: [...o || [], /dynamically imported module/],
728
- integrations: [
729
- oe.reactRouterV6BrowserTracingIntegration({
730
- createRoutesFromChildren: wr,
731
- matchRoutes: Sr,
732
- useEffect: M,
733
- useLocation: le,
734
- useNavigationType: Or
735
- }),
736
- ...n || []
737
- ],
738
- replaysOnErrorSampleRate: p || 1,
739
- replaysSessionSampleRate: s || 0.1,
740
- tracePropagationTargets: h,
741
- tracesSampleRate: i || 1
742
- });
743
- }, [
744
- c,
745
- t,
746
- l,
747
- o,
748
- n,
749
- p,
750
- s,
751
- h,
752
- i
753
- ]), null), ct = ({ IMaskMixin: t, ...n }) => {
720
+ }) => (oe.isInitialized() || (c || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && oe.init({
721
+ debug: c,
722
+ dsn: t,
723
+ environment: l || "production",
724
+ ignoreErrors: [...o || [], /dynamically imported module/],
725
+ integrations: [
726
+ oe.reactRouterV6BrowserTracingIntegration({
727
+ createRoutesFromChildren: Sr,
728
+ matchRoutes: wr,
729
+ useEffect: X,
730
+ useLocation: le,
731
+ useNavigationType: Or
732
+ }),
733
+ ...n || []
734
+ ],
735
+ replaysOnErrorSampleRate: v || 1,
736
+ replaysSessionSampleRate: s || 0.1,
737
+ tracePropagationTargets: y,
738
+ tracesSampleRate: i || 1
739
+ }), null), ct = ({ IMaskMixin: t, ...n }) => {
754
740
  const i = ue(
755
741
  // eslint-disable-next-line react/jsx-props-no-spreading
756
- () => t(({ TextField: s, ...p }) => /* @__PURE__ */ k.jsx(s, { ...p })),
742
+ () => t(({ TextField: s, ...v }) => /* @__PURE__ */ k.jsx(s, { ...v })),
757
743
  [t]
758
744
  );
759
745
  return /* @__PURE__ */ k.jsx(i, { ...n });
760
- }, ft = ({ accessToken: t }) => (M(() => {
761
- t && (kr.accessToken = t);
762
- }, [t]), null);
746
+ }, ft = ({ accessToken: t }) => (t && (kr.accessToken = t), null);
763
747
  var Ve = { exports: {} };
764
748
  (function(t, n) {
765
749
  (function(i, s) {
766
750
  t.exports = s();
767
751
  })(Mr, function() {
768
752
  var i = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" };
769
- return function(s, p, h) {
770
- var o = p.prototype, c = o.format;
771
- h.en.formats = i, o.format = function(l) {
753
+ return function(s, v, y) {
754
+ var o = v.prototype, c = o.format;
755
+ y.en.formats = i, o.format = function(l) {
772
756
  l === void 0 && (l = "YYYY-MM-DDTHH:mm:ssZ");
773
- var g = this.$locale().formats, y = function(C, T) {
774
- return C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(x, j, S) {
775
- var _ = S && S.toUpperCase();
776
- return j || T[S] || i[S] || T[_].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(D, R, L) {
777
- return R || L.slice(1);
757
+ var g = this.$locale().formats, h = function(C, T) {
758
+ return C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(x, j, w) {
759
+ var R = w && w.toUpperCase();
760
+ return j || T[w] || i[w] || T[R].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(D, _, F) {
761
+ return _ || F.slice(1);
778
762
  });
779
763
  });
780
764
  }(l, g === void 0 ? {} : g);
781
- return c.call(this, y);
765
+ return c.call(this, h);
782
766
  };
783
767
  };
784
768
  });
785
769
  })(Ve);
786
770
  var Ir = Ve.exports;
787
771
  const Nr = /* @__PURE__ */ Fr(Ir);
788
- q.extend(Nr);
789
- const dt = ({ language: t }) => (M(() => {
772
+ U.extend(Nr);
773
+ const dt = ({ language: t }) => (X(() => {
790
774
  var i;
791
775
  const n = t || ((i = navigator.language) == null ? void 0 : i.slice(0, 2)) || "en";
792
776
  if (n === "en") {
793
- import("./en-EkCf5JOJ.js").then((s) => s.e).then(() => {
794
- q.locale(n);
777
+ import("./en-bFWwYyLH.js").then((s) => s.e).then(() => {
778
+ U.locale(n);
795
779
  });
796
780
  return;
797
781
  }
798
- n === "fr" && import("./fr-ADtvg3rE.js").then((s) => s.f).then(() => {
799
- q.locale(n);
782
+ n === "fr" && import("./fr-WPlDe-ow.js").then((s) => s.f).then(() => {
783
+ U.locale(n);
800
784
  }).catch(() => {
801
- import("./en-EkCf5JOJ.js").then((s) => s.e).then(() => {
802
- q.locale("en");
785
+ import("./en-bFWwYyLH.js").then((s) => s.e).then(() => {
786
+ U.locale("en");
803
787
  });
804
788
  });
805
- }, [t]), null), vt = ({
789
+ }, [t]), null), pt = ({
806
790
  children: t,
807
791
  defaultQueriesOptions: n,
808
792
  defaultMutationsOptions: i
@@ -813,7 +797,7 @@ const dt = ({ language: t }) => (M(() => {
813
797
  ...i
814
798
  },
815
799
  queries: {
816
- getNextPageParam: (p, h, o) => p.length + (o || 0),
800
+ getNextPageParam: (v, y, o) => v.length + (o || 0),
817
801
  refetchOnWindowFocus: !1,
818
802
  retry: 3,
819
803
  ...n
@@ -821,18 +805,18 @@ const dt = ({ language: t }) => (M(() => {
821
805
  }
822
806
  });
823
807
  return /* @__PURE__ */ k.jsx($r, { client: s, children: t });
824
- }, pt = (t) => {
808
+ }, vt = (t) => {
825
809
  const { unknownErrorTranslationKey: n = "error.unknownError" } = t || {}, i = jr(n), s = ie(
826
- (h) => {
827
- var c, l, g, y, C, T, x, j, S;
828
- const { response: o } = h || {};
829
- return o != null && o.reason ? String(o.reason) : (c = o == null ? void 0 : o.data) != null && c.reason ? String(o.data.reason) : (l = o == null ? void 0 : o.data) != null && l.message ? String(o.data.message) : (y = (g = o == null ? void 0 : o.data) == null ? void 0 : g.detail) != null && y.length && Array.isArray((C = o == null ? void 0 : o.data) == null ? void 0 : C.detail) && ((x = (T = o == null ? void 0 : o.data) == null ? void 0 : T.detail[0]) != null && x.msg) && typeof ((S = (j = o == null ? void 0 : o.data) == null ? void 0 : j.detail[0]) == null ? void 0 : S.msg) == "string" ? String(o.data.detail[0].msg) : i;
810
+ (y) => {
811
+ var c, l, g, h, C, T, x, j, w;
812
+ const { response: o } = y || {};
813
+ return o != null && o.reason ? String(o.reason) : (c = o == null ? void 0 : o.data) != null && c.reason ? String(o.data.reason) : (l = o == null ? void 0 : o.data) != null && l.message ? String(o.data.message) : (h = (g = o == null ? void 0 : o.data) == null ? void 0 : g.detail) != null && h.length && Array.isArray((C = o == null ? void 0 : o.data) == null ? void 0 : C.detail) && ((x = (T = o == null ? void 0 : o.data) == null ? void 0 : T.detail[0]) != null && x.msg) && typeof ((w = (j = o == null ? void 0 : o.data) == null ? void 0 : j.detail[0]) == null ? void 0 : w.msg) == "string" ? String(o.data.detail[0].msg) : i;
830
814
  },
831
815
  [i]
832
816
  );
833
- return { getErrorCode: ie((h) => {
817
+ return { getErrorCode: ie((y) => {
834
818
  var c, l, g;
835
- const { response: o } = h || {};
819
+ const { response: o } = y || {};
836
820
  return o != null && o.error_code ? String(o == null ? void 0 : o.error_code) : (c = o == null ? void 0 : o.data) != null && c.error_code ? String((l = o == null ? void 0 : o.data) == null ? void 0 : l.error_code) : o != null && o.error_code ? String(o == null ? void 0 : o.error_code) : (g = o == null ? void 0 : o.data) != null && g.error_code ? String(o.data.error_code) : "unknown_error_code";
837
821
  }, []), printError: s };
838
822
  }, mt = ({
@@ -840,21 +824,21 @@ const dt = ({ language: t }) => (M(() => {
840
824
  fetchNextPage: n,
841
825
  isFetchingNextPage: i,
842
826
  isInitialLoading: s,
843
- isLoading: p,
844
- enabled: h = !0
827
+ isLoading: v,
828
+ enabled: y = !0
845
829
  }) => {
846
830
  const o = ie(
847
831
  async (l) => {
848
- i || !h || await n({ pageParam: (l == null ? void 0 : l.pageParam) || l.visibleRowsCount });
832
+ i || !y || await n({ pageParam: (l == null ? void 0 : l.pageParam) || l.visibleRowsCount });
849
833
  },
850
- [h, n, i]
834
+ [y, n, i]
851
835
  ), c = ue(() => {
852
836
  if (t)
853
837
  return t.pages.reduce((l, g) => [...l, ...g], []);
854
838
  }, [t]);
855
839
  return {
856
840
  fetchNextPageOnRowsScrollEnd: o,
857
- isLoading: i || p,
841
+ isLoading: i || v,
858
842
  loadingVariant: s ? "skeleton" : "linear",
859
843
  rows: c
860
844
  };
@@ -865,7 +849,7 @@ const dt = ({ language: t }) => (M(() => {
865
849
  setAuthenticationToken: ({ tokenType: i, accessToken: s }) => {
866
850
  $.defaults.headers.common.Authorization = `${i} ${s}`;
867
851
  }
868
- }), Wr = (t, n = "ll") => q(t).format(n), Vr = (t, n = "km") => {
852
+ }), Wr = (t, n = "ll") => U(t).format(n), Vr = (t, n = "km") => {
869
853
  const i = Number(t);
870
854
  return Number.isNaN(i) ? `0 ${n}` : `${i.toFixed(2)} ${n}`;
871
855
  }, zr = (t) => {
@@ -890,11 +874,11 @@ const dt = ({ language: t }) => (M(() => {
890
874
  )
891
875
  };
892
876
  }, Ur = (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase(), qr = (t) => {
893
- const s = t.split("/").filter((p) => p.length > 0).map((p) => p.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((l) => l.charAt(0).toUpperCase() + l.slice(1)).join("")).join("");
877
+ const s = t.split("/").filter((v) => v.length > 0).map((v) => v.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((l) => l.charAt(0).toUpperCase() + l.slice(1)).join("")).join("");
894
878
  return s.charAt(0).toLowerCase() + s.slice(1);
895
879
  }, Br = (t, n, i) => {
896
- const s = qr(n), p = Ur(i);
897
- return `${s}${p}`;
880
+ const s = qr(n), v = Ur(i);
881
+ return `${s}${v}`;
898
882
  }, Gr = (t) => {
899
883
  if (t)
900
884
  return (t == null ? void 0 : t.reduce((n, i) => (n[i] = {
@@ -941,7 +925,7 @@ export {
941
925
  ot as G,
942
926
  st as I,
943
927
  ct as M,
944
- vt as Q,
928
+ pt as Q,
945
929
  at as R,
946
930
  ut as a,
947
931
  lt as b,
@@ -956,5 +940,5 @@ export {
956
940
  Wr as k,
957
941
  Vr as l,
958
942
  ce as m,
959
- pt as u
943
+ vt as u
960
944
  };
package/dist/main.js CHANGED
@@ -1,4 +1,4 @@
1
- import { G as a, I as s, e as n, a as t, d as r, b as o, m as d, f, M as g, Q as I, R as l, k as u, l as C, j as p, i as A, h as c, g as x, u as z } from "./main-DWJHWlv8.js";
1
+ import { G as a, I as s, e as n, a as t, d as r, b as o, m as d, f, M as g, Q as I, R as l, k as u, l as C, j as p, i as A, h as c, g as x, u as z } from "./main-YTkqJNOe.js";
2
2
  export {
3
3
  a as GTMSendPageView,
4
4
  s as InitializeAxiosConfig,
package/dist/main.umd.cjs CHANGED
@@ -1,4 +1,4 @@
1
- (function(d,_){typeof exports=="object"&&typeof module<"u"?_(exports,require("react"),require("axios"),require("react-router-dom"),require("@tracktor/react-google-tag-manager"),require("i18next"),require("i18next-browser-languagedetector"),require("react-i18next"),require("@sentry/react"),require("mapbox-gl"),require("dayjs"),require("@tanstack/react-query")):typeof define=="function"&&define.amd?define(["exports","react","axios","react-router-dom","@tracktor/react-google-tag-manager","i18next","i18next-browser-languagedetector","react-i18next","@sentry/react","mapbox-gl","dayjs","@tanstack/react-query"],_):(d=typeof globalThis<"u"?globalThis:d||self,_(d["@tracktor/shared-module"]={},d.React,d.axios,d.reactRouterDom,d.reactGoogleTagManager,d.i18n,d.LanguageDetector,d.reactI18next,d.Sentry,d.mapbox,d.dayjs,d.reactQuery))})(this,function(d,_,M,x,Ue,k,Be,Ge,Je,He,N,fe){"use strict";function qe(r){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const i in r)if(i!=="default"){const u=Object.getOwnPropertyDescriptor(r,i);Object.defineProperty(n,i,u.get?u:{enumerable:!0,get:()=>r[i]})}}return n.default=r,Object.freeze(n)}const K=qe(Je);var ee=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $e(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var te={exports:{}},V={};/**
1
+ (function(d,E){typeof exports=="object"&&typeof module<"u"?E(exports,require("react"),require("axios"),require("react-router-dom"),require("@tracktor/react-google-tag-manager"),require("i18next"),require("i18next-browser-languagedetector"),require("react-i18next"),require("@sentry/react"),require("mapbox-gl"),require("dayjs"),require("@tanstack/react-query")):typeof define=="function"&&define.amd?define(["exports","react","axios","react-router-dom","@tracktor/react-google-tag-manager","i18next","i18next-browser-languagedetector","react-i18next","@sentry/react","mapbox-gl","dayjs","@tanstack/react-query"],E):(d=typeof globalThis<"u"?globalThis:d||self,E(d["@tracktor/shared-module"]={},d.React,d.axios,d.reactRouterDom,d.reactGoogleTagManager,d.i18n,d.LanguageDetector,d.reactI18next,d.Sentry,d.mapbox,d.dayjs,d.reactQuery))})(this,function(d,E,M,k,Ue,A,$e,Be,Ge,Je,N,fe){"use strict";function qe(r){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const i in r)if(i!=="default"){const u=Object.getOwnPropertyDescriptor(r,i);Object.defineProperty(n,i,u.get?u:{enumerable:!0,get:()=>r[i]})}}return n.default=r,Object.freeze(n)}const Q=qe(Ge);var ee=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function He(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var te={exports:{}},V={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.development.js
4
4
  *
@@ -6,17 +6,17 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var de;function Xe(){return de||(de=1,process.env.NODE_ENV!=="production"&&function(){var r=_,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),A=Symbol.iterator,b="@@iterator";function H(e){if(e===null||typeof e!="object")return null;var t=A&&e[A]||e[b];return typeof t=="function"?t:null}var I=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function C(e){{for(var t=arguments.length,o=new Array(t>1?t-1:0),s=1;s<t;s++)o[s-1]=arguments[s];re("error",e,o)}}function re(e,t,o){{var s=I.ReactDebugCurrentFrame,m=s.getStackAddendum();m!==""&&(t+="%s",o=o.concat([m]));var g=o.map(function(v){return String(v)});g.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,g)}}var Ct=!1,Tt=!1,St=!1,jt=!1,wt=!1,ye;ye=Symbol.for("react.module.reference");function Ot(e){return!!(typeof e=="string"||typeof e=="function"||e===u||e===h||wt||e===p||e===y||e===E||jt||e===P||Ct||Tt||St||typeof e=="object"&&e!==null&&(e.$$typeof===j||e.$$typeof===S||e.$$typeof===a||e.$$typeof===l||e.$$typeof===c||e.$$typeof===ye||e.getModuleId!==void 0))}function Pt(e,t,o){var s=e.displayName;if(s)return s;var m=t.displayName||t.name||"";return m!==""?o+"("+m+")":o}function be(e){return e.displayName||"Context"}function D(e){if(e==null)return null;if(typeof e.tag=="number"&&C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case u:return"Fragment";case i:return"Portal";case h:return"Profiler";case p:return"StrictMode";case y:return"Suspense";case E:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case l:var t=e;return be(t)+".Consumer";case a:var o=e;return be(o._context)+".Provider";case c:return Pt(e,e.render,"ForwardRef");case S:var s=e.displayName||null;return s!==null?s:D(e.type)||"Memo";case j:{var m=e,g=m._payload,v=m._init;try{return D(v(g))}catch{return null}}}return null}var F=Object.assign,B=0,Ee,Re,Ce,Te,Se,je,we;function Oe(){}Oe.__reactDisabledLog=!0;function Mt(){{if(B===0){Ee=console.log,Re=console.info,Ce=console.warn,Te=console.error,Se=console.group,je=console.groupCollapsed,we=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Oe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}B++}}function xt(){{if(B--,B===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:Ee}),info:F({},e,{value:Re}),warn:F({},e,{value:Ce}),error:F({},e,{value:Te}),group:F({},e,{value:Se}),groupCollapsed:F({},e,{value:je}),groupEnd:F({},e,{value:we})})}B<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ne=I.ReactCurrentDispatcher,ae;function q(e,t,o){{if(ae===void 0)try{throw Error()}catch(m){var s=m.stack.trim().match(/\n( *(at )?)/);ae=s&&s[1]||""}return`
10
- `+ae+e}}var oe=!1,$;{var At=typeof WeakMap=="function"?WeakMap:Map;$=new At}function Pe(e,t){if(!e||oe)return"";{var o=$.get(e);if(o!==void 0)return o}var s;oe=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var g;g=ne.current,ne.current=null,Mt();try{if(t){var v=function(){throw Error()};if(Object.defineProperty(v.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(v,[])}catch(L){s=L}Reflect.construct(e,[],v)}else{try{v.call()}catch(L){s=L}e.call(v.prototype)}}else{try{throw Error()}catch(L){s=L}e()}}catch(L){if(L&&s&&typeof L.stack=="string"){for(var f=L.stack.split(`
11
- `),w=s.stack.split(`
12
- `),R=f.length-1,T=w.length-1;R>=1&&T>=0&&f[R]!==w[T];)T--;for(;R>=1&&T>=0;R--,T--)if(f[R]!==w[T]){if(R!==1||T!==1)do if(R--,T--,T<0||f[R]!==w[T]){var O=`
13
- `+f[R].replace(" at new "," at ");return e.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",e.displayName)),typeof e=="function"&&$.set(e,O),O}while(R>=1&&T>=0);break}}}finally{oe=!1,ne.current=g,xt(),Error.prepareStackTrace=m}var z=e?e.displayName||e.name:"",Ve=z?q(z):"";return typeof e=="function"&&$.set(e,Ve),Ve}function kt(e,t,o){return Pe(e,!1)}function Yt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function X(e,t,o){if(e==null)return"";if(typeof e=="function")return Pe(e,Yt(e));if(typeof e=="string")return q(e);switch(e){case y:return q("Suspense");case E:return q("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case c:return kt(e.render);case S:return X(e.type,t,o);case j:{var s=e,m=s._payload,g=s._init;try{return X(g(m),t,o)}catch{}}}return""}var Z=Object.prototype.hasOwnProperty,Me={},xe=I.ReactDebugCurrentFrame;function Q(e){if(e){var t=e._owner,o=X(e.type,e._source,t?t.type:null);xe.setExtraStackFrame(o)}else xe.setExtraStackFrame(null)}function Dt(e,t,o,s,m){{var g=Function.call.bind(Z);for(var v in e)if(g(e,v)){var f=void 0;try{if(typeof e[v]!="function"){var w=Error((s||"React class")+": "+o+" type `"+v+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[v]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw w.name="Invariant Violation",w}f=e[v](t,v,s,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(R){f=R}f&&!(f instanceof Error)&&(Q(m),C("%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).",s||"React class",o,v,typeof f),Q(null)),f instanceof Error&&!(f.message in Me)&&(Me[f.message]=!0,Q(m),C("Failed %s type: %s",o,f.message),Q(null))}}}var Lt=Array.isArray;function ie(e){return Lt(e)}function It(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,o=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function Ft(e){try{return Ae(e),!1}catch{return!0}}function Ae(e){return""+e}function ke(e){if(Ft(e))return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",It(e)),Ae(e)}var G=I.ReactCurrentOwner,Nt={key:!0,ref:!0,__self:!0,__source:!0},Ye,De,ue;ue={};function Wt(e){if(Z.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function zt(e){if(Z.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function Vt(e,t){if(typeof e.ref=="string"&&G.current&&t&&G.current.stateNode!==t){var o=D(G.current.type);ue[o]||(C('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',D(G.current.type),e.ref),ue[o]=!0)}}function Ut(e,t){{var o=function(){Ye||(Ye=!0,C("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function Bt(e,t){{var o=function(){De||(De=!0,C("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var Gt=function(e,t,o,s,m,g,v){var f={$$typeof:n,type:e,key:t,ref:o,props:v,_owner:g};return f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(f,"_self",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.defineProperty(f,"_source",{configurable:!1,enumerable:!1,writable:!1,value:m}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f};function Jt(e,t,o,s,m){{var g,v={},f=null,w=null;o!==void 0&&(ke(o),f=""+o),zt(t)&&(ke(t.key),f=""+t.key),Wt(t)&&(w=t.ref,Vt(t,m));for(g in t)Z.call(t,g)&&!Nt.hasOwnProperty(g)&&(v[g]=t[g]);if(e&&e.defaultProps){var R=e.defaultProps;for(g in R)v[g]===void 0&&(v[g]=R[g])}if(f||w){var T=typeof e=="function"?e.displayName||e.name||"Unknown":e;f&&Ut(v,T),w&&Bt(v,T)}return Gt(e,f,w,m,s,G.current,v)}}var se=I.ReactCurrentOwner,Le=I.ReactDebugCurrentFrame;function W(e){if(e){var t=e._owner,o=X(e.type,e._source,t?t.type:null);Le.setExtraStackFrame(o)}else Le.setExtraStackFrame(null)}var ce;ce=!1;function le(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function Ie(){{if(se.current){var e=D(se.current.type);if(e)return`
9
+ */var de;function Xe(){return de||(de=1,process.env.NODE_ENV!=="production"&&function(){var r=E,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),x=Symbol.iterator,h="@@iterator";function J(e){if(e===null||typeof e!="object")return null;var t=x&&e[x]||e[h];return typeof t=="function"?t:null}var I=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function C(e){{for(var t=arguments.length,o=new Array(t>1?t-1:0),s=1;s<t;s++)o[s-1]=arguments[s];re("error",e,o)}}function re(e,t,o){{var s=I.ReactDebugCurrentFrame,m=s.getStackAddendum();m!==""&&(t+="%s",o=o.concat([m]));var g=o.map(function(v){return String(v)});g.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,g)}}var Ct=!1,Tt=!1,St=!1,jt=!1,Ot=!1,ye;ye=Symbol.for("react.module.reference");function wt(e){return!!(typeof e=="string"||typeof e=="function"||e===u||e===y||Ot||e===p||e===_||e===b||jt||e===P||Ct||Tt||St||typeof e=="object"&&e!==null&&(e.$$typeof===j||e.$$typeof===S||e.$$typeof===a||e.$$typeof===l||e.$$typeof===c||e.$$typeof===ye||e.getModuleId!==void 0))}function Pt(e,t,o){var s=e.displayName;if(s)return s;var m=t.displayName||t.name||"";return m!==""?o+"("+m+")":o}function be(e){return e.displayName||"Context"}function Y(e){if(e==null)return null;if(typeof e.tag=="number"&&C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case u:return"Fragment";case i:return"Portal";case y:return"Profiler";case p:return"StrictMode";case _:return"Suspense";case b:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case l:var t=e;return be(t)+".Consumer";case a:var o=e;return be(o._context)+".Provider";case c:return Pt(e,e.render,"ForwardRef");case S:var s=e.displayName||null;return s!==null?s:Y(e.type)||"Memo";case j:{var m=e,g=m._payload,v=m._init;try{return Y(v(g))}catch{return null}}}return null}var F=Object.assign,$=0,Ee,Re,Ce,Te,Se,je,Oe;function we(){}we.__reactDisabledLog=!0;function Mt(){{if($===0){Ee=console.log,Re=console.info,Ce=console.warn,Te=console.error,Se=console.group,je=console.groupCollapsed,Oe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:we,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}$++}}function kt(){{if($--,$===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:Ee}),info:F({},e,{value:Re}),warn:F({},e,{value:Ce}),error:F({},e,{value:Te}),group:F({},e,{value:Se}),groupCollapsed:F({},e,{value:je}),groupEnd:F({},e,{value:Oe})})}$<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ne=I.ReactCurrentDispatcher,ae;function q(e,t,o){{if(ae===void 0)try{throw Error()}catch(m){var s=m.stack.trim().match(/\n( *(at )?)/);ae=s&&s[1]||""}return`
10
+ `+ae+e}}var oe=!1,H;{var xt=typeof WeakMap=="function"?WeakMap:Map;H=new xt}function Pe(e,t){if(!e||oe)return"";{var o=H.get(e);if(o!==void 0)return o}var s;oe=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var g;g=ne.current,ne.current=null,Mt();try{if(t){var v=function(){throw Error()};if(Object.defineProperty(v.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(v,[])}catch(D){s=D}Reflect.construct(e,[],v)}else{try{v.call()}catch(D){s=D}e.call(v.prototype)}}else{try{throw Error()}catch(D){s=D}e()}}catch(D){if(D&&s&&typeof D.stack=="string"){for(var f=D.stack.split(`
11
+ `),O=s.stack.split(`
12
+ `),R=f.length-1,T=O.length-1;R>=1&&T>=0&&f[R]!==O[T];)T--;for(;R>=1&&T>=0;R--,T--)if(f[R]!==O[T]){if(R!==1||T!==1)do if(R--,T--,T<0||f[R]!==O[T]){var w=`
13
+ `+f[R].replace(" at new "," at ");return e.displayName&&w.includes("<anonymous>")&&(w=w.replace("<anonymous>",e.displayName)),typeof e=="function"&&H.set(e,w),w}while(R>=1&&T>=0);break}}}finally{oe=!1,ne.current=g,kt(),Error.prepareStackTrace=m}var z=e?e.displayName||e.name:"",Ve=z?q(z):"";return typeof e=="function"&&H.set(e,Ve),Ve}function At(e,t,o){return Pe(e,!1)}function Lt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function X(e,t,o){if(e==null)return"";if(typeof e=="function")return Pe(e,Lt(e));if(typeof e=="string")return q(e);switch(e){case _:return q("Suspense");case b:return q("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case c:return At(e.render);case S:return X(e.type,t,o);case j:{var s=e,m=s._payload,g=s._init;try{return X(g(m),t,o)}catch{}}}return""}var K=Object.prototype.hasOwnProperty,Me={},ke=I.ReactDebugCurrentFrame;function Z(e){if(e){var t=e._owner,o=X(e.type,e._source,t?t.type:null);ke.setExtraStackFrame(o)}else ke.setExtraStackFrame(null)}function Yt(e,t,o,s,m){{var g=Function.call.bind(K);for(var v in e)if(g(e,v)){var f=void 0;try{if(typeof e[v]!="function"){var O=Error((s||"React class")+": "+o+" type `"+v+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[v]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}f=e[v](t,v,s,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(R){f=R}f&&!(f instanceof Error)&&(Z(m),C("%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).",s||"React class",o,v,typeof f),Z(null)),f instanceof Error&&!(f.message in Me)&&(Me[f.message]=!0,Z(m),C("Failed %s type: %s",o,f.message),Z(null))}}}var Dt=Array.isArray;function ie(e){return Dt(e)}function It(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,o=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function Ft(e){try{return xe(e),!1}catch{return!0}}function xe(e){return""+e}function Ae(e){if(Ft(e))return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",It(e)),xe(e)}var B=I.ReactCurrentOwner,Nt={key:!0,ref:!0,__self:!0,__source:!0},Le,Ye,ue;ue={};function Wt(e){if(K.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function zt(e){if(K.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function Vt(e,t){if(typeof e.ref=="string"&&B.current&&t&&B.current.stateNode!==t){var o=Y(B.current.type);ue[o]||(C('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',Y(B.current.type),e.ref),ue[o]=!0)}}function Ut(e,t){{var o=function(){Le||(Le=!0,C("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function $t(e,t){{var o=function(){Ye||(Ye=!0,C("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var Bt=function(e,t,o,s,m,g,v){var f={$$typeof:n,type:e,key:t,ref:o,props:v,_owner:g};return f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(f,"_self",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.defineProperty(f,"_source",{configurable:!1,enumerable:!1,writable:!1,value:m}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f};function Gt(e,t,o,s,m){{var g,v={},f=null,O=null;o!==void 0&&(Ae(o),f=""+o),zt(t)&&(Ae(t.key),f=""+t.key),Wt(t)&&(O=t.ref,Vt(t,m));for(g in t)K.call(t,g)&&!Nt.hasOwnProperty(g)&&(v[g]=t[g]);if(e&&e.defaultProps){var R=e.defaultProps;for(g in R)v[g]===void 0&&(v[g]=R[g])}if(f||O){var T=typeof e=="function"?e.displayName||e.name||"Unknown":e;f&&Ut(v,T),O&&$t(v,T)}return Bt(e,f,O,m,s,B.current,v)}}var se=I.ReactCurrentOwner,De=I.ReactDebugCurrentFrame;function W(e){if(e){var t=e._owner,o=X(e.type,e._source,t?t.type:null);De.setExtraStackFrame(o)}else De.setExtraStackFrame(null)}var ce;ce=!1;function le(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function Ie(){{if(se.current){var e=Y(se.current.type);if(e)return`
14
14
 
15
- Check the render method of \``+e+"`."}return""}}function Ht(e){{if(e!==void 0){var t=e.fileName.replace(/^.*[\\\/]/,""),o=e.lineNumber;return`
15
+ Check the render method of \``+e+"`."}return""}}function Jt(e){{if(e!==void 0){var t=e.fileName.replace(/^.*[\\\/]/,""),o=e.lineNumber;return`
16
16
 
17
17
  Check your code at `+t+":"+o+"."}return""}}var Fe={};function qt(e){{var t=Ie();if(!t){var o=typeof e=="string"?e:e.displayName||e.name;o&&(t=`
18
18
 
19
- Check the top-level render call using <`+o+">.")}return t}}function Ne(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=qt(t);if(Fe[o])return;Fe[o]=!0;var s="";e&&e._owner&&e._owner!==se.current&&(s=" It was passed a child from "+D(e._owner.type)+"."),W(e),C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,s),W(null)}}function We(e,t){{if(typeof e!="object")return;if(ie(e))for(var o=0;o<e.length;o++){var s=e[o];le(s)&&Ne(s,t)}else if(le(e))e._store&&(e._store.validated=!0);else if(e){var m=H(e);if(typeof m=="function"&&m!==e.entries)for(var g=m.call(e),v;!(v=g.next()).done;)le(v.value)&&Ne(v.value,t)}}}function $t(e){{var t=e.type;if(t==null||typeof t=="string")return;var o;if(typeof t=="function")o=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===c||t.$$typeof===S))o=t.propTypes;else return;if(o){var s=D(t);Dt(o,e.props,"prop",s,e)}else if(t.PropTypes!==void 0&&!ce){ce=!0;var m=D(t);C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",m||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Xt(e){{for(var t=Object.keys(e.props),o=0;o<t.length;o++){var s=t[o];if(s!=="children"&&s!=="key"){W(e),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s),W(null);break}}e.ref!==null&&(W(e),C("Invalid attribute `ref` supplied to `React.Fragment`."),W(null))}}function ze(e,t,o,s,m,g){{var v=Ot(e);if(!v){var f="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(f+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var w=Ht(m);w?f+=w:f+=Ie();var R;e===null?R="null":ie(e)?R="array":e!==void 0&&e.$$typeof===n?(R="<"+(D(e.type)||"Unknown")+" />",f=" Did you accidentally export a JSX literal instead of a component?"):R=typeof e,C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",R,f)}var T=Jt(e,t,o,m,g);if(T==null)return T;if(v){var O=t.children;if(O!==void 0)if(s)if(ie(O)){for(var z=0;z<O.length;z++)We(O[z],e);Object.freeze&&Object.freeze(O)}else C("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else We(O,e)}return e===u?Xt(T):$t(T),T}}function Zt(e,t,o){return ze(e,t,o,!0)}function Qt(e,t,o){return ze(e,t,o,!1)}var Kt=Qt,er=Zt;V.Fragment=u,V.jsx=Kt,V.jsxs=er}()),V}var U={};/**
19
+ Check the top-level render call using <`+o+">.")}return t}}function Ne(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=qt(t);if(Fe[o])return;Fe[o]=!0;var s="";e&&e._owner&&e._owner!==se.current&&(s=" It was passed a child from "+Y(e._owner.type)+"."),W(e),C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,s),W(null)}}function We(e,t){{if(typeof e!="object")return;if(ie(e))for(var o=0;o<e.length;o++){var s=e[o];le(s)&&Ne(s,t)}else if(le(e))e._store&&(e._store.validated=!0);else if(e){var m=J(e);if(typeof m=="function"&&m!==e.entries)for(var g=m.call(e),v;!(v=g.next()).done;)le(v.value)&&Ne(v.value,t)}}}function Ht(e){{var t=e.type;if(t==null||typeof t=="string")return;var o;if(typeof t=="function")o=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===c||t.$$typeof===S))o=t.propTypes;else return;if(o){var s=Y(t);Yt(o,e.props,"prop",s,e)}else if(t.PropTypes!==void 0&&!ce){ce=!0;var m=Y(t);C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",m||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Xt(e){{for(var t=Object.keys(e.props),o=0;o<t.length;o++){var s=t[o];if(s!=="children"&&s!=="key"){W(e),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s),W(null);break}}e.ref!==null&&(W(e),C("Invalid attribute `ref` supplied to `React.Fragment`."),W(null))}}function ze(e,t,o,s,m,g){{var v=wt(e);if(!v){var f="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(f+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var O=Jt(m);O?f+=O:f+=Ie();var R;e===null?R="null":ie(e)?R="array":e!==void 0&&e.$$typeof===n?(R="<"+(Y(e.type)||"Unknown")+" />",f=" Did you accidentally export a JSX literal instead of a component?"):R=typeof e,C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",R,f)}var T=Gt(e,t,o,m,g);if(T==null)return T;if(v){var w=t.children;if(w!==void 0)if(s)if(ie(w)){for(var z=0;z<w.length;z++)We(w[z],e);Object.freeze&&Object.freeze(w)}else C("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else We(w,e)}return e===u?Xt(T):Ht(T),T}}function Kt(e,t,o){return ze(e,t,o,!0)}function Zt(e,t,o){return ze(e,t,o,!1)}var Qt=Zt,er=Kt;V.Fragment=u,V.jsx=Qt,V.jsxs=er}()),V}var U={};/**
20
20
  * @license React
21
21
  * react-jsx-runtime.production.min.js
22
22
  *
@@ -24,4 +24,4 @@ Check the top-level render call using <`+o+">.")}return t}}function Ne(e,t){{if(
24
24
  *
25
25
  * This source code is licensed under the MIT license found in the
26
26
  * LICENSE file in the root directory of this source tree.
27
- */var ve;function Ze(){if(ve)return U;ve=1;var r=_,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,p=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function a(l,c,y){var E,S={},j=null,P=null;y!==void 0&&(j=""+y),c.key!==void 0&&(j=""+c.key),c.ref!==void 0&&(P=c.ref);for(E in c)u.call(c,E)&&!h.hasOwnProperty(E)&&(S[E]=c[E]);if(l&&l.defaultProps)for(E in c=l.defaultProps,c)S[E]===void 0&&(S[E]=c[E]);return{$$typeof:n,type:l,key:j,ref:P,props:S,_owner:p.current}}return U.Fragment=i,U.jsx=a,U.jsxs=a,U}process.env.NODE_ENV==="production"?te.exports=Ze():te.exports=Xe();var Y=te.exports;const Qe=({Fallback:r,loginPath:n="/login",localStorageKey:i="user",redirect401Path:u="/login",isLogged:p})=>{var S,j,P,A;const[h,a]=_.useState(null),l=x.useLocation(),c=_.useRef(!1),y=typeof p=="function"?p():!!p,E=typeof y=="boolean"?y:y==null?void 0:y.isLogged;return _.useEffect(()=>{c.current||(c.current=!0,M==null||M.interceptors.response.use(b=>b,async b=>{var C;return typeof b=="object"&&b&&"response"in b&&b.response&&typeof b.response=="object"&&"status"in b.response&&b.response&&typeof b.response=="object"&&"status"in b.response&&((C=b==null?void 0:b.response)==null?void 0:C.status)===401&&(M.defaults.headers.common.Authorization=null,localStorage.removeItem(i),a(u)),Promise.reject(b)}))},[i,u]),E&&!h?Y.jsx(_.Suspense,{fallback:r,children:(j=(S=l.state)==null?void 0:S.from)!=null&&j.state&&((A=(P=l.state)==null?void 0:P.from)==null?void 0:A.pathname)===n?Y.jsx(x.Navigate,{to:l.state.from.state.from.pathname+l.state.from.state.from.search,replace:!0}):Y.jsx(x.Outlet,{})}):Y.jsx(x.Navigate,{to:n,state:{from:l},replace:!0})},Ke=()=>{const{pathname:r}=x.useLocation(),{sendEvent:n}=Ue.useGoogleTagManager();return _.useEffect(()=>{n({event:"pageView",pathname:r})},[r,n]),Y.jsx(x.Outlet,{})},J=_.createContext({apiURL:void 0,children:void 0}),et=({children:r,apiURL:n})=>{const i=_.useMemo(()=>({apiURL:n}),[n]);return Y.jsx(J.Provider,{value:i,children:r})},tt=({tokenTypeKey:r="tokenType",userLocalStorageKey:n="user",tokenKey:i="accessToken",postContentType:u="application/json",...p})=>{const{apiURL:h=p.apiURL}=_.useContext(J);return _.useEffect(()=>{if(!M.defaults)return;const a=localStorage.getItem(n),l=a?JSON.parse(a):null,c=l!=null&&l[r]?l[r]:null,y=l!=null&&l[i]?l[i]:null,E=a?`${c} ${y}`:null;M.defaults.baseURL=h,M.defaults.headers.post["Content-Type"]=u,E&&(M.defaults.headers.common.Authorization=E)},[h,u,i,r,n]),null},rt=({debug:r,resources:n})=>(_.useEffect(()=>{k!=null&&k.isInitialized||(k.use(Be).use(Ge.initReactI18next).init({debug:r,fallbackLng:"en",interpolation:{escapeValue:!1},load:"languageOnly",react:{bindI18n:!1,useSuspense:!0},resources:n,returnNull:!1}).then(()=>{document.documentElement.lang!==k.resolvedLanguage&&k.resolvedLanguage&&document.documentElement.setAttribute("lang",k.resolvedLanguage)}),k.on("languageChanged",i=>{document.documentElement.setAttribute("lang",i)}))},[r,n]),null),nt=({dsn:r,integrations:n,tracesSampleRate:i,replaysSessionSampleRate:u,replaysOnErrorSampleRate:p,tracePropagationTargets:h,ignoreErrors:a,debug:l,environment:c})=>(_.useEffect(()=>{K.isInitialized()||(l||process.env.NODE_ENV==="prod"||process.env.NODE_ENV==="production")&&K.init({debug:l,dsn:r,environment:c||"production",ignoreErrors:[...a||[],/dynamically imported module/],integrations:[K.reactRouterV6BrowserTracingIntegration({createRoutesFromChildren:x.createRoutesFromChildren,matchRoutes:x.matchRoutes,useEffect:_.useEffect,useLocation:x.useLocation,useNavigationType:x.useNavigationType}),...n||[]],replaysOnErrorSampleRate:p||1,replaysSessionSampleRate:u||.1,tracePropagationTargets:h,tracesSampleRate:i||1})},[l,r,c,a,n,p,u,h,i]),null),at=({IMaskMixin:r,...n})=>{const i=_.useMemo(()=>r(({TextField:u,...p})=>Y.jsx(u,{...p})),[r]);return Y.jsx(i,{...n})},ot=({accessToken:r})=>(_.useEffect(()=>{r&&(He.accessToken=r)},[r]),null);var pe={exports:{}};(function(r,n){(function(i,u){r.exports=u()})(ee,function(){var i={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(u,p,h){var a=p.prototype,l=a.format;h.en.formats=i,a.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var y=this.$locale().formats,E=function(S,j){return S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(P,A,b){var H=b&&b.toUpperCase();return A||j[b]||i[b]||j[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(I,C,re){return C||re.slice(1)})})}(c,y===void 0?{}:y);return l.call(this,E)}}})})(pe);var it=pe.exports;const ut=$e(it);N.extend(ut);const st=({language:r})=>(_.useEffect(()=>{var i;const n=r||((i=navigator.language)==null?void 0:i.slice(0,2))||"en";if(n==="en"){Promise.resolve().then(()=>he).then(()=>{N.locale(n)});return}n==="fr"&&Promise.resolve().then(()=>Rt).then(()=>{N.locale(n)}).catch(()=>{Promise.resolve().then(()=>he).then(()=>{N.locale("en")})})},[r]),null),ct=({children:r,defaultQueriesOptions:n,defaultMutationsOptions:i})=>{const u=new fe.QueryClient({defaultOptions:{mutations:{...i},queries:{getNextPageParam:(p,h,a)=>p.length+(a||0),refetchOnWindowFocus:!1,retry:3,...n}}});return Y.jsx(fe.QueryClientProvider,{client:u,children:r})},lt=r=>{const{unknownErrorTranslationKey:n="error.unknownError"}=r||{},i=k.t(n),u=_.useCallback(h=>{var l,c,y,E,S,j,P,A,b;const{response:a}=h||{};return a!=null&&a.reason?String(a.reason):(l=a==null?void 0:a.data)!=null&&l.reason?String(a.data.reason):(c=a==null?void 0:a.data)!=null&&c.message?String(a.data.message):(E=(y=a==null?void 0:a.data)==null?void 0:y.detail)!=null&&E.length&&Array.isArray((S=a==null?void 0:a.data)==null?void 0:S.detail)&&((P=(j=a==null?void 0:a.data)==null?void 0:j.detail[0])!=null&&P.msg)&&typeof((b=(A=a==null?void 0:a.data)==null?void 0:A.detail[0])==null?void 0:b.msg)=="string"?String(a.data.detail[0].msg):i},[i]);return{getErrorCode:_.useCallback(h=>{var l,c,y;const{response:a}=h||{};return a!=null&&a.error_code?String(a==null?void 0:a.error_code):(l=a==null?void 0:a.data)!=null&&l.error_code?String((c=a==null?void 0:a.data)==null?void 0:c.error_code):a!=null&&a.error_code?String(a==null?void 0:a.error_code):(y=a==null?void 0:a.data)!=null&&y.error_code?String(a.data.error_code):"unknown_error_code"},[]),printError:u}},ft=({data:r,fetchNextPage:n,isFetchingNextPage:i,isInitialLoading:u,isLoading:p,enabled:h=!0})=>{const a=_.useCallback(async c=>{i||!h||await n({pageParam:(c==null?void 0:c.pageParam)||c.visibleRowsCount})},[h,n,i]),l=_.useMemo(()=>{if(r)return r.pages.reduce((c,y)=>[...c,...y],[])},[r]);return{fetchNextPageOnRowsScrollEnd:a,isLoading:i||p,loadingVariant:u?"skeleton":"linear",rows:l}},dt=()=>({clearAuthenticationToken:()=>{M.defaults.headers.common.Authorization=null},setAuthenticationToken:({tokenType:i,accessToken:u})=>{M.defaults.headers.common.Authorization=`${i} ${u}`}}),me=(r,n="ll")=>N(r).format(n),ge=(r,n="km")=>{const i=Number(r);return Number.isNaN(i)?`0 ${n}`:`${i.toFixed(2)} ${n}`},vt=r=>{const n=r&&typeof r=="object"&&"pathname"in r&&r.pathname?r.pathname:r;return typeof n=="string"?n!=null&&n.startsWith("/")?n!=null&&n.startsWith("/files")?n:`/files${n}`:n!=null&&n.startsWith("files")?`/${n}`:n!=null&&n.startsWith("files")?`/${n}`:`/files/${n}`:n},_e=(r,n)=>{if(!r)return"";const i=vt(r),u=typeof r=="object"&&"pathname"in r?`${r.origin}${i}`:r;return typeof n=="number"?`${u.replace("/files",`/thumbs/${n}`)}`:u},pt=()=>{const{apiURL:r}=_.useContext(J);return{dateAdapter:me,distanceAdapter:ge,filePathAdapter:(i,u)=>_e(r&&typeof i=="string"?{origin:r,pathname:i}:i,u)}},mt=r=>r.charAt(0).toUpperCase()+r.slice(1).toLowerCase(),gt=r=>{const u=r.split("/").filter(p=>p.length>0).map(p=>p.replace(/\${([^}]*)}/g,"$1").split(/[_-]/).map(c=>c.charAt(0).toUpperCase()+c.slice(1)).join("")).join("");return u.charAt(0).toLowerCase()+u.slice(1)},_t=(r,n,i)=>{const u=gt(n),p=mt(i);return`${u}${p}`},ht=r=>{if(r)return(r==null?void 0:r.reduce((n,i)=>(n[i]={query:{useInfinite:!0,useInfiniteQueryParam:"offset",useQuery:!0}},n),{}))||{}},yt=r=>{const{input:n="./openapi.json",operationsToGenerateInfiniteQueryHook:i=void 0}=r||{};return{api:{hooks:{afterAllFilesWrite:"prettier src/api/ --write"},input:n,output:{client:"react-query",mode:"tags-split",override:{header:u=>["Generated by orval 🍺",...u.title?[u.title]:[],...u.description?[u.description]:[]],mutator:{name:"axiosCustomInstance",path:`${__dirname}/config/orval/mutator/axiosCustomInstance.ts`},operationName:_t,...(i==null?void 0:i.length)&&{operations:ht(i)},query:{useQuery:!0}},schemas:"src/api/model",target:"src/api/services/api.ts"}}}};var bt={exports:{}};(function(r,n){(function(i,u){r.exports=u()})(ee,function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(i){var u=["th","st","nd","rd"],p=i%100;return"["+i+(u[(p-20)%10]||u[p]||u[0])+"]"}}})})(bt);const he=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var Et={exports:{}};(function(r,n){(function(i,u){r.exports=u(N)})(ee,function(i){function u(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var p=u(i),h={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(a){return""+a+(a===1?"er":"")}};return p.default.locale(h,null,!0),h})})(Et);const Rt=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));d.GTMSendPageView=Ke,d.InitializeAxiosConfig=tt,d.InitializeDaysJSConfig=st,d.InitializeI18nConfig=rt,d.InitializeMapBoxConfig=ot,d.InitializeSentryConfig=nt,d.InjectDependenciesContext=J,d.InjectDependenciesProvider=et,d.MaskTextField=at,d.QueryClientProviderWithConfig=ct,d.RequireAuth=Qe,d.dateAdapter=me,d.distanceAdapter=ge,d.getOrvalConfig=yt,d.useAdapter=pt,d.useAuth=dt,d.useInfiniteDataGrid=ft,d.useResponseError=lt,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});
27
+ */var ve;function Ke(){if(ve)return U;ve=1;var r=E,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,p=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,y={key:!0,ref:!0,__self:!0,__source:!0};function a(l,c,_){var b,S={},j=null,P=null;_!==void 0&&(j=""+_),c.key!==void 0&&(j=""+c.key),c.ref!==void 0&&(P=c.ref);for(b in c)u.call(c,b)&&!y.hasOwnProperty(b)&&(S[b]=c[b]);if(l&&l.defaultProps)for(b in c=l.defaultProps,c)S[b]===void 0&&(S[b]=c[b]);return{$$typeof:n,type:l,key:j,ref:P,props:S,_owner:p.current}}return U.Fragment=i,U.jsx=a,U.jsxs=a,U}process.env.NODE_ENV==="production"?te.exports=Ke():te.exports=Xe();var L=te.exports;const Ze=({Fallback:r,loginPath:n="/login",localStorageKey:i="user",redirect401Path:u="/login",isLogged:p})=>{var S,j,P,x;const[y,a]=E.useState(null),l=k.useLocation(),c=E.useRef(!1),_=typeof p=="function"?p():!!p,b=typeof _=="boolean"?_:_==null?void 0:_.isLogged;return E.useEffect(()=>{c.current||(c.current=!0,M==null||M.interceptors.response.use(h=>h,async h=>{var C;return typeof h=="object"&&h&&"response"in h&&h.response&&typeof h.response=="object"&&"status"in h.response&&h.response&&typeof h.response=="object"&&"status"in h.response&&((C=h==null?void 0:h.response)==null?void 0:C.status)===401&&(M.defaults.headers.common.Authorization=null,localStorage.removeItem(i),a(u)),Promise.reject(h)}))},[i,u]),b&&!y?L.jsx(E.Suspense,{fallback:r,children:(j=(S=l.state)==null?void 0:S.from)!=null&&j.state&&((x=(P=l.state)==null?void 0:P.from)==null?void 0:x.pathname)===n?L.jsx(k.Navigate,{to:l.state.from.state.from.pathname+l.state.from.state.from.search,replace:!0}):L.jsx(k.Outlet,{})}):L.jsx(k.Navigate,{to:n,state:{from:l},replace:!0})},Qe=()=>{const{pathname:r}=k.useLocation(),{sendEvent:n}=Ue.useGoogleTagManager();return E.useEffect(()=>{n({event:"pageView",pathname:r})},[r,n]),L.jsx(k.Outlet,{})},G=E.createContext({apiURL:void 0,children:void 0}),et=({children:r,apiURL:n})=>{const i=E.useMemo(()=>({apiURL:n}),[n]);return L.jsx(G.Provider,{value:i,children:r})},tt=({tokenTypeKey:r="tokenType",userLocalStorageKey:n="user",tokenKey:i="accessToken",postContentType:u="application/json",...p})=>{const{apiURL:y=p.apiURL}=E.useContext(G);if(!M.defaults)return null;const a=localStorage.getItem(n),l=a?JSON.parse(a):null,c=l!=null&&l[r]?l[r]:null,_=l!=null&&l[i]?l[i]:null,b=a?`${c} ${_}`:null;return M.defaults.baseURL=y,M.defaults.headers.post["Content-Type"]=u,b&&(M.defaults.headers.common.Authorization=b),null},rt=({debug:r,resources:n})=>(A!=null&&A.isInitialized||(A.use($e).use(Be.initReactI18next).init({debug:r,fallbackLng:"en",interpolation:{escapeValue:!1},load:"languageOnly",react:{bindI18n:!1,useSuspense:!0},resources:n,returnNull:!1}).then(()=>{document.documentElement.lang!==A.resolvedLanguage&&A.resolvedLanguage&&document.documentElement.setAttribute("lang",A.resolvedLanguage)}),A.on("languageChanged",i=>{document.documentElement.setAttribute("lang",i)})),null),nt=({dsn:r,integrations:n,tracesSampleRate:i,replaysSessionSampleRate:u,replaysOnErrorSampleRate:p,tracePropagationTargets:y,ignoreErrors:a,debug:l,environment:c})=>(Q.isInitialized()||(l||process.env.NODE_ENV==="prod"||process.env.NODE_ENV==="production")&&Q.init({debug:l,dsn:r,environment:c||"production",ignoreErrors:[...a||[],/dynamically imported module/],integrations:[Q.reactRouterV6BrowserTracingIntegration({createRoutesFromChildren:k.createRoutesFromChildren,matchRoutes:k.matchRoutes,useEffect:E.useEffect,useLocation:k.useLocation,useNavigationType:k.useNavigationType}),...n||[]],replaysOnErrorSampleRate:p||1,replaysSessionSampleRate:u||.1,tracePropagationTargets:y,tracesSampleRate:i||1}),null),at=({IMaskMixin:r,...n})=>{const i=E.useMemo(()=>r(({TextField:u,...p})=>L.jsx(u,{...p})),[r]);return L.jsx(i,{...n})},ot=({accessToken:r})=>(r&&(Je.accessToken=r),null);var pe={exports:{}};(function(r,n){(function(i,u){r.exports=u()})(ee,function(){var i={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(u,p,y){var a=p.prototype,l=a.format;y.en.formats=i,a.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var _=this.$locale().formats,b=function(S,j){return S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(P,x,h){var J=h&&h.toUpperCase();return x||j[h]||i[h]||j[J].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(I,C,re){return C||re.slice(1)})})}(c,_===void 0?{}:_);return l.call(this,b)}}})})(pe);var it=pe.exports;const ut=He(it);N.extend(ut);const st=({language:r})=>(E.useEffect(()=>{var i;const n=r||((i=navigator.language)==null?void 0:i.slice(0,2))||"en";if(n==="en"){Promise.resolve().then(()=>he).then(()=>{N.locale(n)});return}n==="fr"&&Promise.resolve().then(()=>Rt).then(()=>{N.locale(n)}).catch(()=>{Promise.resolve().then(()=>he).then(()=>{N.locale("en")})})},[r]),null),ct=({children:r,defaultQueriesOptions:n,defaultMutationsOptions:i})=>{const u=new fe.QueryClient({defaultOptions:{mutations:{...i},queries:{getNextPageParam:(p,y,a)=>p.length+(a||0),refetchOnWindowFocus:!1,retry:3,...n}}});return L.jsx(fe.QueryClientProvider,{client:u,children:r})},lt=r=>{const{unknownErrorTranslationKey:n="error.unknownError"}=r||{},i=A.t(n),u=E.useCallback(y=>{var l,c,_,b,S,j,P,x,h;const{response:a}=y||{};return a!=null&&a.reason?String(a.reason):(l=a==null?void 0:a.data)!=null&&l.reason?String(a.data.reason):(c=a==null?void 0:a.data)!=null&&c.message?String(a.data.message):(b=(_=a==null?void 0:a.data)==null?void 0:_.detail)!=null&&b.length&&Array.isArray((S=a==null?void 0:a.data)==null?void 0:S.detail)&&((P=(j=a==null?void 0:a.data)==null?void 0:j.detail[0])!=null&&P.msg)&&typeof((h=(x=a==null?void 0:a.data)==null?void 0:x.detail[0])==null?void 0:h.msg)=="string"?String(a.data.detail[0].msg):i},[i]);return{getErrorCode:E.useCallback(y=>{var l,c,_;const{response:a}=y||{};return a!=null&&a.error_code?String(a==null?void 0:a.error_code):(l=a==null?void 0:a.data)!=null&&l.error_code?String((c=a==null?void 0:a.data)==null?void 0:c.error_code):a!=null&&a.error_code?String(a==null?void 0:a.error_code):(_=a==null?void 0:a.data)!=null&&_.error_code?String(a.data.error_code):"unknown_error_code"},[]),printError:u}},ft=({data:r,fetchNextPage:n,isFetchingNextPage:i,isInitialLoading:u,isLoading:p,enabled:y=!0})=>{const a=E.useCallback(async c=>{i||!y||await n({pageParam:(c==null?void 0:c.pageParam)||c.visibleRowsCount})},[y,n,i]),l=E.useMemo(()=>{if(r)return r.pages.reduce((c,_)=>[...c,..._],[])},[r]);return{fetchNextPageOnRowsScrollEnd:a,isLoading:i||p,loadingVariant:u?"skeleton":"linear",rows:l}},dt=()=>({clearAuthenticationToken:()=>{M.defaults.headers.common.Authorization=null},setAuthenticationToken:({tokenType:i,accessToken:u})=>{M.defaults.headers.common.Authorization=`${i} ${u}`}}),me=(r,n="ll")=>N(r).format(n),ge=(r,n="km")=>{const i=Number(r);return Number.isNaN(i)?`0 ${n}`:`${i.toFixed(2)} ${n}`},vt=r=>{const n=r&&typeof r=="object"&&"pathname"in r&&r.pathname?r.pathname:r;return typeof n=="string"?n!=null&&n.startsWith("/")?n!=null&&n.startsWith("/files")?n:`/files${n}`:n!=null&&n.startsWith("files")?`/${n}`:n!=null&&n.startsWith("files")?`/${n}`:`/files/${n}`:n},_e=(r,n)=>{if(!r)return"";const i=vt(r),u=typeof r=="object"&&"pathname"in r?`${r.origin}${i}`:r;return typeof n=="number"?`${u.replace("/files",`/thumbs/${n}`)}`:u},pt=()=>{const{apiURL:r}=E.useContext(G);return{dateAdapter:me,distanceAdapter:ge,filePathAdapter:(i,u)=>_e(r&&typeof i=="string"?{origin:r,pathname:i}:i,u)}},mt=r=>r.charAt(0).toUpperCase()+r.slice(1).toLowerCase(),gt=r=>{const u=r.split("/").filter(p=>p.length>0).map(p=>p.replace(/\${([^}]*)}/g,"$1").split(/[_-]/).map(c=>c.charAt(0).toUpperCase()+c.slice(1)).join("")).join("");return u.charAt(0).toLowerCase()+u.slice(1)},_t=(r,n,i)=>{const u=gt(n),p=mt(i);return`${u}${p}`},ht=r=>{if(r)return(r==null?void 0:r.reduce((n,i)=>(n[i]={query:{useInfinite:!0,useInfiniteQueryParam:"offset",useQuery:!0}},n),{}))||{}},yt=r=>{const{input:n="./openapi.json",operationsToGenerateInfiniteQueryHook:i=void 0}=r||{};return{api:{hooks:{afterAllFilesWrite:"prettier src/api/ --write"},input:n,output:{client:"react-query",mode:"tags-split",override:{header:u=>["Generated by orval 🍺",...u.title?[u.title]:[],...u.description?[u.description]:[]],mutator:{name:"axiosCustomInstance",path:`${__dirname}/config/orval/mutator/axiosCustomInstance.ts`},operationName:_t,...(i==null?void 0:i.length)&&{operations:ht(i)},query:{useQuery:!0}},schemas:"src/api/model",target:"src/api/services/api.ts"}}}};var bt={exports:{}};(function(r,n){(function(i,u){r.exports=u()})(ee,function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(i){var u=["th","st","nd","rd"],p=i%100;return"["+i+(u[(p-20)%10]||u[p]||u[0])+"]"}}})})(bt);const he=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var Et={exports:{}};(function(r,n){(function(i,u){r.exports=u(N)})(ee,function(i){function u(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var p=u(i),y={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(a){return""+a+(a===1?"er":"")}};return p.default.locale(y,null,!0),y})})(Et);const Rt=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));d.GTMSendPageView=Qe,d.InitializeAxiosConfig=tt,d.InitializeDaysJSConfig=st,d.InitializeI18nConfig=rt,d.InitializeMapBoxConfig=ot,d.InitializeSentryConfig=nt,d.InjectDependenciesContext=G,d.InjectDependenciesProvider=et,d.MaskTextField=at,d.QueryClientProviderWithConfig=ct,d.RequireAuth=Ze,d.dateAdapter=me,d.distanceAdapter=ge,d.getOrvalConfig=yt,d.useAdapter=pt,d.useAuth=dt,d.useInfiniteDataGrid=ft,d.useResponseError=lt,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tracktor/shared-module",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "types": "./dist/main.d.ts",