@tracktor/shared-module 0.10.0 → 0.11.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,4 @@
1
1
  # [Versions](https://github.com/Tracktor/shared-module/releases)
2
2
 
3
- ## v0.10.0
4
- - **[feat]** : Add new function `getOrvalConfig` to get orval config
5
- - **[chore]** : Upgrade dev dependencies
3
+ ## v0.11.1
4
+ - **[refactor]** : rename `operationsToUseInfiniteQuery` in `operationsToGenerateInfiniteQueryHook`
@@ -1,3 +1,14 @@
1
+ interface CustomOrvalConfig {
2
+ /**
3
+ * Path to the openapi file
4
+ * @default "./openapi.json"
5
+ */
6
+ input?: string;
7
+ /**
8
+ * List of operations to use infinite query
9
+ */
10
+ operationsToGenerateInfiniteQueryHook?: string[];
11
+ }
1
12
  /**
2
13
  * Convert a string to capitalize
3
14
  * @param method
@@ -17,11 +28,10 @@ export declare const convertRouteToCamelCase: (route: string) => string;
17
28
  export declare const getOrvalOperationName: (_: any, route: string, method: string) => string;
18
29
  /**
19
30
  * Get the orval config required for the generation
20
- * @param operationsToUseInfiniteQuery
21
31
  */
