@sito/dashboard-app 0.0.57 → 0.0.58
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/README.md +3 -1
- package/dist/dashboard-app.cjs +1 -1
- package/dist/dashboard-app.js +357 -354
- package/dist/providers/Auth/authContext.d.ts +1 -0
- package/package.json +1 -1
package/dist/dashboard-app.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
var Ye = Object.defineProperty;
|
|
2
2
|
var Xe = (r, e, s) => e in r ? Ye(r, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : r[e] = s;
|
|
3
|
-
var
|
|
3
|
+
var A = (r, e, s) => Xe(r, typeof e != "symbol" ? e + "" : e, s);
|
|
4
4
|
import "./main.css";
|
|
5
5
|
import { State as Ze, inputStateClassName as et, labelStateClassName as tt, helperTextStateClassName as st, useTranslation as k, Button as H, Loading as re, TextInput as rt, FileInput as nt, IconButton as ot, Actions as it, ActionsDropdown as at, useTableOptions as ct, Badge as lt, Action as ut } from "@sito/dashboard";
|
|
6
6
|
export * from "@sito/dashboard";
|
|
7
|
-
import { Action as
|
|
8
|
-
import { jsxs as
|
|
7
|
+
import { Action as pr, Actions as gr, ActionsDropdown as br, Button as yr } from "@sito/dashboard";
|
|
8
|
+
import { jsxs as E, jsx as h, Fragment as ae } from "react/jsx-runtime";
|
|
9
9
|
import { FontAwesomeIcon as q } from "@fortawesome/react-fontawesome";
|
|
10
|
-
import { forwardRef as
|
|
10
|
+
import { forwardRef as xe, useState as R, useCallback as S, useEffect as M, useReducer as $e, useRef as F, useMemo as V, createContext as X, useContext as Y, useLayoutEffect as dt } from "react";
|
|
11
11
|
import { faEyeSlash as mt, faEye as ht, faClose as De, faTrash as ft, faRotateLeft as Le, faPencil as pt, faCircleNotch as Re, faCloudArrowDown as gt, faCloudUpload as bt, faArrowUp as yt, faArrowLeft as wt, faAdd as ve, faFilter as St, faBars as Tt, faSearch as Ct, faCircleCheck as vt, faWarning as Et } from "@fortawesome/free-solid-svg-icons";
|
|
12
12
|
import { createPortal as Ie } from "react-dom";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
13
|
+
import { faSadTear as kt } from "@fortawesome/free-regular-svg-icons";
|
|
14
|
+
import { QueryClient as Nt, QueryClientProvider as _e, useMutation as ne, useQueryClient as Z, useQuery as At } from "@tanstack/react-query";
|
|
15
15
|
import { useForm as Pe } from "react-hook-form";
|
|
16
|
-
const Ee = (r) => r == null ? !1 : `${r}`.length > 0, vs =
|
|
16
|
+
const Ee = (r) => r == null ? !1 : `${r}`.length > 0, vs = xe(function(r, e) {
|
|
17
17
|
const {
|
|
18
18
|
value: s,
|
|
19
19
|
defaultValue: t,
|
|
@@ -29,29 +29,29 @@ const Ee = (r) => r == null ? !1 : `${r}`.length > 0, vs = $e(function(r, e) {
|
|
|
29
29
|
labelClassName: f = "",
|
|
30
30
|
helperText: p = "",
|
|
31
31
|
helperTextClassName: b = "",
|
|
32
|
-
...
|
|
33
|
-
} = r,
|
|
32
|
+
...y
|
|
33
|
+
} = r, g = s !== void 0, [T, w] = R(
|
|
34
34
|
() => Ee(t)
|
|
35
|
-
),
|
|
36
|
-
|
|
35
|
+
), v = g ? Ee(s) : T, N = (U) => {
|
|
36
|
+
g || w(U.currentTarget.value.length > 0), n == null || n(U);
|
|
37
37
|
};
|
|
38
|
-
return /* @__PURE__ */
|
|
38
|
+
return /* @__PURE__ */ E("div", { className: `form-paragraph-container group ${d}`, children: [
|
|
39
39
|
/* @__PURE__ */ h(
|
|
40
40
|
"textarea",
|
|
41
41
|
{
|
|
42
42
|
ref: e,
|
|
43
43
|
name: i,
|
|
44
44
|
id: c,
|
|
45
|
-
className: `text-input text-area form-paragraph-textarea peer ${et(o)} ${
|
|
45
|
+
className: `text-input text-area form-paragraph-textarea peer ${et(o)} ${v ? "has-value" : ""} ${y.placeholder ? "has-placeholder" : ""} ${m}`,
|
|
46
46
|
required: u,
|
|
47
47
|
defaultValue: t,
|
|
48
|
-
...
|
|
49
|
-
onChange:
|
|
48
|
+
...g ? { value: s } : {},
|
|
49
|
+
onChange: N,
|
|
50
50
|
disabled: l,
|
|
51
|
-
...
|
|
51
|
+
...y
|
|
52
52
|
}
|
|
53
53
|
),
|
|
54
|
-
/* @__PURE__ */
|
|
54
|
+
/* @__PURE__ */ E(
|
|
55
55
|
"label",
|
|
56
56
|
{
|
|
57
57
|
htmlFor: c,
|
|
@@ -79,10 +79,10 @@ const Ee = (r) => r == null ? !1 : `${r}`.length > 0, vs = $e(function(r, e) {
|
|
|
79
79
|
buttonEnd: i = !0,
|
|
80
80
|
reset: c
|
|
81
81
|
} = r;
|
|
82
|
-
return /* @__PURE__ */
|
|
82
|
+
return /* @__PURE__ */ E("form", { className: "form-container", onSubmit: t(n), children: [
|
|
83
83
|
s,
|
|
84
|
-
/* @__PURE__ */
|
|
85
|
-
/* @__PURE__ */
|
|
84
|
+
/* @__PURE__ */ E("div", { className: `form-actions ${i ? "end" : ""}`, children: [
|
|
85
|
+
/* @__PURE__ */ E(
|
|
86
86
|
H,
|
|
87
87
|
{
|
|
88
88
|
type: "submit",
|
|
@@ -117,7 +117,7 @@ const Ee = (r) => r == null ? !1 : `${r}`.length > 0, vs = $e(function(r, e) {
|
|
|
117
117
|
)
|
|
118
118
|
] })
|
|
119
119
|
] });
|
|
120
|
-
}, ks =
|
|
120
|
+
}, ks = xe(function(r, e) {
|
|
121
121
|
const { t: s } = k(), [t, n] = R(!1);
|
|
122
122
|
return /* @__PURE__ */ h(rt, { ...r, type: t ? "text" : "password", ref: e, children: /* @__PURE__ */ h(
|
|
123
123
|
z,
|
|
@@ -132,7 +132,7 @@ const Ee = (r) => r == null ? !1 : `${r}`.length > 0, vs = $e(function(r, e) {
|
|
|
132
132
|
icon: t ? mt : ht
|
|
133
133
|
}
|
|
134
134
|
) });
|
|
135
|
-
}),
|
|
135
|
+
}), ye = (r) => {
|
|
136
136
|
const { t: e } = k(), {
|
|
137
137
|
title: s,
|
|
138
138
|
children: t,
|
|
@@ -171,12 +171,12 @@ const Ee = (r) => r == null ? !1 : `${r}`.length > 0, vs = $e(function(r, e) {
|
|
|
171
171
|
"aria-hidden": !o,
|
|
172
172
|
onClick: u,
|
|
173
173
|
className: `dialog-backdrop animated ${o ? `opened ${a}` : "closed"} ${i}`,
|
|
174
|
-
children: /* @__PURE__ */
|
|
174
|
+
children: /* @__PURE__ */ E(
|
|
175
175
|
"div",
|
|
176
176
|
{
|
|
177
177
|
className: `dialog elevated animated ${o ? `opened ${a}` : "closed"} ${c}`,
|
|
178
178
|
children: [
|
|
179
|
-
/* @__PURE__ */
|
|
179
|
+
/* @__PURE__ */ E("div", { className: "dialog-header", children: [
|
|
180
180
|
/* @__PURE__ */ h("h3", { className: "dialog-title", children: s }),
|
|
181
181
|
/* @__PURE__ */ h(
|
|
182
182
|
z,
|
|
@@ -201,7 +201,7 @@ const Ee = (r) => r == null ? !1 : `${r}`.length > 0, vs = $e(function(r, e) {
|
|
|
201
201
|
),
|
|
202
202
|
document.body
|
|
203
203
|
);
|
|
204
|
-
},
|
|
204
|
+
}, we = (r) => {
|
|
205
205
|
const {
|
|
206
206
|
primaryText: e,
|
|
207
207
|
cancelText: s,
|
|
@@ -219,12 +219,12 @@ const Ee = (r) => r == null ? !1 : `${r}`.length > 0, vs = $e(function(r, e) {
|
|
|
219
219
|
cancelAriaLabel: p,
|
|
220
220
|
extraActions: b = []
|
|
221
221
|
} = r;
|
|
222
|
-
return /* @__PURE__ */
|
|
222
|
+
return /* @__PURE__ */ E(
|
|
223
223
|
"div",
|
|
224
224
|
{
|
|
225
225
|
className: `dialog-actions ${u ? "end" : ""} ${a}`,
|
|
226
226
|
children: [
|
|
227
|
-
/* @__PURE__ */
|
|
227
|
+
/* @__PURE__ */ E(
|
|
228
228
|
H,
|
|
229
229
|
{
|
|
230
230
|
type: c,
|
|
@@ -248,7 +248,7 @@ const Ee = (r) => r == null ? !1 : `${r}`.length > 0, vs = $e(function(r, e) {
|
|
|
248
248
|
]
|
|
249
249
|
}
|
|
250
250
|
),
|
|
251
|
-
b == null ? void 0 : b.map((
|
|
251
|
+
b == null ? void 0 : b.map((y) => /* @__PURE__ */ h(H, { ...y }, y.id)),
|
|
252
252
|
/* @__PURE__ */ h(
|
|
253
253
|
H,
|
|
254
254
|
{
|
|
@@ -275,10 +275,10 @@ const Ee = (r) => r == null ? !1 : `${r}`.length > 0, vs = $e(function(r, e) {
|
|
|
275
275
|
extraActions: a = [],
|
|
276
276
|
...l
|
|
277
277
|
} = r;
|
|
278
|
-
return /* @__PURE__ */ h(
|
|
278
|
+
return /* @__PURE__ */ h(ye, { ...l, handleClose: o, children: /* @__PURE__ */ E("form", { onSubmit: t(n), children: [
|
|
279
279
|
/* @__PURE__ */ h("div", { className: "form-container", children: s }),
|
|
280
280
|
/* @__PURE__ */ h(
|
|
281
|
-
|
|
281
|
+
we,
|
|
282
282
|
{
|
|
283
283
|
primaryType: "submit",
|
|
284
284
|
primaryText: e("_accessibility:buttons.submit"),
|
|
@@ -305,10 +305,10 @@ const Ee = (r) => r == null ? !1 : `${r}`.length > 0, vs = $e(function(r, e) {
|
|
|
305
305
|
extraActions: i = [],
|
|
306
306
|
...c
|
|
307
307
|
} = r;
|
|
308
|
-
return /* @__PURE__ */
|
|
308
|
+
return /* @__PURE__ */ E(ye, { ...c, handleClose: n, children: [
|
|
309
309
|
s,
|
|
310
310
|
/* @__PURE__ */ h(
|
|
311
|
-
|
|
311
|
+
we,
|
|
312
312
|
{
|
|
313
313
|
primaryText: e("_accessibility:buttons.ok"),
|
|
314
314
|
cancelText: e("_accessibility:buttons.cancel"),
|
|
@@ -327,15 +327,15 @@ const Ee = (r) => r == null ? !1 : `${r}`.length > 0, vs = $e(function(r, e) {
|
|
|
327
327
|
)
|
|
328
328
|
] });
|
|
329
329
|
};
|
|
330
|
-
function
|
|
330
|
+
function xt(r) {
|
|
331
331
|
const { message: e, className: s = "" } = r, { t } = k();
|
|
332
332
|
return /* @__PURE__ */ h("p", { className: `import-error-message ${s}`, children: e ?? t("_messages:errors.parseFile", {
|
|
333
333
|
defaultValue: "Failed to process file"
|
|
334
334
|
}) });
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function $t(r) {
|
|
337
337
|
const { message: e, className: s = "" } = r, { t } = k();
|
|
338
|
-
return /* @__PURE__ */
|
|
338
|
+
return /* @__PURE__ */ E("div", { className: `import-loading ${s}`, children: [
|
|
339
339
|
/* @__PURE__ */ h(re, { loaderClass: "w-5 h-5", className: "!w-auto" }),
|
|
340
340
|
/* @__PURE__ */ h("span", { children: e ?? t("_messages:loading.processingFile", {
|
|
341
341
|
defaultValue: "Processing file..."
|
|
@@ -346,7 +346,7 @@ function Dt(r) {
|
|
|
346
346
|
const { items: e, max: s = 5, className: t = "" } = r, { t: n } = k();
|
|
347
347
|
if (!e || e.length === 0) return null;
|
|
348
348
|
const o = e.slice(0, s);
|
|
349
|
-
return /* @__PURE__ */
|
|
349
|
+
return /* @__PURE__ */ E("div", { className: `import-preview ${t}`, children: [
|
|
350
350
|
/* @__PURE__ */ h("p", { className: "import-preview-count", children: n("_pages:common.actions.import.previewCount", {
|
|
351
351
|
count: e.length,
|
|
352
352
|
defaultValue: `Preview: ${e.length} items`
|
|
@@ -394,7 +394,7 @@ function Lt(r, e) {
|
|
|
394
394
|
return { ...Me(), inputKey: r.inputKey + 1 };
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
|
-
const
|
|
397
|
+
const xs = (r) => {
|
|
398
398
|
const { t: e } = k(), {
|
|
399
399
|
children: s,
|
|
400
400
|
handleSubmit: t,
|
|
@@ -407,19 +407,19 @@ const $s = (r) => {
|
|
|
407
407
|
open: u,
|
|
408
408
|
extraActions: d = [],
|
|
409
409
|
...m
|
|
410
|
-
} = r, [f, p] =
|
|
410
|
+
} = r, [f, p] = $e(
|
|
411
411
|
Lt,
|
|
412
412
|
Me()
|
|
413
413
|
), {
|
|
414
414
|
file: b,
|
|
415
|
-
previewItems:
|
|
416
|
-
parseError:
|
|
415
|
+
previewItems: y,
|
|
416
|
+
parseError: g,
|
|
417
417
|
processing: T,
|
|
418
418
|
overrideExisting: w,
|
|
419
|
-
inputKey:
|
|
420
|
-
} = f,
|
|
419
|
+
inputKey: v
|
|
420
|
+
} = f, N = F(c), U = F(i);
|
|
421
421
|
M(() => {
|
|
422
|
-
|
|
422
|
+
N.current = c;
|
|
423
423
|
}, [c]), M(() => {
|
|
424
424
|
U.current = i;
|
|
425
425
|
}, [i]), M(() => {
|
|
@@ -432,7 +432,7 @@ const $s = (r) => {
|
|
|
432
432
|
p({ type: "START_PROCESSING" });
|
|
433
433
|
try {
|
|
434
434
|
const _ = await U.current(C, { override: D });
|
|
435
|
-
p({ type: "SET_PREVIEW", items: _ ?? [] }), (L =
|
|
435
|
+
p({ type: "SET_PREVIEW", items: _ ?? [] }), (L = N.current) == null || L.call(N, _ ?? []);
|
|
436
436
|
} catch (_) {
|
|
437
437
|
console.error(_);
|
|
438
438
|
const K = _ instanceof Error ? _.message : "Failed to parse file";
|
|
@@ -442,28 +442,28 @@ const $s = (r) => {
|
|
|
442
442
|
},
|
|
443
443
|
[]
|
|
444
444
|
);
|
|
445
|
-
return /* @__PURE__ */
|
|
445
|
+
return /* @__PURE__ */ E(ye, { ...m, open: u, handleClose: n, children: [
|
|
446
446
|
/* @__PURE__ */ h(
|
|
447
447
|
nt,
|
|
448
448
|
{
|
|
449
449
|
onClear: () => {
|
|
450
450
|
var C;
|
|
451
|
-
p({ type: "SET_FILE", file: null }), (C =
|
|
451
|
+
p({ type: "SET_FILE", file: null }), (C = N.current) == null || C.call(N, []);
|
|
452
452
|
},
|
|
453
453
|
onChange: (C) => {
|
|
454
454
|
var L, _;
|
|
455
455
|
const D = (L = C.target.files) == null ? void 0 : L[0];
|
|
456
456
|
if (!D) {
|
|
457
|
-
p({ type: "SET_FILE", file: null }), (_ =
|
|
457
|
+
p({ type: "SET_FILE", file: null }), (_ = N.current) == null || _.call(N, []);
|
|
458
458
|
return;
|
|
459
459
|
}
|
|
460
460
|
p({ type: "SET_FILE", file: D }), B(D, w);
|
|
461
461
|
},
|
|
462
462
|
label: e("_accessibility:labels.file")
|
|
463
463
|
},
|
|
464
|
-
|
|
464
|
+
v
|
|
465
465
|
),
|
|
466
|
-
/* @__PURE__ */
|
|
466
|
+
/* @__PURE__ */ E("label", { className: "import-override-label", children: [
|
|
467
467
|
/* @__PURE__ */ h(
|
|
468
468
|
"input",
|
|
469
469
|
{
|
|
@@ -479,17 +479,17 @@ const $s = (r) => {
|
|
|
479
479
|
defaultValue: "Override existing items"
|
|
480
480
|
}) })
|
|
481
481
|
] }),
|
|
482
|
-
/* @__PURE__ */ h(
|
|
483
|
-
T && /* @__PURE__ */ h(
|
|
484
|
-
a ? a(
|
|
482
|
+
/* @__PURE__ */ h(xt, { message: g }),
|
|
483
|
+
T && /* @__PURE__ */ h($t, {}),
|
|
484
|
+
a ? a(y) : !!y && y.length > 0 && /* @__PURE__ */ h(Dt, { items: y }),
|
|
485
485
|
s,
|
|
486
486
|
/* @__PURE__ */ h(
|
|
487
|
-
|
|
487
|
+
we,
|
|
488
488
|
{
|
|
489
489
|
primaryText: e("_accessibility:buttons.ok"),
|
|
490
490
|
cancelText: e("_accessibility:buttons.cancel"),
|
|
491
491
|
onPrimaryClick: () => {
|
|
492
|
-
(!i || !!
|
|
492
|
+
(!i || !!y && y.length > 0) && t();
|
|
493
493
|
},
|
|
494
494
|
onCancel: n,
|
|
495
495
|
isLoading: o,
|
|
@@ -506,7 +506,7 @@ const $s = (r) => {
|
|
|
506
506
|
};
|
|
507
507
|
var O = /* @__PURE__ */ ((r) => (r[r.success = 0] = "success", r[r.error = 1] = "error", r[r.warning = 2] = "warning", r[r.info = 3] = "info", r))(O || {}), P = /* @__PURE__ */ ((r) => (r.GET = "GET", r.POST = "POST", r.PUT = "PUT", r.PATCH = "PATCH", r.DELETE = "DELETE", r))(P || {});
|
|
508
508
|
const Rt = (r) => Array.isArray(r) || r instanceof Headers ? !1 : typeof r == "object" && r !== null && ("headers" in r || "credentials" in r), It = (r) => r ? Rt(r) ? r : { headers: r } : {}, _t = (r) => r ? r instanceof Headers ? Object.fromEntries(r.entries()) : Array.isArray(r) ? Object.fromEntries(r) : r : {};
|
|
509
|
-
async function
|
|
509
|
+
async function he(r, e = "GET", s, t) {
|
|
510
510
|
const n = It(t), o = {
|
|
511
511
|
...s !== void 0 ? { "Content-Type": "application/json" } : {},
|
|
512
512
|
..._t(n.headers)
|
|
@@ -561,7 +561,7 @@ function Pt(r, e) {
|
|
|
561
561
|
}
|
|
562
562
|
return r;
|
|
563
563
|
}
|
|
564
|
-
const
|
|
564
|
+
const fe = (r) => typeof r == "object" && r !== null, W = (r) => r instanceof Date ? encodeURIComponent(r.toISOString()) : encodeURIComponent(String(r)), Mt = (r) => {
|
|
565
565
|
if (typeof r != "string") return;
|
|
566
566
|
const e = r.trim().toUpperCase();
|
|
567
567
|
if (e === "ACTIVE" || e === "DELETED" || e === "ALL")
|
|
@@ -579,12 +579,12 @@ const he = (r) => typeof r == "object" && r !== null, W = (r) => r instanceof Da
|
|
|
579
579
|
([i, c]) => i !== "softDeleteScope" && c !== null && c !== void 0 && c !== ""
|
|
580
580
|
).flatMap(([i, c]) => {
|
|
581
581
|
if (Array.isArray(c))
|
|
582
|
-
return c.map((a) => a instanceof Date ? `${i}==${W(a)}` :
|
|
583
|
-
if (
|
|
582
|
+
return c.map((a) => a instanceof Date ? `${i}==${W(a)}` : fe(a) ? `${i}==${W(a.id ?? "")}` : `${i}==${W(a)}`);
|
|
583
|
+
if (fe(c) && "start" in c && "end" in c) {
|
|
584
584
|
const a = [];
|
|
585
585
|
return c.start != null && c.start !== "" && a.push(`${i}>=${W(c.start)}`), c.end != null && c.end !== "" && a.push(`${i}<=${W(c.end)}`), a;
|
|
586
586
|
}
|
|
587
|
-
return c instanceof Date ? `${i}==${W(c)}` :
|
|
587
|
+
return c instanceof Date ? `${i}==${W(c)}` : fe(c) ? `${i}==${W(c.id ?? "")}` : `${i}==${W(c)}`;
|
|
588
588
|
});
|
|
589
589
|
o.length > 0 && t.push(`filters=${o.join(",")}`);
|
|
590
590
|
}
|
|
@@ -597,15 +597,15 @@ const he = (r) => typeof r == "object" && r !== null, W = (r) => r instanceof Da
|
|
|
597
597
|
* @param tokenAcquirer custom token acquirer
|
|
598
598
|
*/
|
|
599
599
|
constructor(e, s = "user", t = !0, n, o = {}) {
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
600
|
+
A(this, "baseUrl");
|
|
601
|
+
A(this, "userKey");
|
|
602
|
+
A(this, "rememberKey");
|
|
603
|
+
A(this, "refreshTokenKey");
|
|
604
|
+
A(this, "accessTokenExpiresAtKey");
|
|
605
|
+
A(this, "refreshEndpoint");
|
|
606
|
+
A(this, "refreshExpirySkewMs");
|
|
607
|
+
A(this, "secured");
|
|
608
|
+
A(this, "tokenAcquirer");
|
|
609
609
|
this.baseUrl = e, this.secured = t, this.userKey = s, this.rememberKey = o.rememberKey ?? "remember", this.refreshTokenKey = o.refreshTokenKey ?? "refreshToken", this.accessTokenExpiresAtKey = o.accessTokenExpiresAtKey ?? "accessTokenExpiresAt", this.refreshEndpoint = o.refreshEndpoint ?? "auth/refresh", this.refreshExpirySkewMs = o.refreshExpirySkewMs ?? 5e3, this.tokenAcquirer = n ?? this.defaultTokenAcquirer;
|
|
610
610
|
}
|
|
611
611
|
defaultTokenAcquirer(e) {
|
|
@@ -660,7 +660,7 @@ const he = (r) => typeof r == "object" && r !== null, W = (r) => r instanceof Da
|
|
|
660
660
|
return;
|
|
661
661
|
}
|
|
662
662
|
const n = (async () => {
|
|
663
|
-
const { data: o, status: i, error: c } = await
|
|
663
|
+
const { data: o, status: i, error: c } = await he(
|
|
664
664
|
this.buildUrl(this.refreshEndpoint),
|
|
665
665
|
P.POST,
|
|
666
666
|
{ refreshToken: e }
|
|
@@ -699,13 +699,13 @@ const he = (r) => typeof r == "object" && r !== null, W = (r) => r instanceof Da
|
|
|
699
699
|
}
|
|
700
700
|
async makeRequestWithRefresh(e, s, t, n) {
|
|
701
701
|
this.secured && this.shouldRefreshBeforeRequest() && await this.refreshAccessTokenWithMutex();
|
|
702
|
-
let o = await
|
|
702
|
+
let o = await he(
|
|
703
703
|
this.buildUrl(e),
|
|
704
704
|
s,
|
|
705
705
|
t,
|
|
706
706
|
this.mergeRequestConfig(n)
|
|
707
707
|
);
|
|
708
|
-
return this.secured && o.status === 401 && this.canRefresh() && (await this.refreshAccessTokenWithMutex(), o = await
|
|
708
|
+
return this.secured && o.status === 401 && this.canRefresh() && (await this.refreshAccessTokenWithMutex(), o = await he(
|
|
709
709
|
this.buildUrl(e),
|
|
710
710
|
s,
|
|
711
711
|
t,
|
|
@@ -821,11 +821,11 @@ const he = (r) => typeof r == "object" && r !== null, W = (r) => r instanceof Da
|
|
|
821
821
|
return n;
|
|
822
822
|
}
|
|
823
823
|
};
|
|
824
|
-
|
|
824
|
+
A(se, "refreshInFlight", /* @__PURE__ */ new Map());
|
|
825
825
|
let de = se;
|
|
826
826
|
class Ot {
|
|
827
827
|
constructor(e, s = "user", t = {}) {
|
|
828
|
-
|
|
828
|
+
A(this, "api");
|
|
829
829
|
this.api = new de(e, s, !1, void 0, t);
|
|
830
830
|
}
|
|
831
831
|
async login(e) {
|
|
@@ -870,9 +870,9 @@ class Ot {
|
|
|
870
870
|
);
|
|
871
871
|
}
|
|
872
872
|
}
|
|
873
|
-
class
|
|
873
|
+
class $s {
|
|
874
874
|
constructor(e, s, t = {}) {
|
|
875
|
-
|
|
875
|
+
A(this, "auth");
|
|
876
876
|
this.auth = new Ot(e, s, t);
|
|
877
877
|
}
|
|
878
878
|
/**
|
|
@@ -889,9 +889,9 @@ class Ds {
|
|
|
889
889
|
* @param secured to see if the api client requires jwt protection
|
|
890
890
|
*/
|
|
891
891
|
constructor(e, s, t = "user", n = !0, o = {}) {
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
892
|
+
A(this, "table");
|
|
893
|
+
A(this, "secured");
|
|
894
|
+
A(this, "api");
|
|
895
895
|
this.table = e, this.secured = n, this.api = new de(s, t, n, void 0, o);
|
|
896
896
|
}
|
|
897
897
|
/**
|
|
@@ -987,10 +987,10 @@ class Ds {
|
|
|
987
987
|
}
|
|
988
988
|
class Ls {
|
|
989
989
|
constructor(e, s, t = 1) {
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
990
|
+
A(this, "table");
|
|
991
|
+
A(this, "dbName");
|
|
992
|
+
A(this, "version");
|
|
993
|
+
A(this, "db", null);
|
|
994
994
|
this.table = e, this.dbName = s, this.version = t;
|
|
995
995
|
}
|
|
996
996
|
close() {
|
|
@@ -1044,8 +1044,8 @@ class Ls {
|
|
|
1044
1044
|
var f;
|
|
1045
1045
|
const t = await this.transaction("readonly"), n = await this.request(t.getAll()), o = this.applyFilter(n, s), i = (e == null ? void 0 : e.sortingBy) ?? "id", c = ((f = e == null ? void 0 : e.sortingOrder) == null ? void 0 : f.toLowerCase()) ?? "asc";
|
|
1046
1046
|
o.sort((p, b) => {
|
|
1047
|
-
const
|
|
1048
|
-
return
|
|
1047
|
+
const y = p[i], g = b[i];
|
|
1048
|
+
return y < g ? c === "asc" ? -1 : 1 : y > g ? c === "asc" ? 1 : -1 : 0;
|
|
1049
1049
|
});
|
|
1050
1050
|
const a = (e == null ? void 0 : e.pageSize) ?? 10, l = (e == null ? void 0 : e.currentPage) ?? 0, u = o.length, d = Math.ceil(u / a), m = o.slice(
|
|
1051
1051
|
l * a,
|
|
@@ -1143,7 +1143,7 @@ class Ls {
|
|
|
1143
1143
|
return e === "DELETED" ? t : !t;
|
|
1144
1144
|
}
|
|
1145
1145
|
}
|
|
1146
|
-
const
|
|
1146
|
+
const be = (r) => typeof r == "object" && r !== null, Ft = (r) => be(r) ? "start" in r || "end" in r : !1, Ut = (r) => r !== void 0, ie = (r) => r instanceof Date ? r.toISOString() : r, Kt = (r) => {
|
|
1147
1147
|
if (typeof r != "string") return;
|
|
1148
1148
|
const e = r.trim().toUpperCase();
|
|
1149
1149
|
if (e === "ACTIVE") return "ACTIVE";
|
|
@@ -1152,12 +1152,12 @@ const ge = (r) => typeof r == "object" && r !== null, Ft = (r) => ge(r) ? "start
|
|
|
1152
1152
|
};
|
|
1153
1153
|
class Rs {
|
|
1154
1154
|
constructor(e, s, t = {}) {
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1155
|
+
A(this, "table");
|
|
1156
|
+
A(this, "supabase");
|
|
1157
|
+
A(this, "idColumn");
|
|
1158
|
+
A(this, "deletedAtColumn");
|
|
1159
|
+
A(this, "defaultSortColumn");
|
|
1160
|
+
A(this, "options");
|
|
1161
1161
|
this.table = e, this.supabase = s, this.options = t, this.idColumn = t.idColumn ?? "id", this.deletedAtColumn = t.deletedAtColumn ?? "deletedAt", this.defaultSortColumn = t.defaultSortColumn ?? this.idColumn;
|
|
1162
1162
|
}
|
|
1163
1163
|
resolveStatus(e) {
|
|
@@ -1199,7 +1199,7 @@ class Rs {
|
|
|
1199
1199
|
return;
|
|
1200
1200
|
const c = o === "deletedAt" ? this.deletedAtColumn : o;
|
|
1201
1201
|
if (Array.isArray(i)) {
|
|
1202
|
-
const a = i.map((l) => l instanceof Date ? l.toISOString() :
|
|
1202
|
+
const a = i.map((l) => l instanceof Date ? l.toISOString() : be(l) ? this.resolveObjectFilterValue(l) : ie(l)).filter(Ut);
|
|
1203
1203
|
a.length > 0 && (t = t.in(c, a));
|
|
1204
1204
|
return;
|
|
1205
1205
|
}
|
|
@@ -1217,7 +1217,7 @@ class Rs {
|
|
|
1217
1217
|
t = t.eq(c, i.toISOString());
|
|
1218
1218
|
return;
|
|
1219
1219
|
}
|
|
1220
|
-
if (
|
|
1220
|
+
if (be(i)) {
|
|
1221
1221
|
t = t.eq(
|
|
1222
1222
|
c,
|
|
1223
1223
|
this.resolveObjectFilterValue(i)
|
|
@@ -1465,14 +1465,14 @@ const Ht = () => {
|
|
|
1465
1465
|
const r = navigator, e = ((s = r == null ? void 0 : r.userAgentData) == null ? void 0 : s.platform) || (r == null ? void 0 : r.platform) || "";
|
|
1466
1466
|
return /Mac|iPhone|iPod|iPad/i.test(e);
|
|
1467
1467
|
};
|
|
1468
|
-
function
|
|
1468
|
+
function Se(r) {
|
|
1469
1469
|
if (!r || typeof r != "object") return !1;
|
|
1470
1470
|
const e = r;
|
|
1471
1471
|
return Array.isArray(e.errors) && e.errors.every(
|
|
1472
1472
|
(s) => Array.isArray(s) && s.length === 2 && typeof s[0] == "string"
|
|
1473
1473
|
);
|
|
1474
1474
|
}
|
|
1475
|
-
function
|
|
1475
|
+
function Te(r) {
|
|
1476
1476
|
if (!r || typeof r != "object") return !1;
|
|
1477
1477
|
const e = r;
|
|
1478
1478
|
return typeof (e == null ? void 0 : e.status) == "number" && typeof (e == null ? void 0 : e.message) == "string";
|
|
@@ -1480,18 +1480,18 @@ function Se(r) {
|
|
|
1480
1480
|
function Os(r, e) {
|
|
1481
1481
|
return r != null && r.errors ? r.errors.map(([s, t]) => e(s, t)) : [];
|
|
1482
1482
|
}
|
|
1483
|
-
const Fe =
|
|
1483
|
+
const Fe = X(
|
|
1484
1484
|
void 0
|
|
1485
1485
|
);
|
|
1486
1486
|
function Fs(r) {
|
|
1487
|
-
const { children: e } = r, s = F(0), [t, n] =
|
|
1487
|
+
const { children: e } = r, s = F(0), [t, n] = $e(
|
|
1488
1488
|
(m, f) => {
|
|
1489
|
-
const { type: p, items: b, id:
|
|
1489
|
+
const { type: p, items: b, id: y } = f;
|
|
1490
1490
|
switch (p) {
|
|
1491
1491
|
case "set":
|
|
1492
1492
|
return b ?? [];
|
|
1493
1493
|
case "remove":
|
|
1494
|
-
return
|
|
1494
|
+
return y !== void 0 ? m.filter((g) => g.id !== y) : [];
|
|
1495
1495
|
}
|
|
1496
1496
|
return m;
|
|
1497
1497
|
},
|
|
@@ -1532,11 +1532,11 @@ function Fs(r) {
|
|
|
1532
1532
|
return /* @__PURE__ */ h(Fe.Provider, { value: d, children: e });
|
|
1533
1533
|
}
|
|
1534
1534
|
const oe = () => {
|
|
1535
|
-
const r =
|
|
1535
|
+
const r = Y(Fe);
|
|
1536
1536
|
if (!r)
|
|
1537
1537
|
throw new Error("NotificationContext must be used within a Provider");
|
|
1538
1538
|
return r;
|
|
1539
|
-
},
|
|
1539
|
+
}, Ce = () => new Nt({
|
|
1540
1540
|
defaultOptions: {
|
|
1541
1541
|
queries: {
|
|
1542
1542
|
refetchInterval: !1,
|
|
@@ -1548,23 +1548,23 @@ const oe = () => {
|
|
|
1548
1548
|
// default: true
|
|
1549
1549
|
}
|
|
1550
1550
|
}
|
|
1551
|
-
}), Us =
|
|
1551
|
+
}), Us = Ce(), Ue = X(
|
|
1552
1552
|
void 0
|
|
1553
1553
|
), Ks = (r) => {
|
|
1554
|
-
const { children: e, manager: s, queryClient: t } = r, [n] = R(
|
|
1554
|
+
const { children: e, manager: s, queryClient: t } = r, [n] = R(Ce), o = t ?? n;
|
|
1555
1555
|
return /* @__PURE__ */ h(Ue.Provider, { value: { client: s }, children: /* @__PURE__ */ h(_e, { client: o, children: e }) });
|
|
1556
1556
|
}, Bt = () => {
|
|
1557
|
-
const r =
|
|
1557
|
+
const r = Y(Ue);
|
|
1558
1558
|
if (!r)
|
|
1559
1559
|
throw new Error("managerContext must be used within a Provider");
|
|
1560
1560
|
return r.client;
|
|
1561
|
-
},
|
|
1561
|
+
}, me = X(
|
|
1562
1562
|
void 0
|
|
1563
1563
|
), Vt = () => {
|
|
1564
|
-
const r =
|
|
1564
|
+
const r = Y(me);
|
|
1565
1565
|
if (!r) throw new Error("authContext must be used within a Provider");
|
|
1566
1566
|
return r;
|
|
1567
|
-
}, js = (r) => {
|
|
1567
|
+
}, Ke = () => Y(me), js = (r) => {
|
|
1568
1568
|
const {
|
|
1569
1569
|
children: e,
|
|
1570
1570
|
guestMode: s = "guest_mode",
|
|
@@ -1575,22 +1575,22 @@ const oe = () => {
|
|
|
1575
1575
|
} = r, c = Bt(), [a, l] = R({}), u = S(() => {
|
|
1576
1576
|
I(t), I(n), I(o), I(i);
|
|
1577
1577
|
}, [i, o, n, t]), d = S(() => !!G(s, "boolean") && a.token === void 0, [a.token, s]), m = S(
|
|
1578
|
-
(
|
|
1579
|
-
Q(s,
|
|
1578
|
+
(g) => {
|
|
1579
|
+
Q(s, g);
|
|
1580
1580
|
},
|
|
1581
1581
|
[s]
|
|
1582
1582
|
), f = S(
|
|
1583
|
-
(
|
|
1584
|
-
if (!
|
|
1585
|
-
const w = G(n, "boolean"),
|
|
1586
|
-
l(
|
|
1583
|
+
(g, T) => {
|
|
1584
|
+
if (!g) return;
|
|
1585
|
+
const w = G(n, "boolean"), v = T ?? (typeof w == "boolean" ? w : !1);
|
|
1586
|
+
l(g), I(s), Q(t, g.token), Q(n, v), typeof g.refreshToken == "string" && g.refreshToken.length ? Q(o, g.refreshToken) : I(o), typeof g.accessTokenExpiresAt == "string" && g.accessTokenExpiresAt.length ? Q(i, g.accessTokenExpiresAt) : I(i);
|
|
1587
1587
|
},
|
|
1588
1588
|
[i, s, o, n, t]
|
|
1589
1589
|
), p = S(async () => {
|
|
1590
|
-
const
|
|
1590
|
+
const g = G(t) ?? a.token, T = G(o) ?? (typeof a.refreshToken == "string" ? a.refreshToken : void 0);
|
|
1591
1591
|
try {
|
|
1592
1592
|
await c.Auth.logout({
|
|
1593
|
-
accessToken:
|
|
1593
|
+
accessToken: g,
|
|
1594
1594
|
refreshToken: T
|
|
1595
1595
|
});
|
|
1596
1596
|
} catch (w) {
|
|
@@ -1606,12 +1606,12 @@ const oe = () => {
|
|
|
1606
1606
|
t
|
|
1607
1607
|
]), b = S(async () => {
|
|
1608
1608
|
try {
|
|
1609
|
-
const
|
|
1610
|
-
f(
|
|
1611
|
-
} catch (
|
|
1612
|
-
console.error(
|
|
1609
|
+
const g = await c.Auth.getSession();
|
|
1610
|
+
f(g);
|
|
1611
|
+
} catch (g) {
|
|
1612
|
+
console.error(g), p();
|
|
1613
1613
|
}
|
|
1614
|
-
}, [f, p, c.Auth]),
|
|
1614
|
+
}, [f, p, c.Auth]), y = V(() => ({
|
|
1615
1615
|
account: a,
|
|
1616
1616
|
logUser: f,
|
|
1617
1617
|
logoutUser: p,
|
|
@@ -1626,13 +1626,13 @@ const oe = () => {
|
|
|
1626
1626
|
d,
|
|
1627
1627
|
m
|
|
1628
1628
|
]);
|
|
1629
|
-
return /* @__PURE__ */ h(
|
|
1630
|
-
},
|
|
1631
|
-
const r =
|
|
1629
|
+
return /* @__PURE__ */ h(me.Provider, { value: y, children: e });
|
|
1630
|
+
}, Qs = () => Vt(), je = X(void 0), Gt = () => {
|
|
1631
|
+
const r = Y(je);
|
|
1632
1632
|
if (!r)
|
|
1633
1633
|
throw new Error("supabaseManagerContext must be used within a Provider");
|
|
1634
1634
|
return r.client;
|
|
1635
|
-
},
|
|
1635
|
+
}, qs = (r) => {
|
|
1636
1636
|
const {
|
|
1637
1637
|
children: e,
|
|
1638
1638
|
guestMode: s = "guest_mode",
|
|
@@ -1653,38 +1653,38 @@ const oe = () => {
|
|
|
1653
1653
|
},
|
|
1654
1654
|
[s]
|
|
1655
1655
|
), b = S(
|
|
1656
|
-
(w,
|
|
1656
|
+
(w, v) => {
|
|
1657
1657
|
if (!w) return;
|
|
1658
|
-
const
|
|
1658
|
+
const N = G(n, "boolean"), U = v ?? (typeof N == "boolean" ? N : !1);
|
|
1659
1659
|
d(w), I(s), Q(t, w.token), Q(n, U), typeof w.refreshToken == "string" && w.refreshToken.length ? Q(o, w.refreshToken) : I(o), typeof w.accessTokenExpiresAt == "string" && w.accessTokenExpiresAt.length ? Q(i, w.accessTokenExpiresAt) : I(i);
|
|
1660
1660
|
},
|
|
1661
1661
|
[i, s, o, n, t]
|
|
1662
|
-
),
|
|
1662
|
+
), y = S(async () => {
|
|
1663
1663
|
try {
|
|
1664
1664
|
await a.auth.signOut();
|
|
1665
1665
|
} catch (w) {
|
|
1666
1666
|
console.error(w);
|
|
1667
1667
|
}
|
|
1668
1668
|
d({}), m();
|
|
1669
|
-
}, [m, a.auth]),
|
|
1669
|
+
}, [m, a.auth]), g = S(async () => {
|
|
1670
1670
|
try {
|
|
1671
|
-
const { data: w, error:
|
|
1672
|
-
if (
|
|
1671
|
+
const { data: w, error: v } = await a.auth.getSession();
|
|
1672
|
+
if (v) throw v;
|
|
1673
1673
|
if (!w.session) {
|
|
1674
1674
|
d({}), m();
|
|
1675
1675
|
return;
|
|
1676
1676
|
}
|
|
1677
1677
|
b(l.current(w.session));
|
|
1678
1678
|
} catch (w) {
|
|
1679
|
-
console.error(w), await
|
|
1679
|
+
console.error(w), await y();
|
|
1680
1680
|
}
|
|
1681
|
-
}, [m, b,
|
|
1681
|
+
}, [m, b, y, a.auth]);
|
|
1682
1682
|
M(() => {
|
|
1683
1683
|
let w = !0;
|
|
1684
1684
|
(async () => {
|
|
1685
|
-
w && await
|
|
1685
|
+
w && await g();
|
|
1686
1686
|
})();
|
|
1687
|
-
const { data:
|
|
1687
|
+
const { data: N } = a.auth.onAuthStateChange((U, B) => {
|
|
1688
1688
|
if (w) {
|
|
1689
1689
|
if (!B) {
|
|
1690
1690
|
d({}), m();
|
|
@@ -1694,29 +1694,29 @@ const oe = () => {
|
|
|
1694
1694
|
}
|
|
1695
1695
|
});
|
|
1696
1696
|
return () => {
|
|
1697
|
-
w = !1,
|
|
1697
|
+
w = !1, N.subscription.unsubscribe();
|
|
1698
1698
|
};
|
|
1699
|
-
}, [m, b,
|
|
1699
|
+
}, [m, b, g, a.auth]);
|
|
1700
1700
|
const T = V(() => ({
|
|
1701
1701
|
account: u,
|
|
1702
1702
|
logUser: b,
|
|
1703
|
-
logoutUser:
|
|
1704
|
-
logUserFromLocal:
|
|
1703
|
+
logoutUser: y,
|
|
1704
|
+
logUserFromLocal: g,
|
|
1705
1705
|
isInGuestMode: f,
|
|
1706
1706
|
setGuestMode: p
|
|
1707
1707
|
}), [
|
|
1708
1708
|
u,
|
|
1709
1709
|
b,
|
|
1710
|
-
g,
|
|
1711
1710
|
y,
|
|
1711
|
+
g,
|
|
1712
1712
|
f,
|
|
1713
1713
|
p
|
|
1714
1714
|
]);
|
|
1715
|
-
return /* @__PURE__ */ h(
|
|
1716
|
-
},
|
|
1717
|
-
const { children: e, supabase: s, queryClient: t } = r, [n] = R(
|
|
1715
|
+
return /* @__PURE__ */ h(me.Provider, { value: T, children: e });
|
|
1716
|
+
}, Hs = (r) => {
|
|
1717
|
+
const { children: e, supabase: s, queryClient: t } = r, [n] = R(Ce), o = t ?? n;
|
|
1718
1718
|
return /* @__PURE__ */ h(je.Provider, { value: { client: s }, children: /* @__PURE__ */ h(_e, { client: o, children: e }) });
|
|
1719
|
-
}, Qe =
|
|
1719
|
+
}, Qe = X({}), Bs = (r) => {
|
|
1720
1720
|
const { children: e, location: s, navigate: t, linkComponent: n, searchComponent: o } = r;
|
|
1721
1721
|
return /* @__PURE__ */ h(
|
|
1722
1722
|
Qe.Provider,
|
|
@@ -1726,7 +1726,7 @@ const oe = () => {
|
|
|
1726
1726
|
}
|
|
1727
1727
|
);
|
|
1728
1728
|
}, ce = () => {
|
|
1729
|
-
const r =
|
|
1729
|
+
const r = Y(Qe);
|
|
1730
1730
|
if (r === void 0 || Object.keys(r).length === 0)
|
|
1731
1731
|
throw new Error(
|
|
1732
1732
|
"Config provider has not been set. This step is required and cannot be skipped."
|
|
@@ -1740,9 +1740,9 @@ const oe = () => {
|
|
|
1740
1740
|
clearDynamicItems: () => {
|
|
1741
1741
|
},
|
|
1742
1742
|
dynamicItems: {}
|
|
1743
|
-
}, qe =
|
|
1743
|
+
}, qe = X(
|
|
1744
1744
|
Wt
|
|
1745
|
-
),
|
|
1745
|
+
), Vs = (r) => {
|
|
1746
1746
|
const { children: e } = r, [s, t] = R({}), n = S(
|
|
1747
1747
|
(a, l) => t((u) => ({
|
|
1748
1748
|
...u,
|
|
@@ -1776,12 +1776,14 @@ const oe = () => {
|
|
|
1776
1776
|
children: e
|
|
1777
1777
|
}
|
|
1778
1778
|
);
|
|
1779
|
-
}, zt = () =>
|
|
1780
|
-
function
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1779
|
+
}, zt = () => Y(qe);
|
|
1780
|
+
function Gs(r) {
|
|
1781
|
+
var y;
|
|
1782
|
+
const { t: e } = k(), { open: s, onClose: t, menuMap: n, logo: o } = r, i = Ke(), { dynamicItems: c } = zt(), { linkComponent: a, location: l } = ce(), u = a, d = V(() => n.filter((g) => {
|
|
1783
|
+
var v;
|
|
1784
|
+
const T = g.auth, w = !!((v = i == null ? void 0 : i.account) != null && v.email);
|
|
1785
|
+
return T == null || T && w || !T && !w;
|
|
1786
|
+
}), [(y = i == null ? void 0 : i.account) == null ? void 0 : y.email, n]), m = S(
|
|
1785
1787
|
(g) => {
|
|
1786
1788
|
g.key === "Escape" && s && t();
|
|
1787
1789
|
},
|
|
@@ -1791,7 +1793,7 @@ function Vs(r) {
|
|
|
1791
1793
|
document.removeEventListener("keydown", m);
|
|
1792
1794
|
}), [m]);
|
|
1793
1795
|
const f = S(
|
|
1794
|
-
(g,
|
|
1796
|
+
(g, T) => T ? g === `${l.pathname}${l.search}` : g === l.pathname,
|
|
1795
1797
|
[l.pathname, l.search]
|
|
1796
1798
|
), p = S(
|
|
1797
1799
|
(g) => /* @__PURE__ */ h(
|
|
@@ -1814,13 +1816,13 @@ function Vs(r) {
|
|
|
1814
1816
|
g.id
|
|
1815
1817
|
),
|
|
1816
1818
|
[u, s, e, f]
|
|
1817
|
-
), b = V(() => d.map((g,
|
|
1818
|
-
const
|
|
1819
|
+
), b = V(() => d.map((g, T) => {
|
|
1820
|
+
const w = g.page ?? String(T), v = `drawer-list-item ${f(g.path) ? "active" : ""} animated`;
|
|
1819
1821
|
if (g.type === "divider")
|
|
1820
|
-
return /* @__PURE__ */ h("li", { className:
|
|
1821
|
-
const
|
|
1822
|
-
return /* @__PURE__ */
|
|
1823
|
-
/* @__PURE__ */
|
|
1822
|
+
return /* @__PURE__ */ h("li", { className: v, children: /* @__PURE__ */ h("hr", { className: "drawer-divider" }) }, w);
|
|
1823
|
+
const N = g.children ?? (g.page && c ? c[g.page] : null);
|
|
1824
|
+
return /* @__PURE__ */ E("li", { className: v, children: [
|
|
1825
|
+
/* @__PURE__ */ E(
|
|
1824
1826
|
u,
|
|
1825
1827
|
{
|
|
1826
1828
|
tabIndex: s ? 0 : -1,
|
|
@@ -1835,8 +1837,8 @@ function Vs(r) {
|
|
|
1835
1837
|
]
|
|
1836
1838
|
}
|
|
1837
1839
|
),
|
|
1838
|
-
|
|
1839
|
-
] },
|
|
1840
|
+
N && /* @__PURE__ */ h("ul", { className: "drawer-children-list", children: N.map(p) })
|
|
1841
|
+
] }, w);
|
|
1840
1842
|
}), [u, c, f, s, d, p, e]);
|
|
1841
1843
|
return /* @__PURE__ */ h(
|
|
1842
1844
|
"div",
|
|
@@ -1845,8 +1847,8 @@ function Vs(r) {
|
|
|
1845
1847
|
"aria-disabled": !s,
|
|
1846
1848
|
className: `${s ? "opened" : "closed"} drawer-backdrop`,
|
|
1847
1849
|
onClick: () => t(),
|
|
1848
|
-
children: /* @__PURE__ */
|
|
1849
|
-
/* @__PURE__ */
|
|
1850
|
+
children: /* @__PURE__ */ E("aside", { className: `${s ? "opened" : "closed"} drawer animated`, children: [
|
|
1851
|
+
/* @__PURE__ */ E("div", { className: "drawer-header-container", children: [
|
|
1850
1852
|
o,
|
|
1851
1853
|
/* @__PURE__ */ h("h2", { className: "drawer-header poppins", children: e("_pages:home.appName") })
|
|
1852
1854
|
] }),
|
|
@@ -1856,9 +1858,9 @@ function Vs(r) {
|
|
|
1856
1858
|
);
|
|
1857
1859
|
}
|
|
1858
1860
|
const z = ({ icon: r, ...e }) => /* @__PURE__ */ h(ot, { icon: /* @__PURE__ */ h(q, { icon: r }), ...e });
|
|
1859
|
-
var
|
|
1861
|
+
var pe, Ne;
|
|
1860
1862
|
function Jt() {
|
|
1861
|
-
if (Ne) return
|
|
1863
|
+
if (Ne) return pe;
|
|
1862
1864
|
Ne = 1;
|
|
1863
1865
|
const r = (c, a = "local", l = void 0) => {
|
|
1864
1866
|
if (a === "local") {
|
|
@@ -1901,7 +1903,7 @@ function Jt() {
|
|
|
1901
1903
|
}
|
|
1902
1904
|
return "";
|
|
1903
1905
|
};
|
|
1904
|
-
return
|
|
1906
|
+
return pe = {
|
|
1905
1907
|
getCookie: o,
|
|
1906
1908
|
createCookie: n,
|
|
1907
1909
|
deleteCookie: (c) => document.cookie = `${c}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`,
|
|
@@ -1909,10 +1911,10 @@ function Jt() {
|
|
|
1909
1911
|
scrollTo: t,
|
|
1910
1912
|
parseQueries: e,
|
|
1911
1913
|
validation: r
|
|
1912
|
-
},
|
|
1914
|
+
}, pe;
|
|
1913
1915
|
}
|
|
1914
1916
|
var Yt = Jt();
|
|
1915
|
-
function
|
|
1917
|
+
function Ws() {
|
|
1916
1918
|
const { t: r, language: e } = k();
|
|
1917
1919
|
return { timeAge: S(
|
|
1918
1920
|
(t) => {
|
|
@@ -1945,7 +1947,7 @@ const He = (r) => {
|
|
|
1945
1947
|
}
|
|
1946
1948
|
});
|
|
1947
1949
|
return { open: a, onClick: m, close: d, dialogFn: f, isLoading: f.isPending };
|
|
1948
|
-
},
|
|
1950
|
+
}, zs = (r) => {
|
|
1949
1951
|
const { t: e } = k(), {
|
|
1950
1952
|
showStackNotifications: s,
|
|
1951
1953
|
showSuccessNotification: t,
|
|
@@ -1958,16 +1960,16 @@ const He = (r) => {
|
|
|
1958
1960
|
onSuccess: u,
|
|
1959
1961
|
queryKey: d,
|
|
1960
1962
|
onSuccessMessage: m
|
|
1961
|
-
} = r, { control: f, handleSubmit: p, reset: b, setError:
|
|
1963
|
+
} = r, { control: f, handleSubmit: p, reset: b, setError: y, getValues: g, setValue: T } = Pe({
|
|
1962
1964
|
defaultValues: i
|
|
1963
|
-
}), w = F(null),
|
|
1965
|
+
}), w = F(null), v = S(() => {
|
|
1964
1966
|
const C = document.activeElement;
|
|
1965
1967
|
if (!(C instanceof HTMLElement)) {
|
|
1966
1968
|
w.current = null;
|
|
1967
1969
|
return;
|
|
1968
1970
|
}
|
|
1969
1971
|
w.current = C.closest("form");
|
|
1970
|
-
}, []),
|
|
1972
|
+
}, []), N = S(
|
|
1971
1973
|
(C) => {
|
|
1972
1974
|
const D = C == null ? void 0 : C.errors, L = [], _ = w.current;
|
|
1973
1975
|
if (!_) return L;
|
|
@@ -1991,8 +1993,8 @@ const He = (r) => {
|
|
|
1991
1993
|
console.error(C);
|
|
1992
1994
|
const D = C;
|
|
1993
1995
|
if (l) l(C);
|
|
1994
|
-
else if (
|
|
1995
|
-
const L =
|
|
1996
|
+
else if (Se(D)) {
|
|
1997
|
+
const L = N(D);
|
|
1996
1998
|
s(
|
|
1997
1999
|
L.map(
|
|
1998
2000
|
(_) => ({
|
|
@@ -2001,7 +2003,7 @@ const He = (r) => {
|
|
|
2001
2003
|
})
|
|
2002
2004
|
)
|
|
2003
2005
|
);
|
|
2004
|
-
} else if (
|
|
2006
|
+
} else if (Te(D)) {
|
|
2005
2007
|
const L = D.message || e("_accessibility:errors.500"), _ = e(`_accessibility:errors.${D.status}`);
|
|
2006
2008
|
n({ message: _ || L });
|
|
2007
2009
|
} else
|
|
@@ -2016,16 +2018,16 @@ const He = (r) => {
|
|
|
2016
2018
|
);
|
|
2017
2019
|
return {
|
|
2018
2020
|
control: f,
|
|
2019
|
-
getValues:
|
|
2021
|
+
getValues: g,
|
|
2020
2022
|
setValue: T,
|
|
2021
2023
|
handleSubmit: p,
|
|
2022
2024
|
onSubmit: (C) => {
|
|
2023
|
-
|
|
2025
|
+
v(), U(), B.mutate(
|
|
2024
2026
|
a ? a(C) : C
|
|
2025
2027
|
);
|
|
2026
2028
|
},
|
|
2027
2029
|
reset: b,
|
|
2028
|
-
setError:
|
|
2030
|
+
setError: y,
|
|
2029
2031
|
isLoading: B.isPending
|
|
2030
2032
|
};
|
|
2031
2033
|
}, Xt = (r) => {
|
|
@@ -2082,7 +2084,7 @@ const He = (r) => {
|
|
|
2082
2084
|
[o, n, c, a, i, s, t, l]
|
|
2083
2085
|
)
|
|
2084
2086
|
};
|
|
2085
|
-
},
|
|
2087
|
+
}, Js = (r) => {
|
|
2086
2088
|
const { t: e } = k(), {
|
|
2087
2089
|
onClick: s,
|
|
2088
2090
|
hidden: t = !1,
|
|
@@ -2160,25 +2162,25 @@ const es = (r) => {
|
|
|
2160
2162
|
[n, t, o, s, e]
|
|
2161
2163
|
)
|
|
2162
2164
|
};
|
|
2163
|
-
},
|
|
2165
|
+
}, Ys = (r) => {
|
|
2164
2166
|
const { queryKey: e, onSuccess: s, ...t } = r, n = Z(), { showStackNotifications: o } = oe(), { t: i } = k(), { open: c, onClick: a, close: l, dialogFn: u, isLoading: d } = He({
|
|
2165
2167
|
onSuccessMessage: i("_pages:common.actions.delete.successMessage"),
|
|
2166
2168
|
onError: (f) => {
|
|
2167
2169
|
const p = f;
|
|
2168
|
-
if (
|
|
2170
|
+
if (Se(p))
|
|
2169
2171
|
o(
|
|
2170
2172
|
p.errors.map(
|
|
2171
|
-
([b,
|
|
2172
|
-
message: i(`_pages:${b}.errors.${
|
|
2173
|
+
([b, y]) => ({
|
|
2174
|
+
message: i(`_pages:${b}.errors.${y}`),
|
|
2173
2175
|
type: O.error
|
|
2174
2176
|
})
|
|
2175
2177
|
)
|
|
2176
2178
|
);
|
|
2177
|
-
else if (
|
|
2178
|
-
const b = p.message || i("_accessibility:errors.500"),
|
|
2179
|
+
else if (Te(p)) {
|
|
2180
|
+
const b = p.message || i("_accessibility:errors.500"), y = i(`_accessibility:errors.${p.status}`);
|
|
2179
2181
|
o([
|
|
2180
2182
|
{
|
|
2181
|
-
message:
|
|
2183
|
+
message: y || b,
|
|
2182
2184
|
type: O.error
|
|
2183
2185
|
}
|
|
2184
2186
|
]);
|
|
@@ -2215,22 +2217,22 @@ const es = (r) => {
|
|
|
2215
2217
|
reinitializeOnOpen: u,
|
|
2216
2218
|
resetOnOpen: d,
|
|
2217
2219
|
title: m
|
|
2218
|
-
} = r, [f, p] = R(), [b,
|
|
2220
|
+
} = r, [f, p] = R(), [b, y] = R(!1), g = F(!1), T = F(null), { open: w, handleClose: v, handleOpen: N } = Be(), { control: U, handleSubmit: B, reset: C, setError: D, getValues: L, setValue: _ } = Pe({
|
|
2219
2221
|
defaultValues: s || {}
|
|
2220
2222
|
});
|
|
2221
2223
|
M(() => {
|
|
2222
2224
|
if (!w) {
|
|
2223
|
-
|
|
2225
|
+
g.current = !1, T.current = null;
|
|
2224
2226
|
return;
|
|
2225
2227
|
}
|
|
2226
|
-
if (
|
|
2227
|
-
if (
|
|
2228
|
+
if (g.current) return;
|
|
2229
|
+
if (g.current = !0, T.current) {
|
|
2228
2230
|
C(T.current), T.current = null;
|
|
2229
2231
|
return;
|
|
2230
2232
|
}
|
|
2231
|
-
const
|
|
2232
|
-
if (u &&
|
|
2233
|
-
C(
|
|
2233
|
+
const $ = t;
|
|
2234
|
+
if (u && $) {
|
|
2235
|
+
C($(s || {}));
|
|
2234
2236
|
return;
|
|
2235
2237
|
}
|
|
2236
2238
|
if (u && s) {
|
|
@@ -2240,80 +2242,80 @@ const es = (r) => {
|
|
|
2240
2242
|
d && C(s || {});
|
|
2241
2243
|
}, [s, t, w, u, C, d]);
|
|
2242
2244
|
const K = S(() => {
|
|
2243
|
-
|
|
2244
|
-
}, [
|
|
2245
|
-
(
|
|
2246
|
-
let
|
|
2247
|
-
typeof
|
|
2245
|
+
v(), C();
|
|
2246
|
+
}, [v, C]), le = S(
|
|
2247
|
+
($) => {
|
|
2248
|
+
let x, te;
|
|
2249
|
+
typeof $ == "number" || $ == null ? x = $ : (x = $.id, te = $.values), p(x), te ? w ? C(te) : T.current = te : T.current = null, w || N();
|
|
2248
2250
|
},
|
|
2249
|
-
[
|
|
2251
|
+
[N, w, C]
|
|
2250
2252
|
), ee = S(
|
|
2251
|
-
(
|
|
2252
|
-
const
|
|
2253
|
-
return
|
|
2253
|
+
($) => {
|
|
2254
|
+
const x = n;
|
|
2255
|
+
return x ? x($, { id: f }) : $;
|
|
2254
2256
|
},
|
|
2255
2257
|
[n, f]
|
|
2256
2258
|
), j = S(
|
|
2257
|
-
async (x,
|
|
2258
|
-
a && await a(
|
|
2259
|
+
async ($, x, te) => {
|
|
2260
|
+
a && await a($, {
|
|
2259
2261
|
close: K,
|
|
2260
2262
|
id: f,
|
|
2261
|
-
phase:
|
|
2263
|
+
phase: x,
|
|
2262
2264
|
values: te
|
|
2263
2265
|
});
|
|
2264
2266
|
},
|
|
2265
2267
|
[K, f, a]
|
|
2266
2268
|
), We = S(async () => {
|
|
2267
2269
|
if (!i) return;
|
|
2268
|
-
const
|
|
2269
|
-
|
|
2270
|
+
const $ = L();
|
|
2271
|
+
y(!0);
|
|
2270
2272
|
try {
|
|
2271
|
-
const
|
|
2272
|
-
await i(
|
|
2273
|
+
const x = ee($);
|
|
2274
|
+
await i(x, {
|
|
2273
2275
|
close: K,
|
|
2274
2276
|
id: f,
|
|
2275
|
-
values:
|
|
2277
|
+
values: $
|
|
2276
2278
|
});
|
|
2277
|
-
} catch (
|
|
2278
|
-
throw await j(
|
|
2279
|
-
}),
|
|
2279
|
+
} catch (x) {
|
|
2280
|
+
throw await j(x, "apply", $).catch(() => {
|
|
2281
|
+
}), x;
|
|
2280
2282
|
} finally {
|
|
2281
|
-
|
|
2283
|
+
y(!1);
|
|
2282
2284
|
}
|
|
2283
2285
|
}, [K, L, j, f, ee, i]), ze = S(async () => {
|
|
2284
|
-
const
|
|
2286
|
+
const $ = L();
|
|
2285
2287
|
if (c) {
|
|
2286
|
-
|
|
2288
|
+
y(!0);
|
|
2287
2289
|
try {
|
|
2288
2290
|
await c();
|
|
2289
|
-
} catch (
|
|
2290
|
-
throw await j(
|
|
2291
|
-
}),
|
|
2291
|
+
} catch (x) {
|
|
2292
|
+
throw await j(x, "clear", $).catch(() => {
|
|
2293
|
+
}), x;
|
|
2292
2294
|
} finally {
|
|
2293
|
-
|
|
2295
|
+
y(!1);
|
|
2294
2296
|
}
|
|
2295
2297
|
}
|
|
2296
2298
|
try {
|
|
2297
2299
|
C(s || {});
|
|
2298
|
-
} catch (
|
|
2299
|
-
throw await j(
|
|
2300
|
-
}),
|
|
2300
|
+
} catch (x) {
|
|
2301
|
+
throw await j(x, "clear", $).catch(() => {
|
|
2302
|
+
}), x;
|
|
2301
2303
|
}
|
|
2302
2304
|
}, [s, L, j, c, C]), Je = S(
|
|
2303
|
-
async (
|
|
2304
|
-
|
|
2305
|
+
async ($) => {
|
|
2306
|
+
y(!0);
|
|
2305
2307
|
try {
|
|
2306
|
-
const
|
|
2307
|
-
l && await l(
|
|
2308
|
+
const x = ee($);
|
|
2309
|
+
l && await l(x, {
|
|
2308
2310
|
close: K,
|
|
2309
2311
|
id: f,
|
|
2310
|
-
values:
|
|
2312
|
+
values: $
|
|
2311
2313
|
}), e && K();
|
|
2312
|
-
} catch (
|
|
2313
|
-
throw await j(
|
|
2314
|
-
}),
|
|
2314
|
+
} catch (x) {
|
|
2315
|
+
throw await j(x, "submit", $).catch(() => {
|
|
2316
|
+
}), x;
|
|
2315
2317
|
} finally {
|
|
2316
|
-
|
|
2318
|
+
y(!1);
|
|
2317
2319
|
}
|
|
2318
2320
|
},
|
|
2319
2321
|
[K, e, j, f, ee, l]
|
|
@@ -2337,7 +2339,7 @@ const es = (r) => {
|
|
|
2337
2339
|
onClear: ze,
|
|
2338
2340
|
isLoading: b
|
|
2339
2341
|
};
|
|
2340
|
-
},
|
|
2342
|
+
}, Xs = (r) => {
|
|
2341
2343
|
const e = Z(), { mutationFn: s, queryKey: t, onSuccess: n, onError: o, formToDto: i, ...c } = r, a = ne({
|
|
2342
2344
|
mutationFn: s
|
|
2343
2345
|
});
|
|
@@ -2354,7 +2356,7 @@ const es = (r) => {
|
|
|
2354
2356
|
}
|
|
2355
2357
|
}
|
|
2356
2358
|
});
|
|
2357
|
-
},
|
|
2359
|
+
}, Zs = (r) => {
|
|
2358
2360
|
const e = Z(), s = F(), t = F(), {
|
|
2359
2361
|
mutationFn: n,
|
|
2360
2362
|
queryKey: o,
|
|
@@ -2377,52 +2379,52 @@ const es = (r) => {
|
|
|
2377
2379
|
title: d,
|
|
2378
2380
|
onSubmit: async (w) => {
|
|
2379
2381
|
try {
|
|
2380
|
-
const
|
|
2381
|
-
o && await e.invalidateQueries({ queryKey: o }), i && await i(
|
|
2382
|
-
} catch (
|
|
2383
|
-
throw c && c(
|
|
2382
|
+
const v = await p.mutateAsync(w);
|
|
2383
|
+
o && await e.invalidateQueries({ queryKey: o }), i && await i(v);
|
|
2384
|
+
} catch (v) {
|
|
2385
|
+
throw c && c(v), v;
|
|
2384
2386
|
}
|
|
2385
2387
|
},
|
|
2386
2388
|
formToDto: (w) => {
|
|
2387
|
-
const
|
|
2388
|
-
return
|
|
2389
|
+
const v = a;
|
|
2390
|
+
return v ? v(w, s.current) : w;
|
|
2389
2391
|
}
|
|
2390
|
-
}), { reset:
|
|
2392
|
+
}), { reset: y } = b, T = At({
|
|
2391
2393
|
queryFn: () => l(b.id),
|
|
2392
2394
|
queryKey: [...o || ["put-dialog", d], b.id],
|
|
2393
2395
|
enabled: b.open && !!b.id
|
|
2394
2396
|
});
|
|
2395
2397
|
return M(() => {
|
|
2396
2398
|
if (T.data && t.current !== T.data) {
|
|
2397
|
-
if (s.current = T.data, t.current = T.data, f.current &&
|
|
2398
|
-
|
|
2399
|
+
if (s.current = T.data, t.current = T.data, f.current && y) {
|
|
2400
|
+
y(f.current(T.data));
|
|
2399
2401
|
return;
|
|
2400
2402
|
}
|
|
2401
|
-
|
|
2403
|
+
y == null || y(T.data);
|
|
2402
2404
|
}
|
|
2403
|
-
}, [T.data,
|
|
2405
|
+
}, [T.data, y]), {
|
|
2404
2406
|
...b,
|
|
2405
2407
|
isLoading: b.isLoading || p.isPending || T.isFetching || T.isLoading
|
|
2406
2408
|
};
|
|
2407
|
-
},
|
|
2409
|
+
}, er = (r) => {
|
|
2408
2410
|
const { queryKey: e, onSuccess: s, ...t } = r, n = Z(), { showStackNotifications: o } = oe(), { t: i } = k(), { open: c, onClick: a, close: l, dialogFn: u, isLoading: d } = He({
|
|
2409
2411
|
onSuccessMessage: i("_pages:common.actions.restore.successMessage"),
|
|
2410
2412
|
onError: (f) => {
|
|
2411
2413
|
const p = f;
|
|
2412
|
-
if (
|
|
2414
|
+
if (Se(p))
|
|
2413
2415
|
o(
|
|
2414
2416
|
p.errors.map(
|
|
2415
|
-
([b,
|
|
2416
|
-
message: i(`_pages:${b}.errors.${
|
|
2417
|
+
([b, y]) => ({
|
|
2418
|
+
message: i(`_pages:${b}.errors.${y}`),
|
|
2417
2419
|
type: O.error
|
|
2418
2420
|
})
|
|
2419
2421
|
)
|
|
2420
2422
|
);
|
|
2421
|
-
else if (
|
|
2422
|
-
const b = p.message || i("_accessibility:errors.500"),
|
|
2423
|
+
else if (Te(p)) {
|
|
2424
|
+
const b = p.message || i("_accessibility:errors.500"), y = i(`_accessibility:errors.${p.status}`);
|
|
2423
2425
|
o([
|
|
2424
2426
|
{
|
|
2425
|
-
message:
|
|
2427
|
+
message: y || b,
|
|
2426
2428
|
type: O.error
|
|
2427
2429
|
}
|
|
2428
2430
|
]);
|
|
@@ -2443,7 +2445,7 @@ const es = (r) => {
|
|
|
2443
2445
|
action: m
|
|
2444
2446
|
};
|
|
2445
2447
|
};
|
|
2446
|
-
function
|
|
2448
|
+
function tr(r) {
|
|
2447
2449
|
const { t: e } = k(), s = Z(), {
|
|
2448
2450
|
queryKey: t,
|
|
2449
2451
|
mutationFn: n,
|
|
@@ -2453,13 +2455,13 @@ function er(r) {
|
|
|
2453
2455
|
onError: a
|
|
2454
2456
|
} = r, [l, u] = R(!1), [d, m] = R(null), [f, p] = R(!1), b = ne({
|
|
2455
2457
|
mutationFn: n,
|
|
2456
|
-
onError: (
|
|
2457
|
-
console.error(
|
|
2458
|
+
onError: (g) => {
|
|
2459
|
+
console.error(g), a == null || a(g);
|
|
2458
2460
|
},
|
|
2459
2461
|
onSuccess: async () => {
|
|
2460
2462
|
await s.invalidateQueries({ queryKey: t });
|
|
2461
2463
|
}
|
|
2462
|
-
}), { action:
|
|
2464
|
+
}), { action: y } = ts({
|
|
2463
2465
|
onClick: () => u(!0)
|
|
2464
2466
|
});
|
|
2465
2467
|
return {
|
|
@@ -2470,15 +2472,15 @@ function er(r) {
|
|
|
2470
2472
|
items: d,
|
|
2471
2473
|
override: f
|
|
2472
2474
|
}), u(!1), m(null), p(!1);
|
|
2473
|
-
} catch (
|
|
2474
|
-
console.error(
|
|
2475
|
+
} catch (g) {
|
|
2476
|
+
console.error(g);
|
|
2475
2477
|
}
|
|
2476
2478
|
},
|
|
2477
2479
|
isLoading: b.isPending,
|
|
2478
2480
|
fileProcessor: i,
|
|
2479
|
-
onFileProcessed: (
|
|
2481
|
+
onFileProcessed: (g) => m(g),
|
|
2480
2482
|
renderCustomPreview: c,
|
|
2481
|
-
onOverrideChange: (
|
|
2483
|
+
onOverrideChange: (g) => p(g),
|
|
2482
2484
|
open: l,
|
|
2483
2485
|
title: e("_pages:common.actions.import.dialog.title", {
|
|
2484
2486
|
entity: e(`_pages:${o}.title`)
|
|
@@ -2486,10 +2488,10 @@ function er(r) {
|
|
|
2486
2488
|
handleClose: () => {
|
|
2487
2489
|
u(!1), m(null), p(!1);
|
|
2488
2490
|
},
|
|
2489
|
-
action:
|
|
2491
|
+
action: y
|
|
2490
2492
|
};
|
|
2491
2493
|
}
|
|
2492
|
-
const
|
|
2494
|
+
const sr = (r) => {
|
|
2493
2495
|
const { showSuccessNotification: e } = oe(), { t: s } = k(), {
|
|
2494
2496
|
entity: t,
|
|
2495
2497
|
mutationFn: n,
|
|
@@ -2525,7 +2527,7 @@ function ss(r) {
|
|
|
2525
2527
|
window.removeEventListener("scroll", t);
|
|
2526
2528
|
}), [t]), e > r;
|
|
2527
2529
|
}
|
|
2528
|
-
const
|
|
2530
|
+
const rr = (r) => {
|
|
2529
2531
|
const { t: e } = k(), {
|
|
2530
2532
|
icon: s = yt,
|
|
2531
2533
|
threshold: t = 200,
|
|
@@ -2555,11 +2557,11 @@ const sr = (r) => {
|
|
|
2555
2557
|
}
|
|
2556
2558
|
);
|
|
2557
2559
|
};
|
|
2558
|
-
function
|
|
2560
|
+
function nr(r) {
|
|
2559
2561
|
const { t: e } = k();
|
|
2560
2562
|
if ("children" in r) {
|
|
2561
|
-
const { children:
|
|
2562
|
-
return /* @__PURE__ */ h("div", { className: `error-container${
|
|
2563
|
+
const { children: v, className: N } = r;
|
|
2564
|
+
return /* @__PURE__ */ h("div", { className: `error-container${N ? ` ${N}` : ""}`, children: v });
|
|
2563
2565
|
}
|
|
2564
2566
|
const {
|
|
2565
2567
|
error: t,
|
|
@@ -2575,14 +2577,14 @@ function rr(r) {
|
|
|
2575
2577
|
className: f,
|
|
2576
2578
|
children: p,
|
|
2577
2579
|
onClick: b,
|
|
2578
|
-
...
|
|
2579
|
-
} = a ?? {}, { className:
|
|
2580
|
-
return /* @__PURE__ */
|
|
2580
|
+
...y
|
|
2581
|
+
} = a ?? {}, { className: g, ...T } = l ?? {}, w = o !== null;
|
|
2582
|
+
return /* @__PURE__ */ E("div", { className: `error-container${u ? ` ${u}` : ""}`, children: [
|
|
2581
2583
|
w && /* @__PURE__ */ h(
|
|
2582
2584
|
q,
|
|
2583
2585
|
{
|
|
2584
2586
|
...o,
|
|
2585
|
-
icon: (o == null ? void 0 : o.icon) ??
|
|
2587
|
+
icon: (o == null ? void 0 : o.icon) ?? kt,
|
|
2586
2588
|
className: `error-icon${o != null && o.className ? ` ${o.className}` : ""}`
|
|
2587
2589
|
}
|
|
2588
2590
|
),
|
|
@@ -2590,7 +2592,7 @@ function rr(r) {
|
|
|
2590
2592
|
"p",
|
|
2591
2593
|
{
|
|
2592
2594
|
...T,
|
|
2593
|
-
className: `error-message${
|
|
2595
|
+
className: `error-message${g ? ` ${g}` : ""}`,
|
|
2594
2596
|
children: n ?? (t == null ? void 0 : t.message) ?? e("_accessibility:errors.unknownError")
|
|
2595
2597
|
}
|
|
2596
2598
|
),
|
|
@@ -2600,10 +2602,10 @@ function rr(r) {
|
|
|
2600
2602
|
type: "button",
|
|
2601
2603
|
variant: "submit",
|
|
2602
2604
|
color: "primary",
|
|
2603
|
-
...
|
|
2605
|
+
...y,
|
|
2604
2606
|
className: `error-retry ${f ? ` ${f}` : ""}`,
|
|
2605
|
-
onClick: (
|
|
2606
|
-
b == null || b(
|
|
2607
|
+
onClick: (v) => {
|
|
2608
|
+
b == null || b(v), v.defaultPrevented || m();
|
|
2607
2609
|
},
|
|
2608
2610
|
children: p ?? c ?? e("_accessibility:actions.retry", { defaultValue: "Retry" })
|
|
2609
2611
|
}
|
|
@@ -2612,8 +2614,8 @@ function rr(r) {
|
|
|
2612
2614
|
}
|
|
2613
2615
|
const rs = (r) => {
|
|
2614
2616
|
const { showBackButton: e, title: s, actions: t } = r, { t: n } = k(), { navigate: o } = ce();
|
|
2615
|
-
return /* @__PURE__ */
|
|
2616
|
-
/* @__PURE__ */
|
|
2617
|
+
return /* @__PURE__ */ E("div", { className: "page-header", children: [
|
|
2618
|
+
/* @__PURE__ */ E("div", { className: "page-header-left", children: [
|
|
2617
2619
|
e && /* @__PURE__ */ h(
|
|
2618
2620
|
z,
|
|
2619
2621
|
{
|
|
@@ -2627,7 +2629,7 @@ const rs = (r) => {
|
|
|
2627
2629
|
),
|
|
2628
2630
|
/* @__PURE__ */ h("h2", { className: "page-header-title", children: s })
|
|
2629
2631
|
] }),
|
|
2630
|
-
/* @__PURE__ */
|
|
2632
|
+
/* @__PURE__ */ E("div", { children: [
|
|
2631
2633
|
/* @__PURE__ */ h(
|
|
2632
2634
|
it,
|
|
2633
2635
|
{
|
|
@@ -2644,7 +2646,7 @@ const rs = (r) => {
|
|
|
2644
2646
|
)
|
|
2645
2647
|
] })
|
|
2646
2648
|
] });
|
|
2647
|
-
},
|
|
2649
|
+
}, or = (r) => {
|
|
2648
2650
|
const {
|
|
2649
2651
|
title: e,
|
|
2650
2652
|
children: s,
|
|
@@ -2699,7 +2701,7 @@ const rs = (r) => {
|
|
|
2699
2701
|
i,
|
|
2700
2702
|
u
|
|
2701
2703
|
]);
|
|
2702
|
-
return /* @__PURE__ */
|
|
2704
|
+
return /* @__PURE__ */ E("main", { className: "page-main", children: [
|
|
2703
2705
|
/* @__PURE__ */ h(
|
|
2704
2706
|
rs,
|
|
2705
2707
|
{
|
|
@@ -2723,7 +2725,7 @@ const rs = (r) => {
|
|
|
2723
2725
|
}
|
|
2724
2726
|
)
|
|
2725
2727
|
] });
|
|
2726
|
-
},
|
|
2728
|
+
}, ir = (r) => {
|
|
2727
2729
|
const { t: e } = k(), {
|
|
2728
2730
|
className: s = "",
|
|
2729
2731
|
itemClassName: t = "",
|
|
@@ -2738,7 +2740,7 @@ const rs = (r) => {
|
|
|
2738
2740
|
loadMoreComponent: m = null,
|
|
2739
2741
|
observerRootMargin: f = "0px 0px 200px 0px",
|
|
2740
2742
|
observerThreshold: p = 0
|
|
2741
|
-
} = r, b = F(!1),
|
|
2743
|
+
} = r, b = F(!1), y = F(null), g = S(async () => {
|
|
2742
2744
|
if (!(!l || !d) && !(u || b.current)) {
|
|
2743
2745
|
b.current = !0;
|
|
2744
2746
|
try {
|
|
@@ -2749,35 +2751,35 @@ const rs = (r) => {
|
|
|
2749
2751
|
}
|
|
2750
2752
|
}, [l, u, d]);
|
|
2751
2753
|
return M(() => {
|
|
2752
|
-
if (!l || !d || !
|
|
2754
|
+
if (!l || !d || !y.current || typeof IntersectionObserver > "u") return;
|
|
2753
2755
|
const T = new IntersectionObserver(
|
|
2754
2756
|
(w) => {
|
|
2755
|
-
w.some((
|
|
2757
|
+
w.some((v) => v.isIntersecting) && g();
|
|
2756
2758
|
},
|
|
2757
2759
|
{
|
|
2758
2760
|
rootMargin: f,
|
|
2759
2761
|
threshold: p
|
|
2760
2762
|
}
|
|
2761
2763
|
);
|
|
2762
|
-
return T.observe(
|
|
2764
|
+
return T.observe(y.current), () => T.disconnect();
|
|
2763
2765
|
}, [
|
|
2764
2766
|
l,
|
|
2765
2767
|
d,
|
|
2766
2768
|
f,
|
|
2767
2769
|
p,
|
|
2768
|
-
|
|
2769
|
-
]), n ? /* @__PURE__ */ h(re, {}) : /* @__PURE__ */ h(ae, { children: a != null && a.length ? /* @__PURE__ */
|
|
2770
|
+
g
|
|
2771
|
+
]), n ? /* @__PURE__ */ h(re, {}) : /* @__PURE__ */ h(ae, { children: a != null && a.length ? /* @__PURE__ */ E("ul", { className: `pretty-grid-main ${s}`, children: [
|
|
2770
2772
|
a == null ? void 0 : a.map((T) => /* @__PURE__ */ h("li", { className: `pretty-grid-item ${t}`, children: c(T) }, T.id)),
|
|
2771
|
-
l && d && /* @__PURE__ */ h("li", { className: "pretty-grid-load-more", ref:
|
|
2773
|
+
l && d && /* @__PURE__ */ h("li", { className: "pretty-grid-load-more", ref: y, children: m })
|
|
2772
2774
|
] }) : /* @__PURE__ */ h(ae, { children: o || /* @__PURE__ */ h(ds, { message: i }) }) });
|
|
2773
|
-
}, Ge =
|
|
2775
|
+
}, Ge = X({
|
|
2774
2776
|
title: "",
|
|
2775
2777
|
setTitle: () => {
|
|
2776
2778
|
},
|
|
2777
2779
|
rightContent: null,
|
|
2778
2780
|
setRightContent: () => {
|
|
2779
2781
|
}
|
|
2780
|
-
}),
|
|
2782
|
+
}), ar = (r) => {
|
|
2781
2783
|
const { children: e } = r, [s, t] = R(""), [n, o] = R(null), i = S((l) => {
|
|
2782
2784
|
t(l);
|
|
2783
2785
|
}, []), c = S((l) => {
|
|
@@ -2792,8 +2794,8 @@ const rs = (r) => {
|
|
|
2792
2794
|
[s, i, n, c]
|
|
2793
2795
|
);
|
|
2794
2796
|
return /* @__PURE__ */ h(Ge.Provider, { value: a, children: e });
|
|
2795
|
-
}, ns = () =>
|
|
2796
|
-
function
|
|
2797
|
+
}, ns = () => Y(Ge);
|
|
2798
|
+
function cr(r) {
|
|
2797
2799
|
const { t: e } = k(), { openDrawer: s, showSearch: t = !0, menuButtonProps: n } = r, { searchComponent: o, location: i } = ce(), { title: c, rightContent: a } = ns(), [l, u] = R(!1), d = S((p) => {
|
|
2798
2800
|
(Ht() ? p.metaKey : p.ctrlKey) && p.shiftKey && p.key.toLowerCase() === "f" && (u(!0), p.preventDefault());
|
|
2799
2801
|
}, []);
|
|
@@ -2801,10 +2803,10 @@ function ar(r) {
|
|
|
2801
2803
|
window.removeEventListener("keydown", d);
|
|
2802
2804
|
}), [d]);
|
|
2803
2805
|
const m = o, f = t && !!m;
|
|
2804
|
-
return /* @__PURE__ */
|
|
2806
|
+
return /* @__PURE__ */ E(ae, { children: [
|
|
2805
2807
|
i.pathname !== "/" && !!m && /* @__PURE__ */ h(m, { open: l, onClose: () => u(!1) }),
|
|
2806
|
-
/* @__PURE__ */
|
|
2807
|
-
/* @__PURE__ */
|
|
2808
|
+
/* @__PURE__ */ E("header", { id: "header", className: "header", children: [
|
|
2809
|
+
/* @__PURE__ */ E("div", { className: "navbar-left", children: [
|
|
2808
2810
|
/* @__PURE__ */ h(
|
|
2809
2811
|
z,
|
|
2810
2812
|
{
|
|
@@ -2822,7 +2824,7 @@ function ar(r) {
|
|
|
2822
2824
|
),
|
|
2823
2825
|
/* @__PURE__ */ h("h1", { className: "poppins navbar-title", children: c || e("_pages:home.appName") })
|
|
2824
2826
|
] }),
|
|
2825
|
-
/* @__PURE__ */
|
|
2827
|
+
/* @__PURE__ */ E("div", { className: "navbar-right", children: [
|
|
2826
2828
|
a,
|
|
2827
2829
|
f && /* @__PURE__ */ h(
|
|
2828
2830
|
z,
|
|
@@ -2843,7 +2845,7 @@ const ue = 300, os = (r) => r ?? O.error, is = (r) => {
|
|
|
2843
2845
|
default:
|
|
2844
2846
|
return vt;
|
|
2845
2847
|
}
|
|
2846
|
-
},
|
|
2848
|
+
}, ge = (r) => {
|
|
2847
2849
|
switch (r) {
|
|
2848
2850
|
case O.success:
|
|
2849
2851
|
return "!text-success";
|
|
@@ -2866,7 +2868,7 @@ const ue = 300, os = (r) => r ?? O.error, is = (r) => {
|
|
|
2866
2868
|
return "bg-bg-info";
|
|
2867
2869
|
}
|
|
2868
2870
|
};
|
|
2869
|
-
function
|
|
2871
|
+
function lr() {
|
|
2870
2872
|
const { t: r } = k(), { notification: e, removeNotification: s } = oe(), [t, n] = R([]), o = F(t);
|
|
2871
2873
|
dt(() => {
|
|
2872
2874
|
o.current = t;
|
|
@@ -2929,21 +2931,21 @@ function cr() {
|
|
|
2929
2931
|
}, [t.length, c]), Ie(
|
|
2930
2932
|
/* @__PURE__ */ h("div", { className: `notification-portal ${t.length ? "active" : ""}`, children: t.map(({ id: a, type: l, message: u, closing: d }) => {
|
|
2931
2933
|
const m = os(l);
|
|
2932
|
-
return /* @__PURE__ */
|
|
2934
|
+
return /* @__PURE__ */ E(
|
|
2933
2935
|
"div",
|
|
2934
2936
|
{
|
|
2935
2937
|
className: `notification ${d ? "closing" : ""} ${as(m)}`,
|
|
2936
2938
|
onClick: (f) => f.stopPropagation(),
|
|
2937
2939
|
children: [
|
|
2938
|
-
/* @__PURE__ */
|
|
2940
|
+
/* @__PURE__ */ E("div", { className: "notification-body", children: [
|
|
2939
2941
|
/* @__PURE__ */ h(
|
|
2940
2942
|
q,
|
|
2941
2943
|
{
|
|
2942
2944
|
icon: is(m),
|
|
2943
|
-
className: `notification-icon ${
|
|
2945
|
+
className: `notification-icon ${ge(m)}`
|
|
2944
2946
|
}
|
|
2945
2947
|
),
|
|
2946
|
-
/* @__PURE__ */ h("p", { className: `notification-text ${
|
|
2948
|
+
/* @__PURE__ */ h("p", { className: `notification-text ${ge(m)}`, children: u })
|
|
2947
2949
|
] }),
|
|
2948
2950
|
/* @__PURE__ */ h(
|
|
2949
2951
|
z,
|
|
@@ -2955,7 +2957,7 @@ function cr() {
|
|
|
2955
2957
|
onClick: (f) => {
|
|
2956
2958
|
f.stopPropagation(), a !== void 0 && c(a);
|
|
2957
2959
|
},
|
|
2958
|
-
iconClassName: `${
|
|
2960
|
+
iconClassName: `${ge(m)} notification-close-icon`,
|
|
2959
2961
|
name: r("_accessibility:buttons.closeNotification"),
|
|
2960
2962
|
"aria-label": r("_accessibility:ariaLabels.closeNotification")
|
|
2961
2963
|
}
|
|
@@ -2968,7 +2970,7 @@ function cr() {
|
|
|
2968
2970
|
document.body
|
|
2969
2971
|
);
|
|
2970
2972
|
}
|
|
2971
|
-
function
|
|
2973
|
+
function ur(r) {
|
|
2972
2974
|
const { className: e, ...s } = r;
|
|
2973
2975
|
return /* @__PURE__ */ h("div", { className: "splash-screen", children: /* @__PURE__ */ h(
|
|
2974
2976
|
re,
|
|
@@ -3030,12 +3032,12 @@ const cs = (r) => {
|
|
|
3030
3032
|
useLinks: c = !0,
|
|
3031
3033
|
tabButtonProps: a
|
|
3032
3034
|
} = r, [l, u] = R(s ?? ((f = e[0]) == null ? void 0 : f.id)), d = t ?? l, m = V(() => e.find((p) => p.id === d), [e, d]);
|
|
3033
|
-
return /* @__PURE__ */
|
|
3035
|
+
return /* @__PURE__ */ E("div", { className: `tabs-layout-main ${o}`, children: [
|
|
3034
3036
|
/* @__PURE__ */ h(
|
|
3035
3037
|
"ul",
|
|
3036
3038
|
{
|
|
3037
3039
|
className: `horizontal tabs tabs-container ${i}`,
|
|
3038
|
-
children: e.map(({ id: p, to: b, label:
|
|
3040
|
+
children: e.map(({ id: p, to: b, label: y }) => /* @__PURE__ */ h("li", { children: /* @__PURE__ */ h(
|
|
3039
3041
|
cs,
|
|
3040
3042
|
{
|
|
3041
3043
|
onClick: () => {
|
|
@@ -3047,7 +3049,7 @@ const cs = (r) => {
|
|
|
3047
3049
|
active: d === p,
|
|
3048
3050
|
useLinks: c,
|
|
3049
3051
|
tabButtonProps: a,
|
|
3050
|
-
children:
|
|
3052
|
+
children: y
|
|
3051
3053
|
}
|
|
3052
3054
|
) }, p))
|
|
3053
3055
|
}
|
|
@@ -3067,12 +3069,12 @@ const cs = (r) => {
|
|
|
3067
3069
|
alt: l = "",
|
|
3068
3070
|
final: u = !1
|
|
3069
3071
|
} = r, { t: d } = k();
|
|
3070
|
-
return /* @__PURE__ */
|
|
3072
|
+
return /* @__PURE__ */ E("div", { className: "big-appear step-container", children: [
|
|
3071
3073
|
a && /* @__PURE__ */ h("img", { src: a, alt: l }),
|
|
3072
3074
|
e != null && /* @__PURE__ */ h("h2", { className: "step-title", children: e }),
|
|
3073
3075
|
s != null && /* @__PURE__ */ h("div", { className: "step-body", children: s }),
|
|
3074
3076
|
t != null && /* @__PURE__ */ h("div", { className: "step-content", children: t }),
|
|
3075
|
-
/* @__PURE__ */ h("div", { className: "step-actions", children: u ? /* @__PURE__ */
|
|
3077
|
+
/* @__PURE__ */ h("div", { className: "step-actions", children: u ? /* @__PURE__ */ E(ae, { children: [
|
|
3076
3078
|
/* @__PURE__ */ h(
|
|
3077
3079
|
H,
|
|
3078
3080
|
{
|
|
@@ -3095,7 +3097,7 @@ const cs = (r) => {
|
|
|
3095
3097
|
children: d("_accessibility:buttons.signIn")
|
|
3096
3098
|
}
|
|
3097
3099
|
)
|
|
3098
|
-
] }) : /* @__PURE__ */
|
|
3100
|
+
] }) : /* @__PURE__ */ E(ae, { children: [
|
|
3099
3101
|
/* @__PURE__ */ h(
|
|
3100
3102
|
H,
|
|
3101
3103
|
{
|
|
@@ -3120,7 +3122,7 @@ const cs = (r) => {
|
|
|
3120
3122
|
)
|
|
3121
3123
|
] }) })
|
|
3122
3124
|
] });
|
|
3123
|
-
},
|
|
3125
|
+
}, dr = (r) => {
|
|
3124
3126
|
const {
|
|
3125
3127
|
steps: e,
|
|
3126
3128
|
signInPath: s = "/auth/sign-in",
|
|
@@ -3128,7 +3130,7 @@ const cs = (r) => {
|
|
|
3128
3130
|
onSkip: n,
|
|
3129
3131
|
onSignIn: o,
|
|
3130
3132
|
onStartAsGuest: i
|
|
3131
|
-
} = r,
|
|
3133
|
+
} = r, c = Ke(), { navigate: a } = ce(), [l, u] = R(1), d = S(() => {
|
|
3132
3134
|
if (n) {
|
|
3133
3135
|
n();
|
|
3134
3136
|
return;
|
|
@@ -3145,16 +3147,16 @@ const cs = (r) => {
|
|
|
3145
3147
|
i();
|
|
3146
3148
|
return;
|
|
3147
3149
|
}
|
|
3148
|
-
c(!0), a(t);
|
|
3149
|
-
}, [t, a, i
|
|
3150
|
-
id:
|
|
3150
|
+
c == null || c.setGuestMode(!0), a(t);
|
|
3151
|
+
}, [c, t, a, i]), p = V(() => e.map((b, y) => ({
|
|
3152
|
+
id: y + 1,
|
|
3151
3153
|
label: "",
|
|
3152
3154
|
content: /* @__PURE__ */ h(
|
|
3153
3155
|
us,
|
|
3154
3156
|
{
|
|
3155
3157
|
...b,
|
|
3156
|
-
final:
|
|
3157
|
-
onClickNext: () => u((
|
|
3158
|
+
final: y === e.length - 1,
|
|
3159
|
+
onClickNext: () => u((g) => g + 1),
|
|
3158
3160
|
onSkip: d,
|
|
3159
3161
|
onStartAsGuest: f,
|
|
3160
3162
|
onSignIn: m
|
|
@@ -3177,7 +3179,7 @@ const cs = (r) => {
|
|
|
3177
3179
|
action: t,
|
|
3178
3180
|
iconProps: n
|
|
3179
3181
|
} = r;
|
|
3180
|
-
return /* @__PURE__ */
|
|
3182
|
+
return /* @__PURE__ */ E("div", { className: "empty-container", children: [
|
|
3181
3183
|
n && /* @__PURE__ */ h(q, { ...n }),
|
|
3182
3184
|
/* @__PURE__ */ h("p", { ...s, children: e }),
|
|
3183
3185
|
t && /* @__PURE__ */ h(ut, { showTooltips: !1, showText: !0, ...t })
|
|
@@ -3185,93 +3187,94 @@ const cs = (r) => {
|
|
|
3185
3187
|
};
|
|
3186
3188
|
export {
|
|
3187
3189
|
de as APIClient,
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3190
|
+
pr as Action,
|
|
3191
|
+
gr as Actions,
|
|
3192
|
+
br as ActionsDropdown,
|
|
3191
3193
|
z as AppIconButton,
|
|
3192
3194
|
Ot as AuthClient,
|
|
3193
|
-
|
|
3195
|
+
me as AuthContext,
|
|
3194
3196
|
js as AuthProvider,
|
|
3195
3197
|
Ds as BaseClient,
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
+
yr as Button,
|
|
3199
|
+
Bs as ConfigProvider,
|
|
3198
3200
|
As as ConfirmationDialog,
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3201
|
+
ye as Dialog,
|
|
3202
|
+
we as DialogActions,
|
|
3203
|
+
Gs as Drawer,
|
|
3202
3204
|
qe as DrawerMenuContext,
|
|
3203
|
-
|
|
3205
|
+
Vs as DrawerMenuProvider,
|
|
3204
3206
|
ds as Empty,
|
|
3205
|
-
|
|
3207
|
+
nr as Error,
|
|
3206
3208
|
Es as FormContainer,
|
|
3207
3209
|
Ns as FormDialog,
|
|
3208
3210
|
J as GlobalActions,
|
|
3209
|
-
|
|
3211
|
+
$s as IManager,
|
|
3210
3212
|
z as IconButton,
|
|
3211
|
-
|
|
3213
|
+
xs as ImportDialog,
|
|
3212
3214
|
Ls as IndexedDBClient,
|
|
3213
3215
|
Ks as ManagerProvider,
|
|
3214
3216
|
P as Methods,
|
|
3215
|
-
|
|
3217
|
+
cr as Navbar,
|
|
3216
3218
|
Ge as NavbarContext,
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
+
ar as NavbarProvider,
|
|
3220
|
+
lr as Notification,
|
|
3219
3221
|
O as NotificationEnumType,
|
|
3220
3222
|
Fs as NotificationProvider,
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
+
dr as Onboarding,
|
|
3224
|
+
or as Page,
|
|
3223
3225
|
vs as ParagraphInput,
|
|
3224
3226
|
ks as PasswordInput,
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
+
ir as PrettyGrid,
|
|
3228
|
+
ur as SplashScreen,
|
|
3227
3229
|
us as Step,
|
|
3228
|
-
|
|
3230
|
+
qs as SupabaseAuthProvider,
|
|
3229
3231
|
Rs as SupabaseDataClient,
|
|
3230
3232
|
je as SupabaseManagerContext,
|
|
3231
|
-
|
|
3233
|
+
Hs as SupabaseManagerProvider,
|
|
3232
3234
|
cs as Tab,
|
|
3233
3235
|
ls as TabsLayout,
|
|
3234
|
-
|
|
3236
|
+
rr as ToTop,
|
|
3235
3237
|
Pt as buildQueryUrl,
|
|
3236
|
-
|
|
3238
|
+
Ce as createQueryClient,
|
|
3237
3239
|
Is as enumToKeyValueArray,
|
|
3238
3240
|
Ms as formatForDatetimeLocal,
|
|
3239
3241
|
G as fromLocal,
|
|
3240
3242
|
_s as getFormattedDateTime,
|
|
3241
3243
|
Ps as getShortFormattedDateTime,
|
|
3242
|
-
|
|
3244
|
+
Te as isHttpError,
|
|
3243
3245
|
Ht as isMac,
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
+
Se as isValidationError,
|
|
3247
|
+
he as makeRequest,
|
|
3246
3248
|
ke as mapSupabaseSessionToSessionDto,
|
|
3247
3249
|
Os as mapValidationErrors,
|
|
3248
3250
|
Oe as parseQueries,
|
|
3249
3251
|
Us as queryClient,
|
|
3250
3252
|
I as removeFromLocal,
|
|
3251
3253
|
Q as toLocal,
|
|
3252
|
-
|
|
3254
|
+
Qs as useAuth,
|
|
3253
3255
|
Vt as useAuthContext,
|
|
3254
3256
|
ce as useConfig,
|
|
3255
3257
|
He as useConfirmationForm,
|
|
3256
3258
|
Xt as useDeleteAction,
|
|
3257
|
-
|
|
3259
|
+
Ys as useDeleteDialog,
|
|
3258
3260
|
Be as useDialog,
|
|
3259
3261
|
zt as useDrawerMenu,
|
|
3260
|
-
|
|
3262
|
+
Js as useEditAction,
|
|
3261
3263
|
es as useExportAction,
|
|
3262
|
-
|
|
3264
|
+
sr as useExportActionMutate,
|
|
3263
3265
|
Ve as useFormDialog,
|
|
3264
3266
|
ts as useImportAction,
|
|
3265
|
-
|
|
3267
|
+
tr as useImportDialog,
|
|
3266
3268
|
Bt as useManager,
|
|
3267
3269
|
ns as useNavbar,
|
|
3268
3270
|
oe as useNotification,
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3271
|
+
Ke as useOptionalAuthContext,
|
|
3272
|
+
Xs as usePostDialog,
|
|
3273
|
+
zs as usePostForm,
|
|
3274
|
+
Zs as usePutDialog,
|
|
3272
3275
|
Zt as useRestoreAction,
|
|
3273
|
-
|
|
3276
|
+
er as useRestoreDialog,
|
|
3274
3277
|
ss as useScrollTrigger,
|
|
3275
3278
|
Gt as useSupabase,
|
|
3276
|
-
|
|
3279
|
+
Ws as useTimeAge
|
|
3277
3280
|
};
|