@tracktor/shared-module 0.15.5 → 0.15.7

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