22
- export declare const getOrvalConfig: (operationsToUseInfiniteQuery?: string[]) => {
32
+ export declare const getOrvalConfig: (config?: CustomOrvalConfig) => {
23
33
  readonly api: {
24
- readonly input: "./openapi.json";
34
+ readonly input: string;
25
35
  readonly output: {
26
36
  readonly client: "react-query";
27
37
  readonly mode: "tags-split";
package/dist/main.js CHANGED
@@ -1,4 +1,4 @@
1
- import Le, { createContext as pr, useMemo as ie, useContext as ue, useState as gr, useLayoutEffect as J, Suspense as mr, useEffect as hr, useCallback as Ie } from "react";
1
+ import Ie, { createContext as pr, useMemo as ie, useContext as se, useState as gr, useLayoutEffect as J, Suspense as mr, useEffect as hr, useCallback as Le } from "react";
2
2
  var oe = { exports: {} }, W = {};
3
3
  /**
4
4
  * @license React
@@ -14,18 +14,18 @@ function Er() {
14
14
  if (Fe)
15
15
  return W;
16
16
  Fe = 1;
17
- var n = Le, o = Symbol.for("react.element"), f = Symbol.for("react.fragment"), v = Object.prototype.hasOwnProperty, i = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
18
- function s(h, c, R) {
17
+ var n = Ie, o = Symbol.for("react.element"), s = Symbol.for("react.fragment"), v = Object.prototype.hasOwnProperty, i = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
18
+ function c(h, l, R) {
19
19
  var b, w = {}, T = null, C = null;
20
- R !== void 0 && (T = "" + R), c.key !== void 0 && (T = "" + c.key), c.ref !== void 0 && (C = c.ref);
21
- for (b in c)
22
- v.call(c, b) && !u.hasOwnProperty(b) && (w[b] = c[b]);
20
+ R !== void 0 && (T = "" + R), l.key !== void 0 && (T = "" + l.key), l.ref !== void 0 && (C = l.ref);
21
+ for (b in l)
22
+ v.call(l, b) && !u.hasOwnProperty(b) && (w[b] = l[b]);
23
23
  if (h && h.defaultProps)
24
- for (b in c = h.defaultProps, c)
25
- w[b] === void 0 && (w[b] = c[b]);
24
+ for (b in l = h.defaultProps, l)
25
+ w[b] === void 0 && (w[b] = l[b]);
26
26
  return { $$typeof: o, type: h, key: T, ref: C, props: w, _owner: i.current };
27
27
  }
28
- return W.Fragment = f, W.jsx = s, W.jsxs = s, W;
28
+ return W.Fragment = s, W.jsx = c, W.jsxs = c, W;
29
29
  }
30
30
  var M = {};
31
31
  /**
@@ -40,11 +40,11 @@ var M = {};
40
40
  var $e;
41
41
  function yr() {
42
42
  return $e || ($e = 1, process.env.NODE_ENV !== "production" && function() {
43
- var n = Le, o = Symbol.for("react.element"), f = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), h = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), x = Symbol.iterator, A = "@@iterator";
43
+ var n = Ie, o = Symbol.for("react.element"), s = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), h = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), k = Symbol.iterator, A = "@@iterator";
44
44
  function N(e) {
45
45
  if (e === null || typeof e != "object")
46
46
  return null;
47
- var r = x && e[x] || e[A];
47
+ var r = k && e[k] || e[A];
48
48
  return typeof r == "function" ? r : null;
49
49
  }
50
50
  var j = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
@@ -52,10 +52,10 @@ function yr() {
52
52
  {
53
53
  for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
54
54
  t[a - 1] = arguments[a];
55
- se("error", e, t);
55
+ ue("error", e, t);
56
56
  }
57
57
  }
58
- function se(e, r, t) {
58
+ function ue(e, r, t) {
59
59
  {
60
60
  var a = j.ReactDebugCurrentFrame, g = a.getStackAddendum();
61
61
  g !== "" && (r += "%s", t = t.concat([g]));
@@ -68,7 +68,7 @@ function yr() {
68
68
  var ce = !1, Y = !1, We = !1, Me = !1, Ne = !1, le;
69
69
  le = Symbol.for("react.module.reference");
70
70
  function Ye(e) {
71
- return !!(typeof e == "string" || typeof e == "function" || e === v || e === u || Ne || e === i || e === R || e === b || Me || e === C || ce || Y || We || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === w || e.$$typeof === s || e.$$typeof === h || e.$$typeof === c || // This needs to include all possible module reference object
71
+ return !!(typeof e == "string" || typeof e == "function" || e === v || e === u || Ne || e === i || e === R || e === b || Me || e === C || ce || Y || We || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === w || e.$$typeof === c || e.$$typeof === h || e.$$typeof === l || // This needs to include all possible module reference object
72
72
  // types supported by any Flight configuration anywhere since
73
73
  // we don't know which Flight build this will end up being used
74
74
  // with.
@@ -94,7 +94,7 @@ function yr() {
94
94
  switch (e) {
95
95
  case v:
96
96
  return "Fragment";
97
- case f:
97
+ case s:
98
98
  return "Portal";
99
99
  case u:
100
100
  return "Profiler";
@@ -110,10 +110,10 @@ function yr() {
110
110
  case h:
111
111
  var r = e;
112
112
  return fe(r) + ".Consumer";
113
- case s:
113
+ case c:
114
114
  var t = e;
115
115
  return fe(t._context) + ".Provider";
116
- case c:
116
+ case l:
117
117
  return Ve(e, e.render, "ForwardRef");
118
118
  case w:
119
119
  var a = e.displayName || null;
@@ -129,13 +129,13 @@ function yr() {
129
129
  }
130
130
  return null;
131
131
  }
132
- var D = Object.assign, L = 0, de, ve, pe, ge, me, he, Ee;
132
+ var D = Object.assign, I = 0, de, ve, pe, ge, me, he, Ee;
133
133
  function ye() {
134
134
  }
135
135
  ye.__reactDisabledLog = !0;
136
136
  function qe() {
137
137
  {
138
- if (L === 0) {
138
+ if (I === 0) {
139
139
  de = console.log, ve = console.info, pe = console.warn, ge = console.error, me = console.group, he = console.groupCollapsed, Ee = console.groupEnd;
140
140
  var e = {
141
141
  configurable: !0,
@@ -153,12 +153,12 @@ function yr() {
153
153
  groupEnd: e
154
154
  });
155
155
  }
156
- L++;
156
+ I++;
157
157
  }
158
158
  }
159
- function Be() {
159
+ function Ue() {
160
160
  {
161
- if (L--, L === 0) {
161
+ if (I--, I === 0) {
162
162
  var e = {
163
163
  configurable: !0,
164
164
  enumerable: !0,
@@ -188,27 +188,27 @@ function yr() {
188
188
  })
189
189
  });
190
190
  }
191
- L < 0 && p("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
191
+ I < 0 && p("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
192
  }
193
193
  }
194
- var K = j.ReactCurrentDispatcher, X;
194
+ var X = j.ReactCurrentDispatcher, H;
195
195
  function V(e, r, t) {
196
196
  {
197
- if (X === void 0)
197
+ if (H === void 0)
198
198
  try {
199
199
  throw Error();
200
200
  } catch (g) {
201
201
  var a = g.stack.trim().match(/\n( *(at )?)/);
202
- X = a && a[1] || "";
202
+ H = a && a[1] || "";
203
203
  }
204
204
  return `
205
- ` + X + e;
205
+ ` + H + e;
206
206
  }
207
207
  }
208
208
  var Z = !1, q;
209
209
  {
210
- var ze = typeof WeakMap == "function" ? WeakMap : Map;
211
- q = new ze();
210
+ var Be = typeof WeakMap == "function" ? WeakMap : Map;
211
+ q = new Be();
212
212
  }
213
213
  function be(e, r) {
214
214
  if (!e || Z)
@@ -223,7 +223,7 @@ function yr() {
223
223
  var g = Error.prepareStackTrace;
224
224
  Error.prepareStackTrace = void 0;
225
225
  var m;
226
- m = K.current, K.current = null, qe();
226
+ m = X.current, X.current = null, qe();
227
227
  try {
228
228
  if (r) {
229
229
  var d = function() {
@@ -258,17 +258,17 @@ function yr() {
258
258
  }
259
259
  } catch (P) {
260
260
  if (P && a && typeof P.stack == "string") {
261
- for (var l = P.stack.split(`
261
+ for (var f = P.stack.split(`
262
262
  `), _ = a.stack.split(`
263
- `), E = l.length - 1, y = _.length - 1; E >= 1 && y >= 0 && l[E] !== _[y]; )
263
+ `), E = f.length - 1, y = _.length - 1; E >= 1 && y >= 0 && f[E] !== _[y]; )
264
264
  y--;
265
265
  for (; E >= 1 && y >= 0; E--, y--)
266
- if (l[E] !== _[y]) {
266
+ if (f[E] !== _[y]) {
267
267
  if (E !== 1 || y !== 1)
268
268
  do
269
- if (E--, y--, y < 0 || l[E] !== _[y]) {
269
+ if (E--, y--, y < 0 || f[E] !== _[y]) {
270
270
  var O = `
271
- ` + l[E].replace(" at new ", " at ");
271
+ ` + f[E].replace(" at new ", " at ");
272
272
  return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && q.set(e, O), O;
273
273
  }
274
274
  while (E >= 1 && y >= 0);
@@ -276,23 +276,23 @@ function yr() {
276
276
  }
277
277
  }
278
278
  } finally {
279
- Z = !1, K.current = m, Be(), Error.prepareStackTrace = g;
279
+ Z = !1, X.current = m, Ue(), Error.prepareStackTrace = g;
280
280
  }
281
281
  var $ = e ? e.displayName || e.name : "", De = $ ? V($) : "";
282
282
  return typeof e == "function" && q.set(e, De), De;
283
283
  }
284
- function Ge(e, r, t) {
284
+ function ze(e, r, t) {
285
285
  return be(e, !1);
286
286
  }
287
- function Ue(e) {
287
+ function Ge(e) {
288
288
  var r = e.prototype;
289
289
  return !!(r && r.isReactComponent);
290
290
  }
291
- function B(e, r, t) {
291
+ function U(e, r, t) {
292
292
  if (e == null)
293
293
  return "";
294
294
  if (typeof e == "function")
295
- return be(e, Ue(e));
295
+ return be(e, Ge(e));
296
296
  if (typeof e == "string")
297
297
  return V(e);
298
298
  switch (e) {
@@ -303,58 +303,58 @@ function yr() {
303
303
  }
304
304
  if (typeof e == "object")
305
305
  switch (e.$$typeof) {
306
- case c:
307
- return Ge(e.render);
306
+ case l:
307
+ return ze(e.render);
308
308
  case w:
309
- return B(e.type, r, t);
309
+ return U(e.type, r, t);
310
310
  case T: {
311
311
  var a = e, g = a._payload, m = a._init;
312
312
  try {
313
- return B(m(g), r, t);
313
+ return U(m(g), r, t);
314
314
  } catch {
315
315
  }
316
316
  }
317
317
  }
318
318
  return "";
319
319
  }
320
- var z = Object.prototype.hasOwnProperty, Re = {}, _e = j.ReactDebugCurrentFrame;
321
- function G(e) {
320
+ var B = Object.prototype.hasOwnProperty, Re = {}, _e = j.ReactDebugCurrentFrame;
321
+ function z(e) {
322
322
  if (e) {
323
- var r = e._owner, t = B(e.type, e._source, r ? r.type : null);
323
+ var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
324
324
  _e.setExtraStackFrame(t);
325
325
  } else
326
326
  _e.setExtraStackFrame(null);
327
327
  }
328
328
  function Je(e, r, t, a, g) {
329
329
  {
330
- var m = Function.call.bind(z);
330
+ var m = Function.call.bind(B);
331
331
  for (var d in e)
332
332
  if (m(e, d)) {
333
- var l = void 0;
333
+ var f = void 0;
334
334
  try {
335
335
  if (typeof e[d] != "function") {
336
336
  var _ = Error((a || "React class") + ": " + t + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
337
  throw _.name = "Invariant Violation", _;
338
338
  }
339
- l = e[d](r, d, a, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
339
+ f = e[d](r, d, a, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
340
  } catch (E) {
341
- l = E;
341
+ f = E;
342
342
  }
343
- l && !(l instanceof Error) && (G(g), p("%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, d, typeof l), G(null)), l instanceof Error && !(l.message in Re) && (Re[l.message] = !0, G(g), p("Failed %s type: %s", t, l.message), G(null));
343
+ f && !(f instanceof Error) && (z(g), p("%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, d, typeof f), z(null)), f instanceof Error && !(f.message in Re) && (Re[f.message] = !0, z(g), p("Failed %s type: %s", t, f.message), z(null));
344
344
  }
345
345
  }
346
346
  }
347
- var He = Array.isArray;
347
+ var Ke = Array.isArray;
348
348
  function Q(e) {
349
- return He(e);
349
+ return Ke(e);
350
350
  }
351
- function Ke(e) {
351
+ function Xe(e) {
352
352
  {
353
353
  var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
354
354
  return t;
355
355
  }
356
356
  }
357
- function Xe(e) {
357
+ function He(e) {
358
358
  try {
359
359
  return we(e), !1;
360
360
  } catch {
@@ -365,10 +365,10 @@ function yr() {
365
365
  return "" + e;
366
366
  }
367
367
  function Ce(e) {
368
- if (Xe(e))
369
- return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ke(e)), we(e);
368
+ if (He(e))
369
+ return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Xe(e)), we(e);
370
370
  }
371
- var I = j.ReactCurrentOwner, Ze = {
371
+ var L = j.ReactCurrentOwner, Ze = {
372
372
  key: !0,
373
373
  ref: !0,
374
374
  __self: !0,
@@ -376,7 +376,7 @@ function yr() {
376
376
  }, Te, Oe, ee;
377
377
  ee = {};
378
378
  function Qe(e) {
379
- if (z.call(e, "ref")) {
379
+ if (B.call(e, "ref")) {
380
380
  var r = Object.getOwnPropertyDescriptor(e, "ref").get;
381
381
  if (r && r.isReactWarning)
382
382
  return !1;
@@ -384,7 +384,7 @@ function yr() {
384
384
  return e.ref !== void 0;
385
385
  }
386
386
  function er(e) {
387
- if (z.call(e, "key")) {
387
+ if (B.call(e, "key")) {
388
388
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
389
389
  if (r && r.isReactWarning)
390
390
  return !1;
@@ -392,9 +392,9 @@ function yr() {
392
392
  return e.key !== void 0;
393
393
  }
394
394
  function rr(e, r) {
395
- if (typeof e.ref == "string" && I.current && r && I.current.stateNode !== r) {
396
- var t = S(I.current.type);
397
- ee[t] || (p('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', S(I.current.type), e.ref), ee[t] = !0);
395
+ if (typeof e.ref == "string" && L.current && r && L.current.stateNode !== r) {
396
+ var t = S(L.current.type);
397
+ ee[t] || (p('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', S(L.current.type), e.ref), ee[t] = !0);
398
398
  }
399
399
  }
400
400
  function tr(e, r) {
@@ -420,7 +420,7 @@ function yr() {
420
420
  }
421
421
  }
422
422
  var ar = function(e, r, t, a, g, m, d) {
423
- var l = {
423
+ var f = {
424
424
  // This tag allows us to uniquely identify this as a React Element
425
425
  $$typeof: o,
426
426
  // Built-in properties that belong on the element
@@ -431,45 +431,45 @@ function yr() {
431
431
  // Record the component responsible for creating this element.
432
432
  _owner: m
433
433
  };
434
- return l._store = {}, Object.defineProperty(l._store, "validated", {
434
+ return f._store = {}, Object.defineProperty(f._store, "validated", {
435
435
  configurable: !1,
436
436
  enumerable: !1,
437
437
  writable: !0,
438
438
  value: !1
439
- }), Object.defineProperty(l, "_self", {
439
+ }), Object.defineProperty(f, "_self", {
440
440
  configurable: !1,
441
441
  enumerable: !1,
442
442
  writable: !1,
443
443
  value: a
444
- }), Object.defineProperty(l, "_source", {
444
+ }), Object.defineProperty(f, "_source", {
445
445
  configurable: !1,
446
446
  enumerable: !1,
447
447
  writable: !1,
448
448
  value: g
449
- }), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
449
+ }), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
450
450
  };
451
451
  function or(e, r, t, a, g) {
452
452
  {
453
- var m, d = {}, l = null, _ = null;
454
- t !== void 0 && (Ce(t), l = "" + t), er(r) && (Ce(r.key), l = "" + r.key), Qe(r) && (_ = r.ref, rr(r, g));
453
+ var m, d = {}, f = null, _ = null;
454
+ t !== void 0 && (Ce(t), f = "" + t), er(r) && (Ce(r.key), f = "" + r.key), Qe(r) && (_ = r.ref, rr(r, g));
455
455
  for (m in r)
456
- z.call(r, m) && !Ze.hasOwnProperty(m) && (d[m] = r[m]);
456
+ B.call(r, m) && !Ze.hasOwnProperty(m) && (d[m] = r[m]);
457
457
  if (e && e.defaultProps) {
458
458
  var E = e.defaultProps;
459
459
  for (m in E)
460
460
  d[m] === void 0 && (d[m] = E[m]);
461
461
  }
462
- if (l || _) {
462
+ if (f || _) {
463
463
  var y = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
464
- l && tr(d, y), _ && nr(d, y);
464
+ f && tr(d, y), _ && nr(d, y);
465
465
  }
466
- return ar(e, l, _, g, a, I.current, d);
466
+ return ar(e, f, _, g, a, L.current, d);
467
467
  }
468
468
  }
469
469
  var re = j.ReactCurrentOwner, je = j.ReactDebugCurrentFrame;
470
470
  function F(e) {
471
471
  if (e) {
472
- var r = e._owner, t = B(e.type, e._source, r ? r.type : null);
472
+ var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
473
473
  je.setExtraStackFrame(t);
474
474
  } else
475
475
  je.setExtraStackFrame(null);
@@ -503,7 +503,7 @@ Check your code at ` + r + ":" + t + ".";
503
503
  }
504
504
  }
505
505
  var Pe = {};
506
- function ur(e) {
506
+ function sr(e) {
507
507
  {
508
508
  var r = Se();
509
509
  if (!r) {
@@ -515,12 +515,12 @@ Check the top-level render call using <` + t + ">.");
515
515
  return r;
516
516
  }
517
517
  }
518
- function ke(e, r) {
518
+ function xe(e, r) {
519
519
  {
520
520
  if (!e._store || e._store.validated || e.key != null)
521
521
  return;
522
522
  e._store.validated = !0;
523
- var t = ur(r);
523
+ var t = sr(r);
524
524
  if (Pe[t])
525
525
  return;
526
526
  Pe[t] = !0;
@@ -528,14 +528,14 @@ Check the top-level render call using <` + t + ">.");
528
528
  e && e._owner && e._owner !== re.current && (a = " It was passed a child from " + S(e._owner.type) + "."), F(e), p('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);
529
529
  }
530
530
  }
531
- function xe(e, r) {
531
+ function ke(e, r) {
532
532
  {
533
533
  if (typeof e != "object")
534
534
  return;
535
535
  if (Q(e))
536
536
  for (var t = 0; t < e.length; t++) {
537
537
  var a = e[t];
538
- ne(a) && ke(a, r);
538
+ ne(a) && xe(a, r);
539
539
  }
540
540
  else if (ne(e))
541
541
  e._store && (e._store.validated = !0);
@@ -543,11 +543,11 @@ Check the top-level render call using <` + t + ">.");
543
543
  var g = N(e);
544
544
  if (typeof g == "function" && g !== e.entries)
545
545
  for (var m = g.call(e), d; !(d = m.next()).done; )
546
- ne(d.value) && ke(d.value, r);
546
+ ne(d.value) && xe(d.value, r);
547
547
  }
548
548
  }
549
549
  }
550
- function sr(e) {
550
+ function ur(e) {
551
551
  {
552
552
  var r = e.type;
553
553
  if (r == null || typeof r == "string")
@@ -555,7 +555,7 @@ Check the top-level render call using <` + t + ">.");
555
555
  var t;
556
556
  if (typeof r == "function")
557
557
  t = r.propTypes;
558
- else if (typeof r == "object" && (r.$$typeof === c || // Note: Memo only checks outer props here.
558
+ else if (typeof r == "object" && (r.$$typeof === l || // Note: Memo only checks outer props here.
559
559
  // Inner props are checked in the reconciler.
560
560
  r.$$typeof === w))
561
561
  t = r.propTypes;
@@ -588,12 +588,12 @@ Check the top-level render call using <` + t + ">.");
588
588
  {
589
589
  var d = Ye(e);
590
590
  if (!d) {
591
- var l = "";
592
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (l += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
591
+ var f = "";
592
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (f += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
593
593
  var _ = ir(g);
594
- _ ? l += _ : l += Se();
594
+ _ ? f += _ : f += Se();
595
595
  var E;
596
- e === null ? E = "null" : Q(e) ? E = "array" : e !== void 0 && e.$$typeof === o ? (E = "<" + (S(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : E = typeof e, p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, l);
596
+ e === null ? E = "null" : Q(e) ? E = "array" : e !== void 0 && e.$$typeof === o ? (E = "<" + (S(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : E = typeof e, p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, f);
597
597
  }
598
598
  var y = or(e, r, t, g, m);
599
599
  if (y == null)
@@ -604,14 +604,14 @@ Check the top-level render call using <` + t + ">.");
604
604
  if (a)
605
605
  if (Q(O)) {
606
606
  for (var $ = 0; $ < O.length; $++)
607
- xe(O[$], e);
607
+ ke(O[$], e);
608
608
  Object.freeze && Object.freeze(O);
609
609
  } else
610
610
  p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
611
611
  else
612
- xe(O, e);
612
+ ke(O, e);
613
613
  }
614
- return e === v ? cr(y) : sr(y), y;
614
+ return e === v ? cr(y) : ur(y), y;
615
615
  }
616
616
  }
617
617
  function lr(e, r, t) {
@@ -625,8 +625,8 @@ Check the top-level render call using <` + t + ">.");
625
625
  }()), M;
626
626
  }
627
627
  process.env.NODE_ENV === "production" ? oe.exports = Er() : oe.exports = yr();
628
- var k = oe.exports;
629
- const H = pr({
628
+ var x = oe.exports;
629
+ const K = pr({
630
630
  axios: void 0,
631
631
  children: void 0,
632
632
  Navigate: void 0,
@@ -637,89 +637,89 @@ const H = pr({
637
637
  }), Tr = ({
638
638
  axios: n,
639
639
  children: o,
640
- translate: f,
640
+ translate: s,
641
641
  useAuth: v,
642
642
  Outlet: i,
643
643
  Navigate: u,
644
- useLocation: s,
644
+ useLocation: c,
645
645
  useGoogleTagManager: h
646
646
  }) => {
647
- const c = ie(
647
+ const l = ie(
648
648
  () => ({
649
649
  axios: n,
650
650
  Navigate: u,
651
651
  Outlet: i,
652
- translate: f,
652
+ translate: s,
653
653
  useAuth: v,
654
654
  useGoogleTagManager: h,
655
- useLocation: s
655
+ useLocation: c
656
656
  }),
657
- [u, i, n, f, v, h, s]
657
+ [u, i, n, s, v, h, c]
658
658
  );
659
- return /* @__PURE__ */ k.jsx(H.Provider, { value: c, children: o });
660
- }, U = (n) => `RequireAuth require « ${n} » dependency. You can provide with InjectDependenciesProvider or directly in props.`, Or = ({
659
+ return /* @__PURE__ */ x.jsx(K.Provider, { value: l, children: o });
660
+ }, G = (n) => `RequireAuth require « ${n} » dependency. You can provide with InjectDependenciesProvider or directly in props.`, Or = ({
661
661
  Fallback: n,
662
662
  loginPath: o = "/login",
663
- localStorageKey: f = "user",
663
+ localStorageKey: s = "user",
664
664
  redirect401Path: v = "/login",
665
665
  ...i
666
666
  }) => {
667
- var x, A, N, j;
667
+ var k, A, N, j;
668
668
  const {
669
669
  axios: u = i.axios,
670
- useLocation: s = i.useLocation,
670
+ useLocation: c = i.useLocation,
671
671
  useAuth: h = i.useAuth,
672
- Outlet: c = i.Outlet,
672
+ Outlet: l = i.Outlet,
673
673
  Navigate: R = i.Navigate
674
- } = ue(H);
674
+ } = se(K);
675
675
  if (h === void 0)
676
- throw new Error(U("useAuth"));
677
- if (s === void 0)
678
- throw new Error(U("useLocation"));
676
+ throw new Error(G("useAuth"));
679
677
  if (c === void 0)
680
- throw new Error(U("Outlet"));
678
+ throw new Error(G("useLocation"));
679
+ if (l === void 0)
680
+ throw new Error(G("Outlet"));
681
681
  if (R === void 0)
682
- throw new Error(U("Navigate"));
683
- const [b, w] = gr(null), { isLogged: T } = h(), C = s();
682
+ throw new Error(G("Navigate"));
683
+ const [b, w] = gr(null), { isLogged: T } = h(), C = c();
684
684
  return J(() => {
685
685
  u == null || u.interceptors.response.use(
686
686
  (p) => p,
687
687
  async (p) => {
688
688
  var Y;
689
- return typeof p == "object" && p && "response" in p && p.response && typeof p.response == "object" && "status" in p.response && p.response && typeof p.response == "object" && "status" in p.response && ((Y = p == null ? void 0 : p.response) == null ? void 0 : Y.status) === 401 && (u.defaults.headers.common.Authorization = null, localStorage.removeItem(f), w(v)), Promise.reject(p);
689
+ return typeof p == "object" && p && "response" in p && p.response && typeof p.response == "object" && "status" in p.response && p.response && typeof p.response == "object" && "status" in p.response && ((Y = p == null ? void 0 : p.response) == null ? void 0 : Y.status) === 401 && (u.defaults.headers.common.Authorization = null, localStorage.removeItem(s), w(v)), Promise.reject(p);
690
690
  }
691
691
  );
692
- }, [u == null ? void 0 : u.defaults, u == null ? void 0 : u.interceptors.response, f, v]), T && !b ? /* @__PURE__ */ k.jsx(mr, { fallback: n, children: (A = (x = C.state) == null ? void 0 : x.from) != null && A.state && ((j = (N = C.state) == null ? void 0 : N.from) == null ? void 0 : j.pathname) === o ? /* @__PURE__ */ k.jsx(R, { to: C.state.from.state.from.pathname + C.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ k.jsx(c, {}) }) : /* @__PURE__ */ k.jsx(R, { to: o, state: { from: C }, replace: !0 });
692
+ }, [u == null ? void 0 : u.defaults, u == null ? void 0 : u.interceptors.response, s, v]), T && !b ? /* @__PURE__ */ x.jsx(mr, { fallback: n, children: (A = (k = C.state) == null ? void 0 : k.from) != null && A.state && ((j = (N = C.state) == null ? void 0 : N.from) == null ? void 0 : j.pathname) === o ? /* @__PURE__ */ x.jsx(R, { to: C.state.from.state.from.pathname + C.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ x.jsx(l, {}) }) : /* @__PURE__ */ x.jsx(R, { to: o, state: { from: C }, replace: !0 });
693
693
  }, ae = (n) => `GTMSendPageView require « ${n} » dependency. You can provide with InjectDependenciesProvider or directly in props.`, jr = ({ ...n }) => {
694
694
  const {
695
695
  useLocation: o = n.useLocation,
696
- Outlet: f = n.Outlet,
696
+ Outlet: s = n.Outlet,
697
697
  useGoogleTagManager: v = n.useGoogleTagManager
698
- } = ue(H);
698
+ } = se(K);
699
699
  if (o === void 0)
700
700
  throw new Error(ae("useLocation"));
701
- if (f === void 0)
701
+ if (s === void 0)
702
702
  throw new Error(ae("Outlet"));
703
703
  if (v === void 0)
704
704
  throw new Error(ae("useGoogleTagManager"));
705
705
  const { pathname: i } = o(), { sendEvent: u } = v();
706
706
  return hr(() => {
707
707
  u({ event: "pageView", pathname: i });
708
- }, [i, u]), /* @__PURE__ */ k.jsx(f, {});
708
+ }, [i, u]), /* @__PURE__ */ x.jsx(s, {});
709
709
  }, Sr = ({
710
710
  axios: n,
711
711
  baseURL: o,
712
- userLocalStorageKey: f = "user",
712
+ userLocalStorageKey: s = "user",
713
713
  postContentType: v = "application/json"
714
714
  }) => (J(() => {
715
715
  if (!n.defaults)
716
716
  return;
717
- const i = localStorage.getItem(f), u = i ? JSON.parse(i) : null, s = u && typeof u == "object" && "tokenType" in u && u.tokenType ? u.tokenType : null, h = u && typeof u == "object" && "accessToken" in u && u.accessToken ? u.accessToken : null, c = i ? `${s} ${h}` : null;
718
- n.defaults.baseURL = o, n.defaults.headers.post["Content-Type"] = v, c && (n.defaults.headers.common.Authorization = c);
719
- }, [n.defaults, o, v, f]), null), Pr = ({
717
+ const i = localStorage.getItem(s), u = i ? JSON.parse(i) : null, c = u && typeof u == "object" && "tokenType" in u && u.tokenType ? u.tokenType : null, h = u && typeof u == "object" && "accessToken" in u && u.accessToken ? u.accessToken : null, l = i ? `${c} ${h}` : null;
718
+ n.defaults.baseURL = o, n.defaults.headers.post["Content-Type"] = v, l && (n.defaults.headers.common.Authorization = l);
719
+ }, [n.defaults, o, v, s]), null), Pr = ({
720
720
  i18n: n,
721
721
  initReactI18next: o,
722
- resources: f,
722
+ resources: s,
723
723
  LanguageDetector: v
724
724
  }) => (n.use(v).use(o).init({
725
725
  debug: !1,
@@ -731,34 +731,34 @@ const H = pr({
731
731
  react: {
732
732
  useSuspense: !0
733
733
  },
734
- resources: f,
734
+ resources: s,
735
735
  returnNull: !1
736
736
  }).then(() => {
737
737
  document.documentElement.lang !== n.resolvedLanguage && n.resolvedLanguage && document.documentElement.setAttribute("lang", n.resolvedLanguage);
738
738
  }), n.on("languageChanged", (i) => {
739
739
  document.documentElement.setAttribute("lang", i);
740
- }), null), kr = ({ dsn: n, sentry: o }) => (J(() => {
740
+ }), null), xr = ({ dsn: n, sentry: o }) => (J(() => {
741
741
  process.env.NODE_ENV === "production" && o.init({
742
742
  dsn: n,
743
743
  integrations: [new o.BrowserTracing()],
744
744
  tracesSampleRate: 1
745
745
  });
746
- }, [n, o]), null), xr = ({ IMaskMixin: n, ...o }) => {
747
- const f = ie(
746
+ }, [n, o]), null), kr = ({ IMaskMixin: n, ...o }) => {
747
+ const s = ie(
748
748
  // eslint-disable-next-line react/jsx-props-no-spreading
749
- () => n(({ TextField: v, ...i }) => /* @__PURE__ */ k.jsx(v, { ...i })),
749
+ () => n(({ TextField: v, ...i }) => /* @__PURE__ */ x.jsx(v, { ...i })),
750
750
  [n]
751
751
  );
752
- return /* @__PURE__ */ k.jsx(f, { ...o });
752
+ return /* @__PURE__ */ x.jsx(s, { ...o });
753
753
  }, Ar = ({ mapbox: n, accessToken: o }) => (J(() => {
754
754
  n && o && (n.accessToken = o);
755
755
  }, [o, n]), null), Dr = ({
756
756
  children: n,
757
757
  defaultOptions: o,
758
- QueryClient: f,
758
+ QueryClient: s,
759
759
  QueryClientProvider: v
760
760
  }) => {
761
- const i = new f({
761
+ const i = new s({
762
762
  defaultOptions: {
763
763
  queries: {
764
764
  refetchOnWindowFocus: !1,
@@ -767,88 +767,91 @@ const H = pr({
767
767
  }
768
768
  }
769
769
  });
770
- return /* @__PURE__ */ k.jsx(v, { client: i, children: n });
770
+ return /* @__PURE__ */ x.jsx(v, { client: i, children: n });
771
771
  }, Fr = (n) => {
772
- const { unknownErrorTranslationKey: o = "error.unknownError" } = n || {}, { translate: f = n == null ? void 0 : n.translate } = ue(H);
773
- return { printError: Ie(
772
+ const { unknownErrorTranslationKey: o = "error.unknownError" } = n || {}, { translate: s = n == null ? void 0 : n.translate } = se(K);
773
+ return { printError: Le(
774
774
  (i) => {
775
- var h, c, R, b, w, T, C, x, A;
776
- const u = f ? f(o) : "Unknown error", { response: s } = i || {};
777
- return i != null && i.reason ? String(i.reason) : (h = s == null ? void 0 : s.data) != null && h.reason ? String(s.data.reason) : (c = s == null ? void 0 : s.data) != null && c.message ? String(s.data.message) : (b = (R = s == null ? void 0 : s.data) == null ? void 0 : R.detail) != null && b.length && Array.isArray((w = s == null ? void 0 : s.data) == null ? void 0 : w.detail) && ((C = (T = s == null ? void 0 : s.data) == null ? void 0 : T.detail[0]) != null && C.msg) && typeof ((A = (x = s == null ? void 0 : s.data) == null ? void 0 : x.detail[0]) == null ? void 0 : A.msg) == "string" ? String(s.data.detail[0].msg) : u;
775
+ var h, l, R, b, w, T, C, k, A;
776
+ const u = s ? s(o) : "Unknown error", { response: c } = i || {};
777
+ return i != null && i.reason ? String(i.reason) : (h = c == null ? void 0 : c.data) != null && h.reason ? String(c.data.reason) : (l = c == null ? void 0 : c.data) != null && l.message ? String(c.data.message) : (b = (R = c == null ? void 0 : c.data) == null ? void 0 : R.detail) != null && b.length && Array.isArray((w = c == null ? void 0 : c.data) == null ? void 0 : w.detail) && ((C = (T = c == null ? void 0 : c.data) == null ? void 0 : T.detail[0]) != null && C.msg) && typeof ((A = (k = c == null ? void 0 : c.data) == null ? void 0 : k.detail[0]) == null ? void 0 : A.msg) == "string" ? String(c.data.detail[0].msg) : u;
778
778
  },
779
- [f, o]
779
+ [s, o]
780
780
  ) };
781
781
  }, $r = ({
782
782
  data: n,
783
783
  fetchNextPage: o,
784
- isFetchingNextPage: f,
784
+ isFetchingNextPage: s,
785
785
  isInitialLoading: v,
786
786
  isLoading: i,
787
787
  enabled: u = !0
788
788
  }) => {
789
- const s = Ie(
790
- async (c) => {
791
- f || !u || await o({ pageParam: (c == null ? void 0 : c.pageParam) || c.visibleRowsCount });
789
+ const c = Le(
790
+ async (l) => {
791
+ s || !u || await o({ pageParam: (l == null ? void 0 : l.pageParam) || l.visibleRowsCount });
792
792
  },
793
- [u, o, f]
793
+ [u, o, s]
794
794
  ), h = ie(() => {
795
795
  if (n)
796
- return n.pages.reduce((c, R) => [...c, ...R], []);
796
+ return n.pages.reduce((l, R) => [...l, ...R], []);
797
797
  }, [n]);
798
798
  return {
799
- fetchNextPageOnRowsScrollEnd: s,
800
- isLoading: f || i,
799
+ fetchNextPageOnRowsScrollEnd: c,
800
+ isLoading: s || i,
801
801
  loadingVariant: v ? "skeleton" : "linear",
802
802
  rows: h
803
803
  };
804
804
  }, br = (n) => n.charAt(0).toUpperCase() + n.slice(1).toLowerCase(), Rr = (n) => {
805
- const v = n.split("/").filter((i) => i.length > 0).map((i) => i.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((c) => c.charAt(0).toUpperCase() + c.slice(1)).join("")).join("");
805
+ const v = n.split("/").filter((i) => i.length > 0).map((i) => i.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((l) => l.charAt(0).toUpperCase() + l.slice(1)).join("")).join("");
806
806
  return v.charAt(0).toLowerCase() + v.slice(1);
807
- }, _r = (n, o, f) => {
808
- const v = Rr(o), i = br(f);
807
+ }, _r = (n, o, s) => {
808
+ const v = Rr(o), i = br(s);
809
809
  return `${v}${i}`;
810
810
  }, wr = (n) => {
811
811
  if (n)
812
- return (n == null ? void 0 : n.reduce((o, f) => (o[f] = {
812
+ return (n == null ? void 0 : n.reduce((o, s) => (o[s] = {
813
813
  query: {
814
814
  useInfinite: !0,
815
815
  useInfiniteQueryParam: "offset"
816
816
  }
817
817
  }, o), {})) || {};
818
- }, Lr = (n) => ({
819
- api: {
820
- input: "./openapi.json",
821
- output: {
822
- client: "react-query",
823
- mode: "tags-split",
824
- override: {
825
- mutator: {
826
- name: "axiosCustomInstance",
827
- path: `${__dirname}/config/orval/mutator/axiosCustomInstance.ts`
818
+ }, Ir = (n) => {
819
+ const { input: o = "./openapi.json", operationsToGenerateInfiniteQueryHook: s = void 0 } = n || {};
820
+ return {
821
+ api: {
822
+ input: o,
823
+ output: {
824
+ client: "react-query",
825
+ mode: "tags-split",
826
+ override: {
827
+ mutator: {
828
+ name: "axiosCustomInstance",
829
+ path: `${__dirname}/config/orval/mutator/axiosCustomInstance.ts`
830
+ },
831
+ operationName: _r,
832
+ ...(s == null ? void 0 : s.length) && { operations: wr(s) },
833
+ query: {
834
+ useQuery: !0
835
+ }
828
836
  },
829
- operationName: _r,
830
- ...(n == null ? void 0 : n.length) && { operations: wr(n) },
831
- query: {
832
- useQuery: !0
833
- }
834
- },
835
- schemas: "src/api/model",
836
- target: "src/api/services/api.ts"
837
+ schemas: "src/api/model",
838
+ target: "src/api/services/api.ts"
839
+ }
837
840
  }
838
- }
839
- });
841
+ };
842
+ };
840
843
  export {
841
844
  Sr as AxiosConfig,
842
845
  jr as GTMSendPageView,
843
846
  Pr as I18nConfig,
844
- H as InjectDependenciesContext,
847
+ K as InjectDependenciesContext,
845
848
  Tr as InjectDependenciesProvider,
846
849
  Ar as MapBoxConfig,
847
- xr as MaskTextField,
850
+ kr as MaskTextField,
848
851
  Dr as QueryClientConfigProvider,
849
852
  Or as RequireAuth,
850
- kr as SentryConfig,
851
- Lr as getOrvalConfig,
853
+ xr as SentryConfig,
854
+ Ir as getOrvalConfig,
852
855
  $r as useInfiniteDataGrid,
853
856
  Fr as useResponseError
854
857
  };
package/dist/main.umd.cjs CHANGED
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var se;function Le(){if(se)return W;se=1;var n=h,o=Symbol.for("react.element"),f=Symbol.for("react.fragment"),v=Object.prototype.hasOwnProperty,i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function u(E,c,C){var _,T={},j=null,O=null;C!==void 0&&(j=""+C),c.key!==void 0&&(j=""+c.key),c.ref!==void 0&&(O=c.ref);for(_ in c)v.call(c,_)&&!s.hasOwnProperty(_)&&(T[_]=c[_]);if(E&&E.defaultProps)for(_ in c=E.defaultProps,c)T[_]===void 0&&(T[_]=c[_]);return{$$typeof:o,type:E,key:j,ref:O,props:T,_owner:i.current}}return W.Fragment=f,W.jsx=u,W.jsxs=u,W}var N={};/**
9
+ */var se;function Ie(){if(se)return W;se=1;var n=h,o=Symbol.for("react.element"),s=Symbol.for("react.fragment"),v=Object.prototype.hasOwnProperty,i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function c(E,l,C){var _,T={},j=null,O=null;C!==void 0&&(j=""+C),l.key!==void 0&&(j=""+l.key),l.ref!==void 0&&(O=l.ref);for(_ in l)v.call(l,_)&&!u.hasOwnProperty(_)&&(T[_]=l[_]);if(E&&E.defaultProps)for(_ in l=E.defaultProps,l)T[_]===void 0&&(T[_]=l[_]);return{$$typeof:o,type:E,key:j,ref:O,props:T,_owner:i.current}}return W.Fragment=s,W.jsx=c,W.jsxs=c,W}var N={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,14 +14,14 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var ue;function Ie(){return ue||(ue=1,process.env.NODE_ENV!=="production"&&function(){var n=h,o=Symbol.for("react.element"),f=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),E=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),O=Symbol.for("react.offscreen"),D=Symbol.iterator,F="@@iterator";function z(e){if(e===null||typeof e!="object")return null;var r=D&&e[D]||e[F];return typeof r=="function"?r:null}var k=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function p(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];ce("error",e,t)}}function ce(e,r,t){{var a=k.ReactDebugCurrentFrame,g=a.getStackAddendum();g!==""&&(r+="%s",t=t.concat([g]));var m=t.map(function(d){return String(d)});m.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,m)}}var le=!1,U=!1,Qe=!1,er=!1,rr=!1,fe;fe=Symbol.for("react.module.reference");function tr(e){return!!(typeof e=="string"||typeof e=="function"||e===v||e===s||rr||e===i||e===C||e===_||er||e===O||le||U||Qe||typeof e=="object"&&e!==null&&(e.$$typeof===j||e.$$typeof===T||e.$$typeof===u||e.$$typeof===E||e.$$typeof===c||e.$$typeof===fe||e.getModuleId!==void 0))}function nr(e,r,t){var a=e.displayName;if(a)return a;var g=r.displayName||r.name||"";return g!==""?t+"("+g+")":t}function de(e){return e.displayName||"Context"}function x(e){if(e==null)return null;if(typeof e.tag=="number"&&p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case v:return"Fragment";case f:return"Portal";case s:return"Profiler";case i:return"StrictMode";case C:return"Suspense";case _:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case E:var r=e;return de(r)+".Consumer";case u:var t=e;return de(t._context)+".Provider";case c:return nr(e,e.render,"ForwardRef");case T:var a=e.displayName||null;return a!==null?a:x(e.type)||"Memo";case j:{var g=e,m=g._payload,d=g._init;try{return x(d(m))}catch{return null}}}return null}var L=Object.assign,V=0,ve,pe,ge,me,he,Ee,ye;function be(){}be.__reactDisabledLog=!0;function ar(){{if(V===0){ve=console.log,pe=console.info,ge=console.warn,me=console.error,he=console.group,Ee=console.groupCollapsed,ye=console.groupEnd;var e={configurable:!0,enumerable:!0,value:be,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}V++}}function or(){{if(V--,V===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:L({},e,{value:ve}),info:L({},e,{value:pe}),warn:L({},e,{value:ge}),error:L({},e,{value:me}),group:L({},e,{value:he}),groupCollapsed:L({},e,{value:Ee}),groupEnd:L({},e,{value:ye})})}V<0&&p("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Q=k.ReactCurrentDispatcher,ee;function J(e,r,t){{if(ee===void 0)try{throw Error()}catch(g){var a=g.stack.trim().match(/\n( *(at )?)/);ee=a&&a[1]||""}return`
18
- `+ee+e}}var re=!1,H;{var ir=typeof WeakMap=="function"?WeakMap:Map;H=new ir}function Re(e,r){if(!e||re)return"";{var t=H.get(e);if(t!==void 0)return t}var a;re=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var m;m=Q.current,Q.current=null,ar();try{if(r){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(A){a=A}Reflect.construct(e,[],d)}else{try{d.call()}catch(A){a=A}e.call(d.prototype)}}else{try{throw Error()}catch(A){a=A}e()}}catch(A){if(A&&a&&typeof A.stack=="string"){for(var l=A.stack.split(`
17
+ */var ue;function Le(){return ue||(ue=1,process.env.NODE_ENV!=="production"&&function(){var n=h,o=Symbol.for("react.element"),s=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),E=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),O=Symbol.for("react.offscreen"),D=Symbol.iterator,F="@@iterator";function z(e){if(e===null||typeof e!="object")return null;var r=D&&e[D]||e[F];return typeof r=="function"?r:null}var k=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function p(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];ce("error",e,t)}}function ce(e,r,t){{var a=k.ReactDebugCurrentFrame,g=a.getStackAddendum();g!==""&&(r+="%s",t=t.concat([g]));var m=t.map(function(d){return String(d)});m.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,m)}}var le=!1,G=!1,Qe=!1,er=!1,rr=!1,fe;fe=Symbol.for("react.module.reference");function tr(e){return!!(typeof e=="string"||typeof e=="function"||e===v||e===u||rr||e===i||e===C||e===_||er||e===O||le||G||Qe||typeof e=="object"&&e!==null&&(e.$$typeof===j||e.$$typeof===T||e.$$typeof===c||e.$$typeof===E||e.$$typeof===l||e.$$typeof===fe||e.getModuleId!==void 0))}function nr(e,r,t){var a=e.displayName;if(a)return a;var g=r.displayName||r.name||"";return g!==""?t+"("+g+")":t}function de(e){return e.displayName||"Context"}function x(e){if(e==null)return null;if(typeof e.tag=="number"&&p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case v:return"Fragment";case s:return"Portal";case u:return"Profiler";case i:return"StrictMode";case C:return"Suspense";case _:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case E:var r=e;return de(r)+".Consumer";case c:var t=e;return de(t._context)+".Provider";case l:return nr(e,e.render,"ForwardRef");case T:var a=e.displayName||null;return a!==null?a:x(e.type)||"Memo";case j:{var g=e,m=g._payload,d=g._init;try{return x(d(m))}catch{return null}}}return null}var I=Object.assign,V=0,ve,pe,ge,me,he,Ee,ye;function be(){}be.__reactDisabledLog=!0;function ar(){{if(V===0){ve=console.log,pe=console.info,ge=console.warn,me=console.error,he=console.group,Ee=console.groupCollapsed,ye=console.groupEnd;var e={configurable:!0,enumerable:!0,value:be,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}V++}}function or(){{if(V--,V===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:ve}),info:I({},e,{value:pe}),warn:I({},e,{value:ge}),error:I({},e,{value:me}),group:I({},e,{value:he}),groupCollapsed:I({},e,{value:Ee}),groupEnd:I({},e,{value:ye})})}V<0&&p("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Q=k.ReactCurrentDispatcher,ee;function J(e,r,t){{if(ee===void 0)try{throw Error()}catch(g){var a=g.stack.trim().match(/\n( *(at )?)/);ee=a&&a[1]||""}return`
18
+ `+ee+e}}var re=!1,K;{var ir=typeof WeakMap=="function"?WeakMap:Map;K=new ir}function Re(e,r){if(!e||re)return"";{var t=K.get(e);if(t!==void 0)return t}var a;re=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var m;m=Q.current,Q.current=null,ar();try{if(r){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(A){a=A}Reflect.construct(e,[],d)}else{try{d.call()}catch(A){a=A}e.call(d.prototype)}}else{try{throw Error()}catch(A){a=A}e()}}catch(A){if(A&&a&&typeof A.stack=="string"){for(var f=A.stack.split(`
19
19
  `),w=a.stack.split(`
20
- `),y=l.length-1,b=w.length-1;y>=1&&b>=0&&l[y]!==w[b];)b--;for(;y>=1&&b>=0;y--,b--)if(l[y]!==w[b]){if(y!==1||b!==1)do if(y--,b--,b<0||l[y]!==w[b]){var S=`
21
- `+l[y].replace(" at new "," at ");return e.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",e.displayName)),typeof e=="function"&&H.set(e,S),S}while(y>=1&&b>=0);break}}}finally{re=!1,Q.current=m,or(),Error.prepareStackTrace=g}var M=e?e.displayName||e.name:"",Fe=M?J(M):"";return typeof e=="function"&&H.set(e,Fe),Fe}function sr(e,r,t){return Re(e,!1)}function ur(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function K(e,r,t){if(e==null)return"";if(typeof e=="function")return Re(e,ur(e));if(typeof e=="string")return J(e);switch(e){case C:return J("Suspense");case _:return J("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case c:return sr(e.render);case T:return K(e.type,r,t);case j:{var a=e,g=a._payload,m=a._init;try{return K(m(g),r,t)}catch{}}}return""}var X=Object.prototype.hasOwnProperty,_e={},Ce=k.ReactDebugCurrentFrame;function q(e){if(e){var r=e._owner,t=K(e.type,e._source,r?r.type:null);Ce.setExtraStackFrame(t)}else Ce.setExtraStackFrame(null)}function cr(e,r,t,a,g){{var m=Function.call.bind(X);for(var d in e)if(m(e,d)){var l=void 0;try{if(typeof e[d]!="function"){var w=Error((a||"React class")+": "+t+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw w.name="Invariant Violation",w}l=e[d](r,d,a,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(y){l=y}l&&!(l instanceof Error)&&(q(g),p("%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,d,typeof l),q(null)),l instanceof Error&&!(l.message in _e)&&(_e[l.message]=!0,q(g),p("Failed %s type: %s",t,l.message),q(null))}}}var lr=Array.isArray;function te(e){return lr(e)}function fr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function dr(e){try{return we(e),!1}catch{return!0}}function we(e){return""+e}function Te(e){if(dr(e))return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",fr(e)),we(e)}var B=k.ReactCurrentOwner,vr={key:!0,ref:!0,__self:!0,__source:!0},Oe,je,ne;ne={};function pr(e){if(X.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function gr(e){if(X.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function mr(e,r){if(typeof e.ref=="string"&&B.current&&r&&B.current.stateNode!==r){var t=x(B.current.type);ne[t]||(p('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',x(B.current.type),e.ref),ne[t]=!0)}}function hr(e,r){{var t=function(){Oe||(Oe=!0,p("%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))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function Er(e,r){{var t=function(){je||(je=!0,p("%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))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var yr=function(e,r,t,a,g,m,d){var l={$$typeof:o,type:e,key:r,ref:t,props:d,_owner:m};return l._store={},Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:g}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function br(e,r,t,a,g){{var m,d={},l=null,w=null;t!==void 0&&(Te(t),l=""+t),gr(r)&&(Te(r.key),l=""+r.key),pr(r)&&(w=r.ref,mr(r,g));for(m in r)X.call(r,m)&&!vr.hasOwnProperty(m)&&(d[m]=r[m]);if(e&&e.defaultProps){var y=e.defaultProps;for(m in y)d[m]===void 0&&(d[m]=y[m])}if(l||w){var b=typeof e=="function"?e.displayName||e.name||"Unknown":e;l&&hr(d,b),w&&Er(d,b)}return yr(e,l,w,g,a,B.current,d)}}var ae=k.ReactCurrentOwner,Se=k.ReactDebugCurrentFrame;function I(e){if(e){var r=e._owner,t=K(e.type,e._source,r?r.type:null);Se.setExtraStackFrame(t)}else Se.setExtraStackFrame(null)}var oe;oe=!1;function ie(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function Pe(){{if(ae.current){var e=x(ae.current.type);if(e)return`
20
+ `),y=f.length-1,b=w.length-1;y>=1&&b>=0&&f[y]!==w[b];)b--;for(;y>=1&&b>=0;y--,b--)if(f[y]!==w[b]){if(y!==1||b!==1)do if(y--,b--,b<0||f[y]!==w[b]){var S=`
21
+ `+f[y].replace(" at new "," at ");return e.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",e.displayName)),typeof e=="function"&&K.set(e,S),S}while(y>=1&&b>=0);break}}}finally{re=!1,Q.current=m,or(),Error.prepareStackTrace=g}var M=e?e.displayName||e.name:"",Fe=M?J(M):"";return typeof e=="function"&&K.set(e,Fe),Fe}function sr(e,r,t){return Re(e,!1)}function ur(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function X(e,r,t){if(e==null)return"";if(typeof e=="function")return Re(e,ur(e));if(typeof e=="string")return J(e);switch(e){case C:return J("Suspense");case _:return J("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case l:return sr(e.render);case T:return X(e.type,r,t);case j:{var a=e,g=a._payload,m=a._init;try{return X(m(g),r,t)}catch{}}}return""}var H=Object.prototype.hasOwnProperty,_e={},Ce=k.ReactDebugCurrentFrame;function q(e){if(e){var r=e._owner,t=X(e.type,e._source,r?r.type:null);Ce.setExtraStackFrame(t)}else Ce.setExtraStackFrame(null)}function cr(e,r,t,a,g){{var m=Function.call.bind(H);for(var d in e)if(m(e,d)){var f=void 0;try{if(typeof e[d]!="function"){var w=Error((a||"React class")+": "+t+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw w.name="Invariant Violation",w}f=e[d](r,d,a,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(y){f=y}f&&!(f instanceof Error)&&(q(g),p("%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,d,typeof f),q(null)),f instanceof Error&&!(f.message in _e)&&(_e[f.message]=!0,q(g),p("Failed %s type: %s",t,f.message),q(null))}}}var lr=Array.isArray;function te(e){return lr(e)}function fr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function dr(e){try{return we(e),!1}catch{return!0}}function we(e){return""+e}function Te(e){if(dr(e))return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",fr(e)),we(e)}var B=k.ReactCurrentOwner,vr={key:!0,ref:!0,__self:!0,__source:!0},Oe,je,ne;ne={};function pr(e){if(H.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function gr(e){if(H.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function mr(e,r){if(typeof e.ref=="string"&&B.current&&r&&B.current.stateNode!==r){var t=x(B.current.type);ne[t]||(p('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',x(B.current.type),e.ref),ne[t]=!0)}}function hr(e,r){{var t=function(){Oe||(Oe=!0,p("%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))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function Er(e,r){{var t=function(){je||(je=!0,p("%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))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var yr=function(e,r,t,a,g,m,d){var f={$$typeof:o,type:e,key:r,ref:t,props:d,_owner:m};return f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(f,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(f,"_source",{configurable:!1,enumerable:!1,writable:!1,value:g}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f};function br(e,r,t,a,g){{var m,d={},f=null,w=null;t!==void 0&&(Te(t),f=""+t),gr(r)&&(Te(r.key),f=""+r.key),pr(r)&&(w=r.ref,mr(r,g));for(m in r)H.call(r,m)&&!vr.hasOwnProperty(m)&&(d[m]=r[m]);if(e&&e.defaultProps){var y=e.defaultProps;for(m in y)d[m]===void 0&&(d[m]=y[m])}if(f||w){var b=typeof e=="function"?e.displayName||e.name||"Unknown":e;f&&hr(d,b),w&&Er(d,b)}return yr(e,f,w,g,a,B.current,d)}}var ae=k.ReactCurrentOwner,Se=k.ReactDebugCurrentFrame;function L(e){if(e){var r=e._owner,t=X(e.type,e._source,r?r.type:null);Se.setExtraStackFrame(t)}else Se.setExtraStackFrame(null)}var oe;oe=!1;function ie(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function Pe(){{if(ae.current){var e=x(ae.current.type);if(e)return`
22
22
 
23
23
  Check the render method of \``+e+"`."}return""}}function Rr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
24
24
 
25
25
  Check your code at `+r+":"+t+"."}return""}}var ke={};function _r(e){{var r=Pe();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
26
26
 
27
- Check the top-level render call using <`+t+">.")}return r}}function xe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=_r(r);if(ke[t])return;ke[t]=!0;var a="";e&&e._owner&&e._owner!==ae.current&&(a=" It was passed a child from "+x(e._owner.type)+"."),I(e),p('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),I(null)}}function Ae(e,r){{if(typeof e!="object")return;if(te(e))for(var t=0;t<e.length;t++){var a=e[t];ie(a)&&xe(a,r)}else if(ie(e))e._store&&(e._store.validated=!0);else if(e){var g=z(e);if(typeof g=="function"&&g!==e.entries)for(var m=g.call(e),d;!(d=m.next()).done;)ie(d.value)&&xe(d.value,r)}}}function Cr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===c||r.$$typeof===T))t=r.propTypes;else return;if(t){var a=x(r);cr(t,e.props,"prop",a,e)}else if(r.PropTypes!==void 0&&!oe){oe=!0;var g=x(r);p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",g||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function wr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var a=r[t];if(a!=="children"&&a!=="key"){I(e),p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),I(null);break}}e.ref!==null&&(I(e),p("Invalid attribute `ref` supplied to `React.Fragment`."),I(null))}}function De(e,r,t,a,g,m){{var d=tr(e);if(!d){var l="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(l+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var w=Rr(g);w?l+=w:l+=Pe();var y;e===null?y="null":te(e)?y="array":e!==void 0&&e.$$typeof===o?(y="<"+(x(e.type)||"Unknown")+" />",l=" Did you accidentally export a JSX literal instead of a component?"):y=typeof e,p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",y,l)}var b=br(e,r,t,g,m);if(b==null)return b;if(d){var S=r.children;if(S!==void 0)if(a)if(te(S)){for(var M=0;M<S.length;M++)Ae(S[M],e);Object.freeze&&Object.freeze(S)}else p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ae(S,e)}return e===v?wr(b):Cr(b),b}}function Tr(e,r,t){return De(e,r,t,!0)}function Or(e,r,t){return De(e,r,t,!1)}var jr=Or,Sr=Tr;N.Fragment=v,N.jsx=jr,N.jsxs=Sr}()),N}process.env.NODE_ENV==="production"?Z.exports=Le():Z.exports=Ie();var P=Z.exports;const Y=h.createContext({axios:void 0,children:void 0,Navigate:void 0,Outlet:void 0,translate:void 0,useAuth:void 0,useLocation:void 0}),Me=({axios:n,children:o,translate:f,useAuth:v,Outlet:i,Navigate:s,useLocation:u,useGoogleTagManager:E})=>{const c=h.useMemo(()=>({axios:n,Navigate:s,Outlet:i,translate:f,useAuth:v,useGoogleTagManager:E,useLocation:u}),[s,i,n,f,v,E,u]);return P.jsx(Y.Provider,{value:c,children:o})},G=n=>`RequireAuth require « ${n} » dependency. You can provide with InjectDependenciesProvider or directly in props.`,We=({Fallback:n,loginPath:o="/login",localStorageKey:f="user",redirect401Path:v="/login",...i})=>{var D,F,z,k;const{axios:s=i.axios,useLocation:u=i.useLocation,useAuth:E=i.useAuth,Outlet:c=i.Outlet,Navigate:C=i.Navigate}=h.useContext(Y);if(E===void 0)throw new Error(G("useAuth"));if(u===void 0)throw new Error(G("useLocation"));if(c===void 0)throw new Error(G("Outlet"));if(C===void 0)throw new Error(G("Navigate"));const[_,T]=h.useState(null),{isLogged:j}=E(),O=u();return h.useLayoutEffect(()=>{s==null||s.interceptors.response.use(p=>p,async p=>{var U;return typeof p=="object"&&p&&"response"in p&&p.response&&typeof p.response=="object"&&"status"in p.response&&p.response&&typeof p.response=="object"&&"status"in p.response&&((U=p==null?void 0:p.response)==null?void 0:U.status)===401&&(s.defaults.headers.common.Authorization=null,localStorage.removeItem(f),T(v)),Promise.reject(p)})},[s==null?void 0:s.defaults,s==null?void 0:s.interceptors.response,f,v]),j&&!_?P.jsx(h.Suspense,{fallback:n,children:(F=(D=O.state)==null?void 0:D.from)!=null&&F.state&&((k=(z=O.state)==null?void 0:z.from)==null?void 0:k.pathname)===o?P.jsx(C,{to:O.state.from.state.from.pathname+O.state.from.state.from.search,replace:!0}):P.jsx(c,{})}):P.jsx(C,{to:o,state:{from:O},replace:!0})},$=n=>`GTMSendPageView require « ${n} » dependency. You can provide with InjectDependenciesProvider or directly in props.`,Ne=({...n})=>{const{useLocation:o=n.useLocation,Outlet:f=n.Outlet,useGoogleTagManager:v=n.useGoogleTagManager}=h.useContext(Y);if(o===void 0)throw new Error($("useLocation"));if(f===void 0)throw new Error($("Outlet"));if(v===void 0)throw new Error($("useGoogleTagManager"));const{pathname:i}=o(),{sendEvent:s}=v();return h.useEffect(()=>{s({event:"pageView",pathname:i})},[i,s]),P.jsx(f,{})},Ye=({axios:n,baseURL:o,userLocalStorageKey:f="user",postContentType:v="application/json"})=>(h.useLayoutEffect(()=>{if(!n.defaults)return;const i=localStorage.getItem(f),s=i?JSON.parse(i):null,u=s&&typeof s=="object"&&"tokenType"in s&&s.tokenType?s.tokenType:null,E=s&&typeof s=="object"&&"accessToken"in s&&s.accessToken?s.accessToken:null,c=i?`${u} ${E}`:null;n.defaults.baseURL=o,n.defaults.headers.post["Content-Type"]=v,c&&(n.defaults.headers.common.Authorization=c)},[n.defaults,o,v,f]),null),Ve=({i18n:n,initReactI18next:o,resources:f,LanguageDetector:v})=>(n.use(v).use(o).init({debug:!1,fallbackLng:"en",interpolation:{escapeValue:!1},load:"languageOnly",react:{useSuspense:!0},resources:f,returnNull:!1}).then(()=>{document.documentElement.lang!==n.resolvedLanguage&&n.resolvedLanguage&&document.documentElement.setAttribute("lang",n.resolvedLanguage)}),n.on("languageChanged",i=>{document.documentElement.setAttribute("lang",i)}),null),Be=({dsn:n,sentry:o})=>(h.useLayoutEffect(()=>{process.env.NODE_ENV==="production"&&o.init({dsn:n,integrations:[new o.BrowserTracing],tracesSampleRate:1})},[n,o]),null),Ge=({IMaskMixin:n,...o})=>{const f=h.useMemo(()=>n(({TextField:v,...i})=>P.jsx(v,{...i})),[n]);return P.jsx(f,{...o})},ze=({mapbox:n,accessToken:o})=>(h.useLayoutEffect(()=>{n&&o&&(n.accessToken=o)},[o,n]),null),Ue=({children:n,defaultOptions:o,QueryClient:f,QueryClientProvider:v})=>{const i=new f({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:3,...o}}});return P.jsx(v,{client:i,children:n})},Je=n=>{const{unknownErrorTranslationKey:o="error.unknownError"}=n||{},{translate:f=n==null?void 0:n.translate}=h.useContext(Y);return{printError:h.useCallback(i=>{var E,c,C,_,T,j,O,D,F;const s=f?f(o):"Unknown error",{response:u}=i||{};return i!=null&&i.reason?String(i.reason):(E=u==null?void 0:u.data)!=null&&E.reason?String(u.data.reason):(c=u==null?void 0:u.data)!=null&&c.message?String(u.data.message):(_=(C=u==null?void 0:u.data)==null?void 0:C.detail)!=null&&_.length&&Array.isArray((T=u==null?void 0:u.data)==null?void 0:T.detail)&&((O=(j=u==null?void 0:u.data)==null?void 0:j.detail[0])!=null&&O.msg)&&typeof((F=(D=u==null?void 0:u.data)==null?void 0:D.detail[0])==null?void 0:F.msg)=="string"?String(u.data.detail[0].msg):s},[f,o])}},He=({data:n,fetchNextPage:o,isFetchingNextPage:f,isInitialLoading:v,isLoading:i,enabled:s=!0})=>{const u=h.useCallback(async c=>{f||!s||await o({pageParam:(c==null?void 0:c.pageParam)||c.visibleRowsCount})},[s,o,f]),E=h.useMemo(()=>{if(n)return n.pages.reduce((c,C)=>[...c,...C],[])},[n]);return{fetchNextPageOnRowsScrollEnd:u,isLoading:f||i,loadingVariant:v?"skeleton":"linear",rows:E}},Ke=n=>n.charAt(0).toUpperCase()+n.slice(1).toLowerCase(),Xe=n=>{const v=n.split("/").filter(i=>i.length>0).map(i=>i.replace(/\${([^}]*)}/g,"$1").split(/[_-]/).map(c=>c.charAt(0).toUpperCase()+c.slice(1)).join("")).join("");return v.charAt(0).toLowerCase()+v.slice(1)},qe=(n,o,f)=>{const v=Xe(o),i=Ke(f);return`${v}${i}`},Ze=n=>{if(n)return(n==null?void 0:n.reduce((o,f)=>(o[f]={query:{useInfinite:!0,useInfiniteQueryParam:"offset"}},o),{}))||{}},$e=n=>({api:{input:"./openapi.json",output:{client:"react-query",mode:"tags-split",override:{mutator:{name:"axiosCustomInstance",path:`${__dirname}/config/orval/mutator/axiosCustomInstance.ts`},operationName:qe,...(n==null?void 0:n.length)&&{operations:Ze(n)},query:{useQuery:!0}},schemas:"src/api/model",target:"src/api/services/api.ts"}}});R.AxiosConfig=Ye,R.GTMSendPageView=Ne,R.I18nConfig=Ve,R.InjectDependenciesContext=Y,R.InjectDependenciesProvider=Me,R.MapBoxConfig=ze,R.MaskTextField=Ge,R.QueryClientConfigProvider=Ue,R.RequireAuth=We,R.SentryConfig=Be,R.getOrvalConfig=$e,R.useInfiniteDataGrid=He,R.useResponseError=Je,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
27
+ Check the top-level render call using <`+t+">.")}return r}}function xe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=_r(r);if(ke[t])return;ke[t]=!0;var a="";e&&e._owner&&e._owner!==ae.current&&(a=" It was passed a child from "+x(e._owner.type)+"."),L(e),p('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),L(null)}}function Ae(e,r){{if(typeof e!="object")return;if(te(e))for(var t=0;t<e.length;t++){var a=e[t];ie(a)&&xe(a,r)}else if(ie(e))e._store&&(e._store.validated=!0);else if(e){var g=z(e);if(typeof g=="function"&&g!==e.entries)for(var m=g.call(e),d;!(d=m.next()).done;)ie(d.value)&&xe(d.value,r)}}}function Cr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===l||r.$$typeof===T))t=r.propTypes;else return;if(t){var a=x(r);cr(t,e.props,"prop",a,e)}else if(r.PropTypes!==void 0&&!oe){oe=!0;var g=x(r);p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",g||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function wr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var a=r[t];if(a!=="children"&&a!=="key"){L(e),p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),L(null);break}}e.ref!==null&&(L(e),p("Invalid attribute `ref` supplied to `React.Fragment`."),L(null))}}function De(e,r,t,a,g,m){{var d=tr(e);if(!d){var f="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(f+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var w=Rr(g);w?f+=w:f+=Pe();var y;e===null?y="null":te(e)?y="array":e!==void 0&&e.$$typeof===o?(y="<"+(x(e.type)||"Unknown")+" />",f=" Did you accidentally export a JSX literal instead of a component?"):y=typeof e,p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",y,f)}var b=br(e,r,t,g,m);if(b==null)return b;if(d){var S=r.children;if(S!==void 0)if(a)if(te(S)){for(var M=0;M<S.length;M++)Ae(S[M],e);Object.freeze&&Object.freeze(S)}else p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ae(S,e)}return e===v?wr(b):Cr(b),b}}function Tr(e,r,t){return De(e,r,t,!0)}function Or(e,r,t){return De(e,r,t,!1)}var jr=Or,Sr=Tr;N.Fragment=v,N.jsx=jr,N.jsxs=Sr}()),N}process.env.NODE_ENV==="production"?Z.exports=Ie():Z.exports=Le();var P=Z.exports;const Y=h.createContext({axios:void 0,children:void 0,Navigate:void 0,Outlet:void 0,translate:void 0,useAuth:void 0,useLocation:void 0}),Me=({axios:n,children:o,translate:s,useAuth:v,Outlet:i,Navigate:u,useLocation:c,useGoogleTagManager:E})=>{const l=h.useMemo(()=>({axios:n,Navigate:u,Outlet:i,translate:s,useAuth:v,useGoogleTagManager:E,useLocation:c}),[u,i,n,s,v,E,c]);return P.jsx(Y.Provider,{value:l,children:o})},U=n=>`RequireAuth require « ${n} » dependency. You can provide with InjectDependenciesProvider or directly in props.`,We=({Fallback:n,loginPath:o="/login",localStorageKey:s="user",redirect401Path:v="/login",...i})=>{var D,F,z,k;const{axios:u=i.axios,useLocation:c=i.useLocation,useAuth:E=i.useAuth,Outlet:l=i.Outlet,Navigate:C=i.Navigate}=h.useContext(Y);if(E===void 0)throw new Error(U("useAuth"));if(c===void 0)throw new Error(U("useLocation"));if(l===void 0)throw new Error(U("Outlet"));if(C===void 0)throw new Error(U("Navigate"));const[_,T]=h.useState(null),{isLogged:j}=E(),O=c();return h.useLayoutEffect(()=>{u==null||u.interceptors.response.use(p=>p,async p=>{var G;return typeof p=="object"&&p&&"response"in p&&p.response&&typeof p.response=="object"&&"status"in p.response&&p.response&&typeof p.response=="object"&&"status"in p.response&&((G=p==null?void 0:p.response)==null?void 0:G.status)===401&&(u.defaults.headers.common.Authorization=null,localStorage.removeItem(s),T(v)),Promise.reject(p)})},[u==null?void 0:u.defaults,u==null?void 0:u.interceptors.response,s,v]),j&&!_?P.jsx(h.Suspense,{fallback:n,children:(F=(D=O.state)==null?void 0:D.from)!=null&&F.state&&((k=(z=O.state)==null?void 0:z.from)==null?void 0:k.pathname)===o?P.jsx(C,{to:O.state.from.state.from.pathname+O.state.from.state.from.search,replace:!0}):P.jsx(l,{})}):P.jsx(C,{to:o,state:{from:O},replace:!0})},$=n=>`GTMSendPageView require « ${n} » dependency. You can provide with InjectDependenciesProvider or directly in props.`,Ne=({...n})=>{const{useLocation:o=n.useLocation,Outlet:s=n.Outlet,useGoogleTagManager:v=n.useGoogleTagManager}=h.useContext(Y);if(o===void 0)throw new Error($("useLocation"));if(s===void 0)throw new Error($("Outlet"));if(v===void 0)throw new Error($("useGoogleTagManager"));const{pathname:i}=o(),{sendEvent:u}=v();return h.useEffect(()=>{u({event:"pageView",pathname:i})},[i,u]),P.jsx(s,{})},Ye=({axios:n,baseURL:o,userLocalStorageKey:s="user",postContentType:v="application/json"})=>(h.useLayoutEffect(()=>{if(!n.defaults)return;const i=localStorage.getItem(s),u=i?JSON.parse(i):null,c=u&&typeof u=="object"&&"tokenType"in u&&u.tokenType?u.tokenType:null,E=u&&typeof u=="object"&&"accessToken"in u&&u.accessToken?u.accessToken:null,l=i?`${c} ${E}`:null;n.defaults.baseURL=o,n.defaults.headers.post["Content-Type"]=v,l&&(n.defaults.headers.common.Authorization=l)},[n.defaults,o,v,s]),null),Ve=({i18n:n,initReactI18next:o,resources:s,LanguageDetector:v})=>(n.use(v).use(o).init({debug:!1,fallbackLng:"en",interpolation:{escapeValue:!1},load:"languageOnly",react:{useSuspense:!0},resources:s,returnNull:!1}).then(()=>{document.documentElement.lang!==n.resolvedLanguage&&n.resolvedLanguage&&document.documentElement.setAttribute("lang",n.resolvedLanguage)}),n.on("languageChanged",i=>{document.documentElement.setAttribute("lang",i)}),null),Be=({dsn:n,sentry:o})=>(h.useLayoutEffect(()=>{process.env.NODE_ENV==="production"&&o.init({dsn:n,integrations:[new o.BrowserTracing],tracesSampleRate:1})},[n,o]),null),Ue=({IMaskMixin:n,...o})=>{const s=h.useMemo(()=>n(({TextField:v,...i})=>P.jsx(v,{...i})),[n]);return P.jsx(s,{...o})},ze=({mapbox:n,accessToken:o})=>(h.useLayoutEffect(()=>{n&&o&&(n.accessToken=o)},[o,n]),null),Ge=({children:n,defaultOptions:o,QueryClient:s,QueryClientProvider:v})=>{const i=new s({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:3,...o}}});return P.jsx(v,{client:i,children:n})},Je=n=>{const{unknownErrorTranslationKey:o="error.unknownError"}=n||{},{translate:s=n==null?void 0:n.translate}=h.useContext(Y);return{printError:h.useCallback(i=>{var E,l,C,_,T,j,O,D,F;const u=s?s(o):"Unknown error",{response:c}=i||{};return i!=null&&i.reason?String(i.reason):(E=c==null?void 0:c.data)!=null&&E.reason?String(c.data.reason):(l=c==null?void 0:c.data)!=null&&l.message?String(c.data.message):(_=(C=c==null?void 0:c.data)==null?void 0:C.detail)!=null&&_.length&&Array.isArray((T=c==null?void 0:c.data)==null?void 0:T.detail)&&((O=(j=c==null?void 0:c.data)==null?void 0:j.detail[0])!=null&&O.msg)&&typeof((F=(D=c==null?void 0:c.data)==null?void 0:D.detail[0])==null?void 0:F.msg)=="string"?String(c.data.detail[0].msg):u},[s,o])}},Ke=({data:n,fetchNextPage:o,isFetchingNextPage:s,isInitialLoading:v,isLoading:i,enabled:u=!0})=>{const c=h.useCallback(async l=>{s||!u||await o({pageParam:(l==null?void 0:l.pageParam)||l.visibleRowsCount})},[u,o,s]),E=h.useMemo(()=>{if(n)return n.pages.reduce((l,C)=>[...l,...C],[])},[n]);return{fetchNextPageOnRowsScrollEnd:c,isLoading:s||i,loadingVariant:v?"skeleton":"linear",rows:E}},Xe=n=>n.charAt(0).toUpperCase()+n.slice(1).toLowerCase(),He=n=>{const v=n.split("/").filter(i=>i.length>0).map(i=>i.replace(/\${([^}]*)}/g,"$1").split(/[_-]/).map(l=>l.charAt(0).toUpperCase()+l.slice(1)).join("")).join("");return v.charAt(0).toLowerCase()+v.slice(1)},qe=(n,o,s)=>{const v=He(o),i=Xe(s);return`${v}${i}`},Ze=n=>{if(n)return(n==null?void 0:n.reduce((o,s)=>(o[s]={query:{useInfinite:!0,useInfiniteQueryParam:"offset"}},o),{}))||{}},$e=n=>{const{input:o="./openapi.json",operationsToGenerateInfiniteQueryHook:s=void 0}=n||{};return{api:{input:o,output:{client:"react-query",mode:"tags-split",override:{mutator:{name:"axiosCustomInstance",path:`${__dirname}/config/orval/mutator/axiosCustomInstance.ts`},operationName:qe,...(s==null?void 0:s.length)&&{operations:Ze(s)},query:{useQuery:!0}},schemas:"src/api/model",target:"src/api/services/api.ts"}}}};R.AxiosConfig=Ye,R.GTMSendPageView=Ne,R.I18nConfig=Ve,R.InjectDependenciesContext=Y,R.InjectDependenciesProvider=Me,R.MapBoxConfig=ze,R.MaskTextField=Ue,R.QueryClientConfigProvider=Ge,R.RequireAuth=We,R.SentryConfig=Be,R.getOrvalConfig=$e,R.useInfiniteDataGrid=Ke,R.useResponseError=Je,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tracktor/shared-module",
3
- "version": "0.10.0",
3
+ "version": "0.11.1",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "types": "./dist/main.d.ts",