@fluid-app/fluid-cli-theme-dev 0.1.176 → 0.1.178

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 (56) hide show
  1. package/dist/dist-cli-preview/.vite/manifest.json +271 -282
  2. package/dist/dist-cli-preview/account-screens.js +1 -1
  3. package/dist/dist-cli-preview/chunks/{Breadcrumb-8-7shsB6.js → Breadcrumb-DLYQ2Vr1.js} +1 -1
  4. package/dist/dist-cli-preview/chunks/{Combobox-m3vSk0_A.js → Combobox-I60LziKt.js} +195 -163
  5. package/dist/dist-cli-preview/chunks/{ContactsScreen-CBjQOWmH.js → ContactsScreen-DWAUWpQz.js} +516 -547
  6. package/dist/dist-cli-preview/chunks/MediaScreen-BOQw5HIm.js +8 -0
  7. package/dist/dist-cli-preview/chunks/{MemberManagementProviders-WSjb3a8B.js → MemberManagementProviders-CYbE8v0N.js} +6 -6
  8. package/dist/dist-cli-preview/chunks/{MemberShareablesScreen-D-5-JyQq.js → MemberShareablesScreen-CzXDumR4.js} +1768 -1785
  9. package/dist/dist-cli-preview/chunks/{MessagingScreen-By-jZq6v.js → MessagingScreen-Ch9BYR8g.js} +8452 -11174
  10. package/dist/dist-cli-preview/chunks/{MobileActionSheet-ERpw3qUF.js → MobileActionSheet-k67c8wJk.js} +2 -2
  11. package/dist/dist-cli-preview/chunks/{MySiteScreen-JAGvVMx-.js → MySiteScreen-DnQNCsOZ.js} +40 -41
  12. package/dist/dist-cli-preview/chunks/{OrdersScreen-Cb32bBjd.js → OrdersScreen-Bwn7Je6W.js} +7 -7
  13. package/dist/dist-cli-preview/chunks/OrdersScreen-DJoXusa-.js +9 -0
  14. package/dist/dist-cli-preview/chunks/PlaylistsScreen-BoZ2Fver.js +8 -0
  15. package/dist/dist-cli-preview/chunks/{PortalTenantClientProvider-CguU_uRG.js → PortalTenantClientProvider-JAGrume8.js} +1 -1
  16. package/dist/dist-cli-preview/chunks/{ProfileScreen-CCWM6TBs.js → ProfileScreen-CUURwTbd.js} +193 -203
  17. package/dist/dist-cli-preview/chunks/{Select-5fzq5MB-.js → Select-97UR3puI.js} +204 -192
  18. package/dist/dist-cli-preview/chunks/{SubscriptionsScreen-DLdsaVJK.js → SubscriptionsScreen-D5TEWnpQ.js} +3 -3
  19. package/dist/dist-cli-preview/chunks/{Textarea-xoKqLVgY.js → Textarea-DlTzkeqw.js} +86 -67
  20. package/dist/dist-cli-preview/chunks/{account-screen-runtime-CCBl8DXt.js → account-screen-runtime-CVtcJ0Fb.js} +3867 -3911
  21. package/dist/dist-cli-preview/chunks/{arrow-left-CTYaRdTX.js → arrow-left-CVKbyXG0.js} +1 -1
  22. package/dist/dist-cli-preview/chunks/{cli-preview-CMcquUEN.js → cli-preview-S7GUnjUK.js} +9 -9
  23. package/dist/dist-cli-preview/chunks/{client.gen-B7RMYGYu.js → client.gen-CTq48a_5.js} +1 -1
  24. package/dist/dist-cli-preview/chunks/{copy-DHN1DxE_.js → copy-Cb0EF4FY.js} +1 -1
  25. package/dist/dist-cli-preview/chunks/{countries-api-adapter-B4TefdRP.js → countries-api-adapter-39yd7wyu.js} +2 -2
  26. package/dist/dist-cli-preview/chunks/{create-card-entry-container-5NqOQ4D_.js → create-card-entry-container-GUKP9hm9.js} +7779 -7949
  27. package/dist/dist-cli-preview/chunks/{eye-qMoMW7-Z.js → eye-Br576SOE.js} +1 -1
  28. package/dist/dist-cli-preview/chunks/{hey-api-client-JMNyZwcF.js → hey-api-client-ojYRPo91.js} +1 -1
  29. package/dist/dist-cli-preview/chunks/{index-BhMjUmAr.js → index-CpV8WNR4.js} +3 -3
  30. package/dist/dist-cli-preview/chunks/{index-Dor8vM2o.js → index-oaLlxtXm.js} +1 -1
  31. package/dist/dist-cli-preview/chunks/{index-BS4PnEcu.js → index-twP43mON.js} +74 -86
  32. package/dist/dist-cli-preview/chunks/isAfter-DAVNjOeD.js +1324 -0
  33. package/dist/dist-cli-preview/chunks/{log-out-DUdRJX4l.js → log-out-uqUyU7ZP.js} +1 -1
  34. package/dist/dist-cli-preview/chunks/{map-pin-DyIkpqP0.js → map-pin-FwB95jm4.js} +1 -1
  35. package/dist/dist-cli-preview/chunks/mount-account-screen-SGot0CzY.js +12595 -0
  36. package/dist/dist-cli-preview/chunks/{navigate-account-screen-mT0rqVLT.js → navigate-account-screen-CC9GJcTK.js} +1 -1
  37. package/dist/dist-cli-preview/chunks/{schemas-BTblatUV.js → schemas-CK5ZjT20.js} +541 -530
  38. package/dist/dist-cli-preview/chunks/{screen-route-slug-utils-DozJp-uc.js → screen-route-slug-utils-MtfouJSS.js} +1 -1
  39. package/dist/dist-cli-preview/chunks/{sheet-haptics-context-CYrEaGtf.js → sheet-haptics-context-N2vLfwOc.js} +1 -1
  40. package/dist/dist-cli-preview/chunks/{sidebar-9qopXeR1.js → sidebar-D8LwwiTr.js} +10 -10
  41. package/dist/dist-cli-preview/chunks/{sortable.esm-Dlen88Fc.js → sortable.esm-jbVNBxCA.js} +2 -2
  42. package/dist/dist-cli-preview/chunks/{store-api-context-B9pW_xao.js → store-api-context-DhtPESgY.js} +1 -1
  43. package/dist/dist-cli-preview/chunks/{trash-2-ClRyi9iY.js → trash-2-f4dJpepX.js} +9 -9
  44. package/dist/dist-cli-preview/chunks/{use-mobile-srOt50VV.js → use-mobile-C4O5e0kh.js} +3 -3
  45. package/dist/dist-cli-preview/chunks/{use-optional-store-BgrOjfZJ.js → use-optional-store-qUug8CSx.js} +2 -2
  46. package/dist/dist-cli-preview/chunks/{use-store-CUSQx1E-.js → use-store-B00K7G5q.js} +3 -3
  47. package/dist/dist-cli-preview/chunks/{useInfiniteQuery-DGc8fotv.js → useInfiniteQuery-pbRaLvNe.js} +1 -1
  48. package/dist/dist-cli-preview/chunks/{user-Ca2sKJ-h.js → user-CRiDn40l.js} +1 -1
  49. package/dist/dist-cli-preview/chunks/{users-Dh7zTrKY.js → users-BMdwEKKP.js} +1 -1
  50. package/package.json +2 -2
  51. package/dist/dist-cli-preview/chunks/MediaScreen-DlrLPYRf.js +0 -8
  52. package/dist/dist-cli-preview/chunks/OrdersScreen-B1HQVMZC.js +0 -9
  53. package/dist/dist-cli-preview/chunks/PlaylistsScreen-DgYA1qcv.js +0 -8
  54. package/dist/dist-cli-preview/chunks/lock-DQTMeEw0.js +0 -14
  55. package/dist/dist-cli-preview/chunks/mount-account-screen-BuQhxURX.js +0 -11113
  56. package/dist/dist-cli-preview/chunks/plus-DZjrp536.js +0 -14
