@altimateai/ui-components 0.0.59 → 0.0.61-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/TagsInput.js +712 -685
- package/dist/storybook/Combobox.stories.tsx +10 -8
- package/package.json +1 -1
package/dist/TagsInput.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as c, C as Ai, a as pa, S as Ri, b as Xr, c as Ti } from "./index2.js";
|
|
2
2
|
import * as l from "react";
|
|
3
|
-
import X, { useImperativeHandle as ma, forwardRef as Ne, useState as Ve, useRef as
|
|
4
|
-
import { f as O, B as Ut, I as ga, T as Mi, g as He, h as
|
|
3
|
+
import X, { useImperativeHandle as ma, forwardRef as Ne, useState as Ve, useRef as ct, useCallback as qe, useEffect as vt } from "react";
|
|
4
|
+
import { f as O, B as Ut, I as ga, T as Mi, g as He, h as st, R as Zr, i as va, C as ar, j as Jr, O as or, k as sr, l as Qr, D as en, m as Rt, n as tn, c as pt, o as lr, p as ha, A as xa, q as Tt, u as we, r as ya, b as re, s as ba, F as wa, t as Sa, v as Di, w as Ca, P as de, x as Pi, y as ir, z as Na, E as _a, G as ji, H as rn, J as nn, K as Ia, L as Re, a as rt, M as Oi, N as ki, Q as Ke, S as Ea, W as Fi, U as Aa, d as Vi, V as $i, X as Li, Y as $n, Z as Ln, _ as Un, $ as Bn, a0 as Dr, a1 as Ui, a2 as Bi } from "./Stack.js";
|
|
5
5
|
import * as Ra from "react-dom";
|
|
6
6
|
import Gi from "react-dom";
|
|
7
7
|
const Ki = ({
|
|
@@ -152,7 +152,7 @@ function Yi({
|
|
|
152
152
|
}
|
|
153
153
|
);
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function ng({ className: e, ...r }) {
|
|
156
156
|
return /* @__PURE__ */ c.jsx(
|
|
157
157
|
"span",
|
|
158
158
|
{
|
|
@@ -177,7 +177,7 @@ function Xi({ className: e, ...r }) {
|
|
|
177
177
|
}
|
|
178
178
|
);
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function ag({ className: e, ...r }) {
|
|
181
181
|
return /* @__PURE__ */ c.jsx(
|
|
182
182
|
Mi,
|
|
183
183
|
{
|
|
@@ -219,35 +219,49 @@ Ta.displayName = "DebouncedInput";
|
|
|
219
219
|
* This source code is licensed under the MIT license.
|
|
220
220
|
* See the LICENSE file in the root directory of this source tree.
|
|
221
221
|
*/
|
|
222
|
-
const Zi = [["path", { d: "M5 12l5 5l10 -10", key: "svg-0" }]], Ji =
|
|
222
|
+
const Zi = [["path", { d: "M5 12l5 5l10 -10", key: "svg-0" }]], Ji = st("outline", "check", "Check", Zi);
|
|
223
223
|
/**
|
|
224
224
|
* @license @tabler/icons-react v3.34.1 - MIT
|
|
225
225
|
*
|
|
226
226
|
* This source code is licensed under the MIT license.
|
|
227
227
|
* See the LICENSE file in the root directory of this source tree.
|
|
228
228
|
*/
|
|
229
|
-
const Qi = [["path", { d: "
|
|
229
|
+
const Qi = [["path", { d: "M9 11l3 3l8 -8", key: "svg-0" }], ["path", { d: "M20 12v6a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h9", key: "svg-1" }]], ec = st("outline", "checkbox", "Checkbox", Qi);
|
|
230
230
|
/**
|
|
231
231
|
* @license @tabler/icons-react v3.34.1 - MIT
|
|
232
232
|
*
|
|
233
233
|
* This source code is licensed under the MIT license.
|
|
234
234
|
* See the LICENSE file in the root directory of this source tree.
|
|
235
235
|
*/
|
|
236
|
-
const tc = [["path", { d: "
|
|
236
|
+
const tc = [["path", { d: "M6 9l6 6l6 -6", key: "svg-0" }]], rc = st("outline", "chevron-down", "ChevronDown", tc);
|
|
237
237
|
/**
|
|
238
238
|
* @license @tabler/icons-react v3.34.1 - MIT
|
|
239
239
|
*
|
|
240
240
|
* This source code is licensed under the MIT license.
|
|
241
241
|
* See the LICENSE file in the root directory of this source tree.
|
|
242
242
|
*/
|
|
243
|
-
const
|
|
243
|
+
const nc = [["path", { d: "M9 6l6 6l-6 6", key: "svg-0" }]], Kn = st("outline", "chevron-right", "ChevronRight", nc);
|
|
244
244
|
/**
|
|
245
245
|
* @license @tabler/icons-react v3.34.1 - MIT
|
|
246
246
|
*
|
|
247
247
|
* This source code is licensed under the MIT license.
|
|
248
248
|
* See the LICENSE file in the root directory of this source tree.
|
|
249
249
|
*/
|
|
250
|
-
const
|
|
250
|
+
const ac = [["path", { d: "M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0", key: "svg-0" }], ["path", { d: "M21 21l-6 -6", key: "svg-1" }]], Ma = st("outline", "search", "Search", ac);
|
|
251
|
+
/**
|
|
252
|
+
* @license @tabler/icons-react v3.34.1 - MIT
|
|
253
|
+
*
|
|
254
|
+
* This source code is licensed under the MIT license.
|
|
255
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
256
|
+
*/
|
|
257
|
+
const oc = [["path", { d: "M3 3m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z", key: "svg-0" }]], sc = st("outline", "square", "Square", oc);
|
|
258
|
+
/**
|
|
259
|
+
* @license @tabler/icons-react v3.34.1 - MIT
|
|
260
|
+
*
|
|
261
|
+
* This source code is licensed under the MIT license.
|
|
262
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
263
|
+
*/
|
|
264
|
+
const lc = [["path", { d: "M18 6l-12 12", key: "svg-0" }], ["path", { d: "M6 6l12 12", key: "svg-1" }]], an = st("outline", "x", "X", lc), og = Zr, sg = va, lg = ar, ic = Jr, Da = l.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
251
265
|
or,
|
|
252
266
|
{
|
|
253
267
|
className: O(
|
|
@@ -259,7 +273,7 @@ const nc = [["path", { d: "M18 6l-12 12", key: "svg-0" }], ["path", { d: "M6 6l1
|
|
|
259
273
|
}
|
|
260
274
|
));
|
|
261
275
|
Da.displayName = or.displayName;
|
|
262
|
-
const
|
|
276
|
+
const cc = He(
|
|
263
277
|
"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",
|
|
264
278
|
{
|
|
265
279
|
variants: {
|
|
@@ -274,13 +288,13 @@ const oc = He(
|
|
|
274
288
|
side: "right"
|
|
275
289
|
}
|
|
276
290
|
}
|
|
277
|
-
),
|
|
291
|
+
), uc = l.forwardRef(({ side: e = "right", className: r, children: t, overlayProps: n = {}, ...a }, o) => /* @__PURE__ */ c.jsxs(ic, { children: [
|
|
278
292
|
/* @__PURE__ */ c.jsx(Da, { ...n }),
|
|
279
293
|
/* @__PURE__ */ c.jsxs(
|
|
280
294
|
sr,
|
|
281
295
|
{
|
|
282
296
|
ref: o,
|
|
283
|
-
className: O(
|
|
297
|
+
className: O(cc({ side: e }), "al-pr-0", r),
|
|
284
298
|
...a,
|
|
285
299
|
children: [
|
|
286
300
|
/* @__PURE__ */ c.jsx("div", { className: "al-h-full al-flex-1 al-overflow-y-auto al-pr-4", children: t }),
|
|
@@ -292,16 +306,16 @@ const oc = He(
|
|
|
292
306
|
}
|
|
293
307
|
)
|
|
294
308
|
] }));
|
|
295
|
-
|
|
296
|
-
const
|
|
309
|
+
uc.displayName = sr.displayName;
|
|
310
|
+
const dc = ({ className: e, ...r }) => /* @__PURE__ */ c.jsx(
|
|
297
311
|
"div",
|
|
298
312
|
{
|
|
299
313
|
className: O("al-flex al-flex-col al-space-y-2 al-text-center sm:al-text-left", e),
|
|
300
314
|
...r
|
|
301
315
|
}
|
|
302
316
|
);
|
|
303
|
-
|
|
304
|
-
const
|
|
317
|
+
dc.displayName = "SheetHeader";
|
|
318
|
+
const fc = ({ className: e, ...r }) => /* @__PURE__ */ c.jsx(
|
|
305
319
|
"div",
|
|
306
320
|
{
|
|
307
321
|
className: O(
|
|
@@ -311,8 +325,8 @@ const ic = ({ className: e, ...r }) => /* @__PURE__ */ c.jsx(
|
|
|
311
325
|
...r
|
|
312
326
|
}
|
|
313
327
|
);
|
|
314
|
-
|
|
315
|
-
const
|
|
328
|
+
fc.displayName = "SheetFooter";
|
|
329
|
+
const pc = l.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
316
330
|
Qr,
|
|
317
331
|
{
|
|
318
332
|
ref: t,
|
|
@@ -320,8 +334,8 @@ const cc = l.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
|
320
334
|
...r
|
|
321
335
|
}
|
|
322
336
|
));
|
|
323
|
-
|
|
324
|
-
const
|
|
337
|
+
pc.displayName = Qr.displayName;
|
|
338
|
+
const mc = l.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
325
339
|
en,
|
|
326
340
|
{
|
|
327
341
|
ref: t,
|
|
@@ -329,9 +343,9 @@ const uc = l.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
|
329
343
|
...r
|
|
330
344
|
}
|
|
331
345
|
));
|
|
332
|
-
|
|
346
|
+
mc.displayName = en.displayName;
|
|
333
347
|
var Pa = l.forwardRef((e, r) => {
|
|
334
|
-
const { children: t, ...n } = e, a = l.Children.toArray(t), o = a.find(
|
|
348
|
+
const { children: t, ...n } = e, a = l.Children.toArray(t), o = a.find(vc);
|
|
335
349
|
if (o) {
|
|
336
350
|
const s = o.props.children, i = a.map((u) => u === o ? l.Children.count(s) > 1 ? l.Children.only(null) : l.isValidElement(s) ? s.props.children : null : u);
|
|
337
351
|
return /* @__PURE__ */ c.jsx(Pr, { ...n, ref: r, children: l.isValidElement(s) ? l.cloneElement(s, void 0, i) : null });
|
|
@@ -342,9 +356,9 @@ Pa.displayName = "Slot";
|
|
|
342
356
|
var Pr = l.forwardRef((e, r) => {
|
|
343
357
|
const { children: t, ...n } = e;
|
|
344
358
|
if (l.isValidElement(t)) {
|
|
345
|
-
const a =
|
|
359
|
+
const a = xc(t);
|
|
346
360
|
return l.cloneElement(t, {
|
|
347
|
-
...
|
|
361
|
+
...hc(n, t.props),
|
|
348
362
|
// @ts-ignore
|
|
349
363
|
ref: r ? Rt(r, a) : a
|
|
350
364
|
});
|
|
@@ -352,11 +366,11 @@ var Pr = l.forwardRef((e, r) => {
|
|
|
352
366
|
return l.Children.count(t) > 1 ? l.Children.only(null) : null;
|
|
353
367
|
});
|
|
354
368
|
Pr.displayName = "SlotClone";
|
|
355
|
-
var
|
|
356
|
-
function
|
|
357
|
-
return l.isValidElement(e) && e.type ===
|
|
369
|
+
var gc = ({ children: e }) => /* @__PURE__ */ c.jsx(c.Fragment, { children: e });
|
|
370
|
+
function vc(e) {
|
|
371
|
+
return l.isValidElement(e) && e.type === gc;
|
|
358
372
|
}
|
|
359
|
-
function
|
|
373
|
+
function hc(e, r) {
|
|
360
374
|
const t = { ...r };
|
|
361
375
|
for (const n in r) {
|
|
362
376
|
const a = e[n], o = r[n];
|
|
@@ -366,22 +380,22 @@ function pc(e, r) {
|
|
|
366
380
|
}
|
|
367
381
|
return { ...e, ...t };
|
|
368
382
|
}
|
|
369
|
-
function
|
|
383
|
+
function xc(e) {
|
|
370
384
|
var n, a;
|
|
371
385
|
let r = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, t = r && "isReactWarning" in r && r.isReactWarning;
|
|
372
386
|
return t ? e.ref : (r = (a = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : a.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
|
|
373
387
|
}
|
|
374
|
-
var jr = ["Enter", " "],
|
|
388
|
+
var jr = ["Enter", " "], yc = ["ArrowDown", "PageUp", "Home"], ja = ["ArrowUp", "PageDown", "End"], bc = [...yc, ...ja], wc = {
|
|
375
389
|
ltr: [...jr, "ArrowRight"],
|
|
376
390
|
rtl: [...jr, "ArrowLeft"]
|
|
377
|
-
},
|
|
391
|
+
}, Sc = {
|
|
378
392
|
ltr: ["ArrowLeft"],
|
|
379
393
|
rtl: ["ArrowRight"]
|
|
380
|
-
}, Mt = "Menu", [
|
|
381
|
-
|
|
394
|
+
}, Mt = "Menu", [_t, Cc, Nc] = tn(Mt), [lt, Oa] = pt(Mt, [
|
|
395
|
+
Nc,
|
|
382
396
|
lr,
|
|
383
397
|
ha
|
|
384
|
-
]), Dt = lr(), ka = ha(), [Fa, Xe] =
|
|
398
|
+
]), Dt = lr(), ka = ha(), [Fa, Xe] = lt(Mt), [_c, Pt] = lt(Mt), Va = (e) => {
|
|
385
399
|
const { __scopeMenu: r, open: t = !1, children: n, dir: a, onOpenChange: o, modal: s = !0 } = e, i = Dt(r), [u, d] = l.useState(null), f = l.useRef(!1), p = ir(o), g = rn(a);
|
|
386
400
|
return l.useEffect(() => {
|
|
387
401
|
const y = () => {
|
|
@@ -399,7 +413,7 @@ var jr = ["Enter", " "], gc = ["ArrowDown", "PageUp", "Home"], ja = ["ArrowUp",
|
|
|
399
413
|
content: u,
|
|
400
414
|
onContentChange: d,
|
|
401
415
|
children: /* @__PURE__ */ c.jsx(
|
|
402
|
-
|
|
416
|
+
_c,
|
|
403
417
|
{
|
|
404
418
|
scope: r,
|
|
405
419
|
onClose: l.useCallback(() => p(!1), [p]),
|
|
@@ -413,26 +427,26 @@ var jr = ["Enter", " "], gc = ["ArrowDown", "PageUp", "Home"], ja = ["ArrowUp",
|
|
|
413
427
|
) });
|
|
414
428
|
};
|
|
415
429
|
Va.displayName = Mt;
|
|
416
|
-
var
|
|
430
|
+
var Ic = "MenuAnchor", on = l.forwardRef(
|
|
417
431
|
(e, r) => {
|
|
418
432
|
const { __scopeMenu: t, ...n } = e, a = Dt(t);
|
|
419
433
|
return /* @__PURE__ */ c.jsx(xa, { ...a, ...n, ref: r });
|
|
420
434
|
}
|
|
421
435
|
);
|
|
422
|
-
on.displayName =
|
|
423
|
-
var sn = "MenuPortal", [
|
|
436
|
+
on.displayName = Ic;
|
|
437
|
+
var sn = "MenuPortal", [Ec, $a] = lt(sn, {
|
|
424
438
|
forceMount: void 0
|
|
425
439
|
}), La = (e) => {
|
|
426
440
|
const { __scopeMenu: r, forceMount: t, children: n, container: a } = e, o = Xe(sn, r);
|
|
427
|
-
return /* @__PURE__ */ c.jsx(
|
|
441
|
+
return /* @__PURE__ */ c.jsx(Ec, { scope: r, forceMount: t, children: /* @__PURE__ */ c.jsx(Tt, { present: t || o.open, children: /* @__PURE__ */ c.jsx(Ia, { asChild: !0, container: a, children: n }) }) });
|
|
428
442
|
};
|
|
429
443
|
La.displayName = sn;
|
|
430
|
-
var je = "MenuContent", [
|
|
444
|
+
var je = "MenuContent", [Ac, ln] = lt(je), Ua = l.forwardRef(
|
|
431
445
|
(e, r) => {
|
|
432
446
|
const t = $a(je, e.__scopeMenu), { forceMount: n = t.forceMount, ...a } = e, o = Xe(je, e.__scopeMenu), s = Pt(je, e.__scopeMenu);
|
|
433
|
-
return /* @__PURE__ */ c.jsx(
|
|
447
|
+
return /* @__PURE__ */ c.jsx(_t.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ c.jsx(Tt, { present: n || o.open, children: /* @__PURE__ */ c.jsx(_t.Slot, { scope: e.__scopeMenu, children: s.modal ? /* @__PURE__ */ c.jsx(Rc, { ...a, ref: r }) : /* @__PURE__ */ c.jsx(Tc, { ...a, ref: r }) }) }) });
|
|
434
448
|
}
|
|
435
|
-
),
|
|
449
|
+
), Rc = l.forwardRef(
|
|
436
450
|
(e, r) => {
|
|
437
451
|
const t = Xe(je, e.__scopeMenu), n = l.useRef(null), a = we(r, n);
|
|
438
452
|
return l.useEffect(() => {
|
|
@@ -455,7 +469,7 @@ var je = "MenuContent", [Nc, ln] = st(je), Ua = l.forwardRef(
|
|
|
455
469
|
}
|
|
456
470
|
);
|
|
457
471
|
}
|
|
458
|
-
),
|
|
472
|
+
), Tc = l.forwardRef((e, r) => {
|
|
459
473
|
const t = Xe(je, e.__scopeMenu);
|
|
460
474
|
return /* @__PURE__ */ c.jsx(
|
|
461
475
|
cn,
|
|
@@ -485,9 +499,9 @@ var je = "MenuContent", [Nc, ln] = st(je), Ua = l.forwardRef(
|
|
|
485
499
|
onDismiss: y,
|
|
486
500
|
disableOutsideScroll: S,
|
|
487
501
|
...v
|
|
488
|
-
} = e, b = Xe(je, t), _ = Pt(je, t), x = Dt(t), N = ka(t), U =
|
|
502
|
+
} = e, b = Xe(je, t), _ = Pt(je, t), x = Dt(t), N = ka(t), U = Cc(t), [G, H] = l.useState(null), D = l.useRef(null), J = we(r, D, b.onContentChange), K = l.useRef(0), Q = l.useRef(""), se = l.useRef(0), F = l.useRef(null), Z = l.useRef("right"), W = l.useRef(0), te = S ? _a : l.Fragment, z = S ? { as: Pa, allowPinchZoom: !0 } : void 0, ie = ($) => {
|
|
489
503
|
var E, q;
|
|
490
|
-
const le = Q.current + $, pe = U().filter((oe) => !oe.disabled), C = document.activeElement, B = (E = pe.find((oe) => oe.ref.current === C)) == null ? void 0 : E.textValue, Y = pe.map((oe) => oe.textValue), k =
|
|
504
|
+
const le = Q.current + $, pe = U().filter((oe) => !oe.disabled), C = document.activeElement, B = (E = pe.find((oe) => oe.ref.current === C)) == null ? void 0 : E.textValue, Y = pe.map((oe) => oe.textValue), k = Bc(Y, le, B), ne = (q = pe.find((oe) => oe.textValue === k)) == null ? void 0 : q.ref.current;
|
|
491
505
|
(function oe(ee) {
|
|
492
506
|
Q.current = ee, window.clearTimeout(K.current), ee !== "" && (K.current = window.setTimeout(() => oe(""), 1e3));
|
|
493
507
|
})(le), ne && setTimeout(() => ne.focus());
|
|
@@ -495,10 +509,10 @@ var je = "MenuContent", [Nc, ln] = st(je), Ua = l.forwardRef(
|
|
|
495
509
|
l.useEffect(() => () => window.clearTimeout(K.current), []), ba();
|
|
496
510
|
const ce = l.useCallback(($) => {
|
|
497
511
|
var pe, C;
|
|
498
|
-
return Z.current === ((pe = F.current) == null ? void 0 : pe.side) &&
|
|
512
|
+
return Z.current === ((pe = F.current) == null ? void 0 : pe.side) && Kc($, (C = F.current) == null ? void 0 : C.area);
|
|
499
513
|
}, []);
|
|
500
514
|
return /* @__PURE__ */ c.jsx(
|
|
501
|
-
|
|
515
|
+
Ac,
|
|
502
516
|
{
|
|
503
517
|
scope: t,
|
|
504
518
|
searchRef: Q,
|
|
@@ -575,17 +589,17 @@ var je = "MenuContent", [Nc, ln] = st(je), Ua = l.forwardRef(
|
|
|
575
589
|
const pe = $.target.closest("[data-radix-menu-content]") === $.currentTarget, C = $.ctrlKey || $.altKey || $.metaKey, B = $.key.length === 1;
|
|
576
590
|
pe && ($.key === "Tab" && $.preventDefault(), !C && B && ie($.key));
|
|
577
591
|
const Y = D.current;
|
|
578
|
-
if ($.target !== Y || !
|
|
592
|
+
if ($.target !== Y || !bc.includes($.key)) return;
|
|
579
593
|
$.preventDefault();
|
|
580
594
|
const ne = U().filter((E) => !E.disabled).map((E) => E.ref.current);
|
|
581
|
-
ja.includes($.key) && ne.reverse(),
|
|
595
|
+
ja.includes($.key) && ne.reverse(), Lc(ne);
|
|
582
596
|
}),
|
|
583
597
|
onBlur: re(e.onBlur, ($) => {
|
|
584
598
|
$.currentTarget.contains($.target) || (window.clearTimeout(K.current), Q.current = "");
|
|
585
599
|
}),
|
|
586
600
|
onPointerMove: re(
|
|
587
601
|
e.onPointerMove,
|
|
588
|
-
|
|
602
|
+
It(($) => {
|
|
589
603
|
const le = $.target, pe = W.current !== $.clientX;
|
|
590
604
|
if ($.currentTarget.contains(le) && pe) {
|
|
591
605
|
const C = $.clientX > W.current ? "right" : "left";
|
|
@@ -606,20 +620,20 @@ var je = "MenuContent", [Nc, ln] = st(je), Ua = l.forwardRef(
|
|
|
606
620
|
}
|
|
607
621
|
);
|
|
608
622
|
Ua.displayName = je;
|
|
609
|
-
var
|
|
623
|
+
var Mc = "MenuGroup", un = l.forwardRef(
|
|
610
624
|
(e, r) => {
|
|
611
625
|
const { __scopeMenu: t, ...n } = e;
|
|
612
626
|
return /* @__PURE__ */ c.jsx(de.div, { role: "group", ...n, ref: r });
|
|
613
627
|
}
|
|
614
628
|
);
|
|
615
|
-
un.displayName =
|
|
616
|
-
var
|
|
629
|
+
un.displayName = Mc;
|
|
630
|
+
var Dc = "MenuLabel", Ba = l.forwardRef(
|
|
617
631
|
(e, r) => {
|
|
618
632
|
const { __scopeMenu: t, ...n } = e;
|
|
619
633
|
return /* @__PURE__ */ c.jsx(de.div, { ...n, ref: r });
|
|
620
634
|
}
|
|
621
635
|
);
|
|
622
|
-
Ba.displayName =
|
|
636
|
+
Ba.displayName = Dc;
|
|
623
637
|
var Wt = "MenuItem", Hn = "menu.itemSelect", cr = l.forwardRef(
|
|
624
638
|
(e, r) => {
|
|
625
639
|
const { disabled: t = !1, onSelect: n, ...a } = e, o = l.useRef(null), s = Pt(Wt, e.__scopeMenu), i = ln(Wt, e.__scopeMenu), u = we(r, o), d = l.useRef(!1), f = () => {
|
|
@@ -660,7 +674,7 @@ var Ga = l.forwardRef(
|
|
|
660
674
|
const S = u.current;
|
|
661
675
|
S && y((S.textContent ?? "").trim());
|
|
662
676
|
}, [o.children]), /* @__PURE__ */ c.jsx(
|
|
663
|
-
|
|
677
|
+
_t.ItemSlot,
|
|
664
678
|
{
|
|
665
679
|
scope: t,
|
|
666
680
|
disabled: n,
|
|
@@ -676,13 +690,13 @@ var Ga = l.forwardRef(
|
|
|
676
690
|
ref: d,
|
|
677
691
|
onPointerMove: re(
|
|
678
692
|
e.onPointerMove,
|
|
679
|
-
|
|
693
|
+
It((S) => {
|
|
680
694
|
n ? s.onItemLeave(S) : (s.onItemEnter(S), S.defaultPrevented || S.currentTarget.focus({ preventScroll: !0 }));
|
|
681
695
|
})
|
|
682
696
|
),
|
|
683
697
|
onPointerLeave: re(
|
|
684
698
|
e.onPointerLeave,
|
|
685
|
-
|
|
699
|
+
It((S) => s.onItemLeave(S))
|
|
686
700
|
),
|
|
687
701
|
onFocus: re(e.onFocus, () => p(!0)),
|
|
688
702
|
onBlur: re(e.onBlur, () => p(!1))
|
|
@@ -691,7 +705,7 @@ var Ga = l.forwardRef(
|
|
|
691
705
|
}
|
|
692
706
|
);
|
|
693
707
|
}
|
|
694
|
-
),
|
|
708
|
+
), Pc = "MenuCheckboxItem", Ka = l.forwardRef(
|
|
695
709
|
(e, r) => {
|
|
696
710
|
const { checked: t = !1, onCheckedChange: n, ...a } = e;
|
|
697
711
|
return /* @__PURE__ */ c.jsx(Ya, { scope: e.__scopeMenu, checked: t, children: /* @__PURE__ */ c.jsx(
|
|
@@ -711,21 +725,21 @@ var Ga = l.forwardRef(
|
|
|
711
725
|
) });
|
|
712
726
|
}
|
|
713
727
|
);
|
|
714
|
-
Ka.displayName =
|
|
715
|
-
var Ha = "MenuRadioGroup", [
|
|
728
|
+
Ka.displayName = Pc;
|
|
729
|
+
var Ha = "MenuRadioGroup", [jc, Oc] = lt(
|
|
716
730
|
Ha,
|
|
717
731
|
{ value: void 0, onValueChange: () => {
|
|
718
732
|
} }
|
|
719
733
|
), Wa = l.forwardRef(
|
|
720
734
|
(e, r) => {
|
|
721
735
|
const { value: t, onValueChange: n, ...a } = e, o = ir(n);
|
|
722
|
-
return /* @__PURE__ */ c.jsx(
|
|
736
|
+
return /* @__PURE__ */ c.jsx(jc, { scope: e.__scopeMenu, value: t, onValueChange: o, children: /* @__PURE__ */ c.jsx(un, { ...a, ref: r }) });
|
|
723
737
|
}
|
|
724
738
|
);
|
|
725
739
|
Wa.displayName = Ha;
|
|
726
740
|
var za = "MenuRadioItem", qa = l.forwardRef(
|
|
727
741
|
(e, r) => {
|
|
728
|
-
const { value: t, ...n } = e, a =
|
|
742
|
+
const { value: t, ...n } = e, a = Oc(za, e.__scopeMenu), o = t === a.value;
|
|
729
743
|
return /* @__PURE__ */ c.jsx(Ya, { scope: e.__scopeMenu, checked: o, children: /* @__PURE__ */ c.jsx(
|
|
730
744
|
cr,
|
|
731
745
|
{
|
|
@@ -747,12 +761,12 @@ var za = "MenuRadioItem", qa = l.forwardRef(
|
|
|
747
761
|
}
|
|
748
762
|
);
|
|
749
763
|
qa.displayName = za;
|
|
750
|
-
var dn = "MenuItemIndicator", [Ya,
|
|
764
|
+
var dn = "MenuItemIndicator", [Ya, kc] = lt(
|
|
751
765
|
dn,
|
|
752
766
|
{ checked: !1 }
|
|
753
767
|
), Xa = l.forwardRef(
|
|
754
768
|
(e, r) => {
|
|
755
|
-
const { __scopeMenu: t, forceMount: n, ...a } = e, o =
|
|
769
|
+
const { __scopeMenu: t, forceMount: n, ...a } = e, o = kc(dn, t);
|
|
756
770
|
return /* @__PURE__ */ c.jsx(
|
|
757
771
|
Tt,
|
|
758
772
|
{
|
|
@@ -770,7 +784,7 @@ var dn = "MenuItemIndicator", [Ya, Dc] = st(
|
|
|
770
784
|
}
|
|
771
785
|
);
|
|
772
786
|
Xa.displayName = dn;
|
|
773
|
-
var
|
|
787
|
+
var Fc = "MenuSeparator", Za = l.forwardRef(
|
|
774
788
|
(e, r) => {
|
|
775
789
|
const { __scopeMenu: t, ...n } = e;
|
|
776
790
|
return /* @__PURE__ */ c.jsx(
|
|
@@ -784,15 +798,15 @@ var Pc = "MenuSeparator", Za = l.forwardRef(
|
|
|
784
798
|
);
|
|
785
799
|
}
|
|
786
800
|
);
|
|
787
|
-
Za.displayName =
|
|
788
|
-
var
|
|
801
|
+
Za.displayName = Fc;
|
|
802
|
+
var Vc = "MenuArrow", Ja = l.forwardRef(
|
|
789
803
|
(e, r) => {
|
|
790
804
|
const { __scopeMenu: t, ...n } = e, a = Dt(t);
|
|
791
805
|
return /* @__PURE__ */ c.jsx(Na, { ...a, ...n, ref: r });
|
|
792
806
|
}
|
|
793
807
|
);
|
|
794
|
-
Ja.displayName =
|
|
795
|
-
var fn = "MenuSub", [
|
|
808
|
+
Ja.displayName = Vc;
|
|
809
|
+
var fn = "MenuSub", [$c, Qa] = lt(fn), eo = (e) => {
|
|
796
810
|
const { __scopeMenu: r, children: t, open: n = !1, onOpenChange: a } = e, o = Xe(fn, r), s = Dt(r), [i, u] = l.useState(null), [d, f] = l.useState(null), p = ir(a);
|
|
797
811
|
return l.useEffect(() => (o.open === !1 && p(!1), () => p(!1)), [o.open, p]), /* @__PURE__ */ c.jsx(nn, { ...s, children: /* @__PURE__ */ c.jsx(
|
|
798
812
|
Fa,
|
|
@@ -803,7 +817,7 @@ var fn = "MenuSub", [Oc, Qa] = st(fn), eo = (e) => {
|
|
|
803
817
|
content: d,
|
|
804
818
|
onContentChange: f,
|
|
805
819
|
children: /* @__PURE__ */ c.jsx(
|
|
806
|
-
|
|
820
|
+
$c,
|
|
807
821
|
{
|
|
808
822
|
scope: r,
|
|
809
823
|
contentId: Re(),
|
|
@@ -817,9 +831,9 @@ var fn = "MenuSub", [Oc, Qa] = st(fn), eo = (e) => {
|
|
|
817
831
|
) });
|
|
818
832
|
};
|
|
819
833
|
eo.displayName = fn;
|
|
820
|
-
var
|
|
834
|
+
var bt = "MenuSubTrigger", to = l.forwardRef(
|
|
821
835
|
(e, r) => {
|
|
822
|
-
const t = Xe(
|
|
836
|
+
const t = Xe(bt, e.__scopeMenu), n = Pt(bt, e.__scopeMenu), a = Qa(bt, e.__scopeMenu), o = ln(bt, e.__scopeMenu), s = l.useRef(null), { pointerGraceTimerRef: i, onPointerGraceIntentChange: u } = o, d = { __scopeMenu: e.__scopeMenu }, f = l.useCallback(() => {
|
|
823
837
|
s.current && window.clearTimeout(s.current), s.current = null;
|
|
824
838
|
}, []);
|
|
825
839
|
return l.useEffect(() => f, [f]), l.useEffect(() => {
|
|
@@ -843,7 +857,7 @@ var yt = "MenuSubTrigger", to = l.forwardRef(
|
|
|
843
857
|
},
|
|
844
858
|
onPointerMove: re(
|
|
845
859
|
e.onPointerMove,
|
|
846
|
-
|
|
860
|
+
It((p) => {
|
|
847
861
|
o.onItemEnter(p), !p.defaultPrevented && !e.disabled && !t.open && !s.current && (o.onPointerGraceIntentChange(null), s.current = window.setTimeout(() => {
|
|
848
862
|
t.onOpenChange(!0), f();
|
|
849
863
|
}, 100));
|
|
@@ -851,7 +865,7 @@ var yt = "MenuSubTrigger", to = l.forwardRef(
|
|
|
851
865
|
),
|
|
852
866
|
onPointerLeave: re(
|
|
853
867
|
e.onPointerLeave,
|
|
854
|
-
|
|
868
|
+
It((p) => {
|
|
855
869
|
var y, S;
|
|
856
870
|
f();
|
|
857
871
|
const g = (y = t.content) == null ? void 0 : y.getBoundingClientRect();
|
|
@@ -881,17 +895,17 @@ var yt = "MenuSubTrigger", to = l.forwardRef(
|
|
|
881
895
|
onKeyDown: re(e.onKeyDown, (p) => {
|
|
882
896
|
var y;
|
|
883
897
|
const g = o.searchRef.current !== "";
|
|
884
|
-
e.disabled || g && p.key === " " ||
|
|
898
|
+
e.disabled || g && p.key === " " || wc[n.dir].includes(p.key) && (t.onOpenChange(!0), (y = t.content) == null || y.focus(), p.preventDefault());
|
|
885
899
|
})
|
|
886
900
|
}
|
|
887
901
|
) });
|
|
888
902
|
}
|
|
889
903
|
);
|
|
890
|
-
to.displayName =
|
|
904
|
+
to.displayName = bt;
|
|
891
905
|
var ro = "MenuSubContent", no = l.forwardRef(
|
|
892
906
|
(e, r) => {
|
|
893
907
|
const t = $a(je, e.__scopeMenu), { forceMount: n = t.forceMount, ...a } = e, o = Xe(je, e.__scopeMenu), s = Pt(je, e.__scopeMenu), i = Qa(ro, e.__scopeMenu), u = l.useRef(null), d = we(r, u);
|
|
894
|
-
return /* @__PURE__ */ c.jsx(
|
|
908
|
+
return /* @__PURE__ */ c.jsx(_t.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ c.jsx(Tt, { present: n || o.open, children: /* @__PURE__ */ c.jsx(_t.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ c.jsx(
|
|
895
909
|
cn,
|
|
896
910
|
{
|
|
897
911
|
id: i.contentId,
|
|
@@ -916,7 +930,7 @@ var ro = "MenuSubContent", no = l.forwardRef(
|
|
|
916
930
|
}),
|
|
917
931
|
onKeyDown: re(e.onKeyDown, (f) => {
|
|
918
932
|
var y;
|
|
919
|
-
const p = f.currentTarget.contains(f.target), g =
|
|
933
|
+
const p = f.currentTarget.contains(f.target), g = Sc[s.dir].includes(f.key);
|
|
920
934
|
p && g && (o.onOpenChange(!1), (y = i.trigger) == null || y.focus(), f.preventDefault());
|
|
921
935
|
})
|
|
922
936
|
}
|
|
@@ -933,24 +947,24 @@ function zt(e) {
|
|
|
933
947
|
function pn(e) {
|
|
934
948
|
return zt(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
935
949
|
}
|
|
936
|
-
function
|
|
950
|
+
function Lc(e) {
|
|
937
951
|
const r = document.activeElement;
|
|
938
952
|
for (const t of e)
|
|
939
953
|
if (t === r || (t.focus(), document.activeElement !== r)) return;
|
|
940
954
|
}
|
|
941
|
-
function
|
|
955
|
+
function Uc(e, r) {
|
|
942
956
|
return e.map((t, n) => e[(r + n) % e.length]);
|
|
943
957
|
}
|
|
944
|
-
function
|
|
958
|
+
function Bc(e, r, t) {
|
|
945
959
|
const a = r.length > 1 && Array.from(r).every((d) => d === r[0]) ? r[0] : r, o = t ? e.indexOf(t) : -1;
|
|
946
|
-
let s =
|
|
960
|
+
let s = Uc(e, Math.max(o, 0));
|
|
947
961
|
a.length === 1 && (s = s.filter((d) => d !== t));
|
|
948
962
|
const u = s.find(
|
|
949
963
|
(d) => d.toLowerCase().startsWith(a.toLowerCase())
|
|
950
964
|
);
|
|
951
965
|
return u !== t ? u : void 0;
|
|
952
966
|
}
|
|
953
|
-
function
|
|
967
|
+
function Gc(e, r) {
|
|
954
968
|
const { x: t, y: n } = e;
|
|
955
969
|
let a = !1;
|
|
956
970
|
for (let o = 0, s = r.length - 1; o < r.length; s = o++) {
|
|
@@ -959,18 +973,18 @@ function $c(e, r) {
|
|
|
959
973
|
}
|
|
960
974
|
return a;
|
|
961
975
|
}
|
|
962
|
-
function
|
|
976
|
+
function Kc(e, r) {
|
|
963
977
|
if (!r) return !1;
|
|
964
978
|
const t = { x: e.clientX, y: e.clientY };
|
|
965
|
-
return
|
|
979
|
+
return Gc(t, r);
|
|
966
980
|
}
|
|
967
|
-
function
|
|
981
|
+
function It(e) {
|
|
968
982
|
return (r) => r.pointerType === "mouse" ? e(r) : void 0;
|
|
969
983
|
}
|
|
970
|
-
var
|
|
984
|
+
var Hc = Va, Wc = on, zc = La, qc = Ua, Yc = un, Xc = Ba, Zc = cr, Jc = Ka, Qc = Wa, eu = qa, tu = Xa, ru = Za, nu = Ja, au = eo, ou = to, su = no, mn = "DropdownMenu", [lu, ig] = pt(
|
|
971
985
|
mn,
|
|
972
986
|
[Oa]
|
|
973
|
-
), _e = Oa(), [
|
|
987
|
+
), _e = Oa(), [iu, oo] = lu(mn), so = (e) => {
|
|
974
988
|
const {
|
|
975
989
|
__scopeDropdownMenu: r,
|
|
976
990
|
children: t,
|
|
@@ -985,7 +999,7 @@ var Uc = Va, Bc = on, Gc = La, Kc = Ua, Hc = un, Wc = Ba, zc = cr, qc = Ka, Yc =
|
|
|
985
999
|
onChange: s
|
|
986
1000
|
});
|
|
987
1001
|
return /* @__PURE__ */ c.jsx(
|
|
988
|
-
|
|
1002
|
+
iu,
|
|
989
1003
|
{
|
|
990
1004
|
scope: r,
|
|
991
1005
|
triggerId: Re(),
|
|
@@ -995,7 +1009,7 @@ var Uc = Va, Bc = on, Gc = La, Kc = Ua, Hc = un, Wc = Ba, zc = cr, qc = Ka, Yc =
|
|
|
995
1009
|
onOpenChange: p,
|
|
996
1010
|
onOpenToggle: l.useCallback(() => p((g) => !g), [p]),
|
|
997
1011
|
modal: i,
|
|
998
|
-
children: /* @__PURE__ */ c.jsx(
|
|
1012
|
+
children: /* @__PURE__ */ c.jsx(Hc, { ...u, open: f, onOpenChange: p, dir: n, modal: i, children: t })
|
|
999
1013
|
}
|
|
1000
1014
|
);
|
|
1001
1015
|
};
|
|
@@ -1003,7 +1017,7 @@ so.displayName = mn;
|
|
|
1003
1017
|
var lo = "DropdownMenuTrigger", io = l.forwardRef(
|
|
1004
1018
|
(e, r) => {
|
|
1005
1019
|
const { __scopeDropdownMenu: t, disabled: n = !1, ...a } = e, o = oo(lo, t), s = _e(t);
|
|
1006
|
-
return /* @__PURE__ */ c.jsx(
|
|
1020
|
+
return /* @__PURE__ */ c.jsx(Wc, { asChild: !0, ...s, children: /* @__PURE__ */ c.jsx(
|
|
1007
1021
|
de.button,
|
|
1008
1022
|
{
|
|
1009
1023
|
type: "button",
|
|
@@ -1027,16 +1041,16 @@ var lo = "DropdownMenuTrigger", io = l.forwardRef(
|
|
|
1027
1041
|
}
|
|
1028
1042
|
);
|
|
1029
1043
|
io.displayName = lo;
|
|
1030
|
-
var
|
|
1044
|
+
var cu = "DropdownMenuPortal", co = (e) => {
|
|
1031
1045
|
const { __scopeDropdownMenu: r, ...t } = e, n = _e(r);
|
|
1032
|
-
return /* @__PURE__ */ c.jsx(
|
|
1046
|
+
return /* @__PURE__ */ c.jsx(zc, { ...n, ...t });
|
|
1033
1047
|
};
|
|
1034
|
-
co.displayName =
|
|
1048
|
+
co.displayName = cu;
|
|
1035
1049
|
var uo = "DropdownMenuContent", fo = l.forwardRef(
|
|
1036
1050
|
(e, r) => {
|
|
1037
1051
|
const { __scopeDropdownMenu: t, ...n } = e, a = oo(uo, t), o = _e(t), s = l.useRef(!1);
|
|
1038
1052
|
return /* @__PURE__ */ c.jsx(
|
|
1039
|
-
|
|
1053
|
+
qc,
|
|
1040
1054
|
{
|
|
1041
1055
|
id: a.contentId,
|
|
1042
1056
|
"aria-labelledby": a.triggerId,
|
|
@@ -1064,75 +1078,75 @@ var uo = "DropdownMenuContent", fo = l.forwardRef(
|
|
|
1064
1078
|
}
|
|
1065
1079
|
);
|
|
1066
1080
|
fo.displayName = uo;
|
|
1067
|
-
var
|
|
1081
|
+
var uu = "DropdownMenuGroup", po = l.forwardRef(
|
|
1068
1082
|
(e, r) => {
|
|
1069
1083
|
const { __scopeDropdownMenu: t, ...n } = e, a = _e(t);
|
|
1070
|
-
return /* @__PURE__ */ c.jsx(
|
|
1084
|
+
return /* @__PURE__ */ c.jsx(Yc, { ...a, ...n, ref: r });
|
|
1071
1085
|
}
|
|
1072
1086
|
);
|
|
1073
|
-
po.displayName =
|
|
1074
|
-
var
|
|
1087
|
+
po.displayName = uu;
|
|
1088
|
+
var du = "DropdownMenuLabel", mo = l.forwardRef(
|
|
1075
1089
|
(e, r) => {
|
|
1076
1090
|
const { __scopeDropdownMenu: t, ...n } = e, a = _e(t);
|
|
1077
|
-
return /* @__PURE__ */ c.jsx(
|
|
1091
|
+
return /* @__PURE__ */ c.jsx(Xc, { ...a, ...n, ref: r });
|
|
1078
1092
|
}
|
|
1079
1093
|
);
|
|
1080
|
-
mo.displayName =
|
|
1081
|
-
var
|
|
1094
|
+
mo.displayName = du;
|
|
1095
|
+
var fu = "DropdownMenuItem", go = l.forwardRef(
|
|
1082
1096
|
(e, r) => {
|
|
1083
1097
|
const { __scopeDropdownMenu: t, ...n } = e, a = _e(t);
|
|
1084
|
-
return /* @__PURE__ */ c.jsx(
|
|
1098
|
+
return /* @__PURE__ */ c.jsx(Zc, { ...a, ...n, ref: r });
|
|
1085
1099
|
}
|
|
1086
1100
|
);
|
|
1087
|
-
go.displayName =
|
|
1088
|
-
var
|
|
1101
|
+
go.displayName = fu;
|
|
1102
|
+
var pu = "DropdownMenuCheckboxItem", vo = l.forwardRef((e, r) => {
|
|
1089
1103
|
const { __scopeDropdownMenu: t, ...n } = e, a = _e(t);
|
|
1090
|
-
return /* @__PURE__ */ c.jsx(
|
|
1104
|
+
return /* @__PURE__ */ c.jsx(Jc, { ...a, ...n, ref: r });
|
|
1091
1105
|
});
|
|
1092
|
-
vo.displayName =
|
|
1093
|
-
var
|
|
1106
|
+
vo.displayName = pu;
|
|
1107
|
+
var mu = "DropdownMenuRadioGroup", ho = l.forwardRef((e, r) => {
|
|
1094
1108
|
const { __scopeDropdownMenu: t, ...n } = e, a = _e(t);
|
|
1095
|
-
return /* @__PURE__ */ c.jsx(
|
|
1109
|
+
return /* @__PURE__ */ c.jsx(Qc, { ...a, ...n, ref: r });
|
|
1096
1110
|
});
|
|
1097
|
-
ho.displayName =
|
|
1098
|
-
var
|
|
1111
|
+
ho.displayName = mu;
|
|
1112
|
+
var gu = "DropdownMenuRadioItem", xo = l.forwardRef((e, r) => {
|
|
1099
1113
|
const { __scopeDropdownMenu: t, ...n } = e, a = _e(t);
|
|
1100
|
-
return /* @__PURE__ */ c.jsx(
|
|
1114
|
+
return /* @__PURE__ */ c.jsx(eu, { ...a, ...n, ref: r });
|
|
1101
1115
|
});
|
|
1102
|
-
xo.displayName =
|
|
1103
|
-
var
|
|
1116
|
+
xo.displayName = gu;
|
|
1117
|
+
var vu = "DropdownMenuItemIndicator", yo = l.forwardRef((e, r) => {
|
|
1104
1118
|
const { __scopeDropdownMenu: t, ...n } = e, a = _e(t);
|
|
1105
|
-
return /* @__PURE__ */ c.jsx(
|
|
1119
|
+
return /* @__PURE__ */ c.jsx(tu, { ...a, ...n, ref: r });
|
|
1106
1120
|
});
|
|
1107
|
-
yo.displayName =
|
|
1108
|
-
var
|
|
1121
|
+
yo.displayName = vu;
|
|
1122
|
+
var hu = "DropdownMenuSeparator", bo = l.forwardRef((e, r) => {
|
|
1109
1123
|
const { __scopeDropdownMenu: t, ...n } = e, a = _e(t);
|
|
1110
|
-
return /* @__PURE__ */ c.jsx(
|
|
1124
|
+
return /* @__PURE__ */ c.jsx(ru, { ...a, ...n, ref: r });
|
|
1111
1125
|
});
|
|
1112
|
-
bo.displayName =
|
|
1113
|
-
var
|
|
1126
|
+
bo.displayName = hu;
|
|
1127
|
+
var xu = "DropdownMenuArrow", yu = l.forwardRef(
|
|
1114
1128
|
(e, r) => {
|
|
1115
1129
|
const { __scopeDropdownMenu: t, ...n } = e, a = _e(t);
|
|
1116
|
-
return /* @__PURE__ */ c.jsx(
|
|
1130
|
+
return /* @__PURE__ */ c.jsx(nu, { ...a, ...n, ref: r });
|
|
1117
1131
|
}
|
|
1118
1132
|
);
|
|
1119
|
-
|
|
1120
|
-
var
|
|
1133
|
+
yu.displayName = xu;
|
|
1134
|
+
var bu = (e) => {
|
|
1121
1135
|
const { __scopeDropdownMenu: r, children: t, open: n, onOpenChange: a, defaultOpen: o } = e, s = _e(r), [i = !1, u] = rt({
|
|
1122
1136
|
prop: n,
|
|
1123
1137
|
defaultProp: o,
|
|
1124
1138
|
onChange: a
|
|
1125
1139
|
});
|
|
1126
|
-
return /* @__PURE__ */ c.jsx(
|
|
1127
|
-
},
|
|
1140
|
+
return /* @__PURE__ */ c.jsx(au, { ...s, open: i, onOpenChange: u, children: t });
|
|
1141
|
+
}, wu = "DropdownMenuSubTrigger", wo = l.forwardRef((e, r) => {
|
|
1128
1142
|
const { __scopeDropdownMenu: t, ...n } = e, a = _e(t);
|
|
1129
|
-
return /* @__PURE__ */ c.jsx(
|
|
1143
|
+
return /* @__PURE__ */ c.jsx(ou, { ...a, ...n, ref: r });
|
|
1130
1144
|
});
|
|
1131
|
-
wo.displayName =
|
|
1132
|
-
var
|
|
1145
|
+
wo.displayName = wu;
|
|
1146
|
+
var Su = "DropdownMenuSubContent", So = l.forwardRef((e, r) => {
|
|
1133
1147
|
const { __scopeDropdownMenu: t, ...n } = e, a = _e(t);
|
|
1134
1148
|
return /* @__PURE__ */ c.jsx(
|
|
1135
|
-
|
|
1149
|
+
su,
|
|
1136
1150
|
{
|
|
1137
1151
|
...a,
|
|
1138
1152
|
...n,
|
|
@@ -1148,9 +1162,9 @@ var xu = "DropdownMenuSubContent", So = l.forwardRef((e, r) => {
|
|
|
1148
1162
|
}
|
|
1149
1163
|
);
|
|
1150
1164
|
});
|
|
1151
|
-
So.displayName =
|
|
1152
|
-
var
|
|
1153
|
-
const
|
|
1165
|
+
So.displayName = Su;
|
|
1166
|
+
var Cu = so, Nu = io, Co = co, No = fo, _u = po, _o = mo, Io = go, Eo = vo, Iu = ho, Ao = xo, Ro = yo, To = bo, Eu = bu, Mo = wo, Do = So;
|
|
1167
|
+
const cg = Cu, ug = Nu, dg = _u, fg = Co, pg = Eu, mg = Iu, Au = Ne(({ className: e, inset: r, children: t, ...n }, a) => /* @__PURE__ */ c.jsxs(
|
|
1154
1168
|
Mo,
|
|
1155
1169
|
{
|
|
1156
1170
|
ref: a,
|
|
@@ -1166,8 +1180,8 @@ const og = yu, sg = bu, lg = wu, ig = Co, cg = Cu, ug = Su, Nu = Ne(({ className
|
|
|
1166
1180
|
]
|
|
1167
1181
|
}
|
|
1168
1182
|
));
|
|
1169
|
-
|
|
1170
|
-
const
|
|
1183
|
+
Au.displayName = Mo.displayName;
|
|
1184
|
+
const Ru = Ne(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
1171
1185
|
Do,
|
|
1172
1186
|
{
|
|
1173
1187
|
ref: t,
|
|
@@ -1178,8 +1192,8 @@ const _u = Ne(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
|
1178
1192
|
...r
|
|
1179
1193
|
}
|
|
1180
1194
|
));
|
|
1181
|
-
|
|
1182
|
-
const
|
|
1195
|
+
Ru.displayName = Do.displayName;
|
|
1196
|
+
const Tu = Ne(({ className: e, sideOffset: r = 4, ...t }, n) => /* @__PURE__ */ c.jsx(Co, { children: /* @__PURE__ */ c.jsx(
|
|
1183
1197
|
No,
|
|
1184
1198
|
{
|
|
1185
1199
|
ref: n,
|
|
@@ -1191,8 +1205,8 @@ const Iu = Ne(({ className: e, sideOffset: r = 4, ...t }, n) => /* @__PURE__ */
|
|
|
1191
1205
|
...t
|
|
1192
1206
|
}
|
|
1193
1207
|
) }));
|
|
1194
|
-
|
|
1195
|
-
const
|
|
1208
|
+
Tu.displayName = No.displayName;
|
|
1209
|
+
const Mu = Ne(({ className: e, inset: r, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
1196
1210
|
Io,
|
|
1197
1211
|
{
|
|
1198
1212
|
ref: n,
|
|
@@ -1204,8 +1218,8 @@ const Eu = Ne(({ className: e, inset: r, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
|
1204
1218
|
...t
|
|
1205
1219
|
}
|
|
1206
1220
|
));
|
|
1207
|
-
|
|
1208
|
-
const
|
|
1221
|
+
Mu.displayName = Io.displayName;
|
|
1222
|
+
const Du = Ne(({ className: e, children: r, checked: t, ...n }, a) => /* @__PURE__ */ c.jsxs(
|
|
1209
1223
|
Eo,
|
|
1210
1224
|
{
|
|
1211
1225
|
ref: a,
|
|
@@ -1221,8 +1235,8 @@ const Au = Ne(({ className: e, children: r, checked: t, ...n }, a) => /* @__PURE
|
|
|
1221
1235
|
]
|
|
1222
1236
|
}
|
|
1223
1237
|
));
|
|
1224
|
-
|
|
1225
|
-
const
|
|
1238
|
+
Du.displayName = Eo.displayName;
|
|
1239
|
+
const Pu = Ne(({ className: e, children: r, ...t }, n) => /* @__PURE__ */ c.jsxs(
|
|
1226
1240
|
Ao,
|
|
1227
1241
|
{
|
|
1228
1242
|
ref: n,
|
|
@@ -1237,8 +1251,8 @@ const Ru = Ne(({ className: e, children: r, ...t }, n) => /* @__PURE__ */ c.jsxs
|
|
|
1237
1251
|
]
|
|
1238
1252
|
}
|
|
1239
1253
|
));
|
|
1240
|
-
|
|
1241
|
-
const
|
|
1254
|
+
Pu.displayName = Ao.displayName;
|
|
1255
|
+
const ju = Ne(({ className: e, inset: r, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
1242
1256
|
_o,
|
|
1243
1257
|
{
|
|
1244
1258
|
ref: n,
|
|
@@ -1246,8 +1260,8 @@ const Tu = Ne(({ className: e, inset: r, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
|
1246
1260
|
...t
|
|
1247
1261
|
}
|
|
1248
1262
|
));
|
|
1249
|
-
|
|
1250
|
-
const
|
|
1263
|
+
ju.displayName = _o.displayName;
|
|
1264
|
+
const Ou = Ne(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
1251
1265
|
To,
|
|
1252
1266
|
{
|
|
1253
1267
|
ref: t,
|
|
@@ -1255,27 +1269,27 @@ const Mu = Ne(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
|
1255
1269
|
...r
|
|
1256
1270
|
}
|
|
1257
1271
|
));
|
|
1258
|
-
|
|
1259
|
-
const
|
|
1272
|
+
Ou.displayName = To.displayName;
|
|
1273
|
+
const ku = ({ className: e, ...r }) => /* @__PURE__ */ c.jsx(
|
|
1260
1274
|
"span",
|
|
1261
1275
|
{
|
|
1262
1276
|
className: O("al-ml-auto al-text-xs al-tracking-widest al-opacity-60", e),
|
|
1263
1277
|
...r
|
|
1264
1278
|
}
|
|
1265
1279
|
);
|
|
1266
|
-
|
|
1267
|
-
var Wn = 1,
|
|
1280
|
+
ku.displayName = "DropdownMenuShortcut";
|
|
1281
|
+
var Wn = 1, Fu = 0.9, Vu = 0.8, $u = 0.17, Sr = 0.1, Cr = 0.999, Lu = 0.9999, Uu = 0.99, Bu = /[\\\/_+.#"@\[\(\{&]/, Gu = /[\\\/_+.#"@\[\(\{&]/g, Ku = /[\s-]/, Po = /[\s-]/g;
|
|
1268
1282
|
function Or(e, r, t, n, a, o, s) {
|
|
1269
|
-
if (o === r.length) return a === e.length ? Wn :
|
|
1283
|
+
if (o === r.length) return a === e.length ? Wn : Uu;
|
|
1270
1284
|
var i = `${a},${o}`;
|
|
1271
1285
|
if (s[i] !== void 0) return s[i];
|
|
1272
|
-
for (var u = n.charAt(o), d = t.indexOf(u, a), f = 0, p, g, y, S; d >= 0; ) p = Or(e, r, t, n, d + 1, o + 1, s), p > f && (d === a ? p *= Wn :
|
|
1286
|
+
for (var u = n.charAt(o), d = t.indexOf(u, a), f = 0, p, g, y, S; d >= 0; ) p = Or(e, r, t, n, d + 1, o + 1, s), p > f && (d === a ? p *= Wn : Bu.test(e.charAt(d - 1)) ? (p *= Vu, y = e.slice(a, d - 1).match(Gu), y && a > 0 && (p *= Math.pow(Cr, y.length))) : Ku.test(e.charAt(d - 1)) ? (p *= Fu, S = e.slice(a, d - 1).match(Po), S && a > 0 && (p *= Math.pow(Cr, S.length))) : (p *= $u, a > 0 && (p *= Math.pow(Cr, d - a))), e.charAt(d) !== r.charAt(o) && (p *= Lu)), (p < Sr && t.charAt(d - 1) === n.charAt(o + 1) || n.charAt(o + 1) === n.charAt(o) && t.charAt(d - 1) !== n.charAt(o)) && (g = Or(e, r, t, n, d + 1, o + 2, s), g * Sr > p && (p = g * Sr)), p > f && (f = p), d = t.indexOf(u, d + 1);
|
|
1273
1287
|
return s[i] = f, f;
|
|
1274
1288
|
}
|
|
1275
1289
|
function zn(e) {
|
|
1276
1290
|
return e.toLowerCase().replace(Po, " ");
|
|
1277
1291
|
}
|
|
1278
|
-
function
|
|
1292
|
+
function Hu(e, r, t) {
|
|
1279
1293
|
return e = t && t.length > 0 ? `${e + " " + t.join(" ")}` : e, Or(e, r, zn(e), zn(r), 0, 0, {});
|
|
1280
1294
|
}
|
|
1281
1295
|
var kr = { exports: {} }, Nr = {};
|
|
@@ -1289,7 +1303,7 @@ var kr = { exports: {} }, Nr = {};
|
|
|
1289
1303
|
* LICENSE file in the root directory of this source tree.
|
|
1290
1304
|
*/
|
|
1291
1305
|
var qn;
|
|
1292
|
-
function
|
|
1306
|
+
function Wu() {
|
|
1293
1307
|
if (qn) return Nr;
|
|
1294
1308
|
qn = 1;
|
|
1295
1309
|
var e = X;
|
|
@@ -1340,7 +1354,7 @@ var _r = {};
|
|
|
1340
1354
|
* LICENSE file in the root directory of this source tree.
|
|
1341
1355
|
*/
|
|
1342
1356
|
var Yn;
|
|
1343
|
-
function
|
|
1357
|
+
function zu() {
|
|
1344
1358
|
return Yn || (Yn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1345
1359
|
function e(y, S) {
|
|
1346
1360
|
return y === S && (y !== 0 || 1 / y === 1 / S) || y !== y && S !== S;
|
|
@@ -1392,12 +1406,12 @@ function Gu() {
|
|
|
1392
1406
|
_r.useSyncExternalStore = a.useSyncExternalStore !== void 0 ? a.useSyncExternalStore : g, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1393
1407
|
}()), _r;
|
|
1394
1408
|
}
|
|
1395
|
-
process.env.NODE_ENV === "production" ? kr.exports =
|
|
1396
|
-
var
|
|
1397
|
-
let t =
|
|
1409
|
+
process.env.NODE_ENV === "production" ? kr.exports = Wu() : kr.exports = zu();
|
|
1410
|
+
var qu = kr.exports, ht = '[cmdk-group=""]', Ir = '[cmdk-group-items=""]', Yu = '[cmdk-group-heading=""]', gn = '[cmdk-item=""]', Xn = `${gn}:not([aria-disabled="true"])`, Fr = "cmdk-item-select", et = "data-value", Xu = (e, r, t) => Hu(e, r, t), jo = l.createContext(void 0), jt = () => l.useContext(jo), Oo = l.createContext(void 0), vn = () => l.useContext(Oo), ko = l.createContext(void 0), Fo = l.forwardRef((e, r) => {
|
|
1411
|
+
let t = dt(() => {
|
|
1398
1412
|
var C, B;
|
|
1399
1413
|
return { search: "", value: (B = (C = e.value) != null ? C : e.defaultValue) != null ? B : "", filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
|
|
1400
|
-
}), n =
|
|
1414
|
+
}), n = dt(() => /* @__PURE__ */ new Set()), a = dt(() => /* @__PURE__ */ new Map()), o = dt(() => /* @__PURE__ */ new Map()), s = dt(() => /* @__PURE__ */ new Set()), i = Vo(e), { label: u, children: d, value: f, onValueChange: p, filter: g, shouldFilter: y, loop: S, disablePointerSelection: v = !1, vimBindings: b = !0, ..._ } = e, x = Re(), N = Re(), U = Re(), G = l.useRef(null), H = ld();
|
|
1401
1415
|
nt(() => {
|
|
1402
1416
|
if (f !== void 0) {
|
|
1403
1417
|
let C = f.trim();
|
|
@@ -1437,7 +1451,7 @@ var Ku = kr.exports, vt = '[cmdk-group=""]', Ir = '[cmdk-group-items=""]', Hu =
|
|
|
1437
1451
|
}), filter: () => i.current.shouldFilter, label: u || e["aria-label"], getDisablePointerSelection: () => i.current.disablePointerSelection, listId: x, inputId: U, labelId: N, listInnerRef: G }), []);
|
|
1438
1452
|
function K(C, B) {
|
|
1439
1453
|
var Y, k;
|
|
1440
|
-
let ne = (k = (Y = i.current) == null ? void 0 : Y.filter) != null ? k :
|
|
1454
|
+
let ne = (k = (Y = i.current) == null ? void 0 : Y.filter) != null ? k : Xu;
|
|
1441
1455
|
return C ? ne(C, t.current.search, B) : 0;
|
|
1442
1456
|
}
|
|
1443
1457
|
function Q() {
|
|
@@ -1460,7 +1474,7 @@ var Ku = kr.exports, vt = '[cmdk-group=""]', Ir = '[cmdk-group-items=""]', Hu =
|
|
|
1460
1474
|
ne ? ne.appendChild(k.parentElement === ne ? k : k.closest(`${Ir} > *`)) : Y.appendChild(k.parentElement === Y ? k : k.closest(`${Ir} > *`));
|
|
1461
1475
|
}), B.sort((k, ne) => ne[1] - k[1]).forEach((k) => {
|
|
1462
1476
|
var ne;
|
|
1463
|
-
let E = (ne = G.current) == null ? void 0 : ne.querySelector(`${
|
|
1477
|
+
let E = (ne = G.current) == null ? void 0 : ne.querySelector(`${ht}[${et}="${encodeURIComponent(k[0])}"]`);
|
|
1464
1478
|
E == null || E.parentElement.appendChild(E);
|
|
1465
1479
|
});
|
|
1466
1480
|
}
|
|
@@ -1489,7 +1503,7 @@ var Ku = kr.exports, vt = '[cmdk-group=""]', Ir = '[cmdk-group-items=""]', Hu =
|
|
|
1489
1503
|
function Z() {
|
|
1490
1504
|
var C, B, Y;
|
|
1491
1505
|
let k = W();
|
|
1492
|
-
k && (((C = k.parentElement) == null ? void 0 : C.firstChild) === k && ((Y = (B = k.closest(
|
|
1506
|
+
k && (((C = k.parentElement) == null ? void 0 : C.firstChild) === k && ((Y = (B = k.closest(ht)) == null ? void 0 : B.querySelector(Yu)) == null || Y.scrollIntoView({ block: "nearest" })), k.scrollIntoView({ block: "nearest" }));
|
|
1493
1507
|
}
|
|
1494
1508
|
function W() {
|
|
1495
1509
|
var C;
|
|
@@ -1509,8 +1523,8 @@ var Ku = kr.exports, vt = '[cmdk-group=""]', Ir = '[cmdk-group-items=""]', Hu =
|
|
|
1509
1523
|
(B = i.current) != null && B.loop && (E = ne + C < 0 ? k[k.length - 1] : ne + C === k.length ? k[0] : k[ne + C]), E && D.setState("value", E.getAttribute(et));
|
|
1510
1524
|
}
|
|
1511
1525
|
function ce(C) {
|
|
1512
|
-
let B = W(), Y = B == null ? void 0 : B.closest(
|
|
1513
|
-
for (; Y && !k; ) Y = C > 0 ?
|
|
1526
|
+
let B = W(), Y = B == null ? void 0 : B.closest(ht), k;
|
|
1527
|
+
for (; Y && !k; ) Y = C > 0 ? od(Y, ht) : sd(Y, ht), k = Y == null ? void 0 : Y.querySelector(Xn);
|
|
1514
1528
|
k ? D.setState("value", k.getAttribute(et)) : ie(C);
|
|
1515
1529
|
}
|
|
1516
1530
|
let $ = () => z(te().length - 1), le = (C) => {
|
|
@@ -1557,8 +1571,8 @@ var Ku = kr.exports, vt = '[cmdk-group=""]', Ir = '[cmdk-group-items=""]', Hu =
|
|
|
1557
1571
|
}
|
|
1558
1572
|
}
|
|
1559
1573
|
}
|
|
1560
|
-
} }, l.createElement("label", { "cmdk-label": "", htmlFor: J.inputId, id: J.labelId, style:
|
|
1561
|
-
}),
|
|
1574
|
+
} }, l.createElement("label", { "cmdk-label": "", htmlFor: J.inputId, id: J.labelId, style: cd }, u), ur(e, (C) => l.createElement(Oo.Provider, { value: D }, l.createElement(jo.Provider, { value: J }, C))));
|
|
1575
|
+
}), Zu = l.forwardRef((e, r) => {
|
|
1562
1576
|
var t, n;
|
|
1563
1577
|
let a = Re(), o = l.useRef(null), s = l.useContext(ko), i = jt(), u = Vo(e), d = (n = (t = u.current) == null ? void 0 : t.forceMount) != null ? n : s == null ? void 0 : s.forceMount;
|
|
1564
1578
|
nt(() => {
|
|
@@ -1578,16 +1592,16 @@ var Ku = kr.exports, vt = '[cmdk-group=""]', Ir = '[cmdk-group-items=""]', Hu =
|
|
|
1578
1592
|
}
|
|
1579
1593
|
if (!y) return null;
|
|
1580
1594
|
let { disabled: b, value: _, onSelect: x, forceMount: N, keywords: U, ...G } = e;
|
|
1581
|
-
return l.createElement(de.div, { ref:
|
|
1582
|
-
}),
|
|
1595
|
+
return l.createElement(de.div, { ref: Et([o, r]), ...G, id: a, "cmdk-item": "", role: "option", "aria-disabled": !!b, "aria-selected": !!g, "data-disabled": !!b, "data-selected": !!g, onPointerMove: b || i.getDisablePointerSelection() ? void 0 : v, onClick: b ? void 0 : S }, e.children);
|
|
1596
|
+
}), Ju = l.forwardRef((e, r) => {
|
|
1583
1597
|
let { heading: t, children: n, forceMount: a, ...o } = e, s = Re(), i = l.useRef(null), u = l.useRef(null), d = Re(), f = jt(), p = at((y) => a || f.filter() === !1 ? !0 : y.search ? y.filtered.groups.has(s) : !0);
|
|
1584
1598
|
nt(() => f.group(s), []), $o(s, i, [e.value, e.heading, u]);
|
|
1585
1599
|
let g = l.useMemo(() => ({ id: s, forceMount: a }), [a]);
|
|
1586
|
-
return l.createElement(de.div, { ref:
|
|
1587
|
-
}),
|
|
1600
|
+
return l.createElement(de.div, { ref: Et([i, r]), ...o, "cmdk-group": "", role: "presentation", hidden: p ? void 0 : !0 }, t && l.createElement("div", { ref: u, "cmdk-group-heading": "", "aria-hidden": !0, id: d }, t), ur(e, (y) => l.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": t ? d : void 0 }, l.createElement(ko.Provider, { value: g }, y))));
|
|
1601
|
+
}), Qu = l.forwardRef((e, r) => {
|
|
1588
1602
|
let { alwaysRender: t, ...n } = e, a = l.useRef(null), o = at((s) => !s.search);
|
|
1589
|
-
return !t && !o ? null : l.createElement(de.div, { ref:
|
|
1590
|
-
}),
|
|
1603
|
+
return !t && !o ? null : l.createElement(de.div, { ref: Et([a, r]), ...n, "cmdk-separator": "", role: "separator" });
|
|
1604
|
+
}), ed = l.forwardRef((e, r) => {
|
|
1591
1605
|
let { onValueChange: t, ...n } = e, a = e.value != null, o = vn(), s = at((f) => f.search), i = at((f) => f.value), u = jt(), d = l.useMemo(() => {
|
|
1592
1606
|
var f;
|
|
1593
1607
|
let p = (f = u.listInnerRef.current) == null ? void 0 : f.querySelector(`${gn}[${et}="${encodeURIComponent(i)}"]`);
|
|
@@ -1598,7 +1612,7 @@ var Ku = kr.exports, vt = '[cmdk-group=""]', Ir = '[cmdk-group-items=""]', Hu =
|
|
|
1598
1612
|
}, [e.value]), l.createElement(de.input, { ref: r, ...n, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": u.listId, "aria-labelledby": u.labelId, "aria-activedescendant": d, id: u.inputId, type: "text", value: a ? e.value : s, onChange: (f) => {
|
|
1599
1613
|
a || o.setState("search", f.target.value), t == null || t(f.target.value);
|
|
1600
1614
|
} });
|
|
1601
|
-
}),
|
|
1615
|
+
}), td = l.forwardRef((e, r) => {
|
|
1602
1616
|
let { children: t, label: n = "Suggestions", ...a } = e, o = l.useRef(null), s = l.useRef(null), i = jt();
|
|
1603
1617
|
return l.useEffect(() => {
|
|
1604
1618
|
if (s.current && o.current) {
|
|
@@ -1612,22 +1626,22 @@ var Ku = kr.exports, vt = '[cmdk-group=""]', Ir = '[cmdk-group-items=""]', Hu =
|
|
|
1612
1626
|
cancelAnimationFrame(f), p.unobserve(u);
|
|
1613
1627
|
};
|
|
1614
1628
|
}
|
|
1615
|
-
}, []), l.createElement(de.div, { ref:
|
|
1616
|
-
}),
|
|
1629
|
+
}, []), l.createElement(de.div, { ref: Et([o, r]), ...a, "cmdk-list": "", role: "listbox", "aria-label": n, id: i.listId }, ur(e, (u) => l.createElement("div", { ref: Et([s, i.listInnerRef]), "cmdk-list-sizer": "" }, u)));
|
|
1630
|
+
}), rd = l.forwardRef((e, r) => {
|
|
1617
1631
|
let { open: t, onOpenChange: n, overlayClassName: a, contentClassName: o, container: s, ...i } = e;
|
|
1618
1632
|
return l.createElement(Zr, { open: t, onOpenChange: n }, l.createElement(Jr, { container: s }, l.createElement(or, { "cmdk-overlay": "", className: a }), l.createElement(sr, { "aria-label": e.label, "cmdk-dialog": "", className: o }, l.createElement(Fo, { ref: r, ...i }))));
|
|
1619
|
-
}),
|
|
1633
|
+
}), nd = l.forwardRef((e, r) => at((t) => t.filtered.count === 0) ? l.createElement(de.div, { ref: r, ...e, "cmdk-empty": "", role: "presentation" }) : null), ad = l.forwardRef((e, r) => {
|
|
1620
1634
|
let { progress: t, children: n, label: a = "Loading...", ...o } = e;
|
|
1621
1635
|
return l.createElement(de.div, { ref: r, ...o, "cmdk-loading": "", role: "progressbar", "aria-valuenow": t, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": a }, ur(e, (s) => l.createElement("div", { "aria-hidden": !0 }, s)));
|
|
1622
|
-
}), Te = Object.assign(Fo, { List:
|
|
1623
|
-
function
|
|
1636
|
+
}), Te = Object.assign(Fo, { List: td, Item: Zu, Input: ed, Group: Ju, Separator: Qu, Dialog: rd, Empty: nd, Loading: ad });
|
|
1637
|
+
function od(e, r) {
|
|
1624
1638
|
let t = e.nextElementSibling;
|
|
1625
1639
|
for (; t; ) {
|
|
1626
1640
|
if (t.matches(r)) return t;
|
|
1627
1641
|
t = t.nextElementSibling;
|
|
1628
1642
|
}
|
|
1629
1643
|
}
|
|
1630
|
-
function
|
|
1644
|
+
function sd(e, r) {
|
|
1631
1645
|
let t = e.previousElementSibling;
|
|
1632
1646
|
for (; t; ) {
|
|
1633
1647
|
if (t.matches(r)) return t;
|
|
@@ -1641,11 +1655,11 @@ function Vo(e) {
|
|
|
1641
1655
|
}), r;
|
|
1642
1656
|
}
|
|
1643
1657
|
var nt = typeof window > "u" ? l.useEffect : l.useLayoutEffect;
|
|
1644
|
-
function
|
|
1658
|
+
function dt(e) {
|
|
1645
1659
|
let r = l.useRef();
|
|
1646
1660
|
return r.current === void 0 && (r.current = e()), r;
|
|
1647
1661
|
}
|
|
1648
|
-
function
|
|
1662
|
+
function Et(e) {
|
|
1649
1663
|
return (r) => {
|
|
1650
1664
|
e.forEach((t) => {
|
|
1651
1665
|
typeof t == "function" ? t(r) : t != null && (t.current = r);
|
|
@@ -1654,7 +1668,7 @@ function It(e) {
|
|
|
1654
1668
|
}
|
|
1655
1669
|
function at(e) {
|
|
1656
1670
|
let r = vn(), t = () => e(r.snapshot());
|
|
1657
|
-
return
|
|
1671
|
+
return qu.useSyncExternalStore(r.subscribe, t, t);
|
|
1658
1672
|
}
|
|
1659
1673
|
function $o(e, r, t, n = []) {
|
|
1660
1674
|
let a = l.useRef(), o = jt();
|
|
@@ -1670,22 +1684,22 @@ function $o(e, r, t, n = []) {
|
|
|
1670
1684
|
o.value(e, i, u), (s = r.current) == null || s.setAttribute(et, i), a.current = i;
|
|
1671
1685
|
}), a;
|
|
1672
1686
|
}
|
|
1673
|
-
var
|
|
1674
|
-
let [e, r] = l.useState(), t =
|
|
1687
|
+
var ld = () => {
|
|
1688
|
+
let [e, r] = l.useState(), t = dt(() => /* @__PURE__ */ new Map());
|
|
1675
1689
|
return nt(() => {
|
|
1676
1690
|
t.current.forEach((n) => n()), t.current = /* @__PURE__ */ new Map();
|
|
1677
1691
|
}, [e]), (n, a) => {
|
|
1678
1692
|
t.current.set(n, a), r({});
|
|
1679
1693
|
};
|
|
1680
1694
|
};
|
|
1681
|
-
function
|
|
1695
|
+
function id(e) {
|
|
1682
1696
|
let r = e.type;
|
|
1683
1697
|
return typeof r == "function" ? r(e.props) : "render" in r ? r.render(e.props) : e;
|
|
1684
1698
|
}
|
|
1685
1699
|
function ur({ asChild: e, children: r }, t) {
|
|
1686
|
-
return e && l.isValidElement(r) ? l.cloneElement(
|
|
1700
|
+
return e && l.isValidElement(r) ? l.cloneElement(id(r), { ref: r.ref }, t(r.props.children)) : t(r);
|
|
1687
1701
|
}
|
|
1688
|
-
var
|
|
1702
|
+
var cd = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
|
|
1689
1703
|
const hn = Ne(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
1690
1704
|
Te,
|
|
1691
1705
|
{
|
|
@@ -1698,7 +1712,7 @@ const hn = Ne(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
|
1698
1712
|
}
|
|
1699
1713
|
));
|
|
1700
1714
|
hn.displayName = Te.displayName;
|
|
1701
|
-
const
|
|
1715
|
+
const gg = ({ children: e, ...r }) => /* @__PURE__ */ c.jsx(Oi, { ...r, children: /* @__PURE__ */ c.jsx(ki, { className: "al-overflow-hidden al-p-0 al-shadow-lg", children: /* @__PURE__ */ c.jsx(hn, { 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 }) }) }), Lo = Ne(({ className: e, ...r }, t) => (
|
|
1702
1716
|
// eslint-disable-next-line react/no-unknown-property
|
|
1703
1717
|
/* @__PURE__ */ c.jsxs("div", { className: "al-flex al-items-center al-border-b al-px-3", "cmdk-input-wrapper": "", children: [
|
|
1704
1718
|
/* @__PURE__ */ c.jsx(Ma, { className: "al-mr-2 al-h-4 al-w-4 al-shrink-0 al-opacity-50" }),
|
|
@@ -1739,7 +1753,7 @@ const Go = Ne(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
|
1739
1753
|
}
|
|
1740
1754
|
));
|
|
1741
1755
|
Go.displayName = Te.Group.displayName;
|
|
1742
|
-
const
|
|
1756
|
+
const ud = Ne(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
1743
1757
|
Te.Separator,
|
|
1744
1758
|
{
|
|
1745
1759
|
ref: t,
|
|
@@ -1747,7 +1761,7 @@ const sd = Ne(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
|
1747
1761
|
...r
|
|
1748
1762
|
}
|
|
1749
1763
|
));
|
|
1750
|
-
|
|
1764
|
+
ud.displayName = Te.Separator.displayName;
|
|
1751
1765
|
const Ko = Ne(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
1752
1766
|
Te.Item,
|
|
1753
1767
|
{
|
|
@@ -1761,15 +1775,15 @@ const Ko = Ne(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
|
1761
1775
|
}
|
|
1762
1776
|
));
|
|
1763
1777
|
Ko.displayName = Te.Item.displayName;
|
|
1764
|
-
const
|
|
1778
|
+
const dd = ({ className: e, ...r }) => /* @__PURE__ */ c.jsx(
|
|
1765
1779
|
"span",
|
|
1766
1780
|
{
|
|
1767
1781
|
className: O("al-ml-auto al-text-xs al-tracking-widest al-text-muted-foreground", e),
|
|
1768
1782
|
...r
|
|
1769
1783
|
}
|
|
1770
1784
|
);
|
|
1771
|
-
|
|
1772
|
-
const
|
|
1785
|
+
dd.displayName = "CommandShortcut";
|
|
1786
|
+
const fd = He(
|
|
1773
1787
|
"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",
|
|
1774
1788
|
{
|
|
1775
1789
|
variants: {
|
|
@@ -1792,7 +1806,7 @@ const id = He(
|
|
|
1792
1806
|
}
|
|
1793
1807
|
}
|
|
1794
1808
|
);
|
|
1795
|
-
function
|
|
1809
|
+
function vg({
|
|
1796
1810
|
className: e,
|
|
1797
1811
|
variant: r,
|
|
1798
1812
|
interactive: t = !0,
|
|
@@ -1809,7 +1823,7 @@ function fg({
|
|
|
1809
1823
|
return /* @__PURE__ */ c.jsx(
|
|
1810
1824
|
"div",
|
|
1811
1825
|
{
|
|
1812
|
-
className: O(
|
|
1826
|
+
className: O(fd({ variant: r, interactive: t }), e),
|
|
1813
1827
|
role: t ? "button" : o,
|
|
1814
1828
|
tabIndex: t ? 0 : s,
|
|
1815
1829
|
onKeyDown: d,
|
|
@@ -1820,7 +1834,7 @@ function fg({
|
|
|
1820
1834
|
}
|
|
1821
1835
|
);
|
|
1822
1836
|
}
|
|
1823
|
-
var xn = "Collapsible", [
|
|
1837
|
+
var xn = "Collapsible", [pd, Ho] = pt(xn), [md, yn] = pd(xn), Wo = l.forwardRef(
|
|
1824
1838
|
(e, r) => {
|
|
1825
1839
|
const {
|
|
1826
1840
|
__scopeCollapsible: t,
|
|
@@ -1835,7 +1849,7 @@ var xn = "Collapsible", [cd, Ho] = ft(xn), [ud, yn] = cd(xn), Wo = l.forwardRef(
|
|
|
1835
1849
|
onChange: s
|
|
1836
1850
|
});
|
|
1837
1851
|
return /* @__PURE__ */ c.jsx(
|
|
1838
|
-
|
|
1852
|
+
md,
|
|
1839
1853
|
{
|
|
1840
1854
|
scope: t,
|
|
1841
1855
|
disabled: o,
|
|
@@ -1879,11 +1893,11 @@ qo.displayName = zo;
|
|
|
1879
1893
|
var bn = "CollapsibleContent", Yo = l.forwardRef(
|
|
1880
1894
|
(e, r) => {
|
|
1881
1895
|
const { forceMount: t, ...n } = e, a = yn(bn, e.__scopeCollapsible);
|
|
1882
|
-
return /* @__PURE__ */ c.jsx(Tt, { present: t || a.open, children: ({ present: o }) => /* @__PURE__ */ c.jsx(
|
|
1896
|
+
return /* @__PURE__ */ c.jsx(Tt, { present: t || a.open, children: ({ present: o }) => /* @__PURE__ */ c.jsx(gd, { ...n, ref: r, present: o }) });
|
|
1883
1897
|
}
|
|
1884
1898
|
);
|
|
1885
1899
|
Yo.displayName = bn;
|
|
1886
|
-
var
|
|
1900
|
+
var gd = l.forwardRef((e, r) => {
|
|
1887
1901
|
const { __scopeCollapsible: t, present: n, children: a, ...o } = e, s = yn(bn, t), [i, u] = l.useState(n), d = l.useRef(null), f = we(r, d), p = l.useRef(0), g = p.current, y = l.useRef(0), S = y.current, v = s.open || i, b = l.useRef(v), _ = l.useRef(void 0);
|
|
1888
1902
|
return l.useEffect(() => {
|
|
1889
1903
|
const x = requestAnimationFrame(() => b.current = !1);
|
|
@@ -1919,20 +1933,20 @@ var dd = l.forwardRef((e, r) => {
|
|
|
1919
1933
|
function wn(e) {
|
|
1920
1934
|
return e ? "open" : "closed";
|
|
1921
1935
|
}
|
|
1922
|
-
var
|
|
1923
|
-
|
|
1936
|
+
var vd = Wo, hd = qo, xd = Yo, We = "Accordion", yd = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [Sn, bd, wd] = tn(We), [dr, hg] = pt(We, [
|
|
1937
|
+
wd,
|
|
1924
1938
|
Ho
|
|
1925
1939
|
]), Cn = Ho(), Xo = X.forwardRef(
|
|
1926
1940
|
(e, r) => {
|
|
1927
1941
|
const { type: t, ...n } = e, a = n, o = n;
|
|
1928
|
-
return /* @__PURE__ */ c.jsx(Sn.Provider, { scope: e.__scopeAccordion, children: t === "multiple" ? /* @__PURE__ */ c.jsx(
|
|
1942
|
+
return /* @__PURE__ */ c.jsx(Sn.Provider, { scope: e.__scopeAccordion, children: t === "multiple" ? /* @__PURE__ */ c.jsx(_d, { ...o, ref: r }) : /* @__PURE__ */ c.jsx(Nd, { ...a, ref: r }) });
|
|
1929
1943
|
}
|
|
1930
1944
|
);
|
|
1931
1945
|
Xo.displayName = We;
|
|
1932
|
-
var [Zo,
|
|
1946
|
+
var [Zo, Sd] = dr(We), [Jo, Cd] = dr(
|
|
1933
1947
|
We,
|
|
1934
1948
|
{ collapsible: !1 }
|
|
1935
|
-
),
|
|
1949
|
+
), Nd = X.forwardRef(
|
|
1936
1950
|
(e, r) => {
|
|
1937
1951
|
const {
|
|
1938
1952
|
value: t,
|
|
@@ -1957,7 +1971,7 @@ var [Zo, xd] = dr(We), [Jo, yd] = dr(
|
|
|
1957
1971
|
}
|
|
1958
1972
|
);
|
|
1959
1973
|
}
|
|
1960
|
-
),
|
|
1974
|
+
), _d = X.forwardRef((e, r) => {
|
|
1961
1975
|
const {
|
|
1962
1976
|
value: t,
|
|
1963
1977
|
defaultValue: n,
|
|
@@ -1985,11 +1999,11 @@ var [Zo, xd] = dr(We), [Jo, yd] = dr(
|
|
|
1985
1999
|
children: /* @__PURE__ */ c.jsx(Jo, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ c.jsx(Qo, { ...o, ref: r }) })
|
|
1986
2000
|
}
|
|
1987
2001
|
);
|
|
1988
|
-
}), [
|
|
2002
|
+
}), [Id, fr] = dr(We), Qo = X.forwardRef(
|
|
1989
2003
|
(e, r) => {
|
|
1990
|
-
const { __scopeAccordion: t, disabled: n, dir: a, orientation: o = "vertical", ...s } = e, i = X.useRef(null), u = we(i, r), d =
|
|
2004
|
+
const { __scopeAccordion: t, disabled: n, dir: a, orientation: o = "vertical", ...s } = e, i = X.useRef(null), u = we(i, r), d = bd(t), p = rn(a) === "ltr", g = re(e.onKeyDown, (y) => {
|
|
1991
2005
|
var J;
|
|
1992
|
-
if (!
|
|
2006
|
+
if (!yd.includes(y.key)) return;
|
|
1993
2007
|
const S = y.target, v = d().filter((K) => {
|
|
1994
2008
|
var Q;
|
|
1995
2009
|
return !((Q = K.ref.current) != null && Q.disabled);
|
|
@@ -2026,7 +2040,7 @@ var [Zo, xd] = dr(We), [Jo, yd] = dr(
|
|
|
2026
2040
|
(J = v[D].ref.current) == null || J.focus();
|
|
2027
2041
|
});
|
|
2028
2042
|
return /* @__PURE__ */ c.jsx(
|
|
2029
|
-
|
|
2043
|
+
Id,
|
|
2030
2044
|
{
|
|
2031
2045
|
scope: t,
|
|
2032
2046
|
disabled: n,
|
|
@@ -2044,18 +2058,18 @@ var [Zo, xd] = dr(We), [Jo, yd] = dr(
|
|
|
2044
2058
|
}
|
|
2045
2059
|
);
|
|
2046
2060
|
}
|
|
2047
|
-
), qt = "AccordionItem", [
|
|
2061
|
+
), qt = "AccordionItem", [Ed, Nn] = dr(qt), es = X.forwardRef(
|
|
2048
2062
|
(e, r) => {
|
|
2049
|
-
const { __scopeAccordion: t, value: n, ...a } = e, o = fr(qt, t), s =
|
|
2063
|
+
const { __scopeAccordion: t, value: n, ...a } = e, o = fr(qt, t), s = Sd(qt, t), i = Cn(t), u = Re(), d = n && s.value.includes(n) || !1, f = o.disabled || e.disabled;
|
|
2050
2064
|
return /* @__PURE__ */ c.jsx(
|
|
2051
|
-
|
|
2065
|
+
Ed,
|
|
2052
2066
|
{
|
|
2053
2067
|
scope: t,
|
|
2054
2068
|
open: d,
|
|
2055
2069
|
disabled: f,
|
|
2056
2070
|
triggerId: u,
|
|
2057
2071
|
children: /* @__PURE__ */ c.jsx(
|
|
2058
|
-
|
|
2072
|
+
vd,
|
|
2059
2073
|
{
|
|
2060
2074
|
"data-orientation": o.orientation,
|
|
2061
2075
|
"data-state": ss(d),
|
|
@@ -2092,9 +2106,9 @@ var ts = "AccordionHeader", rs = X.forwardRef(
|
|
|
2092
2106
|
rs.displayName = ts;
|
|
2093
2107
|
var Vr = "AccordionTrigger", ns = X.forwardRef(
|
|
2094
2108
|
(e, r) => {
|
|
2095
|
-
const { __scopeAccordion: t, ...n } = e, a = fr(We, t), o = Nn(Vr, t), s =
|
|
2109
|
+
const { __scopeAccordion: t, ...n } = e, a = fr(We, t), o = Nn(Vr, t), s = Cd(Vr, t), i = Cn(t);
|
|
2096
2110
|
return /* @__PURE__ */ c.jsx(Sn.ItemSlot, { scope: t, children: /* @__PURE__ */ c.jsx(
|
|
2097
|
-
|
|
2111
|
+
hd,
|
|
2098
2112
|
{
|
|
2099
2113
|
"aria-disabled": o.open && !s.collapsible || void 0,
|
|
2100
2114
|
"data-orientation": a.orientation,
|
|
@@ -2111,7 +2125,7 @@ var as = "AccordionContent", os = X.forwardRef(
|
|
|
2111
2125
|
(e, r) => {
|
|
2112
2126
|
const { __scopeAccordion: t, ...n } = e, a = fr(We, t), o = Nn(as, t), s = Cn(t);
|
|
2113
2127
|
return /* @__PURE__ */ c.jsx(
|
|
2114
|
-
|
|
2128
|
+
xd,
|
|
2115
2129
|
{
|
|
2116
2130
|
role: "region",
|
|
2117
2131
|
"aria-labelledby": o.triggerId,
|
|
@@ -2132,11 +2146,11 @@ os.displayName = as;
|
|
|
2132
2146
|
function ss(e) {
|
|
2133
2147
|
return e ? "open" : "closed";
|
|
2134
2148
|
}
|
|
2135
|
-
var
|
|
2136
|
-
const
|
|
2137
|
-
|
|
2138
|
-
const
|
|
2139
|
-
|
|
2149
|
+
var Ad = Xo, Rd = es, Td = rs, Md = ns, Dd = os;
|
|
2150
|
+
const xg = Ad, Pd = l.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(Rd, { ref: t, className: O("al-border-b", e), ...r }));
|
|
2151
|
+
Pd.displayName = "AccordionItem";
|
|
2152
|
+
const jd = l.forwardRef(({ className: e, children: r, ...t }, n) => /* @__PURE__ */ c.jsx(Td, { className: "al-flex", children: /* @__PURE__ */ c.jsxs(
|
|
2153
|
+
Md,
|
|
2140
2154
|
{
|
|
2141
2155
|
ref: n,
|
|
2142
2156
|
className: O(
|
|
@@ -2150,9 +2164,9 @@ const Td = l.forwardRef(({ className: e, children: r, ...t }, n) => /* @__PURE__
|
|
|
2150
2164
|
]
|
|
2151
2165
|
}
|
|
2152
2166
|
) }));
|
|
2153
|
-
|
|
2154
|
-
const
|
|
2155
|
-
|
|
2167
|
+
jd.displayName = "AccordionTrigger";
|
|
2168
|
+
const Od = l.forwardRef(({ className: e, children: r, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
2169
|
+
Dd,
|
|
2156
2170
|
{
|
|
2157
2171
|
ref: n,
|
|
2158
2172
|
className: O(
|
|
@@ -2163,28 +2177,28 @@ const Md = l.forwardRef(({ className: e, children: r, ...t }, n) => /* @__PURE__
|
|
|
2163
2177
|
children: /* @__PURE__ */ c.jsx("div", { className: "al-pb-4 al-pt-0", children: r })
|
|
2164
2178
|
}
|
|
2165
2179
|
));
|
|
2166
|
-
|
|
2167
|
-
const
|
|
2180
|
+
Od.displayName = "AccordionContent";
|
|
2181
|
+
const kd = 1, Fd = 1e6;
|
|
2168
2182
|
let Er = 0;
|
|
2169
|
-
function
|
|
2183
|
+
function Vd() {
|
|
2170
2184
|
return Er = (Er + 1) % Number.MAX_SAFE_INTEGER, Er.toString();
|
|
2171
2185
|
}
|
|
2172
2186
|
const Ar = /* @__PURE__ */ new Map(), Zn = (e) => {
|
|
2173
2187
|
if (Ar.has(e))
|
|
2174
2188
|
return;
|
|
2175
2189
|
const r = setTimeout(() => {
|
|
2176
|
-
Ar.delete(e),
|
|
2190
|
+
Ar.delete(e), St({
|
|
2177
2191
|
type: "REMOVE_TOAST",
|
|
2178
2192
|
toastId: e
|
|
2179
2193
|
});
|
|
2180
|
-
},
|
|
2194
|
+
}, Fd);
|
|
2181
2195
|
Ar.set(e, r);
|
|
2182
|
-
},
|
|
2196
|
+
}, $d = (e, r) => {
|
|
2183
2197
|
switch (r.type) {
|
|
2184
2198
|
case "ADD_TOAST":
|
|
2185
2199
|
return {
|
|
2186
2200
|
...e,
|
|
2187
|
-
toasts: [r.toast, ...e.toasts].slice(0,
|
|
2201
|
+
toasts: [r.toast, ...e.toasts].slice(0, kd)
|
|
2188
2202
|
};
|
|
2189
2203
|
case "UPDATE_TOAST":
|
|
2190
2204
|
return {
|
|
@@ -2216,17 +2230,17 @@ const Ar = /* @__PURE__ */ new Map(), Zn = (e) => {
|
|
|
2216
2230
|
}
|
|
2217
2231
|
}, Bt = [];
|
|
2218
2232
|
let Gt = { toasts: [] };
|
|
2219
|
-
function
|
|
2220
|
-
Gt =
|
|
2233
|
+
function St(e) {
|
|
2234
|
+
Gt = $d(Gt, e), Bt.forEach((r) => {
|
|
2221
2235
|
r(Gt);
|
|
2222
2236
|
});
|
|
2223
2237
|
}
|
|
2224
|
-
function
|
|
2225
|
-
const r =
|
|
2238
|
+
function Ld({ ...e }) {
|
|
2239
|
+
const r = Vd(), t = (a) => St({
|
|
2226
2240
|
type: "UPDATE_TOAST",
|
|
2227
2241
|
toast: { ...a, id: r }
|
|
2228
|
-
}), n = () =>
|
|
2229
|
-
return
|
|
2242
|
+
}), n = () => St({ type: "DISMISS_TOAST", toastId: r });
|
|
2243
|
+
return St({
|
|
2230
2244
|
type: "ADD_TOAST",
|
|
2231
2245
|
toast: {
|
|
2232
2246
|
...e,
|
|
@@ -2242,18 +2256,18 @@ function kd({ ...e }) {
|
|
|
2242
2256
|
update: t
|
|
2243
2257
|
};
|
|
2244
2258
|
}
|
|
2245
|
-
function
|
|
2259
|
+
function yg() {
|
|
2246
2260
|
const [e, r] = l.useState(Gt);
|
|
2247
2261
|
return l.useEffect(() => (Bt.push(r), () => {
|
|
2248
2262
|
const t = Bt.indexOf(r);
|
|
2249
2263
|
t > -1 && Bt.splice(t, 1);
|
|
2250
2264
|
}), [e]), {
|
|
2251
2265
|
...e,
|
|
2252
|
-
toast:
|
|
2253
|
-
dismiss: (t) =>
|
|
2266
|
+
toast: Ld,
|
|
2267
|
+
dismiss: (t) => St({ type: "DISMISS_TOAST", toastId: t })
|
|
2254
2268
|
};
|
|
2255
2269
|
}
|
|
2256
|
-
const
|
|
2270
|
+
const Ud = He(
|
|
2257
2271
|
O(
|
|
2258
2272
|
"al-relative al-w-full al-rounded-lg al-border al-p-4",
|
|
2259
2273
|
"[&>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",
|
|
@@ -2273,7 +2287,7 @@ const Fd = He(
|
|
|
2273
2287
|
variant: "default"
|
|
2274
2288
|
}
|
|
2275
2289
|
}
|
|
2276
|
-
),
|
|
2290
|
+
), Bd = (e) => {
|
|
2277
2291
|
switch (e) {
|
|
2278
2292
|
case "destructive":
|
|
2279
2293
|
return "error-alert";
|
|
@@ -2286,18 +2300,18 @@ const Fd = He(
|
|
|
2286
2300
|
default:
|
|
2287
2301
|
return "status-alert";
|
|
2288
2302
|
}
|
|
2289
|
-
},
|
|
2303
|
+
}, Gd = l.forwardRef(({ className: e, variant: r, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
2290
2304
|
"div",
|
|
2291
2305
|
{
|
|
2292
2306
|
ref: n,
|
|
2293
2307
|
role: "alert",
|
|
2294
|
-
"aria-label":
|
|
2295
|
-
className: O(
|
|
2308
|
+
"aria-label": Bd(r),
|
|
2309
|
+
className: O(Ud({ variant: r }), e),
|
|
2296
2310
|
...t
|
|
2297
2311
|
}
|
|
2298
2312
|
));
|
|
2299
|
-
|
|
2300
|
-
const
|
|
2313
|
+
Gd.displayName = "Alert";
|
|
2314
|
+
const Kd = l.forwardRef(
|
|
2301
2315
|
({ className: e, children: r, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
2302
2316
|
"h5",
|
|
2303
2317
|
{
|
|
@@ -2308,8 +2322,8 @@ const Ld = l.forwardRef(
|
|
|
2308
2322
|
}
|
|
2309
2323
|
)
|
|
2310
2324
|
);
|
|
2311
|
-
|
|
2312
|
-
const
|
|
2325
|
+
Kd.displayName = "AlertTitle";
|
|
2326
|
+
const Hd = l.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
2313
2327
|
"div",
|
|
2314
2328
|
{
|
|
2315
2329
|
ref: t,
|
|
@@ -2319,22 +2333,22 @@ const Ud = l.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
|
2319
2333
|
...r
|
|
2320
2334
|
}
|
|
2321
2335
|
));
|
|
2322
|
-
|
|
2323
|
-
var
|
|
2324
|
-
const { children: t, ...n } = e, a = l.Children.toArray(t), o = a.find(
|
|
2336
|
+
Hd.displayName = "AlertDescription";
|
|
2337
|
+
var Wd = l.forwardRef((e, r) => {
|
|
2338
|
+
const { children: t, ...n } = e, a = l.Children.toArray(t), o = a.find(zd);
|
|
2325
2339
|
if (o) {
|
|
2326
2340
|
const s = o.props.children, i = a.map((u) => u === o ? l.Children.count(s) > 1 ? l.Children.only(null) : l.isValidElement(s) ? s.props.children : null : u);
|
|
2327
2341
|
return /* @__PURE__ */ c.jsx($r, { ...n, ref: r, children: l.isValidElement(s) ? l.cloneElement(s, void 0, i) : null });
|
|
2328
2342
|
}
|
|
2329
2343
|
return /* @__PURE__ */ c.jsx($r, { ...n, ref: r, children: t });
|
|
2330
2344
|
});
|
|
2331
|
-
|
|
2345
|
+
Wd.displayName = "Slot";
|
|
2332
2346
|
var $r = l.forwardRef((e, r) => {
|
|
2333
2347
|
const { children: t, ...n } = e;
|
|
2334
2348
|
if (l.isValidElement(t)) {
|
|
2335
|
-
const a =
|
|
2349
|
+
const a = Yd(t);
|
|
2336
2350
|
return l.cloneElement(t, {
|
|
2337
|
-
...
|
|
2351
|
+
...qd(n, t.props),
|
|
2338
2352
|
// @ts-ignore
|
|
2339
2353
|
ref: r ? Rt(r, a) : a
|
|
2340
2354
|
});
|
|
@@ -2343,10 +2357,10 @@ var $r = l.forwardRef((e, r) => {
|
|
|
2343
2357
|
});
|
|
2344
2358
|
$r.displayName = "SlotClone";
|
|
2345
2359
|
var ls = ({ children: e }) => /* @__PURE__ */ c.jsx(c.Fragment, { children: e });
|
|
2346
|
-
function
|
|
2360
|
+
function zd(e) {
|
|
2347
2361
|
return l.isValidElement(e) && e.type === ls;
|
|
2348
2362
|
}
|
|
2349
|
-
function
|
|
2363
|
+
function qd(e, r) {
|
|
2350
2364
|
const t = { ...r };
|
|
2351
2365
|
for (const n in r) {
|
|
2352
2366
|
const a = e[n], o = r[n];
|
|
@@ -2356,47 +2370,47 @@ function Kd(e, r) {
|
|
|
2356
2370
|
}
|
|
2357
2371
|
return { ...e, ...t };
|
|
2358
2372
|
}
|
|
2359
|
-
function
|
|
2373
|
+
function Yd(e) {
|
|
2360
2374
|
var n, a;
|
|
2361
2375
|
let r = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, t = r && "isReactWarning" in r && r.isReactWarning;
|
|
2362
2376
|
return t ? e.ref : (r = (a = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : a.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
|
|
2363
2377
|
}
|
|
2364
|
-
var is = "AlertDialog", [
|
|
2378
|
+
var is = "AlertDialog", [Xd, bg] = pt(is, [
|
|
2365
2379
|
Ea
|
|
2366
2380
|
]), ze = Ea(), cs = (e) => {
|
|
2367
2381
|
const { __scopeAlertDialog: r, ...t } = e, n = ze(r);
|
|
2368
2382
|
return /* @__PURE__ */ c.jsx(Zr, { ...n, ...t, modal: !0 });
|
|
2369
2383
|
};
|
|
2370
2384
|
cs.displayName = is;
|
|
2371
|
-
var
|
|
2385
|
+
var Zd = "AlertDialogTrigger", us = l.forwardRef(
|
|
2372
2386
|
(e, r) => {
|
|
2373
2387
|
const { __scopeAlertDialog: t, ...n } = e, a = ze(t);
|
|
2374
2388
|
return /* @__PURE__ */ c.jsx(va, { ...a, ...n, ref: r });
|
|
2375
2389
|
}
|
|
2376
2390
|
);
|
|
2377
|
-
us.displayName =
|
|
2378
|
-
var
|
|
2391
|
+
us.displayName = Zd;
|
|
2392
|
+
var Jd = "AlertDialogPortal", ds = (e) => {
|
|
2379
2393
|
const { __scopeAlertDialog: r, ...t } = e, n = ze(r);
|
|
2380
2394
|
return /* @__PURE__ */ c.jsx(Jr, { ...n, ...t });
|
|
2381
2395
|
};
|
|
2382
|
-
ds.displayName =
|
|
2383
|
-
var
|
|
2396
|
+
ds.displayName = Jd;
|
|
2397
|
+
var Qd = "AlertDialogOverlay", fs = l.forwardRef(
|
|
2384
2398
|
(e, r) => {
|
|
2385
2399
|
const { __scopeAlertDialog: t, ...n } = e, a = ze(t);
|
|
2386
2400
|
return /* @__PURE__ */ c.jsx(or, { ...a, ...n, ref: r });
|
|
2387
2401
|
}
|
|
2388
2402
|
);
|
|
2389
|
-
fs.displayName =
|
|
2390
|
-
var
|
|
2403
|
+
fs.displayName = Qd;
|
|
2404
|
+
var ft = "AlertDialogContent", [ef, tf] = Xd(ft), ps = l.forwardRef(
|
|
2391
2405
|
(e, r) => {
|
|
2392
2406
|
const { __scopeAlertDialog: t, children: n, ...a } = e, o = ze(t), s = l.useRef(null), i = we(r, s), u = l.useRef(null);
|
|
2393
2407
|
return /* @__PURE__ */ c.jsx(
|
|
2394
2408
|
Fi,
|
|
2395
2409
|
{
|
|
2396
|
-
contentName:
|
|
2410
|
+
contentName: ft,
|
|
2397
2411
|
titleName: ms,
|
|
2398
2412
|
docsSlug: "alert-dialog",
|
|
2399
|
-
children: /* @__PURE__ */ c.jsx(
|
|
2413
|
+
children: /* @__PURE__ */ c.jsx(ef, { scope: t, cancelRef: u, children: /* @__PURE__ */ c.jsxs(
|
|
2400
2414
|
sr,
|
|
2401
2415
|
{
|
|
2402
2416
|
role: "alertdialog",
|
|
@@ -2411,7 +2425,7 @@ var dt = "AlertDialogContent", [Xd, Zd] = Wd(dt), ps = l.forwardRef(
|
|
|
2411
2425
|
onInteractOutside: (d) => d.preventDefault(),
|
|
2412
2426
|
children: [
|
|
2413
2427
|
/* @__PURE__ */ c.jsx(ls, { children: n }),
|
|
2414
|
-
/* @__PURE__ */ c.jsx(
|
|
2428
|
+
/* @__PURE__ */ c.jsx(nf, { contentRef: s })
|
|
2415
2429
|
]
|
|
2416
2430
|
}
|
|
2417
2431
|
) })
|
|
@@ -2419,7 +2433,7 @@ var dt = "AlertDialogContent", [Xd, Zd] = Wd(dt), ps = l.forwardRef(
|
|
|
2419
2433
|
);
|
|
2420
2434
|
}
|
|
2421
2435
|
);
|
|
2422
|
-
ps.displayName =
|
|
2436
|
+
ps.displayName = ft;
|
|
2423
2437
|
var ms = "AlertDialogTitle", gs = l.forwardRef(
|
|
2424
2438
|
(e, r) => {
|
|
2425
2439
|
const { __scopeAlertDialog: t, ...n } = e, a = ze(t);
|
|
@@ -2432,26 +2446,26 @@ var vs = "AlertDialogDescription", hs = l.forwardRef((e, r) => {
|
|
|
2432
2446
|
return /* @__PURE__ */ c.jsx(en, { ...a, ...n, ref: r });
|
|
2433
2447
|
});
|
|
2434
2448
|
hs.displayName = vs;
|
|
2435
|
-
var
|
|
2449
|
+
var rf = "AlertDialogAction", xs = l.forwardRef(
|
|
2436
2450
|
(e, r) => {
|
|
2437
2451
|
const { __scopeAlertDialog: t, ...n } = e, a = ze(t);
|
|
2438
2452
|
return /* @__PURE__ */ c.jsx(ar, { ...a, ...n, ref: r });
|
|
2439
2453
|
}
|
|
2440
2454
|
);
|
|
2441
|
-
xs.displayName =
|
|
2455
|
+
xs.displayName = rf;
|
|
2442
2456
|
var ys = "AlertDialogCancel", bs = l.forwardRef(
|
|
2443
2457
|
(e, r) => {
|
|
2444
|
-
const { __scopeAlertDialog: t, ...n } = e, { cancelRef: a } =
|
|
2458
|
+
const { __scopeAlertDialog: t, ...n } = e, { cancelRef: a } = tf(ys, t), o = ze(t), s = we(r, a);
|
|
2445
2459
|
return /* @__PURE__ */ c.jsx(ar, { ...o, ...n, ref: s });
|
|
2446
2460
|
}
|
|
2447
2461
|
);
|
|
2448
2462
|
bs.displayName = ys;
|
|
2449
|
-
var
|
|
2450
|
-
const r = `\`${
|
|
2463
|
+
var nf = ({ contentRef: e }) => {
|
|
2464
|
+
const r = `\`${ft}\` requires a description for the component to be accessible for screen reader users.
|
|
2451
2465
|
|
|
2452
|
-
You can add a description to the \`${
|
|
2466
|
+
You can add a description to the \`${ft}\` by passing a \`${vs}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
2453
2467
|
|
|
2454
|
-
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 \`${
|
|
2468
|
+
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 \`${ft}\`. 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.
|
|
2455
2469
|
|
|
2456
2470
|
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;
|
|
2457
2471
|
return l.useEffect(() => {
|
|
@@ -2460,8 +2474,8 @@ For more information, see https://radix-ui.com/primitives/docs/components/alert-
|
|
|
2460
2474
|
(n = e.current) == null ? void 0 : n.getAttribute("aria-describedby")
|
|
2461
2475
|
) || console.warn(r);
|
|
2462
2476
|
}, [r, e]), null;
|
|
2463
|
-
},
|
|
2464
|
-
const
|
|
2477
|
+
}, af = cs, of = us, sf = ds, ws = fs, Ss = ps, Cs = xs, Ns = bs, _s = gs, Is = hs;
|
|
2478
|
+
const wg = af, Sg = of, lf = sf, Es = l.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
2465
2479
|
ws,
|
|
2466
2480
|
{
|
|
2467
2481
|
className: O(
|
|
@@ -2473,7 +2487,7 @@ const hg = ef, xg = tf, nf = rf, Es = l.forwardRef(({ className: e, ...r }, t) =
|
|
|
2473
2487
|
}
|
|
2474
2488
|
));
|
|
2475
2489
|
Es.displayName = ws.displayName;
|
|
2476
|
-
const
|
|
2490
|
+
const cf = l.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsxs(lf, { children: [
|
|
2477
2491
|
/* @__PURE__ */ c.jsx(Es, {}),
|
|
2478
2492
|
/* @__PURE__ */ c.jsx(
|
|
2479
2493
|
Ss,
|
|
@@ -2487,16 +2501,16 @@ const af = l.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsxs(nf
|
|
|
2487
2501
|
}
|
|
2488
2502
|
)
|
|
2489
2503
|
] }));
|
|
2490
|
-
|
|
2491
|
-
const
|
|
2504
|
+
cf.displayName = Ss.displayName;
|
|
2505
|
+
const uf = ({ className: e, ...r }) => /* @__PURE__ */ c.jsx(
|
|
2492
2506
|
"div",
|
|
2493
2507
|
{
|
|
2494
2508
|
className: O("al-flex al-flex-col al-space-y-2 al-text-center sm:al-text-left", e),
|
|
2495
2509
|
...r
|
|
2496
2510
|
}
|
|
2497
2511
|
);
|
|
2498
|
-
|
|
2499
|
-
const
|
|
2512
|
+
uf.displayName = "AlertDialogHeader";
|
|
2513
|
+
const df = ({ className: e, ...r }) => /* @__PURE__ */ c.jsx(
|
|
2500
2514
|
"div",
|
|
2501
2515
|
{
|
|
2502
2516
|
className: O(
|
|
@@ -2506,8 +2520,8 @@ const sf = ({ className: e, ...r }) => /* @__PURE__ */ c.jsx(
|
|
|
2506
2520
|
...r
|
|
2507
2521
|
}
|
|
2508
2522
|
);
|
|
2509
|
-
|
|
2510
|
-
const
|
|
2523
|
+
df.displayName = "AlertDialogFooter";
|
|
2524
|
+
const ff = l.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
2511
2525
|
_s,
|
|
2512
2526
|
{
|
|
2513
2527
|
ref: t,
|
|
@@ -2515,8 +2529,8 @@ const lf = l.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
|
2515
2529
|
...r
|
|
2516
2530
|
}
|
|
2517
2531
|
));
|
|
2518
|
-
|
|
2519
|
-
const
|
|
2532
|
+
ff.displayName = _s.displayName;
|
|
2533
|
+
const pf = l.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
2520
2534
|
Is,
|
|
2521
2535
|
{
|
|
2522
2536
|
ref: t,
|
|
@@ -2524,10 +2538,10 @@ const cf = l.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
|
2524
2538
|
...r
|
|
2525
2539
|
}
|
|
2526
2540
|
));
|
|
2527
|
-
|
|
2528
|
-
const
|
|
2529
|
-
|
|
2530
|
-
const
|
|
2541
|
+
pf.displayName = Is.displayName;
|
|
2542
|
+
const mf = l.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(Cs, { ref: t, className: O(Aa(), e), ...r }));
|
|
2543
|
+
mf.displayName = Cs.displayName;
|
|
2544
|
+
const gf = l.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
2531
2545
|
Ns,
|
|
2532
2546
|
{
|
|
2533
2547
|
ref: t,
|
|
@@ -2535,12 +2549,12 @@ const df = l.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
|
2535
2549
|
...r
|
|
2536
2550
|
}
|
|
2537
2551
|
));
|
|
2538
|
-
|
|
2552
|
+
gf.displayName = Ns.displayName;
|
|
2539
2553
|
function Jn(e, [r, t]) {
|
|
2540
2554
|
return Math.min(t, Math.max(r, e));
|
|
2541
2555
|
}
|
|
2542
2556
|
var As = l.forwardRef((e, r) => {
|
|
2543
|
-
const { children: t, ...n } = e, a = l.Children.toArray(t), o = a.find(
|
|
2557
|
+
const { children: t, ...n } = e, a = l.Children.toArray(t), o = a.find(hf);
|
|
2544
2558
|
if (o) {
|
|
2545
2559
|
const s = o.props.children, i = a.map((u) => u === o ? l.Children.count(s) > 1 ? l.Children.only(null) : l.isValidElement(s) ? s.props.children : null : u);
|
|
2546
2560
|
return /* @__PURE__ */ c.jsx(Lr, { ...n, ref: r, children: l.isValidElement(s) ? l.cloneElement(s, void 0, i) : null });
|
|
@@ -2551,9 +2565,9 @@ As.displayName = "Slot";
|
|
|
2551
2565
|
var Lr = l.forwardRef((e, r) => {
|
|
2552
2566
|
const { children: t, ...n } = e;
|
|
2553
2567
|
if (l.isValidElement(t)) {
|
|
2554
|
-
const a =
|
|
2568
|
+
const a = yf(t);
|
|
2555
2569
|
return l.cloneElement(t, {
|
|
2556
|
-
...
|
|
2570
|
+
...xf(n, t.props),
|
|
2557
2571
|
// @ts-ignore
|
|
2558
2572
|
ref: r ? Rt(r, a) : a
|
|
2559
2573
|
});
|
|
@@ -2561,11 +2575,11 @@ var Lr = l.forwardRef((e, r) => {
|
|
|
2561
2575
|
return l.Children.count(t) > 1 ? l.Children.only(null) : null;
|
|
2562
2576
|
});
|
|
2563
2577
|
Lr.displayName = "SlotClone";
|
|
2564
|
-
var
|
|
2565
|
-
function
|
|
2566
|
-
return l.isValidElement(e) && e.type ===
|
|
2578
|
+
var vf = ({ children: e }) => /* @__PURE__ */ c.jsx(c.Fragment, { children: e });
|
|
2579
|
+
function hf(e) {
|
|
2580
|
+
return l.isValidElement(e) && e.type === vf;
|
|
2567
2581
|
}
|
|
2568
|
-
function
|
|
2582
|
+
function xf(e, r) {
|
|
2569
2583
|
const t = { ...r };
|
|
2570
2584
|
for (const n in r) {
|
|
2571
2585
|
const a = e[n], o = r[n];
|
|
@@ -2575,15 +2589,15 @@ function mf(e, r) {
|
|
|
2575
2589
|
}
|
|
2576
2590
|
return { ...e, ...t };
|
|
2577
2591
|
}
|
|
2578
|
-
function
|
|
2592
|
+
function yf(e) {
|
|
2579
2593
|
var n, a;
|
|
2580
2594
|
let r = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, t = r && "isReactWarning" in r && r.isReactWarning;
|
|
2581
2595
|
return t ? e.ref : (r = (a = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : a.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
|
|
2582
2596
|
}
|
|
2583
|
-
var
|
|
2584
|
-
|
|
2597
|
+
var bf = [" ", "Enter", "ArrowUp", "ArrowDown"], wf = [" ", "Enter"], Ot = "Select", [pr, mr, Sf] = tn(Ot), [mt, Cg] = pt(Ot, [
|
|
2598
|
+
Sf,
|
|
2585
2599
|
lr
|
|
2586
|
-
]), gr = lr(), [
|
|
2600
|
+
]), gr = lr(), [Cf, Ze] = mt(Ot), [Nf, _f] = mt(Ot), Rs = (e) => {
|
|
2587
2601
|
const {
|
|
2588
2602
|
__scopeSelect: r,
|
|
2589
2603
|
children: t,
|
|
@@ -2609,7 +2623,7 @@ var vf = [" ", "Enter", "ArrowUp", "ArrowDown"], hf = [" ", "Enter"], Ot = "Sele
|
|
|
2609
2623
|
onChange: u
|
|
2610
2624
|
}), se = l.useRef(null), F = b ? S || !!b.closest("form") : !0, [Z, W] = l.useState(/* @__PURE__ */ new Set()), te = Array.from(Z).map((z) => z.props.value).join(";");
|
|
2611
2625
|
return /* @__PURE__ */ c.jsx(nn, { ...v, children: /* @__PURE__ */ c.jsxs(
|
|
2612
|
-
|
|
2626
|
+
Cf,
|
|
2613
2627
|
{
|
|
2614
2628
|
required: y,
|
|
2615
2629
|
scope: r,
|
|
@@ -2629,7 +2643,7 @@ var vf = [" ", "Enter", "ArrowUp", "ArrowDown"], hf = [" ", "Enter"], Ot = "Sele
|
|
|
2629
2643
|
disabled: g,
|
|
2630
2644
|
children: [
|
|
2631
2645
|
/* @__PURE__ */ c.jsx(pr.Provider, { scope: r, children: /* @__PURE__ */ c.jsx(
|
|
2632
|
-
|
|
2646
|
+
Nf,
|
|
2633
2647
|
{
|
|
2634
2648
|
scope: e.__scopeSelect,
|
|
2635
2649
|
onNativeOptionAdd: l.useCallback((z) => {
|
|
@@ -2705,7 +2719,7 @@ var Ts = "SelectTrigger", Ms = l.forwardRef(
|
|
|
2705
2719
|
}),
|
|
2706
2720
|
onKeyDown: re(a.onKeyDown, (v) => {
|
|
2707
2721
|
const b = p.current !== "";
|
|
2708
|
-
!(v.ctrlKey || v.altKey || v.metaKey) && v.key.length === 1 && g(v.key), !(b && v.key === " ") &&
|
|
2722
|
+
!(v.ctrlKey || v.altKey || v.metaKey) && v.key.length === 1 && g(v.key), !(b && v.key === " ") && bf.includes(v.key) && (S(), v.preventDefault());
|
|
2709
2723
|
})
|
|
2710
2724
|
}
|
|
2711
2725
|
) });
|
|
@@ -2729,15 +2743,15 @@ var Ds = "SelectValue", Ps = l.forwardRef(
|
|
|
2729
2743
|
}
|
|
2730
2744
|
);
|
|
2731
2745
|
Ps.displayName = Ds;
|
|
2732
|
-
var
|
|
2746
|
+
var If = "SelectIcon", js = l.forwardRef(
|
|
2733
2747
|
(e, r) => {
|
|
2734
2748
|
const { __scopeSelect: t, children: n, ...a } = e;
|
|
2735
2749
|
return /* @__PURE__ */ c.jsx(de.span, { "aria-hidden": !0, ...a, ref: r, children: n || "▼" });
|
|
2736
2750
|
}
|
|
2737
2751
|
);
|
|
2738
|
-
js.displayName =
|
|
2739
|
-
var
|
|
2740
|
-
Os.displayName =
|
|
2752
|
+
js.displayName = If;
|
|
2753
|
+
var Ef = "SelectPortal", Os = (e) => /* @__PURE__ */ c.jsx(Ia, { asChild: !0, ...e });
|
|
2754
|
+
Os.displayName = Ef;
|
|
2741
2755
|
var ot = "SelectContent", ks = l.forwardRef(
|
|
2742
2756
|
(e, r) => {
|
|
2743
2757
|
const t = Ze(ot, e.__scopeSelect), [n, a] = l.useState();
|
|
@@ -2754,7 +2768,7 @@ var ot = "SelectContent", ks = l.forwardRef(
|
|
|
2754
2768
|
}
|
|
2755
2769
|
);
|
|
2756
2770
|
ks.displayName = ot;
|
|
2757
|
-
var Oe = 10, [Fs, Je] =
|
|
2771
|
+
var Oe = 10, [Fs, Je] = mt(ot), Af = "SelectContentImpl", Vs = l.forwardRef(
|
|
2758
2772
|
(e, r) => {
|
|
2759
2773
|
const {
|
|
2760
2774
|
__scopeSelect: t,
|
|
@@ -2924,8 +2938,8 @@ var Oe = 10, [Fs, Je] = pt(ot), Nf = "SelectContentImpl", Vs = l.forwardRef(
|
|
|
2924
2938
|
);
|
|
2925
2939
|
}
|
|
2926
2940
|
);
|
|
2927
|
-
Vs.displayName =
|
|
2928
|
-
var
|
|
2941
|
+
Vs.displayName = Af;
|
|
2942
|
+
var Rf = "SelectItemAlignedPosition", $s = l.forwardRef((e, r) => {
|
|
2929
2943
|
const { __scopeSelect: t, onPlaced: n, ...a } = e, o = Ze(ot, t), s = Je(ot, t), [i, u] = l.useState(null), [d, f] = l.useState(null), p = we(r, (D) => f(D)), g = mr(t), y = l.useRef(!1), S = l.useRef(!0), { viewport: v, selectedItem: b, selectedItemText: _, focusSelectedItem: x } = s, N = l.useCallback(() => {
|
|
2930
2944
|
if (o.trigger && o.valueNode && i && d && v && b && _) {
|
|
2931
2945
|
const D = o.trigger.getBoundingClientRect(), J = d.getBoundingClientRect(), K = o.valueNode.getBoundingClientRect(), Q = _.getBoundingClientRect();
|
|
@@ -2993,7 +3007,7 @@ var _f = "SelectItemAlignedPosition", $s = l.forwardRef((e, r) => {
|
|
|
2993
3007
|
[N, x]
|
|
2994
3008
|
);
|
|
2995
3009
|
return /* @__PURE__ */ c.jsx(
|
|
2996
|
-
|
|
3010
|
+
Mf,
|
|
2997
3011
|
{
|
|
2998
3012
|
scope: t,
|
|
2999
3013
|
contentWrapper: i,
|
|
@@ -3029,8 +3043,8 @@ var _f = "SelectItemAlignedPosition", $s = l.forwardRef((e, r) => {
|
|
|
3029
3043
|
}
|
|
3030
3044
|
);
|
|
3031
3045
|
});
|
|
3032
|
-
$s.displayName =
|
|
3033
|
-
var
|
|
3046
|
+
$s.displayName = Rf;
|
|
3047
|
+
var Tf = "SelectPopperPosition", Ur = l.forwardRef((e, r) => {
|
|
3034
3048
|
const {
|
|
3035
3049
|
__scopeSelect: t,
|
|
3036
3050
|
align: n = "start",
|
|
@@ -3058,8 +3072,8 @@ var If = "SelectPopperPosition", Ur = l.forwardRef((e, r) => {
|
|
|
3058
3072
|
}
|
|
3059
3073
|
);
|
|
3060
3074
|
});
|
|
3061
|
-
Ur.displayName =
|
|
3062
|
-
var [
|
|
3075
|
+
Ur.displayName = Tf;
|
|
3076
|
+
var [Mf, _n] = mt(ot, {}), Br = "SelectViewport", Ls = l.forwardRef(
|
|
3063
3077
|
(e, r) => {
|
|
3064
3078
|
const { __scopeSelect: t, nonce: n, ...a } = e, o = Je(Br, t), s = _n(Br, t), i = we(r, o.onViewportChange), u = l.useRef(0);
|
|
3065
3079
|
return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
@@ -3112,21 +3126,21 @@ var [Ef, _n] = pt(ot, {}), Br = "SelectViewport", Ls = l.forwardRef(
|
|
|
3112
3126
|
}
|
|
3113
3127
|
);
|
|
3114
3128
|
Ls.displayName = Br;
|
|
3115
|
-
var Us = "SelectGroup", [
|
|
3129
|
+
var Us = "SelectGroup", [Df, Pf] = mt(Us), Bs = l.forwardRef(
|
|
3116
3130
|
(e, r) => {
|
|
3117
3131
|
const { __scopeSelect: t, ...n } = e, a = Re();
|
|
3118
|
-
return /* @__PURE__ */ c.jsx(
|
|
3132
|
+
return /* @__PURE__ */ c.jsx(Df, { scope: t, id: a, children: /* @__PURE__ */ c.jsx(de.div, { role: "group", "aria-labelledby": a, ...n, ref: r }) });
|
|
3119
3133
|
}
|
|
3120
3134
|
);
|
|
3121
3135
|
Bs.displayName = Us;
|
|
3122
3136
|
var Gs = "SelectLabel", Ks = l.forwardRef(
|
|
3123
3137
|
(e, r) => {
|
|
3124
|
-
const { __scopeSelect: t, ...n } = e, a =
|
|
3138
|
+
const { __scopeSelect: t, ...n } = e, a = Pf(Gs, t);
|
|
3125
3139
|
return /* @__PURE__ */ c.jsx(de.div, { id: a.id, ...n, ref: r });
|
|
3126
3140
|
}
|
|
3127
3141
|
);
|
|
3128
3142
|
Ks.displayName = Gs;
|
|
3129
|
-
var Yt = "SelectItem", [
|
|
3143
|
+
var Yt = "SelectItem", [jf, Hs] = mt(Yt), Ws = l.forwardRef(
|
|
3130
3144
|
(e, r) => {
|
|
3131
3145
|
const {
|
|
3132
3146
|
__scopeSelect: t,
|
|
@@ -3148,7 +3162,7 @@ var Yt = "SelectItem", [Tf, Hs] = pt(Yt), Ws = l.forwardRef(
|
|
|
3148
3162
|
"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."
|
|
3149
3163
|
);
|
|
3150
3164
|
return /* @__PURE__ */ c.jsx(
|
|
3151
|
-
|
|
3165
|
+
jf,
|
|
3152
3166
|
{
|
|
3153
3167
|
scope: t,
|
|
3154
3168
|
value: n,
|
|
@@ -3199,7 +3213,7 @@ var Yt = "SelectItem", [Tf, Hs] = pt(Yt), Ws = l.forwardRef(
|
|
|
3199
3213
|
}),
|
|
3200
3214
|
onKeyDown: re(s.onKeyDown, (x) => {
|
|
3201
3215
|
var U;
|
|
3202
|
-
((U = u.searchRef) == null ? void 0 : U.current) !== "" && x.key === " " || (
|
|
3216
|
+
((U = u.searchRef) == null ? void 0 : U.current) !== "" && x.key === " " || (wf.includes(x.key) && _(), x.key === " " && x.preventDefault());
|
|
3203
3217
|
})
|
|
3204
3218
|
}
|
|
3205
3219
|
)
|
|
@@ -3210,9 +3224,9 @@ var Yt = "SelectItem", [Tf, Hs] = pt(Yt), Ws = l.forwardRef(
|
|
|
3210
3224
|
}
|
|
3211
3225
|
);
|
|
3212
3226
|
Ws.displayName = Yt;
|
|
3213
|
-
var
|
|
3227
|
+
var wt = "SelectItemText", zs = l.forwardRef(
|
|
3214
3228
|
(e, r) => {
|
|
3215
|
-
const { __scopeSelect: t, className: n, style: a, ...o } = e, s = Ze(
|
|
3229
|
+
const { __scopeSelect: t, className: n, style: a, ...o } = e, s = Ze(wt, t), i = Je(wt, t), u = Hs(wt, t), d = _f(wt, t), [f, p] = l.useState(null), g = we(
|
|
3216
3230
|
r,
|
|
3217
3231
|
(_) => p(_),
|
|
3218
3232
|
u.onItemTextChange,
|
|
@@ -3230,7 +3244,7 @@ var bt = "SelectItemText", zs = l.forwardRef(
|
|
|
3230
3244
|
] });
|
|
3231
3245
|
}
|
|
3232
3246
|
);
|
|
3233
|
-
zs.displayName =
|
|
3247
|
+
zs.displayName = wt;
|
|
3234
3248
|
var qs = "SelectItemIndicator", Ys = l.forwardRef(
|
|
3235
3249
|
(e, r) => {
|
|
3236
3250
|
const { __scopeSelect: t, ...n } = e;
|
|
@@ -3313,20 +3327,20 @@ var Js = l.forwardRef((e, r) => {
|
|
|
3313
3327
|
})
|
|
3314
3328
|
}
|
|
3315
3329
|
);
|
|
3316
|
-
}),
|
|
3330
|
+
}), Of = "SelectSeparator", Qs = l.forwardRef(
|
|
3317
3331
|
(e, r) => {
|
|
3318
3332
|
const { __scopeSelect: t, ...n } = e;
|
|
3319
3333
|
return /* @__PURE__ */ c.jsx(de.div, { "aria-hidden": !0, ...n, ref: r });
|
|
3320
3334
|
}
|
|
3321
3335
|
);
|
|
3322
|
-
Qs.displayName =
|
|
3323
|
-
var Hr = "SelectArrow",
|
|
3336
|
+
Qs.displayName = Of;
|
|
3337
|
+
var Hr = "SelectArrow", kf = l.forwardRef(
|
|
3324
3338
|
(e, r) => {
|
|
3325
3339
|
const { __scopeSelect: t, ...n } = e, a = gr(t), o = Ze(Hr, t), s = Je(Hr, t);
|
|
3326
3340
|
return o.open && s.position === "popper" ? /* @__PURE__ */ c.jsx(Na, { ...a, ...n, ref: r }) : null;
|
|
3327
3341
|
}
|
|
3328
3342
|
);
|
|
3329
|
-
|
|
3343
|
+
kf.displayName = Hr;
|
|
3330
3344
|
function el(e) {
|
|
3331
3345
|
return e === "" || e === void 0;
|
|
3332
3346
|
}
|
|
@@ -3362,18 +3376,18 @@ function rl(e) {
|
|
|
3362
3376
|
}
|
|
3363
3377
|
function nl(e, r, t) {
|
|
3364
3378
|
const a = r.length > 1 && Array.from(r).every((d) => d === r[0]) ? r[0] : r, o = t ? e.indexOf(t) : -1;
|
|
3365
|
-
let s =
|
|
3379
|
+
let s = Ff(e, Math.max(o, 0));
|
|
3366
3380
|
a.length === 1 && (s = s.filter((d) => d !== t));
|
|
3367
3381
|
const u = s.find(
|
|
3368
3382
|
(d) => d.textValue.toLowerCase().startsWith(a.toLowerCase())
|
|
3369
3383
|
);
|
|
3370
3384
|
return u !== t ? u : void 0;
|
|
3371
3385
|
}
|
|
3372
|
-
function
|
|
3386
|
+
function Ff(e, r) {
|
|
3373
3387
|
return e.map((t, n) => e[(r + n) % e.length]);
|
|
3374
3388
|
}
|
|
3375
|
-
var
|
|
3376
|
-
const
|
|
3389
|
+
var Vf = Rs, al = Ms, $f = Ps, Lf = js, Uf = Os, ol = ks, Bf = Ls, Gf = Bs, sl = Ks, ll = Ws, Kf = zs, Hf = Ys, il = Xs, cl = Zs, ul = Qs;
|
|
3390
|
+
const Wf = Vf, Ng = Gf, zf = $f, dl = l.forwardRef(({ className: e, children: r, ...t }, n) => /* @__PURE__ */ c.jsxs(
|
|
3377
3391
|
al,
|
|
3378
3392
|
{
|
|
3379
3393
|
ref: n,
|
|
@@ -3384,7 +3398,7 @@ const Bf = jf, bg = $f, Gf = Of, dl = l.forwardRef(({ className: e, children: r,
|
|
|
3384
3398
|
...t,
|
|
3385
3399
|
children: [
|
|
3386
3400
|
r,
|
|
3387
|
-
/* @__PURE__ */ c.jsx(
|
|
3401
|
+
/* @__PURE__ */ c.jsx(Lf, { asChild: !0, children: /* @__PURE__ */ c.jsx(Xr, { className: "al-h-4 al-w-4 al-opacity-50 al-ml-2" }) })
|
|
3388
3402
|
]
|
|
3389
3403
|
}
|
|
3390
3404
|
));
|
|
@@ -3409,7 +3423,7 @@ const pl = l.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
|
3409
3423
|
}
|
|
3410
3424
|
));
|
|
3411
3425
|
pl.displayName = cl.displayName;
|
|
3412
|
-
const ml = l.forwardRef(({ className: e, children: r, position: t = "popper", ...n }, a) => /* @__PURE__ */ c.jsx(
|
|
3426
|
+
const ml = l.forwardRef(({ className: e, children: r, position: t = "popper", ...n }, a) => /* @__PURE__ */ c.jsx(Uf, { children: /* @__PURE__ */ c.jsxs(
|
|
3413
3427
|
ol,
|
|
3414
3428
|
{
|
|
3415
3429
|
ref: a,
|
|
@@ -3423,7 +3437,7 @@ const ml = l.forwardRef(({ className: e, children: r, position: t = "popper", ..
|
|
|
3423
3437
|
children: [
|
|
3424
3438
|
/* @__PURE__ */ c.jsx(fl, {}),
|
|
3425
3439
|
/* @__PURE__ */ c.jsx(
|
|
3426
|
-
|
|
3440
|
+
Bf,
|
|
3427
3441
|
{
|
|
3428
3442
|
className: O(
|
|
3429
3443
|
"al-p-1",
|
|
@@ -3437,7 +3451,7 @@ const ml = l.forwardRef(({ className: e, children: r, position: t = "popper", ..
|
|
|
3437
3451
|
}
|
|
3438
3452
|
) }));
|
|
3439
3453
|
ml.displayName = ol.displayName;
|
|
3440
|
-
const
|
|
3454
|
+
const qf = l.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
3441
3455
|
sl,
|
|
3442
3456
|
{
|
|
3443
3457
|
ref: t,
|
|
@@ -3445,7 +3459,7 @@ const Kf = l.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
|
3445
3459
|
...r
|
|
3446
3460
|
}
|
|
3447
3461
|
));
|
|
3448
|
-
|
|
3462
|
+
qf.displayName = sl.displayName;
|
|
3449
3463
|
const gl = l.forwardRef(({ className: e, children: r, ...t }, n) => /* @__PURE__ */ c.jsxs(
|
|
3450
3464
|
ll,
|
|
3451
3465
|
{
|
|
@@ -3456,13 +3470,13 @@ const gl = l.forwardRef(({ className: e, children: r, ...t }, n) => /* @__PURE__
|
|
|
3456
3470
|
),
|
|
3457
3471
|
...t,
|
|
3458
3472
|
children: [
|
|
3459
|
-
/* @__PURE__ */ c.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__ */ c.jsx(
|
|
3460
|
-
/* @__PURE__ */ c.jsx(
|
|
3473
|
+
/* @__PURE__ */ c.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__ */ c.jsx(Hf, { children: /* @__PURE__ */ c.jsx(pa, { className: "al-h-4 al-w-4" }) }) }),
|
|
3474
|
+
/* @__PURE__ */ c.jsx(Kf, { children: r })
|
|
3461
3475
|
]
|
|
3462
3476
|
}
|
|
3463
3477
|
));
|
|
3464
3478
|
gl.displayName = ll.displayName;
|
|
3465
|
-
const
|
|
3479
|
+
const Yf = l.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
3466
3480
|
ul,
|
|
3467
3481
|
{
|
|
3468
3482
|
ref: t,
|
|
@@ -3470,8 +3484,8 @@ const Hf = l.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
|
3470
3484
|
...r
|
|
3471
3485
|
}
|
|
3472
3486
|
));
|
|
3473
|
-
|
|
3474
|
-
const
|
|
3487
|
+
Yf.displayName = ul.displayName;
|
|
3488
|
+
const Xf = He(
|
|
3475
3489
|
[
|
|
3476
3490
|
"al-flex al-items-center al-justify-between al-rounded-md",
|
|
3477
3491
|
"al-text-sm al-font-normal",
|
|
@@ -3527,17 +3541,17 @@ const Wf = He(
|
|
|
3527
3541
|
size: "default"
|
|
3528
3542
|
}
|
|
3529
3543
|
}
|
|
3530
|
-
),
|
|
3531
|
-
({ options: e, onChange: r, value: t, placeholder: n, className: a, disabled: o, icon: s, variant: i, size: u, open: d }, f) => /* @__PURE__ */ c.jsxs(
|
|
3532
|
-
/* @__PURE__ */ c.jsxs(dl, { ref: f, className: O(
|
|
3544
|
+
), Zf = Ne(
|
|
3545
|
+
({ options: e, onChange: r, value: t, placeholder: n, className: a, disabled: o, icon: s, variant: i, size: u, open: d }, f) => /* @__PURE__ */ c.jsxs(Wf, { value: t, onValueChange: r, disabled: o, open: d, children: [
|
|
3546
|
+
/* @__PURE__ */ c.jsxs(dl, { ref: f, className: O(Xf({ variant: i, size: u, className: a })), children: [
|
|
3533
3547
|
s && /* @__PURE__ */ c.jsx("div", { className: "al-mr-2", children: s }),
|
|
3534
|
-
/* @__PURE__ */ c.jsx(
|
|
3548
|
+
/* @__PURE__ */ c.jsx(zf, { placeholder: n })
|
|
3535
3549
|
] }),
|
|
3536
3550
|
/* @__PURE__ */ c.jsx(ml, { children: e.map((p) => /* @__PURE__ */ c.jsx(gl, { value: p.value, children: p.label }, p.value)) })
|
|
3537
3551
|
] })
|
|
3538
3552
|
);
|
|
3539
|
-
|
|
3540
|
-
const
|
|
3553
|
+
Zf.displayName = "NativeSelect";
|
|
3554
|
+
const Jf = ({
|
|
3541
3555
|
multiSelect: e,
|
|
3542
3556
|
showOnlyPlaceholder: r,
|
|
3543
3557
|
placeholder: t,
|
|
@@ -3547,21 +3561,21 @@ const qf = ({
|
|
|
3547
3561
|
getLabelForValue: s
|
|
3548
3562
|
}) => {
|
|
3549
3563
|
if (r)
|
|
3550
|
-
return /* @__PURE__ */ c.jsx("
|
|
3564
|
+
return /* @__PURE__ */ c.jsx("div", { className: "al-truncate", children: t });
|
|
3551
3565
|
if (!e) {
|
|
3552
3566
|
const p = n ? s(n) : void 0;
|
|
3553
|
-
return /* @__PURE__ */ c.jsx("
|
|
3567
|
+
return /* @__PURE__ */ c.jsx("div", { className: "al-truncate", children: p || t || "Select item" });
|
|
3554
3568
|
}
|
|
3555
3569
|
const i = o ? Array.isArray(n) ? n : n ? [n] : [] : a;
|
|
3556
3570
|
if (i.length === 0)
|
|
3557
|
-
return /* @__PURE__ */ c.jsx("
|
|
3571
|
+
return /* @__PURE__ */ c.jsx("div", { className: "al-truncate", children: t || "All Items" });
|
|
3558
3572
|
if (i.length === 1)
|
|
3559
|
-
return /* @__PURE__ */ c.jsx("
|
|
3573
|
+
return /* @__PURE__ */ c.jsx("div", { className: "al-truncate", children: s(i[0]) });
|
|
3560
3574
|
const u = i.slice(0, 2).map((p) => s(p)), d = i.length - 2, f = i.map((p) => s(p));
|
|
3561
3575
|
return /* @__PURE__ */ c.jsxs("div", { className: "al-flex al-items-center al-gap-none al-min-w-0", children: [
|
|
3562
3576
|
u.map((p, g) => /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
3563
3577
|
/* @__PURE__ */ c.jsx(
|
|
3564
|
-
"
|
|
3578
|
+
"div",
|
|
3565
3579
|
{
|
|
3566
3580
|
className: O("al-truncate al-inline-block", g === 0 ? "" : "al-ml-1"),
|
|
3567
3581
|
style: { maxWidth: "150px" },
|
|
@@ -3590,7 +3604,7 @@ const qf = ({
|
|
|
3590
3604
|
)
|
|
3591
3605
|
] })
|
|
3592
3606
|
] });
|
|
3593
|
-
},
|
|
3607
|
+
}, Qf = ({
|
|
3594
3608
|
options: e,
|
|
3595
3609
|
value: r,
|
|
3596
3610
|
onChange: t,
|
|
@@ -3616,16 +3630,16 @@ const qf = ({
|
|
|
3616
3630
|
hoverDelayMs: H = 300,
|
|
3617
3631
|
searchMode: D = !1
|
|
3618
3632
|
}, J) => {
|
|
3619
|
-
const [K, Q] = Ve((x == null ? void 0 : x.defaultOpen) ?? !1), [se, F] = Ve(!1), [Z, W] = Ve(!1), [te, z] = Ve(""), [ie, ce] = Ve(1), [$, le] = Ve(null), [pe, C] = Ve(!1), [B, Y] = Ve(!1), [k, ne] = Ve(!1), E =
|
|
3620
|
-
|
|
3633
|
+
const [K, Q] = Ve((x == null ? void 0 : x.defaultOpen) ?? !1), [se, F] = Ve(!1), [Z, W] = Ve(!1), [te, z] = Ve(""), [ie, ce] = Ve(1), [$, le] = Ve(null), [pe, C] = Ve(!1), [B, Y] = Ve(!1), [k, ne] = Ve(!1), E = ct(null), q = ct(null), oe = ct(/* @__PURE__ */ new Map()), ee = ct(null), T = ct(null), M = ct(null), ae = e.some((A) => A.children), Se = qe(() => d ? Array.isArray(r) ? r : r ? [r] : [] : r ? [r] : [], [r, d]), [ve, fe] = Ve(Se());
|
|
3634
|
+
vt(() => {
|
|
3621
3635
|
e.forEach((A) => {
|
|
3622
3636
|
oe.current.set(A.value, A.label), A.nestedLabels && Object.entries(A.nestedLabels).forEach(([me, Me]) => {
|
|
3623
3637
|
oe.current.set(me, Me);
|
|
3624
3638
|
});
|
|
3625
3639
|
});
|
|
3626
|
-
}, [e]),
|
|
3640
|
+
}, [e]), vt(() => {
|
|
3627
3641
|
(!p || !K) && fe(Se());
|
|
3628
|
-
}, [Se, p, K]),
|
|
3642
|
+
}, [Se, p, K]), vt(() => {
|
|
3629
3643
|
if (!y || !K)
|
|
3630
3644
|
return;
|
|
3631
3645
|
const A = setTimeout(() => {
|
|
@@ -3655,9 +3669,9 @@ const qf = ({
|
|
|
3655
3669
|
return () => {
|
|
3656
3670
|
clearTimeout(A);
|
|
3657
3671
|
};
|
|
3658
|
-
}, [y, K, S, se, te, ie]),
|
|
3672
|
+
}, [y, K, S, se, te, ie]), vt(() => {
|
|
3659
3673
|
K || (q.current && (q.current.disconnect(), q.current = null), ee.current && (clearTimeout(ee.current), ee.current = null), W(!1), M.current && (clearTimeout(M.current), M.current = null));
|
|
3660
|
-
}, [K]),
|
|
3674
|
+
}, [K]), vt(() => {
|
|
3661
3675
|
y && (F(!0), ce(1), y("", 1).finally(() => {
|
|
3662
3676
|
F(!1);
|
|
3663
3677
|
}));
|
|
@@ -3739,7 +3753,7 @@ const qf = ({
|
|
|
3739
3753
|
value: A,
|
|
3740
3754
|
placeholder: o || "Search...",
|
|
3741
3755
|
debounceMs: 300,
|
|
3742
|
-
className: s == null ? void 0 : s.className
|
|
3756
|
+
className: `!al-h-10 ${s == null ? void 0 : s.className}`,
|
|
3743
3757
|
id: i ? `${i}-combobox` : "default-combobox",
|
|
3744
3758
|
role: "combobox",
|
|
3745
3759
|
"aria-expanded": K,
|
|
@@ -3773,13 +3787,13 @@ const qf = ({
|
|
|
3773
3787
|
id: i ? `${i}-combobox` : "default-combobox",
|
|
3774
3788
|
...s,
|
|
3775
3789
|
className: O(
|
|
3776
|
-
"al-w-56 al-flex al-items-center al-justify-between al-py-3 al-px-2",
|
|
3790
|
+
"al-w-56 !al-h-10 al-flex al-items-center al-justify-between al-py-3 al-px-2",
|
|
3777
3791
|
s == null ? void 0 : s.className
|
|
3778
3792
|
),
|
|
3779
3793
|
children: [
|
|
3780
3794
|
u && /* @__PURE__ */ c.jsx("div", { className: "al-flex-shrink-0", children: u }),
|
|
3781
3795
|
/* @__PURE__ */ c.jsx("div", { className: "al-flex-1 al-min-w-0 al-text-left", children: /* @__PURE__ */ c.jsx(
|
|
3782
|
-
|
|
3796
|
+
Jf,
|
|
3783
3797
|
{
|
|
3784
3798
|
multiSelect: d,
|
|
3785
3799
|
showOnlyPlaceholder: f,
|
|
@@ -3790,7 +3804,7 @@ const qf = ({
|
|
|
3790
3804
|
getLabelForValue: h
|
|
3791
3805
|
}
|
|
3792
3806
|
) }),
|
|
3793
|
-
(_ == null ? void 0 : _.side) === "right" ? /* @__PURE__ */ c.jsx(Kn, { className: "al-ml-2 al-size-4 al-shrink-0 al-opacity-50" }) : /* @__PURE__ */ c.jsx(
|
|
3807
|
+
(_ == null ? void 0 : _.side) === "right" ? /* @__PURE__ */ c.jsx(Kn, { className: "al-ml-2 al-size-4 al-shrink-0 al-opacity-50" }) : /* @__PURE__ */ c.jsx(rc, { className: "al-mr-2 al-size-4 al-shrink-0 al-opacity-50" })
|
|
3794
3808
|
]
|
|
3795
3809
|
}
|
|
3796
3810
|
);
|
|
@@ -3801,7 +3815,13 @@ const qf = ({
|
|
|
3801
3815
|
Un,
|
|
3802
3816
|
{
|
|
3803
3817
|
..._,
|
|
3804
|
-
className: O(
|
|
3818
|
+
className: O(
|
|
3819
|
+
"!al-p-0",
|
|
3820
|
+
// to match width of trigger
|
|
3821
|
+
// https://github.com/shadcn-ui/ui/issues/3045#issuecomment-2773835617
|
|
3822
|
+
"!al-w-[var(--radix-popover-trigger-width)]",
|
|
3823
|
+
_ == null ? void 0 : _.className
|
|
3824
|
+
),
|
|
3805
3825
|
id: `${i}-combobox-content`,
|
|
3806
3826
|
onWheel: (A) => {
|
|
3807
3827
|
A.stopPropagation();
|
|
@@ -3840,12 +3860,19 @@ const qf = ({
|
|
|
3840
3860
|
onMouseEnter: () => he(A),
|
|
3841
3861
|
onMouseLeave: Le,
|
|
3842
3862
|
children: /* @__PURE__ */ c.jsxs("div", { className: "al-flex al-items-center al-gap-2 al-w-full", children: [
|
|
3843
|
-
/* @__PURE__ */ c.jsx(
|
|
3863
|
+
d ? ve.includes(A.value) ? /* @__PURE__ */ c.jsx(
|
|
3864
|
+
ec,
|
|
3865
|
+
{
|
|
3866
|
+
className: "al-mr-2 al-size-4 al-text-primary",
|
|
3867
|
+
role: "checkbox",
|
|
3868
|
+
"aria-checked": "true"
|
|
3869
|
+
}
|
|
3870
|
+
) : /* @__PURE__ */ c.jsx(sc, { className: "al-mr-2 al-size-4 al-text-muted-foreground" }) : /* @__PURE__ */ c.jsx(
|
|
3844
3871
|
Ji,
|
|
3845
3872
|
{
|
|
3846
3873
|
className: O(
|
|
3847
3874
|
"al-mr-2 al-size-4",
|
|
3848
|
-
|
|
3875
|
+
r === A.value ? "al-opacity-100" : "al-opacity-0"
|
|
3849
3876
|
)
|
|
3850
3877
|
}
|
|
3851
3878
|
),
|
|
@@ -3915,7 +3942,7 @@ const qf = ({
|
|
|
3915
3942
|
}
|
|
3916
3943
|
)
|
|
3917
3944
|
] });
|
|
3918
|
-
},
|
|
3945
|
+
}, _g = Ne(Qf);
|
|
3919
3946
|
function Ge(e, r, { checkForDefaultPrevented: t = !0 } = {}) {
|
|
3920
3947
|
return function(a) {
|
|
3921
3948
|
if (e == null || e(a), t === !1 || !a.defaultPrevented)
|
|
@@ -3952,9 +3979,9 @@ function In(e, r = []) {
|
|
|
3952
3979
|
);
|
|
3953
3980
|
};
|
|
3954
3981
|
};
|
|
3955
|
-
return a.scopeName = e, [n,
|
|
3982
|
+
return a.scopeName = e, [n, ep(a, ...r)];
|
|
3956
3983
|
}
|
|
3957
|
-
function
|
|
3984
|
+
function ep(...e) {
|
|
3958
3985
|
const r = e[0];
|
|
3959
3986
|
if (e.length === 1) return r;
|
|
3960
3987
|
const t = () => {
|
|
@@ -3977,7 +4004,7 @@ function Qn(e, r) {
|
|
|
3977
4004
|
return e(r);
|
|
3978
4005
|
e != null && (e.current = r);
|
|
3979
4006
|
}
|
|
3980
|
-
function
|
|
4007
|
+
function tp(...e) {
|
|
3981
4008
|
return (r) => {
|
|
3982
4009
|
let t = !1;
|
|
3983
4010
|
const n = e.map((a) => {
|
|
@@ -3994,9 +4021,9 @@ function Zf(...e) {
|
|
|
3994
4021
|
};
|
|
3995
4022
|
}
|
|
3996
4023
|
function Xt(...e) {
|
|
3997
|
-
return l.useCallback(
|
|
4024
|
+
return l.useCallback(tp(...e), e);
|
|
3998
4025
|
}
|
|
3999
|
-
function
|
|
4026
|
+
function rp(e) {
|
|
4000
4027
|
const r = e + "CollectionProvider", [t, n] = In(r), [a, o] = t(
|
|
4001
4028
|
r,
|
|
4002
4029
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
@@ -4037,15 +4064,15 @@ function Jf(e) {
|
|
|
4037
4064
|
];
|
|
4038
4065
|
}
|
|
4039
4066
|
var Zt = globalThis != null && globalThis.document ? l.useLayoutEffect : () => {
|
|
4040
|
-
},
|
|
4041
|
-
}),
|
|
4067
|
+
}, np = l[" useId ".trim().toString()] || (() => {
|
|
4068
|
+
}), ap = 0;
|
|
4042
4069
|
function vl(e) {
|
|
4043
|
-
const [r, t] = l.useState(
|
|
4070
|
+
const [r, t] = l.useState(np());
|
|
4044
4071
|
return Zt(() => {
|
|
4045
|
-
e || t((n) => n ?? String(
|
|
4072
|
+
e || t((n) => n ?? String(ap++));
|
|
4046
4073
|
}, [e]), e || (r ? `radix-${r}` : "");
|
|
4047
4074
|
}
|
|
4048
|
-
var
|
|
4075
|
+
var op = [
|
|
4049
4076
|
"a",
|
|
4050
4077
|
"button",
|
|
4051
4078
|
"div",
|
|
@@ -4063,14 +4090,14 @@ var tp = [
|
|
|
4063
4090
|
"span",
|
|
4064
4091
|
"svg",
|
|
4065
4092
|
"ul"
|
|
4066
|
-
],
|
|
4093
|
+
], gt = op.reduce((e, r) => {
|
|
4067
4094
|
const t = Dr(`Primitive.${r}`), n = l.forwardRef((a, o) => {
|
|
4068
4095
|
const { asChild: s, ...i } = a, u = s ? t : r;
|
|
4069
4096
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ c.jsx(u, { ...i, ref: o });
|
|
4070
4097
|
});
|
|
4071
4098
|
return n.displayName = `Primitive.${r}`, { ...e, [r]: n };
|
|
4072
4099
|
}, {});
|
|
4073
|
-
function
|
|
4100
|
+
function sp(e) {
|
|
4074
4101
|
const r = l.useRef(e);
|
|
4075
4102
|
return l.useEffect(() => {
|
|
4076
4103
|
r.current = e;
|
|
@@ -4079,7 +4106,7 @@ function rp(e) {
|
|
|
4079
4106
|
return (n = r.current) == null ? void 0 : n.call(r, ...t);
|
|
4080
4107
|
}, []);
|
|
4081
4108
|
}
|
|
4082
|
-
var
|
|
4109
|
+
var lp = l[" useInsertionEffect ".trim().toString()] || Zt;
|
|
4083
4110
|
function hl({
|
|
4084
4111
|
prop: e,
|
|
4085
4112
|
defaultProp: r,
|
|
@@ -4087,7 +4114,7 @@ function hl({
|
|
|
4087
4114
|
},
|
|
4088
4115
|
caller: n
|
|
4089
4116
|
}) {
|
|
4090
|
-
const [a, o, s] =
|
|
4117
|
+
const [a, o, s] = ip({
|
|
4091
4118
|
defaultProp: r,
|
|
4092
4119
|
onChange: t
|
|
4093
4120
|
}), i = e !== void 0, u = i ? e : a;
|
|
@@ -4104,7 +4131,7 @@ function hl({
|
|
|
4104
4131
|
(f) => {
|
|
4105
4132
|
var p;
|
|
4106
4133
|
if (i) {
|
|
4107
|
-
const g =
|
|
4134
|
+
const g = cp(f) ? f(e) : f;
|
|
4108
4135
|
g !== e && ((p = s.current) == null || p.call(s, g));
|
|
4109
4136
|
} else
|
|
4110
4137
|
o(f);
|
|
@@ -4113,34 +4140,34 @@ function hl({
|
|
|
4113
4140
|
);
|
|
4114
4141
|
return [u, d];
|
|
4115
4142
|
}
|
|
4116
|
-
function
|
|
4143
|
+
function ip({
|
|
4117
4144
|
defaultProp: e,
|
|
4118
4145
|
onChange: r
|
|
4119
4146
|
}) {
|
|
4120
4147
|
const [t, n] = l.useState(e), a = l.useRef(t), o = l.useRef(r);
|
|
4121
|
-
return
|
|
4148
|
+
return lp(() => {
|
|
4122
4149
|
o.current = r;
|
|
4123
4150
|
}, [r]), l.useEffect(() => {
|
|
4124
4151
|
var s;
|
|
4125
4152
|
a.current !== t && ((s = o.current) == null || s.call(o, t), a.current = t);
|
|
4126
4153
|
}, [t, a]), [t, n, o];
|
|
4127
4154
|
}
|
|
4128
|
-
function
|
|
4155
|
+
function cp(e) {
|
|
4129
4156
|
return typeof e == "function";
|
|
4130
4157
|
}
|
|
4131
|
-
var
|
|
4158
|
+
var up = l.createContext(void 0);
|
|
4132
4159
|
function xl(e) {
|
|
4133
|
-
const r = l.useContext(
|
|
4160
|
+
const r = l.useContext(up);
|
|
4134
4161
|
return e || r || "ltr";
|
|
4135
4162
|
}
|
|
4136
|
-
var Rr = "rovingFocusGroup.onEntryFocus",
|
|
4163
|
+
var Rr = "rovingFocusGroup.onEntryFocus", dp = { bubbles: !1, cancelable: !0 }, kt = "RovingFocusGroup", [Wr, yl, fp] = rp(kt), [pp, bl] = In(
|
|
4137
4164
|
kt,
|
|
4138
|
-
[
|
|
4139
|
-
), [
|
|
4140
|
-
(e, r) => /* @__PURE__ */ c.jsx(Wr.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c.jsx(Wr.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c.jsx(
|
|
4165
|
+
[fp]
|
|
4166
|
+
), [mp, gp] = pp(kt), wl = l.forwardRef(
|
|
4167
|
+
(e, r) => /* @__PURE__ */ c.jsx(Wr.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c.jsx(Wr.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c.jsx(vp, { ...e, ref: r }) }) })
|
|
4141
4168
|
);
|
|
4142
4169
|
wl.displayName = kt;
|
|
4143
|
-
var
|
|
4170
|
+
var vp = l.forwardRef((e, r) => {
|
|
4144
4171
|
const {
|
|
4145
4172
|
__scopeRovingFocusGroup: t,
|
|
4146
4173
|
orientation: n,
|
|
@@ -4157,13 +4184,13 @@ var fp = l.forwardRef((e, r) => {
|
|
|
4157
4184
|
defaultProp: i ?? null,
|
|
4158
4185
|
onChange: u,
|
|
4159
4186
|
caller: kt
|
|
4160
|
-
}), [_, x] = l.useState(!1), N =
|
|
4187
|
+
}), [_, x] = l.useState(!1), N = sp(d), U = yl(t), G = l.useRef(!1), [H, D] = l.useState(0);
|
|
4161
4188
|
return l.useEffect(() => {
|
|
4162
4189
|
const J = g.current;
|
|
4163
4190
|
if (J)
|
|
4164
4191
|
return J.addEventListener(Rr, N), () => J.removeEventListener(Rr, N);
|
|
4165
4192
|
}, [N]), /* @__PURE__ */ c.jsx(
|
|
4166
|
-
|
|
4193
|
+
mp,
|
|
4167
4194
|
{
|
|
4168
4195
|
scope: t,
|
|
4169
4196
|
orientation: n,
|
|
@@ -4184,7 +4211,7 @@ var fp = l.forwardRef((e, r) => {
|
|
|
4184
4211
|
[]
|
|
4185
4212
|
),
|
|
4186
4213
|
children: /* @__PURE__ */ c.jsx(
|
|
4187
|
-
|
|
4214
|
+
gt.div,
|
|
4188
4215
|
{
|
|
4189
4216
|
tabIndex: _ || H === 0 ? -1 : 0,
|
|
4190
4217
|
"data-orientation": n,
|
|
@@ -4197,7 +4224,7 @@ var fp = l.forwardRef((e, r) => {
|
|
|
4197
4224
|
onFocus: Ge(e.onFocus, (J) => {
|
|
4198
4225
|
const K = !G.current;
|
|
4199
4226
|
if (J.target === J.currentTarget && K && !_) {
|
|
4200
|
-
const Q = new CustomEvent(Rr,
|
|
4227
|
+
const Q = new CustomEvent(Rr, dp);
|
|
4201
4228
|
if (J.currentTarget.dispatchEvent(Q), !Q.defaultPrevented) {
|
|
4202
4229
|
const se = U().filter((z) => z.focusable), F = se.find((z) => z.active), Z = se.find((z) => z.id === v), te = [F, Z, ...se].filter(
|
|
4203
4230
|
Boolean
|
|
@@ -4221,7 +4248,7 @@ var fp = l.forwardRef((e, r) => {
|
|
|
4221
4248
|
tabStopId: o,
|
|
4222
4249
|
children: s,
|
|
4223
4250
|
...i
|
|
4224
|
-
} = e, u = vl(), d = o || u, f =
|
|
4251
|
+
} = e, u = vl(), d = o || u, f = gp(Sl, t), p = f.currentTabStopId === d, g = yl(t), { onFocusableItemAdd: y, onFocusableItemRemove: S, currentTabStopId: v } = f;
|
|
4225
4252
|
return l.useEffect(() => {
|
|
4226
4253
|
if (n)
|
|
4227
4254
|
return y(), () => S();
|
|
@@ -4233,7 +4260,7 @@ var fp = l.forwardRef((e, r) => {
|
|
|
4233
4260
|
focusable: n,
|
|
4234
4261
|
active: a,
|
|
4235
4262
|
children: /* @__PURE__ */ c.jsx(
|
|
4236
|
-
|
|
4263
|
+
gt.span,
|
|
4237
4264
|
{
|
|
4238
4265
|
tabIndex: p ? 0 : -1,
|
|
4239
4266
|
"data-orientation": f.orientation,
|
|
@@ -4249,7 +4276,7 @@ var fp = l.forwardRef((e, r) => {
|
|
|
4249
4276
|
return;
|
|
4250
4277
|
}
|
|
4251
4278
|
if (b.target !== b.currentTarget) return;
|
|
4252
|
-
const _ =
|
|
4279
|
+
const _ = yp(b, f.orientation, f.dir);
|
|
4253
4280
|
if (_ !== void 0) {
|
|
4254
4281
|
if (b.metaKey || b.ctrlKey || b.altKey || b.shiftKey) return;
|
|
4255
4282
|
b.preventDefault();
|
|
@@ -4258,7 +4285,7 @@ var fp = l.forwardRef((e, r) => {
|
|
|
4258
4285
|
else if (_ === "prev" || _ === "next") {
|
|
4259
4286
|
_ === "prev" && N.reverse();
|
|
4260
4287
|
const U = N.indexOf(b.currentTarget);
|
|
4261
|
-
N = f.loop ?
|
|
4288
|
+
N = f.loop ? bp(N, U + 1) : N.slice(U + 1);
|
|
4262
4289
|
}
|
|
4263
4290
|
setTimeout(() => Nl(N));
|
|
4264
4291
|
}
|
|
@@ -4271,7 +4298,7 @@ var fp = l.forwardRef((e, r) => {
|
|
|
4271
4298
|
}
|
|
4272
4299
|
);
|
|
4273
4300
|
Cl.displayName = Sl;
|
|
4274
|
-
var
|
|
4301
|
+
var hp = {
|
|
4275
4302
|
ArrowLeft: "prev",
|
|
4276
4303
|
ArrowUp: "prev",
|
|
4277
4304
|
ArrowRight: "next",
|
|
@@ -4281,33 +4308,33 @@ var pp = {
|
|
|
4281
4308
|
PageDown: "last",
|
|
4282
4309
|
End: "last"
|
|
4283
4310
|
};
|
|
4284
|
-
function
|
|
4311
|
+
function xp(e, r) {
|
|
4285
4312
|
return r !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
4286
4313
|
}
|
|
4287
|
-
function
|
|
4288
|
-
const n =
|
|
4314
|
+
function yp(e, r, t) {
|
|
4315
|
+
const n = xp(e.key, t);
|
|
4289
4316
|
if (!(r === "vertical" && ["ArrowLeft", "ArrowRight"].includes(n)) && !(r === "horizontal" && ["ArrowUp", "ArrowDown"].includes(n)))
|
|
4290
|
-
return
|
|
4317
|
+
return hp[n];
|
|
4291
4318
|
}
|
|
4292
4319
|
function Nl(e, r = !1) {
|
|
4293
4320
|
const t = document.activeElement;
|
|
4294
4321
|
for (const n of e)
|
|
4295
4322
|
if (n === t || (n.focus({ preventScroll: r }), document.activeElement !== t)) return;
|
|
4296
4323
|
}
|
|
4297
|
-
function
|
|
4324
|
+
function bp(e, r) {
|
|
4298
4325
|
return e.map((t, n) => e[(r + n) % e.length]);
|
|
4299
4326
|
}
|
|
4300
|
-
var
|
|
4301
|
-
function
|
|
4327
|
+
var wp = wl, Sp = Cl;
|
|
4328
|
+
function Cp(e, r) {
|
|
4302
4329
|
return l.useReducer((t, n) => r[t][n] ?? t, e);
|
|
4303
4330
|
}
|
|
4304
4331
|
var _l = (e) => {
|
|
4305
|
-
const { present: r, children: t } = e, n =
|
|
4332
|
+
const { present: r, children: t } = e, n = Np(r), a = typeof t == "function" ? t({ present: n.isPresent }) : l.Children.only(t), o = Xt(n.ref, _p(a));
|
|
4306
4333
|
return typeof t == "function" || n.isPresent ? l.cloneElement(a, { ref: o }) : null;
|
|
4307
4334
|
};
|
|
4308
4335
|
_l.displayName = "Presence";
|
|
4309
|
-
function
|
|
4310
|
-
const [r, t] = l.useState(), n = l.useRef(null), a = l.useRef(e), o = l.useRef("none"), s = e ? "mounted" : "unmounted", [i, u] =
|
|
4336
|
+
function Np(e) {
|
|
4337
|
+
const [r, t] = l.useState(), n = l.useRef(null), a = l.useRef(e), o = l.useRef("none"), s = e ? "mounted" : "unmounted", [i, u] = Cp(s, {
|
|
4311
4338
|
mounted: {
|
|
4312
4339
|
UNMOUNT: "unmounted",
|
|
4313
4340
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -4358,14 +4385,14 @@ function bp(e) {
|
|
|
4358
4385
|
function $t(e) {
|
|
4359
4386
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
4360
4387
|
}
|
|
4361
|
-
function
|
|
4388
|
+
function _p(e) {
|
|
4362
4389
|
var n, a;
|
|
4363
4390
|
let r = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, t = r && "isReactWarning" in r && r.isReactWarning;
|
|
4364
4391
|
return t ? e.ref : (r = (a = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : a.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
|
|
4365
4392
|
}
|
|
4366
|
-
var vr = "Tabs", [
|
|
4393
|
+
var vr = "Tabs", [Ip, Ig] = In(vr, [
|
|
4367
4394
|
bl
|
|
4368
|
-
]), Il = bl(), [
|
|
4395
|
+
]), Il = bl(), [Ep, En] = Ip(vr), El = l.forwardRef(
|
|
4369
4396
|
(e, r) => {
|
|
4370
4397
|
const {
|
|
4371
4398
|
__scopeTabs: t,
|
|
@@ -4383,7 +4410,7 @@ var vr = "Tabs", [Sp, Sg] = In(vr, [
|
|
|
4383
4410
|
caller: vr
|
|
4384
4411
|
});
|
|
4385
4412
|
return /* @__PURE__ */ c.jsx(
|
|
4386
|
-
|
|
4413
|
+
Ep,
|
|
4387
4414
|
{
|
|
4388
4415
|
scope: t,
|
|
4389
4416
|
baseId: vl(),
|
|
@@ -4393,7 +4420,7 @@ var vr = "Tabs", [Sp, Sg] = In(vr, [
|
|
|
4393
4420
|
dir: f,
|
|
4394
4421
|
activationMode: u,
|
|
4395
4422
|
children: /* @__PURE__ */ c.jsx(
|
|
4396
|
-
|
|
4423
|
+
gt.div,
|
|
4397
4424
|
{
|
|
4398
4425
|
dir: f,
|
|
4399
4426
|
"data-orientation": s,
|
|
@@ -4410,7 +4437,7 @@ var Al = "TabsList", Rl = l.forwardRef(
|
|
|
4410
4437
|
(e, r) => {
|
|
4411
4438
|
const { __scopeTabs: t, loop: n = !0, ...a } = e, o = En(Al, t), s = Il(t);
|
|
4412
4439
|
return /* @__PURE__ */ c.jsx(
|
|
4413
|
-
|
|
4440
|
+
wp,
|
|
4414
4441
|
{
|
|
4415
4442
|
asChild: !0,
|
|
4416
4443
|
...s,
|
|
@@ -4418,7 +4445,7 @@ var Al = "TabsList", Rl = l.forwardRef(
|
|
|
4418
4445
|
dir: o.dir,
|
|
4419
4446
|
loop: n,
|
|
4420
4447
|
children: /* @__PURE__ */ c.jsx(
|
|
4421
|
-
|
|
4448
|
+
gt.div,
|
|
4422
4449
|
{
|
|
4423
4450
|
role: "tablist",
|
|
4424
4451
|
"aria-orientation": o.orientation,
|
|
@@ -4435,14 +4462,14 @@ var Tl = "TabsTrigger", Ml = l.forwardRef(
|
|
|
4435
4462
|
(e, r) => {
|
|
4436
4463
|
const { __scopeTabs: t, value: n, disabled: a = !1, ...o } = e, s = En(Tl, t), i = Il(t), u = jl(s.baseId, n), d = Ol(s.baseId, n), f = n === s.value;
|
|
4437
4464
|
return /* @__PURE__ */ c.jsx(
|
|
4438
|
-
|
|
4465
|
+
Sp,
|
|
4439
4466
|
{
|
|
4440
4467
|
asChild: !0,
|
|
4441
4468
|
...i,
|
|
4442
4469
|
focusable: !a,
|
|
4443
4470
|
active: f,
|
|
4444
4471
|
children: /* @__PURE__ */ c.jsx(
|
|
4445
|
-
|
|
4472
|
+
gt.button,
|
|
4446
4473
|
{
|
|
4447
4474
|
type: "button",
|
|
4448
4475
|
role: "tab",
|
|
@@ -4478,7 +4505,7 @@ var Dl = "TabsContent", Pl = l.forwardRef(
|
|
|
4478
4505
|
const g = requestAnimationFrame(() => p.current = !1);
|
|
4479
4506
|
return () => cancelAnimationFrame(g);
|
|
4480
4507
|
}, []), /* @__PURE__ */ c.jsx(_l, { present: a || f, children: ({ present: g }) => /* @__PURE__ */ c.jsx(
|
|
4481
|
-
|
|
4508
|
+
gt.div,
|
|
4482
4509
|
{
|
|
4483
4510
|
"data-state": f ? "active" : "inactive",
|
|
4484
4511
|
"data-orientation": i.orientation,
|
|
@@ -4506,7 +4533,7 @@ function Ol(e, r) {
|
|
|
4506
4533
|
return `${e}-content-${r}`;
|
|
4507
4534
|
}
|
|
4508
4535
|
var kl = El, Fl = Rl, Vl = Ml, $l = Pl;
|
|
4509
|
-
const
|
|
4536
|
+
const Ap = He("", {
|
|
4510
4537
|
variants: {
|
|
4511
4538
|
variant: {
|
|
4512
4539
|
default: "",
|
|
@@ -4516,7 +4543,7 @@ const Np = He("", {
|
|
|
4516
4543
|
defaultVariants: {
|
|
4517
4544
|
variant: "default"
|
|
4518
4545
|
}
|
|
4519
|
-
}),
|
|
4546
|
+
}), Rp = He(
|
|
4520
4547
|
"al-inline-flex al-items-center al-justify-center al-text-muted-foreground",
|
|
4521
4548
|
{
|
|
4522
4549
|
variants: {
|
|
@@ -4529,7 +4556,7 @@ const Np = He("", {
|
|
|
4529
4556
|
variant: "default"
|
|
4530
4557
|
}
|
|
4531
4558
|
}
|
|
4532
|
-
),
|
|
4559
|
+
), Tp = He(
|
|
4533
4560
|
"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",
|
|
4534
4561
|
{
|
|
4535
4562
|
variants: {
|
|
@@ -4544,42 +4571,42 @@ const Np = He("", {
|
|
|
4544
4571
|
}
|
|
4545
4572
|
), An = l.createContext({
|
|
4546
4573
|
variant: "default"
|
|
4547
|
-
}),
|
|
4574
|
+
}), Mp = l.forwardRef(
|
|
4548
4575
|
({ className: e, variant: r, ...t }, n) => /* @__PURE__ */ c.jsx(An.Provider, { value: { variant: r }, children: /* @__PURE__ */ c.jsx(
|
|
4549
4576
|
kl,
|
|
4550
4577
|
{
|
|
4551
4578
|
ref: n,
|
|
4552
|
-
className: O(
|
|
4579
|
+
className: O(Ap({ variant: r }), e),
|
|
4553
4580
|
...t
|
|
4554
4581
|
}
|
|
4555
4582
|
) })
|
|
4556
4583
|
);
|
|
4557
|
-
|
|
4558
|
-
const
|
|
4584
|
+
Mp.displayName = kl.displayName;
|
|
4585
|
+
const Dp = l.forwardRef(({ className: e, ...r }, t) => {
|
|
4559
4586
|
const { variant: n } = l.useContext(An);
|
|
4560
4587
|
return /* @__PURE__ */ c.jsx(
|
|
4561
4588
|
Fl,
|
|
4562
4589
|
{
|
|
4563
4590
|
ref: t,
|
|
4564
|
-
className: O(
|
|
4591
|
+
className: O(Rp({ variant: n }), e),
|
|
4565
4592
|
...r
|
|
4566
4593
|
}
|
|
4567
4594
|
);
|
|
4568
4595
|
});
|
|
4569
|
-
|
|
4570
|
-
const
|
|
4596
|
+
Dp.displayName = Fl.displayName;
|
|
4597
|
+
const Pp = l.forwardRef(({ className: e, ...r }, t) => {
|
|
4571
4598
|
const { variant: n } = l.useContext(An);
|
|
4572
4599
|
return /* @__PURE__ */ c.jsx(
|
|
4573
4600
|
Vl,
|
|
4574
4601
|
{
|
|
4575
4602
|
ref: t,
|
|
4576
|
-
className: O(
|
|
4603
|
+
className: O(Tp({ variant: n }), e),
|
|
4577
4604
|
...r
|
|
4578
4605
|
}
|
|
4579
4606
|
);
|
|
4580
4607
|
});
|
|
4581
|
-
|
|
4582
|
-
const
|
|
4608
|
+
Pp.displayName = Vl.displayName;
|
|
4609
|
+
const jp = l.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
4583
4610
|
$l,
|
|
4584
4611
|
{
|
|
4585
4612
|
ref: t,
|
|
@@ -4590,10 +4617,10 @@ const Tp = l.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
|
4590
4617
|
...r
|
|
4591
4618
|
}
|
|
4592
4619
|
));
|
|
4593
|
-
|
|
4620
|
+
jp.displayName = $l.displayName;
|
|
4594
4621
|
var Ft = (e) => e.type === "checkbox", tt = (e) => e instanceof Date, Ee = (e) => e == null;
|
|
4595
4622
|
const Ll = (e) => typeof e == "object";
|
|
4596
|
-
var ye = (e) => !Ee(e) && !Array.isArray(e) && Ll(e) && !tt(e), Ul = (e) => ye(e) && e.target ? Ft(e.target) ? e.target.checked : e.target.value : e,
|
|
4623
|
+
var ye = (e) => !Ee(e) && !Array.isArray(e) && Ll(e) && !tt(e), Ul = (e) => ye(e) && e.target ? Ft(e.target) ? e.target.checked : e.target.value : e, Op = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, Bl = (e, r) => e.has(Op(r)), kp = (e) => {
|
|
4597
4624
|
const r = e.constructor && e.constructor.prototype;
|
|
4598
4625
|
return ye(r) && r.hasOwnProperty("isPrototypeOf");
|
|
4599
4626
|
}, Rn = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
@@ -4605,7 +4632,7 @@ function Ce(e) {
|
|
|
4605
4632
|
else if (e instanceof Set)
|
|
4606
4633
|
r = new Set(e);
|
|
4607
4634
|
else if (!(Rn && (e instanceof Blob || n)) && (t || ye(e)))
|
|
4608
|
-
if (r = t ? [] : {}, !t && !
|
|
4635
|
+
if (r = t ? [] : {}, !t && !kp(e))
|
|
4609
4636
|
r = e;
|
|
4610
4637
|
else
|
|
4611
4638
|
for (const a in e)
|
|
@@ -4652,7 +4679,7 @@ const Jt = {
|
|
|
4652
4679
|
pattern: "pattern",
|
|
4653
4680
|
required: "required",
|
|
4654
4681
|
validate: "validate"
|
|
4655
|
-
}, Kl = X.createContext(null), xr = () => X.useContext(Kl),
|
|
4682
|
+
}, Kl = X.createContext(null), xr = () => X.useContext(Kl), Fp = (e) => {
|
|
4656
4683
|
const { children: r, ...t } = e;
|
|
4657
4684
|
return X.createElement(Kl.Provider, { value: t }, r);
|
|
4658
4685
|
};
|
|
@@ -4670,7 +4697,7 @@ var Hl = (e, r, t, n = !0) => {
|
|
|
4670
4697
|
return a;
|
|
4671
4698
|
};
|
|
4672
4699
|
const Mn = typeof window < "u" ? l.useLayoutEffect : l.useEffect;
|
|
4673
|
-
function
|
|
4700
|
+
function Vp(e) {
|
|
4674
4701
|
const r = xr(), { control: t = r.control, disabled: n, name: a, exact: o } = e || {}, [s, i] = X.useState(t._formState), u = X.useRef({
|
|
4675
4702
|
isDirty: !1,
|
|
4676
4703
|
isLoading: !1,
|
|
@@ -4696,7 +4723,7 @@ function jp(e) {
|
|
|
4696
4723
|
}, [t]), X.useMemo(() => Hl(s, t, u.current, !1), [s, t]);
|
|
4697
4724
|
}
|
|
4698
4725
|
var $e = (e) => typeof e == "string", Wl = (e, r, t, n, a) => $e(e) ? (n && r.watch.add(e), j(t, e, a)) : Array.isArray(e) ? e.map((o) => (n && r.watch.add(o), j(t, o))) : (n && (r.watchAll = !0), t);
|
|
4699
|
-
function
|
|
4726
|
+
function $p(e) {
|
|
4700
4727
|
const r = xr(), { control: t = r.control, name: n, defaultValue: a, disabled: o, exact: s } = e || {}, i = X.useRef(a), [u, d] = X.useState(t._getWatch(n, i.current));
|
|
4701
4728
|
return Mn(() => t._subscribe({
|
|
4702
4729
|
name: n,
|
|
@@ -4707,13 +4734,13 @@ function Op(e) {
|
|
|
4707
4734
|
callback: (f) => !o && d(Wl(n, t._names, f.values || t._formValues, !1, i.current))
|
|
4708
4735
|
}), [n, t, o, s]), X.useEffect(() => t._removeUnmounted()), u;
|
|
4709
4736
|
}
|
|
4710
|
-
function
|
|
4711
|
-
const r = xr(), { name: t, disabled: n, control: a = r.control, shouldUnregister: o } = e, s = Bl(a._names.array, t), i =
|
|
4737
|
+
function Lp(e) {
|
|
4738
|
+
const r = xr(), { name: t, disabled: n, control: a = r.control, shouldUnregister: o } = e, s = Bl(a._names.array, t), i = $p({
|
|
4712
4739
|
control: a,
|
|
4713
4740
|
name: t,
|
|
4714
4741
|
defaultValue: j(a._formValues, t, j(a._defaultValues, t, e.defaultValue)),
|
|
4715
4742
|
exact: !0
|
|
4716
|
-
}), u =
|
|
4743
|
+
}), u = Vp({
|
|
4717
4744
|
control: a,
|
|
4718
4745
|
name: t,
|
|
4719
4746
|
exact: !0
|
|
@@ -4798,14 +4825,14 @@ function kp(e) {
|
|
|
4798
4825
|
fieldState: p
|
|
4799
4826
|
}), [v, u, p]);
|
|
4800
4827
|
}
|
|
4801
|
-
const
|
|
4802
|
-
var
|
|
4828
|
+
const Up = (e) => e.render(Lp(e));
|
|
4829
|
+
var Bp = (e, r, t, n, a) => r ? {
|
|
4803
4830
|
...t[e],
|
|
4804
4831
|
types: {
|
|
4805
4832
|
...t[e] && t[e].types ? t[e].types : {},
|
|
4806
4833
|
[n]: a || !0
|
|
4807
4834
|
}
|
|
4808
|
-
} : {},
|
|
4835
|
+
} : {}, Ct = (e) => Array.isArray(e) ? e : [e], ea = () => {
|
|
4809
4836
|
let e = [];
|
|
4810
4837
|
return {
|
|
4811
4838
|
get observers() {
|
|
@@ -4850,23 +4877,23 @@ var Ie = (e) => ye(e) && !Object.keys(e).length, Dn = (e) => e.type === "file",
|
|
|
4850
4877
|
return !1;
|
|
4851
4878
|
const r = e ? e.ownerDocument : 0;
|
|
4852
4879
|
return e instanceof (r && r.defaultView ? r.defaultView.HTMLElement : HTMLElement);
|
|
4853
|
-
}, zl = (e) => e.type === "select-multiple", Pn = (e) => e.type === "radio",
|
|
4854
|
-
function
|
|
4880
|
+
}, zl = (e) => e.type === "select-multiple", Pn = (e) => e.type === "radio", Gp = (e) => Pn(e) || Ft(e), Tr = (e) => Qt(e) && e.isConnected;
|
|
4881
|
+
function Kp(e, r) {
|
|
4855
4882
|
const t = r.slice(0, -1).length;
|
|
4856
4883
|
let n = 0;
|
|
4857
4884
|
for (; n < t; )
|
|
4858
4885
|
e = xe(e) ? n++ : e[r[n++]];
|
|
4859
4886
|
return e;
|
|
4860
4887
|
}
|
|
4861
|
-
function
|
|
4888
|
+
function Hp(e) {
|
|
4862
4889
|
for (const r in e)
|
|
4863
4890
|
if (e.hasOwnProperty(r) && !xe(e[r]))
|
|
4864
4891
|
return !1;
|
|
4865
4892
|
return !0;
|
|
4866
4893
|
}
|
|
4867
4894
|
function be(e, r) {
|
|
4868
|
-
const t = Array.isArray(r) ? r : Tn(r) ? [r] : Gl(r), n = t.length === 1 ? e :
|
|
4869
|
-
return n && delete n[o], a !== 0 && (ye(n) && Ie(n) || Array.isArray(n) &&
|
|
4895
|
+
const t = Array.isArray(r) ? r : Tn(r) ? [r] : Gl(r), n = t.length === 1 ? e : Kp(e, t), a = t.length - 1, o = t[a];
|
|
4896
|
+
return n && delete n[o], a !== 0 && (ye(n) && Ie(n) || Array.isArray(n) && Hp(n)) && be(e, t.slice(0, -1)), e;
|
|
4870
4897
|
}
|
|
4871
4898
|
var ql = (e) => {
|
|
4872
4899
|
for (const r in e)
|
|
@@ -4888,7 +4915,7 @@ function Yl(e, r, t) {
|
|
|
4888
4915
|
Array.isArray(e[a]) || ye(e[a]) && !ql(e[a]) ? xe(r) || zr(t[a]) ? t[a] = Array.isArray(e[a]) ? er(e[a], []) : { ...er(e[a]) } : Yl(e[a], Ee(r) ? {} : r[a], t[a]) : t[a] = !Ye(e[a], r[a]);
|
|
4889
4916
|
return t;
|
|
4890
4917
|
}
|
|
4891
|
-
var
|
|
4918
|
+
var xt = (e, r) => Yl(e, r, er(r));
|
|
4892
4919
|
const ta = {
|
|
4893
4920
|
value: !1,
|
|
4894
4921
|
isValid: !1
|
|
@@ -4918,7 +4945,7 @@ function aa(e) {
|
|
|
4918
4945
|
const r = e.ref;
|
|
4919
4946
|
return Dn(r) ? r.files : Pn(r) ? Jl(e.refs).value : zl(r) ? [...r.selectedOptions].map(({ value: t }) => t) : Ft(r) ? Xl(e.refs).value : Zl(xe(r.value) ? e.ref.value : r.value, e);
|
|
4920
4947
|
}
|
|
4921
|
-
var
|
|
4948
|
+
var Wp = (e, r, t, n) => {
|
|
4922
4949
|
const a = {};
|
|
4923
4950
|
for (const o of e) {
|
|
4924
4951
|
const s = j(r, o);
|
|
@@ -4930,7 +4957,7 @@ var Bp = (e, r, t, n) => {
|
|
|
4930
4957
|
fields: a,
|
|
4931
4958
|
shouldUseNativeValidation: n
|
|
4932
4959
|
};
|
|
4933
|
-
}, tr = (e) => e instanceof RegExp,
|
|
4960
|
+
}, tr = (e) => e instanceof RegExp, yt = (e) => xe(e) ? e : tr(e) ? e.source : ye(e) ? tr(e.value) ? e.value.source : e.value : e, oa = (e) => ({
|
|
4934
4961
|
isOnSubmit: !e || e === ke.onSubmit,
|
|
4935
4962
|
isOnBlur: e === ke.onBlur,
|
|
4936
4963
|
isOnChange: e === ke.onChange,
|
|
@@ -4938,8 +4965,8 @@ var Bp = (e, r, t, n) => {
|
|
|
4938
4965
|
isOnTouch: e === ke.onTouched
|
|
4939
4966
|
});
|
|
4940
4967
|
const sa = "AsyncFunction";
|
|
4941
|
-
var
|
|
4942
|
-
const
|
|
4968
|
+
var zp = (e) => !!e && !!e.validate && !!(Fe(e.validate) && e.validate.constructor.name === sa || ye(e.validate) && Object.values(e.validate).find((r) => r.constructor.name === sa)), qp = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), la = (e, r, t) => !t && (r.watchAll || r.watch.has(e) || [...r.watch].some((n) => e.startsWith(n) && /^\.\w+/.test(e.slice(n.length))));
|
|
4969
|
+
const Nt = (e, r, t, n) => {
|
|
4943
4970
|
for (const a of t || Object.keys(e)) {
|
|
4944
4971
|
const o = j(e, a);
|
|
4945
4972
|
if (o) {
|
|
@@ -4949,9 +4976,9 @@ const Ct = (e, r, t, n) => {
|
|
|
4949
4976
|
return !0;
|
|
4950
4977
|
if (s.ref && r(s.ref, s.name) && !n)
|
|
4951
4978
|
return !0;
|
|
4952
|
-
if (
|
|
4979
|
+
if (Nt(i, r))
|
|
4953
4980
|
break;
|
|
4954
|
-
} else if (ye(i) &&
|
|
4981
|
+
} else if (ye(i) && Nt(i, r))
|
|
4955
4982
|
break;
|
|
4956
4983
|
}
|
|
4957
4984
|
}
|
|
@@ -4979,12 +5006,12 @@ function ia(e, r, t) {
|
|
|
4979
5006
|
name: t
|
|
4980
5007
|
};
|
|
4981
5008
|
}
|
|
4982
|
-
var
|
|
5009
|
+
var Yp = (e, r, t, n) => {
|
|
4983
5010
|
t(e);
|
|
4984
5011
|
const { name: a, ...o } = e;
|
|
4985
5012
|
return Ie(o) || Object.keys(o).length >= Object.keys(r).length || Object.keys(o).find((s) => r[s] === (!n || ke.all));
|
|
4986
|
-
},
|
|
4987
|
-
const n =
|
|
5013
|
+
}, Xp = (e, r, t) => !e || !r || e === r || Ct(e).some((n) => n && (t ? n === r : n.startsWith(r) || r.startsWith(n))), Zp = (e, r, t, n, a) => a.isOnAll ? !1 : !t && a.isOnTouch ? !(r || e) : (t ? n.isOnBlur : a.isOnBlur) ? !e : (t ? n.isOnChange : a.isOnChange) ? e : !0, Jp = (e, r) => !hr(j(e, r)).length && be(e, r), Qp = (e, r, t) => {
|
|
5014
|
+
const n = Ct(j(e, t));
|
|
4988
5015
|
return ge(n, "root", r[t]), ge(e, t, n), e;
|
|
4989
5016
|
}, Kt = (e) => $e(e);
|
|
4990
5017
|
function ca(e, r, t = "validate") {
|
|
@@ -4995,7 +5022,7 @@ function ca(e, r, t = "validate") {
|
|
|
4995
5022
|
ref: r
|
|
4996
5023
|
};
|
|
4997
5024
|
}
|
|
4998
|
-
var
|
|
5025
|
+
var ut = (e) => ye(e) && !tr(e) ? e : {
|
|
4999
5026
|
value: e,
|
|
5000
5027
|
message: ""
|
|
5001
5028
|
}, ua = async (e, r, t, n, a, o) => {
|
|
@@ -5004,7 +5031,7 @@ var ct = (e) => ye(e) && !tr(e) ? e : {
|
|
|
5004
5031
|
return {};
|
|
5005
5032
|
const N = i ? i[0] : s, U = (F) => {
|
|
5006
5033
|
a && N.reportValidity && (N.setCustomValidity(De(F) ? "" : F || ""), N.reportValidity());
|
|
5007
|
-
}, G = {}, H = Pn(s), D = Ft(s), J = H || D, K = (b || Dn(s)) && xe(s.value) && xe(x) || Qt(s) && s.value === "" || x === "" || Array.isArray(x) && !x.length, Q =
|
|
5034
|
+
}, G = {}, H = Pn(s), D = Ft(s), J = H || D, K = (b || Dn(s)) && xe(s.value) && xe(x) || Qt(s) && s.value === "" || x === "" || Array.isArray(x) && !x.length, Q = Bp.bind(null, v, n, G), se = (F, Z, W, te = Be.maxLength, z = Be.minLength) => {
|
|
5008
5035
|
const ie = F ? Z : W;
|
|
5009
5036
|
G[v] = {
|
|
5010
5037
|
type: F ? te : z,
|
|
@@ -5014,7 +5041,7 @@ var ct = (e) => ye(e) && !tr(e) ? e : {
|
|
|
5014
5041
|
};
|
|
5015
5042
|
};
|
|
5016
5043
|
if (o ? !Array.isArray(x) || !x.length : u && (!J && (K || Ee(x)) || De(x) && !x || D && !Xl(i).isValid || H && !Jl(i).isValid)) {
|
|
5017
|
-
const { value: F, message: Z } = Kt(u) ? { value: !!u, message: u } :
|
|
5044
|
+
const { value: F, message: Z } = Kt(u) ? { value: !!u, message: u } : ut(u);
|
|
5018
5045
|
if (F && (G[v] = {
|
|
5019
5046
|
type: Be.required,
|
|
5020
5047
|
message: Z,
|
|
@@ -5025,7 +5052,7 @@ var ct = (e) => ye(e) && !tr(e) ? e : {
|
|
|
5025
5052
|
}
|
|
5026
5053
|
if (!K && (!Ee(p) || !Ee(g))) {
|
|
5027
5054
|
let F, Z;
|
|
5028
|
-
const W =
|
|
5055
|
+
const W = ut(g), te = ut(p);
|
|
5029
5056
|
if (!Ee(x) && !isNaN(x)) {
|
|
5030
5057
|
const z = s.valueAsNumber || x && +x;
|
|
5031
5058
|
Ee(W.value) || (F = z > W.value), Ee(te.value) || (Z = z < te.value);
|
|
@@ -5037,12 +5064,12 @@ var ct = (e) => ye(e) && !tr(e) ? e : {
|
|
|
5037
5064
|
return U(G[v].message), G;
|
|
5038
5065
|
}
|
|
5039
5066
|
if ((d || f) && !K && ($e(x) || o && Array.isArray(x))) {
|
|
5040
|
-
const F =
|
|
5067
|
+
const F = ut(d), Z = ut(f), W = !Ee(F.value) && x.length > +F.value, te = !Ee(Z.value) && x.length < +Z.value;
|
|
5041
5068
|
if ((W || te) && (se(W, F.message, Z.message), !n))
|
|
5042
5069
|
return U(G[v].message), G;
|
|
5043
5070
|
}
|
|
5044
5071
|
if (y && !K && $e(x)) {
|
|
5045
|
-
const { value: F, message: Z } =
|
|
5072
|
+
const { value: F, message: Z } = ut(y);
|
|
5046
5073
|
if (tr(F) && !x.match(F) && (G[v] = {
|
|
5047
5074
|
type: Be.pattern,
|
|
5048
5075
|
message: Z,
|
|
@@ -5079,14 +5106,14 @@ var ct = (e) => ye(e) && !tr(e) ? e : {
|
|
|
5079
5106
|
}
|
|
5080
5107
|
return U(!0), G;
|
|
5081
5108
|
};
|
|
5082
|
-
const
|
|
5109
|
+
const em = {
|
|
5083
5110
|
mode: ke.onSubmit,
|
|
5084
5111
|
reValidateMode: ke.onChange,
|
|
5085
5112
|
shouldFocusError: !0
|
|
5086
5113
|
};
|
|
5087
|
-
function
|
|
5114
|
+
function tm(e = {}) {
|
|
5088
5115
|
let r = {
|
|
5089
|
-
...
|
|
5116
|
+
...em,
|
|
5090
5117
|
...e
|
|
5091
5118
|
}, t = {
|
|
5092
5119
|
submitCount: 0,
|
|
@@ -5155,13 +5182,13 @@ function Zp(e = {}) {
|
|
|
5155
5182
|
}
|
|
5156
5183
|
if (I && Array.isArray(j(t.errors, m))) {
|
|
5157
5184
|
const L = w(j(t.errors, m), P.argA, P.argB);
|
|
5158
|
-
R && ge(t.errors, m, L),
|
|
5185
|
+
R && ge(t.errors, m, L), Jp(t.errors, m);
|
|
5159
5186
|
}
|
|
5160
5187
|
if ((f.touchedFields || p.touchedFields) && I && Array.isArray(j(t.touchedFields, m))) {
|
|
5161
5188
|
const L = w(j(t.touchedFields, m), P.argA, P.argB);
|
|
5162
5189
|
R && ge(t.touchedFields, m, L);
|
|
5163
5190
|
}
|
|
5164
|
-
(f.dirtyFields || p.dirtyFields) && (t.dirtyFields =
|
|
5191
|
+
(f.dirtyFields || p.dirtyFields) && (t.dirtyFields = xt(a, o)), g.state.next({
|
|
5165
5192
|
name: m,
|
|
5166
5193
|
isDirty: se(m, h),
|
|
5167
5194
|
dirtyFields: t.dirtyFields,
|
|
@@ -5219,7 +5246,7 @@ function Zp(e = {}) {
|
|
|
5219
5246
|
}
|
|
5220
5247
|
}, D = async (m) => {
|
|
5221
5248
|
b(m, !0);
|
|
5222
|
-
const h = await r.resolver(o, r.context,
|
|
5249
|
+
const h = await r.resolver(o, r.context, Wp(m || i.mount, n, r.criteriaMode, r.shouldUseNativeValidation));
|
|
5223
5250
|
return b(m), h;
|
|
5224
5251
|
}, J = async (m) => {
|
|
5225
5252
|
const { errors: h } = await D(m);
|
|
@@ -5239,12 +5266,12 @@ function Zp(e = {}) {
|
|
|
5239
5266
|
if (R) {
|
|
5240
5267
|
const { _f: I, ...L } = R;
|
|
5241
5268
|
if (I) {
|
|
5242
|
-
const ue = i.array.has(I.name), A = R._f &&
|
|
5269
|
+
const ue = i.array.has(I.name), A = R._f && zp(R._f);
|
|
5243
5270
|
A && f.validatingFields && b([P], !0);
|
|
5244
5271
|
const me = await ua(R, i.disabled, o, y, r.shouldUseNativeValidation && !h, ue);
|
|
5245
5272
|
if (A && f.validatingFields && b([P]), me[I.name] && (w.valid = !1, h))
|
|
5246
5273
|
break;
|
|
5247
|
-
!h && (j(me, I.name) ? ue ?
|
|
5274
|
+
!h && (j(me, I.name) ? ue ? Qp(t.errors, me, I.name) : ge(t.errors, I.name, me[I.name]) : be(t.errors, I.name));
|
|
5248
5275
|
}
|
|
5249
5276
|
!Ie(L) && await K(L, h, w);
|
|
5250
5277
|
}
|
|
@@ -5285,7 +5312,7 @@ function Zp(e = {}) {
|
|
|
5285
5312
|
values: Ce(o)
|
|
5286
5313
|
}), (f.isDirty || f.dirtyFields || p.isDirty || p.dirtyFields) && w.shouldDirty && g.state.next({
|
|
5287
5314
|
name: m,
|
|
5288
|
-
dirtyFields:
|
|
5315
|
+
dirtyFields: xt(a, o),
|
|
5289
5316
|
isDirty: se(m, I)
|
|
5290
5317
|
})) : P && !P._f && !Ee(I) ? te(m, I, w) : W(m, I, w), la(m, i) && g.state.next({ ...t }), g.state.next({
|
|
5291
5318
|
name: s.mount ? m : void 0,
|
|
@@ -5300,7 +5327,7 @@ function Zp(e = {}) {
|
|
|
5300
5327
|
}, L = oa(r.mode), ue = oa(r.reValidateMode);
|
|
5301
5328
|
if (R) {
|
|
5302
5329
|
let A, me;
|
|
5303
|
-
const Me = h.type ? aa(R._f) : Ul(m), Pe = m.type === Jt.BLUR || m.type === Jt.FOCUS_OUT, Vt = !
|
|
5330
|
+
const Me = h.type ? aa(R._f) : Ul(m), Pe = m.type === Jt.BLUR || m.type === Jt.FOCUS_OUT, Vt = !qp(R._f) && !r.resolver && !j(t.errors, w) && !R._f.deps || Zp(Pe, j(t.touchedFields, w), t.isSubmitted, ue, L), br = la(w, i, Pe);
|
|
5304
5331
|
ge(o, w, Me), Pe ? (R._f.onBlur && R._f.onBlur(m), u && u(0)) : R._f.onChange && R._f.onChange(m);
|
|
5305
5332
|
const wr = G(w, Me, Pe), Ii = !Ie(wr) || br;
|
|
5306
5333
|
if (!Pe && g.state.next({
|
|
@@ -5324,7 +5351,7 @@ function Zp(e = {}) {
|
|
|
5324
5351
|
return m.focus(), 1;
|
|
5325
5352
|
}, $ = async (m, h = {}) => {
|
|
5326
5353
|
let w, P;
|
|
5327
|
-
const R =
|
|
5354
|
+
const R = Ct(m);
|
|
5328
5355
|
if (r.resolver) {
|
|
5329
5356
|
const I = await J(xe(m) ? m : R);
|
|
5330
5357
|
w = Ie(I), P = m ? !R.some((L) => j(I, L)) : w;
|
|
@@ -5336,7 +5363,7 @@ function Zp(e = {}) {
|
|
|
5336
5363
|
...!$e(m) || (f.isValid || p.isValid) && w !== t.isValid ? {} : { name: m },
|
|
5337
5364
|
...r.resolver || !m ? { isValid: w } : {},
|
|
5338
5365
|
errors: t.errors
|
|
5339
|
-
}), h.shouldFocus && !P &&
|
|
5366
|
+
}), h.shouldFocus && !P && Nt(n, ce, m ? R : i.mount), P;
|
|
5340
5367
|
}, le = (m) => {
|
|
5341
5368
|
const h = {
|
|
5342
5369
|
...s.mount ? o : a
|
|
@@ -5349,7 +5376,7 @@ function Zp(e = {}) {
|
|
|
5349
5376
|
isValidating: !!j(t.validatingFields, m),
|
|
5350
5377
|
isTouched: !!j((h || t).touchedFields, m)
|
|
5351
5378
|
}), C = (m) => {
|
|
5352
|
-
m &&
|
|
5379
|
+
m && Ct(m).forEach((h) => be(t.errors, h)), g.state.next({
|
|
5353
5380
|
errors: m ? t.errors : {}
|
|
5354
5381
|
});
|
|
5355
5382
|
}, B = (m, h, w) => {
|
|
@@ -5367,7 +5394,7 @@ function Zp(e = {}) {
|
|
|
5367
5394
|
next: (w) => m(F(void 0, h), w)
|
|
5368
5395
|
}) : F(m, h, !0), k = (m) => g.state.subscribe({
|
|
5369
5396
|
next: (h) => {
|
|
5370
|
-
|
|
5397
|
+
Xp(m.name, h.name, m.exact) && Yp(h, m.formState || f, he, m.reRenderRoot) && m.callback({
|
|
5371
5398
|
values: { ...o },
|
|
5372
5399
|
...t,
|
|
5373
5400
|
...h
|
|
@@ -5380,7 +5407,7 @@ function Zp(e = {}) {
|
|
|
5380
5407
|
...m,
|
|
5381
5408
|
formState: p
|
|
5382
5409
|
})), E = (m, h = {}) => {
|
|
5383
|
-
for (const w of m ?
|
|
5410
|
+
for (const w of m ? Ct(m) : i.mount)
|
|
5384
5411
|
i.mount.delete(w), i.array.delete(w), h.keepValue || (be(n, w), be(o, w)), !h.keepError && be(t.errors, w), !h.keepDirty && be(t.dirtyFields, w), !h.keepTouched && be(t.touchedFields, w), !h.keepIsValidating && be(t.validatingFields, w), !r.shouldUnregister && !h.keepDefaultValue && be(a, w);
|
|
5385
5412
|
g.state.next({
|
|
5386
5413
|
values: Ce(o)
|
|
@@ -5408,11 +5435,11 @@ function Zp(e = {}) {
|
|
|
5408
5435
|
...P ? { disabled: h.disabled || r.disabled } : {},
|
|
5409
5436
|
...r.progressive ? {
|
|
5410
5437
|
required: !!h.required,
|
|
5411
|
-
min:
|
|
5412
|
-
max:
|
|
5413
|
-
minLength:
|
|
5414
|
-
maxLength:
|
|
5415
|
-
pattern:
|
|
5438
|
+
min: yt(h.min),
|
|
5439
|
+
max: yt(h.max),
|
|
5440
|
+
minLength: yt(h.minLength),
|
|
5441
|
+
maxLength: yt(h.maxLength),
|
|
5442
|
+
pattern: yt(h.pattern)
|
|
5416
5443
|
} : {},
|
|
5417
5444
|
name: m,
|
|
5418
5445
|
onChange: ie,
|
|
@@ -5420,7 +5447,7 @@ function Zp(e = {}) {
|
|
|
5420
5447
|
ref: (R) => {
|
|
5421
5448
|
if (R) {
|
|
5422
5449
|
oe(m, h), w = j(n, m);
|
|
5423
|
-
const I = xe(R.value) && R.querySelectorAll && R.querySelectorAll("input,select,textarea")[0] || R, L =
|
|
5450
|
+
const I = xe(R.value) && R.querySelectorAll && R.querySelectorAll("input,select,textarea")[0] || R, L = Gp(I), ue = w._f.refs || [];
|
|
5424
5451
|
if (L ? ue.find((A) => A === I) : I === w._f.ref)
|
|
5425
5452
|
return;
|
|
5426
5453
|
ge(n, m, {
|
|
@@ -5440,8 +5467,8 @@ function Zp(e = {}) {
|
|
|
5440
5467
|
w = j(n, m, {}), w._f && (w._f.mount = !1), (r.shouldUnregister || h.shouldUnregister) && !(Bl(i.array, m) && s.action) && i.unMount.add(m);
|
|
5441
5468
|
}
|
|
5442
5469
|
};
|
|
5443
|
-
}, ee = () => r.shouldFocusError &&
|
|
5444
|
-
De(m) && (g.state.next({ disabled: m }),
|
|
5470
|
+
}, ee = () => r.shouldFocusError && Nt(n, ce, i.mount), T = (m) => {
|
|
5471
|
+
De(m) && (g.state.next({ disabled: m }), Nt(n, (h, w) => {
|
|
5445
5472
|
const P = j(n, w);
|
|
5446
5473
|
P && (h.disabled = P._f.disabled || m, Array.isArray(P._f.refs) && P._f.refs.forEach((R) => {
|
|
5447
5474
|
R.disabled = P._f.disabled || m;
|
|
@@ -5488,7 +5515,7 @@ function Zp(e = {}) {
|
|
|
5488
5515
|
if (h.keepDirtyValues) {
|
|
5489
5516
|
const L = /* @__PURE__ */ new Set([
|
|
5490
5517
|
...i.mount,
|
|
5491
|
-
...Object.keys(
|
|
5518
|
+
...Object.keys(xt(a, o))
|
|
5492
5519
|
]);
|
|
5493
5520
|
for (const ue of Array.from(L))
|
|
5494
5521
|
j(t.dirtyFields, ue) ? ge(I, ue, j(o, ue)) : z(ue, j(I, ue));
|
|
@@ -5528,7 +5555,7 @@ function Zp(e = {}) {
|
|
|
5528
5555
|
submitCount: h.keepSubmitCount ? t.submitCount : 0,
|
|
5529
5556
|
isDirty: R ? !1 : h.keepDirty ? t.isDirty : !!(h.keepDefaultValues && !Ye(m, a)),
|
|
5530
5557
|
isSubmitted: h.keepIsSubmitted ? t.isSubmitted : !1,
|
|
5531
|
-
dirtyFields: R ? {} : h.keepDirtyValues ? h.keepDefaultValues && o ?
|
|
5558
|
+
dirtyFields: R ? {} : h.keepDirtyValues ? h.keepDefaultValues && o ? xt(a, o) : t.dirtyFields : h.keepDefaultValues && m ? xt(a, m) : h.keepDirty ? t.dirtyFields : {},
|
|
5532
5559
|
touchedFields: h.keepTouched ? t.touchedFields : {},
|
|
5533
5560
|
errors: h.keepErrors ? t.errors : {},
|
|
5534
5561
|
isSubmitSuccessful: h.keepIsSubmitSuccessful ? t.isSubmitSuccessful : !1,
|
|
@@ -5625,7 +5652,7 @@ function Zp(e = {}) {
|
|
|
5625
5652
|
formControl: Ue
|
|
5626
5653
|
};
|
|
5627
5654
|
}
|
|
5628
|
-
function
|
|
5655
|
+
function Eg(e = {}) {
|
|
5629
5656
|
const r = X.useRef(void 0), t = X.useRef(void 0), [n, a] = X.useState({
|
|
5630
5657
|
isDirty: !1,
|
|
5631
5658
|
isValidating: !1,
|
|
@@ -5644,7 +5671,7 @@ function Cg(e = {}) {
|
|
|
5644
5671
|
defaultValues: Fe(e.defaultValues) ? void 0 : e.defaultValues
|
|
5645
5672
|
});
|
|
5646
5673
|
r.current || (r.current = {
|
|
5647
|
-
...e.formControl ? e.formControl :
|
|
5674
|
+
...e.formControl ? e.formControl : tm(e),
|
|
5648
5675
|
formState: n
|
|
5649
5676
|
}, e.formControl && e.defaultValues && !Fe(e.defaultValues) && e.formControl.reset(e.defaultValues, e.resetOptions));
|
|
5650
5677
|
const o = r.current.control;
|
|
@@ -5677,9 +5704,9 @@ function Cg(e = {}) {
|
|
|
5677
5704
|
o._state.mount || (o._setValid(), o._state.mount = !0), o._state.watch && (o._state.watch = !1, o._subjects.state.next({ ...o._formState })), o._removeUnmounted();
|
|
5678
5705
|
}), r.current.formState = Hl(n, o), r.current;
|
|
5679
5706
|
}
|
|
5680
|
-
const
|
|
5707
|
+
const Ag = Fp, Ql = l.createContext({}), Rg = ({
|
|
5681
5708
|
...e
|
|
5682
|
-
}) => /* @__PURE__ */ c.jsx(Ql.Provider, { value: { name: e.name }, children: /* @__PURE__ */ c.jsx(
|
|
5709
|
+
}) => /* @__PURE__ */ c.jsx(Ql.Provider, { value: { name: e.name }, children: /* @__PURE__ */ c.jsx(Up, { ...e }) }), yr = () => {
|
|
5683
5710
|
const e = l.useContext(Ql), r = l.useContext(ei), { getFieldState: t, formState: n } = xr(), a = t(e.name, n);
|
|
5684
5711
|
if (!e)
|
|
5685
5712
|
throw new Error("useFormField should be used within <FormField>");
|
|
@@ -5692,14 +5719,14 @@ const Ng = Pp, Ql = l.createContext({}), _g = ({
|
|
|
5692
5719
|
formMessageId: `${o}-form-item-message`,
|
|
5693
5720
|
...a
|
|
5694
5721
|
};
|
|
5695
|
-
}, ei = l.createContext({}),
|
|
5722
|
+
}, ei = l.createContext({}), rm = l.forwardRef(
|
|
5696
5723
|
({ className: e, ...r }, t) => {
|
|
5697
5724
|
const n = l.useId();
|
|
5698
5725
|
return /* @__PURE__ */ c.jsx(ei.Provider, { value: { id: n }, children: /* @__PURE__ */ c.jsx("div", { ref: t, className: O("al-space-y-2", e), ...r }) });
|
|
5699
5726
|
}
|
|
5700
5727
|
);
|
|
5701
|
-
|
|
5702
|
-
const
|
|
5728
|
+
rm.displayName = "FormItem";
|
|
5729
|
+
const nm = l.forwardRef(({ className: e, ...r }, t) => {
|
|
5703
5730
|
const { error: n, formItemId: a } = yr();
|
|
5704
5731
|
return /* @__PURE__ */ c.jsx(
|
|
5705
5732
|
Ui,
|
|
@@ -5711,8 +5738,8 @@ const Qp = l.forwardRef(({ className: e, ...r }, t) => {
|
|
|
5711
5738
|
}
|
|
5712
5739
|
);
|
|
5713
5740
|
});
|
|
5714
|
-
|
|
5715
|
-
const
|
|
5741
|
+
nm.displayName = "FormLabel";
|
|
5742
|
+
const am = l.forwardRef(({ ...e }, r) => {
|
|
5716
5743
|
const { error: t, formItemId: n, formDescriptionId: a, formMessageId: o } = yr();
|
|
5717
5744
|
return /* @__PURE__ */ c.jsx(
|
|
5718
5745
|
Bi,
|
|
@@ -5725,8 +5752,8 @@ const em = l.forwardRef(({ ...e }, r) => {
|
|
|
5725
5752
|
}
|
|
5726
5753
|
);
|
|
5727
5754
|
});
|
|
5728
|
-
|
|
5729
|
-
const
|
|
5755
|
+
am.displayName = "FormControl";
|
|
5756
|
+
const om = l.forwardRef(({ className: e, ...r }, t) => {
|
|
5730
5757
|
const { formDescriptionId: n } = yr();
|
|
5731
5758
|
return /* @__PURE__ */ c.jsx(
|
|
5732
5759
|
"p",
|
|
@@ -5738,8 +5765,8 @@ const tm = l.forwardRef(({ className: e, ...r }, t) => {
|
|
|
5738
5765
|
}
|
|
5739
5766
|
);
|
|
5740
5767
|
});
|
|
5741
|
-
|
|
5742
|
-
const
|
|
5768
|
+
om.displayName = "FormDescription";
|
|
5769
|
+
const sm = l.forwardRef(({ className: e, children: r, ...t }, n) => {
|
|
5743
5770
|
const { error: a, formMessageId: o } = yr(), s = a ? String((a == null ? void 0 : a.message) ?? "") : r;
|
|
5744
5771
|
return s ? /* @__PURE__ */ c.jsx(
|
|
5745
5772
|
"p",
|
|
@@ -5752,8 +5779,8 @@ const rm = l.forwardRef(({ className: e, children: r, ...t }, n) => {
|
|
|
5752
5779
|
}
|
|
5753
5780
|
) : null;
|
|
5754
5781
|
});
|
|
5755
|
-
|
|
5756
|
-
var
|
|
5782
|
+
sm.displayName = "FormMessage";
|
|
5783
|
+
var lm = X, im = Gi;
|
|
5757
5784
|
function ti(e) {
|
|
5758
5785
|
if (e && e.__esModule) return e;
|
|
5759
5786
|
var r = /* @__PURE__ */ Object.create(null);
|
|
@@ -5769,9 +5796,9 @@ function ti(e) {
|
|
|
5769
5796
|
}
|
|
5770
5797
|
}), r.default = e, Object.freeze(r);
|
|
5771
5798
|
}
|
|
5772
|
-
var V = /* @__PURE__ */ ti(
|
|
5773
|
-
function
|
|
5774
|
-
const r = V.useContext(
|
|
5799
|
+
var V = /* @__PURE__ */ ti(lm), cm = /* @__PURE__ */ ti(im), ri = "data-dice-collection-item", um = V.createContext(void 0);
|
|
5800
|
+
function dm(e) {
|
|
5801
|
+
const r = V.useContext(um);
|
|
5775
5802
|
return e ?? r ?? "ltr";
|
|
5776
5803
|
}
|
|
5777
5804
|
typeof window < "u" ? V.useLayoutEffect : V.useEffect;
|
|
@@ -5787,17 +5814,17 @@ function jn(e) {
|
|
|
5787
5814
|
[]
|
|
5788
5815
|
);
|
|
5789
5816
|
}
|
|
5790
|
-
function
|
|
5817
|
+
function fm(e, r) {
|
|
5791
5818
|
const t = e.compareDocumentPosition(r);
|
|
5792
5819
|
return t & Node.DOCUMENT_POSITION_FOLLOWING || t & Node.DOCUMENT_POSITION_CONTAINED_BY ? -1 : t & Node.DOCUMENT_POSITION_PRECEDING || t & Node.DOCUMENT_POSITION_CONTAINS ? 1 : 0;
|
|
5793
5820
|
}
|
|
5794
|
-
function
|
|
5821
|
+
function pm({
|
|
5795
5822
|
prop: e,
|
|
5796
5823
|
defaultProp: r,
|
|
5797
5824
|
onChange: t = () => {
|
|
5798
5825
|
}
|
|
5799
5826
|
}) {
|
|
5800
|
-
const [n, a] =
|
|
5827
|
+
const [n, a] = mm({
|
|
5801
5828
|
defaultProp: r,
|
|
5802
5829
|
onChange: t
|
|
5803
5830
|
}), o = e !== void 0, s = o ? e : n, i = jn(t), u = V.useCallback(
|
|
@@ -5812,7 +5839,7 @@ function cm({
|
|
|
5812
5839
|
);
|
|
5813
5840
|
return [s, u];
|
|
5814
5841
|
}
|
|
5815
|
-
function
|
|
5842
|
+
function mm({
|
|
5816
5843
|
defaultProp: e,
|
|
5817
5844
|
onChange: r
|
|
5818
5845
|
}) {
|
|
@@ -5821,11 +5848,11 @@ function um({
|
|
|
5821
5848
|
a.current !== n && (o(n), a.current = n);
|
|
5822
5849
|
}, [n, o]), t;
|
|
5823
5850
|
}
|
|
5824
|
-
function
|
|
5851
|
+
function gm(e) {
|
|
5825
5852
|
const [r, t] = V.useState(null);
|
|
5826
5853
|
return { isFormControl: r ? e || !!r.closest("form") : !0, trigger: r, onTriggerChange: t };
|
|
5827
5854
|
}
|
|
5828
|
-
function
|
|
5855
|
+
function vm({
|
|
5829
5856
|
form: e,
|
|
5830
5857
|
defaultValue: r,
|
|
5831
5858
|
onReset: t
|
|
@@ -5839,18 +5866,18 @@ function fm({
|
|
|
5839
5866
|
return e.addEventListener("reset", a), () => e.removeEventListener("reset", a);
|
|
5840
5867
|
}, [e, r, n]);
|
|
5841
5868
|
}
|
|
5842
|
-
var
|
|
5869
|
+
var At = globalThis != null && globalThis.document ? V.useLayoutEffect : () => {
|
|
5843
5870
|
}, da = V[" useId ".trim().toString()] || (() => {
|
|
5844
|
-
}),
|
|
5845
|
-
function
|
|
5871
|
+
}), hm = 0;
|
|
5872
|
+
function xm(e) {
|
|
5846
5873
|
const [r, t] = V.useState(
|
|
5847
5874
|
typeof da == "function" ? da() : void 0
|
|
5848
5875
|
);
|
|
5849
|
-
return
|
|
5850
|
-
e || t((n) => n ?? String(
|
|
5876
|
+
return At(() => {
|
|
5877
|
+
e || t((n) => n ?? String(hm++));
|
|
5851
5878
|
}, [e]), e || (r ? `dice-${r}` : "");
|
|
5852
5879
|
}
|
|
5853
|
-
function
|
|
5880
|
+
function ym({
|
|
5854
5881
|
ref: e,
|
|
5855
5882
|
attr: r = ri
|
|
5856
5883
|
}) {
|
|
@@ -5860,25 +5887,25 @@ function gm({
|
|
|
5860
5887
|
const o = Array.from(
|
|
5861
5888
|
a.querySelectorAll(`[${r}]`)
|
|
5862
5889
|
);
|
|
5863
|
-
return o.length === 0 ? [] : o.sort(
|
|
5890
|
+
return o.length === 0 ? [] : o.sort(fm);
|
|
5864
5891
|
}, [e, r]), n = V.useCallback(() => t().filter(
|
|
5865
5892
|
(o) => o.getAttribute("aria-disabled") !== "true"
|
|
5866
5893
|
), [t]);
|
|
5867
5894
|
return { getItems: t, getEnabledItems: n };
|
|
5868
5895
|
}
|
|
5869
|
-
function
|
|
5896
|
+
function bm() {
|
|
5870
5897
|
const [e, r] = V.useState(!1);
|
|
5871
|
-
return
|
|
5898
|
+
return At(() => {
|
|
5872
5899
|
r(!0);
|
|
5873
5900
|
}, []), e;
|
|
5874
5901
|
}
|
|
5875
|
-
function
|
|
5902
|
+
function wm(e) {
|
|
5876
5903
|
const r = V.useRef({ value: e, previous: e });
|
|
5877
5904
|
return V.useMemo(() => (r.current.value !== e && (r.current.previous = r.current.value, r.current.value = e), r.current.previous), [e]);
|
|
5878
5905
|
}
|
|
5879
|
-
function
|
|
5906
|
+
function Sm(e) {
|
|
5880
5907
|
const [r, t] = V.useState(void 0);
|
|
5881
|
-
return
|
|
5908
|
+
return At(() => {
|
|
5882
5909
|
if (e) {
|
|
5883
5910
|
t({ width: e.offsetWidth, height: e.offsetHeight });
|
|
5884
5911
|
const n = new ResizeObserver((a) => {
|
|
@@ -5897,7 +5924,7 @@ function xm(e) {
|
|
|
5897
5924
|
t(void 0);
|
|
5898
5925
|
}, [e]), r;
|
|
5899
5926
|
}
|
|
5900
|
-
function
|
|
5927
|
+
function Cm(e) {
|
|
5901
5928
|
const [r, t] = V.useState(e.initial), n = V.useCallback(
|
|
5902
5929
|
(a) => {
|
|
5903
5930
|
t((o) => {
|
|
@@ -5909,7 +5936,7 @@ function ym(e) {
|
|
|
5909
5936
|
);
|
|
5910
5937
|
return [r, n];
|
|
5911
5938
|
}
|
|
5912
|
-
function
|
|
5939
|
+
function Nm(e, r, { checkForDefaultPrevented: t = !0 } = {}) {
|
|
5913
5940
|
return function(a) {
|
|
5914
5941
|
if (e == null || e(a), t === !1 || !a.defaultPrevented)
|
|
5915
5942
|
return r == null ? void 0 : r(a);
|
|
@@ -5939,7 +5966,7 @@ function rr(...e) {
|
|
|
5939
5966
|
function ni(...e) {
|
|
5940
5967
|
return V.useCallback(rr(...e), e);
|
|
5941
5968
|
}
|
|
5942
|
-
var
|
|
5969
|
+
var _m = {
|
|
5943
5970
|
border: 0,
|
|
5944
5971
|
clip: "rect(0 0 0 0)",
|
|
5945
5972
|
clipPath: "inset(50%)",
|
|
@@ -5951,7 +5978,7 @@ var wm = {
|
|
|
5951
5978
|
whiteSpace: "nowrap",
|
|
5952
5979
|
width: "1px"
|
|
5953
5980
|
};
|
|
5954
|
-
function
|
|
5981
|
+
function Im(e) {
|
|
5955
5982
|
var y;
|
|
5956
5983
|
const {
|
|
5957
5984
|
control: r,
|
|
@@ -5962,7 +5989,7 @@ function Sm(e) {
|
|
|
5962
5989
|
onReset: s,
|
|
5963
5990
|
style: i,
|
|
5964
5991
|
...u
|
|
5965
|
-
} = e, d = o === "checkbox" || o === "radio" || o === "switch", f = V.useRef(null), p =
|
|
5992
|
+
} = e, d = o === "checkbox" || o === "radio" || o === "switch", f = V.useRef(null), p = wm(o === "hidden" ? t : n), g = Sm(r);
|
|
5966
5993
|
return V.useEffect(() => {
|
|
5967
5994
|
const S = f.current;
|
|
5968
5995
|
if (!S) return;
|
|
@@ -5974,7 +6001,7 @@ function Sm(e) {
|
|
|
5974
6001
|
const G = new Event(_, { bubbles: a });
|
|
5975
6002
|
U.call(S, x), S.dispatchEvent(G);
|
|
5976
6003
|
}
|
|
5977
|
-
}, [p, t, n, a, d]),
|
|
6004
|
+
}, [p, t, n, a, d]), vm({
|
|
5978
6005
|
form: ((y = f.current) == null ? void 0 : y.form) ?? null,
|
|
5979
6006
|
defaultValue: d ? n : t,
|
|
5980
6007
|
onReset: (S) => {
|
|
@@ -5992,12 +6019,12 @@ function Sm(e) {
|
|
|
5992
6019
|
style: {
|
|
5993
6020
|
...e.style,
|
|
5994
6021
|
...g,
|
|
5995
|
-
...
|
|
6022
|
+
..._m
|
|
5996
6023
|
}
|
|
5997
6024
|
}
|
|
5998
6025
|
);
|
|
5999
6026
|
}
|
|
6000
|
-
function
|
|
6027
|
+
function Em(e, r) {
|
|
6001
6028
|
const t = V.createContext(r);
|
|
6002
6029
|
t.displayName = e;
|
|
6003
6030
|
function n(o) {
|
|
@@ -6028,10 +6055,10 @@ function ai(e) {
|
|
|
6028
6055
|
e.props.ref || e.ref
|
|
6029
6056
|
));
|
|
6030
6057
|
}
|
|
6031
|
-
var
|
|
6058
|
+
var Am = function(r) {
|
|
6032
6059
|
return V.isValidElement(r) && r.type === si;
|
|
6033
6060
|
};
|
|
6034
|
-
function
|
|
6061
|
+
function Rm(e, r) {
|
|
6035
6062
|
const t = { ...r };
|
|
6036
6063
|
for (const n in r) {
|
|
6037
6064
|
const a = e[n], o = r[n];
|
|
@@ -6049,7 +6076,7 @@ var qr = V.forwardRef(
|
|
|
6049
6076
|
const { children: t, ...n } = e;
|
|
6050
6077
|
if (!V.isValidElement(t))
|
|
6051
6078
|
return V.Children.count(t) > 1 ? V.Children.only(null) : null;
|
|
6052
|
-
const a = ai(t), o =
|
|
6079
|
+
const a = ai(t), o = Rm(
|
|
6053
6080
|
n,
|
|
6054
6081
|
t.props
|
|
6055
6082
|
);
|
|
@@ -6064,7 +6091,7 @@ var qr = V.forwardRef(
|
|
|
6064
6091
|
);
|
|
6065
6092
|
qr.displayName = "SlotClone";
|
|
6066
6093
|
var oi = V.forwardRef((e, r) => {
|
|
6067
|
-
const { children: t, ...n } = e, a = V.Children.toArray(t), o = a.find(
|
|
6094
|
+
const { children: t, ...n } = e, a = V.Children.toArray(t), o = a.find(Am);
|
|
6068
6095
|
if (!o)
|
|
6069
6096
|
return /* @__PURE__ */ V.createElement(qr, { ...n, ref: r }, t);
|
|
6070
6097
|
if (!V.isValidElement(o))
|
|
@@ -6077,7 +6104,7 @@ var si = V.memo(function({ children: r }) {
|
|
|
6077
6104
|
return /* @__PURE__ */ V.createElement(V.Fragment, null, r);
|
|
6078
6105
|
});
|
|
6079
6106
|
si.displayName = "Slottable";
|
|
6080
|
-
function
|
|
6107
|
+
function Tm(e) {
|
|
6081
6108
|
const r = V.forwardRef((t, n) => {
|
|
6082
6109
|
const { asChild: a, ...o } = t;
|
|
6083
6110
|
return a ? V.createElement(oi, {
|
|
@@ -6095,29 +6122,29 @@ var Mr = /* @__PURE__ */ new Map(), li = new Proxy(
|
|
|
6095
6122
|
{
|
|
6096
6123
|
get: (e, r) => {
|
|
6097
6124
|
const t = r;
|
|
6098
|
-
return Mr.has(t) || Mr.set(t,
|
|
6125
|
+
return Mr.has(t) || Mr.set(t, Tm(t)), Mr.get(t);
|
|
6099
6126
|
}
|
|
6100
6127
|
}
|
|
6101
|
-
),
|
|
6128
|
+
), Mm = V.forwardRef(
|
|
6102
6129
|
(e, r) => {
|
|
6103
6130
|
var s;
|
|
6104
|
-
const { container: t, ...n } = e, a =
|
|
6105
|
-
return o ?
|
|
6131
|
+
const { container: t, ...n } = e, a = bm(), o = t ?? (a ? (s = globalThis.document) == null ? void 0 : s.body : null);
|
|
6132
|
+
return o ? cm.createPortal(
|
|
6106
6133
|
/* @__PURE__ */ V.createElement(li.div, { ...n, ref: r }),
|
|
6107
6134
|
o
|
|
6108
6135
|
) : null;
|
|
6109
6136
|
}
|
|
6110
6137
|
);
|
|
6111
|
-
|
|
6138
|
+
Mm.displayName = "Portal";
|
|
6112
6139
|
var ii = (e) => {
|
|
6113
|
-
const { present: r, children: t } = e, n =
|
|
6140
|
+
const { present: r, children: t } = e, n = Dm(r), a = typeof t == "function" ? t({ present: n.isPresent }) : V.Children.only(t), o = ni(n.ref, ai(a));
|
|
6114
6141
|
return typeof t == "function" || n.isPresent ? V.cloneElement(a, { ref: o }) : null;
|
|
6115
6142
|
};
|
|
6116
6143
|
ii.displayName = "Presence";
|
|
6117
|
-
function
|
|
6144
|
+
function Dm(e) {
|
|
6118
6145
|
const [r, t] = V.useState(), n = V.useRef(
|
|
6119
6146
|
{}
|
|
6120
|
-
), a = V.useRef(e), o = V.useRef("none"), s = e ? "mounted" : "unmounted", [i, u] =
|
|
6147
|
+
), a = V.useRef(e), o = V.useRef("none"), s = e ? "mounted" : "unmounted", [i, u] = Cm({
|
|
6121
6148
|
initial: s,
|
|
6122
6149
|
states: {
|
|
6123
6150
|
mounted: {
|
|
@@ -6136,13 +6163,13 @@ function Am(e) {
|
|
|
6136
6163
|
return V.useEffect(() => {
|
|
6137
6164
|
const d = Lt(n.current);
|
|
6138
6165
|
o.current = i === "mounted" ? d : "none";
|
|
6139
|
-
}, [i]),
|
|
6166
|
+
}, [i]), At(() => {
|
|
6140
6167
|
const d = n.current, f = a.current;
|
|
6141
6168
|
if (f !== e) {
|
|
6142
6169
|
const g = o.current, y = Lt(d);
|
|
6143
6170
|
e ? u("MOUNT") : y === "none" || (d == null ? void 0 : d.display) === "none" ? u("UNMOUNT") : u(f && g !== y ? "ANIMATION_OUT" : "UNMOUNT"), a.current = e;
|
|
6144
6171
|
}
|
|
6145
|
-
}, [e, u]),
|
|
6172
|
+
}, [e, u]), At(() => {
|
|
6146
6173
|
if (r) {
|
|
6147
6174
|
let d = function(y) {
|
|
6148
6175
|
const v = Lt(n.current).includes(
|
|
@@ -6173,7 +6200,7 @@ function Am(e) {
|
|
|
6173
6200
|
function Lt(e) {
|
|
6174
6201
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
6175
6202
|
}
|
|
6176
|
-
var ci = ri,
|
|
6203
|
+
var ci = ri, Pm = ii, Qe = li, jm = Im, Ae = Nm, Om = rr, ui = Em, km = ni, Fm = pm, Vm = dm, $m = gm, Ht = xm, Lm = ym, di = "TagsInputRoot", [Um, it] = ui(di), fi = l.forwardRef((e, r) => {
|
|
6177
6204
|
const {
|
|
6178
6205
|
value: t,
|
|
6179
6206
|
defaultValue: n,
|
|
@@ -6196,15 +6223,15 @@ var ci = ri, Rm = ii, Qe = li, Tm = Sm, Ae = bm, Mm = rr, ui = Cm, Dm = ni, Pm =
|
|
|
6196
6223
|
dir: U,
|
|
6197
6224
|
id: G,
|
|
6198
6225
|
...H
|
|
6199
|
-
} = e, [D = [], J] =
|
|
6226
|
+
} = e, [D = [], J] = Fm({
|
|
6200
6227
|
prop: t,
|
|
6201
6228
|
defaultProp: n,
|
|
6202
6229
|
onChange: a
|
|
6203
6230
|
}), [K, Q] = l.useState(
|
|
6204
6231
|
null
|
|
6205
|
-
), [se, F] = l.useState(null), [Z, W] = l.useState(!1), te = l.useRef(null), z = l.useRef(null), ie = Ht(), ce = Ht(), $ = Ht(), le =
|
|
6232
|
+
), [se, F] = l.useState(null), [Z, W] = l.useState(!1), te = l.useRef(null), z = l.useRef(null), ie = Ht(), ce = Ht(), $ = Ht(), le = Vm(U), { getEnabledItems: pe } = Lm({
|
|
6206
6233
|
ref: te
|
|
6207
|
-
}), { isFormControl: C, onTriggerChange: B } =
|
|
6234
|
+
}), { isFormControl: C, onTriggerChange: B } = $m(), Y = km(
|
|
6208
6235
|
r,
|
|
6209
6236
|
te,
|
|
6210
6237
|
(T) => B(T)
|
|
@@ -6365,7 +6392,7 @@ var ci = ri, Rm = ii, Qe = li, Tm = Sm, Ae = bm, Mm = rr, ui = Cm, Dm = ni, Pm =
|
|
|
6365
6392
|
return ((M = te.current) == null ? void 0 : M.contains(T)) && !T.hasAttribute(ci) && T.tagName !== "INPUT";
|
|
6366
6393
|
}, []);
|
|
6367
6394
|
return /* @__PURE__ */ l.createElement(
|
|
6368
|
-
|
|
6395
|
+
Um,
|
|
6369
6396
|
{
|
|
6370
6397
|
value: D,
|
|
6371
6398
|
onValueChange: J,
|
|
@@ -6421,7 +6448,7 @@ var ci = ri, Rm = ii, Qe = li, Tm = Sm, Ae = bm, Mm = rr, ui = Cm, Dm = ni, Pm =
|
|
|
6421
6448
|
},
|
|
6422
6449
|
typeof N == "function" ? /* @__PURE__ */ l.createElement(l.Fragment, null, N({ value: D })) : N,
|
|
6423
6450
|
C && x && /* @__PURE__ */ l.createElement(
|
|
6424
|
-
|
|
6451
|
+
jm,
|
|
6425
6452
|
{
|
|
6426
6453
|
type: "hidden",
|
|
6427
6454
|
control: te.current,
|
|
@@ -6437,7 +6464,7 @@ var ci = ri, Rm = ii, Qe = li, Tm = Sm, Ae = bm, Mm = rr, ui = Cm, Dm = ni, Pm =
|
|
|
6437
6464
|
fi.displayName = di;
|
|
6438
6465
|
var pi = fi, mi = "TagsInputLabel", gi = l.forwardRef(
|
|
6439
6466
|
(e, r) => {
|
|
6440
|
-
const t =
|
|
6467
|
+
const t = it(mi);
|
|
6441
6468
|
return /* @__PURE__ */ l.createElement(
|
|
6442
6469
|
Qe.label,
|
|
6443
6470
|
{
|
|
@@ -6450,14 +6477,14 @@ var pi = fi, mi = "TagsInputLabel", gi = l.forwardRef(
|
|
|
6450
6477
|
}
|
|
6451
6478
|
);
|
|
6452
6479
|
gi.displayName = mi;
|
|
6453
|
-
var vi = gi, On = "TagsInputItem", [
|
|
6480
|
+
var vi = gi, On = "TagsInputItem", [Bm, kn] = ui(On), hi = l.forwardRef(
|
|
6454
6481
|
(e, r) => {
|
|
6455
|
-
const { value: t, disabled: n, ...a } = e, o = l.useRef("touch"), s =
|
|
6482
|
+
const { value: t, disabled: n, ...a } = e, o = l.useRef("touch"), s = it(On), i = Ht(), u = `${i}text`, d = s.value.indexOf(t), f = d === s.highlightedIndex, p = d === s.editingIndex, g = n || s.disabled, y = s.displayValue(t), S = l.useCallback(() => {
|
|
6456
6483
|
var v;
|
|
6457
6484
|
s.setHighlightedIndex(d), (v = s.inputRef.current) == null || v.focus();
|
|
6458
6485
|
}, [s.setHighlightedIndex, s.inputRef, d]);
|
|
6459
6486
|
return /* @__PURE__ */ l.createElement(
|
|
6460
|
-
|
|
6487
|
+
Bm,
|
|
6461
6488
|
{
|
|
6462
6489
|
id: i,
|
|
6463
6490
|
value: t,
|
|
@@ -6516,7 +6543,7 @@ var vi = gi, On = "TagsInputItem", [Vm, kn] = ui(On), hi = l.forwardRef(
|
|
|
6516
6543
|
hi.displayName = On;
|
|
6517
6544
|
var xi = hi, yi = "TagsInputInput", bi = l.forwardRef(
|
|
6518
6545
|
(e, r) => {
|
|
6519
|
-
const { autoFocus: t, ...n } = e, a =
|
|
6546
|
+
const { autoFocus: t, ...n } = e, a = it(yi), o = l.useCallback(
|
|
6520
6547
|
(i) => {
|
|
6521
6548
|
a.addOnTab && s(i);
|
|
6522
6549
|
},
|
|
@@ -6556,7 +6583,7 @@ var xi = hi, yi = "TagsInputInput", bi = l.forwardRef(
|
|
|
6556
6583
|
disabled: a.disabled,
|
|
6557
6584
|
readOnly: a.readOnly,
|
|
6558
6585
|
...n,
|
|
6559
|
-
ref:
|
|
6586
|
+
ref: Om(a.inputRef, r),
|
|
6560
6587
|
onBlur: Ae(n.onBlur, (i) => {
|
|
6561
6588
|
if (!a.readOnly) {
|
|
6562
6589
|
if (a.blurBehavior === "add") {
|
|
@@ -6591,7 +6618,7 @@ var xi = hi, yi = "TagsInputInput", bi = l.forwardRef(
|
|
|
6591
6618
|
);
|
|
6592
6619
|
bi.displayName = yi;
|
|
6593
6620
|
var wi = bi, Yr = "TagsInputItemDelete", Si = l.forwardRef((e, r) => {
|
|
6594
|
-
const t =
|
|
6621
|
+
const t = it(Yr), n = kn(Yr), a = n.disabled || t.disabled;
|
|
6595
6622
|
return n.isEditing ? null : /* @__PURE__ */ l.createElement(
|
|
6596
6623
|
Qe.button,
|
|
6597
6624
|
{
|
|
@@ -6613,13 +6640,13 @@ var wi = bi, Yr = "TagsInputItemDelete", Si = l.forwardRef((e, r) => {
|
|
|
6613
6640
|
);
|
|
6614
6641
|
});
|
|
6615
6642
|
Si.displayName = Yr;
|
|
6616
|
-
var
|
|
6617
|
-
const { children: t, ...n } = e, a =
|
|
6618
|
-
return o.isEditing && a.editable && !o.disabled ? /* @__PURE__ */ l.createElement(
|
|
6619
|
-
}),
|
|
6620
|
-
function
|
|
6643
|
+
var Gm = Si, nr = "TagsInputItemText", Km = l.forwardRef((e, r) => {
|
|
6644
|
+
const { children: t, ...n } = e, a = it(nr), o = kn(nr);
|
|
6645
|
+
return o.isEditing && a.editable && !o.disabled ? /* @__PURE__ */ l.createElement(Wm, null) : /* @__PURE__ */ l.createElement(Qe.span, { id: o.textId, ...n, ref: r }, t ?? o.displayValue);
|
|
6646
|
+
}), Hm = Km;
|
|
6647
|
+
function Wm() {
|
|
6621
6648
|
var u;
|
|
6622
|
-
const e =
|
|
6649
|
+
const e = it(nr), r = kn(nr), [t, n] = l.useState(r.displayValue), a = l.useCallback(() => {
|
|
6623
6650
|
n(r.displayValue), e.setEditingIndex(null);
|
|
6624
6651
|
}, [e.setEditingIndex, r.displayValue]), o = l.useCallback(
|
|
6625
6652
|
(d) => {
|
|
@@ -6682,8 +6709,8 @@ function Bm() {
|
|
|
6682
6709
|
}
|
|
6683
6710
|
var Ci = "TagsInputClear", Ni = l.forwardRef(
|
|
6684
6711
|
(e, r) => {
|
|
6685
|
-
const { forceMount: t, ...n } = e, a =
|
|
6686
|
-
return /* @__PURE__ */ l.createElement(
|
|
6712
|
+
const { forceMount: t, ...n } = e, a = it(Ci);
|
|
6713
|
+
return /* @__PURE__ */ l.createElement(Pm, { present: t || a.value.length > 0 }, /* @__PURE__ */ l.createElement(
|
|
6687
6714
|
Qe.button,
|
|
6688
6715
|
{
|
|
6689
6716
|
type: "button",
|
|
@@ -6702,7 +6729,7 @@ var Ci = "TagsInputClear", Ni = l.forwardRef(
|
|
|
6702
6729
|
);
|
|
6703
6730
|
Ni.displayName = Ci;
|
|
6704
6731
|
var _i = Ni;
|
|
6705
|
-
const
|
|
6732
|
+
const zm = l.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
6706
6733
|
pi,
|
|
6707
6734
|
{
|
|
6708
6735
|
"data-slot": "tags-input",
|
|
@@ -6711,8 +6738,8 @@ const Gm = l.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
|
6711
6738
|
...r
|
|
6712
6739
|
}
|
|
6713
6740
|
));
|
|
6714
|
-
|
|
6715
|
-
const
|
|
6741
|
+
zm.displayName = pi.displayName;
|
|
6742
|
+
const qm = l.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
6716
6743
|
vi,
|
|
6717
6744
|
{
|
|
6718
6745
|
"data-slot": "tags-input-label",
|
|
@@ -6724,8 +6751,8 @@ const Km = l.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
|
6724
6751
|
...r
|
|
6725
6752
|
}
|
|
6726
6753
|
));
|
|
6727
|
-
|
|
6728
|
-
const
|
|
6754
|
+
qm.displayName = vi.displayName;
|
|
6755
|
+
const Ym = l.forwardRef(
|
|
6729
6756
|
({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
6730
6757
|
"div",
|
|
6731
6758
|
{
|
|
@@ -6741,8 +6768,8 @@ const Hm = l.forwardRef(
|
|
|
6741
6768
|
}
|
|
6742
6769
|
)
|
|
6743
6770
|
);
|
|
6744
|
-
|
|
6745
|
-
const
|
|
6771
|
+
Ym.displayName = "TagsInputList";
|
|
6772
|
+
const Xm = l.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
6746
6773
|
wi,
|
|
6747
6774
|
{
|
|
6748
6775
|
"data-slot": "tags-input-input",
|
|
@@ -6758,8 +6785,8 @@ const Wm = l.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
|
|
|
6758
6785
|
...r
|
|
6759
6786
|
}
|
|
6760
6787
|
));
|
|
6761
|
-
|
|
6762
|
-
const
|
|
6788
|
+
Xm.displayName = wi.displayName;
|
|
6789
|
+
const Zm = l.forwardRef(({ className: e, children: r, ...t }, n) => /* @__PURE__ */ c.jsxs(
|
|
6763
6790
|
xi,
|
|
6764
6791
|
{
|
|
6765
6792
|
"data-slot": "tags-input-item",
|
|
@@ -6770,132 +6797,132 @@ const zm = l.forwardRef(({ className: e, children: r, ...t }, n) => /* @__PURE__
|
|
|
6770
6797
|
),
|
|
6771
6798
|
...t,
|
|
6772
6799
|
children: [
|
|
6773
|
-
/* @__PURE__ */ c.jsx(
|
|
6774
|
-
/* @__PURE__ */ c.jsx(
|
|
6800
|
+
/* @__PURE__ */ c.jsx(Hm, { className: "truncate", children: r }),
|
|
6801
|
+
/* @__PURE__ */ c.jsx(Gm, { className: "al-h-4 al-w-4 al-shrink-0 al-rounded-sm al-opacity-70 al-ring-offset-background al-transition-opacity hover:al-opacity-100", children: /* @__PURE__ */ c.jsx(an, { className: "al-h-3.5 al-w-3.5" }) })
|
|
6775
6802
|
]
|
|
6776
6803
|
}
|
|
6777
6804
|
));
|
|
6778
|
-
|
|
6779
|
-
const
|
|
6780
|
-
|
|
6805
|
+
Zm.displayName = xi.displayName;
|
|
6806
|
+
const Jm = l.forwardRef(({ ...e }, r) => /* @__PURE__ */ c.jsx(_i, { "data-slot": "tags-input-clear", ref: r, ...e }));
|
|
6807
|
+
Jm.displayName = _i.displayName;
|
|
6781
6808
|
export {
|
|
6782
|
-
|
|
6783
|
-
|
|
6784
|
-
|
|
6785
|
-
|
|
6809
|
+
dg as $,
|
|
6810
|
+
Gd as A,
|
|
6811
|
+
vg as B,
|
|
6812
|
+
qc as C,
|
|
6786
6813
|
Ta as D,
|
|
6787
|
-
|
|
6788
|
-
|
|
6789
|
-
|
|
6790
|
-
|
|
6791
|
-
|
|
6792
|
-
|
|
6793
|
-
|
|
6794
|
-
|
|
6814
|
+
dc as E,
|
|
6815
|
+
rm as F,
|
|
6816
|
+
Yc as G,
|
|
6817
|
+
fc as H,
|
|
6818
|
+
Zc as I,
|
|
6819
|
+
pc as J,
|
|
6820
|
+
mc as K,
|
|
6821
|
+
Xc as L,
|
|
6795
6822
|
Ki as M,
|
|
6796
|
-
|
|
6823
|
+
Zf as N,
|
|
6797
6824
|
Hi as O,
|
|
6798
|
-
|
|
6799
|
-
|
|
6800
|
-
|
|
6801
|
-
|
|
6802
|
-
|
|
6803
|
-
|
|
6804
|
-
|
|
6805
|
-
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
|
|
6809
|
-
|
|
6810
|
-
|
|
6825
|
+
zc as P,
|
|
6826
|
+
cg as Q,
|
|
6827
|
+
Qc as R,
|
|
6828
|
+
og as S,
|
|
6829
|
+
ug as T,
|
|
6830
|
+
Tu as U,
|
|
6831
|
+
Mu as V,
|
|
6832
|
+
Du as W,
|
|
6833
|
+
Pu as X,
|
|
6834
|
+
ju as Y,
|
|
6835
|
+
Ou as Z,
|
|
6836
|
+
ku as _,
|
|
6837
|
+
sm as a,
|
|
6811
6838
|
ge as a$,
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
|
|
6816
|
-
|
|
6839
|
+
fg as a0,
|
|
6840
|
+
pg as a1,
|
|
6841
|
+
Ru as a2,
|
|
6842
|
+
Au as a3,
|
|
6843
|
+
mg as a4,
|
|
6817
6844
|
hn as a5,
|
|
6818
|
-
|
|
6845
|
+
gg as a6,
|
|
6819
6846
|
Lo as a7,
|
|
6820
6847
|
Uo as a8,
|
|
6821
6848
|
Bo as a9,
|
|
6822
|
-
|
|
6849
|
+
zf as aA,
|
|
6823
6850
|
dl as aB,
|
|
6824
6851
|
ml as aC,
|
|
6825
|
-
|
|
6852
|
+
qf as aD,
|
|
6826
6853
|
gl as aE,
|
|
6827
|
-
|
|
6854
|
+
Yf as aF,
|
|
6828
6855
|
fl as aG,
|
|
6829
6856
|
pl as aH,
|
|
6830
|
-
|
|
6831
|
-
|
|
6832
|
-
|
|
6833
|
-
|
|
6834
|
-
|
|
6835
|
-
|
|
6857
|
+
_g as aI,
|
|
6858
|
+
Mp as aJ,
|
|
6859
|
+
Dp as aK,
|
|
6860
|
+
Pp as aL,
|
|
6861
|
+
jp as aM,
|
|
6862
|
+
Ap as aN,
|
|
6836
6863
|
yr as aO,
|
|
6837
|
-
|
|
6838
|
-
|
|
6839
|
-
|
|
6840
|
-
|
|
6841
|
-
|
|
6842
|
-
|
|
6843
|
-
|
|
6844
|
-
|
|
6845
|
-
|
|
6846
|
-
|
|
6847
|
-
|
|
6864
|
+
Ag as aP,
|
|
6865
|
+
nm as aQ,
|
|
6866
|
+
am as aR,
|
|
6867
|
+
om as aS,
|
|
6868
|
+
Rg as aT,
|
|
6869
|
+
zm as aU,
|
|
6870
|
+
qm as aV,
|
|
6871
|
+
Ym as aW,
|
|
6872
|
+
Xm as aX,
|
|
6873
|
+
Zm as aY,
|
|
6874
|
+
Jm as aZ,
|
|
6848
6875
|
j as a_,
|
|
6849
6876
|
Go as aa,
|
|
6850
6877
|
Ko as ab,
|
|
6851
|
-
|
|
6852
|
-
|
|
6853
|
-
|
|
6854
|
-
|
|
6855
|
-
|
|
6856
|
-
|
|
6857
|
-
|
|
6858
|
-
|
|
6859
|
-
|
|
6860
|
-
|
|
6861
|
-
|
|
6862
|
-
|
|
6863
|
-
|
|
6878
|
+
dd as ac,
|
|
6879
|
+
ud as ad,
|
|
6880
|
+
fd as ae,
|
|
6881
|
+
xg as af,
|
|
6882
|
+
Pd as ag,
|
|
6883
|
+
jd as ah,
|
|
6884
|
+
Od as ai,
|
|
6885
|
+
$d as aj,
|
|
6886
|
+
Ld as ak,
|
|
6887
|
+
Kd as al,
|
|
6888
|
+
Hd as am,
|
|
6889
|
+
wg as an,
|
|
6890
|
+
lf as ao,
|
|
6864
6891
|
Es as ap,
|
|
6865
|
-
|
|
6866
|
-
|
|
6867
|
-
|
|
6868
|
-
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
|
|
6872
|
-
|
|
6873
|
-
|
|
6874
|
-
|
|
6875
|
-
|
|
6876
|
-
|
|
6877
|
-
|
|
6892
|
+
Sg as aq,
|
|
6893
|
+
cf as ar,
|
|
6894
|
+
uf as as,
|
|
6895
|
+
df as at,
|
|
6896
|
+
ff as au,
|
|
6897
|
+
pf as av,
|
|
6898
|
+
mf as aw,
|
|
6899
|
+
gf as ax,
|
|
6900
|
+
Wf as ay,
|
|
6901
|
+
Ng as az,
|
|
6902
|
+
yg as b,
|
|
6903
|
+
Bp as b0,
|
|
6904
|
+
uc as c,
|
|
6878
6905
|
Jn as d,
|
|
6879
6906
|
Oa as e,
|
|
6880
|
-
|
|
6881
|
-
|
|
6882
|
-
|
|
6883
|
-
|
|
6884
|
-
|
|
6885
|
-
|
|
6886
|
-
|
|
6887
|
-
|
|
6888
|
-
|
|
6889
|
-
|
|
6907
|
+
Wc as f,
|
|
6908
|
+
Jc as g,
|
|
6909
|
+
eu as h,
|
|
6910
|
+
tu as i,
|
|
6911
|
+
ru as j,
|
|
6912
|
+
nu as k,
|
|
6913
|
+
ou as l,
|
|
6914
|
+
su as m,
|
|
6915
|
+
Hc as n,
|
|
6916
|
+
au as o,
|
|
6890
6917
|
Wi as p,
|
|
6891
6918
|
Gn as q,
|
|
6892
6919
|
Yi as r,
|
|
6893
|
-
|
|
6920
|
+
ng as s,
|
|
6894
6921
|
Xi as t,
|
|
6895
|
-
|
|
6896
|
-
|
|
6897
|
-
|
|
6922
|
+
Eg as u,
|
|
6923
|
+
ag as v,
|
|
6924
|
+
ic as w,
|
|
6898
6925
|
Da as x,
|
|
6899
|
-
|
|
6900
|
-
|
|
6926
|
+
sg as y,
|
|
6927
|
+
lg as z
|
|
6901
6928
|
};
|