thecore-auth 0.0.72 → 0.0.74

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 W, { createContext as ne, useState as v, useContext as ae, useEffect as z } from "react";
2
+ import F, { createContext as ae, useState as j, useContext as se, useEffect as z } from "react";
3
3
  import at from "jwt-decode";
4
- import { useNavigate as Ue, useLocation as st, matchPath as Ie, Outlet as Ce, Navigate as lt, useParams as it, Routes as ct, Route as J } from "react-router-dom";
4
+ import { useNavigate as Ue, useLocation as st, matchPath as ze, Outlet as Ce, Navigate as it, useParams as lt, Routes as ct, Route as Q } from "react-router-dom";
5
5
  import { BrowserRouter as Vt, Link as Xt, NavLink as Jt, Outlet as Kt, Route as Qt, Routes as e0, useLocation as t0, useMatch as r0 } from "react-router-dom";
6
6
  import ut from "axios";
7
- var me = { exports: {} }, ce = {};
7
+ var me = { exports: {} }, ue = {};
8
8
  /**
9
9
  * @license React
10
10
  * react-jsx-runtime.production.js
@@ -16,15 +16,15 @@ var me = { exports: {} }, ce = {};
16
16
  */
17
17
  var Ge;
18
18
  function ft() {
19
- if (Ge) return ce;
19
+ if (Ge) return ue;
20
20
  Ge = 1;
21
21
  var t = Symbol.for("react.transitional.element"), o = Symbol.for("react.fragment");
22
22
  function n(s, c, u) {
23
23
  var f = null;
24
24
  if (u !== void 0 && (f = "" + u), c.key !== void 0 && (f = "" + c.key), "key" in c) {
25
25
  u = {};
26
- for (var d in c)
27
- d !== "key" && (u[d] = c[d]);
26
+ for (var m in c)
27
+ m !== "key" && (u[m] = c[m]);
28
28
  } else u = c;
29
29
  return c = u.ref, {
30
30
  $$typeof: t,
@@ -34,9 +34,9 @@ function ft() {
34
34
  props: u
35
35
  };
36
36
  }
37
- return ce.Fragment = o, ce.jsx = n, ce.jsxs = n, ce;
37
+ return ue.Fragment = o, ue.jsx = n, ue.jsxs = n, ue;
38
38
  }
39
- var ue = {};
39
+ var fe = {};
40
40
  /**
41
41
  * @license React
42
42
  * react-jsx-runtime.development.js
@@ -46,45 +46,45 @@ var ue = {};
46
46
  * This source code is licensed under the MIT license found in the
47
47
  * LICENSE file in the root directory of this source tree.
48
48
  */
49
- var $e;
49
+ var Be;
50
50
  function dt() {
51
- return $e || ($e = 1, process.env.NODE_ENV !== "production" && function() {
51
+ return Be || (Be = 1, process.env.NODE_ENV !== "production" && function() {
52
52
  function t(e) {
53
53
  if (e == null) return null;
54
54
  if (typeof e == "function")
55
- return e.$$typeof === te ? null : e.displayName || e.name || null;
55
+ return e.$$typeof === M ? null : e.displayName || e.name || null;
56
56
  if (typeof e == "string") return e;
57
57
  switch (e) {
58
- case G:
58
+ case D:
59
59
  return "Fragment";
60
- case I:
60
+ case T:
61
61
  return "Portal";
62
- case Q:
62
+ case W:
63
63
  return "Profiler";
64
- case H:
64
+ case te:
65
65
  return "StrictMode";
66
66
  case V:
67
67
  return "Suspense";
68
- case $:
68
+ case G:
69
69
  return "SuspenseList";
70
70
  }
71
71
  if (typeof e == "object")
72
72
  switch (typeof e.tag == "number" && console.error(
73
73
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
74
74
  ), e.$$typeof) {
75
- case q:
75
+ case H:
76
76
  return (e.displayName || "Context") + ".Provider";
77
- case Y:
77
+ case q:
78
78
  return (e._context.displayName || "Context") + ".Consumer";
79
- case ee:
80
- var l = e.render;
81
- return e = e.displayName, e || (e = l.displayName || l.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
82
- case x:
83
- return l = e.displayName || null, l !== null ? l : t(e.type) || "Memo";
84
- case k:
85
- l = e._payload, e = e._init;
79
+ case Y:
80
+ var i = e.render;
81
+ return e = e.displayName, e || (e = i.displayName || i.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
82
+ case X:
83
+ return i = e.displayName || null, i !== null ? i : t(e.type) || "Memo";
84
+ case R:
85
+ i = e._payload, e = e._init;
86
86
  try {
87
- return t(e(l));
87
+ return t(e(i));
88
88
  } catch {
89
89
  }
90
90
  }
@@ -96,17 +96,17 @@ function dt() {
96
96
  function n(e) {
97
97
  try {
98
98
  o(e);
99
- var l = !1;
99
+ var i = !1;
100
100
  } catch {
101
- l = !0;
101
+ i = !0;
102
102
  }
103
- if (l) {
104
- l = console;
105
- var i = l.error, h = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
106
- return i.call(
107
- l,
103
+ if (i) {
104
+ i = console;
105
+ var l = i.error, E = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
106
+ return l.call(
107
+ i,
108
108
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
109
- h
109
+ E
110
110
  ), o(e);
111
111
  }
112
112
  }
@@ -114,7 +114,7 @@ function dt() {
114
114
  }
115
115
  function c() {
116
116
  if (le === 0) {
117
- Le = console.log, Se = console.info, Oe = console.warn, ke = console.error, Pe = console.group, Re = console.groupCollapsed, Te = console.groupEnd;
117
+ Le = console.log, Se = console.info, Oe = console.warn, Pe = console.error, ke = console.group, Re = console.groupCollapsed, Te = console.groupEnd;
118
118
  var e = {
119
119
  configurable: !0,
120
120
  enumerable: !0,
@@ -137,13 +137,13 @@ function dt() {
137
137
  if (le--, le === 0) {
138
138
  var e = { configurable: !0, enumerable: !0, writable: !0 };
139
139
  Object.defineProperties(console, {
140
- log: Z({}, e, { value: Le }),
141
- info: Z({}, e, { value: Se }),
142
- warn: Z({}, e, { value: Oe }),
143
- error: Z({}, e, { value: ke }),
144
- group: Z({}, e, { value: Pe }),
145
- groupCollapsed: Z({}, e, { value: Re }),
146
- groupEnd: Z({}, e, { value: Te })
140
+ log: J({}, e, { value: Le }),
141
+ info: J({}, e, { value: Se }),
142
+ warn: J({}, e, { value: Oe }),
143
+ error: J({}, e, { value: Pe }),
144
+ group: J({}, e, { value: ke }),
145
+ groupCollapsed: J({}, e, { value: Re }),
146
+ groupEnd: J({}, e, { value: Te })
147
147
  });
148
148
  }
149
149
  0 > le && console.error(
@@ -154,26 +154,26 @@ function dt() {
154
154
  if (Ee === void 0)
155
155
  try {
156
156
  throw Error();
157
- } catch (i) {
158
- var l = i.stack.trim().match(/\n( *(at )?)/);
159
- Ee = l && l[1] || "", _e = -1 < i.stack.indexOf(`
160
- at`) ? " (<anonymous>)" : -1 < i.stack.indexOf("@") ? "@unknown:0:0" : "";
157
+ } catch (l) {
158
+ var i = l.stack.trim().match(/\n( *(at )?)/);
159
+ Ee = i && i[1] || "", _e = -1 < l.stack.indexOf(`
160
+ at`) ? " (<anonymous>)" : -1 < l.stack.indexOf("@") ? "@unknown:0:0" : "";
161
161
  }
162
162
  return `
163
163
  ` + Ee + e + _e;
164
164
  }
165
- function d(e, l) {
165
+ function m(e, i) {
166
166
  if (!e || be) return "";
167
- var i = ye.get(e);
168
- if (i !== void 0) return i;
169
- be = !0, i = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
170
- var h = null;
171
- h = A.H, A.H = null, c();
167
+ var l = ye.get(e);
168
+ if (l !== void 0) return l;
169
+ be = !0, l = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
170
+ var E = null;
171
+ E = I.H, I.H = null, c();
172
172
  try {
173
- var P = {
173
+ var _ = {
174
174
  DetermineComponentFrameRoot: function() {
175
175
  try {
176
- if (l) {
176
+ if (i) {
177
177
  var U = function() {
178
178
  throw Error();
179
179
  };
@@ -184,151 +184,151 @@ function dt() {
184
184
  }), typeof Reflect == "object" && Reflect.construct) {
185
185
  try {
186
186
  Reflect.construct(U, []);
187
- } catch (D) {
188
- var de = D;
187
+ } catch ($) {
188
+ var de = $;
189
189
  }
190
190
  Reflect.construct(e, [], U);
191
191
  } else {
192
192
  try {
193
193
  U.call();
194
- } catch (D) {
195
- de = D;
194
+ } catch ($) {
195
+ de = $;
196
196
  }
197
197
  e.call(U.prototype);
198
198
  }
199
199
  } else {
200
200
  try {
201
201
  throw Error();
202
- } catch (D) {
203
- de = D;
202
+ } catch ($) {
203
+ de = $;
204
204
  }
205
205
  (U = e()) && typeof U.catch == "function" && U.catch(function() {
206
206
  });
207
207
  }
208
- } catch (D) {
209
- if (D && de && typeof D.stack == "string")
210
- return [D.stack, de.stack];
208
+ } catch ($) {
209
+ if ($ && de && typeof $.stack == "string")
210
+ return [$.stack, de.stack];
211
211
  }
212
212
  return [null, null];
213
213
  }
214
214
  };
215
- P.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
216
- var w = Object.getOwnPropertyDescriptor(
217
- P.DetermineComponentFrameRoot,
215
+ _.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
216
+ var S = Object.getOwnPropertyDescriptor(
217
+ _.DetermineComponentFrameRoot,
218
218
  "name"
219
219
  );
220
- w && w.configurable && Object.defineProperty(
221
- P.DetermineComponentFrameRoot,
220
+ S && S.configurable && Object.defineProperty(
221
+ _.DetermineComponentFrameRoot,
222
222
  "name",
223
223
  { value: "DetermineComponentFrameRoot" }
224
224
  );
225
- var m = P.DetermineComponentFrameRoot(), F = m[0], re = m[1];
226
- if (F && re) {
227
- var R = F.split(`
228
- `), X = re.split(`
225
+ var h = _.DetermineComponentFrameRoot(), B = h[0], oe = h[1];
226
+ if (B && oe) {
227
+ var N = B.split(`
228
+ `), K = oe.split(`
229
229
  `);
230
- for (m = w = 0; w < R.length && !R[w].includes(
230
+ for (h = S = 0; S < N.length && !N[S].includes(
231
231
  "DetermineComponentFrameRoot"
232
232
  ); )
233
- w++;
234
- for (; m < X.length && !X[m].includes(
233
+ S++;
234
+ for (; h < K.length && !K[h].includes(
235
235
  "DetermineComponentFrameRoot"
236
236
  ); )
237
- m++;
238
- if (w === R.length || m === X.length)
239
- for (w = R.length - 1, m = X.length - 1; 1 <= w && 0 <= m && R[w] !== X[m]; )
240
- m--;
241
- for (; 1 <= w && 0 <= m; w--, m--)
242
- if (R[w] !== X[m]) {
243
- if (w !== 1 || m !== 1)
237
+ h++;
238
+ if (S === N.length || h === K.length)
239
+ for (S = N.length - 1, h = K.length - 1; 1 <= S && 0 <= h && N[S] !== K[h]; )
240
+ h--;
241
+ for (; 1 <= S && 0 <= h; S--, h--)
242
+ if (N[S] !== K[h]) {
243
+ if (S !== 1 || h !== 1)
244
244
  do
245
- if (w--, m--, 0 > m || R[w] !== X[m]) {
246
- var ie = `
247
- ` + R[w].replace(
245
+ if (S--, h--, 0 > h || N[S] !== K[h]) {
246
+ var ce = `
247
+ ` + N[S].replace(
248
248
  " at new ",
249
249
  " at "
250
250
  );
251
- return e.displayName && ie.includes("<anonymous>") && (ie = ie.replace("<anonymous>", e.displayName)), typeof e == "function" && ye.set(e, ie), ie;
251
+ return e.displayName && ce.includes("<anonymous>") && (ce = ce.replace("<anonymous>", e.displayName)), typeof e == "function" && ye.set(e, ce), ce;
252
252
  }
253
- while (1 <= w && 0 <= m);
253
+ while (1 <= S && 0 <= h);
254
254
  break;
255
255
  }
256
256
  }
257
257
  } finally {
258
- be = !1, A.H = h, u(), Error.prepareStackTrace = i;
258
+ be = !1, I.H = E, u(), Error.prepareStackTrace = l;
259
259
  }
260
- return R = (R = e ? e.displayName || e.name : "") ? f(R) : "", typeof e == "function" && ye.set(e, R), R;
260
+ return N = (N = e ? e.displayName || e.name : "") ? f(N) : "", typeof e == "function" && ye.set(e, N), N;
261
261
  }
262
- function p(e) {
262
+ function d(e) {
263
263
  if (e == null) return "";
264
264
  if (typeof e == "function") {
265
- var l = e.prototype;
266
- return d(
265
+ var i = e.prototype;
266
+ return m(
267
267
  e,
268
- !(!l || !l.isReactComponent)
268
+ !(!i || !i.isReactComponent)
269
269
  );
270
270
  }
271
271
  if (typeof e == "string") return f(e);
272
272
  switch (e) {
273
273
  case V:
274
274
  return f("Suspense");
275
- case $:
275
+ case G:
276
276
  return f("SuspenseList");
277
277
  }
278
278
  if (typeof e == "object")
279
279
  switch (e.$$typeof) {
280
- case ee:
281
- return e = d(e.render, !1), e;
282
- case x:
283
- return p(e.type);
284
- case k:
285
- l = e._payload, e = e._init;
280
+ case Y:
281
+ return e = m(e.render, !1), e;
282
+ case X:
283
+ return d(e.type);
284
+ case R:
285
+ i = e._payload, e = e._init;
286
286
  try {
287
- return p(e(l));
287
+ return d(e(i));
288
288
  } catch {
289
289
  }
290
290
  }
291
291
  return "";
292
292
  }
293
- function b() {
294
- var e = A.A;
293
+ function C() {
294
+ var e = I.A;
295
295
  return e === null ? null : e.getOwner();
296
296
  }
297
- function g(e) {
298
- if (fe.call(e, "key")) {
299
- var l = Object.getOwnPropertyDescriptor(e, "key").get;
300
- if (l && l.isReactWarning) return !1;
297
+ function y(e) {
298
+ if (re.call(e, "key")) {
299
+ var i = Object.getOwnPropertyDescriptor(e, "key").get;
300
+ if (i && i.isReactWarning) return !1;
301
301
  }
302
302
  return e.key !== void 0;
303
303
  }
304
- function S(e, l) {
305
- function i() {
304
+ function O(e, i) {
305
+ function l() {
306
306
  Ne || (Ne = !0, console.error(
307
307
  "%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)",
308
- l
308
+ i
309
309
  ));
310
310
  }
311
- i.isReactWarning = !0, Object.defineProperty(e, "key", {
312
- get: i,
311
+ l.isReactWarning = !0, Object.defineProperty(e, "key", {
312
+ get: l,
313
313
  configurable: !0
314
314
  });
315
315
  }
316
- function O() {
316
+ function P() {
317
317
  var e = t(this.type);
318
318
  return Ae[e] || (Ae[e] = !0, console.error(
319
319
  "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."
320
320
  )), e = this.props.ref, e !== void 0 ? e : null;
321
321
  }
322
- function T(e, l, i, h, P, w) {
323
- return i = w.ref, e = {
324
- $$typeof: C,
322
+ function g(e, i, l, E, _, S) {
323
+ return l = S.ref, e = {
324
+ $$typeof: w,
325
325
  type: e,
326
- key: l,
327
- props: w,
328
- _owner: P
329
- }, (i !== void 0 ? i : null) !== null ? Object.defineProperty(e, "ref", {
326
+ key: i,
327
+ props: S,
328
+ _owner: _
329
+ }, (l !== void 0 ? l : null) !== null ? Object.defineProperty(e, "ref", {
330
330
  enumerable: !1,
331
- get: O
331
+ get: P
332
332
  }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
333
333
  configurable: !1,
334
334
  enumerable: !1,
@@ -341,122 +341,122 @@ function dt() {
341
341
  value: null
342
342
  }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
343
343
  }
344
- function L(e, l, i, h, P, w) {
345
- if (typeof e == "string" || typeof e == "function" || e === G || e === Q || e === H || e === V || e === $ || e === B || typeof e == "object" && e !== null && (e.$$typeof === k || e.$$typeof === x || e.$$typeof === q || e.$$typeof === Y || e.$$typeof === ee || e.$$typeof === ot || e.getModuleId !== void 0)) {
346
- var m = l.children;
347
- if (m !== void 0)
348
- if (h)
349
- if (ve(m)) {
350
- for (h = 0; h < m.length; h++)
351
- y(m[h], e);
352
- Object.freeze && Object.freeze(m);
344
+ function v(e, i, l, E, _, S) {
345
+ if (typeof e == "string" || typeof e == "function" || e === D || e === W || e === te || e === V || e === G || e === A || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === X || e.$$typeof === H || e.$$typeof === q || e.$$typeof === Y || e.$$typeof === ot || e.getModuleId !== void 0)) {
346
+ var h = i.children;
347
+ if (h !== void 0)
348
+ if (E)
349
+ if (ve(h)) {
350
+ for (E = 0; E < h.length; E++)
351
+ x(h[E], e);
352
+ Object.freeze && Object.freeze(h);
353
353
  } else
354
354
  console.error(
355
355
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
356
356
  );
357
- else y(m, e);
357
+ else x(h, e);
358
358
  } else
359
- m = "", (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (m += " 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 ? h = "null" : ve(e) ? h = "array" : e !== void 0 && e.$$typeof === C ? (h = "<" + (t(e.type) || "Unknown") + " />", m = " Did you accidentally export a JSX literal instead of a component?") : h = typeof e, console.error(
359
+ h = "", (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (h += " 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 ? E = "null" : ve(e) ? E = "array" : e !== void 0 && e.$$typeof === w ? (E = "<" + (t(e.type) || "Unknown") + " />", h = " Did you accidentally export a JSX literal instead of a component?") : E = typeof e, console.error(
360
360
  "React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
361
- h,
362
- m
361
+ E,
362
+ h
363
363
  );
364
- if (fe.call(l, "key")) {
365
- m = t(e);
366
- var F = Object.keys(l).filter(function(R) {
367
- return R !== "key";
364
+ if (re.call(i, "key")) {
365
+ h = t(e);
366
+ var B = Object.keys(i).filter(function(N) {
367
+ return N !== "key";
368
368
  });
369
- h = 0 < F.length ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}", Me[m + h] || (F = 0 < F.length ? "{" + F.join(": ..., ") + ": ...}" : "{}", console.error(
369
+ E = 0 < B.length ? "{key: someKey, " + B.join(": ..., ") + ": ...}" : "{key: someKey}", Me[h + E] || (B = 0 < B.length ? "{" + B.join(": ..., ") + ": ...}" : "{}", console.error(
370
370
  `A props object containing a "key" prop is being spread into JSX:
371
371
  let props = %s;
372
372
  <%s {...props} />
373
373
  React keys must be passed directly to JSX without using spread:
374
374
  let props = %s;
375
375
  <%s key={someKey} {...props} />`,
376
+ E,
376
377
  h,
377
- m,
378
- F,
379
- m
380
- ), Me[m + h] = !0);
378
+ B,
379
+ h
380
+ ), Me[h + E] = !0);
381
381
  }
382
- if (m = null, i !== void 0 && (n(i), m = "" + i), g(l) && (n(l.key), m = "" + l.key), "key" in l) {
383
- i = {};
384
- for (var re in l)
385
- re !== "key" && (i[re] = l[re]);
386
- } else i = l;
387
- return m && S(
388
- i,
382
+ if (h = null, l !== void 0 && (n(l), h = "" + l), y(i) && (n(i.key), h = "" + i.key), "key" in i) {
383
+ l = {};
384
+ for (var oe in i)
385
+ oe !== "key" && (l[oe] = i[oe]);
386
+ } else l = i;
387
+ return h && O(
388
+ l,
389
389
  typeof e == "function" ? e.displayName || e.name || "Unknown" : e
390
- ), T(e, m, w, P, b(), i);
390
+ ), g(e, h, S, _, C(), l);
391
391
  }
392
- function y(e, l) {
392
+ function x(e, i) {
393
393
  if (typeof e == "object" && e && e.$$typeof !== nt) {
394
394
  if (ve(e))
395
- for (var i = 0; i < e.length; i++) {
396
- var h = e[i];
397
- j(h) && E(h, l);
395
+ for (var l = 0; l < e.length; l++) {
396
+ var E = e[l];
397
+ L(E) && b(E, i);
398
398
  }
399
- else if (j(e))
399
+ else if (L(e))
400
400
  e._store && (e._store.validated = 1);
401
- else if (e === null || typeof e != "object" ? i = null : (i = _ && e[_] || e["@@iterator"], i = typeof i == "function" ? i : null), typeof i == "function" && i !== e.entries && (i = i.call(e), i !== e))
402
- for (; !(e = i.next()).done; )
403
- j(e.value) && E(e.value, l);
401
+ else if (e === null || typeof e != "object" ? l = null : (l = Z && e[Z] || e["@@iterator"], l = typeof l == "function" ? l : null), typeof l == "function" && l !== e.entries && (l = l.call(e), l !== e))
402
+ for (; !(e = l.next()).done; )
403
+ L(e.value) && b(e.value, i);
404
404
  }
405
405
  }
406
- function j(e) {
407
- return typeof e == "object" && e !== null && e.$$typeof === C;
406
+ function L(e) {
407
+ return typeof e == "object" && e !== null && e.$$typeof === w;
408
408
  }
409
- function E(e, l) {
410
- if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1, l = N(l), !ze[l])) {
411
- ze[l] = !0;
412
- var i = "";
413
- e && e._owner != null && e._owner !== b() && (i = null, typeof e._owner.tag == "number" ? i = t(e._owner.type) : typeof e._owner.name == "string" && (i = e._owner.name), i = " It was passed a child from " + i + ".");
414
- var h = A.getCurrentStack;
415
- A.getCurrentStack = function() {
416
- var P = p(e.type);
417
- return h && (P += h() || ""), P;
409
+ function b(e, i) {
410
+ if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1, i = p(i), !Ie[i])) {
411
+ Ie[i] = !0;
412
+ var l = "";
413
+ e && e._owner != null && e._owner !== C() && (l = null, typeof e._owner.tag == "number" ? l = t(e._owner.type) : typeof e._owner.name == "string" && (l = e._owner.name), l = " It was passed a child from " + l + ".");
414
+ var E = I.getCurrentStack;
415
+ I.getCurrentStack = function() {
416
+ var _ = d(e.type);
417
+ return E && (_ += E() || ""), _;
418
418
  }, console.error(
419
419
  'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
420
- l,
421
- i
422
- ), A.getCurrentStack = h;
420
+ i,
421
+ l
422
+ ), I.getCurrentStack = E;
423
423
  }
424
424
  }
425
- function N(e) {
426
- var l = "", i = b();
427
- return i && (i = t(i.type)) && (l = `
425
+ function p(e) {
426
+ var i = "", l = C();
427
+ return l && (l = t(l.type)) && (i = `
428
428
 
429
- Check the render method of \`` + i + "`."), l || (e = t(e)) && (l = `
429
+ Check the render method of \`` + l + "`."), i || (e = t(e)) && (i = `
430
430
 
431
- Check the top-level render call using <` + e + ">."), l;
431
+ Check the top-level render call using <` + e + ">."), i;
432
432
  }
433
- var M = W, C = Symbol.for("react.transitional.element"), I = Symbol.for("react.portal"), G = Symbol.for("react.fragment"), H = Symbol.for("react.strict_mode"), Q = Symbol.for("react.profiler"), Y = Symbol.for("react.consumer"), q = Symbol.for("react.context"), ee = Symbol.for("react.forward_ref"), V = Symbol.for("react.suspense"), $ = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), k = Symbol.for("react.lazy"), B = Symbol.for("react.offscreen"), _ = Symbol.iterator, te = Symbol.for("react.client.reference"), A = M.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, fe = Object.prototype.hasOwnProperty, Z = Object.assign, ot = Symbol.for("react.client.reference"), ve = Array.isArray, le = 0, Le, Se, Oe, ke, Pe, Re, Te;
433
+ var k = F, w = Symbol.for("react.transitional.element"), T = Symbol.for("react.portal"), D = Symbol.for("react.fragment"), te = Symbol.for("react.strict_mode"), W = Symbol.for("react.profiler"), q = Symbol.for("react.consumer"), H = Symbol.for("react.context"), Y = Symbol.for("react.forward_ref"), V = Symbol.for("react.suspense"), G = Symbol.for("react.suspense_list"), X = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), Z = Symbol.iterator, M = Symbol.for("react.client.reference"), I = k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, re = Object.prototype.hasOwnProperty, J = Object.assign, ot = Symbol.for("react.client.reference"), ve = Array.isArray, le = 0, Le, Se, Oe, Pe, ke, Re, Te;
434
434
  s.__reactDisabledLog = !0;
435
- var Ee, _e, be = !1, ye = new (typeof WeakMap == "function" ? WeakMap : Map)(), nt = Symbol.for("react.client.reference"), Ne, Ae = {}, Me = {}, ze = {};
436
- ue.Fragment = G, ue.jsx = function(e, l, i, h, P) {
437
- return L(e, l, i, !1, h, P);
438
- }, ue.jsxs = function(e, l, i, h, P) {
439
- return L(e, l, i, !0, h, P);
435
+ var Ee, _e, be = !1, ye = new (typeof WeakMap == "function" ? WeakMap : Map)(), nt = Symbol.for("react.client.reference"), Ne, Ae = {}, Me = {}, Ie = {};
436
+ fe.Fragment = D, fe.jsx = function(e, i, l, E, _) {
437
+ return v(e, i, l, !1, E, _);
438
+ }, fe.jsxs = function(e, i, l, E, _) {
439
+ return v(e, i, l, !0, E, _);
440
440
  };
441
- }()), ue;
441
+ }()), fe;
442
442
  }
443
- var Be;
443
+ var $e;
444
444
  function mt() {
445
- return Be || (Be = 1, process.env.NODE_ENV === "production" ? me.exports = ft() : me.exports = dt()), me.exports;
445
+ return $e || ($e = 1, process.env.NODE_ENV === "production" ? me.exports = ft() : me.exports = dt()), me.exports;
446
446
  }
447
447
  var a = mt();
448
- const He = ne(), $t = ({ children: t }) => {
449
- const [o, n] = v(!1), [s, c] = v(!1), [u, f] = v({});
450
- return /* @__PURE__ */ a.jsx(He.Provider, { value: { isLoading: o, setIsLoading: n, isLoadingComponent: s, setIsLoadingComponent: c, loadingProps: u, setLoadingProps: f }, children: t });
448
+ const qe = ae(), Bt = ({ children: t }) => {
449
+ const [o, n] = j(!1), [s, c] = j(!1), [u, f] = j({});
450
+ return /* @__PURE__ */ a.jsx(qe.Provider, { value: { isLoading: o, setIsLoading: n, isLoadingComponent: s, setIsLoadingComponent: c, loadingProps: u, setLoadingProps: f }, children: t });
451
451
  }, xe = () => {
452
- const t = ae(He);
452
+ const t = se(qe);
453
453
  if (t === void 0) throw new Error("Non puoi settare il loading");
454
454
  return t;
455
455
  }, pt = ({ errorMessage: t, errorShow: o }) => /* @__PURE__ */ a.jsx("section", { className: o ? "" : "hidden", children: /* @__PURE__ */ a.jsxs("div", { className: "container mx-auto", children: [
456
456
  /* @__PURE__ */ a.jsx("h1", { className: "text-center text-8xl my-12", children: "Errore" }),
457
457
  /* @__PURE__ */ a.jsx("pre", { className: "text-xl", children: t })
458
- ] }) }), qe = ne(), Bt = ({ children: t }) => {
459
- const [o, n] = v({}), [s, c] = v(!1), u = `Creare un file config.json in public per il corretto funzionamento
458
+ ] }) }), He = ae(), $t = ({ children: t }) => {
459
+ const [o, n] = j({}), [s, c] = j(!1), u = `Creare un file config.json in public per il corretto funzionamento
460
460
  Esempio di config.json:
461
461
 
462
462
  {
@@ -478,211 +478,77 @@ Esempio di config.json:
478
478
  "autoLogin": ,
479
479
  "autoLoginEmail": ,
480
480
  "autoLoginPassword":
481
- }`, f = async () => {
482
- try {
483
- const p = await (await fetch("/config.json")).json();
484
- n(p);
485
- } catch (d) {
486
- console.error(d), c(!0);
487
- }
488
- };
489
- return z(() => {
490
- f();
491
- }, []), Object.keys(o).length === 0 ? /* @__PURE__ */ a.jsx(pt, { errorShow: s, errorMessage: u }) : /* @__PURE__ */ a.jsx(qe.Provider, { value: o, children: t });
492
- }, K = () => {
493
- const t = ae(qe);
494
- if (t === void 0) throw new Error("Non puoi leggere i config");
495
- return t;
496
- }, Ve = ne(), Ft = ({ children: t }) => {
497
- const [o, n] = v(!1), [s, c] = v(), [u, f] = v(), d = {
498
- showAlert: o,
499
- setShowAlert: n,
500
- typeAlert: s,
501
- setTypeAlert: c,
502
- messageAlert: u,
503
- setMessageAlert: f
504
- };
505
- return /* @__PURE__ */ a.jsx(Ve.Provider, { value: d, children: t });
506
- }, se = () => {
507
- const t = ae(Ve);
508
- if (t === void 0) throw new Error("Non puoi modificare l'alert");
509
- return t;
510
- };
511
- let oe;
512
- const pe = async (t, o, n) => {
513
- if (oe) return oe;
514
- try {
515
- const c = await (await fetch("/config.json")).json(), u = c.baseUri, { unauthorized: f, notFound: d, defaultMessage: p } = c.axiosErrors, b = c.axiosTimeout;
516
- return oe = ut.create({
517
- baseURL: u,
518
- timeout: b
519
- }), oe.interceptors.request.use(
520
- (g) => g
521
- ), oe.interceptors.response.use(
522
- (g) => g,
523
- (g) => {
524
- if (g.response)
525
- switch (t(!0), o("danger"), g.response.status) {
526
- case 401:
527
- localStorage.removeItem("accessToken"), n(f);
528
- break;
529
- case 404:
530
- n(d);
531
- break;
532
- default:
533
- n(`${p} ${g.response.status} ${g.response.data.error}`);
534
- }
535
- return Promise.reject(g);
481
+ }`, f = () => {
482
+ const g = /* @__PURE__ */ new Date(), v = String(g.getDate()).padStart(2, "0"), x = String(g.getMonth() + 1).padStart(2, "0"), L = g.getFullYear(), b = String(g.getHours()).padStart(2, "0"), p = String(g.getMinutes()).padStart(2, "0"), k = String(g.getSeconds()).padStart(2, "0");
483
+ return `${v}/${x}/${L} ${b}:${p}:${k}`;
484
+ }, m = (g) => new Promise((v, x) => {
485
+ const L = indexedDB.open("configDatabase", 1);
486
+ L.onupgradeneeded = (b) => {
487
+ const p = b.target.result;
488
+ p.objectStoreNames.contains(g) || p.createObjectStore(g, { keyPath: "id" });
489
+ }, L.onsuccess = (b) => v(b.target.result), L.onerror = (b) => x(b.target.error);
490
+ }), d = async (g, v) => {
491
+ let x = await m();
492
+ return new Promise((L, b) => {
493
+ if (!x) {
494
+ b("Errore: DB non disponibile");
495
+ return;
536
496
  }
537
- ), oe;
538
- } catch (s) {
539
- console.error(s);
540
- }
541
- }, Xe = ne(), Dt = ({ children: t }) => {
542
- const { heartbeatEndpoint: o, firstPrivatePath: n, infiniteSession: s, timeDeducted: c, authenticatedEndpoint: u, autoLogin: f, autoLoginEmail: d, autoLoginPassword: p } = K(), { setIsLoading: b } = xe(), { setShowAlert: g, setMessageAlert: S, setTypeAlert: O } = se(), T = Ue(), [L, y] = v(null), [j, E] = v(), [N, M] = v(), [C, I] = v(), [G, H] = v(!1), Q = () => {
543
- const x = /* @__PURE__ */ new Date(), k = String(x.getDate()).padStart(2, "0"), B = String(x.getMonth() + 1).padStart(2, "0"), _ = x.getFullYear(), te = String(x.getHours()).padStart(2, "0"), A = String(x.getMinutes()).padStart(2, "0"), fe = String(x.getSeconds()).padStart(2, "0");
544
- return `${k}/${B}/${_} ${te}:${A}:${fe}`;
545
- }, Y = async (x = null, k) => {
546
- x && x.preventDefault(), H(!0);
547
- try {
548
- b(!0), g(!1);
549
- const _ = await (await pe(g, O, S)).post(u, {
550
- auth: k
551
- }), te = _.data.id, A = _.headers.token;
552
- A && (localStorage.setItem("accessToken", A), localStorage.setItem("id", te), y(!0), E(A), T(`${n}${te}`));
553
- } catch (B) {
554
- console.error(B);
555
- } finally {
556
- H(!1), b(!1);
557
- }
558
- }, q = () => {
559
- localStorage.removeItem("accessToken"), localStorage.removeItem("id"), y(!1), E(null);
560
- }, ee = async () => {
561
- try {
562
- const x = localStorage.getItem("accessToken"), _ = (await (await pe(g, O, S)).get(
563
- `${o}`,
564
- { headers: {
565
- Authorization: x
566
- } }
567
- )).headers.token;
568
- localStorage.setItem("accessToken", _), E(_), console.log("nuovo token: ", _, "Data:", Q());
569
- } catch (x) {
570
- console.error(x), q();
571
- }
572
- }, V = () => {
573
- if (!j)
574
- return;
575
- const k = at(j).exp, B = Math.floor(Date.now() / 1e3), _ = (k - B) * 1e3;
576
- I(_), M(_ - c);
577
- };
578
- z(() => {
579
- if (localStorage.getItem("accessToken"))
580
- y(!0);
581
- else {
582
- y(!1);
583
- return;
584
- }
585
- }, []), z(() => {
586
- const x = localStorage.getItem("accessToken");
587
- f && !x && !G && Y(null, {
588
- email: d,
589
- password: p
497
+ const p = x == null ? void 0 : x.transaction(g, "readonly"), k = p == null ? void 0 : p.objectStore(g), w = k == null ? void 0 : k.get(v);
498
+ w.onsuccess = () => L(w.result), w.onerror = (T) => b(T.target.error);
590
499
  });
591
- }, [f, G]), z(() => {
592
- V();
593
- let x;
594
- s && j && N && (x = setInterval(() => {
595
- ee();
596
- }, N));
597
- let k;
598
- return !s && j && C && (k = setTimeout(() => {
599
- q(), g(!0), O("danger"), S("Sessione scaduta");
600
- }, C)), () => {
601
- x && clearInterval(x), k && clearTimeout(k);
602
- };
603
- }, [j, N]), z(() => {
604
- L || f && !G && Y(null, {
605
- email: d,
606
- password: p
500
+ }, C = async (g, v) => {
501
+ let x = await m();
502
+ return new Promise((L, b) => {
503
+ if (!x) {
504
+ b("Errore: DB non disponibile");
505
+ return;
506
+ }
507
+ const p = x == null ? void 0 : x.transaction(g, "readwrite"), k = p == null ? void 0 : p.objectStore(g), w = k == null ? void 0 : k.put(v);
508
+ w.onsuccess = () => L(w.result), w.onerror = (T) => b(T.target.error);
607
509
  });
608
- }, [L]);
609
- const $ = {
610
- isAuthenticated: L,
611
- setIsAuthenticated: y,
612
- login: Y,
613
- logout: q,
614
- setCurrentToken: E
615
- };
616
- return /* @__PURE__ */ a.jsx(Xe.Provider, { value: $, children: t });
617
- }, we = () => {
618
- const t = ae(Xe);
619
- if (t === void 0) throw new Error("Non sei dentro al Auth Provider");
620
- return t;
621
- }, Je = ne(), Wt = ({ children: t, publicRoutes: o = [], privateRoutes: n = [] }) => /* @__PURE__ */ a.jsx(Je.Provider, { value: { publicRoutes: o, privateRoutes: n }, children: t }), gt = () => {
622
- const t = ae(Je);
623
- if (t === void 0)
624
- throw new Error(
625
- `Errore: Le rotte non sono state inizializzate correttamente.
626
-
627
- Soluzione: Assicurati di avvolgere il tuo componente con <RouteProvider>.
628
-
629
- Esempio:
630
-
631
- <RouteProvider publicRoutes={[]} privateRoutes={[]}>
632
- <MyPackageRoutes />
633
- </RouteProvider>`
634
- );
635
- return t;
636
- }, Ke = ne(), Yt = ({ children: t }) => {
637
- const { login: o } = we(), { clearLoginFormOnError: n } = K(), s = {
638
- email: "",
639
- password: ""
640
- }, [c, u] = v("Accedi"), [f, d] = v("Email"), [p, b] = v("email"), [g, S] = v("example@example.it"), [O, T] = v("Accedi"), [L, y] = v(s), [j, E] = v(), [N, M] = v(), [C, I] = v(), [G, H] = v(), [Q, Y] = v({}), V = {
641
- overrideStyle: Q,
642
- setOverrideStyle: Y,
643
- title: c,
644
- setTitle: u,
645
- label: f,
646
- setLabel: d,
647
- type: p,
648
- setType: b,
649
- placeholder: g,
650
- setPlaceholder: S,
651
- buttonText: O,
652
- setButtonText: T,
653
- formData: L,
654
- setFormData: y,
655
- LogoImg: j,
656
- setLogoImg: E,
657
- styleCardForm: N,
658
- setStyleCardForm: M,
659
- styleContainerLogo: C,
660
- setStyleContainerLogo: I,
661
- styleLogo: G,
662
- setStyleLogo: H,
663
- changeData: ($, x) => {
664
- y((k) => ({ ...k, [$]: x }));
665
- },
666
- handleLogin: ($) => {
667
- o($, L), n && y(s);
510
+ }, y = async (g) => {
511
+ let v = Date.now(), x;
512
+ do
513
+ x = await d(g, v), x && v++;
514
+ while (x);
515
+ return v;
516
+ }, O = async (g, v) => {
517
+ v.id || (v.id = await y(g)), await C(g, v);
518
+ }, P = async () => {
519
+ try {
520
+ const x = {
521
+ ...await (await fetch("/config.json")).json(),
522
+ openIndexedDB: m,
523
+ getDataIndexedDB: d,
524
+ setDataIndexedDB: C,
525
+ generateUniqueId: y,
526
+ setDataWithAutoId: O,
527
+ setCurrentDate: f
528
+ };
529
+ n(x);
530
+ } catch (g) {
531
+ console.error(g), c(!0);
668
532
  }
669
533
  };
670
- return /* @__PURE__ */ a.jsx(Ke.Provider, { value: V, children: t });
671
- }, Qe = () => {
672
- const t = ae(Ke);
673
- if (t === void 0) throw new Error("Non puoi modificare La login");
534
+ return z(() => {
535
+ P();
536
+ }, []), Object.keys(o).length === 0 ? /* @__PURE__ */ a.jsx(pt, { errorShow: s, errorMessage: u }) : /* @__PURE__ */ a.jsx(He.Provider, { value: o, children: t });
537
+ }, ee = () => {
538
+ const t = se(He);
539
+ if (t === void 0) throw new Error("Non puoi leggere i config");
674
540
  return t;
675
- };
676
- var et = {
541
+ }, 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: "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 " }))))), 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: "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 " }))))), 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: "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 " })))));
542
+ var Ve = {
677
543
  color: void 0,
678
544
  size: void 0,
679
545
  className: void 0,
680
546
  style: void 0,
681
547
  attr: void 0
682
- }, Fe = W.createContext && /* @__PURE__ */ W.createContext(et), ht = ["attr", "size", "title"];
683
- function xt(t, o) {
548
+ }, Fe = F.createContext && /* @__PURE__ */ F.createContext(Ve), vt = ["attr", "size", "title"];
549
+ function Et(t, o) {
684
550
  if (t == null) return {};
685
- var n = vt(t, o), s, c;
551
+ var n = bt(t, o), s, c;
686
552
  if (Object.getOwnPropertySymbols) {
687
553
  var u = Object.getOwnPropertySymbols(t);
688
554
  for (c = 0; c < u.length; c++)
@@ -690,7 +556,7 @@ function xt(t, o) {
690
556
  }
691
557
  return n;
692
558
  }
693
- function vt(t, o) {
559
+ function bt(t, o) {
694
560
  if (t == null) return {};
695
561
  var n = {};
696
562
  for (var s in t)
@@ -700,15 +566,15 @@ function vt(t, o) {
700
566
  }
701
567
  return n;
702
568
  }
703
- function ge() {
704
- return ge = Object.assign ? Object.assign.bind() : function(t) {
569
+ function pe() {
570
+ return pe = Object.assign ? Object.assign.bind() : function(t) {
705
571
  for (var o = 1; o < arguments.length; o++) {
706
572
  var n = arguments[o];
707
573
  for (var s in n)
708
574
  Object.prototype.hasOwnProperty.call(n, s) && (t[s] = n[s]);
709
575
  }
710
576
  return t;
711
- }, ge.apply(this, arguments);
577
+ }, pe.apply(this, arguments);
712
578
  }
713
579
  function De(t, o) {
714
580
  var n = Object.keys(t);
@@ -720,25 +586,25 @@ function De(t, o) {
720
586
  }
721
587
  return n;
722
588
  }
723
- function he(t) {
589
+ function ge(t) {
724
590
  for (var o = 1; o < arguments.length; o++) {
725
591
  var n = arguments[o] != null ? arguments[o] : {};
726
592
  o % 2 ? De(Object(n), !0).forEach(function(s) {
727
- Et(t, s, n[s]);
593
+ yt(t, s, n[s]);
728
594
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : De(Object(n)).forEach(function(s) {
729
595
  Object.defineProperty(t, s, Object.getOwnPropertyDescriptor(n, s));
730
596
  });
731
597
  }
732
598
  return t;
733
599
  }
734
- function Et(t, o, n) {
735
- return o = bt(o), o in t ? Object.defineProperty(t, o, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[o] = n, t;
600
+ function yt(t, o, n) {
601
+ return o = Ct(o), o in t ? Object.defineProperty(t, o, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[o] = n, t;
736
602
  }
737
- function bt(t) {
738
- var o = yt(t, "string");
603
+ function Ct(t) {
604
+ var o = wt(t, "string");
739
605
  return typeof o == "symbol" ? o : o + "";
740
606
  }
741
- function yt(t, o) {
607
+ function wt(t, o) {
742
608
  if (typeof t != "object" || !t) return t;
743
609
  var n = t[Symbol.toPrimitive];
744
610
  if (n !== void 0) {
@@ -748,153 +614,338 @@ function yt(t, o) {
748
614
  }
749
615
  return (o === "string" ? String : Number)(t);
750
616
  }
751
- function tt(t) {
752
- return t && t.map((o, n) => /* @__PURE__ */ W.createElement(o.tag, he({
617
+ function Xe(t) {
618
+ return t && t.map((o, n) => /* @__PURE__ */ F.createElement(o.tag, ge({
753
619
  key: n
754
- }, o.attr), tt(o.child)));
620
+ }, o.attr), Xe(o.child)));
755
621
  }
756
- function je(t) {
757
- return (o) => /* @__PURE__ */ W.createElement(Ct, ge({
758
- attr: he({}, t.attr)
759
- }, o), tt(t.child));
622
+ function we(t) {
623
+ return (o) => /* @__PURE__ */ F.createElement(jt, pe({
624
+ attr: ge({}, t.attr)
625
+ }, o), Xe(t.child));
760
626
  }
761
- function Ct(t) {
627
+ function jt(t) {
762
628
  var o = (n) => {
763
629
  var {
764
630
  attr: s,
765
631
  size: c,
766
632
  title: u
767
- } = t, f = xt(t, ht), d = c || n.size || "1em", p;
768
- return n.className && (p = n.className), t.className && (p = (p ? p + " " : "") + t.className), /* @__PURE__ */ W.createElement("svg", ge({
633
+ } = t, f = Et(t, vt), m = c || n.size || "1em", d;
634
+ return n.className && (d = n.className), t.className && (d = (d ? d + " " : "") + t.className), /* @__PURE__ */ F.createElement("svg", pe({
769
635
  stroke: "currentColor",
770
636
  fill: "currentColor",
771
637
  strokeWidth: "0"
772
638
  }, n.attr, s, f, {
773
- className: p,
774
- style: he(he({
639
+ className: d,
640
+ style: ge(ge({
775
641
  color: t.color || n.color
776
642
  }, n.style), t.style),
777
- height: d,
778
- width: d,
643
+ height: m,
644
+ width: m,
779
645
  xmlns: "http://www.w3.org/2000/svg"
780
- }), u && /* @__PURE__ */ W.createElement("title", null, u), t.children);
646
+ }), u && /* @__PURE__ */ F.createElement("title", null, u), t.children);
781
647
  };
782
- return Fe !== void 0 ? /* @__PURE__ */ W.createElement(Fe.Consumer, null, (n) => o(n)) : o(et);
783
- }
784
- function rt(t) {
785
- return je({ 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);
786
- }
787
- const wt = () => {
788
- const { loadingProps: t } = xe(), { spinner: o = !0, spinnerStyle: n, text: s, textStyle: c, children: u, containerStyle: f, overrideStyle: d = {} } = t;
789
- return /* @__PURE__ */ a.jsxs("div", { className: d.container || `fixed top-0 bottom-0 left-0 right-0 flex items-center justify-center bg-loading-bg z-[999] ${f}`, children: [
790
- o && /* @__PURE__ */ a.jsx(rt, { className: d.spinner || `text-[20rem] relative animate-spin text-spinner ${n}` }),
791
- u || /* @__PURE__ */ a.jsx("p", { className: d.text || `text-white text-2xl select-none absolute ${c}`, children: s || "Loading..." })
792
- ] });
793
- };
794
- function jt(t) {
795
- return je({ 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);
648
+ return Fe !== void 0 ? /* @__PURE__ */ F.createElement(Fe.Consumer, null, (n) => o(n)) : o(Ve);
796
649
  }
797
650
  function Lt(t) {
798
- return je({ 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);
651
+ 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);
799
652
  }
800
- const St = (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 " }))))), Ot = (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 " }))))), kt = (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 " }))))), We = () => {
801
- const { showAlert: t, setShowAlert: o, messageAlert: n, typeAlert: s } = se(), { alertTimeout: c } = K(), [u, f] = v(0), d = {
802
- danger: {
803
- bgColor: "bg-danger",
804
- textColor: "text-danger-text",
805
- buttonBg: "bg-danger",
806
- hoverBg: "hover:bg-danger-hover",
807
- focusRing: "focus:ring-danger-progress",
808
- progressColor: "bg-danger-progress"
653
+ const Je = ae(), Ft = ({ children: t }) => {
654
+ const [o, n] = j(!1), [s, c] = j(), [u, f] = j(), O = {
655
+ showAlert: o,
656
+ setShowAlert: n,
657
+ typeAlert: s,
658
+ setTypeAlert: c,
659
+ messageAlert: u,
660
+ setMessageAlert: f,
661
+ alertConfig: {
662
+ danger: {
663
+ bgColor: "bg-danger",
664
+ textColor: "text-danger-text",
665
+ buttonBg: "bg-danger",
666
+ hoverBg: "hover:bg-danger-hover",
667
+ focusRing: "focus:ring-danger-progress",
668
+ progressColor: "bg-danger-progress"
669
+ },
670
+ info: {
671
+ bgColor: "bg-info",
672
+ textColor: "text-info-text",
673
+ buttonBg: "bg-info",
674
+ hoverBg: "hover:bg-info-hover",
675
+ focusRing: "focus:ring-info-progress",
676
+ progressColor: "bg-info-progress"
677
+ },
678
+ success: {
679
+ bgColor: "bg-success",
680
+ textColor: "text-success-text",
681
+ buttonBg: "bg-success",
682
+ hoverBg: "hover:bg-success-hover",
683
+ focusRing: "focus:ring-success-progress",
684
+ progressColor: "bg-success-progress"
685
+ },
686
+ warning: {
687
+ bgColor: "bg-warning",
688
+ textColor: "text-warning-text",
689
+ buttonBg: "bg-warning",
690
+ hoverBg: "hover:bg-warning-hover",
691
+ focusRing: "focus:ring-warning-progress",
692
+ progressColor: "bg-warning-progress"
693
+ }
809
694
  },
810
- info: {
811
- bgColor: "bg-info",
812
- textColor: "text-info-text",
813
- buttonBg: "bg-info",
814
- hoverBg: "hover:bg-info-hover",
815
- focusRing: "focus:ring-info-progress",
816
- progressColor: "bg-info-progress"
695
+ getIcon: (P) => {
696
+ switch (P) {
697
+ case "danger":
698
+ return /* @__PURE__ */ a.jsx(gt, { className: "w-[20px] h-[20px]" });
699
+ case "info":
700
+ return /* @__PURE__ */ a.jsx(ht, { className: "w-[20px] h-[20px]" });
701
+ case "success":
702
+ return /* @__PURE__ */ a.jsx(Lt, { className: "text-xl" });
703
+ case "warning":
704
+ return /* @__PURE__ */ a.jsx(xt, { className: "w-[20px] h-[20px]" });
705
+ }
817
706
  },
818
- success: {
819
- bgColor: "bg-success",
820
- textColor: "text-success-text",
821
- buttonBg: "bg-success",
822
- hoverBg: "hover:bg-success-hover",
823
- focusRing: "focus:ring-success-progress",
824
- progressColor: "bg-success-progress"
707
+ closeAlert: () => {
708
+ n(!o);
825
709
  },
826
- warning: {
827
- bgColor: "bg-warning",
828
- textColor: "text-warning-text",
829
- buttonBg: "bg-warning",
830
- hoverBg: "hover:bg-warning-hover",
831
- focusRing: "focus:ring-warning-progress",
832
- progressColor: "bg-warning-progress"
710
+ activeAlert: (P, g) => {
711
+ n(!1), setTimeout(() => {
712
+ c(P), f(g), n(!0);
713
+ }, 50);
833
714
  }
834
- }, { bgColor: p, textColor: b, buttonBg: g, hoverBg: S, focusRing: O, progressColor: T } = d[s], L = (j) => {
835
- switch (j) {
836
- case "danger":
837
- return /* @__PURE__ */ a.jsx(St, { className: "w-[20px] h-[20px]" });
838
- case "info":
839
- return /* @__PURE__ */ a.jsx(Ot, { className: "w-[20px] h-[20px]" });
840
- case "success":
841
- return /* @__PURE__ */ a.jsx(Lt, { className: "text-xl" });
842
- case "warning":
843
- return /* @__PURE__ */ a.jsx(kt, { className: "w-[20px] h-[20px]" });
715
+ };
716
+ return /* @__PURE__ */ a.jsx(Je.Provider, { value: O, children: t });
717
+ }, ie = () => {
718
+ const t = se(Je);
719
+ if (t === void 0) throw new Error("Non puoi modificare l'alert");
720
+ return t;
721
+ };
722
+ let ne;
723
+ const he = async (t, o, n) => {
724
+ if (ne) return ne;
725
+ try {
726
+ const c = await (await fetch("/config.json")).json(), u = c.baseUri, { unauthorized: f, notFound: m, defaultMessage: d } = c.axiosErrors, C = c.axiosTimeout;
727
+ return ne = ut.create({
728
+ baseURL: u,
729
+ timeout: C
730
+ }), ne.interceptors.request.use(
731
+ (y) => y
732
+ ), ne.interceptors.response.use(
733
+ (y) => y,
734
+ (y) => {
735
+ if (y.response)
736
+ switch (t(!0), o("danger"), y.response.status) {
737
+ case 401:
738
+ localStorage.removeItem("accessToken"), n(f);
739
+ break;
740
+ case 404:
741
+ n(m);
742
+ break;
743
+ default:
744
+ n(`${d} ${y.response.status} ${y.response.data.error}`);
745
+ }
746
+ return Promise.reject(y);
747
+ }
748
+ ), ne;
749
+ } catch (s) {
750
+ console.error(s);
751
+ }
752
+ }, Ke = ae(), Dt = ({ children: t }) => {
753
+ const { heartbeatEndpoint: o, firstPrivatePath: n, infiniteSession: s, timeDeducted: c, authenticatedEndpoint: u, autoLogin: f, autoLoginEmail: m, autoLoginPassword: d, setCurrentDate: C } = ee(), { setIsLoading: y } = xe(), { setShowAlert: O, setMessageAlert: P, setTypeAlert: g, activeAlert: v } = ie(), x = Ue(), [L, b] = j(null), [p, k] = j(), [w, T] = j(), [D, te] = j(), [W, q] = j(!1), H = async (R = null, A) => {
754
+ R && R.preventDefault(), q(!0);
755
+ try {
756
+ y(!0), O(!1);
757
+ const M = await (await he(O, g, P)).post(u, {
758
+ auth: A
759
+ }), I = M.data.id, re = M.headers.token;
760
+ re && (localStorage.setItem("accessToken", re), localStorage.setItem("id", I), b(!0), k(re), x(`${n}${I}`));
761
+ } catch (Z) {
762
+ console.error(Z);
763
+ } finally {
764
+ q(!1), y(!1);
765
+ }
766
+ }, Y = () => {
767
+ localStorage.removeItem("accessToken"), localStorage.removeItem("id"), b(!1), k(null);
768
+ }, V = async () => {
769
+ try {
770
+ const R = localStorage.getItem("accessToken"), M = (await (await he(O, g, P)).get(
771
+ `${o}`,
772
+ { headers: {
773
+ Authorization: R
774
+ } }
775
+ )).headers.token;
776
+ localStorage.setItem("accessToken", M), k(M), console.log("nuovo token: ", M, "Data:", C());
777
+ } catch (R) {
778
+ console.error(R), Y();
779
+ }
780
+ }, G = () => {
781
+ if (!p)
782
+ return;
783
+ const A = at(p).exp, Z = Math.floor(Date.now() / 1e3), M = (A - Z) * 1e3;
784
+ te(M), T(M - c);
785
+ };
786
+ z(() => {
787
+ if (localStorage.getItem("accessToken"))
788
+ b(!0);
789
+ else {
790
+ b(!1);
791
+ return;
792
+ }
793
+ }, []), z(() => {
794
+ const R = localStorage.getItem("accessToken");
795
+ f && !R && !W && H(null, {
796
+ email: m,
797
+ password: d
798
+ });
799
+ }, [f, W]), z(() => {
800
+ G();
801
+ let R;
802
+ s && p && w && (R = setInterval(() => {
803
+ V();
804
+ }, w));
805
+ let A;
806
+ return !s && p && D && (A = setTimeout(() => {
807
+ Y(), v("danger", "Sessione scaduta");
808
+ }, D)), () => {
809
+ R && clearInterval(R), A && clearTimeout(A);
810
+ };
811
+ }, [p, w]), z(() => {
812
+ L || f && !W && H(null, {
813
+ email: m,
814
+ password: d
815
+ });
816
+ }, [L]);
817
+ const X = {
818
+ isAuthenticated: L,
819
+ setIsAuthenticated: b,
820
+ login: H,
821
+ logout: Y,
822
+ setCurrentToken: k
823
+ };
824
+ return /* @__PURE__ */ a.jsx(Ke.Provider, { value: X, children: t });
825
+ }, je = () => {
826
+ const t = se(Ke);
827
+ if (t === void 0) throw new Error("Non sei dentro al Auth Provider");
828
+ return t;
829
+ }, Qe = ae(), Wt = ({ children: t, publicRoutes: o = [], privateRoutes: n = [] }) => /* @__PURE__ */ a.jsx(Qe.Provider, { value: { publicRoutes: o, privateRoutes: n }, children: t }), St = () => {
830
+ const t = se(Qe);
831
+ if (t === void 0)
832
+ throw new Error(
833
+ `Errore: Le rotte non sono state inizializzate correttamente.
834
+
835
+ Soluzione: Assicurati di avvolgere il tuo componente con <RouteProvider>.
836
+
837
+ Esempio:
838
+
839
+ <RouteProvider publicRoutes={[]} privateRoutes={[]}>
840
+ <MyPackageRoutes />
841
+ </RouteProvider>`
842
+ );
843
+ return t;
844
+ }, et = ae(), Yt = ({ children: t }) => {
845
+ const { login: o } = je(), { clearLoginFormOnError: n } = ee(), s = {
846
+ email: "",
847
+ password: ""
848
+ }, [c, u] = j("Accedi"), [f, m] = j("Email"), [d, C] = j("email"), [y, O] = j("example@example.it"), [P, g] = j("Accedi"), [v, x] = j(s), [L, b] = j(), [p, k] = j(), [w, T] = j(), [D, te] = j(), [W, q] = j({}), V = {
849
+ overrideStyle: W,
850
+ setOverrideStyle: q,
851
+ title: c,
852
+ setTitle: u,
853
+ label: f,
854
+ setLabel: m,
855
+ type: d,
856
+ setType: C,
857
+ placeholder: y,
858
+ setPlaceholder: O,
859
+ buttonText: P,
860
+ setButtonText: g,
861
+ formData: v,
862
+ setFormData: x,
863
+ LogoImg: L,
864
+ setLogoImg: b,
865
+ styleCardForm: p,
866
+ setStyleCardForm: k,
867
+ styleContainerLogo: w,
868
+ setStyleContainerLogo: T,
869
+ styleLogo: D,
870
+ setStyleLogo: te,
871
+ changeData: (G, X) => {
872
+ x((R) => ({ ...R, [G]: X }));
873
+ },
874
+ handleLogin: (G) => {
875
+ o(G, v), n && x(s);
844
876
  }
845
- }, y = () => {
846
- o(!t);
847
877
  };
878
+ return /* @__PURE__ */ a.jsx(et.Provider, { value: V, children: t });
879
+ }, tt = () => {
880
+ const t = se(et);
881
+ if (t === void 0) throw new Error("Non puoi modificare La login");
882
+ return t;
883
+ };
884
+ function rt(t) {
885
+ 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);
886
+ }
887
+ const Ot = () => {
888
+ const { loadingProps: t } = xe(), { spinner: o = !0, spinnerStyle: n, text: s, textStyle: c, children: u, containerStyle: f, overrideStyle: m = {} } = t;
889
+ return /* @__PURE__ */ a.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: [
890
+ o && /* @__PURE__ */ a.jsx(rt, { className: m.spinner || `text-[20rem] relative animate-spin text-spinner ${n}` }),
891
+ u || /* @__PURE__ */ a.jsx("p", { className: m.text || `text-white text-2xl select-none absolute ${c}`, children: s || "Loading..." })
892
+ ] });
893
+ };
894
+ function Pt(t) {
895
+ 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);
896
+ }
897
+ const We = () => {
898
+ const { messageAlert: t, typeAlert: o, alertConfig: n, getIcon: s, closeAlert: c } = ie(), { alertTimeout: u } = ee(), [f, m] = j(0), { bgColor: d, textColor: C, buttonBg: y, hoverBg: O, focusRing: P, progressColor: g } = n[o];
848
899
  return z(() => {
849
- let j;
850
- const N = 100 / (c / 100);
851
- j = setInterval(() => {
852
- f((C) => C >= 100 ? (clearInterval(j), 100) : C + N);
900
+ let v;
901
+ const L = 100 / (u / 100);
902
+ v = setInterval(() => {
903
+ m((p) => p >= 100 ? (clearInterval(v), 100) : p + L);
853
904
  }, 100);
854
- const M = setTimeout(() => {
855
- y();
856
- }, c);
905
+ const b = setTimeout(() => {
906
+ c();
907
+ }, u);
857
908
  return () => {
858
- clearTimeout(M), clearInterval(j);
909
+ clearTimeout(b), clearInterval(v);
859
910
  };
860
- }, []), /* @__PURE__ */ a.jsxs("div", { className: `flex items-center p-4 pt-6 ${b} 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: [
861
- /* @__PURE__ */ a.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__ */ a.jsx("div", { className: `${T} h-2.5 rounded-t-lg`, style: { width: `${u}%` } }) }),
862
- L(s),
863
- /* @__PURE__ */ a.jsx("div", { className: "px-4 text-sm font-medium", children: n }),
911
+ }, []), /* @__PURE__ */ a.jsxs("div", { className: `flex items-center p-4 pt-6 ${C} rounded-lg ${d} 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: [
912
+ /* @__PURE__ */ a.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__ */ a.jsx("div", { className: `${g} h-2.5 rounded-t-lg`, style: { width: `${f}%` } }) }),
913
+ s(o),
914
+ /* @__PURE__ */ a.jsx("div", { className: "px-4 text-sm font-medium", children: t }),
864
915
  /* @__PURE__ */ a.jsx(
865
916
  "button",
866
917
  {
867
918
  type: "button",
868
- className: `ms-auto ${g} rounded-lg focus:ring-2 ${O} p-1.5 ${S} inline-flex items-center justify-center h-8 w-8 cursor-pointer`,
919
+ className: `ms-auto ${y} rounded-lg focus:ring-2 ${P} p-1.5 ${O} inline-flex items-center justify-center h-8 w-8 cursor-pointer`,
869
920
  title: "Close",
870
- onClick: y,
871
- children: /* @__PURE__ */ a.jsx(jt, { className: "text-xl" })
921
+ onClick: c,
922
+ children: /* @__PURE__ */ a.jsx(Pt, { className: "text-xl" })
872
923
  }
873
924
  )
874
925
  ] });
875
- }, Pt = (t) => {
876
- const { isLoading: o } = xe(), { showAlert: n } = se(), s = st(), {
926
+ }, kt = (t) => {
927
+ const { isLoading: o } = xe(), { showAlert: n } = ie(), s = st(), {
877
928
  isMain: c = !0,
878
929
  headerComponent: u = null,
879
930
  showHeaderOnLogin: f = !1,
880
- headerExcludedRoutes: d = [],
881
- footerComponent: p = null,
882
- showFooterOnLogin: b = !1,
883
- footerExcludedRoutes: g = []
884
- } = t, S = d.some((y) => Ie(y, s.pathname));
885
- let O;
886
- s.pathname === "/" ? O = u && f : O = u && !S;
887
- const T = g.some((y) => Ie(y, s.pathname));
888
- let L;
889
- return s.pathname === "/" ? L = p && b : L = p && !T, /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
890
- o && /* @__PURE__ */ a.jsx(wt, {}),
931
+ headerExcludedRoutes: m = [],
932
+ footerComponent: d = null,
933
+ showFooterOnLogin: C = !1,
934
+ footerExcludedRoutes: y = []
935
+ } = t, O = m.some((x) => ze(x, s.pathname));
936
+ let P;
937
+ s.pathname === "/" ? P = u && f : P = u && !O;
938
+ const g = y.some((x) => ze(x, s.pathname));
939
+ let v;
940
+ return s.pathname === "/" ? v = d && C : v = d && !g, /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
941
+ o && /* @__PURE__ */ a.jsx(Ot, {}),
891
942
  n && /* @__PURE__ */ a.jsx(We, {}),
892
- O && u,
943
+ P && u,
893
944
  c ? /* @__PURE__ */ a.jsxs("main", { className: o ? "hidden" : "", children: [
894
945
  n && /* @__PURE__ */ a.jsx(We, {}),
895
946
  /* @__PURE__ */ a.jsx(Ce, {})
896
947
  ] }) : /* @__PURE__ */ a.jsx(Ce, {}),
897
- L && p
948
+ v && d
898
949
  ] });
899
950
  }, Ye = (t) => {
900
951
  const {
@@ -904,17 +955,17 @@ const St = (t) => /* @__PURE__ */ r.createElement("svg", { xmlns: "http://www.w3
904
955
  inputRequired: c,
905
956
  inputValue: u,
906
957
  inputChange: f,
907
- autoFocus: d,
908
- inputStyle: p,
909
- overrideStyle: b
910
- } = t, S = ["text", "email", "password", "search", "tel", "url"].includes(o) ? o : "text";
958
+ autoFocus: m,
959
+ inputStyle: d,
960
+ overrideStyle: C
961
+ } = t, O = ["text", "email", "password", "search", "tel", "url"].includes(o) ? o : "text";
911
962
  return /* @__PURE__ */ a.jsx(
912
963
  "input",
913
964
  {
914
- type: S,
915
- autoFocus: d,
965
+ type: O,
966
+ autoFocus: m,
916
967
  id: n,
917
- className: b || `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}`,
968
+ 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 ${d}`,
918
969
  placeholder: s,
919
970
  required: c ?? !0,
920
971
  value: u,
@@ -922,10 +973,10 @@ const St = (t) => /* @__PURE__ */ r.createElement("svg", { xmlns: "http://www.w3
922
973
  }
923
974
  );
924
975
  }, Ze = ({ label: t, labelId: o, labelStyle: n, overrideStyle: s }) => /* @__PURE__ */ a.jsx("label", { htmlFor: o, className: s || `show-label mb-2 text-input-label font-medium text-color-label ${n}`, children: t }), Rt = () => {
925
- const { title: t, label: o, type: n, placeholder: s, buttonText: c, formData: u, changeData: f, handleLogin: d, overrideStyle: p } = Qe();
926
- return /* @__PURE__ */ a.jsxs("form", { onSubmit: d, className: p.form || "form-size", children: [
927
- /* @__PURE__ */ a.jsx("h1", { className: p.title || "text-form-title-size show-title title-position m-form-title", children: t }),
928
- /* @__PURE__ */ a.jsxs("div", { className: p.containerEmail || "flex justify-center flex-col gap-1 m-input-form input-size mx-auto", children: [
976
+ const { title: t, label: o, type: n, placeholder: s, buttonText: c, formData: u, changeData: f, handleLogin: m, overrideStyle: d } = tt();
977
+ return /* @__PURE__ */ a.jsxs("form", { onSubmit: m, className: d.form || "form-size", children: [
978
+ /* @__PURE__ */ a.jsx("h1", { className: d.title || "text-form-title-size show-title title-position m-form-title", children: t }),
979
+ /* @__PURE__ */ a.jsxs("div", { className: d.containerEmail || "flex justify-center flex-col gap-1 m-input-form input-size mx-auto", children: [
929
980
  /* @__PURE__ */ a.jsx(Ze, { labelId: "user-email", label: o }),
930
981
  /* @__PURE__ */ a.jsx(
931
982
  Ye,
@@ -934,14 +985,14 @@ const St = (t) => /* @__PURE__ */ r.createElement("svg", { xmlns: "http://www.w3
934
985
  inputId: "user-email",
935
986
  inputPlaceholder: s,
936
987
  inputValue: u.email,
937
- inputChange: (b) => {
938
- f("email", b.target.value);
988
+ inputChange: (C) => {
989
+ f("email", C.target.value);
939
990
  },
940
991
  autoFocus: !0
941
992
  }
942
993
  )
943
994
  ] }),
944
- /* @__PURE__ */ a.jsxs("div", { className: p.containerPassword || "flex justify-center flex-col gap-1 my-4 input-size mx-auto", children: [
995
+ /* @__PURE__ */ a.jsxs("div", { className: d.containerPassword || "flex justify-center flex-col gap-1 my-4 input-size mx-auto", children: [
945
996
  /* @__PURE__ */ a.jsx(Ze, { labelId: "password", label: "Password" }),
946
997
  /* @__PURE__ */ a.jsx(
947
998
  Ye,
@@ -950,86 +1001,86 @@ const St = (t) => /* @__PURE__ */ r.createElement("svg", { xmlns: "http://www.w3
950
1001
  inputId: "password",
951
1002
  inputPlaceholder: "Password",
952
1003
  inputValue: u.password,
953
- inputChange: (b) => {
954
- f("password", b.target.value);
1004
+ inputChange: (C) => {
1005
+ f("password", C.target.value);
955
1006
  }
956
1007
  }
957
1008
  )
958
1009
  ] }),
959
- /* @__PURE__ */ a.jsx("div", { className: p.containerButton || "flex button-position items-center m-primary-button", children: /* @__PURE__ */ a.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: c }) })
1010
+ /* @__PURE__ */ a.jsx("div", { className: d.containerButton || "flex button-position items-center m-primary-button", children: /* @__PURE__ */ a.jsx("button", { className: d.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: c }) })
960
1011
  ] });
961
1012
  }, Tt = ({ Logo: t }) => {
962
- const { setShowAlert: o, setTypeAlert: n, setMessageAlert: s } = se(), { styleCardForm: c, styleContainerLogo: u, styleLogo: f, overrideStyle: d } = Qe(), { firstPrivatePath: p } = K(), b = Ue();
1013
+ const { activeAlert: o } = ie(), { styleCardForm: n, styleContainerLogo: s, styleLogo: c, overrideStyle: u } = tt(), { firstPrivatePath: f } = ee(), m = Ue();
963
1014
  return z(() => {
964
- const g = localStorage.getItem("id");
965
- localStorage.getItem("accessToken") && g && (b(`${p}${g}`), o(!0), n("info"), s("Sei già loggato"));
966
- }, []), /* @__PURE__ */ a.jsx("section", { id: "login-page", children: /* @__PURE__ */ a.jsx("div", { className: d.container || "container mx-auto flex items-center justify-center h-screen", children: /* @__PURE__ */ a.jsxs("div", { className: d.cardForm || `bg-form card-style card-size flex flex-col sm:flex-row sm:items-center justify-center ${c}`, children: [
967
- /* @__PURE__ */ a.jsx("div", { className: d.containerLogo || `basis-1/2 flex items-center justify-center ${u}`, children: t && /* @__PURE__ */ a.jsx(t, { className: d.logo || `login-logo h-full sm:h-auto ${f}` }) }),
1015
+ const d = localStorage.getItem("id");
1016
+ localStorage.getItem("accessToken") && d && (m(`${f}${d}`), o("info", "Sei già loggato"));
1017
+ }, []), /* @__PURE__ */ a.jsx("section", { id: "login-page", children: /* @__PURE__ */ a.jsx("div", { className: u.container || "container mx-auto flex items-center justify-center h-screen", children: /* @__PURE__ */ a.jsxs("div", { className: u.cardForm || `bg-form card-style card-size flex flex-col sm:flex-row sm:items-center justify-center ${n}`, children: [
1018
+ /* @__PURE__ */ a.jsx("div", { className: u.containerLogo || `basis-1/2 flex items-center justify-center ${s}`, children: t && /* @__PURE__ */ a.jsx(t, { className: u.logo || `login-logo h-full sm:h-auto ${c}` }) }),
968
1019
  /* @__PURE__ */ a.jsx(Rt, {})
969
1020
  ] }) }) });
970
1021
  }, _t = () => {
971
- const { isAuthenticated: t } = we(), { setShowAlert: o, setTypeAlert: n, setMessageAlert: s } = se(), { autoLogin: c } = K();
1022
+ const { isAuthenticated: t } = je(), { activeAlert: o } = ie(), { autoLogin: n } = ee();
972
1023
  return z(() => {
973
- const u = localStorage.getItem("accessToken");
974
- !t && !u && !c && (o(!0), n("danger"), s("Non sei autorizzato"));
975
- }, []), t === null ? null : t ? /* @__PURE__ */ a.jsx(Ce, {}) : /* @__PURE__ */ a.jsx(lt, { to: "/", replace: !0 });
1024
+ const s = localStorage.getItem("accessToken");
1025
+ !t && !s && !n && o("danger", "Non sei autorizzato");
1026
+ }, []), t === null ? null : t ? /* @__PURE__ */ a.jsx(Ce, {}) : /* @__PURE__ */ a.jsx(it, { to: "/", replace: !0 });
976
1027
  }, Nt = () => {
977
- const { id: t } = it(), { logout: o, setCurrentToken: n } = we(), { usersEndpoint: s } = K(), { setIsLoading: c } = xe(), { setShowAlert: u, setTypeAlert: f, setMessageAlert: d } = se(), [p, b] = v({}), [g, S] = v(null), [O, T] = v(!1), L = async () => {
1028
+ const { id: t } = lt(), { logout: o, setCurrentToken: n } = je(), { usersEndpoint: s } = ee(), { setIsLoading: c } = xe(), { setShowAlert: u, setTypeAlert: f, setMessageAlert: m, activeAlert: d } = ie(), [C, y] = j({}), [O, P] = j(null), [g, v] = j(!1), x = async () => {
978
1029
  try {
979
1030
  c(!0);
980
- const E = localStorage.getItem("accessToken");
981
- if (!E) {
982
- o(), u(!0), f("danger"), d("Sessione scaduta");
1031
+ const p = localStorage.getItem("accessToken");
1032
+ if (!p) {
1033
+ o(), d("danger", "Sessione Scaduta");
983
1034
  return;
984
1035
  }
985
- n(E);
986
- const C = (await (await pe(u, f, d)).get(
1036
+ n(p);
1037
+ const T = (await (await he(u, f, m)).get(
987
1038
  `${s}${t}`,
988
1039
  { headers: {
989
- Authorization: E
1040
+ Authorization: p
990
1041
  } }
991
1042
  )).data;
992
- b(C);
993
- } catch (E) {
994
- console.error(E), o();
1043
+ y(T);
1044
+ } catch (p) {
1045
+ console.error(p), o();
995
1046
  } finally {
996
1047
  c(!1);
997
1048
  }
998
- }, y = async () => {
1049
+ }, L = async () => {
999
1050
  try {
1000
- T(!0);
1001
- const E = localStorage.getItem("accessToken");
1002
- if (!E) {
1003
- o(), u(!0), f("danger"), d("Sessione scaduta");
1051
+ v(!0);
1052
+ const p = localStorage.getItem("accessToken");
1053
+ if (!p) {
1054
+ o(), d("danger", "Sessione Scaduta");
1004
1055
  return;
1005
1056
  }
1006
- const C = (await (await pe(u, f, d)).get(
1057
+ const T = (await (await he(u, f, m)).get(
1007
1058
  `${s}`,
1008
1059
  { headers: {
1009
- Authorization: E
1060
+ Authorization: p
1010
1061
  } }
1011
1062
  )).data;
1012
- S(C);
1013
- } catch (E) {
1014
- console.error(E), c(!1);
1063
+ P(T);
1064
+ } catch (p) {
1065
+ console.error(p), c(!1);
1015
1066
  } finally {
1016
- T(!1);
1067
+ v(!1);
1017
1068
  }
1018
- }, j = () => {
1019
- o(), u(!0), f("info"), d("Hai effettuato il logout");
1069
+ }, b = () => {
1070
+ o(), d("info", "Hai effettuato il logout");
1020
1071
  };
1021
1072
  return z(() => {
1022
- L();
1073
+ x();
1023
1074
  }, []), /* @__PURE__ */ a.jsx("section", { children: /* @__PURE__ */ a.jsxs("div", { className: "container mx-auto py-8", children: [
1024
1075
  /* @__PURE__ */ a.jsxs("div", { className: "flex items-center justify-center gap-8 h-20", children: [
1025
1076
  /* @__PURE__ */ a.jsxs("h1", { className: "text-4xl text-center text-slate-800", children: [
1026
1077
  "Email: ",
1027
- p.email
1078
+ C.email
1028
1079
  ] }),
1029
1080
  /* @__PURE__ */ a.jsx(
1030
1081
  "button",
1031
1082
  {
1032
- onClick: j,
1083
+ onClick: b,
1033
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]",
1034
1085
  children: "Logout"
1035
1086
  }
@@ -1038,17 +1089,17 @@ const St = (t) => /* @__PURE__ */ r.createElement("svg", { xmlns: "http://www.w3
1038
1089
  /* @__PURE__ */ a.jsx("div", { className: "flex justify-center items-center my-12", children: /* @__PURE__ */ a.jsx(
1039
1090
  "button",
1040
1091
  {
1041
- onClick: y,
1092
+ onClick: L,
1042
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)]",
1043
- disabled: O,
1094
+ disabled: g,
1044
1095
  children: "Lista degli utenti"
1045
1096
  }
1046
1097
  ) }),
1047
- /* @__PURE__ */ a.jsx("div", { className: "flex justify-center items-center", children: g && /* @__PURE__ */ a.jsx("ul", { children: g.map((E) => /* @__PURE__ */ a.jsxs("li", { className: "text-xl my-4", children: [
1048
- E.id,
1098
+ /* @__PURE__ */ a.jsx("div", { className: "flex justify-center items-center", children: O && /* @__PURE__ */ a.jsx("ul", { children: O.map((p) => /* @__PURE__ */ a.jsxs("li", { className: "text-xl my-4", children: [
1099
+ p.id,
1049
1100
  " - ",
1050
- E.email
1051
- ] }, `user-${E.id}`)) }) })
1101
+ p.email
1102
+ ] }, `user-${p.id}`)) }) })
1052
1103
  ] }) });
1053
1104
  }, At = (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: {
1054
1105
  stopColor: "#ff0000",
@@ -1097,45 +1148,45 @@ const St = (t) => /* @__PURE__ */ r.createElement("svg", { xmlns: "http://www.w3
1097
1148
  strokeOpacity: 1,
1098
1149
  paintOrder: "stroke markers fill"
1099
1150
  }, d: "", id: "path40", transform: "scale(0.26458333)" }))), Zt = (t) => {
1100
- const { publicRoutes: o, privateRoutes: n } = gt(), { firstPrivatePath: s } = K(), {
1151
+ const { publicRoutes: o, privateRoutes: n } = St(), { firstPrivatePath: s } = ee(), {
1101
1152
  logoImg: c = At,
1102
1153
  pathImg: u = "./src/assets/MyWarehouse.svg",
1103
1154
  firstPrivateElement: f = /* @__PURE__ */ a.jsx(Nt, {}),
1104
- globalLayout: d,
1105
- isMain: p,
1106
- headerComponent: b,
1107
- showHeaderOnLogin: g,
1108
- headerExcludedRoutes: S,
1109
- footerComponent: O,
1110
- showFooterOnLogin: T,
1111
- footerExcludedRoutes: L,
1112
- privateProvider: y,
1113
- customProvider: j
1114
- } = t, E = d || /* @__PURE__ */ a.jsx(
1115
- Pt,
1155
+ globalLayout: m,
1156
+ isMain: d,
1157
+ headerComponent: C,
1158
+ showHeaderOnLogin: y,
1159
+ headerExcludedRoutes: O,
1160
+ footerComponent: P,
1161
+ showFooterOnLogin: g,
1162
+ footerExcludedRoutes: v,
1163
+ privateProvider: x,
1164
+ customProvider: L
1165
+ } = t, b = m || /* @__PURE__ */ a.jsx(
1166
+ kt,
1116
1167
  {
1117
- isMain: p,
1118
- headerComponent: b,
1119
- showHeaderOnLogin: g,
1120
- headerExcludedRoutes: S,
1121
- footerComponent: O,
1122
- showFooterOnLogin: T,
1123
- footerExcludedRoutes: L
1168
+ isMain: d,
1169
+ headerComponent: C,
1170
+ showHeaderOnLogin: y,
1171
+ headerExcludedRoutes: O,
1172
+ footerComponent: P,
1173
+ showFooterOnLogin: g,
1174
+ footerExcludedRoutes: v
1124
1175
  }
1125
- ), N = y ? W.cloneElement(y, {}, j) : /* @__PURE__ */ a.jsx(_t, { children: j }), M = () => {
1126
- const C = document.querySelector("link[rel='icon']");
1127
- u && (C.href = u);
1176
+ ), p = x ? F.cloneElement(x, {}, L) : /* @__PURE__ */ a.jsx(_t, { children: L }), k = () => {
1177
+ const w = document.querySelector("link[rel='icon']");
1178
+ u && (w.href = u);
1128
1179
  };
1129
1180
  return z(() => {
1130
- M();
1131
- }, []), /* @__PURE__ */ a.jsx(ct, { children: /* @__PURE__ */ a.jsxs(J, { element: d === "none" ? null : E, children: [
1132
- /* @__PURE__ */ a.jsxs(J, { path: "/", children: [
1133
- /* @__PURE__ */ a.jsx(J, { index: !0, element: /* @__PURE__ */ a.jsx(Tt, { Logo: c }) }),
1134
- o.map((C, I) => /* @__PURE__ */ a.jsx(J, { path: C.path, element: C.element }, `public-${I}`))
1181
+ k();
1182
+ }, []), /* @__PURE__ */ a.jsx(ct, { children: /* @__PURE__ */ a.jsxs(Q, { element: m === "none" ? null : b, children: [
1183
+ /* @__PURE__ */ a.jsxs(Q, { path: "/", children: [
1184
+ /* @__PURE__ */ a.jsx(Q, { index: !0, element: /* @__PURE__ */ a.jsx(Tt, { Logo: c }) }),
1185
+ o.map((w, T) => /* @__PURE__ */ a.jsx(Q, { path: w.path, element: w.element }, `public-${T}`))
1135
1186
  ] }),
1136
- /* @__PURE__ */ a.jsxs(J, { element: N, children: [
1137
- /* @__PURE__ */ a.jsx(J, { path: `${s ?? "/dashboard/"}:id`, element: f }),
1138
- n.map((C, I) => /* @__PURE__ */ a.jsx(J, { path: C.path, element: C.element }, `private-${I}`))
1187
+ /* @__PURE__ */ a.jsxs(Q, { element: p, children: [
1188
+ /* @__PURE__ */ a.jsx(Q, { path: `${s ?? "/dashboard/"}:id`, element: f }),
1189
+ n.map((w, T) => /* @__PURE__ */ a.jsx(Q, { path: w.path, element: w.element }, `private-${T}`))
1139
1190
  ] })
1140
1191
  ] }) });
1141
1192
  }, Ut = ({ spinner: t = !0, spinnerStyle: o, text: n, textStyle: s, children: c, containerStyle: u, overrideStyle: f = {} }) => /* @__PURE__ */ a.jsxs("div", { className: f.container || `w-full h-full relative flex items-center justify-center ${u}`, children: [
@@ -1148,16 +1199,16 @@ export {
1148
1199
  _t as AuthPage,
1149
1200
  Dt as AuthProvider,
1150
1201
  Vt as BrowserRouter,
1151
- Bt as ConfigProvider,
1202
+ $t as ConfigProvider,
1152
1203
  Nt as Dashboard,
1153
- Pt as DefaultLayout,
1204
+ kt as DefaultLayout,
1154
1205
  pt as ErrorPage,
1155
1206
  Ye as Input,
1156
1207
  Ze as InputLabel,
1157
1208
  Xt as Link,
1158
- wt as Loading,
1209
+ Ot as Loading,
1159
1210
  Ut as LoadingComponent,
1160
- $t as LoadingProvider,
1211
+ Bt as LoadingProvider,
1161
1212
  Tt as Login,
1162
1213
  Rt as LoginForm,
1163
1214
  Yt as LoginFormProvider,
@@ -1167,13 +1218,13 @@ export {
1167
1218
  Qt as Route,
1168
1219
  Wt as RouteProvider,
1169
1220
  e0 as Routes,
1170
- pe as fetchAxiosConfig,
1171
- se as useAlert,
1172
- we as useAuth,
1173
- K as useConfig,
1221
+ he as fetchAxiosConfig,
1222
+ ie as useAlert,
1223
+ je as useAuth,
1224
+ ee as useConfig,
1174
1225
  xe as useLoading,
1175
1226
  t0 as useLocation,
1176
- Qe as useLoginForm,
1227
+ tt as useLoginForm,
1177
1228
  r0 as useMatch,
1178
- gt as useRoutesInjection
1229
+ St as useRoutesInjection
1179
1230
  };