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