@tracktor/shared-module 2.4.0 → 2.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -1,5 +1,5 @@
1
- import Ye, { createContext as gt, useMemo as le, useContext as D, useState as We, useRef as mt, useEffect as z, Suspense as ht, useCallback as ee } from "react";
2
- var ce = { exports: {} }, G = {};
1
+ import Ye, { createContext as gt, useMemo as fe, useContext as D, useState as We, useRef as mt, useEffect as V, Suspense as ht, useCallback as te } from "react";
2
+ var le = { exports: {} }, B = {};
3
3
  /**
4
4
  * @license React
5
5
  * react-jsx-runtime.production.min.js
@@ -9,19 +9,19 @@ var ce = { exports: {} }, G = {};
9
9
  * This source code is licensed under the MIT license found in the
10
10
  * LICENSE file in the root directory of this source tree.
11
11
  */
12
- var Fe;
12
+ var Le;
13
13
  function yt() {
14
- if (Fe) return G;
15
- Fe = 1;
16
- var t = Ye, n = Symbol.for("react.element"), o = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, i = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, f = { key: !0, ref: !0, __self: !0, __source: !0 };
14
+ if (Le) return B;
15
+ Le = 1;
16
+ var t = Ye, n = Symbol.for("react.element"), o = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, a = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, f = { key: !0, ref: !0, __self: !0, __source: !0 };
17
17
  function l(d, c, g) {
18
- var y, w = {}, R = null, u = null;
19
- g !== void 0 && (R = "" + g), c.key !== void 0 && (R = "" + c.key), c.ref !== void 0 && (u = c.ref);
18
+ var y, w = {}, p = null, u = null;
19
+ g !== void 0 && (p = "" + g), c.key !== void 0 && (p = "" + c.key), c.ref !== void 0 && (u = c.ref);
20
20
  for (y in c) s.call(c, y) && !f.hasOwnProperty(y) && (w[y] = c[y]);
21
21
  if (d && d.defaultProps) for (y in c = d.defaultProps, c) w[y] === void 0 && (w[y] = c[y]);
22
- return { $$typeof: n, type: d, key: R, ref: u, props: w, _owner: i.current };
22
+ return { $$typeof: n, type: d, key: p, ref: u, props: w, _owner: a.current };
23
23
  }
24
- return G.Fragment = o, G.jsx = l, G.jsxs = l, G;
24
+ return B.Fragment = o, B.jsx = l, B.jsxs = l, B;
25
25
  }
26
26
  var Q = {};
27
27
  /**
@@ -33,51 +33,51 @@ var Q = {};
33
33
  * This source code is licensed under the MIT license found in the
34
34
  * LICENSE file in the root directory of this source tree.
35
35
  */
36
- var Le;
36
+ var Ne;
37
37
  function Et() {
38
- return Le || (Le = 1, process.env.NODE_ENV !== "production" && function() {
39
- var t = Ye, n = Symbol.for("react.element"), o = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), d = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), u = Symbol.for("react.offscreen"), j = Symbol.iterator, T = "@@iterator";
40
- function x(e) {
38
+ return Ne || (Ne = 1, process.env.NODE_ENV !== "production" && function() {
39
+ var t = Ye, n = Symbol.for("react.element"), o = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), d = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), u = Symbol.for("react.offscreen"), S = Symbol.iterator, T = "@@iterator";
40
+ function j(e) {
41
41
  if (e === null || typeof e != "object")
42
42
  return null;
43
- var r = j && e[j] || e[T];
43
+ var r = S && e[S] || e[T];
44
44
  return typeof r == "function" ? r : null;
45
45
  }
46
46
  var k = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
47
47
  function _(e) {
48
48
  {
49
- for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), v = 1; v < r; v++)
50
- a[v - 1] = arguments[v];
51
- L("error", e, a);
49
+ for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), v = 1; v < r; v++)
50
+ i[v - 1] = arguments[v];
51
+ L("error", e, i);
52
52
  }
53
53
  }
