@tracktor/shared-module 1.0.1 → 1.0.3

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.
@@ -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 ie, useRef as _r, useLayoutEffect as Ne, Suspense as Cr, useEffect as X, createContext as Tr, useMemo as le, useContext as We, useCallback as se } from "react";
2
+ import M from "axios";
3
+ import { useLocation as Ve, Navigate as Le, Outlet as wr, createRoutesFromChildren as Sr, 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
11
  function Lr(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 ue = { exports: {} }, V = {};
16
15
  /**
17
16
  * @license React
18
17
  * react-jsx-runtime.development.js
@@ -22,14 +21,14 @@ 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 $e;
25
+ function $r() {
26
+ return $e || ($e = 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"), p = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), O = Symbol.for("react.offscreen"), j = Symbol.iterator, S = "@@iterator";
29
28
  function R(e) {
30
29
  if (e === null || typeof e != "object")
31
30
  return null;
32
- var r = j && e[j] || e[w];
31
+ var r = j && e[j] || e[S];
33
32
  return typeof r == "function" ? r : null;
34
33
  }
35
34
  var D = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
@@ -37,39 +36,39 @@ function Fr() {
37
36
  {
38
37
  for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), u = 1; u < r; u++)
39
38
  a[u - 1] = arguments[u];
40
- L("error", e, a);
39
+ $("error", e, a);
41
40
  }
42
41
  }
43
- function L(e, r, a) {
42
+ function $(e, r, a) {
44
43
  {
45
- var u = D.ReactDebugCurrentFrame, p = u.getStackAddendum();
46
- p !== "" && (r += "%s", a = a.concat([p]));
44
+ var u = D.ReactDebugCurrentFrame, v = u.getStackAddendum();
45
+ v !== "" && (r += "%s", a = a.concat([v]));
47
46
  var m = a.map(function(d) {
48
47
  return String(d);
49
48
  });
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 ze = !1, Be = !1, Ge = !1, qe = !1, Je = !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 He(e) {
55
+ return !!(typeof e == "string" || typeof e == "function" || e === s || e === g || Je || e === p || e === h || e === y || qe || e === O || ze || Be || Ge || 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 Xe(e, r, a) {
63
62
  var u = e.displayName;
64
63
  if (u)
65
64
  return u;
66
- var p = r.displayName || r.name || "";
67
- return p !== "" ? a + "(" + p + ")" : a;
65
+ var v = r.displayName || r.name || "";
66
+ return v !== "" ? a + "(" + v + ")" : a;
68
67
  }
69
68
  function de(e) {
70
69
  return e.displayName || "Context";
71
70
  }
72
- function P(e) {
71
+ function A(e) {
73
72
  if (e == null)
74
73
  return null;
75
74
  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")
@@ -81,13 +80,13 @@ function Fr() {
81
80
  return "Fragment";
82
81
  case i:
83
82
  return "Portal";
84
- case y:
83
+ case g:
85
84
  return "Profiler";
86
- case v:
85
+ case p:
87
86
  return "StrictMode";
88
- case g:
89
- return "Suspense";
90
87
  case h:
88
+ return "Suspense";
89
+ case y:
91
90
  return "SuspenseList";
92
91
  }
93
92
  if (typeof e == "object")
@@ -99,14 +98,14 @@ 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 Xe(e, e.render, "ForwardRef");
103
102
  case C:
104
103
  var u = e.displayName || null;
105
- return u !== null ? u : P(e.type) || "Memo";
104
+ return u !== null ? u : A(e.type) || "Memo";
106
105
  case T: {
107
- var p = e, m = p._payload, d = p._init;
106
+ var v = e, m = v._payload, d = v._init;
108
107
  try {
109
- return P(d(m));
108
+ return A(d(m));
110
109
  } catch {
111
110
  return null;
112
111
  }
@@ -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 L = 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 Ke() {
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 Ze() {
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: L({}, e, {
154
153
  value: pe
155
154
  }),
156
- info: M({}, e, {
155
+ info: L({}, e, {
157
156
  value: ve
158
157
  }),
159
- warn: M({}, e, {
158
+ warn: L({}, e, {
160
159
  value: me
161
160
  }),
162
- error: M({}, e, {
161
+ error: L({}, e, {
163
162
  value: ge
164
163
  }),
165
- group: M({}, e, {
164
+ group: L({}, e, {
166
165
  value: he
167
166
  }),
168
- groupCollapsed: M({}, e, {
167
+ groupCollapsed: L({}, e, {
169
168
  value: ye
170
169
  }),
171
- groupEnd: M({}, e, {
170
+ groupEnd: L({}, 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
- } catch (p) {
186
- var u = p.stack.trim().match(/\n( *(at )?)/);
187
- K = u && u[1] || "";
184
+ } catch (v) {
185
+ var u = v.stack.trim().match(/\n( *(at )?)/);
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 Qe = typeof WeakMap == "function" ? WeakMap : Map;
195
+ G = new Qe();
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;
208
- var p = Error.prepareStackTrace;
206
+ Q = !0;
207
+ var v = 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, Ke();
212
211
  try {
213
212
  if (r) {
214
213
  var d = function() {
@@ -221,81 +220,81 @@ function Fr() {
221
220
  }), typeof Reflect == "object" && Reflect.construct) {
222
221
  try {
223
222
  Reflect.construct(d, []);
224
- } catch (A) {
225
- u = A;
223
+ } catch (k) {
224
+ u = k;
226
225
  }
227
226
  Reflect.construct(e, [], d);
228
227
  } else {
229
228
  try {
230
229
  d.call();
231
- } catch (A) {
232
- u = A;
230
+ } catch (k) {
231
+ u = k;
233
232
  }
234
233
  e.call(d.prototype);
235
234
  }
236
235
  } else {
237
236
  try {
238
237
  throw Error();
239
- } catch (A) {
240
- u = A;
238
+ } catch (k) {
239
+ u = k;
241
240
  }
242
241
  e();
243
242
  }
244
- } catch (A) {
245
- if (A && u && typeof A.stack == "string") {
246
- for (var f = A.stack.split(`
247
- `), S = u.stack.split(`
248
- `), b = f.length - 1, E = S.length - 1; b >= 1 && E >= 0 && f[b] !== S[E]; )
243
+ } catch (k) {
244
+ if (k && u && typeof k.stack == "string") {
245
+ for (var f = k.stack.split(`
246
+ `), w = u.stack.split(`
247
+ `), b = f.length - 1, E = w.length - 1; b >= 1 && E >= 0 && f[b] !== w[E]; )
249
248
  E--;
250
249
  for (; b >= 1 && E >= 0; b--, E--)
251
- if (f[b] !== S[E]) {
250
+ if (f[b] !== w[E]) {
252
251
  if (b !== 1 || E !== 1)
253
252
  do
254
- if (b--, E--, E < 0 || f[b] !== S[E]) {
255
- var O = `
253
+ if (b--, E--, E < 0 || f[b] !== w[E]) {
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, Ze(), Error.prepareStackTrace = v;
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 er(e, r, a) {
270
269
  return Re(e, !1);
271
270
  }
272
- function nr(e) {
271
+ function rr(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, rr(e));
281
280
  if (typeof e == "string")
282
- return G(e);
281
+ return B(e);
283
282
  switch (e) {
284
- case g:
285
- return G("Suspense");
286
283
  case h:
287
- return G("SuspenseList");
284
+ return B("Suspense");
285
+ case y:
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 er(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
- var u = e, p = u._payload, m = u._init;
295
+ var u = e, v = u._payload, m = u._init;
297
296
  try {
298
- return B(m(p), r, a);
297
+ return q(m(v), 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 tr(e, r, a, u, v) {
314
313
  {
315
314
  var m = Function.call.bind(J);
316
315
  for (var d in e)
@@ -318,28 +317,28 @@ function Fr() {
318
317
  var f = void 0;
319
318
  try {
320
319
  if (typeof e[d] != "function") {
321
- 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`.");
322
- throw S.name = "Invariant Violation", S;
320
+ 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`.");
321
+ throw w.name = "Invariant Violation", w;
323
322
  }
324
323
  f = e[d](r, d, u, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
325
324
  } catch (b) {
326
325
  f = b;
327
326
  }
328
- 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));
327
+ f && !(f instanceof Error) && (H(v), _("%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(v), _("Failed %s type: %s", a, f.message), H(null));
329
328
  }
330
329
  }
331
330
  }
332
- var or = Array.isArray;
333
- function Q(e) {
334
- return or(e);
331
+ var nr = Array.isArray;
332
+ function ee(e) {
333
+ return nr(e);
335
334
  }
336
- function ir(e) {
335
+ function ar(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 or(e) {
343
342
  try {
344
343
  return Te(e), !1;
345
344
  } catch {
@@ -349,18 +348,18 @@ function Fr() {
349
348
  function Te(e) {
350
349
  return "" + e;
351
350
  }
352
- 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);
351
+ function we(e) {
352
+ if (or(e))
353
+ return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ar(e)), Te(e);
355
354
  }
356
- var W = D.ReactCurrentOwner, ur = {
355
+ var W = D.ReactCurrentOwner, ir = {
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
+ }, Se, xe, re;
361
+ re = {};
362
+ function sr(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 ur(e) {
372
371
  if (J.call(e, "key")) {
373
372
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
374
373
  if (r && r.isReactWarning)
@@ -376,16 +375,16 @@ function Fr() {
376
375
  }
377
376
  return e.key !== void 0;
378
377
  }
379
- function fr(e, r) {
378
+ function lr(e, r) {
380
379
  if (typeof e.ref == "string" && W.current && r && W.current.stateNode !== r) {
381
- 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);
380
+ var a = A(W.current.type);
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', A(W.current.type), e.ref), re[a] = !0);
383
382
  }
384
383
  }
385
- function dr(e, r) {
384
+ function cr(e, r) {
386
385
  {
387
386
  var a = function() {
388
- 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));
387
+ Se || (Se = !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));
389
388
  };
390
389
  a.isReactWarning = !0, Object.defineProperty(e, "key", {
391
390
  get: a,
@@ -393,10 +392,10 @@ function Fr() {
393
392
  });
394
393
  }
395
394
  }
396
- function pr(e, r) {
395
+ function fr(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 dr = function(e, r, a, u, v, m, d) {
408
407
  var f = {
409
408
  // This tag allows us to uniquely identify this as a React Element
410
409
  $$typeof: n,
@@ -430,44 +429,44 @@ function Fr() {
430
429
  configurable: !1,
431
430
  enumerable: !1,
432
431
  writable: !1,
433
- value: p
432
+ value: v
434
433
  }), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
435
434
  };
436
- function mr(e, r, a, u, p) {
435
+ function pr(e, r, a, u, v) {
437
436
  {
438
- 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));
437
+ var m, d = {}, f = null, w = null;
438
+ a !== void 0 && (we(a), f = "" + a), ur(r) && (we(r.key), f = "" + r.key), sr(r) && (w = r.ref, lr(r, v));
440
439
  for (m in r)
441
- J.call(r, m) && !ur.hasOwnProperty(m) && (d[m] = r[m]);
440
+ J.call(r, m) && !ir.hasOwnProperty(m) && (d[m] = r[m]);
442
441
  if (e && e.defaultProps) {
443
442
  var b = e.defaultProps;
444
443
  for (m in b)
445
444
  d[m] === void 0 && (d[m] = b[m]);
446
445
  }
447
- if (f || S) {
446
+ if (f || w) {
448
447
  var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
449
- f && dr(d, E), S && pr(d, E);
448
+ f && cr(d, E), w && fr(d, E);
450
449
  }
451
- return vr(e, f, S, p, u, W.current, d);
450
+ return dr(e, f, w, v, 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 = A(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 vr(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 mr(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 = mr(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 " + A(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
- var p = R(e);
529
- if (typeof p == "function" && p !== e.entries)
530
- for (var m = p.call(e), d; !(d = m.next()).done; )
531
- ne(d.value) && Ae(d.value, r);
527
+ var v = R(e);
528
+ if (typeof v == "function" && v !== e.entries)
529
+ for (var m = v.call(e), d; !(d = m.next()).done; )
530
+ ae(d.value) && Ae(d.value, r);
532
531
  }
533
532
  }
534
533
  }
535
- function yr(e) {
534
+ function gr(e) {
536
535
  {
537
536
  var r = e.type;
538
537
  if (r == null || typeof r == "string")
@@ -547,17 +546,17 @@ Check the top-level render call using <` + a + ">.");
547
546
  else
548
547
  return;
549
548
  if (a) {
550
- var u = P(r);
551
- ar(a, e.props, "prop", u, e);
552
- } else if (r.PropTypes !== void 0 && !te) {
553
- te = !0;
554
- var p = P(r);
555
- _("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
549
+ var u = A(r);
550
+ tr(a, e.props, "prop", u, e);
551
+ } else if (r.PropTypes !== void 0 && !ne) {
552
+ ne = !0;
553
+ var v = A(r);
554
+ _("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", v || "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 hr(e) {
561
560
  {
562
561
  for (var r = Object.keys(e.props), a = 0; a < r.length; a++) {
563
562
  var u = r[a];
@@ -569,44 +568,44 @@ Check the top-level render call using <` + a + ">.");
569
568
  e.ref !== null && (F(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
570
569
  }
571
570
  }
572
- function De(e, r, a, u, p, m) {
571
+ function De(e, r, a, u, v, m) {
573
572
  {
574
- var d = Ke(e);
573
+ var d = He(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);
579
- S ? f += S : f += je();
577
+ var w = vr(v);
578
+ w ? f += w : 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 = "<" + (A(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 = pr(e, r, a, v, 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 ? hr(E) : gr(E), E;
600
599
  }
601
600
  }
602
- function Er(e, r, a) {
601
+ function yr(e, r, a) {
603
602
  return De(e, r, a, !0);
604
603
  }
605
- function Rr(e, r, a) {
604
+ function br(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 Er = br, Rr = yr;
608
+ V.Fragment = s, V.jsx = Er, V.jsxs = Rr;
610
609
  }()), V;
611
610
  }
612
611
  var U = {};
@@ -619,91 +618,91 @@ 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 };
628
- 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);
631
- for (h in l)
632
- s.call(l, h) && !y.hasOwnProperty(h) && (C[h] = l[h]);
625
+ Fe = 1;
626
+ 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, g = { key: !0, ref: !0, __self: !0, __source: !0 };
627
+ function o(c, l, h) {
628
+ var y, C = {}, T = null, O = null;
629
+ h !== void 0 && (T = "" + h), l.key !== void 0 && (T = "" + l.key), l.ref !== void 0 && (O = l.ref);
630
+ for (y in l)
631
+ s.call(l, y) && !g.hasOwnProperty(y) && (C[y] = l[y]);
633
632
  if (c && c.defaultProps)
634
- for (h in l = c.defaultProps, l)
635
- C[h] === void 0 && (C[h] = l[h]);
636
- return { $$typeof: n, type: c, key: T, ref: x, props: C, _owner: v.current };
633
+ for (y in l = c.defaultProps, l)
634
+ C[y] === void 0 && (C[y] = l[y]);
635
+ return { $$typeof: n, type: c, key: T, ref: O, props: C, _owner: p.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" ? ue.exports = Fr() : ue.exports = $r();
640
+ var P = ue.exports;
641
+ const tt = ({
643
642
  Fallback: t,
644
643
  loginPath: n = "/login",
645
644
  localStorageKey: i = "user",
646
645
  redirect401Path: s = "/login",
647
- isLogged: v
646
+ isLogged: p
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(() => {
652
- var w;
653
- l.current || (l.current = !0, (w = $) == null || w.interceptors.response.use(
648
+ var C, T, O, j;
649
+ const [g, o] = ie(null), c = Ve(), l = _r(!1), h = typeof p == "function" ? p() : !!p, y = typeof h == "boolean" ? h : h == null ? void 0 : h.isLogged;
650
+ return Ne(() => {
651
+ var S;
652
+ l.current || (l.current = !0, (S = M) == null || S.interceptors.response.use(
654
653
  (R) => R,
655
654
  async (R) => {
656
- 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);
655
+ var $;
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 && (($ = R == null ? void 0 : R.response) == null ? void 0 : $.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]), y && !g ? /* @__PURE__ */ P.jsx(Cr, { 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__ */ P.jsx(Le, { to: c.state.from.state.from.pathname + c.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ P.jsx(wr, {}) }) : /* @__PURE__ */ P.jsx(Le, { to: n, state: { from: c }, replace: !0 });
660
+ }, Yr = ({ useLocation: t, useGoogleTagManager: n, Outlet: i }) => {
661
+ const { pathname: s } = t(), { sendEvent: p } = n();
662
+ return X(() => {
663
+ p({ event: "pageView", pathname: s });
664
+ }, [s, p]), i ? /* @__PURE__ */ P.jsx(i, {}) : null;
665
+ }, nt = () => {
666
+ const [t, n] = ie(), [i, s] = ie();
667
+ if (X(() => {
664
668
  (async () => {
665
669
  try {
666
- const { useGoogleTagManager: s } = await import("@tracktor/react-google-tag-manager");
667
- n(s);
668
- } catch (s) {
669
- console.error(s);
670
+ n(await import("@tracktor/react-google-tag-manager")), s(await import("react-router-dom"));
671
+ } catch (g) {
672
+ console.error(g);
670
673
  }
671
674
  })().then();
672
- }, []), t;
673
- }, ot = () => {
674
- const { pathname: t } = le(), n = Ir();
675
- return se(() => {
676
- if (n) {
677
- const { sendEvent: i } = n();
678
- i({ event: "pageView", pathname: t });
679
- }
680
- }, [t, n]), /* @__PURE__ */ k.jsx(ze, {});
681
- }, ce = wr({
675
+ }, []), t && i) {
676
+ const { useGoogleTagManager: p } = t, { useLocation: g, Outlet: o } = i;
677
+ return /* @__PURE__ */ P.jsx(Yr, { useLocation: g, Outlet: o, useGoogleTagManager: p });
678
+ }
679
+ return null;
680
+ }, ce = Tr({
682
681
  apiURL: void 0,
683
682
  children: void 0
684
- }), it = ({ children: t, apiURL: n }) => {
685
- const i = ue(
683
+ }), at = ({ children: t, apiURL: n }) => {
684
+ const i = le(
686
685
  () => ({
687
686
  apiURL: n
688
687
  }),
689
688
  [n]
690
689
  );
691
- return /* @__PURE__ */ k.jsx(ce.Provider, { value: i, children: t });
692
- }, st = ({
690
+ return /* @__PURE__ */ P.jsx(ce.Provider, { value: i, children: t });
691
+ }, ot = ({
693
692
  tokenTypeKey: t = "tokenType",
694
693
  userLocalStorageKey: n = "user",
695
694
  tokenKey: i = "accessToken",
696
695
  postContentType: s = "application/json",
697
- ...v
696
+ ...p
698
697
  }) => {
699
- const { apiURL: y = v.baseURL } = Ue(ce);
700
- if (!$.defaults)
698
+ const { apiURL: g = p.baseURL } = We(ce);
699
+ if (!M.defaults)
701
700
  return null;
702
- 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 }) => {
701
+ const o = localStorage.getItem(n), c = o ? JSON.parse(o) : null, l = c != null && c[t] ? c[t] : null, h = c != null && c[i] ? c[i] : null, y = o ? `${l} ${h}` : null;
702
+ return M.defaults.baseURL = g, M.defaults.headers.post["Content-Type"] = s, y && (M.defaults.headers.common.Authorization = y), 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,161 +720,172 @@ 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,
728
727
  replaysSessionSampleRate: s,
729
- replaysOnErrorSampleRate: v,
730
- tracePropagationTargets: y,
728
+ replaysOnErrorSampleRate: p,
729
+ tracePropagationTargets: g,
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: Sr,
742
741
  matchRoutes: xr,
743
- useEffect: se,
744
- useLocation: le,
745
- useNavigationType: jr
742
+ useEffect: X,
743
+ useLocation: Ve,
744
+ useNavigationType: Or
746
745
  }),
747
746
  ...n || []
748
747
  ],
