@starasia/admin 12.32.0 → 12.33.0
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/SelectionActionBar/index.d.ts +54 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.cjs.js +5 -5
- package/dist/index.es.js +881 -794
- package/dist/index.umd.js +3 -3
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
export * from "@starasia/alert";
|
|
2
|
-
import { Badges as It, Badge as
|
|
2
|
+
import { Badges as It, Badge as Li } from "@starasia/badges";
|
|
3
3
|
export * from "@starasia/badges";
|
|
4
4
|
import { Box as m } from "@starasia/box";
|
|
5
5
|
export * from "@starasia/box";
|
|
6
|
-
import { Breadcrumb as
|
|
6
|
+
import { Breadcrumb as Mi, BreadcrumbItem as an, BreadcrumbLink as Wi } from "@starasia/breadcrumb";
|
|
7
7
|
export * from "@starasia/breadcrumb";
|
|
8
8
|
import { Button as N } from "@starasia/button";
|
|
9
9
|
export * from "@starasia/button";
|
|
10
10
|
export * from "@starasia/card";
|
|
11
11
|
import { StarasiaDate as Ot } from "@starasia/date";
|
|
12
12
|
export * from "@starasia/date";
|
|
13
|
-
import { Dialog as
|
|
13
|
+
import { Dialog as Ir, DialogTitle as Nn, DialogBody as Or, DialogFooter as $n } from "@starasia/dialog";
|
|
14
14
|
export * from "@starasia/dialog";
|
|
15
|
-
import { Drawer as
|
|
15
|
+
import { Drawer as _n } from "@starasia/drawer";
|
|
16
16
|
export * from "@starasia/drawer";
|
|
17
17
|
import { Dropdown as Kt } from "@starasia/dropdown";
|
|
18
18
|
export * from "@starasia/dropdown";
|
|
19
|
-
import { useMediaQuery as ze, useDebounce as
|
|
19
|
+
import { useMediaQuery as ze, useDebounce as zi } from "@starasia/hooks";
|
|
20
20
|
export * from "@starasia/hooks";
|
|
21
21
|
import { searchParamsToObject as er } from "@starasia/http";
|
|
22
22
|
export * from "@starasia/http";
|
|
23
23
|
import { Input as Lt } from "@starasia/input";
|
|
24
24
|
export * from "@starasia/input";
|
|
25
|
-
import { Menu as Ne, MenuButton as
|
|
25
|
+
import { Menu as Ne, MenuButton as Ie, MenuLists as $e, MenuHeading as Bi, MenuBody as _e, MenuFooter as Hr, MenuItem as Ye } from "@starasia/menu";
|
|
26
26
|
export * from "@starasia/menu";
|
|
27
|
-
import { Pagination as
|
|
27
|
+
import { Pagination as Tr } from "@starasia/pagination";
|
|
28
28
|
export * from "@starasia/pagination";
|
|
29
29
|
import { storage as pr } from "@starasia/storage";
|
|
30
30
|
export * from "@starasia/storage";
|
|
31
|
-
import { Tr as Ze, Td as Ae, Table as Jt, Thead as
|
|
31
|
+
import { Tr as Ze, Td as Ae, Table as Jt, Thead as jn, Th as kt, Tbody as Mr, useColumnWidths as Ai, Tfoot as Ri } from "@starasia/table";
|
|
32
32
|
export * from "@starasia/table";
|
|
33
33
|
export * from "@starasia/tabs";
|
|
34
|
-
import { Textarea as
|
|
34
|
+
import { Textarea as Ii } from "@starasia/textarea";
|
|
35
35
|
export * from "@starasia/textarea";
|
|
36
|
-
import { useTheme as
|
|
36
|
+
import { useTheme as Oi, ThemeProvider as dn, useColor as Hi } from "@starasia/theme";
|
|
37
37
|
export * from "@starasia/theme";
|
|
38
38
|
export * from "@starasia/toast";
|
|
39
39
|
import { Toggle as tr } from "@starasia/toggle";
|
|
40
40
|
export * from "@starasia/toggle";
|
|
41
|
-
import { Tooltip as
|
|
41
|
+
import { Tooltip as Re } from "@starasia/tooltip";
|
|
42
42
|
export * from "@starasia/tooltip";
|
|
43
43
|
import { Checkbox as vt } from "@starasia/checkbox";
|
|
44
44
|
export * from "@starasia/checkbox";
|
|
45
|
-
import { Radio as
|
|
45
|
+
import { Radio as Ti } from "@starasia/radio";
|
|
46
46
|
export * from "@starasia/radio";
|
|
47
47
|
import { Text as S } from "@starasia/text";
|
|
48
48
|
export * from "@starasia/text";
|
|
@@ -58,11 +58,11 @@ export * from "@starasia/story-record";
|
|
|
58
58
|
import { Skeleton as ht } 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 Ct, { createContext as Mt, useState as O, useContext as wt, useCallback as Z, useMemo as xe, memo as st, useEffect as Q, useRef as ce, useLayoutEffect as ft, forwardRef as
|
|
63
|
-
import
|
|
64
|
-
import
|
|
65
|
-
const
|
|
61
|
+
import { jsx as e, Fragment as ne, jsxs as u } from "react/jsx-runtime";
|
|
62
|
+
import Ct, { createContext as Mt, useState as O, useContext as wt, useCallback as Z, useMemo as xe, memo as st, useEffect as Q, useRef as ce, useLayoutEffect as ft, forwardRef as Vr, isValidElement as Wr, Children as Vi, useImperativeHandle as Ni } from "react";
|
|
63
|
+
import $i, { createPortal as Nr } from "react-dom";
|
|
64
|
+
import _i from "react-easy-crop";
|
|
65
|
+
const ji = {
|
|
66
66
|
menus: [],
|
|
67
67
|
menuBottom: void 0,
|
|
68
68
|
logo: "",
|
|
@@ -70,7 +70,7 @@ const $i = {
|
|
|
70
70
|
userData: null,
|
|
71
71
|
setUserData: () => {
|
|
72
72
|
}
|
|
73
|
-
},
|
|
73
|
+
}, Pn = Mt(ji), Zn = () => wt(Pn), Pi = (t) => {
|
|
74
74
|
const [r, n] = O(
|
|
75
75
|
(t == null ? void 0 : t.initialUserData) || null
|
|
76
76
|
);
|
|
@@ -78,7 +78,7 @@ const $i = {
|
|
|
78
78
|
userData: r,
|
|
79
79
|
setUserData: n
|
|
80
80
|
};
|
|
81
|
-
},
|
|
81
|
+
}, Gn = Mt({
|
|
82
82
|
badges: {},
|
|
83
83
|
setBadge: () => {
|
|
84
84
|
},
|
|
@@ -86,7 +86,7 @@ const $i = {
|
|
|
86
86
|
},
|
|
87
87
|
clearBadge: () => {
|
|
88
88
|
}
|
|
89
|
-
}),
|
|
89
|
+
}), Zi = ({ children: t }) => {
|
|
90
90
|
const [r, n] = O({}), o = Z(
|
|
91
91
|
(s) => {
|
|
92
92
|
n(
|
|
@@ -112,11 +112,11 @@ const $i = {
|
|
|
112
112
|
() => ({ badges: r, setBadge: i, setBadges: o, clearBadge: l }),
|
|
113
113
|
[r, i, o, l]
|
|
114
114
|
);
|
|
115
|
-
return /* @__PURE__ */ e(
|
|
116
|
-
},
|
|
115
|
+
return /* @__PURE__ */ e(Gn.Provider, { value: c, children: t });
|
|
116
|
+
}, Gi = () => wt(Gn), yr = (t, r) => {
|
|
117
117
|
const n = r !== void 0 ? r : t;
|
|
118
118
|
return n == null ? null : typeof n == "string" || typeof n == "number" ? { value: n } : n;
|
|
119
|
-
},
|
|
119
|
+
}, $r = 262, qn = $r, Un = 480, qi = "sa-sidebar-width", zr = (t, r, n) => Math.min(Math.max(t, r), n), Ui = (t, r, n, o) => {
|
|
120
120
|
if (typeof window > "u") return r;
|
|
121
121
|
try {
|
|
122
122
|
const i = window.localStorage.getItem(t);
|
|
@@ -126,13 +126,13 @@ const $i = {
|
|
|
126
126
|
} catch {
|
|
127
127
|
return r;
|
|
128
128
|
}
|
|
129
|
-
},
|
|
129
|
+
}, un = (t, r) => {
|
|
130
130
|
if (!(typeof window > "u"))
|
|
131
131
|
try {
|
|
132
132
|
window.localStorage.setItem(t, String(r));
|
|
133
133
|
} catch {
|
|
134
134
|
}
|
|
135
|
-
},
|
|
135
|
+
}, Jn = Mt({
|
|
136
136
|
collapsed: !1,
|
|
137
137
|
setCollapsed: () => {
|
|
138
138
|
},
|
|
@@ -142,13 +142,13 @@ const $i = {
|
|
|
142
142
|
},
|
|
143
143
|
expand: () => {
|
|
144
144
|
},
|
|
145
|
-
width:
|
|
145
|
+
width: $r,
|
|
146
146
|
setWidth: () => {
|
|
147
147
|
},
|
|
148
148
|
resetWidth: () => {
|
|
149
149
|
},
|
|
150
|
-
minWidth:
|
|
151
|
-
maxWidth:
|
|
150
|
+
minWidth: qn,
|
|
151
|
+
maxWidth: Un,
|
|
152
152
|
mobileOpen: !1,
|
|
153
153
|
setMobileOpen: () => {
|
|
154
154
|
},
|
|
@@ -158,16 +158,16 @@ const $i = {
|
|
|
158
158
|
},
|
|
159
159
|
toggleMobile: () => {
|
|
160
160
|
}
|
|
161
|
-
}),
|
|
161
|
+
}), Ji = ({
|
|
162
162
|
children: t,
|
|
163
163
|
defaultCollapsed: r = !1,
|
|
164
|
-
defaultWidth: n =
|
|
165
|
-
minWidth: o =
|
|
166
|
-
maxWidth: i =
|
|
167
|
-
widthStorageKey: l =
|
|
164
|
+
defaultWidth: n = $r,
|
|
165
|
+
minWidth: o = qn,
|
|
166
|
+
maxWidth: i = Un,
|
|
167
|
+
widthStorageKey: l = qi
|
|
168
168
|
}) => {
|
|
169
169
|
const [c, s] = O(r), [a, d] = O(!1), [f, p] = O(
|
|
170
|
-
() =>
|
|
170
|
+
() => Ui(l, n, o, i)
|
|
171
171
|
), g = Z(
|
|
172
172
|
(w) => {
|
|
173
173
|
s(
|
|
@@ -179,13 +179,13 @@ const $i = {
|
|
|
179
179
|
(w) => {
|
|
180
180
|
p((R) => {
|
|
181
181
|
const B = typeof w == "function" ? w(R) : w, J = zr(Math.round(B), o, i);
|
|
182
|
-
return
|
|
182
|
+
return un(l, J), J;
|
|
183
183
|
});
|
|
184
184
|
},
|
|
185
185
|
[o, i, l]
|
|
186
186
|
), E = Z(() => {
|
|
187
187
|
const w = zr(n, o, i);
|
|
188
|
-
|
|
188
|
+
un(l, w), p(w);
|
|
189
189
|
}, [n, o, i, l]), z = Z(
|
|
190
190
|
(w) => {
|
|
191
191
|
d(
|
|
@@ -229,18 +229,18 @@ const $i = {
|
|
|
229
229
|
I
|
|
230
230
|
]
|
|
231
231
|
);
|
|
232
|
-
return /* @__PURE__ */ e(
|
|
233
|
-
},
|
|
232
|
+
return /* @__PURE__ */ e(Jn.Provider, { value: A, children: t });
|
|
233
|
+
}, Qi = () => wt(Jn), Qn = Mt(null), Yi = ({
|
|
234
234
|
adapter: t,
|
|
235
235
|
children: r
|
|
236
|
-
}) => /* @__PURE__ */ e(
|
|
237
|
-
const t = wt(
|
|
236
|
+
}) => /* @__PURE__ */ e(Qn.Provider, { value: t, children: r }), pt = () => {
|
|
237
|
+
const t = wt(Qn);
|
|
238
238
|
if (!t)
|
|
239
239
|
throw new Error(
|
|
240
240
|
"[@starasia/admin] Router adapter belum dipasang. Bungkus aplikasi dengan <App routerAdapter={...} /> atau <StarasiaRouterProvider adapter={...}>. Import adapter dari '@starasia/admin/adapters/react-router' atau '@starasia/admin/adapters/tanstack'."
|
|
241
241
|
);
|
|
242
242
|
return t;
|
|
243
|
-
},
|
|
243
|
+
}, Xi = ({
|
|
244
244
|
router: t,
|
|
245
245
|
routerAdapter: r,
|
|
246
246
|
menus: n = [],
|
|
@@ -250,9 +250,9 @@ const $i = {
|
|
|
250
250
|
initialUserData: c,
|
|
251
251
|
theme: s
|
|
252
252
|
}) => {
|
|
253
|
-
const a =
|
|
254
|
-
return /* @__PURE__ */ e(
|
|
255
|
-
|
|
253
|
+
const a = Pi({ initialUserData: c }), { theme: d } = Oi();
|
|
254
|
+
return /* @__PURE__ */ e(Yi, { adapter: r, children: /* @__PURE__ */ e(
|
|
255
|
+
Pn.Provider,
|
|
256
256
|
{
|
|
257
257
|
value: {
|
|
258
258
|
logo: i,
|
|
@@ -262,11 +262,11 @@ const $i = {
|
|
|
262
262
|
setUserData: a.setUserData,
|
|
263
263
|
menuBottom: o
|
|
264
264
|
},
|
|
265
|
-
children: /* @__PURE__ */ e(
|
|
265
|
+
children: /* @__PURE__ */ e(Zi, { children: /* @__PURE__ */ e(Ji, { children: s ? /* @__PURE__ */ e(dn, { value: s, children: t }) : d ? /* @__PURE__ */ e(dn, { value: d, children: t }) : t }) })
|
|
266
266
|
}
|
|
267
267
|
) });
|
|
268
|
-
},
|
|
269
|
-
function
|
|
268
|
+
}, is = st(Xi);
|
|
269
|
+
function Ki({
|
|
270
270
|
collapsed: t = !1,
|
|
271
271
|
children: r
|
|
272
272
|
}) {
|
|
@@ -303,11 +303,11 @@ function Yi({
|
|
|
303
303
|
}
|
|
304
304
|
);
|
|
305
305
|
}
|
|
306
|
-
const
|
|
307
|
-
function
|
|
306
|
+
const _r = Mt(null);
|
|
307
|
+
function eo({ children: t }) {
|
|
308
308
|
const [r, n] = O(null), [o, i] = O(null), [l, c] = O(null), [s, a] = O(0), d = Z(() => (a((f) => f + 1), () => a((f) => f - 1)), []);
|
|
309
309
|
return /* @__PURE__ */ e(
|
|
310
|
-
|
|
310
|
+
_r.Provider,
|
|
311
311
|
{
|
|
312
312
|
value: {
|
|
313
313
|
prependNode: r,
|
|
@@ -323,19 +323,19 @@ function Xi({ children: t }) {
|
|
|
323
323
|
}
|
|
324
324
|
);
|
|
325
325
|
}
|
|
326
|
-
function
|
|
327
|
-
const r = wt(
|
|
328
|
-
return r ? /* @__PURE__ */ u(
|
|
326
|
+
function to({ children: t }) {
|
|
327
|
+
const r = wt(_r);
|
|
328
|
+
return r ? /* @__PURE__ */ u(ne, { children: [
|
|
329
329
|
/* @__PURE__ */ e("div", { ref: r.setPrependNode, style: { display: "contents" } }),
|
|
330
330
|
r.replaceCount > 0 ? /* @__PURE__ */ e("div", { ref: r.setReplaceNode, style: { display: "contents" } }) : t,
|
|
331
331
|
/* @__PURE__ */ e("div", { ref: r.setAppendNode, style: { display: "contents" } })
|
|
332
|
-
] }) : /* @__PURE__ */ e(
|
|
332
|
+
] }) : /* @__PURE__ */ e(ne, { children: t });
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function os({
|
|
335
335
|
children: t,
|
|
336
336
|
mode: r = "append"
|
|
337
337
|
}) {
|
|
338
|
-
const n = wt(
|
|
338
|
+
const n = wt(_r);
|
|
339
339
|
if (Q(() => {
|
|
340
340
|
if (!(r !== "replace" || !n))
|
|
341
341
|
return n.registerReplace();
|
|
@@ -344,10 +344,10 @@ function ts({
|
|
|
344
344
|
"[HeaderLeftSlot] used outside AppLayout — content not rendered"
|
|
345
345
|
), null;
|
|
346
346
|
const o = r === "prepend" ? n.prependNode : r === "replace" ? n.replaceNode : n.appendNode;
|
|
347
|
-
return o ?
|
|
347
|
+
return o ? Nr(t, o) : null;
|
|
348
348
|
}
|
|
349
|
-
const
|
|
350
|
-
function
|
|
349
|
+
const jr = Mt(null);
|
|
350
|
+
function ro({ children: t }) {
|
|
351
351
|
const [r, n] = O({}), [o, i] = O({}), l = Z((a, d) => {
|
|
352
352
|
n((f) => f[a] === d ? f : { ...f, [a]: d });
|
|
353
353
|
}, []), c = Z((a) => (i((d) => ({ ...d, [a]: (d[a] ?? 0) + 1 })), () => i((d) => ({
|
|
@@ -357,10 +357,10 @@ function eo({ children: t }) {
|
|
|
357
357
|
() => ({ outletNodes: r, setOutletNode: l, slotCounts: o, registerSlot: c }),
|
|
358
358
|
[r, l, o, c]
|
|
359
359
|
);
|
|
360
|
-
return /* @__PURE__ */ e(
|
|
360
|
+
return /* @__PURE__ */ e(jr.Provider, { value: s, children: t });
|
|
361
361
|
}
|
|
362
|
-
function
|
|
363
|
-
const n = wt(
|
|
362
|
+
function no({ slotKey: t, fallback: r }) {
|
|
363
|
+
const n = wt(jr), o = n ? (n.slotCounts[t] ?? 0) > 0 : !1, i = ce(n == null ? void 0 : n.setOutletNode);
|
|
364
364
|
i.current = n == null ? void 0 : n.setOutletNode;
|
|
365
365
|
const l = Z(
|
|
366
366
|
(c) => {
|
|
@@ -370,10 +370,10 @@ function to({ slotKey: t, fallback: r }) {
|
|
|
370
370
|
[t]
|
|
371
371
|
// slotKey is a stable string from group config
|
|
372
372
|
);
|
|
373
|
-
return /* @__PURE__ */ e(
|
|
373
|
+
return /* @__PURE__ */ e(ne, { children: o ? /* @__PURE__ */ e("div", { ref: l, style: { display: "contents" } }) : r });
|
|
374
374
|
}
|
|
375
|
-
function
|
|
376
|
-
const n = wt(
|
|
375
|
+
function ls({ slotKey: t, children: r }) {
|
|
376
|
+
const n = wt(jr), o = ce(n == null ? void 0 : n.registerSlot);
|
|
377
377
|
if (o.current = n == null ? void 0 : n.registerSlot, Q(() => {
|
|
378
378
|
var l;
|
|
379
379
|
return (l = o.current) == null ? void 0 : l.call(o, t);
|
|
@@ -382,29 +382,29 @@ function rs({ slotKey: t, children: r }) {
|
|
|
382
382
|
"[SidebarGroupSlot] used outside AppLayout — content not rendered"
|
|
383
383
|
), null;
|
|
384
384
|
const i = n.outletNodes[t];
|
|
385
|
-
return i ?
|
|
385
|
+
return i ? Nr(r, i) : null;
|
|
386
386
|
}
|
|
387
387
|
const Qt = "moduleSwitcherGroupId", Br = "sa-module-switcher-change";
|
|
388
|
-
function
|
|
388
|
+
function hn() {
|
|
389
389
|
if (typeof window > "u") return null;
|
|
390
390
|
const t = window.localStorage.getItem(Qt);
|
|
391
391
|
if (t === null) return null;
|
|
392
392
|
const r = Number(t);
|
|
393
393
|
return Number.isFinite(r) ? r : null;
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function Yn(t) {
|
|
396
396
|
typeof window > "u" || (t === null ? window.localStorage.removeItem(Qt) : window.localStorage.setItem(Qt, String(t)), window.dispatchEvent(new CustomEvent(Br, { detail: t })));
|
|
397
397
|
}
|
|
398
|
-
function
|
|
399
|
-
|
|
398
|
+
function cs() {
|
|
399
|
+
Yn(null);
|
|
400
400
|
}
|
|
401
|
-
function
|
|
401
|
+
function Xn() {
|
|
402
402
|
const [t, r] = O(
|
|
403
|
-
() =>
|
|
403
|
+
() => hn()
|
|
404
404
|
);
|
|
405
405
|
return Q(() => {
|
|
406
406
|
const o = () => {
|
|
407
|
-
r(
|
|
407
|
+
r(hn());
|
|
408
408
|
}, i = (l) => {
|
|
409
409
|
l.key === Qt && o();
|
|
410
410
|
};
|
|
@@ -412,11 +412,11 @@ function Yn() {
|
|
|
412
412
|
window.removeEventListener(Br, o), window.removeEventListener("storage", i);
|
|
413
413
|
};
|
|
414
414
|
}, []), { selectedGroupId: t, setSelectedGroupId: (o) => {
|
|
415
|
-
|
|
415
|
+
Yn(o), r(o);
|
|
416
416
|
} };
|
|
417
417
|
}
|
|
418
|
-
let _t = 0, Dt = !1,
|
|
419
|
-
const
|
|
418
|
+
let _t = 0, Dt = !1, fn = /* @__PURE__ */ new Set();
|
|
419
|
+
const mn = () => /* @__PURE__ */ u(
|
|
420
420
|
"svg",
|
|
421
421
|
{
|
|
422
422
|
width: "100%",
|
|
@@ -434,7 +434,7 @@ const fn = () => /* @__PURE__ */ u(
|
|
|
434
434
|
]
|
|
435
435
|
}
|
|
436
436
|
);
|
|
437
|
-
function
|
|
437
|
+
function io(t) {
|
|
438
438
|
const [r, n] = O(!1), o = ce(null), i = ce(null);
|
|
439
439
|
return ft(() => {
|
|
440
440
|
const l = o.current;
|
|
@@ -454,11 +454,11 @@ function ro(t) {
|
|
|
454
454
|
};
|
|
455
455
|
}, [t]), { containerRef: o, textRef: i, truncated: r };
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function gn({
|
|
458
458
|
text: t,
|
|
459
459
|
textStyle: r
|
|
460
460
|
}) {
|
|
461
|
-
const { containerRef: n, textRef: o, truncated: i } =
|
|
461
|
+
const { containerRef: n, textRef: o, truncated: i } = io(t), l = /* @__PURE__ */ e(
|
|
462
462
|
"span",
|
|
463
463
|
{
|
|
464
464
|
ref: o,
|
|
@@ -474,9 +474,9 @@ function mn({
|
|
|
474
474
|
children: t
|
|
475
475
|
}
|
|
476
476
|
);
|
|
477
|
-
return /* @__PURE__ */ e("div", { ref: n, style: { flex: 1, minWidth: 0 }, children: i ? /* @__PURE__ */ e(
|
|
477
|
+
return /* @__PURE__ */ e("div", { ref: n, style: { flex: 1, minWidth: 0 }, children: i ? /* @__PURE__ */ e(Re, { fluid: !0, label: t, position: "top", children: l }) : l });
|
|
478
478
|
}
|
|
479
|
-
const
|
|
479
|
+
const pn = {
|
|
480
480
|
width: "100%",
|
|
481
481
|
display: "flex",
|
|
482
482
|
alignItems: "center",
|
|
@@ -492,8 +492,8 @@ const gn = {
|
|
|
492
492
|
borderRadius: "0.375rem",
|
|
493
493
|
cursor: "pointer",
|
|
494
494
|
textAlign: "left"
|
|
495
|
-
},
|
|
496
|
-
function
|
|
495
|
+
}, oo = 200, yn = 16;
|
|
496
|
+
function ss({
|
|
497
497
|
children: t,
|
|
498
498
|
headerLeftSlot: r,
|
|
499
499
|
profile: n,
|
|
@@ -510,7 +510,7 @@ function is({
|
|
|
510
510
|
resizableSidebar: b = !0
|
|
511
511
|
}) {
|
|
512
512
|
var mt, xt;
|
|
513
|
-
const { useSearchParams: F, useNavigate: v, useLocation: M, Outlet: E } = pt(), [z] = F(), D = z.get("embed") === "true", C =
|
|
513
|
+
const { useSearchParams: F, useNavigate: v, useLocation: M, Outlet: E } = pt(), [z] = F(), D = z.get("embed") === "true", C = Zn(), { badges: I } = Gi(), A = v(), w = M(), B = !ze("md"), [J, X] = O(!1), {
|
|
514
514
|
collapsed: $,
|
|
515
515
|
setCollapsed: j,
|
|
516
516
|
width: K,
|
|
@@ -520,17 +520,17 @@ function is({
|
|
|
520
520
|
maxWidth: V,
|
|
521
521
|
mobileOpen: se,
|
|
522
522
|
setMobileOpen: we
|
|
523
|
-
} =
|
|
524
|
-
() => new Set(
|
|
525
|
-
), [Te, Ve] = O(null), { selectedGroupId: Be, setSelectedGroupId: qe } =
|
|
523
|
+
} = Qi(), [He, pe] = O(!1), [ke, Ee] = O(
|
|
524
|
+
() => new Set(fn)
|
|
525
|
+
), [Te, Ve] = O(null), { selectedGroupId: Be, setSelectedGroupId: qe } = Xn();
|
|
526
526
|
Q(() => {
|
|
527
|
-
|
|
527
|
+
fn = ke;
|
|
528
528
|
}, [ke]);
|
|
529
529
|
const De = ce(null), je = ce(null), Xe = ce(null), [tt, Se] = O(!1), [at, St] = O(null), H = b && !B && !$, ee = (k) => Math.min(Math.max(k, T), V), G = at ?? K, ae = (k) => {
|
|
530
|
-
var
|
|
530
|
+
var oe, Je, et;
|
|
531
531
|
if (!H) return;
|
|
532
532
|
k.preventDefault();
|
|
533
|
-
const P = k.clientX, q = ((
|
|
533
|
+
const P = k.clientX, q = ((oe = Xe.current) == null ? void 0 : oe.getBoundingClientRect().width) ?? K;
|
|
534
534
|
(et = (Je = k.currentTarget).setPointerCapture) == null || et.call(Je, k.pointerId), Se(!0), document.body.style.userSelect = "none", document.body.style.cursor = "col-resize";
|
|
535
535
|
let ye = 0, Le = q;
|
|
536
536
|
const it = (Tt) => {
|
|
@@ -538,11 +538,11 @@ function is({
|
|
|
538
538
|
ye = 0, St(ee(Le));
|
|
539
539
|
}));
|
|
540
540
|
}, Fe = () => {
|
|
541
|
-
ye && cancelAnimationFrame(ye), window.removeEventListener("pointermove", it), window.removeEventListener("pointerup", Fe), document.body.style.userSelect = "", document.body.style.cursor = "", St(null), Se(!1), Le <
|
|
541
|
+
ye && cancelAnimationFrame(ye), window.removeEventListener("pointermove", it), window.removeEventListener("pointerup", Fe), document.body.style.userSelect = "", document.body.style.cursor = "", St(null), Se(!1), Le < oo ? (te(T), j(!0)) : te(ee(Le));
|
|
542
542
|
};
|
|
543
543
|
window.addEventListener("pointermove", it), window.addEventListener("pointerup", Fe);
|
|
544
|
-
},
|
|
545
|
-
H && (k.key === "ArrowLeft" ? (k.preventDefault(), te((P) => P -
|
|
544
|
+
}, ie = (k) => {
|
|
545
|
+
H && (k.key === "ArrowLeft" ? (k.preventDefault(), te((P) => P - yn)) : k.key === "ArrowRight" ? (k.preventDefault(), te((P) => P + yn)) : k.key === "Home" ? (k.preventDefault(), te(T)) : k.key === "End" && (k.preventDefault(), te(V)));
|
|
546
546
|
};
|
|
547
547
|
Q(() => {
|
|
548
548
|
const k = De.current;
|
|
@@ -577,10 +577,10 @@ function is({
|
|
|
577
577
|
const k = setTimeout(be, 0), P = setTimeout(be, 50), q = setTimeout(be, 100), ye = setTimeout(be, 200), Le = setTimeout(() => {
|
|
578
578
|
Dt = !1;
|
|
579
579
|
}, 300), it = setTimeout(() => {
|
|
580
|
-
const Fe = De.current,
|
|
581
|
-
if (Fe &&
|
|
582
|
-
const Je = Fe.getBoundingClientRect(), et =
|
|
583
|
-
et.top >= Je.top && et.bottom <= Je.bottom ||
|
|
580
|
+
const Fe = De.current, oe = Fe == null ? void 0 : Fe.querySelector("[data-menu-active='true']");
|
|
581
|
+
if (Fe && oe) {
|
|
582
|
+
const Je = Fe.getBoundingClientRect(), et = oe.getBoundingClientRect();
|
|
583
|
+
et.top >= Je.top && et.bottom <= Je.bottom || oe.scrollIntoView({ block: "center", behavior: "smooth" });
|
|
584
584
|
}
|
|
585
585
|
}, 250);
|
|
586
586
|
return () => {
|
|
@@ -654,11 +654,11 @@ function is({
|
|
|
654
654
|
onClick: (Fe) => {
|
|
655
655
|
if (P)
|
|
656
656
|
if ($ && !B) {
|
|
657
|
-
const
|
|
657
|
+
const oe = Fe.currentTarget.getBoundingClientRect();
|
|
658
658
|
Ve({
|
|
659
659
|
item: k,
|
|
660
|
-
top:
|
|
661
|
-
left:
|
|
660
|
+
top: oe.top,
|
|
661
|
+
left: oe.right + 8
|
|
662
662
|
});
|
|
663
663
|
} else
|
|
664
664
|
dt(k.id);
|
|
@@ -720,9 +720,9 @@ function is({
|
|
|
720
720
|
]
|
|
721
721
|
}
|
|
722
722
|
),
|
|
723
|
-
(!$ || B) && /* @__PURE__ */ u(
|
|
723
|
+
(!$ || B) && /* @__PURE__ */ u(ne, { children: [
|
|
724
724
|
/* @__PURE__ */ e(
|
|
725
|
-
|
|
725
|
+
gn,
|
|
726
726
|
{
|
|
727
727
|
text: k.title,
|
|
728
728
|
textStyle: { transition: "opacity 0.3s" }
|
|
@@ -767,7 +767,7 @@ function is({
|
|
|
767
767
|
),
|
|
768
768
|
P && (!$ || B) && (() => {
|
|
769
769
|
const Fe = k.children.findIndex(
|
|
770
|
-
(
|
|
770
|
+
(oe) => de(oe.to)
|
|
771
771
|
);
|
|
772
772
|
return /* @__PURE__ */ u(
|
|
773
773
|
"div",
|
|
@@ -815,15 +815,15 @@ function is({
|
|
|
815
815
|
}
|
|
816
816
|
}
|
|
817
817
|
),
|
|
818
|
-
k.children.map((
|
|
818
|
+
k.children.map((oe) => {
|
|
819
819
|
const Je = yr(
|
|
820
|
-
|
|
821
|
-
I[
|
|
820
|
+
oe.badge,
|
|
821
|
+
I[oe.id]
|
|
822
822
|
);
|
|
823
823
|
return /* @__PURE__ */ u(
|
|
824
824
|
"button",
|
|
825
825
|
{
|
|
826
|
-
onClick: () => A(
|
|
826
|
+
onClick: () => A(oe.to),
|
|
827
827
|
style: {
|
|
828
828
|
width: "100%",
|
|
829
829
|
display: "flex",
|
|
@@ -834,29 +834,29 @@ function is({
|
|
|
834
834
|
paddingTop: "0.25rem",
|
|
835
835
|
paddingBottom: "0.25rem",
|
|
836
836
|
height: "2rem",
|
|
837
|
-
borderRadius: de(
|
|
837
|
+
borderRadius: de(oe.to) ? "var(--sa-radii-sm, 0.375rem)" : "var(--sa-radii-md, 0.5rem)",
|
|
838
838
|
textAlign: "left",
|
|
839
|
-
backgroundColor: de(
|
|
840
|
-
color: de(
|
|
839
|
+
backgroundColor: de(oe.to) ? "var(--sa-background-primary, #ffffff)" : "transparent",
|
|
840
|
+
color: de(oe.to) ? "var(--sa-text-primary, #292a2e)" : "var(--sa-text-subtle, #505258)",
|
|
841
841
|
cursor: "pointer",
|
|
842
|
-
border: de(
|
|
842
|
+
border: de(oe.to) ? "1px solid var(--sa-border-subtle, #0b120e24)" : "1px solid transparent"
|
|
843
843
|
},
|
|
844
844
|
onMouseEnter: (et) => {
|
|
845
|
-
de(
|
|
845
|
+
de(oe.to) || (et.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)");
|
|
846
846
|
},
|
|
847
847
|
onMouseLeave: (et) => {
|
|
848
|
-
de(
|
|
848
|
+
de(oe.to) || (et.currentTarget.style.backgroundColor = "transparent");
|
|
849
849
|
},
|
|
850
850
|
children: [
|
|
851
851
|
/* @__PURE__ */ e(
|
|
852
852
|
W,
|
|
853
853
|
{
|
|
854
|
-
name:
|
|
854
|
+
name: oe.icon,
|
|
855
855
|
size: "sm",
|
|
856
856
|
style: { flexShrink: 0 }
|
|
857
857
|
}
|
|
858
858
|
),
|
|
859
|
-
/* @__PURE__ */ e(
|
|
859
|
+
/* @__PURE__ */ e(gn, { text: oe.title }),
|
|
860
860
|
Je && /* @__PURE__ */ e(
|
|
861
861
|
It,
|
|
862
862
|
{
|
|
@@ -868,7 +868,7 @@ function is({
|
|
|
868
868
|
)
|
|
869
869
|
]
|
|
870
870
|
},
|
|
871
|
-
|
|
871
|
+
oe.id
|
|
872
872
|
);
|
|
873
873
|
})
|
|
874
874
|
]
|
|
@@ -877,7 +877,7 @@ function is({
|
|
|
877
877
|
})()
|
|
878
878
|
] }, k.id);
|
|
879
879
|
};
|
|
880
|
-
return /* @__PURE__ */ e(
|
|
880
|
+
return /* @__PURE__ */ e(ro, { children: /* @__PURE__ */ u(eo, { children: [
|
|
881
881
|
/* @__PURE__ */ u(
|
|
882
882
|
"div",
|
|
883
883
|
{
|
|
@@ -946,7 +946,7 @@ function is({
|
|
|
946
946
|
},
|
|
947
947
|
children: (() => {
|
|
948
948
|
const k = !B && $ && !se, P = k && He;
|
|
949
|
-
return /* @__PURE__ */ u(
|
|
949
|
+
return /* @__PURE__ */ u(ne, { children: [
|
|
950
950
|
/* @__PURE__ */ u(
|
|
951
951
|
"div",
|
|
952
952
|
{
|
|
@@ -1007,7 +1007,7 @@ function is({
|
|
|
1007
1007
|
cursor: "pointer",
|
|
1008
1008
|
flexShrink: 0
|
|
1009
1009
|
},
|
|
1010
|
-
children: /* @__PURE__ */ e(
|
|
1010
|
+
children: /* @__PURE__ */ e(mn, {})
|
|
1011
1011
|
}
|
|
1012
1012
|
),
|
|
1013
1013
|
k && /* @__PURE__ */ e(
|
|
@@ -1044,7 +1044,7 @@ function is({
|
|
|
1044
1044
|
height: "1rem",
|
|
1045
1045
|
display: "inline-flex"
|
|
1046
1046
|
},
|
|
1047
|
-
children: /* @__PURE__ */ e(
|
|
1047
|
+
children: /* @__PURE__ */ e(mn, {})
|
|
1048
1048
|
}
|
|
1049
1049
|
)
|
|
1050
1050
|
}
|
|
@@ -1087,7 +1087,7 @@ function is({
|
|
|
1087
1087
|
}
|
|
1088
1088
|
),
|
|
1089
1089
|
s && /* @__PURE__ */ e(
|
|
1090
|
-
|
|
1090
|
+
Ki,
|
|
1091
1091
|
{
|
|
1092
1092
|
collapsed: B ? !1 : $,
|
|
1093
1093
|
children: s
|
|
@@ -1148,7 +1148,7 @@ function is({
|
|
|
1148
1148
|
}
|
|
1149
1149
|
),
|
|
1150
1150
|
/* @__PURE__ */ e("div", { style: { paddingLeft: "1rem", paddingRight: "1rem", display: "flex", flexDirection: "column", gap: "var(--sa-spacing-xs, 0.25rem)" }, children: k.slotKey ? /* @__PURE__ */ e(
|
|
1151
|
-
|
|
1151
|
+
no,
|
|
1152
1152
|
{
|
|
1153
1153
|
slotKey: k.slotKey,
|
|
1154
1154
|
fallback: k.items.map((P) => bt(P))
|
|
@@ -1186,7 +1186,7 @@ function is({
|
|
|
1186
1186
|
"aria-valuemax": V,
|
|
1187
1187
|
tabIndex: 0,
|
|
1188
1188
|
onPointerDown: ae,
|
|
1189
|
-
onKeyDown:
|
|
1189
|
+
onKeyDown: ie,
|
|
1190
1190
|
onDoubleClick: _,
|
|
1191
1191
|
title: "Drag to resize · double-click to reset",
|
|
1192
1192
|
style: {
|
|
@@ -1262,12 +1262,12 @@ function is({
|
|
|
1262
1262
|
)
|
|
1263
1263
|
}
|
|
1264
1264
|
),
|
|
1265
|
-
/* @__PURE__ */ e(
|
|
1265
|
+
/* @__PURE__ */ e(to, { children: r })
|
|
1266
1266
|
] }),
|
|
1267
1267
|
/* @__PURE__ */ u("div", { style: { display: "flex", alignItems: "center", gap: "0.75rem" }, children: [
|
|
1268
1268
|
a,
|
|
1269
1269
|
/* @__PURE__ */ u(Ne, { position: "bottom-right", children: [
|
|
1270
|
-
/* @__PURE__ */ e(
|
|
1270
|
+
/* @__PURE__ */ e(Ie, { children: /* @__PURE__ */ u(
|
|
1271
1271
|
"div",
|
|
1272
1272
|
{
|
|
1273
1273
|
style: {
|
|
@@ -1350,7 +1350,7 @@ function is({
|
|
|
1350
1350
|
marginTop: "16px"
|
|
1351
1351
|
},
|
|
1352
1352
|
children: [
|
|
1353
|
-
/* @__PURE__ */ e(
|
|
1353
|
+
/* @__PURE__ */ e(Bi, { children: /* @__PURE__ */ u(
|
|
1354
1354
|
"div",
|
|
1355
1355
|
{
|
|
1356
1356
|
style: {
|
|
@@ -1431,12 +1431,12 @@ function is({
|
|
|
1431
1431
|
}
|
|
1432
1432
|
) }),
|
|
1433
1433
|
(f && f.length > 0 || p) && /* @__PURE__ */ u(_e, { children: [
|
|
1434
|
-
f == null ? void 0 : f.map((k, P) => /* @__PURE__ */ e(
|
|
1434
|
+
f == null ? void 0 : f.map((k, P) => /* @__PURE__ */ e(Ie, { children: /* @__PURE__ */ u(
|
|
1435
1435
|
"button",
|
|
1436
1436
|
{
|
|
1437
1437
|
type: "button",
|
|
1438
1438
|
onClick: k.onClick,
|
|
1439
|
-
style:
|
|
1439
|
+
style: pn,
|
|
1440
1440
|
onMouseEnter: (q) => {
|
|
1441
1441
|
q.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)";
|
|
1442
1442
|
},
|
|
@@ -1451,13 +1451,13 @@ function is({
|
|
|
1451
1451
|
) }, `${k.label}-${P}`)),
|
|
1452
1452
|
p
|
|
1453
1453
|
] }),
|
|
1454
|
-
g ?? /* @__PURE__ */ e(
|
|
1454
|
+
g ?? /* @__PURE__ */ e(Hr, { children: /* @__PURE__ */ e(Ie, { children: /* @__PURE__ */ u(
|
|
1455
1455
|
"button",
|
|
1456
1456
|
{
|
|
1457
1457
|
type: "button",
|
|
1458
1458
|
onClick: rt,
|
|
1459
1459
|
style: {
|
|
1460
|
-
...
|
|
1460
|
+
...pn,
|
|
1461
1461
|
color: "var(--sa-background-error, #c9184a)",
|
|
1462
1462
|
fontWeight: 500
|
|
1463
1463
|
},
|
|
@@ -1520,15 +1520,15 @@ function is({
|
|
|
1520
1520
|
children: c
|
|
1521
1521
|
}
|
|
1522
1522
|
),
|
|
1523
|
-
/* @__PURE__ */ u(
|
|
1524
|
-
/* @__PURE__ */ e(
|
|
1525
|
-
/* @__PURE__ */ e(
|
|
1526
|
-
/* @__PURE__ */ e(
|
|
1523
|
+
/* @__PURE__ */ u(Ir, { isShow: J, onHide: Ke, children: [
|
|
1524
|
+
/* @__PURE__ */ e(Nn, { children: "Confirmation Logout" }),
|
|
1525
|
+
/* @__PURE__ */ e(Or, { children: "Are you sure you want to end the session and exit the page?" }),
|
|
1526
|
+
/* @__PURE__ */ e($n, { children: /* @__PURE__ */ e(m, { direction: "column", display: "flex", align: "flex-end", justify: "center", children: /* @__PURE__ */ u(me, { direction: "row", gap: "sm", align: "center", children: [
|
|
1527
1527
|
/* @__PURE__ */ e(m, { direction: "column", children: /* @__PURE__ */ e(N, { secondary: !0, onClick: Ke, children: "Cancel" }) }),
|
|
1528
1528
|
/* @__PURE__ */ e(m, { direction: "column", children: /* @__PURE__ */ e(N, { primary: !0, onClick: Ue, children: "Yes, Sure" }) })
|
|
1529
1529
|
] }) }) })
|
|
1530
1530
|
] }),
|
|
1531
|
-
Te && /* @__PURE__ */ u(
|
|
1531
|
+
Te && /* @__PURE__ */ u(ne, { children: [
|
|
1532
1532
|
/* @__PURE__ */ e(
|
|
1533
1533
|
"div",
|
|
1534
1534
|
{
|
|
@@ -1639,7 +1639,7 @@ function is({
|
|
|
1639
1639
|
] })
|
|
1640
1640
|
] }) });
|
|
1641
1641
|
}
|
|
1642
|
-
const rr =
|
|
1642
|
+
const rr = Vr(
|
|
1643
1643
|
({ children: t, ...r }, n) => /* @__PURE__ */ e(
|
|
1644
1644
|
m,
|
|
1645
1645
|
{
|
|
@@ -1653,7 +1653,7 @@ const rr = Tr(
|
|
|
1653
1653
|
children: t
|
|
1654
1654
|
}
|
|
1655
1655
|
)
|
|
1656
|
-
),
|
|
1656
|
+
), bn = ({
|
|
1657
1657
|
title: t,
|
|
1658
1658
|
iconName: r,
|
|
1659
1659
|
textColor: n,
|
|
@@ -1697,7 +1697,7 @@ const rr = Tr(
|
|
|
1697
1697
|
]
|
|
1698
1698
|
}
|
|
1699
1699
|
);
|
|
1700
|
-
},
|
|
1700
|
+
}, lo = ({
|
|
1701
1701
|
items: t,
|
|
1702
1702
|
separator: r = "/",
|
|
1703
1703
|
iconName: n,
|
|
@@ -1720,15 +1720,15 @@ const rr = Tr(
|
|
|
1720
1720
|
), b = f != null && f.to ? /* @__PURE__ */ e(l, { to: f.to, replace: !0, style: { textDecoration: "none" }, children: g }) : f != null && f.onClick ? /* @__PURE__ */ e(rr, { onClick: f.onClick, children: g }) : g;
|
|
1721
1721
|
return /* @__PURE__ */ u(m, { direction: "row", gap: "xs", align: "center", children: [
|
|
1722
1722
|
b,
|
|
1723
|
-
/* @__PURE__ */ e(
|
|
1723
|
+
/* @__PURE__ */ e(Mi, { separator: r, size: "md", children: t.map((F, v) => {
|
|
1724
1724
|
const M = v === t.length - 1;
|
|
1725
|
-
return F.to && !M ? /* @__PURE__ */ e(
|
|
1725
|
+
return F.to && !M ? /* @__PURE__ */ e(an, { children: /* @__PURE__ */ e(l, { to: F.to, children: F.label }) }, v) : /* @__PURE__ */ e(an, { currentPage: M, children: /* @__PURE__ */ e(Wi, { onClick: M ? void 0 : F.onClick, children: F.label }) }, v);
|
|
1726
1726
|
}) })
|
|
1727
1727
|
] });
|
|
1728
|
-
},
|
|
1728
|
+
}, as = (t) => {
|
|
1729
1729
|
const { Link: r } = pt(), { items: n, separator: o, onClick: i, navigateTo: l, ...c } = t;
|
|
1730
1730
|
return n && n.length > 0 ? /* @__PURE__ */ e(
|
|
1731
|
-
|
|
1731
|
+
lo,
|
|
1732
1732
|
{
|
|
1733
1733
|
items: n,
|
|
1734
1734
|
separator: o,
|
|
@@ -1736,7 +1736,7 @@ const rr = Tr(
|
|
|
1736
1736
|
iconColor: c.iconColor,
|
|
1737
1737
|
hoverIconColor: c.hoverIconColor
|
|
1738
1738
|
}
|
|
1739
|
-
) : l ? /* @__PURE__ */ e(m, { direction: "row", children: /* @__PURE__ */ e(r, { to: l, replace: !0, style: { textDecoration: "none" }, children: /* @__PURE__ */ e(
|
|
1739
|
+
) : l ? /* @__PURE__ */ e(m, { direction: "row", children: /* @__PURE__ */ e(r, { to: l, replace: !0, style: { textDecoration: "none" }, children: /* @__PURE__ */ e(bn, { ...c }) }) }) : /* @__PURE__ */ e(m, { direction: "row", children: /* @__PURE__ */ e(rr, { onClick: i, children: /* @__PURE__ */ e(bn, { ...c }) }) });
|
|
1740
1740
|
}, br = [
|
|
1741
1741
|
// brand (blue)
|
|
1742
1742
|
{
|
|
@@ -1781,7 +1781,7 @@ const rr = Tr(
|
|
|
1781
1781
|
activeShadow: "rgba(255, 117, 143, 0.25)"
|
|
1782
1782
|
}
|
|
1783
1783
|
];
|
|
1784
|
-
function
|
|
1784
|
+
function xn(t, r, n) {
|
|
1785
1785
|
return {
|
|
1786
1786
|
display: "flex",
|
|
1787
1787
|
alignItems: "center",
|
|
@@ -1797,7 +1797,7 @@ function bn(t, r, n) {
|
|
|
1797
1797
|
transition: "box-shadow 0.2s ease, transform 0.2s ease, background-color 0.15s ease, border-color 0.15s ease"
|
|
1798
1798
|
};
|
|
1799
1799
|
}
|
|
1800
|
-
const
|
|
1800
|
+
const vn = {
|
|
1801
1801
|
fontSize: "11px",
|
|
1802
1802
|
fontWeight: 500,
|
|
1803
1803
|
textAlign: "center",
|
|
@@ -1806,7 +1806,7 @@ const xn = {
|
|
|
1806
1806
|
color: "var(--sa-background-primary, #ffffff)",
|
|
1807
1807
|
lineHeight: "1.3",
|
|
1808
1808
|
maxWidth: "80px"
|
|
1809
|
-
},
|
|
1809
|
+
}, Cn = {
|
|
1810
1810
|
display: "flex",
|
|
1811
1811
|
flexDirection: "column",
|
|
1812
1812
|
alignItems: "center",
|
|
@@ -1816,7 +1816,7 @@ const xn = {
|
|
|
1816
1816
|
cursor: "pointer",
|
|
1817
1817
|
padding: 0
|
|
1818
1818
|
};
|
|
1819
|
-
function
|
|
1819
|
+
function co({
|
|
1820
1820
|
isShow: t,
|
|
1821
1821
|
onHide: r,
|
|
1822
1822
|
menus: n,
|
|
@@ -1827,7 +1827,7 @@ function oo({
|
|
|
1827
1827
|
i(d), r();
|
|
1828
1828
|
}, a = br[0];
|
|
1829
1829
|
return /* @__PURE__ */ e(
|
|
1830
|
-
|
|
1830
|
+
Ir,
|
|
1831
1831
|
{
|
|
1832
1832
|
isShow: t,
|
|
1833
1833
|
onHide: r,
|
|
@@ -1837,7 +1837,7 @@ function oo({
|
|
|
1837
1837
|
boxShadow: "none",
|
|
1838
1838
|
border: "none"
|
|
1839
1839
|
},
|
|
1840
|
-
children: /* @__PURE__ */ e(
|
|
1840
|
+
children: /* @__PURE__ */ e(Or, { children: /* @__PURE__ */ u(
|
|
1841
1841
|
"div",
|
|
1842
1842
|
{
|
|
1843
1843
|
style: {
|
|
@@ -1852,10 +1852,10 @@ function oo({
|
|
|
1852
1852
|
onClick: () => s(null),
|
|
1853
1853
|
onMouseEnter: () => c("all"),
|
|
1854
1854
|
onMouseLeave: () => c(void 0),
|
|
1855
|
-
style:
|
|
1855
|
+
style: Cn,
|
|
1856
1856
|
children: [
|
|
1857
|
-
/* @__PURE__ */ e("div", { style:
|
|
1858
|
-
/* @__PURE__ */ e("span", { style:
|
|
1857
|
+
/* @__PURE__ */ e("div", { style: xn(o === null, l === "all", a), children: /* @__PURE__ */ e("div", { style: { color: a.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(W, { name: "Grid", size: "lg", style: { width: 32, height: 32 } }) }) }),
|
|
1858
|
+
/* @__PURE__ */ e("span", { style: vn, children: "Semua" })
|
|
1859
1859
|
]
|
|
1860
1860
|
}
|
|
1861
1861
|
),
|
|
@@ -1868,10 +1868,10 @@ function oo({
|
|
|
1868
1868
|
onClick: () => s(d.id),
|
|
1869
1869
|
onMouseEnter: () => c(d.id),
|
|
1870
1870
|
onMouseLeave: () => c(void 0),
|
|
1871
|
-
style:
|
|
1871
|
+
style: Cn,
|
|
1872
1872
|
children: [
|
|
1873
|
-
/* @__PURE__ */ e("div", { style:
|
|
1874
|
-
/* @__PURE__ */ e("span", { style:
|
|
1873
|
+
/* @__PURE__ */ e("div", { style: xn(p, g, F), children: /* @__PURE__ */ e("div", { style: { color: F.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(W, { name: b, size: "lg", style: { width: 32, height: 32 } }) }) }),
|
|
1874
|
+
/* @__PURE__ */ e("span", { style: vn, children: d.name })
|
|
1875
1875
|
]
|
|
1876
1876
|
},
|
|
1877
1877
|
d.id
|
|
@@ -1883,11 +1883,11 @@ function oo({
|
|
|
1883
1883
|
}
|
|
1884
1884
|
);
|
|
1885
1885
|
}
|
|
1886
|
-
function
|
|
1886
|
+
function ds({
|
|
1887
1887
|
onSelect: t,
|
|
1888
1888
|
"aria-label": r = "Pilih module"
|
|
1889
1889
|
} = {}) {
|
|
1890
|
-
const n =
|
|
1890
|
+
const n = Zn(), { useNavigate: o } = pt(), i = o(), { selectedGroupId: l, setSelectedGroupId: c } = Xn(), [s, a] = O(!1), d = (f) => {
|
|
1891
1891
|
var p;
|
|
1892
1892
|
if (c(f), f !== null) {
|
|
1893
1893
|
const g = n.menus.find((F) => F.id === f), b = (p = g == null ? void 0 : g.items[0]) == null ? void 0 : p.to;
|
|
@@ -1895,7 +1895,7 @@ function ls({
|
|
|
1895
1895
|
}
|
|
1896
1896
|
t == null || t(f);
|
|
1897
1897
|
};
|
|
1898
|
-
return /* @__PURE__ */ u(
|
|
1898
|
+
return /* @__PURE__ */ u(ne, { children: [
|
|
1899
1899
|
/* @__PURE__ */ u("div", { style: { position: "relative" }, children: [
|
|
1900
1900
|
/* @__PURE__ */ e(
|
|
1901
1901
|
"button",
|
|
@@ -1940,7 +1940,7 @@ function ls({
|
|
|
1940
1940
|
)
|
|
1941
1941
|
] }),
|
|
1942
1942
|
/* @__PURE__ */ e(
|
|
1943
|
-
|
|
1943
|
+
co,
|
|
1944
1944
|
{
|
|
1945
1945
|
isShow: s,
|
|
1946
1946
|
onHide: () => a(!1),
|
|
@@ -1951,7 +1951,7 @@ function ls({
|
|
|
1951
1951
|
)
|
|
1952
1952
|
] });
|
|
1953
1953
|
}
|
|
1954
|
-
const
|
|
1954
|
+
const so = (t, r) => {
|
|
1955
1955
|
const n = [];
|
|
1956
1956
|
if (r === 0)
|
|
1957
1957
|
return n.push(t), n;
|
|
@@ -1960,7 +1960,7 @@ const lo = (t, r) => {
|
|
|
1960
1960
|
n.push(i);
|
|
1961
1961
|
}
|
|
1962
1962
|
return n;
|
|
1963
|
-
},
|
|
1963
|
+
}, ao = st(
|
|
1964
1964
|
({
|
|
1965
1965
|
value: t,
|
|
1966
1966
|
label: r,
|
|
@@ -1992,8 +1992,8 @@ const lo = (t, r) => {
|
|
|
1992
1992
|
/* @__PURE__ */ e(Ae, { style: c, children: d() })
|
|
1993
1993
|
] });
|
|
1994
1994
|
}
|
|
1995
|
-
),
|
|
1996
|
-
|
|
1995
|
+
), uo = st(({ fields: t, separator: r, labelWidth: n }) => /* @__PURE__ */ e(Jt, { withColumnBorder: !1, withRowBorder: !1, children: t.map((o, i) => /* @__PURE__ */ e(
|
|
1996
|
+
ao,
|
|
1997
1997
|
{
|
|
1998
1998
|
separator: r,
|
|
1999
1999
|
labelWidth: n,
|
|
@@ -2001,7 +2001,7 @@ const lo = (t, r) => {
|
|
|
2001
2001
|
...o
|
|
2002
2002
|
},
|
|
2003
2003
|
`field-group-field-${i}`
|
|
2004
|
-
)) })),
|
|
2004
|
+
)) })), us = st(
|
|
2005
2005
|
({
|
|
2006
2006
|
maxRow: t = 0,
|
|
2007
2007
|
maxColumn: r = 2,
|
|
@@ -2011,7 +2011,7 @@ const lo = (t, r) => {
|
|
|
2011
2011
|
bordered: l = !1
|
|
2012
2012
|
}) => {
|
|
2013
2013
|
const c = xe(
|
|
2014
|
-
() =>
|
|
2014
|
+
() => so(o, t),
|
|
2015
2015
|
[o, t]
|
|
2016
2016
|
), s = c.length > 2, a = () => {
|
|
2017
2017
|
switch (r) {
|
|
@@ -2048,7 +2048,7 @@ const lo = (t, r) => {
|
|
|
2048
2048
|
width: s ? a() : void 0,
|
|
2049
2049
|
marginBottom: s ? "lg" : void 0,
|
|
2050
2050
|
children: /* @__PURE__ */ e(
|
|
2051
|
-
|
|
2051
|
+
uo,
|
|
2052
2052
|
{
|
|
2053
2053
|
labelWidth: i,
|
|
2054
2054
|
fields: d,
|
|
@@ -2061,7 +2061,7 @@ const lo = (t, r) => {
|
|
|
2061
2061
|
}
|
|
2062
2062
|
);
|
|
2063
2063
|
}
|
|
2064
|
-
),
|
|
2064
|
+
), ho = ({ backButton: t }) => {
|
|
2065
2065
|
const [r, n] = O(!1), o = (t == null ? void 0 : t.iconColor) ?? "var(--sa-text-subtle, #8c8f97)", i = (t == null ? void 0 : t.textColor) ?? "var(--sa-text-subtle, #8c8f97)", l = (t == null ? void 0 : t.hoverIconColor) ?? "var(--sa-text-subtle, #8c8f97)", c = (t == null ? void 0 : t.hoverTextColor) ?? "var(--sa-text-primary, #292a2e)";
|
|
2066
2066
|
return /* @__PURE__ */ u(
|
|
2067
2067
|
m,
|
|
@@ -2099,7 +2099,7 @@ const lo = (t, r) => {
|
|
|
2099
2099
|
]
|
|
2100
2100
|
}
|
|
2101
2101
|
);
|
|
2102
|
-
},
|
|
2102
|
+
}, fo = ({
|
|
2103
2103
|
backButton: t,
|
|
2104
2104
|
title: r,
|
|
2105
2105
|
titleIcon: n,
|
|
@@ -2138,7 +2138,7 @@ const lo = (t, r) => {
|
|
|
2138
2138
|
},
|
|
2139
2139
|
`action-${V}`
|
|
2140
2140
|
)) }) : /* @__PURE__ */ u(Ne, { position: "bottom-right", children: [
|
|
2141
|
-
/* @__PURE__ */ e(
|
|
2141
|
+
/* @__PURE__ */ e(Ie, { children: /* @__PURE__ */ e(
|
|
2142
2142
|
N,
|
|
2143
2143
|
{
|
|
2144
2144
|
variant: "tertiary",
|
|
@@ -2168,7 +2168,7 @@ const lo = (t, r) => {
|
|
|
2168
2168
|
}) }) })
|
|
2169
2169
|
] });
|
|
2170
2170
|
}, R = () => {
|
|
2171
|
-
const j = /* @__PURE__ */ e(
|
|
2171
|
+
const j = /* @__PURE__ */ e(ho, { backButton: t });
|
|
2172
2172
|
return t != null && t.navigateTo ? /* @__PURE__ */ e(m, { direction: "row", children: /* @__PURE__ */ e(
|
|
2173
2173
|
M,
|
|
2174
2174
|
{
|
|
@@ -2224,7 +2224,7 @@ const lo = (t, r) => {
|
|
|
2224
2224
|
}
|
|
2225
2225
|
)
|
|
2226
2226
|
] }),
|
|
2227
|
-
o && /* @__PURE__ */ e(
|
|
2227
|
+
o && /* @__PURE__ */ e(Li, { border: !0, size: "lg", text: o, ...g })
|
|
2228
2228
|
] }) : r : null,
|
|
2229
2229
|
w()
|
|
2230
2230
|
]
|
|
@@ -2315,22 +2315,22 @@ const lo = (t, r) => {
|
|
|
2315
2315
|
},
|
|
2316
2316
|
C.pathname
|
|
2317
2317
|
);
|
|
2318
|
-
},
|
|
2318
|
+
}, hs = st(fo), mo = {
|
|
2319
2319
|
icon: "Cross",
|
|
2320
2320
|
title: ""
|
|
2321
|
-
},
|
|
2321
|
+
}, go = Vr(
|
|
2322
2322
|
({
|
|
2323
2323
|
onHide: t,
|
|
2324
2324
|
show: r,
|
|
2325
2325
|
withBlur: n = !1,
|
|
2326
2326
|
style: o,
|
|
2327
2327
|
children: i,
|
|
2328
|
-
closeButton: l =
|
|
2328
|
+
closeButton: l = mo,
|
|
2329
2329
|
width: c,
|
|
2330
2330
|
minWidth: s,
|
|
2331
2331
|
maxWidth: a
|
|
2332
2332
|
}, d) => /* @__PURE__ */ e(
|
|
2333
|
-
|
|
2333
|
+
_n,
|
|
2334
2334
|
{
|
|
2335
2335
|
blur: n,
|
|
2336
2336
|
isShow: r,
|
|
@@ -2367,7 +2367,7 @@ const lo = (t, r) => {
|
|
|
2367
2367
|
] })
|
|
2368
2368
|
}
|
|
2369
2369
|
)
|
|
2370
|
-
),
|
|
2370
|
+
), Kn = st(
|
|
2371
2371
|
({ children: t, borderBottom: r = !0, padding: n = !0 }) => {
|
|
2372
2372
|
const o = ze("lg");
|
|
2373
2373
|
return /* @__PURE__ */ e(
|
|
@@ -2384,7 +2384,7 @@ const lo = (t, r) => {
|
|
|
2384
2384
|
}
|
|
2385
2385
|
);
|
|
2386
2386
|
}
|
|
2387
|
-
),
|
|
2387
|
+
), ei = st(
|
|
2388
2388
|
({ children: t, borderTop: r = !0, padding: n = !0 }) => {
|
|
2389
2389
|
const o = ze("lg");
|
|
2390
2390
|
return /* @__PURE__ */ e(
|
|
@@ -2401,7 +2401,7 @@ const lo = (t, r) => {
|
|
|
2401
2401
|
}
|
|
2402
2402
|
);
|
|
2403
2403
|
}
|
|
2404
|
-
),
|
|
2404
|
+
), po = st(
|
|
2405
2405
|
({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
2406
2406
|
m,
|
|
2407
2407
|
{
|
|
@@ -2414,7 +2414,7 @@ const lo = (t, r) => {
|
|
|
2414
2414
|
children: t
|
|
2415
2415
|
}
|
|
2416
2416
|
)
|
|
2417
|
-
),
|
|
2417
|
+
), fs = st(
|
|
2418
2418
|
({
|
|
2419
2419
|
children: t,
|
|
2420
2420
|
title: r,
|
|
@@ -2469,26 +2469,26 @@ const lo = (t, r) => {
|
|
|
2469
2469
|
...(s == null ? void 0 : s.style) ?? {}
|
|
2470
2470
|
},
|
|
2471
2471
|
children: [
|
|
2472
|
-
i !== null && v ? /* @__PURE__ */ e(
|
|
2473
|
-
/* @__PURE__ */ e(
|
|
2474
|
-
l ? /* @__PURE__ */ e(
|
|
2472
|
+
i !== null && v ? /* @__PURE__ */ e(Kn, { ...d, children: F() }) : null,
|
|
2473
|
+
/* @__PURE__ */ e(po, { ...a, children: t }),
|
|
2474
|
+
l ? /* @__PURE__ */ e(ei, { ...f, children: l }) : null
|
|
2475
2475
|
]
|
|
2476
2476
|
}
|
|
2477
2477
|
);
|
|
2478
2478
|
}
|
|
2479
|
-
),
|
|
2480
|
-
H1:
|
|
2481
|
-
H2:
|
|
2482
|
-
H3:
|
|
2483
|
-
H4:
|
|
2484
|
-
H5:
|
|
2485
|
-
H6:
|
|
2486
|
-
SubH1:
|
|
2487
|
-
SubH2:
|
|
2488
|
-
SubH3:
|
|
2489
|
-
Body1:
|
|
2490
|
-
Body2:
|
|
2491
|
-
Body3:
|
|
2479
|
+
), yo = (t) => /* @__PURE__ */ e(S, { variant: "h1", children: t.children, ...t.props }), bo = (t) => /* @__PURE__ */ e(S, { variant: "h2", children: t.children, ...t.props }), xo = (t) => /* @__PURE__ */ e(S, { variant: "h3", children: t.children, ...t.props }), vo = (t) => /* @__PURE__ */ e(S, { variant: "h4", children: t.children, ...t.props }), Co = (t) => /* @__PURE__ */ e(S, { variant: "h5", children: t.children, ...t.props }), wo = (t) => /* @__PURE__ */ e(S, { variant: "h6", children: t.children, ...t.props }), Do = (t) => /* @__PURE__ */ e(S, { variant: "sub-h1", children: t.children, ...t.props }), ko = (t) => /* @__PURE__ */ e(S, { variant: "sub-h2", children: t.children, ...t.props }), So = (t) => /* @__PURE__ */ e(S, { variant: "sub-h3", children: t.children, ...t.props }), Fo = (t) => /* @__PURE__ */ e(S, { variant: "body-1", children: t.children, ...t.props }), Eo = (t) => /* @__PURE__ */ e(S, { variant: "body-2", children: t.children, ...t.props }), Lo = (t) => /* @__PURE__ */ e(S, { variant: "body-3", children: t.children, ...t.props }), ct = {
|
|
2480
|
+
H1: yo,
|
|
2481
|
+
H2: bo,
|
|
2482
|
+
H3: xo,
|
|
2483
|
+
H4: vo,
|
|
2484
|
+
H5: Co,
|
|
2485
|
+
H6: wo,
|
|
2486
|
+
SubH1: Do,
|
|
2487
|
+
SubH2: ko,
|
|
2488
|
+
SubH3: So,
|
|
2489
|
+
Body1: Fo,
|
|
2490
|
+
Body2: Eo,
|
|
2491
|
+
Body3: Lo
|
|
2492
2492
|
}, Ge = () => {
|
|
2493
2493
|
const { useSearchParams: t, useParams: r, useLocation: n } = pt(), [o, i] = t(), l = er(o.toString()), c = r(), s = n(), a = c.id;
|
|
2494
2494
|
return {
|
|
@@ -2507,7 +2507,7 @@ const lo = (t, r) => {
|
|
|
2507
2507
|
id: a,
|
|
2508
2508
|
hasId: !!a
|
|
2509
2509
|
};
|
|
2510
|
-
},
|
|
2510
|
+
}, Mo = (t) => JSON.stringify(t), Wo = (t) => JSON.stringify(t), zo = (t) => JSON.stringify(t), Bo = (t) => JSON.stringify(t), Ao = (t) => t, Ro = (t) => JSON.stringify(t), Yt = ({
|
|
2511
2511
|
value: t,
|
|
2512
2512
|
name: r,
|
|
2513
2513
|
type: n,
|
|
@@ -2522,23 +2522,23 @@ const lo = (t, r) => {
|
|
|
2522
2522
|
let d;
|
|
2523
2523
|
switch (n) {
|
|
2524
2524
|
case "search":
|
|
2525
|
-
d =
|
|
2525
|
+
d = Ao(t);
|
|
2526
2526
|
break;
|
|
2527
2527
|
case "dropdown":
|
|
2528
2528
|
case "dropdown-multiple":
|
|
2529
|
-
d =
|
|
2529
|
+
d = Mo(t);
|
|
2530
2530
|
break;
|
|
2531
2531
|
case "radio":
|
|
2532
|
-
d =
|
|
2532
|
+
d = Wo(t);
|
|
2533
2533
|
break;
|
|
2534
2534
|
case "date-range":
|
|
2535
|
-
d =
|
|
2535
|
+
d = zo(t);
|
|
2536
2536
|
break;
|
|
2537
2537
|
case "advanced-date-range":
|
|
2538
|
-
d =
|
|
2538
|
+
d = Ro(t);
|
|
2539
2539
|
break;
|
|
2540
2540
|
case "date":
|
|
2541
|
-
d =
|
|
2541
|
+
d = Bo(t);
|
|
2542
2542
|
break;
|
|
2543
2543
|
default:
|
|
2544
2544
|
d = t;
|
|
@@ -2569,7 +2569,7 @@ const lo = (t, r) => {
|
|
|
2569
2569
|
}) => {
|
|
2570
2570
|
const i = n.get(r) || void 0, l = i && typeof i == "string" ? JSON.parse(i) : void 0, c = l ? l[t] : void 0;
|
|
2571
2571
|
return o === "label" && c ? JSON.parse(c)[0].label : o === "value" && c ? JSON.parse(c)[0].value : c;
|
|
2572
|
-
},
|
|
2572
|
+
}, Io = ({
|
|
2573
2573
|
name: t,
|
|
2574
2574
|
filterKey: r = "filter",
|
|
2575
2575
|
searchParams: n,
|
|
@@ -2577,7 +2577,7 @@ const lo = (t, r) => {
|
|
|
2577
2577
|
}) => {
|
|
2578
2578
|
const i = n.get(r) || void 0, l = i && typeof i == "string" ? JSON.parse(i) : void 0, c = l ? l[t] : void 0;
|
|
2579
2579
|
return o === "label" && c ? JSON.parse(c).map((s) => s.label) : o === "value" && c ? JSON.parse(c).map((s) => s.value) : o === "array" && c ? JSON.parse(c) : c;
|
|
2580
|
-
},
|
|
2580
|
+
}, ms = ({
|
|
2581
2581
|
name: t,
|
|
2582
2582
|
filterKey: r = "filter",
|
|
2583
2583
|
searchParams: n,
|
|
@@ -2585,10 +2585,10 @@ const lo = (t, r) => {
|
|
|
2585
2585
|
}) => {
|
|
2586
2586
|
const i = n.get(r) || void 0, l = i && typeof i == "string" ? JSON.parse(i) : void 0, c = l ? l[t] : void 0;
|
|
2587
2587
|
return o === "id" && c ? JSON.parse(c).id : o === "label" && c ? JSON.parse(c).label : o === "value" && c ? JSON.parse(c).value : c;
|
|
2588
|
-
},
|
|
2588
|
+
}, Pr = (t, r, n) => {
|
|
2589
2589
|
const o = r.get(n || "filter") || void 0, i = o && typeof o == "string" ? JSON.parse(o) : void 0;
|
|
2590
2590
|
return i ? i[t] : void 0;
|
|
2591
|
-
},
|
|
2591
|
+
}, gs = ({
|
|
2592
2592
|
name: t,
|
|
2593
2593
|
filterKey: r = "filter",
|
|
2594
2594
|
searchParams: n
|
|
@@ -2598,21 +2598,21 @@ const lo = (t, r) => {
|
|
|
2598
2598
|
start: l ? JSON.parse(l).from : void 0,
|
|
2599
2599
|
end: l ? JSON.parse(l).to : void 0
|
|
2600
2600
|
};
|
|
2601
|
-
},
|
|
2601
|
+
}, Oo = ({
|
|
2602
2602
|
name: t,
|
|
2603
2603
|
filterKey: r = "filter",
|
|
2604
2604
|
searchParams: n
|
|
2605
2605
|
}) => {
|
|
2606
2606
|
const o = n.get(r || "filter") || void 0, i = o && typeof o == "string" ? JSON.parse(o) : void 0, l = i ? i[t] : void 0;
|
|
2607
2607
|
return l ? JSON.parse(l) : void 0;
|
|
2608
|
-
},
|
|
2608
|
+
}, ps = (t, {
|
|
2609
2609
|
filterKey: r = "filter",
|
|
2610
2610
|
perPageKey: n = "perPage",
|
|
2611
2611
|
pageKey: o = "page"
|
|
2612
2612
|
}) => {
|
|
2613
2613
|
const i = t.get(r) || void 0, l = t.get(n) || void 0, c = t.get(o) || void 0;
|
|
2614
2614
|
return !!i || !!l || !!c;
|
|
2615
|
-
},
|
|
2615
|
+
}, Ho = ({
|
|
2616
2616
|
isOpen: t,
|
|
2617
2617
|
onClose: r,
|
|
2618
2618
|
filterKey: n,
|
|
@@ -2643,7 +2643,7 @@ const lo = (t, r) => {
|
|
|
2643
2643
|
return null;
|
|
2644
2644
|
}
|
|
2645
2645
|
};
|
|
2646
|
-
return /* @__PURE__ */ e(
|
|
2646
|
+
return /* @__PURE__ */ e(go, { onHide: r, show: t || !1, children: /* @__PURE__ */ u(m, { direction: "column", gap: "md", children: [
|
|
2647
2647
|
/* @__PURE__ */ u(me, { direction: "row", justify: "space-between", align: "center", children: [
|
|
2648
2648
|
/* @__PURE__ */ e(m, { direction: "column", children: "Filter" }),
|
|
2649
2649
|
/* @__PURE__ */ e(
|
|
@@ -2658,7 +2658,7 @@ const lo = (t, r) => {
|
|
|
2658
2658
|
] }),
|
|
2659
2659
|
i == null ? void 0 : i.map((g, b) => p(g, b))
|
|
2660
2660
|
] }) });
|
|
2661
|
-
},
|
|
2661
|
+
}, To = ({
|
|
2662
2662
|
searchKey: t = "q",
|
|
2663
2663
|
statusKey: r = "status",
|
|
2664
2664
|
searchPlaceholder: n = "Search",
|
|
@@ -2678,7 +2678,7 @@ const lo = (t, r) => {
|
|
|
2678
2678
|
}) => {
|
|
2679
2679
|
const E = (g == null ? void 0 : g.isShowLabel) ?? !0, [z, D] = O(!1), [C, I] = O(0), A = () => {
|
|
2680
2680
|
I((V) => V + 1);
|
|
2681
|
-
}, { searchParams: w, setSearchParams: R, getQueryParam: B } = Ge(), J = er(w.toString()), X =
|
|
2681
|
+
}, { searchParams: w, setSearchParams: R, getQueryParam: B } = Ge(), J = er(w.toString()), X = Pr(t, w, s) || "", [$, j] = O(X), K = B(s), _ = !!(K && !(() => {
|
|
2682
2682
|
if (K)
|
|
2683
2683
|
try {
|
|
2684
2684
|
const V = JSON.parse(K);
|
|
@@ -2859,7 +2859,7 @@ const lo = (t, r) => {
|
|
|
2859
2859
|
}
|
|
2860
2860
|
),
|
|
2861
2861
|
/* @__PURE__ */ e(
|
|
2862
|
-
|
|
2862
|
+
Ho,
|
|
2863
2863
|
{
|
|
2864
2864
|
isOpen: z,
|
|
2865
2865
|
onClose: () => D(!1),
|
|
@@ -2871,8 +2871,8 @@ const lo = (t, r) => {
|
|
|
2871
2871
|
]
|
|
2872
2872
|
}
|
|
2873
2873
|
);
|
|
2874
|
-
},
|
|
2875
|
-
function
|
|
2874
|
+
}, Vo = (t) => t === "checkbox-multiple" ? "dropdown-multiple" : t === "radio" ? "dropdown" : t === "date-compact" ? "date" : t;
|
|
2875
|
+
function Zr({
|
|
2876
2876
|
configs: t,
|
|
2877
2877
|
filterKey: r = "filter",
|
|
2878
2878
|
activeFilterKey: n = "filters",
|
|
@@ -2943,14 +2943,14 @@ function Pr({
|
|
|
2943
2943
|
case "dropdown-multiple":
|
|
2944
2944
|
case "checkbox-multiple":
|
|
2945
2945
|
case "radio":
|
|
2946
|
-
return
|
|
2946
|
+
return Io({
|
|
2947
2947
|
name: C.key,
|
|
2948
2948
|
get: "array",
|
|
2949
2949
|
searchParams: l,
|
|
2950
2950
|
filterKey: r
|
|
2951
2951
|
}) || [];
|
|
2952
2952
|
case "date": {
|
|
2953
|
-
const I =
|
|
2953
|
+
const I = Oo({
|
|
2954
2954
|
name: C.key,
|
|
2955
2955
|
searchParams: l,
|
|
2956
2956
|
filterKey: r
|
|
@@ -2976,7 +2976,7 @@ function Pr({
|
|
|
2976
2976
|
Yt({
|
|
2977
2977
|
value: I,
|
|
2978
2978
|
name: C.key,
|
|
2979
|
-
type:
|
|
2979
|
+
type: Vo(C.type),
|
|
2980
2980
|
searchQueries: s,
|
|
2981
2981
|
setSearchParams: c,
|
|
2982
2982
|
filterKey: r,
|
|
@@ -3007,7 +3007,7 @@ function Pr({
|
|
|
3007
3007
|
clearAll: z
|
|
3008
3008
|
};
|
|
3009
3009
|
}
|
|
3010
|
-
const
|
|
3010
|
+
const ti = {
|
|
3011
3011
|
get(t) {
|
|
3012
3012
|
return pr.get(t) ?? null;
|
|
3013
3013
|
},
|
|
@@ -3029,7 +3029,7 @@ const ei = {
|
|
|
3029
3029
|
const i = t.hidden.filter((l) => n.has(l));
|
|
3030
3030
|
return { order: o, hidden: i };
|
|
3031
3031
|
};
|
|
3032
|
-
function
|
|
3032
|
+
function No({
|
|
3033
3033
|
columns: t,
|
|
3034
3034
|
scopeId: r,
|
|
3035
3035
|
storage: n,
|
|
@@ -3106,7 +3106,7 @@ function To({
|
|
|
3106
3106
|
applyState: I
|
|
3107
3107
|
};
|
|
3108
3108
|
}
|
|
3109
|
-
function
|
|
3109
|
+
function $o({
|
|
3110
3110
|
scopeId: t,
|
|
3111
3111
|
storage: r,
|
|
3112
3112
|
snapshotKeys: n,
|
|
@@ -3159,7 +3159,7 @@ function Vo({
|
|
|
3159
3159
|
applyView: F
|
|
3160
3160
|
};
|
|
3161
3161
|
}
|
|
3162
|
-
function
|
|
3162
|
+
function _o(t, r) {
|
|
3163
3163
|
let n;
|
|
3164
3164
|
try {
|
|
3165
3165
|
n = JSON.parse(t);
|
|
@@ -3168,13 +3168,13 @@ function No(t, r) {
|
|
|
3168
3168
|
}
|
|
3169
3169
|
return !n || typeof n != "object" ? t : (delete n[r], Object.keys(n).length > 0 ? JSON.stringify(n) : void 0);
|
|
3170
3170
|
}
|
|
3171
|
-
function
|
|
3171
|
+
function wn(t, r, n) {
|
|
3172
3172
|
const o = t[r];
|
|
3173
3173
|
if (o == null) return;
|
|
3174
|
-
const i =
|
|
3174
|
+
const i = _o(o, n);
|
|
3175
3175
|
i === void 0 ? delete t[r] : t[r] = i;
|
|
3176
3176
|
}
|
|
3177
|
-
function
|
|
3177
|
+
function jo({
|
|
3178
3178
|
scopeId: t,
|
|
3179
3179
|
storage: r,
|
|
3180
3180
|
snapshotKeys: n,
|
|
@@ -3197,7 +3197,7 @@ function $o({
|
|
|
3197
3197
|
if (n.forEach((F) => {
|
|
3198
3198
|
const v = s.get(F);
|
|
3199
3199
|
v != null && (b[F] = v);
|
|
3200
|
-
}), c ||
|
|
3200
|
+
}), c || wn(b, i, l), Object.keys(b).length === 0) {
|
|
3201
3201
|
f.current && r.remove(a);
|
|
3202
3202
|
return;
|
|
3203
3203
|
}
|
|
@@ -3214,7 +3214,7 @@ function $o({
|
|
|
3214
3214
|
const p = Z(() => {
|
|
3215
3215
|
if (!a) return null;
|
|
3216
3216
|
const b = r.get(a);
|
|
3217
|
-
return !b || Object.keys(b).length === 0 || !c && (
|
|
3217
|
+
return !b || Object.keys(b).length === 0 || !c && (wn(b, i, l), Object.keys(b).length === 0) ? null : b;
|
|
3218
3218
|
}, [a, r, c, i, l]), g = Z(() => {
|
|
3219
3219
|
a && r.remove(a);
|
|
3220
3220
|
}, [a, r]);
|
|
@@ -3224,7 +3224,7 @@ function $o({
|
|
|
3224
3224
|
clear: g
|
|
3225
3225
|
};
|
|
3226
3226
|
}
|
|
3227
|
-
function
|
|
3227
|
+
function Po({
|
|
3228
3228
|
scopeId: t,
|
|
3229
3229
|
storage: r,
|
|
3230
3230
|
perPageKey: n,
|
|
@@ -3262,7 +3262,7 @@ function _o({
|
|
|
3262
3262
|
};
|
|
3263
3263
|
}
|
|
3264
3264
|
let vr = {}, Cr = !1, wr = null;
|
|
3265
|
-
const
|
|
3265
|
+
const Zo = (t, r) => {
|
|
3266
3266
|
Object.assign(vr, t), wr = r, !Cr && (Cr = !0, queueMicrotask(() => {
|
|
3267
3267
|
const n = vr, o = wr;
|
|
3268
3268
|
vr = {}, Cr = !1, wr = null, !(!o || Object.keys(n).length === 0) && o((i) => {
|
|
@@ -3271,7 +3271,7 @@ const jo = (t, r) => {
|
|
|
3271
3271
|
});
|
|
3272
3272
|
}));
|
|
3273
3273
|
};
|
|
3274
|
-
function
|
|
3274
|
+
function Go({
|
|
3275
3275
|
enabled: t,
|
|
3276
3276
|
snapshotKeys: r,
|
|
3277
3277
|
perPageKey: n,
|
|
@@ -3291,17 +3291,17 @@ function Po({
|
|
|
3291
3291
|
const f = o();
|
|
3292
3292
|
f && Object.assign(d, f);
|
|
3293
3293
|
}
|
|
3294
|
-
Object.keys(d).length !== 0 &&
|
|
3294
|
+
Object.keys(d).length !== 0 && Zo(d, c);
|
|
3295
3295
|
}, [s.pathname, t]);
|
|
3296
3296
|
}
|
|
3297
|
-
const
|
|
3297
|
+
const qo = ({
|
|
3298
3298
|
configs: t,
|
|
3299
3299
|
activeKeys: r,
|
|
3300
3300
|
onToggle: n,
|
|
3301
3301
|
hasActiveFilter: o,
|
|
3302
3302
|
onReset: i
|
|
3303
3303
|
}) => t.length ? /* @__PURE__ */ u(Ne, { position: "bottom-left", children: [
|
|
3304
|
-
/* @__PURE__ */ e(
|
|
3304
|
+
/* @__PURE__ */ e(Ie, { children: /* @__PURE__ */ e(
|
|
3305
3305
|
N,
|
|
3306
3306
|
{
|
|
3307
3307
|
variant: o ? "secondary" : "outline",
|
|
@@ -3358,7 +3358,7 @@ const Zo = ({
|
|
|
3358
3358
|
onClear: t,
|
|
3359
3359
|
onRemove: r
|
|
3360
3360
|
}) => /* @__PURE__ */ u(Ne, { position: "bottom-right", children: [
|
|
3361
|
-
/* @__PURE__ */ e(
|
|
3361
|
+
/* @__PURE__ */ e(Ie, { children: /* @__PURE__ */ e(
|
|
3362
3362
|
N,
|
|
3363
3363
|
{
|
|
3364
3364
|
variant: "link",
|
|
@@ -3387,21 +3387,21 @@ const Zo = ({
|
|
|
3387
3387
|
}
|
|
3388
3388
|
)
|
|
3389
3389
|
] }) })
|
|
3390
|
-
] }),
|
|
3390
|
+
] }), Uo = (t) => {
|
|
3391
3391
|
const r = new Date(t);
|
|
3392
3392
|
return r.setHours(0, 0, 0, 0), r;
|
|
3393
|
-
},
|
|
3393
|
+
}, Dn = (t, r, n) => {
|
|
3394
3394
|
const o = new Date(t);
|
|
3395
3395
|
return n === "day" ? o.setDate(o.getDate() + r) : n === "week" ? o.setDate(o.getDate() + r * 7) : n === "month" ? o.setMonth(o.getMonth() + r) : o.setFullYear(o.getFullYear() + r), o;
|
|
3396
|
-
},
|
|
3397
|
-
const r =
|
|
3396
|
+
}, ri = (t) => {
|
|
3397
|
+
const r = Uo(/* @__PURE__ */ new Date());
|
|
3398
3398
|
if (t.direction === "this") {
|
|
3399
3399
|
const o = new Date(r), i = new Date(r);
|
|
3400
3400
|
return t.period === "week" ? (o.setDate(r.getDate() - r.getDay()), i.setDate(o.getDate() + 6)) : t.period === "month" ? (o.setDate(1), i.setMonth(i.getMonth() + 1, 0)) : t.period === "year" && (o.setMonth(0, 1), i.setMonth(11, 31)), { from: o, to: i };
|
|
3401
3401
|
}
|
|
3402
3402
|
const n = t.count ?? 1;
|
|
3403
|
-
return t.direction === "past" ? { from:
|
|
3404
|
-
},
|
|
3403
|
+
return t.direction === "past" ? { from: Dn(r, -n, t.period), to: r } : { from: r, to: Dn(r, n, t.period) };
|
|
3404
|
+
}, kn = 24, ni = (t) => t.length > kn ? `${t.slice(0, kn)}...` : t, Ut = (t) => t.toLocaleDateString(void 0, {
|
|
3405
3405
|
day: "2-digit",
|
|
3406
3406
|
month: "short",
|
|
3407
3407
|
year: "numeric"
|
|
@@ -3415,7 +3415,7 @@ const Zo = ({
|
|
|
3415
3415
|
"is-relative-to-today": "Is relative to today",
|
|
3416
3416
|
"is-empty": "Is empty",
|
|
3417
3417
|
"is-not-empty": "Is not empty"
|
|
3418
|
-
},
|
|
3418
|
+
}, Jo = [
|
|
3419
3419
|
"is",
|
|
3420
3420
|
"is-before",
|
|
3421
3421
|
"is-after",
|
|
@@ -3429,8 +3429,8 @@ const Zo = ({
|
|
|
3429
3429
|
past: "Past",
|
|
3430
3430
|
next: "Next",
|
|
3431
3431
|
this: "This"
|
|
3432
|
-
},
|
|
3433
|
-
|
|
3432
|
+
}, Qo = ["day", "week", "month", "year"], Yo = ["past", "next", "this"], Xo = (t) => t.field.type === "date-compact" ? /* @__PURE__ */ e(
|
|
3433
|
+
tl,
|
|
3434
3434
|
{
|
|
3435
3435
|
field: t.field,
|
|
3436
3436
|
value: t.value,
|
|
@@ -3439,7 +3439,7 @@ const Zo = ({
|
|
|
3439
3439
|
onRemove: t.onRemove
|
|
3440
3440
|
}
|
|
3441
3441
|
) : /* @__PURE__ */ e(
|
|
3442
|
-
|
|
3442
|
+
Ko,
|
|
3443
3443
|
{
|
|
3444
3444
|
field: t.field,
|
|
3445
3445
|
value: t.value,
|
|
@@ -3447,23 +3447,23 @@ const Zo = ({
|
|
|
3447
3447
|
onClear: t.onClear,
|
|
3448
3448
|
onRemove: t.onRemove
|
|
3449
3449
|
}
|
|
3450
|
-
),
|
|
3450
|
+
), Ko = ({
|
|
3451
3451
|
field: t,
|
|
3452
3452
|
value: r,
|
|
3453
3453
|
onChange: n,
|
|
3454
3454
|
onClear: o,
|
|
3455
3455
|
onRemove: i
|
|
3456
3456
|
}) => {
|
|
3457
|
-
const l = r ? Ut(new Date(r)) : null, c = !!l, s = c ? /* @__PURE__ */ u(
|
|
3457
|
+
const l = r ? Ut(new Date(r)) : null, c = !!l, s = c ? /* @__PURE__ */ u(ne, { children: [
|
|
3458
3458
|
/* @__PURE__ */ u("span", { style: { fontWeight: 500 }, children: [
|
|
3459
3459
|
t.label,
|
|
3460
3460
|
":"
|
|
3461
3461
|
] }),
|
|
3462
3462
|
" ",
|
|
3463
|
-
/* @__PURE__ */ e("span", { style: { fontWeight: 400 }, children:
|
|
3463
|
+
/* @__PURE__ */ e("span", { style: { fontWeight: 400 }, children: ni(l) })
|
|
3464
3464
|
] }) : t.label;
|
|
3465
3465
|
return /* @__PURE__ */ u(Ne, { position: "bottom-left", children: [
|
|
3466
|
-
/* @__PURE__ */ e(
|
|
3466
|
+
/* @__PURE__ */ e(Ie, { children: /* @__PURE__ */ e(
|
|
3467
3467
|
N,
|
|
3468
3468
|
{
|
|
3469
3469
|
variant: c ? "secondary" : "outline",
|
|
@@ -3507,7 +3507,7 @@ const Zo = ({
|
|
|
3507
3507
|
}
|
|
3508
3508
|
) })
|
|
3509
3509
|
] });
|
|
3510
|
-
},
|
|
3510
|
+
}, el = (t) => {
|
|
3511
3511
|
switch (t.op) {
|
|
3512
3512
|
case "is":
|
|
3513
3513
|
case "is-before":
|
|
@@ -3530,20 +3530,20 @@ const Zo = ({
|
|
|
3530
3530
|
default:
|
|
3531
3531
|
return null;
|
|
3532
3532
|
}
|
|
3533
|
-
},
|
|
3533
|
+
}, tl = ({
|
|
3534
3534
|
field: t,
|
|
3535
3535
|
value: r,
|
|
3536
3536
|
onChange: n,
|
|
3537
3537
|
onClear: o,
|
|
3538
3538
|
onRemove: i
|
|
3539
3539
|
}) => {
|
|
3540
|
-
const l = t.ops && t.ops.length > 0 ? t.ops :
|
|
3540
|
+
const l = t.ops && t.ops.length > 0 ? t.ops : Jo, c = t.defaultOp && l.includes(t.defaultOp) ? t.defaultOp : l[0], s = (r == null ? void 0 : r.op) ?? c, a = r ? el(r) : null, d = !!a, f = d ? /* @__PURE__ */ u(ne, { children: [
|
|
3541
3541
|
/* @__PURE__ */ u("span", { style: { fontWeight: 500 }, children: [
|
|
3542
3542
|
t.label,
|
|
3543
3543
|
":"
|
|
3544
3544
|
] }),
|
|
3545
3545
|
" ",
|
|
3546
|
-
/* @__PURE__ */ e("span", { style: { fontWeight: 400 }, children:
|
|
3546
|
+
/* @__PURE__ */ e("span", { style: { fontWeight: 400 }, children: ni(a) })
|
|
3547
3547
|
] }) : t.label, p = (g) => {
|
|
3548
3548
|
if (g !== s) {
|
|
3549
3549
|
if (g === "is-empty" || g === "is-not-empty") {
|
|
@@ -3569,7 +3569,7 @@ const Zo = ({
|
|
|
3569
3569
|
}
|
|
3570
3570
|
};
|
|
3571
3571
|
return /* @__PURE__ */ u(Ne, { position: "bottom-left", children: [
|
|
3572
|
-
/* @__PURE__ */ e(
|
|
3572
|
+
/* @__PURE__ */ e(Ie, { children: /* @__PURE__ */ e(
|
|
3573
3573
|
N,
|
|
3574
3574
|
{
|
|
3575
3575
|
variant: d ? "secondary" : "outline",
|
|
@@ -3605,7 +3605,7 @@ const Zo = ({
|
|
|
3605
3605
|
style: { minWidth: 0 },
|
|
3606
3606
|
children: [
|
|
3607
3607
|
/* @__PURE__ */ e(S, { fontSize: "sm", fontWeight: "medium", color: "subtlest", children: t.label }),
|
|
3608
|
-
/* @__PURE__ */ e(
|
|
3608
|
+
/* @__PURE__ */ e(rl, { op: s, ops: l, onChange: p })
|
|
3609
3609
|
]
|
|
3610
3610
|
}
|
|
3611
3611
|
),
|
|
@@ -3613,14 +3613,14 @@ const Zo = ({
|
|
|
3613
3613
|
]
|
|
3614
3614
|
}
|
|
3615
3615
|
),
|
|
3616
|
-
children: /* @__PURE__ */ e(
|
|
3616
|
+
children: /* @__PURE__ */ e(nl, { value: r, op: s, onChange: n })
|
|
3617
3617
|
}
|
|
3618
3618
|
),
|
|
3619
|
-
s === "is-relative-to-today" && /* @__PURE__ */ e(
|
|
3619
|
+
s === "is-relative-to-today" && /* @__PURE__ */ e(Hr, { children: /* @__PURE__ */ e(S, { fontSize: "xs", color: "subtlest", children: "Filter will update with the current date" }) })
|
|
3620
3620
|
] })
|
|
3621
3621
|
] });
|
|
3622
|
-
},
|
|
3623
|
-
/* @__PURE__ */ e(
|
|
3622
|
+
}, rl = ({ op: t, ops: r, onChange: n }) => /* @__PURE__ */ u(Ne, { position: "bottom-left", children: [
|
|
3623
|
+
/* @__PURE__ */ e(Ie, { children: /* @__PURE__ */ e(
|
|
3624
3624
|
N,
|
|
3625
3625
|
{
|
|
3626
3626
|
variant: "link",
|
|
@@ -3640,7 +3640,7 @@ const Zo = ({
|
|
|
3640
3640
|
},
|
|
3641
3641
|
o
|
|
3642
3642
|
)) }) })
|
|
3643
|
-
] }),
|
|
3643
|
+
] }), nl = ({ value: t, op: r, onChange: n }) => {
|
|
3644
3644
|
if (r === "is-empty" || r === "is-not-empty")
|
|
3645
3645
|
return /* @__PURE__ */ e(m, { paddingBlock: "sm", paddingInline: "sm", children: /* @__PURE__ */ e(S, { fontSize: "xs", color: "subtlest", children: "No further input required." }) });
|
|
3646
3646
|
if (r === "is-between") {
|
|
@@ -3685,7 +3685,7 @@ const Zo = ({
|
|
|
3685
3685
|
);
|
|
3686
3686
|
}
|
|
3687
3687
|
return r === "is-relative-to-today" ? /* @__PURE__ */ e(
|
|
3688
|
-
|
|
3688
|
+
il,
|
|
3689
3689
|
{
|
|
3690
3690
|
value: t == null ? void 0 : t.relative,
|
|
3691
3691
|
onChange: (o) => n({ op: r, relative: o })
|
|
@@ -3708,12 +3708,12 @@ const Zo = ({
|
|
|
3708
3708
|
},
|
|
3709
3709
|
"single"
|
|
3710
3710
|
);
|
|
3711
|
-
},
|
|
3712
|
-
const n = (t == null ? void 0 : t.direction) ?? "past", o = (t == null ? void 0 : t.count) ?? 1, i = (t == null ? void 0 : t.period) ?? "week", l = n !== "this", c =
|
|
3711
|
+
}, il = ({ value: t, onChange: r }) => {
|
|
3712
|
+
const n = (t == null ? void 0 : t.direction) ?? "past", o = (t == null ? void 0 : t.count) ?? 1, i = (t == null ? void 0 : t.period) ?? "week", l = n !== "this", c = ri({ direction: n, count: o, period: i });
|
|
3713
3713
|
return /* @__PURE__ */ u(m, { direction: "column", display: "flex", gap: "sm", children: [
|
|
3714
3714
|
/* @__PURE__ */ u(m, { direction: "row", display: "flex", align: "center", gap: "xs", children: [
|
|
3715
3715
|
/* @__PURE__ */ u(Ne, { position: "bottom-left", children: [
|
|
3716
|
-
/* @__PURE__ */ e(
|
|
3716
|
+
/* @__PURE__ */ e(Ie, { children: /* @__PURE__ */ e(
|
|
3717
3717
|
N,
|
|
3718
3718
|
{
|
|
3719
3719
|
variant: "outline",
|
|
@@ -3723,7 +3723,7 @@ const Zo = ({
|
|
|
3723
3723
|
children: Ar[n]
|
|
3724
3724
|
}
|
|
3725
3725
|
) }),
|
|
3726
|
-
/* @__PURE__ */ e($e, { children: /* @__PURE__ */ e(_e, { style: { width: 140 }, children:
|
|
3726
|
+
/* @__PURE__ */ e($e, { children: /* @__PURE__ */ e(_e, { style: { width: 140 }, children: Yo.map((s) => /* @__PURE__ */ e(
|
|
3727
3727
|
Ye,
|
|
3728
3728
|
{
|
|
3729
3729
|
selected: n === s,
|
|
@@ -3756,7 +3756,7 @@ const Zo = ({
|
|
|
3756
3756
|
}
|
|
3757
3757
|
),
|
|
3758
3758
|
/* @__PURE__ */ u(Ne, { position: "bottom-left", children: [
|
|
3759
|
-
/* @__PURE__ */ e(
|
|
3759
|
+
/* @__PURE__ */ e(Ie, { children: /* @__PURE__ */ e(
|
|
3760
3760
|
N,
|
|
3761
3761
|
{
|
|
3762
3762
|
variant: "outline",
|
|
@@ -3766,7 +3766,7 @@ const Zo = ({
|
|
|
3766
3766
|
children: i
|
|
3767
3767
|
}
|
|
3768
3768
|
) }),
|
|
3769
|
-
/* @__PURE__ */ e($e, { children: /* @__PURE__ */ e(_e, { style: { width: 140 }, children:
|
|
3769
|
+
/* @__PURE__ */ e($e, { children: /* @__PURE__ */ e(_e, { style: { width: 140 }, children: Qo.map((s) => /* @__PURE__ */ e(
|
|
3770
3770
|
Ye,
|
|
3771
3771
|
{
|
|
3772
3772
|
selected: i === s,
|
|
@@ -3795,7 +3795,7 @@ const Zo = ({
|
|
|
3795
3795
|
"relative-preview"
|
|
3796
3796
|
)
|
|
3797
3797
|
] });
|
|
3798
|
-
},
|
|
3798
|
+
}, Sn = 18, ol = (t) => t.length > Sn ? `${t.slice(0, Sn)}...` : t, ll = ({
|
|
3799
3799
|
field: t,
|
|
3800
3800
|
value: r,
|
|
3801
3801
|
onChange: n,
|
|
@@ -3817,16 +3817,16 @@ const Zo = ({
|
|
|
3817
3817
|
}, v = (E) => {
|
|
3818
3818
|
var z;
|
|
3819
3819
|
d(E), (z = t.onSearch) == null || z.call(t, E);
|
|
3820
|
-
}, M = c === 0 ? t.label : /* @__PURE__ */ u(
|
|
3820
|
+
}, M = c === 0 ? t.label : /* @__PURE__ */ u(ne, { children: [
|
|
3821
3821
|
/* @__PURE__ */ u("span", { style: { fontWeight: 500 }, children: [
|
|
3822
3822
|
t.label,
|
|
3823
3823
|
":"
|
|
3824
3824
|
] }),
|
|
3825
3825
|
" ",
|
|
3826
|
-
/* @__PURE__ */ e("span", { style: { fontWeight: 400 }, children: c === 1 ?
|
|
3826
|
+
/* @__PURE__ */ e("span", { style: { fontWeight: 400 }, children: c === 1 ? ol(r[0].label) : `${c} Selected` })
|
|
3827
3827
|
] });
|
|
3828
3828
|
return /* @__PURE__ */ u(Ne, { position: "bottom-left", children: [
|
|
3829
|
-
/* @__PURE__ */ e(
|
|
3829
|
+
/* @__PURE__ */ e(Ie, { children: /* @__PURE__ */ e(
|
|
3830
3830
|
N,
|
|
3831
3831
|
{
|
|
3832
3832
|
variant: c > 0 ? "secondary" : "outline",
|
|
@@ -3898,7 +3898,7 @@ const Zo = ({
|
|
|
3898
3898
|
}
|
|
3899
3899
|
) })
|
|
3900
3900
|
] });
|
|
3901
|
-
},
|
|
3901
|
+
}, Fn = 18, cl = (t) => t.length > Fn ? `${t.slice(0, Fn)}...` : t, En = ({ checked: t, indeterminate: r }) => /* @__PURE__ */ e("span", { style: { pointerEvents: "none", display: "inline-flex" }, children: /* @__PURE__ */ e(
|
|
3902
3902
|
vt,
|
|
3903
3903
|
{
|
|
3904
3904
|
size: "sm",
|
|
@@ -3908,7 +3908,7 @@ const Zo = ({
|
|
|
3908
3908
|
},
|
|
3909
3909
|
variant: r ? "indeterminate" : "select"
|
|
3910
3910
|
}
|
|
3911
|
-
) }),
|
|
3911
|
+
) }), sl = ({
|
|
3912
3912
|
field: t,
|
|
3913
3913
|
value: r,
|
|
3914
3914
|
onChange: n,
|
|
@@ -3923,16 +3923,16 @@ const Zo = ({
|
|
|
3923
3923
|
n(
|
|
3924
3924
|
s ? [] : t.options.map((g) => ({ label: g.label, value: g.value }))
|
|
3925
3925
|
);
|
|
3926
|
-
}, p = c === 0 ? t.label : /* @__PURE__ */ u(
|
|
3926
|
+
}, p = c === 0 ? t.label : /* @__PURE__ */ u(ne, { children: [
|
|
3927
3927
|
/* @__PURE__ */ u(S, { as: "span", fontWeight: "semibold", children: [
|
|
3928
3928
|
t.label,
|
|
3929
3929
|
":"
|
|
3930
3930
|
] }),
|
|
3931
3931
|
" ",
|
|
3932
|
-
/* @__PURE__ */ e(S, { as: "span", children: c === 1 ?
|
|
3932
|
+
/* @__PURE__ */ e(S, { as: "span", children: c === 1 ? cl(r[0].label) : `${c} Selected` })
|
|
3933
3933
|
] });
|
|
3934
3934
|
return /* @__PURE__ */ u(Ne, { position: "bottom-left", children: [
|
|
3935
|
-
/* @__PURE__ */ e(
|
|
3935
|
+
/* @__PURE__ */ e(Ie, { children: /* @__PURE__ */ e(
|
|
3936
3936
|
N,
|
|
3937
3937
|
{
|
|
3938
3938
|
variant: c > 0 ? "secondary" : "outline",
|
|
@@ -3969,7 +3969,7 @@ const Zo = ({
|
|
|
3969
3969
|
selected: s,
|
|
3970
3970
|
onClick: f,
|
|
3971
3971
|
startIcon: /* @__PURE__ */ e(
|
|
3972
|
-
|
|
3972
|
+
En,
|
|
3973
3973
|
{
|
|
3974
3974
|
checked: s || a,
|
|
3975
3975
|
indeterminate: a
|
|
@@ -3984,7 +3984,7 @@ const Zo = ({
|
|
|
3984
3984
|
closeOnSelect: !1,
|
|
3985
3985
|
selected: l.has(g.value),
|
|
3986
3986
|
onClick: () => d(g),
|
|
3987
|
-
startIcon: /* @__PURE__ */ e(
|
|
3987
|
+
startIcon: /* @__PURE__ */ e(En, { checked: l.has(g.value) }),
|
|
3988
3988
|
children: g.label
|
|
3989
3989
|
},
|
|
3990
3990
|
g.value
|
|
@@ -3993,19 +3993,19 @@ const Zo = ({
|
|
|
3993
3993
|
}
|
|
3994
3994
|
) })
|
|
3995
3995
|
] });
|
|
3996
|
-
},
|
|
3996
|
+
}, ii = ({
|
|
3997
3997
|
activeKeys: t,
|
|
3998
3998
|
configByKey: r,
|
|
3999
3999
|
getValue: n,
|
|
4000
4000
|
setValue: o,
|
|
4001
4001
|
clearValue: i,
|
|
4002
4002
|
removeFilter: l
|
|
4003
|
-
}) => /* @__PURE__ */ e(
|
|
4003
|
+
}) => /* @__PURE__ */ e(ne, { children: t.map((c) => {
|
|
4004
4004
|
const s = r[c];
|
|
4005
4005
|
if (!s) return null;
|
|
4006
4006
|
const a = n(s), d = s.locked ? void 0 : () => l(c);
|
|
4007
4007
|
return s.type === "date" || s.type === "date-compact" ? /* @__PURE__ */ e(
|
|
4008
|
-
|
|
4008
|
+
Xo,
|
|
4009
4009
|
{
|
|
4010
4010
|
field: s,
|
|
4011
4011
|
value: a,
|
|
@@ -4015,7 +4015,7 @@ const Zo = ({
|
|
|
4015
4015
|
},
|
|
4016
4016
|
c
|
|
4017
4017
|
) : s.type === "checkbox-multiple" ? /* @__PURE__ */ e(
|
|
4018
|
-
|
|
4018
|
+
sl,
|
|
4019
4019
|
{
|
|
4020
4020
|
field: s,
|
|
4021
4021
|
value: a || [],
|
|
@@ -4025,7 +4025,7 @@ const Zo = ({
|
|
|
4025
4025
|
},
|
|
4026
4026
|
c
|
|
4027
4027
|
) : /* @__PURE__ */ e(
|
|
4028
|
-
|
|
4028
|
+
ll,
|
|
4029
4029
|
{
|
|
4030
4030
|
field: s,
|
|
4031
4031
|
value: a || [],
|
|
@@ -4035,7 +4035,7 @@ const Zo = ({
|
|
|
4035
4035
|
},
|
|
4036
4036
|
c
|
|
4037
4037
|
);
|
|
4038
|
-
}) }),
|
|
4038
|
+
}) }), Ln = (t) => `${t} Rows`, al = ({
|
|
4039
4039
|
pagination: t,
|
|
4040
4040
|
pageKey: r = "page",
|
|
4041
4041
|
perPageKey: n = "perPage",
|
|
@@ -4056,10 +4056,10 @@ const Zo = ({
|
|
|
4056
4056
|
// reset to first page when page size changes
|
|
4057
4057
|
});
|
|
4058
4058
|
}, v = (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 : 0), M = (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));
|
|
4059
|
-
return /* @__PURE__ */ u(
|
|
4059
|
+
return /* @__PURE__ */ u(ne, { children: [
|
|
4060
4060
|
l && /* @__PURE__ */ e(S, { fontSize: "sm", fontWeight: "medium", color: "primary", truncate: !0, children: `${v}-${M} of ${((E = t == null ? void 0 : t.totalData) == null ? void 0 : E.toLocaleString()) || 0}` }),
|
|
4061
4061
|
c && /* @__PURE__ */ u(Ne, { position: "bottom-left", children: [
|
|
4062
|
-
/* @__PURE__ */ e(
|
|
4062
|
+
/* @__PURE__ */ e(Ie, { children: /* @__PURE__ */ e(
|
|
4063
4063
|
N,
|
|
4064
4064
|
{
|
|
4065
4065
|
variant: "outline",
|
|
@@ -4067,7 +4067,7 @@ const Zo = ({
|
|
|
4067
4067
|
size: "sm",
|
|
4068
4068
|
iconRight: /* @__PURE__ */ e(W, { name: "ChevronSmallDown" }),
|
|
4069
4069
|
"aria-label": "Rows per page",
|
|
4070
|
-
children:
|
|
4070
|
+
children: Ln(g)
|
|
4071
4071
|
}
|
|
4072
4072
|
) }),
|
|
4073
4073
|
/* @__PURE__ */ e($e, { children: /* @__PURE__ */ e(_e, { children: o.map((z) => /* @__PURE__ */ e(
|
|
@@ -4075,7 +4075,7 @@ const Zo = ({
|
|
|
4075
4075
|
{
|
|
4076
4076
|
selected: z === g,
|
|
4077
4077
|
onClick: () => F(String(z)),
|
|
4078
|
-
children:
|
|
4078
|
+
children: Ln(z)
|
|
4079
4079
|
},
|
|
4080
4080
|
z
|
|
4081
4081
|
)) }) })
|
|
@@ -4092,7 +4092,7 @@ const Zo = ({
|
|
|
4092
4092
|
borderRight: "1px solid var(--sa-border-subtle, rgba(11, 18, 14, 0.14))"
|
|
4093
4093
|
},
|
|
4094
4094
|
children: /* @__PURE__ */ e(
|
|
4095
|
-
|
|
4095
|
+
Tr,
|
|
4096
4096
|
{
|
|
4097
4097
|
size: "sm",
|
|
4098
4098
|
variant: "neutral",
|
|
@@ -4106,7 +4106,7 @@ const Zo = ({
|
|
|
4106
4106
|
)
|
|
4107
4107
|
] });
|
|
4108
4108
|
};
|
|
4109
|
-
function
|
|
4109
|
+
function dl(t, r, n = !0) {
|
|
4110
4110
|
Q(() => {
|
|
4111
4111
|
if (!n) return;
|
|
4112
4112
|
const o = (i) => {
|
|
@@ -4118,7 +4118,7 @@ function sl(t, r, n = !0) {
|
|
|
4118
4118
|
return window.addEventListener("keydown", o), () => window.removeEventListener("keydown", o);
|
|
4119
4119
|
}, [t, r, n]);
|
|
4120
4120
|
}
|
|
4121
|
-
const
|
|
4121
|
+
const ul = 240, oi = ({
|
|
4122
4122
|
searchKey: t = "q",
|
|
4123
4123
|
filterKey: r = "filter",
|
|
4124
4124
|
pageKey: n = "page",
|
|
@@ -4126,7 +4126,7 @@ const al = 240, ii = ({
|
|
|
4126
4126
|
shortcut: i = "/",
|
|
4127
4127
|
collapsible: l = !0
|
|
4128
4128
|
}) => {
|
|
4129
|
-
const { searchParams: c, setSearchParams: s, searchQueries: a } = Ge(), d =
|
|
4129
|
+
const { searchParams: c, setSearchParams: s, searchQueries: a } = Ge(), d = Pr(t, c, r) || "", [f, p] = O(!l || !!d), [g, b] = O(l && !d), [F, v] = O(d), M = zi(F, 350), E = ce(null);
|
|
4130
4130
|
Q(() => {
|
|
4131
4131
|
v(d), d && p(!0);
|
|
4132
4132
|
}, [d]), Q(() => {
|
|
@@ -4148,7 +4148,7 @@ const al = 240, ii = ({
|
|
|
4148
4148
|
return (A = E.current) == null ? void 0 : A.focus();
|
|
4149
4149
|
});
|
|
4150
4150
|
}, []);
|
|
4151
|
-
return
|
|
4151
|
+
return dl(i, z), // No internal gap: the trigger and the animated input are never visible at
|
|
4152
4152
|
// the same time, so spacing to neighbours is handled by the parent cluster.
|
|
4153
4153
|
/* @__PURE__ */ u(m, { display: "flex", direction: "row", align: "center", gap: "spacing-0", children: [
|
|
4154
4154
|
g && /* @__PURE__ */ e(
|
|
@@ -4171,7 +4171,7 @@ const al = 240, ii = ({
|
|
|
4171
4171
|
},
|
|
4172
4172
|
style: {
|
|
4173
4173
|
position: "relative",
|
|
4174
|
-
width: f ?
|
|
4174
|
+
width: f ? ul : 0,
|
|
4175
4175
|
overflow: "hidden",
|
|
4176
4176
|
transition: "width 220ms ease"
|
|
4177
4177
|
},
|
|
@@ -4224,7 +4224,7 @@ const al = 240, ii = ({
|
|
|
4224
4224
|
}
|
|
4225
4225
|
)
|
|
4226
4226
|
] });
|
|
4227
|
-
},
|
|
4227
|
+
}, li = ({
|
|
4228
4228
|
columns: t,
|
|
4229
4229
|
allVisible: r,
|
|
4230
4230
|
onToggle: n,
|
|
@@ -4238,7 +4238,7 @@ const al = 240, ii = ({
|
|
|
4238
4238
|
b < 0 || b >= t.length || o(p, b);
|
|
4239
4239
|
};
|
|
4240
4240
|
return /* @__PURE__ */ u(Ne, { position: "bottom-right", children: [
|
|
4241
|
-
/* @__PURE__ */ e(
|
|
4241
|
+
/* @__PURE__ */ e(Ie, { children: /* @__PURE__ */ e(
|
|
4242
4242
|
N,
|
|
4243
4243
|
{
|
|
4244
4244
|
variant: r ? "outline" : "secondary",
|
|
@@ -4356,7 +4356,7 @@ const al = 240, ii = ({
|
|
|
4356
4356
|
}
|
|
4357
4357
|
) }) })
|
|
4358
4358
|
] });
|
|
4359
|
-
},
|
|
4359
|
+
}, ci = ({
|
|
4360
4360
|
views: t,
|
|
4361
4361
|
onApply: r,
|
|
4362
4362
|
onDelete: n,
|
|
@@ -4367,7 +4367,7 @@ const al = 240, ii = ({
|
|
|
4367
4367
|
s && (o(s), l(""));
|
|
4368
4368
|
};
|
|
4369
4369
|
return /* @__PURE__ */ u(Ne, { position: "bottom-right", children: [
|
|
4370
|
-
/* @__PURE__ */ e(
|
|
4370
|
+
/* @__PURE__ */ e(Ie, { children: /* @__PURE__ */ e(
|
|
4371
4371
|
N,
|
|
4372
4372
|
{
|
|
4373
4373
|
variant: t.length > 0 ? "secondary" : "outline",
|
|
@@ -4417,7 +4417,7 @@ const al = 240, ii = ({
|
|
|
4417
4417
|
)
|
|
4418
4418
|
] }) }),
|
|
4419
4419
|
/* @__PURE__ */ e(
|
|
4420
|
-
|
|
4420
|
+
Hr,
|
|
4421
4421
|
{
|
|
4422
4422
|
children: /* @__PURE__ */ u(m, { direction: "row", gap: "xs", children: [
|
|
4423
4423
|
/* @__PURE__ */ e(m, { direction: "column", style: { flex: "1 0 0", minWidth: 0 }, children: /* @__PURE__ */ e(
|
|
@@ -4451,7 +4451,7 @@ const al = 240, ii = ({
|
|
|
4451
4451
|
}
|
|
4452
4452
|
)
|
|
4453
4453
|
] });
|
|
4454
|
-
},
|
|
4454
|
+
}, hl = ({
|
|
4455
4455
|
isOpen: t,
|
|
4456
4456
|
onClose: r,
|
|
4457
4457
|
configs: n,
|
|
@@ -4466,7 +4466,7 @@ const al = 240, ii = ({
|
|
|
4466
4466
|
removeFilter: p
|
|
4467
4467
|
}) => {
|
|
4468
4468
|
const g = o.length;
|
|
4469
|
-
return /* @__PURE__ */ e(
|
|
4469
|
+
return /* @__PURE__ */ e(_n, { position: "bottom", isShow: t, onHide: r, children: /* @__PURE__ */ u(
|
|
4470
4470
|
m,
|
|
4471
4471
|
{
|
|
4472
4472
|
direction: "column",
|
|
@@ -4528,7 +4528,7 @@ const al = 240, ii = ({
|
|
|
4528
4528
|
gap: "sm",
|
|
4529
4529
|
align: "center",
|
|
4530
4530
|
children: /* @__PURE__ */ e(
|
|
4531
|
-
|
|
4531
|
+
ii,
|
|
4532
4532
|
{
|
|
4533
4533
|
activeKeys: o,
|
|
4534
4534
|
configByKey: i,
|
|
@@ -4642,7 +4642,7 @@ const al = 240, ii = ({
|
|
|
4642
4642
|
]
|
|
4643
4643
|
}
|
|
4644
4644
|
) });
|
|
4645
|
-
},
|
|
4645
|
+
}, fl = (t) => `${t} Rows`, ml = ({
|
|
4646
4646
|
perPageKey: t,
|
|
4647
4647
|
pageKey: r,
|
|
4648
4648
|
pageSizeOptions: n,
|
|
@@ -4657,7 +4657,7 @@ const al = 240, ii = ({
|
|
|
4657
4657
|
});
|
|
4658
4658
|
};
|
|
4659
4659
|
return i ? /* @__PURE__ */ u(Ne, { position: "bottom-right", children: [
|
|
4660
|
-
/* @__PURE__ */ e(
|
|
4660
|
+
/* @__PURE__ */ e(Ie, { children: /* @__PURE__ */ e(
|
|
4661
4661
|
N,
|
|
4662
4662
|
{
|
|
4663
4663
|
variant: "outline",
|
|
@@ -4675,13 +4675,13 @@ const al = 240, ii = ({
|
|
|
4675
4675
|
selected: p === d,
|
|
4676
4676
|
endIcon: p === d ? /* @__PURE__ */ e(W, { name: "Check" }) : void 0,
|
|
4677
4677
|
onClick: () => f(String(p)),
|
|
4678
|
-
children:
|
|
4678
|
+
children: fl(p)
|
|
4679
4679
|
},
|
|
4680
4680
|
p
|
|
4681
4681
|
))
|
|
4682
4682
|
] }) })
|
|
4683
4683
|
] }) : null;
|
|
4684
|
-
},
|
|
4684
|
+
}, gl = (t) => {
|
|
4685
4685
|
var Xe;
|
|
4686
4686
|
const {
|
|
4687
4687
|
withPadding: r,
|
|
@@ -4751,7 +4751,7 @@ const al = 240, ii = ({
|
|
|
4751
4751
|
overflow: "overflow-auto",
|
|
4752
4752
|
children: [
|
|
4753
4753
|
g && /* @__PURE__ */ e(
|
|
4754
|
-
|
|
4754
|
+
oi,
|
|
4755
4755
|
{
|
|
4756
4756
|
searchKey: b,
|
|
4757
4757
|
filterKey: F,
|
|
@@ -4784,7 +4784,7 @@ const al = 240, ii = ({
|
|
|
4784
4784
|
children: [
|
|
4785
4785
|
He,
|
|
4786
4786
|
_ && /* @__PURE__ */ e(
|
|
4787
|
-
|
|
4787
|
+
ci,
|
|
4788
4788
|
{
|
|
4789
4789
|
views: T,
|
|
4790
4790
|
onApply: V,
|
|
@@ -4793,7 +4793,7 @@ const al = 240, ii = ({
|
|
|
4793
4793
|
}
|
|
4794
4794
|
),
|
|
4795
4795
|
J && /* @__PURE__ */ e(
|
|
4796
|
-
|
|
4796
|
+
li,
|
|
4797
4797
|
{
|
|
4798
4798
|
columns: X,
|
|
4799
4799
|
allVisible: $,
|
|
@@ -4803,7 +4803,7 @@ const al = 240, ii = ({
|
|
|
4803
4803
|
}
|
|
4804
4804
|
),
|
|
4805
4805
|
/* @__PURE__ */ e(
|
|
4806
|
-
|
|
4806
|
+
ml,
|
|
4807
4807
|
{
|
|
4808
4808
|
perPageKey: C,
|
|
4809
4809
|
pageKey: v,
|
|
@@ -4830,7 +4830,7 @@ const al = 240, ii = ({
|
|
|
4830
4830
|
children: [
|
|
4831
4831
|
R ? /* @__PURE__ */ e(S, { fontSize: "sm", fontWeight: "medium", color: "primary", truncate: !0, children: `${Ve}-${Be} of ${((Xe = D == null ? void 0 : D.totalData) == null ? void 0 : Xe.toLocaleString()) || 0}` }) : /* @__PURE__ */ e(m, { direction: "column" }),
|
|
4832
4832
|
w && !!(D != null && D.totalPage) && /* @__PURE__ */ e(
|
|
4833
|
-
|
|
4833
|
+
Tr,
|
|
4834
4834
|
{
|
|
4835
4835
|
size: "xs",
|
|
4836
4836
|
variant: "neutral",
|
|
@@ -4844,7 +4844,7 @@ const al = 240, ii = ({
|
|
|
4844
4844
|
}
|
|
4845
4845
|
),
|
|
4846
4846
|
/* @__PURE__ */ e(
|
|
4847
|
-
|
|
4847
|
+
hl,
|
|
4848
4848
|
{
|
|
4849
4849
|
isOpen: pe,
|
|
4850
4850
|
onClose: () => ke(!1),
|
|
@@ -4863,7 +4863,7 @@ const al = 240, ii = ({
|
|
|
4863
4863
|
]
|
|
4864
4864
|
}
|
|
4865
4865
|
);
|
|
4866
|
-
},
|
|
4866
|
+
}, ys = ({
|
|
4867
4867
|
withPadding: t = !1,
|
|
4868
4868
|
filterConfigs: r = [],
|
|
4869
4869
|
filterKey: n = "filter",
|
|
@@ -4889,7 +4889,7 @@ const al = 240, ii = ({
|
|
|
4889
4889
|
savedViews: A,
|
|
4890
4890
|
persistLastState: w = !0,
|
|
4891
4891
|
persistSearch: R = !0,
|
|
4892
|
-
storage: B =
|
|
4892
|
+
storage: B = ti,
|
|
4893
4893
|
onReset: J,
|
|
4894
4894
|
leadingActions: X
|
|
4895
4895
|
}) => {
|
|
@@ -4903,26 +4903,26 @@ const al = 240, ii = ({
|
|
|
4903
4903
|
setValue: se,
|
|
4904
4904
|
clearValue: we,
|
|
4905
4905
|
clearAll: He
|
|
4906
|
-
} =
|
|
4906
|
+
} = Zr({
|
|
4907
4907
|
configs: r,
|
|
4908
4908
|
filterKey: n,
|
|
4909
4909
|
activeFilterKey: o,
|
|
4910
4910
|
pageKey: i,
|
|
4911
4911
|
searchKey: g
|
|
4912
|
-
}), pe =
|
|
4912
|
+
}), pe = No({
|
|
4913
4913
|
columns: z,
|
|
4914
4914
|
scopeId: $,
|
|
4915
4915
|
storage: B,
|
|
4916
4916
|
onColumnsChange: D,
|
|
4917
4917
|
value: C
|
|
4918
|
-
}), ke =
|
|
4918
|
+
}), ke = $o({
|
|
4919
4919
|
scopeId: $,
|
|
4920
4920
|
storage: B,
|
|
4921
4921
|
snapshotKeys: [o, n, l],
|
|
4922
4922
|
pageKey: i,
|
|
4923
4923
|
getColumns: () => pe.state,
|
|
4924
4924
|
applyColumns: pe.applyState
|
|
4925
|
-
}), Ee =
|
|
4925
|
+
}), Ee = jo({
|
|
4926
4926
|
scopeId: $,
|
|
4927
4927
|
storage: B,
|
|
4928
4928
|
snapshotKeys: [o, n, i],
|
|
@@ -4930,14 +4930,14 @@ const al = 240, ii = ({
|
|
|
4930
4930
|
filterKey: n,
|
|
4931
4931
|
searchKey: g,
|
|
4932
4932
|
persistSearch: R
|
|
4933
|
-
}), Te =
|
|
4933
|
+
}), Te = Po({
|
|
4934
4934
|
scopeId: $,
|
|
4935
4935
|
storage: B,
|
|
4936
4936
|
perPageKey: l,
|
|
4937
4937
|
pageSizeOptions: c,
|
|
4938
4938
|
enabled: w
|
|
4939
4939
|
});
|
|
4940
|
-
|
|
4940
|
+
Go({
|
|
4941
4941
|
enabled: w && !!$,
|
|
4942
4942
|
snapshotKeys: [o, n, i],
|
|
4943
4943
|
perPageKey: l,
|
|
@@ -4947,7 +4947,7 @@ const al = 240, ii = ({
|
|
|
4947
4947
|
const Ve = s ?? c[0] ?? 25, Be = !!(A != null && A.enabled) && ke.enabled, qe = () => {
|
|
4948
4948
|
He(), Ee.clear(), J == null || J();
|
|
4949
4949
|
}, De = ze("md"), je = p ? /* @__PURE__ */ e(
|
|
4950
|
-
|
|
4950
|
+
oi,
|
|
4951
4951
|
{
|
|
4952
4952
|
searchKey: g,
|
|
4953
4953
|
filterKey: n,
|
|
@@ -4983,7 +4983,7 @@ const al = 240, ii = ({
|
|
|
4983
4983
|
style: { flex: "1 1 0", minWidth: 0 },
|
|
4984
4984
|
children: [
|
|
4985
4985
|
/* @__PURE__ */ e(
|
|
4986
|
-
|
|
4986
|
+
qo,
|
|
4987
4987
|
{
|
|
4988
4988
|
configs: r,
|
|
4989
4989
|
activeKeys: j,
|
|
@@ -5004,7 +5004,7 @@ const al = 240, ii = ({
|
|
|
5004
5004
|
style: { flex: "1 1 0", minWidth: 0 },
|
|
5005
5005
|
children: [
|
|
5006
5006
|
/* @__PURE__ */ e(
|
|
5007
|
-
|
|
5007
|
+
ii,
|
|
5008
5008
|
{
|
|
5009
5009
|
activeKeys: j,
|
|
5010
5010
|
configByKey: K,
|
|
@@ -5033,7 +5033,7 @@ const al = 240, ii = ({
|
|
|
5033
5033
|
/* @__PURE__ */ u(m, { direction: "row", display: "flex", align: "center", gap: "sm", children: [
|
|
5034
5034
|
X,
|
|
5035
5035
|
/* @__PURE__ */ e(
|
|
5036
|
-
|
|
5036
|
+
al,
|
|
5037
5037
|
{
|
|
5038
5038
|
pagination: E,
|
|
5039
5039
|
pageKey: i,
|
|
@@ -5047,7 +5047,7 @@ const al = 240, ii = ({
|
|
|
5047
5047
|
),
|
|
5048
5048
|
v === "right" && je,
|
|
5049
5049
|
Be && /* @__PURE__ */ e(
|
|
5050
|
-
|
|
5050
|
+
ci,
|
|
5051
5051
|
{
|
|
5052
5052
|
views: ke.views,
|
|
5053
5053
|
onApply: ke.applyView,
|
|
@@ -5056,7 +5056,7 @@ const al = 240, ii = ({
|
|
|
5056
5056
|
}
|
|
5057
5057
|
),
|
|
5058
5058
|
z.length > 0 && /* @__PURE__ */ e(
|
|
5059
|
-
|
|
5059
|
+
li,
|
|
5060
5060
|
{
|
|
5061
5061
|
columns: pe.orderedColumns,
|
|
5062
5062
|
allVisible: pe.allVisible,
|
|
@@ -5069,7 +5069,7 @@ const al = 240, ii = ({
|
|
|
5069
5069
|
]
|
|
5070
5070
|
}
|
|
5071
5071
|
) : /* @__PURE__ */ e(
|
|
5072
|
-
|
|
5072
|
+
gl,
|
|
5073
5073
|
{
|
|
5074
5074
|
withPadding: t,
|
|
5075
5075
|
configs: r,
|
|
@@ -5110,22 +5110,22 @@ const al = 240, ii = ({
|
|
|
5110
5110
|
leadingActions: X
|
|
5111
5111
|
}
|
|
5112
5112
|
);
|
|
5113
|
-
},
|
|
5113
|
+
}, pl = (t) => {
|
|
5114
5114
|
if (!Array.isArray(t) || t.length === 0) return;
|
|
5115
5115
|
const r = t[0];
|
|
5116
5116
|
return (r == null ? void 0 : r.value) != null ? String(r.value) : void 0;
|
|
5117
|
-
},
|
|
5117
|
+
}, yl = (t) => {
|
|
5118
5118
|
if (!Array.isArray(t) || t.length === 0) return;
|
|
5119
5119
|
const r = t.map((n) => (n == null ? void 0 : n.value) != null ? String(n.value) : null).filter((n) => n != null);
|
|
5120
5120
|
return r.length ? r : void 0;
|
|
5121
|
-
},
|
|
5121
|
+
}, bl = (t, r) => {
|
|
5122
5122
|
switch (t.type) {
|
|
5123
5123
|
case "dropdown":
|
|
5124
5124
|
case "radio":
|
|
5125
|
-
return
|
|
5125
|
+
return pl(r);
|
|
5126
5126
|
case "dropdown-multiple":
|
|
5127
5127
|
case "checkbox-multiple":
|
|
5128
|
-
return
|
|
5128
|
+
return yl(r);
|
|
5129
5129
|
case "date":
|
|
5130
5130
|
return r instanceof Date ? r.toISOString() : void 0;
|
|
5131
5131
|
case "date-compact":
|
|
@@ -5133,11 +5133,11 @@ const al = 240, ii = ({
|
|
|
5133
5133
|
default:
|
|
5134
5134
|
return;
|
|
5135
5135
|
}
|
|
5136
|
-
},
|
|
5136
|
+
}, Mn = (t, r) => {
|
|
5137
5137
|
if (t == null || t === "") return r;
|
|
5138
5138
|
const n = Number(t);
|
|
5139
5139
|
return Number.isFinite(n) && n > 0 ? n : r;
|
|
5140
|
-
},
|
|
5140
|
+
}, bs = (t) => {
|
|
5141
5141
|
const {
|
|
5142
5142
|
filterConfigs: r,
|
|
5143
5143
|
filterKey: n = "filter",
|
|
@@ -5149,7 +5149,7 @@ const al = 240, ii = ({
|
|
|
5149
5149
|
defaultPerPage: a = 10,
|
|
5150
5150
|
paramKeys: d,
|
|
5151
5151
|
serialize: f
|
|
5152
|
-
} = t, { activeKeys: p, configByKey: g, hasActiveFilter: b, getValue: F } =
|
|
5152
|
+
} = t, { activeKeys: p, configByKey: g, hasActiveFilter: b, getValue: F } = Zr({
|
|
5153
5153
|
configs: r,
|
|
5154
5154
|
filterKey: n,
|
|
5155
5155
|
activeFilterKey: o,
|
|
@@ -5157,9 +5157,9 @@ const al = 240, ii = ({
|
|
|
5157
5157
|
searchKey: c
|
|
5158
5158
|
}), { searchParams: v } = Ge(), M = v.toString();
|
|
5159
5159
|
return xe(() => {
|
|
5160
|
-
const z = {}, D = {}, C =
|
|
5160
|
+
const z = {}, D = {}, C = Mn(v.get(i), s), I = Mn(v.get(l), a);
|
|
5161
5161
|
z[(d == null ? void 0 : d.page) ?? "page"] = C, z[(d == null ? void 0 : d.perPage) ?? "perPage"] = I;
|
|
5162
|
-
const A =
|
|
5162
|
+
const A = Pr(c, v, n) || "";
|
|
5163
5163
|
A && (z[(d == null ? void 0 : d.search) ?? "search"] = A);
|
|
5164
5164
|
let w = !1;
|
|
5165
5165
|
for (const R of p) {
|
|
@@ -5167,7 +5167,7 @@ const al = 240, ii = ({
|
|
|
5167
5167
|
if (!B) continue;
|
|
5168
5168
|
const J = F(B);
|
|
5169
5169
|
D[R] = J;
|
|
5170
|
-
const X = f == null ? void 0 : f[R], $ = X ? X(J) :
|
|
5170
|
+
const X = f == null ? void 0 : f[R], $ = X ? X(J) : bl(B, J);
|
|
5171
5171
|
if ($ == null || Array.isArray($) && $.length === 0)
|
|
5172
5172
|
continue;
|
|
5173
5173
|
const j = (d == null ? void 0 : d[R]) ?? R;
|
|
@@ -5192,19 +5192,19 @@ const al = 240, ii = ({
|
|
|
5192
5192
|
f,
|
|
5193
5193
|
g
|
|
5194
5194
|
]);
|
|
5195
|
-
},
|
|
5195
|
+
}, xl = [
|
|
5196
5196
|
"dropdown",
|
|
5197
5197
|
"dropdown-multiple",
|
|
5198
5198
|
"checkbox-multiple",
|
|
5199
5199
|
"radio"
|
|
5200
|
-
],
|
|
5200
|
+
], xs = ({
|
|
5201
5201
|
filterConfigs: t,
|
|
5202
5202
|
filterKey: r,
|
|
5203
5203
|
activeFilterKey: n,
|
|
5204
5204
|
pageKey: o,
|
|
5205
5205
|
searchKey: i
|
|
5206
5206
|
}) => {
|
|
5207
|
-
const { configByKey: l, getValue: c, setValue: s, removeFilter: a, clearAll: d, hasActiveFilter: f } =
|
|
5207
|
+
const { configByKey: l, getValue: c, setValue: s, removeFilter: a, clearAll: d, hasActiveFilter: f } = Zr({
|
|
5208
5208
|
configs: t,
|
|
5209
5209
|
filterKey: r,
|
|
5210
5210
|
activeFilterKey: n,
|
|
@@ -5225,7 +5225,7 @@ const al = 240, ii = ({
|
|
|
5225
5225
|
), b = Z(
|
|
5226
5226
|
(E, z) => {
|
|
5227
5227
|
const D = l[E];
|
|
5228
|
-
if (!D || !
|
|
5228
|
+
if (!D || !xl.includes(D.type)) return;
|
|
5229
5229
|
const C = Array.isArray(z) ? z : [z];
|
|
5230
5230
|
if (C.length === 0) {
|
|
5231
5231
|
a(E);
|
|
@@ -5248,7 +5248,7 @@ const al = 240, ii = ({
|
|
|
5248
5248
|
[g]
|
|
5249
5249
|
), M = Z((E) => a(E), [a]);
|
|
5250
5250
|
return { set: b, toggle: F, clear: M, clearAll: d, isActive: v, values: g, hasActiveFilter: f };
|
|
5251
|
-
},
|
|
5251
|
+
}, vs = (t, r) => {
|
|
5252
5252
|
if (!t) return {};
|
|
5253
5253
|
const { fromKey: n, toKey: o, opKey: i } = r, l = {};
|
|
5254
5254
|
switch (t.op) {
|
|
@@ -5262,7 +5262,7 @@ const al = 240, ii = ({
|
|
|
5262
5262
|
return t.from && (l[n] = new Date(t.from).toISOString()), t.to && (l[o] = new Date(t.to).toISOString()), l;
|
|
5263
5263
|
case "is-relative-to-today": {
|
|
5264
5264
|
if (!t.relative) return l;
|
|
5265
|
-
const { from: c, to: s } =
|
|
5265
|
+
const { from: c, to: s } = ri(t.relative);
|
|
5266
5266
|
return l[n] = c.toISOString(), l[o] = s.toISOString(), l;
|
|
5267
5267
|
}
|
|
5268
5268
|
case "is-empty":
|
|
@@ -5271,7 +5271,7 @@ const al = 240, ii = ({
|
|
|
5271
5271
|
default:
|
|
5272
5272
|
return l;
|
|
5273
5273
|
}
|
|
5274
|
-
},
|
|
5274
|
+
}, vl = ({ children: t, borderRadius: r, height: n }) => {
|
|
5275
5275
|
const o = ce(null), [i, l] = O("100vh");
|
|
5276
5276
|
return Q(() => {
|
|
5277
5277
|
if (n) return;
|
|
@@ -5299,7 +5299,7 @@ const al = 240, ii = ({
|
|
|
5299
5299
|
children: t
|
|
5300
5300
|
}
|
|
5301
5301
|
);
|
|
5302
|
-
},
|
|
5302
|
+
}, Cl = ({
|
|
5303
5303
|
action: t,
|
|
5304
5304
|
rightContent: r,
|
|
5305
5305
|
leftContent: n,
|
|
@@ -5307,7 +5307,7 @@ const al = 240, ii = ({
|
|
|
5307
5307
|
advanceFilter: i,
|
|
5308
5308
|
showFilter: l = !0
|
|
5309
5309
|
}) => {
|
|
5310
|
-
const c = ze("md"), s = l ? /* @__PURE__ */ e(
|
|
5310
|
+
const c = ze("md"), s = l ? /* @__PURE__ */ e(To, { ...i }) : null;
|
|
5311
5311
|
return /* @__PURE__ */ e(
|
|
5312
5312
|
m,
|
|
5313
5313
|
{
|
|
@@ -5327,7 +5327,7 @@ const al = 240, ii = ({
|
|
|
5327
5327
|
flexDirection: c ? "row" : "column-reverse",
|
|
5328
5328
|
gap: "16px"
|
|
5329
5329
|
},
|
|
5330
|
-
children: o ? o({ filter: s }) : /* @__PURE__ */ u(
|
|
5330
|
+
children: o ? o({ filter: s }) : /* @__PURE__ */ u(ne, { children: [
|
|
5331
5331
|
/* @__PURE__ */ u(m, { style: { display: "flex", gap: "8px", flexDirection: "row", alignItems: "center", flex: 1, minWidth: 0 }, children: [
|
|
5332
5332
|
s,
|
|
5333
5333
|
n
|
|
@@ -5363,7 +5363,7 @@ const al = 240, ii = ({
|
|
|
5363
5363
|
] })
|
|
5364
5364
|
}
|
|
5365
5365
|
);
|
|
5366
|
-
},
|
|
5366
|
+
}, wl = ({
|
|
5367
5367
|
totalData: t,
|
|
5368
5368
|
withMarginBottom: r = !0,
|
|
5369
5369
|
withMarginTop: n = !0
|
|
@@ -5394,7 +5394,7 @@ const al = 240, ii = ({
|
|
|
5394
5394
|
/* @__PURE__ */ e(ct.Body1, { children: t || 0 })
|
|
5395
5395
|
]
|
|
5396
5396
|
}
|
|
5397
|
-
),
|
|
5397
|
+
), Dl = ({
|
|
5398
5398
|
pagination: t,
|
|
5399
5399
|
pageKey: r = "page",
|
|
5400
5400
|
perPageKey: n = "perPage",
|
|
@@ -5427,7 +5427,7 @@ const al = 240, ii = ({
|
|
|
5427
5427
|
borderTop: "1px solid var(--sa-border-subtle, #0b120e24)",
|
|
5428
5428
|
flexShrink: 0
|
|
5429
5429
|
},
|
|
5430
|
-
children: i ? /* @__PURE__ */ u(
|
|
5430
|
+
children: i ? /* @__PURE__ */ u(ne, { children: [
|
|
5431
5431
|
/* @__PURE__ */ u(m, { style: { display: "flex", flexDirection: "row", gap: "8px", alignItems: "center", textWrap: "nowrap" }, children: [
|
|
5432
5432
|
/* @__PURE__ */ e(S, { children: "Rows Per Page: " }),
|
|
5433
5433
|
/* @__PURE__ */ e(
|
|
@@ -5450,7 +5450,7 @@ const al = 240, ii = ({
|
|
|
5450
5450
|
/* @__PURE__ */ e(S, { children: `${g}-${b} of ${(t == null ? void 0 : t.totalData) || 0}` })
|
|
5451
5451
|
] }),
|
|
5452
5452
|
/* @__PURE__ */ e(
|
|
5453
|
-
|
|
5453
|
+
Tr,
|
|
5454
5454
|
{
|
|
5455
5455
|
currentPage: t != null && t.currentPage ? Number(t == null ? void 0 : t.currentPage) : 1,
|
|
5456
5456
|
totalPages: t != null && t.totalPage ? Number(t == null ? void 0 : t.totalPage) : 1,
|
|
@@ -5458,7 +5458,7 @@ const al = 240, ii = ({
|
|
|
5458
5458
|
}
|
|
5459
5459
|
)
|
|
5460
5460
|
] }) : /* @__PURE__ */ e(
|
|
5461
|
-
|
|
5461
|
+
wl,
|
|
5462
5462
|
{
|
|
5463
5463
|
totalData: l,
|
|
5464
5464
|
withMarginBottom: !1,
|
|
@@ -5467,7 +5467,7 @@ const al = 240, ii = ({
|
|
|
5467
5467
|
)
|
|
5468
5468
|
}
|
|
5469
5469
|
);
|
|
5470
|
-
},
|
|
5470
|
+
}, kl = ({ filter: t, columnTitle: r }) => {
|
|
5471
5471
|
const [n, o] = O(!1), i = ce(null), l = ce(null), c = ce(null), [s, a] = O(""), [d, f] = O({ top: 0, left: 0 }), p = t.selectedValues, g = xe(() => s ? t.options.filter(
|
|
5472
5472
|
(v) => v.label.toLowerCase().includes(s.toLowerCase())
|
|
5473
5473
|
) : t.options, [t.options, s]);
|
|
@@ -5763,7 +5763,7 @@ const al = 240, ii = ({
|
|
|
5763
5763
|
}
|
|
5764
5764
|
)
|
|
5765
5765
|
] });
|
|
5766
|
-
},
|
|
5766
|
+
}, Sl = ({
|
|
5767
5767
|
direction: t
|
|
5768
5768
|
}) => {
|
|
5769
5769
|
const r = "var(--sa-text-primary, #292a2e)", n = "var(--sa-text-subtle, #8c8f97)";
|
|
@@ -5803,7 +5803,7 @@ const al = 240, ii = ({
|
|
|
5803
5803
|
]
|
|
5804
5804
|
}
|
|
5805
5805
|
);
|
|
5806
|
-
},
|
|
5806
|
+
}, Fl = ({ frozen: t }) => /* @__PURE__ */ u(
|
|
5807
5807
|
"svg",
|
|
5808
5808
|
{
|
|
5809
5809
|
width: "11",
|
|
@@ -5819,7 +5819,7 @@ const al = 240, ii = ({
|
|
|
5819
5819
|
/* @__PURE__ */ e("path", { d: t ? "M7 11V7a5 5 0 0 1 10 0v4" : "M7 11V7a5 5 0 0 1 9.9-1" })
|
|
5820
5820
|
]
|
|
5821
5821
|
}
|
|
5822
|
-
), Dr = "var(--sa-background-primary, #ffffff)",
|
|
5822
|
+
), Dr = "var(--sa-background-primary, #ffffff)", Wn = "var(--sa-background-primary-inverse, #f8f8f8)", El = ({
|
|
5823
5823
|
columns: t,
|
|
5824
5824
|
records: r,
|
|
5825
5825
|
handleDetail: n,
|
|
@@ -5877,8 +5877,8 @@ const al = 240, ii = ({
|
|
|
5877
5877
|
Ve.current.querySelectorAll("thead tr th")
|
|
5878
5878
|
), ee = [];
|
|
5879
5879
|
let G = 0;
|
|
5880
|
-
H.forEach((ae,
|
|
5881
|
-
ee[
|
|
5880
|
+
H.forEach((ae, ie) => {
|
|
5881
|
+
ee[ie] = G, ie < p && (G += ae.offsetWidth);
|
|
5882
5882
|
}), qe(ee);
|
|
5883
5883
|
}, [p, t, r, De]);
|
|
5884
5884
|
const tt = (H) => {
|
|
@@ -5896,7 +5896,7 @@ const al = 240, ii = ({
|
|
|
5896
5896
|
if (!G) return;
|
|
5897
5897
|
const ae = Math.round(G.getBoundingClientRect().width);
|
|
5898
5898
|
Xe.current = { colIndex: ee, startX: H.clientX, startWidth: ae };
|
|
5899
|
-
const
|
|
5899
|
+
const ie = document.body.style.userSelect, be = document.body.style.cursor;
|
|
5900
5900
|
document.body.style.userSelect = "none", document.body.style.cursor = "col-resize";
|
|
5901
5901
|
const rt = (Ue) => {
|
|
5902
5902
|
var dt;
|
|
@@ -5907,13 +5907,13 @@ const al = 240, ii = ({
|
|
|
5907
5907
|
(ut) => ut[Me.colIndex] === de ? ut : { ...ut, [Me.colIndex]: de }
|
|
5908
5908
|
);
|
|
5909
5909
|
}, Ke = () => {
|
|
5910
|
-
document.removeEventListener("mousemove", rt), document.removeEventListener("mouseup", Ke), document.body.style.userSelect =
|
|
5910
|
+
document.removeEventListener("mousemove", rt), document.removeEventListener("mouseup", Ke), document.body.style.userSelect = ie, document.body.style.cursor = be, Xe.current = null, z && je((Ue) => (z(Ue), Ue));
|
|
5911
5911
|
};
|
|
5912
5912
|
document.addEventListener("mousemove", rt), document.addEventListener("mouseup", Ke);
|
|
5913
5913
|
};
|
|
5914
5914
|
return /* @__PURE__ */ e("div", { ref: Ve, children: /* @__PURE__ */ u(Jt, { fullWidth: !0, children: [
|
|
5915
5915
|
/* @__PURE__ */ e(
|
|
5916
|
-
|
|
5916
|
+
jn,
|
|
5917
5917
|
{
|
|
5918
5918
|
style: {
|
|
5919
5919
|
height: "40px",
|
|
@@ -5922,7 +5922,7 @@ const al = 240, ii = ({
|
|
|
5922
5922
|
children: /* @__PURE__ */ u(Ze, { children: [
|
|
5923
5923
|
t.map((H, ee) => {
|
|
5924
5924
|
var bt, mt;
|
|
5925
|
-
const G = p > 0 && ee < p, ae = Be[ee] ?? 0,
|
|
5925
|
+
const G = p > 0 && ee < p, ae = Be[ee] ?? 0, ie = at(H), rt = ee === t.length - 1 && T && w, Ke = $(H), Ue = !!H.sortable && !!Ke, Me = Ue && (X == null ? void 0 : X.key) === Ke ? X.direction : null, nt = H.title || ((bt = H.accessor) == null ? void 0 : bt.toString()) || "", de = (mt = H.headerTooltip) != null && mt.showIcon ? /* @__PURE__ */ e(
|
|
5926
5926
|
W,
|
|
5927
5927
|
{
|
|
5928
5928
|
name: "InfoCircle",
|
|
@@ -5953,7 +5953,7 @@ const al = 240, ii = ({
|
|
|
5953
5953
|
children: [
|
|
5954
5954
|
dt,
|
|
5955
5955
|
de,
|
|
5956
|
-
/* @__PURE__ */ e(
|
|
5956
|
+
/* @__PURE__ */ e(Sl, { direction: Me })
|
|
5957
5957
|
]
|
|
5958
5958
|
}
|
|
5959
5959
|
) : /* @__PURE__ */ u("span", { style: { flex: 1, minWidth: 0, display: "flex", alignItems: "center", gap: 4 }, children: [
|
|
@@ -5988,9 +5988,9 @@ const al = 240, ii = ({
|
|
|
5988
5988
|
minWidth: 0
|
|
5989
5989
|
},
|
|
5990
5990
|
children: [
|
|
5991
|
-
H.headerTooltip ? /* @__PURE__ */ e(
|
|
5991
|
+
H.headerTooltip ? /* @__PURE__ */ e(Re, { label: H.headerTooltip.content, position: "bottom", children: ut }) : ut,
|
|
5992
5992
|
H.filter && /* @__PURE__ */ e(
|
|
5993
|
-
|
|
5993
|
+
kl,
|
|
5994
5994
|
{
|
|
5995
5995
|
filter: H.filter,
|
|
5996
5996
|
columnTitle: H.title
|
|
@@ -6013,13 +6013,13 @@ const al = 240, ii = ({
|
|
|
6013
6013
|
opacity: G ? 1 : 0.45,
|
|
6014
6014
|
transition: "opacity 0.15s"
|
|
6015
6015
|
},
|
|
6016
|
-
children: /* @__PURE__ */ e(
|
|
6016
|
+
children: /* @__PURE__ */ e(Fl, { frozen: G })
|
|
6017
6017
|
}
|
|
6018
6018
|
)
|
|
6019
6019
|
]
|
|
6020
6020
|
}
|
|
6021
6021
|
),
|
|
6022
|
-
|
|
6022
|
+
ie && /* @__PURE__ */ e(
|
|
6023
6023
|
"div",
|
|
6024
6024
|
{
|
|
6025
6025
|
onMouseDown: (xt) => St(xt, ee),
|
|
@@ -6078,19 +6078,19 @@ const al = 240, ii = ({
|
|
|
6078
6078
|
},
|
|
6079
6079
|
onMouseEnter: (G) => {
|
|
6080
6080
|
const ae = G.currentTarget;
|
|
6081
|
-
ae.style.backgroundColor =
|
|
6082
|
-
|
|
6081
|
+
ae.style.backgroundColor = Wn, Array.from(ae.querySelectorAll("td")).forEach((ie) => {
|
|
6082
|
+
ie.style.position === "sticky" && (ie.style.backgroundColor = Wn);
|
|
6083
6083
|
});
|
|
6084
6084
|
},
|
|
6085
6085
|
onMouseLeave: (G) => {
|
|
6086
6086
|
const ae = G.currentTarget;
|
|
6087
|
-
ae.style.backgroundColor = "", Array.from(ae.querySelectorAll("td")).forEach((
|
|
6088
|
-
|
|
6087
|
+
ae.style.backgroundColor = "", Array.from(ae.querySelectorAll("td")).forEach((ie) => {
|
|
6088
|
+
ie.style.position === "sticky" && (ie.style.backgroundColor = Dr);
|
|
6089
6089
|
});
|
|
6090
6090
|
},
|
|
6091
6091
|
children: [
|
|
6092
6092
|
t.map((G, ae) => {
|
|
6093
|
-
const
|
|
6093
|
+
const ie = G.render ? G.render(H, ee, r) : ke(H, G.accessor), be = p > 0 && ae < p, rt = Be[ae] ?? 0, Ke = De[ae] !== void 0, Ue = be && ae === p - 1;
|
|
6094
6094
|
return /* @__PURE__ */ e(
|
|
6095
6095
|
Ae,
|
|
6096
6096
|
{
|
|
@@ -6109,7 +6109,7 @@ const al = 240, ii = ({
|
|
|
6109
6109
|
textAlign: G.textAlign === "text-right" ? "right" : G.textAlign === "text-center" ? "center" : "left",
|
|
6110
6110
|
...Se(ae, G.width)
|
|
6111
6111
|
},
|
|
6112
|
-
children: typeof
|
|
6112
|
+
children: typeof ie == "string" ? /* @__PURE__ */ e(
|
|
6113
6113
|
S,
|
|
6114
6114
|
{
|
|
6115
6115
|
style: {
|
|
@@ -6118,9 +6118,9 @@ const al = 240, ii = ({
|
|
|
6118
6118
|
textOverflow: "ellipsis",
|
|
6119
6119
|
textAlign: G.textAlign === "text-right" ? "right" : G.textAlign === "text-center" ? "center" : "left"
|
|
6120
6120
|
},
|
|
6121
|
-
children:
|
|
6121
|
+
children: ie
|
|
6122
6122
|
}
|
|
6123
|
-
) :
|
|
6123
|
+
) : ie
|
|
6124
6124
|
},
|
|
6125
6125
|
`row-${ee}-col-${ae}`
|
|
6126
6126
|
);
|
|
@@ -6135,7 +6135,7 @@ const al = 240, ii = ({
|
|
|
6135
6135
|
transition: "background-color 0.3s ease"
|
|
6136
6136
|
}, children: /* @__PURE__ */ e(me, { direction: "row", align: "center", justify: "center", gap: "sm", children: F.map((G) => {
|
|
6137
6137
|
const ae = ee === r.length - 1 ? "top" : "bottom";
|
|
6138
|
-
return G === "detail" && n && (a == null ? void 0 : a(H)) !== !1 ? /* @__PURE__ */ e(
|
|
6138
|
+
return G === "detail" && n && (a == null ? void 0 : a(H)) !== !1 ? /* @__PURE__ */ e(Re, { label: "Detail", position: ae, children: /* @__PURE__ */ e(
|
|
6139
6139
|
N,
|
|
6140
6140
|
{
|
|
6141
6141
|
size: "xs",
|
|
@@ -6144,7 +6144,7 @@ const al = 240, ii = ({
|
|
|
6144
6144
|
onClick: () => n(H.id, H),
|
|
6145
6145
|
iconLeft: /* @__PURE__ */ e(W, { name: "DocumentClean", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
|
|
6146
6146
|
}
|
|
6147
|
-
) }, "detail") : G === "update" && o && (s == null ? void 0 : s(H)) !== !1 ? /* @__PURE__ */ e(
|
|
6147
|
+
) }, "detail") : G === "update" && o && (s == null ? void 0 : s(H)) !== !1 ? /* @__PURE__ */ e(Re, { label: "Update", position: ae, children: /* @__PURE__ */ e(
|
|
6148
6148
|
N,
|
|
6149
6149
|
{
|
|
6150
6150
|
size: "xs",
|
|
@@ -6153,7 +6153,7 @@ const al = 240, ii = ({
|
|
|
6153
6153
|
onClick: () => o(H),
|
|
6154
6154
|
iconLeft: /* @__PURE__ */ e(W, { name: "Edit1", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
|
|
6155
6155
|
}
|
|
6156
|
-
) }, "update") : G === "delete" && i && (c == null ? void 0 : c(H)) !== !1 ? /* @__PURE__ */ e(
|
|
6156
|
+
) }, "update") : G === "delete" && i && (c == null ? void 0 : c(H)) !== !1 ? /* @__PURE__ */ e(Re, { label: "Delete", position: ae, children: /* @__PURE__ */ e(
|
|
6157
6157
|
N,
|
|
6158
6158
|
{
|
|
6159
6159
|
size: "xs",
|
|
@@ -6169,7 +6169,7 @@ const al = 240, ii = ({
|
|
|
6169
6169
|
`${H}${ee}`
|
|
6170
6170
|
)) })
|
|
6171
6171
|
] }) });
|
|
6172
|
-
},
|
|
6172
|
+
}, Ll = ({
|
|
6173
6173
|
wrapperProps: t,
|
|
6174
6174
|
dataTableProps: r,
|
|
6175
6175
|
headerProps: n,
|
|
@@ -6181,8 +6181,8 @@ const al = 240, ii = ({
|
|
|
6181
6181
|
), s = (n == null ? void 0 : n.show) ?? !0, a = ce(null), d = (p = r == null ? void 0 : r.pagination) == null ? void 0 : p.totalData;
|
|
6182
6182
|
typeof d == "number" && (a.current = d);
|
|
6183
6183
|
const f = (o == null ? void 0 : o.showFooter) ?? (d === void 0 ? a.current !== 0 : d !== 0);
|
|
6184
|
-
return /* @__PURE__ */ u(
|
|
6185
|
-
s && /* @__PURE__ */ e(
|
|
6184
|
+
return /* @__PURE__ */ u(vl, { ...t, children: [
|
|
6185
|
+
s && /* @__PURE__ */ e(Cl, { ...n }),
|
|
6186
6186
|
/* @__PURE__ */ e(
|
|
6187
6187
|
m,
|
|
6188
6188
|
{
|
|
@@ -6194,7 +6194,7 @@ const al = 240, ii = ({
|
|
|
6194
6194
|
overflowX: "auto"
|
|
6195
6195
|
},
|
|
6196
6196
|
children: r ? /* @__PURE__ */ e(
|
|
6197
|
-
|
|
6197
|
+
El,
|
|
6198
6198
|
{
|
|
6199
6199
|
...r,
|
|
6200
6200
|
scrollParentRef: i,
|
|
@@ -6205,7 +6205,7 @@ const al = 240, ii = ({
|
|
|
6205
6205
|
}
|
|
6206
6206
|
),
|
|
6207
6207
|
f && /* @__PURE__ */ e(
|
|
6208
|
-
|
|
6208
|
+
Dl,
|
|
6209
6209
|
{
|
|
6210
6210
|
pagination: r == null ? void 0 : r.pagination,
|
|
6211
6211
|
pageKey: r == null ? void 0 : r.pageKey,
|
|
@@ -6217,12 +6217,12 @@ const al = 240, ii = ({
|
|
|
6217
6217
|
)
|
|
6218
6218
|
] });
|
|
6219
6219
|
};
|
|
6220
|
-
function
|
|
6220
|
+
function Ml(t) {
|
|
6221
6221
|
return st(
|
|
6222
6222
|
t
|
|
6223
6223
|
);
|
|
6224
6224
|
}
|
|
6225
|
-
const
|
|
6225
|
+
const Cs = Ml(Ll), zn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)", Wl = ({
|
|
6226
6226
|
sortDir: t,
|
|
6227
6227
|
frozen: r
|
|
6228
6228
|
}) => t === "asc" ? /* @__PURE__ */ e(W, { name: "ChevronSmallUp" }) : t === "desc" ? /* @__PURE__ */ e(W, { name: "ChevronSmallDown" }) : r ? /* @__PURE__ */ e(W, { name: "LockOn", size: "xs" }) : /* @__PURE__ */ e(W, { name: "Filter", size: "xs" }), Pt = ({ icon: t, label: r, active: n, danger: o, onClick: i }) => {
|
|
@@ -6257,7 +6257,7 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6257
6257
|
]
|
|
6258
6258
|
}
|
|
6259
6259
|
);
|
|
6260
|
-
},
|
|
6260
|
+
}, zl = ({
|
|
6261
6261
|
active: t,
|
|
6262
6262
|
canSort: r,
|
|
6263
6263
|
canHide: n,
|
|
@@ -6273,7 +6273,7 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6273
6273
|
);
|
|
6274
6274
|
Q(() => {
|
|
6275
6275
|
if (d && p.current) {
|
|
6276
|
-
const M = p.current.getBoundingClientRect(), E = M.left +
|
|
6276
|
+
const M = p.current.getBoundingClientRect(), E = M.left + zn > window.innerWidth;
|
|
6277
6277
|
F({
|
|
6278
6278
|
top: M.bottom + 6,
|
|
6279
6279
|
...E ? { right: window.innerWidth - M.right } : { left: M.left }
|
|
@@ -6289,7 +6289,7 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6289
6289
|
const v = (M) => {
|
|
6290
6290
|
M(), f(!1);
|
|
6291
6291
|
};
|
|
6292
|
-
return /* @__PURE__ */ u(
|
|
6292
|
+
return /* @__PURE__ */ u(ne, { children: [
|
|
6293
6293
|
/* @__PURE__ */ e(
|
|
6294
6294
|
"button",
|
|
6295
6295
|
{
|
|
@@ -6314,7 +6314,7 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6314
6314
|
color: "var(--sa-text-subtle, #8c8f97)",
|
|
6315
6315
|
flexShrink: 0
|
|
6316
6316
|
},
|
|
6317
|
-
children: /* @__PURE__ */ e(
|
|
6317
|
+
children: /* @__PURE__ */ e(Wl, { sortDir: o, frozen: i })
|
|
6318
6318
|
}
|
|
6319
6319
|
),
|
|
6320
6320
|
d && /* @__PURE__ */ u(
|
|
@@ -6326,7 +6326,7 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6326
6326
|
position: "fixed",
|
|
6327
6327
|
top: `${b.top}px`,
|
|
6328
6328
|
...b.left !== void 0 ? { left: `${b.left}px` } : { right: `${b.right}px` },
|
|
6329
|
-
minWidth:
|
|
6329
|
+
minWidth: zn,
|
|
6330
6330
|
backgroundColor: "var(--sa-background-primary, #ffffff)",
|
|
6331
6331
|
border: kr,
|
|
6332
6332
|
borderRadius: "var(--sa-radii-sm, 6px)",
|
|
@@ -6337,7 +6337,7 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6337
6337
|
flexDirection: "column"
|
|
6338
6338
|
},
|
|
6339
6339
|
children: [
|
|
6340
|
-
r && /* @__PURE__ */ u(
|
|
6340
|
+
r && /* @__PURE__ */ u(ne, { children: [
|
|
6341
6341
|
/* @__PURE__ */ e(
|
|
6342
6342
|
Pt,
|
|
6343
6343
|
{
|
|
@@ -6380,15 +6380,15 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6380
6380
|
}
|
|
6381
6381
|
)
|
|
6382
6382
|
] });
|
|
6383
|
-
}, Bt = "1px solid var(--sa-border-subtle, #0b120e24)",
|
|
6383
|
+
}, Bt = "1px solid var(--sa-border-subtle, #0b120e24)", Bl = "var(--sa-text-subtle, #8c8f97)", Et = "var(--sa-background-neutral, #f0f1f2)", Bn = "2px 0 4px -2px var(--sa-border-subtle, #0b120e24)", At = 40, Sr = "var(--sa-background-brand-subtlest)", Zt = {
|
|
6384
6384
|
display: "block",
|
|
6385
6385
|
overflow: "hidden",
|
|
6386
6386
|
textOverflow: "ellipsis",
|
|
6387
6387
|
whiteSpace: "nowrap"
|
|
6388
|
-
},
|
|
6389
|
-
if (typeof document > "u" || document.getElementById(
|
|
6388
|
+
}, An = "sa-table-layout-styles", Al = () => {
|
|
6389
|
+
if (typeof document > "u" || document.getElementById(An)) return;
|
|
6390
6390
|
const t = document.createElement("style");
|
|
6391
|
-
t.id =
|
|
6391
|
+
t.id = An, t.textContent = `
|
|
6392
6392
|
.sa-table-layout tbody td {
|
|
6393
6393
|
transition: background-color 0.15s ease;
|
|
6394
6394
|
background-color: var(--sa-tl-bg, transparent);
|
|
@@ -6445,10 +6445,10 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6445
6445
|
box-shadow: 0 -2px 4px -2px var(--sa-border-subtle, #0b120e24);
|
|
6446
6446
|
}
|
|
6447
6447
|
`, document.head.appendChild(t);
|
|
6448
|
-
}, Rt = (t) => t === "right" ? "right" : t === "center" ? "center" : "left",
|
|
6448
|
+
}, Rt = (t) => t === "right" ? "right" : t === "center" ? "center" : "left", Rl = /^(#|rgb|hsl|var\()/, Gt = (t) => t ? Rl.test(t) ? t : `var(--sa-background-${t})` : void 0, Il = (t, r) => {
|
|
6449
6449
|
if (r)
|
|
6450
6450
|
return t[r];
|
|
6451
|
-
},
|
|
6451
|
+
}, Ol = (t, r) => t == null && r == null ? 0 : t == null ? -1 : r == null ? 1 : typeof t == "number" && typeof r == "number" ? t - r : String(t).localeCompare(String(r)), ws = ({
|
|
6452
6452
|
columns: t,
|
|
6453
6453
|
data: r,
|
|
6454
6454
|
getRowKey: n,
|
|
@@ -6480,7 +6480,7 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6480
6480
|
onSelectionChange: $,
|
|
6481
6481
|
isRowSelectable: j
|
|
6482
6482
|
}) => {
|
|
6483
|
-
|
|
6483
|
+
Al();
|
|
6484
6484
|
const te = !ze(M) && v !== "scroll", _ = !!(R != null && R.length), [T, V] = O(null);
|
|
6485
6485
|
Q(() => {
|
|
6486
6486
|
if (!T) return;
|
|
@@ -6513,29 +6513,29 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6513
6513
|
leaves: y.has(Ce.key) ? [] : [Ce]
|
|
6514
6514
|
};
|
|
6515
6515
|
}).filter((ue) => ue.leaves.length > 0), U = L.some((ue) => ue.isGroup);
|
|
6516
|
-
let
|
|
6516
|
+
let le = L.flatMap((ue) => ue.leaves);
|
|
6517
6517
|
if (!U && ((fe = Ee.order) != null && fe.length)) {
|
|
6518
6518
|
const ue = new Map(Ee.order.map((ve, Ce) => [ve, Ce]));
|
|
6519
|
-
|
|
6519
|
+
le = [...le].sort(
|
|
6520
6520
|
(ve, Ce) => (ue.get(ve.key) ?? 1 / 0) - (ue.get(Ce.key) ?? 1 / 0)
|
|
6521
6521
|
);
|
|
6522
6522
|
}
|
|
6523
|
-
return { headerGroups: L, leafColumns:
|
|
6523
|
+
return { headerGroups: L, leafColumns: le, hasGroups: U };
|
|
6524
6524
|
}, [t, Ee]), St = xe(
|
|
6525
6525
|
() => new Map(Se.map((y, x) => [y.key, x])),
|
|
6526
6526
|
[Se]
|
|
6527
6527
|
), H = !at && Se.some((y) => (y.col.headerColSpan ?? 1) > 1), ee = Se.map((y) => y.key).join("|"), G = (y, x) => {
|
|
6528
6528
|
const L = y.sortKey ?? (typeof y.accessor == "string" ? y.accessor : void 0);
|
|
6529
6529
|
return L ? x[L] : void 0;
|
|
6530
|
-
}, ae = (y) => y.sortable ?? (!!y.sortKey || typeof y.accessor == "string"),
|
|
6530
|
+
}, ae = (y) => y.sortable ?? (!!y.sortKey || typeof y.accessor == "string"), ie = xe(() => {
|
|
6531
6531
|
if (!je || !De) return r;
|
|
6532
6532
|
const y = Se.find((L) => L.key === De.key);
|
|
6533
6533
|
if (!y) return r;
|
|
6534
6534
|
const x = De.direction === "asc" ? 1 : -1;
|
|
6535
6535
|
return [...r].sort(
|
|
6536
|
-
(L, U) =>
|
|
6536
|
+
(L, U) => Ol(G(y.col, L), G(y.col, U)) * x
|
|
6537
6537
|
);
|
|
6538
|
-
}, [r, je, De, Se]), be = !at && !H, rt = !!s && be, [Ke, Ue] =
|
|
6538
|
+
}, [r, je, De, Se]), be = !at && !H, rt = !!s && be, [Ke, Ue] = Ai(s ?? ""), Me = rt ? Ke : void 0, nt = ce(null), [de, dt] = O();
|
|
6539
6539
|
ft(() => {
|
|
6540
6540
|
dt(void 0);
|
|
6541
6541
|
}, [ee]), ft(() => {
|
|
@@ -6571,7 +6571,7 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6571
6571
|
};
|
|
6572
6572
|
return y(), window.addEventListener("resize", y), () => window.removeEventListener("resize", y);
|
|
6573
6573
|
}, [F]);
|
|
6574
|
-
const
|
|
6574
|
+
const oe = (y, x) => n ? n(y, x) : x, Je = J !== void 0, [et, Tt] = O(
|
|
6575
6575
|
() => new Set(X ?? [])
|
|
6576
6576
|
), gt = xe(
|
|
6577
6577
|
() => Je ? new Set(J) : et,
|
|
@@ -6582,46 +6582,46 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6582
6582
|
"[@starasia/admin] TableLayout: `selectable` tanpa `getRowKey` — key default (index) membuat seleksi menempel ke POSISI baris, bukan datanya. Beri `getRowKey` yang stabil (mis. r => r.id)."
|
|
6583
6583
|
);
|
|
6584
6584
|
}, [B, !n]);
|
|
6585
|
-
const
|
|
6585
|
+
const Yr = (y) => {
|
|
6586
6586
|
if (Je || Tt(y), $) {
|
|
6587
|
-
const x =
|
|
6587
|
+
const x = ie.filter((L, U) => y.has(oe(L, U)));
|
|
6588
6588
|
$(Array.from(y), x);
|
|
6589
6589
|
}
|
|
6590
6590
|
}, or = (y, x) => B && (j ? j(y, x) : !0), lr = (y) => {
|
|
6591
6591
|
const x = new Set(gt);
|
|
6592
|
-
x.has(y) ? x.delete(y) : x.add(y),
|
|
6592
|
+
x.has(y) ? x.delete(y) : x.add(y), Yr(x);
|
|
6593
6593
|
}, Ft = xe(
|
|
6594
|
-
() => B ?
|
|
6594
|
+
() => B ? ie.map((y, x) => ({ row: y, i: x, key: oe(y, x) })).filter(
|
|
6595
6595
|
({ row: y, i: x }) => j ? j(y, x) : !0
|
|
6596
6596
|
).map(({ key: y }) => y) : [],
|
|
6597
6597
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
6598
|
-
[B,
|
|
6599
|
-
),
|
|
6598
|
+
[B, ie, j, n]
|
|
6599
|
+
), Xr = Ft.filter((y) => gt.has(y)), cr = Ft.length > 0 && Xr.length === Ft.length, Kr = Xr.length > 0 && !cr, di = () => {
|
|
6600
6600
|
const y = new Set(gt);
|
|
6601
|
-
cr ? Ft.forEach((x) => y.delete(x)) : Ft.forEach((x) => y.add(x)),
|
|
6602
|
-
}, sr = (y, x, L) => y.render ? y.render(x, L,
|
|
6601
|
+
cr ? Ft.forEach((x) => y.delete(x)) : Ft.forEach((x) => y.add(x)), Yr(y);
|
|
6602
|
+
}, sr = (y, x, L) => y.render ? y.render(x, L, ie) : Il(x, y.accessor), ar = Se.length + (B ? 1 : 0) + (_ ? 1 : 0), en = ["80%", "55%", "70%", "45%", "90%", "60%"], ui = (y, x) => en[(y * 7 + x * 3) % en.length], hi = (y, x) => /* @__PURE__ */ e(ht, { height: 14, width: ui(y, x), borderRadius: "rounded-sm" }), fi = Array.from({ length: w }, (y, x) => /* @__PURE__ */ u(Ze, { children: [
|
|
6603
6603
|
B && /* @__PURE__ */ e(Ae, { style: { width: At, padding: 0 }, children: /* @__PURE__ */ e("div", { style: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(ht, { height: 14, width: 14, borderRadius: "rounded-sm" }) }) }),
|
|
6604
|
-
Se.map(({ col: L, key: U },
|
|
6604
|
+
Se.map(({ col: L, key: U }, le) => /* @__PURE__ */ e(
|
|
6605
6605
|
Ae,
|
|
6606
6606
|
{
|
|
6607
6607
|
style: { textAlign: Rt(L.align) },
|
|
6608
|
-
children:
|
|
6608
|
+
children: hi(x, le)
|
|
6609
6609
|
},
|
|
6610
6610
|
`sa-tl-sk-${x}-${U}`
|
|
6611
6611
|
)),
|
|
6612
6612
|
_ && /* @__PURE__ */ e(Ae, { style: { width: 1, padding: 0, border: "none" } })
|
|
6613
|
-
] }, `sa-tl-sk-${x}`)),
|
|
6613
|
+
] }, `sa-tl-sk-${x}`)), mi = (y, x) => {
|
|
6614
6614
|
x || Te({
|
|
6615
6615
|
...Ee,
|
|
6616
6616
|
hidden: [...Ee.hidden ?? [], y]
|
|
6617
6617
|
});
|
|
6618
|
-
},
|
|
6618
|
+
}, gi = (y) => Te({
|
|
6619
6619
|
...Ee,
|
|
6620
6620
|
frozenKey: Ee.frozenKey === y ? void 0 : y
|
|
6621
6621
|
}), Vt = (y) => (R ?? []).filter((x) => {
|
|
6622
6622
|
var L;
|
|
6623
6623
|
return !((L = x.hidden) != null && L.call(x, y));
|
|
6624
|
-
}),
|
|
6624
|
+
}), tn = {
|
|
6625
6625
|
position: "absolute",
|
|
6626
6626
|
right: 0,
|
|
6627
6627
|
top: 0,
|
|
@@ -6634,31 +6634,31 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6634
6634
|
background: "linear-gradient(to right, transparent, var(--sa-background-primary-inverse, #f8f8f8) 40px)"
|
|
6635
6635
|
}, Nt = (y, x, L, U) => {
|
|
6636
6636
|
var Qe;
|
|
6637
|
-
const
|
|
6637
|
+
const le = (Qe = y.disabled) == null ? void 0 : Qe.call(y, x), fe = (U == null ? void 0 : U.showLabel) ?? y.showLabel, ue = (U == null ? void 0 : U.size) ?? "xs", ve = /* @__PURE__ */ e(
|
|
6638
6638
|
N,
|
|
6639
6639
|
{
|
|
6640
6640
|
size: ue,
|
|
6641
6641
|
variant: y.variant ?? "tertiary",
|
|
6642
6642
|
tone: y.tone ?? "neutral",
|
|
6643
|
-
disabled:
|
|
6643
|
+
disabled: le,
|
|
6644
6644
|
onClick: () => y.onClick(x, L),
|
|
6645
6645
|
iconLeft: y.icon ? /* @__PURE__ */ e(W, { name: y.icon, size: "sm" }) : void 0,
|
|
6646
6646
|
children: fe && y.label
|
|
6647
6647
|
}
|
|
6648
6648
|
), Ce = y.tooltip;
|
|
6649
|
-
return Ce ? /* @__PURE__ */ e(
|
|
6650
|
-
},
|
|
6649
|
+
return Ce ? /* @__PURE__ */ e(Re, { label: Ce, position: "top-end", children: ve }) : ve;
|
|
6650
|
+
}, pi = (y, x) => {
|
|
6651
6651
|
const L = Vt(y);
|
|
6652
6652
|
if (!L.length) return null;
|
|
6653
6653
|
if (L.length > 5) {
|
|
6654
|
-
const
|
|
6654
|
+
const le = oe(y, x), fe = (T == null ? void 0 : T.rowKey) === le;
|
|
6655
6655
|
return /* @__PURE__ */ e(
|
|
6656
6656
|
"div",
|
|
6657
6657
|
{
|
|
6658
6658
|
className: "sa-tl-row-actions",
|
|
6659
|
-
style:
|
|
6659
|
+
style: tn,
|
|
6660
6660
|
onClick: (ue) => ue.stopPropagation(),
|
|
6661
|
-
children: /* @__PURE__ */ e(
|
|
6661
|
+
children: /* @__PURE__ */ e(Re, { label: "Aksi lainnya", position: "top", children: /* @__PURE__ */ e(
|
|
6662
6662
|
N,
|
|
6663
6663
|
{
|
|
6664
6664
|
size: "xs",
|
|
@@ -6666,7 +6666,7 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6666
6666
|
onClick: (ue) => {
|
|
6667
6667
|
const ve = ue.currentTarget.getBoundingClientRect();
|
|
6668
6668
|
V(fe ? null : {
|
|
6669
|
-
rowKey:
|
|
6669
|
+
rowKey: le,
|
|
6670
6670
|
top: ve.bottom + 4,
|
|
6671
6671
|
right: window.innerWidth - ve.right
|
|
6672
6672
|
});
|
|
@@ -6677,16 +6677,16 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6677
6677
|
}
|
|
6678
6678
|
);
|
|
6679
6679
|
}
|
|
6680
|
-
return /* @__PURE__ */ e("div", { className: "sa-tl-row-actions", style:
|
|
6681
|
-
},
|
|
6680
|
+
return /* @__PURE__ */ e("div", { className: "sa-tl-row-actions", style: tn, children: L.map((le) => /* @__PURE__ */ e(Ct.Fragment, { children: Nt(le, y, x) }, le.key)) });
|
|
6681
|
+
}, yi = (y, x) => {
|
|
6682
6682
|
const L = Vt(y);
|
|
6683
6683
|
return L.length ? /* @__PURE__ */ e("div", { style: { display: "flex", gap: 6, flexWrap: "wrap", paddingTop: 8, marginTop: 8, borderTop: Bt }, children: L.map((U) => /* @__PURE__ */ e(Ct.Fragment, { children: Nt(U, y, x, { showLabel: !0, size: "sm" }) }, U.key)) }) : null;
|
|
6684
|
-
},
|
|
6684
|
+
}, bi = (y, x) => {
|
|
6685
6685
|
const L = Vt(y);
|
|
6686
6686
|
return L.length ? /* @__PURE__ */ e("div", { style: { display: "flex", gap: 4, paddingRight: 8, flexShrink: 0 }, children: L.map((U) => /* @__PURE__ */ e(Ct.Fragment, { children: Nt(U, y, x, { showLabel: !1 }) }, U.key)) }) : null;
|
|
6687
6687
|
}, dr = (y, x) => {
|
|
6688
|
-
const { col: L, key: U } = y,
|
|
6689
|
-
|
|
6688
|
+
const { col: L, key: U } = y, le = St.get(U) ?? 0, fe = P(le), ue = fe && le === k, ve = (De == null ? void 0 : De.key) === U ? De.direction : null, Ce = f && !L.disableMenu ? /* @__PURE__ */ e(
|
|
6689
|
+
zl,
|
|
6690
6690
|
{
|
|
6691
6691
|
active: !!ve || fe,
|
|
6692
6692
|
canSort: ae(L),
|
|
@@ -6695,8 +6695,8 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6695
6695
|
frozen: fe,
|
|
6696
6696
|
onSort: (zt) => Xe({ key: U, direction: zt }),
|
|
6697
6697
|
onClearSort: () => Xe(null),
|
|
6698
|
-
onToggleFreeze: () =>
|
|
6699
|
-
onHide: () =>
|
|
6698
|
+
onToggleFreeze: () => gi(U),
|
|
6699
|
+
onHide: () => mi(U, L.locked)
|
|
6700
6700
|
}
|
|
6701
6701
|
) : null, Qe = L.align === "right", Wt = L.align === "right" ? "flex-end" : L.align === "center" ? "center" : "flex-start", ot = /* @__PURE__ */ u(
|
|
6702
6702
|
"span",
|
|
@@ -6724,16 +6724,16 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6724
6724
|
colSpan: x == null ? void 0 : x.colSpan,
|
|
6725
6725
|
minWidth: L.minWidth,
|
|
6726
6726
|
resizable: be ? L.resizable : !1,
|
|
6727
|
-
defaultWidth: xt(L,
|
|
6727
|
+
defaultWidth: xt(L, le),
|
|
6728
6728
|
style: {
|
|
6729
6729
|
textAlign: Rt(L.align),
|
|
6730
|
-
width: mt(L,
|
|
6730
|
+
width: mt(L, le),
|
|
6731
6731
|
position: "sticky",
|
|
6732
6732
|
top: (x == null ? void 0 : x.top) ?? 0,
|
|
6733
|
-
left: fe ? ye(
|
|
6733
|
+
left: fe ? ye(le) : void 0,
|
|
6734
6734
|
zIndex: fe ? 3 : 2,
|
|
6735
6735
|
backgroundColor: Et,
|
|
6736
|
-
boxShadow: ue ?
|
|
6736
|
+
boxShadow: ue ? Bn : void 0
|
|
6737
6737
|
},
|
|
6738
6738
|
children: /* @__PURE__ */ e(
|
|
6739
6739
|
"div",
|
|
@@ -6744,10 +6744,10 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6744
6744
|
gap: 6,
|
|
6745
6745
|
width: "100%"
|
|
6746
6746
|
},
|
|
6747
|
-
children: Qe ? /* @__PURE__ */ u(
|
|
6747
|
+
children: Qe ? /* @__PURE__ */ u(ne, { children: [
|
|
6748
6748
|
Ce,
|
|
6749
6749
|
ot
|
|
6750
|
-
] }) : /* @__PURE__ */ u(
|
|
6750
|
+
] }) : /* @__PURE__ */ u(ne, { children: [
|
|
6751
6751
|
ot,
|
|
6752
6752
|
Ce
|
|
6753
6753
|
] })
|
|
@@ -6756,14 +6756,14 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6756
6756
|
},
|
|
6757
6757
|
`th-${U}`
|
|
6758
6758
|
);
|
|
6759
|
-
},
|
|
6759
|
+
}, xi = () => {
|
|
6760
6760
|
const y = [];
|
|
6761
6761
|
for (let x = 0; x < Se.length; ) {
|
|
6762
|
-
const L = Se[x], U = L.col.headerColSpan ?? 1,
|
|
6763
|
-
y.push(dr(L,
|
|
6762
|
+
const L = Se[x], U = L.col.headerColSpan ?? 1, le = Math.max(1, Math.min(U, Se.length - x));
|
|
6763
|
+
y.push(dr(L, le > 1 ? { colSpan: le } : void 0)), x += le;
|
|
6764
6764
|
}
|
|
6765
6765
|
return y;
|
|
6766
|
-
},
|
|
6766
|
+
}, rn = (y) => /* @__PURE__ */ e(
|
|
6767
6767
|
kt,
|
|
6768
6768
|
{
|
|
6769
6769
|
rowSpan: y == null ? void 0 : y.rowSpan,
|
|
@@ -6790,10 +6790,10 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6790
6790
|
vt,
|
|
6791
6791
|
{
|
|
6792
6792
|
size: "sm",
|
|
6793
|
-
variant:
|
|
6794
|
-
checked: cr ||
|
|
6793
|
+
variant: Kr ? "indeterminate" : "select",
|
|
6794
|
+
checked: cr || Kr,
|
|
6795
6795
|
disabled: Ft.length === 0,
|
|
6796
|
-
onChange:
|
|
6796
|
+
onChange: di,
|
|
6797
6797
|
"aria-label": "Pilih semua baris di halaman ini"
|
|
6798
6798
|
}
|
|
6799
6799
|
)
|
|
@@ -6801,8 +6801,8 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6801
6801
|
)
|
|
6802
6802
|
},
|
|
6803
6803
|
"th-select"
|
|
6804
|
-
),
|
|
6805
|
-
const U =
|
|
6804
|
+
), vi = (y, x, L) => {
|
|
6805
|
+
const U = oe(y, x);
|
|
6806
6806
|
return /* @__PURE__ */ e(
|
|
6807
6807
|
Ae,
|
|
6808
6808
|
{
|
|
@@ -6824,7 +6824,7 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6824
6824
|
alignItems: "center",
|
|
6825
6825
|
justifyContent: "center"
|
|
6826
6826
|
},
|
|
6827
|
-
onClick: (
|
|
6827
|
+
onClick: (le) => le.stopPropagation(),
|
|
6828
6828
|
children: /* @__PURE__ */ e(
|
|
6829
6829
|
vt,
|
|
6830
6830
|
{
|
|
@@ -6839,11 +6839,11 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6839
6839
|
},
|
|
6840
6840
|
`tl-select-${x}`
|
|
6841
6841
|
);
|
|
6842
|
-
}, ur = Se.filter((y) => !y.col.hideOnMobile), hr = ur.find((y) => y.col.primary) ?? ur[0],
|
|
6842
|
+
}, ur = Se.filter((y) => !y.col.hideOnMobile), hr = ur.find((y) => y.col.primary) ?? ur[0], Ci = ur.filter((y) => y !== hr), wi = (y) => we((x) => {
|
|
6843
6843
|
const L = new Set(x);
|
|
6844
6844
|
return L.has(y) ? L.delete(y) : L.add(y), L;
|
|
6845
|
-
}),
|
|
6846
|
-
const
|
|
6845
|
+
}), nn = (y, x) => Ci.map(({ col: L, key: U }) => {
|
|
6846
|
+
const le = sr(L, y, x), fe = typeof le == "string" || typeof le == "number" ? /* @__PURE__ */ e(
|
|
6847
6847
|
S,
|
|
6848
6848
|
{
|
|
6849
6849
|
style: {
|
|
@@ -6852,7 +6852,7 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6852
6852
|
textOverflow: "ellipsis",
|
|
6853
6853
|
textAlign: "right"
|
|
6854
6854
|
},
|
|
6855
|
-
children:
|
|
6855
|
+
children: le
|
|
6856
6856
|
}
|
|
6857
6857
|
) : /* @__PURE__ */ e(
|
|
6858
6858
|
"div",
|
|
@@ -6863,7 +6863,7 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6863
6863
|
textOverflow: "ellipsis",
|
|
6864
6864
|
textAlign: "right"
|
|
6865
6865
|
},
|
|
6866
|
-
children:
|
|
6866
|
+
children: le
|
|
6867
6867
|
}
|
|
6868
6868
|
);
|
|
6869
6869
|
return /* @__PURE__ */ u(
|
|
@@ -6881,7 +6881,7 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6881
6881
|
{
|
|
6882
6882
|
color: "subtle",
|
|
6883
6883
|
fontWeight: "medium",
|
|
6884
|
-
style: { color:
|
|
6884
|
+
style: { color: Bl, flexShrink: 0 },
|
|
6885
6885
|
children: L.title
|
|
6886
6886
|
}
|
|
6887
6887
|
) : /* @__PURE__ */ e("div", { style: { flexShrink: 0 }, children: L.title }),
|
|
@@ -6893,7 +6893,7 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6893
6893
|
}), fr = (y, x) => {
|
|
6894
6894
|
const L = hr ? sr(hr.col, y, x) : null;
|
|
6895
6895
|
return typeof L == "string" || typeof L == "number" ? /* @__PURE__ */ e(S, { as: "span", style: Zt, children: L }) : /* @__PURE__ */ e("span", { style: Zt, children: L });
|
|
6896
|
-
},
|
|
6896
|
+
}, Di = /* @__PURE__ */ e(
|
|
6897
6897
|
m,
|
|
6898
6898
|
{
|
|
6899
6899
|
style: { display: "flex", flexDirection: "column", gap: 8, padding: 8 },
|
|
@@ -6917,7 +6917,7 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6917
6917
|
`sa-tl-sk-card-${x}`
|
|
6918
6918
|
))
|
|
6919
6919
|
}
|
|
6920
|
-
),
|
|
6920
|
+
), on = /* @__PURE__ */ e(
|
|
6921
6921
|
m,
|
|
6922
6922
|
{
|
|
6923
6923
|
fullWidth: !0,
|
|
@@ -6930,8 +6930,8 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6930
6930
|
},
|
|
6931
6931
|
children: I == null ? void 0 : I.content
|
|
6932
6932
|
}
|
|
6933
|
-
),
|
|
6934
|
-
const L =
|
|
6933
|
+
), ki = A ? Di : ie.length === 0 ? on : v === "expand" ? /* @__PURE__ */ e(m, { style: { display: "flex", flexDirection: "column" }, children: ie.map((y, x) => {
|
|
6934
|
+
const L = oe(y, x), U = se.has(L), fe = B && gt.has(L) ? Sr : Gt(o == null ? void 0 : o(y, x));
|
|
6935
6935
|
return /* @__PURE__ */ u(
|
|
6936
6936
|
"div",
|
|
6937
6937
|
{
|
|
@@ -6964,7 +6964,7 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6964
6964
|
"button",
|
|
6965
6965
|
{
|
|
6966
6966
|
type: "button",
|
|
6967
|
-
onClick: () =>
|
|
6967
|
+
onClick: () => wi(L),
|
|
6968
6968
|
style: {
|
|
6969
6969
|
flex: 1,
|
|
6970
6970
|
minWidth: 0,
|
|
@@ -6993,7 +6993,7 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6993
6993
|
]
|
|
6994
6994
|
}
|
|
6995
6995
|
),
|
|
6996
|
-
_ &&
|
|
6996
|
+
_ && bi(y, x)
|
|
6997
6997
|
] }),
|
|
6998
6998
|
U && /* @__PURE__ */ e(
|
|
6999
6999
|
"div",
|
|
@@ -7004,7 +7004,7 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
7004
7004
|
flexDirection: "column",
|
|
7005
7005
|
gap: 6
|
|
7006
7006
|
},
|
|
7007
|
-
children:
|
|
7007
|
+
children: nn(y, x)
|
|
7008
7008
|
}
|
|
7009
7009
|
)
|
|
7010
7010
|
]
|
|
@@ -7015,8 +7015,8 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
7015
7015
|
m,
|
|
7016
7016
|
{
|
|
7017
7017
|
style: { display: "flex", flexDirection: "column", gap: 8, padding: 8 },
|
|
7018
|
-
children:
|
|
7019
|
-
const L =
|
|
7018
|
+
children: ie.map((y, x) => {
|
|
7019
|
+
const L = oe(y, x), U = B && gt.has(L);
|
|
7020
7020
|
return /* @__PURE__ */ u(
|
|
7021
7021
|
m,
|
|
7022
7022
|
{
|
|
@@ -7045,15 +7045,15 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
7045
7045
|
// Baris non-selectable (atau selectable=false): tanpa checkbox.
|
|
7046
7046
|
fr(y, x)
|
|
7047
7047
|
),
|
|
7048
|
-
|
|
7049
|
-
_ &&
|
|
7048
|
+
nn(y, x),
|
|
7049
|
+
_ && yi(y, x)
|
|
7050
7050
|
]
|
|
7051
7051
|
},
|
|
7052
7052
|
L
|
|
7053
7053
|
);
|
|
7054
7054
|
})
|
|
7055
7055
|
}
|
|
7056
|
-
),
|
|
7056
|
+
), Si = l && be && de !== void 0, ln = c === "fixed" && !l && (be ? de !== void 0 : !0), Fi = ln && !be, $t = D && D.length > 0 ? D.map((y, x) => /* @__PURE__ */ e(Ze, { children: y.cells.map((L, U) => /* @__PURE__ */ e(
|
|
7057
7057
|
Ae,
|
|
7058
7058
|
{
|
|
7059
7059
|
colSpan: L.colSpan,
|
|
@@ -7062,24 +7062,24 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
7062
7062
|
children: L.content
|
|
7063
7063
|
},
|
|
7064
7064
|
`tl-foot-${x}-${U}`
|
|
7065
|
-
)) }, `tl-foot-${x}`)) : null,
|
|
7065
|
+
)) }, `tl-foot-${x}`)) : null, Ei = /* @__PURE__ */ u(
|
|
7066
7066
|
Jt,
|
|
7067
7067
|
{
|
|
7068
7068
|
className: "sa-table-layout",
|
|
7069
7069
|
fullWidth: !0,
|
|
7070
7070
|
size: i,
|
|
7071
|
-
resizable:
|
|
7072
|
-
style:
|
|
7071
|
+
resizable: Si,
|
|
7072
|
+
style: ln ? { tableLayout: "fixed" } : void 0,
|
|
7073
7073
|
onWidthsChange: rt ? Ue : void 0,
|
|
7074
7074
|
children: [
|
|
7075
|
-
|
|
7075
|
+
Fi && /* @__PURE__ */ u("colgroup", { children: [
|
|
7076
7076
|
B && /* @__PURE__ */ e("col", { style: { width: At } }),
|
|
7077
7077
|
Se.map(({ col: y, key: x }, L) => /* @__PURE__ */ e("col", { style: { width: mt(y, L) } }, `col-${x}`)),
|
|
7078
7078
|
_ && /* @__PURE__ */ e("col", { style: { width: 1 } })
|
|
7079
7079
|
] }),
|
|
7080
|
-
/* @__PURE__ */ e(
|
|
7080
|
+
/* @__PURE__ */ e(jn, { ref: nt, children: at ? /* @__PURE__ */ u(ne, { children: [
|
|
7081
7081
|
/* @__PURE__ */ u(Ze, { children: [
|
|
7082
|
-
B &&
|
|
7082
|
+
B && rn({ rowSpan: 2 }),
|
|
7083
7083
|
tt.map(
|
|
7084
7084
|
(y) => y.isGroup ? /* @__PURE__ */ e(
|
|
7085
7085
|
kt,
|
|
@@ -7118,8 +7118,8 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
7118
7118
|
(y) => y.isGroup ? y.leaves.map((x) => dr(x, { top: ut })) : []
|
|
7119
7119
|
) })
|
|
7120
7120
|
] }) : /* @__PURE__ */ u(Ze, { children: [
|
|
7121
|
-
B &&
|
|
7122
|
-
|
|
7121
|
+
B && rn(),
|
|
7122
|
+
xi(),
|
|
7123
7123
|
_ && /* @__PURE__ */ e(
|
|
7124
7124
|
kt,
|
|
7125
7125
|
{
|
|
@@ -7136,22 +7136,22 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
7136
7136
|
}
|
|
7137
7137
|
)
|
|
7138
7138
|
] }) }),
|
|
7139
|
-
/* @__PURE__ */ e(Mr, { children: A ?
|
|
7140
|
-
|
|
7139
|
+
/* @__PURE__ */ e(Mr, { children: A ? fi : ie.length === 0 ? /* @__PURE__ */ e(Ze, { children: /* @__PURE__ */ e(Ae, { colSpan: ar, children: on }) }) : /* @__PURE__ */ u(ne, { children: [
|
|
7140
|
+
ie.map((y, x) => {
|
|
7141
7141
|
const L = E == null ? void 0 : E(
|
|
7142
7142
|
y,
|
|
7143
7143
|
x,
|
|
7144
|
-
x > 0 ?
|
|
7145
|
-
),
|
|
7144
|
+
x > 0 ? ie[x - 1] : void 0
|
|
7145
|
+
), le = B && gt.has(oe(y, x)) ? Sr : Gt(o == null ? void 0 : o(y, x));
|
|
7146
7146
|
return /* @__PURE__ */ u(Ct.Fragment, { children: [
|
|
7147
7147
|
L != null && L !== !1 && /* @__PURE__ */ e(Ze, { children: /* @__PURE__ */ e(Ae, { colSpan: ar, style: { backgroundColor: Et }, children: L }) }),
|
|
7148
7148
|
/* @__PURE__ */ u(Ze, { children: [
|
|
7149
|
-
B &&
|
|
7149
|
+
B && vi(y, x, le),
|
|
7150
7150
|
Se.map(({ col: fe, key: ue }, ve) => {
|
|
7151
|
-
var
|
|
7152
|
-
const Ce = (
|
|
7151
|
+
var sn;
|
|
7152
|
+
const Ce = (sn = fe.cellProps) == null ? void 0 : sn.call(fe, y, x, ie);
|
|
7153
7153
|
if (Ce != null && Ce.hidden) return null;
|
|
7154
|
-
const Qe = P(ve), Wt = Qe && ve === k, ot = sr(fe, y, x), zt = typeof fe.bg == "function" ? fe.bg(y, x,
|
|
7154
|
+
const Qe = P(ve), Wt = Qe && ve === k, ot = sr(fe, y, x), zt = typeof fe.bg == "function" ? fe.bg(y, x, ie) : fe.bg, cn = Gt(zt) ?? le;
|
|
7155
7155
|
return /* @__PURE__ */ e(
|
|
7156
7156
|
Ae,
|
|
7157
7157
|
{
|
|
@@ -7165,8 +7165,8 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
7165
7165
|
position: Qe ? "sticky" : void 0,
|
|
7166
7166
|
left: Qe ? ye(ve) : void 0,
|
|
7167
7167
|
zIndex: Qe ? 1 : void 0,
|
|
7168
|
-
boxShadow: Wt ?
|
|
7169
|
-
...
|
|
7168
|
+
boxShadow: Wt ? Bn : void 0,
|
|
7169
|
+
...cn ? { "--sa-tl-bg": cn } : {}
|
|
7170
7170
|
},
|
|
7171
7171
|
children: typeof ot == "string" ? /* @__PURE__ */ e(
|
|
7172
7172
|
S,
|
|
@@ -7196,19 +7196,19 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
7196
7196
|
zIndex: 2,
|
|
7197
7197
|
border: "none"
|
|
7198
7198
|
},
|
|
7199
|
-
children:
|
|
7199
|
+
children: pi(y, x)
|
|
7200
7200
|
}
|
|
7201
7201
|
)
|
|
7202
7202
|
] })
|
|
7203
|
-
] },
|
|
7203
|
+
] }, oe(y, x));
|
|
7204
7204
|
}),
|
|
7205
7205
|
z != null && /* @__PURE__ */ e(Ze, { children: /* @__PURE__ */ e(Ae, { colSpan: ar, children: z }) })
|
|
7206
7206
|
] }) }),
|
|
7207
|
-
$t && /* @__PURE__ */ e(
|
|
7207
|
+
$t && /* @__PURE__ */ e(Ri, { className: C ? "sa-tl-sticky-foot" : void 0, children: $t })
|
|
7208
7208
|
]
|
|
7209
7209
|
}
|
|
7210
|
-
), mr = T ?
|
|
7211
|
-
return /* @__PURE__ */ u(
|
|
7210
|
+
), mr = T ? ie.findIndex((y, x) => oe(y, x) === T.rowKey) : -1, gr = mr >= 0 ? ie[mr] : null;
|
|
7211
|
+
return /* @__PURE__ */ u(ne, { children: [
|
|
7212
7212
|
/* @__PURE__ */ e(
|
|
7213
7213
|
m,
|
|
7214
7214
|
{
|
|
@@ -7218,10 +7218,10 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
7218
7218
|
overflow: "auto",
|
|
7219
7219
|
height: F ?? it
|
|
7220
7220
|
},
|
|
7221
|
-
children: te ? /* @__PURE__ */ u(
|
|
7222
|
-
|
|
7223
|
-
$t && !A &&
|
|
7224
|
-
] }) :
|
|
7221
|
+
children: te ? /* @__PURE__ */ u(ne, { children: [
|
|
7222
|
+
ki,
|
|
7223
|
+
$t && !A && ie.length > 0 && /* @__PURE__ */ e(m, { style: { borderTop: Bt }, children: /* @__PURE__ */ e(Jt, { fullWidth: !0, size: i, className: "sa-table-layout", children: /* @__PURE__ */ e(Mr, { children: $t }) }) })
|
|
7224
|
+
] }) : Ei
|
|
7225
7225
|
}
|
|
7226
7226
|
),
|
|
7227
7227
|
T && gr && /* @__PURE__ */ e(
|
|
@@ -7234,7 +7234,7 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
7234
7234
|
}
|
|
7235
7235
|
)
|
|
7236
7236
|
] });
|
|
7237
|
-
}, Fr = (t) => t === "asc" || t === "desc",
|
|
7237
|
+
}, Fr = (t) => t === "asc" || t === "desc", Ds = (t = {}) => {
|
|
7238
7238
|
const {
|
|
7239
7239
|
sortKeyParam: r = "sortBy",
|
|
7240
7240
|
sortOrderParam: n = "sortOrder",
|
|
@@ -7242,7 +7242,7 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
7242
7242
|
defaultSort: i = null,
|
|
7243
7243
|
paramKeys: l,
|
|
7244
7244
|
scopeId: c,
|
|
7245
|
-
storage: s =
|
|
7245
|
+
storage: s = ti
|
|
7246
7246
|
} = t, { searchParams: a, setSearchParams: d, searchQueries: f } = Ge(), p = a.toString(), g = c ? Ht.tableSort(c) : void 0, b = ce(!1);
|
|
7247
7247
|
Q(() => {
|
|
7248
7248
|
if (b.current || (b.current = !0, !g) || a.has(r) || a.has(n))
|
|
@@ -7274,16 +7274,16 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
7274
7274
|
[f, r, n, o, d]
|
|
7275
7275
|
);
|
|
7276
7276
|
return { sort: F, setSort: z, params: E };
|
|
7277
|
-
},
|
|
7277
|
+
}, Gr = ({
|
|
7278
7278
|
of: t,
|
|
7279
7279
|
render: r
|
|
7280
|
-
}) =>
|
|
7280
|
+
}) => Vi.toArray(t == null ? void 0 : t.map((n, o, i) => r(n, o, i))), he = ({
|
|
7281
7281
|
condition: t,
|
|
7282
7282
|
fallback: r,
|
|
7283
7283
|
children: n,
|
|
7284
7284
|
loading: o,
|
|
7285
7285
|
isLoading: i
|
|
7286
|
-
}) => /* @__PURE__ */ e(
|
|
7286
|
+
}) => /* @__PURE__ */ e(ne, { children: i ? o : t ? n : r }), ge = (t) => /* @__PURE__ */ e(
|
|
7287
7287
|
S,
|
|
7288
7288
|
{
|
|
7289
7289
|
...t,
|
|
@@ -7293,7 +7293,7 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
7293
7293
|
color: t.color || "gray-700",
|
|
7294
7294
|
children: t.children
|
|
7295
7295
|
}
|
|
7296
|
-
), yt = (t) => /* @__PURE__ */ e(S, { color: "red-600", fontSize: "sm", children: t.message }),
|
|
7296
|
+
), yt = (t) => /* @__PURE__ */ e(S, { color: "red-600", fontSize: "sm", children: t.message }), Hl = ({
|
|
7297
7297
|
size: t = "md",
|
|
7298
7298
|
direction: r = "vertical",
|
|
7299
7299
|
requiredTitle: n = "(Required)",
|
|
@@ -7336,7 +7336,7 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
7336
7336
|
/* @__PURE__ */ e(ge, { fontSize: t, children: i.title }),
|
|
7337
7337
|
/* @__PURE__ */ e(ge, { color: "error", fontSize: t, children: n }),
|
|
7338
7338
|
/* @__PURE__ */ e(he, { condition: !!((s = i.tooltip) != null && s.label), children: /* @__PURE__ */ e(
|
|
7339
|
-
|
|
7339
|
+
Re,
|
|
7340
7340
|
{
|
|
7341
7341
|
label: (a = i.tooltip) == null ? void 0 : a.label,
|
|
7342
7342
|
arrowPosition: (d = i.tooltip) == null ? void 0 : d.arrowPosition,
|
|
@@ -7378,7 +7378,7 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
7378
7378
|
]
|
|
7379
7379
|
}
|
|
7380
7380
|
);
|
|
7381
|
-
},
|
|
7381
|
+
}, Tl = ({
|
|
7382
7382
|
size: t = "md",
|
|
7383
7383
|
direction: r = "vertical",
|
|
7384
7384
|
requiredTitle: n = "(Required)",
|
|
@@ -7421,7 +7421,7 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
7421
7421
|
/* @__PURE__ */ e(ge, { fontSize: t, children: i.title }),
|
|
7422
7422
|
/* @__PURE__ */ e(ge, { color: "error", fontSize: t, children: n }),
|
|
7423
7423
|
/* @__PURE__ */ e(he, { condition: !!((s = i.tooltip) != null && s.label), children: /* @__PURE__ */ e(
|
|
7424
|
-
|
|
7424
|
+
Re,
|
|
7425
7425
|
{
|
|
7426
7426
|
label: (a = i.tooltip) == null ? void 0 : a.label,
|
|
7427
7427
|
arrowPosition: (d = i.tooltip) == null ? void 0 : d.arrowPosition,
|
|
@@ -7470,7 +7470,7 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
7470
7470
|
]
|
|
7471
7471
|
}
|
|
7472
7472
|
);
|
|
7473
|
-
},
|
|
7473
|
+
}, Vl = (t, r) => typeof t == "string" && t || r === "error" ? "var(--sa-border-danger)" : "var(--sa-border-subtle)", Nl = (t) => {
|
|
7474
7474
|
var s;
|
|
7475
7475
|
const [r, n] = O(!1), o = (a) => {
|
|
7476
7476
|
a.preventDefault(), a.stopPropagation();
|
|
@@ -7497,7 +7497,7 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
7497
7497
|
paddingBlock: "md",
|
|
7498
7498
|
borderRadius: "rounded-md",
|
|
7499
7499
|
style: {
|
|
7500
|
-
border: r ? "1px solid var(--sa-border-info)" : `1px solid ${
|
|
7500
|
+
border: r ? "1px solid var(--sa-border-info)" : `1px solid ${Vl(t.errorMessage, t.status)}`
|
|
7501
7501
|
},
|
|
7502
7502
|
children: [
|
|
7503
7503
|
/* @__PURE__ */ e(
|
|
@@ -7539,17 +7539,17 @@ const ys = El(Fl), Wn = 200, kr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
7539
7539
|
}
|
|
7540
7540
|
);
|
|
7541
7541
|
};
|
|
7542
|
-
function
|
|
7542
|
+
function ks(t) {
|
|
7543
7543
|
return t.split(" ").map((r) => r[0]).join("").slice(0, 2).toUpperCase();
|
|
7544
7544
|
}
|
|
7545
|
-
const
|
|
7545
|
+
const $l = (t) => {
|
|
7546
7546
|
const r = {
|
|
7547
7547
|
day: "2-digit",
|
|
7548
7548
|
month: "short",
|
|
7549
7549
|
year: "numeric"
|
|
7550
7550
|
};
|
|
7551
7551
|
return t.toLocaleDateString("id-ID", r);
|
|
7552
|
-
},
|
|
7552
|
+
}, Ss = (t) => {
|
|
7553
7553
|
const r = {
|
|
7554
7554
|
Jan: 0,
|
|
7555
7555
|
Feb: 1,
|
|
@@ -7569,7 +7569,7 @@ const Vl = (t) => {
|
|
|
7569
7569
|
const o = parseInt(n[0], 10), i = r[n[1]], l = parseInt(n[2], 10);
|
|
7570
7570
|
return isNaN(o) || isNaN(i) || isNaN(l) ? null : new Date(l, i, o);
|
|
7571
7571
|
};
|
|
7572
|
-
function
|
|
7572
|
+
function Fs(t, r = !0) {
|
|
7573
7573
|
if (!t)
|
|
7574
7574
|
return "Rp 0";
|
|
7575
7575
|
const n = typeof t == "number" ? t.toString() : t;
|
|
@@ -7584,19 +7584,19 @@ String.prototype.toTitleCase = function() {
|
|
|
7584
7584
|
String.prototype.toNumber = function() {
|
|
7585
7585
|
return Number(this);
|
|
7586
7586
|
};
|
|
7587
|
-
const
|
|
7587
|
+
const Es = (t) => {
|
|
7588
7588
|
const r = t.split(" ");
|
|
7589
7589
|
let n = r[0].charAt(0);
|
|
7590
7590
|
return r.length > 1 && (n += "" + r[1].charAt(0)), n.toUpperCase();
|
|
7591
7591
|
};
|
|
7592
|
-
function
|
|
7592
|
+
function Ls(t) {
|
|
7593
7593
|
const r = typeof t == "string" ? new Date(t) : t;
|
|
7594
7594
|
if (isNaN(r.getTime()))
|
|
7595
7595
|
throw new Error("Invalid date format");
|
|
7596
7596
|
const n = r.getFullYear(), o = String(r.getMonth() + 1).padStart(2, "0"), i = String(r.getDate()).padStart(2, "0");
|
|
7597
7597
|
return `${n}-${o}-${i}`;
|
|
7598
7598
|
}
|
|
7599
|
-
const
|
|
7599
|
+
const _l = "sa-admin", lt = (t) => `var(--${_l}-${t})`, Ms = {
|
|
7600
7600
|
base: {
|
|
7601
7601
|
borderColor: lt("base-border-color"),
|
|
7602
7602
|
textColor: lt("base-text-color"),
|
|
@@ -7614,22 +7614,22 @@ const Nl = "sa-admin", lt = (t) => `var(--${Nl}-${t})`, Ss = {
|
|
|
7614
7614
|
collapseWidth: lt("sidebar-collapse-width"),
|
|
7615
7615
|
collapseV2Width: lt("sidebar-v2-collapse-width")
|
|
7616
7616
|
}
|
|
7617
|
-
},
|
|
7617
|
+
}, Ws = 24 * 60 * 60 * 1e3, zs = (t) => {
|
|
7618
7618
|
const r = "14px poppins", o = document.createElement("canvas").getContext("2d");
|
|
7619
7619
|
o.font = r;
|
|
7620
7620
|
const i = o.measureText(t).width;
|
|
7621
7621
|
return Number(Math.ceil(i));
|
|
7622
|
-
},
|
|
7623
|
-
function
|
|
7622
|
+
}, jl = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, Pl = /--+/, Zl = /-$/;
|
|
7623
|
+
function Bs(t, r) {
|
|
7624
7624
|
return JSON.stringify(t) !== JSON.stringify(r);
|
|
7625
7625
|
}
|
|
7626
|
-
function
|
|
7626
|
+
function As(t) {
|
|
7627
7627
|
return /^(?:\+62|62|0)8[1-9][0-9]{7,10}$/.test(t);
|
|
7628
7628
|
}
|
|
7629
|
-
function
|
|
7629
|
+
function Rs(t) {
|
|
7630
7630
|
return /^[A-Za-z\s]+$/.test(t);
|
|
7631
7631
|
}
|
|
7632
|
-
const
|
|
7632
|
+
const Is = (t) => {
|
|
7633
7633
|
const r = /^[0-9]$/, n = [
|
|
7634
7634
|
"ArrowLeft",
|
|
7635
7635
|
"ArrowRight",
|
|
@@ -7641,7 +7641,7 @@ const zs = (t) => {
|
|
|
7641
7641
|
"Tab"
|
|
7642
7642
|
];
|
|
7643
7643
|
(t.ctrlKey || t.metaKey) && (t.key === "a" || t.key === "c" || t.key === "v") || !r.test(t.key) && !n.includes(t.key) && t.preventDefault();
|
|
7644
|
-
},
|
|
7644
|
+
}, Os = (t) => {
|
|
7645
7645
|
const r = /^[0-9]$/, n = [
|
|
7646
7646
|
"ArrowLeft",
|
|
7647
7647
|
"ArrowRight",
|
|
@@ -7653,7 +7653,7 @@ const zs = (t) => {
|
|
|
7653
7653
|
"Tab"
|
|
7654
7654
|
];
|
|
7655
7655
|
(t.ctrlKey || t.metaKey) && t.key === "v" || r.test(t.key) && !n.includes(t.key) && t.preventDefault();
|
|
7656
|
-
},
|
|
7656
|
+
}, Hs = (t) => {
|
|
7657
7657
|
const r = /^[0-9.]$/, n = [
|
|
7658
7658
|
"ArrowLeft",
|
|
7659
7659
|
"ArrowRight",
|
|
@@ -7665,11 +7665,11 @@ const zs = (t) => {
|
|
|
7665
7665
|
"Tab"
|
|
7666
7666
|
];
|
|
7667
7667
|
(t.ctrlKey || t.metaKey) && t.key === "v" || !r.test(t.key) && !n.includes(t.key) && t.preventDefault();
|
|
7668
|
-
},
|
|
7669
|
-
function
|
|
7670
|
-
return !(
|
|
7668
|
+
}, Ts = (t) => jl.test(t);
|
|
7669
|
+
function Vs(t) {
|
|
7670
|
+
return !(Pl.test(t) || Zl.test(t));
|
|
7671
7671
|
}
|
|
7672
|
-
const
|
|
7672
|
+
const Ns = (t) => {
|
|
7673
7673
|
const r = [
|
|
7674
7674
|
"ArrowLeft",
|
|
7675
7675
|
"ArrowRight",
|
|
@@ -7686,7 +7686,7 @@ const Os = (t) => {
|
|
|
7686
7686
|
return;
|
|
7687
7687
|
const n = t.currentTarget.value;
|
|
7688
7688
|
/^[0-9]$/.test(t.key) || t.key === "." && !n.includes(".") || t.key === "-" && n.length === 0 && !n.includes("-") || r.includes(t.key) || t.preventDefault();
|
|
7689
|
-
},
|
|
7689
|
+
}, $s = (t) => {
|
|
7690
7690
|
const r = document.getElementById(t);
|
|
7691
7691
|
if (r) {
|
|
7692
7692
|
const n = r.getBoundingClientRect(), o = window.scrollY + n.top - 80;
|
|
@@ -7696,7 +7696,7 @@ const Os = (t) => {
|
|
|
7696
7696
|
});
|
|
7697
7697
|
}
|
|
7698
7698
|
};
|
|
7699
|
-
function
|
|
7699
|
+
function Gl(t) {
|
|
7700
7700
|
const r = t.toLowerCase();
|
|
7701
7701
|
if (["kb", "mb", "gb"].find((l) => r.endsWith(l)))
|
|
7702
7702
|
return t;
|
|
@@ -7705,11 +7705,11 @@ function Pl(t) {
|
|
|
7705
7705
|
throw new Error("Invalid size format");
|
|
7706
7706
|
return i >= 1e6 ? `${(i / 1e6).toFixed(2)}MB` : i >= 1e3 ? `${(i / 1e3).toFixed(2)}KB` : `${i}B`;
|
|
7707
7707
|
}
|
|
7708
|
-
function
|
|
7708
|
+
function ql(t) {
|
|
7709
7709
|
const r = t.split("/");
|
|
7710
7710
|
return r[r.length - 1];
|
|
7711
7711
|
}
|
|
7712
|
-
const
|
|
7712
|
+
const Ul = (t) => {
|
|
7713
7713
|
var r, n;
|
|
7714
7714
|
return /* @__PURE__ */ u(
|
|
7715
7715
|
m,
|
|
@@ -7754,7 +7754,7 @@ const Gl = (t) => {
|
|
|
7754
7754
|
whiteSpace: "nowrap",
|
|
7755
7755
|
overflow: "hidden"
|
|
7756
7756
|
},
|
|
7757
|
-
children: t.defaultFile ?
|
|
7757
|
+
children: t.defaultFile ? ql(t.defaultFile.url) : (r = t.fileSelected) == null ? void 0 : r.name
|
|
7758
7758
|
}
|
|
7759
7759
|
),
|
|
7760
7760
|
t.defaultFile ? (t.defaultFile.size || t.defaultFile.date) && /* @__PURE__ */ u(me, { direction: "row", gap: "xs", align: "center", children: [
|
|
@@ -7762,9 +7762,9 @@ const Gl = (t) => {
|
|
|
7762
7762
|
t.defaultFile.size && t.defaultFile.date && /* @__PURE__ */ e(W, { name: "Dot", size: "xs" }),
|
|
7763
7763
|
t.defaultFile.date && /* @__PURE__ */ e(S, { fontSize: "sm", fontWeight: "medium", style: { textWrap: "nowrap" }, children: t.defaultFile.date })
|
|
7764
7764
|
] }) : /* @__PURE__ */ u(me, { direction: "row", gap: "xs", align: "center", children: [
|
|
7765
|
-
/* @__PURE__ */ e(S, { fontSize: "sm", fontWeight: "medium", children:
|
|
7765
|
+
/* @__PURE__ */ e(S, { fontSize: "sm", fontWeight: "medium", children: Gl(((n = t.fileSelected) == null ? void 0 : n.size.toString()) || "100000") }),
|
|
7766
7766
|
/* @__PURE__ */ e(W, { name: "Dot", size: "xs" }),
|
|
7767
|
-
/* @__PURE__ */ e(S, { fontSize: "sm", fontWeight: "medium", style: { textWrap: "nowrap" }, children:
|
|
7767
|
+
/* @__PURE__ */ e(S, { fontSize: "sm", fontWeight: "medium", style: { textWrap: "nowrap" }, children: $l(/* @__PURE__ */ new Date()) })
|
|
7768
7768
|
] })
|
|
7769
7769
|
] })
|
|
7770
7770
|
] }),
|
|
@@ -7784,7 +7784,7 @@ const Gl = (t) => {
|
|
|
7784
7784
|
]
|
|
7785
7785
|
}
|
|
7786
7786
|
);
|
|
7787
|
-
},
|
|
7787
|
+
}, Jl = ({
|
|
7788
7788
|
status: t = "default",
|
|
7789
7789
|
labelPosition: r = "outside-top",
|
|
7790
7790
|
...n
|
|
@@ -7811,7 +7811,7 @@ const Gl = (t) => {
|
|
|
7811
7811
|
alignItems: "center"
|
|
7812
7812
|
}, children: "Optional" }),
|
|
7813
7813
|
n.required && /* @__PURE__ */ e("span", { style: { fontSize: "14px", fontWeight: 500, color: "var(--sa-text-error)" }, children: "*" })
|
|
7814
|
-
] }) : null, a = n.description ? /* @__PURE__ */ e(S, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-subtlest, #6b6e76)", lineHeight: "18px" }, children: n.description }) : null, d = /* @__PURE__ */ u(
|
|
7814
|
+
] }) : null, a = n.description ? /* @__PURE__ */ e(S, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-subtlest, #6b6e76)", lineHeight: "18px" }, children: n.description }) : null, d = /* @__PURE__ */ u(ne, { children: [
|
|
7815
7815
|
n.helperText && /* @__PURE__ */ e(S, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-subtlest, #6b6e76)", lineHeight: "18px" }, children: n.helperText }),
|
|
7816
7816
|
n.errorText && t === "error" && /* @__PURE__ */ e(S, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-error, #a4133c)", lineHeight: "18px" }, children: n.errorText }),
|
|
7817
7817
|
n.errorMessage && !n.errorText && /* @__PURE__ */ e(S, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-error, #a4133c)", lineHeight: "18px" }, children: n.errorMessage })
|
|
@@ -7843,7 +7843,7 @@ const Gl = (t) => {
|
|
|
7843
7843
|
children: [
|
|
7844
7844
|
f,
|
|
7845
7845
|
(n.fileSelected || n.defaultFile) && /* @__PURE__ */ e(
|
|
7846
|
-
|
|
7846
|
+
Ul,
|
|
7847
7847
|
{
|
|
7848
7848
|
fileSelected: n.fileSelected,
|
|
7849
7849
|
defaultFile: n.defaultFile,
|
|
@@ -7852,7 +7852,7 @@ const Gl = (t) => {
|
|
|
7852
7852
|
}
|
|
7853
7853
|
),
|
|
7854
7854
|
!n.fileSelected && !n.defaultFile && /* @__PURE__ */ e(
|
|
7855
|
-
|
|
7855
|
+
Nl,
|
|
7856
7856
|
{
|
|
7857
7857
|
fileSupports: n.fileSupportOption,
|
|
7858
7858
|
isDesktop: l,
|
|
@@ -7880,7 +7880,7 @@ const Gl = (t) => {
|
|
|
7880
7880
|
p,
|
|
7881
7881
|
d
|
|
7882
7882
|
] });
|
|
7883
|
-
},
|
|
7883
|
+
}, Ql = ({
|
|
7884
7884
|
size: t = "md",
|
|
7885
7885
|
direction: r = "vertical",
|
|
7886
7886
|
requiredTitle: n = "(Required)",
|
|
@@ -7923,7 +7923,7 @@ const Gl = (t) => {
|
|
|
7923
7923
|
/* @__PURE__ */ e(ge, { fontSize: t, children: i.title }),
|
|
7924
7924
|
/* @__PURE__ */ e(ge, { color: "error", fontSize: t, children: n }),
|
|
7925
7925
|
/* @__PURE__ */ e(he, { condition: !!((s = i.tooltip) != null && s.label), children: /* @__PURE__ */ e(
|
|
7926
|
-
|
|
7926
|
+
Re,
|
|
7927
7927
|
{
|
|
7928
7928
|
label: (a = i.tooltip) == null ? void 0 : a.label,
|
|
7929
7929
|
arrowPosition: (d = i.tooltip) == null ? void 0 : d.arrowPosition,
|
|
@@ -7950,7 +7950,7 @@ const Gl = (t) => {
|
|
|
7950
7950
|
),
|
|
7951
7951
|
/* @__PURE__ */ u(me, { direction: "column", gap: "xs", children: [
|
|
7952
7952
|
/* @__PURE__ */ e(
|
|
7953
|
-
|
|
7953
|
+
Jl,
|
|
7954
7954
|
{
|
|
7955
7955
|
...i.inputProps,
|
|
7956
7956
|
status: i.errorMessage ? "error" : "default"
|
|
@@ -7961,7 +7961,7 @@ const Gl = (t) => {
|
|
|
7961
7961
|
]
|
|
7962
7962
|
}
|
|
7963
7963
|
);
|
|
7964
|
-
},
|
|
7964
|
+
}, Yl = ({
|
|
7965
7965
|
size: t = "md",
|
|
7966
7966
|
direction: r = "vertical",
|
|
7967
7967
|
requiredTitle: n = "(Required)",
|
|
@@ -8005,7 +8005,7 @@ const Gl = (t) => {
|
|
|
8005
8005
|
/* @__PURE__ */ e(ge, { fontSize: t, children: l.title }),
|
|
8006
8006
|
/* @__PURE__ */ e(ge, { color: "error", fontSize: t, children: n }),
|
|
8007
8007
|
/* @__PURE__ */ e(he, { condition: !!((a = l.tooltip) != null && a.label), children: /* @__PURE__ */ e(
|
|
8008
|
-
|
|
8008
|
+
Re,
|
|
8009
8009
|
{
|
|
8010
8010
|
label: (d = l.tooltip) == null ? void 0 : d.label,
|
|
8011
8011
|
arrowPosition: (f = l.tooltip) == null ? void 0 : f.arrowPosition,
|
|
@@ -8037,7 +8037,7 @@ const Gl = (t) => {
|
|
|
8037
8037
|
direction: r === "horizontal-inline" ? "row" : "column",
|
|
8038
8038
|
align: "flex-start",
|
|
8039
8039
|
children: /* @__PURE__ */ e(
|
|
8040
|
-
|
|
8040
|
+
Gr,
|
|
8041
8041
|
{
|
|
8042
8042
|
of: (p = l.checkBoxesList) == null ? void 0 : p.map((g) => ({
|
|
8043
8043
|
...g,
|
|
@@ -8084,7 +8084,7 @@ const Gl = (t) => {
|
|
|
8084
8084
|
]
|
|
8085
8085
|
}
|
|
8086
8086
|
);
|
|
8087
|
-
},
|
|
8087
|
+
}, Xl = ({
|
|
8088
8088
|
position: t = "vertical",
|
|
8089
8089
|
size: r = "md",
|
|
8090
8090
|
fullWidth: n = !1,
|
|
@@ -8118,7 +8118,7 @@ const Gl = (t) => {
|
|
|
8118
8118
|
align: "flex-start",
|
|
8119
8119
|
flexWrap: "wrap",
|
|
8120
8120
|
children: /* @__PURE__ */ e(
|
|
8121
|
-
|
|
8121
|
+
Gr,
|
|
8122
8122
|
{
|
|
8123
8123
|
of: (l = o.radioList) == null ? void 0 : l.map((c) => ({
|
|
8124
8124
|
...c,
|
|
@@ -8126,7 +8126,7 @@ const Gl = (t) => {
|
|
|
8126
8126
|
})),
|
|
8127
8127
|
render: ({ value: c, id: s, isChecked: a, subInput: d, label: f, description: p }) => /* @__PURE__ */ u(m, { direction: "column", gap: "xs", customMaxWidth: i, children: [
|
|
8128
8128
|
/* @__PURE__ */ e(
|
|
8129
|
-
|
|
8129
|
+
Ti,
|
|
8130
8130
|
{
|
|
8131
8131
|
id: `${s.toString()}-${c}`,
|
|
8132
8132
|
name: o.groupName || f,
|
|
@@ -8162,7 +8162,7 @@ const Gl = (t) => {
|
|
|
8162
8162
|
]
|
|
8163
8163
|
}
|
|
8164
8164
|
);
|
|
8165
|
-
},
|
|
8165
|
+
}, Kl = ({
|
|
8166
8166
|
size: t = "md",
|
|
8167
8167
|
direction: r = "vertical",
|
|
8168
8168
|
requiredTitle: n = "(Required)",
|
|
@@ -8205,7 +8205,7 @@ const Gl = (t) => {
|
|
|
8205
8205
|
/* @__PURE__ */ e(ge, { fontSize: t, children: i.title }),
|
|
8206
8206
|
/* @__PURE__ */ e(ge, { color: "error", fontSize: t, children: n }),
|
|
8207
8207
|
/* @__PURE__ */ e(he, { condition: !!((s = i.tooltip) != null && s.label), children: /* @__PURE__ */ e(
|
|
8208
|
-
|
|
8208
|
+
Re,
|
|
8209
8209
|
{
|
|
8210
8210
|
label: (a = i.tooltip) == null ? void 0 : a.label,
|
|
8211
8211
|
arrowPosition: (d = i.tooltip) == null ? void 0 : d.arrowPosition,
|
|
@@ -8232,7 +8232,7 @@ const Gl = (t) => {
|
|
|
8232
8232
|
),
|
|
8233
8233
|
/* @__PURE__ */ u(me, { direction: "column", gap: "xs", children: [
|
|
8234
8234
|
/* @__PURE__ */ e(
|
|
8235
|
-
|
|
8235
|
+
Ii,
|
|
8236
8236
|
{
|
|
8237
8237
|
ref: i.inputRef,
|
|
8238
8238
|
size: t,
|
|
@@ -8245,7 +8245,7 @@ const Gl = (t) => {
|
|
|
8245
8245
|
]
|
|
8246
8246
|
}
|
|
8247
8247
|
);
|
|
8248
|
-
},
|
|
8248
|
+
}, ec = ({
|
|
8249
8249
|
size: t = "md",
|
|
8250
8250
|
direction: r = "vertical",
|
|
8251
8251
|
requiredTitle: n = "(Required)",
|
|
@@ -8289,7 +8289,7 @@ const Gl = (t) => {
|
|
|
8289
8289
|
/* @__PURE__ */ e(ge, { fontSize: t, children: l.title }),
|
|
8290
8290
|
/* @__PURE__ */ e(ge, { color: "error", fontSize: t, children: n }),
|
|
8291
8291
|
/* @__PURE__ */ e(he, { condition: !!((s = l.tooltip) != null && s.label), children: /* @__PURE__ */ e(
|
|
8292
|
-
|
|
8292
|
+
Re,
|
|
8293
8293
|
{
|
|
8294
8294
|
label: (a = l.tooltip) == null ? void 0 : a.label,
|
|
8295
8295
|
arrowPosition: (d = l.tooltip) == null ? void 0 : d.arrowPosition,
|
|
@@ -8327,12 +8327,12 @@ const Gl = (t) => {
|
|
|
8327
8327
|
]
|
|
8328
8328
|
}
|
|
8329
8329
|
);
|
|
8330
|
-
},
|
|
8330
|
+
}, tc = ({
|
|
8331
8331
|
variant: t = "primary",
|
|
8332
8332
|
size: r = "md",
|
|
8333
8333
|
...n
|
|
8334
8334
|
}) => {
|
|
8335
|
-
const o =
|
|
8335
|
+
const o = Hi(), i = (c) => {
|
|
8336
8336
|
var a, d, f, p, g, b;
|
|
8337
8337
|
if (!c) return;
|
|
8338
8338
|
const s = n.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary" ? "var(--sa-text-subtle, #8c8f97)" : t === "secondary-danger" ? (d = (a = o == null ? void 0 : o.computed) == null ? void 0 : a.red) == null ? void 0 : d[600] : t === "secondary-primary" ? (p = (f = o == null ? void 0 : o.computed) == null ? void 0 : f.blue) == null ? void 0 : p[700] : (b = (g = o == null ? void 0 : o.computed) == null ? void 0 : g.gray) == null ? void 0 : b[50];
|
|
@@ -8372,7 +8372,7 @@ const Gl = (t) => {
|
|
|
8372
8372
|
children: l()
|
|
8373
8373
|
}
|
|
8374
8374
|
);
|
|
8375
|
-
},
|
|
8375
|
+
}, rc = (t) => /* @__PURE__ */ e(
|
|
8376
8376
|
ct.H5,
|
|
8377
8377
|
{
|
|
8378
8378
|
props: {
|
|
@@ -8380,7 +8380,7 @@ const Gl = (t) => {
|
|
|
8380
8380
|
},
|
|
8381
8381
|
children: t.title
|
|
8382
8382
|
}
|
|
8383
|
-
),
|
|
8383
|
+
), nc = ({
|
|
8384
8384
|
size: t = "md",
|
|
8385
8385
|
direction: r = "vertical",
|
|
8386
8386
|
requiredTitle: n = "(Required)",
|
|
@@ -8423,7 +8423,7 @@ const Gl = (t) => {
|
|
|
8423
8423
|
/* @__PURE__ */ e(ge, { fontSize: t, children: i.title }),
|
|
8424
8424
|
/* @__PURE__ */ e(ge, { color: "error", fontSize: t, children: n }),
|
|
8425
8425
|
/* @__PURE__ */ e(he, { condition: !!((s = i.tooltip) != null && s.label), children: /* @__PURE__ */ e(
|
|
8426
|
-
|
|
8426
|
+
Re,
|
|
8427
8427
|
{
|
|
8428
8428
|
label: (a = i.tooltip) == null ? void 0 : a.label,
|
|
8429
8429
|
arrowPosition: (d = i.tooltip) == null ? void 0 : d.arrowPosition,
|
|
@@ -8472,7 +8472,7 @@ const Gl = (t) => {
|
|
|
8472
8472
|
}
|
|
8473
8473
|
);
|
|
8474
8474
|
};
|
|
8475
|
-
async function
|
|
8475
|
+
async function ic(t, r) {
|
|
8476
8476
|
const n = new Image();
|
|
8477
8477
|
n.src = t, await new Promise((l, c) => {
|
|
8478
8478
|
n.onload = l, n.onerror = c;
|
|
@@ -8499,7 +8499,7 @@ async function rc(t, r) {
|
|
|
8499
8499
|
}, "image/png");
|
|
8500
8500
|
});
|
|
8501
8501
|
}
|
|
8502
|
-
const
|
|
8502
|
+
const Rn = {
|
|
8503
8503
|
"1:1": 1,
|
|
8504
8504
|
"4:3": 4 / 3,
|
|
8505
8505
|
"16:9": 16 / 9,
|
|
@@ -8508,7 +8508,7 @@ const An = {
|
|
|
8508
8508
|
"2:3": 2 / 3,
|
|
8509
8509
|
"3:2": 3 / 2,
|
|
8510
8510
|
"32:9": 32 / 9
|
|
8511
|
-
},
|
|
8511
|
+
}, oc = Vr(
|
|
8512
8512
|
({
|
|
8513
8513
|
handleUpload: t,
|
|
8514
8514
|
urlImage: r,
|
|
@@ -8541,7 +8541,7 @@ const An = {
|
|
|
8541
8541
|
}, J = async () => {
|
|
8542
8542
|
if (!(!F || !A))
|
|
8543
8543
|
try {
|
|
8544
|
-
const T = await
|
|
8544
|
+
const T = await ic(F, A);
|
|
8545
8545
|
if (a && T.size > a * 1024 * 1024) {
|
|
8546
8546
|
d == null || d(`Ukuran file maksimal ${a}MB`);
|
|
8547
8547
|
return;
|
|
@@ -8555,13 +8555,13 @@ const An = {
|
|
|
8555
8555
|
}, X = ce(null), $ = () => {
|
|
8556
8556
|
X.current && X.current.click();
|
|
8557
8557
|
};
|
|
8558
|
-
|
|
8558
|
+
Ni(f, () => ({
|
|
8559
8559
|
openFileDialog: () => {
|
|
8560
8560
|
var T;
|
|
8561
8561
|
(T = X.current) == null || T.click();
|
|
8562
8562
|
}
|
|
8563
8563
|
}));
|
|
8564
|
-
const j = parseInt(l, 10), K =
|
|
8564
|
+
const j = parseInt(l, 10), K = Rn[c];
|
|
8565
8565
|
let te, _;
|
|
8566
8566
|
return K >= 1 ? (_ = j, te = j * K) : (te = j, _ = j / K), /* @__PURE__ */ u(
|
|
8567
8567
|
m,
|
|
@@ -8696,7 +8696,7 @@ const An = {
|
|
|
8696
8696
|
)
|
|
8697
8697
|
}
|
|
8698
8698
|
),
|
|
8699
|
-
M &&
|
|
8699
|
+
M && $i.createPortal(
|
|
8700
8700
|
/* @__PURE__ */ e(
|
|
8701
8701
|
"div",
|
|
8702
8702
|
{
|
|
@@ -8734,12 +8734,12 @@ const An = {
|
|
|
8734
8734
|
backgroundColor: "var(--sa-color-gray-100)"
|
|
8735
8735
|
},
|
|
8736
8736
|
children: F && /* @__PURE__ */ e(
|
|
8737
|
-
|
|
8737
|
+
_i,
|
|
8738
8738
|
{
|
|
8739
8739
|
image: F,
|
|
8740
8740
|
crop: z,
|
|
8741
8741
|
zoom: C,
|
|
8742
|
-
aspect: c ?
|
|
8742
|
+
aspect: c ? Rn[c] : void 0,
|
|
8743
8743
|
onCropChange: D,
|
|
8744
8744
|
onZoomChange: I,
|
|
8745
8745
|
onCropComplete: R,
|
|
@@ -8777,7 +8777,7 @@ const An = {
|
|
|
8777
8777
|
}
|
|
8778
8778
|
);
|
|
8779
8779
|
}
|
|
8780
|
-
),
|
|
8780
|
+
), lc = ({
|
|
8781
8781
|
size: t = "md",
|
|
8782
8782
|
direction: r = "vertical",
|
|
8783
8783
|
requiredTitle: n = "(Required)",
|
|
@@ -8821,7 +8821,7 @@ const An = {
|
|
|
8821
8821
|
/* @__PURE__ */ e(ge, { fontSize: t, children: l.title }),
|
|
8822
8822
|
/* @__PURE__ */ e(ge, { color: "error", fontSize: t, children: n }),
|
|
8823
8823
|
/* @__PURE__ */ e(he, { condition: !!((a = l.tooltip) != null && a.label), children: /* @__PURE__ */ e(
|
|
8824
|
-
|
|
8824
|
+
Re,
|
|
8825
8825
|
{
|
|
8826
8826
|
label: (d = l.tooltip) == null ? void 0 : d.label,
|
|
8827
8827
|
arrowPosition: (f = l.tooltip) == null ? void 0 : f.arrowPosition,
|
|
@@ -8847,13 +8847,13 @@ const An = {
|
|
|
8847
8847
|
}
|
|
8848
8848
|
),
|
|
8849
8849
|
/* @__PURE__ */ u(me, { direction: "column", gap: "xs", children: [
|
|
8850
|
-
/* @__PURE__ */ e(
|
|
8850
|
+
/* @__PURE__ */ e(oc, { ...l.inputProps }),
|
|
8851
8851
|
!c && l.errorMessage && /* @__PURE__ */ e(yt, { message: l.errorMessage })
|
|
8852
8852
|
] })
|
|
8853
8853
|
]
|
|
8854
8854
|
}
|
|
8855
8855
|
);
|
|
8856
|
-
},
|
|
8856
|
+
}, cc = ({
|
|
8857
8857
|
size: t = "md",
|
|
8858
8858
|
direction: r = "vertical",
|
|
8859
8859
|
requiredTitle: n = "(Required)",
|
|
@@ -8896,7 +8896,7 @@ const An = {
|
|
|
8896
8896
|
/* @__PURE__ */ e(ge, { fontSize: t, children: i.title }),
|
|
8897
8897
|
/* @__PURE__ */ e(ge, { color: "error", fontSize: t, children: n }),
|
|
8898
8898
|
/* @__PURE__ */ e(he, { condition: !!((c = i.tooltip) != null && c.label), children: /* @__PURE__ */ e(
|
|
8899
|
-
|
|
8899
|
+
Re,
|
|
8900
8900
|
{
|
|
8901
8901
|
label: (s = i.tooltip) == null ? void 0 : s.label,
|
|
8902
8902
|
arrowPosition: (a = i.tooltip) == null ? void 0 : a.arrowPosition,
|
|
@@ -8925,7 +8925,7 @@ const An = {
|
|
|
8925
8925
|
]
|
|
8926
8926
|
}
|
|
8927
8927
|
);
|
|
8928
|
-
},
|
|
8928
|
+
}, _s = ({
|
|
8929
8929
|
items: t,
|
|
8930
8930
|
id: r,
|
|
8931
8931
|
handleOnUpdate: n,
|
|
@@ -8962,20 +8962,20 @@ const An = {
|
|
|
8962
8962
|
)
|
|
8963
8963
|
}
|
|
8964
8964
|
);
|
|
8965
|
-
},
|
|
8966
|
-
InputText:
|
|
8967
|
-
InputDropdown:
|
|
8968
|
-
InputSingleFile:
|
|
8969
|
-
CheckBoxOptions:
|
|
8970
|
-
RadioOptions:
|
|
8971
|
-
InputTextArea:
|
|
8972
|
-
ToggleForm:
|
|
8973
|
-
ActionButton:
|
|
8974
|
-
FormTitle:
|
|
8975
|
-
InputDate:
|
|
8976
|
-
InputImgFile:
|
|
8977
|
-
Custom:
|
|
8978
|
-
},
|
|
8965
|
+
}, js = {
|
|
8966
|
+
InputText: Hl,
|
|
8967
|
+
InputDropdown: Tl,
|
|
8968
|
+
InputSingleFile: Ql,
|
|
8969
|
+
CheckBoxOptions: Yl,
|
|
8970
|
+
RadioOptions: Xl,
|
|
8971
|
+
InputTextArea: Kl,
|
|
8972
|
+
ToggleForm: ec,
|
|
8973
|
+
ActionButton: tc,
|
|
8974
|
+
FormTitle: rc,
|
|
8975
|
+
InputDate: nc,
|
|
8976
|
+
InputImgFile: lc,
|
|
8977
|
+
Custom: cc
|
|
8978
|
+
}, sc = ({ customBottom: t }) => {
|
|
8979
8979
|
const [r, n] = O(!1), o = () => {
|
|
8980
8980
|
window.scrollY > window.screenY ? n(!0) : n(!1);
|
|
8981
8981
|
}, i = () => {
|
|
@@ -9027,7 +9027,7 @@ const An = {
|
|
|
9027
9027
|
)
|
|
9028
9028
|
}
|
|
9029
9029
|
);
|
|
9030
|
-
}, Pe = "sa-sidepanel-item",
|
|
9030
|
+
}, Pe = "sa-sidepanel-item", In = "sa-sidepanel-item-styles", ac = "inset 3.5px 0 0 0 var(--sa-border-focused, #1a4fa0)", dc = "inset -3.5px 0 0 0 var(--sa-border-focused, #1a4fa0)", uc = `
|
|
9031
9031
|
.${Pe} {
|
|
9032
9032
|
display: block;
|
|
9033
9033
|
box-sizing: border-box;
|
|
@@ -9065,11 +9065,11 @@ const An = {
|
|
|
9065
9065
|
/* Accent bar — sign of the offset picks the edge it hugs. */
|
|
9066
9066
|
.${Pe}[data-accent="left"]:focus-visible,
|
|
9067
9067
|
.${Pe}[data-accent="left"][data-active="true"] {
|
|
9068
|
-
box-shadow: ${
|
|
9068
|
+
box-shadow: ${ac};
|
|
9069
9069
|
}
|
|
9070
9070
|
.${Pe}[data-accent="right"]:focus-visible,
|
|
9071
9071
|
.${Pe}[data-accent="right"][data-active="true"] {
|
|
9072
|
-
box-shadow: ${
|
|
9072
|
+
box-shadow: ${dc};
|
|
9073
9073
|
}
|
|
9074
9074
|
.${Pe}[data-active="true"]:hover {
|
|
9075
9075
|
background: var(--sa-background-brand-subtlest, #e6edf6);
|
|
@@ -9079,12 +9079,12 @@ const An = {
|
|
|
9079
9079
|
opacity: 0.55;
|
|
9080
9080
|
}
|
|
9081
9081
|
`;
|
|
9082
|
-
function
|
|
9083
|
-
if (typeof document > "u" || document.getElementById(
|
|
9082
|
+
function hc() {
|
|
9083
|
+
if (typeof document > "u" || document.getElementById(In)) return;
|
|
9084
9084
|
const t = document.createElement("style");
|
|
9085
|
-
t.id =
|
|
9085
|
+
t.id = In, t.textContent = uc, document.head.appendChild(t);
|
|
9086
9086
|
}
|
|
9087
|
-
const
|
|
9087
|
+
const Ps = ({
|
|
9088
9088
|
active: t = !1,
|
|
9089
9089
|
accentSide: r = "left",
|
|
9090
9090
|
onClick: n,
|
|
@@ -9098,7 +9098,7 @@ const Ns = ({
|
|
|
9098
9098
|
className: f,
|
|
9099
9099
|
style: p,
|
|
9100
9100
|
"aria-label": g
|
|
9101
|
-
}) => (Q(
|
|
9101
|
+
}) => (Q(hc, []), /* @__PURE__ */ e(
|
|
9102
9102
|
"button",
|
|
9103
9103
|
{
|
|
9104
9104
|
type: "button",
|
|
@@ -9168,7 +9168,7 @@ const Ns = ({
|
|
|
9168
9168
|
}
|
|
9169
9169
|
)
|
|
9170
9170
|
}
|
|
9171
|
-
)), Er = 18,
|
|
9171
|
+
)), Er = 18, fc = 40, On = "280ms cubic-bezier(0.4, 0, 0.2, 1)", si = "var(--sa-border-subtle, #0b120e24)", mc = `1px solid ${si}`, Hn = "var(--sa-background-white, #ffffff)", Zs = ({
|
|
9172
9172
|
children: t,
|
|
9173
9173
|
header: r,
|
|
9174
9174
|
collapsed: n,
|
|
@@ -9199,7 +9199,7 @@ const Ns = ({
|
|
|
9199
9199
|
bottom: 0,
|
|
9200
9200
|
width: l,
|
|
9201
9201
|
transform: `translateX(${R ? J ? "-100%" : "100%" : "0"})`,
|
|
9202
|
-
transition: `transform ${
|
|
9202
|
+
transition: `transform ${On}`,
|
|
9203
9203
|
zIndex: 50,
|
|
9204
9204
|
...J ? { left: 0 } : { right: 0 },
|
|
9205
9205
|
// boxShadow: isLeft
|
|
@@ -9213,7 +9213,7 @@ const Ns = ({
|
|
|
9213
9213
|
width: R ? 0 : l,
|
|
9214
9214
|
flexShrink: 0,
|
|
9215
9215
|
height: $,
|
|
9216
|
-
transition: `width ${
|
|
9216
|
+
transition: `width ${On}`,
|
|
9217
9217
|
...b
|
|
9218
9218
|
}, V = /* @__PURE__ */ u(
|
|
9219
9219
|
m,
|
|
@@ -9231,7 +9231,7 @@ const Ns = ({
|
|
|
9231
9231
|
overflow: "overflow-hidden",
|
|
9232
9232
|
borderStyle: R ? void 0 : J ? "border-solid-r" : "border-solid-l",
|
|
9233
9233
|
borderWidth: R ? void 0 : J ? "border-r" : "border-l",
|
|
9234
|
-
style: { backgroundColor:
|
|
9234
|
+
style: { backgroundColor: Hn, borderColor: si },
|
|
9235
9235
|
children: /* @__PURE__ */ u(
|
|
9236
9236
|
m,
|
|
9237
9237
|
{
|
|
@@ -9269,11 +9269,11 @@ const Ns = ({
|
|
|
9269
9269
|
"aria-expanded": !R,
|
|
9270
9270
|
"aria-pressed": R,
|
|
9271
9271
|
customWidth: Er,
|
|
9272
|
-
customHeight:
|
|
9272
|
+
customHeight: fc,
|
|
9273
9273
|
style: {
|
|
9274
9274
|
...K,
|
|
9275
|
-
backgroundColor:
|
|
9276
|
-
border:
|
|
9275
|
+
backgroundColor: Hn,
|
|
9276
|
+
border: mc,
|
|
9277
9277
|
zIndex: 5,
|
|
9278
9278
|
...J ? {
|
|
9279
9279
|
right: -Er,
|
|
@@ -9322,7 +9322,7 @@ const Ns = ({
|
|
|
9322
9322
|
}
|
|
9323
9323
|
),
|
|
9324
9324
|
!_ && !J ? V : null,
|
|
9325
|
-
_ && /* @__PURE__ */ u(
|
|
9325
|
+
_ && /* @__PURE__ */ u(ne, { children: [
|
|
9326
9326
|
!R && /* @__PURE__ */ e(
|
|
9327
9327
|
"div",
|
|
9328
9328
|
{
|
|
@@ -9341,14 +9341,14 @@ const Ns = ({
|
|
|
9341
9341
|
]
|
|
9342
9342
|
}
|
|
9343
9343
|
);
|
|
9344
|
-
},
|
|
9344
|
+
}, Tn = "--app-aside-width", gc = (t) => typeof t == "number" ? `${t}px` : t, Gs = ({ pageLayout: t, children: r, wrapperProps: n, containerProps: o }) => {
|
|
9345
9345
|
const i = ze("md"), l = (o == null ? void 0 : o.customWidth) ?? 264;
|
|
9346
9346
|
return ft(() => {
|
|
9347
9347
|
const c = document.documentElement;
|
|
9348
9348
|
return c.style.setProperty(
|
|
9349
|
-
|
|
9350
|
-
i ?
|
|
9351
|
-
), () => c.style.removeProperty(
|
|
9349
|
+
Tn,
|
|
9350
|
+
i ? gc(l) : "0px"
|
|
9351
|
+
), () => c.style.removeProperty(Tn);
|
|
9352
9352
|
}, [i, l]), /* @__PURE__ */ u(
|
|
9353
9353
|
m,
|
|
9354
9354
|
{
|
|
@@ -9387,7 +9387,7 @@ const Ns = ({
|
|
|
9387
9387
|
]
|
|
9388
9388
|
}
|
|
9389
9389
|
);
|
|
9390
|
-
},
|
|
9390
|
+
}, Vn = "--sa-floating-footer-height", pc = (t) => typeof t == "number" ? `${t}px` : t, qs = ({
|
|
9391
9391
|
children: t,
|
|
9392
9392
|
withScrollToTopButton: r = !1,
|
|
9393
9393
|
scrollToTopButtonProps: n,
|
|
@@ -9395,17 +9395,17 @@ const Ns = ({
|
|
|
9395
9395
|
offsetRight: i,
|
|
9396
9396
|
containerProps: l
|
|
9397
9397
|
}) => {
|
|
9398
|
-
const c = ce(null), s = i != null ?
|
|
9398
|
+
const c = ce(null), s = i != null ? pc(i) : o ? "var(--app-aside-width, 0px)" : "0px";
|
|
9399
9399
|
return ft(() => {
|
|
9400
9400
|
const a = document.documentElement, d = () => {
|
|
9401
9401
|
var g;
|
|
9402
9402
|
const p = ((g = c.current) == null ? void 0 : g.getBoundingClientRect().height) ?? 0;
|
|
9403
|
-
a.style.setProperty(
|
|
9403
|
+
a.style.setProperty(Vn, `${p}px`);
|
|
9404
9404
|
};
|
|
9405
9405
|
d();
|
|
9406
9406
|
const f = new ResizeObserver(d);
|
|
9407
9407
|
return c.current && f.observe(c.current), () => {
|
|
9408
|
-
f.disconnect(), a.style.removeProperty(
|
|
9408
|
+
f.disconnect(), a.style.removeProperty(Vn);
|
|
9409
9409
|
};
|
|
9410
9410
|
}, []), /* @__PURE__ */ e(m, { direction: "column", position: "absolute", width: "width-full", style: { zIndex: "var(--app-footer-zindex, 998)" }, children: /* @__PURE__ */ u(
|
|
9411
9411
|
m,
|
|
@@ -9430,7 +9430,7 @@ const Ns = ({
|
|
|
9430
9430
|
borderWidth: "border-t",
|
|
9431
9431
|
children: [
|
|
9432
9432
|
r && /* @__PURE__ */ e(
|
|
9433
|
-
|
|
9433
|
+
sc,
|
|
9434
9434
|
{
|
|
9435
9435
|
...n,
|
|
9436
9436
|
customBottom: (n == null ? void 0 : n.customBottom) || "5.7rem"
|
|
@@ -9440,13 +9440,13 @@ const Ns = ({
|
|
|
9440
9440
|
]
|
|
9441
9441
|
}
|
|
9442
9442
|
) });
|
|
9443
|
-
},
|
|
9444
|
-
|
|
9443
|
+
}, Us = ({ fields: t }) => /* @__PURE__ */ e(m, { display: "flex", direction: "column", gap: "lg", children: /* @__PURE__ */ e(
|
|
9444
|
+
Gr,
|
|
9445
9445
|
{
|
|
9446
9446
|
of: t,
|
|
9447
|
-
render: (r, n) => /* @__PURE__ */ e(
|
|
9447
|
+
render: (r, n) => /* @__PURE__ */ e(yc, { ...r }, n)
|
|
9448
9448
|
}
|
|
9449
|
-
) }),
|
|
9449
|
+
) }), yc = ({ title: t, value: r, icon: n }) => /* @__PURE__ */ u(m, { display: "flex", direction: "column", gap: "sm", children: [
|
|
9450
9450
|
n ? /* @__PURE__ */ u(m, { display: "flex", direction: "row", align: "center", gap: "xs", children: [
|
|
9451
9451
|
/* @__PURE__ */ e(W, { name: n, color: "subtle" }),
|
|
9452
9452
|
/* @__PURE__ */ e(S, { color: "gray-500", variant: "sub-h3", children: t })
|
|
@@ -9456,8 +9456,8 @@ const Ns = ({
|
|
|
9456
9456
|
silhouette: "#A7B0AC",
|
|
9457
9457
|
accent: "#78867F"
|
|
9458
9458
|
};
|
|
9459
|
-
function
|
|
9460
|
-
return /* @__PURE__ */ e(
|
|
9459
|
+
function bc({ width: t, height: r }) {
|
|
9460
|
+
return /* @__PURE__ */ e(ne, { children: /* @__PURE__ */ u(
|
|
9461
9461
|
"svg",
|
|
9462
9462
|
{
|
|
9463
9463
|
width: t || "100",
|
|
@@ -9599,7 +9599,7 @@ function pc({ width: t, height: r }) {
|
|
|
9599
9599
|
}
|
|
9600
9600
|
) });
|
|
9601
9601
|
}
|
|
9602
|
-
const
|
|
9602
|
+
const Js = ({
|
|
9603
9603
|
title: t = "create",
|
|
9604
9604
|
children: r,
|
|
9605
9605
|
onClickAction: n,
|
|
@@ -9614,9 +9614,9 @@ const Zs = ({
|
|
|
9614
9614
|
const f = () => {
|
|
9615
9615
|
switch (o) {
|
|
9616
9616
|
case "primary":
|
|
9617
|
-
return /* @__PURE__ */ e(
|
|
9617
|
+
return /* @__PURE__ */ e(ne, { children: l ? /* @__PURE__ */ e(N, { primary: !0, iconLeft: l, onClick: n, children: a || t }) : /* @__PURE__ */ e(N, { primary: !0, onClick: n, children: a || t }) });
|
|
9618
9618
|
case "secondary":
|
|
9619
|
-
return /* @__PURE__ */ e(
|
|
9619
|
+
return /* @__PURE__ */ e(ne, { children: l ? /* @__PURE__ */ e(N, { secondary: !0, iconLeft: l, onClick: n, children: i ? /* @__PURE__ */ e(
|
|
9620
9620
|
S,
|
|
9621
9621
|
{
|
|
9622
9622
|
fontFamily: "Poppins",
|
|
@@ -9627,9 +9627,9 @@ const Zs = ({
|
|
|
9627
9627
|
}
|
|
9628
9628
|
) : t }) : /* @__PURE__ */ e(N, { secondary: !0, onClick: n, children: a || t }) });
|
|
9629
9629
|
case "success":
|
|
9630
|
-
return /* @__PURE__ */ e(
|
|
9630
|
+
return /* @__PURE__ */ e(ne, { children: l ? /* @__PURE__ */ e(N, { success: !0, iconLeft: l, onClick: n, children: a || t }) : /* @__PURE__ */ e(N, { success: !0, onClick: n, children: a || t }) });
|
|
9631
9631
|
default:
|
|
9632
|
-
return /* @__PURE__ */ e(
|
|
9632
|
+
return /* @__PURE__ */ e(ne, { children: l ? /* @__PURE__ */ e(N, { primary: !0, iconLeft: l, onClick: n, children: a || t }) : /* @__PURE__ */ e(N, { primary: !0, onClick: n, children: a || t }) });
|
|
9633
9633
|
}
|
|
9634
9634
|
};
|
|
9635
9635
|
return /* @__PURE__ */ u(
|
|
@@ -9644,7 +9644,7 @@ const Zs = ({
|
|
|
9644
9644
|
marginBlock: "auto",
|
|
9645
9645
|
customHeight: s,
|
|
9646
9646
|
children: [
|
|
9647
|
-
d || /* @__PURE__ */ e(
|
|
9647
|
+
d || /* @__PURE__ */ e(bc, {}),
|
|
9648
9648
|
/* @__PURE__ */ e(m, { direction: "column", children: r.map((p, g) => /* @__PURE__ */ e(
|
|
9649
9649
|
ct.Body1,
|
|
9650
9650
|
{
|
|
@@ -9670,8 +9670,8 @@ const Zs = ({
|
|
|
9670
9670
|
c000000: "#000000",
|
|
9671
9671
|
cFFFFFF: "#FFFFFF"
|
|
9672
9672
|
};
|
|
9673
|
-
function
|
|
9674
|
-
return /* @__PURE__ */ e(
|
|
9673
|
+
function xc({ width: t, height: r }) {
|
|
9674
|
+
return /* @__PURE__ */ e(ne, { children: /* @__PURE__ */ u(
|
|
9675
9675
|
"svg",
|
|
9676
9676
|
{
|
|
9677
9677
|
width: t,
|
|
@@ -9873,7 +9873,7 @@ function yc({ width: t, height: r }) {
|
|
|
9873
9873
|
}
|
|
9874
9874
|
) });
|
|
9875
9875
|
}
|
|
9876
|
-
function
|
|
9876
|
+
function Qs({ onClick: t }) {
|
|
9877
9877
|
const r = ze("md");
|
|
9878
9878
|
return /* @__PURE__ */ u(
|
|
9879
9879
|
m,
|
|
@@ -9886,7 +9886,7 @@ function Gs({ onClick: t }) {
|
|
|
9886
9886
|
justify: "center",
|
|
9887
9887
|
gap: "md",
|
|
9888
9888
|
children: [
|
|
9889
|
-
/* @__PURE__ */ e(
|
|
9889
|
+
/* @__PURE__ */ e(xc, { width: r ? 600 : 300 }),
|
|
9890
9890
|
/* @__PURE__ */ e(
|
|
9891
9891
|
S,
|
|
9892
9892
|
{
|
|
@@ -9931,8 +9931,8 @@ const re = {
|
|
|
9931
9931
|
cF4F4F4: "#F4F4F4",
|
|
9932
9932
|
cFFFFFF: "#FFFFFF"
|
|
9933
9933
|
};
|
|
9934
|
-
function
|
|
9935
|
-
return /* @__PURE__ */ e(
|
|
9934
|
+
function vc({ width: t, height: r }) {
|
|
9935
|
+
return /* @__PURE__ */ e(ne, { children: /* @__PURE__ */ u(
|
|
9936
9936
|
"svg",
|
|
9937
9937
|
{
|
|
9938
9938
|
width: t,
|
|
@@ -10146,7 +10146,7 @@ function bc({ width: t, height: r }) {
|
|
|
10146
10146
|
}
|
|
10147
10147
|
) });
|
|
10148
10148
|
}
|
|
10149
|
-
function
|
|
10149
|
+
function Ys({ onClick: t }) {
|
|
10150
10150
|
const r = ze("md");
|
|
10151
10151
|
return /* @__PURE__ */ u(
|
|
10152
10152
|
m,
|
|
@@ -10159,7 +10159,7 @@ function qs({ onClick: t }) {
|
|
|
10159
10159
|
justify: "center",
|
|
10160
10160
|
gap: "md",
|
|
10161
10161
|
children: [
|
|
10162
|
-
/* @__PURE__ */ e(
|
|
10162
|
+
/* @__PURE__ */ e(vc, { width: r ? 600 : 300 }),
|
|
10163
10163
|
/* @__PURE__ */ e(S, { fontWeight: "bold", fontSize: r ? "3xl" : "2xl", children: "We Are Sorry ..." }),
|
|
10164
10164
|
t && /* @__PURE__ */ e(N, { size: r ? "md" : "xs", onClick: t, children: "Go Back" })
|
|
10165
10165
|
]
|
|
@@ -10183,8 +10183,8 @@ const h = {
|
|
|
10183
10183
|
cFFE18B: "#FFE18B",
|
|
10184
10184
|
cFFFFFF: "#FFFFFF"
|
|
10185
10185
|
};
|
|
10186
|
-
function
|
|
10187
|
-
return /* @__PURE__ */ e(
|
|
10186
|
+
function Cc({ width: t, height: r }) {
|
|
10187
|
+
return /* @__PURE__ */ e(ne, { children: /* @__PURE__ */ u(
|
|
10188
10188
|
"svg",
|
|
10189
10189
|
{
|
|
10190
10190
|
width: t,
|
|
@@ -10855,7 +10855,7 @@ function xc({ width: t, height: r }) {
|
|
|
10855
10855
|
}
|
|
10856
10856
|
) });
|
|
10857
10857
|
}
|
|
10858
|
-
function
|
|
10858
|
+
function Xs({ onClick: t }) {
|
|
10859
10859
|
const r = ze("md");
|
|
10860
10860
|
return /* @__PURE__ */ u(
|
|
10861
10861
|
m,
|
|
@@ -10869,7 +10869,7 @@ function Us({ onClick: t }) {
|
|
|
10869
10869
|
gap: "md",
|
|
10870
10870
|
overflow: "overflow-hidden",
|
|
10871
10871
|
children: [
|
|
10872
|
-
/* @__PURE__ */ e(
|
|
10872
|
+
/* @__PURE__ */ e(Cc, { width: r ? 600 : 300 }),
|
|
10873
10873
|
/* @__PURE__ */ e(
|
|
10874
10874
|
S,
|
|
10875
10875
|
{
|
|
@@ -10893,11 +10893,11 @@ function Us({ onClick: t }) {
|
|
|
10893
10893
|
}
|
|
10894
10894
|
);
|
|
10895
10895
|
}
|
|
10896
|
-
const
|
|
10896
|
+
const Ks = (t) => {
|
|
10897
10897
|
var n, o, i, l, c;
|
|
10898
10898
|
const r = ze("md");
|
|
10899
10899
|
return /* @__PURE__ */ u(
|
|
10900
|
-
|
|
10900
|
+
Ir,
|
|
10901
10901
|
{
|
|
10902
10902
|
isShow: t.isShow,
|
|
10903
10903
|
onHide: t.onHide,
|
|
@@ -10909,9 +10909,9 @@ const Js = (t) => {
|
|
|
10909
10909
|
}
|
|
10910
10910
|
},
|
|
10911
10911
|
children: [
|
|
10912
|
-
/* @__PURE__ */ e(
|
|
10913
|
-
/* @__PURE__ */ e(
|
|
10914
|
-
/* @__PURE__ */ e(
|
|
10912
|
+
/* @__PURE__ */ e(Nn, { ...t.dialogTitleProps, children: typeof t.title == "string" ? /* @__PURE__ */ e(S, { fontSize: "lg", fontWeight: "medium", children: t.title }) : t.title }),
|
|
10913
|
+
/* @__PURE__ */ e(Or, { children: typeof t.description == "string" ? /* @__PURE__ */ e(S, { fontSize: "md", lineHeight: "leading-6", color: "brand", children: t.description }) : t.description }),
|
|
10914
|
+
/* @__PURE__ */ e($n, { children: /* @__PURE__ */ e(
|
|
10915
10915
|
m,
|
|
10916
10916
|
{
|
|
10917
10917
|
display: "flex",
|
|
@@ -10957,7 +10957,7 @@ const Js = (t) => {
|
|
|
10957
10957
|
},
|
|
10958
10958
|
t.key
|
|
10959
10959
|
);
|
|
10960
|
-
},
|
|
10960
|
+
}, ea = st(
|
|
10961
10961
|
({
|
|
10962
10962
|
children: t,
|
|
10963
10963
|
height: r,
|
|
@@ -11022,7 +11022,7 @@ const Js = (t) => {
|
|
|
11022
11022
|
...(g == null ? void 0 : g.style) ?? {}
|
|
11023
11023
|
},
|
|
11024
11024
|
children: [
|
|
11025
|
-
c !== null && A ? /* @__PURE__ */ e(
|
|
11025
|
+
c !== null && A ? /* @__PURE__ */ e(Kn, { ...F, children: I() }) : null,
|
|
11026
11026
|
/* @__PURE__ */ e(
|
|
11027
11027
|
m,
|
|
11028
11028
|
{
|
|
@@ -11037,12 +11037,12 @@ const Js = (t) => {
|
|
|
11037
11037
|
children: t
|
|
11038
11038
|
}
|
|
11039
11039
|
),
|
|
11040
|
-
s ? /* @__PURE__ */ e(
|
|
11040
|
+
s ? /* @__PURE__ */ e(ei, { ...v, children: s }) : null
|
|
11041
11041
|
]
|
|
11042
11042
|
}
|
|
11043
11043
|
);
|
|
11044
11044
|
}
|
|
11045
|
-
),
|
|
11045
|
+
), ta = Ct.memo(
|
|
11046
11046
|
({ value: t, options: r = [], onChange: n, multiple: o }) => {
|
|
11047
11047
|
const i = (t == null ? void 0 : t.map((s) => s.value)) || [], l = (r == null ? void 0 : r.filter((s) => i.includes(s.value))) || [], c = (s) => {
|
|
11048
11048
|
const a = [...l];
|
|
@@ -11060,23 +11060,23 @@ const Js = (t) => {
|
|
|
11060
11060
|
)) });
|
|
11061
11061
|
}
|
|
11062
11062
|
);
|
|
11063
|
-
function Gr(t) {
|
|
11064
|
-
return null;
|
|
11065
|
-
}
|
|
11066
|
-
Gr.displayName = "LayoutDialog.Header";
|
|
11067
11063
|
function qr(t) {
|
|
11068
11064
|
return null;
|
|
11069
11065
|
}
|
|
11070
|
-
qr.displayName = "LayoutDialog.
|
|
11066
|
+
qr.displayName = "LayoutDialog.Header";
|
|
11071
11067
|
function Ur(t) {
|
|
11072
11068
|
return null;
|
|
11073
11069
|
}
|
|
11074
|
-
Ur.displayName = "LayoutDialog.
|
|
11070
|
+
Ur.displayName = "LayoutDialog.Body";
|
|
11075
11071
|
function Jr(t) {
|
|
11076
11072
|
return null;
|
|
11077
11073
|
}
|
|
11078
|
-
Jr.displayName = "LayoutDialog.
|
|
11079
|
-
|
|
11074
|
+
Jr.displayName = "LayoutDialog.Aside";
|
|
11075
|
+
function Qr(t) {
|
|
11076
|
+
return null;
|
|
11077
|
+
}
|
|
11078
|
+
Qr.displayName = "LayoutDialog.Footer";
|
|
11079
|
+
const Oe = {
|
|
11080
11080
|
"lyd-root": "_lyd-root_1g78i_1",
|
|
11081
11081
|
"lyd-backdrop": "_lyd-backdrop_1g78i_38",
|
|
11082
11082
|
"lyd-panel": "_lyd-panel_1g78i_47",
|
|
@@ -11093,11 +11093,11 @@ const Ie = {
|
|
|
11093
11093
|
"lyd-vm-group": "_lyd-vm-group_1g78i_178",
|
|
11094
11094
|
"lyd-vm-btn": "_lyd-vm-btn_1g78i_186",
|
|
11095
11095
|
"lyd-close-btn": "_lyd-close-btn_1g78i_209"
|
|
11096
|
-
},
|
|
11096
|
+
}, wc = [
|
|
11097
11097
|
{
|
|
11098
11098
|
mode: "sidebar",
|
|
11099
11099
|
label: "Sidebar",
|
|
11100
|
-
icon: /* @__PURE__ */ e(
|
|
11100
|
+
icon: /* @__PURE__ */ e(kc, {})
|
|
11101
11101
|
},
|
|
11102
11102
|
{
|
|
11103
11103
|
mode: "modal",
|
|
@@ -11110,12 +11110,12 @@ const Ie = {
|
|
|
11110
11110
|
icon: /* @__PURE__ */ e(W, { name: "Fullscreen", size: "sm" })
|
|
11111
11111
|
}
|
|
11112
11112
|
];
|
|
11113
|
-
function
|
|
11114
|
-
return /* @__PURE__ */ e("div", { className:
|
|
11113
|
+
function Dc({ value: t, onChange: r }) {
|
|
11114
|
+
return /* @__PURE__ */ e("div", { className: Oe["lyd-vm-group"], role: "group", "aria-label": "View mode", children: wc.map((n) => /* @__PURE__ */ e(
|
|
11115
11115
|
"button",
|
|
11116
11116
|
{
|
|
11117
11117
|
type: "button",
|
|
11118
|
-
className:
|
|
11118
|
+
className: Oe["lyd-vm-btn"],
|
|
11119
11119
|
"data-active": t === n.mode,
|
|
11120
11120
|
"aria-label": `Switch to ${n.label} view`,
|
|
11121
11121
|
"aria-pressed": t === n.mode,
|
|
@@ -11125,7 +11125,7 @@ function Cc({ value: t, onChange: r }) {
|
|
|
11125
11125
|
n.mode
|
|
11126
11126
|
)) });
|
|
11127
11127
|
}
|
|
11128
|
-
function
|
|
11128
|
+
function kc() {
|
|
11129
11129
|
return /* @__PURE__ */ u(
|
|
11130
11130
|
"svg",
|
|
11131
11131
|
{
|
|
@@ -11152,7 +11152,7 @@ const Lr = {
|
|
|
11152
11152
|
xl: "1200px",
|
|
11153
11153
|
"2xl": "1440px"
|
|
11154
11154
|
};
|
|
11155
|
-
function
|
|
11155
|
+
function Sc(t) {
|
|
11156
11156
|
return t ? t in Lr ? Lr[t] : t : Lr.xl;
|
|
11157
11157
|
}
|
|
11158
11158
|
function qt(t, r) {
|
|
@@ -11161,7 +11161,7 @@ function qt(t, r) {
|
|
|
11161
11161
|
Ct.isValidElement(o) && o.type === r && (n = o.props.children ?? null);
|
|
11162
11162
|
}), n;
|
|
11163
11163
|
}
|
|
11164
|
-
function
|
|
11164
|
+
function Fc(t) {
|
|
11165
11165
|
const {
|
|
11166
11166
|
isOpen: r,
|
|
11167
11167
|
onClose: n,
|
|
@@ -11195,35 +11195,35 @@ function kc(t) {
|
|
|
11195
11195
|
return window.addEventListener("keydown", $), () => window.removeEventListener("keydown", $);
|
|
11196
11196
|
}, [r, f, n]);
|
|
11197
11197
|
const I = xe(
|
|
11198
|
-
() => qt(b,
|
|
11198
|
+
() => qt(b, qr),
|
|
11199
11199
|
[b]
|
|
11200
11200
|
), A = xe(
|
|
11201
|
-
() => qt(b,
|
|
11201
|
+
() => qt(b, Ur),
|
|
11202
11202
|
[b]
|
|
11203
11203
|
), w = xe(
|
|
11204
|
-
() => qt(b,
|
|
11204
|
+
() => qt(b, Jr),
|
|
11205
11205
|
[b]
|
|
11206
11206
|
), R = xe(
|
|
11207
|
-
() => qt(b,
|
|
11207
|
+
() => qt(b, Qr),
|
|
11208
11208
|
[b]
|
|
11209
11209
|
);
|
|
11210
11210
|
if (!r) return null;
|
|
11211
11211
|
const B = [
|
|
11212
|
-
|
|
11213
|
-
z === "modal" &&
|
|
11214
|
-
z === "fullscreen" &&
|
|
11215
|
-
z === "sidebar" &&
|
|
11212
|
+
Oe["lyd-panel"],
|
|
11213
|
+
z === "modal" && Oe["lyd-modal"],
|
|
11214
|
+
z === "fullscreen" && Oe["lyd-fullscreen"],
|
|
11215
|
+
z === "sidebar" && Oe["lyd-sidebar"]
|
|
11216
11216
|
].filter(Boolean).join(" "), J = {
|
|
11217
|
-
"--lyd-max-w":
|
|
11217
|
+
"--lyd-max-w": Sc(a),
|
|
11218
11218
|
...d !== void 0 && { "--lyd-aside-w": d }
|
|
11219
11219
|
}, X = () => {
|
|
11220
11220
|
p || n();
|
|
11221
11221
|
};
|
|
11222
|
-
return typeof document > "u" ? null :
|
|
11222
|
+
return typeof document > "u" ? null : Nr(
|
|
11223
11223
|
/* @__PURE__ */ u(
|
|
11224
11224
|
"div",
|
|
11225
11225
|
{
|
|
11226
|
-
className:
|
|
11226
|
+
className: Oe["lyd-root"],
|
|
11227
11227
|
style: J,
|
|
11228
11228
|
role: "dialog",
|
|
11229
11229
|
"aria-modal": "true",
|
|
@@ -11231,21 +11231,21 @@ function kc(t) {
|
|
|
11231
11231
|
/* @__PURE__ */ e(
|
|
11232
11232
|
"div",
|
|
11233
11233
|
{
|
|
11234
|
-
className:
|
|
11234
|
+
className: Oe["lyd-backdrop"],
|
|
11235
11235
|
onClick: X,
|
|
11236
11236
|
"aria-hidden": "true"
|
|
11237
11237
|
}
|
|
11238
11238
|
),
|
|
11239
11239
|
/* @__PURE__ */ u("div", { className: B, children: [
|
|
11240
|
-
/* @__PURE__ */ u("div", { className:
|
|
11241
|
-
/* @__PURE__ */ e("div", { className:
|
|
11242
|
-
/* @__PURE__ */ u("div", { className:
|
|
11243
|
-
c && /* @__PURE__ */ e(
|
|
11240
|
+
/* @__PURE__ */ u("div", { className: Oe["lyd-header"], children: [
|
|
11241
|
+
/* @__PURE__ */ e("div", { className: Oe["lyd-header-content"], children: I }),
|
|
11242
|
+
/* @__PURE__ */ u("div", { className: Oe["lyd-header-actions"], children: [
|
|
11243
|
+
c && /* @__PURE__ */ e(Dc, { value: M, onChange: D }),
|
|
11244
11244
|
s && /* @__PURE__ */ e(
|
|
11245
11245
|
"button",
|
|
11246
11246
|
{
|
|
11247
11247
|
type: "button",
|
|
11248
|
-
className:
|
|
11248
|
+
className: Oe["lyd-close-btn"],
|
|
11249
11249
|
onClick: n,
|
|
11250
11250
|
"aria-label": "Close dialog",
|
|
11251
11251
|
children: /* @__PURE__ */ e(W, { name: "Cross", size: "md" })
|
|
@@ -11253,11 +11253,11 @@ function kc(t) {
|
|
|
11253
11253
|
)
|
|
11254
11254
|
] })
|
|
11255
11255
|
] }),
|
|
11256
|
-
/* @__PURE__ */ u("div", { className:
|
|
11257
|
-
/* @__PURE__ */ e("div", { className:
|
|
11258
|
-
w && /* @__PURE__ */ e("aside", { className:
|
|
11256
|
+
/* @__PURE__ */ u("div", { className: Oe["lyd-main"], children: [
|
|
11257
|
+
/* @__PURE__ */ e("div", { className: Oe["lyd-body"], children: A }),
|
|
11258
|
+
w && /* @__PURE__ */ e("aside", { className: Oe["lyd-aside"], children: w })
|
|
11259
11259
|
] }),
|
|
11260
|
-
R && /* @__PURE__ */ e("div", { className:
|
|
11260
|
+
R && /* @__PURE__ */ e("div", { className: Oe["lyd-footer"], children: R })
|
|
11261
11261
|
] })
|
|
11262
11262
|
]
|
|
11263
11263
|
}
|
|
@@ -11265,12 +11265,12 @@ function kc(t) {
|
|
|
11265
11265
|
document.body
|
|
11266
11266
|
);
|
|
11267
11267
|
}
|
|
11268
|
-
const ir =
|
|
11269
|
-
ir.Header =
|
|
11270
|
-
ir.Body =
|
|
11271
|
-
ir.Aside =
|
|
11272
|
-
ir.Footer =
|
|
11273
|
-
function
|
|
11268
|
+
const ir = Fc;
|
|
11269
|
+
ir.Header = qr;
|
|
11270
|
+
ir.Body = Ur;
|
|
11271
|
+
ir.Aside = Jr;
|
|
11272
|
+
ir.Footer = Qr;
|
|
11273
|
+
function ra({ url: t, filename: r, onClose: n }) {
|
|
11274
11274
|
return Q(() => {
|
|
11275
11275
|
const o = (i) => {
|
|
11276
11276
|
i.key === "Escape" && n();
|
|
@@ -11368,7 +11368,92 @@ function Xs({ url: t, filename: r, onClose: n }) {
|
|
|
11368
11368
|
}
|
|
11369
11369
|
);
|
|
11370
11370
|
}
|
|
11371
|
-
const
|
|
11371
|
+
const ai = "var(--sa-border-subtle, #e5e7eb)", Rr = () => /* @__PURE__ */ e(m, { style: { width: 1, height: 22, backgroundColor: ai } }), Ec = (t) => typeof t == "number" ? `${t}px` : t;
|
|
11372
|
+
function Lc({
|
|
11373
|
+
count: t,
|
|
11374
|
+
children: r,
|
|
11375
|
+
label: n,
|
|
11376
|
+
onClear: o,
|
|
11377
|
+
clearLabel: i = "Clear selection",
|
|
11378
|
+
clearDisabled: l = !1,
|
|
11379
|
+
bottom: c = 20,
|
|
11380
|
+
zIndex: s = 50,
|
|
11381
|
+
style: a,
|
|
11382
|
+
className: d
|
|
11383
|
+
}) {
|
|
11384
|
+
if (t === 0) return null;
|
|
11385
|
+
const f = typeof n == "function" ? n(t) : n ?? `${t} selected`;
|
|
11386
|
+
return (
|
|
11387
|
+
// Outer wrapper centers the bar WITHOUT `transform` — a transformed
|
|
11388
|
+
// ancestor breaks `position: fixed` on any Menu popover composed inside
|
|
11389
|
+
// (their option lists would render off-screen). pointerEvents:none so the
|
|
11390
|
+
// empty side gutters don't block the page behind the bar.
|
|
11391
|
+
/* @__PURE__ */ e(
|
|
11392
|
+
m,
|
|
11393
|
+
{
|
|
11394
|
+
direction: "row",
|
|
11395
|
+
justify: "center",
|
|
11396
|
+
style: {
|
|
11397
|
+
position: "fixed",
|
|
11398
|
+
bottom: Ec(c),
|
|
11399
|
+
left: 0,
|
|
11400
|
+
right: 0,
|
|
11401
|
+
zIndex: s,
|
|
11402
|
+
pointerEvents: "none"
|
|
11403
|
+
},
|
|
11404
|
+
children: /* @__PURE__ */ u(
|
|
11405
|
+
m,
|
|
11406
|
+
{
|
|
11407
|
+
direction: "row",
|
|
11408
|
+
align: "center",
|
|
11409
|
+
gap: "xs",
|
|
11410
|
+
bg: "white",
|
|
11411
|
+
padding: "spacing-8",
|
|
11412
|
+
className: d,
|
|
11413
|
+
style: {
|
|
11414
|
+
pointerEvents: "auto",
|
|
11415
|
+
borderRadius: 10,
|
|
11416
|
+
border: `1px solid ${ai}`,
|
|
11417
|
+
boxShadow: "var(--sa-shadow-xl, 0 10px 25px -5px rgb(0 0 0/0.15))",
|
|
11418
|
+
...a
|
|
11419
|
+
},
|
|
11420
|
+
children: [
|
|
11421
|
+
/* @__PURE__ */ e(
|
|
11422
|
+
S,
|
|
11423
|
+
{
|
|
11424
|
+
fontSize: "sm",
|
|
11425
|
+
fontWeight: "medium",
|
|
11426
|
+
whiteSpace: "nowrap",
|
|
11427
|
+
style: { paddingInline: 6 },
|
|
11428
|
+
children: f
|
|
11429
|
+
}
|
|
11430
|
+
),
|
|
11431
|
+
/* @__PURE__ */ e(Rr, {}),
|
|
11432
|
+
r,
|
|
11433
|
+
o && /* @__PURE__ */ u(ne, { children: [
|
|
11434
|
+
/* @__PURE__ */ e(Rr, {}),
|
|
11435
|
+
/* @__PURE__ */ e(Re, { label: i, position: "top", children: /* @__PURE__ */ e(
|
|
11436
|
+
N,
|
|
11437
|
+
{
|
|
11438
|
+
variant: "tertiary",
|
|
11439
|
+
tone: "neutral",
|
|
11440
|
+
size: "sm",
|
|
11441
|
+
iconLeft: /* @__PURE__ */ e(W, { name: "Cross", size: "xs" }),
|
|
11442
|
+
"aria-label": i,
|
|
11443
|
+
onClick: o,
|
|
11444
|
+
disabled: l
|
|
11445
|
+
}
|
|
11446
|
+
) })
|
|
11447
|
+
] })
|
|
11448
|
+
]
|
|
11449
|
+
}
|
|
11450
|
+
)
|
|
11451
|
+
}
|
|
11452
|
+
)
|
|
11453
|
+
);
|
|
11454
|
+
}
|
|
11455
|
+
Lc.Divider = Rr;
|
|
11456
|
+
const na = (t) => {
|
|
11372
11457
|
const { defaultTab: r = 0, paramKey: n = "tab" } = t || {}, { useSearchParams: o } = pt(), [i, l] = o(), c = er(i.toString());
|
|
11373
11458
|
return {
|
|
11374
11459
|
activeTab: c[n] ? parseInt(c[n]) : r,
|
|
@@ -11381,7 +11466,7 @@ const Ks = (t) => {
|
|
|
11381
11466
|
searchQueries: c
|
|
11382
11467
|
};
|
|
11383
11468
|
};
|
|
11384
|
-
function
|
|
11469
|
+
function ia({
|
|
11385
11470
|
appName: t,
|
|
11386
11471
|
menuConfig: r,
|
|
11387
11472
|
formatTitle: n
|
|
@@ -11402,7 +11487,7 @@ function ea({
|
|
|
11402
11487
|
document.title = (n || a)(s, t);
|
|
11403
11488
|
}, [i.pathname]);
|
|
11404
11489
|
}
|
|
11405
|
-
const
|
|
11490
|
+
const oa = () => {
|
|
11406
11491
|
const { useSearchParams: t, useParams: r, useLocation: n } = pt(), [o, i] = t(), l = er(o.toString()), c = r(), s = n(), a = c.id;
|
|
11407
11492
|
return {
|
|
11408
11493
|
// query params
|
|
@@ -11421,7 +11506,7 @@ const ta = () => {
|
|
|
11421
11506
|
hasId: !!a
|
|
11422
11507
|
};
|
|
11423
11508
|
};
|
|
11424
|
-
function
|
|
11509
|
+
function la(t) {
|
|
11425
11510
|
var o, i;
|
|
11426
11511
|
const r = t.decodedAccessToken;
|
|
11427
11512
|
return xe(() => {
|
|
@@ -11447,120 +11532,122 @@ function ra(t) {
|
|
|
11447
11532
|
}, [(i = (o = r == null ? void 0 : r.access) == null ? void 0 : o.role) == null ? void 0 : i.code, t]);
|
|
11448
11533
|
}
|
|
11449
11534
|
export {
|
|
11450
|
-
|
|
11451
|
-
|
|
11452
|
-
|
|
11453
|
-
|
|
11454
|
-
|
|
11455
|
-
|
|
11456
|
-
|
|
11457
|
-
|
|
11458
|
-
|
|
11459
|
-
|
|
11460
|
-
|
|
11461
|
-
|
|
11535
|
+
Tn as ASIDE_WIDTH_VAR,
|
|
11536
|
+
To as AdvanceFilterBar,
|
|
11537
|
+
is as App,
|
|
11538
|
+
Xi as AppComponent,
|
|
11539
|
+
Pn as AppContext,
|
|
11540
|
+
ss as AppLayout,
|
|
11541
|
+
Gs as AsideBar,
|
|
11542
|
+
as as BackButton,
|
|
11543
|
+
kl as ColumnFilterDropdown,
|
|
11544
|
+
zl as ColumnMenu,
|
|
11545
|
+
Ks as ConfirmationDialog,
|
|
11546
|
+
El as DataTable,
|
|
11462
11547
|
he as DecisionWrapper,
|
|
11463
|
-
|
|
11464
|
-
|
|
11465
|
-
|
|
11466
|
-
|
|
11467
|
-
|
|
11468
|
-
|
|
11469
|
-
|
|
11470
|
-
|
|
11471
|
-
|
|
11472
|
-
|
|
11473
|
-
|
|
11474
|
-
|
|
11475
|
-
|
|
11476
|
-
|
|
11477
|
-
|
|
11478
|
-
|
|
11548
|
+
Gr as EachUtils,
|
|
11549
|
+
Js as EmptyStatePage,
|
|
11550
|
+
Vn as FLOATING_FOOTER_HEIGHT_VAR,
|
|
11551
|
+
ys as FilterBar,
|
|
11552
|
+
Ho as FilterDrawer,
|
|
11553
|
+
qs as FloatingFooter,
|
|
11554
|
+
Ys as ForbiddenPage,
|
|
11555
|
+
js as Form,
|
|
11556
|
+
ea as FullSection,
|
|
11557
|
+
os as HeaderLeftSlot,
|
|
11558
|
+
to as HeaderLeftSlotOutlet,
|
|
11559
|
+
eo as HeaderLeftSlotProvider,
|
|
11560
|
+
us as HorizontalField,
|
|
11561
|
+
ra as ImagePreview,
|
|
11562
|
+
Jl as InputFile,
|
|
11563
|
+
oc as InputImage,
|
|
11479
11564
|
ir as LayoutDialog,
|
|
11480
|
-
|
|
11481
|
-
|
|
11482
|
-
|
|
11483
|
-
|
|
11484
|
-
|
|
11485
|
-
|
|
11486
|
-
|
|
11487
|
-
|
|
11565
|
+
Jr as LayoutDialogAside,
|
|
11566
|
+
Ur as LayoutDialogBody,
|
|
11567
|
+
Qr as LayoutDialogFooter,
|
|
11568
|
+
qr as LayoutDialogHeader,
|
|
11569
|
+
ds as ModuleSwitcher,
|
|
11570
|
+
co as ModuleSwitcherModal,
|
|
11571
|
+
Qs as NotFoundPage,
|
|
11572
|
+
hs as PageLayout,
|
|
11488
11573
|
rr as Pressable,
|
|
11489
|
-
|
|
11490
|
-
|
|
11491
|
-
|
|
11492
|
-
|
|
11493
|
-
|
|
11494
|
-
|
|
11495
|
-
|
|
11496
|
-
|
|
11497
|
-
|
|
11498
|
-
|
|
11499
|
-
|
|
11500
|
-
|
|
11501
|
-
|
|
11502
|
-
|
|
11503
|
-
|
|
11504
|
-
|
|
11505
|
-
|
|
11506
|
-
|
|
11507
|
-
|
|
11508
|
-
|
|
11509
|
-
|
|
11510
|
-
|
|
11511
|
-
|
|
11512
|
-
|
|
11513
|
-
|
|
11574
|
+
go as RightDrawer,
|
|
11575
|
+
$r as SIDEBAR_DEFAULT_WIDTH,
|
|
11576
|
+
Un as SIDEBAR_MAX_WIDTH,
|
|
11577
|
+
qn as SIDEBAR_MIN_WIDTH,
|
|
11578
|
+
sc as ScrollToTopButton,
|
|
11579
|
+
fs as Section,
|
|
11580
|
+
ei as SectionFooter,
|
|
11581
|
+
Kn as SectionHeader,
|
|
11582
|
+
ta as SelectButton,
|
|
11583
|
+
Lc as SelectionActionBar,
|
|
11584
|
+
Rr as SelectionActionBarDivider,
|
|
11585
|
+
Xs as ServerErrorPage,
|
|
11586
|
+
Zs as SidePanel,
|
|
11587
|
+
Ps as SidePanelItem,
|
|
11588
|
+
Zi as SidebarBadgesProvider,
|
|
11589
|
+
ls as SidebarGroupSlot,
|
|
11590
|
+
no as SidebarGroupSlotOutlet,
|
|
11591
|
+
ro as SidebarGroupSlotProvider,
|
|
11592
|
+
Ki as SidebarHeaderSlot,
|
|
11593
|
+
Ji as SidebarProvider,
|
|
11594
|
+
Yi as StarasiaRouterProvider,
|
|
11595
|
+
Dl as TableFooter,
|
|
11596
|
+
Cl as TableHeader,
|
|
11597
|
+
ws as TableLayout,
|
|
11598
|
+
Cs as TableSection,
|
|
11599
|
+
vl as TableWrapper,
|
|
11600
|
+
_s as ToggleStatus,
|
|
11514
11601
|
ct as Typography,
|
|
11515
|
-
|
|
11516
|
-
|
|
11517
|
-
|
|
11518
|
-
|
|
11519
|
-
|
|
11520
|
-
|
|
11521
|
-
|
|
11522
|
-
|
|
11523
|
-
|
|
11524
|
-
|
|
11525
|
-
|
|
11526
|
-
|
|
11527
|
-
|
|
11528
|
-
|
|
11529
|
-
|
|
11602
|
+
Us as VerticalField,
|
|
11603
|
+
cs as clearModuleSelection,
|
|
11604
|
+
ks as createInitialFromUserName,
|
|
11605
|
+
Ms as cssVars,
|
|
11606
|
+
vs as expandDateCompact,
|
|
11607
|
+
Bs as formHasChanged,
|
|
11608
|
+
Ls as formatDate,
|
|
11609
|
+
$l as formatDateToIndonesian,
|
|
11610
|
+
Fs as formatRupiah,
|
|
11611
|
+
Oo as getDateFilterValue,
|
|
11612
|
+
gs as getDateRangeFilterValue,
|
|
11613
|
+
Es as getInitials,
|
|
11614
|
+
Io as getValueDropdownMultipleFilter,
|
|
11615
|
+
ms as getValueRadioFilter,
|
|
11616
|
+
Pr as getValueSearch,
|
|
11530
11617
|
xr as getValuesFilter,
|
|
11531
11618
|
Yt as handleChangeFilter,
|
|
11532
|
-
|
|
11533
|
-
|
|
11534
|
-
|
|
11535
|
-
|
|
11536
|
-
|
|
11537
|
-
|
|
11538
|
-
|
|
11539
|
-
|
|
11540
|
-
|
|
11541
|
-
|
|
11542
|
-
|
|
11543
|
-
|
|
11544
|
-
|
|
11545
|
-
|
|
11546
|
-
|
|
11547
|
-
|
|
11548
|
-
|
|
11619
|
+
$s as handleOnScroll,
|
|
11620
|
+
Ts as isEmail,
|
|
11621
|
+
ps as isFilterActive,
|
|
11622
|
+
Rs as isOnlyLettersAndSpaces,
|
|
11623
|
+
As as isPhoneNumber,
|
|
11624
|
+
Vs as isSlug,
|
|
11625
|
+
ti as localStorageAdapter,
|
|
11626
|
+
Ws as oneDayInMs,
|
|
11627
|
+
Ss as parseIndonesianDateToDate,
|
|
11628
|
+
Ns as preventNonCoordinateInput,
|
|
11629
|
+
Hs as preventNonNumberAndDecimalInput,
|
|
11630
|
+
Is as preventNonNumberInput,
|
|
11631
|
+
Os as preventNumberInput,
|
|
11632
|
+
zo as resolveDateRangeValueToString,
|
|
11633
|
+
Bo as resolveDateValueToString,
|
|
11634
|
+
Mo as resolveDropdownValueToString,
|
|
11635
|
+
Wo as resolveRadioValueToString,
|
|
11549
11636
|
yr as resolveSidebarBadge,
|
|
11550
11637
|
Ht as storageKeys,
|
|
11551
|
-
|
|
11552
|
-
|
|
11553
|
-
|
|
11554
|
-
|
|
11555
|
-
|
|
11556
|
-
|
|
11557
|
-
|
|
11558
|
-
|
|
11638
|
+
zs as textWidth,
|
|
11639
|
+
Zn as useApp,
|
|
11640
|
+
Pi as useAppState,
|
|
11641
|
+
la as useAuthRole,
|
|
11642
|
+
ia as useDynamicTitle,
|
|
11643
|
+
bs as useFilterBarApiParams,
|
|
11644
|
+
xs as useFilterBarControls,
|
|
11645
|
+
Xn as useModuleSelection,
|
|
11559
11646
|
Ge as useRouteInfo,
|
|
11560
|
-
|
|
11647
|
+
oa as useRouteParams,
|
|
11561
11648
|
pt as useRouterAdapter,
|
|
11562
|
-
|
|
11563
|
-
|
|
11564
|
-
|
|
11565
|
-
|
|
11649
|
+
Qi as useSidebar,
|
|
11650
|
+
Gi as useSidebarBadges,
|
|
11651
|
+
na as useTabState,
|
|
11652
|
+
Ds as useTableSortApiParams
|
|
11566
11653
|
};
|