@starasia/admin 8.1.0 → 8.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/FilterBar/components/FilterPills.d.ts +5 -1
- package/dist/components/FilterBar/components/pills/DatePill.d.ts +7 -1
- package/dist/components/FilterBar/components/pills/SelectPill.d.ts +2 -2
- package/dist/components/FilterBar/index.d.ts +1 -1
- package/dist/components/FilterBar/types.d.ts +6 -14
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +912 -873
- package/dist/index.umd.js +1 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
export * from "@starasia/alert";
|
|
2
|
-
import { Badges as $e, Badge as
|
|
2
|
+
import { Badges as $e, Badge as vr } from "@starasia/badges";
|
|
3
3
|
export * from "@starasia/badges";
|
|
4
4
|
import { Box as f } from "@starasia/box";
|
|
5
5
|
export * from "@starasia/box";
|
|
6
|
-
import { Breadcrumb as
|
|
6
|
+
import { Breadcrumb as Dr, BreadcrumbItem as Vt, BreadcrumbLink as wr } from "@starasia/breadcrumb";
|
|
7
7
|
export * from "@starasia/breadcrumb";
|
|
8
8
|
import { Button as H } from "@starasia/button";
|
|
9
9
|
export * from "@starasia/button";
|
|
10
10
|
export * from "@starasia/card";
|
|
11
|
-
import { StarasiaDate as
|
|
11
|
+
import { StarasiaDate as ir } from "@starasia/date";
|
|
12
12
|
export * from "@starasia/date";
|
|
13
|
-
import { Dialog as
|
|
13
|
+
import { Dialog as Dt, DialogTitle as lr, DialogBody as wt, DialogFooter as or } from "@starasia/dialog";
|
|
14
14
|
export * from "@starasia/dialog";
|
|
15
|
-
import { Drawer as
|
|
15
|
+
import { Drawer as kr } from "@starasia/drawer";
|
|
16
16
|
export * from "@starasia/drawer";
|
|
17
17
|
import { Dropdown as nt } from "@starasia/dropdown";
|
|
18
18
|
export * from "@starasia/dropdown";
|
|
19
|
-
import { useMediaQuery as he, useDebounce as
|
|
19
|
+
import { useMediaQuery as he, useDebounce as Sr } from "@starasia/hooks";
|
|
20
20
|
export * from "@starasia/hooks";
|
|
21
21
|
import { searchParamsToObject as it } from "@starasia/http";
|
|
22
22
|
export * from "@starasia/http";
|
|
23
23
|
import { Input as Ze } from "@starasia/input";
|
|
24
24
|
export * from "@starasia/input";
|
|
25
|
-
import { Menu as
|
|
25
|
+
import { Menu as Se, MenuButton as ve, MenuLists as Fe, MenuHeading as Fr, MenuBody as Ee, MenuFooter as cr, MenuItem as Ie } from "@starasia/menu";
|
|
26
26
|
export * from "@starasia/menu";
|
|
27
|
-
import { Pagination as
|
|
27
|
+
import { Pagination as ar } from "@starasia/pagination";
|
|
28
28
|
export * from "@starasia/pagination";
|
|
29
29
|
import { storage as ut } from "@starasia/storage";
|
|
30
30
|
export * from "@starasia/storage";
|
|
31
|
-
import { Tr as je, Td as
|
|
31
|
+
import { Tr as je, Td as Me, Table as sr, Thead as Er, Th as Tt, Tbody as Lr } from "@starasia/table";
|
|
32
32
|
export * from "@starasia/table";
|
|
33
33
|
export * from "@starasia/tabs";
|
|
34
|
-
import { Textarea as
|
|
34
|
+
import { Textarea as Mr } from "@starasia/textarea";
|
|
35
35
|
export * from "@starasia/textarea";
|
|
36
|
-
import { useTheme as
|
|
36
|
+
import { useTheme as Wr, ThemeProvider as Ot, useColor as Br } from "@starasia/theme";
|
|
37
37
|
export * from "@starasia/theme";
|
|
38
38
|
export * from "@starasia/toast";
|
|
39
|
-
import { Toggle as
|
|
39
|
+
import { Toggle as kt } from "@starasia/toggle";
|
|
40
40
|
export * from "@starasia/toggle";
|
|
41
|
-
import { Tooltip as
|
|
41
|
+
import { Tooltip as de } from "@starasia/tooltip";
|
|
42
42
|
export * from "@starasia/tooltip";
|
|
43
43
|
import { Checkbox as Xe } from "@starasia/checkbox";
|
|
44
44
|
export * from "@starasia/checkbox";
|
|
45
|
-
import { Radio as
|
|
45
|
+
import { Radio as zr } from "@starasia/radio";
|
|
46
46
|
export * from "@starasia/radio";
|
|
47
47
|
import { Text as v } from "@starasia/text";
|
|
48
48
|
export * from "@starasia/text";
|
|
@@ -58,12 +58,12 @@ export * from "@starasia/story-record";
|
|
|
58
58
|
import { Skeleton as _e } from "@starasia/skeleton";
|
|
59
59
|
export * from "@starasia/skeleton";
|
|
60
60
|
export * from "@starasia/progress-stepper";
|
|
61
|
-
import { jsx as e, Fragment as
|
|
62
|
-
import Ke, { createContext as lt, useState as M, useContext as Re, useCallback as G, useMemo as
|
|
63
|
-
import { useSearchParams as ot, useNavigate as
|
|
64
|
-
import
|
|
65
|
-
import
|
|
66
|
-
const
|
|
61
|
+
import { jsx as e, Fragment as X, jsxs as u } from "react/jsx-runtime";
|
|
62
|
+
import Ke, { createContext as lt, useState as M, useContext as Re, useCallback as G, useMemo as ue, memo as Ce, useEffect as Z, useRef as oe, useLayoutEffect as Ct, forwardRef as St, isValidElement as bt, Children as Ar, useImperativeHandle as Ir } from "react";
|
|
63
|
+
import { useSearchParams as ot, useNavigate as Ft, useLocation as Pe, Outlet as Nt, Link as et, useParams as dr } from "react-router";
|
|
64
|
+
import Rr, { createPortal as ur } from "react-dom";
|
|
65
|
+
import Hr from "react-easy-crop";
|
|
66
|
+
const Vr = {
|
|
67
67
|
menus: [],
|
|
68
68
|
menuBottom: void 0,
|
|
69
69
|
logo: "",
|
|
@@ -71,7 +71,7 @@ const Ir = {
|
|
|
71
71
|
userData: null,
|
|
72
72
|
setUserData: () => {
|
|
73
73
|
}
|
|
74
|
-
},
|
|
74
|
+
}, hr = lt(Vr), fr = () => Re(hr), Tr = (t) => {
|
|
75
75
|
const [r, n] = M(
|
|
76
76
|
(t == null ? void 0 : t.initialUserData) || null
|
|
77
77
|
);
|
|
@@ -79,7 +79,7 @@ const Ir = {
|
|
|
79
79
|
userData: r,
|
|
80
80
|
setUserData: n
|
|
81
81
|
};
|
|
82
|
-
},
|
|
82
|
+
}, mr = lt({
|
|
83
83
|
badges: {},
|
|
84
84
|
setBadge: () => {
|
|
85
85
|
},
|
|
@@ -87,7 +87,7 @@ const Ir = {
|
|
|
87
87
|
},
|
|
88
88
|
clearBadge: () => {
|
|
89
89
|
}
|
|
90
|
-
}),
|
|
90
|
+
}), Or = ({ children: t }) => {
|
|
91
91
|
const [r, n] = M({}), l = G(
|
|
92
92
|
(c) => {
|
|
93
93
|
n(
|
|
@@ -98,8 +98,8 @@ const Ir = {
|
|
|
98
98
|
), i = G(
|
|
99
99
|
(c, h) => {
|
|
100
100
|
n((d) => {
|
|
101
|
-
const
|
|
102
|
-
return { ...d, [c]:
|
|
101
|
+
const g = typeof h == "function" ? h(d[c]) : h;
|
|
102
|
+
return { ...d, [c]: g };
|
|
103
103
|
});
|
|
104
104
|
},
|
|
105
105
|
[]
|
|
@@ -109,15 +109,15 @@ const Ir = {
|
|
|
109
109
|
const d = { ...h };
|
|
110
110
|
return delete d[c], d;
|
|
111
111
|
});
|
|
112
|
-
}, []), a =
|
|
112
|
+
}, []), a = ue(
|
|
113
113
|
() => ({ badges: r, setBadge: i, setBadges: l, clearBadge: o }),
|
|
114
114
|
[r, i, l, o]
|
|
115
115
|
);
|
|
116
|
-
return /* @__PURE__ */ e(
|
|
117
|
-
},
|
|
116
|
+
return /* @__PURE__ */ e(mr.Provider, { value: a, children: t });
|
|
117
|
+
}, Nr = () => Re(mr), ht = (t, r) => {
|
|
118
118
|
const n = r !== void 0 ? r : t;
|
|
119
119
|
return n == null ? null : typeof n == "string" || typeof n == "number" ? { value: n } : n;
|
|
120
|
-
},
|
|
120
|
+
}, _r = ({
|
|
121
121
|
router: t,
|
|
122
122
|
menus: r = [],
|
|
123
123
|
menuBottom: n,
|
|
@@ -126,9 +126,9 @@ const Ir = {
|
|
|
126
126
|
initialUserData: o,
|
|
127
127
|
theme: a
|
|
128
128
|
}) => {
|
|
129
|
-
const c =
|
|
129
|
+
const c = Tr({ initialUserData: o }), { theme: h } = Wr();
|
|
130
130
|
return /* @__PURE__ */ e(
|
|
131
|
-
|
|
131
|
+
hr.Provider,
|
|
132
132
|
{
|
|
133
133
|
value: {
|
|
134
134
|
logo: l,
|
|
@@ -138,11 +138,11 @@ const Ir = {
|
|
|
138
138
|
setUserData: c.setUserData,
|
|
139
139
|
menuBottom: n
|
|
140
140
|
},
|
|
141
|
-
children: /* @__PURE__ */ e(
|
|
141
|
+
children: /* @__PURE__ */ e(Or, { children: a ? /* @__PURE__ */ e(Ot, { value: a, children: t }) : h ? /* @__PURE__ */ e(Ot, { value: h, children: t }) : t })
|
|
142
142
|
}
|
|
143
143
|
);
|
|
144
|
-
},
|
|
145
|
-
function
|
|
144
|
+
}, gl = Ce(_r);
|
|
145
|
+
function jr({
|
|
146
146
|
collapsed: t = !1,
|
|
147
147
|
children: r
|
|
148
148
|
}) {
|
|
@@ -179,11 +179,11 @@ function Or({
|
|
|
179
179
|
}
|
|
180
180
|
);
|
|
181
181
|
}
|
|
182
|
-
const
|
|
183
|
-
function
|
|
184
|
-
const [r, n] = M(null), [l, i] = M(null), [o, a] = M(null), [c, h] = M(0), d = G(() => (h((
|
|
182
|
+
const Et = lt(null);
|
|
183
|
+
function $r({ children: t }) {
|
|
184
|
+
const [r, n] = M(null), [l, i] = M(null), [o, a] = M(null), [c, h] = M(0), d = G(() => (h((g) => g + 1), () => h((g) => g - 1)), []);
|
|
185
185
|
return /* @__PURE__ */ e(
|
|
186
|
-
|
|
186
|
+
Et.Provider,
|
|
187
187
|
{
|
|
188
188
|
value: {
|
|
189
189
|
prependNode: r,
|
|
@@ -199,19 +199,19 @@ function Nr({ children: t }) {
|
|
|
199
199
|
}
|
|
200
200
|
);
|
|
201
201
|
}
|
|
202
|
-
function
|
|
203
|
-
const r = Re(
|
|
204
|
-
return r ? /* @__PURE__ */ u(
|
|
202
|
+
function Zr({ children: t }) {
|
|
203
|
+
const r = Re(Et);
|
|
204
|
+
return r ? /* @__PURE__ */ u(X, { children: [
|
|
205
205
|
/* @__PURE__ */ e("div", { ref: r.setPrependNode, style: { display: "contents" } }),
|
|
206
206
|
r.replaceCount > 0 ? /* @__PURE__ */ e("div", { ref: r.setReplaceNode, style: { display: "contents" } }) : t,
|
|
207
207
|
/* @__PURE__ */ e("div", { ref: r.setAppendNode, style: { display: "contents" } })
|
|
208
|
-
] }) : /* @__PURE__ */ e(
|
|
208
|
+
] }) : /* @__PURE__ */ e(X, { children: t });
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function yl({
|
|
211
211
|
children: t,
|
|
212
212
|
mode: r = "append"
|
|
213
213
|
}) {
|
|
214
|
-
const n = Re(
|
|
214
|
+
const n = Re(Et);
|
|
215
215
|
if (Z(() => {
|
|
216
216
|
if (!(r !== "replace" || !n))
|
|
217
217
|
return n.registerReplace();
|
|
@@ -220,23 +220,23 @@ function hl({
|
|
|
220
220
|
"[HeaderLeftSlot] used outside AppLayout — content not rendered"
|
|
221
221
|
), null;
|
|
222
222
|
const l = r === "prepend" ? n.prependNode : r === "replace" ? n.replaceNode : n.appendNode;
|
|
223
|
-
return l ?
|
|
223
|
+
return l ? ur(t, l) : null;
|
|
224
224
|
}
|
|
225
|
-
const
|
|
226
|
-
function
|
|
225
|
+
const Lt = lt(null);
|
|
226
|
+
function Pr({ children: t }) {
|
|
227
227
|
const [r, n] = M({}), [l, i] = M({}), o = G((h, d) => {
|
|
228
|
-
n((
|
|
228
|
+
n((g) => g[h] === d ? g : { ...g, [h]: d });
|
|
229
229
|
}, []), a = G((h) => (i((d) => ({ ...d, [h]: (d[h] ?? 0) + 1 })), () => i((d) => ({
|
|
230
230
|
...d,
|
|
231
231
|
[h]: Math.max(0, (d[h] ?? 0) - 1)
|
|
232
|
-
}))), []), c =
|
|
232
|
+
}))), []), c = ue(
|
|
233
233
|
() => ({ outletNodes: r, setOutletNode: o, slotCounts: l, registerSlot: a }),
|
|
234
234
|
[r, o, l, a]
|
|
235
235
|
);
|
|
236
|
-
return /* @__PURE__ */ e(
|
|
236
|
+
return /* @__PURE__ */ e(Lt.Provider, { value: c, children: t });
|
|
237
237
|
}
|
|
238
|
-
function
|
|
239
|
-
const n = Re(
|
|
238
|
+
function qr({ slotKey: t, fallback: r }) {
|
|
239
|
+
const n = Re(Lt), l = n ? (n.slotCounts[t] ?? 0) > 0 : !1, i = oe(n == null ? void 0 : n.setOutletNode);
|
|
240
240
|
i.current = n == null ? void 0 : n.setOutletNode;
|
|
241
241
|
const o = G(
|
|
242
242
|
(a) => {
|
|
@@ -246,10 +246,10 @@ function $r({ slotKey: t, fallback: r }) {
|
|
|
246
246
|
[t]
|
|
247
247
|
// slotKey is a stable string from group config
|
|
248
248
|
);
|
|
249
|
-
return /* @__PURE__ */ e(
|
|
249
|
+
return /* @__PURE__ */ e(X, { children: l ? /* @__PURE__ */ e("div", { ref: o, style: { display: "contents" } }) : r });
|
|
250
250
|
}
|
|
251
|
-
function
|
|
252
|
-
const n = Re(
|
|
251
|
+
function pl({ slotKey: t, children: r }) {
|
|
252
|
+
const n = Re(Lt), l = oe(n == null ? void 0 : n.registerSlot);
|
|
253
253
|
if (l.current = n == null ? void 0 : n.registerSlot, Z(() => {
|
|
254
254
|
var o;
|
|
255
255
|
return (o = l.current) == null ? void 0 : o.call(l, t);
|
|
@@ -258,41 +258,41 @@ function fl({ slotKey: t, children: r }) {
|
|
|
258
258
|
"[SidebarGroupSlot] used outside AppLayout — content not rendered"
|
|
259
259
|
), null;
|
|
260
260
|
const i = n.outletNodes[t];
|
|
261
|
-
return i ?
|
|
261
|
+
return i ? ur(r, i) : null;
|
|
262
262
|
}
|
|
263
|
-
const tt = "moduleSwitcherGroupId",
|
|
264
|
-
function
|
|
263
|
+
const tt = "moduleSwitcherGroupId", vt = "sa-module-switcher-change";
|
|
264
|
+
function _t() {
|
|
265
265
|
if (typeof window > "u") return null;
|
|
266
266
|
const t = window.localStorage.getItem(tt);
|
|
267
267
|
if (t === null) return null;
|
|
268
268
|
const r = Number(t);
|
|
269
269
|
return Number.isFinite(r) ? r : null;
|
|
270
270
|
}
|
|
271
|
-
function
|
|
272
|
-
typeof window > "u" || (t === null ? window.localStorage.removeItem(tt) : window.localStorage.setItem(tt, String(t)), window.dispatchEvent(new CustomEvent(
|
|
271
|
+
function gr(t) {
|
|
272
|
+
typeof window > "u" || (t === null ? window.localStorage.removeItem(tt) : window.localStorage.setItem(tt, String(t)), window.dispatchEvent(new CustomEvent(vt, { detail: t })));
|
|
273
273
|
}
|
|
274
|
-
function
|
|
275
|
-
|
|
274
|
+
function xl() {
|
|
275
|
+
gr(null);
|
|
276
276
|
}
|
|
277
|
-
function
|
|
277
|
+
function yr() {
|
|
278
278
|
const [t, r] = M(
|
|
279
|
-
() =>
|
|
279
|
+
() => _t()
|
|
280
280
|
);
|
|
281
281
|
return Z(() => {
|
|
282
282
|
const l = () => {
|
|
283
|
-
r(
|
|
283
|
+
r(_t());
|
|
284
284
|
}, i = (o) => {
|
|
285
285
|
o.key === tt && l();
|
|
286
286
|
};
|
|
287
|
-
return window.addEventListener(
|
|
288
|
-
window.removeEventListener(
|
|
287
|
+
return window.addEventListener(vt, l), window.addEventListener("storage", i), () => {
|
|
288
|
+
window.removeEventListener(vt, l), window.removeEventListener("storage", i);
|
|
289
289
|
};
|
|
290
290
|
}, []), { selectedGroupId: t, setSelectedGroupId: (l) => {
|
|
291
|
-
|
|
291
|
+
gr(l), r(l);
|
|
292
292
|
} };
|
|
293
293
|
}
|
|
294
|
-
let Qe = 0,
|
|
295
|
-
const
|
|
294
|
+
let Qe = 0, Le = !1, jt = /* @__PURE__ */ new Set();
|
|
295
|
+
const $t = () => /* @__PURE__ */ u(
|
|
296
296
|
"svg",
|
|
297
297
|
{
|
|
298
298
|
width: "100%",
|
|
@@ -309,7 +309,7 @@ const jt = () => /* @__PURE__ */ u(
|
|
|
309
309
|
/* @__PURE__ */ e("line", { x1: "6", y1: "1.667", x2: "6", y2: "14.333" })
|
|
310
310
|
]
|
|
311
311
|
}
|
|
312
|
-
),
|
|
312
|
+
), Zt = {
|
|
313
313
|
width: "100%",
|
|
314
314
|
display: "flex",
|
|
315
315
|
alignItems: "center",
|
|
@@ -326,7 +326,7 @@ const jt = () => /* @__PURE__ */ u(
|
|
|
326
326
|
cursor: "pointer",
|
|
327
327
|
textAlign: "left"
|
|
328
328
|
};
|
|
329
|
-
function
|
|
329
|
+
function Cl({
|
|
330
330
|
children: t,
|
|
331
331
|
headerLeftSlot: r,
|
|
332
332
|
profile: n,
|
|
@@ -337,39 +337,39 @@ function gl({
|
|
|
337
337
|
sidebarHeaderContent: c,
|
|
338
338
|
headerActions: h,
|
|
339
339
|
profileRole: d,
|
|
340
|
-
profileMenuButtons:
|
|
341
|
-
profileMenuItems:
|
|
340
|
+
profileMenuButtons: g,
|
|
341
|
+
profileMenuItems: m,
|
|
342
342
|
logoutButton: y
|
|
343
343
|
}) {
|
|
344
344
|
var ze, Ue;
|
|
345
|
-
const [x] = ot(), D = x.get("embed") === "true", p =
|
|
346
|
-
() => new Set(
|
|
347
|
-
), [ne, ie] = M(null), { selectedGroupId: P, setSelectedGroupId: q } =
|
|
345
|
+
const [x] = ot(), D = x.get("embed") === "true", p = fr(), { badges: E } = Nr(), W = Ft(), k = Pe(), C = !he("md"), [L, z] = M(!1), [F, j] = M(!1), [te, K] = M(!1), [$, ee] = M(!1), [Y, re] = M(
|
|
346
|
+
() => new Set(jt)
|
|
347
|
+
), [ne, ie] = M(null), { selectedGroupId: P, setSelectedGroupId: q } = yr();
|
|
348
348
|
Z(() => {
|
|
349
|
-
|
|
349
|
+
jt = Y;
|
|
350
350
|
}, [Y]);
|
|
351
351
|
const ce = oe(null), ge = oe(null);
|
|
352
352
|
Z(() => {
|
|
353
353
|
const b = ce.current;
|
|
354
354
|
if (!b) return;
|
|
355
355
|
const R = () => {
|
|
356
|
-
|
|
356
|
+
Le || (Qe = b.scrollTop);
|
|
357
357
|
};
|
|
358
358
|
return b.addEventListener("scroll", R), () => b.removeEventListener("scroll", R);
|
|
359
359
|
}, []);
|
|
360
360
|
const ye = () => {
|
|
361
361
|
const b = ce.current;
|
|
362
|
-
b && Qe > 0 && (
|
|
363
|
-
|
|
362
|
+
b && Qe > 0 && (Le = !0, b.scrollTop = Qe, requestAnimationFrame(() => {
|
|
363
|
+
Le = !1;
|
|
364
364
|
}));
|
|
365
365
|
};
|
|
366
|
-
|
|
367
|
-
|
|
366
|
+
Ct(() => {
|
|
367
|
+
Le = !0, ye();
|
|
368
368
|
const b = setTimeout(() => {
|
|
369
|
-
|
|
369
|
+
Le = !1;
|
|
370
370
|
}, 300);
|
|
371
371
|
return () => clearTimeout(b);
|
|
372
|
-
}, []),
|
|
372
|
+
}, []), Ct(() => {
|
|
373
373
|
p.menus.length > 0 && (Qe > 0 ? ye() : requestAnimationFrame(() => {
|
|
374
374
|
var R;
|
|
375
375
|
const b = (R = ce.current) == null ? void 0 : R.querySelector(
|
|
@@ -378,9 +378,9 @@ function gl({
|
|
|
378
378
|
b && b.scrollIntoView({ block: "center", behavior: "instant" });
|
|
379
379
|
}));
|
|
380
380
|
}, [p.menus]), Z(() => {
|
|
381
|
-
|
|
381
|
+
Le = !0, ye();
|
|
382
382
|
const b = setTimeout(ye, 0), R = setTimeout(ye, 50), V = setTimeout(ye, 100), w = setTimeout(ye, 200), A = setTimeout(() => {
|
|
383
|
-
|
|
383
|
+
Le = !1;
|
|
384
384
|
}, 300), B = setTimeout(() => {
|
|
385
385
|
const I = ce.current, N = I == null ? void 0 : I.querySelector("[data-menu-active='true']");
|
|
386
386
|
if (I && N) {
|
|
@@ -394,7 +394,7 @@ function gl({
|
|
|
394
394
|
}, [k.pathname]), Z(() => {
|
|
395
395
|
ge.current && (ge.current.scrollTop = 0);
|
|
396
396
|
}, [k.pathname]), Z(() => {
|
|
397
|
-
C &&
|
|
397
|
+
C && K(!1);
|
|
398
398
|
}, [k.pathname, C]), Z(() => {
|
|
399
399
|
C && j(!0);
|
|
400
400
|
}, [C]);
|
|
@@ -437,7 +437,7 @@ function gl({
|
|
|
437
437
|
Z(() => {
|
|
438
438
|
p.menus.length !== 0 && P !== null && !p.menus.some((b) => b.id === P) && q(null);
|
|
439
439
|
}, [p.menus, P, q]);
|
|
440
|
-
const Te =
|
|
440
|
+
const Te = ue(() => {
|
|
441
441
|
if (P !== null)
|
|
442
442
|
return p.menus.filter(
|
|
443
443
|
(V) => V.id === P || V.parentGroupId === P
|
|
@@ -449,7 +449,7 @@ function gl({
|
|
|
449
449
|
];
|
|
450
450
|
}, [p.menus, P]);
|
|
451
451
|
if (D)
|
|
452
|
-
return /* @__PURE__ */ e("main", { style: { height: "100vh", overflowY: "auto", backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)" }, children: t || /* @__PURE__ */ e(
|
|
452
|
+
return /* @__PURE__ */ e("main", { style: { height: "100vh", overflowY: "auto", backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)" }, children: t || /* @__PURE__ */ e(Nt, {}) });
|
|
453
453
|
const Be = (b) => {
|
|
454
454
|
const R = b.children && b.children.length > 0, V = Y.has(b.id), w = R ? b.children.some((I) => fe(I.to)) : fe(b.to), A = ht(b.badge, E[b.id]), B = !!A && F && !C;
|
|
455
455
|
return /* @__PURE__ */ u("div", { "data-menu-active": w || void 0, children: [
|
|
@@ -525,7 +525,7 @@ function gl({
|
|
|
525
525
|
]
|
|
526
526
|
}
|
|
527
527
|
),
|
|
528
|
-
(!F || C) && /* @__PURE__ */ u(
|
|
528
|
+
(!F || C) && /* @__PURE__ */ u(X, { children: [
|
|
529
529
|
/* @__PURE__ */ e(
|
|
530
530
|
"span",
|
|
531
531
|
{
|
|
@@ -705,7 +705,7 @@ function gl({
|
|
|
705
705
|
})()
|
|
706
706
|
] }, b.id);
|
|
707
707
|
};
|
|
708
|
-
return /* @__PURE__ */ e(
|
|
708
|
+
return /* @__PURE__ */ e(Pr, { children: /* @__PURE__ */ u($r, { children: [
|
|
709
709
|
/* @__PURE__ */ u(
|
|
710
710
|
"div",
|
|
711
711
|
{
|
|
@@ -730,7 +730,7 @@ function gl({
|
|
|
730
730
|
pointerEvents: te ? "auto" : "none",
|
|
731
731
|
transition: "opacity 0.3s"
|
|
732
732
|
},
|
|
733
|
-
onClick: () =>
|
|
733
|
+
onClick: () => K(!1)
|
|
734
734
|
}
|
|
735
735
|
),
|
|
736
736
|
/* @__PURE__ */ u(
|
|
@@ -755,8 +755,8 @@ function gl({
|
|
|
755
755
|
/* @__PURE__ */ e(
|
|
756
756
|
"div",
|
|
757
757
|
{
|
|
758
|
-
onMouseEnter: () =>
|
|
759
|
-
onMouseLeave: () =>
|
|
758
|
+
onMouseEnter: () => ee(!0),
|
|
759
|
+
onMouseLeave: () => ee(!1),
|
|
760
760
|
style: {
|
|
761
761
|
height: "4rem",
|
|
762
762
|
display: "flex",
|
|
@@ -769,7 +769,7 @@ function gl({
|
|
|
769
769
|
},
|
|
770
770
|
children: (() => {
|
|
771
771
|
const b = !C && F && !te, R = b && $;
|
|
772
|
-
return /* @__PURE__ */ u(
|
|
772
|
+
return /* @__PURE__ */ u(X, { children: [
|
|
773
773
|
/* @__PURE__ */ u(
|
|
774
774
|
"div",
|
|
775
775
|
{
|
|
@@ -830,7 +830,7 @@ function gl({
|
|
|
830
830
|
cursor: "pointer",
|
|
831
831
|
flexShrink: 0
|
|
832
832
|
},
|
|
833
|
-
children: /* @__PURE__ */ e(
|
|
833
|
+
children: /* @__PURE__ */ e($t, {})
|
|
834
834
|
}
|
|
835
835
|
),
|
|
836
836
|
b && /* @__PURE__ */ e(
|
|
@@ -867,7 +867,7 @@ function gl({
|
|
|
867
867
|
height: "1rem",
|
|
868
868
|
display: "inline-flex"
|
|
869
869
|
},
|
|
870
|
-
children: /* @__PURE__ */ e(
|
|
870
|
+
children: /* @__PURE__ */ e($t, {})
|
|
871
871
|
}
|
|
872
872
|
)
|
|
873
873
|
}
|
|
@@ -875,7 +875,7 @@ function gl({
|
|
|
875
875
|
C && /* @__PURE__ */ e(
|
|
876
876
|
"button",
|
|
877
877
|
{
|
|
878
|
-
onClick: () =>
|
|
878
|
+
onClick: () => K(!1),
|
|
879
879
|
"aria-label": "Close menu",
|
|
880
880
|
style: {
|
|
881
881
|
padding: "0.375rem",
|
|
@@ -910,7 +910,7 @@ function gl({
|
|
|
910
910
|
}
|
|
911
911
|
),
|
|
912
912
|
c && /* @__PURE__ */ e(
|
|
913
|
-
|
|
913
|
+
jr,
|
|
914
914
|
{
|
|
915
915
|
collapsed: C ? !1 : F,
|
|
916
916
|
children: c
|
|
@@ -971,7 +971,7 @@ function gl({
|
|
|
971
971
|
}
|
|
972
972
|
),
|
|
973
973
|
/* @__PURE__ */ e("div", { style: { paddingLeft: "1rem", paddingRight: "1rem", display: "flex", flexDirection: "column", gap: "var(--sa-spacing-xs, 0.25rem)" }, children: b.slotKey ? /* @__PURE__ */ e(
|
|
974
|
-
|
|
974
|
+
qr,
|
|
975
975
|
{
|
|
976
976
|
slotKey: b.slotKey,
|
|
977
977
|
fallback: b.items.map((R) => Be(R))
|
|
@@ -1021,7 +1021,7 @@ function gl({
|
|
|
1021
1021
|
C && /* @__PURE__ */ e(
|
|
1022
1022
|
"button",
|
|
1023
1023
|
{
|
|
1024
|
-
onClick: () =>
|
|
1024
|
+
onClick: () => K(!0),
|
|
1025
1025
|
style: {
|
|
1026
1026
|
padding: "0.375rem",
|
|
1027
1027
|
borderRadius: "0.5rem",
|
|
@@ -1050,12 +1050,12 @@ function gl({
|
|
|
1050
1050
|
)
|
|
1051
1051
|
}
|
|
1052
1052
|
),
|
|
1053
|
-
/* @__PURE__ */ e(
|
|
1053
|
+
/* @__PURE__ */ e(Zr, { children: r })
|
|
1054
1054
|
] }),
|
|
1055
1055
|
/* @__PURE__ */ u("div", { style: { display: "flex", alignItems: "center", gap: "0.75rem" }, children: [
|
|
1056
1056
|
h,
|
|
1057
|
-
/* @__PURE__ */ u(
|
|
1058
|
-
/* @__PURE__ */ e(
|
|
1057
|
+
/* @__PURE__ */ u(Se, { position: "bottom-right", children: [
|
|
1058
|
+
/* @__PURE__ */ e(ve, { children: /* @__PURE__ */ u(
|
|
1059
1059
|
"div",
|
|
1060
1060
|
{
|
|
1061
1061
|
style: {
|
|
@@ -1128,7 +1128,7 @@ function gl({
|
|
|
1128
1128
|
}
|
|
1129
1129
|
) }),
|
|
1130
1130
|
/* @__PURE__ */ u(
|
|
1131
|
-
|
|
1131
|
+
Fe,
|
|
1132
1132
|
{
|
|
1133
1133
|
style: {
|
|
1134
1134
|
width: "280px",
|
|
@@ -1138,7 +1138,7 @@ function gl({
|
|
|
1138
1138
|
marginTop: "16px"
|
|
1139
1139
|
},
|
|
1140
1140
|
children: [
|
|
1141
|
-
/* @__PURE__ */ e(
|
|
1141
|
+
/* @__PURE__ */ e(Fr, { children: /* @__PURE__ */ u(
|
|
1142
1142
|
"div",
|
|
1143
1143
|
{
|
|
1144
1144
|
style: {
|
|
@@ -1218,13 +1218,13 @@ function gl({
|
|
|
1218
1218
|
]
|
|
1219
1219
|
}
|
|
1220
1220
|
) }),
|
|
1221
|
-
(
|
|
1222
|
-
|
|
1221
|
+
(g && g.length > 0 || m) && /* @__PURE__ */ u(Ee, { children: [
|
|
1222
|
+
g == null ? void 0 : g.map((b, R) => /* @__PURE__ */ e(ve, { children: /* @__PURE__ */ u(
|
|
1223
1223
|
"button",
|
|
1224
1224
|
{
|
|
1225
1225
|
type: "button",
|
|
1226
1226
|
onClick: b.onClick,
|
|
1227
|
-
style:
|
|
1227
|
+
style: Zt,
|
|
1228
1228
|
onMouseEnter: (V) => {
|
|
1229
1229
|
V.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)";
|
|
1230
1230
|
},
|
|
@@ -1237,15 +1237,15 @@ function gl({
|
|
|
1237
1237
|
]
|
|
1238
1238
|
}
|
|
1239
1239
|
) }, `${b.label}-${R}`)),
|
|
1240
|
-
|
|
1240
|
+
m
|
|
1241
1241
|
] }),
|
|
1242
|
-
y ?? /* @__PURE__ */ e(
|
|
1242
|
+
y ?? /* @__PURE__ */ e(cr, { children: /* @__PURE__ */ e(ve, { children: /* @__PURE__ */ u(
|
|
1243
1243
|
"button",
|
|
1244
1244
|
{
|
|
1245
1245
|
type: "button",
|
|
1246
1246
|
onClick: He,
|
|
1247
1247
|
style: {
|
|
1248
|
-
|
|
1248
|
+
...Zt,
|
|
1249
1249
|
color: "var(--sa-background-error, #c9184a)",
|
|
1250
1250
|
fontWeight: 500
|
|
1251
1251
|
},
|
|
@@ -1286,7 +1286,7 @@ function gl({
|
|
|
1286
1286
|
flex: 1,
|
|
1287
1287
|
overflowY: "auto"
|
|
1288
1288
|
},
|
|
1289
|
-
children: t || /* @__PURE__ */ e(
|
|
1289
|
+
children: t || /* @__PURE__ */ e(Nt, {})
|
|
1290
1290
|
}
|
|
1291
1291
|
)
|
|
1292
1292
|
] })
|
|
@@ -1308,15 +1308,15 @@ function gl({
|
|
|
1308
1308
|
children: a
|
|
1309
1309
|
}
|
|
1310
1310
|
),
|
|
1311
|
-
/* @__PURE__ */ u(
|
|
1312
|
-
/* @__PURE__ */ e(
|
|
1313
|
-
/* @__PURE__ */ e(
|
|
1314
|
-
/* @__PURE__ */ e(
|
|
1311
|
+
/* @__PURE__ */ u(Dt, { isShow: L, onHide: qe, children: [
|
|
1312
|
+
/* @__PURE__ */ e(lr, { children: "Confirmation Logout" }),
|
|
1313
|
+
/* @__PURE__ */ e(wt, { children: "Are you sure you want to end the session and exit the page?" }),
|
|
1314
|
+
/* @__PURE__ */ e(or, { children: /* @__PURE__ */ e(f, { direction: "column", display: "flex", align: "flex-end", justify: "center", children: /* @__PURE__ */ u(U, { direction: "row", gap: "sm", align: "center", children: [
|
|
1315
1315
|
/* @__PURE__ */ e(f, { direction: "column", children: /* @__PURE__ */ e(H, { secondary: !0, onClick: qe, children: "Cancel" }) }),
|
|
1316
1316
|
/* @__PURE__ */ e(f, { direction: "column", children: /* @__PURE__ */ e(H, { primary: !0, onClick: at, children: "Yes, Sure" }) })
|
|
1317
1317
|
] }) }) })
|
|
1318
1318
|
] }),
|
|
1319
|
-
ne && /* @__PURE__ */ u(
|
|
1319
|
+
ne && /* @__PURE__ */ u(X, { children: [
|
|
1320
1320
|
/* @__PURE__ */ e(
|
|
1321
1321
|
"div",
|
|
1322
1322
|
{
|
|
@@ -1427,7 +1427,7 @@ function gl({
|
|
|
1427
1427
|
] })
|
|
1428
1428
|
] }) });
|
|
1429
1429
|
}
|
|
1430
|
-
const
|
|
1430
|
+
const Mt = St(
|
|
1431
1431
|
({ children: t, ...r }, n) => /* @__PURE__ */ e(
|
|
1432
1432
|
f,
|
|
1433
1433
|
{
|
|
@@ -1441,7 +1441,7 @@ const Lt = kt(
|
|
|
1441
1441
|
children: t
|
|
1442
1442
|
}
|
|
1443
1443
|
)
|
|
1444
|
-
),
|
|
1444
|
+
), Pt = ({
|
|
1445
1445
|
title: t,
|
|
1446
1446
|
iconName: r,
|
|
1447
1447
|
textColor: n,
|
|
@@ -1485,38 +1485,38 @@ const Lt = kt(
|
|
|
1485
1485
|
]
|
|
1486
1486
|
}
|
|
1487
1487
|
);
|
|
1488
|
-
},
|
|
1488
|
+
}, Gr = ({
|
|
1489
1489
|
items: t,
|
|
1490
1490
|
separator: r = "/",
|
|
1491
1491
|
iconName: n,
|
|
1492
1492
|
iconColor: l,
|
|
1493
1493
|
hoverIconColor: i
|
|
1494
1494
|
}) => {
|
|
1495
|
-
const [o, a] = M(!1), c = l ?? "var(--sa-text-subtle, #8c8f97)", h = i ?? "var(--sa-text-subtle, #8c8f97)", d = t.length > 1 ? t[0] : void 0,
|
|
1495
|
+
const [o, a] = M(!1), c = l ?? "var(--sa-text-subtle, #8c8f97)", h = i ?? "var(--sa-text-subtle, #8c8f97)", d = t.length > 1 ? t[0] : void 0, g = !!(d != null && d.to || d != null && d.onClick), m = /* @__PURE__ */ e(
|
|
1496
1496
|
S,
|
|
1497
1497
|
{
|
|
1498
1498
|
name: n || "ChevronLeft",
|
|
1499
1499
|
size: "xs",
|
|
1500
|
-
onMouseEnter:
|
|
1501
|
-
onMouseLeave:
|
|
1500
|
+
onMouseEnter: g ? () => a(!0) : void 0,
|
|
1501
|
+
onMouseLeave: g ? () => a(!1) : void 0,
|
|
1502
1502
|
style: {
|
|
1503
|
-
color:
|
|
1503
|
+
color: g && o ? h : c,
|
|
1504
1504
|
transition: "color 0.15s ease",
|
|
1505
|
-
cursor:
|
|
1505
|
+
cursor: g ? "pointer" : void 0
|
|
1506
1506
|
}
|
|
1507
1507
|
}
|
|
1508
|
-
), y = d != null && d.to ? /* @__PURE__ */ e(et, { to: d.to, replace: !0, style: { textDecoration: "none" }, children:
|
|
1508
|
+
), y = d != null && d.to ? /* @__PURE__ */ e(et, { to: d.to, replace: !0, style: { textDecoration: "none" }, children: m }) : d != null && d.onClick ? /* @__PURE__ */ e(Mt, { onClick: d.onClick, children: m }) : m;
|
|
1509
1509
|
return /* @__PURE__ */ u(f, { direction: "row", gap: "xs", align: "center", children: [
|
|
1510
1510
|
y,
|
|
1511
|
-
/* @__PURE__ */ e(
|
|
1511
|
+
/* @__PURE__ */ e(Dr, { separator: r, size: "md", children: t.map((x, D) => {
|
|
1512
1512
|
const p = D === t.length - 1;
|
|
1513
|
-
return x.to && !p ? /* @__PURE__ */ e(
|
|
1513
|
+
return x.to && !p ? /* @__PURE__ */ e(Vt, { children: /* @__PURE__ */ e(et, { to: x.to, children: x.label }) }, D) : /* @__PURE__ */ e(Vt, { currentPage: p, children: /* @__PURE__ */ e(wr, { onClick: p ? void 0 : x.onClick, children: x.label }) }, D);
|
|
1514
1514
|
}) })
|
|
1515
1515
|
] });
|
|
1516
|
-
},
|
|
1516
|
+
}, bl = (t) => {
|
|
1517
1517
|
const { items: r, separator: n, onClick: l, navigateTo: i, ...o } = t;
|
|
1518
1518
|
return r && r.length > 0 ? /* @__PURE__ */ e(
|
|
1519
|
-
|
|
1519
|
+
Gr,
|
|
1520
1520
|
{
|
|
1521
1521
|
items: r,
|
|
1522
1522
|
separator: n,
|
|
@@ -1524,7 +1524,7 @@ const Lt = kt(
|
|
|
1524
1524
|
iconColor: o.iconColor,
|
|
1525
1525
|
hoverIconColor: o.hoverIconColor
|
|
1526
1526
|
}
|
|
1527
|
-
) : i ? /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(et, { to: i, replace: !0, style: { textDecoration: "none" }, children: /* @__PURE__ */ e(
|
|
1527
|
+
) : i ? /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(et, { to: i, replace: !0, style: { textDecoration: "none" }, children: /* @__PURE__ */ e(Pt, { ...o }) }) }) : /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(Mt, { onClick: l, children: /* @__PURE__ */ e(Pt, { ...o }) }) });
|
|
1528
1528
|
}, ft = [
|
|
1529
1529
|
// brand (blue)
|
|
1530
1530
|
{
|
|
@@ -1569,7 +1569,7 @@ const Lt = kt(
|
|
|
1569
1569
|
activeShadow: "rgba(255, 117, 143, 0.25)"
|
|
1570
1570
|
}
|
|
1571
1571
|
];
|
|
1572
|
-
function
|
|
1572
|
+
function qt(t, r, n) {
|
|
1573
1573
|
return {
|
|
1574
1574
|
display: "flex",
|
|
1575
1575
|
alignItems: "center",
|
|
@@ -1585,7 +1585,7 @@ function Pt(t, r, n) {
|
|
|
1585
1585
|
transition: "box-shadow 0.2s ease, transform 0.2s ease, background-color 0.15s ease, border-color 0.15s ease"
|
|
1586
1586
|
};
|
|
1587
1587
|
}
|
|
1588
|
-
const
|
|
1588
|
+
const Gt = {
|
|
1589
1589
|
fontSize: "11px",
|
|
1590
1590
|
fontWeight: 500,
|
|
1591
1591
|
textAlign: "center",
|
|
@@ -1594,7 +1594,7 @@ const qt = {
|
|
|
1594
1594
|
color: "var(--sa-background-primary, #ffffff)",
|
|
1595
1595
|
lineHeight: "1.3",
|
|
1596
1596
|
maxWidth: "80px"
|
|
1597
|
-
},
|
|
1597
|
+
}, Jt = {
|
|
1598
1598
|
display: "flex",
|
|
1599
1599
|
flexDirection: "column",
|
|
1600
1600
|
alignItems: "center",
|
|
@@ -1604,7 +1604,7 @@ const qt = {
|
|
|
1604
1604
|
cursor: "pointer",
|
|
1605
1605
|
padding: 0
|
|
1606
1606
|
};
|
|
1607
|
-
function
|
|
1607
|
+
function Jr({
|
|
1608
1608
|
isShow: t,
|
|
1609
1609
|
onHide: r,
|
|
1610
1610
|
menus: n,
|
|
@@ -1615,7 +1615,7 @@ function Pr({
|
|
|
1615
1615
|
i(d), r();
|
|
1616
1616
|
}, h = ft[0];
|
|
1617
1617
|
return /* @__PURE__ */ e(
|
|
1618
|
-
|
|
1618
|
+
Dt,
|
|
1619
1619
|
{
|
|
1620
1620
|
isShow: t,
|
|
1621
1621
|
onHide: r,
|
|
@@ -1625,7 +1625,7 @@ function Pr({
|
|
|
1625
1625
|
boxShadow: "none",
|
|
1626
1626
|
border: "none"
|
|
1627
1627
|
},
|
|
1628
|
-
children: /* @__PURE__ */ e(
|
|
1628
|
+
children: /* @__PURE__ */ e(wt, { children: /* @__PURE__ */ u(
|
|
1629
1629
|
"div",
|
|
1630
1630
|
{
|
|
1631
1631
|
style: {
|
|
@@ -1640,26 +1640,26 @@ function Pr({
|
|
|
1640
1640
|
onClick: () => c(null),
|
|
1641
1641
|
onMouseEnter: () => a("all"),
|
|
1642
1642
|
onMouseLeave: () => a(void 0),
|
|
1643
|
-
style:
|
|
1643
|
+
style: Jt,
|
|
1644
1644
|
children: [
|
|
1645
|
-
/* @__PURE__ */ e("div", { style:
|
|
1646
|
-
/* @__PURE__ */ e("span", { style:
|
|
1645
|
+
/* @__PURE__ */ e("div", { style: qt(l === null, o === "all", h), children: /* @__PURE__ */ e("div", { style: { color: h.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(S, { name: "Grid", size: "lg", style: { width: 32, height: 32 } }) }) }),
|
|
1646
|
+
/* @__PURE__ */ e("span", { style: Gt, children: "Semua" })
|
|
1647
1647
|
]
|
|
1648
1648
|
}
|
|
1649
1649
|
),
|
|
1650
|
-
n.map((d,
|
|
1650
|
+
n.map((d, g) => {
|
|
1651
1651
|
var p;
|
|
1652
|
-
const
|
|
1652
|
+
const m = l === d.id, y = o === d.id, x = ((p = d.items[0]) == null ? void 0 : p.icon) ?? "Grid", D = ft[(g + 1) % ft.length];
|
|
1653
1653
|
return /* @__PURE__ */ u(
|
|
1654
1654
|
"button",
|
|
1655
1655
|
{
|
|
1656
1656
|
onClick: () => c(d.id),
|
|
1657
1657
|
onMouseEnter: () => a(d.id),
|
|
1658
1658
|
onMouseLeave: () => a(void 0),
|
|
1659
|
-
style:
|
|
1659
|
+
style: Jt,
|
|
1660
1660
|
children: [
|
|
1661
|
-
/* @__PURE__ */ e("div", { style:
|
|
1662
|
-
/* @__PURE__ */ e("span", { style:
|
|
1661
|
+
/* @__PURE__ */ e("div", { style: qt(m, y, D), children: /* @__PURE__ */ e("div", { style: { color: D.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(S, { name: x, size: "lg", style: { width: 32, height: 32 } }) }) }),
|
|
1662
|
+
/* @__PURE__ */ e("span", { style: Gt, children: d.name })
|
|
1663
1663
|
]
|
|
1664
1664
|
},
|
|
1665
1665
|
d.id
|
|
@@ -1671,19 +1671,19 @@ function Pr({
|
|
|
1671
1671
|
}
|
|
1672
1672
|
);
|
|
1673
1673
|
}
|
|
1674
|
-
function
|
|
1674
|
+
function vl({
|
|
1675
1675
|
onSelect: t,
|
|
1676
1676
|
"aria-label": r = "Pilih module"
|
|
1677
1677
|
} = {}) {
|
|
1678
|
-
const n =
|
|
1679
|
-
var
|
|
1678
|
+
const n = fr(), l = Ft(), { selectedGroupId: i, setSelectedGroupId: o } = yr(), [a, c] = M(!1), h = (d) => {
|
|
1679
|
+
var g;
|
|
1680
1680
|
if (o(d), d !== null) {
|
|
1681
|
-
const
|
|
1681
|
+
const m = n.menus.find((x) => x.id === d), y = (g = m == null ? void 0 : m.items[0]) == null ? void 0 : g.to;
|
|
1682
1682
|
y && l(y);
|
|
1683
1683
|
}
|
|
1684
1684
|
t == null || t(d);
|
|
1685
1685
|
};
|
|
1686
|
-
return /* @__PURE__ */ u(
|
|
1686
|
+
return /* @__PURE__ */ u(X, { children: [
|
|
1687
1687
|
/* @__PURE__ */ u("div", { style: { position: "relative" }, children: [
|
|
1688
1688
|
/* @__PURE__ */ e(
|
|
1689
1689
|
"button",
|
|
@@ -1728,7 +1728,7 @@ function pl({
|
|
|
1728
1728
|
)
|
|
1729
1729
|
] }),
|
|
1730
1730
|
/* @__PURE__ */ e(
|
|
1731
|
-
|
|
1731
|
+
Jr,
|
|
1732
1732
|
{
|
|
1733
1733
|
isShow: a,
|
|
1734
1734
|
onHide: () => c(!1),
|
|
@@ -1739,7 +1739,7 @@ function pl({
|
|
|
1739
1739
|
)
|
|
1740
1740
|
] });
|
|
1741
1741
|
}
|
|
1742
|
-
const
|
|
1742
|
+
const Ur = (t, r) => {
|
|
1743
1743
|
const n = [];
|
|
1744
1744
|
if (r === 0)
|
|
1745
1745
|
return n.push(t), n;
|
|
@@ -1748,7 +1748,7 @@ const qr = (t, r) => {
|
|
|
1748
1748
|
n.push(i);
|
|
1749
1749
|
}
|
|
1750
1750
|
return n;
|
|
1751
|
-
},
|
|
1751
|
+
}, Qr = Ce(
|
|
1752
1752
|
({
|
|
1753
1753
|
value: t,
|
|
1754
1754
|
label: r,
|
|
@@ -1757,14 +1757,14 @@ const qr = (t, r) => {
|
|
|
1757
1757
|
lastIndex: i,
|
|
1758
1758
|
labelAlign: o = "top"
|
|
1759
1759
|
}) => {
|
|
1760
|
-
const a =
|
|
1760
|
+
const a = ue(
|
|
1761
1761
|
() => ({
|
|
1762
1762
|
padding: 0,
|
|
1763
1763
|
paddingBottom: i ? 0 : 12,
|
|
1764
1764
|
verticalAlign: o
|
|
1765
1765
|
}),
|
|
1766
1766
|
[i, o]
|
|
1767
|
-
), c =
|
|
1767
|
+
), c = ue(
|
|
1768
1768
|
() => ({
|
|
1769
1769
|
padding: 0,
|
|
1770
1770
|
paddingRight: 12,
|
|
@@ -1773,15 +1773,15 @@ const qr = (t, r) => {
|
|
|
1773
1773
|
verticalAlign: o
|
|
1774
1774
|
}),
|
|
1775
1775
|
[i, o]
|
|
1776
|
-
), h = () => typeof r == "string" ? /* @__PURE__ */ e(v, { fontWeight: "medium", color: "subtlest", children: r }) : r, d = () => typeof t == "string" || typeof t == "number" ? /* @__PURE__ */ e(v, { color: "primary", fontWeight: "medium", children: t }) : t,
|
|
1776
|
+
), h = () => typeof r == "string" ? /* @__PURE__ */ e(v, { fontWeight: "medium", color: "subtlest", children: r }) : r, d = () => typeof t == "string" || typeof t == "number" ? /* @__PURE__ */ e(v, { color: "primary", fontWeight: "medium", children: t }) : t, g = () => typeof n == "string" || typeof n == "number" ? /* @__PURE__ */ e(v, { fontWeight: "medium", color: "subtlest", children: n }) : n;
|
|
1777
1777
|
return /* @__PURE__ */ u(je, { children: [
|
|
1778
|
-
/* @__PURE__ */ e(
|
|
1779
|
-
n ? /* @__PURE__ */ e(
|
|
1780
|
-
/* @__PURE__ */ e(
|
|
1778
|
+
/* @__PURE__ */ e(Me, { style: a, width: l, children: h() }),
|
|
1779
|
+
n ? /* @__PURE__ */ e(Me, { style: c, width: 24, children: g() }) : null,
|
|
1780
|
+
/* @__PURE__ */ e(Me, { style: a, children: d() })
|
|
1781
1781
|
] });
|
|
1782
1782
|
}
|
|
1783
|
-
),
|
|
1784
|
-
|
|
1783
|
+
), Yr = Ce(({ fields: t, separator: r, labelWidth: n }) => /* @__PURE__ */ e(sr, { children: t.map((l, i) => /* @__PURE__ */ e(
|
|
1784
|
+
Qr,
|
|
1785
1785
|
{
|
|
1786
1786
|
separator: r,
|
|
1787
1787
|
labelWidth: n,
|
|
@@ -1789,7 +1789,7 @@ const qr = (t, r) => {
|
|
|
1789
1789
|
...l
|
|
1790
1790
|
},
|
|
1791
1791
|
`field-group-field-${i}`
|
|
1792
|
-
)) })),
|
|
1792
|
+
)) })), Dl = Ce(
|
|
1793
1793
|
({
|
|
1794
1794
|
maxRow: t = 0,
|
|
1795
1795
|
maxColumn: r = 2,
|
|
@@ -1798,8 +1798,8 @@ const qr = (t, r) => {
|
|
|
1798
1798
|
labelWidth: i = 150,
|
|
1799
1799
|
bordered: o = !1
|
|
1800
1800
|
}) => {
|
|
1801
|
-
const a =
|
|
1802
|
-
() =>
|
|
1801
|
+
const a = ue(
|
|
1802
|
+
() => Ur(l, t),
|
|
1803
1803
|
[l, t]
|
|
1804
1804
|
), c = a.length > 2, h = () => {
|
|
1805
1805
|
switch (r) {
|
|
@@ -1828,7 +1828,7 @@ const qr = (t, r) => {
|
|
|
1828
1828
|
borderWidth: o ? "border" : void 0,
|
|
1829
1829
|
borderStyle: o ? "border-solid" : void 0,
|
|
1830
1830
|
borderColor: o ? "border-subtle" : void 0,
|
|
1831
|
-
children: a.map((d,
|
|
1831
|
+
children: a.map((d, g) => /* @__PURE__ */ e(
|
|
1832
1832
|
f,
|
|
1833
1833
|
{
|
|
1834
1834
|
direction: "column",
|
|
@@ -1836,7 +1836,7 @@ const qr = (t, r) => {
|
|
|
1836
1836
|
width: c ? h() : void 0,
|
|
1837
1837
|
marginBottom: c ? "lg" : void 0,
|
|
1838
1838
|
children: /* @__PURE__ */ e(
|
|
1839
|
-
|
|
1839
|
+
Yr,
|
|
1840
1840
|
{
|
|
1841
1841
|
labelWidth: i,
|
|
1842
1842
|
fields: d,
|
|
@@ -1844,12 +1844,12 @@ const qr = (t, r) => {
|
|
|
1844
1844
|
}
|
|
1845
1845
|
)
|
|
1846
1846
|
},
|
|
1847
|
-
|
|
1847
|
+
g
|
|
1848
1848
|
))
|
|
1849
1849
|
}
|
|
1850
1850
|
);
|
|
1851
1851
|
}
|
|
1852
|
-
),
|
|
1852
|
+
), Xr = ({ backButton: t }) => {
|
|
1853
1853
|
const [r, n] = M(!1), l = (t == null ? void 0 : t.iconColor) ?? "var(--sa-text-subtle, #8c8f97)", i = (t == null ? void 0 : t.textColor) ?? "var(--sa-text-subtle, #8c8f97)", o = (t == null ? void 0 : t.hoverIconColor) ?? "var(--sa-text-subtle, #8c8f97)", a = (t == null ? void 0 : t.hoverTextColor) ?? "var(--sa-text-primary, #292a2e)";
|
|
1854
1854
|
return /* @__PURE__ */ u(
|
|
1855
1855
|
f,
|
|
@@ -1887,7 +1887,7 @@ const qr = (t, r) => {
|
|
|
1887
1887
|
]
|
|
1888
1888
|
}
|
|
1889
1889
|
);
|
|
1890
|
-
},
|
|
1890
|
+
}, Kr = ({
|
|
1891
1891
|
backButton: t,
|
|
1892
1892
|
title: r,
|
|
1893
1893
|
titleIcon: n,
|
|
@@ -1898,29 +1898,29 @@ const qr = (t, r) => {
|
|
|
1898
1898
|
subHeaders: c,
|
|
1899
1899
|
action: h,
|
|
1900
1900
|
titleTagProps: d,
|
|
1901
|
-
containerProps:
|
|
1902
|
-
headerProps:
|
|
1901
|
+
containerProps: g,
|
|
1902
|
+
headerProps: m
|
|
1903
1903
|
}) => {
|
|
1904
|
-
const y = he("lg"), x =
|
|
1904
|
+
const y = he("lg"), x = Ft(), D = Pe(), p = t == null ? void 0 : t.show, E = () => {
|
|
1905
1905
|
if (typeof (t == null ? void 0 : t.onClick) == "function") {
|
|
1906
1906
|
t.onClick();
|
|
1907
1907
|
return;
|
|
1908
1908
|
}
|
|
1909
1909
|
x(-1, { replace: !0 });
|
|
1910
|
-
}, W = () => h ?
|
|
1911
|
-
({ title: F, icon: j, buttonProps: te, onClick:
|
|
1910
|
+
}, W = () => h ? bt(h) ? h : /* @__PURE__ */ e(f, { direction: "row", gap: "lg", children: h.map(
|
|
1911
|
+
({ title: F, icon: j, buttonProps: te, onClick: K }, $) => !F && !j ? null : /* @__PURE__ */ e(
|
|
1912
1912
|
H,
|
|
1913
1913
|
{
|
|
1914
1914
|
fullWidth: !y,
|
|
1915
1915
|
iconLeft: j ? /* @__PURE__ */ e(S, { name: j, size: "md" }) : void 0,
|
|
1916
|
-
onClick:
|
|
1916
|
+
onClick: K,
|
|
1917
1917
|
...te,
|
|
1918
1918
|
children: F
|
|
1919
1919
|
},
|
|
1920
1920
|
`action-${$}`
|
|
1921
1921
|
)
|
|
1922
1922
|
) }) : null, k = () => {
|
|
1923
|
-
const F = /* @__PURE__ */ e(
|
|
1923
|
+
const F = /* @__PURE__ */ e(Xr, { backButton: t });
|
|
1924
1924
|
return t != null && t.navigateTo ? /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(
|
|
1925
1925
|
et,
|
|
1926
1926
|
{
|
|
@@ -1929,20 +1929,20 @@ const qr = (t, r) => {
|
|
|
1929
1929
|
style: { textDecoration: "none" },
|
|
1930
1930
|
children: F
|
|
1931
1931
|
}
|
|
1932
|
-
) }) : /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(
|
|
1932
|
+
) }) : /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(Mt, { onClick: E, children: F }) });
|
|
1933
1933
|
}, O = () => {
|
|
1934
|
-
const F = !!r, j =
|
|
1934
|
+
const F = !!r, j = bt(h) ? !0 : Array.isArray(h) && h.length > 0;
|
|
1935
1935
|
return !F && !j && !p ? null : /* @__PURE__ */ u(
|
|
1936
1936
|
f,
|
|
1937
1937
|
{
|
|
1938
1938
|
direction: "column",
|
|
1939
1939
|
gap: "xs",
|
|
1940
|
-
paddingBlock: (
|
|
1941
|
-
paddingInline: (
|
|
1942
|
-
...
|
|
1940
|
+
paddingBlock: (m == null ? void 0 : m.paddingBlock) ?? "sm",
|
|
1941
|
+
paddingInline: (m == null ? void 0 : m.paddingInline) ?? "md",
|
|
1942
|
+
...m,
|
|
1943
1943
|
style: {
|
|
1944
1944
|
...a ? { borderBottom: "1px solid var(--sa-border-subtle, #0b120e24)" } : {},
|
|
1945
|
-
...
|
|
1945
|
+
...m == null ? void 0 : m.style
|
|
1946
1946
|
},
|
|
1947
1947
|
children: [
|
|
1948
1948
|
p && k(),
|
|
@@ -1967,7 +1967,7 @@ const qr = (t, r) => {
|
|
|
1967
1967
|
}
|
|
1968
1968
|
)
|
|
1969
1969
|
] }),
|
|
1970
|
-
l && /* @__PURE__ */ e(
|
|
1970
|
+
l && /* @__PURE__ */ e(vr, { border: !0, size: "lg", text: l, ...d })
|
|
1971
1971
|
] }) : r : null,
|
|
1972
1972
|
W()
|
|
1973
1973
|
]
|
|
@@ -1979,25 +1979,25 @@ const qr = (t, r) => {
|
|
|
1979
1979
|
}, C = () => {
|
|
1980
1980
|
if (!c || c.length === 0) return null;
|
|
1981
1981
|
let F = 0, j = -1 / 0;
|
|
1982
|
-
return c.forEach((te,
|
|
1982
|
+
return c.forEach((te, K) => {
|
|
1983
1983
|
const $ = te.order ?? 0;
|
|
1984
|
-
$ >= j && (j = $, F =
|
|
1985
|
-
}), c.map(({ content: te, order:
|
|
1984
|
+
$ >= j && (j = $, F = K);
|
|
1985
|
+
}), c.map(({ content: te, order: K, borderBottom: $ = !0 }, ee) => /* @__PURE__ */ e(
|
|
1986
1986
|
f,
|
|
1987
1987
|
{
|
|
1988
1988
|
direction: "column",
|
|
1989
1989
|
paddingTop: "sm",
|
|
1990
|
-
paddingBottom: $ ||
|
|
1990
|
+
paddingBottom: $ || ee === F ? "sm" : "spacing-0",
|
|
1991
1991
|
paddingInline: "md",
|
|
1992
1992
|
style: {
|
|
1993
1993
|
...$ ? {
|
|
1994
1994
|
borderBottom: "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
1995
1995
|
} : {},
|
|
1996
|
-
...
|
|
1996
|
+
...K !== void 0 ? { order: K } : {}
|
|
1997
1997
|
},
|
|
1998
1998
|
children: te
|
|
1999
1999
|
},
|
|
2000
|
-
`sub-header-${
|
|
2000
|
+
`sub-header-${ee}`
|
|
2001
2001
|
));
|
|
2002
2002
|
}, L = () => {
|
|
2003
2003
|
const F = o ? O() : null, j = C();
|
|
@@ -2024,9 +2024,9 @@ const qr = (t, r) => {
|
|
|
2024
2024
|
{
|
|
2025
2025
|
direction: "column",
|
|
2026
2026
|
as: "main",
|
|
2027
|
-
...
|
|
2027
|
+
...g,
|
|
2028
2028
|
style: {
|
|
2029
|
-
...(
|
|
2029
|
+
...(g == null ? void 0 : g.style) ?? {},
|
|
2030
2030
|
animation: "pageLayoutEnter 320ms cubic-bezier(0.16, 1, 0.3, 1) backwards"
|
|
2031
2031
|
},
|
|
2032
2032
|
children: [
|
|
@@ -2036,24 +2036,24 @@ const qr = (t, r) => {
|
|
|
2036
2036
|
},
|
|
2037
2037
|
D.pathname
|
|
2038
2038
|
);
|
|
2039
|
-
},
|
|
2039
|
+
}, wl = Ce(Kr), en = {
|
|
2040
2040
|
icon: "Cross",
|
|
2041
2041
|
title: ""
|
|
2042
|
-
},
|
|
2042
|
+
}, tn = "calc(100vw - 16px)", Ut = (t) => t == null ? void 0 : `min(${typeof t == "number" ? `${t}px` : t}, ${tn})`, rn = St(
|
|
2043
2043
|
({
|
|
2044
2044
|
onHide: t,
|
|
2045
2045
|
show: r,
|
|
2046
2046
|
withBlur: n = !1,
|
|
2047
2047
|
style: l,
|
|
2048
2048
|
children: i,
|
|
2049
|
-
closeButton: o =
|
|
2049
|
+
closeButton: o = en,
|
|
2050
2050
|
width: a,
|
|
2051
2051
|
minWidth: c = "357px",
|
|
2052
2052
|
maxWidth: h = "357px"
|
|
2053
2053
|
}, d) => {
|
|
2054
|
-
const
|
|
2054
|
+
const g = Ut(a ?? c), m = Ut(a ?? h);
|
|
2055
2055
|
return /* @__PURE__ */ e(
|
|
2056
|
-
|
|
2056
|
+
kr,
|
|
2057
2057
|
{
|
|
2058
2058
|
blur: n,
|
|
2059
2059
|
isShow: r,
|
|
@@ -2061,8 +2061,8 @@ const qr = (t, r) => {
|
|
|
2061
2061
|
onHide: t,
|
|
2062
2062
|
ref: d,
|
|
2063
2063
|
style: {
|
|
2064
|
-
minWidth:
|
|
2065
|
-
maxWidth:
|
|
2064
|
+
minWidth: g,
|
|
2065
|
+
maxWidth: m,
|
|
2066
2066
|
...l
|
|
2067
2067
|
},
|
|
2068
2068
|
children: /* @__PURE__ */ u(f, { direction: "column", padding: "lg", children: [
|
|
@@ -2094,7 +2094,7 @@ const qr = (t, r) => {
|
|
|
2094
2094
|
}
|
|
2095
2095
|
);
|
|
2096
2096
|
}
|
|
2097
|
-
),
|
|
2097
|
+
), pr = Ce(
|
|
2098
2098
|
({ children: t, borderBottom: r = !0, padding: n = !0 }) => {
|
|
2099
2099
|
const l = he("lg");
|
|
2100
2100
|
return /* @__PURE__ */ e(
|
|
@@ -2111,7 +2111,7 @@ const qr = (t, r) => {
|
|
|
2111
2111
|
}
|
|
2112
2112
|
);
|
|
2113
2113
|
}
|
|
2114
|
-
),
|
|
2114
|
+
), xr = Ce(
|
|
2115
2115
|
({ children: t, borderTop: r = !0, padding: n = !0 }) => {
|
|
2116
2116
|
const l = he("lg");
|
|
2117
2117
|
return /* @__PURE__ */ e(
|
|
@@ -2128,7 +2128,7 @@ const qr = (t, r) => {
|
|
|
2128
2128
|
}
|
|
2129
2129
|
);
|
|
2130
2130
|
}
|
|
2131
|
-
),
|
|
2131
|
+
), nn = Ce(
|
|
2132
2132
|
({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
2133
2133
|
f,
|
|
2134
2134
|
{
|
|
@@ -2141,7 +2141,7 @@ const qr = (t, r) => {
|
|
|
2141
2141
|
children: t
|
|
2142
2142
|
}
|
|
2143
2143
|
)
|
|
2144
|
-
),
|
|
2144
|
+
), kl = Ce(
|
|
2145
2145
|
({
|
|
2146
2146
|
children: t,
|
|
2147
2147
|
title: r,
|
|
@@ -2153,12 +2153,12 @@ const qr = (t, r) => {
|
|
|
2153
2153
|
containerProps: c,
|
|
2154
2154
|
bodyProps: h,
|
|
2155
2155
|
headerProps: d = { borderBottom: !0 },
|
|
2156
|
-
footerProps:
|
|
2157
|
-
variantTag:
|
|
2156
|
+
footerProps: g = { borderTop: !0 },
|
|
2157
|
+
variantTag: m = "info"
|
|
2158
2158
|
}) => {
|
|
2159
2159
|
const y = he("lg"), x = () => n ? /* @__PURE__ */ u(f, { direction: "row", gap: "sm", align: "center", children: [
|
|
2160
2160
|
/* @__PURE__ */ e(v, { fontWeight: "medium", children: r }),
|
|
2161
|
-
/* @__PURE__ */ e($e, { border: !0, text: n, variant:
|
|
2161
|
+
/* @__PURE__ */ e($e, { border: !0, text: n, variant: m })
|
|
2162
2162
|
] }) : /* @__PURE__ */ e(v, { fontWeight: "medium", children: r }), D = () => i || /* @__PURE__ */ u(
|
|
2163
2163
|
f,
|
|
2164
2164
|
{
|
|
@@ -2196,37 +2196,37 @@ const qr = (t, r) => {
|
|
|
2196
2196
|
...(c == null ? void 0 : c.style) ?? {}
|
|
2197
2197
|
},
|
|
2198
2198
|
children: [
|
|
2199
|
-
i !== null && p ? /* @__PURE__ */ e(
|
|
2200
|
-
/* @__PURE__ */ e(
|
|
2201
|
-
o ? /* @__PURE__ */ e(
|
|
2199
|
+
i !== null && p ? /* @__PURE__ */ e(pr, { ...d, children: D() }) : null,
|
|
2200
|
+
/* @__PURE__ */ e(nn, { ...h, children: t }),
|
|
2201
|
+
o ? /* @__PURE__ */ e(xr, { ...g, children: o }) : null
|
|
2202
2202
|
]
|
|
2203
2203
|
}
|
|
2204
2204
|
);
|
|
2205
2205
|
}
|
|
2206
|
-
),
|
|
2207
|
-
H1:
|
|
2208
|
-
H2:
|
|
2209
|
-
H3:
|
|
2210
|
-
H4:
|
|
2211
|
-
H5:
|
|
2212
|
-
H6:
|
|
2213
|
-
SubH1:
|
|
2214
|
-
SubH2:
|
|
2215
|
-
SubH3:
|
|
2216
|
-
Body1:
|
|
2217
|
-
Body2:
|
|
2218
|
-
Body3:
|
|
2206
|
+
), ln = (t) => /* @__PURE__ */ e(v, { variant: "h1", children: t.children, ...t.props }), on = (t) => /* @__PURE__ */ e(v, { variant: "h2", children: t.children, ...t.props }), cn = (t) => /* @__PURE__ */ e(v, { variant: "h3", children: t.children, ...t.props }), an = (t) => /* @__PURE__ */ e(v, { variant: "h4", children: t.children, ...t.props }), sn = (t) => /* @__PURE__ */ e(v, { variant: "h5", children: t.children, ...t.props }), dn = (t) => /* @__PURE__ */ e(v, { variant: "h6", children: t.children, ...t.props }), un = (t) => /* @__PURE__ */ e(v, { variant: "sub-h1", children: t.children, ...t.props }), hn = (t) => /* @__PURE__ */ e(v, { variant: "sub-h2", children: t.children, ...t.props }), fn = (t) => /* @__PURE__ */ e(v, { variant: "sub-h3", children: t.children, ...t.props }), mn = (t) => /* @__PURE__ */ e(v, { variant: "body-1", children: t.children, ...t.props }), gn = (t) => /* @__PURE__ */ e(v, { variant: "body-2", children: t.children, ...t.props }), yn = (t) => /* @__PURE__ */ e(v, { variant: "body-3", children: t.children, ...t.props }), xe = {
|
|
2207
|
+
H1: ln,
|
|
2208
|
+
H2: on,
|
|
2209
|
+
H3: cn,
|
|
2210
|
+
H4: an,
|
|
2211
|
+
H5: sn,
|
|
2212
|
+
H6: dn,
|
|
2213
|
+
SubH1: un,
|
|
2214
|
+
SubH2: hn,
|
|
2215
|
+
SubH3: fn,
|
|
2216
|
+
Body1: mn,
|
|
2217
|
+
Body2: gn,
|
|
2218
|
+
Body3: yn
|
|
2219
2219
|
}, We = () => {
|
|
2220
|
-
const [t, r] = ot(), n = it(t.toString()), l =
|
|
2220
|
+
const [t, r] = ot(), n = it(t.toString()), l = dr(), i = Pe(), o = l.id;
|
|
2221
2221
|
return {
|
|
2222
2222
|
// query params
|
|
2223
2223
|
setSearchParams: r,
|
|
2224
2224
|
searchParams: t,
|
|
2225
2225
|
searchQueries: n,
|
|
2226
|
-
isHasQuery: (
|
|
2227
|
-
getQueryParam: (
|
|
2226
|
+
isHasQuery: (g, m) => t.has(g) && t.get(g) === m,
|
|
2227
|
+
getQueryParam: (g) => t.get(g),
|
|
2228
2228
|
// route params
|
|
2229
|
-
getRouteParam: (
|
|
2229
|
+
getRouteParam: (g) => l[g],
|
|
2230
2230
|
params: l,
|
|
2231
2231
|
// location info
|
|
2232
2232
|
location: i,
|
|
@@ -2234,7 +2234,7 @@ const qr = (t, r) => {
|
|
|
2234
2234
|
id: o,
|
|
2235
2235
|
hasId: !!o
|
|
2236
2236
|
};
|
|
2237
|
-
},
|
|
2237
|
+
}, pn = (t) => JSON.stringify(t), xn = (t) => JSON.stringify(t), Cn = (t) => JSON.stringify(t), bn = (t) => JSON.stringify(t), vn = (t) => t, Dn = (t) => JSON.stringify(t), rt = ({
|
|
2238
2238
|
value: t,
|
|
2239
2239
|
name: r,
|
|
2240
2240
|
type: n,
|
|
@@ -2249,37 +2249,37 @@ const qr = (t, r) => {
|
|
|
2249
2249
|
let d;
|
|
2250
2250
|
switch (n) {
|
|
2251
2251
|
case "search":
|
|
2252
|
-
d =
|
|
2252
|
+
d = vn(t);
|
|
2253
2253
|
break;
|
|
2254
2254
|
case "dropdown":
|
|
2255
2255
|
case "dropdown-multiple":
|
|
2256
|
-
d =
|
|
2256
|
+
d = pn(t);
|
|
2257
2257
|
break;
|
|
2258
2258
|
case "radio":
|
|
2259
|
-
d =
|
|
2259
|
+
d = xn(t);
|
|
2260
2260
|
break;
|
|
2261
2261
|
case "date-range":
|
|
2262
|
-
d =
|
|
2262
|
+
d = Cn(t);
|
|
2263
2263
|
break;
|
|
2264
2264
|
case "advanced-date-range":
|
|
2265
|
-
d =
|
|
2265
|
+
d = Dn(t);
|
|
2266
2266
|
break;
|
|
2267
2267
|
case "date":
|
|
2268
|
-
d =
|
|
2268
|
+
d = bn(t);
|
|
2269
2269
|
break;
|
|
2270
2270
|
default:
|
|
2271
2271
|
d = t;
|
|
2272
2272
|
break;
|
|
2273
2273
|
}
|
|
2274
2274
|
if (typeof d < "u") {
|
|
2275
|
-
const
|
|
2275
|
+
const m = {
|
|
2276
2276
|
...o[c] && typeof o[c] == "string" ? JSON.parse(o[c]) : void 0,
|
|
2277
2277
|
[r]: d
|
|
2278
2278
|
}, y = { ...o };
|
|
2279
2279
|
a && typeof a == "string" && delete y[a], delete y[h];
|
|
2280
2280
|
const x = {
|
|
2281
2281
|
...y,
|
|
2282
|
-
[c]: JSON.stringify(
|
|
2282
|
+
[c]: JSON.stringify(m)
|
|
2283
2283
|
}, D = new URLSearchParams(o).toString(), p = new URLSearchParams(
|
|
2284
2284
|
x
|
|
2285
2285
|
).toString();
|
|
@@ -2296,7 +2296,7 @@ const qr = (t, r) => {
|
|
|
2296
2296
|
}) => {
|
|
2297
2297
|
const i = n.get(r) || void 0, o = i && typeof i == "string" ? JSON.parse(i) : void 0, a = o ? o[t] : void 0;
|
|
2298
2298
|
return l === "label" && a ? JSON.parse(a)[0].label : l === "value" && a ? JSON.parse(a)[0].value : a;
|
|
2299
|
-
},
|
|
2299
|
+
}, wn = ({
|
|
2300
2300
|
name: t,
|
|
2301
2301
|
filterKey: r = "filter",
|
|
2302
2302
|
searchParams: n,
|
|
@@ -2304,7 +2304,7 @@ const qr = (t, r) => {
|
|
|
2304
2304
|
}) => {
|
|
2305
2305
|
const i = n.get(r) || void 0, o = i && typeof i == "string" ? JSON.parse(i) : void 0, a = o ? o[t] : void 0;
|
|
2306
2306
|
return l === "label" && a ? JSON.parse(a).map((c) => c.label) : l === "value" && a ? JSON.parse(a).map((c) => c.value) : l === "array" && a ? JSON.parse(a) : a;
|
|
2307
|
-
},
|
|
2307
|
+
}, Sl = ({
|
|
2308
2308
|
name: t,
|
|
2309
2309
|
filterKey: r = "filter",
|
|
2310
2310
|
searchParams: n,
|
|
@@ -2312,10 +2312,10 @@ const qr = (t, r) => {
|
|
|
2312
2312
|
}) => {
|
|
2313
2313
|
const i = n.get(r) || void 0, o = i && typeof i == "string" ? JSON.parse(i) : void 0, a = o ? o[t] : void 0;
|
|
2314
2314
|
return l === "id" && a ? JSON.parse(a).id : l === "label" && a ? JSON.parse(a).label : l === "value" && a ? JSON.parse(a).value : a;
|
|
2315
|
-
},
|
|
2315
|
+
}, Cr = (t, r, n) => {
|
|
2316
2316
|
const l = r.get(n || "filter") || void 0, i = l && typeof l == "string" ? JSON.parse(l) : void 0;
|
|
2317
2317
|
return i ? i[t] : void 0;
|
|
2318
|
-
},
|
|
2318
|
+
}, kn = ({
|
|
2319
2319
|
name: t,
|
|
2320
2320
|
filterKey: r = "filter",
|
|
2321
2321
|
searchParams: n
|
|
@@ -2325,30 +2325,30 @@ const qr = (t, r) => {
|
|
|
2325
2325
|
start: o ? JSON.parse(o).from : void 0,
|
|
2326
2326
|
end: o ? JSON.parse(o).to : void 0
|
|
2327
2327
|
};
|
|
2328
|
-
},
|
|
2328
|
+
}, Sn = ({
|
|
2329
2329
|
name: t,
|
|
2330
2330
|
filterKey: r = "filter",
|
|
2331
2331
|
searchParams: n
|
|
2332
2332
|
}) => {
|
|
2333
2333
|
const l = n.get(r || "filter") || void 0, i = l && typeof l == "string" ? JSON.parse(l) : void 0, o = i ? i[t] : void 0;
|
|
2334
2334
|
return o ? JSON.parse(o) : void 0;
|
|
2335
|
-
},
|
|
2335
|
+
}, Fl = (t, {
|
|
2336
2336
|
filterKey: r = "filter",
|
|
2337
2337
|
perPageKey: n = "perPage",
|
|
2338
2338
|
pageKey: l = "page"
|
|
2339
2339
|
}) => {
|
|
2340
2340
|
const i = t.get(r) || void 0, o = t.get(n) || void 0, a = t.get(l) || void 0;
|
|
2341
2341
|
return !!i || !!o || !!a;
|
|
2342
|
-
},
|
|
2342
|
+
}, Fn = ({
|
|
2343
2343
|
isOpen: t,
|
|
2344
2344
|
onClose: r,
|
|
2345
2345
|
filterKey: n,
|
|
2346
2346
|
pageKey: l,
|
|
2347
2347
|
filters: i
|
|
2348
2348
|
}) => {
|
|
2349
|
-
const { searchParams: o, setSearchParams: a, searchQueries: c } = We(), [h, d] = M({}),
|
|
2349
|
+
const { searchParams: o, setSearchParams: a, searchQueries: c } = We(), [h, d] = M({}), g = () => {
|
|
2350
2350
|
o.delete(n || "filter"), a(o);
|
|
2351
|
-
},
|
|
2351
|
+
}, m = (y, x) => {
|
|
2352
2352
|
switch (y.type) {
|
|
2353
2353
|
case "radio": {
|
|
2354
2354
|
const { show: D = !0 } = y;
|
|
@@ -2370,7 +2370,7 @@ const qr = (t, r) => {
|
|
|
2370
2370
|
return null;
|
|
2371
2371
|
}
|
|
2372
2372
|
};
|
|
2373
|
-
return /* @__PURE__ */ e(
|
|
2373
|
+
return /* @__PURE__ */ e(rn, { onHide: r, show: t || !1, children: /* @__PURE__ */ u(f, { direction: "column", gap: "md", children: [
|
|
2374
2374
|
/* @__PURE__ */ u(U, { direction: "row", justify: "space-between", align: "center", children: [
|
|
2375
2375
|
/* @__PURE__ */ e(f, { direction: "column", children: "Filter" }),
|
|
2376
2376
|
/* @__PURE__ */ e(
|
|
@@ -2378,14 +2378,14 @@ const qr = (t, r) => {
|
|
|
2378
2378
|
{
|
|
2379
2379
|
direction: "column",
|
|
2380
2380
|
style: { cursor: "pointer" },
|
|
2381
|
-
onClick:
|
|
2381
|
+
onClick: g,
|
|
2382
2382
|
children: "Reset"
|
|
2383
2383
|
}
|
|
2384
2384
|
)
|
|
2385
2385
|
] }),
|
|
2386
|
-
i == null ? void 0 : i.map((y, x) =>
|
|
2386
|
+
i == null ? void 0 : i.map((y, x) => m(y, x))
|
|
2387
2387
|
] }) });
|
|
2388
|
-
},
|
|
2388
|
+
}, En = ({
|
|
2389
2389
|
searchKey: t = "q",
|
|
2390
2390
|
statusKey: r = "status",
|
|
2391
2391
|
searchPlaceholder: n = "Search",
|
|
@@ -2396,8 +2396,8 @@ const qr = (t, r) => {
|
|
|
2396
2396
|
filterKey: c = "filter",
|
|
2397
2397
|
pageKey: h = "page",
|
|
2398
2398
|
customWidthSearch: d,
|
|
2399
|
-
handleOnReset:
|
|
2400
|
-
filterConfigs:
|
|
2399
|
+
handleOnReset: g,
|
|
2400
|
+
filterConfigs: m,
|
|
2401
2401
|
buttonToggleProps: y,
|
|
2402
2402
|
position: x = "right",
|
|
2403
2403
|
titleSearchLabel: D = "Work Order",
|
|
@@ -2405,7 +2405,7 @@ const qr = (t, r) => {
|
|
|
2405
2405
|
}) => {
|
|
2406
2406
|
const W = (y == null ? void 0 : y.isShowLabel) ?? !0, [k, O] = M(!1), [C, L] = M(0), z = () => {
|
|
2407
2407
|
L((q) => q + 1);
|
|
2408
|
-
}, { searchParams: F, setSearchParams: j, getQueryParam: te } = We(),
|
|
2408
|
+
}, { searchParams: F, setSearchParams: j, getQueryParam: te } = We(), K = it(F.toString()), $ = Cr(t, F, c) || "", [ee, Y] = M($), re = te(c), ie = !!(re && !(() => {
|
|
2409
2409
|
if (re)
|
|
2410
2410
|
try {
|
|
2411
2411
|
const q = JSON.parse(re);
|
|
@@ -2418,14 +2418,14 @@ const qr = (t, r) => {
|
|
|
2418
2418
|
return Z(() => {
|
|
2419
2419
|
Y($);
|
|
2420
2420
|
}, [$]), Z(() => {
|
|
2421
|
-
if (
|
|
2421
|
+
if (ee === $)
|
|
2422
2422
|
return;
|
|
2423
2423
|
const q = window.setTimeout(() => {
|
|
2424
2424
|
rt({
|
|
2425
|
-
value:
|
|
2425
|
+
value: ee,
|
|
2426
2426
|
name: t,
|
|
2427
2427
|
type: "search",
|
|
2428
|
-
searchQueries:
|
|
2428
|
+
searchQueries: K,
|
|
2429
2429
|
setSearchParams: j,
|
|
2430
2430
|
filterKey: c,
|
|
2431
2431
|
pageKey: h
|
|
@@ -2435,10 +2435,10 @@ const qr = (t, r) => {
|
|
|
2435
2435
|
window.clearTimeout(q);
|
|
2436
2436
|
};
|
|
2437
2437
|
}, [
|
|
2438
|
-
|
|
2438
|
+
ee,
|
|
2439
2439
|
$,
|
|
2440
2440
|
t,
|
|
2441
|
-
|
|
2441
|
+
K,
|
|
2442
2442
|
j,
|
|
2443
2443
|
c,
|
|
2444
2444
|
h
|
|
@@ -2456,7 +2456,7 @@ const qr = (t, r) => {
|
|
|
2456
2456
|
{
|
|
2457
2457
|
onClick: () => {
|
|
2458
2458
|
const q = new URLSearchParams(F);
|
|
2459
|
-
q.delete(c), j(q), Y(""), z(),
|
|
2459
|
+
q.delete(c), j(q), Y(""), z(), g && g();
|
|
2460
2460
|
},
|
|
2461
2461
|
variant: "outline",
|
|
2462
2462
|
tone: "neutral",
|
|
@@ -2479,7 +2479,7 @@ const qr = (t, r) => {
|
|
|
2479
2479
|
},
|
|
2480
2480
|
`extended-filter-${He}-${C}`
|
|
2481
2481
|
)),
|
|
2482
|
-
!!(
|
|
2482
|
+
!!(m != null && m.length) && /* @__PURE__ */ e(
|
|
2483
2483
|
H,
|
|
2484
2484
|
{
|
|
2485
2485
|
primary: ie,
|
|
@@ -2547,7 +2547,7 @@ const qr = (t, r) => {
|
|
|
2547
2547
|
value: q,
|
|
2548
2548
|
name: r,
|
|
2549
2549
|
type: "dropdown",
|
|
2550
|
-
searchQueries:
|
|
2550
|
+
searchQueries: K,
|
|
2551
2551
|
setSearchParams: j,
|
|
2552
2552
|
filterKey: c
|
|
2553
2553
|
}),
|
|
@@ -2577,7 +2577,7 @@ const qr = (t, r) => {
|
|
|
2577
2577
|
placeholder: n,
|
|
2578
2578
|
leftIcon: /* @__PURE__ */ e(S, { name: "Search", width: 20, height: 20 }),
|
|
2579
2579
|
onChange: (q) => Y(q.target.value),
|
|
2580
|
-
value:
|
|
2580
|
+
value: ee,
|
|
2581
2581
|
fullWidth: !0
|
|
2582
2582
|
},
|
|
2583
2583
|
C + 1 + c
|
|
@@ -2586,30 +2586,30 @@ const qr = (t, r) => {
|
|
|
2586
2586
|
}
|
|
2587
2587
|
),
|
|
2588
2588
|
/* @__PURE__ */ e(
|
|
2589
|
-
|
|
2589
|
+
Fn,
|
|
2590
2590
|
{
|
|
2591
2591
|
isOpen: k,
|
|
2592
2592
|
onClose: () => O(!1),
|
|
2593
2593
|
filterKey: c,
|
|
2594
|
-
filters:
|
|
2594
|
+
filters: m,
|
|
2595
2595
|
pageKey: h
|
|
2596
2596
|
}
|
|
2597
2597
|
)
|
|
2598
2598
|
]
|
|
2599
2599
|
}
|
|
2600
2600
|
);
|
|
2601
|
-
},
|
|
2602
|
-
function
|
|
2601
|
+
}, Ln = (t) => t === "checkbox-multiple" ? "dropdown-multiple" : t === "radio" ? "dropdown" : t;
|
|
2602
|
+
function Mn({
|
|
2603
2603
|
configs: t,
|
|
2604
2604
|
filterKey: r = "filter",
|
|
2605
2605
|
activeFilterKey: n = "filters",
|
|
2606
2606
|
pageKey: l = "page",
|
|
2607
2607
|
searchKey: i = "q"
|
|
2608
2608
|
}) {
|
|
2609
|
-
const { searchParams: o, setSearchParams: a, searchQueries: c } = We(), h =
|
|
2609
|
+
const { searchParams: o, setSearchParams: a, searchQueries: c } = We(), h = ue(
|
|
2610
2610
|
() => Object.fromEntries(t.map((C) => [C.key, C])),
|
|
2611
2611
|
[t]
|
|
2612
|
-
), d =
|
|
2612
|
+
), d = ue(() => {
|
|
2613
2613
|
const C = (o.get(n) || "").split(",").map((z) => z.trim()).filter(Boolean);
|
|
2614
2614
|
let L = [];
|
|
2615
2615
|
try {
|
|
@@ -2618,7 +2618,7 @@ function Fn({
|
|
|
2618
2618
|
} catch {
|
|
2619
2619
|
}
|
|
2620
2620
|
return t.map((z) => z.key).filter((z) => C.includes(z) || L.includes(z));
|
|
2621
|
-
}, [o, n, r, i, t]),
|
|
2621
|
+
}, [o, n, r, i, t]), g = G(
|
|
2622
2622
|
(C) => {
|
|
2623
2623
|
try {
|
|
2624
2624
|
return C[r] ? JSON.parse(C[r]) : {};
|
|
@@ -2627,7 +2627,7 @@ function Fn({
|
|
|
2627
2627
|
}
|
|
2628
2628
|
},
|
|
2629
2629
|
[r]
|
|
2630
|
-
),
|
|
2630
|
+
), m = G(
|
|
2631
2631
|
(C) => {
|
|
2632
2632
|
const L = { ...c };
|
|
2633
2633
|
C.length ? L[n] = C.join(",") : delete L[n], a(L);
|
|
@@ -2635,14 +2635,14 @@ function Fn({
|
|
|
2635
2635
|
[c, n, a]
|
|
2636
2636
|
), y = G(
|
|
2637
2637
|
(C) => {
|
|
2638
|
-
d.includes(C) ||
|
|
2638
|
+
d.includes(C) || m([...d, C]);
|
|
2639
2639
|
},
|
|
2640
|
-
[d,
|
|
2640
|
+
[d, m]
|
|
2641
2641
|
), x = G(
|
|
2642
2642
|
(C) => {
|
|
2643
2643
|
const L = { ...c }, z = d.filter((j) => j !== C);
|
|
2644
2644
|
z.length ? L[n] = z.join(",") : delete L[n];
|
|
2645
|
-
const F =
|
|
2645
|
+
const F = g(L);
|
|
2646
2646
|
C in F && (delete F[C], Object.keys(F).length ? L[r] = JSON.stringify(F) : delete L[r]), delete L[l], a(L);
|
|
2647
2647
|
},
|
|
2648
2648
|
[
|
|
@@ -2651,7 +2651,7 @@ function Fn({
|
|
|
2651
2651
|
n,
|
|
2652
2652
|
r,
|
|
2653
2653
|
l,
|
|
2654
|
-
|
|
2654
|
+
g,
|
|
2655
2655
|
a
|
|
2656
2656
|
]
|
|
2657
2657
|
), D = G(
|
|
@@ -2664,15 +2664,14 @@ function Fn({
|
|
|
2664
2664
|
case "dropdown-multiple":
|
|
2665
2665
|
case "checkbox-multiple":
|
|
2666
2666
|
case "radio":
|
|
2667
|
-
|
|
2668
|
-
return bn({
|
|
2667
|
+
return wn({
|
|
2669
2668
|
name: C.key,
|
|
2670
2669
|
get: "array",
|
|
2671
2670
|
searchParams: o,
|
|
2672
2671
|
filterKey: r
|
|
2673
2672
|
}) || [];
|
|
2674
2673
|
case "date": {
|
|
2675
|
-
const L =
|
|
2674
|
+
const L = Sn({
|
|
2676
2675
|
name: C.key,
|
|
2677
2676
|
searchParams: o,
|
|
2678
2677
|
filterKey: r
|
|
@@ -2680,7 +2679,7 @@ function Fn({
|
|
|
2680
2679
|
return L ? new Date(L) : void 0;
|
|
2681
2680
|
}
|
|
2682
2681
|
case "date-range": {
|
|
2683
|
-
const { start: L, end: z } =
|
|
2682
|
+
const { start: L, end: z } = kn({
|
|
2684
2683
|
name: C.key,
|
|
2685
2684
|
searchParams: o,
|
|
2686
2685
|
filterKey: r
|
|
@@ -2697,7 +2696,7 @@ function Fn({
|
|
|
2697
2696
|
rt({
|
|
2698
2697
|
value: L,
|
|
2699
2698
|
name: C.key,
|
|
2700
|
-
type:
|
|
2699
|
+
type: Ln(C.type),
|
|
2701
2700
|
searchQueries: c,
|
|
2702
2701
|
setSearchParams: a,
|
|
2703
2702
|
filterKey: r,
|
|
@@ -2707,10 +2706,10 @@ function Fn({
|
|
|
2707
2706
|
[c, a, r, l]
|
|
2708
2707
|
), W = G(
|
|
2709
2708
|
(C) => {
|
|
2710
|
-
const L = { ...c }, z =
|
|
2709
|
+
const L = { ...c }, z = g(L);
|
|
2711
2710
|
C in z && (delete z[C], Object.keys(z).length ? L[r] = JSON.stringify(z) : delete L[r]), delete L[l], a(L);
|
|
2712
2711
|
},
|
|
2713
|
-
[c, r, l,
|
|
2712
|
+
[c, r, l, g, a]
|
|
2714
2713
|
), k = G(() => {
|
|
2715
2714
|
const C = { ...c };
|
|
2716
2715
|
delete C[r], delete C[n], delete C[l], a(C);
|
|
@@ -2728,7 +2727,7 @@ function Fn({
|
|
|
2728
2727
|
clearAll: k
|
|
2729
2728
|
};
|
|
2730
2729
|
}
|
|
2731
|
-
const
|
|
2730
|
+
const Wn = {
|
|
2732
2731
|
get(t) {
|
|
2733
2732
|
return ut.get(t) ?? null;
|
|
2734
2733
|
},
|
|
@@ -2738,7 +2737,7 @@ const En = {
|
|
|
2738
2737
|
remove(t) {
|
|
2739
2738
|
ut.delete(t);
|
|
2740
2739
|
}
|
|
2741
|
-
},
|
|
2740
|
+
}, br = {
|
|
2742
2741
|
columns: (t) => `filterbar:colprefs:${t}`,
|
|
2743
2742
|
savedViews: (t) => `filterbar:views:${t}`
|
|
2744
2743
|
}, gt = (t, r) => {
|
|
@@ -2747,16 +2746,16 @@ const En = {
|
|
|
2747
2746
|
const i = t.hidden.filter((o) => n.has(o));
|
|
2748
2747
|
return { order: l, hidden: i };
|
|
2749
2748
|
};
|
|
2750
|
-
function
|
|
2749
|
+
function Bn({
|
|
2751
2750
|
columns: t,
|
|
2752
2751
|
scopeId: r,
|
|
2753
2752
|
storage: n,
|
|
2754
2753
|
onColumnsChange: l
|
|
2755
2754
|
}) {
|
|
2756
|
-
const i =
|
|
2755
|
+
const i = ue(
|
|
2757
2756
|
() => ({ order: t.map((k) => k.key), hidden: [] }),
|
|
2758
2757
|
[t]
|
|
2759
|
-
), o = r ?
|
|
2758
|
+
), o = r ? br.columns(r) : void 0, [a, c] = M(() => {
|
|
2760
2759
|
if (o) {
|
|
2761
2760
|
const k = n.get(o);
|
|
2762
2761
|
if (k && Array.isArray(k.order)) return gt(k, t);
|
|
@@ -2768,42 +2767,42 @@ function Ln({
|
|
|
2768
2767
|
Z(() => {
|
|
2769
2768
|
d.current || (d.current = !0, l == null || l(a));
|
|
2770
2769
|
}, []);
|
|
2771
|
-
const
|
|
2770
|
+
const g = G(
|
|
2772
2771
|
(k) => {
|
|
2773
2772
|
c(k), o && n.set(o, k), l == null || l(k);
|
|
2774
2773
|
},
|
|
2775
2774
|
[o, n, l]
|
|
2776
|
-
),
|
|
2775
|
+
), m = ue(() => {
|
|
2777
2776
|
const k = new Map(t.map((O) => [O.key, O]));
|
|
2778
2777
|
return a.order.filter((O) => k.has(O)).map((O) => ({ ...k.get(O), visible: !a.hidden.includes(O) }));
|
|
2779
2778
|
}, [a, t]), y = G(
|
|
2780
2779
|
(k) => {
|
|
2781
2780
|
const O = a.hidden.includes(k) ? a.hidden.filter((C) => C !== k) : [...a.hidden, k];
|
|
2782
|
-
|
|
2781
|
+
g({ ...a, hidden: O });
|
|
2783
2782
|
},
|
|
2784
|
-
[a,
|
|
2783
|
+
[a, g]
|
|
2785
2784
|
), x = G(
|
|
2786
2785
|
(k, O) => {
|
|
2787
2786
|
if (k === O) return;
|
|
2788
2787
|
const C = [...a.order], [L] = C.splice(k, 1);
|
|
2789
|
-
C.splice(O, 0, L),
|
|
2788
|
+
C.splice(O, 0, L), g({ ...a, order: C });
|
|
2790
2789
|
},
|
|
2791
|
-
[a,
|
|
2790
|
+
[a, g]
|
|
2792
2791
|
), D = G(
|
|
2793
2792
|
(k) => {
|
|
2794
|
-
|
|
2793
|
+
g({
|
|
2795
2794
|
...a,
|
|
2796
2795
|
hidden: k ? t.filter((O) => !O.locked).map((O) => O.key) : []
|
|
2797
2796
|
});
|
|
2798
2797
|
},
|
|
2799
|
-
[a, t,
|
|
2800
|
-
), p = G(() =>
|
|
2801
|
-
(k) =>
|
|
2802
|
-
[
|
|
2798
|
+
[a, t, g]
|
|
2799
|
+
), p = G(() => g(i), [g, i]), E = G(
|
|
2800
|
+
(k) => g(gt(k, t)),
|
|
2801
|
+
[g, t]
|
|
2803
2802
|
), W = a.hidden.length === 0;
|
|
2804
2803
|
return {
|
|
2805
2804
|
state: a,
|
|
2806
|
-
orderedColumns:
|
|
2805
|
+
orderedColumns: m,
|
|
2807
2806
|
allVisible: W,
|
|
2808
2807
|
toggleVisibility: y,
|
|
2809
2808
|
reorder: x,
|
|
@@ -2812,7 +2811,7 @@ function Ln({
|
|
|
2812
2811
|
applyState: E
|
|
2813
2812
|
};
|
|
2814
2813
|
}
|
|
2815
|
-
function
|
|
2814
|
+
function zn({
|
|
2816
2815
|
scopeId: t,
|
|
2817
2816
|
storage: r,
|
|
2818
2817
|
snapshotKeys: n,
|
|
@@ -2820,11 +2819,11 @@ function Mn({
|
|
|
2820
2819
|
getColumns: i,
|
|
2821
2820
|
applyColumns: o
|
|
2822
2821
|
}) {
|
|
2823
|
-
const { searchParams: a, setSearchParams: c } = We(), h = t ?
|
|
2822
|
+
const { searchParams: a, setSearchParams: c } = We(), h = t ? br.savedViews(t) : void 0, [d, g] = M(
|
|
2824
2823
|
() => h ? r.get(h) || [] : []
|
|
2825
|
-
),
|
|
2824
|
+
), m = G(
|
|
2826
2825
|
(p) => {
|
|
2827
|
-
|
|
2826
|
+
g(p), h && r.set(h, p);
|
|
2828
2827
|
},
|
|
2829
2828
|
[h]
|
|
2830
2829
|
// storage identity is stable (module singleton / caller-provided)
|
|
@@ -2844,12 +2843,12 @@ function Mn({
|
|
|
2844
2843
|
columns: i == null ? void 0 : i(),
|
|
2845
2844
|
createdAt: Date.now()
|
|
2846
2845
|
};
|
|
2847
|
-
|
|
2846
|
+
m([...d, k]);
|
|
2848
2847
|
},
|
|
2849
|
-
[n, a, i,
|
|
2848
|
+
[n, a, i, m, d]
|
|
2850
2849
|
), x = G(
|
|
2851
|
-
(p) =>
|
|
2852
|
-
[
|
|
2850
|
+
(p) => m(d.filter((E) => E.id !== p)),
|
|
2851
|
+
[m, d]
|
|
2853
2852
|
), D = G(
|
|
2854
2853
|
(p) => {
|
|
2855
2854
|
const E = Object.fromEntries(a.entries());
|
|
@@ -2865,13 +2864,13 @@ function Mn({
|
|
|
2865
2864
|
applyView: D
|
|
2866
2865
|
};
|
|
2867
2866
|
}
|
|
2868
|
-
const
|
|
2867
|
+
const An = ({
|
|
2869
2868
|
configs: t,
|
|
2870
2869
|
activeKeys: r,
|
|
2871
2870
|
onToggle: n,
|
|
2872
2871
|
hasActiveFilter: l
|
|
2873
|
-
}) => t.length ? /* @__PURE__ */ u(
|
|
2874
|
-
/* @__PURE__ */ e(
|
|
2872
|
+
}) => t.length ? /* @__PURE__ */ u(Se, { position: "bottom-left", children: [
|
|
2873
|
+
/* @__PURE__ */ e(ve, { children: /* @__PURE__ */ e(
|
|
2875
2874
|
H,
|
|
2876
2875
|
{
|
|
2877
2876
|
variant: l ? "secondary" : "outline",
|
|
@@ -2881,7 +2880,7 @@ const Wn = ({
|
|
|
2881
2880
|
"aria-label": "Add filter"
|
|
2882
2881
|
}
|
|
2883
2882
|
) }),
|
|
2884
|
-
/* @__PURE__ */ e(
|
|
2883
|
+
/* @__PURE__ */ e(Fe, { children: /* @__PURE__ */ e(Ee, { title: "Add Filter", children: t.map((i) => /* @__PURE__ */ e(
|
|
2885
2884
|
Ie,
|
|
2886
2885
|
{
|
|
2887
2886
|
selected: r.includes(i.key),
|
|
@@ -2892,56 +2891,114 @@ const Wn = ({
|
|
|
2892
2891
|
},
|
|
2893
2892
|
i.key
|
|
2894
2893
|
)) }) })
|
|
2895
|
-
] }) : null,
|
|
2894
|
+
] }) : null, Qt = 24, In = (t) => t.length > Qt ? `${t.slice(0, Qt)}...` : t, yt = (t) => t.toLocaleDateString(void 0, {
|
|
2895
|
+
day: "2-digit",
|
|
2896
|
+
month: "short",
|
|
2897
|
+
year: "numeric"
|
|
2898
|
+
}), Yt = (t) => typeof t == "object" && t !== null && "from" in t && "to" in t, Rn = ({
|
|
2896
2899
|
field: t,
|
|
2897
2900
|
value: r,
|
|
2898
2901
|
onChange: n,
|
|
2899
|
-
onClear: l
|
|
2902
|
+
onClear: l,
|
|
2903
|
+
onRemove: i
|
|
2900
2904
|
}) => {
|
|
2901
|
-
const
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2905
|
+
const o = t.type === "date-range";
|
|
2906
|
+
let a = null;
|
|
2907
|
+
r && (Yt(r) && r.from && r.to ? a = `${yt(new Date(r.from))} - ${yt(
|
|
2908
|
+
new Date(r.to)
|
|
2909
|
+
)}` : Yt(r) || (a = yt(new Date(r))));
|
|
2910
|
+
const c = !!a, h = c ? /* @__PURE__ */ u(X, { children: [
|
|
2911
|
+
/* @__PURE__ */ u("span", { style: { fontWeight: 500 }, children: [
|
|
2912
|
+
t.label,
|
|
2913
|
+
":"
|
|
2914
|
+
] }),
|
|
2915
|
+
" ",
|
|
2916
|
+
/* @__PURE__ */ e("span", { style: { fontWeight: 400 }, children: In(a) })
|
|
2917
|
+
] }) : t.label;
|
|
2918
|
+
return /* @__PURE__ */ u(Se, { position: "bottom-left", children: [
|
|
2919
|
+
/* @__PURE__ */ e(ve, { children: /* @__PURE__ */ e(
|
|
2920
|
+
H,
|
|
2921
|
+
{
|
|
2922
|
+
variant: c ? "secondary" : "outline",
|
|
2923
|
+
tone: "neutral",
|
|
2924
|
+
size: "sm",
|
|
2925
|
+
iconLeft: c ? /* @__PURE__ */ e(S, { name: "Calendar", size: "sm" }) : void 0,
|
|
2926
|
+
iconRight: /* @__PURE__ */ e(S, { name: "ChevronSmallDown" }),
|
|
2927
|
+
children: h
|
|
2928
|
+
}
|
|
2929
|
+
) }),
|
|
2930
|
+
/* @__PURE__ */ e(Fe, { children: /* @__PURE__ */ e(
|
|
2931
|
+
Ee,
|
|
2932
|
+
{
|
|
2933
|
+
title: /* @__PURE__ */ u(
|
|
2934
|
+
f,
|
|
2935
|
+
{
|
|
2936
|
+
display: "flex",
|
|
2937
|
+
direction: "row",
|
|
2938
|
+
align: "center",
|
|
2939
|
+
justify: "space-between",
|
|
2940
|
+
fullWidth: !0,
|
|
2941
|
+
children: [
|
|
2942
|
+
/* @__PURE__ */ e(v, { fontSize: "sm", fontWeight: "medium", color: "subtlest", children: t.label }),
|
|
2943
|
+
/* @__PURE__ */ e(de, { label: "Remove filter", position: "right", children: /* @__PURE__ */ e(
|
|
2944
|
+
H,
|
|
2945
|
+
{
|
|
2946
|
+
variant: "link",
|
|
2947
|
+
tone: "error",
|
|
2948
|
+
size: "xs",
|
|
2949
|
+
iconLeft: /* @__PURE__ */ e(S, { name: "Trash1" }),
|
|
2950
|
+
"aria-label": "Remove filter",
|
|
2951
|
+
onClick: i
|
|
2952
|
+
}
|
|
2953
|
+
) })
|
|
2954
|
+
]
|
|
2955
|
+
}
|
|
2956
|
+
),
|
|
2957
|
+
children: /* @__PURE__ */ e(
|
|
2958
|
+
ir,
|
|
2959
|
+
{
|
|
2960
|
+
size: "sm",
|
|
2961
|
+
input: !1,
|
|
2962
|
+
clearable: !0,
|
|
2963
|
+
rangedDate: o,
|
|
2964
|
+
filter: o ? void 0 : t.mode,
|
|
2965
|
+
value: r,
|
|
2966
|
+
onChange: (d) => d == null ? l() : n(d)
|
|
2967
|
+
}
|
|
2968
|
+
)
|
|
2969
|
+
}
|
|
2970
|
+
) })
|
|
2971
|
+
] });
|
|
2972
|
+
}, Xt = 18, Hn = (t) => t.length > Xt ? `${t.slice(0, Xt)}...` : t, Vn = ({
|
|
2916
2973
|
field: t,
|
|
2917
2974
|
value: r,
|
|
2918
2975
|
onChange: n,
|
|
2919
2976
|
onRemove: l
|
|
2920
2977
|
}) => {
|
|
2921
|
-
const i = t.type === "dropdown-multiple"
|
|
2978
|
+
const i = t.type === "dropdown-multiple", o = r.length, [a, c] = M(""), h = t.options, d = (() => {
|
|
2922
2979
|
const D = a.trim().toLowerCase();
|
|
2923
2980
|
return D ? h.filter((p) => p.label.toLowerCase().includes(D)) : h;
|
|
2924
|
-
})(),
|
|
2981
|
+
})(), g = (D) => r.some((p) => p.value === D.value), m = (D) => {
|
|
2925
2982
|
if (!i) {
|
|
2926
2983
|
n([{ label: D.label, value: D.value }]), c("");
|
|
2927
2984
|
return;
|
|
2928
2985
|
}
|
|
2929
2986
|
n(
|
|
2930
|
-
|
|
2987
|
+
g(D) ? r.filter((p) => p.value !== D.value) : [...r, { label: D.label, value: D.value }]
|
|
2931
2988
|
);
|
|
2932
2989
|
}, y = (D) => {
|
|
2933
2990
|
var p;
|
|
2934
2991
|
c(D), (p = t.onSearch) == null || p.call(t, D);
|
|
2935
|
-
}, x = o === 0 ? t.label : /* @__PURE__ */ u(
|
|
2992
|
+
}, x = o === 0 ? t.label : /* @__PURE__ */ u(X, { children: [
|
|
2936
2993
|
/* @__PURE__ */ u("span", { style: { fontWeight: 500 }, children: [
|
|
2937
2994
|
t.label,
|
|
2938
2995
|
":"
|
|
2939
2996
|
] }),
|
|
2940
2997
|
" ",
|
|
2941
|
-
/* @__PURE__ */ e("span", { style: { fontWeight: 400 }, children: o === 1 ?
|
|
2998
|
+
/* @__PURE__ */ e("span", { style: { fontWeight: 400 }, children: o === 1 ? Hn(r[0].label) : `${o} Selected` })
|
|
2942
2999
|
] });
|
|
2943
|
-
return /* @__PURE__ */ u(
|
|
2944
|
-
/* @__PURE__ */ e(
|
|
3000
|
+
return /* @__PURE__ */ u(Se, { position: "bottom-left", children: [
|
|
3001
|
+
/* @__PURE__ */ e(ve, { children: /* @__PURE__ */ e(
|
|
2945
3002
|
H,
|
|
2946
3003
|
{
|
|
2947
3004
|
variant: o > 0 ? "secondary" : "outline",
|
|
@@ -2952,8 +3009,8 @@ const Wn = ({
|
|
|
2952
3009
|
children: x
|
|
2953
3010
|
}
|
|
2954
3011
|
) }),
|
|
2955
|
-
/* @__PURE__ */ e(
|
|
2956
|
-
|
|
3012
|
+
/* @__PURE__ */ e(Fe, { children: /* @__PURE__ */ e(
|
|
3013
|
+
Ee,
|
|
2957
3014
|
{
|
|
2958
3015
|
style: { width: 260 },
|
|
2959
3016
|
title: /* @__PURE__ */ u(
|
|
@@ -2966,7 +3023,7 @@ const Wn = ({
|
|
|
2966
3023
|
fullWidth: !0,
|
|
2967
3024
|
children: [
|
|
2968
3025
|
/* @__PURE__ */ e(v, { fontSize: "sm", fontWeight: "medium", color: "subtlest", children: t.label }),
|
|
2969
|
-
/* @__PURE__ */ e(
|
|
3026
|
+
/* @__PURE__ */ e(de, { label: "Remove filter", position: "right", children: /* @__PURE__ */ e(
|
|
2970
3027
|
H,
|
|
2971
3028
|
{
|
|
2972
3029
|
variant: "link",
|
|
@@ -2988,6 +3045,7 @@ const Wn = ({
|
|
|
2988
3045
|
triggerInput: !0,
|
|
2989
3046
|
fullWidth: !0,
|
|
2990
3047
|
hideChevronIcon: !0,
|
|
3048
|
+
clearable: !0,
|
|
2991
3049
|
multiSelect: i,
|
|
2992
3050
|
searchAble: !0,
|
|
2993
3051
|
searchValue: a,
|
|
@@ -3007,11 +3065,11 @@ const Wn = ({
|
|
|
3007
3065
|
Ie,
|
|
3008
3066
|
{
|
|
3009
3067
|
closeOnSelect: !i,
|
|
3010
|
-
selected:
|
|
3068
|
+
selected: g(D),
|
|
3011
3069
|
startIcon: D.avatar,
|
|
3012
|
-
endIcon:
|
|
3070
|
+
endIcon: g(D) ? /* @__PURE__ */ e(S, { name: "Check" }) : void 0,
|
|
3013
3071
|
description: D.description,
|
|
3014
|
-
onClick: () =>
|
|
3072
|
+
onClick: () => m(D),
|
|
3015
3073
|
children: D.label
|
|
3016
3074
|
},
|
|
3017
3075
|
D.value
|
|
@@ -3022,7 +3080,7 @@ const Wn = ({
|
|
|
3022
3080
|
}
|
|
3023
3081
|
) })
|
|
3024
3082
|
] });
|
|
3025
|
-
},
|
|
3083
|
+
}, Kt = 18, Tn = (t) => t.length > Kt ? `${t.slice(0, Kt)}...` : t, er = ({ checked: t, indeterminate: r }) => /* @__PURE__ */ e("span", { style: { pointerEvents: "none", display: "inline-flex" }, children: /* @__PURE__ */ e(
|
|
3026
3084
|
Xe,
|
|
3027
3085
|
{
|
|
3028
3086
|
size: "sm",
|
|
@@ -3032,30 +3090,30 @@ const Wn = ({
|
|
|
3032
3090
|
},
|
|
3033
3091
|
variant: r ? "indeterminate" : "select"
|
|
3034
3092
|
}
|
|
3035
|
-
) }),
|
|
3093
|
+
) }), On = ({
|
|
3036
3094
|
field: t,
|
|
3037
3095
|
value: r,
|
|
3038
3096
|
onChange: n,
|
|
3039
3097
|
onRemove: l
|
|
3040
3098
|
}) => {
|
|
3041
|
-
const i = new Set(r.map((
|
|
3099
|
+
const i = new Set(r.map((m) => m.value)), o = r.length, a = t.options.length > 0 && t.options.every((m) => i.has(m.value)), c = o > 0 && !a, h = (m) => {
|
|
3042
3100
|
n(
|
|
3043
|
-
i.has(
|
|
3101
|
+
i.has(m.value) ? r.filter((y) => y.value !== m.value) : [...r, { label: m.label, value: m.value }]
|
|
3044
3102
|
);
|
|
3045
3103
|
}, d = () => {
|
|
3046
3104
|
n(
|
|
3047
|
-
a ? [] : t.options.map((
|
|
3105
|
+
a ? [] : t.options.map((m) => ({ label: m.label, value: m.value }))
|
|
3048
3106
|
);
|
|
3049
|
-
},
|
|
3107
|
+
}, g = o === 0 ? t.label : /* @__PURE__ */ u(X, { children: [
|
|
3050
3108
|
/* @__PURE__ */ u(v, { as: "span", fontWeight: "semibold", children: [
|
|
3051
3109
|
t.label,
|
|
3052
3110
|
":"
|
|
3053
3111
|
] }),
|
|
3054
3112
|
" ",
|
|
3055
|
-
/* @__PURE__ */ e(v, { as: "span", children: o === 1 ?
|
|
3113
|
+
/* @__PURE__ */ e(v, { as: "span", children: o === 1 ? Tn(r[0].label) : `${o} Selected` })
|
|
3056
3114
|
] });
|
|
3057
|
-
return /* @__PURE__ */ u(
|
|
3058
|
-
/* @__PURE__ */ e(
|
|
3115
|
+
return /* @__PURE__ */ u(Se, { position: "bottom-left", children: [
|
|
3116
|
+
/* @__PURE__ */ e(ve, { children: /* @__PURE__ */ e(
|
|
3059
3117
|
H,
|
|
3060
3118
|
{
|
|
3061
3119
|
variant: o > 0 ? "secondary" : "outline",
|
|
@@ -3063,11 +3121,11 @@ const Wn = ({
|
|
|
3063
3121
|
size: "sm",
|
|
3064
3122
|
iconLeft: o > 0 ? /* @__PURE__ */ e(S, { name: "Tag", size: "sm" }) : void 0,
|
|
3065
3123
|
iconRight: /* @__PURE__ */ e(S, { name: "ChevronSmallDown" }),
|
|
3066
|
-
children:
|
|
3124
|
+
children: g
|
|
3067
3125
|
}
|
|
3068
3126
|
) }),
|
|
3069
|
-
/* @__PURE__ */ e(
|
|
3070
|
-
|
|
3127
|
+
/* @__PURE__ */ e(Fe, { children: /* @__PURE__ */ u(
|
|
3128
|
+
Ee,
|
|
3071
3129
|
{
|
|
3072
3130
|
style: { width: 240 },
|
|
3073
3131
|
title: /* @__PURE__ */ u(
|
|
@@ -3080,7 +3138,7 @@ const Wn = ({
|
|
|
3080
3138
|
fullWidth: !0,
|
|
3081
3139
|
children: [
|
|
3082
3140
|
/* @__PURE__ */ e(v, { fontSize: "sm", fontWeight: "medium", color: "subtlest", children: t.label }),
|
|
3083
|
-
/* @__PURE__ */ e(
|
|
3141
|
+
/* @__PURE__ */ e(de, { label: "Remove filter", position: "right", children: /* @__PURE__ */ e(
|
|
3084
3142
|
H,
|
|
3085
3143
|
{
|
|
3086
3144
|
variant: "link",
|
|
@@ -3102,7 +3160,7 @@ const Wn = ({
|
|
|
3102
3160
|
selected: a,
|
|
3103
3161
|
onClick: d,
|
|
3104
3162
|
startIcon: /* @__PURE__ */ e(
|
|
3105
|
-
|
|
3163
|
+
er,
|
|
3106
3164
|
{
|
|
3107
3165
|
checked: a || c,
|
|
3108
3166
|
indeterminate: c
|
|
@@ -3111,81 +3169,62 @@ const Wn = ({
|
|
|
3111
3169
|
children: "Select All"
|
|
3112
3170
|
}
|
|
3113
3171
|
),
|
|
3114
|
-
t.options.map((
|
|
3172
|
+
t.options.map((m) => /* @__PURE__ */ e(
|
|
3115
3173
|
Ie,
|
|
3116
3174
|
{
|
|
3117
3175
|
closeOnSelect: !1,
|
|
3118
|
-
selected: i.has(
|
|
3119
|
-
onClick: () => h(
|
|
3120
|
-
startIcon: /* @__PURE__ */ e(
|
|
3121
|
-
children:
|
|
3176
|
+
selected: i.has(m.value),
|
|
3177
|
+
onClick: () => h(m),
|
|
3178
|
+
startIcon: /* @__PURE__ */ e(er, { checked: i.has(m.value) }),
|
|
3179
|
+
children: m.label
|
|
3122
3180
|
},
|
|
3123
|
-
|
|
3181
|
+
m.value
|
|
3124
3182
|
))
|
|
3125
3183
|
]
|
|
3126
3184
|
}
|
|
3127
3185
|
) })
|
|
3128
3186
|
] });
|
|
3129
|
-
},
|
|
3187
|
+
}, Nn = ({
|
|
3130
3188
|
activeKeys: t,
|
|
3131
3189
|
configByKey: r,
|
|
3132
3190
|
getValue: n,
|
|
3133
3191
|
setValue: l,
|
|
3134
3192
|
clearValue: i,
|
|
3135
3193
|
removeFilter: o
|
|
3136
|
-
}) => /* @__PURE__ */ e(
|
|
3194
|
+
}) => /* @__PURE__ */ e(X, { children: t.map((a) => {
|
|
3137
3195
|
const c = r[a];
|
|
3138
3196
|
if (!c) return null;
|
|
3139
|
-
const h = n(c)
|
|
3140
|
-
return /* @__PURE__ */
|
|
3141
|
-
|
|
3197
|
+
const h = n(c);
|
|
3198
|
+
return c.type === "date" || c.type === "date-range" ? /* @__PURE__ */ e(
|
|
3199
|
+
Rn,
|
|
3142
3200
|
{
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
{
|
|
3167
|
-
field: c,
|
|
3168
|
-
value: h || [],
|
|
3169
|
-
onChange: (m) => l(c, m),
|
|
3170
|
-
onRemove: () => o(a)
|
|
3171
|
-
}
|
|
3172
|
-
),
|
|
3173
|
-
d && /* @__PURE__ */ e(
|
|
3174
|
-
H,
|
|
3175
|
-
{
|
|
3176
|
-
variant: "link",
|
|
3177
|
-
tone: "neutral",
|
|
3178
|
-
size: "xs",
|
|
3179
|
-
iconLeft: /* @__PURE__ */ e(S, { name: "CrossSmall" }),
|
|
3180
|
-
"aria-label": `Remove ${c.label} filter`,
|
|
3181
|
-
onClick: () => o(a)
|
|
3182
|
-
}
|
|
3183
|
-
)
|
|
3184
|
-
]
|
|
3201
|
+
field: c,
|
|
3202
|
+
value: h,
|
|
3203
|
+
onChange: (d) => l(c, d),
|
|
3204
|
+
onClear: () => i(a),
|
|
3205
|
+
onRemove: () => o(a)
|
|
3206
|
+
},
|
|
3207
|
+
a
|
|
3208
|
+
) : c.type === "checkbox-multiple" ? /* @__PURE__ */ e(
|
|
3209
|
+
On,
|
|
3210
|
+
{
|
|
3211
|
+
field: c,
|
|
3212
|
+
value: h || [],
|
|
3213
|
+
onChange: (d) => l(c, d),
|
|
3214
|
+
onRemove: () => o(a)
|
|
3215
|
+
},
|
|
3216
|
+
a
|
|
3217
|
+
) : /* @__PURE__ */ e(
|
|
3218
|
+
Vn,
|
|
3219
|
+
{
|
|
3220
|
+
field: c,
|
|
3221
|
+
value: h || [],
|
|
3222
|
+
onChange: (d) => l(c, d),
|
|
3223
|
+
onRemove: () => o(a)
|
|
3185
3224
|
},
|
|
3186
3225
|
a
|
|
3187
3226
|
);
|
|
3188
|
-
}) }),
|
|
3227
|
+
}) }), tr = (t) => `${t} Rows`, _n = ({
|
|
3189
3228
|
pagination: t,
|
|
3190
3229
|
pageKey: r = "page",
|
|
3191
3230
|
perPageKey: n = "perPage",
|
|
@@ -3196,7 +3235,7 @@ const Wn = ({
|
|
|
3196
3235
|
showPagination: c = !0
|
|
3197
3236
|
}) => {
|
|
3198
3237
|
var W;
|
|
3199
|
-
const { searchQueries: h, setSearchParams: d, searchParams:
|
|
3238
|
+
const { searchQueries: h, setSearchParams: d, searchParams: g } = We(), m = g.get(n), y = m ? Number(m) : i, x = (k) => {
|
|
3200
3239
|
d({ ...h, [r]: String(k) });
|
|
3201
3240
|
}, D = (k) => {
|
|
3202
3241
|
d({
|
|
@@ -3206,10 +3245,10 @@ const Wn = ({
|
|
|
3206
3245
|
// reset to first page when page size changes
|
|
3207
3246
|
});
|
|
3208
3247
|
}, p = (t == null ? void 0 : t.rangeStart) ?? (((t == null ? void 0 : t.currentPage) || 0) > 1 ? (((t == null ? void 0 : t.currentPage) || 0) - 1) * ((t == null ? void 0 : t.perPage) || 0) + 1 : 1), E = (t == null ? void 0 : t.rangeEnd) ?? ((t == null ? void 0 : t.totalCurrentPage) !== (t == null ? void 0 : t.perPage) ? t == null ? void 0 : t.totalData : ((t == null ? void 0 : t.currentPage) || 1) * ((t == null ? void 0 : t.totalCurrentPage) || 0));
|
|
3209
|
-
return /* @__PURE__ */ u(
|
|
3248
|
+
return /* @__PURE__ */ u(X, { children: [
|
|
3210
3249
|
o && /* @__PURE__ */ e(v, { fontSize: "sm", fontWeight: "medium", color: "primary", truncate: !0, children: `${p}-${E} of ${((W = t == null ? void 0 : t.totalData) == null ? void 0 : W.toLocaleString()) || 0}` }),
|
|
3211
|
-
a && /* @__PURE__ */ u(
|
|
3212
|
-
/* @__PURE__ */ e(
|
|
3250
|
+
a && /* @__PURE__ */ u(Se, { position: "bottom-left", children: [
|
|
3251
|
+
/* @__PURE__ */ e(ve, { children: /* @__PURE__ */ e(
|
|
3213
3252
|
H,
|
|
3214
3253
|
{
|
|
3215
3254
|
variant: "outline",
|
|
@@ -3217,15 +3256,15 @@ const Wn = ({
|
|
|
3217
3256
|
size: "xs",
|
|
3218
3257
|
iconRight: /* @__PURE__ */ e(S, { name: "ChevronSmallDown" }),
|
|
3219
3258
|
"aria-label": "Rows per page",
|
|
3220
|
-
children:
|
|
3259
|
+
children: tr(y)
|
|
3221
3260
|
}
|
|
3222
3261
|
) }),
|
|
3223
|
-
/* @__PURE__ */ e(
|
|
3262
|
+
/* @__PURE__ */ e(Fe, { children: /* @__PURE__ */ e(Ee, { children: l.map((k) => /* @__PURE__ */ e(
|
|
3224
3263
|
Ie,
|
|
3225
3264
|
{
|
|
3226
3265
|
selected: k === y,
|
|
3227
3266
|
onClick: () => D(String(k)),
|
|
3228
|
-
children:
|
|
3267
|
+
children: tr(k)
|
|
3229
3268
|
},
|
|
3230
3269
|
k
|
|
3231
3270
|
)) }) })
|
|
@@ -3242,7 +3281,7 @@ const Wn = ({
|
|
|
3242
3281
|
borderRight: "1px solid var(--sa-border-subtle, rgba(11, 18, 14, 0.14))"
|
|
3243
3282
|
},
|
|
3244
3283
|
children: /* @__PURE__ */ e(
|
|
3245
|
-
|
|
3284
|
+
ar,
|
|
3246
3285
|
{
|
|
3247
3286
|
size: "sm",
|
|
3248
3287
|
variant: "neutral",
|
|
@@ -3256,7 +3295,7 @@ const Wn = ({
|
|
|
3256
3295
|
)
|
|
3257
3296
|
] });
|
|
3258
3297
|
};
|
|
3259
|
-
function
|
|
3298
|
+
function jn(t, r, n = !0) {
|
|
3260
3299
|
Z(() => {
|
|
3261
3300
|
if (!n) return;
|
|
3262
3301
|
const l = (i) => {
|
|
@@ -3268,16 +3307,16 @@ function Tn(t, r, n = !0) {
|
|
|
3268
3307
|
return window.addEventListener("keydown", l), () => window.removeEventListener("keydown", l);
|
|
3269
3308
|
}, [t, r, n]);
|
|
3270
3309
|
}
|
|
3271
|
-
const
|
|
3310
|
+
const $n = 240, Zn = ({
|
|
3272
3311
|
searchKey: t = "q",
|
|
3273
3312
|
filterKey: r = "filter",
|
|
3274
3313
|
pageKey: n = "page",
|
|
3275
3314
|
placeholder: l = "Search",
|
|
3276
3315
|
shortcut: i = "/"
|
|
3277
3316
|
}) => {
|
|
3278
|
-
const { searchParams: o, setSearchParams: a, searchQueries: c } = We(), h =
|
|
3317
|
+
const { searchParams: o, setSearchParams: a, searchQueries: c } = We(), h = Cr(t, o, r) || "", [d, g] = M(!!h), [m, y] = M(!h), [x, D] = M(h), p = Sr(x, 350), E = oe(null);
|
|
3279
3318
|
Z(() => {
|
|
3280
|
-
D(h), h &&
|
|
3319
|
+
D(h), h && g(!0);
|
|
3281
3320
|
}, [h]), Z(() => {
|
|
3282
3321
|
d && y(!1);
|
|
3283
3322
|
}, [d]), Z(() => {
|
|
@@ -3292,15 +3331,15 @@ const On = 240, Nn = ({
|
|
|
3292
3331
|
});
|
|
3293
3332
|
}, [p]);
|
|
3294
3333
|
const W = G(() => {
|
|
3295
|
-
|
|
3334
|
+
g(!0), requestAnimationFrame(() => {
|
|
3296
3335
|
var L;
|
|
3297
3336
|
return (L = E.current) == null ? void 0 : L.focus();
|
|
3298
3337
|
});
|
|
3299
3338
|
}, []);
|
|
3300
|
-
return
|
|
3339
|
+
return jn(i, W), // No internal gap: the trigger and the animated input are never visible at
|
|
3301
3340
|
// the same time, so spacing to neighbours is handled by the parent cluster.
|
|
3302
3341
|
/* @__PURE__ */ u(f, { display: "flex", direction: "row", align: "center", gap: "spacing-0", children: [
|
|
3303
|
-
|
|
3342
|
+
m && /* @__PURE__ */ e(
|
|
3304
3343
|
H,
|
|
3305
3344
|
{
|
|
3306
3345
|
variant: "outline",
|
|
@@ -3320,7 +3359,7 @@ const On = 240, Nn = ({
|
|
|
3320
3359
|
},
|
|
3321
3360
|
style: {
|
|
3322
3361
|
position: "relative",
|
|
3323
|
-
width: d ?
|
|
3362
|
+
width: d ? $n : 0,
|
|
3324
3363
|
overflow: "hidden",
|
|
3325
3364
|
transition: "width 220ms ease"
|
|
3326
3365
|
},
|
|
@@ -3337,10 +3376,10 @@ const On = 240, Nn = ({
|
|
|
3337
3376
|
onChange: (L) => D(L.target.value),
|
|
3338
3377
|
onKeyDown: (L) => {
|
|
3339
3378
|
var z;
|
|
3340
|
-
L.key === "Escape" && !x && (
|
|
3379
|
+
L.key === "Escape" && !x && (g(!1), (z = E.current) == null || z.blur());
|
|
3341
3380
|
},
|
|
3342
3381
|
onBlur: () => {
|
|
3343
|
-
x ||
|
|
3382
|
+
x || g(!1);
|
|
3344
3383
|
},
|
|
3345
3384
|
tabIndex: d ? 0 : -1
|
|
3346
3385
|
}
|
|
@@ -3373,7 +3412,7 @@ const On = 240, Nn = ({
|
|
|
3373
3412
|
}
|
|
3374
3413
|
)
|
|
3375
3414
|
] });
|
|
3376
|
-
},
|
|
3415
|
+
}, Pn = ({
|
|
3377
3416
|
columns: t,
|
|
3378
3417
|
allVisible: r,
|
|
3379
3418
|
onToggle: n,
|
|
@@ -3382,12 +3421,12 @@ const On = 240, Nn = ({
|
|
|
3382
3421
|
}) => {
|
|
3383
3422
|
const [o, a] = M(null), [c, h] = M(null), d = () => {
|
|
3384
3423
|
o !== null && c !== null && o !== c && l(o, c), a(null), h(null);
|
|
3385
|
-
},
|
|
3386
|
-
const x =
|
|
3387
|
-
x < 0 || x >= t.length || l(
|
|
3424
|
+
}, g = (m, y) => {
|
|
3425
|
+
const x = m + y;
|
|
3426
|
+
x < 0 || x >= t.length || l(m, x);
|
|
3388
3427
|
};
|
|
3389
|
-
return /* @__PURE__ */ u(
|
|
3390
|
-
/* @__PURE__ */ e(
|
|
3428
|
+
return /* @__PURE__ */ u(Se, { position: "bottom-right", children: [
|
|
3429
|
+
/* @__PURE__ */ e(ve, { children: /* @__PURE__ */ e(
|
|
3391
3430
|
H,
|
|
3392
3431
|
{
|
|
3393
3432
|
variant: r ? "outline" : "secondary",
|
|
@@ -3397,7 +3436,7 @@ const On = 240, Nn = ({
|
|
|
3397
3436
|
"aria-label": "Customize columns"
|
|
3398
3437
|
}
|
|
3399
3438
|
) }),
|
|
3400
|
-
/* @__PURE__ */ e(
|
|
3439
|
+
/* @__PURE__ */ e(Fe, { children: /* @__PURE__ */ e(Ee, { children: /* @__PURE__ */ u(
|
|
3401
3440
|
f,
|
|
3402
3441
|
{
|
|
3403
3442
|
padding: "sm",
|
|
@@ -3430,8 +3469,8 @@ const On = 240, Nn = ({
|
|
|
3430
3469
|
]
|
|
3431
3470
|
}
|
|
3432
3471
|
),
|
|
3433
|
-
/* @__PURE__ */ e(f, { direction: "column", overflow: "overflow-y-auto", children: t.map((
|
|
3434
|
-
const x = !
|
|
3472
|
+
/* @__PURE__ */ e(f, { direction: "column", overflow: "overflow-y-auto", children: t.map((m, y) => {
|
|
3473
|
+
const x = !m.locked;
|
|
3435
3474
|
return /* @__PURE__ */ u(
|
|
3436
3475
|
f,
|
|
3437
3476
|
{
|
|
@@ -3461,11 +3500,11 @@ const On = 240, Nn = ({
|
|
|
3461
3500
|
justify: "center",
|
|
3462
3501
|
role: "button",
|
|
3463
3502
|
tabIndex: x ? 0 : -1,
|
|
3464
|
-
"aria-label": `Reorder ${
|
|
3503
|
+
"aria-label": `Reorder ${m.title}`,
|
|
3465
3504
|
"aria-disabled": !x || void 0,
|
|
3466
3505
|
color: "icon-subtlest",
|
|
3467
3506
|
onKeyDown: (p) => {
|
|
3468
|
-
x && (p.key === "ArrowUp" ? (p.preventDefault(),
|
|
3507
|
+
x && (p.key === "ArrowUp" ? (p.preventDefault(), g(y, -1)) : p.key === "ArrowDown" && (p.preventDefault(), g(y, 1)));
|
|
3469
3508
|
},
|
|
3470
3509
|
style: {
|
|
3471
3510
|
display: "inline-flex",
|
|
@@ -3475,7 +3514,7 @@ const On = 240, Nn = ({
|
|
|
3475
3514
|
children: /* @__PURE__ */ e(S, { name: "DragVertical", width: 16, height: 16 })
|
|
3476
3515
|
}
|
|
3477
3516
|
),
|
|
3478
|
-
|
|
3517
|
+
m.icon && /* @__PURE__ */ e(f, { direction: "column", align: "center", color: "icon-subtle", style: { display: "inline-flex" }, children: m.icon }),
|
|
3479
3518
|
/* @__PURE__ */ e(
|
|
3480
3519
|
v,
|
|
3481
3520
|
{
|
|
@@ -3483,29 +3522,29 @@ const On = 240, Nn = ({
|
|
|
3483
3522
|
fontWeight: "medium",
|
|
3484
3523
|
color: "primary",
|
|
3485
3524
|
truncate: !0,
|
|
3486
|
-
children:
|
|
3525
|
+
children: m.title
|
|
3487
3526
|
}
|
|
3488
3527
|
),
|
|
3489
3528
|
/* @__PURE__ */ e(f, { direction: "column", style: { marginLeft: "auto" }, children: /* @__PURE__ */ e(
|
|
3490
|
-
|
|
3529
|
+
kt,
|
|
3491
3530
|
{
|
|
3492
3531
|
size: "sm",
|
|
3493
|
-
checked:
|
|
3494
|
-
disabled:
|
|
3495
|
-
onChange: () => n(
|
|
3496
|
-
"aria-label": `Toggle ${
|
|
3532
|
+
checked: m.visible,
|
|
3533
|
+
disabled: m.locked,
|
|
3534
|
+
onChange: () => n(m.key),
|
|
3535
|
+
"aria-label": `Toggle ${m.title} column`
|
|
3497
3536
|
}
|
|
3498
3537
|
) })
|
|
3499
3538
|
]
|
|
3500
3539
|
},
|
|
3501
|
-
|
|
3540
|
+
m.key
|
|
3502
3541
|
);
|
|
3503
3542
|
}) })
|
|
3504
3543
|
]
|
|
3505
3544
|
}
|
|
3506
3545
|
) }) })
|
|
3507
3546
|
] });
|
|
3508
|
-
},
|
|
3547
|
+
}, qn = ({
|
|
3509
3548
|
views: t,
|
|
3510
3549
|
onApply: r,
|
|
3511
3550
|
onDelete: n,
|
|
@@ -3515,8 +3554,8 @@ const On = 240, Nn = ({
|
|
|
3515
3554
|
const c = i.trim();
|
|
3516
3555
|
c && (l(c), o(""));
|
|
3517
3556
|
};
|
|
3518
|
-
return /* @__PURE__ */ u(
|
|
3519
|
-
/* @__PURE__ */ e(
|
|
3557
|
+
return /* @__PURE__ */ u(Se, { position: "bottom-right", children: [
|
|
3558
|
+
/* @__PURE__ */ e(ve, { children: /* @__PURE__ */ e(
|
|
3520
3559
|
H,
|
|
3521
3560
|
{
|
|
3522
3561
|
variant: t.length > 0 ? "secondary" : "outline",
|
|
@@ -3527,13 +3566,13 @@ const On = 240, Nn = ({
|
|
|
3527
3566
|
}
|
|
3528
3567
|
) }),
|
|
3529
3568
|
/* @__PURE__ */ u(
|
|
3530
|
-
|
|
3569
|
+
Fe,
|
|
3531
3570
|
{
|
|
3532
3571
|
style: {
|
|
3533
3572
|
width: "260px"
|
|
3534
3573
|
},
|
|
3535
3574
|
children: [
|
|
3536
|
-
/* @__PURE__ */ e(
|
|
3575
|
+
/* @__PURE__ */ e(Ee, { children: /* @__PURE__ */ u(f, { direction: "column", padding: "xs", gap: "sm", children: [
|
|
3537
3576
|
/* @__PURE__ */ e(v, { fontWeight: "semibold", color: "primary", children: "Saved Views" }),
|
|
3538
3577
|
/* @__PURE__ */ e(
|
|
3539
3578
|
f,
|
|
@@ -3566,7 +3605,7 @@ const On = 240, Nn = ({
|
|
|
3566
3605
|
)
|
|
3567
3606
|
] }) }),
|
|
3568
3607
|
/* @__PURE__ */ e(
|
|
3569
|
-
|
|
3608
|
+
cr,
|
|
3570
3609
|
{
|
|
3571
3610
|
children: /* @__PURE__ */ u(f, { direction: "row", gap: "xs", children: [
|
|
3572
3611
|
/* @__PURE__ */ e(f, { direction: "column", style: { flex: "1 0 0", minWidth: 0 }, children: /* @__PURE__ */ e(
|
|
@@ -3600,7 +3639,7 @@ const On = 240, Nn = ({
|
|
|
3600
3639
|
}
|
|
3601
3640
|
)
|
|
3602
3641
|
] });
|
|
3603
|
-
},
|
|
3642
|
+
}, El = ({
|
|
3604
3643
|
withPadding: t = !1,
|
|
3605
3644
|
filterConfigs: r = [],
|
|
3606
3645
|
filterKey: n = "filter",
|
|
@@ -3611,15 +3650,15 @@ const On = 240, Nn = ({
|
|
|
3611
3650
|
showPagination: c = !0,
|
|
3612
3651
|
showResultCount: h = !0,
|
|
3613
3652
|
showPageSize: d = !0,
|
|
3614
|
-
searchable:
|
|
3615
|
-
searchKey:
|
|
3653
|
+
searchable: g = !1,
|
|
3654
|
+
searchKey: m = "q",
|
|
3616
3655
|
searchPlaceholder: y = "Search",
|
|
3617
3656
|
searchShortcut: x = "/",
|
|
3618
3657
|
pagination: D,
|
|
3619
3658
|
columns: p = [],
|
|
3620
3659
|
onColumnsChange: E,
|
|
3621
3660
|
savedViews: W,
|
|
3622
|
-
storage: k =
|
|
3661
|
+
storage: k = Wn,
|
|
3623
3662
|
onReset: O
|
|
3624
3663
|
}) => {
|
|
3625
3664
|
const {
|
|
@@ -3629,21 +3668,21 @@ const On = 240, Nn = ({
|
|
|
3629
3668
|
toggleFilter: F,
|
|
3630
3669
|
removeFilter: j,
|
|
3631
3670
|
getValue: te,
|
|
3632
|
-
setValue:
|
|
3671
|
+
setValue: K,
|
|
3633
3672
|
clearValue: $,
|
|
3634
|
-
clearAll:
|
|
3635
|
-
} =
|
|
3673
|
+
clearAll: ee
|
|
3674
|
+
} = Mn({
|
|
3636
3675
|
configs: r,
|
|
3637
3676
|
filterKey: n,
|
|
3638
3677
|
activeFilterKey: l,
|
|
3639
3678
|
pageKey: i,
|
|
3640
|
-
searchKey:
|
|
3641
|
-
}), Y =
|
|
3679
|
+
searchKey: m
|
|
3680
|
+
}), Y = Bn({
|
|
3642
3681
|
columns: p,
|
|
3643
3682
|
scopeId: W == null ? void 0 : W.scopeId,
|
|
3644
3683
|
storage: k,
|
|
3645
3684
|
onColumnsChange: E
|
|
3646
|
-
}), re =
|
|
3685
|
+
}), re = zn({
|
|
3647
3686
|
scopeId: W == null ? void 0 : W.scopeId,
|
|
3648
3687
|
storage: k,
|
|
3649
3688
|
snapshotKeys: [l, n, o],
|
|
@@ -3678,7 +3717,7 @@ const On = 240, Nn = ({
|
|
|
3678
3717
|
style: { flex: "1 0 0", minWidth: 0 },
|
|
3679
3718
|
children: [
|
|
3680
3719
|
/* @__PURE__ */ e(
|
|
3681
|
-
|
|
3720
|
+
An,
|
|
3682
3721
|
{
|
|
3683
3722
|
configs: r,
|
|
3684
3723
|
activeKeys: C,
|
|
@@ -3687,25 +3726,25 @@ const On = 240, Nn = ({
|
|
|
3687
3726
|
}
|
|
3688
3727
|
),
|
|
3689
3728
|
/* @__PURE__ */ e(
|
|
3690
|
-
|
|
3729
|
+
Nn,
|
|
3691
3730
|
{
|
|
3692
3731
|
activeKeys: C,
|
|
3693
3732
|
configByKey: L,
|
|
3694
3733
|
getValue: te,
|
|
3695
|
-
setValue:
|
|
3734
|
+
setValue: K,
|
|
3696
3735
|
clearValue: $,
|
|
3697
3736
|
removeFilter: j
|
|
3698
3737
|
}
|
|
3699
3738
|
),
|
|
3700
3739
|
z && /* @__PURE__ */ e(H, { variant: "link", tone: "error", size: "sm", onClick: () => {
|
|
3701
|
-
|
|
3740
|
+
ee(), O == null || O();
|
|
3702
3741
|
}, children: "Reset" })
|
|
3703
3742
|
]
|
|
3704
3743
|
}
|
|
3705
3744
|
),
|
|
3706
3745
|
/* @__PURE__ */ u(f, { direction: "row", display: "flex", align: "center", gap: "sm", children: [
|
|
3707
3746
|
/* @__PURE__ */ e(
|
|
3708
|
-
|
|
3747
|
+
_n,
|
|
3709
3748
|
{
|
|
3710
3749
|
pagination: D,
|
|
3711
3750
|
pageKey: i,
|
|
@@ -3716,10 +3755,10 @@ const On = 240, Nn = ({
|
|
|
3716
3755
|
showPageSize: d
|
|
3717
3756
|
}
|
|
3718
3757
|
),
|
|
3719
|
-
|
|
3720
|
-
|
|
3758
|
+
g && /* @__PURE__ */ e(
|
|
3759
|
+
Zn,
|
|
3721
3760
|
{
|
|
3722
|
-
searchKey:
|
|
3761
|
+
searchKey: m,
|
|
3723
3762
|
filterKey: n,
|
|
3724
3763
|
pageKey: i,
|
|
3725
3764
|
placeholder: y,
|
|
@@ -3727,7 +3766,7 @@ const On = 240, Nn = ({
|
|
|
3727
3766
|
}
|
|
3728
3767
|
),
|
|
3729
3768
|
ne && /* @__PURE__ */ e(
|
|
3730
|
-
|
|
3769
|
+
qn,
|
|
3731
3770
|
{
|
|
3732
3771
|
views: re.views,
|
|
3733
3772
|
onApply: re.applyView,
|
|
@@ -3736,7 +3775,7 @@ const On = 240, Nn = ({
|
|
|
3736
3775
|
}
|
|
3737
3776
|
),
|
|
3738
3777
|
p.length > 0 && /* @__PURE__ */ e(
|
|
3739
|
-
|
|
3778
|
+
Pn,
|
|
3740
3779
|
{
|
|
3741
3780
|
columns: Y.orderedColumns,
|
|
3742
3781
|
allVisible: Y.allVisible,
|
|
@@ -3749,7 +3788,7 @@ const On = 240, Nn = ({
|
|
|
3749
3788
|
]
|
|
3750
3789
|
}
|
|
3751
3790
|
);
|
|
3752
|
-
},
|
|
3791
|
+
}, Gn = ({ children: t, borderRadius: r, height: n }) => {
|
|
3753
3792
|
const l = oe(null), [i, o] = M("100vh");
|
|
3754
3793
|
return Z(() => {
|
|
3755
3794
|
if (n) return;
|
|
@@ -3777,7 +3816,7 @@ const On = 240, Nn = ({
|
|
|
3777
3816
|
children: t
|
|
3778
3817
|
}
|
|
3779
3818
|
);
|
|
3780
|
-
},
|
|
3819
|
+
}, Jn = ({
|
|
3781
3820
|
action: t,
|
|
3782
3821
|
rightContent: r,
|
|
3783
3822
|
leftContent: n,
|
|
@@ -3785,7 +3824,7 @@ const On = 240, Nn = ({
|
|
|
3785
3824
|
advanceFilter: i,
|
|
3786
3825
|
showFilter: o = !0
|
|
3787
3826
|
}) => {
|
|
3788
|
-
const a = he("md"), c = o ? /* @__PURE__ */ e(
|
|
3827
|
+
const a = he("md"), c = o ? /* @__PURE__ */ e(En, { ...i }) : null;
|
|
3789
3828
|
return /* @__PURE__ */ e(
|
|
3790
3829
|
f,
|
|
3791
3830
|
{
|
|
@@ -3805,14 +3844,14 @@ const On = 240, Nn = ({
|
|
|
3805
3844
|
flexDirection: a ? "row" : "column-reverse",
|
|
3806
3845
|
gap: "16px"
|
|
3807
3846
|
},
|
|
3808
|
-
children: l ? l({ filter: c }) : /* @__PURE__ */ u(
|
|
3847
|
+
children: l ? l({ filter: c }) : /* @__PURE__ */ u(X, { children: [
|
|
3809
3848
|
/* @__PURE__ */ u(f, { style: { display: "flex", gap: "8px", flexDirection: "row", alignItems: "center", flex: 1, minWidth: 0 }, children: [
|
|
3810
3849
|
c,
|
|
3811
3850
|
n
|
|
3812
3851
|
] }),
|
|
3813
3852
|
/* @__PURE__ */ u(f, { style: { display: "flex", gap: "8px", flexDirection: "row", alignItems: "center", flexShrink: 0 }, children: [
|
|
3814
3853
|
r,
|
|
3815
|
-
t ?
|
|
3854
|
+
t ? bt(t) ? t : /* @__PURE__ */ e(
|
|
3816
3855
|
f,
|
|
3817
3856
|
{
|
|
3818
3857
|
style: {
|
|
@@ -3823,13 +3862,13 @@ const On = 240, Nn = ({
|
|
|
3823
3862
|
textWrap: "nowrap"
|
|
3824
3863
|
},
|
|
3825
3864
|
children: t.map(
|
|
3826
|
-
({ title: d, icon:
|
|
3865
|
+
({ title: d, icon: g, buttonProps: m, onClick: y }, x) => !d && !g ? null : /* @__PURE__ */ e(
|
|
3827
3866
|
H,
|
|
3828
3867
|
{
|
|
3829
3868
|
fullWidth: !a,
|
|
3830
|
-
iconLeft:
|
|
3869
|
+
iconLeft: g ? /* @__PURE__ */ e(S, { name: g }) : void 0,
|
|
3831
3870
|
onClick: y,
|
|
3832
|
-
...
|
|
3871
|
+
...m,
|
|
3833
3872
|
children: d
|
|
3834
3873
|
},
|
|
3835
3874
|
`action-${x}`
|
|
@@ -3841,7 +3880,7 @@ const On = 240, Nn = ({
|
|
|
3841
3880
|
] })
|
|
3842
3881
|
}
|
|
3843
3882
|
);
|
|
3844
|
-
},
|
|
3883
|
+
}, Un = ({
|
|
3845
3884
|
totalData: t,
|
|
3846
3885
|
withMarginBottom: r = !0,
|
|
3847
3886
|
withMarginTop: n = !0
|
|
@@ -3872,7 +3911,7 @@ const On = 240, Nn = ({
|
|
|
3872
3911
|
/* @__PURE__ */ e(xe.Body1, { children: t || 0 })
|
|
3873
3912
|
]
|
|
3874
3913
|
}
|
|
3875
|
-
),
|
|
3914
|
+
), Qn = ({
|
|
3876
3915
|
pagination: t,
|
|
3877
3916
|
pageKey: r = "page",
|
|
3878
3917
|
perPageKey: n = "perPage",
|
|
@@ -3880,9 +3919,9 @@ const On = 240, Nn = ({
|
|
|
3880
3919
|
showPagination: i = !0,
|
|
3881
3920
|
totalData: o
|
|
3882
3921
|
}) => {
|
|
3883
|
-
const { searchQueries: a, setSearchParams: c, searchParams: h } = We(), d = h.get(n),
|
|
3922
|
+
const { searchQueries: a, setSearchParams: c, searchParams: h } = We(), d = h.get(n), g = (D) => {
|
|
3884
3923
|
c({ ...a, [r]: String(D) });
|
|
3885
|
-
},
|
|
3924
|
+
}, m = (D) => {
|
|
3886
3925
|
c({
|
|
3887
3926
|
...a,
|
|
3888
3927
|
[n]: D,
|
|
@@ -3905,7 +3944,7 @@ const On = 240, Nn = ({
|
|
|
3905
3944
|
borderTop: "1px solid var(--sa-border-subtle, #0b120e24)",
|
|
3906
3945
|
flexShrink: 0
|
|
3907
3946
|
},
|
|
3908
|
-
children: i ? /* @__PURE__ */ u(
|
|
3947
|
+
children: i ? /* @__PURE__ */ u(X, { children: [
|
|
3909
3948
|
/* @__PURE__ */ u(f, { style: { display: "flex", flexDirection: "row", gap: "8px", alignItems: "center", textWrap: "nowrap" }, children: [
|
|
3910
3949
|
/* @__PURE__ */ e(v, { children: "Rows Per Page: " }),
|
|
3911
3950
|
/* @__PURE__ */ e(
|
|
@@ -3919,7 +3958,7 @@ const On = 240, Nn = ({
|
|
|
3919
3958
|
{ label: "100", value: "100" }
|
|
3920
3959
|
],
|
|
3921
3960
|
onChange: (D) => {
|
|
3922
|
-
|
|
3961
|
+
m(D[0].value);
|
|
3923
3962
|
},
|
|
3924
3963
|
value: d ? [{ label: `${d} per row`, value: d }] : [{ label: `${l} per row`, value: `${l}` }],
|
|
3925
3964
|
defaultValue: d ? [{ label: `${d} per row`, value: d }] : [{ label: `${l} per row`, value: `${l}` }]
|
|
@@ -3928,15 +3967,15 @@ const On = 240, Nn = ({
|
|
|
3928
3967
|
/* @__PURE__ */ e(v, { children: `${y}-${x} of ${(t == null ? void 0 : t.totalData) || 0}` })
|
|
3929
3968
|
] }),
|
|
3930
3969
|
/* @__PURE__ */ e(
|
|
3931
|
-
|
|
3970
|
+
ar,
|
|
3932
3971
|
{
|
|
3933
3972
|
currentPage: t != null && t.currentPage ? Number(t == null ? void 0 : t.currentPage) : 1,
|
|
3934
3973
|
totalPages: t != null && t.totalPage ? Number(t == null ? void 0 : t.totalPage) : 1,
|
|
3935
|
-
onPageChange:
|
|
3974
|
+
onPageChange: g
|
|
3936
3975
|
}
|
|
3937
3976
|
)
|
|
3938
3977
|
] }) : /* @__PURE__ */ e(
|
|
3939
|
-
|
|
3978
|
+
Un,
|
|
3940
3979
|
{
|
|
3941
3980
|
totalData: o,
|
|
3942
3981
|
withMarginBottom: !1,
|
|
@@ -3945,8 +3984,8 @@ const On = 240, Nn = ({
|
|
|
3945
3984
|
)
|
|
3946
3985
|
}
|
|
3947
3986
|
);
|
|
3948
|
-
},
|
|
3949
|
-
const [n, l] = M(!1), i = oe(null), o = oe(null), a = oe(null), [c, h] = M(""), [d,
|
|
3987
|
+
}, Yn = ({ filter: t, columnTitle: r }) => {
|
|
3988
|
+
const [n, l] = M(!1), i = oe(null), o = oe(null), a = oe(null), [c, h] = M(""), [d, g] = M({ top: 0, left: 0 }), m = t.selectedValues, y = ue(() => c ? t.options.filter(
|
|
3950
3989
|
(p) => p.label.toLowerCase().includes(c.toLowerCase())
|
|
3951
3990
|
) : t.options, [t.options, c]);
|
|
3952
3991
|
Z(() => {
|
|
@@ -3954,7 +3993,7 @@ const On = 240, Nn = ({
|
|
|
3954
3993
|
const p = o.current.getBoundingClientRect(), E = 280, W = {
|
|
3955
3994
|
top: p.bottom + 8
|
|
3956
3995
|
};
|
|
3957
|
-
t.position === "left" || p.left + E > window.innerWidth ? W.right = window.innerWidth - p.right : W.left = p.left,
|
|
3996
|
+
t.position === "left" || p.left + E > window.innerWidth ? W.right = window.innerWidth - p.right : W.left = p.left, g(W);
|
|
3958
3997
|
}
|
|
3959
3998
|
}, [n, t.position]), Z(() => {
|
|
3960
3999
|
n && a.current ? setTimeout(() => {
|
|
@@ -3968,7 +4007,7 @@ const On = 240, Nn = ({
|
|
|
3968
4007
|
return n && document.addEventListener("mousedown", p), () => document.removeEventListener("mousedown", p);
|
|
3969
4008
|
}, [n]);
|
|
3970
4009
|
const x = (p) => {
|
|
3971
|
-
const E =
|
|
4010
|
+
const E = m.includes(p) ? m.filter((W) => W !== p) : [...m, p];
|
|
3972
4011
|
t.onFilterChange(E);
|
|
3973
4012
|
}, D = () => t.onFilterChange([]);
|
|
3974
4013
|
return /* @__PURE__ */ u(f, { direction: "column", style: { position: "relative" }, children: [
|
|
@@ -3992,7 +4031,7 @@ const On = 240, Nn = ({
|
|
|
3992
4031
|
name: n ? "ChevronUp" : "ChevronDown",
|
|
3993
4032
|
size: "sm",
|
|
3994
4033
|
style: {
|
|
3995
|
-
color:
|
|
4034
|
+
color: m.length > 0 ? "var(--sa-color-brand-500, #1a4fa0)" : "var(--sa-text-subtle, #8c8f97)"
|
|
3996
4035
|
}
|
|
3997
4036
|
}
|
|
3998
4037
|
)
|
|
@@ -4036,7 +4075,7 @@ const On = 240, Nn = ({
|
|
|
4036
4075
|
"Filter ",
|
|
4037
4076
|
r
|
|
4038
4077
|
] }),
|
|
4039
|
-
|
|
4078
|
+
m.length > 0 && /* @__PURE__ */ e(f, { direction: "column", style: { cursor: "pointer" }, children: /* @__PURE__ */ e(
|
|
4040
4079
|
v,
|
|
4041
4080
|
{
|
|
4042
4081
|
fontSize: "xs",
|
|
@@ -4134,22 +4173,22 @@ const On = 240, Nn = ({
|
|
|
4134
4173
|
cursor: "pointer",
|
|
4135
4174
|
borderRadius: "8px",
|
|
4136
4175
|
transition: "all 0.2s ease",
|
|
4137
|
-
backgroundColor:
|
|
4176
|
+
backgroundColor: m.includes(p.value) ? "var(--sa-color-brand-50, #e6edf6)" : "transparent"
|
|
4138
4177
|
},
|
|
4139
4178
|
onClick: (E) => {
|
|
4140
4179
|
E.stopPropagation(), x(p.value);
|
|
4141
4180
|
},
|
|
4142
4181
|
onMouseEnter: (E) => {
|
|
4143
|
-
|
|
4182
|
+
m.includes(p.value) || (E.currentTarget.style.backgroundColor = "var(--sa-background-primary, #ffffff)"), E.currentTarget.style.transform = "translateX(2px)";
|
|
4144
4183
|
},
|
|
4145
4184
|
onMouseLeave: (E) => {
|
|
4146
|
-
E.currentTarget.style.backgroundColor =
|
|
4185
|
+
E.currentTarget.style.backgroundColor = m.includes(p.value) ? "var(--sa-color-brand-50, #e6edf6)" : "transparent", E.currentTarget.style.transform = "translateX(0)";
|
|
4147
4186
|
},
|
|
4148
4187
|
children: [
|
|
4149
4188
|
/* @__PURE__ */ e(
|
|
4150
4189
|
Xe,
|
|
4151
4190
|
{
|
|
4152
|
-
checked:
|
|
4191
|
+
checked: m.includes(p.value),
|
|
4153
4192
|
onChange: () => {
|
|
4154
4193
|
}
|
|
4155
4194
|
}
|
|
@@ -4158,8 +4197,8 @@ const On = 240, Nn = ({
|
|
|
4158
4197
|
v,
|
|
4159
4198
|
{
|
|
4160
4199
|
fontSize: "sm",
|
|
4161
|
-
fontWeight:
|
|
4162
|
-
color:
|
|
4200
|
+
fontWeight: m.includes(p.value) ? "medium" : "normal",
|
|
4201
|
+
color: m.includes(p.value) ? "primary" : "gray-700",
|
|
4163
4202
|
children: p.label
|
|
4164
4203
|
}
|
|
4165
4204
|
)
|
|
@@ -4200,7 +4239,7 @@ const On = 240, Nn = ({
|
|
|
4200
4239
|
)
|
|
4201
4240
|
}
|
|
4202
4241
|
),
|
|
4203
|
-
|
|
4242
|
+
m.length > 0 && /* @__PURE__ */ e(
|
|
4204
4243
|
f,
|
|
4205
4244
|
{
|
|
4206
4245
|
direction: "column",
|
|
@@ -4226,12 +4265,12 @@ const On = 240, Nn = ({
|
|
|
4226
4265
|
fontWeight: 600,
|
|
4227
4266
|
color: "white"
|
|
4228
4267
|
},
|
|
4229
|
-
children:
|
|
4268
|
+
children: m.length
|
|
4230
4269
|
}
|
|
4231
4270
|
),
|
|
4232
4271
|
/* @__PURE__ */ u(v, { fontSize: "xs", color: "primary", fontWeight: "medium", children: [
|
|
4233
4272
|
"item",
|
|
4234
|
-
|
|
4273
|
+
m.length > 1 ? "s" : "",
|
|
4235
4274
|
" selected"
|
|
4236
4275
|
] })
|
|
4237
4276
|
] })
|
|
@@ -4241,7 +4280,7 @@ const On = 240, Nn = ({
|
|
|
4241
4280
|
}
|
|
4242
4281
|
)
|
|
4243
4282
|
] });
|
|
4244
|
-
},
|
|
4283
|
+
}, Xn = ({
|
|
4245
4284
|
direction: t
|
|
4246
4285
|
}) => {
|
|
4247
4286
|
const r = "var(--sa-text-primary, #292a2e)", n = "var(--sa-text-subtle, #8c8f97)";
|
|
@@ -4281,7 +4320,7 @@ const On = 240, Nn = ({
|
|
|
4281
4320
|
]
|
|
4282
4321
|
}
|
|
4283
4322
|
);
|
|
4284
|
-
},
|
|
4323
|
+
}, Kn = ({ frozen: t }) => /* @__PURE__ */ u(
|
|
4285
4324
|
"svg",
|
|
4286
4325
|
{
|
|
4287
4326
|
width: "11",
|
|
@@ -4297,7 +4336,7 @@ const On = 240, Nn = ({
|
|
|
4297
4336
|
/* @__PURE__ */ e("path", { d: t ? "M7 11V7a5 5 0 0 1 10 0v4" : "M7 11V7a5 5 0 0 1 9.9-1" })
|
|
4298
4337
|
]
|
|
4299
4338
|
}
|
|
4300
|
-
),
|
|
4339
|
+
), pt = "var(--sa-background-primary, #ffffff)", rr = "var(--sa-background-primary-inverse, #f8f8f8)", ei = ({
|
|
4301
4340
|
columns: t,
|
|
4302
4341
|
records: r,
|
|
4303
4342
|
handleDetail: n,
|
|
@@ -4308,8 +4347,8 @@ const On = 240, Nn = ({
|
|
|
4308
4347
|
visibleHandleUpdate: c,
|
|
4309
4348
|
visibleHandleDetail: h,
|
|
4310
4349
|
showHeadBorder: d = !1,
|
|
4311
|
-
scrollParentRef:
|
|
4312
|
-
frozenCount:
|
|
4350
|
+
scrollParentRef: g,
|
|
4351
|
+
frozenCount: m = 0,
|
|
4313
4352
|
onFrozenCountChange: y,
|
|
4314
4353
|
customActions: x,
|
|
4315
4354
|
actionsOrder: D = ["detail", "update", "delete", "custom"],
|
|
@@ -4323,31 +4362,31 @@ const On = 240, Nn = ({
|
|
|
4323
4362
|
onSortChange: z,
|
|
4324
4363
|
showActionDivider: F = !1
|
|
4325
4364
|
}) => {
|
|
4326
|
-
const j = C !== void 0, [te,
|
|
4365
|
+
const j = C !== void 0, [te, K] = M(
|
|
4327
4366
|
L ?? null
|
|
4328
|
-
), $ = j ? C ?? null : te,
|
|
4367
|
+
), $ = j ? C ?? null : te, ee = (w) => {
|
|
4329
4368
|
if (w.sortKey) return w.sortKey;
|
|
4330
4369
|
if (typeof w.accessor == "string") return w.accessor;
|
|
4331
4370
|
}, Y = (w) => {
|
|
4332
|
-
const A =
|
|
4371
|
+
const A = ee(w);
|
|
4333
4372
|
if (!A) return;
|
|
4334
4373
|
let B;
|
|
4335
|
-
!$ || $.key !== A ? B = { key: A, direction: "asc" } : $.direction === "asc" ? B = { key: A, direction: "desc" } : B = null, j ||
|
|
4374
|
+
!$ || $.key !== A ? B = { key: A, direction: "asc" } : $.direction === "asc" ? B = { key: A, direction: "desc" } : B = null, j || K(B), z == null || z(B);
|
|
4336
4375
|
}, ne = [n, l, i].filter((w) => w !== void 0).length, ie = !!x, P = !!n || !!l || !!i || ie, q = "var(--sa-border-subtle, #0b120e24)", ce = `1px solid ${q}`, ge = `inset 1px 0 0 ${q}`, ye = `inset -1px 0 0 ${q}`, He = ne === 3 ? ie ? "178px" : "140px" : ne === 2 ? ie ? "140px" : "102px" : ne === 1 ? ie ? "112px" : "74px" : ie ? "74px" : "", qe = (w, A) => {
|
|
4337
4376
|
if (!A) return w;
|
|
4338
4377
|
if (typeof A == "function") return A(w);
|
|
4339
4378
|
if (typeof A == "string") return w[A];
|
|
4340
4379
|
}, [at, Ge] = M(!1);
|
|
4341
4380
|
Z(() => {
|
|
4342
|
-
if (!(
|
|
4343
|
-
const w =
|
|
4381
|
+
if (!(g != null && g.current)) return;
|
|
4382
|
+
const w = g.current;
|
|
4344
4383
|
Ge(w.scrollHeight > w.clientHeight);
|
|
4345
|
-
}, [r,
|
|
4384
|
+
}, [r, g]);
|
|
4346
4385
|
const Ve = oe(null), [fe, Je] = M([]), [Te, Be] = M(
|
|
4347
4386
|
() => W ?? {}
|
|
4348
4387
|
), ze = oe(null);
|
|
4349
|
-
|
|
4350
|
-
if (!
|
|
4388
|
+
Ct(() => {
|
|
4389
|
+
if (!m || !Ve.current) {
|
|
4351
4390
|
Je([]);
|
|
4352
4391
|
return;
|
|
4353
4392
|
}
|
|
@@ -4356,11 +4395,11 @@ const On = 240, Nn = ({
|
|
|
4356
4395
|
), A = [];
|
|
4357
4396
|
let B = 0;
|
|
4358
4397
|
w.forEach((I, N) => {
|
|
4359
|
-
A[N] = B, N <
|
|
4398
|
+
A[N] = B, N < m && (B += I.offsetWidth);
|
|
4360
4399
|
}), Je(A);
|
|
4361
|
-
}, [
|
|
4400
|
+
}, [m, t, r, Te]);
|
|
4362
4401
|
const Ue = (w) => {
|
|
4363
|
-
y && y(w <
|
|
4402
|
+
y && y(w < m ? w : w + 1);
|
|
4364
4403
|
}, b = (w, A) => {
|
|
4365
4404
|
const B = Te[w];
|
|
4366
4405
|
if (B !== void 0) {
|
|
@@ -4376,22 +4415,22 @@ const On = 240, Nn = ({
|
|
|
4376
4415
|
ze.current = { colIndex: A, startX: w.clientX, startWidth: I };
|
|
4377
4416
|
const N = document.body.style.userSelect, ae = document.body.style.cursor;
|
|
4378
4417
|
document.body.style.userSelect = "none", document.body.style.cursor = "col-resize";
|
|
4379
|
-
const me = (
|
|
4418
|
+
const me = (De) => {
|
|
4380
4419
|
var Ne;
|
|
4381
4420
|
const be = ze.current;
|
|
4382
4421
|
if (!be) return;
|
|
4383
|
-
const st = ((Ne = t[be.colIndex]) == null ? void 0 : Ne.minWidth) ?? O, Oe = Math.max(st, be.startWidth + (
|
|
4422
|
+
const st = ((Ne = t[be.colIndex]) == null ? void 0 : Ne.minWidth) ?? O, Oe = Math.max(st, be.startWidth + (De.clientX - be.startX));
|
|
4384
4423
|
Be(
|
|
4385
4424
|
(Ae) => Ae[be.colIndex] === Oe ? Ae : { ...Ae, [be.colIndex]: Oe }
|
|
4386
4425
|
);
|
|
4387
4426
|
}, ke = () => {
|
|
4388
|
-
document.removeEventListener("mousemove", me), document.removeEventListener("mouseup", ke), document.body.style.userSelect = N, document.body.style.cursor = ae, ze.current = null, k && Be((
|
|
4427
|
+
document.removeEventListener("mousemove", me), document.removeEventListener("mouseup", ke), document.body.style.userSelect = N, document.body.style.cursor = ae, ze.current = null, k && Be((De) => (k(De), De));
|
|
4389
4428
|
};
|
|
4390
4429
|
document.addEventListener("mousemove", me), document.addEventListener("mouseup", ke);
|
|
4391
4430
|
};
|
|
4392
|
-
return /* @__PURE__ */ e("div", { ref: Ve, children: /* @__PURE__ */ u(
|
|
4431
|
+
return /* @__PURE__ */ e("div", { ref: Ve, children: /* @__PURE__ */ u(sr, { fullWidth: !0, children: [
|
|
4393
4432
|
/* @__PURE__ */ e(
|
|
4394
|
-
|
|
4433
|
+
Er,
|
|
4395
4434
|
{
|
|
4396
4435
|
style: {
|
|
4397
4436
|
height: "40px",
|
|
@@ -4399,15 +4438,15 @@ const On = 240, Nn = ({
|
|
|
4399
4438
|
},
|
|
4400
4439
|
children: /* @__PURE__ */ u(je, { children: [
|
|
4401
4440
|
t.map((w, A) => {
|
|
4402
|
-
var
|
|
4403
|
-
const B =
|
|
4441
|
+
var Rt, Ht;
|
|
4442
|
+
const B = m > 0 && A < m, I = fe[A] ?? 0, N = R(w), me = A === t.length - 1 && P && F, ke = ee(w), De = !!w.sortable && !!ke, be = De && ($ == null ? void 0 : $.key) === ke ? $.direction : null, st = w.title || ((Rt = w.accessor) == null ? void 0 : Rt.toString()) || "", Oe = (Ht = w.headerTooltip) != null && Ht.showIcon ? /* @__PURE__ */ e(
|
|
4404
4443
|
S,
|
|
4405
4444
|
{
|
|
4406
4445
|
name: "InfoCircle",
|
|
4407
4446
|
size: "xs",
|
|
4408
4447
|
style: { flexShrink: 0, color: "var(--sa-icon-subtle, #8c8f97)", opacity: 0.75 }
|
|
4409
4448
|
}
|
|
4410
|
-
) : null, Ne = /* @__PURE__ */ e("span", { style: { flex: 1, minWidth: 0, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: st }), Ae =
|
|
4449
|
+
) : null, Ne = /* @__PURE__ */ e("span", { style: { flex: 1, minWidth: 0, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: st }), Ae = De ? /* @__PURE__ */ u(
|
|
4411
4450
|
"button",
|
|
4412
4451
|
{
|
|
4413
4452
|
type: "button",
|
|
@@ -4431,7 +4470,7 @@ const On = 240, Nn = ({
|
|
|
4431
4470
|
children: [
|
|
4432
4471
|
Ne,
|
|
4433
4472
|
Oe,
|
|
4434
|
-
/* @__PURE__ */ e(
|
|
4473
|
+
/* @__PURE__ */ e(Xn, { direction: be })
|
|
4435
4474
|
]
|
|
4436
4475
|
}
|
|
4437
4476
|
) : /* @__PURE__ */ u("span", { style: { flex: 1, minWidth: 0, display: "flex", alignItems: "center", gap: 4 }, children: [
|
|
@@ -4439,7 +4478,7 @@ const On = 240, Nn = ({
|
|
|
4439
4478
|
Oe
|
|
4440
4479
|
] });
|
|
4441
4480
|
return /* @__PURE__ */ u(
|
|
4442
|
-
|
|
4481
|
+
Tt,
|
|
4443
4482
|
{
|
|
4444
4483
|
style: {
|
|
4445
4484
|
position: "sticky",
|
|
@@ -4466,9 +4505,9 @@ const On = 240, Nn = ({
|
|
|
4466
4505
|
minWidth: 0
|
|
4467
4506
|
},
|
|
4468
4507
|
children: [
|
|
4469
|
-
w.headerTooltip ? /* @__PURE__ */ e(
|
|
4508
|
+
w.headerTooltip ? /* @__PURE__ */ e(de, { label: w.headerTooltip.content, position: "bottom", children: Ae }) : Ae,
|
|
4470
4509
|
w.filter && /* @__PURE__ */ e(
|
|
4471
|
-
|
|
4510
|
+
Yn,
|
|
4472
4511
|
{
|
|
4473
4512
|
filter: w.filter,
|
|
4474
4513
|
columnTitle: w.title
|
|
@@ -4491,7 +4530,7 @@ const On = 240, Nn = ({
|
|
|
4491
4530
|
opacity: B ? 1 : 0.45,
|
|
4492
4531
|
transition: "opacity 0.15s"
|
|
4493
4532
|
},
|
|
4494
|
-
children: /* @__PURE__ */ e(
|
|
4533
|
+
children: /* @__PURE__ */ e(Kn, { frozen: B })
|
|
4495
4534
|
}
|
|
4496
4535
|
)
|
|
4497
4536
|
]
|
|
@@ -4524,7 +4563,7 @@ const On = 240, Nn = ({
|
|
|
4524
4563
|
);
|
|
4525
4564
|
}),
|
|
4526
4565
|
P ? /* @__PURE__ */ e(
|
|
4527
|
-
|
|
4566
|
+
Tt,
|
|
4528
4567
|
{
|
|
4529
4568
|
style: {
|
|
4530
4569
|
backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)",
|
|
@@ -4540,13 +4579,13 @@ const On = 240, Nn = ({
|
|
|
4540
4579
|
] })
|
|
4541
4580
|
}
|
|
4542
4581
|
),
|
|
4543
|
-
/* @__PURE__ */ e(
|
|
4582
|
+
/* @__PURE__ */ e(Lr, { children: o ? /* @__PURE__ */ e(je, { children: /* @__PURE__ */ e(Me, { colSpan: t.length + 1, children: /* @__PURE__ */ u(f, { direction: "column", style: { gap: "16px" }, children: [
|
|
4544
4583
|
/* @__PURE__ */ e(_e, { variant: "list" }),
|
|
4545
4584
|
/* @__PURE__ */ e(_e, { variant: "list" }),
|
|
4546
4585
|
/* @__PURE__ */ e(_e, { variant: "list" }),
|
|
4547
4586
|
/* @__PURE__ */ e(_e, { variant: "list" }),
|
|
4548
4587
|
/* @__PURE__ */ e(_e, { variant: "list" })
|
|
4549
|
-
] }) }) }) : !(r != null && r.length) && p ? /* @__PURE__ */ e(je, { children: /* @__PURE__ */ e(
|
|
4588
|
+
] }) }) }) : !(r != null && r.length) && p ? /* @__PURE__ */ e(je, { children: /* @__PURE__ */ e(Me, { colSpan: t.length + 1, children: p }) }) : r == null ? void 0 : r.map((w, A) => /* @__PURE__ */ u(
|
|
4550
4589
|
je,
|
|
4551
4590
|
{
|
|
4552
4591
|
style: {
|
|
@@ -4556,34 +4595,34 @@ const On = 240, Nn = ({
|
|
|
4556
4595
|
},
|
|
4557
4596
|
onMouseEnter: (B) => {
|
|
4558
4597
|
const I = B.currentTarget;
|
|
4559
|
-
I.style.backgroundColor =
|
|
4560
|
-
N.style.position === "sticky" && (N.style.backgroundColor =
|
|
4598
|
+
I.style.backgroundColor = rr, Array.from(I.querySelectorAll("td")).forEach((N) => {
|
|
4599
|
+
N.style.position === "sticky" && (N.style.backgroundColor = rr);
|
|
4561
4600
|
});
|
|
4562
4601
|
},
|
|
4563
4602
|
onMouseLeave: (B) => {
|
|
4564
4603
|
const I = B.currentTarget;
|
|
4565
4604
|
I.style.backgroundColor = "", Array.from(I.querySelectorAll("td")).forEach((N) => {
|
|
4566
|
-
N.style.position === "sticky" && (N.style.backgroundColor =
|
|
4605
|
+
N.style.position === "sticky" && (N.style.backgroundColor = pt);
|
|
4567
4606
|
});
|
|
4568
4607
|
},
|
|
4569
4608
|
children: [
|
|
4570
4609
|
t.map((B, I) => {
|
|
4571
|
-
const N = B.render ? B.render(w, A, r) : qe(w, B.accessor), ae =
|
|
4610
|
+
const N = B.render ? B.render(w, A, r) : qe(w, B.accessor), ae = m > 0 && I < m, me = fe[I] ?? 0, ke = Te[I] !== void 0, De = ae && I === m - 1;
|
|
4572
4611
|
return /* @__PURE__ */ e(
|
|
4573
|
-
|
|
4612
|
+
Me,
|
|
4574
4613
|
{
|
|
4575
4614
|
style: {
|
|
4576
4615
|
position: ae ? "sticky" : void 0,
|
|
4577
4616
|
left: ae ? me : void 0,
|
|
4578
4617
|
zIndex: ae ? 1 : void 0,
|
|
4579
|
-
backgroundColor: ae ?
|
|
4618
|
+
backgroundColor: ae ? pt : void 0,
|
|
4580
4619
|
transition: ae ? "background-color 0.3s ease" : void 0,
|
|
4581
4620
|
paddingLeft: I === 0 ? "12px" : "",
|
|
4582
4621
|
whiteSpace: "nowrap",
|
|
4583
4622
|
overflow: ke ? "hidden" : void 0,
|
|
4584
4623
|
borderLeft: B.showBorderLeft ? ce : void 0,
|
|
4585
4624
|
borderRight: B.showBorderRight ? ce : void 0,
|
|
4586
|
-
boxShadow:
|
|
4625
|
+
boxShadow: De ? ye : void 0,
|
|
4587
4626
|
textAlign: B.textAlign === "text-right" ? "right" : B.textAlign === "text-center" ? "center" : "left",
|
|
4588
4627
|
...b(I, B.width)
|
|
4589
4628
|
},
|
|
@@ -4603,17 +4642,17 @@ const On = 240, Nn = ({
|
|
|
4603
4642
|
`row-${A}-col-${I}`
|
|
4604
4643
|
);
|
|
4605
4644
|
}),
|
|
4606
|
-
P ? /* @__PURE__ */ e(
|
|
4645
|
+
P ? /* @__PURE__ */ e(Me, { style: {
|
|
4607
4646
|
width: He,
|
|
4608
4647
|
position: "sticky",
|
|
4609
4648
|
right: 0,
|
|
4610
4649
|
zIndex: 1,
|
|
4611
|
-
backgroundColor:
|
|
4650
|
+
backgroundColor: pt,
|
|
4612
4651
|
boxShadow: F ? ge : void 0,
|
|
4613
4652
|
transition: "background-color 0.3s ease"
|
|
4614
4653
|
}, children: /* @__PURE__ */ e(U, { direction: "row", align: "center", justify: "center", gap: "sm", children: D.map((B) => {
|
|
4615
4654
|
const I = A === r.length - 1 ? "top" : "bottom";
|
|
4616
|
-
return B === "detail" && n && (h == null ? void 0 : h(w)) !== !1 ? /* @__PURE__ */ e(
|
|
4655
|
+
return B === "detail" && n && (h == null ? void 0 : h(w)) !== !1 ? /* @__PURE__ */ e(de, { label: "Detail", position: I, children: /* @__PURE__ */ e(
|
|
4617
4656
|
H,
|
|
4618
4657
|
{
|
|
4619
4658
|
size: "xs",
|
|
@@ -4622,7 +4661,7 @@ const On = 240, Nn = ({
|
|
|
4622
4661
|
onClick: () => n(w.id, w),
|
|
4623
4662
|
iconLeft: /* @__PURE__ */ e(S, { name: "DocumentClean", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
|
|
4624
4663
|
}
|
|
4625
|
-
) }, "detail") : B === "update" && l && (c == null ? void 0 : c(w)) !== !1 ? /* @__PURE__ */ e(
|
|
4664
|
+
) }, "detail") : B === "update" && l && (c == null ? void 0 : c(w)) !== !1 ? /* @__PURE__ */ e(de, { label: "Update", position: I, children: /* @__PURE__ */ e(
|
|
4626
4665
|
H,
|
|
4627
4666
|
{
|
|
4628
4667
|
size: "xs",
|
|
@@ -4631,7 +4670,7 @@ const On = 240, Nn = ({
|
|
|
4631
4670
|
onClick: () => l(w),
|
|
4632
4671
|
iconLeft: /* @__PURE__ */ e(S, { name: "Edit1", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
|
|
4633
4672
|
}
|
|
4634
|
-
) }, "update") : B === "delete" && i && (a == null ? void 0 : a(w)) !== !1 ? /* @__PURE__ */ e(
|
|
4673
|
+
) }, "update") : B === "delete" && i && (a == null ? void 0 : a(w)) !== !1 ? /* @__PURE__ */ e(de, { label: "Delete", position: I, children: /* @__PURE__ */ e(
|
|
4635
4674
|
H,
|
|
4636
4675
|
{
|
|
4637
4676
|
size: "xs",
|
|
@@ -4647,20 +4686,20 @@ const On = 240, Nn = ({
|
|
|
4647
4686
|
`${w}${A}`
|
|
4648
4687
|
)) })
|
|
4649
4688
|
] }) });
|
|
4650
|
-
},
|
|
4689
|
+
}, ti = ({
|
|
4651
4690
|
wrapperProps: t,
|
|
4652
4691
|
dataTableProps: r,
|
|
4653
4692
|
headerProps: n,
|
|
4654
4693
|
footerProps: l
|
|
4655
4694
|
}) => {
|
|
4656
|
-
var
|
|
4695
|
+
var m;
|
|
4657
4696
|
const i = oe(null), [o, a] = M(
|
|
4658
4697
|
(r == null ? void 0 : r.defaultFrozenCount) ?? 0
|
|
4659
|
-
), c = (n == null ? void 0 : n.show) ?? !0, h = oe(null), d = (
|
|
4698
|
+
), c = (n == null ? void 0 : n.show) ?? !0, h = oe(null), d = (m = r == null ? void 0 : r.pagination) == null ? void 0 : m.totalData;
|
|
4660
4699
|
typeof d == "number" && (h.current = d);
|
|
4661
|
-
const
|
|
4662
|
-
return /* @__PURE__ */ u(
|
|
4663
|
-
c && /* @__PURE__ */ e(
|
|
4700
|
+
const g = (l == null ? void 0 : l.showFooter) ?? (d === void 0 ? h.current !== 0 : d !== 0);
|
|
4701
|
+
return /* @__PURE__ */ u(Gn, { ...t, children: [
|
|
4702
|
+
c && /* @__PURE__ */ e(Jn, { ...n }),
|
|
4664
4703
|
/* @__PURE__ */ e(
|
|
4665
4704
|
f,
|
|
4666
4705
|
{
|
|
@@ -4672,7 +4711,7 @@ const On = 240, Nn = ({
|
|
|
4672
4711
|
overflowX: "auto"
|
|
4673
4712
|
},
|
|
4674
4713
|
children: r ? /* @__PURE__ */ e(
|
|
4675
|
-
|
|
4714
|
+
ei,
|
|
4676
4715
|
{
|
|
4677
4716
|
...r,
|
|
4678
4717
|
scrollParentRef: i,
|
|
@@ -4682,8 +4721,8 @@ const On = 240, Nn = ({
|
|
|
4682
4721
|
) : null
|
|
4683
4722
|
}
|
|
4684
4723
|
),
|
|
4685
|
-
|
|
4686
|
-
|
|
4724
|
+
g && /* @__PURE__ */ e(
|
|
4725
|
+
Qn,
|
|
4687
4726
|
{
|
|
4688
4727
|
pagination: r == null ? void 0 : r.pagination,
|
|
4689
4728
|
pageKey: r == null ? void 0 : r.pageKey,
|
|
@@ -4695,21 +4734,21 @@ const On = 240, Nn = ({
|
|
|
4695
4734
|
)
|
|
4696
4735
|
] });
|
|
4697
4736
|
};
|
|
4698
|
-
function
|
|
4737
|
+
function ri(t) {
|
|
4699
4738
|
return Ce(
|
|
4700
4739
|
t
|
|
4701
4740
|
);
|
|
4702
4741
|
}
|
|
4703
|
-
const
|
|
4742
|
+
const Ll = ri(ti), Wt = ({
|
|
4704
4743
|
of: t,
|
|
4705
4744
|
render: r
|
|
4706
|
-
}) =>
|
|
4745
|
+
}) => Ar.toArray(t == null ? void 0 : t.map((n, l, i) => r(n, l, i))), J = ({
|
|
4707
4746
|
condition: t,
|
|
4708
4747
|
fallback: r,
|
|
4709
4748
|
children: n,
|
|
4710
4749
|
loading: l,
|
|
4711
4750
|
isLoading: i
|
|
4712
|
-
}) => /* @__PURE__ */ e(
|
|
4751
|
+
}) => /* @__PURE__ */ e(X, { children: i ? l : t ? n : r }), Q = (t) => /* @__PURE__ */ e(
|
|
4713
4752
|
v,
|
|
4714
4753
|
{
|
|
4715
4754
|
...t,
|
|
@@ -4719,7 +4758,7 @@ const kl = Xn(Yn), Mt = ({
|
|
|
4719
4758
|
color: t.color || "gray-700",
|
|
4720
4759
|
children: t.children
|
|
4721
4760
|
}
|
|
4722
|
-
), we = (t) => /* @__PURE__ */ e(v, { color: "red-600", fontSize: "sm", children: t.message }),
|
|
4761
|
+
), we = (t) => /* @__PURE__ */ e(v, { color: "red-600", fontSize: "sm", children: t.message }), ni = ({
|
|
4723
4762
|
size: t = "md",
|
|
4724
4763
|
direction: r = "vertical",
|
|
4725
4764
|
requiredTitle: n = "(Required)",
|
|
@@ -4762,7 +4801,7 @@ const kl = Xn(Yn), Mt = ({
|
|
|
4762
4801
|
/* @__PURE__ */ e(Q, { fontSize: t, children: i.title }),
|
|
4763
4802
|
/* @__PURE__ */ e(Q, { color: "error", fontSize: t, children: n }),
|
|
4764
4803
|
/* @__PURE__ */ e(J, { condition: !!((c = i.tooltip) != null && c.label), children: /* @__PURE__ */ e(
|
|
4765
|
-
|
|
4804
|
+
de,
|
|
4766
4805
|
{
|
|
4767
4806
|
label: (h = i.tooltip) == null ? void 0 : h.label,
|
|
4768
4807
|
arrowPosition: (d = i.tooltip) == null ? void 0 : d.arrowPosition,
|
|
@@ -4804,7 +4843,7 @@ const kl = Xn(Yn), Mt = ({
|
|
|
4804
4843
|
]
|
|
4805
4844
|
}
|
|
4806
4845
|
);
|
|
4807
|
-
},
|
|
4846
|
+
}, ii = ({
|
|
4808
4847
|
size: t = "md",
|
|
4809
4848
|
direction: r = "vertical",
|
|
4810
4849
|
requiredTitle: n = "(Required)",
|
|
@@ -4847,7 +4886,7 @@ const kl = Xn(Yn), Mt = ({
|
|
|
4847
4886
|
/* @__PURE__ */ e(Q, { fontSize: t, children: i.title }),
|
|
4848
4887
|
/* @__PURE__ */ e(Q, { color: "error", fontSize: t, children: n }),
|
|
4849
4888
|
/* @__PURE__ */ e(J, { condition: !!((c = i.tooltip) != null && c.label), children: /* @__PURE__ */ e(
|
|
4850
|
-
|
|
4889
|
+
de,
|
|
4851
4890
|
{
|
|
4852
4891
|
label: (h = i.tooltip) == null ? void 0 : h.label,
|
|
4853
4892
|
arrowPosition: (d = i.tooltip) == null ? void 0 : d.arrowPosition,
|
|
@@ -4896,7 +4935,7 @@ const kl = Xn(Yn), Mt = ({
|
|
|
4896
4935
|
]
|
|
4897
4936
|
}
|
|
4898
4937
|
);
|
|
4899
|
-
},
|
|
4938
|
+
}, li = (t, r) => typeof t == "string" && t || r === "error" ? "var(--sa-border-danger)" : "var(--sa-border-subtle)", oi = (t) => {
|
|
4900
4939
|
var c;
|
|
4901
4940
|
const [r, n] = M(!1), l = (h) => {
|
|
4902
4941
|
h.preventDefault(), h.stopPropagation();
|
|
@@ -4923,7 +4962,7 @@ const kl = Xn(Yn), Mt = ({
|
|
|
4923
4962
|
paddingBlock: "md",
|
|
4924
4963
|
borderRadius: "rounded-md",
|
|
4925
4964
|
style: {
|
|
4926
|
-
border: r ? "1px solid var(--sa-border-info)" : `1px solid ${
|
|
4965
|
+
border: r ? "1px solid var(--sa-border-info)" : `1px solid ${li(t.errorMessage, t.status)}`
|
|
4927
4966
|
},
|
|
4928
4967
|
children: [
|
|
4929
4968
|
/* @__PURE__ */ e(
|
|
@@ -4965,17 +5004,17 @@ const kl = Xn(Yn), Mt = ({
|
|
|
4965
5004
|
}
|
|
4966
5005
|
);
|
|
4967
5006
|
};
|
|
4968
|
-
function
|
|
5007
|
+
function Ml(t) {
|
|
4969
5008
|
return t.split(" ").map((r) => r[0]).join("").slice(0, 2).toUpperCase();
|
|
4970
5009
|
}
|
|
4971
|
-
const
|
|
5010
|
+
const ci = (t) => {
|
|
4972
5011
|
const r = {
|
|
4973
5012
|
day: "2-digit",
|
|
4974
5013
|
month: "short",
|
|
4975
5014
|
year: "numeric"
|
|
4976
5015
|
};
|
|
4977
5016
|
return t.toLocaleDateString("id-ID", r);
|
|
4978
|
-
},
|
|
5017
|
+
}, Wl = (t) => {
|
|
4979
5018
|
const r = {
|
|
4980
5019
|
Jan: 0,
|
|
4981
5020
|
Feb: 1,
|
|
@@ -4995,7 +5034,7 @@ const ni = (t) => {
|
|
|
4995
5034
|
const l = parseInt(n[0], 10), i = r[n[1]], o = parseInt(n[2], 10);
|
|
4996
5035
|
return isNaN(l) || isNaN(i) || isNaN(o) ? null : new Date(o, i, l);
|
|
4997
5036
|
};
|
|
4998
|
-
function
|
|
5037
|
+
function Bl(t, r = !0) {
|
|
4999
5038
|
if (!t)
|
|
5000
5039
|
return "Rp 0";
|
|
5001
5040
|
const n = typeof t == "number" ? t.toString() : t;
|
|
@@ -5010,19 +5049,19 @@ String.prototype.toTitleCase = function() {
|
|
|
5010
5049
|
String.prototype.toNumber = function() {
|
|
5011
5050
|
return Number(this);
|
|
5012
5051
|
};
|
|
5013
|
-
const
|
|
5052
|
+
const zl = (t) => {
|
|
5014
5053
|
const r = t.split(" ");
|
|
5015
5054
|
let n = r[0].charAt(0);
|
|
5016
5055
|
return r.length > 1 && (n += "" + r[1].charAt(0)), n.toUpperCase();
|
|
5017
5056
|
};
|
|
5018
|
-
function
|
|
5057
|
+
function Al(t) {
|
|
5019
5058
|
const r = typeof t == "string" ? new Date(t) : t;
|
|
5020
5059
|
if (isNaN(r.getTime()))
|
|
5021
5060
|
throw new Error("Invalid date format");
|
|
5022
5061
|
const n = r.getFullYear(), l = String(r.getMonth() + 1).padStart(2, "0"), i = String(r.getDate()).padStart(2, "0");
|
|
5023
5062
|
return `${n}-${l}-${i}`;
|
|
5024
5063
|
}
|
|
5025
|
-
const
|
|
5064
|
+
const ai = "sa-admin", pe = (t) => `var(--${ai}-${t})`, Il = {
|
|
5026
5065
|
base: {
|
|
5027
5066
|
borderColor: pe("base-border-color"),
|
|
5028
5067
|
textColor: pe("base-text-color"),
|
|
@@ -5040,22 +5079,22 @@ const ii = "sa-admin", pe = (t) => `var(--${ii}-${t})`, Wl = {
|
|
|
5040
5079
|
collapseWidth: pe("sidebar-collapse-width"),
|
|
5041
5080
|
collapseV2Width: pe("sidebar-v2-collapse-width")
|
|
5042
5081
|
}
|
|
5043
|
-
},
|
|
5082
|
+
}, Rl = 24 * 60 * 60 * 1e3, Hl = (t) => {
|
|
5044
5083
|
const r = "14px poppins", l = document.createElement("canvas").getContext("2d");
|
|
5045
5084
|
l.font = r;
|
|
5046
5085
|
const i = l.measureText(t).width;
|
|
5047
5086
|
return Number(Math.ceil(i));
|
|
5048
|
-
},
|
|
5049
|
-
function
|
|
5087
|
+
}, si = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, di = /--+/, ui = /-$/;
|
|
5088
|
+
function Vl(t, r) {
|
|
5050
5089
|
return JSON.stringify(t) !== JSON.stringify(r);
|
|
5051
5090
|
}
|
|
5052
|
-
function
|
|
5091
|
+
function Tl(t) {
|
|
5053
5092
|
return /^(?:\+62|62|0)8[1-9][0-9]{7,10}$/.test(t);
|
|
5054
5093
|
}
|
|
5055
|
-
function
|
|
5094
|
+
function Ol(t) {
|
|
5056
5095
|
return /^[A-Za-z\s]+$/.test(t);
|
|
5057
5096
|
}
|
|
5058
|
-
const
|
|
5097
|
+
const Nl = (t) => {
|
|
5059
5098
|
const r = /^[0-9]$/, n = [
|
|
5060
5099
|
"ArrowLeft",
|
|
5061
5100
|
"ArrowRight",
|
|
@@ -5067,7 +5106,7 @@ const Hl = (t) => {
|
|
|
5067
5106
|
"Tab"
|
|
5068
5107
|
];
|
|
5069
5108
|
(t.ctrlKey || t.metaKey) && (t.key === "a" || t.key === "c" || t.key === "v") || !r.test(t.key) && !n.includes(t.key) && t.preventDefault();
|
|
5070
|
-
},
|
|
5109
|
+
}, _l = (t) => {
|
|
5071
5110
|
const r = /^[0-9]$/, n = [
|
|
5072
5111
|
"ArrowLeft",
|
|
5073
5112
|
"ArrowRight",
|
|
@@ -5079,7 +5118,7 @@ const Hl = (t) => {
|
|
|
5079
5118
|
"Tab"
|
|
5080
5119
|
];
|
|
5081
5120
|
(t.ctrlKey || t.metaKey) && t.key === "v" || r.test(t.key) && !n.includes(t.key) && t.preventDefault();
|
|
5082
|
-
},
|
|
5121
|
+
}, jl = (t) => {
|
|
5083
5122
|
const r = /^[0-9.]$/, n = [
|
|
5084
5123
|
"ArrowLeft",
|
|
5085
5124
|
"ArrowRight",
|
|
@@ -5091,11 +5130,11 @@ const Hl = (t) => {
|
|
|
5091
5130
|
"Tab"
|
|
5092
5131
|
];
|
|
5093
5132
|
(t.ctrlKey || t.metaKey) && t.key === "v" || !r.test(t.key) && !n.includes(t.key) && t.preventDefault();
|
|
5094
|
-
},
|
|
5095
|
-
function
|
|
5096
|
-
return !(
|
|
5133
|
+
}, $l = (t) => si.test(t);
|
|
5134
|
+
function Zl(t) {
|
|
5135
|
+
return !(di.test(t) || ui.test(t));
|
|
5097
5136
|
}
|
|
5098
|
-
const
|
|
5137
|
+
const Pl = (t) => {
|
|
5099
5138
|
const r = [
|
|
5100
5139
|
"ArrowLeft",
|
|
5101
5140
|
"ArrowRight",
|
|
@@ -5112,7 +5151,7 @@ const _l = (t) => {
|
|
|
5112
5151
|
return;
|
|
5113
5152
|
const n = t.currentTarget.value;
|
|
5114
5153
|
/^[0-9]$/.test(t.key) || t.key === "." && !n.includes(".") || t.key === "-" && n.length === 0 && !n.includes("-") || r.includes(t.key) || t.preventDefault();
|
|
5115
|
-
},
|
|
5154
|
+
}, ql = (t) => {
|
|
5116
5155
|
const r = document.getElementById(t);
|
|
5117
5156
|
if (r) {
|
|
5118
5157
|
const n = r.getBoundingClientRect(), l = window.scrollY + n.top - 80;
|
|
@@ -5122,7 +5161,7 @@ const _l = (t) => {
|
|
|
5122
5161
|
});
|
|
5123
5162
|
}
|
|
5124
5163
|
};
|
|
5125
|
-
function
|
|
5164
|
+
function hi(t) {
|
|
5126
5165
|
const r = t.toLowerCase();
|
|
5127
5166
|
if (["kb", "mb", "gb"].find((o) => r.endsWith(o)))
|
|
5128
5167
|
return t;
|
|
@@ -5131,11 +5170,11 @@ function ai(t) {
|
|
|
5131
5170
|
throw new Error("Invalid size format");
|
|
5132
5171
|
return i >= 1e6 ? `${(i / 1e6).toFixed(2)}MB` : i >= 1e3 ? `${(i / 1e3).toFixed(2)}KB` : `${i}B`;
|
|
5133
5172
|
}
|
|
5134
|
-
function
|
|
5173
|
+
function fi(t) {
|
|
5135
5174
|
const r = t.split("/");
|
|
5136
5175
|
return r[r.length - 1];
|
|
5137
5176
|
}
|
|
5138
|
-
const
|
|
5177
|
+
const mi = (t) => {
|
|
5139
5178
|
var r, n;
|
|
5140
5179
|
return /* @__PURE__ */ u(
|
|
5141
5180
|
f,
|
|
@@ -5180,7 +5219,7 @@ const di = (t) => {
|
|
|
5180
5219
|
whiteSpace: "nowrap",
|
|
5181
5220
|
overflow: "hidden"
|
|
5182
5221
|
},
|
|
5183
|
-
children: t.defaultFile ?
|
|
5222
|
+
children: t.defaultFile ? fi(t.defaultFile.url) : (r = t.fileSelected) == null ? void 0 : r.name
|
|
5184
5223
|
}
|
|
5185
5224
|
),
|
|
5186
5225
|
t.defaultFile ? (t.defaultFile.size || t.defaultFile.date) && /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
|
|
@@ -5188,9 +5227,9 @@ const di = (t) => {
|
|
|
5188
5227
|
t.defaultFile.size && t.defaultFile.date && /* @__PURE__ */ e(S, { name: "Dot", size: "xs" }),
|
|
5189
5228
|
t.defaultFile.date && /* @__PURE__ */ e(v, { fontSize: "sm", fontWeight: "medium", style: { textWrap: "nowrap" }, children: t.defaultFile.date })
|
|
5190
5229
|
] }) : /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
|
|
5191
|
-
/* @__PURE__ */ e(v, { fontSize: "sm", fontWeight: "medium", children:
|
|
5230
|
+
/* @__PURE__ */ e(v, { fontSize: "sm", fontWeight: "medium", children: hi(((n = t.fileSelected) == null ? void 0 : n.size.toString()) || "100000") }),
|
|
5192
5231
|
/* @__PURE__ */ e(S, { name: "Dot", size: "xs" }),
|
|
5193
|
-
/* @__PURE__ */ e(v, { fontSize: "sm", fontWeight: "medium", style: { textWrap: "nowrap" }, children:
|
|
5232
|
+
/* @__PURE__ */ e(v, { fontSize: "sm", fontWeight: "medium", style: { textWrap: "nowrap" }, children: ci(/* @__PURE__ */ new Date()) })
|
|
5194
5233
|
] })
|
|
5195
5234
|
] })
|
|
5196
5235
|
] }),
|
|
@@ -5210,7 +5249,7 @@ const di = (t) => {
|
|
|
5210
5249
|
]
|
|
5211
5250
|
}
|
|
5212
5251
|
);
|
|
5213
|
-
},
|
|
5252
|
+
}, gi = ({
|
|
5214
5253
|
status: t = "default",
|
|
5215
5254
|
labelPosition: r = "outside-top",
|
|
5216
5255
|
...n
|
|
@@ -5237,11 +5276,11 @@ const di = (t) => {
|
|
|
5237
5276
|
alignItems: "center"
|
|
5238
5277
|
}, children: "Optional" }),
|
|
5239
5278
|
n.required && /* @__PURE__ */ e("span", { style: { fontSize: "14px", fontWeight: 500, color: "var(--sa-text-error)" }, children: "*" })
|
|
5240
|
-
] }) : null, h = n.description ? /* @__PURE__ */ e(v, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-subtlest, #6b6e76)", lineHeight: "18px" }, children: n.description }) : null, d = /* @__PURE__ */ u(
|
|
5279
|
+
] }) : null, h = n.description ? /* @__PURE__ */ e(v, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-subtlest, #6b6e76)", lineHeight: "18px" }, children: n.description }) : null, d = /* @__PURE__ */ u(X, { children: [
|
|
5241
5280
|
n.helperText && /* @__PURE__ */ e(v, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-subtlest, #6b6e76)", lineHeight: "18px" }, children: n.helperText }),
|
|
5242
5281
|
n.errorText && t === "error" && /* @__PURE__ */ e(v, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-error, #a4133c)", lineHeight: "18px" }, children: n.errorText }),
|
|
5243
5282
|
n.errorMessage && !n.errorText && /* @__PURE__ */ e(v, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-error, #a4133c)", lineHeight: "18px" }, children: n.errorMessage })
|
|
5244
|
-
] }),
|
|
5283
|
+
] }), g = /* @__PURE__ */ e(
|
|
5245
5284
|
"input",
|
|
5246
5285
|
{
|
|
5247
5286
|
type: "file",
|
|
@@ -5253,7 +5292,7 @@ const di = (t) => {
|
|
|
5253
5292
|
},
|
|
5254
5293
|
accept: (y = n.fileSupportOption) == null ? void 0 : y.map((x) => "." + (x == null ? void 0 : x.toLowerCase())).join(", ")
|
|
5255
5294
|
}
|
|
5256
|
-
),
|
|
5295
|
+
), m = /* @__PURE__ */ u(
|
|
5257
5296
|
f,
|
|
5258
5297
|
{
|
|
5259
5298
|
direction: "column",
|
|
@@ -5267,9 +5306,9 @@ const di = (t) => {
|
|
|
5267
5306
|
gap: "md",
|
|
5268
5307
|
...n.containerProps,
|
|
5269
5308
|
children: [
|
|
5270
|
-
|
|
5309
|
+
g,
|
|
5271
5310
|
(n.fileSelected || n.defaultFile) && /* @__PURE__ */ e(
|
|
5272
|
-
|
|
5311
|
+
mi,
|
|
5273
5312
|
{
|
|
5274
5313
|
fileSelected: n.fileSelected,
|
|
5275
5314
|
defaultFile: n.defaultFile,
|
|
@@ -5278,7 +5317,7 @@ const di = (t) => {
|
|
|
5278
5317
|
}
|
|
5279
5318
|
),
|
|
5280
5319
|
!n.fileSelected && !n.defaultFile && /* @__PURE__ */ e(
|
|
5281
|
-
|
|
5320
|
+
oi,
|
|
5282
5321
|
{
|
|
5283
5322
|
fileSupports: n.fileSupportOption,
|
|
5284
5323
|
isDesktop: o,
|
|
@@ -5297,16 +5336,16 @@ const di = (t) => {
|
|
|
5297
5336
|
h
|
|
5298
5337
|
] }),
|
|
5299
5338
|
/* @__PURE__ */ u(U, { direction: "column", gap: "sm", style: { flex: 1, minWidth: 0 }, children: [
|
|
5300
|
-
|
|
5339
|
+
m,
|
|
5301
5340
|
d
|
|
5302
5341
|
] })
|
|
5303
5342
|
] }) : /* @__PURE__ */ u(U, { direction: "column", gap: "sm", style: { width: "100%" }, children: [
|
|
5304
5343
|
c,
|
|
5305
5344
|
h,
|
|
5306
|
-
|
|
5345
|
+
m,
|
|
5307
5346
|
d
|
|
5308
5347
|
] });
|
|
5309
|
-
},
|
|
5348
|
+
}, yi = ({
|
|
5310
5349
|
size: t = "md",
|
|
5311
5350
|
direction: r = "vertical",
|
|
5312
5351
|
requiredTitle: n = "(Required)",
|
|
@@ -5349,7 +5388,7 @@ const di = (t) => {
|
|
|
5349
5388
|
/* @__PURE__ */ e(Q, { fontSize: t, children: i.title }),
|
|
5350
5389
|
/* @__PURE__ */ e(Q, { color: "error", fontSize: t, children: n }),
|
|
5351
5390
|
/* @__PURE__ */ e(J, { condition: !!((c = i.tooltip) != null && c.label), children: /* @__PURE__ */ e(
|
|
5352
|
-
|
|
5391
|
+
de,
|
|
5353
5392
|
{
|
|
5354
5393
|
label: (h = i.tooltip) == null ? void 0 : h.label,
|
|
5355
5394
|
arrowPosition: (d = i.tooltip) == null ? void 0 : d.arrowPosition,
|
|
@@ -5376,7 +5415,7 @@ const di = (t) => {
|
|
|
5376
5415
|
),
|
|
5377
5416
|
/* @__PURE__ */ u(U, { direction: "column", gap: "xs", children: [
|
|
5378
5417
|
/* @__PURE__ */ e(
|
|
5379
|
-
|
|
5418
|
+
gi,
|
|
5380
5419
|
{
|
|
5381
5420
|
...i.inputProps,
|
|
5382
5421
|
status: i.errorMessage ? "error" : "default"
|
|
@@ -5387,7 +5426,7 @@ const di = (t) => {
|
|
|
5387
5426
|
]
|
|
5388
5427
|
}
|
|
5389
5428
|
);
|
|
5390
|
-
},
|
|
5429
|
+
}, pi = ({
|
|
5391
5430
|
size: t = "md",
|
|
5392
5431
|
direction: r = "vertical",
|
|
5393
5432
|
requiredTitle: n = "(Required)",
|
|
@@ -5395,7 +5434,7 @@ const di = (t) => {
|
|
|
5395
5434
|
required: i = !1,
|
|
5396
5435
|
...o
|
|
5397
5436
|
}) => {
|
|
5398
|
-
var h, d,
|
|
5437
|
+
var h, d, g, m;
|
|
5399
5438
|
const a = o.hideMessageError || !1, c = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
|
|
5400
5439
|
return /* @__PURE__ */ u(
|
|
5401
5440
|
f,
|
|
@@ -5431,10 +5470,10 @@ const di = (t) => {
|
|
|
5431
5470
|
/* @__PURE__ */ e(Q, { fontSize: t, children: o.title }),
|
|
5432
5471
|
/* @__PURE__ */ e(Q, { color: "error", fontSize: t, children: n }),
|
|
5433
5472
|
/* @__PURE__ */ e(J, { condition: !!((h = o.tooltip) != null && h.label), children: /* @__PURE__ */ e(
|
|
5434
|
-
|
|
5473
|
+
de,
|
|
5435
5474
|
{
|
|
5436
5475
|
label: (d = o.tooltip) == null ? void 0 : d.label,
|
|
5437
|
-
arrowPosition: (
|
|
5476
|
+
arrowPosition: (g = o.tooltip) == null ? void 0 : g.arrowPosition,
|
|
5438
5477
|
...o.tooltip,
|
|
5439
5478
|
children: /* @__PURE__ */ e(
|
|
5440
5479
|
S,
|
|
@@ -5463,9 +5502,9 @@ const di = (t) => {
|
|
|
5463
5502
|
direction: r === "horizontal-inline" ? "row" : "column",
|
|
5464
5503
|
align: "flex-start",
|
|
5465
5504
|
children: /* @__PURE__ */ e(
|
|
5466
|
-
|
|
5505
|
+
Wt,
|
|
5467
5506
|
{
|
|
5468
|
-
of: (
|
|
5507
|
+
of: (m = o.checkBoxesList) == null ? void 0 : m.map((y) => ({
|
|
5469
5508
|
...y,
|
|
5470
5509
|
isChecked: o.checkBoxesAreChecked.includes(y.id)
|
|
5471
5510
|
})),
|
|
@@ -5510,7 +5549,7 @@ const di = (t) => {
|
|
|
5510
5549
|
]
|
|
5511
5550
|
}
|
|
5512
5551
|
);
|
|
5513
|
-
},
|
|
5552
|
+
}, xi = ({
|
|
5514
5553
|
position: t = "vertical",
|
|
5515
5554
|
size: r = "md",
|
|
5516
5555
|
fullWidth: n = !1,
|
|
@@ -5544,19 +5583,19 @@ const di = (t) => {
|
|
|
5544
5583
|
align: "flex-start",
|
|
5545
5584
|
flexWrap: "wrap",
|
|
5546
5585
|
children: /* @__PURE__ */ e(
|
|
5547
|
-
|
|
5586
|
+
Wt,
|
|
5548
5587
|
{
|
|
5549
5588
|
of: (o = l.radioList) == null ? void 0 : o.map((a) => ({
|
|
5550
5589
|
...a,
|
|
5551
5590
|
isChecked: l.radioIsChecked === a.id
|
|
5552
5591
|
})),
|
|
5553
|
-
render: ({ value: a, id: c, isChecked: h, subInput: d, label:
|
|
5592
|
+
render: ({ value: a, id: c, isChecked: h, subInput: d, label: g, description: m }) => /* @__PURE__ */ u(f, { direction: "column", gap: "xs", customMaxWidth: i, children: [
|
|
5554
5593
|
/* @__PURE__ */ e(
|
|
5555
|
-
|
|
5594
|
+
zr,
|
|
5556
5595
|
{
|
|
5557
5596
|
id: `${c.toString()}-${a}`,
|
|
5558
|
-
name: l.groupName ||
|
|
5559
|
-
label:
|
|
5597
|
+
name: l.groupName || g,
|
|
5598
|
+
label: g,
|
|
5560
5599
|
value: a,
|
|
5561
5600
|
checked: h,
|
|
5562
5601
|
onChange: (y) => l.onChecked({
|
|
@@ -5568,14 +5607,14 @@ const di = (t) => {
|
|
|
5568
5607
|
},
|
|
5569
5608
|
c
|
|
5570
5609
|
),
|
|
5571
|
-
|
|
5610
|
+
m && /* @__PURE__ */ e(
|
|
5572
5611
|
v,
|
|
5573
5612
|
{
|
|
5574
5613
|
color: "gray-500",
|
|
5575
5614
|
style: {
|
|
5576
5615
|
marginLeft: 28
|
|
5577
5616
|
},
|
|
5578
|
-
children:
|
|
5617
|
+
children: m
|
|
5579
5618
|
}
|
|
5580
5619
|
),
|
|
5581
5620
|
d
|
|
@@ -5588,7 +5627,7 @@ const di = (t) => {
|
|
|
5588
5627
|
]
|
|
5589
5628
|
}
|
|
5590
5629
|
);
|
|
5591
|
-
},
|
|
5630
|
+
}, Ci = ({
|
|
5592
5631
|
size: t = "md",
|
|
5593
5632
|
direction: r = "vertical",
|
|
5594
5633
|
requiredTitle: n = "(Required)",
|
|
@@ -5631,7 +5670,7 @@ const di = (t) => {
|
|
|
5631
5670
|
/* @__PURE__ */ e(Q, { fontSize: t, children: i.title }),
|
|
5632
5671
|
/* @__PURE__ */ e(Q, { color: "error", fontSize: t, children: n }),
|
|
5633
5672
|
/* @__PURE__ */ e(J, { condition: !!((c = i.tooltip) != null && c.label), children: /* @__PURE__ */ e(
|
|
5634
|
-
|
|
5673
|
+
de,
|
|
5635
5674
|
{
|
|
5636
5675
|
label: (h = i.tooltip) == null ? void 0 : h.label,
|
|
5637
5676
|
arrowPosition: (d = i.tooltip) == null ? void 0 : d.arrowPosition,
|
|
@@ -5658,7 +5697,7 @@ const di = (t) => {
|
|
|
5658
5697
|
),
|
|
5659
5698
|
/* @__PURE__ */ u(U, { direction: "column", gap: "xs", children: [
|
|
5660
5699
|
/* @__PURE__ */ e(
|
|
5661
|
-
|
|
5700
|
+
Mr,
|
|
5662
5701
|
{
|
|
5663
5702
|
ref: i.inputRef,
|
|
5664
5703
|
size: t,
|
|
@@ -5671,7 +5710,7 @@ const di = (t) => {
|
|
|
5671
5710
|
]
|
|
5672
5711
|
}
|
|
5673
5712
|
);
|
|
5674
|
-
},
|
|
5713
|
+
}, bi = ({
|
|
5675
5714
|
size: t = "md",
|
|
5676
5715
|
direction: r = "vertical",
|
|
5677
5716
|
requiredTitle: n = "(Required)",
|
|
@@ -5715,7 +5754,7 @@ const di = (t) => {
|
|
|
5715
5754
|
/* @__PURE__ */ e(Q, { fontSize: t, children: o.title }),
|
|
5716
5755
|
/* @__PURE__ */ e(Q, { color: "error", fontSize: t, children: n }),
|
|
5717
5756
|
/* @__PURE__ */ e(J, { condition: !!((c = o.tooltip) != null && c.label), children: /* @__PURE__ */ e(
|
|
5718
|
-
|
|
5757
|
+
de,
|
|
5719
5758
|
{
|
|
5720
5759
|
label: (h = o.tooltip) == null ? void 0 : h.label,
|
|
5721
5760
|
arrowPosition: (d = o.tooltip) == null ? void 0 : d.arrowPosition,
|
|
@@ -5741,7 +5780,7 @@ const di = (t) => {
|
|
|
5741
5780
|
}
|
|
5742
5781
|
),
|
|
5743
5782
|
/* @__PURE__ */ e(
|
|
5744
|
-
|
|
5783
|
+
kt,
|
|
5745
5784
|
{
|
|
5746
5785
|
checked: o.checked,
|
|
5747
5786
|
onChange: o.onChange,
|
|
@@ -5753,22 +5792,22 @@ const di = (t) => {
|
|
|
5753
5792
|
]
|
|
5754
5793
|
}
|
|
5755
5794
|
);
|
|
5756
|
-
},
|
|
5795
|
+
}, vi = ({
|
|
5757
5796
|
variant: t = "primary",
|
|
5758
5797
|
size: r = "md",
|
|
5759
5798
|
...n
|
|
5760
5799
|
}) => {
|
|
5761
|
-
const l =
|
|
5762
|
-
var h, d,
|
|
5800
|
+
const l = Br(), i = (a) => {
|
|
5801
|
+
var h, d, g, m, y, x;
|
|
5763
5802
|
if (!a) return;
|
|
5764
|
-
const c = n.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary" ? "var(--sa-text-subtle, #8c8f97)" : t === "secondary-danger" ? (d = (h = l == null ? void 0 : l.computed) == null ? void 0 : h.red) == null ? void 0 : d[600] : t === "secondary-primary" ? (
|
|
5803
|
+
const c = n.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary" ? "var(--sa-text-subtle, #8c8f97)" : t === "secondary-danger" ? (d = (h = l == null ? void 0 : l.computed) == null ? void 0 : h.red) == null ? void 0 : d[600] : t === "secondary-primary" ? (m = (g = l == null ? void 0 : l.computed) == null ? void 0 : g.blue) == null ? void 0 : m[700] : (x = (y = l == null ? void 0 : l.computed) == null ? void 0 : y.gray) == null ? void 0 : x[50];
|
|
5765
5804
|
return /* @__PURE__ */ e(S, { name: a, size: r, style: { color: c } });
|
|
5766
5805
|
}, o = () => {
|
|
5767
|
-
var c, h, d,
|
|
5806
|
+
var c, h, d, g;
|
|
5768
5807
|
if (t !== "secondary-danger" && t !== "secondary-primary")
|
|
5769
5808
|
return n.title;
|
|
5770
5809
|
const a = {
|
|
5771
|
-
color: n.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary-danger" ? (h = (c = l == null ? void 0 : l.computed) == null ? void 0 : c.red) == null ? void 0 : h[600] : (
|
|
5810
|
+
color: n.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary-danger" ? (h = (c = l == null ? void 0 : l.computed) == null ? void 0 : c.red) == null ? void 0 : h[600] : (g = (d = l == null ? void 0 : l.computed) == null ? void 0 : d.blue) == null ? void 0 : g[700]
|
|
5772
5811
|
};
|
|
5773
5812
|
switch (r) {
|
|
5774
5813
|
case "xs":
|
|
@@ -5798,7 +5837,7 @@ const di = (t) => {
|
|
|
5798
5837
|
children: o()
|
|
5799
5838
|
}
|
|
5800
5839
|
);
|
|
5801
|
-
},
|
|
5840
|
+
}, Di = (t) => /* @__PURE__ */ e(
|
|
5802
5841
|
xe.H5,
|
|
5803
5842
|
{
|
|
5804
5843
|
props: {
|
|
@@ -5806,7 +5845,7 @@ const di = (t) => {
|
|
|
5806
5845
|
},
|
|
5807
5846
|
children: t.title
|
|
5808
5847
|
}
|
|
5809
|
-
),
|
|
5848
|
+
), wi = ({
|
|
5810
5849
|
size: t = "md",
|
|
5811
5850
|
direction: r = "vertical",
|
|
5812
5851
|
requiredTitle: n = "(Required)",
|
|
@@ -5849,7 +5888,7 @@ const di = (t) => {
|
|
|
5849
5888
|
/* @__PURE__ */ e(Q, { fontSize: t, children: i.title }),
|
|
5850
5889
|
/* @__PURE__ */ e(Q, { color: "error", fontSize: t, children: n }),
|
|
5851
5890
|
/* @__PURE__ */ e(J, { condition: !!((c = i.tooltip) != null && c.label), children: /* @__PURE__ */ e(
|
|
5852
|
-
|
|
5891
|
+
de,
|
|
5853
5892
|
{
|
|
5854
5893
|
label: (h = i.tooltip) == null ? void 0 : h.label,
|
|
5855
5894
|
arrowPosition: (d = i.tooltip) == null ? void 0 : d.arrowPosition,
|
|
@@ -5883,7 +5922,7 @@ const di = (t) => {
|
|
|
5883
5922
|
width: r === "horizontal" && i.customWidth ? i.customWidth : r === "horizontal" ? "343px" : ""
|
|
5884
5923
|
},
|
|
5885
5924
|
children: /* @__PURE__ */ e(
|
|
5886
|
-
|
|
5925
|
+
ir,
|
|
5887
5926
|
{
|
|
5888
5927
|
size: t,
|
|
5889
5928
|
...i.inputProps,
|
|
@@ -5898,7 +5937,7 @@ const di = (t) => {
|
|
|
5898
5937
|
}
|
|
5899
5938
|
);
|
|
5900
5939
|
};
|
|
5901
|
-
async function
|
|
5940
|
+
async function ki(t, r) {
|
|
5902
5941
|
const n = new Image();
|
|
5903
5942
|
n.src = t, await new Promise((o, a) => {
|
|
5904
5943
|
n.onload = o, n.onerror = a;
|
|
@@ -5925,7 +5964,7 @@ async function bi(t, r) {
|
|
|
5925
5964
|
}, "image/png");
|
|
5926
5965
|
});
|
|
5927
5966
|
}
|
|
5928
|
-
const
|
|
5967
|
+
const nr = {
|
|
5929
5968
|
"1:1": 1,
|
|
5930
5969
|
"4:3": 4 / 3,
|
|
5931
5970
|
"16:9": 16 / 9,
|
|
@@ -5934,7 +5973,7 @@ const er = {
|
|
|
5934
5973
|
"2:3": 2 / 3,
|
|
5935
5974
|
"3:2": 3 / 2,
|
|
5936
5975
|
"32:9": 32 / 9
|
|
5937
|
-
},
|
|
5976
|
+
}, Si = St(
|
|
5938
5977
|
({
|
|
5939
5978
|
handleUpload: t,
|
|
5940
5979
|
urlImage: r,
|
|
@@ -5946,8 +5985,8 @@ const er = {
|
|
|
5946
5985
|
containerProps: c,
|
|
5947
5986
|
maxFileSize: h = 2,
|
|
5948
5987
|
onError: d
|
|
5949
|
-
},
|
|
5950
|
-
const
|
|
5988
|
+
}, g) => {
|
|
5989
|
+
const m = he("md"), [y, x] = M(!1), [D, p] = M(null), [E, W] = M(!1), [k, O] = M({ x: 0, y: 0 }), [C, L] = M(1), [z, F] = M(null);
|
|
5951
5990
|
Z(() => {
|
|
5952
5991
|
r === null && i(null);
|
|
5953
5992
|
}, [r]);
|
|
@@ -5964,10 +6003,10 @@ const er = {
|
|
|
5964
6003
|
ce.onload = () => {
|
|
5965
6004
|
p(ce.result), W(!0);
|
|
5966
6005
|
}, ce.readAsDataURL(q);
|
|
5967
|
-
},
|
|
6006
|
+
}, K = async () => {
|
|
5968
6007
|
if (!(!D || !z))
|
|
5969
6008
|
try {
|
|
5970
|
-
const P = await
|
|
6009
|
+
const P = await ki(D, z);
|
|
5971
6010
|
if (h && P.size > h * 1024 * 1024) {
|
|
5972
6011
|
d == null || d(`Ukuran file maksimal ${h}MB`);
|
|
5973
6012
|
return;
|
|
@@ -5978,16 +6017,16 @@ const er = {
|
|
|
5978
6017
|
} catch {
|
|
5979
6018
|
d == null || d("Gagal memproses gambar");
|
|
5980
6019
|
}
|
|
5981
|
-
}, $ = oe(null),
|
|
6020
|
+
}, $ = oe(null), ee = () => {
|
|
5982
6021
|
$.current && $.current.click();
|
|
5983
6022
|
};
|
|
5984
|
-
|
|
6023
|
+
Ir(g, () => ({
|
|
5985
6024
|
openFileDialog: () => {
|
|
5986
6025
|
var P;
|
|
5987
6026
|
(P = $.current) == null || P.click();
|
|
5988
6027
|
}
|
|
5989
6028
|
}));
|
|
5990
|
-
const Y = parseInt(o, 10), re =
|
|
6029
|
+
const Y = parseInt(o, 10), re = nr[a];
|
|
5991
6030
|
let ne, ie;
|
|
5992
6031
|
return re >= 1 ? (ie = Y, ne = Y * re) : (ne = Y, ie = Y / re), /* @__PURE__ */ u(
|
|
5993
6032
|
f,
|
|
@@ -6059,7 +6098,7 @@ const er = {
|
|
|
6059
6098
|
opacity: y ? 1 : 0,
|
|
6060
6099
|
transition: "opacity 0.3s ease-in-out"
|
|
6061
6100
|
},
|
|
6062
|
-
onClick:
|
|
6101
|
+
onClick: ee,
|
|
6063
6102
|
children: [
|
|
6064
6103
|
/* @__PURE__ */ e(
|
|
6065
6104
|
"input",
|
|
@@ -6122,7 +6161,7 @@ const er = {
|
|
|
6122
6161
|
)
|
|
6123
6162
|
}
|
|
6124
6163
|
),
|
|
6125
|
-
E &&
|
|
6164
|
+
E && Rr.createPortal(
|
|
6126
6165
|
/* @__PURE__ */ e(
|
|
6127
6166
|
"div",
|
|
6128
6167
|
{
|
|
@@ -6144,7 +6183,7 @@ const er = {
|
|
|
6144
6183
|
borderRadius: "var(--sa-radii-md)",
|
|
6145
6184
|
boxShadow: "0 20px 60px rgba(0,0,0,0.3)",
|
|
6146
6185
|
overflow: "hidden",
|
|
6147
|
-
width:
|
|
6186
|
+
width: m ? a === "1:1" ? "min(90vw, 480px)" : `min(90vw, ${ne * 2}px)` : "calc(100vw - 2rem)",
|
|
6148
6187
|
display: "flex",
|
|
6149
6188
|
flexDirection: "column"
|
|
6150
6189
|
},
|
|
@@ -6160,12 +6199,12 @@ const er = {
|
|
|
6160
6199
|
backgroundColor: "var(--sa-color-gray-100)"
|
|
6161
6200
|
},
|
|
6162
6201
|
children: D && /* @__PURE__ */ e(
|
|
6163
|
-
|
|
6202
|
+
Hr,
|
|
6164
6203
|
{
|
|
6165
6204
|
image: D,
|
|
6166
6205
|
crop: k,
|
|
6167
6206
|
zoom: C,
|
|
6168
|
-
aspect: a ?
|
|
6207
|
+
aspect: a ? nr[a] : void 0,
|
|
6169
6208
|
onCropChange: O,
|
|
6170
6209
|
onZoomChange: L,
|
|
6171
6210
|
onCropComplete: j,
|
|
@@ -6188,7 +6227,7 @@ const er = {
|
|
|
6188
6227
|
},
|
|
6189
6228
|
children: [
|
|
6190
6229
|
/* @__PURE__ */ e(H, { size: "sm", secondary: !0, onClick: () => W(!1), children: "Cancel" }),
|
|
6191
|
-
/* @__PURE__ */ e(H, { size: "sm", primary: !0, onClick:
|
|
6230
|
+
/* @__PURE__ */ e(H, { size: "sm", primary: !0, onClick: K, children: "Crop" })
|
|
6192
6231
|
]
|
|
6193
6232
|
}
|
|
6194
6233
|
)
|
|
@@ -6203,7 +6242,7 @@ const er = {
|
|
|
6203
6242
|
}
|
|
6204
6243
|
);
|
|
6205
6244
|
}
|
|
6206
|
-
),
|
|
6245
|
+
), Fi = ({
|
|
6207
6246
|
size: t = "md",
|
|
6208
6247
|
direction: r = "vertical",
|
|
6209
6248
|
requiredTitle: n = "(Required)",
|
|
@@ -6211,7 +6250,7 @@ const er = {
|
|
|
6211
6250
|
required: i = !1,
|
|
6212
6251
|
...o
|
|
6213
6252
|
}) => {
|
|
6214
|
-
var h, d,
|
|
6253
|
+
var h, d, g;
|
|
6215
6254
|
const a = o.hideMessageError || !1, c = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
|
|
6216
6255
|
return /* @__PURE__ */ u(
|
|
6217
6256
|
f,
|
|
@@ -6247,10 +6286,10 @@ const er = {
|
|
|
6247
6286
|
/* @__PURE__ */ e(Q, { fontSize: t, children: o.title }),
|
|
6248
6287
|
/* @__PURE__ */ e(Q, { color: "error", fontSize: t, children: n }),
|
|
6249
6288
|
/* @__PURE__ */ e(J, { condition: !!((h = o.tooltip) != null && h.label), children: /* @__PURE__ */ e(
|
|
6250
|
-
|
|
6289
|
+
de,
|
|
6251
6290
|
{
|
|
6252
6291
|
label: (d = o.tooltip) == null ? void 0 : d.label,
|
|
6253
|
-
arrowPosition: (
|
|
6292
|
+
arrowPosition: (g = o.tooltip) == null ? void 0 : g.arrowPosition,
|
|
6254
6293
|
...o.tooltip,
|
|
6255
6294
|
children: /* @__PURE__ */ e(
|
|
6256
6295
|
S,
|
|
@@ -6273,13 +6312,13 @@ const er = {
|
|
|
6273
6312
|
}
|
|
6274
6313
|
),
|
|
6275
6314
|
/* @__PURE__ */ u(U, { direction: "column", gap: "xs", children: [
|
|
6276
|
-
/* @__PURE__ */ e(
|
|
6315
|
+
/* @__PURE__ */ e(Si, { ...o.inputProps }),
|
|
6277
6316
|
!a && o.errorMessage && /* @__PURE__ */ e(we, { message: o.errorMessage })
|
|
6278
6317
|
] })
|
|
6279
6318
|
]
|
|
6280
6319
|
}
|
|
6281
6320
|
);
|
|
6282
|
-
},
|
|
6321
|
+
}, Ei = ({
|
|
6283
6322
|
size: t = "md",
|
|
6284
6323
|
direction: r = "vertical",
|
|
6285
6324
|
requiredTitle: n = "(Required)",
|
|
@@ -6322,7 +6361,7 @@ const er = {
|
|
|
6322
6361
|
/* @__PURE__ */ e(Q, { fontSize: t, children: i.title }),
|
|
6323
6362
|
/* @__PURE__ */ e(Q, { color: "error", fontSize: t, children: n }),
|
|
6324
6363
|
/* @__PURE__ */ e(J, { condition: !!((a = i.tooltip) != null && a.label), children: /* @__PURE__ */ e(
|
|
6325
|
-
|
|
6364
|
+
de,
|
|
6326
6365
|
{
|
|
6327
6366
|
label: (c = i.tooltip) == null ? void 0 : c.label,
|
|
6328
6367
|
arrowPosition: (h = i.tooltip) == null ? void 0 : h.arrowPosition,
|
|
@@ -6351,7 +6390,7 @@ const er = {
|
|
|
6351
6390
|
]
|
|
6352
6391
|
}
|
|
6353
6392
|
);
|
|
6354
|
-
},
|
|
6393
|
+
}, Gl = ({
|
|
6355
6394
|
items: t,
|
|
6356
6395
|
id: r,
|
|
6357
6396
|
handleOnUpdate: n,
|
|
@@ -6359,14 +6398,14 @@ const er = {
|
|
|
6359
6398
|
toggleShow: i = !0,
|
|
6360
6399
|
disabled: o = !1
|
|
6361
6400
|
}) => {
|
|
6362
|
-
var
|
|
6401
|
+
var g;
|
|
6363
6402
|
const [a, c] = M([]);
|
|
6364
6403
|
Z(() => {
|
|
6365
|
-
t && c([...t.map((
|
|
6404
|
+
t && c([...t.map((m) => ({ id: m.id, isActive: m.isActive }))]);
|
|
6366
6405
|
}, [t]);
|
|
6367
|
-
const h = (
|
|
6406
|
+
const h = (g = a.find((m) => m.id === r)) == null ? void 0 : g.isActive, d = G(() => {
|
|
6368
6407
|
c(
|
|
6369
|
-
(
|
|
6408
|
+
(m) => m.map((y) => y.id === r ? { ...y, isActive: !y.isActive } : y)
|
|
6370
6409
|
), n && n(!h);
|
|
6371
6410
|
}, [r, n, h]);
|
|
6372
6411
|
return /* @__PURE__ */ e(
|
|
@@ -6378,7 +6417,7 @@ const er = {
|
|
|
6378
6417
|
width: l
|
|
6379
6418
|
},
|
|
6380
6419
|
children: i && /* @__PURE__ */ e(
|
|
6381
|
-
|
|
6420
|
+
kt,
|
|
6382
6421
|
{
|
|
6383
6422
|
disabled: o,
|
|
6384
6423
|
checked: h,
|
|
@@ -6388,20 +6427,20 @@ const er = {
|
|
|
6388
6427
|
)
|
|
6389
6428
|
}
|
|
6390
6429
|
);
|
|
6391
|
-
},
|
|
6392
|
-
InputText:
|
|
6393
|
-
InputDropdown:
|
|
6394
|
-
InputSingleFile:
|
|
6395
|
-
CheckBoxOptions:
|
|
6396
|
-
RadioOptions:
|
|
6397
|
-
InputTextArea:
|
|
6398
|
-
ToggleForm:
|
|
6399
|
-
ActionButton:
|
|
6400
|
-
FormTitle:
|
|
6401
|
-
InputDate:
|
|
6402
|
-
InputImgFile:
|
|
6403
|
-
Custom:
|
|
6404
|
-
},
|
|
6430
|
+
}, Jl = {
|
|
6431
|
+
InputText: ni,
|
|
6432
|
+
InputDropdown: ii,
|
|
6433
|
+
InputSingleFile: yi,
|
|
6434
|
+
CheckBoxOptions: pi,
|
|
6435
|
+
RadioOptions: xi,
|
|
6436
|
+
InputTextArea: Ci,
|
|
6437
|
+
ToggleForm: bi,
|
|
6438
|
+
ActionButton: vi,
|
|
6439
|
+
FormTitle: Di,
|
|
6440
|
+
InputDate: wi,
|
|
6441
|
+
InputImgFile: Fi,
|
|
6442
|
+
Custom: Ei
|
|
6443
|
+
}, Li = ({ customBottom: t }) => {
|
|
6405
6444
|
const [r, n] = M(!1), l = () => {
|
|
6406
6445
|
window.scrollY > window.screenY ? n(!0) : n(!1);
|
|
6407
6446
|
}, i = () => {
|
|
@@ -6453,7 +6492,7 @@ const er = {
|
|
|
6453
6492
|
)
|
|
6454
6493
|
}
|
|
6455
6494
|
);
|
|
6456
|
-
},
|
|
6495
|
+
}, Ul = ({ pageLayout: t, children: r, wrapperProps: n, containerProps: l }) => {
|
|
6457
6496
|
const i = he("md"), o = (l == null ? void 0 : l.customWidth) ?? 264;
|
|
6458
6497
|
return /* @__PURE__ */ u(
|
|
6459
6498
|
f,
|
|
@@ -6493,7 +6532,7 @@ const er = {
|
|
|
6493
6532
|
]
|
|
6494
6533
|
}
|
|
6495
6534
|
);
|
|
6496
|
-
},
|
|
6535
|
+
}, Ql = ({
|
|
6497
6536
|
children: t,
|
|
6498
6537
|
withScrollToTopButton: r = !1,
|
|
6499
6538
|
scrollToTopButtonProps: n,
|
|
@@ -6520,7 +6559,7 @@ const er = {
|
|
|
6520
6559
|
borderWidth: "border-t",
|
|
6521
6560
|
children: [
|
|
6522
6561
|
r && /* @__PURE__ */ e(
|
|
6523
|
-
|
|
6562
|
+
Li,
|
|
6524
6563
|
{
|
|
6525
6564
|
...n,
|
|
6526
6565
|
customBottom: (n == null ? void 0 : n.customBottom) || "5.7rem"
|
|
@@ -6529,13 +6568,13 @@ const er = {
|
|
|
6529
6568
|
t
|
|
6530
6569
|
]
|
|
6531
6570
|
}
|
|
6532
|
-
) }),
|
|
6533
|
-
|
|
6571
|
+
) }), Yl = ({ fields: t }) => /* @__PURE__ */ e(f, { display: "flex", direction: "column", gap: "lg", children: /* @__PURE__ */ e(
|
|
6572
|
+
Wt,
|
|
6534
6573
|
{
|
|
6535
6574
|
of: t,
|
|
6536
|
-
render: (r, n) => /* @__PURE__ */ e(
|
|
6575
|
+
render: (r, n) => /* @__PURE__ */ e(Mi, { ...r }, n)
|
|
6537
6576
|
}
|
|
6538
|
-
) }),
|
|
6577
|
+
) }), Mi = ({ title: t, value: r, icon: n }) => /* @__PURE__ */ u(f, { display: "flex", direction: "column", gap: "sm", children: [
|
|
6539
6578
|
n ? /* @__PURE__ */ u(f, { display: "flex", direction: "row", align: "center", gap: "xs", children: [
|
|
6540
6579
|
/* @__PURE__ */ e(S, { name: n, color: "subtle" }),
|
|
6541
6580
|
/* @__PURE__ */ e(v, { color: "gray-500", variant: "sub-h3", children: t })
|
|
@@ -6545,8 +6584,8 @@ const er = {
|
|
|
6545
6584
|
silhouette: "#A7B0AC",
|
|
6546
6585
|
accent: "#78867F"
|
|
6547
6586
|
};
|
|
6548
|
-
function
|
|
6549
|
-
return /* @__PURE__ */ e(
|
|
6587
|
+
function Wi({ width: t, height: r }) {
|
|
6588
|
+
return /* @__PURE__ */ e(X, { children: /* @__PURE__ */ u(
|
|
6550
6589
|
"svg",
|
|
6551
6590
|
{
|
|
6552
6591
|
width: t || "100",
|
|
@@ -6688,7 +6727,7 @@ function Fi({ width: t, height: r }) {
|
|
|
6688
6727
|
}
|
|
6689
6728
|
) });
|
|
6690
6729
|
}
|
|
6691
|
-
const
|
|
6730
|
+
const Xl = ({
|
|
6692
6731
|
title: t = "create",
|
|
6693
6732
|
children: r,
|
|
6694
6733
|
onClickAction: n,
|
|
@@ -6700,12 +6739,12 @@ const Jl = ({
|
|
|
6700
6739
|
childrenButton: h,
|
|
6701
6740
|
customIcon: d
|
|
6702
6741
|
}) => {
|
|
6703
|
-
const
|
|
6742
|
+
const g = () => {
|
|
6704
6743
|
switch (l) {
|
|
6705
6744
|
case "primary":
|
|
6706
|
-
return /* @__PURE__ */ e(
|
|
6745
|
+
return /* @__PURE__ */ e(X, { children: o ? /* @__PURE__ */ e(H, { primary: !0, iconLeft: o, onClick: n, children: h || t }) : /* @__PURE__ */ e(H, { primary: !0, onClick: n, children: h || t }) });
|
|
6707
6746
|
case "secondary":
|
|
6708
|
-
return /* @__PURE__ */ e(
|
|
6747
|
+
return /* @__PURE__ */ e(X, { children: o ? /* @__PURE__ */ e(H, { secondary: !0, iconLeft: o, onClick: n, children: i ? /* @__PURE__ */ e(
|
|
6709
6748
|
v,
|
|
6710
6749
|
{
|
|
6711
6750
|
fontFamily: "Poppins",
|
|
@@ -6716,9 +6755,9 @@ const Jl = ({
|
|
|
6716
6755
|
}
|
|
6717
6756
|
) : t }) : /* @__PURE__ */ e(H, { secondary: !0, onClick: n, children: h || t }) });
|
|
6718
6757
|
case "success":
|
|
6719
|
-
return /* @__PURE__ */ e(
|
|
6758
|
+
return /* @__PURE__ */ e(X, { children: o ? /* @__PURE__ */ e(H, { success: !0, iconLeft: o, onClick: n, children: h || t }) : /* @__PURE__ */ e(H, { success: !0, onClick: n, children: h || t }) });
|
|
6720
6759
|
default:
|
|
6721
|
-
return /* @__PURE__ */ e(
|
|
6760
|
+
return /* @__PURE__ */ e(X, { children: o ? /* @__PURE__ */ e(H, { primary: !0, iconLeft: o, onClick: n, children: h || t }) : /* @__PURE__ */ e(H, { primary: !0, onClick: n, children: h || t }) });
|
|
6722
6761
|
}
|
|
6723
6762
|
};
|
|
6724
6763
|
return /* @__PURE__ */ u(
|
|
@@ -6733,19 +6772,19 @@ const Jl = ({
|
|
|
6733
6772
|
marginBlock: "auto",
|
|
6734
6773
|
customHeight: c,
|
|
6735
6774
|
children: [
|
|
6736
|
-
d || /* @__PURE__ */ e(
|
|
6737
|
-
/* @__PURE__ */ e(f, { direction: "column", children: r.map((
|
|
6775
|
+
d || /* @__PURE__ */ e(Wi, {}),
|
|
6776
|
+
/* @__PURE__ */ e(f, { direction: "column", children: r.map((m, y) => /* @__PURE__ */ e(
|
|
6738
6777
|
xe.Body1,
|
|
6739
6778
|
{
|
|
6740
6779
|
props: {
|
|
6741
6780
|
align: "center",
|
|
6742
6781
|
textAlign: "center"
|
|
6743
6782
|
},
|
|
6744
|
-
children: y > 2 ? null :
|
|
6783
|
+
children: y > 2 ? null : m
|
|
6745
6784
|
},
|
|
6746
6785
|
y
|
|
6747
6786
|
)) }),
|
|
6748
|
-
a ?
|
|
6787
|
+
a ? g() : null
|
|
6749
6788
|
]
|
|
6750
6789
|
}
|
|
6751
6790
|
);
|
|
@@ -6759,8 +6798,8 @@ const Jl = ({
|
|
|
6759
6798
|
c000000: "#000000",
|
|
6760
6799
|
cFFFFFF: "#FFFFFF"
|
|
6761
6800
|
};
|
|
6762
|
-
function
|
|
6763
|
-
return /* @__PURE__ */ e(
|
|
6801
|
+
function Bi({ width: t, height: r }) {
|
|
6802
|
+
return /* @__PURE__ */ e(X, { children: /* @__PURE__ */ u(
|
|
6764
6803
|
"svg",
|
|
6765
6804
|
{
|
|
6766
6805
|
width: t,
|
|
@@ -6962,7 +7001,7 @@ function Ei({ width: t, height: r }) {
|
|
|
6962
7001
|
}
|
|
6963
7002
|
) });
|
|
6964
7003
|
}
|
|
6965
|
-
function
|
|
7004
|
+
function Kl({ onClick: t }) {
|
|
6966
7005
|
const r = he("md");
|
|
6967
7006
|
return /* @__PURE__ */ u(
|
|
6968
7007
|
f,
|
|
@@ -6975,7 +7014,7 @@ function Ul({ onClick: t }) {
|
|
|
6975
7014
|
justify: "center",
|
|
6976
7015
|
gap: "md",
|
|
6977
7016
|
children: [
|
|
6978
|
-
/* @__PURE__ */ e(
|
|
7017
|
+
/* @__PURE__ */ e(Bi, { width: r ? 600 : 300 }),
|
|
6979
7018
|
/* @__PURE__ */ e(
|
|
6980
7019
|
v,
|
|
6981
7020
|
{
|
|
@@ -7020,8 +7059,8 @@ const _ = {
|
|
|
7020
7059
|
cF4F4F4: "#F4F4F4",
|
|
7021
7060
|
cFFFFFF: "#FFFFFF"
|
|
7022
7061
|
};
|
|
7023
|
-
function
|
|
7024
|
-
return /* @__PURE__ */ e(
|
|
7062
|
+
function zi({ width: t, height: r }) {
|
|
7063
|
+
return /* @__PURE__ */ e(X, { children: /* @__PURE__ */ u(
|
|
7025
7064
|
"svg",
|
|
7026
7065
|
{
|
|
7027
7066
|
width: t,
|
|
@@ -7235,7 +7274,7 @@ function Li({ width: t, height: r }) {
|
|
|
7235
7274
|
}
|
|
7236
7275
|
) });
|
|
7237
7276
|
}
|
|
7238
|
-
function
|
|
7277
|
+
function eo({ onClick: t }) {
|
|
7239
7278
|
const r = he("md");
|
|
7240
7279
|
return /* @__PURE__ */ u(
|
|
7241
7280
|
f,
|
|
@@ -7248,7 +7287,7 @@ function Ql({ onClick: t }) {
|
|
|
7248
7287
|
justify: "center",
|
|
7249
7288
|
gap: "md",
|
|
7250
7289
|
children: [
|
|
7251
|
-
/* @__PURE__ */ e(
|
|
7290
|
+
/* @__PURE__ */ e(zi, { width: r ? 600 : 300 }),
|
|
7252
7291
|
/* @__PURE__ */ e(v, { fontWeight: "bold", fontSize: r ? "3xl" : "2xl", children: "We Are Sorry ..." }),
|
|
7253
7292
|
t && /* @__PURE__ */ e(H, { size: r ? "md" : "xs", onClick: t, children: "Go Back" })
|
|
7254
7293
|
]
|
|
@@ -7272,8 +7311,8 @@ const s = {
|
|
|
7272
7311
|
cFFE18B: "#FFE18B",
|
|
7273
7312
|
cFFFFFF: "#FFFFFF"
|
|
7274
7313
|
};
|
|
7275
|
-
function
|
|
7276
|
-
return /* @__PURE__ */ e(
|
|
7314
|
+
function Ai({ width: t, height: r }) {
|
|
7315
|
+
return /* @__PURE__ */ e(X, { children: /* @__PURE__ */ u(
|
|
7277
7316
|
"svg",
|
|
7278
7317
|
{
|
|
7279
7318
|
width: t,
|
|
@@ -7944,7 +7983,7 @@ function Mi({ width: t, height: r }) {
|
|
|
7944
7983
|
}
|
|
7945
7984
|
) });
|
|
7946
7985
|
}
|
|
7947
|
-
function
|
|
7986
|
+
function to({ onClick: t }) {
|
|
7948
7987
|
const r = he("md");
|
|
7949
7988
|
return /* @__PURE__ */ u(
|
|
7950
7989
|
f,
|
|
@@ -7958,7 +7997,7 @@ function Yl({ onClick: t }) {
|
|
|
7958
7997
|
gap: "md",
|
|
7959
7998
|
overflow: "overflow-hidden",
|
|
7960
7999
|
children: [
|
|
7961
|
-
/* @__PURE__ */ e(
|
|
8000
|
+
/* @__PURE__ */ e(Ai, { width: r ? 600 : 300 }),
|
|
7962
8001
|
/* @__PURE__ */ e(
|
|
7963
8002
|
v,
|
|
7964
8003
|
{
|
|
@@ -7982,11 +8021,11 @@ function Yl({ onClick: t }) {
|
|
|
7982
8021
|
}
|
|
7983
8022
|
);
|
|
7984
8023
|
}
|
|
7985
|
-
const
|
|
8024
|
+
const ro = (t) => {
|
|
7986
8025
|
var n, l, i, o, a;
|
|
7987
8026
|
const r = he("md");
|
|
7988
8027
|
return /* @__PURE__ */ u(
|
|
7989
|
-
|
|
8028
|
+
Dt,
|
|
7990
8029
|
{
|
|
7991
8030
|
isShow: t.isShow,
|
|
7992
8031
|
onHide: t.onHide,
|
|
@@ -7998,9 +8037,9 @@ const Xl = (t) => {
|
|
|
7998
8037
|
}
|
|
7999
8038
|
},
|
|
8000
8039
|
children: [
|
|
8001
|
-
/* @__PURE__ */ e(
|
|
8002
|
-
/* @__PURE__ */ e(
|
|
8003
|
-
/* @__PURE__ */ e(
|
|
8040
|
+
/* @__PURE__ */ e(lr, { ...t.dialogTitleProps, children: typeof t.title == "string" ? /* @__PURE__ */ e(v, { fontSize: "lg", fontWeight: "medium", children: t.title }) : t.title }),
|
|
8041
|
+
/* @__PURE__ */ e(wt, { children: typeof t.description == "string" ? /* @__PURE__ */ e(v, { fontSize: "md", lineHeight: "leading-6", color: "brand", children: t.description }) : t.description }),
|
|
8042
|
+
/* @__PURE__ */ e(or, { children: /* @__PURE__ */ e(
|
|
8004
8043
|
f,
|
|
8005
8044
|
{
|
|
8006
8045
|
display: "flex",
|
|
@@ -8046,7 +8085,7 @@ const Xl = (t) => {
|
|
|
8046
8085
|
},
|
|
8047
8086
|
t.key
|
|
8048
8087
|
);
|
|
8049
|
-
},
|
|
8088
|
+
}, no = Ce(
|
|
8050
8089
|
({
|
|
8051
8090
|
children: t,
|
|
8052
8091
|
height: r,
|
|
@@ -8058,8 +8097,8 @@ const Xl = (t) => {
|
|
|
8058
8097
|
footer: c,
|
|
8059
8098
|
title: h,
|
|
8060
8099
|
titleTag: d,
|
|
8061
|
-
action:
|
|
8062
|
-
actionContainer:
|
|
8100
|
+
action: g,
|
|
8101
|
+
actionContainer: m,
|
|
8063
8102
|
containerProps: y,
|
|
8064
8103
|
bodyProps: x,
|
|
8065
8104
|
headerProps: D = { borderBottom: !0 },
|
|
@@ -8088,10 +8127,10 @@ const Xl = (t) => {
|
|
|
8088
8127
|
gap: "md",
|
|
8089
8128
|
children: [
|
|
8090
8129
|
/* @__PURE__ */ e(f, { direction: "column", children: h ? C() : null }),
|
|
8091
|
-
/* @__PURE__ */ e(f, { direction: "column", ...
|
|
8130
|
+
/* @__PURE__ */ e(f, { direction: "column", ...m, children: g ?? null })
|
|
8092
8131
|
]
|
|
8093
8132
|
}
|
|
8094
|
-
), z = !!(a || h ||
|
|
8133
|
+
), z = !!(a || h || g);
|
|
8095
8134
|
return /* @__PURE__ */ u(
|
|
8096
8135
|
f,
|
|
8097
8136
|
{
|
|
@@ -8111,7 +8150,7 @@ const Xl = (t) => {
|
|
|
8111
8150
|
...(y == null ? void 0 : y.style) ?? {}
|
|
8112
8151
|
},
|
|
8113
8152
|
children: [
|
|
8114
|
-
a !== null && z ? /* @__PURE__ */ e(
|
|
8153
|
+
a !== null && z ? /* @__PURE__ */ e(pr, { ...D, children: L() }) : null,
|
|
8115
8154
|
/* @__PURE__ */ e(
|
|
8116
8155
|
f,
|
|
8117
8156
|
{
|
|
@@ -8126,17 +8165,17 @@ const Xl = (t) => {
|
|
|
8126
8165
|
children: t
|
|
8127
8166
|
}
|
|
8128
8167
|
),
|
|
8129
|
-
c ? /* @__PURE__ */ e(
|
|
8168
|
+
c ? /* @__PURE__ */ e(xr, { ...p, children: c }) : null
|
|
8130
8169
|
]
|
|
8131
8170
|
}
|
|
8132
8171
|
);
|
|
8133
8172
|
}
|
|
8134
|
-
),
|
|
8173
|
+
), io = Ke.memo(
|
|
8135
8174
|
({ value: t, options: r = [], onChange: n, multiple: l }) => {
|
|
8136
8175
|
const i = (t == null ? void 0 : t.map((c) => c.value)) || [], o = (r == null ? void 0 : r.filter((c) => i.includes(c.value))) || [], a = (c) => {
|
|
8137
8176
|
const h = [...o];
|
|
8138
8177
|
let d = [];
|
|
8139
|
-
l ? d = i.includes(c.value) ? h.filter((
|
|
8178
|
+
l ? d = i.includes(c.value) ? h.filter((g) => g.value !== c.value) : [...h, c] : d = [c], n == null || n(d);
|
|
8140
8179
|
};
|
|
8141
8180
|
return /* @__PURE__ */ e(f, { direction: "row", gap: "sm", flexWrap: "wrap", children: r == null ? void 0 : r.map((c, h) => /* @__PURE__ */ e(
|
|
8142
8181
|
H,
|
|
@@ -8149,22 +8188,22 @@ const Xl = (t) => {
|
|
|
8149
8188
|
)) });
|
|
8150
8189
|
}
|
|
8151
8190
|
);
|
|
8152
|
-
function Wt(t) {
|
|
8153
|
-
return null;
|
|
8154
|
-
}
|
|
8155
|
-
Wt.displayName = "LayoutDialog.Header";
|
|
8156
8191
|
function Bt(t) {
|
|
8157
8192
|
return null;
|
|
8158
8193
|
}
|
|
8159
|
-
Bt.displayName = "LayoutDialog.
|
|
8194
|
+
Bt.displayName = "LayoutDialog.Header";
|
|
8160
8195
|
function zt(t) {
|
|
8161
8196
|
return null;
|
|
8162
8197
|
}
|
|
8163
|
-
zt.displayName = "LayoutDialog.
|
|
8198
|
+
zt.displayName = "LayoutDialog.Body";
|
|
8164
8199
|
function At(t) {
|
|
8165
8200
|
return null;
|
|
8166
8201
|
}
|
|
8167
|
-
At.displayName = "LayoutDialog.
|
|
8202
|
+
At.displayName = "LayoutDialog.Aside";
|
|
8203
|
+
function It(t) {
|
|
8204
|
+
return null;
|
|
8205
|
+
}
|
|
8206
|
+
It.displayName = "LayoutDialog.Footer";
|
|
8168
8207
|
const se = {
|
|
8169
8208
|
"lyd-root": "_lyd-root_1e92c_1",
|
|
8170
8209
|
"lyd-backdrop": "_lyd-backdrop_1e92c_28",
|
|
@@ -8182,11 +8221,11 @@ const se = {
|
|
|
8182
8221
|
"lyd-vm-group": "_lyd-vm-group_1e92c_162",
|
|
8183
8222
|
"lyd-vm-btn": "_lyd-vm-btn_1e92c_170",
|
|
8184
8223
|
"lyd-close-btn": "_lyd-close-btn_1e92c_193"
|
|
8185
|
-
},
|
|
8224
|
+
}, Ii = [
|
|
8186
8225
|
{
|
|
8187
8226
|
mode: "sidebar",
|
|
8188
8227
|
label: "Sidebar",
|
|
8189
|
-
icon: /* @__PURE__ */ e(
|
|
8228
|
+
icon: /* @__PURE__ */ e(Hi, {})
|
|
8190
8229
|
},
|
|
8191
8230
|
{
|
|
8192
8231
|
mode: "modal",
|
|
@@ -8199,8 +8238,8 @@ const se = {
|
|
|
8199
8238
|
icon: /* @__PURE__ */ e(S, { name: "Fullscreen", size: "sm" })
|
|
8200
8239
|
}
|
|
8201
8240
|
];
|
|
8202
|
-
function
|
|
8203
|
-
return /* @__PURE__ */ e("div", { className: se["lyd-vm-group"], role: "group", "aria-label": "View mode", children:
|
|
8241
|
+
function Ri({ value: t, onChange: r }) {
|
|
8242
|
+
return /* @__PURE__ */ e("div", { className: se["lyd-vm-group"], role: "group", "aria-label": "View mode", children: Ii.map((n) => /* @__PURE__ */ e(
|
|
8204
8243
|
"button",
|
|
8205
8244
|
{
|
|
8206
8245
|
type: "button",
|
|
@@ -8214,7 +8253,7 @@ function Bi({ value: t, onChange: r }) {
|
|
|
8214
8253
|
n.mode
|
|
8215
8254
|
)) });
|
|
8216
8255
|
}
|
|
8217
|
-
function
|
|
8256
|
+
function Hi() {
|
|
8218
8257
|
return /* @__PURE__ */ u(
|
|
8219
8258
|
"svg",
|
|
8220
8259
|
{
|
|
@@ -8235,14 +8274,14 @@ function zi() {
|
|
|
8235
8274
|
}
|
|
8236
8275
|
);
|
|
8237
8276
|
}
|
|
8238
|
-
const
|
|
8277
|
+
const xt = {
|
|
8239
8278
|
md: "768px",
|
|
8240
8279
|
lg: "1024px",
|
|
8241
8280
|
xl: "1200px",
|
|
8242
8281
|
"2xl": "1440px"
|
|
8243
8282
|
};
|
|
8244
|
-
function
|
|
8245
|
-
return t ? t in
|
|
8283
|
+
function Vi(t) {
|
|
8284
|
+
return t ? t in xt ? xt[t] : t : xt.xl;
|
|
8246
8285
|
}
|
|
8247
8286
|
function Ye(t, r) {
|
|
8248
8287
|
let n = null;
|
|
@@ -8250,7 +8289,7 @@ function Ye(t, r) {
|
|
|
8250
8289
|
Ke.isValidElement(l) && l.type === r && (n = l.props.children ?? null);
|
|
8251
8290
|
}), n;
|
|
8252
8291
|
}
|
|
8253
|
-
function
|
|
8292
|
+
function Ti(t) {
|
|
8254
8293
|
const {
|
|
8255
8294
|
isOpen: r,
|
|
8256
8295
|
onClose: n,
|
|
@@ -8261,13 +8300,13 @@ function Ii(t) {
|
|
|
8261
8300
|
showCloseButton: c = !0,
|
|
8262
8301
|
size: h,
|
|
8263
8302
|
asideWidth: d,
|
|
8264
|
-
disableEscapeClose:
|
|
8265
|
-
disableBackdropClose:
|
|
8303
|
+
disableEscapeClose: g = !1,
|
|
8304
|
+
disableBackdropClose: m = !1,
|
|
8266
8305
|
lockBodyScroll: y = !0,
|
|
8267
8306
|
children: x
|
|
8268
8307
|
} = t, [D, p] = M(i), E = l ?? D, k = he("md") ? E : "fullscreen", O = G(
|
|
8269
|
-
(
|
|
8270
|
-
l === void 0 && p(
|
|
8308
|
+
(ee) => {
|
|
8309
|
+
l === void 0 && p(ee), o == null || o(ee);
|
|
8271
8310
|
},
|
|
8272
8311
|
[l, o]
|
|
8273
8312
|
), C = oe(null);
|
|
@@ -8277,24 +8316,24 @@ function Ii(t) {
|
|
|
8277
8316
|
document.body.style.overflow = C.current ?? "";
|
|
8278
8317
|
};
|
|
8279
8318
|
}, [r, y]), Z(() => {
|
|
8280
|
-
if (!r ||
|
|
8281
|
-
const
|
|
8319
|
+
if (!r || g) return;
|
|
8320
|
+
const ee = (Y) => {
|
|
8282
8321
|
Y.key === "Escape" && n();
|
|
8283
8322
|
};
|
|
8284
|
-
return window.addEventListener("keydown",
|
|
8285
|
-
}, [r,
|
|
8286
|
-
const L =
|
|
8287
|
-
() => Ye(x, Wt),
|
|
8288
|
-
[x]
|
|
8289
|
-
), z = de(
|
|
8323
|
+
return window.addEventListener("keydown", ee), () => window.removeEventListener("keydown", ee);
|
|
8324
|
+
}, [r, g, n]);
|
|
8325
|
+
const L = ue(
|
|
8290
8326
|
() => Ye(x, Bt),
|
|
8291
8327
|
[x]
|
|
8292
|
-
),
|
|
8328
|
+
), z = ue(
|
|
8293
8329
|
() => Ye(x, zt),
|
|
8294
8330
|
[x]
|
|
8295
|
-
),
|
|
8331
|
+
), F = ue(
|
|
8296
8332
|
() => Ye(x, At),
|
|
8297
8333
|
[x]
|
|
8334
|
+
), j = ue(
|
|
8335
|
+
() => Ye(x, It),
|
|
8336
|
+
[x]
|
|
8298
8337
|
);
|
|
8299
8338
|
if (!r) return null;
|
|
8300
8339
|
const te = [
|
|
@@ -8302,17 +8341,17 @@ function Ii(t) {
|
|
|
8302
8341
|
k === "modal" && se["lyd-modal"],
|
|
8303
8342
|
k === "fullscreen" && se["lyd-fullscreen"],
|
|
8304
8343
|
k === "sidebar" && se["lyd-sidebar"]
|
|
8305
|
-
].filter(Boolean).join(" "),
|
|
8306
|
-
"--lyd-max-w":
|
|
8344
|
+
].filter(Boolean).join(" "), K = {
|
|
8345
|
+
"--lyd-max-w": Vi(h),
|
|
8307
8346
|
...d !== void 0 && { "--lyd-aside-w": d }
|
|
8308
8347
|
}, $ = () => {
|
|
8309
|
-
|
|
8348
|
+
m || n();
|
|
8310
8349
|
};
|
|
8311
8350
|
return /* @__PURE__ */ u(
|
|
8312
8351
|
"div",
|
|
8313
8352
|
{
|
|
8314
8353
|
className: se["lyd-root"],
|
|
8315
|
-
style:
|
|
8354
|
+
style: K,
|
|
8316
8355
|
role: "dialog",
|
|
8317
8356
|
"aria-modal": "true",
|
|
8318
8357
|
children: [
|
|
@@ -8328,7 +8367,7 @@ function Ii(t) {
|
|
|
8328
8367
|
/* @__PURE__ */ u("div", { className: se["lyd-header"], children: [
|
|
8329
8368
|
/* @__PURE__ */ e("div", { className: se["lyd-header-content"], children: L }),
|
|
8330
8369
|
/* @__PURE__ */ u("div", { className: se["lyd-header-actions"], children: [
|
|
8331
|
-
a && /* @__PURE__ */ e(
|
|
8370
|
+
a && /* @__PURE__ */ e(Ri, { value: E, onChange: O }),
|
|
8332
8371
|
c && /* @__PURE__ */ e(
|
|
8333
8372
|
"button",
|
|
8334
8373
|
{
|
|
@@ -8351,12 +8390,12 @@ function Ii(t) {
|
|
|
8351
8390
|
}
|
|
8352
8391
|
);
|
|
8353
8392
|
}
|
|
8354
|
-
const ct =
|
|
8355
|
-
ct.Header =
|
|
8356
|
-
ct.Body =
|
|
8357
|
-
ct.Aside =
|
|
8358
|
-
ct.Footer =
|
|
8359
|
-
function
|
|
8393
|
+
const ct = Ti;
|
|
8394
|
+
ct.Header = Bt;
|
|
8395
|
+
ct.Body = zt;
|
|
8396
|
+
ct.Aside = At;
|
|
8397
|
+
ct.Footer = It;
|
|
8398
|
+
function lo({ url: t, filename: r, onClose: n }) {
|
|
8360
8399
|
return Z(() => {
|
|
8361
8400
|
const l = (i) => {
|
|
8362
8401
|
i.key === "Escape" && n();
|
|
@@ -8454,7 +8493,7 @@ function to({ url: t, filename: r, onClose: n }) {
|
|
|
8454
8493
|
}
|
|
8455
8494
|
);
|
|
8456
8495
|
}
|
|
8457
|
-
const
|
|
8496
|
+
const oo = (t) => {
|
|
8458
8497
|
const { defaultTab: r = 0, paramKey: n = "tab" } = t || {}, [l, i] = ot(), o = it(l.toString());
|
|
8459
8498
|
return {
|
|
8460
8499
|
activeTab: o[n] ? parseInt(o[n]) : r,
|
|
@@ -8467,7 +8506,7 @@ const ro = (t) => {
|
|
|
8467
8506
|
searchQueries: o
|
|
8468
8507
|
};
|
|
8469
8508
|
};
|
|
8470
|
-
function
|
|
8509
|
+
function co({
|
|
8471
8510
|
appName: t,
|
|
8472
8511
|
menuConfig: r,
|
|
8473
8512
|
formatTitle: n
|
|
@@ -8476,7 +8515,7 @@ function no({
|
|
|
8476
8515
|
Z(() => {
|
|
8477
8516
|
let i = null, o = null;
|
|
8478
8517
|
for (const h of r) {
|
|
8479
|
-
const d = h.items.find((
|
|
8518
|
+
const d = h.items.find((g) => g.to ? g.to === "/" ? l.pathname === "/" : !!(g.to === l.pathname || l.pathname.startsWith(g.to + "/")) : !1);
|
|
8480
8519
|
if (d) {
|
|
8481
8520
|
i = d, o = h;
|
|
8482
8521
|
break;
|
|
@@ -8488,17 +8527,17 @@ function no({
|
|
|
8488
8527
|
document.title = (n || c)(a, t);
|
|
8489
8528
|
}, [l.pathname]);
|
|
8490
8529
|
}
|
|
8491
|
-
const
|
|
8492
|
-
const [t, r] = ot(), n = it(t.toString()), l =
|
|
8530
|
+
const ao = () => {
|
|
8531
|
+
const [t, r] = ot(), n = it(t.toString()), l = dr(), i = Pe(), o = l.id;
|
|
8493
8532
|
return {
|
|
8494
8533
|
// query params
|
|
8495
8534
|
setSearchParams: r,
|
|
8496
8535
|
searchParams: t,
|
|
8497
8536
|
searchQueries: n,
|
|
8498
|
-
isHasQuery: (
|
|
8499
|
-
getQueryParam: (
|
|
8537
|
+
isHasQuery: (g, m) => t.has(g) && t.get(g) === m,
|
|
8538
|
+
getQueryParam: (g) => t.get(g),
|
|
8500
8539
|
// route params
|
|
8501
|
-
getRouteParam: (
|
|
8540
|
+
getRouteParam: (g) => l[g],
|
|
8502
8541
|
params: l,
|
|
8503
8542
|
// location info
|
|
8504
8543
|
location: i,
|
|
@@ -8507,129 +8546,129 @@ const io = () => {
|
|
|
8507
8546
|
hasId: !!o
|
|
8508
8547
|
};
|
|
8509
8548
|
};
|
|
8510
|
-
function
|
|
8549
|
+
function so(t) {
|
|
8511
8550
|
var l, i;
|
|
8512
8551
|
const r = t.decodedAccessToken;
|
|
8513
|
-
return
|
|
8552
|
+
return ue(() => {
|
|
8514
8553
|
var h, d;
|
|
8515
8554
|
const o = ((d = (h = r == null ? void 0 : r.access) == null ? void 0 : h.role) == null ? void 0 : d.code) ?? "", a = Object.keys(t.role).reduce(
|
|
8516
|
-
(
|
|
8517
|
-
const y = `is${
|
|
8518
|
-
return { ...
|
|
8555
|
+
(g, m) => {
|
|
8556
|
+
const y = `is${m.toLowerCase().replace(/(^\w|_\w)/g, (x) => x.replace("_", "").toUpperCase())}`;
|
|
8557
|
+
return { ...g, [y]: !1 };
|
|
8519
8558
|
},
|
|
8520
8559
|
{}
|
|
8521
8560
|
);
|
|
8522
8561
|
return {
|
|
8523
|
-
...Object.keys(t.role).reduce((
|
|
8524
|
-
const y = `is${
|
|
8562
|
+
...Object.keys(t.role).reduce((g, m) => {
|
|
8563
|
+
const y = `is${m.toLowerCase().replace(/(^\w|_\w)/g, (x) => x.replace("_", "").toUpperCase())}`;
|
|
8525
8564
|
return {
|
|
8526
|
-
...
|
|
8527
|
-
[y]: o === t.role[
|
|
8565
|
+
...g,
|
|
8566
|
+
[y]: o === t.role[m]
|
|
8528
8567
|
};
|
|
8529
8568
|
}, a),
|
|
8530
|
-
hasRole: (
|
|
8569
|
+
hasRole: (g) => o === t.role[g],
|
|
8531
8570
|
getRoleKey: () => o
|
|
8532
8571
|
};
|
|
8533
8572
|
}, [(i = (l = r == null ? void 0 : r.access) == null ? void 0 : l.role) == null ? void 0 : i.code, t]);
|
|
8534
8573
|
}
|
|
8535
8574
|
export {
|
|
8536
|
-
|
|
8537
|
-
|
|
8538
|
-
|
|
8539
|
-
|
|
8540
|
-
|
|
8541
|
-
|
|
8542
|
-
|
|
8543
|
-
|
|
8544
|
-
|
|
8545
|
-
|
|
8575
|
+
En as AdvanceFilterBar,
|
|
8576
|
+
gl as App,
|
|
8577
|
+
_r as AppComponent,
|
|
8578
|
+
hr as AppContext,
|
|
8579
|
+
Cl as AppLayout,
|
|
8580
|
+
Ul as AsideBar,
|
|
8581
|
+
bl as BackButton,
|
|
8582
|
+
Yn as ColumnFilterDropdown,
|
|
8583
|
+
ro as ConfirmationDialog,
|
|
8584
|
+
ei as DataTable,
|
|
8546
8585
|
J as DecisionWrapper,
|
|
8547
|
-
|
|
8548
|
-
|
|
8549
|
-
|
|
8550
|
-
|
|
8551
|
-
|
|
8552
|
-
|
|
8553
|
-
|
|
8554
|
-
|
|
8555
|
-
|
|
8556
|
-
|
|
8557
|
-
|
|
8558
|
-
|
|
8559
|
-
|
|
8560
|
-
|
|
8561
|
-
|
|
8586
|
+
Wt as EachUtils,
|
|
8587
|
+
Xl as EmptyStatePage,
|
|
8588
|
+
El as FilterBar,
|
|
8589
|
+
Fn as FilterDrawer,
|
|
8590
|
+
Ql as FloatingFooter,
|
|
8591
|
+
eo as ForbiddenPage,
|
|
8592
|
+
Jl as Form,
|
|
8593
|
+
no as FullSection,
|
|
8594
|
+
yl as HeaderLeftSlot,
|
|
8595
|
+
Zr as HeaderLeftSlotOutlet,
|
|
8596
|
+
$r as HeaderLeftSlotProvider,
|
|
8597
|
+
Dl as HorizontalField,
|
|
8598
|
+
lo as ImagePreview,
|
|
8599
|
+
gi as InputFile,
|
|
8600
|
+
Si as InputImage,
|
|
8562
8601
|
ct as LayoutDialog,
|
|
8563
|
-
|
|
8564
|
-
|
|
8565
|
-
|
|
8566
|
-
|
|
8567
|
-
|
|
8568
|
-
|
|
8569
|
-
|
|
8570
|
-
|
|
8571
|
-
|
|
8572
|
-
|
|
8573
|
-
|
|
8574
|
-
|
|
8575
|
-
|
|
8576
|
-
|
|
8577
|
-
|
|
8578
|
-
|
|
8579
|
-
|
|
8580
|
-
|
|
8581
|
-
|
|
8582
|
-
|
|
8583
|
-
|
|
8584
|
-
|
|
8585
|
-
|
|
8586
|
-
|
|
8587
|
-
|
|
8588
|
-
|
|
8602
|
+
At as LayoutDialogAside,
|
|
8603
|
+
zt as LayoutDialogBody,
|
|
8604
|
+
It as LayoutDialogFooter,
|
|
8605
|
+
Bt as LayoutDialogHeader,
|
|
8606
|
+
vl as ModuleSwitcher,
|
|
8607
|
+
Jr as ModuleSwitcherModal,
|
|
8608
|
+
Kl as NotFoundPage,
|
|
8609
|
+
wl as PageLayout,
|
|
8610
|
+
Mt as Pressable,
|
|
8611
|
+
rn as RightDrawer,
|
|
8612
|
+
Li as ScrollToTopButton,
|
|
8613
|
+
kl as Section,
|
|
8614
|
+
xr as SectionFooter,
|
|
8615
|
+
pr as SectionHeader,
|
|
8616
|
+
io as SelectButton,
|
|
8617
|
+
to as ServerErrorPage,
|
|
8618
|
+
Or as SidebarBadgesProvider,
|
|
8619
|
+
pl as SidebarGroupSlot,
|
|
8620
|
+
qr as SidebarGroupSlotOutlet,
|
|
8621
|
+
Pr as SidebarGroupSlotProvider,
|
|
8622
|
+
jr as SidebarHeaderSlot,
|
|
8623
|
+
Qn as TableFooter,
|
|
8624
|
+
Jn as TableHeader,
|
|
8625
|
+
Ll as TableSection,
|
|
8626
|
+
Gn as TableWrapper,
|
|
8627
|
+
Gl as ToggleStatus,
|
|
8589
8628
|
xe as Typography,
|
|
8590
|
-
|
|
8591
|
-
|
|
8592
|
-
|
|
8593
|
-
|
|
8594
|
-
|
|
8595
|
-
|
|
8596
|
-
|
|
8597
|
-
|
|
8598
|
-
|
|
8599
|
-
|
|
8600
|
-
|
|
8601
|
-
|
|
8602
|
-
|
|
8603
|
-
|
|
8629
|
+
Yl as VerticalField,
|
|
8630
|
+
xl as clearModuleSelection,
|
|
8631
|
+
Ml as createInitialFromUserName,
|
|
8632
|
+
Il as cssVars,
|
|
8633
|
+
Vl as formHasChanged,
|
|
8634
|
+
Al as formatDate,
|
|
8635
|
+
ci as formatDateToIndonesian,
|
|
8636
|
+
Bl as formatRupiah,
|
|
8637
|
+
Sn as getDateFilterValue,
|
|
8638
|
+
kn as getDateRangeFilterValue,
|
|
8639
|
+
zl as getInitials,
|
|
8640
|
+
wn as getValueDropdownMultipleFilter,
|
|
8641
|
+
Sl as getValueRadioFilter,
|
|
8642
|
+
Cr as getValueSearch,
|
|
8604
8643
|
mt as getValuesFilter,
|
|
8605
8644
|
rt as handleChangeFilter,
|
|
8606
|
-
|
|
8607
|
-
|
|
8608
|
-
|
|
8609
|
-
|
|
8610
|
-
|
|
8611
|
-
|
|
8612
|
-
|
|
8613
|
-
|
|
8614
|
-
|
|
8615
|
-
|
|
8616
|
-
|
|
8617
|
-
|
|
8618
|
-
|
|
8619
|
-
|
|
8620
|
-
|
|
8621
|
-
|
|
8622
|
-
|
|
8645
|
+
ql as handleOnScroll,
|
|
8646
|
+
$l as isEmail,
|
|
8647
|
+
Fl as isFilterActive,
|
|
8648
|
+
Ol as isOnlyLettersAndSpaces,
|
|
8649
|
+
Tl as isPhoneNumber,
|
|
8650
|
+
Zl as isSlug,
|
|
8651
|
+
Wn as localStorageAdapter,
|
|
8652
|
+
Rl as oneDayInMs,
|
|
8653
|
+
Wl as parseIndonesianDateToDate,
|
|
8654
|
+
Pl as preventNonCoordinateInput,
|
|
8655
|
+
jl as preventNonNumberAndDecimalInput,
|
|
8656
|
+
Nl as preventNonNumberInput,
|
|
8657
|
+
_l as preventNumberInput,
|
|
8658
|
+
Cn as resolveDateRangeValueToString,
|
|
8659
|
+
bn as resolveDateValueToString,
|
|
8660
|
+
pn as resolveDropdownValueToString,
|
|
8661
|
+
xn as resolveRadioValueToString,
|
|
8623
8662
|
ht as resolveSidebarBadge,
|
|
8624
|
-
|
|
8625
|
-
|
|
8626
|
-
|
|
8627
|
-
|
|
8628
|
-
|
|
8629
|
-
|
|
8630
|
-
|
|
8663
|
+
br as storageKeys,
|
|
8664
|
+
Hl as textWidth,
|
|
8665
|
+
fr as useApp,
|
|
8666
|
+
Tr as useAppState,
|
|
8667
|
+
so as useAuthRole,
|
|
8668
|
+
co as useDynamicTitle,
|
|
8669
|
+
yr as useModuleSelection,
|
|
8631
8670
|
We as useRouteInfo,
|
|
8632
|
-
|
|
8633
|
-
|
|
8634
|
-
|
|
8671
|
+
ao as useRouteParams,
|
|
8672
|
+
Nr as useSidebarBadges,
|
|
8673
|
+
oo as useTabState
|
|
8635
8674
|
};
|