@tracktor/shared-module 2.0.0-beta.10 → 2.0.0-beta.11

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,4 +1,4 @@
1
- import We, { createContext as vt, useMemo as le, useContext as k, useState as gt, useRef as ht, useEffect as Z, Suspense as yt, useCallback as ce } from "react";
1
+ import Ne, { createContext as dt, useMemo as le, useContext as k, useState as vt, useRef as gt, useEffect as Z, Suspense as yt, useCallback as ce } from "react";
2
2
  var se = { exports: {} }, B = {};
3
3
  /**
4
4
  * @license React
@@ -10,46 +10,46 @@ var se = { exports: {} }, B = {};
10
10
  * LICENSE file in the root directory of this source tree.
11
11
  */
12
12
  var Fe;
13
- function mt() {
13
+ function ht() {
14
14
  return Fe || (Fe = 1, process.env.NODE_ENV !== "production" && function() {
15
- var n = We, r = Symbol.for("react.element"), i = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), c = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), u = Symbol.for("react.offscreen"), j = Symbol.iterator, x = "@@iterator";
15
+ var r = Ne, n = Symbol.for("react.element"), i = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), v = Symbol.for("react.provider"), c = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), u = Symbol.for("react.offscreen"), j = Symbol.iterator, x = "@@iterator";
16
16
  function T(e) {
17
17
  if (e === null || typeof e != "object")
18
18
  return null;
19
19
  var t = j && e[j] || e[x];
20
20
  return typeof t == "function" ? t : null;
21
21
  }
22
- var D = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
22
+ var D = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
23
23
  function _(e) {
24
24
  {
25
- for (var t = arguments.length, o = new Array(t > 1 ? t - 1 : 0), l = 1; l < t; l++)
26
- o[l - 1] = arguments[l];
25
+ for (var t = arguments.length, o = new Array(t > 1 ? t - 1 : 0), f = 1; f < t; f++)
26
+ o[f - 1] = arguments[f];
27
27
  Y("error", e, o);
28
28
  }
29
29
  }
30
30
  function Y(e, t, o) {
31
31
  {
32
- var l = D.ReactDebugCurrentFrame, m = l.getStackAddendum();
32
+ var f = D.ReactDebugCurrentFrame, m = f.getStackAddendum();
33
33
  m !== "" && (t += "%s", o = o.concat([m]));
34
- var E = o.map(function(h) {
35
- return String(h);
34
+ var R = o.map(function(y) {
35
+ return String(y);
36
36
  });
37
- E.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, E);
37
+ R.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, R);
38
38
  }
39
39
  }
40
- var N = !1, W = !1, b = !1, fe = !1, de = !1, z;
41
- z = Symbol.for("react.module.reference");
42
- function Le(e) {
43
- return !!(typeof e == "string" || typeof e == "function" || e === a || e === v || de || e === f || e === y || e === p || fe || e === u || N || W || b || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === w || e.$$typeof === d || e.$$typeof === c || e.$$typeof === s || // This needs to include all possible module reference object
40
+ var N = !1, W = !1, b = !1, fe = !1, de = !1, M;
41
+ M = Symbol.for("react.module.reference");
42
+ function We(e) {
43
+ return !!(typeof e == "string" || typeof e == "function" || e === a || e === d || de || e === l || e === h || e === E || fe || e === u || N || W || b || typeof e == "object" && e !== null && (e.$$typeof === p || e.$$typeof === w || e.$$typeof === v || e.$$typeof === c || e.$$typeof === s || // This needs to include all possible module reference object
44
44
  // types supported by any Flight configuration anywhere since
45
45
  // we don't know which Flight build this will end up being used
46
46
  // with.
47
- e.$$typeof === z || e.getModuleId !== void 0));
47
+ e.$$typeof === M || e.getModuleId !== void 0));
48
48
  }
