@wirecore/wirelayer-react 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ContextMenu-C6ZaMtqf.js +1511 -0
- package/dist/{Input-C8T3WLd5.js → Input-CtYSQznO.js} +41 -40
- package/dist/{PasswordInput-SjO66gZB.js → PasswordInput-dpeKVREo.js} +67 -64
- package/dist/Select-C2CiPTCK.js +256 -0
- package/dist/components/Alert/Alert.d.ts +3 -1
- package/dist/components/Alert/Alert.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +9 -5
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/Combobox/Combobox.d.ts +10 -1
- package/dist/components/Combobox/Combobox.d.ts.map +1 -1
- package/dist/components/ContextMenu/ContextMenu.d.ts +12 -3
- package/dist/components/ContextMenu/ContextMenu.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.d.ts +6 -1
- package/dist/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/components/Input/Input.d.ts +7 -2
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/components/Menu/Menu.d.ts +27 -3
- package/dist/components/Menu/Menu.d.ts.map +1 -1
- package/dist/components/NativeSelect/NativeSelect.d.ts +9 -6
- package/dist/components/NativeSelect/NativeSelect.d.ts.map +1 -1
- package/dist/components/NumberInput/NumberInput.d.ts +1 -1
- package/dist/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/components/PasswordInput/PasswordInput.d.ts +7 -2
- package/dist/components/PasswordInput/PasswordInput.d.ts.map +1 -1
- package/dist/components/Progress/Progress.d.ts +12 -1
- package/dist/components/Progress/Progress.d.ts.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts +8 -6
- package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/dist/components/RadioGroup/RadioGroupItem.d.ts +3 -2
- package/dist/components/RadioGroup/RadioGroupItem.d.ts.map +1 -1
- package/dist/components/RadioGroup/context.d.ts +3 -0
- package/dist/components/RadioGroup/context.d.ts.map +1 -0
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +6 -5
- package/dist/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/components/Select/Select.d.ts +10 -1
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Textarea/Textarea.d.ts +7 -2
- package/dist/components/Textarea/Textarea.d.ts.map +1 -1
- package/dist/data-table.js +3 -3
- package/dist/form.js +1 -1
- package/dist/index.js +803 -751
- package/dist/pdf.js +2 -2
- package/llms-full.txt +57 -22
- package/llms.txt +5 -4
- package/package.json +2 -2
- package/dist/ContextMenu-BD72S5n6.js +0 -1452
- package/dist/Select-7rfeNmJb.js +0 -242
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { a as e, i as t, n, r, t as i } from "./RecipesProvider-0idafuGm.js";
|
|
3
|
-
import { S as a, _ as o, a as s, b as c, c as l, d as u, f as d, g as f, h as p, i as m, l as h, m as g, n as _, o as v, p as y, r as b, s as x, t as S, u as C, v as w, x as T, y as E } from "./ContextMenu-
|
|
3
|
+
import { S as a, _ as o, a as s, b as c, c as l, d as u, f as d, g as f, h as p, i as m, l as h, m as g, n as _, o as v, p as y, r as b, s as x, t as S, u as C, v as w, x as T, y as E } from "./ContextMenu-C6ZaMtqf.js";
|
|
4
4
|
import { t as D } from "./Button-Cd7lufvJ.js";
|
|
5
5
|
import { r as O } from "./InputStatus-hVzkU_4q.js";
|
|
6
6
|
import { n as k, t as A } from "./Field-DkYxlVar.js";
|
|
7
|
-
import { n as j, t as M } from "./Input-
|
|
8
|
-
import { n as N, t as P } from "./Select-
|
|
7
|
+
import { n as j, t as M } from "./Input-CtYSQznO.js";
|
|
8
|
+
import { n as N, t as P } from "./Select-C2CiPTCK.js";
|
|
9
9
|
import { t as F } from "./Checkbox-BMRax6m4.js";
|
|
10
10
|
import { t as I } from "./label-for-DYgV5EwH.js";
|
|
11
11
|
import { a as L, c as R, i as z, n as B, o as V, r as H, s as ee, t as U } from "./Highlight-43-H9459.js";
|
|
12
|
-
import { a as W, c as G, i as te, l as K, n as ne, o as re, r as q, s as ie, t as ae, u as oe } from "./PasswordInput-
|
|
12
|
+
import { a as W, c as G, i as te, l as K, n as ne, o as re, r as q, s as ie, t as ae, u as oe } from "./PasswordInput-dpeKVREo.js";
|
|
13
13
|
import { t as se } from "./Slider-Bfm_jjYE.js";
|
|
14
14
|
import { a as ce, t as le } from "./Tree-DVjwp6FG.js";
|
|
15
15
|
import { t as ue } from "./CopyButton-0e1pHR3f.js";
|
|
@@ -74,64 +74,80 @@ var od = {
|
|
|
74
74
|
warn: kl,
|
|
75
75
|
danger: rl
|
|
76
76
|
};
|
|
77
|
-
function sd({ classes: t, status: r = "info", variant: i, size: a, title: o, dismissible: s = !1, dismissLabel: c, duration: l, onDismiss: u,
|
|
78
|
-
let
|
|
77
|
+
function sd({ classes: t, status: r = "info", variant: i, size: a, title: o, dismissible: s = !1, dismissLabel: c, duration: l, onDismiss: u, actions: d, className: f, children: p, onMouseEnter: m, onMouseLeave: h, onFocus: g, onBlur: _, ...v }) {
|
|
78
|
+
let y = n("alert", Oe, t), b = e(), x = y({
|
|
79
79
|
status: r,
|
|
80
80
|
variant: i,
|
|
81
|
-
size: a
|
|
82
|
-
|
|
81
|
+
size: a,
|
|
82
|
+
hasActions: !!d
|
|
83
|
+
}), S = od[r], C = X(void 0), w = X({
|
|
83
84
|
hovered: !1,
|
|
84
85
|
focused: !1
|
|
85
|
-
}),
|
|
86
|
+
}), T = X(u);
|
|
86
87
|
Y(() => {
|
|
87
|
-
|
|
88
|
+
T.current = u;
|
|
88
89
|
}), Y(() => {
|
|
89
90
|
if (!l) return;
|
|
90
|
-
let e = Kt(() =>
|
|
91
|
-
return (
|
|
91
|
+
let e = Kt(() => T.current?.(), l);
|
|
92
|
+
return (w.current.hovered || w.current.focused) && e.pause(), C.current = e, () => e.clear();
|
|
92
93
|
}, [l]);
|
|
93
|
-
let
|
|
94
|
+
let E = () => w.current.hovered || w.current.focused ? C.current?.pause() : C.current?.resume();
|
|
94
95
|
return /* @__PURE__ */ $("div", {
|
|
95
|
-
...
|
|
96
|
-
className:
|
|
96
|
+
...v,
|
|
97
|
+
className: x.base({ class: f }),
|
|
97
98
|
role: r === "danger" || r === "warn" ? "alert" : "status",
|
|
98
99
|
onMouseEnter: (e) => {
|
|
99
|
-
|
|
100
|
+
w.current.hovered = !0, E(), m?.(e);
|
|
100
101
|
},
|
|
101
102
|
onMouseLeave: (e) => {
|
|
102
|
-
|
|
103
|
+
w.current.hovered = !1, E(), h?.(e);
|
|
103
104
|
},
|
|
104
105
|
onFocus: (e) => {
|
|
105
|
-
|
|
106
|
+
w.current.focused = !0, E(), g?.(e);
|
|
106
107
|
},
|
|
107
108
|
onBlur: (e) => {
|
|
108
|
-
|
|
109
|
+
w.current.focused = e.currentTarget.contains(e.relatedTarget), E(), _?.(e);
|
|
109
110
|
},
|
|
110
111
|
children: [
|
|
111
112
|
/* @__PURE__ */ Q("span", {
|
|
112
|
-
className:
|
|
113
|
-
children: /* @__PURE__ */ Q(
|
|
114
|
-
className:
|
|
113
|
+
className: x.iconBox(),
|
|
114
|
+
children: /* @__PURE__ */ Q(S, {
|
|
115
|
+
className: x.icon(),
|
|
115
116
|
"aria-hidden": "true"
|
|
116
117
|
})
|
|
117
118
|
}),
|
|
118
|
-
/* @__PURE__ */ $("div", {
|
|
119
|
-
className:
|
|
119
|
+
d ? /* @__PURE__ */ $("div", {
|
|
120
|
+
className: x.content(),
|
|
121
|
+
children: [/* @__PURE__ */ $("div", {
|
|
122
|
+
className: x.text(),
|
|
123
|
+
children: [o && /* @__PURE__ */ Q("div", {
|
|
124
|
+
className: x.title(),
|
|
125
|
+
children: o
|
|
126
|
+
}), p && /* @__PURE__ */ Q("div", {
|
|
127
|
+
className: x.description(),
|
|
128
|
+
children: p
|
|
129
|
+
})]
|
|
130
|
+
}), /* @__PURE__ */ Q("div", {
|
|
131
|
+
className: x.actions(),
|
|
132
|
+
children: d
|
|
133
|
+
})]
|
|
134
|
+
}) : /* @__PURE__ */ $("div", {
|
|
135
|
+
className: x.content(),
|
|
120
136
|
children: [o && /* @__PURE__ */ Q("div", {
|
|
121
|
-
className:
|
|
137
|
+
className: x.title(),
|
|
122
138
|
children: o
|
|
123
|
-
}),
|
|
124
|
-
className:
|
|
125
|
-
children:
|
|
139
|
+
}), p && /* @__PURE__ */ Q("div", {
|
|
140
|
+
className: x.description(),
|
|
141
|
+
children: p
|
|
126
142
|
})]
|
|
127
143
|
}),
|
|
128
144
|
s && /* @__PURE__ */ Q("button", {
|
|
129
145
|
type: "button",
|
|
130
|
-
className:
|
|
131
|
-
"aria-label": c ??
|
|
146
|
+
className: x.dismiss(),
|
|
147
|
+
"aria-label": c ?? b.common.close,
|
|
132
148
|
onClick: u,
|
|
133
149
|
children: /* @__PURE__ */ Q(Pl, {
|
|
134
|
-
className:
|
|
150
|
+
className: x.dismissIcon(),
|
|
135
151
|
"aria-hidden": "true"
|
|
136
152
|
})
|
|
137
153
|
})
|
|
@@ -502,44 +518,52 @@ function xd({ classes: e, value: t, defaultValue: r, onValueChange: i, multiple:
|
|
|
502
518
|
});
|
|
503
519
|
}
|
|
504
520
|
//#endregion
|
|
521
|
+
//#region src/components/RadioGroup/context.ts
|
|
522
|
+
var Sd = Rl(null);
|
|
523
|
+
//#endregion
|
|
505
524
|
//#region src/components/RadioGroup/RadioGroup.tsx
|
|
506
|
-
function
|
|
525
|
+
function Cd({ classes: e, value: t, defaultValue: r, onValueChange: i, label: a, orientation: o = "horizontal", columns: s, disabled: c, invalid: l, required: u, name: d, className: f, children: p, ...m }) {
|
|
507
526
|
I("RadioGroup", m.id);
|
|
508
527
|
let h = n("radioGroup", Ha, e)({
|
|
509
528
|
orientation: o,
|
|
510
529
|
grid: s !== void 0
|
|
511
|
-
}), g = eu(), _ = O(), v = !a && !m["aria-label"] && !m["aria-labelledby"] && !!g && _.labelled;
|
|
512
|
-
return /* @__PURE__ */
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
children: a
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
530
|
+
}), g = eu(), _ = O(), v = !a && !m["aria-label"] && !m["aria-labelledby"] && !!g && _.labelled, [y] = Z(() => /* @__PURE__ */ new Map()), b = (e) => e == null ? e : String(e);
|
|
531
|
+
return /* @__PURE__ */ Q(Sd, {
|
|
532
|
+
value: y,
|
|
533
|
+
children: /* @__PURE__ */ $(ru.Root, {
|
|
534
|
+
"aria-describedby": g?.ariaDescribedby,
|
|
535
|
+
...m,
|
|
536
|
+
className: h.base({ class: f }),
|
|
537
|
+
...v ? { ids: { label: g.ids.label } } : {},
|
|
538
|
+
value: b(t),
|
|
539
|
+
defaultValue: b(r),
|
|
540
|
+
onValueChange: (e) => i?.(e.value === null ? null : y.get(e.value) ?? e.value),
|
|
541
|
+
orientation: o,
|
|
542
|
+
disabled: c ?? g?.disabled,
|
|
543
|
+
invalid: l ?? g?.invalid,
|
|
544
|
+
required: u ?? g?.required,
|
|
545
|
+
name: d,
|
|
546
|
+
children: [a && /* @__PURE__ */ Q(ru.Label, {
|
|
547
|
+
className: h.label(),
|
|
548
|
+
children: a
|
|
549
|
+
}), /* @__PURE__ */ Q("div", {
|
|
550
|
+
className: h.items(),
|
|
551
|
+
style: s ? { "--wc-columns": String(s) } : void 0,
|
|
552
|
+
children: p
|
|
553
|
+
})]
|
|
554
|
+
})
|
|
533
555
|
});
|
|
534
556
|
}
|
|
535
557
|
//#endregion
|
|
536
558
|
//#region src/components/RadioGroup/RadioGroupItem.tsx
|
|
537
|
-
function
|
|
538
|
-
let s = n("radioGroup", Ha, e)();
|
|
539
|
-
return
|
|
559
|
+
function wd({ classes: e, value: t, disabled: r, className: i, children: a, ...o }) {
|
|
560
|
+
let s = n("radioGroup", Ha, e)(), c = Vl(Sd);
|
|
561
|
+
return Y(() => (c?.set(String(t), t), () => {
|
|
562
|
+
c?.get(String(t)) === t && c.delete(String(t));
|
|
563
|
+
}), [c, t]), /* @__PURE__ */ $(ru.Item, {
|
|
540
564
|
...o,
|
|
541
565
|
className: s.item({ class: i }),
|
|
542
|
-
value: t,
|
|
566
|
+
value: String(t),
|
|
543
567
|
disabled: r,
|
|
544
568
|
children: [
|
|
545
569
|
/* @__PURE__ */ Q(ru.ItemControl, { className: s.control() }),
|
|
@@ -550,15 +574,15 @@ function Cd({ classes: e, value: t, disabled: r, className: i, children: a, ...o
|
|
|
550
574
|
}
|
|
551
575
|
//#endregion
|
|
552
576
|
//#region src/components/SegmentedControl/context.ts
|
|
553
|
-
var
|
|
577
|
+
var Td = Rl(null);
|
|
554
578
|
//#endregion
|
|
555
579
|
//#region src/components/SegmentedControl/SegmentedControl.tsx
|
|
556
|
-
function
|
|
580
|
+
function Ed({ classes: e, value: t, defaultValue: r, onValueChange: i, label: a, size: o = "md", disabled: s, name: c, className: l, children: u, ...d }) {
|
|
557
581
|
I("SegmentedControl", d.id);
|
|
558
582
|
let f = n("segmentedControl", yo, e)({ size: o }), p = eu(), m = O(), h = !!a || !!d["aria-label"] || !!d["aria-labelledby"], g = !h && !!p && m.labelled;
|
|
559
583
|
return Y(() => {
|
|
560
584
|
!h && !g && Ys("SegmentedControl: pass `label` or place it in a Field with a label – the group has no name");
|
|
561
|
-
}, [h, g]), /* @__PURE__ */ Q(
|
|
585
|
+
}, [h, g]), /* @__PURE__ */ Q(Td, {
|
|
562
586
|
value: o,
|
|
563
587
|
children: /* @__PURE__ */ $(iu.Root, {
|
|
564
588
|
"aria-describedby": p?.ariaDescribedby,
|
|
@@ -580,14 +604,14 @@ function Td({ classes: e, value: t, defaultValue: r, onValueChange: i, label: a,
|
|
|
580
604
|
}
|
|
581
605
|
//#endregion
|
|
582
606
|
//#region src/components/SwitchGroup/context.ts
|
|
583
|
-
var
|
|
607
|
+
var Dd = Rl(null);
|
|
584
608
|
//#endregion
|
|
585
609
|
//#region src/components/Switch/Switch.tsx
|
|
586
|
-
function
|
|
610
|
+
function Od({ classes: e, checked: t, defaultChecked: r, onCheckedChange: i, description: a, icon: o, checkedIcon: s, uncheckedIcon: c, onLabel: l, offLabel: u, disabled: d, invalid: f, required: p, name: m, value: h, id: g, className: _, style: v, children: y, ...b }) {
|
|
587
611
|
let x = n("switchControl", ts, e), S = !!(l || u), C = x({
|
|
588
612
|
withThumbIcon: !!(s || c),
|
|
589
613
|
withTrackLabel: S
|
|
590
|
-
}), w = Hl(), T = eu(), E = Vl(
|
|
614
|
+
}), w = Hl(), T = eu(), E = Vl(Dd), D = E && h !== void 0 ? {
|
|
591
615
|
checked: E.isChecked(h),
|
|
592
616
|
disabled: d ?? (E.disabled || E.blocked(h) || void 0),
|
|
593
617
|
invalid: f ?? E.invalid,
|
|
@@ -659,8 +683,8 @@ function Dd({ classes: e, checked: t, defaultChecked: r, onCheckedChange: i, des
|
|
|
659
683
|
}
|
|
660
684
|
//#endregion
|
|
661
685
|
//#region src/components/SegmentedControl/SegmentedControlItem.tsx
|
|
662
|
-
function
|
|
663
|
-
let c = n("segmentedControl", yo, e)({ size: Vl(
|
|
686
|
+
function kd({ classes: e, value: t, icon: r, disabled: i, className: a, children: o, ...s }) {
|
|
687
|
+
let c = n("segmentedControl", yo, e)({ size: Vl(Td) ?? void 0 });
|
|
664
688
|
return /* @__PURE__ */ $(iu.Item, {
|
|
665
689
|
...s,
|
|
666
690
|
className: c.item({ class: a }),
|
|
@@ -678,7 +702,7 @@ function Od({ classes: e, value: t, icon: r, disabled: i, className: a, children
|
|
|
678
702
|
}
|
|
679
703
|
//#endregion
|
|
680
704
|
//#region src/components/Progress/Progress.tsx
|
|
681
|
-
var
|
|
705
|
+
var Ad = [
|
|
682
706
|
"primary",
|
|
683
707
|
"info",
|
|
684
708
|
"success",
|
|
@@ -686,66 +710,81 @@ var kd = [
|
|
|
686
710
|
"danger",
|
|
687
711
|
"muted"
|
|
688
712
|
];
|
|
689
|
-
function
|
|
690
|
-
let
|
|
713
|
+
function jd({ classes: e, value: t, max: r = 100, label: i, showValue: a = !0, valueText: o = (e) => `${e} %`, segments: s, steps: c, striped: l, animated: u, orientation: d = "horizontal", size: f, status: p, hideLabel: m = !1, barText: h, className: g, "aria-label": _, ...v }) {
|
|
714
|
+
let y = n("progress", Pa, e), b = s ? s.reduce((e, t) => e + Math.max(0, t.value), 0) : t, x = !!h && !s?.length && !c && d !== "vertical", S = y({
|
|
691
715
|
orientation: d,
|
|
692
716
|
striped: l,
|
|
693
717
|
animated: u,
|
|
694
|
-
stepped: !!c && !s
|
|
695
|
-
|
|
718
|
+
stepped: !!c && !s,
|
|
719
|
+
size: f,
|
|
720
|
+
color: p,
|
|
721
|
+
hideLabel: m,
|
|
722
|
+
hasText: x
|
|
723
|
+
}), C = (e) => Math.round(e / r * 100), w = o(C(b)), T = x && h !== w ? `${w}, ${h}` : w, E = c ? Math.round(b / r * c) : 0, D = d === "vertical" ? "height" : "width", O = (e, t) => e.color ?? Ad[t % Ad.length];
|
|
696
724
|
return /* @__PURE__ */ $(lu.Root, {
|
|
697
|
-
...
|
|
698
|
-
className:
|
|
699
|
-
value:
|
|
725
|
+
...v,
|
|
726
|
+
className: S.base({ class: g }),
|
|
727
|
+
value: b,
|
|
700
728
|
max: r,
|
|
701
729
|
...d === "vertical" ? { orientation: d } : {},
|
|
702
730
|
children: [
|
|
703
|
-
(i || a) && /* @__PURE__ */ $("div", {
|
|
704
|
-
className:
|
|
705
|
-
children: [i && /* @__PURE__ */ Q(lu.Label, {
|
|
706
|
-
className:
|
|
731
|
+
(i && !m || a) && /* @__PURE__ */ $("div", {
|
|
732
|
+
className: S.header(),
|
|
733
|
+
children: [i && !m && /* @__PURE__ */ Q(lu.Label, {
|
|
734
|
+
className: S.label(),
|
|
707
735
|
children: i
|
|
708
736
|
}), a && /* @__PURE__ */ Q(lu.ValueText, {
|
|
709
|
-
className:
|
|
710
|
-
children:
|
|
737
|
+
className: S.value(),
|
|
738
|
+
children: w
|
|
711
739
|
})]
|
|
712
740
|
}),
|
|
713
|
-
/* @__PURE__ */
|
|
714
|
-
className:
|
|
715
|
-
"aria-label": i ??
|
|
716
|
-
"aria-valuetext":
|
|
717
|
-
children:
|
|
718
|
-
className:
|
|
741
|
+
/* @__PURE__ */ $(lu.Track, {
|
|
742
|
+
className: S.track(),
|
|
743
|
+
"aria-label": i ?? _,
|
|
744
|
+
"aria-valuetext": T,
|
|
745
|
+
children: [x && /* @__PURE__ */ Q("span", {
|
|
746
|
+
className: S.barText(),
|
|
747
|
+
"aria-hidden": "true",
|
|
748
|
+
children: h
|
|
749
|
+
}), s?.length ? /* @__PURE__ */ Q("div", {
|
|
750
|
+
className: S.segments(),
|
|
719
751
|
children: s.map((e, t) => /* @__PURE__ */ Q("span", {
|
|
720
|
-
className:
|
|
721
|
-
color:
|
|
752
|
+
className: y({
|
|
753
|
+
color: O(e, t),
|
|
722
754
|
striped: l,
|
|
723
755
|
animated: u
|
|
724
756
|
}).segment(),
|
|
725
|
-
style: { [
|
|
757
|
+
style: { [D]: `${Math.max(0, e.value) / r * 100}%` },
|
|
726
758
|
title: e.tooltip ?? e.label
|
|
727
759
|
}, e.label ?? t))
|
|
728
760
|
}) : c ? /* @__PURE__ */ Q("div", {
|
|
729
|
-
className:
|
|
761
|
+
className: S.steps(),
|
|
730
762
|
children: Array.from({ length: c }, (e, t) => /* @__PURE__ */ Q("span", {
|
|
731
|
-
className:
|
|
732
|
-
"data-state": t + 1 <=
|
|
763
|
+
className: S.step(),
|
|
764
|
+
"data-state": t + 1 <= E ? "complete" : void 0
|
|
733
765
|
}, t + 1))
|
|
734
|
-
}) : /* @__PURE__ */ Q(lu.Range, {
|
|
766
|
+
}) : /* @__PURE__ */ Q(lu.Range, {
|
|
767
|
+
className: S.range(),
|
|
768
|
+
children: x && /* @__PURE__ */ Q("span", {
|
|
769
|
+
className: S.barTextFill(),
|
|
770
|
+
"aria-hidden": "true",
|
|
771
|
+
children: h
|
|
772
|
+
})
|
|
773
|
+
})]
|
|
735
774
|
}),
|
|
736
775
|
s?.some((e) => e.label) && /* @__PURE__ */ Q("ul", {
|
|
737
|
-
className:
|
|
776
|
+
className: S.legend(),
|
|
738
777
|
children: s.map((e, t) => /* @__PURE__ */ $("li", {
|
|
739
|
-
className:
|
|
778
|
+
className: S.legendItem(),
|
|
740
779
|
children: [
|
|
741
780
|
/* @__PURE__ */ Q("span", {
|
|
742
|
-
className:
|
|
781
|
+
className: y({ color: O(e, t) }).swatch(),
|
|
743
782
|
"aria-hidden": "true"
|
|
744
783
|
}),
|
|
745
784
|
`${e.label ?? ""} `,
|
|
746
785
|
/* @__PURE__ */ Q("span", {
|
|
747
|
-
className:
|
|
748
|
-
children: o(
|
|
786
|
+
className: S.legendValue(),
|
|
787
|
+
children: o(C(e.value))
|
|
749
788
|
})
|
|
750
789
|
]
|
|
751
790
|
}, e.label ?? t))
|
|
@@ -755,7 +794,7 @@ function Ad({ classes: e, value: t, max: r = 100, label: i, showValue: a = !0, v
|
|
|
755
794
|
}
|
|
756
795
|
//#endregion
|
|
757
796
|
//#region src/components/Steps/Steps.tsx
|
|
758
|
-
function
|
|
797
|
+
function Md({ classes: t, items: r, current: i, label: a, statusLabels: o, className: s, ...c }) {
|
|
759
798
|
let l = n("steps", Qo, t), u = e(), d = o ?? u.stepper.status, f = (e) => e < i ? "done" : e === i ? "active" : "todo";
|
|
760
799
|
return /* @__PURE__ */ Q("ol", {
|
|
761
800
|
...c,
|
|
@@ -790,14 +829,14 @@ function jd({ classes: t, items: r, current: i, label: a, statusLabels: o, class
|
|
|
790
829
|
}
|
|
791
830
|
//#endregion
|
|
792
831
|
//#region src/components/Toast/toaster.ts
|
|
793
|
-
var
|
|
794
|
-
let t =
|
|
832
|
+
var Nd = (e) => typeof e == "string" ? { title: e } : e, Pd = (e) => {
|
|
833
|
+
let t = Nd(e);
|
|
795
834
|
return {
|
|
796
835
|
...t,
|
|
797
836
|
duration: Os(t)
|
|
798
837
|
};
|
|
799
838
|
};
|
|
800
|
-
function
|
|
839
|
+
function Fd(e = {}) {
|
|
801
840
|
let t = pu({
|
|
802
841
|
placement: "bottom-end",
|
|
803
842
|
gap: 12,
|
|
@@ -809,11 +848,11 @@ function Pd(e = {}) {
|
|
|
809
848
|
}));
|
|
810
849
|
return n.promise = (e, { loading: n, success: r, error: i }) => t.promise(e, {
|
|
811
850
|
loading: {
|
|
812
|
-
...
|
|
851
|
+
...Nd(n),
|
|
813
852
|
duration: Infinity
|
|
814
853
|
},
|
|
815
|
-
success: r === void 0 ? void 0 : (e) =>
|
|
816
|
-
error: i === void 0 ? void 0 : (e) =>
|
|
854
|
+
success: r === void 0 ? void 0 : (e) => Pd(typeof r == "function" ? r(e) : r),
|
|
855
|
+
error: i === void 0 ? void 0 : (e) => Pd(typeof i == "function" ? i(e) : i)
|
|
817
856
|
})?.id, n.update = (e, n) => {
|
|
818
857
|
t.update(e, {
|
|
819
858
|
...n,
|
|
@@ -828,16 +867,16 @@ function Pd(e = {}) {
|
|
|
828
867
|
toast: n
|
|
829
868
|
};
|
|
830
869
|
}
|
|
831
|
-
var { toaster:
|
|
870
|
+
var { toaster: Id, toast: Ld } = Fd(), Rd = {
|
|
832
871
|
success: Nc,
|
|
833
872
|
info: Wc,
|
|
834
873
|
warning: kl,
|
|
835
874
|
error: rl
|
|
836
875
|
};
|
|
837
|
-
function
|
|
876
|
+
function zd(e, t) {
|
|
838
877
|
for (let [n, r] of Object.entries(t)) r !== void 0 && Object.assign(e.attrs, { [n]: r });
|
|
839
878
|
}
|
|
840
|
-
function
|
|
879
|
+
function Bd({ className: e, swipeable: t, onDismiss: n, children: r }) {
|
|
841
880
|
let [i, a] = Z({
|
|
842
881
|
start: 0,
|
|
843
882
|
distance: 0,
|
|
@@ -881,8 +920,8 @@ function zd({ className: e, swipeable: t, onDismiss: n, children: r }) {
|
|
|
881
920
|
children: r
|
|
882
921
|
});
|
|
883
922
|
}
|
|
884
|
-
function
|
|
885
|
-
|
|
923
|
+
function Vd({ classes: t, toaster: r = Id, label: i, closeLabel: a, showProgress: o, swipeToDismiss: s, placement: c, max: l, overlap: u, gap: d }) {
|
|
924
|
+
zd(r, {
|
|
886
925
|
placement: c,
|
|
887
926
|
max: l,
|
|
888
927
|
overlap: u,
|
|
@@ -896,8 +935,8 @@ function Bd({ classes: t, toaster: r = Fd, label: i, closeLabel: a, showProgress
|
|
|
896
935
|
toaster: r,
|
|
897
936
|
label: i ?? p.toast.label,
|
|
898
937
|
children: (e) => {
|
|
899
|
-
let t = e.type && e.type in
|
|
900
|
-
return /* @__PURE__ */ $(
|
|
938
|
+
let t = e.type && e.type in Rd ? Rd[e.type] : void 0;
|
|
939
|
+
return /* @__PURE__ */ $(Bd, {
|
|
901
940
|
className: f.root(),
|
|
902
941
|
swipeable: !!s && !!e.id,
|
|
903
942
|
onDismiss: () => r.dismiss(e.id),
|
|
@@ -942,10 +981,10 @@ function Bd({ classes: t, toaster: r = Fd, label: i, closeLabel: a, showProgress
|
|
|
942
981
|
}
|
|
943
982
|
//#endregion
|
|
944
983
|
//#region src/components/Tooltip/Tooltip.tsx
|
|
945
|
-
var
|
|
946
|
-
function
|
|
984
|
+
var Hd = Rl(null);
|
|
985
|
+
function Ud({ openDelay: e = 400, closeDelay: t = 150, skipDelay: n = 300, children: r }) {
|
|
947
986
|
let [i, a] = Z(!1), o = X(void 0);
|
|
948
|
-
return Y(() => () => clearTimeout(o.current), []), /* @__PURE__ */ Q(
|
|
987
|
+
return Y(() => () => clearTimeout(o.current), []), /* @__PURE__ */ Q(Hd.Provider, {
|
|
949
988
|
value: {
|
|
950
989
|
openDelay: e,
|
|
951
990
|
closeDelay: t,
|
|
@@ -957,8 +996,8 @@ function Hd({ openDelay: e = 400, closeDelay: t = 150, skipDelay: n = 300, child
|
|
|
957
996
|
children: r
|
|
958
997
|
});
|
|
959
998
|
}
|
|
960
|
-
function
|
|
961
|
-
let d = n("tooltip", Is, e)(), f = Vl(
|
|
999
|
+
function Wd({ classes: e, content: t, placement: r = "top", openDelay: i, closeDelay: a, interactive: o = !0, closeOnScroll: s = !0, followCursor: c, disabled: l, children: u }) {
|
|
1000
|
+
let d = n("tooltip", Is, e)(), f = Vl(Hd), [p, m] = Z(!1), h = X(null), [g] = Z(() => Gt(() => m(!0)));
|
|
962
1001
|
Y(() => g.cancel, [g]), Y(() => {
|
|
963
1002
|
if (!p) return;
|
|
964
1003
|
let e = (e) => {
|
|
@@ -1020,7 +1059,7 @@ function Ud({ classes: e, content: t, placement: r = "top", openDelay: i, closeD
|
|
|
1020
1059
|
}
|
|
1021
1060
|
//#endregion
|
|
1022
1061
|
//#region src/components/Accordion/Accordion.tsx
|
|
1023
|
-
function
|
|
1062
|
+
function Gd({ classes: e, value: t, defaultValue: r, onValueChange: i, multiple: a = !1, collapsible: o = !0, className: s, ...c }) {
|
|
1024
1063
|
let l = n("accordion", ye, e)();
|
|
1025
1064
|
return /* @__PURE__ */ Q(hu.Root, {
|
|
1026
1065
|
...c,
|
|
@@ -1032,7 +1071,7 @@ function Wd({ classes: e, value: t, defaultValue: r, onValueChange: i, multiple:
|
|
|
1032
1071
|
collapsible: o
|
|
1033
1072
|
});
|
|
1034
1073
|
}
|
|
1035
|
-
function
|
|
1074
|
+
function Kd({ classes: e, value: t, title: r, icon: i, disabled: a, headingLevel: o = 3, actions: s, className: c, children: l, ...u }) {
|
|
1036
1075
|
let d = n("accordion", ye, e)({ withActions: !!s }), f = `h${o}`, p = /* @__PURE__ */ Q(f, {
|
|
1037
1076
|
className: d.heading(),
|
|
1038
1077
|
children: /* @__PURE__ */ $(hu.ItemTrigger, {
|
|
@@ -1078,40 +1117,40 @@ function Gd({ classes: e, value: t, title: r, icon: i, disabled: a, headingLevel
|
|
|
1078
1117
|
}
|
|
1079
1118
|
//#endregion
|
|
1080
1119
|
//#region src/components/Confirm/confirm.ts
|
|
1081
|
-
var
|
|
1120
|
+
var qd = null, Jd = /* @__PURE__ */ new Set(), Yd = () => Jd.forEach((e) => e()), Xd = {
|
|
1082
1121
|
subscribe(e) {
|
|
1083
|
-
return
|
|
1122
|
+
return Jd.add(e), () => Jd.delete(e);
|
|
1084
1123
|
},
|
|
1085
|
-
get: () =>
|
|
1124
|
+
get: () => qd
|
|
1086
1125
|
};
|
|
1087
|
-
function
|
|
1088
|
-
return
|
|
1126
|
+
function Zd(e, t) {
|
|
1127
|
+
return qd?.settle(!1), new Promise((n) => {
|
|
1089
1128
|
let r = {
|
|
1090
1129
|
...e,
|
|
1091
1130
|
returnFocus: typeof document > "u" ? null : document.activeElement,
|
|
1092
1131
|
settle: (e, i) => {
|
|
1093
|
-
|
|
1132
|
+
qd === r && (qd = null, Yd()), n(t(e, i));
|
|
1094
1133
|
}
|
|
1095
1134
|
};
|
|
1096
|
-
|
|
1135
|
+
qd = r, Yd();
|
|
1097
1136
|
});
|
|
1098
1137
|
}
|
|
1099
|
-
function
|
|
1100
|
-
return
|
|
1138
|
+
function Qd(e) {
|
|
1139
|
+
return Zd({
|
|
1101
1140
|
...e,
|
|
1102
1141
|
kind: "confirm"
|
|
1103
1142
|
}, (e) => e);
|
|
1104
1143
|
}
|
|
1105
|
-
function
|
|
1106
|
-
return
|
|
1144
|
+
function $d(e) {
|
|
1145
|
+
return Zd({
|
|
1107
1146
|
...e,
|
|
1108
1147
|
kind: "prompt"
|
|
1109
1148
|
}, (e, t) => e ? t ?? "" : null);
|
|
1110
1149
|
}
|
|
1111
1150
|
//#endregion
|
|
1112
1151
|
//#region src/components/Confirm/ConfirmDialog.tsx
|
|
1113
|
-
function
|
|
1114
|
-
let o = n("dialog", dn, t), s = e(), c = Kl(
|
|
1152
|
+
function ef({ classes: t, closeLabel: r, confirmButton: i, cancelButton: a }) {
|
|
1153
|
+
let o = n("dialog", dn, t), s = e(), c = Kl(Xd.subscribe, Xd.get, () => null), [l, u] = Z(null), [d, f] = Z(""), [p, m] = Z(!1);
|
|
1115
1154
|
c && c !== l && (u(c), f(c.kind === "prompt" ? c.defaultValue ?? "" : ""), m(!1));
|
|
1116
1155
|
let h = X(null), g = X(null), _ = o({
|
|
1117
1156
|
status: l?.status,
|
|
@@ -1204,7 +1243,7 @@ function $d({ classes: t, closeLabel: r, confirmButton: i, cancelButton: a }) {
|
|
|
1204
1243
|
}
|
|
1205
1244
|
//#endregion
|
|
1206
1245
|
//#region src/components/Divider/Divider.tsx
|
|
1207
|
-
function
|
|
1246
|
+
function tf({ classes: e, orientation: t = "horizontal", lineStyle: r, labelPosition: i, label: a, className: o, ...s }) {
|
|
1208
1247
|
let c = n("divider", fn, e)({
|
|
1209
1248
|
orientation: t,
|
|
1210
1249
|
plain: !a,
|
|
@@ -1237,7 +1276,7 @@ function ef({ classes: e, orientation: t = "horizontal", lineStyle: r, labelPosi
|
|
|
1237
1276
|
}
|
|
1238
1277
|
//#endregion
|
|
1239
1278
|
//#region src/components/Drawer/Drawer.tsx
|
|
1240
|
-
function
|
|
1279
|
+
function nf({ open: e, defaultOpen: t, onOpenChange: n, modal: r = !0, closeOnEscape: i = !0, closeOnInteractOutside: a, children: o }) {
|
|
1241
1280
|
return /* @__PURE__ */ Q(W.Provider, {
|
|
1242
1281
|
value: { modal: r },
|
|
1243
1282
|
children: /* @__PURE__ */ Q(uu.Root, {
|
|
@@ -1253,19 +1292,19 @@ function tf({ open: e, defaultOpen: t, onOpenChange: n, modal: r = !0, closeOnEs
|
|
|
1253
1292
|
})
|
|
1254
1293
|
});
|
|
1255
1294
|
}
|
|
1256
|
-
function
|
|
1295
|
+
function rf({ children: e }) {
|
|
1257
1296
|
return /* @__PURE__ */ Q(uu.Trigger, {
|
|
1258
1297
|
asChild: !0,
|
|
1259
1298
|
children: e
|
|
1260
1299
|
});
|
|
1261
1300
|
}
|
|
1262
|
-
function
|
|
1301
|
+
function af({ children: e }) {
|
|
1263
1302
|
return /* @__PURE__ */ Q(uu.CloseTrigger, {
|
|
1264
1303
|
asChild: !0,
|
|
1265
1304
|
children: e
|
|
1266
1305
|
});
|
|
1267
1306
|
}
|
|
1268
|
-
function
|
|
1307
|
+
function of({ classes: t, title: r, hideTitle: i, description: a, placement: o, size: s, offset: c, closable: l = !0, closeLabel: u, footer: d, className: f, children: p, ...m }) {
|
|
1269
1308
|
let h = n("drawer", hn, t), g = e(), { modal: _ } = Vl(W), v = h({
|
|
1270
1309
|
placement: o,
|
|
1271
1310
|
size: s,
|
|
@@ -1312,8 +1351,8 @@ function af({ classes: t, title: r, hideTitle: i, description: a, placement: o,
|
|
|
1312
1351
|
}
|
|
1313
1352
|
//#endregion
|
|
1314
1353
|
//#region src/components/Popover/Popover.tsx
|
|
1315
|
-
var
|
|
1316
|
-
function
|
|
1354
|
+
var sf = Rl({});
|
|
1355
|
+
function cf({ open: e, defaultOpen: t, onOpenChange: n, placement: r = "bottom", anchor: i, width: o, trapFocus: s, overlay: c, ref: l, children: u }) {
|
|
1317
1356
|
let d = a({
|
|
1318
1357
|
open: e,
|
|
1319
1358
|
defaultOpen: t,
|
|
@@ -1321,7 +1360,7 @@ function sf({ open: e, defaultOpen: t, onOpenChange: n, placement: r = "bottom",
|
|
|
1321
1360
|
onOpenChange: n,
|
|
1322
1361
|
ref: l
|
|
1323
1362
|
});
|
|
1324
|
-
return /* @__PURE__ */ Q(
|
|
1363
|
+
return /* @__PURE__ */ Q(sf.Provider, {
|
|
1325
1364
|
value: {
|
|
1326
1365
|
overlay: c,
|
|
1327
1366
|
width: o
|
|
@@ -1342,13 +1381,13 @@ function sf({ open: e, defaultOpen: t, onOpenChange: n, placement: r = "bottom",
|
|
|
1342
1381
|
})
|
|
1343
1382
|
});
|
|
1344
1383
|
}
|
|
1345
|
-
function
|
|
1384
|
+
function lf({ children: e }) {
|
|
1346
1385
|
return /* @__PURE__ */ Q(gu.Trigger, {
|
|
1347
1386
|
asChild: !0,
|
|
1348
1387
|
children: e
|
|
1349
1388
|
});
|
|
1350
1389
|
}
|
|
1351
|
-
function
|
|
1390
|
+
function uf({ children: e }) {
|
|
1352
1391
|
let t = _u();
|
|
1353
1392
|
return /* @__PURE__ */ Q(Ql.button, {
|
|
1354
1393
|
asChild: !0,
|
|
@@ -1356,8 +1395,8 @@ function lf({ children: e }) {
|
|
|
1356
1395
|
children: e
|
|
1357
1396
|
});
|
|
1358
1397
|
}
|
|
1359
|
-
function
|
|
1360
|
-
let d = n("popover", ja, t), f = Vl(
|
|
1398
|
+
function df({ classes: t, title: r, hideTitle: i, description: a, closable: o = !0, closeLabel: s, className: c, children: l, ...u }) {
|
|
1399
|
+
let d = n("popover", ja, t), f = Vl(sf), p = _u(), m = d({
|
|
1361
1400
|
width: f.width,
|
|
1362
1401
|
hideTitle: i
|
|
1363
1402
|
}), h = e(), g = Hl(), _ = Hl();
|
|
@@ -1402,46 +1441,49 @@ function uf({ classes: t, title: r, hideTitle: i, description: a, closable: o =
|
|
|
1402
1441
|
}
|
|
1403
1442
|
//#endregion
|
|
1404
1443
|
//#region src/components/Combobox/Combobox.tsx
|
|
1405
|
-
function
|
|
1406
|
-
let
|
|
1444
|
+
function ff({ classes: t, items: r, value: i, defaultValue: a, onValueChange: o, onInputValueChange: s, onFilterChange: c, filter: l = !0, manualFilter: u, allowCustomValue: d, emptyText: f, placeholder: p, disabled: m, readOnly: h, invalid: g, required: _, name: v, itemValue: y, itemLabel: b, itemDisabled: x, itemGroup: S, itemKeywords: C, valueKey: w, clearable: T = !0, loading: E, loadingText: D, size: O, hasMore: k, onLoadMore: A, dataSource: j, minSearchLength: M, pageSize: N, open: P, onOpenChange: F, stopKeyPropagation: I = !1, renderItem: z, id: H, className: ee, style: U, onBlur: W, onKeyDown: G, ...te }) {
|
|
1445
|
+
let K = n("combobox", jt, t)({ size: O }), ne = eu(), re = e(), q = {
|
|
1407
1446
|
itemValue: y,
|
|
1408
1447
|
itemLabel: b,
|
|
1409
1448
|
itemDisabled: x,
|
|
1410
1449
|
itemGroup: S,
|
|
1411
1450
|
itemKeywords: C,
|
|
1412
1451
|
valueKey: w
|
|
1413
|
-
}, [
|
|
1452
|
+
}, [ie, ae] = Z(""), oe = R({
|
|
1414
1453
|
items: r,
|
|
1415
1454
|
source: j,
|
|
1416
|
-
accessors:
|
|
1455
|
+
accessors: q,
|
|
1417
1456
|
pageSize: N,
|
|
1418
1457
|
minSearchLength: M
|
|
1419
|
-
}), { options:
|
|
1458
|
+
}), { options: se, groups: ce, ordered: le } = L(oe.items, q, l && !u && !j ? ie : ""), ue = Gl(() => [...se, ...oe.resolvedOptions], [se, oe.resolvedOptions]), { selected: de, keys: fe, commit: pe, commitKeys: me } = V({
|
|
1420
1459
|
multiple: !1,
|
|
1421
1460
|
value: i,
|
|
1422
1461
|
defaultValue: a,
|
|
1423
|
-
accessors:
|
|
1424
|
-
items:
|
|
1462
|
+
accessors: q,
|
|
1463
|
+
items: ue,
|
|
1425
1464
|
onChange: o,
|
|
1426
1465
|
check: {
|
|
1427
1466
|
component: "Combobox",
|
|
1428
1467
|
ready: !j && !E && r.length > 0 && !d
|
|
1429
1468
|
}
|
|
1430
|
-
}),
|
|
1469
|
+
}), he = fe.join("\0");
|
|
1431
1470
|
Y(() => {
|
|
1432
|
-
|
|
1433
|
-
}, [
|
|
1434
|
-
let
|
|
1435
|
-
items:
|
|
1471
|
+
oe.resolve(fe, ue);
|
|
1472
|
+
}, [he, j]);
|
|
1473
|
+
let ge = E || oe.loading, J = Gl(() => ou({
|
|
1474
|
+
items: le,
|
|
1436
1475
|
itemToString: (e) => e.label,
|
|
1437
1476
|
itemToValue: (e) => e.key,
|
|
1438
1477
|
isItemDisabled: (e) => e.disabled
|
|
1439
|
-
}), [
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1478
|
+
}), [le]), [_e, ve] = Z(null), ye = _e ?? de[0]?.label ?? "", [be, xe] = Z(null), Se = X({
|
|
1479
|
+
now: !1,
|
|
1480
|
+
keys: !1
|
|
1481
|
+
});
|
|
1482
|
+
function Ce() {
|
|
1483
|
+
if (!d || _e === null) return;
|
|
1484
|
+
ve(null);
|
|
1485
|
+
let e = _e.trim(), t = e.toLocaleLowerCase(), n = se.find((e) => e.label.toLocaleLowerCase() === t);
|
|
1486
|
+
n && n.key === de[0]?.key || pe(e ? [n ?? {
|
|
1445
1487
|
key: e,
|
|
1446
1488
|
value: e,
|
|
1447
1489
|
label: e,
|
|
@@ -1450,23 +1492,26 @@ function df({ classes: t, items: r, value: i, defaultValue: a, onValueChange: o,
|
|
|
1450
1492
|
}] : []);
|
|
1451
1493
|
}
|
|
1452
1494
|
return /* @__PURE__ */ $(vu.Root, {
|
|
1453
|
-
className:
|
|
1454
|
-
style:
|
|
1455
|
-
collection:
|
|
1456
|
-
...Lt(
|
|
1457
|
-
label:
|
|
1458
|
-
input:
|
|
1495
|
+
className: K.base({ class: ee }),
|
|
1496
|
+
style: U,
|
|
1497
|
+
collection: J,
|
|
1498
|
+
...Lt(H, "input", {
|
|
1499
|
+
label: ne?.ids.label,
|
|
1500
|
+
input: ne?.ids.control
|
|
1459
1501
|
}),
|
|
1460
|
-
value:
|
|
1461
|
-
onValueChange: (e) =>
|
|
1462
|
-
inputValue:
|
|
1502
|
+
value: fe,
|
|
1503
|
+
onValueChange: (e) => me(e.value, e.items),
|
|
1504
|
+
inputValue: ye,
|
|
1463
1505
|
onInputValueChange: (e) => {
|
|
1464
1506
|
let t = e.reason === "input-change";
|
|
1465
|
-
|
|
1507
|
+
ae(t ? e.inputValue : ""), ve(t ? e.inputValue : null), s?.(e.inputValue), t && c?.(e.inputValue), t && j && oe.search(e.inputValue);
|
|
1466
1508
|
},
|
|
1467
|
-
onHighlightChange: (e) =>
|
|
1509
|
+
onHighlightChange: (e) => xe(e.highlightedValue),
|
|
1510
|
+
open: P,
|
|
1468
1511
|
onOpenChange: (e) => {
|
|
1469
|
-
e.open
|
|
1512
|
+
F?.(e.open);
|
|
1513
|
+
let t = Se.current;
|
|
1514
|
+
t.now = e.open, e.open ? t.keys = !0 : setTimeout(() => t.keys = t.now), e.open && _e === null && oe.open();
|
|
1470
1515
|
},
|
|
1471
1516
|
allowCustomValue: d,
|
|
1472
1517
|
disabled: m,
|
|
@@ -1479,84 +1524,88 @@ function df({ classes: t, items: r, value: i, defaultValue: a, onValueChange: o,
|
|
|
1479
1524
|
sameWidth: !0,
|
|
1480
1525
|
gutter: 4
|
|
1481
1526
|
},
|
|
1482
|
-
translations:
|
|
1527
|
+
translations: re.combobox,
|
|
1483
1528
|
lazyMount: !0,
|
|
1484
1529
|
unmountOnExit: !0,
|
|
1485
1530
|
children: [
|
|
1486
1531
|
/* @__PURE__ */ $(vu.Control, {
|
|
1487
|
-
className:
|
|
1532
|
+
className: K.control(),
|
|
1488
1533
|
children: [
|
|
1489
1534
|
/* @__PURE__ */ Q(vu.Input, {
|
|
1490
|
-
...
|
|
1491
|
-
className:
|
|
1535
|
+
...te,
|
|
1536
|
+
className: K.input(),
|
|
1492
1537
|
"aria-busy": E || void 0,
|
|
1493
1538
|
onBlur: (e) => {
|
|
1494
|
-
|
|
1539
|
+
W?.(e), Ce();
|
|
1495
1540
|
},
|
|
1496
1541
|
onKeyDown: (e) => {
|
|
1497
|
-
|
|
1542
|
+
G?.(e), I && (Se.current.keys || P) && [
|
|
1543
|
+
"Enter",
|
|
1544
|
+
"Escape",
|
|
1545
|
+
"Tab"
|
|
1546
|
+
].includes(e.key) && e.stopPropagation(), e.key === "Enter" && !be && Ce();
|
|
1498
1547
|
}
|
|
1499
1548
|
}),
|
|
1500
1549
|
T && /* @__PURE__ */ Q(vu.ClearTrigger, {
|
|
1501
|
-
className:
|
|
1550
|
+
className: K.clear(),
|
|
1502
1551
|
children: /* @__PURE__ */ Q(Pl, {
|
|
1503
|
-
className:
|
|
1552
|
+
className: K.clearIcon(),
|
|
1504
1553
|
"aria-hidden": "true"
|
|
1505
1554
|
})
|
|
1506
1555
|
}),
|
|
1507
1556
|
/* @__PURE__ */ Q(vu.Trigger, {
|
|
1508
|
-
className:
|
|
1557
|
+
className: K.trigger(),
|
|
1509
1558
|
children: E ? /* @__PURE__ */ Q(Yc, {
|
|
1510
|
-
className:
|
|
1559
|
+
className: K.spinner(),
|
|
1511
1560
|
"aria-hidden": "true"
|
|
1512
1561
|
}) : /* @__PURE__ */ Q(Sc, {
|
|
1513
|
-
className:
|
|
1562
|
+
className: K.triggerIcon(),
|
|
1514
1563
|
"aria-hidden": "true"
|
|
1515
1564
|
})
|
|
1516
1565
|
})
|
|
1517
1566
|
]
|
|
1518
1567
|
}),
|
|
1519
1568
|
/* @__PURE__ */ Q(Zl, { children: /* @__PURE__ */ Q(vu.Positioner, { children: /* @__PURE__ */ $(vu.Content, {
|
|
1520
|
-
className:
|
|
1521
|
-
"aria-busy":
|
|
1522
|
-
children: [!
|
|
1523
|
-
className:
|
|
1524
|
-
children: f ??
|
|
1569
|
+
className: K.content(),
|
|
1570
|
+
"aria-busy": ge || void 0,
|
|
1571
|
+
children: [!ge && /* @__PURE__ */ Q(vu.Empty, {
|
|
1572
|
+
className: K.empty(),
|
|
1573
|
+
children: f ?? oe.emptyText ?? re.common.noResults
|
|
1525
1574
|
}), /* @__PURE__ */ Q(B, {
|
|
1526
1575
|
parts: vu,
|
|
1527
|
-
groups:
|
|
1576
|
+
groups: ce,
|
|
1528
1577
|
classes: {
|
|
1529
|
-
item:
|
|
1530
|
-
itemText:
|
|
1531
|
-
icon:
|
|
1532
|
-
itemIndicator:
|
|
1533
|
-
itemBody:
|
|
1534
|
-
itemDescription:
|
|
1535
|
-
group:
|
|
1536
|
-
groupLabel:
|
|
1537
|
-
loading:
|
|
1538
|
-
loadingIcon:
|
|
1539
|
-
sentinel:
|
|
1578
|
+
item: K.item(),
|
|
1579
|
+
itemText: K.itemText(),
|
|
1580
|
+
icon: K.itemIndicator(),
|
|
1581
|
+
itemIndicator: K.itemIndicator(),
|
|
1582
|
+
itemBody: K.itemBody(),
|
|
1583
|
+
itemDescription: K.itemDescription(),
|
|
1584
|
+
group: K.group(),
|
|
1585
|
+
groupLabel: K.groupLabel(),
|
|
1586
|
+
loading: K.loading(),
|
|
1587
|
+
loadingIcon: K.loadingIcon(),
|
|
1588
|
+
sentinel: K.sentinel()
|
|
1540
1589
|
},
|
|
1541
|
-
loading:
|
|
1542
|
-
loadingText: D ??
|
|
1543
|
-
hasMore: k ||
|
|
1544
|
-
onLoadMore: () => j ?
|
|
1545
|
-
renderItem:
|
|
1590
|
+
loading: ge,
|
|
1591
|
+
loadingText: D ?? re.common.loading,
|
|
1592
|
+
hasMore: k || oe.hasMore,
|
|
1593
|
+
onLoadMore: () => j ? oe.loadMore() : A?.(),
|
|
1594
|
+
renderItem: z
|
|
1546
1595
|
})]
|
|
1547
1596
|
}) }) }),
|
|
1548
1597
|
j && /* @__PURE__ */ Q("span", {
|
|
1549
1598
|
role: "status",
|
|
1550
|
-
className:
|
|
1551
|
-
children:
|
|
1599
|
+
className: K.announcer(),
|
|
1600
|
+
children: oe.announcement
|
|
1552
1601
|
})
|
|
1553
1602
|
]
|
|
1554
1603
|
});
|
|
1555
1604
|
}
|
|
1556
1605
|
//#endregion
|
|
1557
1606
|
//#region src/components/FileUpload/FileUpload.tsx
|
|
1558
|
-
var
|
|
1559
|
-
function
|
|
1607
|
+
var pf = (e) => [...e.dataTransfer?.types ?? []].includes("Files");
|
|
1608
|
+
function mf({ classes: t, label: r, accept: i, maxFiles: a = 1, maxFileSize: o, files: s, onFilesChange: c, onFilesReject: l, onUploadComplete: u, dropzoneText: d, triggerLabel: f, hint: p, variant: m = "dropzone", upload: h, autoUpload: g, preview: _, fullscreenDrop: v, paste: y, showFileList: b = !0, disabled: x, invalid: S, required: C, name: w, className: T, ref: E, onPaste: O, ...k }) {
|
|
1560
1609
|
let A = n("fileUpload", kn, t), M = A(), N = e().fileUpload, P = a > 1, [F, I] = Z(() => /* @__PURE__ */ new Map()), [L, R] = Z("none"), [z, B] = Z("none"), V = X({
|
|
1561
1610
|
upload: h,
|
|
1562
1611
|
onUploadComplete: u,
|
|
@@ -1622,13 +1671,13 @@ function pf({ classes: t, label: r, accept: i, maxFiles: a = 1, maxFileSize: o,
|
|
|
1622
1671
|
let e = K.current, t = (t) => {
|
|
1623
1672
|
e.over = t, B(t);
|
|
1624
1673
|
}, n = (n) => {
|
|
1625
|
-
|
|
1674
|
+
pf(n) && !e.api.disabled && (e.depth++, t(e.dragState(n)));
|
|
1626
1675
|
}, r = (n) => {
|
|
1627
|
-
|
|
1676
|
+
pf(n) && (e.depth = Math.max(0, e.depth - 1), e.depth || t("none"));
|
|
1628
1677
|
}, i = (t) => {
|
|
1629
|
-
|
|
1678
|
+
pf(t) && e.over !== "none" && t.preventDefault();
|
|
1630
1679
|
}, a = (n) => {
|
|
1631
|
-
|
|
1680
|
+
pf(n) && e.over !== "none" && (n.preventDefault(), e.depth = 0, t("none"), e.api.setClipboardFiles(n.dataTransfer));
|
|
1632
1681
|
};
|
|
1633
1682
|
return window.addEventListener("dragenter", n), window.addEventListener("dragleave", r), window.addEventListener("dragover", i), window.addEventListener("drop", a), () => {
|
|
1634
1683
|
window.removeEventListener("dragenter", n), window.removeEventListener("dragleave", r), window.removeEventListener("dragover", i), window.removeEventListener("drop", a);
|
|
@@ -1784,12 +1833,12 @@ function pf({ classes: t, label: r, accept: i, maxFiles: a = 1, maxFileSize: o,
|
|
|
1784
1833
|
}
|
|
1785
1834
|
//#endregion
|
|
1786
1835
|
//#region src/components/ColorPicker/ColorPickerContent.tsx
|
|
1787
|
-
var
|
|
1836
|
+
var hf = [
|
|
1788
1837
|
"rgb",
|
|
1789
1838
|
"hsl",
|
|
1790
1839
|
"hsb",
|
|
1791
1840
|
"oklch"
|
|
1792
|
-
],
|
|
1841
|
+
], gf = {
|
|
1793
1842
|
rgb: [
|
|
1794
1843
|
"red",
|
|
1795
1844
|
"green",
|
|
@@ -1806,7 +1855,7 @@ var mf = [
|
|
|
1806
1855
|
"brightness"
|
|
1807
1856
|
]
|
|
1808
1857
|
};
|
|
1809
|
-
function
|
|
1858
|
+
function _f({ alpha: t, swatches: r, withPicker: i, eyeDropper: a, channelInputs: o, classes: s }) {
|
|
1810
1859
|
let c = n("colorPicker", Ot, s)(), l = e().colorPicker, [u, d] = Z("rgb"), f = Xr();
|
|
1811
1860
|
return /* @__PURE__ */ Q(Zl, { children: /* @__PURE__ */ Q(Tu.Positioner, { children: /* @__PURE__ */ $(Tu.Content, {
|
|
1812
1861
|
className: c.content(),
|
|
@@ -1857,7 +1906,7 @@ function gf({ alpha: t, swatches: r, withPicker: i, eyeDropper: a, channelInputs
|
|
|
1857
1906
|
role: "group",
|
|
1858
1907
|
"aria-label": l.format,
|
|
1859
1908
|
className: c.formats(),
|
|
1860
|
-
children:
|
|
1909
|
+
children: hf.map((e) => /* @__PURE__ */ Q("button", {
|
|
1861
1910
|
type: "button",
|
|
1862
1911
|
className: c.formatButton(),
|
|
1863
1912
|
"aria-pressed": e === u,
|
|
@@ -1892,7 +1941,7 @@ function gf({ alpha: t, swatches: r, withPicker: i, eyeDropper: a, channelInputs
|
|
|
1892
1941
|
}
|
|
1893
1942
|
}, n[i])]
|
|
1894
1943
|
}, r));
|
|
1895
|
-
} }) :
|
|
1944
|
+
} }) : gf[u].map((e, t) => /* @__PURE__ */ $("label", {
|
|
1896
1945
|
className: c.channelField(),
|
|
1897
1946
|
children: [/* @__PURE__ */ Q("span", {
|
|
1898
1947
|
className: c.channelLabel(),
|
|
@@ -1921,7 +1970,7 @@ function gf({ alpha: t, swatches: r, withPicker: i, eyeDropper: a, channelInputs
|
|
|
1921
1970
|
}
|
|
1922
1971
|
//#endregion
|
|
1923
1972
|
//#region src/components/ColorPicker/ColorPicker.tsx
|
|
1924
|
-
function
|
|
1973
|
+
function vf({ classes: t, value: r, defaultValue: i = "#000000", onValueChange: a, onValueChangeEnd: o, alpha: s = !1, swatches: c, format: l = "hex", withPicker: u = !0, eyeDropper: d = !1, channelInputs: f = !1, disabled: p, readOnly: m, invalid: h, name: g, "aria-label": _, id: v, className: y, style: b }) {
|
|
1925
1974
|
let x = n("colorPicker", Ot, t)({ cssText: l !== "hex" }), S = e().colorPicker, C = eu(), w = Hl(), T = `${w}name`, E = `${w}value`, D = !C && !!v && !_, O = s ? "hexa" : "hex", k = Gl(() => r === void 0 ? void 0 : Eu(da(r) ?? r), [r]), A = Gl(() => Eu(da(i) ?? i), [i]), j = (e) => l === "hex" ? e.toString(O) : Hn(e.toString(O), l);
|
|
1926
1975
|
return /* @__PURE__ */ $(Tu.Root, {
|
|
1927
1976
|
className: x.base({ class: y }),
|
|
@@ -1970,7 +2019,7 @@ function _f({ classes: t, value: r, defaultValue: i = "#000000", onValueChange:
|
|
|
1970
2019
|
})
|
|
1971
2020
|
});
|
|
1972
2021
|
} }),
|
|
1973
|
-
/* @__PURE__ */ Q(
|
|
2022
|
+
/* @__PURE__ */ Q(_f, {
|
|
1974
2023
|
alpha: s,
|
|
1975
2024
|
swatches: c,
|
|
1976
2025
|
withPicker: u,
|
|
@@ -1984,7 +2033,7 @@ function _f({ classes: t, value: r, defaultValue: i = "#000000", onValueChange:
|
|
|
1984
2033
|
}
|
|
1985
2034
|
//#endregion
|
|
1986
2035
|
//#region src/components/Knob/Knob.tsx
|
|
1987
|
-
function
|
|
2036
|
+
function yf({ classes: e, value: t, defaultValue: r = 0, onValueChange: i, min: a = 0, max: o = 100, step: s = 1, label: c, "aria-label": l, id: u, formatValue: d, valueTemplate: f, strokeWidth: p = 8, color: m = "primary", size: h, disabled: g = !1, name: _, className: v, style: y }) {
|
|
1988
2037
|
I("Knob", u);
|
|
1989
2038
|
let b = n("knob", fi, e)({
|
|
1990
2039
|
size: h,
|
|
@@ -2061,7 +2110,7 @@ function vf({ classes: e, value: t, defaultValue: r = 0, onValueChange: i, min:
|
|
|
2061
2110
|
}
|
|
2062
2111
|
//#endregion
|
|
2063
2112
|
//#region src/components/MaskInput/MaskInput.tsx
|
|
2064
|
-
function
|
|
2113
|
+
function bf({ mask: e, value: t, defaultValue: n = "", onValueChange: r, onComplete: i, slotChar: a = "_", unmask: o = !1, autoClear: s = !1, tokens: c, placeholder: l, onBlur: u, ...d }) {
|
|
2065
2114
|
let [f, p] = Z(() => Mi(n, e, c)), m = t === void 0 ? f : Mi(t, e, c), h = (t) => {
|
|
2066
2115
|
let n = ki(m, e, c);
|
|
2067
2116
|
p(t);
|
|
@@ -2087,8 +2136,8 @@ function yf({ mask: e, value: t, defaultValue: n = "", onValueChange: r, onCompl
|
|
|
2087
2136
|
}
|
|
2088
2137
|
//#endregion
|
|
2089
2138
|
//#region src/components/PinInput/PinInput.tsx
|
|
2090
|
-
var
|
|
2091
|
-
function
|
|
2139
|
+
var xf = (e) => e === void 0 ? void 0 : e.split("");
|
|
2140
|
+
function Sf({ classes: t, length: r = 6, value: i, defaultValue: a, onValueChange: o, onValueComplete: s, type: c = "numeric", otp: l = !0, mask: u, placeholder: d = "", invalid: f, disabled: p, name: m, "aria-label": h, id: g, className: _, style: v }) {
|
|
2092
2141
|
I("PinInput", g);
|
|
2093
2142
|
let y = n("pinInput", Oa, t)(), b = e(), x = eu();
|
|
2094
2143
|
return /* @__PURE__ */ $(Du.Root, {
|
|
@@ -2096,8 +2145,8 @@ function xf({ classes: t, length: r = 6, value: i, defaultValue: a, onValueChang
|
|
|
2096
2145
|
className: y.base({ class: _ }),
|
|
2097
2146
|
style: v,
|
|
2098
2147
|
count: r,
|
|
2099
|
-
value:
|
|
2100
|
-
defaultValue:
|
|
2148
|
+
value: xf(i),
|
|
2149
|
+
defaultValue: xf(a),
|
|
2101
2150
|
onValueChange: (e) => {
|
|
2102
2151
|
o?.(e.valueAsString), e.value.length === r && e.value.every(Boolean) && s?.(e.valueAsString);
|
|
2103
2152
|
},
|
|
@@ -2124,7 +2173,7 @@ function xf({ classes: t, length: r = 6, value: i, defaultValue: a, onValueChang
|
|
|
2124
2173
|
}
|
|
2125
2174
|
//#endregion
|
|
2126
2175
|
//#region src/components/Rating/Rating.tsx
|
|
2127
|
-
function
|
|
2176
|
+
function Cf({ classes: t, value: r, defaultValue: i, onValueChange: a, count: o = 5, allowHalf: s, allowClear: c = !1, icon: l = El, readOnly: u, disabled: d, label: f, "aria-label": p, id: m, size: h, name: g, className: _, style: v }) {
|
|
2128
2177
|
I("Rating", m);
|
|
2129
2178
|
let y = n("rating", Wa, t), b = e(), x = y({ size: h }), S = X(null);
|
|
2130
2179
|
return /* @__PURE__ */ $(Ou.Root, {
|
|
@@ -2179,16 +2228,16 @@ function Sf({ classes: t, value: r, defaultValue: i, onValueChange: a, count: o
|
|
|
2179
2228
|
}
|
|
2180
2229
|
//#endregion
|
|
2181
2230
|
//#region src/components/CascadeSelect/CascadeSelect.tsx
|
|
2182
|
-
var
|
|
2231
|
+
var wf = {
|
|
2183
2232
|
status: {},
|
|
2184
2233
|
children: {},
|
|
2185
2234
|
errors: {}
|
|
2186
2235
|
};
|
|
2187
|
-
function
|
|
2236
|
+
function Tf({ classes: e, items: r, value: i, defaultValue: a = null, onValueChange: o, placeholder: s, separator: c = " › ", disabled: l, invalid: u, valueKey: d, changeOnSelect: f = !1, expandTrigger: p = "hover", filter: m = !1, clearable: h = !1, loading: g = !1, size: _, loadChildren: v, onLoadChildren: y, dataSource: b, "aria-label": x, id: S, className: C, style: w }) {
|
|
2188
2237
|
let T = n("cascadeSelect", at, e)({
|
|
2189
2238
|
size: _,
|
|
2190
2239
|
clearable: h && !m
|
|
2191
|
-
}), { translations: E, locale: D } = t(), O = eu(), k = Hl(), A = (e) => yi(e.value, d), [j, M] = Z(""), [N, P] = Z(
|
|
2240
|
+
}), { translations: E, locale: D } = t(), O = eu(), k = Hl(), A = (e) => yi(e.value, d), [j, M] = Z(""), [N, P] = Z(wf), F = X(wf), [I, L] = Z(() => /* @__PURE__ */ new Set()), R = Gl(() => rc(r, N.children, (e) => yi(e.value, d)), [
|
|
2192
2241
|
r,
|
|
2193
2242
|
N.children,
|
|
2194
2243
|
d
|
|
@@ -2521,7 +2570,7 @@ function wf({ classes: e, items: r, value: i, defaultValue: a = null, onValueCha
|
|
|
2521
2570
|
}
|
|
2522
2571
|
//#endregion
|
|
2523
2572
|
//#region src/components/TreeSelect/TreeSelect.tsx
|
|
2524
|
-
function
|
|
2573
|
+
function Ef({ classes: t, items: r, value: i, defaultValue: a, onValueChange: o, placeholder: s, leavesOnly: c = !1, defaultExpandedValue: l, disabled: u, invalid: d, multiple: f = !1, checkedStrategy: p = "parent", checkStrictly: m = !1, maxShown: h, filter: g = !1, clearable: _ = !1, loading: v = !1, size: y, loadChildren: b, onLoadChildren: x, dataSource: S, "aria-label": C, id: w, className: T, style: E }) {
|
|
2525
2574
|
let D = n("treeSelect", Bs, t)({
|
|
2526
2575
|
size: y,
|
|
2527
2576
|
clearable: _ && !f
|
|
@@ -2694,7 +2743,7 @@ function Tf({ classes: t, items: r, value: i, defaultValue: a, onValueChange: o,
|
|
|
2694
2743
|
}
|
|
2695
2744
|
//#endregion
|
|
2696
2745
|
//#region src/components/Carousel/Carousel.tsx
|
|
2697
|
-
function
|
|
2746
|
+
function Df({ classes: t, items: r, label: i, children: a, slidesPerPage: o = 1, slidesToScroll: s, orientation: c = "horizontal", height: l, breakpoints: u, allowMouseDrag: d = !1, spacing: f = "16px", loop: p = !1, autoplay: m = !1, indicators: h = !0, controlsPosition: g = "bottom", page: _, defaultPage: v = 0, onPageChange: y, className: b, style: x }) {
|
|
2698
2747
|
let S = n("carousel", rt, t), C = n("iconButton", Pr), w = g === "sides", T = S({
|
|
2699
2748
|
vertical: c === "vertical",
|
|
2700
2749
|
controlsPosition: w ? "sides" : void 0
|
|
@@ -2790,7 +2839,7 @@ function Ef({ classes: t, items: r, label: i, children: a, slidesPerPage: o = 1,
|
|
|
2790
2839
|
}
|
|
2791
2840
|
//#endregion
|
|
2792
2841
|
//#region src/components/Gallery/GalleryVideo.tsx
|
|
2793
|
-
function
|
|
2842
|
+
function Of({ item: e, className: t, inactive: n }) {
|
|
2794
2843
|
return /* @__PURE__ */ $("video", {
|
|
2795
2844
|
tabIndex: n ? -1 : void 0,
|
|
2796
2845
|
controls: !0,
|
|
@@ -2812,7 +2861,7 @@ function Df({ item: e, className: t, inactive: n }) {
|
|
|
2812
2861
|
}
|
|
2813
2862
|
//#endregion
|
|
2814
2863
|
//#region src/components/Gallery/Lightbox.tsx
|
|
2815
|
-
function
|
|
2864
|
+
function kf({ images: e, label: r, page: i, onPageChange: a }) {
|
|
2816
2865
|
let o = n("gallery", ur), s = n("dialog", dn), c = n("iconButton", Pr), l = o(), u = s(), d = c({
|
|
2817
2866
|
variant: "text",
|
|
2818
2867
|
size: "sm"
|
|
@@ -3040,7 +3089,7 @@ function Of({ images: e, label: r, page: i, onPageChange: a }) {
|
|
|
3040
3089
|
onPointerUp: H,
|
|
3041
3090
|
onPointerCancel: H,
|
|
3042
3091
|
onWheel: ee,
|
|
3043
|
-
children: g ? /* @__PURE__ */ Q(
|
|
3092
|
+
children: g ? /* @__PURE__ */ Q(Of, {
|
|
3044
3093
|
item: h,
|
|
3045
3094
|
className: l.zoomVideo()
|
|
3046
3095
|
}) : /* @__PURE__ */ Q("img", {
|
|
@@ -3071,7 +3120,7 @@ function Of({ images: e, label: r, page: i, onPageChange: a }) {
|
|
|
3071
3120
|
}
|
|
3072
3121
|
//#endregion
|
|
3073
3122
|
//#region src/components/Gallery/Gallery.tsx
|
|
3074
|
-
function
|
|
3123
|
+
function Af({ classes: t, images: r, label: i, thumbnails: a = !0, fullscreen: o = !0, tools: s = !1, lazy: c = !1, hasMore: l = !1, loading: u = !1, onLoadMore: d, page: f, defaultPage: p = 0, onPageChange: m, className: h, style: g }) {
|
|
3075
3124
|
let _ = n("dialog", dn), v = n("gallery", ur, t), y = n("iconButton", Pr), b = v(), x = y({
|
|
3076
3125
|
variant: "outline",
|
|
3077
3126
|
size: "sm"
|
|
@@ -3105,7 +3154,7 @@ function kf({ classes: t, images: r, label: i, thumbnails: a = !0, fullscreen: o
|
|
|
3105
3154
|
unmountOnExit: !0,
|
|
3106
3155
|
children: [/* @__PURE__ */ $("div", {
|
|
3107
3156
|
className: b.stage(),
|
|
3108
|
-
children: [/* @__PURE__ */ Q(
|
|
3157
|
+
children: [/* @__PURE__ */ Q(Df, {
|
|
3109
3158
|
items: r,
|
|
3110
3159
|
label: i,
|
|
3111
3160
|
page: E,
|
|
@@ -3113,7 +3162,7 @@ function kf({ classes: t, images: r, label: i, thumbnails: a = !0, fullscreen: o
|
|
|
3113
3162
|
onPageChange: D,
|
|
3114
3163
|
children: (e, t) => /* @__PURE__ */ $("figure", {
|
|
3115
3164
|
className: b.figure(),
|
|
3116
|
-
children: [e.type === "video" ? /* @__PURE__ */ Q(
|
|
3165
|
+
children: [e.type === "video" ? /* @__PURE__ */ Q(Of, {
|
|
3117
3166
|
item: e,
|
|
3118
3167
|
className: b.video(),
|
|
3119
3168
|
inactive: t !== E
|
|
@@ -3137,7 +3186,7 @@ function kf({ classes: t, images: r, label: i, thumbnails: a = !0, fullscreen: o
|
|
|
3137
3186
|
})]
|
|
3138
3187
|
}), /* @__PURE__ */ $(Zl, { children: [/* @__PURE__ */ Q(uu.Backdrop, { className: S.backdrop() }), /* @__PURE__ */ Q(uu.Positioner, {
|
|
3139
3188
|
className: b.positioner(),
|
|
3140
|
-
children: s ? /* @__PURE__ */ Q(
|
|
3189
|
+
children: s ? /* @__PURE__ */ Q(kf, {
|
|
3141
3190
|
images: r,
|
|
3142
3191
|
label: i,
|
|
3143
3192
|
page: E,
|
|
@@ -3157,14 +3206,14 @@ function kf({ classes: t, images: r, label: i, thumbnails: a = !0, fullscreen: o
|
|
|
3157
3206
|
"aria-hidden": "true"
|
|
3158
3207
|
})
|
|
3159
3208
|
})]
|
|
3160
|
-
}), /* @__PURE__ */ Q(
|
|
3209
|
+
}), /* @__PURE__ */ Q(Df, {
|
|
3161
3210
|
items: r,
|
|
3162
3211
|
label: i,
|
|
3163
3212
|
page: E,
|
|
3164
3213
|
onPageChange: D,
|
|
3165
3214
|
children: (e, t) => /* @__PURE__ */ $("figure", {
|
|
3166
3215
|
className: b.figure(),
|
|
3167
|
-
children: [e.type === "video" ? /* @__PURE__ */ Q(
|
|
3216
|
+
children: [e.type === "video" ? /* @__PURE__ */ Q(Of, {
|
|
3168
3217
|
item: e,
|
|
3169
3218
|
className: b.video(),
|
|
3170
3219
|
inactive: t !== E
|
|
@@ -3203,7 +3252,7 @@ function kf({ classes: t, images: r, label: i, thumbnails: a = !0, fullscreen: o
|
|
|
3203
3252
|
}
|
|
3204
3253
|
//#endregion
|
|
3205
3254
|
//#region src/components/DateRangePicker/DateRangePicker.tsx
|
|
3206
|
-
function
|
|
3255
|
+
function jf({ value: n, defaultValue: r, onValueChange: i, valueType: a = "string", withTime: o = !1, min: s, max: c, isDateUnavailable: u, excludeDates: f, locale: m, presets: _, "aria-label": y, id: b, clearable: x = !0, highlightToday: S = !0, ...C }) {
|
|
3207
3256
|
I("DateRangePicker", b);
|
|
3208
3257
|
let w = t(), T = m ?? w.locale, E = e(), D = C.timeZone, [O, k] = Z(r ?? null), A = n === void 0 ? O : n, j = (e) => [e?.start, e?.end].map((e) => l(e, o, D)).filter((e) => !!e), M = (e) => p(e, o, D), N = (e) => {
|
|
3209
3258
|
let t = e.length ? {
|
|
@@ -3241,8 +3290,8 @@ function Af({ value: n, defaultValue: r, onValueChange: i, valueType: a = "strin
|
|
|
3241
3290
|
}
|
|
3242
3291
|
//#endregion
|
|
3243
3292
|
//#region src/components/TimePicker/TimePicker.tsx
|
|
3244
|
-
var
|
|
3245
|
-
function
|
|
3293
|
+
var Mf = C("00:00");
|
|
3294
|
+
function Nf({ classes: r, value: i, defaultValue: a = null, onValueChange: o, min: s, max: c, step: l = 30, withSeconds: d = !1, hourCycle: f, options: p, locale: m, disabled: h, readOnly: g, invalid: _, required: v, name: b, size: S, clearable: w = !0, timeZone: T, referenceDate: E, showTimeZone: D, "aria-label": O, id: k, className: A, style: j }) {
|
|
3246
3295
|
I("TimePicker", k);
|
|
3247
3296
|
let M = n("datePicker", Zt, r), N = n("select", bo), P = M({ size: S }), F = N(), L = t(), R = m ?? L.locale, z = e(), B = Hl(), V = eu(), H = {
|
|
3248
3297
|
disabled: h ?? V?.disabled,
|
|
@@ -3305,7 +3354,7 @@ function Mf({ classes: r, value: i, defaultValue: a = null, onValueChange: o, mi
|
|
|
3305
3354
|
onValueChange: (e) => te(y(e.value[0], d)),
|
|
3306
3355
|
granularity: d ? "second" : "minute",
|
|
3307
3356
|
formatter: K,
|
|
3308
|
-
placeholderValue:
|
|
3357
|
+
placeholderValue: Mf,
|
|
3309
3358
|
min: s ? C(s) : void 0,
|
|
3310
3359
|
max: c ? C(c) : void 0,
|
|
3311
3360
|
...H,
|
|
@@ -3394,7 +3443,7 @@ function Mf({ classes: r, value: i, defaultValue: a = null, onValueChange: o, mi
|
|
|
3394
3443
|
}
|
|
3395
3444
|
//#endregion
|
|
3396
3445
|
//#region src/components/TimeRangePicker/TimeRangePicker.tsx
|
|
3397
|
-
function
|
|
3446
|
+
function Pf({ value: r, defaultValue: i = null, onValueChange: a, min: o, max: s, withSeconds: c = !1, hourCycle: l, locale: u, disabled: d, readOnly: f, invalid: p, required: m, name: h, size: g, clearable: _ = !0, "aria-label": v, id: b, className: S, style: w, classes: T }) {
|
|
3398
3447
|
I("TimeRangePicker", b);
|
|
3399
3448
|
let E = n("datePicker", Zt, T)({ size: g }), D = t(), O = u ?? D.locale, k = e(), A = Hl(), j = eu(), M = {
|
|
3400
3449
|
disabled: d ?? j?.disabled,
|
|
@@ -3497,14 +3546,14 @@ function Nf({ value: r, defaultValue: i = null, onValueChange: a, min: o, max: s
|
|
|
3497
3546
|
}
|
|
3498
3547
|
//#endregion
|
|
3499
3548
|
//#region src/components/QuarterPicker/QuarterPicker.tsx
|
|
3500
|
-
var
|
|
3549
|
+
var Ff = (e) => e ? `${e.year}-Q${e.quarter}` : null, If = (e, t) => t && t < e ? {
|
|
3501
3550
|
start: t,
|
|
3502
3551
|
end: e
|
|
3503
3552
|
} : {
|
|
3504
3553
|
start: e,
|
|
3505
3554
|
end: t
|
|
3506
3555
|
};
|
|
3507
|
-
function
|
|
3556
|
+
function Lf({ value: r, defaultValue: i, onValueChange: a, range: o = !1, min: s, max: c, presets: l, locale: u, disabled: d, readOnly: f, invalid: p, required: m, name: h, size: g, clearable: _ = !0, "aria-label": v, id: y, className: b, style: x, classes: S }) {
|
|
3508
3557
|
let C = n("datePicker", Zt, S)({ size: g }), w = t(), T = u ?? w.locale, E = e(), D = Hl(), O = eu(), k = {
|
|
3509
3558
|
disabled: d ?? O?.disabled,
|
|
3510
3559
|
readOnly: f ?? O?.readOnly,
|
|
@@ -3520,12 +3569,12 @@ function If({ value: r, defaultValue: i, onValueChange: a, range: o = !1, min: s
|
|
|
3520
3569
|
let e = z.trim();
|
|
3521
3570
|
if (B(null), !e) return F(null);
|
|
3522
3571
|
if (!o) {
|
|
3523
|
-
let t =
|
|
3572
|
+
let t = Ff(_a(e));
|
|
3524
3573
|
t && I(t) && F(t);
|
|
3525
3574
|
return;
|
|
3526
3575
|
}
|
|
3527
|
-
let [t, n] = e.split(/\s*[–—]\s*|\s+-\s+|\s+(?:bis|to)\s+/i).map((e) =>
|
|
3528
|
-
t && I(t) && (!n || I(n)) && F(
|
|
3576
|
+
let [t, n] = e.split(/\s*[–—]\s*|\s+-\s+|\s+(?:bis|to)\s+/i).map((e) => Ff(_a(e)));
|
|
3577
|
+
t && I(t) && (!n || I(n)) && F(If(t, n ?? null));
|
|
3529
3578
|
}, [H, ee] = Z(!1), [U, W] = Z(() => Number((N ?? za(ks())).slice(0, 4))), [G, te] = Z(0), [K, ne] = Z(!1), re = X([]), q = X(null);
|
|
3530
3579
|
Y(() => {
|
|
3531
3580
|
q.current !== null && (re.current[q.current]?.focus(), q.current = null);
|
|
@@ -3553,7 +3602,7 @@ function If({ value: r, defaultValue: i, onValueChange: a, range: o = !1, min: s
|
|
|
3553
3602
|
n || (o ? !K || !N ? (F({
|
|
3554
3603
|
start: t,
|
|
3555
3604
|
end: null
|
|
3556
|
-
}), ne(!0)) : (F(
|
|
3605
|
+
}), ne(!0)) : (F(If(N, t)), ne(!1), ee(!1)) : (F(t), ee(!1)));
|
|
3557
3606
|
}, ce = (e) => {
|
|
3558
3607
|
let t = e;
|
|
3559
3608
|
t < 0 ? (W((e) => e - 1), t += 4) : t > 3 && (W((e) => e + 1), t -= 4), te(t), q.current = t, re.current[t]?.focus();
|
|
@@ -3728,18 +3777,18 @@ function If({ value: r, defaultValue: i, onValueChange: a, range: o = !1, min: s
|
|
|
3728
3777
|
}
|
|
3729
3778
|
//#endregion
|
|
3730
3779
|
//#region src/components/DurationInput/DurationInput.tsx
|
|
3731
|
-
var
|
|
3780
|
+
var Rf = {
|
|
3732
3781
|
days: null,
|
|
3733
3782
|
hours: null,
|
|
3734
3783
|
minutes: null,
|
|
3735
3784
|
seconds: null
|
|
3736
|
-
},
|
|
3785
|
+
}, zf = {
|
|
3737
3786
|
days: "day",
|
|
3738
3787
|
hours: "hour",
|
|
3739
3788
|
minutes: "minute",
|
|
3740
3789
|
seconds: "second"
|
|
3741
3790
|
};
|
|
3742
|
-
function
|
|
3791
|
+
function Bf({ value: r, defaultValue: i = null, onValueChange: a, valueType: o = "minutes", withDays: s = !1, withSeconds: c = !1, maxHours: l, locale: u, disabled: d, readOnly: f, invalid: p, required: m, name: h, size: g, clearable: _ = !0, "aria-label": v, id: y, className: b, style: x, classes: S }) {
|
|
3743
3792
|
I("DurationInput", y);
|
|
3744
3793
|
let C = n("datePicker", Zt, S)({ size: g }), w = t(), T = u ?? w.locale, E = e(), D = Hl(), O = eu(), k = {
|
|
3745
3794
|
disabled: d ?? O?.disabled,
|
|
@@ -3753,7 +3802,7 @@ function zf({ value: r, defaultValue: i = null, onValueChange: a, valueType: o =
|
|
|
3753
3802
|
...c ? ["seconds"] : []
|
|
3754
3803
|
], j = (e) => e === "days" ? 999 : e === "hours" ? l ?? (s ? 23 : 999) : 59, [M, N] = Z(i), P = r === void 0 ? M : r, F = (e) => {
|
|
3755
3804
|
let t = gn(e, o, s);
|
|
3756
|
-
return t ? { ...t } :
|
|
3805
|
+
return t ? { ...t } : Rf;
|
|
3757
3806
|
}, [L, R] = Z(() => F(P)), z = (e) => A.some((t) => e[t] !== null), B = (e) => ({
|
|
3758
3807
|
days: e.days ?? 0,
|
|
3759
3808
|
hours: e.hours ?? 0,
|
|
@@ -3770,11 +3819,11 @@ function zf({ value: r, defaultValue: i = null, onValueChange: a, valueType: o =
|
|
|
3770
3819
|
let r = V(n);
|
|
3771
3820
|
r !== P && (ee(r), N(r), a?.(r));
|
|
3772
3821
|
}, W = X([]), G = () => {
|
|
3773
|
-
R(
|
|
3822
|
+
R(Rf), N(null), ee(null), P !== null && a?.(null), W.current[0]?.focus();
|
|
3774
3823
|
}, te = z(L), K = te ? Kn(B(L), T) : "", ne = (e) => {
|
|
3775
3824
|
let t = L[e];
|
|
3776
|
-
return t === null ? E.dateInput.placeholder()[
|
|
3777
|
-
}, re = (e) => _n(L[e] ?? 2,
|
|
3825
|
+
return t === null ? E.dateInput.placeholder()[zf[e]] : e === "minutes" || e === "seconds" ? String(t).padStart(2, "0") : String(t);
|
|
3826
|
+
}, re = (e) => _n(L[e] ?? 2, zf[e], T, "short"), q = (e) => L[e] === null ? void 0 : `${L[e]} ${_n(L[e], zf[e], T, "long")}`, ie = X(""), ae = !k.disabled && !k.readOnly, oe = (e) => {
|
|
3778
3827
|
ie.current = "", W.current[Math.max(0, Math.min(A.length - 1, e))]?.focus();
|
|
3779
3828
|
}, se = (e, t, n) => {
|
|
3780
3829
|
let r = getComputedStyle(e.currentTarget).direction === "rtl", i = L[t], a = {
|
|
@@ -3870,7 +3919,7 @@ function zf({ value: r, defaultValue: i = null, onValueChange: a, valueType: o =
|
|
|
3870
3919
|
}
|
|
3871
3920
|
//#endregion
|
|
3872
3921
|
//#region src/components/TimeGrid/TimeGrid.tsx
|
|
3873
|
-
function
|
|
3922
|
+
function Vf({ value: r, defaultValue: i, onValueChange: a, times: o, start: s = "08:00", end: c = "18:00", interval: l = 30, disabledTimes: u, range: d = !1, hourCycle: f, locale: p, label: m, loading: h = !1, disabled: g = !1, name: _, size: v, "aria-label": y, className: b, style: x, classes: S }) {
|
|
3874
3923
|
let C = n("timeGrid", os, S)({ size: v }), w = t(), T = p ?? w.locale, E = e(), D = Hl(), O = (o ?? ss(s, c, l)).map((e) => {
|
|
3875
3924
|
let t = typeof e == "string" ? { value: e } : e;
|
|
3876
3925
|
return {
|
|
@@ -3964,8 +4013,8 @@ function Bf({ value: r, defaultValue: i, onValueChange: a, times: o, start: s =
|
|
|
3964
4013
|
}
|
|
3965
4014
|
//#endregion
|
|
3966
4015
|
//#region src/components/MiniCalendar/MiniCalendar.tsx
|
|
3967
|
-
var
|
|
3968
|
-
function
|
|
4016
|
+
var Hf = (e) => /* @__PURE__ */ new Date(`${e}T00:00Z`);
|
|
4017
|
+
function Uf({ value: r, defaultValue: i, onValueChange: a, valueType: o = "string", startDate: s, days: c = 7, min: l, max: u, isDateUnavailable: d, firstDayOfWeek: f, locale: p, label: m, disabled: h, "aria-label": g, className: _, style: v, classes: y }) {
|
|
3969
4018
|
let b = n("miniCalendar", Wi, y)(), x = t(), S = p ?? x.locale, C = e(), [w, T] = Z(i ?? null), E = Es(r === void 0 ? w : r, !1), D = ks(), O = f ?? Ci(S).firstDay, [k, A] = Z(() => Es(s, !1) ?? (c === 7 ? Ko(E ?? D, O) : E ?? D)), j = Es(l, !1), M = Es(u, !1), N = $t(k, c), P = (e) => !!h || !!j && e < j || !!M && e > M || !!d?.(e), F = new Intl.DateTimeFormat(S, {
|
|
3970
4019
|
weekday: "short",
|
|
3971
4020
|
timeZone: "UTC"
|
|
@@ -4028,7 +4077,7 @@ function Hf({ value: r, defaultValue: i, onValueChange: a, valueType: o = "strin
|
|
|
4028
4077
|
"data-value": e,
|
|
4029
4078
|
tabIndex: e === R ? 0 : -1,
|
|
4030
4079
|
"aria-checked": e === E,
|
|
4031
|
-
"aria-label": I.format(
|
|
4080
|
+
"aria-label": I.format(Hf(e)),
|
|
4032
4081
|
"aria-current": e === D ? "date" : void 0,
|
|
4033
4082
|
"aria-disabled": P(e) || void 0,
|
|
4034
4083
|
"data-today": e === D || void 0,
|
|
@@ -4037,7 +4086,7 @@ function Hf({ value: r, defaultValue: i, onValueChange: a, valueType: o = "strin
|
|
|
4037
4086
|
children: [/* @__PURE__ */ Q("span", {
|
|
4038
4087
|
className: b.weekday(),
|
|
4039
4088
|
"aria-hidden": "true",
|
|
4040
|
-
children: F.format(
|
|
4089
|
+
children: F.format(Hf(e))
|
|
4041
4090
|
}), /* @__PURE__ */ Q("span", {
|
|
4042
4091
|
className: b.dayNumber(),
|
|
4043
4092
|
"aria-hidden": "true",
|
|
@@ -4061,7 +4110,7 @@ function Hf({ value: r, defaultValue: i, onValueChange: a, valueType: o = "strin
|
|
|
4061
4110
|
}
|
|
4062
4111
|
//#endregion
|
|
4063
4112
|
//#region src/components/Menubar/Menubar.tsx
|
|
4064
|
-
function
|
|
4113
|
+
function Wf({ classes: t, menus: r, onSelect: i, onCheckedChange: a, onValueChange: o, linkAs: s, renderItem: l, responsive: u, menuLabel: d, start: f, end: p, "aria-label": m }) {
|
|
4065
4114
|
let h = n("menu", Vi), g = n("menubar", Hi, t)({ responsive: u }), _ = h(), v = e(), y = X(null), [b, x] = Z(null), [S, C] = Z(0), w = (e, t) => {
|
|
4066
4115
|
let n = (e + r.length) % r.length;
|
|
4067
4116
|
C(n), x(t ? n : null), t || y.current?.querySelectorAll(":scope > [role=menuitem]")[n]?.focus();
|
|
@@ -4150,9 +4199,9 @@ function Uf({ classes: t, menus: r, onSelect: i, onCheckedChange: a, onValueChan
|
|
|
4150
4199
|
}
|
|
4151
4200
|
//#endregion
|
|
4152
4201
|
//#region src/components/AppShell/context.ts
|
|
4153
|
-
var
|
|
4154
|
-
function
|
|
4155
|
-
let d = n("sidebarNav", Ao, e), f = Vl(
|
|
4202
|
+
var Gf = Rl(null), Kf = (e) => !!e.current || !!e.children?.some(Kf);
|
|
4203
|
+
function qf({ classes: e, items: t, label: r, onNavigate: i, rail: a, expandOnHover: o, header: s, footer: c, className: l, style: u }) {
|
|
4204
|
+
let d = n("sidebarNav", Ao, e), f = Vl(Gf), p = a ?? f?.rail ?? !1, m = p && (o ?? f?.expandOnHover ?? !1), h = d(p ? {
|
|
4156
4205
|
rail: !0,
|
|
4157
4206
|
expandOnHover: m
|
|
4158
4207
|
} : void 0);
|
|
@@ -4168,7 +4217,7 @@ function Kf({ classes: e, items: t, label: r, onNavigate: i, rail: a, expandOnHo
|
|
|
4168
4217
|
}),
|
|
4169
4218
|
/* @__PURE__ */ Q("ul", {
|
|
4170
4219
|
className: h.list(),
|
|
4171
|
-
children: /* @__PURE__ */ Q(
|
|
4220
|
+
children: /* @__PURE__ */ Q(Jf, {
|
|
4172
4221
|
items: t,
|
|
4173
4222
|
depth: 0,
|
|
4174
4223
|
onNavigate: i,
|
|
@@ -4183,11 +4232,11 @@ function Kf({ classes: e, items: t, label: r, onNavigate: i, rail: a, expandOnHo
|
|
|
4183
4232
|
]
|
|
4184
4233
|
});
|
|
4185
4234
|
}
|
|
4186
|
-
function
|
|
4235
|
+
function Jf({ items: e, depth: t, onNavigate: r, rail: i, expandOnHover: a }) {
|
|
4187
4236
|
let o = n("sidebarNav", Ao)(i ? {
|
|
4188
4237
|
rail: !0,
|
|
4189
4238
|
expandOnHover: a
|
|
4190
|
-
} : void 0), s = (e, t) => i && !a ? /* @__PURE__ */ Q(
|
|
4239
|
+
} : void 0), s = (e, t) => i && !a ? /* @__PURE__ */ Q(Wd, {
|
|
4191
4240
|
content: e,
|
|
4192
4241
|
placement: "right",
|
|
4193
4242
|
children: t
|
|
@@ -4212,7 +4261,7 @@ function qf({ items: e, depth: t, onNavigate: r, rail: i, expandOnHover: a }) {
|
|
|
4212
4261
|
})
|
|
4213
4262
|
] });
|
|
4214
4263
|
return /* @__PURE__ */ Q("li", { children: e.children ? /* @__PURE__ */ $(Mu.Root, {
|
|
4215
|
-
defaultOpen:
|
|
4264
|
+
defaultOpen: Kf(e),
|
|
4216
4265
|
children: [s(e.label, /* @__PURE__ */ $(Mu.Trigger, {
|
|
4217
4266
|
className: o.link(),
|
|
4218
4267
|
style: c,
|
|
@@ -4227,7 +4276,7 @@ function qf({ items: e, depth: t, onNavigate: r, rail: i, expandOnHover: a }) {
|
|
|
4227
4276
|
className: o.content(),
|
|
4228
4277
|
children: /* @__PURE__ */ Q("ul", {
|
|
4229
4278
|
className: o.sublist(),
|
|
4230
|
-
children: /* @__PURE__ */ Q(
|
|
4279
|
+
children: /* @__PURE__ */ Q(Jf, {
|
|
4231
4280
|
items: e.children,
|
|
4232
4281
|
depth: t + 1,
|
|
4233
4282
|
onNavigate: r,
|
|
@@ -4248,8 +4297,8 @@ function qf({ items: e, depth: t, onNavigate: r, rail: i, expandOnHover: a }) {
|
|
|
4248
4297
|
}
|
|
4249
4298
|
//#endregion
|
|
4250
4299
|
//#region src/components/Stepper/Stepper.tsx
|
|
4251
|
-
var
|
|
4252
|
-
function
|
|
4300
|
+
var Yf = null;
|
|
4301
|
+
function Xf({ classes: t, items: r, step: i, defaultStep: a = 0, onStepChange: o, linear: s = !1, isStepValid: c, orientation: l = "horizontal", labelPlacement: u = "end", children: d, completed: f, className: p, style: m }) {
|
|
4253
4302
|
let h = n("stepper", Zo, t)({
|
|
4254
4303
|
vertical: l === "vertical",
|
|
4255
4304
|
labelBottom: u === "bottom"
|
|
@@ -4271,7 +4320,7 @@ function Yf({ classes: t, items: r, step: i, defaultStep: a = 0, onStepChange: o
|
|
|
4271
4320
|
index: t,
|
|
4272
4321
|
className: h.item(),
|
|
4273
4322
|
role: "presentation",
|
|
4274
|
-
"aria-current":
|
|
4323
|
+
"aria-current": Yf,
|
|
4275
4324
|
children: [/* @__PURE__ */ $(Nu.Trigger, {
|
|
4276
4325
|
className: h.trigger(),
|
|
4277
4326
|
"aria-busy": e.loading || void 0,
|
|
@@ -4327,7 +4376,7 @@ function Yf({ classes: t, items: r, step: i, defaultStep: a = 0, onStepChange: o
|
|
|
4327
4376
|
}
|
|
4328
4377
|
//#endregion
|
|
4329
4378
|
//#region src/components/ConfirmPopup/ConfirmPopup.tsx
|
|
4330
|
-
function
|
|
4379
|
+
function Zf({ classes: t, message: r, confirmLabel: i, cancelLabel: a, danger: o = !1, onConfirm: s, onCancel: c, children: l }) {
|
|
4331
4380
|
let u = n("confirmPopup", Ft, t)(), d = e(), f = i ?? d.confirmPopup.confirm, p = a ?? d.confirmPopup.cancel, m = Hl(), [h, g] = Z(!1), _ = X(null), v = X(!1), y = (e) => {
|
|
4332
4381
|
v.current = !0, g(!1), e ? s?.() : c?.();
|
|
4333
4382
|
};
|
|
@@ -4374,45 +4423,45 @@ function Xf({ classes: t, message: r, confirmLabel: i, cancelLabel: a, danger: o
|
|
|
4374
4423
|
}
|
|
4375
4424
|
//#endregion
|
|
4376
4425
|
//#region src/components/DialogService/dialogs.ts
|
|
4377
|
-
var
|
|
4378
|
-
|
|
4379
|
-
},
|
|
4426
|
+
var Qf = [], $f = 0, ep = /* @__PURE__ */ new Set(), tp = (e) => {
|
|
4427
|
+
Qf = e, ep.forEach((e) => e());
|
|
4428
|
+
}, np = (e) => tp(Qf.map((t) => t.id === e.id ? { ...e } : t)), rp = {
|
|
4380
4429
|
subscribe(e) {
|
|
4381
|
-
return
|
|
4430
|
+
return ep.add(e), () => ep.delete(e);
|
|
4382
4431
|
},
|
|
4383
|
-
get: () =>
|
|
4384
|
-
remove: (e) =>
|
|
4385
|
-
removeClosed: () =>
|
|
4432
|
+
get: () => Qf,
|
|
4433
|
+
remove: (e) => tp(Qf.filter((t) => t.id !== e)),
|
|
4434
|
+
removeClosed: () => tp(Qf.filter((e) => e.open))
|
|
4386
4435
|
};
|
|
4387
|
-
function
|
|
4436
|
+
function ip(e) {
|
|
4388
4437
|
let t, n = new Promise((n) => {
|
|
4389
4438
|
t = {
|
|
4390
4439
|
...e,
|
|
4391
|
-
id:
|
|
4440
|
+
id: $f++,
|
|
4392
4441
|
open: !0,
|
|
4393
4442
|
returnFocus: typeof document > "u" ? null : document.activeElement,
|
|
4394
4443
|
settle: (e) => {
|
|
4395
|
-
t.open && (t.open = !1,
|
|
4444
|
+
t.open && (t.open = !1, np(t), n(e));
|
|
4396
4445
|
}
|
|
4397
|
-
},
|
|
4446
|
+
}, tp([...Qf, t]);
|
|
4398
4447
|
});
|
|
4399
4448
|
return Object.assign(n, {
|
|
4400
4449
|
id: t.id,
|
|
4401
4450
|
close: (e) => t.settle(e),
|
|
4402
4451
|
update: (e) => {
|
|
4403
|
-
t.open && (Object.assign(t, e),
|
|
4452
|
+
t.open && (Object.assign(t, e), np(t));
|
|
4404
4453
|
}
|
|
4405
4454
|
});
|
|
4406
4455
|
}
|
|
4407
|
-
function
|
|
4408
|
-
for (let e of
|
|
4456
|
+
function ap() {
|
|
4457
|
+
for (let e of Qf) e.settle(void 0);
|
|
4409
4458
|
}
|
|
4410
4459
|
//#endregion
|
|
4411
4460
|
//#region src/components/DialogService/DialogHost.tsx
|
|
4412
|
-
var
|
|
4413
|
-
function
|
|
4414
|
-
let i = n("dialog", dn, t), a = e(), o = Kl(
|
|
4415
|
-
return Y(() =>
|
|
4461
|
+
var op = [];
|
|
4462
|
+
function sp({ classes: t, closeLabel: r }) {
|
|
4463
|
+
let i = n("dialog", dn, t), a = e(), o = Kl(rp.subscribe, rp.get, () => op);
|
|
4464
|
+
return Y(() => rp.removeClosed, []), o.map((e) => {
|
|
4416
4465
|
let t = i({
|
|
4417
4466
|
size: e.size,
|
|
4418
4467
|
position: e.position,
|
|
@@ -4423,7 +4472,7 @@ function op({ classes: t, closeLabel: r }) {
|
|
|
4423
4472
|
return /* @__PURE__ */ Q(uu.Root, {
|
|
4424
4473
|
open: e.open,
|
|
4425
4474
|
onOpenChange: (t) => !t.open && e.settle(void 0),
|
|
4426
|
-
onExitComplete: () =>
|
|
4475
|
+
onExitComplete: () => rp.remove(e.id),
|
|
4427
4476
|
closeOnEscape: e.closeOnEscape,
|
|
4428
4477
|
closeOnInteractOutside: e.closeOnInteractOutside,
|
|
4429
4478
|
finalFocusEl: () => e.returnFocus,
|
|
@@ -4462,7 +4511,7 @@ function op({ classes: t, closeLabel: r }) {
|
|
|
4462
4511
|
}
|
|
4463
4512
|
//#endregion
|
|
4464
4513
|
//#region src/components/Fieldset/Fieldset.tsx
|
|
4465
|
-
function
|
|
4514
|
+
function cp({ classes: e, legend: t, helperText: r, errorText: i, invalid: a = !1, disabled: o = !1, collapsible: s = !1, open: c, defaultOpen: l = !0, onOpenChange: u, children: d, className: f, style: p }) {
|
|
4466
4515
|
let m = n("fieldset", On, e)(), h = Hl(), [g, _] = Z(l), v = c ?? g;
|
|
4467
4516
|
return /* @__PURE__ */ $(Pu.Root, {
|
|
4468
4517
|
className: m.base({ class: f }),
|
|
@@ -4506,14 +4555,14 @@ function sp({ classes: e, legend: t, helperText: r, errorText: i, invalid: a = !
|
|
|
4506
4555
|
}
|
|
4507
4556
|
//#endregion
|
|
4508
4557
|
//#region src/components/InputGroup/InputGroup.tsx
|
|
4509
|
-
function
|
|
4558
|
+
function lp({ children: e, classes: t }) {
|
|
4510
4559
|
let r = n("inputGroup", Ur, t)();
|
|
4511
4560
|
return /* @__PURE__ */ Q("div", {
|
|
4512
4561
|
className: r.base(),
|
|
4513
4562
|
children: e
|
|
4514
4563
|
});
|
|
4515
4564
|
}
|
|
4516
|
-
function
|
|
4565
|
+
function up({ children: e }) {
|
|
4517
4566
|
let t = n("inputGroup", Ur)();
|
|
4518
4567
|
return /* @__PURE__ */ Q("span", {
|
|
4519
4568
|
className: t.addon(),
|
|
@@ -4522,7 +4571,7 @@ function lp({ children: e }) {
|
|
|
4522
4571
|
}
|
|
4523
4572
|
//#endregion
|
|
4524
4573
|
//#region src/components/Listbox/Listbox.tsx
|
|
4525
|
-
function
|
|
4574
|
+
function dp({ classes: t, items: r, label: i, "aria-label": a, id: o, multiple: s = !1, value: c, defaultValue: l, onValueChange: u, disabled: d = !1, itemValue: f, itemLabel: p, itemDisabled: m, itemGroup: h, valueKey: g, filter: _, manualFilter: v, onFilterChange: y, emptyText: b, loading: x, loadingText: S, hasMore: C, onLoadMore: w, checkboxes: T = !1, selectAll: E = !1, dataSource: D, minSearchLength: O, pageSize: k, draggableItems: A = !1, renderItem: j, className: M, style: N }) {
|
|
4526
4575
|
I("Listbox", o);
|
|
4527
4576
|
let P = n("listbox", bi, t)(), F = e(), z = {
|
|
4528
4577
|
itemValue: f,
|
|
@@ -4638,7 +4687,7 @@ function up({ classes: t, items: r, label: i, "aria-label": a, id: o, multiple:
|
|
|
4638
4687
|
}
|
|
4639
4688
|
//#endregion
|
|
4640
4689
|
//#region src/components/OverlayBadge/OverlayBadge.tsx
|
|
4641
|
-
function
|
|
4690
|
+
function fp({ classes: e, count: t, max: r = 99, label: i, children: a }) {
|
|
4642
4691
|
let o = n("overlayBadge", oa, e)();
|
|
4643
4692
|
return /* @__PURE__ */ $("span", {
|
|
4644
4693
|
className: o.base(),
|
|
@@ -4661,7 +4710,7 @@ function dp({ classes: e, count: t, max: r = 99, label: i, children: a }) {
|
|
|
4661
4710
|
}
|
|
4662
4711
|
//#endregion
|
|
4663
4712
|
//#region src/components/Panel/Panel.tsx
|
|
4664
|
-
function
|
|
4713
|
+
function pp({ classes: e, title: t, headingLevel: r = 3, toggleable: i = !1, open: a, defaultOpen: o = !0, onOpenChange: s, actions: c, footer: l, children: u, className: d, style: f }) {
|
|
4665
4714
|
let p = n("panel", ca, e)(), m = `h${r}`, h = /* @__PURE__ */ $(Jl, { children: [/* @__PURE__ */ Q("div", {
|
|
4666
4715
|
className: p.body(),
|
|
4667
4716
|
children: u
|
|
@@ -4714,7 +4763,7 @@ function fp({ classes: e, title: t, headingLevel: r = 3, toggleable: i = !1, ope
|
|
|
4714
4763
|
}
|
|
4715
4764
|
//#endregion
|
|
4716
4765
|
//#region src/components/SplitButton/SplitButton.tsx
|
|
4717
|
-
function
|
|
4766
|
+
function mp({ classes: t, label: r, items: i, variant: a = "primary", color: o, size: s = "md", shape: c, icon: l, disabled: u = !1, menuLabel: d, onClick: f, onSelect: p, className: m, style: h }) {
|
|
4718
4767
|
let g = n("button", Ze), _ = n("splitButton", Bo, t)(), v = e(), y = d ?? v.splitButton.more, b = g({
|
|
4719
4768
|
variant: a,
|
|
4720
4769
|
color: Qe(o),
|
|
@@ -4753,7 +4802,7 @@ function pp({ classes: t, label: r, items: i, variant: a = "primary", color: o,
|
|
|
4753
4802
|
}
|
|
4754
4803
|
//#endregion
|
|
4755
4804
|
//#region src/components/ToggleButton/ToggleButton.tsx
|
|
4756
|
-
function
|
|
4805
|
+
function hp({ classes: e, pressed: t, defaultPressed: r = !1, onPressedChange: i, size: a = "md", icon: o, pressedIcon: s, iconProps: c, pressedIconProps: l, disabled: u = !1, className: d, children: f, ...p }) {
|
|
4757
4806
|
let m = n("button", Ze), h = n("toggleButton", js, e), g = m({
|
|
4758
4807
|
variant: "outline",
|
|
4759
4808
|
size: a
|
|
@@ -4780,7 +4829,7 @@ function mp({ classes: e, pressed: t, defaultPressed: r = !1, onPressedChange: i
|
|
|
4780
4829
|
}
|
|
4781
4830
|
//#endregion
|
|
4782
4831
|
//#region src/components/Toolbar/Toolbar.tsx
|
|
4783
|
-
function
|
|
4832
|
+
function gp({ classes: e, label: t, orientation: r = "horizontal", children: i, start: a, center: o, end: s, className: c, style: l }) {
|
|
4784
4833
|
let u = n("toolbar", Ps, e), d = n("toolbarRegion", Fs), f = X(null);
|
|
4785
4834
|
Y(() => Eo(f.current, r), [r]);
|
|
4786
4835
|
let p = !!(a || o || s);
|
|
@@ -4812,7 +4861,7 @@ function hp({ classes: e, label: t, orientation: r = "horizontal", children: i,
|
|
|
4812
4861
|
}
|
|
4813
4862
|
//#endregion
|
|
4814
4863
|
//#region src/components/TopBar/TopBar.tsx
|
|
4815
|
-
function
|
|
4864
|
+
function _p({ classes: e, start: t, end: r, children: i, className: a, ...o }) {
|
|
4816
4865
|
let s = n("topBar", Ls, e)();
|
|
4817
4866
|
return /* @__PURE__ */ $("header", {
|
|
4818
4867
|
...o,
|
|
@@ -4835,7 +4884,7 @@ function gp({ classes: e, start: t, end: r, children: i, className: a, ...o }) {
|
|
|
4835
4884
|
}
|
|
4836
4885
|
//#endregion
|
|
4837
4886
|
//#region src/components/DataView/DataView.tsx
|
|
4838
|
-
function
|
|
4887
|
+
function vp({ classes: e, items: r = [], label: i, layout: a, defaultLayout: s = "list", onLayoutChange: c, layoutToggle: l = !0, pageSize: u, onPageSizeChange: d, pageSizes: p, page: m, defaultPage: h = 1, onPageChange: g, manual: _ = !1, totalCount: v, dataSource: y, query: b, loadMode: x = "pages", autoLoad: S = !1, hasMore: C = !1, onLoadMore: w, loading: T = !1, skeletonCount: E, filtered: O = !1, error: k, emptyText: A, header: j, toolbar: M, empty: N, noResults: P, renderError: F, children: I, className: L, style: R }) {
|
|
4839
4888
|
let z = n("dataView", Xt, e), { translations: B, locale: V } = t(), U = B.dataView, [W, G] = Z(s), te = a ?? W, [K, ne] = Z(h), re = m ?? K, q = (e) => {
|
|
4840
4889
|
ne(e), g?.(e);
|
|
4841
4890
|
}, [ie, ae] = Z(u), [oe, se] = Z(u);
|
|
@@ -4922,17 +4971,17 @@ function _p({ classes: e, items: r = [], label: i, layout: a, defaultLayout: s =
|
|
|
4922
4971
|
children: [
|
|
4923
4972
|
(l || j) && /* @__PURE__ */ $("div", {
|
|
4924
4973
|
className: Ie.header(),
|
|
4925
|
-
children: [j, l && /* @__PURE__ */ $(
|
|
4974
|
+
children: [j, l && /* @__PURE__ */ $(Ed, {
|
|
4926
4975
|
value: te,
|
|
4927
4976
|
label: U.layout,
|
|
4928
4977
|
onValueChange: (e) => {
|
|
4929
4978
|
(e === "list" || e === "grid") && (G(e), c?.(e));
|
|
4930
4979
|
},
|
|
4931
|
-
children: [/* @__PURE__ */ Q(
|
|
4980
|
+
children: [/* @__PURE__ */ Q(kd, {
|
|
4932
4981
|
value: "list",
|
|
4933
4982
|
icon: Jc,
|
|
4934
4983
|
children: U.list
|
|
4935
|
-
}), /* @__PURE__ */ Q(
|
|
4984
|
+
}), /* @__PURE__ */ Q(kd, {
|
|
4936
4985
|
value: "grid",
|
|
4937
4986
|
icon: Kc,
|
|
4938
4987
|
children: U.grid
|
|
@@ -4985,20 +5034,20 @@ function _p({ classes: e, items: r = [], label: i, layout: a, defaultLayout: s =
|
|
|
4985
5034
|
}
|
|
4986
5035
|
//#endregion
|
|
4987
5036
|
//#region src/components/MeterGroup/MeterGroup.tsx
|
|
4988
|
-
var
|
|
5037
|
+
var yp = [
|
|
4989
5038
|
"primary",
|
|
4990
5039
|
"info",
|
|
4991
5040
|
"success",
|
|
4992
5041
|
"warn",
|
|
4993
5042
|
"danger",
|
|
4994
5043
|
"muted"
|
|
4995
|
-
],
|
|
4996
|
-
function
|
|
5044
|
+
], bp = (e, t) => `${Math.round(e / t * 100)} %`;
|
|
5045
|
+
function xp({ classes: e, items: t, label: r, max: i, formatValue: a = bp, orientation: o, legendPosition: s, legendOrientation: c, className: l, style: u }) {
|
|
4997
5046
|
let d = n("meterGroup", Ui, e), f = d({
|
|
4998
5047
|
orientation: o,
|
|
4999
5048
|
legendPosition: s,
|
|
5000
5049
|
legendLayout: c === "vertical" ? "stacked" : void 0
|
|
5001
|
-
}), p = o === "vertical" ? "height" : "width", m = Hl(), h = i ?? t.reduce((e, t) => e + t.value, 0), g = (e, t) => e.color ??
|
|
5050
|
+
}), p = o === "vertical" ? "height" : "width", m = Hl(), h = i ?? t.reduce((e, t) => e + t.value, 0), g = (e, t) => e.color ?? yp[t % yp.length];
|
|
5002
5051
|
return /* @__PURE__ */ $("div", {
|
|
5003
5052
|
role: "group",
|
|
5004
5053
|
"aria-labelledby": `${m}label`,
|
|
@@ -5043,7 +5092,7 @@ function bp({ classes: e, items: t, label: r, max: i, formatValue: a = yp, orien
|
|
|
5043
5092
|
}
|
|
5044
5093
|
//#endregion
|
|
5045
5094
|
//#region src/components/OrderList/OrderList.tsx
|
|
5046
|
-
function
|
|
5095
|
+
function Sp({ classes: t, value: r, defaultValue: i = [], onValueChange: a, label: o, itemValue: s, itemLabel: c, itemDisabled: l, valueKey: u, filter: d = !1, draggable: f = !1, renderItem: p, className: m, style: h }) {
|
|
5047
5096
|
let g = n("orderList", na, t)(), _ = e().orderList, v = {
|
|
5048
5097
|
itemValue: s,
|
|
5049
5098
|
itemLabel: c,
|
|
@@ -5084,7 +5133,7 @@ function xp({ classes: t, value: r, defaultValue: i = [], onValueChange: a, labe
|
|
|
5084
5133
|
k(L(N), t < 0 ? x.length - 1 : t), B();
|
|
5085
5134
|
},
|
|
5086
5135
|
onDragEnd: B,
|
|
5087
|
-
children: /* @__PURE__ */ Q(
|
|
5136
|
+
children: /* @__PURE__ */ Q(dp, {
|
|
5088
5137
|
items: x,
|
|
5089
5138
|
label: o,
|
|
5090
5139
|
...v,
|
|
@@ -5138,13 +5187,13 @@ function xp({ classes: t, value: r, defaultValue: i = [], onValueChange: a, labe
|
|
|
5138
5187
|
}
|
|
5139
5188
|
//#endregion
|
|
5140
5189
|
//#region src/components/OrgChart/OrgChart.tsx
|
|
5141
|
-
var
|
|
5190
|
+
var Cp = Rl(null), wp = {
|
|
5142
5191
|
status: {},
|
|
5143
5192
|
children: {},
|
|
5144
5193
|
errors: {}
|
|
5145
|
-
},
|
|
5146
|
-
function
|
|
5147
|
-
let y = n("orgChart", ra, e)(), { translations: b, locale: x } = t(), [S, C] = Z(""), [w, T] = Z(
|
|
5194
|
+
}, Tp = (e) => e.id ?? e.label;
|
|
5195
|
+
function Ep({ classes: e, node: r, label: i, collapsible: a = !1, collapsedKeys: o, defaultCollapsedKeys: s = [], onCollapsedKeysChange: c, selectionMode: l = "none", selectedKeys: u, defaultSelectedKeys: d = [], onSelectedKeysChange: f, loadChildren: p, onLoadChildren: m, dataSource: h, renderContent: g, className: _, style: v }) {
|
|
5196
|
+
let y = n("orgChart", ra, e)(), { translations: b, locale: x } = t(), [S, C] = Z(""), [w, T] = Z(wp), E = X(wp), [D, O] = Z(() => /* @__PURE__ */ new Set()), k = X(/* @__PURE__ */ new Map()), A = X({
|
|
5148
5197
|
loadChildren: p,
|
|
5149
5198
|
dataSource: h
|
|
5150
5199
|
});
|
|
@@ -5155,7 +5204,7 @@ function Tp({ classes: e, node: r, label: i, collapsible: a = !1, collapsedKeys:
|
|
|
5155
5204
|
};
|
|
5156
5205
|
});
|
|
5157
5206
|
let j = X(void 0), M = () => j.current ??= new de({
|
|
5158
|
-
key:
|
|
5207
|
+
key: Tp,
|
|
5159
5208
|
load: (e, t) => A.current.loadChildren ? A.current.loadChildren(e, t) : A.current.dataSource.getChildren(e, t).then((e) => e.items),
|
|
5160
5209
|
onChange: (e) => {
|
|
5161
5210
|
let t = E.current.status;
|
|
@@ -5171,7 +5220,7 @@ function Tp({ classes: e, node: r, label: i, collapsible: a = !1, collapsedKeys:
|
|
|
5171
5220
|
Y(() => () => {
|
|
5172
5221
|
j.current?.dispose(), j.current = void 0;
|
|
5173
5222
|
}, []);
|
|
5174
|
-
let N = !!p || !!h?.getChildren, P = Gl(() => rc([r], w.children,
|
|
5223
|
+
let N = !!p || !!h?.getChildren, P = Gl(() => rc([r], w.children, Tp)[0], [r, w.children]), [F, I] = Z(s), L = new Set(o ?? F), R = (e) => {
|
|
5175
5224
|
I(e), c?.(e);
|
|
5176
5225
|
}, [z, B] = Z(d), V = u ?? z, H = {
|
|
5177
5226
|
collapsible: a,
|
|
@@ -5192,14 +5241,14 @@ function Tp({ classes: e, node: r, label: i, collapsible: a = !1, collapsedKeys:
|
|
|
5192
5241
|
return /* @__PURE__ */ $("div", {
|
|
5193
5242
|
className: y.base({ class: _ }),
|
|
5194
5243
|
style: v,
|
|
5195
|
-
children: [/* @__PURE__ */ Q(
|
|
5244
|
+
children: [/* @__PURE__ */ Q(Cp, {
|
|
5196
5245
|
value: H,
|
|
5197
5246
|
children: /* @__PURE__ */ Q("ul", {
|
|
5198
5247
|
"aria-label": i,
|
|
5199
5248
|
className: y.rootList(),
|
|
5200
5249
|
children: /* @__PURE__ */ Q("li", {
|
|
5201
5250
|
className: y.rootItem(),
|
|
5202
|
-
children: /* @__PURE__ */ Q(
|
|
5251
|
+
children: /* @__PURE__ */ Q(Dp, {
|
|
5203
5252
|
node: P,
|
|
5204
5253
|
path: "0"
|
|
5205
5254
|
})
|
|
@@ -5212,8 +5261,8 @@ function Tp({ classes: e, node: r, label: i, collapsible: a = !1, collapsedKeys:
|
|
|
5212
5261
|
})]
|
|
5213
5262
|
});
|
|
5214
5263
|
}
|
|
5215
|
-
function
|
|
5216
|
-
let i = n("orgChart", ra)(), a = t().translations.orgChart, o = Vl(
|
|
5264
|
+
function Dp({ node: e, path: r }) {
|
|
5265
|
+
let i = n("orgChart", ra)(), a = t().translations.orgChart, o = Vl(Cp), s = e.id ?? r, c = o.expanded(e, s), l = o.loading(s), u = o.failed(s), d = {
|
|
5217
5266
|
key: s,
|
|
5218
5267
|
selected: o.selected(s),
|
|
5219
5268
|
expanded: c,
|
|
@@ -5256,7 +5305,7 @@ function Ep({ node: e, path: r }) {
|
|
|
5256
5305
|
className: i.list(),
|
|
5257
5306
|
children: e.children.map((e, t) => /* @__PURE__ */ Q("li", {
|
|
5258
5307
|
className: i.item(),
|
|
5259
|
-
children: /* @__PURE__ */ Q(
|
|
5308
|
+
children: /* @__PURE__ */ Q(Dp, {
|
|
5260
5309
|
node: e,
|
|
5261
5310
|
path: `${r}-${t}`
|
|
5262
5311
|
})
|
|
@@ -5266,7 +5315,7 @@ function Ep({ node: e, path: r }) {
|
|
|
5266
5315
|
}
|
|
5267
5316
|
//#endregion
|
|
5268
5317
|
//#region src/components/PickList/PickList.tsx
|
|
5269
|
-
function
|
|
5318
|
+
function Op({ classes: t, items: r, value: i, defaultValue: a = [], onValueChange: o, sourceLabel: s, targetLabel: c, itemValue: l, itemLabel: u, itemDisabled: d, valueKey: f, filter: p = !1, manualFilter: m, onFilterChange: h, loading: g, hasMore: _, onLoadMore: v, selectAll: y = !1, draggable: b = !1, renderItem: x, className: S, style: C }) {
|
|
5270
5319
|
let w = n("pickList", Ea, t)(), T = e().pickList, E = s ?? T.source, D = c ?? T.target, O = (e) => yi(e, f), k = Gl(() => Ss(r, {
|
|
5271
5320
|
itemValue: l,
|
|
5272
5321
|
itemLabel: u,
|
|
@@ -5327,7 +5376,7 @@ function Dp({ classes: t, items: r, value: i, defaultValue: a = [], onValueChang
|
|
|
5327
5376
|
selectAll: y,
|
|
5328
5377
|
draggableItems: b,
|
|
5329
5378
|
renderItem: x
|
|
5330
|
-
}, ce = /* @__PURE__ */ Q(
|
|
5379
|
+
}, ce = /* @__PURE__ */ Q(dp, {
|
|
5331
5380
|
...se,
|
|
5332
5381
|
manualFilter: m,
|
|
5333
5382
|
onFilterChange: h,
|
|
@@ -5338,7 +5387,7 @@ function Dp({ classes: t, items: r, value: i, defaultValue: a = [], onValueChang
|
|
|
5338
5387
|
label: E,
|
|
5339
5388
|
value: V,
|
|
5340
5389
|
onValueChange: H
|
|
5341
|
-
}), le = /* @__PURE__ */ Q(
|
|
5390
|
+
}), le = /* @__PURE__ */ Q(dp, {
|
|
5342
5391
|
...se,
|
|
5343
5392
|
items: B.map((e) => e.item),
|
|
5344
5393
|
label: D,
|
|
@@ -5400,7 +5449,7 @@ function Dp({ classes: t, items: r, value: i, defaultValue: a = [], onValueChang
|
|
|
5400
5449
|
}
|
|
5401
5450
|
//#endregion
|
|
5402
5451
|
//#region src/components/Timeline/Timeline.tsx
|
|
5403
|
-
function
|
|
5452
|
+
function kp({ classes: t, items: r, label: i, align: a = "start", orientation: o = "vertical", activeIndex: s, renderContent: c, renderOpposite: l, renderMarker: u, feed: d = !1, hasMore: f = !1, loading: p = !1, autoLoad: m = !1, setSize: h, onLoadMore: g, className: _, style: v }) {
|
|
5404
5453
|
let y = e(), b = Hl(), x = h ?? (f ? -1 : r.length), S = (e) => {
|
|
5405
5454
|
if (e.key !== "PageDown" && e.key !== "PageUp") return;
|
|
5406
5455
|
let t = [...e.currentTarget.querySelectorAll(":scope > article")], n = t[t.findIndex((t) => t.contains(e.target)) + (e.key === "PageDown" ? 1 : -1)];
|
|
@@ -5494,7 +5543,7 @@ function Op({ classes: t, items: r, label: i, align: a = "start", orientation: o
|
|
|
5494
5543
|
}
|
|
5495
5544
|
//#endregion
|
|
5496
5545
|
//#region src/components/BlockUi/BlockUi.tsx
|
|
5497
|
-
function
|
|
5546
|
+
function Ap({ classes: t, blocked: r = !1, label: i, children: a, className: o, style: s }) {
|
|
5498
5547
|
let c = n("blockUi", Ke, t)(), l = e(), u = i ?? l.blockUi.label;
|
|
5499
5548
|
return /* @__PURE__ */ $("div", {
|
|
5500
5549
|
className: c.base({ class: o }),
|
|
@@ -5512,7 +5561,7 @@ function kp({ classes: t, blocked: r = !1, label: i, children: a, className: o,
|
|
|
5512
5561
|
}
|
|
5513
5562
|
//#endregion
|
|
5514
5563
|
//#region src/components/SaveStatus/SaveStatus.tsx
|
|
5515
|
-
function
|
|
5564
|
+
function jp({ classes: t, status: r = "idle", translations: i, className: a, ...o }) {
|
|
5516
5565
|
let s = n("saveStatus", oo, t)({ status: r }), c = {
|
|
5517
5566
|
...e().saveStatus,
|
|
5518
5567
|
...i
|
|
@@ -5540,7 +5589,7 @@ function Ap({ classes: t, status: r = "idle", translations: i, className: a, ...
|
|
|
5540
5589
|
}
|
|
5541
5590
|
//#endregion
|
|
5542
5591
|
//#region src/components/Image/Image.tsx
|
|
5543
|
-
function
|
|
5592
|
+
function Mp({ classes: t, src: r, alt: i, preview: a = !1, previewSrc: o, fallbackSrc: s, className: c, onError: l, ...u }) {
|
|
5544
5593
|
let d = n("dialog", dn), f = n("imagePreview", Ir, t)(), p = d().backdrop(), m = e().image, [h, g] = Z(1), [_, v] = Z(0), [y, b] = Z(null), x = s && y === r ? s : r, [S, C] = Z(!1), w = s && S ? s : o, T = s ? { onError: (e) => {
|
|
5545
5594
|
l?.(e), y !== r && b(r);
|
|
5546
5595
|
} } : l ? { onError: l } : {};
|
|
@@ -5627,7 +5676,7 @@ function jp({ classes: t, src: r, alt: i, preview: a = !1, previewSrc: o, fallba
|
|
|
5627
5676
|
}
|
|
5628
5677
|
//#endregion
|
|
5629
5678
|
//#region src/components/Inplace/Inplace.tsx
|
|
5630
|
-
function
|
|
5679
|
+
function Np({ classes: t, active: r, onActiveChange: i, editLabel: a, display: o, children: s }) {
|
|
5631
5680
|
let c = n("inplace", Hr, t)(), l = e(), u = a ?? l.inplace.edit, [d, f] = Z(!1), p = r ?? d, m = X(null), h = X(null), [g, _] = Z(null), v = (e) => {
|
|
5632
5681
|
f(e), i?.(e), _(e ? "editor" : "display");
|
|
5633
5682
|
};
|
|
@@ -5653,7 +5702,7 @@ function Mp({ classes: t, active: r, onActiveChange: i, editLabel: a, display: o
|
|
|
5653
5702
|
}
|
|
5654
5703
|
//#endregion
|
|
5655
5704
|
//#region src/components/ScrollPanel/ScrollPanel.tsx
|
|
5656
|
-
function
|
|
5705
|
+
function Pp({ classes: e, label: t, children: r, scrollbars: i, fade: a, reachThreshold: o = 0, onReachStart: s, onReachEnd: c, className: l, style: u }) {
|
|
5657
5706
|
let d = n("scrollPanel", fo, e)({
|
|
5658
5707
|
scrollbars: i,
|
|
5659
5708
|
fade: a
|
|
@@ -5697,14 +5746,14 @@ function Np({ classes: e, label: t, children: r, scrollbars: i, fade: a, reachTh
|
|
|
5697
5746
|
}
|
|
5698
5747
|
//#endregion
|
|
5699
5748
|
//#region src/components/ScrollTop/ScrollTop.tsx
|
|
5700
|
-
function
|
|
5749
|
+
function Fp() {
|
|
5701
5750
|
let e = !matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
5702
5751
|
window.scrollTo({
|
|
5703
5752
|
top: 0,
|
|
5704
5753
|
behavior: e ? "smooth" : "auto"
|
|
5705
5754
|
}), document.body.setAttribute("tabindex", "-1"), document.body.focus({ preventScroll: !0 }), document.body.addEventListener("blur", () => document.body.removeAttribute("tabindex"), { once: !0 });
|
|
5706
5755
|
}
|
|
5707
|
-
function
|
|
5756
|
+
function Ip({ classes: t, threshold: r = 400, label: i, className: a }) {
|
|
5708
5757
|
let o = n("scrollTop", po, t), s = e(), c = i ?? s.scrollTop.label, [l, u] = Z(!1), d = X(null);
|
|
5709
5758
|
return Y(() => {
|
|
5710
5759
|
let e = () => {
|
|
@@ -5721,12 +5770,12 @@ function Fp({ classes: t, threshold: r = 400, label: i, className: a }) {
|
|
|
5721
5770
|
"data-state": l ? "visible" : "hidden",
|
|
5722
5771
|
tabIndex: l ? void 0 : -1,
|
|
5723
5772
|
"aria-hidden": l ? void 0 : "true",
|
|
5724
|
-
onClick:
|
|
5773
|
+
onClick: Fp
|
|
5725
5774
|
});
|
|
5726
5775
|
}
|
|
5727
5776
|
//#endregion
|
|
5728
5777
|
//#region src/components/SpeedDial/SpeedDial.tsx
|
|
5729
|
-
function
|
|
5778
|
+
function Lp({ classes: r, items: i, label: a, layout: o = "column", direction: s = "up", radius: c = 80, onSelect: l, className: u, style: d }) {
|
|
5730
5779
|
let f = n("speedDial", Ro, r)(o === "column" ? void 0 : { layout: o }), p = e(), { dir: m } = t(), h = a ?? p.speedDial.label, g = o === "column" ? {
|
|
5731
5780
|
placement: s === "down" ? "bottom-end" : "top-end",
|
|
5732
5781
|
gutter: 12
|
|
@@ -5775,7 +5824,7 @@ function Ip({ classes: r, items: i, label: a, layout: o = "column", direction: s
|
|
|
5775
5824
|
}
|
|
5776
5825
|
//#endregion
|
|
5777
5826
|
//#region src/components/Splitter/Splitter.tsx
|
|
5778
|
-
function
|
|
5827
|
+
function Rp({ classes: t, panels: r, orientation: i = "horizontal", step: a, shiftStep: o, storageKey: s, onResize: c, onResizeEnd: l, onCollapse: u, onExpand: d, children: f, className: p, style: m }) {
|
|
5779
5828
|
let h = n("splitter", Vo, t)(), g = e(), _ = r.some((e) => typeof e.defaultSize == "string"), v = r.reduce((e, t) => e + (t.defaultSize ?? 0), 0), y = r.filter((e) => e.defaultSize === void 0).length, b = Bu({
|
|
5780
5829
|
orientation: i,
|
|
5781
5830
|
panels: r.map((e) => ({
|
|
@@ -5839,9 +5888,9 @@ function Lp({ classes: t, panels: r, orientation: i = "horizontal", step: a, shi
|
|
|
5839
5888
|
}
|
|
5840
5889
|
//#endregion
|
|
5841
5890
|
//#region src/storage.ts
|
|
5842
|
-
var
|
|
5843
|
-
function
|
|
5844
|
-
return Kl(
|
|
5891
|
+
var zp = () => () => {};
|
|
5892
|
+
function Bp(e) {
|
|
5893
|
+
return Kl(zp, () => {
|
|
5845
5894
|
if (!e) return null;
|
|
5846
5895
|
try {
|
|
5847
5896
|
return localStorage.getItem(e);
|
|
@@ -5850,7 +5899,7 @@ function zp(e) {
|
|
|
5850
5899
|
}
|
|
5851
5900
|
}, () => null);
|
|
5852
5901
|
}
|
|
5853
|
-
function
|
|
5902
|
+
function Vp(e) {
|
|
5854
5903
|
if (e !== null) try {
|
|
5855
5904
|
return JSON.parse(e);
|
|
5856
5905
|
} catch {
|
|
@@ -5859,7 +5908,7 @@ function Bp(e) {
|
|
|
5859
5908
|
}
|
|
5860
5909
|
//#endregion
|
|
5861
5910
|
//#region src/components/SkipLinks/SkipLinks.tsx
|
|
5862
|
-
function
|
|
5911
|
+
function Hp({ classes: t, links: r, label: i, className: a, ...o }) {
|
|
5863
5912
|
let s = n("skipLinks", Po, t), c = e(), l = s();
|
|
5864
5913
|
return /* @__PURE__ */ Q("nav", {
|
|
5865
5914
|
...o,
|
|
@@ -5878,8 +5927,8 @@ function Vp({ classes: t, links: r, label: i, className: a, ...o }) {
|
|
|
5878
5927
|
}
|
|
5879
5928
|
//#endregion
|
|
5880
5929
|
//#region src/components/AppShell/AppShell.tsx
|
|
5881
|
-
var
|
|
5882
|
-
function
|
|
5930
|
+
var Up = 256, Wp = 288, Gp = (e) => getComputedStyle(e).direction === "rtl";
|
|
5931
|
+
function Kp({ side: e, label: t, controls: n, width: r, limits: i, className: a, onResize: o, onReset: s }) {
|
|
5883
5932
|
let c = X(null), [l, u] = Z(!1), d = () => {
|
|
5884
5933
|
c.current = null, u(!1);
|
|
5885
5934
|
};
|
|
@@ -5896,13 +5945,13 @@ function Gp({ side: e, label: t, controls: n, width: r, limits: i, className: a,
|
|
|
5896
5945
|
"data-dragging": l ? "" : void 0,
|
|
5897
5946
|
className: a,
|
|
5898
5947
|
onKeyDown: (t) => {
|
|
5899
|
-
let n = e === "navbar" !==
|
|
5948
|
+
let n = e === "navbar" !== Gp(t.currentTarget), a = Za(t.key, t.shiftKey, r, i, n ? "ArrowRight" : "ArrowLeft");
|
|
5900
5949
|
a !== void 0 && (t.preventDefault(), o(a));
|
|
5901
5950
|
},
|
|
5902
5951
|
onPointerDown: (t) => {
|
|
5903
5952
|
if (t.button !== 0) return;
|
|
5904
5953
|
t.currentTarget.setPointerCapture(t.pointerId);
|
|
5905
|
-
let n = e === "navbar" ===
|
|
5954
|
+
let n = e === "navbar" === Gp(t.currentTarget) ? -1 : 1;
|
|
5906
5955
|
c.current = {
|
|
5907
5956
|
x: t.clientX,
|
|
5908
5957
|
width: r,
|
|
@@ -5918,10 +5967,10 @@ function Gp({ side: e, label: t, controls: n, width: r, limits: i, className: a,
|
|
|
5918
5967
|
onDoubleClick: s
|
|
5919
5968
|
});
|
|
5920
5969
|
}
|
|
5921
|
-
function
|
|
5970
|
+
function qp({ classes: t, header: r, navbar: i, aside: a, footer: o, children: s, navbarOpen: c, onNavbarOpenChange: l, navbarLabel: u, skipLinkLabel: d, skipLinks: f, navbarCollapsed: p, onNavbarCollapsedChange: m, collapsible: h, navbarExpandOnHover: g, navbarResizable: _, asideResizable: v, navbarWidth: y, onNavbarWidthChange: b, asideWidth: x, onAsideWidthChange: S, navbarMinWidth: C = 200, navbarMaxWidth: w = 480, asideMinWidth: T = 200, asideMaxWidth: E = 480, storageKey: D, headroom: O, layout: k }) {
|
|
5922
5971
|
let A = n("appShell", Fe, t), M = e(), N = u ?? M.appShell.navigation, P = d ?? M.appShell.skipLink, F = Hl(), [I, L] = Z(!1), R = c ?? I, z = (e) => {
|
|
5923
5972
|
L(e), l?.(e);
|
|
5924
|
-
}, B = Bp(
|
|
5973
|
+
}, B = Vp(Bp(D)), [V, H] = Z({}), ee = {
|
|
5925
5974
|
...B && typeof B == "object" ? B : {},
|
|
5926
5975
|
...V
|
|
5927
5976
|
}, U = p ?? ee.navbarCollapsed ?? !1, W = y ?? ee.navbarWidth, G = x ?? ee.asideWidth, te = !!(_ || v || W || G), K = (e) => {
|
|
@@ -5942,17 +5991,17 @@ function Kp({ classes: t, header: r, navbar: i, aside: a, footer: o, children: s
|
|
|
5942
5991
|
headroom: O,
|
|
5943
5992
|
layout: k
|
|
5944
5993
|
}), q = te ? {
|
|
5945
|
-
"--wc-navbar-width": `${W ??
|
|
5946
|
-
"--wc-aside-width": `${G ??
|
|
5994
|
+
"--wc-navbar-width": `${W ?? Up}px`,
|
|
5995
|
+
"--wc-aside-width": `${G ?? Wp}px`
|
|
5947
5996
|
} : void 0, ie = (e) => e === "navbar" ? {
|
|
5948
5997
|
min: C,
|
|
5949
5998
|
max: w
|
|
5950
5999
|
} : {
|
|
5951
6000
|
min: T,
|
|
5952
6001
|
max: E
|
|
5953
|
-
}, ae = (e) => e === "navbar" ? W ??
|
|
6002
|
+
}, ae = (e) => e === "navbar" ? W ?? Up : G ?? Wp, oe = (e, t) => {
|
|
5954
6003
|
e === "navbar" ? (K({ navbarWidth: t }), b?.(t)) : (K({ asideWidth: t }), S?.(t));
|
|
5955
|
-
}, se = (e) => /* @__PURE__ */ Q(
|
|
6004
|
+
}, se = (e) => /* @__PURE__ */ Q(Kp, {
|
|
5956
6005
|
side: e,
|
|
5957
6006
|
label: e === "navbar" ? M.appShell.resizeNavigation : M.appShell.resizeAside,
|
|
5958
6007
|
controls: `${F}-${e}`,
|
|
@@ -5960,7 +6009,7 @@ function Kp({ classes: t, header: r, navbar: i, aside: a, footer: o, children: s
|
|
|
5960
6009
|
limits: ie(e),
|
|
5961
6010
|
className: re.resizer(),
|
|
5962
6011
|
onResize: (t) => oe(e, t),
|
|
5963
|
-
onReset: () => oe(e, e === "navbar" ?
|
|
6012
|
+
onReset: () => oe(e, e === "navbar" ? Up : Wp)
|
|
5964
6013
|
}), [ce, le] = Z(!1);
|
|
5965
6014
|
return Y(() => {
|
|
5966
6015
|
if (!O) return;
|
|
@@ -5973,7 +6022,7 @@ function Kp({ classes: t, header: r, navbar: i, aside: a, footer: o, children: s
|
|
|
5973
6022
|
className: re.base(),
|
|
5974
6023
|
style: q,
|
|
5975
6024
|
children: [
|
|
5976
|
-
f?.length ? /* @__PURE__ */ Q(
|
|
6025
|
+
f?.length ? /* @__PURE__ */ Q(Hp, { links: [{
|
|
5977
6026
|
href: `#${F}-main`,
|
|
5978
6027
|
label: P
|
|
5979
6028
|
}, ...f] }) : /* @__PURE__ */ Q("a", {
|
|
@@ -6009,7 +6058,7 @@ function Kp({ classes: t, header: r, navbar: i, aside: a, footer: o, children: s
|
|
|
6009
6058
|
i && /* @__PURE__ */ Q("div", {
|
|
6010
6059
|
id: _ ? `${F}-navbar` : void 0,
|
|
6011
6060
|
className: re.navbar(),
|
|
6012
|
-
children: /* @__PURE__ */ Q(
|
|
6061
|
+
children: /* @__PURE__ */ Q(Gf.Provider, {
|
|
6013
6062
|
value: {
|
|
6014
6063
|
rail: U,
|
|
6015
6064
|
expandOnHover: !!g
|
|
@@ -6036,13 +6085,13 @@ function Kp({ classes: t, header: r, navbar: i, aside: a, footer: o, children: s
|
|
|
6036
6085
|
className: re.footer(),
|
|
6037
6086
|
children: o
|
|
6038
6087
|
}),
|
|
6039
|
-
i && /* @__PURE__ */ Q(
|
|
6088
|
+
i && /* @__PURE__ */ Q(nf, {
|
|
6040
6089
|
open: R,
|
|
6041
6090
|
onOpenChange: z,
|
|
6042
|
-
children: /* @__PURE__ */ Q(
|
|
6091
|
+
children: /* @__PURE__ */ Q(of, {
|
|
6043
6092
|
title: N,
|
|
6044
6093
|
placement: "left",
|
|
6045
|
-
children: /* @__PURE__ */ Q(
|
|
6094
|
+
children: /* @__PURE__ */ Q(Gf.Provider, {
|
|
6046
6095
|
value: {
|
|
6047
6096
|
rail: !1,
|
|
6048
6097
|
expandOnHover: !1
|
|
@@ -6056,7 +6105,7 @@ function Kp({ classes: t, header: r, navbar: i, aside: a, footer: o, children: s
|
|
|
6056
6105
|
}
|
|
6057
6106
|
//#endregion
|
|
6058
6107
|
//#region src/components/Calendar/Calendar.tsx
|
|
6059
|
-
function
|
|
6108
|
+
function Jp({ classes: r, selectionMode: i = "single", value: a, defaultValue: o, onValueChange: c, valueType: u = "string", min: f, max: m, isDateUnavailable: h, excludeDates: _, presets: v, locale: y, disabled: b = !1, showButtonBar: x, showWeekNumbers: S, numberOfMonths: C, highlightToday: w = !0, hideOutsideDays: T, firstDayOfWeek: E, weekendDays: D, allowDeselect: O, timeZone: k, renderDay: A, className: j, style: M }) {
|
|
6060
6109
|
let N = n("datePicker", Zt, r)((C ?? 1) > 1 ? { multiMonth: !0 } : {}), P = t(), F = y ?? P.locale, I = e(), [L, R] = Z(o ?? []), z = a ?? L, B = (e) => e.map((e) => p(e, !1)).join(), V = `${Hl()}calendar`;
|
|
6061
6110
|
return /* @__PURE__ */ Q(yu.Root, {
|
|
6062
6111
|
className: N.inline({ class: j }),
|
|
@@ -6097,7 +6146,7 @@ function qp({ classes: r, selectionMode: i = "single", value: a, defaultValue: o
|
|
|
6097
6146
|
}
|
|
6098
6147
|
//#endregion
|
|
6099
6148
|
//#region src/hooks/hotkeys.ts
|
|
6100
|
-
function
|
|
6149
|
+
function Yp(e, t = {}) {
|
|
6101
6150
|
let n = X(e.map(([, e]) => e));
|
|
6102
6151
|
Y(() => {
|
|
6103
6152
|
n.current = e.map(([, e]) => e);
|
|
@@ -6113,25 +6162,25 @@ function Jp(e, t = {}) {
|
|
|
6113
6162
|
};
|
|
6114
6163
|
}, [a, r]);
|
|
6115
6164
|
}
|
|
6116
|
-
function
|
|
6117
|
-
|
|
6165
|
+
function Xp(e, t, n = {}) {
|
|
6166
|
+
Yp([[e, t]], n);
|
|
6118
6167
|
}
|
|
6119
|
-
var
|
|
6120
|
-
function
|
|
6168
|
+
var Zp = [];
|
|
6169
|
+
function Qp(e = jr) {
|
|
6121
6170
|
let t = X({
|
|
6122
6171
|
version: -1,
|
|
6123
|
-
entries:
|
|
6172
|
+
entries: Zp
|
|
6124
6173
|
}), n = Bl((t) => e.subscribe(t), [e]);
|
|
6125
6174
|
return Kl(n, () => (t.current.version !== e.version && (t.current = {
|
|
6126
6175
|
version: e.version,
|
|
6127
6176
|
entries: e.list()
|
|
6128
|
-
}), t.current.entries), () =>
|
|
6177
|
+
}), t.current.entries), () => Zp);
|
|
6129
6178
|
}
|
|
6130
|
-
var
|
|
6131
|
-
function
|
|
6132
|
-
return Kl(
|
|
6179
|
+
var $p = () => () => {};
|
|
6180
|
+
function em() {
|
|
6181
|
+
return Kl($p, Kr, () => !1);
|
|
6133
6182
|
}
|
|
6134
|
-
function
|
|
6183
|
+
function tm(e = {}) {
|
|
6135
6184
|
let { selector: t, key: n, enabled: r = !0 } = e;
|
|
6136
6185
|
Y(() => r ? To({
|
|
6137
6186
|
selector: t,
|
|
@@ -6144,8 +6193,8 @@ function em(e = {}) {
|
|
|
6144
6193
|
}
|
|
6145
6194
|
//#endregion
|
|
6146
6195
|
//#region src/components/Kbd/Kbd.tsx
|
|
6147
|
-
function
|
|
6148
|
-
let a = n("kbd", ui, i), o = e(), s =
|
|
6196
|
+
function nm({ children: t, hotkey: r, classes: i }) {
|
|
6197
|
+
let a = n("kbd", ui, i), o = e(), s = em();
|
|
6149
6198
|
return r ? /* @__PURE__ */ Q("kbd", {
|
|
6150
6199
|
className: di(),
|
|
6151
6200
|
children: Yn(r, o.hotkeys.keys, s).map((e, t) => /* @__PURE__ */ $(Ll, { children: [t > 0 && ` ${o.hotkeys.then} `, e.map((e) => /* @__PURE__ */ Q("kbd", {
|
|
@@ -6159,7 +6208,7 @@ function tm({ children: t, hotkey: r, classes: i }) {
|
|
|
6159
6208
|
}
|
|
6160
6209
|
//#endregion
|
|
6161
6210
|
//#region src/components/CommandPalette/CommandPalette.tsx
|
|
6162
|
-
function
|
|
6211
|
+
function rm({ classes: t, items: r, open: i, onOpenChange: a, onSelect: o, onFilterChange: s, onSearch: c, dataSource: l, minSearchLength: u, hotkey: d = !0, placeholder: f, limit: p, filter: m, highlight: h = !0, clearQueryOnClose: g = !0, closeOnSelect: _ = !0, loading: v, emptyText: y }) {
|
|
6163
6212
|
let b = n("commandPalette", Mt, t), x = n("dialog", dn), S = b(), C = x().backdrop(), w = e(), T = w.commandPalette, E = f ?? T.placeholder, [D, O] = Z(!1), k = i ?? D, [A, j] = Z(""), M = ee({
|
|
6164
6213
|
source: l,
|
|
6165
6214
|
minSearchLength: u
|
|
@@ -6180,7 +6229,7 @@ function nm({ classes: t, items: r, open: i, onOpenChange: a, onSelect: o, onFil
|
|
|
6180
6229
|
}, t) : e.text) : e, B = M.active ? M.state.items : R, V = Gl(() => B === R ? R : [...R, ...B.filter((e) => !R.some((t) => t.value === e.value))], [R, B]), H = /* @__PURE__ */ new Map();
|
|
6181
6230
|
for (let e of V) H.set(e.group ?? "", [...H.get(e.group ?? "") ?? [], e]);
|
|
6182
6231
|
let U = [...H], W = Gl(() => Iu({ items: V }), [V]);
|
|
6183
|
-
return
|
|
6232
|
+
return Yp((d === !0 ? ["mod+k"] : d === !1 ? [] : [d].flat()).map((e) => [e, () => I(!k)]), { description: w.hotkeys.commandPalette }), /* @__PURE__ */ Q(uu.Root, {
|
|
6184
6233
|
open: k,
|
|
6185
6234
|
onOpenChange: (e) => I(e.open),
|
|
6186
6235
|
lazyMount: !0,
|
|
@@ -6257,7 +6306,7 @@ function nm({ classes: t, items: r, open: i, onOpenChange: a, onSelect: o, onFil
|
|
|
6257
6306
|
}),
|
|
6258
6307
|
e.shortcut && /* @__PURE__ */ Q("span", {
|
|
6259
6308
|
"aria-hidden": "true",
|
|
6260
|
-
children: /* @__PURE__ */ Q(
|
|
6309
|
+
children: /* @__PURE__ */ Q(nm, { children: e.shortcut })
|
|
6261
6310
|
})
|
|
6262
6311
|
]
|
|
6263
6312
|
}, e.value);
|
|
@@ -6274,8 +6323,8 @@ function nm({ classes: t, items: r, open: i, onOpenChange: a, onSelect: o, onFil
|
|
|
6274
6323
|
/* @__PURE__ */ $("span", {
|
|
6275
6324
|
className: S.hint(),
|
|
6276
6325
|
children: [
|
|
6277
|
-
/* @__PURE__ */ Q(
|
|
6278
|
-
/* @__PURE__ */ Q(
|
|
6326
|
+
/* @__PURE__ */ Q(nm, { children: "↑" }),
|
|
6327
|
+
/* @__PURE__ */ Q(nm, { children: "↓" }),
|
|
6279
6328
|
" ",
|
|
6280
6329
|
T.navigate
|
|
6281
6330
|
]
|
|
@@ -6283,7 +6332,7 @@ function nm({ classes: t, items: r, open: i, onOpenChange: a, onSelect: o, onFil
|
|
|
6283
6332
|
/* @__PURE__ */ $("span", {
|
|
6284
6333
|
className: S.hint(),
|
|
6285
6334
|
children: [
|
|
6286
|
-
/* @__PURE__ */ Q(
|
|
6335
|
+
/* @__PURE__ */ Q(nm, { children: "Enter" }),
|
|
6287
6336
|
" ",
|
|
6288
6337
|
T.run
|
|
6289
6338
|
]
|
|
@@ -6291,7 +6340,7 @@ function nm({ classes: t, items: r, open: i, onOpenChange: a, onSelect: o, onFil
|
|
|
6291
6340
|
/* @__PURE__ */ $("span", {
|
|
6292
6341
|
className: S.hint(),
|
|
6293
6342
|
children: [
|
|
6294
|
-
/* @__PURE__ */ Q(
|
|
6343
|
+
/* @__PURE__ */ Q(nm, { children: "Esc" }),
|
|
6295
6344
|
" ",
|
|
6296
6345
|
T.close
|
|
6297
6346
|
]
|
|
@@ -6304,7 +6353,7 @@ function nm({ classes: t, items: r, open: i, onOpenChange: a, onSelect: o, onFil
|
|
|
6304
6353
|
}
|
|
6305
6354
|
//#endregion
|
|
6306
6355
|
//#region src/components/HoverCard/HoverCard.tsx
|
|
6307
|
-
function
|
|
6356
|
+
function im({ classes: e, openDelay: t = 500, closeDelay: r = 300, open: i, defaultOpen: o, onOpenChange: s, anchor: c, ref: l, content: u, children: d }) {
|
|
6308
6357
|
let f = n("hoverCard", Nr, e)(), p = a({
|
|
6309
6358
|
open: i,
|
|
6310
6359
|
defaultOpen: o,
|
|
@@ -6334,10 +6383,10 @@ function rm({ classes: e, openDelay: t = 500, closeDelay: r = 300, open: i, defa
|
|
|
6334
6383
|
}
|
|
6335
6384
|
//#endregion
|
|
6336
6385
|
//#region src/components/MonthPicker/MonthPicker.tsx
|
|
6337
|
-
var
|
|
6338
|
-
function
|
|
6386
|
+
var am = (e) => e ? e.toString().slice(0, 7) : null, om = (e) => Su(`${e}-01`);
|
|
6387
|
+
function sm({ value: n, defaultValue: r, onValueChange: i, range: a = !1, min: o, max: s, presets: c, locale: l, clearable: u = !0, "aria-label": d, id: f, ...p }) {
|
|
6339
6388
|
I("MonthPicker", f);
|
|
6340
|
-
let m = t(), h = l ?? m.locale, g = e(), [_, y] = Z(r ?? null), b = n === void 0 ? _ : n, x = (e) => (typeof e == "string" ? [e] : [e?.start, e?.end]).filter((e) => !!e).map(
|
|
6389
|
+
let m = t(), h = l ?? m.locale, g = e(), [_, y] = Z(r ?? null), b = n === void 0 ? _ : n, x = (e) => (typeof e == "string" ? [e] : [e?.start, e?.end]).filter((e) => !!e).map(om), S = c?.map((e) => typeof e == "string" ? {
|
|
6341
6390
|
label: g.rangePresets[e] ?? e,
|
|
6342
6391
|
range: ba(e, "month")
|
|
6343
6392
|
} : {
|
|
@@ -6354,14 +6403,14 @@ function om({ value: n, defaultValue: r, onValueChange: i, range: a = !1, min: o
|
|
|
6354
6403
|
dates: x(b),
|
|
6355
6404
|
onChange: (e) => {
|
|
6356
6405
|
let t = a ? e.length ? {
|
|
6357
|
-
start:
|
|
6358
|
-
end:
|
|
6359
|
-
} : null :
|
|
6406
|
+
start: am(e[0]),
|
|
6407
|
+
end: am(e[1])
|
|
6408
|
+
} : null : am(e[0]);
|
|
6360
6409
|
JSON.stringify(t) !== JSON.stringify(b ?? null) && (y(t), i?.(t));
|
|
6361
6410
|
},
|
|
6362
6411
|
withTime: !1,
|
|
6363
|
-
min: o ?
|
|
6364
|
-
max: s ?
|
|
6412
|
+
min: o ? om(o) : void 0,
|
|
6413
|
+
max: s ? om(s).set({ day: 28 }) : void 0,
|
|
6365
6414
|
locale: h,
|
|
6366
6415
|
presets: S,
|
|
6367
6416
|
label: d,
|
|
@@ -6371,7 +6420,7 @@ function om({ value: n, defaultValue: r, onValueChange: i, range: a = !1, min: o
|
|
|
6371
6420
|
}
|
|
6372
6421
|
//#endregion
|
|
6373
6422
|
//#region src/components/TagsInput/TagsInput.tsx
|
|
6374
|
-
function
|
|
6423
|
+
function cm({ classes: t, value: r, defaultValue: i, onValueChange: a, placeholder: o, max: s, delimiter: c = ",", validate: l, disabled: u, invalid: d, name: f, suggestions: p, filter: m = !0, manualFilter: h, onFilterChange: g, loading: _, loadingText: v, hasMore: y, onLoadMore: b, dataSource: x, minSearchLength: S = 1, "aria-label": C, id: w, className: T, style: E }) {
|
|
6375
6424
|
let D = n("tagsInput", rs, t)(), O = e(), k = eu(), A = Hl(), [j, M] = Z(""), [N, P] = Z(!1), F = ee({
|
|
6376
6425
|
source: x,
|
|
6377
6426
|
minSearchLength: S
|
|
@@ -6504,7 +6553,7 @@ function sm({ classes: t, value: r, defaultValue: i, onValueChange: a, placehold
|
|
|
6504
6553
|
}
|
|
6505
6554
|
//#endregion
|
|
6506
6555
|
//#region src/components/NativeSelect/NativeSelect.tsx
|
|
6507
|
-
function
|
|
6556
|
+
function lm({ classes: e, items: t, onValueChange: r, placeholder: i, size: a = "md", invalid: o, disabled: s, className: c, style: l, ...u }) {
|
|
6508
6557
|
let d = n("nativeSelect", Ki, e), f = eu(), p = d({ size: a });
|
|
6509
6558
|
return /* @__PURE__ */ $("div", {
|
|
6510
6559
|
className: p.base({ class: c }),
|
|
@@ -6514,7 +6563,10 @@ function cm({ classes: e, items: t, onValueChange: r, placeholder: i, size: a =
|
|
|
6514
6563
|
className: p.select(),
|
|
6515
6564
|
disabled: s ?? f?.disabled,
|
|
6516
6565
|
"aria-invalid": (o ?? f?.invalid) || void 0,
|
|
6517
|
-
onChange: (e) =>
|
|
6566
|
+
onChange: (e) => {
|
|
6567
|
+
let n = e.target.value;
|
|
6568
|
+
r?.(t.find((e) => String(e.value) === n)?.value ?? n);
|
|
6569
|
+
},
|
|
6518
6570
|
children: [i && /* @__PURE__ */ Q("option", {
|
|
6519
6571
|
value: "",
|
|
6520
6572
|
children: i
|
|
@@ -6531,7 +6583,7 @@ function cm({ classes: e, items: t, onValueChange: r, placeholder: i, size: a =
|
|
|
6531
6583
|
}
|
|
6532
6584
|
//#endregion
|
|
6533
6585
|
//#region src/components/NavigationMenu/NavigationMenu.tsx
|
|
6534
|
-
function
|
|
6586
|
+
function um({ classes: t, items: r, label: i, className: a, style: o }) {
|
|
6535
6587
|
let s = n("navigationMenu", qi, t)(), c = e(), l = i ?? c.navigationMenu.rootLabel;
|
|
6536
6588
|
return /* @__PURE__ */ Q(Uu.Root, {
|
|
6537
6589
|
className: s.base({ class: a }),
|
|
@@ -6583,31 +6635,31 @@ function lm({ classes: t, items: r, label: i, className: a, style: o }) {
|
|
|
6583
6635
|
}
|
|
6584
6636
|
//#endregion
|
|
6585
6637
|
//#region src/components/NavigationProgress/progress.ts
|
|
6586
|
-
var
|
|
6587
|
-
|
|
6588
|
-
},
|
|
6638
|
+
var dm = null, fm, pm = /* @__PURE__ */ new Set(), mm = (e) => {
|
|
6639
|
+
dm = e, pm.forEach((e) => e());
|
|
6640
|
+
}, hm = {
|
|
6589
6641
|
subscribe(e) {
|
|
6590
|
-
return
|
|
6642
|
+
return pm.add(e), () => pm.delete(e);
|
|
6591
6643
|
},
|
|
6592
|
-
get: () =>
|
|
6593
|
-
},
|
|
6644
|
+
get: () => dm
|
|
6645
|
+
}, gm = {
|
|
6594
6646
|
start() {
|
|
6595
|
-
clearInterval(
|
|
6596
|
-
let e =
|
|
6597
|
-
|
|
6647
|
+
clearInterval(fm), mm(10), fm = setInterval(() => {
|
|
6648
|
+
let e = dm ?? 10;
|
|
6649
|
+
mm(e + (90 - e) * .1);
|
|
6598
6650
|
}, 300);
|
|
6599
6651
|
},
|
|
6600
6652
|
set(e) {
|
|
6601
|
-
|
|
6653
|
+
mm(Math.max(0, Math.min(100, e)));
|
|
6602
6654
|
},
|
|
6603
6655
|
done() {
|
|
6604
|
-
clearInterval(
|
|
6656
|
+
clearInterval(fm), mm(100), setTimeout(() => mm(null), 300);
|
|
6605
6657
|
}
|
|
6606
6658
|
};
|
|
6607
6659
|
//#endregion
|
|
6608
6660
|
//#region src/components/NavigationProgress/NavigationProgress.tsx
|
|
6609
|
-
function
|
|
6610
|
-
let i = n("navigationProgress", Ji, r)(), a = e(), o = t ?? a.navigationProgress.label, s = Kl(
|
|
6661
|
+
function _m({ label: t, classes: r }) {
|
|
6662
|
+
let i = n("navigationProgress", Ji, r)(), a = e(), o = t ?? a.navigationProgress.label, s = Kl(hm.subscribe, hm.get, () => null), c = s !== null;
|
|
6611
6663
|
return /* @__PURE__ */ Q("div", {
|
|
6612
6664
|
className: i.base(),
|
|
6613
6665
|
"data-state": c ? "loading" : "idle",
|
|
@@ -6624,8 +6676,8 @@ function gm({ label: t, classes: r }) {
|
|
|
6624
6676
|
}
|
|
6625
6677
|
//#endregion
|
|
6626
6678
|
//#region src/components/ProgressCircle/ProgressCircle.tsx
|
|
6627
|
-
var
|
|
6628
|
-
function
|
|
6679
|
+
var vm = (e, t) => `${Math.round(e / t * 100)} %`;
|
|
6680
|
+
function ym({ classes: e, value: t, max: r = 100, label: i, size: a = "md", status: o = "neutral", formatValue: s = vm, className: c, style: l }) {
|
|
6629
6681
|
let u = n("progressCircle", Fa, e)({
|
|
6630
6682
|
size: a,
|
|
6631
6683
|
status: o
|
|
@@ -6655,7 +6707,7 @@ function vm({ classes: e, value: t, max: r = 100, label: i, size: a = "md", stat
|
|
|
6655
6707
|
}
|
|
6656
6708
|
//#endregion
|
|
6657
6709
|
//#region src/components/Spoiler/Spoiler.tsx
|
|
6658
|
-
function
|
|
6710
|
+
function bm({ classes: t, maxHeight: r = 120, open: i, onOpenChange: a, showLabel: o, hideLabel: s, children: c, className: l, style: u }) {
|
|
6659
6711
|
let d = n("spoiler", Ho, t)(), f = e(), p = o ?? f.spoiler.show, m = s ?? f.spoiler.hide, h = Hl(), [g, _] = Z(!1), v = i ?? g, y = X(null), [b, x] = Z(0);
|
|
6660
6712
|
Y(() => {
|
|
6661
6713
|
let e = y.current;
|
|
@@ -6692,7 +6744,7 @@ function ym({ classes: t, maxHeight: r = 120, open: i, onOpenChange: a, showLabe
|
|
|
6692
6744
|
}
|
|
6693
6745
|
//#endregion
|
|
6694
6746
|
//#region src/components/TableOfContents/TableOfContents.tsx
|
|
6695
|
-
function
|
|
6747
|
+
function xm({ classes: t, items: r, title: i, className: a, style: o }) {
|
|
6696
6748
|
let s = n("tableOfContents", ns, t)(), c = e(), l = i ?? c.tableOfContents.title, u = r.map((e) => ({
|
|
6697
6749
|
value: e.id,
|
|
6698
6750
|
depth: e.depth ?? 1
|
|
@@ -6722,7 +6774,7 @@ function bm({ classes: t, items: r, title: i, className: a, style: o }) {
|
|
|
6722
6774
|
}
|
|
6723
6775
|
//#endregion
|
|
6724
6776
|
//#region src/components/Tour/Tour.tsx
|
|
6725
|
-
function
|
|
6777
|
+
function Sm({ classes: t, steps: r, open: i = !1, onOpenChange: a, onComplete: o }) {
|
|
6726
6778
|
let s = n("tour", Rs, t)(), c = e().tour, l = qu({
|
|
6727
6779
|
steps: r.map((e) => ({
|
|
6728
6780
|
id: e.id,
|
|
@@ -6822,7 +6874,7 @@ function xm({ classes: t, steps: r, open: i = !1, onOpenChange: a, onComplete: o
|
|
|
6822
6874
|
}
|
|
6823
6875
|
//#endregion
|
|
6824
6876
|
//#region src/components/EmptyState/EmptyState.tsx
|
|
6825
|
-
function
|
|
6877
|
+
function Cm({ classes: e, title: t, description: r, icon: i, variant: a, size: o, headingLevel: s, actions: c, className: l, ...u }) {
|
|
6826
6878
|
let d = n("emptyState", xn, e)({
|
|
6827
6879
|
variant: a,
|
|
6828
6880
|
size: o
|
|
@@ -6855,13 +6907,13 @@ function Sm({ classes: e, title: t, description: r, icon: i, variant: a, size: o
|
|
|
6855
6907
|
}
|
|
6856
6908
|
//#endregion
|
|
6857
6909
|
//#region src/components/DataList/DataList.tsx
|
|
6858
|
-
var
|
|
6859
|
-
function
|
|
6910
|
+
var wm = Rl(null);
|
|
6911
|
+
function Tm({ classes: e, orientation: t, divided: r, className: i, ...a }) {
|
|
6860
6912
|
let o = n("dataList", Yt, e)({
|
|
6861
6913
|
orientation: t,
|
|
6862
6914
|
divided: r
|
|
6863
6915
|
});
|
|
6864
|
-
return /* @__PURE__ */ Q(
|
|
6916
|
+
return /* @__PURE__ */ Q(wm, {
|
|
6865
6917
|
value: o,
|
|
6866
6918
|
children: /* @__PURE__ */ Q("dl", {
|
|
6867
6919
|
...a,
|
|
@@ -6869,8 +6921,8 @@ function wm({ classes: e, orientation: t, divided: r, className: i, ...a }) {
|
|
|
6869
6921
|
})
|
|
6870
6922
|
});
|
|
6871
6923
|
}
|
|
6872
|
-
function
|
|
6873
|
-
let o = n("dataList", Yt, e), s = Vl(
|
|
6924
|
+
function Em({ classes: e, label: t, className: r, children: i, ...a }) {
|
|
6925
|
+
let o = n("dataList", Yt, e), s = Vl(wm) ?? o();
|
|
6874
6926
|
return /* @__PURE__ */ $("div", {
|
|
6875
6927
|
...a,
|
|
6876
6928
|
className: s.item({ class: r }),
|
|
@@ -6885,9 +6937,9 @@ function Tm({ classes: e, label: t, className: r, children: i, ...a }) {
|
|
|
6885
6937
|
}
|
|
6886
6938
|
//#endregion
|
|
6887
6939
|
//#region src/components/ActionBar/ActionBar.tsx
|
|
6888
|
-
function
|
|
6940
|
+
function Dm({ classes: t, count: r, open: i, label: a, clearLabel: o, placement: s, onClear: c, children: l, className: u, style: d }) {
|
|
6889
6941
|
let f = n("actionBar", be, t), p = e(), m = f({ placement: s });
|
|
6890
|
-
return i ?? r > 0 ? /* @__PURE__ */ $(
|
|
6942
|
+
return i ?? r > 0 ? /* @__PURE__ */ $(gp, {
|
|
6891
6943
|
label: a ?? p.actionBar.label,
|
|
6892
6944
|
className: m.base({ class: u }),
|
|
6893
6945
|
style: d,
|
|
@@ -6914,20 +6966,20 @@ function Em({ classes: t, count: r, open: i, label: a, clearLabel: o, placement:
|
|
|
6914
6966
|
}
|
|
6915
6967
|
//#endregion
|
|
6916
6968
|
//#region src/components/Countdown/Countdown.tsx
|
|
6917
|
-
var
|
|
6969
|
+
var Om = [
|
|
6918
6970
|
"days",
|
|
6919
6971
|
"hours",
|
|
6920
6972
|
"minutes",
|
|
6921
6973
|
"seconds"
|
|
6922
|
-
],
|
|
6974
|
+
], km = (e) => {
|
|
6923
6975
|
let t = setInterval(e, 1e3);
|
|
6924
6976
|
return () => clearInterval(t);
|
|
6925
|
-
},
|
|
6926
|
-
function
|
|
6977
|
+
}, Am = () => Math.floor(Date.now() / 1e3) * 1e3, jm = () => null;
|
|
6978
|
+
function Mm({ classes: t, target: r, label: i, units: a = Om, variant: o, size: s, onComplete: c, className: l, ...u }) {
|
|
6927
6979
|
let d = n("countdown", zt, t), f = e(), p = d({
|
|
6928
6980
|
variant: o,
|
|
6929
6981
|
size: s
|
|
6930
|
-
}), m = Kl(
|
|
6982
|
+
}), m = Kl(km, Am, jm), h = m === null ? null : new Date(r).getTime() - m, g = h === null ? null : Bt(h, a), _ = h !== null && h <= 0;
|
|
6931
6983
|
return Y(() => {
|
|
6932
6984
|
_ && c?.();
|
|
6933
6985
|
}, [_]), /* @__PURE__ */ Q("div", {
|
|
@@ -6936,7 +6988,7 @@ function jm({ classes: t, target: r, label: i, units: a = Dm, variant: o, size:
|
|
|
6936
6988
|
role: "timer",
|
|
6937
6989
|
"aria-label": i,
|
|
6938
6990
|
"aria-atomic": "true",
|
|
6939
|
-
children:
|
|
6991
|
+
children: Om.filter((e) => a.includes(e)).map((e) => /* @__PURE__ */ $("span", {
|
|
6940
6992
|
className: p.unit(),
|
|
6941
6993
|
children: [/* @__PURE__ */ Q("span", {
|
|
6942
6994
|
className: p.value(),
|
|
@@ -6950,7 +7002,7 @@ function jm({ classes: t, target: r, label: i, units: a = Dm, variant: o, size:
|
|
|
6950
7002
|
}
|
|
6951
7003
|
//#endregion
|
|
6952
7004
|
//#region src/components/NumberFormatter/NumberFormatter.tsx
|
|
6953
|
-
function
|
|
7005
|
+
function Nm({ classes: e, value: r, formatOptions: i, locale: a, className: o, ...s }) {
|
|
6954
7006
|
let c = n("numberFormatter", ea, e), l = t(), u = r == null ? "" : new Intl.NumberFormat(a ?? l.locale, i).format(r);
|
|
6955
7007
|
return /* @__PURE__ */ Q("span", {
|
|
6956
7008
|
...s,
|
|
@@ -6960,7 +7012,7 @@ function Mm({ classes: e, value: r, formatOptions: i, locale: a, className: o, .
|
|
|
6960
7012
|
}
|
|
6961
7013
|
//#endregion
|
|
6962
7014
|
//#region src/components/Autocomplete/Autocomplete.tsx
|
|
6963
|
-
function
|
|
7015
|
+
function Pm({ classes: t, items: r, value: i, defaultValue: a = "", onValueChange: o, multiple: s, values: c, defaultValues: l, onValuesChange: u, max: d, filter: f = !0, manualFilter: p, onFilterChange: m, itemLabel: h, itemDisabled: g, itemGroup: _, clearable: v, loading: y, loadingText: b, size: x, hasMore: S, onLoadMore: C, dataSource: w, minSearchLength: T, pageSize: E, renderItem: D, placeholder: O, disabled: k, readOnly: A, invalid: j, required: M, name: N, id: P, className: F, style: I, ...z }) {
|
|
6964
7016
|
let V = n("combobox", jt, t)({ size: x }), H = eu(), ee = e(), [U, W] = Z(a), G = i ?? U, [te, K] = Z(!1), ne = (e) => typeof h == "function" ? h(e) : String(typeof e == "object" && e ? e[h ?? "label"] ?? "" : e), re = {
|
|
6965
7017
|
itemValue: ne,
|
|
6966
7018
|
itemLabel: ne,
|
|
@@ -6982,7 +7034,7 @@ function Nm({ classes: t, items: r, value: i, defaultValue: a = "", onValueChang
|
|
|
6982
7034
|
}), [se]), pe = (e) => {
|
|
6983
7035
|
W(e), o?.(e);
|
|
6984
7036
|
};
|
|
6985
|
-
return s ? /* @__PURE__ */ Q(
|
|
7037
|
+
return s ? /* @__PURE__ */ Q(cm, {
|
|
6986
7038
|
value: c,
|
|
6987
7039
|
defaultValue: l,
|
|
6988
7040
|
onValueChange: u,
|
|
@@ -7099,10 +7151,10 @@ function Nm({ classes: t, items: r, value: i, defaultValue: a = "", onValueChang
|
|
|
7099
7151
|
}
|
|
7100
7152
|
//#endregion
|
|
7101
7153
|
//#region src/components/YearPicker/YearPicker.tsx
|
|
7102
|
-
var
|
|
7103
|
-
function
|
|
7154
|
+
var Fm = (e) => e ? String(e.year) : null, Im = (e) => Su(`${e.padStart(4, "0")}-01-01`);
|
|
7155
|
+
function Lm({ value: n, defaultValue: r, onValueChange: i, range: a = !1, min: o, max: s, presets: c, locale: l, clearable: u = !0, "aria-label": d, id: f, ...p }) {
|
|
7104
7156
|
I("YearPicker", f);
|
|
7105
|
-
let m = t(), h = l ?? m.locale, g = e(), [_, y] = Z(r ?? null), b = n === void 0 ? _ : n, x = (e) => (typeof e == "string" ? [e] : [e?.start, e?.end]).filter((e) => !!e).map(
|
|
7157
|
+
let m = t(), h = l ?? m.locale, g = e(), [_, y] = Z(r ?? null), b = n === void 0 ? _ : n, x = (e) => (typeof e == "string" ? [e] : [e?.start, e?.end]).filter((e) => !!e).map(Im), S = c?.map((e) => typeof e == "string" ? {
|
|
7106
7158
|
label: g.rangePresets[e] ?? e,
|
|
7107
7159
|
range: ba(e, "year")
|
|
7108
7160
|
} : {
|
|
@@ -7119,14 +7171,14 @@ function Im({ value: n, defaultValue: r, onValueChange: i, range: a = !1, min: o
|
|
|
7119
7171
|
dates: x(b),
|
|
7120
7172
|
onChange: (e) => {
|
|
7121
7173
|
let t = a ? e.length ? {
|
|
7122
|
-
start:
|
|
7123
|
-
end:
|
|
7124
|
-
} : null :
|
|
7174
|
+
start: Fm(e[0]),
|
|
7175
|
+
end: Fm(e[1])
|
|
7176
|
+
} : null : Fm(e[0]);
|
|
7125
7177
|
JSON.stringify(t) !== JSON.stringify(b ?? null) && (y(t), i?.(t));
|
|
7126
7178
|
},
|
|
7127
7179
|
withTime: !1,
|
|
7128
|
-
min: o ?
|
|
7129
|
-
max: s ?
|
|
7180
|
+
min: o ? Im(o) : void 0,
|
|
7181
|
+
max: s ? Im(s).set({
|
|
7130
7182
|
month: 12,
|
|
7131
7183
|
day: 31
|
|
7132
7184
|
}) : void 0,
|
|
@@ -7139,8 +7191,8 @@ function Im({ value: n, defaultValue: r, onValueChange: i, range: a = !1, min: o
|
|
|
7139
7191
|
}
|
|
7140
7192
|
//#endregion
|
|
7141
7193
|
//#region src/components/Gauge/Gauge.tsx
|
|
7142
|
-
var
|
|
7143
|
-
function
|
|
7194
|
+
var Rm = "M10 62 A50 50 0 0 1 110 62";
|
|
7195
|
+
function zm({ value: e, min: r = 0, max: i = 100, label: a, status: o, thresholds: s, size: c, formatOptions: l, locale: u, classes: d, className: f, ...p }) {
|
|
7144
7196
|
let m = n("gauge", _r, d), h = t(), g = m({
|
|
7145
7197
|
status: o ?? [...s ?? []].sort((e, t) => t.from - e.from).find((t) => e >= t.from)?.status ?? "neutral",
|
|
7146
7198
|
size: c
|
|
@@ -7161,12 +7213,12 @@ function Rm({ value: e, min: r = 0, max: i = 100, label: a, status: o, threshold
|
|
|
7161
7213
|
children: [
|
|
7162
7214
|
/* @__PURE__ */ Q("path", {
|
|
7163
7215
|
className: g.track(),
|
|
7164
|
-
d:
|
|
7216
|
+
d: Rm,
|
|
7165
7217
|
strokeWidth: "10"
|
|
7166
7218
|
}),
|
|
7167
7219
|
/* @__PURE__ */ Q("path", {
|
|
7168
7220
|
className: g.range(),
|
|
7169
|
-
d:
|
|
7221
|
+
d: Rm,
|
|
7170
7222
|
strokeWidth: "10",
|
|
7171
7223
|
strokeDasharray: `${v * me} ${me}`
|
|
7172
7224
|
}),
|
|
@@ -7201,7 +7253,7 @@ function Rm({ value: e, min: r = 0, max: i = 100, label: a, status: o, threshold
|
|
|
7201
7253
|
}
|
|
7202
7254
|
//#endregion
|
|
7203
7255
|
//#region src/components/Heatmap/Heatmap.tsx
|
|
7204
|
-
function
|
|
7256
|
+
function Bm({ caption: r, rows: i, columns: a, values: o, min: s, max: c, showValues: l = !0, legend: u = !0, formatOptions: d, locale: f, classes: p, className: m, ...h }) {
|
|
7205
7257
|
let g = n("heatmap", wr, p)(), _ = t(), v = e().heatmap, y = o.flat().filter((e) => typeof e == "number" && !Number.isNaN(e)), b = s ?? Math.min(...y, 0), x = c ?? Math.max(...y, 0), S = new Intl.NumberFormat(f ?? _.locale, d);
|
|
7206
7258
|
return /* @__PURE__ */ $("div", {
|
|
7207
7259
|
...h,
|
|
@@ -7267,7 +7319,7 @@ function zm({ caption: r, rows: i, columns: a, values: o, min: s, max: c, showVa
|
|
|
7267
7319
|
}
|
|
7268
7320
|
//#endregion
|
|
7269
7321
|
//#region src/components/Treemap/Treemap.tsx
|
|
7270
|
-
function
|
|
7322
|
+
function Vm({ items: r, label: i, showTitle: a = !1, height: o = "320px", ratio: s = 2, formatOptions: c, locale: l, classes: u, className: d, ...f }) {
|
|
7271
7323
|
let p = n("treemap", Vs, u), m = p(), h = t(), g = e().treemap, _ = r.reduce((e, t) => e + Math.max(0, t.value), 0), v = Uo(r.map((e) => e.value), s * 100, 100), y = new Intl.NumberFormat(l ?? h.locale, c), b = new Intl.NumberFormat(l ?? h.locale, {
|
|
7272
7324
|
style: "percent",
|
|
7273
7325
|
maximumFractionDigits: 1
|
|
@@ -7309,9 +7361,9 @@ function Bm({ items: r, label: i, showTitle: a = !1, height: o = "320px", ratio:
|
|
|
7309
7361
|
}
|
|
7310
7362
|
//#endregion
|
|
7311
7363
|
//#region src/components/Sankey/Sankey.tsx
|
|
7312
|
-
var
|
|
7313
|
-
function
|
|
7314
|
-
let p = n("sankey", ro, u), m = n("chart", st), h = p(), g = m(), _ = Hl(), v = t(), y = e(), b = io(r, i,
|
|
7364
|
+
var Hm = 640, Um = 12;
|
|
7365
|
+
function Wm({ nodes: r, links: i, title: a, height: o = 300, table: s = !0, formatOptions: c, locale: l, classes: u, className: d, ...f }) {
|
|
7366
|
+
let p = n("sankey", ro, u), m = n("chart", st), h = p(), g = m(), _ = Hl(), v = t(), y = e(), b = io(r, i, Hm, o, { nodeWidth: Um }), x = Math.max(0, ...b.nodes.map((e) => e.column)), S = new Intl.NumberFormat(l ?? v.locale, c), C = (e) => r.find((t) => t.id === e)?.label ?? e, w = (e) => Ns(Math.max(0, r.findIndex((t) => t.id === e)));
|
|
7315
7367
|
return /* @__PURE__ */ $("figure", {
|
|
7316
7368
|
...f,
|
|
7317
7369
|
className: h.base({ class: d }),
|
|
@@ -7323,7 +7375,7 @@ function Um({ nodes: r, links: i, title: a, height: o = 300, table: s = !0, form
|
|
|
7323
7375
|
}),
|
|
7324
7376
|
/* @__PURE__ */ $("svg", {
|
|
7325
7377
|
className: h.svg(),
|
|
7326
|
-
viewBox: `0 0 ${
|
|
7378
|
+
viewBox: `0 0 ${Hm} ${o}`,
|
|
7327
7379
|
role: "img",
|
|
7328
7380
|
"aria-labelledby": `${_}title`,
|
|
7329
7381
|
children: [b.links.map((e) => /* @__PURE__ */ Q("path", {
|
|
@@ -7334,12 +7386,12 @@ function Um({ nodes: r, links: i, title: a, height: o = 300, table: s = !0, form
|
|
|
7334
7386
|
className: p({ tone: Ns(e.index) }).node(),
|
|
7335
7387
|
x: e.x,
|
|
7336
7388
|
y: e.y,
|
|
7337
|
-
width:
|
|
7389
|
+
width: Um,
|
|
7338
7390
|
height: Math.max(1, e.height),
|
|
7339
7391
|
rx: "2"
|
|
7340
7392
|
}), /* @__PURE__ */ $("text", {
|
|
7341
7393
|
className: h.nodeLabel(),
|
|
7342
|
-
x: e.column === x ? e.x - 6 : e.x +
|
|
7394
|
+
x: e.column === x ? e.x - 6 : e.x + Um + 6,
|
|
7343
7395
|
y: e.y + e.height / 2,
|
|
7344
7396
|
textAnchor: e.column === x ? "end" : "start",
|
|
7345
7397
|
dominantBaseline: "middle",
|
|
@@ -7408,7 +7460,7 @@ function Um({ nodes: r, links: i, title: a, height: o = 300, table: s = !0, form
|
|
|
7408
7460
|
}
|
|
7409
7461
|
//#endregion
|
|
7410
7462
|
//#region src/components/Compare/Compare.tsx
|
|
7411
|
-
function
|
|
7463
|
+
function Gm({ before: r, after: i, label: a, beforeLabel: o, afterLabel: s, value: c, defaultValue: l = 50, onValueChange: u, aspectRatio: d = "16 / 9", classes: f, className: p, style: m, ...h }) {
|
|
7412
7464
|
let g = n("compare", Nt, f)(), { dir: _ } = t(), v = e().compare, [y, b] = Z(l), x = c ?? y, S = _ === "rtl" ? `inset(0 0 0 ${100 - x}%)` : `inset(0 ${100 - x}% 0 0)`;
|
|
7413
7465
|
return /* @__PURE__ */ $("div", {
|
|
7414
7466
|
...h,
|
|
@@ -7469,7 +7521,7 @@ function Wm({ before: r, after: i, label: a, beforeLabel: o, afterLabel: s, valu
|
|
|
7469
7521
|
}
|
|
7470
7522
|
//#endregion
|
|
7471
7523
|
//#region src/components/Scheduler/SchedulerSeriesDialog.tsx
|
|
7472
|
-
function
|
|
7524
|
+
function Km({ open: e, title: t, description: r, cancelLabel: i, onlyLabel: a, allLabel: o, returnFocus: s, onChoose: c }) {
|
|
7473
7525
|
let l = n("dialog", dn, void 0)({ responsive: !0 });
|
|
7474
7526
|
return /* @__PURE__ */ Q(uu.Root, {
|
|
7475
7527
|
open: e,
|
|
@@ -7519,7 +7571,7 @@ function Gm({ open: e, title: t, description: r, cancelLabel: i, onlyLabel: a, a
|
|
|
7519
7571
|
}
|
|
7520
7572
|
//#endregion
|
|
7521
7573
|
//#region src/components/Scheduler/SchedulerYear.tsx
|
|
7522
|
-
function
|
|
7574
|
+
function qm({ year: e, date: t, counts: n, today: r, weekStartsOn: i, locale: a, rtl: o, headingLevel: s, eventCount: c, styles: l, onOpen: u, onMonth: d }) {
|
|
7523
7575
|
let f = (e) => new Intl.DateTimeFormat(a, e), p = Array.from({ length: 12 }, (t, n) => {
|
|
7524
7576
|
let r = new Date(e, n, 1), a = Ks("month", r, i);
|
|
7525
7577
|
return {
|
|
@@ -7605,33 +7657,33 @@ function Km({ year: e, date: t, counts: n, today: r, weekStartsOn: i, locale: a,
|
|
|
7605
7657
|
}
|
|
7606
7658
|
//#endregion
|
|
7607
7659
|
//#region src/components/Scheduler/Scheduler.tsx
|
|
7608
|
-
var
|
|
7660
|
+
var Jm = 48, Ym = 30, Xm = 40, Zm = [
|
|
7609
7661
|
.5,
|
|
7610
7662
|
.75,
|
|
7611
7663
|
1,
|
|
7612
7664
|
1.5,
|
|
7613
7665
|
2,
|
|
7614
7666
|
3
|
|
7615
|
-
],
|
|
7667
|
+
], Qm = "Alt+ArrowUp Alt+ArrowDown Alt+ArrowLeft Alt+ArrowRight Alt+Shift+ArrowUp Alt+Shift+ArrowDown", $m = (e) => {
|
|
7616
7668
|
let t = setInterval(e, 6e4);
|
|
7617
7669
|
return () => clearInterval(t);
|
|
7618
|
-
},
|
|
7670
|
+
}, eh = () => Math.floor(Date.now() / 6e4) * 6e4, th = () => null, nh = (e) => {
|
|
7619
7671
|
let [t = 0, n = 0] = e.split(":").map(Number);
|
|
7620
7672
|
return t * 60 + n;
|
|
7621
|
-
},
|
|
7673
|
+
}, rh = (e, t) => {
|
|
7622
7674
|
let n = e.getHours() * 60 + e.getMinutes();
|
|
7623
7675
|
return we(Go(e), Math.round(n / t) * t);
|
|
7624
|
-
},
|
|
7676
|
+
}, ih = (e) => {
|
|
7625
7677
|
try {
|
|
7626
7678
|
return e ? JSON.parse(e) : null;
|
|
7627
7679
|
} catch {
|
|
7628
7680
|
return null;
|
|
7629
7681
|
}
|
|
7630
7682
|
};
|
|
7631
|
-
function
|
|
7683
|
+
function ah(e, t, n) {
|
|
7632
7684
|
return e.status === "loading" ? t.loading : e.status === "error" ? t.error : e.status === "success" ? Aa(t.loaded, e.items.length, n) : "";
|
|
7633
7685
|
}
|
|
7634
|
-
function
|
|
7686
|
+
function oh({ events: r = [], view: i, defaultView: a = "week", onViewChange: o, date: s, defaultDate: c, onDateChange: l, views: u = [
|
|
7635
7687
|
"day",
|
|
7636
7688
|
"week",
|
|
7637
7689
|
"month",
|
|
@@ -7648,7 +7700,7 @@ function ah({ events: r = [], view: i, defaultView: a = "week", onViewChange: o,
|
|
|
7648
7700
|
}, He = (e) => {
|
|
7649
7701
|
Ne(e), A?.(e);
|
|
7650
7702
|
}, Ue = (e) => {
|
|
7651
|
-
let t =
|
|
7703
|
+
let t = Zm.findIndex((e) => e >= Le), n = Zm[Math.min(Zm.length - 1, Math.max(0, (t < 0 ? Zm.length - 1 : t) + e))];
|
|
7652
7704
|
Ie(n), P?.(n);
|
|
7653
7705
|
}, We = lo(Te, Oe, {
|
|
7654
7706
|
weekStartsOn: g,
|
|
@@ -7670,7 +7722,7 @@ function ah({ events: r = [], view: i, defaultView: a = "week", onViewChange: o,
|
|
|
7670
7722
|
day: "numeric",
|
|
7671
7723
|
month: "long",
|
|
7672
7724
|
year: "numeric"
|
|
7673
|
-
}).formatRange(et, tt), it = (e) => Xe({ weekday: "short" }).format(e), at = (e) => Qe(new Date(2e3, 0, 1, e)), ot = Kl(
|
|
7725
|
+
}).formatRange(et, tt), it = (e) => Xe({ weekday: "short" }).format(e), at = (e) => Qe(new Date(2e3, 0, 1, e)), ot = Kl($m, eh, th), st = ot === null ? null : $i(ne, new Date(ot)), ct = (e) => !!st && no(e, st), lt = st ? (st.getHours() * 60 + st.getMinutes() - d * 60) / Je * 100 : -1, ut = X({
|
|
7674
7726
|
onRangeChange: le,
|
|
7675
7727
|
t: ye,
|
|
7676
7728
|
locale: be
|
|
@@ -7698,7 +7750,7 @@ function ah({ events: r = [], view: i, defaultView: a = "week", onViewChange: o,
|
|
|
7698
7750
|
}), [gt] = Z(() => Ut({
|
|
7699
7751
|
source: { getItems: async () => ({ items: [] }) },
|
|
7700
7752
|
onChange: (e) => {
|
|
7701
|
-
mt(e), ft(
|
|
7753
|
+
mt(e), ft(ah(e, ut.current.t, ut.current.locale));
|
|
7702
7754
|
}
|
|
7703
7755
|
}));
|
|
7704
7756
|
Y(() => {
|
|
@@ -7828,10 +7880,10 @@ function ah({ events: r = [], view: i, defaultView: a = "week", onViewChange: o,
|
|
|
7828
7880
|
group: n.group,
|
|
7829
7881
|
items: [],
|
|
7830
7882
|
top: e,
|
|
7831
|
-
height:
|
|
7883
|
+
height: Ym,
|
|
7832
7884
|
index: -1
|
|
7833
|
-
}), e +=
|
|
7834
|
-
let i = _i(zt.filter((e) => e.resourceId === n.id), yn), a = Math.max(1, i[0]?.lanes ?? 1) *
|
|
7885
|
+
}), e += Ym), t = n.group;
|
|
7886
|
+
let i = _i(zt.filter((e) => e.resourceId === n.id), yn), a = Math.max(1, i[0]?.lanes ?? 1) * Ym + 12;
|
|
7835
7887
|
En.push({
|
|
7836
7888
|
key: n.id,
|
|
7837
7889
|
resource: n,
|
|
@@ -7853,7 +7905,7 @@ function ah({ events: r = [], view: i, defaultView: a = "week", onViewChange: o,
|
|
|
7853
7905
|
}, [An, jn] = Z({
|
|
7854
7906
|
top: 0,
|
|
7855
7907
|
viewport: 600
|
|
7856
|
-
}), Mn = Et.length >
|
|
7908
|
+
}), Mn = Et.length > Xm, Nn = (() => {
|
|
7857
7909
|
if (!Mn) return {
|
|
7858
7910
|
rows: En,
|
|
7859
7911
|
before: 0,
|
|
@@ -7893,13 +7945,13 @@ function ah({ events: r = [], view: i, defaultView: a = "week", onViewChange: o,
|
|
|
7893
7945
|
let i = En.filter((e) => e.resource), a = En.find((e) => e.index === Lt.current.row), o = (a ? a.top + a.height / 2 : 0) + n, s = (r ? void 0 : i.find((e) => o >= e.top && o < e.top + e.height)?.resource)?.id ?? e.resourceId, c;
|
|
7894
7946
|
if (e.allDay) c = Do(e, 0, Math.round(t / 1440), r);
|
|
7895
7947
|
else if (r) {
|
|
7896
|
-
let n =
|
|
7948
|
+
let n = rh(hs(yn, Lt.current.offset + Lt.current.length + t), Vt(!0)), r = pa(e.start);
|
|
7897
7949
|
c = {
|
|
7898
7950
|
start: e.start,
|
|
7899
7951
|
end: bs(n > r ? n : we(r, Vt(!0)))
|
|
7900
7952
|
};
|
|
7901
7953
|
} else {
|
|
7902
|
-
let n =
|
|
7954
|
+
let n = rh(hs(yn, Lt.current.offset + t), Vt(!1)), r = pa(e.end).getTime() - pa(e.start).getTime();
|
|
7903
7955
|
c = {
|
|
7904
7956
|
start: bs(n),
|
|
7905
7957
|
end: bs(new Date(n.getTime() + r))
|
|
@@ -8024,7 +8076,7 @@ function ah({ events: r = [], view: i, defaultView: a = "week", onViewChange: o,
|
|
|
8024
8076
|
ArrowRight: [0, r]
|
|
8025
8077
|
}[t.key];
|
|
8026
8078
|
!c || t.shiftKey && (o || c[1] !== 0) || (t.preventDefault(), rn(e, Do(n, c[0], c[1], t.shiftKey), t.shiftKey));
|
|
8027
|
-
}, Jn = Ht ? Te === "timeline" ? "Alt+ArrowLeft Alt+ArrowRight Alt+Shift+ArrowLeft Alt+Shift+ArrowRight Alt+ArrowUp Alt+ArrowDown" : Tt.length ? `${
|
|
8079
|
+
}, Jn = Ht ? Te === "timeline" ? "Alt+ArrowLeft Alt+ArrowRight Alt+Shift+ArrowLeft Alt+Shift+ArrowRight Alt+ArrowUp Alt+ArrowDown" : Tt.length ? `${Qm} Alt+Shift+ArrowLeft Alt+Shift+ArrowRight` : Qm : void 0, Yn = (e) => {
|
|
8028
8080
|
Rt.current ? Rt.current = !1 : ae?.(At(e));
|
|
8029
8081
|
}, Xn = (e, t, n) => {
|
|
8030
8082
|
if (v) return;
|
|
@@ -8056,7 +8108,7 @@ function ah({ events: r = [], view: i, defaultView: a = "week", onViewChange: o,
|
|
|
8056
8108
|
}, nr = (e, t, n = {}) => {
|
|
8057
8109
|
if (!er(e)) return;
|
|
8058
8110
|
e.preventDefault();
|
|
8059
|
-
let r = e.dataTransfer.getData("text/plain"), i =
|
|
8111
|
+
let r = e.dataTransfer.getData("text/plain"), i = ih(e.dataTransfer.getData(ge)), a = Number(i?.duration) || p, o = n.resourceId ?? (je || void 0), s = (e, t, n) => ue?.({
|
|
8060
8112
|
data: i,
|
|
8061
8113
|
text: r,
|
|
8062
8114
|
start: e,
|
|
@@ -8074,7 +8126,7 @@ function ah({ events: r = [], view: i, defaultView: a = "week", onViewChange: o,
|
|
|
8074
8126
|
if (e.target !== e.currentTarget || v) return;
|
|
8075
8127
|
let n = rr(e);
|
|
8076
8128
|
if (Pe !== "day") return $n(Go(n), void 0, t.id);
|
|
8077
|
-
let r =
|
|
8129
|
+
let r = rh(n, p);
|
|
8078
8130
|
oe?.({
|
|
8079
8131
|
start: Qt(bs(r)),
|
|
8080
8132
|
end: Qt(bs(we(r, p))),
|
|
@@ -8089,7 +8141,7 @@ function ah({ events: r = [], view: i, defaultView: a = "week", onViewChange: o,
|
|
|
8089
8141
|
});
|
|
8090
8142
|
nr(e, n, {
|
|
8091
8143
|
resourceId: t.id,
|
|
8092
|
-
start:
|
|
8144
|
+
start: rh(n, p)
|
|
8093
8145
|
});
|
|
8094
8146
|
}, or = (e) => {
|
|
8095
8147
|
if (Pe === "day") return Xn(We[0], 0, e.id);
|
|
@@ -8097,8 +8149,8 @@ function ah({ events: r = [], view: i, defaultView: a = "week", onViewChange: o,
|
|
|
8097
8149
|
}, sr = X(null);
|
|
8098
8150
|
Y(() => {
|
|
8099
8151
|
if (!b) return;
|
|
8100
|
-
let e =
|
|
8101
|
-
sr.current && (sr.current.scrollTop = Math.max(0, e / 60 *
|
|
8152
|
+
let e = nh(b) - d * 60;
|
|
8153
|
+
sr.current && (sr.current.scrollTop = Math.max(0, e / 60 * Jm)), Pn.current && Pe === "day" && (Pn.current.scrollLeft = Math.max(0, e * xn));
|
|
8102
8154
|
}, [Te]);
|
|
8103
8155
|
let cr = X(null), [lr, ur] = Z(null), dr = (e, t) => {
|
|
8104
8156
|
if (!ee) return Be(e);
|
|
@@ -8176,7 +8228,7 @@ function ah({ events: r = [], view: i, defaultView: a = "week", onViewChange: o,
|
|
|
8176
8228
|
"aria-live": "polite",
|
|
8177
8229
|
children: rt
|
|
8178
8230
|
}),
|
|
8179
|
-
Tt.length > 0 && /* @__PURE__ */ Q(
|
|
8231
|
+
Tt.length > 0 && /* @__PURE__ */ Q(lm, {
|
|
8180
8232
|
className: J.filter(),
|
|
8181
8233
|
size: "sm",
|
|
8182
8234
|
"aria-label": ye.resourceFilter,
|
|
@@ -8214,7 +8266,7 @@ function ah({ events: r = [], view: i, defaultView: a = "week", onViewChange: o,
|
|
|
8214
8266
|
})
|
|
8215
8267
|
]
|
|
8216
8268
|
}),
|
|
8217
|
-
Te === "timeline" && /* @__PURE__ */ $(Jl, { children: [/* @__PURE__ */ Q(
|
|
8269
|
+
Te === "timeline" && /* @__PURE__ */ $(Jl, { children: [/* @__PURE__ */ Q(Ed, {
|
|
8218
8270
|
label: ye.range,
|
|
8219
8271
|
size: "sm",
|
|
8220
8272
|
value: Pe,
|
|
@@ -8223,7 +8275,7 @@ function ah({ events: r = [], view: i, defaultView: a = "week", onViewChange: o,
|
|
|
8223
8275
|
"day",
|
|
8224
8276
|
"week",
|
|
8225
8277
|
"month"
|
|
8226
|
-
].map((e) => /* @__PURE__ */ Q(
|
|
8278
|
+
].map((e) => /* @__PURE__ */ Q(kd, {
|
|
8227
8279
|
value: e,
|
|
8228
8280
|
children: ye.ranges[e]
|
|
8229
8281
|
}, e))
|
|
@@ -8234,23 +8286,23 @@ function ah({ events: r = [], view: i, defaultView: a = "week", onViewChange: o,
|
|
|
8234
8286
|
label: ye.zoomOut,
|
|
8235
8287
|
variant: "text",
|
|
8236
8288
|
size: "sm",
|
|
8237
|
-
disabled: Le <=
|
|
8289
|
+
disabled: Le <= Zm[0],
|
|
8238
8290
|
onClick: () => Ue(-1)
|
|
8239
8291
|
}), /* @__PURE__ */ Q(j, {
|
|
8240
8292
|
icon: Fl,
|
|
8241
8293
|
label: ye.zoomIn,
|
|
8242
8294
|
variant: "text",
|
|
8243
8295
|
size: "sm",
|
|
8244
|
-
disabled: Le >=
|
|
8296
|
+
disabled: Le >= Zm.at(-1),
|
|
8245
8297
|
onClick: () => Ue(1)
|
|
8246
8298
|
})]
|
|
8247
8299
|
})] }),
|
|
8248
|
-
u.length > 1 && /* @__PURE__ */ Q(
|
|
8300
|
+
u.length > 1 && /* @__PURE__ */ Q(Ed, {
|
|
8249
8301
|
label: ye.view,
|
|
8250
8302
|
size: "sm",
|
|
8251
8303
|
value: Te,
|
|
8252
8304
|
onValueChange: (e) => e && Re(e),
|
|
8253
|
-
children: u.map((e) => /* @__PURE__ */ Q(
|
|
8305
|
+
children: u.map((e) => /* @__PURE__ */ Q(kd, {
|
|
8254
8306
|
value: e,
|
|
8255
8307
|
children: ye.views[e]
|
|
8256
8308
|
}, e))
|
|
@@ -8275,7 +8327,7 @@ function ah({ events: r = [], view: i, defaultView: a = "week", onViewChange: o,
|
|
|
8275
8327
|
className: J.grid(),
|
|
8276
8328
|
style: {
|
|
8277
8329
|
"--wc-days": fn.length,
|
|
8278
|
-
"--wc-hour": `${
|
|
8330
|
+
"--wc-hour": `${Jm}px`
|
|
8279
8331
|
},
|
|
8280
8332
|
children: [
|
|
8281
8333
|
Et.length ? /* @__PURE__ */ $(Jl, { children: [
|
|
@@ -8369,11 +8421,11 @@ function ah({ events: r = [], view: i, defaultView: a = "week", onViewChange: o,
|
|
|
8369
8421
|
style: { maxHeight: y },
|
|
8370
8422
|
children: [/* @__PURE__ */ Q("div", {
|
|
8371
8423
|
className: J.hours(),
|
|
8372
|
-
style: { height: qe.length *
|
|
8424
|
+
style: { height: qe.length * Jm },
|
|
8373
8425
|
"aria-hidden": "true",
|
|
8374
8426
|
children: qe.map((e, t) => /* @__PURE__ */ Q("span", {
|
|
8375
8427
|
className: J.hour(),
|
|
8376
|
-
style: { top: t *
|
|
8428
|
+
style: { top: t * Jm },
|
|
8377
8429
|
children: at(e)
|
|
8378
8430
|
}, e))
|
|
8379
8431
|
}), fn.map((e, t) => /* @__PURE__ */ $("div", {
|
|
@@ -8381,7 +8433,7 @@ function ah({ events: r = [], view: i, defaultView: a = "week", onViewChange: o,
|
|
|
8381
8433
|
"data-day-column": "",
|
|
8382
8434
|
"aria-label": mn(e),
|
|
8383
8435
|
className: J.dayColumn(),
|
|
8384
|
-
style: { height: qe.length *
|
|
8436
|
+
style: { height: qe.length * Jm },
|
|
8385
8437
|
onClick: (t) => Qn(e.day, t, e.resource?.id),
|
|
8386
8438
|
onDragOver: tr,
|
|
8387
8439
|
onDrop: (t) => nr(t, e.day, { resourceId: e.resource?.id }),
|
|
@@ -8537,7 +8589,7 @@ function ah({ events: r = [], view: i, defaultView: a = "week", onViewChange: o,
|
|
|
8537
8589
|
style: {
|
|
8538
8590
|
insetInlineStart: `${e.offset * xn}px`,
|
|
8539
8591
|
width: `${Math.max(8, e.length * xn)}px`,
|
|
8540
|
-
top: `${6 + e.lane *
|
|
8592
|
+
top: `${6 + e.lane * Ym}px`,
|
|
8541
8593
|
height: "26px"
|
|
8542
8594
|
},
|
|
8543
8595
|
onClick: () => Yn(e.event.id),
|
|
@@ -8670,10 +8722,10 @@ function ah({ events: r = [], view: i, defaultView: a = "week", onViewChange: o,
|
|
|
8670
8722
|
children: ye.empty
|
|
8671
8723
|
})]
|
|
8672
8724
|
}),
|
|
8673
|
-
ee && /* @__PURE__ */ Q(
|
|
8725
|
+
ee && /* @__PURE__ */ Q(cf, {
|
|
8674
8726
|
ref: cr,
|
|
8675
8727
|
placement: "bottom-start",
|
|
8676
|
-
children: /* @__PURE__ */ Q(
|
|
8728
|
+
children: /* @__PURE__ */ Q(df, {
|
|
8677
8729
|
title: lr ? Ze(lr) : "",
|
|
8678
8730
|
children: /* @__PURE__ */ Q("div", {
|
|
8679
8731
|
className: J.moreList(),
|
|
@@ -8687,7 +8739,7 @@ function ah({ events: r = [], view: i, defaultView: a = "week", onViewChange: o,
|
|
|
8687
8739
|
})
|
|
8688
8740
|
})
|
|
8689
8741
|
]
|
|
8690
|
-
}) : Te === "year" ? /* @__PURE__ */ Q(
|
|
8742
|
+
}) : Te === "year" ? /* @__PURE__ */ Q(qm, {
|
|
8691
8743
|
year: Oe.getFullYear(),
|
|
8692
8744
|
date: ys(Oe),
|
|
8693
8745
|
counts: yr,
|
|
@@ -8731,7 +8783,7 @@ function ah({ events: r = [], view: i, defaultView: a = "week", onViewChange: o,
|
|
|
8731
8783
|
className: J.status(),
|
|
8732
8784
|
children: dt
|
|
8733
8785
|
}),
|
|
8734
|
-
/* @__PURE__ */ Q(
|
|
8786
|
+
/* @__PURE__ */ Q(Km, {
|
|
8735
8787
|
open: !!Yt,
|
|
8736
8788
|
title: ye.seriesTitle,
|
|
8737
8789
|
description: Yt ? ye.seriesQuestion(kt(Yt.id).title) : "",
|
|
@@ -8746,13 +8798,13 @@ function ah({ events: r = [], view: i, defaultView: a = "week", onViewChange: o,
|
|
|
8746
8798
|
}
|
|
8747
8799
|
//#endregion
|
|
8748
8800
|
//#region src/components/Gantt/Gantt.tsx
|
|
8749
|
-
var
|
|
8801
|
+
var sh = 40, ch = [
|
|
8750
8802
|
"day",
|
|
8751
8803
|
"week",
|
|
8752
8804
|
"month",
|
|
8753
8805
|
"quarter"
|
|
8754
|
-
],
|
|
8755
|
-
function
|
|
8806
|
+
], lh = "Alt+ArrowLeft Alt+ArrowRight Alt+Shift+ArrowLeft Alt+Shift+ArrowRight Alt+ArrowUp Alt+ArrowDown", uh = () => () => {}, dh = () => !0, fh = () => !1;
|
|
8807
|
+
function ph({ tasks: r, zoom: i, defaultZoom: a = "week", onZoomChange: o, zooms: s = ch, expanded: c, defaultExpanded: l, onExpandedChange: u, editable: d = !1, linkable: f = !1, loading: p = !1, showCriticalPath: m = !1, today: h, title: g, headingLevel: _ = 2, height: v = "480px", label: y, locale: b, onTaskClick: x, onTaskChange: S, onProgressChange: C, onDependencyCreate: w, classes: T, className: E, ...O }) {
|
|
8756
8808
|
let k = n("gantt", dr, T), j = k(), M = t(), N = e(), P = N.gantt, F = b ?? M.locale, I = M.dir === "rtl", [L, R] = Z(a), z = i ?? L, B = (e) => {
|
|
8757
8809
|
R(e), o?.(e);
|
|
8758
8810
|
}, [V, H] = Z(() => l ?? pr(r)), ee = c ?? V, U = (e, t = !ee.includes(e)) => {
|
|
@@ -8787,13 +8839,13 @@ function fh({ tasks: r, zoom: i, defaultZoom: a = "week", onZoomChange: o, zooms
|
|
|
8787
8839
|
}, {
|
|
8788
8840
|
x: e.task.milestone ? a.x + o - 8 : a.x,
|
|
8789
8841
|
row: t
|
|
8790
|
-
},
|
|
8842
|
+
}, sh);
|
|
8791
8843
|
return {
|
|
8792
8844
|
key: `${n}-${e.task.id}`,
|
|
8793
8845
|
...s,
|
|
8794
8846
|
critical: ae.has(n) && ae.has(e.task.id)
|
|
8795
8847
|
};
|
|
8796
|
-
})), ue = Kl(
|
|
8848
|
+
})), ue = Kl(uh, dh, fh), de = h ?? (ue ? ks() : null), fe = de ? en(ie.start, de) : -1, pe = fe >= 0 && fe < ie.days ? (fe + .5) * ie.dayWidth : -1, me = X(null), he = X(null), ge = () => {
|
|
8797
8849
|
let e = en(ie.start, de ?? ks()) * ie.dayWidth, t = Math.max(0, e - (me.current?.clientWidth ?? 0) / 3);
|
|
8798
8850
|
me.current?.scrollTo({
|
|
8799
8851
|
left: I ? -t : t,
|
|
@@ -8952,7 +9004,7 @@ function fh({ tasks: r, zoom: i, defaultZoom: a = "week", onZoomChange: o, zooms
|
|
|
8952
9004
|
}, qe = (e) => W?.id === e.task.id && W.mode === "progress" ? W.progress : e.progress, Je = (() => {
|
|
8953
9005
|
if (W?.mode !== "link") return "";
|
|
8954
9006
|
let e = ce.get(W.id) ?? 0, t = oe(q[e]), n = I ? se - W.x : W.x;
|
|
8955
|
-
return `M ${t.x + t.width} ${e *
|
|
9007
|
+
return `M ${t.x + t.width} ${e * sh + sh / 2} L ${n} ${W.y}`;
|
|
8956
9008
|
})(), Ye = `h${_}`, Xe = (e) => ({
|
|
8957
9009
|
insetInlineStart: `${en(ie.start, e.start) * ie.dayWidth}px`,
|
|
8958
9010
|
width: `${e.days * ie.dayWidth}px`
|
|
@@ -8984,12 +9036,12 @@ function fh({ tasks: r, zoom: i, defaultZoom: a = "week", onZoomChange: o, zooms
|
|
|
8984
9036
|
onClick: ke,
|
|
8985
9037
|
children: P.addDependency
|
|
8986
9038
|
}),
|
|
8987
|
-
s.length > 1 && /* @__PURE__ */ Q(
|
|
9039
|
+
s.length > 1 && /* @__PURE__ */ Q(Ed, {
|
|
8988
9040
|
label: P.zoom,
|
|
8989
9041
|
size: "sm",
|
|
8990
9042
|
value: z,
|
|
8991
9043
|
onValueChange: (e) => e && B(e),
|
|
8992
|
-
children: s.map((e) => /* @__PURE__ */ Q(
|
|
9044
|
+
children: s.map((e) => /* @__PURE__ */ Q(kd, {
|
|
8993
9045
|
value: e,
|
|
8994
9046
|
children: P.zooms[e]
|
|
8995
9047
|
}, e))
|
|
@@ -9042,7 +9094,7 @@ function fh({ tasks: r, zoom: i, defaultZoom: a = "week", onZoomChange: o, zooms
|
|
|
9042
9094
|
"aria-posinset": e.posinset,
|
|
9043
9095
|
"aria-setsize": e.setsize,
|
|
9044
9096
|
"aria-expanded": e.hasChildren ? e.expanded : void 0,
|
|
9045
|
-
"aria-keyshortcuts": e.hasChildren || !d ? void 0 :
|
|
9097
|
+
"aria-keyshortcuts": e.hasChildren || !d ? void 0 : lh,
|
|
9046
9098
|
tabIndex: e.task.id === Ne ? 0 : -1,
|
|
9047
9099
|
className: j.row(),
|
|
9048
9100
|
onFocus: () => Me(e.task.id),
|
|
@@ -9114,7 +9166,7 @@ function fh({ tasks: r, zoom: i, defaultZoom: a = "week", onZoomChange: o, zooms
|
|
|
9114
9166
|
}), /* @__PURE__ */ $("div", {
|
|
9115
9167
|
ref: Re,
|
|
9116
9168
|
className: j.lanes(),
|
|
9117
|
-
style: { height: `${q.length *
|
|
9169
|
+
style: { height: `${q.length * sh}px` },
|
|
9118
9170
|
children: [
|
|
9119
9171
|
ie.bottom.map((e) => /* @__PURE__ */ Q("span", {
|
|
9120
9172
|
className: j.gridLine(),
|
|
@@ -9189,7 +9241,7 @@ function fh({ tasks: r, zoom: i, defaultZoom: a = "week", onZoomChange: o, zooms
|
|
|
9189
9241
|
/* @__PURE__ */ $("svg", {
|
|
9190
9242
|
className: j.links(),
|
|
9191
9243
|
width: se,
|
|
9192
|
-
height: q.length *
|
|
9244
|
+
height: q.length * sh,
|
|
9193
9245
|
children: [le.map((e) => /* @__PURE__ */ $("g", { children: [/* @__PURE__ */ Q("path", {
|
|
9194
9246
|
className: j.link(),
|
|
9195
9247
|
d: e.line,
|
|
@@ -9239,7 +9291,7 @@ function fh({ tasks: r, zoom: i, defaultZoom: a = "week", onZoomChange: o, zooms
|
|
|
9239
9291
|
})] }),
|
|
9240
9292
|
children: Oe.length ? /* @__PURE__ */ Q(A, {
|
|
9241
9293
|
label: P.predecessor,
|
|
9242
|
-
children: /* @__PURE__ */ Q(
|
|
9294
|
+
children: /* @__PURE__ */ Q(lm, {
|
|
9243
9295
|
items: Oe.map((e) => ({
|
|
9244
9296
|
value: e.id,
|
|
9245
9297
|
label: e.name
|
|
@@ -9255,7 +9307,7 @@ function fh({ tasks: r, zoom: i, defaultZoom: a = "week", onZoomChange: o, zooms
|
|
|
9255
9307
|
}
|
|
9256
9308
|
//#endregion
|
|
9257
9309
|
//#region src/components/Stack/Stack.tsx
|
|
9258
|
-
function
|
|
9310
|
+
function mh({ classes: e, gap: t, align: r, as: i = "div", className: a, ...o }) {
|
|
9259
9311
|
let s = n("stack", Wo, e);
|
|
9260
9312
|
return /* @__PURE__ */ Q(i, {
|
|
9261
9313
|
...o,
|
|
@@ -9268,7 +9320,7 @@ function ph({ classes: e, gap: t, align: r, as: i = "div", className: a, ...o })
|
|
|
9268
9320
|
}
|
|
9269
9321
|
//#endregion
|
|
9270
9322
|
//#region src/components/Group/Group.tsx
|
|
9271
|
-
function
|
|
9323
|
+
function hh({ classes: e, gap: t, justify: r, align: i, nowrap: a, grow: o, as: s = "div", className: c, ...l }) {
|
|
9272
9324
|
let u = n("group", br, e);
|
|
9273
9325
|
return /* @__PURE__ */ Q(s, {
|
|
9274
9326
|
...l,
|
|
@@ -9284,7 +9336,7 @@ function mh({ classes: e, gap: t, justify: r, align: i, nowrap: a, grow: o, as:
|
|
|
9284
9336
|
}
|
|
9285
9337
|
//#endregion
|
|
9286
9338
|
//#region src/components/SimpleGrid/SimpleGrid.tsx
|
|
9287
|
-
function
|
|
9339
|
+
function gh({ classes: e, columns: t = 1, minColumnWidth: r, gap: i, as: a = "div", className: o, style: s, ...c }) {
|
|
9288
9340
|
let l = n("simpleGrid", Mo, e), u = r ? { "--wc-min-col": r } : At(t);
|
|
9289
9341
|
return /* @__PURE__ */ Q(a, {
|
|
9290
9342
|
...c,
|
|
@@ -9301,7 +9353,7 @@ function hh({ classes: e, columns: t = 1, minColumnWidth: r, gap: i, as: a = "di
|
|
|
9301
9353
|
}
|
|
9302
9354
|
//#endregion
|
|
9303
9355
|
//#region src/components/Container/Container.tsx
|
|
9304
|
-
function
|
|
9356
|
+
function _h({ classes: e, size: t, flush: r, as: i = "div", className: a, ...o }) {
|
|
9305
9357
|
let s = n("container", It, e);
|
|
9306
9358
|
return /* @__PURE__ */ Q(i, {
|
|
9307
9359
|
...o,
|
|
@@ -9314,7 +9366,7 @@ function gh({ classes: e, size: t, flush: r, as: i = "div", className: a, ...o }
|
|
|
9314
9366
|
}
|
|
9315
9367
|
//#endregion
|
|
9316
9368
|
//#region src/components/Center/Center.tsx
|
|
9317
|
-
function
|
|
9369
|
+
function vh({ classes: e, inline: t, className: r, ...i }) {
|
|
9318
9370
|
let a = n("center", ot, e);
|
|
9319
9371
|
return /* @__PURE__ */ Q("div", {
|
|
9320
9372
|
...i,
|
|
@@ -9326,7 +9378,7 @@ function _h({ classes: e, inline: t, className: r, ...i }) {
|
|
|
9326
9378
|
}
|
|
9327
9379
|
//#endregion
|
|
9328
9380
|
//#region src/components/AspectRatio/AspectRatio.tsx
|
|
9329
|
-
function
|
|
9381
|
+
function yh({ classes: e, ratio: t = 16 / 9, className: r, style: i, ...a }) {
|
|
9330
9382
|
let o = n("aspectRatio", Le, e);
|
|
9331
9383
|
return /* @__PURE__ */ Q("div", {
|
|
9332
9384
|
...a,
|
|
@@ -9339,7 +9391,7 @@ function vh({ classes: e, ratio: t = 16 / 9, className: r, style: i, ...a }) {
|
|
|
9339
9391
|
}
|
|
9340
9392
|
//#endregion
|
|
9341
9393
|
//#region src/components/Affix/Affix.tsx
|
|
9342
|
-
function
|
|
9394
|
+
function bh({ classes: e, position: t, offset: r, className: i, style: a, ...o }) {
|
|
9343
9395
|
let s = n("affix", Ee, e);
|
|
9344
9396
|
return /* @__PURE__ */ Q("div", {
|
|
9345
9397
|
...o,
|
|
@@ -9355,7 +9407,7 @@ function yh({ classes: e, position: t, offset: r, className: i, style: a, ...o }
|
|
|
9355
9407
|
}
|
|
9356
9408
|
//#endregion
|
|
9357
9409
|
//#region src/components/Sticky/Sticky.tsx
|
|
9358
|
-
function
|
|
9410
|
+
function xh({ classes: e, edge: t, offset: r, bar: i, as: a = "div", className: o, style: s, ...c }) {
|
|
9359
9411
|
let l = n("sticky", $o, e);
|
|
9360
9412
|
return /* @__PURE__ */ Q(a, {
|
|
9361
9413
|
...c,
|
|
@@ -9372,7 +9424,7 @@ function bh({ classes: e, edge: t, offset: r, bar: i, as: a = "div", className:
|
|
|
9372
9424
|
}
|
|
9373
9425
|
//#endregion
|
|
9374
9426
|
//#region src/components/Collapse/Collapse.tsx
|
|
9375
|
-
function
|
|
9427
|
+
function Sh({ classes: e, open: t = !1, orientation: r, className: i, children: a, ...o }) {
|
|
9376
9428
|
let s = n("collapse", wt, e)({ orientation: r });
|
|
9377
9429
|
return /* @__PURE__ */ Q("div", {
|
|
9378
9430
|
...o,
|
|
@@ -9387,7 +9439,7 @@ function xh({ classes: e, open: t = !1, orientation: r, className: i, children:
|
|
|
9387
9439
|
}
|
|
9388
9440
|
//#endregion
|
|
9389
9441
|
//#region src/components/Scroller/Scroller.tsx
|
|
9390
|
-
function
|
|
9442
|
+
function Ch({ classes: e, label: t, className: r, children: i, ...a }) {
|
|
9391
9443
|
let o = n("scroller", mo, e)(), s = X(null), [c, l] = Z({
|
|
9392
9444
|
start: !1,
|
|
9393
9445
|
end: !1
|
|
@@ -9445,14 +9497,14 @@ function Sh({ classes: e, label: t, className: r, children: i, ...a }) {
|
|
|
9445
9497
|
}
|
|
9446
9498
|
//#endregion
|
|
9447
9499
|
//#region src/components/Masonry/Masonry.tsx
|
|
9448
|
-
var
|
|
9500
|
+
var wh = {
|
|
9449
9501
|
sm: 8,
|
|
9450
9502
|
md: 16,
|
|
9451
9503
|
lg: 24
|
|
9452
|
-
},
|
|
9453
|
-
function
|
|
9504
|
+
}, Th = typeof document > "u" ? () => void 0 : Wl;
|
|
9505
|
+
function Eh({ classes: e, columns: t = 2, gap: r, mode: i = "columns", className: a, style: o, children: s, ...c }) {
|
|
9454
9506
|
let l = n("masonry", Ni, e), u = X(null);
|
|
9455
|
-
return
|
|
9507
|
+
return Th(() => {
|
|
9456
9508
|
let e = u.current;
|
|
9457
9509
|
if (!e) return;
|
|
9458
9510
|
let t = [...e.children];
|
|
@@ -9461,7 +9513,7 @@ function Th({ classes: e, columns: t = 2, gap: r, mode: i = "columns", className
|
|
|
9461
9513
|
return;
|
|
9462
9514
|
}
|
|
9463
9515
|
let n = () => {
|
|
9464
|
-
for (let e of t) e.style.gridRowEnd = `span ${Pi(e.getBoundingClientRect().height, 4,
|
|
9516
|
+
for (let e of t) e.style.gridRowEnd = `span ${Pi(e.getBoundingClientRect().height, 4, wh[r ?? "md"])}`;
|
|
9465
9517
|
}, a = new ResizeObserver(n);
|
|
9466
9518
|
for (let e of t) a.observe(e);
|
|
9467
9519
|
return n(), () => a.disconnect();
|
|
@@ -9482,7 +9534,7 @@ function Th({ classes: e, columns: t = 2, gap: r, mode: i = "columns", className
|
|
|
9482
9534
|
}
|
|
9483
9535
|
//#endregion
|
|
9484
9536
|
//#region src/components/PageHeader/PageHeader.tsx
|
|
9485
|
-
function
|
|
9537
|
+
function Dh({ classes: t, title: r, headingLevel: i = 1, subtitle: a, backHref: o, backLabel: s, onBack: c, status: l, statusVariant: u, size: d, divided: f, breadcrumb: p, meta: m, actions: h, tabs: g, className: _, ...v }) {
|
|
9486
9538
|
let y = n("pageHeader", sa, t)({
|
|
9487
9539
|
size: d,
|
|
9488
9540
|
divided: f
|
|
@@ -9539,7 +9591,7 @@ function Eh({ classes: t, title: r, headingLevel: i = 1, subtitle: a, backHref:
|
|
|
9539
9591
|
}
|
|
9540
9592
|
//#endregion
|
|
9541
9593
|
//#region src/components/BottomNavigation/BottomNavigation.tsx
|
|
9542
|
-
function
|
|
9594
|
+
function Oh({ classes: t, items: r, label: i, currentHref: a, isCurrent: o, linkAs: s = "a", onNavigate: c, inline: l, className: u, ...d }) {
|
|
9543
9595
|
let f = n("bottomNavigation", qe, t)({ inline: l }), p = e();
|
|
9544
9596
|
return /* @__PURE__ */ Q("nav", {
|
|
9545
9597
|
...d,
|
|
@@ -9577,20 +9629,20 @@ function Dh({ classes: t, items: r, label: i, currentHref: a, isCurrent: o, link
|
|
|
9577
9629
|
}
|
|
9578
9630
|
//#endregion
|
|
9579
9631
|
//#region src/components/Banner/Banner.tsx
|
|
9580
|
-
var
|
|
9632
|
+
var kh = {
|
|
9581
9633
|
info: Wc,
|
|
9582
9634
|
success: Nc,
|
|
9583
9635
|
warn: kl,
|
|
9584
9636
|
danger: Mc,
|
|
9585
9637
|
neutral: Qc
|
|
9586
9638
|
};
|
|
9587
|
-
function
|
|
9639
|
+
function Ah({ classes: t, variant: r, title: i, position: a, dismissible: o, open: s, onOpenChange: c, onDismiss: l, storageKey: u, icon: d, hideIcon: f, dismissLabel: p, actions: m, className: h, children: g, ..._ }) {
|
|
9588
9640
|
let v = n("banner", He, t)({
|
|
9589
9641
|
variant: r,
|
|
9590
9642
|
position: a
|
|
9591
|
-
}), y = e(), [b, x] = Z(!0), S = Bp(
|
|
9643
|
+
}), y = e(), [b, x] = Z(!0), S = Vp(Bp(u)) === "dismissed";
|
|
9592
9644
|
if (!(s ?? (b && !S))) return null;
|
|
9593
|
-
let C = d ??
|
|
9645
|
+
let C = d ?? kh[r ?? "info"], w = () => {
|
|
9594
9646
|
x(!1), sc(u, "dismissed"), c?.(!1), l?.();
|
|
9595
9647
|
};
|
|
9596
9648
|
return /* @__PURE__ */ $("div", {
|
|
@@ -9631,7 +9683,7 @@ function kh({ classes: t, variant: r, title: i, position: a, dismissible: o, ope
|
|
|
9631
9683
|
}
|
|
9632
9684
|
//#endregion
|
|
9633
9685
|
//#region src/components/Result/Result.tsx
|
|
9634
|
-
var
|
|
9686
|
+
var jh = {
|
|
9635
9687
|
success: Nc,
|
|
9636
9688
|
info: Wc,
|
|
9637
9689
|
warn: kl,
|
|
@@ -9640,12 +9692,12 @@ var Ah = {
|
|
|
9640
9692
|
404: bl,
|
|
9641
9693
|
500: xl
|
|
9642
9694
|
};
|
|
9643
|
-
function
|
|
9695
|
+
function Mh({ classes: t, status: r = "info", title: i, description: a, icon: o, headingLevel: s = 2, actions: c, className: l, children: u, ...d }) {
|
|
9644
9696
|
let f = n("result", $a, t)({ status: r }), p = e().result, m = {
|
|
9645
9697
|
403: p.description403,
|
|
9646
9698
|
404: p.description404,
|
|
9647
9699
|
500: p.description500
|
|
9648
|
-
}, h = a ?? m[r], g = o ??
|
|
9700
|
+
}, h = a ?? m[r], g = o ?? jh[r], _ = `h${s}`;
|
|
9649
9701
|
return /* @__PURE__ */ $("div", {
|
|
9650
9702
|
...d,
|
|
9651
9703
|
className: f.base({ class: l }),
|
|
@@ -9680,7 +9732,7 @@ function jh({ classes: t, status: r = "info", title: i, description: a, icon: o,
|
|
|
9680
9732
|
}
|
|
9681
9733
|
//#endregion
|
|
9682
9734
|
//#region src/components/Descriptions/Descriptions.tsx
|
|
9683
|
-
function
|
|
9735
|
+
function Nh({ classes: e, items: t, title: r, headingLevel: i = 3, actions: a, columns: o = {
|
|
9684
9736
|
base: 1,
|
|
9685
9737
|
sm: 2,
|
|
9686
9738
|
lg: 3
|
|
@@ -9725,7 +9777,7 @@ function Mh({ classes: e, items: t, title: r, headingLevel: i = 3, actions: a, c
|
|
|
9725
9777
|
}
|
|
9726
9778
|
//#endregion
|
|
9727
9779
|
//#region src/components/NotificationCenter/NotificationCenter.tsx
|
|
9728
|
-
function
|
|
9780
|
+
function Ph({ items: r, unread: i, hasMore: a, loading: o, now: s, emptyText: c, onMarkRead: l, onMarkAllRead: u, onLoadMore: d, onSelect: f, renderActions: p, classes: m }) {
|
|
9729
9781
|
let h = n("notificationCenter", Zi, m), g = h(), _ = e().notificationCenter, { locale: v } = t(), y = Hl(), b = xr(r, s === void 0 ? /* @__PURE__ */ new Date() : new Date(s));
|
|
9730
9782
|
return /* @__PURE__ */ $(Jl, { children: [/* @__PURE__ */ $("div", {
|
|
9731
9783
|
className: g.header(),
|
|
@@ -9823,8 +9875,8 @@ function Nh({ items: r, unread: i, hasMore: a, loading: o, now: s, emptyText: c,
|
|
|
9823
9875
|
]
|
|
9824
9876
|
})] });
|
|
9825
9877
|
}
|
|
9826
|
-
var
|
|
9827
|
-
function
|
|
9878
|
+
var Fh = [];
|
|
9879
|
+
function Ih({ classes: t, items: r = Fh, dataSource: i, pageSize: a = 20, unreadCount: o, hasMore: s, loading: c, display: l = "popover", open: u, onOpenChange: d, label: f, now: p, emptyText: m, onMarkRead: h, onMarkAllRead: g, onLoadMore: _, onSelect: v, renderActions: y, className: b, ...x }) {
|
|
9828
9880
|
let S = n("notificationCenter", Zi, t)(), C = e(), w = f ?? C.notificationCenter.label, T = ee({
|
|
9829
9881
|
source: i,
|
|
9830
9882
|
pageSize: a
|
|
@@ -9856,7 +9908,7 @@ function Fh({ classes: t, items: r = Ph, dataSource: i, pageSize: a = 20, unread
|
|
|
9856
9908
|
for (let e of I) G.current.known.add(e.id);
|
|
9857
9909
|
G.current.newest = Math.max(G.current.newest, Xi(I)), e.length && W(C.notificationCenter.announce(e.length, e[0].title));
|
|
9858
9910
|
}, [I, C]);
|
|
9859
|
-
let te = /* @__PURE__ */ Q(
|
|
9911
|
+
let te = /* @__PURE__ */ Q(Ph, {
|
|
9860
9912
|
items: A,
|
|
9861
9913
|
unread: L,
|
|
9862
9914
|
hasMore: M,
|
|
@@ -9880,11 +9932,11 @@ function Fh({ classes: t, items: r = Ph, dataSource: i, pageSize: a = 20, unread
|
|
|
9880
9932
|
return /* @__PURE__ */ $("div", {
|
|
9881
9933
|
...x,
|
|
9882
9934
|
className: S.base({ class: b }),
|
|
9883
|
-
children: [l === "popover" ? /* @__PURE__ */ $(
|
|
9935
|
+
children: [l === "popover" ? /* @__PURE__ */ $(cf, {
|
|
9884
9936
|
open: B,
|
|
9885
9937
|
onOpenChange: V,
|
|
9886
9938
|
placement: "bottom-end",
|
|
9887
|
-
children: [/* @__PURE__ */ Q(
|
|
9939
|
+
children: [/* @__PURE__ */ Q(lf, { children: K() }), /* @__PURE__ */ Q(df, {
|
|
9888
9940
|
title: w,
|
|
9889
9941
|
classes: {
|
|
9890
9942
|
content: S.panel(),
|
|
@@ -9897,10 +9949,10 @@ function Fh({ classes: t, items: r = Ph, dataSource: i, pageSize: a = 20, unread
|
|
|
9897
9949
|
"aria-haspopup": "dialog",
|
|
9898
9950
|
"aria-expanded": B,
|
|
9899
9951
|
onClick: () => V(!0)
|
|
9900
|
-
}), /* @__PURE__ */ Q(
|
|
9952
|
+
}), /* @__PURE__ */ Q(nf, {
|
|
9901
9953
|
open: B,
|
|
9902
9954
|
onOpenChange: V,
|
|
9903
|
-
children: /* @__PURE__ */ Q(
|
|
9955
|
+
children: /* @__PURE__ */ Q(of, {
|
|
9904
9956
|
title: w,
|
|
9905
9957
|
placement: "right",
|
|
9906
9958
|
children: te
|
|
@@ -9914,7 +9966,7 @@ function Fh({ classes: t, items: r = Ph, dataSource: i, pageSize: a = 20, unread
|
|
|
9914
9966
|
}
|
|
9915
9967
|
//#endregion
|
|
9916
9968
|
//#region src/components/MegaMenu/MegaMenu.tsx
|
|
9917
|
-
var
|
|
9969
|
+
var Lh = (e) => e.value ?? e.label, Rh = (e) => !!e.columns?.length || !!e.featured, zh = /* @__PURE__ */ new Set([
|
|
9918
9970
|
"ArrowUp",
|
|
9919
9971
|
"ArrowDown",
|
|
9920
9972
|
"ArrowLeft",
|
|
@@ -9922,7 +9974,7 @@ var Ih = (e) => e.value ?? e.label, Lh = (e) => !!e.columns?.length || !!e.featu
|
|
|
9922
9974
|
"Home",
|
|
9923
9975
|
"End"
|
|
9924
9976
|
]);
|
|
9925
|
-
function
|
|
9977
|
+
function Bh({ classes: r, items: i, label: a, openOn: o = "click", openDelay: s = 200, closeDelay: c = 300, arrowKeys: l = !0, orientation: u = "horizontal", collapse: d, currentHref: f, isCurrent: p, headingLevel: m = 3, linkAs: h = "a", value: g, defaultValue: _, onValueChange: v, onNavigate: y, renderFeatured: b, renderItem: x, menuLabel: S, className: C, ...w }) {
|
|
9926
9978
|
let T = n("megaMenu", Li, r)({
|
|
9927
9979
|
orientation: u,
|
|
9928
9980
|
collapse: d
|
|
@@ -9977,17 +10029,17 @@ function zh({ classes: r, items: i, label: a, openOn: o = "click", openDelay: s
|
|
|
9977
10029
|
return V.current = e, e.cancel;
|
|
9978
10030
|
}, []);
|
|
9979
10031
|
let H = (e, t, n) => {
|
|
9980
|
-
I.current.openOn === "hover" && n.pointerType === "mouse" && V.current?.[e](
|
|
10032
|
+
I.current.openOn === "hover" && n.pointerType === "mouse" && V.current?.[e](Rh(t) ? Lh(t) : "", {
|
|
9981
10033
|
x: n.clientX,
|
|
9982
10034
|
y: n.clientY
|
|
9983
10035
|
});
|
|
9984
10036
|
}, ee = (e) => {
|
|
9985
|
-
V.current?.cancel(), R.current.pressed =
|
|
10037
|
+
V.current?.cancel(), R.current.pressed = Lh(e);
|
|
9986
10038
|
}, U = () => setTimeout(() => R.current.pressed = void 0), W = (e) => {
|
|
9987
|
-
let t = { ...z.getContentProps({ value:
|
|
10039
|
+
let t = { ...z.getContentProps({ value: Lh(e) }) };
|
|
9988
10040
|
return delete t.onPointerEnter, delete t.onPointerLeave, delete t["aria-labelledby"], t;
|
|
9989
10041
|
}, G = (e) => {
|
|
9990
|
-
!l &&
|
|
10042
|
+
!l && zh.has(e.key) && e.target.closest("[data-scope=navigation-menu]:is([data-part=trigger], [data-part=link])") && e.stopPropagation();
|
|
9991
10043
|
}, [te, K] = Z(!1), ne = (e, t) => {
|
|
9992
10044
|
y?.(e, t), K(!1);
|
|
9993
10045
|
}, re = `h${m}`, q = `h${Math.min(m + 1, 6)}`, ie = S ?? E.menu, ae = (e) => (t) => y?.(e, t);
|
|
@@ -9999,12 +10051,12 @@ function zh({ classes: r, items: i, label: a, openOn: o = "click", openDelay: s
|
|
|
9999
10051
|
children: [/* @__PURE__ */ Q(Uu.List, {
|
|
10000
10052
|
className: T.list(),
|
|
10001
10053
|
children: i.map((e, t) => /* @__PURE__ */ Q(Uu.Item, {
|
|
10002
|
-
value:
|
|
10054
|
+
value: Lh(e),
|
|
10003
10055
|
className: T.item(),
|
|
10004
10056
|
onPointerEnter: (t) => H("enter", e, t),
|
|
10005
10057
|
onPointerMove: (t) => H("move", e, t),
|
|
10006
10058
|
onPointerLeave: (t) => H("leave", e, t),
|
|
10007
|
-
children:
|
|
10059
|
+
children: Rh(e) ? /* @__PURE__ */ $(Jl, { children: [e.href ? /* @__PURE__ */ $(Jl, { children: [/* @__PURE__ */ Q(Uu.Link, {
|
|
10008
10060
|
asChild: !0,
|
|
10009
10061
|
current: A(e),
|
|
10010
10062
|
children: /* @__PURE__ */ Q(h, {
|
|
@@ -10162,7 +10214,7 @@ function zh({ classes: r, items: i, label: a, openOn: o = "click", openDelay: s
|
|
|
10162
10214
|
children: e.label
|
|
10163
10215
|
})
|
|
10164
10216
|
})
|
|
10165
|
-
},
|
|
10217
|
+
}, Lh(e)))
|
|
10166
10218
|
}), d !== "never" && /* @__PURE__ */ $(Jl, { children: [/* @__PURE__ */ Q(j, {
|
|
10167
10219
|
icon: $c,
|
|
10168
10220
|
label: ie,
|
|
@@ -10171,20 +10223,20 @@ function zh({ classes: r, items: i, label: a, openOn: o = "click", openDelay: s
|
|
|
10171
10223
|
"aria-haspopup": "dialog",
|
|
10172
10224
|
"aria-expanded": te,
|
|
10173
10225
|
onClick: () => K(!0)
|
|
10174
|
-
}), /* @__PURE__ */ Q(
|
|
10226
|
+
}), /* @__PURE__ */ Q(nf, {
|
|
10175
10227
|
open: te,
|
|
10176
10228
|
onOpenChange: K,
|
|
10177
|
-
children: /* @__PURE__ */ Q(
|
|
10229
|
+
children: /* @__PURE__ */ Q(of, {
|
|
10178
10230
|
title: ie,
|
|
10179
10231
|
placement: "right",
|
|
10180
10232
|
children: /* @__PURE__ */ Q("nav", {
|
|
10181
10233
|
"aria-label": k,
|
|
10182
10234
|
className: T.mobileNav(),
|
|
10183
|
-
children: /* @__PURE__ */ Q(
|
|
10235
|
+
children: /* @__PURE__ */ Q(Gd, {
|
|
10184
10236
|
multiple: !0,
|
|
10185
|
-
defaultValue: i.filter((e) =>
|
|
10186
|
-
children: i.map((e, t) =>
|
|
10187
|
-
value:
|
|
10237
|
+
defaultValue: i.filter((e) => Rh(e) && M(e)).map(Lh),
|
|
10238
|
+
children: i.map((e, t) => Rh(e) ? /* @__PURE__ */ $(Kd, {
|
|
10239
|
+
value: Lh(e),
|
|
10188
10240
|
title: e.label,
|
|
10189
10241
|
headingLevel: m,
|
|
10190
10242
|
children: [
|
|
@@ -10258,13 +10310,13 @@ function zh({ classes: r, items: i, label: a, openOn: o = "click", openDelay: s
|
|
|
10258
10310
|
children: e.allLabel ?? E.showAll
|
|
10259
10311
|
})
|
|
10260
10312
|
]
|
|
10261
|
-
},
|
|
10313
|
+
}, Lh(e)) : /* @__PURE__ */ Q(h, {
|
|
10262
10314
|
...vi(e.href, e.to),
|
|
10263
10315
|
className: T.mobileLink(),
|
|
10264
10316
|
"aria-current": A(e) ? "page" : void 0,
|
|
10265
10317
|
onClick: (t) => ne(e, t),
|
|
10266
10318
|
children: e.label
|
|
10267
|
-
},
|
|
10319
|
+
}, Lh(e)))
|
|
10268
10320
|
})
|
|
10269
10321
|
})
|
|
10270
10322
|
})
|
|
@@ -10273,12 +10325,12 @@ function zh({ classes: r, items: i, label: a, openOn: o = "click", openDelay: s
|
|
|
10273
10325
|
}
|
|
10274
10326
|
//#endregion
|
|
10275
10327
|
//#region src/components/Statistic/Statistic.tsx
|
|
10276
|
-
var
|
|
10328
|
+
var Vh = {
|
|
10277
10329
|
up: Ol,
|
|
10278
10330
|
down: Dl,
|
|
10279
10331
|
flat: nl
|
|
10280
10332
|
};
|
|
10281
|
-
function
|
|
10333
|
+
function Hh({ classes: e, label: r, value: i, formatOptions: a, unit: o, prefix: s, suffix: c, trend: l, trendLabel: u, trendFormatOptions: d, invertTrend: f, description: p, icon: m, loading: h, animate: g, live: _, size: v, bordered: y, locale: b, chart: x, className: S, ...C }) {
|
|
10282
10334
|
let w = n("statistic", qo, e), T = t(), E = b ?? T.locale, D = Jo(l, f), O = w({
|
|
10283
10335
|
size: v,
|
|
10284
10336
|
tone: D.tone,
|
|
@@ -10287,7 +10339,7 @@ function Vh({ classes: e, label: r, value: i, formatOptions: a, unit: o, prefix:
|
|
|
10287
10339
|
style: "unit",
|
|
10288
10340
|
unit: o,
|
|
10289
10341
|
...a
|
|
10290
|
-
} : a, A = (e) => $n(e, E, k), j = A(i), M = l == null ? "" : ir(l, E, d), N =
|
|
10342
|
+
} : a, A = (e) => $n(e, E, k), j = A(i), M = l == null ? "" : ir(l, E, d), N = Vh[D.direction], [P, F] = Z(null), I = X(i);
|
|
10291
10343
|
Y(() => {
|
|
10292
10344
|
let e = I.current;
|
|
10293
10345
|
if (I.current = i, !g || typeof i != "number" || typeof e != "number" || e === i || !Ma()) return;
|
|
@@ -10364,7 +10416,7 @@ function Vh({ classes: e, label: r, value: i, formatOptions: a, unit: o, prefix:
|
|
|
10364
10416
|
}
|
|
10365
10417
|
//#endregion
|
|
10366
10418
|
//#region src/components/Truncate/Truncate.tsx
|
|
10367
|
-
function
|
|
10419
|
+
function Uh({ classes: t, text: r, lines: i = 1, tooltip: a = !0, expandable: o = !1, expanded: s, defaultExpanded: c = !1, onExpandedChange: l, as: u = "span", moreLabel: d, lessLabel: f, className: p, style: m, ...h }) {
|
|
10368
10420
|
let g = n("truncate", Hs, t), _ = e(), v = Hl(), [y, b] = Z(c), x = o && (s ?? y), [S, C] = Z(null), [w, T] = Z(!1), E = Bl(() => {
|
|
10369
10421
|
x || T(ei(S));
|
|
10370
10422
|
}, [S, x]);
|
|
@@ -10421,7 +10473,7 @@ function Hh({ classes: t, text: r, lines: i = 1, tooltip: a = !0, expandable: o
|
|
|
10421
10473
|
tabIndex: a && w ? 0 : void 0,
|
|
10422
10474
|
children: r
|
|
10423
10475
|
});
|
|
10424
|
-
return a ? /* @__PURE__ */ Q(
|
|
10476
|
+
return a ? /* @__PURE__ */ Q(Wd, {
|
|
10425
10477
|
content: r,
|
|
10426
10478
|
disabled: !w,
|
|
10427
10479
|
children: k
|
|
@@ -10429,8 +10481,8 @@ function Hh({ classes: t, text: r, lines: i = 1, tooltip: a = !0, expandable: o
|
|
|
10429
10481
|
}
|
|
10430
10482
|
//#endregion
|
|
10431
10483
|
//#region src/components/OverflowList/OverflowList.tsx
|
|
10432
|
-
var
|
|
10433
|
-
function
|
|
10484
|
+
var Wh = typeof document > "u" ? Y : Wl;
|
|
10485
|
+
function Gh({ classes: t, items: r, renderItem: i, renderOverflow: a, maxVisible: o, maxRows: s = 1, collapseFrom: c = "end", label: l, overflowTitle: u, className: d, ...f }) {
|
|
10434
10486
|
let p = n("overflowList", ia, t), m = e(), h = Math.min(r.length, o ?? Infinity), [g, _] = Z(null), v = Math.min(g ?? h, r.length), y = r.length - v, b = (e) => c === "start" ? e < y : e >= v, x = p({ wrap: s > 1 ? "rows" : "single" }), [S, C] = Z(null), w = Bl(() => {
|
|
10435
10487
|
if (!S) return;
|
|
10436
10488
|
let e = [...S.children], t = getComputedStyle(S);
|
|
@@ -10449,7 +10501,7 @@ function Wh({ classes: t, items: r, renderItem: i, renderOverflow: a, maxVisible
|
|
|
10449
10501
|
s,
|
|
10450
10502
|
c
|
|
10451
10503
|
]);
|
|
10452
|
-
|
|
10504
|
+
Wh(() => {
|
|
10453
10505
|
if (!S) return;
|
|
10454
10506
|
let e = requestAnimationFrame(w);
|
|
10455
10507
|
if (typeof ResizeObserver > "u") return () => cancelAnimationFrame(e);
|
|
@@ -10468,16 +10520,16 @@ function Wh({ classes: t, items: r, renderItem: i, renderOverflow: a, maxVisible
|
|
|
10468
10520
|
})).filter((e) => b(e.index)), E = y > 0 && /* @__PURE__ */ Q("li", {
|
|
10469
10521
|
className: x.item(),
|
|
10470
10522
|
"data-more": "",
|
|
10471
|
-
children: /* @__PURE__ */ $(
|
|
10523
|
+
children: /* @__PURE__ */ $(cf, {
|
|
10472
10524
|
placement: c === "start" ? "bottom-start" : "bottom-end",
|
|
10473
|
-
children: [/* @__PURE__ */ Q(
|
|
10525
|
+
children: [/* @__PURE__ */ Q(lf, { children: /* @__PURE__ */ $("button", {
|
|
10474
10526
|
type: "button",
|
|
10475
10527
|
className: x.more(),
|
|
10476
10528
|
children: [`+${y} `, /* @__PURE__ */ Q("span", {
|
|
10477
10529
|
className: qs(),
|
|
10478
10530
|
children: m.overflowList.more
|
|
10479
10531
|
})]
|
|
10480
|
-
}) }), /* @__PURE__ */ Q(
|
|
10532
|
+
}) }), /* @__PURE__ */ Q(df, {
|
|
10481
10533
|
title: u ?? m.overflowList.title,
|
|
10482
10534
|
children: a ? a(T.map((e) => e.item)) : /* @__PURE__ */ Q("ul", {
|
|
10483
10535
|
className: x.rest(),
|
|
@@ -10509,7 +10561,7 @@ function Wh({ classes: t, items: r, renderItem: i, renderOverflow: a, maxVisible
|
|
|
10509
10561
|
}
|
|
10510
10562
|
//#endregion
|
|
10511
10563
|
//#region src/components/SelectionCard/SelectionCard.tsx
|
|
10512
|
-
function
|
|
10564
|
+
function Kh({ classes: e, title: t, description: r, icon: i, price: a, value: o, checked: s, defaultChecked: c, onCheckedChange: l, disabled: u, invalid: d, required: f, name: p, id: m, className: h, style: g, children: _, ...v }) {
|
|
10513
10565
|
let y = n("selectionCard", xo, e)({ type: "checkbox" }), b = Hl(), x = eu(), S = [r && `${b}description`, a && `${b}price`].filter(Boolean).join(" ") || void 0;
|
|
10514
10566
|
return /* @__PURE__ */ $(tu.Root, {
|
|
10515
10567
|
className: y.base({ class: h }),
|
|
@@ -10570,7 +10622,7 @@ function Gh({ classes: e, title: t, description: r, icon: i, price: a, value: o,
|
|
|
10570
10622
|
]
|
|
10571
10623
|
});
|
|
10572
10624
|
}
|
|
10573
|
-
function
|
|
10625
|
+
function qh({ classes: e, title: t, description: r, icon: i, price: a, value: o, disabled: s, className: c, children: l, ...u }) {
|
|
10574
10626
|
let d = n("selectionCard", xo, e)({ type: "radio" }), f = Hl(), p = [r && `${f}description`, a && `${f}price`].filter(Boolean).join(" ") || void 0;
|
|
10575
10627
|
return /* @__PURE__ */ $(ru.Item, {
|
|
10576
10628
|
...u,
|
|
@@ -10614,7 +10666,7 @@ function Kh({ classes: e, title: t, description: r, icon: i, price: a, value: o,
|
|
|
10614
10666
|
}
|
|
10615
10667
|
//#endregion
|
|
10616
10668
|
//#region src/components/CheckboxGroup/CheckboxGroup.tsx
|
|
10617
|
-
function
|
|
10669
|
+
function Jh({ classes: t, value: r, defaultValue: i, onValueChange: a, label: o, helperText: s, error: c, invalid: l, required: u, disabled: d, readOnly: f, name: p, max: m, orientation: h = "vertical", columns: g, className: _, children: v, ...y }) {
|
|
10618
10670
|
let b = n("checkboxGroup", _t, t), x = e(), S = Hl(), [C, w] = Z(i ?? []), T = r ?? C, E = l || !!c || void 0, D = m !== void 0 && T.length >= m, O = b({
|
|
10619
10671
|
orientation: h,
|
|
10620
10672
|
grid: g !== void 0
|
|
@@ -10669,9 +10721,9 @@ function qh({ classes: t, value: r, defaultValue: i, onValueChange: a, label: o,
|
|
|
10669
10721
|
}
|
|
10670
10722
|
//#endregion
|
|
10671
10723
|
//#region src/components/SwitchGroup/SwitchGroup.tsx
|
|
10672
|
-
function
|
|
10724
|
+
function Yh({ classes: t, value: r, defaultValue: i, onValueChange: a, label: o, helperText: s, error: c, invalid: l, required: u, disabled: d, readOnly: f, name: p, max: m, className: h, children: g, ..._ }) {
|
|
10673
10725
|
let v = n("checkboxGroup", _t, t), y = e(), b = Hl(), [x, S] = Z(i ?? []), C = r ?? x, w = l || !!c || void 0, T = m !== void 0 && C.length >= m, E = v({ orientation: "vertical" }), D = [s && `${b}help`, c && `${b}error`].filter(Boolean).join(" ") || void 0;
|
|
10674
|
-
return /* @__PURE__ */ Q(
|
|
10726
|
+
return /* @__PURE__ */ Q(Dd, {
|
|
10675
10727
|
value: {
|
|
10676
10728
|
isChecked: (e) => C.includes(e),
|
|
10677
10729
|
setChecked: (e, t) => {
|
|
@@ -10728,7 +10780,7 @@ function Jh({ classes: t, value: r, defaultValue: i, onValueChange: a, label: o,
|
|
|
10728
10780
|
}
|
|
10729
10781
|
//#endregion
|
|
10730
10782
|
//#region src/components/VisuallyHidden/VisuallyHidden.tsx
|
|
10731
|
-
function
|
|
10783
|
+
function Xh({ classes: e, as: t = "span", focusable: r, className: i, ...a }) {
|
|
10732
10784
|
let o = n("visuallyHidden", qs, e);
|
|
10733
10785
|
return /* @__PURE__ */ Q(t, {
|
|
10734
10786
|
...a,
|
|
@@ -10740,7 +10792,7 @@ function Yh({ classes: e, as: t = "span", focusable: r, className: i, ...a }) {
|
|
|
10740
10792
|
}
|
|
10741
10793
|
//#endregion
|
|
10742
10794
|
//#region src/components/LiveAnnouncer/LiveAnnouncer.tsx
|
|
10743
|
-
function
|
|
10795
|
+
function Zh({ classes: e, children: t }) {
|
|
10744
10796
|
let r = n("liveAnnouncer", xi, e), i = X(null), a = X(null);
|
|
10745
10797
|
return Y(() => {
|
|
10746
10798
|
if (i.current && a.current) return Pe.attach({
|
|
@@ -10765,8 +10817,8 @@ function Xh({ classes: e, children: t }) {
|
|
|
10765
10817
|
}
|
|
10766
10818
|
//#endregion
|
|
10767
10819
|
//#region src/components/LandmarkNavigation/LandmarkNavigation.tsx
|
|
10768
|
-
function
|
|
10769
|
-
return
|
|
10820
|
+
function Qh({ selector: e, keyName: t, disabled: n, children: r }) {
|
|
10821
|
+
return tm({
|
|
10770
10822
|
selector: e,
|
|
10771
10823
|
key: t,
|
|
10772
10824
|
enabled: !n
|
|
@@ -10774,16 +10826,16 @@ function Zh({ selector: e, keyName: t, disabled: n, children: r }) {
|
|
|
10774
10826
|
}
|
|
10775
10827
|
//#endregion
|
|
10776
10828
|
//#region src/components/HotkeysDialog/HotkeysDialog.tsx
|
|
10777
|
-
function
|
|
10829
|
+
function $h({ classes: t, open: r, onOpenChange: i, hotkey: a = "?", title: o, registry: s = jr }) {
|
|
10778
10830
|
let c = n("hotkeysDialog", Mr, t), l = e(), u = c(), [d, f] = Z(!1), p = r ?? d, m = (e) => {
|
|
10779
10831
|
f(e), i?.(e);
|
|
10780
10832
|
};
|
|
10781
|
-
|
|
10833
|
+
Yp(a ? [[a, () => m(!p)]] : [], {
|
|
10782
10834
|
registry: s,
|
|
10783
10835
|
description: l.hotkeys.open,
|
|
10784
10836
|
group: l.hotkeys.general
|
|
10785
10837
|
});
|
|
10786
|
-
let h =
|
|
10838
|
+
let h = Qp(s), g = /* @__PURE__ */ new Map();
|
|
10787
10839
|
for (let e of h) {
|
|
10788
10840
|
let t = e.group ?? l.hotkeys.general;
|
|
10789
10841
|
g.set(t, [...g.get(t) ?? [], e]);
|
|
@@ -10810,7 +10862,7 @@ function Qh({ classes: t, open: r, onOpenChange: i, hotkey: a = "?", title: o, r
|
|
|
10810
10862
|
children: e.description
|
|
10811
10863
|
}), /* @__PURE__ */ Q("dd", {
|
|
10812
10864
|
className: u.keys(),
|
|
10813
|
-
children: /* @__PURE__ */ Q(
|
|
10865
|
+
children: /* @__PURE__ */ Q(nm, { hotkey: e.hotkey })
|
|
10814
10866
|
})]
|
|
10815
10867
|
}, e.id))
|
|
10816
10868
|
})]
|
|
@@ -10824,7 +10876,7 @@ function Qh({ classes: t, open: r, onOpenChange: i, hotkey: a = "?", title: o, r
|
|
|
10824
10876
|
}
|
|
10825
10877
|
//#endregion
|
|
10826
10878
|
//#region src/components/Format/Format.tsx
|
|
10827
|
-
function
|
|
10879
|
+
function eg({ classes: e, value: r, now: i, live: a, numeric: o, formatStyle: s, showTitle: c = !0, locale: l, className: u, ...d }) {
|
|
10828
10880
|
let f = n("formatValue", ar, e), p = t(), m = l ?? p.locale, [h] = Z(() => i ?? Date.now()), [g, _] = Z(null), v = g ?? i ?? h;
|
|
10829
10881
|
return Y(() => {
|
|
10830
10882
|
if (!a) return;
|
|
@@ -10846,7 +10898,7 @@ function $h({ classes: e, value: r, now: i, live: a, numeric: o, formatStyle: s,
|
|
|
10846
10898
|
})
|
|
10847
10899
|
});
|
|
10848
10900
|
}
|
|
10849
|
-
function
|
|
10901
|
+
function tg({ classes: e, value: r, formatOptions: i, timeZone: a, locale: o, className: s, ...c }) {
|
|
10850
10902
|
let l = n("formatValue", ar, e), u = t();
|
|
10851
10903
|
return /* @__PURE__ */ Q("time", {
|
|
10852
10904
|
...c,
|
|
@@ -10858,7 +10910,7 @@ function eg({ classes: e, value: r, formatOptions: i, timeZone: a, locale: o, cl
|
|
|
10858
10910
|
})
|
|
10859
10911
|
});
|
|
10860
10912
|
}
|
|
10861
|
-
function
|
|
10913
|
+
function ng({ classes: e, value: r, formatOptions: i, timeZone: a, locale: o, className: s, ...c }) {
|
|
10862
10914
|
let l = n("formatValue", ar, e), u = t();
|
|
10863
10915
|
return /* @__PURE__ */ Q("time", {
|
|
10864
10916
|
...c,
|
|
@@ -10870,7 +10922,7 @@ function tg({ classes: e, value: r, formatOptions: i, timeZone: a, locale: o, cl
|
|
|
10870
10922
|
})
|
|
10871
10923
|
});
|
|
10872
10924
|
}
|
|
10873
|
-
function
|
|
10925
|
+
function rg({ classes: e, value: r, base: i, maximumFractionDigits: a, unitDisplay: o, locale: s, className: c, ...l }) {
|
|
10874
10926
|
let u = n("formatValue", ar, e), d = t();
|
|
10875
10927
|
return /* @__PURE__ */ Q("span", {
|
|
10876
10928
|
...l,
|
|
@@ -10882,7 +10934,7 @@ function ng({ classes: e, value: r, base: i, maximumFractionDigits: a, unitDispl
|
|
|
10882
10934
|
})
|
|
10883
10935
|
});
|
|
10884
10936
|
}
|
|
10885
|
-
function
|
|
10937
|
+
function ig({ classes: e, items: r, type: i, formatStyle: a, locale: o, className: s, ...c }) {
|
|
10886
10938
|
let l = n("formatValue", ar, e), u = t();
|
|
10887
10939
|
return /* @__PURE__ */ Q("span", {
|
|
10888
10940
|
...c,
|
|
@@ -10895,13 +10947,13 @@ function rg({ classes: e, items: r, type: i, formatStyle: a, locale: o, classNam
|
|
|
10895
10947
|
}
|
|
10896
10948
|
//#endregion
|
|
10897
10949
|
//#region src/components/Persona/Persona.tsx
|
|
10898
|
-
var
|
|
10950
|
+
var ag = {
|
|
10899
10951
|
online: "success",
|
|
10900
10952
|
away: "warn",
|
|
10901
10953
|
busy: "danger",
|
|
10902
10954
|
offline: "neutral"
|
|
10903
10955
|
};
|
|
10904
|
-
function
|
|
10956
|
+
function og({ classes: t, name: r, description: i, src: a, presence: o, presenceLabel: s, size: c = "md", avatarColor: l = "auto", href: u, as: d = "div", className: f, ...p }) {
|
|
10905
10957
|
let m = n("persona", xa, t), h = e(), g = u ? "a" : d, _ = m({
|
|
10906
10958
|
size: c,
|
|
10907
10959
|
interactive: g !== "div"
|
|
@@ -10932,7 +10984,7 @@ function ag({ classes: t, name: r, description: i, src: a, presence: o, presence
|
|
|
10932
10984
|
children: i
|
|
10933
10985
|
}),
|
|
10934
10986
|
o && /* @__PURE__ */ Q(vd, {
|
|
10935
|
-
status:
|
|
10987
|
+
status: ag[o],
|
|
10936
10988
|
className: _.presence(),
|
|
10937
10989
|
children: s ?? h.persona.presence[o]
|
|
10938
10990
|
})
|
|
@@ -10942,7 +10994,7 @@ function ag({ classes: t, name: r, description: i, src: a, presence: o, presence
|
|
|
10942
10994
|
}
|
|
10943
10995
|
//#endregion
|
|
10944
10996
|
//#region src/components/InlineEdit/InlineEdit.tsx
|
|
10945
|
-
function
|
|
10997
|
+
function sg({ classes: t, value: r, defaultValue: i, onValueChange: a, label: o, mode: s = "inline", placeholder: c, format: l, validate: u, editing: d, onEditingChange: f, onSave: p, onCancel: m, disabled: h, saveLabel: g, cancelLabel: _, renderEditor: v, renderDisplay: y, className: b, ...x }) {
|
|
10946
10998
|
let S = n("inlineEdit", Vr, t), C = e().inlineEdit, w = S(), T = Hl(), [E, D] = Z(i), O = r === void 0 ? E : r, [k, A] = Z(!1), N = d ?? k, [P, F] = Z(O), [I, L] = Z(null), [R, z] = Z(!1), B = X(null), V = X(null), [H, ee] = Z(null), U = l ? l(O) : O == null ? "" : String(O), W = I ? `${T}error` : void 0;
|
|
10947
10999
|
Y(() => {
|
|
10948
11000
|
H && (H.to === "editor" ? B.current?.querySelector("input, textarea, select, [contenteditable], button, [tabindex]")?.focus() : s === "inline" && setTimeout(() => V.current?.focus()));
|
|
@@ -11047,13 +11099,13 @@ function og({ classes: t, value: r, defaultValue: i, onValueChange: a, label: o,
|
|
|
11047
11099
|
return /* @__PURE__ */ Q("div", {
|
|
11048
11100
|
...x,
|
|
11049
11101
|
className: w.base({ class: b }),
|
|
11050
|
-
children: s === "popover" ? /* @__PURE__ */ $(
|
|
11102
|
+
children: s === "popover" ? /* @__PURE__ */ $(cf, {
|
|
11051
11103
|
open: N,
|
|
11052
11104
|
placement: "bottom-start",
|
|
11053
11105
|
onOpenChange: (e) => {
|
|
11054
11106
|
e ? G(!0) : N && K();
|
|
11055
11107
|
},
|
|
11056
|
-
children: [/* @__PURE__ */ Q(
|
|
11108
|
+
children: [/* @__PURE__ */ Q(lf, { children: q }), /* @__PURE__ */ Q(df, {
|
|
11057
11109
|
title: C.title(o),
|
|
11058
11110
|
children: ie
|
|
11059
11111
|
})]
|
|
@@ -11062,7 +11114,7 @@ function og({ classes: t, value: r, defaultValue: i, onValueChange: a, label: o,
|
|
|
11062
11114
|
}
|
|
11063
11115
|
//#endregion
|
|
11064
11116
|
//#region src/components/SearchField/SearchField.tsx
|
|
11065
|
-
function
|
|
11117
|
+
function cg({ classes: t, value: r, defaultValue: i = "", onValueChange: a, onSubmit: o, onClear: s, label: c, placeholder: l, loading: u, scopes: d, scope: f, onScopeChange: p, scopeLabel: m, suggestions: h, clearLabel: g, size: _, disabled: v, name: y = "q", className: b, ...x }) {
|
|
11066
11118
|
let S = n("searchField", _o, t), C = e().searchField, w = S(), [T, E] = Z(i), D = r ?? T, O = (e) => {
|
|
11067
11119
|
E(e), a?.(e);
|
|
11068
11120
|
}, k = c ?? C.label, A = (e) => {
|
|
@@ -11078,7 +11130,7 @@ function sg({ classes: t, value: r, defaultValue: i = "", onValueChange: a, onSu
|
|
|
11078
11130
|
e.preventDefault(), o?.(D, f);
|
|
11079
11131
|
},
|
|
11080
11132
|
onKeyDown: A,
|
|
11081
|
-
children: [!!d?.length && /* @__PURE__ */ Q(
|
|
11133
|
+
children: [!!d?.length && /* @__PURE__ */ Q(lm, {
|
|
11082
11134
|
items: d,
|
|
11083
11135
|
value: f,
|
|
11084
11136
|
size: _,
|
|
@@ -11086,7 +11138,7 @@ function sg({ classes: t, value: r, defaultValue: i = "", onValueChange: a, onSu
|
|
|
11086
11138
|
"aria-label": m ?? C.scope,
|
|
11087
11139
|
className: w.scope(),
|
|
11088
11140
|
onValueChange: p
|
|
11089
|
-
}), h ? /* @__PURE__ */ Q(
|
|
11141
|
+
}), h ? /* @__PURE__ */ Q(Pm, {
|
|
11090
11142
|
items: h,
|
|
11091
11143
|
value: D,
|
|
11092
11144
|
onValueChange: O,
|
|
@@ -11119,19 +11171,19 @@ function sg({ classes: t, value: r, defaultValue: i = "", onValueChange: a, onSu
|
|
|
11119
11171
|
}
|
|
11120
11172
|
//#endregion
|
|
11121
11173
|
//#region src/hooks/media.ts
|
|
11122
|
-
function
|
|
11174
|
+
function lg(e, t = {}) {
|
|
11123
11175
|
let n = Bl((t) => Zs(e, t), [e]), r = t.initialValue ?? !1;
|
|
11124
11176
|
return Kl(n, () => Ii(e), () => r);
|
|
11125
11177
|
}
|
|
11126
|
-
function
|
|
11127
|
-
return
|
|
11178
|
+
function ug() {
|
|
11179
|
+
return lg("(prefers-reduced-motion: reduce)");
|
|
11128
11180
|
}
|
|
11129
|
-
function
|
|
11130
|
-
return
|
|
11181
|
+
function dg(e = "light") {
|
|
11182
|
+
return lg("(prefers-color-scheme: dark)", { initialValue: e === "dark" }) ? "dark" : "light";
|
|
11131
11183
|
}
|
|
11132
11184
|
//#endregion
|
|
11133
11185
|
//#region src/components/FilterPanel/FilterPanel.tsx
|
|
11134
|
-
function
|
|
11186
|
+
function fg({ classes: t, filters: r, label: i, resetLabel: a, onRemove: o, onClear: s, className: c, ...l }) {
|
|
11135
11187
|
let u = n("filterChips", An, t), d = e().filterChips, f = u(), p = X(null), m = X(null), h = r.length;
|
|
11136
11188
|
return Y(() => {
|
|
11137
11189
|
let e = m.current;
|
|
@@ -11173,8 +11225,8 @@ function dg({ classes: t, filters: r, label: i, resetLabel: a, onRemove: o, onCl
|
|
|
11173
11225
|
})]
|
|
11174
11226
|
}) : null;
|
|
11175
11227
|
}
|
|
11176
|
-
function
|
|
11177
|
-
let _ = n("filterPanel", Mn, t), v = e().filterPanel, y = _(), b = Hl(), [x, S] = Z(o), C = a ?? x, w =
|
|
11228
|
+
function pg({ classes: t, filters: r = [], count: i, open: a, defaultOpen: o = !1, onOpenChange: s, label: c, display: l = "inline", drawerQuery: u = "(max-width: 767px)", onRemove: d, onClear: f, actions: p, className: m, children: h, ...g }) {
|
|
11229
|
+
let _ = n("filterPanel", Mn, t), v = e().filterPanel, y = _(), b = Hl(), [x, S] = Z(o), C = a ?? x, w = lg(u), T = l === "drawer" || l === "auto" && w, E = i ?? r.length, D = c ?? v.label, O = qs(), k = (e) => {
|
|
11178
11230
|
S(e), s?.(e);
|
|
11179
11231
|
}, [A, j] = Z(""), [M, N] = Z(E);
|
|
11180
11232
|
return M !== E && (N(E), j(v.status(E))), /* @__PURE__ */ $("section", {
|
|
@@ -11212,7 +11264,7 @@ function fg({ classes: t, filters: r = [], count: i, open: a, defaultOpen: o = !
|
|
|
11212
11264
|
] })
|
|
11213
11265
|
]
|
|
11214
11266
|
}),
|
|
11215
|
-
/* @__PURE__ */ Q(
|
|
11267
|
+
/* @__PURE__ */ Q(fg, {
|
|
11216
11268
|
filters: r,
|
|
11217
11269
|
onRemove: d,
|
|
11218
11270
|
onClear: f
|
|
@@ -11223,15 +11275,15 @@ function fg({ classes: t, filters: r = [], count: i, open: a, defaultOpen: o = !
|
|
|
11223
11275
|
})
|
|
11224
11276
|
]
|
|
11225
11277
|
}),
|
|
11226
|
-
T ? /* @__PURE__ */ Q(
|
|
11278
|
+
T ? /* @__PURE__ */ Q(nf, {
|
|
11227
11279
|
open: C,
|
|
11228
11280
|
onOpenChange: k,
|
|
11229
|
-
children: /* @__PURE__ */ Q(
|
|
11281
|
+
children: /* @__PURE__ */ Q(of, {
|
|
11230
11282
|
title: D,
|
|
11231
11283
|
placement: "right",
|
|
11232
11284
|
children: h
|
|
11233
11285
|
})
|
|
11234
|
-
}) : /* @__PURE__ */ Q(
|
|
11286
|
+
}) : /* @__PURE__ */ Q(Sh, {
|
|
11235
11287
|
id: `${b}content`,
|
|
11236
11288
|
open: C,
|
|
11237
11289
|
children: /* @__PURE__ */ Q("div", {
|
|
@@ -11249,7 +11301,7 @@ function fg({ classes: t, filters: r = [], count: i, open: a, defaultOpen: o = !
|
|
|
11249
11301
|
}
|
|
11250
11302
|
//#endregion
|
|
11251
11303
|
//#region src/components/Wizard/Wizard.tsx
|
|
11252
|
-
function
|
|
11304
|
+
function mg({ classes: t, steps: r, step: i, defaultStep: a = 0, onStepChange: o, onComplete: s, renderStep: c, summary: l, summaryLabel: u, completed: d, orientation: f = "horizontal", className: p, ...m }) {
|
|
11253
11305
|
let h = n("wizard", ac, t), g = e(), _ = h(), [v, y] = Z(a), b = i ?? v, [x, S] = Z(null), [C, w] = Z(null), T = X(null), E = X(!1);
|
|
11254
11306
|
Y(() => {
|
|
11255
11307
|
E.current && (E.current = !1, T.current?.querySelector("[role=tabpanel]:not([hidden]) [aria-invalid=true]")?.focus());
|
|
@@ -11288,7 +11340,7 @@ function pg({ classes: t, steps: r, step: i, defaultStep: a = 0, onStepChange: o
|
|
|
11288
11340
|
...m,
|
|
11289
11341
|
ref: T,
|
|
11290
11342
|
className: _.base({ class: p }),
|
|
11291
|
-
children: /* @__PURE__ */ Q(
|
|
11343
|
+
children: /* @__PURE__ */ Q(Xf, {
|
|
11292
11344
|
items: D,
|
|
11293
11345
|
step: b,
|
|
11294
11346
|
linear: !0,
|
|
@@ -11308,7 +11360,7 @@ function pg({ classes: t, steps: r, step: i, defaultStep: a = 0, onStepChange: o
|
|
|
11308
11360
|
}
|
|
11309
11361
|
//#endregion
|
|
11310
11362
|
//#region src/components/AiLabel/AiLabel.tsx
|
|
11311
|
-
function
|
|
11363
|
+
function hg({ classes: t, label: r, explanation: i, size: a = "md", className: o, children: s, ...c }) {
|
|
11312
11364
|
let l = n("aiLabel", De, t), u = e(), d = l({ size: a });
|
|
11313
11365
|
return /* @__PURE__ */ $("span", {
|
|
11314
11366
|
...c,
|
|
@@ -11327,7 +11379,7 @@ function mg({ classes: t, label: r, explanation: i, size: a = "md", className: o
|
|
|
11327
11379
|
}
|
|
11328
11380
|
//#endregion
|
|
11329
11381
|
//#region src/components/ConfigProvider/ConfigProvider.tsx
|
|
11330
|
-
function
|
|
11382
|
+
function gg({ classes: e, locale: t, translations: a, recipes: o, size: s, theme: c, mode: l, dir: u, className: d, children: f, ...p }) {
|
|
11331
11383
|
let m = n("configProvider", Pt, e), h = Gl(() => {
|
|
11332
11384
|
let e = s ? No(s) : {}, t = { ...e };
|
|
11333
11385
|
for (let [n, r] of Object.entries(o ?? {})) t[n] = e[n] ? {
|
|
@@ -11357,7 +11409,7 @@ function hg({ classes: e, locale: t, translations: a, recipes: o, size: s, theme
|
|
|
11357
11409
|
}
|
|
11358
11410
|
//#endregion
|
|
11359
11411
|
//#region src/components/QrCode/QrCode.tsx
|
|
11360
|
-
function
|
|
11412
|
+
function _g({ classes: t, value: r, size: i = 160, errorCorrection: a, logo: o, label: s, showValue: c, download: l, fileName: u = "qr-code", className: d, ...f }) {
|
|
11361
11413
|
let p = n("qrCode", Ra, t)(), m = e().qrCode, h = Yu({
|
|
11362
11414
|
value: r,
|
|
11363
11415
|
encoding: { ecc: a ?? (o ? "H" : "M") }
|
|
@@ -11424,7 +11476,7 @@ function gg({ classes: t, value: r, size: i = 160, errorCorrection: a, logo: o,
|
|
|
11424
11476
|
}
|
|
11425
11477
|
//#endregion
|
|
11426
11478
|
//#region src/components/SignaturePad/SignaturePad.tsx
|
|
11427
|
-
function
|
|
11479
|
+
function vg({ classes: t, value: r, onValueChange: i, paths: a, defaultPaths: o, onPathsChange: s, format: c = "png", label: l, color: u = "#000000", strokeWidth: d = 2, typedAlternative: f, typedName: p, onTypedNameChange: m, disabled: h, readOnly: g, invalid: _, required: v, name: y, className: b, style: x }) {
|
|
11428
11480
|
let S = n("signaturePad", jo, t)(), C = eu(), w = e().signaturePad, T = Hl(), E = `${T}label`, [O, k] = Z(o ?? []), A = a ?? O, [j, N] = Z(""), P = p ?? j, [F, I] = Z(!1), [L, R] = Z(r ?? ""), z = r ?? L, B = h ?? C?.disabled, V = g ?? C?.readOnly, H = _ ?? C?.invalid, ee = l ?? w.label, U = c === "svg" ? "image/svg+xml" : "image/png", W = X(!1), G = (e) => {
|
|
11429
11481
|
R(e), i?.(e);
|
|
11430
11482
|
}, te = (e, t = !0) => {
|
|
@@ -11541,13 +11593,13 @@ function _g({ classes: t, value: r, onValueChange: i, paths: a, defaultPaths: o,
|
|
|
11541
11593
|
}
|
|
11542
11594
|
//#endregion
|
|
11543
11595
|
//#region src/components/ImageCropper/ImageCropper.tsx
|
|
11544
|
-
var
|
|
11596
|
+
var yg = [
|
|
11545
11597
|
"nw",
|
|
11546
11598
|
"ne",
|
|
11547
11599
|
"sw",
|
|
11548
11600
|
"se"
|
|
11549
11601
|
];
|
|
11550
|
-
function
|
|
11602
|
+
function bg({ classes: t, src: r, aspectRatio: i, cropShape: a = "rectangle", zoom: o, onZoomChange: s, rotation: c, onRotationChange: l, onCropChange: u, minZoom: d = 1, maxZoom: f = 5, toolbar: p = !0, className: m, ref: h, ...g }) {
|
|
11551
11603
|
let _ = n("imageCropper", Fr, t)(), v = e().imageCropper, y = $u({
|
|
11552
11604
|
aspectRatio: i,
|
|
11553
11605
|
cropShape: a,
|
|
@@ -11593,7 +11645,7 @@ function yg({ classes: t, src: r, aspectRatio: i, cropShape: a = "rectangle", zo
|
|
|
11593
11645
|
}), /* @__PURE__ */ $(Qu.Selection, {
|
|
11594
11646
|
className: _.selection(),
|
|
11595
11647
|
children: [
|
|
11596
|
-
|
|
11648
|
+
yg.map((e) => /* @__PURE__ */ Q(Qu.Handle, {
|
|
11597
11649
|
position: e,
|
|
11598
11650
|
className: _.handle()
|
|
11599
11651
|
}, e)),
|
|
@@ -11666,7 +11718,7 @@ function yg({ classes: t, src: r, aspectRatio: i, cropShape: a = "rectangle", zo
|
|
|
11666
11718
|
}
|
|
11667
11719
|
//#endregion
|
|
11668
11720
|
//#region src/components/FloatingPanel/FloatingPanel.tsx
|
|
11669
|
-
var
|
|
11721
|
+
var xg = [
|
|
11670
11722
|
"n",
|
|
11671
11723
|
"e",
|
|
11672
11724
|
"s",
|
|
@@ -11676,14 +11728,14 @@ var bg = [
|
|
|
11676
11728
|
"sw",
|
|
11677
11729
|
"nw"
|
|
11678
11730
|
];
|
|
11679
|
-
function
|
|
11731
|
+
function Sg({ classes: t, title: r, open: i, defaultOpen: a = !1, onOpenChange: o, defaultSize: s = {
|
|
11680
11732
|
width: 360,
|
|
11681
11733
|
height: 280
|
|
11682
11734
|
}, defaultPosition: c, minSize: l = {
|
|
11683
11735
|
width: 240,
|
|
11684
11736
|
height: 120
|
|
11685
11737
|
}, maxSize: u, resizable: d = !0, draggable: f = !0, storageKey: p, closeOnEscape: m = !0, keyboardStep: h = 10, trigger: g, className: _, children: v, ...y }) {
|
|
11686
|
-
let b = n("floatingPanel", In, t)(), x = e().floatingPanel, S = Hl(), C = `${S}hint`, [w, T] = Z(a), E = Bp(
|
|
11738
|
+
let b = n("floatingPanel", In, t)(), x = e().floatingPanel, S = Hl(), C = `${S}hint`, [w, T] = Z(a), E = Vp(Bp(p)), [D, O] = Z(void 0), [k, A] = Z(void 0), j = D ?? E?.position ?? c, M = k ?? E?.size ?? s, N = (e) => {
|
|
11687
11739
|
let t = e.position ?? j;
|
|
11688
11740
|
p && t && oc("local", p, {
|
|
11689
11741
|
position: t,
|
|
@@ -11789,7 +11841,7 @@ function xg({ classes: t, title: r, open: i, defaultOpen: a = !1, onOpenChange:
|
|
|
11789
11841
|
className: b.hint(),
|
|
11790
11842
|
children: x.hint
|
|
11791
11843
|
}),
|
|
11792
|
-
d &&
|
|
11844
|
+
d && xg.map((e) => /* @__PURE__ */ Q(ed.ResizeTrigger, {
|
|
11793
11845
|
axis: e,
|
|
11794
11846
|
className: b.resize()
|
|
11795
11847
|
}, e))
|
|
@@ -11800,8 +11852,8 @@ function xg({ classes: t, title: r, open: i, defaultOpen: a = !1, onOpenChange:
|
|
|
11800
11852
|
}
|
|
11801
11853
|
//#endregion
|
|
11802
11854
|
//#region src/components/JsonViewer/JsonViewer.tsx
|
|
11803
|
-
var
|
|
11804
|
-
function
|
|
11855
|
+
var Cg = Rl(null);
|
|
11856
|
+
function wg({ classes: t, data: r, label: i, defaultExpandedDepth: a = 1, search: o, copyable: s = !0, showTypes: c, onCopy: l, "aria-label": u, className: d, style: f }) {
|
|
11805
11857
|
let p = n("jsonViewer", si, t)(), m = e().jsonViewer, h = Gl(() => ai(r), [r]), g = Gl(() => h.children ?? [h], [h]), _ = Gl(() => Au({
|
|
11806
11858
|
nodeToValue: (e) => e.id,
|
|
11807
11859
|
nodeToString: (e) => String(e.key ?? ""),
|
|
@@ -11859,9 +11911,9 @@ function Cg({ classes: t, data: r, label: i, defaultExpandedDepth: a = 1, search
|
|
|
11859
11911
|
}),
|
|
11860
11912
|
/* @__PURE__ */ Q(ku.Tree, {
|
|
11861
11913
|
className: p.tree(),
|
|
11862
|
-
children: /* @__PURE__ */ Q(
|
|
11914
|
+
children: /* @__PURE__ */ Q(Cg.Provider, {
|
|
11863
11915
|
value: A,
|
|
11864
|
-
children: g.map((e, t) => /* @__PURE__ */ Q(
|
|
11916
|
+
children: g.map((e, t) => /* @__PURE__ */ Q(Tg, {
|
|
11865
11917
|
node: e,
|
|
11866
11918
|
indexPath: [t]
|
|
11867
11919
|
}, e.id))
|
|
@@ -11875,8 +11927,8 @@ function Cg({ classes: t, data: r, label: i, defaultExpandedDepth: a = 1, search
|
|
|
11875
11927
|
]
|
|
11876
11928
|
});
|
|
11877
11929
|
}
|
|
11878
|
-
function
|
|
11879
|
-
let i = Vl(
|
|
11930
|
+
function Tg({ node: t, indexPath: r }) {
|
|
11931
|
+
let i = Vl(Cg), a = n("jsonViewer", si, i.classes), o = e().jsonViewer, s = t.type, c = a({
|
|
11880
11932
|
valueType: s === "string" || s === "number" || s === "boolean" ? s : s === "null" || s === "undefined" ? "nothing" : "nested",
|
|
11881
11933
|
showTypes: i.showTypes
|
|
11882
11934
|
}), l = t.key === null ? "" : String(t.key), u = i.matches.has(t.id), d = t.children?.length ?? 0, f = s === "array" ? `[ ${o.items(d)} ]` : `{ ${o.keys(d)} }`, p = (e) => u ? /* @__PURE__ */ Q(U, {
|
|
@@ -11933,7 +11985,7 @@ function wg({ node: t, indexPath: r }) {
|
|
|
11933
11985
|
]
|
|
11934
11986
|
}), /* @__PURE__ */ Q(ku.BranchContent, {
|
|
11935
11987
|
className: c.group(),
|
|
11936
|
-
children: t.children.map((e, t) => /* @__PURE__ */ Q(
|
|
11988
|
+
children: t.children.map((e, t) => /* @__PURE__ */ Q(Tg, {
|
|
11937
11989
|
node: e,
|
|
11938
11990
|
indexPath: [...r, t]
|
|
11939
11991
|
}, e.id))
|
|
@@ -11965,7 +12017,7 @@ function wg({ node: t, indexPath: r }) {
|
|
|
11965
12017
|
}
|
|
11966
12018
|
//#endregion
|
|
11967
12019
|
//#region src/components/JsonInput/JsonInput.tsx
|
|
11968
|
-
function
|
|
12020
|
+
function Eg({ classes: t, value: r, defaultValue: i = "", onValueChange: a, onValueParse: o, indent: s = 2, formatButton: c = !0, formatOnBlur: l, invalid: u, rows: d = 8, disabled: f, readOnly: p, className: m, style: h, onBlur: g, ..._ }) {
|
|
11969
12021
|
let v = n("jsonInput", ii, t), y = eu(), b = e().jsonInput, x = `${Hl()}status`, [S, C] = Z(i), T = r ?? S, E = T.trim() ? gt(T) : void 0, O = E ? E.valid ? "valid" : "invalid" : "empty", k = v({ state: O }), A = E ? E.valid ? b.valid : E.line ? b.invalidAt(E.line, E.column ?? 1) : b.invalid : "", j = (e) => {
|
|
11970
12022
|
C(e), a?.(e);
|
|
11971
12023
|
let t = e.trim() ? gt(e) : void 0;
|
|
@@ -12021,7 +12073,7 @@ function Tg({ classes: t, value: r, defaultValue: i = "", onValueChange: a, onVa
|
|
|
12021
12073
|
}
|
|
12022
12074
|
//#endregion
|
|
12023
12075
|
//#region src/components/DownloadTrigger/DownloadTrigger.tsx
|
|
12024
|
-
function
|
|
12076
|
+
function Dg({ data: t, url: n, fileName: r, mimeType: i, onDownload: a, onError: o, onClick: s, variant: c = "outline", children: l, ...u }) {
|
|
12025
12077
|
let d = e().downloadTrigger, [f, p] = Z(!1), m = X(""), { download: h } = nd({
|
|
12026
12078
|
fileName: r,
|
|
12027
12079
|
mimeType: i ?? "text/plain",
|
|
@@ -12056,7 +12108,7 @@ function Eg({ data: t, url: n, fileName: r, mimeType: i, onDownload: a, onError:
|
|
|
12056
12108
|
}
|
|
12057
12109
|
//#endregion
|
|
12058
12110
|
//#region src/components/Marquee/Marquee.tsx
|
|
12059
|
-
function
|
|
12111
|
+
function Og({ classes: t, label: r, side: i = "start", speed: a = 50, spacing: o = "1rem", autoFill: s = !0, reverse: c, paused: l, onPausedChange: u, pauseOnHover: d = !0, pauseButton: f = !0, fade: p, className: m, children: h, onMouseEnter: g, onMouseLeave: _, onFocus: v, onBlur: y, ...b }) {
|
|
12060
12112
|
let x = n("marquee", Oi, t)(), S = e().marquee, [C, w] = Z(!1), [T, E] = Z(!1), [D, O] = Z(!1), k = l ?? C, A = k || d && (T || D), M = i === "start" || i === "end", N = () => {
|
|
12061
12113
|
w(!k), u?.(!k);
|
|
12062
12114
|
};
|
|
@@ -12112,7 +12164,7 @@ function Dg({ classes: t, label: r, side: i = "start", speed: a = 50, spacing: o
|
|
|
12112
12164
|
}
|
|
12113
12165
|
//#endregion
|
|
12114
12166
|
//#region src/components/AngleSlider/AngleSlider.tsx
|
|
12115
|
-
function
|
|
12167
|
+
function kg({ classes: t, value: r, defaultValue: i = 0, onValueChange: a, onValueChangeEnd: o, step: s = 1, label: c, marks: l, showValue: u = !0, formatValue: d, disabled: f, readOnly: p, invalid: m, name: h, "aria-label": g, id: _, className: v, style: y }) {
|
|
12116
12168
|
I("AngleSlider", _);
|
|
12117
12169
|
let b = n("angleSlider", Ae, t)(), x = eu(), S = e().angleSlider, [C, w] = Z(i), T = r ?? C, E = d ? d(T) : `${T}°`, D = d ? d(T) : S.value(T);
|
|
12118
12170
|
return /* @__PURE__ */ $(id.Root, {
|
|
@@ -12162,20 +12214,20 @@ function Og({ classes: t, value: r, defaultValue: i = 0, onValueChange: a, onVal
|
|
|
12162
12214
|
}
|
|
12163
12215
|
//#endregion
|
|
12164
12216
|
//#region src/components/Mentions/Mentions.tsx
|
|
12165
|
-
var
|
|
12217
|
+
var Ag = [
|
|
12166
12218
|
"ArrowLeft",
|
|
12167
12219
|
"ArrowRight",
|
|
12168
12220
|
"Home",
|
|
12169
12221
|
"End"
|
|
12170
|
-
],
|
|
12171
|
-
function
|
|
12222
|
+
], jg = (e) => typeof e == "object" && e ? e.value ?? e.id : e;
|
|
12223
|
+
function Mg({ classes: t, value: r, defaultValue: i = "", onValueChange: a, onMentionsChange: o, onSearch: s, loading: c = !1, items: l, dataSource: u, triggers: d, itemLabel: f, itemValue: p, limit: m = 8, placeholder: h, rows: g = 3, disabled: _, readOnly: v, invalid: y, required: b, name: x, renderItem: S, className: C, style: w, onKeyDown: T, onBlur: E, ...D }) {
|
|
12172
12224
|
let O = n("mentions", Bi, t)(), k = eu(), A = e(), j = Hl(), M = `${j}list`, N = `${j}hint`, P = X(null), F = X(null), I = X(null), z = d ?? [{
|
|
12173
12225
|
char: "@",
|
|
12174
12226
|
items: l,
|
|
12175
12227
|
dataSource: u
|
|
12176
12228
|
}], B = z.map((e) => e.char), [V, H] = Z(i), ee = r ?? V, U = ha(ee, B), [W, G] = Z(null), te = z.find((e) => e.char === W?.trigger), K = {
|
|
12177
12229
|
itemLabel: f,
|
|
12178
|
-
itemValue: p ??
|
|
12230
|
+
itemValue: p ?? jg
|
|
12179
12231
|
}, ne = R({
|
|
12180
12232
|
items: te?.items ?? [],
|
|
12181
12233
|
source: te?.dataSource,
|
|
@@ -12243,7 +12295,7 @@ function jg({ classes: t, value: r, defaultValue: i = "", onValueChange: a, onMe
|
|
|
12243
12295
|
onKeyDown: J,
|
|
12244
12296
|
onClick: _e,
|
|
12245
12297
|
onKeyUp: (e) => {
|
|
12246
|
-
|
|
12298
|
+
Ag.includes(e.key) && _e(e);
|
|
12247
12299
|
},
|
|
12248
12300
|
onBlur: (e) => {
|
|
12249
12301
|
G(null), E?.(e);
|
|
@@ -12303,7 +12355,7 @@ function jg({ classes: t, value: r, defaultValue: i = "", onValueChange: a, onMe
|
|
|
12303
12355
|
}
|
|
12304
12356
|
//#endregion
|
|
12305
12357
|
//#region src/components/PhoneInput/PhoneInput.tsx
|
|
12306
|
-
function
|
|
12358
|
+
function Ng({ classes: e, value: r, defaultValue: i = "", onValueChange: a, country: o, onCountryChange: s, defaultCountry: c = "DE", onValidChange: l, countries: u, countryLabel: d, placeholder: f, size: p, disabled: m, invalid: h, required: g, name: _, className: v, style: y, onBlur: b, ...x }) {
|
|
12307
12359
|
let S = n("phoneInput", wa, e)(), { locale: C, translations: w } = t(), T = u ?? Ca, E = Nn(c, T) ?? T[0], [D] = Z(() => ga(r ?? i, E, T)), [O, k] = Z(o ?? D.country.code), A = Nn(o ?? O, T) ?? E, [j, N] = Z(D.digits), [F, I] = Z(null), [L, R] = Z(r), [z, B] = Z(!1), V = X(null), H = X(null);
|
|
12308
12360
|
if (r !== void 0 && r !== L && r !== _s(j, A)) {
|
|
12309
12361
|
let e = ga(r, A, T);
|
|
@@ -12389,9 +12441,9 @@ function Mg({ classes: e, value: r, defaultValue: i = "", onValueChange: a, coun
|
|
|
12389
12441
|
}
|
|
12390
12442
|
//#endregion
|
|
12391
12443
|
//#region src/components/ColorInput/ColorInput.tsx
|
|
12392
|
-
var
|
|
12393
|
-
function
|
|
12394
|
-
let b = n("colorPicker", Ot, t)(), x = eu(), S = e().colorPicker, C = `${Hl()}open`, [w, T] = Z(() =>
|
|
12444
|
+
var Pg = (e) => da(e) ?? "#000000";
|
|
12445
|
+
function Fg({ classes: t, value: r, defaultValue: i = "#000000", onValueChange: a, format: o = "hex", alpha: s = !1, swatches: c, withPicker: l = !0, eyeDropper: u = !1, channelInputs: d = !1, disabled: f, readOnly: p, invalid: m, className: h, style: g, onBlur: _, onKeyDown: v, ...y }) {
|
|
12446
|
+
let b = n("colorPicker", Ot, t)(), x = eu(), S = e().colorPicker, C = `${Hl()}open`, [w, T] = Z(() => Pg(i)), E = r === void 0 ? w : Pg(r), [D, O] = Z(null), k = D ?? Hn(E, o), A = D !== null && !!D.trim() && !da(D), j = (m ?? x?.invalid) || A, M = Gl(() => r === void 0 ? void 0 : Eu(Pg(r)), [r]), N = Gl(() => Eu(Pg(i)), [i]), P = (e) => {
|
|
12395
12447
|
let t = D === null ? null : da(D);
|
|
12396
12448
|
O(null), t && t !== E && e.setValue(Eu(t));
|
|
12397
12449
|
};
|
|
@@ -12444,7 +12496,7 @@ function Pg({ classes: t, value: r, defaultValue: i = "#000000", onValueChange:
|
|
|
12444
12496
|
P(e), _?.(t);
|
|
12445
12497
|
}
|
|
12446
12498
|
})]
|
|
12447
|
-
}) }), /* @__PURE__ */ Q(
|
|
12499
|
+
}) }), /* @__PURE__ */ Q(_f, {
|
|
12448
12500
|
alpha: s,
|
|
12449
12501
|
swatches: c,
|
|
12450
12502
|
withPicker: l,
|
|
@@ -12456,7 +12508,7 @@ function Pg({ classes: t, value: r, defaultValue: i = "#000000", onValueChange:
|
|
|
12456
12508
|
}
|
|
12457
12509
|
//#endregion
|
|
12458
12510
|
//#region src/components/ColorSwatchPicker/ColorSwatchPicker.tsx
|
|
12459
|
-
function
|
|
12511
|
+
function Ig({ classes: t, items: r, value: i, defaultValue: a, onValueChange: o, label: s, showLabels: c, size: l, disabled: u, invalid: d, required: f, name: p, className: m, ...h }) {
|
|
12460
12512
|
let g = n("colorSwatchPicker", kt, t)({
|
|
12461
12513
|
size: l,
|
|
12462
12514
|
showLabels: c
|
|
@@ -12502,15 +12554,15 @@ function Fg({ classes: t, items: r, value: i, defaultValue: a, onValueChange: o,
|
|
|
12502
12554
|
}
|
|
12503
12555
|
//#endregion
|
|
12504
12556
|
//#region src/hooks/storage.ts
|
|
12505
|
-
var
|
|
12506
|
-
function
|
|
12557
|
+
var Lg = () => null;
|
|
12558
|
+
function Rg(e, t, n) {
|
|
12507
12559
|
let r = Bl((n) => $s(e, t, n), [e, t]), i = Kl(r, () => {
|
|
12508
12560
|
try {
|
|
12509
12561
|
return (e === "local" ? localStorage : sessionStorage).getItem(t);
|
|
12510
12562
|
} catch {
|
|
12511
12563
|
return null;
|
|
12512
12564
|
}
|
|
12513
|
-
},
|
|
12565
|
+
}, Lg), a = n;
|
|
12514
12566
|
if (i !== null) try {
|
|
12515
12567
|
a = JSON.parse(i);
|
|
12516
12568
|
} catch {
|
|
@@ -12530,15 +12582,15 @@ function Lg(e, t, n) {
|
|
|
12530
12582
|
s
|
|
12531
12583
|
];
|
|
12532
12584
|
}
|
|
12533
|
-
function Rg(e, t) {
|
|
12534
|
-
return Lg("local", e, t);
|
|
12535
|
-
}
|
|
12536
12585
|
function zg(e, t) {
|
|
12537
|
-
return
|
|
12586
|
+
return Rg("local", e, t);
|
|
12587
|
+
}
|
|
12588
|
+
function Bg(e, t) {
|
|
12589
|
+
return Rg("session", e, t);
|
|
12538
12590
|
}
|
|
12539
12591
|
//#endregion
|
|
12540
12592
|
//#region src/components/EmojiPicker/EmojiPicker.tsx
|
|
12541
|
-
var
|
|
12593
|
+
var Vg = {
|
|
12542
12594
|
recent: "🕘",
|
|
12543
12595
|
smileys: "😀",
|
|
12544
12596
|
people: "👋",
|
|
@@ -12548,9 +12600,9 @@ var Bg = {
|
|
|
12548
12600
|
activities: "⚽",
|
|
12549
12601
|
objects: "💡",
|
|
12550
12602
|
symbols: "❤️"
|
|
12551
|
-
},
|
|
12552
|
-
function
|
|
12553
|
-
let p = n("emojiPicker", yn, e)(), { translations: m } = t(), h = m.emojiPicker, g = `${Hl()}heading`, _ = X(null), v = X(null), y = Gl(() => r ?? Si(m.emojiPicker.emojis), [r, m]), [b, x] =
|
|
12603
|
+
}, Hg = [];
|
|
12604
|
+
function Ug({ classes: e, emojis: r, columns: i = 8, search: a = !0, recent: o = !0, recentKey: s = "wirecore-emoji-recent", maxRecent: c = 24, label: l, onSelect: u, className: d, ...f }) {
|
|
12605
|
+
let p = n("emojiPicker", yn, e)(), { translations: m } = t(), h = m.emojiPicker, g = `${Hl()}heading`, _ = X(null), v = X(null), y = Gl(() => r ?? Si(m.emojiPicker.emojis), [r, m]), [b, x] = zg(s, Hg), S = Gl(() => o ? b.map((e) => y.find((t) => t.emoji === e)).filter((e) => !!e) : [], [
|
|
12554
12606
|
o,
|
|
12555
12607
|
b,
|
|
12556
12608
|
y
|
|
@@ -12615,7 +12667,7 @@ function Hg({ classes: e, emojis: r, columns: i = 8, search: a = !0, recent: o =
|
|
|
12615
12667
|
"aria-label": h.categories[e],
|
|
12616
12668
|
title: h.categories[e],
|
|
12617
12669
|
onClick: () => T(e),
|
|
12618
|
-
children:
|
|
12670
|
+
children: Vg[e]
|
|
12619
12671
|
}, e))
|
|
12620
12672
|
}),
|
|
12621
12673
|
/* @__PURE__ */ Q("div", {
|
|
@@ -12678,7 +12730,7 @@ function Hg({ classes: e, emojis: r, columns: i = 8, search: a = !0, recent: o =
|
|
|
12678
12730
|
}
|
|
12679
12731
|
//#endregion
|
|
12680
12732
|
//#region src/components/Watermark/Watermark.tsx
|
|
12681
|
-
function
|
|
12733
|
+
function Wg({ classes: e, text: t, image: r, imageWidth: i, imageHeight: a, rotate: o, gap: s, fontSize: c, color: l, opacity: u, className: d, children: f, ...p }) {
|
|
12682
12734
|
let m = n("watermark", ec, e)(), h = tc({
|
|
12683
12735
|
text: t,
|
|
12684
12736
|
image: r,
|
|
@@ -12702,15 +12754,15 @@ function Ug({ classes: e, text: t, image: r, imageWidth: i, imageHeight: a, rota
|
|
|
12702
12754
|
}
|
|
12703
12755
|
//#endregion
|
|
12704
12756
|
//#region src/components/RingProgress/RingProgress.tsx
|
|
12705
|
-
var
|
|
12757
|
+
var Gg = [
|
|
12706
12758
|
"primary",
|
|
12707
12759
|
"info",
|
|
12708
12760
|
"success",
|
|
12709
12761
|
"warn",
|
|
12710
12762
|
"danger",
|
|
12711
12763
|
"muted"
|
|
12712
|
-
],
|
|
12713
|
-
function
|
|
12764
|
+
], Kg = (e, t) => `${Math.round(e / t * 100)} %`;
|
|
12765
|
+
function qg({ classes: e, value: t, segments: r, max: i, label: a, size: o, thickness: s = 10, roundCaps: c, legend: l = !0, formatValue: u = Kg, center: d, className: f, ...p }) {
|
|
12714
12766
|
let m = n("ringProgress", to, e), h = `${Hl()}label`, g = r ?? (t === void 0 ? [] : [{
|
|
12715
12767
|
value: t,
|
|
12716
12768
|
color: "primary"
|
|
@@ -12718,7 +12770,7 @@ function Kg({ classes: e, value: t, segments: r, max: i, label: a, size: o, thic
|
|
|
12718
12770
|
let n = g[t];
|
|
12719
12771
|
return {
|
|
12720
12772
|
key: n.label ?? String(t),
|
|
12721
|
-
color: n.color ??
|
|
12773
|
+
color: n.color ?? Gg[t % Gg.length],
|
|
12722
12774
|
dasharray: `${e.length * x} ${x}`,
|
|
12723
12775
|
dashoffset: -e.start * x
|
|
12724
12776
|
};
|
|
@@ -12796,19 +12848,19 @@ function Kg({ classes: e, value: t, segments: r, max: i, label: a, size: o, thic
|
|
|
12796
12848
|
}
|
|
12797
12849
|
//#endregion
|
|
12798
12850
|
//#region src/components/Sortable/Sortable.tsx
|
|
12799
|
-
var
|
|
12800
|
-
function
|
|
12851
|
+
var Jg = typeof document > "u" ? Y : Wl;
|
|
12852
|
+
function Yg(e, t, n) {
|
|
12801
12853
|
if (typeof t == "function") return t(e);
|
|
12802
12854
|
if (typeof e != "object" || !e) return;
|
|
12803
12855
|
let r = e;
|
|
12804
12856
|
for (let e of t ? [t] : n) if (r[e] !== void 0) return r[e];
|
|
12805
12857
|
}
|
|
12806
|
-
function
|
|
12807
|
-
let S = n("sortable", Fo, t)({ orientation: f }), C = e().sortable, w = Hl(), T = d ?? w, E = `${w}label`, D = `${w}instructions`, O = X(null), [k, A] = Z(i), j = r ?? k, M = (e) => String(
|
|
12858
|
+
function Xg({ classes: t, value: r, defaultValue: i = [], onValueChange: a, onMove: o, itemKey: s, itemLabel: c, label: l, group: u, name: d, orientation: f = "vertical", columns: p = 3, accepts: m, animate: h = !0, disabled: g, emptyText: _, renderItem: v, "aria-label": y, className: b, style: x }) {
|
|
12859
|
+
let S = n("sortable", Fo, t)({ orientation: f }), C = e().sortable, w = Hl(), T = d ?? w, E = `${w}label`, D = `${w}instructions`, O = X(null), [k, A] = Z(i), j = r ?? k, M = (e) => String(Yg(e, c, [
|
|
12808
12860
|
"label",
|
|
12809
12861
|
"name",
|
|
12810
12862
|
"title"
|
|
12811
|
-
]) ?? e), N = (e, t) =>
|
|
12863
|
+
]) ?? e), N = (e, t) => Yg(e, s, ["id", "value"]) ?? (typeof e == "object" ? t : String(e)), P = X({
|
|
12812
12864
|
items: j,
|
|
12813
12865
|
group: u,
|
|
12814
12866
|
label: l,
|
|
@@ -12833,7 +12885,7 @@ function Yg({ classes: t, value: r, defaultValue: i = [], onValueChange: a, onMo
|
|
|
12833
12885
|
onMove: o,
|
|
12834
12886
|
t: C
|
|
12835
12887
|
}, F.current = null;
|
|
12836
|
-
}),
|
|
12888
|
+
}), Jg(() => {
|
|
12837
12889
|
h && Fn(O.current, u ?? T);
|
|
12838
12890
|
}), Y(() => {
|
|
12839
12891
|
let e = O.current;
|
|
@@ -12930,18 +12982,18 @@ function Yg({ classes: t, value: r, defaultValue: i = [], onValueChange: a, onMo
|
|
|
12930
12982
|
}
|
|
12931
12983
|
//#endregion
|
|
12932
12984
|
//#region src/components/LogViewer/LogViewer.tsx
|
|
12933
|
-
var
|
|
12985
|
+
var Zg = {
|
|
12934
12986
|
debug: vc,
|
|
12935
12987
|
info: Wc,
|
|
12936
12988
|
warn: kl,
|
|
12937
12989
|
error: Pc
|
|
12938
|
-
},
|
|
12990
|
+
}, Qg = [], $g = [
|
|
12939
12991
|
"error",
|
|
12940
12992
|
"warn",
|
|
12941
12993
|
"info",
|
|
12942
12994
|
"debug"
|
|
12943
12995
|
];
|
|
12944
|
-
function
|
|
12996
|
+
function e_({ classes: e, lines: r = Qg, dataSource: i, pageSize: a = 200, label: o, search: s = !0, levelFilter: c = !0, levels: l, onLevelsChange: u, detectLevels: d = !0, autoScroll: f = !0, onAutoScrollChange: p, lineNumbers: m = !0, hasMore: h, onLoadMore: g, loading: _, rowHeight: v = 20, className: y, style: b }) {
|
|
12945
12997
|
let x = n("logViewer", wi, e), S = x(), { locale: C, translations: w } = t(), T = w.logViewer, E = X(null), O = X(0), k = ee({
|
|
12946
12998
|
source: i,
|
|
12947
12999
|
pageSize: a
|
|
@@ -12951,14 +13003,14 @@ function $g({ classes: e, lines: r = Zg, dataSource: i, pageSize: a = 200, label
|
|
|
12951
13003
|
}), Y(() => {
|
|
12952
13004
|
i && A.current();
|
|
12953
13005
|
}, [i]);
|
|
12954
|
-
let j = k.active ? k.state.items :
|
|
13006
|
+
let j = k.active ? k.state.items : Qg, N = k.active ? k.state.hasMore : h, P = !!_ || k.active && k.state.status === "loading", F = Gl(() => Cs(j.length ? [...j].reverse().concat(r) : r).map((e) => e.level || !d ? e : {
|
|
12955
13007
|
...e,
|
|
12956
13008
|
level: un(e.text)
|
|
12957
13009
|
}), [
|
|
12958
13010
|
j,
|
|
12959
13011
|
r,
|
|
12960
13012
|
d
|
|
12961
|
-
]), I =
|
|
13013
|
+
]), I = $g.filter((e) => F.some((t) => t.level === e)), [L, R] = Z($g), z = l ?? L, [B, V] = Z(""), H = Gl(() => jn(F, {
|
|
12962
13014
|
query: B,
|
|
12963
13015
|
levels: z
|
|
12964
13016
|
}), [
|
|
@@ -13029,15 +13081,15 @@ function $g({ classes: e, lines: r = Zg, dataSource: i, pageSize: a = 200, label
|
|
|
13029
13081
|
role: "group",
|
|
13030
13082
|
"aria-label": T.levelFilter,
|
|
13031
13083
|
className: S.levels(),
|
|
13032
|
-
children: I.map((e) => /* @__PURE__ */ Q(
|
|
13084
|
+
children: I.map((e) => /* @__PURE__ */ Q(hp, {
|
|
13033
13085
|
size: "sm",
|
|
13034
|
-
icon:
|
|
13086
|
+
icon: Zg[e],
|
|
13035
13087
|
pressed: z.includes(e),
|
|
13036
13088
|
onPressedChange: (t) => me(e, t),
|
|
13037
13089
|
children: T.levels[e]
|
|
13038
13090
|
}, e))
|
|
13039
13091
|
}),
|
|
13040
|
-
/* @__PURE__ */ Q(
|
|
13092
|
+
/* @__PURE__ */ Q(hp, {
|
|
13041
13093
|
size: "sm",
|
|
13042
13094
|
icon: fc,
|
|
13043
13095
|
pressed: re,
|
|
@@ -13071,7 +13123,7 @@ function $g({ classes: e, lines: r = Zg, dataSource: i, pageSize: a = 200, label
|
|
|
13071
13123
|
paddingBottom: `${ne.after}px`
|
|
13072
13124
|
},
|
|
13073
13125
|
children: J.map((e) => {
|
|
13074
|
-
let t = e.line.level ?
|
|
13126
|
+
let t = e.line.level ? Zg[e.line.level] : void 0;
|
|
13075
13127
|
return /* @__PURE__ */ $("li", {
|
|
13076
13128
|
className: x({ level: e.line.level ?? "none" }).line(),
|
|
13077
13129
|
"aria-setsize": H.length,
|
|
@@ -13131,7 +13183,7 @@ function $g({ classes: e, lines: r = Zg, dataSource: i, pageSize: a = 200, label
|
|
|
13131
13183
|
}
|
|
13132
13184
|
//#endregion
|
|
13133
13185
|
//#region src/components/Markdown/Markdown.tsx
|
|
13134
|
-
function
|
|
13186
|
+
function t_(e, t, n) {
|
|
13135
13187
|
if (typeof e == "string") return e;
|
|
13136
13188
|
if (e.code && n) return /* @__PURE__ */ Q("div", { children: n({
|
|
13137
13189
|
language: e.code.language,
|
|
@@ -13142,10 +13194,10 @@ function e_(e, t, n) {
|
|
|
13142
13194
|
key: t
|
|
13143
13195
|
};
|
|
13144
13196
|
r !== void 0 && (a.defaultChecked = r);
|
|
13145
|
-
let o = e.children.map((e, t) =>
|
|
13197
|
+
let o = e.children.map((e, t) => t_(e, t, n));
|
|
13146
13198
|
return zl(e.tag, a, ...o.length ? o : []);
|
|
13147
13199
|
}
|
|
13148
|
-
function
|
|
13200
|
+
function n_({ source: e, headingLevel: t, breaks: r, linkTarget: i, linkRel: a, renderCode: o, classes: s, className: c, ...l }) {
|
|
13149
13201
|
let u = n("prose", La, s), d = Gl(() => Ei(e, {
|
|
13150
13202
|
headingLevel: t,
|
|
13151
13203
|
breaks: r,
|
|
@@ -13161,23 +13213,23 @@ function t_({ source: e, headingLevel: t, breaks: r, linkTarget: i, linkRel: a,
|
|
|
13161
13213
|
return /* @__PURE__ */ Q("div", {
|
|
13162
13214
|
...l,
|
|
13163
13215
|
className: u({ class: c }),
|
|
13164
|
-
children: d.map((e, t) =>
|
|
13216
|
+
children: d.map((e, t) => t_(e, t, o))
|
|
13165
13217
|
});
|
|
13166
13218
|
}
|
|
13167
13219
|
//#endregion
|
|
13168
13220
|
//#region src/components/Chat/ChatMessage.tsx
|
|
13169
|
-
var
|
|
13221
|
+
var r_ = {
|
|
13170
13222
|
sending: Fc,
|
|
13171
13223
|
sent: bc,
|
|
13172
13224
|
read: xc,
|
|
13173
13225
|
error: Mc
|
|
13174
13226
|
};
|
|
13175
|
-
function
|
|
13227
|
+
function i_({ text: e, markdown: r = !0, author: i, avatar: a, time: o, status: s, attachments: c, align: l = "start", grouped: u, streaming: d, headingLevel: f = 3, children: p, before: m, after: h, actions: g, classes: _, className: v, ...y }) {
|
|
13176
13228
|
let b = n("chatMessage", dt, _), x = t(), S = x.translations.chatMessage, C = b({
|
|
13177
13229
|
align: l,
|
|
13178
13230
|
grouped: u,
|
|
13179
13231
|
status: s ?? "none"
|
|
13180
|
-
}), w = o === void 0 ? void 0 : new Date(o), T = w && !Number.isNaN(w.getTime()) ? w : void 0, E = T ? new Intl.DateTimeFormat(x.locale, { timeStyle: "short" }).format(T) : "", D = !e, O = s ?
|
|
13232
|
+
}), w = o === void 0 ? void 0 : new Date(o), T = w && !Number.isNaN(w.getTime()) ? w : void 0, E = T ? new Intl.DateTimeFormat(x.locale, { timeStyle: "short" }).format(T) : "", D = !e, O = s ? r_[s] : void 0;
|
|
13181
13233
|
return /* @__PURE__ */ $("article", {
|
|
13182
13234
|
...y,
|
|
13183
13235
|
className: C.base({ class: v }),
|
|
@@ -13210,7 +13262,7 @@ function r_({ text: e, markdown: r = !0, author: i, avatar: a, time: o, status:
|
|
|
13210
13262
|
(p !== void 0 || !D || d || !!c?.length) && /* @__PURE__ */ $("div", {
|
|
13211
13263
|
className: C.bubble(),
|
|
13212
13264
|
children: [
|
|
13213
|
-
p ?? (r && !D ? /* @__PURE__ */ Q(
|
|
13265
|
+
p ?? (r && !D ? /* @__PURE__ */ Q(n_, {
|
|
13214
13266
|
source: e,
|
|
13215
13267
|
headingLevel: f,
|
|
13216
13268
|
breaks: !0
|
|
@@ -13274,7 +13326,7 @@ function r_({ text: e, markdown: r = !0, author: i, avatar: a, time: o, status:
|
|
|
13274
13326
|
}
|
|
13275
13327
|
//#endregion
|
|
13276
13328
|
//#region src/components/Chat/ChatMessages.tsx
|
|
13277
|
-
function
|
|
13329
|
+
function a_({ messages: e, label: r, groupWithin: i = 5, separators: a = !0, now: o, markdown: s = !0, announce: c = !0, hasMore: l, loading: u, onLoadMore: d, emptyText: f, renderMessage: p, classes: m, className: h, ...g }) {
|
|
13278
13330
|
let _ = n("chatMessages", ft, m), v = t(), y = v.translations.chatMessages, b = _(), x = X(null), S = ut(e, {
|
|
13279
13331
|
withinMinutes: i,
|
|
13280
13332
|
separators: a
|
|
@@ -13357,7 +13409,7 @@ function i_({ messages: e, label: r, groupWithin: i = 5, separators: a = !0, now
|
|
|
13357
13409
|
}, e.key) : /* @__PURE__ */ Q("div", {
|
|
13358
13410
|
className: b.message(),
|
|
13359
13411
|
"data-first": e.first,
|
|
13360
|
-
children: p ? /* @__PURE__ */ Q(Ll, { children: p(e.message, { grouped: e.grouped }) }) : /* @__PURE__ */ Q(
|
|
13412
|
+
children: p ? /* @__PURE__ */ Q(Ll, { children: p(e.message, { grouped: e.grouped }) }) : /* @__PURE__ */ Q(i_, {
|
|
13361
13413
|
text: e.message.text,
|
|
13362
13414
|
markdown: s,
|
|
13363
13415
|
author: e.message.author,
|
|
@@ -13383,12 +13435,12 @@ function i_({ messages: e, label: r, groupWithin: i = 5, separators: a = !0, now
|
|
|
13383
13435
|
}
|
|
13384
13436
|
//#endregion
|
|
13385
13437
|
//#region src/components/Chat/ChatPrompt.tsx
|
|
13386
|
-
var
|
|
13387
|
-
function
|
|
13438
|
+
var o_ = 24, s_ = 16;
|
|
13439
|
+
function c_({ value: e, defaultValue: r = "", onValueChange: i, label: a, placeholder: o, disabled: s, responding: c, attachments: l, files: u, onFilesChange: d, accept: f, maxRows: p = 8, sendOn: m = "enter", hint: h = !0, onSubmit: g, onStop: _, classes: v, className: y, ...b }) {
|
|
13388
13440
|
let x = n("chatPrompt", pt, v), S = t(), C = S.translations.chatPrompt, w = x(), T = Hl(), E = X(null), D = X(null), [O, k] = Z(r), A = e ?? O, [M, N] = Z([]), P = u ?? M, F = !s && (!!A.trim() || P.length > 0);
|
|
13389
13441
|
Wl(() => {
|
|
13390
13442
|
let e = E.current;
|
|
13391
|
-
e && (e.style.height = "auto", e.style.height = `${Ia(e.scrollHeight,
|
|
13443
|
+
e && (e.style.height = "auto", e.style.height = `${Ia(e.scrollHeight, o_, s_, p)}px`);
|
|
13392
13444
|
}, [A, p]);
|
|
13393
13445
|
let I = (e) => {
|
|
13394
13446
|
k(e), i?.(e);
|
|
@@ -13426,7 +13478,7 @@ function s_({ value: e, defaultValue: r = "", onValueChange: i, label: a, placeh
|
|
|
13426
13478
|
value: A,
|
|
13427
13479
|
rows: 1,
|
|
13428
13480
|
className: w.textarea(),
|
|
13429
|
-
style: { "--wc-prompt-max": `${
|
|
13481
|
+
style: { "--wc-prompt-max": `${o_ * p + s_}px` },
|
|
13430
13482
|
"aria-label": a ?? C.label,
|
|
13431
13483
|
"aria-describedby": h ? `${T}hint` : void 0,
|
|
13432
13484
|
placeholder: o ?? C.placeholder,
|
|
@@ -13486,7 +13538,7 @@ function s_({ value: e, defaultValue: r = "", onValueChange: i, label: a, placeh
|
|
|
13486
13538
|
}
|
|
13487
13539
|
//#endregion
|
|
13488
13540
|
//#region src/components/Chat/ChatSources.tsx
|
|
13489
|
-
function
|
|
13541
|
+
function l_({ sources: e, title: r, defaultOpen: i, linkTarget: a, classes: o, className: s, ...c }) {
|
|
13490
13542
|
let l = n("chatDetails", lt, o), u = t(), d = l();
|
|
13491
13543
|
return /* @__PURE__ */ $("details", {
|
|
13492
13544
|
...c,
|
|
@@ -13535,13 +13587,13 @@ function c_({ sources: e, title: r, defaultOpen: i, linkTarget: a, classes: o, c
|
|
|
13535
13587
|
}
|
|
13536
13588
|
//#endregion
|
|
13537
13589
|
//#region src/components/Chat/ChatToolCall.tsx
|
|
13538
|
-
var
|
|
13590
|
+
var u_ = {
|
|
13539
13591
|
running: Yc,
|
|
13540
13592
|
done: Nc,
|
|
13541
13593
|
error: Pc
|
|
13542
|
-
},
|
|
13543
|
-
function
|
|
13544
|
-
let d = n("chatDetails", lt, c), f = t().translations.chatToolCall, p = d({ status: r }), m =
|
|
13594
|
+
}, d_ = (e) => typeof e == "string" ? e : JSON.stringify(e, null, 2);
|
|
13595
|
+
function f_({ name: e, status: r = "done", input: i, output: a, defaultOpen: o, children: s, classes: c, className: l, ...u }) {
|
|
13596
|
+
let d = n("chatDetails", lt, c), f = t().translations.chatToolCall, p = d({ status: r }), m = u_[r];
|
|
13545
13597
|
return /* @__PURE__ */ $("details", {
|
|
13546
13598
|
...u,
|
|
13547
13599
|
className: p.base({ class: l }),
|
|
@@ -13578,14 +13630,14 @@ function d_({ name: e, status: r = "done", input: i, output: a, defaultOpen: o,
|
|
|
13578
13630
|
children: f.input
|
|
13579
13631
|
}), /* @__PURE__ */ Q("pre", {
|
|
13580
13632
|
className: p.pre(),
|
|
13581
|
-
children:
|
|
13633
|
+
children: d_(i)
|
|
13582
13634
|
})] }),
|
|
13583
13635
|
a !== void 0 && /* @__PURE__ */ $(Jl, { children: [/* @__PURE__ */ Q("div", {
|
|
13584
13636
|
className: p.label(),
|
|
13585
13637
|
children: f.output
|
|
13586
13638
|
}), /* @__PURE__ */ Q("pre", {
|
|
13587
13639
|
className: p.pre(),
|
|
13588
|
-
children:
|
|
13640
|
+
children: d_(a)
|
|
13589
13641
|
})] }),
|
|
13590
13642
|
s
|
|
13591
13643
|
]
|
|
@@ -13594,7 +13646,7 @@ function d_({ name: e, status: r = "done", input: i, output: a, defaultOpen: o,
|
|
|
13594
13646
|
}
|
|
13595
13647
|
//#endregion
|
|
13596
13648
|
//#region src/components/Chat/ChatThinking.tsx
|
|
13597
|
-
function
|
|
13649
|
+
function p_({ active: e, text: r, duration: i, defaultOpen: a, children: o, classes: s, className: c, ...l }) {
|
|
13598
13650
|
let u = n("chatDetails", lt, s), d = t().translations.chatThinking, f = u({ status: e ? "running" : "none" }), p = e ? Yc : _c;
|
|
13599
13651
|
return /* @__PURE__ */ $("details", {
|
|
13600
13652
|
...l,
|
|
@@ -13632,7 +13684,7 @@ function f_({ active: e, text: r, duration: i, defaultOpen: a, children: o, clas
|
|
|
13632
13684
|
}
|
|
13633
13685
|
//#endregion
|
|
13634
13686
|
//#region src/components/Kanban/Kanban.tsx
|
|
13635
|
-
function
|
|
13687
|
+
function m_({ columns: e, defaultColumns: r = [], onColumnsChange: i, onMove: a, onLoadMore: o, onCollapse: s, label: c, itemKey: l, itemLabel: u, accepts: d, disabled: f, titleTag: p = "h3", renderCard: m, renderAdd: h, classes: g, className: _, ...v }) {
|
|
13636
13688
|
let y = n("kanban", ci, g), b = t().translations.kanban, x = Hl(), [S, C] = Z(r), w = e ?? S, T = X(null), E = X({
|
|
13637
13689
|
shown: w,
|
|
13638
13690
|
onColumnsChange: i
|
|
@@ -13736,7 +13788,7 @@ function p_({ columns: e, defaultColumns: r = [], onColumnsChange: i, onMove: a,
|
|
|
13736
13788
|
"aria-hidden": "true"
|
|
13737
13789
|
}), t === "over" ? b.limitExceeded(e.items.length, e.limit) : b.limitReached]
|
|
13738
13790
|
}),
|
|
13739
|
-
/* @__PURE__ */ Q(
|
|
13791
|
+
/* @__PURE__ */ Q(Xg, {
|
|
13740
13792
|
value: e.items,
|
|
13741
13793
|
name: j(e),
|
|
13742
13794
|
group: x,
|
|
@@ -13778,7 +13830,7 @@ function p_({ columns: e, defaultColumns: r = [], onColumnsChange: i, onMove: a,
|
|
|
13778
13830
|
}
|
|
13779
13831
|
//#endregion
|
|
13780
13832
|
//#region src/components/SessionTimeout/SessionTimeout.tsx
|
|
13781
|
-
function
|
|
13833
|
+
function h_({ expiresAt: e, warnBefore: r = 120, title: i, description: a, onExtend: o, onSignOut: s, onExpire: c, classes: l }) {
|
|
13782
13834
|
let u = n("sessionTimeout", So, l), d = t().translations.sessionTimeout, f = u(), [p, m] = Z(null);
|
|
13783
13835
|
Y(() => {
|
|
13784
13836
|
let e = () => m(Date.now()), t = setTimeout(e), n = setInterval(e, 1e3);
|
|
@@ -13837,7 +13889,7 @@ function m_({ expiresAt: e, warnBefore: r = 120, title: i, description: a, onExt
|
|
|
13837
13889
|
}
|
|
13838
13890
|
//#endregion
|
|
13839
13891
|
//#region src/components/BarsList/BarsList.tsx
|
|
13840
|
-
function
|
|
13892
|
+
function g_({ items: e, label: r, showTitle: i, max: a, tone: o = "primary", labelHeader: s, valueHeader: c, formatValue: l, classes: u, className: d, ...f }) {
|
|
13841
13893
|
let p = n("barsList", Ue, u), m = t(), h = Hl(), g = p({ tone: o }), _ = We(e.map((e) => e.value), a), v = l ?? ((e) => e.toLocaleString(m.locale));
|
|
13842
13894
|
return /* @__PURE__ */ $("div", {
|
|
13843
13895
|
...f,
|
|
@@ -13886,7 +13938,7 @@ function h_({ items: e, label: r, showTitle: i, max: a, tone: o = "primary", lab
|
|
|
13886
13938
|
}
|
|
13887
13939
|
//#endregion
|
|
13888
13940
|
//#region src/components/Funnel/Funnel.tsx
|
|
13889
|
-
function
|
|
13941
|
+
function __({ stages: e, title: r, hideTitle: i, tone: a = "primary", conversion: o = !0, table: s = !0, formatValue: c, classes: l, className: u, ...d }) {
|
|
13890
13942
|
let f = n("funnel", cr, l), p = n("chart", st), m = t(), h = m.translations.chart, g = Hl(), _ = f({ tone: a }), v = p(), y = c ?? ((e) => e.toLocaleString(m.locale)), b = new Intl.NumberFormat(m.locale, {
|
|
13891
13943
|
style: "percent",
|
|
13892
13944
|
maximumFractionDigits: 1
|
|
@@ -13987,7 +14039,7 @@ function g_({ stages: e, title: r, hideTitle: i, tone: a = "primary", conversion
|
|
|
13987
14039
|
}
|
|
13988
14040
|
//#endregion
|
|
13989
14041
|
//#region src/components/BulletChart/BulletChart.tsx
|
|
13990
|
-
function
|
|
14042
|
+
function v_({ label: e, description: r, value: i, max: a, min: o = 0, target: s, ranges: c, tone: l = "primary", formatValue: u, classes: d, className: f, ...p }) {
|
|
13991
14043
|
let m = n("bulletChart", Ye, d), h = t(), g = h.translations.chart, _ = Hl(), v = m({ tone: l }), y = u ?? ((e) => e.toLocaleString(h.locale)), b = Xe({
|
|
13992
14044
|
value: i,
|
|
13993
14045
|
target: s,
|
|
@@ -14053,7 +14105,7 @@ function __({ label: e, description: r, value: i, max: a, min: o = 0, target: s,
|
|
|
14053
14105
|
}
|
|
14054
14106
|
//#endregion
|
|
14055
14107
|
//#region src/components/RadialBar/RadialBar.tsx
|
|
14056
|
-
function
|
|
14108
|
+
function y_({ items: e, label: r, showTitle: i, max: a = 100, size: o = "md", formatValue: s, classes: c, className: l, ...u }) {
|
|
14057
14109
|
let d = n("radialBar", Ba, c), f = t(), p = Hl(), m = d({ size: o }), h = Va(e, { max: a }), g = new Intl.NumberFormat(f.locale, {
|
|
14058
14110
|
style: "percent",
|
|
14059
14111
|
maximumFractionDigits: 1
|
|
@@ -14125,7 +14177,7 @@ function v_({ items: e, label: r, showTitle: i, max: a = 100, size: o = "md", fo
|
|
|
14125
14177
|
}
|
|
14126
14178
|
//#endregion
|
|
14127
14179
|
//#region src/hooks/browser.ts
|
|
14128
|
-
function
|
|
14180
|
+
function b_(e = {}) {
|
|
14129
14181
|
let [t, n] = Z(!1), [r, i] = Z(null), a = X(void 0);
|
|
14130
14182
|
Y(() => () => clearTimeout(a.current), []);
|
|
14131
14183
|
let o = Bl(() => {
|
|
@@ -14145,20 +14197,20 @@ function y_(e = {}) {
|
|
|
14145
14197
|
reset: o
|
|
14146
14198
|
};
|
|
14147
14199
|
}
|
|
14148
|
-
var
|
|
14200
|
+
var x_ = { online: !0 }, S_ = x_, C_ = () => {
|
|
14149
14201
|
let e = Ga();
|
|
14150
|
-
return (!Object.keys(e).every((t) => e[t] ===
|
|
14202
|
+
return (!Object.keys(e).every((t) => e[t] === S_[t]) || Object.keys(e).length !== Object.keys(S_).length) && (S_ = e), S_;
|
|
14151
14203
|
};
|
|
14152
|
-
function
|
|
14153
|
-
return Kl(Qs,
|
|
14204
|
+
function w_() {
|
|
14205
|
+
return Kl(Qs, C_, () => x_);
|
|
14154
14206
|
}
|
|
14155
|
-
var
|
|
14156
|
-
function
|
|
14157
|
-
return Kl(
|
|
14207
|
+
var T_ = (e) => (document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e));
|
|
14208
|
+
function E_() {
|
|
14209
|
+
return Kl(T_, () => document.visibilityState, () => "visible");
|
|
14158
14210
|
}
|
|
14159
|
-
var
|
|
14160
|
-
function
|
|
14161
|
-
let [e, t] = Z(null), n = Kl(
|
|
14211
|
+
var D_ = (e) => (document.addEventListener("fullscreenchange", e), () => document.removeEventListener("fullscreenchange", e));
|
|
14212
|
+
function O_() {
|
|
14213
|
+
let [e, t] = Z(null), n = Kl(D_, sr, () => null), r = !!n && (!e || n === e), i = Bl(() => Sn(e), [e]), a = Bl(() => Tn(), []);
|
|
14162
14214
|
return {
|
|
14163
14215
|
ref: t,
|
|
14164
14216
|
fullscreen: r,
|
|
@@ -14167,14 +14219,14 @@ function D_() {
|
|
|
14167
14219
|
toggle: () => r ? a() : i()
|
|
14168
14220
|
};
|
|
14169
14221
|
}
|
|
14170
|
-
var
|
|
14171
|
-
function
|
|
14222
|
+
var k_ = () => () => {};
|
|
14223
|
+
function A_() {
|
|
14172
14224
|
return {
|
|
14173
|
-
supported: Kl(
|
|
14225
|
+
supported: Kl(k_, Xr, () => !1),
|
|
14174
14226
|
open: Bl((e) => Da(e), [])
|
|
14175
14227
|
};
|
|
14176
14228
|
}
|
|
14177
|
-
function
|
|
14229
|
+
function j_(e = {}) {
|
|
14178
14230
|
let [t, n] = Z([]), { accept: r, multiple: i, capture: a, directory: o } = e;
|
|
14179
14231
|
return {
|
|
14180
14232
|
files: t,
|
|
@@ -14196,7 +14248,7 @@ function A_(e = {}) {
|
|
|
14196
14248
|
reset: Bl(() => n([]), [])
|
|
14197
14249
|
};
|
|
14198
14250
|
}
|
|
14199
|
-
function
|
|
14251
|
+
function M_(e, t = {}) {
|
|
14200
14252
|
let { restoreOnUnmount: n } = t;
|
|
14201
14253
|
Y(() => {
|
|
14202
14254
|
let e = document.title;
|
|
@@ -14209,13 +14261,13 @@ function j_(e, t = {}) {
|
|
|
14209
14261
|
}
|
|
14210
14262
|
//#endregion
|
|
14211
14263
|
//#region src/hooks/state.ts
|
|
14212
|
-
function
|
|
14264
|
+
function N_(e) {
|
|
14213
14265
|
let t = X(e);
|
|
14214
14266
|
return Y(() => {
|
|
14215
14267
|
t.current = e;
|
|
14216
14268
|
}), t;
|
|
14217
14269
|
}
|
|
14218
|
-
function
|
|
14270
|
+
function P_(e = !1, t = {}) {
|
|
14219
14271
|
let [n, r] = Z(e), i = (e) => {
|
|
14220
14272
|
e !== n && (r(e), (e ? t.onOpen : t.onClose)?.());
|
|
14221
14273
|
};
|
|
@@ -14226,7 +14278,7 @@ function N_(e = !1, t = {}) {
|
|
|
14226
14278
|
toggle: () => i(!n)
|
|
14227
14279
|
};
|
|
14228
14280
|
}
|
|
14229
|
-
function
|
|
14281
|
+
function F_(e, t = {}) {
|
|
14230
14282
|
let [n, r] = Z(() => Er(e)), { limit: i } = t;
|
|
14231
14283
|
return {
|
|
14232
14284
|
value: n.present,
|
|
@@ -14239,7 +14291,7 @@ function P_(e, t = {}) {
|
|
|
14239
14291
|
reset: Bl((t) => r(Er(t === void 0 ? e : t)), [e])
|
|
14240
14292
|
};
|
|
14241
14293
|
}
|
|
14242
|
-
function
|
|
14294
|
+
function I_(e, t = {}) {
|
|
14243
14295
|
let [n, r] = Z(() => [...t.initial ?? []]), i = t.key ?? ((e) => e), { multiple: a } = t, o = (e) => Rr(n, e, i), s = e.length > 0 && e.every(o);
|
|
14244
14296
|
return {
|
|
14245
14297
|
selected: n,
|
|
@@ -14261,18 +14313,18 @@ function F_(e, t = {}) {
|
|
|
14261
14313
|
}
|
|
14262
14314
|
//#endregion
|
|
14263
14315
|
//#region src/hooks/focus.ts
|
|
14264
|
-
var
|
|
14265
|
-
function
|
|
14316
|
+
var L_ = typeof document > "u" ? Y : Wl;
|
|
14317
|
+
function R_(e = !0) {
|
|
14266
14318
|
let [t, n] = Z(null);
|
|
14267
14319
|
return Y(() => {
|
|
14268
14320
|
if (t && e) return zs(t);
|
|
14269
14321
|
}, [t, e]), { ref: n };
|
|
14270
14322
|
}
|
|
14271
|
-
function
|
|
14323
|
+
function z_(e, t = {}) {
|
|
14272
14324
|
let n = X(null), r = X(e), { shouldReturnFocus: i = !0 } = t, a = Gl(() => () => {
|
|
14273
14325
|
n.current?.isConnected && n.current.focus();
|
|
14274
14326
|
}, []);
|
|
14275
|
-
return
|
|
14327
|
+
return L_(() => {
|
|
14276
14328
|
e ? n.current = document.activeElement : r.current && i && setTimeout(a), r.current = e;
|
|
14277
14329
|
}, [
|
|
14278
14330
|
e,
|
|
@@ -14280,8 +14332,8 @@ function R_(e, t = {}) {
|
|
|
14280
14332
|
a
|
|
14281
14333
|
]), a;
|
|
14282
14334
|
}
|
|
14283
|
-
function
|
|
14284
|
-
let n =
|
|
14335
|
+
function B_(e, t = {}) {
|
|
14336
|
+
let n = N_(e), { delay: r, tolerance: i } = t, a = Gl(() => Gt((e) => n.current(e), {
|
|
14285
14337
|
delay: r,
|
|
14286
14338
|
tolerance: i,
|
|
14287
14339
|
mouse: !0
|
|
@@ -14303,7 +14355,7 @@ function z_(e, t = {}) {
|
|
|
14303
14355
|
}
|
|
14304
14356
|
//#endregion
|
|
14305
14357
|
//#region src/hooks/observers.ts
|
|
14306
|
-
function
|
|
14358
|
+
function V_(e = {}) {
|
|
14307
14359
|
let [t, n] = Z(null), [r, i] = Z(null), { root: a, rootMargin: o } = e, s = JSON.stringify(e.threshold ?? 0);
|
|
14308
14360
|
return Y(() => {
|
|
14309
14361
|
if (!t || typeof IntersectionObserver > "u") return;
|
|
@@ -14323,14 +14375,14 @@ function B_(e = {}) {
|
|
|
14323
14375
|
entry: r
|
|
14324
14376
|
};
|
|
14325
14377
|
}
|
|
14326
|
-
function
|
|
14327
|
-
let { ref: t, entry: n } =
|
|
14378
|
+
function H_(e = {}) {
|
|
14379
|
+
let { ref: t, entry: n } = V_(e);
|
|
14328
14380
|
return {
|
|
14329
14381
|
ref: t,
|
|
14330
14382
|
inViewport: !!n?.isIntersecting
|
|
14331
14383
|
};
|
|
14332
14384
|
}
|
|
14333
|
-
function
|
|
14385
|
+
function U_() {
|
|
14334
14386
|
let [e, t] = Z(null), [n, r] = Z(null);
|
|
14335
14387
|
return Y(() => {
|
|
14336
14388
|
if (!e || typeof ResizeObserver > "u") return;
|
|
@@ -14341,19 +14393,19 @@ function H_() {
|
|
|
14341
14393
|
rect: n
|
|
14342
14394
|
};
|
|
14343
14395
|
}
|
|
14344
|
-
function
|
|
14345
|
-
let { ref: e, rect: t } =
|
|
14396
|
+
function W_() {
|
|
14397
|
+
let { ref: e, rect: t } = U_();
|
|
14346
14398
|
return {
|
|
14347
14399
|
ref: e,
|
|
14348
14400
|
width: t?.width ?? 0,
|
|
14349
14401
|
height: t?.height ?? 0
|
|
14350
14402
|
};
|
|
14351
14403
|
}
|
|
14352
|
-
var
|
|
14353
|
-
function
|
|
14404
|
+
var G_ = (e) => (window.addEventListener("scroll", e, { passive: !0 }), () => window.removeEventListener("scroll", e));
|
|
14405
|
+
function K_() {
|
|
14354
14406
|
return {
|
|
14355
|
-
x: Kl(
|
|
14356
|
-
y: Kl(
|
|
14407
|
+
x: Kl(G_, () => window.scrollX, () => 0),
|
|
14408
|
+
y: Kl(G_, () => window.scrollY, () => 0),
|
|
14357
14409
|
scrollTo: Bl((e) => window.scrollTo({
|
|
14358
14410
|
left: e.x,
|
|
14359
14411
|
top: e.y,
|
|
@@ -14361,7 +14413,7 @@ function G_() {
|
|
|
14361
14413
|
}), [])
|
|
14362
14414
|
};
|
|
14363
14415
|
}
|
|
14364
|
-
function
|
|
14416
|
+
function q_(e, t = {}) {
|
|
14365
14417
|
let [n, r] = Z(null), i = e.join("\n"), { offset: a = 0 } = t, o = Bl(() => {
|
|
14366
14418
|
let e = i.split("\n").map((e) => document.getElementById(e)).filter((e) => !!e).map((e) => ({
|
|
14367
14419
|
id: e.id,
|
|
@@ -14379,7 +14431,7 @@ function K_(e, t = {}) {
|
|
|
14379
14431
|
update: o
|
|
14380
14432
|
};
|
|
14381
14433
|
}
|
|
14382
|
-
function
|
|
14434
|
+
function J_(e = {}) {
|
|
14383
14435
|
let [t, n] = Z(!1), r = X(0), { offset: i, tolerance: a } = e;
|
|
14384
14436
|
return Y(() => {
|
|
14385
14437
|
r.current = window.scrollY;
|
|
@@ -14392,15 +14444,15 @@ function q_(e = {}) {
|
|
|
14392
14444
|
}
|
|
14393
14445
|
//#endregion
|
|
14394
14446
|
//#region src/hooks/timing.ts
|
|
14395
|
-
function
|
|
14447
|
+
function Y_(e, t) {
|
|
14396
14448
|
let [n, r] = Z(e);
|
|
14397
14449
|
return Y(() => {
|
|
14398
14450
|
let n = setTimeout(() => r(e), t);
|
|
14399
14451
|
return () => clearTimeout(n);
|
|
14400
14452
|
}, [e, t]), n;
|
|
14401
14453
|
}
|
|
14402
|
-
function
|
|
14403
|
-
let r =
|
|
14454
|
+
function X_(e, t, n = {}) {
|
|
14455
|
+
let r = N_(e), { leading: i, maxWait: a } = n, o = Gl(() => nn((...e) => r.current(...e), t, {
|
|
14404
14456
|
leading: i,
|
|
14405
14457
|
maxWait: a
|
|
14406
14458
|
}), [
|
|
@@ -14411,12 +14463,12 @@ function Y_(e, t, n = {}) {
|
|
|
14411
14463
|
]);
|
|
14412
14464
|
return Y(() => o.cancel, [o]), o;
|
|
14413
14465
|
}
|
|
14414
|
-
function
|
|
14415
|
-
let n =
|
|
14466
|
+
function Z_(e, t) {
|
|
14467
|
+
let n = N_(e), r = Gl(() => as((...e) => n.current(...e), t), [n, t]);
|
|
14416
14468
|
return Y(() => r.cancel, [r]), r;
|
|
14417
14469
|
}
|
|
14418
|
-
function
|
|
14419
|
-
let [r, i] = Z(n.autoStart !== !1), a =
|
|
14470
|
+
function Q_(e, t, n = {}) {
|
|
14471
|
+
let [r, i] = Z(n.autoStart !== !1), a = N_(e);
|
|
14420
14472
|
return Y(() => {
|
|
14421
14473
|
if (!r) return;
|
|
14422
14474
|
let e = setInterval(() => a.current(), t);
|
|
@@ -14432,8 +14484,8 @@ function Z_(e, t, n = {}) {
|
|
|
14432
14484
|
toggle: () => i((e) => !e)
|
|
14433
14485
|
};
|
|
14434
14486
|
}
|
|
14435
|
-
function
|
|
14436
|
-
let [r, i] = Z(+!!n.autoStart), [a, o] = Z(!!n.autoStart), s =
|
|
14487
|
+
function $_(e, t, n = {}) {
|
|
14488
|
+
let [r, i] = Z(+!!n.autoStart), [a, o] = Z(!!n.autoStart), s = N_(e);
|
|
14437
14489
|
return Y(() => {
|
|
14438
14490
|
if (!r) return;
|
|
14439
14491
|
let e = setTimeout(() => {
|
|
@@ -14454,7 +14506,7 @@ function Q_(e, t, n = {}) {
|
|
|
14454
14506
|
}
|
|
14455
14507
|
};
|
|
14456
14508
|
}
|
|
14457
|
-
function
|
|
14509
|
+
function ev(e = 6e4, t = {}) {
|
|
14458
14510
|
let [n, r] = Z(t.initialState ?? !1), { events: i, initialState: a } = t, o = i?.join(",");
|
|
14459
14511
|
return Y(() => Xs(r, {
|
|
14460
14512
|
timeout: e,
|
|
@@ -14467,4 +14519,4 @@ function $_(e = 6e4, t = {}) {
|
|
|
14467
14519
|
]), n;
|
|
14468
14520
|
}
|
|
14469
14521
|
//#endregion
|
|
14470
|
-
export {
|
|
14522
|
+
export { Gd as Accordion, Kd as AccordionItem, Dm as ActionBar, bh as Affix, hg as AiLabel, sd as Alert, kg as AngleSlider, qp as AppShell, yh as AspectRatio, Pm as Autocomplete, ld as Avatar, ud as AvatarGroup, dd as Badge, Ah as Banner, g_ as BarsList, Ap as BlockUi, Oh as BottomNavigation, pd as Breadcrumb, fd as BreadcrumbItem, v_ as BulletChart, D as Button, md as ButtonGroup, Jp as Calendar, hd as Card, Df as Carousel, Tf as CascadeSelect, vh as Center, i_ as ChatMessage, a_ as ChatMessages, c_ as ChatPrompt, l_ as ChatSources, p_ as ChatThinking, f_ as ChatToolCall, F as Checkbox, Kh as CheckboxCard, Jh as CheckboxGroup, bd as Chip, xd as ChipGroup, Sh as Collapse, Fg as ColorInput, vf as ColorPicker, Ig as ColorSwatchPicker, ff as Combobox, rm as CommandPalette, Gm as Compare, gg as ConfigProvider, ef as ConfirmDialog, Zf as ConfirmPopup, _h as Container, S as ContextMenu, ue as CopyButton, Mm as Countdown, Tm as DataList, Em as DataListItem, vp as DataView, m as DatePicker, jf as DateRangePicker, Nh as Descriptions, ne as Dialog, q as DialogClose, te as DialogContent, sp as DialogHost, re as DialogTrigger, tf as Divider, Dg as DownloadTrigger, nf as Drawer, af as DrawerClose, of as DrawerContent, rf as DrawerTrigger, Bf as DurationInput, Ug as EmojiPicker, Cm as EmptyState, A as Field, cp as Fieldset, pe as FileTypes, mf as FileUpload, fg as FilterChips, pg as FilterPanel, Sg as FloatingPanel, gd as FormErrorSummary, rg as FormatBytes, tg as FormatDate, ng as FormatDateTime, ig as FormatList, Nm as FormatNumber, Nm as NumberFormatter, eg as FormatRelativeTime, __ as Funnel, Af as Gallery, ph as Gantt, zm as Gauge, hh as Group, Bm as Heatmap, U as Highlight, $h as HotkeysDialog, im as HoverCard, j as IconButton, Mp as Image, bg as ImageCropper, sg as InlineEdit, Np as Inplace, M as Input, lp as InputGroup, up as InputGroupAddon, Eg as JsonInput, wg as JsonViewer, m_ as Kanban, nm as Kbd, yf as Knob, Qh as LandmarkNavigation, dp as Listbox, Zh as LiveAnnouncer, r as LocaleProvider, e_ as LogViewer, n_ as Markdown, Og as Marquee, bf as MaskInput, Eh as Masonry, Bh as MegaMenu, Mg as Mentions, E as Menu, Wf as Menubar, xp as MeterGroup, Uf as MiniCalendar, sm as MonthPicker, b as MultiSelect, lm as NativeSelect, um as NavigationMenu, _m as NavigationProgress, Ih as NotificationCenter, _ as NumberInput, Sp as OrderList, Ep as OrgChart, Gh as OverflowList, fp as OverlayBadge, Dh as PageHeader, o as Pagination, pp as Panel, ae as PasswordInput, og as Persona, Ng as PhoneInput, Op as PickList, Sf as PinInput, cf as Popover, uf as PopoverClose, df as PopoverContent, lf as PopoverTrigger, jd as Progress, ym as ProgressCircle, _g as QrCode, Lf as QuarterPicker, y_ as RadialBar, qh as RadioCard, Cd as RadioGroup, wd as RadioGroupItem, Cf as Rating, i as RecipesProvider, Mh as Result, qg as RingProgress, he as SCHEDULER_DRAG_TYPE, Wm as Sankey, jp as SaveStatus, oh as Scheduler, Pp as ScrollPanel, Ip as ScrollTop, Ch as Scroller, cg as SearchField, Ed as SegmentedControl, kd as SegmentedControlItem, P as Select, h_ as SessionTimeout, qf as SidebarNav, vg as SignaturePad, gh as SimpleGrid, f as Skeleton, Hp as SkipLinks, se as Slider, Xg as Sortable, Lp as SpeedDial, N as Spinner, mp as SplitButton, Rp as Splitter, bm as Spoiler, mh as Stack, Hh as Statistic, vd as StatusDot, Xf as Stepper, Md as Steps, xh as Sticky, Od as Switch, Yh as SwitchGroup, xm as TableOfContents, ie as Tabs, G as TabsContent, K as TabsList, oe as TabsTrigger, cm as TagsInput, w as Textarea, Vf as TimeGrid, Nf as TimePicker, Pf as TimeRangePicker, kp as Timeline, Vd as Toaster, hp as ToggleButton, k as Toggletip, gp as Toolbar, Wd as Tooltip, Ud as TooltipGroup, _p as TopBar, Sm as Tour, le as Tree, Ef as TreeSelect, Vm as Treemap, Uh as Truncate, Xh as VisuallyHidden, Wg as Watermark, mg as Wizard, Lm as YearPicker, Me as announce, Ie as applyEventChange, ap as closeAllDialogs, Qd as confirm, Fd as createToaster, rn as defaultEmojis, sn as describeRecurrence, bn as emptyConditionGroup, En as expandRecurrence, Vn as formatColor, Jn as formatHotkey, Xn as formatHotkeyText, Ar as hotkeyRegistry, Gr as insertTreeNode, Fi as matchesCondition, Gi as moveTreeNode, gm as navigationProgress, ip as openDialog, ua as parseColorText, fa as parseICalendar, ma as parseMentionMarkup, Sa as phoneCountries, $d as prompt, Ja as registerLocale, Xa as removeTreeNode, vs as toICalendar, ws as toMentionMarkup, Ld as toast, Id as toaster, b_ as useClipboard, dg as useColorScheme, X_ as useDebouncedCallback, Y_ as useDebouncedValue, P_ as useDisclosure, M_ as useDocumentTitle, E_ as useDocumentVisibility, W_ as useElementSize, A_ as useEyeDropper, j_ as useFileDialog, z_ as useFocusReturn, R_ as useFocusTrap, O_ as useFullscreen, J_ as useHeadroom, Xp as useHotkey, Yp as useHotkeys, ev as useIdle, H_ as useInViewport, V_ as useIntersection, Q_ as useInterval, em as useIsApple, tm as useLandmarks, zg as useLocalStorage, t as useLocale, B_ as useLongPress, lg as useMediaQuery, w_ as useNetwork, n as useRecipe, ug as useReducedMotion, Qp as useRegisteredHotkeys, U_ as useResizeObserver, q_ as useScrollSpy, I_ as useSelection, Bg as useSessionStorage, F_ as useStateHistory, Z_ as useThrottledCallback, $_ as useTimeout, e as useTranslations, K_ as useWindowScroll };
|