@@ -1,49 +1,79 @@
1
- import { l, ba as L, bl as A, bm as Ee, bn as Se, bo as Ie, a4 as je, bp as q, j as w, M as j } from "./account-screen-runtime-CCBl8DXt.js";
2
- import { S as Re } from "./useInfiniteQuery-DGc8fotv.js";
3
- import { P as Ae, g as Me, C as Ne, h as $e } from "./MobileActionSheet-ERpw3qUF.js";
4
- import { C as De } from "./schemas-BTblatUV.js";
5
- var me = 1, Pe = 0.9, Fe = 0.8, Le = 0.17, ee = 0.1, te = 0.999, Ke = 0.9999, Oe = 0.99, Ve = /[\\\/_+.#"@\[\(\{&]/, qe = /[\\\/_+.#"@\[\(\{&]/g, ze = /[\s-]/, he = /[\s-]/g;
1
+ import { c as he, l, aG as F, aR as M, aS as Se, aT as Ie, aU as Re, a4 as je, aV as O, j as y, M as R } from "./account-screen-runtime-CVtcJ0Fb.js";
2
+ import { S as Me } from "./useInfiniteQuery-pbRaLvNe.js";
3
+ import { P as Ae, g as Ne, C as $e, h as De } from "./MobileActionSheet-k67c8wJk.js";
4
+ import { C as Le } from "./schemas-CK5ZjT20.js";
5
+ /**
6
+ * @license lucide-react v0.575.0 - ISC
7
+ *
8
+ * This source code is licensed under the ISC license.
9
+ * See the LICENSE file in the root directory of this source tree.
10
+ */
11
+ const Pe = [
12
+ ["path", { d: "M8 2v4", key: "1cmpym" }],
13
+ ["path", { d: "M16 2v4", key: "4m81vk" }],
14
+ ["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
15
+ ["path", { d: "M3 10h18", key: "8toen8" }],
16
+ ["path", { d: "M8 14h.01", key: "6423bh" }],
17
+ ["path", { d: "M12 14h.01", key: "1etili" }],
18
+ ["path", { d: "M16 14h.01", key: "1gbofw" }],
19
+ ["path", { d: "M8 18h.01", key: "lrp35t" }],
20
+ ["path", { d: "M12 18h.01", key: "mhygvu" }],
21
+ ["path", { d: "M16 18h.01", key: "kzsmim" }]
22
+ ], gt = he("calendar-days", Pe);
23
+ /**
24
+ * @license lucide-react v0.575.0 - ISC
25
+ *
26
+ * This source code is licensed under the ISC license.
27
+ * See the LICENSE file in the root directory of this source tree.
28
+ */
29
+ const Fe = [
30
+ ["path", { d: "M8 2v4", key: "1cmpym" }],
31
+ ["path", { d: "M16 2v4", key: "4m81vk" }],
32
+ ["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
33
+ ["path", { d: "M3 10h18", key: "8toen8" }]
34
+ ], bt = he("calendar", Fe);
35
+ var fe = 1, Ke = 0.9, Ve = 0.8, ze = 0.17, ee = 0.1, te = 0.999, Oe = 0.9999, qe = 0.99, _e = /[\\\/_+.#"@\[\(\{&]/, Be = /[\\\/_+.#"@\[\(\{&]/g, Ge = /[\s-]/, ge = /[\s-]/g;
6
36
  function ne(e, n, r, d, o, i, c) {
7
- if (i === n.length) return o === e.length ? me : Oe;
8
- var f = `${o},${i}`;
9
- if (c[f] !== void 0) return c[f];
10
- for (var b = d.charAt(i), u = r.indexOf(b, o), p = 0, h, k, v, I; u >= 0; ) h = ne(e, n, r, d, u + 1, i + 1, c), h > p && (u === o ? h *= me : Ve.test(e.charAt(u - 1)) ? (h *= Fe, v = e.slice(o, u - 1).match(qe), v && o > 0 && (h *= Math.pow(te, v.length))) : ze.test(e.charAt(u - 1)) ? (h *= Pe, I = e.slice(o, u - 1).match(he), I && o > 0 && (h *= Math.pow(te, I.length))) : (h *= Le, o > 0 && (h *= Math.pow(te, u - o))), e.charAt(u) !== n.charAt(i) && (h *= Ke)), (h < ee && r.charAt(u - 1) === d.charAt(i + 1) || d.charAt(i + 1) === d.charAt(i) && r.charAt(u - 1) !== d.charAt(i)) && (k = ne(e, n, r, d, u + 1, i + 2, c), k * ee > h && (h = k * ee)), h > p && (p = h), u = r.indexOf(b, u + 1);
11
- return c[f] = p, p;
37
+ if (i === n.length) return o === e.length ? fe : qe;
38
+ var m = `${o},${i}`;
39
+ if (c[m] !== void 0) return c[m];
40
+ for (var b = d.charAt(i), u = r.indexOf(b, o), p = 0, h, w, v, I; u >= 0; ) h = ne(e, n, r, d, u + 1, i + 1, c), h > p && (u === o ? h *= fe : _e.test(e.charAt(u - 1)) ? (h *= Ve, v = e.slice(o, u - 1).match(Be), v && o > 0 && (h *= Math.pow(te, v.length))) : Ge.test(e.charAt(u - 1)) ? (h *= Ke, I = e.slice(o, u - 1).match(ge), I && o > 0 && (h *= Math.pow(te, I.length))) : (h *= ze, o > 0 && (h *= Math.pow(te, u - o))), e.charAt(u) !== n.charAt(i) && (h *= Oe)), (h < ee && r.charAt(u - 1) === d.charAt(i + 1) || d.charAt(i + 1) === d.charAt(i) && r.charAt(u - 1) !== d.charAt(i)) && (w = ne(e, n, r, d, u + 1, i + 2, c), w * ee > h && (h = w * ee)), h > p && (p = h), u = r.indexOf(b, u + 1);
41
+ return c[m] = p, p;
12
42
  }
13
43
  function pe(e) {
14
- return e.toLowerCase().replace(he, " ");
44
+ return e.toLowerCase().replace(ge, " ");
15
45
  }
16
- function Be(e, n, r) {
46
+ function Te(e, n, r) {
17
47
  return e = r && r.length > 0 ? `${e + " " + r.join(" ")}` : e, ne(e, n, pe(e), pe(n), 0, 0, {});
18
48
  }
19
- var V = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Ge = '[cmdk-group-heading=""]', ge = '[cmdk-item=""]', ve = `${ge}:not([aria-disabled="true"])`, le = "cmdk-item-select", P = "data-value", Te = (e, n, r) => Be(e, n, r), be = l.createContext(void 0), z = () => l.useContext(be), xe = l.createContext(void 0), ae = () => l.useContext(xe), we = l.createContext(void 0), ye = l.forwardRef((e, n) => {
20
- let r = F(() => {
49
+ var z = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Ue = '[cmdk-group-heading=""]', be = '[cmdk-item=""]', ve = `${be}:not([aria-disabled="true"])`, le = "cmdk-item-select", L = "data-value", He = (e, n, r) => Te(e, n, r), xe = l.createContext(void 0), q = () => l.useContext(xe), ye = l.createContext(void 0), ae = () => l.useContext(ye), ke = l.createContext(void 0), we = l.forwardRef((e, n) => {
50
+ let r = P(() => {
21
51
  var t, s;
22
52
  return { search: "", value: (s = (t = e.value) != null ? t : e.defaultValue) != null ? s : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
23
- }), d = F(() => /* @__PURE__ */ new Set()), o = F(() => /* @__PURE__ */ new Map()), i = F(() => /* @__PURE__ */ new Map()), c = F(() => /* @__PURE__ */ new Set()), f = ke(e), { label: b, children: u, value: p, onValueChange: h, filter: k, shouldFilter: v, loop: I, disablePointerSelection: U = !1, vimBindings: M = !0, ...B } = e, H = L(), oe = L(), W = L(), N = l.useRef(null), y = tt();
53
+ }), d = P(() => /* @__PURE__ */ new Set()), o = P(() => /* @__PURE__ */ new Map()), i = P(() => /* @__PURE__ */ new Map()), c = P(() => /* @__PURE__ */ new Set()), m = Ce(e), { label: b, children: u, value: p, onValueChange: h, filter: w, shouldFilter: v, loop: I, disablePointerSelection: T = !1, vimBindings: A = !0, ..._ } = e, U = F(), oe = F(), H = F(), N = l.useRef(null), k = lt();
24
54
  $(() => {
25
55
  if (p !== void 0) {
26
56
  let t = p.trim();
27
57
  r.current.value = t, E.emit();
28
58
  }
29
59
  }, [p]), $(() => {
30
- y(6, ie);
60
+ k(6, ie);
31
61
  }, []);
32
- let E = l.useMemo(() => ({ subscribe: (t) => (c.current.add(t), () => c.current.delete(t)), snapshot: () => r.current, setState: (t, s, m) => {
62
+ let E = l.useMemo(() => ({ subscribe: (t) => (c.current.add(t), () => c.current.delete(t)), snapshot: () => r.current, setState: (t, s, f) => {
33
63
  var a, g, x, S;
34
64
  if (!Object.is(r.current[t], s)) {
35
- if (r.current[t] = s, t === "search") Y(), J(), y(1, X);
65
+ if (r.current[t] = s, t === "search") Y(), J(), k(1, X);
36
66
  else if (t === "value") {
37
67
  if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
38
- let C = document.getElementById(W);
39
- C ? C.focus() : (a = document.getElementById(H)) == null || a.focus();
68
+ let C = document.getElementById(H);
69
+ C ? C.focus() : (a = document.getElementById(U)) == null || a.focus();
40
70
  }
41
- if (y(7, () => {
71
+ if (k(7, () => {
42
72
  var C;
43
73
  r.current.selectedItemId = (C = D()) == null ? void 0 : C.id, E.emit();
44
- }), m || y(5, ie), ((g = f.current) == null ? void 0 : g.value) !== void 0) {
74
+ }), f || k(5, ie), ((g = m.current) == null ? void 0 : g.value) !== void 0) {
45
75
  let C = s ?? "";
46
- (S = (x = f.current).onValueChange) == null || S.call(x, C);
76
+ (S = (x = m.current).onValueChange) == null || S.call(x, C);
47
77
  return;
48
78
  }
49
79
  }
@@ -51,29 +81,29 @@ var V = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Ge = '[cmdk-group-headi
51
81
  }
52
82
  }, emit: () => {
53
83
  c.current.forEach((t) => t());
54
- } }), []), _ = l.useMemo(() => ({ value: (t, s, m) => {
84
+ } }), []), W = l.useMemo(() => ({ value: (t, s, f) => {
55
85
  var a;
56
- s !== ((a = i.current.get(t)) == null ? void 0 : a.value) && (i.current.set(t, { value: s, keywords: m }), r.current.filtered.items.set(t, ue(s, m)), y(2, () => {
86
+ s !== ((a = i.current.get(t)) == null ? void 0 : a.value) && (i.current.set(t, { value: s, keywords: f }), r.current.filtered.items.set(t, ue(s, f)), k(2, () => {
57
87
  J(), E.emit();
58
88
  }));
59
- }, item: (t, s) => (d.current.add(t), s && (o.current.has(s) ? o.current.get(s).add(t) : o.current.set(s, /* @__PURE__ */ new Set([t]))), y(3, () => {
89
+ }, item: (t, s) => (d.current.add(t), s && (o.current.has(s) ? o.current.get(s).add(t) : o.current.set(s, /* @__PURE__ */ new Set([t]))), k(3, () => {
60
90
  Y(), J(), r.current.value || X(), E.emit();
61
91
  }), () => {
62
92
  i.current.delete(t), d.current.delete(t), r.current.filtered.items.delete(t);
63
- let m = D();
64
- y(4, () => {
65
- Y(), m?.getAttribute("id") === t && X(), E.emit();
93
+ let f = D();
94
+ k(4, () => {
95
+ Y(), f?.getAttribute("id") === t && X(), E.emit();
66
96
  });
67
97
  }), group: (t) => (o.current.has(t) || o.current.set(t, /* @__PURE__ */ new Set()), () => {
68
98
  i.current.delete(t), o.current.delete(t);
69
- }), filter: () => f.current.shouldFilter, label: b || e["aria-label"], getDisablePointerSelection: () => f.current.disablePointerSelection, listId: H, inputId: W, labelId: oe, listInnerRef: N }), []);
99
+ }), filter: () => m.current.shouldFilter, label: b || e["aria-label"], getDisablePointerSelection: () => m.current.disablePointerSelection, listId: U, inputId: H, labelId: oe, listInnerRef: N }), []);
70
100
  function ue(t, s) {
71
- var m, a;
72
- let g = (a = (m = f.current) == null ? void 0 : m.filter) != null ? a : Te;
101
+ var f, a;
102
+ let g = (a = (f = m.current) == null ? void 0 : f.filter) != null ? a : He;
73
103
  return t ? g(t, r.current.search, s) : 0;
74
104
  }
75
105
  function J() {
76
- if (!r.current.search || f.current.shouldFilter === !1) return;
106
+ if (!r.current.search || m.current.shouldFilter === !1) return;
77
107
  let t = r.current.filtered.items, s = [];
78
108
  r.current.filtered.groups.forEach((a) => {
79
109
  let g = o.current.get(a), x = 0;
@@ -82,35 +112,35 @@ var V = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Ge = '[cmdk-group-headi
82
112
  x = Math.max(C, x);
83
113
  }), s.push([a, x]);
84
114
  });
85
- let m = N.current;
86
- O().sort((a, g) => {
115
+ let f = N.current;
116
+ V().sort((a, g) => {
87
117
  var x, S;
88
- let C = a.getAttribute("id"), G = g.getAttribute("id");
89
- return ((x = t.get(G)) != null ? x : 0) - ((S = t.get(C)) != null ? S : 0);
118
+ let C = a.getAttribute("id"), B = g.getAttribute("id");
119
+ return ((x = t.get(B)) != null ? x : 0) - ((S = t.get(C)) != null ? S : 0);
90
120
  }).forEach((a) => {
91
121
  let g = a.closest(re);
92
- g ? g.appendChild(a.parentElement === g ? a : a.closest(`${re} > *`)) : m.appendChild(a.parentElement === m ? a : a.closest(`${re} > *`));
122
+ g ? g.appendChild(a.parentElement === g ? a : a.closest(`${re} > *`)) : f.appendChild(a.parentElement === f ? a : a.closest(`${re} > *`));
93
123
  }), s.sort((a, g) => g[1] - a[1]).forEach((a) => {
94
124
  var g;
95
- let x = (g = N.current) == null ? void 0 : g.querySelector(`${V}[${P}="${encodeURIComponent(a[0])}"]`);
125
+ let x = (g = N.current) == null ? void 0 : g.querySelector(`${z}[${L}="${encodeURIComponent(a[0])}"]`);
96
126
  x?.parentElement.appendChild(x);
97
127
  });
98
128
  }
99
129
  function X() {
100
- let t = O().find((m) => m.getAttribute("aria-disabled") !== "true"), s = t?.getAttribute(P);
130
+ let t = V().find((f) => f.getAttribute("aria-disabled") !== "true"), s = t?.getAttribute(L);
101
131
  E.setState("value", s || void 0);
102
132
  }
103
133
  function Y() {
104
- var t, s, m, a;
105
- if (!r.current.search || f.current.shouldFilter === !1) {
134
+ var t, s, f, a;
135
+ if (!r.current.search || m.current.shouldFilter === !1) {
106
136
  r.current.filtered.count = d.current.size;
107
137
  return;
108
138
  }
109
139
  r.current.filtered.groups = /* @__PURE__ */ new Set();
110
140
  let g = 0;
111
141
  for (let x of d.current) {
112
- let S = (s = (t = i.current.get(x)) == null ? void 0 : t.value) != null ? s : "", C = (a = (m = i.current.get(x)) == null ? void 0 : m.keywords) != null ? a : [], G = ue(S, C);
113
- r.current.filtered.items.set(x, G), G > 0 && g++;
142
+ let S = (s = (t = i.current.get(x)) == null ? void 0 : t.value) != null ? s : "", C = (a = (f = i.current.get(x)) == null ? void 0 : f.keywords) != null ? a : [], B = ue(S, C);
143
+ r.current.filtered.items.set(x, B), B > 0 && g++;
114
144
  }
115
145
  for (let [x, S] of o.current) for (let C of S) if (r.current.filtered.items.get(C) > 0) {
116
146
  r.current.filtered.groups.add(x);
@@ -119,45 +149,45 @@ var V = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Ge = '[cmdk-group-headi
119
149
  r.current.filtered.count = g;
120
150
  }
121
151
  function ie() {
122
- var t, s, m;
152
+ var t, s, f;
123
153
  let a = D();
124
- a && (((t = a.parentElement) == null ? void 0 : t.firstChild) === a && ((m = (s = a.closest(V)) == null ? void 0 : s.querySelector(Ge)) == null || m.scrollIntoView({ block: "nearest" })), a.scrollIntoView({ block: "nearest" }));
154
+ a && (((t = a.parentElement) == null ? void 0 : t.firstChild) === a && ((f = (s = a.closest(z)) == null ? void 0 : s.querySelector(Ue)) == null || f.scrollIntoView({ block: "nearest" })), a.scrollIntoView({ block: "nearest" }));
125
155
  }
126
156
  function D() {
127
157
  var t;
128
- return (t = N.current) == null ? void 0 : t.querySelector(`${ge}[aria-selected="true"]`);
158
+ return (t = N.current) == null ? void 0 : t.querySelector(`${be}[aria-selected="true"]`);
129
159
  }
130
- function O() {
160
+ function V() {
131
161
  var t;
132
162
  return Array.from(((t = N.current) == null ? void 0 : t.querySelectorAll(ve)) || []);
133
163
  }
134
164
  function Q(t) {
135
- let s = O()[t];
136
- s && E.setState("value", s.getAttribute(P));
165
+ let s = V()[t];
166
+ s && E.setState("value", s.getAttribute(L));
137
167
  }
138
168
  function Z(t) {
139
169
  var s;
140
- let m = D(), a = O(), g = a.findIndex((S) => S === m), x = a[g + t];
141
- (s = f.current) != null && s.loop && (x = g + t < 0 ? a[a.length - 1] : g + t === a.length ? a[0] : a[g + t]), x && E.setState("value", x.getAttribute(P));
170
+ let f = D(), a = V(), g = a.findIndex((S) => S === f), x = a[g + t];
171
+ (s = m.current) != null && s.loop && (x = g + t < 0 ? a[a.length - 1] : g + t === a.length ? a[0] : a[g + t]), x && E.setState("value", x.getAttribute(L));
142
172
  }
143
173
  function se(t) {
144
- let s = D(), m = s?.closest(V), a;
145
- for (; m && !a; ) m = t > 0 ? Ze(m, V) : et(m, V), a = m?.querySelector(ve);
146
- a ? E.setState("value", a.getAttribute(P)) : Z(t);
174
+ let s = D(), f = s?.closest(z), a;
175
+ for (; f && !a; ) f = t > 0 ? rt(f, z) : nt(f, z), a = f?.querySelector(ve);
176
+ a ? E.setState("value", a.getAttribute(L)) : Z(t);
147
177
  }
148
- let ce = () => Q(O().length - 1), de = (t) => {
178
+ let ce = () => Q(V().length - 1), de = (t) => {
149
179
  t.preventDefault(), t.metaKey ? ce() : t.altKey ? se(1) : Z(1);
150
- }, fe = (t) => {
180
+ }, me = (t) => {
151
181
  t.preventDefault(), t.metaKey ? Q(0) : t.altKey ? se(-1) : Z(-1);
152
182
  };
153
- return l.createElement(A.div, { ref: n, tabIndex: -1, ...B, "cmdk-root": "", onKeyDown: (t) => {
183
+ return l.createElement(M.div, { ref: n, tabIndex: -1, ..._, "cmdk-root": "", onKeyDown: (t) => {
154
184
  var s;
155
- (s = B.onKeyDown) == null || s.call(B, t);
156
- let m = t.nativeEvent.isComposing || t.keyCode === 229;
157
- if (!(t.defaultPrevented || m)) switch (t.key) {
185
+ (s = _.onKeyDown) == null || s.call(_, t);
186
+ let f = t.nativeEvent.isComposing || t.keyCode === 229;
187
+ if (!(t.defaultPrevented || f)) switch (t.key) {
158
188
  case "n":
159
189
  case "j": {
160
- M && t.ctrlKey && de(t);
190
+ A && t.ctrlKey && de(t);
161
191
  break;
162
192
  }
163
193
  case "ArrowDown": {
@@ -166,11 +196,11 @@ var V = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Ge = '[cmdk-group-headi
166
196
  }
167
197
  case "p":
168
198
  case "k": {
169
- M && t.ctrlKey && fe(t);
199
+ A && t.ctrlKey && me(t);
170
200
  break;
171
201
  }
172
202
  case "ArrowUp": {
173
- fe(t);
203
+ me(t);
174
204
  break;
175
205
  }
176
206
  case "Home": {
@@ -190,133 +220,133 @@ var V = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Ge = '[cmdk-group-headi
190
220
  }
191
221
  }
192
222
  }
193
- } }, l.createElement("label", { "cmdk-label": "", htmlFor: _.inputId, id: _.labelId, style: nt }, b), T(e, (t) => l.createElement(xe.Provider, { value: E }, l.createElement(be.Provider, { value: _ }, t))));
194
- }), Ue = l.forwardRef((e, n) => {
223
+ } }, l.createElement("label", { "cmdk-label": "", htmlFor: W.inputId, id: W.labelId, style: ot }, b), G(e, (t) => l.createElement(ye.Provider, { value: E }, l.createElement(xe.Provider, { value: W }, t))));
224
+ }), We = l.forwardRef((e, n) => {
195
225
  var r, d;
196
- let o = L(), i = l.useRef(null), c = l.useContext(we), f = z(), b = ke(e), u = (d = (r = b.current) == null ? void 0 : r.forceMount) != null ? d : c?.forceMount;
226
+ let o = F(), i = l.useRef(null), c = l.useContext(ke), m = q(), b = Ce(e), u = (d = (r = b.current) == null ? void 0 : r.forceMount) != null ? d : c?.forceMount;
197
227
  $(() => {
198
- if (!u) return f.item(o, c?.id);
228
+ if (!u) return m.item(o, c?.id);
199
229
  }, [u]);
200
- let p = Ce(o, i, [e.value, e.children, i], e.keywords), h = ae(), k = R((y) => y.value && y.value === p.current), v = R((y) => u || f.filter() === !1 ? !0 : y.search ? y.filtered.items.get(o) > 0 : !0);
230
+ let p = Ee(o, i, [e.value, e.children, i], e.keywords), h = ae(), w = j((k) => k.value && k.value === p.current), v = j((k) => u || m.filter() === !1 ? !0 : k.search ? k.filtered.items.get(o) > 0 : !0);
201
231
  l.useEffect(() => {
202
- let y = i.current;
203
- if (!(!y || e.disabled)) return y.addEventListener(le, I), () => y.removeEventListener(le, I);
232
+ let k = i.current;
233
+ if (!(!k || e.disabled)) return k.addEventListener(le, I), () => k.removeEventListener(le, I);
204
234
  }, [v, e.onSelect, e.disabled]);
205
235
  function I() {
206
- var y, E;
207
- U(), (E = (y = b.current).onSelect) == null || E.call(y, p.current);
236
+ var k, E;
237
+ T(), (E = (k = b.current).onSelect) == null || E.call(k, p.current);
208
238
  }
209
- function U() {
239
+ function T() {
210
240
  h.setState("value", p.current, !0);
211
241
  }
212
242
  if (!v) return null;
213
- let { disabled: M, value: B, onSelect: H, forceMount: oe, keywords: W, ...N } = e;
214
- return l.createElement(A.div, { ref: q(i, n), ...N, id: o, "cmdk-item": "", role: "option", "aria-disabled": !!M, "aria-selected": !!k, "data-disabled": !!M, "data-selected": !!k, onPointerMove: M || f.getDisablePointerSelection() ? void 0 : U, onClick: M ? void 0 : I }, e.children);
215
- }), He = l.forwardRef((e, n) => {
216
- let { heading: r, children: d, forceMount: o, ...i } = e, c = L(), f = l.useRef(null), b = l.useRef(null), u = L(), p = z(), h = R((v) => o || p.filter() === !1 ? !0 : v.search ? v.filtered.groups.has(c) : !0);
217
- $(() => p.group(c), []), Ce(c, f, [e.value, e.heading, b]);
218
- let k = l.useMemo(() => ({ id: c, forceMount: o }), [o]);
219
- return l.createElement(A.div, { ref: q(f, n), ...i, "cmdk-group": "", role: "presentation", hidden: h ? void 0 : !0 }, r && l.createElement("div", { ref: b, "cmdk-group-heading": "", "aria-hidden": !0, id: u }, r), T(e, (v) => l.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": r ? u : void 0 }, l.createElement(we.Provider, { value: k }, v))));
220
- }), We = l.forwardRef((e, n) => {
221
- let { alwaysRender: r, ...d } = e, o = l.useRef(null), i = R((c) => !c.search);
222
- return !r && !i ? null : l.createElement(A.div, { ref: q(o, n), ...d, "cmdk-separator": "", role: "separator" });
223
- }), _e = l.forwardRef((e, n) => {
224
- let { onValueChange: r, ...d } = e, o = e.value != null, i = ae(), c = R((u) => u.search), f = R((u) => u.selectedItemId), b = z();
243
+ let { disabled: A, value: _, onSelect: U, forceMount: oe, keywords: H, ...N } = e;
244
+ return l.createElement(M.div, { ref: O(i, n), ...N, id: o, "cmdk-item": "", role: "option", "aria-disabled": !!A, "aria-selected": !!w, "data-disabled": !!A, "data-selected": !!w, onPointerMove: A || m.getDisablePointerSelection() ? void 0 : T, onClick: A ? void 0 : I }, e.children);
245
+ }), Je = l.forwardRef((e, n) => {
246
+ let { heading: r, children: d, forceMount: o, ...i } = e, c = F(), m = l.useRef(null), b = l.useRef(null), u = F(), p = q(), h = j((v) => o || p.filter() === !1 ? !0 : v.search ? v.filtered.groups.has(c) : !0);
247
+ $(() => p.group(c), []), Ee(c, m, [e.value, e.heading, b]);
248
+ let w = l.useMemo(() => ({ id: c, forceMount: o }), [o]);
249
+ return l.createElement(M.div, { ref: O(m, n), ...i, "cmdk-group": "", role: "presentation", hidden: h ? void 0 : !0 }, r && l.createElement("div", { ref: b, "cmdk-group-heading": "", "aria-hidden": !0, id: u }, r), G(e, (v) => l.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": r ? u : void 0 }, l.createElement(ke.Provider, { value: w }, v))));
250
+ }), Xe = l.forwardRef((e, n) => {
251
+ let { alwaysRender: r, ...d } = e, o = l.useRef(null), i = j((c) => !c.search);
252
+ return !r && !i ? null : l.createElement(M.div, { ref: O(o, n), ...d, "cmdk-separator": "", role: "separator" });
253
+ }), Ye = l.forwardRef((e, n) => {
254
+ let { onValueChange: r, ...d } = e, o = e.value != null, i = ae(), c = j((u) => u.search), m = j((u) => u.selectedItemId), b = q();
225
255
  return l.useEffect(() => {
226
256
  e.value != null && i.setState("search", e.value);
227
- }, [e.value]), l.createElement(A.input, { ref: n, ...d, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": b.listId, "aria-labelledby": b.labelId, "aria-activedescendant": f, id: b.inputId, type: "text", value: o ? e.value : c, onChange: (u) => {
257
+ }, [e.value]), l.createElement(M.input, { ref: n, ...d, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": b.listId, "aria-labelledby": b.labelId, "aria-activedescendant": m, id: b.inputId, type: "text", value: o ? e.value : c, onChange: (u) => {
228
258
  o || i.setState("search", u.target.value), r?.(u.target.value);
229
259
  } });
230
- }), Je = l.forwardRef((e, n) => {
231
- let { children: r, label: d = "Suggestions", ...o } = e, i = l.useRef(null), c = l.useRef(null), f = R((u) => u.selectedItemId), b = z();
260
+ }), Qe = l.forwardRef((e, n) => {
261
+ let { children: r, label: d = "Suggestions", ...o } = e, i = l.useRef(null), c = l.useRef(null), m = j((u) => u.selectedItemId), b = q();
232
262
  return l.useEffect(() => {
233
263
  if (c.current && i.current) {
234
- let u = c.current, p = i.current, h, k = new ResizeObserver(() => {
264
+ let u = c.current, p = i.current, h, w = new ResizeObserver(() => {
235
265
  h = requestAnimationFrame(() => {
236
266
  let v = u.offsetHeight;
237
267
  p.style.setProperty("--cmdk-list-height", v.toFixed(1) + "px");
238
268
  });
239
269
  });
240
- return k.observe(u), () => {
241
- cancelAnimationFrame(h), k.unobserve(u);
270
+ return w.observe(u), () => {
271
+ cancelAnimationFrame(h), w.unobserve(u);
242
272
  };
243
273
  }
244
- }, []), l.createElement(A.div, { ref: q(i, n), ...o, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": f, "aria-label": d, id: b.listId }, T(e, (u) => l.createElement("div", { ref: q(c, b.listInnerRef), "cmdk-list-sizer": "" }, u)));
245
- }), Xe = l.forwardRef((e, n) => {
246
- let { open: r, onOpenChange: d, overlayClassName: o, contentClassName: i, container: c, ...f } = e;
247
- return l.createElement(Ee, { open: r, onOpenChange: d }, l.createElement(Se, { container: c }, l.createElement(Ie, { "cmdk-overlay": "", className: o }), l.createElement(je, { "aria-label": e.label, "cmdk-dialog": "", className: i }, l.createElement(ye, { ref: n, ...f }))));
248
- }), Ye = l.forwardRef((e, n) => R((r) => r.filtered.count === 0) ? l.createElement(A.div, { ref: n, ...e, "cmdk-empty": "", role: "presentation" }) : null), Qe = l.forwardRef((e, n) => {
274
+ }, []), l.createElement(M.div, { ref: O(i, n), ...o, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": m, "aria-label": d, id: b.listId }, G(e, (u) => l.createElement("div", { ref: O(c, b.listInnerRef), "cmdk-list-sizer": "" }, u)));
275
+ }), Ze = l.forwardRef((e, n) => {
276
+ let { open: r, onOpenChange: d, overlayClassName: o, contentClassName: i, container: c, ...m } = e;
277
+ return l.createElement(Se, { open: r, onOpenChange: d }, l.createElement(Ie, { container: c }, l.createElement(Re, { "cmdk-overlay": "", className: o }), l.createElement(je, { "aria-label": e.label, "cmdk-dialog": "", className: i }, l.createElement(we, { ref: n, ...m }))));
278
+ }), et = l.forwardRef((e, n) => j((r) => r.filtered.count === 0) ? l.createElement(M.div, { ref: n, ...e, "cmdk-empty": "", role: "presentation" }) : null), tt = l.forwardRef((e, n) => {
249
279
  let { progress: r, children: d, label: o = "Loading...", ...i } = e;
250
- return l.createElement(A.div, { ref: n, ...i, "cmdk-loading": "", role: "progressbar", "aria-valuenow": r, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": o }, T(e, (c) => l.createElement("div", { "aria-hidden": !0 }, c)));
251
- }), K = Object.assign(ye, { List: Je, Item: Ue, Input: _e, Group: He, Separator: We, Dialog: Xe, Empty: Ye, Loading: Qe });
252
- function Ze(e, n) {
280
+ return l.createElement(M.div, { ref: n, ...i, "cmdk-loading": "", role: "progressbar", "aria-valuenow": r, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": o }, G(e, (c) => l.createElement("div", { "aria-hidden": !0 }, c)));
281
+ }), K = Object.assign(we, { List: Qe, Item: We, Input: Ye, Group: Je, Separator: Xe, Dialog: Ze, Empty: et, Loading: tt });
282
+ function rt(e, n) {
253
283
  let r = e.nextElementSibling;
254
284
  for (; r; ) {
255
285
  if (r.matches(n)) return r;
256
286
  r = r.nextElementSibling;
257
287
  }
258
288
  }
259
- function et(e, n) {
289
+ function nt(e, n) {
260
290
  let r = e.previousElementSibling;
261
291
  for (; r; ) {
262
292
  if (r.matches(n)) return r;
263
293
  r = r.previousElementSibling;
264
294
  }
265
295
  }
266
- function ke(e) {
296
+ function Ce(e) {
267
297
  let n = l.useRef(e);
268
298
  return $(() => {
269
299
  n.current = e;
270
300
  }), n;
271
301
  }
272
302
  var $ = typeof window > "u" ? l.useEffect : l.useLayoutEffect;
273
- function F(e) {
303
+ function P(e) {
274
304
  let n = l.useRef();
275
305
  return n.current === void 0 && (n.current = e()), n;
276
306
  }
277
- function R(e) {
307
+ function j(e) {
278
308
  let n = ae(), r = () => e(n.snapshot());
279
309
  return l.useSyncExternalStore(n.subscribe, r, r);
280
310
  }
281
- function Ce(e, n, r, d = []) {
282
- let o = l.useRef(), i = z();
311
+ function Ee(e, n, r, d = []) {
312
+ let o = l.useRef(), i = q();
283
313
  return $(() => {
284
314
  var c;
285
- let f = (() => {
315
+ let m = (() => {
286
316
  var u;
287
317
  for (let p of r) {
288
318
  if (typeof p == "string") return p.trim();
289
319
  if (typeof p == "object" && "current" in p) return p.current ? (u = p.current.textContent) == null ? void 0 : u.trim() : o.current;
290
320
  }
291
321
  })(), b = d.map((u) => u.trim());
292
- i.value(e, f, b), (c = n.current) == null || c.setAttribute(P, f), o.current = f;
322
+ i.value(e, m, b), (c = n.current) == null || c.setAttribute(L, m), o.current = m;
293
323
  }), o;
294
324
  }
295
- var tt = () => {
296
- let [e, n] = l.useState(), r = F(() => /* @__PURE__ */ new Map());
325
+ var lt = () => {
326
+ let [e, n] = l.useState(), r = P(() => /* @__PURE__ */ new Map());
297
327
  return $(() => {
298
328
  r.current.forEach((d) => d()), r.current = /* @__PURE__ */ new Map();
299
329
  }, [e]), (d, o) => {
300
330
  r.current.set(d, o), n({});
301
331
  };
302
332
  };
303
- function rt(e) {
333
+ function at(e) {
304
334
  let n = e.type;
305
335
  return typeof n == "function" ? n(e.props) : "render" in n ? n.render(e.props) : e;
306
336
  }
307
- function T({ asChild: e, children: n }, r) {
308
- return e && l.isValidElement(n) ? l.cloneElement(rt(n), { ref: n.ref }, r(n.props.children)) : r(n);
337
+ function G({ asChild: e, children: n }, r) {
338
+ return e && l.isValidElement(n) ? l.cloneElement(at(n), { ref: n.ref }, r(n.props.children)) : r(n);
309
339
  }
310
- var nt = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
311
- function lt({
340
+ var ot = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
341
+ function ut({
312
342
  className: e,
313
343
  ...n
314
344
  }) {
315
- return /* @__PURE__ */ w.jsx(
345
+ return /* @__PURE__ */ y.jsx(
316
346
  K,
317
347
  {
318
348
  "data-slot": "command",
319
- className: j(
349
+ className: R(
320
350
  "bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
321
351
  e
322
352
  ),
@@ -324,22 +354,22 @@ function lt({
324
354
  }
325
355
  );
326
356
  }
327
- function at({
357
+ function it({
328
358
  className: e,
329
359
  ...n
330
360
  }) {
331
- return /* @__PURE__ */ w.jsxs(
361
+ return /* @__PURE__ */ y.jsxs(
332
362
  "div",
333
363
  {
334
364
  "data-slot": "command-input-wrapper",
335
365
  className: "flex h-9 items-center gap-2 border-b px-3",
336
366
  children: [
337
- /* @__PURE__ */ w.jsx(Re, { className: "size-4 shrink-0 opacity-50" }),
338
- /* @__PURE__ */ w.jsx(
367
+ /* @__PURE__ */ y.jsx(Me, { className: "size-4 shrink-0 opacity-50" }),
368
+ /* @__PURE__ */ y.jsx(
339
369
  K.Input,
340
370
  {
341
371
  "data-slot": "command-input",
342
- className: j(
372
+ className: R(
343
373
  "placeholder:text-muted-foreground flex h-full w-full rounded-md bg-transparent py-3 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-50",
344
374
  e
345
375
  ),
@@ -350,15 +380,15 @@ function at({
350
380
  }
351
381
  );
352
382
  }
353
- function ot({
383
+ function st({
354
384
  className: e,
355
385
  ...n
356
386
  }) {
357
- return /* @__PURE__ */ w.jsx(
387
+ return /* @__PURE__ */ y.jsx(
358
388
  K.List,
359
389
  {
360
390
  "data-slot": "command-list",
361
- className: j(
391
+ className: R(
362
392
  "max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",
363
393
  e
364
394
  ),
@@ -366,10 +396,10 @@ function ot({
366
396
  }
367
397
  );
368
398
  }
369
- function ut({
399
+ function ct({
370
400
  ...e
371
401
  }) {
372
- return /* @__PURE__ */ w.jsx(
402
+ return /* @__PURE__ */ y.jsx(
373
403
  K.Empty,
374
404
  {
375
405
  "data-slot": "command-empty",
@@ -378,15 +408,15 @@ function ut({
378
408
  }
379
409
  );
380
410
  }
381
- function it({
411
+ function dt({
382
412
  className: e,
383
413
  ...n
384
414
  }) {
385
- return /* @__PURE__ */ w.jsx(
415
+ return /* @__PURE__ */ y.jsx(
386
416
  K.Group,
387
417
  {
388
418
  "data-slot": "command-group",
389
- className: j(
419
+ className: R(
390
420
  "text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",
391
421
  e
392
422
  ),
@@ -394,15 +424,15 @@ function it({
394
424
  }
395
425
  );
396
426
  }
397
- function st({
427
+ function mt({
398
428
  className: e,
399
429
  ...n
400
430
  }) {
401
- return /* @__PURE__ */ w.jsx(
431
+ return /* @__PURE__ */ y.jsx(
402
432
  K.Item,
403
433
  {
404
434
  "data-slot": "command-item",
405
- className: j(
435
+ className: R(
406
436
  "data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
407
437
  e
408
438
  ),
@@ -410,7 +440,7 @@ function st({
410
440
  }
411
441
  );
412
442
  }
413
- function pt({
443
+ function xt({
414
444
  options: e,
415
445
  value: n,
416
446
  onValueChange: r,
@@ -419,68 +449,68 @@ function pt({
419
449
  disabled: i = !1,
420
450
  zIndex: c
421
451
  }) {
422
- const [f, b] = l.useState(!1), [u, p] = l.useState(""), h = e.find((v) => v.value === n), k = u ? e.filter(
452
+ const [m, b] = l.useState(!1), [u, p] = l.useState(""), h = e.find((v) => v.value === n), w = u ? e.filter(
423
453
  (v) => v.label.toLowerCase().includes(u.toLowerCase())
424
454
  ) : e;
425
455
  return (
426
456
  // `modal` gives the popover its own scroll lock. Without it, a surrounding
427
457
  // dialog's lock swallows wheel events over the option list.
428
- /* @__PURE__ */ w.jsxs(
458
+ /* @__PURE__ */ y.jsxs(
429
459
  Ae,
430
460
  {
431
- open: f,
461
+ open: m,
432
462
  onOpenChange: (v) => {
433
463
  b(v), v || p("");
434
464
  },
435
465
  modal: !0,
436
466
  children: [
437
- /* @__PURE__ */ w.jsx(Me, { asChild: !0, children: /* @__PURE__ */ w.jsxs(
467
+ /* @__PURE__ */ y.jsx(Ne, { asChild: !0, children: /* @__PURE__ */ y.jsxs(
438
468
  "button",
439
469
  {
440
470
  type: "button",
441
471
  role: "combobox",
442
- "aria-expanded": f,
472
+ "aria-expanded": m,
443
473
  disabled: i,
444
- className: j(
474
+ className: R(
445
475
  "border-input flex h-9 w-full cursor-pointer items-center justify-between gap-2 rounded-md border bg-transparent px-3 text-sm shadow-xs transition-[color,box-shadow]",
446
476
  "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] focus-visible:outline-none",
447
- f && "border-ring ring-ring/50 ring-[3px]",
477
+ m && "border-ring ring-ring/50 ring-[3px]",
448
478
  i && "cursor-not-allowed opacity-50"
449
479
  ),
450
480
  children: [
451
- /* @__PURE__ */ w.jsx(
481
+ /* @__PURE__ */ y.jsx(
452
482
  "span",
453
483
  {
454
- className: j(
484
+ className: R(
455
485
  "truncate",
456
486
  !h && "text-muted-foreground"
457
487
  ),
458
488
  children: h ? h.label : d
459
489
  }
460
490
  ),
461
- /* @__PURE__ */ w.jsx(Ne, { className: "size-4 shrink-0 opacity-50" })
491
+ /* @__PURE__ */ y.jsx($e, { className: "size-4 shrink-0 opacity-50" })
462
492
  ]
463
493
  }
464
494
  ) }),
465
- /* @__PURE__ */ w.jsx(
466
- $e,
495
+ /* @__PURE__ */ y.jsx(
496
+ De,
467
497
  {
468
498
  className: "bg-popover w-[var(--radix-popover-trigger-width)] rounded-md border p-0 shadow-md",
469
499
  align: "start",
470
500
  style: c === void 0 ? void 0 : { zIndex: c },
471
- children: /* @__PURE__ */ w.jsxs(lt, { shouldFilter: !1, children: [
472
- /* @__PURE__ */ w.jsx(
473
- at,
501
+ children: /* @__PURE__ */ y.jsxs(ut, { shouldFilter: !1, children: [
502
+ /* @__PURE__ */ y.jsx(
503
+ it,
474
504
  {
475
505
  placeholder: d,
476
506
  value: u,
477
507
  onValueChange: p
478
508
  }
479
509
  ),
480
- /* @__PURE__ */ w.jsxs(ot, { children: [
481
- k.length === 0 && /* @__PURE__ */ w.jsx(ut, { children: o }),
482
- /* @__PURE__ */ w.jsx(it, { children: k.map((v) => /* @__PURE__ */ w.jsxs(
483
- st,
510
+ /* @__PURE__ */ y.jsxs(st, { children: [
511
+ w.length === 0 && /* @__PURE__ */ y.jsx(ct, { children: o }),
512
+ /* @__PURE__ */ y.jsx(dt, { children: w.map((v) => /* @__PURE__ */ y.jsxs(
513
+ mt,
484
514
  {
485
515
  value: v.label,
486
516
  onSelect: () => {
@@ -488,10 +518,10 @@ function pt({
488
518
  },
489
519
  children: [
490
520
  v.label,
491
- /* @__PURE__ */ w.jsx(
492
- De,
521
+ /* @__PURE__ */ y.jsx(
522
+ Le,
493
523
  {
494
- className: j(
524
+ className: R(
495
525
  "ml-auto size-4",
496
526
  n === v.value ? "opacity-100" : "opacity-0"
497
527
  )
@@ -511,11 +541,13 @@ function pt({
511
541
  );
512
542
  }
513
543
  export {
514
- pt as C,
515
- lt as a,
516
- at as b,
517
- ot as c,
518
- ut as d,
519
- it as e,
520
- st as f
544
+ xt as C,
545
+ ut as a,
546
+ it as b,
547
+ st as c,
548
+ ct as d,
549
+ dt as e,
550
+ mt as f,
551
+ bt as g,
552
+ gt as h
521
553
  };