thecore-auth 0.0.97 → 0.0.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/thecore-auth.cjs.js +11 -11
- package/dist/thecore-auth.esm.js +467 -458
- package/package.json +1 -1
package/dist/thecore-auth.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as t from "react";
|
|
2
|
-
import
|
|
2
|
+
import Z, { createContext as ie, useState as j, useContext as se, useEffect as B } from "react";
|
|
3
3
|
import at from "jwt-decode";
|
|
4
|
-
import { useNavigate as ke, useLocation as Le, matchPath as $e, Outlet as je, Navigate as Je, Routes as lt, Route as
|
|
5
|
-
import { BrowserRouter as
|
|
4
|
+
import { useNavigate as ke, useLocation as Le, matchPath as $e, Outlet as je, Navigate as Je, Routes as lt, Route as ee, useMatch as ct } from "react-router-dom";
|
|
5
|
+
import { BrowserRouter as i0, Link as s0, NavLink as a0, Outlet as l0, Route as c0, Routes as f0, useLocation as u0, useMatch as d0, useNavigate as m0 } from "react-router-dom";
|
|
6
6
|
import ft from "axios";
|
|
7
|
-
import { default as
|
|
7
|
+
import { default as h0 } from "axios";
|
|
8
8
|
var he = { exports: {} }, ue = {};
|
|
9
9
|
/**
|
|
10
10
|
* @license React
|
|
@@ -24,8 +24,8 @@ function ut() {
|
|
|
24
24
|
var u = null;
|
|
25
25
|
if (l !== void 0 && (u = "" + l), a.key !== void 0 && (u = "" + a.key), "key" in a) {
|
|
26
26
|
l = {};
|
|
27
|
-
for (var
|
|
28
|
-
|
|
27
|
+
for (var p in a)
|
|
28
|
+
p !== "key" && (l[p] = a[p]);
|
|
29
29
|
} else l = a;
|
|
30
30
|
return a = l.ref, {
|
|
31
31
|
$$typeof: r,
|
|
@@ -56,17 +56,17 @@ function dt() {
|
|
|
56
56
|
return e.$$typeof === ye ? null : e.displayName || e.name || null;
|
|
57
57
|
if (typeof e == "string") return e;
|
|
58
58
|
switch (e) {
|
|
59
|
-
case
|
|
59
|
+
case G:
|
|
60
60
|
return "Fragment";
|
|
61
|
-
case
|
|
61
|
+
case S:
|
|
62
62
|
return "Portal";
|
|
63
|
-
case
|
|
63
|
+
case F:
|
|
64
64
|
return "Profiler";
|
|
65
|
-
case
|
|
65
|
+
case _:
|
|
66
66
|
return "StrictMode";
|
|
67
|
-
case
|
|
67
|
+
case $:
|
|
68
68
|
return "Suspense";
|
|
69
|
-
case
|
|
69
|
+
case D:
|
|
70
70
|
return "SuspenseList";
|
|
71
71
|
}
|
|
72
72
|
if (typeof e == "object")
|
|
@@ -77,12 +77,12 @@ function dt() {
|
|
|
77
77
|
return (e.displayName || "Context") + ".Provider";
|
|
78
78
|
case re:
|
|
79
79
|
return (e._context.displayName || "Context") + ".Consumer";
|
|
80
|
-
case
|
|
80
|
+
case V:
|
|
81
81
|
var c = e.render;
|
|
82
82
|
return e = e.displayName, e || (e = c.displayName || c.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
83
|
-
case
|
|
83
|
+
case W:
|
|
84
84
|
return c = e.displayName || null, c !== null ? c : r(e.type) || "Memo";
|
|
85
|
-
case
|
|
85
|
+
case X:
|
|
86
86
|
c = e._payload, e = e._init;
|
|
87
87
|
try {
|
|
88
88
|
return r(e(c));
|
|
@@ -103,18 +103,18 @@ function dt() {
|
|
|
103
103
|
}
|
|
104
104
|
if (c) {
|
|
105
105
|
c = console;
|
|
106
|
-
var f = c.error,
|
|
106
|
+
var f = c.error, E = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
107
107
|
return f.call(
|
|
108
108
|
c,
|
|
109
109
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
110
|
-
|
|
110
|
+
E
|
|
111
111
|
), i(e);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
function s() {
|
|
115
115
|
}
|
|
116
116
|
function a() {
|
|
117
|
-
if (
|
|
117
|
+
if (U === 0) {
|
|
118
118
|
Pe = console.log, Re = console.info, Ne = console.warn, Ge = console.error, Te = console.group, _e = console.groupCollapsed, Ie = console.groupEnd;
|
|
119
119
|
var e = {
|
|
120
120
|
configurable: !0,
|
|
@@ -132,22 +132,22 @@ function dt() {
|
|
|
132
132
|
groupEnd: e
|
|
133
133
|
});
|
|
134
134
|
}
|
|
135
|
-
|
|
135
|
+
U++;
|
|
136
136
|
}
|
|
137
137
|
function l() {
|
|
138
|
-
if (
|
|
138
|
+
if (U--, U === 0) {
|
|
139
139
|
var e = { configurable: !0, enumerable: !0, writable: !0 };
|
|
140
140
|
Object.defineProperties(console, {
|
|
141
|
-
log:
|
|
142
|
-
info:
|
|
143
|
-
warn:
|
|
144
|
-
error:
|
|
145
|
-
group:
|
|
146
|
-
groupCollapsed:
|
|
147
|
-
groupEnd:
|
|
141
|
+
log: z({}, e, { value: Pe }),
|
|
142
|
+
info: z({}, e, { value: Re }),
|
|
143
|
+
warn: z({}, e, { value: Ne }),
|
|
144
|
+
error: z({}, e, { value: Ge }),
|
|
145
|
+
group: z({}, e, { value: Te }),
|
|
146
|
+
groupCollapsed: z({}, e, { value: _e }),
|
|
147
|
+
groupEnd: z({}, e, { value: Ie })
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
|
-
0 >
|
|
150
|
+
0 > U && console.error(
|
|
151
151
|
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
|
|
152
152
|
);
|
|
153
153
|
}
|
|
@@ -163,146 +163,146 @@ function dt() {
|
|
|
163
163
|
return `
|
|
164
164
|
` + Ee + e + Ae;
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function p(e, c) {
|
|
167
167
|
if (!e || Ce) return "";
|
|
168
168
|
var f = we.get(e);
|
|
169
169
|
if (f !== void 0) return f;
|
|
170
170
|
Ce = !0, f = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
|
|
171
|
-
var
|
|
172
|
-
|
|
171
|
+
var E = null;
|
|
172
|
+
E = O.H, O.H = null, a();
|
|
173
173
|
try {
|
|
174
|
-
var
|
|
174
|
+
var T = {
|
|
175
175
|
DetermineComponentFrameRoot: function() {
|
|
176
176
|
try {
|
|
177
177
|
if (c) {
|
|
178
|
-
var
|
|
178
|
+
var q = function() {
|
|
179
179
|
throw Error();
|
|
180
180
|
};
|
|
181
|
-
if (Object.defineProperty(
|
|
181
|
+
if (Object.defineProperty(q.prototype, "props", {
|
|
182
182
|
set: function() {
|
|
183
183
|
throw Error();
|
|
184
184
|
}
|
|
185
185
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
186
186
|
try {
|
|
187
|
-
Reflect.construct(
|
|
188
|
-
} catch (
|
|
189
|
-
var pe =
|
|
187
|
+
Reflect.construct(q, []);
|
|
188
|
+
} catch (Y) {
|
|
189
|
+
var pe = Y;
|
|
190
190
|
}
|
|
191
|
-
Reflect.construct(e, [],
|
|
191
|
+
Reflect.construct(e, [], q);
|
|
192
192
|
} else {
|
|
193
193
|
try {
|
|
194
|
-
|
|
195
|
-
} catch (
|
|
196
|
-
pe =
|
|
194
|
+
q.call();
|
|
195
|
+
} catch (Y) {
|
|
196
|
+
pe = Y;
|
|
197
197
|
}
|
|
198
|
-
e.call(
|
|
198
|
+
e.call(q.prototype);
|
|
199
199
|
}
|
|
200
200
|
} else {
|
|
201
201
|
try {
|
|
202
202
|
throw Error();
|
|
203
|
-
} catch (
|
|
204
|
-
pe =
|
|
203
|
+
} catch (Y) {
|
|
204
|
+
pe = Y;
|
|
205
205
|
}
|
|
206
|
-
(
|
|
206
|
+
(q = e()) && typeof q.catch == "function" && q.catch(function() {
|
|
207
207
|
});
|
|
208
208
|
}
|
|
209
|
-
} catch (
|
|
210
|
-
if (
|
|
211
|
-
return [
|
|
209
|
+
} catch (Y) {
|
|
210
|
+
if (Y && pe && typeof Y.stack == "string")
|
|
211
|
+
return [Y.stack, pe.stack];
|
|
212
212
|
}
|
|
213
213
|
return [null, null];
|
|
214
214
|
}
|
|
215
215
|
};
|
|
216
|
-
|
|
217
|
-
var
|
|
218
|
-
|
|
216
|
+
T.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
|
|
217
|
+
var k = Object.getOwnPropertyDescriptor(
|
|
218
|
+
T.DetermineComponentFrameRoot,
|
|
219
219
|
"name"
|
|
220
220
|
);
|
|
221
|
-
|
|
222
|
-
|
|
221
|
+
k && k.configurable && Object.defineProperty(
|
|
222
|
+
T.DetermineComponentFrameRoot,
|
|
223
223
|
"name",
|
|
224
224
|
{ value: "DetermineComponentFrameRoot" }
|
|
225
225
|
);
|
|
226
|
-
var h =
|
|
227
|
-
if (
|
|
228
|
-
var
|
|
229
|
-
`),
|
|
226
|
+
var h = T.DetermineComponentFrameRoot(), H = h[0], oe = h[1];
|
|
227
|
+
if (H && oe) {
|
|
228
|
+
var A = H.split(`
|
|
229
|
+
`), Q = oe.split(`
|
|
230
230
|
`);
|
|
231
|
-
for (h =
|
|
231
|
+
for (h = k = 0; k < A.length && !A[k].includes(
|
|
232
232
|
"DetermineComponentFrameRoot"
|
|
233
233
|
); )
|
|
234
|
-
|
|
235
|
-
for (; h <
|
|
234
|
+
k++;
|
|
235
|
+
for (; h < Q.length && !Q[h].includes(
|
|
236
236
|
"DetermineComponentFrameRoot"
|
|
237
237
|
); )
|
|
238
238
|
h++;
|
|
239
|
-
if (
|
|
240
|
-
for (
|
|
239
|
+
if (k === A.length || h === Q.length)
|
|
240
|
+
for (k = A.length - 1, h = Q.length - 1; 1 <= k && 0 <= h && A[k] !== Q[h]; )
|
|
241
241
|
h--;
|
|
242
|
-
for (; 1 <=
|
|
243
|
-
if (
|
|
244
|
-
if (
|
|
242
|
+
for (; 1 <= k && 0 <= h; k--, h--)
|
|
243
|
+
if (A[k] !== Q[h]) {
|
|
244
|
+
if (k !== 1 || h !== 1)
|
|
245
245
|
do
|
|
246
|
-
if (
|
|
246
|
+
if (k--, h--, 0 > h || A[k] !== Q[h]) {
|
|
247
247
|
var fe = `
|
|
248
|
-
` +
|
|
248
|
+
` + A[k].replace(
|
|
249
249
|
" at new ",
|
|
250
250
|
" at "
|
|
251
251
|
);
|
|
252
252
|
return e.displayName && fe.includes("<anonymous>") && (fe = fe.replace("<anonymous>", e.displayName)), typeof e == "function" && we.set(e, fe), fe;
|
|
253
253
|
}
|
|
254
|
-
while (1 <=
|
|
254
|
+
while (1 <= k && 0 <= h);
|
|
255
255
|
break;
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
} finally {
|
|
259
|
-
Ce = !1,
|
|
259
|
+
Ce = !1, O.H = E, l(), Error.prepareStackTrace = f;
|
|
260
260
|
}
|
|
261
|
-
return
|
|
261
|
+
return A = (A = e ? e.displayName || e.name : "") ? u(A) : "", typeof e == "function" && we.set(e, A), A;
|
|
262
262
|
}
|
|
263
|
-
function
|
|
263
|
+
function d(e) {
|
|
264
264
|
if (e == null) return "";
|
|
265
265
|
if (typeof e == "function") {
|
|
266
266
|
var c = e.prototype;
|
|
267
|
-
return
|
|
267
|
+
return p(
|
|
268
268
|
e,
|
|
269
269
|
!(!c || !c.isReactComponent)
|
|
270
270
|
);
|
|
271
271
|
}
|
|
272
272
|
if (typeof e == "string") return u(e);
|
|
273
273
|
switch (e) {
|
|
274
|
-
case
|
|
274
|
+
case $:
|
|
275
275
|
return u("Suspense");
|
|
276
|
-
case
|
|
276
|
+
case D:
|
|
277
277
|
return u("SuspenseList");
|
|
278
278
|
}
|
|
279
279
|
if (typeof e == "object")
|
|
280
280
|
switch (e.$$typeof) {
|
|
281
|
-
case J:
|
|
282
|
-
return e = m(e.render, !1), e;
|
|
283
|
-
case $:
|
|
284
|
-
return p(e.type);
|
|
285
281
|
case V:
|
|
282
|
+
return e = p(e.render, !1), e;
|
|
283
|
+
case W:
|
|
284
|
+
return d(e.type);
|
|
285
|
+
case X:
|
|
286
286
|
c = e._payload, e = e._init;
|
|
287
287
|
try {
|
|
288
|
-
return
|
|
288
|
+
return d(e(c));
|
|
289
289
|
} catch {
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
292
|
return "";
|
|
293
293
|
}
|
|
294
|
-
function
|
|
295
|
-
var e =
|
|
294
|
+
function v() {
|
|
295
|
+
var e = O.A;
|
|
296
296
|
return e === null ? null : e.getOwner();
|
|
297
297
|
}
|
|
298
|
-
function
|
|
299
|
-
if (
|
|
298
|
+
function b(e) {
|
|
299
|
+
if (M.call(e, "key")) {
|
|
300
300
|
var c = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
301
301
|
if (c && c.isReactWarning) return !1;
|
|
302
302
|
}
|
|
303
303
|
return e.key !== void 0;
|
|
304
304
|
}
|
|
305
|
-
function
|
|
305
|
+
function L(e, c) {
|
|
306
306
|
function f() {
|
|
307
307
|
Me || (Me = !0, console.error(
|
|
308
308
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
@@ -314,22 +314,22 @@ function dt() {
|
|
|
314
314
|
configurable: !0
|
|
315
315
|
});
|
|
316
316
|
}
|
|
317
|
-
function
|
|
317
|
+
function C() {
|
|
318
318
|
var e = r(this.type);
|
|
319
319
|
return ze[e] || (ze[e] = !0, console.error(
|
|
320
320
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
321
321
|
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
322
322
|
}
|
|
323
|
-
function
|
|
324
|
-
return f =
|
|
325
|
-
$$typeof:
|
|
323
|
+
function y(e, c, f, E, T, k) {
|
|
324
|
+
return f = k.ref, e = {
|
|
325
|
+
$$typeof: x,
|
|
326
326
|
type: e,
|
|
327
327
|
key: c,
|
|
328
|
-
props:
|
|
329
|
-
_owner:
|
|
328
|
+
props: k,
|
|
329
|
+
_owner: T
|
|
330
330
|
}, (f !== void 0 ? f : null) !== null ? Object.defineProperty(e, "ref", {
|
|
331
331
|
enumerable: !1,
|
|
332
|
-
get:
|
|
332
|
+
get: C
|
|
333
333
|
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
334
334
|
configurable: !1,
|
|
335
335
|
enumerable: !1,
|
|
@@ -342,102 +342,102 @@ function dt() {
|
|
|
342
342
|
value: null
|
|
343
343
|
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
344
344
|
}
|
|
345
|
-
function
|
|
346
|
-
if (typeof e == "string" || typeof e == "function" || e ===
|
|
345
|
+
function P(e, c, f, E, T, k) {
|
|
346
|
+
if (typeof e == "string" || typeof e == "function" || e === G || e === F || e === _ || e === $ || e === D || e === be || typeof e == "object" && e !== null && (e.$$typeof === X || e.$$typeof === W || e.$$typeof === le || e.$$typeof === re || e.$$typeof === V || e.$$typeof === I || e.getModuleId !== void 0)) {
|
|
347
347
|
var h = c.children;
|
|
348
348
|
if (h !== void 0)
|
|
349
|
-
if (
|
|
350
|
-
if (
|
|
351
|
-
for (
|
|
352
|
-
|
|
349
|
+
if (E)
|
|
350
|
+
if (K(h)) {
|
|
351
|
+
for (E = 0; E < h.length; E++)
|
|
352
|
+
N(h[E], e);
|
|
353
353
|
Object.freeze && Object.freeze(h);
|
|
354
354
|
} else
|
|
355
355
|
console.error(
|
|
356
356
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
357
357
|
);
|
|
358
|
-
else
|
|
358
|
+
else N(h, e);
|
|
359
359
|
} else
|
|
360
|
-
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 ?
|
|
360
|
+
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" : K(e) ? E = "array" : e !== void 0 && e.$$typeof === x ? (E = "<" + (r(e.type) || "Unknown") + " />", h = " Did you accidentally export a JSX literal instead of a component?") : E = typeof e, console.error(
|
|
361
361
|
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
|
|
362
|
-
|
|
362
|
+
E,
|
|
363
363
|
h
|
|
364
364
|
);
|
|
365
|
-
if (
|
|
365
|
+
if (M.call(c, "key")) {
|
|
366
366
|
h = r(e);
|
|
367
|
-
var
|
|
368
|
-
return
|
|
367
|
+
var H = Object.keys(c).filter(function(A) {
|
|
368
|
+
return A !== "key";
|
|
369
369
|
});
|
|
370
|
-
|
|
370
|
+
E = 0 < H.length ? "{key: someKey, " + H.join(": ..., ") + ": ...}" : "{key: someKey}", Be[h + E] || (H = 0 < H.length ? "{" + H.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
371
371
|
`A props object containing a "key" prop is being spread into JSX:
|
|
372
372
|
let props = %s;
|
|
373
373
|
<%s {...props} />
|
|
374
374
|
React keys must be passed directly to JSX without using spread:
|
|
375
375
|
let props = %s;
|
|
376
376
|
<%s key={someKey} {...props} />`,
|
|
377
|
-
|
|
377
|
+
E,
|
|
378
378
|
h,
|
|
379
|
-
|
|
379
|
+
H,
|
|
380
380
|
h
|
|
381
|
-
), Be[h +
|
|
381
|
+
), Be[h + E] = !0);
|
|
382
382
|
}
|
|
383
|
-
if (h = null, f !== void 0 && (n(f), h = "" + f),
|
|
383
|
+
if (h = null, f !== void 0 && (n(f), h = "" + f), b(c) && (n(c.key), h = "" + c.key), "key" in c) {
|
|
384
384
|
f = {};
|
|
385
385
|
for (var oe in c)
|
|
386
386
|
oe !== "key" && (f[oe] = c[oe]);
|
|
387
387
|
} else f = c;
|
|
388
|
-
return h &&
|
|
388
|
+
return h && L(
|
|
389
389
|
f,
|
|
390
390
|
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
391
|
-
),
|
|
391
|
+
), y(e, h, k, T, v(), f);
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function N(e, c) {
|
|
394
394
|
if (typeof e == "object" && e && e.$$typeof !== st) {
|
|
395
|
-
if (
|
|
395
|
+
if (K(e))
|
|
396
396
|
for (var f = 0; f < e.length; f++) {
|
|
397
|
-
var
|
|
398
|
-
|
|
397
|
+
var E = e[f];
|
|
398
|
+
m(E) && w(E, c);
|
|
399
399
|
}
|
|
400
|
-
else if (
|
|
400
|
+
else if (m(e))
|
|
401
401
|
e._store && (e._store.validated = 1);
|
|
402
402
|
else if (e === null || typeof e != "object" ? f = null : (f = ce && e[ce] || e["@@iterator"], f = typeof f == "function" ? f : null), typeof f == "function" && f !== e.entries && (f = f.call(e), f !== e))
|
|
403
403
|
for (; !(e = f.next()).done; )
|
|
404
|
-
|
|
404
|
+
m(e.value) && w(e.value, c);
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
|
-
function
|
|
408
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
407
|
+
function m(e) {
|
|
408
|
+
return typeof e == "object" && e !== null && e.$$typeof === x;
|
|
409
409
|
}
|
|
410
|
-
function
|
|
411
|
-
if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1, c =
|
|
410
|
+
function w(e, c) {
|
|
411
|
+
if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1, c = g(c), !Fe[c])) {
|
|
412
412
|
Fe[c] = !0;
|
|
413
413
|
var f = "";
|
|
414
|
-
e && e._owner != null && e._owner !==
|
|
415
|
-
var
|
|
416
|
-
|
|
417
|
-
var
|
|
418
|
-
return
|
|
414
|
+
e && e._owner != null && e._owner !== v() && (f = null, typeof e._owner.tag == "number" ? f = r(e._owner.type) : typeof e._owner.name == "string" && (f = e._owner.name), f = " It was passed a child from " + f + ".");
|
|
415
|
+
var E = O.getCurrentStack;
|
|
416
|
+
O.getCurrentStack = function() {
|
|
417
|
+
var T = d(e.type);
|
|
418
|
+
return E && (T += E() || ""), T;
|
|
419
419
|
}, console.error(
|
|
420
420
|
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
421
421
|
c,
|
|
422
422
|
f
|
|
423
|
-
),
|
|
423
|
+
), O.getCurrentStack = E;
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
|
-
function
|
|
427
|
-
var c = "", f =
|
|
426
|
+
function g(e) {
|
|
427
|
+
var c = "", f = v();
|
|
428
428
|
return f && (f = r(f.type)) && (c = `
|
|
429
429
|
|
|
430
430
|
Check the render method of \`` + f + "`."), c || (e = r(e)) && (c = `
|
|
431
431
|
|
|
432
432
|
Check the top-level render call using <` + e + ">."), c;
|
|
433
433
|
}
|
|
434
|
-
var
|
|
434
|
+
var R = Z, x = Symbol.for("react.transitional.element"), S = Symbol.for("react.portal"), G = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), F = Symbol.for("react.profiler"), re = Symbol.for("react.consumer"), le = Symbol.for("react.context"), V = Symbol.for("react.forward_ref"), $ = Symbol.for("react.suspense"), D = Symbol.for("react.suspense_list"), W = Symbol.for("react.memo"), X = Symbol.for("react.lazy"), be = Symbol.for("react.offscreen"), ce = Symbol.iterator, ye = Symbol.for("react.client.reference"), O = R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, M = Object.prototype.hasOwnProperty, z = Object.assign, I = Symbol.for("react.client.reference"), K = Array.isArray, U = 0, Pe, Re, Ne, Ge, Te, _e, Ie;
|
|
435
435
|
s.__reactDisabledLog = !0;
|
|
436
436
|
var Ee, Ae, Ce = !1, we = new (typeof WeakMap == "function" ? WeakMap : Map)(), st = Symbol.for("react.client.reference"), Me, ze = {}, Be = {}, Fe = {};
|
|
437
|
-
de.Fragment =
|
|
438
|
-
return
|
|
439
|
-
}, de.jsxs = function(e, c, f,
|
|
440
|
-
return
|
|
437
|
+
de.Fragment = G, de.jsx = function(e, c, f, E, T) {
|
|
438
|
+
return P(e, c, f, !1, E, T);
|
|
439
|
+
}, de.jsxs = function(e, c, f, E, T) {
|
|
440
|
+
return P(e, c, f, !0, E, T);
|
|
441
441
|
};
|
|
442
442
|
}()), de;
|
|
443
443
|
}
|
|
@@ -446,8 +446,8 @@ function mt() {
|
|
|
446
446
|
return He || (He = 1, process.env.NODE_ENV === "production" ? he.exports = ut() : he.exports = dt()), he.exports;
|
|
447
447
|
}
|
|
448
448
|
var o = mt();
|
|
449
|
-
const Ve = ie(),
|
|
450
|
-
const [i, n] =
|
|
449
|
+
const Ve = ie(), Ht = ({ children: r }) => {
|
|
450
|
+
const [i, n] = j(!1), [s, a] = j(!1), [l, u] = j({});
|
|
451
451
|
return /* @__PURE__ */ o.jsx(Ve.Provider, { value: { isLoading: i, setIsLoading: n, isLoadingComponent: s, setIsLoadingComponent: a, loadingProps: l, setLoadingProps: u }, children: r });
|
|
452
452
|
}, me = () => {
|
|
453
453
|
const r = se(Ve);
|
|
@@ -456,8 +456,8 @@ const Ve = ie(), Yt = ({ children: r }) => {
|
|
|
456
456
|
}, pt = ({ errorMessage: r, errorShow: i }) => /* @__PURE__ */ o.jsx("section", { className: i ? "" : "hidden", children: /* @__PURE__ */ o.jsxs("div", { className: "container mx-auto", children: [
|
|
457
457
|
/* @__PURE__ */ o.jsx("h1", { className: "text-center text-8xl my-12", children: "Errore" }),
|
|
458
458
|
/* @__PURE__ */ o.jsx("pre", { className: "text-xl", children: r })
|
|
459
|
-
] }) }), Xe = ie(),
|
|
460
|
-
const [i, n] =
|
|
459
|
+
] }) }), Xe = ie(), Yt = ({ children: r }) => {
|
|
460
|
+
const [i, n] = j({}), [s, a] = j(!1), [l, u] = j(null), p = `Creare un file config.json in public per il corretto funzionamento
|
|
461
461
|
Esempio di config.json:
|
|
462
462
|
|
|
463
463
|
{
|
|
@@ -484,63 +484,72 @@ Esempio di config.json:
|
|
|
484
484
|
"backendToken": "",
|
|
485
485
|
"isDebug": "",
|
|
486
486
|
"showHeaderButton": ""
|
|
487
|
-
}`,
|
|
488
|
-
const
|
|
489
|
-
return `${
|
|
490
|
-
},
|
|
491
|
-
const
|
|
492
|
-
|
|
493
|
-
const S =
|
|
494
|
-
S.objectStoreNames.contains(
|
|
495
|
-
},
|
|
496
|
-
}),
|
|
497
|
-
let
|
|
498
|
-
return new Promise((
|
|
499
|
-
if (!
|
|
500
|
-
|
|
487
|
+
}`, d = () => {
|
|
488
|
+
const m = /* @__PURE__ */ new Date(), w = String(m.getDate()).padStart(2, "0"), g = String(m.getMonth() + 1).padStart(2, "0"), R = m.getFullYear(), x = String(m.getHours()).padStart(2, "0"), S = String(m.getMinutes()).padStart(2, "0"), G = String(m.getSeconds()).padStart(2, "0");
|
|
489
|
+
return `${w}/${g}/${R} ${x}:${S}:${G}`;
|
|
490
|
+
}, v = (m) => new Promise((w, g) => {
|
|
491
|
+
const R = indexedDB.open("configDatabase", 1);
|
|
492
|
+
R.onupgradeneeded = (x) => {
|
|
493
|
+
const S = x.target.result;
|
|
494
|
+
S.objectStoreNames.contains(m) || S.createObjectStore(m, { keyPath: "id" });
|
|
495
|
+
}, R.onsuccess = (x) => w(x.target.result), R.onerror = (x) => g(x.target.error);
|
|
496
|
+
}), b = async (m, w) => {
|
|
497
|
+
let g = await v(m);
|
|
498
|
+
return new Promise((R, x) => {
|
|
499
|
+
if (!g) {
|
|
500
|
+
x("Errore: DB non disponibile");
|
|
501
501
|
return;
|
|
502
502
|
}
|
|
503
|
-
const S =
|
|
504
|
-
|
|
503
|
+
const S = g == null ? void 0 : g.transaction(m, "readonly"), G = S == null ? void 0 : S.objectStore(m), _ = G == null ? void 0 : G.get(w);
|
|
504
|
+
_.onsuccess = () => R(_.result), _.onerror = (F) => x(F.target.error);
|
|
505
505
|
});
|
|
506
|
-
},
|
|
507
|
-
let
|
|
508
|
-
return new Promise((
|
|
509
|
-
if (!
|
|
510
|
-
|
|
506
|
+
}, L = async (m, w) => {
|
|
507
|
+
let g = await v(m);
|
|
508
|
+
return new Promise((R, x) => {
|
|
509
|
+
if (!g) {
|
|
510
|
+
x("Errore: DB non disponibile");
|
|
511
511
|
return;
|
|
512
512
|
}
|
|
513
|
-
const S =
|
|
514
|
-
|
|
513
|
+
const S = g == null ? void 0 : g.transaction(m, "readwrite"), G = S == null ? void 0 : S.objectStore(m), _ = G == null ? void 0 : G.put(w);
|
|
514
|
+
_.onsuccess = () => R(_.result), _.onerror = (F) => x(F.target.error);
|
|
515
515
|
});
|
|
516
|
-
},
|
|
517
|
-
let
|
|
516
|
+
}, C = async (m) => {
|
|
517
|
+
let w = Date.now(), g;
|
|
518
518
|
do
|
|
519
|
-
|
|
520
|
-
while (
|
|
521
|
-
return
|
|
522
|
-
},
|
|
523
|
-
|
|
524
|
-
},
|
|
519
|
+
g = await b(m, w), g && w++;
|
|
520
|
+
while (g);
|
|
521
|
+
return w;
|
|
522
|
+
}, y = async (m, w) => {
|
|
523
|
+
w.id || (w.id = await C(m)), await L(m, w);
|
|
524
|
+
}, P = async () => {
|
|
525
525
|
try {
|
|
526
|
-
const
|
|
526
|
+
const g = {
|
|
527
527
|
...await (await fetch("/config.json")).json(),
|
|
528
|
-
openIndexedDB:
|
|
529
|
-
getDataIndexedDB:
|
|
530
|
-
setDataIndexedDB:
|
|
531
|
-
generateUniqueId:
|
|
532
|
-
setDataWithAutoId:
|
|
533
|
-
setCurrentDate:
|
|
528
|
+
openIndexedDB: v,
|
|
529
|
+
getDataIndexedDB: b,
|
|
530
|
+
setDataIndexedDB: L,
|
|
531
|
+
generateUniqueId: C,
|
|
532
|
+
setDataWithAutoId: y,
|
|
533
|
+
setCurrentDate: d
|
|
534
534
|
};
|
|
535
|
-
n(
|
|
536
|
-
} catch (
|
|
537
|
-
console.error(
|
|
535
|
+
n(g);
|
|
536
|
+
} catch (m) {
|
|
537
|
+
console.error(m), a(!0);
|
|
538
|
+
}
|
|
539
|
+
}, N = async () => {
|
|
540
|
+
try {
|
|
541
|
+
const g = (await (await fetch("/pacakge.json")).json()).version;
|
|
542
|
+
u(g);
|
|
543
|
+
} catch (m) {
|
|
544
|
+
console.error(m);
|
|
538
545
|
}
|
|
539
546
|
};
|
|
540
|
-
return
|
|
541
|
-
|
|
542
|
-
}, []),
|
|
543
|
-
|
|
547
|
+
return B(() => {
|
|
548
|
+
P();
|
|
549
|
+
}, []), B(() => {
|
|
550
|
+
i.isDevelopment === void 0 || i.isDevelopment || N();
|
|
551
|
+
}, [i]), Object.keys(i).length === 0 ? /* @__PURE__ */ o.jsx(pt, { errorShow: s, errorMessage: p }) : /* @__PURE__ */ o.jsx(Xe.Provider, { value: i, children: r });
|
|
552
|
+
}, J = () => {
|
|
544
553
|
const r = se(Xe);
|
|
545
554
|
if (r === void 0) throw new Error("Non puoi leggere i config");
|
|
546
555
|
return r;
|
|
@@ -551,7 +560,7 @@ var Ke = {
|
|
|
551
560
|
className: void 0,
|
|
552
561
|
style: void 0,
|
|
553
562
|
attr: void 0
|
|
554
|
-
}, Ye =
|
|
563
|
+
}, Ye = Z.createContext && /* @__PURE__ */ Z.createContext(Ke), vt = ["attr", "size", "title"];
|
|
555
564
|
function bt(r, i) {
|
|
556
565
|
if (r == null) return {};
|
|
557
566
|
var n = yt(r, i), s, a;
|
|
@@ -621,12 +630,12 @@ function wt(r, i) {
|
|
|
621
630
|
return (i === "string" ? String : Number)(r);
|
|
622
631
|
}
|
|
623
632
|
function Qe(r) {
|
|
624
|
-
return r && r.map((i, n) => /* @__PURE__ */
|
|
633
|
+
return r && r.map((i, n) => /* @__PURE__ */ Z.createElement(i.tag, xe({
|
|
625
634
|
key: n
|
|
626
635
|
}, i.attr), Qe(i.child)));
|
|
627
636
|
}
|
|
628
637
|
function ae(r) {
|
|
629
|
-
return (i) => /* @__PURE__ */
|
|
638
|
+
return (i) => /* @__PURE__ */ Z.createElement(jt, ge({
|
|
630
639
|
attr: xe({}, r.attr)
|
|
631
640
|
}, i), Qe(r.child));
|
|
632
641
|
}
|
|
@@ -636,28 +645,28 @@ function jt(r) {
|
|
|
636
645
|
attr: s,
|
|
637
646
|
size: a,
|
|
638
647
|
title: l
|
|
639
|
-
} = r, u = bt(r, vt),
|
|
640
|
-
return n.className && (
|
|
648
|
+
} = r, u = bt(r, vt), p = a || n.size || "1em", d;
|
|
649
|
+
return n.className && (d = n.className), r.className && (d = (d ? d + " " : "") + r.className), /* @__PURE__ */ Z.createElement("svg", ge({
|
|
641
650
|
stroke: "currentColor",
|
|
642
651
|
fill: "currentColor",
|
|
643
652
|
strokeWidth: "0"
|
|
644
653
|
}, n.attr, s, u, {
|
|
645
|
-
className:
|
|
654
|
+
className: d,
|
|
646
655
|
style: xe(xe({
|
|
647
656
|
color: r.color || n.color
|
|
648
657
|
}, n.style), r.style),
|
|
649
|
-
height:
|
|
650
|
-
width:
|
|
658
|
+
height: p,
|
|
659
|
+
width: p,
|
|
651
660
|
xmlns: "http://www.w3.org/2000/svg"
|
|
652
|
-
}), l && /* @__PURE__ */
|
|
661
|
+
}), l && /* @__PURE__ */ Z.createElement("title", null, l), r.children);
|
|
653
662
|
};
|
|
654
|
-
return Ye !== void 0 ? /* @__PURE__ */
|
|
663
|
+
return Ye !== void 0 ? /* @__PURE__ */ Z.createElement(Ye.Consumer, null, (n) => i(n)) : i(Ke);
|
|
655
664
|
}
|
|
656
665
|
function St(r) {
|
|
657
666
|
return ae({ 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: [] }] })(r);
|
|
658
667
|
}
|
|
659
|
-
const et = ie(),
|
|
660
|
-
const [i, n] =
|
|
668
|
+
const et = ie(), Zt = ({ children: r }) => {
|
|
669
|
+
const [i, n] = j(!1), [s, a] = j(), [l, u] = j(), L = {
|
|
661
670
|
showAlert: i,
|
|
662
671
|
setShowAlert: n,
|
|
663
672
|
typeAlert: s,
|
|
@@ -698,8 +707,8 @@ const et = ie(), Ut = ({ children: r }) => {
|
|
|
698
707
|
progressColor: "bg-warning-progress"
|
|
699
708
|
}
|
|
700
709
|
},
|
|
701
|
-
getIcon: (
|
|
702
|
-
switch (
|
|
710
|
+
getIcon: (C) => {
|
|
711
|
+
switch (C) {
|
|
703
712
|
case "danger":
|
|
704
713
|
return /* @__PURE__ */ o.jsx(ht, { className: "w-[20px] h-[20px]" });
|
|
705
714
|
case "info":
|
|
@@ -713,14 +722,14 @@ const et = ie(), Ut = ({ children: r }) => {
|
|
|
713
722
|
closeAlert: () => {
|
|
714
723
|
n(!i);
|
|
715
724
|
},
|
|
716
|
-
activeAlert: (
|
|
725
|
+
activeAlert: (C, y) => {
|
|
717
726
|
n(!1), setTimeout(() => {
|
|
718
|
-
a(
|
|
727
|
+
a(C), u(y), n(!0);
|
|
719
728
|
}, 50);
|
|
720
729
|
}
|
|
721
730
|
};
|
|
722
|
-
return /* @__PURE__ */ o.jsx(et.Provider, { value:
|
|
723
|
-
},
|
|
731
|
+
return /* @__PURE__ */ o.jsx(et.Provider, { value: L, children: r });
|
|
732
|
+
}, te = () => {
|
|
724
733
|
const r = se(et);
|
|
725
734
|
if (r === void 0) throw new Error("Non puoi modificare l'alert");
|
|
726
735
|
return r;
|
|
@@ -729,121 +738,121 @@ let ne;
|
|
|
729
738
|
const Ot = async (r, i, n) => {
|
|
730
739
|
if (ne) return ne;
|
|
731
740
|
try {
|
|
732
|
-
const a = await (await fetch("/config.json")).json(), l = a.baseUri, { unauthorized: u, notFound:
|
|
741
|
+
const a = await (await fetch("/config.json")).json(), l = a.baseUri, { unauthorized: u, notFound: p, defaultMessage: d } = a.axiosErrors, v = a.axiosTimeout;
|
|
733
742
|
return ne = ft.create({
|
|
734
743
|
baseURL: l,
|
|
735
|
-
timeout:
|
|
744
|
+
timeout: v
|
|
736
745
|
}), ne.interceptors.request.use(
|
|
737
|
-
(
|
|
746
|
+
(b) => b
|
|
738
747
|
), ne.interceptors.response.use(
|
|
739
|
-
(
|
|
740
|
-
(
|
|
741
|
-
if (
|
|
742
|
-
switch (r(!0), i("danger"),
|
|
748
|
+
(b) => b,
|
|
749
|
+
(b) => {
|
|
750
|
+
if (b.response)
|
|
751
|
+
switch (r(!0), i("danger"), b.response.status) {
|
|
743
752
|
case 401:
|
|
744
753
|
localStorage.removeItem("accessToken"), n(u);
|
|
745
754
|
break;
|
|
746
755
|
case 404:
|
|
747
|
-
n(
|
|
756
|
+
n(p);
|
|
748
757
|
break;
|
|
749
758
|
default:
|
|
750
|
-
n(`${
|
|
759
|
+
n(`${d} ${b.response.status || ""} ${b.response.data.error || ""}`);
|
|
751
760
|
}
|
|
752
|
-
return Promise.reject(
|
|
761
|
+
return Promise.reject(b);
|
|
753
762
|
}
|
|
754
763
|
), ne;
|
|
755
764
|
} catch (s) {
|
|
756
765
|
console.error(s);
|
|
757
766
|
}
|
|
758
|
-
}, tt = ie(),
|
|
759
|
-
const { heartbeatEndpoint: i, firstPrivatePath: n, infiniteSession: s, timeDeducted: a, authenticatedEndpoint: l, autoLogin: u, autoLoginEmail:
|
|
760
|
-
|
|
767
|
+
}, tt = ie(), Ut = ({ children: r }) => {
|
|
768
|
+
const { heartbeatEndpoint: i, firstPrivatePath: n, infiniteSession: s, timeDeducted: a, authenticatedEndpoint: l, autoLogin: u, autoLoginEmail: p, autoLoginPassword: d, setCurrentDate: v, isDebug: b, backendToken: L } = J(), { setIsLoading: C } = me(), { setShowAlert: y, setMessageAlert: P, setTypeAlert: N, activeAlert: m } = te(), w = ke(), [g, R] = j(null), [x, S] = j(), [G, _] = j(), [F, re] = j(), [le, V] = j(!1), $ = async () => await Ot(y, N, P), D = async (O = null, M) => {
|
|
769
|
+
O && O.preventDefault(), V(!0);
|
|
761
770
|
try {
|
|
762
|
-
|
|
763
|
-
const
|
|
764
|
-
auth:
|
|
765
|
-
}),
|
|
766
|
-
|
|
767
|
-
} catch (
|
|
768
|
-
console.error(
|
|
771
|
+
C(!0), y(!1);
|
|
772
|
+
const I = await (await $()).post(l, {
|
|
773
|
+
auth: M
|
|
774
|
+
}), K = I.headers.token, U = I.data;
|
|
775
|
+
K && (localStorage.setItem("accessToken", K), localStorage.setItem("user", JSON.stringify(U)), R(!0), S(K), w(`${n}${U.id}`));
|
|
776
|
+
} catch (z) {
|
|
777
|
+
console.error(z);
|
|
769
778
|
} finally {
|
|
770
|
-
|
|
779
|
+
V(!1), C(!1);
|
|
771
780
|
}
|
|
772
|
-
},
|
|
773
|
-
localStorage.removeItem("accessToken"), localStorage.removeItem("id"), localStorage.removeItem("user"),
|
|
774
|
-
},
|
|
781
|
+
}, W = () => {
|
|
782
|
+
localStorage.removeItem("accessToken"), localStorage.removeItem("id"), localStorage.removeItem("user"), R(!1), S(null);
|
|
783
|
+
}, X = async () => {
|
|
775
784
|
try {
|
|
776
|
-
const
|
|
785
|
+
const O = localStorage.getItem("accessToken"), I = (await (await $()).get(
|
|
777
786
|
`${i}`,
|
|
778
787
|
{
|
|
779
788
|
headers: {
|
|
780
|
-
Authorization:
|
|
789
|
+
Authorization: O
|
|
781
790
|
}
|
|
782
791
|
}
|
|
783
792
|
)).headers.token;
|
|
784
|
-
localStorage.setItem("accessToken",
|
|
785
|
-
} catch (
|
|
786
|
-
console.error(
|
|
793
|
+
localStorage.setItem("accessToken", I), S(I), b && console.log("nuovo token: ", I, "Data:", v());
|
|
794
|
+
} catch (O) {
|
|
795
|
+
console.error(O), W();
|
|
787
796
|
}
|
|
788
797
|
}, be = () => {
|
|
789
|
-
if (!
|
|
798
|
+
if (!x)
|
|
790
799
|
return;
|
|
791
|
-
const
|
|
792
|
-
re(
|
|
793
|
-
}, ce = async (
|
|
800
|
+
const M = at(x).exp, z = Math.floor(Date.now() / 1e3), I = (M - z) * 1e3;
|
|
801
|
+
re(I), _(I - a);
|
|
802
|
+
}, ce = async (O) => {
|
|
794
803
|
try {
|
|
795
|
-
const
|
|
804
|
+
const I = (await (await $()).get(
|
|
796
805
|
i,
|
|
797
806
|
{
|
|
798
807
|
headers: {
|
|
799
|
-
Authorization:
|
|
808
|
+
Authorization: O
|
|
800
809
|
}
|
|
801
810
|
}
|
|
802
811
|
)).data;
|
|
803
|
-
|
|
804
|
-
} catch (
|
|
805
|
-
console.error(
|
|
812
|
+
I && (localStorage.setItem("user", JSON.stringify(I)), localStorage.setItem("accessToken", O), R(!0), w(`${n}${I.id}`));
|
|
813
|
+
} catch (M) {
|
|
814
|
+
console.error(M);
|
|
806
815
|
}
|
|
807
816
|
};
|
|
808
|
-
|
|
817
|
+
B(() => {
|
|
809
818
|
if (localStorage.getItem("accessToken"))
|
|
810
|
-
|
|
819
|
+
R(!0);
|
|
811
820
|
else {
|
|
812
|
-
|
|
821
|
+
R(!1);
|
|
813
822
|
return;
|
|
814
823
|
}
|
|
815
|
-
}, []),
|
|
816
|
-
u && ce(
|
|
817
|
-
}, [u]),
|
|
818
|
-
|
|
819
|
-
}, [
|
|
824
|
+
}, []), B(() => {
|
|
825
|
+
u && ce(L);
|
|
826
|
+
}, [u]), B(() => {
|
|
827
|
+
g || u && !le && ce(L);
|
|
828
|
+
}, [g]), B(() => {
|
|
820
829
|
if (u) return;
|
|
821
830
|
be();
|
|
822
|
-
let
|
|
823
|
-
s &&
|
|
824
|
-
|
|
825
|
-
},
|
|
826
|
-
let
|
|
827
|
-
return !s &&
|
|
828
|
-
|
|
829
|
-
},
|
|
830
|
-
|
|
831
|
+
let O;
|
|
832
|
+
s && x && G && (O = setInterval(() => {
|
|
833
|
+
X();
|
|
834
|
+
}, G));
|
|
835
|
+
let M;
|
|
836
|
+
return !s && x && F && (M = setTimeout(() => {
|
|
837
|
+
W(), m("danger", "Sessione scaduta");
|
|
838
|
+
}, F)), () => {
|
|
839
|
+
O && clearInterval(O), M && clearTimeout(M);
|
|
831
840
|
};
|
|
832
|
-
}, [
|
|
841
|
+
}, [x, G]);
|
|
833
842
|
const ye = {
|
|
834
|
-
isAuthenticated:
|
|
835
|
-
setIsAuthenticated:
|
|
836
|
-
login:
|
|
837
|
-
logout:
|
|
838
|
-
setCurrentToken:
|
|
839
|
-
createAxiosInstances:
|
|
843
|
+
isAuthenticated: g,
|
|
844
|
+
setIsAuthenticated: R,
|
|
845
|
+
login: D,
|
|
846
|
+
logout: W,
|
|
847
|
+
setCurrentToken: S,
|
|
848
|
+
createAxiosInstances: $
|
|
840
849
|
};
|
|
841
850
|
return /* @__PURE__ */ o.jsx(tt.Provider, { value: ye, children: r });
|
|
842
851
|
}, ve = () => {
|
|
843
852
|
const r = se(tt);
|
|
844
853
|
if (r === void 0) throw new Error("Non sei dentro al Auth Provider");
|
|
845
854
|
return r;
|
|
846
|
-
}, rt = ie(),
|
|
855
|
+
}, rt = ie(), qt = ({ children: r, publicRoutes: i = [], privateRoutes: n = [] }) => /* @__PURE__ */ o.jsx(rt.Provider, { value: { publicRoutes: i, privateRoutes: n }, children: r }), kt = () => {
|
|
847
856
|
const r = se(rt);
|
|
848
857
|
if (r === void 0)
|
|
849
858
|
throw new Error(
|
|
@@ -858,41 +867,41 @@ Esempio:
|
|
|
858
867
|
</RouteProvider>`
|
|
859
868
|
);
|
|
860
869
|
return r;
|
|
861
|
-
}, ot = ie(),
|
|
862
|
-
const { login: i } = ve(), { clearLoginFormOnError: n } =
|
|
870
|
+
}, ot = ie(), Jt = ({ children: r }) => {
|
|
871
|
+
const { login: i } = ve(), { clearLoginFormOnError: n } = J(), s = {
|
|
863
872
|
email: "",
|
|
864
873
|
password: ""
|
|
865
|
-
}, [a, l] =
|
|
866
|
-
overrideStyle:
|
|
874
|
+
}, [a, l] = j("Accedi"), [u, p] = j("Email"), [d, v] = j("email"), [b, L] = j("example@example.it"), [C, y] = j("Accedi"), [P, N] = j(s), [m, w] = j(), [g, R] = j(), [x, S] = j(), [G, _] = j(), [F, re] = j({}), $ = {
|
|
875
|
+
overrideStyle: F,
|
|
867
876
|
setOverrideStyle: re,
|
|
868
877
|
title: a,
|
|
869
878
|
setTitle: l,
|
|
870
879
|
label: u,
|
|
871
|
-
setLabel:
|
|
872
|
-
type:
|
|
873
|
-
setType:
|
|
874
|
-
placeholder:
|
|
875
|
-
setPlaceholder:
|
|
876
|
-
buttonText:
|
|
877
|
-
setButtonText:
|
|
878
|
-
formData:
|
|
879
|
-
setFormData:
|
|
880
|
-
LogoImg:
|
|
881
|
-
setLogoImg:
|
|
882
|
-
styleCardForm:
|
|
883
|
-
setStyleCardForm:
|
|
884
|
-
styleContainerLogo:
|
|
885
|
-
setStyleContainerLogo:
|
|
886
|
-
styleLogo:
|
|
887
|
-
setStyleLogo:
|
|
888
|
-
changeData: (
|
|
889
|
-
|
|
880
|
+
setLabel: p,
|
|
881
|
+
type: d,
|
|
882
|
+
setType: v,
|
|
883
|
+
placeholder: b,
|
|
884
|
+
setPlaceholder: L,
|
|
885
|
+
buttonText: C,
|
|
886
|
+
setButtonText: y,
|
|
887
|
+
formData: P,
|
|
888
|
+
setFormData: N,
|
|
889
|
+
LogoImg: m,
|
|
890
|
+
setLogoImg: w,
|
|
891
|
+
styleCardForm: g,
|
|
892
|
+
setStyleCardForm: R,
|
|
893
|
+
styleContainerLogo: x,
|
|
894
|
+
setStyleContainerLogo: S,
|
|
895
|
+
styleLogo: G,
|
|
896
|
+
setStyleLogo: _,
|
|
897
|
+
changeData: (D, W) => {
|
|
898
|
+
N((X) => ({ ...X, [D]: W }));
|
|
890
899
|
},
|
|
891
|
-
handleLogin: (
|
|
892
|
-
i(
|
|
900
|
+
handleLogin: (D) => {
|
|
901
|
+
i(D, P), n && N(s);
|
|
893
902
|
}
|
|
894
903
|
};
|
|
895
|
-
return /* @__PURE__ */ o.jsx(ot.Provider, { value:
|
|
904
|
+
return /* @__PURE__ */ o.jsx(ot.Provider, { value: $, children: r });
|
|
896
905
|
}, nt = () => {
|
|
897
906
|
const r = se(ot);
|
|
898
907
|
if (r === void 0) throw new Error("Non puoi modificare La login");
|
|
@@ -902,38 +911,38 @@ function it(r) {
|
|
|
902
911
|
return ae({ 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: [] }] })(r);
|
|
903
912
|
}
|
|
904
913
|
const Lt = () => {
|
|
905
|
-
const { loadingProps: r } = me(), { spinner: i = !0, spinnerStyle: n, text: s, textStyle: a, children: l, containerStyle: u, overrideStyle:
|
|
906
|
-
return /* @__PURE__ */ o.jsxs("div", { className:
|
|
907
|
-
i && /* @__PURE__ */ o.jsx(it, { className:
|
|
908
|
-
l || /* @__PURE__ */ o.jsx("p", { className:
|
|
914
|
+
const { loadingProps: r } = me(), { spinner: i = !0, spinnerStyle: n, text: s, textStyle: a, children: l, containerStyle: u, overrideStyle: p = {} } = r;
|
|
915
|
+
return /* @__PURE__ */ o.jsxs("div", { className: p.container || `fixed top-0 bottom-0 left-0 right-0 flex items-center justify-center bg-loading-bg z-[999] ${u}`, children: [
|
|
916
|
+
i && /* @__PURE__ */ o.jsx(it, { className: p.spinner || `text-[20rem] relative animate-spin text-spinner ${n}` }),
|
|
917
|
+
l || /* @__PURE__ */ o.jsx("p", { className: p.text || `text-white text-2xl select-none absolute ${a}`, children: s || "Loading..." })
|
|
909
918
|
] });
|
|
910
919
|
};
|
|
911
920
|
function Pt(r) {
|
|
912
921
|
return ae({ 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: [] }] })(r);
|
|
913
922
|
}
|
|
914
923
|
const Ue = () => {
|
|
915
|
-
const { messageAlert: r, typeAlert: i, alertConfig: n, getIcon: s, closeAlert: a } =
|
|
916
|
-
return
|
|
917
|
-
let
|
|
918
|
-
const
|
|
919
|
-
|
|
920
|
-
|
|
924
|
+
const { messageAlert: r, typeAlert: i, alertConfig: n, getIcon: s, closeAlert: a } = te(), { alertTimeout: l } = J(), [u, p] = j(0), { bgColor: d, textColor: v, buttonBg: b, hoverBg: L, focusRing: C, progressColor: y } = n[i];
|
|
925
|
+
return B(() => {
|
|
926
|
+
let P;
|
|
927
|
+
const m = 100 / (l / 100);
|
|
928
|
+
P = setInterval(() => {
|
|
929
|
+
p((g) => g >= 100 ? (clearInterval(P), 100) : g + m);
|
|
921
930
|
}, 100);
|
|
922
|
-
const
|
|
931
|
+
const w = setTimeout(() => {
|
|
923
932
|
a();
|
|
924
933
|
}, l);
|
|
925
934
|
return () => {
|
|
926
|
-
clearTimeout(
|
|
935
|
+
clearTimeout(w), clearInterval(P);
|
|
927
936
|
};
|
|
928
|
-
}, []), /* @__PURE__ */ o.jsxs("div", { className: `flex items-center p-4 pt-6 ${
|
|
929
|
-
/* @__PURE__ */ o.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__ */ o.jsx("div", { className: `${
|
|
937
|
+
}, []), /* @__PURE__ */ o.jsxs("div", { className: `flex items-center p-4 pt-6 ${v} 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: [
|
|
938
|
+
/* @__PURE__ */ o.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__ */ o.jsx("div", { className: `${y} h-2.5 rounded-t-lg`, style: { width: `${u}%` } }) }),
|
|
930
939
|
s(i),
|
|
931
940
|
/* @__PURE__ */ o.jsx("div", { className: "px-4 text-sm font-medium", children: r }),
|
|
932
941
|
/* @__PURE__ */ o.jsx(
|
|
933
942
|
"button",
|
|
934
943
|
{
|
|
935
944
|
type: "button",
|
|
936
|
-
className: `ms-auto ${
|
|
945
|
+
className: `ms-auto ${b} rounded-lg focus:ring-2 ${C} p-1.5 ${L} inline-flex items-center justify-center h-8 w-8 cursor-pointer`,
|
|
937
946
|
title: "Close",
|
|
938
947
|
onClick: a,
|
|
939
948
|
children: /* @__PURE__ */ o.jsx(Pt, { className: "text-xl" })
|
|
@@ -941,28 +950,28 @@ const Ue = () => {
|
|
|
941
950
|
)
|
|
942
951
|
] });
|
|
943
952
|
}, Rt = (r) => {
|
|
944
|
-
const { isLoading: i } = me(), { showAlert: n } =
|
|
953
|
+
const { isLoading: i } = me(), { showAlert: n } = te(), s = Le(), {
|
|
945
954
|
isMain: a = !0,
|
|
946
955
|
headerComponent: l = null,
|
|
947
956
|
showHeaderOnLogin: u = !1,
|
|
948
|
-
headerExcludedRoutes:
|
|
949
|
-
footerComponent:
|
|
950
|
-
showFooterOnLogin:
|
|
951
|
-
footerExcludedRoutes:
|
|
952
|
-
} = r,
|
|
953
|
-
let
|
|
954
|
-
s.pathname === "/" ?
|
|
955
|
-
const
|
|
956
|
-
let
|
|
957
|
-
return s.pathname === "/" ?
|
|
957
|
+
headerExcludedRoutes: p = [],
|
|
958
|
+
footerComponent: d = null,
|
|
959
|
+
showFooterOnLogin: v = !1,
|
|
960
|
+
footerExcludedRoutes: b = []
|
|
961
|
+
} = r, L = p.some((N) => $e(N, s.pathname));
|
|
962
|
+
let C;
|
|
963
|
+
s.pathname === "/" ? C = l && u : C = l && !L;
|
|
964
|
+
const y = b.some((N) => $e(N, s.pathname));
|
|
965
|
+
let P;
|
|
966
|
+
return s.pathname === "/" ? P = d && v : P = d && !y, /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
958
967
|
i && /* @__PURE__ */ o.jsx(Lt, {}),
|
|
959
968
|
n && /* @__PURE__ */ o.jsx(Ue, {}),
|
|
960
|
-
|
|
969
|
+
C && l,
|
|
961
970
|
a ? /* @__PURE__ */ o.jsxs("main", { className: i ? "hidden" : "", children: [
|
|
962
971
|
n && /* @__PURE__ */ o.jsx(Ue, {}),
|
|
963
972
|
/* @__PURE__ */ o.jsx(je, {})
|
|
964
973
|
] }) : /* @__PURE__ */ o.jsx(je, {}),
|
|
965
|
-
|
|
974
|
+
P && d
|
|
966
975
|
] });
|
|
967
976
|
}, Se = (r) => {
|
|
968
977
|
const {
|
|
@@ -972,30 +981,30 @@ const Ue = () => {
|
|
|
972
981
|
inputRequired: a,
|
|
973
982
|
inputValue: l,
|
|
974
983
|
inputChange: u,
|
|
975
|
-
autoFocus:
|
|
976
|
-
inputStyle:
|
|
977
|
-
overrideStyle:
|
|
978
|
-
disabled:
|
|
979
|
-
} = r,
|
|
984
|
+
autoFocus: p,
|
|
985
|
+
inputStyle: d,
|
|
986
|
+
overrideStyle: v,
|
|
987
|
+
disabled: b
|
|
988
|
+
} = r, C = ["text", "email", "password", "search", "tel", "url"].includes(i) ? i : "text";
|
|
980
989
|
return /* @__PURE__ */ o.jsx(
|
|
981
990
|
"input",
|
|
982
991
|
{
|
|
983
|
-
type:
|
|
984
|
-
autoFocus:
|
|
992
|
+
type: C,
|
|
993
|
+
autoFocus: p,
|
|
985
994
|
id: n,
|
|
986
|
-
className:
|
|
995
|
+
className: v || `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}`,
|
|
987
996
|
placeholder: s,
|
|
988
997
|
required: a ?? !0,
|
|
989
998
|
value: l,
|
|
990
999
|
onChange: u,
|
|
991
|
-
disabled:
|
|
1000
|
+
disabled: b
|
|
992
1001
|
}
|
|
993
1002
|
);
|
|
994
1003
|
}, Oe = ({ label: r, labelId: i, labelStyle: n, overrideStyle: s }) => /* @__PURE__ */ o.jsx("label", { htmlFor: i, className: s || `show-label mb-2 text-input-label font-medium text-color-label ${n}`, children: r }), Nt = () => {
|
|
995
|
-
const { title: r, label: i, type: n, placeholder: s, buttonText: a, formData: l, changeData: u, handleLogin:
|
|
996
|
-
return /* @__PURE__ */ o.jsxs("form", { onSubmit:
|
|
997
|
-
/* @__PURE__ */ o.jsx("h1", { className:
|
|
998
|
-
/* @__PURE__ */ o.jsxs("div", { className:
|
|
1004
|
+
const { title: r, label: i, type: n, placeholder: s, buttonText: a, formData: l, changeData: u, handleLogin: p, overrideStyle: d } = nt();
|
|
1005
|
+
return /* @__PURE__ */ o.jsxs("form", { onSubmit: p, className: d.form || "form-size", children: [
|
|
1006
|
+
/* @__PURE__ */ o.jsx("h1", { className: d.title || "text-form-title-size show-title title-position m-form-title", children: r }),
|
|
1007
|
+
/* @__PURE__ */ o.jsxs("div", { className: d.containerEmail || "flex justify-center flex-col gap-1 m-input-form input-size mx-auto", children: [
|
|
999
1008
|
/* @__PURE__ */ o.jsx(Oe, { labelId: "user-email", label: i }),
|
|
1000
1009
|
/* @__PURE__ */ o.jsx(
|
|
1001
1010
|
Se,
|
|
@@ -1004,14 +1013,14 @@ const Ue = () => {
|
|
|
1004
1013
|
inputId: "user-email",
|
|
1005
1014
|
inputPlaceholder: s,
|
|
1006
1015
|
inputValue: l.email,
|
|
1007
|
-
inputChange: (
|
|
1008
|
-
u("email",
|
|
1016
|
+
inputChange: (v) => {
|
|
1017
|
+
u("email", v.target.value);
|
|
1009
1018
|
},
|
|
1010
1019
|
autoFocus: !0
|
|
1011
1020
|
}
|
|
1012
1021
|
)
|
|
1013
1022
|
] }),
|
|
1014
|
-
/* @__PURE__ */ o.jsxs("div", { className:
|
|
1023
|
+
/* @__PURE__ */ o.jsxs("div", { className: d.containerPassword || "flex justify-center flex-col gap-1 my-4 input-size mx-auto", children: [
|
|
1015
1024
|
/* @__PURE__ */ o.jsx(Oe, { labelId: "password", label: "Password" }),
|
|
1016
1025
|
/* @__PURE__ */ o.jsx(
|
|
1017
1026
|
Se,
|
|
@@ -1020,71 +1029,71 @@ const Ue = () => {
|
|
|
1020
1029
|
inputId: "password",
|
|
1021
1030
|
inputPlaceholder: "Password",
|
|
1022
1031
|
inputValue: l.password,
|
|
1023
|
-
inputChange: (
|
|
1024
|
-
u("password",
|
|
1032
|
+
inputChange: (v) => {
|
|
1033
|
+
u("password", v.target.value);
|
|
1025
1034
|
}
|
|
1026
1035
|
}
|
|
1027
1036
|
)
|
|
1028
1037
|
] }),
|
|
1029
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
1038
|
+
/* @__PURE__ */ o.jsx("div", { className: d.containerButton || "flex button-position items-center m-primary-button", children: /* @__PURE__ */ o.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: a }) })
|
|
1030
1039
|
] });
|
|
1031
|
-
}, Gt =
|
|
1032
|
-
const { styleCardForm: i, styleContainerLogo: n, styleLogo: s, overrideStyle: a } = nt(), { firstPrivatePath: l } =
|
|
1033
|
-
return
|
|
1034
|
-
const
|
|
1035
|
-
localStorage.getItem("accessToken") &&
|
|
1040
|
+
}, Gt = ({ Logo: r }) => {
|
|
1041
|
+
const { styleCardForm: i, styleContainerLogo: n, styleLogo: s, overrideStyle: a } = nt(), { firstPrivatePath: l, version: u } = J(), p = ke();
|
|
1042
|
+
return B(() => {
|
|
1043
|
+
const d = JSON.parse(localStorage.getItem("user"));
|
|
1044
|
+
localStorage.getItem("accessToken") && d.id && p(`${l}${d.id}`);
|
|
1036
1045
|
}, []), /* @__PURE__ */ o.jsxs("section", { id: "login-page", children: [
|
|
1037
|
-
/* @__PURE__ */ o.jsx("div", { className: "text-md text-primary absolute top-4 left-4", children:
|
|
1046
|
+
u && /* @__PURE__ */ o.jsx("div", { className: "text-md text-primary absolute top-4 left-4", children: u }),
|
|
1038
1047
|
/* @__PURE__ */ o.jsx("div", { className: a.container || "container mx-auto flex items-center justify-center h-screen", children: /* @__PURE__ */ o.jsxs("div", { className: a.cardForm || `bg-form card-style card-size flex flex-col sm:flex-row sm:items-center justify-center ${i}`, children: [
|
|
1039
1048
|
/* @__PURE__ */ o.jsx("div", { className: a.containerLogo || `basis-1/2 flex items-center justify-center ${n}`, children: r && /* @__PURE__ */ o.jsx(r, { className: a.logo || `login-logo h-full sm:h-auto ${s}` }) }),
|
|
1040
1049
|
/* @__PURE__ */ o.jsx(Nt, {})
|
|
1041
1050
|
] }) })
|
|
1042
1051
|
] });
|
|
1043
|
-
},
|
|
1044
|
-
const { isAuthenticated: r } = ve(), { activeAlert: i } =
|
|
1045
|
-
return
|
|
1052
|
+
}, Tt = () => {
|
|
1053
|
+
const { isAuthenticated: r } = ve(), { activeAlert: i } = te(), { autoLogin: n } = J();
|
|
1054
|
+
return B(() => {
|
|
1046
1055
|
const s = localStorage.getItem("accessToken");
|
|
1047
1056
|
!r && !s && !n && i("danger", "Non sei autorizzato");
|
|
1048
1057
|
}, []), r === null ? null : r ? /* @__PURE__ */ o.jsx(je, {}) : /* @__PURE__ */ o.jsx(Je, { to: "/", replace: !0 });
|
|
1049
|
-
},
|
|
1050
|
-
const { logout: r, setCurrentToken: i, createAxiosInstances: n } = ve(), { usersEndpoint: s } =
|
|
1058
|
+
}, _t = () => {
|
|
1059
|
+
const { logout: r, setCurrentToken: i, createAxiosInstances: n } = ve(), { usersEndpoint: s } = J(), { setIsLoading: a } = me(), { activeAlert: l } = te(), [u, p] = j(null), [d, v] = j(!1), b = JSON.parse(localStorage.getItem("user")), L = async () => {
|
|
1051
1060
|
try {
|
|
1052
|
-
|
|
1053
|
-
const
|
|
1054
|
-
if (!
|
|
1061
|
+
v(!0);
|
|
1062
|
+
const y = localStorage.getItem("accessToken");
|
|
1063
|
+
if (!y) {
|
|
1055
1064
|
r(), l("danger", "Sessione Scaduta");
|
|
1056
1065
|
return;
|
|
1057
1066
|
}
|
|
1058
|
-
const
|
|
1067
|
+
const m = (await (await n()).get(
|
|
1059
1068
|
`${s}`,
|
|
1060
1069
|
{
|
|
1061
1070
|
headers: {
|
|
1062
|
-
Authorization: `Bearer ${
|
|
1071
|
+
Authorization: `Bearer ${y}`
|
|
1063
1072
|
}
|
|
1064
1073
|
}
|
|
1065
1074
|
)).data;
|
|
1066
|
-
m
|
|
1067
|
-
} catch (
|
|
1068
|
-
console.error(
|
|
1075
|
+
p(m);
|
|
1076
|
+
} catch (y) {
|
|
1077
|
+
console.error(y), a(!1);
|
|
1069
1078
|
} finally {
|
|
1070
|
-
|
|
1079
|
+
v(!1);
|
|
1071
1080
|
}
|
|
1072
|
-
},
|
|
1081
|
+
}, C = () => {
|
|
1073
1082
|
r(), l("info", "Hai effettuato il logout");
|
|
1074
1083
|
};
|
|
1075
|
-
return
|
|
1076
|
-
const
|
|
1077
|
-
|
|
1084
|
+
return B(() => {
|
|
1085
|
+
const y = localStorage.getItem("accessToken");
|
|
1086
|
+
y && i(y);
|
|
1078
1087
|
}, []), /* @__PURE__ */ o.jsx("section", { children: /* @__PURE__ */ o.jsxs("div", { className: "container mx-auto py-8", children: [
|
|
1079
1088
|
/* @__PURE__ */ o.jsxs("div", { className: "flex items-center justify-center gap-8 h-20", children: [
|
|
1080
1089
|
/* @__PURE__ */ o.jsxs("h1", { className: "text-4xl text-center text-slate-800", children: [
|
|
1081
1090
|
"Email: ",
|
|
1082
|
-
|
|
1091
|
+
b.email
|
|
1083
1092
|
] }),
|
|
1084
1093
|
/* @__PURE__ */ o.jsx(
|
|
1085
1094
|
"button",
|
|
1086
1095
|
{
|
|
1087
|
-
onClick:
|
|
1096
|
+
onClick: C,
|
|
1088
1097
|
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]",
|
|
1089
1098
|
children: "Logout"
|
|
1090
1099
|
}
|
|
@@ -1093,19 +1102,19 @@ const Ue = () => {
|
|
|
1093
1102
|
/* @__PURE__ */ o.jsx("div", { className: "flex justify-center items-center my-12 gap-8", children: /* @__PURE__ */ o.jsx(
|
|
1094
1103
|
"button",
|
|
1095
1104
|
{
|
|
1096
|
-
onClick:
|
|
1105
|
+
onClick: L,
|
|
1097
1106
|
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)]",
|
|
1098
|
-
disabled:
|
|
1107
|
+
disabled: d,
|
|
1099
1108
|
children: "Lista degli utenti"
|
|
1100
1109
|
}
|
|
1101
1110
|
) }),
|
|
1102
|
-
/* @__PURE__ */ o.jsx("div", { className: "flex justify-center items-center", children: u && /* @__PURE__ */ o.jsx("ul", { children: u.map((
|
|
1103
|
-
|
|
1111
|
+
/* @__PURE__ */ o.jsx("div", { className: "flex justify-center items-center", children: u && /* @__PURE__ */ o.jsx("ul", { children: u.map((y) => /* @__PURE__ */ o.jsxs("li", { className: "text-xl my-4", children: [
|
|
1112
|
+
y.id,
|
|
1104
1113
|
" - ",
|
|
1105
|
-
|
|
1106
|
-
] }, `user-${
|
|
1114
|
+
y.email
|
|
1115
|
+
] }, `user-${y.id}`)) }) })
|
|
1107
1116
|
] }) });
|
|
1108
|
-
},
|
|
1117
|
+
}, It = (r) => /* @__PURE__ */ t.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", ...r }, /* @__PURE__ */ t.createElement("defs", { id: "defs1" }, /* @__PURE__ */ t.createElement("linearGradient", { id: "linearGradient27" }, /* @__PURE__ */ t.createElement("stop", { style: {
|
|
1109
1118
|
stopColor: "#ff0000",
|
|
1110
1119
|
stopOpacity: 1
|
|
1111
1120
|
}, offset: 0, id: "stop27" }), /* @__PURE__ */ t.createElement("stop", { style: {
|
|
@@ -1151,55 +1160,55 @@ const Ue = () => {
|
|
|
1151
1160
|
strokeWidth: 0,
|
|
1152
1161
|
strokeOpacity: 1,
|
|
1153
1162
|
paintOrder: "stroke markers fill"
|
|
1154
|
-
}, d: "", id: "path40", transform: "scale(0.26458333)" }))),
|
|
1155
|
-
const { publicRoutes: i, privateRoutes: n } = kt(), { firstPrivatePath: s } =
|
|
1156
|
-
logoImg: a =
|
|
1163
|
+
}, d: "", id: "path40", transform: "scale(0.26458333)" }))), Vt = (r) => {
|
|
1164
|
+
const { publicRoutes: i, privateRoutes: n } = kt(), { firstPrivatePath: s } = J(), {
|
|
1165
|
+
logoImg: a = It,
|
|
1157
1166
|
pathImg: l = "./src/assets/MyWarehouse.svg",
|
|
1158
|
-
firstPrivateElement: u = /* @__PURE__ */ o.jsx(
|
|
1159
|
-
globalLayout:
|
|
1160
|
-
isMain:
|
|
1161
|
-
headerComponent:
|
|
1162
|
-
showHeaderOnLogin:
|
|
1163
|
-
headerExcludedRoutes:
|
|
1164
|
-
footerComponent:
|
|
1165
|
-
showFooterOnLogin:
|
|
1166
|
-
footerExcludedRoutes:
|
|
1167
|
-
privateProvider:
|
|
1168
|
-
customProvider:
|
|
1169
|
-
} = r,
|
|
1167
|
+
firstPrivateElement: u = /* @__PURE__ */ o.jsx(_t, {}),
|
|
1168
|
+
globalLayout: p,
|
|
1169
|
+
isMain: d,
|
|
1170
|
+
headerComponent: v,
|
|
1171
|
+
showHeaderOnLogin: b,
|
|
1172
|
+
headerExcludedRoutes: L,
|
|
1173
|
+
footerComponent: C,
|
|
1174
|
+
showFooterOnLogin: y,
|
|
1175
|
+
footerExcludedRoutes: P,
|
|
1176
|
+
privateProvider: N,
|
|
1177
|
+
customProvider: m
|
|
1178
|
+
} = r, w = p || /* @__PURE__ */ o.jsx(
|
|
1170
1179
|
Rt,
|
|
1171
1180
|
{
|
|
1172
|
-
isMain:
|
|
1173
|
-
headerComponent:
|
|
1174
|
-
showHeaderOnLogin:
|
|
1175
|
-
headerExcludedRoutes:
|
|
1176
|
-
footerComponent:
|
|
1177
|
-
showFooterOnLogin:
|
|
1178
|
-
footerExcludedRoutes:
|
|
1181
|
+
isMain: d,
|
|
1182
|
+
headerComponent: v,
|
|
1183
|
+
showHeaderOnLogin: b,
|
|
1184
|
+
headerExcludedRoutes: L,
|
|
1185
|
+
footerComponent: C,
|
|
1186
|
+
showFooterOnLogin: y,
|
|
1187
|
+
footerExcludedRoutes: P
|
|
1179
1188
|
}
|
|
1180
|
-
),
|
|
1181
|
-
const
|
|
1182
|
-
l && (
|
|
1189
|
+
), g = N ? Z.cloneElement(N, {}, m) : /* @__PURE__ */ o.jsx(Tt, { children: m }), R = () => {
|
|
1190
|
+
const x = document.querySelector("link[rel='icon']");
|
|
1191
|
+
l && (x.href = l);
|
|
1183
1192
|
};
|
|
1184
|
-
return
|
|
1185
|
-
|
|
1186
|
-
}, []), /* @__PURE__ */ o.jsx(lt, { children: /* @__PURE__ */ o.jsxs(
|
|
1187
|
-
/* @__PURE__ */ o.jsxs(
|
|
1188
|
-
/* @__PURE__ */ o.jsx(
|
|
1189
|
-
i.map((
|
|
1193
|
+
return B(() => {
|
|
1194
|
+
R();
|
|
1195
|
+
}, []), /* @__PURE__ */ o.jsx(lt, { children: /* @__PURE__ */ o.jsxs(ee, { element: p === "none" ? null : w, children: [
|
|
1196
|
+
/* @__PURE__ */ o.jsxs(ee, { path: "/", children: [
|
|
1197
|
+
/* @__PURE__ */ o.jsx(ee, { index: !0, element: /* @__PURE__ */ o.jsx(Gt, { Logo: a }) }),
|
|
1198
|
+
i.map((x, S) => /* @__PURE__ */ o.jsx(ee, { path: x.path, element: x.element }, `public-${S}`))
|
|
1190
1199
|
] }),
|
|
1191
|
-
/* @__PURE__ */ o.jsxs(
|
|
1192
|
-
/* @__PURE__ */ o.jsx(
|
|
1193
|
-
n.map((
|
|
1200
|
+
/* @__PURE__ */ o.jsxs(ee, { element: g, children: [
|
|
1201
|
+
/* @__PURE__ */ o.jsx(ee, { path: `${s ?? "/dashboard/"}:id`, element: u }),
|
|
1202
|
+
n.map((x, S) => /* @__PURE__ */ o.jsx(ee, { path: x.path, element: x.element }, `private-${S}`))
|
|
1194
1203
|
] })
|
|
1195
1204
|
] }) });
|
|
1196
|
-
},
|
|
1205
|
+
}, Xt = ({ children: r }) => {
|
|
1197
1206
|
var a;
|
|
1198
|
-
const i = Le(), { activeAlert: n } =
|
|
1199
|
-
return
|
|
1207
|
+
const i = Le(), { activeAlert: n } = te(), s = JSON.parse(localStorage.getItem("user"));
|
|
1208
|
+
return B(() => {
|
|
1200
1209
|
(!s || !s.admin) && n("warning", "Non puoi accedere a questa pagina");
|
|
1201
1210
|
}, [s]), !s || !s.admin ? /* @__PURE__ */ o.jsx(Je, { to: ((a = i.state) == null ? void 0 : a.from) || "/", replace: !0 }) : r;
|
|
1202
|
-
},
|
|
1211
|
+
}, Kt = ({ spinner: r = !0, spinnerStyle: i, text: n, textStyle: s, children: a, containerStyle: l, overrideStyle: u = {} }) => /* @__PURE__ */ o.jsxs("div", { className: u.container || `w-full h-full relative flex items-center justify-center ${l}`, children: [
|
|
1203
1212
|
r && /* @__PURE__ */ o.jsx(it, { className: u.spinner || `text-[20rem] animate-spin text-black ${i}` }),
|
|
1204
1213
|
a || /* @__PURE__ */ o.jsx("p", { className: u.text || `text-black text-2xl select-none absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 ${s}`, children: n || "Loading..." })
|
|
1205
1214
|
] }), qe = ({ isTag: r = !1, value: i, label: n, placeholder: s, id: a, onChange: l, error: u = null }) => /* @__PURE__ */ o.jsxs("div", { className: `flex items-center justify-center relative ${r ? "gap-4 mb-2" : "gap-1 m-4"}`, children: [
|
|
@@ -1217,7 +1226,7 @@ const Ue = () => {
|
|
|
1217
1226
|
}
|
|
1218
1227
|
),
|
|
1219
1228
|
u && /* @__PURE__ */ o.jsx("p", { className: "text-red-600 text-[13px] absolute bottom-0 left-26 translate-y-[20px]", children: u })
|
|
1220
|
-
] }),
|
|
1229
|
+
] }), Qt = ({ title: r, showTag: i, value: n, tag: s, showButton: a, handleClick: l }) => /* @__PURE__ */ o.jsxs("div", { className: `border border-slate-300 rounded-xl p-2 m-2 shadow-xl transition-all duration-700 transform ${r === "TAG B" ? "delay-200" : "mb-4"} ${i ? "opacity-100 translate-y-0" : "opacity-0 translate-y-10"}`, children: [
|
|
1221
1230
|
/* @__PURE__ */ o.jsx("h2", { className: "text-center mb-2 text-2xl", children: r }),
|
|
1222
1231
|
/* @__PURE__ */ o.jsx(
|
|
1223
1232
|
qe,
|
|
@@ -1249,11 +1258,11 @@ const Ue = () => {
|
|
|
1249
1258
|
}
|
|
1250
1259
|
) })
|
|
1251
1260
|
] });
|
|
1252
|
-
function
|
|
1261
|
+
function At(r) {
|
|
1253
1262
|
return ae({ tag: "svg", attr: { viewBox: "0 0 16 16", fill: "currentColor" }, child: [{ tag: "path", attr: { fillRule: "evenodd", clipRule: "evenodd", d: "M11.04 1.33L12.71 3l.29.71v.33h-.5l-.5.5v-.83l-1.67-1.67H10v4H4v-4H2v10h3l-.5 1H2l-1-1v-10l1-1h8.33l.71.29zM7 5h2V2H7v3zm6.5 0L15 6.5l-.02.69-5.5 5.5-.13.12-.37.37-.1.09-3 1.5-.67-.67 1.5-3 .09-.1.37-.37.12-.13 5.5-5.5h.71zm-6.22 7.24l-.52 1 1.04-.48-.52-.52zm.69-1.03l.79.79 5.15-5.15-.79-.79-5.15 5.15z" }, child: [] }] })(r);
|
|
1254
1263
|
}
|
|
1255
|
-
const
|
|
1256
|
-
const
|
|
1264
|
+
const e0 = ({ minReadingPower: r, maxReadingPower: i, stepRangePower: n, rangeValue: s, setRangeValue: a, show: l, handleClick: u }) => {
|
|
1265
|
+
const p = (s - r) / (i - r) * 100;
|
|
1257
1266
|
return /* @__PURE__ */ o.jsxs("div", { className: `border border-slate-300 rounded-xl p-2 m-2 shadow-xl transition-all duration-700 transform ${l ? "opacity-100 translate-y-0" : "opacity-0 translate-y-10"}`, children: [
|
|
1258
1267
|
/* @__PURE__ */ o.jsx("h2", { className: "text-center my-4 text-2xl", children: "Configurazione Potenza" }),
|
|
1259
1268
|
/* @__PURE__ */ o.jsxs("div", { className: "relative my-12 w-[90%] mx-auto", children: [
|
|
@@ -1266,7 +1275,7 @@ const t0 = ({ minReadingPower: r, maxReadingPower: i, stepRangePower: n, rangeVa
|
|
|
1266
1275
|
max: i,
|
|
1267
1276
|
step: n,
|
|
1268
1277
|
value: s,
|
|
1269
|
-
onChange: (
|
|
1278
|
+
onChange: (d) => a(Number(d.target.value)),
|
|
1270
1279
|
className: "w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer accent-primary-accent"
|
|
1271
1280
|
}
|
|
1272
1281
|
),
|
|
@@ -1274,7 +1283,7 @@ const t0 = ({ minReadingPower: r, maxReadingPower: i, stepRangePower: n, rangeVa
|
|
|
1274
1283
|
"div",
|
|
1275
1284
|
{
|
|
1276
1285
|
className: "absolute bottom-8 transform -translate-x-1/2 bg-white border border-gray-200 text-sm text-gray-800 py-1 px-2 rounded-lg shadow-md transition-opacity",
|
|
1277
|
-
style: { left: `${
|
|
1286
|
+
style: { left: `${p}%` },
|
|
1278
1287
|
children: s
|
|
1279
1288
|
}
|
|
1280
1289
|
)
|
|
@@ -1286,12 +1295,12 @@ const t0 = ({ minReadingPower: r, maxReadingPower: i, stepRangePower: n, rangeVa
|
|
|
1286
1295
|
className: "py-2 px-4 flex items-center justify-center gap-1 bg-save-button text-white rounded-lg shadow-md transition duration-200 ease-in-out transform active:translate-y-[2px] cursor-pointer",
|
|
1287
1296
|
children: [
|
|
1288
1297
|
"Salva",
|
|
1289
|
-
/* @__PURE__ */ o.jsx(
|
|
1298
|
+
/* @__PURE__ */ o.jsx(At, {})
|
|
1290
1299
|
]
|
|
1291
1300
|
}
|
|
1292
1301
|
) })
|
|
1293
1302
|
] });
|
|
1294
|
-
},
|
|
1303
|
+
}, t0 = ({ show: r, isConfigPage: i, handleSelectFile: n }) => /* @__PURE__ */ o.jsxs("div", { className: `${i ? `${r ? "opacity-100 translate-y-0 delay-200" : "opacity-0 translate-y-10"}` : ""} p-4 text-center transition-all duration-700 transform`, children: [
|
|
1295
1304
|
/* @__PURE__ */ o.jsxs("h2", { className: "text-xl my-4", children: [
|
|
1296
1305
|
"Seleziona il file ",
|
|
1297
1306
|
/* @__PURE__ */ o.jsx("strong", { children: "config.json" }),
|
|
@@ -1299,13 +1308,13 @@ const t0 = ({ minReadingPower: r, maxReadingPower: i, stepRangePower: n, rangeVa
|
|
|
1299
1308
|
] }),
|
|
1300
1309
|
/* @__PURE__ */ o.jsx("button", { onClick: n, className: "my-4 bg-blue-500 text-white px-4 py-2 rounded-lg", children: "Seleziona file" })
|
|
1301
1310
|
] });
|
|
1302
|
-
function
|
|
1311
|
+
function Mt(r) {
|
|
1303
1312
|
return ae({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M312 372c-7.7 0-14 6.3-14 14 0 9.9-8.1 18-18 18H94c-9.9 0-18-8.1-18-18V126c0-9.9 8.1-18 18-18h186c9.9 0 18 8.1 18 18 0 7.7 6.3 14 14 14s14-6.3 14-14c0-25.4-20.6-46-46-46H94c-25.4 0-46 20.6-46 46v260c0 25.4 20.6 46 46 46h186c25.4 0 46-20.6 46-46 0-7.7-6.3-14-14-14z" }, child: [] }, { tag: "path", attr: { d: "M372.9 158.1c-2.6-2.6-6.1-4.1-9.9-4.1-3.7 0-7.3 1.4-9.9 4.1-5.5 5.5-5.5 14.3 0 19.8l65.2 64.2H162c-7.7 0-14 6.3-14 14s6.3 14 14 14h256.6L355 334.2c-5.4 5.4-5.4 14.3 0 19.8l.1.1c2.7 2.5 6.2 3.9 9.8 3.9 3.8 0 7.3-1.4 9.9-4.1l82.6-82.4c4.3-4.3 6.5-9.3 6.5-14.7 0-5.3-2.3-10.3-6.5-14.5l-84.5-84.2z" }, child: [] }] })(r);
|
|
1304
1313
|
}
|
|
1305
|
-
function
|
|
1314
|
+
function zt(r) {
|
|
1306
1315
|
return ae({ tag: "svg", attr: { version: "1.2", baseProfile: "tiny", viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M12 9.059v-2.559c0-.256-.098-.512-.293-.708-.195-.195-.451-.292-.707-.292s-.512.097-.707.292l-6.293 6.208 6.293 6.207c.195.195.451.293.707.293s.512-.098.707-.293.293-.452.293-.707v-2.489c2.75.068 5.755.566 8 3.989v-1c0-4.633-3.5-8.443-8-8.941z" }, child: [] }] })(r);
|
|
1307
1316
|
}
|
|
1308
|
-
const
|
|
1317
|
+
const Bt = (r) => /* @__PURE__ */ t.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", ...r }, /* @__PURE__ */ t.createElement("defs", { id: "defs1" }, /* @__PURE__ */ t.createElement("linearGradient", { id: "linearGradient27" }, /* @__PURE__ */ t.createElement("stop", { style: {
|
|
1309
1318
|
stopColor: "#ff0000",
|
|
1310
1319
|
stopOpacity: 1
|
|
1311
1320
|
}, offset: 0, id: "stop27" }), /* @__PURE__ */ t.createElement("stop", { style: {
|
|
@@ -1370,30 +1379,30 @@ const Ft = (r) => /* @__PURE__ */ t.createElement("svg", { width: "108.41262mm",
|
|
|
1370
1379
|
strokeWidth: 0,
|
|
1371
1380
|
strokeOpacity: 1,
|
|
1372
1381
|
paintOrder: "stroke markers fill"
|
|
1373
|
-
}, d: "", id: "path40", transform: "scale(0.26458333)" }))),
|
|
1374
|
-
const { logout: n } = ve(), { activeAlert: s } =
|
|
1382
|
+
}, d: "", id: "path40", transform: "scale(0.26458333)" }))), r0 = ({ Logo: r, logo: i }) => {
|
|
1383
|
+
const { logout: n } = ve(), { activeAlert: s } = te(), { autoLogin: a, configRoutes: l, firstPrivateTitle: u, showHeaderButton: p } = J(), { isLoading: d } = me(), v = Le(), b = ke(), L = () => {
|
|
1375
1384
|
n(), s("info", "Hai effettuato il logout");
|
|
1376
|
-
},
|
|
1377
|
-
return /* @__PURE__ */ o.jsx("header", { className:
|
|
1378
|
-
/* @__PURE__ */ o.jsx("figure", { children: r && typeof r == "function" ? /* @__PURE__ */ o.jsx(r, { className: "header-logo-size" }) : i ? /* @__PURE__ */ o.jsx("img", { src: i, alt: "Logo", className: "header-logo-size" }) : /* @__PURE__ */ o.jsx(
|
|
1379
|
-
/* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx("p", { children: (
|
|
1385
|
+
}, C = l.find((P) => P.path === v.pathname), y = ct("home/:id");
|
|
1386
|
+
return /* @__PURE__ */ o.jsx("header", { className: d ? "hidden" : "", children: /* @__PURE__ */ o.jsxs("nav", { className: "header-size flex items-center justify-between px-2 shadow-lg border-b gap-2 border-b-gray-300", children: [
|
|
1387
|
+
/* @__PURE__ */ o.jsx("figure", { children: r && typeof r == "function" ? /* @__PURE__ */ o.jsx(r, { className: "header-logo-size" }) : i ? /* @__PURE__ */ o.jsx("img", { src: i, alt: "Logo", className: "header-logo-size" }) : /* @__PURE__ */ o.jsx(Bt, { className: "header-logo-size" }) }),
|
|
1388
|
+
/* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx("p", { children: (C == null ? void 0 : C.title) || u }) }),
|
|
1380
1389
|
/* @__PURE__ */ o.jsxs("div", { children: [
|
|
1381
|
-
!a &&
|
|
1390
|
+
!a && y && /* @__PURE__ */ o.jsx(
|
|
1382
1391
|
"button",
|
|
1383
1392
|
{
|
|
1384
1393
|
className: "h-[48px] w-[48px] flex items-center justify-center bg-red-600 text-white rounded-lg shadow-md transition duration-200 ease-in-out transform active:translate-y-[2px] cursor-pointer",
|
|
1385
1394
|
type: "button",
|
|
1386
|
-
onClick:
|
|
1387
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1395
|
+
onClick: L,
|
|
1396
|
+
children: /* @__PURE__ */ o.jsx(Mt, { className: "text-4xl w-full" })
|
|
1388
1397
|
}
|
|
1389
1398
|
),
|
|
1390
|
-
!
|
|
1399
|
+
!y && p && /* @__PURE__ */ o.jsx(
|
|
1391
1400
|
"button",
|
|
1392
1401
|
{
|
|
1393
1402
|
className: "h-[48px] w-[48px] flex items-center justify-center bg-sky-600 text-white rounded-lg shadow-md transition duration-200 ease-in-out transform active:translate-y-[2px] cursor-pointer",
|
|
1394
1403
|
type: "button",
|
|
1395
|
-
onClick: () =>
|
|
1396
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1404
|
+
onClick: () => b(-1),
|
|
1405
|
+
children: /* @__PURE__ */ o.jsx(zt, { className: "text-4xl w-full" })
|
|
1397
1406
|
}
|
|
1398
1407
|
)
|
|
1399
1408
|
] })
|
|
@@ -1401,44 +1410,44 @@ const Ft = (r) => /* @__PURE__ */ t.createElement("svg", { width: "108.41262mm",
|
|
|
1401
1410
|
};
|
|
1402
1411
|
export {
|
|
1403
1412
|
Ue as Alert,
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1413
|
+
Zt as AlertProvider,
|
|
1414
|
+
Xt as AuthAdmin,
|
|
1415
|
+
Tt as AuthPage,
|
|
1416
|
+
Ut as AuthProvider,
|
|
1417
|
+
i0 as BrowserRouter,
|
|
1418
|
+
e0 as CardInputRange,
|
|
1419
|
+
Qt as CardInputTag,
|
|
1420
|
+
t0 as ConfigFileReader,
|
|
1421
|
+
Yt as ConfigProvider,
|
|
1422
|
+
_t as Dashboard,
|
|
1414
1423
|
Rt as DefaultLayout,
|
|
1415
1424
|
pt as ErrorPage,
|
|
1416
|
-
|
|
1425
|
+
r0 as Header,
|
|
1417
1426
|
Se as Input,
|
|
1418
1427
|
qe as InputGroup,
|
|
1419
1428
|
Oe as InputLabel,
|
|
1420
|
-
|
|
1429
|
+
s0 as Link,
|
|
1421
1430
|
Lt as Loading,
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1431
|
+
Kt as LoadingComponent,
|
|
1432
|
+
Ht as LoadingProvider,
|
|
1433
|
+
Gt as Login,
|
|
1425
1434
|
Nt as LoginForm,
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1435
|
+
Jt as LoginFormProvider,
|
|
1436
|
+
a0 as NavLink,
|
|
1437
|
+
l0 as Outlet,
|
|
1438
|
+
Vt as PackageRoutes,
|
|
1439
|
+
c0 as Route,
|
|
1440
|
+
qt as RouteProvider,
|
|
1441
|
+
f0 as Routes,
|
|
1442
|
+
h0 as axios,
|
|
1434
1443
|
Ot as fetchAxiosConfig,
|
|
1435
|
-
|
|
1444
|
+
te as useAlert,
|
|
1436
1445
|
ve as useAuth,
|
|
1437
|
-
|
|
1446
|
+
J as useConfig,
|
|
1438
1447
|
me as useLoading,
|
|
1439
|
-
|
|
1448
|
+
u0 as useLocation,
|
|
1440
1449
|
nt as useLoginForm,
|
|
1441
|
-
|
|
1442
|
-
|
|
1450
|
+
d0 as useMatch,
|
|
1451
|
+
m0 as useNavigate,
|
|
1443
1452
|
kt as useRoutesInjection
|
|
1444
1453
|
};
|