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