@fluid-app/fluid-cli-theme-dev 0.1.534 → 0.1.535

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 (65) hide show
  1. package/dist/dist-cli-preview/.vite/manifest.json +276 -295
  2. package/dist/dist-cli-preview/account-screens.js +1 -1
  3. package/dist/dist-cli-preview/chunks/{Combobox-CJDvxjNn.js → Combobox-D4l7DbBy.js} +54 -53
  4. package/dist/dist-cli-preview/chunks/{ContactsScreen-DD3XWK3Q.js → ContactsScreen-CEtA3-1c.js} +903 -850
  5. package/dist/dist-cli-preview/chunks/MediaScreen-C2rOxuuv.js +8 -0
  6. package/dist/dist-cli-preview/chunks/{MemberManagementProviders-iVdfo0DH.js → MemberManagementProviders-B_YXVcDi.js} +13 -13
  7. package/dist/dist-cli-preview/chunks/{MemberShareablesScreen-BulCAnNO.js → MemberShareablesScreen-UNjYr5R6.js} +4207 -3757
  8. package/dist/dist-cli-preview/chunks/{MessagingScreen-DlDsOy19.js → MessagingScreen-Btga_V0H.js} +24118 -21933
  9. package/dist/dist-cli-preview/chunks/MobileActionSheet-CrEH2vO7.js +1384 -0
  10. package/dist/dist-cli-preview/chunks/{MySiteScreen-BfPfyV4m.js → MySiteScreen-B1fGtPDj.js} +177 -163
  11. package/dist/dist-cli-preview/chunks/OrdersScreen-Bf9DtOCA.js +9 -0
  12. package/dist/dist-cli-preview/chunks/{OrdersScreen-C4yi3z2p.js → OrdersScreen-DyyL-P7j.js} +35 -34
  13. package/dist/dist-cli-preview/chunks/PlaylistsScreen-tws56I3H.js +8 -0
  14. package/dist/dist-cli-preview/chunks/{PortalTenantClientProvider-Clys_Bme.js → PortalTenantClientProvider-DUOOCXfW.js} +1 -1
  15. package/dist/dist-cli-preview/chunks/{ProfileScreen-e4QhExeS.js → ProfileScreen-wZO6QMrU.js} +259 -234
  16. package/dist/dist-cli-preview/chunks/ResponsiveDialog-DSDcOjhm.js +731 -0
  17. package/dist/dist-cli-preview/chunks/Select-DmRoXIkQ.js +2499 -0
  18. package/dist/dist-cli-preview/chunks/{SubscriptionsScreen-DysTJ6w_.js → SubscriptionsScreen-BR2C0m7M.js} +3 -3
  19. package/dist/dist-cli-preview/chunks/Textarea-C59p5Cek.js +365 -0
  20. package/dist/dist-cli-preview/chunks/{account-screen-runtime-B3e0JV6I.js → account-screen-runtime-BqMndJcu.js} +1389 -1409
  21. package/dist/dist-cli-preview/chunks/{arrow-left-BOYuYcvT.js → arrow-left-CFy5J6Id.js} +1 -1
  22. package/dist/dist-cli-preview/chunks/{cli-preview-cY0EPyxC.js → cli-preview-DZOhxtLy.js} +10 -10
  23. package/dist/dist-cli-preview/chunks/{client.gen-jwIybX1j.js → client.gen-DTVKCFco.js} +12 -12
  24. package/dist/dist-cli-preview/chunks/{copy-Cm_EKxcg.js → copy-Da4VLOCZ.js} +1 -1
  25. package/dist/dist-cli-preview/chunks/{countries-api-adapter-BCS0247N.js → countries-api-adapter-Bh5QfCO1.js} +2 -2
  26. package/dist/dist-cli-preview/chunks/{create-card-entry-container-CZi7shLR.js → create-card-entry-container-ohrRYgww.js} +1939 -1929
  27. package/dist/dist-cli-preview/chunks/{hey-api-client-B6n5a7q-.js → hey-api-client-BIjWueui.js} +1 -1
  28. package/dist/dist-cli-preview/chunks/{index-CfLLmITa.js → index-BMWjXC9i.js} +405 -869
  29. package/dist/dist-cli-preview/chunks/{index-DFIsiT9r.js → index-BVehJyDQ.js} +2080 -2372
  30. package/dist/dist-cli-preview/chunks/index-_r1wSvno.js +427 -0
  31. package/dist/dist-cli-preview/chunks/{isAfter-D0zQuNEJ.js → isAfter-BR4uNpua.js} +145 -156
  32. package/dist/dist-cli-preview/chunks/{map-pin-Vt1smsNu.js → map-pin-C_cK_i_W.js} +1 -1
  33. package/dist/dist-cli-preview/chunks/messaging-B1UjYRdl.js +4 -0
  34. package/dist/dist-cli-preview/chunks/{mount-account-screen-BOVvR3Og.js → mount-account-screen-JJGALFRE.js} +8 -8
  35. package/dist/dist-cli-preview/chunks/{navigate-account-screen-D756rD78.js → navigate-account-screen-C0VoUNOi.js} +1 -1
  36. package/dist/dist-cli-preview/chunks/schemas-D0s3rDQw.js +4851 -0
  37. package/dist/dist-cli-preview/chunks/{screen-route-slug-utils-HNXiCpo6.js → screen-route-slug-utils-n2BiDZmp.js} +205 -260
  38. package/dist/dist-cli-preview/chunks/search-zEnxG69C.js +14 -0
  39. package/dist/dist-cli-preview/chunks/sheet-haptics-context-p5ZPxslK.js +133 -0
  40. package/dist/dist-cli-preview/chunks/{sidebar-BDgHluGp.js → sidebar-CjPHl33n.js} +8 -8
  41. package/dist/dist-cli-preview/chunks/{sortable.esm-Cw91KlVU.js → sortable.esm-CrxUZkb-.js} +373 -362
  42. package/dist/dist-cli-preview/chunks/{store-api-context-BCaEZBlj.js → store-api-context-0k_ECvSE.js} +1 -1
  43. package/dist/dist-cli-preview/chunks/translation-api-context-factory-CP0LBb-M.js +74 -0
  44. package/dist/dist-cli-preview/chunks/{use-mobile-BztyG-mE.js → use-mobile-DIhDH3dI.js} +1 -1
  45. package/dist/dist-cli-preview/chunks/{use-optional-store-Dl6PSQur.js → use-optional-store-t4xzc2Rl.js} +2 -2
  46. package/dist/dist-cli-preview/chunks/use-store-YC0Ovzht.js +76 -0
  47. package/dist/dist-cli-preview/chunks/{useInfiniteQuery-fL_VYHHr.js → useInfiniteQuery-Bnzu0kZa.js} +9 -20
  48. package/dist/dist-cli-preview/chunks/{users-B3YJ3D1U.js → users-CabXl4EL.js} +1 -1
  49. package/package.json +1 -1
  50. package/dist/dist-cli-preview/chunks/Breadcrumb-ixf0cTR_.js +0 -91
  51. package/dist/dist-cli-preview/chunks/MediaScreen-D8WSOaze.js +0 -8
  52. package/dist/dist-cli-preview/chunks/MobileActionSheet-aGr-nGxu.js +0 -3884
  53. package/dist/dist-cli-preview/chunks/OrdersScreen-hidM-JR_.js +0 -9
  54. package/dist/dist-cli-preview/chunks/PlaylistsScreen-BIqSXZ5B.js +0 -8
  55. package/dist/dist-cli-preview/chunks/ellipsis-C1sJRT_T.js +0 -15
  56. package/dist/dist-cli-preview/chunks/eye-BHBOtWLw.js +0 -20
  57. package/dist/dist-cli-preview/chunks/index-COIiY5Im.js +0 -135
  58. package/dist/dist-cli-preview/chunks/log-out-segl_UhK.js +0 -30
  59. package/dist/dist-cli-preview/chunks/messaging-C_IkzF0O.js +0 -4
  60. package/dist/dist-cli-preview/chunks/pause-YWP8mWBs.js +0 -41
  61. package/dist/dist-cli-preview/chunks/schemas-BiM-ImW1.js +0 -5565
  62. package/dist/dist-cli-preview/chunks/sheet-haptics-context-d9udqor0.js +0 -116
  63. package/dist/dist-cli-preview/chunks/trash-2-CZEbdFT_.js +0 -17
  64. package/dist/dist-cli-preview/chunks/use-store-aahN8SDp.js +0 -400
  65. package/dist/dist-cli-preview/chunks/user-B4pULYRZ.js +0 -14
