@tracktor/shared-module 1.0.1 → 1.0.2

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.1
4
- - **[fix]** : GTMSendPageView import module
3
+ ## v1.0.2
4
+ - **[fix]** : MapBoxConfig import module
@@ -10,5 +10,5 @@ interface MapBoxConfigProps {
10
10
  * @param accessToken
11
11
  * @constructor
12
12
  */
13
- declare const MapBoxConfig: ({ accessToken }: MapBoxConfigProps) => null;
13
+ declare const MapBoxConfig: ({ accessToken }: MapBoxConfigProps) => void;
14
14
  export default MapBoxConfig;
@@ -1,4 +1,4 @@
1
- import { c as o } from "./main-D2TKp5zS.js";
1
+ import { c as o } from "./main-eBEbA18Y.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-D2TKp5zS.js";
1
+ import { c as m } from "./main-eBEbA18Y.js";
2
2
  import o from "dayjs";
3
3
  var i = { exports: {} };
4
4
  (function(n, s) {
@@ -1,18 +1,17 @@
1
- import Ne, { useState as We, useRef as Tr, useLayoutEffect as Ve, Suspense as Sr, useEffect as se, createContext as wr, useMemo as ue, useContext as Ue, useCallback as oe } from "react";
2
- import $ from "axios";
3
- import { useLocation as le, Navigate as Me, Outlet as ze, createRoutesFromChildren as Or, matchRoutes as xr, useNavigationType as jr } from "react-router-dom";
4
- import I, { t as Pr } from "i18next";
5
- import Ar from "i18next-browser-languagedetector";
6
- import { initReactI18next as kr } from "react-i18next";
7
- import * as ae from "@sentry/react";
8
- import Le from "mapbox-gl";
1
+ import Ie, { useState as Ne, useRef as Cr, useLayoutEffect as We, Suspense as Tr, useEffect as X, createContext as Sr, useMemo as ue, useContext as Ve, useCallback as ie } from "react";
2
+ import M from "axios";
3
+ import { useLocation as le, Navigate as $e, Outlet as Ue, createRoutesFromChildren as wr, matchRoutes as xr, useNavigationType as Or } from "react-router-dom";
4
+ import I, { t as jr } from "i18next";
5
+ import Pr from "i18next-browser-languagedetector";
6
+ import { initReactI18next as Ar } from "react-i18next";
7
+ import * as oe from "@sentry/react";
9
8
  import z from "dayjs";
10
- import { QueryClient as Dr, QueryClientProvider as $r } from "@tanstack/react-query";
9
+ import { QueryClient as kr, QueryClientProvider as Dr } from "@tanstack/react-query";
11
10
  var Mr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
12
- function Lr(t) {
11
+ function $r(t) {
13
12
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
14
13
  }
15
- var ie = { exports: {} }, V = {};
14
+ var se = { exports: {} }, V = {};
16
15
  /**
17
16
  * @license React
18
17
  * react-jsx-runtime.development.js
@@ -22,10 +21,10 @@ var ie = { exports: {} }, V = {};
22
21
  * This source code is licensed under the MIT license found in the
23
22
  * LICENSE file in the root directory of this source tree.
24
23
  */
25
- var Fe;
26
- function Fr() {
27
- return Fe || (Fe = 1, process.env.NODE_ENV !== "production" && function() {
28
- var t = Ne, 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";
24
+ var Le;
25
+ function Lr() {
26
+ return Le || (Le = 1, process.env.NODE_ENV !== "production" && function() {
27
+ 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"), O = Symbol.for("react.offscreen"), j = Symbol.iterator, w = "@@iterator";
29
28
  function R(e) {
30
29
  if (e === null || typeof e != "object")
31
30
  return null;
@@ -50,16 +49,16 @@ function Fr() {
50
49
  m.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, m);
51
50
  }
52
51
  }
53
- var qe = !1, Be = !1, Je = !1, He = !1, Xe = !1, fe;
52
+ var Be = !1, Ge = !1, qe = !1, Je = !1, He = !1, fe;
54
53
  fe = Symbol.for("react.module.reference");
55
- function Ke(e) {
56
- return !!(typeof e == "string" || typeof e == "function" || e === s || e === y || Xe || e === v || e === g || e === h || He || e === x || qe || Be || Je || 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
54
+ function Xe(e) {
55
+ return !!(typeof e == "string" || typeof e == "function" || e === s || e === y || He || e === v || e === g || e === h || Je || e === O || Be || Ge || 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
56
  // types supported by any Flight configuration anywhere since
58
57
  // we don't know which Flight build this will end up being used
59
58
  // with.
60
59
  e.$$typeof === fe || e.getModuleId !== void 0));
61
60
  }
62
- function Ze(e, r, a) {
61
+ function Ke(e, r, a) {
63
62
  var u = e.displayName;
64
63
  if (u)
65
64
  return u;
@@ -99,7 +98,7 @@ function Fr() {
99
98
  var a = e;
100
99
  return de(a._context) + ".Provider";
101
100
  case l:
102
- return Ze(e, e.render, "ForwardRef");
101
+ return Ke(e, e.render, "ForwardRef");
103
102
  case C:
104
103
  var u = e.displayName || null;
105
104
  return u !== null ? u : P(e.type) || "Memo";
@@ -114,11 +113,11 @@ function Fr() {
114
113
  }
115
114
  return null;
116
115
  }
117
- var M = Object.assign, N = 0, pe, ve, me, ge, he, ye, be;
116
+ var $ = Object.assign, N = 0, pe, ve, me, ge, he, ye, be;
118
117
  function Ee() {
119
118
  }
120
119
  Ee.__reactDisabledLog = !0;
121
- function Qe() {
120
+ function Ze() {
122
121
  {
123
122
  if (N === 0) {
124
123
  pe = console.log, ve = console.info, me = console.warn, ge = console.error, he = console.group, ye = console.groupCollapsed, be = console.groupEnd;
@@ -141,7 +140,7 @@ function Fr() {
141
140
  N++;
142
141
  }
143
142
  }
144
- function er() {
143
+ function Qe() {
145
144
  {
146
145
  if (N--, N === 0) {
147
146
  var e = {
@@ -150,25 +149,25 @@ function Fr() {
150
149
  writable: !0
151
150
  };
152
151
  Object.defineProperties(console, {
153
- log: M({}, e, {
152
+ log: $({}, e, {
154
153
  value: pe
155
154
  }),
156
- info: M({}, e, {
155
+ info: $({}, e, {
157
156
  value: ve
158
157
  }),
159
- warn: M({}, e, {
158
+ warn: $({}, e, {
160
159
  value: me
161
160
  }),
162
- error: M({}, e, {
161
+ error: $({}, e, {
163
162
  value: ge
164
163
  }),
165
- group: M({}, e, {
164
+ group: $({}, e, {
166
165
  value: he
167
166
  }),
168
- groupCollapsed: M({}, e, {
167
+ groupCollapsed: $({}, e, {
169
168
  value: ye
170
169
  }),
171
- groupEnd: M({}, e, {
170
+ groupEnd: $({}, e, {
172
171
  value: be
173
172
  })
174
173
  });
@@ -176,39 +175,39 @@ function Fr() {
176
175
  N < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
177
176
  }
178
177
  }
179
- var X = D.ReactCurrentDispatcher, K;
180
- function G(e, r, a) {
178
+ var K = D.ReactCurrentDispatcher, Z;
179
+ function B(e, r, a) {
181
180
  {
182
- if (K === void 0)
181
+ if (Z === void 0)
183
182
  try {
184
183
  throw Error();
185
184
  } catch (p) {
186
185
  var u = p.stack.trim().match(/\n( *(at )?)/);
187
- K = u && u[1] || "";
186
+ Z = u && u[1] || "";
188
187
  }
189
188
  return `
190
- ` + K + e;
189
+ ` + Z + e;
191
190
  }
192
191
  }
193
- var Z = !1, q;
192
+ var Q = !1, G;
194
193
  {
195
- var rr = typeof WeakMap == "function" ? WeakMap : Map;
196
- q = new rr();
194
+ var er = typeof WeakMap == "function" ? WeakMap : Map;
195
+ G = new er();
197
196
  }
198
197
  function Re(e, r) {
199
- if (!e || Z)
198
+ if (!e || Q)
200
199
  return "";
201
200
  {
202
- var a = q.get(e);
201
+ var a = G.get(e);
203
202
  if (a !== void 0)
204
203
  return a;
205
204
  }
206
205
  var u;
207
- Z = !0;
206
+ Q = !0;
208
207
  var p = Error.prepareStackTrace;
209
208
  Error.prepareStackTrace = void 0;
210
209
  var m;
211
- m = X.current, X.current = null, Qe();
210
+ m = K.current, K.current = null, Ze();
212
211
  try {
213
212
  if (r) {
214
213
  var d = function() {
@@ -252,50 +251,50 @@ function Fr() {
252
251
  if (b !== 1 || E !== 1)
253
252
  do
254
253
  if (b--, E--, E < 0 || f[b] !== S[E]) {
255
- var O = `
254
+ var x = `
256
255
  ` + f[b].replace(" at new ", " at ");
257
- return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && q.set(e, O), O;
256
+ return e.displayName && x.includes("<anonymous>") && (x = x.replace("<anonymous>", e.displayName)), typeof e == "function" && G.set(e, x), x;
258
257
  }
259
258
  while (b >= 1 && E >= 0);
260
259
  break;
261
260
  }
262
261
  }
263
262
  } finally {
264
- Z = !1, X.current = m, er(), Error.prepareStackTrace = p;
263
+ Q = !1, K.current = m, Qe(), Error.prepareStackTrace = p;
265
264
  }
266
- var Y = e ? e.displayName || e.name : "", $e = Y ? G(Y) : "";
267
- return typeof e == "function" && q.set(e, $e), $e;
265
+ var Y = e ? e.displayName || e.name : "", Me = Y ? B(Y) : "";
266
+ return typeof e == "function" && G.set(e, Me), Me;
268
267
  }
269
- function tr(e, r, a) {
268
+ function rr(e, r, a) {
270
269
  return Re(e, !1);
271
270
  }
272
- function nr(e) {
271
+ function tr(e) {
273
272
  var r = e.prototype;
274
273
  return !!(r && r.isReactComponent);
275
274
  }
276
- function B(e, r, a) {
275
+ function q(e, r, a) {
277
276
  if (e == null)
278
277
  return "";
279
278
  if (typeof e == "function")
280
- return Re(e, nr(e));
279
+ return Re(e, tr(e));
281
280
  if (typeof e == "string")
282
- return G(e);
281
+ return B(e);
283
282
  switch (e) {
284
283
  case g:
285
- return G("Suspense");
284
+ return B("Suspense");
286
285
  case h:
287
- return G("SuspenseList");
286
+ return B("SuspenseList");
288
287
  }
289
288
  if (typeof e == "object")
290
289
  switch (e.$$typeof) {
291
290
  case l:
292
- return tr(e.render);
291
+ return rr(e.render);
293
292
  case C:
294
- return B(e.type, r, a);
293
+ return q(e.type, r, a);
295
294
  case T: {
296
295
  var u = e, p = u._payload, m = u._init;
297
296
  try {
298
- return B(m(p), r, a);
297
+ return q(m(p), r, a);
299
298
  } catch {
300
299
  }
301
300
  }
@@ -305,12 +304,12 @@ function Fr() {
305
304
  var J = Object.prototype.hasOwnProperty, _e = {}, Ce = D.ReactDebugCurrentFrame;
306
305
  function H(e) {
307
306
  if (e) {
308
- var r = e._owner, a = B(e.type, e._source, r ? r.type : null);
307
+ var r = e._owner, a = q(e.type, e._source, r ? r.type : null);
309
308
  Ce.setExtraStackFrame(a);
310
309
  } else
311
310
  Ce.setExtraStackFrame(null);
312
311
  }
313
- function ar(e, r, a, u, p) {
312
+ function nr(e, r, a, u, p) {
314
313
  {
315
314
  var m = Function.call.bind(J);
316
315
  for (var d in e)
@@ -329,17 +328,17 @@ function Fr() {
329
328
  }
330
329
  }
331
330
  }
332
- var or = Array.isArray;
333
- function Q(e) {
334
- return or(e);
331
+ var ar = Array.isArray;
332
+ function ee(e) {
333
+ return ar(e);
335
334
  }
336
- function ir(e) {
335
+ function or(e) {
337
336
  {
338
337
  var r = typeof Symbol == "function" && Symbol.toStringTag, a = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
339
338
  return a;
340
339
  }
341
340
  }
342
- function sr(e) {
341
+ function ir(e) {
343
342
  try {
344
343
  return Te(e), !1;
345
344
  } catch {
@@ -350,17 +349,17 @@ function Fr() {
350
349
  return "" + e;
351
350
  }
352
351
  function Se(e) {
353
- if (sr(e))
354
- return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ir(e)), Te(e);
352
+ if (ir(e))
353
+ return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", or(e)), Te(e);
355
354
  }
356
- var W = D.ReactCurrentOwner, ur = {
355
+ var W = D.ReactCurrentOwner, sr = {
357
356
  key: !0,
358
357
  ref: !0,
359
358
  __self: !0,
360
359
  __source: !0
361
- }, we, Oe, ee;
362
- ee = {};
363
- function lr(e) {
360
+ }, we, xe, re;
361
+ re = {};
362
+ function ur(e) {
364
363
  if (J.call(e, "ref")) {
365
364
  var r = Object.getOwnPropertyDescriptor(e, "ref").get;
366
365
  if (r && r.isReactWarning)
@@ -368,7 +367,7 @@ function Fr() {
368
367
  }
369
368
  return e.ref !== void 0;
370
369
  }
371
- function cr(e) {
370
+ function lr(e) {
372
371
  if (J.call(e, "key")) {
373
372
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
374
373
  if (r && r.isReactWarning)
@@ -376,13 +375,13 @@ function Fr() {
376
375
  }
377
376
  return e.key !== void 0;
378
377
  }
379
- function fr(e, r) {
378
+ function cr(e, r) {
380
379
  if (typeof e.ref == "string" && W.current && r && W.current.stateNode !== r) {
381
380
  var a = P(W.current.type);
382
- ee[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), ee[a] = !0);
381
+ 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);
383
382
  }
384
383
  }
385
- function dr(e, r) {
384
+ function fr(e, r) {
386
385
  {
387
386
  var a = function() {
388
387
  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));
@@ -393,10 +392,10 @@ function Fr() {
393
392
  });
394
393
  }
395
394
  }
396
- function pr(e, r) {
395
+ function dr(e, r) {
397
396
  {
398
397
  var a = function() {
399
- 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));
398
+ xe || (xe = !0, _("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
400
399
  };
401
400
  a.isReactWarning = !0, Object.defineProperty(e, "ref", {
402
401
  get: a,
@@ -404,7 +403,7 @@ function Fr() {
404
403
  });
405
404
  }
406
405
  }
407
- var vr = function(e, r, a, u, p, m, d) {
406
+ var pr = function(e, r, a, u, p, m, d) {
408
407
  var f = {
409
408
  // This tag allows us to uniquely identify this as a React Element
410
409
  $$typeof: n,
@@ -433,12 +432,12 @@ function Fr() {
433
432
  value: p
434
433
  }), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
435
434
  };
436
- function mr(e, r, a, u, p) {
435
+ function vr(e, r, a, u, p) {
437
436
  {
438
437
  var m, d = {}, f = null, S = null;
439
- a !== void 0 && (Se(a), f = "" + a), cr(r) && (Se(r.key), f = "" + r.key), lr(r) && (S = r.ref, fr(r, p));
438
+ a !== void 0 && (Se(a), f = "" + a), lr(r) && (Se(r.key), f = "" + r.key), ur(r) && (S = r.ref, cr(r, p));
440
439
  for (m in r)
441
- J.call(r, m) && !ur.hasOwnProperty(m) && (d[m] = r[m]);
440
+ J.call(r, m) && !sr.hasOwnProperty(m) && (d[m] = r[m]);
442
441
  if (e && e.defaultProps) {
443
442
  var b = e.defaultProps;
444
443
  for (m in b)
@@ -446,28 +445,28 @@ function Fr() {
446
445
  }
447
446
  if (f || S) {
448
447
  var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
449
- f && dr(d, E), S && pr(d, E);
448
+ f && fr(d, E), S && dr(d, E);
450
449
  }
451
- return vr(e, f, S, p, u, W.current, d);
450
+ return pr(e, f, S, p, u, W.current, d);
452
451
  }
453
452
  }
454
- var re = D.ReactCurrentOwner, xe = D.ReactDebugCurrentFrame;
453
+ var te = D.ReactCurrentOwner, Oe = D.ReactDebugCurrentFrame;
455
454
  function F(e) {
456
455
  if (e) {
457
- var r = e._owner, a = B(e.type, e._source, r ? r.type : null);
458
- xe.setExtraStackFrame(a);
456
+ var r = e._owner, a = q(e.type, e._source, r ? r.type : null);
457
+ Oe.setExtraStackFrame(a);
459
458
  } else
460
- xe.setExtraStackFrame(null);
459
+ Oe.setExtraStackFrame(null);
461
460
  }
462
- var te;
463
- te = !1;
464
- function ne(e) {
461
+ var ne;
462
+ ne = !1;
463
+ function ae(e) {
465
464
  return typeof e == "object" && e !== null && e.$$typeof === n;
466
465
  }
467
466
  function je() {
468
467
  {
469
- if (re.current) {
470
- var e = P(re.current.type);
468
+ if (te.current) {
469
+ var e = P(te.current.type);
471
470
  if (e)
472
471
  return `
473
472
 
@@ -476,7 +475,7 @@ Check the render method of \`` + e + "`.";
476
475
  return "";
477
476
  }
478
477
  }
479
- function gr(e) {
478
+ function mr(e) {
480
479
  {
481
480
  if (e !== void 0) {
482
481
  var r = e.fileName.replace(/^.*[\\\/]/, ""), a = e.lineNumber;
@@ -488,7 +487,7 @@ Check your code at ` + r + ":" + a + ".";
488
487
  }
489
488
  }
490
489
  var Pe = {};
491
- function hr(e) {
490
+ function gr(e) {
492
491
  {
493
492
  var r = je();
494
493
  if (!r) {
@@ -505,34 +504,34 @@ Check the top-level render call using <` + a + ">.");
505
504
  if (!e._store || e._store.validated || e.key != null)
506
505
  return;
507
506
  e._store.validated = !0;
508
- var a = hr(r);
507
+ var a = gr(r);
509
508
  if (Pe[a])
510
509
  return;
511
510
  Pe[a] = !0;
512
511
  var u = "";
513
- e && e._owner && e._owner !== re.current && (u = " It was passed a child from " + P(e._owner.type) + "."), F(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), F(null);
512
+ e && e._owner && e._owner !== te.current && (u = " It was passed a child from " + P(e._owner.type) + "."), F(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), F(null);
514
513
  }
515
514
  }
516
515
  function ke(e, r) {
517
516
  {
518
517
  if (typeof e != "object")
519
518
  return;
520
- if (Q(e))
519
+ if (ee(e))
521
520
  for (var a = 0; a < e.length; a++) {
522
521
  var u = e[a];
523
- ne(u) && Ae(u, r);
522
+ ae(u) && Ae(u, r);
524
523
  }
525
- else if (ne(e))
524
+ else if (ae(e))
526
525
  e._store && (e._store.validated = !0);
527
526
  else if (e) {
528
527
  var p = R(e);
529
528
  if (typeof p == "function" && p !== e.entries)
530
529
  for (var m = p.call(e), d; !(d = m.next()).done; )
531
- ne(d.value) && Ae(d.value, r);
530
+ ae(d.value) && Ae(d.value, r);
532
531
  }
533
532
  }
534
533
  }
535
- function yr(e) {
534
+ function hr(e) {
536
535
  {
537
536
  var r = e.type;
538
537
  if (r == null || typeof r == "string")
@@ -548,16 +547,16 @@ Check the top-level render call using <` + a + ">.");
548
547
  return;
549
548
  if (a) {
550
549
  var u = P(r);
551
- ar(a, e.props, "prop", u, e);
552
- } else if (r.PropTypes !== void 0 && !te) {
553
- te = !0;
550
+ nr(a, e.props, "prop", u, e);
551
+ } else if (r.PropTypes !== void 0 && !ne) {
552
+ ne = !0;
554
553
  var p = P(r);
555
554
  _("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
556
555
  }
557
556
  typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
558
557
  }
559
558
  }
560
- function br(e) {
559
+ function yr(e) {
561
560
  {
562
561
  for (var r = Object.keys(e.props), a = 0; a < r.length; a++) {
563
562
  var u = r[a];
@@ -571,42 +570,42 @@ Check the top-level render call using <` + a + ">.");
571
570
  }
572
571
  function De(e, r, a, u, p, m) {
573
572
  {
574
- var d = Ke(e);
573
+ var d = Xe(e);
575
574
  if (!d) {
576
575
  var f = "";
577
576
  (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.");
578
- var S = gr(p);
577
+ var S = mr(p);
579
578
  S ? f += S : f += je();
580
579
  var b;
581
- e === null ? b = "null" : Q(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);
580
+ 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);
582
581
  }
583
- var E = mr(e, r, a, p, m);
582
+ var E = vr(e, r, a, p, m);
584
583
  if (E == null)
585
584
  return E;
586
585
  if (d) {
587
- var O = r.children;
588
- if (O !== void 0)
586
+ var x = r.children;
587
+ if (x !== void 0)
589
588
  if (u)
590
- if (Q(O)) {
591
- for (var Y = 0; Y < O.length; Y++)
592
- ke(O[Y], e);
593
- Object.freeze && Object.freeze(O);
589
+ if (ee(x)) {
590
+ for (var Y = 0; Y < x.length; Y++)
591
+ ke(x[Y], e);
592
+ Object.freeze && Object.freeze(x);
594
593
  } else
595
594
  _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
596
595
  else
597
- ke(O, e);
596
+ ke(x, e);
598
597
  }
599
- return e === s ? br(E) : yr(E), E;
598
+ return e === s ? yr(E) : hr(E), E;
600
599
  }
601
600
  }
602
- function Er(e, r, a) {
601
+ function br(e, r, a) {
603
602
  return De(e, r, a, !0);
604
603
  }
605
- function Rr(e, r, a) {
604
+ function Er(e, r, a) {
606
605
  return De(e, r, a, !1);
607
606
  }
608
- var _r = Rr, Cr = Er;
609
- V.Fragment = s, V.jsx = _r, V.jsxs = Cr;
607
+ var Rr = Er, _r = br;
608
+ V.Fragment = s, V.jsx = Rr, V.jsxs = _r;
610
609
  }()), V;
611
610
  }
612
611
  var U = {};
@@ -619,48 +618,48 @@ var U = {};
619
618
  * This source code is licensed under the MIT license found in the
620
619
  * LICENSE file in the root directory of this source tree.
621
620
  */
622
- var Ye;
623
- function Yr() {
624
- if (Ye)
621
+ var Fe;
622
+ function Fr() {
623
+ if (Fe)
625
624
  return U;
626
- Ye = 1;
627
- var t = Ne, 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 };
625
+ Fe = 1;
626
+ 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 };
628
627
  function o(c, l, g) {
629
- var h, C = {}, T = null, x = null;
630
- g !== void 0 && (T = "" + g), l.key !== void 0 && (T = "" + l.key), l.ref !== void 0 && (x = l.ref);
628
+ var h, C = {}, T = null, O = null;
629
+ g !== void 0 && (T = "" + g), l.key !== void 0 && (T = "" + l.key), l.ref !== void 0 && (O = l.ref);
631
630
  for (h in l)
632
631
  s.call(l, h) && !y.hasOwnProperty(h) && (C[h] = l[h]);
633
632
  if (c && c.defaultProps)
634
633
  for (h in l = c.defaultProps, l)
635
634
  C[h] === void 0 && (C[h] = l[h]);
636
- return { $$typeof: n, type: c, key: T, ref: x, props: C, _owner: v.current };
635
+ return { $$typeof: n, type: c, key: T, ref: O, props: C, _owner: v.current };
637
636
  }
638
637
  return U.Fragment = i, U.jsx = o, U.jsxs = o, U;
639
638
  }
640
- process.env.NODE_ENV === "production" ? ie.exports = Yr() : ie.exports = Fr();
641
- var k = ie.exports;
642
- const at = ({
639
+ process.env.NODE_ENV === "production" ? se.exports = Fr() : se.exports = Lr();
640
+ var k = se.exports;
641
+ const tt = ({
643
642
  Fallback: t,
644
643
  loginPath: n = "/login",
645
644
  localStorageKey: i = "user",
646
645
  redirect401Path: s = "/login",
647
646
  isLogged: v
648
647
  }) => {
649
- var C, T, x, j;
650
- const [y, o] = We(null), c = le(), l = Tr(!1), g = typeof v == "function" ? v() : !!v, h = typeof g == "boolean" ? g : g == null ? void 0 : g.isLogged;
651
- return Ve(() => {
648
+ var C, T, O, j;
649
+ const [y, o] = Ne(null), c = le(), l = Cr(!1), g = typeof v == "function" ? v() : !!v, h = typeof g == "boolean" ? g : g == null ? void 0 : g.isLogged;
650
+ return We(() => {
652
651
  var w;
653
- l.current || (l.current = !0, (w = $) == null || w.interceptors.response.use(
652
+ l.current || (l.current = !0, (w = M) == null || w.interceptors.response.use(
654
653
  (R) => R,
655
654
  async (R) => {
656
655
  var L;
657
- 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 && ((L = R == null ? void 0 : R.response) == null ? void 0 : L.status) === 401 && ($.defaults.headers.common.Authorization = null, localStorage.removeItem(i), o(s)), Promise.reject(R);
656
+ 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 && ((L = R == null ? void 0 : R.response) == null ? void 0 : L.status) === 401 && (M.defaults.headers.common.Authorization = null, localStorage.removeItem(i), o(s)), Promise.reject(R);
658
657
  }
659
658
  ));
660
- }, [i, s]), h && !y ? /* @__PURE__ */ k.jsx(Sr, { 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(ze, {}) }) : /* @__PURE__ */ k.jsx(Me, { to: n, state: { from: c }, replace: !0 });
661
- }, Ir = () => {
662
- const [t, n] = We();
663
- return se(() => {
659
+ }, [i, s]), h && !y ? /* @__PURE__ */ k.jsx(Tr, { fallback: t, children: (T = (C = c.state) == null ? void 0 : C.from) != null && T.state && ((j = (O = c.state) == null ? void 0 : O.from) == null ? void 0 : j.pathname) === n ? /* @__PURE__ */ k.jsx($e, { to: c.state.from.state.from.pathname + c.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ k.jsx(Ue, {}) }) : /* @__PURE__ */ k.jsx($e, { to: n, state: { from: c }, replace: !0 });
660
+ }, Yr = () => {
661
+ const [t, n] = Ne();
662
+ return X(() => {
664
663
  (async () => {
665
664
  try {
666
665
  const { useGoogleTagManager: s } = await import("@tracktor/react-google-tag-manager");
@@ -670,18 +669,18 @@ const at = ({
670
669
  }
671
670
  })().then();
672
671
  }, []), t;
673
- }, ot = () => {
674
- const { pathname: t } = le(), n = Ir();
675
- return se(() => {
672
+ }, nt = () => {
673
+ const { pathname: t } = le(), n = Yr();
674
+ return X(() => {
676
675
  if (n) {
677
676
  const { sendEvent: i } = n();
678
677
  i({ event: "pageView", pathname: t });
679
678
  }
680
- }, [t, n]), /* @__PURE__ */ k.jsx(ze, {});
681
- }, ce = wr({
679
+ }, [t, n]), /* @__PURE__ */ k.jsx(Ue, {});
680
+ }, ce = Sr({
682
681
  apiURL: void 0,
683
682
  children: void 0
684
- }), it = ({ children: t, apiURL: n }) => {
683
+ }), at = ({ children: t, apiURL: n }) => {
685
684
  const i = ue(
686
685
  () => ({
687
686
  apiURL: n
@@ -689,21 +688,21 @@ const at = ({
689
688
  [n]
690
689
  );
691
690
  return /* @__PURE__ */ k.jsx(ce.Provider, { value: i, children: t });
692
- }, st = ({
691
+ }, ot = ({
693
692
  tokenTypeKey: t = "tokenType",
694
693
  userLocalStorageKey: n = "user",
695
694
  tokenKey: i = "accessToken",
696
695
  postContentType: s = "application/json",
697
696
  ...v
698
697
  }) => {
699
- const { apiURL: y = v.baseURL } = Ue(ce);
700
- if (!$.defaults)
698
+ const { apiURL: y = v.baseURL } = Ve(ce);
699
+ if (!M.defaults)
701
700
  return null;
702
701
  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;
703
- return $.defaults.baseURL = y, $.defaults.headers.post["Content-Type"] = s, h && ($.defaults.headers.common.Authorization = h), null;
704
- }, ut = ({ debug: t, resources: n }) => {
702
+ return M.defaults.baseURL = y, M.defaults.headers.post["Content-Type"] = s, h && (M.defaults.headers.common.Authorization = h), null;
703
+ }, it = ({ debug: t, resources: n }) => {
705
704
  var i;
706
- return (i = I) != null && i.isInitialized || (I.use(Ar).use(kr).init({
705
+ return (i = I) != null && i.isInitialized || (I.use(Pr).use(Ar).init({
707
706
  debug: t,
708
707
  fallbackLng: "en",
709
708
  interpolation: {
@@ -721,7 +720,7 @@ const at = ({
721
720
  }), I.on("languageChanged", (s) => {
722
721
  document.documentElement.setAttribute("lang", s);
723
722
  })), null;
724
- }, lt = ({
723
+ }, st = ({
725
724
  dsn: t,
726
725
  integrations: n,
727
726
  tracesSampleRate: i,
@@ -731,18 +730,18 @@ const at = ({
731
730
  ignoreErrors: o,
732
731
  debug: c,
733
732
  environment: l
734
- }) => (ae.isInitialized() || (c || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && ae.init({
733
+ }) => (oe.isInitialized() || (c || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && oe.init({
735
734
  debug: c,
736
735
  dsn: t,
737
736
  environment: l || "production",
738
737
  ignoreErrors: [...o || [], /dynamically imported module/],
739
738
  integrations: [
740
- ae.reactRouterV6BrowserTracingIntegration({
741
- createRoutesFromChildren: Or,
739
+ oe.reactRouterV6BrowserTracingIntegration({
740
+ createRoutesFromChildren: wr,
742
741
  matchRoutes: xr,
743
- useEffect: se,
742
+ useEffect: X,
744
743
  useLocation: le,
745
- useNavigationType: jr
744
+ useNavigationType: Or
746
745
  }),
747
746
  ...n || []
748
747
  ],
@@ -750,15 +749,28 @@ const at = ({
750
749
  replaysSessionSampleRate: s || 0.1,
751
750
  tracePropagationTargets: y,
752
751
  tracesSampleRate: i || 1
753
- }), null), ct = ({ IMaskMixin: t, ...n }) => {
752
+ }), null), ut = ({ IMaskMixin: t, ...n }) => {
754
753
  const i = ue(
755
754
  // eslint-disable-next-line react/jsx-props-no-spreading
756
755
  () => t(({ TextField: s, ...v }) => /* @__PURE__ */ k.jsx(s, { ...v })),
757
756
  [t]
758
757
  );
759
758
  return /* @__PURE__ */ k.jsx(i, { ...n });
760
- }, ft = ({ accessToken: t }) => (Le && t && (Le.accessToken = t), null);
761
- var Ge = { exports: {} };
759
+ }, lt = ({ accessToken: t }) => {
760
+ X(() => {
761
+ if (!t)
762
+ return;
763
+ (async () => {
764
+ try {
765
+ const i = await import("mapbox-gl");
766
+ i.accessToken = t;
767
+ } catch (i) {
768
+ console.error(i);
769
+ }
770
+ })().then();
771
+ }, [t]);
772
+ };
773
+ var ze = { exports: {} };
762
774
  (function(t, n) {
763
775
  (function(i, s) {
764
776
  t.exports = s();
@@ -769,7 +781,7 @@ var Ge = { exports: {} };
769
781
  y.en.formats = i, o.format = function(l) {
770
782
  l === void 0 && (l = "YYYY-MM-DDTHH:mm:ssZ");
771
783
  var g = this.$locale().formats, h = function(C, T) {
772
- return C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(x, j, w) {
784
+ return C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(O, j, w) {
773
785
  var R = w && w.toUpperCase();
774
786
  return j || T[w] || i[w] || T[R].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(D, _, L) {
775
787
  return _ || L.slice(1);
@@ -780,28 +792,28 @@ var Ge = { exports: {} };
780
792
  };
781
793
  };
782
794
  });
783
- })(Ge);
784
- var Nr = Ge.exports;
785
- const Wr = /* @__PURE__ */ Lr(Nr);
786
- z.extend(Wr);
787
- const dt = ({ language: t }) => (Ve(() => {
795
+ })(ze);
796
+ var Ir = ze.exports;
797
+ const Nr = /* @__PURE__ */ $r(Ir);
798
+ z.extend(Nr);
799
+ const ct = ({ language: t }) => (We(() => {
788
800
  var i;
789
801
  const n = t || ((i = navigator.language) == null ? void 0 : i.slice(0, 2)) || "en";
790
802
  if (n === "en") {
791
- import("./en-PZ6S8N4v.js").then((s) => s.e).then(() => {
803
+ import("./en-QMoq2Jc6.js").then((s) => s.e).then(() => {
792
804
  z.locale(n);
793
805
  });
794
806
  return;
795
807
  }
796
- n === "fr" && import("./fr-Q1qOJ6h9.js").then((s) => s.f).then(() => {
808
+ n === "fr" && import("./fr-sayL6zEF.js").then((s) => s.f).then(() => {
797
809
  z.locale(n);
798
810
  }).catch(() => {
799
- import("./en-PZ6S8N4v.js").then((s) => s.e).then(() => {
811
+ import("./en-QMoq2Jc6.js").then((s) => s.e).then(() => {
800
812
  z.locale("en");
801
813
  });
802
814
  });
803
- }, [t]), null), pt = ({ children: t, defaultQueriesOptions: n, defaultMutationsOptions: i }) => {
804
- const s = new Dr({
815
+ }, [t]), null), ft = ({ children: t, defaultQueriesOptions: n, defaultMutationsOptions: i }) => {
816
+ const s = new kr({
805
817
  defaultOptions: {
806
818
  mutations: {
807
819
  ...i
@@ -814,22 +826,22 @@ const dt = ({ language: t }) => (Ve(() => {
814
826
  }
815
827
  }
816
828
  });
817
- return /* @__PURE__ */ k.jsx($r, { client: s, children: t });
818
- }, vt = (t) => {
819
- const { unknownErrorTranslationKey: n = "error.unknownError" } = t || {}, i = Pr(n), s = oe(
829
+ return /* @__PURE__ */ k.jsx(Dr, { client: s, children: t });
830
+ }, dt = (t) => {
831
+ const { unknownErrorTranslationKey: n = "error.unknownError" } = t || {}, i = jr(n), s = ie(
820
832
  (y) => {
821
- var c, l, g, h, C, T, x, j, w;
833
+ var c, l, g, h, C, T, O, j, w;
822
834
  const { response: o } = y || {};
823
- 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;
835
+ 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) && ((O = (T = o == null ? void 0 : o.data) == null ? void 0 : T.detail[0]) != null && O.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;
824
836
  },
825
837
  [i]
826
838
  );
827
- return { getErrorCode: oe((y) => {
839
+ return { getErrorCode: ie((y) => {
828
840
  var c, l, g;
829
841
  const { response: o } = y || {};
830
842
  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";
831
843
  }, []), printError: s };
832
- }, mt = ({
844
+ }, pt = ({
833
845
  data: t,
834
846
  fetchNextPage: n,
835
847
  isFetchingNextPage: i,
@@ -837,7 +849,7 @@ const dt = ({ language: t }) => (Ve(() => {
837
849
  isLoading: v,
838
850
  enabled: y = !0
839
851
  }) => {
840
- const o = oe(
852
+ const o = ie(
841
853
  async (l) => {
842
854
  i || !y || await n({ pageParam: (l == null ? void 0 : l.pageParam) || l.visibleRowsCount });
843
855
  },
@@ -852,30 +864,30 @@ const dt = ({ language: t }) => (Ve(() => {
852
864
  loadingVariant: s ? "skeleton" : "linear",
853
865
  rows: c
854
866
  };
855
- }, gt = () => ({
867
+ }, vt = () => ({
856
868
  clearAuthenticationToken: () => {
857
- $.defaults.headers.common.Authorization = null;
869
+ M.defaults.headers.common.Authorization = null;
858
870
  },
859
871
  setAuthenticationToken: ({ tokenType: i, accessToken: s }) => {
860
- $.defaults.headers.common.Authorization = `${i} ${s}`;
872
+ M.defaults.headers.common.Authorization = `${i} ${s}`;
861
873
  }
862
- }), Vr = (t, n = "ll") => z(t).format(n), Ur = (t, n = "km") => {
874
+ }), Wr = (t, n = "ll") => z(t).format(n), Vr = (t, n = "km") => {
863
875
  const i = Number(t);
864
876
  return Number.isNaN(i) ? `0 ${n}` : `${i.toFixed(2)} ${n}`;
865
- }, zr = (t) => {
877
+ }, Ur = (t) => {
866
878
  const n = t && typeof t == "object" && "pathname" in t && t.pathname ? t.pathname : t;
867
879
  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;
868
- }, Ie = (t, n) => {
880
+ }, Ye = (t, n) => {
869
881
  if (!t)
870
882
  return "";
871
- const i = zr(t), s = typeof t == "object" && "pathname" in t ? `${t.origin}${i}` : t;
883
+ const i = Ur(t), s = typeof t == "object" && "pathname" in t ? `${t.origin}${i}` : t;
872
884
  return typeof n == "number" ? `${s.replace("/files", `/thumbs/${n}`)}` : s;
873
- }, ht = () => {
874
- const { apiURL: t } = Ue(ce);
885
+ }, mt = () => {
886
+ const { apiURL: t } = Ve(ce);
875
887
  return {
876
- dateAdapter: Vr,
877
- distanceAdapter: Ur,
878
- filePathAdapter: (i, s) => Ie(
888
+ dateAdapter: Wr,
889
+ distanceAdapter: Vr,
890
+ filePathAdapter: (i, s) => Ye(
879
891
  t && typeof i == "string" ? {
880
892
  origin: t,
881
893
  pathname: i
@@ -883,13 +895,13 @@ const dt = ({ language: t }) => (Ve(() => {
883
895
  s
884
896
  )
885
897
  };
886
- }, Gr = (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase(), qr = (t) => {
898
+ }, zr = (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase(), Br = (t) => {
887
899
  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("");
888
900
  return s.charAt(0).toLowerCase() + s.slice(1);
889
- }, Br = (t, n, i) => {
890
- const s = qr(n), v = Gr(i);
901
+ }, Gr = (t, n, i) => {
902
+ const s = Br(n), v = zr(i);
891
903
  return `${s}${v}`;
892
- }, Jr = (t) => {
904
+ }, qr = (t) => {
893
905
  if (t)
894
906
  return (t == null ? void 0 : t.reduce((n, i) => (n[i] = {
895
907
  query: {
@@ -898,7 +910,7 @@ const dt = ({ language: t }) => (Ve(() => {
898
910
  useQuery: !0
899
911
  }
900
912
  }, n), {})) || {};
901
- }, yt = (t) => {
913
+ }, gt = (t) => {
902
914
  const { input: n = "./openapi.json", operationsToGenerateInfiniteQueryHook: i = void 0 } = t || {};
903
915
  return {
904
916
  api: {
@@ -919,8 +931,8 @@ const dt = ({ language: t }) => (Ve(() => {
919
931
  name: "axiosCustomInstance",
920
932
  path: `${__dirname}/config/orval/mutator/axiosCustomInstance.ts`
921
933
  },
922
- operationName: Br,
923
- ...(i == null ? void 0 : i.length) && { operations: Jr(i) },
934
+ operationName: Gr,
935
+ ...(i == null ? void 0 : i.length) && { operations: qr(i) },
924
936
  query: {
925
937
  useQuery: !0
926
938
  }
@@ -932,23 +944,23 @@ const dt = ({ language: t }) => (Ve(() => {
932
944
  };
933
945
  };
934
946
  export {
935
- st as A,
936
- dt as D,
937
- ot as G,
938
- ut as I,
939
- ct as M,
940
- pt as Q,
941
- at as R,
942
- lt as S,
943
- ft as a,
944
- it as b,
947
+ ot as A,
948
+ ct as D,
949
+ nt as G,
950
+ it as I,
951
+ ut as M,
952
+ ft as Q,
953
+ tt as R,
954
+ st as S,
955
+ lt as a,
956
+ at as b,
945
957
  Mr as c,
946
- mt as d,
947
- gt as e,
948
- ht as f,
949
- yt as g,
950
- Vr as h,
951
- Ur as i,
958
+ pt as d,
959
+ vt as e,
960
+ mt as f,
961
+ gt as g,
962
+ Wr as h,
963
+ Vr as i,
952
964
  ce as j,
953
- vt as u
965
+ dt as u
954
966
  };
package/dist/main.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as s, D as n, G as i, I as t, j as r, b as o, a as d, M as f, Q as g, R as u, S as C, h as p, i as A, g as c, f as x, e as D, d as I, u as M } from "./main-D2TKp5zS.js";
1
+ import { A as s, D as n, G as i, I as t, j as r, b as o, a as d, M as f, Q as g, R as u, S as C, h as p, i as A, g as c, f as x, e as D, d as I, u as M } from "./main-eBEbA18Y.js";
2
2
  export {
3
3
  s as AxiosConfig,
4
4
  n as DaysJSConfig,
package/dist/main.umd.cjs CHANGED
@@ -1,4 +1,4 @@
1
- (function(v,y){typeof exports=="object"&&typeof module<"u"?y(exports,require("react"),require("axios"),require("react-router-dom"),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","i18next","i18next-browser-languagedetector","react-i18next","@sentry/react","mapbox-gl","dayjs","@tanstack/react-query"],y):(v=typeof globalThis<"u"?globalThis:v||self,y(v["@tracktor/shared-module"]={},v.React,v.axios,v.reactRouterDom,v.i18n,v.LanguageDetector,v.reactI18next,v.Sentry,v.mapbox,v.dayjs,v.reactQuery))})(this,function(v,y,M,x,k,Ge,Be,Je,fe,N,de){"use strict";function He(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=He(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:{}},z={};/**
1
+ (function(v,_){typeof exports=="object"&&typeof module<"u"?_(exports,require("react"),require("axios"),require("react-router-dom"),require("i18next"),require("i18next-browser-languagedetector"),require("react-i18next"),require("@sentry/react"),require("dayjs"),require("@tanstack/react-query")):typeof define=="function"&&define.amd?define(["exports","react","axios","react-router-dom","i18next","i18next-browser-languagedetector","react-i18next","@sentry/react","dayjs","@tanstack/react-query"],_):(v=typeof globalThis<"u"?globalThis:v||self,_(v["@tracktor/shared-module"]={},v.React,v.axios,v.reactRouterDom,v.i18n,v.LanguageDetector,v.reactI18next,v.Sentry,v.dayjs,v.reactQuery))})(this,function(v,_,M,x,k,Ue,Be,Ge,N,fe){"use strict";function Je(r){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const o in r)if(o!=="default"){const u=Object.getOwnPropertyDescriptor(r,o);Object.defineProperty(n,o,u.get?u:{enumerable:!0,get:()=>r[o]})}}return n.default=r,Object.freeze(n)}const Q=Je(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:{}},z={};/**
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 ve;function qe(){return ve||(ve=1,process.env.NODE_ENV!=="production"&&function(){var r=y,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),_=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,h="@@iterator";function H(e){if(e===null||typeof e!="object")return null;var t=A&&e[A]||e[h];return typeof t=="function"?t:null}var F=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=F.ReactDebugCurrentFrame,m=s.getStackAddendum();m!==""&&(t+="%s",o=o.concat([m]));var g=o.map(function(d){return String(d)});g.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,g)}}var Ct=!1,Tt=!1,St=!1,jt=!1,wt=!1,be;be=Symbol.for("react.module.reference");function Ot(e){return!!(typeof e=="string"||typeof e=="function"||e===u||e===b||wt||e===p||e===_||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===be||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 Ee(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 b:return"Profiler";case p:return"StrictMode";case _:return"Suspense";case E:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case l:var t=e;return Ee(t)+".Consumer";case a:var o=e;return Ee(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,d=m._init;try{return D(d(g))}catch{return null}}}return null}var I=Object.assign,G=0,Re,Ce,Te,Se,je,we,Oe;function Pe(){}Pe.__reactDisabledLog=!0;function Mt(){{if(G===0){Re=console.log,Ce=console.info,Te=console.warn,Se=console.error,je=console.group,we=console.groupCollapsed,Oe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Pe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}G++}}function xt(){{if(G--,G===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:Re}),info:I({},e,{value:Ce}),warn:I({},e,{value:Te}),error:I({},e,{value:Se}),group:I({},e,{value:je}),groupCollapsed:I({},e,{value:we}),groupEnd:I({},e,{value:Oe})})}G<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ne=F.ReactCurrentDispatcher,ae;function $(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,q;{var At=typeof WeakMap=="function"?WeakMap:Map;q=new At}function Me(e,t){if(!e||oe)return"";{var o=q.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 d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(Y){s=Y}Reflect.construct(e,[],d)}else{try{d.call()}catch(Y){s=Y}e.call(d.prototype)}}else{try{throw Error()}catch(Y){s=Y}e()}}catch(Y){if(Y&&s&&typeof Y.stack=="string"){for(var f=Y.stack.split(`
9
+ */var de;function $e(){return de||(de=1,process.env.NODE_ENV!=="production"&&function(){var r=_,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),h=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,y="@@iterator";function H(e){if(e===null||typeof e!="object")return null;var t=A&&e[A]||e[y];return typeof t=="function"?t:null}var F=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function C(e){{for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];re("error",e,i)}}function re(e,t,i){{var s=F.ReactDebugCurrentFrame,m=s.getStackAddendum();m!==""&&(t+="%s",i=i.concat([m]));var g=i.map(function(d){return String(d)});g.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,g)}}var Rt=!1,Ct=!1,Tt=!1,St=!1,jt=!1,ye;ye=Symbol.for("react.module.reference");function wt(e){return!!(typeof e=="string"||typeof e=="function"||e===u||e===b||jt||e===p||e===h||e===E||St||e===P||Rt||Ct||Tt||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 Ot(e,t,i){var s=e.displayName;if(s)return s;var m=t.displayName||t.name||"";return m!==""?i+"("+m+")":i}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 o:return"Portal";case b:return"Profiler";case p:return"StrictMode";case h: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 i=e;return be(i._context)+".Provider";case c:return Ot(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,d=m._init;try{return D(d(g))}catch{return null}}}return null}var I=Object.assign,B=0,Ee,Re,Ce,Te,Se,je,we;function Oe(){}Oe.__reactDisabledLog=!0;function Pt(){{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 Mt(){{if(B--,B===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:Ee}),info:I({},e,{value:Re}),warn:I({},e,{value:Ce}),error:I({},e,{value:Te}),group:I({},e,{value:Se}),groupCollapsed:I({},e,{value:je}),groupEnd:I({},e,{value:we})})}B<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ne=F.ReactCurrentDispatcher,ae;function $(e,t,i){{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,q;{var xt=typeof WeakMap=="function"?WeakMap:Map;q=new xt}function Pe(e,t){if(!e||oe)return"";{var i=q.get(e);if(i!==void 0)return i}var s;oe=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var g;g=ne.current,ne.current=null,Pt();try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(Y){s=Y}Reflect.construct(e,[],d)}else{try{d.call()}catch(Y){s=Y}e.call(d.prototype)}}else{try{throw Error()}catch(Y){s=Y}e()}}catch(Y){if(Y&&s&&typeof Y.stack=="string"){for(var f=Y.stack.split(`
11
11
  `),w=s.stack.split(`
12
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"&&q.set(e,O),O}while(R>=1&&T>=0);break}}}finally{oe=!1,ne.current=g,xt(),Error.prepareStackTrace=m}var V=e?e.displayName||e.name:"",Ue=V?$(V):"";return typeof e=="function"&&q.set(e,Ue),Ue}function kt(e,t,o){return Me(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 Me(e,Lt(e));if(typeof e=="string")return $(e);switch(e){case _:return $("Suspense");case E:return $("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 K=Object.prototype.hasOwnProperty,xe={},Ae=F.ReactDebugCurrentFrame;function Z(e){if(e){var t=e._owner,o=X(e.type,e._source,t?t.type:null);Ae.setExtraStackFrame(o)}else Ae.setExtraStackFrame(null)}function Dt(e,t,o,s,m){{var g=Function.call.bind(K);for(var d in e)if(g(e,d)){var f=void 0;try{if(typeof e[d]!="function"){var w=Error((s||"React class")+": "+o+" 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`.");throw w.name="Invariant Violation",w}f=e[d](t,d,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,d,typeof f),Z(null)),f instanceof Error&&!(f.message in xe)&&(xe[f.message]=!0,Z(m),C("Failed %s type: %s",o,f.message),Z(null))}}}var Yt=Array.isArray;function ie(e){return Yt(e)}function Ft(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,o=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function It(e){try{return ke(e),!1}catch{return!0}}function ke(e){return""+e}function Le(e){if(It(e))return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ft(e)),ke(e)}var B=F.ReactCurrentOwner,Nt={key:!0,ref:!0,__self:!0,__source:!0},De,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 Vt(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 zt(e,t){if(typeof e.ref=="string"&&B.current&&t&&B.current.stateNode!==t){var o=D(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',D(B.current.type),e.ref),ue[o]=!0)}}function Ut(e,t){{var o=function(){De||(De=!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 Gt(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,d){var f={$$typeof:n,type:e,key:t,ref:o,props:d,_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,d={},f=null,w=null;o!==void 0&&(Le(o),f=""+o),Vt(t)&&(Le(t.key),f=""+t.key),Wt(t)&&(w=t.ref,zt(t,m));for(g in t)K.call(t,g)&&!Nt.hasOwnProperty(g)&&(d[g]=t[g]);if(e&&e.defaultProps){var R=e.defaultProps;for(g in R)d[g]===void 0&&(d[g]=R[g])}if(f||w){var T=typeof e=="function"?e.displayName||e.name||"Unknown":e;f&&Ut(d,T),w&&Gt(d,T)}return Bt(e,f,w,m,s,B.current,d)}}var se=F.ReactCurrentOwner,Fe=F.ReactDebugCurrentFrame;function W(e){if(e){var t=e._owner,o=X(e.type,e._source,t?t.type:null);Fe.setExtraStackFrame(o)}else Fe.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`
13
+ `+f[R].replace(" at new "," at ");return e.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",e.displayName)),typeof e=="function"&&q.set(e,O),O}while(R>=1&&T>=0);break}}}finally{oe=!1,ne.current=g,Mt(),Error.prepareStackTrace=m}var V=e?e.displayName||e.name:"",ze=V?$(V):"";return typeof e=="function"&&q.set(e,ze),ze}function At(e,t,i){return Pe(e,!1)}function kt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function X(e,t,i){if(e==null)return"";if(typeof e=="function")return Pe(e,kt(e));if(typeof e=="string")return $(e);switch(e){case h:return $("Suspense");case E:return $("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case c:return At(e.render);case S:return X(e.type,t,i);case j:{var s=e,m=s._payload,g=s._init;try{return X(g(m),t,i)}catch{}}}return""}var K=Object.prototype.hasOwnProperty,Me={},xe=F.ReactDebugCurrentFrame;function Z(e){if(e){var t=e._owner,i=X(e.type,e._source,t?t.type:null);xe.setExtraStackFrame(i)}else xe.setExtraStackFrame(null)}function Lt(e,t,i,s,m){{var g=Function.call.bind(K);for(var d in e)if(g(e,d)){var f=void 0;try{if(typeof e[d]!="function"){var w=Error((s||"React class")+": "+i+" 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`.");throw w.name="Invariant Violation",w}f=e[d](t,d,s,i,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",i,d,typeof f),Z(null)),f instanceof Error&&!(f.message in Me)&&(Me[f.message]=!0,Z(m),C("Failed %s type: %s",i,f.message),Z(null))}}}var Dt=Array.isArray;function ie(e){return Dt(e)}function Yt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,i=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i}}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.",Yt(e)),Ae(e)}var G=F.ReactCurrentOwner,It={key:!0,ref:!0,__self:!0,__source:!0},Le,De,ue;ue={};function Nt(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 Wt(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"&&G.current&&t&&G.current.stateNode!==t){var i=D(G.current.type);ue[i]||(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[i]=!0)}}function zt(e,t){{var i=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))};i.isReactWarning=!0,Object.defineProperty(e,"key",{get:i,configurable:!0})}}function Ut(e,t){{var i=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))};i.isReactWarning=!0,Object.defineProperty(e,"ref",{get:i,configurable:!0})}}var Bt=function(e,t,i,s,m,g,d){var f={$$typeof:n,type:e,key:t,ref:i,props:d,_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,i,s,m){{var g,d={},f=null,w=null;i!==void 0&&(ke(i),f=""+i),Wt(t)&&(ke(t.key),f=""+t.key),Nt(t)&&(w=t.ref,Vt(t,m));for(g in t)K.call(t,g)&&!It.hasOwnProperty(g)&&(d[g]=t[g]);if(e&&e.defaultProps){var R=e.defaultProps;for(g in R)d[g]===void 0&&(d[g]=R[g])}if(f||w){var T=typeof e=="function"?e.displayName||e.name||"Unknown":e;f&&zt(d,T),w&&Ut(d,T)}return Bt(e,f,w,m,s,G.current,d)}}var se=F.ReactCurrentOwner,Ye=F.ReactDebugCurrentFrame;function W(e){if(e){var t=e._owner,i=X(e.type,e._source,t?t.type:null);Ye.setExtraStackFrame(i)}else Ye.setExtraStackFrame(null)}var ce;ce=!1;function le(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function Fe(){{if(se.current){var e=D(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(/^.*[\\\/]/,""),i=e.lineNumber;return`
16
16
 
17
- Check your code at `+t+":"+o+"."}return""}}var Ne={};function $t(e){{var t=Ie();if(!t){var o=typeof e=="string"?e:e.displayName||e.name;o&&(t=`
17
+ Check your code at `+t+":"+i+"."}return""}}var Ie={};function Ht(e){{var t=Fe();if(!t){var i=typeof e=="string"?e:e.displayName||e.name;i&&(t=`
18
18
 
19
- Check the top-level render call using <`+o+">.")}return t}}function We(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=$t(t);if(Ne[o])return;Ne[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 Ve(e,t){{if(typeof e!="object")return;if(ie(e))for(var o=0;o<e.length;o++){var s=e[o];le(s)&&We(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),d;!(d=g.next()).done;)le(d.value)&&We(d.value,t)}}}function qt(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 d=Ot(e);if(!d){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(d){var O=t.children;if(O!==void 0)if(s)if(ie(O)){for(var V=0;V<O.length;V++)Ve(O[V],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 Ve(O,e)}return e===u?Xt(T):qt(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;z.Fragment=u,z.jsx=Qt,z.jsxs=er}()),z}var U={};/**
19
+ Check the top-level render call using <`+i+">.")}return t}}function Ne(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var i=Ht(t);if(Ie[i])return;Ie[i]=!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.',i,s),W(null)}}function We(e,t){{if(typeof e!="object")return;if(ie(e))for(var i=0;i<e.length;i++){var s=e[i];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),d;!(d=g.next()).done;)le(d.value)&&Ne(d.value,t)}}}function $t(e){{var t=e.type;if(t==null||typeof t=="string")return;var i;if(typeof t=="function")i=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===c||t.$$typeof===S))i=t.propTypes;else return;if(i){var s=D(t);Lt(i,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 qt(e){{for(var t=Object.keys(e.props),i=0;i<t.length;i++){var s=t[i];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 Ve(e,t,i,s,m,g){{var d=wt(e);if(!d){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=Jt(m);w?f+=w:f+=Fe();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=Gt(e,t,i,m,g);if(T==null)return T;if(d){var O=t.children;if(O!==void 0)if(s)if(ie(O)){for(var V=0;V<O.length;V++)We(O[V],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?qt(T):$t(T),T}}function Xt(e,t,i){return Ve(e,t,i,!0)}function Kt(e,t,i){return Ve(e,t,i,!1)}var Zt=Kt,Qt=Xt;z.Fragment=u,z.jsx=Zt,z.jsxs=Qt}()),z}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 We(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 pe;function Xe(){if(pe)return U;pe=1;var r=y,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,b={key:!0,ref:!0,__self:!0,__source:!0};function a(l,c,_){var E,S={},j=null,P=null;_!==void 0&&(j=""+_),c.key!==void 0&&(j=""+c.key),c.ref!==void 0&&(P=c.ref);for(E in c)u.call(c,E)&&!b.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=Xe():te.exports=qe();var L=te.exports;const Ke=({Fallback:r,loginPath:n="/login",localStorageKey:i="user",redirect401Path:u="/login",isLogged:p})=>{var S,j,P,A;const[b,a]=y.useState(null),l=x.useLocation(),c=y.useRef(!1),_=typeof p=="function"?p():!!p,E=typeof _=="boolean"?_:_==null?void 0:_.isLogged;return y.useLayoutEffect(()=>{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]),E&&!b?L.jsx(y.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?L.jsx(x.Navigate,{to:l.state.from.state.from.pathname+l.state.from.state.from.search,replace:!0}):L.jsx(x.Outlet,{})}):L.jsx(x.Navigate,{to:n,state:{from:l},replace:!0})},Ze=()=>{const[r,n]=y.useState();return y.useEffect(()=>{(async()=>{try{const{useGoogleTagManager:u}=await import("@tracktor/react-google-tag-manager");n(u)}catch(u){console.error(u)}})().then()},[]),r},Qe=()=>{const{pathname:r}=x.useLocation(),n=Ze();return y.useEffect(()=>{if(n){const{sendEvent:i}=n();i({event:"pageView",pathname:r})}},[r,n]),L.jsx(x.Outlet,{})},J=y.createContext({apiURL:void 0,children:void 0}),et=({children:r,apiURL:n})=>{const i=y.useMemo(()=>({apiURL:n}),[n]);return L.jsx(J.Provider,{value:i,children:r})},tt=({tokenTypeKey:r="tokenType",userLocalStorageKey:n="user",tokenKey:i="accessToken",postContentType:u="application/json",...p})=>{const{apiURL:b=p.baseURL}=y.useContext(J);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,E=a?`${c} ${_}`:null;return M.defaults.baseURL=b,M.defaults.headers.post["Content-Type"]=u,E&&(M.defaults.headers.common.Authorization=E),null},rt=({debug:r,resources:n})=>(k!=null&&k.isInitialized||(k.use(Ge).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!==k.resolvedLanguage&&k.resolvedLanguage&&document.documentElement.setAttribute("lang",k.resolvedLanguage)}),k.on("languageChanged",i=>{document.documentElement.setAttribute("lang",i)})),null),nt=({dsn:r,integrations:n,tracesSampleRate:i,replaysSessionSampleRate:u,replaysOnErrorSampleRate:p,tracePropagationTargets:b,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:x.createRoutesFromChildren,matchRoutes:x.matchRoutes,useEffect:y.useEffect,useLocation:x.useLocation,useNavigationType:x.useNavigationType}),...n||[]],replaysOnErrorSampleRate:p||1,replaysSessionSampleRate:u||.1,tracePropagationTargets:b,tracesSampleRate:i||1}),null),at=({IMaskMixin:r,...n})=>{const i=y.useMemo(()=>r(({TextField:u,...p})=>L.jsx(u,{...p})),[r]);return L.jsx(i,{...n})},ot=({accessToken:r})=>(fe&&r&&(fe.accessToken=r),null);var me={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,b){var a=p.prototype,l=a.format;b.en.formats=i,a.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var _=this.$locale().formats,E=function(S,j){return S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(P,A,h){var H=h&&h.toUpperCase();return A||j[h]||i[h]||j[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(F,C,re){return C||re.slice(1)})})}(c,_===void 0?{}:_);return l.call(this,E)}}})})(me);var it=me.exports;const ut=$e(it);N.extend(ut);const st=({language:r})=>(y.useLayoutEffect(()=>{var i;const n=r||((i=navigator.language)==null?void 0:i.slice(0,2))||"en";if(n==="en"){Promise.resolve().then(()=>ye).then(()=>{N.locale(n)});return}n==="fr"&&Promise.resolve().then(()=>Rt).then(()=>{N.locale(n)}).catch(()=>{Promise.resolve().then(()=>ye).then(()=>{N.locale("en")})})},[r]),null),ct=({children:r,defaultQueriesOptions:n,defaultMutationsOptions:i})=>{const u=new de.QueryClient({defaultOptions:{mutations:{...i},queries:{getNextPageParam:(p,b,a)=>p.length+(a||0),refetchOnWindowFocus:!1,retry:3,...n}}});return L.jsx(de.QueryClientProvider,{client:u,children:r})},lt=r=>{const{unknownErrorTranslationKey:n="error.unknownError"}=r||{},i=k.t(n),u=y.useCallback(b=>{var l,c,_,E,S,j,P,A,h;const{response:a}=b||{};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=(_=a==null?void 0:a.data)==null?void 0:_.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((h=(A=a==null?void 0:a.data)==null?void 0:A.detail[0])==null?void 0:h.msg)=="string"?String(a.data.detail[0].msg):i},[i]);return{getErrorCode:y.useCallback(b=>{var l,c,_;const{response:a}=b||{};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:b=!0})=>{const a=y.useCallback(async c=>{i||!b||await n({pageParam:(c==null?void 0:c.pageParam)||c.visibleRowsCount})},[b,n,i]),l=y.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}`}}),ge=(r,n="ll")=>N(r).format(n),_e=(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},he=(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}=y.useContext(J);return{dateAdapter:ge,distanceAdapter:_e,filePathAdapter:(i,u)=>he(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 ye=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),b={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(b,null,!0),b})})(Et);const Rt=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));v.AxiosConfig=tt,v.DaysJSConfig=st,v.GTMSendPageView=Qe,v.I18nConfig=rt,v.InjectDependenciesContext=J,v.InjectDependenciesProvider=et,v.MapBoxConfig=ot,v.MaskTextField=at,v.QueryClientConfigProvider=ct,v.RequireAuth=Ke,v.SentryConfig=nt,v.dateAdapter=ge,v.distanceAdapter=_e,v.getOrvalConfig=yt,v.useAdapter=pt,v.useAuth=dt,v.useInfiniteDataGrid=ft,v.useResponseError=lt,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})});
27
+ */var ve;function qe(){if(ve)return U;ve=1;var r=_,n=Symbol.for("react.element"),o=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,p=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,b={key:!0,ref:!0,__self:!0,__source:!0};function a(l,c,h){var E,S={},j=null,P=null;h!==void 0&&(j=""+h),c.key!==void 0&&(j=""+c.key),c.ref!==void 0&&(P=c.ref);for(E in c)u.call(c,E)&&!b.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=o,U.jsx=a,U.jsxs=a,U}process.env.NODE_ENV==="production"?te.exports=qe():te.exports=$e();var L=te.exports;const Xe=({Fallback:r,loginPath:n="/login",localStorageKey:o="user",redirect401Path:u="/login",isLogged:p})=>{var S,j,P,A;const[b,a]=_.useState(null),l=x.useLocation(),c=_.useRef(!1),h=typeof p=="function"?p():!!p,E=typeof h=="boolean"?h:h==null?void 0:h.isLogged;return _.useLayoutEffect(()=>{c.current||(c.current=!0,M==null||M.interceptors.response.use(y=>y,async y=>{var C;return typeof y=="object"&&y&&"response"in y&&y.response&&typeof y.response=="object"&&"status"in y.response&&y.response&&typeof y.response=="object"&&"status"in y.response&&((C=y==null?void 0:y.response)==null?void 0:C.status)===401&&(M.defaults.headers.common.Authorization=null,localStorage.removeItem(o),a(u)),Promise.reject(y)}))},[o,u]),E&&!b?L.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?L.jsx(x.Navigate,{to:l.state.from.state.from.pathname+l.state.from.state.from.search,replace:!0}):L.jsx(x.Outlet,{})}):L.jsx(x.Navigate,{to:n,state:{from:l},replace:!0})},Ke=()=>{const[r,n]=_.useState();return _.useEffect(()=>{(async()=>{try{const{useGoogleTagManager:u}=await import("@tracktor/react-google-tag-manager");n(u)}catch(u){console.error(u)}})().then()},[]),r},Ze=()=>{const{pathname:r}=x.useLocation(),n=Ke();return _.useEffect(()=>{if(n){const{sendEvent:o}=n();o({event:"pageView",pathname:r})}},[r,n]),L.jsx(x.Outlet,{})},J=_.createContext({apiURL:void 0,children:void 0}),Qe=({children:r,apiURL:n})=>{const o=_.useMemo(()=>({apiURL:n}),[n]);return L.jsx(J.Provider,{value:o,children:r})},et=({tokenTypeKey:r="tokenType",userLocalStorageKey:n="user",tokenKey:o="accessToken",postContentType:u="application/json",...p})=>{const{apiURL:b=p.baseURL}=_.useContext(J);if(!M.defaults)return null;const a=localStorage.getItem(n),l=a?JSON.parse(a):null,c=l!=null&&l[r]?l[r]:null,h=l!=null&&l[o]?l[o]:null,E=a?`${c} ${h}`:null;return M.defaults.baseURL=b,M.defaults.headers.post["Content-Type"]=u,E&&(M.defaults.headers.common.Authorization=E),null},tt=({debug:r,resources:n})=>(k!=null&&k.isInitialized||(k.use(Ue).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!==k.resolvedLanguage&&k.resolvedLanguage&&document.documentElement.setAttribute("lang",k.resolvedLanguage)}),k.on("languageChanged",o=>{document.documentElement.setAttribute("lang",o)})),null),rt=({dsn:r,integrations:n,tracesSampleRate:o,replaysSessionSampleRate:u,replaysOnErrorSampleRate:p,tracePropagationTargets:b,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:x.createRoutesFromChildren,matchRoutes:x.matchRoutes,useEffect:_.useEffect,useLocation:x.useLocation,useNavigationType:x.useNavigationType}),...n||[]],replaysOnErrorSampleRate:p||1,replaysSessionSampleRate:u||.1,tracePropagationTargets:b,tracesSampleRate:o||1}),null),nt=({IMaskMixin:r,...n})=>{const o=_.useMemo(()=>r(({TextField:u,...p})=>L.jsx(u,{...p})),[r]);return L.jsx(o,{...n})},at=({accessToken:r})=>{_.useEffect(()=>{if(!r)return;(async()=>{try{const o=await import("mapbox-gl");o.accessToken=r}catch(o){console.error(o)}})().then()},[r])};var pe={exports:{}};(function(r,n){(function(o,u){r.exports=u()})(ee,function(){var o={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,b){var a=p.prototype,l=a.format;b.en.formats=o,a.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var h=this.$locale().formats,E=function(S,j){return S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(P,A,y){var H=y&&y.toUpperCase();return A||j[y]||o[y]||j[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(F,C,re){return C||re.slice(1)})})}(c,h===void 0?{}:h);return l.call(this,E)}}})})(pe);var ot=pe.exports;const it=He(ot);N.extend(it);const ut=({language:r})=>(_.useLayoutEffect(()=>{var o;const n=r||((o=navigator.language)==null?void 0:o.slice(0,2))||"en";if(n==="en"){Promise.resolve().then(()=>he).then(()=>{N.locale(n)});return}n==="fr"&&Promise.resolve().then(()=>Et).then(()=>{N.locale(n)}).catch(()=>{Promise.resolve().then(()=>he).then(()=>{N.locale("en")})})},[r]),null),st=({children:r,defaultQueriesOptions:n,defaultMutationsOptions:o})=>{const u=new fe.QueryClient({defaultOptions:{mutations:{...o},queries:{getNextPageParam:(p,b,a)=>p.length+(a||0),refetchOnWindowFocus:!1,retry:3,...n}}});return L.jsx(fe.QueryClientProvider,{client:u,children:r})},ct=r=>{const{unknownErrorTranslationKey:n="error.unknownError"}=r||{},o=k.t(n),u=_.useCallback(b=>{var l,c,h,E,S,j,P,A,y;const{response:a}=b||{};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=(h=a==null?void 0:a.data)==null?void 0:h.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((y=(A=a==null?void 0:a.data)==null?void 0:A.detail[0])==null?void 0:y.msg)=="string"?String(a.data.detail[0].msg):o},[o]);return{getErrorCode:_.useCallback(b=>{var l,c,h;const{response:a}=b||{};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):(h=a==null?void 0:a.data)!=null&&h.error_code?String(a.data.error_code):"unknown_error_code"},[]),printError:u}},lt=({data:r,fetchNextPage:n,isFetchingNextPage:o,isInitialLoading:u,isLoading:p,enabled:b=!0})=>{const a=_.useCallback(async c=>{o||!b||await n({pageParam:(c==null?void 0:c.pageParam)||c.visibleRowsCount})},[b,n,o]),l=_.useMemo(()=>{if(r)return r.pages.reduce((c,h)=>[...c,...h],[])},[r]);return{fetchNextPageOnRowsScrollEnd:a,isLoading:o||p,loadingVariant:u?"skeleton":"linear",rows:l}},ft=()=>({clearAuthenticationToken:()=>{M.defaults.headers.common.Authorization=null},setAuthenticationToken:({tokenType:o,accessToken:u})=>{M.defaults.headers.common.Authorization=`${o} ${u}`}}),me=(r,n="ll")=>N(r).format(n),ge=(r,n="km")=>{const o=Number(r);return Number.isNaN(o)?`0 ${n}`:`${o.toFixed(2)} ${n}`},dt=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 o=dt(r),u=typeof r=="object"&&"pathname"in r?`${r.origin}${o}`:r;return typeof n=="number"?`${u.replace("/files",`/thumbs/${n}`)}`:u},vt=()=>{const{apiURL:r}=_.useContext(J);return{dateAdapter:me,distanceAdapter:ge,filePathAdapter:(o,u)=>_e(r&&typeof o=="string"?{origin:r,pathname:o}:o,u)}},pt=r=>r.charAt(0).toUpperCase()+r.slice(1).toLowerCase(),mt=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)},gt=(r,n,o)=>{const u=mt(n),p=pt(o);return`${u}${p}`},_t=r=>{if(r)return(r==null?void 0:r.reduce((n,o)=>(n[o]={query:{useInfinite:!0,useInfiniteQueryParam:"offset",useQuery:!0}},n),{}))||{}},ht=r=>{const{input:n="./openapi.json",operationsToGenerateInfiniteQueryHook:o=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:gt,...(o==null?void 0:o.length)&&{operations:_t(o)},query:{useQuery:!0}},schemas:"src/api/model",target:"src/api/services/api.ts"}}}};var yt={exports:{}};(function(r,n){(function(o,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(o){var u=["th","st","nd","rd"],p=o%100;return"["+o+(u[(p-20)%10]||u[p]||u[0])+"]"}}})})(yt);const he=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var bt={exports:{}};(function(r,n){(function(o,u){r.exports=u(N)})(ee,function(o){function u(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var p=u(o),b={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(b,null,!0),b})})(bt);const Et=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));v.AxiosConfig=et,v.DaysJSConfig=ut,v.GTMSendPageView=Ze,v.I18nConfig=tt,v.InjectDependenciesContext=J,v.InjectDependenciesProvider=Qe,v.MapBoxConfig=at,v.MaskTextField=nt,v.QueryClientConfigProvider=st,v.RequireAuth=Xe,v.SentryConfig=rt,v.dateAdapter=me,v.distanceAdapter=ge,v.getOrvalConfig=ht,v.useAdapter=vt,v.useAuth=ft,v.useInfiniteDataGrid=lt,v.useResponseError=ct,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tracktor/shared-module",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "types": "./dist/main.d.ts",