49
- function Ve(e, t, o) {
50
- var l = e.displayName;
51
- if (l)
52
- return l;
49
+ function Le(e, t, o) {
50
+ var f = e.displayName;
51
+ if (f)
52
+ return f;
53
53
  var m = t.displayName || t.name || "";
54
54
  return m !== "" ? o + "(" + m + ")" : o;
55
55
  }
@@ -68,13 +68,13 @@ function mt() {
68
68
  return "Fragment";
69
69
  case i:
70
70
  return "Portal";
71
- case v:
71
+ case d:
72
72
  return "Profiler";
73
- case f:
73
+ case l:
74
74
  return "StrictMode";
75
- case y:
75
+ case h:
76
76
  return "Suspense";
77
- case p:
77
+ case E:
78
78
  return "SuspenseList";
79
79
  }
80
80
  if (typeof e == "object")
@@ -82,18 +82,18 @@ function mt() {
82
82
  case c:
83
83
  var t = e;
84
84
  return ve(t) + ".Consumer";
85
- case d:
85
+ case v:
86
86
  var o = e;
87
87
  return ve(o._context) + ".Provider";
88
88
  case s:
89
- return Ve(e, e.render, "ForwardRef");
89
+ return Le(e, e.render, "ForwardRef");
90
90
  case w:
91
- var l = e.displayName || null;
92
- return l !== null ? l : I(e.type) || "Memo";
93
- case R: {
94
- var m = e, E = m._payload, h = m._init;
91
+ var f = e.displayName || null;
92
+ return f !== null ? f : I(e.type) || "Memo";
93
+ case p: {
94
+ var m = e, R = m._payload, y = m._init;
95
95
  try {
96
- return I(h(E));
96
+ return I(y(R));
97
97
  } catch {
98
98
  return null;
99
99
  }
@@ -101,14 +101,14 @@ function mt() {
101
101
  }
102
102
  return null;
103
103
  }
104
- var L = Object.assign, U = 0, ge, he, ye, me, pe, Ee, Re;
104
+ var L = Object.assign, U = 0, ge, ye, he, me, Ee, Re, pe;
105
105
  function we() {
106
106
  }
107
107
  we.__reactDisabledLog = !0;
108
- function Me() {
108
+ function Ve() {
109
109
  {
110
110
  if (U === 0) {
111
- ge = console.log, he = console.info, ye = console.warn, me = console.error, pe = console.group, Ee = console.groupCollapsed, Re = console.groupEnd;
111
+ ge = console.log, ye = console.info, he = console.warn, me = console.error, Ee = console.group, Re = console.groupCollapsed, pe = console.groupEnd;
112
112
  var e = {
113
113
  configurable: !0,
114
114
  enumerable: !0,
@@ -141,22 +141,22 @@ function mt() {
141
141
  value: ge
142
142
  }),
143
143
  info: L({}, e, {
144
- value: he
144
+ value: ye
145
145
  }),
146
146
  warn: L({}, e, {
147
- value: ye
147
+ value: he
148
148
  }),
149
149
  error: L({}, e, {
150
150
  value: me
151
151
  }),
152
152
  group: L({}, e, {
153
- value: pe
153
+ value: Ee
154
154
  }),
155
155
  groupCollapsed: L({}, e, {
156
- value: Ee
156
+ value: Re
157
157
  }),
158
158
  groupEnd: L({}, e, {
159
- value: Re
159
+ value: pe
160
160
  })
161
161
  });
162
162
  }
@@ -170,8 +170,8 @@ function mt() {
170
170
  try {
171
171
  throw Error();
172
172
  } catch (m) {
173
- var l = m.stack.trim().match(/\n( *(at )?)/);
174
- te = l && l[1] || "";
173
+ var f = m.stack.trim().match(/\n( *(at )?)/);
174
+ te = f && f[1] || "";
175
175
  }
176
176
  return `
177
177
  ` + te + e;
@@ -179,8 +179,8 @@ function mt() {
179
179
  }
180
180
  var re = !1, J;
181
181
  {
182
- var Ue = typeof WeakMap == "function" ? WeakMap : Map;
183
- J = new Ue();
182
+ var Me = typeof WeakMap == "function" ? WeakMap : Map;
183
+ J = new Me();
184
184
  }
185
185
  function _e(e, t) {
186
186
  if (!e || re)
@@ -190,48 +190,48 @@ function mt() {
190
190
  if (o !== void 0)
191
191
  return o;
192
192
  }
193
- var l;
193
+ var f;
194
194
  re = !0;
195
195
  var m = Error.prepareStackTrace;
196
196
  Error.prepareStackTrace = void 0;
197
- var E;
198
- E = ee.current, ee.current = null, Me();
197
+ var R;
198
+ R = ee.current, ee.current = null, Ve();
199
199
  try {
200
200
  if (t) {
201
- var h = function() {
201
+ var y = function() {
202
202
  throw Error();
203
203
  };
204
- if (Object.defineProperty(h.prototype, "props", {
204
+ if (Object.defineProperty(y.prototype, "props", {
205
205
  set: function() {
206
206
  throw Error();
207
207
  }
208
208
  }), typeof Reflect == "object" && Reflect.construct) {
209
209
  try {
210
- Reflect.construct(h, []);
210
+ Reflect.construct(y, []);
211
211
  } catch ($) {
212
- l = $;
212
+ f = $;
213
213
  }
214
- Reflect.construct(e, [], h);
214
+ Reflect.construct(e, [], y);
215
215
  } else {
216
216
  try {
217
- h.call();
217
+ y.call();
218
218
  } catch ($) {
219
- l = $;
219
+ f = $;
220
220
  }
221
- e.call(h.prototype);
221
+ e.call(y.prototype);
222
222
  }
223
223
  } else {
224
224
  try {
225
225
  throw Error();
226
226
  } catch ($) {
227
- l = $;
227
+ f = $;
228
228
  }
229
229
  e();
230
230
  }
231
231
  } catch ($) {
232
- if ($ && l && typeof $.stack == "string") {
232
+ if ($ && f && typeof $.stack == "string") {
233
233
  for (var g = $.stack.split(`
234
- `), S = l.stack.split(`
234
+ `), S = f.stack.split(`
235
235
  `), C = g.length - 1, P = S.length - 1; C >= 1 && P >= 0 && g[C] !== S[P]; )
236
236
  P--;
237
237
  for (; C >= 1 && P >= 0; C--, P--)
@@ -248,15 +248,15 @@ function mt() {
248
248
  }
249
249
  }
250
250
  } finally {
251
- re = !1, ee.current = E, ze(), Error.prepareStackTrace = m;
251
+ re = !1, ee.current = R, ze(), Error.prepareStackTrace = m;
252
252
  }
253
- var M = e ? e.displayName || e.name : "", $e = M ? Q(M) : "";
253
+ var z = e ? e.displayName || e.name : "", $e = z ? Q(z) : "";
254
254
  return typeof e == "function" && J.set(e, $e), $e;
255
255
  }
256
- function qe(e, t, o) {
256
+ function Ue(e, t, o) {
257
257
  return _e(e, !1);
258
258
  }
259
- function Be(e) {
259
+ function qe(e) {
260
260
  var t = e.prototype;
261
261
  return !!(t && t.isReactComponent);
262
262
  }
@@ -264,25 +264,25 @@ function mt() {
264
264
  if (e == null)
265
265
  return "";
266
266
  if (typeof e == "function")
267
- return _e(e, Be(e));
267
+ return _e(e, qe(e));
268
268
  if (typeof e == "string")
269
269
  return Q(e);
270
270
  switch (e) {
271
- case y:
271
+ case h:
272
272
  return Q("Suspense");
273
- case p:
273
+ case E:
274
274
  return Q("SuspenseList");
275
275
  }
276
276
  if (typeof e == "object")
277
277
  switch (e.$$typeof) {
278
278
  case s:
279
- return qe(e.render);
279
+ return Ue(e.render);
280
280
  case w:
281
281
  return X(e.type, t, o);
282
- case R: {
283
- var l = e, m = l._payload, E = l._init;
282
+ case p: {
283
+ var f = e, m = f._payload, R = f._init;
284
284
  try {
285
- return X(E(m), t, o);
285
+ return X(R(m), t, o);
286
286
  } catch {
287
287
  }
288
288
  }
@@ -297,36 +297,36 @@ function mt() {
297
297
  } else
298
298
  be.setExtraStackFrame(null);
299
299
  }
300
- function Ge(e, t, o, l, m) {
300
+ function Be(e, t, o, f, m) {
301
301
  {
302
- var E = Function.call.bind(H);
303
- for (var h in e)
304
- if (E(e, h)) {
302
+ var R = Function.call.bind(H);
303
+ for (var y in e)
304
+ if (R(e, y)) {
305
305
  var g = void 0;
306
306
  try {
307
- if (typeof e[h] != "function") {
308
- var S = Error((l || "React class") + ": " + o + " 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`.");
307
+ if (typeof e[y] != "function") {
308
+ var S = Error((f || "React class") + ": " + o + " type `" + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
309
309
  throw S.name = "Invariant Violation", S;
310
310
  }
311
- g = e[h](t, h, l, o, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
311
+ g = e[y](t, y, f, o, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
312
312
  } catch (C) {
313
313
  g = C;
314
314
  }
315
- g && !(g instanceof Error) && (K(m), _("%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", o, h, typeof g), K(null)), g instanceof Error && !(g.message in Ce) && (Ce[g.message] = !0, K(m), _("Failed %s type: %s", o, g.message), K(null));
315
+ g && !(g instanceof Error) && (K(m), _("%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).", f || "React class", o, y, typeof g), K(null)), g instanceof Error && !(g.message in Ce) && (Ce[g.message] = !0, K(m), _("Failed %s type: %s", o, g.message), K(null));
316
316
  }
317
317
  }
318
318
  }
319
- var Qe = Array.isArray;
319
+ var Ge = Array.isArray;
320
320
  function ne(e) {
321
- return Qe(e);
321
+ return Ge(e);
322
322
  }
323
- function Je(e) {
323
+ function Qe(e) {
324
324
  {
325
325
  var t = typeof Symbol == "function" && Symbol.toStringTag, o = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
326
326
  return o;
327
327
  }
328
328
  }
329
- function Xe(e) {
329
+ function Je(e) {
330
330
  try {
331
331
  return Pe(e), !1;
332
332
  } catch {
@@ -337,17 +337,17 @@ function mt() {
337
337
  return "" + e;
338
338
  }
339
339
  function je(e) {
340
- if (Xe(e))
341
- return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)), Pe(e);
340
+ if (Je(e))
341
+ return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Qe(e)), Pe(e);
342
342
  }
343
- var q = D.ReactCurrentOwner, He = {
343
+ var q = D.ReactCurrentOwner, Xe = {
344
344
  key: !0,
345
345
  ref: !0,
346
346
  __self: !0,
347
347
  __source: !0
348
348
  }, Te, Se, oe;
349
349
  oe = {};
350
- function Ke(e) {
350
+ function He(e) {
351
351
  if (H.call(e, "ref")) {
352
352
  var t = Object.getOwnPropertyDescriptor(e, "ref").get;
353
353
  if (t && t.isReactWarning)
@@ -355,7 +355,7 @@ function mt() {
355
355
  }
356
356
  return e.ref !== void 0;
357
357
  }
358
- function Ze(e) {
358
+ function Ke(e) {
359
359
  if (H.call(e, "key")) {
360
360
  var t = Object.getOwnPropertyDescriptor(e, "key").get;
361
361
  if (t && t.isReactWarning)
@@ -363,13 +363,13 @@ function mt() {
363
363
  }
364
364
  return e.key !== void 0;
365
365
  }
366
- function et(e, t) {
366
+ function Ze(e, t) {
367
367
  if (typeof e.ref == "string" && q.current && t && q.current.stateNode !== t) {
368
368
  var o = I(q.current.type);
369
369
  oe[o] || (_('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), oe[o] = !0);
370
370
  }
371
371
  }
372
- function tt(e, t) {
372
+ function et(e, t) {
373
373
  {
374
374
  var o = function() {
375
375
  Te || (Te = !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)", t));
@@ -380,7 +380,7 @@ function mt() {
380
380
  });
381
381
  }
382
382
  }
383
- function rt(e, t) {
383
+ function tt(e, t) {
384
384
  {
385
385
  var o = function() {
386
386
  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)", t));
@@ -391,17 +391,17 @@ function mt() {
391
391
  });
392
392
  }
393
393
  }
394
- var nt = function(e, t, o, l, m, E, h) {
394
+ var rt = function(e, t, o, f, m, R, y) {
395
395
  var g = {
396
396
  // This tag allows us to uniquely identify this as a React Element
397
- $$typeof: r,
397
+ $$typeof: n,
398
398
  // Built-in properties that belong on the element
399
399
  type: e,
400
400
  key: t,
401
401
  ref: o,
402
- props: h,
402
+ props: y,
403
403
  // Record the component responsible for creating this element.
404
- _owner: E
404
+ _owner: R
405
405
  };
406
406
  return g._store = {}, Object.defineProperty(g._store, "validated", {
407
407
  configurable: !1,
@@ -412,7 +412,7 @@ function mt() {
412
412
  configurable: !1,
413
413
  enumerable: !1,
414
414
  writable: !1,
415
- value: l
415
+ value: f
416
416
  }), Object.defineProperty(g, "_source", {
417
417
  configurable: !1,
418
418
  enumerable: !1,
@@ -420,22 +420,22 @@ function mt() {
420
420
  value: m
421
421
  }), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
422
422
  };
423
- function ot(e, t, o, l, m) {
423
+ function nt(e, t, o, f, m) {
424
424
  {
425
- var E, h = {}, g = null, S = null;
426
- o !== void 0 && (je(o), g = "" + o), Ze(t) && (je(t.key), g = "" + t.key), Ke(t) && (S = t.ref, et(t, m));
427
- for (E in t)
428
- H.call(t, E) && !He.hasOwnProperty(E) && (h[E] = t[E]);
425
+ var R, y = {}, g = null, S = null;
426
+ o !== void 0 && (je(o), g = "" + o), Ke(t) && (je(t.key), g = "" + t.key), He(t) && (S = t.ref, Ze(t, m));
427
+ for (R in t)
428
+ H.call(t, R) && !Xe.hasOwnProperty(R) && (y[R] = t[R]);
429
429
  if (e && e.defaultProps) {
430
430
  var C = e.defaultProps;
431
- for (E in C)
432
- h[E] === void 0 && (h[E] = C[E]);
431
+ for (R in C)
432
+ y[R] === void 0 && (y[R] = C[R]);
433
433
  }
434
434
  if (g || S) {
435
435
  var P = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
436
- g && tt(h, P), S && rt(h, P);
436
+ g && et(y, P), S && tt(y, P);
437
437
  }
438
- return nt(e, g, S, m, l, q.current, h);
438
+ return rt(e, g, S, m, f, q.current, y);
439
439
  }
440
440
  }
441
441
  var ie = D.ReactCurrentOwner, xe = D.ReactDebugCurrentFrame;
@@ -449,7 +449,7 @@ function mt() {
449
449
  var ae;
450
450
  ae = !1;
451
451
  function ue(e) {
452
- return typeof e == "object" && e !== null && e.$$typeof === r;
452
+ return typeof e == "object" && e !== null && e.$$typeof === n;
453
453
  }
454
454
  function Oe() {
455
455
  {
@@ -463,7 +463,7 @@ Check the render method of \`` + e + "`.";
463
463
  return "";
464
464
  }
465
465
  }
466
- function it(e) {
466
+ function ot(e) {
467
467
  {
468
468
  if (e !== void 0) {
469
469
  var t = e.fileName.replace(/^.*[\\\/]/, ""), o = e.lineNumber;
@@ -475,7 +475,7 @@ Check your code at ` + t + ":" + o + ".";
475
475
  }
476
476
  }
477
477
  var Ae = {};
478
- function at(e) {
478
+ function it(e) {
479
479
  {
480
480
  var t = Oe();
481
481
  if (!t) {
@@ -492,12 +492,12 @@ Check the top-level render call using <` + o + ">.");
492
492
  if (!e._store || e._store.validated || e.key != null)
493
493
  return;
494
494
  e._store.validated = !0;
495
- var o = at(t);
495
+ var o = it(t);
496
496
  if (Ae[o])
497
497
  return;
498
498
  Ae[o] = !0;
499
- var l = "";
500
- e && e._owner && e._owner !== ie.current && (l = " It was passed a child from " + I(e._owner.type) + "."), V(e), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', o, l), V(null);
499
+ var f = "";
500
+ e && e._owner && e._owner !== ie.current && (f = " It was passed a child from " + I(e._owner.type) + "."), V(e), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', o, f), V(null);
501
501
  }
502
502
  }
503
503
  function ke(e, t) {
@@ -506,20 +506,20 @@ Check the top-level render call using <` + o + ">.");
506
506
  return;
507
507
  if (ne(e))
508
508
  for (var o = 0; o < e.length; o++) {
509
- var l = e[o];
510
- ue(l) && De(l, t);
509
+ var f = e[o];
510
+ ue(f) && De(f, t);
511
511
  }
512
512
  else if (ue(e))
513
513
  e._store && (e._store.validated = !0);
514
514
  else if (e) {
515
515
  var m = T(e);
516
516
  if (typeof m == "function" && m !== e.entries)
517
- for (var E = m.call(e), h; !(h = E.next()).done; )
518
- ue(h.value) && De(h.value, t);
517
+ for (var R = m.call(e), y; !(y = R.next()).done; )
518
+ ue(y.value) && De(y.value, t);
519
519
  }
520
520
  }
521
521
  }
522
- function ut(e) {
522
+ function at(e) {
523
523
  {
524
524
  var t = e.type;
525
525
  if (t == null || typeof t == "string")
@@ -534,8 +534,8 @@ Check the top-level render call using <` + o + ">.");
534
534
  else
535
535
  return;
536
536
  if (o) {
537
- var l = I(t);
538
- Ge(o, e.props, "prop", l, e);
537
+ var f = I(t);
538
+ Be(o, e.props, "prop", f, e);
539
539
  } else if (t.PropTypes !== void 0 && !ae) {
540
540
  ae = !0;
541
541
  var m = I(t);
@@ -544,56 +544,56 @@ Check the top-level render call using <` + o + ">.");
544
544
  typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
545
545
  }
546
546
  }
547
- function ct(e) {
547
+ function ut(e) {
548
548
  {
549
549
  for (var t = Object.keys(e.props), o = 0; o < t.length; o++) {
550
- var l = t[o];
551
- if (l !== "children" && l !== "key") {
552
- V(e), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", l), V(null);
550
+ var f = t[o];
551
+ if (f !== "children" && f !== "key") {
552
+ V(e), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", f), V(null);
553
553
  break;
554
554
  }
555
555
  }
556
556
  e.ref !== null && (V(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), V(null));
557
557
  }
558
558
  }
559
- function Ie(e, t, o, l, m, E) {
559
+ function Ie(e, t, o, f, m, R) {
560
560
  {
561
- var h = Le(e);
562
- if (!h) {
561
+ var y = We(e);
562
+ if (!y) {
563
563
  var g = "";
564
564
  (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.");
565
- var S = it(m);
565
+ var S = ot(m);
566
566
  S ? g += S : g += Oe();
567
567
  var C;
568
- e === null ? C = "null" : ne(e) ? C = "array" : e !== void 0 && e.$$typeof === r ? (C = "<" + (I(e.type) || "Unknown") + " />", g = " 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, g);
568
+ e === null ? C = "null" : ne(e) ? C = "array" : e !== void 0 && e.$$typeof === n ? (C = "<" + (I(e.type) || "Unknown") + " />", g = " 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, g);
569
569
  }
570
- var P = ot(e, t, o, m, E);
570
+ var P = nt(e, t, o, m, R);
571
571
  if (P == null)
572
572
  return P;
573
- if (h) {
573
+ if (y) {
574
574
  var O = t.children;
575
575
  if (O !== void 0)
576
- if (l)
576
+ if (f)
577
577
  if (ne(O)) {
578
- for (var M = 0; M < O.length; M++)
579
- ke(O[M], e);
578
+ for (var z = 0; z < O.length; z++)
579
+ ke(O[z], e);
580
580
  Object.freeze && Object.freeze(O);
581
581
  } else
582
582
  _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
583
583
  else
584
584
  ke(O, e);
585
585
  }
586
- return e === a ? ct(P) : ut(P), P;
586
+ return e === a ? ut(P) : at(P), P;
587
587
  }
588
588
  }
589
- function st(e, t, o) {
589
+ function ct(e, t, o) {
590
590
  return Ie(e, t, o, !0);
591
591
  }
592
- function lt(e, t, o) {
592
+ function st(e, t, o) {
593
593
  return Ie(e, t, o, !1);
594
594
  }
595
- var ft = lt, dt = st;
596
- B.Fragment = a, B.jsx = ft, B.jsxs = dt;
595
+ var lt = st, ft = ct;
596
+ B.Fragment = a, B.jsx = lt, B.jsxs = ft;
597
597
  }()), B;
598
598
  }
599
599
  var G = {};
@@ -607,90 +607,90 @@ var G = {};
607
607
  * LICENSE file in the root directory of this source tree.
608
608
  */
609
609
  var Ye;
610
- function pt() {
610
+ function mt() {
611
611
  if (Ye)
612
612
  return G;
613
613
  Ye = 1;
614
- var n = We, r = Symbol.for("react.element"), i = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, f = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, v = { key: !0, ref: !0, __self: !0, __source: !0 };
615
- function d(c, s, y) {
616
- var p, w = {}, R = null, u = null;
617
- y !== void 0 && (R = "" + y), s.key !== void 0 && (R = "" + s.key), s.ref !== void 0 && (u = s.ref);
618
- for (p in s)
619
- a.call(s, p) && !v.hasOwnProperty(p) && (w[p] = s[p]);
614
+ var r = Ne, n = Symbol.for("react.element"), i = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, l = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 };
615
+ function v(c, s, h) {
616
+ var E, w = {}, p = null, u = null;
617
+ h !== void 0 && (p = "" + h), s.key !== void 0 && (p = "" + s.key), s.ref !== void 0 && (u = s.ref);
618
+ for (E in s)
619
+ a.call(s, E) && !d.hasOwnProperty(E) && (w[E] = s[E]);
620
620
  if (c && c.defaultProps)
621
- for (p in s = c.defaultProps, s)
622
- w[p] === void 0 && (w[p] = s[p]);
623
- return { $$typeof: r, type: c, key: R, ref: u, props: w, _owner: f.current };
621
+ for (E in s = c.defaultProps, s)
622
+ w[E] === void 0 && (w[E] = s[E]);
623
+ return { $$typeof: n, type: c, key: p, ref: u, props: w, _owner: l.current };
624
624
  }
625
- return G.Fragment = i, G.jsx = d, G.jsxs = d, G;
625
+ return G.Fragment = i, G.jsx = v, G.jsxs = v, G;
626
626
  }
627
- process.env.NODE_ENV === "production" ? se.exports = pt() : se.exports = mt();
627
+ process.env.NODE_ENV === "production" ? se.exports = mt() : se.exports = ht();
628
628
  var F = se.exports;
629
- const A = vt({}), St = ({ children: n, apiURL: r, libraries: i }) => {
629
+ const A = dt({}), xt = ({ children: r, apiURL: n, libraries: i }) => {
630
630
  const a = le(
631
631
  () => ({
632
- apiURL: r,
632
+ apiURL: n,
633
633
  libraries: i
634
634
  }),
635
- [r, i]
635
+ [n, i]
636
636
  );
637
- return /* @__PURE__ */ F.jsx(A.Provider, { value: a, children: n });
638
- }, xt = ({
639
- Fallback: n,
640
- isLogged: r,
637
+ return /* @__PURE__ */ F.jsx(A.Provider, { value: a, children: r });
638
+ }, Ot = ({
639
+ Fallback: r,
640
+ isLogged: n,
641
641
  loginPath: i = "/login",
642
642
  localStorageKey: a = "user",
643
- redirect401Path: f = "/login",
644
- ...v
643
+ redirect401Path: l = "/login",
644
+ ...d
645
645
  }) => {
646
646
  var _, Y, N, W;
647
- const { libraries: d } = k(A), c = (v == null ? void 0 : v.axios) || (d == null ? void 0 : d.axios), s = (v == null ? void 0 : v.reactRouter) || (d == null ? void 0 : d.reactRouter);
647
+ const { libraries: v } = k(A), c = (d == null ? void 0 : d.axios) || (v == null ? void 0 : v.axios), s = (d == null ? void 0 : d.reactRouter) || (v == null ? void 0 : v.reactRouter);
648
648
  if (!s)
649
649
  throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
650
650
  if (!c)
651
651
  throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
652
- const [y, p] = gt(null), { useLocation: w, Navigate: R, Outlet: u } = s, j = w(), x = ht(!1), T = typeof r == "function" ? r() : !!r, D = typeof T == "boolean" ? T : T == null ? void 0 : T.isLogged;
652
+ const [h, E] = vt(null), { useLocation: w, Navigate: p, Outlet: u } = s, j = w(), x = gt(!1), T = typeof n == "function" ? n() : !!n, D = typeof T == "boolean" ? T : T == null ? void 0 : T.isLogged;
653
653
  return Z(() => {
654
654
  x.current || (x.current = !0, c == null || c.interceptors.response.use(
655
655
  (b) => b,
656
656
  async (b) => {
657
- var z;
658
- 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 && ((z = b == null ? void 0 : b.response) == null ? void 0 : z.status) === 401 && (c.defaults.headers.common.Authorization = null, localStorage.removeItem(a), p(f)), Promise.reject(b);
657
+ var M;
658
+ 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 && ((M = b == null ? void 0 : b.response) == null ? void 0 : M.status) === 401 && (c.defaults.headers.common.Authorization = null, localStorage.removeItem(a), E(l)), Promise.reject(b);
659
659
  }
660
660
  ));
661
- }, [c == null ? void 0 : c.defaults.headers.common, c == null ? void 0 : c.interceptors.response, a, f]), D && !y ? /* @__PURE__ */ F.jsx(yt, { fallback: n, children: (Y = (_ = j.state) == null ? void 0 : _.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(u, {}) }) : /* @__PURE__ */ F.jsx(R, { to: i, state: { from: j }, replace: !0 });
662
- }, Ot = ({ ...n }) => {
663
- const { libraries: r } = k(A), i = (n == null ? void 0 : n.reactRouter) || (r == null ? void 0 : r.reactRouter), a = (n == null ? void 0 : n.gtm) || (r == null ? void 0 : r.gtm);
661
+ }, [c == null ? void 0 : c.defaults.headers.common, c == null ? void 0 : c.interceptors.response, a, l]), D && !h ? /* @__PURE__ */ F.jsx(yt, { fallback: r, children: (Y = (_ = j.state) == null ? void 0 : _.from) != null && Y.state && ((W = (N = j.state) == null ? void 0 : N.from) == null ? void 0 : W.pathname) === i ? /* @__PURE__ */ F.jsx(p, { to: j.state.from.state.from.pathname + j.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ F.jsx(u, {}) }) : /* @__PURE__ */ F.jsx(p, { to: i, state: { from: j }, replace: !0 });
662
+ }, At = ({ ...r }) => {
663
+ const { libraries: n } = k(A), i = (r == null ? void 0 : r.reactRouter) || (n == null ? void 0 : n.reactRouter), a = (r == null ? void 0 : r.gtm) || (n == null ? void 0 : n.gtm);
664
664
  if (!i)
665
665
  throw new Error(
666
666
  "React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView."
667
667
  );
668
668
  if (!a)
669
669
  throw new Error("GTM is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView.");
670
- const { useGoogleTagManager: f } = a, { useLocation: v, Outlet: d } = i, { pathname: c } = v(), { sendEvent: s } = f();
670
+ const { useGoogleTagManager: l } = a, { useLocation: d, Outlet: v } = i, { pathname: c } = d(), { sendEvent: s } = l();
671
671
  return Z(() => {
672
672
  s({ event: "pageView", pathname: c });
673
- }, [c, s]), /* @__PURE__ */ F.jsx(d, {});
674
- }, At = ({
675
- tokenTypeKey: n = "tokenType",
676
- userLocalStorageKey: r = "user",
673
+ }, [c, s]), /* @__PURE__ */ F.jsx(v, {});
674
+ }, Dt = ({
675
+ tokenTypeKey: r = "tokenType",
676
+ userLocalStorageKey: n = "user",
677
677
  tokenKey: i = "accessToken",
678
678
  postContentType: a = "application/json",
679
- ...f
679
+ ...l
680
680
  }) => {
681
- const { apiURL: v = f.apiURL, libraries: d } = k(A), c = (f == null ? void 0 : f.axios) || (d == null ? void 0 : d.axios);
681
+ const { apiURL: d = l.apiURL, libraries: v } = k(A), c = (l == null ? void 0 : l.axios) || (v == null ? void 0 : v.axios);
682
682
  if (!c)
683
683
  throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
684
684
  if (!(c != null && c.defaults))
685
685
  return null;
686
- const s = localStorage.getItem(r), y = s ? JSON.parse(s) : null, p = y != null && y[n] ? y[n] : null, w = y != null && y[i] ? y[i] : null, R = s ? `${p} ${w}` : null;
687
- return c.defaults.baseURL = v, c.defaults.headers.post["Content-Type"] = a, R && (c.defaults.headers.common.Authorization = R), null;
688
- }, Dt = ({ debug: n, resources: r, ...i }) => {
689
- const { libraries: a } = k(A), f = (i == null ? void 0 : i.i18) || (a == null ? void 0 : a.i18), { i18next: v, initReactI18next: d, languageDetector: c } = f || {};
690
- if (!f)
686
+ const s = localStorage.getItem(n), h = s ? JSON.parse(s) : null, E = h != null && h[r] ? h[r] : null, w = h != null && h[i] ? h[i] : null, p = s ? `${E} ${w}` : null;
687
+ return c.defaults.baseURL = d, c.defaults.headers.post["Content-Type"] = a, p && (c.defaults.headers.common.Authorization = p), null;
688
+ }, kt = ({ debug: r, resources: n, ...i }) => {
689
+ const { libraries: a } = k(A), l = (i == null ? void 0 : i.i18) || (a == null ? void 0 : a.i18), { i18next: d, initReactI18next: v, languageDetector: c } = l || {};
690
+ if (!l)
691
691
  throw new Error("i18 is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
692
- return v != null && v.isInitialized || (v.use(c).use(d).init({
693
- debug: n,
692
+ return d != null && d.isInitialized || (d.use(c).use(v).init({
693
+ debug: r,
694
694
  fallbackLng: "en",
695
695
  interpolation: {
696
696
  escapeValue: !1
@@ -700,38 +700,38 @@ const A = vt({}), St = ({ children: n, apiURL: r, libraries: i }) => {
700
700
  bindI18n: !1,
701
701
  useSuspense: !0
702
702
  },
703
- resources: r,
703
+ resources: n,
704
704
  returnNull: !1
705
705
  }).then(() => {
706
- document.documentElement.lang !== v.resolvedLanguage && v.resolvedLanguage && document.documentElement.setAttribute("lang", v.resolvedLanguage);
707
- }), v.on("languageChanged", (s) => {
706
+ document.documentElement.lang !== d.resolvedLanguage && d.resolvedLanguage && document.documentElement.setAttribute("lang", d.resolvedLanguage);
707
+ }), d.on("languageChanged", (s) => {
708
708
  document.documentElement.setAttribute("lang", s);
709
709
  })), null;
710
- }, kt = ({
711
- dsn: n,
712
- integrations: r,
710
+ }, It = ({
711
+ dsn: r,
712
+ integrations: n,
713
713
  tracesSampleRate: i,
714
714
  replaysSessionSampleRate: a,
715
- replaysOnErrorSampleRate: f,
716
- tracePropagationTargets: v,
717
- ignoreErrors: d,
715
+ replaysOnErrorSampleRate: l,
716
+ tracePropagationTargets: d,
717
+ ignoreErrors: v,
718
718
  debug: c,
719
719
  environment: s,
720
- ...y
720
+ ...h
721
721
  }) => {
722
- const { libraries: p } = k(A), w = (y == null ? void 0 : y.sentry) || (p == null ? void 0 : p.sentry), R = (y == null ? void 0 : y.reactRouter) || (p == null ? void 0 : p.reactRouter);
722
+ const { libraries: E } = k(A), w = (h == null ? void 0 : h.sentry) || (E == null ? void 0 : E.sentry), p = (h == null ? void 0 : h.reactRouter) || (E == null ? void 0 : E.reactRouter);
723
723
  if (!w)
724
724
  throw new Error("Sentry is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
725
- if (!R)
725
+ if (!p)
726
726
  throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
727
727
  if (w.isInitialized())
728
728
  return null;
729
- const { createRoutesFromChildren: u, matchRoutes: j, useLocation: x, useNavigationType: T } = R;
729
+ const { createRoutesFromChildren: u, matchRoutes: j, useLocation: x, useNavigationType: T } = p;
730
730
  return (c || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && w.init({
731
731
  debug: c,
732
- dsn: n,
732
+ dsn: r,
733
733
  environment: s || "production",
734
- ignoreErrors: [...d || [], /dynamically imported module/],
734
+ ignoreErrors: [...v || [], /dynamically imported module/],
735
735
  integrations: [
736
736
  w.reactRouterV6BrowserTracingIntegration({
737
737
  createRoutesFromChildren: u,
@@ -740,27 +740,27 @@ const A = vt({}), St = ({ children: n, apiURL: r, libraries: i }) => {
740
740
  useLocation: x,
741
741
  useNavigationType: T
742
742
  }),
743
- ...r || []
743
+ ...n || []
744
744
  ],
745
- replaysOnErrorSampleRate: f || 1,
745
+ replaysOnErrorSampleRate: l || 1,
746
746
  replaysSessionSampleRate: a || 0.1,
747
- tracePropagationTargets: v,
747
+ tracePropagationTargets: d,
748
748
  tracesSampleRate: i || 1
749
749
  }), null;
750
- }, It = ({ IMaskMixin: n, ...r }) => {
750
+ }, $t = ({ IMaskMixin: r, ...n }) => {
751
751
  const i = le(
752
752
  // eslint-disable-next-line react/jsx-props-no-spreading
753
- () => n(({ TextField: a, ...f }) => /* @__PURE__ */ F.jsx(a, { ...f })),
754
- [n]
753
+ () => r(({ TextField: a, ...l }) => /* @__PURE__ */ F.jsx(a, { ...l })),
754
+ [r]
755
755
  );
756
- return /* @__PURE__ */ F.jsx(i, { ...r });
757
- }, $t = ({ accessToken: n, ...r }) => {
758
- const { libraries: i } = k(A), a = (r == null ? void 0 : r.mapbox) || (i == null ? void 0 : i.mapbox);
756
+ return /* @__PURE__ */ F.jsx(i, { ...n });
757
+ }, Ft = ({ accessToken: r, ...n }) => {
758
+ const { libraries: i } = k(A), a = (n == null ? void 0 : n.mapbox) || (i == null ? void 0 : i.mapbox);
759
759
  if (!a)
760
760
  throw new Error("Mapbox is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
761
- return n && (a.accessToken = n), null;
762
- }, Ft = ({ language: n, ...r }) => {
763
- const { libraries: i } = k(A), a = (r == null ? void 0 : r.dayjs) || (i == null ? void 0 : i.dayjs), f = (r == null ? void 0 : r.dayjsPlugin) || (i == null ? void 0 : i.dayjsPlugin);
761
+ return r && (a.accessToken = r), null;
762
+ }, Yt = ({ language: r, ...n }) => {
763
+ const { libraries: i } = k(A), a = (n == null ? void 0 : n.dayjs) || (i == null ? void 0 : i.dayjs), l = (n == null ? void 0 : n.dayjsPlugin) || (i == null ? void 0 : i.dayjsPlugin);
764
764
  if (!a)
765
765
  throw new Error(
766
766
  "Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props of InitializeDaysJSConfig."
@@ -768,143 +768,146 @@ const A = vt({}), St = ({ children: n, apiURL: r, libraries: i }) => {
768
768
  return Z(() => {
769
769
  (async () => {
770
770
  var c;
771
- const d = n || ((c = navigator.language) == null ? void 0 : c.slice(0, 2)) || "en";
772
- f && f.forEach((s) => {
771
+ const v = r || ((c = navigator.language) == null ? void 0 : c.slice(0, 2)) || "en";
772
+ l && l.forEach((s) => {
773
773
  s && typeof s == "object" && "default" in s && a.extend(s.default);
774
- }), a.locale(d);
774
+ }), a.locale(v);
775
775
  })().then();
776
- }, [a, f, n]), null;
777
- }, Et = (n) => n && typeof n == "function", Rt = (n) => n && typeof n == "function", Yt = ({
778
- children: n,
779
- defaultQueriesOptions: r,
776
+ }, [a, l, r]), null;
777
+ }, Et = (r) => r && typeof r == "function", Rt = (r) => r && typeof r == "function", Nt = ({
778
+ children: r,
779
+ defaultQueriesOptions: n,
780
780
  defaultMutationsOptions: i,
781
781
  ...a
782
782
  }) => {
783
- var s, y;
784
- const { libraries: f } = k(A), v = (a == null ? void 0 : a.QueryClient) || ((s = f == null ? void 0 : f.reactQuery) == null ? void 0 : s.QueryClient), d = (a == null ? void 0 : a.QueryClientProvider) || ((y = f == null ? void 0 : f.reactQuery) == null ? void 0 : y.QueryClientProvider);
785
- if (!v)
786
- throw new Error("QueryClient is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
783
+ var s, h;
784
+ const { libraries: l } = k(A), d = (a == null ? void 0 : a.QueryClient) || ((s = l == null ? void 0 : l.reactQuery) == null ? void 0 : s.QueryClient), v = (a == null ? void 0 : a.QueryClientProvider) || ((h = l == null ? void 0 : l.reactQuery) == null ? void 0 : h.QueryClientProvider);
787
785
  if (!d)
786
+ throw new Error("QueryClient is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
787
+ if (!v)
788
788
  throw new Error("QueryClientProvider is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
789
- if (!Et(d))
789
+ if (!Et(v))
790
790
  throw new Error("Provided QueryClientProvider dependencies are not valid.");
791
- if (!Rt(v))
791
+ if (!Rt(d))
792
792
  throw new Error("Provided QueryClient dependencies are not valid.");
793
- const c = new v({
793
+ const c = new d({
794
794
  defaultOptions: {
795
795
  mutations: {
796
796
  ...i
797
797
  },
798
798
  queries: {
799
- getNextPageParam: (p, w, R) => p.length + (R || 0),
799
+ getNextPageParam: (E, w, p) => E.length + (p || 0),
800
800
  refetchOnWindowFocus: !1,
801
801
  retry: 3,
802
- ...r
802
+ ...n
803
803
  }
804
804
  }
805
805
  });
806
- return /* @__PURE__ */ F.jsx(d, { client: c, children: n });
807
- }, Nt = (n) => {
808
- var y, p, w;
809
- const { libraries: r } = k(A), i = (n == null ? void 0 : n.i18) || (r == null ? void 0 : r.i18), a = ((y = n == null ? void 0 : n.i18) == null ? void 0 : y.translateFunction) || ((p = r == null ? void 0 : r.i18) == null ? void 0 : p.translateFunction), f = ((w = i == null ? void 0 : i.i18next) == null ? void 0 : w.t) || a || ((R) => R), { unknownErrorTranslationKey: v = "error.unknownError" } = n || {}, d = f(v), c = ce(
810
- (R) => {
806
+ return /* @__PURE__ */ F.jsx(v, { client: c, children: r });
807
+ }, Wt = (r) => {
808
+ var h, E, w;
809
+ const { libraries: n } = k(A), i = (r == null ? void 0 : r.i18) || (n == null ? void 0 : n.i18), a = ((h = r == null ? void 0 : r.i18) == null ? void 0 : h.translateFunction) || ((E = n == null ? void 0 : n.i18) == null ? void 0 : E.translateFunction), l = ((w = i == null ? void 0 : i.i18next) == null ? void 0 : w.t) || a || ((p) => p), { unknownErrorTranslationKey: d = "error.unknownError" } = r || {}, v = l(d), c = ce(
810
+ (p) => {
811
811
  var j, x, T, D, _, Y, N, W, b;
812
- const { response: u } = R || {};
813
- return u != null && u.reason ? String(u.reason) : (j = u == null ? void 0 : u.data) != null && j.reason ? String(u.data.reason) : (x = u == null ? void 0 : u.data) != null && x.message ? String(u.data.message) : (D = (T = u == null ? void 0 : u.data) == null ? void 0 : T.detail) != null && D.length && Array.isArray((_ = u == null ? void 0 : u.data) == null ? void 0 : _.detail) && ((N = (Y = u == null ? void 0 : u.data) == null ? void 0 : Y.detail[0]) != null && N.msg) && typeof ((b = (W = u == null ? void 0 : u.data) == null ? void 0 : W.detail[0]) == null ? void 0 : b.msg) == "string" ? String(u.data.detail[0].msg) : d;
812
+ const { response: u } = p || {};
813
+ return u != null && u.reason ? String(u.reason) : (j = u == null ? void 0 : u.data) != null && j.reason ? String(u.data.reason) : (x = u == null ? void 0 : u.data) != null && x.message ? String(u.data.message) : (D = (T = u == null ? void 0 : u.data) == null ? void 0 : T.detail) != null && D.length && Array.isArray((_ = u == null ? void 0 : u.data) == null ? void 0 : _.detail) && ((N = (Y = u == null ? void 0 : u.data) == null ? void 0 : Y.detail[0]) != null && N.msg) && typeof ((b = (W = u == null ? void 0 : u.data) == null ? void 0 : W.detail[0]) == null ? void 0 : b.msg) == "string" ? String(u.data.detail[0].msg) : v;
814
814
  },
815
- [d]
815
+ [v]
816
816
  );
817
- return { getErrorCode: ce((R) => {
817
+ return { getErrorCode: ce((p) => {
818
818
  var j, x, T;
819
- const { response: u } = R || {};
819
+ const { response: u } = p || {};
820
820
  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((x = u == null ? void 0 : u.data) == null ? void 0 : x.error_code) : u != null && u.error_code ? String(u == null ? void 0 : u.error_code) : (T = u == null ? void 0 : u.data) != null && T.error_code ? String(u.data.error_code) : "unknown_error_code";
821
821
  }, []), printError: c };
822
- }, Wt = ({
823
- data: n,
824
- fetchNextPage: r,
822
+ }, Lt = ({
823
+ data: r,
824
+ fetchNextPage: n,
825
825
  isFetchingNextPage: i,
826
826
  isInitialLoading: a,
827
- isLoading: f,
828
- enabled: v = !0
827
+ isLoading: l,
828
+ enabled: d = !0
829
829
  }) => {
830
- const d = ce(
830
+ const v = ce(
831
831
  async (s) => {
832
- i || !v || await r({ pageParam: (s == null ? void 0 : s.pageParam) || s.visibleRowsCount });
832
+ i || !d || await n({ pageParam: (s == null ? void 0 : s.pageParam) || s.visibleRowsCount });
833
833
  },
834
- [v, r, i]
834
+ [d, n, i]
835
835
  ), c = le(() => {
836
- if (n)
837
- return n.pages.reduce((s, y) => [...s, ...y], []);
838
- }, [n]);
836
+ if (r)
837
+ return r.pages.reduce((s, h) => [...s, ...h], []);
838
+ }, [r]);
839
839
  return {
840
- fetchNextPageOnRowsScrollEnd: d,
841
- isLoading: i || f,
840
+ fetchNextPageOnRowsScrollEnd: v,
841
+ isLoading: i || l,
842
842
  loadingVariant: a ? "skeleton" : "linear",
843
843
  rows: c
844
844
  };
845
- }, Lt = (n) => {
846
- const { libraries: r } = k(A), i = (n == null ? void 0 : n.axios) || (r == null ? void 0 : r.axios);
845
+ }, Vt = (r) => {
846
+ const { libraries: n } = k(A), i = (r == null ? void 0 : r.axios) || (n == null ? void 0 : n.axios);
847
847
  if (!i)
848
848
  throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in params of useAuth.");
849
849
  return {
850
850
  clearAuthenticationToken: () => {
851
851
  i.defaults.headers.common.Authorization = null;
852
852
  },
853
- setAuthenticationToken: ({ tokenType: v, accessToken: d }) => {
854
- i.defaults.headers.common.Authorization = `${v} ${d}`;
853
+ setAuthenticationToken: ({ tokenType: d, accessToken: v }) => {
854
+ i.defaults.headers.common.Authorization = `${d} ${v}`;
855
855
  }
856
856
  };
857
- }, wt = (n, r = "km") => {
858
- const i = Number(n);
859
- return Number.isNaN(i) ? `0 ${r}` : `${i.toFixed(2)} ${r}`;
860
- }, _t = (n) => {
861
- const r = n && typeof n == "object" && "pathname" in n && n.pathname ? n.pathname : n;
862
- return typeof r == "string" ? 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}` : r;
863
- }, Ne = (n, r) => {
864
- if (!n)
865
- return "";
866
- const i = _t(n), a = typeof n == "object" && "pathname" in n ? `${n.origin}${i}` : n;
867
- return typeof r == "number" ? `${a.replace("/files", `/thumbs/${r}`)}` : a;
868
- }, Vt = (n) => {
869
- const { apiURL: r, libraries: i } = k(A), a = (n == null ? void 0 : n.dayjs) || (i == null ? void 0 : i.dayjs);
857
+ }, pt = ({ library: r, date: n, format: i }) => r(n).format(i), wt = (r, n = "km") => {
858
+ const i = Number(r);
859
+ return Number.isNaN(i) ? `0 ${n}` : `${i.toFixed(2)} ${n}`;
860
+ }, _t = (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}`, Ct = ({ path: r, size: n, apiURL: i }) => {
861
+ const a = _t(r), l = `${i}${a}`;
862
+ return typeof n == "number" ? `${l.replace("/files", `/thumbs/${n}`)}` : l;
863
+ }, zt = (r) => {
864
+ const { apiURL: n, libraries: i } = k(A), a = (r == null ? void 0 : r.dayjs) || (i == null ? void 0 : i.dayjs);
870
865
  return {
871
- dateAdapter: (d, c = "ll") => {
866
+ dateAdapter: (v, c = "ll") => {
872
867
  if (!a)
873
868
  throw new Error("Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
874
- return a(d).format(c);
869
+ return pt({
870
+ date: v,
871
+ format: c,
872
+ library: a
873
+ });
875
874
  },
876
875
  distanceAdapter: wt,
877
- filePathAdapter: (d, c) => Ne(
878
- r && typeof d == "string" ? {
879
- origin: r,
880
- pathname: d
881
- } : d,
882
- c
883
- )
876
+ filePathAdapter: (v, c) => {
877
+ if (!n)
878
+ throw new Error(
879
+ "API URL is not provided. You can provide it with InjectDependenciesProvider or directly in props to filePathAdapter."
880
+ );
881
+ return Ct({
882
+ apiURL: n,
883
+ path: v,
884
+ size: c
885
+ });
886
+ }
884
887
  };
885
- }, Ct = (n) => n.charAt(0).toUpperCase() + n.slice(1).toLowerCase(), bt = (n) => {
886
- const a = n.split("/").filter((f) => f.length > 0).map((f) => f.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((s) => s.charAt(0).toUpperCase() + s.slice(1)).join("")).join("");
888
+ }, bt = (r) => r.charAt(0).toUpperCase() + r.slice(1).toLowerCase(), Pt = (r) => {
889
+ const a = r.split("/").filter((l) => l.length > 0).map((l) => l.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((s) => s.charAt(0).toUpperCase() + s.slice(1)).join("")).join("");
887
890
  return a.charAt(0).toLowerCase() + a.slice(1);
888
- }, Pt = (n, r, i) => {
889
- const a = bt(r), f = Ct(i);
890
- return `${a}${f}`;
891
- }, jt = (n) => {
892
- if (n)
893
- return (n == null ? void 0 : n.reduce((r, i) => (r[i] = {
891
+ }, jt = (r, n, i) => {
892
+ const a = Pt(n), l = bt(i);
893
+ return `${a}${l}`;
894
+ }, Tt = (r) => {
895
+ if (r)
896
+ return (r == null ? void 0 : r.reduce((n, i) => (n[i] = {
894
897
  query: {
895
898
  useInfinite: !0,
896
899
  useInfiniteQueryParam: "offset",
897
900
  useQuery: !0
898
901
  }
899
- }, r), {})) || {};
900
- }, Mt = (n) => {
901
- const { input: r = "./openapi.json", operationsToGenerateInfiniteQueryHook: i = void 0 } = n || {};
902
+ }, n), {})) || {};
903
+ }, Mt = (r) => {
904
+ const { input: n = "./openapi.json", operationsToGenerateInfiniteQueryHook: i = void 0 } = r || {};
902
905
  return {
903
906
  api: {
904
907
  hooks: {
905
908
  afterAllFilesWrite: "prettier src/api/ --write"
906
909
  },
907
- input: r,
910
+ input: n,
908
911
  output: {
909
912
  client: "react-query",
910
913
  mode: "tags-split",
@@ -918,8 +921,8 @@ const A = vt({}), St = ({ children: n, apiURL: r, libraries: i }) => {
918
921
  name: "axiosCustomInstance",
919
922
  path: `${__dirname}/config/orval/mutator/axiosCustomInstance.ts`
920
923
  },
921
- operationName: Pt,
922
- ...(i == null ? void 0 : i.length) && { operations: jt(i) },
924
+ operationName: jt,
925
+ ...(i == null ? void 0 : i.length) && { operations: Tt(i) },
923
926
  query: {
924
927
  useQuery: !0
925
928
  }
@@ -929,24 +932,24 @@ const A = vt({}), St = ({ children: n, apiURL: r, libraries: i }) => {
929
932
  }
930
933
  }
931
934
  };
932
- }, zt = (n, r, i = "ll") => n(r).format(i);
935
+ };
933
936
  export {
934
- Ot as GTMSendPageView,
935
- At as InitializeAxiosConfig,
936
- Ft as InitializeDaysJSConfig,
937
- Dt as InitializeI18nConfig,
938
- $t as InitializeMapBoxConfig,
939
- kt as InitializeSentryConfig,
937
+ At as GTMSendPageView,
938
+ Dt as InitializeAxiosConfig,
939
+ Yt as InitializeDaysJSConfig,
940
+ kt as InitializeI18nConfig,
941
+ Ft as InitializeMapBoxConfig,
942
+ It as InitializeSentryConfig,
940
943
  A as InjectDependenciesContext,
941
- St as InjectDependenciesProvider,
942
- It as MaskTextField,
943
- Yt as QueryClientProviderWithConfig,
944
- xt as RequireAuth,
945
- zt as dateAdapter,
944
+ xt as InjectDependenciesProvider,
945
+ $t as MaskTextField,
946
+ Nt as QueryClientProviderWithConfig,
947
+ Ot as RequireAuth,
948
+ pt as dateAdapter,
946
949
  wt as distanceAdapter,
947
950
  Mt as getOrvalConfig,
948
- Vt as useAdapter,
949
- Lt as useAuth,
950
- Wt as useInfiniteDataGrid,
951
- Nt as useResponseError
951
+ zt as useAdapter,
952
+ Vt as useAuth,
953
+ Lt as useInfiniteDataGrid,
954
+ Wt as useResponseError
952
955
  };