@altimateai/ui-components 0.0.28 → 0.0.29
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/CoachForm.js +3977 -3959
- package/dist/Form.js +804 -744
- package/dist/assets/icons/index.d.ts +2 -0
- package/dist/assets/icons/index.js +17 -16
- package/dist/chatbotV2/index.d.ts +5 -2
- package/dist/index.d.ts +2 -2
- package/dist/index2.js +18 -17
- package/dist/shadcn/index.d.ts +18 -1
- package/dist/shadcn/index.js +76 -74
- package/dist/storybook/AutosizeTextarea.stories.tsx +52 -0
- package/dist/{types-CPlzEfL7.d.ts → types-Dr98SsnM.d.ts} +2 -0
- package/package.json +1 -1
package/dist/Form.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { j as s, C as
|
|
1
|
+
import { j as s, C as wa, a as Sa, b as xr, S as Ca, c as _a, d as jt, e as Na } from "./index2.js";
|
|
2
2
|
import * as a from "react";
|
|
3
|
-
import
|
|
4
|
-
import { R as Ot, T as yr, C as Ye, g as kt, O as qe, c as E, h as Xe, i as $t, D as Lt, j as Ze, k as je, l as Vt, a as Ne, m as Je, n as
|
|
5
|
-
import * as
|
|
6
|
-
const
|
|
3
|
+
import P, { useImperativeHandle as Ea, forwardRef as ee } from "react";
|
|
4
|
+
import { R as Ot, T as yr, C as Ye, g as kt, O as qe, c as E, h as Xe, i as $t, D as Lt, j as Ze, k as je, l as Vt, a as Ne, m as Je, n as br, A as wr, o as Oe, u as q, p as Sr, d as I, q as Cr, F as _r, r as Nr, s as Ra, t as Er, P as $, I as Ia, v as Qe, w as Rr, x as Ir, y as Aa, z as Ft, B as Bt, E as Ar, G as ne, b as xe, H as Ma, J as Da, K as ce, L as Mr, W as Ta, M as Dr, e as Pa, V as ja, N as Oa, S as ka } from "./Stack.js";
|
|
5
|
+
import * as Tr from "react-dom";
|
|
6
|
+
const ad = Ot, ld = yr, sd = Ye, $a = kt, Pr = a.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ s.jsx(
|
|
7
7
|
qe,
|
|
8
8
|
{
|
|
9
9
|
className: E(
|
|
@@ -14,8 +14,8 @@ const rd = Ot, nd = yr, od = Ye, ka = kt, Tr = a.forwardRef(({ className: e, ...
|
|
|
14
14
|
ref: t
|
|
15
15
|
}
|
|
16
16
|
));
|
|
17
|
-
|
|
18
|
-
const
|
|
17
|
+
Pr.displayName = qe.displayName;
|
|
18
|
+
const La = Ze(
|
|
19
19
|
"al-fixed al-z-50 al-gap-4 al-bg-background al-p-6 al-shadow-lg al-transition al-ease-in-out data-[state=open]:al-animate-in data-[state=closed]:al-animate-out data-[state=closed]:al-duration-300 data-[state=open]:al-duration-500",
|
|
20
20
|
{
|
|
21
21
|
variants: {
|
|
@@ -30,26 +30,26 @@ const $a = Ze(
|
|
|
30
30
|
side: "right"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
),
|
|
34
|
-
/* @__PURE__ */ s.jsx(
|
|
35
|
-
/* @__PURE__ */ s.jsxs(Xe, { ref: o, className: E(
|
|
33
|
+
), Va = a.forwardRef(({ side: e = "right", className: r, children: t, ...n }, o) => /* @__PURE__ */ s.jsxs($a, { children: [
|
|
34
|
+
/* @__PURE__ */ s.jsx(Pr, {}),
|
|
35
|
+
/* @__PURE__ */ s.jsxs(Xe, { ref: o, className: E(La({ side: e }), r), ...n, children: [
|
|
36
36
|
t,
|
|
37
37
|
/* @__PURE__ */ s.jsxs(Ye, { className: "al-absolute al-right-4 al-top-4 al-rounded-sm al-opacity-70 al-ring-offset-background al-transition-opacity hover:al-opacity-100 focus:al-outline-none focus:al-ring-2 focus:al-ring-ring focus:al-ring-offset-2 disabled:al-pointer-events-none data-[state=open]:al-bg-secondary", children: [
|
|
38
|
-
/* @__PURE__ */ s.jsx(
|
|
38
|
+
/* @__PURE__ */ s.jsx(wa, { className: "al-h-4 al-w-4" }),
|
|
39
39
|
/* @__PURE__ */ s.jsx("span", { className: "al-sr-only", children: "Close" })
|
|
40
40
|
] })
|
|
41
41
|
] })
|
|
42
42
|
] }));
|
|
43
|
-
|
|
44
|
-
const
|
|
43
|
+
Va.displayName = Xe.displayName;
|
|
44
|
+
const Fa = ({ className: e, ...r }) => /* @__PURE__ */ s.jsx(
|
|
45
45
|
"div",
|
|
46
46
|
{
|
|
47
47
|
className: E("al-flex al-flex-col al-space-y-2 al-text-center sm:al-text-left", e),
|
|
48
48
|
...r
|
|
49
49
|
}
|
|
50
50
|
);
|
|
51
|
-
|
|
52
|
-
const
|
|
51
|
+
Fa.displayName = "SheetHeader";
|
|
52
|
+
const Ba = ({ className: e, ...r }) => /* @__PURE__ */ s.jsx(
|
|
53
53
|
"div",
|
|
54
54
|
{
|
|
55
55
|
className: E(
|
|
@@ -59,8 +59,8 @@ const Fa = ({ className: e, ...r }) => /* @__PURE__ */ s.jsx(
|
|
|
59
59
|
...r
|
|
60
60
|
}
|
|
61
61
|
);
|
|
62
|
-
|
|
63
|
-
const
|
|
62
|
+
Ba.displayName = "SheetFooter";
|
|
63
|
+
const Ga = a.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ s.jsx(
|
|
64
64
|
$t,
|
|
65
65
|
{
|
|
66
66
|
ref: t,
|
|
@@ -68,8 +68,8 @@ const Ba = a.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ s.jsx(
|
|
|
68
68
|
...r
|
|
69
69
|
}
|
|
70
70
|
));
|
|
71
|
-
|
|
72
|
-
const
|
|
71
|
+
Ga.displayName = $t.displayName;
|
|
72
|
+
const Ka = a.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ s.jsx(
|
|
73
73
|
Lt,
|
|
74
74
|
{
|
|
75
75
|
ref: t,
|
|
@@ -77,34 +77,92 @@ const Ga = a.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ s.jsx(
|
|
|
77
77
|
...r
|
|
78
78
|
}
|
|
79
79
|
));
|
|
80
|
-
|
|
80
|
+
Ka.displayName = Lt.displayName;
|
|
81
|
+
const Ua = ({
|
|
82
|
+
textAreaRef: e,
|
|
83
|
+
triggerAutoSize: r,
|
|
84
|
+
maxHeight: t = Number.MAX_SAFE_INTEGER,
|
|
85
|
+
minHeight: n = 0
|
|
86
|
+
}) => {
|
|
87
|
+
const [o, l] = a.useState(!0);
|
|
88
|
+
a.useEffect(() => {
|
|
89
|
+
const c = e.current;
|
|
90
|
+
if (c) {
|
|
91
|
+
o && (c.style.minHeight = `${n + 6}px`, t > n && (c.style.maxHeight = `${t}px`), l(!1)), c.style.height = `${n + 6}px`;
|
|
92
|
+
const d = c.scrollHeight;
|
|
93
|
+
d > t ? c.style.height = `${t}px` : c.style.height = `${d + 6}px`;
|
|
94
|
+
}
|
|
95
|
+
}, [o, t, n, e, r]);
|
|
96
|
+
}, Ha = a.forwardRef(
|
|
97
|
+
({
|
|
98
|
+
maxHeight: e = Number.MAX_SAFE_INTEGER,
|
|
99
|
+
minHeight: r = 52,
|
|
100
|
+
className: t,
|
|
101
|
+
onChange: n,
|
|
102
|
+
value: o,
|
|
103
|
+
...l
|
|
104
|
+
}, i) => {
|
|
105
|
+
const c = a.useRef(null), [d, u] = a.useState("");
|
|
106
|
+
return Ua({
|
|
107
|
+
textAreaRef: c,
|
|
108
|
+
triggerAutoSize: d,
|
|
109
|
+
maxHeight: e,
|
|
110
|
+
minHeight: r
|
|
111
|
+
}), Ea(i, () => ({
|
|
112
|
+
textArea: c.current,
|
|
113
|
+
focus: () => {
|
|
114
|
+
var f;
|
|
115
|
+
return (f = c == null ? void 0 : c.current) == null ? void 0 : f.focus();
|
|
116
|
+
},
|
|
117
|
+
maxHeight: e,
|
|
118
|
+
minHeight: r
|
|
119
|
+
})), a.useEffect(() => {
|
|
120
|
+
u(o);
|
|
121
|
+
}, [l == null ? void 0 : l.defaultValue, o]), /* @__PURE__ */ s.jsx(
|
|
122
|
+
"textarea",
|
|
123
|
+
{
|
|
124
|
+
...l,
|
|
125
|
+
value: o,
|
|
126
|
+
ref: c,
|
|
127
|
+
className: E(
|
|
128
|
+
"al-flex al-w-full al-rounded-md al-border al-border-input al-bg-background al-px-3 al-py-2 al-text-sm al-ring-offset-background al-placeholder:al-text-muted-foreground al-focus-visible:al-outline-none al-focus-visible:al-ring-2 al-focus-visible:al-ring-ring al-focus-visible:al-ring-offset-2 al-disabled:al-cursor-not-allowed al-disabled:al-opacity-50",
|
|
129
|
+
t
|
|
130
|
+
),
|
|
131
|
+
onChange: (f) => {
|
|
132
|
+
u(f.target.value), n == null || n(f);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
);
|
|
138
|
+
Ha.displayName = "AutosizeTextarea";
|
|
81
139
|
var jr = a.forwardRef((e, r) => {
|
|
82
|
-
const { children: t, ...n } = e, o = a.Children.toArray(t), l = o.find(
|
|
140
|
+
const { children: t, ...n } = e, o = a.Children.toArray(t), l = o.find(za);
|
|
83
141
|
if (l) {
|
|
84
142
|
const i = l.props.children, c = o.map((d) => d === l ? a.Children.count(i) > 1 ? a.Children.only(null) : a.isValidElement(i) ? i.props.children : null : d);
|
|
85
|
-
return /* @__PURE__ */ s.jsx(
|
|
143
|
+
return /* @__PURE__ */ s.jsx(bt, { ...n, ref: r, children: a.isValidElement(i) ? a.cloneElement(i, void 0, c) : null });
|
|
86
144
|
}
|
|
87
|
-
return /* @__PURE__ */ s.jsx(
|
|
145
|
+
return /* @__PURE__ */ s.jsx(bt, { ...n, ref: r, children: t });
|
|
88
146
|
});
|
|
89
147
|
jr.displayName = "Slot";
|
|
90
|
-
var
|
|
148
|
+
var bt = a.forwardRef((e, r) => {
|
|
91
149
|
const { children: t, ...n } = e;
|
|
92
150
|
if (a.isValidElement(t)) {
|
|
93
|
-
const o =
|
|
151
|
+
const o = qa(t);
|
|
94
152
|
return a.cloneElement(t, {
|
|
95
|
-
...
|
|
153
|
+
...Ya(n, t.props),
|
|
96
154
|
// @ts-ignore
|
|
97
155
|
ref: r ? je(r, o) : o
|
|
98
156
|
});
|
|
99
157
|
}
|
|
100
158
|
return a.Children.count(t) > 1 ? a.Children.only(null) : null;
|
|
101
159
|
});
|
|
102
|
-
|
|
103
|
-
var
|
|
104
|
-
function
|
|
105
|
-
return a.isValidElement(e) && e.type ===
|
|
160
|
+
bt.displayName = "SlotClone";
|
|
161
|
+
var Wa = ({ children: e }) => /* @__PURE__ */ s.jsx(s.Fragment, { children: e });
|
|
162
|
+
function za(e) {
|
|
163
|
+
return a.isValidElement(e) && e.type === Wa;
|
|
106
164
|
}
|
|
107
|
-
function
|
|
165
|
+
function Ya(e, r) {
|
|
108
166
|
const t = { ...r };
|
|
109
167
|
for (const n in r) {
|
|
110
168
|
const o = e[n], l = r[n];
|
|
@@ -114,22 +172,22 @@ function Ua(e, r) {
|
|
|
114
172
|
}
|
|
115
173
|
return { ...e, ...t };
|
|
116
174
|
}
|
|
117
|
-
function
|
|
175
|
+
function qa(e) {
|
|
118
176
|
var n, o;
|
|
119
177
|
let r = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, t = r && "isReactWarning" in r && r.isReactWarning;
|
|
120
178
|
return t ? e.ref : (r = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
|
|
121
179
|
}
|
|
122
|
-
var
|
|
123
|
-
ltr: [...
|
|
124
|
-
rtl: [...
|
|
125
|
-
},
|
|
180
|
+
var wt = ["Enter", " "], Xa = ["ArrowDown", "PageUp", "Home"], Or = ["ArrowUp", "PageDown", "End"], Za = [...Xa, ...Or], Ja = {
|
|
181
|
+
ltr: [...wt, "ArrowRight"],
|
|
182
|
+
rtl: [...wt, "ArrowLeft"]
|
|
183
|
+
}, Qa = {
|
|
126
184
|
ltr: ["ArrowLeft"],
|
|
127
185
|
rtl: ["ArrowRight"]
|
|
128
|
-
}, ke = "Menu", [De,
|
|
129
|
-
|
|
186
|
+
}, ke = "Menu", [De, el, tl] = Vt(ke), [Se, kr] = Ne(ke, [
|
|
187
|
+
tl,
|
|
130
188
|
Je,
|
|
131
|
-
|
|
132
|
-
]), $e = Je(), $r =
|
|
189
|
+
br
|
|
190
|
+
]), $e = Je(), $r = br(), [Lr, pe] = Se(ke), [rl, Le] = Se(ke), Vr = (e) => {
|
|
133
191
|
const { __scopeMenu: r, open: t = !1, children: n, dir: o, onOpenChange: l, modal: i = !0 } = e, c = $e(r), [d, u] = a.useState(null), f = a.useRef(!1), p = Qe(l), g = Ft(o);
|
|
134
192
|
return a.useEffect(() => {
|
|
135
193
|
const x = () => {
|
|
@@ -147,7 +205,7 @@ var bt = ["Enter", " "], za = ["ArrowDown", "PageUp", "Home"], Or = ["ArrowUp",
|
|
|
147
205
|
content: d,
|
|
148
206
|
onContentChange: u,
|
|
149
207
|
children: /* @__PURE__ */ s.jsx(
|
|
150
|
-
|
|
208
|
+
rl,
|
|
151
209
|
{
|
|
152
210
|
scope: r,
|
|
153
211
|
onClose: a.useCallback(() => p(!1), [p]),
|
|
@@ -161,33 +219,33 @@ var bt = ["Enter", " "], za = ["ArrowDown", "PageUp", "Home"], Or = ["ArrowUp",
|
|
|
161
219
|
) });
|
|
162
220
|
};
|
|
163
221
|
Vr.displayName = ke;
|
|
164
|
-
var
|
|
222
|
+
var nl = "MenuAnchor", Gt = a.forwardRef(
|
|
165
223
|
(e, r) => {
|
|
166
224
|
const { __scopeMenu: t, ...n } = e, o = $e(t);
|
|
167
|
-
return /* @__PURE__ */ s.jsx(
|
|
225
|
+
return /* @__PURE__ */ s.jsx(wr, { ...o, ...n, ref: r });
|
|
168
226
|
}
|
|
169
227
|
);
|
|
170
|
-
Gt.displayName =
|
|
171
|
-
var
|
|
228
|
+
Gt.displayName = nl;
|
|
229
|
+
var Kt = "MenuPortal", [ol, Fr] = Se(Kt, {
|
|
172
230
|
forceMount: void 0
|
|
173
231
|
}), Br = (e) => {
|
|
174
|
-
const { __scopeMenu: r, forceMount: t, children: n, container: o } = e, l = pe(
|
|
175
|
-
return /* @__PURE__ */ s.jsx(
|
|
232
|
+
const { __scopeMenu: r, forceMount: t, children: n, container: o } = e, l = pe(Kt, r);
|
|
233
|
+
return /* @__PURE__ */ s.jsx(ol, { scope: r, forceMount: t, children: /* @__PURE__ */ s.jsx(Oe, { present: t || l.open, children: /* @__PURE__ */ s.jsx(Ar, { asChild: !0, container: o, children: n }) }) });
|
|
176
234
|
};
|
|
177
|
-
Br.displayName =
|
|
178
|
-
var se = "MenuContent", [
|
|
235
|
+
Br.displayName = Kt;
|
|
236
|
+
var se = "MenuContent", [al, Ut] = Se(se), Gr = a.forwardRef(
|
|
179
237
|
(e, r) => {
|
|
180
238
|
const t = Fr(se, e.__scopeMenu), { forceMount: n = t.forceMount, ...o } = e, l = pe(se, e.__scopeMenu), i = Le(se, e.__scopeMenu);
|
|
181
|
-
return /* @__PURE__ */ s.jsx(De.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ s.jsx(Oe, { present: n || l.open, children: /* @__PURE__ */ s.jsx(De.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ s.jsx(
|
|
239
|
+
return /* @__PURE__ */ s.jsx(De.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ s.jsx(Oe, { present: n || l.open, children: /* @__PURE__ */ s.jsx(De.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ s.jsx(ll, { ...o, ref: r }) : /* @__PURE__ */ s.jsx(sl, { ...o, ref: r }) }) }) });
|
|
182
240
|
}
|
|
183
|
-
),
|
|
241
|
+
), ll = a.forwardRef(
|
|
184
242
|
(e, r) => {
|
|
185
243
|
const t = pe(se, e.__scopeMenu), n = a.useRef(null), o = q(r, n);
|
|
186
244
|
return a.useEffect(() => {
|
|
187
245
|
const l = n.current;
|
|
188
246
|
if (l) return Sr(l);
|
|
189
247
|
}, []), /* @__PURE__ */ s.jsx(
|
|
190
|
-
|
|
248
|
+
Ht,
|
|
191
249
|
{
|
|
192
250
|
...e,
|
|
193
251
|
ref: o,
|
|
@@ -203,10 +261,10 @@ var se = "MenuContent", [rl, Kt] = Se(se), Gr = a.forwardRef(
|
|
|
203
261
|
}
|
|
204
262
|
);
|
|
205
263
|
}
|
|
206
|
-
),
|
|
264
|
+
), sl = a.forwardRef((e, r) => {
|
|
207
265
|
const t = pe(se, e.__scopeMenu);
|
|
208
266
|
return /* @__PURE__ */ s.jsx(
|
|
209
|
-
|
|
267
|
+
Ht,
|
|
210
268
|
{
|
|
211
269
|
...e,
|
|
212
270
|
ref: r,
|
|
@@ -216,7 +274,7 @@ var se = "MenuContent", [rl, Kt] = Se(se), Gr = a.forwardRef(
|
|
|
216
274
|
onDismiss: () => t.onOpenChange(!1)
|
|
217
275
|
}
|
|
218
276
|
);
|
|
219
|
-
}),
|
|
277
|
+
}), Ht = a.forwardRef(
|
|
220
278
|
(e, r) => {
|
|
221
279
|
const {
|
|
222
280
|
__scopeMenu: t,
|
|
@@ -233,23 +291,23 @@ var se = "MenuContent", [rl, Kt] = Se(se), Gr = a.forwardRef(
|
|
|
233
291
|
onDismiss: x,
|
|
234
292
|
disableOutsideScroll: y,
|
|
235
293
|
...v
|
|
236
|
-
} = e,
|
|
237
|
-
var
|
|
238
|
-
const Y =
|
|
294
|
+
} = e, b = pe(se, t), S = Le(se, t), h = $e(t), _ = $r(t), L = el(t), [V, j] = a.useState(null), T = a.useRef(null), U = q(r, T, b.onContentChange), G = a.useRef(0), H = a.useRef(""), re = a.useRef(0), Z = a.useRef(null), oe = a.useRef("right"), W = a.useRef(0), J = y ? Ir : a.Fragment, K = y ? { as: jr, allowPinchZoom: !0 } : void 0, Q = (N) => {
|
|
295
|
+
var w, M;
|
|
296
|
+
const Y = H.current + N, X = L().filter((O) => !O.disabled), m = document.activeElement, R = (w = X.find((O) => O.ref.current === m)) == null ? void 0 : w.textValue, A = X.map((O) => O.textValue), C = yl(A, Y, R), D = (M = X.find((O) => O.textValue === C)) == null ? void 0 : M.ref.current;
|
|
239
297
|
(function O(k) {
|
|
240
|
-
|
|
298
|
+
H.current = k, window.clearTimeout(G.current), k !== "" && (G.current = window.setTimeout(() => O(""), 1e3));
|
|
241
299
|
})(Y), D && setTimeout(() => D.focus());
|
|
242
300
|
};
|
|
243
301
|
a.useEffect(() => () => window.clearTimeout(G.current), []), Cr();
|
|
244
302
|
const z = a.useCallback((N) => {
|
|
245
303
|
var X, m;
|
|
246
|
-
return oe.current === ((X = Z.current) == null ? void 0 : X.side) &&
|
|
304
|
+
return oe.current === ((X = Z.current) == null ? void 0 : X.side) && wl(N, (m = Z.current) == null ? void 0 : m.area);
|
|
247
305
|
}, []);
|
|
248
306
|
return /* @__PURE__ */ s.jsx(
|
|
249
|
-
|
|
307
|
+
al,
|
|
250
308
|
{
|
|
251
309
|
scope: t,
|
|
252
|
-
searchRef:
|
|
310
|
+
searchRef: H,
|
|
253
311
|
onItemEnter: a.useCallback(
|
|
254
312
|
(N) => {
|
|
255
313
|
z(N) && N.preventDefault();
|
|
@@ -259,7 +317,7 @@ var se = "MenuContent", [rl, Kt] = Se(se), Gr = a.forwardRef(
|
|
|
259
317
|
onItemLeave: a.useCallback(
|
|
260
318
|
(N) => {
|
|
261
319
|
var Y;
|
|
262
|
-
z(N) || ((Y =
|
|
320
|
+
z(N) || ((Y = T.current) == null || Y.focus(), j(null));
|
|
263
321
|
},
|
|
264
322
|
[z]
|
|
265
323
|
),
|
|
@@ -273,14 +331,14 @@ var se = "MenuContent", [rl, Kt] = Se(se), Gr = a.forwardRef(
|
|
|
273
331
|
onPointerGraceIntentChange: a.useCallback((N) => {
|
|
274
332
|
Z.current = N;
|
|
275
333
|
}, []),
|
|
276
|
-
children: /* @__PURE__ */ s.jsx(J, { ...
|
|
334
|
+
children: /* @__PURE__ */ s.jsx(J, { ...K, children: /* @__PURE__ */ s.jsx(
|
|
277
335
|
_r,
|
|
278
336
|
{
|
|
279
337
|
asChild: !0,
|
|
280
338
|
trapped: o,
|
|
281
339
|
onMountAutoFocus: I(l, (N) => {
|
|
282
340
|
var Y;
|
|
283
|
-
N.preventDefault(), (Y =
|
|
341
|
+
N.preventDefault(), (Y = T.current) == null || Y.focus({ preventScroll: !0 });
|
|
284
342
|
}),
|
|
285
343
|
onUnmountAutoFocus: i,
|
|
286
344
|
children: /* @__PURE__ */ s.jsx(
|
|
@@ -294,7 +352,7 @@ var se = "MenuContent", [rl, Kt] = Se(se), Gr = a.forwardRef(
|
|
|
294
352
|
onInteractOutside: g,
|
|
295
353
|
onDismiss: x,
|
|
296
354
|
children: /* @__PURE__ */ s.jsx(
|
|
297
|
-
|
|
355
|
+
Ra,
|
|
298
356
|
{
|
|
299
357
|
asChild: !0,
|
|
300
358
|
..._,
|
|
@@ -312,28 +370,28 @@ var se = "MenuContent", [rl, Kt] = Se(se), Gr = a.forwardRef(
|
|
|
312
370
|
{
|
|
313
371
|
role: "menu",
|
|
314
372
|
"aria-orientation": "vertical",
|
|
315
|
-
"data-state": an(
|
|
373
|
+
"data-state": an(b.open),
|
|
316
374
|
"data-radix-menu-content": "",
|
|
317
375
|
dir: S.dir,
|
|
318
376
|
...h,
|
|
319
377
|
...v,
|
|
320
|
-
ref:
|
|
378
|
+
ref: U,
|
|
321
379
|
style: { outline: "none", ...v.style },
|
|
322
380
|
onKeyDown: I(v.onKeyDown, (N) => {
|
|
323
381
|
const X = N.target.closest("[data-radix-menu-content]") === N.currentTarget, m = N.ctrlKey || N.altKey || N.metaKey, R = N.key.length === 1;
|
|
324
382
|
X && (N.key === "Tab" && N.preventDefault(), !m && R && Q(N.key));
|
|
325
|
-
const
|
|
326
|
-
if (N.target !==
|
|
383
|
+
const A = T.current;
|
|
384
|
+
if (N.target !== A || !Za.includes(N.key)) return;
|
|
327
385
|
N.preventDefault();
|
|
328
|
-
const D = L().filter((
|
|
329
|
-
Or.includes(N.key) && D.reverse(),
|
|
386
|
+
const D = L().filter((w) => !w.disabled).map((w) => w.ref.current);
|
|
387
|
+
Or.includes(N.key) && D.reverse(), hl(D);
|
|
330
388
|
}),
|
|
331
389
|
onBlur: I(e.onBlur, (N) => {
|
|
332
|
-
N.currentTarget.contains(N.target) || (window.clearTimeout(G.current),
|
|
390
|
+
N.currentTarget.contains(N.target) || (window.clearTimeout(G.current), H.current = "");
|
|
333
391
|
}),
|
|
334
392
|
onPointerMove: I(
|
|
335
393
|
e.onPointerMove,
|
|
336
|
-
|
|
394
|
+
Te((N) => {
|
|
337
395
|
const Y = N.target, X = W.current !== N.clientX;
|
|
338
396
|
if (N.currentTarget.contains(Y) && X) {
|
|
339
397
|
const m = N.clientX > W.current ? "right" : "left";
|
|
@@ -354,31 +412,31 @@ var se = "MenuContent", [rl, Kt] = Se(se), Gr = a.forwardRef(
|
|
|
354
412
|
}
|
|
355
413
|
);
|
|
356
414
|
Gr.displayName = se;
|
|
357
|
-
var
|
|
415
|
+
var il = "MenuGroup", Wt = a.forwardRef(
|
|
358
416
|
(e, r) => {
|
|
359
417
|
const { __scopeMenu: t, ...n } = e;
|
|
360
418
|
return /* @__PURE__ */ s.jsx($.div, { role: "group", ...n, ref: r });
|
|
361
419
|
}
|
|
362
420
|
);
|
|
363
|
-
Wt.displayName =
|
|
364
|
-
var
|
|
421
|
+
Wt.displayName = il;
|
|
422
|
+
var cl = "MenuLabel", Kr = a.forwardRef(
|
|
365
423
|
(e, r) => {
|
|
366
424
|
const { __scopeMenu: t, ...n } = e;
|
|
367
425
|
return /* @__PURE__ */ s.jsx($.div, { ...n, ref: r });
|
|
368
426
|
}
|
|
369
427
|
);
|
|
370
|
-
|
|
371
|
-
var
|
|
428
|
+
Kr.displayName = cl;
|
|
429
|
+
var Ue = "MenuItem", sr = "menu.itemSelect", et = a.forwardRef(
|
|
372
430
|
(e, r) => {
|
|
373
|
-
const { disabled: t = !1, onSelect: n, ...o } = e, l = a.useRef(null), i = Le(
|
|
431
|
+
const { disabled: t = !1, onSelect: n, ...o } = e, l = a.useRef(null), i = Le(Ue, e.__scopeMenu), c = Ut(Ue, e.__scopeMenu), d = q(r, l), u = a.useRef(!1), f = () => {
|
|
374
432
|
const p = l.current;
|
|
375
433
|
if (!t && p) {
|
|
376
434
|
const g = new CustomEvent(sr, { bubbles: !0, cancelable: !0 });
|
|
377
|
-
p.addEventListener(sr, (x) => n == null ? void 0 : n(x), { once: !0 }),
|
|
435
|
+
p.addEventListener(sr, (x) => n == null ? void 0 : n(x), { once: !0 }), Aa(p, g), g.defaultPrevented ? u.current = !1 : i.onClose();
|
|
378
436
|
}
|
|
379
437
|
};
|
|
380
438
|
return /* @__PURE__ */ s.jsx(
|
|
381
|
-
|
|
439
|
+
Ur,
|
|
382
440
|
{
|
|
383
441
|
...o,
|
|
384
442
|
ref: d,
|
|
@@ -394,16 +452,16 @@ var Ke = "MenuItem", sr = "menu.itemSelect", et = a.forwardRef(
|
|
|
394
452
|
}),
|
|
395
453
|
onKeyDown: I(e.onKeyDown, (p) => {
|
|
396
454
|
const g = c.searchRef.current !== "";
|
|
397
|
-
t || g && p.key === " " ||
|
|
455
|
+
t || g && p.key === " " || wt.includes(p.key) && (p.currentTarget.click(), p.preventDefault());
|
|
398
456
|
})
|
|
399
457
|
}
|
|
400
458
|
);
|
|
401
459
|
}
|
|
402
460
|
);
|
|
403
|
-
et.displayName =
|
|
404
|
-
var
|
|
461
|
+
et.displayName = Ue;
|
|
462
|
+
var Ur = a.forwardRef(
|
|
405
463
|
(e, r) => {
|
|
406
|
-
const { __scopeMenu: t, disabled: n = !1, textValue: o, ...l } = e, i =
|
|
464
|
+
const { __scopeMenu: t, disabled: n = !1, textValue: o, ...l } = e, i = Ut(Ue, t), c = $r(t), d = a.useRef(null), u = q(r, d), [f, p] = a.useState(!1), [g, x] = a.useState("");
|
|
407
465
|
return a.useEffect(() => {
|
|
408
466
|
const y = d.current;
|
|
409
467
|
y && x((y.textContent ?? "").trim());
|
|
@@ -413,7 +471,7 @@ var Kr = a.forwardRef(
|
|
|
413
471
|
scope: t,
|
|
414
472
|
disabled: n,
|
|
415
473
|
textValue: o ?? g,
|
|
416
|
-
children: /* @__PURE__ */ s.jsx(
|
|
474
|
+
children: /* @__PURE__ */ s.jsx(Ia, { asChild: !0, ...c, focusable: !n, children: /* @__PURE__ */ s.jsx(
|
|
417
475
|
$.div,
|
|
418
476
|
{
|
|
419
477
|
role: "menuitem",
|
|
@@ -424,13 +482,13 @@ var Kr = a.forwardRef(
|
|
|
424
482
|
ref: u,
|
|
425
483
|
onPointerMove: I(
|
|
426
484
|
e.onPointerMove,
|
|
427
|
-
|
|
485
|
+
Te((y) => {
|
|
428
486
|
n ? i.onItemLeave(y) : (i.onItemEnter(y), y.defaultPrevented || y.currentTarget.focus({ preventScroll: !0 }));
|
|
429
487
|
})
|
|
430
488
|
),
|
|
431
489
|
onPointerLeave: I(
|
|
432
490
|
e.onPointerLeave,
|
|
433
|
-
|
|
491
|
+
Te((y) => i.onItemLeave(y))
|
|
434
492
|
),
|
|
435
493
|
onFocus: I(e.onFocus, () => p(!0)),
|
|
436
494
|
onBlur: I(e.onBlur, () => p(!1))
|
|
@@ -439,41 +497,41 @@ var Kr = a.forwardRef(
|
|
|
439
497
|
}
|
|
440
498
|
);
|
|
441
499
|
}
|
|
442
|
-
),
|
|
500
|
+
), dl = "MenuCheckboxItem", Hr = a.forwardRef(
|
|
443
501
|
(e, r) => {
|
|
444
502
|
const { checked: t = !1, onCheckedChange: n, ...o } = e;
|
|
445
503
|
return /* @__PURE__ */ s.jsx(Xr, { scope: e.__scopeMenu, checked: t, children: /* @__PURE__ */ s.jsx(
|
|
446
504
|
et,
|
|
447
505
|
{
|
|
448
506
|
role: "menuitemcheckbox",
|
|
449
|
-
"aria-checked":
|
|
507
|
+
"aria-checked": He(t) ? "mixed" : t,
|
|
450
508
|
...o,
|
|
451
509
|
ref: r,
|
|
452
510
|
"data-state": qt(t),
|
|
453
511
|
onSelect: I(
|
|
454
512
|
o.onSelect,
|
|
455
|
-
() => n == null ? void 0 : n(
|
|
513
|
+
() => n == null ? void 0 : n(He(t) ? !0 : !t),
|
|
456
514
|
{ checkForDefaultPrevented: !1 }
|
|
457
515
|
)
|
|
458
516
|
}
|
|
459
517
|
) });
|
|
460
518
|
}
|
|
461
519
|
);
|
|
462
|
-
|
|
463
|
-
var Wr = "MenuRadioGroup", [
|
|
520
|
+
Hr.displayName = dl;
|
|
521
|
+
var Wr = "MenuRadioGroup", [ul, pl] = Se(
|
|
464
522
|
Wr,
|
|
465
523
|
{ value: void 0, onValueChange: () => {
|
|
466
524
|
} }
|
|
467
525
|
), zr = a.forwardRef(
|
|
468
526
|
(e, r) => {
|
|
469
527
|
const { value: t, onValueChange: n, ...o } = e, l = Qe(n);
|
|
470
|
-
return /* @__PURE__ */ s.jsx(
|
|
528
|
+
return /* @__PURE__ */ s.jsx(ul, { scope: e.__scopeMenu, value: t, onValueChange: l, children: /* @__PURE__ */ s.jsx(Wt, { ...o, ref: r }) });
|
|
471
529
|
}
|
|
472
530
|
);
|
|
473
531
|
zr.displayName = Wr;
|
|
474
532
|
var Yr = "MenuRadioItem", qr = a.forwardRef(
|
|
475
533
|
(e, r) => {
|
|
476
|
-
const { value: t, ...n } = e, o =
|
|
534
|
+
const { value: t, ...n } = e, o = pl(Yr, e.__scopeMenu), l = t === o.value;
|
|
477
535
|
return /* @__PURE__ */ s.jsx(Xr, { scope: e.__scopeMenu, checked: l, children: /* @__PURE__ */ s.jsx(
|
|
478
536
|
et,
|
|
479
537
|
{
|
|
@@ -495,16 +553,16 @@ var Yr = "MenuRadioItem", qr = a.forwardRef(
|
|
|
495
553
|
}
|
|
496
554
|
);
|
|
497
555
|
qr.displayName = Yr;
|
|
498
|
-
var zt = "MenuItemIndicator", [Xr,
|
|
556
|
+
var zt = "MenuItemIndicator", [Xr, fl] = Se(
|
|
499
557
|
zt,
|
|
500
558
|
{ checked: !1 }
|
|
501
559
|
), Zr = a.forwardRef(
|
|
502
560
|
(e, r) => {
|
|
503
|
-
const { __scopeMenu: t, forceMount: n, ...o } = e, l =
|
|
561
|
+
const { __scopeMenu: t, forceMount: n, ...o } = e, l = fl(zt, t);
|
|
504
562
|
return /* @__PURE__ */ s.jsx(
|
|
505
563
|
Oe,
|
|
506
564
|
{
|
|
507
|
-
present: n ||
|
|
565
|
+
present: n || He(l.checked) || l.checked === !0,
|
|
508
566
|
children: /* @__PURE__ */ s.jsx(
|
|
509
567
|
$.span,
|
|
510
568
|
{
|
|
@@ -518,7 +576,7 @@ var zt = "MenuItemIndicator", [Xr, dl] = Se(
|
|
|
518
576
|
}
|
|
519
577
|
);
|
|
520
578
|
Zr.displayName = zt;
|
|
521
|
-
var
|
|
579
|
+
var ml = "MenuSeparator", Jr = a.forwardRef(
|
|
522
580
|
(e, r) => {
|
|
523
581
|
const { __scopeMenu: t, ...n } = e;
|
|
524
582
|
return /* @__PURE__ */ s.jsx(
|
|
@@ -532,15 +590,15 @@ var ul = "MenuSeparator", Jr = a.forwardRef(
|
|
|
532
590
|
);
|
|
533
591
|
}
|
|
534
592
|
);
|
|
535
|
-
Jr.displayName =
|
|
536
|
-
var
|
|
593
|
+
Jr.displayName = ml;
|
|
594
|
+
var gl = "MenuArrow", Qr = a.forwardRef(
|
|
537
595
|
(e, r) => {
|
|
538
596
|
const { __scopeMenu: t, ...n } = e, o = $e(t);
|
|
539
597
|
return /* @__PURE__ */ s.jsx(Rr, { ...o, ...n, ref: r });
|
|
540
598
|
}
|
|
541
599
|
);
|
|
542
|
-
Qr.displayName =
|
|
543
|
-
var Yt = "MenuSub", [
|
|
600
|
+
Qr.displayName = gl;
|
|
601
|
+
var Yt = "MenuSub", [vl, en] = Se(Yt), tn = (e) => {
|
|
544
602
|
const { __scopeMenu: r, children: t, open: n = !1, onOpenChange: o } = e, l = pe(Yt, r), i = $e(r), [c, d] = a.useState(null), [u, f] = a.useState(null), p = Qe(o);
|
|
545
603
|
return a.useEffect(() => (l.open === !1 && p(!1), () => p(!1)), [l.open, p]), /* @__PURE__ */ s.jsx(Bt, { ...i, children: /* @__PURE__ */ s.jsx(
|
|
546
604
|
Lr,
|
|
@@ -551,7 +609,7 @@ var Yt = "MenuSub", [fl, en] = Se(Yt), tn = (e) => {
|
|
|
551
609
|
content: u,
|
|
552
610
|
onContentChange: f,
|
|
553
611
|
children: /* @__PURE__ */ s.jsx(
|
|
554
|
-
|
|
612
|
+
vl,
|
|
555
613
|
{
|
|
556
614
|
scope: r,
|
|
557
615
|
contentId: ne(),
|
|
@@ -567,7 +625,7 @@ var Yt = "MenuSub", [fl, en] = Se(Yt), tn = (e) => {
|
|
|
567
625
|
tn.displayName = Yt;
|
|
568
626
|
var Ie = "MenuSubTrigger", rn = a.forwardRef(
|
|
569
627
|
(e, r) => {
|
|
570
|
-
const t = pe(Ie, e.__scopeMenu), n = Le(Ie, e.__scopeMenu), o = en(Ie, e.__scopeMenu), l =
|
|
628
|
+
const t = pe(Ie, e.__scopeMenu), n = Le(Ie, e.__scopeMenu), o = en(Ie, e.__scopeMenu), l = Ut(Ie, e.__scopeMenu), i = a.useRef(null), { pointerGraceTimerRef: c, onPointerGraceIntentChange: d } = l, u = { __scopeMenu: e.__scopeMenu }, f = a.useCallback(() => {
|
|
571
629
|
i.current && window.clearTimeout(i.current), i.current = null;
|
|
572
630
|
}, []);
|
|
573
631
|
return a.useEffect(() => f, [f]), a.useEffect(() => {
|
|
@@ -576,7 +634,7 @@ var Ie = "MenuSubTrigger", rn = a.forwardRef(
|
|
|
576
634
|
window.clearTimeout(p), d(null);
|
|
577
635
|
};
|
|
578
636
|
}, [c, d]), /* @__PURE__ */ s.jsx(Gt, { asChild: !0, ...u, children: /* @__PURE__ */ s.jsx(
|
|
579
|
-
|
|
637
|
+
Ur,
|
|
580
638
|
{
|
|
581
639
|
id: o.triggerId,
|
|
582
640
|
"aria-haspopup": "menu",
|
|
@@ -591,7 +649,7 @@ var Ie = "MenuSubTrigger", rn = a.forwardRef(
|
|
|
591
649
|
},
|
|
592
650
|
onPointerMove: I(
|
|
593
651
|
e.onPointerMove,
|
|
594
|
-
|
|
652
|
+
Te((p) => {
|
|
595
653
|
l.onItemEnter(p), !p.defaultPrevented && !e.disabled && !t.open && !i.current && (l.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
|
|
596
654
|
t.onOpenChange(!0), f();
|
|
597
655
|
}, 100));
|
|
@@ -599,12 +657,12 @@ var Ie = "MenuSubTrigger", rn = a.forwardRef(
|
|
|
599
657
|
),
|
|
600
658
|
onPointerLeave: I(
|
|
601
659
|
e.onPointerLeave,
|
|
602
|
-
|
|
660
|
+
Te((p) => {
|
|
603
661
|
var x, y;
|
|
604
662
|
f();
|
|
605
663
|
const g = (x = t.content) == null ? void 0 : x.getBoundingClientRect();
|
|
606
664
|
if (g) {
|
|
607
|
-
const v = (y = t.content) == null ? void 0 : y.dataset.side,
|
|
665
|
+
const v = (y = t.content) == null ? void 0 : y.dataset.side, b = v === "right", S = b ? -5 : 5, h = g[b ? "left" : "right"], _ = g[b ? "right" : "left"];
|
|
608
666
|
l.onPointerGraceIntentChange({
|
|
609
667
|
area: [
|
|
610
668
|
// Apply a bleed on clientX to ensure that our exit point is
|
|
@@ -629,7 +687,7 @@ var Ie = "MenuSubTrigger", rn = a.forwardRef(
|
|
|
629
687
|
onKeyDown: I(e.onKeyDown, (p) => {
|
|
630
688
|
var x;
|
|
631
689
|
const g = l.searchRef.current !== "";
|
|
632
|
-
e.disabled || g && p.key === " " ||
|
|
690
|
+
e.disabled || g && p.key === " " || Ja[n.dir].includes(p.key) && (t.onOpenChange(!0), (x = t.content) == null || x.focus(), p.preventDefault());
|
|
633
691
|
})
|
|
634
692
|
}
|
|
635
693
|
) });
|
|
@@ -640,7 +698,7 @@ var nn = "MenuSubContent", on = a.forwardRef(
|
|
|
640
698
|
(e, r) => {
|
|
641
699
|
const t = Fr(se, e.__scopeMenu), { forceMount: n = t.forceMount, ...o } = e, l = pe(se, e.__scopeMenu), i = Le(se, e.__scopeMenu), c = en(nn, e.__scopeMenu), d = a.useRef(null), u = q(r, d);
|
|
642
700
|
return /* @__PURE__ */ s.jsx(De.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ s.jsx(Oe, { present: n || l.open, children: /* @__PURE__ */ s.jsx(De.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ s.jsx(
|
|
643
|
-
|
|
701
|
+
Ht,
|
|
644
702
|
{
|
|
645
703
|
id: c.contentId,
|
|
646
704
|
"aria-labelledby": c.triggerId,
|
|
@@ -664,7 +722,7 @@ var nn = "MenuSubContent", on = a.forwardRef(
|
|
|
664
722
|
}),
|
|
665
723
|
onKeyDown: I(e.onKeyDown, (f) => {
|
|
666
724
|
var x;
|
|
667
|
-
const p = f.currentTarget.contains(f.target), g =
|
|
725
|
+
const p = f.currentTarget.contains(f.target), g = Qa[i.dir].includes(f.key);
|
|
668
726
|
p && g && (l.onOpenChange(!1), (x = c.trigger) == null || x.focus(), f.preventDefault());
|
|
669
727
|
})
|
|
670
728
|
}
|
|
@@ -675,30 +733,30 @@ on.displayName = nn;
|
|
|
675
733
|
function an(e) {
|
|
676
734
|
return e ? "open" : "closed";
|
|
677
735
|
}
|
|
678
|
-
function
|
|
736
|
+
function He(e) {
|
|
679
737
|
return e === "indeterminate";
|
|
680
738
|
}
|
|
681
739
|
function qt(e) {
|
|
682
|
-
return
|
|
740
|
+
return He(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
683
741
|
}
|
|
684
|
-
function
|
|
742
|
+
function hl(e) {
|
|
685
743
|
const r = document.activeElement;
|
|
686
744
|
for (const t of e)
|
|
687
745
|
if (t === r || (t.focus(), document.activeElement !== r)) return;
|
|
688
746
|
}
|
|
689
|
-
function
|
|
747
|
+
function xl(e, r) {
|
|
690
748
|
return e.map((t, n) => e[(r + n) % e.length]);
|
|
691
749
|
}
|
|
692
|
-
function
|
|
750
|
+
function yl(e, r, t) {
|
|
693
751
|
const o = r.length > 1 && Array.from(r).every((u) => u === r[0]) ? r[0] : r, l = t ? e.indexOf(t) : -1;
|
|
694
|
-
let i =
|
|
752
|
+
let i = xl(e, Math.max(l, 0));
|
|
695
753
|
o.length === 1 && (i = i.filter((u) => u !== t));
|
|
696
754
|
const d = i.find(
|
|
697
755
|
(u) => u.toLowerCase().startsWith(o.toLowerCase())
|
|
698
756
|
);
|
|
699
757
|
return d !== t ? d : void 0;
|
|
700
758
|
}
|
|
701
|
-
function
|
|
759
|
+
function bl(e, r) {
|
|
702
760
|
const { x: t, y: n } = e;
|
|
703
761
|
let o = !1;
|
|
704
762
|
for (let l = 0, i = r.length - 1; l < r.length; i = l++) {
|
|
@@ -707,18 +765,18 @@ function hl(e, r) {
|
|
|
707
765
|
}
|
|
708
766
|
return o;
|
|
709
767
|
}
|
|
710
|
-
function
|
|
768
|
+
function wl(e, r) {
|
|
711
769
|
if (!r) return !1;
|
|
712
770
|
const t = { x: e.clientX, y: e.clientY };
|
|
713
|
-
return
|
|
771
|
+
return bl(t, r);
|
|
714
772
|
}
|
|
715
|
-
function
|
|
773
|
+
function Te(e) {
|
|
716
774
|
return (r) => r.pointerType === "mouse" ? e(r) : void 0;
|
|
717
775
|
}
|
|
718
|
-
var
|
|
776
|
+
var Sl = Vr, Cl = Gt, _l = Br, Nl = Gr, El = Wt, Rl = Kr, Il = et, Al = Hr, Ml = zr, Dl = qr, Tl = Zr, Pl = Jr, jl = Qr, Ol = tn, kl = rn, $l = on, Xt = "DropdownMenu", [Ll, id] = Ne(
|
|
719
777
|
Xt,
|
|
720
778
|
[kr]
|
|
721
|
-
), te = kr(), [
|
|
779
|
+
), te = kr(), [Vl, ln] = Ll(Xt), sn = (e) => {
|
|
722
780
|
const {
|
|
723
781
|
__scopeDropdownMenu: r,
|
|
724
782
|
children: t,
|
|
@@ -733,7 +791,7 @@ var yl = Vr, wl = Gt, bl = Br, Sl = Gr, Cl = Wt, _l = Hr, Nl = et, El = Ur, Rl =
|
|
|
733
791
|
onChange: i
|
|
734
792
|
});
|
|
735
793
|
return /* @__PURE__ */ s.jsx(
|
|
736
|
-
|
|
794
|
+
Vl,
|
|
737
795
|
{
|
|
738
796
|
scope: r,
|
|
739
797
|
triggerId: ne(),
|
|
@@ -743,7 +801,7 @@ var yl = Vr, wl = Gt, bl = Br, Sl = Gr, Cl = Wt, _l = Hr, Nl = et, El = Ur, Rl =
|
|
|
743
801
|
onOpenChange: p,
|
|
744
802
|
onOpenToggle: a.useCallback(() => p((g) => !g), [p]),
|
|
745
803
|
modal: c,
|
|
746
|
-
children: /* @__PURE__ */ s.jsx(
|
|
804
|
+
children: /* @__PURE__ */ s.jsx(Sl, { ...d, open: f, onOpenChange: p, dir: n, modal: c, children: t })
|
|
747
805
|
}
|
|
748
806
|
);
|
|
749
807
|
};
|
|
@@ -751,7 +809,7 @@ sn.displayName = Xt;
|
|
|
751
809
|
var cn = "DropdownMenuTrigger", dn = a.forwardRef(
|
|
752
810
|
(e, r) => {
|
|
753
811
|
const { __scopeDropdownMenu: t, disabled: n = !1, ...o } = e, l = ln(cn, t), i = te(t);
|
|
754
|
-
return /* @__PURE__ */ s.jsx(
|
|
812
|
+
return /* @__PURE__ */ s.jsx(Cl, { asChild: !0, ...i, children: /* @__PURE__ */ s.jsx(
|
|
755
813
|
$.button,
|
|
756
814
|
{
|
|
757
815
|
type: "button",
|
|
@@ -775,16 +833,16 @@ var cn = "DropdownMenuTrigger", dn = a.forwardRef(
|
|
|
775
833
|
}
|
|
776
834
|
);
|
|
777
835
|
dn.displayName = cn;
|
|
778
|
-
var
|
|
836
|
+
var Fl = "DropdownMenuPortal", un = (e) => {
|
|
779
837
|
const { __scopeDropdownMenu: r, ...t } = e, n = te(r);
|
|
780
|
-
return /* @__PURE__ */ s.jsx(
|
|
838
|
+
return /* @__PURE__ */ s.jsx(_l, { ...n, ...t });
|
|
781
839
|
};
|
|
782
|
-
un.displayName =
|
|
840
|
+
un.displayName = Fl;
|
|
783
841
|
var pn = "DropdownMenuContent", fn = a.forwardRef(
|
|
784
842
|
(e, r) => {
|
|
785
843
|
const { __scopeDropdownMenu: t, ...n } = e, o = ln(pn, t), l = te(t), i = a.useRef(!1);
|
|
786
844
|
return /* @__PURE__ */ s.jsx(
|
|
787
|
-
|
|
845
|
+
Nl,
|
|
788
846
|
{
|
|
789
847
|
id: o.contentId,
|
|
790
848
|
"aria-labelledby": o.triggerId,
|
|
@@ -812,75 +870,75 @@ var pn = "DropdownMenuContent", fn = a.forwardRef(
|
|
|
812
870
|
}
|
|
813
871
|
);
|
|
814
872
|
fn.displayName = pn;
|
|
815
|
-
var
|
|
873
|
+
var Bl = "DropdownMenuGroup", mn = a.forwardRef(
|
|
816
874
|
(e, r) => {
|
|
817
875
|
const { __scopeDropdownMenu: t, ...n } = e, o = te(t);
|
|
818
|
-
return /* @__PURE__ */ s.jsx(
|
|
876
|
+
return /* @__PURE__ */ s.jsx(El, { ...o, ...n, ref: r });
|
|
819
877
|
}
|
|
820
878
|
);
|
|
821
|
-
mn.displayName =
|
|
822
|
-
var
|
|
879
|
+
mn.displayName = Bl;
|
|
880
|
+
var Gl = "DropdownMenuLabel", gn = a.forwardRef(
|
|
823
881
|
(e, r) => {
|
|
824
882
|
const { __scopeDropdownMenu: t, ...n } = e, o = te(t);
|
|
825
|
-
return /* @__PURE__ */ s.jsx(
|
|
883
|
+
return /* @__PURE__ */ s.jsx(Rl, { ...o, ...n, ref: r });
|
|
826
884
|
}
|
|
827
885
|
);
|
|
828
|
-
gn.displayName =
|
|
829
|
-
var
|
|
886
|
+
gn.displayName = Gl;
|
|
887
|
+
var Kl = "DropdownMenuItem", vn = a.forwardRef(
|
|
830
888
|
(e, r) => {
|
|
831
889
|
const { __scopeDropdownMenu: t, ...n } = e, o = te(t);
|
|
832
|
-
return /* @__PURE__ */ s.jsx(
|
|
890
|
+
return /* @__PURE__ */ s.jsx(Il, { ...o, ...n, ref: r });
|
|
833
891
|
}
|
|
834
892
|
);
|
|
835
|
-
vn.displayName =
|
|
836
|
-
var
|
|
893
|
+
vn.displayName = Kl;
|
|
894
|
+
var Ul = "DropdownMenuCheckboxItem", hn = a.forwardRef((e, r) => {
|
|
837
895
|
const { __scopeDropdownMenu: t, ...n } = e, o = te(t);
|
|
838
|
-
return /* @__PURE__ */ s.jsx(
|
|
896
|
+
return /* @__PURE__ */ s.jsx(Al, { ...o, ...n, ref: r });
|
|
839
897
|
});
|
|
840
|
-
hn.displayName =
|
|
841
|
-
var
|
|
898
|
+
hn.displayName = Ul;
|
|
899
|
+
var Hl = "DropdownMenuRadioGroup", xn = a.forwardRef((e, r) => {
|
|
842
900
|
const { __scopeDropdownMenu: t, ...n } = e, o = te(t);
|
|
843
|
-
return /* @__PURE__ */ s.jsx(
|
|
901
|
+
return /* @__PURE__ */ s.jsx(Ml, { ...o, ...n, ref: r });
|
|
844
902
|
});
|
|
845
|
-
xn.displayName =
|
|
846
|
-
var
|
|
903
|
+
xn.displayName = Hl;
|
|
904
|
+
var Wl = "DropdownMenuRadioItem", yn = a.forwardRef((e, r) => {
|
|
847
905
|
const { __scopeDropdownMenu: t, ...n } = e, o = te(t);
|
|
848
|
-
return /* @__PURE__ */ s.jsx(
|
|
906
|
+
return /* @__PURE__ */ s.jsx(Dl, { ...o, ...n, ref: r });
|
|
849
907
|
});
|
|
850
|
-
yn.displayName =
|
|
851
|
-
var
|
|
908
|
+
yn.displayName = Wl;
|
|
909
|
+
var zl = "DropdownMenuItemIndicator", bn = a.forwardRef((e, r) => {
|
|
852
910
|
const { __scopeDropdownMenu: t, ...n } = e, o = te(t);
|
|
853
|
-
return /* @__PURE__ */ s.jsx(
|
|
911
|
+
return /* @__PURE__ */ s.jsx(Tl, { ...o, ...n, ref: r });
|
|
854
912
|
});
|
|
855
|
-
|
|
856
|
-
var
|
|
913
|
+
bn.displayName = zl;
|
|
914
|
+
var Yl = "DropdownMenuSeparator", wn = a.forwardRef((e, r) => {
|
|
857
915
|
const { __scopeDropdownMenu: t, ...n } = e, o = te(t);
|
|
858
|
-
return /* @__PURE__ */ s.jsx(
|
|
916
|
+
return /* @__PURE__ */ s.jsx(Pl, { ...o, ...n, ref: r });
|
|
859
917
|
});
|
|
860
|
-
|
|
861
|
-
var
|
|
918
|
+
wn.displayName = Yl;
|
|
919
|
+
var ql = "DropdownMenuArrow", Xl = a.forwardRef(
|
|
862
920
|
(e, r) => {
|
|
863
921
|
const { __scopeDropdownMenu: t, ...n } = e, o = te(t);
|
|
864
|
-
return /* @__PURE__ */ s.jsx(
|
|
922
|
+
return /* @__PURE__ */ s.jsx(jl, { ...o, ...n, ref: r });
|
|
865
923
|
}
|
|
866
924
|
);
|
|
867
|
-
|
|
868
|
-
var
|
|
925
|
+
Xl.displayName = ql;
|
|
926
|
+
var Zl = (e) => {
|
|
869
927
|
const { __scopeDropdownMenu: r, children: t, open: n, onOpenChange: o, defaultOpen: l } = e, i = te(r), [c = !1, d] = xe({
|
|
870
928
|
prop: n,
|
|
871
929
|
defaultProp: l,
|
|
872
930
|
onChange: o
|
|
873
931
|
});
|
|
874
|
-
return /* @__PURE__ */ s.jsx(
|
|
875
|
-
},
|
|
932
|
+
return /* @__PURE__ */ s.jsx(Ol, { ...i, open: c, onOpenChange: d, children: t });
|
|
933
|
+
}, Jl = "DropdownMenuSubTrigger", Sn = a.forwardRef((e, r) => {
|
|
876
934
|
const { __scopeDropdownMenu: t, ...n } = e, o = te(t);
|
|
877
|
-
return /* @__PURE__ */ s.jsx(
|
|
935
|
+
return /* @__PURE__ */ s.jsx(kl, { ...o, ...n, ref: r });
|
|
878
936
|
});
|
|
879
|
-
Sn.displayName =
|
|
880
|
-
var
|
|
937
|
+
Sn.displayName = Jl;
|
|
938
|
+
var Ql = "DropdownMenuSubContent", Cn = a.forwardRef((e, r) => {
|
|
881
939
|
const { __scopeDropdownMenu: t, ...n } = e, o = te(t);
|
|
882
940
|
return /* @__PURE__ */ s.jsx(
|
|
883
|
-
|
|
941
|
+
$l,
|
|
884
942
|
{
|
|
885
943
|
...o,
|
|
886
944
|
...n,
|
|
@@ -896,10 +954,10 @@ var Xl = "DropdownMenuSubContent", Cn = a.forwardRef((e, r) => {
|
|
|
896
954
|
}
|
|
897
955
|
);
|
|
898
956
|
});
|
|
899
|
-
Cn.displayName =
|
|
900
|
-
var
|
|
901
|
-
const
|
|
902
|
-
|
|
957
|
+
Cn.displayName = Ql;
|
|
958
|
+
var es = sn, ts = dn, _n = un, Nn = fn, rs = mn, En = gn, Rn = vn, In = hn, ns = xn, An = yn, Mn = bn, Dn = wn, os = Zl, Tn = Sn, Pn = Cn;
|
|
959
|
+
const cd = es, dd = ts, ud = rs, pd = _n, fd = os, md = ns, as = ee(({ className: e, inset: r, children: t, ...n }, o) => /* @__PURE__ */ s.jsxs(
|
|
960
|
+
Tn,
|
|
903
961
|
{
|
|
904
962
|
ref: o,
|
|
905
963
|
className: E(
|
|
@@ -914,9 +972,9 @@ const ld = Zl, sd = Jl, id = Ql, cd = _n, dd = ts, ud = es, rs = ee(({ className
|
|
|
914
972
|
]
|
|
915
973
|
}
|
|
916
974
|
));
|
|
917
|
-
|
|
918
|
-
const
|
|
919
|
-
|
|
975
|
+
as.displayName = Tn.displayName;
|
|
976
|
+
const ls = ee(({ className: e, ...r }, t) => /* @__PURE__ */ s.jsx(
|
|
977
|
+
Pn,
|
|
920
978
|
{
|
|
921
979
|
ref: t,
|
|
922
980
|
className: E(
|
|
@@ -926,8 +984,8 @@ const ns = ee(({ className: e, ...r }, t) => /* @__PURE__ */ s.jsx(
|
|
|
926
984
|
...r
|
|
927
985
|
}
|
|
928
986
|
));
|
|
929
|
-
|
|
930
|
-
const
|
|
987
|
+
ls.displayName = Pn.displayName;
|
|
988
|
+
const ss = ee(({ className: e, sideOffset: r = 4, ...t }, n) => /* @__PURE__ */ s.jsx(_n, { children: /* @__PURE__ */ s.jsx(
|
|
931
989
|
Nn,
|
|
932
990
|
{
|
|
933
991
|
ref: n,
|
|
@@ -939,8 +997,8 @@ const os = ee(({ className: e, sideOffset: r = 4, ...t }, n) => /* @__PURE__ */
|
|
|
939
997
|
...t
|
|
940
998
|
}
|
|
941
999
|
) }));
|
|
942
|
-
|
|
943
|
-
const
|
|
1000
|
+
ss.displayName = Nn.displayName;
|
|
1001
|
+
const is = ee(({ className: e, inset: r, ...t }, n) => /* @__PURE__ */ s.jsx(
|
|
944
1002
|
Rn,
|
|
945
1003
|
{
|
|
946
1004
|
ref: n,
|
|
@@ -952,8 +1010,8 @@ const as = ee(({ className: e, inset: r, ...t }, n) => /* @__PURE__ */ s.jsx(
|
|
|
952
1010
|
...t
|
|
953
1011
|
}
|
|
954
1012
|
));
|
|
955
|
-
|
|
956
|
-
const
|
|
1013
|
+
is.displayName = Rn.displayName;
|
|
1014
|
+
const cs = ee(({ className: e, children: r, checked: t, ...n }, o) => /* @__PURE__ */ s.jsxs(
|
|
957
1015
|
In,
|
|
958
1016
|
{
|
|
959
1017
|
ref: o,
|
|
@@ -964,14 +1022,14 @@ const ls = ee(({ className: e, children: r, checked: t, ...n }, o) => /* @__PURE
|
|
|
964
1022
|
checked: t,
|
|
965
1023
|
...n,
|
|
966
1024
|
children: [
|
|
967
|
-
/* @__PURE__ */ s.jsx("span", { className: "al-absolute al-left-2 al-flex al-h-3.5 al-w-3.5 al-items-center al-justify-center", children: /* @__PURE__ */ s.jsx(
|
|
1025
|
+
/* @__PURE__ */ s.jsx("span", { className: "al-absolute al-left-2 al-flex al-h-3.5 al-w-3.5 al-items-center al-justify-center", children: /* @__PURE__ */ s.jsx(Mn, { children: /* @__PURE__ */ s.jsx(xr, { className: "al-h-4 al-w-4" }) }) }),
|
|
968
1026
|
r
|
|
969
1027
|
]
|
|
970
1028
|
}
|
|
971
1029
|
));
|
|
972
|
-
|
|
973
|
-
const
|
|
974
|
-
|
|
1030
|
+
cs.displayName = In.displayName;
|
|
1031
|
+
const ds = ee(({ className: e, children: r, ...t }, n) => /* @__PURE__ */ s.jsxs(
|
|
1032
|
+
An,
|
|
975
1033
|
{
|
|
976
1034
|
ref: n,
|
|
977
1035
|
className: E(
|
|
@@ -980,13 +1038,13 @@ const ss = ee(({ className: e, children: r, ...t }, n) => /* @__PURE__ */ s.jsxs
|
|
|
980
1038
|
),
|
|
981
1039
|
...t,
|
|
982
1040
|
children: [
|
|
983
|
-
/* @__PURE__ */ s.jsx("span", { className: "al-absolute al-left-2 al-flex al-h-3.5 al-w-3.5 al-items-center al-justify-center", children: /* @__PURE__ */ s.jsx(
|
|
1041
|
+
/* @__PURE__ */ s.jsx("span", { className: "al-absolute al-left-2 al-flex al-h-3.5 al-w-3.5 al-items-center al-justify-center", children: /* @__PURE__ */ s.jsx(Mn, { children: /* @__PURE__ */ s.jsx(Ca, { className: "al-h-2 al-w-2 al-fill-current" }) }) }),
|
|
984
1042
|
r
|
|
985
1043
|
]
|
|
986
1044
|
}
|
|
987
1045
|
));
|
|
988
|
-
|
|
989
|
-
const
|
|
1046
|
+
ds.displayName = An.displayName;
|
|
1047
|
+
const us = ee(({ className: e, inset: r, ...t }, n) => /* @__PURE__ */ s.jsx(
|
|
990
1048
|
En,
|
|
991
1049
|
{
|
|
992
1050
|
ref: n,
|
|
@@ -994,8 +1052,8 @@ const is = ee(({ className: e, inset: r, ...t }, n) => /* @__PURE__ */ s.jsx(
|
|
|
994
1052
|
...t
|
|
995
1053
|
}
|
|
996
1054
|
));
|
|
997
|
-
|
|
998
|
-
const
|
|
1055
|
+
us.displayName = En.displayName;
|
|
1056
|
+
const ps = ee(({ className: e, ...r }, t) => /* @__PURE__ */ s.jsx(
|
|
999
1057
|
Dn,
|
|
1000
1058
|
{
|
|
1001
1059
|
ref: t,
|
|
@@ -1003,27 +1061,27 @@ const cs = ee(({ className: e, ...r }, t) => /* @__PURE__ */ s.jsx(
|
|
|
1003
1061
|
...r
|
|
1004
1062
|
}
|
|
1005
1063
|
));
|
|
1006
|
-
|
|
1007
|
-
const
|
|
1064
|
+
ps.displayName = Dn.displayName;
|
|
1065
|
+
const fs = ({ className: e, ...r }) => /* @__PURE__ */ s.jsx(
|
|
1008
1066
|
"span",
|
|
1009
1067
|
{
|
|
1010
1068
|
className: E("al-ml-auto al-text-xs al-tracking-widest al-opacity-60", e),
|
|
1011
1069
|
...r
|
|
1012
1070
|
}
|
|
1013
1071
|
);
|
|
1014
|
-
|
|
1015
|
-
var ir = 1,
|
|
1072
|
+
fs.displayName = "DropdownMenuShortcut";
|
|
1073
|
+
var ir = 1, ms = 0.9, gs = 0.8, vs = 0.17, pt = 0.1, ft = 0.999, hs = 0.9999, xs = 0.99, ys = /[\\\/_+.#"@\[\(\{&]/, bs = /[\\\/_+.#"@\[\(\{&]/g, ws = /[\s-]/, jn = /[\s-]/g;
|
|
1016
1074
|
function St(e, r, t, n, o, l, i) {
|
|
1017
|
-
if (l === r.length) return o === e.length ? ir :
|
|
1075
|
+
if (l === r.length) return o === e.length ? ir : xs;
|
|
1018
1076
|
var c = `${o},${l}`;
|
|
1019
1077
|
if (i[c] !== void 0) return i[c];
|
|
1020
|
-
for (var d = n.charAt(l), u = t.indexOf(d, o), f = 0, p, g, x, y; u >= 0; ) p = St(e, r, t, n, u + 1, l + 1, i), p > f && (u === o ? p *= ir :
|
|
1078
|
+
for (var d = n.charAt(l), u = t.indexOf(d, o), f = 0, p, g, x, y; u >= 0; ) p = St(e, r, t, n, u + 1, l + 1, i), p > f && (u === o ? p *= ir : ys.test(e.charAt(u - 1)) ? (p *= gs, x = e.slice(o, u - 1).match(bs), x && o > 0 && (p *= Math.pow(ft, x.length))) : ws.test(e.charAt(u - 1)) ? (p *= ms, y = e.slice(o, u - 1).match(jn), y && o > 0 && (p *= Math.pow(ft, y.length))) : (p *= vs, o > 0 && (p *= Math.pow(ft, u - o))), e.charAt(u) !== r.charAt(l) && (p *= hs)), (p < pt && t.charAt(u - 1) === n.charAt(l + 1) || n.charAt(l + 1) === n.charAt(l) && t.charAt(u - 1) !== n.charAt(l)) && (g = St(e, r, t, n, u + 1, l + 2, i), g * pt > p && (p = g * pt)), p > f && (f = p), u = t.indexOf(d, u + 1);
|
|
1021
1079
|
return i[c] = f, f;
|
|
1022
1080
|
}
|
|
1023
1081
|
function cr(e) {
|
|
1024
1082
|
return e.toLowerCase().replace(jn, " ");
|
|
1025
1083
|
}
|
|
1026
|
-
function
|
|
1084
|
+
function Ss(e, r, t) {
|
|
1027
1085
|
return e = t && t.length > 0 ? `${e + " " + t.join(" ")}` : e, St(e, r, cr(e), cr(r), 0, 0, {});
|
|
1028
1086
|
}
|
|
1029
1087
|
var Ct = { exports: {} }, mt = {};
|
|
@@ -1037,25 +1095,25 @@ var Ct = { exports: {} }, mt = {};
|
|
|
1037
1095
|
* LICENSE file in the root directory of this source tree.
|
|
1038
1096
|
*/
|
|
1039
1097
|
var dr;
|
|
1040
|
-
function
|
|
1098
|
+
function Cs() {
|
|
1041
1099
|
if (dr) return mt;
|
|
1042
1100
|
dr = 1;
|
|
1043
|
-
var e =
|
|
1101
|
+
var e = P;
|
|
1044
1102
|
function r(p, g) {
|
|
1045
1103
|
return p === g && (p !== 0 || 1 / p === 1 / g) || p !== p && g !== g;
|
|
1046
1104
|
}
|
|
1047
1105
|
var t = typeof Object.is == "function" ? Object.is : r, n = e.useState, o = e.useEffect, l = e.useLayoutEffect, i = e.useDebugValue;
|
|
1048
1106
|
function c(p, g) {
|
|
1049
|
-
var x = g(), y = n({ inst: { value: x, getSnapshot: g } }), v = y[0].inst,
|
|
1107
|
+
var x = g(), y = n({ inst: { value: x, getSnapshot: g } }), v = y[0].inst, b = y[1];
|
|
1050
1108
|
return l(
|
|
1051
1109
|
function() {
|
|
1052
|
-
v.value = x, v.getSnapshot = g, d(v) &&
|
|
1110
|
+
v.value = x, v.getSnapshot = g, d(v) && b({ inst: v });
|
|
1053
1111
|
},
|
|
1054
1112
|
[p, x, g]
|
|
1055
1113
|
), o(
|
|
1056
1114
|
function() {
|
|
1057
|
-
return d(v) &&
|
|
1058
|
-
d(v) &&
|
|
1115
|
+
return d(v) && b({ inst: v }), p(function() {
|
|
1116
|
+
d(v) && b({ inst: v });
|
|
1059
1117
|
});
|
|
1060
1118
|
},
|
|
1061
1119
|
[p]
|
|
@@ -1088,7 +1146,7 @@ var gt = {};
|
|
|
1088
1146
|
* LICENSE file in the root directory of this source tree.
|
|
1089
1147
|
*/
|
|
1090
1148
|
var ur;
|
|
1091
|
-
function
|
|
1149
|
+
function _s() {
|
|
1092
1150
|
return ur || (ur = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1093
1151
|
function e(x, y) {
|
|
1094
1152
|
return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y;
|
|
@@ -1099,15 +1157,15 @@ function bs() {
|
|
|
1099
1157
|
));
|
|
1100
1158
|
var v = y();
|
|
1101
1159
|
if (!p) {
|
|
1102
|
-
var
|
|
1103
|
-
l(v,
|
|
1160
|
+
var b = y();
|
|
1161
|
+
l(v, b) || (console.error(
|
|
1104
1162
|
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
1105
1163
|
), p = !0);
|
|
1106
1164
|
}
|
|
1107
|
-
|
|
1165
|
+
b = i({
|
|
1108
1166
|
inst: { value: v, getSnapshot: y }
|
|
1109
1167
|
});
|
|
1110
|
-
var S =
|
|
1168
|
+
var S = b[0].inst, h = b[1];
|
|
1111
1169
|
return d(
|
|
1112
1170
|
function() {
|
|
1113
1171
|
S.value = v, S.getSnapshot = y, t(S) && h({ inst: S });
|
|
@@ -1136,108 +1194,108 @@ function bs() {
|
|
|
1136
1194
|
return y();
|
|
1137
1195
|
}
|
|
1138
1196
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
1139
|
-
var o =
|
|
1197
|
+
var o = P, l = typeof Object.is == "function" ? Object.is : e, i = o.useState, c = o.useEffect, d = o.useLayoutEffect, u = o.useDebugValue, f = !1, p = !1, g = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? n : r;
|
|
1140
1198
|
gt.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : g, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1141
1199
|
}()), gt;
|
|
1142
1200
|
}
|
|
1143
|
-
process.env.NODE_ENV === "production" ? Ct.exports =
|
|
1144
|
-
var
|
|
1201
|
+
process.env.NODE_ENV === "production" ? Ct.exports = Cs() : Ct.exports = _s();
|
|
1202
|
+
var Ns = Ct.exports, Re = '[cmdk-group=""]', vt = '[cmdk-group-items=""]', Es = '[cmdk-group-heading=""]', Zt = '[cmdk-item=""]', pr = `${Zt}:not([aria-disabled="true"])`, _t = "cmdk-item-select", he = "data-value", Rs = (e, r, t) => Ss(e, r, t), On = a.createContext(void 0), Ve = () => a.useContext(On), kn = a.createContext(void 0), Jt = () => a.useContext(kn), $n = a.createContext(void 0), Ln = a.forwardRef((e, r) => {
|
|
1145
1203
|
let t = Ce(() => {
|
|
1146
1204
|
var m, R;
|
|
1147
1205
|
return { search: "", value: (R = (m = e.value) != null ? m : e.defaultValue) != null ? R : "", filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
|
|
1148
|
-
}), n = Ce(() => /* @__PURE__ */ new Set()), o = Ce(() => /* @__PURE__ */ new Map()), l = Ce(() => /* @__PURE__ */ new Map()), i = Ce(() => /* @__PURE__ */ new Set()), c = Vn(e), { label: d, children: u, value: f, onValueChange: p, filter: g, shouldFilter: x, loop: y, disablePointerSelection: v = !1, vimBindings:
|
|
1206
|
+
}), n = Ce(() => /* @__PURE__ */ new Set()), o = Ce(() => /* @__PURE__ */ new Map()), l = Ce(() => /* @__PURE__ */ new Map()), i = Ce(() => /* @__PURE__ */ new Set()), c = Vn(e), { label: d, children: u, value: f, onValueChange: p, filter: g, shouldFilter: x, loop: y, disablePointerSelection: v = !1, vimBindings: b = !0, ...S } = e, h = ne(), _ = ne(), L = ne(), V = a.useRef(null), j = Ls();
|
|
1149
1207
|
ye(() => {
|
|
1150
1208
|
if (f !== void 0) {
|
|
1151
1209
|
let m = f.trim();
|
|
1152
|
-
t.current.value = m,
|
|
1210
|
+
t.current.value = m, T.emit();
|
|
1153
1211
|
}
|
|
1154
1212
|
}, [f]), ye(() => {
|
|
1155
1213
|
j(6, oe);
|
|
1156
1214
|
}, []);
|
|
1157
|
-
let
|
|
1158
|
-
var C, D,
|
|
1215
|
+
let T = a.useMemo(() => ({ subscribe: (m) => (i.current.add(m), () => i.current.delete(m)), snapshot: () => t.current, setState: (m, R, A) => {
|
|
1216
|
+
var C, D, w;
|
|
1159
1217
|
if (!Object.is(t.current[m], R)) {
|
|
1160
|
-
if (t.current[m] = R, m === "search") Z(),
|
|
1161
|
-
else if (m === "value" && (
|
|
1162
|
-
let
|
|
1163
|
-
(
|
|
1218
|
+
if (t.current[m] = R, m === "search") Z(), H(), j(1, re);
|
|
1219
|
+
else if (m === "value" && (A || j(5, oe), ((C = c.current) == null ? void 0 : C.value) !== void 0)) {
|
|
1220
|
+
let M = R ?? "";
|
|
1221
|
+
(w = (D = c.current).onValueChange) == null || w.call(D, M);
|
|
1164
1222
|
return;
|
|
1165
1223
|
}
|
|
1166
|
-
|
|
1224
|
+
T.emit();
|
|
1167
1225
|
}
|
|
1168
1226
|
}, emit: () => {
|
|
1169
1227
|
i.current.forEach((m) => m());
|
|
1170
|
-
} }), []),
|
|
1228
|
+
} }), []), U = a.useMemo(() => ({ value: (m, R, A) => {
|
|
1171
1229
|
var C;
|
|
1172
|
-
R !== ((C = l.current.get(m)) == null ? void 0 : C.value) && (l.current.set(m, { value: R, keywords:
|
|
1173
|
-
|
|
1230
|
+
R !== ((C = l.current.get(m)) == null ? void 0 : C.value) && (l.current.set(m, { value: R, keywords: A }), t.current.filtered.items.set(m, G(R, A)), j(2, () => {
|
|
1231
|
+
H(), T.emit();
|
|
1174
1232
|
}));
|
|
1175
1233
|
}, item: (m, R) => (n.current.add(m), R && (o.current.has(R) ? o.current.get(R).add(m) : o.current.set(R, /* @__PURE__ */ new Set([m]))), j(3, () => {
|
|
1176
|
-
Z(),
|
|
1234
|
+
Z(), H(), t.current.value || re(), T.emit();
|
|
1177
1235
|
}), () => {
|
|
1178
1236
|
l.current.delete(m), n.current.delete(m), t.current.filtered.items.delete(m);
|
|
1179
|
-
let
|
|
1237
|
+
let A = W();
|
|
1180
1238
|
j(4, () => {
|
|
1181
|
-
Z(), (
|
|
1239
|
+
Z(), (A == null ? void 0 : A.getAttribute("id")) === m && re(), T.emit();
|
|
1182
1240
|
});
|
|
1183
1241
|
}), group: (m) => (o.current.has(m) || o.current.set(m, /* @__PURE__ */ new Set()), () => {
|
|
1184
1242
|
l.current.delete(m), o.current.delete(m);
|
|
1185
1243
|
}), filter: () => c.current.shouldFilter, label: d || e["aria-label"], getDisablePointerSelection: () => c.current.disablePointerSelection, listId: h, inputId: L, labelId: _, listInnerRef: V }), []);
|
|
1186
1244
|
function G(m, R) {
|
|
1187
|
-
var
|
|
1188
|
-
let D = (C = (
|
|
1245
|
+
var A, C;
|
|
1246
|
+
let D = (C = (A = c.current) == null ? void 0 : A.filter) != null ? C : Rs;
|
|
1189
1247
|
return m ? D(m, t.current.search, R) : 0;
|
|
1190
1248
|
}
|
|
1191
|
-
function
|
|
1249
|
+
function H() {
|
|
1192
1250
|
if (!t.current.search || c.current.shouldFilter === !1) return;
|
|
1193
1251
|
let m = t.current.filtered.items, R = [];
|
|
1194
1252
|
t.current.filtered.groups.forEach((C) => {
|
|
1195
|
-
let D = o.current.get(C),
|
|
1196
|
-
D.forEach((
|
|
1197
|
-
let O = m.get(
|
|
1198
|
-
|
|
1199
|
-
}), R.push([C,
|
|
1253
|
+
let D = o.current.get(C), w = 0;
|
|
1254
|
+
D.forEach((M) => {
|
|
1255
|
+
let O = m.get(M);
|
|
1256
|
+
w = Math.max(O, w);
|
|
1257
|
+
}), R.push([C, w]);
|
|
1200
1258
|
});
|
|
1201
|
-
let
|
|
1259
|
+
let A = V.current;
|
|
1202
1260
|
J().sort((C, D) => {
|
|
1203
|
-
var
|
|
1261
|
+
var w, M;
|
|
1204
1262
|
let O = C.getAttribute("id"), k = D.getAttribute("id");
|
|
1205
|
-
return ((
|
|
1263
|
+
return ((w = m.get(k)) != null ? w : 0) - ((M = m.get(O)) != null ? M : 0);
|
|
1206
1264
|
}).forEach((C) => {
|
|
1207
1265
|
let D = C.closest(vt);
|
|
1208
|
-
D ? D.appendChild(C.parentElement === D ? C : C.closest(`${vt} > *`)) :
|
|
1266
|
+
D ? D.appendChild(C.parentElement === D ? C : C.closest(`${vt} > *`)) : A.appendChild(C.parentElement === A ? C : C.closest(`${vt} > *`));
|
|
1209
1267
|
}), R.sort((C, D) => D[1] - C[1]).forEach((C) => {
|
|
1210
1268
|
var D;
|
|
1211
|
-
let
|
|
1212
|
-
|
|
1269
|
+
let w = (D = V.current) == null ? void 0 : D.querySelector(`${Re}[${he}="${encodeURIComponent(C[0])}"]`);
|
|
1270
|
+
w == null || w.parentElement.appendChild(w);
|
|
1213
1271
|
});
|
|
1214
1272
|
}
|
|
1215
1273
|
function re() {
|
|
1216
|
-
let m = J().find((
|
|
1217
|
-
|
|
1274
|
+
let m = J().find((A) => A.getAttribute("aria-disabled") !== "true"), R = m == null ? void 0 : m.getAttribute(he);
|
|
1275
|
+
T.setState("value", R || void 0);
|
|
1218
1276
|
}
|
|
1219
1277
|
function Z() {
|
|
1220
|
-
var m, R,
|
|
1278
|
+
var m, R, A, C;
|
|
1221
1279
|
if (!t.current.search || c.current.shouldFilter === !1) {
|
|
1222
1280
|
t.current.filtered.count = n.current.size;
|
|
1223
1281
|
return;
|
|
1224
1282
|
}
|
|
1225
1283
|
t.current.filtered.groups = /* @__PURE__ */ new Set();
|
|
1226
1284
|
let D = 0;
|
|
1227
|
-
for (let
|
|
1228
|
-
let
|
|
1229
|
-
t.current.filtered.items.set(
|
|
1285
|
+
for (let w of n.current) {
|
|
1286
|
+
let M = (R = (m = l.current.get(w)) == null ? void 0 : m.value) != null ? R : "", O = (C = (A = l.current.get(w)) == null ? void 0 : A.keywords) != null ? C : [], k = G(M, O);
|
|
1287
|
+
t.current.filtered.items.set(w, k), k > 0 && D++;
|
|
1230
1288
|
}
|
|
1231
|
-
for (let [
|
|
1232
|
-
t.current.filtered.groups.add(
|
|
1289
|
+
for (let [w, M] of o.current) for (let O of M) if (t.current.filtered.items.get(O) > 0) {
|
|
1290
|
+
t.current.filtered.groups.add(w);
|
|
1233
1291
|
break;
|
|
1234
1292
|
}
|
|
1235
1293
|
t.current.filtered.count = D;
|
|
1236
1294
|
}
|
|
1237
1295
|
function oe() {
|
|
1238
|
-
var m, R,
|
|
1296
|
+
var m, R, A;
|
|
1239
1297
|
let C = W();
|
|
1240
|
-
C && (((m = C.parentElement) == null ? void 0 : m.firstChild) === C && ((
|
|
1298
|
+
C && (((m = C.parentElement) == null ? void 0 : m.firstChild) === C && ((A = (R = C.closest(Re)) == null ? void 0 : R.querySelector(Es)) == null || A.scrollIntoView({ block: "nearest" })), C.scrollIntoView({ block: "nearest" }));
|
|
1241
1299
|
}
|
|
1242
1300
|
function W() {
|
|
1243
1301
|
var m;
|
|
@@ -1247,31 +1305,31 @@ var Ss = Ct.exports, Re = '[cmdk-group=""]', vt = '[cmdk-group-items=""]', Cs =
|
|
|
1247
1305
|
var m;
|
|
1248
1306
|
return Array.from(((m = V.current) == null ? void 0 : m.querySelectorAll(pr)) || []);
|
|
1249
1307
|
}
|
|
1250
|
-
function
|
|
1308
|
+
function K(m) {
|
|
1251
1309
|
let R = J()[m];
|
|
1252
|
-
R &&
|
|
1310
|
+
R && T.setState("value", R.getAttribute(he));
|
|
1253
1311
|
}
|
|
1254
1312
|
function Q(m) {
|
|
1255
1313
|
var R;
|
|
1256
|
-
let
|
|
1257
|
-
(R = c.current) != null && R.loop && (
|
|
1314
|
+
let A = W(), C = J(), D = C.findIndex((M) => M === A), w = C[D + m];
|
|
1315
|
+
(R = c.current) != null && R.loop && (w = D + m < 0 ? C[C.length - 1] : D + m === C.length ? C[0] : C[D + m]), w && T.setState("value", w.getAttribute(he));
|
|
1258
1316
|
}
|
|
1259
1317
|
function z(m) {
|
|
1260
|
-
let R = W(),
|
|
1261
|
-
for (;
|
|
1262
|
-
C ?
|
|
1318
|
+
let R = W(), A = R == null ? void 0 : R.closest(Re), C;
|
|
1319
|
+
for (; A && !C; ) A = m > 0 ? ks(A, Re) : $s(A, Re), C = A == null ? void 0 : A.querySelector(pr);
|
|
1320
|
+
C ? T.setState("value", C.getAttribute(he)) : Q(m);
|
|
1263
1321
|
}
|
|
1264
|
-
let N = () =>
|
|
1322
|
+
let N = () => K(J().length - 1), Y = (m) => {
|
|
1265
1323
|
m.preventDefault(), m.metaKey ? N() : m.altKey ? z(1) : Q(1);
|
|
1266
1324
|
}, X = (m) => {
|
|
1267
|
-
m.preventDefault(), m.metaKey ?
|
|
1325
|
+
m.preventDefault(), m.metaKey ? K(0) : m.altKey ? z(-1) : Q(-1);
|
|
1268
1326
|
};
|
|
1269
1327
|
return a.createElement($.div, { ref: r, tabIndex: -1, ...S, "cmdk-root": "", onKeyDown: (m) => {
|
|
1270
1328
|
var R;
|
|
1271
1329
|
if ((R = S.onKeyDown) == null || R.call(S, m), !m.defaultPrevented) switch (m.key) {
|
|
1272
1330
|
case "n":
|
|
1273
1331
|
case "j": {
|
|
1274
|
-
|
|
1332
|
+
b && m.ctrlKey && Y(m);
|
|
1275
1333
|
break;
|
|
1276
1334
|
}
|
|
1277
1335
|
case "ArrowDown": {
|
|
@@ -1280,7 +1338,7 @@ var Ss = Ct.exports, Re = '[cmdk-group=""]', vt = '[cmdk-group-items=""]', Cs =
|
|
|
1280
1338
|
}
|
|
1281
1339
|
case "p":
|
|
1282
1340
|
case "k": {
|
|
1283
|
-
|
|
1341
|
+
b && m.ctrlKey && X(m);
|
|
1284
1342
|
break;
|
|
1285
1343
|
}
|
|
1286
1344
|
case "ArrowUp": {
|
|
@@ -1288,7 +1346,7 @@ var Ss = Ct.exports, Re = '[cmdk-group=""]', vt = '[cmdk-group-items=""]', Cs =
|
|
|
1288
1346
|
break;
|
|
1289
1347
|
}
|
|
1290
1348
|
case "Home": {
|
|
1291
|
-
m.preventDefault(),
|
|
1349
|
+
m.preventDefault(), K(0);
|
|
1292
1350
|
break;
|
|
1293
1351
|
}
|
|
1294
1352
|
case "End": {
|
|
@@ -1298,45 +1356,45 @@ var Ss = Ct.exports, Re = '[cmdk-group=""]', vt = '[cmdk-group-items=""]', Cs =
|
|
|
1298
1356
|
case "Enter":
|
|
1299
1357
|
if (!m.nativeEvent.isComposing && m.keyCode !== 229) {
|
|
1300
1358
|
m.preventDefault();
|
|
1301
|
-
let
|
|
1302
|
-
if (
|
|
1359
|
+
let A = W();
|
|
1360
|
+
if (A) {
|
|
1303
1361
|
let C = new Event(_t);
|
|
1304
|
-
|
|
1362
|
+
A.dispatchEvent(C);
|
|
1305
1363
|
}
|
|
1306
1364
|
}
|
|
1307
1365
|
}
|
|
1308
|
-
} }, a.createElement("label", { "cmdk-label": "", htmlFor:
|
|
1309
|
-
}),
|
|
1366
|
+
} }, a.createElement("label", { "cmdk-label": "", htmlFor: U.inputId, id: U.labelId, style: Fs }, d), tt(e, (m) => a.createElement(kn.Provider, { value: T }, a.createElement(On.Provider, { value: U }, m))));
|
|
1367
|
+
}), Is = a.forwardRef((e, r) => {
|
|
1310
1368
|
var t, n;
|
|
1311
1369
|
let o = ne(), l = a.useRef(null), i = a.useContext($n), c = Ve(), d = Vn(e), u = (n = (t = d.current) == null ? void 0 : t.forceMount) != null ? n : i == null ? void 0 : i.forceMount;
|
|
1312
1370
|
ye(() => {
|
|
1313
1371
|
if (!u) return c.item(o, i == null ? void 0 : i.id);
|
|
1314
1372
|
}, [u]);
|
|
1315
|
-
let f = Fn(o, l, [e.value, e.children, l], e.keywords), p = Jt(), g =
|
|
1373
|
+
let f = Fn(o, l, [e.value, e.children, l], e.keywords), p = Jt(), g = be((j) => j.value && j.value === f.current), x = be((j) => u || c.filter() === !1 ? !0 : j.search ? j.filtered.items.get(o) > 0 : !0);
|
|
1316
1374
|
a.useEffect(() => {
|
|
1317
1375
|
let j = l.current;
|
|
1318
1376
|
if (!(!j || e.disabled)) return j.addEventListener(_t, y), () => j.removeEventListener(_t, y);
|
|
1319
1377
|
}, [x, e.onSelect, e.disabled]);
|
|
1320
1378
|
function y() {
|
|
1321
|
-
var j,
|
|
1322
|
-
v(), (
|
|
1379
|
+
var j, T;
|
|
1380
|
+
v(), (T = (j = d.current).onSelect) == null || T.call(j, f.current);
|
|
1323
1381
|
}
|
|
1324
1382
|
function v() {
|
|
1325
1383
|
p.setState("value", f.current, !0);
|
|
1326
1384
|
}
|
|
1327
1385
|
if (!x) return null;
|
|
1328
|
-
let { disabled:
|
|
1329
|
-
return a.createElement($.div, { ref:
|
|
1330
|
-
}),
|
|
1331
|
-
let { heading: t, children: n, forceMount: o, ...l } = e, i = ne(), c = a.useRef(null), d = a.useRef(null), u = ne(), f = Ve(), p =
|
|
1386
|
+
let { disabled: b, value: S, onSelect: h, forceMount: _, keywords: L, ...V } = e;
|
|
1387
|
+
return a.createElement($.div, { ref: Pe([l, r]), ...V, id: o, "cmdk-item": "", role: "option", "aria-disabled": !!b, "aria-selected": !!g, "data-disabled": !!b, "data-selected": !!g, onPointerMove: b || c.getDisablePointerSelection() ? void 0 : v, onClick: b ? void 0 : y }, e.children);
|
|
1388
|
+
}), As = a.forwardRef((e, r) => {
|
|
1389
|
+
let { heading: t, children: n, forceMount: o, ...l } = e, i = ne(), c = a.useRef(null), d = a.useRef(null), u = ne(), f = Ve(), p = be((x) => o || f.filter() === !1 ? !0 : x.search ? x.filtered.groups.has(i) : !0);
|
|
1332
1390
|
ye(() => f.group(i), []), Fn(i, c, [e.value, e.heading, d]);
|
|
1333
1391
|
let g = a.useMemo(() => ({ id: i, forceMount: o }), [o]);
|
|
1334
|
-
return a.createElement($.div, { ref:
|
|
1335
|
-
}),
|
|
1336
|
-
let { alwaysRender: t, ...n } = e, o = a.useRef(null), l =
|
|
1337
|
-
return !t && !l ? null : a.createElement($.div, { ref:
|
|
1338
|
-
}),
|
|
1339
|
-
let { onValueChange: t, ...n } = e, o = e.value != null, l = Jt(), i =
|
|
1392
|
+
return a.createElement($.div, { ref: Pe([c, r]), ...l, "cmdk-group": "", role: "presentation", hidden: p ? void 0 : !0 }, t && a.createElement("div", { ref: d, "cmdk-group-heading": "", "aria-hidden": !0, id: u }, t), tt(e, (x) => a.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": t ? u : void 0 }, a.createElement($n.Provider, { value: g }, x))));
|
|
1393
|
+
}), Ms = a.forwardRef((e, r) => {
|
|
1394
|
+
let { alwaysRender: t, ...n } = e, o = a.useRef(null), l = be((i) => !i.search);
|
|
1395
|
+
return !t && !l ? null : a.createElement($.div, { ref: Pe([o, r]), ...n, "cmdk-separator": "", role: "separator" });
|
|
1396
|
+
}), Ds = a.forwardRef((e, r) => {
|
|
1397
|
+
let { onValueChange: t, ...n } = e, o = e.value != null, l = Jt(), i = be((f) => f.search), c = be((f) => f.value), d = Ve(), u = a.useMemo(() => {
|
|
1340
1398
|
var f;
|
|
1341
1399
|
let p = (f = d.listInnerRef.current) == null ? void 0 : f.querySelector(`${Zt}[${he}="${encodeURIComponent(c)}"]`);
|
|
1342
1400
|
return p == null ? void 0 : p.getAttribute("id");
|
|
@@ -1346,7 +1404,7 @@ var Ss = Ct.exports, Re = '[cmdk-group=""]', vt = '[cmdk-group-items=""]', Cs =
|
|
|
1346
1404
|
}, [e.value]), a.createElement($.input, { ref: r, ...n, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": d.listId, "aria-labelledby": d.labelId, "aria-activedescendant": u, id: d.inputId, type: "text", value: o ? e.value : i, onChange: (f) => {
|
|
1347
1405
|
o || l.setState("search", f.target.value), t == null || t(f.target.value);
|
|
1348
1406
|
} });
|
|
1349
|
-
}),
|
|
1407
|
+
}), Ts = a.forwardRef((e, r) => {
|
|
1350
1408
|
let { children: t, label: n = "Suggestions", ...o } = e, l = a.useRef(null), i = a.useRef(null), c = Ve();
|
|
1351
1409
|
return a.useEffect(() => {
|
|
1352
1410
|
if (i.current && l.current) {
|
|
@@ -1360,22 +1418,22 @@ var Ss = Ct.exports, Re = '[cmdk-group=""]', vt = '[cmdk-group-items=""]', Cs =
|
|
|
1360
1418
|
cancelAnimationFrame(f), p.unobserve(d);
|
|
1361
1419
|
};
|
|
1362
1420
|
}
|
|
1363
|
-
}, []), a.createElement($.div, { ref:
|
|
1364
|
-
}),
|
|
1421
|
+
}, []), a.createElement($.div, { ref: Pe([l, r]), ...o, "cmdk-list": "", role: "listbox", "aria-label": n, id: c.listId }, tt(e, (d) => a.createElement("div", { ref: Pe([i, c.listInnerRef]), "cmdk-list-sizer": "" }, d)));
|
|
1422
|
+
}), Ps = a.forwardRef((e, r) => {
|
|
1365
1423
|
let { open: t, onOpenChange: n, overlayClassName: o, contentClassName: l, container: i, ...c } = e;
|
|
1366
1424
|
return a.createElement(Ot, { open: t, onOpenChange: n }, a.createElement(kt, { container: i }, a.createElement(qe, { "cmdk-overlay": "", className: o }), a.createElement(Xe, { "aria-label": e.label, "cmdk-dialog": "", className: l }, a.createElement(Ln, { ref: r, ...c }))));
|
|
1367
|
-
}),
|
|
1425
|
+
}), js = a.forwardRef((e, r) => be((t) => t.filtered.count === 0) ? a.createElement($.div, { ref: r, ...e, "cmdk-empty": "", role: "presentation" }) : null), Os = a.forwardRef((e, r) => {
|
|
1368
1426
|
let { progress: t, children: n, label: o = "Loading...", ...l } = e;
|
|
1369
1427
|
return a.createElement($.div, { ref: r, ...l, "cmdk-loading": "", role: "progressbar", "aria-valuenow": t, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": o }, tt(e, (i) => a.createElement("div", { "aria-hidden": !0 }, i)));
|
|
1370
|
-
}), le = Object.assign(Ln, { List:
|
|
1371
|
-
function
|
|
1428
|
+
}), le = Object.assign(Ln, { List: Ts, Item: Is, Input: Ds, Group: As, Separator: Ms, Dialog: Ps, Empty: js, Loading: Os });
|
|
1429
|
+
function ks(e, r) {
|
|
1372
1430
|
let t = e.nextElementSibling;
|
|
1373
1431
|
for (; t; ) {
|
|
1374
1432
|
if (t.matches(r)) return t;
|
|
1375
1433
|
t = t.nextElementSibling;
|
|
1376
1434
|
}
|
|
1377
1435
|
}
|
|
1378
|
-
function
|
|
1436
|
+
function $s(e, r) {
|
|
1379
1437
|
let t = e.previousElementSibling;
|
|
1380
1438
|
for (; t; ) {
|
|
1381
1439
|
if (t.matches(r)) return t;
|
|
@@ -1393,16 +1451,16 @@ function Ce(e) {
|
|
|
1393
1451
|
let r = a.useRef();
|
|
1394
1452
|
return r.current === void 0 && (r.current = e()), r;
|
|
1395
1453
|
}
|
|
1396
|
-
function
|
|
1454
|
+
function Pe(e) {
|
|
1397
1455
|
return (r) => {
|
|
1398
1456
|
e.forEach((t) => {
|
|
1399
1457
|
typeof t == "function" ? t(r) : t != null && (t.current = r);
|
|
1400
1458
|
});
|
|
1401
1459
|
};
|
|
1402
1460
|
}
|
|
1403
|
-
function
|
|
1461
|
+
function be(e) {
|
|
1404
1462
|
let r = Jt(), t = () => e(r.snapshot());
|
|
1405
|
-
return
|
|
1463
|
+
return Ns.useSyncExternalStore(r.subscribe, t, t);
|
|
1406
1464
|
}
|
|
1407
1465
|
function Fn(e, r, t, n = []) {
|
|
1408
1466
|
let o = a.useRef(), l = Ve();
|
|
@@ -1418,7 +1476,7 @@ function Fn(e, r, t, n = []) {
|
|
|
1418
1476
|
l.value(e, c, d), (i = r.current) == null || i.setAttribute(he, c), o.current = c;
|
|
1419
1477
|
}), o;
|
|
1420
1478
|
}
|
|
1421
|
-
var
|
|
1479
|
+
var Ls = () => {
|
|
1422
1480
|
let [e, r] = a.useState(), t = Ce(() => /* @__PURE__ */ new Map());
|
|
1423
1481
|
return ye(() => {
|
|
1424
1482
|
t.current.forEach((n) => n()), t.current = /* @__PURE__ */ new Map();
|
|
@@ -1426,14 +1484,14 @@ var Os = () => {
|
|
|
1426
1484
|
t.current.set(n, o), r({});
|
|
1427
1485
|
};
|
|
1428
1486
|
};
|
|
1429
|
-
function
|
|
1487
|
+
function Vs(e) {
|
|
1430
1488
|
let r = e.type;
|
|
1431
1489
|
return typeof r == "function" ? r(e.props) : "render" in r ? r.render(e.props) : e;
|
|
1432
1490
|
}
|
|
1433
1491
|
function tt({ asChild: e, children: r }, t) {
|
|
1434
|
-
return e && a.isValidElement(r) ? a.cloneElement(
|
|
1492
|
+
return e && a.isValidElement(r) ? a.cloneElement(Vs(r), { ref: r.ref }, t(r.props.children)) : t(r);
|
|
1435
1493
|
}
|
|
1436
|
-
var
|
|
1494
|
+
var Fs = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
|
|
1437
1495
|
const Bn = ee(({ className: e, ...r }, t) => /* @__PURE__ */ s.jsx(
|
|
1438
1496
|
le,
|
|
1439
1497
|
{
|
|
@@ -1446,7 +1504,7 @@ const Bn = ee(({ className: e, ...r }, t) => /* @__PURE__ */ s.jsx(
|
|
|
1446
1504
|
}
|
|
1447
1505
|
));
|
|
1448
1506
|
Bn.displayName = le.displayName;
|
|
1449
|
-
const
|
|
1507
|
+
const gd = ({ children: e, ...r }) => /* @__PURE__ */ s.jsx(Ma, { ...r, children: /* @__PURE__ */ s.jsx(Da, { className: "al-overflow-hidden al-p-0 al-shadow-lg", children: /* @__PURE__ */ s.jsx(Bn, { className: "[&_[cmdk-group-heading]]:al-px-2 [&_[cmdk-group-heading]]:al-font-medium [&_[cmdk-group-heading]]:al-text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:al-pt-0 [&_[cmdk-group]]:al-px-2 [&_[cmdk-input-wrapper]_svg]:al-h-5 [&_[cmdk-input-wrapper]_svg]:al-w-5 [&_[cmdk-input]]:al-h-12 [&_[cmdk-item]]:al-px-2 [&_[cmdk-item]]:al-py-3 [&_[cmdk-item]_svg]:al-h-5 [&_[cmdk-item]_svg]:al-w-5", children: e }) }) }), Bs = ee(({ className: e, ...r }, t) => (
|
|
1450
1508
|
// eslint-disable-next-line react/no-unknown-property
|
|
1451
1509
|
/* @__PURE__ */ s.jsxs("div", { className: "al-flex al-items-center al-border-b al-px-3", "cmdk-input-wrapper": "", children: [
|
|
1452
1510
|
/* @__PURE__ */ s.jsx(_a, { className: "al-mr-2 al-h-4 al-w-4 al-shrink-0 al-opacity-50" }),
|
|
@@ -1463,8 +1521,8 @@ const pd = ({ children: e, ...r }) => /* @__PURE__ */ s.jsx(Ma, { ...r, children
|
|
|
1463
1521
|
)
|
|
1464
1522
|
] })
|
|
1465
1523
|
));
|
|
1466
|
-
|
|
1467
|
-
const
|
|
1524
|
+
Bs.displayName = le.Input.displayName;
|
|
1525
|
+
const Gs = ee(({ className: e, ...r }, t) => /* @__PURE__ */ s.jsx(
|
|
1468
1526
|
le.List,
|
|
1469
1527
|
{
|
|
1470
1528
|
ref: t,
|
|
@@ -1472,10 +1530,10 @@ const Vs = ee(({ className: e, ...r }, t) => /* @__PURE__ */ s.jsx(
|
|
|
1472
1530
|
...r
|
|
1473
1531
|
}
|
|
1474
1532
|
));
|
|
1475
|
-
|
|
1476
|
-
const
|
|
1477
|
-
|
|
1478
|
-
const
|
|
1533
|
+
Gs.displayName = le.List.displayName;
|
|
1534
|
+
const Ks = ee((e, r) => /* @__PURE__ */ s.jsx(le.Empty, { ref: r, className: "al-py-6 al-text-center al-text-sm", ...e }));
|
|
1535
|
+
Ks.displayName = le.Empty.displayName;
|
|
1536
|
+
const Us = ee(({ className: e, ...r }, t) => /* @__PURE__ */ s.jsx(
|
|
1479
1537
|
le.Group,
|
|
1480
1538
|
{
|
|
1481
1539
|
ref: t,
|
|
@@ -1486,8 +1544,8 @@ const Bs = ee(({ className: e, ...r }, t) => /* @__PURE__ */ s.jsx(
|
|
|
1486
1544
|
...r
|
|
1487
1545
|
}
|
|
1488
1546
|
));
|
|
1489
|
-
|
|
1490
|
-
const
|
|
1547
|
+
Us.displayName = le.Group.displayName;
|
|
1548
|
+
const Hs = ee(({ className: e, ...r }, t) => /* @__PURE__ */ s.jsx(
|
|
1491
1549
|
le.Separator,
|
|
1492
1550
|
{
|
|
1493
1551
|
ref: t,
|
|
@@ -1495,8 +1553,8 @@ const Gs = ee(({ className: e, ...r }, t) => /* @__PURE__ */ s.jsx(
|
|
|
1495
1553
|
...r
|
|
1496
1554
|
}
|
|
1497
1555
|
));
|
|
1498
|
-
|
|
1499
|
-
const
|
|
1556
|
+
Hs.displayName = le.Separator.displayName;
|
|
1557
|
+
const Ws = ee(({ className: e, ...r }, t) => /* @__PURE__ */ s.jsx(
|
|
1500
1558
|
le.Item,
|
|
1501
1559
|
{
|
|
1502
1560
|
ref: t,
|
|
@@ -1508,16 +1566,16 @@ const Hs = ee(({ className: e, ...r }, t) => /* @__PURE__ */ s.jsx(
|
|
|
1508
1566
|
...r
|
|
1509
1567
|
}
|
|
1510
1568
|
));
|
|
1511
|
-
|
|
1512
|
-
const
|
|
1569
|
+
Ws.displayName = le.Item.displayName;
|
|
1570
|
+
const zs = ({ className: e, ...r }) => /* @__PURE__ */ s.jsx(
|
|
1513
1571
|
"span",
|
|
1514
1572
|
{
|
|
1515
1573
|
className: E("al-ml-auto al-text-xs al-tracking-widest al-text-muted-foreground", e),
|
|
1516
1574
|
...r
|
|
1517
1575
|
}
|
|
1518
1576
|
);
|
|
1519
|
-
|
|
1520
|
-
const
|
|
1577
|
+
zs.displayName = "CommandShortcut";
|
|
1578
|
+
const Ys = Ze(
|
|
1521
1579
|
"al-inline-flex al-items-center al-rounded-full al-border al-px-2.5 al-py-0.5 al-text-xs al-font-semibold al-transition-colors focus:al-outline-none focus:al-ring-2 focus:al-ring-ring focus:al-ring-offset-2",
|
|
1522
1580
|
{
|
|
1523
1581
|
variants: {
|
|
@@ -1540,7 +1598,7 @@ const Us = Ze(
|
|
|
1540
1598
|
}
|
|
1541
1599
|
}
|
|
1542
1600
|
);
|
|
1543
|
-
function
|
|
1601
|
+
function vd({
|
|
1544
1602
|
className: e,
|
|
1545
1603
|
variant: r,
|
|
1546
1604
|
interactive: t = !0,
|
|
@@ -1557,7 +1615,7 @@ function fd({
|
|
|
1557
1615
|
return /* @__PURE__ */ s.jsx(
|
|
1558
1616
|
"div",
|
|
1559
1617
|
{
|
|
1560
|
-
className: E(
|
|
1618
|
+
className: E(Ys({ variant: r, interactive: t }), e),
|
|
1561
1619
|
role: t ? "button" : l,
|
|
1562
1620
|
tabIndex: t ? 0 : i,
|
|
1563
1621
|
onKeyDown: u,
|
|
@@ -1568,7 +1626,7 @@ function fd({
|
|
|
1568
1626
|
}
|
|
1569
1627
|
);
|
|
1570
1628
|
}
|
|
1571
|
-
var Qt = "Collapsible", [
|
|
1629
|
+
var Qt = "Collapsible", [qs, Gn] = Ne(Qt), [Xs, er] = qs(Qt), Kn = a.forwardRef(
|
|
1572
1630
|
(e, r) => {
|
|
1573
1631
|
const {
|
|
1574
1632
|
__scopeCollapsible: t,
|
|
@@ -1583,7 +1641,7 @@ var Qt = "Collapsible", [Ws, Gn] = Ne(Qt), [zs, er] = Ws(Qt), Hn = a.forwardRef(
|
|
|
1583
1641
|
onChange: i
|
|
1584
1642
|
});
|
|
1585
1643
|
return /* @__PURE__ */ s.jsx(
|
|
1586
|
-
|
|
1644
|
+
Xs,
|
|
1587
1645
|
{
|
|
1588
1646
|
scope: t,
|
|
1589
1647
|
disabled: l,
|
|
@@ -1603,10 +1661,10 @@ var Qt = "Collapsible", [Ws, Gn] = Ne(Qt), [zs, er] = Ws(Qt), Hn = a.forwardRef(
|
|
|
1603
1661
|
);
|
|
1604
1662
|
}
|
|
1605
1663
|
);
|
|
1606
|
-
|
|
1607
|
-
var
|
|
1664
|
+
Kn.displayName = Qt;
|
|
1665
|
+
var Un = "CollapsibleTrigger", Hn = a.forwardRef(
|
|
1608
1666
|
(e, r) => {
|
|
1609
|
-
const { __scopeCollapsible: t, ...n } = e, o = er(
|
|
1667
|
+
const { __scopeCollapsible: t, ...n } = e, o = er(Un, t);
|
|
1610
1668
|
return /* @__PURE__ */ s.jsx(
|
|
1611
1669
|
$.button,
|
|
1612
1670
|
{
|
|
@@ -1623,18 +1681,18 @@ var Kn = "CollapsibleTrigger", Un = a.forwardRef(
|
|
|
1623
1681
|
);
|
|
1624
1682
|
}
|
|
1625
1683
|
);
|
|
1626
|
-
|
|
1684
|
+
Hn.displayName = Un;
|
|
1627
1685
|
var tr = "CollapsibleContent", Wn = a.forwardRef(
|
|
1628
1686
|
(e, r) => {
|
|
1629
1687
|
const { forceMount: t, ...n } = e, o = er(tr, e.__scopeCollapsible);
|
|
1630
|
-
return /* @__PURE__ */ s.jsx(Oe, { present: t || o.open, children: ({ present: l }) => /* @__PURE__ */ s.jsx(
|
|
1688
|
+
return /* @__PURE__ */ s.jsx(Oe, { present: t || o.open, children: ({ present: l }) => /* @__PURE__ */ s.jsx(Zs, { ...n, ref: r, present: l }) });
|
|
1631
1689
|
}
|
|
1632
1690
|
);
|
|
1633
1691
|
Wn.displayName = tr;
|
|
1634
|
-
var
|
|
1635
|
-
const { __scopeCollapsible: t, present: n, children: o, ...l } = e, i = er(tr, t), [c, d] = a.useState(n), u = a.useRef(null), f = q(r, u), p = a.useRef(0), g = p.current, x = a.useRef(0), y = x.current, v = i.open || c,
|
|
1692
|
+
var Zs = a.forwardRef((e, r) => {
|
|
1693
|
+
const { __scopeCollapsible: t, present: n, children: o, ...l } = e, i = er(tr, t), [c, d] = a.useState(n), u = a.useRef(null), f = q(r, u), p = a.useRef(0), g = p.current, x = a.useRef(0), y = x.current, v = i.open || c, b = a.useRef(v), S = a.useRef(void 0);
|
|
1636
1694
|
return a.useEffect(() => {
|
|
1637
|
-
const h = requestAnimationFrame(() =>
|
|
1695
|
+
const h = requestAnimationFrame(() => b.current = !1);
|
|
1638
1696
|
return () => cancelAnimationFrame(h);
|
|
1639
1697
|
}, []), ce(() => {
|
|
1640
1698
|
const h = u.current;
|
|
@@ -1644,7 +1702,7 @@ var Ys = a.forwardRef((e, r) => {
|
|
|
1644
1702
|
animationName: h.style.animationName
|
|
1645
1703
|
}, h.style.transitionDuration = "0s", h.style.animationName = "none";
|
|
1646
1704
|
const _ = h.getBoundingClientRect();
|
|
1647
|
-
p.current = _.height, x.current = _.width,
|
|
1705
|
+
p.current = _.height, x.current = _.width, b.current || (h.style.transitionDuration = S.current.transitionDuration, h.style.animationName = S.current.animationName), d(n);
|
|
1648
1706
|
}
|
|
1649
1707
|
}, [i.open, n]), /* @__PURE__ */ s.jsx(
|
|
1650
1708
|
$.div,
|
|
@@ -1667,20 +1725,20 @@ var Ys = a.forwardRef((e, r) => {
|
|
|
1667
1725
|
function rr(e) {
|
|
1668
1726
|
return e ? "open" : "closed";
|
|
1669
1727
|
}
|
|
1670
|
-
var
|
|
1671
|
-
|
|
1728
|
+
var Js = Kn, Qs = Hn, ei = Wn, de = "Accordion", ti = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [nr, ri, ni] = Vt(de), [rt, hd] = Ne(de, [
|
|
1729
|
+
ni,
|
|
1672
1730
|
Gn
|
|
1673
|
-
]), or = Gn(), zn =
|
|
1731
|
+
]), or = Gn(), zn = P.forwardRef(
|
|
1674
1732
|
(e, r) => {
|
|
1675
1733
|
const { type: t, ...n } = e, o = n, l = n;
|
|
1676
|
-
return /* @__PURE__ */ s.jsx(nr.Provider, { scope: e.__scopeAccordion, children: t === "multiple" ? /* @__PURE__ */ s.jsx(
|
|
1734
|
+
return /* @__PURE__ */ s.jsx(nr.Provider, { scope: e.__scopeAccordion, children: t === "multiple" ? /* @__PURE__ */ s.jsx(si, { ...l, ref: r }) : /* @__PURE__ */ s.jsx(li, { ...o, ref: r }) });
|
|
1677
1735
|
}
|
|
1678
1736
|
);
|
|
1679
1737
|
zn.displayName = de;
|
|
1680
|
-
var [Yn,
|
|
1738
|
+
var [Yn, oi] = rt(de), [qn, ai] = rt(
|
|
1681
1739
|
de,
|
|
1682
1740
|
{ collapsible: !1 }
|
|
1683
|
-
),
|
|
1741
|
+
), li = P.forwardRef(
|
|
1684
1742
|
(e, r) => {
|
|
1685
1743
|
const {
|
|
1686
1744
|
value: t,
|
|
@@ -1700,12 +1758,12 @@ var [Yn, ti] = rt(de), [qn, ri] = rt(
|
|
|
1700
1758
|
scope: e.__scopeAccordion,
|
|
1701
1759
|
value: c ? [c] : [],
|
|
1702
1760
|
onItemOpen: d,
|
|
1703
|
-
onItemClose:
|
|
1761
|
+
onItemClose: P.useCallback(() => l && d(""), [l, d]),
|
|
1704
1762
|
children: /* @__PURE__ */ s.jsx(qn, { scope: e.__scopeAccordion, collapsible: l, children: /* @__PURE__ */ s.jsx(Xn, { ...i, ref: r }) })
|
|
1705
1763
|
}
|
|
1706
1764
|
);
|
|
1707
1765
|
}
|
|
1708
|
-
),
|
|
1766
|
+
), si = P.forwardRef((e, r) => {
|
|
1709
1767
|
const {
|
|
1710
1768
|
value: t,
|
|
1711
1769
|
defaultValue: n,
|
|
@@ -1716,10 +1774,10 @@ var [Yn, ti] = rt(de), [qn, ri] = rt(
|
|
|
1716
1774
|
prop: t,
|
|
1717
1775
|
defaultProp: n,
|
|
1718
1776
|
onChange: o
|
|
1719
|
-
}), d =
|
|
1777
|
+
}), d = P.useCallback(
|
|
1720
1778
|
(f) => c((p = []) => [...p, f]),
|
|
1721
1779
|
[c]
|
|
1722
|
-
), u =
|
|
1780
|
+
), u = P.useCallback(
|
|
1723
1781
|
(f) => c((p = []) => p.filter((g) => g !== f)),
|
|
1724
1782
|
[c]
|
|
1725
1783
|
);
|
|
@@ -1733,22 +1791,22 @@ var [Yn, ti] = rt(de), [qn, ri] = rt(
|
|
|
1733
1791
|
children: /* @__PURE__ */ s.jsx(qn, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ s.jsx(Xn, { ...l, ref: r }) })
|
|
1734
1792
|
}
|
|
1735
1793
|
);
|
|
1736
|
-
}), [
|
|
1794
|
+
}), [ii, nt] = rt(de), Xn = P.forwardRef(
|
|
1737
1795
|
(e, r) => {
|
|
1738
|
-
const { __scopeAccordion: t, disabled: n, dir: o, orientation: l = "vertical", ...i } = e, c =
|
|
1739
|
-
var
|
|
1740
|
-
if (!
|
|
1796
|
+
const { __scopeAccordion: t, disabled: n, dir: o, orientation: l = "vertical", ...i } = e, c = P.useRef(null), d = q(c, r), u = ri(t), p = Ft(o) === "ltr", g = I(e.onKeyDown, (x) => {
|
|
1797
|
+
var U;
|
|
1798
|
+
if (!ti.includes(x.key)) return;
|
|
1741
1799
|
const y = x.target, v = u().filter((G) => {
|
|
1742
|
-
var
|
|
1743
|
-
return !((
|
|
1744
|
-
}),
|
|
1745
|
-
if (
|
|
1800
|
+
var H;
|
|
1801
|
+
return !((H = G.ref.current) != null && H.disabled);
|
|
1802
|
+
}), b = v.findIndex((G) => G.ref.current === y), S = v.length;
|
|
1803
|
+
if (b === -1) return;
|
|
1746
1804
|
x.preventDefault();
|
|
1747
|
-
let h =
|
|
1805
|
+
let h = b;
|
|
1748
1806
|
const _ = 0, L = S - 1, V = () => {
|
|
1749
|
-
h =
|
|
1807
|
+
h = b + 1, h > L && (h = _);
|
|
1750
1808
|
}, j = () => {
|
|
1751
|
-
h =
|
|
1809
|
+
h = b - 1, h < _ && (h = L);
|
|
1752
1810
|
};
|
|
1753
1811
|
switch (x.key) {
|
|
1754
1812
|
case "Home":
|
|
@@ -1770,11 +1828,11 @@ var [Yn, ti] = rt(de), [qn, ri] = rt(
|
|
|
1770
1828
|
l === "vertical" && j();
|
|
1771
1829
|
break;
|
|
1772
1830
|
}
|
|
1773
|
-
const
|
|
1774
|
-
(
|
|
1831
|
+
const T = h % S;
|
|
1832
|
+
(U = v[T].ref.current) == null || U.focus();
|
|
1775
1833
|
});
|
|
1776
1834
|
return /* @__PURE__ */ s.jsx(
|
|
1777
|
-
|
|
1835
|
+
ii,
|
|
1778
1836
|
{
|
|
1779
1837
|
scope: t,
|
|
1780
1838
|
disabled: n,
|
|
@@ -1792,18 +1850,18 @@ var [Yn, ti] = rt(de), [qn, ri] = rt(
|
|
|
1792
1850
|
}
|
|
1793
1851
|
);
|
|
1794
1852
|
}
|
|
1795
|
-
), We = "AccordionItem", [
|
|
1853
|
+
), We = "AccordionItem", [ci, ar] = rt(We), Zn = P.forwardRef(
|
|
1796
1854
|
(e, r) => {
|
|
1797
|
-
const { __scopeAccordion: t, value: n, ...o } = e, l = nt(We, t), i =
|
|
1855
|
+
const { __scopeAccordion: t, value: n, ...o } = e, l = nt(We, t), i = oi(We, t), c = or(t), d = ne(), u = n && i.value.includes(n) || !1, f = l.disabled || e.disabled;
|
|
1798
1856
|
return /* @__PURE__ */ s.jsx(
|
|
1799
|
-
|
|
1857
|
+
ci,
|
|
1800
1858
|
{
|
|
1801
1859
|
scope: t,
|
|
1802
1860
|
open: u,
|
|
1803
1861
|
disabled: f,
|
|
1804
1862
|
triggerId: d,
|
|
1805
1863
|
children: /* @__PURE__ */ s.jsx(
|
|
1806
|
-
|
|
1864
|
+
Js,
|
|
1807
1865
|
{
|
|
1808
1866
|
"data-orientation": l.orientation,
|
|
1809
1867
|
"data-state": no(u),
|
|
@@ -1822,7 +1880,7 @@ var [Yn, ti] = rt(de), [qn, ri] = rt(
|
|
|
1822
1880
|
}
|
|
1823
1881
|
);
|
|
1824
1882
|
Zn.displayName = We;
|
|
1825
|
-
var Jn = "AccordionHeader", Qn =
|
|
1883
|
+
var Jn = "AccordionHeader", Qn = P.forwardRef(
|
|
1826
1884
|
(e, r) => {
|
|
1827
1885
|
const { __scopeAccordion: t, ...n } = e, o = nt(de, t), l = ar(Jn, t);
|
|
1828
1886
|
return /* @__PURE__ */ s.jsx(
|
|
@@ -1838,11 +1896,11 @@ var Jn = "AccordionHeader", Qn = T.forwardRef(
|
|
|
1838
1896
|
}
|
|
1839
1897
|
);
|
|
1840
1898
|
Qn.displayName = Jn;
|
|
1841
|
-
var Nt = "AccordionTrigger", eo =
|
|
1899
|
+
var Nt = "AccordionTrigger", eo = P.forwardRef(
|
|
1842
1900
|
(e, r) => {
|
|
1843
|
-
const { __scopeAccordion: t, ...n } = e, o = nt(de, t), l = ar(Nt, t), i =
|
|
1901
|
+
const { __scopeAccordion: t, ...n } = e, o = nt(de, t), l = ar(Nt, t), i = ai(Nt, t), c = or(t);
|
|
1844
1902
|
return /* @__PURE__ */ s.jsx(nr.ItemSlot, { scope: t, children: /* @__PURE__ */ s.jsx(
|
|
1845
|
-
|
|
1903
|
+
Qs,
|
|
1846
1904
|
{
|
|
1847
1905
|
"aria-disabled": l.open && !i.collapsible || void 0,
|
|
1848
1906
|
"data-orientation": o.orientation,
|
|
@@ -1855,11 +1913,11 @@ var Nt = "AccordionTrigger", eo = T.forwardRef(
|
|
|
1855
1913
|
}
|
|
1856
1914
|
);
|
|
1857
1915
|
eo.displayName = Nt;
|
|
1858
|
-
var to = "AccordionContent", ro =
|
|
1916
|
+
var to = "AccordionContent", ro = P.forwardRef(
|
|
1859
1917
|
(e, r) => {
|
|
1860
1918
|
const { __scopeAccordion: t, ...n } = e, o = nt(de, t), l = ar(to, t), i = or(t);
|
|
1861
1919
|
return /* @__PURE__ */ s.jsx(
|
|
1862
|
-
|
|
1920
|
+
ei,
|
|
1863
1921
|
{
|
|
1864
1922
|
role: "region",
|
|
1865
1923
|
"aria-labelledby": l.triggerId,
|
|
@@ -1880,11 +1938,11 @@ ro.displayName = to;
|
|
|
1880
1938
|
function no(e) {
|
|
1881
1939
|
return e ? "open" : "closed";
|
|
1882
1940
|
}
|
|
1883
|
-
var
|
|
1884
|
-
const
|
|
1885
|
-
|
|
1886
|
-
const
|
|
1887
|
-
|
|
1941
|
+
var di = zn, ui = Zn, pi = Qn, fi = eo, mi = ro;
|
|
1942
|
+
const xd = di, gi = a.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ s.jsx(ui, { ref: t, className: E("al-border-b", e), ...r }));
|
|
1943
|
+
gi.displayName = "AccordionItem";
|
|
1944
|
+
const vi = a.forwardRef(({ className: e, children: r, ...t }, n) => /* @__PURE__ */ s.jsx(pi, { className: "al-flex", children: /* @__PURE__ */ s.jsxs(
|
|
1945
|
+
fi,
|
|
1888
1946
|
{
|
|
1889
1947
|
ref: n,
|
|
1890
1948
|
className: E(
|
|
@@ -1898,9 +1956,9 @@ const fi = a.forwardRef(({ className: e, children: r, ...t }, n) => /* @__PURE__
|
|
|
1898
1956
|
]
|
|
1899
1957
|
}
|
|
1900
1958
|
) }));
|
|
1901
|
-
|
|
1902
|
-
const
|
|
1903
|
-
|
|
1959
|
+
vi.displayName = "AccordionTrigger";
|
|
1960
|
+
const hi = a.forwardRef(({ className: e, children: r, ...t }, n) => /* @__PURE__ */ s.jsx(
|
|
1961
|
+
mi,
|
|
1904
1962
|
{
|
|
1905
1963
|
ref: n,
|
|
1906
1964
|
className: E(
|
|
@@ -1911,28 +1969,28 @@ const mi = a.forwardRef(({ className: e, children: r, ...t }, n) => /* @__PURE__
|
|
|
1911
1969
|
children: /* @__PURE__ */ s.jsx("div", { className: "al-pb-4 al-pt-0", children: r })
|
|
1912
1970
|
}
|
|
1913
1971
|
));
|
|
1914
|
-
|
|
1915
|
-
const
|
|
1972
|
+
hi.displayName = "AccordionContent";
|
|
1973
|
+
const xi = 1, yi = 1e6;
|
|
1916
1974
|
let ht = 0;
|
|
1917
|
-
function
|
|
1975
|
+
function bi() {
|
|
1918
1976
|
return ht = (ht + 1) % Number.MAX_SAFE_INTEGER, ht.toString();
|
|
1919
1977
|
}
|
|
1920
1978
|
const xt = /* @__PURE__ */ new Map(), fr = (e) => {
|
|
1921
1979
|
if (xt.has(e))
|
|
1922
1980
|
return;
|
|
1923
1981
|
const r = setTimeout(() => {
|
|
1924
|
-
xt.delete(e),
|
|
1982
|
+
xt.delete(e), Me({
|
|
1925
1983
|
type: "REMOVE_TOAST",
|
|
1926
1984
|
toastId: e
|
|
1927
1985
|
});
|
|
1928
|
-
},
|
|
1986
|
+
}, yi);
|
|
1929
1987
|
xt.set(e, r);
|
|
1930
|
-
},
|
|
1988
|
+
}, wi = (e, r) => {
|
|
1931
1989
|
switch (r.type) {
|
|
1932
1990
|
case "ADD_TOAST":
|
|
1933
1991
|
return {
|
|
1934
1992
|
...e,
|
|
1935
|
-
toasts: [r.toast, ...e.toasts].slice(0,
|
|
1993
|
+
toasts: [r.toast, ...e.toasts].slice(0, xi)
|
|
1936
1994
|
};
|
|
1937
1995
|
case "UPDATE_TOAST":
|
|
1938
1996
|
return {
|
|
@@ -1963,18 +2021,18 @@ const xt = /* @__PURE__ */ new Map(), fr = (e) => {
|
|
|
1963
2021
|
};
|
|
1964
2022
|
}
|
|
1965
2023
|
}, Ge = [];
|
|
1966
|
-
let
|
|
1967
|
-
function
|
|
1968
|
-
|
|
1969
|
-
r(
|
|
2024
|
+
let Ke = { toasts: [] };
|
|
2025
|
+
function Me(e) {
|
|
2026
|
+
Ke = wi(Ke, e), Ge.forEach((r) => {
|
|
2027
|
+
r(Ke);
|
|
1970
2028
|
});
|
|
1971
2029
|
}
|
|
1972
|
-
function
|
|
1973
|
-
const r =
|
|
2030
|
+
function Si({ ...e }) {
|
|
2031
|
+
const r = bi(), t = (o) => Me({
|
|
1974
2032
|
type: "UPDATE_TOAST",
|
|
1975
2033
|
toast: { ...o, id: r }
|
|
1976
|
-
}), n = () =>
|
|
1977
|
-
return
|
|
2034
|
+
}), n = () => Me({ type: "DISMISS_TOAST", toastId: r });
|
|
2035
|
+
return Me({
|
|
1978
2036
|
type: "ADD_TOAST",
|
|
1979
2037
|
toast: {
|
|
1980
2038
|
...e,
|
|
@@ -1990,18 +2048,18 @@ function yi({ ...e }) {
|
|
|
1990
2048
|
update: t
|
|
1991
2049
|
};
|
|
1992
2050
|
}
|
|
1993
|
-
function
|
|
1994
|
-
const [e, r] = a.useState(
|
|
2051
|
+
function yd() {
|
|
2052
|
+
const [e, r] = a.useState(Ke);
|
|
1995
2053
|
return a.useEffect(() => (Ge.push(r), () => {
|
|
1996
2054
|
const t = Ge.indexOf(r);
|
|
1997
2055
|
t > -1 && Ge.splice(t, 1);
|
|
1998
2056
|
}), [e]), {
|
|
1999
2057
|
...e,
|
|
2000
|
-
toast:
|
|
2001
|
-
dismiss: (t) =>
|
|
2058
|
+
toast: Si,
|
|
2059
|
+
dismiss: (t) => Me({ type: "DISMISS_TOAST", toastId: t })
|
|
2002
2060
|
};
|
|
2003
2061
|
}
|
|
2004
|
-
const
|
|
2062
|
+
const Ci = Ze(
|
|
2005
2063
|
E(
|
|
2006
2064
|
"al-relative al-w-full al-rounded-lg al-border al-p-4",
|
|
2007
2065
|
"[&>svg~*]:al-pl-7 [&>svg+div]:al-translate-y-[-3px] [&>svg]:al-absolute [&>svg]:al-left-4 [&>svg]:al-top-4 [&>svg]:al-text-foreground",
|
|
@@ -2021,7 +2079,7 @@ const wi = Ze(
|
|
|
2021
2079
|
variant: "default"
|
|
2022
2080
|
}
|
|
2023
2081
|
}
|
|
2024
|
-
),
|
|
2082
|
+
), _i = (e) => {
|
|
2025
2083
|
switch (e) {
|
|
2026
2084
|
case "destructive":
|
|
2027
2085
|
return "error-alert";
|
|
@@ -2034,18 +2092,18 @@ const wi = Ze(
|
|
|
2034
2092
|
default:
|
|
2035
2093
|
return "status-alert";
|
|
2036
2094
|
}
|
|
2037
|
-
},
|
|
2095
|
+
}, Ni = a.forwardRef(({ className: e, variant: r, ...t }, n) => /* @__PURE__ */ s.jsx(
|
|
2038
2096
|
"div",
|
|
2039
2097
|
{
|
|
2040
2098
|
ref: n,
|
|
2041
2099
|
role: "alert",
|
|
2042
|
-
"aria-label":
|
|
2043
|
-
className: E(
|
|
2100
|
+
"aria-label": _i(r),
|
|
2101
|
+
className: E(Ci({ variant: r }), e),
|
|
2044
2102
|
...t
|
|
2045
2103
|
}
|
|
2046
2104
|
));
|
|
2047
|
-
|
|
2048
|
-
const
|
|
2105
|
+
Ni.displayName = "Alert";
|
|
2106
|
+
const Ei = a.forwardRef(
|
|
2049
2107
|
({ className: e, children: r, ...t }, n) => /* @__PURE__ */ s.jsx(
|
|
2050
2108
|
"h5",
|
|
2051
2109
|
{
|
|
@@ -2056,8 +2114,8 @@ const Ci = a.forwardRef(
|
|
|
2056
2114
|
}
|
|
2057
2115
|
)
|
|
2058
2116
|
);
|
|
2059
|
-
|
|
2060
|
-
const
|
|
2117
|
+
Ei.displayName = "AlertTitle";
|
|
2118
|
+
const Ri = a.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ s.jsx(
|
|
2061
2119
|
"div",
|
|
2062
2120
|
{
|
|
2063
2121
|
ref: t,
|
|
@@ -2067,22 +2125,22 @@ const _i = a.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ s.jsx(
|
|
|
2067
2125
|
...r
|
|
2068
2126
|
}
|
|
2069
2127
|
));
|
|
2070
|
-
|
|
2071
|
-
var
|
|
2072
|
-
const { children: t, ...n } = e, o = a.Children.toArray(t), l = o.find(
|
|
2128
|
+
Ri.displayName = "AlertDescription";
|
|
2129
|
+
var Ii = a.forwardRef((e, r) => {
|
|
2130
|
+
const { children: t, ...n } = e, o = a.Children.toArray(t), l = o.find(Ai);
|
|
2073
2131
|
if (l) {
|
|
2074
2132
|
const i = l.props.children, c = o.map((d) => d === l ? a.Children.count(i) > 1 ? a.Children.only(null) : a.isValidElement(i) ? i.props.children : null : d);
|
|
2075
2133
|
return /* @__PURE__ */ s.jsx(Et, { ...n, ref: r, children: a.isValidElement(i) ? a.cloneElement(i, void 0, c) : null });
|
|
2076
2134
|
}
|
|
2077
2135
|
return /* @__PURE__ */ s.jsx(Et, { ...n, ref: r, children: t });
|
|
2078
2136
|
});
|
|
2079
|
-
|
|
2137
|
+
Ii.displayName = "Slot";
|
|
2080
2138
|
var Et = a.forwardRef((e, r) => {
|
|
2081
2139
|
const { children: t, ...n } = e;
|
|
2082
2140
|
if (a.isValidElement(t)) {
|
|
2083
|
-
const o =
|
|
2141
|
+
const o = Di(t);
|
|
2084
2142
|
return a.cloneElement(t, {
|
|
2085
|
-
...
|
|
2143
|
+
...Mi(n, t.props),
|
|
2086
2144
|
// @ts-ignore
|
|
2087
2145
|
ref: r ? je(r, o) : o
|
|
2088
2146
|
});
|
|
@@ -2091,10 +2149,10 @@ var Et = a.forwardRef((e, r) => {
|
|
|
2091
2149
|
});
|
|
2092
2150
|
Et.displayName = "SlotClone";
|
|
2093
2151
|
var oo = ({ children: e }) => /* @__PURE__ */ s.jsx(s.Fragment, { children: e });
|
|
2094
|
-
function
|
|
2152
|
+
function Ai(e) {
|
|
2095
2153
|
return a.isValidElement(e) && e.type === oo;
|
|
2096
2154
|
}
|
|
2097
|
-
function
|
|
2155
|
+
function Mi(e, r) {
|
|
2098
2156
|
const t = { ...r };
|
|
2099
2157
|
for (const n in r) {
|
|
2100
2158
|
const o = e[n], l = r[n];
|
|
@@ -2104,47 +2162,47 @@ function Ri(e, r) {
|
|
|
2104
2162
|
}
|
|
2105
2163
|
return { ...e, ...t };
|
|
2106
2164
|
}
|
|
2107
|
-
function
|
|
2165
|
+
function Di(e) {
|
|
2108
2166
|
var n, o;
|
|
2109
2167
|
let r = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, t = r && "isReactWarning" in r && r.isReactWarning;
|
|
2110
2168
|
return t ? e.ref : (r = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
|
|
2111
2169
|
}
|
|
2112
|
-
var ao = "AlertDialog", [
|
|
2113
|
-
|
|
2114
|
-
]), ue =
|
|
2170
|
+
var ao = "AlertDialog", [Ti, bd] = Ne(ao, [
|
|
2171
|
+
Mr
|
|
2172
|
+
]), ue = Mr(), lo = (e) => {
|
|
2115
2173
|
const { __scopeAlertDialog: r, ...t } = e, n = ue(r);
|
|
2116
2174
|
return /* @__PURE__ */ s.jsx(Ot, { ...n, ...t, modal: !0 });
|
|
2117
2175
|
};
|
|
2118
2176
|
lo.displayName = ao;
|
|
2119
|
-
var
|
|
2177
|
+
var Pi = "AlertDialogTrigger", so = a.forwardRef(
|
|
2120
2178
|
(e, r) => {
|
|
2121
2179
|
const { __scopeAlertDialog: t, ...n } = e, o = ue(t);
|
|
2122
2180
|
return /* @__PURE__ */ s.jsx(yr, { ...o, ...n, ref: r });
|
|
2123
2181
|
}
|
|
2124
2182
|
);
|
|
2125
|
-
so.displayName =
|
|
2126
|
-
var
|
|
2183
|
+
so.displayName = Pi;
|
|
2184
|
+
var ji = "AlertDialogPortal", io = (e) => {
|
|
2127
2185
|
const { __scopeAlertDialog: r, ...t } = e, n = ue(r);
|
|
2128
2186
|
return /* @__PURE__ */ s.jsx(kt, { ...n, ...t });
|
|
2129
2187
|
};
|
|
2130
|
-
io.displayName =
|
|
2131
|
-
var
|
|
2188
|
+
io.displayName = ji;
|
|
2189
|
+
var Oi = "AlertDialogOverlay", co = a.forwardRef(
|
|
2132
2190
|
(e, r) => {
|
|
2133
2191
|
const { __scopeAlertDialog: t, ...n } = e, o = ue(t);
|
|
2134
2192
|
return /* @__PURE__ */ s.jsx(qe, { ...o, ...n, ref: r });
|
|
2135
2193
|
}
|
|
2136
2194
|
);
|
|
2137
|
-
co.displayName =
|
|
2138
|
-
var _e = "AlertDialogContent", [
|
|
2195
|
+
co.displayName = Oi;
|
|
2196
|
+
var _e = "AlertDialogContent", [ki, $i] = Ti(_e), uo = a.forwardRef(
|
|
2139
2197
|
(e, r) => {
|
|
2140
2198
|
const { __scopeAlertDialog: t, children: n, ...o } = e, l = ue(t), i = a.useRef(null), c = q(r, i), d = a.useRef(null);
|
|
2141
2199
|
return /* @__PURE__ */ s.jsx(
|
|
2142
|
-
|
|
2200
|
+
Ta,
|
|
2143
2201
|
{
|
|
2144
2202
|
contentName: _e,
|
|
2145
2203
|
titleName: po,
|
|
2146
2204
|
docsSlug: "alert-dialog",
|
|
2147
|
-
children: /* @__PURE__ */ s.jsx(
|
|
2205
|
+
children: /* @__PURE__ */ s.jsx(ki, { scope: t, cancelRef: d, children: /* @__PURE__ */ s.jsxs(
|
|
2148
2206
|
Xe,
|
|
2149
2207
|
{
|
|
2150
2208
|
role: "alertdialog",
|
|
@@ -2159,7 +2217,7 @@ var _e = "AlertDialogContent", [Ti, ji] = Mi(_e), uo = a.forwardRef(
|
|
|
2159
2217
|
onInteractOutside: (u) => u.preventDefault(),
|
|
2160
2218
|
children: [
|
|
2161
2219
|
/* @__PURE__ */ s.jsx(oo, { children: n }),
|
|
2162
|
-
/* @__PURE__ */ s.jsx(
|
|
2220
|
+
/* @__PURE__ */ s.jsx(Vi, { contentRef: i })
|
|
2163
2221
|
]
|
|
2164
2222
|
}
|
|
2165
2223
|
) })
|
|
@@ -2180,21 +2238,21 @@ var mo = "AlertDialogDescription", go = a.forwardRef((e, r) => {
|
|
|
2180
2238
|
return /* @__PURE__ */ s.jsx(Lt, { ...o, ...n, ref: r });
|
|
2181
2239
|
});
|
|
2182
2240
|
go.displayName = mo;
|
|
2183
|
-
var
|
|
2241
|
+
var Li = "AlertDialogAction", vo = a.forwardRef(
|
|
2184
2242
|
(e, r) => {
|
|
2185
2243
|
const { __scopeAlertDialog: t, ...n } = e, o = ue(t);
|
|
2186
2244
|
return /* @__PURE__ */ s.jsx(Ye, { ...o, ...n, ref: r });
|
|
2187
2245
|
}
|
|
2188
2246
|
);
|
|
2189
|
-
vo.displayName =
|
|
2247
|
+
vo.displayName = Li;
|
|
2190
2248
|
var ho = "AlertDialogCancel", xo = a.forwardRef(
|
|
2191
2249
|
(e, r) => {
|
|
2192
|
-
const { __scopeAlertDialog: t, ...n } = e, { cancelRef: o } =
|
|
2250
|
+
const { __scopeAlertDialog: t, ...n } = e, { cancelRef: o } = $i(ho, t), l = ue(t), i = q(r, o);
|
|
2193
2251
|
return /* @__PURE__ */ s.jsx(Ye, { ...l, ...n, ref: i });
|
|
2194
2252
|
}
|
|
2195
2253
|
);
|
|
2196
2254
|
xo.displayName = ho;
|
|
2197
|
-
var
|
|
2255
|
+
var Vi = ({ contentRef: e }) => {
|
|
2198
2256
|
const r = `\`${_e}\` requires a description for the component to be accessible for screen reader users.
|
|
2199
2257
|
|
|
2200
2258
|
You can add a description to the \`${_e}\` by passing a \`${mo}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
@@ -2208,8 +2266,8 @@ For more information, see https://radix-ui.com/primitives/docs/components/alert-
|
|
|
2208
2266
|
(n = e.current) == null ? void 0 : n.getAttribute("aria-describedby")
|
|
2209
2267
|
) || console.warn(r);
|
|
2210
2268
|
}, [r, e]), null;
|
|
2211
|
-
},
|
|
2212
|
-
const
|
|
2269
|
+
}, Fi = lo, Bi = so, Gi = io, yo = co, bo = uo, wo = vo, So = xo, Co = fo, _o = go;
|
|
2270
|
+
const wd = Fi, Sd = Bi, Ki = Gi, No = a.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ s.jsx(
|
|
2213
2271
|
yo,
|
|
2214
2272
|
{
|
|
2215
2273
|
className: E(
|
|
@@ -2221,10 +2279,10 @@ const xd = $i, yd = Li, Fi = Vi, No = a.forwardRef(({ className: e, ...r }, t) =
|
|
|
2221
2279
|
}
|
|
2222
2280
|
));
|
|
2223
2281
|
No.displayName = yo.displayName;
|
|
2224
|
-
const
|
|
2282
|
+
const Ui = a.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ s.jsxs(Ki, { children: [
|
|
2225
2283
|
/* @__PURE__ */ s.jsx(No, {}),
|
|
2226
2284
|
/* @__PURE__ */ s.jsx(
|
|
2227
|
-
|
|
2285
|
+
bo,
|
|
2228
2286
|
{
|
|
2229
2287
|
ref: t,
|
|
2230
2288
|
className: E(
|
|
@@ -2235,16 +2293,16 @@ const Bi = a.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ s.jsxs(Fi
|
|
|
2235
2293
|
}
|
|
2236
2294
|
)
|
|
2237
2295
|
] }));
|
|
2238
|
-
|
|
2239
|
-
const
|
|
2296
|
+
Ui.displayName = bo.displayName;
|
|
2297
|
+
const Hi = ({ className: e, ...r }) => /* @__PURE__ */ s.jsx(
|
|
2240
2298
|
"div",
|
|
2241
2299
|
{
|
|
2242
2300
|
className: E("al-flex al-flex-col al-space-y-2 al-text-center sm:al-text-left", e),
|
|
2243
2301
|
...r
|
|
2244
2302
|
}
|
|
2245
2303
|
);
|
|
2246
|
-
|
|
2247
|
-
const
|
|
2304
|
+
Hi.displayName = "AlertDialogHeader";
|
|
2305
|
+
const Wi = ({ className: e, ...r }) => /* @__PURE__ */ s.jsx(
|
|
2248
2306
|
"div",
|
|
2249
2307
|
{
|
|
2250
2308
|
className: E(
|
|
@@ -2254,8 +2312,8 @@ const Hi = ({ className: e, ...r }) => /* @__PURE__ */ s.jsx(
|
|
|
2254
2312
|
...r
|
|
2255
2313
|
}
|
|
2256
2314
|
);
|
|
2257
|
-
|
|
2258
|
-
const
|
|
2315
|
+
Wi.displayName = "AlertDialogFooter";
|
|
2316
|
+
const zi = a.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ s.jsx(
|
|
2259
2317
|
Co,
|
|
2260
2318
|
{
|
|
2261
2319
|
ref: t,
|
|
@@ -2263,8 +2321,8 @@ const Ki = a.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ s.jsx(
|
|
|
2263
2321
|
...r
|
|
2264
2322
|
}
|
|
2265
2323
|
));
|
|
2266
|
-
|
|
2267
|
-
const
|
|
2324
|
+
zi.displayName = Co.displayName;
|
|
2325
|
+
const Yi = a.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ s.jsx(
|
|
2268
2326
|
_o,
|
|
2269
2327
|
{
|
|
2270
2328
|
ref: t,
|
|
@@ -2272,10 +2330,10 @@ const Ui = a.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ s.jsx(
|
|
|
2272
2330
|
...r
|
|
2273
2331
|
}
|
|
2274
2332
|
));
|
|
2275
|
-
|
|
2276
|
-
const
|
|
2277
|
-
|
|
2278
|
-
const
|
|
2333
|
+
Yi.displayName = _o.displayName;
|
|
2334
|
+
const qi = a.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ s.jsx(wo, { ref: t, className: E(Dr(), e), ...r }));
|
|
2335
|
+
qi.displayName = wo.displayName;
|
|
2336
|
+
const Xi = a.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ s.jsx(
|
|
2279
2337
|
So,
|
|
2280
2338
|
{
|
|
2281
2339
|
ref: t,
|
|
@@ -2283,12 +2341,12 @@ const zi = a.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ s.jsx(
|
|
|
2283
2341
|
...r
|
|
2284
2342
|
}
|
|
2285
2343
|
));
|
|
2286
|
-
|
|
2344
|
+
Xi.displayName = So.displayName;
|
|
2287
2345
|
function mr(e, [r, t]) {
|
|
2288
2346
|
return Math.min(t, Math.max(r, e));
|
|
2289
2347
|
}
|
|
2290
2348
|
var Eo = a.forwardRef((e, r) => {
|
|
2291
|
-
const { children: t, ...n } = e, o = a.Children.toArray(t), l = o.find(
|
|
2349
|
+
const { children: t, ...n } = e, o = a.Children.toArray(t), l = o.find(Ji);
|
|
2292
2350
|
if (l) {
|
|
2293
2351
|
const i = l.props.children, c = o.map((d) => d === l ? a.Children.count(i) > 1 ? a.Children.only(null) : a.isValidElement(i) ? i.props.children : null : d);
|
|
2294
2352
|
return /* @__PURE__ */ s.jsx(Rt, { ...n, ref: r, children: a.isValidElement(i) ? a.cloneElement(i, void 0, c) : null });
|
|
@@ -2299,9 +2357,9 @@ Eo.displayName = "Slot";
|
|
|
2299
2357
|
var Rt = a.forwardRef((e, r) => {
|
|
2300
2358
|
const { children: t, ...n } = e;
|
|
2301
2359
|
if (a.isValidElement(t)) {
|
|
2302
|
-
const o =
|
|
2360
|
+
const o = ec(t);
|
|
2303
2361
|
return a.cloneElement(t, {
|
|
2304
|
-
...
|
|
2362
|
+
...Qi(n, t.props),
|
|
2305
2363
|
// @ts-ignore
|
|
2306
2364
|
ref: r ? je(r, o) : o
|
|
2307
2365
|
});
|
|
@@ -2309,11 +2367,11 @@ var Rt = a.forwardRef((e, r) => {
|
|
|
2309
2367
|
return a.Children.count(t) > 1 ? a.Children.only(null) : null;
|
|
2310
2368
|
});
|
|
2311
2369
|
Rt.displayName = "SlotClone";
|
|
2312
|
-
var
|
|
2313
|
-
function
|
|
2314
|
-
return a.isValidElement(e) && e.type ===
|
|
2370
|
+
var Zi = ({ children: e }) => /* @__PURE__ */ s.jsx(s.Fragment, { children: e });
|
|
2371
|
+
function Ji(e) {
|
|
2372
|
+
return a.isValidElement(e) && e.type === Zi;
|
|
2315
2373
|
}
|
|
2316
|
-
function
|
|
2374
|
+
function Qi(e, r) {
|
|
2317
2375
|
const t = { ...r };
|
|
2318
2376
|
for (const n in r) {
|
|
2319
2377
|
const o = e[n], l = r[n];
|
|
@@ -2323,15 +2381,15 @@ function Xi(e, r) {
|
|
|
2323
2381
|
}
|
|
2324
2382
|
return { ...e, ...t };
|
|
2325
2383
|
}
|
|
2326
|
-
function
|
|
2384
|
+
function ec(e) {
|
|
2327
2385
|
var n, o;
|
|
2328
2386
|
let r = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, t = r && "isReactWarning" in r && r.isReactWarning;
|
|
2329
2387
|
return t ? e.ref : (r = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
|
|
2330
2388
|
}
|
|
2331
|
-
var
|
|
2332
|
-
|
|
2389
|
+
var tc = [" ", "Enter", "ArrowUp", "ArrowDown"], rc = [" ", "Enter"], Fe = "Select", [ot, at, nc] = Vt(Fe), [Ee, Cd] = Ne(Fe, [
|
|
2390
|
+
nc,
|
|
2333
2391
|
Je
|
|
2334
|
-
]), lt = Je(), [
|
|
2392
|
+
]), lt = Je(), [oc, fe] = Ee(Fe), [ac, lc] = Ee(Fe), Ro = (e) => {
|
|
2335
2393
|
const {
|
|
2336
2394
|
__scopeSelect: r,
|
|
2337
2395
|
children: t,
|
|
@@ -2347,21 +2405,21 @@ var Ji = [" ", "Enter", "ArrowUp", "ArrowDown"], Qi = [" ", "Enter"], Fe = "Sele
|
|
|
2347
2405
|
disabled: g,
|
|
2348
2406
|
required: x,
|
|
2349
2407
|
form: y
|
|
2350
|
-
} = e, v = lt(r), [
|
|
2408
|
+
} = e, v = lt(r), [b, S] = a.useState(null), [h, _] = a.useState(null), [L, V] = a.useState(!1), j = Ft(u), [T = !1, U] = xe({
|
|
2351
2409
|
prop: n,
|
|
2352
2410
|
defaultProp: o,
|
|
2353
2411
|
onChange: l
|
|
2354
|
-
}), [G,
|
|
2412
|
+
}), [G, H] = xe({
|
|
2355
2413
|
prop: i,
|
|
2356
2414
|
defaultProp: c,
|
|
2357
2415
|
onChange: d
|
|
2358
|
-
}), re = a.useRef(null), Z =
|
|
2416
|
+
}), re = a.useRef(null), Z = b ? y || !!b.closest("form") : !0, [oe, W] = a.useState(/* @__PURE__ */ new Set()), J = Array.from(oe).map((K) => K.props.value).join(";");
|
|
2359
2417
|
return /* @__PURE__ */ s.jsx(Bt, { ...v, children: /* @__PURE__ */ s.jsxs(
|
|
2360
|
-
|
|
2418
|
+
oc,
|
|
2361
2419
|
{
|
|
2362
2420
|
required: x,
|
|
2363
2421
|
scope: r,
|
|
2364
|
-
trigger:
|
|
2422
|
+
trigger: b,
|
|
2365
2423
|
onTriggerChange: S,
|
|
2366
2424
|
valueNode: h,
|
|
2367
2425
|
onValueNodeChange: _,
|
|
@@ -2369,24 +2427,24 @@ var Ji = [" ", "Enter", "ArrowUp", "ArrowDown"], Qi = [" ", "Enter"], Fe = "Sele
|
|
|
2369
2427
|
onValueNodeHasChildrenChange: V,
|
|
2370
2428
|
contentId: ne(),
|
|
2371
2429
|
value: G,
|
|
2372
|
-
onValueChange:
|
|
2373
|
-
open:
|
|
2374
|
-
onOpenChange:
|
|
2430
|
+
onValueChange: H,
|
|
2431
|
+
open: T,
|
|
2432
|
+
onOpenChange: U,
|
|
2375
2433
|
dir: j,
|
|
2376
2434
|
triggerPointerDownPosRef: re,
|
|
2377
2435
|
disabled: g,
|
|
2378
2436
|
children: [
|
|
2379
2437
|
/* @__PURE__ */ s.jsx(ot.Provider, { scope: r, children: /* @__PURE__ */ s.jsx(
|
|
2380
|
-
|
|
2438
|
+
ac,
|
|
2381
2439
|
{
|
|
2382
2440
|
scope: e.__scopeSelect,
|
|
2383
|
-
onNativeOptionAdd: a.useCallback((
|
|
2384
|
-
W((Q) => new Set(Q).add(
|
|
2441
|
+
onNativeOptionAdd: a.useCallback((K) => {
|
|
2442
|
+
W((Q) => new Set(Q).add(K));
|
|
2385
2443
|
}, []),
|
|
2386
|
-
onNativeOptionRemove: a.useCallback((
|
|
2444
|
+
onNativeOptionRemove: a.useCallback((K) => {
|
|
2387
2445
|
W((Q) => {
|
|
2388
2446
|
const z = new Set(Q);
|
|
2389
|
-
return z.delete(
|
|
2447
|
+
return z.delete(K), z;
|
|
2390
2448
|
});
|
|
2391
2449
|
}, []),
|
|
2392
2450
|
children: t
|
|
@@ -2401,7 +2459,7 @@ var Ji = [" ", "Enter", "ArrowUp", "ArrowDown"], Qi = [" ", "Enter"], Fe = "Sele
|
|
|
2401
2459
|
name: f,
|
|
2402
2460
|
autoComplete: p,
|
|
2403
2461
|
value: G,
|
|
2404
|
-
onChange: (
|
|
2462
|
+
onChange: (K) => H(K.target.value),
|
|
2405
2463
|
disabled: g,
|
|
2406
2464
|
form: y,
|
|
2407
2465
|
children: [
|
|
@@ -2416,10 +2474,10 @@ var Ji = [" ", "Enter", "ArrowUp", "ArrowDown"], Qi = [" ", "Enter"], Fe = "Sele
|
|
|
2416
2474
|
) });
|
|
2417
2475
|
};
|
|
2418
2476
|
Ro.displayName = Fe;
|
|
2419
|
-
var Io = "SelectTrigger",
|
|
2477
|
+
var Io = "SelectTrigger", Ao = a.forwardRef(
|
|
2420
2478
|
(e, r) => {
|
|
2421
2479
|
const { __scopeSelect: t, disabled: n = !1, ...o } = e, l = lt(t), i = fe(Io, t), c = i.disabled || n, d = q(r, i.onTriggerChange), u = at(t), f = a.useRef("touch"), [p, g, x] = ea((v) => {
|
|
2422
|
-
const
|
|
2480
|
+
const b = u().filter((_) => !_.disabled), S = b.find((_) => _.value === i.value), h = ta(b, v, S);
|
|
2423
2481
|
h !== void 0 && i.onValueChange(h.value);
|
|
2424
2482
|
}), y = (v) => {
|
|
2425
2483
|
c || (i.onOpenChange(!0), x()), v && (i.triggerPointerDownPosRef.current = {
|
|
@@ -2427,7 +2485,7 @@ var Io = "SelectTrigger", Mo = a.forwardRef(
|
|
|
2427
2485
|
y: Math.round(v.pageY)
|
|
2428
2486
|
});
|
|
2429
2487
|
};
|
|
2430
|
-
return /* @__PURE__ */ s.jsx(
|
|
2488
|
+
return /* @__PURE__ */ s.jsx(wr, { asChild: !0, ...l, children: /* @__PURE__ */ s.jsx(
|
|
2431
2489
|
$.button,
|
|
2432
2490
|
{
|
|
2433
2491
|
type: "button",
|
|
@@ -2448,21 +2506,21 @@ var Io = "SelectTrigger", Mo = a.forwardRef(
|
|
|
2448
2506
|
}),
|
|
2449
2507
|
onPointerDown: I(o.onPointerDown, (v) => {
|
|
2450
2508
|
f.current = v.pointerType;
|
|
2451
|
-
const
|
|
2452
|
-
|
|
2509
|
+
const b = v.target;
|
|
2510
|
+
b.hasPointerCapture(v.pointerId) && b.releasePointerCapture(v.pointerId), v.button === 0 && v.ctrlKey === !1 && v.pointerType === "mouse" && (y(v), v.preventDefault());
|
|
2453
2511
|
}),
|
|
2454
2512
|
onKeyDown: I(o.onKeyDown, (v) => {
|
|
2455
|
-
const
|
|
2456
|
-
!(v.ctrlKey || v.altKey || v.metaKey) && v.key.length === 1 && g(v.key), !(
|
|
2513
|
+
const b = p.current !== "";
|
|
2514
|
+
!(v.ctrlKey || v.altKey || v.metaKey) && v.key.length === 1 && g(v.key), !(b && v.key === " ") && tc.includes(v.key) && (y(), v.preventDefault());
|
|
2457
2515
|
})
|
|
2458
2516
|
}
|
|
2459
2517
|
) });
|
|
2460
2518
|
}
|
|
2461
2519
|
);
|
|
2462
|
-
|
|
2463
|
-
var
|
|
2520
|
+
Ao.displayName = Io;
|
|
2521
|
+
var Mo = "SelectValue", Do = a.forwardRef(
|
|
2464
2522
|
(e, r) => {
|
|
2465
|
-
const { __scopeSelect: t, className: n, style: o, children: l, placeholder: i = "", ...c } = e, d = fe(
|
|
2523
|
+
const { __scopeSelect: t, className: n, style: o, children: l, placeholder: i = "", ...c } = e, d = fe(Mo, t), { onValueNodeHasChildrenChange: u } = d, f = l !== void 0, p = q(r, d.onValueNodeChange);
|
|
2466
2524
|
return ce(() => {
|
|
2467
2525
|
u(f);
|
|
2468
2526
|
}, [u, f]), /* @__PURE__ */ s.jsx(
|
|
@@ -2476,24 +2534,24 @@ var Ao = "SelectValue", Do = a.forwardRef(
|
|
|
2476
2534
|
);
|
|
2477
2535
|
}
|
|
2478
2536
|
);
|
|
2479
|
-
Do.displayName =
|
|
2480
|
-
var
|
|
2537
|
+
Do.displayName = Mo;
|
|
2538
|
+
var sc = "SelectIcon", To = a.forwardRef(
|
|
2481
2539
|
(e, r) => {
|
|
2482
2540
|
const { __scopeSelect: t, children: n, ...o } = e;
|
|
2483
2541
|
return /* @__PURE__ */ s.jsx($.span, { "aria-hidden": !0, ...o, ref: r, children: n || "▼" });
|
|
2484
2542
|
}
|
|
2485
2543
|
);
|
|
2486
|
-
|
|
2487
|
-
var
|
|
2488
|
-
|
|
2489
|
-
var
|
|
2544
|
+
To.displayName = sc;
|
|
2545
|
+
var ic = "SelectPortal", Po = (e) => /* @__PURE__ */ s.jsx(Ar, { asChild: !0, ...e });
|
|
2546
|
+
Po.displayName = ic;
|
|
2547
|
+
var we = "SelectContent", jo = a.forwardRef(
|
|
2490
2548
|
(e, r) => {
|
|
2491
|
-
const t = fe(
|
|
2549
|
+
const t = fe(we, e.__scopeSelect), [n, o] = a.useState();
|
|
2492
2550
|
if (ce(() => {
|
|
2493
2551
|
o(new DocumentFragment());
|
|
2494
2552
|
}, []), !t.open) {
|
|
2495
2553
|
const l = n;
|
|
2496
|
-
return l ?
|
|
2554
|
+
return l ? Tr.createPortal(
|
|
2497
2555
|
/* @__PURE__ */ s.jsx(Oo, { scope: e.__scopeSelect, children: /* @__PURE__ */ s.jsx(ot.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ s.jsx("div", { children: e.children }) }) }),
|
|
2498
2556
|
l
|
|
2499
2557
|
) : null;
|
|
@@ -2501,8 +2559,8 @@ var be = "SelectContent", jo = a.forwardRef(
|
|
|
2501
2559
|
return /* @__PURE__ */ s.jsx(ko, { ...e, ref: r });
|
|
2502
2560
|
}
|
|
2503
2561
|
);
|
|
2504
|
-
jo.displayName =
|
|
2505
|
-
var ie = 10, [Oo, me] = Ee(
|
|
2562
|
+
jo.displayName = we;
|
|
2563
|
+
var ie = 10, [Oo, me] = Ee(we), cc = "SelectContentImpl", ko = a.forwardRef(
|
|
2506
2564
|
(e, r) => {
|
|
2507
2565
|
const {
|
|
2508
2566
|
__scopeSelect: t,
|
|
@@ -2521,25 +2579,25 @@ var ie = 10, [Oo, me] = Ee(be), lc = "SelectContentImpl", ko = a.forwardRef(
|
|
|
2521
2579
|
collisionPadding: x,
|
|
2522
2580
|
sticky: y,
|
|
2523
2581
|
hideWhenDetached: v,
|
|
2524
|
-
avoidCollisions:
|
|
2582
|
+
avoidCollisions: b,
|
|
2525
2583
|
//
|
|
2526
2584
|
...S
|
|
2527
|
-
} = e, h = fe(
|
|
2585
|
+
} = e, h = fe(we, t), [_, L] = a.useState(null), [V, j] = a.useState(null), T = q(r, (w) => L(w)), [U, G] = a.useState(null), [H, re] = a.useState(
|
|
2528
2586
|
null
|
|
2529
2587
|
), Z = at(t), [oe, W] = a.useState(!1), J = a.useRef(!1);
|
|
2530
2588
|
a.useEffect(() => {
|
|
2531
2589
|
if (_) return Sr(_);
|
|
2532
2590
|
}, [_]), Cr();
|
|
2533
|
-
const
|
|
2534
|
-
(
|
|
2535
|
-
const [
|
|
2536
|
-
for (const B of
|
|
2537
|
-
if (B === F || (B == null || B.scrollIntoView({ block: "nearest" }), B ===
|
|
2591
|
+
const K = a.useCallback(
|
|
2592
|
+
(w) => {
|
|
2593
|
+
const [M, ...O] = Z().map((B) => B.ref.current), [k] = O.slice(-1), F = document.activeElement;
|
|
2594
|
+
for (const B of w)
|
|
2595
|
+
if (B === F || (B == null || B.scrollIntoView({ block: "nearest" }), B === M && V && (V.scrollTop = 0), B === k && V && (V.scrollTop = V.scrollHeight), B == null || B.focus(), document.activeElement !== F)) return;
|
|
2538
2596
|
},
|
|
2539
2597
|
[Z, V]
|
|
2540
2598
|
), Q = a.useCallback(
|
|
2541
|
-
() =>
|
|
2542
|
-
[
|
|
2599
|
+
() => K([U, _]),
|
|
2600
|
+
[K, U, _]
|
|
2543
2601
|
);
|
|
2544
2602
|
a.useEffect(() => {
|
|
2545
2603
|
oe && Q();
|
|
@@ -2547,39 +2605,39 @@ var ie = 10, [Oo, me] = Ee(be), lc = "SelectContentImpl", ko = a.forwardRef(
|
|
|
2547
2605
|
const { onOpenChange: z, triggerPointerDownPosRef: N } = h;
|
|
2548
2606
|
a.useEffect(() => {
|
|
2549
2607
|
if (_) {
|
|
2550
|
-
let
|
|
2551
|
-
const
|
|
2608
|
+
let w = { x: 0, y: 0 };
|
|
2609
|
+
const M = (k) => {
|
|
2552
2610
|
var F, B;
|
|
2553
|
-
|
|
2611
|
+
w = {
|
|
2554
2612
|
x: Math.abs(Math.round(k.pageX) - (((F = N.current) == null ? void 0 : F.x) ?? 0)),
|
|
2555
2613
|
y: Math.abs(Math.round(k.pageY) - (((B = N.current) == null ? void 0 : B.y) ?? 0))
|
|
2556
2614
|
};
|
|
2557
2615
|
}, O = (k) => {
|
|
2558
|
-
|
|
2616
|
+
w.x <= 10 && w.y <= 10 ? k.preventDefault() : _.contains(k.target) || z(!1), document.removeEventListener("pointermove", M), N.current = null;
|
|
2559
2617
|
};
|
|
2560
|
-
return N.current !== null && (document.addEventListener("pointermove",
|
|
2561
|
-
document.removeEventListener("pointermove",
|
|
2618
|
+
return N.current !== null && (document.addEventListener("pointermove", M), document.addEventListener("pointerup", O, { capture: !0, once: !0 })), () => {
|
|
2619
|
+
document.removeEventListener("pointermove", M), document.removeEventListener("pointerup", O, { capture: !0 });
|
|
2562
2620
|
};
|
|
2563
2621
|
}
|
|
2564
2622
|
}, [_, z, N]), a.useEffect(() => {
|
|
2565
|
-
const
|
|
2566
|
-
return window.addEventListener("blur",
|
|
2567
|
-
window.removeEventListener("blur",
|
|
2623
|
+
const w = () => z(!1);
|
|
2624
|
+
return window.addEventListener("blur", w), window.addEventListener("resize", w), () => {
|
|
2625
|
+
window.removeEventListener("blur", w), window.removeEventListener("resize", w);
|
|
2568
2626
|
};
|
|
2569
2627
|
}, [z]);
|
|
2570
|
-
const [Y, X] = ea((
|
|
2571
|
-
const
|
|
2628
|
+
const [Y, X] = ea((w) => {
|
|
2629
|
+
const M = Z().filter((F) => !F.disabled), O = M.find((F) => F.ref.current === document.activeElement), k = ta(M, w, O);
|
|
2572
2630
|
k && setTimeout(() => k.ref.current.focus());
|
|
2573
2631
|
}), m = a.useCallback(
|
|
2574
|
-
(
|
|
2632
|
+
(w, M, O) => {
|
|
2575
2633
|
const k = !J.current && !O;
|
|
2576
|
-
(h.value !== void 0 && h.value ===
|
|
2634
|
+
(h.value !== void 0 && h.value === M || k) && (G(w), k && (J.current = !0));
|
|
2577
2635
|
},
|
|
2578
2636
|
[h.value]
|
|
2579
|
-
), R = a.useCallback(() => _ == null ? void 0 : _.focus(), [_]),
|
|
2580
|
-
(
|
|
2637
|
+
), R = a.useCallback(() => _ == null ? void 0 : _.focus(), [_]), A = a.useCallback(
|
|
2638
|
+
(w, M, O) => {
|
|
2581
2639
|
const k = !J.current && !O;
|
|
2582
|
-
(h.value !== void 0 && h.value ===
|
|
2640
|
+
(h.value !== void 0 && h.value === M || k) && re(w);
|
|
2583
2641
|
},
|
|
2584
2642
|
[h.value]
|
|
2585
2643
|
), C = n === "popper" ? It : $o, D = C === It ? {
|
|
@@ -2592,7 +2650,7 @@ var ie = 10, [Oo, me] = Ee(be), lc = "SelectContentImpl", ko = a.forwardRef(
|
|
|
2592
2650
|
collisionPadding: x,
|
|
2593
2651
|
sticky: y,
|
|
2594
2652
|
hideWhenDetached: v,
|
|
2595
|
-
avoidCollisions:
|
|
2653
|
+
avoidCollisions: b
|
|
2596
2654
|
} : {};
|
|
2597
2655
|
return /* @__PURE__ */ s.jsx(
|
|
2598
2656
|
Oo,
|
|
@@ -2602,11 +2660,11 @@ var ie = 10, [Oo, me] = Ee(be), lc = "SelectContentImpl", ko = a.forwardRef(
|
|
|
2602
2660
|
viewport: V,
|
|
2603
2661
|
onViewportChange: j,
|
|
2604
2662
|
itemRefCallback: m,
|
|
2605
|
-
selectedItem:
|
|
2663
|
+
selectedItem: U,
|
|
2606
2664
|
onItemLeave: R,
|
|
2607
|
-
itemTextRefCallback:
|
|
2665
|
+
itemTextRefCallback: A,
|
|
2608
2666
|
focusSelectedItem: Q,
|
|
2609
|
-
selectedItemText:
|
|
2667
|
+
selectedItemText: H,
|
|
2610
2668
|
position: n,
|
|
2611
2669
|
isPositioned: oe,
|
|
2612
2670
|
searchRef: Y,
|
|
@@ -2615,12 +2673,12 @@ var ie = 10, [Oo, me] = Ee(be), lc = "SelectContentImpl", ko = a.forwardRef(
|
|
|
2615
2673
|
{
|
|
2616
2674
|
asChild: !0,
|
|
2617
2675
|
trapped: h.open,
|
|
2618
|
-
onMountAutoFocus: (
|
|
2619
|
-
|
|
2676
|
+
onMountAutoFocus: (w) => {
|
|
2677
|
+
w.preventDefault();
|
|
2620
2678
|
},
|
|
2621
|
-
onUnmountAutoFocus: I(o, (
|
|
2622
|
-
var
|
|
2623
|
-
(
|
|
2679
|
+
onUnmountAutoFocus: I(o, (w) => {
|
|
2680
|
+
var M;
|
|
2681
|
+
(M = h.trigger) == null || M.focus({ preventScroll: !0 }), w.preventDefault();
|
|
2624
2682
|
}),
|
|
2625
2683
|
children: /* @__PURE__ */ s.jsx(
|
|
2626
2684
|
Nr,
|
|
@@ -2629,7 +2687,7 @@ var ie = 10, [Oo, me] = Ee(be), lc = "SelectContentImpl", ko = a.forwardRef(
|
|
|
2629
2687
|
disableOutsidePointerEvents: !0,
|
|
2630
2688
|
onEscapeKeyDown: l,
|
|
2631
2689
|
onPointerDownOutside: i,
|
|
2632
|
-
onFocusOutside: (
|
|
2690
|
+
onFocusOutside: (w) => w.preventDefault(),
|
|
2633
2691
|
onDismiss: () => h.onOpenChange(!1),
|
|
2634
2692
|
children: /* @__PURE__ */ s.jsx(
|
|
2635
2693
|
C,
|
|
@@ -2638,11 +2696,11 @@ var ie = 10, [Oo, me] = Ee(be), lc = "SelectContentImpl", ko = a.forwardRef(
|
|
|
2638
2696
|
id: h.contentId,
|
|
2639
2697
|
"data-state": h.open ? "open" : "closed",
|
|
2640
2698
|
dir: h.dir,
|
|
2641
|
-
onContextMenu: (
|
|
2699
|
+
onContextMenu: (w) => w.preventDefault(),
|
|
2642
2700
|
...S,
|
|
2643
2701
|
...D,
|
|
2644
2702
|
onPlaced: () => W(!0),
|
|
2645
|
-
ref:
|
|
2703
|
+
ref: T,
|
|
2646
2704
|
style: {
|
|
2647
2705
|
// flex layout so we can place the scroll buttons properly
|
|
2648
2706
|
display: "flex",
|
|
@@ -2651,15 +2709,15 @@ var ie = 10, [Oo, me] = Ee(be), lc = "SelectContentImpl", ko = a.forwardRef(
|
|
|
2651
2709
|
outline: "none",
|
|
2652
2710
|
...S.style
|
|
2653
2711
|
},
|
|
2654
|
-
onKeyDown: I(S.onKeyDown, (
|
|
2655
|
-
const
|
|
2656
|
-
if (
|
|
2712
|
+
onKeyDown: I(S.onKeyDown, (w) => {
|
|
2713
|
+
const M = w.ctrlKey || w.altKey || w.metaKey;
|
|
2714
|
+
if (w.key === "Tab" && w.preventDefault(), !M && w.key.length === 1 && X(w.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(w.key)) {
|
|
2657
2715
|
let k = Z().filter((F) => !F.disabled).map((F) => F.ref.current);
|
|
2658
|
-
if (["ArrowUp", "End"].includes(
|
|
2659
|
-
const F =
|
|
2716
|
+
if (["ArrowUp", "End"].includes(w.key) && (k = k.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(w.key)) {
|
|
2717
|
+
const F = w.target, B = k.indexOf(F);
|
|
2660
2718
|
k = k.slice(B + 1);
|
|
2661
2719
|
}
|
|
2662
|
-
setTimeout(() =>
|
|
2720
|
+
setTimeout(() => K(k)), w.preventDefault();
|
|
2663
2721
|
}
|
|
2664
2722
|
})
|
|
2665
2723
|
}
|
|
@@ -2672,13 +2730,13 @@ var ie = 10, [Oo, me] = Ee(be), lc = "SelectContentImpl", ko = a.forwardRef(
|
|
|
2672
2730
|
);
|
|
2673
2731
|
}
|
|
2674
2732
|
);
|
|
2675
|
-
ko.displayName =
|
|
2676
|
-
var
|
|
2677
|
-
const { __scopeSelect: t, onPlaced: n, ...o } = e, l = fe(
|
|
2678
|
-
if (l.trigger && l.valueNode && c && u && v &&
|
|
2679
|
-
const
|
|
2733
|
+
ko.displayName = cc;
|
|
2734
|
+
var dc = "SelectItemAlignedPosition", $o = a.forwardRef((e, r) => {
|
|
2735
|
+
const { __scopeSelect: t, onPlaced: n, ...o } = e, l = fe(we, t), i = me(we, t), [c, d] = a.useState(null), [u, f] = a.useState(null), p = q(r, (T) => f(T)), g = at(t), x = a.useRef(!1), y = a.useRef(!0), { viewport: v, selectedItem: b, selectedItemText: S, focusSelectedItem: h } = i, _ = a.useCallback(() => {
|
|
2736
|
+
if (l.trigger && l.valueNode && c && u && v && b && S) {
|
|
2737
|
+
const T = l.trigger.getBoundingClientRect(), U = u.getBoundingClientRect(), G = l.valueNode.getBoundingClientRect(), H = S.getBoundingClientRect();
|
|
2680
2738
|
if (l.dir !== "rtl") {
|
|
2681
|
-
const F =
|
|
2739
|
+
const F = H.left - U.left, B = G.left - F, ge = T.left - B, ve = T.width + ge, ct = Math.max(ve, U.width), dt = window.innerWidth - ie, ut = mr(B, [
|
|
2682
2740
|
ie,
|
|
2683
2741
|
// Prevents the content from going off the starting edge of the
|
|
2684
2742
|
// viewport. It may still go off the ending edge, but this can be
|
|
@@ -2689,31 +2747,31 @@ var sc = "SelectItemAlignedPosition", $o = a.forwardRef((e, r) => {
|
|
|
2689
2747
|
]);
|
|
2690
2748
|
c.style.minWidth = ve + "px", c.style.left = ut + "px";
|
|
2691
2749
|
} else {
|
|
2692
|
-
const F =
|
|
2750
|
+
const F = U.right - H.right, B = window.innerWidth - G.right - F, ge = window.innerWidth - T.right - B, ve = T.width + ge, ct = Math.max(ve, U.width), dt = window.innerWidth - ie, ut = mr(B, [
|
|
2693
2751
|
ie,
|
|
2694
2752
|
Math.max(ie, dt - ct)
|
|
2695
2753
|
]);
|
|
2696
2754
|
c.style.minWidth = ve + "px", c.style.right = ut + "px";
|
|
2697
2755
|
}
|
|
2698
|
-
const re = g(), Z = window.innerHeight - ie * 2, oe = v.scrollHeight, W = window.getComputedStyle(u), J = parseInt(W.borderTopWidth, 10),
|
|
2699
|
-
if (
|
|
2700
|
-
const F = re.length > 0 &&
|
|
2756
|
+
const re = g(), Z = window.innerHeight - ie * 2, oe = v.scrollHeight, W = window.getComputedStyle(u), J = parseInt(W.borderTopWidth, 10), K = parseInt(W.paddingTop, 10), Q = parseInt(W.borderBottomWidth, 10), z = parseInt(W.paddingBottom, 10), N = J + K + oe + z + Q, Y = Math.min(b.offsetHeight * 5, N), X = window.getComputedStyle(v), m = parseInt(X.paddingTop, 10), R = parseInt(X.paddingBottom, 10), A = T.top + T.height / 2 - ie, C = Z - A, D = b.offsetHeight / 2, w = b.offsetTop + D, M = J + K + w, O = N - M;
|
|
2757
|
+
if (M <= A) {
|
|
2758
|
+
const F = re.length > 0 && b === re[re.length - 1].ref.current;
|
|
2701
2759
|
c.style.bottom = "0px";
|
|
2702
2760
|
const B = u.clientHeight - v.offsetTop - v.offsetHeight, ge = Math.max(
|
|
2703
2761
|
C,
|
|
2704
2762
|
D + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
2705
2763
|
(F ? R : 0) + B + Q
|
|
2706
|
-
), ve =
|
|
2764
|
+
), ve = M + ge;
|
|
2707
2765
|
c.style.height = ve + "px";
|
|
2708
2766
|
} else {
|
|
2709
|
-
const F = re.length > 0 &&
|
|
2767
|
+
const F = re.length > 0 && b === re[0].ref.current;
|
|
2710
2768
|
c.style.top = "0px";
|
|
2711
2769
|
const ge = Math.max(
|
|
2712
|
-
|
|
2770
|
+
A,
|
|
2713
2771
|
J + v.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
2714
2772
|
(F ? m : 0) + D
|
|
2715
2773
|
) + O;
|
|
2716
|
-
c.style.height = ge + "px", v.scrollTop =
|
|
2774
|
+
c.style.height = ge + "px", v.scrollTop = M - A + v.offsetTop;
|
|
2717
2775
|
}
|
|
2718
2776
|
c.style.margin = `${ie}px 0`, c.style.minHeight = Y + "px", c.style.maxHeight = Z + "px", n == null || n(), requestAnimationFrame(() => x.current = !0);
|
|
2719
2777
|
}
|
|
@@ -2724,7 +2782,7 @@ var sc = "SelectItemAlignedPosition", $o = a.forwardRef((e, r) => {
|
|
|
2724
2782
|
c,
|
|
2725
2783
|
u,
|
|
2726
2784
|
v,
|
|
2727
|
-
|
|
2785
|
+
b,
|
|
2728
2786
|
S,
|
|
2729
2787
|
l.dir,
|
|
2730
2788
|
n
|
|
@@ -2735,13 +2793,13 @@ var sc = "SelectItemAlignedPosition", $o = a.forwardRef((e, r) => {
|
|
|
2735
2793
|
u && V(window.getComputedStyle(u).zIndex);
|
|
2736
2794
|
}, [u]);
|
|
2737
2795
|
const j = a.useCallback(
|
|
2738
|
-
(
|
|
2739
|
-
|
|
2796
|
+
(T) => {
|
|
2797
|
+
T && y.current === !0 && (_(), h == null || h(), y.current = !1);
|
|
2740
2798
|
},
|
|
2741
2799
|
[_, h]
|
|
2742
2800
|
);
|
|
2743
2801
|
return /* @__PURE__ */ s.jsx(
|
|
2744
|
-
|
|
2802
|
+
pc,
|
|
2745
2803
|
{
|
|
2746
2804
|
scope: t,
|
|
2747
2805
|
contentWrapper: c,
|
|
@@ -2777,8 +2835,8 @@ var sc = "SelectItemAlignedPosition", $o = a.forwardRef((e, r) => {
|
|
|
2777
2835
|
}
|
|
2778
2836
|
);
|
|
2779
2837
|
});
|
|
2780
|
-
$o.displayName =
|
|
2781
|
-
var
|
|
2838
|
+
$o.displayName = dc;
|
|
2839
|
+
var uc = "SelectPopperPosition", It = a.forwardRef((e, r) => {
|
|
2782
2840
|
const {
|
|
2783
2841
|
__scopeSelect: t,
|
|
2784
2842
|
align: n = "start",
|
|
@@ -2806,10 +2864,10 @@ var ic = "SelectPopperPosition", It = a.forwardRef((e, r) => {
|
|
|
2806
2864
|
}
|
|
2807
2865
|
);
|
|
2808
2866
|
});
|
|
2809
|
-
It.displayName =
|
|
2810
|
-
var [
|
|
2867
|
+
It.displayName = uc;
|
|
2868
|
+
var [pc, lr] = Ee(we, {}), At = "SelectViewport", Lo = a.forwardRef(
|
|
2811
2869
|
(e, r) => {
|
|
2812
|
-
const { __scopeSelect: t, nonce: n, ...o } = e, l = me(
|
|
2870
|
+
const { __scopeSelect: t, nonce: n, ...o } = e, l = me(At, t), i = lr(At, t), c = q(r, l.onViewportChange), d = a.useRef(0);
|
|
2813
2871
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2814
2872
|
/* @__PURE__ */ s.jsx(
|
|
2815
2873
|
"style",
|
|
@@ -2845,7 +2903,7 @@ var [cc, lr] = Ee(be, {}), Mt = "SelectViewport", Lo = a.forwardRef(
|
|
|
2845
2903
|
if (g != null && g.current && p) {
|
|
2846
2904
|
const x = Math.abs(d.current - f.scrollTop);
|
|
2847
2905
|
if (x > 0) {
|
|
2848
|
-
const y = window.innerHeight - ie * 2, v = parseFloat(p.style.minHeight),
|
|
2906
|
+
const y = window.innerHeight - ie * 2, v = parseFloat(p.style.minHeight), b = parseFloat(p.style.height), S = Math.max(v, b);
|
|
2849
2907
|
if (S < y) {
|
|
2850
2908
|
const h = S + x, _ = Math.min(y, h), L = h - _;
|
|
2851
2909
|
p.style.height = _ + "px", p.style.bottom === "0px" && (f.scrollTop = L > 0 ? L : 0, p.style.justifyContent = "flex-end");
|
|
@@ -2859,22 +2917,22 @@ var [cc, lr] = Ee(be, {}), Mt = "SelectViewport", Lo = a.forwardRef(
|
|
|
2859
2917
|
] });
|
|
2860
2918
|
}
|
|
2861
2919
|
);
|
|
2862
|
-
Lo.displayName =
|
|
2863
|
-
var Vo = "SelectGroup", [
|
|
2920
|
+
Lo.displayName = At;
|
|
2921
|
+
var Vo = "SelectGroup", [fc, mc] = Ee(Vo), Fo = a.forwardRef(
|
|
2864
2922
|
(e, r) => {
|
|
2865
2923
|
const { __scopeSelect: t, ...n } = e, o = ne();
|
|
2866
|
-
return /* @__PURE__ */ s.jsx(
|
|
2924
|
+
return /* @__PURE__ */ s.jsx(fc, { scope: t, id: o, children: /* @__PURE__ */ s.jsx($.div, { role: "group", "aria-labelledby": o, ...n, ref: r }) });
|
|
2867
2925
|
}
|
|
2868
2926
|
);
|
|
2869
2927
|
Fo.displayName = Vo;
|
|
2870
2928
|
var Bo = "SelectLabel", Go = a.forwardRef(
|
|
2871
2929
|
(e, r) => {
|
|
2872
|
-
const { __scopeSelect: t, ...n } = e, o =
|
|
2930
|
+
const { __scopeSelect: t, ...n } = e, o = mc(Bo, t);
|
|
2873
2931
|
return /* @__PURE__ */ s.jsx($.div, { id: o.id, ...n, ref: r });
|
|
2874
2932
|
}
|
|
2875
2933
|
);
|
|
2876
2934
|
Go.displayName = Bo;
|
|
2877
|
-
var ze = "SelectItem", [
|
|
2935
|
+
var ze = "SelectItem", [gc, Ko] = Ee(ze), Uo = a.forwardRef(
|
|
2878
2936
|
(e, r) => {
|
|
2879
2937
|
const {
|
|
2880
2938
|
__scopeSelect: t,
|
|
@@ -2888,7 +2946,7 @@ var ze = "SelectItem", [pc, Ho] = Ee(ze), Ko = a.forwardRef(
|
|
|
2888
2946
|
var _;
|
|
2889
2947
|
return (_ = d.itemRefCallback) == null ? void 0 : _.call(d, h, n, o);
|
|
2890
2948
|
}
|
|
2891
|
-
), v = ne(),
|
|
2949
|
+
), v = ne(), b = a.useRef("touch"), S = () => {
|
|
2892
2950
|
o || (c.onValueChange(n), c.onOpenChange(!1));
|
|
2893
2951
|
};
|
|
2894
2952
|
if (n === "")
|
|
@@ -2896,7 +2954,7 @@ var ze = "SelectItem", [pc, Ho] = Ee(ze), Ko = a.forwardRef(
|
|
|
2896
2954
|
"A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder."
|
|
2897
2955
|
);
|
|
2898
2956
|
return /* @__PURE__ */ s.jsx(
|
|
2899
|
-
|
|
2957
|
+
gc,
|
|
2900
2958
|
{
|
|
2901
2959
|
scope: t,
|
|
2902
2960
|
value: n,
|
|
@@ -2929,17 +2987,17 @@ var ze = "SelectItem", [pc, Ho] = Ee(ze), Ko = a.forwardRef(
|
|
|
2929
2987
|
onFocus: I(i.onFocus, () => x(!0)),
|
|
2930
2988
|
onBlur: I(i.onBlur, () => x(!1)),
|
|
2931
2989
|
onClick: I(i.onClick, () => {
|
|
2932
|
-
|
|
2990
|
+
b.current !== "mouse" && S();
|
|
2933
2991
|
}),
|
|
2934
2992
|
onPointerUp: I(i.onPointerUp, () => {
|
|
2935
|
-
|
|
2993
|
+
b.current === "mouse" && S();
|
|
2936
2994
|
}),
|
|
2937
2995
|
onPointerDown: I(i.onPointerDown, (h) => {
|
|
2938
|
-
|
|
2996
|
+
b.current = h.pointerType;
|
|
2939
2997
|
}),
|
|
2940
2998
|
onPointerMove: I(i.onPointerMove, (h) => {
|
|
2941
2999
|
var _;
|
|
2942
|
-
|
|
3000
|
+
b.current = h.pointerType, o ? (_ = d.onItemLeave) == null || _.call(d) : b.current === "mouse" && h.currentTarget.focus({ preventScroll: !0 });
|
|
2943
3001
|
}),
|
|
2944
3002
|
onPointerLeave: I(i.onPointerLeave, (h) => {
|
|
2945
3003
|
var _;
|
|
@@ -2947,7 +3005,7 @@ var ze = "SelectItem", [pc, Ho] = Ee(ze), Ko = a.forwardRef(
|
|
|
2947
3005
|
}),
|
|
2948
3006
|
onKeyDown: I(i.onKeyDown, (h) => {
|
|
2949
3007
|
var L;
|
|
2950
|
-
((L = d.searchRef) == null ? void 0 : L.current) !== "" && h.key === " " || (
|
|
3008
|
+
((L = d.searchRef) == null ? void 0 : L.current) !== "" && h.key === " " || (rc.includes(h.key) && S(), h.key === " " && h.preventDefault());
|
|
2951
3009
|
})
|
|
2952
3010
|
}
|
|
2953
3011
|
)
|
|
@@ -2957,10 +3015,10 @@ var ze = "SelectItem", [pc, Ho] = Ee(ze), Ko = a.forwardRef(
|
|
|
2957
3015
|
);
|
|
2958
3016
|
}
|
|
2959
3017
|
);
|
|
2960
|
-
|
|
2961
|
-
var
|
|
3018
|
+
Uo.displayName = ze;
|
|
3019
|
+
var Ae = "SelectItemText", Ho = a.forwardRef(
|
|
2962
3020
|
(e, r) => {
|
|
2963
|
-
const { __scopeSelect: t, className: n, style: o, ...l } = e, i = fe(
|
|
3021
|
+
const { __scopeSelect: t, className: n, style: o, ...l } = e, i = fe(Ae, t), c = me(Ae, t), d = Ko(Ae, t), u = lc(Ae, t), [f, p] = a.useState(null), g = q(
|
|
2964
3022
|
r,
|
|
2965
3023
|
(S) => p(S),
|
|
2966
3024
|
d.onItemTextChange,
|
|
@@ -2971,23 +3029,23 @@ var Me = "SelectItemText", Uo = a.forwardRef(
|
|
|
2971
3029
|
), x = f == null ? void 0 : f.textContent, y = a.useMemo(
|
|
2972
3030
|
() => /* @__PURE__ */ s.jsx("option", { value: d.value, disabled: d.disabled, children: x }, d.value),
|
|
2973
3031
|
[d.disabled, d.value, x]
|
|
2974
|
-
), { onNativeOptionAdd: v, onNativeOptionRemove:
|
|
2975
|
-
return ce(() => (v(y), () =>
|
|
3032
|
+
), { onNativeOptionAdd: v, onNativeOptionRemove: b } = u;
|
|
3033
|
+
return ce(() => (v(y), () => b(y)), [v, b, y]), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2976
3034
|
/* @__PURE__ */ s.jsx($.span, { id: d.textId, ...l, ref: g }),
|
|
2977
|
-
d.isSelected && i.valueNode && !i.valueNodeHasChildren ?
|
|
3035
|
+
d.isSelected && i.valueNode && !i.valueNodeHasChildren ? Tr.createPortal(l.children, i.valueNode) : null
|
|
2978
3036
|
] });
|
|
2979
3037
|
}
|
|
2980
3038
|
);
|
|
2981
|
-
|
|
3039
|
+
Ho.displayName = Ae;
|
|
2982
3040
|
var Wo = "SelectItemIndicator", zo = a.forwardRef(
|
|
2983
3041
|
(e, r) => {
|
|
2984
3042
|
const { __scopeSelect: t, ...n } = e;
|
|
2985
|
-
return
|
|
3043
|
+
return Ko(Wo, t).isSelected ? /* @__PURE__ */ s.jsx($.span, { "aria-hidden": !0, ...n, ref: r }) : null;
|
|
2986
3044
|
}
|
|
2987
3045
|
);
|
|
2988
3046
|
zo.displayName = Wo;
|
|
2989
|
-
var
|
|
2990
|
-
const t = me(
|
|
3047
|
+
var Mt = "SelectScrollUpButton", Yo = a.forwardRef((e, r) => {
|
|
3048
|
+
const t = me(Mt, e.__scopeSelect), n = lr(Mt, e.__scopeSelect), [o, l] = a.useState(!1), i = q(r, n.onScrollButtonChange);
|
|
2991
3049
|
return ce(() => {
|
|
2992
3050
|
if (t.viewport && t.isPositioned) {
|
|
2993
3051
|
let c = function() {
|
|
@@ -3009,7 +3067,7 @@ var At = "SelectScrollUpButton", Yo = a.forwardRef((e, r) => {
|
|
|
3009
3067
|
}
|
|
3010
3068
|
) : null;
|
|
3011
3069
|
});
|
|
3012
|
-
Yo.displayName =
|
|
3070
|
+
Yo.displayName = Mt;
|
|
3013
3071
|
var Dt = "SelectScrollDownButton", qo = a.forwardRef((e, r) => {
|
|
3014
3072
|
const t = me(Dt, e.__scopeSelect), n = lr(Dt, e.__scopeSelect), [o, l] = a.useState(!1), i = q(r, n.onScrollButtonChange);
|
|
3015
3073
|
return ce(() => {
|
|
@@ -3061,20 +3119,20 @@ var Xo = a.forwardRef((e, r) => {
|
|
|
3061
3119
|
})
|
|
3062
3120
|
}
|
|
3063
3121
|
);
|
|
3064
|
-
}),
|
|
3122
|
+
}), vc = "SelectSeparator", Zo = a.forwardRef(
|
|
3065
3123
|
(e, r) => {
|
|
3066
3124
|
const { __scopeSelect: t, ...n } = e;
|
|
3067
3125
|
return /* @__PURE__ */ s.jsx($.div, { "aria-hidden": !0, ...n, ref: r });
|
|
3068
3126
|
}
|
|
3069
3127
|
);
|
|
3070
|
-
Zo.displayName =
|
|
3071
|
-
var
|
|
3128
|
+
Zo.displayName = vc;
|
|
3129
|
+
var Tt = "SelectArrow", hc = a.forwardRef(
|
|
3072
3130
|
(e, r) => {
|
|
3073
|
-
const { __scopeSelect: t, ...n } = e, o = lt(t), l = fe(
|
|
3131
|
+
const { __scopeSelect: t, ...n } = e, o = lt(t), l = fe(Tt, t), i = me(Tt, t);
|
|
3074
3132
|
return l.open && i.position === "popper" ? /* @__PURE__ */ s.jsx(Rr, { ...o, ...n, ref: r }) : null;
|
|
3075
3133
|
}
|
|
3076
3134
|
);
|
|
3077
|
-
|
|
3135
|
+
hc.displayName = Tt;
|
|
3078
3136
|
function Jo(e) {
|
|
3079
3137
|
return e === "" || e === void 0;
|
|
3080
3138
|
}
|
|
@@ -3090,7 +3148,7 @@ var Qo = a.forwardRef(
|
|
|
3090
3148
|
const p = new Event("change", { bubbles: !0 });
|
|
3091
3149
|
f.call(c, t), c.dispatchEvent(p);
|
|
3092
3150
|
}
|
|
3093
|
-
}, [i, t]), /* @__PURE__ */ s.jsx(
|
|
3151
|
+
}, [i, t]), /* @__PURE__ */ s.jsx(ja, { asChild: !0, children: /* @__PURE__ */ s.jsx("select", { ...n, ref: l, defaultValue: t }) });
|
|
3094
3152
|
}
|
|
3095
3153
|
);
|
|
3096
3154
|
Qo.displayName = "BubbleSelect";
|
|
@@ -3110,18 +3168,18 @@ function ea(e) {
|
|
|
3110
3168
|
}
|
|
3111
3169
|
function ta(e, r, t) {
|
|
3112
3170
|
const o = r.length > 1 && Array.from(r).every((u) => u === r[0]) ? r[0] : r, l = t ? e.indexOf(t) : -1;
|
|
3113
|
-
let i =
|
|
3171
|
+
let i = xc(e, Math.max(l, 0));
|
|
3114
3172
|
o.length === 1 && (i = i.filter((u) => u !== t));
|
|
3115
3173
|
const d = i.find(
|
|
3116
3174
|
(u) => u.textValue.toLowerCase().startsWith(o.toLowerCase())
|
|
3117
3175
|
);
|
|
3118
3176
|
return d !== t ? d : void 0;
|
|
3119
3177
|
}
|
|
3120
|
-
function
|
|
3178
|
+
function xc(e, r) {
|
|
3121
3179
|
return e.map((t, n) => e[(r + n) % e.length]);
|
|
3122
3180
|
}
|
|
3123
|
-
var
|
|
3124
|
-
const
|
|
3181
|
+
var yc = Ro, ra = Ao, bc = Do, wc = To, Sc = Po, na = jo, Cc = Lo, _c = Fo, oa = Go, aa = Uo, Nc = Ho, Ec = zo, la = Yo, sa = qo, ia = Zo;
|
|
3182
|
+
const Rc = yc, _d = _c, Ic = bc, ca = a.forwardRef(({ className: e, children: r, ...t }, n) => /* @__PURE__ */ s.jsxs(
|
|
3125
3183
|
ra,
|
|
3126
3184
|
{
|
|
3127
3185
|
ref: n,
|
|
@@ -3132,7 +3190,7 @@ const _c = vc, bd = bc, Nc = hc, ca = a.forwardRef(({ className: e, children: r,
|
|
|
3132
3190
|
...t,
|
|
3133
3191
|
children: [
|
|
3134
3192
|
r,
|
|
3135
|
-
/* @__PURE__ */ s.jsx(
|
|
3193
|
+
/* @__PURE__ */ s.jsx(wc, { asChild: !0, children: /* @__PURE__ */ s.jsx(jt, { className: "al-h-4 al-w-4 al-opacity-50 al-ml-2" }) })
|
|
3136
3194
|
]
|
|
3137
3195
|
}
|
|
3138
3196
|
));
|
|
@@ -3157,7 +3215,7 @@ const ua = a.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ s.jsx(
|
|
|
3157
3215
|
}
|
|
3158
3216
|
));
|
|
3159
3217
|
ua.displayName = sa.displayName;
|
|
3160
|
-
const pa = a.forwardRef(({ className: e, children: r, position: t = "popper", ...n }, o) => /* @__PURE__ */ s.jsx(
|
|
3218
|
+
const pa = a.forwardRef(({ className: e, children: r, position: t = "popper", ...n }, o) => /* @__PURE__ */ s.jsx(Sc, { children: /* @__PURE__ */ s.jsxs(
|
|
3161
3219
|
na,
|
|
3162
3220
|
{
|
|
3163
3221
|
ref: o,
|
|
@@ -3171,7 +3229,7 @@ const pa = a.forwardRef(({ className: e, children: r, position: t = "popper", ..
|
|
|
3171
3229
|
children: [
|
|
3172
3230
|
/* @__PURE__ */ s.jsx(da, {}),
|
|
3173
3231
|
/* @__PURE__ */ s.jsx(
|
|
3174
|
-
|
|
3232
|
+
Cc,
|
|
3175
3233
|
{
|
|
3176
3234
|
className: E(
|
|
3177
3235
|
"al-p-1",
|
|
@@ -3185,7 +3243,7 @@ const pa = a.forwardRef(({ className: e, children: r, position: t = "popper", ..
|
|
|
3185
3243
|
}
|
|
3186
3244
|
) }));
|
|
3187
3245
|
pa.displayName = na.displayName;
|
|
3188
|
-
const
|
|
3246
|
+
const Ac = a.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ s.jsx(
|
|
3189
3247
|
oa,
|
|
3190
3248
|
{
|
|
3191
3249
|
ref: t,
|
|
@@ -3193,7 +3251,7 @@ const Ec = a.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ s.jsx(
|
|
|
3193
3251
|
...r
|
|
3194
3252
|
}
|
|
3195
3253
|
));
|
|
3196
|
-
|
|
3254
|
+
Ac.displayName = oa.displayName;
|
|
3197
3255
|
const fa = a.forwardRef(({ className: e, children: r, ...t }, n) => /* @__PURE__ */ s.jsxs(
|
|
3198
3256
|
aa,
|
|
3199
3257
|
{
|
|
@@ -3204,13 +3262,13 @@ const fa = a.forwardRef(({ className: e, children: r, ...t }, n) => /* @__PURE__
|
|
|
3204
3262
|
),
|
|
3205
3263
|
...t,
|
|
3206
3264
|
children: [
|
|
3207
|
-
/* @__PURE__ */ s.jsx("span", { className: "al-absolute al-left-2 al-flex al-h-3.5 al-w-3.5 al-items-center al-justify-center", children: /* @__PURE__ */ s.jsx(
|
|
3208
|
-
/* @__PURE__ */ s.jsx(
|
|
3265
|
+
/* @__PURE__ */ s.jsx("span", { className: "al-absolute al-left-2 al-flex al-h-3.5 al-w-3.5 al-items-center al-justify-center", children: /* @__PURE__ */ s.jsx(Ec, { children: /* @__PURE__ */ s.jsx(xr, { className: "al-h-4 al-w-4" }) }) }),
|
|
3266
|
+
/* @__PURE__ */ s.jsx(Nc, { children: r })
|
|
3209
3267
|
]
|
|
3210
3268
|
}
|
|
3211
3269
|
));
|
|
3212
3270
|
fa.displayName = aa.displayName;
|
|
3213
|
-
const
|
|
3271
|
+
const Mc = a.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ s.jsx(
|
|
3214
3272
|
ia,
|
|
3215
3273
|
{
|
|
3216
3274
|
ref: t,
|
|
@@ -3218,8 +3276,8 @@ const Rc = a.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ s.jsx(
|
|
|
3218
3276
|
...r
|
|
3219
3277
|
}
|
|
3220
3278
|
));
|
|
3221
|
-
|
|
3222
|
-
const
|
|
3279
|
+
Mc.displayName = ia.displayName;
|
|
3280
|
+
const Dc = Ze(
|
|
3223
3281
|
[
|
|
3224
3282
|
"al-flex al-items-center al-justify-between al-rounded-md",
|
|
3225
3283
|
"al-text-sm al-font-normal",
|
|
@@ -3275,22 +3333,22 @@ const Ic = Ze(
|
|
|
3275
3333
|
size: "default"
|
|
3276
3334
|
}
|
|
3277
3335
|
}
|
|
3278
|
-
),
|
|
3279
|
-
({ options: e, onChange: r, value: t, placeholder: n, className: o, disabled: l, icon: i, variant: c, size: d, open: u }, f) => /* @__PURE__ */ s.jsxs(
|
|
3280
|
-
/* @__PURE__ */ s.jsxs(ca, { ref: f, className: E(
|
|
3336
|
+
), Tc = ee(
|
|
3337
|
+
({ options: e, onChange: r, value: t, placeholder: n, className: o, disabled: l, icon: i, variant: c, size: d, open: u }, f) => /* @__PURE__ */ s.jsxs(Rc, { value: t, onValueChange: r, disabled: l, open: u, children: [
|
|
3338
|
+
/* @__PURE__ */ s.jsxs(ca, { ref: f, className: E(Dc({ variant: c, size: d, className: o })), children: [
|
|
3281
3339
|
i && /* @__PURE__ */ s.jsx("div", { className: "al-mr-2", children: i }),
|
|
3282
|
-
/* @__PURE__ */ s.jsx(
|
|
3340
|
+
/* @__PURE__ */ s.jsx(Ic, { placeholder: n })
|
|
3283
3341
|
] }),
|
|
3284
3342
|
/* @__PURE__ */ s.jsx(pa, { children: e.map((p) => /* @__PURE__ */ s.jsx(fa, { value: p.value, children: p.label }, p.value)) })
|
|
3285
3343
|
] })
|
|
3286
3344
|
);
|
|
3287
|
-
|
|
3288
|
-
var
|
|
3289
|
-
const
|
|
3290
|
-
var Be = (e) => !ma(e) && !Array.isArray(e) &&
|
|
3345
|
+
Tc.displayName = "NativeSelect";
|
|
3346
|
+
var Pc = (e) => e.type === "checkbox", jc = (e) => e instanceof Date, ma = (e) => e == null;
|
|
3347
|
+
const Oc = (e) => typeof e == "object";
|
|
3348
|
+
var Be = (e) => !ma(e) && !Array.isArray(e) && Oc(e) && !jc(e), kc = (e) => Be(e) && e.target ? Pc(e.target) ? e.target.checked : e.target.value : e, $c = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, Lc = (e, r) => e.has($c(r)), Vc = (e) => {
|
|
3291
3349
|
const r = e.constructor && e.constructor.prototype;
|
|
3292
3350
|
return Be(r) && r.hasOwnProperty("isPrototypeOf");
|
|
3293
|
-
},
|
|
3351
|
+
}, Fc = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
3294
3352
|
function ga(e) {
|
|
3295
3353
|
let r;
|
|
3296
3354
|
const t = Array.isArray(e), n = typeof FileList < "u" ? e instanceof FileList : !1;
|
|
@@ -3298,8 +3356,8 @@ function ga(e) {
|
|
|
3298
3356
|
r = new Date(e);
|
|
3299
3357
|
else if (e instanceof Set)
|
|
3300
3358
|
r = new Set(e);
|
|
3301
|
-
else if (!(
|
|
3302
|
-
if (r = t ? [] : {}, !t && !
|
|
3359
|
+
else if (!(Fc && (e instanceof Blob || n)) && (t || Be(e)))
|
|
3360
|
+
if (r = t ? [] : {}, !t && !Vc(e))
|
|
3303
3361
|
r = e;
|
|
3304
3362
|
else
|
|
3305
3363
|
for (const o in e)
|
|
@@ -3308,14 +3366,14 @@ function ga(e) {
|
|
|
3308
3366
|
return e;
|
|
3309
3367
|
return r;
|
|
3310
3368
|
}
|
|
3311
|
-
var va = (e) => Array.isArray(e) ? e.filter(Boolean) : [],
|
|
3369
|
+
var va = (e) => Array.isArray(e) ? e.filter(Boolean) : [], Pt = (e) => e === void 0, ae = (e, r, t) => {
|
|
3312
3370
|
if (!r || !Be(e))
|
|
3313
3371
|
return t;
|
|
3314
3372
|
const n = va(r.split(/[,[\].]+?/)).reduce((o, l) => ma(o) ? o : o[l], e);
|
|
3315
|
-
return
|
|
3316
|
-
}, yt = (e) => typeof e == "boolean",
|
|
3373
|
+
return Pt(n) || n === e ? Pt(e[r]) ? t : e[r] : n;
|
|
3374
|
+
}, yt = (e) => typeof e == "boolean", Bc = (e) => /^\w*$/.test(e), Gc = (e) => va(e.replace(/["|']|\]/g, "").split(/\.|\[/)), gr = (e, r, t) => {
|
|
3317
3375
|
let n = -1;
|
|
3318
|
-
const o =
|
|
3376
|
+
const o = Bc(r) ? [r] : Gc(r), l = o.length, i = l - 1;
|
|
3319
3377
|
for (; ++n < l; ) {
|
|
3320
3378
|
const c = o[n];
|
|
3321
3379
|
let d = t;
|
|
@@ -3338,11 +3396,11 @@ const vr = {
|
|
|
3338
3396
|
onSubmit: "onSubmit",
|
|
3339
3397
|
onTouched: "onTouched",
|
|
3340
3398
|
all: "all"
|
|
3341
|
-
}, ha =
|
|
3399
|
+
}, ha = P.createContext(null), st = () => P.useContext(ha), Kc = (e) => {
|
|
3342
3400
|
const { children: r, ...t } = e;
|
|
3343
|
-
return
|
|
3401
|
+
return P.createElement(ha.Provider, { value: t }, r);
|
|
3344
3402
|
};
|
|
3345
|
-
var
|
|
3403
|
+
var Uc = (e, r, t, n = !0) => {
|
|
3346
3404
|
const o = {
|
|
3347
3405
|
defaultValues: r._defaultValues
|
|
3348
3406
|
};
|
|
@@ -3356,8 +3414,8 @@ var Bc = (e, r, t, n = !0) => {
|
|
|
3356
3414
|
return o;
|
|
3357
3415
|
};
|
|
3358
3416
|
const xa = typeof window < "u" ? a.useLayoutEffect : a.useEffect;
|
|
3359
|
-
function
|
|
3360
|
-
const r = st(), { control: t = r.control, disabled: n, name: o, exact: l } = e || {}, [i, c] =
|
|
3417
|
+
function Hc(e) {
|
|
3418
|
+
const r = st(), { control: t = r.control, disabled: n, name: o, exact: l } = e || {}, [i, c] = P.useState(t._formState), d = P.useRef({
|
|
3361
3419
|
isDirty: !1,
|
|
3362
3420
|
isLoading: !1,
|
|
3363
3421
|
dirtyFields: !1,
|
|
@@ -3377,37 +3435,37 @@ function Gc(e) {
|
|
|
3377
3435
|
...u
|
|
3378
3436
|
});
|
|
3379
3437
|
}
|
|
3380
|
-
}), [o, n, l]),
|
|
3438
|
+
}), [o, n, l]), P.useEffect(() => {
|
|
3381
3439
|
d.current.isValid && t._setValid(!0);
|
|
3382
|
-
}, [t]),
|
|
3440
|
+
}, [t]), P.useMemo(() => Uc(i, t, d.current, !1), [i, t]);
|
|
3383
3441
|
}
|
|
3384
|
-
var
|
|
3385
|
-
function
|
|
3386
|
-
const r = st(), { control: t = r.control, name: n, defaultValue: o, disabled: l, exact: i } = e || {}, c =
|
|
3442
|
+
var Wc = (e) => typeof e == "string", zc = (e, r, t, n, o) => Wc(e) ? ae(t, e, o) : Array.isArray(e) ? e.map((l) => ae(t, l)) : t;
|
|
3443
|
+
function Yc(e) {
|
|
3444
|
+
const r = st(), { control: t = r.control, name: n, defaultValue: o, disabled: l, exact: i } = e || {}, c = P.useRef(o), [d, u] = P.useState(t._getWatch(n, c.current));
|
|
3387
3445
|
return xa(() => t._subscribe({
|
|
3388
3446
|
name: n,
|
|
3389
3447
|
formState: {
|
|
3390
3448
|
values: !0
|
|
3391
3449
|
},
|
|
3392
3450
|
exact: i,
|
|
3393
|
-
callback: (f) => !l && u(
|
|
3394
|
-
}), [n, t, l, i]),
|
|
3451
|
+
callback: (f) => !l && u(zc(n, t._names, f.values || t._formValues, !1, c.current))
|
|
3452
|
+
}), [n, t, l, i]), P.useEffect(() => t._removeUnmounted()), d;
|
|
3395
3453
|
}
|
|
3396
|
-
function
|
|
3397
|
-
const r = st(), { name: t, disabled: n, control: o = r.control, shouldUnregister: l } = e, i =
|
|
3454
|
+
function qc(e) {
|
|
3455
|
+
const r = st(), { name: t, disabled: n, control: o = r.control, shouldUnregister: l } = e, i = Lc(o._names.array, t), c = Yc({
|
|
3398
3456
|
control: o,
|
|
3399
3457
|
name: t,
|
|
3400
3458
|
defaultValue: ae(o._formValues, t, ae(o._defaultValues, t, e.defaultValue)),
|
|
3401
3459
|
exact: !0
|
|
3402
|
-
}), d =
|
|
3460
|
+
}), d = Hc({
|
|
3403
3461
|
control: o,
|
|
3404
3462
|
name: t,
|
|
3405
3463
|
exact: !0
|
|
3406
|
-
}), u =
|
|
3464
|
+
}), u = P.useRef(e), f = P.useRef(o.register(t, {
|
|
3407
3465
|
...e.rules,
|
|
3408
3466
|
value: c,
|
|
3409
3467
|
...yt(e.disabled) ? { disabled: e.disabled } : {}
|
|
3410
|
-
})), p =
|
|
3468
|
+
})), p = P.useMemo(() => Object.defineProperties({}, {
|
|
3411
3469
|
invalid: {
|
|
3412
3470
|
enumerable: !0,
|
|
3413
3471
|
get: () => !!ae(d.errors, t)
|
|
@@ -3428,27 +3486,27 @@ function Wc(e) {
|
|
|
3428
3486
|
enumerable: !0,
|
|
3429
3487
|
get: () => ae(d.errors, t)
|
|
3430
3488
|
}
|
|
3431
|
-
}), [d, t]), g =
|
|
3489
|
+
}), [d, t]), g = P.useCallback((b) => f.current.onChange({
|
|
3432
3490
|
target: {
|
|
3433
|
-
value:
|
|
3491
|
+
value: kc(b),
|
|
3434
3492
|
name: t
|
|
3435
3493
|
},
|
|
3436
3494
|
type: vr.CHANGE
|
|
3437
|
-
}), [t]), x =
|
|
3495
|
+
}), [t]), x = P.useCallback(() => f.current.onBlur({
|
|
3438
3496
|
target: {
|
|
3439
3497
|
value: ae(o._formValues, t),
|
|
3440
3498
|
name: t
|
|
3441
3499
|
},
|
|
3442
3500
|
type: vr.BLUR
|
|
3443
|
-
}), [t, o._formValues]), y =
|
|
3501
|
+
}), [t, o._formValues]), y = P.useCallback((b) => {
|
|
3444
3502
|
const S = ae(o._fields, t);
|
|
3445
|
-
S &&
|
|
3446
|
-
focus: () =>
|
|
3447
|
-
select: () =>
|
|
3448
|
-
setCustomValidity: (h) =>
|
|
3449
|
-
reportValidity: () =>
|
|
3503
|
+
S && b && (S._f.ref = {
|
|
3504
|
+
focus: () => b.focus(),
|
|
3505
|
+
select: () => b.select(),
|
|
3506
|
+
setCustomValidity: (h) => b.setCustomValidity(h),
|
|
3507
|
+
reportValidity: () => b.reportValidity()
|
|
3450
3508
|
});
|
|
3451
|
-
}, [o._fields, t]), v =
|
|
3509
|
+
}, [o._fields, t]), v = P.useMemo(() => ({
|
|
3452
3510
|
name: t,
|
|
3453
3511
|
value: c,
|
|
3454
3512
|
...yt(n) || d.disabled ? { disabled: d.disabled || n } : {},
|
|
@@ -3456,8 +3514,8 @@ function Wc(e) {
|
|
|
3456
3514
|
onBlur: x,
|
|
3457
3515
|
ref: y
|
|
3458
3516
|
}), [t, n, d.disabled, g, x, y, c]);
|
|
3459
|
-
return
|
|
3460
|
-
const
|
|
3517
|
+
return P.useEffect(() => {
|
|
3518
|
+
const b = o._options.shouldUnregister || l;
|
|
3461
3519
|
o.register(t, {
|
|
3462
3520
|
...u.current.rules,
|
|
3463
3521
|
...yt(u.current.disabled) ? { disabled: u.current.disabled } : {}
|
|
@@ -3466,28 +3524,28 @@ function Wc(e) {
|
|
|
3466
3524
|
const L = ae(o._fields, h);
|
|
3467
3525
|
L && L._f && (L._f.mount = _);
|
|
3468
3526
|
};
|
|
3469
|
-
if (S(t, !0),
|
|
3527
|
+
if (S(t, !0), b) {
|
|
3470
3528
|
const h = ga(ae(o._options.defaultValues, t));
|
|
3471
|
-
gr(o._defaultValues, t, h),
|
|
3529
|
+
gr(o._defaultValues, t, h), Pt(ae(o._formValues, t)) && gr(o._formValues, t, h);
|
|
3472
3530
|
}
|
|
3473
3531
|
return !i && o.register(t), () => {
|
|
3474
|
-
(i ?
|
|
3532
|
+
(i ? b && !o._state.action : b) ? o.unregister(t) : S(t, !1);
|
|
3475
3533
|
};
|
|
3476
|
-
}, [t, o, i, l]),
|
|
3534
|
+
}, [t, o, i, l]), P.useEffect(() => {
|
|
3477
3535
|
o._setDisabledField({
|
|
3478
3536
|
disabled: n,
|
|
3479
3537
|
name: t
|
|
3480
3538
|
});
|
|
3481
|
-
}, [n, t, o]),
|
|
3539
|
+
}, [n, t, o]), P.useMemo(() => ({
|
|
3482
3540
|
field: v,
|
|
3483
3541
|
formState: d,
|
|
3484
3542
|
fieldState: p
|
|
3485
3543
|
}), [v, d, p]);
|
|
3486
3544
|
}
|
|
3487
|
-
const
|
|
3545
|
+
const Xc = (e) => e.render(qc(e)), Nd = Kc, ya = a.createContext({}), Ed = ({
|
|
3488
3546
|
...e
|
|
3489
|
-
}) => /* @__PURE__ */ s.jsx(ya.Provider, { value: { name: e.name }, children: /* @__PURE__ */ s.jsx(
|
|
3490
|
-
const e = a.useContext(ya), r = a.useContext(
|
|
3547
|
+
}) => /* @__PURE__ */ s.jsx(ya.Provider, { value: { name: e.name }, children: /* @__PURE__ */ s.jsx(Xc, { ...e }) }), it = () => {
|
|
3548
|
+
const e = a.useContext(ya), r = a.useContext(ba), { getFieldState: t, formState: n } = st(), o = t(e.name, n);
|
|
3491
3549
|
if (!e)
|
|
3492
3550
|
throw new Error("useFormField should be used within <FormField>");
|
|
3493
3551
|
const { id: l } = r;
|
|
@@ -3499,17 +3557,17 @@ const zc = (e) => e.render(Wc(e)), Sd = Fc, ya = a.createContext({}), Cd = ({
|
|
|
3499
3557
|
formMessageId: `${l}-form-item-message`,
|
|
3500
3558
|
...o
|
|
3501
3559
|
};
|
|
3502
|
-
},
|
|
3560
|
+
}, ba = a.createContext({}), Zc = a.forwardRef(
|
|
3503
3561
|
({ className: e, ...r }, t) => {
|
|
3504
3562
|
const n = a.useId();
|
|
3505
|
-
return /* @__PURE__ */ s.jsx(
|
|
3563
|
+
return /* @__PURE__ */ s.jsx(ba.Provider, { value: { id: n }, children: /* @__PURE__ */ s.jsx("div", { ref: t, className: E("al-space-y-2", e), ...r }) });
|
|
3506
3564
|
}
|
|
3507
3565
|
);
|
|
3508
|
-
|
|
3509
|
-
const
|
|
3566
|
+
Zc.displayName = "FormItem";
|
|
3567
|
+
const Jc = a.forwardRef(({ className: e, ...r }, t) => {
|
|
3510
3568
|
const { error: n, formItemId: o } = it();
|
|
3511
3569
|
return /* @__PURE__ */ s.jsx(
|
|
3512
|
-
|
|
3570
|
+
Oa,
|
|
3513
3571
|
{
|
|
3514
3572
|
ref: t,
|
|
3515
3573
|
className: E(n && "al-text-destructive", e),
|
|
@@ -3518,11 +3576,11 @@ const qc = a.forwardRef(({ className: e, ...r }, t) => {
|
|
|
3518
3576
|
}
|
|
3519
3577
|
);
|
|
3520
3578
|
});
|
|
3521
|
-
|
|
3522
|
-
const
|
|
3579
|
+
Jc.displayName = "FormLabel";
|
|
3580
|
+
const Qc = a.forwardRef(({ ...e }, r) => {
|
|
3523
3581
|
const { error: t, formItemId: n, formDescriptionId: o, formMessageId: l } = it();
|
|
3524
3582
|
return /* @__PURE__ */ s.jsx(
|
|
3525
|
-
|
|
3583
|
+
ka,
|
|
3526
3584
|
{
|
|
3527
3585
|
ref: r,
|
|
3528
3586
|
id: n,
|
|
@@ -3532,8 +3590,8 @@ const Xc = a.forwardRef(({ ...e }, r) => {
|
|
|
3532
3590
|
}
|
|
3533
3591
|
);
|
|
3534
3592
|
});
|
|
3535
|
-
|
|
3536
|
-
const
|
|
3593
|
+
Qc.displayName = "FormControl";
|
|
3594
|
+
const ed = a.forwardRef(({ className: e, ...r }, t) => {
|
|
3537
3595
|
const { formDescriptionId: n } = it();
|
|
3538
3596
|
return /* @__PURE__ */ s.jsx(
|
|
3539
3597
|
"p",
|
|
@@ -3545,8 +3603,8 @@ const Zc = a.forwardRef(({ className: e, ...r }, t) => {
|
|
|
3545
3603
|
}
|
|
3546
3604
|
);
|
|
3547
3605
|
});
|
|
3548
|
-
|
|
3549
|
-
const
|
|
3606
|
+
ed.displayName = "FormDescription";
|
|
3607
|
+
const td = a.forwardRef(({ className: e, children: r, ...t }, n) => {
|
|
3550
3608
|
const { error: o, formMessageId: l } = it(), i = o ? String((o == null ? void 0 : o.message) ?? "") : r;
|
|
3551
3609
|
return i ? /* @__PURE__ */ s.jsx(
|
|
3552
3610
|
"p",
|
|
@@ -3559,100 +3617,102 @@ const Jc = a.forwardRef(({ className: e, children: r, ...t }, n) => {
|
|
|
3559
3617
|
}
|
|
3560
3618
|
) : null;
|
|
3561
3619
|
});
|
|
3562
|
-
|
|
3620
|
+
td.displayName = "FormMessage";
|
|
3563
3621
|
export {
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3622
|
+
fd as $,
|
|
3623
|
+
Ni as A,
|
|
3624
|
+
vd as B,
|
|
3567
3625
|
Bn as C,
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
Ui as
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3626
|
+
Ba as D,
|
|
3627
|
+
Ga as E,
|
|
3628
|
+
Zc as F,
|
|
3629
|
+
El as G,
|
|
3630
|
+
Ka as H,
|
|
3631
|
+
Il as I,
|
|
3632
|
+
Ua as J,
|
|
3633
|
+
Ha as K,
|
|
3634
|
+
Rl as L,
|
|
3635
|
+
cd as M,
|
|
3636
|
+
Tc as N,
|
|
3637
|
+
dd as O,
|
|
3638
|
+
_l as P,
|
|
3639
|
+
ss as Q,
|
|
3640
|
+
Ml as R,
|
|
3641
|
+
ad as S,
|
|
3642
|
+
is as T,
|
|
3643
|
+
cs as U,
|
|
3644
|
+
ds as V,
|
|
3645
|
+
us as W,
|
|
3646
|
+
ps as X,
|
|
3647
|
+
fs as Y,
|
|
3648
|
+
ud as Z,
|
|
3649
|
+
pd as _,
|
|
3650
|
+
td as a,
|
|
3651
|
+
ls as a0,
|
|
3652
|
+
as as a1,
|
|
3653
|
+
md as a2,
|
|
3654
|
+
gd as a3,
|
|
3655
|
+
zs as a4,
|
|
3656
|
+
Hs as a5,
|
|
3657
|
+
Ys as a6,
|
|
3658
|
+
xd as a7,
|
|
3659
|
+
gi as a8,
|
|
3660
|
+
vi as a9,
|
|
3661
|
+
it as aA,
|
|
3662
|
+
Nd as aB,
|
|
3663
|
+
Jc as aC,
|
|
3664
|
+
Qc as aD,
|
|
3665
|
+
ed as aE,
|
|
3666
|
+
Ed as aF,
|
|
3667
|
+
hi as aa,
|
|
3668
|
+
wi as ab,
|
|
3669
|
+
Si as ac,
|
|
3670
|
+
Ei as ad,
|
|
3671
|
+
Ri as ae,
|
|
3672
|
+
wd as af,
|
|
3673
|
+
Ki as ag,
|
|
3674
|
+
No as ah,
|
|
3675
|
+
Sd as ai,
|
|
3676
|
+
Ui as aj,
|
|
3677
|
+
Hi as ak,
|
|
3678
|
+
Wi as al,
|
|
3679
|
+
zi as am,
|
|
3680
|
+
Yi as an,
|
|
3681
|
+
qi as ao,
|
|
3682
|
+
Xi as ap,
|
|
3683
|
+
Rc as aq,
|
|
3684
|
+
_d as ar,
|
|
3685
|
+
Ic as as,
|
|
3686
|
+
ca as at,
|
|
3687
|
+
pa as au,
|
|
3688
|
+
Ac as av,
|
|
3689
|
+
fa as aw,
|
|
3690
|
+
Mc as ax,
|
|
3691
|
+
da as ay,
|
|
3692
|
+
ua as az,
|
|
3693
|
+
Bs as b,
|
|
3694
|
+
Gs as c,
|
|
3695
|
+
Ks as d,
|
|
3696
|
+
Us as e,
|
|
3697
|
+
Ws as f,
|
|
3698
|
+
Va as g,
|
|
3639
3699
|
mr as h,
|
|
3640
3700
|
kr as i,
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3701
|
+
Cl as j,
|
|
3702
|
+
Nl as k,
|
|
3703
|
+
Al as l,
|
|
3704
|
+
Dl as m,
|
|
3705
|
+
Tl as n,
|
|
3706
|
+
Pl as o,
|
|
3707
|
+
jl as p,
|
|
3708
|
+
kl as q,
|
|
3709
|
+
$l as r,
|
|
3710
|
+
Sl as s,
|
|
3711
|
+
Ol as t,
|
|
3712
|
+
yd as u,
|
|
3713
|
+
$a as v,
|
|
3714
|
+
Pr as w,
|
|
3715
|
+
ld as x,
|
|
3716
|
+
sd as y,
|
|
3717
|
+
Fa as z
|
|
3658
3718
|
};
|