@sito/dashboard-app 0.0.55 → 0.0.56
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 +36 -0
- package/dist/dashboard-app.cjs +1 -1
- package/dist/dashboard-app.js +603 -598
- package/dist/hooks/dialogs/types.d.ts +5 -1
- package/dist/main.css +1 -1
- package/package.json +4 -4
package/dist/dashboard-app.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var N = (r, e, s) =>
|
|
1
|
+
var Ye = Object.defineProperty;
|
|
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 N = (r, e, s) => Xe(r, typeof e != "symbol" ? e + "" : e, s);
|
|
4
4
|
import "./main.css";
|
|
5
|
-
import { State as
|
|
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
|
|
9
|
-
import { FontAwesomeIcon as
|
|
10
|
-
import { forwardRef as
|
|
11
|
-
import { faEyeSlash as
|
|
12
|
-
import { createPortal as
|
|
13
|
-
import { QueryClient as
|
|
14
|
-
import { faSadTear as
|
|
15
|
-
import { useForm as
|
|
16
|
-
const
|
|
7
|
+
import { Action as fr, Actions as pr, ActionsDropdown as gr, Button as br } from "@sito/dashboard";
|
|
8
|
+
import { jsxs as v, jsx as h, Fragment as ae } from "react/jsx-runtime";
|
|
9
|
+
import { FontAwesomeIcon as q } from "@fortawesome/react-fontawesome";
|
|
10
|
+
import { forwardRef as $e, useState as R, useCallback as S, useEffect as O, useReducer as xe, useRef as F, useMemo as V, createContext as Y, useContext as X, useLayoutEffect as dt } from "react";
|
|
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 Ct, faSearch as Tt, faCircleCheck as vt, faWarning as Et } from "@fortawesome/free-solid-svg-icons";
|
|
12
|
+
import { createPortal as Ie } from "react-dom";
|
|
13
|
+
import { QueryClient as kt, QueryClientProvider as _e, useMutation as ne, useQueryClient as Z, useQuery as Nt } from "@tanstack/react-query";
|
|
14
|
+
import { faSadTear as At } from "@fortawesome/free-regular-svg-icons";
|
|
15
|
+
import { useForm as Pe } from "react-hook-form";
|
|
16
|
+
const Ee = (r) => r == null ? !1 : `${r}`.length > 0, vs = $e(function(r, e) {
|
|
17
17
|
const {
|
|
18
18
|
value: s,
|
|
19
19
|
defaultValue: t,
|
|
20
20
|
onChange: n,
|
|
21
|
-
state: o =
|
|
21
|
+
state: o = Ze.default,
|
|
22
22
|
name: i = "",
|
|
23
23
|
id: c = "",
|
|
24
24
|
label: a = "",
|
|
@@ -30,32 +30,32 @@ const ve = (r) => r == null ? !1 : `${r}`.length > 0, Ts = Ae(function(r, e) {
|
|
|
30
30
|
helperText: p = "",
|
|
31
31
|
helperTextClassName: b = "",
|
|
32
32
|
...g
|
|
33
|
-
} = r, y = s !== void 0, [C, w] =
|
|
34
|
-
() =>
|
|
35
|
-
),
|
|
33
|
+
} = r, y = s !== void 0, [C, w] = R(
|
|
34
|
+
() => Ee(t)
|
|
35
|
+
), E = y ? Ee(s) : C, A = (U) => {
|
|
36
36
|
y || w(U.currentTarget.value.length > 0), n == null || n(U);
|
|
37
37
|
};
|
|
38
|
-
return /* @__PURE__ */
|
|
38
|
+
return /* @__PURE__ */ v("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 ${
|
|
45
|
+
className: `text-input text-area form-paragraph-textarea peer ${et(o)} ${E ? "has-value" : ""} ${g.placeholder ? "has-placeholder" : ""} ${m}`,
|
|
46
46
|
required: u,
|
|
47
47
|
defaultValue: t,
|
|
48
48
|
...y ? { value: s } : {},
|
|
49
|
-
onChange:
|
|
49
|
+
onChange: A,
|
|
50
50
|
disabled: l,
|
|
51
51
|
...g
|
|
52
52
|
}
|
|
53
53
|
),
|
|
54
|
-
/* @__PURE__ */
|
|
54
|
+
/* @__PURE__ */ v(
|
|
55
55
|
"label",
|
|
56
56
|
{
|
|
57
57
|
htmlFor: c,
|
|
58
|
-
className: `text-input-label ${
|
|
58
|
+
className: `text-input-label ${tt(o)} ${f}`,
|
|
59
59
|
children: [
|
|
60
60
|
a,
|
|
61
61
|
u ? " *" : ""
|
|
@@ -65,12 +65,12 @@ const ve = (r) => r == null ? !1 : `${r}`.length > 0, Ts = Ae(function(r, e) {
|
|
|
65
65
|
!!p && /* @__PURE__ */ h(
|
|
66
66
|
"p",
|
|
67
67
|
{
|
|
68
|
-
className: `text-input-helper-text ${
|
|
68
|
+
className: `text-input-helper-text ${st(o)} ${b}`,
|
|
69
69
|
children: p
|
|
70
70
|
}
|
|
71
71
|
)
|
|
72
72
|
] });
|
|
73
|
-
}),
|
|
73
|
+
}), Es = (r) => {
|
|
74
74
|
const { t: e } = k(), {
|
|
75
75
|
children: s,
|
|
76
76
|
handleSubmit: t,
|
|
@@ -79,11 +79,11 @@ const ve = (r) => r == null ? !1 : `${r}`.length > 0, Ts = Ae(function(r, e) {
|
|
|
79
79
|
buttonEnd: i = !0,
|
|
80
80
|
reset: c
|
|
81
81
|
} = r;
|
|
82
|
-
return /* @__PURE__ */
|
|
82
|
+
return /* @__PURE__ */ v("form", { className: "form-container", onSubmit: t(n), children: [
|
|
83
83
|
s,
|
|
84
|
-
/* @__PURE__ */
|
|
85
|
-
/* @__PURE__ */
|
|
86
|
-
|
|
84
|
+
/* @__PURE__ */ v("div", { className: `form-actions ${i ? "end" : ""}`, children: [
|
|
85
|
+
/* @__PURE__ */ v(
|
|
86
|
+
H,
|
|
87
87
|
{
|
|
88
88
|
type: "submit",
|
|
89
89
|
color: "primary",
|
|
@@ -105,7 +105,7 @@ const ve = (r) => r == null ? !1 : `${r}`.length > 0, Ts = Ae(function(r, e) {
|
|
|
105
105
|
}
|
|
106
106
|
),
|
|
107
107
|
/* @__PURE__ */ h(
|
|
108
|
-
|
|
108
|
+
H,
|
|
109
109
|
{
|
|
110
110
|
type: "button",
|
|
111
111
|
variant: "outlined",
|
|
@@ -117,9 +117,9 @@ const ve = (r) => r == null ? !1 : `${r}`.length > 0, Ts = Ae(function(r, e) {
|
|
|
117
117
|
)
|
|
118
118
|
] })
|
|
119
119
|
] });
|
|
120
|
-
},
|
|
121
|
-
const { t: s } = k(), [t, n] =
|
|
122
|
-
return /* @__PURE__ */ h(
|
|
120
|
+
}, ks = $e(function(r, e) {
|
|
121
|
+
const { t: s } = k(), [t, n] = R(!1);
|
|
122
|
+
return /* @__PURE__ */ h(rt, { ...r, type: t ? "text" : "password", ref: e, children: /* @__PURE__ */ h(
|
|
123
123
|
z,
|
|
124
124
|
{
|
|
125
125
|
type: "button",
|
|
@@ -129,10 +129,10 @@ const ve = (r) => r == null ? !1 : `${r}`.length > 0, Ts = Ae(function(r, e) {
|
|
|
129
129
|
),
|
|
130
130
|
className: "password-icon",
|
|
131
131
|
onClick: () => n(!t),
|
|
132
|
-
icon: t ?
|
|
132
|
+
icon: t ? mt : ht
|
|
133
133
|
}
|
|
134
134
|
) });
|
|
135
|
-
}),
|
|
135
|
+
}), be = (r) => {
|
|
136
136
|
const { t: e } = k(), {
|
|
137
137
|
title: s,
|
|
138
138
|
children: t,
|
|
@@ -147,7 +147,7 @@ const ve = (r) => r == null ? !1 : `${r}`.length > 0, Ts = Ae(function(r, e) {
|
|
|
147
147
|
},
|
|
148
148
|
[o, n]
|
|
149
149
|
);
|
|
150
|
-
|
|
150
|
+
O(() => (window.addEventListener("keydown", l), () => {
|
|
151
151
|
window.removeEventListener("keydown", l);
|
|
152
152
|
}), [l]);
|
|
153
153
|
const u = S(
|
|
@@ -156,14 +156,14 @@ const ve = (r) => r == null ? !1 : `${r}`.length > 0, Ts = Ae(function(r, e) {
|
|
|
156
156
|
},
|
|
157
157
|
[n]
|
|
158
158
|
);
|
|
159
|
-
return
|
|
159
|
+
return O(() => {
|
|
160
160
|
const d = (m) => {
|
|
161
161
|
m ? document.body.style.overflow = "hidden" : document.body.style.overflow = "auto";
|
|
162
162
|
};
|
|
163
163
|
return d(o), () => {
|
|
164
164
|
d(!1);
|
|
165
165
|
};
|
|
166
|
-
}, [o]),
|
|
166
|
+
}, [o]), Ie(
|
|
167
167
|
/* @__PURE__ */ h(
|
|
168
168
|
"div",
|
|
169
169
|
{
|
|
@@ -171,17 +171,17 @@ const ve = (r) => r == null ? !1 : `${r}`.length > 0, Ts = Ae(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__ */ v(
|
|
175
175
|
"div",
|
|
176
176
|
{
|
|
177
177
|
className: `dialog elevated animated ${o ? `opened ${a}` : "closed"} ${c}`,
|
|
178
178
|
children: [
|
|
179
|
-
/* @__PURE__ */
|
|
179
|
+
/* @__PURE__ */ v("div", { className: "dialog-header", children: [
|
|
180
180
|
/* @__PURE__ */ h("h3", { className: "dialog-title", children: s }),
|
|
181
181
|
/* @__PURE__ */ h(
|
|
182
182
|
z,
|
|
183
183
|
{
|
|
184
|
-
icon:
|
|
184
|
+
icon: De,
|
|
185
185
|
disabled: !o,
|
|
186
186
|
"aria-disabled": !o,
|
|
187
187
|
onClick: n,
|
|
@@ -201,7 +201,7 @@ const ve = (r) => r == null ? !1 : `${r}`.length > 0, Ts = Ae(function(r, e) {
|
|
|
201
201
|
),
|
|
202
202
|
document.body
|
|
203
203
|
);
|
|
204
|
-
},
|
|
204
|
+
}, ye = (r) => {
|
|
205
205
|
const {
|
|
206
206
|
primaryText: e,
|
|
207
207
|
cancelText: s,
|
|
@@ -219,13 +219,13 @@ const ve = (r) => r == null ? !1 : `${r}`.length > 0, Ts = Ae(function(r, e) {
|
|
|
219
219
|
cancelAriaLabel: p,
|
|
220
220
|
extraActions: b = []
|
|
221
221
|
} = r;
|
|
222
|
-
return /* @__PURE__ */
|
|
222
|
+
return /* @__PURE__ */ v(
|
|
223
223
|
"div",
|
|
224
224
|
{
|
|
225
225
|
className: `dialog-actions ${u ? "end" : ""} ${a}`,
|
|
226
226
|
children: [
|
|
227
|
-
/* @__PURE__ */
|
|
228
|
-
|
|
227
|
+
/* @__PURE__ */ v(
|
|
228
|
+
H,
|
|
229
229
|
{
|
|
230
230
|
type: c,
|
|
231
231
|
color: "primary",
|
|
@@ -248,9 +248,9 @@ const ve = (r) => r == null ? !1 : `${r}`.length > 0, Ts = Ae(function(r, e) {
|
|
|
248
248
|
]
|
|
249
249
|
}
|
|
250
250
|
),
|
|
251
|
-
b == null ? void 0 : b.map((g) => /* @__PURE__ */ h(
|
|
251
|
+
b == null ? void 0 : b.map((g) => /* @__PURE__ */ h(H, { ...g }, g.id)),
|
|
252
252
|
/* @__PURE__ */ h(
|
|
253
|
-
|
|
253
|
+
H,
|
|
254
254
|
{
|
|
255
255
|
type: "button",
|
|
256
256
|
variant: "outlined",
|
|
@@ -264,7 +264,7 @@ const ve = (r) => r == null ? !1 : `${r}`.length > 0, Ts = Ae(function(r, e) {
|
|
|
264
264
|
]
|
|
265
265
|
}
|
|
266
266
|
);
|
|
267
|
-
},
|
|
267
|
+
}, Ns = (r) => {
|
|
268
268
|
const { t: e } = k(), {
|
|
269
269
|
children: s,
|
|
270
270
|
handleSubmit: t,
|
|
@@ -275,10 +275,10 @@ const ve = (r) => r == null ? !1 : `${r}`.length > 0, Ts = Ae(function(r, e) {
|
|
|
275
275
|
extraActions: a = [],
|
|
276
276
|
...l
|
|
277
277
|
} = r;
|
|
278
|
-
return /* @__PURE__ */ h(
|
|
278
|
+
return /* @__PURE__ */ h(be, { ...l, handleClose: o, children: /* @__PURE__ */ v("form", { onSubmit: t(n), children: [
|
|
279
279
|
/* @__PURE__ */ h("div", { className: "form-container", children: s }),
|
|
280
280
|
/* @__PURE__ */ h(
|
|
281
|
-
|
|
281
|
+
ye,
|
|
282
282
|
{
|
|
283
283
|
primaryType: "submit",
|
|
284
284
|
primaryText: e("_accessibility:buttons.submit"),
|
|
@@ -296,7 +296,7 @@ const ve = (r) => r == null ? !1 : `${r}`.length > 0, Ts = Ae(function(r, e) {
|
|
|
296
296
|
}
|
|
297
297
|
)
|
|
298
298
|
] }) });
|
|
299
|
-
},
|
|
299
|
+
}, As = (r) => {
|
|
300
300
|
const { t: e } = k(), {
|
|
301
301
|
children: s,
|
|
302
302
|
handleSubmit: t,
|
|
@@ -305,10 +305,10 @@ const ve = (r) => r == null ? !1 : `${r}`.length > 0, Ts = Ae(function(r, e) {
|
|
|
305
305
|
extraActions: i = [],
|
|
306
306
|
...c
|
|
307
307
|
} = r;
|
|
308
|
-
return /* @__PURE__ */
|
|
308
|
+
return /* @__PURE__ */ v(be, { ...c, handleClose: n, children: [
|
|
309
309
|
s,
|
|
310
310
|
/* @__PURE__ */ h(
|
|
311
|
-
|
|
311
|
+
ye,
|
|
312
312
|
{
|
|
313
313
|
primaryText: e("_accessibility:buttons.ok"),
|
|
314
314
|
cancelText: e("_accessibility:buttons.cancel"),
|
|
@@ -327,26 +327,26 @@ const ve = (r) => r == null ? !1 : `${r}`.length > 0, Ts = Ae(function(r, e) {
|
|
|
327
327
|
)
|
|
328
328
|
] });
|
|
329
329
|
};
|
|
330
|
-
function
|
|
330
|
+
function $t(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 xt(r) {
|
|
337
337
|
const { message: e, className: s = "" } = r, { t } = k();
|
|
338
|
-
return /* @__PURE__ */
|
|
338
|
+
return /* @__PURE__ */ v("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..."
|
|
342
342
|
}) })
|
|
343
343
|
] });
|
|
344
344
|
}
|
|
345
|
-
function
|
|
345
|
+
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__ */ v("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`
|
|
@@ -354,7 +354,7 @@ function xt(r) {
|
|
|
354
354
|
/* @__PURE__ */ h("pre", { className: "import-preview-content", children: JSON.stringify(o, null, 2) })
|
|
355
355
|
] });
|
|
356
356
|
}
|
|
357
|
-
const
|
|
357
|
+
const Oe = () => ({
|
|
358
358
|
file: null,
|
|
359
359
|
previewItems: null,
|
|
360
360
|
parseError: null,
|
|
@@ -362,7 +362,7 @@ const Pe = () => ({
|
|
|
362
362
|
overrideExisting: !1,
|
|
363
363
|
inputKey: 0
|
|
364
364
|
});
|
|
365
|
-
function
|
|
365
|
+
function Lt(r, e) {
|
|
366
366
|
switch (e.type) {
|
|
367
367
|
case "SET_FILE":
|
|
368
368
|
return {
|
|
@@ -391,10 +391,10 @@ function Dt(r, e) {
|
|
|
391
391
|
case "SET_OVERRIDE":
|
|
392
392
|
return { ...r, overrideExisting: e.value };
|
|
393
393
|
case "RESET":
|
|
394
|
-
return { ...
|
|
394
|
+
return { ...Oe(), inputKey: r.inputKey + 1 };
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
|
-
const
|
|
397
|
+
const $s = (r) => {
|
|
398
398
|
const { t: e } = k(), {
|
|
399
399
|
children: s,
|
|
400
400
|
handleSubmit: t,
|
|
@@ -407,71 +407,71 @@ const As = (r) => {
|
|
|
407
407
|
open: u,
|
|
408
408
|
extraActions: d = [],
|
|
409
409
|
...m
|
|
410
|
-
} = r, [f, p] =
|
|
411
|
-
|
|
412
|
-
|
|
410
|
+
} = r, [f, p] = xe(
|
|
411
|
+
Lt,
|
|
412
|
+
Oe()
|
|
413
413
|
), {
|
|
414
414
|
file: b,
|
|
415
415
|
previewItems: g,
|
|
416
416
|
parseError: y,
|
|
417
417
|
processing: C,
|
|
418
418
|
overrideExisting: w,
|
|
419
|
-
inputKey:
|
|
420
|
-
} = f,
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
}, [c]),
|
|
419
|
+
inputKey: E
|
|
420
|
+
} = f, A = F(c), U = F(i);
|
|
421
|
+
O(() => {
|
|
422
|
+
A.current = c;
|
|
423
|
+
}, [c]), O(() => {
|
|
424
424
|
U.current = i;
|
|
425
|
-
}, [i]),
|
|
425
|
+
}, [i]), O(() => {
|
|
426
426
|
u || p({ type: "RESET" });
|
|
427
427
|
}, [u]);
|
|
428
|
-
const
|
|
429
|
-
async (
|
|
430
|
-
var
|
|
428
|
+
const B = S(
|
|
429
|
+
async (T, $) => {
|
|
430
|
+
var x;
|
|
431
431
|
if (U.current) {
|
|
432
432
|
p({ type: "START_PROCESSING" });
|
|
433
433
|
try {
|
|
434
|
-
const
|
|
435
|
-
p({ type: "SET_PREVIEW", items:
|
|
436
|
-
} catch (
|
|
437
|
-
console.error(
|
|
438
|
-
const
|
|
439
|
-
p({ type: "SET_ERROR", message:
|
|
434
|
+
const _ = await U.current(T, { override: $ });
|
|
435
|
+
p({ type: "SET_PREVIEW", items: _ ?? [] }), (x = A.current) == null || x.call(A, _ ?? []);
|
|
436
|
+
} catch (_) {
|
|
437
|
+
console.error(_);
|
|
438
|
+
const K = _ instanceof Error ? _.message : "Failed to parse file";
|
|
439
|
+
p({ type: "SET_ERROR", message: K });
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
442
|
},
|
|
443
443
|
[]
|
|
444
444
|
);
|
|
445
|
-
return /* @__PURE__ */
|
|
445
|
+
return /* @__PURE__ */ v(be, { ...m, open: u, handleClose: n, children: [
|
|
446
446
|
/* @__PURE__ */ h(
|
|
447
|
-
|
|
447
|
+
nt,
|
|
448
448
|
{
|
|
449
449
|
onClear: () => {
|
|
450
|
-
var
|
|
451
|
-
p({ type: "SET_FILE", file: null }), (
|
|
450
|
+
var T;
|
|
451
|
+
p({ type: "SET_FILE", file: null }), (T = A.current) == null || T.call(A, []);
|
|
452
452
|
},
|
|
453
|
-
onChange: (
|
|
454
|
-
var
|
|
455
|
-
const
|
|
456
|
-
if (
|
|
457
|
-
p({ type: "SET_FILE", file: null }), (
|
|
453
|
+
onChange: (T) => {
|
|
454
|
+
var x, _;
|
|
455
|
+
const $ = (x = T.target.files) == null ? void 0 : x[0];
|
|
456
|
+
if (!$) {
|
|
457
|
+
p({ type: "SET_FILE", file: null }), (_ = A.current) == null || _.call(A, []);
|
|
458
458
|
return;
|
|
459
459
|
}
|
|
460
|
-
p({ type: "SET_FILE", file:
|
|
460
|
+
p({ type: "SET_FILE", file: $ }), B($, w);
|
|
461
461
|
},
|
|
462
462
|
label: e("_accessibility:labels.file")
|
|
463
463
|
},
|
|
464
|
-
|
|
464
|
+
E
|
|
465
465
|
),
|
|
466
|
-
/* @__PURE__ */
|
|
466
|
+
/* @__PURE__ */ v("label", { className: "import-override-label", children: [
|
|
467
467
|
/* @__PURE__ */ h(
|
|
468
468
|
"input",
|
|
469
469
|
{
|
|
470
470
|
type: "checkbox",
|
|
471
471
|
checked: w,
|
|
472
|
-
onChange: (
|
|
473
|
-
const
|
|
474
|
-
p({ type: "SET_OVERRIDE", value:
|
|
472
|
+
onChange: (T) => {
|
|
473
|
+
const $ = T.target.checked;
|
|
474
|
+
p({ type: "SET_OVERRIDE", value: $ }), l == null || l($), b && B(b, $);
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
477
|
),
|
|
@@ -479,12 +479,12 @@ const As = (r) => {
|
|
|
479
479
|
defaultValue: "Override existing items"
|
|
480
480
|
}) })
|
|
481
481
|
] }),
|
|
482
|
-
/* @__PURE__ */ h(
|
|
483
|
-
C && /* @__PURE__ */ h(
|
|
484
|
-
a ? a(g) : !!g && g.length > 0 && /* @__PURE__ */ h(
|
|
482
|
+
/* @__PURE__ */ h($t, { message: y }),
|
|
483
|
+
C && /* @__PURE__ */ h(xt, {}),
|
|
484
|
+
a ? a(g) : !!g && g.length > 0 && /* @__PURE__ */ h(Dt, { items: g }),
|
|
485
485
|
s,
|
|
486
486
|
/* @__PURE__ */ h(
|
|
487
|
-
|
|
487
|
+
ye,
|
|
488
488
|
{
|
|
489
489
|
primaryText: e("_accessibility:buttons.ok"),
|
|
490
490
|
cancelText: e("_accessibility:buttons.cancel"),
|
|
@@ -504,12 +504,12 @@ const As = (r) => {
|
|
|
504
504
|
)
|
|
505
505
|
] });
|
|
506
506
|
};
|
|
507
|
-
var
|
|
508
|
-
const
|
|
509
|
-
async function
|
|
510
|
-
const n =
|
|
507
|
+
var M = /* @__PURE__ */ ((r) => (r[r.success = 0] = "success", r[r.error = 1] = "error", r[r.warning = 2] = "warning", r[r.info = 3] = "info", r))(M || {}), P = /* @__PURE__ */ ((r) => (r.GET = "GET", r.POST = "POST", r.PUT = "PUT", r.PATCH = "PATCH", r.DELETE = "DELETE", r))(P || {});
|
|
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 me(r, e = "GET", s, t) {
|
|
510
|
+
const n = It(t), o = {
|
|
511
511
|
...s !== void 0 ? { "Content-Type": "application/json" } : {},
|
|
512
|
-
...
|
|
512
|
+
..._t(n.headers)
|
|
513
513
|
};
|
|
514
514
|
try {
|
|
515
515
|
const i = await fetch(r, {
|
|
@@ -551,7 +551,7 @@ async function de(r, e = "GET", s, t) {
|
|
|
551
551
|
};
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function Pt(r, e) {
|
|
555
555
|
const s = (t) => t instanceof Date ? t.toISOString() : String(t);
|
|
556
556
|
if (e) {
|
|
557
557
|
const t = Object.entries(e).filter(([, n]) => n != null).map(
|
|
@@ -561,30 +561,30 @@ function _t(r, e) {
|
|
|
561
561
|
}
|
|
562
562
|
return r;
|
|
563
563
|
}
|
|
564
|
-
const
|
|
564
|
+
const he = (r) => typeof r == "object" && r !== null, W = (r) => r instanceof Date ? encodeURIComponent(r.toISOString()) : encodeURIComponent(String(r)), Ot = (r) => {
|
|
565
565
|
if (typeof r != "string") return;
|
|
566
566
|
const e = r.trim().toUpperCase();
|
|
567
567
|
if (e === "ACTIVE" || e === "DELETED" || e === "ALL")
|
|
568
568
|
return e;
|
|
569
|
-
},
|
|
569
|
+
}, Me = (r, e, s) => {
|
|
570
570
|
const t = [];
|
|
571
571
|
if (e) {
|
|
572
572
|
const { sortingBy: n, sortingOrder: o, currentPage: i, pageSize: c } = e;
|
|
573
573
|
n !== void 0 && t.push(`sort=${String(n)}`), o !== void 0 && t.push(`order=${o}`), i !== void 0 && t.push(`page=${i}`), c !== void 0 && t.push(`pageSize=${c}`);
|
|
574
574
|
}
|
|
575
575
|
if (s) {
|
|
576
|
-
const n =
|
|
576
|
+
const n = Ot(s.softDeleteScope);
|
|
577
577
|
n && t.push(`softDeleteScope=${encodeURIComponent(n)}`);
|
|
578
578
|
const o = Object.entries(s).filter(
|
|
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)}` : he(a) ? `${i}==${W(a.id ?? "")}` : `${i}==${W(a)}`);
|
|
583
|
+
if (he(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)}` : he(c) ? `${i}==${W(c.id ?? "")}` : `${i}==${W(c)}`;
|
|
588
588
|
});
|
|
589
589
|
o.length > 0 && t.push(`filters=${o.join(",")}`);
|
|
590
590
|
}
|
|
@@ -640,12 +640,12 @@ const me = (r) => typeof r == "object" && r !== null, W = (r) => r instanceof Da
|
|
|
640
640
|
return Number.isNaN(t) ? !1 : Date.now() >= t - this.refreshExpirySkewMs;
|
|
641
641
|
}
|
|
642
642
|
clearStoredSession() {
|
|
643
|
-
|
|
643
|
+
I(this.userKey), I(this.rememberKey), I(this.refreshTokenKey), I(this.accessTokenExpiresAtKey);
|
|
644
644
|
}
|
|
645
645
|
storeSession(e, s) {
|
|
646
|
-
|
|
646
|
+
Q(this.userKey, e.token);
|
|
647
647
|
const t = e.refreshToken === void 0 ? s : e.refreshToken;
|
|
648
|
-
typeof t == "string" && t.length ?
|
|
648
|
+
typeof t == "string" && t.length ? Q(this.refreshTokenKey, t) : I(this.refreshTokenKey), typeof e.accessTokenExpiresAt == "string" && e.accessTokenExpiresAt.length ? Q(this.accessTokenExpiresAtKey, e.accessTokenExpiresAt) : I(this.accessTokenExpiresAtKey);
|
|
649
649
|
}
|
|
650
650
|
async refreshAccessTokenWithMutex() {
|
|
651
651
|
const e = this.getRefreshToken();
|
|
@@ -660,9 +660,9 @@ const me = (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 me(
|
|
664
664
|
this.buildUrl(this.refreshEndpoint),
|
|
665
|
-
|
|
665
|
+
P.POST,
|
|
666
666
|
{ refreshToken: e }
|
|
667
667
|
);
|
|
668
668
|
if (c || !(o != null && o.token))
|
|
@@ -699,20 +699,20 @@ const me = (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 me(
|
|
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 me(
|
|
709
709
|
this.buildUrl(e),
|
|
710
710
|
s,
|
|
711
711
|
t,
|
|
712
712
|
this.mergeRequestConfig(n)
|
|
713
713
|
)), o;
|
|
714
714
|
}
|
|
715
|
-
async doQuery(e, s =
|
|
715
|
+
async doQuery(e, s = P.GET, t, n) {
|
|
716
716
|
const {
|
|
717
717
|
data: o,
|
|
718
718
|
status: i,
|
|
@@ -737,13 +737,13 @@ const me = (r) => typeof r == "object" && r !== null, W = (r) => r instanceof Da
|
|
|
737
737
|
* @returns Result list
|
|
738
738
|
*/
|
|
739
739
|
async get(e, s, t) {
|
|
740
|
-
const n =
|
|
740
|
+
const n = Me(e, s, t), {
|
|
741
741
|
data: o,
|
|
742
742
|
error: i,
|
|
743
743
|
status: c
|
|
744
744
|
} = await this.makeRequestWithRefresh(
|
|
745
745
|
n,
|
|
746
|
-
|
|
746
|
+
P.GET
|
|
747
747
|
);
|
|
748
748
|
if (i || c < 200 || c >= 300 || !o)
|
|
749
749
|
throw i ?? {
|
|
@@ -765,7 +765,7 @@ const me = (r) => typeof r == "object" && r !== null, W = (r) => r instanceof Da
|
|
|
765
765
|
status: o
|
|
766
766
|
} = await this.makeRequestWithRefresh(
|
|
767
767
|
e,
|
|
768
|
-
|
|
768
|
+
P.PATCH,
|
|
769
769
|
s
|
|
770
770
|
);
|
|
771
771
|
if (t || n === null || n === void 0)
|
|
@@ -787,7 +787,7 @@ const me = (r) => typeof r == "object" && r !== null, W = (r) => r instanceof Da
|
|
|
787
787
|
status: o
|
|
788
788
|
} = await this.makeRequestWithRefresh(
|
|
789
789
|
e,
|
|
790
|
-
|
|
790
|
+
P.DELETE,
|
|
791
791
|
s
|
|
792
792
|
);
|
|
793
793
|
if (t || n === null || n === void 0)
|
|
@@ -810,7 +810,7 @@ const me = (r) => typeof r == "object" && r !== null, W = (r) => r instanceof Da
|
|
|
810
810
|
status: o
|
|
811
811
|
} = await this.makeRequestWithRefresh(
|
|
812
812
|
e,
|
|
813
|
-
|
|
813
|
+
P.POST,
|
|
814
814
|
s
|
|
815
815
|
);
|
|
816
816
|
if (t || n === null || n === void 0)
|
|
@@ -822,24 +822,24 @@ const me = (r) => typeof r == "object" && r !== null, W = (r) => r instanceof Da
|
|
|
822
822
|
}
|
|
823
823
|
};
|
|
824
824
|
N(se, "refreshInFlight", /* @__PURE__ */ new Map());
|
|
825
|
-
let
|
|
826
|
-
class
|
|
825
|
+
let de = se;
|
|
826
|
+
class Mt {
|
|
827
827
|
constructor(e, s = "user", t = {}) {
|
|
828
828
|
N(this, "api");
|
|
829
|
-
this.api = new
|
|
829
|
+
this.api = new de(e, s, !1, void 0, t);
|
|
830
830
|
}
|
|
831
831
|
async login(e) {
|
|
832
832
|
const s = "auth/sign-in", t = e;
|
|
833
833
|
return await this.api.doQuery(
|
|
834
834
|
s,
|
|
835
|
-
|
|
835
|
+
P.POST,
|
|
836
836
|
t
|
|
837
837
|
);
|
|
838
838
|
}
|
|
839
839
|
async refresh(e) {
|
|
840
840
|
return await this.api.doQuery(
|
|
841
841
|
"auth/refresh",
|
|
842
|
-
|
|
842
|
+
P.POST,
|
|
843
843
|
e
|
|
844
844
|
);
|
|
845
845
|
}
|
|
@@ -849,7 +849,7 @@ class Ot {
|
|
|
849
849
|
} : void 0, n = e != null && e.refreshToken ? { refreshToken: e.refreshToken } : void 0;
|
|
850
850
|
return await this.api.doQuery(
|
|
851
851
|
s,
|
|
852
|
-
|
|
852
|
+
P.POST,
|
|
853
853
|
n,
|
|
854
854
|
t
|
|
855
855
|
);
|
|
@@ -857,23 +857,23 @@ class Ot {
|
|
|
857
857
|
async register(e) {
|
|
858
858
|
return await this.api.doQuery(
|
|
859
859
|
"auth/sign-up",
|
|
860
|
-
|
|
860
|
+
P.POST,
|
|
861
861
|
e
|
|
862
862
|
);
|
|
863
863
|
}
|
|
864
864
|
async getSession() {
|
|
865
865
|
return await this.api.doQuery(
|
|
866
866
|
"auth/session",
|
|
867
|
-
|
|
867
|
+
P.GET,
|
|
868
868
|
void 0,
|
|
869
869
|
this.api.defaultTokenAcquirer()
|
|
870
870
|
);
|
|
871
871
|
}
|
|
872
872
|
}
|
|
873
|
-
class
|
|
873
|
+
class xs {
|
|
874
874
|
constructor(e, s, t = {}) {
|
|
875
875
|
N(this, "auth");
|
|
876
|
-
this.auth = new
|
|
876
|
+
this.auth = new Mt(e, s, t);
|
|
877
877
|
}
|
|
878
878
|
/**
|
|
879
879
|
* @returns auth
|
|
@@ -882,7 +882,7 @@ class $s {
|
|
|
882
882
|
return this.auth;
|
|
883
883
|
}
|
|
884
884
|
}
|
|
885
|
-
class
|
|
885
|
+
class Ds {
|
|
886
886
|
/**
|
|
887
887
|
*
|
|
888
888
|
* @param table
|
|
@@ -892,7 +892,7 @@ class xs {
|
|
|
892
892
|
N(this, "table");
|
|
893
893
|
N(this, "secured");
|
|
894
894
|
N(this, "api");
|
|
895
|
-
this.table = e, this.secured = n, this.api = new
|
|
895
|
+
this.table = e, this.secured = n, this.api = new de(s, t, n, void 0, o);
|
|
896
896
|
}
|
|
897
897
|
/**
|
|
898
898
|
*
|
|
@@ -910,7 +910,7 @@ class xs {
|
|
|
910
910
|
async insertMany(e) {
|
|
911
911
|
return await this.api.doQuery(
|
|
912
912
|
`${this.table}/batch`,
|
|
913
|
-
|
|
913
|
+
P.POST,
|
|
914
914
|
e
|
|
915
915
|
);
|
|
916
916
|
}
|
|
@@ -940,12 +940,12 @@ class xs {
|
|
|
940
940
|
* @returns - List of elements
|
|
941
941
|
*/
|
|
942
942
|
async export(e) {
|
|
943
|
-
const s =
|
|
943
|
+
const s = Me(
|
|
944
944
|
`${this.table}/export`,
|
|
945
945
|
void 0,
|
|
946
946
|
e
|
|
947
947
|
);
|
|
948
|
-
return await this.api.doQuery(s,
|
|
948
|
+
return await this.api.doQuery(s, P.GET, void 0);
|
|
949
949
|
}
|
|
950
950
|
/**
|
|
951
951
|
*
|
|
@@ -955,7 +955,7 @@ class xs {
|
|
|
955
955
|
async import(e) {
|
|
956
956
|
return await this.api.doQuery(
|
|
957
957
|
`${this.table}/import`,
|
|
958
|
-
|
|
958
|
+
P.POST,
|
|
959
959
|
e
|
|
960
960
|
);
|
|
961
961
|
}
|
|
@@ -966,8 +966,8 @@ class xs {
|
|
|
966
966
|
*/
|
|
967
967
|
async commonGet(e) {
|
|
968
968
|
return await this.api.doQuery(
|
|
969
|
-
|
|
970
|
-
|
|
969
|
+
Pt(`${this.table}/common`, e),
|
|
970
|
+
P.GET
|
|
971
971
|
);
|
|
972
972
|
}
|
|
973
973
|
/**
|
|
@@ -985,7 +985,7 @@ class xs {
|
|
|
985
985
|
return await this.api.patch(`${this.table}/restore`, e);
|
|
986
986
|
}
|
|
987
987
|
}
|
|
988
|
-
class
|
|
988
|
+
class Ls {
|
|
989
989
|
constructor(e, s, t = 1) {
|
|
990
990
|
N(this, "table");
|
|
991
991
|
N(this, "dbName");
|
|
@@ -1143,14 +1143,14 @@ class Ds {
|
|
|
1143
1143
|
return e === "DELETED" ? t : !t;
|
|
1144
1144
|
}
|
|
1145
1145
|
}
|
|
1146
|
-
const
|
|
1146
|
+
const ge = (r) => typeof r == "object" && r !== null, Ft = (r) => ge(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";
|
|
1150
1150
|
if (e === "DELETED") return "DELETED";
|
|
1151
1151
|
if (e === "ALL") return "ALL";
|
|
1152
1152
|
};
|
|
1153
|
-
class
|
|
1153
|
+
class Rs {
|
|
1154
1154
|
constructor(e, s, t = {}) {
|
|
1155
1155
|
N(this, "table");
|
|
1156
1156
|
N(this, "supabase");
|
|
@@ -1193,17 +1193,17 @@ class Ls {
|
|
|
1193
1193
|
applyFilters(e, s) {
|
|
1194
1194
|
if (!s) return e;
|
|
1195
1195
|
let t = e;
|
|
1196
|
-
const n =
|
|
1196
|
+
const n = Kt(s.softDeleteScope);
|
|
1197
1197
|
return n === "ACTIVE" ? t = t.is(this.deletedAtColumn, null) : n === "DELETED" && (t = t.not(this.deletedAtColumn, "is", null)), Object.entries(s).forEach(([o, i]) => {
|
|
1198
1198
|
if (o === "softDeleteScope" || i === void 0 || i === null || i === "")
|
|
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() : ge(l) ? this.resolveObjectFilterValue(l) : ie(l)).filter(Ut);
|
|
1203
1203
|
a.length > 0 && (t = t.in(c, a));
|
|
1204
1204
|
return;
|
|
1205
1205
|
}
|
|
1206
|
-
if (
|
|
1206
|
+
if (Ft(i)) {
|
|
1207
1207
|
i.start !== void 0 && i.start !== "" && (t = t.gte(
|
|
1208
1208
|
c,
|
|
1209
1209
|
ie(i.start)
|
|
@@ -1217,7 +1217,7 @@ class Ls {
|
|
|
1217
1217
|
t = t.eq(c, i.toISOString());
|
|
1218
1218
|
return;
|
|
1219
1219
|
}
|
|
1220
|
-
if (
|
|
1220
|
+
if (ge(i)) {
|
|
1221
1221
|
t = t.eq(
|
|
1222
1222
|
c,
|
|
1223
1223
|
this.resolveObjectFilterValue(i)
|
|
@@ -1376,29 +1376,29 @@ class Ls {
|
|
|
1376
1376
|
), ((o = n.data) == null ? void 0 : o.length) ?? 0;
|
|
1377
1377
|
}
|
|
1378
1378
|
}
|
|
1379
|
-
const
|
|
1380
|
-
if (
|
|
1379
|
+
const jt = (r) => typeof r == "object" && r !== null, Qt = (r, e) => {
|
|
1380
|
+
if (jt(r))
|
|
1381
1381
|
for (const s of e) {
|
|
1382
1382
|
const t = r[s];
|
|
1383
1383
|
if (typeof t == "string" && t.trim().length > 0)
|
|
1384
1384
|
return t.trim();
|
|
1385
1385
|
}
|
|
1386
|
-
},
|
|
1386
|
+
}, qt = (r, e) => {
|
|
1387
1387
|
if (!r) return e;
|
|
1388
1388
|
const s = Number(r);
|
|
1389
1389
|
return Number.isFinite(s) ? s : e;
|
|
1390
|
-
},
|
|
1390
|
+
}, ke = (r, e) => {
|
|
1391
1391
|
const {
|
|
1392
1392
|
defaultId: s = 0,
|
|
1393
1393
|
defaultUsername: t = "",
|
|
1394
1394
|
defaultEmail: n = "",
|
|
1395
1395
|
usernameMetadataKeys: o = ["username", "name", "full_name"]
|
|
1396
|
-
} = e ?? {}, i =
|
|
1396
|
+
} = e ?? {}, i = Qt(
|
|
1397
1397
|
r.user.user_metadata,
|
|
1398
1398
|
o
|
|
1399
1399
|
);
|
|
1400
1400
|
return {
|
|
1401
|
-
id:
|
|
1401
|
+
id: qt(r.user.id, s),
|
|
1402
1402
|
username: i ?? t,
|
|
1403
1403
|
email: r.user.email ?? n,
|
|
1404
1404
|
token: r.access_token,
|
|
@@ -1406,7 +1406,7 @@ const Kt = (r) => typeof r == "object" && r !== null, jt = (r, e) => {
|
|
|
1406
1406
|
accessTokenExpiresAt: typeof r.expires_at == "number" ? new Date(r.expires_at * 1e3).toISOString() : null
|
|
1407
1407
|
};
|
|
1408
1408
|
};
|
|
1409
|
-
function
|
|
1409
|
+
function Is(r) {
|
|
1410
1410
|
return Object.keys(r).filter((e) => isNaN(Number(e))).map((e) => ({
|
|
1411
1411
|
key: e,
|
|
1412
1412
|
value: r[e]
|
|
@@ -1426,11 +1426,11 @@ const G = (r, e = "") => {
|
|
|
1426
1426
|
return s;
|
|
1427
1427
|
}
|
|
1428
1428
|
return s;
|
|
1429
|
-
},
|
|
1429
|
+
}, Q = (r, e) => localStorage.setItem(
|
|
1430
1430
|
r,
|
|
1431
1431
|
typeof e == "object" ? JSON.stringify(e) : e
|
|
1432
|
-
),
|
|
1433
|
-
function
|
|
1432
|
+
), I = (r) => localStorage.removeItem(r);
|
|
1433
|
+
function _s(r) {
|
|
1434
1434
|
const e = r ? new Date(r) : /* @__PURE__ */ new Date(), s = {
|
|
1435
1435
|
weekday: "long",
|
|
1436
1436
|
// martes
|
|
@@ -1452,39 +1452,39 @@ function Is(r) {
|
|
|
1452
1452
|
s
|
|
1453
1453
|
);
|
|
1454
1454
|
}
|
|
1455
|
-
function
|
|
1455
|
+
function Ps(r) {
|
|
1456
1456
|
const e = r ? new Date(r) : /* @__PURE__ */ new Date(), s = String(e.getDate()).padStart(2, "0"), t = String(e.getMonth() + 1).padStart(2, "0"), n = String(e.getFullYear()).slice(-2), o = String(e.getHours()).padStart(2, "0"), i = String(e.getMinutes()).padStart(2, "0");
|
|
1457
1457
|
return `${s}/${t}/${n} ${o}:${i}`;
|
|
1458
1458
|
}
|
|
1459
|
-
function
|
|
1459
|
+
function Os(r) {
|
|
1460
1460
|
const e = r ? new Date(r) : /* @__PURE__ */ new Date(), s = e.getFullYear(), t = String(e.getMonth() + 1).padStart(2, "0"), n = String(e.getDate()).padStart(2, "0"), o = String(e.getHours()).padStart(2, "0"), i = String(e.getMinutes()).padStart(2, "0");
|
|
1461
1461
|
return `${s}-${t}-${n}T${o}:${i}`;
|
|
1462
1462
|
}
|
|
1463
|
-
const
|
|
1463
|
+
const Ht = () => {
|
|
1464
1464
|
var s;
|
|
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 we(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 Se(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";
|
|
1479
1479
|
}
|
|
1480
|
-
function
|
|
1480
|
+
function Ms(r, e) {
|
|
1481
1481
|
return r != null && r.errors ? r.errors.map(([s, t]) => e(s, t)) : [];
|
|
1482
1482
|
}
|
|
1483
|
-
const
|
|
1483
|
+
const Fe = Y(
|
|
1484
1484
|
void 0
|
|
1485
1485
|
);
|
|
1486
|
-
function
|
|
1487
|
-
const { children: e } = r, s =
|
|
1486
|
+
function Fs(r) {
|
|
1487
|
+
const { children: e } = r, s = F(0), [t, n] = xe(
|
|
1488
1488
|
(m, f) => {
|
|
1489
1489
|
const { type: p, items: b, id: g } = f;
|
|
1490
1490
|
switch (p) {
|
|
@@ -1500,7 +1500,7 @@ function Ms(r) {
|
|
|
1500
1500
|
), o = (m) => m.map((f) => ({ ...f, id: s.current++ })), i = S(
|
|
1501
1501
|
(m) => n({
|
|
1502
1502
|
type: "set",
|
|
1503
|
-
items: o([{ ...m, type:
|
|
1503
|
+
items: o([{ ...m, type: M.error }])
|
|
1504
1504
|
}),
|
|
1505
1505
|
[]
|
|
1506
1506
|
), c = S(
|
|
@@ -1512,10 +1512,10 @@ function Ms(r) {
|
|
|
1512
1512
|
), l = S(
|
|
1513
1513
|
(m) => n({
|
|
1514
1514
|
type: "set",
|
|
1515
|
-
items: o([{ ...m, type:
|
|
1515
|
+
items: o([{ ...m, type: M.success }])
|
|
1516
1516
|
}),
|
|
1517
1517
|
[]
|
|
1518
|
-
), u = (m) => n({ type: "remove", id: m }), d =
|
|
1518
|
+
), u = (m) => n({ type: "remove", id: m }), d = V(() => ({
|
|
1519
1519
|
notification: t,
|
|
1520
1520
|
removeNotification: u,
|
|
1521
1521
|
showErrorNotification: i,
|
|
@@ -1529,14 +1529,14 @@ function Ms(r) {
|
|
|
1529
1529
|
a,
|
|
1530
1530
|
l
|
|
1531
1531
|
]);
|
|
1532
|
-
return /* @__PURE__ */ h(
|
|
1532
|
+
return /* @__PURE__ */ h(Fe.Provider, { value: d, children: e });
|
|
1533
1533
|
}
|
|
1534
1534
|
const oe = () => {
|
|
1535
|
-
const r =
|
|
1535
|
+
const r = X(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 kt({
|
|
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
|
-
}),
|
|
1551
|
+
}), Us = Ce(), Ue = Y(
|
|
1552
1552
|
void 0
|
|
1553
|
-
),
|
|
1554
|
-
const { children: e, manager: s, queryClient: t } = r, [n] =
|
|
1555
|
-
return /* @__PURE__ */ h(
|
|
1556
|
-
},
|
|
1557
|
-
const r =
|
|
1553
|
+
), Ks = (r) => {
|
|
1554
|
+
const { children: e, manager: s, queryClient: t } = r, [n] = R(Ce), o = t ?? n;
|
|
1555
|
+
return /* @__PURE__ */ h(Ue.Provider, { value: { client: s }, children: /* @__PURE__ */ h(_e, { client: o, children: e }) });
|
|
1556
|
+
}, Bt = () => {
|
|
1557
|
+
const r = X(Ue);
|
|
1558
1558
|
if (!r)
|
|
1559
1559
|
throw new Error("managerContext must be used within a Provider");
|
|
1560
1560
|
return r.client;
|
|
1561
|
-
},
|
|
1561
|
+
}, Te = Y(
|
|
1562
1562
|
void 0
|
|
1563
|
-
),
|
|
1564
|
-
const r =
|
|
1563
|
+
), Vt = () => {
|
|
1564
|
+
const r = X(Te);
|
|
1565
1565
|
if (!r) throw new Error("authContext must be used within a Provider");
|
|
1566
1566
|
return r;
|
|
1567
|
-
},
|
|
1567
|
+
}, js = (r) => {
|
|
1568
1568
|
const {
|
|
1569
1569
|
children: e,
|
|
1570
1570
|
guestMode: s = "guest_mode",
|
|
@@ -1572,18 +1572,18 @@ const oe = () => {
|
|
|
1572
1572
|
remember: n = "remember",
|
|
1573
1573
|
refreshTokenKey: o = "refreshToken",
|
|
1574
1574
|
accessTokenExpiresAtKey: i = "accessTokenExpiresAt"
|
|
1575
|
-
} = r, c =
|
|
1576
|
-
|
|
1575
|
+
} = r, c = Bt(), [a, l] = R({}), u = S(() => {
|
|
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
1578
|
(y) => {
|
|
1579
|
-
|
|
1579
|
+
Q(s, y);
|
|
1580
1580
|
},
|
|
1581
1581
|
[s]
|
|
1582
1582
|
), f = S(
|
|
1583
1583
|
(y, C) => {
|
|
1584
1584
|
if (!y) return;
|
|
1585
|
-
const w = G(n, "boolean"),
|
|
1586
|
-
l(y),
|
|
1585
|
+
const w = G(n, "boolean"), E = C ?? (typeof w == "boolean" ? w : !1);
|
|
1586
|
+
l(y), I(s), Q(t, y.token), Q(n, E), typeof y.refreshToken == "string" && y.refreshToken.length ? Q(o, y.refreshToken) : I(o), typeof y.accessTokenExpiresAt == "string" && y.accessTokenExpiresAt.length ? Q(i, y.accessTokenExpiresAt) : I(i);
|
|
1587
1587
|
},
|
|
1588
1588
|
[i, s, o, n, t]
|
|
1589
1589
|
), p = S(async () => {
|
|
@@ -1611,7 +1611,7 @@ const oe = () => {
|
|
|
1611
1611
|
} catch (y) {
|
|
1612
1612
|
console.error(y), p();
|
|
1613
1613
|
}
|
|
1614
|
-
}, [f, p, c.Auth]), g =
|
|
1614
|
+
}, [f, p, c.Auth]), g = 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(Te.Provider, { value: g, children: e });
|
|
1630
|
+
}, Ke = () => Vt(), je = Y(void 0), Gt = () => {
|
|
1631
|
+
const r = X(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",
|
|
@@ -1641,22 +1641,22 @@ const oe = () => {
|
|
|
1641
1641
|
refreshTokenKey: o = "refreshToken",
|
|
1642
1642
|
accessTokenExpiresAtKey: i = "accessTokenExpiresAt",
|
|
1643
1643
|
sessionMapper: c
|
|
1644
|
-
} = r, a = Gt(), l =
|
|
1645
|
-
|
|
1646
|
-
l.current = c ??
|
|
1644
|
+
} = r, a = Gt(), l = F(c ?? ke);
|
|
1645
|
+
O(() => {
|
|
1646
|
+
l.current = c ?? ke;
|
|
1647
1647
|
}, [c]);
|
|
1648
|
-
const [u, d] =
|
|
1649
|
-
|
|
1648
|
+
const [u, d] = R({}), m = S(() => {
|
|
1649
|
+
I(t), I(n), I(o), I(i);
|
|
1650
1650
|
}, [i, o, n, t]), f = S(() => !!G(s, "boolean") && u.token === void 0, [u.token, s]), p = S(
|
|
1651
1651
|
(w) => {
|
|
1652
|
-
|
|
1652
|
+
Q(s, w);
|
|
1653
1653
|
},
|
|
1654
1654
|
[s]
|
|
1655
1655
|
), b = S(
|
|
1656
|
-
(w,
|
|
1656
|
+
(w, E) => {
|
|
1657
1657
|
if (!w) return;
|
|
1658
|
-
const
|
|
1659
|
-
d(w),
|
|
1658
|
+
const A = G(n, "boolean"), U = E ?? (typeof A == "boolean" ? A : !1);
|
|
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
|
), g = S(async () => {
|
|
@@ -1668,8 +1668,8 @@ const oe = () => {
|
|
|
1668
1668
|
d({}), m();
|
|
1669
1669
|
}, [m, a.auth]), y = S(async () => {
|
|
1670
1670
|
try {
|
|
1671
|
-
const { data: w, error:
|
|
1672
|
-
if (
|
|
1671
|
+
const { data: w, error: E } = await a.auth.getSession();
|
|
1672
|
+
if (E) throw E;
|
|
1673
1673
|
if (!w.session) {
|
|
1674
1674
|
d({}), m();
|
|
1675
1675
|
return;
|
|
@@ -1679,25 +1679,25 @@ const oe = () => {
|
|
|
1679
1679
|
console.error(w), await g();
|
|
1680
1680
|
}
|
|
1681
1681
|
}, [m, b, g, a.auth]);
|
|
1682
|
-
|
|
1682
|
+
O(() => {
|
|
1683
1683
|
let w = !0;
|
|
1684
1684
|
(async () => {
|
|
1685
1685
|
w && await y();
|
|
1686
1686
|
})();
|
|
1687
|
-
const { data:
|
|
1687
|
+
const { data: A } = a.auth.onAuthStateChange((U, B) => {
|
|
1688
1688
|
if (w) {
|
|
1689
|
-
if (!
|
|
1689
|
+
if (!B) {
|
|
1690
1690
|
d({}), m();
|
|
1691
1691
|
return;
|
|
1692
1692
|
}
|
|
1693
|
-
b(l.current(
|
|
1693
|
+
b(l.current(B));
|
|
1694
1694
|
}
|
|
1695
1695
|
});
|
|
1696
1696
|
return () => {
|
|
1697
|
-
w = !1,
|
|
1697
|
+
w = !1, A.subscription.unsubscribe();
|
|
1698
1698
|
};
|
|
1699
1699
|
}, [m, b, y, a.auth]);
|
|
1700
|
-
const C =
|
|
1700
|
+
const C = V(() => ({
|
|
1701
1701
|
account: u,
|
|
1702
1702
|
logUser: b,
|
|
1703
1703
|
logoutUser: g,
|
|
@@ -1712,21 +1712,21 @@ const oe = () => {
|
|
|
1712
1712
|
f,
|
|
1713
1713
|
p
|
|
1714
1714
|
]);
|
|
1715
|
-
return /* @__PURE__ */ h(
|
|
1716
|
-
},
|
|
1717
|
-
const { children: e, supabase: s, queryClient: t } = r, [n] =
|
|
1718
|
-
return /* @__PURE__ */ h(
|
|
1719
|
-
},
|
|
1715
|
+
return /* @__PURE__ */ h(Te.Provider, { value: C, children: e });
|
|
1716
|
+
}, qs = (r) => {
|
|
1717
|
+
const { children: e, supabase: s, queryClient: t } = r, [n] = R(Ce), o = t ?? n;
|
|
1718
|
+
return /* @__PURE__ */ h(je.Provider, { value: { client: s }, children: /* @__PURE__ */ h(_e, { client: o, children: e }) });
|
|
1719
|
+
}, Qe = Y({}), Hs = (r) => {
|
|
1720
1720
|
const { children: e, location: s, navigate: t, linkComponent: n, searchComponent: o } = r;
|
|
1721
1721
|
return /* @__PURE__ */ h(
|
|
1722
|
-
|
|
1722
|
+
Qe.Provider,
|
|
1723
1723
|
{
|
|
1724
1724
|
value: { location: s, navigate: t, linkComponent: n, searchComponent: o },
|
|
1725
1725
|
children: e
|
|
1726
1726
|
}
|
|
1727
1727
|
);
|
|
1728
1728
|
}, ce = () => {
|
|
1729
|
-
const r =
|
|
1729
|
+
const r = X(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,10 +1740,10 @@ const oe = () => {
|
|
|
1740
1740
|
clearDynamicItems: () => {
|
|
1741
1741
|
},
|
|
1742
1742
|
dynamicItems: {}
|
|
1743
|
-
},
|
|
1743
|
+
}, qe = Y(
|
|
1744
1744
|
Wt
|
|
1745
|
-
),
|
|
1746
|
-
const { children: e } = r, [s, t] =
|
|
1745
|
+
), Bs = (r) => {
|
|
1746
|
+
const { children: e } = r, [s, t] = R({}), n = S(
|
|
1747
1747
|
(a, l) => t((u) => ({
|
|
1748
1748
|
...u,
|
|
1749
1749
|
[a]: [...u[a] ?? [], l]
|
|
@@ -1760,7 +1760,7 @@ const oe = () => {
|
|
|
1760
1760
|
...l,
|
|
1761
1761
|
[a]: []
|
|
1762
1762
|
}) : {});
|
|
1763
|
-
}, []), c =
|
|
1763
|
+
}, []), c = V(
|
|
1764
1764
|
() => ({
|
|
1765
1765
|
dynamicItems: s,
|
|
1766
1766
|
addChildItem: n,
|
|
@@ -1770,15 +1770,15 @@ const oe = () => {
|
|
|
1770
1770
|
[s, i, o, n]
|
|
1771
1771
|
);
|
|
1772
1772
|
return /* @__PURE__ */ h(
|
|
1773
|
-
|
|
1773
|
+
qe.Provider,
|
|
1774
1774
|
{
|
|
1775
1775
|
value: c,
|
|
1776
1776
|
children: e
|
|
1777
1777
|
}
|
|
1778
1778
|
);
|
|
1779
|
-
}, zt = () =>
|
|
1780
|
-
function
|
|
1781
|
-
const { t: e } = k(), { open: s, onClose: t, menuMap: n, logo: o } = r, { account: i } =
|
|
1779
|
+
}, zt = () => X(qe);
|
|
1780
|
+
function Vs(r) {
|
|
1781
|
+
const { t: e } = k(), { open: s, onClose: t, menuMap: n, logo: o } = r, { account: i } = Ke(), { dynamicItems: c } = zt(), { linkComponent: a, location: l } = ce(), u = a, d = V(() => n.filter((g) => {
|
|
1782
1782
|
const y = g.auth, C = !!(i != null && i.email);
|
|
1783
1783
|
return y == null || y && C || !y && !C;
|
|
1784
1784
|
}), [i == null ? void 0 : i.email, n]), m = S(
|
|
@@ -1787,7 +1787,7 @@ function Bs(r) {
|
|
|
1787
1787
|
},
|
|
1788
1788
|
[t, s]
|
|
1789
1789
|
);
|
|
1790
|
-
|
|
1790
|
+
O(() => (document.addEventListener("keydown", m), () => {
|
|
1791
1791
|
document.removeEventListener("keydown", m);
|
|
1792
1792
|
}), [m]);
|
|
1793
1793
|
const f = S(
|
|
@@ -1814,13 +1814,13 @@ function Bs(r) {
|
|
|
1814
1814
|
g.id
|
|
1815
1815
|
),
|
|
1816
1816
|
[u, s, e, f]
|
|
1817
|
-
), b =
|
|
1817
|
+
), b = V(() => d.map((g, y) => {
|
|
1818
1818
|
const C = g.page ?? String(y), w = `drawer-list-item ${f(g.path) ? "active" : ""} animated`;
|
|
1819
1819
|
if (g.type === "divider")
|
|
1820
1820
|
return /* @__PURE__ */ h("li", { className: w, children: /* @__PURE__ */ h("hr", { className: "drawer-divider" }) }, C);
|
|
1821
|
-
const
|
|
1822
|
-
return /* @__PURE__ */
|
|
1823
|
-
/* @__PURE__ */
|
|
1821
|
+
const E = g.children ?? (g.page && c ? c[g.page] : null);
|
|
1822
|
+
return /* @__PURE__ */ v("li", { className: w, children: [
|
|
1823
|
+
/* @__PURE__ */ v(
|
|
1824
1824
|
u,
|
|
1825
1825
|
{
|
|
1826
1826
|
tabIndex: s ? 0 : -1,
|
|
@@ -1835,7 +1835,7 @@ function Bs(r) {
|
|
|
1835
1835
|
]
|
|
1836
1836
|
}
|
|
1837
1837
|
),
|
|
1838
|
-
|
|
1838
|
+
E && /* @__PURE__ */ h("ul", { className: "drawer-children-list", children: E.map(p) })
|
|
1839
1839
|
] }, C);
|
|
1840
1840
|
}), [u, c, f, s, d, p, e]);
|
|
1841
1841
|
return /* @__PURE__ */ h(
|
|
@@ -1845,8 +1845,8 @@ function Bs(r) {
|
|
|
1845
1845
|
"aria-disabled": !s,
|
|
1846
1846
|
className: `${s ? "opened" : "closed"} drawer-backdrop`,
|
|
1847
1847
|
onClick: () => t(),
|
|
1848
|
-
children: /* @__PURE__ */
|
|
1849
|
-
/* @__PURE__ */
|
|
1848
|
+
children: /* @__PURE__ */ v("aside", { className: `${s ? "opened" : "closed"} drawer animated`, children: [
|
|
1849
|
+
/* @__PURE__ */ v("div", { className: "drawer-header-container", children: [
|
|
1850
1850
|
o,
|
|
1851
1851
|
/* @__PURE__ */ h("h2", { className: "drawer-header poppins", children: e("_pages:home.appName") })
|
|
1852
1852
|
] }),
|
|
@@ -1855,11 +1855,11 @@ function Bs(r) {
|
|
|
1855
1855
|
}
|
|
1856
1856
|
);
|
|
1857
1857
|
}
|
|
1858
|
-
const z = ({ icon: r, ...e }) => /* @__PURE__ */ h(
|
|
1859
|
-
var
|
|
1860
|
-
function
|
|
1861
|
-
if (
|
|
1862
|
-
|
|
1858
|
+
const z = ({ icon: r, ...e }) => /* @__PURE__ */ h(ot, { icon: /* @__PURE__ */ h(q, { icon: r }), ...e });
|
|
1859
|
+
var fe, Ne;
|
|
1860
|
+
function Jt() {
|
|
1861
|
+
if (Ne) return fe;
|
|
1862
|
+
Ne = 1;
|
|
1863
1863
|
const r = (c, a = "local", l = void 0) => {
|
|
1864
1864
|
if (a === "local") {
|
|
1865
1865
|
if (localStorage.getItem(c) !== void 0 && localStorage.getItem(c) !== "undefined" && localStorage.getItem(c) !== null)
|
|
@@ -1901,7 +1901,7 @@ function Vt() {
|
|
|
1901
1901
|
}
|
|
1902
1902
|
return "";
|
|
1903
1903
|
};
|
|
1904
|
-
return
|
|
1904
|
+
return fe = {
|
|
1905
1905
|
getCookie: o,
|
|
1906
1906
|
createCookie: n,
|
|
1907
1907
|
deleteCookie: (c) => document.cookie = `${c}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`,
|
|
@@ -1909,9 +1909,9 @@ function Vt() {
|
|
|
1909
1909
|
scrollTo: t,
|
|
1910
1910
|
parseQueries: e,
|
|
1911
1911
|
validation: r
|
|
1912
|
-
},
|
|
1912
|
+
}, fe;
|
|
1913
1913
|
}
|
|
1914
|
-
var
|
|
1914
|
+
var Yt = Jt();
|
|
1915
1915
|
function Gs() {
|
|
1916
1916
|
const { t: r, language: e } = k();
|
|
1917
1917
|
return { timeAge: S(
|
|
@@ -1926,8 +1926,8 @@ function Gs() {
|
|
|
1926
1926
|
[r, e]
|
|
1927
1927
|
) };
|
|
1928
1928
|
}
|
|
1929
|
-
const
|
|
1930
|
-
const { showSuccessNotification: e } = oe(), { mutationFn: s, onError: t, onSuccess: n, onSuccessMessage: o } = r, [i, c] =
|
|
1929
|
+
const He = (r) => {
|
|
1930
|
+
const { showSuccessNotification: e } = oe(), { mutationFn: s, onError: t, onSuccess: n, onSuccessMessage: o } = r, [i, c] = R([]), { open: a, handleClose: l, handleOpen: u } = Be(), d = () => {
|
|
1931
1931
|
l(), c([]);
|
|
1932
1932
|
}, m = async (p) => {
|
|
1933
1933
|
c(p), u();
|
|
@@ -1950,7 +1950,7 @@ const qe = (r) => {
|
|
|
1950
1950
|
showStackNotifications: s,
|
|
1951
1951
|
showSuccessNotification: t,
|
|
1952
1952
|
showErrorNotification: n
|
|
1953
|
-
} = oe(), o =
|
|
1953
|
+
} = oe(), o = Z(), {
|
|
1954
1954
|
defaultValues: i,
|
|
1955
1955
|
mutationFn: c,
|
|
1956
1956
|
formToDto: a,
|
|
@@ -1958,57 +1958,57 @@ const qe = (r) => {
|
|
|
1958
1958
|
onSuccess: u,
|
|
1959
1959
|
queryKey: d,
|
|
1960
1960
|
onSuccessMessage: m
|
|
1961
|
-
} = r, { control: f, handleSubmit: p, reset: b, setError: g, getValues: y, setValue: C } =
|
|
1961
|
+
} = r, { control: f, handleSubmit: p, reset: b, setError: g, getValues: y, setValue: C } = Pe({
|
|
1962
1962
|
defaultValues: i
|
|
1963
|
-
}), w =
|
|
1964
|
-
const
|
|
1965
|
-
if (!(
|
|
1963
|
+
}), w = F(null), E = S(() => {
|
|
1964
|
+
const T = document.activeElement;
|
|
1965
|
+
if (!(T instanceof HTMLElement)) {
|
|
1966
1966
|
w.current = null;
|
|
1967
1967
|
return;
|
|
1968
1968
|
}
|
|
1969
|
-
w.current =
|
|
1970
|
-
}, []),
|
|
1971
|
-
(
|
|
1972
|
-
const
|
|
1973
|
-
if (
|
|
1974
|
-
let
|
|
1975
|
-
return
|
|
1976
|
-
const
|
|
1977
|
-
(
|
|
1978
|
-
}),
|
|
1969
|
+
w.current = T.closest("form");
|
|
1970
|
+
}, []), A = S(
|
|
1971
|
+
(T) => {
|
|
1972
|
+
const $ = T == null ? void 0 : T.errors, x = [], _ = w.current;
|
|
1973
|
+
if (!_) return x;
|
|
1974
|
+
let K = !1;
|
|
1975
|
+
return $ && $.forEach(([le, ee]) => {
|
|
1976
|
+
const j = _.querySelector(`[name="${le}"]`);
|
|
1977
|
+
(j instanceof HTMLInputElement || j instanceof HTMLTextAreaElement || j instanceof HTMLSelectElement) && (K || (j.focus(), K = !0), j.classList.add("error"), x.push(e(`_entities:${d}.${le}.${ee}`)));
|
|
1978
|
+
}), x;
|
|
1979
1979
|
},
|
|
1980
1980
|
[e, d]
|
|
1981
1981
|
), U = S(() => {
|
|
1982
|
-
const
|
|
1983
|
-
if (!
|
|
1984
|
-
|
|
1985
|
-
|
|
1982
|
+
const T = w.current;
|
|
1983
|
+
if (!T) return;
|
|
1984
|
+
T.querySelectorAll("input, textarea, select").forEach((x) => {
|
|
1985
|
+
x.classList.remove("error");
|
|
1986
1986
|
});
|
|
1987
|
-
}, []),
|
|
1987
|
+
}, []), B = ne(
|
|
1988
1988
|
{
|
|
1989
1989
|
mutationFn: c,
|
|
1990
|
-
onError: (
|
|
1991
|
-
console.error(
|
|
1992
|
-
const
|
|
1993
|
-
if (l) l(
|
|
1994
|
-
else if (
|
|
1995
|
-
const
|
|
1990
|
+
onError: (T) => {
|
|
1991
|
+
console.error(T);
|
|
1992
|
+
const $ = T;
|
|
1993
|
+
if (l) l(T);
|
|
1994
|
+
else if (we($)) {
|
|
1995
|
+
const x = A($);
|
|
1996
1996
|
s(
|
|
1997
|
-
|
|
1998
|
-
(
|
|
1999
|
-
message:
|
|
2000
|
-
type:
|
|
1997
|
+
x.map(
|
|
1998
|
+
(_) => ({
|
|
1999
|
+
message: _,
|
|
2000
|
+
type: M.error
|
|
2001
2001
|
})
|
|
2002
2002
|
)
|
|
2003
2003
|
);
|
|
2004
|
-
} else if (
|
|
2005
|
-
const
|
|
2006
|
-
n({ message:
|
|
2004
|
+
} else if (Se($)) {
|
|
2005
|
+
const x = $.message || e("_accessibility:errors.500"), _ = e(`_accessibility:errors.${$.status}`);
|
|
2006
|
+
n({ message: _ || x });
|
|
2007
2007
|
} else
|
|
2008
2008
|
n({ message: e("_accessibility:errors.500") });
|
|
2009
2009
|
},
|
|
2010
|
-
onSuccess: async (
|
|
2011
|
-
await o.invalidateQueries({ queryKey: d }), u && u(
|
|
2010
|
+
onSuccess: async (T) => {
|
|
2011
|
+
await o.invalidateQueries({ queryKey: d }), u && u(T), m && t({
|
|
2012
2012
|
message: m
|
|
2013
2013
|
});
|
|
2014
2014
|
}
|
|
@@ -2019,24 +2019,24 @@ const qe = (r) => {
|
|
|
2019
2019
|
getValues: y,
|
|
2020
2020
|
setValue: C,
|
|
2021
2021
|
handleSubmit: p,
|
|
2022
|
-
onSubmit: (
|
|
2023
|
-
|
|
2024
|
-
a ? a(
|
|
2022
|
+
onSubmit: (T) => {
|
|
2023
|
+
E(), U(), B.mutate(
|
|
2024
|
+
a ? a(T) : T
|
|
2025
2025
|
);
|
|
2026
2026
|
},
|
|
2027
2027
|
reset: b,
|
|
2028
2028
|
setError: g,
|
|
2029
|
-
isLoading:
|
|
2029
|
+
isLoading: B.isPending
|
|
2030
2030
|
};
|
|
2031
|
-
},
|
|
2031
|
+
}, Xt = (r) => {
|
|
2032
2032
|
const { t: e } = k(), {
|
|
2033
2033
|
onClick: s,
|
|
2034
|
-
icon: t =
|
|
2034
|
+
icon: t = ft,
|
|
2035
2035
|
sticky: n = !0,
|
|
2036
2036
|
hidden: o = !1,
|
|
2037
2037
|
multiple: i = !0,
|
|
2038
2038
|
disabled: c = !1,
|
|
2039
|
-
id: a =
|
|
2039
|
+
id: a = J.Delete,
|
|
2040
2040
|
tooltip: l = e("_pages:common.actions.delete.text")
|
|
2041
2041
|
} = r;
|
|
2042
2042
|
return {
|
|
@@ -2049,21 +2049,21 @@ const qe = (r) => {
|
|
|
2049
2049
|
onClick: () => s([d == null ? void 0 : d.id]),
|
|
2050
2050
|
hidden: !!d.deletedAt || o,
|
|
2051
2051
|
disabled: !!d.deletedAt || c,
|
|
2052
|
-
icon: /* @__PURE__ */ h(
|
|
2052
|
+
icon: /* @__PURE__ */ h(q, { className: "text-bg-error", icon: t }),
|
|
2053
2053
|
onMultipleClick: (m) => s(m.map((f) => f.id))
|
|
2054
2054
|
}),
|
|
2055
2055
|
[c, o, t, a, i, s, n, l]
|
|
2056
2056
|
)
|
|
2057
2057
|
};
|
|
2058
|
-
},
|
|
2058
|
+
}, Zt = (r) => {
|
|
2059
2059
|
const { t: e } = k(), {
|
|
2060
2060
|
onClick: s,
|
|
2061
2061
|
sticky: t = !0,
|
|
2062
2062
|
hidden: n = !1,
|
|
2063
2063
|
disabled: o = !1,
|
|
2064
2064
|
multiple: i = !1,
|
|
2065
|
-
icon: c =
|
|
2066
|
-
id: a =
|
|
2065
|
+
icon: c = Le,
|
|
2066
|
+
id: a = J.Restore,
|
|
2067
2067
|
tooltip: l = e("_pages:common.actions.restore.text")
|
|
2068
2068
|
} = r;
|
|
2069
2069
|
return {
|
|
@@ -2076,7 +2076,7 @@ const qe = (r) => {
|
|
|
2076
2076
|
onClick: () => s([d == null ? void 0 : d.id]),
|
|
2077
2077
|
hidden: !d.deletedAt || n,
|
|
2078
2078
|
disabled: !d.deletedAt || o,
|
|
2079
|
-
icon: /* @__PURE__ */ h(
|
|
2079
|
+
icon: /* @__PURE__ */ h(q, { className: "text-bg-error", icon: c }),
|
|
2080
2080
|
onMultipleClick: (m) => s(m.map((f) => f.id))
|
|
2081
2081
|
}),
|
|
2082
2082
|
[o, n, c, a, i, s, t, l]
|
|
@@ -2088,8 +2088,8 @@ const qe = (r) => {
|
|
|
2088
2088
|
hidden: t = !1,
|
|
2089
2089
|
sticky: n = !0,
|
|
2090
2090
|
disabled: o = !1,
|
|
2091
|
-
id: i =
|
|
2092
|
-
icon: c =
|
|
2091
|
+
id: i = J.Edit,
|
|
2092
|
+
icon: c = pt,
|
|
2093
2093
|
tooltip: a = e("_pages:common.actions.edit.text")
|
|
2094
2094
|
} = r;
|
|
2095
2095
|
return {
|
|
@@ -2101,14 +2101,14 @@ const qe = (r) => {
|
|
|
2101
2101
|
onClick: () => s(u == null ? void 0 : u.id),
|
|
2102
2102
|
hidden: !!u.deletedAt || t,
|
|
2103
2103
|
disabled: !!u.deletedAt || o,
|
|
2104
|
-
icon: /* @__PURE__ */ h(
|
|
2104
|
+
icon: /* @__PURE__ */ h(q, { className: "primary", icon: c })
|
|
2105
2105
|
}),
|
|
2106
2106
|
[o, t, c, i, s, n, a]
|
|
2107
2107
|
)
|
|
2108
2108
|
};
|
|
2109
2109
|
};
|
|
2110
|
-
var
|
|
2111
|
-
const
|
|
2110
|
+
var J = /* @__PURE__ */ ((r) => (r.Add = "add", r.Edit = "edit", r.Delete = "delete", r.Restore = "restore", r.Refresh = "refresh", r.Export = "export", r.Import = "import", r))(J || {});
|
|
2111
|
+
const es = (r) => {
|
|
2112
2112
|
const { t: e } = k(), {
|
|
2113
2113
|
onClick: s,
|
|
2114
2114
|
hidden: t = !1,
|
|
@@ -2118,14 +2118,14 @@ const Zt = (r) => {
|
|
|
2118
2118
|
return {
|
|
2119
2119
|
action: S(
|
|
2120
2120
|
() => ({
|
|
2121
|
-
id:
|
|
2121
|
+
id: J.Export,
|
|
2122
2122
|
hidden: t,
|
|
2123
2123
|
disabled: n,
|
|
2124
2124
|
icon: /* @__PURE__ */ h(
|
|
2125
|
-
|
|
2125
|
+
q,
|
|
2126
2126
|
{
|
|
2127
2127
|
className: `${o ? "rotate" : ""}`,
|
|
2128
|
-
icon: o ?
|
|
2128
|
+
icon: o ? Re : gt
|
|
2129
2129
|
}
|
|
2130
2130
|
),
|
|
2131
2131
|
tooltip: e("_pages:common.actions.export.text"),
|
|
@@ -2134,7 +2134,7 @@ const Zt = (r) => {
|
|
|
2134
2134
|
[n, t, o, s, e]
|
|
2135
2135
|
)
|
|
2136
2136
|
};
|
|
2137
|
-
},
|
|
2137
|
+
}, ts = (r) => {
|
|
2138
2138
|
const { t: e } = k(), {
|
|
2139
2139
|
onClick: s,
|
|
2140
2140
|
hidden: t = !1,
|
|
@@ -2144,14 +2144,14 @@ const Zt = (r) => {
|
|
|
2144
2144
|
return {
|
|
2145
2145
|
action: S(
|
|
2146
2146
|
() => ({
|
|
2147
|
-
id:
|
|
2147
|
+
id: J.Import,
|
|
2148
2148
|
hidden: t,
|
|
2149
2149
|
disabled: n,
|
|
2150
2150
|
icon: /* @__PURE__ */ h(
|
|
2151
|
-
|
|
2151
|
+
q,
|
|
2152
2152
|
{
|
|
2153
2153
|
className: `${o ? "rotate" : ""}`,
|
|
2154
|
-
icon: o ?
|
|
2154
|
+
icon: o ? Re : bt
|
|
2155
2155
|
}
|
|
2156
2156
|
),
|
|
2157
2157
|
tooltip: e("_pages:common.actions.import.text"),
|
|
@@ -2160,26 +2160,26 @@ const Zt = (r) => {
|
|
|
2160
2160
|
[n, t, o, s, e]
|
|
2161
2161
|
)
|
|
2162
2162
|
};
|
|
2163
|
-
},
|
|
2164
|
-
const { queryKey: e, onSuccess: s, ...t } = r, n =
|
|
2163
|
+
}, Js = (r) => {
|
|
2164
|
+
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
2165
|
onSuccessMessage: i("_pages:common.actions.delete.successMessage"),
|
|
2166
2166
|
onError: (f) => {
|
|
2167
2167
|
const p = f;
|
|
2168
|
-
if (
|
|
2168
|
+
if (we(p))
|
|
2169
2169
|
o(
|
|
2170
2170
|
p.errors.map(
|
|
2171
2171
|
([b, g]) => ({
|
|
2172
2172
|
message: i(`_pages:${b}.errors.${g}`),
|
|
2173
|
-
type:
|
|
2173
|
+
type: M.error
|
|
2174
2174
|
})
|
|
2175
2175
|
)
|
|
2176
2176
|
);
|
|
2177
|
-
else if (
|
|
2177
|
+
else if (Se(p)) {
|
|
2178
2178
|
const b = p.message || i("_accessibility:errors.500"), g = i(`_accessibility:errors.${p.status}`);
|
|
2179
2179
|
o([
|
|
2180
2180
|
{
|
|
2181
2181
|
message: g || b,
|
|
2182
|
-
type:
|
|
2182
|
+
type: M.error
|
|
2183
2183
|
}
|
|
2184
2184
|
]);
|
|
2185
2185
|
}
|
|
@@ -2188,7 +2188,7 @@ const Zt = (r) => {
|
|
|
2188
2188
|
await n.invalidateQueries({ queryKey: e }), s && s(f);
|
|
2189
2189
|
},
|
|
2190
2190
|
...t
|
|
2191
|
-
}), { action: m } =
|
|
2191
|
+
}), { action: m } = Xt({ onClick: a });
|
|
2192
2192
|
return {
|
|
2193
2193
|
onClick: a,
|
|
2194
2194
|
title: i("_pages:common.actions.delete.dialog.title"),
|
|
@@ -2198,10 +2198,10 @@ const Zt = (r) => {
|
|
|
2198
2198
|
handleClose: l,
|
|
2199
2199
|
action: m
|
|
2200
2200
|
};
|
|
2201
|
-
},
|
|
2202
|
-
const [r, e] =
|
|
2201
|
+
}, Be = () => {
|
|
2202
|
+
const [r, e] = R(!1);
|
|
2203
2203
|
return { open: r, setOpen: e, handleClose: () => e(!1), handleOpen: () => e(!0) };
|
|
2204
|
-
},
|
|
2204
|
+
}, Ve = (r) => {
|
|
2205
2205
|
const {
|
|
2206
2206
|
closeOnSubmit: e = !0,
|
|
2207
2207
|
defaultValues: s,
|
|
@@ -2215,125 +2215,130 @@ const Zt = (r) => {
|
|
|
2215
2215
|
reinitializeOnOpen: u,
|
|
2216
2216
|
resetOnOpen: d,
|
|
2217
2217
|
title: m
|
|
2218
|
-
} = r, [f, p] =
|
|
2218
|
+
} = r, [f, p] = R(), [b, g] = R(!1), y = F(!1), C = F(null), { open: w, handleClose: E, handleOpen: A } = Be(), { control: U, handleSubmit: B, reset: T, setError: $, getValues: x, setValue: _ } = Pe({
|
|
2219
2219
|
defaultValues: s || {}
|
|
2220
2220
|
});
|
|
2221
|
-
|
|
2222
|
-
if (!
|
|
2223
|
-
y.current = !1;
|
|
2221
|
+
O(() => {
|
|
2222
|
+
if (!w) {
|
|
2223
|
+
y.current = !1, C.current = null;
|
|
2224
2224
|
return;
|
|
2225
2225
|
}
|
|
2226
2226
|
if (!y.current) {
|
|
2227
|
-
if (y.current = !0,
|
|
2228
|
-
|
|
2227
|
+
if (y.current = !0, C.current) {
|
|
2228
|
+
T(C.current), C.current = null;
|
|
2229
|
+
return;
|
|
2230
|
+
}
|
|
2231
|
+
if (u && t) {
|
|
2232
|
+
T(t());
|
|
2229
2233
|
return;
|
|
2230
2234
|
}
|
|
2231
2235
|
if (u && s) {
|
|
2232
|
-
|
|
2236
|
+
T(s);
|
|
2233
2237
|
return;
|
|
2234
2238
|
}
|
|
2235
|
-
d &&
|
|
2239
|
+
d && T(s || {});
|
|
2236
2240
|
}
|
|
2237
|
-
}, [s, t,
|
|
2238
|
-
const
|
|
2239
|
-
|
|
2240
|
-
}, [
|
|
2241
|
-
(
|
|
2242
|
-
|
|
2241
|
+
}, [s, t, w, u, T, d]);
|
|
2242
|
+
const K = S(() => {
|
|
2243
|
+
E(), T();
|
|
2244
|
+
}, [E, T]), le = S(
|
|
2245
|
+
(D) => {
|
|
2246
|
+
let L, te;
|
|
2247
|
+
typeof D == "number" || D == null ? L = D : (L = D.id, te = D.values), p(L), te ? w ? T(te) : C.current = te : C.current = null, w || A();
|
|
2243
2248
|
},
|
|
2244
|
-
[
|
|
2245
|
-
),
|
|
2246
|
-
(
|
|
2249
|
+
[A, w, T]
|
|
2250
|
+
), ee = S(
|
|
2251
|
+
(D) => n ? n(D, { id: f }) : D,
|
|
2247
2252
|
[f, n]
|
|
2248
|
-
),
|
|
2249
|
-
async (
|
|
2250
|
-
a && await a(
|
|
2251
|
-
close:
|
|
2253
|
+
), j = S(
|
|
2254
|
+
async (D, L, te) => {
|
|
2255
|
+
a && await a(D, {
|
|
2256
|
+
close: K,
|
|
2252
2257
|
id: f,
|
|
2253
|
-
phase:
|
|
2254
|
-
values:
|
|
2258
|
+
phase: L,
|
|
2259
|
+
values: te
|
|
2255
2260
|
});
|
|
2256
2261
|
},
|
|
2257
|
-
[
|
|
2258
|
-
),
|
|
2262
|
+
[K, f, a]
|
|
2263
|
+
), We = S(async () => {
|
|
2259
2264
|
if (!i) return;
|
|
2260
|
-
const
|
|
2265
|
+
const D = x();
|
|
2261
2266
|
g(!0);
|
|
2262
2267
|
try {
|
|
2263
|
-
const
|
|
2264
|
-
await i(
|
|
2265
|
-
close:
|
|
2268
|
+
const L = ee(D);
|
|
2269
|
+
await i(L, {
|
|
2270
|
+
close: K,
|
|
2266
2271
|
id: f,
|
|
2267
|
-
values:
|
|
2272
|
+
values: D
|
|
2268
2273
|
});
|
|
2269
|
-
} catch (
|
|
2270
|
-
throw await
|
|
2271
|
-
}),
|
|
2274
|
+
} catch (L) {
|
|
2275
|
+
throw await j(L, "apply", D).catch(() => {
|
|
2276
|
+
}), L;
|
|
2272
2277
|
} finally {
|
|
2273
2278
|
g(!1);
|
|
2274
2279
|
}
|
|
2275
|
-
}, [
|
|
2276
|
-
const
|
|
2280
|
+
}, [K, x, j, f, ee, i]), ze = S(async () => {
|
|
2281
|
+
const D = x();
|
|
2277
2282
|
if (c) {
|
|
2278
2283
|
g(!0);
|
|
2279
2284
|
try {
|
|
2280
2285
|
await c();
|
|
2281
|
-
} catch (
|
|
2282
|
-
throw await
|
|
2283
|
-
}),
|
|
2286
|
+
} catch (L) {
|
|
2287
|
+
throw await j(L, "clear", D).catch(() => {
|
|
2288
|
+
}), L;
|
|
2284
2289
|
} finally {
|
|
2285
2290
|
g(!1);
|
|
2286
2291
|
}
|
|
2287
2292
|
}
|
|
2288
2293
|
try {
|
|
2289
|
-
|
|
2290
|
-
} catch (
|
|
2291
|
-
throw await
|
|
2292
|
-
}),
|
|
2294
|
+
T(s || {});
|
|
2295
|
+
} catch (L) {
|
|
2296
|
+
throw await j(L, "clear", D).catch(() => {
|
|
2297
|
+
}), L;
|
|
2293
2298
|
}
|
|
2294
|
-
}, [s,
|
|
2295
|
-
async (
|
|
2299
|
+
}, [s, x, j, c, T]), Je = S(
|
|
2300
|
+
async (D) => {
|
|
2296
2301
|
g(!0);
|
|
2297
2302
|
try {
|
|
2298
|
-
const
|
|
2299
|
-
l && await l(
|
|
2300
|
-
close:
|
|
2303
|
+
const L = ee(D);
|
|
2304
|
+
l && await l(L, {
|
|
2305
|
+
close: K,
|
|
2301
2306
|
id: f,
|
|
2302
|
-
values:
|
|
2303
|
-
}), e &&
|
|
2304
|
-
} catch (
|
|
2305
|
-
throw await
|
|
2306
|
-
}),
|
|
2307
|
+
values: D
|
|
2308
|
+
}), e && K();
|
|
2309
|
+
} catch (L) {
|
|
2310
|
+
throw await j(L, "submit", D).catch(() => {
|
|
2311
|
+
}), L;
|
|
2307
2312
|
} finally {
|
|
2308
2313
|
g(!1);
|
|
2309
2314
|
}
|
|
2310
2315
|
},
|
|
2311
|
-
[
|
|
2316
|
+
[K, e, j, f, ee, l]
|
|
2312
2317
|
);
|
|
2313
2318
|
return {
|
|
2314
|
-
open:
|
|
2319
|
+
open: w,
|
|
2315
2320
|
mode: o,
|
|
2316
2321
|
id: f,
|
|
2317
|
-
openDialog:
|
|
2318
|
-
handleClose:
|
|
2319
|
-
control:
|
|
2320
|
-
getValues:
|
|
2321
|
-
setValue:
|
|
2322
|
-
handleSubmit:
|
|
2323
|
-
onSubmit:
|
|
2324
|
-
reset:
|
|
2325
|
-
setError:
|
|
2322
|
+
openDialog: le,
|
|
2323
|
+
handleClose: K,
|
|
2324
|
+
control: U,
|
|
2325
|
+
getValues: x,
|
|
2326
|
+
setValue: _,
|
|
2327
|
+
handleSubmit: B,
|
|
2328
|
+
onSubmit: Je,
|
|
2329
|
+
reset: T,
|
|
2330
|
+
setError: $,
|
|
2326
2331
|
title: m,
|
|
2327
2332
|
isSubmitting: b,
|
|
2328
|
-
onApply:
|
|
2329
|
-
onClear:
|
|
2333
|
+
onApply: We,
|
|
2334
|
+
onClear: ze,
|
|
2330
2335
|
isLoading: b
|
|
2331
2336
|
};
|
|
2332
|
-
},
|
|
2333
|
-
const e =
|
|
2337
|
+
}, Ys = (r) => {
|
|
2338
|
+
const e = Z(), { mutationFn: s, queryKey: t, onSuccess: n, onError: o, mapOut: i, ...c } = r, a = ne({
|
|
2334
2339
|
mutationFn: s
|
|
2335
2340
|
});
|
|
2336
|
-
return
|
|
2341
|
+
return Ve({
|
|
2337
2342
|
...c,
|
|
2338
2343
|
mode: "entity",
|
|
2339
2344
|
mapOut: i,
|
|
@@ -2346,8 +2351,8 @@ const Zt = (r) => {
|
|
|
2346
2351
|
}
|
|
2347
2352
|
}
|
|
2348
2353
|
});
|
|
2349
|
-
},
|
|
2350
|
-
const e =
|
|
2354
|
+
}, Xs = (r) => {
|
|
2355
|
+
const e = Z(), s = F(), t = F(), {
|
|
2351
2356
|
mutationFn: n,
|
|
2352
2357
|
queryKey: o,
|
|
2353
2358
|
onSuccess: i,
|
|
@@ -2357,31 +2362,31 @@ const Zt = (r) => {
|
|
|
2357
2362
|
dtoToForm: u,
|
|
2358
2363
|
title: d,
|
|
2359
2364
|
...m
|
|
2360
|
-
} = r, f =
|
|
2361
|
-
|
|
2365
|
+
} = r, f = F(u);
|
|
2366
|
+
O(() => {
|
|
2362
2367
|
f.current = u;
|
|
2363
2368
|
}, [u]);
|
|
2364
2369
|
const p = ne({
|
|
2365
2370
|
mutationFn: n
|
|
2366
|
-
}), b =
|
|
2371
|
+
}), b = Ve({
|
|
2367
2372
|
...m,
|
|
2368
2373
|
mode: "entity",
|
|
2369
2374
|
title: d,
|
|
2370
2375
|
onSubmit: async (w) => {
|
|
2371
2376
|
try {
|
|
2372
|
-
const
|
|
2373
|
-
o && await e.invalidateQueries({ queryKey: o }), i && await i(
|
|
2374
|
-
} catch (
|
|
2375
|
-
throw c && c(
|
|
2377
|
+
const E = await p.mutateAsync(w);
|
|
2378
|
+
o && await e.invalidateQueries({ queryKey: o }), i && await i(E);
|
|
2379
|
+
} catch (E) {
|
|
2380
|
+
throw c && c(E), E;
|
|
2376
2381
|
}
|
|
2377
2382
|
},
|
|
2378
2383
|
mapOut: (w) => a ? a(w, s.current) : w
|
|
2379
|
-
}), { reset: g } = b, C =
|
|
2384
|
+
}), { reset: g } = b, C = Nt({
|
|
2380
2385
|
queryFn: () => l(b.id),
|
|
2381
2386
|
queryKey: [...o || ["put-dialog", d], b.id],
|
|
2382
2387
|
enabled: b.open && !!b.id
|
|
2383
2388
|
});
|
|
2384
|
-
return
|
|
2389
|
+
return O(() => {
|
|
2385
2390
|
if (C.data && t.current !== C.data) {
|
|
2386
2391
|
if (s.current = C.data, t.current = C.data, f.current && g) {
|
|
2387
2392
|
g(f.current(C.data));
|
|
@@ -2393,26 +2398,26 @@ const Zt = (r) => {
|
|
|
2393
2398
|
...b,
|
|
2394
2399
|
isLoading: b.isLoading || p.isPending || C.isFetching || C.isLoading
|
|
2395
2400
|
};
|
|
2396
|
-
},
|
|
2397
|
-
const { queryKey: e, onSuccess: s, ...t } = r, n =
|
|
2401
|
+
}, Zs = (r) => {
|
|
2402
|
+
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({
|
|
2398
2403
|
onSuccessMessage: i("_pages:common.actions.restore.successMessage"),
|
|
2399
2404
|
onError: (f) => {
|
|
2400
2405
|
const p = f;
|
|
2401
|
-
if (
|
|
2406
|
+
if (we(p))
|
|
2402
2407
|
o(
|
|
2403
2408
|
p.errors.map(
|
|
2404
2409
|
([b, g]) => ({
|
|
2405
2410
|
message: i(`_pages:${b}.errors.${g}`),
|
|
2406
|
-
type:
|
|
2411
|
+
type: M.error
|
|
2407
2412
|
})
|
|
2408
2413
|
)
|
|
2409
2414
|
);
|
|
2410
|
-
else if (
|
|
2415
|
+
else if (Se(p)) {
|
|
2411
2416
|
const b = p.message || i("_accessibility:errors.500"), g = i(`_accessibility:errors.${p.status}`);
|
|
2412
2417
|
o([
|
|
2413
2418
|
{
|
|
2414
2419
|
message: g || b,
|
|
2415
|
-
type:
|
|
2420
|
+
type: M.error
|
|
2416
2421
|
}
|
|
2417
2422
|
]);
|
|
2418
2423
|
}
|
|
@@ -2421,7 +2426,7 @@ const Zt = (r) => {
|
|
|
2421
2426
|
await n.invalidateQueries({ queryKey: e }), s && s(f);
|
|
2422
2427
|
},
|
|
2423
2428
|
...t
|
|
2424
|
-
}), { action: m } =
|
|
2429
|
+
}), { action: m } = Zt({ onClick: a });
|
|
2425
2430
|
return {
|
|
2426
2431
|
onClick: a,
|
|
2427
2432
|
title: i("_pages:common.actions.restore.dialog.title"),
|
|
@@ -2432,15 +2437,15 @@ const Zt = (r) => {
|
|
|
2432
2437
|
action: m
|
|
2433
2438
|
};
|
|
2434
2439
|
};
|
|
2435
|
-
function
|
|
2436
|
-
const { t: e } = k(), s =
|
|
2440
|
+
function er(r) {
|
|
2441
|
+
const { t: e } = k(), s = Z(), {
|
|
2437
2442
|
queryKey: t,
|
|
2438
2443
|
mutationFn: n,
|
|
2439
2444
|
entity: o,
|
|
2440
2445
|
fileProcessor: i,
|
|
2441
2446
|
renderCustomPreview: c,
|
|
2442
2447
|
onError: a
|
|
2443
|
-
} = r, [l, u] =
|
|
2448
|
+
} = r, [l, u] = R(!1), [d, m] = R(null), [f, p] = R(!1), b = ne({
|
|
2444
2449
|
mutationFn: n,
|
|
2445
2450
|
onError: (y) => {
|
|
2446
2451
|
console.error(y), a == null || a(y);
|
|
@@ -2448,7 +2453,7 @@ function Zs(r) {
|
|
|
2448
2453
|
onSuccess: async () => {
|
|
2449
2454
|
await s.invalidateQueries({ queryKey: t });
|
|
2450
2455
|
}
|
|
2451
|
-
}), { action: g } =
|
|
2456
|
+
}), { action: g } = ts({
|
|
2452
2457
|
onClick: () => u(!0)
|
|
2453
2458
|
});
|
|
2454
2459
|
return {
|
|
@@ -2478,7 +2483,7 @@ function Zs(r) {
|
|
|
2478
2483
|
action: g
|
|
2479
2484
|
};
|
|
2480
2485
|
}
|
|
2481
|
-
const
|
|
2486
|
+
const tr = (r) => {
|
|
2482
2487
|
const { showSuccessNotification: e } = oe(), { t: s } = k(), {
|
|
2483
2488
|
entity: t,
|
|
2484
2489
|
mutationFn: n,
|
|
@@ -2498,25 +2503,25 @@ const er = (r) => {
|
|
|
2498
2503
|
}
|
|
2499
2504
|
}), l = S(() => {
|
|
2500
2505
|
a.mutate();
|
|
2501
|
-
}, [a]), { action: u } =
|
|
2506
|
+
}, [a]), { action: u } = es({
|
|
2502
2507
|
onClick: l,
|
|
2503
2508
|
isLoading: a.isPending
|
|
2504
2509
|
});
|
|
2505
2510
|
return {
|
|
2506
2511
|
action: u
|
|
2507
2512
|
};
|
|
2508
|
-
},
|
|
2509
|
-
function
|
|
2510
|
-
const [e, s] =
|
|
2511
|
-
s(
|
|
2513
|
+
}, Ae = () => typeof window < "u" ? window.scrollY : 0;
|
|
2514
|
+
function ss(r) {
|
|
2515
|
+
const [e, s] = R(Ae), t = S(() => {
|
|
2516
|
+
s(Ae());
|
|
2512
2517
|
}, []);
|
|
2513
|
-
return
|
|
2518
|
+
return O(() => (window.addEventListener("scroll", t), () => {
|
|
2514
2519
|
window.removeEventListener("scroll", t);
|
|
2515
2520
|
}), [t]), e > r;
|
|
2516
2521
|
}
|
|
2517
|
-
const
|
|
2522
|
+
const sr = (r) => {
|
|
2518
2523
|
const { t: e } = k(), {
|
|
2519
|
-
icon: s =
|
|
2524
|
+
icon: s = yt,
|
|
2520
2525
|
threshold: t = 200,
|
|
2521
2526
|
scrollTop: n = 0,
|
|
2522
2527
|
scrollLeft: o = 0,
|
|
@@ -2527,7 +2532,7 @@ const tr = (r) => {
|
|
|
2527
2532
|
variant: u = "submit",
|
|
2528
2533
|
color: d = "primary",
|
|
2529
2534
|
...m
|
|
2530
|
-
} = r, f =
|
|
2535
|
+
} = r, f = ss(t);
|
|
2531
2536
|
return /* @__PURE__ */ h(
|
|
2532
2537
|
z,
|
|
2533
2538
|
{
|
|
@@ -2536,7 +2541,7 @@ const tr = (r) => {
|
|
|
2536
2541
|
icon: s,
|
|
2537
2542
|
"data-tooltip-id": "tooltip",
|
|
2538
2543
|
onClick: () => {
|
|
2539
|
-
a == null || a(), c &&
|
|
2544
|
+
a == null || a(), c && Yt.scrollTo(o, n);
|
|
2540
2545
|
},
|
|
2541
2546
|
className: `to-top ${f ? "show" : "hide"} ${l}`.trim(),
|
|
2542
2547
|
"data-tooltip-content": i,
|
|
@@ -2544,11 +2549,11 @@ const tr = (r) => {
|
|
|
2544
2549
|
}
|
|
2545
2550
|
);
|
|
2546
2551
|
};
|
|
2547
|
-
function
|
|
2552
|
+
function rr(r) {
|
|
2548
2553
|
const { t: e } = k();
|
|
2549
2554
|
if ("children" in r) {
|
|
2550
|
-
const { children:
|
|
2551
|
-
return /* @__PURE__ */ h("div", { className: `error-container${
|
|
2555
|
+
const { children: E, className: A } = r;
|
|
2556
|
+
return /* @__PURE__ */ h("div", { className: `error-container${A ? ` ${A}` : ""}`, children: E });
|
|
2552
2557
|
}
|
|
2553
2558
|
const {
|
|
2554
2559
|
error: t,
|
|
@@ -2566,12 +2571,12 @@ function sr(r) {
|
|
|
2566
2571
|
onClick: b,
|
|
2567
2572
|
...g
|
|
2568
2573
|
} = a ?? {}, { className: y, ...C } = l ?? {}, w = o !== null;
|
|
2569
|
-
return /* @__PURE__ */
|
|
2574
|
+
return /* @__PURE__ */ v("div", { className: `error-container${u ? ` ${u}` : ""}`, children: [
|
|
2570
2575
|
w && /* @__PURE__ */ h(
|
|
2571
|
-
|
|
2576
|
+
q,
|
|
2572
2577
|
{
|
|
2573
2578
|
...o,
|
|
2574
|
-
icon: (o == null ? void 0 : o.icon) ??
|
|
2579
|
+
icon: (o == null ? void 0 : o.icon) ?? At,
|
|
2575
2580
|
className: `error-icon${o != null && o.className ? ` ${o.className}` : ""}`
|
|
2576
2581
|
}
|
|
2577
2582
|
),
|
|
@@ -2584,29 +2589,29 @@ function sr(r) {
|
|
|
2584
2589
|
}
|
|
2585
2590
|
),
|
|
2586
2591
|
m && /* @__PURE__ */ h(
|
|
2587
|
-
|
|
2592
|
+
H,
|
|
2588
2593
|
{
|
|
2589
2594
|
type: "button",
|
|
2590
2595
|
variant: "submit",
|
|
2591
2596
|
color: "primary",
|
|
2592
2597
|
...g,
|
|
2593
2598
|
className: `error-retry ${f ? ` ${f}` : ""}`,
|
|
2594
|
-
onClick: (
|
|
2595
|
-
b == null || b(
|
|
2599
|
+
onClick: (E) => {
|
|
2600
|
+
b == null || b(E), E.defaultPrevented || m();
|
|
2596
2601
|
},
|
|
2597
2602
|
children: p ?? c ?? e("_accessibility:actions.retry", { defaultValue: "Retry" })
|
|
2598
2603
|
}
|
|
2599
2604
|
)
|
|
2600
2605
|
] });
|
|
2601
2606
|
}
|
|
2602
|
-
const
|
|
2607
|
+
const rs = (r) => {
|
|
2603
2608
|
const { showBackButton: e, title: s, actions: t } = r, { t: n } = k(), { navigate: o } = ce();
|
|
2604
|
-
return /* @__PURE__ */
|
|
2605
|
-
/* @__PURE__ */
|
|
2609
|
+
return /* @__PURE__ */ v("div", { className: "page-header", children: [
|
|
2610
|
+
/* @__PURE__ */ v("div", { className: "page-header-left", children: [
|
|
2606
2611
|
e && /* @__PURE__ */ h(
|
|
2607
2612
|
z,
|
|
2608
2613
|
{
|
|
2609
|
-
icon:
|
|
2614
|
+
icon: wt,
|
|
2610
2615
|
onClick: () => o(-1),
|
|
2611
2616
|
className: "page-header-back",
|
|
2612
2617
|
name: n("_accessibility:buttons.back"),
|
|
@@ -2616,16 +2621,16 @@ const ss = (r) => {
|
|
|
2616
2621
|
),
|
|
2617
2622
|
/* @__PURE__ */ h("h2", { className: "page-header-title", children: s })
|
|
2618
2623
|
] }),
|
|
2619
|
-
/* @__PURE__ */
|
|
2624
|
+
/* @__PURE__ */ v("div", { children: [
|
|
2620
2625
|
/* @__PURE__ */ h(
|
|
2621
|
-
|
|
2626
|
+
it,
|
|
2622
2627
|
{
|
|
2623
2628
|
className: "page-header-actions-desktop",
|
|
2624
2629
|
actions: t ?? []
|
|
2625
2630
|
}
|
|
2626
2631
|
),
|
|
2627
2632
|
/* @__PURE__ */ h(
|
|
2628
|
-
|
|
2633
|
+
at,
|
|
2629
2634
|
{
|
|
2630
2635
|
className: "page-header-actions-mobile",
|
|
2631
2636
|
actions: t ?? []
|
|
@@ -2633,7 +2638,7 @@ const ss = (r) => {
|
|
|
2633
2638
|
)
|
|
2634
2639
|
] })
|
|
2635
2640
|
] });
|
|
2636
|
-
},
|
|
2641
|
+
}, nr = (r) => {
|
|
2637
2642
|
const {
|
|
2638
2643
|
title: e,
|
|
2639
2644
|
children: s,
|
|
@@ -2644,13 +2649,13 @@ const ss = (r) => {
|
|
|
2644
2649
|
isLoading: c = !1,
|
|
2645
2650
|
isAnimated: a = !0,
|
|
2646
2651
|
showBackButton: l = !1
|
|
2647
|
-
} = r, { t: u } = k(), d =
|
|
2652
|
+
} = r, { t: u } = k(), d = Z(), { countOfFilters: m } = ct(), f = V(() => {
|
|
2648
2653
|
const p = Array.isArray(o) ? [...o] : [];
|
|
2649
2654
|
if (i) {
|
|
2650
2655
|
const b = {
|
|
2651
|
-
id:
|
|
2656
|
+
id: J.Refresh,
|
|
2652
2657
|
onClick: () => d.invalidateQueries({ queryKey: i }),
|
|
2653
|
-
icon: /* @__PURE__ */ h(
|
|
2658
|
+
icon: /* @__PURE__ */ h(q, { icon: Le }),
|
|
2654
2659
|
tooltip: u("_pages:common.actions.refresh.text")
|
|
2655
2660
|
};
|
|
2656
2661
|
p.unshift(b);
|
|
@@ -2658,8 +2663,8 @@ const ss = (r) => {
|
|
|
2658
2663
|
if (t) {
|
|
2659
2664
|
const b = {
|
|
2660
2665
|
...t,
|
|
2661
|
-
id:
|
|
2662
|
-
icon: /* @__PURE__ */ h(
|
|
2666
|
+
id: J.Add,
|
|
2667
|
+
icon: /* @__PURE__ */ h(q, { icon: ve })
|
|
2663
2668
|
};
|
|
2664
2669
|
p.unshift(b);
|
|
2665
2670
|
}
|
|
@@ -2667,9 +2672,9 @@ const ss = (r) => {
|
|
|
2667
2672
|
const b = {
|
|
2668
2673
|
...n,
|
|
2669
2674
|
id: "filter",
|
|
2670
|
-
icon: /* @__PURE__ */ h(
|
|
2675
|
+
icon: /* @__PURE__ */ h(q, { icon: St }),
|
|
2671
2676
|
children: /* @__PURE__ */ h(
|
|
2672
|
-
|
|
2677
|
+
lt,
|
|
2673
2678
|
{
|
|
2674
2679
|
className: `${m > 0 ? "show" : "hide"} `,
|
|
2675
2680
|
count: m
|
|
@@ -2688,9 +2693,9 @@ const ss = (r) => {
|
|
|
2688
2693
|
i,
|
|
2689
2694
|
u
|
|
2690
2695
|
]);
|
|
2691
|
-
return /* @__PURE__ */
|
|
2696
|
+
return /* @__PURE__ */ v("main", { className: "page-main", children: [
|
|
2692
2697
|
/* @__PURE__ */ h(
|
|
2693
|
-
|
|
2698
|
+
rs,
|
|
2694
2699
|
{
|
|
2695
2700
|
showBackButton: l,
|
|
2696
2701
|
actions: f,
|
|
@@ -2701,7 +2706,7 @@ const ss = (r) => {
|
|
|
2701
2706
|
t && /* @__PURE__ */ h(
|
|
2702
2707
|
z,
|
|
2703
2708
|
{
|
|
2704
|
-
icon: t.icon ??
|
|
2709
|
+
icon: t.icon ?? ve,
|
|
2705
2710
|
color: t.color ?? "primary",
|
|
2706
2711
|
variant: t.variant ?? "submit",
|
|
2707
2712
|
onClick: () => {
|
|
@@ -2712,7 +2717,7 @@ const ss = (r) => {
|
|
|
2712
2717
|
}
|
|
2713
2718
|
)
|
|
2714
2719
|
] });
|
|
2715
|
-
},
|
|
2720
|
+
}, or = (r) => {
|
|
2716
2721
|
const { t: e } = k(), {
|
|
2717
2722
|
className: s = "",
|
|
2718
2723
|
itemClassName: t = "",
|
|
@@ -2727,7 +2732,7 @@ const ss = (r) => {
|
|
|
2727
2732
|
loadMoreComponent: m = null,
|
|
2728
2733
|
observerRootMargin: f = "0px 0px 200px 0px",
|
|
2729
2734
|
observerThreshold: p = 0
|
|
2730
|
-
} = r, b =
|
|
2735
|
+
} = r, b = F(!1), g = F(null), y = S(async () => {
|
|
2731
2736
|
if (!(!l || !d) && !(u || b.current)) {
|
|
2732
2737
|
b.current = !0;
|
|
2733
2738
|
try {
|
|
@@ -2737,11 +2742,11 @@ const ss = (r) => {
|
|
|
2737
2742
|
}
|
|
2738
2743
|
}
|
|
2739
2744
|
}, [l, u, d]);
|
|
2740
|
-
return
|
|
2745
|
+
return O(() => {
|
|
2741
2746
|
if (!l || !d || !g.current || typeof IntersectionObserver > "u") return;
|
|
2742
2747
|
const C = new IntersectionObserver(
|
|
2743
2748
|
(w) => {
|
|
2744
|
-
w.some((
|
|
2749
|
+
w.some((E) => E.isIntersecting) && y();
|
|
2745
2750
|
},
|
|
2746
2751
|
{
|
|
2747
2752
|
rootMargin: f,
|
|
@@ -2755,23 +2760,23 @@ const ss = (r) => {
|
|
|
2755
2760
|
f,
|
|
2756
2761
|
p,
|
|
2757
2762
|
y
|
|
2758
|
-
]), n ? /* @__PURE__ */ h(re, {}) : /* @__PURE__ */ h(ae, { children: a != null && a.length ? /* @__PURE__ */
|
|
2763
|
+
]), n ? /* @__PURE__ */ h(re, {}) : /* @__PURE__ */ h(ae, { children: a != null && a.length ? /* @__PURE__ */ v("ul", { className: `pretty-grid-main ${s}`, children: [
|
|
2759
2764
|
a == null ? void 0 : a.map((C) => /* @__PURE__ */ h("li", { className: `pretty-grid-item ${t}`, children: c(C) }, C.id)),
|
|
2760
2765
|
l && d && /* @__PURE__ */ h("li", { className: "pretty-grid-load-more", ref: g, children: m })
|
|
2761
|
-
] }) : /* @__PURE__ */ h(ae, { children: o || /* @__PURE__ */ h(
|
|
2762
|
-
}, Ge =
|
|
2766
|
+
] }) : /* @__PURE__ */ h(ae, { children: o || /* @__PURE__ */ h(ds, { message: i }) }) });
|
|
2767
|
+
}, Ge = Y({
|
|
2763
2768
|
title: "",
|
|
2764
2769
|
setTitle: () => {
|
|
2765
2770
|
},
|
|
2766
2771
|
rightContent: null,
|
|
2767
2772
|
setRightContent: () => {
|
|
2768
2773
|
}
|
|
2769
|
-
}),
|
|
2770
|
-
const { children: e } = r, [s, t] =
|
|
2774
|
+
}), ir = (r) => {
|
|
2775
|
+
const { children: e } = r, [s, t] = R(""), [n, o] = R(null), i = S((l) => {
|
|
2771
2776
|
t(l);
|
|
2772
2777
|
}, []), c = S((l) => {
|
|
2773
2778
|
o(l);
|
|
2774
|
-
}, []), a =
|
|
2779
|
+
}, []), a = V(
|
|
2775
2780
|
() => ({
|
|
2776
2781
|
title: s,
|
|
2777
2782
|
setTitle: i,
|
|
@@ -2781,25 +2786,25 @@ const ss = (r) => {
|
|
|
2781
2786
|
[s, i, n, c]
|
|
2782
2787
|
);
|
|
2783
2788
|
return /* @__PURE__ */ h(Ge.Provider, { value: a, children: e });
|
|
2784
|
-
},
|
|
2785
|
-
function
|
|
2786
|
-
const { t: e } = k(), { openDrawer: s, showSearch: t = !0, menuButtonProps: n } = r, { searchComponent: o, location: i } = ce(), { title: c, rightContent: a } =
|
|
2787
|
-
(
|
|
2789
|
+
}, ns = () => X(Ge);
|
|
2790
|
+
function ar(r) {
|
|
2791
|
+
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) => {
|
|
2792
|
+
(Ht() ? p.metaKey : p.ctrlKey) && p.shiftKey && p.key.toLowerCase() === "f" && (u(!0), p.preventDefault());
|
|
2788
2793
|
}, []);
|
|
2789
|
-
|
|
2794
|
+
O(() => (window.addEventListener("keydown", d), () => {
|
|
2790
2795
|
window.removeEventListener("keydown", d);
|
|
2791
2796
|
}), [d]);
|
|
2792
2797
|
const m = o, f = t && !!m;
|
|
2793
|
-
return /* @__PURE__ */
|
|
2798
|
+
return /* @__PURE__ */ v(ae, { children: [
|
|
2794
2799
|
i.pathname !== "/" && !!m && /* @__PURE__ */ h(m, { open: l, onClose: () => u(!1) }),
|
|
2795
|
-
/* @__PURE__ */
|
|
2796
|
-
/* @__PURE__ */
|
|
2800
|
+
/* @__PURE__ */ v("header", { id: "header", className: "header", children: [
|
|
2801
|
+
/* @__PURE__ */ v("div", { className: "navbar-left", children: [
|
|
2797
2802
|
/* @__PURE__ */ h(
|
|
2798
2803
|
z,
|
|
2799
2804
|
{
|
|
2800
2805
|
...n,
|
|
2801
2806
|
type: (n == null ? void 0 : n.type) ?? "button",
|
|
2802
|
-
icon: (n == null ? void 0 : n.icon) ??
|
|
2807
|
+
icon: (n == null ? void 0 : n.icon) ?? Ct,
|
|
2803
2808
|
onClick: (p) => {
|
|
2804
2809
|
var b;
|
|
2805
2810
|
(b = n == null ? void 0 : n.onClick) == null || b.call(n, p), s();
|
|
@@ -2811,12 +2816,12 @@ function ir(r) {
|
|
|
2811
2816
|
),
|
|
2812
2817
|
/* @__PURE__ */ h("h1", { className: "poppins navbar-title", children: c || e("_pages:home.appName") })
|
|
2813
2818
|
] }),
|
|
2814
|
-
/* @__PURE__ */
|
|
2819
|
+
/* @__PURE__ */ v("div", { className: "navbar-right", children: [
|
|
2815
2820
|
a,
|
|
2816
2821
|
f && /* @__PURE__ */ h(
|
|
2817
2822
|
z,
|
|
2818
2823
|
{
|
|
2819
|
-
icon:
|
|
2824
|
+
icon: Tt,
|
|
2820
2825
|
className: "navbar-search-btn",
|
|
2821
2826
|
onClick: () => u(!0)
|
|
2822
2827
|
}
|
|
@@ -2825,54 +2830,54 @@ function ir(r) {
|
|
|
2825
2830
|
] })
|
|
2826
2831
|
] });
|
|
2827
2832
|
}
|
|
2828
|
-
const
|
|
2833
|
+
const ue = 300, os = (r) => r ?? M.error, is = (r) => {
|
|
2829
2834
|
switch (r) {
|
|
2830
|
-
case
|
|
2831
|
-
return
|
|
2835
|
+
case M.error:
|
|
2836
|
+
return Et;
|
|
2832
2837
|
default:
|
|
2833
|
-
return
|
|
2838
|
+
return vt;
|
|
2834
2839
|
}
|
|
2835
|
-
},
|
|
2840
|
+
}, pe = (r) => {
|
|
2836
2841
|
switch (r) {
|
|
2837
|
-
case
|
|
2842
|
+
case M.success:
|
|
2838
2843
|
return "!text-success";
|
|
2839
|
-
case
|
|
2844
|
+
case M.error:
|
|
2840
2845
|
return "!text-error";
|
|
2841
|
-
case
|
|
2846
|
+
case M.warning:
|
|
2842
2847
|
return "!text-warning";
|
|
2843
2848
|
default:
|
|
2844
2849
|
return "!text-info";
|
|
2845
2850
|
}
|
|
2846
|
-
},
|
|
2851
|
+
}, as = (r) => {
|
|
2847
2852
|
switch (r) {
|
|
2848
|
-
case
|
|
2853
|
+
case M.success:
|
|
2849
2854
|
return "bg-bg-success";
|
|
2850
|
-
case
|
|
2855
|
+
case M.error:
|
|
2851
2856
|
return "bg-bg-error";
|
|
2852
|
-
case
|
|
2857
|
+
case M.warning:
|
|
2853
2858
|
return "bg-bg-warning";
|
|
2854
2859
|
default:
|
|
2855
2860
|
return "bg-bg-info";
|
|
2856
2861
|
}
|
|
2857
2862
|
};
|
|
2858
|
-
function
|
|
2859
|
-
const { t: r } = k(), { notification: e, removeNotification: s } = oe(), [t, n] =
|
|
2860
|
-
|
|
2863
|
+
function cr() {
|
|
2864
|
+
const { t: r } = k(), { notification: e, removeNotification: s } = oe(), [t, n] = R([]), o = F(t);
|
|
2865
|
+
dt(() => {
|
|
2861
2866
|
o.current = t;
|
|
2862
2867
|
});
|
|
2863
|
-
const i =
|
|
2868
|
+
const i = F(null), c = S(
|
|
2864
2869
|
(a) => {
|
|
2865
2870
|
n(
|
|
2866
2871
|
(l) => a !== void 0 ? l.map((u) => u.id === a ? { ...u, closing: !0 } : u) : l.map((u) => ({ ...u, closing: !0 }))
|
|
2867
2872
|
), a !== void 0 ? setTimeout(() => {
|
|
2868
2873
|
s(a), n((l) => l.filter((u) => u.id !== a));
|
|
2869
|
-
},
|
|
2874
|
+
}, ue) : (i.current && clearTimeout(i.current), i.current = setTimeout(() => {
|
|
2870
2875
|
s(), n([]), i.current = null;
|
|
2871
|
-
},
|
|
2876
|
+
}, ue));
|
|
2872
2877
|
},
|
|
2873
2878
|
[s]
|
|
2874
2879
|
);
|
|
2875
|
-
return
|
|
2880
|
+
return O(() => {
|
|
2876
2881
|
let a = null;
|
|
2877
2882
|
const l = () => {
|
|
2878
2883
|
a && clearTimeout(a), i.current && (clearTimeout(i.current), i.current = null);
|
|
@@ -2882,7 +2887,7 @@ function ar() {
|
|
|
2882
2887
|
n((f) => f.map((p) => ({ ...p, closing: !0 }))), a = null;
|
|
2883
2888
|
}, 0), i.current = setTimeout(() => {
|
|
2884
2889
|
n([]), i.current = null;
|
|
2885
|
-
},
|
|
2890
|
+
}, ue), l);
|
|
2886
2891
|
const u = new Set(o.current.map((f) => f.id));
|
|
2887
2892
|
if (!e.some(
|
|
2888
2893
|
(f) => f.id !== void 0 && !u.has(f.id)
|
|
@@ -2903,8 +2908,8 @@ function ar() {
|
|
|
2903
2908
|
const m = [...e];
|
|
2904
2909
|
return i.current = setTimeout(() => {
|
|
2905
2910
|
n(m.map((f) => ({ ...f, closing: !1 }))), i.current = null;
|
|
2906
|
-
},
|
|
2907
|
-
}, [e]),
|
|
2911
|
+
}, ue), l;
|
|
2912
|
+
}, [e]), O(() => {
|
|
2908
2913
|
if (!t.length) return;
|
|
2909
2914
|
let a;
|
|
2910
2915
|
const l = window.setTimeout(() => {
|
|
@@ -2915,36 +2920,36 @@ function ar() {
|
|
|
2915
2920
|
return window.addEventListener("keydown", u), () => {
|
|
2916
2921
|
window.clearTimeout(l), a && window.removeEventListener("click", a), window.removeEventListener("keydown", u);
|
|
2917
2922
|
};
|
|
2918
|
-
}, [t.length, c]),
|
|
2923
|
+
}, [t.length, c]), Ie(
|
|
2919
2924
|
/* @__PURE__ */ h("div", { className: `notification-portal ${t.length ? "active" : ""}`, children: t.map(({ id: a, type: l, message: u, closing: d }) => {
|
|
2920
|
-
const m =
|
|
2921
|
-
return /* @__PURE__ */
|
|
2925
|
+
const m = os(l);
|
|
2926
|
+
return /* @__PURE__ */ v(
|
|
2922
2927
|
"div",
|
|
2923
2928
|
{
|
|
2924
|
-
className: `notification ${d ? "closing" : ""} ${
|
|
2929
|
+
className: `notification ${d ? "closing" : ""} ${as(m)}`,
|
|
2925
2930
|
onClick: (f) => f.stopPropagation(),
|
|
2926
2931
|
children: [
|
|
2927
|
-
/* @__PURE__ */
|
|
2932
|
+
/* @__PURE__ */ v("div", { className: "notification-body", children: [
|
|
2928
2933
|
/* @__PURE__ */ h(
|
|
2929
|
-
|
|
2934
|
+
q,
|
|
2930
2935
|
{
|
|
2931
|
-
icon:
|
|
2932
|
-
className: `notification-icon ${
|
|
2936
|
+
icon: is(m),
|
|
2937
|
+
className: `notification-icon ${pe(m)}`
|
|
2933
2938
|
}
|
|
2934
2939
|
),
|
|
2935
|
-
/* @__PURE__ */ h("p", { className: `notification-text ${
|
|
2940
|
+
/* @__PURE__ */ h("p", { className: `notification-text ${pe(m)}`, children: u })
|
|
2936
2941
|
] }),
|
|
2937
2942
|
/* @__PURE__ */ h(
|
|
2938
2943
|
z,
|
|
2939
2944
|
{
|
|
2940
2945
|
type: "button",
|
|
2941
|
-
icon:
|
|
2946
|
+
icon: De,
|
|
2942
2947
|
color: "error",
|
|
2943
2948
|
className: "notification-close group",
|
|
2944
2949
|
onClick: (f) => {
|
|
2945
2950
|
f.stopPropagation(), a !== void 0 && c(a);
|
|
2946
2951
|
},
|
|
2947
|
-
iconClassName: `${
|
|
2952
|
+
iconClassName: `${pe(m)} notification-close-icon`,
|
|
2948
2953
|
name: r("_accessibility:buttons.closeNotification"),
|
|
2949
2954
|
"aria-label": r("_accessibility:ariaLabels.closeNotification")
|
|
2950
2955
|
}
|
|
@@ -2957,7 +2962,7 @@ function ar() {
|
|
|
2957
2962
|
document.body
|
|
2958
2963
|
);
|
|
2959
2964
|
}
|
|
2960
|
-
function
|
|
2965
|
+
function lr(r) {
|
|
2961
2966
|
const { className: e, ...s } = r;
|
|
2962
2967
|
return /* @__PURE__ */ h("div", { className: "splash-screen", children: /* @__PURE__ */ h(
|
|
2963
2968
|
re,
|
|
@@ -2967,7 +2972,7 @@ function cr(r) {
|
|
|
2967
2972
|
}
|
|
2968
2973
|
) });
|
|
2969
2974
|
}
|
|
2970
|
-
const
|
|
2975
|
+
const cs = (r) => {
|
|
2971
2976
|
const {
|
|
2972
2977
|
id: e,
|
|
2973
2978
|
active: s,
|
|
@@ -2985,7 +2990,7 @@ const as = (r) => {
|
|
|
2985
2990
|
...p
|
|
2986
2991
|
} = c ?? {};
|
|
2987
2992
|
return /* @__PURE__ */ h(
|
|
2988
|
-
|
|
2993
|
+
H,
|
|
2989
2994
|
{
|
|
2990
2995
|
type: "button",
|
|
2991
2996
|
variant: m,
|
|
@@ -3007,7 +3012,7 @@ const as = (r) => {
|
|
|
3007
3012
|
children: n
|
|
3008
3013
|
}
|
|
3009
3014
|
);
|
|
3010
|
-
},
|
|
3015
|
+
}, ls = (r) => {
|
|
3011
3016
|
var f;
|
|
3012
3017
|
const {
|
|
3013
3018
|
tabs: e = [],
|
|
@@ -3018,14 +3023,14 @@ const as = (r) => {
|
|
|
3018
3023
|
tabsContainerClassName: i = "",
|
|
3019
3024
|
useLinks: c = !0,
|
|
3020
3025
|
tabButtonProps: a
|
|
3021
|
-
} = r, [l, u] =
|
|
3022
|
-
return /* @__PURE__ */
|
|
3026
|
+
} = 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]);
|
|
3027
|
+
return /* @__PURE__ */ v("div", { className: `tabs-layout-main ${o}`, children: [
|
|
3023
3028
|
/* @__PURE__ */ h(
|
|
3024
3029
|
"ul",
|
|
3025
3030
|
{
|
|
3026
3031
|
className: `horizontal tabs tabs-container ${i}`,
|
|
3027
3032
|
children: e.map(({ id: p, to: b, label: g }) => /* @__PURE__ */ h("li", { children: /* @__PURE__ */ h(
|
|
3028
|
-
|
|
3033
|
+
cs,
|
|
3029
3034
|
{
|
|
3030
3035
|
onClick: () => {
|
|
3031
3036
|
t === void 0 && u(p), n == null || n(p);
|
|
@@ -3043,7 +3048,7 @@ const as = (r) => {
|
|
|
3043
3048
|
),
|
|
3044
3049
|
m == null ? void 0 : m.content
|
|
3045
3050
|
] });
|
|
3046
|
-
},
|
|
3051
|
+
}, us = (r) => {
|
|
3047
3052
|
const {
|
|
3048
3053
|
title: e,
|
|
3049
3054
|
body: s,
|
|
@@ -3056,14 +3061,14 @@ const as = (r) => {
|
|
|
3056
3061
|
alt: l = "",
|
|
3057
3062
|
final: u = !1
|
|
3058
3063
|
} = r, { t: d } = k();
|
|
3059
|
-
return /* @__PURE__ */
|
|
3064
|
+
return /* @__PURE__ */ v("div", { className: "big-appear step-container", children: [
|
|
3060
3065
|
a && /* @__PURE__ */ h("img", { src: a, alt: l }),
|
|
3061
3066
|
e != null && /* @__PURE__ */ h("h2", { className: "step-title", children: e }),
|
|
3062
3067
|
s != null && /* @__PURE__ */ h("div", { className: "step-body", children: s }),
|
|
3063
3068
|
t != null && /* @__PURE__ */ h("div", { className: "step-content", children: t }),
|
|
3064
|
-
/* @__PURE__ */ h("div", { className: "step-actions", children: u ? /* @__PURE__ */
|
|
3069
|
+
/* @__PURE__ */ h("div", { className: "step-actions", children: u ? /* @__PURE__ */ v(ae, { children: [
|
|
3065
3070
|
/* @__PURE__ */ h(
|
|
3066
|
-
|
|
3071
|
+
H,
|
|
3067
3072
|
{
|
|
3068
3073
|
color: "primary",
|
|
3069
3074
|
className: "step-button",
|
|
@@ -3074,7 +3079,7 @@ const as = (r) => {
|
|
|
3074
3079
|
}
|
|
3075
3080
|
),
|
|
3076
3081
|
/* @__PURE__ */ h(
|
|
3077
|
-
|
|
3082
|
+
H,
|
|
3078
3083
|
{
|
|
3079
3084
|
color: "primary",
|
|
3080
3085
|
variant: "submit",
|
|
@@ -3084,9 +3089,9 @@ const as = (r) => {
|
|
|
3084
3089
|
children: d("_accessibility:buttons.signIn")
|
|
3085
3090
|
}
|
|
3086
3091
|
)
|
|
3087
|
-
] }) : /* @__PURE__ */
|
|
3092
|
+
] }) : /* @__PURE__ */ v(ae, { children: [
|
|
3088
3093
|
/* @__PURE__ */ h(
|
|
3089
|
-
|
|
3094
|
+
H,
|
|
3090
3095
|
{
|
|
3091
3096
|
color: "primary",
|
|
3092
3097
|
className: "step-button",
|
|
@@ -3097,7 +3102,7 @@ const as = (r) => {
|
|
|
3097
3102
|
}
|
|
3098
3103
|
),
|
|
3099
3104
|
/* @__PURE__ */ h(
|
|
3100
|
-
|
|
3105
|
+
H,
|
|
3101
3106
|
{
|
|
3102
3107
|
color: "primary",
|
|
3103
3108
|
className: "step-button",
|
|
@@ -3109,7 +3114,7 @@ const as = (r) => {
|
|
|
3109
3114
|
)
|
|
3110
3115
|
] }) })
|
|
3111
3116
|
] });
|
|
3112
|
-
},
|
|
3117
|
+
}, ur = (r) => {
|
|
3113
3118
|
const {
|
|
3114
3119
|
steps: e,
|
|
3115
3120
|
signInPath: s = "/auth/sign-in",
|
|
@@ -3117,7 +3122,7 @@ const as = (r) => {
|
|
|
3117
3122
|
onSkip: n,
|
|
3118
3123
|
onSignIn: o,
|
|
3119
3124
|
onStartAsGuest: i
|
|
3120
|
-
} = r, { setGuestMode: c } =
|
|
3125
|
+
} = r, { setGuestMode: c } = Ke(), { navigate: a } = ce(), [l, u] = R(1), d = S(() => {
|
|
3121
3126
|
if (n) {
|
|
3122
3127
|
n();
|
|
3123
3128
|
return;
|
|
@@ -3135,11 +3140,11 @@ const as = (r) => {
|
|
|
3135
3140
|
return;
|
|
3136
3141
|
}
|
|
3137
3142
|
c(!0), a(t);
|
|
3138
|
-
}, [t, a, i, c]), p =
|
|
3143
|
+
}, [t, a, i, c]), p = V(() => e.map((b, g) => ({
|
|
3139
3144
|
id: g + 1,
|
|
3140
3145
|
label: "",
|
|
3141
3146
|
content: /* @__PURE__ */ h(
|
|
3142
|
-
|
|
3147
|
+
us,
|
|
3143
3148
|
{
|
|
3144
3149
|
...b,
|
|
3145
3150
|
final: g === e.length - 1,
|
|
@@ -3151,7 +3156,7 @@ const as = (r) => {
|
|
|
3151
3156
|
)
|
|
3152
3157
|
})), [m, d, f, e]);
|
|
3153
3158
|
return /* @__PURE__ */ h("div", { className: "onboarding-main", children: /* @__PURE__ */ h(
|
|
3154
|
-
|
|
3159
|
+
ls,
|
|
3155
3160
|
{
|
|
3156
3161
|
currentTab: l,
|
|
3157
3162
|
onTabChange: (b) => u(Number(b)),
|
|
@@ -3159,108 +3164,108 @@ const as = (r) => {
|
|
|
3159
3164
|
useLinks: !1
|
|
3160
3165
|
}
|
|
3161
3166
|
) });
|
|
3162
|
-
},
|
|
3167
|
+
}, ds = (r) => {
|
|
3163
3168
|
const {
|
|
3164
3169
|
message: e,
|
|
3165
3170
|
messageProps: s = { className: "empty-message" },
|
|
3166
3171
|
action: t,
|
|
3167
3172
|
iconProps: n
|
|
3168
3173
|
} = r;
|
|
3169
|
-
return /* @__PURE__ */
|
|
3170
|
-
n && /* @__PURE__ */ h(
|
|
3174
|
+
return /* @__PURE__ */ v("div", { className: "empty-container", children: [
|
|
3175
|
+
n && /* @__PURE__ */ h(q, { ...n }),
|
|
3171
3176
|
/* @__PURE__ */ h("p", { ...s, children: e }),
|
|
3172
|
-
t && /* @__PURE__ */ h(
|
|
3177
|
+
t && /* @__PURE__ */ h(ut, { showTooltips: !1, showText: !0, ...t })
|
|
3173
3178
|
] });
|
|
3174
3179
|
};
|
|
3175
3180
|
export {
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3181
|
+
de as APIClient,
|
|
3182
|
+
fr as Action,
|
|
3183
|
+
pr as Actions,
|
|
3184
|
+
gr as ActionsDropdown,
|
|
3180
3185
|
z as AppIconButton,
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3186
|
+
Mt as AuthClient,
|
|
3187
|
+
Te as AuthContext,
|
|
3188
|
+
js as AuthProvider,
|
|
3189
|
+
Ds as BaseClient,
|
|
3190
|
+
br as Button,
|
|
3191
|
+
Hs as ConfigProvider,
|
|
3192
|
+
As as ConfirmationDialog,
|
|
3193
|
+
be as Dialog,
|
|
3194
|
+
ye as DialogActions,
|
|
3195
|
+
Vs as Drawer,
|
|
3196
|
+
qe as DrawerMenuContext,
|
|
3197
|
+
Bs as DrawerMenuProvider,
|
|
3198
|
+
ds as Empty,
|
|
3199
|
+
rr as Error,
|
|
3200
|
+
Es as FormContainer,
|
|
3201
|
+
Ns as FormDialog,
|
|
3202
|
+
J as GlobalActions,
|
|
3203
|
+
xs as IManager,
|
|
3199
3204
|
z as IconButton,
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
+
$s as ImportDialog,
|
|
3206
|
+
Ls as IndexedDBClient,
|
|
3207
|
+
Ks as ManagerProvider,
|
|
3208
|
+
P as Methods,
|
|
3209
|
+
ar as Navbar,
|
|
3205
3210
|
Ge as NavbarContext,
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3211
|
+
ir as NavbarProvider,
|
|
3212
|
+
cr as Notification,
|
|
3213
|
+
M as NotificationEnumType,
|
|
3214
|
+
Fs as NotificationProvider,
|
|
3215
|
+
ur as Onboarding,
|
|
3216
|
+
nr as Page,
|
|
3217
|
+
vs as ParagraphInput,
|
|
3218
|
+
ks as PasswordInput,
|
|
3219
|
+
or as PrettyGrid,
|
|
3220
|
+
lr as SplashScreen,
|
|
3221
|
+
us as Step,
|
|
3222
|
+
Qs as SupabaseAuthProvider,
|
|
3223
|
+
Rs as SupabaseDataClient,
|
|
3224
|
+
je as SupabaseManagerContext,
|
|
3225
|
+
qs as SupabaseManagerProvider,
|
|
3226
|
+
cs as Tab,
|
|
3227
|
+
ls as TabsLayout,
|
|
3228
|
+
sr as ToTop,
|
|
3229
|
+
Pt as buildQueryUrl,
|
|
3230
|
+
Ce as createQueryClient,
|
|
3231
|
+
Is as enumToKeyValueArray,
|
|
3232
|
+
Os as formatForDatetimeLocal,
|
|
3228
3233
|
G as fromLocal,
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3234
|
+
_s as getFormattedDateTime,
|
|
3235
|
+
Ps as getShortFormattedDateTime,
|
|
3236
|
+
Se as isHttpError,
|
|
3237
|
+
Ht as isMac,
|
|
3238
|
+
we as isValidationError,
|
|
3239
|
+
me as makeRequest,
|
|
3240
|
+
ke as mapSupabaseSessionToSessionDto,
|
|
3241
|
+
Ms as mapValidationErrors,
|
|
3242
|
+
Me as parseQueries,
|
|
3243
|
+
Us as queryClient,
|
|
3244
|
+
I as removeFromLocal,
|
|
3245
|
+
Q as toLocal,
|
|
3246
|
+
Ke as useAuth,
|
|
3247
|
+
Vt as useAuthContext,
|
|
3243
3248
|
ce as useConfig,
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3249
|
+
He as useConfirmationForm,
|
|
3250
|
+
Xt as useDeleteAction,
|
|
3251
|
+
Js as useDeleteDialog,
|
|
3252
|
+
Be as useDialog,
|
|
3248
3253
|
zt as useDrawerMenu,
|
|
3249
3254
|
zs as useEditAction,
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3255
|
+
es as useExportAction,
|
|
3256
|
+
tr as useExportActionMutate,
|
|
3257
|
+
Ve as useFormDialog,
|
|
3258
|
+
ts as useImportAction,
|
|
3259
|
+
er as useImportDialog,
|
|
3260
|
+
Bt as useManager,
|
|
3261
|
+
ns as useNavbar,
|
|
3257
3262
|
oe as useNotification,
|
|
3258
|
-
|
|
3263
|
+
Ys as usePostDialog,
|
|
3259
3264
|
Ws as usePostForm,
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3265
|
+
Xs as usePutDialog,
|
|
3266
|
+
Zt as useRestoreAction,
|
|
3267
|
+
Zs as useRestoreDialog,
|
|
3268
|
+
ss as useScrollTrigger,
|
|
3264
3269
|
Gt as useSupabase,
|
|
3265
3270
|
Gs as useTimeAge
|
|
3266
3271
|
};
|