@@ -0,0 +1,1384 @@
1
+ import { c as Fe, G as ue, l as s, aZ as ke, j as a, M as K, J as S, K as g, H as D, as as Le, N as de, al as le, O as B, R as Ge, aY as $e, a_ as Ke, a$ as Ue, b0 as Be, b1 as ze, b2 as Ve, U as Ye, b3 as Zo, W as He, X as F, a3 as qo, $ as Jo } from "./account-screen-runtime-BqMndJcu.js";
2
+ import { c as pe, R as _e, A as be, C as Xe, b as We } from "./Select-DmRoXIkQ.js";
3
+ import { M as Qo } from "./ResponsiveDialog-DSDcOjhm.js";
4
+ import { C as et } from "./schemas-D0s3rDQw.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 ot = [
12
+ ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
13
+ ["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
14
+ ["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
15
+ ], er = Fe("ellipsis-vertical", ot);
16
+ /**
17
+ * @license lucide-react v0.575.0 - ISC
18
+ *
19
+ * This source code is licensed under the ISC license.
20
+ * See the LICENSE file in the root directory of this source tree.
21
+ */
22
+ const tt = [
23
+ ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
24
+ ["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
25
+ ["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
26
+ ], or = Fe("ellipsis", tt);
27
+ var we = "rovingFocusGroup.onEntryFocus", nt = { bubbles: !1, cancelable: !0 }, Q = "RovingFocusGroup", [Ce, Ze, rt] = ke(Q), [at, qe] = ue(
28
+ Q,
29
+ [rt]
30
+ ), [st, ct] = at(Q), Je = s.forwardRef(
31
+ (e, t) => /* @__PURE__ */ a.jsx(Ce.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ a.jsx(Ce.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ a.jsx(it, { ...e, ref: t }) }) })
32
+ );
33
+ Je.displayName = Q;
34
+ var it = s.forwardRef((e, t) => {
35
+ const {
36
+ __scopeRovingFocusGroup: o,
37
+ orientation: n,
38
+ loop: r = !1,
39
+ dir: c,
40
+ currentTabStopId: i,
41
+ defaultCurrentTabStopId: d,
42
+ onCurrentTabStopIdChange: f,
43
+ onEntryFocus: p,
44
+ preventScrollOnEntryFocus: l = !1,
45
+ ...u
46
+ } = e, v = s.useRef(null), w = D(t, v), h = Le(c), [I, x] = de({
47
+ prop: i,
48
+ defaultProp: d ?? null,
49
+ onChange: f,
50
+ caller: Q
51
+ }), [M, z] = s.useState(!1), b = le(p), E = Ze(o), V = s.useRef(!1), [re, T] = s.useState(0);
52
+ return s.useEffect(() => {
53
+ const _ = v.current;
54
+ if (_)
55
+ return _.addEventListener(we, b), () => _.removeEventListener(we, b);
56
+ }, [b]), /* @__PURE__ */ a.jsx(
57
+ st,
58
+ {
59
+ scope: o,
60
+ orientation: n,
61
+ dir: h,
62
+ loop: r,
63
+ currentTabStopId: I,
64
+ onItemFocus: s.useCallback(
65
+ (_) => x(_),
66
+ [x]
67
+ ),
68
+ onItemShiftTab: s.useCallback(() => z(!0), []),
69
+ onFocusableItemAdd: s.useCallback(
70
+ () => T((_) => _ + 1),
71
+ []
72
+ ),
73
+ onFocusableItemRemove: s.useCallback(
74
+ () => T((_) => _ - 1),
75
+ []
76
+ ),
77
+ children: /* @__PURE__ */ a.jsx(
78
+ S.div,
79
+ {
80
+ tabIndex: M || re === 0 ? -1 : 0,
81
+ "data-orientation": n,
82
+ ...u,
83
+ ref: w,
84
+ style: { outline: "none", ...e.style },
85
+ onMouseDown: g(e.onMouseDown, () => {
86
+ V.current = !0;
87
+ }),
88
+ onFocus: g(e.onFocus, (_) => {
89
+ const L = !V.current;
90
+ if (_.target === _.currentTarget && L && !M) {
91
+ const O = new CustomEvent(we, nt);
92
+ if (_.currentTarget.dispatchEvent(O), !O.defaultPrevented) {
93
+ const Y = E().filter((y) => y.focusable), H = Y.find((y) => y.active), ae = Y.find((y) => y.id === I), ge = [H, ae, ...Y].filter(
94
+ Boolean
95
+ ).map((y) => y.ref.current);
96
+ oo(ge, l);
97
+ }
98
+ }
99
+ V.current = !1;
100
+ }),
101
+ onBlur: g(e.onBlur, () => z(!1))
102
+ }
103
+ )
104
+ }
105
+ );
106
+ }), Qe = "RovingFocusGroupItem", eo = s.forwardRef(
107
+ (e, t) => {
108
+ const {
109
+ __scopeRovingFocusGroup: o,
110
+ focusable: n = !0,
111
+ active: r = !1,
112
+ tabStopId: c,
113
+ children: i,
114
+ ...d
115
+ } = e, f = K(), p = c || f, l = ct(Qe, o), u = l.currentTabStopId === p, v = Ze(o), { onFocusableItemAdd: w, onFocusableItemRemove: h, currentTabStopId: I } = l;
116
+ return s.useEffect(() => {
117
+ if (n)
118
+ return w(), () => h();
119
+ }, [n, w, h]), /* @__PURE__ */ a.jsx(
120
+ Ce.ItemSlot,
121
+ {
122
+ scope: o,
123
+ id: p,
124
+ focusable: n,
125
+ active: r,
126
+ children: /* @__PURE__ */ a.jsx(
127
+ S.span,
128
+ {
129
+ tabIndex: u ? 0 : -1,
130
+ "data-orientation": l.orientation,
131
+ ...d,
132
+ ref: t,
133
+ onMouseDown: g(e.onMouseDown, (x) => {
134
+ n ? l.onItemFocus(p) : x.preventDefault();
135
+ }),
136
+ onFocus: g(e.onFocus, () => l.onItemFocus(p)),
137
+ onKeyDown: g(e.onKeyDown, (x) => {
138
+ if (x.key === "Tab" && x.shiftKey) {
139
+ l.onItemShiftTab();
140
+ return;
141
+ }
142
+ if (x.target !== x.currentTarget) return;
143
+ const M = lt(x, l.orientation, l.dir);
144
+ if (M !== void 0) {
145
+ if (x.metaKey || x.ctrlKey || x.altKey || x.shiftKey) return;
146
+ x.preventDefault();
147
+ let b = v().filter((E) => E.focusable).map((E) => E.ref.current);
148
+ if (M === "last") b.reverse();
149
+ else if (M === "prev" || M === "next") {
150
+ M === "prev" && b.reverse();
151
+ const E = b.indexOf(x.currentTarget);
152
+ b = l.loop ? pt(b, E + 1) : b.slice(E + 1);
153
+ }
154
+ setTimeout(() => oo(b));
155
+ }
156
+ }),
157
+ children: typeof i == "function" ? i({ isCurrentTabStop: u, hasTabStop: I != null }) : i
158
+ }
159
+ )
160
+ }
161
+ );
162
+ }
163
+ );
164
+ eo.displayName = Qe;
165
+ var ut = {
166
+ ArrowLeft: "prev",
167
+ ArrowUp: "prev",
168
+ ArrowRight: "next",
169
+ ArrowDown: "next",
170
+ PageUp: "first",
171
+ Home: "first",
172
+ PageDown: "last",
173
+ End: "last"
174
+ };
175
+ function dt(e, t) {
176
+ return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
177
+ }
178
+ function lt(e, t, o) {
179
+ const n = dt(e.key, o);
180
+ if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(n)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(n)))
181
+ return ut[n];
182
+ }
183
+ function oo(e, t = !1) {
184
+ const o = document.activeElement;
185
+ for (const n of e)
186
+ if (n === o || (n.focus({ preventScroll: t }), document.activeElement !== o)) return;
187
+ }
188
+ function pt(e, t) {
189
+ return e.map((o, n) => e[(t + n) % e.length]);
190
+ }
191
+ var ft = Je, vt = eo, Me = ["Enter", " "], mt = ["ArrowDown", "PageUp", "Home"], to = ["ArrowUp", "PageDown", "End"], gt = [...mt, ...to], ht = {
192
+ ltr: [...Me, "ArrowRight"],
193
+ rtl: [...Me, "ArrowLeft"]
194
+ }, xt = {
195
+ ltr: ["ArrowLeft"],
196
+ rtl: ["ArrowRight"]
197
+ }, ee = "Menu", [q, wt, Ct] = ke(ee), [k, no] = ue(ee, [
198
+ Ct,
199
+ pe,
200
+ qe
201
+ ]), oe = pe(), ro = qe(), [ao, A] = k(ee), [Mt, te] = k(ee), so = (e) => {
202
+ const { __scopeMenu: t, open: o = !1, children: n, dir: r, onOpenChange: c, modal: i = !0 } = e, d = oe(t), [f, p] = s.useState(null), l = s.useRef(!1), u = le(c), v = Le(r);
203
+ return s.useEffect(() => {
204
+ const w = () => {
205
+ l.current = !0, document.addEventListener("pointerdown", h, { capture: !0, once: !0 }), document.addEventListener("pointermove", h, { capture: !0, once: !0 });
206
+ }, h = () => l.current = !1;
207
+ return document.addEventListener("keydown", w, { capture: !0 }), () => {
208
+ document.removeEventListener("keydown", w, { capture: !0 }), document.removeEventListener("pointerdown", h, { capture: !0 }), document.removeEventListener("pointermove", h, { capture: !0 });
209
+ };
210
+ }, []), /* @__PURE__ */ a.jsx(_e, { ...d, children: /* @__PURE__ */ a.jsx(
211
+ ao,
212
+ {
213
+ scope: t,
214
+ open: o,
215
+ onOpenChange: u,
216
+ content: f,
217
+ onContentChange: p,
218
+ children: /* @__PURE__ */ a.jsx(
219
+ Mt,
220
+ {
221
+ scope: t,
222
+ onClose: s.useCallback(() => u(!1), [u]),
223
+ isUsingKeyboardRef: l,
224
+ dir: v,
225
+ modal: i,
226
+ children: n
227
+ }
228
+ )
229
+ }
230
+ ) });
231
+ };
232
+ so.displayName = ee;
233
+ var _t = "MenuAnchor", Re = s.forwardRef(
234
+ (e, t) => {
235
+ const { __scopeMenu: o, ...n } = e, r = oe(o);
236
+ return /* @__PURE__ */ a.jsx(be, { ...r, ...n, ref: t });
237
+ }
238
+ );
239
+ Re.displayName = _t;
240
+ var Pe = "MenuPortal", [bt, co] = k(Pe, {
241
+ forceMount: void 0
242
+ }), io = (e) => {
243
+ const { __scopeMenu: t, forceMount: o, children: n, container: r } = e, c = A(Pe, t);
244
+ return /* @__PURE__ */ a.jsx(bt, { scope: t, forceMount: o, children: /* @__PURE__ */ a.jsx(B, { present: o || c.open, children: /* @__PURE__ */ a.jsx(Ge, { asChild: !0, container: r, children: n }) }) });
245
+ };
246
+ io.displayName = Pe;
247
+ var P = "MenuContent", [Rt, Ie] = k(P), uo = s.forwardRef(
248
+ (e, t) => {
249
+ const o = co(P, e.__scopeMenu), { forceMount: n = o.forceMount, ...r } = e, c = A(P, e.__scopeMenu), i = te(P, e.__scopeMenu);
250
+ return /* @__PURE__ */ a.jsx(q.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(B, { present: n || c.open, children: /* @__PURE__ */ a.jsx(q.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ a.jsx(Pt, { ...r, ref: t }) : /* @__PURE__ */ a.jsx(It, { ...r, ref: t }) }) }) });
251
+ }
252
+ ), Pt = s.forwardRef(
253
+ (e, t) => {
254
+ const o = A(P, e.__scopeMenu), n = s.useRef(null), r = D(t, n);
255
+ return s.useEffect(() => {
256
+ const c = n.current;
257
+ if (c) return Ke(c);
258
+ }, []), /* @__PURE__ */ a.jsx(
259
+ Ee,
260
+ {
261
+ ...e,
262
+ ref: r,
263
+ trapFocus: o.open,
264
+ disableOutsidePointerEvents: o.open,
265
+ disableOutsideScroll: !0,
266
+ onFocusOutside: g(
267
+ e.onFocusOutside,
268
+ (c) => c.preventDefault(),
269
+ { checkForDefaultPrevented: !1 }
270
+ ),
271
+ onDismiss: () => o.onOpenChange(!1)
272
+ }
273
+ );
274
+ }
275
+ ), It = s.forwardRef((e, t) => {
276
+ const o = A(P, e.__scopeMenu);
277
+ return /* @__PURE__ */ a.jsx(
278
+ Ee,
279
+ {
280
+ ...e,
281
+ ref: t,
282
+ trapFocus: !1,
283
+ disableOutsidePointerEvents: !1,
284
+ disableOutsideScroll: !1,
285
+ onDismiss: () => o.onOpenChange(!1)
286
+ }
287
+ );
288
+ }), Et = ze("MenuContent.ScrollLock"), Ee = s.forwardRef(
289
+ (e, t) => {
290
+ const {
291
+ __scopeMenu: o,
292
+ loop: n = !1,
293
+ trapFocus: r,
294
+ onOpenAutoFocus: c,
295
+ onCloseAutoFocus: i,
296
+ disableOutsidePointerEvents: d,
297
+ onEntryFocus: f,
298
+ onEscapeKeyDown: p,
299
+ onPointerDownOutside: l,
300
+ onFocusOutside: u,
301
+ onInteractOutside: v,
302
+ onDismiss: w,
303
+ disableOutsideScroll: h,
304
+ ...I
305
+ } = e, x = A(P, o), M = te(P, o), z = oe(o), b = ro(o), E = wt(o), [V, re] = s.useState(null), T = s.useRef(null), _ = D(t, T, x.onContentChange), L = s.useRef(0), O = s.useRef(""), Y = s.useRef(0), H = s.useRef(null), ae = s.useRef("right"), se = s.useRef(0), ge = h ? Be : s.Fragment, y = h ? { as: Et, allowPinchZoom: !0 } : void 0, Wo = (m) => {
306
+ const $ = O.current + m, j = E().filter((R) => !R.disabled), X = document.activeElement, he = j.find((R) => R.ref.current === X)?.textValue, xe = j.map((R) => R.textValue), Te = Gt(xe, $, he), W = j.find((R) => R.textValue === Te)?.ref.current;
307
+ (function R(Oe) {
308
+ O.current = Oe, window.clearTimeout(L.current), Oe !== "" && (L.current = window.setTimeout(() => R(""), 1e3));
309
+ })($), W && setTimeout(() => W.focus());
310
+ };
311
+ s.useEffect(() => () => window.clearTimeout(L.current), []), Ue();
312
+ const G = s.useCallback((m) => ae.current === H.current?.side && Kt(m, H.current?.area), []);
313
+ return /* @__PURE__ */ a.jsx(
314
+ Rt,
315
+ {
316
+ scope: o,
317
+ searchRef: O,
318
+ onItemEnter: s.useCallback(
319
+ (m) => {
320
+ G(m) && m.preventDefault();
321
+ },
322
+ [G]
323
+ ),
324
+ onItemLeave: s.useCallback(
325
+ (m) => {
326
+ G(m) || (T.current?.focus(), re(null));
327
+ },
328
+ [G]
329
+ ),
330
+ onTriggerLeave: s.useCallback(
331
+ (m) => {
332
+ G(m) && m.preventDefault();
333
+ },
334
+ [G]
335
+ ),
336
+ pointerGraceTimerRef: Y,
337
+ onPointerGraceIntentChange: s.useCallback((m) => {
338
+ H.current = m;
339
+ }, []),
340
+ children: /* @__PURE__ */ a.jsx(ge, { ...y, children: /* @__PURE__ */ a.jsx(
341
+ Ve,
342
+ {
343
+ asChild: !0,
344
+ trapped: r,
345
+ onMountAutoFocus: g(c, (m) => {
346
+ m.preventDefault(), T.current?.focus({ preventScroll: !0 });
347
+ }),
348
+ onUnmountAutoFocus: i,
349
+ children: /* @__PURE__ */ a.jsx(
350
+ Ye,
351
+ {
352
+ asChild: !0,
353
+ disableOutsidePointerEvents: d,
354
+ onEscapeKeyDown: p,
355
+ onPointerDownOutside: l,
356
+ onFocusOutside: u,
357
+ onInteractOutside: v,
358
+ onDismiss: w,
359
+ children: /* @__PURE__ */ a.jsx(
360
+ ft,
361
+ {
362
+ asChild: !0,
363
+ ...b,
364
+ dir: M.dir,
365
+ orientation: "vertical",
366
+ loop: n,
367
+ currentTabStopId: V,
368
+ onCurrentTabStopIdChange: re,
369
+ onEntryFocus: g(f, (m) => {
370
+ M.isUsingKeyboardRef.current || m.preventDefault();
371
+ }),
372
+ preventScrollOnEntryFocus: !0,
373
+ children: /* @__PURE__ */ a.jsx(
374
+ Xe,
375
+ {
376
+ role: "menu",
377
+ "aria-orientation": "vertical",
378
+ "data-state": Eo(x.open),
379
+ "data-radix-menu-content": "",
380
+ dir: M.dir,
381
+ ...z,
382
+ ...I,
383
+ ref: _,
384
+ style: { outline: "none", ...I.style },
385
+ onKeyDown: g(I.onKeyDown, (m) => {
386
+ const j = m.target.closest("[data-radix-menu-content]") === m.currentTarget, X = m.ctrlKey || m.altKey || m.metaKey, he = m.key.length === 1;
387
+ j && (m.key === "Tab" && m.preventDefault(), !X && he && Wo(m.key));
388
+ const xe = T.current;
389
+ if (m.target !== xe || !gt.includes(m.key)) return;
390
+ m.preventDefault();
391
+ const W = E().filter((R) => !R.disabled).map((R) => R.ref.current);
392
+ to.includes(m.key) && W.reverse(), kt(W);
393
+ }),
394
+ onBlur: g(e.onBlur, (m) => {
395
+ m.currentTarget.contains(m.target) || (window.clearTimeout(L.current), O.current = "");
396
+ }),
397
+ onPointerMove: g(
398
+ e.onPointerMove,
399
+ J((m) => {
400
+ const $ = m.target, j = se.current !== m.clientX;
401
+ if (m.currentTarget.contains($) && j) {
402
+ const X = m.clientX > se.current ? "right" : "left";
403
+ ae.current = X, se.current = m.clientX;
404
+ }
405
+ })
406
+ )
407
+ }
408
+ )
409
+ }
410
+ )
411
+ }
412
+ )
413
+ }
414
+ ) })
415
+ }
416
+ );
417
+ }
418
+ );
419
+ uo.displayName = P;
420
+ var St = "MenuGroup", Se = s.forwardRef(
421
+ (e, t) => {
422
+ const { __scopeMenu: o, ...n } = e;
423
+ return /* @__PURE__ */ a.jsx(S.div, { role: "group", ...n, ref: t });
424
+ }
425
+ );
426
+ Se.displayName = St;
427
+ var yt = "MenuLabel", lo = s.forwardRef(
428
+ (e, t) => {
429
+ const { __scopeMenu: o, ...n } = e;
430
+ return /* @__PURE__ */ a.jsx(S.div, { ...n, ref: t });
431
+ }
432
+ );
433
+ lo.displayName = yt;
434
+ var ce = "MenuItem", je = "menu.itemSelect", fe = s.forwardRef(
435
+ (e, t) => {
436
+ const { disabled: o = !1, onSelect: n, ...r } = e, c = s.useRef(null), i = te(ce, e.__scopeMenu), d = Ie(ce, e.__scopeMenu), f = D(t, c), p = s.useRef(!1), l = () => {
437
+ const u = c.current;
438
+ if (!o && u) {
439
+ const v = new CustomEvent(je, { bubbles: !0, cancelable: !0 });
440
+ u.addEventListener(je, (w) => n?.(w), { once: !0 }), Zo(u, v), v.defaultPrevented ? p.current = !1 : i.onClose();
441
+ }
442
+ };
443
+ return /* @__PURE__ */ a.jsx(
444
+ po,
445
+ {
446
+ ...r,
447
+ ref: f,
448
+ disabled: o,
449
+ onClick: g(e.onClick, l),
450
+ onPointerDown: (u) => {
451
+ e.onPointerDown?.(u), p.current = !0;
452
+ },
453
+ onPointerUp: g(e.onPointerUp, (u) => {
454
+ p.current || u.currentTarget?.click();
455
+ }),
456
+ onKeyDown: g(e.onKeyDown, (u) => {
457
+ const v = d.searchRef.current !== "";
458
+ o || v && u.key === " " || Me.includes(u.key) && (u.currentTarget.click(), u.preventDefault());
459
+ })
460
+ }
461
+ );
462
+ }
463
+ );
464
+ fe.displayName = ce;
465
+ var po = s.forwardRef(
466
+ (e, t) => {
467
+ const { __scopeMenu: o, disabled: n = !1, textValue: r, ...c } = e, i = Ie(ce, o), d = ro(o), f = s.useRef(null), p = D(t, f), [l, u] = s.useState(!1), [v, w] = s.useState("");
468
+ return s.useEffect(() => {
469
+ const h = f.current;
470
+ h && w((h.textContent ?? "").trim());
471
+ }, [c.children]), /* @__PURE__ */ a.jsx(
472
+ q.ItemSlot,
473
+ {
474
+ scope: o,
475
+ disabled: n,
476
+ textValue: r ?? v,
477
+ children: /* @__PURE__ */ a.jsx(vt, { asChild: !0, ...d, focusable: !n, children: /* @__PURE__ */ a.jsx(
478
+ S.div,
479
+ {
480
+ role: "menuitem",
481
+ "data-highlighted": l ? "" : void 0,
482
+ "aria-disabled": n || void 0,
483
+ "data-disabled": n ? "" : void 0,
484
+ ...c,
485
+ ref: p,
486
+ onPointerMove: g(
487
+ e.onPointerMove,
488
+ J((h) => {
489
+ n ? i.onItemLeave(h) : (i.onItemEnter(h), h.defaultPrevented || h.currentTarget.focus({ preventScroll: !0 }));
490
+ })
491
+ ),
492
+ onPointerLeave: g(
493
+ e.onPointerLeave,
494
+ J((h) => i.onItemLeave(h))
495
+ ),
496
+ onFocus: g(e.onFocus, () => u(!0)),
497
+ onBlur: g(e.onBlur, () => u(!1))
498
+ }
499
+ ) })
500
+ }
501
+ );
502
+ }
503
+ ), Dt = "MenuCheckboxItem", fo = s.forwardRef(
504
+ (e, t) => {
505
+ const { checked: o = !1, onCheckedChange: n, ...r } = e;
506
+ return /* @__PURE__ */ a.jsx(xo, { scope: e.__scopeMenu, checked: o, children: /* @__PURE__ */ a.jsx(
507
+ fe,
508
+ {
509
+ role: "menuitemcheckbox",
510
+ "aria-checked": ie(o) ? "mixed" : o,
511
+ ...r,
512
+ ref: t,
513
+ "data-state": Ae(o),
514
+ onSelect: g(
515
+ r.onSelect,
516
+ () => n?.(ie(o) ? !0 : !o),
517
+ { checkForDefaultPrevented: !1 }
518
+ )
519
+ }
520
+ ) });
521
+ }
522
+ );
523
+ fo.displayName = Dt;
524
+ var vo = "MenuRadioGroup", [At, Nt] = k(
525
+ vo,
526
+ { value: void 0, onValueChange: () => {
527
+ } }
528
+ ), mo = s.forwardRef(
529
+ (e, t) => {
530
+ const { value: o, onValueChange: n, ...r } = e, c = le(n);
531
+ return /* @__PURE__ */ a.jsx(At, { scope: e.__scopeMenu, value: o, onValueChange: c, children: /* @__PURE__ */ a.jsx(Se, { ...r, ref: t }) });
532
+ }
533
+ );
534
+ mo.displayName = vo;
535
+ var go = "MenuRadioItem", ho = s.forwardRef(
536
+ (e, t) => {
537
+ const { value: o, ...n } = e, r = Nt(go, e.__scopeMenu), c = o === r.value;
538
+ return /* @__PURE__ */ a.jsx(xo, { scope: e.__scopeMenu, checked: c, children: /* @__PURE__ */ a.jsx(
539
+ fe,
540
+ {
541
+ role: "menuitemradio",
542
+ "aria-checked": c,
543
+ ...n,
544
+ ref: t,
545
+ "data-state": Ae(c),
546
+ onSelect: g(
547
+ n.onSelect,
548
+ () => r.onValueChange?.(o),
549
+ { checkForDefaultPrevented: !1 }
550
+ )
551
+ }
552
+ ) });
553
+ }
554
+ );
555
+ ho.displayName = go;
556
+ var ye = "MenuItemIndicator", [xo, Tt] = k(
557
+ ye,
558
+ { checked: !1 }
559
+ ), wo = s.forwardRef(
560
+ (e, t) => {
561
+ const { __scopeMenu: o, forceMount: n, ...r } = e, c = Tt(ye, o);
562
+ return /* @__PURE__ */ a.jsx(
563
+ B,
564
+ {
565
+ present: n || ie(c.checked) || c.checked === !0,
566
+ children: /* @__PURE__ */ a.jsx(
567
+ S.span,
568
+ {
569
+ ...r,
570
+ ref: t,
571
+ "data-state": Ae(c.checked)
572
+ }
573
+ )
574
+ }
575
+ );
576
+ }
577
+ );
578
+ wo.displayName = ye;
579
+ var Ot = "MenuSeparator", Co = s.forwardRef(
580
+ (e, t) => {
581
+ const { __scopeMenu: o, ...n } = e;
582
+ return /* @__PURE__ */ a.jsx(
583
+ S.div,
584
+ {
585
+ role: "separator",
586
+ "aria-orientation": "horizontal",
587
+ ...n,
588
+ ref: t
589
+ }
590
+ );
591
+ }
592
+ );
593
+ Co.displayName = Ot;
594
+ var jt = "MenuArrow", Mo = s.forwardRef(
595
+ (e, t) => {
596
+ const { __scopeMenu: o, ...n } = e, r = oe(o);
597
+ return /* @__PURE__ */ a.jsx(We, { ...r, ...n, ref: t });
598
+ }
599
+ );
600
+ Mo.displayName = jt;
601
+ var De = "MenuSub", [Ft, _o] = k(De), bo = (e) => {
602
+ const { __scopeMenu: t, children: o, open: n = !1, onOpenChange: r } = e, c = A(De, t), i = oe(t), [d, f] = s.useState(null), [p, l] = s.useState(null), u = le(r);
603
+ return s.useEffect(() => (c.open === !1 && u(!1), () => u(!1)), [c.open, u]), /* @__PURE__ */ a.jsx(_e, { ...i, children: /* @__PURE__ */ a.jsx(
604
+ ao,
605
+ {
606
+ scope: t,
607
+ open: n,
608
+ onOpenChange: u,
609
+ content: p,
610
+ onContentChange: l,
611
+ children: /* @__PURE__ */ a.jsx(
612
+ Ft,
613
+ {
614
+ scope: t,
615
+ contentId: K(),
616
+ triggerId: K(),
617
+ trigger: d,
618
+ onTriggerChange: f,
619
+ children: o
620
+ }
621
+ )
622
+ }
623
+ ) });
624
+ };
625
+ bo.displayName = De;
626
+ var Z = "MenuSubTrigger", Ro = s.forwardRef(
627
+ (e, t) => {
628
+ const o = A(Z, e.__scopeMenu), n = te(Z, e.__scopeMenu), r = _o(Z, e.__scopeMenu), c = Ie(Z, e.__scopeMenu), i = s.useRef(null), { pointerGraceTimerRef: d, onPointerGraceIntentChange: f } = c, p = { __scopeMenu: e.__scopeMenu }, l = s.useCallback(() => {
629
+ i.current && window.clearTimeout(i.current), i.current = null;
630
+ }, []);
631
+ return s.useEffect(() => l, [l]), s.useEffect(() => {
632
+ const u = d.current;
633
+ return () => {
634
+ window.clearTimeout(u), f(null);
635
+ };
636
+ }, [d, f]), /* @__PURE__ */ a.jsx(Re, { asChild: !0, ...p, children: /* @__PURE__ */ a.jsx(
637
+ po,
638
+ {
639
+ id: r.triggerId,
640
+ "aria-haspopup": "menu",
641
+ "aria-expanded": o.open,
642
+ "aria-controls": r.contentId,
643
+ "data-state": Eo(o.open),
644
+ ...e,
645
+ ref: $e(t, r.onTriggerChange),
646
+ onClick: (u) => {
647
+ e.onClick?.(u), !(e.disabled || u.defaultPrevented) && (u.currentTarget.focus(), o.open || o.onOpenChange(!0));
648
+ },
649
+ onPointerMove: g(
650
+ e.onPointerMove,
651
+ J((u) => {
652
+ c.onItemEnter(u), !u.defaultPrevented && !e.disabled && !o.open && !i.current && (c.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
653
+ o.onOpenChange(!0), l();
654
+ }, 100));
655
+ })
656
+ ),
657
+ onPointerLeave: g(
658
+ e.onPointerLeave,
659
+ J((u) => {
660
+ l();
661
+ const v = o.content?.getBoundingClientRect();
662
+ if (v) {
663
+ const w = o.content?.dataset.side, h = w === "right", I = h ? -5 : 5, x = v[h ? "left" : "right"], M = v[h ? "right" : "left"];
664
+ c.onPointerGraceIntentChange({
665
+ area: [
666
+ // Apply a bleed on clientX to ensure that our exit point is
667
+ // consistently within polygon bounds
668
+ { x: u.clientX + I, y: u.clientY },
669
+ { x, y: v.top },
670
+ { x: M, y: v.top },
671
+ { x: M, y: v.bottom },
672
+ { x, y: v.bottom }
673
+ ],
674
+ side: w
675
+ }), window.clearTimeout(d.current), d.current = window.setTimeout(
676
+ () => c.onPointerGraceIntentChange(null),
677
+ 300
678
+ );
679
+ } else {
680
+ if (c.onTriggerLeave(u), u.defaultPrevented) return;
681
+ c.onPointerGraceIntentChange(null);
682
+ }
683
+ })
684
+ ),
685
+ onKeyDown: g(e.onKeyDown, (u) => {
686
+ const v = c.searchRef.current !== "";
687
+ e.disabled || v && u.key === " " || ht[n.dir].includes(u.key) && (o.onOpenChange(!0), o.content?.focus(), u.preventDefault());
688
+ })
689
+ }
690
+ ) });
691
+ }
692
+ );
693
+ Ro.displayName = Z;
694
+ var Po = "MenuSubContent", Io = s.forwardRef(
695
+ (e, t) => {
696
+ const o = co(P, e.__scopeMenu), { forceMount: n = o.forceMount, ...r } = e, c = A(P, e.__scopeMenu), i = te(P, e.__scopeMenu), d = _o(Po, e.__scopeMenu), f = s.useRef(null), p = D(t, f);
697
+ return /* @__PURE__ */ a.jsx(q.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(B, { present: n || c.open, children: /* @__PURE__ */ a.jsx(q.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(
698
+ Ee,
699
+ {
700
+ id: d.contentId,
701
+ "aria-labelledby": d.triggerId,
702
+ ...r,
703
+ ref: p,
704
+ align: "start",
705
+ side: i.dir === "rtl" ? "left" : "right",
706
+ disableOutsidePointerEvents: !1,
707
+ disableOutsideScroll: !1,
708
+ trapFocus: !1,
709
+ onOpenAutoFocus: (l) => {
710
+ i.isUsingKeyboardRef.current && f.current?.focus(), l.preventDefault();
711
+ },
712
+ onCloseAutoFocus: (l) => l.preventDefault(),
713
+ onFocusOutside: g(e.onFocusOutside, (l) => {
714
+ l.target !== d.trigger && c.onOpenChange(!1);
715
+ }),
716
+ onEscapeKeyDown: g(e.onEscapeKeyDown, (l) => {
717
+ i.onClose(), l.preventDefault();
718
+ }),
719
+ onKeyDown: g(e.onKeyDown, (l) => {
720
+ const u = l.currentTarget.contains(l.target), v = xt[i.dir].includes(l.key);
721
+ u && v && (c.onOpenChange(!1), d.trigger?.focus(), l.preventDefault());
722
+ })
723
+ }
724
+ ) }) }) });
725
+ }
726
+ );
727
+ Io.displayName = Po;
728
+ function Eo(e) {
729
+ return e ? "open" : "closed";
730
+ }
731
+ function ie(e) {
732
+ return e === "indeterminate";
733
+ }
734
+ function Ae(e) {
735
+ return ie(e) ? "indeterminate" : e ? "checked" : "unchecked";
736
+ }
737
+ function kt(e) {
738
+ const t = document.activeElement;
739
+ for (const o of e)
740
+ if (o === t || (o.focus(), document.activeElement !== t)) return;
741
+ }
742
+ function Lt(e, t) {
743
+ return e.map((o, n) => e[(t + n) % e.length]);
744
+ }
745
+ function Gt(e, t, o) {
746
+ const r = t.length > 1 && Array.from(t).every((p) => p === t[0]) ? t[0] : t, c = o ? e.indexOf(o) : -1;
747
+ let i = Lt(e, Math.max(c, 0));
748
+ r.length === 1 && (i = i.filter((p) => p !== o));
749
+ const f = i.find(
750
+ (p) => p.toLowerCase().startsWith(r.toLowerCase())
751
+ );
752
+ return f !== o ? f : void 0;
753
+ }
754
+ function $t(e, t) {
755
+ const { x: o, y: n } = e;
756
+ let r = !1;
757
+ for (let c = 0, i = t.length - 1; c < t.length; i = c++) {
758
+ const d = t[c], f = t[i], p = d.x, l = d.y, u = f.x, v = f.y;
759
+ l > n != v > n && o < (u - p) * (n - l) / (v - l) + p && (r = !r);
760
+ }
761
+ return r;
762
+ }
763
+ function Kt(e, t) {
764
+ if (!t) return !1;
765
+ const o = { x: e.clientX, y: e.clientY };
766
+ return $t(o, t);
767
+ }
768
+ function J(e) {
769
+ return (t) => t.pointerType === "mouse" ? e(t) : void 0;
770
+ }
771
+ var Ut = so, Bt = Re, zt = io, Vt = uo, Yt = Se, Ht = lo, Xt = fe, Wt = fo, Zt = mo, qt = ho, Jt = wo, Qt = Co, en = Mo, on = bo, tn = Ro, nn = Io, ve = "DropdownMenu", [rn] = ue(
772
+ ve,
773
+ [no]
774
+ ), C = no(), [an, So] = rn(ve), yo = (e) => {
775
+ const {
776
+ __scopeDropdownMenu: t,
777
+ children: o,
778
+ dir: n,
779
+ open: r,
780
+ defaultOpen: c,
781
+ onOpenChange: i,
782
+ modal: d = !0
783
+ } = e, f = C(t), p = s.useRef(null), [l, u] = de({
784
+ prop: r,
785
+ defaultProp: c ?? !1,
786
+ onChange: i,
787
+ caller: ve
788
+ });
789
+ return /* @__PURE__ */ a.jsx(
790
+ an,
791
+ {
792
+ scope: t,
793
+ triggerId: K(),
794
+ triggerRef: p,
795
+ contentId: K(),
796
+ open: l,
797
+ onOpenChange: u,
798
+ onOpenToggle: s.useCallback(() => u((v) => !v), [u]),
799
+ modal: d,
800
+ children: /* @__PURE__ */ a.jsx(Ut, { ...f, open: l, onOpenChange: u, dir: n, modal: d, children: o })
801
+ }
802
+ );
803
+ };
804
+ yo.displayName = ve;
805
+ var Do = "DropdownMenuTrigger", Ao = s.forwardRef(
806
+ (e, t) => {
807
+ const { __scopeDropdownMenu: o, disabled: n = !1, ...r } = e, c = So(Do, o), i = C(o);
808
+ return /* @__PURE__ */ a.jsx(Bt, { asChild: !0, ...i, children: /* @__PURE__ */ a.jsx(
809
+ S.button,
810
+ {
811
+ type: "button",
812
+ id: c.triggerId,
813
+ "aria-haspopup": "menu",
814
+ "aria-expanded": c.open,
815
+ "aria-controls": c.open ? c.contentId : void 0,
816
+ "data-state": c.open ? "open" : "closed",
817
+ "data-disabled": n ? "" : void 0,
818
+ disabled: n,
819
+ ...r,
820
+ ref: $e(t, c.triggerRef),
821
+ onPointerDown: g(e.onPointerDown, (d) => {
822
+ !n && d.button === 0 && d.ctrlKey === !1 && (c.onOpenToggle(), c.open || d.preventDefault());
823
+ }),
824
+ onKeyDown: g(e.onKeyDown, (d) => {
825
+ n || (["Enter", " "].includes(d.key) && c.onOpenToggle(), d.key === "ArrowDown" && c.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(d.key) && d.preventDefault());
826
+ })
827
+ }
828
+ ) });
829
+ }
830
+ );
831
+ Ao.displayName = Do;
832
+ var sn = "DropdownMenuPortal", No = (e) => {
833
+ const { __scopeDropdownMenu: t, ...o } = e, n = C(t);
834
+ return /* @__PURE__ */ a.jsx(zt, { ...n, ...o });
835
+ };
836
+ No.displayName = sn;
837
+ var To = "DropdownMenuContent", Oo = s.forwardRef(
838
+ (e, t) => {
839
+ const { __scopeDropdownMenu: o, ...n } = e, r = So(To, o), c = C(o), i = s.useRef(!1);
840
+ return /* @__PURE__ */ a.jsx(
841
+ Vt,
842
+ {
843
+ id: r.contentId,
844
+ "aria-labelledby": r.triggerId,
845
+ ...c,
846
+ ...n,
847
+ ref: t,
848
+ onCloseAutoFocus: g(e.onCloseAutoFocus, (d) => {
849
+ i.current || r.triggerRef.current?.focus(), i.current = !1, d.preventDefault();
850
+ }),
851
+ onInteractOutside: g(e.onInteractOutside, (d) => {
852
+ const f = d.detail.originalEvent, p = f.button === 0 && f.ctrlKey === !0, l = f.button === 2 || p;
853
+ (!r.modal || l) && (i.current = !0);
854
+ }),
855
+ style: {
856
+ ...e.style,
857
+ "--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
858
+ "--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
859
+ "--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
860
+ "--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
861
+ "--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
862
+ }
863
+ }
864
+ );
865
+ }
866
+ );
867
+ Oo.displayName = To;
868
+ var cn = "DropdownMenuGroup", un = s.forwardRef(
869
+ (e, t) => {
870
+ const { __scopeDropdownMenu: o, ...n } = e, r = C(o);
871
+ return /* @__PURE__ */ a.jsx(Yt, { ...r, ...n, ref: t });
872
+ }
873
+ );
874
+ un.displayName = cn;
875
+ var dn = "DropdownMenuLabel", ln = s.forwardRef(
876
+ (e, t) => {
877
+ const { __scopeDropdownMenu: o, ...n } = e, r = C(o);
878
+ return /* @__PURE__ */ a.jsx(Ht, { ...r, ...n, ref: t });
879
+ }
880
+ );
881
+ ln.displayName = dn;
882
+ var pn = "DropdownMenuItem", jo = s.forwardRef(
883
+ (e, t) => {
884
+ const { __scopeDropdownMenu: o, ...n } = e, r = C(o);
885
+ return /* @__PURE__ */ a.jsx(Xt, { ...r, ...n, ref: t });
886
+ }
887
+ );
888
+ jo.displayName = pn;
889
+ var fn = "DropdownMenuCheckboxItem", vn = s.forwardRef((e, t) => {
890
+ const { __scopeDropdownMenu: o, ...n } = e, r = C(o);
891
+ return /* @__PURE__ */ a.jsx(Wt, { ...r, ...n, ref: t });
892
+ });
893
+ vn.displayName = fn;
894
+ var mn = "DropdownMenuRadioGroup", gn = s.forwardRef((e, t) => {
895
+ const { __scopeDropdownMenu: o, ...n } = e, r = C(o);
896
+ return /* @__PURE__ */ a.jsx(Zt, { ...r, ...n, ref: t });
897
+ });
898
+ gn.displayName = mn;
899
+ var hn = "DropdownMenuRadioItem", xn = s.forwardRef((e, t) => {
900
+ const { __scopeDropdownMenu: o, ...n } = e, r = C(o);
901
+ return /* @__PURE__ */ a.jsx(qt, { ...r, ...n, ref: t });
902
+ });
903
+ xn.displayName = hn;
904
+ var wn = "DropdownMenuItemIndicator", Cn = s.forwardRef((e, t) => {
905
+ const { __scopeDropdownMenu: o, ...n } = e, r = C(o);
906
+ return /* @__PURE__ */ a.jsx(Jt, { ...r, ...n, ref: t });
907
+ });
908
+ Cn.displayName = wn;
909
+ var Mn = "DropdownMenuSeparator", Fo = s.forwardRef((e, t) => {
910
+ const { __scopeDropdownMenu: o, ...n } = e, r = C(o);
911
+ return /* @__PURE__ */ a.jsx(Qt, { ...r, ...n, ref: t });
912
+ });
913
+ Fo.displayName = Mn;
914
+ var _n = "DropdownMenuArrow", bn = s.forwardRef(
915
+ (e, t) => {
916
+ const { __scopeDropdownMenu: o, ...n } = e, r = C(o);
917
+ return /* @__PURE__ */ a.jsx(en, { ...r, ...n, ref: t });
918
+ }
919
+ );
920
+ bn.displayName = _n;
921
+ var Rn = (e) => {
922
+ const { __scopeDropdownMenu: t, children: o, open: n, onOpenChange: r, defaultOpen: c } = e, i = C(t), [d, f] = de({
923
+ prop: n,
924
+ defaultProp: c ?? !1,
925
+ onChange: r,
926
+ caller: "DropdownMenuSub"
927
+ });
928
+ return /* @__PURE__ */ a.jsx(on, { ...i, open: d, onOpenChange: f, children: o });
929
+ }, Pn = "DropdownMenuSubTrigger", ko = s.forwardRef((e, t) => {
930
+ const { __scopeDropdownMenu: o, ...n } = e, r = C(o);
931
+ return /* @__PURE__ */ a.jsx(tn, { ...r, ...n, ref: t });
932
+ });
933
+ ko.displayName = Pn;
934
+ var In = "DropdownMenuSubContent", Lo = s.forwardRef((e, t) => {
935
+ const { __scopeDropdownMenu: o, ...n } = e, r = C(o);
936
+ return /* @__PURE__ */ a.jsx(
937
+ nn,
938
+ {
939
+ ...r,
940
+ ...n,
941
+ ref: t,
942
+ style: {
943
+ ...e.style,
944
+ "--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
945
+ "--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
946
+ "--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
947
+ "--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
948
+ "--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
949
+ }
950
+ }
951
+ );
952
+ });
953
+ Lo.displayName = In;
954
+ var En = yo, Sn = Ao, yn = No, Dn = Oo, An = jo, Nn = Fo, Tn = Rn, On = ko, jn = Lo, me = "Popover", [Go] = ue(me, [
955
+ pe
956
+ ]), ne = pe(), [Fn, N] = Go(me), $o = (e) => {
957
+ const {
958
+ __scopePopover: t,
959
+ children: o,
960
+ open: n,
961
+ defaultOpen: r,
962
+ onOpenChange: c,
963
+ modal: i = !1
964
+ } = e, d = ne(t), f = s.useRef(null), [p, l] = s.useState(!1), [u, v] = de({
965
+ prop: n,
966
+ defaultProp: r ?? !1,
967
+ onChange: c,
968
+ caller: me
969
+ });
970
+ return /* @__PURE__ */ a.jsx(_e, { ...d, children: /* @__PURE__ */ a.jsx(
971
+ Fn,
972
+ {
973
+ scope: t,
974
+ contentId: K(),
975
+ triggerRef: f,
976
+ open: u,
977
+ onOpenChange: v,
978
+ onOpenToggle: s.useCallback(() => v((w) => !w), [v]),
979
+ hasCustomAnchor: p,
980
+ onCustomAnchorAdd: s.useCallback(() => l(!0), []),
981
+ onCustomAnchorRemove: s.useCallback(() => l(!1), []),
982
+ modal: i,
983
+ children: o
984
+ }
985
+ ) });
986
+ };
987
+ $o.displayName = me;
988
+ var Ko = "PopoverAnchor", kn = s.forwardRef(
989
+ (e, t) => {
990
+ const { __scopePopover: o, ...n } = e, r = N(Ko, o), c = ne(o), { onCustomAnchorAdd: i, onCustomAnchorRemove: d } = r;
991
+ return s.useEffect(() => (i(), () => d()), [i, d]), /* @__PURE__ */ a.jsx(be, { ...c, ...n, ref: t });
992
+ }
993
+ );
994
+ kn.displayName = Ko;
995
+ var Uo = "PopoverTrigger", Bo = s.forwardRef(
996
+ (e, t) => {
997
+ const { __scopePopover: o, ...n } = e, r = N(Uo, o), c = ne(o), i = D(t, r.triggerRef), d = /* @__PURE__ */ a.jsx(
998
+ S.button,
999
+ {
1000
+ type: "button",
1001
+ "aria-haspopup": "dialog",
1002
+ "aria-expanded": r.open,
1003
+ "aria-controls": r.contentId,
1004
+ "data-state": Xo(r.open),
1005
+ ...n,
1006
+ ref: i,
1007
+ onClick: g(e.onClick, r.onOpenToggle)
1008
+ }
1009
+ );
1010
+ return r.hasCustomAnchor ? d : /* @__PURE__ */ a.jsx(be, { asChild: !0, ...c, children: d });
1011
+ }
1012
+ );
1013
+ Bo.displayName = Uo;
1014
+ var Ne = "PopoverPortal", [Ln, Gn] = Go(Ne, {
1015
+ forceMount: void 0
1016
+ }), zo = (e) => {
1017
+ const { __scopePopover: t, forceMount: o, children: n, container: r } = e, c = N(Ne, t);
1018
+ return /* @__PURE__ */ a.jsx(Ln, { scope: t, forceMount: o, children: /* @__PURE__ */ a.jsx(B, { present: o || c.open, children: /* @__PURE__ */ a.jsx(Ge, { asChild: !0, container: r, children: n }) }) });
1019
+ };
1020
+ zo.displayName = Ne;
1021
+ var U = "PopoverContent", Vo = s.forwardRef(
1022
+ (e, t) => {
1023
+ const o = Gn(U, e.__scopePopover), { forceMount: n = o.forceMount, ...r } = e, c = N(U, e.__scopePopover);
1024
+ return /* @__PURE__ */ a.jsx(B, { present: n || c.open, children: c.modal ? /* @__PURE__ */ a.jsx(Kn, { ...r, ref: t }) : /* @__PURE__ */ a.jsx(Un, { ...r, ref: t }) });
1025
+ }
1026
+ );
1027
+ Vo.displayName = U;
1028
+ var $n = ze("PopoverContent.RemoveScroll"), Kn = s.forwardRef(
1029
+ (e, t) => {
1030
+ const o = N(U, e.__scopePopover), n = s.useRef(null), r = D(t, n), c = s.useRef(!1);
1031
+ return s.useEffect(() => {
1032
+ const i = n.current;
1033
+ if (i) return Ke(i);
1034
+ }, []), /* @__PURE__ */ a.jsx(Be, { as: $n, allowPinchZoom: !0, children: /* @__PURE__ */ a.jsx(
1035
+ Yo,
1036
+ {
1037
+ ...e,
1038
+ ref: r,
1039
+ trapFocus: o.open,
1040
+ disableOutsidePointerEvents: !0,
1041
+ onCloseAutoFocus: g(e.onCloseAutoFocus, (i) => {
1042
+ i.preventDefault(), c.current || o.triggerRef.current?.focus();
1043
+ }),
1044
+ onPointerDownOutside: g(
1045
+ e.onPointerDownOutside,
1046
+ (i) => {
1047
+ const d = i.detail.originalEvent, f = d.button === 0 && d.ctrlKey === !0, p = d.button === 2 || f;
1048
+ c.current = p;
1049
+ },
1050
+ { checkForDefaultPrevented: !1 }
1051
+ ),
1052
+ onFocusOutside: g(
1053
+ e.onFocusOutside,
1054
+ (i) => i.preventDefault(),
1055
+ { checkForDefaultPrevented: !1 }
1056
+ )
1057
+ }
1058
+ ) });
1059
+ }
1060
+ ), Un = s.forwardRef(
1061
+ (e, t) => {
1062
+ const o = N(U, e.__scopePopover), n = s.useRef(!1), r = s.useRef(!1);
1063
+ return /* @__PURE__ */ a.jsx(
1064
+ Yo,
1065
+ {
1066
+ ...e,
1067
+ ref: t,
1068
+ trapFocus: !1,
1069
+ disableOutsidePointerEvents: !1,
1070
+ onCloseAutoFocus: (c) => {
1071
+ e.onCloseAutoFocus?.(c), c.defaultPrevented || (n.current || o.triggerRef.current?.focus(), c.preventDefault()), n.current = !1, r.current = !1;
1072
+ },
1073
+ onInteractOutside: (c) => {
1074
+ e.onInteractOutside?.(c), c.defaultPrevented || (n.current = !0, c.detail.originalEvent.type === "pointerdown" && (r.current = !0));
1075
+ const i = c.target;
1076
+ o.triggerRef.current?.contains(i) && c.preventDefault(), c.detail.originalEvent.type === "focusin" && r.current && c.preventDefault();
1077
+ }
1078
+ }
1079
+ );
1080
+ }
1081
+ ), Yo = s.forwardRef(
1082
+ (e, t) => {
1083
+ const {
1084
+ __scopePopover: o,
1085
+ trapFocus: n,
1086
+ onOpenAutoFocus: r,
1087
+ onCloseAutoFocus: c,
1088
+ disableOutsidePointerEvents: i,
1089
+ onEscapeKeyDown: d,
1090
+ onPointerDownOutside: f,
1091
+ onFocusOutside: p,
1092
+ onInteractOutside: l,
1093
+ ...u
1094
+ } = e, v = N(U, o), w = ne(o);
1095
+ return Ue(), /* @__PURE__ */ a.jsx(
1096
+ Ve,
1097
+ {
1098
+ asChild: !0,
1099
+ loop: !0,
1100
+ trapped: n,
1101
+ onMountAutoFocus: r,
1102
+ onUnmountAutoFocus: c,
1103
+ children: /* @__PURE__ */ a.jsx(
1104
+ Ye,
1105
+ {
1106
+ asChild: !0,
1107
+ disableOutsidePointerEvents: i,
1108
+ onInteractOutside: l,
1109
+ onEscapeKeyDown: d,
1110
+ onPointerDownOutside: f,
1111
+ onFocusOutside: p,
1112
+ onDismiss: () => v.onOpenChange(!1),
1113
+ children: /* @__PURE__ */ a.jsx(
1114
+ Xe,
1115
+ {
1116
+ "data-state": Xo(v.open),
1117
+ role: "dialog",
1118
+ id: v.contentId,
1119
+ ...w,
1120
+ ...u,
1121
+ ref: t,
1122
+ style: {
1123
+ ...u.style,
1124
+ "--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
1125
+ "--radix-popover-content-available-width": "var(--radix-popper-available-width)",
1126
+ "--radix-popover-content-available-height": "var(--radix-popper-available-height)",
1127
+ "--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
1128
+ "--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
1129
+ }
1130
+ }
1131
+ )
1132
+ }
1133
+ )
1134
+ }
1135
+ );
1136
+ }
1137
+ ), Ho = "PopoverClose", Bn = s.forwardRef(
1138
+ (e, t) => {
1139
+ const { __scopePopover: o, ...n } = e, r = N(Ho, o);
1140
+ return /* @__PURE__ */ a.jsx(
1141
+ S.button,
1142
+ {
1143
+ type: "button",
1144
+ ...n,
1145
+ ref: t,
1146
+ onClick: g(e.onClick, () => r.onOpenChange(!1))
1147
+ }
1148
+ );
1149
+ }
1150
+ );
1151
+ Bn.displayName = Ho;
1152
+ var zn = "PopoverArrow", Vn = s.forwardRef(
1153
+ (e, t) => {
1154
+ const { __scopePopover: o, ...n } = e, r = ne(o);
1155
+ return /* @__PURE__ */ a.jsx(We, { ...r, ...n, ref: t });
1156
+ }
1157
+ );
1158
+ Vn.displayName = zn;
1159
+ function Xo(e) {
1160
+ return e ? "open" : "closed";
1161
+ }
1162
+ var Yn = $o, Hn = Bo, Xn = zo, Wn = Vo;
1163
+ function tr({
1164
+ ...e
1165
+ }) {
1166
+ return /* @__PURE__ */ a.jsx(Yn, { "data-slot": "popover", ...e });
1167
+ }
1168
+ function nr({
1169
+ ...e
1170
+ }) {
1171
+ return /* @__PURE__ */ a.jsx(Hn, { "data-slot": "popover-trigger", ...e });
1172
+ }
1173
+ function rr({
1174
+ className: e,
1175
+ align: t = "center",
1176
+ sideOffset: o = 4,
1177
+ ...n
1178
+ }) {
1179
+ const r = He();
1180
+ return /* @__PURE__ */ a.jsx(Xn, { container: r, children: /* @__PURE__ */ a.jsx(
1181
+ Wn,
1182
+ {
1183
+ "data-slot": "popover-content",
1184
+ align: t,
1185
+ sideOffset: o,
1186
+ className: F(
1187
+ "cn-popover-content z-50 w-72 origin-(--radix-popover-content-transform-origin) outline-hidden",
1188
+ e
1189
+ ),
1190
+ ...n
1191
+ }
1192
+ ) });
1193
+ }
1194
+ function ar({
1195
+ ...e
1196
+ }) {
1197
+ return /* @__PURE__ */ a.jsx(En, { "data-slot": "dropdown-menu", ...e });
1198
+ }
1199
+ function sr({
1200
+ ...e
1201
+ }) {
1202
+ return /* @__PURE__ */ a.jsx(
1203
+ Sn,
1204
+ {
1205
+ "data-slot": "dropdown-menu-trigger",
1206
+ ...e
1207
+ }
1208
+ );
1209
+ }
1210
+ function cr({
1211
+ className: e,
1212
+ sideOffset: t = 4,
1213
+ ...o
1214
+ }) {
1215
+ const n = He();
1216
+ return /* @__PURE__ */ a.jsx(yn, { container: n, children: /* @__PURE__ */ a.jsx(
1217
+ Dn,
1218
+ {
1219
+ "data-slot": "dropdown-menu-content",
1220
+ sideOffset: t,
1221
+ className: F(
1222
+ "bg-popover text-popover-foreground data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
1223
+ e
1224
+ ),
1225
+ ...o
1226
+ }
1227
+ ) });
1228
+ }
1229
+ function ir({
1230
+ className: e,
1231
+ inset: t,
1232
+ variant: o = "default",
1233
+ ...n
1234
+ }) {
1235
+ return /* @__PURE__ */ a.jsx(
1236
+ An,
1237
+ {
1238
+ "data-slot": "dropdown-menu-item",
1239
+ "data-inset": t,
1240
+ "data-variant": o,
1241
+ className: F(
1242
+ "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:!text-destructive relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
1243
+ e
1244
+ ),
1245
+ ...n
1246
+ }
1247
+ );
1248
+ }
1249
+ function ur({
1250
+ className: e,
1251
+ ...t
1252
+ }) {
1253
+ return /* @__PURE__ */ a.jsx(
1254
+ Nn,
1255
+ {
1256
+ "data-slot": "dropdown-menu-separator",
1257
+ className: F("bg-border -mx-1 my-1 h-px", e),
1258
+ ...t
1259
+ }
1260
+ );
1261
+ }
1262
+ function dr({
1263
+ ...e
1264
+ }) {
1265
+ return /* @__PURE__ */ a.jsx(Tn, { "data-slot": "dropdown-menu-sub", ...e });
1266
+ }
1267
+ function lr({
1268
+ className: e,
1269
+ inset: t,
1270
+ children: o,
1271
+ ...n
1272
+ }) {
1273
+ return /* @__PURE__ */ a.jsxs(
1274
+ On,
1275
+ {
1276
+ "data-slot": "dropdown-menu-sub-trigger",
1277
+ "data-inset": t,
1278
+ className: F(
1279
+ "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
1280
+ e
1281
+ ),
1282
+ ...n,
1283
+ children: [
1284
+ o,
1285
+ /* @__PURE__ */ a.jsx(qo, { className: "ml-auto size-4" })
1286
+ ]
1287
+ }
1288
+ );
1289
+ }
1290
+ function pr({
1291
+ className: e,
1292
+ ...t
1293
+ }) {
1294
+ return /* @__PURE__ */ a.jsx(
1295
+ jn,
1296
+ {
1297
+ "data-slot": "dropdown-menu-sub-content",
1298
+ className: F(
1299
+ "bg-popover text-popover-foreground data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
1300
+ e
1301
+ ),
1302
+ ...t
1303
+ }
1304
+ );
1305
+ }
1306
+ function fr({
1307
+ open: e,
1308
+ onOpenChange: t,
1309
+ title: o,
1310
+ actions: n
1311
+ }) {
1312
+ return /* @__PURE__ */ a.jsxs(Qo, { open: e, onOpenChange: t, title: o, children: [
1313
+ /* @__PURE__ */ a.jsx(
1314
+ "div",
1315
+ {
1316
+ "aria-hidden": "true",
1317
+ className: "border-border -mr-[max(0.5rem,env(safe-area-inset-right))] -ml-[max(0.5rem,env(safe-area-inset-left))] border-t"
1318
+ }
1319
+ ),
1320
+ /* @__PURE__ */ a.jsx("div", { className: "divide-border/50 border-border/50 divide-y border-b", children: n.map((r) => /* @__PURE__ */ a.jsxs(
1321
+ Jo,
1322
+ {
1323
+ type: "button",
1324
+ variant: "ghost",
1325
+ disabled: r.disabled,
1326
+ "aria-pressed": r.selected,
1327
+ className: F(
1328
+ "h-13 w-full justify-start rounded-none px-4 text-base font-medium",
1329
+ r.variant === "destructive" && "text-destructive hover:bg-destructive/10 hover:text-destructive focus-visible:ring-destructive/20"
1330
+ ),
1331
+ onClick: () => {
1332
+ r.onSelect(), t(!1);
1333
+ },
1334
+ children: [
1335
+ /* @__PURE__ */ a.jsx("span", { className: "flex-1 text-left", children: r.label }),
1336
+ r.selected ? /* @__PURE__ */ a.jsx(
1337
+ et,
1338
+ {
1339
+ "aria-hidden": "true",
1340
+ className: "text-muted-foreground size-4"
1341
+ }
1342
+ ) : null
1343
+ ]
1344
+ },
1345
+ r.id
1346
+ )) })
1347
+ ] });
1348
+ }
1349
+ export {
1350
+ Bt as A,
1351
+ Vt as C,
1352
+ ar as D,
1353
+ er as E,
1354
+ Yt as G,
1355
+ Xt as I,
1356
+ Ht as L,
1357
+ fr as M,
1358
+ tr as P,
1359
+ Ut as R,
1360
+ on as S,
1361
+ sr as a,
1362
+ cr as b,
1363
+ ir as c,
1364
+ dr as d,
1365
+ lr as e,
1366
+ pr as f,
1367
+ nr as g,
1368
+ rr as h,
1369
+ ur as i,
1370
+ or as j,
1371
+ no as k,
1372
+ zt as l,
1373
+ tn as m,
1374
+ nn as n,
1375
+ Qt as o,
1376
+ Wt as p,
1377
+ Zt as q,
1378
+ qt as r,
1379
+ Jt as s,
1380
+ en as t,
1381
+ qe as u,
1382
+ ft as v,
1383
+ vt as w
1384
+ };