749
- replaysOnErrorSampleRate: v || 1,
748
+ replaysOnErrorSampleRate: p || 1,
750
749
  replaysSessionSampleRate: s || 0.1,
751
- tracePropagationTargets: y,
750
+ tracePropagationTargets: g,
752
751
  tracesSampleRate: i || 1
753
- }), null), ct = ({ IMaskMixin: t, ...n }) => {
754
- const i = ue(
752
+ }), null), ut = ({ IMaskMixin: t, ...n }) => {
753
+ const i = le(
755
754
  // eslint-disable-next-line react/jsx-props-no-spreading
756
- () => t(({ TextField: s, ...v }) => /* @__PURE__ */ k.jsx(s, { ...v })),
755
+ () => t(({ TextField: s, ...p }) => /* @__PURE__ */ P.jsx(s, { ...p })),
757
756
  [t]
758
757
  );
759
- return /* @__PURE__ */ k.jsx(i, { ...n });
760
- }, ft = ({ accessToken: t }) => (Le && t && (Le.accessToken = t), null);
761
- var Ge = { exports: {} };
758
+ return /* @__PURE__ */ P.jsx(i, { ...n });
759
+ }, lt = ({ accessToken: t }) => (X(() => {
760
+ if (!t)
761
+ return;
762
+ (async () => {
763
+ try {
764
+ const i = await import("mapbox-gl");
765
+ i.default.accessToken = t;
766
+ } catch (i) {
767
+ console.error(i);
768
+ }
769
+ })().then();
770
+ }, [t]), null);
771
+ var Ue = { exports: {} };
762
772
  (function(t, n) {
763
773
  (function(i, s) {
764
774
  t.exports = s();
765
775
  })(Mr, function() {
766
776
  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" };
767
- return function(s, v, y) {
768
- var o = v.prototype, c = o.format;
769
- y.en.formats = i, o.format = function(l) {
777
+ return function(s, p, g) {
778
+ var o = p.prototype, c = o.format;
779
+ g.en.formats = i, o.format = function(l) {
770
780
  l === void 0 && (l = "YYYY-MM-DDTHH:mm:ssZ");
771
- 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) {
773
- var R = w && w.toUpperCase();
774
- return j || T[w] || i[w] || T[R].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(D, _, L) {
775
- return _ || L.slice(1);
781
+ var h = this.$locale().formats, y = function(C, T) {
782
+ return C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(O, j, S) {
783
+ var R = S && S.toUpperCase();
784
+ return j || T[S] || i[S] || T[R].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(D, _, $) {
785
+ return _ || $.slice(1);
776
786
  });
777
787
  });
778
- }(l, g === void 0 ? {} : g);
779
- return c.call(this, h);
788
+ }(l, h === void 0 ? {} : h);
789
+ return c.call(this, y);
780
790
  };
781
791
  };
782
792
  });
783
- })(Ge);
784
- var Nr = Ge.exports;
785
- const Wr = /* @__PURE__ */ Lr(Nr);
786
- z.extend(Wr);
787
- const dt = ({ language: t }) => (Ve(() => {
793
+ })(Ue);
794
+ var Ir = Ue.exports;
795
+ const Nr = /* @__PURE__ */ Lr(Ir);
796
+ z.extend(Nr);
797
+ const ct = ({ language: t }) => (Ne(() => {
788
798
  var i;
789
799
  const n = t || ((i = navigator.language) == null ? void 0 : i.slice(0, 2)) || "en";
790
800
  if (n === "en") {
791
- import("./en-PZ6S8N4v.js").then((s) => s.e).then(() => {
801
+ import("./en-NkuEPb7W.js").then((s) => s.e).then(() => {
792
802
  z.locale(n);
793
803
  });
794
804
  return;
795
805
  }
796
- n === "fr" && import("./fr-Q1qOJ6h9.js").then((s) => s.f).then(() => {
806
+ n === "fr" && import("./fr-zJ2AMR0z.js").then((s) => s.f).then(() => {
797
807
  z.locale(n);
798
808
  }).catch(() => {
799
- import("./en-PZ6S8N4v.js").then((s) => s.e).then(() => {
809
+ import("./en-NkuEPb7W.js").then((s) => s.e).then(() => {
800
810
  z.locale("en");
801
811
  });
802
812
  });
803
- }, [t]), null), pt = ({ children: t, defaultQueriesOptions: n, defaultMutationsOptions: i }) => {
804
- const s = new Dr({
813
+ }, [t]), null), ft = ({ children: t, defaultQueriesOptions: n, defaultMutationsOptions: i }) => {
814
+ const s = new kr({
805
815
  defaultOptions: {
806
816
  mutations: {
807
817
  ...i
808
818
  },
809
819
  queries: {
810
- getNextPageParam: (v, y, o) => v.length + (o || 0),
820
+ getNextPageParam: (p, g, o) => p.length + (o || 0),
811
821
  refetchOnWindowFocus: !1,
812
822
  retry: 3,
813
823
  ...n
814
824
  }
815
825
  }
816
826
  });
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(
820
- (y) => {
821
- var c, l, g, h, C, T, x, j, w;
822
- 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;
827
+ return /* @__PURE__ */ P.jsx(Dr, { client: s, children: t });
828
+ }, dt = (t) => {
829
+ const { unknownErrorTranslationKey: n = "error.unknownError" } = t || {}, i = jr(n), s = se(
830
+ (g) => {
831
+ var c, l, h, y, C, T, O, j, S;
832
+ const { response: o } = g || {};
833
+ 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 = (h = o == null ? void 0 : o.data) == null ? void 0 : h.detail) != null && y.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 ((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;
824
834
  },
825
835
  [i]
826
836
  );
827
- return { getErrorCode: oe((y) => {
828
- var c, l, g;
829
- const { response: o } = y || {};
830
- 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
+ return { getErrorCode: se((g) => {
838
+ var c, l, h;
839
+ const { response: o } = g || {};
840
+ 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) : (h = o == null ? void 0 : o.data) != null && h.error_code ? String(o.data.error_code) : "unknown_error_code";
831
841
  }, []), printError: s };
832
- }, mt = ({
842
+ }, pt = ({
833
843
  data: t,
834
844
  fetchNextPage: n,
835
845
  isFetchingNextPage: i,
836
846
  isInitialLoading: s,
837
- isLoading: v,
838
- enabled: y = !0
847
+ isLoading: p,
848
+ enabled: g = !0
839
849
  }) => {
840
- const o = oe(
850
+ const o = se(
841
851
  async (l) => {
842
- i || !y || await n({ pageParam: (l == null ? void 0 : l.pageParam) || l.visibleRowsCount });
852
+ i || !g || await n({ pageParam: (l == null ? void 0 : l.pageParam) || l.visibleRowsCount });
843
853
  },
844
- [y, n, i]
845
- ), c = ue(() => {
854
+ [g, n, i]
855
+ ), c = le(() => {
846
856
  if (t)
847
- return t.pages.reduce((l, g) => [...l, ...g], []);
857
+ return t.pages.reduce((l, h) => [...l, ...h], []);
848
858
  }, [t]);
849
859
  return {
850
860
  fetchNextPageOnRowsScrollEnd: o,
851
- isLoading: i || v,
861
+ isLoading: i || p,
852
862
  loadingVariant: s ? "skeleton" : "linear",
853
863
  rows: c
854
864
  };
855
- }, gt = () => ({
865
+ }, vt = () => ({
856
866
  clearAuthenticationToken: () => {
857
- $.defaults.headers.common.Authorization = null;
867
+ M.defaults.headers.common.Authorization = null;
858
868
  },
859
869
  setAuthenticationToken: ({ tokenType: i, accessToken: s }) => {
860
- $.defaults.headers.common.Authorization = `${i} ${s}`;
870
+ M.defaults.headers.common.Authorization = `${i} ${s}`;
861
871
  }
862
- }), Vr = (t, n = "ll") => z(t).format(n), Ur = (t, n = "km") => {
872
+ }), Wr = (t, n = "ll") => z(t).format(n), Vr = (t, n = "km") => {
863
873
  const i = Number(t);
864
874
  return Number.isNaN(i) ? `0 ${n}` : `${i.toFixed(2)} ${n}`;
865
- }, zr = (t) => {
875
+ }, Ur = (t) => {
866
876
  const n = t && typeof t == "object" && "pathname" in t && t.pathname ? t.pathname : t;
867
877
  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) => {
878
+ }, Ye = (t, n) => {
869
879
  if (!t)
870
880
  return "";
871
- const i = zr(t), s = typeof t == "object" && "pathname" in t ? `${t.origin}${i}` : t;
881
+ const i = Ur(t), s = typeof t == "object" && "pathname" in t ? `${t.origin}${i}` : t;
872
882
  return typeof n == "number" ? `${s.replace("/files", `/thumbs/${n}`)}` : s;
873
- }, ht = () => {
874
- const { apiURL: t } = Ue(ce);
883
+ }, mt = () => {
884
+ const { apiURL: t } = We(ce);
875
885
  return {
876
- dateAdapter: Vr,
877
- distanceAdapter: Ur,
878
- filePathAdapter: (i, s) => Ie(
886
+ dateAdapter: Wr,
887
+ distanceAdapter: Vr,
888
+ filePathAdapter: (i, s) => Ye(
879
889
  t && typeof i == "string" ? {
880
890
  origin: t,
881
891
  pathname: i
@@ -883,13 +893,13 @@ const dt = ({ language: t }) => (Ve(() => {
883
893
  s
884
894
  )
885
895
  };
886
- }, Gr = (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase(), qr = (t) => {
887
- 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("");
896
+ }, zr = (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase(), Br = (t) => {
897
+ 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("");
888
898
  return s.charAt(0).toLowerCase() + s.slice(1);
889
- }, Br = (t, n, i) => {
890
- const s = qr(n), v = Gr(i);
891
- return `${s}${v}`;
892
- }, Jr = (t) => {
899
+ }, Gr = (t, n, i) => {
900
+ const s = Br(n), p = zr(i);
901
+ return `${s}${p}`;
902
+ }, qr = (t) => {
893
903
  if (t)
894
904
  return (t == null ? void 0 : t.reduce((n, i) => (n[i] = {
895
905
  query: {
@@ -898,7 +908,7 @@ const dt = ({ language: t }) => (Ve(() => {
898
908
  useQuery: !0
899
909
  }
900
910
  }, n), {})) || {};
901
- }, yt = (t) => {
911
+ }, gt = (t) => {
902
912
  const { input: n = "./openapi.json", operationsToGenerateInfiniteQueryHook: i = void 0 } = t || {};
903
913
  return {
904
914
  api: {
@@ -919,8 +929,8 @@ const dt = ({ language: t }) => (Ve(() => {
919
929
  name: "axiosCustomInstance",
920
930
  path: `${__dirname}/config/orval/mutator/axiosCustomInstance.ts`
921
931
  },
922
- operationName: Br,
923
- ...(i == null ? void 0 : i.length) && { operations: Jr(i) },
932
+ operationName: Gr,
933
+ ...(i == null ? void 0 : i.length) && { operations: qr(i) },
924
934
  query: {
925
935
  useQuery: !0
926
936
  }
@@ -932,23 +942,23 @@ const dt = ({ language: t }) => (Ve(() => {
932
942
  };
933
943
  };
934
944
  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,
945
+ ot as A,
946
+ ct as D,
947
+ nt as G,
948
+ it as I,
949
+ ut as M,
950
+ ft as Q,
951
+ tt as R,
952
+ st as S,
953
+ lt as a,
954
+ at as b,
945
955
  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,
956
+ pt as d,
957
+ vt as e,
958
+ mt as f,
959
+ gt as g,
960
+ Wr as h,
961
+ Vr as i,
952
962
  ce as j,
953
- vt as u
963
+ dt as u
954
964
  };