lizaui 9.0.12 → 9.0.15

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.
Files changed (73) hide show
  1. package/dist/button/index.es.js +1 -1
  2. package/dist/calendar/index.es.js +1 -1
  3. package/dist/checkbox/index.es.js +1 -1
  4. package/dist/chunks/{button-CA3Y2GZ1.js → button-B0fpJrMg.js} +2 -2
  5. package/dist/chunks/{button-CA3Y2GZ1.js.map → button-B0fpJrMg.js.map} +1 -1
  6. package/dist/chunks/{checkbox-qzZKMLRN.js → checkbox-C1Sssumg.js} +2 -2
  7. package/dist/chunks/{checkbox-qzZKMLRN.js.map → checkbox-C1Sssumg.js.map} +1 -1
  8. package/dist/chunks/{floating-ui.dom-N5ROFCJy.js → floating-ui.dom-B9hvXzxg.js} +11 -1
  9. package/dist/chunks/{floating-ui.dom-N5ROFCJy.js.map → floating-ui.dom-B9hvXzxg.js.map} +1 -1
  10. package/dist/chunks/{floating-ui.dom-NqZWWqNg.js → floating-ui.dom-DRSBqyFN.js} +14 -4
  11. package/dist/chunks/{floating-ui.dom-NqZWWqNg.js.map → floating-ui.dom-DRSBqyFN.js.map} +1 -1
  12. package/dist/chunks/floating-ui.react-dom-BUZLdP4-.js +294 -0
  13. package/dist/chunks/floating-ui.react-dom-BUZLdP4-.js.map +1 -0
  14. package/dist/chunks/floating-ui.react-dom-CI1b2uK3.js +310 -0
  15. package/dist/chunks/floating-ui.react-dom-CI1b2uK3.js.map +1 -0
  16. package/dist/chunks/{index-DiC9dI6_.js → index-B4RTH1-D.js} +4 -4
  17. package/dist/chunks/{index-DiC9dI6_.js.map → index-B4RTH1-D.js.map} +1 -1
  18. package/dist/chunks/{scroll-area-BboZbU1u.js → scroll-area-B-5YmafW.js} +27 -27
  19. package/dist/chunks/{scroll-area-BboZbU1u.js.map → scroll-area-B-5YmafW.js.map} +1 -1
  20. package/dist/chunks/{scroll-area-DKkgpH-S.js → scroll-area-WNAy-5-i.js} +4 -4
  21. package/dist/chunks/{scroll-area-DKkgpH-S.js.map → scroll-area-WNAy-5-i.js.map} +1 -1
  22. package/dist/chunks/{select-MSYUKpRI.js → select-C9BYUpJm.js} +439 -83
  23. package/dist/chunks/select-C9BYUpJm.js.map +1 -0
  24. package/dist/chunks/{select-s-z596Y4.js → select-CLIZOVIj.js} +367 -11
  25. package/dist/chunks/select-CLIZOVIj.js.map +1 -0
  26. package/dist/chunks/{textarea-By2Vv44z.js → textarea-D2_KC-J4.js} +587 -36
  27. package/dist/chunks/textarea-D2_KC-J4.js.map +1 -0
  28. package/dist/chunks/{textarea-ClJsk9Gp.js → textarea-_HQpXiCX.js} +586 -35
  29. package/dist/chunks/textarea-_HQpXiCX.js.map +1 -0
  30. package/dist/chunks/tooltip-CjmRm1rv.js +1937 -0
  31. package/dist/chunks/tooltip-CjmRm1rv.js.map +1 -0
  32. package/dist/chunks/tooltip-o938-GAz.js +1921 -0
  33. package/dist/chunks/tooltip-o938-GAz.js.map +1 -0
  34. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  35. package/dist/divider/index.es.js +1 -1
  36. package/dist/modal/index.es.js +1 -1
  37. package/dist/pagination/index.cjs.js +2 -2
  38. package/dist/pagination/index.es.js +3 -3
  39. package/dist/phone-input/index.cjs.js +2 -2
  40. package/dist/phone-input/index.es.js +3 -3
  41. package/dist/select-input/index.cjs.js +1 -1
  42. package/dist/select-input/index.es.js +2 -2
  43. package/dist/table/index.cjs.js +1 -1
  44. package/dist/table/index.es.js +2 -2
  45. package/dist/time-input/index.cjs.js +1 -1
  46. package/dist/time-input/index.es.js +2 -2
  47. package/dist/tooltip/index.cjs.js +1 -1
  48. package/dist/tooltip/index.es.js +1 -1
  49. package/dist/ui/index.cjs.js +290 -292
  50. package/dist/ui/index.cjs.js.map +1 -1
  51. package/dist/ui/index.es.js +190 -192
  52. package/dist/ui/index.es.js.map +1 -1
  53. package/package.json +1 -2
  54. package/dist/chunks/index-CuySPbdY.js +0 -559
  55. package/dist/chunks/index-CuySPbdY.js.map +0 -1
  56. package/dist/chunks/index-DBDBh58Q.js +0 -575
  57. package/dist/chunks/index-DBDBh58Q.js.map +0 -1
  58. package/dist/chunks/index-DNSql2gU.js +0 -662
  59. package/dist/chunks/index-DNSql2gU.js.map +0 -1
  60. package/dist/chunks/index-DlZi5TkN.js +0 -646
  61. package/dist/chunks/index-DlZi5TkN.js.map +0 -1
  62. package/dist/chunks/select-MSYUKpRI.js.map +0 -1
  63. package/dist/chunks/select-s-z596Y4.js.map +0 -1
  64. package/dist/chunks/textarea-By2Vv44z.js.map +0 -1
  65. package/dist/chunks/textarea-ClJsk9Gp.js.map +0 -1
  66. package/dist/chunks/tooltip-BP--5Wj2.js +0 -525
  67. package/dist/chunks/tooltip-BP--5Wj2.js.map +0 -1
  68. package/dist/chunks/tooltip-KggPQa5m.js +0 -541
  69. package/dist/chunks/tooltip-KggPQa5m.js.map +0 -1
  70. package/dist/components/tooltip/tooltip-nice.d.ts +0 -11
  71. package/dist/components/tooltip/tooltip-nice.d.ts.map +0 -1
  72. package/dist/components/ui/tooltip.d.ts +0 -8
  73. package/dist/components/ui/tooltip.d.ts.map +0 -1
@@ -1,21 +1,19 @@
1
- import { h as hideOthers, u as useFocusGuards, R as ReactRemoveScroll, F as FocusScope, P as PanelGroup, a as Panel, b as PanelResizeHandle, c as Root$5, d as Portal$4, O as Overlay, C as Content$4, D as Dialog, e as DialogHeader, f as DialogTitle, g as DialogDescription, i as DialogContent, L as Lt, j as jt, T as Trigger$7, k as Close, l as Title, m as Description, n as createDialogScope, W as WarningProvider } from "../chunks/textarea-ClJsk9Gp.js";
2
- import { B, o, p, q, r, s, I, S, t } from "../chunks/textarea-ClJsk9Gp.js";
1
+ import { P as Primitive, c as createContextScope, f as useId, b as composeEventHandlers, e as useControllableState, u as useCallbackRef, a as Presence, g as Portal$3, h as hideOthers, j as dispatchDiscreteCustomEvent, i as useFocusGuards, R as ReactRemoveScroll, F as FocusScope, D as DismissableLayer, k as PanelGroup, l as Panel, m as PanelResizeHandle, d as useLayoutEffect2, n as Root$5, o as Portal$4, O as Overlay, C as Content$4, p as Dialog, q as DialogHeader, r as DialogTitle, s as DialogDescription, t as DialogContent, L as Lt, v as jt, T as Trigger$7, w as Close, x as Title, y as Description, z as createDialogScope, W as WarningProvider } from "../chunks/textarea-_HQpXiCX.js";
2
+ import { B, A, E, G, H, J, I, S, K } from "../chunks/textarea-_HQpXiCX.js";
3
3
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
4
4
  import * as React from "react";
