thecore-auth 0.0.78 → 0.0.80

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.
@@ -1,10 +1,10 @@
1
1
  import * as r from "react";
2
- import D, { createContext as ae, useState as j, useContext as se, useEffect as I } from "react";
3
- import it from "jwt-decode";
4
- import { useNavigate as Ue, useLocation as qe, matchPath as ze, Outlet as ye, Navigate as He, useParams as lt, Link as ct, Routes as ut, Route as Q } from "react-router-dom";
5
- import { BrowserRouter as Xt, Link as Kt, NavLink as Qt, Outlet as e0, Route as t0, Routes as r0, useLocation as o0, useMatch as n0, useNavigate as a0 } from "react-router-dom";
6
- import ft from "axios";
7
- import { default as i0 } from "axios";
2
+ import Y, { createContext as ne, useState as C, useContext as ae, useEffect as z } from "react";
3
+ import st from "jwt-decode";
4
+ import { useNavigate as Ue, useLocation as qe, matchPath as ze, Outlet as Ce, Navigate as He, Routes as it, Route as K } from "react-router-dom";
5
+ import { BrowserRouter as Jt, Link as Vt, NavLink as Xt, Outlet as Kt, Route as Qt, Routes as er, useLocation as tr, useMatch as rr, useNavigate as or } from "react-router-dom";
6
+ import lt from "axios";
7
+ import { default as ar } from "axios";
8
8
  var me = { exports: {} }, ue = {};
9
9
  /**
10
10
  * @license React
@@ -16,13 +16,13 @@ var me = { exports: {} }, ue = {};
16
16
  * LICENSE file in the root directory of this source tree.
17
17
  */
18
18
  var Ge;
