@tracktor/shared-module 1.0.7 → 1.0.8

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,17 +1,19 @@
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";
1
+ import Ie, { useState as _r, useRef as Rr, useEffect as M, Suspense as Cr, createContext as Tr, useMemo as ue, useContext as Ne, useCallback as ie } from "react";
2
+ import $ from "axios";
3
+ import { useLocation as le, Navigate as Me, Outlet as We, createRoutesFromChildren as wr, matchRoutes as Sr, useNavigationType as Or } from "react-router-dom";
4
+ import { useGoogleTagManager as xr } from "@tracktor/react-google-tag-manager";
5
+ import N, { t as jr } from "i18next";
5
6
  import Pr from "i18next-browser-languagedetector";
6
7
  import { initReactI18next as Ar } from "react-i18next";
7
8
  import * as oe from "@sentry/react";
8
- import U from "dayjs";
9
- import { QueryClient as kr, QueryClientProvider as Dr } from "@tanstack/react-query";
9
+ import kr from "mapbox-gl";
10
+ import q from "dayjs";
11
+ import { QueryClient as Dr, QueryClientProvider as $r } from "@tanstack/react-query";
10
12
  var Mr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
11
- function Lr(t) {
13
+ function Fr(t) {
12
14
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
13
15
  }
14
- var ue = { exports: {} }, V = {};
16
+ var se = { exports: {} }, z = {};
15
17
  /**
16
18
  * @license React
17
19
  * react-jsx-runtime.development.js
@@ -21,25 +23,25 @@ var ue = { exports: {} }, V = {};
21
23
  * This source code is licensed under the MIT license found in the
22
24
  * LICENSE file in the root directory of this source tree.
23
25
  */
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";
28
- function R(e) {
26
+ var Fe;
27
+ function Lr() {
28
+ return Fe || (Fe = 1, process.env.NODE_ENV !== "production" && function() {
29
+ var t = Ie, n = Symbol.for("react.element"), i = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), h = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), j = Symbol.iterator, S = "@@iterator";
30
+ function _(e) {
29
31
  if (e === null || typeof e != "object")
30
32
  return null;
31
33
  var r = j && e[j] || e[S];
32
34
  return typeof r == "function" ? r : null;
33
35
  }
34
36
  var D = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
35
- function _(e) {
37
+ function R(e) {
36
38
  {
37
39
  for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), u = 1; u < r; u++)
38
40
  a[u - 1] = arguments[u];
39
- $("error", e, a);
41
+ L("error", e, a);
40
42
  }
41
43
  }
42
- function $(e, r, a) {
44
+ function L(e, r, a) {
43
45
  {
44
46
  var u = D.ReactDebugCurrentFrame, v = u.getStackAddendum();
45
47
  v !== "" && (r += "%s", a = a.concat([v]));
@@ -49,16 +51,16 @@ function $r() {
49
51
  m.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, m);
50
52
  }
51
53
  }
52
- var Ue = !1, Be = !1, Ge = !1, qe = !1, Je = !1, fe;
54
+ var ze = !1, Ue = !1, qe = !1, Be = !1, Ge = !1, fe;
53
55
  fe = Symbol.for("react.module.reference");
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 || Ue || 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
56
+ function Je(e) {
57
+ return !!(typeof e == "string" || typeof e == "function" || e === s || e === h || Ge || e === p || e === g || e === y || Be || e === x || ze || Ue || qe || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === C || e.$$typeof === o || e.$$typeof === c || e.$$typeof === l || // This needs to include all possible module reference object
56
58
  // types supported by any Flight configuration anywhere since
57
59
  // we don't know which Flight build this will end up being used
58
60
  // with.
59
61
  e.$$typeof === fe || e.getModuleId !== void 0));
60
62
  }
61
- function Xe(e, r, a) {
63
+ function He(e, r, a) {
62
64
  var u = e.displayName;
63
65
  if (u)
64
66
  return u;
@@ -68,10 +70,10 @@ function $r() {
68
70
  function de(e) {
69
71
  return e.displayName || "Context";
70
72
  }
71
- function A(e) {
73
+ function P(e) {
72
74
  if (e == null)
73
75
  return null;
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")
76
+ if (typeof e.tag == "number" && R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
75
77
  return e.displayName || e.name || null;
76
78
  if (typeof e == "string")
77
79
  return e;
@@ -80,11 +82,11 @@ function $r() {
80
82
  return "Fragment";
81
83
  case i:
82
84
  return "Portal";
83
- case g:
85
+ case h:
84
86
  return "Profiler";
85
87
  case p:
86
88
  return "StrictMode";
87
- case h:
89
+ case g:
88
90
  return "Suspense";
89
91
  case y:
90
92
  return "SuspenseList";
@@ -98,14 +100,14 @@ function $r() {
98
100
  var a = e;
99
101
  return de(a._context) + ".Provider";
100
102
  case l:
101
- return Xe(e, e.render, "ForwardRef");
103
+ return He(e, e.render, "ForwardRef");
102
104
  case C:
103
105
  var u = e.displayName || null;
104
- return u !== null ? u : A(e.type) || "Memo";
106
+ return u !== null ? u : P(e.type) || "Memo";
105
107
  case T: {
106
108
  var v = e, m = v._payload, d = v._init;
107
109
  try {
108
- return A(d(m));
110
+ return P(d(m));
109
111
  } catch {
110
112
  return null;
111
113
  }
@@ -113,14 +115,14 @@ function $r() {
113
115
  }
114
116
  return null;
115
117
  }
116
- var L = Object.assign, N = 0, pe, ve, me, ge, he, ye, be;
118
+ var F = Object.assign, W = 0, ve, pe, me, ge, he, ye, be;
117
119
  function Ee() {
118
120
  }
119
121
  Ee.__reactDisabledLog = !0;
120
- function Ke() {
122
+ function Xe() {
121
123
  {
122
- if (N === 0) {
123
- pe = console.log, ve = console.info, me = console.warn, ge = console.error, he = console.group, ye = console.groupCollapsed, be = console.groupEnd;
124
+ if (W === 0) {
125
+ ve = console.log, pe = console.info, me = console.warn, ge = console.error, he = console.group, ye = console.groupCollapsed, be = console.groupEnd;
124
126
  var e = {
125
127
  configurable: !0,
126
128
  enumerable: !0,
@@ -137,65 +139,65 @@ function $r() {
137
139
  groupEnd: e
138
140
  });
139
141
  }
140
- N++;
142
+ W++;
141
143
  }
142
144
  }
143
145
  function Ze() {
144
146
  {
145
- if (N--, N === 0) {
147
+ if (W--, W === 0) {
146
148
  var e = {
147
149
  configurable: !0,
148
150
  enumerable: !0,
149
151
  writable: !0
150
152
  };
151
153
  Object.defineProperties(console, {
152
- log: L({}, e, {
153
- value: pe
154
- }),
155
- info: L({}, e, {
154
+ log: F({}, e, {
156
155
  value: ve
157
156
  }),
158
- warn: L({}, e, {
157
+ info: F({}, e, {
158
+ value: pe
159
+ }),
160
+ warn: F({}, e, {
159
161
  value: me
160
162
  }),
161
- error: L({}, e, {
163
+ error: F({}, e, {
162
164
  value: ge
163
165
  }),
164
- group: L({}, e, {
166
+ group: F({}, e, {
165
167
  value: he
166
168
  }),
167
- groupCollapsed: L({}, e, {
169
+ groupCollapsed: F({}, e, {
168
170
  value: ye
169
171
  }),
170
- groupEnd: L({}, e, {
172
+ groupEnd: F({}, e, {
171
173
  value: be
172
174
  })
173
175
  });
174
176
  }
175
- N < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
177
+ W < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
176
178
  }
177
179
  }
178
- var K = D.ReactCurrentDispatcher, Z;
180
+ var Z = D.ReactCurrentDispatcher, Q;
179
181
  function B(e, r, a) {
180
182
  {
181
- if (Z === void 0)
183
+ if (Q === void 0)
182
184
  try {
183
185
  throw Error();
184
186
  } catch (v) {
185
187
  var u = v.stack.trim().match(/\n( *(at )?)/);
186
- Z = u && u[1] || "";
188
+ Q = u && u[1] || "";
187
189
  }
188
190
  return `
189
- ` + Z + e;
191
+ ` + Q + e;
190
192
  }
191
193
  }
192
- var Q = !1, G;
194
+ var K = !1, G;
193
195
  {
194
196
  var Qe = typeof WeakMap == "function" ? WeakMap : Map;
195
197
  G = new Qe();
196
198
  }
197
- function Re(e, r) {
198
- if (!e || Q)
199
+ function _e(e, r) {
200
+ if (!e || K)
199
201
  return "";
200
202
  {
201
203
  var a = G.get(e);
@@ -203,11 +205,11 @@ function $r() {
203
205
  return a;
204
206
  }
205
207
  var u;
206
- Q = !0;
208
+ K = !0;
207
209
  var v = Error.prepareStackTrace;
208
210
  Error.prepareStackTrace = void 0;
209
211
  var m;
210
- m = K.current, K.current = null, Ke();
212
+ m = Z.current, Z.current = null, Xe();
211
213
  try {
212
214
  if (r) {
213
215
  var d = function() {
@@ -220,29 +222,29 @@ function $r() {
220
222
  }), typeof Reflect == "object" && Reflect.construct) {
221
223
  try {
222
224
  Reflect.construct(d, []);
223
- } catch (k) {
224
- u = k;
225
+ } catch (A) {
226
+ u = A;
225
227
  }
226
228
  Reflect.construct(e, [], d);
227
229
  } else {
228
230
  try {
229
231
  d.call();
230
- } catch (k) {
231
- u = k;
232
+ } catch (A) {
233
+ u = A;
232
234
  }
233
235
  e.call(d.prototype);
234
236
  }
235
237
  } else {
236
238
  try {
237
239
  throw Error();
238
- } catch (k) {
239
- u = k;
240
+ } catch (A) {
241
+ u = A;
240
242
  }
241
243
  e();
242
244
  }
243
- } catch (k) {
244
- if (k && u && typeof k.stack == "string") {
245
- for (var f = k.stack.split(`
245
+ } catch (A) {
246
+ if (A && u && typeof A.stack == "string") {
247
+ for (var f = A.stack.split(`
246
248
  `), w = u.stack.split(`
247
249
  `), b = f.length - 1, E = w.length - 1; b >= 1 && E >= 0 && f[b] !== w[E]; )
248
250
  E--;
@@ -251,36 +253,36 @@ function $r() {
251
253
  if (b !== 1 || E !== 1)
252
254
  do
253
255
  if (b--, E--, E < 0 || f[b] !== w[E]) {
254
- var x = `
256
+ var O = `
255
257
  ` + f[b].replace(" at new ", " at ");
256
- return e.displayName && x.includes("<anonymous>") && (x = x.replace("<anonymous>", e.displayName)), typeof e == "function" && G.set(e, x), x;
258
+ return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && G.set(e, O), O;
257
259
  }
258
260
  while (b >= 1 && E >= 0);
259
261
  break;
260
262
  }
261
263
  }
262
264
  } finally {
263
- Q = !1, K.current = m, Ze(), Error.prepareStackTrace = v;
265
+ K = !1, Z.current = m, Ze(), Error.prepareStackTrace = v;
264
266
  }
265
- var Y = e ? e.displayName || e.name : "", Me = Y ? B(Y) : "";
266
- return typeof e == "function" && G.set(e, Me), Me;
267
+ var I = e ? e.displayName || e.name : "", $e = I ? B(I) : "";
268
+ return typeof e == "function" && G.set(e, $e), $e;
267
269
  }
268
- function er(e, r, a) {
269
- return Re(e, !1);
270
+ function Ke(e, r, a) {
271
+ return _e(e, !1);
270
272
  }
271
- function rr(e) {
273
+ function er(e) {
272
274
  var r = e.prototype;
273
275
  return !!(r && r.isReactComponent);
274
276
  }
275
- function q(e, r, a) {
277
+ function J(e, r, a) {
276
278
  if (e == null)
277
279
  return "";
278
280
  if (typeof e == "function")
279
- return Re(e, rr(e));
281
+ return _e(e, er(e));
280
282
  if (typeof e == "string")
281
283
  return B(e);
282
284
  switch (e) {
283
- case h:
285
+ case g:
284
286
  return B("Suspense");
285
287
  case y:
286
288
  return B("SuspenseList");
@@ -288,30 +290,30 @@ function $r() {
288
290
  if (typeof e == "object")
289
291
  switch (e.$$typeof) {
290
292
  case l:
291
- return er(e.render);
293
+ return Ke(e.render);
292
294
  case C:
293
- return q(e.type, r, a);
295
+ return J(e.type, r, a);
294
296
  case T: {
295
297
  var u = e, v = u._payload, m = u._init;
296
298
  try {
297
- return q(m(v), r, a);
299
+ return J(m(v), r, a);
298
300
  } catch {
299
301
  }
300
302
  }
301
303
  }
302
304
  return "";
303
305
  }
304
- var J = Object.prototype.hasOwnProperty, _e = {}, Ce = D.ReactDebugCurrentFrame;
305
- function H(e) {
306
+ var H = Object.prototype.hasOwnProperty, Re = {}, Ce = D.ReactDebugCurrentFrame;
307
+ function X(e) {
306
308
  if (e) {
307
- var r = e._owner, a = q(e.type, e._source, r ? r.type : null);
309
+ var r = e._owner, a = J(e.type, e._source, r ? r.type : null);
308
310
  Ce.setExtraStackFrame(a);
309
311
  } else
310
312
  Ce.setExtraStackFrame(null);
311
313
  }
312
- function tr(e, r, a, u, v) {
314
+ function rr(e, r, a, u, v) {
313
315
  {
314
- var m = Function.call.bind(J);
316
+ var m = Function.call.bind(H);
315
317
  for (var d in e)
316
318
  if (m(e, d)) {
317
319
  var f = void 0;
@@ -324,21 +326,21 @@ function $r() {
324
326
  } catch (b) {
325
327
  f = b;
326
328
  }
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
+ f && !(f instanceof Error) && (X(v), R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", u || "React class", a, d, typeof f), X(null)), f instanceof Error && !(f.message in Re) && (Re[f.message] = !0, X(v), R("Failed %s type: %s", a, f.message), X(null));
328
330
  }
329
331
  }
330
332
  }
331
- var nr = Array.isArray;
333
+ var tr = Array.isArray;
332
334
  function ee(e) {
333
- return nr(e);
335
+ return tr(e);
334
336
  }
335
- function ar(e) {
337
+ function nr(e) {
336
338
  {
337
339
  var r = typeof Symbol == "function" && Symbol.toStringTag, a = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
338
340
  return a;
339
341
  }
340
342
  }
341
- function or(e) {
343
+ function ar(e) {
342
344
  try {
343
345
  return Te(e), !1;
344
346
  } catch {
@@ -349,42 +351,42 @@ function $r() {
349
351
  return "" + e;
350
352
  }
351
353
  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);
354
+ if (ar(e))
355
+ return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", nr(e)), Te(e);
354
356
  }
355
- var W = D.ReactCurrentOwner, ir = {
357
+ var V = D.ReactCurrentOwner, or = {
356
358
  key: !0,
357
359
  ref: !0,
358
360
  __self: !0,
359
361
  __source: !0
360
- }, Se, xe, re;
362
+ }, Se, Oe, re;
361
363
  re = {};
362
- function sr(e) {
363
- if (J.call(e, "ref")) {
364
+ function ir(e) {
365
+ if (H.call(e, "ref")) {
364
366
  var r = Object.getOwnPropertyDescriptor(e, "ref").get;
365
367
  if (r && r.isReactWarning)
366
368
  return !1;
367
369
  }
368
370
  return e.ref !== void 0;
369
371
  }
370
- function ur(e) {
371
- if (J.call(e, "key")) {
372
+ function sr(e) {
373
+ if (H.call(e, "key")) {
372
374
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
373
375
  if (r && r.isReactWarning)
374
376
  return !1;
375
377
  }
376
378
  return e.key !== void 0;
377
379
  }
378
- function lr(e, r) {
379
- if (typeof e.ref == "string" && W.current && r && W.current.stateNode !== r) {
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);
380
+ function ur(e, r) {
381
+ if (typeof e.ref == "string" && V.current && r && V.current.stateNode !== r) {
382
+ var a = P(V.current.type);
383
+ re[a] || (R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', P(V.current.type), e.ref), re[a] = !0);
382
384
  }
383
385
  }
384
- function cr(e, r) {
386
+ function lr(e, r) {
385
387
  {
386
388
  var a = function() {
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
+ Se || (Se = !0, R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
388
390
  };
389
391
  a.isReactWarning = !0, Object.defineProperty(e, "key", {
390
392
  get: a,
@@ -392,10 +394,10 @@ function $r() {
392
394
  });
393
395
  }
394
396
  }
395
- function fr(e, r) {
397
+ function cr(e, r) {
396
398
  {
397
399
  var a = function() {
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
+ Oe || (Oe = !0, R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
399
401
  };
400
402
  a.isReactWarning = !0, Object.defineProperty(e, "ref", {
401
403
  get: a,
@@ -403,7 +405,7 @@ function $r() {
403
405
  });
404
406
  }
405
407
  }
406
- var dr = function(e, r, a, u, v, m, d) {
408
+ var fr = function(e, r, a, u, v, m, d) {
407
409
  var f = {
408
410
  // This tag allows us to uniquely identify this as a React Element
409
411
  $$typeof: n,
@@ -432,12 +434,12 @@ function $r() {
432
434
  value: v
433
435
  }), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
434
436
  };
435
- function pr(e, r, a, u, v) {
437
+ function dr(e, r, a, u, v) {
436
438
  {
437
439
  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
+ a !== void 0 && (we(a), f = "" + a), sr(r) && (we(r.key), f = "" + r.key), ir(r) && (w = r.ref, ur(r, v));
439
441
  for (m in r)
440
- J.call(r, m) && !ir.hasOwnProperty(m) && (d[m] = r[m]);
442
+ H.call(r, m) && !or.hasOwnProperty(m) && (d[m] = r[m]);
441
443
  if (e && e.defaultProps) {
442
444
  var b = e.defaultProps;
443
445
  for (m in b)
@@ -445,18 +447,18 @@ function $r() {
445
447
  }
446
448
  if (f || w) {
447
449
  var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
448
- f && cr(d, E), w && fr(d, E);
450
+ f && lr(d, E), w && cr(d, E);
449
451
  }
450
- return dr(e, f, w, v, u, W.current, d);
452
+ return fr(e, f, w, v, u, V.current, d);
451
453
  }
452
454
  }
453
- var te = D.ReactCurrentOwner, Oe = D.ReactDebugCurrentFrame;
454
- function F(e) {
455
+ var te = D.ReactCurrentOwner, xe = D.ReactDebugCurrentFrame;
456
+ function Y(e) {
455
457
  if (e) {
456
- var r = e._owner, a = q(e.type, e._source, r ? r.type : null);
457
- Oe.setExtraStackFrame(a);
458
+ var r = e._owner, a = J(e.type, e._source, r ? r.type : null);
459
+ xe.setExtraStackFrame(a);
458
460
  } else
459
- Oe.setExtraStackFrame(null);
461
+ xe.setExtraStackFrame(null);
460
462
  }
461
463
  var ne;
462
464
  ne = !1;
@@ -466,7 +468,7 @@ function $r() {
466
468
  function je() {
467
469
  {
468
470
  if (te.current) {
469
- var e = A(te.current.type);
471
+ var e = P(te.current.type);
470
472
  if (e)
471
473
  return `
472
474
 
@@ -487,7 +489,7 @@ Check your code at ` + r + ":" + a + ".";
487
489
  }
488
490
  }
489
491
  var Pe = {};
490
- function mr(e) {
492
+ function pr(e) {
491
493
  {
492
494
  var r = je();
493
495
  if (!r) {
@@ -504,12 +506,12 @@ Check the top-level render call using <` + a + ">.");
504
506
  if (!e._store || e._store.validated || e.key != null)
505
507
  return;
506
508
  e._store.validated = !0;
507
- var a = mr(r);
509
+ var a = pr(r);
508
510
  if (Pe[a])
509
511
  return;
510
512
  Pe[a] = !0;
511
513
  var u = "";
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
+ e && e._owner && e._owner !== te.current && (u = " It was passed a child from " + P(e._owner.type) + "."), Y(e), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, u), Y(null);
513
515
  }
514
516
  }
515
517
  function ke(e, r) {
@@ -524,14 +526,14 @@ Check the top-level render call using <` + a + ">.");
524
526
  else if (ae(e))
525
527
  e._store && (e._store.validated = !0);
526
528
  else if (e) {
527
- var v = R(e);
529
+ var v = _(e);
528
530
  if (typeof v == "function" && v !== e.entries)
529
531
  for (var m = v.call(e), d; !(d = m.next()).done; )
530
532
  ae(d.value) && Ae(d.value, r);
531
533
  }
532
534
  }
533
535
  }
534
- function gr(e) {
536
+ function mr(e) {
535
537
  {
536
538
  var r = e.type;
537
539
  if (r == null || typeof r == "string")
@@ -546,69 +548,69 @@ Check the top-level render call using <` + a + ">.");
546
548
  else
547
549
  return;
548
550
  if (a) {
549
- var u = A(r);
550
- tr(a, e.props, "prop", u, e);
551
+ var u = P(r);
552
+ rr(a, e.props, "prop", u, e);
551
553
  } else if (r.PropTypes !== void 0 && !ne) {
552
554
  ne = !0;
553
- var v = A(r);
554
- _("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", v || "Unknown");
555
+ var v = P(r);
556
+ R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", v || "Unknown");
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
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
557
559
  }
558
560
  }
559
- function hr(e) {
561
+ function gr(e) {
560
562
  {
561
563
  for (var r = Object.keys(e.props), a = 0; a < r.length; a++) {
562
564
  var u = r[a];
563
565
  if (u !== "children" && u !== "key") {
564
- F(e), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), F(null);
566
+ Y(e), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), Y(null);
565
567
  break;
566
568
  }
567
569
  }
568
- e.ref !== null && (F(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
570
+ e.ref !== null && (Y(e), R("Invalid attribute `ref` supplied to `React.Fragment`."), Y(null));
569
571
  }
570
572
  }
571
573
  function De(e, r, a, u, v, m) {
572
574
  {
573
- var d = He(e);
575
+ var d = Je(e);
574
576
  if (!d) {
575
577
  var f = "";
576
578
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (f += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
577
579
  var w = vr(v);
578
580
  w ? f += w : f += je();
579
581
  var b;
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
+ e === null ? b = "null" : ee(e) ? b = "array" : e !== void 0 && e.$$typeof === n ? (b = "<" + (P(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : b = typeof e, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", b, f);
581
583
  }
582
- var E = pr(e, r, a, v, m);
584
+ var E = dr(e, r, a, v, m);
583
585
  if (E == null)
584
586
  return E;
585
587
  if (d) {
586
- var x = r.children;
587
- if (x !== void 0)
588
+ var O = r.children;
589
+ if (O !== void 0)
588
590
  if (u)
589
- if (ee(x)) {
590
- for (var Y = 0; Y < x.length; Y++)
591
- ke(x[Y], e);
592
- Object.freeze && Object.freeze(x);
591
+ if (ee(O)) {
592
+ for (var I = 0; I < O.length; I++)
593
+ ke(O[I], e);
594
+ Object.freeze && Object.freeze(O);
593
595
  } else
594
- _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
596
+ R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
595
597
  else
596
- ke(x, e);
598
+ ke(O, e);
597
599
  }
598
- return e === s ? hr(E) : gr(E), E;
600
+ return e === s ? gr(E) : mr(E), E;
599
601
  }
600
602
  }
601
- function yr(e, r, a) {
603
+ function hr(e, r, a) {
602
604
  return De(e, r, a, !0);
603
605
  }
604
- function br(e, r, a) {
606
+ function yr(e, r, a) {
605
607
  return De(e, r, a, !1);
606
608
  }
607
- var Er = br, Rr = yr;
608
- V.Fragment = s, V.jsx = Er, V.jsxs = Rr;
609
- }()), V;
609
+ var br = yr, Er = hr;
610
+ z.Fragment = s, z.jsx = br, z.jsxs = Er;
611
+ }()), z;
610
612
  }
611
- var z = {};
613
+ var U = {};
612
614
  /**
613
615
  * @license React
614
616
  * react-jsx-runtime.production.min.js
@@ -618,91 +620,78 @@ var z = {};
618
620
  * This source code is licensed under the MIT license found in the
619
621
  * LICENSE file in the root directory of this source tree.
620
622
  */
621
- var Fe;
622
- function Fr() {
623
- if (Fe)
624
- return z;
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);
623
+ var Le;
624
+ function Yr() {
625
+ if (Le)
626
+ return U;
627
+ Le = 1;
628
+ var t = Ie, n = Symbol.for("react.element"), i = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, p = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, h = { key: !0, ref: !0, __self: !0, __source: !0 };
629
+ function o(c, l, g) {
630
+ var y, C = {}, T = null, x = null;
631
+ g !== void 0 && (T = "" + g), l.key !== void 0 && (T = "" + l.key), l.ref !== void 0 && (x = l.ref);
630
632
  for (y in l)
631
- s.call(l, y) && !g.hasOwnProperty(y) && (C[y] = l[y]);
633
+ s.call(l, y) && !h.hasOwnProperty(y) && (C[y] = l[y]);
632
634
  if (c && c.defaultProps)
633
635
  for (y in l = c.defaultProps, l)
634
636
  C[y] === void 0 && (C[y] = l[y]);
635
- return { $$typeof: n, type: c, key: T, ref: O, props: C, _owner: p.current };
637
+ return { $$typeof: n, type: c, key: T, ref: x, props: C, _owner: p.current };
636
638
  }
637
- return z.Fragment = i, z.jsx = o, z.jsxs = o, z;
639
+ return U.Fragment = i, U.jsx = o, U.jsxs = o, U;
638
640
  }
639
- process.env.NODE_ENV === "production" ? ue.exports = Fr() : ue.exports = $r();
640
- var P = ue.exports;
641
- const tt = ({
641
+ process.env.NODE_ENV === "production" ? se.exports = Yr() : se.exports = Lr();
642
+ var k = se.exports;
643
+ const at = ({
642
644
  Fallback: t,
643
645
  loginPath: n = "/login",
644
646
  localStorageKey: i = "user",
645
647
  redirect401Path: s = "/login",
646
648
  isLogged: p
647
649
  }) => {
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(() => {
650
+ var C, T, x, j;
651
+ const [h, o] = _r(null), c = le(), l = Rr(!1), g = typeof p == "function" ? p() : !!p, y = typeof g == "boolean" ? g : g == null ? void 0 : g.isLogged;
652
+ return M(() => {
651
653
  var S;
652
- l.current || (l.current = !0, (S = M) == null || S.interceptors.response.use(
653
- (R) => R,
654
- async (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);
654
+ l.current || (l.current = !0, (S = $) == null || S.interceptors.response.use(
655
+ (_) => _,
656
+ async (_) => {
657
+ var L;
658
+ return typeof _ == "object" && _ && "response" in _ && _.response && typeof _.response == "object" && "status" in _.response && _.response && typeof _.response == "object" && "status" in _.response && ((L = _ == null ? void 0 : _.response) == null ? void 0 : L.status) === 401 && ($.defaults.headers.common.Authorization = null, localStorage.removeItem(i), o(s)), Promise.reject(_);
657
659
  }
658
660
  ));
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(() => {
668
- (async () => {
669
- try {
670
- n(await import("@tracktor/react-google-tag-manager")), s(await import("react-router-dom"));
671
- } catch (g) {
672
- console.error(g);
673
- }
674
- })().then();
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;
661
+ }, [i, s]), y && !h ? /* @__PURE__ */ k.jsx(Cr, { fallback: t, children: (T = (C = c.state) == null ? void 0 : C.from) != null && T.state && ((j = (x = c.state) == null ? void 0 : x.from) == null ? void 0 : j.pathname) === n ? /* @__PURE__ */ k.jsx(Me, { to: c.state.from.state.from.pathname + c.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ k.jsx(We, {}) }) : /* @__PURE__ */ k.jsx(Me, { to: n, state: { from: c }, replace: !0 });
662
+ }, ot = () => {
663
+ const { pathname: t } = le(), { sendEvent: n } = xr();
664
+ return M(() => {
665
+ n({ event: "pageView", pathname: t });
666
+ }, [t, n]), /* @__PURE__ */ k.jsx(We, {});
680
667
  }, ce = Tr({
681
668
  apiURL: void 0,
682
669
  children: void 0
683
- }), at = ({ children: t, apiURL: n }) => {
684
- const i = le(
670
+ }), it = ({ children: t, apiURL: n }) => {
671
+ const i = ue(
685
672
  () => ({
686
673
  apiURL: n
687
674
  }),
688
675
  [n]
689
676
  );
690
- return /* @__PURE__ */ P.jsx(ce.Provider, { value: i, children: t });
691
- }, ot = ({
677
+ return /* @__PURE__ */ k.jsx(ce.Provider, { value: i, children: t });
678
+ }, st = ({
692
679
  tokenTypeKey: t = "tokenType",
693
680
  userLocalStorageKey: n = "user",
694
681
  tokenKey: i = "accessToken",
695
682
  postContentType: s = "application/json",
696
683
  ...p
697
684
  }) => {
698
- const { apiURL: g = p.apiURL } = We(ce);
699
- if (!M.defaults)
700
- return null;
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 }) => {
685
+ const { apiURL: h = p.apiURL } = Ne(ce);
686
+ return M(() => {
687
+ if (!$.defaults)
688
+ return;
689
+ const o = localStorage.getItem(n), c = o ? JSON.parse(o) : null, l = c != null && c[t] ? c[t] : null, g = c != null && c[i] ? c[i] : null, y = o ? `${l} ${g}` : null;
690
+ $.defaults.baseURL = h, $.defaults.headers.post["Content-Type"] = s, y && ($.defaults.headers.common.Authorization = y);
691
+ }, [h, s, i, t, n]), null;
692
+ }, ut = ({ debug: t, resources: n }) => (M(() => {
704
693
  var i;
705
- return (i = I) != null && i.isInitialized || (I.use(Pr).use(Ar).init({
694
+ (i = N) != null && i.isInitialized || (N.use(Pr).use(Ar).init({
706
695
  debug: t,
707
696
  fallbackLng: "en",
708
697
  interpolation: {
@@ -716,149 +705,152 @@ const tt = ({
716
705
  resources: n,
717
706
  returnNull: !1
718
707
  }).then(() => {
719
- document.documentElement.lang !== I.resolvedLanguage && I.resolvedLanguage && document.documentElement.setAttribute("lang", I.resolvedLanguage);
720
- }), I.on("languageChanged", (s) => {
708
+ document.documentElement.lang !== N.resolvedLanguage && N.resolvedLanguage && document.documentElement.setAttribute("lang", N.resolvedLanguage);
709
+ }), N.on("languageChanged", (s) => {
721
710
  document.documentElement.setAttribute("lang", s);
722
- })), null;
723
- }, st = ({
711
+ }));
712
+ }, [t, n]), null), lt = ({
724
713
  dsn: t,
725
714
  integrations: n,
726
715
  tracesSampleRate: i,
727
716
  replaysSessionSampleRate: s,
728
717
  replaysOnErrorSampleRate: p,
729
- tracePropagationTargets: g,
718
+ tracePropagationTargets: h,
730
719
  ignoreErrors: o,
731
720
  debug: c,
732
721
  environment: l
733
- }) => (oe.isInitialized() || (c || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && oe.init({
734
- debug: c,
735
- dsn: t,
736
- environment: l || "production",
737
- ignoreErrors: [...o || [], /dynamically imported module/],
738
- integrations: [
739
- oe.reactRouterV6BrowserTracingIntegration({
740
- createRoutesFromChildren: Sr,
741
- matchRoutes: xr,
742
- useEffect: X,
743
- useLocation: Ve,
744
- useNavigationType: Or
745
- }),
746
- ...n || []
747
- ],
748
- replaysOnErrorSampleRate: p || 1,
749
- replaysSessionSampleRate: s || 0.1,
750
- tracePropagationTargets: g,
751
- tracesSampleRate: i || 1
752
- }), null), ut = ({ IMaskMixin: t, ...n }) => {
753
- const i = le(
722
+ }) => (M(() => {
723
+ oe.isInitialized() || (c || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && oe.init({
724
+ debug: c,
725
+ dsn: t,
726
+ environment: l || "production",
727
+ ignoreErrors: [...o || [], /dynamically imported module/],
728
+ integrations: [
729
+ oe.reactRouterV6BrowserTracingIntegration({
730
+ createRoutesFromChildren: wr,
731
+ matchRoutes: Sr,
732
+ useEffect: M,
733
+ useLocation: le,
734
+ useNavigationType: Or
735
+ }),
736
+ ...n || []
737
+ ],
738
+ replaysOnErrorSampleRate: p || 1,
739
+ replaysSessionSampleRate: s || 0.1,
740
+ tracePropagationTargets: h,
741
+ tracesSampleRate: i || 1
742
+ });
743
+ }, [
744
+ c,
745
+ t,
746
+ l,
747
+ o,
748
+ n,
749
+ p,
750
+ s,
751
+ h,
752
+ i
753
+ ]), null), ct = ({ IMaskMixin: t, ...n }) => {
754
+ const i = ue(
754
755
  // eslint-disable-next-line react/jsx-props-no-spreading
755
- () => t(({ TextField: s, ...p }) => /* @__PURE__ */ P.jsx(s, { ...p })),
756
+ () => t(({ TextField: s, ...p }) => /* @__PURE__ */ k.jsx(s, { ...p })),
756
757
  [t]
757
758
  );
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();
759
+ return /* @__PURE__ */ k.jsx(i, { ...n });
760
+ }, ft = ({ accessToken: t }) => (M(() => {
761
+ t && (kr.accessToken = t);
770
762
  }, [t]), null);
771
- var ze = { exports: {} };
763
+ var Ve = { exports: {} };
772
764
  (function(t, n) {
773
765
  (function(i, s) {
774
766
  t.exports = s();
775
767
  })(Mr, function() {
776
768
  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" };
777
- return function(s, p, g) {
769
+ return function(s, p, h) {
778
770
  var o = p.prototype, c = o.format;
779
- g.en.formats = i, o.format = function(l) {
771
+ h.en.formats = i, o.format = function(l) {
780
772
  l === void 0 && (l = "YYYY-MM-DDTHH:mm:ssZ");
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);
773
+ var g = this.$locale().formats, y = function(C, T) {
774
+ return C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(x, j, S) {
775
+ var _ = S && S.toUpperCase();
776
+ return j || T[S] || i[S] || T[_].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(D, R, L) {
777
+ return R || L.slice(1);
786
778
  });
787
779
  });
788
- }(l, h === void 0 ? {} : h);
780
+ }(l, g === void 0 ? {} : g);
789
781
  return c.call(this, y);
790
782
  };
791
783
  };
792
784
  });
793
- })(ze);
794
- var Ir = ze.exports;
795
- const Nr = /* @__PURE__ */ Lr(Ir);
796
- U.extend(Nr);
797
- const ct = ({ language: t }) => (Ne(() => {
785
+ })(Ve);
786
+ var Ir = Ve.exports;
787
+ const Nr = /* @__PURE__ */ Fr(Ir);
788
+ q.extend(Nr);
789
+ const dt = ({ language: t }) => (M(() => {
798
790
  var i;
799
791
  const n = t || ((i = navigator.language) == null ? void 0 : i.slice(0, 2)) || "en";
800
792
  if (n === "en") {
801
- import("./en-QSkYj0iy.js").then((s) => s.e).then(() => {
802
- U.locale(n);
793
+ import("./en-EkCf5JOJ.js").then((s) => s.e).then(() => {
794
+ q.locale(n);
803
795
  });
804
796
  return;
805
797
  }
806
- n === "fr" && import("./fr-TlWvAsWw.js").then((s) => s.f).then(() => {
807
- U.locale(n);
798
+ n === "fr" && import("./fr-ADtvg3rE.js").then((s) => s.f).then(() => {
799
+ q.locale(n);
808
800
  }).catch(() => {
809
- import("./en-QSkYj0iy.js").then((s) => s.e).then(() => {
810
- U.locale("en");
801
+ import("./en-EkCf5JOJ.js").then((s) => s.e).then(() => {
802
+ q.locale("en");
811
803
  });
812
804
  });
813
- }, [t]), null), ft = ({
805
+ }, [t]), null), vt = ({
814
806
  children: t,
815
807
  defaultQueriesOptions: n,
816
808
  defaultMutationsOptions: i
817
809
  }) => {
818
- const s = new kr({
810
+ const s = new Dr({
819
811
  defaultOptions: {
820
812
  mutations: {
821
813
  ...i
822
814
  },
823
815
  queries: {
824
- getNextPageParam: (p, g, o) => p.length + (o || 0),
816
+ getNextPageParam: (p, h, o) => p.length + (o || 0),
825
817
  refetchOnWindowFocus: !1,
826
818
  retry: 3,
827
819
  ...n
828
820
  }
829
821
  }
830
822
  });
831
- return /* @__PURE__ */ P.jsx(Dr, { client: s, children: t });
832
- }, dt = (t) => {
833
- const { unknownErrorTranslationKey: n = "error.unknownError" } = t || {}, i = jr(n), s = se(
834
- (g) => {
835
- var c, l, h, y, C, T, O, j, S;
836
- const { response: o } = g || {};
837
- 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;
823
+ return /* @__PURE__ */ k.jsx($r, { client: s, children: t });
824
+ }, pt = (t) => {
825
+ const { unknownErrorTranslationKey: n = "error.unknownError" } = t || {}, i = jr(n), s = ie(
826
+ (h) => {
827
+ var c, l, g, y, C, T, x, j, S;
828
+ const { response: o } = h || {};
829
+ return o != null && o.reason ? String(o.reason) : (c = o == null ? void 0 : o.data) != null && c.reason ? String(o.data.reason) : (l = o == null ? void 0 : o.data) != null && l.message ? String(o.data.message) : (y = (g = o == null ? void 0 : o.data) == null ? void 0 : g.detail) != null && y.length && Array.isArray((C = o == null ? void 0 : o.data) == null ? void 0 : C.detail) && ((x = (T = o == null ? void 0 : o.data) == null ? void 0 : T.detail[0]) != null && x.msg) && typeof ((S = (j = o == null ? void 0 : o.data) == null ? void 0 : j.detail[0]) == null ? void 0 : S.msg) == "string" ? String(o.data.detail[0].msg) : i;
838
830
  },
839
831
  [i]
840
832
  );
841
- return { getErrorCode: se((g) => {
842
- var c, l, h;
843
- const { response: o } = g || {};
844
- 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";
833
+ return { getErrorCode: ie((h) => {
834
+ var c, l, g;
835
+ const { response: o } = h || {};
836
+ 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";
845
837
  }, []), printError: s };
846
- }, pt = ({
838
+ }, mt = ({
847
839
  data: t,
848
840
  fetchNextPage: n,
849
841
  isFetchingNextPage: i,
850
842
  isInitialLoading: s,
851
843
  isLoading: p,
852
- enabled: g = !0
844
+ enabled: h = !0
853
845
  }) => {
854
- const o = se(
846
+ const o = ie(
855
847
  async (l) => {
856
- i || !g || await n({ pageParam: (l == null ? void 0 : l.pageParam) || l.visibleRowsCount });
848
+ i || !h || await n({ pageParam: (l == null ? void 0 : l.pageParam) || l.visibleRowsCount });
857
849
  },
858
- [g, n, i]
859
- ), c = le(() => {
850
+ [h, n, i]
851
+ ), c = ue(() => {
860
852
  if (t)
861
- return t.pages.reduce((l, h) => [...l, ...h], []);
853
+ return t.pages.reduce((l, g) => [...l, ...g], []);
862
854
  }, [t]);
863
855
  return {
864
856
  fetchNextPageOnRowsScrollEnd: o,
@@ -866,14 +858,14 @@ const ct = ({ language: t }) => (Ne(() => {
866
858
  loadingVariant: s ? "skeleton" : "linear",
867
859
  rows: c
868
860
  };
869
- }, vt = () => ({
861
+ }, gt = () => ({
870
862
  clearAuthenticationToken: () => {
871
- M.defaults.headers.common.Authorization = null;
863
+ $.defaults.headers.common.Authorization = null;
872
864
  },
873
865
  setAuthenticationToken: ({ tokenType: i, accessToken: s }) => {
874
- M.defaults.headers.common.Authorization = `${i} ${s}`;
866
+ $.defaults.headers.common.Authorization = `${i} ${s}`;
875
867
  }
876
- }), Wr = (t, n = "ll") => U(t).format(n), Vr = (t, n = "km") => {
868
+ }), Wr = (t, n = "ll") => q(t).format(n), Vr = (t, n = "km") => {
877
869
  const i = Number(t);
878
870
  return Number.isNaN(i) ? `0 ${n}` : `${i.toFixed(2)} ${n}`;
879
871
  }, zr = (t) => {
@@ -884,8 +876,8 @@ const ct = ({ language: t }) => (Ne(() => {
884
876
  return "";
885
877
  const i = zr(t), s = typeof t == "object" && "pathname" in t ? `${t.origin}${i}` : t;
886
878
  return typeof n == "number" ? `${s.replace("/files", `/thumbs/${n}`)}` : s;
887
- }, mt = () => {
888
- const { apiURL: t } = We(ce);
879
+ }, ht = () => {
880
+ const { apiURL: t } = Ne(ce);
889
881
  return {
890
882
  dateAdapter: Wr,
891
883
  distanceAdapter: Vr,
@@ -897,13 +889,13 @@ const ct = ({ language: t }) => (Ne(() => {
897
889
  s
898
890
  )
899
891
  };
900
- }, Ur = (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase(), Br = (t) => {
892
+ }, Ur = (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase(), qr = (t) => {
901
893
  const s = t.split("/").filter((p) => p.length > 0).map((p) => p.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((l) => l.charAt(0).toUpperCase() + l.slice(1)).join("")).join("");
902
894
  return s.charAt(0).toLowerCase() + s.slice(1);
903
- }, Gr = (t, n, i) => {
904
- const s = Br(n), p = Ur(i);
895
+ }, Br = (t, n, i) => {
896
+ const s = qr(n), p = Ur(i);
905
897
  return `${s}${p}`;
906
- }, qr = (t) => {
898
+ }, Gr = (t) => {
907
899
  if (t)
908
900
  return (t == null ? void 0 : t.reduce((n, i) => (n[i] = {
909
901
  query: {
@@ -912,7 +904,7 @@ const ct = ({ language: t }) => (Ne(() => {
912
904
  useQuery: !0
913
905
  }
914
906
  }, n), {})) || {};
915
- }, gt = (t) => {
907
+ }, yt = (t) => {
916
908
  const { input: n = "./openapi.json", operationsToGenerateInfiniteQueryHook: i = void 0 } = t || {};
917
909
  return {
918
910
  api: {
@@ -933,8 +925,8 @@ const ct = ({ language: t }) => (Ne(() => {
933
925
  name: "axiosCustomInstance",
934
926
  path: `${__dirname}/config/orval/mutator/axiosCustomInstance.ts`
935
927
  },
936
- operationName: Gr,
937
- ...(i == null ? void 0 : i.length) && { operations: qr(i) },
928
+ operationName: Br,
929
+ ...(i == null ? void 0 : i.length) && { operations: Gr(i) },
938
930
  query: {
939
931
  useQuery: !0
940
932
  }
@@ -946,23 +938,23 @@ const ct = ({ language: t }) => (Ne(() => {
946
938
  };
947
939
  };
948
940
  export {
949
- nt as G,
950
- ot as I,
951
- ut as M,
952
- ft as Q,
953
- tt as R,
954
- it as a,
955
- st as b,
941
+ ot as G,
942
+ st as I,
943
+ ct as M,
944
+ vt as Q,
945
+ at as R,
946
+ ut as a,
947
+ lt as b,
956
948
  Mr as c,
957
- lt as d,
958
- ct as e,
959
- at as f,
960
- pt as g,
961
- vt as h,
962
- mt as i,
963
- gt as j,
949
+ ft as d,
950
+ dt as e,
951
+ it as f,
952
+ mt as g,
953
+ gt as h,
954
+ ht as i,
955
+ yt as j,
964
956
  Wr as k,
965
957
  Vr as l,
966
958
  ce as m,
967
- dt as u
959
+ pt as u
968
960
  };