5
5
  import React__default from "react";
6
- import { P as Primitive, c as createContextScope, u as useId, b as composeEventHandlers, a as useControllableState, f as useCallbackRef, d as Presence, e as Portal$3, i as dispatchDiscreteCustomEvent, D as DismissableLayer, g as useLayoutEffect2 } from "../chunks/index-CuySPbdY.js";
7
6
  import { c as cn } from "../chunks/utils-H80jjgLf.js";
8
7
  import { L } from "../chunks/label-error-BTCuInp7.js";
9
- import { u as useComposedRefs, b as composeRefs, a as createSlot, c as createSlottable } from "../chunks/index-DiC9dI6_.js";
10
- import { g as createCollection, u as usePrevious } from "../chunks/select-s-z596Y4.js";
11
- import { S as S2, c, d, f, e, h, i, j, a, b } from "../chunks/select-s-z596Y4.js";
8
+ import { u as useComposedRefs, a as composeRefs, c as createSlot, b as createSlottable } from "../chunks/index-B4RTH1-D.js";
9
+ import { g as createCollection, h as createPopperScope, R as Root2$8, A as Anchor, C as Content$3, i as Arrow, j as Root$6, u as usePrevious, k as useSize } from "../chunks/select-CLIZOVIj.js";
10
+ import { S as S2, c, d, f, e, l, m, n, a, b } from "../chunks/select-CLIZOVIj.js";
12
11
  import { u as useDirection, c as createLucideIcon, a as Check, C as ChevronDown } from "../chunks/index-BAHiLt0S.js";
13
- import { c as createPopperScope, R as Root2$8, A as Anchor, C as Content$3, a as Arrow, b as Root$6, u as useSize } from "../chunks/index-DlZi5TkN.js";
14
12
  import { c as cva } from "../chunks/index-CEKmKomA.js";
15
- import { S as Search } from "../chunks/scroll-area-DKkgpH-S.js";
16
- import { a as a2, b as b2 } from "../chunks/scroll-area-DKkgpH-S.js";
13
+ import { S as Search } from "../chunks/scroll-area-WNAy-5-i.js";
14
+ import { a as a2, b as b2 } from "../chunks/scroll-area-WNAy-5-i.js";
17
15
  import ReactDOM__default from "react-dom";
18
- import { B as Button, b as button } from "../chunks/button-CA3Y2GZ1.js";
16
+ import { B as Button, b as button } from "../chunks/button-B0fpJrMg.js";
19
17
  var NAME$1 = "Label";
