@nxgt/material 3.24.0 → 3.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/{components-D2XNfS3c.js → components-CbuWrY21.js} +389 -387
- package/dist/components.js +1 -1
- package/dist/lib/components/ui/selection/native-select/native-select.d.ts +1 -0
- package/dist/main.js +1 -1
- package/dist/material.css +1 -1
- package/docs/components/selection-and-choice.md +3 -1
- package/docs/troubleshooting.md +21 -1
- package/package.json +1 -1
|
@@ -102516,15 +102516,17 @@ function mXe({ control: e, name: t, ...n }) {
|
|
|
102516
102516
|
}
|
|
102517
102517
|
//#endregion
|
|
102518
102518
|
//#region lib/components/ui/selection/native-select/native-select.tsx
|
|
102519
|
-
|
|
102519
|
+
var hXe = (e) => /(^|\s)(?:[^\s:]+:)*!?w-(?!full(\s|$))/.test(e);
|
|
102520
|
+
function gXe({ className: e, size: t = "default", ...n }) {
|
|
102521
|
+
let r = i(jr, "w-full min-w-0 appearance-none ps-3 pe-10 text-base outline-none md:text-sm", t === "sm" && "h-9", t === "default" && "h-11", t === "lg" && "h-13 md:text-base", "selection:bg-primary selection:text-primary-foreground disabled:pointer-events-none", "has-[option[value='']:checked]:text-muted-foreground", e);
|
|
102520
102522
|
return /* @__PURE__ */ H("div", {
|
|
102521
|
-
className: "group/native-select relative w-fit",
|
|
102523
|
+
className: i("group/native-select relative", hXe(r) ? "w-fit" : "w-full"),
|
|
102522
102524
|
"data-slot": "native-select-wrapper",
|
|
102523
102525
|
children: [/* @__PURE__ */ V("select", {
|
|
102524
102526
|
"data-slot": "native-select",
|
|
102525
102527
|
...Ar({ size: typeof t == "number" ? void 0 : t }),
|
|
102526
102528
|
size: typeof t == "number" ? t : void 0,
|
|
102527
|
-
className:
|
|
102529
|
+
className: r,
|
|
102528
102530
|
...n
|
|
102529
102531
|
}), /* @__PURE__ */ V(ns, {
|
|
102530
102532
|
className: "text-muted-foreground pointer-events-none absolute end-3 top-1/2 size-[1.125rem] -translate-y-1/2 select-none group-has-[select:disabled]/native-select:opacity-50",
|
|
@@ -102533,14 +102535,14 @@ function hXe({ className: e, size: t = "default", ...n }) {
|
|
|
102533
102535
|
})]
|
|
102534
102536
|
});
|
|
102535
102537
|
}
|
|
102536
|
-
function
|
|
102538
|
+
function _Xe({ className: e, ...t }) {
|
|
102537
102539
|
return /* @__PURE__ */ V("option", {
|
|
102538
102540
|
"data-slot": "native-select-option",
|
|
102539
102541
|
className: i("bg-popover text-popover-foreground", e),
|
|
102540
102542
|
...t
|
|
102541
102543
|
});
|
|
102542
102544
|
}
|
|
102543
|
-
function
|
|
102545
|
+
function vXe({ className: e, ...t }) {
|
|
102544
102546
|
return /* @__PURE__ */ V("optgroup", {
|
|
102545
102547
|
"data-slot": "native-select-optgroup",
|
|
102546
102548
|
className: i("bg-popover text-popover-foreground", e),
|
|
@@ -102549,7 +102551,7 @@ function _Xe({ className: e, ...t }) {
|
|
|
102549
102551
|
}
|
|
102550
102552
|
//#endregion
|
|
102551
102553
|
//#region lib/components/ui/selection/radio-group/radio-group-form-field.tsx
|
|
102552
|
-
function
|
|
102554
|
+
function yXe({ control: e, name: t, ...n }) {
|
|
102553
102555
|
return /* @__PURE__ */ V(ua, {
|
|
102554
102556
|
control: e,
|
|
102555
102557
|
name: t,
|
|
@@ -102571,7 +102573,7 @@ function vXe({ control: e, name: t, ...n }) {
|
|
|
102571
102573
|
}
|
|
102572
102574
|
//#endregion
|
|
102573
102575
|
//#region lib/components/ui/selection/sortable-list/sortable-list-context.ts
|
|
102574
|
-
var P5 = mc(null),
|
|
102576
|
+
var P5 = mc(null), bXe = P5.Provider;
|
|
102575
102577
|
function F5() {
|
|
102576
102578
|
let e = xc(P5);
|
|
102577
102579
|
if (!e) throw Error("SortableList parts must be rendered inside SortableList");
|
|
@@ -102582,18 +102584,18 @@ function I5(e, t) {
|
|
|
102582
102584
|
}
|
|
102583
102585
|
//#endregion
|
|
102584
102586
|
//#region lib/components/ui/selection/sortable-list/partials/sortable-list-announcer.tsx
|
|
102585
|
-
var
|
|
102587
|
+
var xXe = {
|
|
102586
102588
|
grabbed: "{label} picked up, position {position} of {total}. Arrow keys move it, Space drops it, Escape cancels.",
|
|
102587
102589
|
moved: "{label} moved to position {position} of {total}.",
|
|
102588
102590
|
dropped: "{label} dropped at position {position} of {total}.",
|
|
102589
102591
|
cancelled: "Reorder cancelled. {label} is back at position {position}.",
|
|
102590
102592
|
removed: "{label} removed."
|
|
102591
102593
|
};
|
|
102592
|
-
function
|
|
102594
|
+
function SXe() {
|
|
102593
102595
|
let { t: e } = k(), { list: t } = F5(), n = t.chrome.announcement, r = "";
|
|
102594
102596
|
if (n) {
|
|
102595
102597
|
let i = t.byValue.get(n.value)?.label ?? n.value;
|
|
102596
|
-
r = e(`material.sortable-list.${n.kind}`,
|
|
102598
|
+
r = e(`material.sortable-list.${n.kind}`, xXe[n.kind], {
|
|
102597
102599
|
label: i,
|
|
102598
102600
|
position: t.orderedIds.indexOf(n.value) + 1,
|
|
102599
102601
|
total: t.orderedIds.length
|
|
@@ -102608,11 +102610,11 @@ function xXe() {
|
|
|
102608
102610
|
}
|
|
102609
102611
|
//#endregion
|
|
102610
102612
|
//#region lib/components/ui/selection/sortable-list/sortable-list.keyboard.ts
|
|
102611
|
-
function
|
|
102613
|
+
function CXe(e) {
|
|
102612
102614
|
return e === "ArrowUp" || e === "ArrowLeft" ? "up" : e === "ArrowDown" || e === "ArrowRight" ? "down" : null;
|
|
102613
102615
|
}
|
|
102614
|
-
function
|
|
102615
|
-
let n =
|
|
102616
|
+
function wXe(e, t) {
|
|
102617
|
+
let n = CXe(e.key), r = t.visibleValues, i = t.focusedValue ? r.indexOf(t.focusedValue) : -1, a = e.ctrlKey || e.metaKey, o = t.focusedValue != null && t.movable.includes(t.focusedValue);
|
|
102616
102618
|
if (t.grabbed) {
|
|
102617
102619
|
let t = n ? {
|
|
102618
102620
|
type: "reorder",
|
|
@@ -102644,7 +102646,7 @@ function CXe(e, t) {
|
|
|
102644
102646
|
}
|
|
102645
102647
|
//#endregion
|
|
102646
102648
|
//#region lib/components/ui/selection/sortable-list/partials/sortable-list-empty.tsx
|
|
102647
|
-
function
|
|
102649
|
+
function TXe({ title: e }) {
|
|
102648
102650
|
return /* @__PURE__ */ V(wo, {
|
|
102649
102651
|
kind: "empty",
|
|
102650
102652
|
size: "compact",
|
|
@@ -102655,7 +102657,7 @@ function wXe({ title: e }) {
|
|
|
102655
102657
|
//#endregion
|
|
102656
102658
|
//#region lib/components/ui/selection/sortable-list/partials/sortable-list-row-actions.tsx
|
|
102657
102659
|
var L5 = (e) => e.stopPropagation();
|
|
102658
|
-
function
|
|
102660
|
+
function EXe({ item: e, index: t, total: n }) {
|
|
102659
102661
|
let { list: r, labels: i, options: a } = F5(), o = r.movable.includes(e.value);
|
|
102660
102662
|
return !a.reorderable && !a.removable ? null : /* @__PURE__ */ H(B, { children: [a.reorderable && /* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V(j, {
|
|
102661
102663
|
variant: "ghost",
|
|
@@ -102689,7 +102691,7 @@ function TXe({ item: e, index: t, total: n }) {
|
|
|
102689
102691
|
}
|
|
102690
102692
|
//#endregion
|
|
102691
102693
|
//#region lib/components/ui/selection/sortable-list/partials/sortable-list-item.tsx
|
|
102692
|
-
function
|
|
102694
|
+
function DXe(e) {
|
|
102693
102695
|
let { list: t, options: n } = F5();
|
|
102694
102696
|
return n.draggable && t.movable.includes(e.item.value) ? /* @__PURE__ */ V(Fo, {
|
|
102695
102697
|
id: e.item.value,
|
|
@@ -102759,7 +102761,7 @@ function R5({ id: e, item: t, position: n, index: r, total: a, className: o, sty
|
|
|
102759
102761
|
className: i("flex center rounded-full bg-primary/10 font-semibold text-primary-text tabular-nums", _ ? "size-5 text-[11px]" : "size-7 text-xs"),
|
|
102760
102762
|
children: n + 1
|
|
102761
102763
|
})] }),
|
|
102762
|
-
trailing: /* @__PURE__ */ V(
|
|
102764
|
+
trailing: /* @__PURE__ */ V(EXe, {
|
|
102763
102765
|
item: t,
|
|
102764
102766
|
index: r,
|
|
102765
102767
|
total: a
|
|
@@ -102768,7 +102770,7 @@ function R5({ id: e, item: t, position: n, index: r, total: a, className: o, sty
|
|
|
102768
102770
|
}
|
|
102769
102771
|
//#endregion
|
|
102770
102772
|
//#region lib/components/ui/selection/sortable-list/partials/sortable-list-body.tsx
|
|
102771
|
-
function
|
|
102773
|
+
function OXe({ emptyTitle: e }) {
|
|
102772
102774
|
let { list: t, options: n } = F5(), r = t.visible.map((e) => e.value), a = t.focusedValue ? r.indexOf(t.focusedValue) : -1;
|
|
102773
102775
|
return /* @__PURE__ */ V("div", {
|
|
102774
102776
|
role: "listbox",
|
|
@@ -102778,7 +102780,7 @@ function DXe({ emptyTitle: e }) {
|
|
|
102778
102780
|
tabIndex: t.disabled ? -1 : 0,
|
|
102779
102781
|
className: i("group/listbox flex min-h-full flex-col p-1.5 outline-none", "rounded-b-xl focus-visible:ring-2 focus-visible:ring-ring/40 focus-visible:ring-inset", n.appearance === "cards" ? "gap-1.5 p-2" : "gap-0.5"),
|
|
102780
102782
|
onKeyDown: (e) => {
|
|
102781
|
-
let i =
|
|
102783
|
+
let i = wXe(e, {
|
|
102782
102784
|
focusedValue: t.focusedValue,
|
|
102783
102785
|
visibleValues: r,
|
|
102784
102786
|
movable: t.movable,
|
|
@@ -102800,7 +102802,7 @@ function DXe({ emptyTitle: e }) {
|
|
|
102800
102802
|
onBlur: (e) => {
|
|
102801
102803
|
e.currentTarget.contains(e.relatedTarget) || t.drop();
|
|
102802
102804
|
},
|
|
102803
|
-
children: t.visible.length === 0 ? /* @__PURE__ */ V(
|
|
102805
|
+
children: t.visible.length === 0 ? /* @__PURE__ */ V(TXe, { title: e }) : t.visible.map((e, r) => /* @__PURE__ */ V(DXe, {
|
|
102804
102806
|
id: I5(n.uid, r),
|
|
102805
102807
|
item: e,
|
|
102806
102808
|
position: t.orderedIds.indexOf(e.value),
|
|
@@ -102811,7 +102813,7 @@ function DXe({ emptyTitle: e }) {
|
|
|
102811
102813
|
}
|
|
102812
102814
|
//#endregion
|
|
102813
102815
|
//#region lib/components/ui/selection/sortable-list/partials/sortable-list-dnd.tsx
|
|
102814
|
-
function
|
|
102816
|
+
function kXe({ items: e, enabled: t, density: n, onDrop: r, children: i }) {
|
|
102815
102817
|
let a = e.map((e) => e.value), o = Xi("(prefers-reduced-motion: reduce)", !1);
|
|
102816
102818
|
return /* @__PURE__ */ H(Oo, {
|
|
102817
102819
|
disabled: !t,
|
|
@@ -102841,7 +102843,7 @@ function OXe({ items: e, enabled: t, density: n, onDrop: r, children: i }) {
|
|
|
102841
102843
|
}
|
|
102842
102844
|
//#endregion
|
|
102843
102845
|
//#region lib/components/ui/selection/transfer-list/transfer-list.utils.ts
|
|
102844
|
-
function
|
|
102846
|
+
function AXe(e, t) {
|
|
102845
102847
|
let n = new Map(e.map((e) => [e.value, e])), r = new Set(t), i = t.flatMap((e) => {
|
|
102846
102848
|
let t = n.get(e);
|
|
102847
102849
|
return t ? [t] : [];
|
|
@@ -102851,7 +102853,7 @@ function kXe(e, t) {
|
|
|
102851
102853
|
selected: i
|
|
102852
102854
|
};
|
|
102853
102855
|
}
|
|
102854
|
-
function
|
|
102856
|
+
function jXe(e, t) {
|
|
102855
102857
|
let n = t.trim().toLowerCase();
|
|
102856
102858
|
return !n || [
|
|
102857
102859
|
e.label,
|
|
@@ -102860,9 +102862,9 @@ function AXe(e, t) {
|
|
|
102860
102862
|
].filter((e) => !!e).some((e) => e.toLowerCase().includes(n));
|
|
102861
102863
|
}
|
|
102862
102864
|
function z5(e, t) {
|
|
102863
|
-
return e.filter((e) =>
|
|
102865
|
+
return e.filter((e) => jXe(e, t));
|
|
102864
102866
|
}
|
|
102865
|
-
function
|
|
102867
|
+
function MXe(e) {
|
|
102866
102868
|
let t = /* @__PURE__ */ new Map(), n = [];
|
|
102867
102869
|
for (let r of e) {
|
|
102868
102870
|
let e = r.group ?? null, i = t.get(e);
|
|
@@ -102883,7 +102885,7 @@ function V5(e, t) {
|
|
|
102883
102885
|
function H5(e, t) {
|
|
102884
102886
|
return e.includes(t) ? e.filter((e) => e !== t) : [...e, t];
|
|
102885
102887
|
}
|
|
102886
|
-
function
|
|
102888
|
+
function NXe(e, t, n) {
|
|
102887
102889
|
let r = new Set(e), i = [...e];
|
|
102888
102890
|
for (let e of t) if (!r.has(e)) {
|
|
102889
102891
|
if (n != null && i.length >= n) break;
|
|
@@ -102903,13 +102905,13 @@ function W5(e, t, n) {
|
|
|
102903
102905
|
let a = [...e], o = a[r], s = a[i];
|
|
102904
102906
|
return o === void 0 || s === void 0 ? e : (a[r] = s, a[i] = o, a);
|
|
102905
102907
|
}
|
|
102906
|
-
function
|
|
102908
|
+
function PXe(e, t, n, r) {
|
|
102907
102909
|
return n.pane === "available" ? U5(e, t) : Lo(e, t, n.before, r);
|
|
102908
102910
|
}
|
|
102909
102911
|
function G5(e, t) {
|
|
102910
102912
|
return t.length === 0 || e.length === 0 ? "none" : e.length >= t.length ? "all" : "some";
|
|
102911
102913
|
}
|
|
102912
|
-
function
|
|
102914
|
+
function FXe(e, t, n) {
|
|
102913
102915
|
let r = e.indexOf(t), i = e.indexOf(n);
|
|
102914
102916
|
return i < 0 ? [] : r < 0 ? [n] : e.slice(Math.min(r, i), Math.max(r, i) + 1);
|
|
102915
102917
|
}
|
|
@@ -102945,10 +102947,10 @@ var K5 = ju({
|
|
|
102945
102947
|
K5.actions;
|
|
102946
102948
|
//#endregion
|
|
102947
102949
|
//#region lib/components/ui/selection/sortable-list/use-sortable-list.ts
|
|
102948
|
-
function
|
|
102950
|
+
function IXe(e, t) {
|
|
102949
102951
|
return t ? [] : e.filter((e) => !e.disabled && !e.locked).map((e) => e.value);
|
|
102950
102952
|
}
|
|
102951
|
-
function
|
|
102953
|
+
function LXe({ items: e, value: t, defaultValue: n, onValueChange: r, disabled: i = !1 }) {
|
|
102952
102954
|
let a = L(() => e.map((e) => e.value), [e]), [o, s] = z(n ?? a), c = t ?? o, [l, u] = ka(K5), d = P((e) => {
|
|
102953
102955
|
t === void 0 && s(e), r?.(e);
|
|
102954
102956
|
}, [r, t]), f = L(() => new Map(e.map((e) => [e.value, e])), [e]), p = L(() => c.flatMap((e) => {
|
|
@@ -102957,7 +102959,7 @@ function IXe({ items: e, value: t, defaultValue: n, onValueChange: r, disabled:
|
|
|
102957
102959
|
}), [f, c]), m = L(() => {
|
|
102958
102960
|
let e = l.query.trim().toLowerCase();
|
|
102959
102961
|
return e ? p.filter((t) => [t.label, t.subtitle].filter((e) => !!e).some((t) => t.toLowerCase().includes(e))) : p;
|
|
102960
|
-
}, [p, l.query]), h = L(() =>
|
|
102962
|
+
}, [p, l.query]), h = L(() => IXe(m, i), [i, m]), g = P((e, t) => {
|
|
102961
102963
|
if (i) return;
|
|
102962
102964
|
let n = f.get(e);
|
|
102963
102965
|
if (!n || n.disabled || n.locked) return;
|
|
@@ -103047,16 +103049,16 @@ function IXe({ items: e, value: t, defaultValue: n, onValueChange: r, disabled:
|
|
|
103047
103049
|
}
|
|
103048
103050
|
//#endregion
|
|
103049
103051
|
//#region lib/components/ui/selection/sortable-list/sortable-list.tsx
|
|
103050
|
-
var
|
|
103051
|
-
function q5({ items: e, value: t, defaultValue: n, onValueChange: r, searchable: a = !0, draggable: o = !0, reorderable: s = !1, removable: c = !1, numbered: l = !1, density: u = "comfortable", appearance: d = "cards", dragActivator: f = "row", disabled: p = !1, height: m =
|
|
103052
|
-
let S = mi(), { t: C } = k(), w = I(), T =
|
|
103052
|
+
var RXe = 320;
|
|
103053
|
+
function q5({ items: e, value: t, defaultValue: n, onValueChange: r, searchable: a = !0, draggable: o = !0, reorderable: s = !1, removable: c = !1, numbered: l = !1, density: u = "comfortable", appearance: d = "cards", dragActivator: f = "row", disabled: p = !1, height: m = RXe, label: h, helperText: g, error: _, required: v, name: y, className: b, renderItem: x }) {
|
|
103054
|
+
let S = mi(), { t: C } = k(), w = I(), T = LXe({
|
|
103053
103055
|
items: e,
|
|
103054
103056
|
value: t,
|
|
103055
103057
|
defaultValue: n,
|
|
103056
103058
|
onValueChange: r,
|
|
103057
103059
|
disabled: p
|
|
103058
103060
|
}), E = h ? `${w}-label` : void 0, D = T.query ? C("material.sortable-list.empty-filter", "No matches") : C("material.sortable-list.empty", "Nothing to order");
|
|
103059
|
-
return /* @__PURE__ */ V(
|
|
103061
|
+
return /* @__PURE__ */ V(bXe, {
|
|
103060
103062
|
value: {
|
|
103061
103063
|
list: T,
|
|
103062
103064
|
labels: {
|
|
@@ -103112,15 +103114,15 @@ function q5({ items: e, value: t, defaultValue: n, onValueChange: r, searchable:
|
|
|
103112
103114
|
children: C("material.sortable-list.total", "{count, plural, one {# item} other {# items}}", { count: T.visible.length })
|
|
103113
103115
|
})
|
|
103114
103116
|
] }) : void 0,
|
|
103115
|
-
children: /* @__PURE__ */ V(
|
|
103117
|
+
children: /* @__PURE__ */ V(kXe, {
|
|
103116
103118
|
items: T.visible,
|
|
103117
103119
|
enabled: o && !p,
|
|
103118
103120
|
density: u,
|
|
103119
103121
|
onDrop: T.dropItem,
|
|
103120
|
-
children: /* @__PURE__ */ V(
|
|
103122
|
+
children: /* @__PURE__ */ V(OXe, { emptyTitle: D })
|
|
103121
103123
|
})
|
|
103122
103124
|
}),
|
|
103123
|
-
/* @__PURE__ */ V(
|
|
103125
|
+
/* @__PURE__ */ V(SXe, {}),
|
|
103124
103126
|
g && /* @__PURE__ */ V(fi, {
|
|
103125
103127
|
error: _,
|
|
103126
103128
|
children: g
|
|
@@ -103131,7 +103133,7 @@ function q5({ items: e, value: t, defaultValue: n, onValueChange: r, searchable:
|
|
|
103131
103133
|
}
|
|
103132
103134
|
//#endregion
|
|
103133
103135
|
//#region lib/components/ui/selection/sortable-list/sortable-list-form-field.tsx
|
|
103134
|
-
function
|
|
103136
|
+
function zXe({ control: e, name: t, ...n }) {
|
|
103135
103137
|
return /* @__PURE__ */ V(ua, {
|
|
103136
103138
|
control: e,
|
|
103137
103139
|
name: t,
|
|
@@ -103221,7 +103223,7 @@ function X5({ children: e, className: t }) {
|
|
|
103221
103223
|
}
|
|
103222
103224
|
//#endregion
|
|
103223
103225
|
//#region lib/components/ui/selection/switcher/switcher.utils.ts
|
|
103224
|
-
function
|
|
103226
|
+
function BXe(e, t) {
|
|
103225
103227
|
let n = t.trim();
|
|
103226
103228
|
return n ? e.filter((e) => [
|
|
103227
103229
|
e.title,
|
|
@@ -103229,7 +103231,7 @@ function zXe(e, t) {
|
|
|
103229
103231
|
e.group
|
|
103230
103232
|
].some((e) => e && Fu(e, n))) : e;
|
|
103231
103233
|
}
|
|
103232
|
-
function
|
|
103234
|
+
function VXe(e) {
|
|
103233
103235
|
let t = [];
|
|
103234
103236
|
for (let n of e) {
|
|
103235
103237
|
let e = t.find((e) => e.name === n.group);
|
|
@@ -103240,10 +103242,10 @@ function BXe(e) {
|
|
|
103240
103242
|
}
|
|
103241
103243
|
return t.sort((e, t) => Number(e.name !== void 0) - Number(t.name !== void 0));
|
|
103242
103244
|
}
|
|
103243
|
-
function
|
|
103245
|
+
function HXe(e, t = []) {
|
|
103244
103246
|
return t.map((t) => e.find((e) => e.id === t)).filter((e) => !!e && !e.disabled).slice(0, 3);
|
|
103245
103247
|
}
|
|
103246
|
-
function
|
|
103248
|
+
function UXe(e) {
|
|
103247
103249
|
return e.initial ?? Array.from(e.title.trim())[0]?.toUpperCase() ?? "";
|
|
103248
103250
|
}
|
|
103249
103251
|
//#endregion
|
|
@@ -103254,12 +103256,12 @@ function Z5({ item: e, className: t, shape: n = "rounded-lg" }) {
|
|
|
103254
103256
|
"data-slot": "switcher-tile",
|
|
103255
103257
|
"data-tone": e.tone ?? "neutral",
|
|
103256
103258
|
className: i("inline-flex size-9 shrink-0 items-center justify-center bg-tone-container text-tone-text text-label-md-em ring-1 ring-inset ring-(--nxgt-tone-ring) [&_svg]:size-[1.125rem]", n, t),
|
|
103257
|
-
children: e.icon ??
|
|
103259
|
+
children: e.icon ?? UXe(e)
|
|
103258
103260
|
});
|
|
103259
103261
|
}
|
|
103260
103262
|
//#endregion
|
|
103261
103263
|
//#region lib/components/ui/selection/switcher/partials/switcher-menu.tsx
|
|
103262
|
-
function
|
|
103264
|
+
function WXe({ options: e, value: t, label: n, footer: r, name: i, linkComponent: a, open: o, onOpenChange: s, onSelect: c, wrap: l, trigger: u }) {
|
|
103263
103265
|
return /* @__PURE__ */ H(oi, {
|
|
103264
103266
|
open: o,
|
|
103265
103267
|
onOpenChange: s,
|
|
@@ -103316,8 +103318,8 @@ function UXe({ options: e, value: t, label: n, footer: r, name: i, linkComponent
|
|
|
103316
103318
|
}
|
|
103317
103319
|
//#endregion
|
|
103318
103320
|
//#region lib/components/ui/selection/switcher/use-switcher-list.ts
|
|
103319
|
-
function
|
|
103320
|
-
let s = I(), c = R(null), l = R(null), u = R(null), [d, f] = z(""), [p, m] = z(), h = L(() =>
|
|
103321
|
+
function GXe({ options: e, value: t, recent: n, linkMode: r, searchable: i, onSelect: a, autoFocus: o }) {
|
|
103322
|
+
let s = I(), c = R(null), l = R(null), u = R(null), [d, f] = z(""), [p, m] = z(), h = L(() => BXe(e, d), [e, d]), g = L(() => VXe(h), [h]), _ = d ? [] : n, v = L(() => [..._.map((e) => `r:${e.id}`), ...h.filter((e) => !e.disabled).map((e) => e.id)], [_, h]), y = d ? v[0] : v.find((e) => e === t) ?? v[0], b = p && v.includes(p) ? p : y, x = (e) => `${s}-o-${e.replace(/\W/g, "_")}`;
|
|
103321
103323
|
F(() => {
|
|
103322
103324
|
o && (i ? l.current : r ? c.current?.querySelector("[data-switcher-item]:not([data-disabled])") : u.current)?.focus({ preventScroll: !0 });
|
|
103323
103325
|
}, [
|
|
@@ -103369,7 +103371,7 @@ function WXe({ options: e, value: t, recent: n, linkMode: r, searchable: i, onSe
|
|
|
103369
103371
|
}
|
|
103370
103372
|
//#endregion
|
|
103371
103373
|
//#region lib/components/ui/selection/switcher/partials/switcher-row.tsx
|
|
103372
|
-
var
|
|
103374
|
+
var KXe = [
|
|
103373
103375
|
Yr,
|
|
103374
103376
|
"group/row flex w-full cursor-default items-center gap-3 text-start outline-none select-none",
|
|
103375
103377
|
"data-[active]:bg-primary/8 focus-visible:bg-primary/8",
|
|
@@ -103378,15 +103380,15 @@ var GXe = [
|
|
|
103378
103380
|
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
103379
103381
|
"forced-colors:data-[active]:outline-solid forced-colors:data-[active]:outline-2 forced-colors:data-[active]:-outline-offset-2 forced-colors:data-[active]:outline-[Highlight] forced-colors:data-[selected]:before:bg-[Highlight]",
|
|
103380
103382
|
"transition-colors duration-100 motion-reduce:transition-none"
|
|
103381
|
-
].join(" "),
|
|
103382
|
-
function
|
|
103383
|
+
].join(" "), qXe = "text-foreground no-underline hover:bg-primary/8 hover:no-underline focus:no-underline";
|
|
103384
|
+
function JXe({ item: e, id: t, selected: n, active: r, expressive: a, tile: o, href: s, Link: c, pw: l, onSelect: u, onActivate: d }) {
|
|
103383
103385
|
let f = {
|
|
103384
103386
|
"data-switcher-item": "",
|
|
103385
103387
|
"data-pw": l,
|
|
103386
103388
|
"data-selected": n ? "" : void 0,
|
|
103387
103389
|
"data-active": r ? "" : void 0,
|
|
103388
103390
|
"data-disabled": e.disabled ? "" : void 0
|
|
103389
|
-
}, p = i(
|
|
103391
|
+
}, p = i(KXe, o ? "min-h-11 flex-col justify-start gap-1.5 rounded-2xl px-1 py-2.5 text-center" : ["min-h-11 px-3 py-2", a ? "rounded-2xl" : "rounded-lg"]), m = o ? /* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V(Z5, {
|
|
103390
103392
|
item: e,
|
|
103391
103393
|
shape: "rounded-xl",
|
|
103392
103394
|
className: "size-10"
|
|
@@ -103432,7 +103434,7 @@ function qXe({ item: e, id: t, selected: n, active: r, expressive: a, tile: o, h
|
|
|
103432
103434
|
onClick: (t) => {
|
|
103433
103435
|
t.metaKey || t.ctrlKey || t.shiftKey || u(e);
|
|
103434
103436
|
},
|
|
103435
|
-
className: i(p,
|
|
103437
|
+
className: i(p, qXe),
|
|
103436
103438
|
children: m
|
|
103437
103439
|
}) : /* @__PURE__ */ V("div", {
|
|
103438
103440
|
...f,
|
|
@@ -103450,9 +103452,9 @@ function qXe({ item: e, id: t, selected: n, active: r, expressive: a, tile: o, h
|
|
|
103450
103452
|
}
|
|
103451
103453
|
//#endregion
|
|
103452
103454
|
//#region lib/components/ui/selection/switcher/partials/switcher-groups.tsx
|
|
103453
|
-
var
|
|
103455
|
+
var YXe = (e) => /* @__PURE__ */ V("a", { ...e });
|
|
103454
103456
|
function Q5({ state: e, panel: t }) {
|
|
103455
|
-
let { t: n } = k(), { value: r, expressive: a, linkMode: o, hrefOf: s, onSelect: c } = t, l = o ? t.linkComponent ??
|
|
103457
|
+
let { t: n } = k(), { value: r, expressive: a, linkMode: o, hrefOf: s, onSelect: c } = t, l = o ? t.linkComponent ?? YXe : void 0, u = o ? "ul" : "div", { uid: d, groups: f, recents: p, active: m, setActiveKey: h, optionId: g } = e, _ = (e, n, i) => /* @__PURE__ */ V(JXe, {
|
|
103456
103458
|
item: e,
|
|
103457
103459
|
id: g(n),
|
|
103458
103460
|
tile: i,
|
|
@@ -103499,7 +103501,7 @@ function Q5({ state: e, panel: t }) {
|
|
|
103499
103501
|
}
|
|
103500
103502
|
//#endregion
|
|
103501
103503
|
//#region lib/components/ui/selection/switcher/partials/switcher-search.tsx
|
|
103502
|
-
function
|
|
103504
|
+
function XXe({ inputRef: e, value: t, onChange: n, onKeyDown: r, listId: a, activeId: o, expressive: s }) {
|
|
103503
103505
|
let { t: c } = k(), l = a !== void 0;
|
|
103504
103506
|
return /* @__PURE__ */ V("div", {
|
|
103505
103507
|
className: i("shrink-0", s ? "p-3 pb-2" : "p-2 pb-1"),
|
|
@@ -103548,7 +103550,7 @@ function YXe({ inputRef: e, value: t, onChange: n, onKeyDown: r, listId: a, acti
|
|
|
103548
103550
|
//#endregion
|
|
103549
103551
|
//#region lib/components/ui/selection/switcher/partials/switcher-list.tsx
|
|
103550
103552
|
function $5(e) {
|
|
103551
|
-
let { t } = k(), { searchable: n, linkMode: r, expressive: a, footer: o, emptyLabel: s } = e, c =
|
|
103553
|
+
let { t } = k(), { searchable: n, linkMode: r, expressive: a, footer: o, emptyLabel: s } = e, c = GXe(e), { uid: l, query: u, filtered: d, active: f, optionId: p } = c, m = `${l}-list`, { labelId: h } = e, g = t("material.switcher.results", "{count, plural, =0 {No results} one {# result} other {# results}}", { count: d.length }), _ = "min-h-0 flex-1 overflow-y-auto overscroll-contain py-1 empty:hidden";
|
|
103552
103554
|
return /* @__PURE__ */ H("div", {
|
|
103553
103555
|
ref: c.rootRef,
|
|
103554
103556
|
"data-slot": "switcher-list",
|
|
@@ -103556,7 +103558,7 @@ function $5(e) {
|
|
|
103556
103558
|
className: i("flex min-h-0 flex-col", e.className),
|
|
103557
103559
|
onKeyDown: r ? c.onKeyDown : void 0,
|
|
103558
103560
|
children: [
|
|
103559
|
-
n && /* @__PURE__ */ V(
|
|
103561
|
+
n && /* @__PURE__ */ V(XXe, {
|
|
103560
103562
|
inputRef: c.inputRef,
|
|
103561
103563
|
value: u,
|
|
103562
103564
|
onChange: c.setQuery,
|
|
@@ -103602,7 +103604,7 @@ function $5(e) {
|
|
|
103602
103604
|
}
|
|
103603
103605
|
//#endregion
|
|
103604
103606
|
//#region lib/components/ui/selection/switcher/partials/switcher-popover.tsx
|
|
103605
|
-
function
|
|
103607
|
+
function ZXe({ open: e, onOpenChange: t, panel: n, wrap: r, trigger: a, onCloseAutoFocus: o }) {
|
|
103606
103608
|
let { expressive: s, label: c } = n;
|
|
103607
103609
|
return /* @__PURE__ */ H(ji, {
|
|
103608
103610
|
open: e,
|
|
@@ -103627,7 +103629,7 @@ function XXe({ open: e, onOpenChange: t, panel: n, wrap: r, trigger: a, onCloseA
|
|
|
103627
103629
|
}
|
|
103628
103630
|
//#endregion
|
|
103629
103631
|
//#region lib/components/ui/selection/switcher/partials/switcher-sheet.tsx
|
|
103630
|
-
function
|
|
103632
|
+
function QXe({ open: e, onOpenChange: t, panel: n, wrap: r, trigger: i, onCloseAutoFocus: a }) {
|
|
103631
103633
|
let { t: o } = k(), { expressive: s, label: c } = n;
|
|
103632
103634
|
return /* @__PURE__ */ H(IE, {
|
|
103633
103635
|
open: e,
|
|
@@ -103668,7 +103670,7 @@ function ZXe({ open: e, onOpenChange: t, panel: n, wrap: r, trigger: i, onCloseA
|
|
|
103668
103670
|
}
|
|
103669
103671
|
//#endregion
|
|
103670
103672
|
//#region lib/components/ui/selection/switcher/partials/switcher-tooltip.tsx
|
|
103671
|
-
function
|
|
103673
|
+
function $Xe({ selected: e, clipped: t, panelOpen: n, children: r }) {
|
|
103672
103674
|
let [i, a] = z(!1);
|
|
103673
103675
|
return /* @__PURE__ */ V(Hn, {
|
|
103674
103676
|
content: /* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("strong", {
|
|
@@ -103683,7 +103685,7 @@ function QXe({ selected: e, clipped: t, panelOpen: n, children: r }) {
|
|
|
103683
103685
|
}
|
|
103684
103686
|
//#endregion
|
|
103685
103687
|
//#region lib/components/ui/selection/switcher/partials/switcher-trigger.tsx
|
|
103686
|
-
function
|
|
103688
|
+
function eZe({ selected: e, label: t, expressive: n, titleRef: r, clipped: a, subtitleRef: o, subtitleClipped: s, className: c, name: l, ...u }) {
|
|
103687
103689
|
return /* @__PURE__ */ H("button", {
|
|
103688
103690
|
type: "button",
|
|
103689
103691
|
name: l,
|
|
@@ -103727,16 +103729,16 @@ function $Xe({ selected: e, label: t, expressive: n, titleRef: r, clipped: a, su
|
|
|
103727
103729
|
//#endregion
|
|
103728
103730
|
//#region lib/components/ui/selection/switcher/switcher.tsx
|
|
103729
103731
|
var e7 = 8;
|
|
103730
|
-
function
|
|
103732
|
+
function tZe({ options: e, label: t, value: n, onValueChange: r, variant: i = "default", searchable: a, recent: o, getHref: s, linkComponent: c, footer: l, emptyLabel: u, sheet: d, open: f, onOpenChange: p, ...m }) {
|
|
103731
103733
|
let [h, g] = z(!1), _ = f ?? h, v = (e) => {
|
|
103732
103734
|
e && (y.current = !1), f === void 0 && g(e), p?.(e);
|
|
103733
|
-
}, y = R(!1), b = Do(), x = I(), S = R(null), C = R(null), w = e.find((e) => e.id === n), T = i === "expressive", E = `${d ?? b}${s !== void 0}${i}${a ?? e.length >= e7}`, D = Y5(S, w?.title, E), O = Y5(C, w?.subtitle, E) && !T, ee = D || O, te = a ?? (T || e.length >= e7), ne = s !== void 0, re = (e) => s?.(e) ?? e.href, ie = d ?? b, ae = L(() => T ?
|
|
103735
|
+
}, y = R(!1), b = Do(), x = I(), S = R(null), C = R(null), w = e.find((e) => e.id === n), T = i === "expressive", E = `${d ?? b}${s !== void 0}${i}${a ?? e.length >= e7}`, D = Y5(S, w?.title, E), O = Y5(C, w?.subtitle, E) && !T, ee = D || O, te = a ?? (T || e.length >= e7), ne = s !== void 0, re = (e) => s?.(e) ?? e.href, ie = d ?? b, ae = L(() => T ? HXe(e, o) : [], [
|
|
103734
103736
|
T,
|
|
103735
103737
|
e,
|
|
103736
103738
|
o
|
|
103737
103739
|
]), oe = (e) => {
|
|
103738
103740
|
e.disabled || (ne && (y.current = !0), r?.(e.id), v(!1));
|
|
103739
|
-
}, se = /* @__PURE__ */ V(
|
|
103741
|
+
}, se = /* @__PURE__ */ V(eZe, {
|
|
103740
103742
|
...m,
|
|
103741
103743
|
selected: w,
|
|
103742
103744
|
label: t,
|
|
@@ -103745,7 +103747,7 @@ function eZe({ options: e, label: t, value: n, onValueChange: r, variant: i = "d
|
|
|
103745
103747
|
clipped: D,
|
|
103746
103748
|
subtitleRef: C,
|
|
103747
103749
|
subtitleClipped: O
|
|
103748
|
-
}), ce = (e) => /* @__PURE__ */ V(
|
|
103750
|
+
}), ce = (e) => /* @__PURE__ */ V($Xe, {
|
|
103749
103751
|
selected: w,
|
|
103750
103752
|
clipped: ee,
|
|
103751
103753
|
panelOpen: _,
|
|
@@ -103782,11 +103784,11 @@ function eZe({ options: e, label: t, value: n, onValueChange: r, variant: i = "d
|
|
|
103782
103784
|
id: x,
|
|
103783
103785
|
hidden: !0,
|
|
103784
103786
|
children: t
|
|
103785
|
-
}), ie ? /* @__PURE__ */ V(
|
|
103787
|
+
}), ie ? /* @__PURE__ */ V(QXe, {
|
|
103786
103788
|
...ue,
|
|
103787
103789
|
...de,
|
|
103788
103790
|
panel: le
|
|
103789
|
-
}) : !te && !ne && !T ? /* @__PURE__ */ V(
|
|
103791
|
+
}) : !te && !ne && !T ? /* @__PURE__ */ V(WXe, {
|
|
103790
103792
|
...ue,
|
|
103791
103793
|
options: e,
|
|
103792
103794
|
value: n,
|
|
@@ -103795,7 +103797,7 @@ function eZe({ options: e, label: t, value: n, onValueChange: r, variant: i = "d
|
|
|
103795
103797
|
name: m.name,
|
|
103796
103798
|
linkComponent: c,
|
|
103797
103799
|
onSelect: oe
|
|
103798
|
-
}) : /* @__PURE__ */ V(
|
|
103800
|
+
}) : /* @__PURE__ */ V(ZXe, {
|
|
103799
103801
|
...ue,
|
|
103800
103802
|
...de,
|
|
103801
103803
|
panel: le
|
|
@@ -103803,13 +103805,13 @@ function eZe({ options: e, label: t, value: n, onValueChange: r, variant: i = "d
|
|
|
103803
103805
|
}
|
|
103804
103806
|
//#endregion
|
|
103805
103807
|
//#region lib/components/ui/selection/transfer-list/transfer-list-context.ts
|
|
103806
|
-
var t7 = mc(null),
|
|
103808
|
+
var t7 = mc(null), nZe = t7.Provider;
|
|
103807
103809
|
function n7() {
|
|
103808
103810
|
let e = xc(t7);
|
|
103809
103811
|
if (!e) throw Error("TransferList parts must be rendered inside TransferList");
|
|
103810
103812
|
return e;
|
|
103811
103813
|
}
|
|
103812
|
-
function
|
|
103814
|
+
function rZe(e, t) {
|
|
103813
103815
|
return `${e}-${t}`;
|
|
103814
103816
|
}
|
|
103815
103817
|
function r7(e, t, n) {
|
|
@@ -103817,7 +103819,7 @@ function r7(e, t, n) {
|
|
|
103817
103819
|
}
|
|
103818
103820
|
//#endregion
|
|
103819
103821
|
//#region lib/components/ui/selection/transfer-list/partials/transfer-list-announcer.tsx
|
|
103820
|
-
function
|
|
103822
|
+
function iZe() {
|
|
103821
103823
|
let { t: e } = k(), { list: t, labels: n } = n7(), r = t.chrome.announcement;
|
|
103822
103824
|
return /* @__PURE__ */ V("div", {
|
|
103823
103825
|
role: "status",
|
|
@@ -103831,7 +103833,7 @@ function rZe() {
|
|
|
103831
103833
|
}
|
|
103832
103834
|
//#endregion
|
|
103833
103835
|
//#region lib/components/ui/selection/transfer-list/partials/transfer-list-actions.tsx
|
|
103834
|
-
var
|
|
103836
|
+
var aZe = "rotate-90 transition-transform @2xl/transfer:rotate-0";
|
|
103835
103837
|
function i7({ icon: e, label: t, enabled: n, count: r, primary: i, onClick: a }) {
|
|
103836
103838
|
return /* @__PURE__ */ H("span", {
|
|
103837
103839
|
className: "relative inline-flex",
|
|
@@ -103842,7 +103844,7 @@ function i7({ icon: e, label: t, enabled: n, count: r, primary: i, onClick: a })
|
|
|
103842
103844
|
disabled: !n,
|
|
103843
103845
|
onClick: a,
|
|
103844
103846
|
className: "size-9 disabled:opacity-35",
|
|
103845
|
-
children: /* @__PURE__ */ V(e, { className:
|
|
103847
|
+
children: /* @__PURE__ */ V(e, { className: aZe })
|
|
103846
103848
|
}), n && r != null && r > 0 && /* @__PURE__ */ V("span", {
|
|
103847
103849
|
"aria-hidden": !0,
|
|
103848
103850
|
className: "pointer-events-none absolute -top-1 -right-1 flex h-4 min-w-4 center rounded-full bg-foreground px-1 font-semibold text-[10px] text-background tabular-nums shadow-sm",
|
|
@@ -103850,7 +103852,7 @@ function i7({ icon: e, label: t, enabled: n, count: r, primary: i, onClick: a })
|
|
|
103850
103852
|
})]
|
|
103851
103853
|
});
|
|
103852
103854
|
}
|
|
103853
|
-
function
|
|
103855
|
+
function oZe() {
|
|
103854
103856
|
let { list: e, labels: t, options: n } = n7(), r = !e.disabled, a = e.remaining > 0;
|
|
103855
103857
|
return /* @__PURE__ */ V("div", {
|
|
103856
103858
|
className: "flex items-center justify-center",
|
|
@@ -103896,9 +103898,9 @@ function aZe() {
|
|
|
103896
103898
|
}
|
|
103897
103899
|
//#endregion
|
|
103898
103900
|
//#region lib/components/ui/selection/transfer-list/transfer-list.dnd.ts
|
|
103899
|
-
var
|
|
103900
|
-
function
|
|
103901
|
-
return e === "available" ?
|
|
103901
|
+
var sZe = "pane:available", cZe = "pane:selected";
|
|
103902
|
+
function lZe(e) {
|
|
103903
|
+
return e === "available" ? sZe : cZe;
|
|
103902
103904
|
}
|
|
103903
103905
|
function a7(e, t, n) {
|
|
103904
103906
|
return e === "pane:available" ? { pane: "available" } : e === "pane:selected" ? { pane: "selected" } : t.includes(e) ? {
|
|
@@ -103911,7 +103913,7 @@ function o7(e, t) {
|
|
|
103911
103913
|
}
|
|
103912
103914
|
//#endregion
|
|
103913
103915
|
//#region lib/components/ui/selection/transfer-list/transfer-list.keyboard.ts
|
|
103914
|
-
function
|
|
103916
|
+
function uZe(e, t) {
|
|
103915
103917
|
let n = t.visibleValues, r = t.focusedValue ? n.indexOf(t.focusedValue) : -1, i = e.ctrlKey || e.metaKey, a = !!t.focusedValue && t.transferable.includes(t.focusedValue ?? "");
|
|
103916
103918
|
if (i && (e.key === "ArrowUp" || e.key === "ArrowDown")) return t.pane !== "selected" || !a ? null : (e.preventDefault(), {
|
|
103917
103919
|
type: "reorder",
|
|
@@ -103961,7 +103963,7 @@ function lZe(e, t) {
|
|
|
103961
103963
|
values: [t.focusedValue]
|
|
103962
103964
|
}) : i && e.key.toLowerCase() === "a" ? (e.preventDefault(), { type: "select-all" }) : null;
|
|
103963
103965
|
}
|
|
103964
|
-
function
|
|
103966
|
+
function dZe(e, t, n) {
|
|
103965
103967
|
if (e.type === "focus") {
|
|
103966
103968
|
n.chromeActions.setFocused({
|
|
103967
103969
|
pane: e.pane ?? t,
|
|
@@ -103989,7 +103991,7 @@ function uZe(e, t, n) {
|
|
|
103989
103991
|
}
|
|
103990
103992
|
//#endregion
|
|
103991
103993
|
//#region lib/components/ui/selection/transfer-list/use-drop-pane.ts
|
|
103992
|
-
function
|
|
103994
|
+
function fZe(e, t) {
|
|
103993
103995
|
let { active: n, over: r } = Lte();
|
|
103994
103996
|
if (!n || !r) return null;
|
|
103995
103997
|
let i = a7(String(r.id), e, t);
|
|
@@ -103999,7 +104001,7 @@ function dZe(e, t) {
|
|
|
103999
104001
|
}
|
|
104000
104002
|
//#endregion
|
|
104001
104003
|
//#region lib/components/ui/selection/transfer-list/partials/transfer-list-empty.tsx
|
|
104002
|
-
function
|
|
104004
|
+
function pZe({ pane: e, filtered: t, title: n, hint: r }) {
|
|
104003
104005
|
let a = t ? Xne : e === "available" ? es : kne;
|
|
104004
104006
|
return /* @__PURE__ */ H("div", {
|
|
104005
104007
|
"data-slot": "transfer-list-empty",
|
|
@@ -104121,7 +104123,7 @@ function c7({ id: e, item: t, pane: n, checked: r, focused: a, inert: o, canMove
|
|
|
104121
104123
|
}
|
|
104122
104124
|
//#endregion
|
|
104123
104125
|
//#region lib/components/ui/selection/transfer-list/partials/transfer-list-item.tsx
|
|
104124
|
-
function
|
|
104126
|
+
function mZe(e) {
|
|
104125
104127
|
let { list: t, options: n } = n7(), r = t.disabled || !!e.item.disabled || !!e.item.locked;
|
|
104126
104128
|
return n.draggable && !r ? /* @__PURE__ */ V(Fo, {
|
|
104127
104129
|
id: e.item.value,
|
|
@@ -104139,14 +104141,14 @@ function pZe(e) {
|
|
|
104139
104141
|
//#region lib/components/ui/selection/transfer-list/partials/transfer-list-pane-body.tsx
|
|
104140
104142
|
function l7({ pane: e }) {
|
|
104141
104143
|
let { list: t, labels: n, options: r } = n7(), i = e === "available", a = i ? t.availableVisible : t.selectedVisible, o = i ? t.availableChecked : t.selectedChecked, s = i ? t.chrome.availableQuery : t.chrome.selectedQuery, c = t.chrome.focusedPane === e ? t.chrome.focusedValue : null;
|
|
104142
|
-
if (a.length === 0) return /* @__PURE__ */ V(
|
|
104144
|
+
if (a.length === 0) return /* @__PURE__ */ V(pZe, {
|
|
104143
104145
|
pane: e,
|
|
104144
104146
|
filtered: !!s,
|
|
104145
104147
|
title: s ? n.emptyFilter : i ? n.emptyAvailable : n.emptySelected,
|
|
104146
104148
|
hint: s ? n.emptyFilterHint : i ? n.emptyAvailableHint : n.emptySelectedHint
|
|
104147
104149
|
});
|
|
104148
104150
|
let l = a.map((e) => e.value);
|
|
104149
|
-
return
|
|
104151
|
+
return MXe(a).map(({ group: n, items: i }) => /* @__PURE__ */ H("div", {
|
|
104150
104152
|
role: "group",
|
|
104151
104153
|
"aria-label": n ?? void 0,
|
|
104152
104154
|
className: "flex flex-col gap-0.5",
|
|
@@ -104156,7 +104158,7 @@ function l7({ pane: e }) {
|
|
|
104156
104158
|
children: [n, /* @__PURE__ */ V("span", { className: "h-px flex-1 bg-border" })]
|
|
104157
104159
|
}), i.map((n) => {
|
|
104158
104160
|
let i = l.indexOf(n.value);
|
|
104159
|
-
return /* @__PURE__ */ V(
|
|
104161
|
+
return /* @__PURE__ */ V(mZe, {
|
|
104160
104162
|
id: r7(r.uid, e, i),
|
|
104161
104163
|
item: n,
|
|
104162
104164
|
pane: e,
|
|
@@ -104179,10 +104181,10 @@ function l7({ pane: e }) {
|
|
|
104179
104181
|
//#endregion
|
|
104180
104182
|
//#region lib/components/ui/selection/transfer-list/partials/transfer-list-pane.tsx
|
|
104181
104183
|
function u7({ pane: e }) {
|
|
104182
|
-
let { list: t, labels: n, options: r } = n7(), a = e === "available", o = a ? t.availableVisible : t.selectedVisible, s = a ? t.selectedVisible : t.availableVisible, c = a ? t.availableTransferable : t.selectedTransferable, l = a ? t.availableChecked : t.selectedChecked, u = t.chrome.focusedPane === e ? t.chrome.focusedValue : null, d = u ? o.findIndex((e) => e.value === u) : -1, f =
|
|
104183
|
-
id:
|
|
104184
|
+
let { list: t, labels: n, options: r } = n7(), a = e === "available", o = a ? t.availableVisible : t.selectedVisible, s = a ? t.selectedVisible : t.availableVisible, c = a ? t.availableTransferable : t.selectedTransferable, l = a ? t.availableChecked : t.selectedChecked, u = t.chrome.focusedPane === e ? t.chrome.focusedValue : null, d = u ? o.findIndex((e) => e.value === u) : -1, f = rZe(r.uid, e), p = r.draggable && !t.disabled, m = Rte({
|
|
104185
|
+
id: lZe(e),
|
|
104184
104186
|
disabled: !p
|
|
104185
|
-
}), h =
|
|
104187
|
+
}), h = fZe(t.selectedValues, t.available.map((e) => e.value)), g = /* @__PURE__ */ V("div", {
|
|
104186
104188
|
role: "listbox",
|
|
104187
104189
|
"aria-labelledby": r.labelId ? `${r.labelId} ${f}` : f,
|
|
104188
104190
|
"aria-multiselectable": !0,
|
|
@@ -104191,14 +104193,14 @@ function u7({ pane: e }) {
|
|
|
104191
104193
|
tabIndex: t.disabled ? -1 : 0,
|
|
104192
104194
|
className: i("group/listbox flex min-h-full flex-col gap-0.5 p-1.5 outline-none", "rounded-b-xl focus-visible:ring-2 focus-visible:ring-ring/40 focus-visible:ring-inset"),
|
|
104193
104195
|
onKeyDown: (n) => {
|
|
104194
|
-
let r =
|
|
104196
|
+
let r = uZe(n, {
|
|
104195
104197
|
pane: e,
|
|
104196
104198
|
focusedValue: u,
|
|
104197
104199
|
visibleValues: o.map((e) => e.value),
|
|
104198
104200
|
otherPaneValues: s.map((e) => e.value),
|
|
104199
104201
|
transferable: c
|
|
104200
104202
|
});
|
|
104201
|
-
r &&
|
|
104203
|
+
r && dZe(r, e, t);
|
|
104202
104204
|
},
|
|
104203
104205
|
children: p ? /* @__PURE__ */ V(zo, {
|
|
104204
104206
|
items: o.map((e) => e.value),
|
|
@@ -104230,19 +104232,19 @@ function u7({ pane: e }) {
|
|
|
104230
104232
|
}
|
|
104231
104233
|
//#endregion
|
|
104232
104234
|
//#region lib/components/ui/selection/transfer-list/partials/transfer-list-board.tsx
|
|
104233
|
-
function
|
|
104235
|
+
function hZe() {
|
|
104234
104236
|
return /* @__PURE__ */ H("div", {
|
|
104235
104237
|
className: "flex flex-col gap-3 @2xl/transfer:flex-row @2xl/transfer:items-stretch",
|
|
104236
104238
|
children: [
|
|
104237
104239
|
/* @__PURE__ */ V(u7, { pane: "available" }),
|
|
104238
|
-
/* @__PURE__ */ V(
|
|
104240
|
+
/* @__PURE__ */ V(oZe, {}),
|
|
104239
104241
|
/* @__PURE__ */ V(u7, { pane: "selected" })
|
|
104240
104242
|
]
|
|
104241
104243
|
});
|
|
104242
104244
|
}
|
|
104243
104245
|
//#endregion
|
|
104244
104246
|
//#region lib/components/ui/selection/transfer-list/partials/transfer-list-dnd.tsx
|
|
104245
|
-
function
|
|
104247
|
+
function gZe({ items: e, selectedValues: t, availableValues: n, availableChecked: r, selectedChecked: i, enabled: a, density: o, onDrop: s, children: c }) {
|
|
104246
104248
|
let l = Xi("(prefers-reduced-motion: reduce)", !1), u = (e) => t.includes(e) ? i : r;
|
|
104247
104249
|
return /* @__PURE__ */ H(Oo, {
|
|
104248
104250
|
disabled: !a,
|
|
@@ -104327,10 +104329,10 @@ var d7 = ju({
|
|
|
104327
104329
|
d7.actions;
|
|
104328
104330
|
//#endregion
|
|
104329
104331
|
//#region lib/components/ui/selection/transfer-list/use-transfer-list-actions.ts
|
|
104330
|
-
function
|
|
104332
|
+
function _Ze() {
|
|
104331
104333
|
return ka(d7);
|
|
104332
104334
|
}
|
|
104333
|
-
function
|
|
104335
|
+
function vZe({ items: e, selectedValues: t, setSelectedValues: n, chrome: r, chromeActions: i, max: a, disabled: o, visible: s, transferable: c, checked: l }) {
|
|
104334
104336
|
let u = P((e, r) => {
|
|
104335
104337
|
let a = Math.abs(e.length - t.length);
|
|
104336
104338
|
n(e), i.clearPaneChecked("available"), i.clearPaneChecked("selected"), a > 0 && i.announceMove({
|
|
@@ -104344,7 +104346,7 @@ function _Ze({ items: e, selectedValues: t, setSelectedValues: n, chrome: r, chr
|
|
|
104344
104346
|
]);
|
|
104345
104347
|
return {
|
|
104346
104348
|
moveValues: P((e, n) => {
|
|
104347
|
-
o || n.length === 0 || (e === "available" ? u(
|
|
104349
|
+
o || n.length === 0 || (e === "available" ? u(NXe(t, n, a), "selected") : u(U5(t, n), "available"));
|
|
104348
104350
|
}, [
|
|
104349
104351
|
u,
|
|
104350
104352
|
o,
|
|
@@ -104362,7 +104364,7 @@ function _Ze({ items: e, selectedValues: t, setSelectedValues: n, chrome: r, chr
|
|
|
104362
104364
|
}, [i, o]),
|
|
104363
104365
|
extendChecked: P((e, t) => {
|
|
104364
104366
|
if (o) return;
|
|
104365
|
-
let n =
|
|
104367
|
+
let n = FXe(s[e].map((e) => e.value), (r.focusedPane === e ? r.focusedValue : null) ?? t, t);
|
|
104366
104368
|
i.addChecked({
|
|
104367
104369
|
pane: e,
|
|
104368
104370
|
values: n.filter((t) => c[e].includes(t))
|
|
@@ -104401,7 +104403,7 @@ function _Ze({ items: e, selectedValues: t, setSelectedValues: n, chrome: r, chr
|
|
|
104401
104403
|
let n = e.find((e) => e.value === t);
|
|
104402
104404
|
return n ? [n] : [];
|
|
104403
104405
|
}));
|
|
104404
|
-
i.length !== 0 && u(
|
|
104406
|
+
i.length !== 0 && u(PXe(t, i, r, a), r.pane);
|
|
104405
104407
|
}, [
|
|
104406
104408
|
u,
|
|
104407
104409
|
o,
|
|
@@ -104413,10 +104415,10 @@ function _Ze({ items: e, selectedValues: t, setSelectedValues: n, chrome: r, chr
|
|
|
104413
104415
|
}
|
|
104414
104416
|
//#endregion
|
|
104415
104417
|
//#region lib/components/ui/selection/transfer-list/use-transfer-list.ts
|
|
104416
|
-
function
|
|
104417
|
-
let [o, s] = z(n), c = t ?? o, [l, u] =
|
|
104418
|
+
function yZe({ items: e, value: t, defaultValue: n = [], onValueChange: r, max: i, disabled: a = !1 }) {
|
|
104419
|
+
let [o, s] = z(n), c = t ?? o, [l, u] = _Ze(), d = P((e) => {
|
|
104418
104420
|
t === void 0 && s(e), r?.(e);
|
|
104419
|
-
}, [r, t]), f = L(() =>
|
|
104421
|
+
}, [r, t]), f = L(() => AXe(e, c), [e, c]), p = L(() => z5(f.available, l.availableQuery), [l.availableQuery, f.available]), m = L(() => z5(f.selected, l.selectedQuery), [l.selectedQuery, f.selected]), h = L(() => B5(p), [p]), g = L(() => B5(m), [m]), _ = V5(l.availableChecked, h), v = V5(l.selectedChecked, g), y = vZe({
|
|
104420
104422
|
items: e,
|
|
104421
104423
|
selectedValues: c,
|
|
104422
104424
|
setSelectedValues: d,
|
|
@@ -104459,7 +104461,7 @@ function vZe({ items: e, value: t, defaultValue: n = [], onValueChange: r, max:
|
|
|
104459
104461
|
}
|
|
104460
104462
|
//#endregion
|
|
104461
104463
|
//#region lib/components/ui/selection/transfer-list/use-transfer-list-labels.ts
|
|
104462
|
-
function
|
|
104464
|
+
function bZe(e, t) {
|
|
104463
104465
|
let { t: n } = k(), r = (t) => {
|
|
104464
104466
|
let r = t === "available" ? e.availableChecked : e.selectedChecked, i = t === "available" ? e.availableVisible : e.selectedVisible;
|
|
104465
104467
|
return r.length > 0 ? n("material.transfer-list.count", "{checked}/{total}", {
|
|
@@ -104492,17 +104494,17 @@ function yZe(e, t) {
|
|
|
104492
104494
|
}
|
|
104493
104495
|
//#endregion
|
|
104494
104496
|
//#region lib/components/ui/selection/transfer-list/transfer-list.tsx
|
|
104495
|
-
var
|
|
104496
|
-
function f7({ items: e, value: t, defaultValue: n, onValueChange: r, titles: a, searchable: o = !0, showSelectAll: s = !0, showTransferAll: c = !0, reorderable: l = !1, draggable: u = !0, max: d, disabled: f = !1, height: p =
|
|
104497
|
-
let S = mi(), { t: C } = k(), w = I(), T =
|
|
104497
|
+
var xZe = 320;
|
|
104498
|
+
function f7({ items: e, value: t, defaultValue: n, onValueChange: r, titles: a, searchable: o = !0, showSelectAll: s = !0, showTransferAll: c = !0, reorderable: l = !1, draggable: u = !0, max: d, disabled: f = !1, height: p = xZe, density: m = "comfortable", label: h, helperText: g, error: _, required: v, name: y, className: b, renderItem: x }) {
|
|
104499
|
+
let S = mi(), { t: C } = k(), w = I(), T = yZe({
|
|
104498
104500
|
items: e,
|
|
104499
104501
|
value: t,
|
|
104500
104502
|
defaultValue: n,
|
|
104501
104503
|
onValueChange: r,
|
|
104502
104504
|
max: d,
|
|
104503
104505
|
disabled: f
|
|
104504
|
-
}), E =
|
|
104505
|
-
return /* @__PURE__ */ V(
|
|
104506
|
+
}), E = bZe(T, a), D = h ? `${w}-label` : void 0;
|
|
104507
|
+
return /* @__PURE__ */ V(nZe, {
|
|
104506
104508
|
value: {
|
|
104507
104509
|
list: T,
|
|
104508
104510
|
labels: E,
|
|
@@ -104531,7 +104533,7 @@ function f7({ items: e, value: t, defaultValue: n, onValueChange: r, titles: a,
|
|
|
104531
104533
|
withAsterisk: v,
|
|
104532
104534
|
children: h
|
|
104533
104535
|
}),
|
|
104534
|
-
/* @__PURE__ */ V(
|
|
104536
|
+
/* @__PURE__ */ V(gZe, {
|
|
104535
104537
|
items: e,
|
|
104536
104538
|
selectedValues: T.selectedValues,
|
|
104537
104539
|
availableValues: T.available.map((e) => e.value),
|
|
@@ -104540,9 +104542,9 @@ function f7({ items: e, value: t, defaultValue: n, onValueChange: r, titles: a,
|
|
|
104540
104542
|
enabled: u && !f,
|
|
104541
104543
|
density: m,
|
|
104542
104544
|
onDrop: T.dropValues,
|
|
104543
|
-
children: /* @__PURE__ */ V(
|
|
104545
|
+
children: /* @__PURE__ */ V(hZe, {})
|
|
104544
104546
|
}),
|
|
104545
|
-
/* @__PURE__ */ V(
|
|
104547
|
+
/* @__PURE__ */ V(iZe, {}),
|
|
104546
104548
|
d != null && /* @__PURE__ */ V(fi, { children: C("material.transfer-list.max", "Maximum {max} selected", { max: d }) }),
|
|
104547
104549
|
g && /* @__PURE__ */ V(fi, {
|
|
104548
104550
|
error: _,
|
|
@@ -104554,7 +104556,7 @@ function f7({ items: e, value: t, defaultValue: n, onValueChange: r, titles: a,
|
|
|
104554
104556
|
}
|
|
104555
104557
|
//#endregion
|
|
104556
104558
|
//#region lib/components/ui/selection/transfer-list/transfer-list-form-field.tsx
|
|
104557
|
-
function
|
|
104559
|
+
function SZe({ control: e, name: t, ...n }) {
|
|
104558
104560
|
return /* @__PURE__ */ V(ua, {
|
|
104559
104561
|
control: e,
|
|
104560
104562
|
name: t,
|
|
@@ -104575,7 +104577,7 @@ function xZe({ control: e, name: t, ...n }) {
|
|
|
104575
104577
|
}
|
|
104576
104578
|
//#endregion
|
|
104577
104579
|
//#region lib/components/ui/dates/picker-trigger/picker-trigger-a11y.ts
|
|
104578
|
-
function
|
|
104580
|
+
function CZe({ labelId: e, label: t, placeholder: n, required: r, error: i, triggerId: a, helperId: o, "aria-label": s, "aria-labelledby": c, "aria-describedby": l }) {
|
|
104579
104581
|
let u = !!(s || c);
|
|
104580
104582
|
return {
|
|
104581
104583
|
id: a,
|
|
@@ -104592,7 +104594,7 @@ function SZe({ labelId: e, label: t, placeholder: n, required: r, error: i, trig
|
|
|
104592
104594
|
function p7(e) {
|
|
104593
104595
|
return Bo(e.label).replace(/\s+/g, " ").trim();
|
|
104594
104596
|
}
|
|
104595
|
-
function
|
|
104597
|
+
function wZe(e, t) {
|
|
104596
104598
|
let n = g7(t.trim());
|
|
104597
104599
|
if (!n) return {
|
|
104598
104600
|
nodes: e,
|
|
@@ -104620,7 +104622,7 @@ function m7(e, t) {
|
|
|
104620
104622
|
};
|
|
104621
104623
|
return i(e, []), [...r];
|
|
104622
104624
|
}
|
|
104623
|
-
function
|
|
104625
|
+
function TZe(e, t) {
|
|
104624
104626
|
let n = (e, r) => {
|
|
104625
104627
|
for (let i of e) {
|
|
104626
104628
|
if (i.id === t) return r;
|
|
@@ -104631,27 +104633,27 @@ function wZe(e, t) {
|
|
|
104631
104633
|
};
|
|
104632
104634
|
return n(e, []) ?? [];
|
|
104633
104635
|
}
|
|
104634
|
-
function
|
|
104636
|
+
function EZe(e, t) {
|
|
104635
104637
|
let n = /* @__PURE__ */ new Map(), r = (e) => {
|
|
104636
104638
|
for (let t of e) n.set(t.id, t), t.children && r(t.children);
|
|
104637
104639
|
};
|
|
104638
104640
|
return r(e), t.flatMap((e) => n.get(e) ?? []);
|
|
104639
104641
|
}
|
|
104640
|
-
function
|
|
104642
|
+
function DZe(e) {
|
|
104641
104643
|
return Array.isArray(e) ? e : e ? [e] : [];
|
|
104642
104644
|
}
|
|
104643
104645
|
function h7(e) {
|
|
104644
104646
|
return e?.querySelector("[data-slot=\"tree-item\"][tabindex=\"0\"]") ?? e?.querySelector("[data-slot=\"tree-item\"]") ?? null;
|
|
104645
104647
|
}
|
|
104646
|
-
function
|
|
104648
|
+
function OZe() {
|
|
104647
104649
|
let e = null;
|
|
104648
104650
|
return (t, n) => ((e?.nodes !== t || e.query !== n) && (e = {
|
|
104649
104651
|
nodes: t,
|
|
104650
104652
|
query: n,
|
|
104651
|
-
result:
|
|
104653
|
+
result: wZe(t, n)
|
|
104652
104654
|
}), e.result);
|
|
104653
104655
|
}
|
|
104654
|
-
function
|
|
104656
|
+
function kZe(e, t) {
|
|
104655
104657
|
if (!e) return;
|
|
104656
104658
|
let n = e.querySelectorAll("[data-slot=\"chip\"] button");
|
|
104657
104659
|
(n[t + 1] ?? n[t - 1] ?? e.querySelector("[data-slot=\"tree-select-field-trigger\"]"))?.focus();
|
|
@@ -104661,7 +104663,7 @@ function g7(e) {
|
|
|
104661
104663
|
}
|
|
104662
104664
|
//#endregion
|
|
104663
104665
|
//#region lib/components/ui/selection/tree-select-field/partials/tree-select-panel.tsx
|
|
104664
|
-
function
|
|
104666
|
+
function AZe({ nodes: e, multiple: t, selectedIds: n, expandedIds: r, onExpandedIdsChange: i, onSelectedIdsChange: a, onSelect: o, treeLabel: s, searchable: c, query: l, onQueryChange: u, searchLabel: d, emptyText: f }) {
|
|
104665
104667
|
let p = R(null), m = R(null);
|
|
104666
104668
|
return F(() => {
|
|
104667
104669
|
m.current ? m.current.focus() : p.current?.contains(document.activeElement) || h7(p.current)?.focus();
|
|
@@ -104706,7 +104708,7 @@ function kZe({ nodes: e, multiple: t, selectedIds: n, expandedIds: r, onExpanded
|
|
|
104706
104708
|
}
|
|
104707
104709
|
//#endregion
|
|
104708
104710
|
//#region lib/components/ui/selection/tree-select-field/partials/tree-select-content.tsx
|
|
104709
|
-
function
|
|
104711
|
+
function jZe({ ref: e, field: t, multiple: n, searchable: r, searchPlaceholder: a, labelledBy: o, treeLabel: s }) {
|
|
104710
104712
|
let { t: c } = k();
|
|
104711
104713
|
return /* @__PURE__ */ V(ki, {
|
|
104712
104714
|
ref: e,
|
|
@@ -104715,7 +104717,7 @@ function AZe({ ref: e, field: t, multiple: n, searchable: r, searchPlaceholder:
|
|
|
104715
104717
|
align: "start",
|
|
104716
104718
|
sideOffset: 3,
|
|
104717
104719
|
className: i(pr, "w-(--radix-popover-trigger-width) p-1 forced-colors:outline-none"),
|
|
104718
|
-
children: /* @__PURE__ */ V(
|
|
104720
|
+
children: /* @__PURE__ */ V(AZe, {
|
|
104719
104721
|
nodes: t.nodes,
|
|
104720
104722
|
multiple: n,
|
|
104721
104723
|
selectedIds: t.selectedIds,
|
|
@@ -104734,12 +104736,12 @@ function AZe({ ref: e, field: t, multiple: n, searchable: r, searchPlaceholder:
|
|
|
104734
104736
|
}
|
|
104735
104737
|
//#endregion
|
|
104736
104738
|
//#region lib/components/ui/selection/tree-select-field/partials/tree-select-trigger.tsx
|
|
104737
|
-
var
|
|
104739
|
+
var MZe = {
|
|
104738
104740
|
sm: "min-h-9 py-px",
|
|
104739
104741
|
default: "min-h-11 py-1",
|
|
104740
104742
|
lg: "min-h-13 py-1 md:text-base"
|
|
104741
104743
|
};
|
|
104742
|
-
function
|
|
104744
|
+
function NZe({ list: e, multiple: t, disabled: n, error: r, size: a = "default", name: o, placeholder: s, countText: c, selectedNodes: l, path: u, onRemove: d, a11y: f }) {
|
|
104743
104745
|
let p = R(null), m = l.length > 0, h = !!(t && m), g = s;
|
|
104744
104746
|
return m && (g = t ? c : l[0].label), /* @__PURE__ */ V(Mi, {
|
|
104745
104747
|
asChild: !0,
|
|
@@ -104754,7 +104756,7 @@ function MZe({ list: e, multiple: t, disabled: n, error: r, size: a = "default",
|
|
|
104754
104756
|
invalid: r,
|
|
104755
104757
|
disabled: n
|
|
104756
104758
|
}),
|
|
104757
|
-
className: i(jr, "flex w-full flex-wrap items-center gap-1.5 pe-1.5 text-base md:text-sm", h ? "ps-2" : "ps-3",
|
|
104759
|
+
className: i(jr, "flex w-full flex-wrap items-center gap-1.5 pe-1.5 text-base md:text-sm", h ? "ps-2" : "ps-3", MZe[a]),
|
|
104758
104760
|
children: [h && l.map((e, t) => /* @__PURE__ */ V(po, {
|
|
104759
104761
|
label: e.label,
|
|
104760
104762
|
leading: e.icon,
|
|
@@ -104762,7 +104764,7 @@ function MZe({ list: e, multiple: t, disabled: n, error: r, size: a = "default",
|
|
|
104762
104764
|
size: "sm",
|
|
104763
104765
|
disabled: n,
|
|
104764
104766
|
onDismiss: () => {
|
|
104765
|
-
|
|
104767
|
+
kZe(p.current, t), d(e.id);
|
|
104766
104768
|
}
|
|
104767
104769
|
}, e.id)), /* @__PURE__ */ H(Ai, {
|
|
104768
104770
|
"data-slot": "tree-select-field-trigger",
|
|
@@ -104792,8 +104794,8 @@ function MZe({ list: e, multiple: t, disabled: n, error: r, size: a = "default",
|
|
|
104792
104794
|
}
|
|
104793
104795
|
//#endregion
|
|
104794
104796
|
//#region lib/components/ui/selection/tree-select-field/use-tree-select-field.ts
|
|
104795
|
-
function
|
|
104796
|
-
let { items: t, value: n } = e, [r, i] = z(!1), [a, o] = z(""), [s, c] = z([]), [l] = z(
|
|
104797
|
+
function PZe(e) {
|
|
104798
|
+
let { items: t, value: n } = e, [r, i] = z(!1), [a, o] = z(""), [s, c] = z([]), [l] = z(OZe), u = L(() => DZe(n), [n]), d = L(() => EZe(t, u), [t, u]), f = l(t, a);
|
|
104797
104799
|
return {
|
|
104798
104800
|
open: r,
|
|
104799
104801
|
setOpen: P((e) => {
|
|
@@ -104826,9 +104828,9 @@ function NZe(e) {
|
|
|
104826
104828
|
//#endregion
|
|
104827
104829
|
//#region lib/components/ui/selection/tree-select-field/tree-select-field.tsx
|
|
104828
104830
|
function _7(e) {
|
|
104829
|
-
let [t, n] = NT(e), { label: r, helperText: i, error: a, required: o, multiple: s } = n, { t: c } = k(), l =
|
|
104831
|
+
let [t, n] = NT(e), { label: r, helperText: i, error: a, required: o, multiple: s } = n, { t: c } = k(), l = PZe(e), { labelId: u, helperId: d, triggerId: f } = jT(t.id), p = mi(), [m, h] = Ve(), g = !s && l.selectedNodes[0], _ = g ? TZe(n.items, g.id).join(" / ") : void 0, v = n.placeholder ?? c("material.tree-select-field.placeholder", "Select…"), y = {
|
|
104830
104832
|
...t,
|
|
104831
|
-
...
|
|
104833
|
+
...CZe({
|
|
104832
104834
|
labelId: u,
|
|
104833
104835
|
label: r,
|
|
104834
104836
|
placeholder: v,
|
|
@@ -104856,7 +104858,7 @@ function _7(e) {
|
|
|
104856
104858
|
children: /* @__PURE__ */ H(ji, {
|
|
104857
104859
|
open: l.open,
|
|
104858
104860
|
onOpenChange: l.setOpen,
|
|
104859
|
-
children: [/* @__PURE__ */ V(
|
|
104861
|
+
children: [/* @__PURE__ */ V(NZe, {
|
|
104860
104862
|
list: {
|
|
104861
104863
|
open: l.open,
|
|
104862
104864
|
side: m
|
|
@@ -104872,7 +104874,7 @@ function _7(e) {
|
|
|
104872
104874
|
selectedNodes: l.selectedNodes,
|
|
104873
104875
|
onRemove: l.remove,
|
|
104874
104876
|
a11y: y
|
|
104875
|
-
}), /* @__PURE__ */ V(
|
|
104877
|
+
}), /* @__PURE__ */ V(jZe, {
|
|
104876
104878
|
ref: h,
|
|
104877
104879
|
field: l,
|
|
104878
104880
|
multiple: s,
|
|
@@ -104886,7 +104888,7 @@ function _7(e) {
|
|
|
104886
104888
|
}
|
|
104887
104889
|
//#endregion
|
|
104888
104890
|
//#region lib/components/ui/selection/tree-select-field/tree-select-form-field.tsx
|
|
104889
|
-
function
|
|
104891
|
+
function FZe({ control: e, name: t, multiple: n, ...r }) {
|
|
104890
104892
|
return /* @__PURE__ */ V(ua, {
|
|
104891
104893
|
control: e,
|
|
104892
104894
|
name: t,
|
|
@@ -104913,7 +104915,7 @@ function PZe({ control: e, name: t, multiple: n, ...r }) {
|
|
|
104913
104915
|
}
|
|
104914
104916
|
//#endregion
|
|
104915
104917
|
//#region lib/components/ui/tones.ts
|
|
104916
|
-
var
|
|
104918
|
+
var IZe = [
|
|
104917
104919
|
"primary",
|
|
104918
104920
|
"secondary",
|
|
104919
104921
|
"tertiary",
|
|
@@ -104956,7 +104958,7 @@ function v7({ items: e, selectedIndex: t = 0, onSelect: n, className: r }) {
|
|
|
104956
104958
|
}
|
|
104957
104959
|
//#endregion
|
|
104958
104960
|
//#region lib/components/ui/widgets/chat/chat-composer-mentions.tsx
|
|
104959
|
-
function
|
|
104961
|
+
function LZe({ value: e, textareaRef: t, mentions: n, onValueChange: r }) {
|
|
104960
104962
|
let [i, a] = z(!0), o = t.current?.selectionStart ?? e.length, s = He(e, o);
|
|
104961
104963
|
return F(() => {
|
|
104962
104964
|
s === null && a(!0);
|
|
@@ -104973,7 +104975,7 @@ function IZe({ value: e, textareaRef: t, mentions: n, onValueChange: r }) {
|
|
|
104973
104975
|
}
|
|
104974
104976
|
//#endregion
|
|
104975
104977
|
//#region lib/components/ui/widgets/chat/partials/chat-composer-input.tsx
|
|
104976
|
-
function
|
|
104978
|
+
function RZe({ value: e, onValueChange: t, textareaRef: n, fileInputRef: r, onKeyDown: i, placeholder: a, messageLabel: o, sendLabel: s, stopLabel: c = "Stop", attachLabel: l, isDisabled: u, isEmpty: d, canAttachMore: f, handleFiles: p, onAttachmentsChange: m, accept: h, maxFiles: g, maxLength: _, actions: v, emojis: y, onStop: b }) {
|
|
104977
104979
|
return /* @__PURE__ */ H("div", {
|
|
104978
104980
|
className: "flex items-end gap-1 p-1.5",
|
|
104979
104981
|
children: [
|
|
@@ -105018,7 +105020,7 @@ function LZe({ value: e, onValueChange: t, textareaRef: n, fileInputRef: r, onKe
|
|
|
105018
105020
|
}
|
|
105019
105021
|
//#endregion
|
|
105020
105022
|
//#region lib/components/ui/widgets/chat/partials/chat-composer-suggestions.tsx
|
|
105021
|
-
function
|
|
105023
|
+
function zZe({ suggestions: e, onSelect: t, disabled: n }) {
|
|
105022
105024
|
let { t: r } = k();
|
|
105023
105025
|
return e.length === 0 ? null : /* @__PURE__ */ V("div", {
|
|
105024
105026
|
"data-slot": "chat-composer-suggestions",
|
|
@@ -105064,7 +105066,7 @@ function y7({ value: e = "", onValueChange: t, onSend: n, placeholder: r, disabl
|
|
|
105064
105066
|
className: i("@container flex shrink-0 flex-col gap-2 px-3 pt-2 pb-3 @md:px-4", te ? "bg-transparent" : "border-border/70 border-t bg-background", T),
|
|
105065
105067
|
...E,
|
|
105066
105068
|
children: [
|
|
105067
|
-
v && v.length > 0 && /* @__PURE__ */ V(
|
|
105069
|
+
v && v.length > 0 && /* @__PURE__ */ V(zZe, {
|
|
105068
105070
|
suggestions: v,
|
|
105069
105071
|
disabled: O,
|
|
105070
105072
|
onSelect: y ?? ((e) => n?.(e, []))
|
|
@@ -105074,7 +105076,7 @@ function y7({ value: e = "", onValueChange: t, onSend: n, placeholder: r, disabl
|
|
|
105074
105076
|
className: "px-1 text-error-text text-xs",
|
|
105075
105077
|
children: D.errorMessage
|
|
105076
105078
|
}),
|
|
105077
|
-
g && g.length > 0 && /* @__PURE__ */ V(
|
|
105079
|
+
g && g.length > 0 && /* @__PURE__ */ V(LZe, {
|
|
105078
105080
|
value: e,
|
|
105079
105081
|
textareaRef: D.textareaRef,
|
|
105080
105082
|
mentions: g,
|
|
@@ -105094,7 +105096,7 @@ function y7({ value: e = "", onValueChange: t, onSend: n, placeholder: r, disabl
|
|
|
105094
105096
|
onAttachmentsChange: u,
|
|
105095
105097
|
className: "px-2.5 pt-2.5"
|
|
105096
105098
|
}),
|
|
105097
|
-
/* @__PURE__ */ V(
|
|
105099
|
+
/* @__PURE__ */ V(RZe, {
|
|
105098
105100
|
value: e,
|
|
105099
105101
|
onValueChange: t,
|
|
105100
105102
|
textareaRef: D.textareaRef,
|
|
@@ -105132,7 +105134,7 @@ function y7({ value: e = "", onValueChange: t, onSend: n, placeholder: r, disabl
|
|
|
105132
105134
|
}
|
|
105133
105135
|
//#endregion
|
|
105134
105136
|
//#region lib/components/ui/widgets/chat/chat-conversation-item.tsx
|
|
105135
|
-
function
|
|
105137
|
+
function BZe({ avatarSrc: e, avatarFallback: t, title: n, preview: a, timestamp: o, unreadCount: s, isActive: c = !1, isLoading: l = !1, status: u, isTyping: d = !1, className: f, ...p }) {
|
|
105136
105138
|
let { t: m } = k();
|
|
105137
105139
|
if (l) return /* @__PURE__ */ H("div", {
|
|
105138
105140
|
"data-slot": "chat-conversation-item",
|
|
@@ -105189,7 +105191,7 @@ function zZe({ avatarSrc: e, avatarFallback: t, title: n, preview: a, timestamp:
|
|
|
105189
105191
|
}
|
|
105190
105192
|
//#endregion
|
|
105191
105193
|
//#region lib/components/ui/widgets/chat/chat-group.ts
|
|
105192
|
-
function
|
|
105194
|
+
function VZe(e, t, n) {
|
|
105193
105195
|
let r = (e, t) => {
|
|
105194
105196
|
if (e === void 0 || t === void 0) return !1;
|
|
105195
105197
|
let r = n.sender(e);
|
|
@@ -105203,13 +105205,13 @@ function BZe(e, t, n) {
|
|
|
105203
105205
|
//#endregion
|
|
105204
105206
|
//#region lib/components/ui/widgets/chat/chat-inbox-context.ts
|
|
105205
105207
|
var b7 = mc(null);
|
|
105206
|
-
function
|
|
105208
|
+
function HZe() {
|
|
105207
105209
|
return xc(b7);
|
|
105208
105210
|
}
|
|
105209
105211
|
//#endregion
|
|
105210
105212
|
//#region lib/components/ui/widgets/chat/chat-inbox.tsx
|
|
105211
|
-
var
|
|
105212
|
-
function
|
|
105213
|
+
var UZe = "flex shrink-0 items-center border-border/70 border-b px-1 py-1 @md/inbox:hidden [[data-slot=chat-inbox-thread]:has([data-slot=chat-thread-header-back])>&]:hidden";
|
|
105214
|
+
function WZe({ list: e, thread: t, listHeader: n, pane: r, defaultPane: a = "list", onPaneChange: o, className: s, ...c }) {
|
|
105213
105215
|
let { t: l } = k(), [u, d] = z(a), f = r ?? u, p = P((e) => {
|
|
105214
105216
|
r === void 0 && d(e), o?.(e);
|
|
105215
105217
|
}, [r, o]), m = L(() => ({ back: () => p("list") }), [p]), h = !!t, g = l("material.chat.back", "Back");
|
|
@@ -105237,7 +105239,7 @@ function UZe({ list: e, thread: t, listHeader: n, pane: r, defaultPane: a = "lis
|
|
|
105237
105239
|
value: m,
|
|
105238
105240
|
children: [/* @__PURE__ */ V("div", {
|
|
105239
105241
|
"data-slot": "chat-inbox-back",
|
|
105240
|
-
className:
|
|
105242
|
+
className: UZe,
|
|
105241
105243
|
children: /* @__PURE__ */ V(j, {
|
|
105242
105244
|
variant: "ghost",
|
|
105243
105245
|
color: "default",
|
|
@@ -105276,7 +105278,7 @@ function S7(e) {
|
|
|
105276
105278
|
}
|
|
105277
105279
|
//#endregion
|
|
105278
105280
|
//#region lib/components/ui/widgets/chat/chat-markdown.tsx
|
|
105279
|
-
function
|
|
105281
|
+
function GZe({ content: e, className: t, ...n }) {
|
|
105280
105282
|
return /* @__PURE__ */ V(JX, {
|
|
105281
105283
|
"data-slot": "chat-markdown",
|
|
105282
105284
|
className: i("[container-type:normal] [&>*:first-child]:mt-0 [&>*:last-child]:mb-0", t),
|
|
@@ -105286,14 +105288,14 @@ function WZe({ content: e, className: t, ...n }) {
|
|
|
105286
105288
|
}
|
|
105287
105289
|
//#endregion
|
|
105288
105290
|
//#region lib/components/ui/widgets/chat/chat-copy-text.ts
|
|
105289
|
-
function
|
|
105291
|
+
function KZe(e, t) {
|
|
105290
105292
|
if (t) return t;
|
|
105291
105293
|
if (typeof e == "string") return e;
|
|
105292
105294
|
if (_c(e) && typeof e.props.content == "string") return e.props.content;
|
|
105293
105295
|
}
|
|
105294
105296
|
//#endregion
|
|
105295
105297
|
//#region lib/components/ui/widgets/chat/chat-message.variants.ts
|
|
105296
|
-
var
|
|
105298
|
+
var qZe = Vn("relative w-max max-w-full break-words [overflow-wrap:anywhere]", {
|
|
105297
105299
|
variants: {
|
|
105298
105300
|
variant: {
|
|
105299
105301
|
user: "ms-auto bg-primary text-primary-foreground shadow-sm",
|
|
@@ -105373,10 +105375,10 @@ var KZe = Vn("relative w-max max-w-full break-words [overflow-wrap:anywhere]", {
|
|
|
105373
105375
|
last: "rounded-ss-md rounded-es-md"
|
|
105374
105376
|
}
|
|
105375
105377
|
};
|
|
105376
|
-
function
|
|
105378
|
+
function JZe(e, t, n) {
|
|
105377
105379
|
return t === "bubbles" ? e === "user" ? C7.end[n] : e === "assistant" ? C7.start[n] : "" : "";
|
|
105378
105380
|
}
|
|
105379
|
-
var
|
|
105381
|
+
var YZe = Vn("group/message flex w-full animate-in fade-in slide-in-from-bottom-2 duration-(--nxgt-motion-effects-slow-duration) ease-(--nxgt-motion-emphasized-decelerate) motion-reduce:animate-none", {
|
|
105380
105382
|
variants: {
|
|
105381
105383
|
variant: {
|
|
105382
105384
|
user: "",
|
|
@@ -105425,7 +105427,7 @@ var JZe = Vn("group/message flex w-full animate-in fade-in slide-in-from-bottom-
|
|
|
105425
105427
|
density: "comfortable"
|
|
105426
105428
|
}
|
|
105427
105429
|
});
|
|
105428
|
-
function
|
|
105430
|
+
function XZe(e, t) {
|
|
105429
105431
|
return e !== "middle" && e !== "last" ? "" : t === "compact" ? "-mt-1.5" : "-mt-3";
|
|
105430
105432
|
}
|
|
105431
105433
|
function w7(e, t) {
|
|
@@ -105433,7 +105435,7 @@ function w7(e, t) {
|
|
|
105433
105435
|
}
|
|
105434
105436
|
//#endregion
|
|
105435
105437
|
//#region lib/components/ui/widgets/chat/chat-message-meta.tsx
|
|
105436
|
-
function
|
|
105438
|
+
function ZZe({ status: e }) {
|
|
105437
105439
|
let { t } = k();
|
|
105438
105440
|
return e === "sending" ? /* @__PURE__ */ V(lne, {
|
|
105439
105441
|
role: "img",
|
|
@@ -105449,8 +105451,8 @@ function XZe({ status: e }) {
|
|
|
105449
105451
|
className: "size-3.5 text-primary-text"
|
|
105450
105452
|
}) : null;
|
|
105451
105453
|
}
|
|
105452
|
-
function
|
|
105453
|
-
let { t: u } = k(), d = u("material.chat.send-failed", "Couldn't send"), f = u("material.chat.retry", "Retry"), p = s && !n && o !== "sent" ? /* @__PURE__ */ V(
|
|
105454
|
+
function QZe({ alignEnd: e, timestamp: t, failed: n, onRetry: a, status: o = "sent", showStatus: s = !1, edited: c = !1, className: l }) {
|
|
105455
|
+
let { t: u } = k(), d = u("material.chat.send-failed", "Couldn't send"), f = u("material.chat.retry", "Retry"), p = s && !n && o !== "sent" ? /* @__PURE__ */ V(ZZe, { status: o }) : null;
|
|
105454
105456
|
return !r(t) && !n && !p && !c ? null : /* @__PURE__ */ H("div", {
|
|
105455
105457
|
"data-slot": "chat-message-meta",
|
|
105456
105458
|
className: i("flex items-center gap-1 px-1 text-[0.6875rem] text-muted-foreground leading-4 tabular-nums", e && "flex-row-reverse", l),
|
|
@@ -105479,14 +105481,14 @@ function ZZe({ alignEnd: e, timestamp: t, failed: n, onRetry: a, status: o = "se
|
|
|
105479
105481
|
}
|
|
105480
105482
|
//#endregion
|
|
105481
105483
|
//#region lib/components/ui/widgets/chat/chat-reaction-group.tsx
|
|
105482
|
-
var
|
|
105484
|
+
var $Ze = [
|
|
105483
105485
|
"👍",
|
|
105484
105486
|
"❤️",
|
|
105485
105487
|
"😂",
|
|
105486
105488
|
"🎉",
|
|
105487
105489
|
"👀"
|
|
105488
105490
|
];
|
|
105489
|
-
function T7({ reactions: e, onReactionToggle: t, onAddReaction: n, suggestions: r =
|
|
105491
|
+
function T7({ reactions: e, onReactionToggle: t, onAddReaction: n, suggestions: r = $Ze, addLabel: a, className: o, ...s }) {
|
|
105490
105492
|
let { t: c } = k(), l = a ?? c("material.chat.add-reaction", "Add reaction");
|
|
105491
105493
|
return /* @__PURE__ */ H("div", {
|
|
105492
105494
|
"data-slot": "chat-reaction-group",
|
|
@@ -105520,7 +105522,7 @@ function T7({ reactions: e, onReactionToggle: t, onAddReaction: n, suggestions:
|
|
|
105520
105522
|
}
|
|
105521
105523
|
//#endregion
|
|
105522
105524
|
//#region lib/components/ui/widgets/chat/partials/chat-message-aside.tsx
|
|
105523
|
-
function
|
|
105525
|
+
function eQe({ showAvatar: e, avatar: t, avatarSrc: n, avatarFallback: r, size: a, hoverTime: o, className: s }) {
|
|
105524
105526
|
return /* @__PURE__ */ H("div", {
|
|
105525
105527
|
"data-slot": "chat-message-aside",
|
|
105526
105528
|
className: i("flex shrink-0 justify-center", a, s),
|
|
@@ -105537,7 +105539,7 @@ function $Ze({ showAvatar: e, avatar: t, avatarSrc: n, avatarFallback: r, size:
|
|
|
105537
105539
|
//#endregion
|
|
105538
105540
|
//#region lib/components/ui/widgets/chat/partials/chat-message-actions.tsx
|
|
105539
105541
|
var E7 = "size-7 [&_svg]:size-3.5";
|
|
105540
|
-
function
|
|
105542
|
+
function tQe({ side: e, copyText: t, onReply: n, onDelete: r, onReact: a, reactionSuggestions: o, menuItems: s }) {
|
|
105541
105543
|
let { t: c } = k(), l = !!(r || s), u = !!(a && o.length > 0);
|
|
105542
105544
|
if (!t && !n && !l && !u) return null;
|
|
105543
105545
|
let d = c("material.chat.actions.react", "React"), f = c("material.chat.actions.reply", "Reply"), p = c("material.chat.actions.more", "More actions");
|
|
@@ -105601,12 +105603,12 @@ function eQe({ side: e, copyText: t, onReply: n, onDelete: r, onReact: a, reacti
|
|
|
105601
105603
|
}
|
|
105602
105604
|
//#endregion
|
|
105603
105605
|
//#region lib/components/ui/widgets/chat/partials/chat-message-bubble.tsx
|
|
105604
|
-
function
|
|
105605
|
-
let d = i(
|
|
105606
|
+
function nQe({ variant: e, layout: t, density: n, position: r, isLoading: a, isStreaming: o, status: s, replyTo: c, actions: l, children: u }) {
|
|
105607
|
+
let d = i(qZe({
|
|
105606
105608
|
variant: e,
|
|
105607
105609
|
layout: t,
|
|
105608
105610
|
density: n
|
|
105609
|
-
}),
|
|
105611
|
+
}), JZe(e, t, r));
|
|
105610
105612
|
if (a) return /* @__PURE__ */ V("div", {
|
|
105611
105613
|
className: i(d, "flex items-center gap-1"),
|
|
105612
105614
|
children: /* @__PURE__ */ V(To, { className: "h-3 w-24" })
|
|
@@ -105616,7 +105618,7 @@ function tQe({ variant: e, layout: t, density: n, position: r, isLoading: a, isS
|
|
|
105616
105618
|
"data-slot": "chat-message-bubble-wrap",
|
|
105617
105619
|
tabIndex: -1,
|
|
105618
105620
|
className: i("group/bubble relative max-w-full outline-none", t === "flat" && "w-full", s === "sending" && "opacity-70"),
|
|
105619
|
-
children: [/* @__PURE__ */ V(
|
|
105621
|
+
children: [/* @__PURE__ */ V(tQe, {
|
|
105620
105622
|
side: t === "flat" ? "row" : e === "user" ? "end" : "start",
|
|
105621
105623
|
...l
|
|
105622
105624
|
}), /* @__PURE__ */ H("div", {
|
|
@@ -105638,7 +105640,7 @@ function tQe({ variant: e, layout: t, density: n, position: r, isLoading: a, isS
|
|
|
105638
105640
|
}
|
|
105639
105641
|
//#endregion
|
|
105640
105642
|
//#region lib/components/ui/widgets/chat/partials/chat-message-heading.tsx
|
|
105641
|
-
function
|
|
105643
|
+
function rQe({ author: e, timestamp: t }) {
|
|
105642
105644
|
return e == null && t == null ? null : /* @__PURE__ */ H("div", {
|
|
105643
105645
|
"data-slot": "chat-message-heading",
|
|
105644
105646
|
className: "flex min-w-0 items-baseline gap-2 px-1 text-xs",
|
|
@@ -105653,7 +105655,7 @@ function nQe({ author: e, timestamp: t }) {
|
|
|
105653
105655
|
}
|
|
105654
105656
|
//#endregion
|
|
105655
105657
|
//#region lib/components/ui/widgets/chat/chat-message.tsx
|
|
105656
|
-
var
|
|
105658
|
+
var iQe = [
|
|
105657
105659
|
"👍",
|
|
105658
105660
|
"❤️",
|
|
105659
105661
|
"😂",
|
|
@@ -105661,23 +105663,23 @@ var rQe = [
|
|
|
105661
105663
|
"😮",
|
|
105662
105664
|
"🙏"
|
|
105663
105665
|
];
|
|
105664
|
-
function
|
|
105666
|
+
function aQe({ variant: e = "assistant", avatar: t, avatarFallback: n, avatarSrc: r, timestamp: a, toolName: o, isStreaming: s = !1, isLoading: c = !1, status: l = "sent", onRetry: u, footer: d, copyable: f = !0, copyText: p, children: m, layout: h, density: g, groupPosition: _ = "single", author: v, edited: y = !1, replyTo: b, onReply: x, onDelete: S, onReact: C, reactionSuggestions: w = iQe, reactions: T, onReactionToggle: E, menuItems: D, className: O, ...ee }) {
|
|
105665
105667
|
let { layout: te, density: ne } = S7({
|
|
105666
105668
|
layout: h,
|
|
105667
105669
|
density: g
|
|
105668
|
-
}), re = te === "flat", ie = e === "user", ae = _ === "single" || _ === "first", oe = _ === "single" || _ === "last", se = e === "assistant" || e === "tool" || re && ie, ce =
|
|
105670
|
+
}), re = te === "flat", ie = e === "user", ae = _ === "single" || _ === "first", oe = _ === "single" || _ === "last", se = e === "assistant" || e === "tool" || re && ie, ce = KZe(m, p), le = f && !c && l !== "sending", ue = ie && !re, de = l === "failed", fe = !re && (oe || de) ? a : void 0, pe = !!fe || de || y || ie && l !== "sent";
|
|
105669
105671
|
return /* @__PURE__ */ H("div", {
|
|
105670
105672
|
"data-slot": "chat-message",
|
|
105671
105673
|
"data-variant": e,
|
|
105672
105674
|
"data-layout": te,
|
|
105673
105675
|
"data-group": _,
|
|
105674
|
-
className: i(
|
|
105676
|
+
className: i(YZe({
|
|
105675
105677
|
variant: e,
|
|
105676
105678
|
layout: te,
|
|
105677
105679
|
density: ne
|
|
105678
|
-
}),
|
|
105680
|
+
}), XZe(_, ne), O),
|
|
105679
105681
|
...ee,
|
|
105680
|
-
children: [se && /* @__PURE__ */ V(
|
|
105682
|
+
children: [se && /* @__PURE__ */ V(eQe, {
|
|
105681
105683
|
showAvatar: re ? ae : oe,
|
|
105682
105684
|
avatar: t,
|
|
105683
105685
|
avatarSrc: r,
|
|
@@ -105688,7 +105690,7 @@ function iQe({ variant: e = "assistant", avatar: t, avatarFallback: n, avatarSrc
|
|
|
105688
105690
|
}), /* @__PURE__ */ H("div", {
|
|
105689
105691
|
className: i("flex min-w-0 flex-col gap-1", re ? "flex-1" : "max-w-[85%] @md:max-w-[75%]", ue && "items-end", e === "system" && "w-full max-w-full items-center"),
|
|
105690
105692
|
children: [
|
|
105691
|
-
/* @__PURE__ */ V(
|
|
105693
|
+
/* @__PURE__ */ V(rQe, {
|
|
105692
105694
|
author: ae && (!ie || re) ? v : void 0,
|
|
105693
105695
|
timestamp: re && ae ? a : void 0
|
|
105694
105696
|
}),
|
|
@@ -105697,7 +105699,7 @@ function iQe({ variant: e = "assistant", avatar: t, avatarFallback: n, avatarSrc
|
|
|
105697
105699
|
className: "mb-0.5 self-start text-[10px]",
|
|
105698
105700
|
children: o
|
|
105699
105701
|
}),
|
|
105700
|
-
/* @__PURE__ */ V(
|
|
105702
|
+
/* @__PURE__ */ V(nQe, {
|
|
105701
105703
|
variant: e,
|
|
105702
105704
|
layout: te,
|
|
105703
105705
|
density: ne,
|
|
@@ -105721,7 +105723,7 @@ function iQe({ variant: e = "assistant", avatar: t, avatarFallback: n, avatarSrc
|
|
|
105721
105723
|
onReactionToggle: E,
|
|
105722
105724
|
className: i("px-1", ue && "justify-end")
|
|
105723
105725
|
}),
|
|
105724
|
-
/* @__PURE__ */ V(
|
|
105726
|
+
/* @__PURE__ */ V(QZe, {
|
|
105725
105727
|
alignEnd: ue,
|
|
105726
105728
|
timestamp: fe,
|
|
105727
105729
|
failed: de,
|
|
@@ -105751,7 +105753,7 @@ function D7({ label: e, ...t }) {
|
|
|
105751
105753
|
}
|
|
105752
105754
|
//#endregion
|
|
105753
105755
|
//#region lib/components/ui/widgets/chat/chat-unseen.ts
|
|
105754
|
-
function
|
|
105756
|
+
function oQe(e, t, n, r) {
|
|
105755
105757
|
if (r) return 0;
|
|
105756
105758
|
let i = n - t;
|
|
105757
105759
|
return i > 0 ? e + i : e;
|
|
@@ -105761,10 +105763,10 @@ function aQe(e, t, n, r) {
|
|
|
105761
105763
|
function O7(e) {
|
|
105762
105764
|
return e?.querySelector("[data-slot=\"scroll-area-viewport\"]");
|
|
105763
105765
|
}
|
|
105764
|
-
function
|
|
105766
|
+
function sQe(e) {
|
|
105765
105767
|
return e.scrollHeight - e.scrollTop - e.clientHeight;
|
|
105766
105768
|
}
|
|
105767
|
-
function
|
|
105769
|
+
function cQe(e, t) {
|
|
105768
105770
|
let n = R(null), r = R(null), i = R(!0), a = R(e), [o, s] = z(!0), [c, l] = z(0), u = P((e = "auto") => {
|
|
105769
105771
|
let t = O7(n.current);
|
|
105770
105772
|
t && t.scrollTo({
|
|
@@ -105776,7 +105778,7 @@ function sQe(e, t) {
|
|
|
105776
105778
|
let e = O7(n.current);
|
|
105777
105779
|
if (!e) return;
|
|
105778
105780
|
let r = () => {
|
|
105779
|
-
let n =
|
|
105781
|
+
let n = sQe(e) <= t;
|
|
105780
105782
|
i.current = n, s(n), n && l(0);
|
|
105781
105783
|
};
|
|
105782
105784
|
return i.current && (e.scrollTop = e.scrollHeight), r(), e.addEventListener("scroll", r, { passive: !0 }), () => e.removeEventListener("scroll", r);
|
|
@@ -105789,7 +105791,7 @@ function sQe(e, t) {
|
|
|
105789
105791
|
return t.observe(e), () => t.disconnect();
|
|
105790
105792
|
}, [u]), F(() => {
|
|
105791
105793
|
let t = i.current;
|
|
105792
|
-
l((n) =>
|
|
105794
|
+
l((n) => oQe(n, a.current, e, t)), a.current = e, t && u();
|
|
105793
105795
|
}, [e, u]), {
|
|
105794
105796
|
rootRef: n,
|
|
105795
105797
|
contentRef: r,
|
|
@@ -105803,7 +105805,7 @@ function sQe(e, t) {
|
|
|
105803
105805
|
//#endregion
|
|
105804
105806
|
//#region lib/components/ui/widgets/chat/chat-message-list.tsx
|
|
105805
105807
|
function k7({ isTyping: e = !1, typingLabel: t, typingAvatar: n, emptyState: r, scrollToBottomLabel: a, showScrollToBottom: o = !0, bottomThreshold: s = 96, layout: c = "bubbles", density: l = "comfortable", children: u, className: d, ...f }) {
|
|
105806
|
-
let { t: p } = k(), m = lc.count(u), h =
|
|
105808
|
+
let { t: p } = k(), m = lc.count(u), h = cQe(m + +!!e, s), g = L(() => ({
|
|
105807
105809
|
layout: c,
|
|
105808
105810
|
density: l
|
|
105809
105811
|
}), [c, l]);
|
|
@@ -105856,7 +105858,7 @@ function k7({ isTyping: e = !1, typingLabel: t, typingAvatar: n, emptyState: r,
|
|
|
105856
105858
|
}
|
|
105857
105859
|
//#endregion
|
|
105858
105860
|
//#region lib/components/ui/widgets/chat/chat-message-separator.tsx
|
|
105859
|
-
function
|
|
105861
|
+
function lQe({ sticky: e = !1, ...t }) {
|
|
105860
105862
|
return /* @__PURE__ */ V(dU, {
|
|
105861
105863
|
"data-slot": "chat-message-separator",
|
|
105862
105864
|
sticky: e,
|
|
@@ -105865,7 +105867,7 @@ function cQe({ sticky: e = !1, ...t }) {
|
|
|
105865
105867
|
}
|
|
105866
105868
|
//#endregion
|
|
105867
105869
|
//#region lib/components/ui/widgets/chat/chat-thread.tsx
|
|
105868
|
-
function
|
|
105870
|
+
function uQe({ header: e, footer: t, composerProps: n, messageListProps: r, layout: a, density: o, surface: s = "plain", children: c, className: l, ...u }) {
|
|
105869
105871
|
return /* @__PURE__ */ H("div", {
|
|
105870
105872
|
"data-slot": "chat-thread",
|
|
105871
105873
|
"data-surface": s,
|
|
@@ -105895,7 +105897,7 @@ function lQe({ header: e, footer: t, composerProps: n, messageListProps: r, layo
|
|
|
105895
105897
|
//#endregion
|
|
105896
105898
|
//#region lib/components/ui/widgets/chat/chat-thread-header.tsx
|
|
105897
105899
|
function A7({ title: e, subtitle: t, avatarSrc: n, avatarFallback: r, avatar: a, status: o, actions: s, onBack: c, className: l, ...u }) {
|
|
105898
|
-
let { t: d } = k(), f =
|
|
105900
|
+
let { t: d } = k(), f = HZe(), p = c ?? f?.back, m = d("material.chat.back", "Back"), h = a != null || n != null || r != null;
|
|
105899
105901
|
return /* @__PURE__ */ H("div", {
|
|
105900
105902
|
"data-slot": "chat-thread-header-bar",
|
|
105901
105903
|
className: i("flex min-h-14 items-center gap-2 px-2 py-2 @md:px-4", l),
|
|
@@ -105936,7 +105938,7 @@ function A7({ title: e, subtitle: t, avatarSrc: n, avatarFallback: r, avatar: a,
|
|
|
105936
105938
|
}
|
|
105937
105939
|
//#endregion
|
|
105938
105940
|
//#region lib/components/ui/widgets/chat/partials/chat-widget-launcher.tsx
|
|
105939
|
-
function
|
|
105941
|
+
function dQe({ open: e, onToggle: t, panelId: n, label: r, icon: a, unreadCount: o = 0, buttonRef: s }) {
|
|
105940
105942
|
let { t: c } = k(), l = !e && o > 0;
|
|
105941
105943
|
return /* @__PURE__ */ H("button", {
|
|
105942
105944
|
ref: s,
|
|
@@ -105978,7 +105980,7 @@ function uQe({ open: e, onToggle: t, panelId: n, label: r, icon: a, unreadCount:
|
|
|
105978
105980
|
}
|
|
105979
105981
|
//#endregion
|
|
105980
105982
|
//#region lib/components/ui/widgets/chat/partials/chat-widget-panel.tsx
|
|
105981
|
-
function
|
|
105983
|
+
function fQe({ id: e, titleId: t, open: n, side: r, title: a, subtitle: o, avatarSrc: s, avatarFallback: c, status: l, headerActions: u, onClose: d, panelRef: f, className: p, children: m }) {
|
|
105982
105984
|
let { t: h } = k(), g = h("material.chat.widget.close", "Close chat");
|
|
105983
105985
|
return /* @__PURE__ */ H("div", {
|
|
105984
105986
|
ref: f,
|
|
@@ -106022,7 +106024,7 @@ function dQe({ id: e, titleId: t, open: n, side: r, title: a, subtitle: o, avata
|
|
|
106022
106024
|
}
|
|
106023
106025
|
//#endregion
|
|
106024
106026
|
//#region lib/components/ui/widgets/chat/chat-widget.tsx
|
|
106025
|
-
function
|
|
106027
|
+
function pQe({ open: e, defaultOpen: t = !1, onOpenChange: n, title: r, subtitle: a, avatarSrc: o, avatarFallback: s, status: c, headerActions: l, unreadCount: u, launcherLabel: d, launcherIcon: f, side: p = "end", strategy: m = "fixed", panelClassName: h, children: g, className: _, ...v }) {
|
|
106026
106028
|
let { t: y } = k(), [b, x] = z(t), S = e ?? b, C = I(), w = I(), T = R(null), E = R(null), D = R(S), O = P((t) => {
|
|
106027
106029
|
e === void 0 && x(t), n?.(t);
|
|
106028
106030
|
}, [e, n]);
|
|
@@ -106039,7 +106041,7 @@ function fQe({ open: e, defaultOpen: t = !1, onOpenChange: n, title: r, subtitle
|
|
|
106039
106041
|
"data-state": S ? "open" : "closed",
|
|
106040
106042
|
className: i(m === "fixed" ? "fixed" : "absolute", "pointer-events-none inset-y-4 z-50 flex flex-col justify-end sm:inset-y-6 [&>*]:pointer-events-auto", p === "end" ? "end-4 items-end sm:end-6" : "start-4 items-start sm:start-6", _),
|
|
106041
106043
|
...v,
|
|
106042
|
-
children: [/* @__PURE__ */ V(
|
|
106044
|
+
children: [/* @__PURE__ */ V(fQe, {
|
|
106043
106045
|
id: C,
|
|
106044
106046
|
titleId: w,
|
|
106045
106047
|
open: S,
|
|
@@ -106054,7 +106056,7 @@ function fQe({ open: e, defaultOpen: t = !1, onOpenChange: n, title: r, subtitle
|
|
|
106054
106056
|
panelRef: E,
|
|
106055
106057
|
className: h,
|
|
106056
106058
|
children: g
|
|
106057
|
-
}), /* @__PURE__ */ V(
|
|
106059
|
+
}), /* @__PURE__ */ V(dQe, {
|
|
106058
106060
|
open: S,
|
|
106059
106061
|
onToggle: () => O(!S),
|
|
106060
106062
|
panelId: C,
|
|
@@ -106103,7 +106105,7 @@ function I7(e, t, n = e.options ?? []) {
|
|
|
106103
106105
|
let r = M7(t);
|
|
106104
106106
|
return e.kind === "text" || e.kind === "number" ? r.map((t) => e.unit ? `${t} ${e.unit}` : t) : r.map((e) => n.find((t) => t.id === e)?.label ?? e);
|
|
106105
106107
|
}
|
|
106106
|
-
function
|
|
106108
|
+
function mQe(e, t) {
|
|
106107
106109
|
return M7(e.correct ?? null).includes(t);
|
|
106108
106110
|
}
|
|
106109
106111
|
//#endregion
|
|
@@ -106137,7 +106139,7 @@ function z7({ parts: e, format: t, className: n }) {
|
|
|
106137
106139
|
}
|
|
106138
106140
|
//#endregion
|
|
106139
106141
|
//#region lib/components/ui/widgets/education/questions/partials/question-feedback.tsx
|
|
106140
|
-
function
|
|
106142
|
+
function hQe({ question: e, value: t }) {
|
|
106141
106143
|
let { t: n } = k(), r = L7(e), a = N7(t), o = P7(e, t), s = I7(e, e.correct ?? null, r), c = o ? "success" : a ? "error" : "neutral", l = o ? $o : a ? nc : ps;
|
|
106142
106144
|
return /* @__PURE__ */ H("div", {
|
|
106143
106145
|
"data-slot": "question-feedback",
|
|
@@ -106174,14 +106176,14 @@ function mQe({ question: e, value: t }) {
|
|
|
106174
106176
|
}
|
|
106175
106177
|
//#endregion
|
|
106176
106178
|
//#region lib/components/ui/widgets/education/questions/partials/question-header.tsx
|
|
106177
|
-
var
|
|
106179
|
+
var gQe = {
|
|
106178
106180
|
choice: sne,
|
|
106179
106181
|
multi: jne,
|
|
106180
106182
|
boolean: Ks,
|
|
106181
106183
|
text: Qs,
|
|
106182
106184
|
number: Ene
|
|
106183
106185
|
};
|
|
106184
|
-
function
|
|
106186
|
+
function _Qe(e) {
|
|
106185
106187
|
let { t } = k();
|
|
106186
106188
|
switch (e) {
|
|
106187
106189
|
case "choice": return t("material.education.kind-choice", "Multiple choice");
|
|
@@ -106191,8 +106193,8 @@ function gQe(e) {
|
|
|
106191
106193
|
default: return t("material.education.kind-text", "Short answer");
|
|
106192
106194
|
}
|
|
106193
106195
|
}
|
|
106194
|
-
function
|
|
106195
|
-
let { t: s } = k(), c =
|
|
106196
|
+
function vQe({ kind: e, number: t, hasHint: n, hintOpen: r, hintId: a, onToggleHint: o }) {
|
|
106197
|
+
let { t: s } = k(), c = gQe[e], l = _Qe(e);
|
|
106196
106198
|
return /* @__PURE__ */ H("div", {
|
|
106197
106199
|
className: "flex min-h-7 flex-wrap items-center gap-x-3 gap-y-1.5",
|
|
106198
106200
|
children: [
|
|
@@ -106227,14 +106229,14 @@ function _Qe({ kind: e, number: t, hasHint: n, hintOpen: r, hintId: a, onToggleH
|
|
|
106227
106229
|
}
|
|
106228
106230
|
//#endregion
|
|
106229
106231
|
//#region lib/components/ui/widgets/education/questions/question-options.tsx
|
|
106230
|
-
var
|
|
106232
|
+
var yQe = ["ArrowDown", "ArrowRight"], bQe = ["ArrowUp", "ArrowLeft"];
|
|
106231
106233
|
function B7({ question: e, options: t, value: n, multiple: r = !1, revealed: a = !1, disabled: o = !1, density: s = "comfortable", showShortcuts: c = !1, labelledBy: l, onToggle: u }) {
|
|
106232
106234
|
let d = t.some((e) => e.image), f = t.length === 2 && !d, p = r ? null : (t.find((e) => n.includes(e.id)) ?? t[0])?.id;
|
|
106233
106235
|
return /* @__PURE__ */ V("div", {
|
|
106234
106236
|
role: r ? "group" : "radiogroup",
|
|
106235
106237
|
"aria-labelledby": l,
|
|
106236
106238
|
onKeyDown: (e) => {
|
|
106237
|
-
let t =
|
|
106239
|
+
let t = yQe.includes(e.key) ? 1 : bQe.includes(e.key) ? -1 : 0;
|
|
106238
106240
|
if (t === 0) return;
|
|
106239
106241
|
let n = Array.from(e.currentTarget.querySelectorAll("[data-slot=\"option-tile\"]:not(:disabled)")), i = n.indexOf(document.activeElement);
|
|
106240
106242
|
if (i < 0) return;
|
|
@@ -106244,7 +106246,7 @@ function B7({ question: e, options: t, value: n, multiple: r = !1, revealed: a =
|
|
|
106244
106246
|
},
|
|
106245
106247
|
className: i("grid min-w-0", s === "compact" ? "gap-2" : "gap-2.5", d ? "grid-cols-2 @2xl:grid-cols-4" : f ? "grid-cols-1 @xs:grid-cols-2" : "grid-cols-1 @lg:grid-cols-2"),
|
|
106246
106248
|
children: t.map((t, l) => {
|
|
106247
|
-
let d = n.includes(t.id), f =
|
|
106249
|
+
let d = n.includes(t.id), f = xQe(a, d, mQe(e, t.id), r);
|
|
106248
106250
|
return /* @__PURE__ */ V(oF, {
|
|
106249
106251
|
"data-option-id": t.id,
|
|
106250
106252
|
label: t.label,
|
|
@@ -106265,7 +106267,7 @@ function B7({ question: e, options: t, value: n, multiple: r = !1, revealed: a =
|
|
|
106265
106267
|
})
|
|
106266
106268
|
});
|
|
106267
106269
|
}
|
|
106268
|
-
function
|
|
106270
|
+
function xQe(e, t, n, r) {
|
|
106269
106271
|
if (e) {
|
|
106270
106272
|
if (t) return n ? "correct" : "incorrect";
|
|
106271
106273
|
if (n) return r ? "missed" : "correct";
|
|
@@ -106285,7 +106287,7 @@ function V7({ question: e, value: t, onValueChange: n, ...r }) {
|
|
|
106285
106287
|
}
|
|
106286
106288
|
//#endregion
|
|
106287
106289
|
//#region lib/components/ui/widgets/education/questions/question-boolean.tsx
|
|
106288
|
-
function
|
|
106290
|
+
function SQe(e) {
|
|
106289
106291
|
let t = L7(e.question);
|
|
106290
106292
|
return /* @__PURE__ */ V(V7, {
|
|
106291
106293
|
...e,
|
|
@@ -106298,7 +106300,7 @@ function xQe(e) {
|
|
|
106298
106300
|
}
|
|
106299
106301
|
//#endregion
|
|
106300
106302
|
//#region lib/components/ui/widgets/education/questions/question-multi.tsx
|
|
106301
|
-
function
|
|
106303
|
+
function CQe({ question: e, value: t, onValueChange: n, ...r }) {
|
|
106302
106304
|
let i = M7(t ?? null);
|
|
106303
106305
|
return /* @__PURE__ */ V(B7, {
|
|
106304
106306
|
...r,
|
|
@@ -106314,7 +106316,7 @@ function SQe({ question: e, value: t, onValueChange: n, ...r }) {
|
|
|
106314
106316
|
}
|
|
106315
106317
|
//#endregion
|
|
106316
106318
|
//#region lib/components/ui/widgets/education/questions/question-text.tsx
|
|
106317
|
-
function
|
|
106319
|
+
function wQe({ question: e, value: t, onValueChange: n, revealed: r, disabled: a, showFeedback: o = !0 }) {
|
|
106318
106320
|
let { t: s } = k(), c = typeof t == "string" ? t : "", l = r ? P7(e, t ?? null) : void 0, u = e.kind === "number";
|
|
106319
106321
|
return /* @__PURE__ */ V(mo, {
|
|
106320
106322
|
value: c,
|
|
@@ -106361,7 +106363,7 @@ function H7({ question: e, value: t, onValueChange: n, revealed: r = !1, disable
|
|
|
106361
106363
|
}),
|
|
106362
106364
|
/* @__PURE__ */ V("div", {
|
|
106363
106365
|
className: "-order-1",
|
|
106364
|
-
children: /* @__PURE__ */ V(
|
|
106366
|
+
children: /* @__PURE__ */ V(vQe, {
|
|
106365
106367
|
kind: e.kind,
|
|
106366
106368
|
number: u,
|
|
106367
106369
|
hasHint: !!e.hint && !r,
|
|
@@ -106383,11 +106385,11 @@ function H7({ question: e, value: t, onValueChange: n, revealed: r = !1, disable
|
|
|
106383
106385
|
className: "mt-0.5 size-4 shrink-0 text-warning"
|
|
106384
106386
|
}), e.hint]
|
|
106385
106387
|
}),
|
|
106386
|
-
/* @__PURE__ */ V(
|
|
106388
|
+
/* @__PURE__ */ V(TQe, { ..._ }),
|
|
106387
106389
|
/* @__PURE__ */ V("div", {
|
|
106388
106390
|
"aria-live": "polite",
|
|
106389
106391
|
className: "empty:hidden",
|
|
106390
|
-
children: r && d && /* @__PURE__ */ V(
|
|
106392
|
+
children: r && d && /* @__PURE__ */ V(hQe, {
|
|
106391
106393
|
question: e,
|
|
106392
106394
|
value: t ?? null
|
|
106393
106395
|
})
|
|
@@ -106416,19 +106418,19 @@ function H7({ question: e, value: t, onValueChange: n, revealed: r = !1, disable
|
|
|
106416
106418
|
children: v
|
|
106417
106419
|
});
|
|
106418
106420
|
}
|
|
106419
|
-
function
|
|
106421
|
+
function TQe(e) {
|
|
106420
106422
|
switch (e.question.kind) {
|
|
106421
106423
|
case "choice": return /* @__PURE__ */ V(V7, { ...e });
|
|
106422
|
-
case "multi": return /* @__PURE__ */ V(
|
|
106423
|
-
case "boolean": return /* @__PURE__ */ V(
|
|
106424
|
+
case "multi": return /* @__PURE__ */ V(CQe, { ...e });
|
|
106425
|
+
case "boolean": return /* @__PURE__ */ V(SQe, { ...e });
|
|
106424
106426
|
case "text":
|
|
106425
|
-
case "number": return /* @__PURE__ */ V(
|
|
106427
|
+
case "number": return /* @__PURE__ */ V(wQe, { ...e });
|
|
106426
106428
|
}
|
|
106427
106429
|
}
|
|
106428
106430
|
//#endregion
|
|
106429
106431
|
//#region lib/components/ui/widgets/education/quizzes/quiz-provider.tsx
|
|
106430
106432
|
var U7 = mc(null);
|
|
106431
|
-
function
|
|
106433
|
+
function EQe({ value: e, children: t }) {
|
|
106432
106434
|
return /* @__PURE__ */ V(U7.Provider, {
|
|
106433
106435
|
value: e,
|
|
106434
106436
|
children: t
|
|
@@ -106441,7 +106443,7 @@ function W7() {
|
|
|
106441
106443
|
}
|
|
106442
106444
|
//#endregion
|
|
106443
106445
|
//#region lib/components/ui/widgets/education/quizzes/partials/quiz-body.tsx
|
|
106444
|
-
function
|
|
106446
|
+
function DQe() {
|
|
106445
106447
|
let { current: e, state: t, setAnswer: n, revealed: r, density: i, showShortcuts: a } = W7();
|
|
106446
106448
|
return e ? /* @__PURE__ */ V("div", {
|
|
106447
106449
|
className: "animate-in fade-in slide-in-from-right-3 duration-300 ease-out",
|
|
@@ -106459,7 +106461,7 @@ function EQe() {
|
|
|
106459
106461
|
}
|
|
106460
106462
|
//#endregion
|
|
106461
106463
|
//#region lib/components/ui/widgets/education/quizzes/partials/quiz-header.tsx
|
|
106462
|
-
function
|
|
106464
|
+
function OQe() {
|
|
106463
106465
|
let { title: e, description: t, questions: n, state: a, timeLimit: o, timerPaused: s, submit: c, mode: l, density: u } = W7(), { t: d } = k(), f = a.status === "playing", p = l === "practice" && f && a.streak >= 2, m = u === "compact";
|
|
106464
106466
|
return /* @__PURE__ */ H("header", {
|
|
106465
106467
|
className: "flex min-w-0 flex-col gap-2",
|
|
@@ -106519,7 +106521,7 @@ function DQe() {
|
|
|
106519
106521
|
function G7(e, t) {
|
|
106520
106522
|
return e.filter((e) => N7(t[e.id])).length;
|
|
106521
106523
|
}
|
|
106522
|
-
function
|
|
106524
|
+
function kQe(e, t) {
|
|
106523
106525
|
return !!(e?.required && !N7(t));
|
|
106524
106526
|
}
|
|
106525
106527
|
function K7(e, t) {
|
|
@@ -106547,7 +106549,7 @@ function X7(e, t) {
|
|
|
106547
106549
|
}
|
|
106548
106550
|
//#endregion
|
|
106549
106551
|
//#region lib/components/ui/widgets/education/quizzes/partials/quiz-list.tsx
|
|
106550
|
-
function
|
|
106552
|
+
function AQe() {
|
|
106551
106553
|
let { round: e, questions: t, state: n, setAnswer: r, density: i, canSubmit: a, submit: o, answered: s } = W7(), { t: c } = k();
|
|
106552
106554
|
return /* @__PURE__ */ H("div", {
|
|
106553
106555
|
"data-slot": "quiz-list",
|
|
@@ -106589,7 +106591,7 @@ function kQe() {
|
|
|
106589
106591
|
}
|
|
106590
106592
|
//#endregion
|
|
106591
106593
|
//#region lib/components/ui/widgets/education/quizzes/partials/quiz-nav.tsx
|
|
106592
|
-
function
|
|
106594
|
+
function jQe() {
|
|
106593
106595
|
let { canPrev: e, prev: t, primary: n, canPrimary: r, runPrimary: i, mode: a, showShortcuts: o, current: s, revealed: c } = W7(), { t: l } = k(), u = n === "check" ? l("material.quiz.check", "Check") : n === "next" ? l("material.education.next", "Next") : a === "practice" ? l("material.quiz.see-results", "See results") : l("material.education.submit", "Submit"), d = n === "check" ? $o : n === "next" ? Jo : Hs, f = s?.kind === "boolean" ? 2 : s?.kind === "choice" || s?.kind === "multi" ? Math.min(9, s.options?.length ?? 0) : 0, p = l("material.education.previous", "Previous");
|
|
106594
106596
|
return /* @__PURE__ */ H("div", {
|
|
106595
106597
|
"data-slot": "quiz-nav",
|
|
@@ -106645,7 +106647,7 @@ function AQe() {
|
|
|
106645
106647
|
}
|
|
106646
106648
|
//#endregion
|
|
106647
106649
|
//#region lib/components/ui/widgets/education/quizzes/partials/quiz-progress.tsx
|
|
106648
|
-
function
|
|
106650
|
+
function MQe() {
|
|
106649
106651
|
let { round: e, state: t, answered: n, mode: r, goTo: i } = W7(), { t: a } = k(), o = e.length;
|
|
106650
106652
|
if (o === 0) return null;
|
|
106651
106653
|
let s = Y7(e, t.answers, r === "practice" ? t.checked : []);
|
|
@@ -106682,7 +106684,7 @@ function jQe() {
|
|
|
106682
106684
|
}
|
|
106683
106685
|
//#endregion
|
|
106684
106686
|
//#region lib/components/ui/widgets/education/quizzes/partials/results-breakdown.tsx
|
|
106685
|
-
function
|
|
106687
|
+
function NQe() {
|
|
106686
106688
|
let { questions: e, state: t } = W7(), { t: n } = k(), r = I();
|
|
106687
106689
|
return /* @__PURE__ */ H("section", {
|
|
106688
106690
|
"aria-labelledby": r,
|
|
@@ -106693,7 +106695,7 @@ function MQe() {
|
|
|
106693
106695
|
children: n("material.quiz.breakdown", "Question by question")
|
|
106694
106696
|
}), /* @__PURE__ */ V("ol", {
|
|
106695
106697
|
className: "flex flex-col divide-y overflow-hidden rounded-xl border bg-background/60",
|
|
106696
|
-
children: e.map((e, n) => /* @__PURE__ */ V(
|
|
106698
|
+
children: e.map((e, n) => /* @__PURE__ */ V(PQe, {
|
|
106697
106699
|
question: e,
|
|
106698
106700
|
number: n + 1,
|
|
106699
106701
|
answer: t.answers[e.id] ?? null
|
|
@@ -106701,7 +106703,7 @@ function MQe() {
|
|
|
106701
106703
|
})]
|
|
106702
106704
|
});
|
|
106703
106705
|
}
|
|
106704
|
-
function
|
|
106706
|
+
function PQe({ question: e, number: t, answer: n }) {
|
|
106705
106707
|
let { t: r } = k(), a = L7(e), o = N7(n), s = P7(e, n), c = s ? $o : o ? nc : ps, l = s ? r("material.quiz.correct", "Correct!") : o ? r("material.quiz.incorrect", "Not quite") : r("material.quiz.unanswered", "Not answered"), u = I7(e, e.correct ?? null, a);
|
|
106706
106708
|
return /* @__PURE__ */ H("li", {
|
|
106707
106709
|
"data-correct": s,
|
|
@@ -106742,24 +106744,24 @@ function NQe({ question: e, number: t, answer: n }) {
|
|
|
106742
106744
|
}
|
|
106743
106745
|
//#endregion
|
|
106744
106746
|
//#region lib/components/ui/widgets/education/quizzes/partials/quiz-celebration.tsx
|
|
106745
|
-
var
|
|
106746
|
-
function
|
|
106747
|
+
var FQe = 14;
|
|
106748
|
+
function IQe() {
|
|
106747
106749
|
return /* @__PURE__ */ V("span", {
|
|
106748
106750
|
"aria-hidden": !0,
|
|
106749
106751
|
"data-slot": "quiz-celebration",
|
|
106750
106752
|
className: "nxgt-quiz-confetti",
|
|
106751
|
-
children: Array.from({ length:
|
|
106753
|
+
children: Array.from({ length: FQe }, (e, t) => /* @__PURE__ */ V("span", {}, t))
|
|
106752
106754
|
});
|
|
106753
106755
|
}
|
|
106754
106756
|
//#endregion
|
|
106755
106757
|
//#region lib/components/ui/widgets/education/quizzes/partials/results-hero.tsx
|
|
106756
|
-
var
|
|
106758
|
+
var LQe = {
|
|
106757
106759
|
perfect: "success",
|
|
106758
106760
|
great: "success",
|
|
106759
106761
|
passed: "primary",
|
|
106760
106762
|
"keep-going": "warning"
|
|
106761
106763
|
};
|
|
106762
|
-
function
|
|
106764
|
+
function RQe() {
|
|
106763
106765
|
let { score: e, state: t, wrong: n, retryWrong: r, reset: a, passingScore: o } = W7(), { t: s } = k(), c = R(null), l = J7(e.percent, o), u = {
|
|
106764
106766
|
perfect: s("material.quiz.perfect", "Perfect score!"),
|
|
106765
106767
|
great: s("material.quiz.great", "Great job!"),
|
|
@@ -106773,13 +106775,13 @@ function LQe() {
|
|
|
106773
106775
|
"data-band": l,
|
|
106774
106776
|
className: i("relative isolate flex animate-in flex-col items-center gap-5 overflow-hidden rounded-2xl border p-5 text-center fade-in zoom-in-95 duration-500 @md:p-6 @xl:flex-row @xl:gap-8 @xl:text-left", l === "keep-going" ? "bg-warning/5" : "bg-[linear-gradient(135deg,color-mix(in_oklab,var(--success)_10%,transparent),color-mix(in_oklab,var(--primary)_6%,transparent))]"),
|
|
106775
106777
|
children: [
|
|
106776
|
-
(l === "perfect" || l === "great") && /* @__PURE__ */ V(
|
|
106778
|
+
(l === "perfect" || l === "great") && /* @__PURE__ */ V(IQe, {}),
|
|
106777
106779
|
/* @__PURE__ */ V(AP, {
|
|
106778
106780
|
value: e.percent,
|
|
106779
106781
|
size: 136,
|
|
106780
106782
|
thickness: "thick",
|
|
106781
106783
|
wavy: !0,
|
|
106782
|
-
tone:
|
|
106784
|
+
tone: LQe[l],
|
|
106783
106785
|
"aria-label": s("material.education.results", "Results"),
|
|
106784
106786
|
className: "shrink-0",
|
|
106785
106787
|
children: /* @__PURE__ */ V("span", {
|
|
@@ -106843,7 +106845,7 @@ function LQe() {
|
|
|
106843
106845
|
}
|
|
106844
106846
|
//#endregion
|
|
106845
106847
|
//#region lib/components/ui/widgets/education/quizzes/partials/results-stats.tsx
|
|
106846
|
-
function
|
|
106848
|
+
function zQe() {
|
|
106847
106849
|
let { score: e, questions: t, state: n, mode: r } = W7(), { t: a } = k(), o = t.filter((e) => !N7(n.answers[e.id])).length, s = [
|
|
106848
106850
|
{
|
|
106849
106851
|
key: "correct",
|
|
@@ -106897,26 +106899,26 @@ function RQe() {
|
|
|
106897
106899
|
}
|
|
106898
106900
|
//#endregion
|
|
106899
106901
|
//#region lib/components/ui/widgets/education/quizzes/partials/quiz-results.tsx
|
|
106900
|
-
function
|
|
106902
|
+
function BQe() {
|
|
106901
106903
|
return /* @__PURE__ */ H("div", {
|
|
106902
106904
|
"data-slot": "quiz-results",
|
|
106903
106905
|
className: "flex flex-col gap-4 @md:gap-5",
|
|
106904
106906
|
children: [
|
|
106905
|
-
/* @__PURE__ */ V(LQe, {}),
|
|
106906
106907
|
/* @__PURE__ */ V(RQe, {}),
|
|
106907
|
-
/* @__PURE__ */ V(
|
|
106908
|
+
/* @__PURE__ */ V(zQe, {}),
|
|
106909
|
+
/* @__PURE__ */ V(NQe, {})
|
|
106908
106910
|
]
|
|
106909
106911
|
});
|
|
106910
106912
|
}
|
|
106911
106913
|
//#endregion
|
|
106912
106914
|
//#region lib/components/ui/widgets/education/quizzes/quiz-keys.ts
|
|
106913
|
-
var
|
|
106914
|
-
function
|
|
106915
|
+
var VQe = "input, textarea, select, [contenteditable=\"true\"]", HQe = "button, a[href], summary, [role=\"button\"]";
|
|
106916
|
+
function UQe(e) {
|
|
106915
106917
|
return (t) => {
|
|
106916
106918
|
if (e.layout !== "paged" || e.state.status !== "playing" || t.altKey || t.ctrlKey || t.metaKey) return;
|
|
106917
|
-
let n = t.target, r = !!n.closest?.(
|
|
106919
|
+
let n = t.target, r = !!n.closest?.(VQe);
|
|
106918
106920
|
if (t.key === "Enter") {
|
|
106919
|
-
if (!r && n.closest?.(
|
|
106921
|
+
if (!r && n.closest?.(HQe)) return;
|
|
106920
106922
|
t.preventDefault(), e.runPrimary();
|
|
106921
106923
|
return;
|
|
106922
106924
|
}
|
|
@@ -106998,7 +107000,7 @@ function e9(e, t) {
|
|
|
106998
107000
|
}
|
|
106999
107001
|
//#endregion
|
|
107000
107002
|
//#region lib/components/ui/widgets/education/quizzes/use-quiz.ts
|
|
107001
|
-
function
|
|
107003
|
+
function WQe(e) {
|
|
107002
107004
|
let { questions: t, defaultIndex: n = 0, mode: r = "exam", layout: i = "paged" } = e, [a, o] = ka(Q7, {
|
|
107003
107005
|
currentIndex: Math.max(0, n),
|
|
107004
107006
|
answers: e.defaultAnswers ?? {}
|
|
@@ -107010,7 +107012,7 @@ function UQe(e) {
|
|
|
107010
107012
|
s.length,
|
|
107011
107013
|
a.currentIndex
|
|
107012
107014
|
]), e9(a.currentIndex, e.onIndexChange), e9(a.answers, e.onAnswersChange);
|
|
107013
|
-
let c = s[a.currentIndex], l = c ? a.answers[c.id] ?? null : null, u = r === "practice" && $7.selectIsChecked(a, c?.id), d =
|
|
107015
|
+
let c = s[a.currentIndex], l = c ? a.answers[c.id] ?? null : null, u = r === "practice" && $7.selectIsChecked(a, c?.id), d = kQe(c, l ?? void 0), f = L(() => X7(t, a.answers), [t, a.answers]), p = L(() => q7(t, a.answers), [t, a.answers]), m = G7(s, a.answers), h = a.currentIndex >= s.length - 1, g = $7.selectCanNext(a, s.length) && !d && (r === "exam" || u || !N7(l)), _ = !K7(t, a.answers), v = r === "practice" && !u && (N7(l) || d) ? "check" : h ? "submit" : "next", y = v === "check" ? N7(l) : v === "next" ? g : _, { onSubmit: b, onComplete: x } = e, S = P((e = !1) => {
|
|
107014
107016
|
!e && K7(t, a.answers) || (o.submit({ timedOut: e }), b?.(a.answers));
|
|
107015
107017
|
}, [
|
|
107016
107018
|
o,
|
|
@@ -107077,7 +107079,7 @@ function UQe(e) {
|
|
|
107077
107079
|
}
|
|
107078
107080
|
//#endregion
|
|
107079
107081
|
//#region lib/components/ui/widgets/education/quizzes/quiz.tsx
|
|
107080
|
-
var
|
|
107082
|
+
var GQe = [
|
|
107081
107083
|
"questions",
|
|
107082
107084
|
"title",
|
|
107083
107085
|
"description",
|
|
@@ -107095,19 +107097,19 @@ var WQe = [
|
|
|
107095
107097
|
"passingScore",
|
|
107096
107098
|
"onComplete"
|
|
107097
107099
|
];
|
|
107098
|
-
function
|
|
107099
|
-
let r =
|
|
107100
|
-
for (let e of
|
|
107101
|
-
return /* @__PURE__ */ V(
|
|
107100
|
+
function KQe({ className: e, variant: t = "elevated", ...n }) {
|
|
107101
|
+
let r = WQe(n), i = { ...n };
|
|
107102
|
+
for (let e of GQe) delete i[e];
|
|
107103
|
+
return /* @__PURE__ */ V(EQe, {
|
|
107102
107104
|
value: r,
|
|
107103
|
-
children: /* @__PURE__ */ V(
|
|
107105
|
+
children: /* @__PURE__ */ V(qQe, {
|
|
107104
107106
|
className: e,
|
|
107105
107107
|
variant: t,
|
|
107106
107108
|
...i
|
|
107107
107109
|
})
|
|
107108
107110
|
});
|
|
107109
107111
|
}
|
|
107110
|
-
function
|
|
107112
|
+
function qQe({ className: e, variant: t, ...n }) {
|
|
107111
107113
|
let r = W7(), { questions: a, state: o, layout: s, density: c } = r, { t: l } = k();
|
|
107112
107114
|
if (a.length === 0) return /* @__PURE__ */ V(wo, {
|
|
107113
107115
|
kind: "empty",
|
|
@@ -107121,34 +107123,34 @@ function KQe({ className: e, variant: t, ...n }) {
|
|
|
107121
107123
|
"data-mode": r.mode,
|
|
107122
107124
|
"data-layout": s,
|
|
107123
107125
|
"data-status": o.status,
|
|
107124
|
-
onKeyDown:
|
|
107126
|
+
onKeyDown: UQe(r),
|
|
107125
107127
|
className: i("@container relative isolate w-full min-w-0 text-card-foreground", u && "overflow-hidden rounded-3xl border bg-card shadow-[0_1px_2px_rgb(0_0_0/0.04),0_24px_48px_-24px_color-mix(in_oklab,var(--primary)_35%,transparent)]", e),
|
|
107126
107128
|
children: [u && /* @__PURE__ */ V("span", {
|
|
107127
107129
|
"aria-hidden": !0,
|
|
107128
107130
|
className: "pointer-events-none absolute inset-x-0 top-0 -z-10 h-56 bg-[radial-gradient(70%_100%_at_0%_0%,color-mix(in_oklab,var(--primary)_13%,transparent),transparent_70%),radial-gradient(50%_90%_at_100%_0%,color-mix(in_oklab,var(--tertiary)_11%,transparent),transparent_70%)]"
|
|
107129
107131
|
}), /* @__PURE__ */ H("div", {
|
|
107130
107132
|
className: i("flex min-w-0 flex-col", d ? "gap-4" : "gap-5 @md:gap-6", u && (d ? "p-4 @md:p-5" : "p-4 @sm:p-5 @md:p-7 @3xl:p-8")),
|
|
107131
|
-
children: [/* @__PURE__ */ V(
|
|
107132
|
-
/* @__PURE__ */ V(
|
|
107133
|
-
/* @__PURE__ */ V(
|
|
107134
|
-
/* @__PURE__ */ V(
|
|
107133
|
+
children: [/* @__PURE__ */ V(OQe, {}), o.status === "submitted" ? /* @__PURE__ */ V(BQe, {}) : s === "list" ? /* @__PURE__ */ V(AQe, {}) : /* @__PURE__ */ H(B, { children: [
|
|
107134
|
+
/* @__PURE__ */ V(MQe, {}),
|
|
107135
|
+
/* @__PURE__ */ V(DQe, {}),
|
|
107136
|
+
/* @__PURE__ */ V(jQe, {})
|
|
107135
107137
|
] })]
|
|
107136
107138
|
})]
|
|
107137
107139
|
});
|
|
107138
107140
|
}
|
|
107139
107141
|
//#endregion
|
|
107140
107142
|
//#region lib/components/ui/widgets/event-calendar/event-calendar.period.ts
|
|
107141
|
-
function
|
|
107143
|
+
function JQe(e, t, n, r = !1) {
|
|
107142
107144
|
let i = e.getFullYear() === t.getFullYear();
|
|
107143
107145
|
return r ? `${Ja(e, e.getMonth() === t.getMonth() ? "d" : "d MMM", { locale: n })} – ${Ja(t, "d MMM", { locale: n })}` : i && e.getMonth() === t.getMonth() ? `${Ja(e, "d", { locale: n })} – ${Ja(t, "d MMMM yyyy", { locale: n })}` : `${Ja(e, i ? "d MMM" : "d MMM yyyy", { locale: n })} – ${Ja(t, "d MMM yyyy", { locale: n })}`;
|
|
107144
107146
|
}
|
|
107145
|
-
function
|
|
107147
|
+
function YQe(e, t, n, r) {
|
|
107146
107148
|
return e === "month" ? `month:${Ja(t, "yyyy-MM")}` : e === "week" || e === "workweek" ? `${e}:${Ja(Qa(t, {
|
|
107147
107149
|
weekStartsOn: n,
|
|
107148
107150
|
locale: r
|
|
107149
107151
|
}), "yyyy-MM-dd")}` : `${e}:${Ja(t, "yyyy-MM-dd")}`;
|
|
107150
107152
|
}
|
|
107151
|
-
function
|
|
107153
|
+
function XQe(e, t, n, r) {
|
|
107152
107154
|
if (e === "month") return null;
|
|
107153
107155
|
if (e === "day") return {
|
|
107154
107156
|
from: Ua(t),
|
|
@@ -107177,7 +107179,7 @@ function YQe(e, t, n, r) {
|
|
|
107177
107179
|
}
|
|
107178
107180
|
//#endregion
|
|
107179
107181
|
//#region lib/components/ui/widgets/event-calendar/event-calendar-events.utils.ts
|
|
107180
|
-
var
|
|
107182
|
+
var ZQe = (e) => {
|
|
107181
107183
|
let t = jo(e);
|
|
107182
107184
|
return t.length > 0 ? t : Mo(e);
|
|
107183
107185
|
};
|
|
@@ -107200,7 +107202,7 @@ function i9(e, t) {
|
|
|
107200
107202
|
function a9(e, t) {
|
|
107201
107203
|
return e.filter((e) => i9(e, t)).sort((e, t) => Number(!!t.allDay) - Number(!!e.allDay) || oo(e.start).getTime() - oo(t.start).getTime());
|
|
107202
107204
|
}
|
|
107203
|
-
function
|
|
107205
|
+
function QQe(e, t) {
|
|
107204
107206
|
let n = Ua(t), r = Math.max(1, Math.round(o9(e) / (1440 * 60 * 1e3)));
|
|
107205
107207
|
return {
|
|
107206
107208
|
...e,
|
|
@@ -107229,17 +107231,17 @@ function c9(e, t) {
|
|
|
107229
107231
|
end: new Date(n.getTime() + r).toISOString()
|
|
107230
107232
|
};
|
|
107231
107233
|
}
|
|
107232
|
-
function
|
|
107234
|
+
function $Qe(e, t) {
|
|
107233
107235
|
let n = oo(e.start), r = t9(t), i = new Date(n.getTime() + 900 * 1e3), a = r.getTime() < i.getTime() ? i : r;
|
|
107234
107236
|
return {
|
|
107235
107237
|
...e,
|
|
107236
107238
|
end: a.toISOString()
|
|
107237
107239
|
};
|
|
107238
107240
|
}
|
|
107239
|
-
function $
|
|
107241
|
+
function e$e(e, t) {
|
|
107240
107242
|
return e.start < t.end && t.start < e.end;
|
|
107241
107243
|
}
|
|
107242
|
-
function
|
|
107244
|
+
function t$e(e, t, n, r) {
|
|
107243
107245
|
let i = r9(t, n * 60), a = r9(t, r * 60), o = e.filter((e) => !e.allDay && i9(e, t)).map((e) => ({
|
|
107244
107246
|
event: e,
|
|
107245
107247
|
start: DC([oo(e.start), i]),
|
|
@@ -107253,7 +107255,7 @@ function e$e(e, t, n, r) {
|
|
|
107253
107255
|
});
|
|
107254
107256
|
return c.map((e) => {
|
|
107255
107257
|
let t = e.column;
|
|
107256
|
-
for (let n of c) $
|
|
107258
|
+
for (let n of c) e$e(e.item, n.item) && (t = Math.max(t, n.column));
|
|
107257
107259
|
return {
|
|
107258
107260
|
event: e.item.event,
|
|
107259
107261
|
column: e.column,
|
|
@@ -107265,7 +107267,7 @@ function e$e(e, t, n, r) {
|
|
|
107265
107267
|
}
|
|
107266
107268
|
//#endregion
|
|
107267
107269
|
//#region lib/components/ui/widgets/event-calendar/event-calendar.utils.ts
|
|
107268
|
-
function
|
|
107270
|
+
function n$e(e, t, n) {
|
|
107269
107271
|
return PC({
|
|
107270
107272
|
start: Qa(FC(e), {
|
|
107271
107273
|
locale: t,
|
|
@@ -107277,7 +107279,7 @@ function t$e(e, t, n) {
|
|
|
107277
107279
|
})
|
|
107278
107280
|
});
|
|
107279
107281
|
}
|
|
107280
|
-
function
|
|
107282
|
+
function r$e(e, t = 7) {
|
|
107281
107283
|
let n = [];
|
|
107282
107284
|
for (let r = 0; r < e.length; r += t) n.push(e.slice(r, r + t));
|
|
107283
107285
|
return n;
|
|
@@ -107298,18 +107300,18 @@ function l9(e, t, n = !1, r) {
|
|
|
107298
107300
|
return t !== 0 && t !== 6;
|
|
107299
107301
|
}) : i;
|
|
107300
107302
|
}
|
|
107301
|
-
function
|
|
107303
|
+
function i$e(e, t, n) {
|
|
107302
107304
|
return t === "month" ? CC(e, n) : t === "week" || t === "workweek" || t === "agenda" ? TC(e, n) : Za(e, n);
|
|
107303
107305
|
}
|
|
107304
107306
|
function u9(e, t, n, r, i = !1) {
|
|
107305
107307
|
if (t === "day") return Ja(e, i ? "EEE d MMM" : "PPPP", { locale: n });
|
|
107306
107308
|
if (t === "week" || t === "workweek" || t === "agenda") {
|
|
107307
107309
|
let a = t === "agenda" ? d9(e) : l9(e, n, t === "workweek", r), o = a[0], s = a[a.length - 1];
|
|
107308
|
-
return !o || !s ? Ja(e, "PP", { locale: n }) :
|
|
107310
|
+
return !o || !s ? Ja(e, "PP", { locale: n }) : JQe(o, s, n, i);
|
|
107309
107311
|
}
|
|
107310
107312
|
return Ja(e, i ? "LLL yyyy" : "LLLL yyyy", { locale: n });
|
|
107311
107313
|
}
|
|
107312
|
-
function
|
|
107314
|
+
function a$e(e, t, n) {
|
|
107313
107315
|
return l9(e, t, !1, n).map((e) => Ja(e, "EE", { locale: t }));
|
|
107314
107316
|
}
|
|
107315
107317
|
function d9(e, t = 7) {
|
|
@@ -107328,7 +107330,7 @@ function p9(e) {
|
|
|
107328
107330
|
allDay: !0
|
|
107329
107331
|
};
|
|
107330
107332
|
}
|
|
107331
|
-
function
|
|
107333
|
+
function o$e(e, t) {
|
|
107332
107334
|
return {
|
|
107333
107335
|
start: Ua(e <= t ? e : t),
|
|
107334
107336
|
end: Za(Ua(e <= t ? t : e), 1),
|
|
@@ -107339,7 +107341,7 @@ function m9(e, t, n) {
|
|
|
107339
107341
|
let r = Ua(e).getTime(), i = Ua(t <= n ? t : n).getTime(), a = Ua(t <= n ? n : t).getTime();
|
|
107340
107342
|
return r >= i && r <= a;
|
|
107341
107343
|
}
|
|
107342
|
-
function
|
|
107344
|
+
function s$e(e, t, n = 60) {
|
|
107343
107345
|
let r = r9(e, t);
|
|
107344
107346
|
return {
|
|
107345
107347
|
start: r,
|
|
@@ -107347,10 +107349,10 @@ function o$e(e, t, n = 60) {
|
|
|
107347
107349
|
allDay: !1
|
|
107348
107350
|
};
|
|
107349
107351
|
}
|
|
107350
|
-
function
|
|
107352
|
+
function c$e(e, t) {
|
|
107351
107353
|
return e.start !== t.start || e.end !== t.end || !!e.allDay != !!t.allDay || e.title !== t.title || (e.description ?? "") !== (t.description ?? "") || (e.color ?? "") !== (t.color ?? "");
|
|
107352
107354
|
}
|
|
107353
|
-
function
|
|
107355
|
+
function l$e(e, t) {
|
|
107354
107356
|
let n = t.trim().toLowerCase();
|
|
107355
107357
|
return !n || [e.title, e.description].filter((e) => !!e).some((e) => e.toLowerCase().includes(n));
|
|
107356
107358
|
}
|
|
@@ -107377,7 +107379,7 @@ function y9() {
|
|
|
107377
107379
|
}
|
|
107378
107380
|
//#endregion
|
|
107379
107381
|
//#region lib/components/ui/widgets/event-calendar/event-calendar.ids.ts
|
|
107380
|
-
var b9 = "day:", x9 = "allday:", S9 = "time:",
|
|
107382
|
+
var b9 = "day:", x9 = "allday:", S9 = "time:", u$e = "resize:";
|
|
107381
107383
|
function C9(e) {
|
|
107382
107384
|
return Ja(e, "yyyy-MM-dd");
|
|
107383
107385
|
}
|
|
@@ -107387,10 +107389,10 @@ function w9(e) {
|
|
|
107387
107389
|
function T9(e) {
|
|
107388
107390
|
return `${b9}${C9(e)}`;
|
|
107389
107391
|
}
|
|
107390
|
-
function
|
|
107392
|
+
function d$e(e) {
|
|
107391
107393
|
return `${x9}${C9(e)}`;
|
|
107392
107394
|
}
|
|
107393
|
-
function
|
|
107395
|
+
function f$e(e) {
|
|
107394
107396
|
return `${S9}${C9(e)}`;
|
|
107395
107397
|
}
|
|
107396
107398
|
function E9(e, t) {
|
|
@@ -107398,7 +107400,7 @@ function E9(e, t) {
|
|
|
107398
107400
|
}
|
|
107399
107401
|
//#endregion
|
|
107400
107402
|
//#region lib/components/ui/widgets/event-calendar/event-calendar.keyboard.ts
|
|
107401
|
-
function
|
|
107403
|
+
function p$e(e, t) {
|
|
107402
107404
|
let n = e.ctrlKey || e.metaKey;
|
|
107403
107405
|
if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
|
|
107404
107406
|
let r = e.key === "ArrowRight" ? 1 : -1;
|
|
@@ -107419,7 +107421,7 @@ function f$e(e, t) {
|
|
|
107419
107421
|
}
|
|
107420
107422
|
//#endregion
|
|
107421
107423
|
//#region lib/components/ui/widgets/event-calendar/partials/agenda-event-row.tsx
|
|
107422
|
-
function
|
|
107424
|
+
function m$e({ event: e, time: t, endTime: n, selected: r, dense: a = !1, onClick: o }) {
|
|
107423
107425
|
let { t: s } = k(), c = e.allDay ? t ?? s("material.event-calendar.all-day", "All day") : n ? `${t} – ${n}` : t;
|
|
107424
107426
|
return /* @__PURE__ */ H("button", {
|
|
107425
107427
|
type: "button",
|
|
@@ -107469,7 +107471,7 @@ function p$e({ event: e, time: t, endTime: n, selected: r, dense: a = !1, onClic
|
|
|
107469
107471
|
}
|
|
107470
107472
|
//#endregion
|
|
107471
107473
|
//#region lib/components/ui/widgets/event-calendar/event-calendar.preview.ts
|
|
107472
|
-
var
|
|
107474
|
+
var h$e = [
|
|
107473
107475
|
"var(--color-primary)",
|
|
107474
107476
|
"#8b5cf6",
|
|
107475
107477
|
"#22c55e",
|
|
@@ -107477,7 +107479,7 @@ var m$e = [
|
|
|
107477
107479
|
"#0ea5e9",
|
|
107478
107480
|
"#ef4444"
|
|
107479
107481
|
];
|
|
107480
|
-
function
|
|
107482
|
+
function g$e(e, t) {
|
|
107481
107483
|
let n = oo(e.start), r = oo(e.end);
|
|
107482
107484
|
if (e.allDay) {
|
|
107483
107485
|
let i = Za(r, -1);
|
|
@@ -107487,10 +107489,10 @@ function h$e(e, t) {
|
|
|
107487
107489
|
}
|
|
107488
107490
|
//#endregion
|
|
107489
107491
|
//#region lib/components/ui/widgets/event-calendar/partials/event-color-swatches.tsx
|
|
107490
|
-
function
|
|
107492
|
+
function _$e({ value: e, disabled: t, onChange: n }) {
|
|
107491
107493
|
let { t: r } = k();
|
|
107492
107494
|
return /* @__PURE__ */ V(o5, {
|
|
107493
|
-
colors:
|
|
107495
|
+
colors: h$e,
|
|
107494
107496
|
size: "xs",
|
|
107495
107497
|
label: r("material.event-calendar.color", "Color"),
|
|
107496
107498
|
value: e ?? "",
|
|
@@ -107501,8 +107503,8 @@ function g$e({ value: e, disabled: t, onChange: n }) {
|
|
|
107501
107503
|
}
|
|
107502
107504
|
//#endregion
|
|
107503
107505
|
//#region lib/components/ui/widgets/event-calendar/partials/event-preview.tsx
|
|
107504
|
-
function
|
|
107505
|
-
let { locale: t } = uo(), { t: n } = k(), { disabled: r, replaceEvent: i, removeEvent: a } = y9(), [o, s] = z(!1), c =
|
|
107506
|
+
function v$e({ event: e }) {
|
|
107507
|
+
let { locale: t } = uo(), { t: n } = k(), { disabled: r, replaceEvent: i, removeEvent: a } = y9(), [o, s] = z(!1), c = g$e(e, t), l = e.allDay ? `${n("material.event-calendar.all-day", "All day")} · ${c}` : c, u = r || e.disabled, d = n("material.event-calendar.delete", "Delete event");
|
|
107506
107508
|
return /* @__PURE__ */ H("div", {
|
|
107507
107509
|
className: "flex flex-col gap-2",
|
|
107508
107510
|
children: [
|
|
@@ -107540,7 +107542,7 @@ function _$e({ event: e }) {
|
|
|
107540
107542
|
className: "text-muted-foreground",
|
|
107541
107543
|
children: l
|
|
107542
107544
|
}),
|
|
107543
|
-
/* @__PURE__ */ V(
|
|
107545
|
+
/* @__PURE__ */ V(_$e, {
|
|
107544
107546
|
value: e.color,
|
|
107545
107547
|
disabled: u,
|
|
107546
107548
|
onChange: (t) => i(e.id, (e) => ({
|
|
@@ -107598,7 +107600,7 @@ function D9({ event: e, compact: t = !1, className: n, continuesBefore: r = !1,
|
|
|
107598
107600
|
continuesAfter: i,
|
|
107599
107601
|
className: n,
|
|
107600
107602
|
onClick: v
|
|
107601
|
-
}) : /* @__PURE__ */ V(
|
|
107603
|
+
}) : /* @__PURE__ */ V(m$e, {
|
|
107602
107604
|
event: e,
|
|
107603
107605
|
dense: a === "list",
|
|
107604
107606
|
time: h,
|
|
@@ -107612,13 +107614,13 @@ function D9({ event: e, compact: t = !1, className: n, continuesBefore: r = !1,
|
|
|
107612
107614
|
className: "w-72 rounded-xl p-3 shadow-lg",
|
|
107613
107615
|
"aria-label": e.title,
|
|
107614
107616
|
onClick: (e) => e.stopPropagation(),
|
|
107615
|
-
children: /* @__PURE__ */ V(
|
|
107617
|
+
children: /* @__PURE__ */ V(v$e, { event: e })
|
|
107616
107618
|
})]
|
|
107617
107619
|
});
|
|
107618
107620
|
}
|
|
107619
107621
|
//#endregion
|
|
107620
107622
|
//#region lib/components/ui/widgets/event-calendar/partials/agenda-view.tsx
|
|
107621
|
-
function
|
|
107623
|
+
function y$e() {
|
|
107622
107624
|
let { locale: e } = uo(), { t } = k(), { cursorDate: n, events: r, disabled: a, onSlotClick: o, today: s } = y9();
|
|
107623
107625
|
return /* @__PURE__ */ V("div", {
|
|
107624
107626
|
"data-slot": "event-calendar-agenda",
|
|
@@ -107691,7 +107693,7 @@ function A9(e, t) {
|
|
|
107691
107693
|
};
|
|
107692
107694
|
});
|
|
107693
107695
|
}
|
|
107694
|
-
function
|
|
107696
|
+
function b$e(e, t, n = 3) {
|
|
107695
107697
|
return e.filter((e) => e.row >= n && e.startCol <= t && t < e.startCol + e.span).map((e) => e.event);
|
|
107696
107698
|
}
|
|
107697
107699
|
//#endregion
|
|
@@ -107725,7 +107727,7 @@ function M9({ onSlotClick: e, disabled: t }) {
|
|
|
107725
107727
|
onPointerUp: (t) => {
|
|
107726
107728
|
if (!n.current) return;
|
|
107727
107729
|
let i = j9(t) ?? n.current, o = n.current;
|
|
107728
|
-
n.current = null, a(null), !(!e || !r.current) && e(
|
|
107730
|
+
n.current = null, a(null), !(!e || !r.current) && e(o$e(o, i));
|
|
107729
107731
|
}
|
|
107730
107732
|
};
|
|
107731
107733
|
}
|
|
@@ -107759,7 +107761,7 @@ function N9({ segment: e }) {
|
|
|
107759
107761
|
var P9 = "w-11 shrink-0 @min-[768px]:w-16", F9 = "h-[calc(var(--hours,24)*var(--hour-h,52px))]";
|
|
107760
107762
|
//#endregion
|
|
107761
107763
|
//#region lib/components/ui/widgets/event-calendar/partials/all-day-lane.tsx
|
|
107762
|
-
function
|
|
107764
|
+
function x$e({ days: e }) {
|
|
107763
107765
|
let { t } = k(), { events: n, disabled: r, onSlotClick: a } = y9(), o = t("material.event-calendar.add", "Add event"), s = A9(n.filter(O9), e), c = s.reduce((e, t) => Math.max(e, t.row + 1), 0), l = M9({
|
|
107764
107766
|
onSlotClick: a,
|
|
107765
107767
|
disabled: r
|
|
@@ -107782,7 +107784,7 @@ function b$e({ days: e }) {
|
|
|
107782
107784
|
children: e.map((e) => {
|
|
107783
107785
|
let t = !!(l.draft && m9(e, l.draft.from, l.draft.to));
|
|
107784
107786
|
return /* @__PURE__ */ V(No, {
|
|
107785
|
-
id:
|
|
107787
|
+
id: d$e(e),
|
|
107786
107788
|
data: {
|
|
107787
107789
|
type: "all-day",
|
|
107788
107790
|
day: C9(e)
|
|
@@ -107813,7 +107815,7 @@ function b$e({ days: e }) {
|
|
|
107813
107815
|
}
|
|
107814
107816
|
//#endregion
|
|
107815
107817
|
//#region lib/components/ui/widgets/event-calendar/use-slot-create.ts
|
|
107816
|
-
function
|
|
107818
|
+
function S$e({ day: e, startHour: t, endHour: n, slotDurationMinutes: r, onSlotClick: i, disabled: a }) {
|
|
107817
107819
|
let o = R(null), [s, c] = z(null), l = R(!1), u = (e) => {
|
|
107818
107820
|
let r = e.currentTarget.getBoundingClientRect();
|
|
107819
107821
|
return n9(e.clientY - r.top, r.height, t, n);
|
|
@@ -107847,7 +107849,7 @@ function x$e({ day: e, startHour: t, endHour: n, slotDurationMinutes: r, onSlotC
|
|
|
107847
107849
|
}
|
|
107848
107850
|
//#endregion
|
|
107849
107851
|
//#region lib/components/ui/widgets/event-calendar/partials/event-resize-handle.tsx
|
|
107850
|
-
function
|
|
107852
|
+
function C$e({ event: e, day: t }) {
|
|
107851
107853
|
let { t: n } = k(), { startHour: r, endHour: a, replaceEvent: o } = y9();
|
|
107852
107854
|
return /* @__PURE__ */ V("button", {
|
|
107853
107855
|
type: "button",
|
|
@@ -107861,7 +107863,7 @@ function S$e({ event: e, day: t }) {
|
|
|
107861
107863
|
let c = (n) => {
|
|
107862
107864
|
i.releasePointerCapture(n.pointerId), i.removeEventListener("pointerup", c);
|
|
107863
107865
|
let l = s.getBoundingClientRect(), u = n9(n.clientY - l.top, l.height, r, a);
|
|
107864
|
-
o(e.id, (e) =>
|
|
107866
|
+
o(e.id, (e) => $Qe(e, r9(t, u)));
|
|
107865
107867
|
};
|
|
107866
107868
|
i.addEventListener("pointerup", c);
|
|
107867
107869
|
}
|
|
@@ -107869,7 +107871,7 @@ function S$e({ event: e, day: t }) {
|
|
|
107869
107871
|
}
|
|
107870
107872
|
//#endregion
|
|
107871
107873
|
//#region lib/components/ui/widgets/event-calendar/partials/time-grid-event.tsx
|
|
107872
|
-
function
|
|
107874
|
+
function w$e({ laid: e, day: t }) {
|
|
107873
107875
|
let { disabled: n, chromeActions: r, hourHeight: i } = y9(), { event: a, column: o, columns: s, startMin: c, endMin: l } = e, u = Math.max((l - c) / 60 * i, 20), d = l - c < 40;
|
|
107874
107876
|
return /* @__PURE__ */ V(Io, {
|
|
107875
107877
|
id: a.id,
|
|
@@ -107890,7 +107892,7 @@ function C$e({ laid: e, day: t }) {
|
|
|
107890
107892
|
event: a,
|
|
107891
107893
|
compact: d,
|
|
107892
107894
|
className: "h-full"
|
|
107893
|
-
}), !n && !a.disabled && /* @__PURE__ */ V(
|
|
107895
|
+
}), !n && !a.disabled && /* @__PURE__ */ V(C$e, {
|
|
107894
107896
|
event: a,
|
|
107895
107897
|
day: t
|
|
107896
107898
|
})]
|
|
@@ -107899,8 +107901,8 @@ function C$e({ laid: e, day: t }) {
|
|
|
107899
107901
|
}
|
|
107900
107902
|
//#endregion
|
|
107901
107903
|
//#region lib/components/ui/widgets/event-calendar/partials/time-column.tsx
|
|
107902
|
-
function
|
|
107903
|
-
let { events: t, disabled: n, startHour: r, endHour: a, hourHeight: o, slotDurationMinutes: s, onSlotClick: c, today: l, now: u } = y9(), { t: d } = k(), f = f9(r, a), p = d("material.event-calendar.add", "Add event"), m =
|
|
107904
|
+
function T$e({ day: e }) {
|
|
107905
|
+
let { events: t, disabled: n, startHour: r, endHour: a, hourHeight: o, slotDurationMinutes: s, onSlotClick: c, today: l, now: u } = y9(), { t: d } = k(), f = f9(r, a), p = d("material.event-calendar.add", "Add event"), m = t$e(t.filter((e) => !O9(e)), e, r, a), h = AC(e, l), g = S$e({
|
|
107904
107906
|
day: e,
|
|
107905
107907
|
startHour: r,
|
|
107906
107908
|
endHour: a,
|
|
@@ -107909,7 +107911,7 @@ function w$e({ day: e }) {
|
|
|
107909
107911
|
disabled: n
|
|
107910
107912
|
});
|
|
107911
107913
|
return /* @__PURE__ */ H(No, {
|
|
107912
|
-
id:
|
|
107914
|
+
id: f$e(e),
|
|
107913
107915
|
data: {
|
|
107914
107916
|
type: "time",
|
|
107915
107917
|
day: C9(e)
|
|
@@ -107924,7 +107926,7 @@ function w$e({ day: e }) {
|
|
|
107924
107926
|
return;
|
|
107925
107927
|
}
|
|
107926
107928
|
let n = t.currentTarget.getBoundingClientRect(), i = n9(t.clientY - n.top, n.height, r, a);
|
|
107927
|
-
c(
|
|
107929
|
+
c(s$e(e, i, s));
|
|
107928
107930
|
},
|
|
107929
107931
|
onPointerDown: g.onPointerDown,
|
|
107930
107932
|
onPointerMove: g.onPointerMove,
|
|
@@ -107943,7 +107945,7 @@ function w$e({ day: e }) {
|
|
|
107943
107945
|
height: Math.max(g.draft.endMin - g.draft.startMin, 15) / 60 * o
|
|
107944
107946
|
}
|
|
107945
107947
|
}),
|
|
107946
|
-
m.map((t) => /* @__PURE__ */ V(
|
|
107948
|
+
m.map((t) => /* @__PURE__ */ V(w$e, {
|
|
107947
107949
|
laid: t,
|
|
107948
107950
|
day: e
|
|
107949
107951
|
}, t.event.id))
|
|
@@ -107952,7 +107954,7 @@ function w$e({ day: e }) {
|
|
|
107952
107954
|
}
|
|
107953
107955
|
//#endregion
|
|
107954
107956
|
//#region lib/components/ui/widgets/event-calendar/partials/time-grid-header.tsx
|
|
107955
|
-
function
|
|
107957
|
+
function E$e({ days: e }) {
|
|
107956
107958
|
let { locale: t } = uo(), { t: n } = k(), { today: r, views: a, setView: o, setCursor: s, disabled: c } = y9(), l = e.length > 1 && (a ?? ["day"]).includes("day");
|
|
107957
107959
|
return /* @__PURE__ */ H("div", {
|
|
107958
107960
|
className: "flex border-b bg-muted/30",
|
|
@@ -107994,13 +107996,13 @@ function I9(e) {
|
|
|
107994
107996
|
let t = new Date(2e3, 0, 1);
|
|
107995
107997
|
return t.setHours(e, 0, 0, 0), t;
|
|
107996
107998
|
}
|
|
107997
|
-
function
|
|
107999
|
+
function D$e(e, t) {
|
|
107998
108000
|
return Ja(I9(e), t.code?.startsWith("en") ? "h a" : "HH:mm", { locale: t });
|
|
107999
108001
|
}
|
|
108000
|
-
function
|
|
108002
|
+
function O$e(e, t) {
|
|
108001
108003
|
return t !== null && Math.abs(e * 60 - t) < 20;
|
|
108002
108004
|
}
|
|
108003
|
-
function
|
|
108005
|
+
function k$e({ nowMinutes: e = null }) {
|
|
108004
108006
|
let { locale: t } = uo(), { startHour: n, endHour: r } = y9();
|
|
108005
108007
|
return /* @__PURE__ */ V("div", {
|
|
108006
108008
|
"aria-hidden": !0,
|
|
@@ -108008,10 +108010,10 @@ function O$e({ nowMinutes: e = null }) {
|
|
|
108008
108010
|
children: f9(n, r).map((n, r) => /* @__PURE__ */ V("div", {
|
|
108009
108011
|
className: "relative h-(--hour-h,52px)",
|
|
108010
108012
|
children: /* @__PURE__ */ H("span", {
|
|
108011
|
-
className: i("absolute right-1.5 font-medium text-[10px] text-muted-foreground tabular-nums leading-4 @min-[768px]:right-2 @min-[768px]:text-[11px]", r === 0 ? "top-0.5" : "-top-2",
|
|
108013
|
+
className: i("absolute right-1.5 font-medium text-[10px] text-muted-foreground tabular-nums leading-4 @min-[768px]:right-2 @min-[768px]:text-[11px]", r === 0 ? "top-0.5" : "-top-2", O$e(n, e) && "invisible"),
|
|
108012
108014
|
children: [/* @__PURE__ */ V("span", {
|
|
108013
108015
|
className: "@min-[768px]:hidden",
|
|
108014
|
-
children:
|
|
108016
|
+
children: D$e(n, t)
|
|
108015
108017
|
}), /* @__PURE__ */ V("span", {
|
|
108016
108018
|
className: "hidden @min-[768px]:inline",
|
|
108017
108019
|
children: Ja(I9(n), "p", { locale: t })
|
|
@@ -108046,15 +108048,15 @@ function L9({ days: e }) {
|
|
|
108046
108048
|
"data-slot": "event-calendar-time-grid",
|
|
108047
108049
|
className: "flex min-h-0 flex-1 flex-col overflow-hidden rounded-xl border bg-card shadow-xs",
|
|
108048
108050
|
children: [
|
|
108049
|
-
/* @__PURE__ */ V(
|
|
108050
|
-
/* @__PURE__ */ V(
|
|
108051
|
+
/* @__PURE__ */ V(E$e, { days: e }),
|
|
108052
|
+
/* @__PURE__ */ V(x$e, { days: e }),
|
|
108051
108053
|
/* @__PURE__ */ V(bi, {
|
|
108052
108054
|
className: "min-h-0 flex-1",
|
|
108053
108055
|
children: /* @__PURE__ */ H("div", {
|
|
108054
108056
|
className: i("relative flex", F9),
|
|
108055
108057
|
children: [
|
|
108056
|
-
/* @__PURE__ */ V(
|
|
108057
|
-
e.map((e) => /* @__PURE__ */ V(
|
|
108058
|
+
/* @__PURE__ */ V(k$e, { nowMinutes: c && l ? JV(l) : null }),
|
|
108059
|
+
e.map((e) => /* @__PURE__ */ V(T$e, { day: e }, C9(e))),
|
|
108058
108060
|
c && /* @__PURE__ */ V("div", {
|
|
108059
108061
|
className: i("pointer-events-none absolute inset-y-0 right-0", "left-11 @min-[768px]:left-16"),
|
|
108060
108062
|
children: /* @__PURE__ */ V(ZV, {
|
|
@@ -108073,13 +108075,13 @@ function L9({ days: e }) {
|
|
|
108073
108075
|
}
|
|
108074
108076
|
//#endregion
|
|
108075
108077
|
//#region lib/components/ui/widgets/event-calendar/partials/day-view.tsx
|
|
108076
|
-
function
|
|
108078
|
+
function A$e() {
|
|
108077
108079
|
let { cursorDate: e } = y9();
|
|
108078
108080
|
return /* @__PURE__ */ V(L9, { days: [e] });
|
|
108079
108081
|
}
|
|
108080
108082
|
//#endregion
|
|
108081
108083
|
//#region lib/components/ui/widgets/event-calendar/use-day-keys.ts
|
|
108082
|
-
function
|
|
108084
|
+
function j$e(e) {
|
|
108083
108085
|
let { locale: t } = uo(), { cursorDate: n, setCursor: r, chromeActions: i, weekStartsOn: a } = y9();
|
|
108084
108086
|
return (o, s) => {
|
|
108085
108087
|
if (o.target !== o.currentTarget) return;
|
|
@@ -108094,7 +108096,7 @@ function A$e(e) {
|
|
|
108094
108096
|
c && (o.preventDefault(), o.stopPropagation(), LC(c, n) || i.setDirection(c < n ? -1 : 1), i.requestDayFocus(!0), r(C9(c)));
|
|
108095
108097
|
};
|
|
108096
108098
|
}
|
|
108097
|
-
function
|
|
108099
|
+
function M$e() {
|
|
108098
108100
|
let { cursor: e, chrome: t, chromeActions: n } = y9(), r = R(null);
|
|
108099
108101
|
return F(() => {
|
|
108100
108102
|
if (!t.dayFocus) return;
|
|
@@ -108108,7 +108110,7 @@ function j$e() {
|
|
|
108108
108110
|
}
|
|
108109
108111
|
//#endregion
|
|
108110
108112
|
//#region lib/components/ui/widgets/event-calendar/partials/month-day-list.tsx
|
|
108111
|
-
function
|
|
108113
|
+
function N$e() {
|
|
108112
108114
|
let { locale: e } = uo(), { t } = k(), { cursorDate: n, events: r, onSlotClick: i, disabled: a } = y9(), o = a9(r, n), s = t("material.event-calendar.add", "Add event");
|
|
108113
108115
|
return /* @__PURE__ */ H("section", {
|
|
108114
108116
|
"data-slot": "event-calendar-day-list",
|
|
@@ -108138,7 +108140,7 @@ function M$e() {
|
|
|
108138
108140
|
}, e.id))]
|
|
108139
108141
|
});
|
|
108140
108142
|
}
|
|
108141
|
-
function
|
|
108143
|
+
function P$e(e) {
|
|
108142
108144
|
let t = e?.closest;
|
|
108143
108145
|
if (typeof t != "function") return !1;
|
|
108144
108146
|
let n = t.call(e, "[data-slot=event-calendar]");
|
|
@@ -108146,7 +108148,7 @@ function N$e(e) {
|
|
|
108146
108148
|
}
|
|
108147
108149
|
//#endregion
|
|
108148
108150
|
//#region lib/components/ui/widgets/event-calendar/partials/month-day-dialog.tsx
|
|
108149
|
-
function
|
|
108151
|
+
function F$e({ day: e, events: t, open: n, onOpenChange: r }) {
|
|
108150
108152
|
let { locale: i } = uo(), { t: a } = k(), { onSlotClick: o } = y9();
|
|
108151
108153
|
return /* @__PURE__ */ V(Dr, {
|
|
108152
108154
|
open: n,
|
|
@@ -108169,18 +108171,18 @@ function P$e({ day: e, events: t, open: n, onOpenChange: r }) {
|
|
|
108169
108171
|
}
|
|
108170
108172
|
//#endregion
|
|
108171
108173
|
//#region lib/components/ui/widgets/event-calendar/partials/month-day-cell.tsx
|
|
108172
|
-
function
|
|
108174
|
+
function I$e({ day: e, month: t, draft: n, draggedRef: r }) {
|
|
108173
108175
|
let { t: a } = k(), { locale: o } = uo(), { events: s, disabled: c, onSlotClick: l, today: u, cursorDate: d, density: f, narrow: p, setCursor: m } = y9(), h = AC(e, d), [g, _] = z(!1), v = a9(s, e), y = !LC(e, t), b = AC(e, u), x = f === "compact", S = Ja(e, "PPPP", { locale: o }), C = v.length > 0 ? `${S}, ${a("material.event-calendar.events", "{count} events", { count: v.length })}` : S, w = !!(n && m9(e, n.from, n.to)), T = (t) => {
|
|
108174
108176
|
if (p) {
|
|
108175
108177
|
m(C9(e));
|
|
108176
108178
|
return;
|
|
108177
108179
|
}
|
|
108178
|
-
if (
|
|
108180
|
+
if (P$e(t) && v.length > 0) {
|
|
108179
108181
|
_(!0);
|
|
108180
108182
|
return;
|
|
108181
108183
|
}
|
|
108182
108184
|
l ? l(p9(e)) : v.length > 0 && _(!0);
|
|
108183
|
-
}, E =
|
|
108185
|
+
}, E = j$e(() => T(null));
|
|
108184
108186
|
return /* @__PURE__ */ H(No, {
|
|
108185
108187
|
id: T9(e),
|
|
108186
108188
|
data: {
|
|
@@ -108223,7 +108225,7 @@ function F$e({ day: e, month: t, draft: n, draggedRef: r }) {
|
|
|
108223
108225
|
className: "size-1.5 rounded-full bg-(--dot)"
|
|
108224
108226
|
}, e.id))
|
|
108225
108227
|
}),
|
|
108226
|
-
/* @__PURE__ */ V(
|
|
108228
|
+
/* @__PURE__ */ V(F$e, {
|
|
108227
108229
|
day: e,
|
|
108228
108230
|
events: v,
|
|
108229
108231
|
open: g,
|
|
@@ -108234,7 +108236,7 @@ function F$e({ day: e, month: t, draft: n, draggedRef: r }) {
|
|
|
108234
108236
|
}
|
|
108235
108237
|
//#endregion
|
|
108236
108238
|
//#region lib/components/ui/widgets/event-calendar/partials/month-more.tsx
|
|
108237
|
-
function
|
|
108239
|
+
function L$e({ events: e, column: t }) {
|
|
108238
108240
|
let { t: n } = k(), { disabled: r } = y9();
|
|
108239
108241
|
return e.length === 0 ? null : /* @__PURE__ */ V("div", {
|
|
108240
108242
|
className: "pointer-events-auto min-w-0",
|
|
@@ -108259,19 +108261,19 @@ function I$e({ events: e, column: t }) {
|
|
|
108259
108261
|
}
|
|
108260
108262
|
//#endregion
|
|
108261
108263
|
//#region lib/components/ui/widgets/event-calendar/partials/month-week-row.tsx
|
|
108262
|
-
function
|
|
108263
|
-
let { events: i } = y9(), a = A9(i, e), o = a.filter((e) => e.row < 3), s = e.map((e, t) =>
|
|
108264
|
+
function R$e({ days: e, month: t, draft: n, draggedRef: r }) {
|
|
108265
|
+
let { events: i } = y9(), a = A9(i, e), o = a.filter((e) => e.row < 3), s = e.map((e, t) => b$e(a, t)), c = +!!s.some((e) => e.length > 0), l = Math.max(o.reduce((e, t) => Math.max(e, t.row + 1), 0) + c, 3);
|
|
108264
108266
|
return /* @__PURE__ */ H("div", {
|
|
108265
108267
|
className: "relative grid grid-cols-7",
|
|
108266
108268
|
style: { "--span-rows": String(l) },
|
|
108267
|
-
children: [e.map((e) => /* @__PURE__ */ V(
|
|
108269
|
+
children: [e.map((e) => /* @__PURE__ */ V(I$e, {
|
|
108268
108270
|
day: e,
|
|
108269
108271
|
month: t,
|
|
108270
108272
|
draft: n,
|
|
108271
108273
|
draggedRef: r
|
|
108272
108274
|
}, e.toISOString())), /* @__PURE__ */ H("div", {
|
|
108273
108275
|
className: "pointer-events-none absolute inset-x-0 top-8 bottom-0 hidden grid-cols-7 content-start gap-y-0.5 px-px @min-[768px]:grid",
|
|
108274
|
-
children: [o.map((e) => /* @__PURE__ */ V(N9, { segment: e }, e.event.id)), s.map((t, n) => /* @__PURE__ */ V(
|
|
108276
|
+
children: [o.map((e) => /* @__PURE__ */ V(N9, { segment: e }, e.event.id)), s.map((t, n) => /* @__PURE__ */ V(L$e, {
|
|
108275
108277
|
events: t,
|
|
108276
108278
|
column: n
|
|
108277
108279
|
}, e[n]?.toISOString() ?? n))]
|
|
@@ -108280,13 +108282,13 @@ function L$e({ days: e, month: t, draft: n, draggedRef: r }) {
|
|
|
108280
108282
|
}
|
|
108281
108283
|
//#endregion
|
|
108282
108284
|
//#region lib/components/ui/widgets/event-calendar/partials/month-view.tsx
|
|
108283
|
-
function
|
|
108284
|
-
let { locale: e } = uo(), { cursorDate: t, disabled: n, onSlotClick: r, weekStartsOn: a, narrow: o } = y9(), s =
|
|
108285
|
+
function z$e() {
|
|
108286
|
+
let { locale: e } = uo(), { cursorDate: t, disabled: n, onSlotClick: r, weekStartsOn: a, narrow: o } = y9(), s = a$e(t, e, a), c = l9(t, e, !1, a), l = r$e(n$e(t, e, a)), u = M9({
|
|
108285
108287
|
onSlotClick: r,
|
|
108286
108288
|
disabled: n
|
|
108287
108289
|
});
|
|
108288
108290
|
return /* @__PURE__ */ H("div", {
|
|
108289
|
-
ref:
|
|
108291
|
+
ref: M$e(),
|
|
108290
108292
|
"data-slot": "event-calendar-month",
|
|
108291
108293
|
className: "flex min-h-0 flex-1 flex-col overflow-y-auto rounded-xl border bg-card shadow-xs",
|
|
108292
108294
|
onPointerDown: u.onPointerDown,
|
|
@@ -108302,14 +108304,14 @@ function R$e() {
|
|
|
108302
108304
|
}),
|
|
108303
108305
|
/* @__PURE__ */ V("div", {
|
|
108304
108306
|
className: i("flex flex-col", !o && "flex-1 [&>*]:flex-1", o && "[&>*:last-child>*]:border-b-0"),
|
|
108305
|
-
children: l.map((e) => /* @__PURE__ */ V(
|
|
108307
|
+
children: l.map((e) => /* @__PURE__ */ V(R$e, {
|
|
108306
108308
|
days: e,
|
|
108307
108309
|
month: t,
|
|
108308
108310
|
draft: u.draft,
|
|
108309
108311
|
draggedRef: u.dragged
|
|
108310
108312
|
}, e[0]?.toISOString() ?? "week"))
|
|
108311
108313
|
}),
|
|
108312
|
-
o && /* @__PURE__ */ V(
|
|
108314
|
+
o && /* @__PURE__ */ V(N$e, {})
|
|
108313
108315
|
]
|
|
108314
108316
|
});
|
|
108315
108317
|
}
|
|
@@ -108321,26 +108323,26 @@ function R9({ workweek: e = !1 }) {
|
|
|
108321
108323
|
}
|
|
108322
108324
|
//#endregion
|
|
108323
108325
|
//#region lib/components/ui/widgets/event-calendar/partials/calendar-board.tsx
|
|
108324
|
-
function
|
|
108326
|
+
function B$e(e, t, n) {
|
|
108325
108327
|
let r = e.over;
|
|
108326
108328
|
if (!r) return t * 60;
|
|
108327
108329
|
let i = e.active.rect.current.translated;
|
|
108328
108330
|
return n9(i ? i.top - r.rect.top + i.height / 2 : 0, r.rect.height, t, n);
|
|
108329
108331
|
}
|
|
108330
|
-
function
|
|
108332
|
+
function V$e() {
|
|
108331
108333
|
let { t: e } = k(), { view: t, events: n, eventsById: r, replaceEvent: a, disabled: o, startHour: s, endHour: c, chrome: l, shift: u, dragLabel: d, cursorDate: f, weekStartsOn: p } = y9(), { locale: m } = uo(), h = !!l.query.trim() && n.length === 0;
|
|
108332
108334
|
return /* @__PURE__ */ H(Oo, {
|
|
108333
108335
|
disabled: o,
|
|
108334
|
-
collisionDetection:
|
|
108336
|
+
collisionDetection: ZQe,
|
|
108335
108337
|
onDragEnd: (e) => {
|
|
108336
108338
|
if (!e.over) return;
|
|
108337
|
-
let t = String(e.active.id), n = String(e.over.id), i = E9(t,
|
|
108339
|
+
let t = String(e.active.id), n = String(e.over.id), i = E9(t, u$e), o = E9(n, S9), l = E9(n, x9), u = E9(n, b9), d = B$e(e, s, c), f = i ?? t;
|
|
108338
108340
|
if (o) {
|
|
108339
108341
|
a(f, (e) => c9(e, r9(w9(o), d)));
|
|
108340
108342
|
return;
|
|
108341
108343
|
}
|
|
108342
108344
|
if (l) {
|
|
108343
|
-
a(f, (e) =>
|
|
108345
|
+
a(f, (e) => QQe(e, w9(l)));
|
|
108344
108346
|
return;
|
|
108345
108347
|
}
|
|
108346
108348
|
if (u) {
|
|
@@ -108356,7 +108358,7 @@ function B$e() {
|
|
|
108356
108358
|
"aria-label": d,
|
|
108357
108359
|
onKeyDown: o ? void 0 : (e) => {
|
|
108358
108360
|
if (e.target.closest?.("input,textarea,[contenteditable=true]")) return;
|
|
108359
|
-
let t =
|
|
108361
|
+
let t = p$e(e, { focusedEventId: l.focusedEventId });
|
|
108360
108362
|
t && (t.type === "shift" && u(t.delta), t.type === "move-day" && a(t.eventId, (e) => g9(e, t.days, 0)), t.type === "move-minutes" && a(t.eventId, (e) => g9(e, 0, t.minutes)));
|
|
108361
108363
|
},
|
|
108362
108364
|
children: h ? /* @__PURE__ */ V(wo, {
|
|
@@ -108368,13 +108370,13 @@ function B$e() {
|
|
|
108368
108370
|
"data-slot": "event-calendar-view",
|
|
108369
108371
|
className: i("flex min-h-0 flex-1 flex-col", "motion-safe:fade-in-0 motion-safe:animate-in motion-safe:duration-300 motion-safe:ease-out", l.direction > 0 && "motion-safe:slide-in-from-right-6", l.direction < 0 && "motion-safe:slide-in-from-left-6", l.direction === 0 && "motion-safe:zoom-in-[0.98]"),
|
|
108370
108372
|
children: [
|
|
108371
|
-
t === "month" && /* @__PURE__ */ V(
|
|
108373
|
+
t === "month" && /* @__PURE__ */ V(z$e, {}),
|
|
108372
108374
|
t === "week" && /* @__PURE__ */ V(R9, {}),
|
|
108373
108375
|
t === "workweek" && /* @__PURE__ */ V(R9, { workweek: !0 }),
|
|
108374
|
-
t === "day" && /* @__PURE__ */ V(
|
|
108375
|
-
t === "agenda" && /* @__PURE__ */ V(
|
|
108376
|
+
t === "day" && /* @__PURE__ */ V(A$e, {}),
|
|
108377
|
+
t === "agenda" && /* @__PURE__ */ V(y$e, {})
|
|
108376
108378
|
]
|
|
108377
|
-
},
|
|
108379
|
+
}, YQe(t, f, p, m))
|
|
108378
108380
|
}), !o && /* @__PURE__ */ V(Po, { children: (e) => {
|
|
108379
108381
|
let t = E9(String(e ?? ""), "resize:"), n = r.get(t ?? String(e ?? ""));
|
|
108380
108382
|
return n ? /* @__PURE__ */ V(D9, { event: n }) : null;
|
|
@@ -108383,7 +108385,7 @@ function B$e() {
|
|
|
108383
108385
|
}
|
|
108384
108386
|
//#endregion
|
|
108385
108387
|
//#region lib/components/ui/widgets/event-calendar/partials/calendar-sidebar.tsx
|
|
108386
|
-
function
|
|
108388
|
+
function H$e() {
|
|
108387
108389
|
let { locale: e } = uo(), { t } = k(), { cursorDate: n, setCursor: r, view: i, weekStartsOn: a, events: o, today: s, disabled: c, chromeActions: l } = y9(), [u, d] = z(n);
|
|
108388
108390
|
F(() => {
|
|
108389
108391
|
d((e) => LC(e, n) ? e : n);
|
|
@@ -108407,7 +108409,7 @@ function V$e() {
|
|
|
108407
108409
|
onMonthChange: d,
|
|
108408
108410
|
today: s,
|
|
108409
108411
|
weekStartsOn: a,
|
|
108410
|
-
highlight:
|
|
108412
|
+
highlight: XQe(i, n, a, e),
|
|
108411
108413
|
markers: f,
|
|
108412
108414
|
disabled: c,
|
|
108413
108415
|
onSelect: (e) => {
|
|
@@ -108430,7 +108432,7 @@ function V$e() {
|
|
|
108430
108432
|
}
|
|
108431
108433
|
//#endregion
|
|
108432
108434
|
//#region lib/components/ui/widgets/event-calendar/partials/calendar-date-picker.tsx
|
|
108433
|
-
function
|
|
108435
|
+
function U$e() {
|
|
108434
108436
|
let { t: e } = k(), { locale: t } = uo(), { view: n, cursorDate: r, setCursor: a, disabled: o, weekStartsOn: s, narrow: c } = y9(), [l, u] = z(!1), [d, f] = z(r), p = u9(r, n, t, s, !0), m = c && n !== "month" ? p : u9(r, n, t, s);
|
|
108435
108437
|
return /* @__PURE__ */ H(ji, {
|
|
108436
108438
|
open: l,
|
|
@@ -108471,7 +108473,7 @@ function H$e() {
|
|
|
108471
108473
|
}
|
|
108472
108474
|
//#endregion
|
|
108473
108475
|
//#region lib/components/ui/widgets/event-calendar/partials/calendar-view-toggle.tsx
|
|
108474
|
-
function
|
|
108476
|
+
function W$e() {
|
|
108475
108477
|
let { t: e } = k(), { view: t, setView: n, disabled: r, views: i } = y9(), a = {
|
|
108476
108478
|
month: e("material.event-calendar.month", "Month"),
|
|
108477
108479
|
week: e("material.event-calendar.week", "Week"),
|
|
@@ -108495,7 +108497,7 @@ function U$e() {
|
|
|
108495
108497
|
}
|
|
108496
108498
|
//#endregion
|
|
108497
108499
|
//#region lib/components/ui/widgets/event-calendar/partials/calendar-toolbar.tsx
|
|
108498
|
-
function
|
|
108500
|
+
function G$e() {
|
|
108499
108501
|
let { t: e } = k(), { shift: t, goToday: n, disabled: r, searchable: i, chrome: a, chromeActions: o, narrow: s } = y9(), [c, l] = z(!1), u = e("material.event-calendar.search", "Search events"), d = e("material.event-calendar.today", "Today"), f = s && !c && !a.query;
|
|
108500
108502
|
return /* @__PURE__ */ H("div", {
|
|
108501
108503
|
"data-slot": "event-calendar-toolbar",
|
|
@@ -108538,7 +108540,7 @@ function W$e() {
|
|
|
108538
108540
|
children: /* @__PURE__ */ V(as, {})
|
|
108539
108541
|
})]
|
|
108540
108542
|
}),
|
|
108541
|
-
/* @__PURE__ */ V(
|
|
108543
|
+
/* @__PURE__ */ V(U$e, {}),
|
|
108542
108544
|
i && f && /* @__PURE__ */ V(j, {
|
|
108543
108545
|
type: "button",
|
|
108544
108546
|
variant: "ghost",
|
|
@@ -108549,7 +108551,7 @@ function W$e() {
|
|
|
108549
108551
|
onClick: () => l(!0),
|
|
108550
108552
|
children: /* @__PURE__ */ V(Bs, {})
|
|
108551
108553
|
}),
|
|
108552
|
-
/* @__PURE__ */ V(
|
|
108554
|
+
/* @__PURE__ */ V(W$e, {}),
|
|
108553
108555
|
i && !f && /* @__PURE__ */ V("div", {
|
|
108554
108556
|
className: "w-full @min-[768px]:ml-auto @min-[768px]:w-auto @min-[768px]:max-w-xs @min-[64rem]:ml-0",
|
|
108555
108557
|
children: /* @__PURE__ */ V(Ot, {
|
|
@@ -108567,7 +108569,7 @@ function W$e() {
|
|
|
108567
108569
|
}
|
|
108568
108570
|
//#endregion
|
|
108569
108571
|
//#region lib/components/ui/widgets/event-calendar/use-calendar-width.ts
|
|
108570
|
-
function
|
|
108572
|
+
function K$e(e) {
|
|
108571
108573
|
let [t, n] = z(!1);
|
|
108572
108574
|
return F(() => {
|
|
108573
108575
|
let t = e.current;
|
|
@@ -108625,7 +108627,7 @@ function B9({ events: e, defaultEvents: t = [], onEventsChange: n, onChange: r,
|
|
|
108625
108627
|
let a = O.find((e) => e.id === t);
|
|
108626
108628
|
if (!a || a.disabled) return;
|
|
108627
108629
|
let o = i(a);
|
|
108628
|
-
if (!
|
|
108630
|
+
if (!c$e(a, o)) return;
|
|
108629
108631
|
let s = O.map((e) => e.id === t ? o : e);
|
|
108630
108632
|
e === void 0 && x(s), n?.(s), r?.({
|
|
108631
108633
|
events: s,
|
|
@@ -108673,7 +108675,7 @@ function B9({ events: e, defaultEvents: t = [], onEventsChange: n, onChange: r,
|
|
|
108673
108675
|
D.setDirection(y < ne ? -1 : 1), ie(C9(y));
|
|
108674
108676
|
},
|
|
108675
108677
|
shift: (e, t = ee) => {
|
|
108676
|
-
D.setDirection(e < 0 ? -1 : 1), ie(C9(
|
|
108678
|
+
D.setDirection(e < 0 ? -1 : 1), ie(C9(i$e(ne, t, e)));
|
|
108677
108679
|
},
|
|
108678
108680
|
replaceEvent: ae,
|
|
108679
108681
|
removeEvent: oe
|
|
@@ -108681,15 +108683,15 @@ function B9({ events: e, defaultEvents: t = [], onEventsChange: n, onChange: r,
|
|
|
108681
108683
|
}
|
|
108682
108684
|
//#endregion
|
|
108683
108685
|
//#region lib/components/ui/widgets/event-calendar/event-calendar.tsx
|
|
108684
|
-
var
|
|
108686
|
+
var q$e = [
|
|
108685
108687
|
"month",
|
|
108686
108688
|
"week",
|
|
108687
108689
|
"workweek",
|
|
108688
108690
|
"day",
|
|
108689
108691
|
"agenda"
|
|
108690
108692
|
];
|
|
108691
|
-
function
|
|
108692
|
-
let { t: te } = k(), ne = R(null), re =
|
|
108693
|
+
function J$e({ events: e, defaultEvents: t, onEventsChange: n, onChange: r, onEventClick: a, onSlotClick: o, view: s, defaultView: c, onViewChange: l, date: u, defaultDate: d, onDateChange: f, startHour: p, endHour: m, hourHeight: h, slotDurationMinutes: g, disabled: _, className: v, renderEvent: y, toolbar: b, searchable: x = !0, weekStartsOn: S, density: C, views: w = q$e, phoneView: T, sidebar: E = !1, eventVariant: D = "soft", now: O, scrollToHour: ee = 7 }) {
|
|
108694
|
+
let { t: te } = k(), ne = R(null), re = K$e(ne), ie = B9({
|
|
108693
108695
|
events: e,
|
|
108694
108696
|
defaultEvents: t,
|
|
108695
108697
|
onEventsChange: n,
|
|
@@ -108708,7 +108710,7 @@ function q$e({ events: e, defaultEvents: t, onEventsChange: n, onChange: r, onEv
|
|
|
108708
108710
|
weekStartsOn: S,
|
|
108709
108711
|
density: C,
|
|
108710
108712
|
now: O
|
|
108711
|
-
}), ae = L(() => ie.events.filter((e) =>
|
|
108713
|
+
}), ae = L(() => ie.events.filter((e) => l$e(e, ie.chrome.query)), [ie.chrome.query, ie.events]), oe = re && T && !ie.chrome.viewPicked ? T : ie.view;
|
|
108712
108714
|
return /* @__PURE__ */ V(v9, {
|
|
108713
108715
|
value: {
|
|
108714
108716
|
...ie,
|
|
@@ -108731,11 +108733,11 @@ function q$e({ events: e, defaultEvents: t, onEventsChange: n, onChange: r, onEv
|
|
|
108731
108733
|
"data-density": ie.density,
|
|
108732
108734
|
"data-view": oe,
|
|
108733
108735
|
className: i("@container flex min-h-[32rem] flex-col gap-3", v),
|
|
108734
|
-
children: [b === void 0 ? /* @__PURE__ */ V(
|
|
108736
|
+
children: [b === void 0 ? /* @__PURE__ */ V(G$e, {}) : b, /* @__PURE__ */ H("div", {
|
|
108735
108737
|
className: "flex min-h-0 flex-1 gap-4",
|
|
108736
|
-
children: [E && /* @__PURE__ */ V(
|
|
108738
|
+
children: [E && /* @__PURE__ */ V(H$e, {}), /* @__PURE__ */ V("div", {
|
|
108737
108739
|
className: "flex min-h-0 min-w-0 flex-1 flex-col",
|
|
108738
|
-
children: /* @__PURE__ */ V(
|
|
108740
|
+
children: /* @__PURE__ */ V(V$e, {})
|
|
108739
108741
|
})]
|
|
108740
108742
|
})]
|
|
108741
108743
|
})
|
|
@@ -108757,7 +108759,7 @@ function U9() {
|
|
|
108757
108759
|
}
|
|
108758
108760
|
//#endregion
|
|
108759
108761
|
//#region lib/components/ui/widgets/kanban/kanban.keyboard.ts
|
|
108760
|
-
function
|
|
108762
|
+
function Y$e(e, t, n) {
|
|
108761
108763
|
for (let r of t) {
|
|
108762
108764
|
let t = n[r.id] ?? [], i = t.indexOf(e);
|
|
108763
108765
|
if (i >= 0) return {
|
|
@@ -108773,7 +108775,7 @@ function W9(e, t, n) {
|
|
|
108773
108775
|
if (n === "ArrowLeft") return e[r - 1];
|
|
108774
108776
|
if (n === "ArrowRight") return e[r + 1];
|
|
108775
108777
|
}
|
|
108776
|
-
function
|
|
108778
|
+
function X$e(e, t) {
|
|
108777
108779
|
let { key: n } = e;
|
|
108778
108780
|
if (![
|
|
108779
108781
|
"ArrowUp",
|
|
@@ -108786,7 +108788,7 @@ function Y$e(e, t) {
|
|
|
108786
108788
|
type: "focus",
|
|
108787
108789
|
itemId: a
|
|
108788
108790
|
}) : null;
|
|
108789
|
-
let o =
|
|
108791
|
+
let o = Y$e(t.focusedId, t.columns, t.visibleByColumn);
|
|
108790
108792
|
if (!o) return null;
|
|
108791
108793
|
if (i) {
|
|
108792
108794
|
if (r.has(t.focusedId)) return null;
|
|
@@ -108828,9 +108830,9 @@ function Y$e(e, t) {
|
|
|
108828
108830
|
}
|
|
108829
108831
|
//#endregion
|
|
108830
108832
|
//#region lib/components/ui/widgets/kanban/kanban.utils.ts
|
|
108831
|
-
var
|
|
108833
|
+
var Z$e = "column:";
|
|
108832
108834
|
function G9(e) {
|
|
108833
|
-
return `${
|
|
108835
|
+
return `${Z$e}${e}`;
|
|
108834
108836
|
}
|
|
108835
108837
|
function K9(e) {
|
|
108836
108838
|
return e.startsWith("column:") ? e.slice(7) : null;
|
|
@@ -108838,23 +108840,23 @@ function K9(e) {
|
|
|
108838
108840
|
function q9(e, t) {
|
|
108839
108841
|
return e.find((e) => e.itemIds.includes(t))?.id ?? null;
|
|
108840
108842
|
}
|
|
108841
|
-
var
|
|
108843
|
+
var Q$e = (e) => {
|
|
108842
108844
|
let t = jo(e);
|
|
108843
108845
|
return t.length > 0 ? t : Mo(e);
|
|
108844
108846
|
};
|
|
108845
|
-
function
|
|
108847
|
+
function $$e(e, t, n) {
|
|
108846
108848
|
let r = e.findIndex((e) => e.id === t), i = e.findIndex((e) => e.id === n);
|
|
108847
108849
|
return r < 0 || i < 0 || r === i ? e : Ao(e, r, i);
|
|
108848
108850
|
}
|
|
108849
|
-
function
|
|
108851
|
+
function e1e(e, t) {
|
|
108850
108852
|
let n = t.trim().toLowerCase();
|
|
108851
108853
|
return !n || [e.title, e.subtitle].filter((e) => !!e).some((e) => e.toLowerCase().includes(n));
|
|
108852
108854
|
}
|
|
108853
|
-
var
|
|
108854
|
-
function
|
|
108855
|
-
return `${
|
|
108855
|
+
var t1e = "group:";
|
|
108856
|
+
function J9(e, t) {
|
|
108857
|
+
return `${t1e}${e}:${t ?? "_"}`;
|
|
108856
108858
|
}
|
|
108857
|
-
function
|
|
108859
|
+
function n1e(e) {
|
|
108858
108860
|
if (!e.startsWith("group:")) return null;
|
|
108859
108861
|
let t = e.slice(6), n = t.indexOf(":");
|
|
108860
108862
|
if (n < 0) return null;
|
|
@@ -108864,13 +108866,13 @@ function J9(e) {
|
|
|
108864
108866
|
groupId: r === "_" ? null : r
|
|
108865
108867
|
};
|
|
108866
108868
|
}
|
|
108867
|
-
function
|
|
108869
|
+
function r1e(e, t, n) {
|
|
108868
108870
|
return e.map((e) => e.id === t ? {
|
|
108869
108871
|
...e,
|
|
108870
108872
|
groupId: n ?? void 0
|
|
108871
108873
|
} : e);
|
|
108872
108874
|
}
|
|
108873
|
-
function
|
|
108875
|
+
function i1e(e, t, n, r) {
|
|
108874
108876
|
let i = Y9(e, t, r), a = n.map((e) => ({
|
|
108875
108877
|
group: e,
|
|
108876
108878
|
itemIds: i.filter((n) => t.get(n)?.groupId === e.id)
|
|
@@ -108886,17 +108888,17 @@ function r1e(e, t, n, r) {
|
|
|
108886
108888
|
function Y9(e, t, n) {
|
|
108887
108889
|
return e.itemIds.filter((e) => {
|
|
108888
108890
|
let r = t.get(e);
|
|
108889
|
-
return r ?
|
|
108891
|
+
return r ? e1e(r, n) : !1;
|
|
108890
108892
|
});
|
|
108891
108893
|
}
|
|
108892
|
-
function
|
|
108894
|
+
function a1e(e, t) {
|
|
108893
108895
|
return e.wip == null || e.itemIds.includes(t) ? !1 : e.itemIds.length >= e.wip;
|
|
108894
108896
|
}
|
|
108895
|
-
function
|
|
108897
|
+
function o1e(e, t, n, r) {
|
|
108896
108898
|
let i = q9(e, t);
|
|
108897
108899
|
if (!i) return e;
|
|
108898
108900
|
let a = e.find((e) => e.id === n);
|
|
108899
|
-
return !a ||
|
|
108901
|
+
return !a || a1e(a, t) ? e : e.map((e) => e.id === i && e.id === n ? {
|
|
108900
108902
|
...e,
|
|
108901
108903
|
itemIds: Lo(e.itemIds, [t], r)
|
|
108902
108904
|
} : e.id === i ? {
|
|
@@ -108909,7 +108911,7 @@ function a1e(e, t, n, r) {
|
|
|
108909
108911
|
}
|
|
108910
108912
|
//#endregion
|
|
108911
108913
|
//#region lib/components/ui/widgets/kanban/partials/kanban-card-preview.tsx
|
|
108912
|
-
function
|
|
108914
|
+
function s1e({ item: e }) {
|
|
108913
108915
|
let { t } = k(), { disabled: n, updateItem: r } = U9(), i = n || e.disabled;
|
|
108914
108916
|
return /* @__PURE__ */ H("div", {
|
|
108915
108917
|
className: "flex flex-col gap-2",
|
|
@@ -108977,13 +108979,13 @@ function X9({ item: e, column: t, dragLabel: n, renderCard: r }) {
|
|
|
108977
108979
|
className: "w-72 p-3",
|
|
108978
108980
|
"aria-label": e.title,
|
|
108979
108981
|
onClick: (e) => e.stopPropagation(),
|
|
108980
|
-
children: /* @__PURE__ */ V(
|
|
108982
|
+
children: /* @__PURE__ */ V(s1e, { item: e })
|
|
108981
108983
|
})]
|
|
108982
108984
|
});
|
|
108983
108985
|
}
|
|
108984
108986
|
//#endregion
|
|
108985
108987
|
//#region lib/components/ui/widgets/kanban/partials/kanban-column-header.tsx
|
|
108986
|
-
function
|
|
108988
|
+
function c1e({ column: e, collapsed: t, overWip: n, countLabel: r }) {
|
|
108987
108989
|
let { t: a } = k(), { disabled: o, reorderableColumns: s, dragColumnLabel: c, onAddCard: l, chromeActions: u } = U9(), d = t ? a("material.kanban.expand-column", "Expand column") : a("material.kanban.collapse-column", "Collapse column"), f = n ? a("material.kanban.wip-full", "Column is at WIP limit") : a("material.kanban.add-card", "Add card");
|
|
108988
108990
|
return /* @__PURE__ */ H("div", {
|
|
108989
108991
|
className: "flex items-center gap-1 border-b px-2 py-2",
|
|
@@ -109058,7 +109060,7 @@ function Z9({ column: e, group: t = null }) {
|
|
|
109058
109060
|
}
|
|
109059
109061
|
//#endregion
|
|
109060
109062
|
//#region lib/components/ui/widgets/kanban/partials/kanban-group.tsx
|
|
109061
|
-
function
|
|
109063
|
+
function l1e({ column: e, group: t, itemIds: n }) {
|
|
109062
109064
|
let { t: r } = k(), { itemsById: a, chrome: o, chromeActions: s, disabled: c, dragLabel: l, renderCard: u, onAddCard: d } = U9(), f = t?.id ?? null, p = f ? o.collapsedGroupIds.includes(f) : !1, m = t?.title ?? r("material.kanban.ungrouped", "Ungrouped"), h = e.wip != null && e.itemIds.length >= e.wip, g = h ? r("material.kanban.wip-full", "Column is at WIP limit") : r("material.kanban.add-card", "Add card"), _ = o.composing?.columnId === e.id && (o.composing.groupId ?? null) === f, v = p ? r("material.kanban.expand-group", "Expand group") : r("material.kanban.collapse-group", "Collapse group");
|
|
109063
109065
|
return /* @__PURE__ */ H("li", {
|
|
109064
109066
|
className: "list-none",
|
|
@@ -109105,7 +109107,7 @@ function c1e({ column: e, group: t, itemIds: n }) {
|
|
|
109105
109107
|
})
|
|
109106
109108
|
]
|
|
109107
109109
|
}), !p && /* @__PURE__ */ V(No, {
|
|
109108
|
-
id:
|
|
109110
|
+
id: J9(e.id, f),
|
|
109109
109111
|
data: {
|
|
109110
109112
|
type: "group-drop",
|
|
109111
109113
|
columnId: e.id,
|
|
@@ -109136,7 +109138,7 @@ function c1e({ column: e, group: t, itemIds: n }) {
|
|
|
109136
109138
|
}
|
|
109137
109139
|
//#endregion
|
|
109138
109140
|
//#region lib/components/ui/widgets/kanban/partials/kanban-column.tsx
|
|
109139
|
-
function
|
|
109141
|
+
function u1e({ column: e }) {
|
|
109140
109142
|
let { t } = k(), { itemsById: n, groups: r, chrome: a, disabled: o, reorderableColumns: s, dragLabel: c, renderCard: l } = U9(), u = Y9(e, n, a.query), d = r.length > 0, f = a.collapsedColumnIds.includes(e.id), p = e.wip != null && e.itemIds.length >= e.wip, m = a.composing?.columnId === e.id && a.composing.groupId == null, h = e.wip == null ? String(e.itemIds.length) : t("material.kanban.wip", "{count}/{max}", {
|
|
109141
109143
|
count: e.itemIds.length,
|
|
109142
109144
|
max: e.wip
|
|
@@ -109158,14 +109160,14 @@ function l1e({ column: e }) {
|
|
|
109158
109160
|
},
|
|
109159
109161
|
disabled: o,
|
|
109160
109162
|
className: i("flex h-full flex-col overflow-hidden rounded border bg-background", !f && "min-h-40", p && "data-[over]:ring-2 data-[over]:ring-error/60"),
|
|
109161
|
-
children: [/* @__PURE__ */ V(
|
|
109163
|
+
children: [/* @__PURE__ */ V(c1e, {
|
|
109162
109164
|
column: e,
|
|
109163
109165
|
collapsed: f,
|
|
109164
109166
|
overWip: p,
|
|
109165
109167
|
countLabel: h
|
|
109166
109168
|
}), f ? null : d ? /* @__PURE__ */ V("ul", {
|
|
109167
109169
|
className: "flex min-h-40 flex-1 list-none flex-col gap-1 overflow-y-auto p-2",
|
|
109168
|
-
children:
|
|
109170
|
+
children: i1e(e, n, r, a.query).map((t) => /* @__PURE__ */ V(l1e, {
|
|
109169
109171
|
column: e,
|
|
109170
109172
|
group: t.group,
|
|
109171
109173
|
itemIds: t.itemIds
|
|
@@ -109198,11 +109200,11 @@ function l1e({ column: e }) {
|
|
|
109198
109200
|
}
|
|
109199
109201
|
//#endregion
|
|
109200
109202
|
//#region lib/components/ui/widgets/kanban/partials/kanban-board.tsx
|
|
109201
|
-
function
|
|
109203
|
+
function d1e() {
|
|
109202
109204
|
let { columns: e, itemsById: t, moveItem: n, reorderColumns: r, disabled: i, chrome: a, chromeActions: o, dragLabel: s, renderCard: c } = U9();
|
|
109203
109205
|
return /* @__PURE__ */ H(Oo, {
|
|
109204
109206
|
disabled: i,
|
|
109205
|
-
collisionDetection:
|
|
109207
|
+
collisionDetection: Q$e,
|
|
109206
109208
|
onDragEnd: (i) => {
|
|
109207
109209
|
let a = String(i.active.id);
|
|
109208
109210
|
if (!i.over) return;
|
|
@@ -109214,7 +109216,7 @@ function u1e() {
|
|
|
109214
109216
|
t && r(s, t);
|
|
109215
109217
|
return;
|
|
109216
109218
|
}
|
|
109217
|
-
let c =
|
|
109219
|
+
let c = n1e(o);
|
|
109218
109220
|
if (c) {
|
|
109219
109221
|
n(a, c.columnId, void 0, c.groupId);
|
|
109220
109222
|
return;
|
|
@@ -109238,7 +109240,7 @@ function u1e() {
|
|
|
109238
109240
|
"aria-label": s,
|
|
109239
109241
|
className: "flex min-h-96 snap-x snap-mandatory gap-3 overflow-x-auto pb-2 outline-none focus-visible:ring-2 focus-visible:ring-ring/50 @min-[768px]:snap-none",
|
|
109240
109242
|
onKeyDown: i ? void 0 : (r) => {
|
|
109241
|
-
let i = Object.fromEntries(e.map((e) => [e.id, Y9(e, t, a.query)])), s = new Set([...t.values()].filter((e) => e.disabled).map((e) => e.id)), c =
|
|
109243
|
+
let i = Object.fromEntries(e.map((e) => [e.id, Y9(e, t, a.query)])), s = new Set([...t.values()].filter((e) => e.disabled).map((e) => e.id)), c = X$e(r, {
|
|
109242
109244
|
focusedId: a.focusedId,
|
|
109243
109245
|
columns: e,
|
|
109244
109246
|
visibleByColumn: i,
|
|
@@ -109246,7 +109248,7 @@ function u1e() {
|
|
|
109246
109248
|
});
|
|
109247
109249
|
c && (c.type === "focus" ? o.setFocusedId(c.itemId) : n(c.itemId, c.toColumnId, c.beforeId));
|
|
109248
109250
|
},
|
|
109249
|
-
children: e.map((e) => /* @__PURE__ */ V(
|
|
109251
|
+
children: e.map((e) => /* @__PURE__ */ V(u1e, { column: e }, e.id))
|
|
109250
109252
|
})
|
|
109251
109253
|
}), /* @__PURE__ */ V(Po, { children: (n) => {
|
|
109252
109254
|
let r = K9(String(n));
|
|
@@ -109322,9 +109324,9 @@ function $9({ columns: e, defaultColumns: t = [], items: n, onColumnsChange: r,
|
|
|
109322
109324
|
if (s) return;
|
|
109323
109325
|
let o = q9(f, e);
|
|
109324
109326
|
if (!o) return;
|
|
109325
|
-
let c = m.get(e)?.groupId ?? null, l =
|
|
109327
|
+
let c = m.get(e)?.groupId ?? null, l = o1e(f, e, t, r), u = a !== void 0 && a !== c;
|
|
109326
109328
|
if (l === f && !u) return;
|
|
109327
|
-
let d = a === void 0 ? n :
|
|
109329
|
+
let d = a === void 0 ? n : r1e(n, e, a);
|
|
109328
109330
|
u && i?.(d), p(l, {
|
|
109329
109331
|
itemId: e,
|
|
109330
109332
|
fromColumnId: o,
|
|
@@ -109356,7 +109358,7 @@ function $9({ columns: e, defaultColumns: t = [], items: n, onColumnsChange: r,
|
|
|
109356
109358
|
]),
|
|
109357
109359
|
reorderColumns: P((e, t) => {
|
|
109358
109360
|
if (s) return;
|
|
109359
|
-
let n =
|
|
109361
|
+
let n = $$e(f, e, t);
|
|
109360
109362
|
n !== f && p(n);
|
|
109361
109363
|
}, [
|
|
109362
109364
|
f,
|
|
@@ -109367,7 +109369,7 @@ function $9({ columns: e, defaultColumns: t = [], items: n, onColumnsChange: r,
|
|
|
109367
109369
|
}
|
|
109368
109370
|
//#endregion
|
|
109369
109371
|
//#region lib/components/ui/widgets/kanban/kanban.tsx
|
|
109370
|
-
function
|
|
109372
|
+
function f1e({ columns: e, defaultColumns: t, items: n, groups: r, onColumnsChange: a, onItemsChange: o, onChange: s, onCardClick: c, onAddCard: l, searchable: u = !0, reorderableColumns: d = !0, disabled: f = !1, label: p, className: m, renderCard: h }) {
|
|
109371
109373
|
let { t: g } = k(), _ = $9({
|
|
109372
109374
|
columns: e,
|
|
109373
109375
|
defaultColumns: t,
|
|
@@ -109406,9 +109408,9 @@ function d1e({ columns: e, defaultColumns: t, items: n, groups: r, onColumnsChan
|
|
|
109406
109408
|
onValueChange: _.chromeActions.setQuery
|
|
109407
109409
|
})
|
|
109408
109410
|
})]
|
|
109409
|
-
}), /* @__PURE__ */ V(
|
|
109411
|
+
}), /* @__PURE__ */ V(d1e, {})]
|
|
109410
109412
|
})
|
|
109411
109413
|
});
|
|
109412
109414
|
}
|
|
109413
109415
|
//#endregion
|
|
109414
|
-
export { sXe as $, KZ as $a, tV as $c, Bm as $d, $Q as $i, TN as $l, m4 as $n, OU as $o, bHe as $r, iH as $s, YGe as $t, Hj as $u,
|
|
109416
|
+
export { sXe as $, KZ as $a, tV as $c, Bm as $d, $Q as $i, TN as $l, m4 as $n, OU as $o, bHe as $r, iH as $s, YGe as $t, Hj as $u, WZe as A, $Ie as Aa, wae as Ac, RE as Ad, A0 as Ai, Xu as Al, P4 as An, ZX as Ao, w2 as Ar, DTe as As, QJe as At, hM as Au, tZe as B, lQ as Ba, Pae as Bc, Jw as Bd, lRe as Bi, dF as Bl, w4 as Bn, jPe as Bo, h2 as Br, pTe as Bs, L6 as Bt, rM as Bu, k7 as C, uLe as Ca, FV as Cc, zD as Cd, Zce as Cf, L0 as Ci, wI as Cl, U4 as Cn, ac as Co, WUe as Cr, nU as Cs, IYe as Ct, SM as Cu, GZe as D, nLe as Da, yie as Dc, zE as Dd, Yce as Df, P0 as Di, hI as Dl, mWe as Dn, ZPe as Do, O2 as Dr, ATe as Ds, eYe as Dt, xM as Du, T7 as E, wQ as Ea, xae as Ec, IE as Ed, pp as Ef, RVe as Ei, xI as El, B4 as En, rFe as Eo, M2 as Er, jTe as Es, CYe as Et, TM as Eu, IZe as F, mQ as Fa, Oae as Fc, PE as Fd, pRe as Fi, BF as Fl, oWe as Fn, LPe as Fo, v2 as Fr, _Te as Fs, p8 as Ft, _M as Fu, vXe as G, YIe as Ga, oV as Gc, f_ as Gd, m$ as Gi, UP as Gl, eWe as Gn, JX as Go, KHe as Gr, cTe as Gs, moe as Gt, sM as Gu, q5 as H, sQ as Ha, Lae as Hc, mve as Hd, _$ as Hi, oF as Hl, C4 as Hn, kPe as Ho, g2 as Hr, dTe as Hs, fKe as Ht, tM as Hu, FZe as I, pQ as Ia, kae as Ic, ZT as Id, b$ as Ii, HF as Il, k4 as In, IPe as Io, y2 as Ir, gTe as Is, VKe as It, gM as Iu, pXe as J, rQ as Ja, iV as Jc, vg as Jd, l$ as Ji, oP as Jl, y4 as Jn, WX as Jo, kHe as Jr, DH as Js, boe as Jt, iM as Ju, _Xe as K, JIe as Ka, XB as Kc, _g as Kd, sRe as Ki, AP as Kl, x4 as Kn, qX as Ko, jHe as Kr, gwe as Ks, goe as Kt, cM as Ku, _7 as L, fQ as La, jae as Lc, YT as Ld, fRe as Li, VF as Ll, O4 as Ln, FPe as Lo, f2 as Lr, hTe as Ls, t8 as Lt, vM as Lu, BZe as M, bQ as Ma, Eae as Mc, FE as Md, IVe as Mi, Qu as Ml, M4 as Mn, BPe as Mo, S2 as Mr, bTe as Ms, b5 as Mt, mM as Mu, y7 as N, yQ as Na, Dae as Nc, NE as Nd, N0 as Ni, UF as Nl, j4 as Nn, zPe as No, x2 as Nr, yTe as Ns, o5 as Nt, fM as Nu, x7 as O, CQ as Oa, Sae as Oc, VE as Od, M0 as Oi, gI as Ol, R4 as On, GPe as Oo, D2 as Or, kTe as Os, $Je as Ot, CM as Ou, v7 as P, vQ as Pa, Xie as Pc, ME as Pd, j0 as Pi, zF as Pl, sWe as Pn, RPe as Po, b2 as Pr, vTe as Ps, U8 as Pt, pM as Pu, cXe as Q, eQ as Qa, $B as Qc, Hm as Qd, ILe as Qi, wN as Ql, h4 as Qn, kU as Qo, wHe as Qr, CH as Qs, j6 as Qt, Wj as Qu, SZe as R, dQ as Ra, Mae as Rc, OT as Rd, y$ as Ri, vF as Rl, D4 as Rn, NPe as Ro, sUe as Rr, mTe as Rs, e8 as Rt, lM as Ru, lQe as S, AQ as Sa, PV as Sc, BD as Sd, Qce as Sf, R0 as Si, EI as Sl, W4 as Sn, iFe as So, JUe as Sr, PTe as Ss, LYe as St, OM as Su, aQe as T, TQ as Ta, bae as Tc, jD as Td, Xce as Tf, I0 as Ti, CI as Tl, V4 as Tn, Uae as To, N2 as Tr, MTe as Ts, PYe as Tt, bM as Tu, yXe as U, oQ as Ua, iCe as Uc, Fw as Ud, h$ as Ui, $P as Ul, S4 as Un, OPe as Uo, _2 as Ur, uTe as Us, dKe as Ut, nM as Uu, zXe as V, cQ as Va, Iae as Vc, qw as Vd, cRe as Vi, uF as Vl, nWe as Vn, APe as Vo, p2 as Vr, fTe as Vs, R6 as Vt, oM as Vu, gXe as W, aQ as Wa, sV as Wc, Ow as Wd, p$ as Wi, QP as Wl, tWe as Wn, DPe as Wo, YHe as Wr, lTe as Ws, uKe as Wt, eM as Wu, uXe as X, KIe as Xa, QB as Xc, Vm as Xd, RLe as Xi, DN as Xl, _4 as Xn, FU as Xo, loe as Xr, wH as Xs, Xre as Xt, Uj as Xu, fXe as Y, nQ as Ya, nV as Yc, Lm as Yd, c$ as Yi, ON as Yl, v4 as Yn, jEe as Yo, coe as Yr, EH as Ys, lKe as Yt, $j as Yu, lXe as Z, GIe as Za, rV as Zc, zm as Zd, t$ as Zi, EN as Zl, g4 as Zn, OEe as Zo, uoe as Zr, TH as Zs, XGe as Zt, Gj as Zu, N7 as _, PQ as _a, Vre as _c, WD as _d, ole as _f, WVe as _i, NI as _l, s6 as _n, tZ as _o, X2 as _r, zTe as _s, BYe as _t, PM as _u, J$e as a, XQ as aa, eH as ac, Pj as ad, Fm as af, J0 as ai, RB as al, x6 as an, bZ as ao, c4 as ar, dU as as, j5 as at, XM as au, A7 as b, MQ as ba, zV as bc, VD as bd, mp as bf, HVe as bi, AI as bl, YWe as bn, $X as bo, q2 as br, ITe as bs, Toe as bt, AM as bu, y9 as c, JQ as ca, ZV as cc, pA as cd, Am as cf, W0 as ci, Kz as cl, b6 as cn, gZ as co, a4 as cr, lU as cs, qYe as ct, JM as cu, J7 as d, HQ as da, YV as dc, tA as dd, fle as df, mHe as di, Jz as dl, PGe as dn, mZ as do, $2 as dr, cU as ds, HYe as dt, HM as du, FLe as ea, $V as ec, Lj as ed, Um as ef, Q0 as ei, eV as el, k6 as en, GZ as eo, p4 as er, DU as es, iXe as et, SN as eu, X7 as f, VQ as fa, qV as fc, Ok as fd, dle as ff, pHe as fi, Xz as fl, rGe as fn, iZ as fo, t4 as fr, oU as fs, VYe as ft, VM as fu, P7 as g, IQ as ga, HV as gc, GD as gd, ile as gf, U0 as gi, FR as gl, c6 as gn, nZ as go, Z2 as gr, BTe as gs, KYe as gt, IM as gu, I7 as h, LQ as ha, VV as hc, UD as hd, ale as hf, dHe as hi, Uz as hl, eGe as hn, rZ as ho, Q2 as hr, VTe as hs, GYe as ht, LM as hu, U9 as i, DLe as ia, ICe as ic, Ij as id, Im as if, Y0 as ii, UB as il, T6 as in, wFe as io, s4 as ir, YTe as is, ZYe as it, ZM as iu, VZe as j, eLe as ja, Tae as jc, LE as jd, FVe as ji, Zu as jl, N4 as jn, VPe as jo, C2 as jr, eU as js, ZJe as jt, dM as ju, S7 as k, SQ as ka, Cae as kc, BE as kd, PVe as ki, fI as kl, F4 as kn, HPe as ko, E2 as kr, OTe as ks, x5 as kt, yM as ku, KQe as l, wLe as la, XV as lc, rA as ld, Nm as lf, hHe as li, Yz as ll, y6 as ln, hZ as lo, i4 as lr, qTe as ls, YYe as lt, KM as lu, H7 as m, _Le as ma, WV as mc, qD as md, vp as mf, fHe as mi, Wz as ml, nGe as mn, lFe as mo, n4 as mr, iU as ms, UYe as mt, RM as mu, $9 as n, QQ as na, rH as nc, Bj as nd, Rm as nf, vHe as ni, JB as nl, O6 as nn, BZ as no, d4 as nr, pEe as ns, tXe as nt, QM as nu, B9 as o, YQ as oa, tH as oc, Nj as od, Mm as of, gHe as oi, LB as ol, C6 as on, CFe as oo, ZUe as or, uU as os, $Ye as ot, YM as ou, q7 as p, zQ as pa, DCe as pc, KD as pd, yp as pf, Zre as pi, Zz as pl, tGe as pn, fFe as po, e4 as pr, rU as ps, WYe as pt, zM as pu, mXe as q, iQ as qa, ZB as qc, yg as qd, aRe as qi, mP as ql, b4 as qn, GX as qo, AHe as qr, OH as qs, voe as qt, aM as qu, H9 as r, ZQ as ra, nH as rc, Fj as rd, Pm as rf, X0 as ri, qB as rl, WGe as rn, EZ as ro, l4 as rr, EU as rs, QYe as rt, $M as ru, v9 as s, TLe as sa, QV as sc, KA as sd, jm as sf, q0 as si, Gz as sl, S6 as sn, yZ as so, o4 as sr, Ru as ss, eXe as st, qM as su, f1e as t, kLe as ta, FCe as tc, zj as td, Wm as tf, Z0 as ti, YB as tl, KGe as tn, jIe as to, f4 as tr, Vae as ts, XYe as tt, uN as tu, G7 as u, BQ as ua, JV as uc, nA as ud, ple as uf, K0 as ui, qz as ul, v6 as un, _Fe as uo, r4 as ur, zu as us, JYe as ut, UM as uu, F7 as v, NQ as va, sCe as vc, vSe as vd, gp as vf, V0 as vi, MI as vl, ZWe as vn, eZ as vo, Y2 as vr, RTe as vs, RYe as vt, NM as vu, D7 as w, kQ as wa, NV as wc, LD as wd, $ce as wf, F0 as wi, TI as wl, H4 as wn, zae as wo, P2 as wr, tU as ws, FYe as wt, wM as wu, uQe as x, jQ as xa, RV as xc, RD as xd, ele as xf, z0 as xi, kI as xl, XWe as xn, QX as xo, J2 as xr, FTe as xs, Doe as xt, kM as xu, pQe as y, pLe as ya, BV as yc, HD as yd, nle as yf, B0 as yi, jI as yl, JWe as yn, oFe as yo, K2 as yr, LTe as ys, A5 as yt, FM as yu, f7 as z, uQ as za, cae as zc, DT as zd, v$ as zi, fF as zl, T4 as zn, MPe as zo, m2 as zr, XH as zs, B6 as zt, uM as zu };
|