@sito/dashboard-app 0.0.59 → 0.0.60
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 +44 -4
- package/dist/dashboard-app.cjs +1 -1
- package/dist/dashboard-app.js +779 -753
- package/dist/providers/BottomNavAction/BottomNavActionContext.d.ts +6 -0
- package/dist/providers/BottomNavAction/BottomNavActionProvider.d.ts +2 -0
- package/dist/providers/BottomNavAction/index.d.ts +3 -0
- package/dist/providers/BottomNavAction/useBottomNavAction.d.ts +15 -0
- package/dist/providers/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/dashboard-app.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var A = (n, e, s) =>
|
|
1
|
+
var et = Object.defineProperty;
|
|
2
|
+
var tt = (n, e, s) => e in n ? et(n, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : n[e] = s;
|
|
3
|
+
var A = (n, e, s) => tt(n, typeof e != "symbol" ? e + "" : e, s);
|
|
4
4
|
import "./main.css";
|
|
5
|
-
import { State as
|
|
5
|
+
import { State as st, inputStateClassName as nt, labelStateClassName as rt, helperTextStateClassName as ot, useTranslation as E, Button as V, Loading as ne, TextInput as it, FileInput as at, IconButton as ct, Actions as lt, ActionsDropdown as ut, useTableOptions as dt, Badge as mt, Action as ht } 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 $e, useState as
|
|
11
|
-
import { faEyeSlash as
|
|
7
|
+
import { Action as An, Actions as xn, ActionsDropdown as $n, Button as Dn } from "@sito/dashboard";
|
|
8
|
+
import { jsxs as N, jsx as m, Fragment as ce } from "react/jsx-runtime";
|
|
9
|
+
import { FontAwesomeIcon as U } from "@fortawesome/react-fontawesome";
|
|
10
|
+
import { forwardRef as $e, useState as D, useCallback as v, useEffect as P, useReducer as De, useRef as K, useMemo as q, createContext as X, useContext as G, useLayoutEffect as ft } from "react";
|
|
11
|
+
import { faEyeSlash as pt, faEye as gt, faClose as Le, faTrash as bt, faRotateLeft as Re, faPencil as yt, faCircleNotch as Ie, faCloudArrowDown as wt, faCloudUpload as St, faArrowUp as vt, faArrowLeft as Ct, faAdd as Te, faFilter as Tt, faBars as Nt, faSearch as kt, faCircleCheck as Et, faWarning as At, faPlus as xt } from "@fortawesome/free-solid-svg-icons";
|
|
12
12
|
import { createPortal as _e } from "react-dom";
|
|
13
|
-
import { faSadTear as
|
|
14
|
-
import { QueryClient as
|
|
15
|
-
import { useForm as
|
|
16
|
-
const
|
|
13
|
+
import { faSadTear as $t } from "@fortawesome/free-regular-svg-icons";
|
|
14
|
+
import { QueryClient as Dt, QueryClientProvider as Pe, useMutation as re, useQueryClient as Z, useQuery as Lt } from "@tanstack/react-query";
|
|
15
|
+
import { useForm as Oe } from "react-hook-form";
|
|
16
|
+
const Ne = (n) => n == null ? !1 : `${n}`.length > 0, Ls = $e(function(n, e) {
|
|
17
17
|
const {
|
|
18
18
|
value: s,
|
|
19
19
|
defaultValue: t,
|
|
20
20
|
onChange: r,
|
|
21
|
-
state: o =
|
|
21
|
+
state: o = st.default,
|
|
22
22
|
name: i = "",
|
|
23
23
|
id: c = "",
|
|
24
24
|
label: a = "",
|
|
@@ -26,52 +26,52 @@ const ke = (n) => n == null ? !1 : `${n}`.length > 0, As = $e(function(n, e) {
|
|
|
26
26
|
required: u = !1,
|
|
27
27
|
containerClassName: d = "",
|
|
28
28
|
inputClassName: h = "",
|
|
29
|
-
labelClassName:
|
|
30
|
-
helperText:
|
|
29
|
+
labelClassName: f = "",
|
|
30
|
+
helperText: p = "",
|
|
31
31
|
helperTextClassName: b = "",
|
|
32
32
|
...y
|
|
33
|
-
} = n, g = s !== void 0, [C, w] =
|
|
34
|
-
() =>
|
|
35
|
-
),
|
|
36
|
-
g || w(
|
|
33
|
+
} = n, g = s !== void 0, [C, w] = D(
|
|
34
|
+
() => Ne(t)
|
|
35
|
+
), T = g ? Ne(s) : C, k = (O) => {
|
|
36
|
+
g || w(O.currentTarget.value.length > 0), r == null || r(O);
|
|
37
37
|
};
|
|
38
|
-
return /* @__PURE__ */
|
|
38
|
+
return /* @__PURE__ */ N("div", { className: `form-paragraph-container group ${d}`, children: [
|
|
39
39
|
/* @__PURE__ */ m(
|
|
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 ${nt(o)} ${T ? "has-value" : ""} ${y.placeholder ? "has-placeholder" : ""} ${h}`,
|
|
46
46
|
required: u,
|
|
47
47
|
defaultValue: t,
|
|
48
48
|
...g ? { value: s } : {},
|
|
49
|
-
onChange:
|
|
49
|
+
onChange: k,
|
|
50
50
|
disabled: l,
|
|
51
51
|
...y
|
|
52
52
|
}
|
|
53
53
|
),
|
|
54
|
-
/* @__PURE__ */
|
|
54
|
+
/* @__PURE__ */ N(
|
|
55
55
|
"label",
|
|
56
56
|
{
|
|
57
57
|
htmlFor: c,
|
|
58
|
-
className: `text-input-label ${
|
|
58
|
+
className: `text-input-label ${rt(o)} ${f}`,
|
|
59
59
|
children: [
|
|
60
60
|
a,
|
|
61
61
|
u ? " *" : ""
|
|
62
62
|
]
|
|
63
63
|
}
|
|
64
64
|
),
|
|
65
|
-
!!
|
|
65
|
+
!!p && /* @__PURE__ */ m(
|
|
66
66
|
"p",
|
|
67
67
|
{
|
|
68
|
-
className: `text-input-helper-text ${
|
|
69
|
-
children:
|
|
68
|
+
className: `text-input-helper-text ${ot(o)} ${b}`,
|
|
69
|
+
children: p
|
|
70
70
|
}
|
|
71
71
|
)
|
|
72
72
|
] });
|
|
73
|
-
}),
|
|
74
|
-
const { t: e } =
|
|
73
|
+
}), Rs = (n) => {
|
|
74
|
+
const { t: e } = E(), {
|
|
75
75
|
children: s,
|
|
76
76
|
handleSubmit: t,
|
|
77
77
|
onSubmit: r,
|
|
@@ -79,11 +79,11 @@ const ke = (n) => n == null ? !1 : `${n}`.length > 0, As = $e(function(n, e) {
|
|
|
79
79
|
buttonEnd: i = !0,
|
|
80
80
|
reset: c
|
|
81
81
|
} = n;
|
|
82
|
-
return /* @__PURE__ */
|
|
82
|
+
return /* @__PURE__ */ N("form", { className: "form-container", onSubmit: t(r), children: [
|
|
83
83
|
s,
|
|
84
|
-
/* @__PURE__ */
|
|
85
|
-
/* @__PURE__ */
|
|
86
|
-
|
|
84
|
+
/* @__PURE__ */ N("div", { className: `form-actions ${i ? "end" : ""}`, children: [
|
|
85
|
+
/* @__PURE__ */ N(
|
|
86
|
+
V,
|
|
87
87
|
{
|
|
88
88
|
type: "submit",
|
|
89
89
|
color: "primary",
|
|
@@ -105,7 +105,7 @@ const ke = (n) => n == null ? !1 : `${n}`.length > 0, As = $e(function(n, e) {
|
|
|
105
105
|
}
|
|
106
106
|
),
|
|
107
107
|
/* @__PURE__ */ m(
|
|
108
|
-
|
|
108
|
+
V,
|
|
109
109
|
{
|
|
110
110
|
type: "button",
|
|
111
111
|
variant: "outlined",
|
|
@@ -117,10 +117,10 @@ const ke = (n) => n == null ? !1 : `${n}`.length > 0, As = $e(function(n, e) {
|
|
|
117
117
|
)
|
|
118
118
|
] })
|
|
119
119
|
] });
|
|
120
|
-
},
|
|
121
|
-
const { t: s } =
|
|
122
|
-
return /* @__PURE__ */ m(
|
|
123
|
-
|
|
120
|
+
}, Is = $e(function(n, e) {
|
|
121
|
+
const { t: s } = E(), [t, r] = D(!1);
|
|
122
|
+
return /* @__PURE__ */ m(it, { ...n, type: t ? "text" : "password", ref: e, children: /* @__PURE__ */ m(
|
|
123
|
+
W,
|
|
124
124
|
{
|
|
125
125
|
type: "button",
|
|
126
126
|
tabIndex: -1,
|
|
@@ -129,11 +129,11 @@ const ke = (n) => n == null ? !1 : `${n}`.length > 0, As = $e(function(n, e) {
|
|
|
129
129
|
),
|
|
130
130
|
className: "password-icon",
|
|
131
131
|
onClick: () => r(!t),
|
|
132
|
-
icon: t ?
|
|
132
|
+
icon: t ? pt : gt
|
|
133
133
|
}
|
|
134
134
|
) });
|
|
135
135
|
}), ye = (n) => {
|
|
136
|
-
const { t: e } =
|
|
136
|
+
const { t: e } = E(), {
|
|
137
137
|
title: s,
|
|
138
138
|
children: t,
|
|
139
139
|
handleClose: r,
|
|
@@ -141,22 +141,22 @@ const ke = (n) => n == null ? !1 : `${n}`.length > 0, As = $e(function(n, e) {
|
|
|
141
141
|
containerClassName: i = "",
|
|
142
142
|
className: c = "",
|
|
143
143
|
animationClass: a = "appear"
|
|
144
|
-
} = n, l =
|
|
144
|
+
} = n, l = v(
|
|
145
145
|
(d) => {
|
|
146
146
|
d.key === "Escape" && o && r();
|
|
147
147
|
},
|
|
148
148
|
[o, r]
|
|
149
149
|
);
|
|
150
|
-
|
|
150
|
+
P(() => (window.addEventListener("keydown", l), () => {
|
|
151
151
|
window.removeEventListener("keydown", l);
|
|
152
152
|
}), [l]);
|
|
153
|
-
const u =
|
|
153
|
+
const u = v(
|
|
154
154
|
(d) => {
|
|
155
155
|
d.target === d.currentTarget && r();
|
|
156
156
|
},
|
|
157
157
|
[r]
|
|
158
158
|
);
|
|
159
|
-
return
|
|
159
|
+
return P(() => {
|
|
160
160
|
const d = (h) => {
|
|
161
161
|
h ? document.body.style.overflow = "hidden" : document.body.style.overflow = "auto";
|
|
162
162
|
};
|
|
@@ -171,15 +171,15 @@ const ke = (n) => n == null ? !1 : `${n}`.length > 0, As = $e(function(n, 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__ */ N(
|
|
175
175
|
"div",
|
|
176
176
|
{
|
|
177
177
|
className: `dialog elevated animated ${o ? `opened ${a}` : "closed"} ${c}`,
|
|
178
178
|
children: [
|
|
179
|
-
/* @__PURE__ */
|
|
179
|
+
/* @__PURE__ */ N("div", { className: "dialog-header", children: [
|
|
180
180
|
/* @__PURE__ */ m("h3", { className: "dialog-title", children: s }),
|
|
181
181
|
/* @__PURE__ */ m(
|
|
182
|
-
|
|
182
|
+
W,
|
|
183
183
|
{
|
|
184
184
|
icon: Le,
|
|
185
185
|
disabled: !o,
|
|
@@ -215,17 +215,17 @@ const ke = (n) => n == null ? !1 : `${n}`.length > 0, As = $e(function(n, e) {
|
|
|
215
215
|
alignEnd: u = !1,
|
|
216
216
|
primaryName: d,
|
|
217
217
|
primaryAriaLabel: h,
|
|
218
|
-
cancelName:
|
|
219
|
-
cancelAriaLabel:
|
|
218
|
+
cancelName: f,
|
|
219
|
+
cancelAriaLabel: p,
|
|
220
220
|
extraActions: b = []
|
|
221
221
|
} = n;
|
|
222
|
-
return /* @__PURE__ */
|
|
222
|
+
return /* @__PURE__ */ N(
|
|
223
223
|
"div",
|
|
224
224
|
{
|
|
225
225
|
className: `dialog-actions ${u ? "end" : ""} ${a}`,
|
|
226
226
|
children: [
|
|
227
|
-
/* @__PURE__ */
|
|
228
|
-
|
|
227
|
+
/* @__PURE__ */ N(
|
|
228
|
+
V,
|
|
229
229
|
{
|
|
230
230
|
type: c,
|
|
231
231
|
color: "primary",
|
|
@@ -248,24 +248,24 @@ const ke = (n) => n == null ? !1 : `${n}`.length > 0, As = $e(function(n, e) {
|
|
|
248
248
|
]
|
|
249
249
|
}
|
|
250
250
|
),
|
|
251
|
-
b == null ? void 0 : b.map((y) => /* @__PURE__ */ m(
|
|
251
|
+
b == null ? void 0 : b.map((y) => /* @__PURE__ */ m(V, { ...y }, y.id)),
|
|
252
252
|
/* @__PURE__ */ m(
|
|
253
|
-
|
|
253
|
+
V,
|
|
254
254
|
{
|
|
255
255
|
type: "button",
|
|
256
256
|
variant: "outlined",
|
|
257
257
|
disabled: i,
|
|
258
258
|
onClick: r,
|
|
259
|
-
name:
|
|
260
|
-
"aria-label":
|
|
259
|
+
name: f,
|
|
260
|
+
"aria-label": p,
|
|
261
261
|
children: s
|
|
262
262
|
}
|
|
263
263
|
)
|
|
264
264
|
]
|
|
265
265
|
}
|
|
266
266
|
);
|
|
267
|
-
},
|
|
268
|
-
const { t: e } =
|
|
267
|
+
}, _s = (n) => {
|
|
268
|
+
const { t: e } = E(), {
|
|
269
269
|
children: s,
|
|
270
270
|
handleSubmit: t,
|
|
271
271
|
onSubmit: r,
|
|
@@ -275,7 +275,7 @@ const ke = (n) => n == null ? !1 : `${n}`.length > 0, As = $e(function(n, e) {
|
|
|
275
275
|
extraActions: a = [],
|
|
276
276
|
...l
|
|
277
277
|
} = n;
|
|
278
|
-
return /* @__PURE__ */ m(ye, { ...l, handleClose: o, children: /* @__PURE__ */
|
|
278
|
+
return /* @__PURE__ */ m(ye, { ...l, handleClose: o, children: /* @__PURE__ */ N("form", { onSubmit: t(r), children: [
|
|
279
279
|
/* @__PURE__ */ m("div", { className: "form-container", children: s }),
|
|
280
280
|
/* @__PURE__ */ m(
|
|
281
281
|
we,
|
|
@@ -296,8 +296,8 @@ const ke = (n) => n == null ? !1 : `${n}`.length > 0, As = $e(function(n, e) {
|
|
|
296
296
|
}
|
|
297
297
|
)
|
|
298
298
|
] }) });
|
|
299
|
-
},
|
|
300
|
-
const { t: e } =
|
|
299
|
+
}, Ps = (n) => {
|
|
300
|
+
const { t: e } = E(), {
|
|
301
301
|
children: s,
|
|
302
302
|
handleSubmit: t,
|
|
303
303
|
handleClose: r,
|
|
@@ -305,7 +305,7 @@ const ke = (n) => n == null ? !1 : `${n}`.length > 0, As = $e(function(n, e) {
|
|
|
305
305
|
extraActions: i = [],
|
|
306
306
|
...c
|
|
307
307
|
} = n;
|
|
308
|
-
return /* @__PURE__ */
|
|
308
|
+
return /* @__PURE__ */ N(ye, { ...c, handleClose: r, children: [
|
|
309
309
|
s,
|
|
310
310
|
/* @__PURE__ */ m(
|
|
311
311
|
we,
|
|
@@ -327,26 +327,26 @@ const ke = (n) => n == null ? !1 : `${n}`.length > 0, As = $e(function(n, e) {
|
|
|
327
327
|
)
|
|
328
328
|
] });
|
|
329
329
|
};
|
|
330
|
-
function
|
|
331
|
-
const { message: e, className: s = "" } = n, { t } =
|
|
330
|
+
function Rt(n) {
|
|
331
|
+
const { message: e, className: s = "" } = n, { t } = E();
|
|
332
332
|
return /* @__PURE__ */ m("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
|
|
337
|
-
const { message: e, className: s = "" } = n, { t } =
|
|
338
|
-
return /* @__PURE__ */
|
|
336
|
+
function It(n) {
|
|
337
|
+
const { message: e, className: s = "" } = n, { t } = E();
|
|
338
|
+
return /* @__PURE__ */ N("div", { className: `import-loading ${s}`, children: [
|
|
339
339
|
/* @__PURE__ */ m(ne, { loaderClass: "w-5 h-5", className: "!w-auto" }),
|
|
340
340
|
/* @__PURE__ */ m("span", { children: e ?? t("_messages:loading.processingFile", {
|
|
341
341
|
defaultValue: "Processing file..."
|
|
342
342
|
}) })
|
|
343
343
|
] });
|
|
344
344
|
}
|
|
345
|
-
function
|
|
346
|
-
const { items: e, max: s = 5, className: t = "" } = n, { t: r } =
|
|
345
|
+
function _t(n) {
|
|
346
|
+
const { items: e, max: s = 5, className: t = "" } = n, { t: r } = E();
|
|
347
347
|
if (!e || e.length === 0) return null;
|
|
348
348
|
const o = e.slice(0, s);
|
|
349
|
-
return /* @__PURE__ */
|
|
349
|
+
return /* @__PURE__ */ N("div", { className: `import-preview ${t}`, children: [
|
|
350
350
|
/* @__PURE__ */ m("p", { className: "import-preview-count", children: r("_pages:common.actions.import.previewCount", {
|
|
351
351
|
count: e.length,
|
|
352
352
|
defaultValue: `Preview: ${e.length} items`
|
|
@@ -354,7 +354,7 @@ function Rt(n) {
|
|
|
354
354
|
/* @__PURE__ */ m("pre", { className: "import-preview-content", children: JSON.stringify(o, null, 2) })
|
|
355
355
|
] });
|
|
356
356
|
}
|
|
357
|
-
const
|
|
357
|
+
const Me = () => ({
|
|
358
358
|
file: null,
|
|
359
359
|
previewItems: null,
|
|
360
360
|
parseError: null,
|
|
@@ -362,7 +362,7 @@ const Oe = () => ({
|
|
|
362
362
|
overrideExisting: !1,
|
|
363
363
|
inputKey: 0
|
|
364
364
|
});
|
|
365
|
-
function
|
|
365
|
+
function Pt(n, e) {
|
|
366
366
|
switch (e.type) {
|
|
367
367
|
case "SET_FILE":
|
|
368
368
|
return {
|
|
@@ -391,11 +391,11 @@ function It(n, e) {
|
|
|
391
391
|
case "SET_OVERRIDE":
|
|
392
392
|
return { ...n, overrideExisting: e.value };
|
|
393
393
|
case "RESET":
|
|
394
|
-
return { ...
|
|
394
|
+
return { ...Me(), inputKey: n.inputKey + 1 };
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
|
-
const
|
|
398
|
-
const { t: e } =
|
|
397
|
+
const Os = (n) => {
|
|
398
|
+
const { t: e } = E(), {
|
|
399
399
|
children: s,
|
|
400
400
|
handleSubmit: t,
|
|
401
401
|
handleClose: r,
|
|
@@ -407,71 +407,71 @@ const Rs = (n) => {
|
|
|
407
407
|
open: u,
|
|
408
408
|
extraActions: d = [],
|
|
409
409
|
...h
|
|
410
|
-
} = n, [
|
|
411
|
-
|
|
412
|
-
|
|
410
|
+
} = n, [f, p] = De(
|
|
411
|
+
Pt,
|
|
412
|
+
Me()
|
|
413
413
|
), {
|
|
414
414
|
file: b,
|
|
415
415
|
previewItems: y,
|
|
416
416
|
parseError: g,
|
|
417
417
|
processing: C,
|
|
418
418
|
overrideExisting: w,
|
|
419
|
-
inputKey:
|
|
420
|
-
} =
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
}, [c]),
|
|
424
|
-
|
|
425
|
-
}, [i]),
|
|
426
|
-
u ||
|
|
419
|
+
inputKey: T
|
|
420
|
+
} = f, k = K(c), O = K(i);
|
|
421
|
+
P(() => {
|
|
422
|
+
k.current = c;
|
|
423
|
+
}, [c]), P(() => {
|
|
424
|
+
O.current = i;
|
|
425
|
+
}, [i]), P(() => {
|
|
426
|
+
u || p({ type: "RESET" });
|
|
427
427
|
}, [u]);
|
|
428
|
-
const
|
|
429
|
-
async (
|
|
430
|
-
var
|
|
431
|
-
if (
|
|
432
|
-
|
|
428
|
+
const j = v(
|
|
429
|
+
async (S, L) => {
|
|
430
|
+
var R;
|
|
431
|
+
if (O.current) {
|
|
432
|
+
p({ type: "START_PROCESSING" });
|
|
433
433
|
try {
|
|
434
|
-
const _ = await
|
|
435
|
-
|
|
434
|
+
const _ = await O.current(S, { override: L });
|
|
435
|
+
p({ type: "SET_PREVIEW", items: _ ?? [] }), (R = k.current) == null || R.call(k, _ ?? []);
|
|
436
436
|
} catch (_) {
|
|
437
437
|
console.error(_);
|
|
438
|
-
const
|
|
439
|
-
|
|
438
|
+
const Q = _ instanceof Error ? _.message : "Failed to parse file";
|
|
439
|
+
p({ type: "SET_ERROR", message: Q });
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
442
|
},
|
|
443
443
|
[]
|
|
444
444
|
);
|
|
445
|
-
return /* @__PURE__ */
|
|
445
|
+
return /* @__PURE__ */ N(ye, { ...h, open: u, handleClose: r, children: [
|
|
446
446
|
/* @__PURE__ */ m(
|
|
447
|
-
|
|
447
|
+
at,
|
|
448
448
|
{
|
|
449
449
|
onClear: () => {
|
|
450
|
-
var
|
|
451
|
-
|
|
450
|
+
var S;
|
|
451
|
+
p({ type: "SET_FILE", file: null }), (S = k.current) == null || S.call(k, []);
|
|
452
452
|
},
|
|
453
|
-
onChange: (
|
|
454
|
-
var
|
|
455
|
-
const
|
|
456
|
-
if (!
|
|
457
|
-
|
|
453
|
+
onChange: (S) => {
|
|
454
|
+
var R, _;
|
|
455
|
+
const L = (R = S.target.files) == null ? void 0 : R[0];
|
|
456
|
+
if (!L) {
|
|
457
|
+
p({ type: "SET_FILE", file: null }), (_ = k.current) == null || _.call(k, []);
|
|
458
458
|
return;
|
|
459
459
|
}
|
|
460
|
-
|
|
460
|
+
p({ type: "SET_FILE", file: L }), j(L, w);
|
|
461
461
|
},
|
|
462
462
|
label: e("_accessibility:labels.file")
|
|
463
463
|
},
|
|
464
|
-
|
|
464
|
+
T
|
|
465
465
|
),
|
|
466
|
-
/* @__PURE__ */
|
|
466
|
+
/* @__PURE__ */ N("label", { className: "import-override-label", children: [
|
|
467
467
|
/* @__PURE__ */ m(
|
|
468
468
|
"input",
|
|
469
469
|
{
|
|
470
470
|
type: "checkbox",
|
|
471
471
|
checked: w,
|
|
472
|
-
onChange: (
|
|
473
|
-
const
|
|
474
|
-
|
|
472
|
+
onChange: (S) => {
|
|
473
|
+
const L = S.target.checked;
|
|
474
|
+
p({ type: "SET_OVERRIDE", value: L }), l == null || l(L), b && j(b, L);
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
477
|
),
|
|
@@ -479,9 +479,9 @@ const Rs = (n) => {
|
|
|
479
479
|
defaultValue: "Override existing items"
|
|
480
480
|
}) })
|
|
481
481
|
] }),
|
|
482
|
-
/* @__PURE__ */ m(
|
|
483
|
-
C && /* @__PURE__ */ m(
|
|
484
|
-
a ? a(y) : !!y && y.length > 0 && /* @__PURE__ */ m(
|
|
482
|
+
/* @__PURE__ */ m(Rt, { message: g }),
|
|
483
|
+
C && /* @__PURE__ */ m(It, {}),
|
|
484
|
+
a ? a(y) : !!y && y.length > 0 && /* @__PURE__ */ m(_t, { items: y }),
|
|
485
485
|
s,
|
|
486
486
|
/* @__PURE__ */ m(
|
|
487
487
|
we,
|
|
@@ -504,12 +504,12 @@ const Rs = (n) => {
|
|
|
504
504
|
)
|
|
505
505
|
] });
|
|
506
506
|
};
|
|
507
|
-
var
|
|
508
|
-
const
|
|
507
|
+
var F = /* @__PURE__ */ ((n) => (n[n.success = 0] = "success", n[n.error = 1] = "error", n[n.warning = 2] = "warning", n[n.info = 3] = "info", n))(F || {}), M = /* @__PURE__ */ ((n) => (n.GET = "GET", n.POST = "POST", n.PUT = "PUT", n.PATCH = "PATCH", n.DELETE = "DELETE", n))(M || {});
|
|
508
|
+
const Ot = (n) => Array.isArray(n) || n instanceof Headers ? !1 : typeof n == "object" && n !== null && ("headers" in n || "credentials" in n), Mt = (n) => n ? Ot(n) ? n : { headers: n } : {}, Ft = (n) => n ? n instanceof Headers ? Object.fromEntries(n.entries()) : Array.isArray(n) ? Object.fromEntries(n) : n : {};
|
|
509
509
|
async function he(n, e = "GET", s, t) {
|
|
510
|
-
const r =
|
|
510
|
+
const r = Mt(t), o = {
|
|
511
511
|
...s !== void 0 ? { "Content-Type": "application/json" } : {},
|
|
512
|
-
...
|
|
512
|
+
...Ft(r.headers)
|
|
513
513
|
};
|
|
514
514
|
try {
|
|
515
515
|
const i = await fetch(n, {
|
|
@@ -551,7 +551,7 @@ async function he(n, e = "GET", s, t) {
|
|
|
551
551
|
};
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function Ut(n, 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(([, r]) => r != null).map(
|
|
@@ -561,7 +561,7 @@ function Ot(n, e) {
|
|
|
561
561
|
}
|
|
562
562
|
return n;
|
|
563
563
|
}
|
|
564
|
-
const fe = (n) => typeof n == "object" && n !== null,
|
|
564
|
+
const fe = (n) => typeof n == "object" && n !== null, J = (n) => n instanceof Date ? encodeURIComponent(n.toISOString()) : encodeURIComponent(String(n)), Kt = (n) => {
|
|
565
565
|
if (typeof n != "string") return;
|
|
566
566
|
const e = n.trim().toUpperCase();
|
|
567
567
|
if (e === "ACTIVE" || e === "DELETED" || e === "ALL")
|
|
@@ -573,18 +573,18 @@ const fe = (n) => typeof n == "object" && n !== null, G = (n) => n instanceof Da
|
|
|
573
573
|
r !== void 0 && t.push(`sort=${String(r)}`), 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 r =
|
|
576
|
+
const r = Kt(s.softDeleteScope);
|
|
577
577
|
r && t.push(`softDeleteScope=${encodeURIComponent(r)}`);
|
|
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}==${
|
|
582
|
+
return c.map((a) => a instanceof Date ? `${i}==${J(a)}` : fe(a) ? `${i}==${J(a.id ?? "")}` : `${i}==${J(a)}`);
|
|
583
583
|
if (fe(c) && "start" in c && "end" in c) {
|
|
584
584
|
const a = [];
|
|
585
|
-
return c.start != null && c.start !== "" && a.push(`${i}>=${
|
|
585
|
+
return c.start != null && c.start !== "" && a.push(`${i}>=${J(c.start)}`), c.end != null && c.end !== "" && a.push(`${i}<=${J(c.end)}`), a;
|
|
586
586
|
}
|
|
587
|
-
return c instanceof Date ? `${i}==${
|
|
587
|
+
return c instanceof Date ? `${i}==${J(c)}` : fe(c) ? `${i}==${J(c.id ?? "")}` : `${i}==${J(c)}`;
|
|
588
588
|
});
|
|
589
589
|
o.length > 0 && t.push(`filters=${o.join(",")}`);
|
|
590
590
|
}
|
|
@@ -610,7 +610,7 @@ const fe = (n) => typeof n == "object" && n !== null, G = (n) => n instanceof Da
|
|
|
610
610
|
}
|
|
611
611
|
defaultTokenAcquirer(e) {
|
|
612
612
|
if (e) return { credentials: "include" };
|
|
613
|
-
const s =
|
|
613
|
+
const s = z(this.userKey);
|
|
614
614
|
if (s && s.length) return { Authorization: `Bearer ${s}` };
|
|
615
615
|
}
|
|
616
616
|
getRefreshLockKey() {
|
|
@@ -621,12 +621,12 @@ const fe = (n) => typeof n == "object" && n !== null, G = (n) => n instanceof Da
|
|
|
621
621
|
return `${s}${t}`;
|
|
622
622
|
}
|
|
623
623
|
getRefreshToken() {
|
|
624
|
-
const e =
|
|
624
|
+
const e = z(this.refreshTokenKey);
|
|
625
625
|
if (typeof e == "string" && e.length)
|
|
626
626
|
return e;
|
|
627
627
|
}
|
|
628
628
|
getAccessTokenExpiresAt() {
|
|
629
|
-
const e =
|
|
629
|
+
const e = z(this.accessTokenExpiresAtKey);
|
|
630
630
|
if (typeof e == "string" && e.length)
|
|
631
631
|
return e;
|
|
632
632
|
}
|
|
@@ -662,7 +662,7 @@ const fe = (n) => typeof n == "object" && n !== null, G = (n) => n instanceof Da
|
|
|
662
662
|
const r = (async () => {
|
|
663
663
|
const { data: o, status: i, error: c } = await he(
|
|
664
664
|
this.buildUrl(this.refreshEndpoint),
|
|
665
|
-
|
|
665
|
+
M.POST,
|
|
666
666
|
{ refreshToken: e }
|
|
667
667
|
);
|
|
668
668
|
if (c || !(o != null && o.token))
|
|
@@ -712,7 +712,7 @@ const fe = (n) => typeof n == "object" && n !== null, G = (n) => n instanceof Da
|
|
|
712
712
|
this.mergeRequestConfig(r)
|
|
713
713
|
)), o;
|
|
714
714
|
}
|
|
715
|
-
async doQuery(e, s =
|
|
715
|
+
async doQuery(e, s = M.GET, t, r) {
|
|
716
716
|
const {
|
|
717
717
|
data: o,
|
|
718
718
|
status: i,
|
|
@@ -743,7 +743,7 @@ const fe = (n) => typeof n == "object" && n !== null, G = (n) => n instanceof Da
|
|
|
743
743
|
status: c
|
|
744
744
|
} = await this.makeRequestWithRefresh(
|
|
745
745
|
r,
|
|
746
|
-
|
|
746
|
+
M.GET
|
|
747
747
|
);
|
|
748
748
|
if (i || c < 200 || c >= 300 || !o)
|
|
749
749
|
throw i ?? {
|
|
@@ -765,7 +765,7 @@ const fe = (n) => typeof n == "object" && n !== null, G = (n) => n instanceof Da
|
|
|
765
765
|
status: o
|
|
766
766
|
} = await this.makeRequestWithRefresh(
|
|
767
767
|
e,
|
|
768
|
-
|
|
768
|
+
M.PATCH,
|
|
769
769
|
s
|
|
770
770
|
);
|
|
771
771
|
if (t || r === null || r === void 0)
|
|
@@ -787,7 +787,7 @@ const fe = (n) => typeof n == "object" && n !== null, G = (n) => n instanceof Da
|
|
|
787
787
|
status: o
|
|
788
788
|
} = await this.makeRequestWithRefresh(
|
|
789
789
|
e,
|
|
790
|
-
|
|
790
|
+
M.DELETE,
|
|
791
791
|
s
|
|
792
792
|
);
|
|
793
793
|
if (t || r === null || r === void 0)
|
|
@@ -810,7 +810,7 @@ const fe = (n) => typeof n == "object" && n !== null, G = (n) => n instanceof Da
|
|
|
810
810
|
status: o
|
|
811
811
|
} = await this.makeRequestWithRefresh(
|
|
812
812
|
e,
|
|
813
|
-
|
|
813
|
+
M.POST,
|
|
814
814
|
s
|
|
815
815
|
);
|
|
816
816
|
if (t || r === null || r === void 0)
|
|
@@ -823,7 +823,7 @@ const fe = (n) => typeof n == "object" && n !== null, G = (n) => n instanceof Da
|
|
|
823
823
|
};
|
|
824
824
|
A(se, "refreshInFlight", /* @__PURE__ */ new Map());
|
|
825
825
|
let de = se;
|
|
826
|
-
class
|
|
826
|
+
class jt {
|
|
827
827
|
/**
|
|
828
828
|
* @param baseUrl - API base URL.
|
|
829
829
|
* @param userKey - Storage key for user session data.
|
|
@@ -837,14 +837,14 @@ class Ut {
|
|
|
837
837
|
const s = "auth/sign-in", t = e;
|
|
838
838
|
return await this.api.doQuery(
|
|
839
839
|
s,
|
|
840
|
-
|
|
840
|
+
M.POST,
|
|
841
841
|
t
|
|
842
842
|
);
|
|
843
843
|
}
|
|
844
844
|
async refresh(e) {
|
|
845
845
|
return await this.api.doQuery(
|
|
846
846
|
"auth/refresh",
|
|
847
|
-
|
|
847
|
+
M.POST,
|
|
848
848
|
e
|
|
849
849
|
);
|
|
850
850
|
}
|
|
@@ -854,7 +854,7 @@ class Ut {
|
|
|
854
854
|
} : void 0, r = e != null && e.refreshToken ? { refreshToken: e.refreshToken } : void 0;
|
|
855
855
|
return await this.api.doQuery(
|
|
856
856
|
s,
|
|
857
|
-
|
|
857
|
+
M.POST,
|
|
858
858
|
r,
|
|
859
859
|
t
|
|
860
860
|
);
|
|
@@ -862,20 +862,20 @@ class Ut {
|
|
|
862
862
|
async register(e) {
|
|
863
863
|
return await this.api.doQuery(
|
|
864
864
|
"auth/sign-up",
|
|
865
|
-
|
|
865
|
+
M.POST,
|
|
866
866
|
e
|
|
867
867
|
);
|
|
868
868
|
}
|
|
869
869
|
async getSession() {
|
|
870
870
|
return await this.api.doQuery(
|
|
871
871
|
"auth/session",
|
|
872
|
-
|
|
872
|
+
M.GET,
|
|
873
873
|
void 0,
|
|
874
874
|
this.api.defaultTokenAcquirer()
|
|
875
875
|
);
|
|
876
876
|
}
|
|
877
877
|
}
|
|
878
|
-
class
|
|
878
|
+
class Ms {
|
|
879
879
|
/**
|
|
880
880
|
* @param baseUrl - API base URL.
|
|
881
881
|
* @param userKey - Storage key for user session data.
|
|
@@ -883,7 +883,7 @@ class Is {
|
|
|
883
883
|
*/
|
|
884
884
|
constructor(e, s, t = {}) {
|
|
885
885
|
A(this, "auth");
|
|
886
|
-
this.auth = new
|
|
886
|
+
this.auth = new jt(e, s, t);
|
|
887
887
|
}
|
|
888
888
|
/**
|
|
889
889
|
* @returns auth
|
|
@@ -892,7 +892,7 @@ class Is {
|
|
|
892
892
|
return this.auth;
|
|
893
893
|
}
|
|
894
894
|
}
|
|
895
|
-
class
|
|
895
|
+
class Fs {
|
|
896
896
|
/**
|
|
897
897
|
* @param table - Resource table/endpoint name.
|
|
898
898
|
* @param baseUrl - API base URL.
|
|
@@ -922,7 +922,7 @@ class _s {
|
|
|
922
922
|
async insertMany(e) {
|
|
923
923
|
return await this.api.doQuery(
|
|
924
924
|
`${this.table}/batch`,
|
|
925
|
-
|
|
925
|
+
M.POST,
|
|
926
926
|
e
|
|
927
927
|
);
|
|
928
928
|
}
|
|
@@ -957,7 +957,7 @@ class _s {
|
|
|
957
957
|
void 0,
|
|
958
958
|
e
|
|
959
959
|
);
|
|
960
|
-
return await this.api.doQuery(s,
|
|
960
|
+
return await this.api.doQuery(s, M.GET, void 0);
|
|
961
961
|
}
|
|
962
962
|
/**
|
|
963
963
|
*
|
|
@@ -967,7 +967,7 @@ class _s {
|
|
|
967
967
|
async import(e) {
|
|
968
968
|
return await this.api.doQuery(
|
|
969
969
|
`${this.table}/import`,
|
|
970
|
-
|
|
970
|
+
M.POST,
|
|
971
971
|
e
|
|
972
972
|
);
|
|
973
973
|
}
|
|
@@ -978,8 +978,8 @@ class _s {
|
|
|
978
978
|
*/
|
|
979
979
|
async commonGet(e) {
|
|
980
980
|
return await this.api.doQuery(
|
|
981
|
-
|
|
982
|
-
|
|
981
|
+
Ut(`${this.table}/common`, e),
|
|
982
|
+
M.GET
|
|
983
983
|
);
|
|
984
984
|
}
|
|
985
985
|
/**
|
|
@@ -997,7 +997,7 @@ class _s {
|
|
|
997
997
|
return await this.api.patch(`${this.table}/restore`, e);
|
|
998
998
|
}
|
|
999
999
|
}
|
|
1000
|
-
class
|
|
1000
|
+
class Us {
|
|
1001
1001
|
/**
|
|
1002
1002
|
* @param table - Object store name.
|
|
1003
1003
|
* @param dbName - IndexedDB database name.
|
|
@@ -1058,10 +1058,10 @@ class Ps {
|
|
|
1058
1058
|
return await this.request(o.put(r)), r;
|
|
1059
1059
|
}
|
|
1060
1060
|
async get(e, s) {
|
|
1061
|
-
var
|
|
1062
|
-
const t = await this.transaction("readonly"), r = await this.request(t.getAll()), o = this.applyFilter(r, s), i = (e == null ? void 0 : e.sortingBy) ?? "id", c = ((
|
|
1063
|
-
o.sort((
|
|
1064
|
-
const y =
|
|
1061
|
+
var f;
|
|
1062
|
+
const t = await this.transaction("readonly"), r = await this.request(t.getAll()), o = this.applyFilter(r, s), i = (e == null ? void 0 : e.sortingBy) ?? "id", c = ((f = e == null ? void 0 : e.sortingOrder) == null ? void 0 : f.toLowerCase()) ?? "asc";
|
|
1063
|
+
o.sort((p, b) => {
|
|
1064
|
+
const y = p[i], g = b[i];
|
|
1065
1065
|
return y < g ? c === "asc" ? -1 : 1 : y > g ? c === "asc" ? 1 : -1 : 0;
|
|
1066
1066
|
});
|
|
1067
1067
|
const a = (e == null ? void 0 : e.pageSize) ?? 10, l = (e == null ? void 0 : e.currentPage) ?? 0, u = o.length, d = Math.ceil(u / a), h = o.slice(
|
|
@@ -1160,14 +1160,14 @@ class Ps {
|
|
|
1160
1160
|
return e === "DELETED" ? t : !t;
|
|
1161
1161
|
}
|
|
1162
1162
|
}
|
|
1163
|
-
const be = (n) => typeof n == "object" && n !== null,
|
|
1163
|
+
const be = (n) => typeof n == "object" && n !== null, Qt = (n) => be(n) ? "start" in n || "end" in n : !1, Bt = (n) => n !== void 0, ae = (n) => n instanceof Date ? n.toISOString() : n, Ht = (n) => {
|
|
1164
1164
|
if (typeof n != "string") return;
|
|
1165
1165
|
const e = n.trim().toUpperCase();
|
|
1166
1166
|
if (e === "ACTIVE") return "ACTIVE";
|
|
1167
1167
|
if (e === "DELETED") return "DELETED";
|
|
1168
1168
|
if (e === "ALL") return "ALL";
|
|
1169
1169
|
};
|
|
1170
|
-
class
|
|
1170
|
+
class Ks {
|
|
1171
1171
|
/**
|
|
1172
1172
|
* @param table - Resource table name.
|
|
1173
1173
|
* @param supabase - Supabase client with `from` capability.
|
|
@@ -1215,17 +1215,17 @@ class Ms {
|
|
|
1215
1215
|
applyFilters(e, s) {
|
|
1216
1216
|
if (!s) return e;
|
|
1217
1217
|
let t = e;
|
|
1218
|
-
const r =
|
|
1218
|
+
const r = Ht(s.softDeleteScope);
|
|
1219
1219
|
return r === "ACTIVE" ? t = t.is(this.deletedAtColumn, null) : r === "DELETED" && (t = t.not(this.deletedAtColumn, "is", null)), Object.entries(s).forEach(([o, i]) => {
|
|
1220
1220
|
if (o === "softDeleteScope" || i === void 0 || i === null || i === "")
|
|
1221
1221
|
return;
|
|
1222
1222
|
const c = o === "deletedAt" ? this.deletedAtColumn : o;
|
|
1223
1223
|
if (Array.isArray(i)) {
|
|
1224
|
-
const a = i.map((l) => l instanceof Date ? l.toISOString() : be(l) ? this.resolveObjectFilterValue(l) : ae(l)).filter(
|
|
1224
|
+
const a = i.map((l) => l instanceof Date ? l.toISOString() : be(l) ? this.resolveObjectFilterValue(l) : ae(l)).filter(Bt);
|
|
1225
1225
|
a.length > 0 && (t = t.in(c, a));
|
|
1226
1226
|
return;
|
|
1227
1227
|
}
|
|
1228
|
-
if (
|
|
1228
|
+
if (Qt(i)) {
|
|
1229
1229
|
i.start !== void 0 && i.start !== "" && (t = t.gte(
|
|
1230
1230
|
c,
|
|
1231
1231
|
ae(i.start)
|
|
@@ -1313,7 +1313,7 @@ class Ms {
|
|
|
1313
1313
|
u.statusText,
|
|
1314
1314
|
"Unable to load list"
|
|
1315
1315
|
);
|
|
1316
|
-
const d = (u.data ?? []).map((
|
|
1316
|
+
const d = (u.data ?? []).map((f) => this.toDto(f)), h = u.count ?? d.length;
|
|
1317
1317
|
return {
|
|
1318
1318
|
sort: o,
|
|
1319
1319
|
order: i,
|
|
@@ -1398,29 +1398,29 @@ class Ms {
|
|
|
1398
1398
|
), ((o = r.data) == null ? void 0 : o.length) ?? 0;
|
|
1399
1399
|
}
|
|
1400
1400
|
}
|
|
1401
|
-
const
|
|
1402
|
-
if (
|
|
1401
|
+
const qt = (n) => typeof n == "object" && n !== null, Vt = (n, e) => {
|
|
1402
|
+
if (qt(n))
|
|
1403
1403
|
for (const s of e) {
|
|
1404
1404
|
const t = n[s];
|
|
1405
1405
|
if (typeof t == "string" && t.trim().length > 0)
|
|
1406
1406
|
return t.trim();
|
|
1407
1407
|
}
|
|
1408
|
-
},
|
|
1408
|
+
}, zt = (n, e) => {
|
|
1409
1409
|
if (!n) return e;
|
|
1410
1410
|
const s = Number(n);
|
|
1411
1411
|
return Number.isFinite(s) ? s : e;
|
|
1412
|
-
},
|
|
1412
|
+
}, ke = (n, e) => {
|
|
1413
1413
|
const {
|
|
1414
1414
|
defaultId: s = 0,
|
|
1415
1415
|
defaultUsername: t = "",
|
|
1416
1416
|
defaultEmail: r = "",
|
|
1417
1417
|
usernameMetadataKeys: o = ["username", "name", "full_name"]
|
|
1418
|
-
} = e ?? {}, i =
|
|
1418
|
+
} = e ?? {}, i = Vt(
|
|
1419
1419
|
n.user.user_metadata,
|
|
1420
1420
|
o
|
|
1421
1421
|
);
|
|
1422
1422
|
return {
|
|
1423
|
-
id:
|
|
1423
|
+
id: zt(n.user.id, s),
|
|
1424
1424
|
username: i ?? t,
|
|
1425
1425
|
email: n.user.email ?? r,
|
|
1426
1426
|
token: n.access_token,
|
|
@@ -1428,13 +1428,13 @@ const Ht = (n) => typeof n == "object" && n !== null, qt = (n, e) => {
|
|
|
1428
1428
|
accessTokenExpiresAt: typeof n.expires_at == "number" ? new Date(n.expires_at * 1e3).toISOString() : null
|
|
1429
1429
|
};
|
|
1430
1430
|
};
|
|
1431
|
-
function
|
|
1431
|
+
function js(n) {
|
|
1432
1432
|
return Object.keys(n).filter((e) => isNaN(Number(e))).map((e) => ({
|
|
1433
1433
|
key: e,
|
|
1434
1434
|
value: n[e]
|
|
1435
1435
|
}));
|
|
1436
1436
|
}
|
|
1437
|
-
const
|
|
1437
|
+
const z = (n, e = "") => {
|
|
1438
1438
|
const s = localStorage.getItem(n) ?? void 0;
|
|
1439
1439
|
if (s && e.length)
|
|
1440
1440
|
switch (e) {
|
|
@@ -1452,7 +1452,7 @@ const W = (n, e = "") => {
|
|
|
1452
1452
|
n,
|
|
1453
1453
|
typeof e == "object" ? JSON.stringify(e) : e
|
|
1454
1454
|
), I = (n) => localStorage.removeItem(n);
|
|
1455
|
-
function
|
|
1455
|
+
function Qs(n) {
|
|
1456
1456
|
const e = n ? new Date(n) : /* @__PURE__ */ new Date(), s = {
|
|
1457
1457
|
weekday: "long",
|
|
1458
1458
|
// martes
|
|
@@ -1474,15 +1474,15 @@ function Fs(n) {
|
|
|
1474
1474
|
s
|
|
1475
1475
|
);
|
|
1476
1476
|
}
|
|
1477
|
-
function
|
|
1477
|
+
function Bs(n) {
|
|
1478
1478
|
const e = n ? new Date(n) : /* @__PURE__ */ new Date(), s = String(e.getDate()).padStart(2, "0"), t = String(e.getMonth() + 1).padStart(2, "0"), r = String(e.getFullYear()).slice(-2), o = String(e.getHours()).padStart(2, "0"), i = String(e.getMinutes()).padStart(2, "0");
|
|
1479
1479
|
return `${s}/${t}/${r} ${o}:${i}`;
|
|
1480
1480
|
}
|
|
1481
|
-
function
|
|
1481
|
+
function Hs(n) {
|
|
1482
1482
|
const e = n ? new Date(n) : /* @__PURE__ */ new Date(), s = e.getFullYear(), t = String(e.getMonth() + 1).padStart(2, "0"), r = String(e.getDate()).padStart(2, "0"), o = String(e.getHours()).padStart(2, "0"), i = String(e.getMinutes()).padStart(2, "0");
|
|
1483
1483
|
return `${s}-${t}-${r}T${o}:${i}`;
|
|
1484
1484
|
}
|
|
1485
|
-
const
|
|
1485
|
+
const Wt = () => {
|
|
1486
1486
|
var s;
|
|
1487
1487
|
const n = navigator, e = ((s = n == null ? void 0 : n.userAgentData) == null ? void 0 : s.platform) || (n == null ? void 0 : n.platform) || "";
|
|
1488
1488
|
return /Mac|iPhone|iPod|iPad/i.test(e);
|
|
@@ -1494,22 +1494,22 @@ function Se(n) {
|
|
|
1494
1494
|
(s) => Array.isArray(s) && s.length === 2 && typeof s[0] == "string"
|
|
1495
1495
|
);
|
|
1496
1496
|
}
|
|
1497
|
-
function
|
|
1497
|
+
function ve(n) {
|
|
1498
1498
|
if (!n || typeof n != "object") return !1;
|
|
1499
1499
|
const e = n;
|
|
1500
1500
|
return typeof (e == null ? void 0 : e.status) == "number" && typeof (e == null ? void 0 : e.message) == "string";
|
|
1501
1501
|
}
|
|
1502
|
-
function
|
|
1502
|
+
function qs(n, e) {
|
|
1503
1503
|
return n != null && n.errors ? n.errors.map(([s, t]) => e(s, t)) : [];
|
|
1504
1504
|
}
|
|
1505
1505
|
const Ue = X(
|
|
1506
1506
|
void 0
|
|
1507
1507
|
);
|
|
1508
|
-
function
|
|
1509
|
-
const { children: e } = n, s =
|
|
1510
|
-
(h,
|
|
1511
|
-
const { type:
|
|
1512
|
-
switch (
|
|
1508
|
+
function Vs(n) {
|
|
1509
|
+
const { children: e } = n, s = K(0), [t, r] = De(
|
|
1510
|
+
(h, f) => {
|
|
1511
|
+
const { type: p, items: b, id: y } = f;
|
|
1512
|
+
switch (p) {
|
|
1513
1513
|
case "set":
|
|
1514
1514
|
return b ?? [];
|
|
1515
1515
|
case "remove":
|
|
@@ -1519,25 +1519,25 @@ function Qs(n) {
|
|
|
1519
1519
|
},
|
|
1520
1520
|
[],
|
|
1521
1521
|
() => []
|
|
1522
|
-
), o = (h) => h.map((
|
|
1522
|
+
), o = (h) => h.map((f) => ({ ...f, id: s.current++ })), i = v(
|
|
1523
1523
|
(h) => r({
|
|
1524
1524
|
type: "set",
|
|
1525
|
-
items: o([{ ...h, type:
|
|
1525
|
+
items: o([{ ...h, type: F.error }])
|
|
1526
1526
|
}),
|
|
1527
1527
|
[]
|
|
1528
|
-
), c =
|
|
1528
|
+
), c = v(
|
|
1529
1529
|
(h) => r({ type: "set", items: o([{ ...h }]) }),
|
|
1530
1530
|
[]
|
|
1531
|
-
), a =
|
|
1531
|
+
), a = v(
|
|
1532
1532
|
(h) => r({ type: "set", items: o(h) }),
|
|
1533
1533
|
[]
|
|
1534
|
-
), l =
|
|
1534
|
+
), l = v(
|
|
1535
1535
|
(h) => r({
|
|
1536
1536
|
type: "set",
|
|
1537
|
-
items: o([{ ...h, type:
|
|
1537
|
+
items: o([{ ...h, type: F.success }])
|
|
1538
1538
|
}),
|
|
1539
1539
|
[]
|
|
1540
|
-
), u = (h) => r({ type: "remove", id: h }), d =
|
|
1540
|
+
), u = (h) => r({ type: "remove", id: h }), d = q(() => ({
|
|
1541
1541
|
notification: t,
|
|
1542
1542
|
removeNotification: u,
|
|
1543
1543
|
showErrorNotification: i,
|
|
@@ -1554,11 +1554,11 @@ function Qs(n) {
|
|
|
1554
1554
|
return /* @__PURE__ */ m(Ue.Provider, { value: d, children: e });
|
|
1555
1555
|
}
|
|
1556
1556
|
const oe = () => {
|
|
1557
|
-
const n =
|
|
1557
|
+
const n = G(Ue);
|
|
1558
1558
|
if (!n)
|
|
1559
1559
|
throw new Error("NotificationContext must be used within a Provider");
|
|
1560
1560
|
return n;
|
|
1561
|
-
},
|
|
1561
|
+
}, Ce = () => new Dt({
|
|
1562
1562
|
defaultOptions: {
|
|
1563
1563
|
queries: {
|
|
1564
1564
|
refetchInterval: !1,
|
|
@@ -1570,23 +1570,23 @@ const oe = () => {
|
|
|
1570
1570
|
// default: true
|
|
1571
1571
|
}
|
|
1572
1572
|
}
|
|
1573
|
-
}),
|
|
1573
|
+
}), zs = Ce(), Ke = X(
|
|
1574
1574
|
void 0
|
|
1575
|
-
),
|
|
1576
|
-
const { children: e, manager: s, queryClient: t } = n, [r] =
|
|
1575
|
+
), Ws = (n) => {
|
|
1576
|
+
const { children: e, manager: s, queryClient: t } = n, [r] = D(Ce), o = t ?? r;
|
|
1577
1577
|
return /* @__PURE__ */ m(Ke.Provider, { value: { client: s }, children: /* @__PURE__ */ m(Pe, { client: o, children: e }) });
|
|
1578
|
-
},
|
|
1579
|
-
const n =
|
|
1578
|
+
}, Gt = () => {
|
|
1579
|
+
const n = G(Ke);
|
|
1580
1580
|
if (!n)
|
|
1581
1581
|
throw new Error("managerContext must be used within a Provider");
|
|
1582
1582
|
return n.client;
|
|
1583
1583
|
}, me = X(
|
|
1584
1584
|
void 0
|
|
1585
|
-
),
|
|
1586
|
-
const n =
|
|
1585
|
+
), Jt = () => {
|
|
1586
|
+
const n = G(me);
|
|
1587
1587
|
if (!n) throw new Error("authContext must be used within a Provider");
|
|
1588
1588
|
return n;
|
|
1589
|
-
}, je = () =>
|
|
1589
|
+
}, je = () => G(me), Gs = (n) => {
|
|
1590
1590
|
const {
|
|
1591
1591
|
children: e,
|
|
1592
1592
|
guestMode: s = "guest_mode",
|
|
@@ -1594,22 +1594,22 @@ const oe = () => {
|
|
|
1594
1594
|
remember: r = "remember",
|
|
1595
1595
|
refreshTokenKey: o = "refreshToken",
|
|
1596
1596
|
accessTokenExpiresAtKey: i = "accessTokenExpiresAt"
|
|
1597
|
-
} = n, c =
|
|
1597
|
+
} = n, c = Gt(), [a, l] = D({}), u = v(() => {
|
|
1598
1598
|
I(t), I(r), I(o), I(i);
|
|
1599
|
-
}, [i, o, r, t]), d =
|
|
1599
|
+
}, [i, o, r, t]), d = v(() => !!z(s, "boolean") && a.token === void 0, [a.token, s]), h = v(
|
|
1600
1600
|
(g) => {
|
|
1601
1601
|
H(s, g);
|
|
1602
1602
|
},
|
|
1603
1603
|
[s]
|
|
1604
|
-
),
|
|
1604
|
+
), f = v(
|
|
1605
1605
|
(g, C) => {
|
|
1606
1606
|
if (!g) return;
|
|
1607
|
-
const w =
|
|
1608
|
-
l(g), I(s), H(t, g.token), H(r,
|
|
1607
|
+
const w = z(r, "boolean"), T = C ?? (typeof w == "boolean" ? w : !1);
|
|
1608
|
+
l(g), I(s), H(t, g.token), H(r, T), typeof g.refreshToken == "string" && g.refreshToken.length ? H(o, g.refreshToken) : I(o), typeof g.accessTokenExpiresAt == "string" && g.accessTokenExpiresAt.length ? H(i, g.accessTokenExpiresAt) : I(i);
|
|
1609
1609
|
},
|
|
1610
1610
|
[i, s, o, r, t]
|
|
1611
|
-
),
|
|
1612
|
-
const g =
|
|
1611
|
+
), p = v(async () => {
|
|
1612
|
+
const g = z(t) ?? a.token, C = z(o) ?? (typeof a.refreshToken == "string" ? a.refreshToken : void 0);
|
|
1613
1613
|
try {
|
|
1614
1614
|
await c.Auth.logout({
|
|
1615
1615
|
accessToken: g,
|
|
@@ -1626,35 +1626,35 @@ const oe = () => {
|
|
|
1626
1626
|
c.Auth,
|
|
1627
1627
|
o,
|
|
1628
1628
|
t
|
|
1629
|
-
]), b =
|
|
1629
|
+
]), b = v(async () => {
|
|
1630
1630
|
try {
|
|
1631
1631
|
const g = await c.Auth.getSession();
|
|
1632
|
-
|
|
1632
|
+
f(g);
|
|
1633
1633
|
} catch (g) {
|
|
1634
|
-
console.error(g),
|
|
1634
|
+
console.error(g), p();
|
|
1635
1635
|
}
|
|
1636
|
-
}, [
|
|
1636
|
+
}, [f, p, c.Auth]), y = q(() => ({
|
|
1637
1637
|
account: a,
|
|
1638
|
-
logUser:
|
|
1639
|
-
logoutUser:
|
|
1638
|
+
logUser: f,
|
|
1639
|
+
logoutUser: p,
|
|
1640
1640
|
logUserFromLocal: b,
|
|
1641
1641
|
isInGuestMode: d,
|
|
1642
1642
|
setGuestMode: h
|
|
1643
1643
|
}), [
|
|
1644
1644
|
a,
|
|
1645
|
-
p,
|
|
1646
1645
|
f,
|
|
1646
|
+
p,
|
|
1647
1647
|
b,
|
|
1648
1648
|
d,
|
|
1649
1649
|
h
|
|
1650
1650
|
]);
|
|
1651
1651
|
return /* @__PURE__ */ m(me.Provider, { value: y, children: e });
|
|
1652
|
-
},
|
|
1653
|
-
const n =
|
|
1652
|
+
}, Js = () => Jt(), Qe = X(void 0), Yt = () => {
|
|
1653
|
+
const n = G(Qe);
|
|
1654
1654
|
if (!n)
|
|
1655
1655
|
throw new Error("supabaseManagerContext must be used within a Provider");
|
|
1656
1656
|
return n.client;
|
|
1657
|
-
},
|
|
1657
|
+
}, Ys = (n) => {
|
|
1658
1658
|
const {
|
|
1659
1659
|
children: e,
|
|
1660
1660
|
guestMode: s = "guest_mode",
|
|
@@ -1663,35 +1663,35 @@ const oe = () => {
|
|
|
1663
1663
|
refreshTokenKey: o = "refreshToken",
|
|
1664
1664
|
accessTokenExpiresAtKey: i = "accessTokenExpiresAt",
|
|
1665
1665
|
sessionMapper: c
|
|
1666
|
-
} = n, a =
|
|
1667
|
-
|
|
1668
|
-
l.current = c ??
|
|
1666
|
+
} = n, a = Yt(), l = K(c ?? ke);
|
|
1667
|
+
P(() => {
|
|
1668
|
+
l.current = c ?? ke;
|
|
1669
1669
|
}, [c]);
|
|
1670
|
-
const [u, d] =
|
|
1670
|
+
const [u, d] = D({}), h = v(() => {
|
|
1671
1671
|
I(t), I(r), I(o), I(i);
|
|
1672
|
-
}, [i, o, r, t]),
|
|
1672
|
+
}, [i, o, r, t]), f = v(() => !!z(s, "boolean") && u.token === void 0, [u.token, s]), p = v(
|
|
1673
1673
|
(w) => {
|
|
1674
1674
|
H(s, w);
|
|
1675
1675
|
},
|
|
1676
1676
|
[s]
|
|
1677
|
-
), b =
|
|
1678
|
-
(w,
|
|
1677
|
+
), b = v(
|
|
1678
|
+
(w, T) => {
|
|
1679
1679
|
if (!w) return;
|
|
1680
|
-
const
|
|
1681
|
-
d(w), I(s), H(t, w.token), H(r,
|
|
1680
|
+
const k = z(r, "boolean"), O = T ?? (typeof k == "boolean" ? k : !1);
|
|
1681
|
+
d(w), I(s), H(t, w.token), H(r, O), typeof w.refreshToken == "string" && w.refreshToken.length ? H(o, w.refreshToken) : I(o), typeof w.accessTokenExpiresAt == "string" && w.accessTokenExpiresAt.length ? H(i, w.accessTokenExpiresAt) : I(i);
|
|
1682
1682
|
},
|
|
1683
1683
|
[i, s, o, r, t]
|
|
1684
|
-
), y =
|
|
1684
|
+
), y = v(async () => {
|
|
1685
1685
|
try {
|
|
1686
1686
|
await a.auth.signOut();
|
|
1687
1687
|
} catch (w) {
|
|
1688
1688
|
console.error(w);
|
|
1689
1689
|
}
|
|
1690
1690
|
d({}), h();
|
|
1691
|
-
}, [h, a.auth]), g =
|
|
1691
|
+
}, [h, a.auth]), g = v(async () => {
|
|
1692
1692
|
try {
|
|
1693
|
-
const { data: w, error:
|
|
1694
|
-
if (
|
|
1693
|
+
const { data: w, error: T } = await a.auth.getSession();
|
|
1694
|
+
if (T) throw T;
|
|
1695
1695
|
if (!w.session) {
|
|
1696
1696
|
d({}), h();
|
|
1697
1697
|
return;
|
|
@@ -1701,60 +1701,60 @@ const oe = () => {
|
|
|
1701
1701
|
console.error(w), await y();
|
|
1702
1702
|
}
|
|
1703
1703
|
}, [h, b, y, a.auth]);
|
|
1704
|
-
|
|
1704
|
+
P(() => {
|
|
1705
1705
|
let w = !0;
|
|
1706
1706
|
(async () => {
|
|
1707
1707
|
w && await g();
|
|
1708
1708
|
})();
|
|
1709
|
-
const { data:
|
|
1709
|
+
const { data: k } = a.auth.onAuthStateChange((O, j) => {
|
|
1710
1710
|
if (w) {
|
|
1711
|
-
if (!
|
|
1711
|
+
if (!j) {
|
|
1712
1712
|
d({}), h();
|
|
1713
1713
|
return;
|
|
1714
1714
|
}
|
|
1715
|
-
b(l.current(
|
|
1715
|
+
b(l.current(j));
|
|
1716
1716
|
}
|
|
1717
1717
|
});
|
|
1718
1718
|
return () => {
|
|
1719
|
-
w = !1,
|
|
1719
|
+
w = !1, k.subscription.unsubscribe();
|
|
1720
1720
|
};
|
|
1721
1721
|
}, [h, b, g, a.auth]);
|
|
1722
|
-
const C =
|
|
1722
|
+
const C = q(() => ({
|
|
1723
1723
|
account: u,
|
|
1724
1724
|
logUser: b,
|
|
1725
1725
|
logoutUser: y,
|
|
1726
1726
|
logUserFromLocal: g,
|
|
1727
|
-
isInGuestMode:
|
|
1728
|
-
setGuestMode:
|
|
1727
|
+
isInGuestMode: f,
|
|
1728
|
+
setGuestMode: p
|
|
1729
1729
|
}), [
|
|
1730
1730
|
u,
|
|
1731
1731
|
b,
|
|
1732
1732
|
y,
|
|
1733
1733
|
g,
|
|
1734
|
-
|
|
1735
|
-
|
|
1734
|
+
f,
|
|
1735
|
+
p
|
|
1736
1736
|
]);
|
|
1737
1737
|
return /* @__PURE__ */ m(me.Provider, { value: C, children: e });
|
|
1738
|
-
},
|
|
1739
|
-
const { children: e, supabase: s, queryClient: t } = n, [r] =
|
|
1738
|
+
}, Xs = (n) => {
|
|
1739
|
+
const { children: e, supabase: s, queryClient: t } = n, [r] = D(Ce), o = t ?? r;
|
|
1740
1740
|
return /* @__PURE__ */ m(Qe.Provider, { value: { client: s }, children: /* @__PURE__ */ m(Pe, { client: o, children: e }) });
|
|
1741
|
-
},
|
|
1741
|
+
}, Be = X({}), Zs = (n) => {
|
|
1742
1742
|
const { children: e, location: s, navigate: t, linkComponent: r, searchComponent: o } = n;
|
|
1743
1743
|
return /* @__PURE__ */ m(
|
|
1744
|
-
|
|
1744
|
+
Be.Provider,
|
|
1745
1745
|
{
|
|
1746
1746
|
value: { location: s, navigate: t, linkComponent: r, searchComponent: o },
|
|
1747
1747
|
children: e
|
|
1748
1748
|
}
|
|
1749
1749
|
);
|
|
1750
1750
|
}, ie = () => {
|
|
1751
|
-
const n =
|
|
1751
|
+
const n = G(Be);
|
|
1752
1752
|
if (n === void 0 || Object.keys(n).length === 0)
|
|
1753
1753
|
throw new Error(
|
|
1754
1754
|
"Config provider has not been set. This step is required and cannot be skipped."
|
|
1755
1755
|
);
|
|
1756
1756
|
return n;
|
|
1757
|
-
},
|
|
1757
|
+
}, Xt = {
|
|
1758
1758
|
addChildItem: () => {
|
|
1759
1759
|
},
|
|
1760
1760
|
removeChildItem: () => {
|
|
@@ -1762,27 +1762,27 @@ const oe = () => {
|
|
|
1762
1762
|
clearDynamicItems: () => {
|
|
1763
1763
|
},
|
|
1764
1764
|
dynamicItems: {}
|
|
1765
|
-
},
|
|
1766
|
-
|
|
1767
|
-
),
|
|
1768
|
-
const { children: e } = n, [s, t] =
|
|
1765
|
+
}, He = X(
|
|
1766
|
+
Xt
|
|
1767
|
+
), en = (n) => {
|
|
1768
|
+
const { children: e } = n, [s, t] = D({}), r = v(
|
|
1769
1769
|
(a, l) => t((u) => ({
|
|
1770
1770
|
...u,
|
|
1771
1771
|
[a]: [...u[a] ?? [], l]
|
|
1772
1772
|
})),
|
|
1773
1773
|
[]
|
|
1774
|
-
), o =
|
|
1774
|
+
), o = v(
|
|
1775
1775
|
(a, l) => t((u) => ({
|
|
1776
1776
|
...u,
|
|
1777
1777
|
[a]: (u[a] ?? []).filter((d, h) => h !== l)
|
|
1778
1778
|
})),
|
|
1779
1779
|
[]
|
|
1780
|
-
), i =
|
|
1780
|
+
), i = v((a) => {
|
|
1781
1781
|
t(a ? (l) => ({
|
|
1782
1782
|
...l,
|
|
1783
1783
|
[a]: []
|
|
1784
1784
|
}) : {});
|
|
1785
|
-
}, []), c =
|
|
1785
|
+
}, []), c = q(
|
|
1786
1786
|
() => ({
|
|
1787
1787
|
dynamicItems: s,
|
|
1788
1788
|
addChildItem: r,
|
|
@@ -1792,36 +1792,57 @@ const oe = () => {
|
|
|
1792
1792
|
[s, i, o, r]
|
|
1793
1793
|
);
|
|
1794
1794
|
return /* @__PURE__ */ m(
|
|
1795
|
-
|
|
1795
|
+
He.Provider,
|
|
1796
1796
|
{
|
|
1797
1797
|
value: c,
|
|
1798
1798
|
children: e
|
|
1799
1799
|
}
|
|
1800
1800
|
);
|
|
1801
|
-
},
|
|
1802
|
-
|
|
1801
|
+
}, Zt = () => G(He), qe = X(void 0), tn = ({
|
|
1802
|
+
children: n
|
|
1803
|
+
}) => {
|
|
1804
|
+
const [e, s] = D(null), t = v(
|
|
1805
|
+
(o) => s(o),
|
|
1806
|
+
[]
|
|
1807
|
+
), r = q(
|
|
1808
|
+
() => ({ centerAction: e, setCenterAction: t }),
|
|
1809
|
+
[e, t]
|
|
1810
|
+
);
|
|
1811
|
+
return /* @__PURE__ */ m(qe.Provider, { value: r, children: n });
|
|
1812
|
+
}, es = (n) => n ? typeof n == "function" ? { onClick: () => n() } : n : null, Ve = () => G(qe), ts = () => {
|
|
1813
|
+
const n = Ve();
|
|
1814
|
+
if (!n)
|
|
1815
|
+
throw new Error(
|
|
1816
|
+
"useBottomNavAction must be used within BottomNavActionProvider"
|
|
1817
|
+
);
|
|
1818
|
+
return n;
|
|
1819
|
+
}, sn = (n) => {
|
|
1820
|
+
const { setCenterAction: e } = ts();
|
|
1821
|
+
P(() => (e(es(n)), () => e(null)), [n, e]);
|
|
1822
|
+
};
|
|
1823
|
+
function nn(n) {
|
|
1803
1824
|
var y;
|
|
1804
|
-
const { t: e } =
|
|
1805
|
-
var
|
|
1806
|
-
const C = g.auth, w = !!((
|
|
1825
|
+
const { t: e } = E(), { open: s, onClose: t, menuMap: r, logo: o } = n, i = je(), { dynamicItems: c } = Zt(), { linkComponent: a, location: l } = ie(), u = a, d = q(() => r.filter((g) => {
|
|
1826
|
+
var T;
|
|
1827
|
+
const C = g.auth, w = !!((T = i == null ? void 0 : i.account) != null && T.email);
|
|
1807
1828
|
return C == null || C && w || !C && !w;
|
|
1808
|
-
}), [(y = i == null ? void 0 : i.account) == null ? void 0 : y.email, r]), h =
|
|
1829
|
+
}), [(y = i == null ? void 0 : i.account) == null ? void 0 : y.email, r]), h = v(
|
|
1809
1830
|
(g) => {
|
|
1810
1831
|
g.key === "Escape" && s && t();
|
|
1811
1832
|
},
|
|
1812
1833
|
[t, s]
|
|
1813
1834
|
);
|
|
1814
|
-
|
|
1835
|
+
P(() => (document.addEventListener("keydown", h), () => {
|
|
1815
1836
|
document.removeEventListener("keydown", h);
|
|
1816
1837
|
}), [h]);
|
|
1817
|
-
const
|
|
1838
|
+
const f = v(
|
|
1818
1839
|
(g, C) => C ? g === `${l.pathname}${l.search}` : g === l.pathname,
|
|
1819
1840
|
[l.pathname, l.search]
|
|
1820
|
-
),
|
|
1841
|
+
), p = v(
|
|
1821
1842
|
(g) => /* @__PURE__ */ m(
|
|
1822
1843
|
"li",
|
|
1823
1844
|
{
|
|
1824
|
-
className: `drawer-list-item-child ${
|
|
1845
|
+
className: `drawer-list-item-child ${f(g.path, !0) ? "active" : ""} animated`,
|
|
1825
1846
|
children: g.path ? /* @__PURE__ */ m(
|
|
1826
1847
|
u,
|
|
1827
1848
|
{
|
|
@@ -1837,14 +1858,14 @@ function Ys(n) {
|
|
|
1837
1858
|
},
|
|
1838
1859
|
g.id
|
|
1839
1860
|
),
|
|
1840
|
-
[u, s, e,
|
|
1841
|
-
), b =
|
|
1842
|
-
const w = g.page ?? String(C),
|
|
1861
|
+
[u, s, e, f]
|
|
1862
|
+
), b = q(() => d.map((g, C) => {
|
|
1863
|
+
const w = g.page ?? String(C), T = `drawer-list-item ${f(g.path) ? "active" : ""} animated`;
|
|
1843
1864
|
if (g.type === "divider")
|
|
1844
|
-
return /* @__PURE__ */ m("li", { className:
|
|
1845
|
-
const
|
|
1846
|
-
return /* @__PURE__ */
|
|
1847
|
-
/* @__PURE__ */
|
|
1865
|
+
return /* @__PURE__ */ m("li", { className: T, children: /* @__PURE__ */ m("hr", { className: "drawer-divider" }) }, w);
|
|
1866
|
+
const k = g.children ?? (g.page && c ? c[g.page] : null);
|
|
1867
|
+
return /* @__PURE__ */ N("li", { className: T, children: [
|
|
1868
|
+
/* @__PURE__ */ N(
|
|
1848
1869
|
u,
|
|
1849
1870
|
{
|
|
1850
1871
|
tabIndex: s ? 0 : -1,
|
|
@@ -1859,9 +1880,9 @@ function Ys(n) {
|
|
|
1859
1880
|
]
|
|
1860
1881
|
}
|
|
1861
1882
|
),
|
|
1862
|
-
|
|
1883
|
+
k && /* @__PURE__ */ m("ul", { className: "drawer-children-list", children: k.map(p) })
|
|
1863
1884
|
] }, w);
|
|
1864
|
-
}), [u, c,
|
|
1885
|
+
}), [u, c, f, s, d, p, e]);
|
|
1865
1886
|
return /* @__PURE__ */ m(
|
|
1866
1887
|
"div",
|
|
1867
1888
|
{
|
|
@@ -1869,8 +1890,8 @@ function Ys(n) {
|
|
|
1869
1890
|
"aria-disabled": !s,
|
|
1870
1891
|
className: `${s ? "opened" : "closed"} drawer-backdrop`,
|
|
1871
1892
|
onClick: () => t(),
|
|
1872
|
-
children: /* @__PURE__ */
|
|
1873
|
-
/* @__PURE__ */
|
|
1893
|
+
children: /* @__PURE__ */ N("aside", { className: `${s ? "opened" : "closed"} drawer animated`, children: [
|
|
1894
|
+
/* @__PURE__ */ N("div", { className: "drawer-header-container", children: [
|
|
1874
1895
|
o,
|
|
1875
1896
|
/* @__PURE__ */ m("h2", { className: "drawer-header poppins", children: e("_pages:home.appName") })
|
|
1876
1897
|
] }),
|
|
@@ -1879,11 +1900,11 @@ function Ys(n) {
|
|
|
1879
1900
|
}
|
|
1880
1901
|
);
|
|
1881
1902
|
}
|
|
1882
|
-
const
|
|
1883
|
-
var pe,
|
|
1884
|
-
function
|
|
1885
|
-
if (
|
|
1886
|
-
|
|
1903
|
+
const W = ({ icon: n, ...e }) => /* @__PURE__ */ m(ct, { icon: /* @__PURE__ */ m(U, { icon: n }), ...e });
|
|
1904
|
+
var pe, Ee;
|
|
1905
|
+
function ss() {
|
|
1906
|
+
if (Ee) return pe;
|
|
1907
|
+
Ee = 1;
|
|
1887
1908
|
const n = (c, a = "local", l = void 0) => {
|
|
1888
1909
|
if (a === "local") {
|
|
1889
1910
|
if (localStorage.getItem(c) !== void 0 && localStorage.getItem(c) !== "undefined" && localStorage.getItem(c) !== null)
|
|
@@ -1912,8 +1933,8 @@ function Xt() {
|
|
|
1912
1933
|
}), r = (c, a, l, u = "/", d = "Lax") => {
|
|
1913
1934
|
var h = /* @__PURE__ */ new Date();
|
|
1914
1935
|
h.setTime(h.getTime() + a * 24 * 60 * 60 * 1e3);
|
|
1915
|
-
const
|
|
1916
|
-
document.cookie = `${c}=${l || ""}${
|
|
1936
|
+
const f = "; expires=" + h.toUTCString();
|
|
1937
|
+
document.cookie = `${c}=${l || ""}${f};path=${u};SameSite=${d}`;
|
|
1917
1938
|
}, o = (c) => {
|
|
1918
1939
|
const a = `${c}=`, u = decodeURIComponent(document.cookie).split(";");
|
|
1919
1940
|
for (let d = 0; d < u.length; d += 1) {
|
|
@@ -1935,13 +1956,13 @@ function Xt() {
|
|
|
1935
1956
|
validation: n
|
|
1936
1957
|
}, pe;
|
|
1937
1958
|
}
|
|
1938
|
-
var
|
|
1939
|
-
function
|
|
1940
|
-
const { t: n, language: e } =
|
|
1941
|
-
return { timeAge:
|
|
1959
|
+
var ns = ss();
|
|
1960
|
+
function rn() {
|
|
1961
|
+
const { t: n, language: e } = E();
|
|
1962
|
+
return { timeAge: v(
|
|
1942
1963
|
(t) => {
|
|
1943
|
-
const o = /* @__PURE__ */ new Date() - t, i = Math.floor(o / (1e3 * 60)), c = Math.floor(i / 60), a = e === "es", l = n("_accessibility:labels.ago"), u = n("_accessibility:labels.minute"), d = n("_accessibility:labels.minutes"), h = n("_accessibility:labels.hour"),
|
|
1944
|
-
return o < 1e3 * 60 ? b : i < 60 ? `${a ? l : ""} ${i} ${i === 1 ? u : d} ${a ? "" : l}` : c < 24 ? `${a ? l : ""} ${c} ${c === 1 ? h :
|
|
1964
|
+
const o = /* @__PURE__ */ new Date() - t, i = Math.floor(o / (1e3 * 60)), c = Math.floor(i / 60), a = e === "es", l = n("_accessibility:labels.ago"), u = n("_accessibility:labels.minute"), d = n("_accessibility:labels.minutes"), h = n("_accessibility:labels.hour"), f = n("_accessibility:labels.hours"), p = n("_accessibility:labels.yesterday"), b = n("_accessibility:labels.justNow");
|
|
1965
|
+
return o < 1e3 * 60 ? b : i < 60 ? `${a ? l : ""} ${i} ${i === 1 ? u : d} ${a ? "" : l}` : c < 24 ? `${a ? l : ""} ${c} ${c === 1 ? h : f} ${a ? "" : l}` : c < 48 ? p : t.toLocaleDateString(navigator.language || "es-ES", {
|
|
1945
1966
|
day: "2-digit",
|
|
1946
1967
|
month: "2-digit",
|
|
1947
1968
|
year: "numeric"
|
|
@@ -1950,27 +1971,27 @@ function Xs() {
|
|
|
1950
1971
|
[n, e]
|
|
1951
1972
|
) };
|
|
1952
1973
|
}
|
|
1953
|
-
const
|
|
1954
|
-
const { showSuccessNotification: e } = oe(), { mutationFn: s, onError: t, onSuccess: r, onSuccessMessage: o } = n, [i, c] =
|
|
1974
|
+
const ze = (n) => {
|
|
1975
|
+
const { showSuccessNotification: e } = oe(), { mutationFn: s, onError: t, onSuccess: r, onSuccessMessage: o } = n, [i, c] = D([]), { open: a, handleClose: l, handleOpen: u } = We(), d = () => {
|
|
1955
1976
|
l(), c([]);
|
|
1956
|
-
}, h = async (
|
|
1957
|
-
c(
|
|
1958
|
-
},
|
|
1977
|
+
}, h = async (p) => {
|
|
1978
|
+
c(p), u();
|
|
1979
|
+
}, f = re({
|
|
1959
1980
|
mutationFn: () => s(
|
|
1960
1981
|
Array.isArray(i) ? i : [i]
|
|
1961
1982
|
),
|
|
1962
|
-
onError: (
|
|
1963
|
-
console.error(
|
|
1983
|
+
onError: (p) => {
|
|
1984
|
+
console.error(p), t && t(p), d();
|
|
1964
1985
|
},
|
|
1965
|
-
onSuccess: async (
|
|
1966
|
-
r && r(
|
|
1986
|
+
onSuccess: async (p) => {
|
|
1987
|
+
r && r(p), e({
|
|
1967
1988
|
message: o
|
|
1968
1989
|
}), d();
|
|
1969
1990
|
}
|
|
1970
1991
|
});
|
|
1971
|
-
return { open: a, onClick: h, close: d, dialogFn:
|
|
1972
|
-
},
|
|
1973
|
-
const { t: e } =
|
|
1992
|
+
return { open: a, onClick: h, close: d, dialogFn: f, isLoading: f.isPending };
|
|
1993
|
+
}, on = (n) => {
|
|
1994
|
+
const { t: e } = E(), {
|
|
1974
1995
|
showStackNotifications: s,
|
|
1975
1996
|
showSuccessNotification: t,
|
|
1976
1997
|
showErrorNotification: r
|
|
@@ -1982,89 +2003,89 @@ const Be = (n) => {
|
|
|
1982
2003
|
onSuccess: u,
|
|
1983
2004
|
queryKey: d,
|
|
1984
2005
|
onSuccessMessage: h
|
|
1985
|
-
} = n, { control:
|
|
2006
|
+
} = n, { control: f, handleSubmit: p, reset: b, setError: y, getValues: g, setValue: C } = Oe({
|
|
1986
2007
|
defaultValues: i
|
|
1987
|
-
}), w =
|
|
1988
|
-
const
|
|
1989
|
-
if (!(
|
|
2008
|
+
}), w = K(null), T = v(() => {
|
|
2009
|
+
const S = document.activeElement;
|
|
2010
|
+
if (!(S instanceof HTMLElement)) {
|
|
1990
2011
|
w.current = null;
|
|
1991
2012
|
return;
|
|
1992
2013
|
}
|
|
1993
|
-
w.current =
|
|
1994
|
-
}, []),
|
|
1995
|
-
(
|
|
1996
|
-
const
|
|
1997
|
-
if (!_) return
|
|
1998
|
-
let
|
|
1999
|
-
return
|
|
2000
|
-
const
|
|
2001
|
-
(
|
|
2002
|
-
}),
|
|
2014
|
+
w.current = S.closest("form");
|
|
2015
|
+
}, []), k = v(
|
|
2016
|
+
(S) => {
|
|
2017
|
+
const L = S == null ? void 0 : S.errors, R = [], _ = w.current;
|
|
2018
|
+
if (!_) return R;
|
|
2019
|
+
let Q = !1;
|
|
2020
|
+
return L && L.forEach(([le, ee]) => {
|
|
2021
|
+
const B = _.querySelector(`[name="${le}"]`);
|
|
2022
|
+
(B instanceof HTMLInputElement || B instanceof HTMLTextAreaElement || B instanceof HTMLSelectElement) && (Q || (B.focus(), Q = !0), B.classList.add("error"), R.push(e(`_entities:${d}.${le}.${ee}`)));
|
|
2023
|
+
}), R;
|
|
2003
2024
|
},
|
|
2004
2025
|
[e, d]
|
|
2005
|
-
),
|
|
2006
|
-
const
|
|
2007
|
-
if (!
|
|
2008
|
-
|
|
2009
|
-
|
|
2026
|
+
), O = v(() => {
|
|
2027
|
+
const S = w.current;
|
|
2028
|
+
if (!S) return;
|
|
2029
|
+
S.querySelectorAll("input, textarea, select").forEach((R) => {
|
|
2030
|
+
R.classList.remove("error");
|
|
2010
2031
|
});
|
|
2011
|
-
}, []),
|
|
2032
|
+
}, []), j = re(
|
|
2012
2033
|
{
|
|
2013
2034
|
mutationFn: c,
|
|
2014
|
-
onError: (
|
|
2015
|
-
console.error(
|
|
2016
|
-
const
|
|
2017
|
-
if (l) l(
|
|
2018
|
-
else if (Se(
|
|
2019
|
-
const
|
|
2035
|
+
onError: (S) => {
|
|
2036
|
+
console.error(S);
|
|
2037
|
+
const L = S;
|
|
2038
|
+
if (l) l(S);
|
|
2039
|
+
else if (Se(L)) {
|
|
2040
|
+
const R = k(L);
|
|
2020
2041
|
s(
|
|
2021
|
-
|
|
2042
|
+
R.map(
|
|
2022
2043
|
(_) => ({
|
|
2023
2044
|
message: _,
|
|
2024
|
-
type:
|
|
2045
|
+
type: F.error
|
|
2025
2046
|
})
|
|
2026
2047
|
)
|
|
2027
2048
|
);
|
|
2028
|
-
} else if (
|
|
2029
|
-
const
|
|
2030
|
-
r({ message: _ ||
|
|
2049
|
+
} else if (ve(L)) {
|
|
2050
|
+
const R = L.message || e("_accessibility:errors.500"), _ = e(`_accessibility:errors.${L.status}`);
|
|
2051
|
+
r({ message: _ || R });
|
|
2031
2052
|
} else
|
|
2032
2053
|
r({ message: e("_accessibility:errors.500") });
|
|
2033
2054
|
},
|
|
2034
|
-
onSuccess: async (
|
|
2035
|
-
await o.invalidateQueries({ queryKey: d }), u && u(
|
|
2055
|
+
onSuccess: async (S) => {
|
|
2056
|
+
await o.invalidateQueries({ queryKey: d }), u && u(S), h && t({
|
|
2036
2057
|
message: h
|
|
2037
2058
|
});
|
|
2038
2059
|
}
|
|
2039
2060
|
}
|
|
2040
2061
|
);
|
|
2041
2062
|
return {
|
|
2042
|
-
control:
|
|
2063
|
+
control: f,
|
|
2043
2064
|
getValues: g,
|
|
2044
2065
|
setValue: C,
|
|
2045
|
-
handleSubmit:
|
|
2046
|
-
onSubmit: (
|
|
2047
|
-
|
|
2048
|
-
a ? a(
|
|
2066
|
+
handleSubmit: p,
|
|
2067
|
+
onSubmit: (S) => {
|
|
2068
|
+
T(), O(), j.mutate(
|
|
2069
|
+
a ? a(S) : S
|
|
2049
2070
|
);
|
|
2050
2071
|
},
|
|
2051
2072
|
reset: b,
|
|
2052
2073
|
setError: y,
|
|
2053
|
-
isLoading:
|
|
2074
|
+
isLoading: j.isPending
|
|
2054
2075
|
};
|
|
2055
|
-
},
|
|
2056
|
-
const { t: e } =
|
|
2076
|
+
}, rs = (n) => {
|
|
2077
|
+
const { t: e } = E(), {
|
|
2057
2078
|
onClick: s,
|
|
2058
|
-
icon: t =
|
|
2079
|
+
icon: t = bt,
|
|
2059
2080
|
sticky: r = !0,
|
|
2060
2081
|
hidden: o = !1,
|
|
2061
2082
|
multiple: i = !0,
|
|
2062
2083
|
disabled: c = !1,
|
|
2063
|
-
id: a =
|
|
2084
|
+
id: a = Y.Delete,
|
|
2064
2085
|
tooltip: l = e("_pages:common.actions.delete.text")
|
|
2065
2086
|
} = n;
|
|
2066
2087
|
return {
|
|
2067
|
-
action:
|
|
2088
|
+
action: v(
|
|
2068
2089
|
(d) => ({
|
|
2069
2090
|
id: a,
|
|
2070
2091
|
sticky: r,
|
|
@@ -2073,25 +2094,25 @@ const Be = (n) => {
|
|
|
2073
2094
|
onClick: () => s([d == null ? void 0 : d.id]),
|
|
2074
2095
|
hidden: !!d.deletedAt || o,
|
|
2075
2096
|
disabled: !!d.deletedAt || c,
|
|
2076
|
-
icon: /* @__PURE__ */ m(
|
|
2077
|
-
onMultipleClick: (h) => s(h.map((
|
|
2097
|
+
icon: /* @__PURE__ */ m(U, { className: "text-bg-error", icon: t }),
|
|
2098
|
+
onMultipleClick: (h) => s(h.map((f) => f.id))
|
|
2078
2099
|
}),
|
|
2079
2100
|
[c, o, t, a, i, s, r, l]
|
|
2080
2101
|
)
|
|
2081
2102
|
};
|
|
2082
|
-
},
|
|
2083
|
-
const { t: e } =
|
|
2103
|
+
}, os = (n) => {
|
|
2104
|
+
const { t: e } = E(), {
|
|
2084
2105
|
onClick: s,
|
|
2085
2106
|
sticky: t = !0,
|
|
2086
2107
|
hidden: r = !1,
|
|
2087
2108
|
disabled: o = !1,
|
|
2088
2109
|
multiple: i = !1,
|
|
2089
2110
|
icon: c = Re,
|
|
2090
|
-
id: a =
|
|
2111
|
+
id: a = Y.Restore,
|
|
2091
2112
|
tooltip: l = e("_pages:common.actions.restore.text")
|
|
2092
2113
|
} = n;
|
|
2093
2114
|
return {
|
|
2094
|
-
action:
|
|
2115
|
+
action: v(
|
|
2095
2116
|
(d) => ({
|
|
2096
2117
|
id: a,
|
|
2097
2118
|
sticky: t,
|
|
@@ -2100,24 +2121,24 @@ const Be = (n) => {
|
|
|
2100
2121
|
onClick: () => s([d == null ? void 0 : d.id]),
|
|
2101
2122
|
hidden: !d.deletedAt || r,
|
|
2102
2123
|
disabled: !d.deletedAt || o,
|
|
2103
|
-
icon: /* @__PURE__ */ m(
|
|
2104
|
-
onMultipleClick: (h) => s(h.map((
|
|
2124
|
+
icon: /* @__PURE__ */ m(U, { className: "text-bg-error", icon: c }),
|
|
2125
|
+
onMultipleClick: (h) => s(h.map((f) => f.id))
|
|
2105
2126
|
}),
|
|
2106
2127
|
[o, r, c, a, i, s, t, l]
|
|
2107
2128
|
)
|
|
2108
2129
|
};
|
|
2109
|
-
},
|
|
2110
|
-
const { t: e } =
|
|
2130
|
+
}, an = (n) => {
|
|
2131
|
+
const { t: e } = E(), {
|
|
2111
2132
|
onClick: s,
|
|
2112
2133
|
hidden: t = !1,
|
|
2113
2134
|
sticky: r = !0,
|
|
2114
2135
|
disabled: o = !1,
|
|
2115
|
-
id: i =
|
|
2116
|
-
icon: c =
|
|
2136
|
+
id: i = Y.Edit,
|
|
2137
|
+
icon: c = yt,
|
|
2117
2138
|
tooltip: a = e("_pages:common.actions.edit.text")
|
|
2118
2139
|
} = n;
|
|
2119
2140
|
return {
|
|
2120
|
-
action:
|
|
2141
|
+
action: v(
|
|
2121
2142
|
(u) => ({
|
|
2122
2143
|
id: i,
|
|
2123
2144
|
sticky: r,
|
|
@@ -2125,31 +2146,31 @@ const Be = (n) => {
|
|
|
2125
2146
|
onClick: () => s(u == null ? void 0 : u.id),
|
|
2126
2147
|
hidden: !!u.deletedAt || t,
|
|
2127
2148
|
disabled: !!u.deletedAt || o,
|
|
2128
|
-
icon: /* @__PURE__ */ m(
|
|
2149
|
+
icon: /* @__PURE__ */ m(U, { className: "primary", icon: c })
|
|
2129
2150
|
}),
|
|
2130
2151
|
[o, t, c, i, s, r, a]
|
|
2131
2152
|
)
|
|
2132
2153
|
};
|
|
2133
2154
|
};
|
|
2134
|
-
var
|
|
2135
|
-
const
|
|
2136
|
-
const { t: e } =
|
|
2155
|
+
var Y = /* @__PURE__ */ ((n) => (n.Add = "add", n.Edit = "edit", n.Delete = "delete", n.Restore = "restore", n.Refresh = "refresh", n.Export = "export", n.Import = "import", n))(Y || {});
|
|
2156
|
+
const is = (n) => {
|
|
2157
|
+
const { t: e } = E(), {
|
|
2137
2158
|
onClick: s,
|
|
2138
2159
|
hidden: t = !1,
|
|
2139
2160
|
disabled: r = !1,
|
|
2140
2161
|
isLoading: o = !1
|
|
2141
2162
|
} = n;
|
|
2142
2163
|
return {
|
|
2143
|
-
action:
|
|
2164
|
+
action: v(
|
|
2144
2165
|
() => ({
|
|
2145
|
-
id:
|
|
2166
|
+
id: Y.Export,
|
|
2146
2167
|
hidden: t,
|
|
2147
2168
|
disabled: r,
|
|
2148
2169
|
icon: /* @__PURE__ */ m(
|
|
2149
|
-
|
|
2170
|
+
U,
|
|
2150
2171
|
{
|
|
2151
2172
|
className: `${o ? "rotate" : ""}`,
|
|
2152
|
-
icon: o ? Ie :
|
|
2173
|
+
icon: o ? Ie : wt
|
|
2153
2174
|
}
|
|
2154
2175
|
),
|
|
2155
2176
|
tooltip: e("_pages:common.actions.export.text"),
|
|
@@ -2158,24 +2179,24 @@ const ss = (n) => {
|
|
|
2158
2179
|
[r, t, o, s, e]
|
|
2159
2180
|
)
|
|
2160
2181
|
};
|
|
2161
|
-
},
|
|
2162
|
-
const { t: e } =
|
|
2182
|
+
}, as = (n) => {
|
|
2183
|
+
const { t: e } = E(), {
|
|
2163
2184
|
onClick: s,
|
|
2164
2185
|
hidden: t = !1,
|
|
2165
2186
|
disabled: r = !1,
|
|
2166
2187
|
isLoading: o = !1
|
|
2167
2188
|
} = n;
|
|
2168
2189
|
return {
|
|
2169
|
-
action:
|
|
2190
|
+
action: v(
|
|
2170
2191
|
() => ({
|
|
2171
|
-
id:
|
|
2192
|
+
id: Y.Import,
|
|
2172
2193
|
hidden: t,
|
|
2173
2194
|
disabled: r,
|
|
2174
2195
|
icon: /* @__PURE__ */ m(
|
|
2175
|
-
|
|
2196
|
+
U,
|
|
2176
2197
|
{
|
|
2177
2198
|
className: `${o ? "rotate" : ""}`,
|
|
2178
|
-
icon: o ? Ie :
|
|
2199
|
+
icon: o ? Ie : St
|
|
2179
2200
|
}
|
|
2180
2201
|
),
|
|
2181
2202
|
tooltip: e("_pages:common.actions.import.text"),
|
|
@@ -2184,35 +2205,35 @@ const ss = (n) => {
|
|
|
2184
2205
|
[r, t, o, s, e]
|
|
2185
2206
|
)
|
|
2186
2207
|
};
|
|
2187
|
-
},
|
|
2188
|
-
const { queryKey: e, onSuccess: s, ...t } = n, r = Z(), { showStackNotifications: o } = oe(), { t: i } =
|
|
2208
|
+
}, cn = (n) => {
|
|
2209
|
+
const { queryKey: e, onSuccess: s, ...t } = n, r = Z(), { showStackNotifications: o } = oe(), { t: i } = E(), { open: c, onClick: a, close: l, dialogFn: u, isLoading: d } = ze({
|
|
2189
2210
|
onSuccessMessage: i("_pages:common.actions.delete.successMessage"),
|
|
2190
|
-
onError: (
|
|
2191
|
-
const
|
|
2192
|
-
if (Se(
|
|
2211
|
+
onError: (f) => {
|
|
2212
|
+
const p = f;
|
|
2213
|
+
if (Se(p))
|
|
2193
2214
|
o(
|
|
2194
|
-
|
|
2215
|
+
p.errors.map(
|
|
2195
2216
|
([b, y]) => ({
|
|
2196
2217
|
message: i(`_pages:${b}.errors.${y}`),
|
|
2197
|
-
type:
|
|
2218
|
+
type: F.error
|
|
2198
2219
|
})
|
|
2199
2220
|
)
|
|
2200
2221
|
);
|
|
2201
|
-
else if (
|
|
2202
|
-
const b =
|
|
2222
|
+
else if (ve(p)) {
|
|
2223
|
+
const b = p.message || i("_accessibility:errors.500"), y = i(`_accessibility:errors.${p.status}`);
|
|
2203
2224
|
o([
|
|
2204
2225
|
{
|
|
2205
2226
|
message: y || b,
|
|
2206
|
-
type:
|
|
2227
|
+
type: F.error
|
|
2207
2228
|
}
|
|
2208
2229
|
]);
|
|
2209
2230
|
}
|
|
2210
2231
|
},
|
|
2211
|
-
onSuccess: async (
|
|
2212
|
-
await r.invalidateQueries({ queryKey: e }), s && s(
|
|
2232
|
+
onSuccess: async (f) => {
|
|
2233
|
+
await r.invalidateQueries({ queryKey: e }), s && s(f);
|
|
2213
2234
|
},
|
|
2214
2235
|
...t
|
|
2215
|
-
}), { action: h } =
|
|
2236
|
+
}), { action: h } = rs({ onClick: a });
|
|
2216
2237
|
return {
|
|
2217
2238
|
onClick: a,
|
|
2218
2239
|
title: i("_pages:common.actions.delete.dialog.title"),
|
|
@@ -2222,10 +2243,10 @@ const ss = (n) => {
|
|
|
2222
2243
|
handleClose: l,
|
|
2223
2244
|
action: h
|
|
2224
2245
|
};
|
|
2225
|
-
},
|
|
2226
|
-
const [n, e] =
|
|
2246
|
+
}, We = () => {
|
|
2247
|
+
const [n, e] = D(!1);
|
|
2227
2248
|
return { open: n, setOpen: e, handleClose: () => e(!1), handleOpen: () => e(!0) };
|
|
2228
|
-
},
|
|
2249
|
+
}, Ge = (n) => {
|
|
2229
2250
|
const {
|
|
2230
2251
|
closeOnSubmit: e = !0,
|
|
2231
2252
|
defaultValues: s,
|
|
@@ -2239,133 +2260,133 @@ const ss = (n) => {
|
|
|
2239
2260
|
reinitializeOnOpen: u,
|
|
2240
2261
|
resetOnOpen: d,
|
|
2241
2262
|
title: h
|
|
2242
|
-
} = n, [
|
|
2263
|
+
} = n, [f, p] = D(), [b, y] = D(!1), g = K(!1), C = K(null), { open: w, handleClose: T, handleOpen: k } = We(), { control: O, handleSubmit: j, reset: S, setError: L, getValues: R, setValue: _ } = Oe({
|
|
2243
2264
|
defaultValues: s || {}
|
|
2244
2265
|
});
|
|
2245
|
-
|
|
2266
|
+
P(() => {
|
|
2246
2267
|
if (!w) {
|
|
2247
2268
|
g.current = !1, C.current = null;
|
|
2248
2269
|
return;
|
|
2249
2270
|
}
|
|
2250
2271
|
if (g.current) return;
|
|
2251
2272
|
if (g.current = !0, C.current) {
|
|
2252
|
-
|
|
2273
|
+
S(C.current), C.current = null;
|
|
2253
2274
|
return;
|
|
2254
2275
|
}
|
|
2255
2276
|
const $ = t;
|
|
2256
2277
|
if (u && $) {
|
|
2257
|
-
|
|
2278
|
+
S($(s || {}));
|
|
2258
2279
|
return;
|
|
2259
2280
|
}
|
|
2260
2281
|
if (u && s) {
|
|
2261
|
-
|
|
2282
|
+
S(s);
|
|
2262
2283
|
return;
|
|
2263
2284
|
}
|
|
2264
|
-
d &&
|
|
2265
|
-
}, [s, t, w, u,
|
|
2266
|
-
const
|
|
2267
|
-
|
|
2268
|
-
}, [
|
|
2285
|
+
d && S(s || {});
|
|
2286
|
+
}, [s, t, w, u, S, d]);
|
|
2287
|
+
const Q = v(() => {
|
|
2288
|
+
T(), S();
|
|
2289
|
+
}, [T, S]), le = v(
|
|
2269
2290
|
($) => {
|
|
2270
2291
|
let x, te;
|
|
2271
|
-
typeof $ == "number" || $ == null ? x = $ : (x = $.id, te = $.values),
|
|
2292
|
+
typeof $ == "number" || $ == null ? x = $ : (x = $.id, te = $.values), p(x), te ? w ? S(te) : C.current = te : C.current = null, w || k();
|
|
2272
2293
|
},
|
|
2273
|
-
[
|
|
2274
|
-
), ee =
|
|
2294
|
+
[k, w, S]
|
|
2295
|
+
), ee = v(
|
|
2275
2296
|
($) => {
|
|
2276
2297
|
const x = r;
|
|
2277
|
-
return x ? x($, { id:
|
|
2298
|
+
return x ? x($, { id: f }) : $;
|
|
2278
2299
|
},
|
|
2279
|
-
[r,
|
|
2280
|
-
),
|
|
2300
|
+
[r, f]
|
|
2301
|
+
), B = v(
|
|
2281
2302
|
async ($, x, te) => {
|
|
2282
2303
|
a && await a($, {
|
|
2283
|
-
close:
|
|
2284
|
-
id:
|
|
2304
|
+
close: Q,
|
|
2305
|
+
id: f,
|
|
2285
2306
|
phase: x,
|
|
2286
2307
|
values: te
|
|
2287
2308
|
});
|
|
2288
2309
|
},
|
|
2289
|
-
[
|
|
2290
|
-
),
|
|
2310
|
+
[Q, f, a]
|
|
2311
|
+
), Ye = v(async () => {
|
|
2291
2312
|
if (!i) return;
|
|
2292
|
-
const $ =
|
|
2313
|
+
const $ = R();
|
|
2293
2314
|
y(!0);
|
|
2294
2315
|
try {
|
|
2295
2316
|
const x = ee($);
|
|
2296
2317
|
await i(x, {
|
|
2297
|
-
close:
|
|
2298
|
-
id:
|
|
2318
|
+
close: Q,
|
|
2319
|
+
id: f,
|
|
2299
2320
|
values: $
|
|
2300
2321
|
});
|
|
2301
2322
|
} catch (x) {
|
|
2302
|
-
throw await
|
|
2323
|
+
throw await B(x, "apply", $).catch(() => {
|
|
2303
2324
|
}), x;
|
|
2304
2325
|
} finally {
|
|
2305
2326
|
y(!1);
|
|
2306
2327
|
}
|
|
2307
|
-
}, [
|
|
2308
|
-
const $ =
|
|
2328
|
+
}, [Q, R, B, f, ee, i]), Xe = v(async () => {
|
|
2329
|
+
const $ = R();
|
|
2309
2330
|
if (c) {
|
|
2310
2331
|
y(!0);
|
|
2311
2332
|
try {
|
|
2312
2333
|
await c();
|
|
2313
2334
|
} catch (x) {
|
|
2314
|
-
throw await
|
|
2335
|
+
throw await B(x, "clear", $).catch(() => {
|
|
2315
2336
|
}), x;
|
|
2316
2337
|
} finally {
|
|
2317
2338
|
y(!1);
|
|
2318
2339
|
}
|
|
2319
2340
|
}
|
|
2320
2341
|
try {
|
|
2321
|
-
|
|
2342
|
+
S(s || {});
|
|
2322
2343
|
} catch (x) {
|
|
2323
|
-
throw await
|
|
2344
|
+
throw await B(x, "clear", $).catch(() => {
|
|
2324
2345
|
}), x;
|
|
2325
2346
|
}
|
|
2326
|
-
}, [s,
|
|
2347
|
+
}, [s, R, B, c, S]), Ze = v(
|
|
2327
2348
|
async ($) => {
|
|
2328
2349
|
y(!0);
|
|
2329
2350
|
try {
|
|
2330
2351
|
const x = ee($);
|
|
2331
2352
|
l && await l(x, {
|
|
2332
|
-
close:
|
|
2333
|
-
id:
|
|
2353
|
+
close: Q,
|
|
2354
|
+
id: f,
|
|
2334
2355
|
values: $
|
|
2335
|
-
}), e &&
|
|
2356
|
+
}), e && Q();
|
|
2336
2357
|
} catch (x) {
|
|
2337
|
-
throw await
|
|
2358
|
+
throw await B(x, "submit", $).catch(() => {
|
|
2338
2359
|
}), x;
|
|
2339
2360
|
} finally {
|
|
2340
2361
|
y(!1);
|
|
2341
2362
|
}
|
|
2342
2363
|
},
|
|
2343
|
-
[
|
|
2364
|
+
[Q, e, B, f, ee, l]
|
|
2344
2365
|
);
|
|
2345
2366
|
return {
|
|
2346
2367
|
open: w,
|
|
2347
2368
|
mode: o,
|
|
2348
|
-
id:
|
|
2369
|
+
id: f,
|
|
2349
2370
|
openDialog: le,
|
|
2350
|
-
handleClose:
|
|
2351
|
-
control:
|
|
2352
|
-
getValues:
|
|
2371
|
+
handleClose: Q,
|
|
2372
|
+
control: O,
|
|
2373
|
+
getValues: R,
|
|
2353
2374
|
setValue: _,
|
|
2354
|
-
handleSubmit:
|
|
2355
|
-
onSubmit:
|
|
2356
|
-
reset:
|
|
2357
|
-
setError:
|
|
2375
|
+
handleSubmit: j,
|
|
2376
|
+
onSubmit: Ze,
|
|
2377
|
+
reset: S,
|
|
2378
|
+
setError: L,
|
|
2358
2379
|
title: h,
|
|
2359
2380
|
isSubmitting: b,
|
|
2360
|
-
onApply:
|
|
2361
|
-
onClear:
|
|
2381
|
+
onApply: Ye,
|
|
2382
|
+
onClear: Xe,
|
|
2362
2383
|
isLoading: b
|
|
2363
2384
|
};
|
|
2364
|
-
},
|
|
2385
|
+
}, ln = (n) => {
|
|
2365
2386
|
const e = Z(), { mutationFn: s, queryKey: t, onSuccess: r, onError: o, formToDto: i, ...c } = n, a = re({
|
|
2366
2387
|
mutationFn: s
|
|
2367
2388
|
});
|
|
2368
|
-
return
|
|
2389
|
+
return Ge({
|
|
2369
2390
|
...c,
|
|
2370
2391
|
mode: "entity",
|
|
2371
2392
|
formToDto: i,
|
|
@@ -2378,8 +2399,8 @@ const ss = (n) => {
|
|
|
2378
2399
|
}
|
|
2379
2400
|
}
|
|
2380
2401
|
});
|
|
2381
|
-
},
|
|
2382
|
-
const e = Z(), s =
|
|
2402
|
+
}, un = (n) => {
|
|
2403
|
+
const e = Z(), s = K(), t = K(), {
|
|
2383
2404
|
mutationFn: r,
|
|
2384
2405
|
queryKey: o,
|
|
2385
2406
|
onSuccess: i,
|
|
@@ -2389,74 +2410,74 @@ const ss = (n) => {
|
|
|
2389
2410
|
dtoToForm: u,
|
|
2390
2411
|
title: d,
|
|
2391
2412
|
...h
|
|
2392
|
-
} = n,
|
|
2393
|
-
|
|
2394
|
-
|
|
2413
|
+
} = n, f = K(u);
|
|
2414
|
+
P(() => {
|
|
2415
|
+
f.current = u;
|
|
2395
2416
|
}, [u]);
|
|
2396
|
-
const
|
|
2417
|
+
const p = re({
|
|
2397
2418
|
mutationFn: r
|
|
2398
|
-
}), b =
|
|
2419
|
+
}), b = Ge({
|
|
2399
2420
|
...h,
|
|
2400
2421
|
mode: "entity",
|
|
2401
2422
|
title: d,
|
|
2402
2423
|
onSubmit: async (w) => {
|
|
2403
2424
|
try {
|
|
2404
|
-
const
|
|
2405
|
-
o && await e.invalidateQueries({ queryKey: o }), i && await i(
|
|
2406
|
-
} catch (
|
|
2407
|
-
throw c && c(
|
|
2425
|
+
const T = await p.mutateAsync(w);
|
|
2426
|
+
o && await e.invalidateQueries({ queryKey: o }), i && await i(T);
|
|
2427
|
+
} catch (T) {
|
|
2428
|
+
throw c && c(T), T;
|
|
2408
2429
|
}
|
|
2409
2430
|
},
|
|
2410
2431
|
formToDto: (w) => {
|
|
2411
|
-
const
|
|
2412
|
-
return
|
|
2432
|
+
const T = a;
|
|
2433
|
+
return T ? T(w, s.current) : w;
|
|
2413
2434
|
}
|
|
2414
|
-
}), { reset: y } = b, C =
|
|
2435
|
+
}), { reset: y } = b, C = Lt({
|
|
2415
2436
|
queryFn: () => l(b.id),
|
|
2416
2437
|
queryKey: [...o || ["put-dialog", d], b.id],
|
|
2417
2438
|
enabled: b.open && !!b.id
|
|
2418
2439
|
});
|
|
2419
|
-
return
|
|
2440
|
+
return P(() => {
|
|
2420
2441
|
if (C.data && t.current !== C.data) {
|
|
2421
|
-
if (s.current = C.data, t.current = C.data,
|
|
2422
|
-
y(
|
|
2442
|
+
if (s.current = C.data, t.current = C.data, f.current && y) {
|
|
2443
|
+
y(f.current(C.data));
|
|
2423
2444
|
return;
|
|
2424
2445
|
}
|
|
2425
2446
|
y == null || y(C.data);
|
|
2426
2447
|
}
|
|
2427
2448
|
}, [C.data, y]), {
|
|
2428
2449
|
...b,
|
|
2429
|
-
isLoading: b.isLoading ||
|
|
2450
|
+
isLoading: b.isLoading || p.isPending || C.isFetching || C.isLoading
|
|
2430
2451
|
};
|
|
2431
|
-
},
|
|
2432
|
-
const { queryKey: e, onSuccess: s, ...t } = n, r = Z(), { showStackNotifications: o } = oe(), { t: i } =
|
|
2452
|
+
}, dn = (n) => {
|
|
2453
|
+
const { queryKey: e, onSuccess: s, ...t } = n, r = Z(), { showStackNotifications: o } = oe(), { t: i } = E(), { open: c, onClick: a, close: l, dialogFn: u, isLoading: d } = ze({
|
|
2433
2454
|
onSuccessMessage: i("_pages:common.actions.restore.successMessage"),
|
|
2434
|
-
onError: (
|
|
2435
|
-
const
|
|
2436
|
-
if (Se(
|
|
2455
|
+
onError: (f) => {
|
|
2456
|
+
const p = f;
|
|
2457
|
+
if (Se(p))
|
|
2437
2458
|
o(
|
|
2438
|
-
|
|
2459
|
+
p.errors.map(
|
|
2439
2460
|
([b, y]) => ({
|
|
2440
2461
|
message: i(`_pages:${b}.errors.${y}`),
|
|
2441
|
-
type:
|
|
2462
|
+
type: F.error
|
|
2442
2463
|
})
|
|
2443
2464
|
)
|
|
2444
2465
|
);
|
|
2445
|
-
else if (
|
|
2446
|
-
const b =
|
|
2466
|
+
else if (ve(p)) {
|
|
2467
|
+
const b = p.message || i("_accessibility:errors.500"), y = i(`_accessibility:errors.${p.status}`);
|
|
2447
2468
|
o([
|
|
2448
2469
|
{
|
|
2449
2470
|
message: y || b,
|
|
2450
|
-
type:
|
|
2471
|
+
type: F.error
|
|
2451
2472
|
}
|
|
2452
2473
|
]);
|
|
2453
2474
|
}
|
|
2454
2475
|
},
|
|
2455
|
-
onSuccess: async (
|
|
2456
|
-
await r.invalidateQueries({ queryKey: e }), s && s(
|
|
2476
|
+
onSuccess: async (f) => {
|
|
2477
|
+
await r.invalidateQueries({ queryKey: e }), s && s(f);
|
|
2457
2478
|
},
|
|
2458
2479
|
...t
|
|
2459
|
-
}), { action: h } =
|
|
2480
|
+
}), { action: h } = os({ onClick: a });
|
|
2460
2481
|
return {
|
|
2461
2482
|
onClick: a,
|
|
2462
2483
|
title: i("_pages:common.actions.restore.dialog.title"),
|
|
@@ -2467,15 +2488,15 @@ const ss = (n) => {
|
|
|
2467
2488
|
action: h
|
|
2468
2489
|
};
|
|
2469
2490
|
};
|
|
2470
|
-
function
|
|
2471
|
-
const { t: e } =
|
|
2491
|
+
function mn(n) {
|
|
2492
|
+
const { t: e } = E(), s = Z(), {
|
|
2472
2493
|
queryKey: t,
|
|
2473
2494
|
mutationFn: r,
|
|
2474
2495
|
entity: o,
|
|
2475
2496
|
fileProcessor: i,
|
|
2476
2497
|
renderCustomPreview: c,
|
|
2477
2498
|
onError: a
|
|
2478
|
-
} = n, [l, u] =
|
|
2499
|
+
} = n, [l, u] = D(!1), [d, h] = D(null), [f, p] = D(!1), b = re({
|
|
2479
2500
|
mutationFn: r,
|
|
2480
2501
|
onError: (g) => {
|
|
2481
2502
|
console.error(g), a == null || a(g);
|
|
@@ -2483,7 +2504,7 @@ function on(n) {
|
|
|
2483
2504
|
onSuccess: async () => {
|
|
2484
2505
|
await s.invalidateQueries({ queryKey: t });
|
|
2485
2506
|
}
|
|
2486
|
-
}), { action: y } =
|
|
2507
|
+
}), { action: y } = as({
|
|
2487
2508
|
onClick: () => u(!0)
|
|
2488
2509
|
});
|
|
2489
2510
|
return {
|
|
@@ -2492,8 +2513,8 @@ function on(n) {
|
|
|
2492
2513
|
try {
|
|
2493
2514
|
await b.mutateAsync({
|
|
2494
2515
|
items: d,
|
|
2495
|
-
override:
|
|
2496
|
-
}), u(!1), h(null),
|
|
2516
|
+
override: f
|
|
2517
|
+
}), u(!1), h(null), p(!1);
|
|
2497
2518
|
} catch (g) {
|
|
2498
2519
|
console.error(g);
|
|
2499
2520
|
}
|
|
@@ -2502,19 +2523,19 @@ function on(n) {
|
|
|
2502
2523
|
fileProcessor: i,
|
|
2503
2524
|
onFileProcessed: (g) => h(g),
|
|
2504
2525
|
renderCustomPreview: c,
|
|
2505
|
-
onOverrideChange: (g) =>
|
|
2526
|
+
onOverrideChange: (g) => p(g),
|
|
2506
2527
|
open: l,
|
|
2507
2528
|
title: e("_pages:common.actions.import.dialog.title", {
|
|
2508
2529
|
entity: e(`_pages:${o}.title`)
|
|
2509
2530
|
}),
|
|
2510
2531
|
handleClose: () => {
|
|
2511
|
-
u(!1), h(null),
|
|
2532
|
+
u(!1), h(null), p(!1);
|
|
2512
2533
|
},
|
|
2513
2534
|
action: y
|
|
2514
2535
|
};
|
|
2515
2536
|
}
|
|
2516
|
-
const
|
|
2517
|
-
const { showSuccessNotification: e } = oe(), { t: s } =
|
|
2537
|
+
const hn = (n) => {
|
|
2538
|
+
const { showSuccessNotification: e } = oe(), { t: s } = E(), {
|
|
2518
2539
|
entity: t,
|
|
2519
2540
|
mutationFn: r,
|
|
2520
2541
|
onError: o,
|
|
@@ -2526,14 +2547,14 @@ const an = (n) => {
|
|
|
2526
2547
|
console.error(d), o && o(d);
|
|
2527
2548
|
},
|
|
2528
2549
|
onSuccess: async (d) => {
|
|
2529
|
-
const h = JSON.stringify(d, null, 2),
|
|
2530
|
-
b.href =
|
|
2550
|
+
const h = JSON.stringify(d, null, 2), f = new Blob([h], { type: "application/json" }), p = URL.createObjectURL(f), b = document.createElement("a");
|
|
2551
|
+
b.href = p, b.download = `${t}.json`, b.click(), URL.revokeObjectURL(p), i && i(d), e({
|
|
2531
2552
|
message: c
|
|
2532
2553
|
});
|
|
2533
2554
|
}
|
|
2534
|
-
}), l =
|
|
2555
|
+
}), l = v(() => {
|
|
2535
2556
|
a.mutate();
|
|
2536
|
-
}, [a]), { action: u } =
|
|
2557
|
+
}, [a]), { action: u } = is({
|
|
2537
2558
|
onClick: l,
|
|
2538
2559
|
isLoading: a.isPending
|
|
2539
2560
|
});
|
|
@@ -2541,17 +2562,17 @@ const an = (n) => {
|
|
|
2541
2562
|
action: u
|
|
2542
2563
|
};
|
|
2543
2564
|
}, Ae = () => typeof window < "u" ? window.scrollY : 0;
|
|
2544
|
-
function
|
|
2545
|
-
const [e, s] =
|
|
2565
|
+
function cs(n) {
|
|
2566
|
+
const [e, s] = D(Ae), t = v(() => {
|
|
2546
2567
|
s(Ae());
|
|
2547
2568
|
}, []);
|
|
2548
|
-
return
|
|
2569
|
+
return P(() => (window.addEventListener("scroll", t), () => {
|
|
2549
2570
|
window.removeEventListener("scroll", t);
|
|
2550
2571
|
}), [t]), e > n;
|
|
2551
2572
|
}
|
|
2552
|
-
const
|
|
2553
|
-
const { t: e } =
|
|
2554
|
-
icon: s =
|
|
2573
|
+
const fn = (n) => {
|
|
2574
|
+
const { t: e } = E(), {
|
|
2575
|
+
icon: s = vt,
|
|
2555
2576
|
threshold: t = 200,
|
|
2556
2577
|
scrollTop: r = 0,
|
|
2557
2578
|
scrollLeft: o = 0,
|
|
@@ -2562,28 +2583,28 @@ const cn = (n) => {
|
|
|
2562
2583
|
variant: u = "submit",
|
|
2563
2584
|
color: d = "primary",
|
|
2564
2585
|
...h
|
|
2565
|
-
} = n,
|
|
2586
|
+
} = n, f = cs(t);
|
|
2566
2587
|
return /* @__PURE__ */ m(
|
|
2567
|
-
|
|
2588
|
+
W,
|
|
2568
2589
|
{
|
|
2569
2590
|
variant: u,
|
|
2570
2591
|
color: d,
|
|
2571
2592
|
icon: s,
|
|
2572
2593
|
"data-tooltip-id": "tooltip",
|
|
2573
2594
|
onClick: () => {
|
|
2574
|
-
a == null || a(), c &&
|
|
2595
|
+
a == null || a(), c && ns.scrollTo(o, r);
|
|
2575
2596
|
},
|
|
2576
|
-
className: `to-top ${
|
|
2597
|
+
className: `to-top ${f ? "show" : "hide"} ${l}`.trim(),
|
|
2577
2598
|
"data-tooltip-content": i,
|
|
2578
2599
|
...h
|
|
2579
2600
|
}
|
|
2580
2601
|
);
|
|
2581
2602
|
};
|
|
2582
|
-
function
|
|
2583
|
-
const { t: e } =
|
|
2603
|
+
function pn(n) {
|
|
2604
|
+
const { t: e } = E();
|
|
2584
2605
|
if ("children" in n) {
|
|
2585
|
-
const { children:
|
|
2586
|
-
return /* @__PURE__ */ m("div", { className: `error-container${
|
|
2606
|
+
const { children: T, className: k } = n;
|
|
2607
|
+
return /* @__PURE__ */ m("div", { className: `error-container${k ? ` ${k}` : ""}`, children: T });
|
|
2587
2608
|
}
|
|
2588
2609
|
const {
|
|
2589
2610
|
error: t,
|
|
@@ -2596,17 +2617,17 @@ function ln(n) {
|
|
|
2596
2617
|
className: u,
|
|
2597
2618
|
resetErrorBoundary: d
|
|
2598
2619
|
} = n, h = i ?? d, {
|
|
2599
|
-
className:
|
|
2600
|
-
children:
|
|
2620
|
+
className: f,
|
|
2621
|
+
children: p,
|
|
2601
2622
|
onClick: b,
|
|
2602
2623
|
...y
|
|
2603
2624
|
} = a ?? {}, { className: g, ...C } = l ?? {}, w = o !== null;
|
|
2604
|
-
return /* @__PURE__ */
|
|
2625
|
+
return /* @__PURE__ */ N("div", { className: `error-container${u ? ` ${u}` : ""}`, children: [
|
|
2605
2626
|
w && /* @__PURE__ */ m(
|
|
2606
|
-
|
|
2627
|
+
U,
|
|
2607
2628
|
{
|
|
2608
2629
|
...o,
|
|
2609
|
-
icon: (o == null ? void 0 : o.icon) ??
|
|
2630
|
+
icon: (o == null ? void 0 : o.icon) ?? $t,
|
|
2610
2631
|
className: `error-icon${o != null && o.className ? ` ${o.className}` : ""}`
|
|
2611
2632
|
}
|
|
2612
2633
|
),
|
|
@@ -2619,29 +2640,29 @@ function ln(n) {
|
|
|
2619
2640
|
}
|
|
2620
2641
|
),
|
|
2621
2642
|
h && /* @__PURE__ */ m(
|
|
2622
|
-
|
|
2643
|
+
V,
|
|
2623
2644
|
{
|
|
2624
2645
|
type: "button",
|
|
2625
2646
|
variant: "submit",
|
|
2626
2647
|
color: "primary",
|
|
2627
2648
|
...y,
|
|
2628
|
-
className: `error-retry ${
|
|
2629
|
-
onClick: (
|
|
2630
|
-
b == null || b(
|
|
2649
|
+
className: `error-retry ${f ? ` ${f}` : ""}`,
|
|
2650
|
+
onClick: (T) => {
|
|
2651
|
+
b == null || b(T), T.defaultPrevented || h();
|
|
2631
2652
|
},
|
|
2632
|
-
children:
|
|
2653
|
+
children: p ?? c ?? e("_accessibility:actions.retry", { defaultValue: "Retry" })
|
|
2633
2654
|
}
|
|
2634
2655
|
)
|
|
2635
2656
|
] });
|
|
2636
2657
|
}
|
|
2637
|
-
const
|
|
2638
|
-
const { showBackButton: e, title: s, actions: t } = n, { t: r } =
|
|
2639
|
-
return /* @__PURE__ */
|
|
2640
|
-
/* @__PURE__ */
|
|
2658
|
+
const ls = (n) => {
|
|
2659
|
+
const { showBackButton: e, title: s, actions: t } = n, { t: r } = E(), { navigate: o } = ie();
|
|
2660
|
+
return /* @__PURE__ */ N("div", { className: "page-header", children: [
|
|
2661
|
+
/* @__PURE__ */ N("div", { className: "page-header-left", children: [
|
|
2641
2662
|
e && /* @__PURE__ */ m(
|
|
2642
|
-
|
|
2663
|
+
W,
|
|
2643
2664
|
{
|
|
2644
|
-
icon:
|
|
2665
|
+
icon: Ct,
|
|
2645
2666
|
onClick: () => o(-1),
|
|
2646
2667
|
className: "page-header-back",
|
|
2647
2668
|
name: r("_accessibility:buttons.back"),
|
|
@@ -2651,16 +2672,16 @@ const os = (n) => {
|
|
|
2651
2672
|
),
|
|
2652
2673
|
/* @__PURE__ */ m("h2", { className: "page-header-title", children: s })
|
|
2653
2674
|
] }),
|
|
2654
|
-
/* @__PURE__ */
|
|
2675
|
+
/* @__PURE__ */ N("div", { children: [
|
|
2655
2676
|
/* @__PURE__ */ m(
|
|
2656
|
-
|
|
2677
|
+
lt,
|
|
2657
2678
|
{
|
|
2658
2679
|
className: "page-header-actions-desktop",
|
|
2659
2680
|
actions: t ?? []
|
|
2660
2681
|
}
|
|
2661
2682
|
),
|
|
2662
2683
|
/* @__PURE__ */ m(
|
|
2663
|
-
|
|
2684
|
+
ut,
|
|
2664
2685
|
{
|
|
2665
2686
|
className: "page-header-actions-mobile",
|
|
2666
2687
|
actions: t ?? []
|
|
@@ -2668,7 +2689,7 @@ const os = (n) => {
|
|
|
2668
2689
|
)
|
|
2669
2690
|
] })
|
|
2670
2691
|
] });
|
|
2671
|
-
},
|
|
2692
|
+
}, gn = (n) => {
|
|
2672
2693
|
const {
|
|
2673
2694
|
title: e,
|
|
2674
2695
|
children: s,
|
|
@@ -2679,41 +2700,41 @@ const os = (n) => {
|
|
|
2679
2700
|
isLoading: c = !1,
|
|
2680
2701
|
isAnimated: a = !0,
|
|
2681
2702
|
showBackButton: l = !1
|
|
2682
|
-
} = n, { t: u } =
|
|
2683
|
-
const
|
|
2703
|
+
} = n, { t: u } = E(), d = Z(), { countOfFilters: h } = dt(), f = q(() => {
|
|
2704
|
+
const p = Array.isArray(o) ? [...o] : [];
|
|
2684
2705
|
if (i) {
|
|
2685
2706
|
const b = {
|
|
2686
|
-
id:
|
|
2707
|
+
id: Y.Refresh,
|
|
2687
2708
|
onClick: () => d.invalidateQueries({ queryKey: i }),
|
|
2688
|
-
icon: /* @__PURE__ */ m(
|
|
2709
|
+
icon: /* @__PURE__ */ m(U, { icon: Re }),
|
|
2689
2710
|
tooltip: u("_pages:common.actions.refresh.text")
|
|
2690
2711
|
};
|
|
2691
|
-
|
|
2712
|
+
p.unshift(b);
|
|
2692
2713
|
}
|
|
2693
2714
|
if (t) {
|
|
2694
2715
|
const b = {
|
|
2695
2716
|
...t,
|
|
2696
|
-
id:
|
|
2697
|
-
icon: /* @__PURE__ */ m(
|
|
2717
|
+
id: Y.Add,
|
|
2718
|
+
icon: /* @__PURE__ */ m(U, { icon: Te })
|
|
2698
2719
|
};
|
|
2699
|
-
|
|
2720
|
+
p.unshift(b);
|
|
2700
2721
|
}
|
|
2701
2722
|
if (r) {
|
|
2702
2723
|
const b = {
|
|
2703
2724
|
...r,
|
|
2704
2725
|
id: "filter",
|
|
2705
|
-
icon: /* @__PURE__ */ m(
|
|
2726
|
+
icon: /* @__PURE__ */ m(U, { icon: Tt }),
|
|
2706
2727
|
children: /* @__PURE__ */ m(
|
|
2707
|
-
|
|
2728
|
+
mt,
|
|
2708
2729
|
{
|
|
2709
2730
|
className: `${h > 0 ? "show" : "hide"} `,
|
|
2710
2731
|
count: h
|
|
2711
2732
|
}
|
|
2712
2733
|
)
|
|
2713
2734
|
};
|
|
2714
|
-
|
|
2735
|
+
p.push(b);
|
|
2715
2736
|
}
|
|
2716
|
-
return
|
|
2737
|
+
return p;
|
|
2717
2738
|
}, [
|
|
2718
2739
|
o,
|
|
2719
2740
|
t,
|
|
@@ -2723,32 +2744,32 @@ const os = (n) => {
|
|
|
2723
2744
|
i,
|
|
2724
2745
|
u
|
|
2725
2746
|
]);
|
|
2726
|
-
return /* @__PURE__ */
|
|
2747
|
+
return /* @__PURE__ */ N("main", { className: "page-main", children: [
|
|
2727
2748
|
/* @__PURE__ */ m(
|
|
2728
|
-
|
|
2749
|
+
ls,
|
|
2729
2750
|
{
|
|
2730
2751
|
showBackButton: l,
|
|
2731
|
-
actions:
|
|
2752
|
+
actions: f,
|
|
2732
2753
|
title: e
|
|
2733
2754
|
}
|
|
2734
2755
|
),
|
|
2735
2756
|
/* @__PURE__ */ m("div", { className: `page-main-content ${a ? "appear" : ""}`, children: c ? /* @__PURE__ */ m(ne, { className: "page-loading" }) : s }),
|
|
2736
2757
|
t && /* @__PURE__ */ m(
|
|
2737
|
-
|
|
2758
|
+
W,
|
|
2738
2759
|
{
|
|
2739
2760
|
icon: t.icon ?? Te,
|
|
2740
2761
|
color: t.color ?? "primary",
|
|
2741
2762
|
variant: t.variant ?? "submit",
|
|
2742
2763
|
onClick: () => {
|
|
2743
|
-
var
|
|
2744
|
-
return (
|
|
2764
|
+
var p;
|
|
2765
|
+
return (p = t.onClick) == null ? void 0 : p.call(t);
|
|
2745
2766
|
},
|
|
2746
2767
|
className: `button page-fab ${t.className ?? ""}`
|
|
2747
2768
|
}
|
|
2748
2769
|
)
|
|
2749
2770
|
] });
|
|
2750
|
-
},
|
|
2751
|
-
const { t: e } =
|
|
2771
|
+
}, bn = (n) => {
|
|
2772
|
+
const { t: e } = E(), {
|
|
2752
2773
|
className: s = "",
|
|
2753
2774
|
itemClassName: t = "",
|
|
2754
2775
|
loading: r = !1,
|
|
@@ -2760,9 +2781,9 @@ const os = (n) => {
|
|
|
2760
2781
|
loadingMore: u = !1,
|
|
2761
2782
|
onLoadMore: d,
|
|
2762
2783
|
loadMoreComponent: h = null,
|
|
2763
|
-
observerRootMargin:
|
|
2764
|
-
observerThreshold:
|
|
2765
|
-
} = n, b =
|
|
2784
|
+
observerRootMargin: f = "0px 0px 200px 0px",
|
|
2785
|
+
observerThreshold: p = 0
|
|
2786
|
+
} = n, b = K(!1), y = K(null), g = v(async () => {
|
|
2766
2787
|
if (!(!l || !d) && !(u || b.current)) {
|
|
2767
2788
|
b.current = !0;
|
|
2768
2789
|
try {
|
|
@@ -2772,41 +2793,41 @@ const os = (n) => {
|
|
|
2772
2793
|
}
|
|
2773
2794
|
}
|
|
2774
2795
|
}, [l, u, d]);
|
|
2775
|
-
return
|
|
2796
|
+
return P(() => {
|
|
2776
2797
|
if (!l || !d || !y.current || typeof IntersectionObserver > "u") return;
|
|
2777
2798
|
const C = new IntersectionObserver(
|
|
2778
2799
|
(w) => {
|
|
2779
|
-
w.some((
|
|
2800
|
+
w.some((T) => T.isIntersecting) && g();
|
|
2780
2801
|
},
|
|
2781
2802
|
{
|
|
2782
|
-
rootMargin:
|
|
2783
|
-
threshold:
|
|
2803
|
+
rootMargin: f,
|
|
2804
|
+
threshold: p
|
|
2784
2805
|
}
|
|
2785
2806
|
);
|
|
2786
2807
|
return C.observe(y.current), () => C.disconnect();
|
|
2787
2808
|
}, [
|
|
2788
2809
|
l,
|
|
2789
2810
|
d,
|
|
2790
|
-
p,
|
|
2791
2811
|
f,
|
|
2812
|
+
p,
|
|
2792
2813
|
g
|
|
2793
|
-
]), r ? /* @__PURE__ */ m(ne, {}) : /* @__PURE__ */ m(ce, { children: a != null && a.length ? /* @__PURE__ */
|
|
2814
|
+
]), r ? /* @__PURE__ */ m(ne, {}) : /* @__PURE__ */ m(ce, { children: a != null && a.length ? /* @__PURE__ */ N("ul", { className: `pretty-grid-main ${s}`, children: [
|
|
2794
2815
|
a == null ? void 0 : a.map((C) => /* @__PURE__ */ m("li", { className: `pretty-grid-item ${t}`, children: c(C) }, C.id)),
|
|
2795
2816
|
l && d && /* @__PURE__ */ m("li", { className: "pretty-grid-load-more", ref: y, children: h })
|
|
2796
|
-
] }) : /* @__PURE__ */ m(ce, { children: o || /* @__PURE__ */ m(
|
|
2797
|
-
},
|
|
2817
|
+
] }) : /* @__PURE__ */ m(ce, { children: o || /* @__PURE__ */ m(ws, { message: i }) }) });
|
|
2818
|
+
}, Je = X({
|
|
2798
2819
|
title: "",
|
|
2799
2820
|
setTitle: () => {
|
|
2800
2821
|
},
|
|
2801
2822
|
rightContent: null,
|
|
2802
2823
|
setRightContent: () => {
|
|
2803
2824
|
}
|
|
2804
|
-
}),
|
|
2805
|
-
const { children: e } = n, [s, t] =
|
|
2825
|
+
}), yn = (n) => {
|
|
2826
|
+
const { children: e } = n, [s, t] = D(""), [r, o] = D(null), i = v((l) => {
|
|
2806
2827
|
t(l);
|
|
2807
|
-
}, []), c =
|
|
2828
|
+
}, []), c = v((l) => {
|
|
2808
2829
|
o(l);
|
|
2809
|
-
}, []), a =
|
|
2830
|
+
}, []), a = q(
|
|
2810
2831
|
() => ({
|
|
2811
2832
|
title: s,
|
|
2812
2833
|
setTitle: i,
|
|
@@ -2815,29 +2836,29 @@ const os = (n) => {
|
|
|
2815
2836
|
}),
|
|
2816
2837
|
[s, i, r, c]
|
|
2817
2838
|
);
|
|
2818
|
-
return /* @__PURE__ */ m(
|
|
2819
|
-
},
|
|
2820
|
-
function
|
|
2821
|
-
const { t: e } =
|
|
2822
|
-
(
|
|
2839
|
+
return /* @__PURE__ */ m(Je.Provider, { value: a, children: e });
|
|
2840
|
+
}, us = () => G(Je);
|
|
2841
|
+
function wn(n) {
|
|
2842
|
+
const { t: e } = E(), { openDrawer: s, showSearch: t = !0, menuButtonProps: r } = n, { searchComponent: o, location: i } = ie(), { title: c, rightContent: a } = us(), [l, u] = D(!1), d = v((p) => {
|
|
2843
|
+
(Wt() ? p.metaKey : p.ctrlKey) && p.shiftKey && p.key.toLowerCase() === "f" && (u(!0), p.preventDefault());
|
|
2823
2844
|
}, []);
|
|
2824
|
-
|
|
2845
|
+
P(() => (window.addEventListener("keydown", d), () => {
|
|
2825
2846
|
window.removeEventListener("keydown", d);
|
|
2826
2847
|
}), [d]);
|
|
2827
|
-
const h = o,
|
|
2828
|
-
return /* @__PURE__ */
|
|
2848
|
+
const h = o, f = t && !!h;
|
|
2849
|
+
return /* @__PURE__ */ N(ce, { children: [
|
|
2829
2850
|
i.pathname !== "/" && !!h && /* @__PURE__ */ m(h, { open: l, onClose: () => u(!1) }),
|
|
2830
|
-
/* @__PURE__ */
|
|
2831
|
-
/* @__PURE__ */
|
|
2851
|
+
/* @__PURE__ */ N("header", { id: "header", className: "header", children: [
|
|
2852
|
+
/* @__PURE__ */ N("div", { className: "navbar-left", children: [
|
|
2832
2853
|
/* @__PURE__ */ m(
|
|
2833
|
-
|
|
2854
|
+
W,
|
|
2834
2855
|
{
|
|
2835
2856
|
...r,
|
|
2836
2857
|
type: (r == null ? void 0 : r.type) ?? "button",
|
|
2837
|
-
icon: (r == null ? void 0 : r.icon) ??
|
|
2838
|
-
onClick: (
|
|
2858
|
+
icon: (r == null ? void 0 : r.icon) ?? Nt,
|
|
2859
|
+
onClick: (p) => {
|
|
2839
2860
|
var b;
|
|
2840
|
-
(b = r == null ? void 0 : r.onClick) == null || b.call(r,
|
|
2861
|
+
(b = r == null ? void 0 : r.onClick) == null || b.call(r, p), s();
|
|
2841
2862
|
},
|
|
2842
2863
|
name: (r == null ? void 0 : r.name) ?? e("_accessibility:buttons.openMenu"),
|
|
2843
2864
|
"aria-label": (r == null ? void 0 : r["aria-label"]) ?? e("_accessibility:ariaLabels.openMenu"),
|
|
@@ -2846,12 +2867,12 @@ function hn(n) {
|
|
|
2846
2867
|
),
|
|
2847
2868
|
/* @__PURE__ */ m("h1", { className: "poppins navbar-title", children: c || e("_pages:home.appName") })
|
|
2848
2869
|
] }),
|
|
2849
|
-
/* @__PURE__ */
|
|
2870
|
+
/* @__PURE__ */ N("div", { className: "navbar-right", children: [
|
|
2850
2871
|
a,
|
|
2851
|
-
|
|
2852
|
-
|
|
2872
|
+
f && /* @__PURE__ */ m(
|
|
2873
|
+
W,
|
|
2853
2874
|
{
|
|
2854
|
-
icon:
|
|
2875
|
+
icon: kt,
|
|
2855
2876
|
className: "navbar-search-btn",
|
|
2856
2877
|
onClick: () => u(!0)
|
|
2857
2878
|
}
|
|
@@ -2860,42 +2881,42 @@ function hn(n) {
|
|
|
2860
2881
|
] })
|
|
2861
2882
|
] });
|
|
2862
2883
|
}
|
|
2863
|
-
const ue = 300,
|
|
2884
|
+
const ue = 300, ds = (n) => n ?? F.error, ms = (n) => {
|
|
2864
2885
|
switch (n) {
|
|
2865
|
-
case
|
|
2866
|
-
return
|
|
2886
|
+
case F.error:
|
|
2887
|
+
return At;
|
|
2867
2888
|
default:
|
|
2868
|
-
return
|
|
2889
|
+
return Et;
|
|
2869
2890
|
}
|
|
2870
2891
|
}, ge = (n) => {
|
|
2871
2892
|
switch (n) {
|
|
2872
|
-
case
|
|
2893
|
+
case F.success:
|
|
2873
2894
|
return "!text-success";
|
|
2874
|
-
case
|
|
2895
|
+
case F.error:
|
|
2875
2896
|
return "!text-error";
|
|
2876
|
-
case
|
|
2897
|
+
case F.warning:
|
|
2877
2898
|
return "!text-warning";
|
|
2878
2899
|
default:
|
|
2879
2900
|
return "!text-info";
|
|
2880
2901
|
}
|
|
2881
|
-
},
|
|
2902
|
+
}, hs = (n) => {
|
|
2882
2903
|
switch (n) {
|
|
2883
|
-
case
|
|
2904
|
+
case F.success:
|
|
2884
2905
|
return "bg-bg-success";
|
|
2885
|
-
case
|
|
2906
|
+
case F.error:
|
|
2886
2907
|
return "bg-bg-error";
|
|
2887
|
-
case
|
|
2908
|
+
case F.warning:
|
|
2888
2909
|
return "bg-bg-warning";
|
|
2889
2910
|
default:
|
|
2890
2911
|
return "bg-bg-info";
|
|
2891
2912
|
}
|
|
2892
2913
|
};
|
|
2893
|
-
function
|
|
2894
|
-
const { t: n } =
|
|
2895
|
-
|
|
2914
|
+
function Sn() {
|
|
2915
|
+
const { t: n } = E(), { notification: e, removeNotification: s } = oe(), [t, r] = D([]), o = K(t);
|
|
2916
|
+
ft(() => {
|
|
2896
2917
|
o.current = t;
|
|
2897
2918
|
});
|
|
2898
|
-
const i =
|
|
2919
|
+
const i = K(null), c = v(
|
|
2899
2920
|
(a) => {
|
|
2900
2921
|
r(
|
|
2901
2922
|
(l) => a !== void 0 ? l.map((u) => u.id === a ? { ...u, closing: !0 } : u) : l.map((u) => ({ ...u, closing: !0 }))
|
|
@@ -2907,39 +2928,39 @@ function fn() {
|
|
|
2907
2928
|
},
|
|
2908
2929
|
[s]
|
|
2909
2930
|
);
|
|
2910
|
-
return
|
|
2931
|
+
return P(() => {
|
|
2911
2932
|
let a = null;
|
|
2912
2933
|
const l = () => {
|
|
2913
2934
|
a && clearTimeout(a), i.current && (clearTimeout(i.current), i.current = null);
|
|
2914
2935
|
};
|
|
2915
2936
|
if (e.length === 0)
|
|
2916
2937
|
return o.current.length === 0 ? void 0 : (i.current && clearTimeout(i.current), a = setTimeout(() => {
|
|
2917
|
-
r((
|
|
2938
|
+
r((f) => f.map((p) => ({ ...p, closing: !0 }))), a = null;
|
|
2918
2939
|
}, 0), i.current = setTimeout(() => {
|
|
2919
2940
|
r([]), i.current = null;
|
|
2920
2941
|
}, ue), l);
|
|
2921
|
-
const u = new Set(o.current.map((
|
|
2942
|
+
const u = new Set(o.current.map((f) => f.id));
|
|
2922
2943
|
if (!e.some(
|
|
2923
|
-
(
|
|
2944
|
+
(f) => f.id !== void 0 && !u.has(f.id)
|
|
2924
2945
|
)) return;
|
|
2925
2946
|
if (o.current.length === 0) {
|
|
2926
|
-
const
|
|
2947
|
+
const f = [...e];
|
|
2927
2948
|
return a = setTimeout(() => {
|
|
2928
|
-
r(
|
|
2949
|
+
r(f.map((p) => ({ ...p, closing: !1 }))), a = null;
|
|
2929
2950
|
}, 0), () => {
|
|
2930
2951
|
a && clearTimeout(a);
|
|
2931
2952
|
};
|
|
2932
2953
|
}
|
|
2933
2954
|
i.current && clearTimeout(i.current), a = setTimeout(() => {
|
|
2934
2955
|
r(
|
|
2935
|
-
(
|
|
2956
|
+
(f) => f.every((p) => p.closing) ? f : f.map((p) => ({ ...p, closing: !0 }))
|
|
2936
2957
|
), a = null;
|
|
2937
2958
|
}, 0);
|
|
2938
2959
|
const h = [...e];
|
|
2939
2960
|
return i.current = setTimeout(() => {
|
|
2940
|
-
r(h.map((
|
|
2961
|
+
r(h.map((f) => ({ ...f, closing: !1 }))), i.current = null;
|
|
2941
2962
|
}, ue), l;
|
|
2942
|
-
}, [e]),
|
|
2963
|
+
}, [e]), P(() => {
|
|
2943
2964
|
if (!t.length) return;
|
|
2944
2965
|
let a;
|
|
2945
2966
|
const l = window.setTimeout(() => {
|
|
@@ -2952,32 +2973,32 @@ function fn() {
|
|
|
2952
2973
|
};
|
|
2953
2974
|
}, [t.length, c]), _e(
|
|
2954
2975
|
/* @__PURE__ */ m("div", { className: `notification-portal ${t.length ? "active" : ""}`, children: t.map(({ id: a, type: l, message: u, closing: d }) => {
|
|
2955
|
-
const h =
|
|
2956
|
-
return /* @__PURE__ */
|
|
2976
|
+
const h = ds(l);
|
|
2977
|
+
return /* @__PURE__ */ N(
|
|
2957
2978
|
"div",
|
|
2958
2979
|
{
|
|
2959
|
-
className: `notification ${d ? "closing" : ""} ${
|
|
2960
|
-
onClick: (
|
|
2980
|
+
className: `notification ${d ? "closing" : ""} ${hs(h)}`,
|
|
2981
|
+
onClick: (f) => f.stopPropagation(),
|
|
2961
2982
|
children: [
|
|
2962
|
-
/* @__PURE__ */
|
|
2983
|
+
/* @__PURE__ */ N("div", { className: "notification-body", children: [
|
|
2963
2984
|
/* @__PURE__ */ m(
|
|
2964
|
-
|
|
2985
|
+
U,
|
|
2965
2986
|
{
|
|
2966
|
-
icon:
|
|
2987
|
+
icon: ms(h),
|
|
2967
2988
|
className: `notification-icon ${ge(h)}`
|
|
2968
2989
|
}
|
|
2969
2990
|
),
|
|
2970
2991
|
/* @__PURE__ */ m("p", { className: `notification-text ${ge(h)}`, children: u })
|
|
2971
2992
|
] }),
|
|
2972
2993
|
/* @__PURE__ */ m(
|
|
2973
|
-
|
|
2994
|
+
W,
|
|
2974
2995
|
{
|
|
2975
2996
|
type: "button",
|
|
2976
2997
|
icon: Le,
|
|
2977
2998
|
color: "error",
|
|
2978
2999
|
className: "notification-close group",
|
|
2979
|
-
onClick: (
|
|
2980
|
-
|
|
3000
|
+
onClick: (f) => {
|
|
3001
|
+
f.stopPropagation(), a !== void 0 && c(a);
|
|
2981
3002
|
},
|
|
2982
3003
|
iconClassName: `${ge(h)} notification-close-icon`,
|
|
2983
3004
|
name: n("_accessibility:buttons.closeNotification"),
|
|
@@ -2992,7 +3013,7 @@ function fn() {
|
|
|
2992
3013
|
document.body
|
|
2993
3014
|
);
|
|
2994
3015
|
}
|
|
2995
|
-
function
|
|
3016
|
+
function vn(n) {
|
|
2996
3017
|
const { className: e, ...s } = n;
|
|
2997
3018
|
return /* @__PURE__ */ m("div", { className: "splash-screen", children: /* @__PURE__ */ m(
|
|
2998
3019
|
ne,
|
|
@@ -3002,7 +3023,7 @@ function pn(n) {
|
|
|
3002
3023
|
}
|
|
3003
3024
|
) });
|
|
3004
3025
|
}
|
|
3005
|
-
const
|
|
3026
|
+
const fs = (n) => {
|
|
3006
3027
|
const {
|
|
3007
3028
|
id: e,
|
|
3008
3029
|
active: s,
|
|
@@ -3016,18 +3037,18 @@ const us = (n) => {
|
|
|
3016
3037
|
const {
|
|
3017
3038
|
className: d = "",
|
|
3018
3039
|
variant: h = s ? "submit" : "outlined",
|
|
3019
|
-
color:
|
|
3020
|
-
...
|
|
3040
|
+
color: f = s ? "primary" : "default",
|
|
3041
|
+
...p
|
|
3021
3042
|
} = c ?? {};
|
|
3022
3043
|
return /* @__PURE__ */ m(
|
|
3023
|
-
|
|
3044
|
+
V,
|
|
3024
3045
|
{
|
|
3025
3046
|
type: "button",
|
|
3026
3047
|
variant: h,
|
|
3027
|
-
color:
|
|
3048
|
+
color: f,
|
|
3028
3049
|
className: `tab ${d}`,
|
|
3029
3050
|
onClick: t,
|
|
3030
|
-
...
|
|
3051
|
+
...p,
|
|
3031
3052
|
children: r
|
|
3032
3053
|
}
|
|
3033
3054
|
);
|
|
@@ -3042,8 +3063,8 @@ const us = (n) => {
|
|
|
3042
3063
|
children: r
|
|
3043
3064
|
}
|
|
3044
3065
|
);
|
|
3045
|
-
},
|
|
3046
|
-
var
|
|
3066
|
+
}, ps = (n) => {
|
|
3067
|
+
var f;
|
|
3047
3068
|
const {
|
|
3048
3069
|
tabs: e = [],
|
|
3049
3070
|
defaultTab: s,
|
|
@@ -3053,32 +3074,32 @@ const us = (n) => {
|
|
|
3053
3074
|
tabsContainerClassName: i = "",
|
|
3054
3075
|
useLinks: c = !0,
|
|
3055
3076
|
tabButtonProps: a
|
|
3056
|
-
} = n, [l, u] =
|
|
3057
|
-
return /* @__PURE__ */
|
|
3077
|
+
} = n, [l, u] = D(s ?? ((f = e[0]) == null ? void 0 : f.id)), d = t ?? l, h = q(() => e.find((p) => p.id === d), [e, d]);
|
|
3078
|
+
return /* @__PURE__ */ N("div", { className: `tabs-layout-main ${o}`, children: [
|
|
3058
3079
|
/* @__PURE__ */ m(
|
|
3059
3080
|
"ul",
|
|
3060
3081
|
{
|
|
3061
3082
|
className: `horizontal tabs tabs-container ${i}`,
|
|
3062
|
-
children: e.map(({ id:
|
|
3063
|
-
|
|
3083
|
+
children: e.map(({ id: p, to: b, label: y }) => /* @__PURE__ */ m("li", { children: /* @__PURE__ */ m(
|
|
3084
|
+
fs,
|
|
3064
3085
|
{
|
|
3065
3086
|
onClick: () => {
|
|
3066
|
-
t === void 0 && u(
|
|
3087
|
+
t === void 0 && u(p), r == null || r(p);
|
|
3067
3088
|
},
|
|
3068
|
-
id:
|
|
3089
|
+
id: p,
|
|
3069
3090
|
to: b,
|
|
3070
3091
|
siblings: e.length > 1,
|
|
3071
|
-
active: d ===
|
|
3092
|
+
active: d === p,
|
|
3072
3093
|
useLinks: c,
|
|
3073
3094
|
tabButtonProps: a,
|
|
3074
3095
|
children: y
|
|
3075
3096
|
}
|
|
3076
|
-
) },
|
|
3097
|
+
) }, p))
|
|
3077
3098
|
}
|
|
3078
3099
|
),
|
|
3079
3100
|
h == null ? void 0 : h.content
|
|
3080
3101
|
] });
|
|
3081
|
-
},
|
|
3102
|
+
}, gs = (n) => {
|
|
3082
3103
|
const {
|
|
3083
3104
|
title: e,
|
|
3084
3105
|
body: s,
|
|
@@ -3090,15 +3111,15 @@ const us = (n) => {
|
|
|
3090
3111
|
image: a = "",
|
|
3091
3112
|
alt: l = "",
|
|
3092
3113
|
final: u = !1
|
|
3093
|
-
} = n, { t: d } =
|
|
3094
|
-
return /* @__PURE__ */
|
|
3114
|
+
} = n, { t: d } = E();
|
|
3115
|
+
return /* @__PURE__ */ N("div", { className: "big-appear step-container", children: [
|
|
3095
3116
|
a && /* @__PURE__ */ m("img", { src: a, alt: l }),
|
|
3096
3117
|
e != null && /* @__PURE__ */ m("h2", { className: "step-title", children: e }),
|
|
3097
3118
|
s != null && /* @__PURE__ */ m("div", { className: "step-body", children: s }),
|
|
3098
3119
|
t != null && /* @__PURE__ */ m("div", { className: "step-content", children: t }),
|
|
3099
|
-
/* @__PURE__ */ m("div", { className: "step-actions", children: u ? /* @__PURE__ */
|
|
3120
|
+
/* @__PURE__ */ m("div", { className: "step-actions", children: u ? /* @__PURE__ */ N(ce, { children: [
|
|
3100
3121
|
/* @__PURE__ */ m(
|
|
3101
|
-
|
|
3122
|
+
V,
|
|
3102
3123
|
{
|
|
3103
3124
|
color: "primary",
|
|
3104
3125
|
className: "step-button",
|
|
@@ -3109,7 +3130,7 @@ const us = (n) => {
|
|
|
3109
3130
|
}
|
|
3110
3131
|
),
|
|
3111
3132
|
/* @__PURE__ */ m(
|
|
3112
|
-
|
|
3133
|
+
V,
|
|
3113
3134
|
{
|
|
3114
3135
|
color: "primary",
|
|
3115
3136
|
variant: "submit",
|
|
@@ -3119,9 +3140,9 @@ const us = (n) => {
|
|
|
3119
3140
|
children: d("_accessibility:buttons.signIn")
|
|
3120
3141
|
}
|
|
3121
3142
|
)
|
|
3122
|
-
] }) : /* @__PURE__ */
|
|
3143
|
+
] }) : /* @__PURE__ */ N(ce, { children: [
|
|
3123
3144
|
/* @__PURE__ */ m(
|
|
3124
|
-
|
|
3145
|
+
V,
|
|
3125
3146
|
{
|
|
3126
3147
|
color: "primary",
|
|
3127
3148
|
className: "step-button",
|
|
@@ -3132,7 +3153,7 @@ const us = (n) => {
|
|
|
3132
3153
|
}
|
|
3133
3154
|
),
|
|
3134
3155
|
/* @__PURE__ */ m(
|
|
3135
|
-
|
|
3156
|
+
V,
|
|
3136
3157
|
{
|
|
3137
3158
|
color: "primary",
|
|
3138
3159
|
className: "step-button",
|
|
@@ -3144,7 +3165,7 @@ const us = (n) => {
|
|
|
3144
3165
|
)
|
|
3145
3166
|
] }) })
|
|
3146
3167
|
] });
|
|
3147
|
-
},
|
|
3168
|
+
}, Cn = (n) => {
|
|
3148
3169
|
const {
|
|
3149
3170
|
steps: e,
|
|
3150
3171
|
signInPath: s = "/auth/sign-in",
|
|
@@ -3152,49 +3173,49 @@ const us = (n) => {
|
|
|
3152
3173
|
onSkip: r,
|
|
3153
3174
|
onSignIn: o,
|
|
3154
3175
|
onStartAsGuest: i
|
|
3155
|
-
} = n, c = je(), { navigate: a } = ie(), [l, u] =
|
|
3176
|
+
} = n, c = je(), { navigate: a } = ie(), [l, u] = D(1), d = v(() => {
|
|
3156
3177
|
if (r) {
|
|
3157
3178
|
r();
|
|
3158
3179
|
return;
|
|
3159
3180
|
}
|
|
3160
3181
|
a(s);
|
|
3161
|
-
}, [a, r, s]), h =
|
|
3182
|
+
}, [a, r, s]), h = v(() => {
|
|
3162
3183
|
if (o) {
|
|
3163
3184
|
o();
|
|
3164
3185
|
return;
|
|
3165
3186
|
}
|
|
3166
3187
|
a(s);
|
|
3167
|
-
}, [a, o, s]),
|
|
3188
|
+
}, [a, o, s]), f = v(() => {
|
|
3168
3189
|
if (i) {
|
|
3169
3190
|
i();
|
|
3170
3191
|
return;
|
|
3171
3192
|
}
|
|
3172
3193
|
c == null || c.setGuestMode(!0), a(t);
|
|
3173
|
-
}, [c, t, a, i]),
|
|
3194
|
+
}, [c, t, a, i]), p = q(() => e.map((b, y) => ({
|
|
3174
3195
|
id: y + 1,
|
|
3175
3196
|
label: "",
|
|
3176
3197
|
content: /* @__PURE__ */ m(
|
|
3177
|
-
|
|
3198
|
+
gs,
|
|
3178
3199
|
{
|
|
3179
3200
|
...b,
|
|
3180
3201
|
final: y === e.length - 1,
|
|
3181
3202
|
onClickNext: () => u((g) => g + 1),
|
|
3182
3203
|
onSkip: d,
|
|
3183
|
-
onStartAsGuest:
|
|
3204
|
+
onStartAsGuest: f,
|
|
3184
3205
|
onSignIn: h
|
|
3185
3206
|
}
|
|
3186
3207
|
)
|
|
3187
|
-
})), [h, d,
|
|
3208
|
+
})), [h, d, f, e]);
|
|
3188
3209
|
return /* @__PURE__ */ m("div", { className: "onboarding-main", children: /* @__PURE__ */ m(
|
|
3189
|
-
|
|
3210
|
+
ps,
|
|
3190
3211
|
{
|
|
3191
3212
|
currentTab: l,
|
|
3192
3213
|
onTabChange: (b) => u(Number(b)),
|
|
3193
|
-
tabs:
|
|
3214
|
+
tabs: p,
|
|
3194
3215
|
useLinks: !1
|
|
3195
3216
|
}
|
|
3196
3217
|
) });
|
|
3197
|
-
},
|
|
3218
|
+
}, bs = (n, e) => e === "/" ? n === "/" : n.startsWith(e), ys = (n) => {
|
|
3198
3219
|
const e = n.filter((s) => !s.hidden);
|
|
3199
3220
|
return {
|
|
3200
3221
|
leftItems: e.filter((s) => s.position !== "right"),
|
|
@@ -3206,181 +3227,186 @@ const us = (n) => {
|
|
|
3206
3227
|
linkComponent: s
|
|
3207
3228
|
}) => {
|
|
3208
3229
|
const o = `flex flex-col items-center justify-center gap-0.5 flex-1 py-2 transition-colors ${e ? "text-hover-primary" : "text-text-muted/60"}`.trim(), i = n.ariaLabel ?? n.label;
|
|
3209
|
-
return n.disabled ? /* @__PURE__ */
|
|
3230
|
+
return n.disabled ? /* @__PURE__ */ N(
|
|
3210
3231
|
"span",
|
|
3211
3232
|
{
|
|
3212
3233
|
className: `${o} opacity-50 cursor-not-allowed`,
|
|
3213
3234
|
"aria-disabled": !0,
|
|
3214
3235
|
children: [
|
|
3215
|
-
/* @__PURE__ */ m("span", { className: "text-lg", children: /* @__PURE__ */ m(
|
|
3236
|
+
/* @__PURE__ */ m("span", { className: "text-lg", children: /* @__PURE__ */ m(U, { icon: n.icon }) }),
|
|
3216
3237
|
/* @__PURE__ */ m("span", { className: "text-[10px] leading-tight", children: n.label })
|
|
3217
3238
|
]
|
|
3218
3239
|
}
|
|
3219
|
-
) : /* @__PURE__ */
|
|
3220
|
-
/* @__PURE__ */ m("span", { className: "text-lg", children: /* @__PURE__ */ m(
|
|
3240
|
+
) : /* @__PURE__ */ N(s, { to: n.to, className: o, "aria-label": i, children: [
|
|
3241
|
+
/* @__PURE__ */ m("span", { className: "text-lg", children: /* @__PURE__ */ m(U, { icon: n.icon }) }),
|
|
3221
3242
|
/* @__PURE__ */ m("span", { className: "text-[10px] leading-tight", children: n.label })
|
|
3222
3243
|
] });
|
|
3223
|
-
},
|
|
3224
|
-
|
|
3225
|
-
|
|
3244
|
+
}, Tn = (n) => {
|
|
3245
|
+
var j;
|
|
3246
|
+
const { items: e, centerAction: s, className: t = "", isItemActive: r } = n, o = (j = Ve()) == null ? void 0 : j.centerAction, i = o ? { ...s ?? {}, ...o } : s, { location: c, navigate: a, linkComponent: l } = ie(), { leftItems: u, rightItems: d } = q(
|
|
3247
|
+
() => ys(e),
|
|
3226
3248
|
[e]
|
|
3227
3249
|
), {
|
|
3228
|
-
hidden:
|
|
3229
|
-
to:
|
|
3230
|
-
icon:
|
|
3231
|
-
ariaLabel:
|
|
3232
|
-
onClick:
|
|
3233
|
-
variant:
|
|
3234
|
-
color:
|
|
3235
|
-
className:
|
|
3236
|
-
...
|
|
3237
|
-
} =
|
|
3250
|
+
hidden: h,
|
|
3251
|
+
to: f,
|
|
3252
|
+
icon: p = xt,
|
|
3253
|
+
ariaLabel: b = "Bottom navigation action",
|
|
3254
|
+
onClick: y,
|
|
3255
|
+
variant: g = "submit",
|
|
3256
|
+
color: C = "primary",
|
|
3257
|
+
className: w = "",
|
|
3258
|
+
...T
|
|
3259
|
+
} = i ?? {}, k = !!i && !h, O = (S) => r ? r(c.pathname, S) : bs(c.pathname, S.to);
|
|
3238
3260
|
return /* @__PURE__ */ m(
|
|
3239
3261
|
"nav",
|
|
3240
3262
|
{
|
|
3241
3263
|
className: `fixed -bottom-1 left-0 right-0 z-20 bg-base border-t border-border sm:hidden ${t}`.trim(),
|
|
3242
|
-
children: /* @__PURE__ */
|
|
3243
|
-
|
|
3264
|
+
children: /* @__PURE__ */ N("div", { className: "flex items-center justify-around h-16", children: [
|
|
3265
|
+
u.map((S) => /* @__PURE__ */ m(
|
|
3244
3266
|
xe,
|
|
3245
3267
|
{
|
|
3246
|
-
item:
|
|
3247
|
-
isActive:
|
|
3248
|
-
linkComponent:
|
|
3268
|
+
item: S,
|
|
3269
|
+
isActive: O(S),
|
|
3270
|
+
linkComponent: l
|
|
3249
3271
|
},
|
|
3250
|
-
|
|
3272
|
+
S.id
|
|
3251
3273
|
)),
|
|
3252
|
-
|
|
3253
|
-
|
|
3274
|
+
k && /* @__PURE__ */ m("div", { className: "flex items-center justify-center flex-1", children: /* @__PURE__ */ m(
|
|
3275
|
+
W,
|
|
3254
3276
|
{
|
|
3255
|
-
...
|
|
3277
|
+
...T,
|
|
3256
3278
|
type: "button",
|
|
3257
|
-
variant:
|
|
3258
|
-
color:
|
|
3259
|
-
icon:
|
|
3260
|
-
name:
|
|
3261
|
-
"aria-label":
|
|
3262
|
-
onClick: (
|
|
3263
|
-
|
|
3279
|
+
variant: g,
|
|
3280
|
+
color: C,
|
|
3281
|
+
icon: p,
|
|
3282
|
+
name: b,
|
|
3283
|
+
"aria-label": b,
|
|
3284
|
+
onClick: (S) => {
|
|
3285
|
+
y == null || y(S), !S.defaultPrevented && f && a(f);
|
|
3264
3286
|
},
|
|
3265
|
-
className: `rounded-full! w-12! h-12! min-w-0! p-0! flex items-center justify-center shadow-lg -mt-4 ${
|
|
3287
|
+
className: `rounded-full! w-12! h-12! min-w-0! p-0! flex items-center justify-center shadow-lg -mt-4 ${w}`.trim()
|
|
3266
3288
|
}
|
|
3267
3289
|
) }),
|
|
3268
|
-
|
|
3290
|
+
d.map((S) => /* @__PURE__ */ m(
|
|
3269
3291
|
xe,
|
|
3270
3292
|
{
|
|
3271
|
-
item:
|
|
3272
|
-
isActive:
|
|
3273
|
-
linkComponent:
|
|
3293
|
+
item: S,
|
|
3294
|
+
isActive: O(S),
|
|
3295
|
+
linkComponent: l
|
|
3274
3296
|
},
|
|
3275
|
-
|
|
3297
|
+
S.id
|
|
3276
3298
|
))
|
|
3277
3299
|
] })
|
|
3278
3300
|
}
|
|
3279
3301
|
);
|
|
3280
|
-
},
|
|
3302
|
+
}, ws = (n) => {
|
|
3281
3303
|
const {
|
|
3282
3304
|
message: e,
|
|
3283
3305
|
messageProps: s = { className: "empty-message" },
|
|
3284
3306
|
action: t,
|
|
3285
3307
|
iconProps: r
|
|
3286
3308
|
} = n;
|
|
3287
|
-
return /* @__PURE__ */
|
|
3288
|
-
r && /* @__PURE__ */ m(
|
|
3309
|
+
return /* @__PURE__ */ N("div", { className: "empty-container", children: [
|
|
3310
|
+
r && /* @__PURE__ */ m(U, { ...r }),
|
|
3289
3311
|
/* @__PURE__ */ m("p", { ...s, children: e }),
|
|
3290
|
-
t && /* @__PURE__ */ m(
|
|
3312
|
+
t && /* @__PURE__ */ m(ht, { showTooltips: !1, showText: !0, ...t })
|
|
3291
3313
|
] });
|
|
3292
3314
|
};
|
|
3293
3315
|
export {
|
|
3294
3316
|
de as APIClient,
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3317
|
+
An as Action,
|
|
3318
|
+
xn as Actions,
|
|
3319
|
+
$n as ActionsDropdown,
|
|
3320
|
+
W as AppIconButton,
|
|
3321
|
+
jt as AuthClient,
|
|
3300
3322
|
me as AuthContext,
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3323
|
+
Gs as AuthProvider,
|
|
3324
|
+
Fs as BaseClient,
|
|
3325
|
+
tn as BottomNavActionProvider,
|
|
3326
|
+
Tn as BottomNavigation,
|
|
3327
|
+
Dn as Button,
|
|
3328
|
+
Zs as ConfigProvider,
|
|
3329
|
+
Ps as ConfirmationDialog,
|
|
3307
3330
|
ye as Dialog,
|
|
3308
3331
|
we as DialogActions,
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3332
|
+
nn as Drawer,
|
|
3333
|
+
He as DrawerMenuContext,
|
|
3334
|
+
en as DrawerMenuProvider,
|
|
3335
|
+
ws as Empty,
|
|
3336
|
+
pn as Error,
|
|
3337
|
+
Rs as FormContainer,
|
|
3338
|
+
_s as FormDialog,
|
|
3339
|
+
Y as GlobalActions,
|
|
3340
|
+
Ms as IManager,
|
|
3341
|
+
W as IconButton,
|
|
3342
|
+
Os as ImportDialog,
|
|
3343
|
+
Us as IndexedDBClient,
|
|
3344
|
+
Ws as ManagerProvider,
|
|
3345
|
+
M as Methods,
|
|
3346
|
+
wn as Navbar,
|
|
3347
|
+
Je as NavbarContext,
|
|
3348
|
+
yn as NavbarProvider,
|
|
3349
|
+
Sn as Notification,
|
|
3350
|
+
F as NotificationEnumType,
|
|
3351
|
+
Vs as NotificationProvider,
|
|
3352
|
+
Cn as Onboarding,
|
|
3353
|
+
gn as Page,
|
|
3354
|
+
Ls as ParagraphInput,
|
|
3355
|
+
Is as PasswordInput,
|
|
3356
|
+
bn as PrettyGrid,
|
|
3357
|
+
vn as SplashScreen,
|
|
3358
|
+
gs as Step,
|
|
3359
|
+
Ys as SupabaseAuthProvider,
|
|
3360
|
+
Ks as SupabaseDataClient,
|
|
3338
3361
|
Qe as SupabaseManagerContext,
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3362
|
+
Xs as SupabaseManagerProvider,
|
|
3363
|
+
fs as Tab,
|
|
3364
|
+
ps as TabsLayout,
|
|
3365
|
+
fn as ToTop,
|
|
3366
|
+
Ut as buildQueryUrl,
|
|
3367
|
+
Ce as createQueryClient,
|
|
3368
|
+
js as enumToKeyValueArray,
|
|
3369
|
+
Hs as formatForDatetimeLocal,
|
|
3370
|
+
z as fromLocal,
|
|
3371
|
+
Qs as getFormattedDateTime,
|
|
3372
|
+
Bs as getShortFormattedDateTime,
|
|
3373
|
+
ve as isHttpError,
|
|
3374
|
+
Wt as isMac,
|
|
3352
3375
|
Se as isValidationError,
|
|
3353
3376
|
he as makeRequest,
|
|
3354
|
-
|
|
3355
|
-
|
|
3377
|
+
ke as mapSupabaseSessionToSessionDto,
|
|
3378
|
+
qs as mapValidationErrors,
|
|
3356
3379
|
Fe as parseQueries,
|
|
3357
|
-
|
|
3380
|
+
zs as queryClient,
|
|
3358
3381
|
I as removeFromLocal,
|
|
3359
3382
|
H as toLocal,
|
|
3360
|
-
|
|
3361
|
-
|
|
3383
|
+
Js as useAuth,
|
|
3384
|
+
Jt as useAuthContext,
|
|
3385
|
+
ts as useBottomNavAction,
|
|
3362
3386
|
ie as useConfig,
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3387
|
+
ze as useConfirmationForm,
|
|
3388
|
+
rs as useDeleteAction,
|
|
3389
|
+
cn as useDeleteDialog,
|
|
3390
|
+
We as useDialog,
|
|
3391
|
+
Zt as useDrawerMenu,
|
|
3392
|
+
an as useEditAction,
|
|
3393
|
+
is as useExportAction,
|
|
3394
|
+
hn as useExportActionMutate,
|
|
3395
|
+
Ge as useFormDialog,
|
|
3396
|
+
as as useImportAction,
|
|
3397
|
+
mn as useImportDialog,
|
|
3398
|
+
Gt as useManager,
|
|
3399
|
+
us as useNavbar,
|
|
3376
3400
|
oe as useNotification,
|
|
3377
3401
|
je as useOptionalAuthContext,
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3402
|
+
Ve as useOptionalBottomNavAction,
|
|
3403
|
+
ln as usePostDialog,
|
|
3404
|
+
on as usePostForm,
|
|
3405
|
+
un as usePutDialog,
|
|
3406
|
+
sn as useRegisterBottomNavAction,
|
|
3407
|
+
os as useRestoreAction,
|
|
3408
|
+
dn as useRestoreDialog,
|
|
3409
|
+
cs as useScrollTrigger,
|
|
3410
|
+
Yt as useSupabase,
|
|
3411
|
+
rn as useTimeAge
|
|
3386
3412
|
};
|