@opencxh/ui-kit 3.180.0 → 3.181.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/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +612 -551
- package/dist/index.js.map +1 -1
- package/dist/src/content/RichText.d.ts +10 -1
- package/dist/src/content/richTextMentions.d.ts +40 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsxs as c, jsx as e, Fragment as Ee } from "react/jsx-runtime";
|
|
2
|
-
import le, { forwardRef as be, useState as B, useLayoutEffect as
|
|
3
|
-
import { clsx as
|
|
4
|
-
import * as
|
|
5
|
-
import { X as Se, ChevronDown as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
2
|
+
import le, { forwardRef as be, useState as B, useLayoutEffect as St, useRef as se, useEffect as Q, createContext as st, useId as Et, useMemo as ge, useContext as Tt, useCallback as de, Component as Mt } from "react";
|
|
3
|
+
import { clsx as zt } from "clsx";
|
|
4
|
+
import * as At from "lucide-react";
|
|
5
|
+
import { X as Se, ChevronDown as Oe, ExternalLink as Dt, Search as Pe, ChevronRight as je, Sparkles as _t, ArrowUpRight as at, ImageOff as $t, ChevronLeft as Te, Pencil as Lt, Calendar as It, Check as Je, ChevronUp as Ot, Ellipsis as Pt, ChevronDownIcon as jt, FileText as Fe, HardDrive as Ye, ArrowLeft as Rt, FolderPlus as Ft, Upload as Bt, Folder as Xe, Trash2 as Ht, Plus as qt, Loader2 as Ut, VideoOff as Vt, User as Wt, MicOff as Kt, Mic as Gt } from "lucide-react";
|
|
6
|
+
import Ve from "dompurify";
|
|
7
|
+
import Jt from "react-markdown";
|
|
8
|
+
import Yt from "remark-gfm";
|
|
9
9
|
function d(...t) {
|
|
10
|
-
return
|
|
10
|
+
return zt(t);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function vs(t) {
|
|
13
13
|
return (r, n) => t[r]?.[n] || "";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function ys(t) {
|
|
16
16
|
return (r) => t[r] || "";
|
|
17
17
|
}
|
|
18
|
-
const
|
|
18
|
+
const Xt = {
|
|
19
19
|
primary: "bg-accent text-accent-fg hover:bg-accent-hover disabled:bg-surface-hover",
|
|
20
20
|
secondary: "bg-surface-sunk text-text-strong hover:bg-surface-hover disabled:bg-surface-hover",
|
|
21
21
|
// No resting fill, so no disabled fill either — a greyed-out plate where
|
|
@@ -28,7 +28,7 @@ const Jt = {
|
|
|
28
28
|
success: "bg-success text-text-inverse hover:opacity-90 disabled:bg-surface-hover",
|
|
29
29
|
warning: "bg-warning text-text-inverse hover:opacity-90 disabled:bg-surface-hover",
|
|
30
30
|
"danger-solid": "bg-danger text-text-inverse hover:opacity-90 disabled:bg-surface-hover"
|
|
31
|
-
},
|
|
31
|
+
}, Zt = {
|
|
32
32
|
xs: "h-control-xs px-2 text-xs",
|
|
33
33
|
sm: "h-control-sm px-3 text-sm",
|
|
34
34
|
md: "h-control-md px-4 text-sm",
|
|
@@ -36,7 +36,7 @@ const Jt = {
|
|
|
36
36
|
xl: "h-control-xl px-6 text-base",
|
|
37
37
|
"2xl": "h-control-2xl px-6 text-base",
|
|
38
38
|
full: "h-control-md px-4 text-sm"
|
|
39
|
-
},
|
|
39
|
+
}, Qt = {
|
|
40
40
|
xs: "h-control-xs w-6",
|
|
41
41
|
sm: "h-control-sm w-7",
|
|
42
42
|
md: "h-control-md w-8",
|
|
@@ -75,8 +75,8 @@ const Jt = {
|
|
|
75
75
|
"focus-visible:outline-none focus-visible:focus-ring",
|
|
76
76
|
"disabled:cursor-not-allowed disabled:border-border-subtle",
|
|
77
77
|
"disabled:text-text-disabled",
|
|
78
|
-
|
|
79
|
-
o ?
|
|
78
|
+
Xt[t],
|
|
79
|
+
o ? Qt[r] : Zt[r],
|
|
80
80
|
(n || r === "full") && "w-full",
|
|
81
81
|
s && "cursor-wait",
|
|
82
82
|
i
|
|
@@ -102,7 +102,7 @@ const Jt = {
|
|
|
102
102
|
}
|
|
103
103
|
);
|
|
104
104
|
ae.displayName = "Button";
|
|
105
|
-
const
|
|
105
|
+
const Ns = ({
|
|
106
106
|
children: t,
|
|
107
107
|
size: r = "md",
|
|
108
108
|
orientation: n = "horizontal",
|
|
@@ -133,12 +133,12 @@ const ms = ({
|
|
|
133
133
|
);
|
|
134
134
|
return /* @__PURE__ */ e("div", { className: l, role: "group", children: t });
|
|
135
135
|
};
|
|
136
|
-
function
|
|
136
|
+
function er(t) {
|
|
137
137
|
if (!t) return;
|
|
138
|
-
const r = t.split(/[-_ ]/).filter(Boolean).map((s) => s.charAt(0).toUpperCase() + s.slice(1)).join(""), n =
|
|
138
|
+
const r = t.split(/[-_ ]/).filter(Boolean).map((s) => s.charAt(0).toUpperCase() + s.slice(1)).join(""), n = At[r];
|
|
139
139
|
return typeof n == "function" || typeof n == "object" && n !== null ? n : void 0;
|
|
140
140
|
}
|
|
141
|
-
const
|
|
141
|
+
const tr = {
|
|
142
142
|
primary: "text-text",
|
|
143
143
|
secondary: "text-text-muted",
|
|
144
144
|
accent: "text-accent",
|
|
@@ -158,9 +158,9 @@ const Qt = {
|
|
|
158
158
|
"aria-label": o,
|
|
159
159
|
...u
|
|
160
160
|
}) => {
|
|
161
|
-
const i = typeof r == "number" ? r :
|
|
161
|
+
const i = typeof r == "number" ? r : rr(r), p = d(
|
|
162
162
|
"inline-block shrink-0",
|
|
163
|
-
|
|
163
|
+
tr[n],
|
|
164
164
|
s && [
|
|
165
165
|
"cursor-pointer rounded-sm transition-opacity duration-fast ease-out hover:opacity-80",
|
|
166
166
|
"focus-visible:outline-none focus-visible:focus-ring"
|
|
@@ -182,7 +182,7 @@ const Qt = {
|
|
|
182
182
|
};
|
|
183
183
|
return /* @__PURE__ */ e(t, { ...m });
|
|
184
184
|
};
|
|
185
|
-
function
|
|
185
|
+
function rr(t) {
|
|
186
186
|
return {
|
|
187
187
|
xs: 12,
|
|
188
188
|
sm: 14,
|
|
@@ -193,7 +193,7 @@ function er(t) {
|
|
|
193
193
|
}
|
|
194
194
|
function Me(t, r, { gap: n = 6, matchWidth: s = !1, placement: a = "bottom-start" } = {}) {
|
|
195
195
|
const [l, o] = B({});
|
|
196
|
-
return
|
|
196
|
+
return St(() => {
|
|
197
197
|
if (!t) return;
|
|
198
198
|
const u = () => {
|
|
199
199
|
const i = r.current;
|
|
@@ -206,7 +206,7 @@ function Me(t, r, { gap: n = 6, matchWidth: s = !1, placement: a = "bottom-start
|
|
|
206
206
|
};
|
|
207
207
|
}, [t, r, n, s, a]), l;
|
|
208
208
|
}
|
|
209
|
-
const
|
|
209
|
+
const lt = ({
|
|
210
210
|
trigger: t,
|
|
211
211
|
children: r,
|
|
212
212
|
placement: n = "bottom-start",
|
|
@@ -263,29 +263,29 @@ const st = ({
|
|
|
263
263
|
}
|
|
264
264
|
)
|
|
265
265
|
] });
|
|
266
|
-
},
|
|
266
|
+
}, nr = {
|
|
267
267
|
none: "hover:bg-surface-sunk hover:text-text",
|
|
268
268
|
default: "bg-surface-sunk text-text-muted hover:text-text",
|
|
269
269
|
muted: "bg-surface-sunk text-text-subtle hover:text-text",
|
|
270
270
|
outline: "text-text-muted ring-1 ring-inset ring-border-strong hover:bg-surface-hover hover:text-text",
|
|
271
271
|
warning: "bg-warning-soft text-warning-fg",
|
|
272
272
|
danger: "bg-danger-soft text-danger-fg"
|
|
273
|
-
},
|
|
273
|
+
}, sr = (t) => d(
|
|
274
274
|
// A button's default cursor is an arrow, so it has to be asked for.
|
|
275
275
|
"inline-flex cursor-pointer select-none items-center text-sm font-medium",
|
|
276
276
|
t.size === "sm" ? "h-control-sm" : "h-control-md",
|
|
277
277
|
"transition-colors duration-fast ease-out",
|
|
278
278
|
t.shape === "pill" ? "rounded-full" : "rounded-md",
|
|
279
279
|
// Picking a value outranks whatever the value happens to mean.
|
|
280
|
-
t.active ? "bg-info-soft text-info-fg" :
|
|
280
|
+
t.active ? "bg-info-soft text-info-fg" : nr[t.tone ?? "default"],
|
|
281
281
|
t.className
|
|
282
|
-
),
|
|
282
|
+
), ar = (t) => d(
|
|
283
283
|
"inline-flex items-center gap-1.5 pl-3",
|
|
284
284
|
t.shape === "pill" ? "rounded-full" : "rounded-md",
|
|
285
285
|
t.withClear ? "pr-1.5" : "pr-3",
|
|
286
286
|
"focus-visible:outline-none focus-visible:focus-ring"
|
|
287
287
|
);
|
|
288
|
-
function
|
|
288
|
+
function lr({
|
|
289
289
|
label: t,
|
|
290
290
|
icon: r,
|
|
291
291
|
tone: n = "default",
|
|
@@ -301,11 +301,11 @@ function sr({
|
|
|
301
301
|
title: g,
|
|
302
302
|
className: b
|
|
303
303
|
}) {
|
|
304
|
-
const w = l && !!p, v = s === "pill" ? "rounded-full" : "rounded-md", h =
|
|
304
|
+
const w = l && !!p, v = s === "pill" ? "rounded-full" : "rounded-md", h = sr({ active: l, tone: n, shape: s, size: a, className: b }), C = /* @__PURE__ */ c(Ee, { children: [
|
|
305
305
|
r,
|
|
306
306
|
t,
|
|
307
|
-
o && /* @__PURE__ */ e(Z, { icon:
|
|
308
|
-
] }), k =
|
|
307
|
+
o && /* @__PURE__ */ e(Z, { icon: Oe, size: "xs" })
|
|
308
|
+
] }), k = ar({ shape: s, withClear: w }), P = w && /* @__PURE__ */ e(
|
|
309
309
|
"button",
|
|
310
310
|
{
|
|
311
311
|
type: "button",
|
|
@@ -320,7 +320,7 @@ function sr({
|
|
|
320
320
|
);
|
|
321
321
|
return u ? /* @__PURE__ */ c("span", { className: h, title: g, children: [
|
|
322
322
|
/* @__PURE__ */ e(
|
|
323
|
-
|
|
323
|
+
lt,
|
|
324
324
|
{
|
|
325
325
|
trigger: C,
|
|
326
326
|
rootClassName: "h-full",
|
|
@@ -335,13 +335,13 @@ function sr({
|
|
|
335
335
|
P
|
|
336
336
|
] }) : /* @__PURE__ */ e("button", { type: "button", title: g, onClick: f, className: d(h, k), children: C });
|
|
337
337
|
}
|
|
338
|
-
const
|
|
338
|
+
const or = {
|
|
339
339
|
xs: "text-xs",
|
|
340
340
|
sm: "text-sm",
|
|
341
341
|
md: "text-base",
|
|
342
342
|
lg: "text-md",
|
|
343
343
|
xl: "text-lg"
|
|
344
|
-
},
|
|
344
|
+
}, cr = {
|
|
345
345
|
primary: "text-text hover:text-info-fg hover:underline",
|
|
346
346
|
info: "text-info-fg hover:underline",
|
|
347
347
|
secondary: "text-text-muted hover:text-text",
|
|
@@ -350,7 +350,7 @@ const ar = {
|
|
|
350
350
|
success: "text-success-fg hover:underline",
|
|
351
351
|
warning: "text-warning-fg hover:underline",
|
|
352
352
|
error: "text-danger-fg hover:underline"
|
|
353
|
-
},
|
|
353
|
+
}, ir = {
|
|
354
354
|
primary: "bg-accent-soft",
|
|
355
355
|
accent: "bg-accent-soft",
|
|
356
356
|
secondary: "bg-surface-hover",
|
|
@@ -359,7 +359,7 @@ const ar = {
|
|
|
359
359
|
warning: "bg-warning-soft",
|
|
360
360
|
error: "bg-danger-soft",
|
|
361
361
|
info: "bg-info-soft"
|
|
362
|
-
},
|
|
362
|
+
}, ws = ({
|
|
363
363
|
variant: t = "default",
|
|
364
364
|
size: r = "md",
|
|
365
365
|
color: n = "primary",
|
|
@@ -376,13 +376,13 @@ const ar = {
|
|
|
376
376
|
"inline-flex items-center gap-1 underline-offset-2",
|
|
377
377
|
"transition-colors duration-fast ease-out",
|
|
378
378
|
"focus-visible:outline-none focus-visible:focus-ring",
|
|
379
|
-
|
|
380
|
-
!s &&
|
|
379
|
+
or[r],
|
|
380
|
+
!s && cr[n],
|
|
381
381
|
t === "subtle" && "no-underline opacity-70 hover:opacity-100",
|
|
382
382
|
t === "underline" && "underline decoration-1 hover:decoration-2",
|
|
383
383
|
t === "button" && [
|
|
384
384
|
"h-control-md rounded-md px-3 font-semibold no-underline hover:no-underline",
|
|
385
|
-
|
|
385
|
+
ir[n]
|
|
386
386
|
],
|
|
387
387
|
s && "pointer-events-none cursor-not-allowed text-text-disabled opacity-50",
|
|
388
388
|
l
|
|
@@ -395,13 +395,13 @@ const ar = {
|
|
|
395
395
|
};
|
|
396
396
|
return /* @__PURE__ */ c("a", { className: g, ...b, children: [
|
|
397
397
|
o,
|
|
398
|
-
f && /* @__PURE__ */ e(
|
|
398
|
+
f && /* @__PURE__ */ e(Dt, { className: "size-icon-sm shrink-0", "aria-hidden": !0 })
|
|
399
399
|
] });
|
|
400
|
-
},
|
|
400
|
+
}, dr = {
|
|
401
401
|
sm: "h-control-sm px-3 text-sm",
|
|
402
402
|
md: "h-control-md px-3 text-sm"
|
|
403
403
|
};
|
|
404
|
-
function
|
|
404
|
+
function ur({
|
|
405
405
|
options: t,
|
|
406
406
|
value: r,
|
|
407
407
|
onChange: n,
|
|
@@ -438,7 +438,7 @@ function ir({
|
|
|
438
438
|
"transition-colors duration-fast ease-out",
|
|
439
439
|
"focus-visible:outline-none focus-visible:focus-ring",
|
|
440
440
|
l && "min-w-0 flex-1",
|
|
441
|
-
|
|
441
|
+
dr[s],
|
|
442
442
|
p ? "bg-surface text-text font-medium shadow-sm" : "text-text-muted hover:text-text"
|
|
443
443
|
),
|
|
444
444
|
children: i.label
|
|
@@ -449,15 +449,15 @@ function ir({
|
|
|
449
449
|
}
|
|
450
450
|
);
|
|
451
451
|
}
|
|
452
|
-
const
|
|
452
|
+
const mr = {
|
|
453
453
|
primary: "bg-accent text-accent-fg hover:bg-accent-hover",
|
|
454
454
|
secondary: "border border-border bg-surface text-text hover:bg-surface-hover",
|
|
455
455
|
outline: "border border-accent-border text-accent hover:bg-accent-soft"
|
|
456
|
-
},
|
|
456
|
+
}, fr = {
|
|
457
457
|
sm: "h-control-sm w-7",
|
|
458
458
|
md: "h-control-md w-8"
|
|
459
459
|
};
|
|
460
|
-
function
|
|
460
|
+
function ot({
|
|
461
461
|
label: t,
|
|
462
462
|
onClick: r,
|
|
463
463
|
variant: n = "primary",
|
|
@@ -489,7 +489,7 @@ function at({
|
|
|
489
489
|
}
|
|
490
490
|
),
|
|
491
491
|
f && /* @__PURE__ */ e(
|
|
492
|
-
|
|
492
|
+
lt,
|
|
493
493
|
{
|
|
494
494
|
placement: i,
|
|
495
495
|
disabled: m,
|
|
@@ -502,11 +502,11 @@ function at({
|
|
|
502
502
|
className: d(
|
|
503
503
|
"inline-flex items-center justify-center rounded-md rounded-l-none",
|
|
504
504
|
"transition-colors duration-fast ease-out",
|
|
505
|
-
|
|
506
|
-
|
|
505
|
+
mr[n],
|
|
506
|
+
fr[s],
|
|
507
507
|
m && "cursor-not-allowed opacity-50"
|
|
508
508
|
),
|
|
509
|
-
children: /* @__PURE__ */ e(
|
|
509
|
+
children: /* @__PURE__ */ e(Oe, { className: "size-icon-md" })
|
|
510
510
|
}
|
|
511
511
|
),
|
|
512
512
|
children: (g) => /* @__PURE__ */ e(Ee, { children: l.map((b) => /* @__PURE__ */ c(
|
|
@@ -534,7 +534,7 @@ function at({
|
|
|
534
534
|
] })
|
|
535
535
|
);
|
|
536
536
|
}
|
|
537
|
-
const
|
|
537
|
+
const ks = ({
|
|
538
538
|
commands: t,
|
|
539
539
|
isOpen: r,
|
|
540
540
|
onClose: n,
|
|
@@ -582,7 +582,7 @@ const hs = ({
|
|
|
582
582
|
ref: g,
|
|
583
583
|
children: [
|
|
584
584
|
/* @__PURE__ */ c("div", { className: "flex items-center gap-2 px-3 flex-shrink-0", children: [
|
|
585
|
-
/* @__PURE__ */ e(
|
|
585
|
+
/* @__PURE__ */ e(Pe, { className: "w-4 h-4 text-text-muted shrink-0" }),
|
|
586
586
|
/* @__PURE__ */ e(
|
|
587
587
|
"input",
|
|
588
588
|
{
|
|
@@ -613,7 +613,7 @@ const hs = ({
|
|
|
613
613
|
children: [
|
|
614
614
|
h.icon && /* @__PURE__ */ e("span", { className: "mr-3", children: h.icon }),
|
|
615
615
|
/* @__PURE__ */ e("span", { className: "flex-grow", children: h.label }),
|
|
616
|
-
h.subCommands && /* @__PURE__ */ e("span", { className: "text-text-muted", children: /* @__PURE__ */ e(
|
|
616
|
+
h.subCommands && /* @__PURE__ */ e("span", { className: "text-text-muted", children: /* @__PURE__ */ e(je, { className: "w-4 h-4" }) })
|
|
617
617
|
]
|
|
618
618
|
},
|
|
619
619
|
h.id
|
|
@@ -638,13 +638,66 @@ const hs = ({
|
|
|
638
638
|
]
|
|
639
639
|
}
|
|
640
640
|
) }) : null;
|
|
641
|
-
},
|
|
641
|
+
}, We = [
|
|
642
642
|
"[&_[data-mention-id]]:bg-info-soft",
|
|
643
643
|
"[&_[data-mention-id]]:text-info-fg",
|
|
644
644
|
"[&_[data-mention-id]]:font-semibold",
|
|
645
645
|
"[&_[data-mention-id]]:px-1",
|
|
646
646
|
"[&_[data-mention-id]]:rounded-md"
|
|
647
|
-
].join(" "), $e = "data-mention-id",
|
|
647
|
+
].join(" "), $e = "data-mention-id", Le = (t) => t.type === "text", hr = (t, r) => t.type === "element" && t.tagName === r, xr = (t) => t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
648
|
+
function gr(t) {
|
|
649
|
+
if (!hr(t, "a")) return null;
|
|
650
|
+
const r = t.properties?.href, [n] = t.children ?? [];
|
|
651
|
+
return typeof r != "string" || !r.startsWith("mailto:") || !n || !Le(n) ? null : r === `mailto:${n.value}` ? n.value : null;
|
|
652
|
+
}
|
|
653
|
+
function br(t) {
|
|
654
|
+
const r = [], n = (s) => {
|
|
655
|
+
const a = r[r.length - 1];
|
|
656
|
+
a && Le(a) ? a.value += s : r.push({ type: "text", value: s });
|
|
657
|
+
};
|
|
658
|
+
for (const s of t) {
|
|
659
|
+
const a = gr(s);
|
|
660
|
+
a !== null ? n(a) : Le(s) ? n(s.value) : r.push(s);
|
|
661
|
+
}
|
|
662
|
+
return r;
|
|
663
|
+
}
|
|
664
|
+
function pr(t) {
|
|
665
|
+
return {
|
|
666
|
+
type: "element",
|
|
667
|
+
tagName: "span",
|
|
668
|
+
properties: { dataMentionId: t.id },
|
|
669
|
+
children: [{ type: "text", value: `@${t.name}` }]
|
|
670
|
+
};
|
|
671
|
+
}
|
|
672
|
+
function vr(t, r, n) {
|
|
673
|
+
const s = [];
|
|
674
|
+
let a = 0;
|
|
675
|
+
n.lastIndex = 0;
|
|
676
|
+
let l = n.exec(t);
|
|
677
|
+
for (; l; ) {
|
|
678
|
+
l.index > a && s.push({ type: "text", value: t.slice(a, l.index) });
|
|
679
|
+
const o = l[0].slice(1), u = r.find((i) => i.name === o);
|
|
680
|
+
s.push(u ? pr(u) : { type: "text", value: l[0] }), a = n.lastIndex, l = n.exec(t);
|
|
681
|
+
}
|
|
682
|
+
return a < t.length && s.push({ type: "text", value: t.slice(a) }), s;
|
|
683
|
+
}
|
|
684
|
+
function ct(t, r, n) {
|
|
685
|
+
if (!t.children) return;
|
|
686
|
+
const s = br(t.children), a = [];
|
|
687
|
+
for (const l of s)
|
|
688
|
+
Le(l) ? a.push(...vr(l.value, r, n)) : (ct(l, r, n), a.push(l));
|
|
689
|
+
t.children = a;
|
|
690
|
+
}
|
|
691
|
+
function yr(t) {
|
|
692
|
+
const r = t.filter((s) => s.name), n = new RegExp(
|
|
693
|
+
`@(?:${[...r].sort((s, a) => a.name.length - s.name.length).map((s) => xr(s.name)).join("|")})`,
|
|
694
|
+
"g"
|
|
695
|
+
);
|
|
696
|
+
return () => (s) => {
|
|
697
|
+
r.length !== 0 && ct(s, r, n);
|
|
698
|
+
};
|
|
699
|
+
}
|
|
700
|
+
const Nr = /<[a-z][\s\S]*>/i, wr = [
|
|
648
701
|
"[&_p]:my-1.5 [&_p:first-child]:mt-0 [&_p:last-child]:mb-0 [&_p]:leading-relaxed",
|
|
649
702
|
"[&_a]:text-accent [&_a]:underline [&_a]:underline-offset-2",
|
|
650
703
|
"[&_strong]:font-semibold [&_em]:italic",
|
|
@@ -660,16 +713,16 @@ const hs = ({
|
|
|
660
713
|
"[&_th]:border [&_th]:border-border [&_th]:px-2 [&_th]:py-1 [&_th]:text-left [&_th]:font-semibold",
|
|
661
714
|
"[&_td]:border [&_td]:border-border [&_td]:px-2 [&_td]:py-1",
|
|
662
715
|
// A mention chip is stored as a bare `data-mention-id` span, so its look lives here.
|
|
663
|
-
|
|
716
|
+
We
|
|
664
717
|
].join(" ");
|
|
665
|
-
function
|
|
718
|
+
function kr(t, r) {
|
|
666
719
|
if (!t?.startsWith("mailto:")) return !1;
|
|
667
720
|
const n = typeof r == "string" ? r : null;
|
|
668
721
|
return n !== null && t === `mailto:${n}`;
|
|
669
722
|
}
|
|
670
|
-
const
|
|
723
|
+
const Cr = {
|
|
671
724
|
p: (t) => /* @__PURE__ */ e("p", { className: "my-1.5 leading-relaxed first:mt-0 last:mb-0", ...t }),
|
|
672
|
-
a: ({ href: t, children: r, ...n }) =>
|
|
725
|
+
a: ({ href: t, children: r, ...n }) => kr(t, r) ? /* @__PURE__ */ e(Ee, { children: r }) : /* @__PURE__ */ e(
|
|
673
726
|
"a",
|
|
674
727
|
{
|
|
675
728
|
className: "text-accent underline underline-offset-2 hover:opacity-80",
|
|
@@ -700,35 +753,43 @@ const xr = {
|
|
|
700
753
|
th: (t) => /* @__PURE__ */ e("th", { className: "border border-border px-2 py-1 text-left font-semibold", ...t }),
|
|
701
754
|
td: (t) => /* @__PURE__ */ e("td", { className: "border border-border px-2 py-1", ...t })
|
|
702
755
|
};
|
|
703
|
-
function ze({ text: t, className: r, as: n }) {
|
|
704
|
-
const
|
|
705
|
-
return (n ? n === "html" :
|
|
756
|
+
function ze({ text: t, className: r, as: n, mentions: s }) {
|
|
757
|
+
const a = t ?? "";
|
|
758
|
+
return (n ? n === "html" : Nr.test(a)) ? /* @__PURE__ */ e(
|
|
706
759
|
"div",
|
|
707
760
|
{
|
|
708
|
-
className: d("break-words",
|
|
761
|
+
className: d("break-words", wr, r),
|
|
709
762
|
dangerouslySetInnerHTML: {
|
|
710
|
-
__html:
|
|
763
|
+
__html: Ve.sanitize(a, { ADD_ATTR: ["target", "rel", $e] })
|
|
711
764
|
}
|
|
712
765
|
}
|
|
713
|
-
) : /* @__PURE__ */ e("div", { className: d("break-words", r), children: /* @__PURE__ */ e(
|
|
766
|
+
) : /* @__PURE__ */ e("div", { className: d("break-words", We, r), children: /* @__PURE__ */ e(
|
|
767
|
+
Jt,
|
|
768
|
+
{
|
|
769
|
+
remarkPlugins: [Yt],
|
|
770
|
+
rehypePlugins: s?.length ? [yr(s)] : void 0,
|
|
771
|
+
components: Cr,
|
|
772
|
+
children: a
|
|
773
|
+
}
|
|
774
|
+
) });
|
|
714
775
|
}
|
|
715
|
-
const
|
|
776
|
+
const Sr = {
|
|
716
777
|
info: "text-info-fg",
|
|
717
778
|
success: "text-success-fg",
|
|
718
779
|
warning: "text-warning-fg",
|
|
719
780
|
destructive: "text-danger-fg"
|
|
720
|
-
},
|
|
781
|
+
}, Er = {
|
|
721
782
|
info: "bg-info-soft border-info-border",
|
|
722
783
|
success: "bg-success-soft border-success-border",
|
|
723
784
|
warning: "bg-warning-soft border-warning-border",
|
|
724
785
|
destructive: "bg-danger-soft border-danger-border"
|
|
725
|
-
},
|
|
786
|
+
}, Tr = {
|
|
726
787
|
1: "grid-cols-1",
|
|
727
788
|
2: "grid-cols-2",
|
|
728
789
|
3: "grid-cols-3",
|
|
729
790
|
4: "grid-cols-4"
|
|
730
791
|
};
|
|
731
|
-
function
|
|
792
|
+
function Mr({ block: t }) {
|
|
732
793
|
switch (t.type) {
|
|
733
794
|
case "heading":
|
|
734
795
|
return t.level === 1 ? /* @__PURE__ */ e("h1", { className: "text-2xl font-semibold tracking-tight text-text", children: t.text }) : t.level === 2 ? /* @__PURE__ */ e("h2", { className: "pt-2 text-base font-semibold tracking-tight text-text", children: t.text }) : /* @__PURE__ */ e("h3", { className: "pt-1 text-sm font-semibold text-text", children: t.text });
|
|
@@ -788,13 +849,13 @@ function vr({ block: t }) {
|
|
|
788
849
|
t.caption && /* @__PURE__ */ e("figcaption", { className: "pt-2 text-xs italic text-text-subtle", children: t.caption })
|
|
789
850
|
] });
|
|
790
851
|
case "kpi":
|
|
791
|
-
return /* @__PURE__ */ e("div", { className: d("grid gap-3",
|
|
852
|
+
return /* @__PURE__ */ e("div", { className: d("grid gap-3", Tr[t.items.length] ?? "grid-cols-4"), children: t.items.map((r, n) => /* @__PURE__ */ c("div", { className: "rounded-lg bg-surface-sunk px-4 py-3.5", children: [
|
|
792
853
|
/* @__PURE__ */ e(
|
|
793
854
|
"div",
|
|
794
855
|
{
|
|
795
856
|
className: d(
|
|
796
857
|
"text-2xl font-semibold tracking-tight",
|
|
797
|
-
r.tone ?
|
|
858
|
+
r.tone ? Sr[r.tone] : "text-text"
|
|
798
859
|
),
|
|
799
860
|
children: r.value
|
|
800
861
|
}
|
|
@@ -802,7 +863,7 @@ function vr({ block: t }) {
|
|
|
802
863
|
/* @__PURE__ */ e("div", { className: "pt-0.5 text-xs text-text-muted", children: r.label })
|
|
803
864
|
] }, n)) });
|
|
804
865
|
case "callout":
|
|
805
|
-
return /* @__PURE__ */ c("div", { className: d("rounded-lg border px-4 py-3",
|
|
866
|
+
return /* @__PURE__ */ c("div", { className: d("rounded-lg border px-4 py-3", Er[t.tone]), children: [
|
|
806
867
|
t.title && /* @__PURE__ */ e("div", { className: "pb-0.5 text-sm font-semibold text-text", children: t.title }),
|
|
807
868
|
/* @__PURE__ */ e(ze, { as: "markdown", text: t.text, className: "text-sm text-text" })
|
|
808
869
|
] });
|
|
@@ -810,7 +871,7 @@ function vr({ block: t }) {
|
|
|
810
871
|
return null;
|
|
811
872
|
}
|
|
812
873
|
}
|
|
813
|
-
function
|
|
874
|
+
function Cs({ blocks: t, runtime: r = "inert", className: n }) {
|
|
814
875
|
return r !== "inert" ? /* @__PURE__ */ c(
|
|
815
876
|
"div",
|
|
816
877
|
{
|
|
@@ -827,11 +888,11 @@ function xs({ blocks: t, runtime: r = "inert", className: n }) {
|
|
|
827
888
|
] })
|
|
828
889
|
]
|
|
829
890
|
}
|
|
830
|
-
) : /* @__PURE__ */ e("article", { className: d("flex flex-col gap-4", n), children: t.map((s, a) => /* @__PURE__ */ e(
|
|
891
|
+
) : /* @__PURE__ */ e("article", { className: d("flex flex-col gap-4", n), children: t.map((s, a) => /* @__PURE__ */ e(Mr, { block: s }, s.block_id ?? a)) });
|
|
831
892
|
}
|
|
832
|
-
function
|
|
893
|
+
function Ss({
|
|
833
894
|
title: t,
|
|
834
|
-
icon: r = /* @__PURE__ */ e(
|
|
895
|
+
icon: r = /* @__PURE__ */ e(_t, { className: "size-icon-md", "aria-hidden": !0 }),
|
|
835
896
|
action: n,
|
|
836
897
|
children: s,
|
|
837
898
|
className: a,
|
|
@@ -857,53 +918,53 @@ function gs({
|
|
|
857
918
|
}
|
|
858
919
|
);
|
|
859
920
|
}
|
|
860
|
-
const
|
|
861
|
-
function
|
|
921
|
+
const zr = 5;
|
|
922
|
+
function Ar(t) {
|
|
862
923
|
let r = 2166136261;
|
|
863
924
|
for (let n = 0; n < t.length; n++)
|
|
864
925
|
r ^= t.charCodeAt(n), r = Math.imul(r, 16777619);
|
|
865
926
|
return r >>> 0;
|
|
866
927
|
}
|
|
867
|
-
function
|
|
928
|
+
function it(t) {
|
|
868
929
|
const r = (t ?? "").trim().toLowerCase();
|
|
869
|
-
return r ?
|
|
930
|
+
return r ? Ar(r) % zr + 1 : 1;
|
|
870
931
|
}
|
|
871
|
-
const
|
|
932
|
+
const Dr = {
|
|
872
933
|
1: "bg-cat-1-soft text-cat-1-fg",
|
|
873
934
|
2: "bg-cat-2-soft text-cat-2-fg",
|
|
874
935
|
3: "bg-cat-3-soft text-cat-3-fg",
|
|
875
936
|
4: "bg-cat-4-soft text-cat-4-fg",
|
|
876
937
|
5: "bg-cat-5-soft text-cat-5-fg"
|
|
877
|
-
},
|
|
938
|
+
}, _r = {
|
|
878
939
|
1: "bg-cat-1",
|
|
879
940
|
2: "bg-cat-2",
|
|
880
941
|
3: "bg-cat-3",
|
|
881
942
|
4: "bg-cat-4",
|
|
882
943
|
5: "bg-cat-5"
|
|
883
944
|
};
|
|
884
|
-
function
|
|
885
|
-
return
|
|
945
|
+
function dt(t) {
|
|
946
|
+
return Dr[it(t)];
|
|
886
947
|
}
|
|
887
|
-
function
|
|
888
|
-
return
|
|
948
|
+
function Es(t) {
|
|
949
|
+
return _r[it(t)];
|
|
889
950
|
}
|
|
890
|
-
const
|
|
951
|
+
const $r = {
|
|
891
952
|
default: "bg-avatar text-avatar-fg",
|
|
892
953
|
in: "bg-avatar-in text-avatar-in-fg",
|
|
893
954
|
out: "bg-accent text-accent-fg",
|
|
894
955
|
note: "bg-avatar-note text-avatar-note-fg"
|
|
895
|
-
},
|
|
956
|
+
}, Lr = {
|
|
896
957
|
xs: "w-5 h-5 text-xs",
|
|
897
958
|
sm: "w-6 h-6 text-xs",
|
|
898
959
|
md: "w-7 h-7 text-base",
|
|
899
960
|
lg: "w-9 h-9 text-sm"
|
|
900
961
|
};
|
|
901
|
-
function
|
|
962
|
+
function Ir(t) {
|
|
902
963
|
if (!t) return "?";
|
|
903
964
|
const r = t.trim().split(/[^\p{L}\p{N}]+/u).filter(Boolean);
|
|
904
965
|
return r.length >= 2 ? (r[0][0] + r[1][0]).toUpperCase() : r.length === 1 ? r[0].slice(0, 2).toUpperCase() : "?";
|
|
905
966
|
}
|
|
906
|
-
const
|
|
967
|
+
const ut = ({
|
|
907
968
|
name: t,
|
|
908
969
|
src: r,
|
|
909
970
|
tone: n = "default",
|
|
@@ -918,8 +979,8 @@ const it = ({
|
|
|
918
979
|
"inline-flex items-center justify-center rounded-full overflow-hidden shrink-0 font-semibold select-none",
|
|
919
980
|
// `identity` is seeded on the name, so the same person keeps their colour
|
|
920
981
|
// wherever they appear; the fixed tones stay as they were.
|
|
921
|
-
n === "identity" ?
|
|
922
|
-
|
|
982
|
+
n === "identity" ? dt(t) : $r[n],
|
|
983
|
+
Lr[s],
|
|
923
984
|
a
|
|
924
985
|
);
|
|
925
986
|
return r && !o ? /* @__PURE__ */ e(
|
|
@@ -931,8 +992,8 @@ const it = ({
|
|
|
931
992
|
className: d(i, "object-cover"),
|
|
932
993
|
onError: () => u(!0)
|
|
933
994
|
}
|
|
934
|
-
) : /* @__PURE__ */ e("span", { className: i, title: l ?? t, "aria-label": t, children:
|
|
935
|
-
},
|
|
995
|
+
) : /* @__PURE__ */ e("span", { className: i, title: l ?? t, "aria-label": t, children: Ir(t) });
|
|
996
|
+
}, Ze = "ring-surface", Or = "ring-surface-accent", Ts = ({
|
|
936
997
|
people: t,
|
|
937
998
|
max: r = 4,
|
|
938
999
|
size: n = "sm",
|
|
@@ -942,7 +1003,7 @@ const it = ({
|
|
|
942
1003
|
const a = t.slice(0, r), l = t.length - a.length;
|
|
943
1004
|
return /* @__PURE__ */ c("span", { className: d("inline-flex items-center", s), children: [
|
|
944
1005
|
a.map((o, u) => /* @__PURE__ */ e(
|
|
945
|
-
|
|
1006
|
+
ut,
|
|
946
1007
|
{
|
|
947
1008
|
name: o.name,
|
|
948
1009
|
src: o.src,
|
|
@@ -950,7 +1011,7 @@ const it = ({
|
|
|
950
1011
|
title: o.name ? o.seen === !1 ? `${o.name} — nog niet gelezen` : o.name : void 0,
|
|
951
1012
|
className: d(
|
|
952
1013
|
u > 0 && "-ml-2",
|
|
953
|
-
o.owner ?
|
|
1014
|
+
o.owner ? Or : Ze,
|
|
954
1015
|
o.seen === !1 && "opacity-40"
|
|
955
1016
|
)
|
|
956
1017
|
},
|
|
@@ -964,7 +1025,7 @@ const it = ({
|
|
|
964
1025
|
// in the row rather than a gap at the end of it.
|
|
965
1026
|
"inline-flex items-center justify-center rounded-full shrink-0 -ml-2 font-semibold bg-avatar text-avatar-fg",
|
|
966
1027
|
n === "xs" ? "w-5 h-5 text-xs" : n === "md" ? "w-7 h-7 text-xs" : n === "lg" ? "w-9 h-9 text-xs" : "w-6 h-6 text-xs",
|
|
967
|
-
|
|
1028
|
+
Ze
|
|
968
1029
|
),
|
|
969
1030
|
children: [
|
|
970
1031
|
"+",
|
|
@@ -973,18 +1034,18 @@ const it = ({
|
|
|
973
1034
|
}
|
|
974
1035
|
)
|
|
975
1036
|
] });
|
|
976
|
-
},
|
|
1037
|
+
}, Pr = {
|
|
977
1038
|
neutral: "bg-surface-sunk",
|
|
978
1039
|
out: "bg-bubble-out-soft",
|
|
979
1040
|
note: "bg-note-soft",
|
|
980
1041
|
assistant: "bg-assistant-soft"
|
|
981
|
-
},
|
|
1042
|
+
}, jr = {
|
|
982
1043
|
neutral: "text-text",
|
|
983
1044
|
out: "text-text",
|
|
984
1045
|
note: "text-note",
|
|
985
1046
|
assistant: "text-text"
|
|
986
1047
|
};
|
|
987
|
-
function
|
|
1048
|
+
function Ms({
|
|
988
1049
|
avatar: t,
|
|
989
1050
|
title: r,
|
|
990
1051
|
context: n,
|
|
@@ -1001,7 +1062,7 @@ function vs({
|
|
|
1001
1062
|
/* @__PURE__ */ c(
|
|
1002
1063
|
"div",
|
|
1003
1064
|
{
|
|
1004
|
-
className: d("min-w-0 flex-1 overflow-hidden rounded-lg px-4 py-3.5",
|
|
1065
|
+
className: d("min-w-0 flex-1 overflow-hidden rounded-lg px-4 py-3.5", Pr[l]),
|
|
1005
1066
|
children: [
|
|
1006
1067
|
/* @__PURE__ */ c("div", { className: "flex items-baseline gap-2", children: [
|
|
1007
1068
|
/* @__PURE__ */ e(
|
|
@@ -1010,7 +1071,7 @@ function vs({
|
|
|
1010
1071
|
className: d(
|
|
1011
1072
|
"min-w-0 truncate text-md font-semibold",
|
|
1012
1073
|
!n && "flex-1",
|
|
1013
|
-
|
|
1074
|
+
jr[l]
|
|
1014
1075
|
),
|
|
1015
1076
|
children: r
|
|
1016
1077
|
}
|
|
@@ -1030,15 +1091,15 @@ function vs({
|
|
|
1030
1091
|
u
|
|
1031
1092
|
] });
|
|
1032
1093
|
}
|
|
1033
|
-
const
|
|
1034
|
-
function
|
|
1094
|
+
const zs = "hover:bg-surface-track";
|
|
1095
|
+
function As({
|
|
1035
1096
|
name: t,
|
|
1036
1097
|
src: r,
|
|
1037
1098
|
tone: n = "in"
|
|
1038
1099
|
}) {
|
|
1039
|
-
return /* @__PURE__ */ e(
|
|
1100
|
+
return /* @__PURE__ */ e(ut, { name: t, src: r, tone: n, size: "sm" });
|
|
1040
1101
|
}
|
|
1041
|
-
function
|
|
1102
|
+
function Ds({
|
|
1042
1103
|
icon: t,
|
|
1043
1104
|
tone: r = "neutral",
|
|
1044
1105
|
title: n
|
|
@@ -1055,11 +1116,11 @@ function ws({
|
|
|
1055
1116
|
}
|
|
1056
1117
|
);
|
|
1057
1118
|
}
|
|
1058
|
-
function
|
|
1119
|
+
function _s({ children: t, className: r }) {
|
|
1059
1120
|
return /* @__PURE__ */ e("div", { className: d("flex items-center gap-2.5 rounded-md bg-surface px-3 py-2.5", r), children: t });
|
|
1060
1121
|
}
|
|
1061
|
-
function
|
|
1062
|
-
const l =
|
|
1122
|
+
function $s({ icon: t, text: r, time: n, joinUrl: s, joinLabel: a }) {
|
|
1123
|
+
const l = er(t);
|
|
1063
1124
|
return /* @__PURE__ */ c("div", { className: "flex items-center gap-2 py-1.5 pl-10.5 text-xs text-text-subtle", children: [
|
|
1064
1125
|
l && /* @__PURE__ */ e(Z, { icon: l, size: "sm", color: "current" }),
|
|
1065
1126
|
/* @__PURE__ */ e("span", { className: "min-w-0 truncate", children: r }),
|
|
@@ -1075,7 +1136,7 @@ function Cs({ icon: t, text: r, time: n, joinUrl: s, joinLabel: a }) {
|
|
|
1075
1136
|
children: [
|
|
1076
1137
|
a ?? "Join",
|
|
1077
1138
|
" ",
|
|
1078
|
-
/* @__PURE__ */ e(Z, { icon:
|
|
1139
|
+
/* @__PURE__ */ e(Z, { icon: at, size: "xs" })
|
|
1079
1140
|
]
|
|
1080
1141
|
}
|
|
1081
1142
|
)
|
|
@@ -1087,12 +1148,12 @@ const Ae = {
|
|
|
1087
1148
|
chat: { fg: "text-channel-chat-fg", bg: "bg-channel-chat-soft" },
|
|
1088
1149
|
tel: { fg: "text-channel-phone-fg", bg: "bg-channel-phone-soft" },
|
|
1089
1150
|
note: { fg: "text-channel-note-fg", bg: "bg-channel-note-soft" }
|
|
1090
|
-
},
|
|
1151
|
+
}, Rr = {
|
|
1091
1152
|
sm: "size-avatar-xs rounded-sm text-xs",
|
|
1092
1153
|
md: "size-avatar-sm rounded-md text-xs",
|
|
1093
1154
|
lg: "size-avatar-lg rounded-md text-base"
|
|
1094
1155
|
};
|
|
1095
|
-
function
|
|
1156
|
+
function Ls({
|
|
1096
1157
|
channel: t,
|
|
1097
1158
|
children: r,
|
|
1098
1159
|
size: n = "md",
|
|
@@ -1106,18 +1167,18 @@ function Ss({
|
|
|
1106
1167
|
title: a,
|
|
1107
1168
|
className: d(
|
|
1108
1169
|
"inline-flex shrink-0 items-center justify-center font-bold",
|
|
1109
|
-
|
|
1170
|
+
Rr[n],
|
|
1110
1171
|
// An undeclared channel used to collapse onto the neutral "note" tone,
|
|
1111
1172
|
// which is also what a real internal note looks like. Deriving from the
|
|
1112
1173
|
// key keeps it distinguishable and keeps `note` meaning `note`.
|
|
1113
|
-
l ? d(l.fg, l.bg) : t ?
|
|
1174
|
+
l ? d(l.fg, l.bg) : t ? dt(t) : d(Ae.note.fg, Ae.note.bg),
|
|
1114
1175
|
s
|
|
1115
1176
|
),
|
|
1116
1177
|
children: r
|
|
1117
1178
|
}
|
|
1118
1179
|
);
|
|
1119
1180
|
}
|
|
1120
|
-
const
|
|
1181
|
+
const Is = ({
|
|
1121
1182
|
src: t,
|
|
1122
1183
|
alt: r,
|
|
1123
1184
|
size: n = "md",
|
|
@@ -1176,7 +1237,7 @@ const Es = ({
|
|
|
1176
1237
|
"absolute inset-0 flex items-center justify-center",
|
|
1177
1238
|
"text-text-muted"
|
|
1178
1239
|
), O = /* @__PURE__ */ e("div", { className: "animate-pulse", children: /* @__PURE__ */ e("div", { className: "w-6 h-6 bg-surface-hover rounded" }) }), H = /* @__PURE__ */ c("div", { className: "text-center", children: [
|
|
1179
|
-
/* @__PURE__ */ e(Z, { icon:
|
|
1240
|
+
/* @__PURE__ */ e(Z, { icon: $t, size: "lg", className: "mx-auto mb-1" }),
|
|
1180
1241
|
/* @__PURE__ */ e("span", { className: "text-xs", children: "Failed to load" })
|
|
1181
1242
|
] });
|
|
1182
1243
|
return /* @__PURE__ */ c("div", { className: F, children: [
|
|
@@ -1194,28 +1255,28 @@ const Es = ({
|
|
|
1194
1255
|
w && l && /* @__PURE__ */ e("div", { className: I, children: i || O }),
|
|
1195
1256
|
h && o && /* @__PURE__ */ e("div", { className: I, children: p || H })
|
|
1196
1257
|
] });
|
|
1197
|
-
},
|
|
1258
|
+
}, Fr = {
|
|
1198
1259
|
default: "text-text",
|
|
1199
1260
|
urgent: "text-danger-fg",
|
|
1200
1261
|
success: "text-success-fg"
|
|
1201
1262
|
};
|
|
1202
|
-
function
|
|
1263
|
+
function Os({ value: t, label: r, tone: n = "default", className: s, ...a }) {
|
|
1203
1264
|
return /* @__PURE__ */ c("div", { className: d("rounded-xl bg-editor px-4 py-3.5", s), ...a, children: [
|
|
1204
|
-
/* @__PURE__ */ e("div", { className: d("text-2xl font-semibold",
|
|
1265
|
+
/* @__PURE__ */ e("div", { className: d("text-2xl font-semibold", Fr[n]), children: t }),
|
|
1205
1266
|
/* @__PURE__ */ e("div", { className: "pt-0.5 text-xs text-text-muted", children: r })
|
|
1206
1267
|
] });
|
|
1207
1268
|
}
|
|
1208
|
-
const
|
|
1269
|
+
const Br = {
|
|
1209
1270
|
sm: "size-checkbox-sm",
|
|
1210
1271
|
md: "size-checkbox",
|
|
1211
1272
|
lg: "size-checkbox-lg",
|
|
1212
1273
|
full: "size-checkbox"
|
|
1213
|
-
},
|
|
1274
|
+
}, Hr = {
|
|
1214
1275
|
sm: "min-h-control-sm",
|
|
1215
1276
|
md: "min-h-control-md",
|
|
1216
1277
|
lg: "min-h-control-lg",
|
|
1217
1278
|
full: "min-h-control-md"
|
|
1218
|
-
},
|
|
1279
|
+
}, qr = {
|
|
1219
1280
|
sm: "text-sm",
|
|
1220
1281
|
md: "text-base",
|
|
1221
1282
|
lg: "text-md",
|
|
@@ -1242,7 +1303,7 @@ const _r = {
|
|
|
1242
1303
|
return le.useEffect(() => {
|
|
1243
1304
|
w.current && (w.current.indeterminate = a);
|
|
1244
1305
|
}, [a]), /* @__PURE__ */ c("div", { className: d("flex flex-col", l), children: [
|
|
1245
|
-
/* @__PURE__ */ c("div", { className: d("flex items-center gap-3",
|
|
1306
|
+
/* @__PURE__ */ c("div", { className: d("flex items-center gap-3", Hr[s]), children: [
|
|
1246
1307
|
/* @__PURE__ */ e(
|
|
1247
1308
|
"input",
|
|
1248
1309
|
{
|
|
@@ -1259,7 +1320,7 @@ const _r = {
|
|
|
1259
1320
|
"transition-colors duration-fast ease-out",
|
|
1260
1321
|
"focus-visible:outline-none focus-visible:focus-ring",
|
|
1261
1322
|
"disabled:cursor-not-allowed disabled:bg-surface-hover",
|
|
1262
|
-
|
|
1323
|
+
Br[s],
|
|
1263
1324
|
b ? "border-danger-border" : "border-border-strong",
|
|
1264
1325
|
u
|
|
1265
1326
|
),
|
|
@@ -1274,7 +1335,7 @@ const _r = {
|
|
|
1274
1335
|
className: d(
|
|
1275
1336
|
"cursor-pointer",
|
|
1276
1337
|
b ? "text-danger-fg" : "text-text",
|
|
1277
|
-
|
|
1338
|
+
qr[s],
|
|
1278
1339
|
o
|
|
1279
1340
|
),
|
|
1280
1341
|
children: t
|
|
@@ -1288,7 +1349,7 @@ const _r = {
|
|
|
1288
1349
|
}
|
|
1289
1350
|
);
|
|
1290
1351
|
we.displayName = "Checkbox";
|
|
1291
|
-
function
|
|
1352
|
+
function Ps({
|
|
1292
1353
|
icon: t,
|
|
1293
1354
|
onClick: r,
|
|
1294
1355
|
children: n
|
|
@@ -1311,7 +1372,7 @@ function Ms({
|
|
|
1311
1372
|
}
|
|
1312
1373
|
);
|
|
1313
1374
|
}
|
|
1314
|
-
function
|
|
1375
|
+
function js({
|
|
1315
1376
|
items: t,
|
|
1316
1377
|
getRowKey: r,
|
|
1317
1378
|
variant: n = "divided",
|
|
@@ -1342,7 +1403,7 @@ function zs({
|
|
|
1342
1403
|
className: U,
|
|
1343
1404
|
"aria-label": te
|
|
1344
1405
|
}) {
|
|
1345
|
-
const [
|
|
1406
|
+
const [K, y] = le.useState(
|
|
1346
1407
|
() => Object.fromEntries((g ?? []).filter((S) => S.defaultCollapsed).map((S) => [S.id, !0]))
|
|
1347
1408
|
), x = le.useRef(null), E = (S) => {
|
|
1348
1409
|
if (!["ArrowDown", "ArrowUp", "Home", "End"].includes(S.key)) return;
|
|
@@ -1386,7 +1447,7 @@ function zs({
|
|
|
1386
1447
|
)) });
|
|
1387
1448
|
if (t.length === 0 && I)
|
|
1388
1449
|
return /* @__PURE__ */ e("div", { className: ce, children: I });
|
|
1389
|
-
const ie = t.length > 0 && k.length === t.length, G = k.length > 0 && !ie,
|
|
1450
|
+
const ie = t.length > 0 && k.length === t.length, G = k.length > 0 && !ie, W = (S, M, X) => {
|
|
1390
1451
|
const q = i?.(S, M) ?? !1, N = p?.(S, M) ?? !1, R = m?.(S, M) ?? !1, re = C && T(S);
|
|
1391
1452
|
return /* @__PURE__ */ c(
|
|
1392
1453
|
"li",
|
|
@@ -1442,7 +1503,7 @@ function zs({
|
|
|
1442
1503
|
);
|
|
1443
1504
|
}, j = (() => {
|
|
1444
1505
|
if (!f)
|
|
1445
|
-
return t.map((q, N) =>
|
|
1506
|
+
return t.map((q, N) => W(q, N, N === 0));
|
|
1446
1507
|
const S = /* @__PURE__ */ new Map();
|
|
1447
1508
|
t.forEach((q, N) => {
|
|
1448
1509
|
const R = f(q, N);
|
|
@@ -1453,7 +1514,7 @@ function zs({
|
|
|
1453
1514
|
...M.filter((q) => S.has(q.id)),
|
|
1454
1515
|
...[...S.keys()].filter((q) => !M.some((N) => N.id === q)).map((q) => ({ id: q }))
|
|
1455
1516
|
].flatMap((q, N) => {
|
|
1456
|
-
const R = S.get(q.id) ?? [], re = v &&
|
|
1517
|
+
const R = S.get(q.id) ?? [], re = v && K[q.id], oe = q.title ?? q.id, pe = q.count ?? R.length, ye = /* @__PURE__ */ e(
|
|
1457
1518
|
"li",
|
|
1458
1519
|
{
|
|
1459
1520
|
onClick: v ? () => y((he) => ({ ...he, [q.id]: !he[q.id] })) : void 0,
|
|
@@ -1474,7 +1535,7 @@ function zs({
|
|
|
1474
1535
|
R.map((he) => he.item)
|
|
1475
1536
|
) : /* @__PURE__ */ c(Ee, { children: [
|
|
1476
1537
|
v && /* @__PURE__ */ e(
|
|
1477
|
-
|
|
1538
|
+
je,
|
|
1478
1539
|
{
|
|
1479
1540
|
"aria-hidden": !0,
|
|
1480
1541
|
className: d(
|
|
@@ -1500,7 +1561,7 @@ function zs({
|
|
|
1500
1561
|
);
|
|
1501
1562
|
return re ? [ye] : [
|
|
1502
1563
|
ye,
|
|
1503
|
-
...R.map(({ item: he, index: xe },
|
|
1564
|
+
...R.map(({ item: he, index: xe }, Re) => W(he, xe, Re === 0))
|
|
1504
1565
|
];
|
|
1505
1566
|
});
|
|
1506
1567
|
})();
|
|
@@ -1551,7 +1612,7 @@ function zs({
|
|
|
1551
1612
|
] }) })
|
|
1552
1613
|
] });
|
|
1553
1614
|
}
|
|
1554
|
-
function
|
|
1615
|
+
function Rs({
|
|
1555
1616
|
side: t,
|
|
1556
1617
|
continued: r = !1,
|
|
1557
1618
|
tone: n = "default",
|
|
@@ -1584,7 +1645,7 @@ function As({
|
|
|
1584
1645
|
}
|
|
1585
1646
|
);
|
|
1586
1647
|
}
|
|
1587
|
-
function
|
|
1648
|
+
function Fs({ icon: t, label: r, unset: n, className: s }) {
|
|
1588
1649
|
return /* @__PURE__ */ c(
|
|
1589
1650
|
"span",
|
|
1590
1651
|
{
|
|
@@ -1600,11 +1661,11 @@ function Ds({ icon: t, label: r, unset: n, className: s }) {
|
|
|
1600
1661
|
}
|
|
1601
1662
|
);
|
|
1602
1663
|
}
|
|
1603
|
-
function
|
|
1664
|
+
function Bs() {
|
|
1604
1665
|
return /* @__PURE__ */ e("span", { "aria-hidden": !0, className: "shrink-0 text-text-disabled", children: "·" });
|
|
1605
1666
|
}
|
|
1606
1667
|
const fe = ({ className: t }) => /* @__PURE__ */ e("span", { className: d("block rounded-xs bg-surface-hover", t) });
|
|
1607
|
-
function
|
|
1668
|
+
function Ur({
|
|
1608
1669
|
shape: t,
|
|
1609
1670
|
rows: r,
|
|
1610
1671
|
columns: n
|
|
@@ -1671,7 +1732,7 @@ function Ir({
|
|
|
1671
1732
|
] });
|
|
1672
1733
|
}
|
|
1673
1734
|
}
|
|
1674
|
-
const
|
|
1735
|
+
const Vr = {
|
|
1675
1736
|
text: 2,
|
|
1676
1737
|
table: 8,
|
|
1677
1738
|
list: 6,
|
|
@@ -1679,7 +1740,7 @@ const Or = {
|
|
|
1679
1740
|
menu: 4,
|
|
1680
1741
|
cards: 2
|
|
1681
1742
|
};
|
|
1682
|
-
function
|
|
1743
|
+
function Ke({
|
|
1683
1744
|
variant: t = "page",
|
|
1684
1745
|
shape: r,
|
|
1685
1746
|
rows: n,
|
|
@@ -1690,10 +1751,10 @@ function Ve({
|
|
|
1690
1751
|
tableColumns: u,
|
|
1691
1752
|
tableRows: i
|
|
1692
1753
|
}) {
|
|
1693
|
-
const p = r ?? (o ? "table" : "text"), m = n ?? i ??
|
|
1754
|
+
const p = r ?? (o ? "table" : "text"), m = n ?? i ?? Vr[p], f = s ?? u ?? (p === "cards" ? 3 : 6), g = /* @__PURE__ */ e("div", { className: d("w-full animate-pulse", l), "aria-hidden": !0, children: a ?? /* @__PURE__ */ e(Ur, { shape: p, rows: m, columns: f }) });
|
|
1694
1755
|
return t === "inline" ? g : /* @__PURE__ */ e("main", { className: "flex-1 bg-surface p-6", children: g });
|
|
1695
1756
|
}
|
|
1696
|
-
const
|
|
1757
|
+
const Wr = ({
|
|
1697
1758
|
surface: t = !1,
|
|
1698
1759
|
title: r,
|
|
1699
1760
|
subtitle: n,
|
|
@@ -1773,7 +1834,7 @@ const Pr = ({
|
|
|
1773
1834
|
),
|
|
1774
1835
|
n && /* @__PURE__ */ e("span", { className: "shrink-0 text-base text-text-muted truncate", children: n }),
|
|
1775
1836
|
m && /* @__PURE__ */ e(
|
|
1776
|
-
|
|
1837
|
+
Lt,
|
|
1777
1838
|
{
|
|
1778
1839
|
size: 15,
|
|
1779
1840
|
onClick: C,
|
|
@@ -1799,7 +1860,7 @@ const Pr = ({
|
|
|
1799
1860
|
] }) }),
|
|
1800
1861
|
a.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-wrap sm:flex-nowrap gap-2 sm:gap-3", children: a.map(
|
|
1801
1862
|
(D) => D.render ? /* @__PURE__ */ e(le.Fragment, { children: D.render() }, D.id) : D.splitOptions && D.splitOptions.length > 0 ? /* @__PURE__ */ e(
|
|
1802
|
-
|
|
1863
|
+
ot,
|
|
1803
1864
|
{
|
|
1804
1865
|
label: D.label,
|
|
1805
1866
|
onClick: D.onClick,
|
|
@@ -1828,11 +1889,11 @@ const Pr = ({
|
|
|
1828
1889
|
]
|
|
1829
1890
|
}
|
|
1830
1891
|
);
|
|
1831
|
-
},
|
|
1892
|
+
}, Kr = {
|
|
1832
1893
|
none: "",
|
|
1833
1894
|
sm: "px-3 pb-3 pt-1",
|
|
1834
1895
|
md: "px-5 pb-5 pt-1.5"
|
|
1835
|
-
},
|
|
1896
|
+
}, Hs = ({
|
|
1836
1897
|
title: t,
|
|
1837
1898
|
subtitle: r,
|
|
1838
1899
|
meta: n,
|
|
@@ -1851,7 +1912,7 @@ const Pr = ({
|
|
|
1851
1912
|
contentClassName: v,
|
|
1852
1913
|
children: h
|
|
1853
1914
|
}) => {
|
|
1854
|
-
const C = p ? /* @__PURE__ */ e(
|
|
1915
|
+
const C = p ? /* @__PURE__ */ e(Ke, { variant: "inline", shape: m }) : f ? /* @__PURE__ */ e("div", { className: "flex flex-col items-center justify-center py-12", children: f }) : h;
|
|
1855
1916
|
return /* @__PURE__ */ c(
|
|
1856
1917
|
"div",
|
|
1857
1918
|
{
|
|
@@ -1865,7 +1926,7 @@ const Pr = ({
|
|
|
1865
1926
|
),
|
|
1866
1927
|
children: [
|
|
1867
1928
|
/* @__PURE__ */ e(
|
|
1868
|
-
|
|
1929
|
+
Wr,
|
|
1869
1930
|
{
|
|
1870
1931
|
surface: u,
|
|
1871
1932
|
title: t,
|
|
@@ -1884,7 +1945,7 @@ const Pr = ({
|
|
|
1884
1945
|
{
|
|
1885
1946
|
className: d(
|
|
1886
1947
|
b && "min-h-0 flex-1 overflow-y-auto",
|
|
1887
|
-
|
|
1948
|
+
Kr[g],
|
|
1888
1949
|
v
|
|
1889
1950
|
),
|
|
1890
1951
|
children: C
|
|
@@ -1899,7 +1960,7 @@ const Pr = ({
|
|
|
1899
1960
|
className: n
|
|
1900
1961
|
}) => t.length === 0 ? null : /* @__PURE__ */ e("div", { className: d("flex flex-wrap items-center gap-2", n), children: t.map(
|
|
1901
1962
|
(s) => s.render ? /* @__PURE__ */ e(le.Fragment, { children: s.render() }, s.id) : s.splitOptions && s.splitOptions.length > 0 ? /* @__PURE__ */ e(
|
|
1902
|
-
|
|
1963
|
+
ot,
|
|
1903
1964
|
{
|
|
1904
1965
|
label: s.label,
|
|
1905
1966
|
onClick: s.onClick,
|
|
@@ -1922,19 +1983,19 @@ const Pr = ({
|
|
|
1922
1983
|
},
|
|
1923
1984
|
s.id
|
|
1924
1985
|
)
|
|
1925
|
-
) }),
|
|
1986
|
+
) }), Gr = {
|
|
1926
1987
|
none: "p-0",
|
|
1927
1988
|
sm: "p-2",
|
|
1928
1989
|
md: "px-5 py-4",
|
|
1929
1990
|
lg: "p-6"
|
|
1930
|
-
},
|
|
1991
|
+
}, qs = ({
|
|
1931
1992
|
actions: t = [],
|
|
1932
1993
|
onBack: r,
|
|
1933
1994
|
backLabel: n = "Back",
|
|
1934
1995
|
className: s,
|
|
1935
1996
|
padding: a = "md",
|
|
1936
1997
|
children: l
|
|
1937
|
-
}) => /* @__PURE__ */ c("div", { className: d("flex items-center gap-2",
|
|
1998
|
+
}) => /* @__PURE__ */ c("div", { className: d("flex items-center gap-2", Gr[a], s), children: [
|
|
1938
1999
|
r && /* @__PURE__ */ e(
|
|
1939
2000
|
ae,
|
|
1940
2001
|
{
|
|
@@ -1947,7 +2008,7 @@ const Pr = ({
|
|
|
1947
2008
|
),
|
|
1948
2009
|
l && /* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: l }),
|
|
1949
2010
|
/* @__PURE__ */ e(ke, { actions: t, className: d(!l && "ml-auto") })
|
|
1950
|
-
] }),
|
|
2011
|
+
] }), Us = ({
|
|
1951
2012
|
label: t,
|
|
1952
2013
|
meta: r,
|
|
1953
2014
|
action: n,
|
|
@@ -1957,7 +2018,7 @@ const Pr = ({
|
|
|
1957
2018
|
r && /* @__PURE__ */ e("span", { className: "min-w-0 flex-1 truncate text-right text-xs tabular-nums text-text-subtle", children: r }),
|
|
1958
2019
|
n && /* @__PURE__ */ e("span", { className: "ml-auto shrink-0", children: n })
|
|
1959
2020
|
] });
|
|
1960
|
-
function
|
|
2021
|
+
function Vs({
|
|
1961
2022
|
label: t,
|
|
1962
2023
|
trailing: r,
|
|
1963
2024
|
align: n = "center",
|
|
@@ -1971,11 +2032,11 @@ function Os({
|
|
|
1971
2032
|
r && /* @__PURE__ */ e("span", { className: "shrink-0", children: r })
|
|
1972
2033
|
] });
|
|
1973
2034
|
}
|
|
1974
|
-
const
|
|
1975
|
-
function
|
|
1976
|
-
return
|
|
2035
|
+
const mt = st(null), Ws = mt.Provider;
|
|
2036
|
+
function Jr() {
|
|
2037
|
+
return Tt(mt);
|
|
1977
2038
|
}
|
|
1978
|
-
function
|
|
2039
|
+
function Ks() {
|
|
1979
2040
|
const [t, r] = B(null), n = ge(
|
|
1980
2041
|
() => ({
|
|
1981
2042
|
setTrail: (s, a) => r((l) => a ? { ownerId: s, entry: a } : l && l.ownerId !== s ? l : null)
|
|
@@ -1984,13 +2045,13 @@ function js() {
|
|
|
1984
2045
|
);
|
|
1985
2046
|
return { trail: t?.entry ?? null, api: n };
|
|
1986
2047
|
}
|
|
1987
|
-
const
|
|
2048
|
+
const Yr = {
|
|
1988
2049
|
none: "",
|
|
1989
2050
|
sm: "px-3 py-3",
|
|
1990
2051
|
// Matches the frame header's own horizontal padding, so content lines up
|
|
1991
2052
|
// with the title above it.
|
|
1992
2053
|
md: "px-5 py-4"
|
|
1993
|
-
},
|
|
2054
|
+
}, Gs = ({
|
|
1994
2055
|
children: t,
|
|
1995
2056
|
actions: r = [],
|
|
1996
2057
|
secondaryActions: n = [],
|
|
@@ -2004,7 +2065,7 @@ const Br = {
|
|
|
2004
2065
|
className: m,
|
|
2005
2066
|
contentClassName: f
|
|
2006
2067
|
}) => {
|
|
2007
|
-
const g =
|
|
2068
|
+
const g = Jr(), b = Et(), w = se(a);
|
|
2008
2069
|
w.current = a;
|
|
2009
2070
|
const v = !!a, h = se(r);
|
|
2010
2071
|
h.current = r;
|
|
@@ -2062,7 +2123,7 @@ const Br = {
|
|
|
2062
2123
|
r.length > 0 && /* @__PURE__ */ e(ke, { actions: r })
|
|
2063
2124
|
] })
|
|
2064
2125
|
] }),
|
|
2065
|
-
/* @__PURE__ */ e("div", { className: d("flex-1",
|
|
2126
|
+
/* @__PURE__ */ e("div", { className: d("flex-1", Yr[p], f), children: u ? /* @__PURE__ */ e(Ke, { variant: "inline", shape: i }) : t }),
|
|
2066
2127
|
Y && /* @__PURE__ */ c("div", { className: "sticky bottom-0 z-10 flex shrink-0 items-center gap-2 border-t border-border bg-surface px-5 py-3", children: [
|
|
2067
2128
|
n.length > 0 && /* @__PURE__ */ e(ke, { actions: n, defaultVariant: "ghost" }),
|
|
2068
2129
|
r.length > 0 && /* @__PURE__ */ e(ke, { actions: r, className: "ml-auto" })
|
|
@@ -2070,7 +2131,7 @@ const Br = {
|
|
|
2070
2131
|
] })
|
|
2071
2132
|
);
|
|
2072
2133
|
};
|
|
2073
|
-
function
|
|
2134
|
+
function Js({
|
|
2074
2135
|
label: t,
|
|
2075
2136
|
description: r,
|
|
2076
2137
|
control: n,
|
|
@@ -2097,7 +2158,7 @@ function Fs({
|
|
|
2097
2158
|
}
|
|
2098
2159
|
);
|
|
2099
2160
|
}
|
|
2100
|
-
function
|
|
2161
|
+
function Ys({
|
|
2101
2162
|
icon: t,
|
|
2102
2163
|
title: r,
|
|
2103
2164
|
description: n,
|
|
@@ -2117,7 +2178,7 @@ function Bs({
|
|
|
2117
2178
|
/* @__PURE__ */ e("div", { className: d("flex flex-col", t && "pl-6"), children: a })
|
|
2118
2179
|
] });
|
|
2119
2180
|
}
|
|
2120
|
-
function
|
|
2181
|
+
function Xs({ label: t, dotColor: r, onClick: n, className: s }) {
|
|
2121
2182
|
return /* @__PURE__ */ c(
|
|
2122
2183
|
"button",
|
|
2123
2184
|
{
|
|
@@ -2137,12 +2198,12 @@ function Hs({ label: t, dotColor: r, onClick: n, className: s }) {
|
|
|
2137
2198
|
}
|
|
2138
2199
|
),
|
|
2139
2200
|
/* @__PURE__ */ e("span", { className: "min-w-0 truncate", children: t }),
|
|
2140
|
-
/* @__PURE__ */ e(Z, { icon:
|
|
2201
|
+
/* @__PURE__ */ e(Z, { icon: at, size: "xs", className: "opacity-70" })
|
|
2141
2202
|
]
|
|
2142
2203
|
}
|
|
2143
2204
|
);
|
|
2144
2205
|
}
|
|
2145
|
-
const
|
|
2206
|
+
const Xr = () => /* @__PURE__ */ e(Z, { icon: It, size: "md", color: "current" }), Zr = () => /* @__PURE__ */ e(Z, { icon: Te, size: "md", color: "current" }), Qr = () => /* @__PURE__ */ e(Z, { icon: je, size: "md", color: "current" }), qe = be(
|
|
2146
2207
|
({
|
|
2147
2208
|
value: t,
|
|
2148
2209
|
onChange: r,
|
|
@@ -2209,7 +2270,7 @@ const Hr = () => /* @__PURE__ */ e(Z, { icon: $t, size: "md", color: "current" }
|
|
|
2209
2270
|
"h-control-md w-full px-3 text-base": l === "full"
|
|
2210
2271
|
},
|
|
2211
2272
|
o
|
|
2212
|
-
), te = F(),
|
|
2273
|
+
), te = F(), K = [
|
|
2213
2274
|
"January",
|
|
2214
2275
|
"February",
|
|
2215
2276
|
"March",
|
|
@@ -2246,7 +2307,7 @@ const Hr = () => /* @__PURE__ */ e(Z, { icon: $t, size: "md", color: "current" }
|
|
|
2246
2307
|
onClick: () => !s && b(!g),
|
|
2247
2308
|
disabled: s,
|
|
2248
2309
|
className: "absolute inset-y-0 right-0 flex items-center pr-3 text-text-muted hover:text-text-muted",
|
|
2249
|
-
children: /* @__PURE__ */ e(
|
|
2310
|
+
children: /* @__PURE__ */ e(Xr, {})
|
|
2250
2311
|
}
|
|
2251
2312
|
)
|
|
2252
2313
|
] }),
|
|
@@ -2257,13 +2318,13 @@ const Hr = () => /* @__PURE__ */ e(Z, { icon: $t, size: "md", color: "current" }
|
|
|
2257
2318
|
className: "fixed z-overlay overflow-auto rounded-lg border border-border bg-surface p-4 shadow-overlay min-w-panel",
|
|
2258
2319
|
children: [
|
|
2259
2320
|
/* @__PURE__ */ c("div", { className: "flex items-center justify-between mb-4", children: [
|
|
2260
|
-
/* @__PURE__ */ e("button", { onClick: I, className: "p-1 hover:bg-surface-hover rounded", children: /* @__PURE__ */ e(
|
|
2321
|
+
/* @__PURE__ */ e("button", { onClick: I, className: "p-1 hover:bg-surface-hover rounded", children: /* @__PURE__ */ e(Zr, {}) }),
|
|
2261
2322
|
/* @__PURE__ */ c("h3", { className: "text-sm font-medium text-text", children: [
|
|
2262
|
-
|
|
2323
|
+
K[w.getMonth()],
|
|
2263
2324
|
" ",
|
|
2264
2325
|
w.getFullYear()
|
|
2265
2326
|
] }),
|
|
2266
|
-
/* @__PURE__ */ e("button", { onClick: O, className: "p-1 hover:bg-surface-hover rounded", children: /* @__PURE__ */ e(
|
|
2327
|
+
/* @__PURE__ */ e("button", { onClick: O, className: "p-1 hover:bg-surface-hover rounded", children: /* @__PURE__ */ e(Qr, {}) })
|
|
2267
2328
|
] }),
|
|
2268
2329
|
/* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1 mb-2", children: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map((y) => /* @__PURE__ */ e("div", { className: "text-xs font-medium text-text-muted text-center py-1", children: y }, y)) }),
|
|
2269
2330
|
/* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1", children: te.map((y, x) => {
|
|
@@ -2313,7 +2374,7 @@ const Hr = () => /* @__PURE__ */ e(Z, { icon: $t, size: "md", color: "current" }
|
|
|
2313
2374
|
)
|
|
2314
2375
|
] });
|
|
2315
2376
|
}
|
|
2316
|
-
),
|
|
2377
|
+
), ft = be(
|
|
2317
2378
|
({
|
|
2318
2379
|
value: t,
|
|
2319
2380
|
onValueChange: r,
|
|
@@ -2338,7 +2399,7 @@ const Hr = () => /* @__PURE__ */ e(Z, { icon: $t, size: "md", color: "current" }
|
|
|
2338
2399
|
l
|
|
2339
2400
|
),
|
|
2340
2401
|
children: [
|
|
2341
|
-
/* @__PURE__ */ e(Z, { icon:
|
|
2402
|
+
/* @__PURE__ */ e(Z, { icon: Pe, size: "md", color: "current", className: "shrink-0" }),
|
|
2342
2403
|
/* @__PURE__ */ e(
|
|
2343
2404
|
"input",
|
|
2344
2405
|
{
|
|
@@ -2377,8 +2438,8 @@ const Hr = () => /* @__PURE__ */ e(Z, { icon: $t, size: "md", color: "current" }
|
|
|
2377
2438
|
}
|
|
2378
2439
|
)
|
|
2379
2440
|
);
|
|
2380
|
-
|
|
2381
|
-
const
|
|
2441
|
+
ft.displayName = "SearchField";
|
|
2442
|
+
const en = ({
|
|
2382
2443
|
trigger: t,
|
|
2383
2444
|
options: r,
|
|
2384
2445
|
value: n,
|
|
@@ -2450,7 +2511,7 @@ const Vr = ({
|
|
|
2450
2511
|
}, te = d(
|
|
2451
2512
|
"fixed z-overlay min-w-menu bg-surface rounded-lg shadow-overlay border border-border",
|
|
2452
2513
|
"max-h-60 overflow-auto"
|
|
2453
|
-
),
|
|
2514
|
+
), K = d(
|
|
2454
2515
|
"fixed z-overlay min-w-menu bg-surface rounded-lg shadow-overlay border border-border",
|
|
2455
2516
|
"max-h-60 overflow-auto"
|
|
2456
2517
|
);
|
|
@@ -2517,7 +2578,7 @@ const Vr = ({
|
|
|
2517
2578
|
] })
|
|
2518
2579
|
] }),
|
|
2519
2580
|
/* @__PURE__ */ c("div", { className: "flex items-center space-x-2", children: [
|
|
2520
|
-
u && n === y.value && /* @__PURE__ */ e(
|
|
2581
|
+
u && n === y.value && /* @__PURE__ */ e(Je, { className: "size-icon-md shrink-0 text-success-fg", "aria-hidden": !0 }),
|
|
2521
2582
|
E && /* @__PURE__ */ e("span", { className: "text-text-muted text-xs", children: "▶" })
|
|
2522
2583
|
] })
|
|
2523
2584
|
]
|
|
@@ -2527,7 +2588,7 @@ const Vr = ({
|
|
|
2527
2588
|
"div",
|
|
2528
2589
|
{
|
|
2529
2590
|
ref: C,
|
|
2530
|
-
className:
|
|
2591
|
+
className: K,
|
|
2531
2592
|
style: {
|
|
2532
2593
|
top: `${b.top}px`,
|
|
2533
2594
|
left: `${b.left}px`
|
|
@@ -2570,7 +2631,7 @@ const Vr = ({
|
|
|
2570
2631
|
] })
|
|
2571
2632
|
] }),
|
|
2572
2633
|
u && z && /* @__PURE__ */ e(
|
|
2573
|
-
|
|
2634
|
+
Je,
|
|
2574
2635
|
{
|
|
2575
2636
|
className: "size-icon-md shrink-0 text-success-fg",
|
|
2576
2637
|
"aria-hidden": !0
|
|
@@ -2602,29 +2663,29 @@ const Vr = ({
|
|
|
2602
2663
|
]
|
|
2603
2664
|
}
|
|
2604
2665
|
);
|
|
2605
|
-
},
|
|
2666
|
+
}, Zs = (t) => (r) => t(r instanceof Date ? r : null), Qs = (t) => (r) => t(typeof r == "string" ? r : ""), ea = (t) => (r) => t(Array.isArray(r) ? r : typeof r == "string" && r ? [r] : []), tn = {
|
|
2606
2667
|
none: "px-0",
|
|
2607
2668
|
sm: "px-2",
|
|
2608
2669
|
md: "px-3.5",
|
|
2609
2670
|
lg: "px-5"
|
|
2610
|
-
},
|
|
2671
|
+
}, rn = {
|
|
2611
2672
|
sm: "h-row-lg",
|
|
2612
2673
|
md: "h-row-xl",
|
|
2613
2674
|
lg: "h-14"
|
|
2614
|
-
},
|
|
2615
|
-
function
|
|
2675
|
+
}, nn = 8, Qe = ["62%", "44%", "74%", "52%", "68%", "48%", "80%", "56%"];
|
|
2676
|
+
function sn(t, r) {
|
|
2616
2677
|
if (r <= 7) return Array.from({ length: r }, (l, o) => o);
|
|
2617
2678
|
const s = [.../* @__PURE__ */ new Set([0, r - 1, t - 1, t, t + 1])].filter((l) => l >= 0 && l < r).sort((l, o) => l - o), a = [];
|
|
2618
2679
|
return s.forEach((l, o) => {
|
|
2619
2680
|
o > 0 && l - s[o - 1] > 1 && a.push("gap"), a.push(l);
|
|
2620
2681
|
}), a;
|
|
2621
2682
|
}
|
|
2622
|
-
const
|
|
2683
|
+
const an = (t) => {
|
|
2623
2684
|
const r = Array.isArray(t.value) ? t.value : t.value != null && t.value !== "" && t.value !== "all" ? [t.value] : [];
|
|
2624
2685
|
if (t.type === "date") {
|
|
2625
2686
|
const o = t.value instanceof Date;
|
|
2626
2687
|
return /* @__PURE__ */ e(
|
|
2627
|
-
|
|
2688
|
+
qe,
|
|
2628
2689
|
{
|
|
2629
2690
|
value: t.value,
|
|
2630
2691
|
onChange: (u) => t.onChange(u),
|
|
@@ -2641,7 +2702,7 @@ const Yr = (t) => {
|
|
|
2641
2702
|
);
|
|
2642
2703
|
}, l = r.length > 0;
|
|
2643
2704
|
return /* @__PURE__ */ e(
|
|
2644
|
-
|
|
2705
|
+
lr,
|
|
2645
2706
|
{
|
|
2646
2707
|
tone: "outline",
|
|
2647
2708
|
caret: !0,
|
|
@@ -2671,7 +2732,7 @@ const Yr = (t) => {
|
|
|
2671
2732
|
)) })
|
|
2672
2733
|
}
|
|
2673
2734
|
);
|
|
2674
|
-
},
|
|
2735
|
+
}, et = ({
|
|
2675
2736
|
data: t,
|
|
2676
2737
|
columns: r,
|
|
2677
2738
|
loading: n = !1,
|
|
@@ -2691,7 +2752,7 @@ const Yr = (t) => {
|
|
|
2691
2752
|
selectable: h = !1,
|
|
2692
2753
|
selectedRows: C = [],
|
|
2693
2754
|
onSelectionChange: k,
|
|
2694
|
-
getRowKey: P = (te,
|
|
2755
|
+
getRowKey: P = (te, K) => K,
|
|
2695
2756
|
emptyContent: D,
|
|
2696
2757
|
footerSummary: Y,
|
|
2697
2758
|
size: F = "md",
|
|
@@ -2701,7 +2762,7 @@ const Yr = (t) => {
|
|
|
2701
2762
|
rowClassName: H,
|
|
2702
2763
|
headerBackground: U = !0
|
|
2703
2764
|
}) => {
|
|
2704
|
-
const [te,
|
|
2765
|
+
const [te, K] = B(""), y = l !== void 0, x = y ? l : te, E = o ?? K, [$, T] = B({
|
|
2705
2766
|
column: null,
|
|
2706
2767
|
direction: null
|
|
2707
2768
|
}), [L, z] = B({
|
|
@@ -2725,7 +2786,7 @@ const Yr = (t) => {
|
|
|
2725
2786
|
let V = 0;
|
|
2726
2787
|
return ue < ee ? V = -1 : ue > ee && (V = 1), $.direction === "desc" ? -V : V;
|
|
2727
2788
|
}) : ie;
|
|
2728
|
-
}, [ie, $, r]),
|
|
2789
|
+
}, [ie, $, r]), W = ge(() => {
|
|
2729
2790
|
if (!g || m) return G;
|
|
2730
2791
|
const A = L.page * L.pageSize, J = A + L.pageSize;
|
|
2731
2792
|
return G.slice(A, J);
|
|
@@ -2745,23 +2806,23 @@ const Yr = (t) => {
|
|
|
2745
2806
|
[C, k, P]
|
|
2746
2807
|
), X = de(
|
|
2747
2808
|
(A) => {
|
|
2748
|
-
k && k(A ? [...
|
|
2809
|
+
k && k(A ? [...W] : []);
|
|
2749
2810
|
},
|
|
2750
|
-
[
|
|
2811
|
+
[W, k]
|
|
2751
2812
|
);
|
|
2752
2813
|
Q(() => {
|
|
2753
2814
|
z((A) => ({ ...A, page: 0 }));
|
|
2754
2815
|
}, []), Q(() => {
|
|
2755
2816
|
z((A) => ({ ...A, page: 0 }));
|
|
2756
2817
|
}, []);
|
|
2757
|
-
const q = G.length, N = Math.ceil(q / L.pageSize), R = L.page * L.pageSize + 1, re = Math.min(R + L.pageSize - 1, q), oe =
|
|
2818
|
+
const q = G.length, N = Math.ceil(q / L.pageSize), R = L.page * L.pageSize + 1, re = Math.min(R + L.pageSize - 1, q), oe = W.length > 0 && W.every((A) => {
|
|
2758
2819
|
const J = P(A, 0);
|
|
2759
2820
|
return C.some((ne, ue) => P(ne, ue) === J);
|
|
2760
|
-
}), pe =
|
|
2821
|
+
}), pe = W.some((A) => {
|
|
2761
2822
|
const J = P(A, 0);
|
|
2762
2823
|
return C.some((ne, ue) => P(ne, ue) === J);
|
|
2763
|
-
}), ye =
|
|
2764
|
-
const A =
|
|
2824
|
+
}), ye = tn[I], he = U ? "bg-surface-sunk" : "bg-surface", xe = d("text-text", ye), Re = s || u.length > 0 || i.length > 0 || !!p, Nt = ge(() => {
|
|
2825
|
+
const A = W.map((ee, V) => ({ row: ee, index: V }));
|
|
2765
2826
|
if (!m) return [{ group: null, rows: A }];
|
|
2766
2827
|
const J = /* @__PURE__ */ new Map();
|
|
2767
2828
|
for (const ee of A) {
|
|
@@ -2773,11 +2834,11 @@ const Yr = (t) => {
|
|
|
2773
2834
|
...ne.filter((ee) => J.has(ee.id)),
|
|
2774
2835
|
...[...J.keys()].filter((ee) => !ne.some((V) => V.id === ee)).map((ee) => ({ id: ee }))
|
|
2775
2836
|
].map((ee) => ({ group: ee, rows: J.get(ee.id) ?? [] }));
|
|
2776
|
-
}, [
|
|
2837
|
+
}, [W, m, f]), wt = r.length + (h ? 1 : 0) + (w.length > 0 ? 1 : 0), Ge = g && q > 0, kt = Ge || Y !== void 0;
|
|
2777
2838
|
return /* @__PURE__ */ c("div", { className: d("flex min-w-0 flex-col", O), children: [
|
|
2778
|
-
|
|
2839
|
+
Re && /* @__PURE__ */ c("div", { className: "flex flex-wrap items-center gap-2 pb-3", children: [
|
|
2779
2840
|
s && /* @__PURE__ */ e(
|
|
2780
|
-
|
|
2841
|
+
ft,
|
|
2781
2842
|
{
|
|
2782
2843
|
value: x,
|
|
2783
2844
|
onValueChange: E,
|
|
@@ -2785,7 +2846,7 @@ const Yr = (t) => {
|
|
|
2785
2846
|
containerClassName: "w-full sm:w-66"
|
|
2786
2847
|
}
|
|
2787
2848
|
),
|
|
2788
|
-
u.map((A) => /* @__PURE__ */ e(
|
|
2849
|
+
u.map((A) => /* @__PURE__ */ e(an, { ...A }, A.id)),
|
|
2789
2850
|
p,
|
|
2790
2851
|
i.length > 0 && /* @__PURE__ */ e(ke, { actions: i, className: "ml-auto" })
|
|
2791
2852
|
] }),
|
|
@@ -2824,7 +2885,7 @@ const Yr = (t) => {
|
|
|
2824
2885
|
A.sortable && /* @__PURE__ */ e(
|
|
2825
2886
|
Z,
|
|
2826
2887
|
{
|
|
2827
|
-
icon: $.column === A.id && $.direction === "desc" ?
|
|
2888
|
+
icon: $.column === A.id && $.direction === "desc" ? Oe : Ot,
|
|
2828
2889
|
size: "xs",
|
|
2829
2890
|
className: d(
|
|
2830
2891
|
"transition-opacity duration-fast ease-out",
|
|
@@ -2838,7 +2899,7 @@ const Yr = (t) => {
|
|
|
2838
2899
|
)),
|
|
2839
2900
|
w.length > 0 && /* @__PURE__ */ e("th", { className: d(xe, "w-10"), children: /* @__PURE__ */ e("span", { className: "sr-only", children: "Actions" }) })
|
|
2840
2901
|
] }) }),
|
|
2841
|
-
/* @__PURE__ */ e("tbody", { children: n ? Array.from({ length:
|
|
2902
|
+
/* @__PURE__ */ e("tbody", { children: n ? Array.from({ length: nn }).map((A, J) => /* @__PURE__ */ c(
|
|
2842
2903
|
"tr",
|
|
2843
2904
|
{
|
|
2844
2905
|
className: "animate-pulse border-t border-border-subtle",
|
|
@@ -2855,7 +2916,7 @@ const Yr = (t) => {
|
|
|
2855
2916
|
{
|
|
2856
2917
|
className: "block h-3 rounded-xs bg-surface-hover",
|
|
2857
2918
|
style: {
|
|
2858
|
-
width:
|
|
2919
|
+
width: Qe[(J + ue) % Qe.length]
|
|
2859
2920
|
}
|
|
2860
2921
|
}
|
|
2861
2922
|
)
|
|
@@ -2866,7 +2927,7 @@ const Yr = (t) => {
|
|
|
2866
2927
|
]
|
|
2867
2928
|
},
|
|
2868
2929
|
`skeleton-${J}`
|
|
2869
|
-
)) :
|
|
2930
|
+
)) : W.length === 0 ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e(
|
|
2870
2931
|
"td",
|
|
2871
2932
|
{
|
|
2872
2933
|
colSpan: r.length + (h ? 1 : 0) + (w.length > 0 ? 1 : 0),
|
|
@@ -2876,12 +2937,12 @@ const Yr = (t) => {
|
|
|
2876
2937
|
),
|
|
2877
2938
|
children: D || "No data available"
|
|
2878
2939
|
}
|
|
2879
|
-
) }) :
|
|
2940
|
+
) }) : Nt.flatMap((A) => [
|
|
2880
2941
|
...A.group ? [
|
|
2881
2942
|
/* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e(
|
|
2882
2943
|
"td",
|
|
2883
2944
|
{
|
|
2884
|
-
colSpan:
|
|
2945
|
+
colSpan: wt,
|
|
2885
2946
|
className: d(
|
|
2886
2947
|
// A caption over its rows, not a second column strip:
|
|
2887
2948
|
// same surface as the rows, no rules, count on the right.
|
|
@@ -2903,7 +2964,7 @@ const Yr = (t) => {
|
|
|
2903
2964
|
"tr",
|
|
2904
2965
|
{
|
|
2905
2966
|
className: d(
|
|
2906
|
-
|
|
2967
|
+
rn[F],
|
|
2907
2968
|
// Hairline above every row, including the first: it is
|
|
2908
2969
|
// what separates the body from the column strip.
|
|
2909
2970
|
"border-t border-border-subtle",
|
|
@@ -2946,10 +3007,10 @@ const Yr = (t) => {
|
|
|
2946
3007
|
);
|
|
2947
3008
|
}),
|
|
2948
3009
|
w.length > 0 && /* @__PURE__ */ e("td", { className: xe, children: /* @__PURE__ */ e(
|
|
2949
|
-
|
|
3010
|
+
en,
|
|
2950
3011
|
{
|
|
2951
3012
|
className: "rounded-md",
|
|
2952
|
-
trigger: /* @__PURE__ */ e("span", { className: "grid size-7 place-items-center text-text-subtle", children: /* @__PURE__ */ e(Z, { icon:
|
|
3013
|
+
trigger: /* @__PURE__ */ e("span", { className: "grid size-7 place-items-center text-text-subtle", children: /* @__PURE__ */ e(Z, { icon: Pt, size: "md", color: "current" }) }),
|
|
2953
3014
|
options: w.map((V) => ({
|
|
2954
3015
|
value: V.id,
|
|
2955
3016
|
label: V.label,
|
|
@@ -2957,7 +3018,7 @@ const Yr = (t) => {
|
|
|
2957
3018
|
disabled: V.disabled?.(J)
|
|
2958
3019
|
})),
|
|
2959
3020
|
onSelect: (V) => {
|
|
2960
|
-
const ve = w.find((
|
|
3021
|
+
const ve = w.find((Ct) => Ct.id === V);
|
|
2961
3022
|
ve && ve.onClick(J, ne);
|
|
2962
3023
|
},
|
|
2963
3024
|
placement: "bottom-end"
|
|
@@ -2970,9 +3031,9 @@ const Yr = (t) => {
|
|
|
2970
3031
|
})
|
|
2971
3032
|
]) })
|
|
2972
3033
|
] }) }),
|
|
2973
|
-
|
|
3034
|
+
kt && /* @__PURE__ */ c("div", { className: "flex flex-wrap items-center gap-3 px-1 pt-3 text-xs text-text-muted", children: [
|
|
2974
3035
|
/* @__PURE__ */ e("span", { className: "min-w-0 flex-1", children: Y ?? `Showing ${R}–${re} of ${q}` }),
|
|
2975
|
-
|
|
3036
|
+
Ge && /* @__PURE__ */ c("div", { className: "flex items-center gap-0.5", children: [
|
|
2976
3037
|
/* @__PURE__ */ e(
|
|
2977
3038
|
ae,
|
|
2978
3039
|
{
|
|
@@ -2985,7 +3046,7 @@ const Yr = (t) => {
|
|
|
2985
3046
|
children: /* @__PURE__ */ e(Z, { icon: Te, size: "md", color: "current" })
|
|
2986
3047
|
}
|
|
2987
3048
|
),
|
|
2988
|
-
|
|
3049
|
+
sn(L.page, N).map(
|
|
2989
3050
|
(A, J) => A === "gap" ? /* @__PURE__ */ e("span", { className: "px-1 text-text-subtle", children: "…" }, `gap-${J}`) : /* @__PURE__ */ e(
|
|
2990
3051
|
"button",
|
|
2991
3052
|
{
|
|
@@ -3012,13 +3073,13 @@ const Yr = (t) => {
|
|
|
3012
3073
|
"aria-label": "Next page",
|
|
3013
3074
|
onClick: () => S(L.page + 1),
|
|
3014
3075
|
disabled: L.page >= N - 1,
|
|
3015
|
-
children: /* @__PURE__ */ e(Z, { icon:
|
|
3076
|
+
children: /* @__PURE__ */ e(Z, { icon: je, size: "md", color: "current" })
|
|
3016
3077
|
}
|
|
3017
3078
|
)
|
|
3018
3079
|
] })
|
|
3019
3080
|
] })
|
|
3020
3081
|
] });
|
|
3021
|
-
},
|
|
3082
|
+
}, ln = {
|
|
3022
3083
|
default: "bg-surface-hover text-text",
|
|
3023
3084
|
primary: "bg-accent-soft text-accent",
|
|
3024
3085
|
secondary: "bg-surface-hover text-text-muted",
|
|
@@ -3028,11 +3089,11 @@ const Yr = (t) => {
|
|
|
3028
3089
|
info: "bg-info-soft text-info-fg",
|
|
3029
3090
|
// Internal-note amber. Never for customer-visible content.
|
|
3030
3091
|
note: "bg-note-soft text-note"
|
|
3031
|
-
},
|
|
3092
|
+
}, on = {
|
|
3032
3093
|
sm: "px-2 py-0.5 text-xs",
|
|
3033
3094
|
md: "px-2.5 py-1 text-sm",
|
|
3034
3095
|
lg: "px-3 py-1.5 text-base"
|
|
3035
|
-
},
|
|
3096
|
+
}, cn = {
|
|
3036
3097
|
default: "bg-surface-hover",
|
|
3037
3098
|
primary: "bg-accent",
|
|
3038
3099
|
secondary: "bg-surface-hover",
|
|
@@ -3042,7 +3103,7 @@ const Yr = (t) => {
|
|
|
3042
3103
|
info: "bg-info",
|
|
3043
3104
|
note: "bg-note"
|
|
3044
3105
|
};
|
|
3045
|
-
function
|
|
3106
|
+
function dn({
|
|
3046
3107
|
variant: t = "default",
|
|
3047
3108
|
size: r = "md",
|
|
3048
3109
|
dot: n = !1,
|
|
@@ -3058,13 +3119,13 @@ function en({
|
|
|
3058
3119
|
{
|
|
3059
3120
|
className: d(
|
|
3060
3121
|
"inline-flex items-center font-medium rounded-full",
|
|
3061
|
-
|
|
3062
|
-
|
|
3122
|
+
ln[t],
|
|
3123
|
+
on[r],
|
|
3063
3124
|
o
|
|
3064
3125
|
),
|
|
3065
3126
|
...i,
|
|
3066
3127
|
children: [
|
|
3067
|
-
n && /* @__PURE__ */ e("span", { className: d("w-2 h-2 rounded-full mr-1.5",
|
|
3128
|
+
n && /* @__PURE__ */ e("span", { className: d("w-2 h-2 rounded-full mr-1.5", cn[t]) }),
|
|
3068
3129
|
s && /* @__PURE__ */ e("span", { className: d("flex-shrink-0", u && "mr-1"), children: s }),
|
|
3069
3130
|
u,
|
|
3070
3131
|
a && l && /* @__PURE__ */ e(
|
|
@@ -3080,7 +3141,7 @@ function en({
|
|
|
3080
3141
|
}
|
|
3081
3142
|
);
|
|
3082
3143
|
}
|
|
3083
|
-
function
|
|
3144
|
+
function un(t) {
|
|
3084
3145
|
const { id: r, header: n, accessor: s, label: a, tone: l, visible: o, width: u, sortable: i, align: p } = t;
|
|
3085
3146
|
return {
|
|
3086
3147
|
id: r,
|
|
@@ -3088,14 +3149,14 @@ function tn(t) {
|
|
|
3088
3149
|
accessor: (m) => a(s(m), m),
|
|
3089
3150
|
cell: (m, f) => {
|
|
3090
3151
|
const g = s(f);
|
|
3091
|
-
return o && !o(g, f) ? null : /* @__PURE__ */ e(
|
|
3152
|
+
return o && !o(g, f) ? null : /* @__PURE__ */ e(dn, { variant: l ? l(g, f) : "default", size: "sm", children: a(g, f) });
|
|
3092
3153
|
},
|
|
3093
3154
|
width: u,
|
|
3094
3155
|
sortable: i,
|
|
3095
3156
|
align: p
|
|
3096
3157
|
};
|
|
3097
3158
|
}
|
|
3098
|
-
function
|
|
3159
|
+
function ta(t) {
|
|
3099
3160
|
const {
|
|
3100
3161
|
id: r,
|
|
3101
3162
|
header: n,
|
|
@@ -3107,7 +3168,7 @@ function Ks(t) {
|
|
|
3107
3168
|
width: i,
|
|
3108
3169
|
sortable: p
|
|
3109
3170
|
} = t;
|
|
3110
|
-
return
|
|
3171
|
+
return un({
|
|
3111
3172
|
id: r,
|
|
3112
3173
|
header: n,
|
|
3113
3174
|
accessor: (m) => !!s(m),
|
|
@@ -3117,7 +3178,7 @@ function Ks(t) {
|
|
|
3117
3178
|
sortable: p
|
|
3118
3179
|
});
|
|
3119
3180
|
}
|
|
3120
|
-
function
|
|
3181
|
+
function ra(t) {
|
|
3121
3182
|
const {
|
|
3122
3183
|
id: r,
|
|
3123
3184
|
header: n,
|
|
@@ -3141,19 +3202,19 @@ function Ws(t) {
|
|
|
3141
3202
|
sortable: p
|
|
3142
3203
|
};
|
|
3143
3204
|
}
|
|
3144
|
-
const
|
|
3205
|
+
const mn = {
|
|
3145
3206
|
xs: "text-xs",
|
|
3146
3207
|
sm: "text-sm",
|
|
3147
3208
|
md: "text-base",
|
|
3148
3209
|
lg: "text-md",
|
|
3149
3210
|
xl: "text-lg"
|
|
3150
|
-
},
|
|
3211
|
+
}, fn = {
|
|
3151
3212
|
light: "font-normal",
|
|
3152
3213
|
normal: "font-normal",
|
|
3153
3214
|
medium: "font-medium",
|
|
3154
3215
|
semibold: "font-semibold",
|
|
3155
3216
|
bold: "font-bold"
|
|
3156
|
-
},
|
|
3217
|
+
}, hn = {
|
|
3157
3218
|
primary: "text-text",
|
|
3158
3219
|
secondary: "text-text-muted",
|
|
3159
3220
|
accent: "text-accent",
|
|
@@ -3164,12 +3225,12 @@ const rn = {
|
|
|
3164
3225
|
neutral: "text-text",
|
|
3165
3226
|
current: "text-current",
|
|
3166
3227
|
muted: "text-text-subtle"
|
|
3167
|
-
},
|
|
3228
|
+
}, xn = {
|
|
3168
3229
|
left: "text-left",
|
|
3169
3230
|
center: "text-center",
|
|
3170
3231
|
right: "text-right",
|
|
3171
3232
|
justify: "text-justify"
|
|
3172
|
-
},
|
|
3233
|
+
}, gn = {
|
|
3173
3234
|
tight: "leading-tight",
|
|
3174
3235
|
normal: "leading-normal",
|
|
3175
3236
|
relaxed: "leading-relaxed"
|
|
@@ -3188,20 +3249,20 @@ const rn = {
|
|
|
3188
3249
|
children: f,
|
|
3189
3250
|
...g
|
|
3190
3251
|
}) => {
|
|
3191
|
-
const b = p ||
|
|
3252
|
+
const b = p || bn(t), w = t === "caption", v = t === "label", h = t === "code", C = d(
|
|
3192
3253
|
"font-sans",
|
|
3193
3254
|
// Variant — caption and label pin their own size/weight
|
|
3194
3255
|
w && "text-xs text-text-subtle",
|
|
3195
3256
|
v && "text-xs font-semibold uppercase tracking-label text-text-subtle",
|
|
3196
3257
|
h && "font-mono text-sm rounded-sm bg-surface-hover px-1 py-0.5",
|
|
3197
3258
|
// Size — only where the variant does not pin it
|
|
3198
|
-
!w && !v && !h &&
|
|
3259
|
+
!w && !v && !h && mn[r],
|
|
3199
3260
|
// Weight — label owns its weight
|
|
3200
|
-
!v &&
|
|
3201
|
-
|
|
3202
|
-
|
|
3261
|
+
!v && fn[n],
|
|
3262
|
+
hn[s],
|
|
3263
|
+
xn[a],
|
|
3203
3264
|
// Line height only overrides the body variant
|
|
3204
|
-
t === "body" &&
|
|
3265
|
+
t === "body" && gn[i],
|
|
3205
3266
|
o && "italic",
|
|
3206
3267
|
u && "underline",
|
|
3207
3268
|
l && "truncate",
|
|
@@ -3209,7 +3270,7 @@ const rn = {
|
|
|
3209
3270
|
);
|
|
3210
3271
|
return /* @__PURE__ */ e(b, { className: C, ...g, children: f });
|
|
3211
3272
|
};
|
|
3212
|
-
function
|
|
3273
|
+
function bn(t) {
|
|
3213
3274
|
return {
|
|
3214
3275
|
body: "p",
|
|
3215
3276
|
caption: "span",
|
|
@@ -3217,13 +3278,13 @@ function on(t) {
|
|
|
3217
3278
|
code: "code"
|
|
3218
3279
|
}[t] || "p";
|
|
3219
3280
|
}
|
|
3220
|
-
function
|
|
3281
|
+
function pn(t, r) {
|
|
3221
3282
|
return r.split(".").reduce(
|
|
3222
3283
|
(n, s) => n && typeof n == "object" && s in n ? n[s] : void 0,
|
|
3223
3284
|
t
|
|
3224
3285
|
);
|
|
3225
3286
|
}
|
|
3226
|
-
const
|
|
3287
|
+
const na = ({
|
|
3227
3288
|
groups: t,
|
|
3228
3289
|
data: r,
|
|
3229
3290
|
size: n = "md",
|
|
@@ -3246,7 +3307,7 @@ const Gs = ({
|
|
|
3246
3307
|
return g ? g.label : String(m || "-");
|
|
3247
3308
|
}, u = de(
|
|
3248
3309
|
(m) => {
|
|
3249
|
-
const f =
|
|
3310
|
+
const f = pn(r, m.name);
|
|
3250
3311
|
if (m.type === "array") {
|
|
3251
3312
|
const b = f;
|
|
3252
3313
|
return !b || b.length === 0 ? /* @__PURE__ */ e(me, { variant: "body", size: "sm", className: "text-text-muted", children: "Geen items" }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: b.map((w, v) => /* @__PURE__ */ c("div", { className: "p-4 border border-border rounded-xl space-y-3", children: [
|
|
@@ -3389,7 +3450,7 @@ const Gs = ({
|
|
|
3389
3450
|
);
|
|
3390
3451
|
return /* @__PURE__ */ e("div", { className: p, children: /* @__PURE__ */ e("div", { className: "space-y-8", children: t.map(i) }) });
|
|
3391
3452
|
};
|
|
3392
|
-
class
|
|
3453
|
+
class sa extends Mt {
|
|
3393
3454
|
constructor() {
|
|
3394
3455
|
super(...arguments), this.state = {
|
|
3395
3456
|
hasError: !1,
|
|
@@ -3417,8 +3478,8 @@ class Js extends Et {
|
|
|
3417
3478
|
] }) : this.props.children;
|
|
3418
3479
|
}
|
|
3419
3480
|
}
|
|
3420
|
-
const
|
|
3421
|
-
function
|
|
3481
|
+
const Be = /* @__PURE__ */ new Map();
|
|
3482
|
+
function aa({
|
|
3422
3483
|
identifier: t,
|
|
3423
3484
|
resourceLoader: r,
|
|
3424
3485
|
framework: n = "react",
|
|
@@ -3429,13 +3490,13 @@ function Ys({
|
|
|
3429
3490
|
}) {
|
|
3430
3491
|
const u = se(null), [i, p] = B(null), [, m] = B(0), f = se(null), g = se(r);
|
|
3431
3492
|
g.current = r, Q(() => {
|
|
3432
|
-
if (
|
|
3493
|
+
if (Be.has(t)) return;
|
|
3433
3494
|
let C = !0;
|
|
3434
3495
|
return (async () => {
|
|
3435
3496
|
try {
|
|
3436
3497
|
const P = await g.current();
|
|
3437
3498
|
if (!C) return;
|
|
3438
|
-
|
|
3499
|
+
Be.set(t, P), m((D) => D + 1);
|
|
3439
3500
|
} catch (P) {
|
|
3440
3501
|
console.error(`[FederatedResource] Load failed: ${t}`, P), C && p(t);
|
|
3441
3502
|
}
|
|
@@ -3443,7 +3504,7 @@ function Ys({
|
|
|
3443
3504
|
C = !1;
|
|
3444
3505
|
};
|
|
3445
3506
|
}, [t]);
|
|
3446
|
-
const b =
|
|
3507
|
+
const b = Be.get(t) ?? null, w = !b && i === t, v = !b && !w, h = b ? n === "react" && (b.component || b.default) || b : null;
|
|
3447
3508
|
return Q(() => {
|
|
3448
3509
|
if (!h || n === "react") return;
|
|
3449
3510
|
const C = u.current;
|
|
@@ -3467,11 +3528,11 @@ function Ys({
|
|
|
3467
3528
|
n === "react" && h && /* @__PURE__ */ e(h, { ...l })
|
|
3468
3529
|
] });
|
|
3469
3530
|
}
|
|
3470
|
-
const
|
|
3531
|
+
const vn = {
|
|
3471
3532
|
neutral: "bg-surface-hover text-text-muted",
|
|
3472
3533
|
success: "bg-success-soft text-success-fg"
|
|
3473
3534
|
};
|
|
3474
|
-
function
|
|
3535
|
+
function la({
|
|
3475
3536
|
icon: t,
|
|
3476
3537
|
tone: r = "neutral",
|
|
3477
3538
|
title: n,
|
|
@@ -3496,7 +3557,7 @@ function Xs({
|
|
|
3496
3557
|
{
|
|
3497
3558
|
className: d(
|
|
3498
3559
|
"flex size-disc items-center justify-center rounded-full text-2xl",
|
|
3499
|
-
|
|
3560
|
+
vn[r]
|
|
3500
3561
|
),
|
|
3501
3562
|
children: t
|
|
3502
3563
|
}
|
|
@@ -3508,7 +3569,7 @@ function Xs({
|
|
|
3508
3569
|
}
|
|
3509
3570
|
);
|
|
3510
3571
|
}
|
|
3511
|
-
function
|
|
3572
|
+
function oa({ children: t, className: r, ...n }) {
|
|
3512
3573
|
return /* @__PURE__ */ e(
|
|
3513
3574
|
"kbd",
|
|
3514
3575
|
{
|
|
@@ -3521,14 +3582,14 @@ function Zs({ children: t, className: r, ...n }) {
|
|
|
3521
3582
|
}
|
|
3522
3583
|
);
|
|
3523
3584
|
}
|
|
3524
|
-
const
|
|
3585
|
+
const yn = {
|
|
3525
3586
|
sm: "h-1",
|
|
3526
3587
|
md: "h-1.5"
|
|
3527
|
-
},
|
|
3588
|
+
}, Nn = {
|
|
3528
3589
|
accent: "bg-accent",
|
|
3529
3590
|
success: "bg-success"
|
|
3530
3591
|
};
|
|
3531
|
-
function
|
|
3592
|
+
function ca({
|
|
3532
3593
|
value: t,
|
|
3533
3594
|
variant: r = "accent",
|
|
3534
3595
|
size: n = "md",
|
|
@@ -3545,7 +3606,7 @@ function Qs({
|
|
|
3545
3606
|
"aria-valuemax": 100,
|
|
3546
3607
|
className: d(
|
|
3547
3608
|
"w-full overflow-hidden rounded-full bg-surface-hover",
|
|
3548
|
-
|
|
3609
|
+
yn[n],
|
|
3549
3610
|
s
|
|
3550
3611
|
),
|
|
3551
3612
|
...a,
|
|
@@ -3554,7 +3615,7 @@ function Qs({
|
|
|
3554
3615
|
{
|
|
3555
3616
|
className: d(
|
|
3556
3617
|
"h-full rounded-full transition-[width] duration-300 ease-out",
|
|
3557
|
-
|
|
3618
|
+
Nn[r]
|
|
3558
3619
|
),
|
|
3559
3620
|
style: { width: `${l}%` }
|
|
3560
3621
|
}
|
|
@@ -3562,25 +3623,25 @@ function Qs({
|
|
|
3562
3623
|
}
|
|
3563
3624
|
);
|
|
3564
3625
|
}
|
|
3565
|
-
const
|
|
3626
|
+
const wn = {
|
|
3566
3627
|
xs: "h-3 w-3",
|
|
3567
3628
|
sm: "h-4 w-4",
|
|
3568
3629
|
md: "h-6 w-6",
|
|
3569
3630
|
lg: "h-8 w-8",
|
|
3570
3631
|
xl: "h-12 w-12"
|
|
3571
|
-
},
|
|
3632
|
+
}, kn = {
|
|
3572
3633
|
primary: "text-accent",
|
|
3573
3634
|
secondary: "text-text-muted",
|
|
3574
3635
|
white: "text-white",
|
|
3575
3636
|
current: "text-current"
|
|
3576
|
-
},
|
|
3637
|
+
}, Cn = {
|
|
3577
3638
|
xs: "text-xs",
|
|
3578
3639
|
sm: "text-sm",
|
|
3579
3640
|
md: "text-sm",
|
|
3580
3641
|
lg: "text-base",
|
|
3581
3642
|
xl: "text-lg"
|
|
3582
3643
|
};
|
|
3583
|
-
function
|
|
3644
|
+
function ia({
|
|
3584
3645
|
size: t = "md",
|
|
3585
3646
|
variant: r = "primary",
|
|
3586
3647
|
label: n = "Loading...",
|
|
@@ -3597,7 +3658,7 @@ function ea({
|
|
|
3597
3658
|
/* @__PURE__ */ c(
|
|
3598
3659
|
"svg",
|
|
3599
3660
|
{
|
|
3600
|
-
className: d("animate-spin",
|
|
3661
|
+
className: d("animate-spin", wn[t], kn[r]),
|
|
3601
3662
|
fill: "none",
|
|
3602
3663
|
viewBox: "0 0 24 24",
|
|
3603
3664
|
"aria-hidden": !s,
|
|
@@ -3625,13 +3686,13 @@ function ea({
|
|
|
3625
3686
|
]
|
|
3626
3687
|
}
|
|
3627
3688
|
),
|
|
3628
|
-
s && /* @__PURE__ */ e("span", { className: d("text-text-muted",
|
|
3689
|
+
s && /* @__PURE__ */ e("span", { className: d("text-text-muted", Cn[t]), children: n }),
|
|
3629
3690
|
!s && /* @__PURE__ */ e("span", { className: "sr-only", children: n })
|
|
3630
3691
|
]
|
|
3631
3692
|
}
|
|
3632
3693
|
);
|
|
3633
3694
|
}
|
|
3634
|
-
const
|
|
3695
|
+
const Sn = {
|
|
3635
3696
|
neutral: "bg-text-disabled",
|
|
3636
3697
|
accent: "bg-accent",
|
|
3637
3698
|
success: "bg-success",
|
|
@@ -3645,7 +3706,7 @@ const gn = {
|
|
|
3645
3706
|
"cat-4": "bg-cat-4",
|
|
3646
3707
|
"cat-5": "bg-cat-5"
|
|
3647
3708
|
};
|
|
3648
|
-
function
|
|
3709
|
+
function da({
|
|
3649
3710
|
tone: t = "neutral",
|
|
3650
3711
|
shape: r = "round",
|
|
3651
3712
|
pulse: n = !1,
|
|
@@ -3661,14 +3722,14 @@ function ta({
|
|
|
3661
3722
|
className: d(
|
|
3662
3723
|
"inline-block size-dot shrink-0",
|
|
3663
3724
|
r === "round" ? "rounded-full" : "rounded-sm",
|
|
3664
|
-
|
|
3725
|
+
Sn[t],
|
|
3665
3726
|
n && "animate-pulse",
|
|
3666
3727
|
a
|
|
3667
3728
|
)
|
|
3668
3729
|
}
|
|
3669
3730
|
);
|
|
3670
3731
|
}
|
|
3671
|
-
function
|
|
3732
|
+
function ua({
|
|
3672
3733
|
steps: t,
|
|
3673
3734
|
current: r,
|
|
3674
3735
|
variant: n = "numbered",
|
|
@@ -3708,7 +3769,7 @@ function ra({
|
|
|
3708
3769
|
i < t.length - 1 && /* @__PURE__ */ e("span", { className: "h-px w-8 bg-border-strong" })
|
|
3709
3770
|
] }, u)) });
|
|
3710
3771
|
}
|
|
3711
|
-
const
|
|
3772
|
+
const En = /* @__PURE__ */ new Set([
|
|
3712
3773
|
"name",
|
|
3713
3774
|
"given-name",
|
|
3714
3775
|
"family-name",
|
|
@@ -3742,8 +3803,8 @@ const bn = /* @__PURE__ */ new Set([
|
|
|
3742
3803
|
"new-password",
|
|
3743
3804
|
"one-time-code"
|
|
3744
3805
|
]);
|
|
3745
|
-
function
|
|
3746
|
-
return t &&
|
|
3806
|
+
function tt(t) {
|
|
3807
|
+
return t && En.has(t) ? { autoComplete: t } : {
|
|
3747
3808
|
autoComplete: "off",
|
|
3748
3809
|
// 1Password
|
|
3749
3810
|
"data-1p-ignore": "true",
|
|
@@ -3755,12 +3816,12 @@ function Qe(t) {
|
|
|
3755
3816
|
"data-form-type": "other"
|
|
3756
3817
|
};
|
|
3757
3818
|
}
|
|
3758
|
-
const _e = (t) => t == null ? "" : String(t),
|
|
3819
|
+
const _e = (t) => t == null ? "" : String(t), Tn = (t) => _e(t).trim().toLowerCase(), Mn = {
|
|
3759
3820
|
sm: "h-control-sm px-3 text-sm",
|
|
3760
3821
|
md: "h-control-md px-3 text-sm",
|
|
3761
3822
|
lg: "h-control-lg px-3 text-base",
|
|
3762
3823
|
full: "h-control-md w-full px-3 text-sm"
|
|
3763
|
-
}, De =
|
|
3824
|
+
}, De = Tn, Ie = be(
|
|
3764
3825
|
({
|
|
3765
3826
|
label: t,
|
|
3766
3827
|
helperText: r,
|
|
@@ -3782,7 +3843,7 @@ const _e = (t) => t == null ? "" : String(t), pn = (t) => _e(t).trim().toLowerCa
|
|
|
3782
3843
|
onCreateOption: C,
|
|
3783
3844
|
...k
|
|
3784
3845
|
}, P) => {
|
|
3785
|
-
const D = f || `select-${Math.random().toString(36).substr(2, 9)}`, Y = !!n, [F, _] = le.useState(!1), [I, O] = le.useState(""), H = le.useRef(null), U = le.useRef(null), te = Me(F, U, { matchWidth: !0 }), [
|
|
3846
|
+
const D = f || `select-${Math.random().toString(36).substr(2, 9)}`, Y = !!n, [F, _] = le.useState(!1), [I, O] = le.useState(""), H = le.useRef(null), U = le.useRef(null), te = Me(F, U, { matchWidth: !0 }), [K, y] = le.useState(o);
|
|
3786
3847
|
le.useImperativeHandle(P, () => H.current), le.useEffect(() => {
|
|
3787
3848
|
const j = (S) => {
|
|
3788
3849
|
H.current && !H.current.contains(S.target) && _(!1);
|
|
@@ -3819,21 +3880,21 @@ const _e = (t) => t == null ? "" : String(t), pn = (t) => _e(t).trim().toLowerCa
|
|
|
3819
3880
|
v?.(M);
|
|
3820
3881
|
} else
|
|
3821
3882
|
v?.(j), _(!1), O("");
|
|
3822
|
-
}, L = b ? null :
|
|
3883
|
+
}, L = b ? null : K.find((j) => j.value === $), z = b ? K.filter((j) => Array.isArray($) && $.includes(j.value)) : [], ce = g && I ? K.filter(
|
|
3823
3884
|
(j) => j.label.toLowerCase().includes(I.toLowerCase())
|
|
3824
|
-
) :
|
|
3885
|
+
) : K, ie = !!h && !!g && !!I.trim() && !x(K, I), G = (j) => {
|
|
3825
3886
|
const S = j.trim();
|
|
3826
3887
|
if (!S) return;
|
|
3827
3888
|
const M = C?.(S) ?? {
|
|
3828
3889
|
value: S,
|
|
3829
3890
|
label: S
|
|
3830
3891
|
};
|
|
3831
|
-
if (x(
|
|
3892
|
+
if (x(K, M.value) || x(K, M.label)) {
|
|
3832
3893
|
T(M.value), O(""), b || _(!1);
|
|
3833
3894
|
return;
|
|
3834
3895
|
}
|
|
3835
3896
|
y((X) => [...X, M]), T(M.value), O(""), b || _(!1);
|
|
3836
|
-
},
|
|
3897
|
+
}, W = () => b ? z.length > 0 ? z.map((j) => j.label).join(", ") : u || "Select options" : L?.label || u || "Select an option";
|
|
3837
3898
|
return /* @__PURE__ */ c(
|
|
3838
3899
|
"div",
|
|
3839
3900
|
{
|
|
@@ -3868,14 +3929,14 @@ const _e = (t) => t == null ? "" : String(t), pn = (t) => _e(t).trim().toLowerCa
|
|
|
3868
3929
|
"focus-visible:outline-none focus-visible:focus-ring",
|
|
3869
3930
|
"disabled:cursor-not-allowed disabled:bg-surface-hover disabled:text-text-disabled",
|
|
3870
3931
|
"bg-surface",
|
|
3871
|
-
|
|
3932
|
+
Mn[s],
|
|
3872
3933
|
Y ? "border-danger-border text-danger-fg focus-visible:focus-ring" : "border-border-strong text-text",
|
|
3873
3934
|
m
|
|
3874
3935
|
),
|
|
3875
3936
|
children: [
|
|
3876
|
-
/* @__PURE__ */ e("span", { className: "truncate flex-1 min-w-0", children:
|
|
3937
|
+
/* @__PURE__ */ e("span", { className: "truncate flex-1 min-w-0", children: W() }),
|
|
3877
3938
|
/* @__PURE__ */ e(
|
|
3878
|
-
|
|
3939
|
+
jt,
|
|
3879
3940
|
{
|
|
3880
3941
|
size: 16,
|
|
3881
3942
|
className: d(
|
|
@@ -3974,13 +4035,13 @@ const _e = (t) => t == null ? "" : String(t), pn = (t) => _e(t).trim().toLowerCa
|
|
|
3974
4035
|
);
|
|
3975
4036
|
}
|
|
3976
4037
|
);
|
|
3977
|
-
|
|
3978
|
-
const
|
|
4038
|
+
Ie.displayName = "Select";
|
|
4039
|
+
const zn = {
|
|
3979
4040
|
sm: "h-control-sm px-3 text-sm",
|
|
3980
4041
|
md: "h-control-md px-3 text-base",
|
|
3981
4042
|
lg: "h-control-lg px-3 text-base",
|
|
3982
4043
|
full: "h-control-md px-3 text-base"
|
|
3983
|
-
},
|
|
4044
|
+
}, ht = "mb-1.5 block text-sm font-medium", xt = "block w-full rounded-tile border bg-surface-input text-text transition-colors duration-fast ease-out placeholder:text-text-subtle focus-visible:outline-none focus-visible:focus-ring disabled:cursor-not-allowed disabled:bg-surface-hover disabled:text-text-disabled", gt = (t) => t ? "border-danger-border bg-danger-soft" : "border-border-strong", Ce = be(
|
|
3984
4045
|
({
|
|
3985
4046
|
label: t,
|
|
3986
4047
|
helperText: r,
|
|
@@ -4003,7 +4064,7 @@ const yn = {
|
|
|
4003
4064
|
{
|
|
4004
4065
|
htmlFor: v,
|
|
4005
4066
|
className: d(
|
|
4006
|
-
|
|
4067
|
+
ht,
|
|
4007
4068
|
h ? "text-danger-fg" : "text-text-muted",
|
|
4008
4069
|
p
|
|
4009
4070
|
),
|
|
@@ -4020,11 +4081,11 @@ const yn = {
|
|
|
4020
4081
|
"aria-invalid": h || void 0,
|
|
4021
4082
|
"aria-describedby": C,
|
|
4022
4083
|
className: d(
|
|
4023
|
-
|
|
4024
|
-
|
|
4084
|
+
xt,
|
|
4085
|
+
zn[s],
|
|
4025
4086
|
l && "pl-9",
|
|
4026
4087
|
(o || u) && "pr-9",
|
|
4027
|
-
|
|
4088
|
+
gt(h),
|
|
4028
4089
|
m
|
|
4029
4090
|
),
|
|
4030
4091
|
...g
|
|
@@ -4050,7 +4111,7 @@ const yn = {
|
|
|
4050
4111
|
}
|
|
4051
4112
|
);
|
|
4052
4113
|
Ce.displayName = "TextField";
|
|
4053
|
-
function
|
|
4114
|
+
function An({
|
|
4054
4115
|
value: t,
|
|
4055
4116
|
onChange: r,
|
|
4056
4117
|
onListFolders: n,
|
|
@@ -4073,7 +4134,7 @@ function Nn({
|
|
|
4073
4134
|
const m = t ?? {};
|
|
4074
4135
|
return /* @__PURE__ */ c("div", { className: "flex flex-col gap-2", children: [
|
|
4075
4136
|
/* @__PURE__ */ e(
|
|
4076
|
-
|
|
4137
|
+
Ie,
|
|
4077
4138
|
{
|
|
4078
4139
|
size: a,
|
|
4079
4140
|
fullWidth: !0,
|
|
@@ -4095,7 +4156,7 @@ function Nn({
|
|
|
4095
4156
|
)
|
|
4096
4157
|
] });
|
|
4097
4158
|
}
|
|
4098
|
-
const
|
|
4159
|
+
const Dn = st(null), ma = ({ items: t, activeTab: r, onTabChange: n, className: s }) => {
|
|
4099
4160
|
const [a, l] = B(t[0]?.id || ""), o = r || a, u = (i) => {
|
|
4100
4161
|
n ? n(i) : l(i);
|
|
4101
4162
|
};
|
|
@@ -4128,7 +4189,7 @@ const wn = rt(null), na = ({ items: t, activeTab: r, onTabChange: n, className:
|
|
|
4128
4189
|
},
|
|
4129
4190
|
i.id
|
|
4130
4191
|
)) }) });
|
|
4131
|
-
},
|
|
4192
|
+
}, _n = ({
|
|
4132
4193
|
items: t,
|
|
4133
4194
|
defaultTab: r,
|
|
4134
4195
|
activeTab: n,
|
|
@@ -4185,7 +4246,7 @@ const wn = rt(null), na = ({ items: t, activeTab: r, onTabChange: n, className:
|
|
|
4185
4246
|
F
|
|
4186
4247
|
);
|
|
4187
4248
|
};
|
|
4188
|
-
return /* @__PURE__ */ e(
|
|
4249
|
+
return /* @__PURE__ */ e(Dn.Provider, { value: f, children: /* @__PURE__ */ c("div", { children: [
|
|
4189
4250
|
/* @__PURE__ */ e("div", { className: b, role: "tablist", children: t.map((v) => /* @__PURE__ */ e(
|
|
4190
4251
|
"button",
|
|
4191
4252
|
{
|
|
@@ -4214,14 +4275,14 @@ const wn = rt(null), na = ({ items: t, activeTab: r, onTabChange: n, className:
|
|
|
4214
4275
|
}
|
|
4215
4276
|
)
|
|
4216
4277
|
] }) });
|
|
4217
|
-
},
|
|
4278
|
+
}, $n = {
|
|
4218
4279
|
sm: "max-w-md",
|
|
4219
4280
|
md: "max-w-lg",
|
|
4220
4281
|
lg: "max-w-2xl",
|
|
4221
4282
|
xl: "max-w-4xl",
|
|
4222
4283
|
full: "max-w-full mx-4"
|
|
4223
4284
|
};
|
|
4224
|
-
function
|
|
4285
|
+
function bt({
|
|
4225
4286
|
open: t,
|
|
4226
4287
|
onClose: r,
|
|
4227
4288
|
title: n,
|
|
@@ -4263,7 +4324,7 @@ function xt({
|
|
|
4263
4324
|
className: d(
|
|
4264
4325
|
"relative w-full bg-surface rounded-lg shadow-modal",
|
|
4265
4326
|
"focus:outline-none",
|
|
4266
|
-
|
|
4327
|
+
$n[s],
|
|
4267
4328
|
o
|
|
4268
4329
|
),
|
|
4269
4330
|
role: "dialog",
|
|
@@ -4291,7 +4352,7 @@ function xt({
|
|
|
4291
4352
|
}
|
|
4292
4353
|
) : null;
|
|
4293
4354
|
}
|
|
4294
|
-
const
|
|
4355
|
+
const Ln = ({
|
|
4295
4356
|
value: t,
|
|
4296
4357
|
onChange: r,
|
|
4297
4358
|
label: n,
|
|
@@ -4307,7 +4368,7 @@ const Sn = ({
|
|
|
4307
4368
|
}) => {
|
|
4308
4369
|
const [g, b] = B(!1), [w, v] = B([]), [h, C] = B(null), [k, P] = B("/"), [D, Y] = B([]), [F, _] = B(!1), [I, O] = B(""), [H, U] = B(
|
|
4309
4370
|
typeof t == "object" ? t : null
|
|
4310
|
-
), [te,
|
|
4371
|
+
), [te, K] = B(!1), [y, x] = B(""), E = se(null), $ = de(async () => {
|
|
4311
4372
|
_(!0);
|
|
4312
4373
|
try {
|
|
4313
4374
|
const N = await i?.();
|
|
@@ -4398,7 +4459,7 @@ const Sn = ({
|
|
|
4398
4459
|
mountId: h.id,
|
|
4399
4460
|
providerKey: N,
|
|
4400
4461
|
ownerId: "me"
|
|
4401
|
-
}), await T()),
|
|
4462
|
+
}), await T()), K(!1), x("");
|
|
4402
4463
|
} catch (N) {
|
|
4403
4464
|
console.error("Failed to create folder", N);
|
|
4404
4465
|
} finally {
|
|
@@ -4417,7 +4478,7 @@ const Sn = ({
|
|
|
4417
4478
|
}
|
|
4418
4479
|
}, G = (N) => {
|
|
4419
4480
|
N.stopPropagation(), U(null), r(null);
|
|
4420
|
-
},
|
|
4481
|
+
}, W = ge(() => {
|
|
4421
4482
|
const N = /* @__PURE__ */ new Set(), R = [];
|
|
4422
4483
|
return D.forEach((re) => {
|
|
4423
4484
|
if (re.type === "folder") {
|
|
@@ -4436,18 +4497,18 @@ const Sn = ({
|
|
|
4436
4497
|
const N = k.split("/").filter((R) => R !== "");
|
|
4437
4498
|
N.pop(), N.length === 0 ? P("/") : P(`${N.join("/")}/`);
|
|
4438
4499
|
}, M = ge(() => {
|
|
4439
|
-
const N =
|
|
4500
|
+
const N = W.folders.map((R) => ({
|
|
4440
4501
|
id: `folder-${R}`,
|
|
4441
4502
|
name: R,
|
|
4442
4503
|
type: "folder"
|
|
4443
4504
|
}));
|
|
4444
|
-
return
|
|
4505
|
+
return W.files.forEach((R) => {
|
|
4445
4506
|
N.push({
|
|
4446
4507
|
...R,
|
|
4447
4508
|
type: "file"
|
|
4448
4509
|
});
|
|
4449
4510
|
}), N;
|
|
4450
|
-
}, [
|
|
4511
|
+
}, [W]), X = [
|
|
4451
4512
|
{
|
|
4452
4513
|
id: "name",
|
|
4453
4514
|
header: "Name",
|
|
@@ -4456,7 +4517,7 @@ const Sn = ({
|
|
|
4456
4517
|
/* @__PURE__ */ e(
|
|
4457
4518
|
Z,
|
|
4458
4519
|
{
|
|
4459
|
-
icon: R.type === "folder" ?
|
|
4520
|
+
icon: R.type === "folder" ? Xe : Fe,
|
|
4460
4521
|
size: "sm",
|
|
4461
4522
|
color: R.type === "folder" ? "warning" : "secondary"
|
|
4462
4523
|
}
|
|
@@ -4497,7 +4558,7 @@ const Sn = ({
|
|
|
4497
4558
|
header: "Mount Name",
|
|
4498
4559
|
accessor: "name",
|
|
4499
4560
|
cell: (N) => /* @__PURE__ */ c("div", { className: "flex items-center gap-2 font-medium", children: [
|
|
4500
|
-
/* @__PURE__ */ e(Z, { icon:
|
|
4561
|
+
/* @__PURE__ */ e(Z, { icon: Ye, size: "sm", color: "primary" }),
|
|
4501
4562
|
/* @__PURE__ */ e("span", { children: N })
|
|
4502
4563
|
] })
|
|
4503
4564
|
},
|
|
@@ -4525,7 +4586,7 @@ const Sn = ({
|
|
|
4525
4586
|
/* @__PURE__ */ e("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e(
|
|
4526
4587
|
Z,
|
|
4527
4588
|
{
|
|
4528
|
-
icon: H ?
|
|
4589
|
+
icon: H ? Fe : Ye,
|
|
4529
4590
|
color: H ? "primary" : "secondary"
|
|
4530
4591
|
}
|
|
4531
4592
|
) }),
|
|
@@ -4536,16 +4597,16 @@ const Sn = ({
|
|
|
4536
4597
|
),
|
|
4537
4598
|
a && /* @__PURE__ */ e(me, { variant: "body", size: "xs", className: "text-danger-fg", children: a }),
|
|
4538
4599
|
/* @__PURE__ */ e(
|
|
4539
|
-
|
|
4600
|
+
bt,
|
|
4540
4601
|
{
|
|
4541
4602
|
open: g,
|
|
4542
4603
|
onClose: () => {
|
|
4543
|
-
b(!1), C(null), P("/"),
|
|
4604
|
+
b(!1), C(null), P("/"), K(!1);
|
|
4544
4605
|
},
|
|
4545
4606
|
title: h ? `Explorer: ${h.name}` : "Select Storage Mount",
|
|
4546
4607
|
size: "lg",
|
|
4547
4608
|
children: /* @__PURE__ */ e(
|
|
4548
|
-
|
|
4609
|
+
_n,
|
|
4549
4610
|
{
|
|
4550
4611
|
variant: "pills",
|
|
4551
4612
|
items: [
|
|
@@ -4561,7 +4622,7 @@ const Sn = ({
|
|
|
4561
4622
|
onClick: () => {
|
|
4562
4623
|
k && k !== "/" ? S() : C(null);
|
|
4563
4624
|
},
|
|
4564
|
-
leftIcon: /* @__PURE__ */ e(Z, { icon:
|
|
4625
|
+
leftIcon: /* @__PURE__ */ e(Z, { icon: Rt, size: "xs" }),
|
|
4565
4626
|
children: k ? "Back" : "Back to Mounts"
|
|
4566
4627
|
}
|
|
4567
4628
|
),
|
|
@@ -4572,7 +4633,7 @@ const Sn = ({
|
|
|
4572
4633
|
placeholder: "Search...",
|
|
4573
4634
|
value: I,
|
|
4574
4635
|
onChange: (N) => O(N.target.value),
|
|
4575
|
-
startIcon: /* @__PURE__ */ e(
|
|
4636
|
+
startIcon: /* @__PURE__ */ e(Pe, { size: 14 }),
|
|
4576
4637
|
fullWidth: !0
|
|
4577
4638
|
}
|
|
4578
4639
|
) }),
|
|
@@ -4581,8 +4642,8 @@ const Sn = ({
|
|
|
4581
4642
|
ae,
|
|
4582
4643
|
{
|
|
4583
4644
|
variant: "outline",
|
|
4584
|
-
onClick: () =>
|
|
4585
|
-
leftIcon: /* @__PURE__ */ e(Z, { icon:
|
|
4645
|
+
onClick: () => K(!0),
|
|
4646
|
+
leftIcon: /* @__PURE__ */ e(Z, { icon: Ft, size: "xs" }),
|
|
4586
4647
|
children: "New Folder"
|
|
4587
4648
|
}
|
|
4588
4649
|
),
|
|
@@ -4591,7 +4652,7 @@ const Sn = ({
|
|
|
4591
4652
|
{
|
|
4592
4653
|
variant: "primary",
|
|
4593
4654
|
onClick: () => E.current?.click(),
|
|
4594
|
-
leftIcon: /* @__PURE__ */ e(Z, { icon:
|
|
4655
|
+
leftIcon: /* @__PURE__ */ e(Z, { icon: Bt, size: "xs" }),
|
|
4595
4656
|
loading: F,
|
|
4596
4657
|
children: "Upload"
|
|
4597
4658
|
}
|
|
@@ -4609,7 +4670,7 @@ const Sn = ({
|
|
|
4609
4670
|
] })
|
|
4610
4671
|
] }),
|
|
4611
4672
|
te && /* @__PURE__ */ c("div", { className: "flex items-center gap-2 p-3 bg-surface-sunk rounded-lg border border-border", children: [
|
|
4612
|
-
/* @__PURE__ */ e(Z, { icon:
|
|
4673
|
+
/* @__PURE__ */ e(Z, { icon: Xe, size: "sm", color: "warning" }),
|
|
4613
4674
|
/* @__PURE__ */ e(
|
|
4614
4675
|
Ce,
|
|
4615
4676
|
{
|
|
@@ -4620,10 +4681,10 @@ const Sn = ({
|
|
|
4620
4681
|
}
|
|
4621
4682
|
),
|
|
4622
4683
|
/* @__PURE__ */ e(ae, { onClick: ce, loading: F, children: "Create" }),
|
|
4623
|
-
/* @__PURE__ */ e(ae, { variant: "ghost", onClick: () =>
|
|
4684
|
+
/* @__PURE__ */ e(ae, { variant: "ghost", onClick: () => K(!1), children: "Cancel" })
|
|
4624
4685
|
] }),
|
|
4625
4686
|
/* @__PURE__ */ e("div", { className: "max-h-100 overflow-auto rounded-lg border border-border", children: /* @__PURE__ */ e(
|
|
4626
|
-
|
|
4687
|
+
et,
|
|
4627
4688
|
{
|
|
4628
4689
|
data: M,
|
|
4629
4690
|
columns: X,
|
|
@@ -4633,7 +4694,7 @@ const Sn = ({
|
|
|
4633
4694
|
}
|
|
4634
4695
|
) })
|
|
4635
4696
|
] }) : /* @__PURE__ */ e("div", { className: "max-h-100 overflow-auto rounded-lg border border-border", children: /* @__PURE__ */ e(
|
|
4636
|
-
|
|
4697
|
+
et,
|
|
4637
4698
|
{
|
|
4638
4699
|
data: w,
|
|
4639
4700
|
columns: q,
|
|
@@ -4647,7 +4708,7 @@ const Sn = ({
|
|
|
4647
4708
|
id: "local",
|
|
4648
4709
|
label: "Local File",
|
|
4649
4710
|
content: /* @__PURE__ */ e("div", { className: "space-y-6", children: /* @__PURE__ */ c("div", { className: "flex flex-col items-center justify-center py-12 border-2 border-dashed border-border rounded-xl bg-surface-sunk/50", children: [
|
|
4650
|
-
/* @__PURE__ */ e("div", { className: "p-4 bg-accent-soft rounded-full mb-4", children: /* @__PURE__ */ e(Z, { icon:
|
|
4711
|
+
/* @__PURE__ */ e("div", { className: "p-4 bg-accent-soft rounded-full mb-4", children: /* @__PURE__ */ e(Z, { icon: Fe, size: "xl", color: "primary" }) }),
|
|
4651
4712
|
/* @__PURE__ */ e(me, { variant: "label", size: "lg", weight: "semibold", children: "Select a file from your computer" }),
|
|
4652
4713
|
/* @__PURE__ */ c(
|
|
4653
4714
|
me,
|
|
@@ -4692,12 +4753,12 @@ const Sn = ({
|
|
|
4692
4753
|
}
|
|
4693
4754
|
)
|
|
4694
4755
|
] });
|
|
4695
|
-
},
|
|
4756
|
+
}, In = {
|
|
4696
4757
|
sm: "px-3 py-1.5 text-sm",
|
|
4697
4758
|
md: "px-3 py-2 text-base",
|
|
4698
4759
|
lg: "px-3 py-2 text-md",
|
|
4699
4760
|
full: "px-3 py-2 text-md"
|
|
4700
|
-
},
|
|
4761
|
+
}, Ue = be(
|
|
4701
4762
|
({
|
|
4702
4763
|
label: t,
|
|
4703
4764
|
helperText: r,
|
|
@@ -4719,7 +4780,7 @@ const Sn = ({
|
|
|
4719
4780
|
{
|
|
4720
4781
|
htmlFor: w,
|
|
4721
4782
|
className: d(
|
|
4722
|
-
|
|
4783
|
+
ht,
|
|
4723
4784
|
v ? "text-danger-fg" : "text-text-muted",
|
|
4724
4785
|
u
|
|
4725
4786
|
),
|
|
@@ -4736,10 +4797,10 @@ const Sn = ({
|
|
|
4736
4797
|
"aria-invalid": v || void 0,
|
|
4737
4798
|
"aria-describedby": h,
|
|
4738
4799
|
className: d(
|
|
4739
|
-
|
|
4800
|
+
xt,
|
|
4740
4801
|
"resize-y leading-relaxed",
|
|
4741
|
-
|
|
4742
|
-
|
|
4802
|
+
In[s],
|
|
4803
|
+
gt(v),
|
|
4743
4804
|
i
|
|
4744
4805
|
),
|
|
4745
4806
|
...f
|
|
@@ -4764,14 +4825,14 @@ const Sn = ({
|
|
|
4764
4825
|
] });
|
|
4765
4826
|
}
|
|
4766
4827
|
);
|
|
4767
|
-
|
|
4768
|
-
function
|
|
4828
|
+
Ue.displayName = "TextArea";
|
|
4829
|
+
function rt(t, r) {
|
|
4769
4830
|
return r.split(".").reduce(
|
|
4770
4831
|
(n, s) => n && typeof n == "object" && s in n ? n[s] : void 0,
|
|
4771
4832
|
t
|
|
4772
4833
|
);
|
|
4773
4834
|
}
|
|
4774
|
-
function
|
|
4835
|
+
function On(t, r, n) {
|
|
4775
4836
|
const s = r.split("."), a = Array.isArray(t) ? [...t] : { ...t };
|
|
4776
4837
|
let l = a;
|
|
4777
4838
|
for (let o = 0; o < s.length - 1; o++) {
|
|
@@ -4780,7 +4841,7 @@ function Tn(t, r, n) {
|
|
|
4780
4841
|
}
|
|
4781
4842
|
return l[s[s.length - 1]] = n, a;
|
|
4782
4843
|
}
|
|
4783
|
-
function
|
|
4844
|
+
function Pn(t, r) {
|
|
4784
4845
|
const n = r.split("."), s = Array.isArray(t) ? [...t] : { ...t };
|
|
4785
4846
|
let a = s;
|
|
4786
4847
|
for (let l = 0; l < n.length - 1; l++) {
|
|
@@ -4790,7 +4851,7 @@ function Mn(t, r) {
|
|
|
4790
4851
|
}
|
|
4791
4852
|
return delete a[n[n.length - 1]], s;
|
|
4792
4853
|
}
|
|
4793
|
-
function
|
|
4854
|
+
function jn({
|
|
4794
4855
|
title: t,
|
|
4795
4856
|
description: r,
|
|
4796
4857
|
className: n,
|
|
@@ -4804,7 +4865,7 @@ function zn({
|
|
|
4804
4865
|
/* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: s })
|
|
4805
4866
|
] });
|
|
4806
4867
|
}
|
|
4807
|
-
const
|
|
4868
|
+
const fa = ({
|
|
4808
4869
|
groups: t,
|
|
4809
4870
|
data: r,
|
|
4810
4871
|
onSubmit: n,
|
|
@@ -4845,13 +4906,13 @@ const sa = ({
|
|
|
4845
4906
|
let z = !1;
|
|
4846
4907
|
if (E.forEach((ce, ie) => {
|
|
4847
4908
|
const G = {};
|
|
4848
|
-
for (const
|
|
4849
|
-
const j = ce?.[
|
|
4850
|
-
if (
|
|
4851
|
-
G[
|
|
4852
|
-
else if (
|
|
4853
|
-
const S =
|
|
4854
|
-
S && (G[
|
|
4909
|
+
for (const W of T.arrayFields) {
|
|
4910
|
+
const j = ce?.[W.name];
|
|
4911
|
+
if (W.required && (j == null || j === ""))
|
|
4912
|
+
G[W.name] = `${W.label} is required`, z = !0;
|
|
4913
|
+
else if (W.validator) {
|
|
4914
|
+
const S = W.validator(j, ce);
|
|
4915
|
+
S && (G[W.name] = S, z = !0);
|
|
4855
4916
|
}
|
|
4856
4917
|
}
|
|
4857
4918
|
L[ie] = G;
|
|
@@ -4864,8 +4925,8 @@ const sa = ({
|
|
|
4864
4925
|
[t]
|
|
4865
4926
|
), O = de(
|
|
4866
4927
|
(x, E) => {
|
|
4867
|
-
let $ =
|
|
4868
|
-
t.flatMap((z) => z.items).find((z) => z.name === x)?.removeIfEmpty && (E == null || E === "") && ($ =
|
|
4928
|
+
let $ = On(h, x, E);
|
|
4929
|
+
t.flatMap((z) => z.items).find((z) => z.name === x)?.removeIfEmpty && (E == null || E === "") && ($ = Pn($, x)), C($), _((z) => ({ ...z, [x]: !0 }));
|
|
4869
4930
|
const L = I(x, E, $);
|
|
4870
4931
|
Y((z) => ({
|
|
4871
4932
|
...z,
|
|
@@ -4882,7 +4943,7 @@ const sa = ({
|
|
|
4882
4943
|
continue;
|
|
4883
4944
|
const z = I(
|
|
4884
4945
|
L.name,
|
|
4885
|
-
|
|
4946
|
+
rt(h, L.name),
|
|
4886
4947
|
h
|
|
4887
4948
|
);
|
|
4888
4949
|
z && (E[L.name] = z);
|
|
@@ -4899,7 +4960,7 @@ const sa = ({
|
|
|
4899
4960
|
[h, t, I, o, l, n, g]
|
|
4900
4961
|
), U = de(
|
|
4901
4962
|
(x) => {
|
|
4902
|
-
const E =
|
|
4963
|
+
const E = rt(h, x.name), $ = F[x.name] ? D[x.name] : void 0, T = x.disabled || g, L = {
|
|
4903
4964
|
// Ties the field to the `<label>` the group wrapper renders; without it
|
|
4904
4965
|
// labels are unassociated — screen readers announce nothing, clicking a
|
|
4905
4966
|
// label focuses nothing, and tests cannot find a field by its label.
|
|
@@ -4924,14 +4985,14 @@ const sa = ({
|
|
|
4924
4985
|
...L,
|
|
4925
4986
|
onChange: (z) => O(x.name, z.target.value),
|
|
4926
4987
|
type: x.textType || x.type,
|
|
4927
|
-
...
|
|
4988
|
+
...tt(x.autocomplete),
|
|
4928
4989
|
error: $,
|
|
4929
4990
|
size: f
|
|
4930
4991
|
}
|
|
4931
4992
|
);
|
|
4932
4993
|
case "textarea":
|
|
4933
4994
|
return /* @__PURE__ */ e(
|
|
4934
|
-
|
|
4995
|
+
Ue,
|
|
4935
4996
|
{
|
|
4936
4997
|
...L,
|
|
4937
4998
|
onChange: (z) => O(x.name, z.target.value),
|
|
@@ -4942,7 +5003,7 @@ const sa = ({
|
|
|
4942
5003
|
);
|
|
4943
5004
|
case "select":
|
|
4944
5005
|
return /* @__PURE__ */ e(
|
|
4945
|
-
|
|
5006
|
+
Ie,
|
|
4946
5007
|
{
|
|
4947
5008
|
...L,
|
|
4948
5009
|
onChange: (z) => O(x.name, z),
|
|
@@ -4962,7 +5023,7 @@ const sa = ({
|
|
|
4962
5023
|
// open to learn what the choices even are.
|
|
4963
5024
|
case "segmented":
|
|
4964
5025
|
return /* @__PURE__ */ e(
|
|
4965
|
-
|
|
5026
|
+
ur,
|
|
4966
5027
|
{
|
|
4967
5028
|
"aria-label": x.label,
|
|
4968
5029
|
value: E == null ? "" : String(E),
|
|
@@ -5011,7 +5072,7 @@ const sa = ({
|
|
|
5011
5072
|
)) });
|
|
5012
5073
|
case "date":
|
|
5013
5074
|
return /* @__PURE__ */ e(
|
|
5014
|
-
|
|
5075
|
+
qe,
|
|
5015
5076
|
{
|
|
5016
5077
|
...L,
|
|
5017
5078
|
value: E ? new Date(E) : null,
|
|
@@ -5021,7 +5082,7 @@ const sa = ({
|
|
|
5021
5082
|
);
|
|
5022
5083
|
case "file":
|
|
5023
5084
|
return /* @__PURE__ */ e(
|
|
5024
|
-
|
|
5085
|
+
Ln,
|
|
5025
5086
|
{
|
|
5026
5087
|
...L,
|
|
5027
5088
|
value: E,
|
|
@@ -5054,7 +5115,7 @@ const sa = ({
|
|
|
5054
5115
|
);
|
|
5055
5116
|
case "folder":
|
|
5056
5117
|
return /* @__PURE__ */ e(
|
|
5057
|
-
|
|
5118
|
+
An,
|
|
5058
5119
|
{
|
|
5059
5120
|
value: E || {},
|
|
5060
5121
|
onChange: (z) => O(x.name, z),
|
|
@@ -5089,7 +5150,7 @@ const sa = ({
|
|
|
5089
5150
|
x.name,
|
|
5090
5151
|
z.filter((S, M) => M !== j)
|
|
5091
5152
|
);
|
|
5092
|
-
},
|
|
5153
|
+
}, W = (j, S, M) => {
|
|
5093
5154
|
const X = [...z];
|
|
5094
5155
|
X[j] = {
|
|
5095
5156
|
...X[j],
|
|
@@ -5124,23 +5185,23 @@ const sa = ({
|
|
|
5124
5185
|
Ce,
|
|
5125
5186
|
{
|
|
5126
5187
|
...q,
|
|
5127
|
-
onChange: (N) =>
|
|
5188
|
+
onChange: (N) => W(
|
|
5128
5189
|
S,
|
|
5129
5190
|
M.name,
|
|
5130
5191
|
N.target.value
|
|
5131
5192
|
),
|
|
5132
5193
|
type: M.textType || M.type,
|
|
5133
|
-
...
|
|
5194
|
+
...tt(M.autocomplete),
|
|
5134
5195
|
error: X,
|
|
5135
5196
|
size: f
|
|
5136
5197
|
}
|
|
5137
5198
|
);
|
|
5138
5199
|
case "textarea":
|
|
5139
5200
|
return /* @__PURE__ */ e(
|
|
5140
|
-
|
|
5201
|
+
Ue,
|
|
5141
5202
|
{
|
|
5142
5203
|
...q,
|
|
5143
|
-
onChange: (N) =>
|
|
5204
|
+
onChange: (N) => W(
|
|
5144
5205
|
S,
|
|
5145
5206
|
M.name,
|
|
5146
5207
|
N.target.value
|
|
@@ -5152,10 +5213,10 @@ const sa = ({
|
|
|
5152
5213
|
);
|
|
5153
5214
|
case "select":
|
|
5154
5215
|
return /* @__PURE__ */ e(
|
|
5155
|
-
|
|
5216
|
+
Ie,
|
|
5156
5217
|
{
|
|
5157
5218
|
...q,
|
|
5158
|
-
onChange: (N) =>
|
|
5219
|
+
onChange: (N) => W(S, M.name, N),
|
|
5159
5220
|
options: (M.options || []).map((N) => ({
|
|
5160
5221
|
...N,
|
|
5161
5222
|
value: String(N.value)
|
|
@@ -5173,7 +5234,7 @@ const sa = ({
|
|
|
5173
5234
|
{
|
|
5174
5235
|
...q,
|
|
5175
5236
|
checked: !!j?.[M.name],
|
|
5176
|
-
onChange: (N) =>
|
|
5237
|
+
onChange: (N) => W(
|
|
5177
5238
|
S,
|
|
5178
5239
|
M.name,
|
|
5179
5240
|
N.target.checked
|
|
@@ -5194,7 +5255,7 @@ const sa = ({
|
|
|
5194
5255
|
name: `${x.name}.${S}.${M.name}`,
|
|
5195
5256
|
value: N.value,
|
|
5196
5257
|
checked: j?.[M.name] === N.value,
|
|
5197
|
-
onChange: () =>
|
|
5258
|
+
onChange: () => W(
|
|
5198
5259
|
S,
|
|
5199
5260
|
M.name,
|
|
5200
5261
|
N.value
|
|
@@ -5211,11 +5272,11 @@ const sa = ({
|
|
|
5211
5272
|
case "date": {
|
|
5212
5273
|
const N = j?.[M.name];
|
|
5213
5274
|
return /* @__PURE__ */ e(
|
|
5214
|
-
|
|
5275
|
+
qe,
|
|
5215
5276
|
{
|
|
5216
5277
|
...q,
|
|
5217
5278
|
value: N ? new Date(N) : null,
|
|
5218
|
-
onChange: (R) =>
|
|
5279
|
+
onChange: (R) => W(S, M.name, R),
|
|
5219
5280
|
size: f
|
|
5220
5281
|
}
|
|
5221
5282
|
);
|
|
@@ -5223,7 +5284,7 @@ const sa = ({
|
|
|
5223
5284
|
case "custom":
|
|
5224
5285
|
return M.customComponent?.({
|
|
5225
5286
|
value: j?.[M.name],
|
|
5226
|
-
onChange: (N) =>
|
|
5287
|
+
onChange: (N) => W(S, M.name, N),
|
|
5227
5288
|
error: X,
|
|
5228
5289
|
disabled: T
|
|
5229
5290
|
});
|
|
@@ -5248,7 +5309,7 @@ const sa = ({
|
|
|
5248
5309
|
onClick: () => G(S),
|
|
5249
5310
|
disabled: T,
|
|
5250
5311
|
className: d("shrink-0", S === 0 && "mt-5"),
|
|
5251
|
-
children: /* @__PURE__ */ e(
|
|
5312
|
+
children: /* @__PURE__ */ e(Ht, { className: "size-icon-md" })
|
|
5252
5313
|
}
|
|
5253
5314
|
)
|
|
5254
5315
|
] }, S)),
|
|
@@ -5257,7 +5318,7 @@ const sa = ({
|
|
|
5257
5318
|
{
|
|
5258
5319
|
type: "button",
|
|
5259
5320
|
variant: "secondary",
|
|
5260
|
-
leftIcon: /* @__PURE__ */ e(
|
|
5321
|
+
leftIcon: /* @__PURE__ */ e(qt, { className: "size-icon-sm" }),
|
|
5261
5322
|
onClick: ie,
|
|
5262
5323
|
disabled: T,
|
|
5263
5324
|
children: [
|
|
@@ -5294,7 +5355,7 @@ const sa = ({
|
|
|
5294
5355
|
// form *is* the page now, so a panel around each section would be a
|
|
5295
5356
|
// second surface on top of the one it already sits on.
|
|
5296
5357
|
/* @__PURE__ */ e(
|
|
5297
|
-
|
|
5358
|
+
jn,
|
|
5298
5359
|
{
|
|
5299
5360
|
title: x.title,
|
|
5300
5361
|
description: x.description,
|
|
@@ -5337,7 +5398,7 @@ const sa = ({
|
|
|
5337
5398
|
);
|
|
5338
5399
|
},
|
|
5339
5400
|
[h, F, D, U, P]
|
|
5340
|
-
),
|
|
5401
|
+
), K = d(
|
|
5341
5402
|
{
|
|
5342
5403
|
"max-w-settings": f === "sm",
|
|
5343
5404
|
"max-w-form": f === "md",
|
|
@@ -5346,7 +5407,7 @@ const sa = ({
|
|
|
5346
5407
|
},
|
|
5347
5408
|
b
|
|
5348
5409
|
), y = f === "full" ? "md" : f;
|
|
5349
|
-
return /* @__PURE__ */ c("form", { ref: w, onSubmit: H, className:
|
|
5410
|
+
return /* @__PURE__ */ c("form", { ref: w, onSubmit: H, className: K, children: [
|
|
5350
5411
|
!p && /* @__PURE__ */ e("button", { type: "submit", className: "hidden", tabIndex: -1, "aria-hidden": !0 }),
|
|
5351
5412
|
/* @__PURE__ */ e("div", { className: "flex flex-col", children: t.map(te) }),
|
|
5352
5413
|
p && /* @__PURE__ */ c("div", { className: "flex items-center gap-2 border-t border-border-subtle py-4", children: [
|
|
@@ -5378,7 +5439,7 @@ const sa = ({
|
|
|
5378
5439
|
] })
|
|
5379
5440
|
] });
|
|
5380
5441
|
};
|
|
5381
|
-
function
|
|
5442
|
+
function ha({
|
|
5382
5443
|
label: t,
|
|
5383
5444
|
value: r,
|
|
5384
5445
|
onChange: n,
|
|
@@ -5395,8 +5456,8 @@ function aa({
|
|
|
5395
5456
|
const g = se(null), [b, w] = B(null), v = async (h) => {
|
|
5396
5457
|
if (!h) return;
|
|
5397
5458
|
w(null);
|
|
5398
|
-
const C = await
|
|
5399
|
-
if (a &&
|
|
5459
|
+
const C = await Fn(h, s);
|
|
5460
|
+
if (a && Rn(C) > a) {
|
|
5400
5461
|
w(f);
|
|
5401
5462
|
return;
|
|
5402
5463
|
}
|
|
@@ -5455,11 +5516,11 @@ function aa({
|
|
|
5455
5516
|
)
|
|
5456
5517
|
] });
|
|
5457
5518
|
}
|
|
5458
|
-
function
|
|
5519
|
+
function Rn(t) {
|
|
5459
5520
|
const r = t.slice(t.indexOf(",") + 1), n = r.endsWith("==") ? 2 : r.endsWith("=") ? 1 : 0;
|
|
5460
5521
|
return Math.floor(r.length * 3 / 4) - n;
|
|
5461
5522
|
}
|
|
5462
|
-
function
|
|
5523
|
+
function Fn(t, r) {
|
|
5463
5524
|
return new Promise((n, s) => {
|
|
5464
5525
|
const a = new FileReader();
|
|
5465
5526
|
a.onload = () => {
|
|
@@ -5477,20 +5538,20 @@ function Dn(t, r) {
|
|
|
5477
5538
|
}, a.onerror = s, a.readAsDataURL(t);
|
|
5478
5539
|
});
|
|
5479
5540
|
}
|
|
5480
|
-
function
|
|
5541
|
+
function Bn(t) {
|
|
5481
5542
|
const r = [];
|
|
5482
5543
|
return t.querySelectorAll(`[${$e}]`).forEach((n) => {
|
|
5483
5544
|
const s = n.getAttribute($e);
|
|
5484
5545
|
s && r.push(s);
|
|
5485
|
-
}), { text: t.innerText ?? "", mentions: r, html:
|
|
5546
|
+
}), { text: t.innerText ?? "", mentions: r, html: pt(t.innerHTML) };
|
|
5486
5547
|
}
|
|
5487
|
-
function
|
|
5488
|
-
return
|
|
5548
|
+
function Hn(t) {
|
|
5549
|
+
return Ve.sanitize(t.replace(/\n/g, "<br>"));
|
|
5489
5550
|
}
|
|
5490
|
-
function
|
|
5491
|
-
return
|
|
5551
|
+
function pt(t) {
|
|
5552
|
+
return Ve.sanitize(t, { ADD_ATTR: [$e, "contenteditable"] });
|
|
5492
5553
|
}
|
|
5493
|
-
const
|
|
5554
|
+
const qn = be(
|
|
5494
5555
|
({ initialContent: t, onChange: r, people: n, placeholder: s, onSubmit: a, autoFocus: l, className: o }, u) => {
|
|
5495
5556
|
const i = se(null), [p, m] = B(null), [f, g] = B(null), [b, w] = B(0), v = ge(() => ({ current: f }), [f]), h = ge(() => {
|
|
5496
5557
|
if (p === null) return [];
|
|
@@ -5498,7 +5559,7 @@ const Ln = be(
|
|
|
5498
5559
|
return n.filter((I) => I.name.toLowerCase().includes(_)).slice(0, 8);
|
|
5499
5560
|
}, [n, p]), C = Me(h.length > 0, v, { gap: 4 }), k = de(() => {
|
|
5500
5561
|
if (!i.current) return;
|
|
5501
|
-
const { text: _, mentions: I, html: O } =
|
|
5562
|
+
const { text: _, mentions: I, html: O } = Bn(i.current);
|
|
5502
5563
|
r(_, I, O);
|
|
5503
5564
|
}, [r]), P = de(() => {
|
|
5504
5565
|
m(null), g(null), w(0);
|
|
@@ -5513,11 +5574,11 @@ const Ln = be(
|
|
|
5513
5574
|
H.deleteContents();
|
|
5514
5575
|
const U = document.createDocumentFragment(), te = _.split(`
|
|
5515
5576
|
`);
|
|
5516
|
-
te.forEach((
|
|
5517
|
-
U.appendChild(document.createTextNode(
|
|
5577
|
+
te.forEach((K, y) => {
|
|
5578
|
+
U.appendChild(document.createTextNode(K)), y < te.length - 1 && U.appendChild(document.createElement("br"));
|
|
5518
5579
|
}), H.insertNode(U), H.collapse(!1), O.removeAllRanges(), O.addRange(H);
|
|
5519
5580
|
} else
|
|
5520
|
-
I.innerHTML +=
|
|
5581
|
+
I.innerHTML += Hn(_);
|
|
5521
5582
|
k();
|
|
5522
5583
|
},
|
|
5523
5584
|
clear: () => {
|
|
@@ -5525,7 +5586,7 @@ const Ln = be(
|
|
|
5525
5586
|
},
|
|
5526
5587
|
focus: () => i.current?.focus()
|
|
5527
5588
|
})), Q(() => {
|
|
5528
|
-
!i.current || !t || (i.current.innerHTML =
|
|
5589
|
+
!i.current || !t || (i.current.innerHTML = pt(t), k());
|
|
5529
5590
|
}, [t, k]), Q(() => {
|
|
5530
5591
|
l && (window.matchMedia?.("(max-width: 767px)").matches || i.current?.focus());
|
|
5531
5592
|
}, [l]);
|
|
@@ -5540,8 +5601,8 @@ const Ln = be(
|
|
|
5540
5601
|
m(null), g(null);
|
|
5541
5602
|
return;
|
|
5542
5603
|
}
|
|
5543
|
-
const
|
|
5544
|
-
|
|
5604
|
+
const K = document.createRange();
|
|
5605
|
+
K.setStart(H, te), K.setEnd(H, O.startOffset), m(U.slice(te + 1)), g(K), w(0);
|
|
5545
5606
|
}, []), Y = de(
|
|
5546
5607
|
(_) => {
|
|
5547
5608
|
if (!i.current || !f) return;
|
|
@@ -5585,8 +5646,8 @@ const Ln = be(
|
|
|
5585
5646
|
if (!I || I.rangeCount === 0) return;
|
|
5586
5647
|
const O = I.getRangeAt(0);
|
|
5587
5648
|
if (!O.collapsed) return;
|
|
5588
|
-
const H = O.startContainer, U = O.startOffset, te = (y) => H.nodeType === Node.TEXT_NODE ? y === "prev" ? H.previousSibling : H.nextSibling : H.childNodes[y === "prev" ? U - 1 : U],
|
|
5589
|
-
|
|
5649
|
+
const H = O.startContainer, U = O.startOffset, te = (y) => H.nodeType === Node.TEXT_NODE ? y === "prev" ? H.previousSibling : H.nextSibling : H.childNodes[y === "prev" ? U - 1 : U], K = _.key === "Backspace" ? te("prev") : _.key === "Delete" ? te("next") : null;
|
|
5650
|
+
K instanceof HTMLElement && K.hasAttribute("data-mention-id") && (_.preventDefault(), K.remove(), k());
|
|
5590
5651
|
},
|
|
5591
5652
|
[h, b, Y, P, k, a]
|
|
5592
5653
|
);
|
|
@@ -5603,7 +5664,7 @@ const Ln = be(
|
|
|
5603
5664
|
className: d(
|
|
5604
5665
|
"block w-full min-h-16 rounded-lg p-3 text-sm",
|
|
5605
5666
|
"border-border text-text focus:outline-none",
|
|
5606
|
-
|
|
5667
|
+
We,
|
|
5607
5668
|
"empty:before:content-[attr(data-placeholder)] empty:before:text-text-subtle",
|
|
5608
5669
|
o
|
|
5609
5670
|
),
|
|
@@ -5639,25 +5700,25 @@ const Ln = be(
|
|
|
5639
5700
|
] });
|
|
5640
5701
|
}
|
|
5641
5702
|
);
|
|
5642
|
-
|
|
5643
|
-
const Ne = (...t) => t.filter(Boolean).join(" "),
|
|
5703
|
+
qn.displayName = "MentionComposer";
|
|
5704
|
+
const Ne = (...t) => t.filter(Boolean).join(" "), Un = (t) => /* @__PURE__ */ e(Pe, { ...t, strokeWidth: 1.5, "aria-hidden": !0 }), Vn = (t) => /* @__PURE__ */ e(Oe, { ...t, strokeWidth: 1.5, "aria-hidden": !0 }), Wn = {
|
|
5644
5705
|
sm: "h-control-sm px-3 text-sm",
|
|
5645
5706
|
md: "h-control-md px-3 text-base",
|
|
5646
5707
|
lg: "h-control-lg px-3 text-base",
|
|
5647
5708
|
full: "h-control-md w-full px-3 text-base"
|
|
5648
|
-
},
|
|
5709
|
+
}, He = {
|
|
5649
5710
|
sm: "h-4 w-4",
|
|
5650
5711
|
md: "h-5 w-5",
|
|
5651
5712
|
lg: "h-6 w-6",
|
|
5652
5713
|
full: "h-6 w-6"
|
|
5653
|
-
},
|
|
5714
|
+
}, Kn = be(
|
|
5654
5715
|
({
|
|
5655
5716
|
label: t,
|
|
5656
5717
|
helperText: r,
|
|
5657
5718
|
error: n,
|
|
5658
5719
|
size: s = "md",
|
|
5659
5720
|
fullWidth: a = !1,
|
|
5660
|
-
startIcon: l = /* @__PURE__ */ e(
|
|
5721
|
+
startIcon: l = /* @__PURE__ */ e(Un, {}),
|
|
5661
5722
|
loading: o = !1,
|
|
5662
5723
|
containerClassName: u,
|
|
5663
5724
|
labelClassName: i,
|
|
@@ -5672,7 +5733,7 @@ const Ne = (...t) => t.filter(Boolean).join(" "), In = (t) => /* @__PURE__ */ e(
|
|
|
5672
5733
|
onChange: C,
|
|
5673
5734
|
...k
|
|
5674
5735
|
}, P) => {
|
|
5675
|
-
const D = m || `searchfield-${Math.random().toString(36).substr(2, 9)}`, Y = !!n, F = se(null), _ = se(null), [I, O] = B(h || ""), [H, U] = B(!1), [te,
|
|
5736
|
+
const D = m || `searchfield-${Math.random().toString(36).substr(2, 9)}`, Y = !!n, F = se(null), _ = se(null), [I, O] = B(h || ""), [H, U] = B(!1), [te, K] = B(!1), [y, x] = B(!1);
|
|
5676
5737
|
Q(() => {
|
|
5677
5738
|
h !== void 0 && O(h);
|
|
5678
5739
|
}, [h]);
|
|
@@ -5680,36 +5741,36 @@ const Ne = (...t) => t.filter(Boolean).join(" "), In = (t) => /* @__PURE__ */ e(
|
|
|
5680
5741
|
if (v && !y || !I) return f;
|
|
5681
5742
|
const G = String(I).toLowerCase();
|
|
5682
5743
|
return f.filter(
|
|
5683
|
-
(
|
|
5744
|
+
(W) => String(W.label).toLowerCase().includes(G)
|
|
5684
5745
|
);
|
|
5685
5746
|
}, [I, f, v, y]);
|
|
5686
5747
|
Q(() => {
|
|
5687
5748
|
if (!g || !I) {
|
|
5688
|
-
|
|
5749
|
+
K(!1);
|
|
5689
5750
|
return;
|
|
5690
5751
|
}
|
|
5691
5752
|
const G = setTimeout(async () => {
|
|
5692
|
-
|
|
5753
|
+
K(!0);
|
|
5693
5754
|
try {
|
|
5694
5755
|
await g(String(I));
|
|
5695
|
-
} catch (
|
|
5696
|
-
console.error("Remote search failed:",
|
|
5756
|
+
} catch (W) {
|
|
5757
|
+
console.error("Remote search failed:", W);
|
|
5697
5758
|
} finally {
|
|
5698
|
-
|
|
5759
|
+
K(!1);
|
|
5699
5760
|
}
|
|
5700
5761
|
}, w);
|
|
5701
5762
|
return () => {
|
|
5702
|
-
clearTimeout(G),
|
|
5763
|
+
clearTimeout(G), K(!1);
|
|
5703
5764
|
};
|
|
5704
5765
|
}, [I, w, g]), Q(() => {
|
|
5705
|
-
const G = (
|
|
5706
|
-
F.current && !F.current.contains(
|
|
5766
|
+
const G = (W) => {
|
|
5767
|
+
F.current && !F.current.contains(W.target) && U(!1);
|
|
5707
5768
|
};
|
|
5708
5769
|
return document.addEventListener("mousedown", G), () => document.removeEventListener("mousedown", G);
|
|
5709
5770
|
}, []);
|
|
5710
5771
|
const $ = (G) => {
|
|
5711
|
-
const
|
|
5712
|
-
O(
|
|
5772
|
+
const W = G.target.value;
|
|
5773
|
+
O(W), U(!0), x(!0), C && C(G);
|
|
5713
5774
|
}, T = (G) => {
|
|
5714
5775
|
O(G.label), U(!1), x(!1), b && b(G.value);
|
|
5715
5776
|
}, L = () => {
|
|
@@ -5739,7 +5800,7 @@ const Ne = (...t) => t.filter(Boolean).join(" "), In = (t) => /* @__PURE__ */ e(
|
|
|
5739
5800
|
}
|
|
5740
5801
|
),
|
|
5741
5802
|
/* @__PURE__ */ c("div", { className: "relative", children: [
|
|
5742
|
-
l && /* @__PURE__ */ e("div", { className: "absolute left-0 pl-3 flex items-center pointer-events-none h-full", children: /* @__PURE__ */ e("span", { className: Ne("text-text-muted",
|
|
5803
|
+
l && /* @__PURE__ */ e("div", { className: "absolute left-0 pl-3 flex items-center pointer-events-none h-full", children: /* @__PURE__ */ e("span", { className: Ne("text-text-muted", He[s]), children: l }) }),
|
|
5743
5804
|
/* @__PURE__ */ e(
|
|
5744
5805
|
"input",
|
|
5745
5806
|
{
|
|
@@ -5754,7 +5815,7 @@ const Ne = (...t) => t.filter(Boolean).join(" "), In = (t) => /* @__PURE__ */ e(
|
|
|
5754
5815
|
"placeholder:text-text-subtle focus-visible:outline-none focus-visible:focus-ring",
|
|
5755
5816
|
"disabled:cursor-not-allowed disabled:bg-surface-hover disabled:text-text-disabled",
|
|
5756
5817
|
// Size styles
|
|
5757
|
-
|
|
5818
|
+
Wn[s],
|
|
5758
5819
|
// Icon padding
|
|
5759
5820
|
l ? "pl-10" : "",
|
|
5760
5821
|
"pr-10",
|
|
@@ -5768,15 +5829,15 @@ const Ne = (...t) => t.filter(Boolean).join(" "), In = (t) => /* @__PURE__ */ e(
|
|
|
5768
5829
|
),
|
|
5769
5830
|
/* @__PURE__ */ e("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center", children: z || o ? (
|
|
5770
5831
|
// Loading Spinner
|
|
5771
|
-
/* @__PURE__ */ e(
|
|
5832
|
+
/* @__PURE__ */ e(Ut, { className: Ne("animate-spin text-info-fg", He[s]), "aria-hidden": !0 })
|
|
5772
5833
|
) : (
|
|
5773
5834
|
// Dropdown Chevron
|
|
5774
5835
|
/* @__PURE__ */ e(
|
|
5775
|
-
|
|
5836
|
+
Vn,
|
|
5776
5837
|
{
|
|
5777
5838
|
className: Ne(
|
|
5778
5839
|
"text-text-muted cursor-pointer transition-transform",
|
|
5779
|
-
|
|
5840
|
+
He[s],
|
|
5780
5841
|
H ? "rotate-180" : "rotate-0"
|
|
5781
5842
|
),
|
|
5782
5843
|
onClick: () => {
|
|
@@ -5806,8 +5867,8 @@ const Ne = (...t) => t.filter(Boolean).join(" "), In = (t) => /* @__PURE__ */ e(
|
|
|
5806
5867
|
);
|
|
5807
5868
|
}
|
|
5808
5869
|
);
|
|
5809
|
-
|
|
5810
|
-
const
|
|
5870
|
+
Kn.displayName = "SearchableTextField";
|
|
5871
|
+
const Gn = be(
|
|
5811
5872
|
({ checked: t, onChange: r, label: n, disabled: s = !1, className: a, ...l }, o) => {
|
|
5812
5873
|
const u = /* @__PURE__ */ e(
|
|
5813
5874
|
"span",
|
|
@@ -5860,25 +5921,25 @@ const Rn = be(
|
|
|
5860
5921
|
);
|
|
5861
5922
|
}
|
|
5862
5923
|
);
|
|
5863
|
-
|
|
5864
|
-
const
|
|
5924
|
+
Gn.displayName = "Switch";
|
|
5925
|
+
const Jn = [
|
|
5865
5926
|
{ upTo: 1, cols: "grid-cols-1" },
|
|
5866
5927
|
{ upTo: 2, cols: "grid-cols-1 @[22rem]:grid-cols-2" },
|
|
5867
5928
|
{ upTo: 4, cols: "grid-cols-1 @[18rem]:grid-cols-2" },
|
|
5868
5929
|
{ upTo: 9, cols: "grid-cols-2 @[26rem]:grid-cols-3" }
|
|
5869
|
-
],
|
|
5870
|
-
function
|
|
5871
|
-
return
|
|
5930
|
+
], Yn = "grid-cols-2 @[26rem]:grid-cols-3 @[40rem]:grid-cols-4";
|
|
5931
|
+
function Xn(t) {
|
|
5932
|
+
return Jn.find((r) => t <= r.upTo)?.cols ?? Yn;
|
|
5872
5933
|
}
|
|
5873
|
-
function
|
|
5934
|
+
function Zn(t, r) {
|
|
5874
5935
|
const n = r ?? t;
|
|
5875
5936
|
if (t <= n) return { shown: t, hidden: 0 };
|
|
5876
5937
|
const s = Math.max(0, n - 1);
|
|
5877
5938
|
return { shown: s, hidden: t - s };
|
|
5878
5939
|
}
|
|
5879
|
-
function
|
|
5940
|
+
function xa({ tiles: t, pinned: r, maxStrip: n, className: s }) {
|
|
5880
5941
|
if (r) {
|
|
5881
|
-
const { shown: a, hidden: l } =
|
|
5942
|
+
const { shown: a, hidden: l } = Zn(t.length, n), o = t.slice(0, a);
|
|
5882
5943
|
return /* @__PURE__ */ c("div", { className: d("@container flex h-full min-h-0 flex-col gap-2", s), children: [
|
|
5883
5944
|
/* @__PURE__ */ e("div", { className: "min-h-0 flex-1", children: r }),
|
|
5884
5945
|
t.length > 0 && // Fixed height as a share of the pane, with a floor so the strip
|
|
@@ -5897,14 +5958,14 @@ function la({ tiles: t, pinned: r, maxStrip: n, className: s }) {
|
|
|
5897
5958
|
{
|
|
5898
5959
|
className: d(
|
|
5899
5960
|
"@container grid h-full min-h-0 auto-rows-fr gap-2",
|
|
5900
|
-
|
|
5961
|
+
Xn(t.length),
|
|
5901
5962
|
s
|
|
5902
5963
|
),
|
|
5903
5964
|
children: t.map((a, l) => /* @__PURE__ */ e("div", { className: "min-h-0 min-w-0", children: a }, l))
|
|
5904
5965
|
}
|
|
5905
5966
|
);
|
|
5906
5967
|
}
|
|
5907
|
-
function
|
|
5968
|
+
function ga({
|
|
5908
5969
|
name: t,
|
|
5909
5970
|
avatarUrl: r,
|
|
5910
5971
|
muted: n,
|
|
@@ -5931,16 +5992,16 @@ function oa({
|
|
|
5931
5992
|
alt: t,
|
|
5932
5993
|
className: "aspect-square w-[38%] max-w-16 min-w-6 rounded-full object-cover"
|
|
5933
5994
|
}
|
|
5934
|
-
) : /* @__PURE__ */ e("div", { className: "flex aspect-square w-[38%] max-w-16 min-w-6 items-center justify-center rounded-full bg-video-surface-strong", children: a ? /* @__PURE__ */ e(
|
|
5995
|
+
) : /* @__PURE__ */ e("div", { className: "flex aspect-square w-[38%] max-w-16 min-w-6 items-center justify-center rounded-full bg-video-surface-strong", children: a ? /* @__PURE__ */ e(Vt, { className: "w-1/2 h-1/2" }) : /* @__PURE__ */ e(Wt, { className: "w-1/2 h-1/2" }) }) }),
|
|
5935
5996
|
/* @__PURE__ */ c("div", { className: "absolute inset-x-2 bottom-2 flex w-fit max-w-[calc(100%-1rem)] items-center gap-1.5 rounded bg-video-overlay px-1.5 py-1 text-xs text-white", children: [
|
|
5936
|
-
n ? /* @__PURE__ */ e(
|
|
5997
|
+
n ? /* @__PURE__ */ e(Kt, { className: "size-3 shrink-0" }) : /* @__PURE__ */ e(Gt, { className: "size-3 shrink-0" }),
|
|
5937
5998
|
/* @__PURE__ */ e("span", { className: "hidden truncate @[9rem]:inline", children: t })
|
|
5938
5999
|
] })
|
|
5939
6000
|
]
|
|
5940
6001
|
}
|
|
5941
6002
|
);
|
|
5942
6003
|
}
|
|
5943
|
-
function
|
|
6004
|
+
function ba({
|
|
5944
6005
|
attach: t,
|
|
5945
6006
|
active: r = !0,
|
|
5946
6007
|
mirrored: n = !1,
|
|
@@ -5965,7 +6026,7 @@ function ca({
|
|
|
5965
6026
|
}
|
|
5966
6027
|
);
|
|
5967
6028
|
}
|
|
5968
|
-
const
|
|
6029
|
+
const Qn = () => /* @__PURE__ */ e(Ke, { variant: "inline", shape: "menu" }), vt = ({ item: t, isSelectedHandler: r, onClick: n, depth: s = 0 }) => {
|
|
5969
6030
|
const a = !!(t.children && t.children.length > 0), l = r ? r(t.path) : !1;
|
|
5970
6031
|
if (a)
|
|
5971
6032
|
return /* @__PURE__ */ c("li", { children: [
|
|
@@ -5982,7 +6043,7 @@ const Un = () => /* @__PURE__ */ e(Ve, { variant: "inline", shape: "menu" }), bt
|
|
|
5982
6043
|
}
|
|
5983
6044
|
),
|
|
5984
6045
|
/* @__PURE__ */ e("ul", { className: "flex flex-col gap-px", children: t.children?.map((i, p) => /* @__PURE__ */ e(
|
|
5985
|
-
|
|
6046
|
+
vt,
|
|
5986
6047
|
{
|
|
5987
6048
|
item: i,
|
|
5988
6049
|
isSelectedHandler: r,
|
|
@@ -6072,7 +6133,7 @@ const Un = () => /* @__PURE__ */ e(Ve, { variant: "inline", shape: "menu" }), bt
|
|
|
6072
6133
|
]
|
|
6073
6134
|
}
|
|
6074
6135
|
) });
|
|
6075
|
-
},
|
|
6136
|
+
}, pa = ({
|
|
6076
6137
|
items: t,
|
|
6077
6138
|
isSelectedHandler: r,
|
|
6078
6139
|
onClick: n,
|
|
@@ -6080,12 +6141,12 @@ const Un = () => /* @__PURE__ */ e(Ve, { variant: "inline", shape: "menu" }), bt
|
|
|
6080
6141
|
loading: a = !1
|
|
6081
6142
|
}) => a ? /* @__PURE__ */ c("nav", { className: "flex h-full min-h-0 shrink-0 flex-col", children: [
|
|
6082
6143
|
s && /* @__PURE__ */ e("div", { className: "pb-4", children: s }),
|
|
6083
|
-
/* @__PURE__ */ e(
|
|
6144
|
+
/* @__PURE__ */ e(Qn, {})
|
|
6084
6145
|
] }) : /* @__PURE__ */ c("nav", { className: "flex h-full min-h-0 shrink-0 flex-col", children: [
|
|
6085
6146
|
s && /* @__PURE__ */ e("div", { className: "pb-4", children: s }),
|
|
6086
6147
|
/* @__PURE__ */ e("ul", { className: "flex min-h-0 flex-1 flex-col gap-px overflow-y-auto", children: t.map(
|
|
6087
6148
|
(l, o) => !l.path && !l.label && !l.children ? /* @__PURE__ */ e("li", { "aria-hidden": !0, className: "h-4" }, o) : /* @__PURE__ */ e(
|
|
6088
|
-
|
|
6149
|
+
vt,
|
|
6089
6150
|
{
|
|
6090
6151
|
item: l,
|
|
6091
6152
|
isSelectedHandler: r,
|
|
@@ -6095,7 +6156,7 @@ const Un = () => /* @__PURE__ */ e(Ve, { variant: "inline", shape: "menu" }), bt
|
|
|
6095
6156
|
)
|
|
6096
6157
|
) })
|
|
6097
6158
|
] });
|
|
6098
|
-
function
|
|
6159
|
+
function va({
|
|
6099
6160
|
open: t,
|
|
6100
6161
|
title: r,
|
|
6101
6162
|
description: n,
|
|
@@ -6107,7 +6168,7 @@ function da({
|
|
|
6107
6168
|
onCancel: i
|
|
6108
6169
|
}) {
|
|
6109
6170
|
return /* @__PURE__ */ e(
|
|
6110
|
-
|
|
6171
|
+
bt,
|
|
6111
6172
|
{
|
|
6112
6173
|
open: t,
|
|
6113
6174
|
onClose: i,
|
|
@@ -6129,7 +6190,7 @@ function da({
|
|
|
6129
6190
|
}
|
|
6130
6191
|
);
|
|
6131
6192
|
}
|
|
6132
|
-
const
|
|
6193
|
+
const es = {
|
|
6133
6194
|
none: "p-0",
|
|
6134
6195
|
xs: "p-1",
|
|
6135
6196
|
sm: "p-2",
|
|
@@ -6137,7 +6198,7 @@ const Vn = {
|
|
|
6137
6198
|
lg: "p-6",
|
|
6138
6199
|
xl: "p-8",
|
|
6139
6200
|
"2xl": "p-12"
|
|
6140
|
-
},
|
|
6201
|
+
}, ts = {
|
|
6141
6202
|
none: "m-0",
|
|
6142
6203
|
xs: "m-1",
|
|
6143
6204
|
sm: "m-2",
|
|
@@ -6145,7 +6206,7 @@ const Vn = {
|
|
|
6145
6206
|
lg: "m-6",
|
|
6146
6207
|
xl: "m-8",
|
|
6147
6208
|
"2xl": "m-12"
|
|
6148
|
-
},
|
|
6209
|
+
}, rs = {
|
|
6149
6210
|
none: "",
|
|
6150
6211
|
primary: "bg-accent text-accent-fg",
|
|
6151
6212
|
secondary: "bg-surface-hover",
|
|
@@ -6161,26 +6222,26 @@ const Vn = {
|
|
|
6161
6222
|
backdrop: "bg-page",
|
|
6162
6223
|
editor: "bg-surface",
|
|
6163
6224
|
input: "bg-surface-input"
|
|
6164
|
-
},
|
|
6225
|
+
}, ns = {
|
|
6165
6226
|
none: "rounded-none",
|
|
6166
6227
|
sm: "rounded-sm",
|
|
6167
6228
|
md: "rounded-md",
|
|
6168
6229
|
lg: "rounded-lg",
|
|
6169
6230
|
xl: "rounded-xl",
|
|
6170
6231
|
full: "rounded-full"
|
|
6171
|
-
},
|
|
6232
|
+
}, ss = {
|
|
6172
6233
|
none: "shadow-none",
|
|
6173
6234
|
sm: "shadow-none",
|
|
6174
6235
|
md: "shadow-overlay",
|
|
6175
6236
|
lg: "shadow-overlay",
|
|
6176
6237
|
xl: "shadow-modal",
|
|
6177
6238
|
"2xl": "shadow-modal"
|
|
6178
|
-
},
|
|
6239
|
+
}, as = {
|
|
6179
6240
|
none: "border-0",
|
|
6180
6241
|
sm: "border",
|
|
6181
6242
|
md: "border-2",
|
|
6182
6243
|
lg: "border-4"
|
|
6183
|
-
},
|
|
6244
|
+
}, ls = {
|
|
6184
6245
|
primary: "border-accent-border",
|
|
6185
6246
|
secondary: "border-border",
|
|
6186
6247
|
accent: "border-accent-border",
|
|
@@ -6190,7 +6251,7 @@ const Vn = {
|
|
|
6190
6251
|
info: "border-info-border",
|
|
6191
6252
|
neutral: "border-border-subtle",
|
|
6192
6253
|
white: "border-border-subtle"
|
|
6193
|
-
},
|
|
6254
|
+
}, yt = be(
|
|
6194
6255
|
({
|
|
6195
6256
|
padding: t,
|
|
6196
6257
|
margin: r,
|
|
@@ -6207,13 +6268,13 @@ const Vn = {
|
|
|
6207
6268
|
{
|
|
6208
6269
|
ref: m,
|
|
6209
6270
|
className: d(
|
|
6210
|
-
t &&
|
|
6211
|
-
r &&
|
|
6212
|
-
n &&
|
|
6213
|
-
s &&
|
|
6214
|
-
a &&
|
|
6215
|
-
l &&
|
|
6216
|
-
o &&
|
|
6271
|
+
t && es[t],
|
|
6272
|
+
r && ts[r],
|
|
6273
|
+
n && rs[n],
|
|
6274
|
+
s && ns[s],
|
|
6275
|
+
a && ss[a],
|
|
6276
|
+
l && as[l],
|
|
6277
|
+
o && ls[o],
|
|
6217
6278
|
u
|
|
6218
6279
|
),
|
|
6219
6280
|
...p,
|
|
@@ -6221,11 +6282,11 @@ const Vn = {
|
|
|
6221
6282
|
}
|
|
6222
6283
|
)
|
|
6223
6284
|
);
|
|
6224
|
-
|
|
6225
|
-
const
|
|
6285
|
+
yt.displayName = "Box";
|
|
6286
|
+
const ya = ({ children: t, title: r, ...n }) => /* @__PURE__ */ c(yt, { background: "module", radius: "lg", shadow: "none", border: "sm", borderColor: "neutral", ...n, children: [
|
|
6226
6287
|
r && /* @__PURE__ */ e("span", { className: "mb-2 block text-sm font-semibold text-text", children: r }),
|
|
6227
6288
|
t
|
|
6228
|
-
] }),
|
|
6289
|
+
] }), os = {
|
|
6229
6290
|
xs: "text-xs",
|
|
6230
6291
|
sm: "text-sm",
|
|
6231
6292
|
md: "text-base",
|
|
@@ -6234,13 +6295,13 @@ const ua = ({ children: t, title: r, ...n }) => /* @__PURE__ */ c(pt, { backgrou
|
|
|
6234
6295
|
"2xl": "text-2xl",
|
|
6235
6296
|
"3xl": "text-3xl",
|
|
6236
6297
|
"4xl": "text-3xl"
|
|
6237
|
-
},
|
|
6298
|
+
}, cs = {
|
|
6238
6299
|
light: "font-normal",
|
|
6239
6300
|
normal: "font-normal",
|
|
6240
6301
|
medium: "font-medium",
|
|
6241
6302
|
semibold: "font-semibold",
|
|
6242
6303
|
bold: "font-bold"
|
|
6243
|
-
},
|
|
6304
|
+
}, is = {
|
|
6244
6305
|
primary: "text-text",
|
|
6245
6306
|
secondary: "text-text-muted",
|
|
6246
6307
|
accent: "text-accent",
|
|
@@ -6250,11 +6311,11 @@ const ua = ({ children: t, title: r, ...n }) => /* @__PURE__ */ c(pt, { backgrou
|
|
|
6250
6311
|
info: "text-info-fg",
|
|
6251
6312
|
neutral: "text-text",
|
|
6252
6313
|
current: "text-current"
|
|
6253
|
-
},
|
|
6314
|
+
}, ds = {
|
|
6254
6315
|
left: "text-left",
|
|
6255
6316
|
center: "text-center",
|
|
6256
6317
|
right: "text-right"
|
|
6257
|
-
},
|
|
6318
|
+
}, Na = ({
|
|
6258
6319
|
level: t = 1,
|
|
6259
6320
|
size: r,
|
|
6260
6321
|
weight: n = "semibold",
|
|
@@ -6267,16 +6328,16 @@ const ua = ({ children: t, title: r, ...n }) => /* @__PURE__ */ c(pt, { backgrou
|
|
|
6267
6328
|
}) => {
|
|
6268
6329
|
const p = `h${t}`, m = d(
|
|
6269
6330
|
"font-sans text-pretty",
|
|
6270
|
-
|
|
6271
|
-
|
|
6272
|
-
|
|
6273
|
-
|
|
6331
|
+
os[r || us(t)],
|
|
6332
|
+
cs[n],
|
|
6333
|
+
is[s],
|
|
6334
|
+
ds[a],
|
|
6274
6335
|
l && "truncate",
|
|
6275
6336
|
o
|
|
6276
6337
|
);
|
|
6277
6338
|
return /* @__PURE__ */ e(p, { className: m, ...i, children: u });
|
|
6278
6339
|
};
|
|
6279
|
-
function
|
|
6340
|
+
function us(t) {
|
|
6280
6341
|
return {
|
|
6281
6342
|
1: "2xl",
|
|
6282
6343
|
2: "xl",
|
|
@@ -6286,111 +6347,111 @@ function rs(t) {
|
|
|
6286
6347
|
6: "md"
|
|
6287
6348
|
}[t] || "md";
|
|
6288
6349
|
}
|
|
6289
|
-
const
|
|
6290
|
-
function
|
|
6350
|
+
const nt = ["cat-1", "cat-2", "cat-3", "cat-4", "cat-5"];
|
|
6351
|
+
function wa(t) {
|
|
6291
6352
|
let r = 0;
|
|
6292
6353
|
for (let n = 0; n < t.length; n++) r = r * 31 + t.charCodeAt(n) >>> 0;
|
|
6293
|
-
return
|
|
6354
|
+
return nt[r % nt.length];
|
|
6294
6355
|
}
|
|
6295
6356
|
export {
|
|
6296
|
-
|
|
6297
|
-
|
|
6298
|
-
|
|
6299
|
-
|
|
6300
|
-
|
|
6301
|
-
|
|
6302
|
-
|
|
6303
|
-
|
|
6304
|
-
|
|
6357
|
+
As as ActivityAvatar,
|
|
6358
|
+
Ds as ActivityGlyph,
|
|
6359
|
+
Ms as ActivityRow,
|
|
6360
|
+
Cs as ArtifactView,
|
|
6361
|
+
Ss as AssistantCard,
|
|
6362
|
+
ut as Avatar,
|
|
6363
|
+
Ts as AvatarStack,
|
|
6364
|
+
dn as Badge,
|
|
6365
|
+
yt as Box,
|
|
6305
6366
|
ae as Button,
|
|
6306
|
-
|
|
6307
|
-
|
|
6308
|
-
|
|
6367
|
+
Ns as ButtonGroup,
|
|
6368
|
+
ya as Card,
|
|
6369
|
+
Ls as ChannelBadge,
|
|
6309
6370
|
we as Checkbox,
|
|
6310
|
-
|
|
6311
|
-
|
|
6312
|
-
|
|
6313
|
-
|
|
6314
|
-
|
|
6315
|
-
|
|
6316
|
-
|
|
6317
|
-
|
|
6318
|
-
|
|
6319
|
-
|
|
6320
|
-
|
|
6321
|
-
|
|
6322
|
-
|
|
6323
|
-
|
|
6371
|
+
ks as CommandPalette,
|
|
6372
|
+
va as ConfirmDialog,
|
|
6373
|
+
Ke as ContentLoading,
|
|
6374
|
+
qe as DatePicker,
|
|
6375
|
+
en as Dropdown,
|
|
6376
|
+
la as EmptyState,
|
|
6377
|
+
sa as ErrorBoundary,
|
|
6378
|
+
aa as FederatedResource,
|
|
6379
|
+
lr as FilterChip,
|
|
6380
|
+
An as FolderSelect,
|
|
6381
|
+
fa as Form,
|
|
6382
|
+
jn as FormSection,
|
|
6383
|
+
Na as Heading,
|
|
6384
|
+
zr as IDENTITY_TONE_COUNT,
|
|
6324
6385
|
Z as Icon,
|
|
6325
|
-
|
|
6326
|
-
|
|
6327
|
-
|
|
6328
|
-
|
|
6329
|
-
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
|
|
6333
|
-
|
|
6334
|
-
|
|
6335
|
-
|
|
6336
|
-
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
6386
|
+
Is as Image,
|
|
6387
|
+
ha as ImageField,
|
|
6388
|
+
oa as Kbd,
|
|
6389
|
+
Os as KpiCard,
|
|
6390
|
+
ws as Link,
|
|
6391
|
+
js as List,
|
|
6392
|
+
Ps as ListBulkAction,
|
|
6393
|
+
xa as MeetingGrid,
|
|
6394
|
+
qn as MentionComposer,
|
|
6395
|
+
Rs as MessageBubble,
|
|
6396
|
+
Bs as MetaSeparator,
|
|
6397
|
+
Fs as MetaValue,
|
|
6398
|
+
bt as Modal,
|
|
6399
|
+
Hs as Page,
|
|
6400
|
+
Wr as PageHeader,
|
|
6401
|
+
qs as PageToolbar,
|
|
6341
6402
|
ke as PageToolbarActions,
|
|
6342
|
-
|
|
6343
|
-
|
|
6344
|
-
|
|
6403
|
+
ga as ParticipantTile,
|
|
6404
|
+
lt as Popover,
|
|
6405
|
+
ca as ProgressBar,
|
|
6345
6406
|
ze as RichText,
|
|
6346
|
-
|
|
6347
|
-
|
|
6348
|
-
|
|
6349
|
-
|
|
6350
|
-
|
|
6351
|
-
|
|
6352
|
-
|
|
6353
|
-
|
|
6354
|
-
|
|
6355
|
-
|
|
6356
|
-
|
|
6357
|
-
|
|
6358
|
-
|
|
6359
|
-
|
|
6360
|
-
|
|
6361
|
-
|
|
6362
|
-
|
|
6363
|
-
|
|
6364
|
-
|
|
6365
|
-
|
|
6366
|
-
|
|
6367
|
-
|
|
6407
|
+
_s as RowCard,
|
|
6408
|
+
ft as SearchField,
|
|
6409
|
+
Kn as SearchableTextField,
|
|
6410
|
+
Us as SectionCaption,
|
|
6411
|
+
Vs as SectionDivider,
|
|
6412
|
+
ur as SegmentedToggle,
|
|
6413
|
+
Ie as Select,
|
|
6414
|
+
Ws as SettingsFrameProvider,
|
|
6415
|
+
Gs as SettingsPage,
|
|
6416
|
+
Js as SettingsRow,
|
|
6417
|
+
Ys as SettingsSection,
|
|
6418
|
+
pa as SidebarMenu,
|
|
6419
|
+
Xs as SourceChip,
|
|
6420
|
+
ia as Spinner,
|
|
6421
|
+
ot as SplitButton,
|
|
6422
|
+
da as StatusDot,
|
|
6423
|
+
ua as StepIndicator,
|
|
6424
|
+
Ln as StorageInput,
|
|
6425
|
+
Gn as Switch,
|
|
6426
|
+
ma as TabBar,
|
|
6427
|
+
et as Table,
|
|
6428
|
+
_n as Tabs,
|
|
6368
6429
|
me as Text,
|
|
6369
|
-
|
|
6430
|
+
Ue as TextArea,
|
|
6370
6431
|
Ce as TextField,
|
|
6371
|
-
|
|
6372
|
-
|
|
6373
|
-
|
|
6374
|
-
|
|
6375
|
-
|
|
6376
|
-
|
|
6377
|
-
|
|
6378
|
-
|
|
6432
|
+
$s as TimelineEvent,
|
|
6433
|
+
ba as VideoSurface,
|
|
6434
|
+
na as View,
|
|
6435
|
+
tt as autofillProps,
|
|
6436
|
+
un as badgeColumn,
|
|
6437
|
+
ta as booleanBadgeColumn,
|
|
6438
|
+
zs as cardActionClass,
|
|
6439
|
+
wa as catTone,
|
|
6379
6440
|
d as cn,
|
|
6380
|
-
|
|
6381
|
-
|
|
6382
|
-
|
|
6383
|
-
|
|
6384
|
-
|
|
6385
|
-
|
|
6386
|
-
|
|
6387
|
-
|
|
6388
|
-
|
|
6389
|
-
|
|
6390
|
-
|
|
6441
|
+
ys as createSizes,
|
|
6442
|
+
vs as createVariants,
|
|
6443
|
+
Zs as dateFilterHandler,
|
|
6444
|
+
Es as identityDotClass,
|
|
6445
|
+
dt as identityPlateClass,
|
|
6446
|
+
it as identityTone,
|
|
6447
|
+
ra as labelsColumn,
|
|
6448
|
+
ea as multiSelectFilterHandler,
|
|
6449
|
+
Tn as normalizeText,
|
|
6450
|
+
er as resolveLucideIcon,
|
|
6451
|
+
Qs as selectFilterHandler,
|
|
6391
6452
|
_e as text,
|
|
6392
6453
|
Me as useAnchoredPosition,
|
|
6393
|
-
|
|
6394
|
-
|
|
6454
|
+
Jr as useSettingsFrame,
|
|
6455
|
+
Ks as useSettingsFrameHost
|
|
6395
6456
|
};
|
|
6396
6457
|
//# sourceMappingURL=index.js.map
|