20
18
  var Label$2 = React.forwardRef((props, forwardedRef) => {
21
19
  return /* @__PURE__ */ jsx(
@@ -1031,9 +1029,9 @@ function getNextMatch(values, search, currentMatch) {
1031
1029
  function isPointInPolygon(point, polygon) {
1032
1030
  const { x, y } = point;
1033
1031
  let inside = false;
1034
- for (let i2 = 0, j2 = polygon.length - 1; i2 < polygon.length; j2 = i2++) {
1035
- const ii = polygon[i2];
1036
- const jj = polygon[j2];
1032
+ for (let i = 0, j = polygon.length - 1; i < polygon.length; j = i++) {
1033
+ const ii = polygon[i];
1034
+ const jj = polygon[j];
1037
1035
  const xi = ii.x;
1038
1036
  const yi = ii.y;
1039
1037
  const xj = jj.x;
@@ -1068,7 +1066,7 @@ var Sub = MenuSub;
1068
1066
  var SubTrigger = MenuSubTrigger;
1069
1067
  var SubContent = MenuSubContent;
1070
1068
  var DROPDOWN_MENU_NAME = "DropdownMenu";
1071
- var [createDropdownMenuContext, createDropdownMenuScope] = createContextScope(
1069
+ var [createDropdownMenuContext] = createContextScope(
1072
1070
  DROPDOWN_MENU_NAME,
1073
1071
  [createMenuScope]
1074
1072
  );
@@ -1482,7 +1480,7 @@ function DropdownMenuSubContent({ className, ...props }) {
1482
1480
  );
1483
1481
  }
1484
1482
  var TABS_NAME = "Tabs";
1485
- var [createTabsContext, createTabsScope] = createContextScope(TABS_NAME, [
1483
+ var [createTabsContext] = createContextScope(TABS_NAME, [
1486
1484
  createRovingFocusGroupScope
1487
1485
  ]);
1488
1486
  var useRovingFocusGroupScope$2 = createRovingFocusGroupScope();
@@ -1852,7 +1850,7 @@ function subscribe() {
1852
1850
  };
1853
1851
  }
1854
1852
  var AVATAR_NAME = "Avatar";
1855
- var [createAvatarContext, createAvatarScope] = createContextScope(AVATAR_NAME);
1853
+ var [createAvatarContext] = createContextScope(AVATAR_NAME);
1856
1854
  var [AvatarProvider, useAvatarContext] = createAvatarContext(AVATAR_NAME);
1857
1855
  var Avatar$1 = React.forwardRef(
1858
1856
  (props, forwardedRef) => {
@@ -2019,7 +2017,7 @@ function AvatarFallback({ className, ...props }) {
2019
2017
  );
2020
2018
  }
2021
2019
  var POPOVER_NAME = "Popover";
2022
- var [createPopoverContext, createPopoverScope] = createContextScope(POPOVER_NAME, [
2020
+ var [createPopoverContext] = createContextScope(POPOVER_NAME, [
2023
2021
  createPopperScope
2024
2022
  ]);
2025
2023
  var usePopperScope$1 = createPopperScope();
@@ -2321,127 +2319,127 @@ function PopoverContent({ className, align = "center", sideOffset = 4, ...props
2321
2319
  function PopoverAnchor({ ...props }) {
2322
2320
  return /* @__PURE__ */ jsx(Anchor2, { "data-slot": "popover-anchor", ...props });
2323
2321
  }
2324
- var U = 1, Y$1 = 0.9, H = 0.8, J = 0.17, p2 = 0.1, u = 0.999, $ = 0.9999;
2325
- var k$1 = 0.99, m = /[\\\/_+.#"@\[\(\{&]/, B$1 = /[\\\/_+.#"@\[\(\{&]/g, K$1 = /[\s-]/, X = /[\s-]/g;
2326
- function G(_, C, h2, P2, A, f2, O) {
2327
- if (f2 === C.length) return A === _.length ? U : k$1;
2328
- var T2 = `${A},${f2}`;
2322
+ var U = 1, Y$1 = 0.9, H2 = 0.8, J2 = 0.17, p = 0.1, u = 0.999, $ = 0.9999;
2323
+ var k$1 = 0.99, m2 = /[\\\/_+.#"@\[\(\{&]/, B$1 = /[\\\/_+.#"@\[\(\{&]/g, K$1 = /[\s-]/, X = /[\s-]/g;
2324
+ function G2(_, C, h, P2, A2, f2, O) {
2325
+ if (f2 === C.length) return A2 === _.length ? U : k$1;
2326
+ var T2 = `${A2},${f2}`;
2329
2327
  if (O[T2] !== void 0) return O[T2];
2330
- for (var L3 = P2.charAt(f2), c2 = h2.indexOf(L3, A), S3 = 0, E, N2, R, M; c2 >= 0; ) E = G(_, C, h2, P2, c2 + 1, f2 + 1, O), E > S3 && (c2 === A ? E *= U : m.test(_.charAt(c2 - 1)) ? (E *= H, R = _.slice(A, c2 - 1).match(B$1), R && A > 0 && (E *= Math.pow(u, R.length))) : K$1.test(_.charAt(c2 - 1)) ? (E *= Y$1, M = _.slice(A, c2 - 1).match(X), M && A > 0 && (E *= Math.pow(u, M.length))) : (E *= J, A > 0 && (E *= Math.pow(u, c2 - A))), _.charAt(c2) !== C.charAt(f2) && (E *= $)), (E < p2 && h2.charAt(c2 - 1) === P2.charAt(f2 + 1) || P2.charAt(f2 + 1) === P2.charAt(f2) && h2.charAt(c2 - 1) !== P2.charAt(f2)) && (N2 = G(_, C, h2, P2, c2 + 1, f2 + 2, O), N2 * p2 > E && (E = N2 * p2)), E > S3 && (S3 = E), c2 = h2.indexOf(L3, c2 + 1);
2328
+ for (var L3 = P2.charAt(f2), c2 = h.indexOf(L3, A2), S3 = 0, E2, N2, R, M; c2 >= 0; ) E2 = G2(_, C, h, P2, c2 + 1, f2 + 1, O), E2 > S3 && (c2 === A2 ? E2 *= U : m2.test(_.charAt(c2 - 1)) ? (E2 *= H2, R = _.slice(A2, c2 - 1).match(B$1), R && A2 > 0 && (E2 *= Math.pow(u, R.length))) : K$1.test(_.charAt(c2 - 1)) ? (E2 *= Y$1, M = _.slice(A2, c2 - 1).match(X), M && A2 > 0 && (E2 *= Math.pow(u, M.length))) : (E2 *= J2, A2 > 0 && (E2 *= Math.pow(u, c2 - A2))), _.charAt(c2) !== C.charAt(f2) && (E2 *= $)), (E2 < p && h.charAt(c2 - 1) === P2.charAt(f2 + 1) || P2.charAt(f2 + 1) === P2.charAt(f2) && h.charAt(c2 - 1) !== P2.charAt(f2)) && (N2 = G2(_, C, h, P2, c2 + 1, f2 + 2, O), N2 * p > E2 && (E2 = N2 * p)), E2 > S3 && (S3 = E2), c2 = h.indexOf(L3, c2 + 1);
2331
2329
  return O[T2] = S3, S3;
2332
2330
  }
2333
2331
  function D(_) {
2334
2332
  return _.toLowerCase().replace(X, " ");
2335
2333
  }
2336
- function W(_, C, h2) {
2337
- return _ = h2 && h2.length > 0 ? `${_ + " " + h2.join(" ")}` : _, G(_, C, D(_), D(C), 0, 0, {});
2334
+ function W(_, C, h) {
2335
+ return _ = h && h.length > 0 ? `${_ + " " + h.join(" ")}` : _, G2(_, C, D(_), D(C), 0, 0, {});
2338
2336
  }
2339
- var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-heading=""]', le = '[cmdk-item=""]', ce = `${le}:not([aria-disabled="true"])`, Z = "cmdk-item-select", T = "data-value", Re = (r2, o2, n) => W(r2, o2, n), ue = React.createContext(void 0), K = () => React.useContext(ue), de = React.createContext(void 0), ee = () => React.useContext(de), fe = React.createContext(void 0), me = React.forwardRef((r2, o2) => {
2340
- let n = L2(() => {
2337
+ var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-heading=""]', le = '[cmdk-item=""]', ce = `${le}:not([aria-disabled="true"])`, Z = "cmdk-item-select", T = "data-value", Re = (r, o, n2) => W(r, o, n2), ue = React.createContext(void 0), K2 = () => React.useContext(ue), de = React.createContext(void 0), ee = () => React.useContext(de), fe = React.createContext(void 0), me = React.forwardRef((r, o) => {
2338
+ let n2 = L2(() => {
2341
2339
  var e2, a3;
2342
- return { search: "", value: (a3 = (e2 = r2.value) != null ? e2 : r2.defaultValue) != null ? a3 : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
2343
- }), u2 = L2(() => /* @__PURE__ */ new Set()), c2 = L2(() => /* @__PURE__ */ new Map()), d2 = L2(() => /* @__PURE__ */ new Map()), f2 = L2(() => /* @__PURE__ */ new Set()), p3 = pe(r2), { label: b3, children: m2, value: R, onValueChange: x, filter: C, shouldFilter: S3, loop: A, disablePointerSelection: ge = false, vimBindings: j2 = true, ...O } = r2, $2 = useId(), q2 = useId(), _ = useId(), I2 = React.useRef(null), v = ke();
2340
+ return { search: "", value: (a3 = (e2 = r.value) != null ? e2 : r.defaultValue) != null ? a3 : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
2341
+ }), u2 = L2(() => /* @__PURE__ */ new Set()), c2 = L2(() => /* @__PURE__ */ new Map()), d2 = L2(() => /* @__PURE__ */ new Map()), f2 = L2(() => /* @__PURE__ */ new Set()), p2 = pe(r), { label: b3, children: m3, value: R, onValueChange: x, filter: C, shouldFilter: S3, loop: A2, disablePointerSelection: ge = false, vimBindings: j = true, ...O } = r, $2 = useId(), q = useId(), _ = useId(), I2 = React.useRef(null), v = ke();
2344
2342
  k(() => {
2345
2343
  if (R !== void 0) {
2346
2344
  let e2 = R.trim();
2347
- n.current.value = e2, E.emit();
2345
+ n2.current.value = e2, E2.emit();
2348
2346
  }
2349
2347
  }, [R]), k(() => {
2350
2348
  v(6, ne);
2351
2349
  }, []);
2352
- let E = React.useMemo(() => ({ subscribe: (e2) => (f2.current.add(e2), () => f2.current.delete(e2)), snapshot: () => n.current, setState: (e2, a3, s2) => {
2353
- var i2, l, g, y;
2354
- if (!Object.is(n.current[e2], a3)) {
2355
- if (n.current[e2] = a3, e2 === "search") J2(), z(), v(1, W2);
2350
+ let E2 = React.useMemo(() => ({ subscribe: (e2) => (f2.current.add(e2), () => f2.current.delete(e2)), snapshot: () => n2.current, setState: (e2, a3, s) => {
2351
+ var i, l2, g, y;
2352
+ if (!Object.is(n2.current[e2], a3)) {
2353
+ if (n2.current[e2] = a3, e2 === "search") J3(), z(), v(1, W2);
2356
2354
  else if (e2 === "value") {
2357
2355
  if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
2358
- let h2 = document.getElementById(_);
2359
- h2 ? h2.focus() : (i2 = document.getElementById($2)) == null || i2.focus();
2356
+ let h = document.getElementById(_);
2357
+ h ? h.focus() : (i = document.getElementById($2)) == null || i.focus();
2360
2358
  }
2361
2359
  if (v(7, () => {
2362
- var h2;
2363
- n.current.selectedItemId = (h2 = M()) == null ? void 0 : h2.id, E.emit();
2364
- }), s2 || v(5, ne), ((l = p3.current) == null ? void 0 : l.value) !== void 0) {
2365
- let h2 = a3 != null ? a3 : "";
2366
- (y = (g = p3.current).onValueChange) == null || y.call(g, h2);
2360
+ var h;
2361
+ n2.current.selectedItemId = (h = M()) == null ? void 0 : h.id, E2.emit();
2362
+ }), s || v(5, ne), ((l2 = p2.current) == null ? void 0 : l2.value) !== void 0) {
2363
+ let h = a3 != null ? a3 : "";
2364
+ (y = (g = p2.current).onValueChange) == null || y.call(g, h);
2367
2365
  return;
2368
2366
  }
2369
2367
  }
2370
- E.emit();
2368
+ E2.emit();
2371
2369
  }
2372
2370
  }, emit: () => {
2373
2371
  f2.current.forEach((e2) => e2());
2374
- } }), []), U2 = React.useMemo(() => ({ value: (e2, a3, s2) => {
2375
- var i2;
2376
- a3 !== ((i2 = d2.current.get(e2)) == null ? void 0 : i2.value) && (d2.current.set(e2, { value: a3, keywords: s2 }), n.current.filtered.items.set(e2, te(a3, s2)), v(2, () => {
2377
- z(), E.emit();
2372
+ } }), []), U2 = React.useMemo(() => ({ value: (e2, a3, s) => {
2373
+ var i;
2374
+ a3 !== ((i = d2.current.get(e2)) == null ? void 0 : i.value) && (d2.current.set(e2, { value: a3, keywords: s }), n2.current.filtered.items.set(e2, te(a3, s)), v(2, () => {
2375
+ z(), E2.emit();
2378
2376
  }));
2379
2377
  }, item: (e2, a3) => (u2.current.add(e2), a3 && (c2.current.has(a3) ? c2.current.get(a3).add(e2) : c2.current.set(a3, /* @__PURE__ */ new Set([e2]))), v(3, () => {
2380
- J2(), z(), n.current.value || W2(), E.emit();
2378
+ J3(), z(), n2.current.value || W2(), E2.emit();
2381
2379
  }), () => {
2382
- d2.current.delete(e2), u2.current.delete(e2), n.current.filtered.items.delete(e2);
2383
- let s2 = M();
2380
+ d2.current.delete(e2), u2.current.delete(e2), n2.current.filtered.items.delete(e2);
2381
+ let s = M();
2384
2382
  v(4, () => {
2385
- J2(), (s2 == null ? void 0 : s2.getAttribute("id")) === e2 && W2(), E.emit();
2383
+ J3(), (s == null ? void 0 : s.getAttribute("id")) === e2 && W2(), E2.emit();
2386
2384
  });
2387
2385
  }), group: (e2) => (c2.current.has(e2) || c2.current.set(e2, /* @__PURE__ */ new Set()), () => {
2388
2386
  d2.current.delete(e2), c2.current.delete(e2);
2389
- }), filter: () => p3.current.shouldFilter, label: b3 || r2["aria-label"], getDisablePointerSelection: () => p3.current.disablePointerSelection, listId: $2, inputId: _, labelId: q2, listInnerRef: I2 }), []);
2387
+ }), filter: () => p2.current.shouldFilter, label: b3 || r["aria-label"], getDisablePointerSelection: () => p2.current.disablePointerSelection, listId: $2, inputId: _, labelId: q, listInnerRef: I2 }), []);
2390
2388
  function te(e2, a3) {
2391
- var i2, l;
2392
- let s2 = (l = (i2 = p3.current) == null ? void 0 : i2.filter) != null ? l : Re;
2393
- return e2 ? s2(e2, n.current.search, a3) : 0;
2389
+ var i, l2;
2390
+ let s = (l2 = (i = p2.current) == null ? void 0 : i.filter) != null ? l2 : Re;
2391
+ return e2 ? s(e2, n2.current.search, a3) : 0;
2394
2392
  }
2395
2393
  function z() {
2396
- if (!n.current.search || p3.current.shouldFilter === false) return;
2397
- let e2 = n.current.filtered.items, a3 = [];
2398
- n.current.filtered.groups.forEach((i2) => {
2399
- let l = c2.current.get(i2), g = 0;
2400
- l.forEach((y) => {
2401
- let h2 = e2.get(y);
2402
- g = Math.max(h2, g);
2403
- }), a3.push([i2, g]);
2394
+ if (!n2.current.search || p2.current.shouldFilter === false) return;
2395
+ let e2 = n2.current.filtered.items, a3 = [];
2396
+ n2.current.filtered.groups.forEach((i) => {
2397
+ let l2 = c2.current.get(i), g = 0;
2398
+ l2.forEach((y) => {
2399
+ let h = e2.get(y);
2400
+ g = Math.max(h, g);
2401
+ }), a3.push([i, g]);
2404
2402
  });
2405
- let s2 = I2.current;
2406
- V().sort((i2, l) => {
2407
- var h2, F;
2408
- let g = i2.getAttribute("id"), y = l.getAttribute("id");
2409
- return ((h2 = e2.get(y)) != null ? h2 : 0) - ((F = e2.get(g)) != null ? F : 0);
2410
- }).forEach((i2) => {
2411
- let l = i2.closest(Y);
2412
- l ? l.appendChild(i2.parentElement === l ? i2 : i2.closest(`${Y} > *`)) : s2.appendChild(i2.parentElement === s2 ? i2 : i2.closest(`${Y} > *`));
2413
- }), a3.sort((i2, l) => l[1] - i2[1]).forEach((i2) => {
2403
+ let s = I2.current;
2404
+ V().sort((i, l2) => {
2405
+ var h, F;
2406
+ let g = i.getAttribute("id"), y = l2.getAttribute("id");
2407
+ return ((h = e2.get(y)) != null ? h : 0) - ((F = e2.get(g)) != null ? F : 0);
2408
+ }).forEach((i) => {
2409
+ let l2 = i.closest(Y);
2410
+ l2 ? l2.appendChild(i.parentElement === l2 ? i : i.closest(`${Y} > *`)) : s.appendChild(i.parentElement === s ? i : i.closest(`${Y} > *`));
2411
+ }), a3.sort((i, l2) => l2[1] - i[1]).forEach((i) => {
2414
2412
  var g;
2415
- let l = (g = I2.current) == null ? void 0 : g.querySelector(`${N}[${T}="${encodeURIComponent(i2[0])}"]`);
2416
- l == null || l.parentElement.appendChild(l);
2413
+ let l2 = (g = I2.current) == null ? void 0 : g.querySelector(`${N}[${T}="${encodeURIComponent(i[0])}"]`);
2414
+ l2 == null || l2.parentElement.appendChild(l2);
2417
2415
  });
2418
2416
  }
2419
2417
  function W2() {
2420
- let e2 = V().find((s2) => s2.getAttribute("aria-disabled") !== "true"), a3 = e2 == null ? void 0 : e2.getAttribute(T);
2421
- E.setState("value", a3 || void 0);
2418
+ let e2 = V().find((s) => s.getAttribute("aria-disabled") !== "true"), a3 = e2 == null ? void 0 : e2.getAttribute(T);
2419
+ E2.setState("value", a3 || void 0);
2422
2420
  }
2423
- function J2() {
2424
- var a3, s2, i2, l;
2425
- if (!n.current.search || p3.current.shouldFilter === false) {
2426
- n.current.filtered.count = u2.current.size;
2421
+ function J3() {
2422
+ var a3, s, i, l2;
2423
+ if (!n2.current.search || p2.current.shouldFilter === false) {
2424
+ n2.current.filtered.count = u2.current.size;
2427
2425
  return;
2428
2426
  }
2429
- n.current.filtered.groups = /* @__PURE__ */ new Set();
2427
+ n2.current.filtered.groups = /* @__PURE__ */ new Set();
2430
2428
  let e2 = 0;
2431
2429
  for (let g of u2.current) {
2432
- let y = (s2 = (a3 = d2.current.get(g)) == null ? void 0 : a3.value) != null ? s2 : "", h2 = (l = (i2 = d2.current.get(g)) == null ? void 0 : i2.keywords) != null ? l : [], F = te(y, h2);
2433
- n.current.filtered.items.set(g, F), F > 0 && e2++;
2430
+ let y = (s = (a3 = d2.current.get(g)) == null ? void 0 : a3.value) != null ? s : "", h = (l2 = (i = d2.current.get(g)) == null ? void 0 : i.keywords) != null ? l2 : [], F = te(y, h);
2431
+ n2.current.filtered.items.set(g, F), F > 0 && e2++;
2434
2432
  }
2435
- for (let [g, y] of c2.current) for (let h2 of y) if (n.current.filtered.items.get(h2) > 0) {
2436
- n.current.filtered.groups.add(g);
2433
+ for (let [g, y] of c2.current) for (let h of y) if (n2.current.filtered.items.get(h) > 0) {
2434
+ n2.current.filtered.groups.add(g);
2437
2435
  break;
2438
2436
  }
2439
- n.current.filtered.count = e2;
2437
+ n2.current.filtered.count = e2;
2440
2438
  }
2441
2439
  function ne() {
2442
- var a3, s2, i2;
2440
+ var a3, s, i;
2443
2441
  let e2 = M();
2444
- e2 && (((a3 = e2.parentElement) == null ? void 0 : a3.firstChild) === e2 && ((i2 = (s2 = e2.closest(N)) == null ? void 0 : s2.querySelector(be)) == null || i2.scrollIntoView({ block: "nearest" })), e2.scrollIntoView({ block: "nearest" }));
2442
+ e2 && (((a3 = e2.parentElement) == null ? void 0 : a3.firstChild) === e2 && ((i = (s = e2.closest(N)) == null ? void 0 : s.querySelector(be)) == null || i.scrollIntoView({ block: "nearest" })), e2.scrollIntoView({ block: "nearest" }));
2445
2443
  }
2446
2444
  function M() {
2447
2445
  var e2;
@@ -2452,32 +2450,32 @@ var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-headin
2452
2450
  return Array.from(((e2 = I2.current) == null ? void 0 : e2.querySelectorAll(ce)) || []);
2453
2451
  }
2454
2452
  function X2(e2) {
2455
- let s2 = V()[e2];
2456
- s2 && E.setState("value", s2.getAttribute(T));
2453
+ let s = V()[e2];
2454
+ s && E2.setState("value", s.getAttribute(T));
2457
2455
  }
2458
2456
  function Q(e2) {
2459
2457
  var g;
2460
- let a3 = M(), s2 = V(), i2 = s2.findIndex((y) => y === a3), l = s2[i2 + e2];
2461
- (g = p3.current) != null && g.loop && (l = i2 + e2 < 0 ? s2[s2.length - 1] : i2 + e2 === s2.length ? s2[0] : s2[i2 + e2]), l && E.setState("value", l.getAttribute(T));
2458
+ let a3 = M(), s = V(), i = s.findIndex((y) => y === a3), l2 = s[i + e2];
2459
+ (g = p2.current) != null && g.loop && (l2 = i + e2 < 0 ? s[s.length - 1] : i + e2 === s.length ? s[0] : s[i + e2]), l2 && E2.setState("value", l2.getAttribute(T));
2462
2460
  }
2463
2461
  function re(e2) {
2464
- let a3 = M(), s2 = a3 == null ? void 0 : a3.closest(N), i2;
2465
- for (; s2 && !i2; ) s2 = e2 > 0 ? we(s2, N) : De(s2, N), i2 = s2 == null ? void 0 : s2.querySelector(ce);
2466
- i2 ? E.setState("value", i2.getAttribute(T)) : Q(e2);
2462
+ let a3 = M(), s = a3 == null ? void 0 : a3.closest(N), i;
2463
+ for (; s && !i; ) s = e2 > 0 ? we(s, N) : De(s, N), i = s == null ? void 0 : s.querySelector(ce);
2464
+ i ? E2.setState("value", i.getAttribute(T)) : Q(e2);
2467
2465
  }
2468
2466
  let oe = () => X2(V().length - 1), ie = (e2) => {
2469
2467
  e2.preventDefault(), e2.metaKey ? oe() : e2.altKey ? re(1) : Q(1);
2470
2468
  }, se = (e2) => {
2471
2469
  e2.preventDefault(), e2.metaKey ? X2(0) : e2.altKey ? re(-1) : Q(-1);
2472
2470
  };
2473
- return React.createElement(Primitive.div, { ref: o2, tabIndex: -1, ...O, "cmdk-root": "", onKeyDown: (e2) => {
2474
- var s2;
2475
- (s2 = O.onKeyDown) == null || s2.call(O, e2);
2471
+ return React.createElement(Primitive.div, { ref: o, tabIndex: -1, ...O, "cmdk-root": "", onKeyDown: (e2) => {
2472
+ var s;
2473
+ (s = O.onKeyDown) == null || s.call(O, e2);
2476
2474
  let a3 = e2.nativeEvent.isComposing || e2.keyCode === 229;
2477
2475
  if (!(e2.defaultPrevented || a3)) switch (e2.key) {
2478
2476
  case "n":
2479
2477
  case "j": {
2480
- j2 && e2.ctrlKey && ie(e2);
2478
+ j && e2.ctrlKey && ie(e2);
2481
2479
  break;
2482
2480
  }
2483
2481
  case "ArrowDown": {
@@ -2486,7 +2484,7 @@ var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-headin
2486
2484
  }
2487
2485
  case "p":
2488
2486
  case "k": {
2489
- j2 && e2.ctrlKey && se(e2);
2487
+ j && e2.ctrlKey && se(e2);
2490
2488
  break;
2491
2489
  }
2492
2490
  case "ArrowUp": {
@@ -2503,129 +2501,129 @@ var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-headin
2503
2501
  }
2504
2502
  case "Enter": {
2505
2503
  e2.preventDefault();
2506
- let i2 = M();
2507
- if (i2) {
2508
- let l = new Event(Z);
2509
- i2.dispatchEvent(l);
2504
+ let i = M();
2505
+ if (i) {
2506
+ let l2 = new Event(Z);
2507
+ i.dispatchEvent(l2);
2510
2508
  }
2511
2509
  }
2512
2510
  }
2513
- } }, React.createElement("label", { "cmdk-label": "", htmlFor: U2.inputId, id: U2.labelId, style: Te }, b3), B2(r2, (e2) => React.createElement(de.Provider, { value: E }, React.createElement(ue.Provider, { value: U2 }, e2))));
2514
- }), he = React.forwardRef((r2, o2) => {
2511
+ } }, React.createElement("label", { "cmdk-label": "", htmlFor: U2.inputId, id: U2.labelId, style: Te }, b3), B2(r, (e2) => React.createElement(de.Provider, { value: E2 }, React.createElement(ue.Provider, { value: U2 }, e2))));
2512
+ }), he = React.forwardRef((r, o) => {
2515
2513
  var _, I2;
2516
- let n = useId(), u2 = React.useRef(null), c2 = React.useContext(fe), d2 = K(), f2 = pe(r2), p3 = (I2 = (_ = f2.current) == null ? void 0 : _.forceMount) != null ? I2 : c2 == null ? void 0 : c2.forceMount;
2514
+ let n2 = useId(), u2 = React.useRef(null), c2 = React.useContext(fe), d2 = K2(), f2 = pe(r), p2 = (I2 = (_ = f2.current) == null ? void 0 : _.forceMount) != null ? I2 : c2 == null ? void 0 : c2.forceMount;
2517
2515
  k(() => {
2518
- if (!p3) return d2.item(n, c2 == null ? void 0 : c2.id);
2519
- }, [p3]);
2520
- let b3 = ve(n, u2, [r2.value, r2.children, u2], r2.keywords), m2 = ee(), R = P((v) => v.value && v.value === b3.current), x = P((v) => p3 || d2.filter() === false ? true : v.search ? v.filtered.items.get(n) > 0 : true);
2516
+ if (!p2) return d2.item(n2, c2 == null ? void 0 : c2.id);
2517
+ }, [p2]);
2518
+ let b3 = ve(n2, u2, [r.value, r.children, u2], r.keywords), m3 = ee(), R = P((v) => v.value && v.value === b3.current), x = P((v) => p2 || d2.filter() === false ? true : v.search ? v.filtered.items.get(n2) > 0 : true);
2521
2519
  React.useEffect(() => {
2522
2520
  let v = u2.current;
2523
- if (!(!v || r2.disabled)) return v.addEventListener(Z, C), () => v.removeEventListener(Z, C);
2524
- }, [x, r2.onSelect, r2.disabled]);
2521
+ if (!(!v || r.disabled)) return v.addEventListener(Z, C), () => v.removeEventListener(Z, C);
2522
+ }, [x, r.onSelect, r.disabled]);
2525
2523
  function C() {
2526
- var v, E;
2527
- S3(), (E = (v = f2.current).onSelect) == null || E.call(v, b3.current);
2524
+ var v, E2;
2525
+ S3(), (E2 = (v = f2.current).onSelect) == null || E2.call(v, b3.current);
2528
2526
  }
2529
2527
  function S3() {
2530
- m2.setState("value", b3.current, true);
2528
+ m3.setState("value", b3.current, true);
2531
2529
  }
2532
2530
  if (!x) return null;
2533
- let { disabled: A, value: ge, onSelect: j2, forceMount: O, keywords: $2, ...q2 } = r2;
2534
- return React.createElement(Primitive.div, { ref: composeRefs(u2, o2), ...q2, id: n, "cmdk-item": "", role: "option", "aria-disabled": !!A, "aria-selected": !!R, "data-disabled": !!A, "data-selected": !!R, onPointerMove: A || d2.getDisablePointerSelection() ? void 0 : S3, onClick: A ? void 0 : C }, r2.children);
2535
- }), Ee = React.forwardRef((r2, o2) => {
2536
- let { heading: n, children: u2, forceMount: c2, ...d2 } = r2, f2 = useId(), p3 = React.useRef(null), b3 = React.useRef(null), m2 = useId(), R = K(), x = P((S3) => c2 || R.filter() === false ? true : S3.search ? S3.filtered.groups.has(f2) : true);
2537
- k(() => R.group(f2), []), ve(f2, p3, [r2.value, r2.heading, b3]);
2531
+ let { disabled: A2, value: ge, onSelect: j, forceMount: O, keywords: $2, ...q } = r;
2532
+ return React.createElement(Primitive.div, { ref: composeRefs(u2, o), ...q, id: n2, "cmdk-item": "", role: "option", "aria-disabled": !!A2, "aria-selected": !!R, "data-disabled": !!A2, "data-selected": !!R, onPointerMove: A2 || d2.getDisablePointerSelection() ? void 0 : S3, onClick: A2 ? void 0 : C }, r.children);
2533
+ }), Ee = React.forwardRef((r, o) => {
2534
+ let { heading: n2, children: u2, forceMount: c2, ...d2 } = r, f2 = useId(), p2 = React.useRef(null), b3 = React.useRef(null), m3 = useId(), R = K2(), x = P((S3) => c2 || R.filter() === false ? true : S3.search ? S3.filtered.groups.has(f2) : true);
2535
+ k(() => R.group(f2), []), ve(f2, p2, [r.value, r.heading, b3]);
2538
2536
  let C = React.useMemo(() => ({ id: f2, forceMount: c2 }), [c2]);
2539
- return React.createElement(Primitive.div, { ref: composeRefs(p3, o2), ...d2, "cmdk-group": "", role: "presentation", hidden: x ? void 0 : true }, n && React.createElement("div", { ref: b3, "cmdk-group-heading": "", "aria-hidden": true, id: m2 }, n), B2(r2, (S3) => React.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": n ? m2 : void 0 }, React.createElement(fe.Provider, { value: C }, S3))));
2540
- }), ye = React.forwardRef((r2, o2) => {
2541
- let { alwaysRender: n, ...u2 } = r2, c2 = React.useRef(null), d2 = P((f2) => !f2.search);
2542
- return !n && !d2 ? null : React.createElement(Primitive.div, { ref: composeRefs(c2, o2), ...u2, "cmdk-separator": "", role: "separator" });
2543
- }), Se = React.forwardRef((r2, o2) => {
2544
- let { onValueChange: n, ...u2 } = r2, c2 = r2.value != null, d2 = ee(), f2 = P((m2) => m2.search), p3 = P((m2) => m2.selectedItemId), b3 = K();
2537
+ return React.createElement(Primitive.div, { ref: composeRefs(p2, o), ...d2, "cmdk-group": "", role: "presentation", hidden: x ? void 0 : true }, n2 && React.createElement("div", { ref: b3, "cmdk-group-heading": "", "aria-hidden": true, id: m3 }, n2), B2(r, (S3) => React.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": n2 ? m3 : void 0 }, React.createElement(fe.Provider, { value: C }, S3))));
2538
+ }), ye = React.forwardRef((r, o) => {
2539
+ let { alwaysRender: n2, ...u2 } = r, c2 = React.useRef(null), d2 = P((f2) => !f2.search);
2540
+ return !n2 && !d2 ? null : React.createElement(Primitive.div, { ref: composeRefs(c2, o), ...u2, "cmdk-separator": "", role: "separator" });
2541
+ }), Se = React.forwardRef((r, o) => {
2542
+ let { onValueChange: n2, ...u2 } = r, c2 = r.value != null, d2 = ee(), f2 = P((m3) => m3.search), p2 = P((m3) => m3.selectedItemId), b3 = K2();
2545
2543
  return React.useEffect(() => {
2546
- r2.value != null && d2.setState("search", r2.value);
2547
- }, [r2.value]), React.createElement(Primitive.input, { ref: o2, ...u2, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: false, "aria-autocomplete": "list", role: "combobox", "aria-expanded": true, "aria-controls": b3.listId, "aria-labelledby": b3.labelId, "aria-activedescendant": p3, id: b3.inputId, type: "text", value: c2 ? r2.value : f2, onChange: (m2) => {
2548
- c2 || d2.setState("search", m2.target.value), n == null || n(m2.target.value);
2544
+ r.value != null && d2.setState("search", r.value);
2545
+ }, [r.value]), React.createElement(Primitive.input, { ref: o, ...u2, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: false, "aria-autocomplete": "list", role: "combobox", "aria-expanded": true, "aria-controls": b3.listId, "aria-labelledby": b3.labelId, "aria-activedescendant": p2, id: b3.inputId, type: "text", value: c2 ? r.value : f2, onChange: (m3) => {
2546
+ c2 || d2.setState("search", m3.target.value), n2 == null || n2(m3.target.value);
2549
2547
  } });
2550
- }), Ce = React.forwardRef((r2, o2) => {
2551
- let { children: n, label: u2 = "Suggestions", ...c2 } = r2, d2 = React.useRef(null), f2 = React.useRef(null), p3 = P((m2) => m2.selectedItemId), b3 = K();
2548
+ }), Ce = React.forwardRef((r, o) => {
2549
+ let { children: n2, label: u2 = "Suggestions", ...c2 } = r, d2 = React.useRef(null), f2 = React.useRef(null), p2 = P((m3) => m3.selectedItemId), b3 = K2();
2552
2550
  return React.useEffect(() => {
2553
2551
  if (f2.current && d2.current) {
2554
- let m2 = f2.current, R = d2.current, x, C = new ResizeObserver(() => {
2552
+ let m3 = f2.current, R = d2.current, x, C = new ResizeObserver(() => {
2555
2553
  x = requestAnimationFrame(() => {
2556
- let S3 = m2.offsetHeight;
2554
+ let S3 = m3.offsetHeight;
2557
2555
  R.style.setProperty("--cmdk-list-height", S3.toFixed(1) + "px");
2558
2556
  });
2559
2557
  });
2560
- return C.observe(m2), () => {
2561
- cancelAnimationFrame(x), C.unobserve(m2);
2558
+ return C.observe(m3), () => {
2559
+ cancelAnimationFrame(x), C.unobserve(m3);
2562
2560
  };
2563
2561
  }
2564
- }, []), React.createElement(Primitive.div, { ref: composeRefs(d2, o2), ...c2, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": p3, "aria-label": u2, id: b3.listId }, B2(r2, (m2) => React.createElement("div", { ref: composeRefs(f2, b3.listInnerRef), "cmdk-list-sizer": "" }, m2)));
2565
- }), xe = React.forwardRef((r2, o2) => {
2566
- let { open: n, onOpenChange: u2, overlayClassName: c2, contentClassName: d2, container: f2, ...p3 } = r2;
2567
- return React.createElement(Root$5, { open: n, onOpenChange: u2 }, React.createElement(Portal$4, { container: f2 }, React.createElement(Overlay, { "cmdk-overlay": "", className: c2 }), React.createElement(Content$4, { "aria-label": r2.label, "cmdk-dialog": "", className: d2 }, React.createElement(me, { ref: o2, ...p3 }))));
2568
- }), Ie = React.forwardRef((r2, o2) => P((u2) => u2.filtered.count === 0) ? React.createElement(Primitive.div, { ref: o2, ...r2, "cmdk-empty": "", role: "presentation" }) : null), Pe = React.forwardRef((r2, o2) => {
2569
- let { progress: n, children: u2, label: c2 = "Loading...", ...d2 } = r2;
2570
- return React.createElement(Primitive.div, { ref: o2, ...d2, "cmdk-loading": "", role: "progressbar", "aria-valuenow": n, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": c2 }, B2(r2, (f2) => React.createElement("div", { "aria-hidden": true }, f2)));
2562
+ }, []), React.createElement(Primitive.div, { ref: composeRefs(d2, o), ...c2, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": p2, "aria-label": u2, id: b3.listId }, B2(r, (m3) => React.createElement("div", { ref: composeRefs(f2, b3.listInnerRef), "cmdk-list-sizer": "" }, m3)));
2563
+ }), xe = React.forwardRef((r, o) => {
2564
+ let { open: n2, onOpenChange: u2, overlayClassName: c2, contentClassName: d2, container: f2, ...p2 } = r;
2565
+ return React.createElement(Root$5, { open: n2, onOpenChange: u2 }, React.createElement(Portal$4, { container: f2 }, React.createElement(Overlay, { "cmdk-overlay": "", className: c2 }), React.createElement(Content$4, { "aria-label": r.label, "cmdk-dialog": "", className: d2 }, React.createElement(me, { ref: o, ...p2 }))));
2566
+ }), Ie = React.forwardRef((r, o) => P((u2) => u2.filtered.count === 0) ? React.createElement(Primitive.div, { ref: o, ...r, "cmdk-empty": "", role: "presentation" }) : null), Pe = React.forwardRef((r, o) => {
2567
+ let { progress: n2, children: u2, label: c2 = "Loading...", ...d2 } = r;
2568
+ return React.createElement(Primitive.div, { ref: o, ...d2, "cmdk-loading": "", role: "progressbar", "aria-valuenow": n2, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": c2 }, B2(r, (f2) => React.createElement("div", { "aria-hidden": true }, f2)));
2571
2569
  }), _e = Object.assign(me, { List: Ce, Item: he, Input: Se, Group: Ee, Separator: ye, Dialog: xe, Empty: Ie, Loading: Pe });
2572
- function we(r2, o2) {
2573
- let n = r2.nextElementSibling;
2574
- for (; n; ) {
2575
- if (n.matches(o2)) return n;
2576
- n = n.nextElementSibling;
2570
+ function we(r, o) {
2571
+ let n2 = r.nextElementSibling;
2572
+ for (; n2; ) {
2573
+ if (n2.matches(o)) return n2;
2574
+ n2 = n2.nextElementSibling;
2577
2575
  }
2578
2576
  }
2579
- function De(r2, o2) {
2580
- let n = r2.previousElementSibling;
2581
- for (; n; ) {
2582
- if (n.matches(o2)) return n;
2583
- n = n.previousElementSibling;
2577
+ function De(r, o) {
2578
+ let n2 = r.previousElementSibling;
2579
+ for (; n2; ) {
2580
+ if (n2.matches(o)) return n2;
2581
+ n2 = n2.previousElementSibling;
2584
2582
  }
2585
2583
  }
2586
- function pe(r2) {
2587
- let o2 = React.useRef(r2);
2584
+ function pe(r) {
2585
+ let o = React.useRef(r);
2588
2586
  return k(() => {
2589
- o2.current = r2;
2590
- }), o2;
2587
+ o.current = r;
2588
+ }), o;
2591
2589
  }
2592
2590
  var k = typeof window == "undefined" ? React.useEffect : React.useLayoutEffect;
2593
- function L2(r2) {
2594
- let o2 = React.useRef();
2595
- return o2.current === void 0 && (o2.current = r2()), o2;
2591
+ function L2(r) {
2592
+ let o = React.useRef();
2593
+ return o.current === void 0 && (o.current = r()), o;
2596
2594
  }
2597
- function P(r2) {
2598
- let o2 = ee(), n = () => r2(o2.snapshot());
2599
- return React.useSyncExternalStore(o2.subscribe, n, n);
2595
+ function P(r) {
2596
+ let o = ee(), n2 = () => r(o.snapshot());
2597
+ return React.useSyncExternalStore(o.subscribe, n2, n2);
2600
2598
  }
2601
- function ve(r2, o2, n, u2 = []) {
2602
- let c2 = React.useRef(), d2 = K();
2599
+ function ve(r, o, n2, u2 = []) {
2600
+ let c2 = React.useRef(), d2 = K2();
2603
2601
  return k(() => {
2604
2602
  var b3;
2605
2603
  let f2 = (() => {
2606
- var m2;
2607
- for (let R of n) {
2604
+ var m3;
2605
+ for (let R of n2) {
2608
2606
  if (typeof R == "string") return R.trim();
2609
- if (typeof R == "object" && "current" in R) return R.current ? (m2 = R.current.textContent) == null ? void 0 : m2.trim() : c2.current;
2607
+ if (typeof R == "object" && "current" in R) return R.current ? (m3 = R.current.textContent) == null ? void 0 : m3.trim() : c2.current;
2610
2608
  }
2611
- })(), p3 = u2.map((m2) => m2.trim());
2612
- d2.value(r2, f2, p3), (b3 = o2.current) == null || b3.setAttribute(T, f2), c2.current = f2;
2609
+ })(), p2 = u2.map((m3) => m3.trim());
2610
+ d2.value(r, f2, p2), (b3 = o.current) == null || b3.setAttribute(T, f2), c2.current = f2;
2613
2611
  }), c2;
2614
2612
  }
2615
2613
  var ke = () => {
2616
- let [r2, o2] = React.useState(), n = L2(() => /* @__PURE__ */ new Map());
2614
+ let [r, o] = React.useState(), n2 = L2(() => /* @__PURE__ */ new Map());
2617
2615
  return k(() => {
2618
- n.current.forEach((u2) => u2()), n.current = /* @__PURE__ */ new Map();
2619
- }, [r2]), (u2, c2) => {
2620
- n.current.set(u2, c2), o2({});
2616
+ n2.current.forEach((u2) => u2()), n2.current = /* @__PURE__ */ new Map();
2617
+ }, [r]), (u2, c2) => {
2618
+ n2.current.set(u2, c2), o({});
2621
2619
  };
2622
2620
  };
2623
- function Me(r2) {
2624
- let o2 = r2.type;
2625
- return typeof o2 == "function" ? o2(r2.props) : "render" in o2 ? o2.render(r2.props) : r2;
2621
+ function Me(r) {
2622
+ let o = r.type;
2623
+ return typeof o == "function" ? o(r.props) : "render" in o ? o.render(r.props) : r;
2626
2624
  }
2627
- function B2({ asChild: r2, children: o2 }, n) {
2628
- return r2 && React.isValidElement(o2) ? React.cloneElement(Me(o2), { ref: o2.ref }, n(o2.props.children)) : n(o2);
2625
+ function B2({ asChild: r, children: o }, n2) {
2626
+ return r && React.isValidElement(o) ? React.cloneElement(Me(o), { ref: o.ref }, n2(o.props.children)) : n2(o);
2629
2627
  }
2630
2628
  var Te = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
2631
2629
  function Command({ className, ...props }) {
@@ -2850,7 +2848,7 @@ var Content$1 = CollapsibleContent;
2850
2848
  var ACCORDION_NAME = "Accordion";
2851
2849
  var ACCORDION_KEYS = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"];
2852
2850
  var [Collection$2, useCollection$2, createCollectionScope$2] = createCollection(ACCORDION_NAME);
2853
- var [createAccordionContext, createAccordionScope] = createContextScope(ACCORDION_NAME, [
2851
+ var [createAccordionContext] = createContextScope(ACCORDION_NAME, [
2854
2852
  createCollectionScope$2,
2855
2853
  createCollapsibleScope
2856
2854
  ]);
@@ -3175,7 +3173,7 @@ function AccordionContent({ className, children, ...props }) {
3175
3173
  var NAVIGATION_MENU_NAME = "NavigationMenu";
3176
3174
  var [Collection$1, useCollection$1, createCollectionScope$1] = createCollection(NAVIGATION_MENU_NAME);
3177
3175
  var [FocusGroupCollection, useFocusGroupCollection, createFocusGroupCollectionScope] = createCollection(NAVIGATION_MENU_NAME);
3178
- var [createNavigationMenuContext, createNavigationMenuScope] = createContextScope(
3176
+ var [createNavigationMenuContext] = createContextScope(
3179
3177
  NAVIGATION_MENU_NAME,
3180
3178
  [createCollectionScope$1, createFocusGroupCollectionScope]
3181
3179
  );
@@ -4301,7 +4299,7 @@ function getState(checked) {
4301
4299
  }
4302
4300
  var ARROW_KEYS = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"];
4303
4301
  var RADIO_GROUP_NAME$1 = "RadioGroup";
4304
- var [createRadioGroupContext, createRadioGroupScope] = createContextScope(RADIO_GROUP_NAME$1, [
4302
+ var [createRadioGroupContext] = createContextScope(RADIO_GROUP_NAME$1, [
4305
4303
  createRovingFocusGroupScope,
4306
4304
  createRadioScope
4307
4305
  ]);
@@ -4554,7 +4552,7 @@ function SheetDescription({ className, ...props }) {
4554
4552
  }
4555
4553
  var MENUBAR_NAME = "Menubar";
4556
4554
  var [Collection, useCollection, createCollectionScope] = createCollection(MENUBAR_NAME);
4557
- var [createMenubarContext, createMenubarScope] = createContextScope(MENUBAR_NAME, [
4555
+ var [createMenubarContext] = createContextScope(MENUBAR_NAME, [
4558
4556
  createCollectionScope,
4559
4557
  createRovingFocusGroupScope
4560
4558
  ]);
@@ -5139,7 +5137,7 @@ function MenubarSubContent({ className, ...props }) {
5139
5137
  );
5140
5138
  }
5141
5139
  var ROOT_NAME = "AlertDialog";
5142
- var [createAlertDialogContext, createAlertDialogScope] = createContextScope(ROOT_NAME, [
5140
+ var [createAlertDialogContext] = createContextScope(ROOT_NAME, [
5143
5141
  createDialogScope
5144
5142
  ]);
5145
5143
  var useDialogScope = createDialogScope();
@@ -5366,7 +5364,7 @@ const AlertConfirmation = ({
5366
5364
  };
5367
5365
  var originalBodyUserSelect;
5368
5366
  var HOVERCARD_NAME = "HoverCard";
5369
- var [createHoverCardContext, createHoverCardScope] = createContextScope(HOVERCARD_NAME, [
5367
+ var [createHoverCardContext] = createContextScope(HOVERCARD_NAME, [
5370
5368
  createPopperScope
5371
5369
  ]);
5372
5370
  var usePopperScope = createPopperScope();
@@ -5656,15 +5654,15 @@ export {
5656
5654
  CommandSeparator,
5657
5655
  CommandShortcut,
5658
5656
  Dialog,
5659
- o as DialogClose,
5657
+ A as DialogClose,
5660
5658
  DialogContent,
5661
5659
  DialogDescription,
5662
- p as DialogFooter,
5660
+ E as DialogFooter,
5663
5661
  DialogHeader,
5664
- q as DialogOverlay,
5665
- r as DialogPortal,
5662
+ G as DialogOverlay,
5663
+ H as DialogPortal,
5666
5664
  DialogTitle,
5667
- s as DialogTrigger,
5665
+ J as DialogTrigger,
5668
5666
  DropdownMenu,
5669
5667
  DropdownMenuCheckboxItem,
5670
5668
  DropdownMenuContent,
@@ -5730,9 +5728,9 @@ export {
5730
5728
  d as SelectGroup,
5731
5729
  f as SelectItem,
5732
5730
  e as SelectLabel,
5733
- h as SelectScrollDownButton,
5734
- i as SelectScrollUpButton,
5735
- j as SelectSeparator,
5731
+ l as SelectScrollDownButton,
5732
+ m as SelectScrollUpButton,
5733
+ n as SelectSeparator,
5736
5734
  a as SelectTrigger,
5737
5735
  b as SelectValue,
5738
5736
  Sheet,
@@ -5749,7 +5747,7 @@ export {
5749
5747
  TabsContent,
5750
5748
  TabsList,
5751
5749
  TabsTrigger,
5752
- t as Textarea,
5750
+ K as Textarea,
5753
5751
  navigationMenuTriggerStyle
5754
5752
  };
5755
5753
  //# sourceMappingURL=index.es.js.map