@tracktor/shared-module 2.0.0-beta.3 → 2.0.0-beta.5

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