@tracktor/shared-module 0.7.1 → 0.8.0

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,12 +1,5 @@
1
- import Ie, { createContext as vr, useMemo as Le, useContext as ie, useState as pr, useLayoutEffect as J, Suspense as gr, useEffect as hr, useCallback as mr } from "react";
2
- var oe = {}, Er = {
3
- get exports() {
4
- return oe;
5
- },
6
- set exports(n) {
7
- oe = n;
8
- }
9
- }, M = {};
1
+ import Le, { createContext as pr, useMemo as ie, useContext as ue, useState as gr, useLayoutEffect as J, Suspense as hr, useEffect as Er, useCallback as $e } from "react";
2
+ var oe = { exports: {} }, M = {};
10
3
  /**
11
4
  * @license React
12
5
  * react-jsx-runtime.production.min.js
@@ -16,25 +9,25 @@ var oe = {}, Er = {
16
9
  * This source code is licensed under the MIT license found in the
17
10
  * LICENSE file in the root directory of this source tree.
18
11
  */
19
- var De;
20
- function yr() {
21
- if (De)
12
+ var Fe;
13
+ function mr() {
14
+ if (Fe)
22
15
  return M;
23
- De = 1;
24
- var n = Ie, l = Symbol.for("react.element"), g = Symbol.for("react.fragment"), h = Object.prototype.hasOwnProperty, c = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
25
- function i(y, p, T) {
26
- var b, _ = {}, O = null, w = null;
27
- T !== void 0 && (O = "" + T), p.key !== void 0 && (O = "" + p.key), p.ref !== void 0 && (w = p.ref);
28
- for (b in p)
29
- h.call(p, b) && !u.hasOwnProperty(b) && (_[b] = p[b]);
30
- if (y && y.defaultProps)
31
- for (b in p = y.defaultProps, p)
32
- _[b] === void 0 && (_[b] = p[b]);
33
- return { $$typeof: l, type: y, key: O, ref: w, props: _, _owner: c.current };
16
+ Fe = 1;
17
+ var n = Le, o = Symbol.for("react.element"), p = Symbol.for("react.fragment"), g = Object.prototype.hasOwnProperty, l = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
18
+ function u(m, f, R) {
19
+ var b, w = {}, O = null, T = null;
20
+ R !== void 0 && (O = "" + R), f.key !== void 0 && (O = "" + f.key), f.ref !== void 0 && (T = f.ref);
21
+ for (b in f)
22
+ g.call(f, b) && !i.hasOwnProperty(b) && (w[b] = f[b]);
23
+ if (m && m.defaultProps)
24
+ for (b in f = m.defaultProps, f)
25
+ w[b] === void 0 && (w[b] = f[b]);
26
+ return { $$typeof: o, type: m, key: O, ref: T, props: w, _owner: l.current };
34
27
  }
35
- return M.Fragment = g, M.jsx = i, M.jsxs = i, M;
28
+ return M.Fragment = p, M.jsx = u, M.jsxs = u, M;
36
29
  }
37
- var N = {};
30
+ var W = {};
38
31
  /**
39
32
  * @license React
40
33
  * react-jsx-runtime.development.js
@@ -44,91 +37,91 @@ var N = {};
44
37
  * This source code is licensed under the MIT license found in the
45
38
  * LICENSE file in the root directory of this source tree.
46
39
  */
47
- var Fe;
48
- function br() {
49
- return Fe || (Fe = 1, process.env.NODE_ENV !== "production" && function() {
50
- var n = Ie, l = Symbol.for("react.element"), g = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), y = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), x = Symbol.iterator, A = "@@iterator";
51
- function W(e) {
40
+ var Ie;
41
+ function yr() {
42
+ return Ie || (Ie = 1, process.env.NODE_ENV !== "production" && function() {
43
+ var n = Le, o = Symbol.for("react.element"), p = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), m = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), x = Symbol.iterator, A = "@@iterator";
44
+ function Y(e) {
52
45
  if (e === null || typeof e != "object")
53
46
  return null;
54
47
  var r = x && e[x] || e[A];
55
48
  return typeof r == "function" ? r : null;
56
49
  }
57
50
  var S = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
58
- function f(e) {
51
+ function d(e) {
59
52
  {
60
53
  for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
61
54
  t[a - 1] = arguments[a];
62
- ue("error", e, t);
55
+ se("error", e, t);
63
56
  }
64
57
  }
65
- function ue(e, r, t) {
58
+ function se(e, r, t) {
66
59
  {
67
- var a = S.ReactDebugCurrentFrame, d = a.getStackAddendum();
68
- d !== "" && (r += "%s", t = t.concat([d]));
69
- var v = t.map(function(s) {
70
- return String(s);
60
+ var a = S.ReactDebugCurrentFrame, v = a.getStackAddendum();
61
+ v !== "" && (r += "%s", t = t.concat([v]));
62
+ var h = t.map(function(c) {
63
+ return String(c);
71
64
  });
72
- v.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, v);
65
+ h.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, h);
73
66
  }
74
67
  }
75
- var se = !1, Y = !1, $e = !1, Me = !1, Ne = !1, le;
76
- le = Symbol.for("react.module.reference");
77
- function We(e) {
78
- return !!(typeof e == "string" || typeof e == "function" || e === h || e === u || Ne || e === c || e === T || e === b || Me || e === w || se || Y || $e || typeof e == "object" && e !== null && (e.$$typeof === O || e.$$typeof === _ || e.$$typeof === i || e.$$typeof === y || e.$$typeof === p || // This needs to include all possible module reference object
68
+ var le = !1, N = !1, Me = !1, We = !1, Ye = !1, ce;
69
+ ce = Symbol.for("react.module.reference");
70
+ function Ne(e) {
71
+ return !!(typeof e == "string" || typeof e == "function" || e === g || e === i || Ye || e === l || e === R || e === b || We || e === T || le || N || Me || typeof e == "object" && e !== null && (e.$$typeof === O || e.$$typeof === w || e.$$typeof === u || e.$$typeof === m || e.$$typeof === f || // This needs to include all possible module reference object
79
72
  // types supported by any Flight configuration anywhere since
80
73
  // we don't know which Flight build this will end up being used
81
74
  // with.
82
- e.$$typeof === le || e.getModuleId !== void 0));
75
+ e.$$typeof === ce || e.getModuleId !== void 0));
83
76
  }
84
- function Ye(e, r, t) {
77
+ function Ve(e, r, t) {
85
78
  var a = e.displayName;
86
79
  if (a)
87
80
  return a;
88
- var d = r.displayName || r.name || "";
89
- return d !== "" ? t + "(" + d + ")" : t;
81
+ var v = r.displayName || r.name || "";
82
+ return v !== "" ? t + "(" + v + ")" : t;
90
83
  }
91
- function ce(e) {
84
+ function fe(e) {
92
85
  return e.displayName || "Context";
93
86
  }
94
- function P(e) {
87
+ function j(e) {
95
88
  if (e == null)
96
89
  return null;
97
- if (typeof e.tag == "number" && f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
90
+ if (typeof e.tag == "number" && d("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
98
91
  return e.displayName || e.name || null;
99
92
  if (typeof e == "string")
100
93
  return e;
101
94
  switch (e) {
102
- case h:
103
- return "Fragment";
104
95
  case g:
96
+ return "Fragment";
97
+ case p:
105
98
  return "Portal";
106
- case u:
99
+ case i:
107
100
  return "Profiler";
108
- case c:
101
+ case l:
109
102
  return "StrictMode";
110
- case T:
103
+ case R:
111
104
  return "Suspense";
112
105
  case b:
113
106
  return "SuspenseList";
114
107
  }
115
108
  if (typeof e == "object")
116
109
  switch (e.$$typeof) {
117
- case y:
110
+ case m:
118
111
  var r = e;
119
- return ce(r) + ".Consumer";
120
- case i:
112
+ return fe(r) + ".Consumer";
113
+ case u:
121
114
  var t = e;
122
- return ce(t._context) + ".Provider";
123
- case p:
124
- return Ye(e, e.render, "ForwardRef");
125
- case _:
115
+ return fe(t._context) + ".Provider";
116
+ case f:
117
+ return Ve(e, e.render, "ForwardRef");
118
+ case w:
126
119
  var a = e.displayName || null;
127
- return a !== null ? a : P(e.type) || "Memo";
120
+ return a !== null ? a : j(e.type) || "Memo";
128
121
  case O: {
129
- var d = e, v = d._payload, s = d._init;
122
+ var v = e, h = v._payload, c = v._init;
130
123
  try {
131
- return P(s(v));
124
+ return j(c(h));
132
125
  } catch {
133
126
  return null;
134
127
  }
@@ -136,18 +129,18 @@ function br() {
136
129
  }
137
130
  return null;
138
131
  }
139
- var D = Object.assign, L = 0, fe, de, ve, pe, ge, he, me;
140
- function Ee() {
132
+ var D = Object.assign, L = 0, de, ve, pe, ge, he, Ee, me;
133
+ function ye() {
141
134
  }
142
- Ee.__reactDisabledLog = !0;
143
- function Ve() {
135
+ ye.__reactDisabledLog = !0;
136
+ function Ue() {
144
137
  {
145
138
  if (L === 0) {
146
- fe = console.log, de = console.info, ve = console.warn, pe = console.error, ge = console.group, he = console.groupCollapsed, me = console.groupEnd;
139
+ de = console.log, ve = console.info, pe = console.warn, ge = console.error, he = console.group, Ee = console.groupCollapsed, me = console.groupEnd;
147
140
  var e = {
148
141
  configurable: !0,
149
142
  enumerable: !0,
150
- value: Ee,
143
+ value: ye,
151
144
  writable: !0
152
145
  };
153
146
  Object.defineProperties(console, {
@@ -163,7 +156,7 @@ function br() {
163
156
  L++;
164
157
  }
165
158
  }
166
- function Ue() {
159
+ function qe() {
167
160
  {
168
161
  if (L--, L === 0) {
169
162
  var e = {
@@ -173,29 +166,29 @@ function br() {
173
166
  };
174
167
  Object.defineProperties(console, {
175
168
  log: D({}, e, {
176
- value: fe
169
+ value: de
177
170
  }),
178
171
  info: D({}, e, {
179
- value: de
172
+ value: ve
180
173
  }),
181
174
  warn: D({}, e, {
182
- value: ve
175
+ value: pe
183
176
  }),
184
177
  error: D({}, e, {
185
- value: pe
178
+ value: ge
186
179
  }),
187
180
  group: D({}, e, {
188
- value: ge
181
+ value: he
189
182
  }),
190
183
  groupCollapsed: D({}, e, {
191
- value: he
184
+ value: Ee
192
185
  }),
193
186
  groupEnd: D({}, e, {
194
187
  value: me
195
188
  })
196
189
  });
197
190
  }
198
- L < 0 && f("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
191
+ L < 0 && d("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
199
192
  }
200
193
  }
201
194
  var K = S.ReactCurrentDispatcher, X;
@@ -204,8 +197,8 @@ function br() {
204
197
  if (X === void 0)
205
198
  try {
206
199
  throw Error();
207
- } catch (d) {
208
- var a = d.stack.trim().match(/\n( *(at )?)/);
200
+ } catch (v) {
201
+ var a = v.stack.trim().match(/\n( *(at )?)/);
209
202
  X = a && a[1] || "";
210
203
  }
211
204
  return `
@@ -214,10 +207,10 @@ function br() {
214
207
  }
215
208
  var Q = !1, U;
216
209
  {
217
- var qe = typeof WeakMap == "function" ? WeakMap : Map;
218
- U = new qe();
210
+ var Be = typeof WeakMap == "function" ? WeakMap : Map;
211
+ U = new Be();
219
212
  }
220
- function ye(e, r) {
213
+ function be(e, r) {
221
214
  if (!e || Q)
222
215
  return "";
223
216
  {
@@ -227,71 +220,71 @@ function br() {
227
220
  }
228
221
  var a;
229
222
  Q = !0;
230
- var d = Error.prepareStackTrace;
223
+ var v = Error.prepareStackTrace;
231
224
  Error.prepareStackTrace = void 0;
232
- var v;
233
- v = K.current, K.current = null, Ve();
225
+ var h;
226
+ h = K.current, K.current = null, Ue();
234
227
  try {
235
228
  if (r) {
236
- var s = function() {
229
+ var c = function() {
237
230
  throw Error();
238
231
  };
239
- if (Object.defineProperty(s.prototype, "props", {
232
+ if (Object.defineProperty(c.prototype, "props", {
240
233
  set: function() {
241
234
  throw Error();
242
235
  }
243
236
  }), typeof Reflect == "object" && Reflect.construct) {
244
237
  try {
245
- Reflect.construct(s, []);
246
- } catch (j) {
247
- a = j;
238
+ Reflect.construct(c, []);
239
+ } catch (P) {
240
+ a = P;
248
241
  }
249
- Reflect.construct(e, [], s);
242
+ Reflect.construct(e, [], c);
250
243
  } else {
251
244
  try {
252
- s.call();
253
- } catch (j) {
254
- a = j;
245
+ c.call();
246
+ } catch (P) {
247
+ a = P;
255
248
  }
256
- e.call(s.prototype);
249
+ e.call(c.prototype);
257
250
  }
258
251
  } else {
259
252
  try {
260
253
  throw Error();
261
- } catch (j) {
262
- a = j;
254
+ } catch (P) {
255
+ a = P;
263
256
  }
264
257
  e();
265
258
  }
266
- } catch (j) {
267
- if (j && a && typeof j.stack == "string") {
268
- for (var o = j.stack.split(`
269
- `), R = a.stack.split(`
270
- `), m = o.length - 1, E = R.length - 1; m >= 1 && E >= 0 && o[m] !== R[E]; )
271
- E--;
272
- for (; m >= 1 && E >= 0; m--, E--)
273
- if (o[m] !== R[E]) {
274
- if (m !== 1 || E !== 1)
259
+ } catch (P) {
260
+ if (P && a && typeof P.stack == "string") {
261
+ for (var s = P.stack.split(`
262
+ `), _ = a.stack.split(`
263
+ `), E = s.length - 1, y = _.length - 1; E >= 1 && y >= 0 && s[E] !== _[y]; )
264
+ y--;
265
+ for (; E >= 1 && y >= 0; E--, y--)
266
+ if (s[E] !== _[y]) {
267
+ if (E !== 1 || y !== 1)
275
268
  do
276
- if (m--, E--, E < 0 || o[m] !== R[E]) {
269
+ if (E--, y--, y < 0 || s[E] !== _[y]) {
277
270
  var C = `
278
- ` + o[m].replace(" at new ", " at ");
271
+ ` + s[E].replace(" at new ", " at ");
279
272
  return e.displayName && C.includes("<anonymous>") && (C = C.replace("<anonymous>", e.displayName)), typeof e == "function" && U.set(e, C), C;
280
273
  }
281
- while (m >= 1 && E >= 0);
274
+ while (E >= 1 && y >= 0);
282
275
  break;
283
276
  }
284
277
  }
285
278
  } finally {
286
- Q = !1, K.current = v, Ue(), Error.prepareStackTrace = d;
279
+ Q = !1, K.current = h, qe(), Error.prepareStackTrace = v;
287
280
  }
288
- var I = e ? e.displayName || e.name : "", Ae = I ? V(I) : "";
289
- return typeof e == "function" && U.set(e, Ae), Ae;
281
+ var I = e ? e.displayName || e.name : "", De = I ? V(I) : "";
282
+ return typeof e == "function" && U.set(e, De), De;
290
283
  }
291
- function Be(e, r, t) {
292
- return ye(e, !1);
284
+ function Ge(e, r, t) {
285
+ return be(e, !1);
293
286
  }
294
- function Ge(e) {
287
+ function ze(e) {
295
288
  var r = e.prototype;
296
289
  return !!(r && r.isReactComponent);
297
290
  }
@@ -299,90 +292,90 @@ function br() {
299
292
  if (e == null)
300
293
  return "";
301
294
  if (typeof e == "function")
302
- return ye(e, Ge(e));
295
+ return be(e, ze(e));
303
296
  if (typeof e == "string")
304
297
  return V(e);
305
298
  switch (e) {
306
- case T:
299
+ case R:
307
300
  return V("Suspense");
308
301
  case b:
309
302
  return V("SuspenseList");
310
303
  }
311
304
  if (typeof e == "object")
312
305
  switch (e.$$typeof) {
313
- case p:
314
- return Be(e.render);
315
- case _:
306
+ case f:
307
+ return Ge(e.render);
308
+ case w:
316
309
  return q(e.type, r, t);
317
310
  case O: {
318
- var a = e, d = a._payload, v = a._init;
311
+ var a = e, v = a._payload, h = a._init;
319
312
  try {
320
- return q(v(d), r, t);
313
+ return q(h(v), r, t);
321
314
  } catch {
322
315
  }
323
316
  }
324
317
  }
325
318
  return "";
326
319
  }
327
- var B = Object.prototype.hasOwnProperty, be = {}, Re = S.ReactDebugCurrentFrame;
320
+ var B = Object.prototype.hasOwnProperty, Re = {}, _e = S.ReactDebugCurrentFrame;
328
321
  function G(e) {
329
322
  if (e) {
330
323
  var r = e._owner, t = q(e.type, e._source, r ? r.type : null);
331
- Re.setExtraStackFrame(t);
324
+ _e.setExtraStackFrame(t);
332
325
  } else
333
- Re.setExtraStackFrame(null);
326
+ _e.setExtraStackFrame(null);
334
327
  }
335
- function ze(e, r, t, a, d) {
328
+ function Je(e, r, t, a, v) {
336
329
  {
337
- var v = Function.call.bind(B);
338
- for (var s in e)
339
- if (v(e, s)) {
340
- var o = void 0;
330
+ var h = Function.call.bind(B);
331
+ for (var c in e)
332
+ if (h(e, c)) {
333
+ var s = void 0;
341
334
  try {
342
- if (typeof e[s] != "function") {
343
- var R = Error((a || "React class") + ": " + t + " type `" + s + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[s] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
344
- throw R.name = "Invariant Violation", R;
335
+ if (typeof e[c] != "function") {
336
+ var _ = Error((a || "React class") + ": " + t + " type `" + c + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[c] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
+ throw _.name = "Invariant Violation", _;
345
338
  }
346
- o = e[s](r, s, a, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
347
- } catch (m) {
348
- o = m;
339
+ s = e[c](r, c, a, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
+ } catch (E) {
341
+ s = E;
349
342
  }
350
- o && !(o instanceof Error) && (G(d), f("%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).", a || "React class", t, s, typeof o), G(null)), o instanceof Error && !(o.message in be) && (be[o.message] = !0, G(d), f("Failed %s type: %s", t, o.message), G(null));
343
+ s && !(s instanceof Error) && (G(v), d("%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).", a || "React class", t, c, typeof s), G(null)), s instanceof Error && !(s.message in Re) && (Re[s.message] = !0, G(v), d("Failed %s type: %s", t, s.message), G(null));
351
344
  }
352
345
  }
353
346
  }
354
- var Je = Array.isArray;
347
+ var He = Array.isArray;
355
348
  function Z(e) {
356
- return Je(e);
349
+ return He(e);
357
350
  }
358
- function He(e) {
351
+ function Ke(e) {
359
352
  {
360
353
  var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
361
354
  return t;
362
355
  }
363
356
  }
364
- function Ke(e) {
357
+ function Xe(e) {
365
358
  try {
366
- return _e(e), !1;
359
+ return we(e), !1;
367
360
  } catch {
368
361
  return !0;
369
362
  }
370
363
  }
371
- function _e(e) {
364
+ function we(e) {
372
365
  return "" + e;
373
366
  }
374
367
  function Te(e) {
375
- if (Ke(e))
376
- return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", He(e)), _e(e);
368
+ if (Xe(e))
369
+ return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ke(e)), we(e);
377
370
  }
378
- var $ = S.ReactCurrentOwner, Xe = {
371
+ var $ = S.ReactCurrentOwner, Qe = {
379
372
  key: !0,
380
373
  ref: !0,
381
374
  __self: !0,
382
375
  __source: !0
383
- }, we, Oe, ee;
376
+ }, Oe, Ce, ee;
384
377
  ee = {};
385
- function Qe(e) {
378
+ function Ze(e) {
386
379
  if (B.call(e, "ref")) {
387
380
  var r = Object.getOwnPropertyDescriptor(e, "ref").get;
388
381
  if (r && r.isReactWarning)
@@ -390,7 +383,7 @@ function br() {
390
383
  }
391
384
  return e.ref !== void 0;
392
385
  }
393
- function Ze(e) {
386
+ function er(e) {
394
387
  if (B.call(e, "key")) {
395
388
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
396
389
  if (r && r.isReactWarning)
@@ -398,16 +391,16 @@ function br() {
398
391
  }
399
392
  return e.key !== void 0;
400
393
  }
401
- function er(e, r) {
394
+ function rr(e, r) {
402
395
  if (typeof e.ref == "string" && $.current && r && $.current.stateNode !== r) {
403
- var t = P($.current.type);
404
- ee[t] || (f('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', P($.current.type), e.ref), ee[t] = !0);
396
+ var t = j($.current.type);
397
+ ee[t] || (d('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', j($.current.type), e.ref), ee[t] = !0);
405
398
  }
406
399
  }
407
- function rr(e, r) {
400
+ function tr(e, r) {
408
401
  {
409
402
  var t = function() {
410
- we || (we = !0, f("%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));
403
+ Oe || (Oe = !0, d("%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));
411
404
  };
412
405
  t.isReactWarning = !0, Object.defineProperty(e, "key", {
413
406
  get: t,
@@ -415,10 +408,10 @@ function br() {
415
408
  });
416
409
  }
417
410
  }
418
- function tr(e, r) {
411
+ function nr(e, r) {
419
412
  {
420
413
  var t = function() {
421
- Oe || (Oe = !0, f("%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));
414
+ Ce || (Ce = !0, d("%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));
422
415
  };
423
416
  t.isReactWarning = !0, Object.defineProperty(e, "ref", {
424
417
  get: t,
@@ -426,70 +419,70 @@ function br() {
426
419
  });
427
420
  }
428
421
  }
429
- var nr = function(e, r, t, a, d, v, s) {
430
- var o = {
422
+ var ar = function(e, r, t, a, v, h, c) {
423
+ var s = {
431
424
  // This tag allows us to uniquely identify this as a React Element
432
- $$typeof: l,
425
+ $$typeof: o,
433
426
  // Built-in properties that belong on the element
434
427
  type: e,
435
428
  key: r,
436
429
  ref: t,
437
- props: s,
430
+ props: c,
438
431
  // Record the component responsible for creating this element.
439
- _owner: v
432
+ _owner: h
440
433
  };
441
- return o._store = {}, Object.defineProperty(o._store, "validated", {
434
+ return s._store = {}, Object.defineProperty(s._store, "validated", {
442
435
  configurable: !1,
443
436
  enumerable: !1,
444
437
  writable: !0,
445
438
  value: !1
446
- }), Object.defineProperty(o, "_self", {
439
+ }), Object.defineProperty(s, "_self", {
447
440
  configurable: !1,
448
441
  enumerable: !1,
449
442
  writable: !1,
450
443
  value: a
451
- }), Object.defineProperty(o, "_source", {
444
+ }), Object.defineProperty(s, "_source", {
452
445
  configurable: !1,
453
446
  enumerable: !1,
454
447
  writable: !1,
455
- value: d
456
- }), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
448
+ value: v
449
+ }), Object.freeze && (Object.freeze(s.props), Object.freeze(s)), s;
457
450
  };
458
- function ar(e, r, t, a, d) {
451
+ function or(e, r, t, a, v) {
459
452
  {
460
- var v, s = {}, o = null, R = null;
461
- t !== void 0 && (Te(t), o = "" + t), Ze(r) && (Te(r.key), o = "" + r.key), Qe(r) && (R = r.ref, er(r, d));
462
- for (v in r)
463
- B.call(r, v) && !Xe.hasOwnProperty(v) && (s[v] = r[v]);
453
+ var h, c = {}, s = null, _ = null;
454
+ t !== void 0 && (Te(t), s = "" + t), er(r) && (Te(r.key), s = "" + r.key), Ze(r) && (_ = r.ref, rr(r, v));
455
+ for (h in r)
456
+ B.call(r, h) && !Qe.hasOwnProperty(h) && (c[h] = r[h]);
464
457
  if (e && e.defaultProps) {
465
- var m = e.defaultProps;
466
- for (v in m)
467
- s[v] === void 0 && (s[v] = m[v]);
458
+ var E = e.defaultProps;
459
+ for (h in E)
460
+ c[h] === void 0 && (c[h] = E[h]);
468
461
  }
469
- if (o || R) {
470
- var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
471
- o && rr(s, E), R && tr(s, E);
462
+ if (s || _) {
463
+ var y = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
464
+ s && tr(c, y), _ && nr(c, y);
472
465
  }
473
- return nr(e, o, R, d, a, $.current, s);
466
+ return ar(e, s, _, v, a, $.current, c);
474
467
  }
475
468
  }
476
- var re = S.ReactCurrentOwner, Ce = S.ReactDebugCurrentFrame;
469
+ var re = S.ReactCurrentOwner, Se = S.ReactDebugCurrentFrame;
477
470
  function F(e) {
478
471
  if (e) {
479
472
  var r = e._owner, t = q(e.type, e._source, r ? r.type : null);
480
- Ce.setExtraStackFrame(t);
473
+ Se.setExtraStackFrame(t);
481
474
  } else
482
- Ce.setExtraStackFrame(null);
475
+ Se.setExtraStackFrame(null);
483
476
  }
484
477
  var te;
485
478
  te = !1;
486
479
  function ne(e) {
487
- return typeof e == "object" && e !== null && e.$$typeof === l;
480
+ return typeof e == "object" && e !== null && e.$$typeof === o;
488
481
  }
489
- function Se() {
482
+ function je() {
490
483
  {
491
484
  if (re.current) {
492
- var e = P(re.current.type);
485
+ var e = j(re.current.type);
493
486
  if (e)
494
487
  return `
495
488
 
@@ -498,7 +491,7 @@ Check the render method of \`` + e + "`.";
498
491
  return "";
499
492
  }
500
493
  }
501
- function or(e) {
494
+ function ir(e) {
502
495
  {
503
496
  if (e !== void 0) {
504
497
  var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
@@ -510,9 +503,9 @@ Check your code at ` + r + ":" + t + ".";
510
503
  }
511
504
  }
512
505
  var Pe = {};
513
- function ir(e) {
506
+ function ur(e) {
514
507
  {
515
- var r = Se();
508
+ var r = je();
516
509
  if (!r) {
517
510
  var t = typeof e == "string" ? e : e.displayName || e.name;
518
511
  t && (r = `
@@ -522,39 +515,39 @@ Check the top-level render call using <` + t + ">.");
522
515
  return r;
523
516
  }
524
517
  }
525
- function je(e, r) {
518
+ function ke(e, r) {
526
519
  {
527
520
  if (!e._store || e._store.validated || e.key != null)
528
521
  return;
529
522
  e._store.validated = !0;
530
- var t = ir(r);
523
+ var t = ur(r);
531
524
  if (Pe[t])
532
525
  return;
533
526
  Pe[t] = !0;
534
527
  var a = "";
535
- e && e._owner && e._owner !== re.current && (a = " It was passed a child from " + P(e._owner.type) + "."), F(e), f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, a), F(null);
528
+ e && e._owner && e._owner !== re.current && (a = " It was passed a child from " + j(e._owner.type) + "."), F(e), d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, a), F(null);
536
529
  }
537
530
  }
538
- function ke(e, r) {
531
+ function xe(e, r) {
539
532
  {
540
533
  if (typeof e != "object")
541
534
  return;
542
535
  if (Z(e))
543
536
  for (var t = 0; t < e.length; t++) {
544
537
  var a = e[t];
545
- ne(a) && je(a, r);
538
+ ne(a) && ke(a, r);
546
539
  }
547
540
  else if (ne(e))
548
541
  e._store && (e._store.validated = !0);
549
542
  else if (e) {
550
- var d = W(e);
551
- if (typeof d == "function" && d !== e.entries)
552
- for (var v = d.call(e), s; !(s = v.next()).done; )
553
- ne(s.value) && je(s.value, r);
543
+ var v = Y(e);
544
+ if (typeof v == "function" && v !== e.entries)
545
+ for (var h = v.call(e), c; !(c = h.next()).done; )
546
+ ne(c.value) && ke(c.value, r);
554
547
  }
555
548
  }
556
549
  }
557
- function ur(e) {
550
+ function sr(e) {
558
551
  {
559
552
  var r = e.type;
560
553
  if (r == null || typeof r == "string")
@@ -562,79 +555,78 @@ Check the top-level render call using <` + t + ">.");
562
555
  var t;
563
556
  if (typeof r == "function")
564
557
  t = r.propTypes;
565
- else if (typeof r == "object" && (r.$$typeof === p || // Note: Memo only checks outer props here.
558
+ else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
566
559
  // Inner props are checked in the reconciler.
567
- r.$$typeof === _))
560
+ r.$$typeof === w))
568
561
  t = r.propTypes;
569
562
  else
570
563
  return;
571
564
  if (t) {
572
- var a = P(r);
573
- ze(t, e.props, "prop", a, e);
565
+ var a = j(r);
566
+ Je(t, e.props, "prop", a, e);
574
567
  } else if (r.PropTypes !== void 0 && !te) {
575
568
  te = !0;
576
- var d = P(r);
577
- f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", d || "Unknown");
569
+ var v = j(r);
570
+ d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", v || "Unknown");
578
571
  }
579
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
572
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
580
573
  }
581
574
  }
582
- function sr(e) {
575
+ function lr(e) {
583
576
  {
584
577
  for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
585
578
  var a = r[t];
586
579
  if (a !== "children" && a !== "key") {
587
- F(e), f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), F(null);
580
+ F(e), d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), F(null);
588
581
  break;
589
582
  }
590
583
  }
591
- e.ref !== null && (F(e), f("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
584
+ e.ref !== null && (F(e), d("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
592
585
  }
593
586
  }
594
- function xe(e, r, t, a, d, v) {
587
+ function Ae(e, r, t, a, v, h) {
595
588
  {
596
- var s = We(e);
597
- if (!s) {
598
- var o = "";
599
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
600
- var R = or(d);
601
- R ? o += R : o += Se();
602
- var m;
603
- e === null ? m = "null" : Z(e) ? m = "array" : e !== void 0 && e.$$typeof === l ? (m = "<" + (P(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : m = typeof e, f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", m, o);
589
+ var c = Ne(e);
590
+ if (!c) {
591
+ var s = "";
592
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (s += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
593
+ var _ = ir(v);
594
+ _ ? s += _ : s += je();
595
+ var E;
596
+ e === null ? E = "null" : Z(e) ? E = "array" : e !== void 0 && e.$$typeof === o ? (E = "<" + (j(e.type) || "Unknown") + " />", s = " Did you accidentally export a JSX literal instead of a component?") : E = typeof e, d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, s);
604
597
  }
605
- var E = ar(e, r, t, d, v);
606
- if (E == null)
607
- return E;
608
- if (s) {
598
+ var y = or(e, r, t, v, h);
599
+ if (y == null)
600
+ return y;
601
+ if (c) {
609
602
  var C = r.children;
610
603
  if (C !== void 0)
611
604
  if (a)
612
605
  if (Z(C)) {
613
606
  for (var I = 0; I < C.length; I++)
614
- ke(C[I], e);
607
+ xe(C[I], e);
615
608
  Object.freeze && Object.freeze(C);
616
609
  } else
617
- f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
610
+ d("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
618
611
  else
619
- ke(C, e);
612
+ xe(C, e);
620
613
  }
621
- return e === h ? sr(E) : ur(E), E;
614
+ return e === g ? lr(y) : sr(y), y;
622
615
  }
623
616
  }
624
- function lr(e, r, t) {
625
- return xe(e, r, t, !0);
626
- }
627
617
  function cr(e, r, t) {
628
- return xe(e, r, t, !1);
618
+ return Ae(e, r, t, !0);
619
+ }
620
+ function fr(e, r, t) {
621
+ return Ae(e, r, t, !1);
629
622
  }
630
- var fr = cr, dr = lr;
631
- N.Fragment = h, N.jsx = fr, N.jsxs = dr;
632
- }()), N;
623
+ var dr = fr, vr = cr;
624
+ W.Fragment = g, W.jsx = dr, W.jsxs = vr;
625
+ }()), W;
633
626
  }
634
- (function(n) {
635
- process.env.NODE_ENV === "production" ? n.exports = yr() : n.exports = br();
636
- })(Er);
637
- const k = oe.jsx, H = vr({
627
+ process.env.NODE_ENV === "production" ? oe.exports = mr() : oe.exports = yr();
628
+ var k = oe.exports;
629
+ const H = pr({
638
630
  axios: void 0,
639
631
  children: void 0,
640
632
  Navigate: void 0,
@@ -642,102 +634,102 @@ const k = oe.jsx, H = vr({
642
634
  translate: void 0,
643
635
  useAuth: void 0,
644
636
  useLocation: void 0
645
- }), _r = ({
637
+ }), Rr = ({
646
638
  axios: n,
647
- children: l,
648
- translate: g,
649
- useAuth: h,
650
- Outlet: c,
651
- Navigate: u,
652
- useLocation: i,
653
- useGoogleTagManager: y
639
+ children: o,
640
+ translate: p,
641
+ useAuth: g,
642
+ Outlet: l,
643
+ Navigate: i,
644
+ useLocation: u,
645
+ useGoogleTagManager: m
654
646
  }) => {
655
- const p = Le(
647
+ const f = ie(
656
648
  () => ({
657
649
  axios: n,
658
- Navigate: u,
659
- Outlet: c,
660
- translate: g,
661
- useAuth: h,
662
- useGoogleTagManager: y,
663
- useLocation: i
650
+ Navigate: i,
651
+ Outlet: l,
652
+ translate: p,
653
+ useAuth: g,
654
+ useGoogleTagManager: m,
655
+ useLocation: u
664
656
  }),
665
- [u, c, n, g, h, y, i]
657
+ [i, l, n, p, g, m, u]
666
658
  );
667
- return /* @__PURE__ */ k(H.Provider, { value: p, children: l });
668
- }, z = (n) => `RequireAuth require « ${n} » dependency. You can provide with InjectDependenciesProvider or directly in props.`, Tr = ({
659
+ return /* @__PURE__ */ k.jsx(H.Provider, { value: f, children: o });
660
+ }, z = (n) => `RequireAuth require « ${n} » dependency. You can provide with InjectDependenciesProvider or directly in props.`, _r = ({
669
661
  Fallback: n,
670
- loginPath: l = "/login",
671
- localStorageKey: g = "user",
672
- redirect401Path: h = "/login",
673
- ...c
662
+ loginPath: o = "/login",
663
+ localStorageKey: p = "user",
664
+ redirect401Path: g = "/login",
665
+ ...l
674
666
  }) => {
675
- var x, A, W, S;
667
+ var x, A, Y, S;
676
668
  const {
677
- axios: u = c.axios,
678
- useLocation: i = c.useLocation,
679
- useAuth: y = c.useAuth,
680
- Outlet: p = c.Outlet,
681
- Navigate: T = c.Navigate
682
- } = ie(H);
683
- if (y === void 0)
669
+ axios: i = l.axios,
670
+ useLocation: u = l.useLocation,
671
+ useAuth: m = l.useAuth,
672
+ Outlet: f = l.Outlet,
673
+ Navigate: R = l.Navigate
674
+ } = ue(H);
675
+ if (m === void 0)
684
676
  throw new Error(z("useAuth"));
685
- if (i === void 0)
677
+ if (u === void 0)
686
678
  throw new Error(z("useLocation"));
687
- if (p === void 0)
679
+ if (f === void 0)
688
680
  throw new Error(z("Outlet"));
689
- if (T === void 0)
681
+ if (R === void 0)
690
682
  throw new Error(z("Navigate"));
691
- const [b, _] = pr(null), { isLogged: O } = y(), w = i();
683
+ const [b, w] = gr(null), { isLogged: O } = m(), T = u();
692
684
  return J(() => {
693
- u == null || u.interceptors.response.use(
694
- (f) => f,
695
- async (f) => {
696
- var Y;
697
- return typeof f == "object" && f && "response" in f && f.response && typeof f.response == "object" && "status" in f.response && f.response && typeof f.response == "object" && "status" in f.response && ((Y = f == null ? void 0 : f.response) == null ? void 0 : Y.status) === 401 && (u.defaults.headers.common.Authorization = null, localStorage.removeItem(g), _(h)), Promise.reject(f);
685
+ i == null || i.interceptors.response.use(
686
+ (d) => d,
687
+ async (d) => {
688
+ var N;
689
+ return typeof d == "object" && d && "response" in d && d.response && typeof d.response == "object" && "status" in d.response && d.response && typeof d.response == "object" && "status" in d.response && ((N = d == null ? void 0 : d.response) == null ? void 0 : N.status) === 401 && (i.defaults.headers.common.Authorization = null, localStorage.removeItem(p), w(g)), Promise.reject(d);
698
690
  }
699
691
  );
700
- }, [u == null ? void 0 : u.defaults, u == null ? void 0 : u.interceptors.response, g, h]), O && !b ? /* @__PURE__ */ k(gr, { fallback: n, children: (A = (x = w.state) == null ? void 0 : x.from) != null && A.state && ((S = (W = w.state) == null ? void 0 : W.from) == null ? void 0 : S.pathname) === l ? /* @__PURE__ */ k(T, { to: w.state.from.state.from.pathname + w.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ k(p, {}) }) : /* @__PURE__ */ k(T, { to: l, state: { from: w }, replace: !0 });
692
+ }, [i == null ? void 0 : i.defaults, i == null ? void 0 : i.interceptors.response, p, g]), O && !b ? /* @__PURE__ */ k.jsx(hr, { fallback: n, children: (A = (x = T.state) == null ? void 0 : x.from) != null && A.state && ((S = (Y = T.state) == null ? void 0 : Y.from) == null ? void 0 : S.pathname) === o ? /* @__PURE__ */ k.jsx(R, { to: T.state.from.state.from.pathname + T.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ k.jsx(f, {}) }) : /* @__PURE__ */ k.jsx(R, { to: o, state: { from: T }, replace: !0 });
701
693
  }, ae = (n) => `GTMSendPageView require « ${n} » dependency. You can provide with InjectDependenciesProvider or directly in props.`, wr = ({ ...n }) => {
702
694
  const {
703
- useLocation: l = n.useLocation,
704
- Outlet: g = n.Outlet,
705
- useGoogleTagManager: h = n.useGoogleTagManager
706
- } = ie(H);
707
- if (l === void 0)
695
+ useLocation: o = n.useLocation,
696
+ Outlet: p = n.Outlet,
697
+ useGoogleTagManager: g = n.useGoogleTagManager
698
+ } = ue(H);
699
+ if (o === void 0)
708
700
  throw new Error(ae("useLocation"));
709
- if (g === void 0)
701
+ if (p === void 0)
710
702
  throw new Error(ae("Outlet"));
711
- if (h === void 0)
703
+ if (g === void 0)
712
704
  throw new Error(ae("useGoogleTagManager"));
713
- const { pathname: c } = l(), { sendEvent: u } = h();
714
- return hr(() => {
715
- u({ event: "pageView", pathname: c });
716
- }, [c, u]), /* @__PURE__ */ k(g, {});
717
- }, Or = ({
705
+ const { pathname: l } = o(), { sendEvent: i } = g();
706
+ return Er(() => {
707
+ i({ event: "pageView", pathname: l });
708
+ }, [l, i]), /* @__PURE__ */ k.jsx(p, {});
709
+ }, Tr = ({
718
710
  axios: n,
719
- baseURL: l,
720
- userLocalStorageKey: g = "user",
721
- postContentType: h = "application/json"
711
+ baseURL: o,
712
+ userLocalStorageKey: p = "user",
713
+ postContentType: g = "application/json"
722
714
  }) => (J(() => {
723
715
  if (!n.defaults)
724
716
  return;
725
- const c = localStorage.getItem(g), u = c ? JSON.parse(c) : null, i = u && typeof u == "object" && "tokenType" in u && u.tokenType ? u.tokenType : null, y = u && typeof u == "object" && "accessToken" in u && u.accessToken ? u.accessToken : null, p = c ? `${i} ${y}` : null;
726
- n.defaults.baseURL = l, n.defaults.headers.post["Content-Type"] = h, p && (n.defaults.headers.common.Authorization = p);
717
+ const l = localStorage.getItem(p), i = l ? JSON.parse(l) : null, u = i && typeof i == "object" && "tokenType" in i && i.tokenType ? i.tokenType : null, m = i && typeof i == "object" && "accessToken" in i && i.accessToken ? i.accessToken : null, f = l ? `${u} ${m}` : null;
718
+ n.defaults.baseURL = o, n.defaults.headers.post["Content-Type"] = g, f && (n.defaults.headers.common.Authorization = f);
727
719
  }, [
728
720
  n.defaults,
729
721
  n.defaults.baseURL,
730
722
  n.defaults.headers.common,
731
723
  n.defaults.headers.post,
732
- l,
733
- h,
734
- g
735
- ]), null), Cr = ({
724
+ o,
725
+ g,
726
+ p
727
+ ]), null), Or = ({
736
728
  i18n: n,
737
- initReactI18next: l,
738
- resources: g,
739
- LanguageDetector: h
740
- }) => (n.use(h).use(l).init({
729
+ initReactI18next: o,
730
+ resources: p,
731
+ LanguageDetector: g
732
+ }) => (n.use(g).use(o).init({
741
733
  debug: !1,
742
734
  fallbackLng: "en",
743
735
  interpolation: {
@@ -747,64 +739,88 @@ const k = oe.jsx, H = vr({
747
739
  react: {
748
740
  useSuspense: !0
749
741
  },
750
- resources: g,
742
+ resources: p,
751
743
  returnNull: !1
752
744
  }).then(() => {
753
745
  document.documentElement.lang !== n.resolvedLanguage && n.resolvedLanguage && document.documentElement.setAttribute("lang", n.resolvedLanguage);
754
- }), n.on("languageChanged", (c) => {
755
- document.documentElement.setAttribute("lang", c);
756
- }), null), Sr = ({ dsn: n, sentry: l }) => (J(() => {
757
- l && process.env.NODE_ENV !== "development" && l.init({
746
+ }), n.on("languageChanged", (l) => {
747
+ document.documentElement.setAttribute("lang", l);
748
+ }), null), Cr = ({ dsn: n, sentry: o }) => (J(() => {
749
+ o && process.env.NODE_ENV !== "development" && o.init({
758
750
  dsn: n,
759
- integrations: [new l.BrowserTracing()],
751
+ integrations: [new o.BrowserTracing()],
760
752
  tracesSampleRate: 1
761
753
  });
762
- }, [n, l]), null), Pr = ({ IMaskMixin: n, ...l }) => {
763
- const g = Le(
754
+ }, [n, o]), null), Sr = ({ IMaskMixin: n, ...o }) => {
755
+ const p = ie(
764
756
  // eslint-disable-next-line react/jsx-props-no-spreading
765
- () => n(({ TextField: h, ...c }) => /* @__PURE__ */ k(h, { ...c })),
757
+ () => n(({ TextField: g, ...l }) => /* @__PURE__ */ k.jsx(g, { ...l })),
766
758
  [n]
767
759
  );
768
- return /* @__PURE__ */ k(g, { ...l });
769
- }, jr = ({ mapbox: n, accessToken: l }) => (J(() => {
770
- n && (n.accessToken = l || "");
771
- }, [l, n]), null), kr = ({
760
+ return /* @__PURE__ */ k.jsx(p, { ...o });
761
+ }, jr = ({ mapbox: n, accessToken: o }) => (J(() => {
762
+ n && o && (n.accessToken = o);
763
+ }, [o, n]), null), Pr = ({
772
764
  children: n,
773
- defaultOptions: l,
774
- QueryClient: g,
775
- QueryClientProvider: h
765
+ defaultOptions: o,
766
+ QueryClient: p,
767
+ QueryClientProvider: g
776
768
  }) => {
777
- const c = new g({
769
+ const l = new p({
778
770
  defaultOptions: {
779
771
  queries: {
780
772
  refetchOnWindowFocus: !1,
781
773
  retry: 3,
782
- ...l
774
+ ...o
783
775
  }
784
776
  }
785
777
  });
786
- return /* @__PURE__ */ k(h, { client: c, children: n });
787
- }, xr = (n) => {
788
- const { unknownErrorTranslationKey: l = "error.unknownError" } = n || {}, { translate: g = n == null ? void 0 : n.translate } = ie(H);
789
- return { printError: mr(
790
- (c) => {
791
- var y, p, T, b, _, O, w, x, A;
792
- const u = g ? g(l) : "Unknown error", { response: i } = c || {};
793
- return c != null && c.reason ? String(c.reason) : (y = i == null ? void 0 : i.data) != null && y.reason ? String(i.data.reason) : (p = i == null ? void 0 : i.data) != null && p.message ? String(i.data.message) : (b = (T = i == null ? void 0 : i.data) == null ? void 0 : T.detail) != null && b.length && Array.isArray((_ = i == null ? void 0 : i.data) == null ? void 0 : _.detail) && ((w = (O = i == null ? void 0 : i.data) == null ? void 0 : O.detail[0]) != null && w.msg) && typeof ((A = (x = i == null ? void 0 : i.data) == null ? void 0 : x.detail[0]) == null ? void 0 : A.msg) == "string" ? String(i.data.detail[0].msg) : u;
778
+ return /* @__PURE__ */ k.jsx(g, { client: l, children: n });
779
+ }, kr = (n) => {
780
+ const { unknownErrorTranslationKey: o = "error.unknownError" } = n || {}, { translate: p = n == null ? void 0 : n.translate } = ue(H);
781
+ return { printError: $e(
782
+ (l) => {
783
+ var m, f, R, b, w, O, T, x, A;
784
+ const i = p ? p(o) : "Unknown error", { response: u } = l || {};
785
+ return l != null && l.reason ? String(l.reason) : (m = u == null ? void 0 : u.data) != null && m.reason ? String(u.data.reason) : (f = u == null ? void 0 : u.data) != null && f.message ? String(u.data.message) : (b = (R = u == null ? void 0 : u.data) == null ? void 0 : R.detail) != null && b.length && Array.isArray((w = u == null ? void 0 : u.data) == null ? void 0 : w.detail) && ((T = (O = u == null ? void 0 : u.data) == null ? void 0 : O.detail[0]) != null && T.msg) && typeof ((A = (x = u == null ? void 0 : u.data) == null ? void 0 : x.detail[0]) == null ? void 0 : A.msg) == "string" ? String(u.data.detail[0].msg) : i;
794
786
  },
795
- [g, l]
787
+ [p, o]
796
788
  ) };
789
+ }, xr = ({
790
+ data: n,
791
+ fetchNextPage: o,
792
+ isFetchingNextPage: p,
793
+ isInitialLoading: g,
794
+ isLoading: l,
795
+ enabled: i = !0
796
+ }) => {
797
+ const u = $e(
798
+ async (f) => {
799
+ p || !i || await o({ pageParam: (f == null ? void 0 : f.pageParam) || f.visibleRowsCount });
800
+ },
801
+ [i, o, p]
802
+ ), m = ie(() => {
803
+ if (n)
804
+ return n.pages.reduce((f, R) => [...f, ...R], []);
805
+ }, [n]);
806
+ return {
807
+ fetchNextPageOnRowsScrollEnd: u,
808
+ isLoading: p || l,
809
+ loadingVariant: g ? "skeleton" : "linear",
810
+ rows: m
811
+ };
797
812
  };
798
813
  export {
799
- Or as AxiosConfig,
814
+ Tr as AxiosConfig,
800
815
  wr as GTMSendPageView,
801
- Cr as I18nConfig,
816
+ Or as I18nConfig,
802
817
  H as InjectDependenciesContext,
803
- _r as InjectDependenciesProvider,
818
+ Rr as InjectDependenciesProvider,
804
819
  jr as MapBoxConfig,
805
- Pr as MaskTextField,
806
- kr as QueryClientConfigProvider,
807
- Tr as RequireAuth,
808
- Sr as SentryConfig,
809
- xr as useResponseError
820
+ Sr as MaskTextField,
821
+ Pr as QueryClientConfigProvider,
822
+ _r as RequireAuth,
823
+ Cr as SentryConfig,
824
+ xr as useInfiniteDataGrid,
825
+ kr as useResponseError
810
826
  };