@tracktor/shared-module 2.1.4 → 2.1.5

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,6 +1,6 @@
1
- import We, { createContext as vr, useMemo as fe, useContext as k, useState as gr, useRef as mr, useEffect as ee, Suspense as yr, useCallback as se } from "react";
2
- import hr from "axios";
3
- var le = { exports: {} }, G = {};
1
+ import We, { createContext as vr, useMemo as fe, useContext as I, useState as gr, useRef as mr, useEffect as ee, Suspense as yr, useCallback as se } from "react";
2
+ import k from "axios";
3
+ var le = { exports: {} }, B = {};
4
4
  /**
5
5
  * @license React
6
6
  * react-jsx-runtime.development.js
@@ -10,54 +10,54 @@ var le = { exports: {} }, G = {};
10
10
  * This source code is licensed under the MIT license found in the
11
11
  * LICENSE file in the root directory of this source tree.
12
12
  */
13
- var Ye;
14
- function pr() {
15
- return Ye || (Ye = 1, process.env.NODE_ENV !== "production" && function() {
16
- var r = We, n = Symbol.for("react.element"), i = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), v = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), a = Symbol.for("react.offscreen"), j = Symbol.iterator, S = "@@iterator";
17
- function T(e) {
13
+ var Ne;
14
+ function hr() {
15
+ return Ne || (Ne = 1, process.env.NODE_ENV !== "production" && function() {
16
+ var r = We, o = Symbol.for("react.element"), i = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), v = Symbol.for("react.provider"), f = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), a = Symbol.for("react.offscreen"), S = Symbol.iterator, j = "@@iterator";
17
+ function A(e) {
18
18
  if (e === null || typeof e != "object")
19
19
  return null;
20
- var t = j && e[j] || e[S];
20
+ var t = S && e[S] || e[j];
21
21
  return typeof t == "function" ? t : null;
22
22
  }
23
- var D = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
23
+ var x = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
24
24
  function w(e) {
25
25
  {
26
- for (var t = arguments.length, o = new Array(t > 1 ? t - 1 : 0), d = 1; d < t; d++)
27
- o[d - 1] = arguments[d];
28
- Y("error", e, o);
26
+ for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), l = 1; l < t; l++)
27
+ n[l - 1] = arguments[l];
28
+ Y("error", e, n);
29
29
  }
30
30
  }
31
- function Y(e, t, o) {
31
+ function Y(e, t, n) {
32
32
  {
33
- var d = D.ReactDebugCurrentFrame, y = d.getStackAddendum();
34
- y !== "" && (t += "%s", o = o.concat([y]));
35
- var p = o.map(function(m) {
33
+ var l = x.ReactDebugCurrentFrame, y = l.getStackAddendum();
34
+ y !== "" && (t += "%s", n = n.concat([y]));
35
+ var p = n.map(function(m) {
36
36
  return String(m);
37
37
  });
38
38
  p.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, p);
39
39
  }
40
40
  }
41
- var N = !1, W = !1, C = !1, de = !1, ve = !1, U;
42
- U = Symbol.for("react.module.reference");
41
+ var W = !1, C = !1, M = !1, de = !1, Q = !1, ve;
42
+ ve = Symbol.for("react.module.reference");
43
43
  function Le(e) {
44
- return !!(typeof e == "string" || typeof e == "function" || e === u || e === f || ve || e === c || e === E || e === h || de || e === a || N || W || C || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === b || e.$$typeof === v || e.$$typeof === s || e.$$typeof === l || // This needs to include all possible module reference object
44
+ return !!(typeof e == "string" || typeof e == "function" || e === u || e === d || Q || e === c || e === E || e === h || de || e === a || W || C || M || typeof e == "object" && e !== null && (e.$$typeof === b || e.$$typeof === R || e.$$typeof === v || e.$$typeof === f || e.$$typeof === s || // This needs to include all possible module reference object
45
45
  // types supported by any Flight configuration anywhere since
46
46
  // we don't know which Flight build this will end up being used
47
47
  // with.
48
- e.$$typeof === U || e.getModuleId !== void 0));
48
+ e.$$typeof === ve || e.getModuleId !== void 0));
49
49
  }
50
- function Ve(e, t, o) {
51
- var d = e.displayName;
52
- if (d)
53
- return d;
50
+ function Ve(e, t, n) {
51
+ var l = e.displayName;
52
+ if (l)
53
+ return l;
54
54
  var y = t.displayName || t.name || "";
55
- return y !== "" ? o + "(" + y + ")" : o;
55
+ return y !== "" ? n + "(" + y + ")" : n;
56
56
  }
57
57
  function ge(e) {
58
58
  return e.displayName || "Context";
59
59
  }
60
- function I(e) {
60
+ function $(e) {
61
61
  if (e == null)
62
62
  return null;
63
63
  if (typeof e.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
@@ -69,7 +69,7 @@ function pr() {
69
69
  return "Fragment";
70
70
  case i:
71
71
  return "Portal";
72
- case f:
72
+ case d:
73
73
  return "Profiler";
74
74
  case c:
75
75
  return "StrictMode";
@@ -80,21 +80,21 @@ function pr() {
80
80
  }
81
81
  if (typeof e == "object")
82
82
  switch (e.$$typeof) {
83
- case s:
83
+ case f:
84
84
  var t = e;
85
85
  return ge(t) + ".Consumer";
86
86
  case v:
87
- var o = e;
88
- return ge(o._context) + ".Provider";
89
- case l:
87
+ var n = e;
88
+ return ge(n._context) + ".Provider";
89
+ case s:
90
90
  return Ve(e, e.render, "ForwardRef");
91
- case b:
92
- var d = e.displayName || null;
93
- return d !== null ? d : I(e.type) || "Memo";
94
- case R: {
91
+ case R:
92
+ var l = e.displayName || null;
93
+ return l !== null ? l : $(e.type) || "Memo";
94
+ case b: {
95
95
  var y = e, p = y._payload, m = y._init;
96
96
  try {
97
- return I(m(p));
97
+ return $(m(p));
98
98
  } catch {
99
99
  return null;
100
100
  }
@@ -102,13 +102,13 @@ function pr() {
102
102
  }
103
103
  return null;
104
104
  }
105
- var L = Object.assign, q = 0, me, ye, he, pe, Ee, Re, we;
105
+ var L = Object.assign, U = 0, me, ye, he, pe, Ee, Re, we;
106
106
  function _e() {
107
107
  }
108
108
  _e.__reactDisabledLog = !0;
109
109
  function ze() {
110
110
  {
111
- if (q === 0) {
111
+ if (U === 0) {
112
112
  me = console.log, ye = console.info, he = console.warn, pe = console.error, Ee = console.group, Re = console.groupCollapsed, we = console.groupEnd;
113
113
  var e = {
114
114
  configurable: !0,
@@ -126,12 +126,12 @@ function pr() {
126
126
  groupEnd: e
127
127
  });
128
128
  }
129
- q++;
129
+ U++;
130
130
  }
131
131
  }
132
132
  function Me() {
133
133
  {
134
- if (q--, q === 0) {
134
+ if (U--, U === 0) {
135
135
  var e = {
136
136
  configurable: !0,
137
137
  enumerable: !0,
@@ -161,37 +161,37 @@ function pr() {
161
161
  })
162
162
  });
163
163
  }
164
- q < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
164
+ U < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
165
165
  }
166
166
  }
167
- var re = D.ReactCurrentDispatcher, te;
168
- function J(e, t, o) {
167
+ var re = x.ReactCurrentDispatcher, te;
168
+ function J(e, t, n) {
169
169
  {
170
170
  if (te === void 0)
171
171
  try {
172
172
  throw Error();
173
173
  } catch (y) {
174
- var d = y.stack.trim().match(/\n( *(at )?)/);
175
- te = d && d[1] || "";
174
+ var l = y.stack.trim().match(/\n( *(at )?)/);
175
+ te = l && l[1] || "";
176
176
  }
177
177
  return `
178
178
  ` + te + e;
179
179
  }
180
180
  }
181
- var ne = !1, H;
181
+ var ne = !1, X;
182
182
  {
183
183
  var Ue = typeof WeakMap == "function" ? WeakMap : Map;
184
- H = new Ue();
184
+ X = new Ue();
185
185
  }
186
186
  function be(e, t) {
187
187
  if (!e || ne)
188
188
  return "";
189
189
  {
190
- var o = H.get(e);
191
- if (o !== void 0)
192
- return o;
190
+ var n = X.get(e);
191
+ if (n !== void 0)
192
+ return n;
193
193
  }
194
- var d;
194
+ var l;
195
195
  ne = !0;
196
196
  var y = Error.prepareStackTrace;
197
197
  Error.prepareStackTrace = void 0;
@@ -209,40 +209,40 @@ function pr() {
209
209
  }), typeof Reflect == "object" && Reflect.construct) {
210
210
  try {
211
211
  Reflect.construct(m, []);
212
- } catch ($) {
213
- d = $;
212
+ } catch (F) {
213
+ l = F;
214
214
  }
215
215
  Reflect.construct(e, [], m);
216
216
  } else {
217
217
  try {
218
218
  m.call();
219
- } catch ($) {
220
- d = $;
219
+ } catch (F) {
220
+ l = F;
221
221
  }
222
222
  e.call(m.prototype);
223
223
  }
224
224
  } else {
225
225
  try {
226
226
  throw Error();
227
- } catch ($) {
228
- d = $;
227
+ } catch (F) {
228
+ l = F;
229
229
  }
230
230
  e();
231
231
  }
232
- } catch ($) {
233
- if ($ && d && typeof $.stack == "string") {
234
- for (var g = $.stack.split(`
235
- `), x = d.stack.split(`
236
- `), _ = g.length - 1, P = x.length - 1; _ >= 1 && P >= 0 && g[_] !== x[P]; )
232
+ } catch (F) {
233
+ if (F && l && typeof F.stack == "string") {
234
+ for (var g = F.stack.split(`
235
+ `), T = l.stack.split(`
236
+ `), _ = g.length - 1, P = T.length - 1; _ >= 1 && P >= 0 && g[_] !== T[P]; )
237
237
  P--;
238
238
  for (; _ >= 1 && P >= 0; _--, P--)
239
- if (g[_] !== x[P]) {
239
+ if (g[_] !== T[P]) {
240
240
  if (_ !== 1 || P !== 1)
241
241
  do
242
- if (_--, P--, P < 0 || g[_] !== x[P]) {
242
+ if (_--, P--, P < 0 || g[_] !== T[P]) {
243
243
  var O = `
244
244
  ` + g[_].replace(" at new ", " at ");
245
- return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && H.set(e, O), O;
245
+ return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && X.set(e, O), O;
246
246
  }
247
247
  while (_ >= 1 && P >= 0);
248
248
  break;
@@ -251,17 +251,17 @@ function pr() {
251
251
  } finally {
252
252
  ne = !1, re.current = p, Me(), Error.prepareStackTrace = y;
253
253
  }
254
- var M = e ? e.displayName || e.name : "", Fe = M ? J(M) : "";
255
- return typeof e == "function" && H.set(e, Fe), Fe;
254
+ var z = e ? e.displayName || e.name : "", Fe = z ? J(z) : "";
255
+ return typeof e == "function" && X.set(e, Fe), Fe;
256
256
  }
257
- function qe(e, t, o) {
257
+ function qe(e, t, n) {
258
258
  return be(e, !1);
259
259
  }
260
260
  function Be(e) {
261
261
  var t = e.prototype;
262
262
  return !!(t && t.isReactComponent);
263
263
  }
264
- function K(e, t, o) {
264
+ function H(e, t, n) {
265
265
  if (e == null)
266
266
  return "";
267
267
  if (typeof e == "function")
@@ -276,44 +276,44 @@ function pr() {
276
276
  }
277
277
  if (typeof e == "object")
278
278
  switch (e.$$typeof) {
279
- case l:
279
+ case s:
280
280
  return qe(e.render);
281
- case b:
282
- return K(e.type, t, o);
283
- case R: {
284
- var d = e, y = d._payload, p = d._init;
281
+ case R:
282
+ return H(e.type, t, n);
283
+ case b: {
284
+ var l = e, y = l._payload, p = l._init;
285
285
  try {
286
- return K(p(y), t, o);
286
+ return H(p(y), t, n);
287
287
  } catch {
288
288
  }
289
289
  }
290
290
  }
291
291
  return "";
292
292
  }
293
- var X = Object.prototype.hasOwnProperty, Ce = {}, Pe = D.ReactDebugCurrentFrame;
293
+ var K = Object.prototype.hasOwnProperty, Ce = {}, Pe = x.ReactDebugCurrentFrame;
294
294
  function Z(e) {
295
295
  if (e) {
296
- var t = e._owner, o = K(e.type, e._source, t ? t.type : null);
297
- Pe.setExtraStackFrame(o);
296
+ var t = e._owner, n = H(e.type, e._source, t ? t.type : null);
297
+ Pe.setExtraStackFrame(n);
298
298
  } else
299
299
  Pe.setExtraStackFrame(null);
300
300
  }
301
- function Ge(e, t, o, d, y) {
301
+ function Ge(e, t, n, l, y) {
302
302
  {
303
- var p = Function.call.bind(X);
303
+ var p = Function.call.bind(K);
304
304
  for (var m in e)
305
305
  if (p(e, m)) {
306
306
  var g = void 0;
307
307
  try {
308
308
  if (typeof e[m] != "function") {
309
- var x = Error((d || "React class") + ": " + o + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
310
- throw x.name = "Invariant Violation", x;
309
+ var T = Error((l || "React class") + ": " + n + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
310
+ throw T.name = "Invariant Violation", T;
311
311
  }
312
- g = e[m](t, m, d, o, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
312
+ g = e[m](t, m, l, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
313
313
  } catch (_) {
314
314
  g = _;
315
315
  }
316
- g && !(g instanceof Error) && (Z(y), w("%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).", d || "React class", o, m, typeof g), Z(null)), g instanceof Error && !(g.message in Ce) && (Ce[g.message] = !0, Z(y), w("Failed %s type: %s", o, g.message), Z(null));
316
+ g && !(g instanceof Error) && (Z(y), w("%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).", l || "React class", n, m, typeof g), Z(null)), g instanceof Error && !(g.message in Ce) && (Ce[g.message] = !0, Z(y), w("Failed %s type: %s", n, g.message), Z(null));
317
317
  }
318
318
  }
319
319
  }
@@ -323,11 +323,11 @@ function pr() {
323
323
  }
324
324
  function Je(e) {
325
325
  {
326
- var t = typeof Symbol == "function" && Symbol.toStringTag, o = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
327
- return o;
326
+ var t = typeof Symbol == "function" && Symbol.toStringTag, n = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
327
+ return n;
328
328
  }
329
329
  }
330
- function He(e) {
330
+ function Xe(e) {
331
331
  try {
332
332
  return je(e), !1;
333
333
  } catch {
@@ -338,18 +338,18 @@ function pr() {
338
338
  return "" + e;
339
339
  }
340
340
  function Te(e) {
341
- if (He(e))
341
+ if (Xe(e))
342
342
  return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)), je(e);
343
343
  }
344
- var B = D.ReactCurrentOwner, Ke = {
344
+ var q = x.ReactCurrentOwner, He = {
345
345
  key: !0,
346
346
  ref: !0,
347
347
  __self: !0,
348
348
  __source: !0
349
- }, xe, Se, ie;
349
+ }, Se, xe, ie;
350
350
  ie = {};
351
- function Xe(e) {
352
- if (X.call(e, "ref")) {
351
+ function Ke(e) {
352
+ if (K.call(e, "ref")) {
353
353
  var t = Object.getOwnPropertyDescriptor(e, "ref").get;
354
354
  if (t && t.isReactWarning)
355
355
  return !1;
@@ -357,7 +357,7 @@ function pr() {
357
357
  return e.ref !== void 0;
358
358
  }
359
359
  function Ze(e) {
360
- if (X.call(e, "key")) {
360
+ if (K.call(e, "key")) {
361
361
  var t = Object.getOwnPropertyDescriptor(e, "key").get;
362
362
  if (t && t.isReactWarning)
363
363
  return !1;
@@ -365,41 +365,41 @@ function pr() {
365
365
  return e.key !== void 0;
366
366
  }
367
367
  function er(e, t) {
368
- if (typeof e.ref == "string" && B.current && t && B.current.stateNode !== t) {
369
- var o = I(B.current.type);
370
- ie[o] || (w('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), ie[o] = !0);
368
+ if (typeof e.ref == "string" && q.current && t && q.current.stateNode !== t) {
369
+ var n = $(q.current.type);
370
+ ie[n] || (w('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', $(q.current.type), e.ref), ie[n] = !0);
371
371
  }
372
372
  }
373
373
  function rr(e, t) {
374
374
  {
375
- var o = function() {
376
- xe || (xe = !0, w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
375
+ var n = function() {
376
+ Se || (Se = !0, w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
377
377
  };
378
- o.isReactWarning = !0, Object.defineProperty(e, "key", {
379
- get: o,
378
+ n.isReactWarning = !0, Object.defineProperty(e, "key", {
379
+ get: n,
380
380
  configurable: !0
381
381
  });
382
382
  }
383
383
  }
384
384
  function tr(e, t) {
385
385
  {
386
- var o = function() {
387
- Se || (Se = !0, w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
386
+ var n = function() {
387
+ xe || (xe = !0, w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
388
388
  };
389
- o.isReactWarning = !0, Object.defineProperty(e, "ref", {
390
- get: o,
389
+ n.isReactWarning = !0, Object.defineProperty(e, "ref", {
390
+ get: n,
391
391
  configurable: !0
392
392
  });
393
393
  }
394
394
  }
395
- var nr = function(e, t, o, d, y, p, m) {
395
+ var nr = function(e, t, n, l, y, p, m) {
396
396
  var g = {
397
397
  // This tag allows us to uniquely identify this as a React Element
398
- $$typeof: n,
398
+ $$typeof: o,
399
399
  // Built-in properties that belong on the element
400
400
  type: e,
401
401
  key: t,
402
- ref: o,
402
+ ref: n,
403
403
  props: m,
404
404
  // Record the component responsible for creating this element.
405
405
  _owner: p
@@ -413,7 +413,7 @@ function pr() {
413
413
  configurable: !1,
414
414
  enumerable: !1,
415
415
  writable: !1,
416
- value: d
416
+ value: l
417
417
  }), Object.defineProperty(g, "_source", {
418
418
  configurable: !1,
419
419
  enumerable: !1,
@@ -421,41 +421,41 @@ function pr() {
421
421
  value: y
422
422
  }), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
423
423
  };
424
- function or(e, t, o, d, y) {
424
+ function or(e, t, n, l, y) {
425
425
  {
426
- var p, m = {}, g = null, x = null;
427
- o !== void 0 && (Te(o), g = "" + o), Ze(t) && (Te(t.key), g = "" + t.key), Xe(t) && (x = t.ref, er(t, y));
426
+ var p, m = {}, g = null, T = null;
427
+ n !== void 0 && (Te(n), g = "" + n), Ze(t) && (Te(t.key), g = "" + t.key), Ke(t) && (T = t.ref, er(t, y));
428
428
  for (p in t)
429
- X.call(t, p) && !Ke.hasOwnProperty(p) && (m[p] = t[p]);
429
+ K.call(t, p) && !He.hasOwnProperty(p) && (m[p] = t[p]);
430
430
  if (e && e.defaultProps) {
431
431
  var _ = e.defaultProps;
432
432
  for (p in _)
433
433
  m[p] === void 0 && (m[p] = _[p]);
434
434
  }
435
- if (g || x) {
435
+ if (g || T) {
436
436
  var P = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
437
- g && rr(m, P), x && tr(m, P);
437
+ g && rr(m, P), T && tr(m, P);
438
438
  }
439
- return nr(e, g, x, y, d, B.current, m);
439
+ return nr(e, g, T, y, l, q.current, m);
440
440
  }
441
441
  }
442
- var ae = D.ReactCurrentOwner, Oe = D.ReactDebugCurrentFrame;
443
- function z(e) {
442
+ var ae = x.ReactCurrentOwner, Oe = x.ReactDebugCurrentFrame;
443
+ function V(e) {
444
444
  if (e) {
445
- var t = e._owner, o = K(e.type, e._source, t ? t.type : null);
446
- Oe.setExtraStackFrame(o);
445
+ var t = e._owner, n = H(e.type, e._source, t ? t.type : null);
446
+ Oe.setExtraStackFrame(n);
447
447
  } else
448
448
  Oe.setExtraStackFrame(null);
449
449
  }
450
450
  var ue;
451
451
  ue = !1;
452
452
  function ce(e) {
453
- return typeof e == "object" && e !== null && e.$$typeof === n;
453
+ return typeof e == "object" && e !== null && e.$$typeof === o;
454
454
  }
455
455
  function Ae() {
456
456
  {
457
457
  if (ae.current) {
458
- var e = I(ae.current.type);
458
+ var e = $(ae.current.type);
459
459
  if (e)
460
460
  return `
461
461
 
@@ -467,10 +467,10 @@ Check the render method of \`` + e + "`.";
467
467
  function ir(e) {
468
468
  {
469
469
  if (e !== void 0) {
470
- var t = e.fileName.replace(/^.*[\\\/]/, ""), o = e.lineNumber;
470
+ var t = e.fileName.replace(/^.*[\\\/]/, ""), n = e.lineNumber;
471
471
  return `
472
472
 
473
- Check your code at ` + t + ":" + o + ".";
473
+ Check your code at ` + t + ":" + n + ".";
474
474
  }
475
475
  return "";
476
476
  }
@@ -480,10 +480,10 @@ Check your code at ` + t + ":" + o + ".";
480
480
  {
481
481
  var t = Ae();
482
482
  if (!t) {
483
- var o = typeof e == "string" ? e : e.displayName || e.name;
484
- o && (t = `
483
+ var n = typeof e == "string" ? e : e.displayName || e.name;
484
+ n && (t = `
485
485
 
486
- Check the top-level render call using <` + o + ">.");
486
+ Check the top-level render call using <` + n + ">.");
487
487
  }
488
488
  return t;
489
489
  }
@@ -493,12 +493,12 @@ Check the top-level render call using <` + o + ">.");
493
493
  if (!e._store || e._store.validated || e.key != null)
494
494
  return;
495
495
  e._store.validated = !0;
496
- var o = ar(t);
497
- if (De[o])
496
+ var n = ar(t);
497
+ if (De[n])
498
498
  return;
499
- De[o] = !0;
500
- var d = "";
501
- e && e._owner && e._owner !== ae.current && (d = " It was passed a child from " + I(e._owner.type) + "."), z(e), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', o, d), z(null);
499
+ De[n] = !0;
500
+ var l = "";
501
+ e && e._owner && e._owner !== ae.current && (l = " It was passed a child from " + $(e._owner.type) + "."), V(e), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, l), V(null);
502
502
  }
503
503
  }
504
504
  function Ie(e, t) {
@@ -506,14 +506,14 @@ Check the top-level render call using <` + o + ">.");
506
506
  if (typeof e != "object")
507
507
  return;
508
508
  if (oe(e))
509
- for (var o = 0; o < e.length; o++) {
510
- var d = e[o];
511
- ce(d) && ke(d, t);
509
+ for (var n = 0; n < e.length; n++) {
510
+ var l = e[n];
511
+ ce(l) && ke(l, t);
512
512
  }
513
513
  else if (ce(e))
514
514
  e._store && (e._store.validated = !0);
515
515
  else if (e) {
516
- var y = T(e);
516
+ var y = A(e);
517
517
  if (typeof y == "function" && y !== e.entries)
518
518
  for (var p = y.call(e), m; !(m = p.next()).done; )
519
519
  ce(m.value) && ke(m.value, t);
@@ -525,21 +525,21 @@ Check the top-level render call using <` + o + ">.");
525
525
  var t = e.type;
526
526
  if (t == null || typeof t == "string")
527
527
  return;
528
- var o;
528
+ var n;
529
529
  if (typeof t == "function")
530
- o = t.propTypes;
531
- else if (typeof t == "object" && (t.$$typeof === l || // Note: Memo only checks outer props here.
530
+ n = t.propTypes;
531
+ else if (typeof t == "object" && (t.$$typeof === s || // Note: Memo only checks outer props here.
532
532
  // Inner props are checked in the reconciler.
533
- t.$$typeof === b))
534
- o = t.propTypes;
533
+ t.$$typeof === R))
534
+ n = t.propTypes;
535
535
  else
536
536
  return;
537
- if (o) {
538
- var d = I(t);
539
- Ge(o, e.props, "prop", d, e);
537
+ if (n) {
538
+ var l = $(t);
539
+ Ge(n, e.props, "prop", l, e);
540
540
  } else if (t.PropTypes !== void 0 && !ue) {
541
541
  ue = !0;
542
- var y = I(t);
542
+ var y = $(t);
543
543
  w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", y || "Unknown");
544
544
  }
545
545
  typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
@@ -547,37 +547,37 @@ Check the top-level render call using <` + o + ">.");
547
547
  }
548
548
  function cr(e) {
549
549
  {
550
- for (var t = Object.keys(e.props), o = 0; o < t.length; o++) {
551
- var d = t[o];
552
- if (d !== "children" && d !== "key") {
553
- z(e), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", d), z(null);
550
+ for (var t = Object.keys(e.props), n = 0; n < t.length; n++) {
551
+ var l = t[n];
552
+ if (l !== "children" && l !== "key") {
553
+ V(e), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", l), V(null);
554
554
  break;
555
555
  }
556
556
  }
557
- e.ref !== null && (z(e), w("Invalid attribute `ref` supplied to `React.Fragment`."), z(null));
557
+ e.ref !== null && (V(e), w("Invalid attribute `ref` supplied to `React.Fragment`."), V(null));
558
558
  }
559
559
  }
560
- function $e(e, t, o, d, y, p) {
560
+ function $e(e, t, n, l, y, p) {
561
561
  {
562
562
  var m = Le(e);
563
563
  if (!m) {
564
564
  var g = "";
565
565
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (g += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
566
- var x = ir(y);
567
- x ? g += x : g += Ae();
566
+ var T = ir(y);
567
+ T ? g += T : g += Ae();
568
568
  var _;
569
- e === null ? _ = "null" : oe(e) ? _ = "array" : e !== void 0 && e.$$typeof === n ? (_ = "<" + (I(e.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : _ = typeof e, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _, g);
569
+ e === null ? _ = "null" : oe(e) ? _ = "array" : e !== void 0 && e.$$typeof === o ? (_ = "<" + ($(e.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : _ = typeof e, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _, g);
570
570
  }
571
- var P = or(e, t, o, y, p);
571
+ var P = or(e, t, n, y, p);
572
572
  if (P == null)
573
573
  return P;
574
574
  if (m) {
575
575
  var O = t.children;
576
576
  if (O !== void 0)
577
- if (d)
577
+ if (l)
578
578
  if (oe(O)) {
579
- for (var M = 0; M < O.length; M++)
580
- Ie(O[M], e);
579
+ for (var z = 0; z < O.length; z++)
580
+ Ie(O[z], e);
581
581
  Object.freeze && Object.freeze(O);
582
582
  } else
583
583
  w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
@@ -587,17 +587,17 @@ Check the top-level render call using <` + o + ">.");
587
587
  return e === u ? cr(P) : ur(P), P;
588
588
  }
589
589
  }
590
- function sr(e, t, o) {
591
- return $e(e, t, o, !0);
590
+ function sr(e, t, n) {
591
+ return $e(e, t, n, !0);
592
592
  }
593
- function lr(e, t, o) {
594
- return $e(e, t, o, !1);
593
+ function lr(e, t, n) {
594
+ return $e(e, t, n, !1);
595
595
  }
596
596
  var fr = lr, dr = sr;
597
- G.Fragment = u, G.jsx = fr, G.jsxs = dr;
598
- }()), G;
597
+ B.Fragment = u, B.jsx = fr, B.jsxs = dr;
598
+ }()), B;
599
599
  }
600
- var Q = {};
600
+ var G = {};
601
601
  /**
602
602
  * @license React
603
603
  * react-jsx-runtime.production.min.js
@@ -607,90 +607,89 @@ var Q = {};
607
607
  * This source code is licensed under the MIT license found in the
608
608
  * LICENSE file in the root directory of this source tree.
609
609
  */
610
- var Ne;
611
- function Er() {
612
- if (Ne)
613
- return Q;
614
- Ne = 1;
615
- var r = We, n = Symbol.for("react.element"), i = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, c = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, f = { key: !0, ref: !0, __self: !0, __source: !0 };
616
- function v(s, l, E) {
617
- var h, b = {}, R = null, a = null;
618
- E !== void 0 && (R = "" + E), l.key !== void 0 && (R = "" + l.key), l.ref !== void 0 && (a = l.ref);
619
- for (h in l)
620
- u.call(l, h) && !f.hasOwnProperty(h) && (b[h] = l[h]);
621
- if (s && s.defaultProps)
622
- for (h in l = s.defaultProps, l)
623
- b[h] === void 0 && (b[h] = l[h]);
624
- return { $$typeof: n, type: s, key: R, ref: a, props: b, _owner: c.current };
610
+ var Ye;
611
+ function pr() {
612
+ if (Ye)
613
+ return G;
614
+ Ye = 1;
615
+ var r = We, o = Symbol.for("react.element"), i = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, c = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 };
616
+ function v(f, s, E) {
617
+ var h, R = {}, b = null, a = null;
618
+ E !== void 0 && (b = "" + E), s.key !== void 0 && (b = "" + s.key), s.ref !== void 0 && (a = s.ref);
619
+ for (h in s)
620
+ u.call(s, h) && !d.hasOwnProperty(h) && (R[h] = s[h]);
621
+ if (f && f.defaultProps)
622
+ for (h in s = f.defaultProps, s)
623
+ R[h] === void 0 && (R[h] = s[h]);
624
+ return { $$typeof: o, type: f, key: b, ref: a, props: R, _owner: c.current };
625
625
  }
626
- return Q.Fragment = i, Q.jsx = v, Q.jsxs = v, Q;
626
+ return G.Fragment = i, G.jsx = v, G.jsxs = v, G;
627
627
  }
628
- process.env.NODE_ENV === "production" ? le.exports = Er() : le.exports = pr();
629
- var F = le.exports;
630
- const A = vr({}), kr = ({ children: r, apiURL: n, libraries: i }) => {
628
+ process.env.NODE_ENV === "production" ? le.exports = pr() : le.exports = hr();
629
+ var N = le.exports;
630
+ const D = vr({}), Dr = ({ children: r, apiURL: o, libraries: i }) => {
631
631
  const u = fe(
632
632
  () => ({
633
- apiURL: n,
633
+ apiURL: o,
634
634
  libraries: i
635
635
  }),
636
- [n, i]
636
+ [o, i]
637
637
  );
638
- return /* @__PURE__ */ F.jsx(A.Provider, { value: u, children: r });
639
- }, Ir = ({
638
+ return /* @__PURE__ */ N.jsx(D.Provider, { value: u, children: r });
639
+ }, kr = ({
640
640
  Fallback: r,
641
- isLogged: n,
641
+ isLogged: o,
642
642
  loginPath: i = "/login",
643
643
  localStorageKey: u = "user",
644
644
  redirect401Path: c = "/login",
645
- ...f
645
+ ...d
646
646
  }) => {
647
- var w, Y, N, W;
648
- const { libraries: v } = k(A), s = (f == null ? void 0 : f.axios) || (v == null ? void 0 : v.axios), l = (f == null ? void 0 : f.reactRouter) || (v == null ? void 0 : v.reactRouter);
649
- if (!l)
647
+ var x, w, Y, W;
648
+ const { libraries: v } = I(D), f = (d == null ? void 0 : d.reactRouter) || (v == null ? void 0 : v.reactRouter);
649
+ if (!f)
650
650
  throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
651
- if (!s)
652
- throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
653
- const [E, h] = gr(null), { useLocation: b, Navigate: R, Outlet: a } = l, j = b(), S = mr(!1), T = typeof n == "function" ? n() : !!n, D = typeof T == "boolean" ? T : T == null ? void 0 : T.isLogged;
651
+ const [s, E] = gr(null), { useLocation: h, Navigate: R, Outlet: b } = f, a = h(), S = mr(!1), j = typeof o == "function" ? o() : !!o, A = typeof j == "boolean" ? j : j == null ? void 0 : j.isLogged;
654
652
  return ee(() => {
655
- S.current || (S.current = !0, s == null || s.interceptors.response.use(
653
+ S.current || (S.current = !0, k.interceptors.response.use(
656
654
  (C) => C,
657
655
  async (C) => {
658
- var U;
659
- return typeof C == "object" && C && "response" in C && C.response && typeof C.response == "object" && "status" in C.response && C.response && typeof C.response == "object" && "status" in C.response && ((U = C == null ? void 0 : C.response) == null ? void 0 : U.status) === 401 && (s.defaults.headers.common.Authorization = null, localStorage.removeItem(u), h(c)), Promise.reject(C);
656
+ var Q;
657
+ return typeof C == "object" && C && "response" in C && C.response && typeof C.response == "object" && "status" in C.response && C.response && typeof C.response == "object" && "status" in C.response && ((Q = C == null ? void 0 : C.response) == null ? void 0 : Q.status) === 401 && (k.defaults.headers.common.Authorization = null, localStorage.removeItem(u), E(c)), Promise.reject(C);
660
658
  }
661
659
  ));
662
- }, [s == null ? void 0 : s.defaults.headers.common, s == null ? void 0 : s.interceptors.response, u, c]), D && !E ? /* @__PURE__ */ F.jsx(yr, { fallback: r, children: (Y = (w = j.state) == null ? void 0 : w.from) != null && Y.state && ((W = (N = j.state) == null ? void 0 : N.from) == null ? void 0 : W.pathname) === i ? /* @__PURE__ */ F.jsx(R, { to: j.state.from.state.from.pathname + j.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ F.jsx(a, {}) }) : /* @__PURE__ */ F.jsx(R, { to: i, state: { from: j }, replace: !0 });
663
- }, $r = ({ ...r }) => {
664
- const { libraries: n } = k(A), i = (r == null ? void 0 : r.reactRouter) || (n == null ? void 0 : n.reactRouter), u = (r == null ? void 0 : r.gtm) || (n == null ? void 0 : n.gtm);
660
+ }, [u, c]), A && !s ? /* @__PURE__ */ N.jsx(yr, { fallback: r, children: (w = (x = a.state) == null ? void 0 : x.from) != null && w.state && ((W = (Y = a.state) == null ? void 0 : Y.from) == null ? void 0 : W.pathname) === i ? /* @__PURE__ */ N.jsx(R, { to: a.state.from.state.from.pathname + a.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ N.jsx(b, {}) }) : /* @__PURE__ */ N.jsx(R, { to: i, state: { from: a }, replace: !0 });
661
+ }, Ir = ({ ...r }) => {
662
+ const { libraries: o } = I(D), i = (r == null ? void 0 : r.reactRouter) || (o == null ? void 0 : o.reactRouter), u = (r == null ? void 0 : r.gtm) || (o == null ? void 0 : o.gtm);
665
663
  if (!i)
666
664
  throw new Error(
667
665
  "React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView."
668
666
  );
669
667
  if (!u)
670
668
  throw new Error("GTM is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView.");
671
- const { useGoogleTagManager: c } = u, { useLocation: f, Outlet: v } = i, { pathname: s } = f(), { sendEvent: l } = c();
669
+ const { useGoogleTagManager: c } = u, { useLocation: d, Outlet: v } = i, { pathname: f } = d(), { sendEvent: s } = c();
672
670
  return ee(() => {
673
- l({ event: "pageView", pathname: s });
674
- }, [s, l]), /* @__PURE__ */ F.jsx(v, {});
675
- }, V = hr.create(), Fr = ({
671
+ s({ event: "pageView", pathname: f });
672
+ }, [f, s]), /* @__PURE__ */ N.jsx(v, {});
673
+ }, $r = ({
676
674
  tokenTypeKey: r = "tokenType",
677
- userLocalStorageKey: n = "user",
675
+ userLocalStorageKey: o = "user",
678
676
  tokenKey: i = "accessToken",
679
677
  postContentType: u = "application/json",
680
678
  ...c
681
679
  }) => {
682
- const { apiURL: f = c.apiURL } = k(A);
683
- if (!V)
680
+ var R;
681
+ const { apiURL: d = c.apiURL } = I(D);
682
+ if (!k)
684
683
  throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
685
- if (!(V != null && V.defaults))
684
+ if (!((R = k) != null && R.defaults))
686
685
  return null;
687
- const v = localStorage.getItem(n), s = v ? JSON.parse(v) : null, l = s != null && s[r] ? s[r] : null, E = s != null && s[i] ? s[i] : null, h = v ? `${l} ${E}` : null;
688
- return V.defaults.baseURL = f, V.defaults.headers.post["Content-Type"] = u, h && (V.defaults.headers.common.Authorization = h), null;
689
- }, Yr = ({ debug: r, resources: n, ...i }) => {
690
- const { libraries: u } = k(A), c = (i == null ? void 0 : i.i18) || (u == null ? void 0 : u.i18), { i18next: f, initReactI18next: v, languageDetector: s } = c || {};
686
+ const v = localStorage.getItem(o), f = v ? JSON.parse(v) : null, s = f != null && f[r] ? f[r] : null, E = f != null && f[i] ? f[i] : null, h = v ? `${s} ${E}` : null;
687
+ return k.defaults.baseURL = d, k.defaults.headers.post["Content-Type"] = u, h && (k.defaults.headers.common.Authorization = h), null;
688
+ }, Fr = ({ debug: r, resources: o, ...i }) => {
689
+ const { libraries: u } = I(D), c = (i == null ? void 0 : i.i18) || (u == null ? void 0 : u.i18), { i18next: d, initReactI18next: v, languageDetector: f } = c || {};
691
690
  if (!c)
692
691
  throw new Error("i18 is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
693
- return f != null && f.isInitialized || (f.use(s).use(v).init({
692
+ return d != null && d.isInitialized || (d.use(f).use(v).init({
694
693
  debug: r,
695
694
  fallbackLng: "en",
696
695
  interpolation: {
@@ -701,216 +700,215 @@ const A = vr({}), kr = ({ children: r, apiURL: n, libraries: i }) => {
701
700
  bindI18n: "languageChanged loaded",
702
701
  useSuspense: !0
703
702
  },
704
- resources: n,
703
+ resources: o,
705
704
  returnNull: !1
706
705
  }).then(() => {
707
- document.documentElement.lang !== f.resolvedLanguage && f.resolvedLanguage && document.documentElement.setAttribute("lang", f.resolvedLanguage);
708
- }), f.on("languageChanged", (l) => {
709
- document.documentElement.setAttribute("lang", l);
706
+ document.documentElement.lang !== d.resolvedLanguage && d.resolvedLanguage && document.documentElement.setAttribute("lang", d.resolvedLanguage);
707
+ }), d.on("languageChanged", (s) => {
708
+ document.documentElement.setAttribute("lang", s);
710
709
  })), null;
711
710
  }, Nr = ({
712
711
  dsn: r,
713
- integrations: n,
712
+ integrations: o,
714
713
  tracesSampleRate: i,
715
714
  replaysSessionSampleRate: u,
716
715
  replaysOnErrorSampleRate: c,
717
- tracePropagationTargets: f,
716
+ tracePropagationTargets: d,
718
717
  ignoreErrors: v,
719
- debug: s,
720
- environment: l,
718
+ debug: f,
719
+ environment: s,
721
720
  ...E
722
721
  }) => {
723
- const { libraries: h } = k(A), b = (E == null ? void 0 : E.sentry) || (h == null ? void 0 : h.sentry), R = (E == null ? void 0 : E.reactRouter) || (h == null ? void 0 : h.reactRouter);
724
- if (!b)
725
- throw new Error("Sentry is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
722
+ const { libraries: h } = I(D), R = (E == null ? void 0 : E.sentry) || (h == null ? void 0 : h.sentry), b = (E == null ? void 0 : E.reactRouter) || (h == null ? void 0 : h.reactRouter);
726
723
  if (!R)
724
+ throw new Error("Sentry is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
725
+ if (!b)
727
726
  throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
728
- if (b.isInitialized())
727
+ if (R.isInitialized())
729
728
  return null;
730
- const { createRoutesFromChildren: a, matchRoutes: j, useLocation: S, useNavigationType: T } = R;
731
- return (s || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && b.init({
732
- debug: s,
729
+ const { createRoutesFromChildren: a, matchRoutes: S, useLocation: j, useNavigationType: A } = b;
730
+ return (f || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && R.init({
731
+ debug: f,
733
732
  dsn: r,
734
- environment: l || "production",
733
+ environment: s || "production",
735
734
  ignoreErrors: [...v || [], /dynamically imported module/],
736
735
  integrations: [
737
- b.reactRouterV6BrowserTracingIntegration({
736
+ R.reactRouterV6BrowserTracingIntegration({
738
737
  createRoutesFromChildren: a,
739
- matchRoutes: j,
738
+ matchRoutes: S,
740
739
  useEffect: ee,
741
- useLocation: S,
742
- useNavigationType: T
740
+ useLocation: j,
741
+ useNavigationType: A
743
742
  }),
744
- ...n || []
743
+ ...o || []
745
744
  ],
746
745
  replaysOnErrorSampleRate: c || 1,
747
746
  replaysSessionSampleRate: u || 0.1,
748
- tracePropagationTargets: f,
747
+ tracePropagationTargets: d,
749
748
  tracesSampleRate: i || 1
750
749
  }), null;
751
- }, Wr = ({ IMaskMixin: r, ...n }) => {
750
+ }, Yr = ({ IMaskMixin: r, ...o }) => {
752
751
  const i = fe(
753
752
  // eslint-disable-next-line react/jsx-props-no-spreading
754
- () => r(({ TextField: u, ...c }) => /* @__PURE__ */ F.jsx(u, { ...c })),
753
+ () => r(({ TextField: u, ...c }) => /* @__PURE__ */ N.jsx(u, { ...c })),
755
754
  [r]
756
755
  );
757
- return /* @__PURE__ */ F.jsx(i, { ...n });
758
- }, Lr = ({ accessToken: r, ...n }) => {
759
- const { libraries: i } = k(A), u = (n == null ? void 0 : n.mapbox) || (i == null ? void 0 : i.mapbox);
756
+ return /* @__PURE__ */ N.jsx(i, { ...o });
757
+ }, Wr = ({ accessToken: r, ...o }) => {
758
+ const { libraries: i } = I(D), u = (o == null ? void 0 : o.mapbox) || (i == null ? void 0 : i.mapbox);
760
759
  if (!u)
761
760
  throw new Error("Mapbox is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
762
761
  return r && (u.accessToken = r), null;
763
- }, Vr = ({ language: r, ...n }) => {
764
- const { libraries: i } = k(A), u = (n == null ? void 0 : n.dayjs) || (i == null ? void 0 : i.dayjs), c = (n == null ? void 0 : n.plugin) || (i == null ? void 0 : i.dayjsPlugin);
762
+ }, Lr = ({ language: r, ...o }) => {
763
+ const { libraries: i } = I(D), u = (o == null ? void 0 : o.dayjs) || (i == null ? void 0 : i.dayjs), c = (o == null ? void 0 : o.plugin) || (i == null ? void 0 : i.dayjsPlugin);
765
764
  if (!u)
766
765
  throw new Error(
767
766
  "Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props of InitializeDaysJSConfig."
768
767
  );
769
768
  return ee(() => {
770
769
  (async () => {
771
- var s;
772
- const v = r || ((s = navigator.language) == null ? void 0 : s.slice(0, 2)) || "en";
773
- if (c && c.forEach((l) => {
774
- l && u.extend(l);
770
+ var f;
771
+ const v = r || ((f = navigator.language) == null ? void 0 : f.slice(0, 2)) || "en";
772
+ if (c && c.forEach((s) => {
773
+ s && u.extend(s);
775
774
  }), v === "fr") {
776
- const l = await import("dayjs/locale/fr");
777
- u.locale(l.default);
775
+ const s = await import("dayjs/locale/fr");
776
+ u.locale(s.default);
778
777
  }
779
778
  })().then();
780
779
  }, [u, c, r]), null;
781
- }, Rr = (r) => r && typeof r == "function", wr = (r) => r && typeof r == "function", zr = ({
780
+ }, Er = (r) => r && typeof r == "function", Rr = (r) => r && typeof r == "function", Vr = ({
782
781
  children: r,
783
- defaultQueriesOptions: n,
782
+ defaultQueriesOptions: o,
784
783
  defaultMutationsOptions: i,
785
784
  ...u
786
785
  }) => {
787
- var l, E;
788
- const { libraries: c } = k(A), f = (u == null ? void 0 : u.QueryClient) || ((l = c == null ? void 0 : c.reactQuery) == null ? void 0 : l.QueryClient), v = (u == null ? void 0 : u.QueryClientProvider) || ((E = c == null ? void 0 : c.reactQuery) == null ? void 0 : E.QueryClientProvider);
789
- if (!f)
786
+ var s, E;
787
+ const { libraries: c } = I(D), d = (u == null ? void 0 : u.QueryClient) || ((s = c == null ? void 0 : c.reactQuery) == null ? void 0 : s.QueryClient), v = (u == null ? void 0 : u.QueryClientProvider) || ((E = c == null ? void 0 : c.reactQuery) == null ? void 0 : E.QueryClientProvider);
788
+ if (!d)
790
789
  throw new Error("QueryClient is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
791
790
  if (!v)
792
791
  throw new Error("QueryClientProvider is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
793
- if (!Rr(v))
792
+ if (!Er(v))
794
793
  throw new Error("Provided QueryClientProvider dependencies are not valid.");
795
- if (!wr(f))
794
+ if (!Rr(d))
796
795
  throw new Error("Provided QueryClient dependencies are not valid.");
797
- const s = new f({
796
+ const f = new d({
798
797
  defaultOptions: {
799
798
  mutations: {
800
799
  ...i
801
800
  },
802
801
  queries: {
803
- getNextPageParam: (h, b, R) => h.length + (R || 0),
802
+ getNextPageParam: (h, R, b) => h.length + (b || 0),
804
803
  refetchOnWindowFocus: !1,
805
804
  retry: 3,
806
- ...n
805
+ ...o
807
806
  }
808
807
  }
809
808
  });
810
- return /* @__PURE__ */ F.jsx(v, { client: s, children: r });
811
- }, Mr = (r) => {
812
- var E, h, b;
813
- const { libraries: n } = k(A), i = (r == null ? void 0 : r.i18) || (n == null ? void 0 : n.i18), u = ((E = r == null ? void 0 : r.i18) == null ? void 0 : E.translateFunction) || ((h = n == null ? void 0 : n.i18) == null ? void 0 : h.translateFunction), c = ((b = i == null ? void 0 : i.i18next) == null ? void 0 : b.t) || u || ((R) => R), { unknownErrorTranslationKey: f = "error.unknownError" } = r || {}, v = c(f), s = se(
814
- (R) => {
815
- var j, S, T, D, w, Y, N, W, C;
816
- const { response: a } = R || {};
817
- return a != null && a.reason ? String(a.reason) : (j = a == null ? void 0 : a.data) != null && j.reason ? String(a.data.reason) : (S = a == null ? void 0 : a.data) != null && S.message ? String(a.data.message) : (D = (T = a == null ? void 0 : a.data) == null ? void 0 : T.detail) != null && D.length && Array.isArray((w = a == null ? void 0 : a.data) == null ? void 0 : w.detail) && ((N = (Y = a == null ? void 0 : a.data) == null ? void 0 : Y.detail[0]) != null && N.msg) && typeof ((C = (W = a == null ? void 0 : a.data) == null ? void 0 : W.detail[0]) == null ? void 0 : C.msg) == "string" ? String(a.data.detail[0].msg) : v;
809
+ return /* @__PURE__ */ N.jsx(v, { client: f, children: r });
810
+ }, zr = (r) => {
811
+ var E, h, R;
812
+ const { libraries: o } = I(D), i = (r == null ? void 0 : r.i18) || (o == null ? void 0 : o.i18), u = ((E = r == null ? void 0 : r.i18) == null ? void 0 : E.translateFunction) || ((h = o == null ? void 0 : o.i18) == null ? void 0 : h.translateFunction), c = ((R = i == null ? void 0 : i.i18next) == null ? void 0 : R.t) || u || ((b) => b), { unknownErrorTranslationKey: d = "error.unknownError" } = r || {}, v = c(d), f = se(
813
+ (b) => {
814
+ var S, j, A, x, w, Y, W, C, M;
815
+ const { response: a } = b || {};
816
+ return a != null && a.reason ? String(a.reason) : (S = a == null ? void 0 : a.data) != null && S.reason ? String(a.data.reason) : (j = a == null ? void 0 : a.data) != null && j.message ? String(a.data.message) : (x = (A = a == null ? void 0 : a.data) == null ? void 0 : A.detail) != null && x.length && Array.isArray((w = a == null ? void 0 : a.data) == null ? void 0 : w.detail) && ((W = (Y = a == null ? void 0 : a.data) == null ? void 0 : Y.detail[0]) != null && W.msg) && typeof ((M = (C = a == null ? void 0 : a.data) == null ? void 0 : C.detail[0]) == null ? void 0 : M.msg) == "string" ? String(a.data.detail[0].msg) : v;
818
817
  },
819
818
  [v]
820
819
  );
821
- return { getErrorCode: se((R) => {
822
- var j, S, T;
823
- const { response: a } = R || {};
824
- return a != null && a.error_code ? String(a == null ? void 0 : a.error_code) : (j = a == null ? void 0 : a.data) != null && j.error_code ? String((S = a == null ? void 0 : a.data) == null ? void 0 : S.error_code) : a != null && a.error_code ? String(a == null ? void 0 : a.error_code) : (T = a == null ? void 0 : a.data) != null && T.error_code ? String(a.data.error_code) : "unknown_error_code";
825
- }, []), printError: s };
826
- }, Ur = ({
820
+ return { getErrorCode: se((b) => {
821
+ var S, j, A;
822
+ const { response: a } = b || {};
823
+ return a != null && a.error_code ? String(a == null ? void 0 : a.error_code) : (S = a == null ? void 0 : a.data) != null && S.error_code ? String((j = a == null ? void 0 : a.data) == null ? void 0 : j.error_code) : a != null && a.error_code ? String(a == null ? void 0 : a.error_code) : (A = a == null ? void 0 : a.data) != null && A.error_code ? String(a.data.error_code) : "unknown_error_code";
824
+ }, []), printError: f };
825
+ }, Mr = ({
827
826
  data: r,
828
- fetchNextPage: n,
827
+ fetchNextPage: o,
829
828
  isFetchingNextPage: i,
830
829
  isInitialLoading: u,
831
830
  isLoading: c,
832
- enabled: f = !0
831
+ enabled: d = !0
833
832
  }) => {
834
833
  const v = se(
835
- async (l) => {
836
- i || !f || await n({ pageParam: (l == null ? void 0 : l.pageParam) || l.visibleRowsCount });
834
+ async (s) => {
835
+ i || !d || await o({ pageParam: (s == null ? void 0 : s.pageParam) || s.visibleRowsCount });
837
836
  },
838
- [f, n, i]
839
- ), s = fe(() => {
837
+ [d, o, i]
838
+ ), f = fe(() => {
840
839
  if (r)
841
- return r.pages.reduce((l, E) => [...l, ...E], []);
840
+ return r.pages.reduce((s, E) => [...s, ...E], []);
842
841
  }, [r]);
843
842
  return {
844
843
  fetchNextPageOnRowsScrollEnd: v,
845
844
  isLoading: i || c,
846
845
  loadingVariant: u ? "skeleton" : "linear",
847
- rows: s
846
+ rows: f
848
847
  };
849
- }, qr = (r) => {
850
- const { libraries: n } = k(A), i = (r == null ? void 0 : r.axios) || (n == null ? void 0 : n.axios);
851
- if (!i)
848
+ }, Ur = () => {
849
+ if (!k)
852
850
  throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in params of useAuth.");
853
851
  return {
854
852
  clearAuthenticationToken: () => {
855
- i.defaults.headers.common.Authorization = null;
853
+ k.defaults.headers.common.Authorization = null;
856
854
  },
857
- setAuthenticationToken: ({ tokenType: f, accessToken: v }) => {
858
- i.defaults.headers.common.Authorization = `${f} ${v}`;
855
+ setAuthenticationToken: ({ tokenType: i, accessToken: u }) => {
856
+ k.defaults.headers.common.Authorization = `${i} ${u}`;
859
857
  }
860
858
  };
861
- }, _r = ({ library: r, date: n, format: i = "ll" }) => r(n).format(i), br = (r, n = "km") => {
859
+ }, wr = ({ library: r, date: o, format: i = "ll" }) => r(o).format(i), _r = (r, o = "km") => {
862
860
  const i = Number(r);
863
- return Number.isNaN(i) ? `0 ${n}` : `${i.toFixed(2)} ${n}`;
864
- }, Cr = (r) => r != null && r.startsWith("/") ? r != null && r.startsWith("/files") ? r : `/files${r}` : r != null && r.startsWith("files") ? `/${r}` : r != null && r.startsWith("files") ? `/${r}` : `/files/${r}`, Pr = ({ path: r, size: n, apiURL: i }) => {
861
+ return Number.isNaN(i) ? `0 ${o}` : `${i.toFixed(2)} ${o}`;
862
+ }, br = (r) => r != null && r.startsWith("/") ? r != null && r.startsWith("/files") ? r : `/files${r}` : r != null && r.startsWith("files") ? `/${r}` : r != null && r.startsWith("files") ? `/${r}` : `/files/${r}`, Cr = ({ path: r, size: o, apiURL: i }) => {
865
863
  if (!r)
866
864
  return "";
867
- const u = Cr(r), c = `${i}${u}`, f = c.match(/\.(jpeg|jpg|png|gif|bmp|webp|svg|avif)$/) !== null;
868
- return typeof n == "number" && f ? `${c.replace("/files", `/thumbs/${n}`)}` : c;
869
- }, Br = (r) => {
870
- const { apiURL: n, libraries: i } = k(A), u = (r == null ? void 0 : r.dayjs) || (i == null ? void 0 : i.dayjs);
865
+ const u = br(r), c = `${i}${u}`, d = c.match(/\.(jpeg|jpg|png|gif|bmp|webp|svg|avif)$/) !== null;
866
+ return typeof o == "number" && d ? `${c.replace("/files", `/thumbs/${o}`)}` : c;
867
+ }, qr = (r) => {
868
+ const { apiURL: o, libraries: i } = I(D), u = (r == null ? void 0 : r.dayjs) || (i == null ? void 0 : i.dayjs);
871
869
  return {
872
- dateAdapter: (v, s) => {
870
+ dateAdapter: (v, f) => {
873
871
  if (!u)
874
872
  throw new Error("Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
875
- return _r({
873
+ return wr({
876
874
  date: v,
877
- format: s,
875
+ format: f,
878
876
  library: u
879
877
  });
880
878
  },
881
- distanceAdapter: br,
882
- filePathAdapter: (v, s) => {
883
- if (!n)
879
+ distanceAdapter: _r,
880
+ filePathAdapter: (v, f) => {
881
+ if (!o)
884
882
  throw new Error(
885
883
  "API URL is not provided. You can provide it with InjectDependenciesProvider or directly in props to filePathAdapter."
886
884
  );
887
- return Pr({
888
- apiURL: n,
885
+ return Cr({
886
+ apiURL: o,
889
887
  path: v,
890
- size: s
888
+ size: f
891
889
  });
892
890
  }
893
891
  };
894
- }, jr = (r) => r.charAt(0).toUpperCase() + r.slice(1).toLowerCase(), Tr = (r) => {
895
- const u = r.split("/").filter((c) => c.length > 0).map((c) => c.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((l) => l.charAt(0).toUpperCase() + l.slice(1)).join("")).join("");
892
+ }, Pr = (r) => r.charAt(0).toUpperCase() + r.slice(1).toLowerCase(), jr = (r) => {
893
+ const u = r.split("/").filter((c) => c.length > 0).map((c) => c.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((s) => s.charAt(0).toUpperCase() + s.slice(1)).join("")).join("");
896
894
  return u.charAt(0).toLowerCase() + u.slice(1);
897
- }, xr = (r) => (r.split("/").pop() || r).replace(/\.json$/, "").replace(/^openapi\./, ""), Sr = (r, n, i) => {
898
- const u = Tr(n), c = jr(i);
895
+ }, Tr = (r) => (r.split("/").pop() || r).replace(/\.json$/, "").replace(/^openapi\./, ""), Sr = (r, o, i) => {
896
+ const u = jr(o), c = Pr(i);
899
897
  return `${u}${c}`;
900
- }, Or = (r) => {
898
+ }, xr = (r) => {
901
899
  if (r)
902
- return (r == null ? void 0 : r.reduce((n, i) => (n[i] = {
900
+ return (r == null ? void 0 : r.reduce((o, i) => (o[i] = {
903
901
  query: {
904
902
  useInfinite: !0,
905
903
  useInfiniteQueryParam: "offset",
906
904
  useQuery: !0
907
905
  }
908
- }, n), {})) || {};
909
- }, Gr = (r) => (Array.isArray(r) ? r : [r]).reduce((i, u) => {
910
- const { output: c, operationsToGenerateInfiniteQueryHook: f, input: v = "./openapi.json" } = u || {}, s = xr(v);
906
+ }, o), {})) || {};
907
+ }, Br = (r) => (Array.isArray(r) ? r : [r]).reduce((i, u) => {
908
+ const { output: c, operationsToGenerateInfiniteQueryHook: d, input: v = "./openapi.json" } = u || {}, f = Tr(v);
911
909
  return {
912
910
  ...i,
913
- [s]: {
911
+ [f]: {
914
912
  hooks: {
915
913
  afterAllFilesWrite: "prettier src/api/ --write"
916
914
  },
@@ -920,11 +918,11 @@ const A = vr({}), kr = ({ children: r, apiURL: n, libraries: i }) => {
920
918
  client: "react-query",
921
919
  mode: "tags-split",
922
920
  override: {
923
- ...(f == null ? void 0 : f.length) && { operations: Or(f) },
924
- header: (l) => [
921
+ ...(d == null ? void 0 : d.length) && { operations: xr(d) },
922
+ header: (s) => [
925
923
  "Generated by orval 🍺",
926
- ...l.title ? [l.title] : [],
927
- ...l.description ? [l.description] : []
924
+ ...s.title ? [s.title] : [],
925
+ ...s.description ? [s.description] : []
928
926
  ],
929
927
  mutator: {
930
928
  name: "axiosCustomInstance",
@@ -935,30 +933,30 @@ const A = vr({}), kr = ({ children: r, apiURL: n, libraries: i }) => {
935
933
  useQuery: !0
936
934
  }
937
935
  },
938
- schemas: (c == null ? void 0 : c.schemas) || `src/api/${s}/model`,
939
- target: (c == null ? void 0 : c.target) || `src/api/${s}/services/api.ts`,
936
+ schemas: (c == null ? void 0 : c.schemas) || `src/api/${f}/model`,
937
+ target: (c == null ? void 0 : c.target) || `src/api/${f}/services/api.ts`,
940
938
  ...c
941
939
  }
942
940
  }
943
941
  };
944
942
  }, {});
945
943
  export {
946
- $r as GTMSendPageView,
947
- Fr as InitializeAxiosConfig,
948
- Vr as InitializeDaysJSConfig,
949
- Yr as InitializeI18nConfig,
950
- Lr as InitializeMapBoxConfig,
944
+ Ir as GTMSendPageView,
945
+ $r as InitializeAxiosConfig,
946
+ Lr as InitializeDaysJSConfig,
947
+ Fr as InitializeI18nConfig,
948
+ Wr as InitializeMapBoxConfig,
951
949
  Nr as InitializeSentryConfig,
952
- A as InjectDependenciesContext,
953
- kr as InjectDependenciesProvider,
954
- Wr as MaskTextField,
955
- zr as QueryClientProviderWithConfig,
956
- Ir as RequireAuth,
957
- _r as dateAdapter,
958
- br as distanceAdapter,
959
- Gr as getOrvalConfig,
960
- Br as useAdapter,
961
- qr as useAuth,
962
- Ur as useInfiniteDataGrid,
963
- Mr as useResponseError
950
+ D as InjectDependenciesContext,
951
+ Dr as InjectDependenciesProvider,
952
+ Yr as MaskTextField,
953
+ Vr as QueryClientProviderWithConfig,
954
+ kr as RequireAuth,
955
+ wr as dateAdapter,
956
+ _r as distanceAdapter,
957
+ Br as getOrvalConfig,
958
+ qr as useAdapter,
959
+ Ur as useAuth,
960
+ Mr as useInfiniteDataGrid,
961
+ zr as useResponseError
964
962
  };