@tracktor/shared-module 2.3.2 → 2.3.3

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