54
- function L(e, r, a) {
54
+ function L(e, r, i) {
55
55
  {
56
56
  var v = k.ReactDebugCurrentFrame, E = v.getStackAddendum();
57
- E !== "" && (r += "%s", a = a.concat([E]));
58
- var p = a.map(function(h) {
57
+ E !== "" && (r += "%s", i = i.concat([E]));
58
+ var R = i.map(function(h) {
59
59
  return String(h);
60
60
  });
61
- p.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, p);
61
+ R.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, R);
62
62
  }
63
63
  }
64
- var N = !1, Y = !1, b = !1, fe = !1, de = !1, U;
64
+ var N = !1, Y = !1, b = !1, de = !1, ve = !1, U;
65
65
  U = Symbol.for("react.module.reference");
66
- function Me(e) {
67
- return !!(typeof e == "string" || typeof e == "function" || e === s || e === f || de || e === i || e === g || e === y || fe || e === u || N || Y || b || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === w || e.$$typeof === l || e.$$typeof === d || e.$$typeof === c || // This needs to include all possible module reference object
66
+ function ze(e) {
67
+ return !!(typeof e == "string" || typeof e == "function" || e === s || e === f || ve || e === a || e === g || e === y || de || e === u || N || Y || b || typeof e == "object" && e !== null && (e.$$typeof === p || e.$$typeof === w || e.$$typeof === l || e.$$typeof === d || e.$$typeof === c || // This needs to include all possible module reference object
68
68
  // types supported by any Flight configuration anywhere since
69
69
  // we don't know which Flight build this will end up being used
70
70
  // with.
71
71
  e.$$typeof === U || e.getModuleId !== void 0));
72
72
  }
73
- function Ve(e, r, a) {
73
+ function Me(e, r, i) {
74
74
  var v = e.displayName;
75
75
  if (v)
76
76
  return v;
77
77
  var E = r.displayName || r.name || "";
78
- return E !== "" ? a + "(" + E + ")" : a;
78
+ return E !== "" ? i + "(" + E + ")" : i;
79
79
  }
80
- function ve(e) {
80
+ function ge(e) {
81
81
  return e.displayName || "Context";
82
82
  }
83
83
  function I(e) {
@@ -94,7 +94,7 @@ function Et() {
94
94
  return "Portal";
95
95
  case f:
96
96
  return "Profiler";
97
- case i:
97
+ case a:
98
98
  return "StrictMode";
99
99
  case g:
100
100
  return "Suspense";
@@ -105,19 +105,19 @@ function Et() {
105
105
  switch (e.$$typeof) {
106
106
  case d:
107
107
  var r = e;
108
- return ve(r) + ".Consumer";
108
+ return ge(r) + ".Consumer";
109
109
  case l:
110
- var a = e;
111
- return ve(a._context) + ".Provider";
110
+ var i = e;
111
+ return ge(i._context) + ".Provider";
112
112
  case c:
113
- return Ve(e, e.render, "ForwardRef");
113
+ return Me(e, e.render, "ForwardRef");
114
114
  case w:
115
115
  var v = e.displayName || null;
116
116
  return v !== null ? v : I(e.type) || "Memo";
117
- case R: {
118
- var E = e, p = E._payload, h = E._init;
117
+ case p: {
118
+ var E = e, R = E._payload, h = E._init;
119
119
  try {
120
- return I(h(p));
120
+ return I(h(R));
121
121
  } catch {
122
122
  return null;
123
123
  }
@@ -125,18 +125,18 @@ function Et() {
125
125
  }
126
126
  return null;
127
127
  }
128
- var W = Object.assign, q = 0, ge, me, he, ye, Ee, pe, Re;
129
- function we() {
128
+ var W = Object.assign, G = 0, me, he, ye, Ee, Re, pe, we;
129
+ function _e() {
130
130
  }
131
- we.__reactDisabledLog = !0;
132
- function ze() {
131
+ _e.__reactDisabledLog = !0;
132
+ function Ve() {
133
133
  {
134
- if (q === 0) {
135
- ge = console.log, me = console.info, he = console.warn, ye = console.error, Ee = console.group, pe = console.groupCollapsed, Re = console.groupEnd;
134
+ if (G === 0) {
135
+ me = console.log, he = console.info, ye = console.warn, Ee = console.error, Re = console.group, pe = console.groupCollapsed, we = console.groupEnd;
136
136
  var e = {
137
137
  configurable: !0,
138
138
  enumerable: !0,
139
- value: we,
139
+ value: _e,
140
140
  writable: !0
141
141
  };
142
142
  Object.defineProperties(console, {
@@ -149,12 +149,12 @@ function Et() {
149
149
  groupEnd: e
150
150
  });
151
151
  }
152
- q++;
152
+ G++;
153
153
  }
154
154
  }
155
155
  function Ue() {
156
156
  {
157
- if (q--, q === 0) {
157
+ if (G--, G === 0) {
158
158
  var e = {
159
159
  configurable: !0,
160
160
  enumerable: !0,
@@ -162,64 +162,64 @@ function Et() {
162
162
  };
163
163
  Object.defineProperties(console, {
164
164
  log: W({}, e, {
165
- value: ge
165
+ value: me
166
166
  }),
167
167
  info: W({}, e, {
168
- value: me
168
+ value: he
169
169
  }),
170
170
  warn: W({}, e, {
171
- value: he
171
+ value: ye
172
172
  }),
173
173
  error: W({}, e, {
174
- value: ye
174
+ value: Ee
175
175
  }),
176
176
  group: W({}, e, {
177
- value: Ee
177
+ value: Re
178
178
  }),
179
179
  groupCollapsed: W({}, e, {
180
180
  value: pe
181
181
  }),
182
182
  groupEnd: W({}, e, {
183
- value: Re
183
+ value: we
184
184
  })
185
185
  });
186
186
  }
187
- q < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
187
+ G < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
188
188
  }
189
189
  }
190
- var te = k.ReactCurrentDispatcher, re;
191
- function J(e, r, a) {
190
+ var re = k.ReactCurrentDispatcher, ne;
191
+ function J(e, r, i) {
192
192
  {
193
- if (re === void 0)
193
+ if (ne === void 0)
194
194
  try {
195
195
  throw Error();
196
196
  } catch (E) {
197
197
  var v = E.stack.trim().match(/\n( *(at )?)/);
198
- re = v && v[1] || "";
198
+ ne = v && v[1] || "";
199
199
  }
200
200
  return `
201
- ` + re + e;
201
+ ` + ne + e;
202
202
  }
203
203
  }
204
- var ne = !1, K;
204
+ var oe = !1, K;
205
205
  {
206
- var qe = typeof WeakMap == "function" ? WeakMap : Map;
207
- K = new qe();
206
+ var Ge = typeof WeakMap == "function" ? WeakMap : Map;
207
+ K = new Ge();
208
208
  }
209
- function _e(e, r) {
210
- if (!e || ne)
209
+ function Ce(e, r) {
210
+ if (!e || oe)
211
211
  return "";
212
212
  {
213
- var a = K.get(e);
214
- if (a !== void 0)
215
- return a;
213
+ var i = K.get(e);
214
+ if (i !== void 0)
215
+ return i;
216
216
  }
217
217
  var v;
218
- ne = !0;
218
+ oe = !0;
219
219
  var E = Error.prepareStackTrace;
220
220
  Error.prepareStackTrace = void 0;
221
- var p;
222
- p = te.current, te.current = null, ze();
221
+ var R;
222
+ R = re.current, re.current = null, Ve();
223
223
  try {
224
224
  if (r) {
225
225
  var h = function() {
@@ -255,14 +255,14 @@ function Et() {
255
255
  } catch ($) {
256
256
  if ($ && v && typeof $.stack == "string") {
257
257
  for (var m = $.stack.split(`
258
- `), S = v.stack.split(`
259
- `), C = m.length - 1, P = S.length - 1; C >= 1 && P >= 0 && m[C] !== S[P]; )
258
+ `), x = v.stack.split(`
259
+ `), C = m.length - 1, P = x.length - 1; C >= 1 && P >= 0 && m[C] !== x[P]; )
260
260
  P--;
261
261
  for (; C >= 1 && P >= 0; C--, P--)
262
- if (m[C] !== S[P]) {
262
+ if (m[C] !== x[P]) {
263
263
  if (C !== 1 || P !== 1)
264
264
  do
265
- if (C--, P--, P < 0 || m[C] !== S[P]) {
265
+ if (C--, P--, P < 0 || m[C] !== x[P]) {
266
266
  var O = `
267
267
  ` + m[C].replace(" at new ", " at ");
268
268
  return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && K.set(e, O), O;
@@ -272,23 +272,23 @@ function Et() {
272
272
  }
273
273
  }
274
274
  } finally {
275
- ne = !1, te.current = p, Ue(), Error.prepareStackTrace = E;
275
+ oe = !1, re.current = R, Ue(), Error.prepareStackTrace = E;
276
276
  }
277
- var V = e ? e.displayName || e.name : "", $e = V ? J(V) : "";
278
- return typeof e == "function" && K.set(e, $e), $e;
277
+ var M = e ? e.displayName || e.name : "", Fe = M ? J(M) : "";
278
+ return typeof e == "function" && K.set(e, Fe), Fe;
279
279
  }
280
- function Be(e, r, a) {
281
- return _e(e, !1);
280
+ function qe(e, r, i) {
281
+ return Ce(e, !1);
282
282
  }
283
- function Ge(e) {
283
+ function Be(e) {
284
284
  var r = e.prototype;
285
285
  return !!(r && r.isReactComponent);
286
286
  }
287
- function X(e, r, a) {
287
+ function X(e, r, i) {
288
288
  if (e == null)
289
289
  return "";
290
290
  if (typeof e == "function")
291
- return _e(e, Ge(e));
291
+ return Ce(e, Be(e));
292
292
  if (typeof e == "string")
293
293
  return J(e);
294
294
  switch (e) {
@@ -300,77 +300,77 @@ function Et() {
300
300
  if (typeof e == "object")
301
301
  switch (e.$$typeof) {
302
302
  case c:
303
- return Be(e.render);
303
+ return qe(e.render);
304
304
  case w:
305
- return X(e.type, r, a);
306
- case R: {
307
- var v = e, E = v._payload, p = v._init;
305
+ return X(e.type, r, i);
306
+ case p: {
307
+ var v = e, E = v._payload, R = v._init;
308
308
  try {
309
- return X(p(E), r, a);
309
+ return X(R(E), r, i);
310
310
  } catch {
311
311
  }
312
312
  }
313
313
  }
314
314
  return "";
315
315
  }
316
- var H = Object.prototype.hasOwnProperty, Ce = {}, be = k.ReactDebugCurrentFrame;
316
+ var H = Object.prototype.hasOwnProperty, be = {}, Pe = k.ReactDebugCurrentFrame;
317
317
  function Z(e) {
318
318
  if (e) {
319
- var r = e._owner, a = X(e.type, e._source, r ? r.type : null);
320
- be.setExtraStackFrame(a);
319
+ var r = e._owner, i = X(e.type, e._source, r ? r.type : null);
320
+ Pe.setExtraStackFrame(i);
321
321
  } else
322
- be.setExtraStackFrame(null);
322
+ Pe.setExtraStackFrame(null);
323
323
  }
324
- function Qe(e, r, a, v, E) {
324
+ function Qe(e, r, i, v, E) {
325
325
  {
326
- var p = Function.call.bind(H);
326
+ var R = Function.call.bind(H);
327
327
  for (var h in e)
328
- if (p(e, h)) {
328
+ if (R(e, h)) {
329
329
  var m = void 0;
330
330
  try {
331
331
  if (typeof e[h] != "function") {
332
- var S = Error((v || "React class") + ": " + a + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
333
- throw S.name = "Invariant Violation", S;
332
+ var x = Error((v || "React class") + ": " + i + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
333
+ throw x.name = "Invariant Violation", x;
334
334
  }
335
- m = e[h](r, h, v, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
335
+ m = e[h](r, h, v, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
336
336
  } catch (C) {
337
337
  m = C;
338
338
  }
339
- m && !(m instanceof Error) && (Z(E), _("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", v || "React class", a, h, typeof m), Z(null)), m instanceof Error && !(m.message in Ce) && (Ce[m.message] = !0, Z(E), _("Failed %s type: %s", a, m.message), Z(null));
339
+ m && !(m instanceof Error) && (Z(E), _("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", v || "React class", i, h, typeof m), Z(null)), m instanceof Error && !(m.message in be) && (be[m.message] = !0, Z(E), _("Failed %s type: %s", i, m.message), Z(null));
340
340
  }
341
341
  }
342
342
  }
343
343
  var Je = Array.isArray;
344
- function oe(e) {
344
+ function ae(e) {
345
345
  return Je(e);
346
346
  }
347
347
  function Ke(e) {
348
348
  {
349
- var r = typeof Symbol == "function" && Symbol.toStringTag, a = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
350
- return a;
349
+ var r = typeof Symbol == "function" && Symbol.toStringTag, i = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
350
+ return i;
351
351
  }
352
352
  }
353
353
  function Xe(e) {
354
354
  try {
355
- return Pe(e), !1;
355
+ return Se(e), !1;
356
356
  } catch {
357
357
  return !0;
358
358
  }
359
359
  }
360
- function Pe(e) {
360
+ function Se(e) {
361
361
  return "" + e;
362
362
  }
363
363
  function je(e) {
364
364
  if (Xe(e))
365
- return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ke(e)), Pe(e);
365
+ return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ke(e)), Se(e);
366
366
  }
367
- var B = k.ReactCurrentOwner, He = {
367
+ var q = k.ReactCurrentOwner, He = {
368
368
  key: !0,
369
369
  ref: !0,
370
370
  __self: !0,
371
371
  __source: !0
372
- }, xe, Se, ae;
373
- ae = {};
372
+ }, xe, Te, ie;
373
+ ie = {};
374
374
  function Ze(e) {
375
375
  if (H.call(e, "ref")) {
376
376
  var r = Object.getOwnPropertyDescriptor(e, "ref").get;
@@ -388,44 +388,44 @@ function Et() {
388
388
  return e.key !== void 0;
389
389
  }
390
390
  function tt(e, r) {
391
- if (typeof e.ref == "string" && B.current && r && B.current.stateNode !== r) {
392
- var a = I(B.current.type);
393
- ae[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', I(B.current.type), e.ref), ae[a] = !0);
391
+ if (typeof e.ref == "string" && q.current && r && q.current.stateNode !== r) {
392
+ var i = I(q.current.type);
393
+ ie[i] || (_('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', I(q.current.type), e.ref), ie[i] = !0);
394
394
  }
395
395
  }
396
396
  function rt(e, r) {
397
397
  {
398
- var a = function() {
398
+ var i = function() {
399
399
  xe || (xe = !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));
400
400
  };
401
- a.isReactWarning = !0, Object.defineProperty(e, "key", {
402
- get: a,
401
+ i.isReactWarning = !0, Object.defineProperty(e, "key", {
402
+ get: i,
403
403
  configurable: !0
404
404
  });
405
405
  }
406
406
  }
407
407
  function nt(e, r) {
408
408
  {
409
- var a = function() {
410
- Se || (Se = !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));
409
+ var i = function() {
410
+ Te || (Te = !0, _("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
411
411
  };
412
- a.isReactWarning = !0, Object.defineProperty(e, "ref", {
413
- get: a,
412
+ i.isReactWarning = !0, Object.defineProperty(e, "ref", {
413
+ get: i,
414
414
  configurable: !0
415
415
  });
416
416
  }
417
417
  }
418
- var ot = function(e, r, a, v, E, p, h) {
418
+ var ot = function(e, r, i, v, E, R, h) {
419
419
  var m = {
420
420
  // This tag allows us to uniquely identify this as a React Element
421
421
  $$typeof: n,
422
422
  // Built-in properties that belong on the element
423
423
  type: e,
424
424
  key: r,
425
- ref: a,
425
+ ref: i,
426
426
  props: h,
427
427
  // Record the component responsible for creating this element.
428
- _owner: p
428
+ _owner: R
429
429
  };
430
430
  return m._store = {}, Object.defineProperty(m._store, "validated", {
431
431
  configurable: !1,
@@ -444,41 +444,41 @@ function Et() {
444
444
  value: E
445
445
  }), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
446
446
  };
447
- function at(e, r, a, v, E) {
447
+ function at(e, r, i, v, E) {
448
448
  {
449
- var p, h = {}, m = null, S = null;
450
- a !== void 0 && (je(a), m = "" + a), et(r) && (je(r.key), m = "" + r.key), Ze(r) && (S = r.ref, tt(r, E));
451
- for (p in r)
452
- H.call(r, p) && !He.hasOwnProperty(p) && (h[p] = r[p]);
449
+ var R, h = {}, m = null, x = null;
450
+ i !== void 0 && (je(i), m = "" + i), et(r) && (je(r.key), m = "" + r.key), Ze(r) && (x = r.ref, tt(r, E));
451
+ for (R in r)
452
+ H.call(r, R) && !He.hasOwnProperty(R) && (h[R] = r[R]);
453
453
  if (e && e.defaultProps) {
454
454
  var C = e.defaultProps;
455
- for (p in C)
456
- h[p] === void 0 && (h[p] = C[p]);
455
+ for (R in C)
456
+ h[R] === void 0 && (h[R] = C[R]);
457
457
  }
458
- if (m || S) {
458
+ if (m || x) {
459
459
  var P = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
460
- m && rt(h, P), S && nt(h, P);
460
+ m && rt(h, P), x && nt(h, P);
461
461
  }
462
- return ot(e, m, S, E, v, B.current, h);
462
+ return ot(e, m, x, E, v, q.current, h);
463
463
  }
464
464
  }
465
- var ie = k.ReactCurrentOwner, Te = k.ReactDebugCurrentFrame;
466
- function M(e) {
465
+ var se = k.ReactCurrentOwner, Oe = k.ReactDebugCurrentFrame;
466
+ function z(e) {
467
467
  if (e) {
468
- var r = e._owner, a = X(e.type, e._source, r ? r.type : null);
469
- Te.setExtraStackFrame(a);
468
+ var r = e._owner, i = X(e.type, e._source, r ? r.type : null);
469
+ Oe.setExtraStackFrame(i);
470
470
  } else
471
- Te.setExtraStackFrame(null);
471
+ Oe.setExtraStackFrame(null);
472
472
  }
473
- var se;
474
- se = !1;
475
- function ue(e) {
473
+ var ue;
474
+ ue = !1;
475
+ function ce(e) {
476
476
  return typeof e == "object" && e !== null && e.$$typeof === n;
477
477
  }
478
- function Oe() {
478
+ function Ae() {
479
479
  {
480
- if (ie.current) {
481
- var e = I(ie.current.type);
480
+ if (se.current) {
481
+ var e = I(se.current.type);
482
482
  if (e)
483
483
  return `
484
484
 
@@ -490,48 +490,48 @@ Check the render method of \`` + e + "`.";
490
490
  function it(e) {
491
491
  return "";
492
492
  }
493
- var Ae = {};
493
+ var ke = {};
494
494
  function st(e) {
495
495
  {
496
- var r = Oe();
496
+ var r = Ae();
497
497
  if (!r) {
498
- var a = typeof e == "string" ? e : e.displayName || e.name;
499
- a && (r = `
498
+ var i = typeof e == "string" ? e : e.displayName || e.name;
499
+ i && (r = `
500
500
 
501
- Check the top-level render call using <` + a + ">.");
501
+ Check the top-level render call using <` + i + ">.");
502
502
  }
503
503
  return r;
504
504
  }
505
505
  }
506
- function ke(e, r) {
506
+ function De(e, r) {
507
507
  {
508
508
  if (!e._store || e._store.validated || e.key != null)
509
509
  return;
510
510
  e._store.validated = !0;
511
- var a = st(r);
512
- if (Ae[a])
511
+ var i = st(r);
512
+ if (ke[i])
513
513
  return;
514
- Ae[a] = !0;
514
+ ke[i] = !0;
515
515
  var v = "";
516
- e && e._owner && e._owner !== ie.current && (v = " It was passed a child from " + I(e._owner.type) + "."), M(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, v), M(null);
516
+ e && e._owner && e._owner !== se.current && (v = " It was passed a child from " + I(e._owner.type) + "."), z(e), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, v), z(null);
517
517
  }
518
518
  }
519
- function De(e, r) {
519
+ function Ie(e, r) {
520
520
  {
521
521
  if (typeof e != "object")
522
522
  return;
523
- if (oe(e))
524
- for (var a = 0; a < e.length; a++) {
525
- var v = e[a];
526
- ue(v) && ke(v, r);
523
+ if (ae(e))
524
+ for (var i = 0; i < e.length; i++) {
525
+ var v = e[i];
526
+ ce(v) && De(v, r);
527
527
  }
528
- else if (ue(e))
528
+ else if (ce(e))
529
529
  e._store && (e._store.validated = !0);
530
530
  else if (e) {
531
- var E = x(e);
531
+ var E = j(e);
532
532
  if (typeof E == "function" && E !== e.entries)
533
- for (var p = E.call(e), h; !(h = p.next()).done; )
534
- ue(h.value) && ke(h.value, r);
533
+ for (var R = E.call(e), h; !(h = R.next()).done; )
534
+ ce(h.value) && De(h.value, r);
535
535
  }
536
536
  }
537
537
  }
@@ -540,20 +540,20 @@ Check the top-level render call using <` + a + ">.");
540
540
  var r = e.type;
541
541
  if (r == null || typeof r == "string")
542
542
  return;
543
- var a;
543
+ var i;
544
544
  if (typeof r == "function")
545
- a = r.propTypes;
545
+ i = r.propTypes;
546
546
  else if (typeof r == "object" && (r.$$typeof === c || // Note: Memo only checks outer props here.
547
547
  // Inner props are checked in the reconciler.
548
548
  r.$$typeof === w))
549
- a = r.propTypes;
549
+ i = r.propTypes;
550
550
  else
551
551
  return;
552
- if (a) {
552
+ if (i) {
553
553
  var v = I(r);
554
- Qe(a, e.props, "prop", v, e);
555
- } else if (r.PropTypes !== void 0 && !se) {
556
- se = !0;
554
+ Qe(i, e.props, "prop", v, e);
555
+ } else if (r.PropTypes !== void 0 && !ue) {
556
+ ue = !0;
557
557
  var E = I(r);
558
558
  _("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", E || "Unknown");
559
559
  }
@@ -562,60 +562,60 @@ Check the top-level render call using <` + a + ">.");
562
562
  }
563
563
  function ct(e) {
564
564
  {
565
- for (var r = Object.keys(e.props), a = 0; a < r.length; a++) {
566
- var v = r[a];
565
+ for (var r = Object.keys(e.props), i = 0; i < r.length; i++) {
566
+ var v = r[i];
567
567
  if (v !== "children" && v !== "key") {
568
- M(e), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), M(null);
568
+ z(e), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), z(null);
569
569
  break;
570
570
  }
571
571
  }
572
- e.ref !== null && (M(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), M(null));
572
+ e.ref !== null && (z(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), z(null));
573
573
  }
574
574
  }
575
- function Ie(e, r, a, v, E, p) {
575
+ function $e(e, r, i, v, E, R) {
576
576
  {
577
- var h = Me(e);
577
+ var h = ze(e);
578
578
  if (!h) {
579
579
  var m = "";
580
580
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (m += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
581
- var S = it();
582
- S ? m += S : m += Oe();
581
+ var x = it();
582
+ x ? m += x : m += Ae();
583
583
  var C;
584
- e === null ? C = "null" : oe(e) ? C = "array" : e !== void 0 && e.$$typeof === n ? (C = "<" + (I(e.type) || "Unknown") + " />", m = " Did you accidentally export a JSX literal instead of a component?") : C = 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", C, m);
584
+ e === null ? C = "null" : ae(e) ? C = "array" : e !== void 0 && e.$$typeof === n ? (C = "<" + (I(e.type) || "Unknown") + " />", m = " Did you accidentally export a JSX literal instead of a component?") : C = 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", C, m);
585
585
  }
586
- var P = at(e, r, a, E, p);
586
+ var P = at(e, r, i, E, R);
587
587
  if (P == null)
588
588
  return P;
589
589
  if (h) {
590
590
  var O = r.children;
591
591
  if (O !== void 0)
592
592
  if (v)
593
- if (oe(O)) {
594
- for (var V = 0; V < O.length; V++)
595
- De(O[V], e);
593
+ if (ae(O)) {
594
+ for (var M = 0; M < O.length; M++)
595
+ Ie(O[M], e);
596
596
  Object.freeze && Object.freeze(O);
597
597
  } else
598
598
  _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
599
599
  else
600
- De(O, e);
600
+ Ie(O, e);
601
601
  }
602
602
  return e === s ? ct(P) : ut(P), P;
603
603
  }
604
604
  }
605
- function lt(e, r, a) {
606
- return Ie(e, r, a, !0);
605
+ function lt(e, r, i) {
606
+ return $e(e, r, i, !0);
607
607
  }
608
- function ft(e, r, a) {
609
- return Ie(e, r, a, !1);
608
+ function ft(e, r, i) {
609
+ return $e(e, r, i, !1);
610
610
  }
611
611
  var dt = ft, vt = lt;
612
612
  Q.Fragment = s, Q.jsx = dt, Q.jsxs = vt;
613
613
  }()), Q;
614
614
  }
615
- process.env.NODE_ENV === "production" ? ce.exports = yt() : ce.exports = Et();
616
- var F = ce.exports;
615
+ process.env.NODE_ENV === "production" ? le.exports = yt() : le.exports = Et();
616
+ var F = le.exports;
617
617
  const A = gt({}), At = ({ children: t, apiURL: n, libraries: o }) => {
618
- const s = le(
618
+ const s = fe(
619
619
  () => ({
620
620
  apiURL: n,
621
621
  libraries: o
@@ -628,33 +628,33 @@ const A = gt({}), At = ({ children: t, apiURL: n, libraries: o }) => {
628
628
  isLogged: n,
629
629
  loginPath: o = "/login",
630
630
  localStorageKey: s = "user",
631
- redirect401Path: i = "/login",
631
+ redirect401Path: a = "/login",
632
632
  ...f
633
633
  }) => {
634
634
  var _, L, N, Y;
635
635
  const { libraries: l } = D(A), d = (f == null ? void 0 : f.reactRouter) || (l == null ? void 0 : l.reactRouter), c = (f == null ? void 0 : f.axios) || (l == null ? void 0 : l.axios);
636
636
  if (!d)
637
637
  throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
638
- const [g, y] = We(null), { useLocation: w, Navigate: R, Outlet: u } = d, j = w(), T = mt(!1), x = typeof n == "function" ? n() : !!n, k = typeof x == "boolean" ? x : x == null ? void 0 : x.isLogged;
639
- return z(() => {
638
+ const [g, y] = We(null), { useLocation: w, Navigate: p, Outlet: u } = d, S = w(), T = mt(!1), j = typeof n == "function" ? n() : !!n, k = typeof j == "boolean" ? j : j == null ? void 0 : j.isLogged;
639
+ return V(() => {
640
640
  T.current || (T.current = !0, c.interceptors.response.use(
641
641
  (b) => b,
642
642
  async (b) => {
643
643
  var U;
644
- return typeof b == "object" && b && "response" in b && b.response && typeof b.response == "object" && "status" in b.response && b.response && typeof b.response == "object" && "status" in b.response && ((U = b == null ? void 0 : b.response) == null ? void 0 : U.status) === 401 && (c.defaults.headers.common.Authorization = null, localStorage.removeItem(s), y(i)), Promise.reject(b);
644
+ return typeof b == "object" && b && "response" in b && b.response && typeof b.response == "object" && "status" in b.response && b.response && typeof b.response == "object" && "status" in b.response && ((U = b == null ? void 0 : b.response) == null ? void 0 : U.status) === 401 && (c.defaults.headers.common.Authorization = null, localStorage.removeItem(s), y(a)), Promise.reject(b);
645
645
  }
646
646
  ));
647
- }, [c.defaults.headers.common, c.interceptors.response, s, i]), k && !g ? /* @__PURE__ */ F.jsx(ht, { fallback: t, children: (L = (_ = j.state) == null ? void 0 : _.from) != null && L.state && ((Y = (N = j.state) == null ? void 0 : N.from) == null ? void 0 : Y.pathname) === o ? /* @__PURE__ */ F.jsx(R, { to: j.state.from.state.from.pathname + j.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ F.jsx(u, {}) }) : /* @__PURE__ */ F.jsx(R, { to: o + j.search, state: { from: j }, replace: !0 });
647
+ }, [c.defaults.headers.common, c.interceptors.response, s, a]), k && !g ? /* @__PURE__ */ F.jsx(ht, { fallback: t, children: (L = (_ = S.state) == null ? void 0 : _.from) != null && L.state && ((Y = (N = S.state) == null ? void 0 : N.from) == null ? void 0 : Y.pathname) === o ? /* @__PURE__ */ F.jsx(p, { to: S.state.from.state.from.pathname + S.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ F.jsx(u, {}) }) : /* @__PURE__ */ F.jsx(p, { to: o + S.search, state: { from: S }, replace: !0 });
648
648
  }, Dt = ({ data: t, ...n }) => {
649
- const { libraries: o } = D(A), s = (n == null ? void 0 : n.reactRouter) || (o == null ? void 0 : o.reactRouter), i = (n == null ? void 0 : n.gtm) || (o == null ? void 0 : o.gtm);
649
+ const { libraries: o } = D(A), s = (n == null ? void 0 : n.reactRouter) || (o == null ? void 0 : o.reactRouter), a = (n == null ? void 0 : n.gtm) || (o == null ? void 0 : o.gtm);
650
650
  if (!s)
651
651
  throw new Error(
652
652
  "React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView."
653
653
  );
654
- if (!i)
654
+ if (!a)
655
655
  throw new Error("GTM is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView.");
656
- const { useGoogleTagManager: f } = i, { useLocation: l, Outlet: d } = s, { pathname: c } = l(), { sendEvent: g } = f();
657
- return z(() => {
656
+ const { useGoogleTagManager: f } = a, { useLocation: l, Outlet: d } = s, { pathname: c } = l(), { sendEvent: g } = f();
657
+ return V(() => {
658
658
  g({
659
659
  event: "pageView",
660
660
  pathname: c,
@@ -666,18 +666,18 @@ const A = gt({}), At = ({ children: t, apiURL: n, libraries: o }) => {
666
666
  userLocalStorageKey: n = "user",
667
667
  tokenKey: o = "accessToken",
668
668
  postContentType: s = "application/json",
669
- ...i
669
+ ...a
670
670
  }) => {
671
- const { apiURL: f = i.apiURL, libraries: l } = D(A), d = (i == null ? void 0 : i.axios) || (l == null ? void 0 : l.axios);
671
+ const { apiURL: f = a.apiURL, libraries: l } = D(A), d = (a == null ? void 0 : a.axios) || (l == null ? void 0 : l.axios);
672
672
  if (!d)
673
673
  throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
674
674
  if (!(d != null && d.defaults))
675
675
  return null;
676
- const c = localStorage.getItem(n), g = c ? JSON.parse(c) : null, y = g != null && g[t] ? g[t] : null, w = g != null && g[o] ? g[o] : null, R = c ? `${y} ${w}` : null;
677
- return d.defaults.baseURL = f, d.defaults.headers.post["Content-Type"] = s, R && (d.defaults.headers.common.Authorization = R), null;
676
+ const c = localStorage.getItem(n), g = c ? JSON.parse(c) : null, y = g != null && g[t] ? g[t] : null, w = g != null && g[o] ? g[o] : null, p = c ? `${y} ${w}` : null;
677
+ return d.defaults.baseURL = f, d.defaults.headers.post["Content-Type"] = s, p && (d.defaults.headers.common.Authorization = p), null;
678
678
  }, $t = ({ debug: t, resources: n, ...o }) => {
679
- const { libraries: s } = D(A), i = (o == null ? void 0 : o.i18) || (s == null ? void 0 : s.i18), { i18next: f, initReactI18next: l, languageDetector: d } = i || {};
680
- if (!i)
679
+ const { libraries: s } = D(A), a = (o == null ? void 0 : o.i18) || (s == null ? void 0 : s.i18), { i18next: f, initReactI18next: l, languageDetector: d } = a || {};
680
+ if (!a)
681
681
  throw new Error("i18 is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
682
682
  return f != null && f.isInitialized || (f.use(d).use(l).init({
683
683
  debug: t,
@@ -702,21 +702,21 @@ const A = gt({}), At = ({ children: t, apiURL: n, libraries: o }) => {
702
702
  integrations: n,
703
703
  tracesSampleRate: o,
704
704
  replaysSessionSampleRate: s,
705
- replaysOnErrorSampleRate: i,
705
+ replaysOnErrorSampleRate: a,
706
706
  tracePropagationTargets: f,
707
707
  ignoreErrors: l,
708
708
  debug: d,
709
709
  environment: c,
710
710
  ...g
711
711
  }) => {
712
- const { libraries: y } = D(A), w = (g == null ? void 0 : g.sentry) || (y == null ? void 0 : y.sentry), R = (g == null ? void 0 : g.reactRouter) || (y == null ? void 0 : y.reactRouter);
712
+ const { libraries: y } = D(A), w = (g == null ? void 0 : g.sentry) || (y == null ? void 0 : y.sentry), p = (g == null ? void 0 : g.reactRouter) || (y == null ? void 0 : y.reactRouter);
713
713
  if (!w)
714
714
  throw new Error("Sentry is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
715
- if (!R)
715
+ if (!p)
716
716
  throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
717
717
  if (w.isInitialized())
718
718
  return null;
719
- const { createRoutesFromChildren: u, matchRoutes: j, useLocation: T, useNavigationType: x } = R;
719
+ const { createRoutesFromChildren: u, matchRoutes: S, useLocation: T, useNavigationType: j } = p;
720
720
  return (d || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && w.init({
721
721
  debug: d,
722
722
  dsn: t,
@@ -725,22 +725,22 @@ const A = gt({}), At = ({ children: t, apiURL: n, libraries: o }) => {
725
725
  integrations: [
726
726
  w.reactRouterV6BrowserTracingIntegration({
727
727
  createRoutesFromChildren: u,
728
- matchRoutes: j,
729
- useEffect: z,
728
+ matchRoutes: S,
729
+ useEffect: V,
730
730
  useLocation: T,
731
- useNavigationType: x
731
+ useNavigationType: j
732
732
  }),
733
733
  ...n || []
734
734
  ],
735
- replaysOnErrorSampleRate: i || 1,
735
+ replaysOnErrorSampleRate: a || 1,
736
736
  replaysSessionSampleRate: s || 0.1,
737
737
  tracePropagationTargets: f,
738
738
  tracesSampleRate: o || 1
739
739
  }), null;
740
740
  }, Lt = ({ IMaskMixin: t, ...n }) => {
741
- const o = le(
741
+ const o = fe(
742
742
  // eslint-disable-next-line react/jsx-props-no-spreading
743
- () => t(({ TextField: s, ...i }) => /* @__PURE__ */ F.jsx(s, { ...i })),
743
+ () => t(({ TextField: s, ...a }) => /* @__PURE__ */ F.jsx(s, { ...a })),
744
744
  [t]
745
745
  );
746
746
  return /* @__PURE__ */ F.jsx(o, { ...n });
@@ -750,35 +750,35 @@ const A = gt({}), At = ({ children: t, apiURL: n, libraries: o }) => {
750
750
  throw new Error("Mapbox is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
751
751
  return t && (s.accessToken = t), null;
752
752
  }, Yt = ({ language: t, ...n }) => {
753
- const { libraries: o } = D(A), s = (n == null ? void 0 : n.dayjs) || (o == null ? void 0 : o.dayjs), i = (n == null ? void 0 : n.plugin) || (o == null ? void 0 : o.dayjsPlugin);
753
+ const { libraries: o } = D(A), s = (n == null ? void 0 : n.dayjs) || (o == null ? void 0 : o.dayjs), a = (n == null ? void 0 : n.plugin) || (o == null ? void 0 : o.dayjsPlugin);
754
754
  if (!s)
755
755
  throw new Error(
756
756
  "Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props of InitializeDaysJSConfig."
757
757
  );
758
- return z(() => {
758
+ return V(() => {
759
759
  (async () => {
760
760
  var d;
761
761
  const l = t || ((d = navigator.language) == null ? void 0 : d.slice(0, 2)) || "en";
762
- i && i.forEach((c) => {
762
+ a && a.forEach((c) => {
763
763
  c && s.extend(c);
764
764
  }), await import("dayjs/locale/en"), await import("dayjs/locale/fr"), s.locale(l);
765
765
  })().then();
766
- }, [s, i, t]), null;
767
- }, pt = (t) => t && typeof t == "function", Rt = (t) => t && typeof t == "function", Wt = ({
766
+ }, [s, a, t]), null;
767
+ }, Rt = (t) => t && typeof t == "function", pt = (t) => t && typeof t == "function", Wt = ({
768
768
  children: t,
769
769
  defaultQueriesOptions: n,
770
770
  defaultMutationsOptions: o,
771
771
  ...s
772
772
  }) => {
773
773
  var c, g;
774
- const { libraries: i } = D(A), f = (s == null ? void 0 : s.QueryClient) || ((c = i == null ? void 0 : i.reactQuery) == null ? void 0 : c.QueryClient), l = (s == null ? void 0 : s.QueryClientProvider) || ((g = i == null ? void 0 : i.reactQuery) == null ? void 0 : g.QueryClientProvider);
774
+ const { libraries: a } = D(A), f = (s == null ? void 0 : s.QueryClient) || ((c = a == null ? void 0 : a.reactQuery) == null ? void 0 : c.QueryClient), l = (s == null ? void 0 : s.QueryClientProvider) || ((g = a == null ? void 0 : a.reactQuery) == null ? void 0 : g.QueryClientProvider);
775
775
  if (!f)
776
776
  throw new Error("QueryClient is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
777
777
  if (!l)
778
778
  throw new Error("QueryClientProvider is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
779
- if (!pt(l))
779
+ if (!Rt(l))
780
780
  throw new Error("Provided QueryClientProvider dependencies are not valid.");
781
- if (!Rt(f))
781
+ if (!pt(f))
782
782
  throw new Error("Provided QueryClient dependencies are not valid.");
783
783
  const d = new f({
784
784
  defaultOptions: {
@@ -786,7 +786,7 @@ const A = gt({}), At = ({ children: t, apiURL: n, libraries: o }) => {
786
786
  ...o
787
787
  },
788
788
  queries: {
789
- getNextPageParam: (y, w, R) => y.length + (R || 0),
789
+ getNextPageParam: (y, w, p) => y.length + (p || 0),
790
790
  refetchOnWindowFocus: !1,
791
791
  retry: 3,
792
792
  ...n
@@ -794,49 +794,49 @@ const A = gt({}), At = ({ children: t, apiURL: n, libraries: o }) => {
794
794
  }
795
795
  });
796
796
  return /* @__PURE__ */ F.jsx(l, { client: d, children: t });
797
- }, Mt = (t) => {
797
+ }, zt = (t) => {
798
798
  var g, y, w;
799
- const { libraries: n } = D(A), o = (t == null ? void 0 : t.i18) || (n == null ? void 0 : n.i18), s = ((g = t == null ? void 0 : t.i18) == null ? void 0 : g.translateFunction) || ((y = n == null ? void 0 : n.i18) == null ? void 0 : y.translateFunction), i = ((w = o == null ? void 0 : o.i18next) == null ? void 0 : w.t) || s || ((R) => R), { unknownErrorTranslationKey: f = "error.unknownError" } = t || {}, l = i(f), d = ee(
800
- (R) => {
801
- var j, T, x, k, _, L, N, Y, b;
802
- const { response: u } = R || {};
803
- return u != null && u.reason ? String(u.reason) : (j = u == null ? void 0 : u.data) != null && j.reason ? String(u.data.reason) : (T = u == null ? void 0 : u.data) != null && T.message ? String(u.data.message) : (k = (x = u == null ? void 0 : u.data) == null ? void 0 : x.detail) != null && k.length && Array.isArray((_ = u == null ? void 0 : u.data) == null ? void 0 : _.detail) && ((N = (L = u == null ? void 0 : u.data) == null ? void 0 : L.detail[0]) != null && N.msg) && typeof ((b = (Y = u == null ? void 0 : u.data) == null ? void 0 : Y.detail[0]) == null ? void 0 : b.msg) == "string" ? String(u.data.detail[0].msg) : l;
799
+ const { libraries: n } = D(A), o = (t == null ? void 0 : t.i18) || (n == null ? void 0 : n.i18), s = ((g = t == null ? void 0 : t.i18) == null ? void 0 : g.translateFunction) || ((y = n == null ? void 0 : n.i18) == null ? void 0 : y.translateFunction), a = ((w = o == null ? void 0 : o.i18next) == null ? void 0 : w.t) || s || ((p) => p), { unknownErrorTranslationKey: f = "error.unknownError" } = t || {}, l = a(f), d = te(
800
+ (p) => {
801
+ var S, T, j, k, _, L, N, Y, b;
802
+ const { response: u } = p || {};
803
+ return u != null && u.reason ? String(u.reason) : (S = u == null ? void 0 : u.data) != null && S.reason ? String(u.data.reason) : (T = u == null ? void 0 : u.data) != null && T.message ? String(u.data.message) : (k = (j = u == null ? void 0 : u.data) == null ? void 0 : j.detail) != null && k.length && Array.isArray((_ = u == null ? void 0 : u.data) == null ? void 0 : _.detail) && ((N = (L = u == null ? void 0 : u.data) == null ? void 0 : L.detail[0]) != null && N.msg) && typeof ((b = (Y = u == null ? void 0 : u.data) == null ? void 0 : Y.detail[0]) == null ? void 0 : b.msg) == "string" ? String(u.data.detail[0].msg) : l;
804
804
  },
805
805
  [l]
806
806
  );
807
- return { getErrorCode: ee((R) => {
808
- var j, T, x;
809
- const { response: u } = R || {};
810
- return u != null && u.error_code ? String(u == null ? void 0 : u.error_code) : (j = u == null ? void 0 : u.data) != null && j.error_code ? String((T = u == null ? void 0 : u.data) == null ? void 0 : T.error_code) : u != null && u.error_code ? String(u == null ? void 0 : u.error_code) : (x = u == null ? void 0 : u.data) != null && x.error_code ? String(u.data.error_code) : "unknown_error_code";
807
+ return { getErrorCode: te((p) => {
808
+ var S, T, j;
809
+ const { response: u } = p || {};
810
+ return u != null && u.error_code ? String(u == null ? void 0 : u.error_code) : (S = u == null ? void 0 : u.data) != null && S.error_code ? String((T = u == null ? void 0 : u.data) == null ? void 0 : T.error_code) : u != null && u.error_code ? String(u == null ? void 0 : u.error_code) : (j = u == null ? void 0 : u.data) != null && j.error_code ? String(u.data.error_code) : "unknown_error_code";
811
811
  }, []), printError: d };
812
- }, Vt = ({
812
+ }, Mt = ({
813
813
  data: t,
814
814
  fetchNextPage: n,
815
815
  isFetchingNextPage: o,
816
816
  isInitialLoading: s,
817
- isLoading: i,
817
+ isLoading: a,
818
818
  enabled: f = !0
819
819
  }) => {
820
- const l = ee(
820
+ const l = te(
821
821
  async (c) => {
822
822
  o || !f || await n({ pageParam: (c == null ? void 0 : c.pageParam) || c.visibleRowsCount });
823
823
  },
824
824
  [f, n, o]
825
- ), d = le(() => {
825
+ ), d = fe(() => {
826
826
  if (t)
827
827
  return t.pages.reduce((c, g) => [...c, ...g], []);
828
828
  }, [t]);
829
829
  return {
830
830
  fetchNextPageOnRowsScrollEnd: l,
831
- isLoading: o || i,
831
+ isLoading: o || a,
832
832
  loadingVariant: s ? "skeleton" : "linear",
833
833
  rows: d
834
834
  };
835
- }, zt = (t) => {
835
+ }, Vt = (t) => {
836
836
  const { libraries: n } = D(A), o = (t == null ? void 0 : t.axios) || (n == null ? void 0 : n.axios), s = (t == null ? void 0 : t.localStorageKey) || "user";
837
837
  if (!o)
838
838
  throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in params of useAuth.");
839
- const i = ee(
839
+ const a = te(
840
840
  ({ tokenType: l, accessToken: d }) => {
841
841
  o.defaults.headers.common.Authorization = `${l} ${d}`;
842
842
  },
@@ -844,12 +844,12 @@ const A = gt({}), At = ({ children: t, apiURL: n, libraries: o }) => {
844
844
  ), f = () => {
845
845
  o.defaults.headers.common.Authorization = null;
846
846
  };
847
- return z(() => {
847
+ return V(() => {
848
848
  const l = ({ newValue: d, key: c }) => {
849
849
  if (c === s && d)
850
850
  try {
851
851
  const { accessToken: g, tokenType: y } = JSON.parse(d);
852
- i({ accessToken: g, tokenType: y });
852
+ a({ accessToken: g, tokenType: y });
853
853
  } catch (g) {
854
854
  console.error("Failed to parse newValue from localStorage:", g);
855
855
  }
@@ -857,9 +857,9 @@ const A = gt({}), At = ({ children: t, apiURL: n, libraries: o }) => {
857
857
  return window.addEventListener("storage", l), () => {
858
858
  window.removeEventListener("storage", l);
859
859
  };
860
- }, [s, i]), {
860
+ }, [s, a]), {
861
861
  clearAuthenticationToken: f,
862
- setAuthenticationToken: i
862
+ setAuthenticationToken: a
863
863
  };
864
864
  }, wt = ({ library: t, date: n, format: o = "ll" }) => t(n).format(o), _t = (t, n = "km") => {
865
865
  const o = Number(t);
@@ -867,8 +867,8 @@ const A = gt({}), At = ({ children: t, apiURL: n, libraries: o }) => {
867
867
  }, Ct = (t) => t != null && t.startsWith("/") ? t != null && t.startsWith("/files") ? t : `/files${t}` : t != null && t.startsWith("files") ? `/${t}` : t != null && t.startsWith("files") ? `/${t}` : `/files/${t}`, bt = ({ path: t, size: n, apiURL: o }) => {
868
868
  if (!t)
869
869
  return "";
870
- const s = Ct(t), i = `${o}${s}`, f = i.match(/\.(jpeg|jpg|png|gif|bmp|webp|svg|avif)$/) !== null;
871
- return typeof n == "number" && f ? `${i.replace("/files", `/thumbs/${n}`)}` : i;
870
+ const s = Ct(t), a = `${o}${s}`, f = a.match(/\.(jpeg|jpg|png|gif|bmp|webp|svg|avif)$/) !== null;
871
+ return typeof n == "number" && f ? `${a.replace("/files", `/thumbs/${n}`)}` : a;
872
872
  }, Ut = (t) => {
873
873
  const { apiURL: n, libraries: o } = D(A), s = (t == null ? void 0 : t.dayjs) || (o == null ? void 0 : o.dayjs);
874
874
  return {
@@ -894,24 +894,28 @@ const A = gt({}), At = ({ children: t, apiURL: n, libraries: o }) => {
894
894
  });
895
895
  }
896
896
  };
897
- }, Ne = (t, n) => n === "short" ? t.split("-")[0] : t, qt = (t, n = "full") => {
898
- const [o, s] = We(() => Ne((t == null ? void 0 : t.language) || navigator.language, n));
899
- return z(() => {
897
+ }, ee = (t, n) => n === "short" ? t.split("-")[0] : t, Gt = (t, n = "full") => {
898
+ const [o, s] = We(() => {
899
+ const a = (t == null ? void 0 : t.language) || navigator.language;
900
+ return t && "isInitialized" in t && t.isInitialized, ee(a, n);
901
+ });
902
+ return V(() => {
900
903
  var f;
901
- const i = (l) => {
902
- s(Ne(l, n));
904
+ t && "isInitialized" in t && t.isInitialized && t.language && s(ee(t.language, n));
905
+ const a = (l) => {
906
+ s(ee(l, n));
903
907
  };
904
- return (f = t == null ? void 0 : t.on) == null || f.call(t, "languageChanged", i), () => {
908
+ return (f = t == null ? void 0 : t.on) == null || f.call(t, "languageChanged", a), () => {
905
909
  var l;
906
- (l = t == null ? void 0 : t.off) == null || l.call(t, "languageChanged", i);
910
+ (l = t == null ? void 0 : t.off) == null || l.call(t, "languageChanged", a);
907
911
  };
908
912
  }, [t, n]), o;
909
- }, Pt = (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase(), jt = (t) => {
910
- const s = t.split("/").filter((i) => i.length > 0).map((i) => i.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((c) => c.charAt(0).toUpperCase() + c.slice(1)).join("")).join("");
913
+ }, Pt = (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase(), St = (t) => {
914
+ const s = t.split("/").filter((a) => a.length > 0).map((a) => a.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((c) => c.charAt(0).toUpperCase() + c.slice(1)).join("")).join("");
911
915
  return s.charAt(0).toLowerCase() + s.slice(1);
912
- }, xt = (t) => (t.split("/").pop() || t).replace(/\.json$/, "").replace(/^openapi\./, ""), St = (t, n, o) => {
913
- const s = jt(n), i = Pt(o);
914
- return `${s}${i}`;
916
+ }, jt = (t) => (t.split("/").pop() || t).replace(/\.json$/, "").replace(/^openapi\./, ""), xt = (t, n, o) => {
917
+ const s = St(n), a = Pt(o);
918
+ return `${s}${a}`;
915
919
  }, Tt = (t) => {
916
920
  if (t)
917
921
  return (t == null ? void 0 : t.reduce((n, o) => (n[o] = {
@@ -921,8 +925,8 @@ const A = gt({}), At = ({ children: t, apiURL: n, libraries: o }) => {
921
925
  useQuery: !0
922
926
  }
923
927
  }, n), {})) || {};
924
- }, Bt = (t) => (Array.isArray(t) ? t : [t]).reduce((o, s) => {
925
- const { output: i, operationsToGenerateInfiniteQueryHook: f, input: l = "./openapi.json" } = s || {}, d = xt(l);
928
+ }, qt = (t) => (Array.isArray(t) ? t : [t]).reduce((o, s) => {
929
+ const { output: a, operationsToGenerateInfiniteQueryHook: f, input: l = "./openapi.json" } = s || {}, d = jt(l);
926
930
  return {
927
931
  ...o,
928
932
  [d]: {
@@ -931,7 +935,7 @@ const A = gt({}), At = ({ children: t, apiURL: n, libraries: o }) => {
931
935
  },
932
936
  input: l,
933
937
  output: {
934
- baseUrl: i == null ? void 0 : i.baseUrl,
938
+ baseUrl: a == null ? void 0 : a.baseUrl,
935
939
  client: "react-query",
936
940
  mode: "tags-split",
937
941
  override: {
@@ -945,20 +949,40 @@ const A = gt({}), At = ({ children: t, apiURL: n, libraries: o }) => {
945
949
  name: "axiosCustomInstance",
946
950
  path: `${__dirname}/axiosCustomInstance.ts`
947
951
  },
948
- operationName: St,
952
+ operationName: xt,
949
953
  query: {
950
954
  useQuery: !0
951
955
  }
952
956
  },
953
- schemas: (i == null ? void 0 : i.schemas) || `src/api/${d}/model`,
954
- target: (i == null ? void 0 : i.target) || `src/api/${d}/services/api.ts`,
955
- ...i
957
+ schemas: (a == null ? void 0 : a.schemas) || `src/api/${d}/model`,
958
+ target: (a == null ? void 0 : a.target) || `src/api/${d}/services/api.ts`,
959
+ ...a
956
960
  }
957
961
  }
958
962
  };
959
- }, {}), Gt = (t) => {
963
+ }, {}), Bt = (t) => {
960
964
  const n = "moduleFetchError";
961
- throw t.message.includes("Failed to fetch dynamically imported module") && (document.cookie.split(";").some((s) => s.trim().startsWith(`${n}=`)) || (document.cookie = `${n}=true; max-age=60; path=/`, window.location.reload())), t;
965
+ if ([
966
+ "Failed to fetch dynamically imported module",
967
+ "Importing a module script failed",
968
+ "ChunkLoadError",
969
+ "Loading chunk failed",
970
+ "Unable to preload CSS",
971
+ "Unable to preload"
972
+ ].some((s) => t.message.toLowerCase().includes(s.toLowerCase()))) {
973
+ try {
974
+ if (!document.cookie.split(";").some((a) => a.trim().startsWith(`${n}=`))) {
975
+ const a = (/* @__PURE__ */ new Date()).getTime();
976
+ document.cookie = `${n}=${a}; max-age=60; path=/`, setTimeout(() => {
977
+ window.location.reload();
978
+ }, 100);
979
+ }
980
+ } catch (s) {
981
+ console.error("Error handling module import failure:", s);
982
+ }
983
+ return;
984
+ }
985
+ throw t;
962
986
  };
963
987
  export {
964
988
  Dt as GTMSendPageView,
@@ -974,11 +998,11 @@ export {
974
998
  kt as RequireAuth,
975
999
  wt as dateAdapter,
976
1000
  _t as distanceAdapter,
977
- Bt as getOrvalConfig,
978
- Gt as handleImportModuleError,
1001
+ qt as getOrvalConfig,
1002
+ Bt as handleImportModuleError,
979
1003
  Ut as useAdapter,
980
- zt as useAuth,
981
- qt as useCurrentLanguage,
982
- Vt as useInfiniteDataGrid,
983
- Mt as useResponseError
1004
+ Vt as useAuth,
1005
+ Gt as useCurrentLanguage,
1006
+ Mt as useInfiniteDataGrid,
1007
+ zt as useResponseError
984
1008
  };