@altimateai/ui-components 0.0.37-beta.6 → 0.0.38-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CoachForm.js +3868 -3875
- package/dist/Form.js +1074 -1135
- package/dist/Stack.js +974 -913
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/dist/lineage/index.js +3884 -3480
- package/dist/main.js +75 -75
- package/dist/redux-toolkit.modern.js +492 -485
- package/dist/shadcn/index.js +2 -2
- package/package.json +2 -2
package/dist/Form.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { j as i, C as
|
|
1
|
+
import { j as i, C as cl, a as dl, b as Ma, S as ul, c as fl, d as Er, e as pl } from "./index2.js";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import G, { useImperativeHandle as
|
|
4
|
-
import { R as
|
|
5
|
-
import * as
|
|
6
|
-
const
|
|
3
|
+
import G, { useImperativeHandle as ml, forwardRef as xe, useState as tr, useRef as rr, useCallback as _t, useEffect as Ct } from "react";
|
|
4
|
+
import { R as Ar, T as Da, C as kt, g as Rr, O as Vt, c as j, h as Ft, i as Ir, D as Mr, j as ze, k as gt, l as Dr, a as qe, m as Lt, n as $t, A as Ta, o as et, u as ge, p as ja, d as L, q as Pa, F as Oa, r as ka, s as Va, t as Fa, P as J, I as La, v as Bt, w as $a, x as Ba, y as gl, z as Ut, B as Tr, E as Ua, G as he, b as Fe, H as vl, J as hl, K as je, L as Ga, W as xl, M as Ka, e as yl, V as bl, N as jr, Q as wl, S as Sl, U as ar, X as _l, Y as Cl, Z as Nl, _ as El } from "./Stack.js";
|
|
5
|
+
import * as Ha from "react-dom";
|
|
6
|
+
const df = Ar, uf = Da, ff = kt, Al = Rr, Wa = s.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i.jsx(
|
|
7
7
|
Vt,
|
|
8
8
|
{
|
|
9
9
|
className: j(
|
|
@@ -14,8 +14,8 @@ const ff = Rr, pf = Ta, mf = Ot, Rl = Ir, za = s.forwardRef(({ className: e, ...
|
|
|
14
14
|
ref: t
|
|
15
15
|
}
|
|
16
16
|
));
|
|
17
|
-
|
|
18
|
-
const
|
|
17
|
+
Wa.displayName = Vt.displayName;
|
|
18
|
+
const Rl = ze(
|
|
19
19
|
"al-fixed al-z-50 al-gap-4 al-bg-background al-p-6 al-shadow-lg al-transition al-ease-in-out data-[state=open]:al-animate-in data-[state=closed]:al-animate-out data-[state=closed]:al-duration-300 data-[state=open]:al-duration-500",
|
|
20
20
|
{
|
|
21
21
|
variants: {
|
|
@@ -30,26 +30,26 @@ const Il = ze(
|
|
|
30
30
|
side: "right"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
),
|
|
34
|
-
/* @__PURE__ */ i.jsx(
|
|
35
|
-
/* @__PURE__ */ i.jsxs(Ft, { ref: o, className: j(
|
|
33
|
+
), Il = s.forwardRef(({ side: e = "right", className: r, children: t, overlayProps: a = {}, ...n }, o) => /* @__PURE__ */ i.jsxs(Al, { children: [
|
|
34
|
+
/* @__PURE__ */ i.jsx(Wa, { ...a }),
|
|
35
|
+
/* @__PURE__ */ i.jsxs(Ft, { ref: o, className: j(Rl({ side: e }), r), ...n, children: [
|
|
36
36
|
t,
|
|
37
|
-
/* @__PURE__ */ i.jsxs(
|
|
38
|
-
/* @__PURE__ */ i.jsx(
|
|
37
|
+
/* @__PURE__ */ i.jsxs(kt, { className: "al-absolute al-right-4 al-top-4 al-rounded-sm al-opacity-70 al-ring-offset-background al-transition-opacity hover:al-opacity-100 focus:al-outline-none focus:al-ring-2 focus:al-ring-ring focus:al-ring-offset-2 disabled:al-pointer-events-none data-[state=open]:al-bg-secondary", children: [
|
|
38
|
+
/* @__PURE__ */ i.jsx(cl, { className: "al-h-4 al-w-4" }),
|
|
39
39
|
/* @__PURE__ */ i.jsx("span", { className: "al-sr-only", children: "Close" })
|
|
40
40
|
] })
|
|
41
41
|
] })
|
|
42
42
|
] }));
|
|
43
|
-
|
|
44
|
-
const
|
|
43
|
+
Il.displayName = Ft.displayName;
|
|
44
|
+
const Ml = ({ className: e, ...r }) => /* @__PURE__ */ i.jsx(
|
|
45
45
|
"div",
|
|
46
46
|
{
|
|
47
47
|
className: j("al-flex al-flex-col al-space-y-2 al-text-center sm:al-text-left", e),
|
|
48
48
|
...r
|
|
49
49
|
}
|
|
50
50
|
);
|
|
51
|
-
|
|
52
|
-
const
|
|
51
|
+
Ml.displayName = "SheetHeader";
|
|
52
|
+
const Dl = ({ className: e, ...r }) => /* @__PURE__ */ i.jsx(
|
|
53
53
|
"div",
|
|
54
54
|
{
|
|
55
55
|
className: j(
|
|
@@ -59,26 +59,26 @@ const Tl = ({ className: e, ...r }) => /* @__PURE__ */ i.jsx(
|
|
|
59
59
|
...r
|
|
60
60
|
}
|
|
61
61
|
);
|
|
62
|
-
|
|
63
|
-
const
|
|
64
|
-
|
|
62
|
+
Dl.displayName = "SheetFooter";
|
|
63
|
+
const Tl = s.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i.jsx(
|
|
64
|
+
Ir,
|
|
65
65
|
{
|
|
66
66
|
ref: t,
|
|
67
67
|
className: j("al-text-lg al-font-semibold al-text-foreground", e),
|
|
68
68
|
...r
|
|
69
69
|
}
|
|
70
70
|
));
|
|
71
|
-
|
|
72
|
-
const
|
|
73
|
-
|
|
71
|
+
Tl.displayName = Ir.displayName;
|
|
72
|
+
const jl = s.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i.jsx(
|
|
73
|
+
Mr,
|
|
74
74
|
{
|
|
75
75
|
ref: t,
|
|
76
76
|
className: j("al-text-sm al-text-muted-foreground", e),
|
|
77
77
|
...r
|
|
78
78
|
}
|
|
79
79
|
));
|
|
80
|
-
|
|
81
|
-
const
|
|
80
|
+
jl.displayName = Mr.displayName;
|
|
81
|
+
const Pl = ({
|
|
82
82
|
textAreaRef: e,
|
|
83
83
|
triggerAutoSize: r,
|
|
84
84
|
maxHeight: t = Number.MAX_SAFE_INTEGER,
|
|
@@ -103,12 +103,12 @@ const kl = ({
|
|
|
103
103
|
...o
|
|
104
104
|
}, l) => {
|
|
105
105
|
const c = s.useRef(null), [d, m] = s.useState("");
|
|
106
|
-
return
|
|
106
|
+
return Pl({
|
|
107
107
|
textAreaRef: c,
|
|
108
108
|
triggerAutoSize: d,
|
|
109
109
|
maxHeight: e,
|
|
110
110
|
minHeight: r
|
|
111
|
-
}),
|
|
111
|
+
}), ml(l, () => ({
|
|
112
112
|
textArea: c.current,
|
|
113
113
|
focus: () => {
|
|
114
114
|
var f;
|
|
@@ -136,33 +136,33 @@ const kl = ({
|
|
|
136
136
|
}
|
|
137
137
|
);
|
|
138
138
|
Ol.displayName = "AutosizeTextarea";
|
|
139
|
-
var
|
|
140
|
-
const { children: t, ...a } = e, n = s.Children.toArray(t), o = n.find(
|
|
139
|
+
var za = s.forwardRef((e, r) => {
|
|
140
|
+
const { children: t, ...a } = e, n = s.Children.toArray(t), o = n.find(Vl);
|
|
141
141
|
if (o) {
|
|
142
142
|
const l = o.props.children, c = n.map((d) => d === o ? s.Children.count(l) > 1 ? s.Children.only(null) : s.isValidElement(l) ? l.props.children : null : d);
|
|
143
|
-
return /* @__PURE__ */ i.jsx(
|
|
143
|
+
return /* @__PURE__ */ i.jsx(fr, { ...a, ref: r, children: s.isValidElement(l) ? s.cloneElement(l, void 0, c) : null });
|
|
144
144
|
}
|
|
145
|
-
return /* @__PURE__ */ i.jsx(
|
|
145
|
+
return /* @__PURE__ */ i.jsx(fr, { ...a, ref: r, children: t });
|
|
146
146
|
});
|
|
147
|
-
|
|
148
|
-
var
|
|
147
|
+
za.displayName = "Slot";
|
|
148
|
+
var fr = s.forwardRef((e, r) => {
|
|
149
149
|
const { children: t, ...a } = e;
|
|
150
150
|
if (s.isValidElement(t)) {
|
|
151
|
-
const n =
|
|
151
|
+
const n = Ll(t);
|
|
152
152
|
return s.cloneElement(t, {
|
|
153
|
-
...
|
|
153
|
+
...Fl(a, t.props),
|
|
154
154
|
// @ts-ignore
|
|
155
155
|
ref: r ? gt(r, n) : n
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
158
|
return s.Children.count(t) > 1 ? s.Children.only(null) : null;
|
|
159
159
|
});
|
|
160
|
-
|
|
161
|
-
var
|
|
162
|
-
function
|
|
163
|
-
return s.isValidElement(e) && e.type ===
|
|
160
|
+
fr.displayName = "SlotClone";
|
|
161
|
+
var kl = ({ children: e }) => /* @__PURE__ */ i.jsx(i.Fragment, { children: e });
|
|
162
|
+
function Vl(e) {
|
|
163
|
+
return s.isValidElement(e) && e.type === kl;
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function Fl(e, r) {
|
|
166
166
|
const t = { ...r };
|
|
167
167
|
for (const a in r) {
|
|
168
168
|
const n = e[a], o = r[a];
|
|
@@ -172,32 +172,32 @@ function Ll(e, r) {
|
|
|
172
172
|
}
|
|
173
173
|
return { ...e, ...t };
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function Ll(e) {
|
|
176
176
|
var a, n;
|
|
177
177
|
let r = (a = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : a.get, t = r && "isReactWarning" in r && r.isReactWarning;
|
|
178
178
|
return t ? e.ref : (r = (n = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : n.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
|
|
179
179
|
}
|
|
180
|
-
var
|
|
181
|
-
ltr: [...
|
|
182
|
-
rtl: [...
|
|
183
|
-
},
|
|
180
|
+
var pr = ["Enter", " "], $l = ["ArrowDown", "PageUp", "Home"], qa = ["ArrowUp", "PageDown", "End"], Bl = [...$l, ...qa], Ul = {
|
|
181
|
+
ltr: [...pr, "ArrowRight"],
|
|
182
|
+
rtl: [...pr, "ArrowLeft"]
|
|
183
|
+
}, Gl = {
|
|
184
184
|
ltr: ["ArrowLeft"],
|
|
185
185
|
rtl: ["ArrowRight"]
|
|
186
|
-
}, vt = "Menu", [ft,
|
|
187
|
-
|
|
186
|
+
}, vt = "Menu", [ft, Kl, Hl] = Dr(vt), [Ye, Ya] = qe(vt, [
|
|
187
|
+
Hl,
|
|
188
188
|
Lt,
|
|
189
189
|
$t
|
|
190
|
-
]), ht = Lt(),
|
|
190
|
+
]), ht = Lt(), Xa = $t(), [Za, Le] = Ye(vt), [Wl, xt] = Ye(vt), Ja = (e) => {
|
|
191
191
|
const { __scopeMenu: r, open: t = !1, children: a, dir: n, onOpenChange: o, modal: l = !0 } = e, c = ht(r), [d, m] = s.useState(null), f = s.useRef(!1), p = Bt(o), v = Ut(n);
|
|
192
192
|
return s.useEffect(() => {
|
|
193
|
-
const
|
|
193
|
+
const S = () => {
|
|
194
194
|
f.current = !0, document.addEventListener("pointerdown", _, { capture: !0, once: !0 }), document.addEventListener("pointermove", _, { capture: !0, once: !0 });
|
|
195
195
|
}, _ = () => f.current = !1;
|
|
196
|
-
return document.addEventListener("keydown",
|
|
197
|
-
document.removeEventListener("keydown",
|
|
196
|
+
return document.addEventListener("keydown", S, { capture: !0 }), () => {
|
|
197
|
+
document.removeEventListener("keydown", S, { capture: !0 }), document.removeEventListener("pointerdown", _, { capture: !0 }), document.removeEventListener("pointermove", _, { capture: !0 });
|
|
198
198
|
};
|
|
199
|
-
}, []), /* @__PURE__ */ i.jsx(
|
|
200
|
-
|
|
199
|
+
}, []), /* @__PURE__ */ i.jsx(Tr, { ...c, children: /* @__PURE__ */ i.jsx(
|
|
200
|
+
Za,
|
|
201
201
|
{
|
|
202
202
|
scope: r,
|
|
203
203
|
open: t,
|
|
@@ -205,7 +205,7 @@ var mr = ["Enter", " "], Bl = ["ArrowDown", "PageUp", "Home"], Ya = ["ArrowUp",
|
|
|
205
205
|
content: d,
|
|
206
206
|
onContentChange: m,
|
|
207
207
|
children: /* @__PURE__ */ i.jsx(
|
|
208
|
-
|
|
208
|
+
Wl,
|
|
209
209
|
{
|
|
210
210
|
scope: r,
|
|
211
211
|
onClose: s.useCallback(() => p(!1), [p]),
|
|
@@ -218,32 +218,32 @@ var mr = ["Enter", " "], Bl = ["ArrowDown", "PageUp", "Home"], Ya = ["ArrowUp",
|
|
|
218
218
|
}
|
|
219
219
|
) });
|
|
220
220
|
};
|
|
221
|
-
|
|
222
|
-
var
|
|
221
|
+
Ja.displayName = vt;
|
|
222
|
+
var zl = "MenuAnchor", Pr = s.forwardRef(
|
|
223
223
|
(e, r) => {
|
|
224
224
|
const { __scopeMenu: t, ...a } = e, n = ht(t);
|
|
225
|
-
return /* @__PURE__ */ i.jsx(
|
|
225
|
+
return /* @__PURE__ */ i.jsx(Ta, { ...n, ...a, ref: r });
|
|
226
226
|
}
|
|
227
227
|
);
|
|
228
|
-
Pr.displayName =
|
|
229
|
-
var
|
|
228
|
+
Pr.displayName = zl;
|
|
229
|
+
var Or = "MenuPortal", [ql, Qa] = Ye(Or, {
|
|
230
230
|
forceMount: void 0
|
|
231
|
-
}),
|
|
232
|
-
const { __scopeMenu: r, forceMount: t, children: a, container: n } = e, o = Le(
|
|
233
|
-
return /* @__PURE__ */ i.jsx(
|
|
231
|
+
}), en = (e) => {
|
|
232
|
+
const { __scopeMenu: r, forceMount: t, children: a, container: n } = e, o = Le(Or, r);
|
|
233
|
+
return /* @__PURE__ */ i.jsx(ql, { scope: r, forceMount: t, children: /* @__PURE__ */ i.jsx(et, { present: t || o.open, children: /* @__PURE__ */ i.jsx(Ua, { asChild: !0, container: n, children: a }) }) });
|
|
234
234
|
};
|
|
235
|
-
|
|
236
|
-
var Ne = "MenuContent", [
|
|
235
|
+
en.displayName = Or;
|
|
236
|
+
var Ne = "MenuContent", [Yl, kr] = Ye(Ne), tn = s.forwardRef(
|
|
237
237
|
(e, r) => {
|
|
238
|
-
const t =
|
|
239
|
-
return /* @__PURE__ */ i.jsx(ft.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ i.jsx(et, { present: a || o.open, children: /* @__PURE__ */ i.jsx(ft.Slot, { scope: e.__scopeMenu, children: l.modal ? /* @__PURE__ */ i.jsx(
|
|
238
|
+
const t = Qa(Ne, e.__scopeMenu), { forceMount: a = t.forceMount, ...n } = e, o = Le(Ne, e.__scopeMenu), l = xt(Ne, e.__scopeMenu);
|
|
239
|
+
return /* @__PURE__ */ i.jsx(ft.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ i.jsx(et, { present: a || o.open, children: /* @__PURE__ */ i.jsx(ft.Slot, { scope: e.__scopeMenu, children: l.modal ? /* @__PURE__ */ i.jsx(Xl, { ...n, ref: r }) : /* @__PURE__ */ i.jsx(Zl, { ...n, ref: r }) }) }) });
|
|
240
240
|
}
|
|
241
|
-
),
|
|
241
|
+
), Xl = s.forwardRef(
|
|
242
242
|
(e, r) => {
|
|
243
243
|
const t = Le(Ne, e.__scopeMenu), a = s.useRef(null), n = ge(r, a);
|
|
244
244
|
return s.useEffect(() => {
|
|
245
245
|
const o = a.current;
|
|
246
|
-
if (o) return
|
|
246
|
+
if (o) return ja(o);
|
|
247
247
|
}, []), /* @__PURE__ */ i.jsx(
|
|
248
248
|
Vr,
|
|
249
249
|
{
|
|
@@ -261,7 +261,7 @@ var Ne = "MenuContent", [Xl, Or] = Ye(Ne), rn = s.forwardRef(
|
|
|
261
261
|
}
|
|
262
262
|
);
|
|
263
263
|
}
|
|
264
|
-
),
|
|
264
|
+
), Zl = s.forwardRef((e, r) => {
|
|
265
265
|
const t = Le(Ne, e.__scopeMenu);
|
|
266
266
|
return /* @__PURE__ */ i.jsx(
|
|
267
267
|
Vr,
|
|
@@ -288,61 +288,61 @@ var Ne = "MenuContent", [Xl, Or] = Ye(Ne), rn = s.forwardRef(
|
|
|
288
288
|
onPointerDownOutside: f,
|
|
289
289
|
onFocusOutside: p,
|
|
290
290
|
onInteractOutside: v,
|
|
291
|
-
onDismiss:
|
|
291
|
+
onDismiss: S,
|
|
292
292
|
disableOutsideScroll: _,
|
|
293
293
|
...y
|
|
294
|
-
} = e, C = Le(Ne, t), I = xt(Ne, t), h = ht(t), D =
|
|
294
|
+
} = e, C = Le(Ne, t), I = xt(Ne, t), h = ht(t), D = Xa(t), H = Kl(t), [F, W] = s.useState(null), O = s.useRef(null), de = ge(r, O, C.onContentChange), Y = s.useRef(0), Q = s.useRef(""), re = s.useRef(0), k = s.useRef(null), B = s.useRef("right"), U = s.useRef(0), X = _ ? Ba : s.Fragment, q = _ ? { as: za, allowPinchZoom: !0 } : void 0, oe = (w) => {
|
|
295
295
|
var E, K;
|
|
296
|
-
const ee = Q.current +
|
|
296
|
+
const ee = Q.current + w, ne = H().filter((Z) => !Z.disabled), b = document.activeElement, V = (E = ne.find((Z) => Z.ref.current === b)) == null ? void 0 : E.textValue, $ = ne.map((Z) => Z.textValue), T = ci($, ee, V), z = (K = ne.find((Z) => Z.textValue === T)) == null ? void 0 : K.ref.current;
|
|
297
297
|
(function Z(te) {
|
|
298
298
|
Q.current = te, window.clearTimeout(Y.current), te !== "" && (Y.current = window.setTimeout(() => Z(""), 1e3));
|
|
299
299
|
})(ee), z && setTimeout(() => z.focus());
|
|
300
300
|
};
|
|
301
|
-
s.useEffect(() => () => window.clearTimeout(Y.current), []),
|
|
302
|
-
const ae = s.useCallback((
|
|
301
|
+
s.useEffect(() => () => window.clearTimeout(Y.current), []), Pa();
|
|
302
|
+
const ae = s.useCallback((w) => {
|
|
303
303
|
var ne, b;
|
|
304
|
-
return B.current === ((ne =
|
|
304
|
+
return B.current === ((ne = k.current) == null ? void 0 : ne.side) && ui(w, (b = k.current) == null ? void 0 : b.area);
|
|
305
305
|
}, []);
|
|
306
306
|
return /* @__PURE__ */ i.jsx(
|
|
307
|
-
|
|
307
|
+
Yl,
|
|
308
308
|
{
|
|
309
309
|
scope: t,
|
|
310
310
|
searchRef: Q,
|
|
311
311
|
onItemEnter: s.useCallback(
|
|
312
|
-
(
|
|
313
|
-
ae(
|
|
312
|
+
(w) => {
|
|
313
|
+
ae(w) && w.preventDefault();
|
|
314
314
|
},
|
|
315
315
|
[ae]
|
|
316
316
|
),
|
|
317
317
|
onItemLeave: s.useCallback(
|
|
318
|
-
(
|
|
318
|
+
(w) => {
|
|
319
319
|
var ee;
|
|
320
|
-
ae(
|
|
320
|
+
ae(w) || ((ee = O.current) == null || ee.focus(), W(null));
|
|
321
321
|
},
|
|
322
322
|
[ae]
|
|
323
323
|
),
|
|
324
324
|
onTriggerLeave: s.useCallback(
|
|
325
|
-
(
|
|
326
|
-
ae(
|
|
325
|
+
(w) => {
|
|
326
|
+
ae(w) && w.preventDefault();
|
|
327
327
|
},
|
|
328
328
|
[ae]
|
|
329
329
|
),
|
|
330
330
|
pointerGraceTimerRef: re,
|
|
331
|
-
onPointerGraceIntentChange: s.useCallback((
|
|
332
|
-
|
|
331
|
+
onPointerGraceIntentChange: s.useCallback((w) => {
|
|
332
|
+
k.current = w;
|
|
333
333
|
}, []),
|
|
334
334
|
children: /* @__PURE__ */ i.jsx(X, { ...q, children: /* @__PURE__ */ i.jsx(
|
|
335
335
|
Oa,
|
|
336
336
|
{
|
|
337
337
|
asChild: !0,
|
|
338
338
|
trapped: n,
|
|
339
|
-
onMountAutoFocus: L(o, (
|
|
339
|
+
onMountAutoFocus: L(o, (w) => {
|
|
340
340
|
var ee;
|
|
341
|
-
|
|
341
|
+
w.preventDefault(), (ee = O.current) == null || ee.focus({ preventScroll: !0 });
|
|
342
342
|
}),
|
|
343
343
|
onUnmountAutoFocus: l,
|
|
344
344
|
children: /* @__PURE__ */ i.jsx(
|
|
345
|
-
|
|
345
|
+
ka,
|
|
346
346
|
{
|
|
347
347
|
asChild: !0,
|
|
348
348
|
disableOutsidePointerEvents: c,
|
|
@@ -350,9 +350,9 @@ var Ne = "MenuContent", [Xl, Or] = Ye(Ne), rn = s.forwardRef(
|
|
|
350
350
|
onPointerDownOutside: f,
|
|
351
351
|
onFocusOutside: p,
|
|
352
352
|
onInteractOutside: v,
|
|
353
|
-
onDismiss:
|
|
353
|
+
onDismiss: S,
|
|
354
354
|
children: /* @__PURE__ */ i.jsx(
|
|
355
|
-
|
|
355
|
+
Va,
|
|
356
356
|
{
|
|
357
357
|
asChild: !0,
|
|
358
358
|
...D,
|
|
@@ -361,41 +361,41 @@ var Ne = "MenuContent", [Xl, Or] = Ye(Ne), rn = s.forwardRef(
|
|
|
361
361
|
loop: a,
|
|
362
362
|
currentTabStopId: F,
|
|
363
363
|
onCurrentTabStopIdChange: W,
|
|
364
|
-
onEntryFocus: L(d, (
|
|
365
|
-
I.isUsingKeyboardRef.current ||
|
|
364
|
+
onEntryFocus: L(d, (w) => {
|
|
365
|
+
I.isUsingKeyboardRef.current || w.preventDefault();
|
|
366
366
|
}),
|
|
367
367
|
preventScrollOnEntryFocus: !0,
|
|
368
368
|
children: /* @__PURE__ */ i.jsx(
|
|
369
|
-
|
|
369
|
+
Fa,
|
|
370
370
|
{
|
|
371
371
|
role: "menu",
|
|
372
372
|
"aria-orientation": "vertical",
|
|
373
|
-
"data-state":
|
|
373
|
+
"data-state": yn(C.open),
|
|
374
374
|
"data-radix-menu-content": "",
|
|
375
375
|
dir: I.dir,
|
|
376
376
|
...h,
|
|
377
377
|
...y,
|
|
378
378
|
ref: de,
|
|
379
379
|
style: { outline: "none", ...y.style },
|
|
380
|
-
onKeyDown: L(y.onKeyDown, (
|
|
381
|
-
const ne =
|
|
382
|
-
ne && (
|
|
383
|
-
const $ =
|
|
384
|
-
if (
|
|
385
|
-
|
|
380
|
+
onKeyDown: L(y.onKeyDown, (w) => {
|
|
381
|
+
const ne = w.target.closest("[data-radix-menu-content]") === w.currentTarget, b = w.ctrlKey || w.altKey || w.metaKey, V = w.key.length === 1;
|
|
382
|
+
ne && (w.key === "Tab" && w.preventDefault(), !b && V && oe(w.key));
|
|
383
|
+
const $ = O.current;
|
|
384
|
+
if (w.target !== $ || !Bl.includes(w.key)) return;
|
|
385
|
+
w.preventDefault();
|
|
386
386
|
const z = H().filter((E) => !E.disabled).map((E) => E.ref.current);
|
|
387
|
-
|
|
387
|
+
qa.includes(w.key) && z.reverse(), li(z);
|
|
388
388
|
}),
|
|
389
|
-
onBlur: L(e.onBlur, (
|
|
390
|
-
|
|
389
|
+
onBlur: L(e.onBlur, (w) => {
|
|
390
|
+
w.currentTarget.contains(w.target) || (window.clearTimeout(Y.current), Q.current = "");
|
|
391
391
|
}),
|
|
392
392
|
onPointerMove: L(
|
|
393
393
|
e.onPointerMove,
|
|
394
|
-
pt((
|
|
395
|
-
const ee =
|
|
396
|
-
if (
|
|
397
|
-
const b =
|
|
398
|
-
B.current = b, U.current =
|
|
394
|
+
pt((w) => {
|
|
395
|
+
const ee = w.target, ne = U.current !== w.clientX;
|
|
396
|
+
if (w.currentTarget.contains(ee) && ne) {
|
|
397
|
+
const b = w.clientX > U.current ? "right" : "left";
|
|
398
|
+
B.current = b, U.current = w.clientX;
|
|
399
399
|
}
|
|
400
400
|
})
|
|
401
401
|
)
|
|
@@ -411,32 +411,32 @@ var Ne = "MenuContent", [Xl, Or] = Ye(Ne), rn = s.forwardRef(
|
|
|
411
411
|
);
|
|
412
412
|
}
|
|
413
413
|
);
|
|
414
|
-
|
|
415
|
-
var
|
|
414
|
+
tn.displayName = Ne;
|
|
415
|
+
var Jl = "MenuGroup", Fr = s.forwardRef(
|
|
416
416
|
(e, r) => {
|
|
417
417
|
const { __scopeMenu: t, ...a } = e;
|
|
418
418
|
return /* @__PURE__ */ i.jsx(J.div, { role: "group", ...a, ref: r });
|
|
419
419
|
}
|
|
420
420
|
);
|
|
421
|
-
Fr.displayName =
|
|
422
|
-
var
|
|
421
|
+
Fr.displayName = Jl;
|
|
422
|
+
var Ql = "MenuLabel", rn = s.forwardRef(
|
|
423
423
|
(e, r) => {
|
|
424
424
|
const { __scopeMenu: t, ...a } = e;
|
|
425
425
|
return /* @__PURE__ */ i.jsx(J.div, { ...a, ref: r });
|
|
426
426
|
}
|
|
427
427
|
);
|
|
428
|
-
|
|
429
|
-
var Rt = "MenuItem",
|
|
428
|
+
rn.displayName = Ql;
|
|
429
|
+
var Rt = "MenuItem", ua = "menu.itemSelect", Gt = s.forwardRef(
|
|
430
430
|
(e, r) => {
|
|
431
|
-
const { disabled: t = !1, onSelect: a, ...n } = e, o = s.useRef(null), l = xt(Rt, e.__scopeMenu), c =
|
|
431
|
+
const { disabled: t = !1, onSelect: a, ...n } = e, o = s.useRef(null), l = xt(Rt, e.__scopeMenu), c = kr(Rt, e.__scopeMenu), d = ge(r, o), m = s.useRef(!1), f = () => {
|
|
432
432
|
const p = o.current;
|
|
433
433
|
if (!t && p) {
|
|
434
|
-
const v = new CustomEvent(
|
|
435
|
-
p.addEventListener(
|
|
434
|
+
const v = new CustomEvent(ua, { bubbles: !0, cancelable: !0 });
|
|
435
|
+
p.addEventListener(ua, (S) => a == null ? void 0 : a(S), { once: !0 }), gl(p, v), v.defaultPrevented ? m.current = !1 : l.onClose();
|
|
436
436
|
}
|
|
437
437
|
};
|
|
438
438
|
return /* @__PURE__ */ i.jsx(
|
|
439
|
-
|
|
439
|
+
an,
|
|
440
440
|
{
|
|
441
441
|
...n,
|
|
442
442
|
ref: d,
|
|
@@ -452,26 +452,26 @@ var Rt = "MenuItem", fa = "menu.itemSelect", Gt = s.forwardRef(
|
|
|
452
452
|
}),
|
|
453
453
|
onKeyDown: L(e.onKeyDown, (p) => {
|
|
454
454
|
const v = c.searchRef.current !== "";
|
|
455
|
-
t || v && p.key === " " ||
|
|
455
|
+
t || v && p.key === " " || pr.includes(p.key) && (p.currentTarget.click(), p.preventDefault());
|
|
456
456
|
})
|
|
457
457
|
}
|
|
458
458
|
);
|
|
459
459
|
}
|
|
460
460
|
);
|
|
461
461
|
Gt.displayName = Rt;
|
|
462
|
-
var
|
|
462
|
+
var an = s.forwardRef(
|
|
463
463
|
(e, r) => {
|
|
464
|
-
const { __scopeMenu: t, disabled: a = !1, textValue: n, ...o } = e, l =
|
|
464
|
+
const { __scopeMenu: t, disabled: a = !1, textValue: n, ...o } = e, l = kr(Rt, t), c = Xa(t), d = s.useRef(null), m = ge(r, d), [f, p] = s.useState(!1), [v, S] = s.useState("");
|
|
465
465
|
return s.useEffect(() => {
|
|
466
466
|
const _ = d.current;
|
|
467
|
-
_ &&
|
|
467
|
+
_ && S((_.textContent ?? "").trim());
|
|
468
468
|
}, [o.children]), /* @__PURE__ */ i.jsx(
|
|
469
469
|
ft.ItemSlot,
|
|
470
470
|
{
|
|
471
471
|
scope: t,
|
|
472
472
|
disabled: a,
|
|
473
473
|
textValue: n ?? v,
|
|
474
|
-
children: /* @__PURE__ */ i.jsx(
|
|
474
|
+
children: /* @__PURE__ */ i.jsx(La, { asChild: !0, ...c, focusable: !a, children: /* @__PURE__ */ i.jsx(
|
|
475
475
|
J.div,
|
|
476
476
|
{
|
|
477
477
|
role: "menuitem",
|
|
@@ -497,10 +497,10 @@ var nn = s.forwardRef(
|
|
|
497
497
|
}
|
|
498
498
|
);
|
|
499
499
|
}
|
|
500
|
-
),
|
|
500
|
+
), ei = "MenuCheckboxItem", nn = s.forwardRef(
|
|
501
501
|
(e, r) => {
|
|
502
502
|
const { checked: t = !1, onCheckedChange: a, ...n } = e;
|
|
503
|
-
return /* @__PURE__ */ i.jsx(
|
|
503
|
+
return /* @__PURE__ */ i.jsx(dn, { scope: e.__scopeMenu, checked: t, children: /* @__PURE__ */ i.jsx(
|
|
504
504
|
Gt,
|
|
505
505
|
{
|
|
506
506
|
role: "menuitemcheckbox",
|
|
@@ -517,22 +517,22 @@ var nn = s.forwardRef(
|
|
|
517
517
|
) });
|
|
518
518
|
}
|
|
519
519
|
);
|
|
520
|
-
|
|
521
|
-
var
|
|
522
|
-
|
|
520
|
+
nn.displayName = ei;
|
|
521
|
+
var on = "MenuRadioGroup", [ti, ri] = Ye(
|
|
522
|
+
on,
|
|
523
523
|
{ value: void 0, onValueChange: () => {
|
|
524
524
|
} }
|
|
525
|
-
),
|
|
525
|
+
), sn = s.forwardRef(
|
|
526
526
|
(e, r) => {
|
|
527
527
|
const { value: t, onValueChange: a, ...n } = e, o = Bt(a);
|
|
528
|
-
return /* @__PURE__ */ i.jsx(
|
|
528
|
+
return /* @__PURE__ */ i.jsx(ti, { scope: e.__scopeMenu, value: t, onValueChange: o, children: /* @__PURE__ */ i.jsx(Fr, { ...n, ref: r }) });
|
|
529
529
|
}
|
|
530
530
|
);
|
|
531
|
-
|
|
532
|
-
var
|
|
531
|
+
sn.displayName = on;
|
|
532
|
+
var ln = "MenuRadioItem", cn = s.forwardRef(
|
|
533
533
|
(e, r) => {
|
|
534
|
-
const { value: t, ...a } = e, n =
|
|
535
|
-
return /* @__PURE__ */ i.jsx(
|
|
534
|
+
const { value: t, ...a } = e, n = ri(ln, e.__scopeMenu), o = t === n.value;
|
|
535
|
+
return /* @__PURE__ */ i.jsx(dn, { scope: e.__scopeMenu, checked: o, children: /* @__PURE__ */ i.jsx(
|
|
536
536
|
Gt,
|
|
537
537
|
{
|
|
538
538
|
role: "menuitemradio",
|
|
@@ -552,13 +552,13 @@ var cn = "MenuRadioItem", dn = s.forwardRef(
|
|
|
552
552
|
) });
|
|
553
553
|
}
|
|
554
554
|
);
|
|
555
|
-
|
|
556
|
-
var Lr = "MenuItemIndicator", [
|
|
555
|
+
cn.displayName = ln;
|
|
556
|
+
var Lr = "MenuItemIndicator", [dn, ai] = Ye(
|
|
557
557
|
Lr,
|
|
558
558
|
{ checked: !1 }
|
|
559
|
-
),
|
|
559
|
+
), un = s.forwardRef(
|
|
560
560
|
(e, r) => {
|
|
561
|
-
const { __scopeMenu: t, forceMount: a, ...n } = e, o =
|
|
561
|
+
const { __scopeMenu: t, forceMount: a, ...n } = e, o = ai(Lr, t);
|
|
562
562
|
return /* @__PURE__ */ i.jsx(
|
|
563
563
|
et,
|
|
564
564
|
{
|
|
@@ -575,8 +575,8 @@ var Lr = "MenuItemIndicator", [un, ni] = Ye(
|
|
|
575
575
|
);
|
|
576
576
|
}
|
|
577
577
|
);
|
|
578
|
-
|
|
579
|
-
var
|
|
578
|
+
un.displayName = Lr;
|
|
579
|
+
var ni = "MenuSeparator", fn = s.forwardRef(
|
|
580
580
|
(e, r) => {
|
|
581
581
|
const { __scopeMenu: t, ...a } = e;
|
|
582
582
|
return /* @__PURE__ */ i.jsx(
|
|
@@ -590,18 +590,18 @@ var oi = "MenuSeparator", pn = s.forwardRef(
|
|
|
590
590
|
);
|
|
591
591
|
}
|
|
592
592
|
);
|
|
593
|
-
|
|
594
|
-
var
|
|
593
|
+
fn.displayName = ni;
|
|
594
|
+
var oi = "MenuArrow", pn = s.forwardRef(
|
|
595
595
|
(e, r) => {
|
|
596
596
|
const { __scopeMenu: t, ...a } = e, n = ht(t);
|
|
597
|
-
return /* @__PURE__ */ i.jsx(
|
|
597
|
+
return /* @__PURE__ */ i.jsx($a, { ...n, ...a, ref: r });
|
|
598
598
|
}
|
|
599
599
|
);
|
|
600
|
-
|
|
601
|
-
var $r = "MenuSub", [
|
|
600
|
+
pn.displayName = oi;
|
|
601
|
+
var $r = "MenuSub", [si, mn] = Ye($r), gn = (e) => {
|
|
602
602
|
const { __scopeMenu: r, children: t, open: a = !1, onOpenChange: n } = e, o = Le($r, r), l = ht(r), [c, d] = s.useState(null), [m, f] = s.useState(null), p = Bt(n);
|
|
603
|
-
return s.useEffect(() => (o.open === !1 && p(!1), () => p(!1)), [o.open, p]), /* @__PURE__ */ i.jsx(
|
|
604
|
-
|
|
603
|
+
return s.useEffect(() => (o.open === !1 && p(!1), () => p(!1)), [o.open, p]), /* @__PURE__ */ i.jsx(Tr, { ...l, children: /* @__PURE__ */ i.jsx(
|
|
604
|
+
Za,
|
|
605
605
|
{
|
|
606
606
|
scope: r,
|
|
607
607
|
open: a,
|
|
@@ -609,11 +609,11 @@ var $r = "MenuSub", [li, gn] = Ye($r), vn = (e) => {
|
|
|
609
609
|
content: m,
|
|
610
610
|
onContentChange: f,
|
|
611
611
|
children: /* @__PURE__ */ i.jsx(
|
|
612
|
-
|
|
612
|
+
si,
|
|
613
613
|
{
|
|
614
614
|
scope: r,
|
|
615
|
-
contentId:
|
|
616
|
-
triggerId:
|
|
615
|
+
contentId: he(),
|
|
616
|
+
triggerId: he(),
|
|
617
617
|
trigger: c,
|
|
618
618
|
onTriggerChange: d,
|
|
619
619
|
children: t
|
|
@@ -622,10 +622,10 @@ var $r = "MenuSub", [li, gn] = Ye($r), vn = (e) => {
|
|
|
622
622
|
}
|
|
623
623
|
) });
|
|
624
624
|
};
|
|
625
|
-
|
|
626
|
-
var lt = "MenuSubTrigger",
|
|
625
|
+
gn.displayName = $r;
|
|
626
|
+
var lt = "MenuSubTrigger", vn = s.forwardRef(
|
|
627
627
|
(e, r) => {
|
|
628
|
-
const t = Le(lt, e.__scopeMenu), a = xt(lt, e.__scopeMenu), n =
|
|
628
|
+
const t = Le(lt, e.__scopeMenu), a = xt(lt, e.__scopeMenu), n = mn(lt, e.__scopeMenu), o = kr(lt, e.__scopeMenu), l = s.useRef(null), { pointerGraceTimerRef: c, onPointerGraceIntentChange: d } = o, m = { __scopeMenu: e.__scopeMenu }, f = s.useCallback(() => {
|
|
629
629
|
l.current && window.clearTimeout(l.current), l.current = null;
|
|
630
630
|
}, []);
|
|
631
631
|
return s.useEffect(() => f, [f]), s.useEffect(() => {
|
|
@@ -634,13 +634,13 @@ var lt = "MenuSubTrigger", hn = s.forwardRef(
|
|
|
634
634
|
window.clearTimeout(p), d(null);
|
|
635
635
|
};
|
|
636
636
|
}, [c, d]), /* @__PURE__ */ i.jsx(Pr, { asChild: !0, ...m, children: /* @__PURE__ */ i.jsx(
|
|
637
|
-
|
|
637
|
+
an,
|
|
638
638
|
{
|
|
639
639
|
id: n.triggerId,
|
|
640
640
|
"aria-haspopup": "menu",
|
|
641
641
|
"aria-expanded": t.open,
|
|
642
642
|
"aria-controls": n.contentId,
|
|
643
|
-
"data-state":
|
|
643
|
+
"data-state": yn(t.open),
|
|
644
644
|
...e,
|
|
645
645
|
ref: gt(r, n.onTriggerChange),
|
|
646
646
|
onClick: (p) => {
|
|
@@ -658,9 +658,9 @@ var lt = "MenuSubTrigger", hn = s.forwardRef(
|
|
|
658
658
|
onPointerLeave: L(
|
|
659
659
|
e.onPointerLeave,
|
|
660
660
|
pt((p) => {
|
|
661
|
-
var
|
|
661
|
+
var S, _;
|
|
662
662
|
f();
|
|
663
|
-
const v = (
|
|
663
|
+
const v = (S = t.content) == null ? void 0 : S.getBoundingClientRect();
|
|
664
664
|
if (v) {
|
|
665
665
|
const y = (_ = t.content) == null ? void 0 : _.dataset.side, C = y === "right", I = C ? -5 : 5, h = v[C ? "left" : "right"], D = v[C ? "right" : "left"];
|
|
666
666
|
o.onPointerGraceIntentChange({
|
|
@@ -685,18 +685,18 @@ var lt = "MenuSubTrigger", hn = s.forwardRef(
|
|
|
685
685
|
})
|
|
686
686
|
),
|
|
687
687
|
onKeyDown: L(e.onKeyDown, (p) => {
|
|
688
|
-
var
|
|
688
|
+
var S;
|
|
689
689
|
const v = o.searchRef.current !== "";
|
|
690
|
-
e.disabled || v && p.key === " " ||
|
|
690
|
+
e.disabled || v && p.key === " " || Ul[a.dir].includes(p.key) && (t.onOpenChange(!0), (S = t.content) == null || S.focus(), p.preventDefault());
|
|
691
691
|
})
|
|
692
692
|
}
|
|
693
693
|
) });
|
|
694
694
|
}
|
|
695
695
|
);
|
|
696
|
-
|
|
697
|
-
var
|
|
696
|
+
vn.displayName = lt;
|
|
697
|
+
var hn = "MenuSubContent", xn = s.forwardRef(
|
|
698
698
|
(e, r) => {
|
|
699
|
-
const t =
|
|
699
|
+
const t = Qa(Ne, e.__scopeMenu), { forceMount: a = t.forceMount, ...n } = e, o = Le(Ne, e.__scopeMenu), l = xt(Ne, e.__scopeMenu), c = mn(hn, e.__scopeMenu), d = s.useRef(null), m = ge(r, d);
|
|
700
700
|
return /* @__PURE__ */ i.jsx(ft.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ i.jsx(et, { present: a || o.open, children: /* @__PURE__ */ i.jsx(ft.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ i.jsx(
|
|
701
701
|
Vr,
|
|
702
702
|
{
|
|
@@ -721,16 +721,16 @@ var xn = "MenuSubContent", yn = s.forwardRef(
|
|
|
721
721
|
l.onClose(), f.preventDefault();
|
|
722
722
|
}),
|
|
723
723
|
onKeyDown: L(e.onKeyDown, (f) => {
|
|
724
|
-
var
|
|
725
|
-
const p = f.currentTarget.contains(f.target), v =
|
|
726
|
-
p && v && (o.onOpenChange(!1), (
|
|
724
|
+
var S;
|
|
725
|
+
const p = f.currentTarget.contains(f.target), v = Gl[l.dir].includes(f.key);
|
|
726
|
+
p && v && (o.onOpenChange(!1), (S = c.trigger) == null || S.focus(), f.preventDefault());
|
|
727
727
|
})
|
|
728
728
|
}
|
|
729
729
|
) }) }) });
|
|
730
730
|
}
|
|
731
731
|
);
|
|
732
|
-
|
|
733
|
-
function
|
|
732
|
+
xn.displayName = hn;
|
|
733
|
+
function yn(e) {
|
|
734
734
|
return e ? "open" : "closed";
|
|
735
735
|
}
|
|
736
736
|
function It(e) {
|
|
@@ -739,24 +739,24 @@ function It(e) {
|
|
|
739
739
|
function Br(e) {
|
|
740
740
|
return It(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
741
741
|
}
|
|
742
|
-
function
|
|
742
|
+
function li(e) {
|
|
743
743
|
const r = document.activeElement;
|
|
744
744
|
for (const t of e)
|
|
745
745
|
if (t === r || (t.focus(), document.activeElement !== r)) return;
|
|
746
746
|
}
|
|
747
|
-
function
|
|
747
|
+
function ii(e, r) {
|
|
748
748
|
return e.map((t, a) => e[(r + a) % e.length]);
|
|
749
749
|
}
|
|
750
|
-
function
|
|
750
|
+
function ci(e, r, t) {
|
|
751
751
|
const n = r.length > 1 && Array.from(r).every((m) => m === r[0]) ? r[0] : r, o = t ? e.indexOf(t) : -1;
|
|
752
|
-
let l =
|
|
752
|
+
let l = ii(e, Math.max(o, 0));
|
|
753
753
|
n.length === 1 && (l = l.filter((m) => m !== t));
|
|
754
754
|
const d = l.find(
|
|
755
755
|
(m) => m.toLowerCase().startsWith(n.toLowerCase())
|
|
756
756
|
);
|
|
757
757
|
return d !== t ? d : void 0;
|
|
758
758
|
}
|
|
759
|
-
function
|
|
759
|
+
function di(e, r) {
|
|
760
760
|
const { x: t, y: a } = e;
|
|
761
761
|
let n = !1;
|
|
762
762
|
for (let o = 0, l = r.length - 1; o < r.length; l = o++) {
|
|
@@ -765,18 +765,18 @@ function ui(e, r) {
|
|
|
765
765
|
}
|
|
766
766
|
return n;
|
|
767
767
|
}
|
|
768
|
-
function
|
|
768
|
+
function ui(e, r) {
|
|
769
769
|
if (!r) return !1;
|
|
770
770
|
const t = { x: e.clientX, y: e.clientY };
|
|
771
|
-
return
|
|
771
|
+
return di(t, r);
|
|
772
772
|
}
|
|
773
773
|
function pt(e) {
|
|
774
774
|
return (r) => r.pointerType === "mouse" ? e(r) : void 0;
|
|
775
775
|
}
|
|
776
|
-
var pi =
|
|
776
|
+
var fi = Ja, pi = Pr, mi = en, gi = tn, vi = Fr, hi = rn, xi = Gt, yi = nn, bi = sn, wi = cn, Si = un, _i = fn, Ci = pn, Ni = gn, Ei = vn, Ai = xn, Ur = "DropdownMenu", [Ri, pf] = qe(
|
|
777
777
|
Ur,
|
|
778
|
-
[
|
|
779
|
-
), ye =
|
|
778
|
+
[Ya]
|
|
779
|
+
), ye = Ya(), [Ii, bn] = Ri(Ur), wn = (e) => {
|
|
780
780
|
const {
|
|
781
781
|
__scopeDropdownMenu: r,
|
|
782
782
|
children: t,
|
|
@@ -791,25 +791,25 @@ var pi = Qa, mi = Pr, gi = tn, vi = rn, hi = Fr, xi = an, yi = Gt, bi = on, wi =
|
|
|
791
791
|
onChange: l
|
|
792
792
|
});
|
|
793
793
|
return /* @__PURE__ */ i.jsx(
|
|
794
|
-
|
|
794
|
+
Ii,
|
|
795
795
|
{
|
|
796
796
|
scope: r,
|
|
797
|
-
triggerId:
|
|
797
|
+
triggerId: he(),
|
|
798
798
|
triggerRef: m,
|
|
799
|
-
contentId:
|
|
799
|
+
contentId: he(),
|
|
800
800
|
open: f,
|
|
801
801
|
onOpenChange: p,
|
|
802
802
|
onOpenToggle: s.useCallback(() => p((v) => !v), [p]),
|
|
803
803
|
modal: c,
|
|
804
|
-
children: /* @__PURE__ */ i.jsx(
|
|
804
|
+
children: /* @__PURE__ */ i.jsx(fi, { ...d, open: f, onOpenChange: p, dir: a, modal: c, children: t })
|
|
805
805
|
}
|
|
806
806
|
);
|
|
807
807
|
};
|
|
808
|
-
|
|
809
|
-
var
|
|
808
|
+
wn.displayName = Ur;
|
|
809
|
+
var Sn = "DropdownMenuTrigger", _n = s.forwardRef(
|
|
810
810
|
(e, r) => {
|
|
811
|
-
const { __scopeDropdownMenu: t, disabled: a = !1, ...n } = e, o =
|
|
812
|
-
return /* @__PURE__ */ i.jsx(
|
|
811
|
+
const { __scopeDropdownMenu: t, disabled: a = !1, ...n } = e, o = bn(Sn, t), l = ye(t);
|
|
812
|
+
return /* @__PURE__ */ i.jsx(pi, { asChild: !0, ...l, children: /* @__PURE__ */ i.jsx(
|
|
813
813
|
J.button,
|
|
814
814
|
{
|
|
815
815
|
type: "button",
|
|
@@ -832,17 +832,17 @@ var _n = "DropdownMenuTrigger", Cn = s.forwardRef(
|
|
|
832
832
|
) });
|
|
833
833
|
}
|
|
834
834
|
);
|
|
835
|
-
|
|
836
|
-
var
|
|
835
|
+
_n.displayName = Sn;
|
|
836
|
+
var Mi = "DropdownMenuPortal", Cn = (e) => {
|
|
837
837
|
const { __scopeDropdownMenu: r, ...t } = e, a = ye(r);
|
|
838
|
-
return /* @__PURE__ */ i.jsx(
|
|
838
|
+
return /* @__PURE__ */ i.jsx(mi, { ...a, ...t });
|
|
839
839
|
};
|
|
840
|
-
|
|
841
|
-
var
|
|
840
|
+
Cn.displayName = Mi;
|
|
841
|
+
var Nn = "DropdownMenuContent", En = s.forwardRef(
|
|
842
842
|
(e, r) => {
|
|
843
|
-
const { __scopeDropdownMenu: t, ...a } = e, n =
|
|
843
|
+
const { __scopeDropdownMenu: t, ...a } = e, n = bn(Nn, t), o = ye(t), l = s.useRef(!1);
|
|
844
844
|
return /* @__PURE__ */ i.jsx(
|
|
845
|
-
|
|
845
|
+
gi,
|
|
846
846
|
{
|
|
847
847
|
id: n.contentId,
|
|
848
848
|
"aria-labelledby": n.triggerId,
|
|
@@ -869,76 +869,76 @@ var En = "DropdownMenuContent", An = s.forwardRef(
|
|
|
869
869
|
);
|
|
870
870
|
}
|
|
871
871
|
);
|
|
872
|
-
|
|
873
|
-
var
|
|
872
|
+
En.displayName = Nn;
|
|
873
|
+
var Di = "DropdownMenuGroup", An = s.forwardRef(
|
|
874
874
|
(e, r) => {
|
|
875
875
|
const { __scopeDropdownMenu: t, ...a } = e, n = ye(t);
|
|
876
|
-
return /* @__PURE__ */ i.jsx(
|
|
876
|
+
return /* @__PURE__ */ i.jsx(vi, { ...n, ...a, ref: r });
|
|
877
877
|
}
|
|
878
878
|
);
|
|
879
|
-
|
|
880
|
-
var
|
|
879
|
+
An.displayName = Di;
|
|
880
|
+
var Ti = "DropdownMenuLabel", Rn = s.forwardRef(
|
|
881
881
|
(e, r) => {
|
|
882
882
|
const { __scopeDropdownMenu: t, ...a } = e, n = ye(t);
|
|
883
|
-
return /* @__PURE__ */ i.jsx(
|
|
883
|
+
return /* @__PURE__ */ i.jsx(hi, { ...n, ...a, ref: r });
|
|
884
884
|
}
|
|
885
885
|
);
|
|
886
|
-
|
|
887
|
-
var
|
|
886
|
+
Rn.displayName = Ti;
|
|
887
|
+
var ji = "DropdownMenuItem", In = s.forwardRef(
|
|
888
888
|
(e, r) => {
|
|
889
889
|
const { __scopeDropdownMenu: t, ...a } = e, n = ye(t);
|
|
890
|
-
return /* @__PURE__ */ i.jsx(
|
|
890
|
+
return /* @__PURE__ */ i.jsx(xi, { ...n, ...a, ref: r });
|
|
891
891
|
}
|
|
892
892
|
);
|
|
893
|
+
In.displayName = ji;
|
|
894
|
+
var Pi = "DropdownMenuCheckboxItem", Mn = s.forwardRef((e, r) => {
|
|
895
|
+
const { __scopeDropdownMenu: t, ...a } = e, n = ye(t);
|
|
896
|
+
return /* @__PURE__ */ i.jsx(yi, { ...n, ...a, ref: r });
|
|
897
|
+
});
|
|
893
898
|
Mn.displayName = Pi;
|
|
894
|
-
var
|
|
899
|
+
var Oi = "DropdownMenuRadioGroup", Dn = s.forwardRef((e, r) => {
|
|
895
900
|
const { __scopeDropdownMenu: t, ...a } = e, n = ye(t);
|
|
896
901
|
return /* @__PURE__ */ i.jsx(bi, { ...n, ...a, ref: r });
|
|
897
902
|
});
|
|
898
|
-
Dn.displayName =
|
|
899
|
-
var
|
|
903
|
+
Dn.displayName = Oi;
|
|
904
|
+
var ki = "DropdownMenuRadioItem", Tn = s.forwardRef((e, r) => {
|
|
900
905
|
const { __scopeDropdownMenu: t, ...a } = e, n = ye(t);
|
|
901
906
|
return /* @__PURE__ */ i.jsx(wi, { ...n, ...a, ref: r });
|
|
902
907
|
});
|
|
903
|
-
Tn.displayName =
|
|
904
|
-
var Vi = "
|
|
908
|
+
Tn.displayName = ki;
|
|
909
|
+
var Vi = "DropdownMenuItemIndicator", jn = s.forwardRef((e, r) => {
|
|
905
910
|
const { __scopeDropdownMenu: t, ...a } = e, n = ye(t);
|
|
906
911
|
return /* @__PURE__ */ i.jsx(Si, { ...n, ...a, ref: r });
|
|
907
912
|
});
|
|
908
913
|
jn.displayName = Vi;
|
|
909
|
-
var Fi = "
|
|
914
|
+
var Fi = "DropdownMenuSeparator", Pn = s.forwardRef((e, r) => {
|
|
910
915
|
const { __scopeDropdownMenu: t, ...a } = e, n = ye(t);
|
|
911
916
|
return /* @__PURE__ */ i.jsx(_i, { ...n, ...a, ref: r });
|
|
912
917
|
});
|
|
913
918
|
Pn.displayName = Fi;
|
|
914
|
-
var Li = "
|
|
915
|
-
const { __scopeDropdownMenu: t, ...a } = e, n = ye(t);
|
|
916
|
-
return /* @__PURE__ */ i.jsx(Ci, { ...n, ...a, ref: r });
|
|
917
|
-
});
|
|
918
|
-
kn.displayName = Li;
|
|
919
|
-
var $i = "DropdownMenuArrow", Bi = s.forwardRef(
|
|
919
|
+
var Li = "DropdownMenuArrow", $i = s.forwardRef(
|
|
920
920
|
(e, r) => {
|
|
921
921
|
const { __scopeDropdownMenu: t, ...a } = e, n = ye(t);
|
|
922
|
-
return /* @__PURE__ */ i.jsx(
|
|
922
|
+
return /* @__PURE__ */ i.jsx(Ci, { ...n, ...a, ref: r });
|
|
923
923
|
}
|
|
924
924
|
);
|
|
925
|
-
|
|
926
|
-
var
|
|
925
|
+
$i.displayName = Li;
|
|
926
|
+
var Bi = (e) => {
|
|
927
927
|
const { __scopeDropdownMenu: r, children: t, open: a, onOpenChange: n, defaultOpen: o } = e, l = ye(r), [c = !1, d] = Fe({
|
|
928
928
|
prop: a,
|
|
929
929
|
defaultProp: o,
|
|
930
930
|
onChange: n
|
|
931
931
|
});
|
|
932
|
-
return /* @__PURE__ */ i.jsx(
|
|
933
|
-
},
|
|
932
|
+
return /* @__PURE__ */ i.jsx(Ni, { ...l, open: c, onOpenChange: d, children: t });
|
|
933
|
+
}, Ui = "DropdownMenuSubTrigger", On = s.forwardRef((e, r) => {
|
|
934
934
|
const { __scopeDropdownMenu: t, ...a } = e, n = ye(t);
|
|
935
|
-
return /* @__PURE__ */ i.jsx(
|
|
935
|
+
return /* @__PURE__ */ i.jsx(Ei, { ...n, ...a, ref: r });
|
|
936
936
|
});
|
|
937
|
-
On.displayName =
|
|
938
|
-
var
|
|
937
|
+
On.displayName = Ui;
|
|
938
|
+
var Gi = "DropdownMenuSubContent", kn = s.forwardRef((e, r) => {
|
|
939
939
|
const { __scopeDropdownMenu: t, ...a } = e, n = ye(t);
|
|
940
940
|
return /* @__PURE__ */ i.jsx(
|
|
941
|
-
|
|
941
|
+
Ai,
|
|
942
942
|
{
|
|
943
943
|
...n,
|
|
944
944
|
...a,
|
|
@@ -954,10 +954,10 @@ var Ki = "DropdownMenuSubContent", Vn = s.forwardRef((e, r) => {
|
|
|
954
954
|
}
|
|
955
955
|
);
|
|
956
956
|
});
|
|
957
|
-
|
|
958
|
-
var Hi =
|
|
959
|
-
const
|
|
960
|
-
|
|
957
|
+
kn.displayName = Gi;
|
|
958
|
+
var Ki = wn, Hi = _n, Vn = Cn, Fn = En, Wi = An, Ln = Rn, $n = In, Bn = Mn, zi = Dn, Un = Tn, Gn = jn, Kn = Pn, qi = Bi, Hn = On, Wn = kn;
|
|
959
|
+
const mf = Ki, gf = Hi, vf = Wi, hf = Vn, xf = qi, yf = zi, Yi = xe(({ className: e, inset: r, children: t, ...a }, n) => /* @__PURE__ */ i.jsxs(
|
|
960
|
+
Hn,
|
|
961
961
|
{
|
|
962
962
|
ref: n,
|
|
963
963
|
className: j(
|
|
@@ -968,13 +968,13 @@ const vf = Hi, hf = Wi, xf = zi, yf = Fn, bf = Yi, wf = qi, Xi = he(({ className
|
|
|
968
968
|
...a,
|
|
969
969
|
children: [
|
|
970
970
|
t,
|
|
971
|
-
/* @__PURE__ */ i.jsx(
|
|
971
|
+
/* @__PURE__ */ i.jsx(dl, { className: "al-ml-auto" })
|
|
972
972
|
]
|
|
973
973
|
}
|
|
974
974
|
));
|
|
975
|
-
|
|
976
|
-
const
|
|
977
|
-
|
|
975
|
+
Yi.displayName = Hn.displayName;
|
|
976
|
+
const Xi = xe(({ className: e, ...r }, t) => /* @__PURE__ */ i.jsx(
|
|
977
|
+
Wn,
|
|
978
978
|
{
|
|
979
979
|
ref: t,
|
|
980
980
|
className: j(
|
|
@@ -984,9 +984,9 @@ const Zi = he(({ className: e, ...r }, t) => /* @__PURE__ */ i.jsx(
|
|
|
984
984
|
...r
|
|
985
985
|
}
|
|
986
986
|
));
|
|
987
|
-
|
|
988
|
-
const
|
|
989
|
-
|
|
987
|
+
Xi.displayName = Wn.displayName;
|
|
988
|
+
const Zi = xe(({ className: e, sideOffset: r = 4, ...t }, a) => /* @__PURE__ */ i.jsx(Vn, { children: /* @__PURE__ */ i.jsx(
|
|
989
|
+
Fn,
|
|
990
990
|
{
|
|
991
991
|
ref: a,
|
|
992
992
|
sideOffset: r,
|
|
@@ -997,9 +997,9 @@ const Ji = he(({ className: e, sideOffset: r = 4, ...t }, a) => /* @__PURE__ */
|
|
|
997
997
|
...t
|
|
998
998
|
}
|
|
999
999
|
) }));
|
|
1000
|
-
|
|
1001
|
-
const
|
|
1002
|
-
|
|
1000
|
+
Zi.displayName = Fn.displayName;
|
|
1001
|
+
const Ji = xe(({ className: e, inset: r, ...t }, a) => /* @__PURE__ */ i.jsx(
|
|
1002
|
+
$n,
|
|
1003
1003
|
{
|
|
1004
1004
|
ref: a,
|
|
1005
1005
|
className: j(
|
|
@@ -1010,9 +1010,9 @@ const Qi = he(({ className: e, inset: r, ...t }, a) => /* @__PURE__ */ i.jsx(
|
|
|
1010
1010
|
...t
|
|
1011
1011
|
}
|
|
1012
1012
|
));
|
|
1013
|
-
|
|
1014
|
-
const
|
|
1015
|
-
|
|
1013
|
+
Ji.displayName = $n.displayName;
|
|
1014
|
+
const Qi = xe(({ className: e, children: r, checked: t, ...a }, n) => /* @__PURE__ */ i.jsxs(
|
|
1015
|
+
Bn,
|
|
1016
1016
|
{
|
|
1017
1017
|
ref: n,
|
|
1018
1018
|
className: j(
|
|
@@ -1022,14 +1022,14 @@ const ec = he(({ className: e, children: r, checked: t, ...a }, n) => /* @__PURE
|
|
|
1022
1022
|
checked: t,
|
|
1023
1023
|
...a,
|
|
1024
1024
|
children: [
|
|
1025
|
-
/* @__PURE__ */ i.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__ */ i.jsx(
|
|
1025
|
+
/* @__PURE__ */ i.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__ */ i.jsx(Gn, { children: /* @__PURE__ */ i.jsx(Ma, { className: "al-h-4 al-w-4" }) }) }),
|
|
1026
1026
|
r
|
|
1027
1027
|
]
|
|
1028
1028
|
}
|
|
1029
1029
|
));
|
|
1030
|
-
|
|
1031
|
-
const
|
|
1032
|
-
|
|
1030
|
+
Qi.displayName = Bn.displayName;
|
|
1031
|
+
const ec = xe(({ className: e, children: r, ...t }, a) => /* @__PURE__ */ i.jsxs(
|
|
1032
|
+
Un,
|
|
1033
1033
|
{
|
|
1034
1034
|
ref: a,
|
|
1035
1035
|
className: j(
|
|
@@ -1038,53 +1038,53 @@ const tc = he(({ className: e, children: r, ...t }, a) => /* @__PURE__ */ i.jsxs
|
|
|
1038
1038
|
),
|
|
1039
1039
|
...t,
|
|
1040
1040
|
children: [
|
|
1041
|
-
/* @__PURE__ */ i.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__ */ i.jsx(
|
|
1041
|
+
/* @__PURE__ */ i.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__ */ i.jsx(Gn, { children: /* @__PURE__ */ i.jsx(ul, { className: "al-h-2 al-w-2 al-fill-current" }) }) }),
|
|
1042
1042
|
r
|
|
1043
1043
|
]
|
|
1044
1044
|
}
|
|
1045
1045
|
));
|
|
1046
|
-
|
|
1047
|
-
const
|
|
1048
|
-
|
|
1046
|
+
ec.displayName = Un.displayName;
|
|
1047
|
+
const tc = xe(({ className: e, inset: r, ...t }, a) => /* @__PURE__ */ i.jsx(
|
|
1048
|
+
Ln,
|
|
1049
1049
|
{
|
|
1050
1050
|
ref: a,
|
|
1051
1051
|
className: j("al-px-2 al-py-1.5 al-text-sm al-font-semibold", r && "al-pl-8", e),
|
|
1052
1052
|
...t
|
|
1053
1053
|
}
|
|
1054
1054
|
));
|
|
1055
|
-
|
|
1056
|
-
const
|
|
1057
|
-
|
|
1055
|
+
tc.displayName = Ln.displayName;
|
|
1056
|
+
const rc = xe(({ className: e, ...r }, t) => /* @__PURE__ */ i.jsx(
|
|
1057
|
+
Kn,
|
|
1058
1058
|
{
|
|
1059
1059
|
ref: t,
|
|
1060
1060
|
className: j("al--mx-1 al-my-1 al-h-px al-bg-muted", e),
|
|
1061
1061
|
...r
|
|
1062
1062
|
}
|
|
1063
1063
|
));
|
|
1064
|
-
|
|
1065
|
-
const
|
|
1064
|
+
rc.displayName = Kn.displayName;
|
|
1065
|
+
const ac = ({ className: e, ...r }) => /* @__PURE__ */ i.jsx(
|
|
1066
1066
|
"span",
|
|
1067
1067
|
{
|
|
1068
1068
|
className: j("al-ml-auto al-text-xs al-tracking-widest al-opacity-60", e),
|
|
1069
1069
|
...r
|
|
1070
1070
|
}
|
|
1071
1071
|
);
|
|
1072
|
-
|
|
1073
|
-
var
|
|
1074
|
-
function
|
|
1075
|
-
if (o === r.length) return n === e.length ?
|
|
1072
|
+
ac.displayName = "DropdownMenuShortcut";
|
|
1073
|
+
var fa = 1, nc = 0.9, oc = 0.8, sc = 0.17, nr = 0.1, or = 0.999, lc = 0.9999, ic = 0.99, cc = /[\\\/_+.#"@\[\(\{&]/, dc = /[\\\/_+.#"@\[\(\{&]/g, uc = /[\s-]/, zn = /[\s-]/g;
|
|
1074
|
+
function mr(e, r, t, a, n, o, l) {
|
|
1075
|
+
if (o === r.length) return n === e.length ? fa : ic;
|
|
1076
1076
|
var c = `${n},${o}`;
|
|
1077
1077
|
if (l[c] !== void 0) return l[c];
|
|
1078
|
-
for (var d = a.charAt(o), m = t.indexOf(d, n), f = 0, p, v,
|
|
1078
|
+
for (var d = a.charAt(o), m = t.indexOf(d, n), f = 0, p, v, S, _; m >= 0; ) p = mr(e, r, t, a, m + 1, o + 1, l), p > f && (m === n ? p *= fa : cc.test(e.charAt(m - 1)) ? (p *= oc, S = e.slice(n, m - 1).match(dc), S && n > 0 && (p *= Math.pow(or, S.length))) : uc.test(e.charAt(m - 1)) ? (p *= nc, _ = e.slice(n, m - 1).match(zn), _ && n > 0 && (p *= Math.pow(or, _.length))) : (p *= sc, n > 0 && (p *= Math.pow(or, m - n))), e.charAt(m) !== r.charAt(o) && (p *= lc)), (p < nr && t.charAt(m - 1) === a.charAt(o + 1) || a.charAt(o + 1) === a.charAt(o) && t.charAt(m - 1) !== a.charAt(o)) && (v = mr(e, r, t, a, m + 1, o + 2, l), v * nr > p && (p = v * nr)), p > f && (f = p), m = t.indexOf(d, m + 1);
|
|
1079
1079
|
return l[c] = f, f;
|
|
1080
1080
|
}
|
|
1081
|
-
function
|
|
1082
|
-
return e.toLowerCase().replace(
|
|
1081
|
+
function pa(e) {
|
|
1082
|
+
return e.toLowerCase().replace(zn, " ");
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1085
|
-
return e = t && t.length > 0 ? `${e + " " + t.join(" ")}` : e,
|
|
1084
|
+
function fc(e, r, t) {
|
|
1085
|
+
return e = t && t.length > 0 ? `${e + " " + t.join(" ")}` : e, mr(e, r, pa(e), pa(r), 0, 0, {});
|
|
1086
1086
|
}
|
|
1087
|
-
var
|
|
1087
|
+
var gr = { exports: {} }, sr = {};
|
|
1088
1088
|
/**
|
|
1089
1089
|
* @license React
|
|
1090
1090
|
* use-sync-external-store-shim.production.js
|
|
@@ -1094,22 +1094,22 @@ var vr = { exports: {} }, lr = {};
|
|
|
1094
1094
|
* This source code is licensed under the MIT license found in the
|
|
1095
1095
|
* LICENSE file in the root directory of this source tree.
|
|
1096
1096
|
*/
|
|
1097
|
-
var
|
|
1098
|
-
function
|
|
1099
|
-
if (
|
|
1100
|
-
|
|
1097
|
+
var ma;
|
|
1098
|
+
function pc() {
|
|
1099
|
+
if (ma) return sr;
|
|
1100
|
+
ma = 1;
|
|
1101
1101
|
var e = G;
|
|
1102
1102
|
function r(p, v) {
|
|
1103
1103
|
return p === v && (p !== 0 || 1 / p === 1 / v) || p !== p && v !== v;
|
|
1104
1104
|
}
|
|
1105
1105
|
var t = typeof Object.is == "function" ? Object.is : r, a = e.useState, n = e.useEffect, o = e.useLayoutEffect, l = e.useDebugValue;
|
|
1106
1106
|
function c(p, v) {
|
|
1107
|
-
var
|
|
1107
|
+
var S = v(), _ = a({ inst: { value: S, getSnapshot: v } }), y = _[0].inst, C = _[1];
|
|
1108
1108
|
return o(
|
|
1109
1109
|
function() {
|
|
1110
|
-
y.value =
|
|
1110
|
+
y.value = S, y.getSnapshot = v, d(y) && C({ inst: y });
|
|
1111
1111
|
},
|
|
1112
|
-
[p,
|
|
1112
|
+
[p, S, v]
|
|
1113
1113
|
), n(
|
|
1114
1114
|
function() {
|
|
1115
1115
|
return d(y) && C({ inst: y }), p(function() {
|
|
@@ -1117,14 +1117,14 @@ function mc() {
|
|
|
1117
1117
|
});
|
|
1118
1118
|
},
|
|
1119
1119
|
[p]
|
|
1120
|
-
), l(
|
|
1120
|
+
), l(S), S;
|
|
1121
1121
|
}
|
|
1122
1122
|
function d(p) {
|
|
1123
1123
|
var v = p.getSnapshot;
|
|
1124
1124
|
p = p.value;
|
|
1125
1125
|
try {
|
|
1126
|
-
var
|
|
1127
|
-
return !t(p,
|
|
1126
|
+
var S = v();
|
|
1127
|
+
return !t(p, S);
|
|
1128
1128
|
} catch {
|
|
1129
1129
|
return !0;
|
|
1130
1130
|
}
|
|
@@ -1133,9 +1133,9 @@ function mc() {
|
|
|
1133
1133
|
return v();
|
|
1134
1134
|
}
|
|
1135
1135
|
var f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? m : c;
|
|
1136
|
-
return
|
|
1136
|
+
return sr.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : f, sr;
|
|
1137
1137
|
}
|
|
1138
|
-
var
|
|
1138
|
+
var lr = {};
|
|
1139
1139
|
/**
|
|
1140
1140
|
* @license React
|
|
1141
1141
|
* use-sync-external-store-shim.development.js
|
|
@@ -1145,13 +1145,13 @@ var ir = {};
|
|
|
1145
1145
|
* This source code is licensed under the MIT license found in the
|
|
1146
1146
|
* LICENSE file in the root directory of this source tree.
|
|
1147
1147
|
*/
|
|
1148
|
-
var
|
|
1149
|
-
function
|
|
1150
|
-
return
|
|
1151
|
-
function e(
|
|
1152
|
-
return
|
|
1148
|
+
var ga;
|
|
1149
|
+
function mc() {
|
|
1150
|
+
return ga || (ga = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1151
|
+
function e(S, _) {
|
|
1152
|
+
return S === _ && (S !== 0 || 1 / S === 1 / _) || S !== S && _ !== _;
|
|
1153
1153
|
}
|
|
1154
|
-
function r(
|
|
1154
|
+
function r(S, _) {
|
|
1155
1155
|
f || n.startTransition === void 0 || (f = !0, console.error(
|
|
1156
1156
|
"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."
|
|
1157
1157
|
));
|
|
@@ -1170,80 +1170,80 @@ function gc() {
|
|
|
1170
1170
|
function() {
|
|
1171
1171
|
I.value = y, I.getSnapshot = _, t(I) && h({ inst: I });
|
|
1172
1172
|
},
|
|
1173
|
-
[
|
|
1173
|
+
[S, y, _]
|
|
1174
1174
|
), c(
|
|
1175
1175
|
function() {
|
|
1176
|
-
return t(I) && h({ inst: I }),
|
|
1176
|
+
return t(I) && h({ inst: I }), S(function() {
|
|
1177
1177
|
t(I) && h({ inst: I });
|
|
1178
1178
|
});
|
|
1179
1179
|
},
|
|
1180
|
-
[
|
|
1180
|
+
[S]
|
|
1181
1181
|
), m(y), y;
|
|
1182
1182
|
}
|
|
1183
|
-
function t(
|
|
1184
|
-
var _ =
|
|
1185
|
-
|
|
1183
|
+
function t(S) {
|
|
1184
|
+
var _ = S.getSnapshot;
|
|
1185
|
+
S = S.value;
|
|
1186
1186
|
try {
|
|
1187
1187
|
var y = _();
|
|
1188
|
-
return !o(
|
|
1188
|
+
return !o(S, y);
|
|
1189
1189
|
} catch {
|
|
1190
1190
|
return !0;
|
|
1191
1191
|
}
|
|
1192
1192
|
}
|
|
1193
|
-
function a(
|
|
1193
|
+
function a(S, _) {
|
|
1194
1194
|
return _();
|
|
1195
1195
|
}
|
|
1196
1196
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
1197
1197
|
var n = G, o = typeof Object.is == "function" ? Object.is : e, l = n.useState, c = n.useEffect, d = n.useLayoutEffect, m = n.useDebugValue, f = !1, p = !1, v = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? a : r;
|
|
1198
|
-
|
|
1199
|
-
}()),
|
|
1198
|
+
lr.useSyncExternalStore = n.useSyncExternalStore !== void 0 ? n.useSyncExternalStore : v, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1199
|
+
}()), lr;
|
|
1200
1200
|
}
|
|
1201
|
-
process.env.NODE_ENV === "production" ?
|
|
1202
|
-
var
|
|
1201
|
+
process.env.NODE_ENV === "production" ? gr.exports = pc() : gr.exports = mc();
|
|
1202
|
+
var gc = gr.exports, nt = '[cmdk-group=""]', ir = '[cmdk-group-items=""]', vc = '[cmdk-group-heading=""]', Gr = '[cmdk-item=""]', va = `${Gr}:not([aria-disabled="true"])`, vr = "cmdk-item-select", Ue = "data-value", hc = (e, r, t) => fc(e, r, t), qn = s.createContext(void 0), yt = () => s.useContext(qn), Yn = s.createContext(void 0), Kr = () => s.useContext(Yn), Xn = s.createContext(void 0), Zn = s.forwardRef((e, r) => {
|
|
1203
1203
|
let t = Je(() => {
|
|
1204
1204
|
var b, V;
|
|
1205
1205
|
return { search: "", value: (V = (b = e.value) != null ? b : e.defaultValue) != null ? V : "", filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
|
|
1206
|
-
}), a = Je(() => /* @__PURE__ */ new Set()), n = Je(() => /* @__PURE__ */ new Map()), o = Je(() => /* @__PURE__ */ new Map()), l = Je(() => /* @__PURE__ */ new Set()), c =
|
|
1206
|
+
}), a = Je(() => /* @__PURE__ */ new Set()), n = Je(() => /* @__PURE__ */ new Map()), o = Je(() => /* @__PURE__ */ new Map()), l = Je(() => /* @__PURE__ */ new Set()), c = Jn(e), { label: d, children: m, value: f, onValueChange: p, filter: v, shouldFilter: S, loop: _, disablePointerSelection: y = !1, vimBindings: C = !0, ...I } = e, h = he(), D = he(), H = he(), F = s.useRef(null), W = Rc();
|
|
1207
1207
|
Ke(() => {
|
|
1208
1208
|
if (f !== void 0) {
|
|
1209
1209
|
let b = f.trim();
|
|
1210
|
-
t.current.value = b,
|
|
1210
|
+
t.current.value = b, O.emit();
|
|
1211
1211
|
}
|
|
1212
1212
|
}, [f]), Ke(() => {
|
|
1213
1213
|
W(6, B);
|
|
1214
1214
|
}, []);
|
|
1215
|
-
let
|
|
1215
|
+
let O = s.useMemo(() => ({ subscribe: (b) => (l.current.add(b), () => l.current.delete(b)), snapshot: () => t.current, setState: (b, V, $) => {
|
|
1216
1216
|
var T, z, E;
|
|
1217
1217
|
if (!Object.is(t.current[b], V)) {
|
|
1218
|
-
if (t.current[b] = V, b === "search")
|
|
1218
|
+
if (t.current[b] = V, b === "search") k(), Q(), W(1, re);
|
|
1219
1219
|
else if (b === "value" && ($ || W(5, B), ((T = c.current) == null ? void 0 : T.value) !== void 0)) {
|
|
1220
1220
|
let K = V ?? "";
|
|
1221
1221
|
(E = (z = c.current).onValueChange) == null || E.call(z, K);
|
|
1222
1222
|
return;
|
|
1223
1223
|
}
|
|
1224
|
-
|
|
1224
|
+
O.emit();
|
|
1225
1225
|
}
|
|
1226
1226
|
}, emit: () => {
|
|
1227
1227
|
l.current.forEach((b) => b());
|
|
1228
1228
|
} }), []), de = s.useMemo(() => ({ value: (b, V, $) => {
|
|
1229
1229
|
var T;
|
|
1230
1230
|
V !== ((T = o.current.get(b)) == null ? void 0 : T.value) && (o.current.set(b, { value: V, keywords: $ }), t.current.filtered.items.set(b, Y(V, $)), W(2, () => {
|
|
1231
|
-
Q(),
|
|
1231
|
+
Q(), O.emit();
|
|
1232
1232
|
}));
|
|
1233
1233
|
}, item: (b, V) => (a.current.add(b), V && (n.current.has(V) ? n.current.get(V).add(b) : n.current.set(V, /* @__PURE__ */ new Set([b]))), W(3, () => {
|
|
1234
|
-
|
|
1234
|
+
k(), Q(), t.current.value || re(), O.emit();
|
|
1235
1235
|
}), () => {
|
|
1236
1236
|
o.current.delete(b), a.current.delete(b), t.current.filtered.items.delete(b);
|
|
1237
1237
|
let $ = U();
|
|
1238
1238
|
W(4, () => {
|
|
1239
|
-
|
|
1239
|
+
k(), ($ == null ? void 0 : $.getAttribute("id")) === b && re(), O.emit();
|
|
1240
1240
|
});
|
|
1241
1241
|
}), group: (b) => (n.current.has(b) || n.current.set(b, /* @__PURE__ */ new Set()), () => {
|
|
1242
1242
|
o.current.delete(b), n.current.delete(b);
|
|
1243
1243
|
}), filter: () => c.current.shouldFilter, label: d || e["aria-label"], getDisablePointerSelection: () => c.current.disablePointerSelection, listId: h, inputId: H, labelId: D, listInnerRef: F }), []);
|
|
1244
1244
|
function Y(b, V) {
|
|
1245
1245
|
var $, T;
|
|
1246
|
-
let z = (T = ($ = c.current) == null ? void 0 : $.filter) != null ? T :
|
|
1246
|
+
let z = (T = ($ = c.current) == null ? void 0 : $.filter) != null ? T : hc;
|
|
1247
1247
|
return b ? z(b, t.current.search, V) : 0;
|
|
1248
1248
|
}
|
|
1249
1249
|
function Q() {
|
|
@@ -1262,8 +1262,8 @@ var vc = vr.exports, nt = '[cmdk-group=""]', cr = '[cmdk-group-items=""]', hc =
|
|
|
1262
1262
|
let Z = T.getAttribute("id"), te = z.getAttribute("id");
|
|
1263
1263
|
return ((E = b.get(te)) != null ? E : 0) - ((K = b.get(Z)) != null ? K : 0);
|
|
1264
1264
|
}).forEach((T) => {
|
|
1265
|
-
let z = T.closest(
|
|
1266
|
-
z ? z.appendChild(T.parentElement === z ? T : T.closest(`${
|
|
1265
|
+
let z = T.closest(ir);
|
|
1266
|
+
z ? z.appendChild(T.parentElement === z ? T : T.closest(`${ir} > *`)) : $.appendChild(T.parentElement === $ ? T : T.closest(`${ir} > *`));
|
|
1267
1267
|
}), V.sort((T, z) => z[1] - T[1]).forEach((T) => {
|
|
1268
1268
|
var z;
|
|
1269
1269
|
let E = (z = F.current) == null ? void 0 : z.querySelector(`${nt}[${Ue}="${encodeURIComponent(T[0])}"]`);
|
|
@@ -1272,9 +1272,9 @@ var vc = vr.exports, nt = '[cmdk-group=""]', cr = '[cmdk-group-items=""]', hc =
|
|
|
1272
1272
|
}
|
|
1273
1273
|
function re() {
|
|
1274
1274
|
let b = X().find(($) => $.getAttribute("aria-disabled") !== "true"), V = b == null ? void 0 : b.getAttribute(Ue);
|
|
1275
|
-
|
|
1275
|
+
O.setState("value", V || void 0);
|
|
1276
1276
|
}
|
|
1277
|
-
function
|
|
1277
|
+
function k() {
|
|
1278
1278
|
var b, V, $, T;
|
|
1279
1279
|
if (!t.current.search || c.current.shouldFilter === !1) {
|
|
1280
1280
|
t.current.filtered.count = a.current.size;
|
|
@@ -1295,7 +1295,7 @@ var vc = vr.exports, nt = '[cmdk-group=""]', cr = '[cmdk-group-items=""]', hc =
|
|
|
1295
1295
|
function B() {
|
|
1296
1296
|
var b, V, $;
|
|
1297
1297
|
let T = U();
|
|
1298
|
-
T && (((b = T.parentElement) == null ? void 0 : b.firstChild) === T && (($ = (V = T.closest(nt)) == null ? void 0 : V.querySelector(
|
|
1298
|
+
T && (((b = T.parentElement) == null ? void 0 : b.firstChild) === T && (($ = (V = T.closest(nt)) == null ? void 0 : V.querySelector(vc)) == null || $.scrollIntoView({ block: "nearest" })), T.scrollIntoView({ block: "nearest" }));
|
|
1299
1299
|
}
|
|
1300
1300
|
function U() {
|
|
1301
1301
|
var b;
|
|
@@ -1303,24 +1303,24 @@ var vc = vr.exports, nt = '[cmdk-group=""]', cr = '[cmdk-group-items=""]', hc =
|
|
|
1303
1303
|
}
|
|
1304
1304
|
function X() {
|
|
1305
1305
|
var b;
|
|
1306
|
-
return Array.from(((b = F.current) == null ? void 0 : b.querySelectorAll(
|
|
1306
|
+
return Array.from(((b = F.current) == null ? void 0 : b.querySelectorAll(va)) || []);
|
|
1307
1307
|
}
|
|
1308
1308
|
function q(b) {
|
|
1309
1309
|
let V = X()[b];
|
|
1310
|
-
V &&
|
|
1310
|
+
V && O.setState("value", V.getAttribute(Ue));
|
|
1311
1311
|
}
|
|
1312
1312
|
function oe(b) {
|
|
1313
1313
|
var V;
|
|
1314
1314
|
let $ = U(), T = X(), z = T.findIndex((K) => K === $), E = T[z + b];
|
|
1315
|
-
(V = c.current) != null && V.loop && (E = z + b < 0 ? T[T.length - 1] : z + b === T.length ? T[0] : T[z + b]), E &&
|
|
1315
|
+
(V = c.current) != null && V.loop && (E = z + b < 0 ? T[T.length - 1] : z + b === T.length ? T[0] : T[z + b]), E && O.setState("value", E.getAttribute(Ue));
|
|
1316
1316
|
}
|
|
1317
1317
|
function ae(b) {
|
|
1318
1318
|
let V = U(), $ = V == null ? void 0 : V.closest(nt), T;
|
|
1319
|
-
for (; $ && !T; ) $ = b > 0 ?
|
|
1320
|
-
T ?
|
|
1319
|
+
for (; $ && !T; ) $ = b > 0 ? Ec($, nt) : Ac($, nt), T = $ == null ? void 0 : $.querySelector(va);
|
|
1320
|
+
T ? O.setState("value", T.getAttribute(Ue)) : oe(b);
|
|
1321
1321
|
}
|
|
1322
|
-
let
|
|
1323
|
-
b.preventDefault(), b.metaKey ?
|
|
1322
|
+
let w = () => q(X().length - 1), ee = (b) => {
|
|
1323
|
+
b.preventDefault(), b.metaKey ? w() : b.altKey ? ae(1) : oe(1);
|
|
1324
1324
|
}, ne = (b) => {
|
|
1325
1325
|
b.preventDefault(), b.metaKey ? q(0) : b.altKey ? ae(-1) : oe(-1);
|
|
1326
1326
|
};
|
|
@@ -1350,7 +1350,7 @@ var vc = vr.exports, nt = '[cmdk-group=""]', cr = '[cmdk-group-items=""]', hc =
|
|
|
1350
1350
|
break;
|
|
1351
1351
|
}
|
|
1352
1352
|
case "End": {
|
|
1353
|
-
b.preventDefault(),
|
|
1353
|
+
b.preventDefault(), w();
|
|
1354
1354
|
break;
|
|
1355
1355
|
}
|
|
1356
1356
|
case "Enter":
|
|
@@ -1358,42 +1358,42 @@ var vc = vr.exports, nt = '[cmdk-group=""]', cr = '[cmdk-group-items=""]', hc =
|
|
|
1358
1358
|
b.preventDefault();
|
|
1359
1359
|
let $ = U();
|
|
1360
1360
|
if ($) {
|
|
1361
|
-
let T = new Event(
|
|
1361
|
+
let T = new Event(vr);
|
|
1362
1362
|
$.dispatchEvent(T);
|
|
1363
1363
|
}
|
|
1364
1364
|
}
|
|
1365
1365
|
}
|
|
1366
|
-
} }, s.createElement("label", { "cmdk-label": "", htmlFor: de.inputId, id: de.labelId, style:
|
|
1367
|
-
}),
|
|
1366
|
+
} }, s.createElement("label", { "cmdk-label": "", htmlFor: de.inputId, id: de.labelId, style: Mc }, d), Kt(e, (b) => s.createElement(Yn.Provider, { value: O }, s.createElement(qn.Provider, { value: de }, b))));
|
|
1367
|
+
}), xc = s.forwardRef((e, r) => {
|
|
1368
1368
|
var t, a;
|
|
1369
|
-
let n =
|
|
1369
|
+
let n = he(), o = s.useRef(null), l = s.useContext(Xn), c = yt(), d = Jn(e), m = (a = (t = d.current) == null ? void 0 : t.forceMount) != null ? a : l == null ? void 0 : l.forceMount;
|
|
1370
1370
|
Ke(() => {
|
|
1371
1371
|
if (!m) return c.item(n, l == null ? void 0 : l.id);
|
|
1372
1372
|
}, [m]);
|
|
1373
|
-
let f =
|
|
1373
|
+
let f = Qn(n, o, [e.value, e.children, o], e.keywords), p = Kr(), v = He((W) => W.value && W.value === f.current), S = He((W) => m || c.filter() === !1 ? !0 : W.search ? W.filtered.items.get(n) > 0 : !0);
|
|
1374
1374
|
s.useEffect(() => {
|
|
1375
1375
|
let W = o.current;
|
|
1376
|
-
if (!(!W || e.disabled)) return W.addEventListener(
|
|
1377
|
-
}, [
|
|
1376
|
+
if (!(!W || e.disabled)) return W.addEventListener(vr, _), () => W.removeEventListener(vr, _);
|
|
1377
|
+
}, [S, e.onSelect, e.disabled]);
|
|
1378
1378
|
function _() {
|
|
1379
|
-
var W,
|
|
1380
|
-
y(), (
|
|
1379
|
+
var W, O;
|
|
1380
|
+
y(), (O = (W = d.current).onSelect) == null || O.call(W, f.current);
|
|
1381
1381
|
}
|
|
1382
1382
|
function y() {
|
|
1383
1383
|
p.setState("value", f.current, !0);
|
|
1384
1384
|
}
|
|
1385
|
-
if (!
|
|
1385
|
+
if (!S) return null;
|
|
1386
1386
|
let { disabled: C, value: I, onSelect: h, forceMount: D, keywords: H, ...F } = e;
|
|
1387
1387
|
return s.createElement(J.div, { ref: mt([o, r]), ...F, id: n, "cmdk-item": "", role: "option", "aria-disabled": !!C, "aria-selected": !!v, "data-disabled": !!C, "data-selected": !!v, onPointerMove: C || c.getDisablePointerSelection() ? void 0 : y, onClick: C ? void 0 : _ }, e.children);
|
|
1388
|
-
}),
|
|
1389
|
-
let { heading: t, children: a, forceMount: n, ...o } = e, l =
|
|
1390
|
-
Ke(() => f.group(l), []),
|
|
1388
|
+
}), yc = s.forwardRef((e, r) => {
|
|
1389
|
+
let { heading: t, children: a, forceMount: n, ...o } = e, l = he(), c = s.useRef(null), d = s.useRef(null), m = he(), f = yt(), p = He((S) => n || f.filter() === !1 ? !0 : S.search ? S.filtered.groups.has(l) : !0);
|
|
1390
|
+
Ke(() => f.group(l), []), Qn(l, c, [e.value, e.heading, d]);
|
|
1391
1391
|
let v = s.useMemo(() => ({ id: l, forceMount: n }), [n]);
|
|
1392
|
-
return s.createElement(J.div, { ref: mt([c, r]), ...o, "cmdk-group": "", role: "presentation", hidden: p ? void 0 : !0 }, t && s.createElement("div", { ref: d, "cmdk-group-heading": "", "aria-hidden": !0, id: m }, t), Kt(e, (
|
|
1393
|
-
}),
|
|
1392
|
+
return s.createElement(J.div, { ref: mt([c, r]), ...o, "cmdk-group": "", role: "presentation", hidden: p ? void 0 : !0 }, t && s.createElement("div", { ref: d, "cmdk-group-heading": "", "aria-hidden": !0, id: m }, t), Kt(e, (S) => s.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": t ? m : void 0 }, s.createElement(Xn.Provider, { value: v }, S))));
|
|
1393
|
+
}), bc = s.forwardRef((e, r) => {
|
|
1394
1394
|
let { alwaysRender: t, ...a } = e, n = s.useRef(null), o = He((l) => !l.search);
|
|
1395
1395
|
return !t && !o ? null : s.createElement(J.div, { ref: mt([n, r]), ...a, "cmdk-separator": "", role: "separator" });
|
|
1396
|
-
}),
|
|
1396
|
+
}), wc = s.forwardRef((e, r) => {
|
|
1397
1397
|
let { onValueChange: t, ...a } = e, n = e.value != null, o = Kr(), l = He((f) => f.search), c = He((f) => f.value), d = yt(), m = s.useMemo(() => {
|
|
1398
1398
|
var f;
|
|
1399
1399
|
let p = (f = d.listInnerRef.current) == null ? void 0 : f.querySelector(`${Gr}[${Ue}="${encodeURIComponent(c)}"]`);
|
|
@@ -1404,7 +1404,7 @@ var vc = vr.exports, nt = '[cmdk-group=""]', cr = '[cmdk-group-items=""]', hc =
|
|
|
1404
1404
|
}, [e.value]), s.createElement(J.input, { ref: r, ...a, "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": m, id: d.inputId, type: "text", value: n ? e.value : l, onChange: (f) => {
|
|
1405
1405
|
n || o.setState("search", f.target.value), t == null || t(f.target.value);
|
|
1406
1406
|
} });
|
|
1407
|
-
}),
|
|
1407
|
+
}), Sc = s.forwardRef((e, r) => {
|
|
1408
1408
|
let { children: t, label: a = "Suggestions", ...n } = e, o = s.useRef(null), l = s.useRef(null), c = yt();
|
|
1409
1409
|
return s.useEffect(() => {
|
|
1410
1410
|
if (l.current && o.current) {
|
|
@@ -1419,28 +1419,28 @@ var vc = vr.exports, nt = '[cmdk-group=""]', cr = '[cmdk-group-items=""]', hc =
|
|
|
1419
1419
|
};
|
|
1420
1420
|
}
|
|
1421
1421
|
}, []), s.createElement(J.div, { ref: mt([o, r]), ...n, "cmdk-list": "", role: "listbox", "aria-label": a, id: c.listId }, Kt(e, (d) => s.createElement("div", { ref: mt([l, c.listInnerRef]), "cmdk-list-sizer": "" }, d)));
|
|
1422
|
-
}),
|
|
1422
|
+
}), _c = s.forwardRef((e, r) => {
|
|
1423
1423
|
let { open: t, onOpenChange: a, overlayClassName: n, contentClassName: o, container: l, ...c } = e;
|
|
1424
|
-
return s.createElement(
|
|
1425
|
-
}),
|
|
1424
|
+
return s.createElement(Ar, { open: t, onOpenChange: a }, s.createElement(Rr, { container: l }, s.createElement(Vt, { "cmdk-overlay": "", className: n }), s.createElement(Ft, { "aria-label": e.label, "cmdk-dialog": "", className: o }, s.createElement(Zn, { ref: r, ...c }))));
|
|
1425
|
+
}), Cc = s.forwardRef((e, r) => He((t) => t.filtered.count === 0) ? s.createElement(J.div, { ref: r, ...e, "cmdk-empty": "", role: "presentation" }) : null), Nc = s.forwardRef((e, r) => {
|
|
1426
1426
|
let { progress: t, children: a, label: n = "Loading...", ...o } = e;
|
|
1427
1427
|
return s.createElement(J.div, { ref: r, ...o, "cmdk-loading": "", role: "progressbar", "aria-valuenow": t, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": n }, Kt(e, (l) => s.createElement("div", { "aria-hidden": !0 }, l)));
|
|
1428
|
-
}), Se = Object.assign(
|
|
1429
|
-
function
|
|
1428
|
+
}), Se = Object.assign(Zn, { List: Sc, Item: xc, Input: wc, Group: yc, Separator: bc, Dialog: _c, Empty: Cc, Loading: Nc });
|
|
1429
|
+
function Ec(e, r) {
|
|
1430
1430
|
let t = e.nextElementSibling;
|
|
1431
1431
|
for (; t; ) {
|
|
1432
1432
|
if (t.matches(r)) return t;
|
|
1433
1433
|
t = t.nextElementSibling;
|
|
1434
1434
|
}
|
|
1435
1435
|
}
|
|
1436
|
-
function
|
|
1436
|
+
function Ac(e, r) {
|
|
1437
1437
|
let t = e.previousElementSibling;
|
|
1438
1438
|
for (; t; ) {
|
|
1439
1439
|
if (t.matches(r)) return t;
|
|
1440
1440
|
t = t.previousElementSibling;
|
|
1441
1441
|
}
|
|
1442
1442
|
}
|
|
1443
|
-
function
|
|
1443
|
+
function Jn(e) {
|
|
1444
1444
|
let r = s.useRef(e);
|
|
1445
1445
|
return Ke(() => {
|
|
1446
1446
|
r.current = e;
|
|
@@ -1460,9 +1460,9 @@ function mt(e) {
|
|
|
1460
1460
|
}
|
|
1461
1461
|
function He(e) {
|
|
1462
1462
|
let r = Kr(), t = () => e(r.snapshot());
|
|
1463
|
-
return
|
|
1463
|
+
return gc.useSyncExternalStore(r.subscribe, t, t);
|
|
1464
1464
|
}
|
|
1465
|
-
function
|
|
1465
|
+
function Qn(e, r, t, a = []) {
|
|
1466
1466
|
let n = s.useRef(), o = yt();
|
|
1467
1467
|
return Ke(() => {
|
|
1468
1468
|
var l;
|
|
@@ -1476,7 +1476,7 @@ function eo(e, r, t, a = []) {
|
|
|
1476
1476
|
o.value(e, c, d), (l = r.current) == null || l.setAttribute(Ue, c), n.current = c;
|
|
1477
1477
|
}), n;
|
|
1478
1478
|
}
|
|
1479
|
-
var
|
|
1479
|
+
var Rc = () => {
|
|
1480
1480
|
let [e, r] = s.useState(), t = Je(() => /* @__PURE__ */ new Map());
|
|
1481
1481
|
return Ke(() => {
|
|
1482
1482
|
t.current.forEach((a) => a()), t.current = /* @__PURE__ */ new Map();
|
|
@@ -1484,15 +1484,15 @@ var Ic = () => {
|
|
|
1484
1484
|
t.current.set(a, n), r({});
|
|
1485
1485
|
};
|
|
1486
1486
|
};
|
|
1487
|
-
function
|
|
1487
|
+
function Ic(e) {
|
|
1488
1488
|
let r = e.type;
|
|
1489
1489
|
return typeof r == "function" ? r(e.props) : "render" in r ? r.render(e.props) : e;
|
|
1490
1490
|
}
|
|
1491
1491
|
function Kt({ asChild: e, children: r }, t) {
|
|
1492
|
-
return e && s.isValidElement(r) ? s.cloneElement(
|
|
1492
|
+
return e && s.isValidElement(r) ? s.cloneElement(Ic(r), { ref: r.ref }, t(r.props.children)) : t(r);
|
|
1493
1493
|
}
|
|
1494
|
-
var
|
|
1495
|
-
const Hr =
|
|
1494
|
+
var Mc = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
|
|
1495
|
+
const Hr = xe(({ className: e, ...r }, t) => /* @__PURE__ */ i.jsx(
|
|
1496
1496
|
Se,
|
|
1497
1497
|
{
|
|
1498
1498
|
ref: t,
|
|
@@ -1504,10 +1504,10 @@ const Hr = he(({ className: e, ...r }, t) => /* @__PURE__ */ i.jsx(
|
|
|
1504
1504
|
}
|
|
1505
1505
|
));
|
|
1506
1506
|
Hr.displayName = Se.displayName;
|
|
1507
|
-
const
|
|
1507
|
+
const bf = ({ children: e, ...r }) => /* @__PURE__ */ i.jsx(vl, { ...r, children: /* @__PURE__ */ i.jsx(hl, { className: "al-overflow-hidden al-p-0 al-shadow-lg", children: /* @__PURE__ */ i.jsx(Hr, { 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 }) }) }), eo = xe(({ className: e, ...r }, t) => (
|
|
1508
1508
|
// eslint-disable-next-line react/no-unknown-property
|
|
1509
1509
|
/* @__PURE__ */ i.jsxs("div", { className: "al-flex al-items-center al-border-b al-px-3", "cmdk-input-wrapper": "", children: [
|
|
1510
|
-
/* @__PURE__ */ i.jsx(
|
|
1510
|
+
/* @__PURE__ */ i.jsx(fl, { className: "al-mr-2 al-h-4 al-w-4 al-shrink-0 al-opacity-50" }),
|
|
1511
1511
|
/* @__PURE__ */ i.jsx(
|
|
1512
1512
|
Se.Input,
|
|
1513
1513
|
{
|
|
@@ -1521,8 +1521,8 @@ const Sf = ({ children: e, ...r }) => /* @__PURE__ */ i.jsx(hl, { ...r, children
|
|
|
1521
1521
|
)
|
|
1522
1522
|
] })
|
|
1523
1523
|
));
|
|
1524
|
-
|
|
1525
|
-
const
|
|
1524
|
+
eo.displayName = Se.Input.displayName;
|
|
1525
|
+
const to = xe(({ className: e, ...r }, t) => /* @__PURE__ */ i.jsx(
|
|
1526
1526
|
Se.List,
|
|
1527
1527
|
{
|
|
1528
1528
|
ref: t,
|
|
@@ -1530,10 +1530,10 @@ const ro = he(({ className: e, ...r }, t) => /* @__PURE__ */ i.jsx(
|
|
|
1530
1530
|
...r
|
|
1531
1531
|
}
|
|
1532
1532
|
));
|
|
1533
|
-
|
|
1534
|
-
const
|
|
1535
|
-
|
|
1536
|
-
const
|
|
1533
|
+
to.displayName = Se.List.displayName;
|
|
1534
|
+
const ro = xe((e, r) => /* @__PURE__ */ i.jsx(Se.Empty, { ref: r, className: "al-py-6 al-text-center al-text-sm", ...e }));
|
|
1535
|
+
ro.displayName = Se.Empty.displayName;
|
|
1536
|
+
const ao = xe(({ className: e, ...r }, t) => /* @__PURE__ */ i.jsx(
|
|
1537
1537
|
Se.Group,
|
|
1538
1538
|
{
|
|
1539
1539
|
ref: t,
|
|
@@ -1544,8 +1544,8 @@ const no = he(({ className: e, ...r }, t) => /* @__PURE__ */ i.jsx(
|
|
|
1544
1544
|
...r
|
|
1545
1545
|
}
|
|
1546
1546
|
));
|
|
1547
|
-
|
|
1548
|
-
const
|
|
1547
|
+
ao.displayName = Se.Group.displayName;
|
|
1548
|
+
const Dc = xe(({ className: e, ...r }, t) => /* @__PURE__ */ i.jsx(
|
|
1549
1549
|
Se.Separator,
|
|
1550
1550
|
{
|
|
1551
1551
|
ref: t,
|
|
@@ -1553,8 +1553,8 @@ const Tc = he(({ className: e, ...r }, t) => /* @__PURE__ */ i.jsx(
|
|
|
1553
1553
|
...r
|
|
1554
1554
|
}
|
|
1555
1555
|
));
|
|
1556
|
-
|
|
1557
|
-
const
|
|
1556
|
+
Dc.displayName = Se.Separator.displayName;
|
|
1557
|
+
const no = xe(({ className: e, ...r }, t) => /* @__PURE__ */ i.jsx(
|
|
1558
1558
|
Se.Item,
|
|
1559
1559
|
{
|
|
1560
1560
|
ref: t,
|
|
@@ -1566,16 +1566,16 @@ const oo = he(({ className: e, ...r }, t) => /* @__PURE__ */ i.jsx(
|
|
|
1566
1566
|
...r
|
|
1567
1567
|
}
|
|
1568
1568
|
));
|
|
1569
|
-
|
|
1570
|
-
const
|
|
1569
|
+
no.displayName = Se.Item.displayName;
|
|
1570
|
+
const Tc = ({ className: e, ...r }) => /* @__PURE__ */ i.jsx(
|
|
1571
1571
|
"span",
|
|
1572
1572
|
{
|
|
1573
1573
|
className: j("al-ml-auto al-text-xs al-tracking-widest al-text-muted-foreground", e),
|
|
1574
1574
|
...r
|
|
1575
1575
|
}
|
|
1576
1576
|
);
|
|
1577
|
-
|
|
1578
|
-
const
|
|
1577
|
+
Tc.displayName = "CommandShortcut";
|
|
1578
|
+
const jc = ze(
|
|
1579
1579
|
"al-inline-flex al-items-center al-rounded-full al-border al-px-2.5 al-py-0.5 al-text-xs al-font-semibold al-transition-colors focus:al-outline-none focus:al-ring-2 focus:al-ring-ring focus:al-ring-offset-2",
|
|
1580
1580
|
{
|
|
1581
1581
|
variants: {
|
|
@@ -1598,7 +1598,7 @@ const Pc = ze(
|
|
|
1598
1598
|
}
|
|
1599
1599
|
}
|
|
1600
1600
|
);
|
|
1601
|
-
function
|
|
1601
|
+
function wf({
|
|
1602
1602
|
className: e,
|
|
1603
1603
|
variant: r,
|
|
1604
1604
|
interactive: t = !0,
|
|
@@ -1615,7 +1615,7 @@ function _f({
|
|
|
1615
1615
|
return /* @__PURE__ */ i.jsx(
|
|
1616
1616
|
"div",
|
|
1617
1617
|
{
|
|
1618
|
-
className: j(
|
|
1618
|
+
className: j(jc({ variant: r, interactive: t }), e),
|
|
1619
1619
|
role: t ? "button" : o,
|
|
1620
1620
|
tabIndex: t ? 0 : l,
|
|
1621
1621
|
onKeyDown: m,
|
|
@@ -1626,7 +1626,7 @@ function _f({
|
|
|
1626
1626
|
}
|
|
1627
1627
|
);
|
|
1628
1628
|
}
|
|
1629
|
-
var Wr = "Collapsible", [
|
|
1629
|
+
var Wr = "Collapsible", [Pc, oo] = qe(Wr), [Oc, zr] = Pc(Wr), so = s.forwardRef(
|
|
1630
1630
|
(e, r) => {
|
|
1631
1631
|
const {
|
|
1632
1632
|
__scopeCollapsible: t,
|
|
@@ -1645,7 +1645,7 @@ var Wr = "Collapsible", [kc, so] = qe(Wr), [Oc, zr] = kc(Wr), lo = s.forwardRef(
|
|
|
1645
1645
|
{
|
|
1646
1646
|
scope: t,
|
|
1647
1647
|
disabled: o,
|
|
1648
|
-
contentId:
|
|
1648
|
+
contentId: he(),
|
|
1649
1649
|
open: d,
|
|
1650
1650
|
onOpenToggle: s.useCallback(() => m((f) => !f), [m]),
|
|
1651
1651
|
children: /* @__PURE__ */ i.jsx(
|
|
@@ -1661,10 +1661,10 @@ var Wr = "Collapsible", [kc, so] = qe(Wr), [Oc, zr] = kc(Wr), lo = s.forwardRef(
|
|
|
1661
1661
|
);
|
|
1662
1662
|
}
|
|
1663
1663
|
);
|
|
1664
|
-
|
|
1665
|
-
var
|
|
1664
|
+
so.displayName = Wr;
|
|
1665
|
+
var lo = "CollapsibleTrigger", io = s.forwardRef(
|
|
1666
1666
|
(e, r) => {
|
|
1667
|
-
const { __scopeCollapsible: t, ...a } = e, n = zr(
|
|
1667
|
+
const { __scopeCollapsible: t, ...a } = e, n = zr(lo, t);
|
|
1668
1668
|
return /* @__PURE__ */ i.jsx(
|
|
1669
1669
|
J.button,
|
|
1670
1670
|
{
|
|
@@ -1681,16 +1681,16 @@ var io = "CollapsibleTrigger", co = s.forwardRef(
|
|
|
1681
1681
|
);
|
|
1682
1682
|
}
|
|
1683
1683
|
);
|
|
1684
|
-
|
|
1685
|
-
var qr = "CollapsibleContent",
|
|
1684
|
+
io.displayName = lo;
|
|
1685
|
+
var qr = "CollapsibleContent", co = s.forwardRef(
|
|
1686
1686
|
(e, r) => {
|
|
1687
1687
|
const { forceMount: t, ...a } = e, n = zr(qr, e.__scopeCollapsible);
|
|
1688
|
-
return /* @__PURE__ */ i.jsx(et, { present: t || n.open, children: ({ present: o }) => /* @__PURE__ */ i.jsx(
|
|
1688
|
+
return /* @__PURE__ */ i.jsx(et, { present: t || n.open, children: ({ present: o }) => /* @__PURE__ */ i.jsx(kc, { ...a, ref: r, present: o }) });
|
|
1689
1689
|
}
|
|
1690
1690
|
);
|
|
1691
|
-
|
|
1692
|
-
var
|
|
1693
|
-
const { __scopeCollapsible: t, present: a, children: n, ...o } = e, l = zr(qr, t), [c, d] = s.useState(a), m = s.useRef(null), f = ge(r, m), p = s.useRef(0), v = p.current,
|
|
1691
|
+
co.displayName = qr;
|
|
1692
|
+
var kc = s.forwardRef((e, r) => {
|
|
1693
|
+
const { __scopeCollapsible: t, present: a, children: n, ...o } = e, l = zr(qr, t), [c, d] = s.useState(a), m = s.useRef(null), f = ge(r, m), p = s.useRef(0), v = p.current, S = s.useRef(0), _ = S.current, y = l.open || c, C = s.useRef(y), I = s.useRef(void 0);
|
|
1694
1694
|
return s.useEffect(() => {
|
|
1695
1695
|
const h = requestAnimationFrame(() => C.current = !1);
|
|
1696
1696
|
return () => cancelAnimationFrame(h);
|
|
@@ -1702,7 +1702,7 @@ var Vc = s.forwardRef((e, r) => {
|
|
|
1702
1702
|
animationName: h.style.animationName
|
|
1703
1703
|
}, h.style.transitionDuration = "0s", h.style.animationName = "none";
|
|
1704
1704
|
const D = h.getBoundingClientRect();
|
|
1705
|
-
p.current = D.height,
|
|
1705
|
+
p.current = D.height, S.current = D.width, C.current || (h.style.transitionDuration = I.current.transitionDuration, h.style.animationName = I.current.animationName), d(a);
|
|
1706
1706
|
}
|
|
1707
1707
|
}, [l.open, a]), /* @__PURE__ */ i.jsx(
|
|
1708
1708
|
J.div,
|
|
@@ -1725,20 +1725,20 @@ var Vc = s.forwardRef((e, r) => {
|
|
|
1725
1725
|
function Yr(e) {
|
|
1726
1726
|
return e ? "open" : "closed";
|
|
1727
1727
|
}
|
|
1728
|
-
var
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
]), Zr =
|
|
1728
|
+
var Vc = so, Fc = io, Lc = co, Pe = "Accordion", $c = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [Xr, Bc, Uc] = Dr(Pe), [Ht, Sf] = qe(Pe, [
|
|
1729
|
+
Uc,
|
|
1730
|
+
oo
|
|
1731
|
+
]), Zr = oo(), uo = G.forwardRef(
|
|
1732
1732
|
(e, r) => {
|
|
1733
1733
|
const { type: t, ...a } = e, n = a, o = a;
|
|
1734
|
-
return /* @__PURE__ */ i.jsx(Xr.Provider, { scope: e.__scopeAccordion, children: t === "multiple" ? /* @__PURE__ */ i.jsx(
|
|
1734
|
+
return /* @__PURE__ */ i.jsx(Xr.Provider, { scope: e.__scopeAccordion, children: t === "multiple" ? /* @__PURE__ */ i.jsx(Wc, { ...o, ref: r }) : /* @__PURE__ */ i.jsx(Hc, { ...n, ref: r }) });
|
|
1735
1735
|
}
|
|
1736
1736
|
);
|
|
1737
|
-
|
|
1738
|
-
var [
|
|
1737
|
+
uo.displayName = Pe;
|
|
1738
|
+
var [fo, Gc] = Ht(Pe), [po, Kc] = Ht(
|
|
1739
1739
|
Pe,
|
|
1740
1740
|
{ collapsible: !1 }
|
|
1741
|
-
),
|
|
1741
|
+
), Hc = G.forwardRef(
|
|
1742
1742
|
(e, r) => {
|
|
1743
1743
|
const {
|
|
1744
1744
|
value: t,
|
|
@@ -1753,17 +1753,17 @@ var [po, Kc] = Ht(Pe), [mo, Hc] = Ht(
|
|
|
1753
1753
|
onChange: n
|
|
1754
1754
|
});
|
|
1755
1755
|
return /* @__PURE__ */ i.jsx(
|
|
1756
|
-
|
|
1756
|
+
fo,
|
|
1757
1757
|
{
|
|
1758
1758
|
scope: e.__scopeAccordion,
|
|
1759
1759
|
value: c ? [c] : [],
|
|
1760
1760
|
onItemOpen: d,
|
|
1761
1761
|
onItemClose: G.useCallback(() => o && d(""), [o, d]),
|
|
1762
|
-
children: /* @__PURE__ */ i.jsx(
|
|
1762
|
+
children: /* @__PURE__ */ i.jsx(po, { scope: e.__scopeAccordion, collapsible: o, children: /* @__PURE__ */ i.jsx(mo, { ...l, ref: r }) })
|
|
1763
1763
|
}
|
|
1764
1764
|
);
|
|
1765
1765
|
}
|
|
1766
|
-
),
|
|
1766
|
+
), Wc = G.forwardRef((e, r) => {
|
|
1767
1767
|
const {
|
|
1768
1768
|
value: t,
|
|
1769
1769
|
defaultValue: a,
|
|
@@ -1782,33 +1782,33 @@ var [po, Kc] = Ht(Pe), [mo, Hc] = Ht(
|
|
|
1782
1782
|
[c]
|
|
1783
1783
|
);
|
|
1784
1784
|
return /* @__PURE__ */ i.jsx(
|
|
1785
|
-
|
|
1785
|
+
fo,
|
|
1786
1786
|
{
|
|
1787
1787
|
scope: e.__scopeAccordion,
|
|
1788
1788
|
value: l,
|
|
1789
1789
|
onItemOpen: d,
|
|
1790
1790
|
onItemClose: m,
|
|
1791
|
-
children: /* @__PURE__ */ i.jsx(
|
|
1791
|
+
children: /* @__PURE__ */ i.jsx(po, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ i.jsx(mo, { ...o, ref: r }) })
|
|
1792
1792
|
}
|
|
1793
1793
|
);
|
|
1794
|
-
}), [
|
|
1794
|
+
}), [zc, Wt] = Ht(Pe), mo = G.forwardRef(
|
|
1795
1795
|
(e, r) => {
|
|
1796
|
-
const { __scopeAccordion: t, disabled: a, dir: n, orientation: o = "vertical", ...l } = e, c = G.useRef(null), d = ge(c, r), m =
|
|
1796
|
+
const { __scopeAccordion: t, disabled: a, dir: n, orientation: o = "vertical", ...l } = e, c = G.useRef(null), d = ge(c, r), m = Bc(t), p = Ut(n) === "ltr", v = L(e.onKeyDown, (S) => {
|
|
1797
1797
|
var de;
|
|
1798
|
-
if (
|
|
1799
|
-
const _ =
|
|
1798
|
+
if (!$c.includes(S.key)) return;
|
|
1799
|
+
const _ = S.target, y = m().filter((Y) => {
|
|
1800
1800
|
var Q;
|
|
1801
1801
|
return !((Q = Y.ref.current) != null && Q.disabled);
|
|
1802
1802
|
}), C = y.findIndex((Y) => Y.ref.current === _), I = y.length;
|
|
1803
1803
|
if (C === -1) return;
|
|
1804
|
-
|
|
1804
|
+
S.preventDefault();
|
|
1805
1805
|
let h = C;
|
|
1806
1806
|
const D = 0, H = I - 1, F = () => {
|
|
1807
1807
|
h = C + 1, h > H && (h = D);
|
|
1808
1808
|
}, W = () => {
|
|
1809
1809
|
h = C - 1, h < D && (h = H);
|
|
1810
1810
|
};
|
|
1811
|
-
switch (
|
|
1811
|
+
switch (S.key) {
|
|
1812
1812
|
case "Home":
|
|
1813
1813
|
h = D;
|
|
1814
1814
|
break;
|
|
@@ -1828,11 +1828,11 @@ var [po, Kc] = Ht(Pe), [mo, Hc] = Ht(
|
|
|
1828
1828
|
o === "vertical" && W();
|
|
1829
1829
|
break;
|
|
1830
1830
|
}
|
|
1831
|
-
const
|
|
1832
|
-
(de = y[
|
|
1831
|
+
const O = h % I;
|
|
1832
|
+
(de = y[O].ref.current) == null || de.focus();
|
|
1833
1833
|
});
|
|
1834
1834
|
return /* @__PURE__ */ i.jsx(
|
|
1835
|
-
|
|
1835
|
+
zc,
|
|
1836
1836
|
{
|
|
1837
1837
|
scope: t,
|
|
1838
1838
|
disabled: a,
|
|
@@ -1850,21 +1850,21 @@ var [po, Kc] = Ht(Pe), [mo, Hc] = Ht(
|
|
|
1850
1850
|
}
|
|
1851
1851
|
);
|
|
1852
1852
|
}
|
|
1853
|
-
), Mt = "AccordionItem", [
|
|
1853
|
+
), Mt = "AccordionItem", [qc, Jr] = Ht(Mt), go = G.forwardRef(
|
|
1854
1854
|
(e, r) => {
|
|
1855
|
-
const { __scopeAccordion: t, value: a, ...n } = e, o = Wt(Mt, t), l =
|
|
1855
|
+
const { __scopeAccordion: t, value: a, ...n } = e, o = Wt(Mt, t), l = Gc(Mt, t), c = Zr(t), d = he(), m = a && l.value.includes(a) || !1, f = o.disabled || e.disabled;
|
|
1856
1856
|
return /* @__PURE__ */ i.jsx(
|
|
1857
|
-
|
|
1857
|
+
qc,
|
|
1858
1858
|
{
|
|
1859
1859
|
scope: t,
|
|
1860
1860
|
open: m,
|
|
1861
1861
|
disabled: f,
|
|
1862
1862
|
triggerId: d,
|
|
1863
1863
|
children: /* @__PURE__ */ i.jsx(
|
|
1864
|
-
|
|
1864
|
+
Vc,
|
|
1865
1865
|
{
|
|
1866
1866
|
"data-orientation": o.orientation,
|
|
1867
|
-
"data-state":
|
|
1867
|
+
"data-state": wo(m),
|
|
1868
1868
|
...c,
|
|
1869
1869
|
...n,
|
|
1870
1870
|
ref: r,
|
|
@@ -1879,15 +1879,15 @@ var [po, Kc] = Ht(Pe), [mo, Hc] = Ht(
|
|
|
1879
1879
|
);
|
|
1880
1880
|
}
|
|
1881
1881
|
);
|
|
1882
|
-
|
|
1883
|
-
var
|
|
1882
|
+
go.displayName = Mt;
|
|
1883
|
+
var vo = "AccordionHeader", ho = G.forwardRef(
|
|
1884
1884
|
(e, r) => {
|
|
1885
|
-
const { __scopeAccordion: t, ...a } = e, n = Wt(Pe, t), o = Jr(
|
|
1885
|
+
const { __scopeAccordion: t, ...a } = e, n = Wt(Pe, t), o = Jr(vo, t);
|
|
1886
1886
|
return /* @__PURE__ */ i.jsx(
|
|
1887
1887
|
J.h3,
|
|
1888
1888
|
{
|
|
1889
1889
|
"data-orientation": n.orientation,
|
|
1890
|
-
"data-state":
|
|
1890
|
+
"data-state": wo(o.open),
|
|
1891
1891
|
"data-disabled": o.disabled ? "" : void 0,
|
|
1892
1892
|
...a,
|
|
1893
1893
|
ref: r
|
|
@@ -1895,12 +1895,12 @@ var ho = "AccordionHeader", xo = G.forwardRef(
|
|
|
1895
1895
|
);
|
|
1896
1896
|
}
|
|
1897
1897
|
);
|
|
1898
|
-
|
|
1899
|
-
var
|
|
1898
|
+
ho.displayName = vo;
|
|
1899
|
+
var hr = "AccordionTrigger", xo = G.forwardRef(
|
|
1900
1900
|
(e, r) => {
|
|
1901
|
-
const { __scopeAccordion: t, ...a } = e, n = Wt(Pe, t), o = Jr(
|
|
1901
|
+
const { __scopeAccordion: t, ...a } = e, n = Wt(Pe, t), o = Jr(hr, t), l = Kc(hr, t), c = Zr(t);
|
|
1902
1902
|
return /* @__PURE__ */ i.jsx(Xr.ItemSlot, { scope: t, children: /* @__PURE__ */ i.jsx(
|
|
1903
|
-
|
|
1903
|
+
Fc,
|
|
1904
1904
|
{
|
|
1905
1905
|
"aria-disabled": o.open && !l.collapsible || void 0,
|
|
1906
1906
|
"data-orientation": n.orientation,
|
|
@@ -1912,12 +1912,12 @@ var xr = "AccordionTrigger", yo = G.forwardRef(
|
|
|
1912
1912
|
) });
|
|
1913
1913
|
}
|
|
1914
1914
|
);
|
|
1915
|
-
|
|
1916
|
-
var
|
|
1915
|
+
xo.displayName = hr;
|
|
1916
|
+
var yo = "AccordionContent", bo = G.forwardRef(
|
|
1917
1917
|
(e, r) => {
|
|
1918
|
-
const { __scopeAccordion: t, ...a } = e, n = Wt(Pe, t), o = Jr(
|
|
1918
|
+
const { __scopeAccordion: t, ...a } = e, n = Wt(Pe, t), o = Jr(yo, t), l = Zr(t);
|
|
1919
1919
|
return /* @__PURE__ */ i.jsx(
|
|
1920
|
-
|
|
1920
|
+
Lc,
|
|
1921
1921
|
{
|
|
1922
1922
|
role: "region",
|
|
1923
1923
|
"aria-labelledby": o.triggerId,
|
|
@@ -1934,15 +1934,15 @@ var bo = "AccordionContent", wo = G.forwardRef(
|
|
|
1934
1934
|
);
|
|
1935
1935
|
}
|
|
1936
1936
|
);
|
|
1937
|
-
|
|
1938
|
-
function
|
|
1937
|
+
bo.displayName = yo;
|
|
1938
|
+
function wo(e) {
|
|
1939
1939
|
return e ? "open" : "closed";
|
|
1940
1940
|
}
|
|
1941
|
-
var Xc =
|
|
1942
|
-
const
|
|
1943
|
-
|
|
1944
|
-
const
|
|
1945
|
-
|
|
1941
|
+
var Yc = uo, Xc = go, Zc = ho, Jc = xo, Qc = bo;
|
|
1942
|
+
const _f = Yc, ed = s.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i.jsx(Xc, { ref: t, className: j("al-border-b", e), ...r }));
|
|
1943
|
+
ed.displayName = "AccordionItem";
|
|
1944
|
+
const td = s.forwardRef(({ className: e, children: r, ...t }, a) => /* @__PURE__ */ i.jsx(Zc, { className: "al-flex", children: /* @__PURE__ */ i.jsxs(
|
|
1945
|
+
Jc,
|
|
1946
1946
|
{
|
|
1947
1947
|
ref: a,
|
|
1948
1948
|
className: j(
|
|
@@ -1952,13 +1952,13 @@ const rd = s.forwardRef(({ className: e, children: r, ...t }, a) => /* @__PURE__
|
|
|
1952
1952
|
...t,
|
|
1953
1953
|
children: [
|
|
1954
1954
|
r,
|
|
1955
|
-
/* @__PURE__ */ i.jsx(
|
|
1955
|
+
/* @__PURE__ */ i.jsx(Er, { className: "al-h-4 al-w-4 al-shrink-0 al-transition-transform al-duration-200" })
|
|
1956
1956
|
]
|
|
1957
1957
|
}
|
|
1958
1958
|
) }));
|
|
1959
|
-
|
|
1960
|
-
const
|
|
1961
|
-
|
|
1959
|
+
td.displayName = "AccordionTrigger";
|
|
1960
|
+
const rd = s.forwardRef(({ className: e, children: r, ...t }, a) => /* @__PURE__ */ i.jsx(
|
|
1961
|
+
Qc,
|
|
1962
1962
|
{
|
|
1963
1963
|
ref: a,
|
|
1964
1964
|
className: j(
|
|
@@ -1969,28 +1969,28 @@ const ad = s.forwardRef(({ className: e, children: r, ...t }, a) => /* @__PURE__
|
|
|
1969
1969
|
children: /* @__PURE__ */ i.jsx("div", { className: "al-pb-4 al-pt-0", children: r })
|
|
1970
1970
|
}
|
|
1971
1971
|
));
|
|
1972
|
-
|
|
1973
|
-
const
|
|
1974
|
-
let
|
|
1975
|
-
function
|
|
1976
|
-
return
|
|
1972
|
+
rd.displayName = "AccordionContent";
|
|
1973
|
+
const ad = 1, nd = 1e6;
|
|
1974
|
+
let cr = 0;
|
|
1975
|
+
function od() {
|
|
1976
|
+
return cr = (cr + 1) % Number.MAX_SAFE_INTEGER, cr.toString();
|
|
1977
1977
|
}
|
|
1978
|
-
const
|
|
1979
|
-
if (
|
|
1978
|
+
const dr = /* @__PURE__ */ new Map(), ha = (e) => {
|
|
1979
|
+
if (dr.has(e))
|
|
1980
1980
|
return;
|
|
1981
1981
|
const r = setTimeout(() => {
|
|
1982
|
-
|
|
1982
|
+
dr.delete(e), ct({
|
|
1983
1983
|
type: "REMOVE_TOAST",
|
|
1984
1984
|
toastId: e
|
|
1985
1985
|
});
|
|
1986
|
-
},
|
|
1987
|
-
|
|
1988
|
-
},
|
|
1986
|
+
}, nd);
|
|
1987
|
+
dr.set(e, r);
|
|
1988
|
+
}, sd = (e, r) => {
|
|
1989
1989
|
switch (r.type) {
|
|
1990
1990
|
case "ADD_TOAST":
|
|
1991
1991
|
return {
|
|
1992
1992
|
...e,
|
|
1993
|
-
toasts: [r.toast, ...e.toasts].slice(0,
|
|
1993
|
+
toasts: [r.toast, ...e.toasts].slice(0, ad)
|
|
1994
1994
|
};
|
|
1995
1995
|
case "UPDATE_TOAST":
|
|
1996
1996
|
return {
|
|
@@ -1999,8 +1999,8 @@ const ur = /* @__PURE__ */ new Map(), xa = (e) => {
|
|
|
1999
1999
|
};
|
|
2000
2000
|
case "DISMISS_TOAST": {
|
|
2001
2001
|
const { toastId: t } = r;
|
|
2002
|
-
return t ?
|
|
2003
|
-
|
|
2002
|
+
return t ? ha(t) : e.toasts.forEach((a) => {
|
|
2003
|
+
ha(a.id);
|
|
2004
2004
|
}), {
|
|
2005
2005
|
...e,
|
|
2006
2006
|
toasts: e.toasts.map(
|
|
@@ -2023,12 +2023,12 @@ const ur = /* @__PURE__ */ new Map(), xa = (e) => {
|
|
|
2023
2023
|
}, Nt = [];
|
|
2024
2024
|
let Et = { toasts: [] };
|
|
2025
2025
|
function ct(e) {
|
|
2026
|
-
Et =
|
|
2026
|
+
Et = sd(Et, e), Nt.forEach((r) => {
|
|
2027
2027
|
r(Et);
|
|
2028
2028
|
});
|
|
2029
2029
|
}
|
|
2030
|
-
function
|
|
2031
|
-
const r =
|
|
2030
|
+
function ld({ ...e }) {
|
|
2031
|
+
const r = od(), t = (n) => ct({
|
|
2032
2032
|
type: "UPDATE_TOAST",
|
|
2033
2033
|
toast: { ...n, id: r }
|
|
2034
2034
|
}), a = () => ct({ type: "DISMISS_TOAST", toastId: r });
|
|
@@ -2048,18 +2048,18 @@ function id({ ...e }) {
|
|
|
2048
2048
|
update: t
|
|
2049
2049
|
};
|
|
2050
2050
|
}
|
|
2051
|
-
function
|
|
2051
|
+
function Cf() {
|
|
2052
2052
|
const [e, r] = s.useState(Et);
|
|
2053
2053
|
return s.useEffect(() => (Nt.push(r), () => {
|
|
2054
2054
|
const t = Nt.indexOf(r);
|
|
2055
2055
|
t > -1 && Nt.splice(t, 1);
|
|
2056
2056
|
}), [e]), {
|
|
2057
2057
|
...e,
|
|
2058
|
-
toast:
|
|
2058
|
+
toast: ld,
|
|
2059
2059
|
dismiss: (t) => ct({ type: "DISMISS_TOAST", toastId: t })
|
|
2060
2060
|
};
|
|
2061
2061
|
}
|
|
2062
|
-
const
|
|
2062
|
+
const id = ze(
|
|
2063
2063
|
j(
|
|
2064
2064
|
"al-relative al-w-full al-rounded-lg al-border al-p-4",
|
|
2065
2065
|
"[&>svg~*]:al-pl-7 [&>svg+div]:al-translate-y-[-3px] [&>svg]:al-absolute [&>svg]:al-left-4 [&>svg]:al-top-4 [&>svg]:al-text-foreground",
|
|
@@ -2079,7 +2079,7 @@ const cd = ze(
|
|
|
2079
2079
|
variant: "default"
|
|
2080
2080
|
}
|
|
2081
2081
|
}
|
|
2082
|
-
),
|
|
2082
|
+
), cd = (e) => {
|
|
2083
2083
|
switch (e) {
|
|
2084
2084
|
case "destructive":
|
|
2085
2085
|
return "error-alert";
|
|
@@ -2092,18 +2092,18 @@ const cd = ze(
|
|
|
2092
2092
|
default:
|
|
2093
2093
|
return "status-alert";
|
|
2094
2094
|
}
|
|
2095
|
-
},
|
|
2095
|
+
}, dd = s.forwardRef(({ className: e, variant: r, ...t }, a) => /* @__PURE__ */ i.jsx(
|
|
2096
2096
|
"div",
|
|
2097
2097
|
{
|
|
2098
2098
|
ref: a,
|
|
2099
2099
|
role: "alert",
|
|
2100
|
-
"aria-label":
|
|
2101
|
-
className: j(
|
|
2100
|
+
"aria-label": cd(r),
|
|
2101
|
+
className: j(id({ variant: r }), e),
|
|
2102
2102
|
...t
|
|
2103
2103
|
}
|
|
2104
2104
|
));
|
|
2105
|
-
|
|
2106
|
-
const
|
|
2105
|
+
dd.displayName = "Alert";
|
|
2106
|
+
const ud = s.forwardRef(
|
|
2107
2107
|
({ className: e, children: r, ...t }, a) => /* @__PURE__ */ i.jsx(
|
|
2108
2108
|
"h5",
|
|
2109
2109
|
{
|
|
@@ -2114,8 +2114,8 @@ const fd = s.forwardRef(
|
|
|
2114
2114
|
}
|
|
2115
2115
|
)
|
|
2116
2116
|
);
|
|
2117
|
-
|
|
2118
|
-
const
|
|
2117
|
+
ud.displayName = "AlertTitle";
|
|
2118
|
+
const fd = s.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i.jsx(
|
|
2119
2119
|
"div",
|
|
2120
2120
|
{
|
|
2121
2121
|
ref: t,
|
|
@@ -2125,34 +2125,34 @@ const pd = s.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i.jsx(
|
|
|
2125
2125
|
...r
|
|
2126
2126
|
}
|
|
2127
2127
|
));
|
|
2128
|
-
|
|
2129
|
-
var
|
|
2130
|
-
const { children: t, ...a } = e, n = s.Children.toArray(t), o = n.find(
|
|
2128
|
+
fd.displayName = "AlertDescription";
|
|
2129
|
+
var pd = s.forwardRef((e, r) => {
|
|
2130
|
+
const { children: t, ...a } = e, n = s.Children.toArray(t), o = n.find(md);
|
|
2131
2131
|
if (o) {
|
|
2132
2132
|
const l = o.props.children, c = n.map((d) => d === o ? s.Children.count(l) > 1 ? s.Children.only(null) : s.isValidElement(l) ? l.props.children : null : d);
|
|
2133
|
-
return /* @__PURE__ */ i.jsx(
|
|
2133
|
+
return /* @__PURE__ */ i.jsx(xr, { ...a, ref: r, children: s.isValidElement(l) ? s.cloneElement(l, void 0, c) : null });
|
|
2134
2134
|
}
|
|
2135
|
-
return /* @__PURE__ */ i.jsx(
|
|
2135
|
+
return /* @__PURE__ */ i.jsx(xr, { ...a, ref: r, children: t });
|
|
2136
2136
|
});
|
|
2137
|
-
|
|
2138
|
-
var
|
|
2137
|
+
pd.displayName = "Slot";
|
|
2138
|
+
var xr = s.forwardRef((e, r) => {
|
|
2139
2139
|
const { children: t, ...a } = e;
|
|
2140
2140
|
if (s.isValidElement(t)) {
|
|
2141
|
-
const n =
|
|
2141
|
+
const n = vd(t);
|
|
2142
2142
|
return s.cloneElement(t, {
|
|
2143
|
-
...
|
|
2143
|
+
...gd(a, t.props),
|
|
2144
2144
|
// @ts-ignore
|
|
2145
2145
|
ref: r ? gt(r, n) : n
|
|
2146
2146
|
});
|
|
2147
2147
|
}
|
|
2148
2148
|
return s.Children.count(t) > 1 ? s.Children.only(null) : null;
|
|
2149
2149
|
});
|
|
2150
|
-
|
|
2151
|
-
var
|
|
2152
|
-
function
|
|
2153
|
-
return s.isValidElement(e) && e.type ===
|
|
2150
|
+
xr.displayName = "SlotClone";
|
|
2151
|
+
var So = ({ children: e }) => /* @__PURE__ */ i.jsx(i.Fragment, { children: e });
|
|
2152
|
+
function md(e) {
|
|
2153
|
+
return s.isValidElement(e) && e.type === So;
|
|
2154
2154
|
}
|
|
2155
|
-
function
|
|
2155
|
+
function gd(e, r) {
|
|
2156
2156
|
const t = { ...r };
|
|
2157
2157
|
for (const a in r) {
|
|
2158
2158
|
const n = e[a], o = r[a];
|
|
@@ -2162,47 +2162,47 @@ function vd(e, r) {
|
|
|
2162
2162
|
}
|
|
2163
2163
|
return { ...e, ...t };
|
|
2164
2164
|
}
|
|
2165
|
-
function
|
|
2165
|
+
function vd(e) {
|
|
2166
2166
|
var a, n;
|
|
2167
2167
|
let r = (a = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : a.get, t = r && "isReactWarning" in r && r.isReactWarning;
|
|
2168
2168
|
return t ? e.ref : (r = (n = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : n.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
|
|
2169
2169
|
}
|
|
2170
|
-
var
|
|
2171
|
-
|
|
2172
|
-
]),
|
|
2173
|
-
const { __scopeAlertDialog: r, ...t } = e, a =
|
|
2174
|
-
return /* @__PURE__ */ i.jsx(
|
|
2170
|
+
var _o = "AlertDialog", [hd, Nf] = qe(_o, [
|
|
2171
|
+
Ga
|
|
2172
|
+
]), Oe = Ga(), Co = (e) => {
|
|
2173
|
+
const { __scopeAlertDialog: r, ...t } = e, a = Oe(r);
|
|
2174
|
+
return /* @__PURE__ */ i.jsx(Ar, { ...a, ...t, modal: !0 });
|
|
2175
2175
|
};
|
|
2176
|
-
|
|
2177
|
-
var
|
|
2176
|
+
Co.displayName = _o;
|
|
2177
|
+
var xd = "AlertDialogTrigger", No = s.forwardRef(
|
|
2178
2178
|
(e, r) => {
|
|
2179
|
-
const { __scopeAlertDialog: t, ...a } = e, n =
|
|
2180
|
-
return /* @__PURE__ */ i.jsx(
|
|
2179
|
+
const { __scopeAlertDialog: t, ...a } = e, n = Oe(t);
|
|
2180
|
+
return /* @__PURE__ */ i.jsx(Da, { ...n, ...a, ref: r });
|
|
2181
2181
|
}
|
|
2182
2182
|
);
|
|
2183
|
-
|
|
2184
|
-
var
|
|
2185
|
-
const { __scopeAlertDialog: r, ...t } = e, a =
|
|
2186
|
-
return /* @__PURE__ */ i.jsx(
|
|
2183
|
+
No.displayName = xd;
|
|
2184
|
+
var yd = "AlertDialogPortal", Eo = (e) => {
|
|
2185
|
+
const { __scopeAlertDialog: r, ...t } = e, a = Oe(r);
|
|
2186
|
+
return /* @__PURE__ */ i.jsx(Rr, { ...a, ...t });
|
|
2187
2187
|
};
|
|
2188
|
-
|
|
2189
|
-
var
|
|
2188
|
+
Eo.displayName = yd;
|
|
2189
|
+
var bd = "AlertDialogOverlay", Ao = s.forwardRef(
|
|
2190
2190
|
(e, r) => {
|
|
2191
|
-
const { __scopeAlertDialog: t, ...a } = e, n =
|
|
2191
|
+
const { __scopeAlertDialog: t, ...a } = e, n = Oe(t);
|
|
2192
2192
|
return /* @__PURE__ */ i.jsx(Vt, { ...n, ...a, ref: r });
|
|
2193
2193
|
}
|
|
2194
2194
|
);
|
|
2195
|
-
|
|
2196
|
-
var Qe = "AlertDialogContent", [
|
|
2195
|
+
Ao.displayName = bd;
|
|
2196
|
+
var Qe = "AlertDialogContent", [wd, Sd] = hd(Qe), Ro = s.forwardRef(
|
|
2197
2197
|
(e, r) => {
|
|
2198
|
-
const { __scopeAlertDialog: t, children: a, ...n } = e, o =
|
|
2198
|
+
const { __scopeAlertDialog: t, children: a, ...n } = e, o = Oe(t), l = s.useRef(null), c = ge(r, l), d = s.useRef(null);
|
|
2199
2199
|
return /* @__PURE__ */ i.jsx(
|
|
2200
|
-
|
|
2200
|
+
xl,
|
|
2201
2201
|
{
|
|
2202
2202
|
contentName: Qe,
|
|
2203
|
-
titleName:
|
|
2203
|
+
titleName: Io,
|
|
2204
2204
|
docsSlug: "alert-dialog",
|
|
2205
|
-
children: /* @__PURE__ */ i.jsx(
|
|
2205
|
+
children: /* @__PURE__ */ i.jsx(wd, { scope: t, cancelRef: d, children: /* @__PURE__ */ i.jsxs(
|
|
2206
2206
|
Ft,
|
|
2207
2207
|
{
|
|
2208
2208
|
role: "alertdialog",
|
|
@@ -2216,8 +2216,8 @@ var Qe = "AlertDialogContent", [Sd, _d] = xd(Qe), Io = s.forwardRef(
|
|
|
2216
2216
|
onPointerDownOutside: (m) => m.preventDefault(),
|
|
2217
2217
|
onInteractOutside: (m) => m.preventDefault(),
|
|
2218
2218
|
children: [
|
|
2219
|
-
/* @__PURE__ */ i.jsx(
|
|
2220
|
-
/* @__PURE__ */ i.jsx(
|
|
2219
|
+
/* @__PURE__ */ i.jsx(So, { children: a }),
|
|
2220
|
+
/* @__PURE__ */ i.jsx(Cd, { contentRef: l })
|
|
2221
2221
|
]
|
|
2222
2222
|
}
|
|
2223
2223
|
) })
|
|
@@ -2225,37 +2225,37 @@ var Qe = "AlertDialogContent", [Sd, _d] = xd(Qe), Io = s.forwardRef(
|
|
|
2225
2225
|
);
|
|
2226
2226
|
}
|
|
2227
2227
|
);
|
|
2228
|
-
|
|
2229
|
-
var
|
|
2228
|
+
Ro.displayName = Qe;
|
|
2229
|
+
var Io = "AlertDialogTitle", Mo = s.forwardRef(
|
|
2230
2230
|
(e, r) => {
|
|
2231
|
-
const { __scopeAlertDialog: t, ...a } = e, n =
|
|
2232
|
-
return /* @__PURE__ */ i.jsx(
|
|
2231
|
+
const { __scopeAlertDialog: t, ...a } = e, n = Oe(t);
|
|
2232
|
+
return /* @__PURE__ */ i.jsx(Ir, { ...n, ...a, ref: r });
|
|
2233
2233
|
}
|
|
2234
2234
|
);
|
|
2235
|
-
|
|
2236
|
-
var
|
|
2237
|
-
const { __scopeAlertDialog: t, ...a } = e, n =
|
|
2238
|
-
return /* @__PURE__ */ i.jsx(
|
|
2235
|
+
Mo.displayName = Io;
|
|
2236
|
+
var Do = "AlertDialogDescription", To = s.forwardRef((e, r) => {
|
|
2237
|
+
const { __scopeAlertDialog: t, ...a } = e, n = Oe(t);
|
|
2238
|
+
return /* @__PURE__ */ i.jsx(Mr, { ...n, ...a, ref: r });
|
|
2239
2239
|
});
|
|
2240
|
-
|
|
2241
|
-
var
|
|
2240
|
+
To.displayName = Do;
|
|
2241
|
+
var _d = "AlertDialogAction", jo = s.forwardRef(
|
|
2242
2242
|
(e, r) => {
|
|
2243
|
-
const { __scopeAlertDialog: t, ...a } = e, n =
|
|
2244
|
-
return /* @__PURE__ */ i.jsx(
|
|
2243
|
+
const { __scopeAlertDialog: t, ...a } = e, n = Oe(t);
|
|
2244
|
+
return /* @__PURE__ */ i.jsx(kt, { ...n, ...a, ref: r });
|
|
2245
2245
|
}
|
|
2246
2246
|
);
|
|
2247
|
-
|
|
2248
|
-
var
|
|
2247
|
+
jo.displayName = _d;
|
|
2248
|
+
var Po = "AlertDialogCancel", Oo = s.forwardRef(
|
|
2249
2249
|
(e, r) => {
|
|
2250
|
-
const { __scopeAlertDialog: t, ...a } = e, { cancelRef: n } =
|
|
2251
|
-
return /* @__PURE__ */ i.jsx(
|
|
2250
|
+
const { __scopeAlertDialog: t, ...a } = e, { cancelRef: n } = Sd(Po, t), o = Oe(t), l = ge(r, n);
|
|
2251
|
+
return /* @__PURE__ */ i.jsx(kt, { ...o, ...a, ref: l });
|
|
2252
2252
|
}
|
|
2253
2253
|
);
|
|
2254
|
-
Oo.displayName =
|
|
2255
|
-
var
|
|
2254
|
+
Oo.displayName = Po;
|
|
2255
|
+
var Cd = ({ contentRef: e }) => {
|
|
2256
2256
|
const r = `\`${Qe}\` requires a description for the component to be accessible for screen reader users.
|
|
2257
2257
|
|
|
2258
|
-
You can add a description to the \`${Qe}\` by passing a \`${
|
|
2258
|
+
You can add a description to the \`${Qe}\` by passing a \`${Do}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
2259
2259
|
|
|
2260
2260
|
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 \`${Qe}\`. 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.
|
|
2261
2261
|
|
|
@@ -2266,9 +2266,9 @@ For more information, see https://radix-ui.com/primitives/docs/components/alert-
|
|
|
2266
2266
|
(a = e.current) == null ? void 0 : a.getAttribute("aria-describedby")
|
|
2267
2267
|
) || console.warn(r);
|
|
2268
2268
|
}, [r, e]), null;
|
|
2269
|
-
}, Ed = No, Ad = Eo,
|
|
2270
|
-
const
|
|
2271
|
-
|
|
2269
|
+
}, Nd = Co, Ed = No, Ad = Eo, ko = Ao, Vo = Ro, Fo = jo, Lo = Oo, $o = Mo, Bo = To;
|
|
2270
|
+
const Ef = Nd, Af = Ed, Rd = Ad, Uo = s.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i.jsx(
|
|
2271
|
+
ko,
|
|
2272
2272
|
{
|
|
2273
2273
|
className: j(
|
|
2274
2274
|
"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",
|
|
@@ -2278,11 +2278,11 @@ const Rf = Ed, If = Ad, Id = Rd, Go = s.forwardRef(({ className: e, ...r }, t) =
|
|
|
2278
2278
|
ref: t
|
|
2279
2279
|
}
|
|
2280
2280
|
));
|
|
2281
|
-
|
|
2282
|
-
const
|
|
2283
|
-
/* @__PURE__ */ i.jsx(
|
|
2281
|
+
Uo.displayName = ko.displayName;
|
|
2282
|
+
const Id = s.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i.jsxs(Rd, { children: [
|
|
2283
|
+
/* @__PURE__ */ i.jsx(Uo, {}),
|
|
2284
2284
|
/* @__PURE__ */ i.jsx(
|
|
2285
|
-
|
|
2285
|
+
Vo,
|
|
2286
2286
|
{
|
|
2287
2287
|
ref: t,
|
|
2288
2288
|
className: j(
|
|
@@ -2293,16 +2293,16 @@ const Md = s.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i.jsxs(Id
|
|
|
2293
2293
|
}
|
|
2294
2294
|
)
|
|
2295
2295
|
] }));
|
|
2296
|
-
|
|
2297
|
-
const
|
|
2296
|
+
Id.displayName = Vo.displayName;
|
|
2297
|
+
const Md = ({ className: e, ...r }) => /* @__PURE__ */ i.jsx(
|
|
2298
2298
|
"div",
|
|
2299
2299
|
{
|
|
2300
2300
|
className: j("al-flex al-flex-col al-space-y-2 al-text-center sm:al-text-left", e),
|
|
2301
2301
|
...r
|
|
2302
2302
|
}
|
|
2303
2303
|
);
|
|
2304
|
-
|
|
2305
|
-
const
|
|
2304
|
+
Md.displayName = "AlertDialogHeader";
|
|
2305
|
+
const Dd = ({ className: e, ...r }) => /* @__PURE__ */ i.jsx(
|
|
2306
2306
|
"div",
|
|
2307
2307
|
{
|
|
2308
2308
|
className: j(
|
|
@@ -2312,66 +2312,66 @@ const Td = ({ className: e, ...r }) => /* @__PURE__ */ i.jsx(
|
|
|
2312
2312
|
...r
|
|
2313
2313
|
}
|
|
2314
2314
|
);
|
|
2315
|
-
|
|
2316
|
-
const
|
|
2317
|
-
|
|
2315
|
+
Dd.displayName = "AlertDialogFooter";
|
|
2316
|
+
const Td = s.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i.jsx(
|
|
2317
|
+
$o,
|
|
2318
2318
|
{
|
|
2319
2319
|
ref: t,
|
|
2320
2320
|
className: j("al-text-lg al-font-semibold", e),
|
|
2321
2321
|
...r
|
|
2322
2322
|
}
|
|
2323
2323
|
));
|
|
2324
|
-
|
|
2325
|
-
const
|
|
2326
|
-
|
|
2324
|
+
Td.displayName = $o.displayName;
|
|
2325
|
+
const jd = s.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i.jsx(
|
|
2326
|
+
Bo,
|
|
2327
2327
|
{
|
|
2328
2328
|
ref: t,
|
|
2329
2329
|
className: j("al-text-sm al-text-muted-foreground", e),
|
|
2330
2330
|
...r
|
|
2331
2331
|
}
|
|
2332
2332
|
));
|
|
2333
|
-
|
|
2334
|
-
const
|
|
2335
|
-
|
|
2333
|
+
jd.displayName = Bo.displayName;
|
|
2334
|
+
const Pd = s.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i.jsx(Fo, { ref: t, className: j(Ka(), e), ...r }));
|
|
2335
|
+
Pd.displayName = Fo.displayName;
|
|
2336
2336
|
const Od = s.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i.jsx(
|
|
2337
|
-
|
|
2337
|
+
Lo,
|
|
2338
2338
|
{
|
|
2339
2339
|
ref: t,
|
|
2340
|
-
className: j(
|
|
2340
|
+
className: j(Ka({ variant: "outline" }), "al-mt-2 sm:al-mt-0", e),
|
|
2341
2341
|
...r
|
|
2342
2342
|
}
|
|
2343
2343
|
));
|
|
2344
|
-
Od.displayName =
|
|
2345
|
-
function
|
|
2344
|
+
Od.displayName = Lo.displayName;
|
|
2345
|
+
function xa(e, [r, t]) {
|
|
2346
2346
|
return Math.min(t, Math.max(r, e));
|
|
2347
2347
|
}
|
|
2348
|
-
var
|
|
2349
|
-
const { children: t, ...a } = e, n = s.Children.toArray(t), o = n.find(
|
|
2348
|
+
var Go = s.forwardRef((e, r) => {
|
|
2349
|
+
const { children: t, ...a } = e, n = s.Children.toArray(t), o = n.find(Vd);
|
|
2350
2350
|
if (o) {
|
|
2351
2351
|
const l = o.props.children, c = n.map((d) => d === o ? s.Children.count(l) > 1 ? s.Children.only(null) : s.isValidElement(l) ? l.props.children : null : d);
|
|
2352
|
-
return /* @__PURE__ */ i.jsx(
|
|
2352
|
+
return /* @__PURE__ */ i.jsx(yr, { ...a, ref: r, children: s.isValidElement(l) ? s.cloneElement(l, void 0, c) : null });
|
|
2353
2353
|
}
|
|
2354
|
-
return /* @__PURE__ */ i.jsx(
|
|
2354
|
+
return /* @__PURE__ */ i.jsx(yr, { ...a, ref: r, children: t });
|
|
2355
2355
|
});
|
|
2356
|
-
|
|
2357
|
-
var
|
|
2356
|
+
Go.displayName = "Slot";
|
|
2357
|
+
var yr = s.forwardRef((e, r) => {
|
|
2358
2358
|
const { children: t, ...a } = e;
|
|
2359
2359
|
if (s.isValidElement(t)) {
|
|
2360
|
-
const n =
|
|
2360
|
+
const n = Ld(t);
|
|
2361
2361
|
return s.cloneElement(t, {
|
|
2362
|
-
...
|
|
2362
|
+
...Fd(a, t.props),
|
|
2363
2363
|
// @ts-ignore
|
|
2364
2364
|
ref: r ? gt(r, n) : n
|
|
2365
2365
|
});
|
|
2366
2366
|
}
|
|
2367
2367
|
return s.Children.count(t) > 1 ? s.Children.only(null) : null;
|
|
2368
2368
|
});
|
|
2369
|
-
|
|
2370
|
-
var
|
|
2371
|
-
function
|
|
2372
|
-
return s.isValidElement(e) && e.type ===
|
|
2369
|
+
yr.displayName = "SlotClone";
|
|
2370
|
+
var kd = ({ children: e }) => /* @__PURE__ */ i.jsx(i.Fragment, { children: e });
|
|
2371
|
+
function Vd(e) {
|
|
2372
|
+
return s.isValidElement(e) && e.type === kd;
|
|
2373
2373
|
}
|
|
2374
|
-
function
|
|
2374
|
+
function Fd(e, r) {
|
|
2375
2375
|
const t = { ...r };
|
|
2376
2376
|
for (const a in r) {
|
|
2377
2377
|
const n = e[a], o = r[a];
|
|
@@ -2381,15 +2381,15 @@ function Ld(e, r) {
|
|
|
2381
2381
|
}
|
|
2382
2382
|
return { ...e, ...t };
|
|
2383
2383
|
}
|
|
2384
|
-
function
|
|
2384
|
+
function Ld(e) {
|
|
2385
2385
|
var a, n;
|
|
2386
2386
|
let r = (a = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : a.get, t = r && "isReactWarning" in r && r.isReactWarning;
|
|
2387
2387
|
return t ? e.ref : (r = (n = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : n.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
|
|
2388
2388
|
}
|
|
2389
|
-
var
|
|
2390
|
-
|
|
2389
|
+
var $d = [" ", "Enter", "ArrowUp", "ArrowDown"], Bd = [" ", "Enter"], bt = "Select", [zt, qt, Ud] = Dr(bt), [tt, Rf] = qe(bt, [
|
|
2390
|
+
Ud,
|
|
2391
2391
|
Lt
|
|
2392
|
-
]), Yt = Lt(), [
|
|
2392
|
+
]), Yt = Lt(), [Gd, $e] = tt(bt), [Kd, Hd] = tt(bt), Ko = (e) => {
|
|
2393
2393
|
const {
|
|
2394
2394
|
__scopeSelect: r,
|
|
2395
2395
|
children: t,
|
|
@@ -2403,9 +2403,9 @@ var Bd = [" ", "Enter", "ArrowUp", "ArrowDown"], Ud = [" ", "Enter"], bt = "Sele
|
|
|
2403
2403
|
name: f,
|
|
2404
2404
|
autoComplete: p,
|
|
2405
2405
|
disabled: v,
|
|
2406
|
-
required:
|
|
2406
|
+
required: S,
|
|
2407
2407
|
form: _
|
|
2408
|
-
} = e, y = Yt(r), [C, I] = s.useState(null), [h, D] = s.useState(null), [H, F] = s.useState(!1), W = Ut(m), [
|
|
2408
|
+
} = e, y = Yt(r), [C, I] = s.useState(null), [h, D] = s.useState(null), [H, F] = s.useState(!1), W = Ut(m), [O = !1, de] = Fe({
|
|
2409
2409
|
prop: a,
|
|
2410
2410
|
defaultProp: n,
|
|
2411
2411
|
onChange: o
|
|
@@ -2413,11 +2413,11 @@ var Bd = [" ", "Enter", "ArrowUp", "ArrowDown"], Ud = [" ", "Enter"], bt = "Sele
|
|
|
2413
2413
|
prop: l,
|
|
2414
2414
|
defaultProp: c,
|
|
2415
2415
|
onChange: d
|
|
2416
|
-
}), re = s.useRef(null),
|
|
2417
|
-
return /* @__PURE__ */ i.jsx(
|
|
2418
|
-
|
|
2416
|
+
}), re = s.useRef(null), k = C ? _ || !!C.closest("form") : !0, [B, U] = s.useState(/* @__PURE__ */ new Set()), X = Array.from(B).map((q) => q.props.value).join(";");
|
|
2417
|
+
return /* @__PURE__ */ i.jsx(Tr, { ...y, children: /* @__PURE__ */ i.jsxs(
|
|
2418
|
+
Gd,
|
|
2419
2419
|
{
|
|
2420
|
-
required:
|
|
2420
|
+
required: S,
|
|
2421
2421
|
scope: r,
|
|
2422
2422
|
trigger: C,
|
|
2423
2423
|
onTriggerChange: I,
|
|
@@ -2425,17 +2425,17 @@ var Bd = [" ", "Enter", "ArrowUp", "ArrowDown"], Ud = [" ", "Enter"], bt = "Sele
|
|
|
2425
2425
|
onValueNodeChange: D,
|
|
2426
2426
|
valueNodeHasChildren: H,
|
|
2427
2427
|
onValueNodeHasChildrenChange: F,
|
|
2428
|
-
contentId:
|
|
2428
|
+
contentId: he(),
|
|
2429
2429
|
value: Y,
|
|
2430
2430
|
onValueChange: Q,
|
|
2431
|
-
open:
|
|
2431
|
+
open: O,
|
|
2432
2432
|
onOpenChange: de,
|
|
2433
2433
|
dir: W,
|
|
2434
2434
|
triggerPointerDownPosRef: re,
|
|
2435
2435
|
disabled: v,
|
|
2436
2436
|
children: [
|
|
2437
2437
|
/* @__PURE__ */ i.jsx(zt.Provider, { scope: r, children: /* @__PURE__ */ i.jsx(
|
|
2438
|
-
|
|
2438
|
+
Kd,
|
|
2439
2439
|
{
|
|
2440
2440
|
scope: e.__scopeSelect,
|
|
2441
2441
|
onNativeOptionAdd: s.useCallback((q) => {
|
|
@@ -2450,11 +2450,11 @@ var Bd = [" ", "Enter", "ArrowUp", "ArrowDown"], Ud = [" ", "Enter"], bt = "Sele
|
|
|
2450
2450
|
children: t
|
|
2451
2451
|
}
|
|
2452
2452
|
) }),
|
|
2453
|
-
|
|
2454
|
-
|
|
2453
|
+
k ? /* @__PURE__ */ i.jsxs(
|
|
2454
|
+
vs,
|
|
2455
2455
|
{
|
|
2456
2456
|
"aria-hidden": !0,
|
|
2457
|
-
required:
|
|
2457
|
+
required: S,
|
|
2458
2458
|
tabIndex: -1,
|
|
2459
2459
|
name: f,
|
|
2460
2460
|
autoComplete: p,
|
|
@@ -2473,19 +2473,19 @@ var Bd = [" ", "Enter", "ArrowUp", "ArrowDown"], Ud = [" ", "Enter"], bt = "Sele
|
|
|
2473
2473
|
}
|
|
2474
2474
|
) });
|
|
2475
2475
|
};
|
|
2476
|
-
|
|
2477
|
-
var
|
|
2476
|
+
Ko.displayName = bt;
|
|
2477
|
+
var Ho = "SelectTrigger", Wo = s.forwardRef(
|
|
2478
2478
|
(e, r) => {
|
|
2479
|
-
const { __scopeSelect: t, disabled: a = !1, ...n } = e, o = Yt(t), l = $e(
|
|
2480
|
-
const C = m().filter((D) => !D.disabled), I = C.find((D) => D.value === l.value), h =
|
|
2479
|
+
const { __scopeSelect: t, disabled: a = !1, ...n } = e, o = Yt(t), l = $e(Ho, t), c = l.disabled || a, d = ge(r, l.onTriggerChange), m = qt(t), f = s.useRef("touch"), [p, v, S] = hs((y) => {
|
|
2480
|
+
const C = m().filter((D) => !D.disabled), I = C.find((D) => D.value === l.value), h = xs(C, y, I);
|
|
2481
2481
|
h !== void 0 && l.onValueChange(h.value);
|
|
2482
2482
|
}), _ = (y) => {
|
|
2483
|
-
c || (l.onOpenChange(!0),
|
|
2483
|
+
c || (l.onOpenChange(!0), S()), y && (l.triggerPointerDownPosRef.current = {
|
|
2484
2484
|
x: Math.round(y.pageX),
|
|
2485
2485
|
y: Math.round(y.pageY)
|
|
2486
2486
|
});
|
|
2487
2487
|
};
|
|
2488
|
-
return /* @__PURE__ */ i.jsx(
|
|
2488
|
+
return /* @__PURE__ */ i.jsx(Ta, { asChild: !0, ...o, children: /* @__PURE__ */ i.jsx(
|
|
2489
2489
|
J.button,
|
|
2490
2490
|
{
|
|
2491
2491
|
type: "button",
|
|
@@ -2498,7 +2498,7 @@ var Wo = "SelectTrigger", zo = s.forwardRef(
|
|
|
2498
2498
|
"data-state": l.open ? "open" : "closed",
|
|
2499
2499
|
disabled: c,
|
|
2500
2500
|
"data-disabled": c ? "" : void 0,
|
|
2501
|
-
"data-placeholder":
|
|
2501
|
+
"data-placeholder": gs(l.value) ? "" : void 0,
|
|
2502
2502
|
...n,
|
|
2503
2503
|
ref: d,
|
|
2504
2504
|
onClick: L(n.onClick, (y) => {
|
|
@@ -2511,16 +2511,16 @@ var Wo = "SelectTrigger", zo = s.forwardRef(
|
|
|
2511
2511
|
}),
|
|
2512
2512
|
onKeyDown: L(n.onKeyDown, (y) => {
|
|
2513
2513
|
const C = p.current !== "";
|
|
2514
|
-
!(y.ctrlKey || y.altKey || y.metaKey) && y.key.length === 1 && v(y.key), !(C && y.key === " ") &&
|
|
2514
|
+
!(y.ctrlKey || y.altKey || y.metaKey) && y.key.length === 1 && v(y.key), !(C && y.key === " ") && $d.includes(y.key) && (_(), y.preventDefault());
|
|
2515
2515
|
})
|
|
2516
2516
|
}
|
|
2517
2517
|
) });
|
|
2518
2518
|
}
|
|
2519
2519
|
);
|
|
2520
|
-
|
|
2521
|
-
var
|
|
2520
|
+
Wo.displayName = Ho;
|
|
2521
|
+
var zo = "SelectValue", qo = s.forwardRef(
|
|
2522
2522
|
(e, r) => {
|
|
2523
|
-
const { __scopeSelect: t, className: a, style: n, children: o, placeholder: l = "", ...c } = e, d = $e(
|
|
2523
|
+
const { __scopeSelect: t, className: a, style: n, children: o, placeholder: l = "", ...c } = e, d = $e(zo, t), { onValueNodeHasChildrenChange: m } = d, f = o !== void 0, p = ge(r, d.onValueNodeChange);
|
|
2524
2524
|
return je(() => {
|
|
2525
2525
|
m(f);
|
|
2526
2526
|
}, [m, f]), /* @__PURE__ */ i.jsx(
|
|
@@ -2529,38 +2529,38 @@ var qo = "SelectValue", Yo = s.forwardRef(
|
|
|
2529
2529
|
...c,
|
|
2530
2530
|
ref: p,
|
|
2531
2531
|
style: { pointerEvents: "none" },
|
|
2532
|
-
children:
|
|
2532
|
+
children: gs(d.value) ? /* @__PURE__ */ i.jsx(i.Fragment, { children: l }) : o
|
|
2533
2533
|
}
|
|
2534
2534
|
);
|
|
2535
2535
|
}
|
|
2536
2536
|
);
|
|
2537
|
-
|
|
2538
|
-
var
|
|
2537
|
+
qo.displayName = zo;
|
|
2538
|
+
var Wd = "SelectIcon", Yo = s.forwardRef(
|
|
2539
2539
|
(e, r) => {
|
|
2540
2540
|
const { __scopeSelect: t, children: a, ...n } = e;
|
|
2541
2541
|
return /* @__PURE__ */ i.jsx(J.span, { "aria-hidden": !0, ...n, ref: r, children: a || "▼" });
|
|
2542
2542
|
}
|
|
2543
2543
|
);
|
|
2544
|
+
Yo.displayName = Wd;
|
|
2545
|
+
var zd = "SelectPortal", Xo = (e) => /* @__PURE__ */ i.jsx(Ua, { asChild: !0, ...e });
|
|
2544
2546
|
Xo.displayName = zd;
|
|
2545
|
-
var
|
|
2546
|
-
Zo.displayName = qd;
|
|
2547
|
-
var We = "SelectContent", Jo = s.forwardRef(
|
|
2547
|
+
var We = "SelectContent", Zo = s.forwardRef(
|
|
2548
2548
|
(e, r) => {
|
|
2549
2549
|
const t = $e(We, e.__scopeSelect), [a, n] = s.useState();
|
|
2550
2550
|
if (je(() => {
|
|
2551
2551
|
n(new DocumentFragment());
|
|
2552
2552
|
}, []), !t.open) {
|
|
2553
2553
|
const o = a;
|
|
2554
|
-
return o ?
|
|
2555
|
-
/* @__PURE__ */ i.jsx(
|
|
2554
|
+
return o ? Ha.createPortal(
|
|
2555
|
+
/* @__PURE__ */ i.jsx(Jo, { scope: e.__scopeSelect, children: /* @__PURE__ */ i.jsx(zt.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ i.jsx("div", { children: e.children }) }) }),
|
|
2556
2556
|
o
|
|
2557
2557
|
) : null;
|
|
2558
2558
|
}
|
|
2559
|
-
return /* @__PURE__ */ i.jsx(
|
|
2559
|
+
return /* @__PURE__ */ i.jsx(Qo, { ...e, ref: r });
|
|
2560
2560
|
}
|
|
2561
2561
|
);
|
|
2562
|
-
|
|
2563
|
-
var Ee = 10, [
|
|
2562
|
+
Zo.displayName = We;
|
|
2563
|
+
var Ee = 10, [Jo, Be] = tt(We), qd = "SelectContentImpl", Qo = s.forwardRef(
|
|
2564
2564
|
(e, r) => {
|
|
2565
2565
|
const {
|
|
2566
2566
|
__scopeSelect: t,
|
|
@@ -2576,25 +2576,25 @@ var Ee = 10, [Qo, Be] = tt(We), Yd = "SelectContentImpl", es = s.forwardRef(
|
|
|
2576
2576
|
alignOffset: f,
|
|
2577
2577
|
arrowPadding: p,
|
|
2578
2578
|
collisionBoundary: v,
|
|
2579
|
-
collisionPadding:
|
|
2579
|
+
collisionPadding: S,
|
|
2580
2580
|
sticky: _,
|
|
2581
2581
|
hideWhenDetached: y,
|
|
2582
2582
|
avoidCollisions: C,
|
|
2583
2583
|
//
|
|
2584
2584
|
...I
|
|
2585
|
-
} = e, h = $e(We, t), [D, H] = s.useState(null), [F, W] = s.useState(null),
|
|
2585
|
+
} = e, h = $e(We, t), [D, H] = s.useState(null), [F, W] = s.useState(null), O = ge(r, (E) => H(E)), [de, Y] = s.useState(null), [Q, re] = s.useState(
|
|
2586
2586
|
null
|
|
2587
|
-
),
|
|
2587
|
+
), k = qt(t), [B, U] = s.useState(!1), X = s.useRef(!1);
|
|
2588
2588
|
s.useEffect(() => {
|
|
2589
|
-
if (D) return
|
|
2590
|
-
}, [D]),
|
|
2589
|
+
if (D) return ja(D);
|
|
2590
|
+
}, [D]), Pa();
|
|
2591
2591
|
const q = s.useCallback(
|
|
2592
2592
|
(E) => {
|
|
2593
|
-
const [K, ...Z] =
|
|
2593
|
+
const [K, ...Z] = k().map((le) => le.ref.current), [te] = Z.slice(-1), ie = document.activeElement;
|
|
2594
2594
|
for (const le of E)
|
|
2595
2595
|
if (le === ie || (le == null || le.scrollIntoView({ block: "nearest" }), le === K && F && (F.scrollTop = 0), le === te && F && (F.scrollTop = F.scrollHeight), le == null || le.focus(), document.activeElement !== ie)) return;
|
|
2596
2596
|
},
|
|
2597
|
-
[
|
|
2597
|
+
[k, F]
|
|
2598
2598
|
), oe = s.useCallback(
|
|
2599
2599
|
() => q([de, D]),
|
|
2600
2600
|
[q, de, D]
|
|
@@ -2602,31 +2602,31 @@ var Ee = 10, [Qo, Be] = tt(We), Yd = "SelectContentImpl", es = s.forwardRef(
|
|
|
2602
2602
|
s.useEffect(() => {
|
|
2603
2603
|
B && oe();
|
|
2604
2604
|
}, [B, oe]);
|
|
2605
|
-
const { onOpenChange: ae, triggerPointerDownPosRef:
|
|
2605
|
+
const { onOpenChange: ae, triggerPointerDownPosRef: w } = h;
|
|
2606
2606
|
s.useEffect(() => {
|
|
2607
2607
|
if (D) {
|
|
2608
2608
|
let E = { x: 0, y: 0 };
|
|
2609
2609
|
const K = (te) => {
|
|
2610
2610
|
var ie, le;
|
|
2611
2611
|
E = {
|
|
2612
|
-
x: Math.abs(Math.round(te.pageX) - (((ie =
|
|
2613
|
-
y: Math.abs(Math.round(te.pageY) - (((le =
|
|
2612
|
+
x: Math.abs(Math.round(te.pageX) - (((ie = w.current) == null ? void 0 : ie.x) ?? 0)),
|
|
2613
|
+
y: Math.abs(Math.round(te.pageY) - (((le = w.current) == null ? void 0 : le.y) ?? 0))
|
|
2614
2614
|
};
|
|
2615
2615
|
}, Z = (te) => {
|
|
2616
|
-
E.x <= 10 && E.y <= 10 ? te.preventDefault() : D.contains(te.target) || ae(!1), document.removeEventListener("pointermove", K),
|
|
2616
|
+
E.x <= 10 && E.y <= 10 ? te.preventDefault() : D.contains(te.target) || ae(!1), document.removeEventListener("pointermove", K), w.current = null;
|
|
2617
2617
|
};
|
|
2618
|
-
return
|
|
2618
|
+
return w.current !== null && (document.addEventListener("pointermove", K), document.addEventListener("pointerup", Z, { capture: !0, once: !0 })), () => {
|
|
2619
2619
|
document.removeEventListener("pointermove", K), document.removeEventListener("pointerup", Z, { capture: !0 });
|
|
2620
2620
|
};
|
|
2621
2621
|
}
|
|
2622
|
-
}, [D, ae,
|
|
2622
|
+
}, [D, ae, w]), s.useEffect(() => {
|
|
2623
2623
|
const E = () => ae(!1);
|
|
2624
2624
|
return window.addEventListener("blur", E), window.addEventListener("resize", E), () => {
|
|
2625
2625
|
window.removeEventListener("blur", E), window.removeEventListener("resize", E);
|
|
2626
2626
|
};
|
|
2627
2627
|
}, [ae]);
|
|
2628
|
-
const [ee, ne] =
|
|
2629
|
-
const K =
|
|
2628
|
+
const [ee, ne] = hs((E) => {
|
|
2629
|
+
const K = k().filter((ie) => !ie.disabled), Z = K.find((ie) => ie.ref.current === document.activeElement), te = xs(K, E, Z);
|
|
2630
2630
|
te && setTimeout(() => te.ref.current.focus());
|
|
2631
2631
|
}), b = s.useCallback(
|
|
2632
2632
|
(E, K, Z) => {
|
|
@@ -2640,20 +2640,20 @@ var Ee = 10, [Qo, Be] = tt(We), Yd = "SelectContentImpl", es = s.forwardRef(
|
|
|
2640
2640
|
(h.value !== void 0 && h.value === K || te) && re(E);
|
|
2641
2641
|
},
|
|
2642
2642
|
[h.value]
|
|
2643
|
-
), T = a === "popper" ?
|
|
2643
|
+
), T = a === "popper" ? br : es, z = T === br ? {
|
|
2644
2644
|
side: c,
|
|
2645
2645
|
sideOffset: d,
|
|
2646
2646
|
align: m,
|
|
2647
2647
|
alignOffset: f,
|
|
2648
2648
|
arrowPadding: p,
|
|
2649
2649
|
collisionBoundary: v,
|
|
2650
|
-
collisionPadding:
|
|
2650
|
+
collisionPadding: S,
|
|
2651
2651
|
sticky: _,
|
|
2652
2652
|
hideWhenDetached: y,
|
|
2653
2653
|
avoidCollisions: C
|
|
2654
2654
|
} : {};
|
|
2655
2655
|
return /* @__PURE__ */ i.jsx(
|
|
2656
|
-
|
|
2656
|
+
Jo,
|
|
2657
2657
|
{
|
|
2658
2658
|
scope: t,
|
|
2659
2659
|
content: D,
|
|
@@ -2668,7 +2668,7 @@ var Ee = 10, [Qo, Be] = tt(We), Yd = "SelectContentImpl", es = s.forwardRef(
|
|
|
2668
2668
|
position: a,
|
|
2669
2669
|
isPositioned: B,
|
|
2670
2670
|
searchRef: ee,
|
|
2671
|
-
children: /* @__PURE__ */ i.jsx(
|
|
2671
|
+
children: /* @__PURE__ */ i.jsx(Ba, { as: Go, allowPinchZoom: !0, children: /* @__PURE__ */ i.jsx(
|
|
2672
2672
|
Oa,
|
|
2673
2673
|
{
|
|
2674
2674
|
asChild: !0,
|
|
@@ -2681,7 +2681,7 @@ var Ee = 10, [Qo, Be] = tt(We), Yd = "SelectContentImpl", es = s.forwardRef(
|
|
|
2681
2681
|
(K = h.trigger) == null || K.focus({ preventScroll: !0 }), E.preventDefault();
|
|
2682
2682
|
}),
|
|
2683
2683
|
children: /* @__PURE__ */ i.jsx(
|
|
2684
|
-
|
|
2684
|
+
ka,
|
|
2685
2685
|
{
|
|
2686
2686
|
asChild: !0,
|
|
2687
2687
|
disableOutsidePointerEvents: !0,
|
|
@@ -2700,7 +2700,7 @@ var Ee = 10, [Qo, Be] = tt(We), Yd = "SelectContentImpl", es = s.forwardRef(
|
|
|
2700
2700
|
...I,
|
|
2701
2701
|
...z,
|
|
2702
2702
|
onPlaced: () => U(!0),
|
|
2703
|
-
ref:
|
|
2703
|
+
ref: O,
|
|
2704
2704
|
style: {
|
|
2705
2705
|
// flex layout so we can place the scroll buttons properly
|
|
2706
2706
|
display: "flex",
|
|
@@ -2712,7 +2712,7 @@ var Ee = 10, [Qo, Be] = tt(We), Yd = "SelectContentImpl", es = s.forwardRef(
|
|
|
2712
2712
|
onKeyDown: L(I.onKeyDown, (E) => {
|
|
2713
2713
|
const K = E.ctrlKey || E.altKey || E.metaKey;
|
|
2714
2714
|
if (E.key === "Tab" && E.preventDefault(), !K && E.key.length === 1 && ne(E.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(E.key)) {
|
|
2715
|
-
let te =
|
|
2715
|
+
let te = k().filter((ie) => !ie.disabled).map((ie) => ie.ref.current);
|
|
2716
2716
|
if (["ArrowUp", "End"].includes(E.key) && (te = te.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(E.key)) {
|
|
2717
2717
|
const ie = E.target, le = te.indexOf(ie);
|
|
2718
2718
|
te = te.slice(le + 1);
|
|
@@ -2730,13 +2730,13 @@ var Ee = 10, [Qo, Be] = tt(We), Yd = "SelectContentImpl", es = s.forwardRef(
|
|
|
2730
2730
|
);
|
|
2731
2731
|
}
|
|
2732
2732
|
);
|
|
2733
|
-
|
|
2734
|
-
var
|
|
2735
|
-
const { __scopeSelect: t, onPlaced: a, ...n } = e, o = $e(We, t), l = Be(We, t), [c, d] = s.useState(null), [m, f] = s.useState(null), p = ge(r, (
|
|
2733
|
+
Qo.displayName = qd;
|
|
2734
|
+
var Yd = "SelectItemAlignedPosition", es = s.forwardRef((e, r) => {
|
|
2735
|
+
const { __scopeSelect: t, onPlaced: a, ...n } = e, o = $e(We, t), l = Be(We, t), [c, d] = s.useState(null), [m, f] = s.useState(null), p = ge(r, (O) => f(O)), v = qt(t), S = s.useRef(!1), _ = s.useRef(!0), { viewport: y, selectedItem: C, selectedItemText: I, focusSelectedItem: h } = l, D = s.useCallback(() => {
|
|
2736
2736
|
if (o.trigger && o.valueNode && c && m && y && C && I) {
|
|
2737
|
-
const
|
|
2737
|
+
const O = o.trigger.getBoundingClientRect(), de = m.getBoundingClientRect(), Y = o.valueNode.getBoundingClientRect(), Q = I.getBoundingClientRect();
|
|
2738
2738
|
if (o.dir !== "rtl") {
|
|
2739
|
-
const ie = Q.left - de.left, le = Y.left - ie, De =
|
|
2739
|
+
const ie = Q.left - de.left, le = Y.left - ie, De = O.left - le, Ie = O.width + De, Xe = Math.max(Ie, de.width), rt = window.innerWidth - Ee, at = xa(le, [
|
|
2740
2740
|
Ee,
|
|
2741
2741
|
// Prevents the content from going off the starting edge of the
|
|
2742
2742
|
// viewport. It may still go off the ending edge, but this can be
|
|
@@ -2747,13 +2747,13 @@ var Xd = "SelectItemAlignedPosition", ts = s.forwardRef((e, r) => {
|
|
|
2747
2747
|
]);
|
|
2748
2748
|
c.style.minWidth = Ie + "px", c.style.left = at + "px";
|
|
2749
2749
|
} else {
|
|
2750
|
-
const ie = de.right - Q.right, le = window.innerWidth - Y.right - ie, De = window.innerWidth -
|
|
2750
|
+
const ie = de.right - Q.right, le = window.innerWidth - Y.right - ie, De = window.innerWidth - O.right - le, Ie = O.width + De, Xe = Math.max(Ie, de.width), rt = window.innerWidth - Ee, at = xa(le, [
|
|
2751
2751
|
Ee,
|
|
2752
2752
|
Math.max(Ee, rt - Xe)
|
|
2753
2753
|
]);
|
|
2754
2754
|
c.style.minWidth = Ie + "px", c.style.right = at + "px";
|
|
2755
2755
|
}
|
|
2756
|
-
const re = v(),
|
|
2756
|
+
const re = v(), k = window.innerHeight - Ee * 2, B = y.scrollHeight, U = window.getComputedStyle(m), X = parseInt(U.borderTopWidth, 10), q = parseInt(U.paddingTop, 10), oe = parseInt(U.borderBottomWidth, 10), ae = parseInt(U.paddingBottom, 10), w = X + q + B + ae + oe, ee = Math.min(C.offsetHeight * 5, w), ne = window.getComputedStyle(y), b = parseInt(ne.paddingTop, 10), V = parseInt(ne.paddingBottom, 10), $ = O.top + O.height / 2 - Ee, T = k - $, z = C.offsetHeight / 2, E = C.offsetTop + z, K = X + q + E, Z = w - K;
|
|
2757
2757
|
if (K <= $) {
|
|
2758
2758
|
const ie = re.length > 0 && C === re[re.length - 1].ref.current;
|
|
2759
2759
|
c.style.bottom = "0px";
|
|
@@ -2773,7 +2773,7 @@ var Xd = "SelectItemAlignedPosition", ts = s.forwardRef((e, r) => {
|
|
|
2773
2773
|
) + Z;
|
|
2774
2774
|
c.style.height = De + "px", y.scrollTop = K - $ + y.offsetTop;
|
|
2775
2775
|
}
|
|
2776
|
-
c.style.margin = `${Ee}px 0`, c.style.minHeight = ee + "px", c.style.maxHeight =
|
|
2776
|
+
c.style.margin = `${Ee}px 0`, c.style.minHeight = ee + "px", c.style.maxHeight = k + "px", a == null || a(), requestAnimationFrame(() => S.current = !0);
|
|
2777
2777
|
}
|
|
2778
2778
|
}, [
|
|
2779
2779
|
v,
|
|
@@ -2793,17 +2793,17 @@ var Xd = "SelectItemAlignedPosition", ts = s.forwardRef((e, r) => {
|
|
|
2793
2793
|
m && F(window.getComputedStyle(m).zIndex);
|
|
2794
2794
|
}, [m]);
|
|
2795
2795
|
const W = s.useCallback(
|
|
2796
|
-
(
|
|
2797
|
-
|
|
2796
|
+
(O) => {
|
|
2797
|
+
O && _.current === !0 && (D(), h == null || h(), _.current = !1);
|
|
2798
2798
|
},
|
|
2799
2799
|
[D, h]
|
|
2800
2800
|
);
|
|
2801
2801
|
return /* @__PURE__ */ i.jsx(
|
|
2802
|
-
|
|
2802
|
+
Zd,
|
|
2803
2803
|
{
|
|
2804
2804
|
scope: t,
|
|
2805
2805
|
contentWrapper: c,
|
|
2806
|
-
shouldExpandOnScrollRef:
|
|
2806
|
+
shouldExpandOnScrollRef: S,
|
|
2807
2807
|
onScrollButtonChange: W,
|
|
2808
2808
|
children: /* @__PURE__ */ i.jsx(
|
|
2809
2809
|
"div",
|
|
@@ -2835,8 +2835,8 @@ var Xd = "SelectItemAlignedPosition", ts = s.forwardRef((e, r) => {
|
|
|
2835
2835
|
}
|
|
2836
2836
|
);
|
|
2837
2837
|
});
|
|
2838
|
-
|
|
2839
|
-
var
|
|
2838
|
+
es.displayName = Yd;
|
|
2839
|
+
var Xd = "SelectPopperPosition", br = s.forwardRef((e, r) => {
|
|
2840
2840
|
const {
|
|
2841
2841
|
__scopeSelect: t,
|
|
2842
2842
|
align: a = "start",
|
|
@@ -2844,7 +2844,7 @@ var Zd = "SelectPopperPosition", wr = s.forwardRef((e, r) => {
|
|
|
2844
2844
|
...o
|
|
2845
2845
|
} = e, l = Yt(t);
|
|
2846
2846
|
return /* @__PURE__ */ i.jsx(
|
|
2847
|
-
|
|
2847
|
+
Fa,
|
|
2848
2848
|
{
|
|
2849
2849
|
...l,
|
|
2850
2850
|
...o,
|
|
@@ -2864,10 +2864,10 @@ var Zd = "SelectPopperPosition", wr = s.forwardRef((e, r) => {
|
|
|
2864
2864
|
}
|
|
2865
2865
|
);
|
|
2866
2866
|
});
|
|
2867
|
-
|
|
2868
|
-
var [
|
|
2867
|
+
br.displayName = Xd;
|
|
2868
|
+
var [Zd, Qr] = tt(We, {}), wr = "SelectViewport", ts = s.forwardRef(
|
|
2869
2869
|
(e, r) => {
|
|
2870
|
-
const { __scopeSelect: t, nonce: a, ...n } = e, o = Be(
|
|
2870
|
+
const { __scopeSelect: t, nonce: a, ...n } = e, o = Be(wr, t), l = Qr(wr, t), c = ge(r, o.onViewportChange), d = s.useRef(0);
|
|
2871
2871
|
return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
2872
2872
|
/* @__PURE__ */ i.jsx(
|
|
2873
2873
|
"style",
|
|
@@ -2901,11 +2901,11 @@ var [Jd, Qr] = tt(We, {}), Sr = "SelectViewport", rs = s.forwardRef(
|
|
|
2901
2901
|
onScroll: L(n.onScroll, (m) => {
|
|
2902
2902
|
const f = m.currentTarget, { contentWrapper: p, shouldExpandOnScrollRef: v } = l;
|
|
2903
2903
|
if (v != null && v.current && p) {
|
|
2904
|
-
const
|
|
2905
|
-
if (
|
|
2904
|
+
const S = Math.abs(d.current - f.scrollTop);
|
|
2905
|
+
if (S > 0) {
|
|
2906
2906
|
const _ = window.innerHeight - Ee * 2, y = parseFloat(p.style.minHeight), C = parseFloat(p.style.height), I = Math.max(y, C);
|
|
2907
2907
|
if (I < _) {
|
|
2908
|
-
const h = I +
|
|
2908
|
+
const h = I + S, D = Math.min(_, h), H = h - D;
|
|
2909
2909
|
p.style.height = D + "px", p.style.bottom === "0px" && (f.scrollTop = H > 0 ? H : 0, p.style.justifyContent = "flex-end");
|
|
2910
2910
|
}
|
|
2911
2911
|
}
|
|
@@ -2917,22 +2917,22 @@ var [Jd, Qr] = tt(We, {}), Sr = "SelectViewport", rs = s.forwardRef(
|
|
|
2917
2917
|
] });
|
|
2918
2918
|
}
|
|
2919
2919
|
);
|
|
2920
|
-
|
|
2921
|
-
var
|
|
2920
|
+
ts.displayName = wr;
|
|
2921
|
+
var rs = "SelectGroup", [Jd, Qd] = tt(rs), as = s.forwardRef(
|
|
2922
2922
|
(e, r) => {
|
|
2923
|
-
const { __scopeSelect: t, ...a } = e, n =
|
|
2924
|
-
return /* @__PURE__ */ i.jsx(
|
|
2923
|
+
const { __scopeSelect: t, ...a } = e, n = he();
|
|
2924
|
+
return /* @__PURE__ */ i.jsx(Jd, { scope: t, id: n, children: /* @__PURE__ */ i.jsx(J.div, { role: "group", "aria-labelledby": n, ...a, ref: r }) });
|
|
2925
2925
|
}
|
|
2926
2926
|
);
|
|
2927
|
-
|
|
2928
|
-
var
|
|
2927
|
+
as.displayName = rs;
|
|
2928
|
+
var ns = "SelectLabel", os = s.forwardRef(
|
|
2929
2929
|
(e, r) => {
|
|
2930
|
-
const { __scopeSelect: t, ...a } = e, n =
|
|
2930
|
+
const { __scopeSelect: t, ...a } = e, n = Qd(ns, t);
|
|
2931
2931
|
return /* @__PURE__ */ i.jsx(J.div, { id: n.id, ...a, ref: r });
|
|
2932
2932
|
}
|
|
2933
2933
|
);
|
|
2934
|
-
|
|
2935
|
-
var Dt = "SelectItem", [
|
|
2934
|
+
os.displayName = ns;
|
|
2935
|
+
var Dt = "SelectItem", [eu, ss] = tt(Dt), ls = s.forwardRef(
|
|
2936
2936
|
(e, r) => {
|
|
2937
2937
|
const {
|
|
2938
2938
|
__scopeSelect: t,
|
|
@@ -2940,13 +2940,13 @@ var Dt = "SelectItem", [tu, ls] = tt(Dt), is = s.forwardRef(
|
|
|
2940
2940
|
disabled: n = !1,
|
|
2941
2941
|
textValue: o,
|
|
2942
2942
|
...l
|
|
2943
|
-
} = e, c = $e(Dt, t), d = Be(Dt, t), m = c.value === a, [f, p] = s.useState(o ?? ""), [v,
|
|
2943
|
+
} = e, c = $e(Dt, t), d = Be(Dt, t), m = c.value === a, [f, p] = s.useState(o ?? ""), [v, S] = s.useState(!1), _ = ge(
|
|
2944
2944
|
r,
|
|
2945
2945
|
(h) => {
|
|
2946
2946
|
var D;
|
|
2947
2947
|
return (D = d.itemRefCallback) == null ? void 0 : D.call(d, h, a, n);
|
|
2948
2948
|
}
|
|
2949
|
-
), y =
|
|
2949
|
+
), y = he(), C = s.useRef("touch"), I = () => {
|
|
2950
2950
|
n || (c.onValueChange(a), c.onOpenChange(!1));
|
|
2951
2951
|
};
|
|
2952
2952
|
if (a === "")
|
|
@@ -2954,7 +2954,7 @@ var Dt = "SelectItem", [tu, ls] = tt(Dt), is = s.forwardRef(
|
|
|
2954
2954
|
"A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder."
|
|
2955
2955
|
);
|
|
2956
2956
|
return /* @__PURE__ */ i.jsx(
|
|
2957
|
-
|
|
2957
|
+
eu,
|
|
2958
2958
|
{
|
|
2959
2959
|
scope: t,
|
|
2960
2960
|
value: a,
|
|
@@ -2984,8 +2984,8 @@ var Dt = "SelectItem", [tu, ls] = tt(Dt), is = s.forwardRef(
|
|
|
2984
2984
|
tabIndex: n ? void 0 : -1,
|
|
2985
2985
|
...l,
|
|
2986
2986
|
ref: _,
|
|
2987
|
-
onFocus: L(l.onFocus, () =>
|
|
2988
|
-
onBlur: L(l.onBlur, () =>
|
|
2987
|
+
onFocus: L(l.onFocus, () => S(!0)),
|
|
2988
|
+
onBlur: L(l.onBlur, () => S(!1)),
|
|
2989
2989
|
onClick: L(l.onClick, () => {
|
|
2990
2990
|
C.current !== "mouse" && I();
|
|
2991
2991
|
}),
|
|
@@ -3005,7 +3005,7 @@ var Dt = "SelectItem", [tu, ls] = tt(Dt), is = s.forwardRef(
|
|
|
3005
3005
|
}),
|
|
3006
3006
|
onKeyDown: L(l.onKeyDown, (h) => {
|
|
3007
3007
|
var H;
|
|
3008
|
-
((H = d.searchRef) == null ? void 0 : H.current) !== "" && h.key === " " || (
|
|
3008
|
+
((H = d.searchRef) == null ? void 0 : H.current) !== "" && h.key === " " || (Bd.includes(h.key) && I(), h.key === " " && h.preventDefault());
|
|
3009
3009
|
})
|
|
3010
3010
|
}
|
|
3011
3011
|
)
|
|
@@ -3015,10 +3015,10 @@ var Dt = "SelectItem", [tu, ls] = tt(Dt), is = s.forwardRef(
|
|
|
3015
3015
|
);
|
|
3016
3016
|
}
|
|
3017
3017
|
);
|
|
3018
|
-
|
|
3019
|
-
var it = "SelectItemText",
|
|
3018
|
+
ls.displayName = Dt;
|
|
3019
|
+
var it = "SelectItemText", is = s.forwardRef(
|
|
3020
3020
|
(e, r) => {
|
|
3021
|
-
const { __scopeSelect: t, className: a, style: n, ...o } = e, l = $e(it, t), c = Be(it, t), d =
|
|
3021
|
+
const { __scopeSelect: t, className: a, style: n, ...o } = e, l = $e(it, t), c = Be(it, t), d = ss(it, t), m = Hd(it, t), [f, p] = s.useState(null), v = ge(
|
|
3022
3022
|
r,
|
|
3023
3023
|
(I) => p(I),
|
|
3024
3024
|
d.onItemTextChange,
|
|
@@ -3026,26 +3026,26 @@ var it = "SelectItemText", cs = s.forwardRef(
|
|
|
3026
3026
|
var h;
|
|
3027
3027
|
return (h = c.itemTextRefCallback) == null ? void 0 : h.call(c, I, d.value, d.disabled);
|
|
3028
3028
|
}
|
|
3029
|
-
),
|
|
3030
|
-
() => /* @__PURE__ */ i.jsx("option", { value: d.value, disabled: d.disabled, children:
|
|
3031
|
-
[d.disabled, d.value,
|
|
3029
|
+
), S = f == null ? void 0 : f.textContent, _ = s.useMemo(
|
|
3030
|
+
() => /* @__PURE__ */ i.jsx("option", { value: d.value, disabled: d.disabled, children: S }, d.value),
|
|
3031
|
+
[d.disabled, d.value, S]
|
|
3032
3032
|
), { onNativeOptionAdd: y, onNativeOptionRemove: C } = m;
|
|
3033
3033
|
return je(() => (y(_), () => C(_)), [y, C, _]), /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
3034
3034
|
/* @__PURE__ */ i.jsx(J.span, { id: d.textId, ...o, ref: v }),
|
|
3035
|
-
d.isSelected && l.valueNode && !l.valueNodeHasChildren ?
|
|
3035
|
+
d.isSelected && l.valueNode && !l.valueNodeHasChildren ? Ha.createPortal(o.children, l.valueNode) : null
|
|
3036
3036
|
] });
|
|
3037
3037
|
}
|
|
3038
3038
|
);
|
|
3039
|
-
|
|
3040
|
-
var
|
|
3039
|
+
is.displayName = it;
|
|
3040
|
+
var cs = "SelectItemIndicator", ds = s.forwardRef(
|
|
3041
3041
|
(e, r) => {
|
|
3042
3042
|
const { __scopeSelect: t, ...a } = e;
|
|
3043
|
-
return
|
|
3043
|
+
return ss(cs, t).isSelected ? /* @__PURE__ */ i.jsx(J.span, { "aria-hidden": !0, ...a, ref: r }) : null;
|
|
3044
3044
|
}
|
|
3045
3045
|
);
|
|
3046
|
-
|
|
3047
|
-
var
|
|
3048
|
-
const t = Be(
|
|
3046
|
+
ds.displayName = cs;
|
|
3047
|
+
var Sr = "SelectScrollUpButton", us = s.forwardRef((e, r) => {
|
|
3048
|
+
const t = Be(Sr, e.__scopeSelect), a = Qr(Sr, e.__scopeSelect), [n, o] = s.useState(!1), l = ge(r, a.onScrollButtonChange);
|
|
3049
3049
|
return je(() => {
|
|
3050
3050
|
if (t.viewport && t.isPositioned) {
|
|
3051
3051
|
let c = function() {
|
|
@@ -3056,7 +3056,7 @@ var _r = "SelectScrollUpButton", fs = s.forwardRef((e, r) => {
|
|
|
3056
3056
|
return c(), d.addEventListener("scroll", c), () => d.removeEventListener("scroll", c);
|
|
3057
3057
|
}
|
|
3058
3058
|
}, [t.viewport, t.isPositioned]), n ? /* @__PURE__ */ i.jsx(
|
|
3059
|
-
|
|
3059
|
+
ps,
|
|
3060
3060
|
{
|
|
3061
3061
|
...e,
|
|
3062
3062
|
ref: l,
|
|
@@ -3067,9 +3067,9 @@ var _r = "SelectScrollUpButton", fs = s.forwardRef((e, r) => {
|
|
|
3067
3067
|
}
|
|
3068
3068
|
) : null;
|
|
3069
3069
|
});
|
|
3070
|
-
|
|
3071
|
-
var
|
|
3072
|
-
const t = Be(
|
|
3070
|
+
us.displayName = Sr;
|
|
3071
|
+
var _r = "SelectScrollDownButton", fs = s.forwardRef((e, r) => {
|
|
3072
|
+
const t = Be(_r, e.__scopeSelect), a = Qr(_r, e.__scopeSelect), [n, o] = s.useState(!1), l = ge(r, a.onScrollButtonChange);
|
|
3073
3073
|
return je(() => {
|
|
3074
3074
|
if (t.viewport && t.isPositioned) {
|
|
3075
3075
|
let c = function() {
|
|
@@ -3080,7 +3080,7 @@ var Cr = "SelectScrollDownButton", ps = s.forwardRef((e, r) => {
|
|
|
3080
3080
|
return c(), d.addEventListener("scroll", c), () => d.removeEventListener("scroll", c);
|
|
3081
3081
|
}
|
|
3082
3082
|
}, [t.viewport, t.isPositioned]), n ? /* @__PURE__ */ i.jsx(
|
|
3083
|
-
|
|
3083
|
+
ps,
|
|
3084
3084
|
{
|
|
3085
3085
|
...e,
|
|
3086
3086
|
ref: l,
|
|
@@ -3091,8 +3091,8 @@ var Cr = "SelectScrollDownButton", ps = s.forwardRef((e, r) => {
|
|
|
3091
3091
|
}
|
|
3092
3092
|
) : null;
|
|
3093
3093
|
});
|
|
3094
|
-
|
|
3095
|
-
var
|
|
3094
|
+
fs.displayName = _r;
|
|
3095
|
+
var ps = s.forwardRef((e, r) => {
|
|
3096
3096
|
const { __scopeSelect: t, onAutoScroll: a, ...n } = e, o = Be("SelectScrollButton", t), l = s.useRef(null), c = qt(t), d = s.useCallback(() => {
|
|
3097
3097
|
l.current !== null && (window.clearInterval(l.current), l.current = null);
|
|
3098
3098
|
}, []);
|
|
@@ -3119,26 +3119,26 @@ var ms = s.forwardRef((e, r) => {
|
|
|
3119
3119
|
})
|
|
3120
3120
|
}
|
|
3121
3121
|
);
|
|
3122
|
-
}),
|
|
3122
|
+
}), tu = "SelectSeparator", ms = s.forwardRef(
|
|
3123
3123
|
(e, r) => {
|
|
3124
3124
|
const { __scopeSelect: t, ...a } = e;
|
|
3125
3125
|
return /* @__PURE__ */ i.jsx(J.div, { "aria-hidden": !0, ...a, ref: r });
|
|
3126
3126
|
}
|
|
3127
3127
|
);
|
|
3128
|
-
|
|
3129
|
-
var
|
|
3128
|
+
ms.displayName = tu;
|
|
3129
|
+
var Cr = "SelectArrow", ru = s.forwardRef(
|
|
3130
3130
|
(e, r) => {
|
|
3131
|
-
const { __scopeSelect: t, ...a } = e, n = Yt(t), o = $e(
|
|
3132
|
-
return o.open && l.position === "popper" ? /* @__PURE__ */ i.jsx(
|
|
3131
|
+
const { __scopeSelect: t, ...a } = e, n = Yt(t), o = $e(Cr, t), l = Be(Cr, t);
|
|
3132
|
+
return o.open && l.position === "popper" ? /* @__PURE__ */ i.jsx($a, { ...n, ...a, ref: r }) : null;
|
|
3133
3133
|
}
|
|
3134
3134
|
);
|
|
3135
|
-
|
|
3136
|
-
function
|
|
3135
|
+
ru.displayName = Cr;
|
|
3136
|
+
function gs(e) {
|
|
3137
3137
|
return e === "" || e === void 0;
|
|
3138
3138
|
}
|
|
3139
|
-
var
|
|
3139
|
+
var vs = s.forwardRef(
|
|
3140
3140
|
(e, r) => {
|
|
3141
|
-
const { value: t, ...a } = e, n = s.useRef(null), o = ge(r, n), l =
|
|
3141
|
+
const { value: t, ...a } = e, n = s.useRef(null), o = ge(r, n), l = yl(t);
|
|
3142
3142
|
return s.useEffect(() => {
|
|
3143
3143
|
const c = n.current, d = window.HTMLSelectElement.prototype, f = Object.getOwnPropertyDescriptor(
|
|
3144
3144
|
d,
|
|
@@ -3148,11 +3148,11 @@ var hs = s.forwardRef(
|
|
|
3148
3148
|
const p = new Event("change", { bubbles: !0 });
|
|
3149
3149
|
f.call(c, t), c.dispatchEvent(p);
|
|
3150
3150
|
}
|
|
3151
|
-
}, [l, t]), /* @__PURE__ */ i.jsx(
|
|
3151
|
+
}, [l, t]), /* @__PURE__ */ i.jsx(bl, { asChild: !0, children: /* @__PURE__ */ i.jsx("select", { ...a, ref: o, defaultValue: t }) });
|
|
3152
3152
|
}
|
|
3153
3153
|
);
|
|
3154
|
-
|
|
3155
|
-
function
|
|
3154
|
+
vs.displayName = "BubbleSelect";
|
|
3155
|
+
function hs(e) {
|
|
3156
3156
|
const r = Bt(e), t = s.useRef(""), a = s.useRef(0), n = s.useCallback(
|
|
3157
3157
|
(l) => {
|
|
3158
3158
|
const c = t.current + l;
|
|
@@ -3166,21 +3166,21 @@ function xs(e) {
|
|
|
3166
3166
|
}, []);
|
|
3167
3167
|
return s.useEffect(() => () => window.clearTimeout(a.current), []), [t, n, o];
|
|
3168
3168
|
}
|
|
3169
|
-
function
|
|
3169
|
+
function xs(e, r, t) {
|
|
3170
3170
|
const n = r.length > 1 && Array.from(r).every((m) => m === r[0]) ? r[0] : r, o = t ? e.indexOf(t) : -1;
|
|
3171
|
-
let l =
|
|
3171
|
+
let l = au(e, Math.max(o, 0));
|
|
3172
3172
|
n.length === 1 && (l = l.filter((m) => m !== t));
|
|
3173
3173
|
const d = l.find(
|
|
3174
3174
|
(m) => m.textValue.toLowerCase().startsWith(n.toLowerCase())
|
|
3175
3175
|
);
|
|
3176
3176
|
return d !== t ? d : void 0;
|
|
3177
3177
|
}
|
|
3178
|
-
function
|
|
3178
|
+
function au(e, r) {
|
|
3179
3179
|
return e.map((t, a) => e[(r + a) % e.length]);
|
|
3180
3180
|
}
|
|
3181
|
-
var
|
|
3182
|
-
const
|
|
3183
|
-
|
|
3181
|
+
var nu = Ko, ys = Wo, ou = qo, su = Yo, lu = Xo, bs = Zo, iu = ts, cu = as, ws = os, Ss = ls, du = is, uu = ds, _s = us, Cs = fs, Ns = ms;
|
|
3182
|
+
const fu = nu, If = cu, pu = ou, Es = s.forwardRef(({ className: e, children: r, ...t }, a) => /* @__PURE__ */ i.jsxs(
|
|
3183
|
+
ys,
|
|
3184
3184
|
{
|
|
3185
3185
|
ref: a,
|
|
3186
3186
|
className: j(
|
|
@@ -3190,33 +3190,33 @@ const pu = ou, Df = du, mu = su, As = s.forwardRef(({ className: e, children: r,
|
|
|
3190
3190
|
...t,
|
|
3191
3191
|
children: [
|
|
3192
3192
|
r,
|
|
3193
|
-
/* @__PURE__ */ i.jsx(
|
|
3193
|
+
/* @__PURE__ */ i.jsx(su, { asChild: !0, children: /* @__PURE__ */ i.jsx(Er, { className: "al-h-4 al-w-4 al-opacity-50 al-ml-2" }) })
|
|
3194
3194
|
]
|
|
3195
3195
|
}
|
|
3196
3196
|
));
|
|
3197
|
-
|
|
3198
|
-
const
|
|
3199
|
-
|
|
3197
|
+
Es.displayName = ys.displayName;
|
|
3198
|
+
const As = s.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i.jsx(
|
|
3199
|
+
_s,
|
|
3200
3200
|
{
|
|
3201
3201
|
ref: t,
|
|
3202
3202
|
className: j("al-flex al-cursor-default al-items-center al-justify-center al-py-1", e),
|
|
3203
3203
|
...r,
|
|
3204
|
-
children: /* @__PURE__ */ i.jsx(
|
|
3204
|
+
children: /* @__PURE__ */ i.jsx(pl, { className: "al-h-4 al-w-4" })
|
|
3205
3205
|
}
|
|
3206
3206
|
));
|
|
3207
|
-
|
|
3208
|
-
const
|
|
3209
|
-
|
|
3207
|
+
As.displayName = _s.displayName;
|
|
3208
|
+
const Rs = s.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i.jsx(
|
|
3209
|
+
Cs,
|
|
3210
3210
|
{
|
|
3211
3211
|
ref: t,
|
|
3212
3212
|
className: j("al-flex al-cursor-default al-items-center al-justify-center al-py-1", e),
|
|
3213
3213
|
...r,
|
|
3214
|
-
children: /* @__PURE__ */ i.jsx(
|
|
3214
|
+
children: /* @__PURE__ */ i.jsx(Er, { className: "al-h-4 al-w-4" })
|
|
3215
3215
|
}
|
|
3216
3216
|
));
|
|
3217
|
-
|
|
3218
|
-
const
|
|
3219
|
-
|
|
3217
|
+
Rs.displayName = Cs.displayName;
|
|
3218
|
+
const Is = s.forwardRef(({ className: e, children: r, position: t = "popper", ...a }, n) => /* @__PURE__ */ i.jsx(lu, { children: /* @__PURE__ */ i.jsxs(
|
|
3219
|
+
bs,
|
|
3220
3220
|
{
|
|
3221
3221
|
ref: n,
|
|
3222
3222
|
className: j(
|
|
@@ -3227,9 +3227,9 @@ const Ms = s.forwardRef(({ className: e, children: r, position: t = "popper", ..
|
|
|
3227
3227
|
position: t,
|
|
3228
3228
|
...a,
|
|
3229
3229
|
children: [
|
|
3230
|
-
/* @__PURE__ */ i.jsx(
|
|
3230
|
+
/* @__PURE__ */ i.jsx(As, {}),
|
|
3231
3231
|
/* @__PURE__ */ i.jsx(
|
|
3232
|
-
|
|
3232
|
+
iu,
|
|
3233
3233
|
{
|
|
3234
3234
|
className: j(
|
|
3235
3235
|
"al-p-1",
|
|
@@ -3238,22 +3238,22 @@ const Ms = s.forwardRef(({ className: e, children: r, position: t = "popper", ..
|
|
|
3238
3238
|
children: r
|
|
3239
3239
|
}
|
|
3240
3240
|
),
|
|
3241
|
-
/* @__PURE__ */ i.jsx(
|
|
3241
|
+
/* @__PURE__ */ i.jsx(Rs, {})
|
|
3242
3242
|
]
|
|
3243
3243
|
}
|
|
3244
3244
|
) }));
|
|
3245
|
-
|
|
3246
|
-
const
|
|
3247
|
-
|
|
3245
|
+
Is.displayName = bs.displayName;
|
|
3246
|
+
const mu = s.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i.jsx(
|
|
3247
|
+
ws,
|
|
3248
3248
|
{
|
|
3249
3249
|
ref: t,
|
|
3250
3250
|
className: j("al-py-1.5 al-pl-8 al-pr-2 al-text-sm al-font-semibold", e),
|
|
3251
3251
|
...r
|
|
3252
3252
|
}
|
|
3253
3253
|
));
|
|
3254
|
-
|
|
3255
|
-
const
|
|
3256
|
-
|
|
3254
|
+
mu.displayName = ws.displayName;
|
|
3255
|
+
const Ms = s.forwardRef(({ className: e, children: r, ...t }, a) => /* @__PURE__ */ i.jsxs(
|
|
3256
|
+
Ss,
|
|
3257
3257
|
{
|
|
3258
3258
|
ref: a,
|
|
3259
3259
|
className: j(
|
|
@@ -3262,22 +3262,22 @@ const Ds = s.forwardRef(({ className: e, children: r, ...t }, a) => /* @__PURE__
|
|
|
3262
3262
|
),
|
|
3263
3263
|
...t,
|
|
3264
3264
|
children: [
|
|
3265
|
-
/* @__PURE__ */ i.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__ */ i.jsx(
|
|
3266
|
-
/* @__PURE__ */ i.jsx(
|
|
3265
|
+
/* @__PURE__ */ i.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__ */ i.jsx(uu, { children: /* @__PURE__ */ i.jsx(Ma, { className: "al-h-4 al-w-4" }) }) }),
|
|
3266
|
+
/* @__PURE__ */ i.jsx(du, { children: r })
|
|
3267
3267
|
]
|
|
3268
3268
|
}
|
|
3269
3269
|
));
|
|
3270
|
-
|
|
3271
|
-
const
|
|
3272
|
-
|
|
3270
|
+
Ms.displayName = Ss.displayName;
|
|
3271
|
+
const gu = s.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i.jsx(
|
|
3272
|
+
Ns,
|
|
3273
3273
|
{
|
|
3274
3274
|
ref: t,
|
|
3275
3275
|
className: j("al--mx-1 al-my-1 al-h-px al-bg-muted", e),
|
|
3276
3276
|
...r
|
|
3277
3277
|
}
|
|
3278
3278
|
));
|
|
3279
|
-
|
|
3280
|
-
const
|
|
3279
|
+
gu.displayName = Ns.displayName;
|
|
3280
|
+
const vu = ze(
|
|
3281
3281
|
[
|
|
3282
3282
|
"al-flex al-items-center al-justify-between al-rounded-md",
|
|
3283
3283
|
"al-text-sm al-font-normal",
|
|
@@ -3333,97 +3333,37 @@ const hu = ze(
|
|
|
3333
3333
|
size: "default"
|
|
3334
3334
|
}
|
|
3335
3335
|
}
|
|
3336
|
-
),
|
|
3337
|
-
({ options: e, onChange: r, value: t, placeholder: a, className: n, disabled: o, icon: l, variant: c, size: d, open: m }, f) => /* @__PURE__ */ i.jsxs(
|
|
3338
|
-
/* @__PURE__ */ i.jsxs(
|
|
3336
|
+
), hu = xe(
|
|
3337
|
+
({ options: e, onChange: r, value: t, placeholder: a, className: n, disabled: o, icon: l, variant: c, size: d, open: m }, f) => /* @__PURE__ */ i.jsxs(fu, { value: t, onValueChange: r, disabled: o, open: m, children: [
|
|
3338
|
+
/* @__PURE__ */ i.jsxs(Es, { ref: f, className: j(vu({ variant: c, size: d, className: n })), children: [
|
|
3339
3339
|
l && /* @__PURE__ */ i.jsx("div", { className: "al-mr-2", children: l }),
|
|
3340
|
-
/* @__PURE__ */ i.jsx(
|
|
3340
|
+
/* @__PURE__ */ i.jsx(pu, { placeholder: a })
|
|
3341
3341
|
] }),
|
|
3342
|
-
/* @__PURE__ */ i.jsx(
|
|
3342
|
+
/* @__PURE__ */ i.jsx(Is, { children: e.map((p) => /* @__PURE__ */ i.jsx(Ms, { value: p.value, children: p.label }, p.value)) })
|
|
3343
3343
|
] })
|
|
3344
3344
|
);
|
|
3345
|
-
|
|
3346
|
-
/**
|
|
3347
|
-
* @license @tabler/icons-react v3.34.1 - MIT
|
|
3348
|
-
*
|
|
3349
|
-
* This source code is licensed under the MIT license.
|
|
3350
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
3351
|
-
*/
|
|
3352
|
-
var yu = {
|
|
3353
|
-
outline: {
|
|
3354
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
3355
|
-
width: 24,
|
|
3356
|
-
height: 24,
|
|
3357
|
-
viewBox: "0 0 24 24",
|
|
3358
|
-
fill: "none",
|
|
3359
|
-
stroke: "currentColor",
|
|
3360
|
-
strokeWidth: 2,
|
|
3361
|
-
strokeLinecap: "round",
|
|
3362
|
-
strokeLinejoin: "round"
|
|
3363
|
-
},
|
|
3364
|
-
filled: {
|
|
3365
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
3366
|
-
width: 24,
|
|
3367
|
-
height: 24,
|
|
3368
|
-
viewBox: "0 0 24 24",
|
|
3369
|
-
fill: "currentColor",
|
|
3370
|
-
stroke: "none"
|
|
3371
|
-
}
|
|
3372
|
-
};
|
|
3373
|
-
/**
|
|
3374
|
-
* @license @tabler/icons-react v3.34.1 - MIT
|
|
3375
|
-
*
|
|
3376
|
-
* This source code is licensed under the MIT license.
|
|
3377
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
3378
|
-
*/
|
|
3379
|
-
const ea = (e, r, t, a) => {
|
|
3380
|
-
const n = he(
|
|
3381
|
-
({ color: o = "currentColor", size: l = 24, stroke: c = 2, title: d, className: m, children: f, ...p }, v) => tr(
|
|
3382
|
-
"svg",
|
|
3383
|
-
{
|
|
3384
|
-
ref: v,
|
|
3385
|
-
...yu[e],
|
|
3386
|
-
width: l,
|
|
3387
|
-
height: l,
|
|
3388
|
-
className: ["tabler-icon", `tabler-icon-${r}`, m].join(" "),
|
|
3389
|
-
...e === "filled" ? {
|
|
3390
|
-
fill: o
|
|
3391
|
-
} : {
|
|
3392
|
-
strokeWidth: c,
|
|
3393
|
-
stroke: o
|
|
3394
|
-
},
|
|
3395
|
-
...p
|
|
3396
|
-
},
|
|
3397
|
-
[
|
|
3398
|
-
d && tr("title", { key: "svg-title" }, d),
|
|
3399
|
-
...a.map(([w, _]) => tr(w, _)),
|
|
3400
|
-
...Array.isArray(f) ? f : [f]
|
|
3401
|
-
]
|
|
3402
|
-
)
|
|
3403
|
-
);
|
|
3404
|
-
return n.displayName = `${t}`, n;
|
|
3405
|
-
};
|
|
3345
|
+
hu.displayName = "NativeSelect";
|
|
3406
3346
|
/**
|
|
3407
3347
|
* @license @tabler/icons-react v3.34.1 - MIT
|
|
3408
3348
|
*
|
|
3409
3349
|
* This source code is licensed under the MIT license.
|
|
3410
3350
|
* See the LICENSE file in the root directory of this source tree.
|
|
3411
3351
|
*/
|
|
3412
|
-
const
|
|
3352
|
+
const xu = [["path", { d: "M5 12l5 5l10 -10", key: "svg-0" }]], yu = jr("outline", "check", "Check", xu);
|
|
3413
3353
|
/**
|
|
3414
3354
|
* @license @tabler/icons-react v3.34.1 - MIT
|
|
3415
3355
|
*
|
|
3416
3356
|
* This source code is licensed under the MIT license.
|
|
3417
3357
|
* See the LICENSE file in the root directory of this source tree.
|
|
3418
3358
|
*/
|
|
3419
|
-
const
|
|
3359
|
+
const bu = [["path", { d: "M6 9l6 6l6 -6", key: "svg-0" }]], wu = jr("outline", "chevron-down", "ChevronDown", bu);
|
|
3420
3360
|
/**
|
|
3421
3361
|
* @license @tabler/icons-react v3.34.1 - MIT
|
|
3422
3362
|
*
|
|
3423
3363
|
* This source code is licensed under the MIT license.
|
|
3424
3364
|
* See the LICENSE file in the root directory of this source tree.
|
|
3425
3365
|
*/
|
|
3426
|
-
const
|
|
3366
|
+
const Su = [["path", { d: "M9 6l6 6l-6 6", key: "svg-0" }]], _u = jr("outline", "chevron-right", "ChevronRight", Su), Mf = ({
|
|
3427
3367
|
options: e,
|
|
3428
3368
|
value: r,
|
|
3429
3369
|
onChange: t,
|
|
@@ -3437,29 +3377,29 @@ const Cu = [["path", { d: "M9 6l6 6l-6 6", key: "svg-0" }]], Nu = ea("outline",
|
|
|
3437
3377
|
showApplyButton: f = !1,
|
|
3438
3378
|
showClearButton: p = !1,
|
|
3439
3379
|
onLoadMore: v,
|
|
3440
|
-
hasMore:
|
|
3380
|
+
hasMore: S = !1,
|
|
3441
3381
|
valueLabels: _,
|
|
3442
3382
|
onSearch: y,
|
|
3443
3383
|
onOpenChange: C,
|
|
3444
3384
|
popoverContentProps: I
|
|
3445
3385
|
}) => {
|
|
3446
|
-
const [h, D] =
|
|
3386
|
+
const [h, D] = tr(!1), [H, F] = tr(!1), W = rr(null), O = rr(null), de = rr(/* @__PURE__ */ new Map()), Y = _t(() => d ? Array.isArray(r) ? r : r ? [r] : [] : r ? [r] : [], [r, d]), [Q, re] = tr(Y());
|
|
3447
3387
|
Ct(() => {
|
|
3448
|
-
e.forEach((
|
|
3449
|
-
de.current.set(
|
|
3388
|
+
e.forEach((w) => {
|
|
3389
|
+
de.current.set(w.value, w.label);
|
|
3450
3390
|
});
|
|
3451
3391
|
}, [e]), Ct(() => {
|
|
3452
3392
|
(!f || !h) && re(Y());
|
|
3453
3393
|
}, [Y, f, h]), Ct(() => {
|
|
3454
3394
|
if (!v || !h)
|
|
3455
3395
|
return;
|
|
3456
|
-
const
|
|
3396
|
+
const w = setTimeout(() => {
|
|
3457
3397
|
const ee = W.current;
|
|
3458
|
-
ee && (
|
|
3398
|
+
ee && (O.current && (O.current.disconnect(), O.current = null), O.current = new IntersectionObserver(
|
|
3459
3399
|
(ne) => {
|
|
3460
3400
|
const [b] = ne;
|
|
3461
3401
|
b.isIntersecting && setTimeout(async () => {
|
|
3462
|
-
if (
|
|
3402
|
+
if (S && !H && v) {
|
|
3463
3403
|
F(!0);
|
|
3464
3404
|
try {
|
|
3465
3405
|
await v();
|
|
@@ -3474,56 +3414,56 @@ const Cu = [["path", { d: "M9 6l6 6l-6 6", key: "svg-0" }]], Nu = ea("outline",
|
|
|
3474
3414
|
threshold: 0.1,
|
|
3475
3415
|
rootMargin: "20px"
|
|
3476
3416
|
}
|
|
3477
|
-
),
|
|
3417
|
+
), O.current.observe(ee));
|
|
3478
3418
|
}, 300);
|
|
3479
3419
|
return () => {
|
|
3480
|
-
clearTimeout(
|
|
3420
|
+
clearTimeout(w);
|
|
3481
3421
|
};
|
|
3482
|
-
}, [v, h,
|
|
3483
|
-
|
|
3422
|
+
}, [v, h, S, H]), Ct(() => () => {
|
|
3423
|
+
O.current && (O.current.disconnect(), O.current = null);
|
|
3484
3424
|
}, []);
|
|
3485
|
-
const
|
|
3486
|
-
(
|
|
3487
|
-
if (_ && _[
|
|
3488
|
-
return _[
|
|
3489
|
-
const ee = e.find((b) => b.value ===
|
|
3425
|
+
const k = _t(
|
|
3426
|
+
(w) => {
|
|
3427
|
+
if (_ && _[w])
|
|
3428
|
+
return _[w];
|
|
3429
|
+
const ee = e.find((b) => b.value === w);
|
|
3490
3430
|
if (ee)
|
|
3491
3431
|
return ee.label;
|
|
3492
|
-
const ne = de.current.get(
|
|
3493
|
-
return ne || (v ? "Loading..." :
|
|
3432
|
+
const ne = de.current.get(w);
|
|
3433
|
+
return ne || (v ? "Loading..." : w);
|
|
3494
3434
|
},
|
|
3495
3435
|
[e, _, v]
|
|
3496
|
-
), B = (
|
|
3436
|
+
), B = (w) => {
|
|
3497
3437
|
if (d) {
|
|
3498
|
-
const ee = Q.includes(
|
|
3438
|
+
const ee = Q.includes(w) ? Q.filter((ne) => ne !== w) : [...Q, w];
|
|
3499
3439
|
re(ee), f || t(ee);
|
|
3500
3440
|
} else
|
|
3501
|
-
t(
|
|
3441
|
+
t(w), ae(!1);
|
|
3502
3442
|
}, U = () => {
|
|
3503
3443
|
d && t(Q), ae(!1);
|
|
3504
3444
|
}, X = () => {
|
|
3505
|
-
const
|
|
3506
|
-
re([]), f || (t(
|
|
3445
|
+
const w = d ? [] : "";
|
|
3446
|
+
re([]), f || (t(w), ae(!1));
|
|
3507
3447
|
}, q = _t(
|
|
3508
|
-
(
|
|
3509
|
-
y && y(
|
|
3448
|
+
(w) => {
|
|
3449
|
+
y && y(w);
|
|
3510
3450
|
},
|
|
3511
3451
|
[y]
|
|
3512
3452
|
), oe = () => {
|
|
3513
3453
|
if (d) {
|
|
3514
|
-
const
|
|
3515
|
-
return
|
|
3454
|
+
const w = f ? Array.isArray(r) ? r : r ? [r] : [] : Q;
|
|
3455
|
+
return w.length === 0 ? a || "All Items" : w.map((ne) => k(ne)).join(", ");
|
|
3516
3456
|
} else
|
|
3517
|
-
return (r ?
|
|
3457
|
+
return (r ? k(r) : void 0) || a || "Select item";
|
|
3518
3458
|
}, ae = _t(
|
|
3519
|
-
(
|
|
3520
|
-
D(
|
|
3459
|
+
(w) => {
|
|
3460
|
+
D(w), C && C(w);
|
|
3521
3461
|
},
|
|
3522
3462
|
[C]
|
|
3523
3463
|
);
|
|
3524
|
-
return /* @__PURE__ */ i.jsxs(
|
|
3525
|
-
/* @__PURE__ */ i.jsx(
|
|
3526
|
-
|
|
3464
|
+
return /* @__PURE__ */ i.jsxs(wl, { open: h, onOpenChange: ae, children: [
|
|
3465
|
+
/* @__PURE__ */ i.jsx(Sl, { asChild: !0, children: /* @__PURE__ */ i.jsxs(
|
|
3466
|
+
ar,
|
|
3527
3467
|
{
|
|
3528
3468
|
size: "sm",
|
|
3529
3469
|
variant: "outline",
|
|
@@ -3538,55 +3478,55 @@ const Cu = [["path", { d: "M9 6l6 6l-6 6", key: "svg-0" }]], Nu = ea("outline",
|
|
|
3538
3478
|
children: [
|
|
3539
3479
|
c && /* @__PURE__ */ i.jsx("div", { className: "al-flex-shrink-0", children: c }),
|
|
3540
3480
|
/* @__PURE__ */ i.jsx("span", { className: "al-flex-1 al-min-w-0 al-truncate al-text-left", children: m ? a : oe() }),
|
|
3541
|
-
(I == null ? void 0 : I.side) === "right" ? /* @__PURE__ */ i.jsx(
|
|
3481
|
+
(I == null ? void 0 : I.side) === "right" ? /* @__PURE__ */ i.jsx(_u, { className: "al-ml-2 al-size-4 al-shrink-0 al-opacity-50" }) : /* @__PURE__ */ i.jsx(wu, { className: "al-mr-2 al-size-4 al-shrink-0 al-opacity-50" })
|
|
3542
3482
|
]
|
|
3543
3483
|
}
|
|
3544
3484
|
) }),
|
|
3545
3485
|
/* @__PURE__ */ i.jsx(
|
|
3546
|
-
|
|
3486
|
+
_l,
|
|
3547
3487
|
{
|
|
3548
3488
|
...I,
|
|
3549
3489
|
className: j("!al-w-56 !al-p-0", I == null ? void 0 : I.className),
|
|
3550
3490
|
id: `${l}-combobox-content`,
|
|
3551
3491
|
children: /* @__PURE__ */ i.jsxs(Hr, { shouldFilter: !y, children: [
|
|
3552
3492
|
d && f && /* @__PURE__ */ i.jsxs("div", { className: "al-flex al-justify-between al-items-center al-p-2 al-border-b", children: [
|
|
3553
|
-
/* @__PURE__ */ i.jsx(
|
|
3554
|
-
/* @__PURE__ */ i.jsx(
|
|
3493
|
+
/* @__PURE__ */ i.jsx(Cl, { variant: "body", children: a }),
|
|
3494
|
+
/* @__PURE__ */ i.jsx(ar, { onClick: U, size: "sm", children: "Apply" })
|
|
3555
3495
|
] }),
|
|
3556
3496
|
/* @__PURE__ */ i.jsx(
|
|
3557
|
-
|
|
3497
|
+
eo,
|
|
3558
3498
|
{
|
|
3559
3499
|
placeholder: n,
|
|
3560
3500
|
className: "al-h-9",
|
|
3561
3501
|
onValueChange: q
|
|
3562
3502
|
}
|
|
3563
3503
|
),
|
|
3564
|
-
/* @__PURE__ */ i.jsxs(
|
|
3565
|
-
/* @__PURE__ */ i.jsx(
|
|
3566
|
-
/* @__PURE__ */ i.jsx(
|
|
3567
|
-
|
|
3504
|
+
/* @__PURE__ */ i.jsxs(to, { children: [
|
|
3505
|
+
/* @__PURE__ */ i.jsx(ro, { children: "No matches found." }),
|
|
3506
|
+
/* @__PURE__ */ i.jsx(ao, { className: "al-overflow-auto", children: e.map((w) => /* @__PURE__ */ i.jsx(
|
|
3507
|
+
no,
|
|
3568
3508
|
{
|
|
3569
|
-
value:
|
|
3570
|
-
onSelect: () => B(
|
|
3571
|
-
"aria-label":
|
|
3509
|
+
value: w.label,
|
|
3510
|
+
onSelect: () => B(w.value),
|
|
3511
|
+
"aria-label": w.label,
|
|
3572
3512
|
className: "al-cursor-pointer",
|
|
3573
|
-
title:
|
|
3513
|
+
title: w.label,
|
|
3574
3514
|
children: /* @__PURE__ */ i.jsxs("div", { className: "al-flex al-items-center al-gap-2", children: [
|
|
3575
3515
|
/* @__PURE__ */ i.jsx(
|
|
3576
|
-
|
|
3516
|
+
yu,
|
|
3577
3517
|
{
|
|
3578
3518
|
className: j(
|
|
3579
3519
|
"al-mr-2 al-size-4",
|
|
3580
|
-
d ? Q.includes(
|
|
3520
|
+
d ? Q.includes(w.value) ? "al-opacity-100" : "al-opacity-0" : r === w.value ? "al-opacity-100" : "al-opacity-0"
|
|
3581
3521
|
)
|
|
3582
3522
|
}
|
|
3583
3523
|
),
|
|
3584
|
-
/* @__PURE__ */ i.jsx("span", { className: "al-truncate", children:
|
|
3524
|
+
/* @__PURE__ */ i.jsx("span", { className: "al-truncate", children: w.label })
|
|
3585
3525
|
] })
|
|
3586
3526
|
},
|
|
3587
|
-
|
|
3527
|
+
w.value
|
|
3588
3528
|
)) }),
|
|
3589
|
-
v &&
|
|
3529
|
+
v && S && /* @__PURE__ */ i.jsx(
|
|
3590
3530
|
"div",
|
|
3591
3531
|
{
|
|
3592
3532
|
ref: W,
|
|
@@ -3600,7 +3540,7 @@ const Cu = [["path", { d: "M9 6l6 6l-6 6", key: "svg-0" }]], Nu = ea("outline",
|
|
|
3600
3540
|
)
|
|
3601
3541
|
] }),
|
|
3602
3542
|
p && /* @__PURE__ */ i.jsx("div", { className: "al-border-t al-p-2", children: /* @__PURE__ */ i.jsx(
|
|
3603
|
-
|
|
3543
|
+
ar,
|
|
3604
3544
|
{
|
|
3605
3545
|
size: "sm",
|
|
3606
3546
|
variant: "outline",
|
|
@@ -3614,9 +3554,9 @@ const Cu = [["path", { d: "M9 6l6 6l-6 6", key: "svg-0" }]], Nu = ea("outline",
|
|
|
3614
3554
|
)
|
|
3615
3555
|
] });
|
|
3616
3556
|
};
|
|
3617
|
-
var
|
|
3557
|
+
var ea = "Tabs", [Cu, Df] = qe(ea, [
|
|
3618
3558
|
$t
|
|
3619
|
-
]),
|
|
3559
|
+
]), Ds = $t(), [Nu, ta] = Cu(ea), Ts = s.forwardRef(
|
|
3620
3560
|
(e, r) => {
|
|
3621
3561
|
const {
|
|
3622
3562
|
__scopeTabs: t,
|
|
@@ -3633,10 +3573,10 @@ var ta = "Tabs", [Eu, jf] = qe(ta, [
|
|
|
3633
3573
|
defaultProp: o
|
|
3634
3574
|
});
|
|
3635
3575
|
return /* @__PURE__ */ i.jsx(
|
|
3636
|
-
|
|
3576
|
+
Nu,
|
|
3637
3577
|
{
|
|
3638
3578
|
scope: t,
|
|
3639
|
-
baseId:
|
|
3579
|
+
baseId: he(),
|
|
3640
3580
|
value: p,
|
|
3641
3581
|
onValueChange: v,
|
|
3642
3582
|
orientation: l,
|
|
@@ -3655,12 +3595,12 @@ var ta = "Tabs", [Eu, jf] = qe(ta, [
|
|
|
3655
3595
|
);
|
|
3656
3596
|
}
|
|
3657
3597
|
);
|
|
3658
|
-
|
|
3659
|
-
var
|
|
3598
|
+
Ts.displayName = ea;
|
|
3599
|
+
var js = "TabsList", Ps = s.forwardRef(
|
|
3660
3600
|
(e, r) => {
|
|
3661
|
-
const { __scopeTabs: t, loop: a = !0, ...n } = e, o =
|
|
3601
|
+
const { __scopeTabs: t, loop: a = !0, ...n } = e, o = ta(js, t), l = Ds(t);
|
|
3662
3602
|
return /* @__PURE__ */ i.jsx(
|
|
3663
|
-
|
|
3603
|
+
Va,
|
|
3664
3604
|
{
|
|
3665
3605
|
asChild: !0,
|
|
3666
3606
|
...l,
|
|
@@ -3680,12 +3620,12 @@ var Ps = "TabsList", ks = s.forwardRef(
|
|
|
3680
3620
|
);
|
|
3681
3621
|
}
|
|
3682
3622
|
);
|
|
3683
|
-
|
|
3684
|
-
var Os = "TabsTrigger",
|
|
3623
|
+
Ps.displayName = js;
|
|
3624
|
+
var Os = "TabsTrigger", ks = s.forwardRef(
|
|
3685
3625
|
(e, r) => {
|
|
3686
|
-
const { __scopeTabs: t, value: a, disabled: n = !1, ...o } = e, l =
|
|
3626
|
+
const { __scopeTabs: t, value: a, disabled: n = !1, ...o } = e, l = ta(Os, t), c = Ds(t), d = Ls(l.baseId, a), m = $s(l.baseId, a), f = a === l.value;
|
|
3687
3627
|
return /* @__PURE__ */ i.jsx(
|
|
3688
|
-
|
|
3628
|
+
La,
|
|
3689
3629
|
{
|
|
3690
3630
|
asChild: !0,
|
|
3691
3631
|
...c,
|
|
@@ -3720,10 +3660,10 @@ var Os = "TabsTrigger", Vs = s.forwardRef(
|
|
|
3720
3660
|
);
|
|
3721
3661
|
}
|
|
3722
3662
|
);
|
|
3723
|
-
|
|
3724
|
-
var
|
|
3663
|
+
ks.displayName = Os;
|
|
3664
|
+
var Vs = "TabsContent", Fs = s.forwardRef(
|
|
3725
3665
|
(e, r) => {
|
|
3726
|
-
const { __scopeTabs: t, value: a, forceMount: n, children: o, ...l } = e, c =
|
|
3666
|
+
const { __scopeTabs: t, value: a, forceMount: n, children: o, ...l } = e, c = ta(Vs, t), d = Ls(c.baseId, a), m = $s(c.baseId, a), f = a === c.value, p = s.useRef(f);
|
|
3727
3667
|
return s.useEffect(() => {
|
|
3728
3668
|
const v = requestAnimationFrame(() => p.current = !1);
|
|
3729
3669
|
return () => cancelAnimationFrame(v);
|
|
@@ -3748,15 +3688,15 @@ var Fs = "TabsContent", Ls = s.forwardRef(
|
|
|
3748
3688
|
) });
|
|
3749
3689
|
}
|
|
3750
3690
|
);
|
|
3751
|
-
|
|
3752
|
-
function
|
|
3691
|
+
Fs.displayName = Vs;
|
|
3692
|
+
function Ls(e, r) {
|
|
3753
3693
|
return `${e}-trigger-${r}`;
|
|
3754
3694
|
}
|
|
3755
|
-
function
|
|
3695
|
+
function $s(e, r) {
|
|
3756
3696
|
return `${e}-content-${r}`;
|
|
3757
3697
|
}
|
|
3758
|
-
var
|
|
3759
|
-
const
|
|
3698
|
+
var Bs = Ts, Us = Ps, Gs = ks, Ks = Fs;
|
|
3699
|
+
const Eu = ze("", {
|
|
3760
3700
|
variants: {
|
|
3761
3701
|
variant: {
|
|
3762
3702
|
default: "",
|
|
@@ -3766,7 +3706,7 @@ const Ru = ze("", {
|
|
|
3766
3706
|
defaultVariants: {
|
|
3767
3707
|
variant: "default"
|
|
3768
3708
|
}
|
|
3769
|
-
}),
|
|
3709
|
+
}), Au = ze(
|
|
3770
3710
|
"al-inline-flex al-items-center al-justify-center al-text-muted-foreground",
|
|
3771
3711
|
{
|
|
3772
3712
|
variants: {
|
|
@@ -3779,7 +3719,7 @@ const Ru = ze("", {
|
|
|
3779
3719
|
variant: "default"
|
|
3780
3720
|
}
|
|
3781
3721
|
}
|
|
3782
|
-
),
|
|
3722
|
+
), Ru = ze(
|
|
3783
3723
|
"al-inline-flex al-items-center al-justify-center al-whitespace-nowrap al-text-sm al-font-medium al-ring-offset-background al-transition-all focus-visible:al-outline-none focus-visible:al-ring-2 focus-visible:al-ring-ring focus-visible:al-ring-offset-2 disabled:al-pointer-events-none disabled:al-opacity-50",
|
|
3784
3724
|
{
|
|
3785
3725
|
variants: {
|
|
@@ -3792,45 +3732,45 @@ const Ru = ze("", {
|
|
|
3792
3732
|
variant: "default"
|
|
3793
3733
|
}
|
|
3794
3734
|
}
|
|
3795
|
-
),
|
|
3735
|
+
), ra = s.createContext({
|
|
3796
3736
|
variant: "default"
|
|
3797
|
-
}),
|
|
3798
|
-
({ className: e, variant: r, ...t }, a) => /* @__PURE__ */ i.jsx(
|
|
3799
|
-
|
|
3737
|
+
}), Iu = s.forwardRef(
|
|
3738
|
+
({ className: e, variant: r, ...t }, a) => /* @__PURE__ */ i.jsx(ra.Provider, { value: { variant: r }, children: /* @__PURE__ */ i.jsx(
|
|
3739
|
+
Bs,
|
|
3800
3740
|
{
|
|
3801
3741
|
ref: a,
|
|
3802
|
-
className: j(
|
|
3742
|
+
className: j(Eu({ variant: r }), e),
|
|
3803
3743
|
...t
|
|
3804
3744
|
}
|
|
3805
3745
|
) })
|
|
3806
3746
|
);
|
|
3807
|
-
|
|
3808
|
-
const
|
|
3809
|
-
const { variant: a } = s.useContext(
|
|
3747
|
+
Iu.displayName = Bs.displayName;
|
|
3748
|
+
const Mu = s.forwardRef(({ className: e, ...r }, t) => {
|
|
3749
|
+
const { variant: a } = s.useContext(ra);
|
|
3810
3750
|
return /* @__PURE__ */ i.jsx(
|
|
3811
|
-
|
|
3751
|
+
Us,
|
|
3812
3752
|
{
|
|
3813
3753
|
ref: t,
|
|
3814
|
-
className: j(
|
|
3754
|
+
className: j(Au({ variant: a }), e),
|
|
3815
3755
|
...r
|
|
3816
3756
|
}
|
|
3817
3757
|
);
|
|
3818
3758
|
});
|
|
3819
|
-
|
|
3820
|
-
const
|
|
3821
|
-
const { variant: a } = s.useContext(
|
|
3759
|
+
Mu.displayName = Us.displayName;
|
|
3760
|
+
const Du = s.forwardRef(({ className: e, ...r }, t) => {
|
|
3761
|
+
const { variant: a } = s.useContext(ra);
|
|
3822
3762
|
return /* @__PURE__ */ i.jsx(
|
|
3823
|
-
|
|
3763
|
+
Gs,
|
|
3824
3764
|
{
|
|
3825
3765
|
ref: t,
|
|
3826
|
-
className: j(
|
|
3766
|
+
className: j(Ru({ variant: a }), e),
|
|
3827
3767
|
...r
|
|
3828
3768
|
}
|
|
3829
3769
|
);
|
|
3830
3770
|
});
|
|
3831
|
-
|
|
3832
|
-
const
|
|
3833
|
-
|
|
3771
|
+
Du.displayName = Gs.displayName;
|
|
3772
|
+
const Tu = s.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i.jsx(
|
|
3773
|
+
Ks,
|
|
3834
3774
|
{
|
|
3835
3775
|
ref: t,
|
|
3836
3776
|
className: j(
|
|
@@ -3840,13 +3780,13 @@ const Pu = s.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i.jsx(
|
|
|
3840
3780
|
...r
|
|
3841
3781
|
}
|
|
3842
3782
|
));
|
|
3843
|
-
|
|
3783
|
+
Tu.displayName = Ks.displayName;
|
|
3844
3784
|
var wt = (e) => e.type === "checkbox", Ge = (e) => e instanceof Date, we = (e) => e == null;
|
|
3845
|
-
const
|
|
3846
|
-
var pe = (e) => !we(e) && !Array.isArray(e) &&
|
|
3785
|
+
const Hs = (e) => typeof e == "object";
|
|
3786
|
+
var pe = (e) => !we(e) && !Array.isArray(e) && Hs(e) && !Ge(e), Ws = (e) => pe(e) && e.target ? wt(e.target) ? e.target.checked : e.target.value : e, ju = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, zs = (e, r) => e.has(ju(r)), Pu = (e) => {
|
|
3847
3787
|
const r = e.constructor && e.constructor.prototype;
|
|
3848
3788
|
return pe(r) && r.hasOwnProperty("isPrototypeOf");
|
|
3849
|
-
},
|
|
3789
|
+
}, aa = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
3850
3790
|
function ve(e) {
|
|
3851
3791
|
let r;
|
|
3852
3792
|
const t = Array.isArray(e), a = typeof FileList < "u" ? e instanceof FileList : !1;
|
|
@@ -3854,8 +3794,8 @@ function ve(e) {
|
|
|
3854
3794
|
r = new Date(e);
|
|
3855
3795
|
else if (e instanceof Set)
|
|
3856
3796
|
r = new Set(e);
|
|
3857
|
-
else if (!(
|
|
3858
|
-
if (r = t ? [] : {}, !t && !
|
|
3797
|
+
else if (!(aa && (e instanceof Blob || a)) && (t || pe(e)))
|
|
3798
|
+
if (r = t ? [] : {}, !t && !Pu(e))
|
|
3859
3799
|
r = e;
|
|
3860
3800
|
else
|
|
3861
3801
|
for (const n in e)
|
|
@@ -3869,9 +3809,9 @@ var Xt = (e) => Array.isArray(e) ? e.filter(Boolean) : [], fe = (e) => e === voi
|
|
|
3869
3809
|
return t;
|
|
3870
3810
|
const a = Xt(r.split(/[,[\].]+?/)).reduce((n, o) => we(n) ? n : n[o], e);
|
|
3871
3811
|
return fe(a) || a === e ? fe(e[r]) ? t : e[r] : a;
|
|
3872
|
-
}, _e = (e) => typeof e == "boolean",
|
|
3812
|
+
}, _e = (e) => typeof e == "boolean", na = (e) => /^\w*$/.test(e), qs = (e) => Xt(e.replace(/["|']|\]/g, "").split(/\.|\[/)), ce = (e, r, t) => {
|
|
3873
3813
|
let a = -1;
|
|
3874
|
-
const n =
|
|
3814
|
+
const n = na(r) ? [r] : qs(r), o = n.length, l = o - 1;
|
|
3875
3815
|
for (; ++a < o; ) {
|
|
3876
3816
|
const c = n[a];
|
|
3877
3817
|
let d = t;
|
|
@@ -3902,11 +3842,11 @@ const Tt = {
|
|
|
3902
3842
|
pattern: "pattern",
|
|
3903
3843
|
required: "required",
|
|
3904
3844
|
validate: "validate"
|
|
3905
|
-
},
|
|
3845
|
+
}, Ys = G.createContext(null), Zt = () => G.useContext(Ys), Ou = (e) => {
|
|
3906
3846
|
const { children: r, ...t } = e;
|
|
3907
|
-
return G.createElement(
|
|
3847
|
+
return G.createElement(Ys.Provider, { value: t }, r);
|
|
3908
3848
|
};
|
|
3909
|
-
var
|
|
3849
|
+
var Xs = (e, r, t, a = !0) => {
|
|
3910
3850
|
const n = {
|
|
3911
3851
|
defaultValues: r._defaultValues
|
|
3912
3852
|
};
|
|
@@ -3919,8 +3859,8 @@ var Zs = (e, r, t, a = !0) => {
|
|
|
3919
3859
|
});
|
|
3920
3860
|
return n;
|
|
3921
3861
|
};
|
|
3922
|
-
const
|
|
3923
|
-
function
|
|
3862
|
+
const oa = typeof window < "u" ? s.useLayoutEffect : s.useEffect;
|
|
3863
|
+
function ku(e) {
|
|
3924
3864
|
const r = Zt(), { control: t = r.control, disabled: a, name: n, exact: o } = e || {}, [l, c] = G.useState(t._formState), d = G.useRef({
|
|
3925
3865
|
isDirty: !1,
|
|
3926
3866
|
isLoading: !1,
|
|
@@ -3931,7 +3871,7 @@ function Fu(e) {
|
|
|
3931
3871
|
isValid: !1,
|
|
3932
3872
|
errors: !1
|
|
3933
3873
|
});
|
|
3934
|
-
return
|
|
3874
|
+
return oa(() => t._subscribe({
|
|
3935
3875
|
name: n,
|
|
3936
3876
|
formState: d.current,
|
|
3937
3877
|
exact: o,
|
|
@@ -3943,27 +3883,27 @@ function Fu(e) {
|
|
|
3943
3883
|
}
|
|
3944
3884
|
}), [n, a, o]), G.useEffect(() => {
|
|
3945
3885
|
d.current.isValid && t._setValid(!0);
|
|
3946
|
-
}, [t]), G.useMemo(() =>
|
|
3886
|
+
}, [t]), G.useMemo(() => Xs(l, t, d.current, !1), [l, t]);
|
|
3947
3887
|
}
|
|
3948
|
-
var Me = (e) => typeof e == "string",
|
|
3949
|
-
function
|
|
3888
|
+
var Me = (e) => typeof e == "string", Zs = (e, r, t, a, n) => Me(e) ? (a && r.watch.add(e), R(t, e, n)) : Array.isArray(e) ? e.map((o) => (a && r.watch.add(o), R(t, o))) : (a && (r.watchAll = !0), t);
|
|
3889
|
+
function Vu(e) {
|
|
3950
3890
|
const r = Zt(), { control: t = r.control, name: a, defaultValue: n, disabled: o, exact: l } = e || {}, c = G.useRef(n), [d, m] = G.useState(t._getWatch(a, c.current));
|
|
3951
|
-
return
|
|
3891
|
+
return oa(() => t._subscribe({
|
|
3952
3892
|
name: a,
|
|
3953
3893
|
formState: {
|
|
3954
3894
|
values: !0
|
|
3955
3895
|
},
|
|
3956
3896
|
exact: l,
|
|
3957
|
-
callback: (f) => !o && m(
|
|
3897
|
+
callback: (f) => !o && m(Zs(a, t._names, f.values || t._formValues, !1, c.current))
|
|
3958
3898
|
}), [a, t, o, l]), G.useEffect(() => t._removeUnmounted()), d;
|
|
3959
3899
|
}
|
|
3960
|
-
function
|
|
3961
|
-
const r = Zt(), { name: t, disabled: a, control: n = r.control, shouldUnregister: o } = e, l =
|
|
3900
|
+
function Fu(e) {
|
|
3901
|
+
const r = Zt(), { name: t, disabled: a, control: n = r.control, shouldUnregister: o } = e, l = zs(n._names.array, t), c = Vu({
|
|
3962
3902
|
control: n,
|
|
3963
3903
|
name: t,
|
|
3964
3904
|
defaultValue: R(n._formValues, t, R(n._defaultValues, t, e.defaultValue)),
|
|
3965
3905
|
exact: !0
|
|
3966
|
-
}), d =
|
|
3906
|
+
}), d = ku({
|
|
3967
3907
|
control: n,
|
|
3968
3908
|
name: t,
|
|
3969
3909
|
exact: !0
|
|
@@ -3994,11 +3934,11 @@ function $u(e) {
|
|
|
3994
3934
|
}
|
|
3995
3935
|
}), [d, t]), v = G.useCallback((C) => f.current.onChange({
|
|
3996
3936
|
target: {
|
|
3997
|
-
value:
|
|
3937
|
+
value: Ws(C),
|
|
3998
3938
|
name: t
|
|
3999
3939
|
},
|
|
4000
3940
|
type: Tt.CHANGE
|
|
4001
|
-
}), [t]),
|
|
3941
|
+
}), [t]), S = G.useCallback(() => f.current.onBlur({
|
|
4002
3942
|
target: {
|
|
4003
3943
|
value: R(n._formValues, t),
|
|
4004
3944
|
name: t
|
|
@@ -4017,9 +3957,9 @@ function $u(e) {
|
|
|
4017
3957
|
value: c,
|
|
4018
3958
|
..._e(a) || d.disabled ? { disabled: d.disabled || a } : {},
|
|
4019
3959
|
onChange: v,
|
|
4020
|
-
onBlur:
|
|
3960
|
+
onBlur: S,
|
|
4021
3961
|
ref: _
|
|
4022
|
-
}), [t, a, d.disabled, v,
|
|
3962
|
+
}), [t, a, d.disabled, v, S, _, c]);
|
|
4023
3963
|
return G.useEffect(() => {
|
|
4024
3964
|
const C = n._options.shouldUnregister || o;
|
|
4025
3965
|
n.register(t, {
|
|
@@ -4048,14 +3988,14 @@ function $u(e) {
|
|
|
4048
3988
|
fieldState: p
|
|
4049
3989
|
}), [y, d, p]);
|
|
4050
3990
|
}
|
|
4051
|
-
const
|
|
4052
|
-
var
|
|
3991
|
+
const Lu = (e) => e.render(Fu(e));
|
|
3992
|
+
var $u = (e, r, t, a, n) => r ? {
|
|
4053
3993
|
...t[e],
|
|
4054
3994
|
types: {
|
|
4055
3995
|
...t[e] && t[e].types ? t[e].types : {},
|
|
4056
3996
|
[a]: n || !0
|
|
4057
3997
|
}
|
|
4058
|
-
} : {}, dt = (e) => Array.isArray(e) ? e : [e],
|
|
3998
|
+
} : {}, dt = (e) => Array.isArray(e) ? e : [e], ya = () => {
|
|
4059
3999
|
let e = [];
|
|
4060
4000
|
return {
|
|
4061
4001
|
get observers() {
|
|
@@ -4074,9 +4014,9 @@ var Uu = (e, r, t, a, n) => r ? {
|
|
|
4074
4014
|
e = [];
|
|
4075
4015
|
}
|
|
4076
4016
|
};
|
|
4077
|
-
},
|
|
4017
|
+
}, Nr = (e) => we(e) || !Hs(e);
|
|
4078
4018
|
function Ve(e, r) {
|
|
4079
|
-
if (
|
|
4019
|
+
if (Nr(e) || Nr(r))
|
|
4080
4020
|
return e === r;
|
|
4081
4021
|
if (Ge(e) && Ge(r))
|
|
4082
4022
|
return e.getTime() === r.getTime();
|
|
@@ -4095,30 +4035,30 @@ function Ve(e, r) {
|
|
|
4095
4035
|
}
|
|
4096
4036
|
return !0;
|
|
4097
4037
|
}
|
|
4098
|
-
var be = (e) => pe(e) && !Object.keys(e).length,
|
|
4099
|
-
if (!
|
|
4038
|
+
var be = (e) => pe(e) && !Object.keys(e).length, sa = (e) => e.type === "file", Re = (e) => typeof e == "function", jt = (e) => {
|
|
4039
|
+
if (!aa)
|
|
4100
4040
|
return !1;
|
|
4101
4041
|
const r = e ? e.ownerDocument : 0;
|
|
4102
4042
|
return e instanceof (r && r.defaultView ? r.defaultView.HTMLElement : HTMLElement);
|
|
4103
|
-
},
|
|
4104
|
-
function
|
|
4043
|
+
}, Js = (e) => e.type === "select-multiple", la = (e) => e.type === "radio", Bu = (e) => la(e) || wt(e), ur = (e) => jt(e) && e.isConnected;
|
|
4044
|
+
function Uu(e, r) {
|
|
4105
4045
|
const t = r.slice(0, -1).length;
|
|
4106
4046
|
let a = 0;
|
|
4107
4047
|
for (; a < t; )
|
|
4108
4048
|
e = fe(e) ? a++ : e[r[a++]];
|
|
4109
4049
|
return e;
|
|
4110
4050
|
}
|
|
4111
|
-
function
|
|
4051
|
+
function Gu(e) {
|
|
4112
4052
|
for (const r in e)
|
|
4113
4053
|
if (e.hasOwnProperty(r) && !fe(e[r]))
|
|
4114
4054
|
return !1;
|
|
4115
4055
|
return !0;
|
|
4116
4056
|
}
|
|
4117
4057
|
function me(e, r) {
|
|
4118
|
-
const t = Array.isArray(r) ? r :
|
|
4119
|
-
return a && delete a[o], n !== 0 && (pe(a) && be(a) || Array.isArray(a) &&
|
|
4058
|
+
const t = Array.isArray(r) ? r : na(r) ? [r] : qs(r), a = t.length === 1 ? e : Uu(e, t), n = t.length - 1, o = t[n];
|
|
4059
|
+
return a && delete a[o], n !== 0 && (pe(a) && be(a) || Array.isArray(a) && Gu(a)) && me(e, t.slice(0, -1)), e;
|
|
4120
4060
|
}
|
|
4121
|
-
var
|
|
4061
|
+
var Qs = (e) => {
|
|
4122
4062
|
for (const r in e)
|
|
4123
4063
|
if (Re(e[r]))
|
|
4124
4064
|
return !0;
|
|
@@ -4128,22 +4068,22 @@ function Pt(e, r = {}) {
|
|
|
4128
4068
|
const t = Array.isArray(e);
|
|
4129
4069
|
if (pe(e) || t)
|
|
4130
4070
|
for (const a in e)
|
|
4131
|
-
Array.isArray(e[a]) || pe(e[a]) && !
|
|
4071
|
+
Array.isArray(e[a]) || pe(e[a]) && !Qs(e[a]) ? (r[a] = Array.isArray(e[a]) ? [] : {}, Pt(e[a], r[a])) : we(e[a]) || (r[a] = !0);
|
|
4132
4072
|
return r;
|
|
4133
4073
|
}
|
|
4134
|
-
function
|
|
4074
|
+
function el(e, r, t) {
|
|
4135
4075
|
const a = Array.isArray(e);
|
|
4136
4076
|
if (pe(e) || a)
|
|
4137
4077
|
for (const n in e)
|
|
4138
|
-
Array.isArray(e[n]) || pe(e[n]) && !
|
|
4078
|
+
Array.isArray(e[n]) || pe(e[n]) && !Qs(e[n]) ? fe(r) || Nr(t[n]) ? t[n] = Array.isArray(e[n]) ? Pt(e[n], []) : { ...Pt(e[n]) } : el(e[n], we(r) ? {} : r[n], t[n]) : t[n] = !Ve(e[n], r[n]);
|
|
4139
4079
|
return t;
|
|
4140
4080
|
}
|
|
4141
|
-
var ot = (e, r) =>
|
|
4142
|
-
const
|
|
4081
|
+
var ot = (e, r) => el(e, r, Pt(r));
|
|
4082
|
+
const ba = {
|
|
4143
4083
|
value: !1,
|
|
4144
4084
|
isValid: !1
|
|
4145
|
-
},
|
|
4146
|
-
var
|
|
4085
|
+
}, wa = { value: !0, isValid: !0 };
|
|
4086
|
+
var tl = (e) => {
|
|
4147
4087
|
if (Array.isArray(e)) {
|
|
4148
4088
|
if (e.length > 1) {
|
|
4149
4089
|
const r = e.filter((t) => t && t.checked && !t.disabled).map((t) => t.value);
|
|
@@ -4151,24 +4091,24 @@ var rl = (e) => {
|
|
|
4151
4091
|
}
|
|
4152
4092
|
return e[0].checked && !e[0].disabled ? (
|
|
4153
4093
|
// @ts-expect-error expected to work in the browser
|
|
4154
|
-
e[0].attributes && !fe(e[0].attributes.value) ? fe(e[0].value) || e[0].value === "" ?
|
|
4155
|
-
) :
|
|
4094
|
+
e[0].attributes && !fe(e[0].attributes.value) ? fe(e[0].value) || e[0].value === "" ? wa : { value: e[0].value, isValid: !0 } : wa
|
|
4095
|
+
) : ba;
|
|
4156
4096
|
}
|
|
4157
|
-
return
|
|
4158
|
-
},
|
|
4159
|
-
const
|
|
4097
|
+
return ba;
|
|
4098
|
+
}, rl = (e, { valueAsNumber: r, valueAsDate: t, setValueAs: a }) => fe(e) ? e : r ? e === "" ? NaN : e && +e : t && Me(e) ? new Date(e) : a ? a(e) : e;
|
|
4099
|
+
const Sa = {
|
|
4160
4100
|
isValid: !1,
|
|
4161
4101
|
value: null
|
|
4162
4102
|
};
|
|
4163
|
-
var
|
|
4103
|
+
var al = (e) => Array.isArray(e) ? e.reduce((r, t) => t && t.checked && !t.disabled ? {
|
|
4164
4104
|
isValid: !0,
|
|
4165
4105
|
value: t.value
|
|
4166
|
-
} : r,
|
|
4167
|
-
function
|
|
4106
|
+
} : r, Sa) : Sa;
|
|
4107
|
+
function _a(e) {
|
|
4168
4108
|
const r = e.ref;
|
|
4169
|
-
return
|
|
4109
|
+
return sa(r) ? r.files : la(r) ? al(e.refs).value : Js(r) ? [...r.selectedOptions].map(({ value: t }) => t) : wt(r) ? tl(e.refs).value : rl(fe(r.value) ? e.ref.value : r.value, e);
|
|
4170
4110
|
}
|
|
4171
|
-
var
|
|
4111
|
+
var Ku = (e, r, t, a) => {
|
|
4172
4112
|
const n = {};
|
|
4173
4113
|
for (const o of e) {
|
|
4174
4114
|
const l = R(r, o);
|
|
@@ -4180,15 +4120,15 @@ var Wu = (e, r, t, a) => {
|
|
|
4180
4120
|
fields: n,
|
|
4181
4121
|
shouldUseNativeValidation: a
|
|
4182
4122
|
};
|
|
4183
|
-
},
|
|
4123
|
+
}, Ot = (e) => e instanceof RegExp, st = (e) => fe(e) ? e : Ot(e) ? e.source : pe(e) ? Ot(e.value) ? e.value.source : e.value : e, Ca = (e) => ({
|
|
4184
4124
|
isOnSubmit: !e || e === Ae.onSubmit,
|
|
4185
4125
|
isOnBlur: e === Ae.onBlur,
|
|
4186
4126
|
isOnChange: e === Ae.onChange,
|
|
4187
4127
|
isOnAll: e === Ae.all,
|
|
4188
4128
|
isOnTouch: e === Ae.onTouched
|
|
4189
4129
|
});
|
|
4190
|
-
const
|
|
4191
|
-
var
|
|
4130
|
+
const Na = "AsyncFunction";
|
|
4131
|
+
var Hu = (e) => !!e && !!e.validate && !!(Re(e.validate) && e.validate.constructor.name === Na || pe(e.validate) && Object.values(e.validate).find((r) => r.constructor.name === Na)), Wu = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), Ea = (e, r, t) => !t && (r.watchAll || r.watch.has(e) || [...r.watch].some((a) => e.startsWith(a) && /^\.\w+/.test(e.slice(a.length))));
|
|
4192
4132
|
const ut = (e, r, t, a) => {
|
|
4193
4133
|
for (const n of t || Object.keys(e)) {
|
|
4194
4134
|
const o = R(e, n);
|
|
@@ -4206,9 +4146,9 @@ const ut = (e, r, t, a) => {
|
|
|
4206
4146
|
}
|
|
4207
4147
|
}
|
|
4208
4148
|
};
|
|
4209
|
-
function
|
|
4149
|
+
function Aa(e, r, t) {
|
|
4210
4150
|
const a = R(e, t);
|
|
4211
|
-
if (a ||
|
|
4151
|
+
if (a || na(t))
|
|
4212
4152
|
return {
|
|
4213
4153
|
error: a,
|
|
4214
4154
|
name: t
|
|
@@ -4229,15 +4169,15 @@ function Ra(e, r, t) {
|
|
|
4229
4169
|
name: t
|
|
4230
4170
|
};
|
|
4231
4171
|
}
|
|
4232
|
-
var
|
|
4172
|
+
var zu = (e, r, t, a) => {
|
|
4233
4173
|
t(e);
|
|
4234
4174
|
const { name: n, ...o } = e;
|
|
4235
4175
|
return be(o) || Object.keys(o).length >= Object.keys(r).length || Object.keys(o).find((l) => r[l] === (!a || Ae.all));
|
|
4236
|
-
},
|
|
4176
|
+
}, qu = (e, r, t) => !e || !r || e === r || dt(e).some((a) => a && (t ? a === r : a.startsWith(r) || r.startsWith(a))), Yu = (e, r, t, a, n) => n.isOnAll ? !1 : !t && n.isOnTouch ? !(r || e) : (t ? a.isOnBlur : n.isOnBlur) ? !e : (t ? a.isOnChange : n.isOnChange) ? e : !0, Xu = (e, r) => !Xt(R(e, r)).length && me(e, r), Zu = (e, r, t) => {
|
|
4237
4177
|
const a = dt(R(e, t));
|
|
4238
4178
|
return ce(a, "root", r[t]), ce(e, t, a), e;
|
|
4239
4179
|
}, At = (e) => Me(e);
|
|
4240
|
-
function
|
|
4180
|
+
function Ra(e, r, t = "validate") {
|
|
4241
4181
|
if (At(e) || Array.isArray(e) && e.every(At) || _e(e) && !e)
|
|
4242
4182
|
return {
|
|
4243
4183
|
type: t,
|
|
@@ -4245,27 +4185,27 @@ function Ia(e, r, t = "validate") {
|
|
|
4245
4185
|
ref: r
|
|
4246
4186
|
};
|
|
4247
4187
|
}
|
|
4248
|
-
var Ze = (e) => pe(e) && !
|
|
4188
|
+
var Ze = (e) => pe(e) && !Ot(e) ? e : {
|
|
4249
4189
|
value: e,
|
|
4250
4190
|
message: ""
|
|
4251
|
-
},
|
|
4252
|
-
const { ref: l, refs: c, required: d, maxLength: m, minLength: f, min: p, max: v, pattern:
|
|
4191
|
+
}, Ia = async (e, r, t, a, n, o) => {
|
|
4192
|
+
const { ref: l, refs: c, required: d, maxLength: m, minLength: f, min: p, max: v, pattern: S, validate: _, name: y, valueAsNumber: C, mount: I } = e._f, h = R(t, y);
|
|
4253
4193
|
if (!I || r.has(y))
|
|
4254
4194
|
return {};
|
|
4255
|
-
const D = c ? c[0] : l, H = (
|
|
4256
|
-
n && D.reportValidity && (D.setCustomValidity(_e(
|
|
4257
|
-
}, F = {}, W =
|
|
4258
|
-
const oe =
|
|
4195
|
+
const D = c ? c[0] : l, H = (k) => {
|
|
4196
|
+
n && D.reportValidity && (D.setCustomValidity(_e(k) ? "" : k || ""), D.reportValidity());
|
|
4197
|
+
}, F = {}, W = la(l), O = wt(l), de = W || O, Y = (C || sa(l)) && fe(l.value) && fe(h) || jt(l) && l.value === "" || h === "" || Array.isArray(h) && !h.length, Q = $u.bind(null, y, a, F), re = (k, B, U, X = Te.maxLength, q = Te.minLength) => {
|
|
4198
|
+
const oe = k ? B : U;
|
|
4259
4199
|
F[y] = {
|
|
4260
|
-
type:
|
|
4200
|
+
type: k ? X : q,
|
|
4261
4201
|
message: oe,
|
|
4262
4202
|
ref: l,
|
|
4263
|
-
...Q(
|
|
4203
|
+
...Q(k ? X : q, oe)
|
|
4264
4204
|
};
|
|
4265
4205
|
};
|
|
4266
|
-
if (o ? !Array.isArray(h) || !h.length : d && (!de && (Y || we(h)) || _e(h) && !h ||
|
|
4267
|
-
const { value:
|
|
4268
|
-
if (
|
|
4206
|
+
if (o ? !Array.isArray(h) || !h.length : d && (!de && (Y || we(h)) || _e(h) && !h || O && !tl(c).isValid || W && !al(c).isValid)) {
|
|
4207
|
+
const { value: k, message: B } = At(d) ? { value: !!d, message: d } : Ze(d);
|
|
4208
|
+
if (k && (F[y] = {
|
|
4269
4209
|
type: Te.required,
|
|
4270
4210
|
message: B,
|
|
4271
4211
|
ref: D,
|
|
@@ -4274,26 +4214,26 @@ var Ze = (e) => pe(e) && !kt(e) ? e : {
|
|
|
4274
4214
|
return H(B), F;
|
|
4275
4215
|
}
|
|
4276
4216
|
if (!Y && (!we(p) || !we(v))) {
|
|
4277
|
-
let
|
|
4217
|
+
let k, B;
|
|
4278
4218
|
const U = Ze(v), X = Ze(p);
|
|
4279
4219
|
if (!we(h) && !isNaN(h)) {
|
|
4280
4220
|
const q = l.valueAsNumber || h && +h;
|
|
4281
|
-
we(U.value) || (
|
|
4221
|
+
we(U.value) || (k = q > U.value), we(X.value) || (B = q < X.value);
|
|
4282
4222
|
} else {
|
|
4283
|
-
const q = l.valueAsDate || new Date(h), oe = (ee) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + ee), ae = l.type == "time",
|
|
4284
|
-
Me(U.value) && h && (
|
|
4223
|
+
const q = l.valueAsDate || new Date(h), oe = (ee) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + ee), ae = l.type == "time", w = l.type == "week";
|
|
4224
|
+
Me(U.value) && h && (k = ae ? oe(h) > oe(U.value) : w ? h > U.value : q > new Date(U.value)), Me(X.value) && h && (B = ae ? oe(h) < oe(X.value) : w ? h < X.value : q < new Date(X.value));
|
|
4285
4225
|
}
|
|
4286
|
-
if ((
|
|
4226
|
+
if ((k || B) && (re(!!k, U.message, X.message, Te.max, Te.min), !a))
|
|
4287
4227
|
return H(F[y].message), F;
|
|
4288
4228
|
}
|
|
4289
4229
|
if ((m || f) && !Y && (Me(h) || o && Array.isArray(h))) {
|
|
4290
|
-
const
|
|
4291
|
-
if ((U || X) && (re(U,
|
|
4230
|
+
const k = Ze(m), B = Ze(f), U = !we(k.value) && h.length > +k.value, X = !we(B.value) && h.length < +B.value;
|
|
4231
|
+
if ((U || X) && (re(U, k.message, B.message), !a))
|
|
4292
4232
|
return H(F[y].message), F;
|
|
4293
4233
|
}
|
|
4294
|
-
if (
|
|
4295
|
-
const { value:
|
|
4296
|
-
if (
|
|
4234
|
+
if (S && !Y && Me(h)) {
|
|
4235
|
+
const { value: k, message: B } = Ze(S);
|
|
4236
|
+
if (Ot(k) && !h.match(k) && (F[y] = {
|
|
4297
4237
|
type: Te.pattern,
|
|
4298
4238
|
message: B,
|
|
4299
4239
|
ref: l,
|
|
@@ -4303,40 +4243,40 @@ var Ze = (e) => pe(e) && !kt(e) ? e : {
|
|
|
4303
4243
|
}
|
|
4304
4244
|
if (_) {
|
|
4305
4245
|
if (Re(_)) {
|
|
4306
|
-
const
|
|
4246
|
+
const k = await _(h, t), B = Ra(k, D);
|
|
4307
4247
|
if (B && (F[y] = {
|
|
4308
4248
|
...B,
|
|
4309
4249
|
...Q(Te.validate, B.message)
|
|
4310
4250
|
}, !a))
|
|
4311
4251
|
return H(B.message), F;
|
|
4312
4252
|
} else if (pe(_)) {
|
|
4313
|
-
let
|
|
4253
|
+
let k = {};
|
|
4314
4254
|
for (const B in _) {
|
|
4315
|
-
if (!be(
|
|
4255
|
+
if (!be(k) && !a)
|
|
4316
4256
|
break;
|
|
4317
|
-
const U =
|
|
4318
|
-
U && (
|
|
4257
|
+
const U = Ra(await _[B](h, t), D, B);
|
|
4258
|
+
U && (k = {
|
|
4319
4259
|
...U,
|
|
4320
4260
|
...Q(B, U.message)
|
|
4321
|
-
}, H(U.message), a && (F[y] =
|
|
4261
|
+
}, H(U.message), a && (F[y] = k));
|
|
4322
4262
|
}
|
|
4323
|
-
if (!be(
|
|
4263
|
+
if (!be(k) && (F[y] = {
|
|
4324
4264
|
ref: D,
|
|
4325
|
-
...
|
|
4265
|
+
...k
|
|
4326
4266
|
}, !a))
|
|
4327
4267
|
return F;
|
|
4328
4268
|
}
|
|
4329
4269
|
}
|
|
4330
4270
|
return H(!0), F;
|
|
4331
4271
|
};
|
|
4332
|
-
const
|
|
4272
|
+
const Ju = {
|
|
4333
4273
|
mode: Ae.onSubmit,
|
|
4334
4274
|
reValidateMode: Ae.onChange,
|
|
4335
4275
|
shouldFocusError: !0
|
|
4336
4276
|
};
|
|
4337
|
-
function
|
|
4277
|
+
function Qu(e = {}) {
|
|
4338
4278
|
let r = {
|
|
4339
|
-
...
|
|
4279
|
+
...Ju,
|
|
4340
4280
|
...e
|
|
4341
4281
|
}, t = {
|
|
4342
4282
|
submitCount: 0,
|
|
@@ -4379,13 +4319,13 @@ function tf(e = {}) {
|
|
|
4379
4319
|
...f
|
|
4380
4320
|
};
|
|
4381
4321
|
const v = {
|
|
4382
|
-
array:
|
|
4383
|
-
state:
|
|
4384
|
-
},
|
|
4322
|
+
array: ya(),
|
|
4323
|
+
state: ya()
|
|
4324
|
+
}, S = r.criteriaMode === Ae.all, _ = (u) => (g) => {
|
|
4385
4325
|
clearTimeout(m), m = setTimeout(u, g);
|
|
4386
4326
|
}, y = async (u) => {
|
|
4387
4327
|
if (!r.disabled && (f.isValid || p.isValid || u)) {
|
|
4388
|
-
const g = r.resolver ? be((await
|
|
4328
|
+
const g = r.resolver ? be((await O()).errors) : await Y(a, !0);
|
|
4389
4329
|
g !== t.isValid && v.state.next({
|
|
4390
4330
|
isValid: g
|
|
4391
4331
|
});
|
|
@@ -4405,7 +4345,7 @@ function tf(e = {}) {
|
|
|
4405
4345
|
}
|
|
4406
4346
|
if (N && Array.isArray(R(t.errors, u))) {
|
|
4407
4347
|
const P = x(R(t.errors, u), M.argA, M.argB);
|
|
4408
|
-
A && ce(t.errors, u, P),
|
|
4348
|
+
A && ce(t.errors, u, P), Xu(t.errors, u);
|
|
4409
4349
|
}
|
|
4410
4350
|
if ((f.touchedFields || p.touchedFields) && N && Array.isArray(R(t.touchedFields, u))) {
|
|
4411
4351
|
const P = x(R(t.touchedFields, u), M.argA, M.argB);
|
|
@@ -4433,7 +4373,7 @@ function tf(e = {}) {
|
|
|
4433
4373
|
const A = R(a, u);
|
|
4434
4374
|
if (A) {
|
|
4435
4375
|
const N = R(o, u, fe(x) ? R(n, u) : x);
|
|
4436
|
-
fe(N) || M && M.defaultChecked || g ? ce(o, u, g ? N :
|
|
4376
|
+
fe(N) || M && M.defaultChecked || g ? ce(o, u, g ? N : _a(A._f)) : U(u, N), l.mount && y();
|
|
4437
4377
|
}
|
|
4438
4378
|
}, F = (u, g, x, M, A) => {
|
|
4439
4379
|
let N = !1, P = !1;
|
|
@@ -4467,12 +4407,12 @@ function tf(e = {}) {
|
|
|
4467
4407
|
...P
|
|
4468
4408
|
}, v.state.next(P);
|
|
4469
4409
|
}
|
|
4470
|
-
},
|
|
4410
|
+
}, O = async (u) => {
|
|
4471
4411
|
C(u, !0);
|
|
4472
|
-
const g = await r.resolver(o, r.context,
|
|
4412
|
+
const g = await r.resolver(o, r.context, Ku(u || c.mount, a, r.criteriaMode, r.shouldUseNativeValidation));
|
|
4473
4413
|
return C(u), g;
|
|
4474
4414
|
}, de = async (u) => {
|
|
4475
|
-
const { errors: g } = await
|
|
4415
|
+
const { errors: g } = await O(u);
|
|
4476
4416
|
if (u)
|
|
4477
4417
|
for (const x of u) {
|
|
4478
4418
|
const M = R(g, x);
|
|
@@ -4489,12 +4429,12 @@ function tf(e = {}) {
|
|
|
4489
4429
|
if (A) {
|
|
4490
4430
|
const { _f: N, ...P } = A;
|
|
4491
4431
|
if (N) {
|
|
4492
|
-
const se = c.array.has(N.name), ue = A._f &&
|
|
4432
|
+
const se = c.array.has(N.name), ue = A._f && Hu(A._f);
|
|
4493
4433
|
ue && f.validatingFields && C([M], !0);
|
|
4494
|
-
const Ce = await
|
|
4434
|
+
const Ce = await Ia(A, c.disabled, o, S, r.shouldUseNativeValidation && !g, se);
|
|
4495
4435
|
if (ue && f.validatingFields && C([M]), Ce[N.name] && (x.valid = !1, g))
|
|
4496
4436
|
break;
|
|
4497
|
-
!g && (R(Ce, N.name) ? se ?
|
|
4437
|
+
!g && (R(Ce, N.name) ? se ? Zu(t.errors, Ce, N.name) : ce(t.errors, N.name, Ce[N.name]) : me(t.errors, N.name));
|
|
4498
4438
|
}
|
|
4499
4439
|
!be(P) && await Y(P, g, x);
|
|
4500
4440
|
}
|
|
@@ -4503,24 +4443,24 @@ function tf(e = {}) {
|
|
|
4503
4443
|
}, Q = () => {
|
|
4504
4444
|
for (const u of c.unMount) {
|
|
4505
4445
|
const g = R(a, u);
|
|
4506
|
-
g && (g._f.refs ? g._f.refs.every((x) => !
|
|
4446
|
+
g && (g._f.refs ? g._f.refs.every((x) => !ur(x)) : !ur(g._f.ref)) && E(u);
|
|
4507
4447
|
}
|
|
4508
4448
|
c.unMount = /* @__PURE__ */ new Set();
|
|
4509
|
-
}, re = (u, g) => !r.disabled && (u && g && ce(o, u, g), !Ve(ee(), n)),
|
|
4449
|
+
}, re = (u, g) => !r.disabled && (u && g && ce(o, u, g), !Ve(ee(), n)), k = (u, g, x) => Zs(u, c, {
|
|
4510
4450
|
...l.mount ? o : fe(g) ? n : Me(u) ? { [u]: g } : g
|
|
4511
4451
|
}, x, g), B = (u) => Xt(R(l.mount ? o : n, u, r.shouldUnregister ? R(n, u, []) : [])), U = (u, g, x = {}) => {
|
|
4512
4452
|
const M = R(a, u);
|
|
4513
4453
|
let A = g;
|
|
4514
4454
|
if (M) {
|
|
4515
4455
|
const N = M._f;
|
|
4516
|
-
N && (!N.disabled && ce(o, u,
|
|
4456
|
+
N && (!N.disabled && ce(o, u, rl(g, N)), A = jt(N.ref) && we(g) ? "" : g, Js(N.ref) ? [...N.ref.options].forEach((P) => P.selected = A.includes(P.value)) : N.refs ? wt(N.ref) ? N.refs.forEach((P) => {
|
|
4517
4457
|
(!P.defaultChecked || !P.disabled) && (Array.isArray(A) ? P.checked = !!A.find((se) => se === P.value) : P.checked = A === P.value || !!A);
|
|
4518
|
-
}) : N.refs.forEach((P) => P.checked = P.value === A) :
|
|
4458
|
+
}) : N.refs.forEach((P) => P.checked = P.value === A) : sa(N.ref) ? N.ref.value = "" : (N.ref.value = A, N.ref.type || v.state.next({
|
|
4519
4459
|
name: u,
|
|
4520
4460
|
values: ve(o)
|
|
4521
4461
|
})));
|
|
4522
4462
|
}
|
|
4523
|
-
(x.shouldDirty || x.shouldTouch) && F(u, A, x.shouldTouch, x.shouldDirty, !0), x.shouldValidate &&
|
|
4463
|
+
(x.shouldDirty || x.shouldTouch) && F(u, A, x.shouldTouch, x.shouldDirty, !0), x.shouldValidate && w(u);
|
|
4524
4464
|
}, X = (u, g, x) => {
|
|
4525
4465
|
for (const M in g) {
|
|
4526
4466
|
if (!g.hasOwnProperty(M))
|
|
@@ -4537,7 +4477,7 @@ function tf(e = {}) {
|
|
|
4537
4477
|
name: u,
|
|
4538
4478
|
dirtyFields: ot(n, o),
|
|
4539
4479
|
isDirty: re(u, N)
|
|
4540
|
-
})) : M && !M._f && !we(N) ? X(u, N, x) : U(u, N, x),
|
|
4480
|
+
})) : M && !M._f && !we(N) ? X(u, N, x) : U(u, N, x), Ea(u, c) && v.state.next({ ...t }), v.state.next({
|
|
4541
4481
|
name: l.mount ? u : void 0,
|
|
4542
4482
|
values: ve(o)
|
|
4543
4483
|
});
|
|
@@ -4547,32 +4487,32 @@ function tf(e = {}) {
|
|
|
4547
4487
|
let x = g.name, M = !0;
|
|
4548
4488
|
const A = R(a, x), N = (ue) => {
|
|
4549
4489
|
M = Number.isNaN(ue) || Ge(ue) && isNaN(ue.getTime()) || Ve(ue, R(o, x, ue));
|
|
4550
|
-
}, P =
|
|
4490
|
+
}, P = Ca(r.mode), se = Ca(r.reValidateMode);
|
|
4551
4491
|
if (A) {
|
|
4552
4492
|
let ue, Ce;
|
|
4553
|
-
const St = g.type ?
|
|
4554
|
-
ce(o, x, St),
|
|
4555
|
-
const er = F(x, St,
|
|
4556
|
-
if (!
|
|
4493
|
+
const St = g.type ? _a(A._f) : Ws(u), ke = u.type === Tt.BLUR || u.type === Tt.FOCUS_OUT, sl = !Wu(A._f) && !r.resolver && !R(t.errors, x) && !A._f.deps || Yu(ke, R(t.touchedFields, x), t.isSubmitted, se, P), Qt = Ea(x, c, ke);
|
|
4494
|
+
ce(o, x, St), ke ? (A._f.onBlur && A._f.onBlur(u), d && d(0)) : A._f.onChange && A._f.onChange(u);
|
|
4495
|
+
const er = F(x, St, ke), ll = !be(er) || Qt;
|
|
4496
|
+
if (!ke && v.state.next({
|
|
4557
4497
|
name: x,
|
|
4558
4498
|
type: u.type,
|
|
4559
4499
|
values: ve(o)
|
|
4560
|
-
}),
|
|
4561
|
-
return (f.isValid || p.isValid) && (r.mode === "onBlur" ?
|
|
4562
|
-
if (!
|
|
4563
|
-
const { errors:
|
|
4500
|
+
}), sl)
|
|
4501
|
+
return (f.isValid || p.isValid) && (r.mode === "onBlur" ? ke && y() : ke || y()), ll && v.state.next({ name: x, ...Qt ? {} : er });
|
|
4502
|
+
if (!ke && Qt && v.state.next({ ...t }), r.resolver) {
|
|
4503
|
+
const { errors: ca } = await O([x]);
|
|
4564
4504
|
if (N(St), M) {
|
|
4565
|
-
const
|
|
4566
|
-
ue =
|
|
4505
|
+
const il = Aa(t.errors, a, x), da = Aa(ca, a, il.name || x);
|
|
4506
|
+
ue = da.error, x = da.name, Ce = be(ca);
|
|
4567
4507
|
}
|
|
4568
4508
|
} else
|
|
4569
|
-
C([x], !0), ue = (await
|
|
4570
|
-
M && (A._f.deps &&
|
|
4509
|
+
C([x], !0), ue = (await Ia(A, c.disabled, o, S, r.shouldUseNativeValidation))[x], C([x]), N(St), M && (ue ? Ce = !1 : (f.isValid || p.isValid) && (Ce = await Y(a, !0)));
|
|
4510
|
+
M && (A._f.deps && w(A._f.deps), W(x, Ce, ue, er));
|
|
4571
4511
|
}
|
|
4572
4512
|
}, ae = (u, g) => {
|
|
4573
4513
|
if (R(t.errors, g) && u.focus)
|
|
4574
4514
|
return u.focus(), 1;
|
|
4575
|
-
},
|
|
4515
|
+
}, w = async (u, g = {}) => {
|
|
4576
4516
|
let x, M;
|
|
4577
4517
|
const A = dt(u);
|
|
4578
4518
|
if (r.resolver) {
|
|
@@ -4614,10 +4554,10 @@ function tf(e = {}) {
|
|
|
4614
4554
|
isValid: !1
|
|
4615
4555
|
}), x && x.shouldFocus && M && M.focus && M.focus();
|
|
4616
4556
|
}, $ = (u, g) => Re(u) ? v.state.subscribe({
|
|
4617
|
-
next: (x) => u(
|
|
4618
|
-
}) :
|
|
4557
|
+
next: (x) => u(k(void 0, g), x)
|
|
4558
|
+
}) : k(u, g, !0), T = (u) => v.state.subscribe({
|
|
4619
4559
|
next: (g) => {
|
|
4620
|
-
|
|
4560
|
+
qu(u.name, g.name, u.exact) && zu(g, u.formState || f, at, u.reRenderRoot) && u.callback({
|
|
4621
4561
|
values: { ...o },
|
|
4622
4562
|
...t,
|
|
4623
4563
|
...g
|
|
@@ -4670,7 +4610,7 @@ function tf(e = {}) {
|
|
|
4670
4610
|
ref: (A) => {
|
|
4671
4611
|
if (A) {
|
|
4672
4612
|
Z(u, g), x = R(a, u);
|
|
4673
|
-
const N = fe(A.value) && A.querySelectorAll && A.querySelectorAll("input,select,textarea")[0] || A, P =
|
|
4613
|
+
const N = fe(A.value) && A.querySelectorAll && A.querySelectorAll("input,select,textarea")[0] || A, P = Bu(N), se = x._f.refs || [];
|
|
4674
4614
|
if (P ? se.find((ue) => ue === N) : N === x._f.ref)
|
|
4675
4615
|
return;
|
|
4676
4616
|
ce(a, u, {
|
|
@@ -4678,7 +4618,7 @@ function tf(e = {}) {
|
|
|
4678
4618
|
...x._f,
|
|
4679
4619
|
...P ? {
|
|
4680
4620
|
refs: [
|
|
4681
|
-
...se.filter(
|
|
4621
|
+
...se.filter(ur),
|
|
4682
4622
|
N,
|
|
4683
4623
|
...Array.isArray(R(n, u)) ? [{}] : []
|
|
4684
4624
|
],
|
|
@@ -4687,7 +4627,7 @@ function tf(e = {}) {
|
|
|
4687
4627
|
}
|
|
4688
4628
|
}), H(u, !1, void 0, N);
|
|
4689
4629
|
} else
|
|
4690
|
-
x = R(a, u, {}), x._f && (x._f.mount = !1), (r.shouldUnregister || g.shouldUnregister) && !(
|
|
4630
|
+
x = R(a, u, {}), x._f && (x._f.mount = !1), (r.shouldUnregister || g.shouldUnregister) && !(zs(c.array, u) && l.action) && c.unMount.add(u);
|
|
4691
4631
|
}
|
|
4692
4632
|
};
|
|
4693
4633
|
}, te = () => r.shouldFocusError && ut(a, ae, c.mount), ie = (u) => {
|
|
@@ -4704,7 +4644,7 @@ function tf(e = {}) {
|
|
|
4704
4644
|
if (v.state.next({
|
|
4705
4645
|
isSubmitting: !0
|
|
4706
4646
|
}), r.resolver) {
|
|
4707
|
-
const { errors: N, values: P } = await
|
|
4647
|
+
const { errors: N, values: P } = await O();
|
|
4708
4648
|
t.errors = N, A = P;
|
|
4709
4649
|
} else
|
|
4710
4650
|
await Y(a);
|
|
@@ -4743,7 +4683,7 @@ function tf(e = {}) {
|
|
|
4743
4683
|
for (const se of Array.from(P))
|
|
4744
4684
|
R(t.dirtyFields, se) ? ce(N, se, R(o, se)) : q(se, R(N, se));
|
|
4745
4685
|
} else {
|
|
4746
|
-
if (
|
|
4686
|
+
if (aa && fe(u))
|
|
4747
4687
|
for (const P of c.mount) {
|
|
4748
4688
|
const se = R(a, P);
|
|
4749
4689
|
if (se && se._f) {
|
|
@@ -4795,7 +4735,7 @@ function tf(e = {}) {
|
|
|
4795
4735
|
...t,
|
|
4796
4736
|
...u
|
|
4797
4737
|
};
|
|
4798
|
-
},
|
|
4738
|
+
}, ia = {
|
|
4799
4739
|
control: {
|
|
4800
4740
|
register: Z,
|
|
4801
4741
|
unregister: E,
|
|
@@ -4803,8 +4743,8 @@ function tf(e = {}) {
|
|
|
4803
4743
|
handleSubmit: le,
|
|
4804
4744
|
setError: V,
|
|
4805
4745
|
_subscribe: T,
|
|
4806
|
-
_runSchema:
|
|
4807
|
-
_getWatch:
|
|
4746
|
+
_runSchema: O,
|
|
4747
|
+
_getWatch: k,
|
|
4808
4748
|
_getDirty: re,
|
|
4809
4749
|
_setValid: y,
|
|
4810
4750
|
_setFieldArray: I,
|
|
@@ -4856,7 +4796,7 @@ function tf(e = {}) {
|
|
|
4856
4796
|
}
|
|
4857
4797
|
},
|
|
4858
4798
|
subscribe: z,
|
|
4859
|
-
trigger:
|
|
4799
|
+
trigger: w,
|
|
4860
4800
|
register: Z,
|
|
4861
4801
|
handleSubmit: le,
|
|
4862
4802
|
watch: $,
|
|
@@ -4871,11 +4811,11 @@ function tf(e = {}) {
|
|
|
4871
4811
|
getFieldState: ne
|
|
4872
4812
|
};
|
|
4873
4813
|
return {
|
|
4874
|
-
...
|
|
4875
|
-
formControl:
|
|
4814
|
+
...ia,
|
|
4815
|
+
formControl: ia
|
|
4876
4816
|
};
|
|
4877
4817
|
}
|
|
4878
|
-
function
|
|
4818
|
+
function Tf(e = {}) {
|
|
4879
4819
|
const r = G.useRef(void 0), t = G.useRef(void 0), [a, n] = G.useState({
|
|
4880
4820
|
isDirty: !1,
|
|
4881
4821
|
isValidating: !1,
|
|
@@ -4894,11 +4834,11 @@ function Pf(e = {}) {
|
|
|
4894
4834
|
defaultValues: Re(e.defaultValues) ? void 0 : e.defaultValues
|
|
4895
4835
|
});
|
|
4896
4836
|
r.current || (r.current = {
|
|
4897
|
-
...e.formControl ? e.formControl :
|
|
4837
|
+
...e.formControl ? e.formControl : Qu(e),
|
|
4898
4838
|
formState: a
|
|
4899
4839
|
}, e.formControl && e.defaultValues && !Re(e.defaultValues) && e.formControl.reset(e.defaultValues, e.resetOptions));
|
|
4900
4840
|
const o = r.current.control;
|
|
4901
|
-
return o._options = e,
|
|
4841
|
+
return o._options = e, oa(() => {
|
|
4902
4842
|
const l = o._subscribe({
|
|
4903
4843
|
formState: o._proxyFormState,
|
|
4904
4844
|
callback: () => n({ ...o._formState }),
|
|
@@ -4925,12 +4865,12 @@ function Pf(e = {}) {
|
|
|
4925
4865
|
e.values && !Ve(e.values, t.current) ? (o._reset(e.values, o._options.resetOptions), t.current = e.values, n((l) => ({ ...l }))) : o._resetDefaultValues();
|
|
4926
4866
|
}, [o, e.values]), G.useEffect(() => {
|
|
4927
4867
|
o._state.mount || (o._setValid(), o._state.mount = !0), o._state.watch && (o._state.watch = !1, o._subjects.state.next({ ...o._formState })), o._removeUnmounted();
|
|
4928
|
-
}), r.current.formState =
|
|
4868
|
+
}), r.current.formState = Xs(a, o), r.current;
|
|
4929
4869
|
}
|
|
4930
|
-
const
|
|
4870
|
+
const jf = Ou, nl = s.createContext({}), Pf = ({
|
|
4931
4871
|
...e
|
|
4932
|
-
}) => /* @__PURE__ */ i.jsx(
|
|
4933
|
-
const e = s.useContext(
|
|
4872
|
+
}) => /* @__PURE__ */ i.jsx(nl.Provider, { value: { name: e.name }, children: /* @__PURE__ */ i.jsx(Lu, { ...e }) }), Jt = () => {
|
|
4873
|
+
const e = s.useContext(nl), r = s.useContext(ol), { getFieldState: t, formState: a } = Zt(), n = t(e.name, a);
|
|
4934
4874
|
if (!e)
|
|
4935
4875
|
throw new Error("useFormField should be used within <FormField>");
|
|
4936
4876
|
const { id: o } = r;
|
|
@@ -4942,17 +4882,17 @@ const kf = Vu, ol = s.createContext({}), Of = ({
|
|
|
4942
4882
|
formMessageId: `${o}-form-item-message`,
|
|
4943
4883
|
...n
|
|
4944
4884
|
};
|
|
4945
|
-
},
|
|
4885
|
+
}, ol = s.createContext({}), ef = s.forwardRef(
|
|
4946
4886
|
({ className: e, ...r }, t) => {
|
|
4947
4887
|
const a = s.useId();
|
|
4948
|
-
return /* @__PURE__ */ i.jsx(
|
|
4888
|
+
return /* @__PURE__ */ i.jsx(ol.Provider, { value: { id: a }, children: /* @__PURE__ */ i.jsx("div", { ref: t, className: j("al-space-y-2", e), ...r }) });
|
|
4949
4889
|
}
|
|
4950
4890
|
);
|
|
4951
|
-
|
|
4952
|
-
const
|
|
4891
|
+
ef.displayName = "FormItem";
|
|
4892
|
+
const tf = s.forwardRef(({ className: e, ...r }, t) => {
|
|
4953
4893
|
const { error: a, formItemId: n } = Jt();
|
|
4954
4894
|
return /* @__PURE__ */ i.jsx(
|
|
4955
|
-
|
|
4895
|
+
Nl,
|
|
4956
4896
|
{
|
|
4957
4897
|
ref: t,
|
|
4958
4898
|
className: j(a && "al-text-destructive", e),
|
|
@@ -4961,11 +4901,11 @@ const af = s.forwardRef(({ className: e, ...r }, t) => {
|
|
|
4961
4901
|
}
|
|
4962
4902
|
);
|
|
4963
4903
|
});
|
|
4964
|
-
|
|
4965
|
-
const
|
|
4904
|
+
tf.displayName = "FormLabel";
|
|
4905
|
+
const rf = s.forwardRef(({ ...e }, r) => {
|
|
4966
4906
|
const { error: t, formItemId: a, formDescriptionId: n, formMessageId: o } = Jt();
|
|
4967
4907
|
return /* @__PURE__ */ i.jsx(
|
|
4968
|
-
|
|
4908
|
+
El,
|
|
4969
4909
|
{
|
|
4970
4910
|
ref: r,
|
|
4971
4911
|
id: a,
|
|
@@ -4975,8 +4915,8 @@ const nf = s.forwardRef(({ ...e }, r) => {
|
|
|
4975
4915
|
}
|
|
4976
4916
|
);
|
|
4977
4917
|
});
|
|
4978
|
-
|
|
4979
|
-
const
|
|
4918
|
+
rf.displayName = "FormControl";
|
|
4919
|
+
const af = s.forwardRef(({ className: e, ...r }, t) => {
|
|
4980
4920
|
const { formDescriptionId: a } = Jt();
|
|
4981
4921
|
return /* @__PURE__ */ i.jsx(
|
|
4982
4922
|
"p",
|
|
@@ -4988,8 +4928,8 @@ const of = s.forwardRef(({ className: e, ...r }, t) => {
|
|
|
4988
4928
|
}
|
|
4989
4929
|
);
|
|
4990
4930
|
});
|
|
4991
|
-
|
|
4992
|
-
const
|
|
4931
|
+
af.displayName = "FormDescription";
|
|
4932
|
+
const nf = s.forwardRef(({ className: e, children: r, ...t }, a) => {
|
|
4993
4933
|
const { error: n, formMessageId: o } = Jt(), l = n ? String((n == null ? void 0 : n.message) ?? "") : r;
|
|
4994
4934
|
return l ? /* @__PURE__ */ i.jsx(
|
|
4995
4935
|
"p",
|
|
@@ -5002,113 +4942,112 @@ const sf = s.forwardRef(({ className: e, children: r, ...t }, a) => {
|
|
|
5002
4942
|
}
|
|
5003
4943
|
) : null;
|
|
5004
4944
|
});
|
|
5005
|
-
|
|
4945
|
+
nf.displayName = "FormMessage";
|
|
5006
4946
|
export {
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
4947
|
+
bf as $,
|
|
4948
|
+
dd as A,
|
|
4949
|
+
wf as B,
|
|
4950
|
+
gi as C,
|
|
4951
|
+
mf as D,
|
|
4952
|
+
gf as E,
|
|
4953
|
+
ef as F,
|
|
4954
|
+
vi as G,
|
|
4955
|
+
Zi as H,
|
|
4956
|
+
xi as I,
|
|
4957
|
+
Ji as J,
|
|
4958
|
+
Qi as K,
|
|
4959
|
+
hi as L,
|
|
4960
|
+
ec as M,
|
|
4961
|
+
hu as N,
|
|
4962
|
+
tc as O,
|
|
4963
|
+
mi as P,
|
|
4964
|
+
rc as Q,
|
|
4965
|
+
bi as R,
|
|
4966
|
+
df as S,
|
|
4967
|
+
ac as T,
|
|
4968
|
+
vf as U,
|
|
4969
|
+
hf as V,
|
|
4970
|
+
xf as W,
|
|
4971
|
+
Xi as X,
|
|
4972
|
+
Yi as Y,
|
|
4973
|
+
yf as Z,
|
|
5034
4974
|
Hr as _,
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
4975
|
+
nf as a,
|
|
4976
|
+
eo as a0,
|
|
4977
|
+
to as a1,
|
|
4978
|
+
ro as a2,
|
|
4979
|
+
ao as a3,
|
|
4980
|
+
no as a4,
|
|
4981
|
+
Tc as a5,
|
|
4982
|
+
Dc as a6,
|
|
4983
|
+
jc as a7,
|
|
4984
|
+
_f as a8,
|
|
4985
|
+
ed as a9,
|
|
4986
|
+
Rs as aA,
|
|
4987
|
+
Mf as aB,
|
|
4988
|
+
Iu as aC,
|
|
4989
|
+
Mu as aD,
|
|
4990
|
+
Du as aE,
|
|
4991
|
+
Tu as aF,
|
|
4992
|
+
Eu as aG,
|
|
5053
4993
|
Jt as aH,
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
rd as
|
|
5064
|
-
|
|
5065
|
-
ld as
|
|
5066
|
-
|
|
5067
|
-
fd as
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
Md as
|
|
5074
|
-
Dd as
|
|
5075
|
-
Td as
|
|
5076
|
-
jd as
|
|
5077
|
-
Pd as
|
|
5078
|
-
kd as ap,
|
|
4994
|
+
jf as aI,
|
|
4995
|
+
tf as aJ,
|
|
4996
|
+
rf as aK,
|
|
4997
|
+
af as aL,
|
|
4998
|
+
Pf as aM,
|
|
4999
|
+
R as aN,
|
|
5000
|
+
ce as aO,
|
|
5001
|
+
$u as aP,
|
|
5002
|
+
td as aa,
|
|
5003
|
+
rd as ab,
|
|
5004
|
+
sd as ac,
|
|
5005
|
+
ld as ad,
|
|
5006
|
+
ud as ae,
|
|
5007
|
+
fd as af,
|
|
5008
|
+
Ef as ag,
|
|
5009
|
+
Rd as ah,
|
|
5010
|
+
Uo as ai,
|
|
5011
|
+
Af as aj,
|
|
5012
|
+
Id as ak,
|
|
5013
|
+
Md as al,
|
|
5014
|
+
Dd as am,
|
|
5015
|
+
Td as an,
|
|
5016
|
+
jd as ao,
|
|
5017
|
+
Pd as ap,
|
|
5079
5018
|
Od as aq,
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5019
|
+
fu as ar,
|
|
5020
|
+
If as as,
|
|
5021
|
+
pu as at,
|
|
5022
|
+
Es as au,
|
|
5023
|
+
Is as av,
|
|
5024
|
+
mu as aw,
|
|
5025
|
+
Ms as ax,
|
|
5026
|
+
gu as ay,
|
|
5027
|
+
As as az,
|
|
5028
|
+
Cf as b,
|
|
5029
|
+
Il as c,
|
|
5030
|
+
xa as d,
|
|
5031
|
+
Ya as e,
|
|
5032
|
+
pi as f,
|
|
5033
|
+
yi as g,
|
|
5034
|
+
wi as h,
|
|
5035
|
+
Si as i,
|
|
5036
|
+
_i as j,
|
|
5037
|
+
Ci as k,
|
|
5038
|
+
Ei as l,
|
|
5039
|
+
Ai as m,
|
|
5040
|
+
fi as n,
|
|
5041
|
+
Ni as o,
|
|
5042
|
+
Al as p,
|
|
5043
|
+
Wa as q,
|
|
5044
|
+
uf as r,
|
|
5045
|
+
ff as s,
|
|
5046
|
+
Ml as t,
|
|
5047
|
+
Tf as u,
|
|
5048
|
+
Dl as v,
|
|
5049
|
+
Tl as w,
|
|
5050
|
+
jl as x,
|
|
5051
|
+
Pl as y,
|
|
5113
5052
|
Ol as z
|
|
5114
5053
|
};
|