19
- function dt() {
19
+ function ct() {
20
20
  if (Ge) return ue;
21
21
  Ge = 1;
22
22
  var t = Symbol.for("react.transitional.element"), o = Symbol.for("react.fragment");
23
23
  function n(a, i, u) {
24
- var f = null;
25
- if (u !== void 0 && (f = "" + u), i.key !== void 0 && (f = "" + i.key), "key" in i) {
24
+ var d = null;
25
+ if (u !== void 0 && (d = "" + u), i.key !== void 0 && (d = "" + i.key), "key" in i) {
26
26
  u = {};
27
27
  for (var m in i)
28
28
  m !== "key" && (u[m] = i[m]);
@@ -30,7 +30,7 @@ function dt() {
30
30
  return i = u.ref, {
31
31
  $$typeof: t,
32
32
  type: a,
33
- key: f,
33
+ key: d,
34
34
  ref: i !== void 0 ? i : null,
35
35
  props: u
36
36
  };
@@ -48,41 +48,41 @@ var fe = {};
48
48
  * LICENSE file in the root directory of this source tree.
49
49
  */
50
50
  var Be;
51
- function mt() {
51
+ function ut() {
52
52
  return Be || (Be = 1, process.env.NODE_ENV !== "production" && function() {
53
53
  function t(e) {
54
54
  if (e == null) return null;
55
55
  if (typeof e == "function")
56
- return e.$$typeof === A ? null : e.displayName || e.name || null;
56
+ return e.$$typeof === ve ? null : e.displayName || e.name || null;
57
57
  if (typeof e == "string") return e;
58
58
  switch (e) {
59
- case W:
59
+ case B:
60
60
  return "Fragment";
61
- case N:
61
+ case T:
62
62
  return "Portal";
63
- case Y:
63
+ case q:
64
64
  return "Profiler";
65
- case te:
65
+ case ee:
66
66
  return "StrictMode";
67
- case V:
68
- return "Suspense";
69
67
  case G:
68
+ return "Suspense";
69
+ case $:
70
70
  return "SuspenseList";
71
71
  }
72
72
  if (typeof e == "object")
73
73
  switch (typeof e.tag == "number" && console.error(
74
74
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
75
75
  ), e.$$typeof) {
76
- case J:
76
+ case ie:
77
77
  return (e.displayName || "Context") + ".Provider";
78
- case H:
78
+ case te:
79
79
  return (e._context.displayName || "Context") + ".Consumer";
80
- case Z:
80
+ case H:
81
81
  var l = e.render;
82
82
  return e = e.displayName, e || (e = l.displayName || l.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
83
- case X:
83
+ case F:
84
84
  return l = e.displayName || null, l !== null ? l : t(e.type) || "Memo";
85
- case k:
85
+ case J:
86
86
  l = e._payload, e = e._init;
87
87
  try {
88
88
  return t(e(l));
@@ -103,19 +103,19 @@ function mt() {
103
103
  }
104
104
  if (l) {
105
105
  l = console;
106
- var c = l.error, b = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
106
+ var c = l.error, v = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
107
107
  return c.call(
108
108
  l,
109
109
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
110
- b
110
+ v
111
111
  ), o(e);
112
112
  }
113
113
  }
114
114
  function a() {
115
115
  }
116
116
  function i() {
117
- if (le === 0) {
118
- Le = console.log, Se = console.info, Oe = console.warn, Pe = console.error, ke = console.group, _e = console.groupCollapsed, Re = console.groupEnd;
117
+ if (Z === 0) {
118
+ Le = console.log, Se = console.info, Oe = console.warn, ke = console.error, Pe = console.group, Re = console.groupCollapsed, Te = console.groupEnd;
119
119
  var e = {
120
120
  configurable: !0,
121
121
  enumerable: !0,
@@ -132,135 +132,135 @@ function mt() {
132
132
  groupEnd: e
133
133
  });
134
134
  }
135
- le++;
135
+ Z++;
136
136
  }
137
137
  function u() {
138
- if (le--, le === 0) {
138
+ if (Z--, Z === 0) {
139
139
  var e = { configurable: !0, enumerable: !0, writable: !0 };
140
140
  Object.defineProperties(console, {
141
- log: B({}, e, { value: Le }),
142
- info: B({}, e, { value: Se }),
143
- warn: B({}, e, { value: Oe }),
144
- error: B({}, e, { value: Pe }),
145
- group: B({}, e, { value: ke }),
146
- groupCollapsed: B({}, e, { value: _e }),
147
- groupEnd: B({}, e, { value: Re })
141
+ log: I({}, e, { value: Le }),
142
+ info: I({}, e, { value: Se }),
143
+ warn: I({}, e, { value: Oe }),
144
+ error: I({}, e, { value: ke }),
145
+ group: I({}, e, { value: Pe }),
146
+ groupCollapsed: I({}, e, { value: Re }),
147
+ groupEnd: I({}, e, { value: Te })
148
148
  });
149
149
  }
150
- 0 > le && console.error(
150
+ 0 > Z && console.error(
151
151
  "disabledDepth fell below zero. This is a bug in React. Please file an issue."
152
152
  );
153
153
  }
154
- function f(e) {
155
- if (ve === void 0)
154
+ function d(e) {
155
+ if (be === void 0)
156
156
  try {
157
157
  throw Error();
158
158
  } catch (c) {
159
159
  var l = c.stack.trim().match(/\n( *(at )?)/);
160
- ve = l && l[1] || "", Te = -1 < c.stack.indexOf(`
160
+ be = l && l[1] || "", Ne = -1 < c.stack.indexOf(`
161
161
  at`) ? " (<anonymous>)" : -1 < c.stack.indexOf("@") ? "@unknown:0:0" : "";
162
162
  }
163
163
  return `
164
- ` + ve + e + Te;
164
+ ` + be + e + Ne;
165
165
  }
166
166
  function m(e, l) {
167
- if (!e || be) return "";
168
- var c = Ee.get(e);
167
+ if (!e || Ee) return "";
168
+ var c = ye.get(e);
169
169
  if (c !== void 0) return c;
170
- be = !0, c = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
171
- var b = null;
172
- b = z.H, z.H = null, i();
170
+ Ee = !0, c = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
171
+ var v = null;
172
+ v = O.H, O.H = null, i();
173
173
  try {
174
- var R = {
174
+ var N = {
175
175
  DetermineComponentFrameRoot: function() {
176
176
  try {
177
177
  if (l) {
178
- var q = function() {
178
+ var U = function() {
179
179
  throw Error();
180
180
  };
181
- if (Object.defineProperty(q.prototype, "props", {
181
+ if (Object.defineProperty(U.prototype, "props", {
182
182
  set: function() {
183
183
  throw Error();
184
184
  }
185
185
  }), typeof Reflect == "object" && Reflect.construct) {
186
186
  try {
187
- Reflect.construct(q, []);
188
- } catch (F) {
189
- var de = F;
187
+ Reflect.construct(U, []);
188
+ } catch (W) {
189
+ var de = W;
190
190
  }
191
- Reflect.construct(e, [], q);
191
+ Reflect.construct(e, [], U);
192
192
  } else {
193
193
  try {
194
- q.call();
195
- } catch (F) {
196
- de = F;
194
+ U.call();
195
+ } catch (W) {
196
+ de = W;
197
197
  }
198
- e.call(q.prototype);
198
+ e.call(U.prototype);
199
199
  }
200
200
  } else {
201
201
  try {
202
202
  throw Error();
203
- } catch (F) {
204
- de = F;
203
+ } catch (W) {
204
+ de = W;
205
205
  }
206
- (q = e()) && typeof q.catch == "function" && q.catch(function() {
206
+ (U = e()) && typeof U.catch == "function" && U.catch(function() {
207
207
  });
208
208
  }
209
- } catch (F) {
210
- if (F && de && typeof F.stack == "string")
211
- return [F.stack, de.stack];
209
+ } catch (W) {
210
+ if (W && de && typeof W.stack == "string")
211
+ return [W.stack, de.stack];
212
212
  }
213
213
  return [null, null];
214
214
  }
215
215
  };
216
- R.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
217
- var O = Object.getOwnPropertyDescriptor(
218
- R.DetermineComponentFrameRoot,
216
+ N.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
217
+ var k = Object.getOwnPropertyDescriptor(
218
+ N.DetermineComponentFrameRoot,
219
219
  "name"
220
220
  );
221
- O && O.configurable && Object.defineProperty(
222
- R.DetermineComponentFrameRoot,
221
+ k && k.configurable && Object.defineProperty(
222
+ N.DetermineComponentFrameRoot,
223
223
  "name",
224
224
  { value: "DetermineComponentFrameRoot" }
225
225
  );
226
- var g = R.DetermineComponentFrameRoot(), $ = g[0], oe = g[1];
227
- if ($ && oe) {
228
- var T = $.split(`
229
- `), K = oe.split(`
226
+ var p = N.DetermineComponentFrameRoot(), D = p[0], re = p[1];
227
+ if (D && re) {
228
+ var A = D.split(`
229
+ `), X = re.split(`
230
230
  `);
231
- for (g = O = 0; O < T.length && !T[O].includes(
231
+ for (p = k = 0; k < A.length && !A[k].includes(
232
232
  "DetermineComponentFrameRoot"
233
233
  ); )
234
- O++;
235
- for (; g < K.length && !K[g].includes(
234
+ k++;
235
+ for (; p < X.length && !X[p].includes(
236
236
  "DetermineComponentFrameRoot"
237
237
  ); )
238
- g++;
239
- if (O === T.length || g === K.length)
240
- for (O = T.length - 1, g = K.length - 1; 1 <= O && 0 <= g && T[O] !== K[g]; )
241
- g--;
242
- for (; 1 <= O && 0 <= g; O--, g--)
243
- if (T[O] !== K[g]) {
244
- if (O !== 1 || g !== 1)
238
+ p++;
239
+ if (k === A.length || p === X.length)
240
+ for (k = A.length - 1, p = X.length - 1; 1 <= k && 0 <= p && A[k] !== X[p]; )
241
+ p--;
242
+ for (; 1 <= k && 0 <= p; k--, p--)
243
+ if (A[k] !== X[p]) {
244
+ if (k !== 1 || p !== 1)
245
245
  do
246
- if (O--, g--, 0 > g || T[O] !== K[g]) {
246
+ if (k--, p--, 0 > p || A[k] !== X[p]) {
247
247
  var ce = `
248
- ` + T[O].replace(
248
+ ` + A[k].replace(
249
249
  " at new ",
250
250
  " at "
251
251
  );
252
- return e.displayName && ce.includes("<anonymous>") && (ce = ce.replace("<anonymous>", e.displayName)), typeof e == "function" && Ee.set(e, ce), ce;
252
+ return e.displayName && ce.includes("<anonymous>") && (ce = ce.replace("<anonymous>", e.displayName)), typeof e == "function" && ye.set(e, ce), ce;
253
253
  }
254
- while (1 <= O && 0 <= g);
254
+ while (1 <= k && 0 <= p);
255
255
  break;
256
256
  }
257
257
  }
258
258
  } finally {
259
- be = !1, z.H = b, u(), Error.prepareStackTrace = c;
259
+ Ee = !1, O.H = v, u(), Error.prepareStackTrace = c;
260
260
  }
261
- return T = (T = e ? e.displayName || e.name : "") ? f(T) : "", typeof e == "function" && Ee.set(e, T), T;
261
+ return A = (A = e ? e.displayName || e.name : "") ? d(A) : "", typeof e == "function" && ye.set(e, A), A;
262
262
  }
263
- function p(e) {
263
+ function g(e) {
264
264
  if (e == null) return "";
265
265
  if (typeof e == "function") {
266
266
  var l = e.prototype;
@@ -269,42 +269,42 @@ function mt() {
269
269
  !(!l || !l.isReactComponent)
270
270
  );
271
271
  }
272
- if (typeof e == "string") return f(e);
272
+ if (typeof e == "string") return d(e);
273
273
  switch (e) {
274
- case V:
275
- return f("Suspense");
276
274
  case G:
277
- return f("SuspenseList");
275
+ return d("Suspense");
276
+ case $:
277
+ return d("SuspenseList");
278
278
  }
279
279
  if (typeof e == "object")
280
280
  switch (e.$$typeof) {
281
- case Z:
281
+ case H:
282
282
  return e = m(e.render, !1), e;
283
- case X:
284
- return p(e.type);
285
- case k:
283
+ case F:
284
+ return g(e.type);
285
+ case J:
286
286
  l = e._payload, e = e._init;
287
287
  try {
288
- return p(e(l));
288
+ return g(e(l));
289
289
  } catch {
290
290
  }
291
291
  }
292
292
  return "";
293
293
  }
294
- function C() {
295
- var e = z.A;
294
+ function E() {
295
+ var e = O.A;
296
296
  return e === null ? null : e.getOwner();
297
297
  }
298
- function E(e) {
299
- if (re.call(e, "key")) {
298
+ function b(e) {
299
+ if (M.call(e, "key")) {
300
300
  var l = Object.getOwnPropertyDescriptor(e, "key").get;
301
301
  if (l && l.isReactWarning) return !1;
302
302
  }
303
303
  return e.key !== void 0;
304
304
  }
305
- function _(e, l) {
305
+ function R(e, l) {
306
306
  function c() {
307
- Ne || (Ne = !0, console.error(
307
+ _e || (_e = !0, console.error(
308
308
  "%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://react.dev/link/special-props)",
309
309
  l
310
310
  ));
@@ -314,22 +314,22 @@ function mt() {
314
314
  configurable: !0
315
315
  });
316
316
  }
317
- function S() {
317
+ function L() {
318
318
  var e = t(this.type);
319
319
  return Ae[e] || (Ae[e] = !0, console.error(
320
320
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
321
321
  )), e = this.props.ref, e !== void 0 ? e : null;
322
322
  }
323
- function d(e, l, c, b, R, O) {
324
- return c = O.ref, e = {
325
- $$typeof: L,
323
+ function f(e, l, c, v, N, k) {
324
+ return c = k.ref, e = {
325
+ $$typeof: y,
326
326
  type: e,
327
327
  key: l,
328
- props: O,
329
- _owner: R
328
+ props: k,
329
+ _owner: N
330
330
  }, (c !== void 0 ? c : null) !== null ? Object.defineProperty(e, "ref", {
331
331
  enumerable: !1,
332
- get: S
332
+ get: L
333
333
  }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
334
334
  configurable: !1,
335
335
  enumerable: !1,
@@ -342,122 +342,122 @@ function mt() {
342
342
  value: null
343
343
  }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
344
344
  }
345
- function x(e, l, c, b, R, O) {
346
- if (typeof e == "string" || typeof e == "function" || e === W || e === Y || e === te || e === V || e === G || e === M || typeof e == "object" && e !== null && (e.$$typeof === k || e.$$typeof === X || e.$$typeof === J || e.$$typeof === H || e.$$typeof === Z || e.$$typeof === at || e.getModuleId !== void 0)) {
347
- var g = l.children;
348
- if (g !== void 0)
349
- if (b)
350
- if (xe(g)) {
351
- for (b = 0; b < g.length; b++)
352
- h(g[b], e);
353
- Object.freeze && Object.freeze(g);
345
+ function x(e, l, c, v, N, k) {
346
+ if (typeof e == "string" || typeof e == "function" || e === B || e === q || e === ee || e === G || e === $ || e === xe || typeof e == "object" && e !== null && (e.$$typeof === J || e.$$typeof === F || e.$$typeof === ie || e.$$typeof === te || e.$$typeof === H || e.$$typeof === _ || e.getModuleId !== void 0)) {
347
+ var p = l.children;
348
+ if (p !== void 0)
349
+ if (v)
350
+ if (V(p)) {
351
+ for (v = 0; v < p.length; v++)
352
+ h(p[v], e);
353
+ Object.freeze && Object.freeze(p);
354
354
  } else
355
355
  console.error(
356
356
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
357
357
  );
358
- else h(g, e);
358
+ else h(p, e);
359
359
  } else
360
- g = "", (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."), e === null ? b = "null" : xe(e) ? b = "array" : e !== void 0 && e.$$typeof === L ? (b = "<" + (t(e.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : b = typeof e, console.error(
360
+ p = "", (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (p += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), e === null ? v = "null" : V(e) ? v = "array" : e !== void 0 && e.$$typeof === y ? (v = "<" + (t(e.type) || "Unknown") + " />", p = " Did you accidentally export a JSX literal instead of a component?") : v = typeof e, console.error(
361
361
  "React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
362
- b,
363
- g
362
+ v,
363
+ p
364
364
  );
365
- if (re.call(l, "key")) {
366
- g = t(e);
367
- var $ = Object.keys(l).filter(function(T) {
368
- return T !== "key";
365
+ if (M.call(l, "key")) {
366
+ p = t(e);
367
+ var D = Object.keys(l).filter(function(A) {
368
+ return A !== "key";
369
369
  });
370
- b = 0 < $.length ? "{key: someKey, " + $.join(": ..., ") + ": ...}" : "{key: someKey}", Me[g + b] || ($ = 0 < $.length ? "{" + $.join(": ..., ") + ": ...}" : "{}", console.error(
370
+ v = 0 < D.length ? "{key: someKey, " + D.join(": ..., ") + ": ...}" : "{key: someKey}", Me[p + v] || (D = 0 < D.length ? "{" + D.join(": ..., ") + ": ...}" : "{}", console.error(
371
371
  `A props object containing a "key" prop is being spread into JSX:
372
372
  let props = %s;
373
373
  <%s {...props} />
374
374
  React keys must be passed directly to JSX without using spread:
375
375
  let props = %s;
376
376
  <%s key={someKey} {...props} />`,
377
- b,
378
- g,
379
- $,
380
- g
381
- ), Me[g + b] = !0);
377
+ v,
378
+ p,
379
+ D,
380
+ p
381
+ ), Me[p + v] = !0);
382
382
  }
383
- if (g = null, c !== void 0 && (n(c), g = "" + c), E(l) && (n(l.key), g = "" + l.key), "key" in l) {
383
+ if (p = null, c !== void 0 && (n(c), p = "" + c), b(l) && (n(l.key), p = "" + l.key), "key" in l) {
384
384
  c = {};
385
- for (var oe in l)
386
- oe !== "key" && (c[oe] = l[oe]);
385
+ for (var re in l)
386
+ re !== "key" && (c[re] = l[re]);
387
387
  } else c = l;
388
- return g && _(
388
+ return p && R(
389
389
  c,
390
390
  typeof e == "function" ? e.displayName || e.name || "Unknown" : e
391
- ), d(e, g, O, R, C(), c);
391
+ ), f(e, p, k, N, E(), c);
392
392
  }
393
393
  function h(e, l) {
394
- if (typeof e == "object" && e && e.$$typeof !== st) {
395
- if (xe(e))
394
+ if (typeof e == "object" && e && e.$$typeof !== at) {
395
+ if (V(e))
396
396
  for (var c = 0; c < e.length; c++) {
397
- var b = e[c];
398
- v(b) && y(b, l);
397
+ var v = e[c];
398
+ S(v) && w(v, l);
399
399
  }
400
- else if (v(e))
400
+ else if (S(e))
401
401
  e._store && (e._store.validated = 1);
402
- else if (e === null || typeof e != "object" ? c = null : (c = U && e[U] || e["@@iterator"], c = typeof c == "function" ? c : null), typeof c == "function" && c !== e.entries && (c = c.call(e), c !== e))
402
+ else if (e === null || typeof e != "object" ? c = null : (c = le && e[le] || e["@@iterator"], c = typeof c == "function" ? c : null), typeof c == "function" && c !== e.entries && (c = c.call(e), c !== e))
403
403
  for (; !(e = c.next()).done; )
404
- v(e.value) && y(e.value, l);
404
+ S(e.value) && w(e.value, l);
405
405
  }
406
406
  }
407
- function v(e) {
408
- return typeof e == "object" && e !== null && e.$$typeof === L;
407
+ function S(e) {
408
+ return typeof e == "object" && e !== null && e.$$typeof === y;
409
409
  }
410
- function y(e, l) {
411
- if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1, l = w(l), !Ie[l])) {
410
+ function w(e, l) {
411
+ if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1, l = j(l), !Ie[l])) {
412
412
  Ie[l] = !0;
413
413
  var c = "";
414
- e && e._owner != null && e._owner !== C() && (c = null, typeof e._owner.tag == "number" ? c = t(e._owner.type) : typeof e._owner.name == "string" && (c = e._owner.name), c = " It was passed a child from " + c + ".");
415
- var b = z.getCurrentStack;
416
- z.getCurrentStack = function() {
417
- var R = p(e.type);
418
- return b && (R += b() || ""), R;
414
+ e && e._owner != null && e._owner !== E() && (c = null, typeof e._owner.tag == "number" ? c = t(e._owner.type) : typeof e._owner.name == "string" && (c = e._owner.name), c = " It was passed a child from " + c + ".");
415
+ var v = O.getCurrentStack;
416
+ O.getCurrentStack = function() {
417
+ var N = g(e.type);
418
+ return v && (N += v() || ""), N;
419
419
  }, console.error(
420
420
  'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
421
421
  l,
422
422
  c
423
- ), z.getCurrentStack = b;
423
+ ), O.getCurrentStack = v;
424
424
  }
425
425
  }
426
- function w(e) {
427
- var l = "", c = C();
426
+ function j(e) {
427
+ var l = "", c = E();
428
428
  return c && (c = t(c.type)) && (l = `
429
429
 
430
430
  Check the render method of \`` + c + "`."), l || (e = t(e)) && (l = `
431
431
 
432
432
  Check the top-level render call using <` + e + ">."), l;
433
433
  }
434
- var P = D, L = Symbol.for("react.transitional.element"), N = Symbol.for("react.portal"), W = Symbol.for("react.fragment"), te = Symbol.for("react.strict_mode"), Y = Symbol.for("react.profiler"), H = Symbol.for("react.consumer"), J = Symbol.for("react.context"), Z = Symbol.for("react.forward_ref"), V = Symbol.for("react.suspense"), G = Symbol.for("react.suspense_list"), X = Symbol.for("react.memo"), k = Symbol.for("react.lazy"), M = Symbol.for("react.offscreen"), U = Symbol.iterator, A = Symbol.for("react.client.reference"), z = P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, re = Object.prototype.hasOwnProperty, B = Object.assign, at = Symbol.for("react.client.reference"), xe = Array.isArray, le = 0, Le, Se, Oe, Pe, ke, _e, Re;
434
+ var P = Y, y = Symbol.for("react.transitional.element"), T = Symbol.for("react.portal"), B = Symbol.for("react.fragment"), ee = Symbol.for("react.strict_mode"), q = Symbol.for("react.profiler"), te = Symbol.for("react.consumer"), ie = Symbol.for("react.context"), H = Symbol.for("react.forward_ref"), G = Symbol.for("react.suspense"), $ = Symbol.for("react.suspense_list"), F = Symbol.for("react.memo"), J = Symbol.for("react.lazy"), xe = Symbol.for("react.offscreen"), le = Symbol.iterator, ve = Symbol.for("react.client.reference"), O = P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, M = Object.prototype.hasOwnProperty, I = Object.assign, _ = Symbol.for("react.client.reference"), V = Array.isArray, Z = 0, Le, Se, Oe, ke, Pe, Re, Te;
435
435
  a.__reactDisabledLog = !0;
436
- var ve, Te, be = !1, Ee = new (typeof WeakMap == "function" ? WeakMap : Map)(), st = Symbol.for("react.client.reference"), Ne, Ae = {}, Me = {}, Ie = {};
437
- fe.Fragment = W, fe.jsx = function(e, l, c, b, R) {
438
- return x(e, l, c, !1, b, R);
439
- }, fe.jsxs = function(e, l, c, b, R) {
440
- return x(e, l, c, !0, b, R);
436
+ var be, Ne, Ee = !1, ye = new (typeof WeakMap == "function" ? WeakMap : Map)(), at = Symbol.for("react.client.reference"), _e, Ae = {}, Me = {}, Ie = {};
437
+ fe.Fragment = B, fe.jsx = function(e, l, c, v, N) {
438
+ return x(e, l, c, !1, v, N);
439
+ }, fe.jsxs = function(e, l, c, v, N) {
440
+ return x(e, l, c, !0, v, N);
441
441
  };
442
442
  }()), fe;
443
443
  }
444
444
  var $e;
445
- function pt() {
446
- return $e || ($e = 1, process.env.NODE_ENV === "production" ? me.exports = dt() : me.exports = mt()), me.exports;
445
+ function ft() {
446
+ return $e || ($e = 1, process.env.NODE_ENV === "production" ? me.exports = ct() : me.exports = ut()), me.exports;
447
447
  }
448
- var s = pt();
449
- const Je = ae(), $t = ({ children: t }) => {
450
- const [o, n] = j(!1), [a, i] = j(!1), [u, f] = j({});
451
- return /* @__PURE__ */ s.jsx(Je.Provider, { value: { isLoading: o, setIsLoading: n, isLoadingComponent: a, setIsLoadingComponent: i, loadingProps: u, setLoadingProps: f }, children: t });
448
+ var s = ft();
449
+ const Je = ne(), Gt = ({ children: t }) => {
450
+ const [o, n] = C(!1), [a, i] = C(!1), [u, d] = C({});
451
+ return /* @__PURE__ */ s.jsx(Je.Provider, { value: { isLoading: o, setIsLoading: n, isLoadingComponent: a, setIsLoadingComponent: i, loadingProps: u, setLoadingProps: d }, children: t });
452
452
  }, he = () => {
453
- const t = se(Je);
453
+ const t = ae(Je);
454
454
  if (t === void 0) throw new Error("Non puoi settare il loading");
455
455
  return t;
456
- }, gt = ({ errorMessage: t, errorShow: o }) => /* @__PURE__ */ s.jsx("section", { className: o ? "" : "hidden", children: /* @__PURE__ */ s.jsxs("div", { className: "container mx-auto", children: [
456
+ }, dt = ({ errorMessage: t, errorShow: o }) => /* @__PURE__ */ s.jsx("section", { className: o ? "" : "hidden", children: /* @__PURE__ */ s.jsxs("div", { className: "container mx-auto", children: [
457
457
  /* @__PURE__ */ s.jsx("h1", { className: "text-center text-8xl my-12", children: "Errore" }),
458
458
  /* @__PURE__ */ s.jsx("pre", { className: "text-xl", children: t })
459
- ] }) }), Ve = ae(), Ft = ({ children: t }) => {
460
- const [o, n] = j({}), [a, i] = j(!1), u = `Creare un file config.json in public per il corretto funzionamento
459
+ ] }) }), Ve = ne(), Bt = ({ children: t }) => {
460
+ const [o, n] = C({}), [a, i] = C(!1), u = `Creare un file config.json in public per il corretto funzionamento
461
461
  Esempio di config.json:
462
462
 
463
463
  {
@@ -470,90 +470,90 @@ Esempio di config.json:
470
470
  "configRoutes": [
471
471
  {"path": "", "title": "", "element": ""}
472
472
  ],
473
- "infiniteSession": ,
474
- "timeDeducted": ,
475
- "alertTimeout": ,
476
- "axiosTimeout": ,
473
+ "infiniteSession": " ,
474
+ "timeDeducted": " ,
475
+ "alertTimeout": " ,
476
+ "axiosTimeout": " ,
477
477
  "axiosErrors": {
478
478
  "unauthorized":"",
479
479
  "notFound": "",
480
480
  "defaultMessage": ""
481
481
  },
482
- "clearLoginFormOnError": ,
483
- "autoLogin": ,
484
- "autoLoginEmail": ,
485
- "autoLoginPassword":
486
- }`, f = () => {
487
- const d = /* @__PURE__ */ new Date(), x = String(d.getDate()).padStart(2, "0"), h = String(d.getMonth() + 1).padStart(2, "0"), v = d.getFullYear(), y = String(d.getHours()).padStart(2, "0"), w = String(d.getMinutes()).padStart(2, "0"), P = String(d.getSeconds()).padStart(2, "0");
488
- return `${x}/${h}/${v} ${y}:${w}:${P}`;
489
- }, m = (d) => new Promise((x, h) => {
490
- const v = indexedDB.open("configDatabase", 1);
491
- v.onupgradeneeded = (y) => {
492
- const w = y.target.result;
493
- w.objectStoreNames.contains(d) || w.createObjectStore(d, { keyPath: "id" });
494
- }, v.onsuccess = (y) => x(y.target.result), v.onerror = (y) => h(y.target.error);
495
- }), p = async (d, x) => {
496
- let h = await m(d);
497
- return new Promise((v, y) => {
482
+ "clearLoginFormOnError": " ,
483
+ "autoLogin": " ,
484
+ "backendToken": "",
485
+ "isDebug": ""
486
+ }`, d = () => {
487
+ const f = /* @__PURE__ */ new Date(), x = String(f.getDate()).padStart(2, "0"), h = String(f.getMonth() + 1).padStart(2, "0"), S = f.getFullYear(), w = String(f.getHours()).padStart(2, "0"), j = String(f.getMinutes()).padStart(2, "0"), P = String(f.getSeconds()).padStart(2, "0");
488
+ return `${x}/${h}/${S} ${w}:${j}:${P}`;
489
+ }, m = (f) => new Promise((x, h) => {
490
+ const S = indexedDB.open("configDatabase", 1);
491
+ S.onupgradeneeded = (w) => {
492
+ const j = w.target.result;
493
+ j.objectStoreNames.contains(f) || j.createObjectStore(f, { keyPath: "id" });
494
+ }, S.onsuccess = (w) => x(w.target.result), S.onerror = (w) => h(w.target.error);
495
+ }), g = async (f, x) => {
496
+ let h = await m(f);
497
+ return new Promise((S, w) => {
498
498
  if (!h) {
499
- y("Errore: DB non disponibile");
499
+ w("Errore: DB non disponibile");
500
500
  return;
501
501
  }
502
- const w = h == null ? void 0 : h.transaction(d, "readonly"), P = w == null ? void 0 : w.objectStore(d), L = P == null ? void 0 : P.get(x);
503
- L.onsuccess = () => v(L.result), L.onerror = (N) => y(N.target.error);
502
+ const j = h == null ? void 0 : h.transaction(f, "readonly"), P = j == null ? void 0 : j.objectStore(f), y = P == null ? void 0 : P.get(x);
503
+ y.onsuccess = () => S(y.result), y.onerror = (T) => w(T.target.error);
504
504
  });
505
- }, C = async (d, x) => {
506
- let h = await m(d);
507
- return new Promise((v, y) => {
505
+ }, E = async (f, x) => {
506
+ let h = await m(f);
507
+ return new Promise((S, w) => {
508
508
  if (!h) {
509
- y("Errore: DB non disponibile");
509
+ w("Errore: DB non disponibile");
510
510
  return;
511
511
  }
512
- const w = h == null ? void 0 : h.transaction(d, "readwrite"), P = w == null ? void 0 : w.objectStore(d), L = P == null ? void 0 : P.put(x);
513
- L.onsuccess = () => v(L.result), L.onerror = (N) => y(N.target.error);
512
+ const j = h == null ? void 0 : h.transaction(f, "readwrite"), P = j == null ? void 0 : j.objectStore(f), y = P == null ? void 0 : P.put(x);
513
+ y.onsuccess = () => S(y.result), y.onerror = (T) => w(T.target.error);
514
514
  });
515
- }, E = async (d) => {
515
+ }, b = async (f) => {
516
516
  let x = Date.now(), h;
517
517
  do
518
- h = await p(d, x), h && x++;
518
+ h = await g(f, x), h && x++;
519
519
  while (h);
520
520
  return x;
521
- }, _ = async (d, x) => {
522
- x.id || (x.id = await E(d)), await C(d, x);
523
- }, S = async () => {
521
+ }, R = async (f, x) => {
522
+ x.id || (x.id = await b(f)), await E(f, x);
523
+ }, L = async () => {
524
524
  try {
525
525
  const h = {
526
526
  ...await (await fetch("/config.json")).json(),
527
527
  openIndexedDB: m,
528
- getDataIndexedDB: p,
529
- setDataIndexedDB: C,
530
- generateUniqueId: E,
531
- setDataWithAutoId: _,
532
- setCurrentDate: f
528
+ getDataIndexedDB: g,
529
+ setDataIndexedDB: E,
530
+ generateUniqueId: b,
531
+ setDataWithAutoId: R,
532
+ setCurrentDate: d
533
533
  };
534
534
  n(h);
535
- } catch (d) {
536
- console.error(d), i(!0);
535
+ } catch (f) {
536
+ console.error(f), i(!0);
537
537
  }
538
538
  };
539
- return I(() => {
540
- S();
541
- }, []), Object.keys(o).length === 0 ? /* @__PURE__ */ s.jsx(gt, { errorShow: a, errorMessage: u }) : /* @__PURE__ */ s.jsx(Ve.Provider, { value: o, children: t });
542
- }, ee = () => {
543
- const t = se(Ve);
539
+ return z(() => {
540
+ L();
541
+ }, []), Object.keys(o).length === 0 ? /* @__PURE__ */ s.jsx(dt, { errorShow: a, errorMessage: u }) : /* @__PURE__ */ s.jsx(Ve.Provider, { value: o, children: t });
542
+ }, Q = () => {
543
+ const t = ae(Ve);
544
544
  if (t === void 0) throw new Error("Non puoi leggere i config");
545
545
  return t;
546
- }, ht = (t) => /* @__PURE__ */ r.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", width: 500, zoomAndPan: "magnify", viewBox: "0 0 375 374.999991", height: 500, preserveAspectRatio: "xMidYMid meet", ...t }, /* @__PURE__ */ r.createElement("defs", null, /* @__PURE__ */ r.createElement("g", null), /* @__PURE__ */ r.createElement("clipPath", { id: "6ca7e2bf04" }, /* @__PURE__ */ r.createElement("path", { d: "M 265.136719 0 L 375 109.863281 L 375 265.136719 L 265.136719 375 L 109.863281 375 L 0 265.136719 L 0 109.863281 L 109.863281 0 Z M 265.136719 0 ", clipRule: "nonzero" })), /* @__PURE__ */ r.createElement("clipPath", { id: "2c77c820c6" }, /* @__PURE__ */ r.createElement("path", { d: "M 12.878906 12.878906 L 362.121094 12.878906 L 362.121094 362.121094 L 12.878906 362.121094 Z M 12.878906 12.878906 ", clipRule: "nonzero" })), /* @__PURE__ */ r.createElement("clipPath", { id: "3d94df7d66" }, /* @__PURE__ */ r.createElement("path", { d: "M 259.804688 12.878906 L 362.121094 115.195312 L 362.121094 259.804688 L 259.804688 362.121094 L 115.195312 362.121094 L 12.878906 259.804688 L 12.878906 115.195312 L 115.195312 12.878906 Z M 259.804688 12.878906 ", clipRule: "nonzero" })), /* @__PURE__ */ r.createElement("clipPath", { id: "8793709a64" }, /* @__PURE__ */ r.createElement("path", { d: "M 12.878906 12.878906 L 362.109375 12.878906 L 362.109375 362.109375 L 12.878906 362.109375 Z M 12.878906 12.878906 ", clipRule: "nonzero" })), /* @__PURE__ */ r.createElement("clipPath", { id: "fdb3fe29d8" }, /* @__PURE__ */ r.createElement("path", { d: "M 259.796875 12.878906 L 362.109375 115.191406 L 362.109375 259.796875 L 259.796875 362.109375 L 115.191406 362.109375 L 12.878906 259.796875 L 12.878906 115.191406 L 115.191406 12.878906 Z M 259.796875 12.878906 ", clipRule: "nonzero" }))), /* @__PURE__ */ r.createElement("g", { clipPath: "url(#6ca7e2bf04)" }, /* @__PURE__ */ r.createElement("rect", { x: -37.5, width: 450, fill: "#b91c1c", y: -37.499999, height: 449.999989, fillOpacity: 1 })), /* @__PURE__ */ r.createElement("g", { clipPath: "url(#2c77c820c6)" }, /* @__PURE__ */ r.createElement("g", { clipPath: "url(#3d94df7d66)" }, /* @__PURE__ */ r.createElement("path", { fill: "#b91c1c", d: "M 12.878906 12.878906 L 362.121094 12.878906 L 362.121094 362.121094 L 12.878906 362.121094 Z M 12.878906 12.878906 ", fillOpacity: 1, fillRule: "nonzero" }))), /* @__PURE__ */ r.createElement("g", { clipPath: "url(#8793709a64)" }, /* @__PURE__ */ r.createElement("g", { clipPath: "url(#fdb3fe29d8)" }, /* @__PURE__ */ r.createElement("path", { strokeLinecap: "butt", transform: "matrix(0.75, 0, 0, 0.75, 12.879396, 12.879392)", fill: "none", strokeLinejoin: "miter", d: "M 329.223327 -0.000647072 L 465.640003 136.416029 L 465.640003 329.223333 L 329.223327 465.640009 L 136.416023 465.640009 L -0.000653072 329.223333 L -0.000653072 136.416029 L 136.416023 -0.000647072 Z M 329.223327 -0.000647072 ", stroke: "#ffffff", strokeWidth: 34, strokeOpacity: 1, strokeMiterlimit: 4 }))), /* @__PURE__ */ r.createElement("g", { fill: "#ffffff", fillOpacity: 1 }, /* @__PURE__ */ r.createElement("g", { transform: "translate(111.648432, 267.442446)" }, /* @__PURE__ */ r.createElement("g", null, /* @__PURE__ */ r.createElement("path", { d: "M 2.828125 0 L 56.25 -79.859375 L 3.046875 -159.609375 L 37.28125 -159.609375 L 75.90625 -98.046875 L 114.53125 -159.609375 L 148.765625 -159.609375 L 95.5625 -79.859375 L 148.984375 0 L 114.765625 0 L 75.671875 -60.65625 L 37.046875 0 Z M 2.828125 0 " }))))), xt = (t) => /* @__PURE__ */ r.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", width: 500, zoomAndPan: "magnify", viewBox: "0 0 375 374.999991", height: 500, preserveAspectRatio: "xMidYMid meet", ...t }, /* @__PURE__ */ r.createElement("defs", null, /* @__PURE__ */ r.createElement("g", null), /* @__PURE__ */ r.createElement("clipPath", { id: "30562604dd" }, /* @__PURE__ */ r.createElement("path", { d: "M 187.5 0 C 83.945312 0 0 83.945312 0 187.5 C 0 291.054688 83.945312 375 187.5 375 C 291.054688 375 375 291.054688 375 187.5 C 375 83.945312 291.054688 0 187.5 0 Z M 187.5 0 ", clipRule: "nonzero" })), /* @__PURE__ */ r.createElement("clipPath", { id: "971fcd5f72" }, /* @__PURE__ */ r.createElement("path", { d: "M 18.570312 18.570312 L 356.429688 18.570312 L 356.429688 356.429688 L 18.570312 356.429688 Z M 18.570312 18.570312 ", clipRule: "nonzero" })), /* @__PURE__ */ r.createElement("clipPath", { id: "e891a7f57e" }, /* @__PURE__ */ r.createElement("path", { d: "M 187.5 18.570312 C 94.203125 18.570312 18.570312 94.203125 18.570312 187.5 C 18.570312 280.796875 94.203125 356.429688 187.5 356.429688 C 280.796875 356.429688 356.429688 280.796875 356.429688 187.5 C 356.429688 94.203125 280.796875 18.570312 187.5 18.570312 Z M 187.5 18.570312 ", clipRule: "nonzero" })), /* @__PURE__ */ r.createElement("clipPath", { id: "19a9ddc130" }, /* @__PURE__ */ r.createElement("path", { d: "M 18.570312 18.570312 L 356.070312 18.570312 L 356.070312 356.070312 L 18.570312 356.070312 Z M 18.570312 18.570312 ", clipRule: "nonzero" })), /* @__PURE__ */ r.createElement("clipPath", { id: "5e650d5bd0" }, /* @__PURE__ */ r.createElement("path", { d: "M 187.496094 18.570312 C 94.199219 18.570312 18.570312 94.199219 18.570312 187.496094 C 18.570312 280.792969 94.199219 356.421875 187.496094 356.421875 C 280.792969 356.421875 356.421875 280.792969 356.421875 187.496094 C 356.421875 94.199219 280.792969 18.570312 187.496094 18.570312 Z M 187.496094 18.570312 ", clipRule: "nonzero" }))), /* @__PURE__ */ r.createElement("g", { clipPath: "url(#30562604dd)" }, /* @__PURE__ */ r.createElement("rect", { x: -37.5, width: 450, fill: "#1d4ed8", y: -37.499999, height: 449.999989, fillOpacity: 1 })), /* @__PURE__ */ r.createElement("g", { clipPath: "url(#971fcd5f72)" }, /* @__PURE__ */ r.createElement("g", { clipPath: "url(#e891a7f57e)" }, /* @__PURE__ */ r.createElement("path", { fill: "#1d4ed8", d: "M 18.570312 18.570312 L 356.429688 18.570312 L 356.429688 356.429688 L 18.570312 356.429688 Z M 18.570312 18.570312 ", fillOpacity: 1, fillRule: "nonzero" }))), /* @__PURE__ */ r.createElement("g", { clipPath: "url(#19a9ddc130)" }, /* @__PURE__ */ r.createElement("g", { clipPath: "url(#5e650d5bd0)" }, /* @__PURE__ */ r.createElement("path", { strokeLinecap: "butt", transform: "matrix(0.75, 0, 0, 0.75, 18.570291, 18.570286)", fill: "none", strokeLinejoin: "miter", d: "M 225.234419 0.0000349326 C 100.838577 0.0000349326 0.0000289326 100.838583 0.0000289326 225.234425 C 0.0000289326 349.630266 100.838577 450.468815 225.234419 450.468815 C 349.63026 450.468815 450.468809 349.630266 450.468809 225.234425 C 450.468809 100.838583 349.63026 0.0000349326 225.234419 0.0000349326 Z M 225.234419 0.0000349326 ", stroke: "#ffffff", strokeWidth: 34, strokeOpacity: 1, strokeMiterlimit: 4 }))), /* @__PURE__ */ r.createElement("g", { fill: "#ffffff", fillOpacity: 1 }, /* @__PURE__ */ r.createElement("g", { transform: "translate(136.121787, 300.837436)" }, /* @__PURE__ */ r.createElement("g", null, /* @__PURE__ */ r.createElement("path", { d: "M 60 -193.78125 C 54.707031 -193.78125 50.109375 -195.734375 46.203125 -199.640625 C 42.296875 -203.554688 40.34375 -208.15625 40.34375 -213.4375 C 40.34375 -218.726562 42.296875 -223.328125 46.203125 -227.234375 C 50.109375 -231.140625 54.707031 -233.09375 60 -233.09375 C 65.28125 -233.09375 69.875 -231.140625 73.78125 -227.234375 C 77.695312 -223.328125 79.65625 -218.726562 79.65625 -213.4375 C 79.65625 -208.15625 77.695312 -203.554688 73.78125 -199.640625 C 69.875 -195.734375 65.28125 -193.78125 60 -193.78125 Z M 45.171875 4.828125 C 39.191406 4.828125 35.28125 2.414062 33.4375 -2.40625 C 31.601562 -7.238281 30.6875 -13.675781 30.6875 -21.71875 C 30.6875 -34.59375 31.773438 -47.234375 33.953125 -59.640625 C 36.140625 -72.054688 38.328125 -83.894531 40.515625 -95.15625 C 42.703125 -106.425781 43.796875 -116.890625 43.796875 -126.546875 C 43.796875 -129.078125 43.675781 -131.832031 43.4375 -134.8125 C 43.207031 -137.800781 42.632812 -140.101562 41.71875 -141.71875 C 38.039062 -139.414062 33.269531 -135.617188 27.40625 -130.328125 C 21.550781 -125.046875 16.898438 -119.1875 13.453125 -112.75 C 11.835938 -114.363281 11.03125 -116.550781 11.03125 -119.3125 C 11.03125 -123.21875 12.582031 -127.46875 15.6875 -132.0625 C 18.789062 -136.65625 22.925781 -141.078125 28.09375 -145.328125 C 33.269531 -149.585938 38.847656 -153.097656 44.828125 -155.859375 C 50.804688 -158.617188 56.664062 -160 62.40625 -160 C 67.695312 -160 71.085938 -158.734375 72.578125 -156.203125 C 74.078125 -153.671875 74.828125 -150.453125 74.828125 -146.546875 C 74.828125 -140.796875 74.078125 -133.378906 72.578125 -124.296875 C 71.085938 -115.222656 69.363281 -105.515625 67.40625 -95.171875 C 65.457031 -84.828125 63.734375 -74.484375 62.234375 -64.140625 C 60.742188 -53.796875 60 -44.367188 60 -35.859375 C 60 -31.492188 60.226562 -27.414062 60.6875 -23.625 C 61.144531 -19.832031 61.71875 -16.671875 62.40625 -14.140625 C 68.15625 -16.671875 73.613281 -20.40625 78.78125 -25.34375 C 83.957031 -30.28125 87.8125 -34.9375 90.34375 -39.3125 C 91.71875 -37.238281 92.40625 -35.050781 92.40625 -32.75 C 92.40625 -29.070312 90.796875 -25.050781 87.578125 -20.6875 C 84.359375 -16.320312 80.332031 -12.179688 75.5 -8.265625 C 70.675781 -4.359375 65.5625 -1.203125 60.15625 1.203125 C 54.757812 3.617188 49.765625 4.828125 45.171875 4.828125 Z M 45.171875 4.828125 " }))))), vt = (t) => /* @__PURE__ */ r.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", width: 500, zoomAndPan: "magnify", viewBox: "0 0 375 374.999991", height: 500, preserveAspectRatio: "xMidYMid meet", ...t }, /* @__PURE__ */ r.createElement("defs", null, /* @__PURE__ */ r.createElement("g", null), /* @__PURE__ */ r.createElement("clipPath", { id: "59a10ac27a" }, /* @__PURE__ */ r.createElement("path", { d: "M 17.179688 32.695312 L 360 32.695312 L 360 337.5 L 17.179688 337.5 Z M 17.179688 32.695312 ", clipRule: "nonzero" })), /* @__PURE__ */ r.createElement("clipPath", { id: "664b27481e" }, /* @__PURE__ */ r.createElement("path", { d: "M 207.042969 43.574219 L 356.394531 304.941406 C 360.242188 311.675781 360.214844 319.953125 356.324219 326.660156 C 352.429688 333.371094 345.257812 337.5 337.5 337.5 L 39.375 337.5 C 31.617188 337.5 24.445312 333.371094 20.554688 326.660156 C 16.660156 319.953125 16.632812 311.675781 20.480469 304.941406 L 169.832031 43.574219 C 173.648438 36.898438 180.746094 32.777344 188.4375 32.777344 C 196.128906 32.777344 203.226562 36.898438 207.042969 43.574219 Z M 207.042969 43.574219 ", clipRule: "nonzero" }))), /* @__PURE__ */ r.createElement("g", { clipPath: "url(#59a10ac27a)" }, /* @__PURE__ */ r.createElement("g", { clipPath: "url(#664b27481e)" }, /* @__PURE__ */ r.createElement("path", { fill: "#d97706", d: "M 1.875 11.015625 L 375.546875 11.015625 L 375.546875 337.5 L 1.875 337.5 Z M 1.875 11.015625 ", fillOpacity: 1, fillRule: "nonzero" }))), /* @__PURE__ */ r.createElement("g", { fill: "#ffffff", fillOpacity: 1 }, /* @__PURE__ */ r.createElement("g", { transform: "translate(158.410439, 295.655517)" }, /* @__PURE__ */ r.createElement("g", null, /* @__PURE__ */ r.createElement("path", { d: "M 46.890625 -63.21875 C 46.890625 -63.21875 46.890625 -64.445312 46.890625 -66.90625 L 46.890625 -176.46875 C 46.890625 -178.925781 46.1875 -180.859375 44.78125 -182.265625 C 43.375 -183.671875 41.441406 -184.375 38.984375 -184.375 L 21.078125 -184.375 C 18.617188 -184.375 16.6875 -183.671875 15.28125 -182.265625 C 13.875 -180.859375 13.171875 -178.925781 13.171875 -176.46875 L 13.171875 -66.90625 C 13.171875 -64.445312 13.875 -62.515625 15.28125 -61.109375 C 16.6875 -59.703125 18.617188 -59 21.078125 -59 L 38.984375 -59 C 41.441406 -59 43.375 -59.703125 44.78125 -61.109375 C 46.1875 -62.515625 46.890625 -63.21875 46.890625 -63.21875 Z M 46.890625 -4.21875 C 46.890625 -4.21875 46.890625 -5.445312 46.890625 -7.90625 L 46.890625 -25.546875 C 46.890625 -28.003906 46.1875 -29.9375 44.78125 -31.34375 C 43.375 -32.75 41.441406 -33.453125 38.984375 -33.453125 L 21.078125 -33.453125 C 18.617188 -33.453125 16.6875 -32.75 15.28125 -31.34375 C 13.875 -29.9375 13.171875 -28.003906 13.171875 -25.546875 L 13.171875 -7.90625 C 13.171875 -5.445312 13.875 -3.515625 15.28125 -2.109375 C 16.6875 -0.703125 18.617188 0 21.078125 0 L 38.984375 0 C 41.441406 0 43.375 -0.703125 44.78125 -2.109375 C 46.1875 -3.515625 46.890625 -4.21875 46.890625 -4.21875 Z M 46.890625 -4.21875 " })))));
546
+ }, mt = (t) => /* @__PURE__ */ r.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", width: 500, zoomAndPan: "magnify", viewBox: "0 0 375 374.999991", height: 500, preserveAspectRatio: "xMidYMid meet", ...t }, /* @__PURE__ */ r.createElement("defs", null, /* @__PURE__ */ r.createElement("g", null), /* @__PURE__ */ r.createElement("clipPath", { id: "6ca7e2bf04" }, /* @__PURE__ */ r.createElement("path", { d: "M 265.136719 0 L 375 109.863281 L 375 265.136719 L 265.136719 375 L 109.863281 375 L 0 265.136719 L 0 109.863281 L 109.863281 0 Z M 265.136719 0 ", clipRule: "nonzero" })), /* @__PURE__ */ r.createElement("clipPath", { id: "2c77c820c6" }, /* @__PURE__ */ r.createElement("path", { d: "M 12.878906 12.878906 L 362.121094 12.878906 L 362.121094 362.121094 L 12.878906 362.121094 Z M 12.878906 12.878906 ", clipRule: "nonzero" })), /* @__PURE__ */ r.createElement("clipPath", { id: "3d94df7d66" }, /* @__PURE__ */ r.createElement("path", { d: "M 259.804688 12.878906 L 362.121094 115.195312 L 362.121094 259.804688 L 259.804688 362.121094 L 115.195312 362.121094 L 12.878906 259.804688 L 12.878906 115.195312 L 115.195312 12.878906 Z M 259.804688 12.878906 ", clipRule: "nonzero" })), /* @__PURE__ */ r.createElement("clipPath", { id: "8793709a64" }, /* @__PURE__ */ r.createElement("path", { d: "M 12.878906 12.878906 L 362.109375 12.878906 L 362.109375 362.109375 L 12.878906 362.109375 Z M 12.878906 12.878906 ", clipRule: "nonzero" })), /* @__PURE__ */ r.createElement("clipPath", { id: "fdb3fe29d8" }, /* @__PURE__ */ r.createElement("path", { d: "M 259.796875 12.878906 L 362.109375 115.191406 L 362.109375 259.796875 L 259.796875 362.109375 L 115.191406 362.109375 L 12.878906 259.796875 L 12.878906 115.191406 L 115.191406 12.878906 Z M 259.796875 12.878906 ", clipRule: "nonzero" }))), /* @__PURE__ */ r.createElement("g", { clipPath: "url(#6ca7e2bf04)" }, /* @__PURE__ */ r.createElement("rect", { x: -37.5, width: 450, fill: "#b91c1c", y: -37.499999, height: 449.999989, fillOpacity: 1 })), /* @__PURE__ */ r.createElement("g", { clipPath: "url(#2c77c820c6)" }, /* @__PURE__ */ r.createElement("g", { clipPath: "url(#3d94df7d66)" }, /* @__PURE__ */ r.createElement("path", { fill: "#b91c1c", d: "M 12.878906 12.878906 L 362.121094 12.878906 L 362.121094 362.121094 L 12.878906 362.121094 Z M 12.878906 12.878906 ", fillOpacity: 1, fillRule: "nonzero" }))), /* @__PURE__ */ r.createElement("g", { clipPath: "url(#8793709a64)" }, /* @__PURE__ */ r.createElement("g", { clipPath: "url(#fdb3fe29d8)" }, /* @__PURE__ */ r.createElement("path", { strokeLinecap: "butt", transform: "matrix(0.75, 0, 0, 0.75, 12.879396, 12.879392)", fill: "none", strokeLinejoin: "miter", d: "M 329.223327 -0.000647072 L 465.640003 136.416029 L 465.640003 329.223333 L 329.223327 465.640009 L 136.416023 465.640009 L -0.000653072 329.223333 L -0.000653072 136.416029 L 136.416023 -0.000647072 Z M 329.223327 -0.000647072 ", stroke: "#ffffff", strokeWidth: 34, strokeOpacity: 1, strokeMiterlimit: 4 }))), /* @__PURE__ */ r.createElement("g", { fill: "#ffffff", fillOpacity: 1 }, /* @__PURE__ */ r.createElement("g", { transform: "translate(111.648432, 267.442446)" }, /* @__PURE__ */ r.createElement("g", null, /* @__PURE__ */ r.createElement("path", { d: "M 2.828125 0 L 56.25 -79.859375 L 3.046875 -159.609375 L 37.28125 -159.609375 L 75.90625 -98.046875 L 114.53125 -159.609375 L 148.765625 -159.609375 L 95.5625 -79.859375 L 148.984375 0 L 114.765625 0 L 75.671875 -60.65625 L 37.046875 0 Z M 2.828125 0 " }))))), pt = (t) => /* @__PURE__ */ r.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", width: 500, zoomAndPan: "magnify", viewBox: "0 0 375 374.999991", height: 500, preserveAspectRatio: "xMidYMid meet", ...t }, /* @__PURE__ */ r.createElement("defs", null, /* @__PURE__ */ r.createElement("g", null), /* @__PURE__ */ r.createElement("clipPath", { id: "30562604dd" }, /* @__PURE__ */ r.createElement("path", { d: "M 187.5 0 C 83.945312 0 0 83.945312 0 187.5 C 0 291.054688 83.945312 375 187.5 375 C 291.054688 375 375 291.054688 375 187.5 C 375 83.945312 291.054688 0 187.5 0 Z M 187.5 0 ", clipRule: "nonzero" })), /* @__PURE__ */ r.createElement("clipPath", { id: "971fcd5f72" }, /* @__PURE__ */ r.createElement("path", { d: "M 18.570312 18.570312 L 356.429688 18.570312 L 356.429688 356.429688 L 18.570312 356.429688 Z M 18.570312 18.570312 ", clipRule: "nonzero" })), /* @__PURE__ */ r.createElement("clipPath", { id: "e891a7f57e" }, /* @__PURE__ */ r.createElement("path", { d: "M 187.5 18.570312 C 94.203125 18.570312 18.570312 94.203125 18.570312 187.5 C 18.570312 280.796875 94.203125 356.429688 187.5 356.429688 C 280.796875 356.429688 356.429688 280.796875 356.429688 187.5 C 356.429688 94.203125 280.796875 18.570312 187.5 18.570312 Z M 187.5 18.570312 ", clipRule: "nonzero" })), /* @__PURE__ */ r.createElement("clipPath", { id: "19a9ddc130" }, /* @__PURE__ */ r.createElement("path", { d: "M 18.570312 18.570312 L 356.070312 18.570312 L 356.070312 356.070312 L 18.570312 356.070312 Z M 18.570312 18.570312 ", clipRule: "nonzero" })), /* @__PURE__ */ r.createElement("clipPath", { id: "5e650d5bd0" }, /* @__PURE__ */ r.createElement("path", { d: "M 187.496094 18.570312 C 94.199219 18.570312 18.570312 94.199219 18.570312 187.496094 C 18.570312 280.792969 94.199219 356.421875 187.496094 356.421875 C 280.792969 356.421875 356.421875 280.792969 356.421875 187.496094 C 356.421875 94.199219 280.792969 18.570312 187.496094 18.570312 Z M 187.496094 18.570312 ", clipRule: "nonzero" }))), /* @__PURE__ */ r.createElement("g", { clipPath: "url(#30562604dd)" }, /* @__PURE__ */ r.createElement("rect", { x: -37.5, width: 450, fill: "#1d4ed8", y: -37.499999, height: 449.999989, fillOpacity: 1 })), /* @__PURE__ */ r.createElement("g", { clipPath: "url(#971fcd5f72)" }, /* @__PURE__ */ r.createElement("g", { clipPath: "url(#e891a7f57e)" }, /* @__PURE__ */ r.createElement("path", { fill: "#1d4ed8", d: "M 18.570312 18.570312 L 356.429688 18.570312 L 356.429688 356.429688 L 18.570312 356.429688 Z M 18.570312 18.570312 ", fillOpacity: 1, fillRule: "nonzero" }))), /* @__PURE__ */ r.createElement("g", { clipPath: "url(#19a9ddc130)" }, /* @__PURE__ */ r.createElement("g", { clipPath: "url(#5e650d5bd0)" }, /* @__PURE__ */ r.createElement("path", { strokeLinecap: "butt", transform: "matrix(0.75, 0, 0, 0.75, 18.570291, 18.570286)", fill: "none", strokeLinejoin: "miter", d: "M 225.234419 0.0000349326 C 100.838577 0.0000349326 0.0000289326 100.838583 0.0000289326 225.234425 C 0.0000289326 349.630266 100.838577 450.468815 225.234419 450.468815 C 349.63026 450.468815 450.468809 349.630266 450.468809 225.234425 C 450.468809 100.838583 349.63026 0.0000349326 225.234419 0.0000349326 Z M 225.234419 0.0000349326 ", stroke: "#ffffff", strokeWidth: 34, strokeOpacity: 1, strokeMiterlimit: 4 }))), /* @__PURE__ */ r.createElement("g", { fill: "#ffffff", fillOpacity: 1 }, /* @__PURE__ */ r.createElement("g", { transform: "translate(136.121787, 300.837436)" }, /* @__PURE__ */ r.createElement("g", null, /* @__PURE__ */ r.createElement("path", { d: "M 60 -193.78125 C 54.707031 -193.78125 50.109375 -195.734375 46.203125 -199.640625 C 42.296875 -203.554688 40.34375 -208.15625 40.34375 -213.4375 C 40.34375 -218.726562 42.296875 -223.328125 46.203125 -227.234375 C 50.109375 -231.140625 54.707031 -233.09375 60 -233.09375 C 65.28125 -233.09375 69.875 -231.140625 73.78125 -227.234375 C 77.695312 -223.328125 79.65625 -218.726562 79.65625 -213.4375 C 79.65625 -208.15625 77.695312 -203.554688 73.78125 -199.640625 C 69.875 -195.734375 65.28125 -193.78125 60 -193.78125 Z M 45.171875 4.828125 C 39.191406 4.828125 35.28125 2.414062 33.4375 -2.40625 C 31.601562 -7.238281 30.6875 -13.675781 30.6875 -21.71875 C 30.6875 -34.59375 31.773438 -47.234375 33.953125 -59.640625 C 36.140625 -72.054688 38.328125 -83.894531 40.515625 -95.15625 C 42.703125 -106.425781 43.796875 -116.890625 43.796875 -126.546875 C 43.796875 -129.078125 43.675781 -131.832031 43.4375 -134.8125 C 43.207031 -137.800781 42.632812 -140.101562 41.71875 -141.71875 C 38.039062 -139.414062 33.269531 -135.617188 27.40625 -130.328125 C 21.550781 -125.046875 16.898438 -119.1875 13.453125 -112.75 C 11.835938 -114.363281 11.03125 -116.550781 11.03125 -119.3125 C 11.03125 -123.21875 12.582031 -127.46875 15.6875 -132.0625 C 18.789062 -136.65625 22.925781 -141.078125 28.09375 -145.328125 C 33.269531 -149.585938 38.847656 -153.097656 44.828125 -155.859375 C 50.804688 -158.617188 56.664062 -160 62.40625 -160 C 67.695312 -160 71.085938 -158.734375 72.578125 -156.203125 C 74.078125 -153.671875 74.828125 -150.453125 74.828125 -146.546875 C 74.828125 -140.796875 74.078125 -133.378906 72.578125 -124.296875 C 71.085938 -115.222656 69.363281 -105.515625 67.40625 -95.171875 C 65.457031 -84.828125 63.734375 -74.484375 62.234375 -64.140625 C 60.742188 -53.796875 60 -44.367188 60 -35.859375 C 60 -31.492188 60.226562 -27.414062 60.6875 -23.625 C 61.144531 -19.832031 61.71875 -16.671875 62.40625 -14.140625 C 68.15625 -16.671875 73.613281 -20.40625 78.78125 -25.34375 C 83.957031 -30.28125 87.8125 -34.9375 90.34375 -39.3125 C 91.71875 -37.238281 92.40625 -35.050781 92.40625 -32.75 C 92.40625 -29.070312 90.796875 -25.050781 87.578125 -20.6875 C 84.359375 -16.320312 80.332031 -12.179688 75.5 -8.265625 C 70.675781 -4.359375 65.5625 -1.203125 60.15625 1.203125 C 54.757812 3.617188 49.765625 4.828125 45.171875 4.828125 Z M 45.171875 4.828125 " }))))), gt = (t) => /* @__PURE__ */ r.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", width: 500, zoomAndPan: "magnify", viewBox: "0 0 375 374.999991", height: 500, preserveAspectRatio: "xMidYMid meet", ...t }, /* @__PURE__ */ r.createElement("defs", null, /* @__PURE__ */ r.createElement("g", null), /* @__PURE__ */ r.createElement("clipPath", { id: "59a10ac27a" }, /* @__PURE__ */ r.createElement("path", { d: "M 17.179688 32.695312 L 360 32.695312 L 360 337.5 L 17.179688 337.5 Z M 17.179688 32.695312 ", clipRule: "nonzero" })), /* @__PURE__ */ r.createElement("clipPath", { id: "664b27481e" }, /* @__PURE__ */ r.createElement("path", { d: "M 207.042969 43.574219 L 356.394531 304.941406 C 360.242188 311.675781 360.214844 319.953125 356.324219 326.660156 C 352.429688 333.371094 345.257812 337.5 337.5 337.5 L 39.375 337.5 C 31.617188 337.5 24.445312 333.371094 20.554688 326.660156 C 16.660156 319.953125 16.632812 311.675781 20.480469 304.941406 L 169.832031 43.574219 C 173.648438 36.898438 180.746094 32.777344 188.4375 32.777344 C 196.128906 32.777344 203.226562 36.898438 207.042969 43.574219 Z M 207.042969 43.574219 ", clipRule: "nonzero" }))), /* @__PURE__ */ r.createElement("g", { clipPath: "url(#59a10ac27a)" }, /* @__PURE__ */ r.createElement("g", { clipPath: "url(#664b27481e)" }, /* @__PURE__ */ r.createElement("path", { fill: "#d97706", d: "M 1.875 11.015625 L 375.546875 11.015625 L 375.546875 337.5 L 1.875 337.5 Z M 1.875 11.015625 ", fillOpacity: 1, fillRule: "nonzero" }))), /* @__PURE__ */ r.createElement("g", { fill: "#ffffff", fillOpacity: 1 }, /* @__PURE__ */ r.createElement("g", { transform: "translate(158.410439, 295.655517)" }, /* @__PURE__ */ r.createElement("g", null, /* @__PURE__ */ r.createElement("path", { d: "M 46.890625 -63.21875 C 46.890625 -63.21875 46.890625 -64.445312 46.890625 -66.90625 L 46.890625 -176.46875 C 46.890625 -178.925781 46.1875 -180.859375 44.78125 -182.265625 C 43.375 -183.671875 41.441406 -184.375 38.984375 -184.375 L 21.078125 -184.375 C 18.617188 -184.375 16.6875 -183.671875 15.28125 -182.265625 C 13.875 -180.859375 13.171875 -178.925781 13.171875 -176.46875 L 13.171875 -66.90625 C 13.171875 -64.445312 13.875 -62.515625 15.28125 -61.109375 C 16.6875 -59.703125 18.617188 -59 21.078125 -59 L 38.984375 -59 C 41.441406 -59 43.375 -59.703125 44.78125 -61.109375 C 46.1875 -62.515625 46.890625 -63.21875 46.890625 -63.21875 Z M 46.890625 -4.21875 C 46.890625 -4.21875 46.890625 -5.445312 46.890625 -7.90625 L 46.890625 -25.546875 C 46.890625 -28.003906 46.1875 -29.9375 44.78125 -31.34375 C 43.375 -32.75 41.441406 -33.453125 38.984375 -33.453125 L 21.078125 -33.453125 C 18.617188 -33.453125 16.6875 -32.75 15.28125 -31.34375 C 13.875 -29.9375 13.171875 -28.003906 13.171875 -25.546875 L 13.171875 -7.90625 C 13.171875 -5.445312 13.875 -3.515625 15.28125 -2.109375 C 16.6875 -0.703125 18.617188 0 21.078125 0 L 38.984375 0 C 41.441406 0 43.375 -0.703125 44.78125 -2.109375 C 46.1875 -3.515625 46.890625 -4.21875 46.890625 -4.21875 Z M 46.890625 -4.21875 " })))));
547
547
  var Xe = {
548
548
  color: void 0,
549
549
  size: void 0,
550
550
  className: void 0,
551
551
  style: void 0,
552
552
  attr: void 0
553
- }, Fe = D.createContext && /* @__PURE__ */ D.createContext(Xe), bt = ["attr", "size", "title"];
554
- function Et(t, o) {
553
+ }, Fe = Y.createContext && /* @__PURE__ */ Y.createContext(Xe), ht = ["attr", "size", "title"];
554
+ function xt(t, o) {
555
555
  if (t == null) return {};
556
- var n = yt(t, o), a, i;
556
+ var n = vt(t, o), a, i;
557
557
  if (Object.getOwnPropertySymbols) {
558
558
  var u = Object.getOwnPropertySymbols(t);
559
559
  for (i = 0; i < u.length; i++)
@@ -561,7 +561,7 @@ function Et(t, o) {
561
561
  }
562
562
  return n;
563
563
  }
564
- function yt(t, o) {
564
+ function vt(t, o) {
565
565
  if (t == null) return {};
566
566
  var n = {};
567
567
  for (var a in t)
@@ -595,21 +595,21 @@ function ge(t) {
595
595
  for (var o = 1; o < arguments.length; o++) {
596
596
  var n = arguments[o] != null ? arguments[o] : {};
597
597
  o % 2 ? De(Object(n), !0).forEach(function(a) {
598
- Ct(t, a, n[a]);
598
+ bt(t, a, n[a]);
599
599
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : De(Object(n)).forEach(function(a) {
600
600
  Object.defineProperty(t, a, Object.getOwnPropertyDescriptor(n, a));
601
601
  });
602
602
  }
603
603
  return t;
604
604
  }
605
- function Ct(t, o, n) {
606
- return o = wt(o), o in t ? Object.defineProperty(t, o, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[o] = n, t;
605
+ function bt(t, o, n) {
606
+ return o = Et(o), o in t ? Object.defineProperty(t, o, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[o] = n, t;
607
607
  }
608
- function wt(t) {
609
- var o = jt(t, "string");
608
+ function Et(t) {
609
+ var o = yt(t, "string");
610
610
  return typeof o == "symbol" ? o : o + "";
611
611
  }
612
- function jt(t, o) {
612
+ function yt(t, o) {
613
613
  if (typeof t != "object" || !t) return t;
614
614
  var n = t[Symbol.toPrimitive];
615
615
  if (n !== void 0) {
@@ -620,49 +620,49 @@ function jt(t, o) {
620
620
  return (o === "string" ? String : Number)(t);
621
621
  }
622
622
  function Ke(t) {
623
- return t && t.map((o, n) => /* @__PURE__ */ D.createElement(o.tag, ge({
623
+ return t && t.map((o, n) => /* @__PURE__ */ Y.createElement(o.tag, ge({
624
624
  key: n
625
625
  }, o.attr), Ke(o.child)));
626
626
  }
627
627
  function we(t) {
628
- return (o) => /* @__PURE__ */ D.createElement(Lt, pe({
628
+ return (o) => /* @__PURE__ */ Y.createElement(Ct, pe({
629
629
  attr: ge({}, t.attr)
630
630
  }, o), Ke(t.child));
631
631
  }
632
- function Lt(t) {
632
+ function Ct(t) {
633
633
  var o = (n) => {
634
634
  var {
635
635
  attr: a,
636
636
  size: i,
637
637
  title: u
638
- } = t, f = Et(t, bt), m = i || n.size || "1em", p;
639
- return n.className && (p = n.className), t.className && (p = (p ? p + " " : "") + t.className), /* @__PURE__ */ D.createElement("svg", pe({
638
+ } = t, d = xt(t, ht), m = i || n.size || "1em", g;
639
+ return n.className && (g = n.className), t.className && (g = (g ? g + " " : "") + t.className), /* @__PURE__ */ Y.createElement("svg", pe({
640
640
  stroke: "currentColor",
641
641
  fill: "currentColor",
642
642
  strokeWidth: "0"
643
- }, n.attr, a, f, {
644
- className: p,
643
+ }, n.attr, a, d, {
644
+ className: g,
645
645
  style: ge(ge({
646
646
  color: t.color || n.color
647
647
  }, n.style), t.style),
648
648
  height: m,
649
649
  width: m,
650
650
  xmlns: "http://www.w3.org/2000/svg"
651
- }), u && /* @__PURE__ */ D.createElement("title", null, u), t.children);
651
+ }), u && /* @__PURE__ */ Y.createElement("title", null, u), t.children);
652
652
  };
653
- return Fe !== void 0 ? /* @__PURE__ */ D.createElement(Fe.Consumer, null, (n) => o(n)) : o(Xe);
653
+ return Fe !== void 0 ? /* @__PURE__ */ Y.createElement(Fe.Consumer, null, (n) => o(n)) : o(Xe);
654
654
  }
655
- function St(t) {
655
+ function wt(t) {
656
656
  return we({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M17.47 250.9C88.82 328.1 158 397.6 224.5 485.5c72.3-143.8 146.3-288.1 268.4-444.37L460 26.06C356.9 135.4 276.8 238.9 207.2 361.9c-48.4-43.6-126.62-105.3-174.38-137z" }, child: [] }] })(t);
657
657
  }
658
- const Qe = ae(), Dt = ({ children: t }) => {
659
- const [o, n] = j(!1), [a, i] = j(), [u, f] = j(), _ = {
658
+ const Qe = ne(), $t = ({ children: t }) => {
659
+ const [o, n] = C(!1), [a, i] = C(), [u, d] = C(), R = {
660
660
  showAlert: o,
661
661
  setShowAlert: n,
662
662
  typeAlert: a,
663
663
  setTypeAlert: i,
664
664
  messageAlert: u,
665
- setMessageAlert: f,
665
+ setMessageAlert: d,
666
666
  alertConfig: {
667
667
  danger: {
668
668
  bgColor: "bg-danger",
@@ -697,142 +697,153 @@ const Qe = ae(), Dt = ({ children: t }) => {
697
697
  progressColor: "bg-warning-progress"
698
698
  }
699
699
  },
700
- getIcon: (S) => {
701
- switch (S) {
700
+ getIcon: (L) => {
701
+ switch (L) {
702
702
  case "danger":
703
- return /* @__PURE__ */ s.jsx(ht, { className: "w-[20px] h-[20px]" });
703
+ return /* @__PURE__ */ s.jsx(mt, { className: "w-[20px] h-[20px]" });
704
704
  case "info":
705
- return /* @__PURE__ */ s.jsx(xt, { className: "w-[20px] h-[20px]" });
705
+ return /* @__PURE__ */ s.jsx(pt, { className: "w-[20px] h-[20px]" });
706
706
  case "success":
707
- return /* @__PURE__ */ s.jsx(St, { className: "text-xl" });
707
+ return /* @__PURE__ */ s.jsx(wt, { className: "text-xl" });
708
708
  case "warning":
709
- return /* @__PURE__ */ s.jsx(vt, { className: "w-[20px] h-[20px]" });
709
+ return /* @__PURE__ */ s.jsx(gt, { className: "w-[20px] h-[20px]" });
710
710
  }
711
711
  },
712
712
  closeAlert: () => {
713
713
  n(!o);
714
714
  },
715
- activeAlert: (S, d) => {
715
+ activeAlert: (L, f) => {
716
716
  n(!1), setTimeout(() => {
717
- i(S), f(d), n(!0);
717
+ i(L), d(f), n(!0);
718
718
  }, 50);
719
719
  }
720
720
  };
721
- return /* @__PURE__ */ s.jsx(Qe.Provider, { value: _, children: t });
722
- }, ie = () => {
723
- const t = se(Qe);
721
+ return /* @__PURE__ */ s.jsx(Qe.Provider, { value: R, children: t });
722
+ }, se = () => {
723
+ const t = ae(Qe);
724
724
  if (t === void 0) throw new Error("Non puoi modificare l'alert");
725
725
  return t;
726
726
  };
727
- let ne;
728
- const Ce = async (t, o, n) => {
729
- if (ne) return ne;
727
+ let oe;
728
+ const jt = async (t, o, n) => {
729
+ if (oe) return oe;
730
730
  try {
731
- const i = await (await fetch("/config.json")).json(), u = i.baseUri, { unauthorized: f, notFound: m, defaultMessage: p } = i.axiosErrors, C = i.axiosTimeout;
732
- return ne = ft.create({
731
+ const i = await (await fetch("/config.json")).json(), u = i.baseUri, { unauthorized: d, notFound: m, defaultMessage: g } = i.axiosErrors, E = i.axiosTimeout;
732
+ return oe = lt.create({
733
733
  baseURL: u,
734
- timeout: C
735
- }), ne.interceptors.request.use(
736
- (E) => E
737
- ), ne.interceptors.response.use(
738
- (E) => E,
739
- (E) => {
740
- if (E.response)
741
- switch (t(!0), o("danger"), E.response.status) {
734
+ timeout: E
735
+ }), oe.interceptors.request.use(
736
+ (b) => b
737
+ ), oe.interceptors.response.use(
738
+ (b) => b,
739
+ (b) => {
740
+ if (b.response)
741
+ switch (t(!0), o("danger"), b.response.status) {
742
742
  case 401:
743
- localStorage.removeItem("accessToken"), n(f);
743
+ localStorage.removeItem("accessToken"), n(d);
744
744
  break;
745
745
  case 404:
746
746
  n(m);
747
747
  break;
748
748
  default:
749
- n(`${p} ${E.response.status} ${E.response.data.error}`);
749
+ n(`${g} ${b.response.status || ""} ${b.response.data.error || ""}`);
750
750
  }
751
- return Promise.reject(E);
751
+ return Promise.reject(b);
752
752
  }
753
- ), ne;
753
+ ), oe;
754
754
  } catch (a) {
755
755
  console.error(a);
756
756
  }
757
- }, et = ae(), Wt = ({ children: t }) => {
758
- const { heartbeatEndpoint: o, firstPrivatePath: n, infiniteSession: a, timeDeducted: i, authenticatedEndpoint: u, autoLogin: f, autoLoginEmail: m, autoLoginPassword: p, setCurrentDate: C } = ee(), { setIsLoading: E } = he(), { setShowAlert: _, setMessageAlert: S, setTypeAlert: d, activeAlert: x } = ie(), h = Ue(), [v, y] = j(null), [w, P] = j(), [L, N] = j(), [W, te] = j(), [Y, H] = j(!1), J = async (k = null, M) => {
759
- k && k.preventDefault(), H(!0);
757
+ }, et = ne(), Ft = ({ children: t }) => {
758
+ const { heartbeatEndpoint: o, firstPrivatePath: n, infiniteSession: a, timeDeducted: i, authenticatedEndpoint: u, autoLogin: d, autoLoginEmail: m, autoLoginPassword: g, setCurrentDate: E, isDebug: b, backendToken: R } = Q(), { setIsLoading: L } = he(), { setShowAlert: f, setMessageAlert: x, setTypeAlert: h, activeAlert: S } = se(), w = Ue(), [j, P] = C(null), [y, T] = C(), [B, ee] = C(), [q, te] = C(), [ie, H] = C(!1), G = async () => await jt(f, h, x), $ = async (O = null, M) => {
759
+ O && O.preventDefault(), H(!0);
760
760
  try {
761
- E(!0), _(!1);
762
- const A = await (await Ce(_, d, S)).post(u, {
761
+ L(!0), f(!1);
762
+ const _ = await (await G()).post(u, {
763
763
  auth: M
764
- }), z = A.data.id, re = A.headers.token, B = A.data;
765
- re && (localStorage.setItem("accessToken", re), localStorage.setItem("id", z), localStorage.setItem("user", JSON.stringify(B)), y(!0), P(re), h(`${n}${z}`));
766
- } catch (U) {
767
- console.error(U);
764
+ }), V = _.headers.token, Z = _.data;
765
+ V && (localStorage.setItem("accessToken", V), localStorage.setItem("user", JSON.stringify(Z)), P(!0), T(V), w(`${n}${Z.id}`));
766
+ } catch (I) {
767
+ console.error(I);
768
768
  } finally {
769
- H(!1), E(!1);
769
+ H(!1), L(!1);
770
770
  }
771
- }, Z = () => {
772
- localStorage.removeItem("accessToken"), localStorage.removeItem("id"), localStorage.removeItem("user"), y(!1), P(null);
773
- }, V = async () => {
771
+ }, F = () => {
772
+ localStorage.removeItem("accessToken"), localStorage.removeItem("id"), localStorage.removeItem("user"), P(!1), T(null);
773
+ }, J = async () => {
774
774
  try {
775
- const k = localStorage.getItem("accessToken"), A = (await (await Ce(_, d, S)).get(
775
+ const O = localStorage.getItem("accessToken"), _ = (await (await G()).get(
776
776
  `${o}`,
777
- { headers: {
778
- Authorization: k
779
- } }
777
+ {
778
+ headers: {
779
+ Authorization: O
780
+ }
781
+ }
780
782
  )).headers.token;
781
- localStorage.setItem("accessToken", A), P(A), console.log("nuovo token: ", A, "Data:", C());
782
- } catch (k) {
783
- console.error(k), Z();
783
+ localStorage.setItem("accessToken", _), T(_), b && console.log("nuovo token: ", _, "Data:", E());
784
+ } catch (O) {
785
+ console.error(O), F();
784
786
  }
785
- }, G = () => {
786
- if (!w)
787
+ }, xe = () => {
788
+ if (!y)
787
789
  return;
788
- const M = it(w).exp, U = Math.floor(Date.now() / 1e3), A = (M - U) * 1e3;
789
- te(A), N(A - i);
790
+ const M = st(y).exp, I = Math.floor(Date.now() / 1e3), _ = (M - I) * 1e3;
791
+ te(_), ee(_ - i);
792
+ }, le = async (O) => {
793
+ try {
794
+ const _ = (await (await G()).get(
795
+ o,
796
+ {
797
+ headers: {
798
+ Authorization: O
799
+ }
800
+ }
801
+ )).data;
802
+ _ && (localStorage.setItem("user", JSON.stringify(_)), localStorage.setItem("accessToken", O), P(!0), w(`${n}${_.id}`));
803
+ } catch (M) {
804
+ console.error(M);
805
+ }
790
806
  };
791
- I(() => {
807
+ z(() => {
792
808
  if (localStorage.getItem("accessToken"))
793
- y(!0);
809
+ P(!0);
794
810
  else {
795
- y(!1);
811
+ P(!1);
796
812
  return;
797
813
  }
798
- }, []), I(() => {
799
- const k = localStorage.getItem("accessToken");
800
- f && !k && !Y && J(null, {
801
- email: m,
802
- password: p
803
- });
804
- }, [f, Y]), I(() => {
805
- G();
806
- let k;
807
- a && w && L && (k = setInterval(() => {
808
- V();
809
- }, L));
814
+ }, []), z(() => {
815
+ d && le(R);
816
+ }, [d]), z(() => {
817
+ j || d && !ie && le(R);
818
+ }, [j]), z(() => {
819
+ if (d) return;
820
+ xe();
821
+ let O;
822
+ a && y && B && (O = setInterval(() => {
823
+ J();
824
+ }, B));
810
825
  let M;
811
- return !a && w && W && (M = setTimeout(() => {
812
- Z(), x("danger", "Sessione scaduta");
813
- }, W)), () => {
814
- k && clearInterval(k), M && clearTimeout(M);
826
+ return !a && y && q && (M = setTimeout(() => {
827
+ F(), S("danger", "Sessione scaduta");
828
+ }, q)), () => {
829
+ O && clearInterval(O), M && clearTimeout(M);
815
830
  };
816
- }, [w, L]), I(() => {
817
- v || f && !Y && J(null, {
818
- email: m,
819
- password: p
820
- });
821
- }, [v]);
822
- const X = {
823
- isAuthenticated: v,
824
- setIsAuthenticated: y,
825
- login: J,
826
- logout: Z,
827
- setCurrentToken: P
831
+ }, [y, B]);
832
+ const ve = {
833
+ isAuthenticated: j,
834
+ setIsAuthenticated: P,
835
+ login: $,
836
+ logout: F,
837
+ setCurrentToken: T,
838
+ createAxiosInstances: G
828
839
  };
829
- return /* @__PURE__ */ s.jsx(et.Provider, { value: X, children: t });
840
+ return /* @__PURE__ */ s.jsx(et.Provider, { value: ve, children: t });
830
841
  }, je = () => {
831
- const t = se(et);
842
+ const t = ae(et);
832
843
  if (t === void 0) throw new Error("Non sei dentro al Auth Provider");
833
844
  return t;
834
- }, tt = ae(), Yt = ({ children: t, publicRoutes: o = [], privateRoutes: n = [] }) => /* @__PURE__ */ s.jsx(tt.Provider, { value: { publicRoutes: o, privateRoutes: n }, children: t }), Ot = () => {
835
- const t = se(tt);
845
+ }, tt = ne(), Dt = ({ children: t, publicRoutes: o = [], privateRoutes: n = [] }) => /* @__PURE__ */ s.jsx(tt.Provider, { value: { publicRoutes: o, privateRoutes: n }, children: t }), Lt = () => {
846
+ const t = ae(tt);
836
847
  if (t === void 0)
837
848
  throw new Error(
838
849
  `Errore: Le rotte non sono state inizializzate correttamente.
@@ -846,111 +857,111 @@ Esempio:
846
857
  </RouteProvider>`
847
858
  );
848
859
  return t;
849
- }, rt = ae(), Zt = ({ children: t }) => {
850
- const { login: o } = je(), { clearLoginFormOnError: n } = ee(), a = {
860
+ }, rt = ne(), Wt = ({ children: t }) => {
861
+ const { login: o } = je(), { clearLoginFormOnError: n } = Q(), a = {
851
862
  email: "",
852
863
  password: ""
853
- }, [i, u] = j("Accedi"), [f, m] = j("Email"), [p, C] = j("email"), [E, _] = j("example@example.it"), [S, d] = j("Accedi"), [x, h] = j(a), [v, y] = j(), [w, P] = j(), [L, N] = j(), [W, te] = j(), [Y, H] = j({}), V = {
854
- overrideStyle: Y,
855
- setOverrideStyle: H,
864
+ }, [i, u] = C("Accedi"), [d, m] = C("Email"), [g, E] = C("email"), [b, R] = C("example@example.it"), [L, f] = C("Accedi"), [x, h] = C(a), [S, w] = C(), [j, P] = C(), [y, T] = C(), [B, ee] = C(), [q, te] = C({}), G = {
865
+ overrideStyle: q,
866
+ setOverrideStyle: te,
856
867
  title: i,
857
868
  setTitle: u,
858
- label: f,
869
+ label: d,
859
870
  setLabel: m,
860
- type: p,
861
- setType: C,
862
- placeholder: E,
863
- setPlaceholder: _,
864
- buttonText: S,
865
- setButtonText: d,
871
+ type: g,
872
+ setType: E,
873
+ placeholder: b,
874
+ setPlaceholder: R,
875
+ buttonText: L,
876
+ setButtonText: f,
866
877
  formData: x,
867
878
  setFormData: h,
868
- LogoImg: v,
869
- setLogoImg: y,
870
- styleCardForm: w,
879
+ LogoImg: S,
880
+ setLogoImg: w,
881
+ styleCardForm: j,
871
882
  setStyleCardForm: P,
872
- styleContainerLogo: L,
873
- setStyleContainerLogo: N,
874
- styleLogo: W,
875
- setStyleLogo: te,
876
- changeData: (G, X) => {
877
- h((k) => ({ ...k, [G]: X }));
883
+ styleContainerLogo: y,
884
+ setStyleContainerLogo: T,
885
+ styleLogo: B,
886
+ setStyleLogo: ee,
887
+ changeData: ($, F) => {
888
+ h((J) => ({ ...J, [$]: F }));
878
889
  },
879
- handleLogin: (G) => {
880
- o(G, x), n && h(a);
890
+ handleLogin: ($) => {
891
+ o($, x), n && h(a);
881
892
  }
882
893
  };
883
- return /* @__PURE__ */ s.jsx(rt.Provider, { value: V, children: t });
894
+ return /* @__PURE__ */ s.jsx(rt.Provider, { value: G, children: t });
884
895
  }, ot = () => {
885
- const t = se(rt);
896
+ const t = ae(rt);
886
897
  if (t === void 0) throw new Error("Non puoi modificare La login");
887
898
  return t;
888
899
  };
889
900
  function nt(t) {
890
901
  return we({ tag: "svg", attr: { version: "1.1", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M8 0c-4.355 0-7.898 3.481-7.998 7.812 0.092-3.779 2.966-6.812 6.498-6.812 3.59 0 6.5 3.134 6.5 7 0 0.828 0.672 1.5 1.5 1.5s1.5-0.672 1.5-1.5c0-4.418-3.582-8-8-8zM8 16c4.355 0 7.898-3.481 7.998-7.812-0.092 3.779-2.966 6.812-6.498 6.812-3.59 0-6.5-3.134-6.5-7 0-0.828-0.672-1.5-1.5-1.5s-1.5 0.672-1.5 1.5c0 4.418 3.582 8 8 8z" }, child: [] }] })(t);
891
902
  }
892
- const Pt = () => {
893
- const { loadingProps: t } = he(), { spinner: o = !0, spinnerStyle: n, text: a, textStyle: i, children: u, containerStyle: f, overrideStyle: m = {} } = t;
894
- return /* @__PURE__ */ s.jsxs("div", { className: m.container || `fixed top-0 bottom-0 left-0 right-0 flex items-center justify-center bg-loading-bg z-[999] ${f}`, children: [
903
+ const St = () => {
904
+ const { loadingProps: t } = he(), { spinner: o = !0, spinnerStyle: n, text: a, textStyle: i, children: u, containerStyle: d, overrideStyle: m = {} } = t;
905
+ return /* @__PURE__ */ s.jsxs("div", { className: m.container || `fixed top-0 bottom-0 left-0 right-0 flex items-center justify-center bg-loading-bg z-[999] ${d}`, children: [
895
906
  o && /* @__PURE__ */ s.jsx(nt, { className: m.spinner || `text-[20rem] relative animate-spin text-spinner ${n}` }),
896
907
  u || /* @__PURE__ */ s.jsx("p", { className: m.text || `text-white text-2xl select-none absolute ${i}`, children: a || "Loading..." })
897
908
  ] });
898
909
  };
899
- function kt(t) {
910
+ function Ot(t) {
900
911
  return we({ tag: "svg", attr: { viewBox: "0 0 15 15", fill: "none" }, child: [{ tag: "path", attr: { fillRule: "evenodd", clipRule: "evenodd", d: "M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z", fill: "currentColor" }, child: [] }] })(t);
901
912
  }
902
913
  const We = () => {
903
- const { messageAlert: t, typeAlert: o, alertConfig: n, getIcon: a, closeAlert: i } = ie(), { alertTimeout: u } = ee(), [f, m] = j(0), { bgColor: p, textColor: C, buttonBg: E, hoverBg: _, focusRing: S, progressColor: d } = n[o];
904
- return I(() => {
914
+ const { messageAlert: t, typeAlert: o, alertConfig: n, getIcon: a, closeAlert: i } = se(), { alertTimeout: u } = Q(), [d, m] = C(0), { bgColor: g, textColor: E, buttonBg: b, hoverBg: R, focusRing: L, progressColor: f } = n[o];
915
+ return z(() => {
905
916
  let x;
906
- const v = 100 / (u / 100);
917
+ const S = 100 / (u / 100);
907
918
  x = setInterval(() => {
908
- m((w) => w >= 100 ? (clearInterval(x), 100) : w + v);
919
+ m((j) => j >= 100 ? (clearInterval(x), 100) : j + S);
909
920
  }, 100);
910
- const y = setTimeout(() => {
921
+ const w = setTimeout(() => {
911
922
  i();
912
923
  }, u);
913
924
  return () => {
914
- clearTimeout(y), clearInterval(x);
925
+ clearTimeout(w), clearInterval(x);
915
926
  };
916
- }, []), /* @__PURE__ */ s.jsxs("div", { className: `flex items-center p-4 pt-6 ${C} rounded-lg ${p} mx-auto max-sm:min-w-[280px] sm:max-w-1/3 fixed top-[calc(100vh-100px)] sm:right-10 right-1/2 translate-x-1/2 sm:translate-0 z-100`, role: "alert", children: [
917
- /* @__PURE__ */ s.jsx("div", { className: "w-full bg-gray-200 rounded-t-lg overflow-hidden h-2.5 absolute top-0 left-0 right-0", children: /* @__PURE__ */ s.jsx("div", { className: `${d} h-2.5 rounded-t-lg`, style: { width: `${f}%` } }) }),
927
+ }, []), /* @__PURE__ */ s.jsxs("div", { className: `flex items-center p-4 pt-6 ${E} rounded-lg ${g} mx-auto max-sm:min-w-[280px] sm:max-w-1/3 fixed top-[calc(100vh-100px)] sm:right-10 right-1/2 translate-x-1/2 sm:translate-0 z-100`, role: "alert", children: [
928
+ /* @__PURE__ */ s.jsx("div", { className: "w-full bg-gray-200 rounded-t-lg overflow-hidden h-2.5 absolute top-0 left-0 right-0", children: /* @__PURE__ */ s.jsx("div", { className: `${f} h-2.5 rounded-t-lg`, style: { width: `${d}%` } }) }),
918
929
  a(o),
919
930
  /* @__PURE__ */ s.jsx("div", { className: "px-4 text-sm font-medium", children: t }),
920
931
  /* @__PURE__ */ s.jsx(
921
932
  "button",
922
933
  {
923
934
  type: "button",
924
- className: `ms-auto ${E} rounded-lg focus:ring-2 ${S} p-1.5 ${_} inline-flex items-center justify-center h-8 w-8 cursor-pointer`,
935
+ className: `ms-auto ${b} rounded-lg focus:ring-2 ${L} p-1.5 ${R} inline-flex items-center justify-center h-8 w-8 cursor-pointer`,
925
936
  title: "Close",
926
937
  onClick: i,
927
- children: /* @__PURE__ */ s.jsx(kt, { className: "text-xl" })
938
+ children: /* @__PURE__ */ s.jsx(Ot, { className: "text-xl" })
928
939
  }
929
940
  )
930
941
  ] });
931
- }, _t = (t) => {
932
- const { isLoading: o } = he(), { showAlert: n } = ie(), a = qe(), {
942
+ }, kt = (t) => {
943
+ const { isLoading: o } = he(), { showAlert: n } = se(), a = qe(), {
933
944
  isMain: i = !0,
934
945
  headerComponent: u = null,
935
- showHeaderOnLogin: f = !1,
946
+ showHeaderOnLogin: d = !1,
936
947
  headerExcludedRoutes: m = [],
937
- footerComponent: p = null,
938
- showFooterOnLogin: C = !1,
939
- footerExcludedRoutes: E = []
940
- } = t, _ = m.some((h) => ze(h, a.pathname));
941
- let S;
942
- a.pathname === "/" ? S = u && f : S = u && !_;
943
- const d = E.some((h) => ze(h, a.pathname));
948
+ footerComponent: g = null,
949
+ showFooterOnLogin: E = !1,
950
+ footerExcludedRoutes: b = []
951
+ } = t, R = m.some((h) => ze(h, a.pathname));
952
+ let L;
953
+ a.pathname === "/" ? L = u && d : L = u && !R;
954
+ const f = b.some((h) => ze(h, a.pathname));
944
955
  let x;
945
- return a.pathname === "/" ? x = p && C : x = p && !d, /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
946
- o && /* @__PURE__ */ s.jsx(Pt, {}),
956
+ return a.pathname === "/" ? x = g && E : x = g && !f, /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
957
+ o && /* @__PURE__ */ s.jsx(St, {}),
947
958
  n && /* @__PURE__ */ s.jsx(We, {}),
948
- S && u,
959
+ L && u,
949
960
  i ? /* @__PURE__ */ s.jsxs("main", { className: o ? "hidden" : "", children: [
950
961
  n && /* @__PURE__ */ s.jsx(We, {}),
951
- /* @__PURE__ */ s.jsx(ye, {})
952
- ] }) : /* @__PURE__ */ s.jsx(ye, {}),
953
- x && p
962
+ /* @__PURE__ */ s.jsx(Ce, {})
963
+ ] }) : /* @__PURE__ */ s.jsx(Ce, {}),
964
+ x && g
954
965
  ] });
955
966
  }, Ye = (t) => {
956
967
  const {
@@ -959,31 +970,31 @@ const We = () => {
959
970
  inputPlaceholder: a,
960
971
  inputRequired: i,
961
972
  inputValue: u,
962
- inputChange: f,
973
+ inputChange: d,
963
974
  autoFocus: m,
964
- inputStyle: p,
965
- overrideStyle: C,
966
- disabled: E
967
- } = t, S = ["text", "email", "password", "search", "tel", "url"].includes(o) ? o : "text";
975
+ inputStyle: g,
976
+ overrideStyle: E,
977
+ disabled: b
978
+ } = t, L = ["text", "email", "password", "search", "tel", "url"].includes(o) ? o : "text";
968
979
  return /* @__PURE__ */ s.jsx(
969
980
  "input",
970
981
  {
971
- type: S,
982
+ type: L,
972
983
  autoFocus: m,
973
984
  id: n,
974
- className: C || `bg-input-bg border border-input-border text-input-text text-input-placeholder input-rounded focus:ring focus:ring-primary focus:border-primary focus:outline-none focus:shadow-(--shadow-primary-input) block w-full p-input ${p}`,
985
+ className: E || `bg-input-bg border border-input-border text-input-text text-input-placeholder input-rounded focus:ring focus:ring-primary focus:border-primary focus:outline-none focus:shadow-(--shadow-primary-input) block w-full p-input ${g}`,
975
986
  placeholder: a,
976
987
  required: i ?? !0,
977
988
  value: u,
978
- onChange: f,
979
- disabled: E
989
+ onChange: d,
990
+ disabled: b
980
991
  }
981
992
  );
982
- }, Ze = ({ label: t, labelId: o, labelStyle: n, overrideStyle: a }) => /* @__PURE__ */ s.jsx("label", { htmlFor: o, className: a || `show-label mb-2 text-input-label font-medium text-color-label ${n}`, children: t }), Rt = () => {
983
- const { title: t, label: o, type: n, placeholder: a, buttonText: i, formData: u, changeData: f, handleLogin: m, overrideStyle: p } = ot();
984
- return /* @__PURE__ */ s.jsxs("form", { onSubmit: m, className: p.form || "form-size", children: [
985
- /* @__PURE__ */ s.jsx("h1", { className: p.title || "text-form-title-size show-title title-position m-form-title", children: t }),
986
- /* @__PURE__ */ s.jsxs("div", { className: p.containerEmail || "flex justify-center flex-col gap-1 m-input-form input-size mx-auto", children: [
993
+ }, Ze = ({ label: t, labelId: o, labelStyle: n, overrideStyle: a }) => /* @__PURE__ */ s.jsx("label", { htmlFor: o, className: a || `show-label mb-2 text-input-label font-medium text-color-label ${n}`, children: t }), Pt = () => {
994
+ const { title: t, label: o, type: n, placeholder: a, buttonText: i, formData: u, changeData: d, handleLogin: m, overrideStyle: g } = ot();
995
+ return /* @__PURE__ */ s.jsxs("form", { onSubmit: m, className: g.form || "form-size", children: [
996
+ /* @__PURE__ */ s.jsx("h1", { className: g.title || "text-form-title-size show-title title-position m-form-title", children: t }),
997
+ /* @__PURE__ */ s.jsxs("div", { className: g.containerEmail || "flex justify-center flex-col gap-1 m-input-form input-size mx-auto", children: [
987
998
  /* @__PURE__ */ s.jsx(Ze, { labelId: "user-email", label: o }),
988
999
  /* @__PURE__ */ s.jsx(
989
1000
  Ye,
@@ -992,14 +1003,14 @@ const We = () => {
992
1003
  inputId: "user-email",
993
1004
  inputPlaceholder: a,
994
1005
  inputValue: u.email,
995
- inputChange: (C) => {
996
- f("email", C.target.value);
1006
+ inputChange: (E) => {
1007
+ d("email", E.target.value);
997
1008
  },
998
1009
  autoFocus: !0
999
1010
  }
1000
1011
  )
1001
1012
  ] }),
1002
- /* @__PURE__ */ s.jsxs("div", { className: p.containerPassword || "flex justify-center flex-col gap-1 my-4 input-size mx-auto", children: [
1013
+ /* @__PURE__ */ s.jsxs("div", { className: g.containerPassword || "flex justify-center flex-col gap-1 my-4 input-size mx-auto", children: [
1003
1014
  /* @__PURE__ */ s.jsx(Ze, { labelId: "password", label: "Password" }),
1004
1015
  /* @__PURE__ */ s.jsx(
1005
1016
  Ye,
@@ -1008,97 +1019,89 @@ const We = () => {
1008
1019
  inputId: "password",
1009
1020
  inputPlaceholder: "Password",
1010
1021
  inputValue: u.password,
1011
- inputChange: (C) => {
1012
- f("password", C.target.value);
1022
+ inputChange: (E) => {
1023
+ d("password", E.target.value);
1013
1024
  }
1014
1025
  }
1015
1026
  )
1016
1027
  ] }),
1017
- /* @__PURE__ */ s.jsx("div", { className: p.containerButton || "flex button-position items-center m-primary-button", children: /* @__PURE__ */ s.jsx("button", { className: p.button || "font-bold cursor-pointer shadow-(--shadow-primary) transition-all duration-200 hover:shadow-(--shadow-primary-hover) active:shadow-(--shadow-primary-active) active:translate-y-[2px] p-primary-button rounded-primary-button bg-primary hover:bg-primary-hover text-primary-text", children: i }) })
1028
+ /* @__PURE__ */ s.jsx("div", { className: g.containerButton || "flex button-position items-center m-primary-button", children: /* @__PURE__ */ s.jsx("button", { className: g.button || "font-bold cursor-pointer shadow-(--shadow-primary) transition-all duration-200 hover:shadow-(--shadow-primary-hover) active:shadow-(--shadow-primary-active) active:translate-y-[2px] p-primary-button rounded-primary-button bg-primary hover:bg-primary-hover text-primary-text", children: i }) })
1018
1029
  ] });
1019
- }, Tt = ({ Logo: t }) => {
1020
- const { styleCardForm: o, styleContainerLogo: n, styleLogo: a, overrideStyle: i } = ot(), { firstPrivatePath: u } = ee(), f = Ue();
1021
- return I(() => {
1022
- const m = localStorage.getItem("id");
1023
- localStorage.getItem("accessToken") && m && f(`${u}${m}`);
1030
+ }, Rt = ({ Logo: t }) => {
1031
+ const { styleCardForm: o, styleContainerLogo: n, styleLogo: a, overrideStyle: i } = ot(), { firstPrivatePath: u } = Q(), d = Ue();
1032
+ return z(() => {
1033
+ const m = JSON.parse(localStorage.getItem("user"));
1034
+ localStorage.getItem("accessToken") && m.id && d(`${u}${m.id}`);
1024
1035
  }, []), /* @__PURE__ */ s.jsx("section", { id: "login-page", children: /* @__PURE__ */ s.jsx("div", { className: i.container || "container mx-auto flex items-center justify-center h-screen", children: /* @__PURE__ */ s.jsxs("div", { className: i.cardForm || `bg-form card-style card-size flex flex-col sm:flex-row sm:items-center justify-center ${o}`, children: [
1025
1036
  /* @__PURE__ */ s.jsx("div", { className: i.containerLogo || `basis-1/2 flex items-center justify-center ${n}`, children: t && /* @__PURE__ */ s.jsx(t, { className: i.logo || `login-logo h-full sm:h-auto ${a}` }) }),
1026
- /* @__PURE__ */ s.jsx(Rt, {})
1037
+ /* @__PURE__ */ s.jsx(Pt, {})
1027
1038
  ] }) }) });
1028
- }, Nt = () => {
1029
- const { isAuthenticated: t } = je(), { activeAlert: o } = ie(), { autoLogin: n } = ee();
1030
- return I(() => {
1039
+ }, Tt = () => {
1040
+ const { isAuthenticated: t } = je(), { activeAlert: o } = se(), { autoLogin: n } = Q();
1041
+ return z(() => {
1031
1042
  const a = localStorage.getItem("accessToken");
1032
1043
  !t && !a && !n && o("danger", "Non sei autorizzato");
1033
- }, []), t === null ? null : t ? /* @__PURE__ */ s.jsx(ye, {}) : /* @__PURE__ */ s.jsx(He, { to: "/", replace: !0 });
1034
- }, At = () => {
1035
- const { id: t } = lt(), { logout: o, setCurrentToken: n } = je(), { usersEndpoint: a } = ee(), { setIsLoading: i } = he(), { setShowAlert: u, setTypeAlert: f, setMessageAlert: m, activeAlert: p } = ie(), [C, E] = j(null), [_, S] = j(!1), d = JSON.parse(localStorage.getItem("user")), x = async () => {
1044
+ }, []), t === null ? null : t ? /* @__PURE__ */ s.jsx(Ce, {}) : /* @__PURE__ */ s.jsx(He, { to: "/", replace: !0 });
1045
+ }, Nt = () => {
1046
+ const { logout: t, setCurrentToken: o, createAxiosInstances: n } = je(), { usersEndpoint: a } = Q(), { setIsLoading: i } = he(), { activeAlert: u } = se(), [d, m] = C(null), [g, E] = C(!1), b = JSON.parse(localStorage.getItem("user")), R = async () => {
1036
1047
  try {
1037
- S(!0);
1038
- const v = localStorage.getItem("accessToken");
1039
- if (!v) {
1040
- o(), p("danger", "Sessione Scaduta");
1048
+ E(!0);
1049
+ const f = localStorage.getItem("accessToken");
1050
+ if (!f) {
1051
+ t(), u("danger", "Sessione Scaduta");
1041
1052
  return;
1042
1053
  }
1043
- const P = (await (await Ce(u, f, m)).get(
1054
+ const S = (await (await n()).get(
1044
1055
  `${a}`,
1045
- { headers: {
1046
- Authorization: v
1047
- } }
1056
+ {
1057
+ headers: {
1058
+ Authorization: `Bearer ${f}`
1059
+ }
1060
+ }
1048
1061
  )).data;
1049
- E(P);
1050
- } catch (v) {
1051
- console.error(v), i(!1);
1062
+ m(S);
1063
+ } catch (f) {
1064
+ console.error(f), i(!1);
1052
1065
  } finally {
1053
- S(!1);
1066
+ E(!1);
1054
1067
  }
1055
- }, h = () => {
1056
- o(), p("info", "Hai effettuato il logout");
1068
+ }, L = () => {
1069
+ t(), u("info", "Hai effettuato il logout");
1057
1070
  };
1058
- return I(() => {
1059
- const v = localStorage.getItem("accessToken");
1060
- v && n(v);
1071
+ return z(() => {
1072
+ const f = localStorage.getItem("accessToken");
1073
+ f && o(f);
1061
1074
  }, []), /* @__PURE__ */ s.jsx("section", { children: /* @__PURE__ */ s.jsxs("div", { className: "container mx-auto py-8", children: [
1062
1075
  /* @__PURE__ */ s.jsxs("div", { className: "flex items-center justify-center gap-8 h-20", children: [
1063
1076
  /* @__PURE__ */ s.jsxs("h1", { className: "text-4xl text-center text-slate-800", children: [
1064
1077
  "Email: ",
1065
- d.email
1078
+ b.email
1066
1079
  ] }),
1067
1080
  /* @__PURE__ */ s.jsx(
1068
1081
  "button",
1069
1082
  {
1070
- onClick: h,
1083
+ onClick: L,
1071
1084
  className: "bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded-full cursor-pointer shadow-[0_4px_10px_rgba(239,68,68,0.3),0_2px_4px_rgba(239,68,68,0.2)] hover:shadow-[0_6px_14px_rgba(185,28,28,0.4),0_3px_6px_rgba(185,28,28,0.3)] active:shadow-[0_2px_5px_rgba(239,68,68,0.3)] transition-all duration-200 active:translate-y-[2px]",
1072
1085
  children: "Logout"
1073
1086
  }
1074
1087
  )
1075
1088
  ] }),
1076
- /* @__PURE__ */ s.jsxs("div", { className: "flex justify-center items-center my-12 gap-8", children: [
1077
- /* @__PURE__ */ s.jsx(
1078
- "button",
1079
- {
1080
- onClick: x,
1081
- className: "bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-full disabled:bg-blue-300 disabled:text-gray-500 disabled:cursor-not-allowed cursor-pointer transition-all duration-200 active:translate-y-[2px] shadow-[0_4px_10px_rgba(59,130,246,0.3),0_2px_4px_rgba(59,130,246,0.2)] hover:shadow-[0_6px_14px_rgba(29,78,216,0.4),0_3px_6px_rgba(29,78,216,0.3)] active:shadow-[0_2px_5px_rgba(59,130,246,0.3)]",
1082
- disabled: _,
1083
- children: "Lista degli utenti"
1084
- }
1085
- ),
1086
- d.admin && /* @__PURE__ */ s.jsx(
1087
- ct,
1088
- {
1089
- to: `/about/${t}`,
1090
- className: "bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded-full disabled:bg-green-300 disabled:text-gray-500 disabled:cursor-not-allowed cursor-pointer transition-all duration-200 active:translate-y-[2px] shadow-[0_4px_10px_rgba(59,130,246,0.3),0_2px_4px_rgba(59,130,246,0.2)] hover:shadow-[0_6px_14px_rgba(29,78,216,0.4),0_3px_6px_rgba(29,78,216,0.3)] active:shadow-[0_2px_5px_rgba(59,130,246,0.3)]",
1091
- children: "About Page"
1092
- }
1093
- )
1094
- ] }),
1095
- /* @__PURE__ */ s.jsx("div", { className: "flex justify-center items-center", children: C && /* @__PURE__ */ s.jsx("ul", { children: C.map((v) => /* @__PURE__ */ s.jsxs("li", { className: "text-xl my-4", children: [
1096
- v.id,
1089
+ /* @__PURE__ */ s.jsx("div", { className: "flex justify-center items-center my-12 gap-8", children: /* @__PURE__ */ s.jsx(
1090
+ "button",
1091
+ {
1092
+ onClick: R,
1093
+ className: "bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-full disabled:bg-blue-300 disabled:text-gray-500 disabled:cursor-not-allowed cursor-pointer transition-all duration-200 active:translate-y-[2px] shadow-[0_4px_10px_rgba(59,130,246,0.3),0_2px_4px_rgba(59,130,246,0.2)] hover:shadow-[0_6px_14px_rgba(29,78,216,0.4),0_3px_6px_rgba(29,78,216,0.3)] active:shadow-[0_2px_5px_rgba(59,130,246,0.3)]",
1094
+ disabled: g,
1095
+ children: "Lista degli utenti"
1096
+ }
1097
+ ) }),
1098
+ /* @__PURE__ */ s.jsx("div", { className: "flex justify-center items-center", children: d && /* @__PURE__ */ s.jsx("ul", { children: d.map((f) => /* @__PURE__ */ s.jsxs("li", { className: "text-xl my-4", children: [
1099
+ f.id,
1097
1100
  " - ",
1098
- v.email
1099
- ] }, `user-${v.id}`)) }) })
1101
+ f.email
1102
+ ] }, `user-${f.id}`)) }) })
1100
1103
  ] }) });
1101
- }, Mt = (t) => /* @__PURE__ */ r.createElement("svg", { width: "108.41262mm", height: "108.41262mm", viewBox: "0 0 108.41262 108.41262", id: "svg1", xmlSpace: "preserve", xmlnsXlink: "http://www.w3.org/1999/xlink", xmlns: "http://www.w3.org/2000/svg", "xmlns:svg": "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ r.createElement("defs", { id: "defs1" }, /* @__PURE__ */ r.createElement("linearGradient", { id: "linearGradient27" }, /* @__PURE__ */ r.createElement("stop", { style: {
1104
+ }, _t = (t) => /* @__PURE__ */ r.createElement("svg", { width: "108.41262mm", height: "108.41262mm", viewBox: "0 0 108.41262 108.41262", id: "svg1", xmlSpace: "preserve", xmlnsXlink: "http://www.w3.org/1999/xlink", xmlns: "http://www.w3.org/2000/svg", "xmlns:svg": "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ r.createElement("defs", { id: "defs1" }, /* @__PURE__ */ r.createElement("linearGradient", { id: "linearGradient27" }, /* @__PURE__ */ r.createElement("stop", { style: {
1102
1105
  stopColor: "#ff0000",
1103
1106
  stopOpacity: 1
1104
1107
  }, offset: 0, id: "stop27" }), /* @__PURE__ */ r.createElement("stop", { style: {
@@ -1144,93 +1147,93 @@ const We = () => {
1144
1147
  strokeWidth: 0,
1145
1148
  strokeOpacity: 1,
1146
1149
  paintOrder: "stroke markers fill"
1147
- }, d: "", id: "path40", transform: "scale(0.26458333)" }))), Ut = (t) => {
1148
- const { publicRoutes: o, privateRoutes: n } = Ot(), { firstPrivatePath: a } = ee(), {
1149
- logoImg: i = Mt,
1150
+ }, d: "", id: "path40", transform: "scale(0.26458333)" }))), Yt = (t) => {
1151
+ const { publicRoutes: o, privateRoutes: n } = Lt(), { firstPrivatePath: a } = Q(), {
1152
+ logoImg: i = _t,
1150
1153
  pathImg: u = "./src/assets/MyWarehouse.svg",
1151
- firstPrivateElement: f = /* @__PURE__ */ s.jsx(At, {}),
1154
+ firstPrivateElement: d = /* @__PURE__ */ s.jsx(Nt, {}),
1152
1155
  globalLayout: m,
1153
- isMain: p,
1154
- headerComponent: C,
1155
- showHeaderOnLogin: E,
1156
- headerExcludedRoutes: _,
1157
- footerComponent: S,
1158
- showFooterOnLogin: d,
1156
+ isMain: g,
1157
+ headerComponent: E,
1158
+ showHeaderOnLogin: b,
1159
+ headerExcludedRoutes: R,
1160
+ footerComponent: L,
1161
+ showFooterOnLogin: f,
1159
1162
  footerExcludedRoutes: x,
1160
1163
  privateProvider: h,
1161
- customProvider: v
1162
- } = t, y = m || /* @__PURE__ */ s.jsx(
1163
- _t,
1164
+ customProvider: S
1165
+ } = t, w = m || /* @__PURE__ */ s.jsx(
1166
+ kt,
1164
1167
  {
1165
- isMain: p,
1166
- headerComponent: C,
1167
- showHeaderOnLogin: E,
1168
- headerExcludedRoutes: _,
1169
- footerComponent: S,
1170
- showFooterOnLogin: d,
1168
+ isMain: g,
1169
+ headerComponent: E,
1170
+ showHeaderOnLogin: b,
1171
+ headerExcludedRoutes: R,
1172
+ footerComponent: L,
1173
+ showFooterOnLogin: f,
1171
1174
  footerExcludedRoutes: x
1172
1175
  }
1173
- ), w = h ? D.cloneElement(h, {}, v) : /* @__PURE__ */ s.jsx(Nt, { children: v }), P = () => {
1174
- const L = document.querySelector("link[rel='icon']");
1175
- u && (L.href = u);
1176
+ ), j = h ? Y.cloneElement(h, {}, S) : /* @__PURE__ */ s.jsx(Tt, { children: S }), P = () => {
1177
+ const y = document.querySelector("link[rel='icon']");
1178
+ u && (y.href = u);
1176
1179
  };
1177
- return I(() => {
1180
+ return z(() => {
1178
1181
  P();
1179
- }, []), /* @__PURE__ */ s.jsx(ut, { children: /* @__PURE__ */ s.jsxs(Q, { element: m === "none" ? null : y, children: [
1180
- /* @__PURE__ */ s.jsxs(Q, { path: "/", children: [
1181
- /* @__PURE__ */ s.jsx(Q, { index: !0, element: /* @__PURE__ */ s.jsx(Tt, { Logo: i }) }),
1182
- o.map((L, N) => /* @__PURE__ */ s.jsx(Q, { path: L.path, element: L.element }, `public-${N}`))
1182
+ }, []), /* @__PURE__ */ s.jsx(it, { children: /* @__PURE__ */ s.jsxs(K, { element: m === "none" ? null : w, children: [
1183
+ /* @__PURE__ */ s.jsxs(K, { path: "/", children: [
1184
+ /* @__PURE__ */ s.jsx(K, { index: !0, element: /* @__PURE__ */ s.jsx(Rt, { Logo: i }) }),
1185
+ o.map((y, T) => /* @__PURE__ */ s.jsx(K, { path: y.path, element: y.element }, `public-${T}`))
1183
1186
  ] }),
1184
- /* @__PURE__ */ s.jsxs(Q, { element: w, children: [
1185
- /* @__PURE__ */ s.jsx(Q, { path: `${a ?? "/dashboard/"}:id`, element: f }),
1186
- n.map((L, N) => /* @__PURE__ */ s.jsx(Q, { path: L.path, element: L.element }, `private-${N}`))
1187
+ /* @__PURE__ */ s.jsxs(K, { element: j, children: [
1188
+ /* @__PURE__ */ s.jsx(K, { path: `${a ?? "/dashboard/"}:id`, element: d }),
1189
+ n.map((y, T) => /* @__PURE__ */ s.jsx(K, { path: y.path, element: y.element }, `private-${T}`))
1187
1190
  ] })
1188
1191
  ] }) });
1189
- }, qt = ({ children: t }) => {
1192
+ }, Zt = ({ children: t }) => {
1190
1193
  var i;
1191
- const o = qe(), { activeAlert: n } = ie(), a = JSON.parse(localStorage.getItem("user"));
1192
- return I(() => {
1194
+ const o = qe(), { activeAlert: n } = se(), a = JSON.parse(localStorage.getItem("user"));
1195
+ return z(() => {
1193
1196
  (!a || !a.admin) && n("warning", "Non puoi accedere a questa pagina");
1194
1197
  }, [a]), !a || !a.admin ? /* @__PURE__ */ s.jsx(He, { to: ((i = o.state) == null ? void 0 : i.from) || "/", replace: !0 }) : t;
1195
- }, Ht = ({ spinner: t = !0, spinnerStyle: o, text: n, textStyle: a, children: i, containerStyle: u, overrideStyle: f = {} }) => /* @__PURE__ */ s.jsxs("div", { className: f.container || `w-full h-full relative flex items-center justify-center ${u}`, children: [
1196
- t && /* @__PURE__ */ s.jsx(nt, { className: f.spinner || `text-[20rem] animate-spin text-black ${o}` }),
1197
- i || /* @__PURE__ */ s.jsx("p", { className: f.text || `text-black text-2xl select-none absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 ${a}`, children: n || "Loading..." })
1198
+ }, Ut = ({ spinner: t = !0, spinnerStyle: o, text: n, textStyle: a, children: i, containerStyle: u, overrideStyle: d = {} }) => /* @__PURE__ */ s.jsxs("div", { className: d.container || `w-full h-full relative flex items-center justify-center ${u}`, children: [
1199
+ t && /* @__PURE__ */ s.jsx(nt, { className: d.spinner || `text-[20rem] animate-spin text-black ${o}` }),
1200
+ i || /* @__PURE__ */ s.jsx("p", { className: d.text || `text-black text-2xl select-none absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 ${a}`, children: n || "Loading..." })
1198
1201
  ] });
1199
1202
  export {
1200
1203
  We as Alert,
1201
- Dt as AlertProvider,
1202
- qt as AuthAdmin,
1203
- Nt as AuthPage,
1204
- Wt as AuthProvider,
1205
- Xt as BrowserRouter,
1206
- Ft as ConfigProvider,
1207
- At as Dashboard,
1208
- _t as DefaultLayout,
1209
- gt as ErrorPage,
1204
+ $t as AlertProvider,
1205
+ Zt as AuthAdmin,
1206
+ Tt as AuthPage,
1207
+ Ft as AuthProvider,
1208
+ Jt as BrowserRouter,
1209
+ Bt as ConfigProvider,
1210
+ Nt as Dashboard,
1211
+ kt as DefaultLayout,
1212
+ dt as ErrorPage,
1210
1213
  Ye as Input,
1211
1214
  Ze as InputLabel,
1212
- Kt as Link,
1213
- Pt as Loading,
1214
- Ht as LoadingComponent,
1215
- $t as LoadingProvider,
1216
- Tt as Login,
1217
- Rt as LoginForm,
1218
- Zt as LoginFormProvider,
1219
- Qt as NavLink,
1220
- e0 as Outlet,
1221
- Ut as PackageRoutes,
1222
- t0 as Route,
1223
- Yt as RouteProvider,
1224
- r0 as Routes,
1225
- i0 as axios,
1226
- Ce as fetchAxiosConfig,
1227
- ie as useAlert,
1215
+ Vt as Link,
1216
+ St as Loading,
1217
+ Ut as LoadingComponent,
1218
+ Gt as LoadingProvider,
1219
+ Rt as Login,
1220
+ Pt as LoginForm,
1221
+ Wt as LoginFormProvider,
1222
+ Xt as NavLink,
1223
+ Kt as Outlet,
1224
+ Yt as PackageRoutes,
1225
+ Qt as Route,
1226
+ Dt as RouteProvider,
1227
+ er as Routes,
1228
+ ar as axios,
1229
+ jt as fetchAxiosConfig,
1230
+ se as useAlert,
1228
1231
  je as useAuth,
1229
- ee as useConfig,
1232
+ Q as useConfig,
1230
1233
  he as useLoading,
1231
- o0 as useLocation,
1234
+ tr as useLocation,
1232
1235
  ot as useLoginForm,
1233
- n0 as useMatch,
1234
- a0 as useNavigate,
1235
- Ot as useRoutesInjection
1236
+ rr as useMatch,
1237
+ or as useNavigate,
1238
+ Lt as useRoutesInjection
1236
1239
  };