@tracktor/shared-module 2.0.0-beta.14 → 2.0.0-beta.2

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